]>
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 | ||
55 | ||
56 | ||
57 | ||
58 | ||
59 | # Configure paths for GTK+ | |
60 | # Owen Taylor 1997-2001 | |
61 | ||
62 | ||
63 | ||
64 | ||
65 | ||
66 | ||
67 | ||
68 | ||
69 | # Configure paths for GTK+ | |
70 | # Owen Taylor 97-11-3 | |
71 | ||
72 | ||
73 | ||
74 | # Guess values for system-dependent variables and create Makefiles. | |
75 | # Generated automatically using autoconf version 2.13 | |
76 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
77 | # | |
78 | # This configure script is free software; the Free Software Foundation | |
79 | # gives unlimited permission to copy, distribute and modify it. | |
80 | ||
81 | # Defaults: | |
82 | ac_help= | |
83 | ac_default_prefix=/usr/local | |
84 | # Any additions from configure.in: | |
85 | ac_help="$ac_help | |
86 | --enable-gui use GUI classes" | |
87 | ac_help="$ac_help | |
88 | --enable-universal use wxWindows GUI controls instead of native ones" | |
89 | ac_help="$ac_help | |
90 | --with-gtk use GTK+" | |
91 | ac_help="$ac_help | |
92 | --with-motif use Motif/Lesstif" | |
93 | ac_help="$ac_help | |
94 | --with-mac use Mac OS X" | |
95 | ac_help="$ac_help | |
96 | --with-wine use WINE" | |
97 | ac_help="$ac_help | |
98 | --with-msw use MS-Windows" | |
99 | ac_help="$ac_help | |
100 | --with-pm use OS/2 Presentation Manager" | |
101 | ac_help="$ac_help | |
102 | --with-mgl use SciTech MGL" | |
103 | ac_help="$ac_help | |
104 | --with-microwin use MicroWindows" | |
105 | ac_help="$ac_help | |
106 | --with-x11 use X11" | |
107 | ac_help="$ac_help | |
108 | --enable-nanox use NanoX" | |
109 | ac_help="$ac_help | |
110 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)" | |
111 | ac_help="$ac_help | |
112 | --with-libpng use libpng (PNG image format)" | |
113 | ac_help="$ac_help | |
114 | --with-libjpeg use libjpeg (JPEG file format)" | |
115 | ac_help="$ac_help | |
116 | --with-libtiff use libtiff (TIFF file format)" | |
117 | ac_help="$ac_help | |
118 | --with-opengl use OpenGL (or Mesa)" | |
119 | ac_help="$ac_help | |
120 | --with-dmalloc use dmalloc library (http://dmalloc.com/)" | |
121 | ac_help="$ac_help | |
122 | --with-regex enable support for wxRegEx class" | |
123 | ac_help="$ac_help | |
124 | --with-zlib use zlib for LZW compression" | |
125 | ac_help="$ac_help | |
126 | --with-odbc use the IODBC and wxODBC classes" | |
127 | ac_help="$ac_help | |
128 | --enable-shared create shared library code" | |
129 | ac_help="$ac_help | |
130 | --enable-soname set the DT_SONAME field in ELF shared libraries" | |
131 | ac_help="$ac_help | |
132 | --enable-optimise create optimised code" | |
133 | ac_help="$ac_help | |
134 | --enable-debug same as debug_flag and debug_info" | |
135 | ac_help="$ac_help | |
b2fee376 | 136 | --enable-precomp enable use of precompiled headers (Mac OS X/Darwin)" |
a0b9e27f MB |
137 | ac_help="$ac_help |
138 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" | |
139 | ac_help="$ac_help | |
140 | --enable-debug_info create code with debugging information" | |
141 | ac_help="$ac_help | |
142 | --enable-debug_gdb create code with extra GDB debugging information" | |
143 | ac_help="$ac_help | |
144 | --enable-debug_cntxt use wxDebugContext" | |
145 | ac_help="$ac_help | |
146 | --enable-mem_tracing create code with memory tracing" | |
147 | ac_help="$ac_help | |
148 | --enable-profile create code with profiling information" | |
149 | ac_help="$ac_help | |
150 | --enable-no_rtti create code without RTTI information" | |
151 | ac_help="$ac_help | |
152 | --enable-no_exceptions create code without C++ exceptions handling" | |
153 | ac_help="$ac_help | |
154 | --enable-permissive compile code disregarding strict ANSI" | |
155 | ac_help="$ac_help | |
156 | --enable-no_deps create code without dependency information" | |
157 | ac_help="$ac_help | |
158 | --enable-compat20 enable wxWindows 2.0 compatibility" | |
159 | ac_help="$ac_help | |
160 | --disable-compat22 disable wxWindows 2.2 compatibility" | |
161 | ac_help="$ac_help | |
162 | --enable-rpath=DIR output the rpath flag from wx-config" | |
163 | ac_help="$ac_help | |
164 | --enable-intl use internationalization system" | |
165 | ac_help="$ac_help | |
166 | --enable-config use wxConfig (and derived) classes" | |
167 | ac_help="$ac_help | |
168 | --enable-protocols use wxProtocol and derived classes" | |
169 | ac_help="$ac_help | |
170 | --enable-ftp use wxFTP (requires wxProtocol" | |
171 | ac_help="$ac_help | |
172 | --enable-http use wxHTTP (requires wxProtocol" | |
173 | ac_help="$ac_help | |
174 | --enable-fileproto use wxFileProto class (requires wxProtocol" | |
175 | ac_help="$ac_help | |
176 | --enable-sockets use socket/network classes" | |
3bce6687 JS |
177 | ac_help="$ac_help |
178 | --enable-ole use OLE classes" | |
179 | ac_help="$ac_help | |
180 | --enable-dataobj use data object classes" | |
a0b9e27f MB |
181 | ac_help="$ac_help |
182 | --enable-ipc use interprocess communication (wxSocket etc.)" | |
183 | ac_help="$ac_help | |
184 | --enable-cmdline use wxCmdLineParser class" | |
185 | ac_help="$ac_help | |
186 | --enable-datetime use wxDateTime class" | |
187 | ac_help="$ac_help | |
188 | --enable-timedate use obsolete wxDate/wxTime classes" | |
189 | ac_help="$ac_help | |
190 | --enable-stopwatch use wxStopWatch class" | |
191 | ac_help="$ac_help | |
192 | --enable-dialupman use dialup network classes" | |
193 | ac_help="$ac_help | |
194 | --enable-apple_ieee use the Apple IEEE codec" | |
195 | ac_help="$ac_help | |
196 | --enable-timer use wxTimer class" | |
197 | ac_help="$ac_help | |
198 | --enable-wave use wxWave class" | |
199 | ac_help="$ac_help | |
200 | --enable-fraction use wxFraction class" | |
201 | ac_help="$ac_help | |
202 | --enable-dynlib use wxLibrary class for DLL loading" | |
203 | ac_help="$ac_help | |
204 | --enable-dynamicloader use (new) wxDynamicLibrary class" | |
205 | ac_help="$ac_help | |
206 | --enable-longlong use wxLongLong class" | |
207 | ac_help="$ac_help | |
208 | --enable-geometry use geometry class" | |
209 | ac_help="$ac_help | |
210 | --enable-log use logging system" | |
211 | ac_help="$ac_help | |
212 | --enable-streams use wxStream etc classes" | |
213 | ac_help="$ac_help | |
214 | --enable-file use wxFile classes" | |
215 | ac_help="$ac_help | |
216 | --enable-ffile use wxFFile classes" | |
217 | ac_help="$ac_help | |
218 | --enable-textbuf use wxTextBuffer class" | |
219 | ac_help="$ac_help | |
220 | --enable-textfile use wxTextFile class" | |
221 | ac_help="$ac_help | |
222 | --enable-fontmap use font encodings conversion classes" | |
223 | ac_help="$ac_help | |
224 | --enable-unicode compile wxString with Unicode support" | |
225 | ac_help="$ac_help | |
226 | --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)" | |
227 | ac_help="$ac_help | |
228 | --enable-wxprintfv use wxWindows implementation of vprintf()" | |
229 | ac_help="$ac_help | |
230 | --enable-std_iostreams use standard C++ stream classes" | |
231 | ac_help="$ac_help | |
232 | --enable-filesystem use virtual file systems classes" | |
233 | ac_help="$ac_help | |
234 | --enable-fs_inet use virtual HTTP/FTP filesystems" | |
235 | ac_help="$ac_help | |
236 | --enable-fs_zip use virtual ZIP filesystems" | |
237 | ac_help="$ac_help | |
238 | --enable-zipstream use wxZipInputStream" | |
239 | ac_help="$ac_help | |
240 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException" | |
241 | ac_help="$ac_help | |
242 | --enable-snglinst use wxSingleInstanceChecker class" | |
243 | ac_help="$ac_help | |
244 | --enable-mimetype use wxMimeTypesManager" | |
245 | ac_help="$ac_help | |
246 | --enable-sysoptions use wxSystemOptions" | |
247 | ac_help="$ac_help | |
248 | --enable-url use wxURL class" | |
249 | ac_help="$ac_help | |
250 | --enable-protocol use wxProtocol class" | |
251 | ac_help="$ac_help | |
252 | --enable-protocol-http HTTP support in wxProtocol" | |
253 | ac_help="$ac_help | |
254 | --enable-protocol-ftp FTP support in wxProtocol" | |
255 | ac_help="$ac_help | |
256 | --enable-protocol-file FILE support in wxProtocol" | |
257 | ac_help="$ac_help | |
258 | --enable-threads use threads" | |
259 | ac_help="$ac_help | |
260 | --enable-docview use document view architecture" | |
261 | ac_help="$ac_help | |
262 | --enable-help use help subsystem" | |
263 | ac_help="$ac_help | |
264 | --enable-mshtmlhelp use MS HTML Help (win32)" | |
265 | ac_help="$ac_help | |
266 | --enable-html use wxHTML sub-library" | |
267 | ac_help="$ac_help | |
268 | --enable-htmlhelp use wxHTML-based help" | |
269 | ac_help="$ac_help | |
270 | --enable-constraints use layout-constraints system" | |
271 | ac_help="$ac_help | |
272 | --enable-printarch use printing architecture" | |
273 | ac_help="$ac_help | |
274 | --enable-mdi use multiple document interface architecture" | |
275 | ac_help="$ac_help | |
276 | --enable-loggui use standard GUI logger" | |
277 | ac_help="$ac_help | |
278 | --enable-logwin use wxLogWindow" | |
279 | ac_help="$ac_help | |
280 | --enable-logdialog use wxLogDialog" | |
281 | ac_help="$ac_help | |
282 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" | |
283 | ac_help="$ac_help | |
284 | --enable-prologio use Prolog IO library" | |
285 | ac_help="$ac_help | |
286 | --enable-resources use wxWindows resources" | |
287 | ac_help="$ac_help | |
288 | --enable-xresources use X resources for save (default for gtk+)" | |
289 | ac_help="$ac_help | |
290 | --enable-clipboard use wxClipboard classes" | |
291 | ac_help="$ac_help | |
292 | --enable-dnd use Drag'n'Drop classes" | |
293 | ac_help="$ac_help | |
294 | --enable-metafile use win32 metafiles" | |
295 | ac_help="$ac_help | |
296 | --enable-treelayout use wxTreeLayout classes" | |
297 | ac_help="$ac_help | |
298 | --enable-controls use all usual controls" | |
299 | ac_help="$ac_help | |
300 | --enable-accel use accelerators" | |
301 | ac_help="$ac_help | |
302 | --enable-button use wxButton class" | |
303 | ac_help="$ac_help | |
304 | --enable-bmpbutton use wxBitmapButton class" | |
305 | ac_help="$ac_help | |
306 | --enable-calendar use wxCalendarCtrl class" | |
307 | ac_help="$ac_help | |
308 | --enable-caret use wxCaret class" | |
309 | ac_help="$ac_help | |
310 | --enable-checkbox use wxCheckBox class" | |
311 | ac_help="$ac_help | |
312 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" | |
313 | ac_help="$ac_help | |
314 | --enable-choice use wxChoice class" | |
315 | ac_help="$ac_help | |
316 | --enable-combobox use wxComboBox classes" | |
317 | ac_help="$ac_help | |
318 | --enable-gauge use wxGauge class" | |
319 | ac_help="$ac_help | |
320 | --enable-grid use wxGrid class" | |
321 | ac_help="$ac_help | |
322 | --enable-newgrid use new wxGrid class" | |
323 | ac_help="$ac_help | |
324 | --enable-imaglist use wxImageList class" | |
325 | ac_help="$ac_help | |
326 | --enable-listbox use wxListBox class" | |
327 | ac_help="$ac_help | |
328 | --enable-listctrl use wxListCtrl class" | |
329 | ac_help="$ac_help | |
330 | --enable-notebook use wxNotebook class" | |
331 | ac_help="$ac_help | |
332 | --enable-propsheet use wxPropertySheet class" | |
333 | ac_help="$ac_help | |
334 | --enable-radiobox use wxRadioBox class" | |
335 | ac_help="$ac_help | |
336 | --enable-radiobtn use wxRadioButton class" | |
337 | ac_help="$ac_help | |
338 | --enable-sash use wxSashWindow class" | |
339 | ac_help="$ac_help | |
340 | --enable-scrollbar use wxScrollBar class and scrollable windows" | |
341 | ac_help="$ac_help | |
342 | --enable-slider use wxSlider class" | |
343 | ac_help="$ac_help | |
344 | --enable-spinbtn use wxSpinButton class" | |
345 | ac_help="$ac_help | |
346 | --enable-spinctrl use wxSpinCtrl class" | |
347 | ac_help="$ac_help | |
348 | --enable-splitter use wxSplitterWindow class" | |
349 | ac_help="$ac_help | |
350 | --enable-statbmp use wxStaticBitmap class" | |
351 | ac_help="$ac_help | |
352 | --enable-statbox use wxStaticBox class" | |
353 | ac_help="$ac_help | |
354 | --enable-statline use wxStaticLine class" | |
355 | ac_help="$ac_help | |
356 | --enable-stattext use wxStaticText class" | |
357 | ac_help="$ac_help | |
358 | --enable-statusbar use wxStatusBar class" | |
359 | ac_help="$ac_help | |
360 | --enable-tabdialog use wxTabControl class" | |
361 | ac_help="$ac_help | |
362 | --enable-textctrl use wxTextCtrl class" | |
363 | ac_help="$ac_help | |
364 | --enable-togglebtn use wxToggleButton class" | |
365 | ac_help="$ac_help | |
366 | --enable-toolbar use wxToolBar class" | |
367 | ac_help="$ac_help | |
368 | --enable-tbarnative use native wxToolBar class" | |
369 | ac_help="$ac_help | |
370 | --enable-tbarsmpl use wxToolBarSimple class" | |
371 | ac_help="$ac_help | |
372 | --enable-treectrl use wxTreeCtrl class" | |
373 | ac_help="$ac_help | |
374 | --enable-tipwindow use wxTipWindow class" | |
375 | ac_help="$ac_help | |
376 | --enable-popupwin use wxPopUpWindow class" | |
377 | ac_help="$ac_help | |
378 | --enable-commondlg use all common dialogs" | |
379 | ac_help="$ac_help | |
380 | --enable-choicedlg use wxChoiceDialog" | |
381 | ac_help="$ac_help | |
382 | --enable-coldlg use wxColourDialog" | |
383 | ac_help="$ac_help | |
384 | --enable-filedlg use wxFileDialog" | |
385 | ac_help="$ac_help | |
386 | --enable-finddlg use wxFindReplaceDialog" | |
387 | ac_help="$ac_help | |
388 | --enable-fontdlg use wxFontDialog" | |
389 | ac_help="$ac_help | |
390 | --enable-dirdlg use wxDirDialog" | |
391 | ac_help="$ac_help | |
392 | --enable-msgdlg use wxMessageDialog" | |
393 | ac_help="$ac_help | |
394 | --enable-numberdlg use wxNumberEntryDialog" | |
395 | ac_help="$ac_help | |
396 | --enable-splash use wxSplashScreen" | |
397 | ac_help="$ac_help | |
398 | --enable-textdlg use wxTextDialog" | |
399 | ac_help="$ac_help | |
400 | --enable-tipdlg use startup tips" | |
401 | ac_help="$ac_help | |
402 | --enable-progressdlg use wxProgressDialog" | |
403 | ac_help="$ac_help | |
404 | --enable-wizarddlg use wxWizard" | |
405 | ac_help="$ac_help | |
406 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" | |
407 | ac_help="$ac_help | |
408 | --enable-miniframe use wxMiniFrame class" | |
409 | ac_help="$ac_help | |
410 | --enable-tooltips use wxToolTip class" | |
411 | ac_help="$ac_help | |
412 | --enable-splines use spline drawing code" | |
413 | ac_help="$ac_help | |
414 | --enable-validators use wxValidator and derived classes" | |
415 | ac_help="$ac_help | |
416 | --enable-busyinfo use wxBusyInfo" | |
417 | ac_help="$ac_help | |
418 | --enable-joystick use wxJoystick (Linux only)" | |
419 | ac_help="$ac_help | |
420 | --enable-metafiles use wxMetaFile (Windows only)" | |
421 | ac_help="$ac_help | |
422 | --enable-dragimage use wxDragImage" | |
423 | ac_help="$ac_help | |
424 | --enable-palette use wxPalette class" | |
425 | ac_help="$ac_help | |
426 | --enable-image use wxImage class" | |
427 | ac_help="$ac_help | |
428 | --enable-gif use gif images (GIF file format)" | |
429 | ac_help="$ac_help | |
430 | --enable-pcx use pcx images (PCX file format)" | |
431 | ac_help="$ac_help | |
432 | --enable-iff use iff images (IFF file format)" | |
433 | ac_help="$ac_help | |
434 | --enable-pnm use pnm images (PNM file format)" | |
435 | ac_help="$ac_help | |
436 | --enable-xpm use xpm images (XPM file format)" | |
437 | ac_help="$ac_help | |
438 | --enable-icocur use Windows ICO and CUR formats" | |
439 | ac_help="$ac_help | |
440 | --disable-largefile omit support for large files" | |
441 | ac_help="$ac_help | |
442 | --disable-gtktest do not try to compile and run a test GTK+ program" | |
443 | ac_help="$ac_help | |
444 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
445 | ac_help="$ac_help | |
446 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
447 | ac_help="$ac_help | |
448 | --disable-gtktest Do not try to compile and run a test GTK program" | |
449 | ac_help="$ac_help | |
450 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
451 | ac_help="$ac_help | |
452 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
453 | ac_help="$ac_help | |
454 | --disable-gtktest Do not try to compile and run a test GTK program" | |
455 | ac_help="$ac_help | |
456 | --with-x use the X Window System" | |
457 | ac_help="$ac_help | |
458 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib" | |
10f2d63a VZ |
459 | |
460 | # Initialize some variables set by options. | |
461 | # The variables have the same names as the options, with | |
462 | # dashes changed to underlines. | |
a0b9e27f MB |
463 | build=NONE |
464 | cache_file=./config.cache | |
10f2d63a | 465 | exec_prefix=NONE |
a0b9e27f | 466 | host=NONE |
10f2d63a | 467 | no_create= |
a0b9e27f | 468 | nonopt=NONE |
10f2d63a VZ |
469 | no_recursion= |
470 | prefix=NONE | |
471 | program_prefix=NONE | |
472 | program_suffix=NONE | |
473 | program_transform_name=s,x,x, | |
474 | silent= | |
475 | site= | |
476 | srcdir= | |
a0b9e27f | 477 | target=NONE |
10f2d63a VZ |
478 | verbose= |
479 | x_includes=NONE | |
480 | x_libraries=NONE | |
481 | bindir='${exec_prefix}/bin' | |
482 | sbindir='${exec_prefix}/sbin' | |
483 | libexecdir='${exec_prefix}/libexec' | |
484 | datadir='${prefix}/share' | |
485 | sysconfdir='${prefix}/etc' | |
486 | sharedstatedir='${prefix}/com' | |
487 | localstatedir='${prefix}/var' | |
488 | libdir='${exec_prefix}/lib' | |
489 | includedir='${prefix}/include' | |
490 | oldincludedir='/usr/include' | |
491 | infodir='${prefix}/info' | |
492 | mandir='${prefix}/man' | |
493 | ||
a0b9e27f MB |
494 | # Initialize some other variables. |
495 | subdirs= | |
496 | MFLAGS= MAKEFLAGS= | |
497 | SHELL=${CONFIG_SHELL-/bin/sh} | |
498 | # Maximum number of lines to put in a shell here document. | |
499 | ac_max_here_lines=12 | |
500 | ||
10f2d63a VZ |
501 | ac_prev= |
502 | for ac_option | |
503 | do | |
a0b9e27f | 504 | |
10f2d63a VZ |
505 | # If the previous option needs an argument, assign it. |
506 | if test -n "$ac_prev"; then | |
507 | eval "$ac_prev=\$ac_option" | |
508 | ac_prev= | |
509 | continue | |
510 | fi | |
511 | ||
a0b9e27f MB |
512 | case "$ac_option" in |
513 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
514 | *) ac_optarg= ;; | |
515 | esac | |
10f2d63a VZ |
516 | |
517 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
518 | ||
a0b9e27f | 519 | case "$ac_option" in |
10f2d63a VZ |
520 | |
521 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
522 | ac_prev=bindir ;; | |
523 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
a0b9e27f | 524 | bindir="$ac_optarg" ;; |
10f2d63a VZ |
525 | |
526 | -build | --build | --buil | --bui | --bu) | |
a0b9e27f | 527 | ac_prev=build ;; |
10f2d63a | 528 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
a0b9e27f | 529 | build="$ac_optarg" ;; |
10f2d63a VZ |
530 | |
531 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
532 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
533 | ac_prev=cache_file ;; | |
534 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
535 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
a0b9e27f | 536 | cache_file="$ac_optarg" ;; |
10f2d63a VZ |
537 | |
538 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
539 | ac_prev=datadir ;; | |
540 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
541 | | --da=*) | |
a0b9e27f | 542 | datadir="$ac_optarg" ;; |
10f2d63a VZ |
543 | |
544 | -disable-* | --disable-*) | |
a0b9e27f | 545 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
10f2d63a | 546 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
547 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
548 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
549 | fi | |
550 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
551 | eval "enable_${ac_feature}=no" ;; | |
10f2d63a VZ |
552 | |
553 | -enable-* | --enable-*) | |
a0b9e27f | 554 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
10f2d63a | 555 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
556 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
557 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
558 | fi | |
559 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
560 | case "$ac_option" in | |
561 | *=*) ;; | |
10f2d63a VZ |
562 | *) ac_optarg=yes ;; |
563 | esac | |
a0b9e27f | 564 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
10f2d63a VZ |
565 | |
566 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
567 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
568 | | --exec | --exe | --ex) | |
569 | ac_prev=exec_prefix ;; | |
570 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
571 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
572 | | --exec=* | --exe=* | --ex=*) | |
a0b9e27f | 573 | exec_prefix="$ac_optarg" ;; |
10f2d63a VZ |
574 | |
575 | -gas | --gas | --ga | --g) | |
576 | # Obsolete; use --with-gas. | |
577 | with_gas=yes ;; | |
578 | ||
a0b9e27f MB |
579 | -help | --help | --hel | --he) |
580 | # Omit some internal or obsolete options to make the list less imposing. | |
581 | # This message is too long to be a string in the A/UX 3.1 sh. | |
582 | cat << EOF | |
583 | Usage: configure [options] [host] | |
584 | Options: [defaults in brackets after descriptions] | |
585 | Configuration: | |
586 | --cache-file=FILE cache test results in FILE | |
587 | --help print this message | |
588 | --no-create do not create output files | |
589 | --quiet, --silent do not print \`checking...' messages | |
590 | --version print the version of autoconf that created configure | |
591 | Directory and file names: | |
592 | --prefix=PREFIX install architecture-independent files in PREFIX | |
593 | [$ac_default_prefix] | |
594 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
595 | [same as prefix] | |
596 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
597 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
598 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
599 | --datadir=DIR read-only architecture-independent data in DIR | |
600 | [PREFIX/share] | |
601 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
602 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
603 | [PREFIX/com] | |
604 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
605 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
606 | --includedir=DIR C header files in DIR [PREFIX/include] | |
607 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
608 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
609 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
610 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
611 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
612 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
613 | --program-transform-name=PROGRAM | |
614 | run sed PROGRAM on installed program names | |
615 | EOF | |
616 | cat << EOF | |
617 | Host type: | |
618 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
619 | --host=HOST configure for HOST [guessed] | |
620 | --target=TARGET configure for TARGET [TARGET=HOST] | |
621 | Features and packages: | |
622 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
623 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
624 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
625 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
626 | --x-includes=DIR X include files are in DIR | |
627 | --x-libraries=DIR X library files are in DIR | |
628 | EOF | |
629 | if test -n "$ac_help"; then | |
630 | echo "--enable and --with options recognized:$ac_help" | |
631 | fi | |
632 | exit 0 ;; | |
10f2d63a VZ |
633 | |
634 | -host | --host | --hos | --ho) | |
a0b9e27f | 635 | ac_prev=host ;; |
10f2d63a | 636 | -host=* | --host=* | --hos=* | --ho=*) |
a0b9e27f | 637 | host="$ac_optarg" ;; |
10f2d63a VZ |
638 | |
639 | -includedir | --includedir | --includedi | --included | --include \ | |
640 | | --includ | --inclu | --incl | --inc) | |
641 | ac_prev=includedir ;; | |
642 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
643 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
a0b9e27f | 644 | includedir="$ac_optarg" ;; |
10f2d63a VZ |
645 | |
646 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
647 | ac_prev=infodir ;; | |
648 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
a0b9e27f | 649 | infodir="$ac_optarg" ;; |
10f2d63a VZ |
650 | |
651 | -libdir | --libdir | --libdi | --libd) | |
652 | ac_prev=libdir ;; | |
653 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
a0b9e27f | 654 | libdir="$ac_optarg" ;; |
10f2d63a VZ |
655 | |
656 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
657 | | --libexe | --libex | --libe) | |
658 | ac_prev=libexecdir ;; | |
659 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
660 | | --libexe=* | --libex=* | --libe=*) | |
a0b9e27f | 661 | libexecdir="$ac_optarg" ;; |
10f2d63a VZ |
662 | |
663 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
664 | | --localstate | --localstat | --localsta | --localst \ | |
665 | | --locals | --local | --loca | --loc | --lo) | |
666 | ac_prev=localstatedir ;; | |
667 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
668 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
669 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
a0b9e27f | 670 | localstatedir="$ac_optarg" ;; |
10f2d63a VZ |
671 | |
672 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
673 | ac_prev=mandir ;; | |
674 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
a0b9e27f | 675 | mandir="$ac_optarg" ;; |
10f2d63a VZ |
676 | |
677 | -nfp | --nfp | --nf) | |
678 | # Obsolete; use --without-fp. | |
679 | with_fp=no ;; | |
680 | ||
681 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
a0b9e27f | 682 | | --no-cr | --no-c) |
10f2d63a VZ |
683 | no_create=yes ;; |
684 | ||
685 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
686 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
687 | no_recursion=yes ;; | |
688 | ||
689 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
690 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
691 | | --oldin | --oldi | --old | --ol | --o) | |
692 | ac_prev=oldincludedir ;; | |
693 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
694 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
695 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
a0b9e27f | 696 | oldincludedir="$ac_optarg" ;; |
10f2d63a VZ |
697 | |
698 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
699 | ac_prev=prefix ;; | |
700 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
a0b9e27f | 701 | prefix="$ac_optarg" ;; |
10f2d63a VZ |
702 | |
703 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
704 | | --program-pre | --program-pr | --program-p) | |
705 | ac_prev=program_prefix ;; | |
706 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
707 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
a0b9e27f | 708 | program_prefix="$ac_optarg" ;; |
10f2d63a VZ |
709 | |
710 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
711 | | --program-suf | --program-su | --program-s) | |
712 | ac_prev=program_suffix ;; | |
713 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
714 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
a0b9e27f | 715 | program_suffix="$ac_optarg" ;; |
10f2d63a VZ |
716 | |
717 | -program-transform-name | --program-transform-name \ | |
718 | | --program-transform-nam | --program-transform-na \ | |
719 | | --program-transform-n | --program-transform- \ | |
720 | | --program-transform | --program-transfor \ | |
721 | | --program-transfo | --program-transf \ | |
722 | | --program-trans | --program-tran \ | |
723 | | --progr-tra | --program-tr | --program-t) | |
724 | ac_prev=program_transform_name ;; | |
725 | -program-transform-name=* | --program-transform-name=* \ | |
726 | | --program-transform-nam=* | --program-transform-na=* \ | |
727 | | --program-transform-n=* | --program-transform-=* \ | |
728 | | --program-transform=* | --program-transfor=* \ | |
729 | | --program-transfo=* | --program-transf=* \ | |
730 | | --program-trans=* | --program-tran=* \ | |
731 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
a0b9e27f | 732 | program_transform_name="$ac_optarg" ;; |
10f2d63a VZ |
733 | |
734 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
735 | | -silent | --silent | --silen | --sile | --sil) | |
736 | silent=yes ;; | |
737 | ||
738 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
739 | ac_prev=sbindir ;; | |
740 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
741 | | --sbi=* | --sb=*) | |
a0b9e27f | 742 | sbindir="$ac_optarg" ;; |
10f2d63a VZ |
743 | |
744 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
745 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
746 | | --sharedst | --shareds | --shared | --share | --shar \ | |
747 | | --sha | --sh) | |
748 | ac_prev=sharedstatedir ;; | |
749 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
750 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
751 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
752 | | --sha=* | --sh=*) | |
a0b9e27f | 753 | sharedstatedir="$ac_optarg" ;; |
10f2d63a VZ |
754 | |
755 | -site | --site | --sit) | |
756 | ac_prev=site ;; | |
757 | -site=* | --site=* | --sit=*) | |
a0b9e27f | 758 | site="$ac_optarg" ;; |
10f2d63a VZ |
759 | |
760 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
761 | ac_prev=srcdir ;; | |
762 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
a0b9e27f | 763 | srcdir="$ac_optarg" ;; |
10f2d63a VZ |
764 | |
765 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
766 | | --syscon | --sysco | --sysc | --sys | --sy) | |
767 | ac_prev=sysconfdir ;; | |
768 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
769 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
a0b9e27f | 770 | sysconfdir="$ac_optarg" ;; |
10f2d63a VZ |
771 | |
772 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
a0b9e27f | 773 | ac_prev=target ;; |
10f2d63a | 774 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
a0b9e27f | 775 | target="$ac_optarg" ;; |
10f2d63a VZ |
776 | |
777 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
778 | verbose=yes ;; | |
779 | ||
a0b9e27f MB |
780 | -version | --version | --versio | --versi | --vers) |
781 | echo "configure generated by autoconf version 2.13" | |
782 | exit 0 ;; | |
10f2d63a VZ |
783 | |
784 | -with-* | --with-*) | |
a0b9e27f | 785 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
10f2d63a | 786 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
787 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
788 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
789 | fi | |
10f2d63a | 790 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
a0b9e27f MB |
791 | case "$ac_option" in |
792 | *=*) ;; | |
10f2d63a VZ |
793 | *) ac_optarg=yes ;; |
794 | esac | |
a0b9e27f | 795 | eval "with_${ac_package}='$ac_optarg'" ;; |
10f2d63a VZ |
796 | |
797 | -without-* | --without-*) | |
a0b9e27f | 798 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
10f2d63a | 799 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
800 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
801 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
802 | fi | |
803 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
804 | eval "with_${ac_package}=no" ;; | |
10f2d63a VZ |
805 | |
806 | --x) | |
807 | # Obsolete; use --with-x. | |
808 | with_x=yes ;; | |
809 | ||
810 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
811 | | --x-incl | --x-inc | --x-in | --x-i) | |
812 | ac_prev=x_includes ;; | |
813 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
814 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
a0b9e27f | 815 | x_includes="$ac_optarg" ;; |
10f2d63a VZ |
816 | |
817 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
818 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
819 | ac_prev=x_libraries ;; | |
820 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
821 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
a0b9e27f | 822 | x_libraries="$ac_optarg" ;; |
10f2d63a | 823 | |
a0b9e27f | 824 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
10f2d63a VZ |
825 | ;; |
826 | ||
827 | *) | |
a0b9e27f MB |
828 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
829 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
830 | fi | |
831 | if test "x$nonopt" != xNONE; then | |
832 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
833 | fi | |
834 | nonopt="$ac_option" | |
10f2d63a VZ |
835 | ;; |
836 | ||
837 | esac | |
838 | done | |
839 | ||
840 | if test -n "$ac_prev"; then | |
a0b9e27f | 841 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
8284b0c5 | 842 | fi |
8284b0c5 | 843 | |
a0b9e27f MB |
844 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
845 | ||
846 | # File descriptor usage: | |
847 | # 0 standard input | |
848 | # 1 file creation | |
849 | # 2 errors and warnings | |
850 | # 3 some systems may open it to /dev/tty | |
851 | # 4 used on the Kubota Titan | |
852 | # 6 checking for... messages and results | |
853 | # 5 compiler messages saved in config.log | |
854 | if test "$silent" = yes; then | |
855 | exec 6>/dev/null | |
856 | else | |
857 | exec 6>&1 | |
858 | fi | |
859 | exec 5>./config.log | |
860 | ||
861 | echo "\ | |
862 | This file contains any messages produced by compilers while | |
863 | running configure, to aid debugging if configure makes a mistake. | |
864 | " 1>&5 | |
8284b0c5 | 865 | |
a0b9e27f MB |
866 | # Strip out --no-create and --no-recursion so they do not pile up. |
867 | # Also quote any args containing shell metacharacters. | |
868 | ac_configure_args= | |
869 | for ac_arg | |
10f2d63a | 870 | do |
a0b9e27f MB |
871 | case "$ac_arg" in |
872 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
873 | | --no-cr | --no-c) ;; | |
874 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
875 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
876 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
877 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
878 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
10f2d63a VZ |
879 | esac |
880 | done | |
881 | ||
a0b9e27f MB |
882 | # NLS nuisances. |
883 | # Only set these to C if already set. These must not be set unconditionally | |
884 | # because not all systems understand e.g. LANG=C (notably SCO). | |
885 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
886 | # Non-C LC_CTYPE values break the ctype check. | |
887 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
888 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
889 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
890 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
247f5006 | 891 | |
a0b9e27f MB |
892 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
893 | rm -rf conftest* confdefs.h | |
894 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
895 | echo > confdefs.h | |
10f2d63a | 896 | |
a0b9e27f MB |
897 | # A filename unique to this package, relative to the directory that |
898 | # configure is in, which we can look for to find out if srcdir is correct. | |
899 | ac_unique_file=wx-config.in | |
10f2d63a VZ |
900 | |
901 | # Find the source files, if location was not specified. | |
902 | if test -z "$srcdir"; then | |
903 | ac_srcdir_defaulted=yes | |
904 | # Try the directory containing this script, then its parent. | |
a0b9e27f MB |
905 | ac_prog=$0 |
906 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
907 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
10f2d63a VZ |
908 | srcdir=$ac_confdir |
909 | if test ! -r $srcdir/$ac_unique_file; then | |
910 | srcdir=.. | |
911 | fi | |
912 | else | |
913 | ac_srcdir_defaulted=no | |
914 | fi | |
915 | if test ! -r $srcdir/$ac_unique_file; then | |
916 | if test "$ac_srcdir_defaulted" = yes; then | |
a0b9e27f | 917 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
10f2d63a | 918 | else |
a0b9e27f | 919 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
10f2d63a VZ |
920 | fi |
921 | fi | |
a0b9e27f | 922 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
328a083c | 923 | |
10f2d63a VZ |
924 | # Prefer explicitly selected file to automatically selected ones. |
925 | if test -z "$CONFIG_SITE"; then | |
926 | if test "x$prefix" != xNONE; then | |
927 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
928 | else | |
929 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
930 | fi | |
931 | fi | |
932 | for ac_site_file in $CONFIG_SITE; do | |
933 | if test -r "$ac_site_file"; then | |
a0b9e27f | 934 | echo "loading site script $ac_site_file" |
10f2d63a VZ |
935 | . "$ac_site_file" |
936 | fi | |
937 | done | |
938 | ||
939 | if test -r "$cache_file"; then | |
a0b9e27f MB |
940 | echo "loading cache $cache_file" |
941 | . $cache_file | |
10f2d63a | 942 | else |
a0b9e27f MB |
943 | echo "creating cache $cache_file" |
944 | > $cache_file | |
10f2d63a VZ |
945 | fi |
946 | ||
947 | ac_ext=c | |
a0b9e27f | 948 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 949 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
950 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
951 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
952 | cross_compiling=$ac_cv_prog_cc_cross | |
953 | ||
954 | ac_exeext= | |
955 | ac_objext=o | |
956 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
957 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
958 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
959 | ac_n= ac_c=' | |
960 | ' ac_t=' ' | |
961 | else | |
962 | ac_n=-n ac_c= ac_t= | |
963 | fi | |
964 | else | |
965 | ac_n= ac_c='\c' ac_t= | |
966 | fi | |
8284b0c5 MB |
967 | |
968 | ||
10f2d63a | 969 | |
7c66a493 VZ |
970 | ac_aux_dir= |
971 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
972 | if test -f $ac_dir/install-sh; then | |
973 | ac_aux_dir=$ac_dir | |
974 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
975 | break | |
976 | elif test -f $ac_dir/install.sh; then | |
977 | ac_aux_dir=$ac_dir | |
978 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
979 | break | |
247f5006 | 980 | fi |
7c66a493 VZ |
981 | done |
982 | if test -z "$ac_aux_dir"; then | |
a0b9e27f | 983 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
7c66a493 | 984 | fi |
a0b9e27f MB |
985 | ac_config_guess=$ac_aux_dir/config.guess |
986 | ac_config_sub=$ac_aux_dir/config.sub | |
987 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
698dcdb6 | 988 | |
8284b0c5 | 989 | |
a0b9e27f MB |
990 | # Do some error checking and defaulting for the host and target type. |
991 | # The inputs are: | |
992 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
993 | # | |
994 | # The rules are: | |
995 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
996 | # same time. | |
997 | # 2. Host defaults to nonopt. | |
998 | # 3. If nonopt is not specified, then host defaults to the current host, | |
999 | # as determined by config.guess. | |
1000 | # 4. Target and build default to nonopt. | |
1001 | # 5. If nonopt is not specified, then target and build default to host. | |
7c66a493 VZ |
1002 | |
1003 | # The aliases save the names the user supplied, while $host etc. | |
1004 | # will get canonicalized. | |
a0b9e27f MB |
1005 | case $host---$target---$nonopt in |
1006 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
1007 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
1008 | esac | |
1009 | ||
1010 | ||
1011 | # Make sure we can run config.sub. | |
1012 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
1013 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
1014 | fi | |
1015 | ||
1016 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
3bce6687 | 1017 | echo "configure:1018: checking host system type" >&5 |
a0b9e27f MB |
1018 | |
1019 | host_alias=$host | |
1020 | case "$host_alias" in | |
1021 | NONE) | |
1022 | case $nonopt in | |
1023 | NONE) | |
1024 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
1025 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
1026 | fi ;; | |
1027 | *) host_alias=$nonopt ;; | |
1028 | esac ;; | |
1029 | esac | |
1030 | ||
1031 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
1032 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1033 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1034 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1035 | echo "$ac_t""$host" 1>&6 | |
1036 | ||
1037 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
3bce6687 | 1038 | echo "configure:1039: checking target system type" >&5 |
a0b9e27f MB |
1039 | |
1040 | target_alias=$target | |
1041 | case "$target_alias" in | |
1042 | NONE) | |
1043 | case $nonopt in | |
1044 | NONE) target_alias=$host_alias ;; | |
1045 | *) target_alias=$nonopt ;; | |
1046 | esac ;; | |
1047 | esac | |
1048 | ||
1049 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
1050 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1051 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1052 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1053 | echo "$ac_t""$target" 1>&6 | |
1054 | ||
1055 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
3bce6687 | 1056 | echo "configure:1057: checking build system type" >&5 |
a0b9e27f MB |
1057 | |
1058 | build_alias=$build | |
1059 | case "$build_alias" in | |
1060 | NONE) | |
1061 | case $nonopt in | |
1062 | NONE) build_alias=$host_alias ;; | |
1063 | *) build_alias=$nonopt ;; | |
1064 | esac ;; | |
1065 | esac | |
1066 | ||
1067 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
1068 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1069 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1070 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1071 | echo "$ac_t""$build" 1>&6 | |
1072 | ||
1073 | test "$host_alias" != "$target_alias" && | |
7c66a493 VZ |
1074 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1075 | NONENONEs,x,x, && | |
1076 | program_prefix=${target_alias}- | |
8284b0c5 MB |
1077 | |
1078 | ||
a0b9e27f | 1079 | |
10f2d63a | 1080 | WX_MAJOR_VERSION_NUMBER=2 |
37d403aa | 1081 | WX_MINOR_VERSION_NUMBER=3 |
a0d927d1 | 1082 | WX_RELEASE_NUMBER=3 |
10f2d63a | 1083 | |
10f2d63a | 1084 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1085 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1086 | |
978f1259 RL |
1087 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER |
1088 | ||
a0d927d1 | 1089 | WX_CURRENT=2 |
6426998c RL |
1090 | WX_REVISION=0 |
1091 | WX_AGE=0 | |
1092 | ||
8284b0c5 MB |
1093 | |
1094 | ||
10f2d63a VZ |
1095 | USE_UNIX=1 |
1096 | USE_WIN32=0 | |
f9bc1684 | 1097 | USE_DOS=0 |
b12915c1 | 1098 | USE_BEOS=0 |
1216f52d | 1099 | USE_MAC=0 |
b12915c1 | 1100 | |
10f2d63a VZ |
1101 | USE_LINUX= |
1102 | USE_SGI= | |
1103 | USE_HPUX= | |
1104 | USE_SYSV= | |
1105 | USE_SVR4= | |
1106 | USE_AIX= | |
1107 | USE_SUN= | |
1108 | USE_SOLARIS= | |
1109 | USE_SUNOS= | |
1110 | USE_ALPHA= | |
1111 | USE_OSF= | |
1112 | USE_BSD= | |
f11bdd03 | 1113 | USE_DARWIN= |
10f2d63a | 1114 | USE_FREEBSD= |
95c8801c | 1115 | USE_OPENBSD= |
f6bcfd97 | 1116 | USE_NETBSD= |
10f2d63a VZ |
1117 | USE_VMS= |
1118 | USE_ULTRIX= | |
10f2d63a VZ |
1119 | USE_DATA_GENERAL= |
1120 | ||
ab9b9eab VZ |
1121 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1122 | ||
f79bd02d | 1123 | ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11" |
10f2d63a VZ |
1124 | |
1125 | DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1126 | DEFAULT_wxUSE_MAC=0 |
1127 | DEFAULT_wxUSE_MGL=0 | |
1725144d | 1128 | DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1129 | DEFAULT_wxUSE_MOTIF=0 |
1130 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1131 | DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1132 | DEFAULT_wxUSE_WINE=0 |
f79bd02d | 1133 | DEFAULT_wxUSE_X11=0 |
10f2d63a VZ |
1134 | |
1135 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1136 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1137 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1725144d | 1138 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1139 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1140 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1141 | DEFAULT_DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1142 | DEFAULT_DEFAULT_wxUSE_WINE=0 |
f79bd02d | 1143 | DEFAULT_DEFAULT_wxUSE_X11=0 |
10f2d63a | 1144 | |
d6a55c4b | 1145 | PROGRAM_EXT= |
3a922bb4 | 1146 | SO_SUFFIX=so |
d6a55c4b | 1147 | |
10f2d63a VZ |
1148 | case "${host}" in |
1149 | *-hp-hpux* ) | |
1150 | USE_HPUX=1 | |
1151 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1152 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1153 | SO_SUFFIX=sl |
a0b9e27f | 1154 | cat >> confdefs.h <<\EOF |
10f2d63a | 1155 | #define __HPUX__ 1 |
a0b9e27f | 1156 | EOF |
10f2d63a VZ |
1157 | |
1158 | ;; | |
1159 | *-*-linux* ) | |
1160 | USE_LINUX=1 | |
a0b9e27f | 1161 | cat >> confdefs.h <<\EOF |
10f2d63a | 1162 | #define __LINUX__ 1 |
a0b9e27f | 1163 | EOF |
10f2d63a VZ |
1164 | |
1165 | TMP=`uname -m` | |
1166 | if test "x$TMP" = "xalpha"; then | |
1167 | USE_ALPHA=1 | |
a0b9e27f | 1168 | cat >> confdefs.h <<\EOF |
10f2d63a | 1169 | #define __ALPHA__ 1 |
a0b9e27f | 1170 | EOF |
10f2d63a VZ |
1171 | |
1172 | fi | |
1173 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1174 | ;; | |
1175 | *-*-irix5* | *-*-irix6* ) | |
1176 | USE_SGI=1 | |
1177 | USE_SVR4=1 | |
a0b9e27f | 1178 | cat >> confdefs.h <<\EOF |
10f2d63a | 1179 | #define __SGI__ 1 |
a0b9e27f | 1180 | EOF |
10f2d63a | 1181 | |
a0b9e27f | 1182 | cat >> confdefs.h <<\EOF |
10f2d63a | 1183 | #define __SVR4__ 1 |
a0b9e27f | 1184 | EOF |
10f2d63a VZ |
1185 | |
1186 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1187 | ;; | |
1188 | *-*-solaris2* ) | |
1189 | USE_SUN=1 | |
1190 | USE_SOLARIS=1 | |
1191 | USE_SVR4=1 | |
a0b9e27f | 1192 | cat >> confdefs.h <<\EOF |
10f2d63a | 1193 | #define __SUN__ 1 |
a0b9e27f | 1194 | EOF |
10f2d63a | 1195 | |
a0b9e27f | 1196 | cat >> confdefs.h <<\EOF |
10f2d63a | 1197 | #define __SOLARIS__ 1 |
a0b9e27f | 1198 | EOF |
10f2d63a | 1199 | |
a0b9e27f | 1200 | cat >> confdefs.h <<\EOF |
10f2d63a | 1201 | #define __SVR4__ 1 |
a0b9e27f | 1202 | EOF |
10f2d63a VZ |
1203 | |
1204 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1205 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1206 | ;; |
1207 | *-*-sunos4* ) | |
1208 | USE_SUN=1 | |
1209 | USE_SUNOS=1 | |
1210 | USE_BSD=1 | |
a0b9e27f | 1211 | cat >> confdefs.h <<\EOF |
10f2d63a | 1212 | #define __SUN__ 1 |
a0b9e27f | 1213 | EOF |
10f2d63a | 1214 | |
a0b9e27f | 1215 | cat >> confdefs.h <<\EOF |
10f2d63a | 1216 | #define __SUNOS__ 1 |
a0b9e27f | 1217 | EOF |
10f2d63a | 1218 | |
a0b9e27f | 1219 | cat >> confdefs.h <<\EOF |
10f2d63a | 1220 | #define __BSD__ 1 |
a0b9e27f | 1221 | EOF |
10f2d63a VZ |
1222 | |
1223 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1224 | ;; | |
f6bcfd97 | 1225 | *-*-freebsd*) |
10f2d63a VZ |
1226 | USE_BSD=1 |
1227 | USE_FREEBSD=1 | |
a0b9e27f | 1228 | cat >> confdefs.h <<\EOF |
10f2d63a | 1229 | #define __FREEBSD__ 1 |
a0b9e27f | 1230 | EOF |
10f2d63a | 1231 | |
a0b9e27f | 1232 | cat >> confdefs.h <<\EOF |
10f2d63a | 1233 | #define __BSD__ 1 |
a0b9e27f | 1234 | EOF |
95c8801c VS |
1235 | |
1236 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1237 | ;; | |
1238 | *-*-openbsd*) | |
1239 | USE_BSD=1 | |
1240 | USE_OPENBSD=1 | |
a0b9e27f | 1241 | cat >> confdefs.h <<\EOF |
95c8801c | 1242 | #define __FREEBSD__ 1 |
a0b9e27f | 1243 | EOF |
95c8801c | 1244 | |
a0b9e27f | 1245 | cat >> confdefs.h <<\EOF |
95c8801c | 1246 | #define __OPENBSD__ 1 |
a0b9e27f | 1247 | EOF |
f6bcfd97 BP |
1248 | |
1249 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1250 | ;; | |
1251 | *-*-netbsd*) | |
1252 | USE_BSD=1 | |
1253 | USE_NETBSD=1 | |
a0b9e27f | 1254 | cat >> confdefs.h <<\EOF |
f6bcfd97 | 1255 | #define __FREEBSD__ 1 |
a0b9e27f | 1256 | EOF |
f6bcfd97 | 1257 | |
a0b9e27f | 1258 | cat >> confdefs.h <<\EOF |
f6bcfd97 | 1259 | #define __NETBSD__ 1 |
a0b9e27f | 1260 | EOF |
10f2d63a VZ |
1261 | |
1262 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1263 | ;; | |
1264 | *-*-osf* ) | |
1265 | USE_ALPHA=1 | |
1266 | USE_OSF=1 | |
a0b9e27f | 1267 | cat >> confdefs.h <<\EOF |
10f2d63a | 1268 | #define __ALPHA__ 1 |
a0b9e27f | 1269 | EOF |
10f2d63a | 1270 | |
a0b9e27f | 1271 | cat >> confdefs.h <<\EOF |
10f2d63a | 1272 | #define __OSF__ 1 |
a0b9e27f | 1273 | EOF |
10f2d63a VZ |
1274 | |
1275 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1276 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1277 | ;; |
1278 | *-*-dgux5* ) | |
1279 | USE_ALPHA=1 | |
1280 | USE_SVR4=1 | |
a0b9e27f | 1281 | cat >> confdefs.h <<\EOF |
10f2d63a | 1282 | #define __ALPHA__ 1 |
a0b9e27f | 1283 | EOF |
10f2d63a | 1284 | |
a0b9e27f | 1285 | cat >> confdefs.h <<\EOF |
10f2d63a | 1286 | #define __SVR4__ 1 |
a0b9e27f | 1287 | EOF |
10f2d63a VZ |
1288 | |
1289 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1290 | ;; | |
1291 | *-*-sysv5* ) | |
1292 | USE_SYSV=1 | |
1293 | USE_SVR4=1 | |
a0b9e27f | 1294 | cat >> confdefs.h <<\EOF |
10f2d63a | 1295 | #define __SYSV__ 1 |
a0b9e27f | 1296 | EOF |
10f2d63a | 1297 | |
a0b9e27f | 1298 | cat >> confdefs.h <<\EOF |
10f2d63a | 1299 | #define __SVR4__ 1 |
a0b9e27f | 1300 | EOF |
10f2d63a VZ |
1301 | |
1302 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1303 | ;; | |
1304 | *-*-aix* ) | |
1305 | USE_AIX=1 | |
1306 | USE_SYSV=1 | |
1307 | USE_SVR4=1 | |
321d2b14 | 1308 | SO_SUFFIX=a |
a0b9e27f | 1309 | cat >> confdefs.h <<\EOF |
10f2d63a | 1310 | #define __AIX__ 1 |
a0b9e27f | 1311 | EOF |
10f2d63a | 1312 | |
a0b9e27f | 1313 | cat >> confdefs.h <<\EOF |
10f2d63a | 1314 | #define __SYSV__ 1 |
a0b9e27f | 1315 | EOF |
10f2d63a | 1316 | |
a0b9e27f | 1317 | cat >> confdefs.h <<\EOF |
10f2d63a | 1318 | #define __SVR4__ 1 |
a0b9e27f | 1319 | EOF |
10f2d63a VZ |
1320 | |
1321 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1322 | ;; | |
1323 | ||
1c8183e2 | 1324 | *-*-cygwin* | *-*-mingw32* ) |
17234b26 | 1325 | SO_SUFFIX=dll |
cf27ef00 | 1326 | PROGRAM_EXT=".exe" |
7b7a7637 | 1327 | RESCOMP=windres |
10f2d63a VZ |
1328 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1329 | ;; | |
1330 | ||
f9bc1684 VS |
1331 | *-pc-msdosdjgpp ) |
1332 | USE_UNIX=0 | |
1333 | USE_DOS=1 | |
a0b9e27f | 1334 | cat >> confdefs.h <<\EOF |
f9bc1684 | 1335 | #define __DOS__ 1 |
a0b9e27f | 1336 | EOF |
f9bc1684 VS |
1337 | |
1338 | PROGRAM_EXT=".exe" | |
1339 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
24f5e003 | 1340 | LIBS="$LIBS -lstdc++" |
f9bc1684 VS |
1341 | ;; |
1342 | ||
6fa882bd | 1343 | *-pc-os2_emx | *-pc-os2-emx ) |
a0b9e27f | 1344 | cat >> confdefs.h <<\EOF |
10f2d63a | 1345 | #define __EMX__ 1 |
a0b9e27f | 1346 | EOF |
10f2d63a | 1347 | |
cf27ef00 | 1348 | PROGRAM_EXT=".exe" |
e07802fc | 1349 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1350 | ;; |
1351 | ||
d08b457b GD |
1352 | powerpc-*-darwin* ) |
1353 | USE_BSD=1 | |
f11bdd03 | 1354 | USE_DARWIN=1 |
3a922bb4 | 1355 | SO_SUFFIX=dylib |
a0b9e27f | 1356 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1357 | #define __BSD__ 1 |
a0b9e27f | 1358 | EOF |
b4085ce6 | 1359 | |
a0b9e27f | 1360 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1361 | #define __DARWIN__ 1 |
a0b9e27f | 1362 | EOF |
d08b457b | 1363 | |
a0b9e27f | 1364 | cat >> confdefs.h <<\EOF |
d08b457b | 1365 | #define __POWERPC__ 1 |
a0b9e27f | 1366 | EOF |
b4085ce6 GD |
1367 | |
1368 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1369 | ;; | |
1370 | ||
b12915c1 VZ |
1371 | *-*-beos* ) |
1372 | USE_BEOS=1 | |
a0b9e27f | 1373 | cat >> confdefs.h <<\EOF |
b12915c1 | 1374 | #define __BEOS__ 1 |
a0b9e27f | 1375 | EOF |
b12915c1 VZ |
1376 | |
1377 | ;; | |
1378 | ||
10f2d63a | 1379 | *) |
a0b9e27f | 1380 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1381 | esac |
1382 | ||
8284b0c5 MB |
1383 | |
1384 | ||
1385 | ||
1386 | wx_arg_cache_file="configarg.cache" | |
1387 | echo "loading argument cache $wx_arg_cache_file" | |
10f2d63a VZ |
1388 | rm -f ${wx_arg_cache_file}.tmp |
1389 | touch ${wx_arg_cache_file}.tmp | |
1390 | touch ${wx_arg_cache_file} | |
a0b9e27f | 1391 | |
10f2d63a VZ |
1392 | |
1393 | DEBUG_CONFIGURE=0 | |
1394 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1395 | DEFAULT_wxUSE_UNIVERSAL=no |
1396 | ||
d8356fa3 VZ |
1397 | DEFAULT_wxUSE_NANOX=no |
1398 | ||
10f2d63a VZ |
1399 | DEFAULT_wxUSE_THREADS=yes |
1400 | ||
1401 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1402 | DEFAULT_wxUSE_SONAME=no |
1e6feb95 | 1403 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1404 | DEFAULT_wxUSE_PROFILE=no |
1405 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1406 | DEFAULT_wxUSE_NO_RTTI=no |
1407 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1408 | DEFAULT_wxUSE_PERMISSIVE=no |
1409 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1410 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1411 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1412 | DEFAULT_wxUSE_MEM_TRACING=no | |
1413 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1414 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1415 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1416 | DEFAULT_wxUSE_APPLE_IEEE=no |
1417 | ||
1418 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1419 | DEFAULT_wxUSE_LOGWINDOW=no |
1420 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 1421 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
1422 | |
1423 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1424 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1425 | |
3e44f09d | 1426 | DEFAULT_wxUSE_REGEX=no |
10f2d63a VZ |
1427 | DEFAULT_wxUSE_ZLIB=no |
1428 | DEFAULT_wxUSE_LIBPNG=no | |
1429 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1430 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1431 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1432 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1433 | |
eb4efbdc | 1434 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1435 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1436 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1437 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1438 | DEFAULT_wxUSE_DATETIME=no | |
1439 | DEFAULT_wxUSE_TIMEDATE=no | |
1440 | DEFAULT_wxUSE_TIMER=no | |
1441 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1442 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1443 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 1444 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 1445 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1446 | DEFAULT_wxUSE_WAVE=no |
1447 | DEFAULT_wxUSE_INTL=no | |
1448 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1449 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1450 | DEFAULT_wxUSE_STREAMS=no |
1451 | DEFAULT_wxUSE_SOCKETS=no | |
3bce6687 JS |
1452 | DEFAULT_wxUSE_OLE=no |
1453 | DEFAULT_wxUSE_DATAOBJ=no | |
10f2d63a | 1454 | DEFAULT_wxUSE_DIALUP_MANAGER=no |
10f2d63a | 1455 | DEFAULT_wxUSE_JOYSTICK=no |
6bff71f8 | 1456 | DEFAULT_wxUSE_DYNLIB_CLASS=no |
0b9ab0bd | 1457 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
10f2d63a | 1458 | DEFAULT_wxUSE_LONGLONG=no |
e8f65ba6 | 1459 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1460 | |
1461 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1462 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1463 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1464 | ||
1465 | DEFAULT_wxUSE_X_RESOURCES=no | |
1466 | DEFAULT_wxUSE_CLIPBOARD=no | |
1467 | DEFAULT_wxUSE_TOOLTIPS=no | |
1468 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1469 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1470 | DEFAULT_wxUSE_SPLINES=no |
1471 | ||
1472 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1473 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1474 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1475 | ||
1476 | DEFAULT_wxUSE_PROLOGIO=no | |
1477 | DEFAULT_wxUSE_RESOURCES=no | |
1478 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1479 | DEFAULT_wxUSE_IPC=no | |
1480 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 1481 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 1482 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 1483 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 1484 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 1485 | DEFAULT_wxUSE_MIMETYPE=no |
4cdb0ab0 VS |
1486 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no |
1487 | DEFAULT_wxUSE_PROTOCOL=no | |
1488 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
1489 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
1490 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
1491 | DEFAULT_wxUSE_URL=no | |
3bd8fb5f | 1492 | |
10f2d63a | 1493 | DEFAULT_wxUSE_COMMONDLGS=no |
1e6feb95 VZ |
1494 | DEFAULT_wxUSE_CHOICEDLG=no |
1495 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1496 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 1497 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 1498 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
1499 | DEFAULT_wxUSE_FONTDLG=no |
1500 | DEFAULT_wxUSE_MSGDLG=no | |
1501 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 1502 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 1503 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
1504 | DEFAULT_wxUSE_STARTUP_TIPS=no |
1505 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
1506 | DEFAULT_wxUSE_WIZARDDLG=no |
1507 | ||
1e6feb95 | 1508 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1509 | DEFAULT_wxUSE_MINIFRAME=no |
1510 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1511 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1512 | DEFAULT_wxUSE_FS_INET=no |
1513 | DEFAULT_wxUSE_FS_ZIP=no | |
1514 | DEFAULT_wxUSE_BUSYINFO=no | |
1515 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1516 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1517 | |
1518 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1519 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1520 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1521 | DEFAULT_wxUSE_CALCTRL=no |
1522 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1523 | DEFAULT_wxUSE_CHECKBOX=no |
1524 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1525 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a VZ |
1526 | DEFAULT_wxUSE_COMBOBOX=no |
1527 | DEFAULT_wxUSE_GAUGE=no | |
1528 | DEFAULT_wxUSE_GRID=no | |
1529 | DEFAULT_wxUSE_NEW_GRID=no | |
1530 | DEFAULT_wxUSE_IMAGLIST=no | |
1531 | DEFAULT_wxUSE_LISTBOX=no | |
1532 | DEFAULT_wxUSE_LISTCTRL=no | |
1533 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 1534 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
1535 | DEFAULT_wxUSE_RADIOBOX=no |
1536 | DEFAULT_wxUSE_RADIOBTN=no | |
1537 | DEFAULT_wxUSE_SASH=no | |
1538 | DEFAULT_wxUSE_SCROLLBAR=no | |
1539 | DEFAULT_wxUSE_SLIDER=no | |
1540 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1541 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1542 | DEFAULT_wxUSE_SPLITTER=no |
1543 | DEFAULT_wxUSE_STATBMP=no | |
1544 | DEFAULT_wxUSE_STATBOX=no | |
1545 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1546 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1547 | DEFAULT_wxUSE_STATUSBAR=yes |
1548 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1549 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1550 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1551 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1552 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1553 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 1554 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 1555 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 1556 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
1557 | |
1558 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1559 | DEFAULT_wxUSE_UNICODE_MSLU=no |
10f2d63a VZ |
1560 | DEFAULT_wxUSE_WCSRTOMBS=no |
1561 | ||
edae8572 | 1562 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 1563 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1564 | DEFAULT_wxUSE_GIF=no |
1565 | DEFAULT_wxUSE_PCX=no | |
1566 | DEFAULT_wxUSE_PNM=no | |
4b6b4dfc | 1567 | DEFAULT_wxUSE_IFF=no |
0046ff7c | 1568 | DEFAULT_wxUSE_XPM=no |
658974ae | 1569 | DEFAULT_wxUSE_ICO_CUR=no |
10f2d63a | 1570 | else |
1e6feb95 VZ |
1571 | DEFAULT_wxUSE_UNIVERSAL=no |
1572 | ||
d8356fa3 VZ |
1573 | DEFAULT_wxUSE_NANOX=no |
1574 | ||
10f2d63a VZ |
1575 | DEFAULT_wxUSE_THREADS=yes |
1576 | ||
1577 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1578 | DEFAULT_wxUSE_SONAME=no |
10f2d63a VZ |
1579 | DEFAULT_wxUSE_OPTIMISE=yes |
1580 | DEFAULT_wxUSE_PROFILE=no | |
1581 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1582 | DEFAULT_wxUSE_NO_RTTI=no |
1583 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1584 | DEFAULT_wxUSE_PERMISSIVE=no |
1585 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1586 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1587 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1588 | DEFAULT_wxUSE_MEM_TRACING=no | |
1589 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1590 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1591 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1592 | DEFAULT_wxUSE_APPLE_IEEE=yes |
1593 | ||
1594 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1595 | DEFAULT_wxUSE_LOGWINDOW=yes |
1596 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 1597 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
1598 | |
1599 | DEFAULT_wxUSE_GUI=yes | |
1600 | ||
831b3152 | 1601 | DEFAULT_wxUSE_REGEX=yes |
10f2d63a VZ |
1602 | DEFAULT_wxUSE_ZLIB=yes |
1603 | DEFAULT_wxUSE_LIBPNG=yes | |
1604 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1605 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1606 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1607 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1608 | |
eb4efbdc | 1609 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1610 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1611 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1612 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1613 | DEFAULT_wxUSE_DATETIME=yes | |
1614 | DEFAULT_wxUSE_TIMEDATE=no | |
1615 | DEFAULT_wxUSE_TIMER=yes | |
1616 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1617 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1618 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 1619 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 1620 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1621 | DEFAULT_wxUSE_WAVE=no |
1622 | DEFAULT_wxUSE_INTL=yes | |
1623 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1624 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1625 | DEFAULT_wxUSE_STREAMS=yes |
1626 | DEFAULT_wxUSE_SOCKETS=yes | |
3bce6687 JS |
1627 | DEFAULT_wxUSE_OLE=yes |
1628 | DEFAULT_wxUSE_DATAOBJ=yes | |
10f2d63a | 1629 | DEFAULT_wxUSE_DIALUP_MANAGER=yes |
10f2d63a | 1630 | DEFAULT_wxUSE_JOYSTICK=yes |
6bff71f8 | 1631 | DEFAULT_wxUSE_DYNLIB_CLASS=yes |
9337b578 | 1632 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes |
b685cd9b | 1633 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1634 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1635 | |
1636 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1637 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1638 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1639 | ||
1640 | DEFAULT_wxUSE_X_RESOURCES=no | |
1641 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1642 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1643 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1644 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1645 | DEFAULT_wxUSE_SPLINES=yes |
1646 | ||
1647 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1648 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1649 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1650 | ||
1651 | DEFAULT_wxUSE_PROLOGIO=yes | |
1652 | DEFAULT_wxUSE_RESOURCES=yes | |
1653 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1654 | DEFAULT_wxUSE_IPC=yes | |
1655 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 1656 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 1657 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 1658 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 1659 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 1660 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 1661 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
4cdb0ab0 VS |
1662 | DEFAULT_wxUSE_PROTOCOL=yes |
1663 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
1664 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
1665 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
1666 | DEFAULT_wxUSE_URL=yes | |
10f2d63a VZ |
1667 | |
1668 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1669 | DEFAULT_wxUSE_CHOICEDLG=yes |
1670 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1671 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 1672 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 1673 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
1674 | DEFAULT_wxUSE_FONTDLG=yes |
1675 | DEFAULT_wxUSE_MSGDLG=yes | |
1676 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 1677 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 1678 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
1679 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
1680 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
1681 | DEFAULT_wxUSE_WIZARDDLG=yes |
1682 | ||
1e6feb95 | 1683 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1684 | DEFAULT_wxUSE_MINIFRAME=yes |
1685 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1686 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1687 | DEFAULT_wxUSE_FS_INET=yes |
1688 | DEFAULT_wxUSE_FS_ZIP=yes | |
1689 | DEFAULT_wxUSE_BUSYINFO=yes | |
1690 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1691 | DEFAULT_wxUSE_VALIDATORS=yes | |
1692 | ||
1693 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1694 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1695 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1696 | DEFAULT_wxUSE_CALCTRL=yes |
1697 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1698 | DEFAULT_wxUSE_CHECKBOX=yes |
1699 | DEFAULT_wxUSE_CHECKLST=yes | |
1700 | DEFAULT_wxUSE_CHOICE=yes | |
1701 | DEFAULT_wxUSE_COMBOBOX=yes | |
1702 | DEFAULT_wxUSE_GAUGE=yes | |
1703 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1704 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1705 | DEFAULT_wxUSE_IMAGLIST=yes |
1706 | DEFAULT_wxUSE_LISTBOX=yes | |
1707 | DEFAULT_wxUSE_LISTCTRL=yes | |
1708 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 1709 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
1710 | DEFAULT_wxUSE_RADIOBOX=yes |
1711 | DEFAULT_wxUSE_RADIOBTN=yes | |
1712 | DEFAULT_wxUSE_SASH=yes | |
1713 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1714 | DEFAULT_wxUSE_SLIDER=yes | |
1715 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1716 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1717 | DEFAULT_wxUSE_SPLITTER=yes |
1718 | DEFAULT_wxUSE_STATBMP=yes | |
1719 | DEFAULT_wxUSE_STATBOX=yes | |
1720 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1721 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1722 | DEFAULT_wxUSE_STATUSBAR=yes |
1723 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1724 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1725 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1726 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1727 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1728 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 1729 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 1730 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 1731 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
1732 | |
1733 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1734 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
10f2d63a VZ |
1735 | DEFAULT_wxUSE_WCSRTOMBS=no |
1736 | ||
edae8572 | 1737 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 1738 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1739 | DEFAULT_wxUSE_GIF=yes |
1740 | DEFAULT_wxUSE_PCX=yes | |
cc0e8480 | 1741 | DEFAULT_wxUSE_IFF=no |
10f2d63a | 1742 | DEFAULT_wxUSE_PNM=yes |
0046ff7c | 1743 | DEFAULT_wxUSE_XPM=yes |
658974ae | 1744 | DEFAULT_wxUSE_ICO_CUR=yes |
10f2d63a VZ |
1745 | fi |
1746 | ||
8284b0c5 MB |
1747 | |
1748 | ||
10f2d63a | 1749 | for toolkit in `echo $ALL_TOOLKITS`; do |
d74f4b5a VZ |
1750 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` |
1751 | if test "x$LINE" != "x" ; then | |
10f2d63a VZ |
1752 | has_toolkit_in_cache=1 |
1753 | eval "DEFAULT_$LINE" | |
1754 | eval "CACHE_$toolkit=1" | |
1755 | fi | |
1756 | done | |
1757 | ||
8284b0c5 MB |
1758 | |
1759 | ||
5005acfe VZ |
1760 | enablestring= |
1761 | echo $ac_n "checking for --${enablestring:-enable}-gui""... $ac_c" 1>&6 | |
1762 | echo "configure:1763: checking for --${enablestring:-enable}-gui" >&5 | |
10f2d63a VZ |
1763 | no_cache=0 |
1764 | # Check whether --enable-gui or --disable-gui was given. | |
1765 | if test "${enable_gui+set}" = set; then | |
1766 | enableval="$enable_gui" | |
a0b9e27f | 1767 | |
10f2d63a VZ |
1768 | if test "$enableval" = yes; then |
1769 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1770 | else | |
1771 | ac_cv_use_gui='wxUSE_GUI=no' | |
1772 | fi | |
a0b9e27f | 1773 | |
10f2d63a | 1774 | else |
a0b9e27f | 1775 | |
10f2d63a VZ |
1776 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1777 | if test "x$LINE" != x ; then | |
1778 | eval "DEFAULT_$LINE" | |
1779 | else | |
1780 | no_cache=1 | |
1781 | fi | |
1782 | ||
1783 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
a0b9e27f MB |
1784 | |
1785 | fi | |
10f2d63a VZ |
1786 | |
1787 | ||
1788 | eval "$ac_cv_use_gui" | |
1789 | if test "$no_cache" != 1; then | |
1790 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1791 | fi | |
1792 | ||
1793 | if test "$wxUSE_GUI" = yes; then | |
a0b9e27f | 1794 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1795 | else |
a0b9e27f | 1796 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1797 | fi |
a0b9e27f | 1798 | |
10f2d63a | 1799 | |
b12915c1 | 1800 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1801 | |
8284b0c5 | 1802 | |
5005acfe VZ |
1803 | enablestring= |
1804 | echo $ac_n "checking for --${enablestring:-enable}-universal""... $ac_c" 1>&6 | |
1805 | echo "configure:1806: checking for --${enablestring:-enable}-universal" >&5 | |
1e6feb95 VZ |
1806 | no_cache=0 |
1807 | # Check whether --enable-universal or --disable-universal was given. | |
1808 | if test "${enable_universal+set}" = set; then | |
1809 | enableval="$enable_universal" | |
a0b9e27f | 1810 | |
1e6feb95 VZ |
1811 | if test "$enableval" = yes; then |
1812 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1813 | else | |
1814 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1815 | fi | |
a0b9e27f | 1816 | |
1e6feb95 | 1817 | else |
a0b9e27f | 1818 | |
1e6feb95 VZ |
1819 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` |
1820 | if test "x$LINE" != x ; then | |
1821 | eval "DEFAULT_$LINE" | |
1822 | else | |
1823 | no_cache=1 | |
1824 | fi | |
1825 | ||
1826 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
a0b9e27f MB |
1827 | |
1828 | fi | |
1e6feb95 VZ |
1829 | |
1830 | ||
1831 | eval "$ac_cv_use_universal" | |
1832 | if test "$no_cache" != 1; then | |
1833 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1834 | fi | |
1835 | ||
1836 | if test "$wxUSE_UNIVERSAL" = yes; then | |
a0b9e27f | 1837 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 1838 | else |
a0b9e27f | 1839 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 1840 | fi |
a0b9e27f | 1841 | |
10f2d63a VZ |
1842 | # Check whether --with-gtk or --without-gtk was given. |
1843 | if test "${with_gtk+set}" = set; then | |
1844 | withval="$with_gtk" | |
1845 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1846 | fi |
10f2d63a VZ |
1847 | |
1848 | # Check whether --with-motif or --without-motif was given. | |
1849 | if test "${with_motif+set}" = set; then | |
1850 | withval="$with_motif" | |
1851 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1852 | fi |
10f2d63a | 1853 | |
b4085ce6 GD |
1854 | # Check whether --with-mac or --without-mac was given. |
1855 | if test "${with_mac+set}" = set; then | |
1856 | withval="$with_mac" | |
1857 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
a0b9e27f | 1858 | fi |
b4085ce6 | 1859 | |
10f2d63a VZ |
1860 | # Check whether --with-wine or --without-wine was given. |
1861 | if test "${with_wine+set}" = set; then | |
1862 | withval="$with_wine" | |
1863 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1864 | fi |
10f2d63a | 1865 | |
77e13408 RL |
1866 | # Check whether --with-msw or --without-msw was given. |
1867 | if test "${with_msw+set}" = set; then | |
1868 | withval="$with_msw" | |
b4efce5e | 1869 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 |
a0b9e27f | 1870 | fi |
10f2d63a | 1871 | |
e07802fc VZ |
1872 | # Check whether --with-pm or --without-pm was given. |
1873 | if test "${with_pm+set}" = set; then | |
1874 | withval="$with_pm" | |
1875 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1876 | fi |
698dcdb6 | 1877 | |
1e6feb95 VZ |
1878 | # Check whether --with-mgl or --without-mgl was given. |
1879 | if test "${with_mgl+set}" = set; then | |
1880 | withval="$with_mgl" | |
6c657b52 | 1881 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 |
a0b9e27f | 1882 | fi |
1e6feb95 | 1883 | |
1725144d RR |
1884 | # Check whether --with-microwin or --without-microwin was given. |
1885 | if test "${with_microwin+set}" = set; then | |
1886 | withval="$with_microwin" | |
1887 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1888 | fi |
1725144d | 1889 | |
f79bd02d JS |
1890 | # Check whether --with-x11 or --without-x11 was given. |
1891 | if test "${with_x11+set}" = set; then | |
1892 | withval="$with_x11" | |
3c011993 | 1893 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 |
a0b9e27f | 1894 | fi |
10f2d63a | 1895 | |
a0b9e27f | 1896 | |
5005acfe VZ |
1897 | enablestring= |
1898 | echo $ac_n "checking for --${enablestring:-enable}-nanox""... $ac_c" 1>&6 | |
1899 | echo "configure:1900: checking for --${enablestring:-enable}-nanox" >&5 | |
d8356fa3 | 1900 | no_cache=0 |
ba875e66 VZ |
1901 | # Check whether --enable-nanox or --disable-nanox was given. |
1902 | if test "${enable_nanox+set}" = set; then | |
1903 | enableval="$enable_nanox" | |
a0b9e27f | 1904 | |
d8356fa3 | 1905 | if test "$enableval" = yes; then |
ba875e66 | 1906 | ac_cv_use_nanox='wxUSE_NANOX=yes' |
d8356fa3 | 1907 | else |
ba875e66 | 1908 | ac_cv_use_nanox='wxUSE_NANOX=no' |
d8356fa3 | 1909 | fi |
a0b9e27f | 1910 | |
d8356fa3 | 1911 | else |
a0b9e27f | 1912 | |
d8356fa3 VZ |
1913 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` |
1914 | if test "x$LINE" != x ; then | |
1915 | eval "DEFAULT_$LINE" | |
1916 | else | |
1917 | no_cache=1 | |
1918 | fi | |
1919 | ||
ba875e66 | 1920 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX |
a0b9e27f MB |
1921 | |
1922 | fi | |
d8356fa3 VZ |
1923 | |
1924 | ||
ba875e66 | 1925 | eval "$ac_cv_use_nanox" |
d8356fa3 | 1926 | if test "$no_cache" != 1; then |
ba875e66 | 1927 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp |
d8356fa3 VZ |
1928 | fi |
1929 | ||
1930 | if test "$wxUSE_NANOX" = yes; then | |
a0b9e27f | 1931 | echo "$ac_t""yes" 1>&6 |
d8356fa3 | 1932 | else |
a0b9e27f | 1933 | echo "$ac_t""no" 1>&6 |
d8356fa3 | 1934 | fi |
a0b9e27f | 1935 | |
8284b0c5 | 1936 | |
d74f4b5a | 1937 | |
5005acfe VZ |
1938 | enablestring= |
1939 | echo $ac_n "checking for --${enablestring:-enable}-gtk2""... $ac_c" 1>&6 | |
1940 | echo "configure:1941: checking for --${enablestring:-enable}-gtk2" >&5 | |
d74f4b5a VZ |
1941 | no_cache=0 |
1942 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
8168de4c VZ |
1943 | if test "${enable_gtk2+set}" = set; then |
1944 | enableval="$enable_gtk2" | |
a0b9e27f | 1945 | |
d74f4b5a VZ |
1946 | if test "$enableval" = yes; then |
1947 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
1948 | else | |
1949 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
1950 | fi | |
a0b9e27f | 1951 | |
10f2d63a | 1952 | else |
a0b9e27f | 1953 | |
d74f4b5a VZ |
1954 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` |
1955 | if test "x$LINE" != x ; then | |
1956 | eval "DEFAULT_$LINE" | |
1957 | else | |
1958 | no_cache=1 | |
1959 | fi | |
1960 | ||
1961 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
a0b9e27f MB |
1962 | |
1963 | fi | |
52127426 | 1964 | |
328a083c | 1965 | |
d74f4b5a VZ |
1966 | eval "$ac_cv_use_gtk2" |
1967 | if test "$no_cache" != 1; then | |
1968 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
1969 | fi | |
1970 | ||
1971 | if test "$wxUSE_GTK2" = yes; then | |
a0b9e27f | 1972 | echo "$ac_t""yes" 1>&6 |
d74f4b5a | 1973 | else |
a0b9e27f | 1974 | echo "$ac_t""no" 1>&6 |
d74f4b5a | 1975 | fi |
a0b9e27f | 1976 | |
d74f4b5a | 1977 | |
5c6fa7d2 | 1978 | |
a0b9e27f | 1979 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
5005acfe | 1980 | echo "configure:1981: checking for --with-libpng" >&5 |
8284b0c5 | 1981 | no_cache=0 |
a0b9e27f | 1982 | # Check whether --with-libpng or --without-libpng was given. |
b12915c1 VZ |
1983 | if test "${with_libpng+set}" = set; then |
1984 | withval="$with_libpng" | |
a0b9e27f | 1985 | |
10f2d63a | 1986 | if test "$withval" = yes; then |
b12915c1 | 1987 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1988 | elif test "$withval" = no; then |
b12915c1 | 1989 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
1990 | elif test "$withval" = sys; then |
1991 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
1992 | elif test "$withval" = builtin; then |
1993 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 1994 | else |
a0b9e27f | 1995 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1996 | fi |
a0b9e27f | 1997 | |
10f2d63a | 1998 | else |
a0b9e27f | 1999 | |
b12915c1 | 2000 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2001 | if test "x$LINE" != x ; then |
2002 | eval "DEFAULT_$LINE" | |
2003 | else | |
2004 | no_cache=1 | |
2005 | fi | |
2006 | ||
b12915c1 | 2007 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
a0b9e27f MB |
2008 | |
2009 | fi | |
10f2d63a VZ |
2010 | |
2011 | ||
b12915c1 | 2012 | eval "$ac_cv_use_libpng" |
10f2d63a | 2013 | if test "$no_cache" != 1; then |
b12915c1 | 2014 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2015 | fi |
2016 | ||
b12915c1 | 2017 | if test "$wxUSE_LIBPNG" = yes; then |
a0b9e27f | 2018 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2019 | elif test "$wxUSE_LIBPNG" = no; then |
a0b9e27f | 2020 | echo "$ac_t""no" 1>&6 |
422107f9 | 2021 | elif test "$wxUSE_LIBPNG" = sys; then |
a0b9e27f | 2022 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2023 | elif test "$wxUSE_LIBPNG" = builtin; then |
a0b9e27f | 2024 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 2025 | else |
a0b9e27f | 2026 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2027 | fi |
a0b9e27f | 2028 | |
10f2d63a | 2029 | |
a0b9e27f | 2030 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
5005acfe | 2031 | echo "configure:2032: checking for --with-libjpeg" >&5 |
10f2d63a | 2032 | no_cache=0 |
a0b9e27f | 2033 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
2034 | if test "${with_libjpeg+set}" = set; then |
2035 | withval="$with_libjpeg" | |
a0b9e27f | 2036 | |
10f2d63a | 2037 | if test "$withval" = yes; then |
b12915c1 | 2038 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 2039 | elif test "$withval" = no; then |
b12915c1 | 2040 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
2041 | elif test "$withval" = sys; then |
2042 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
2043 | elif test "$withval" = builtin; then |
2044 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 2045 | else |
a0b9e27f | 2046 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2047 | fi |
a0b9e27f | 2048 | |
10f2d63a | 2049 | else |
a0b9e27f | 2050 | |
b12915c1 | 2051 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2052 | if test "x$LINE" != x ; then |
2053 | eval "DEFAULT_$LINE" | |
2054 | else | |
2055 | no_cache=1 | |
2056 | fi | |
2057 | ||
b12915c1 | 2058 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
a0b9e27f MB |
2059 | |
2060 | fi | |
10f2d63a VZ |
2061 | |
2062 | ||
b12915c1 | 2063 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 2064 | if test "$no_cache" != 1; then |
b12915c1 | 2065 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2066 | fi |
2067 | ||
b12915c1 | 2068 | if test "$wxUSE_LIBJPEG" = yes; then |
a0b9e27f | 2069 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2070 | elif test "$wxUSE_LIBJPEG" = no; then |
a0b9e27f | 2071 | echo "$ac_t""no" 1>&6 |
422107f9 | 2072 | elif test "$wxUSE_LIBJPEG" = sys; then |
a0b9e27f | 2073 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2074 | elif test "$wxUSE_LIBJPEG" = builtin; then |
a0b9e27f | 2075 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 2076 | else |
a0b9e27f | 2077 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2078 | fi |
a0b9e27f | 2079 | |
10f2d63a | 2080 | |
a0b9e27f | 2081 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
5005acfe | 2082 | echo "configure:2083: checking for --with-libtiff" >&5 |
10f2d63a | 2083 | no_cache=0 |
a0b9e27f | 2084 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
2085 | if test "${with_libtiff+set}" = set; then |
2086 | withval="$with_libtiff" | |
a0b9e27f | 2087 | |
10f2d63a | 2088 | if test "$withval" = yes; then |
b12915c1 | 2089 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2090 | elif test "$withval" = no; then |
b12915c1 | 2091 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2092 | elif test "$withval" = sys; then |
2093 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
2094 | elif test "$withval" = builtin; then |
2095 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 2096 | else |
a0b9e27f | 2097 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2098 | fi |
a0b9e27f | 2099 | |
10f2d63a | 2100 | else |
a0b9e27f | 2101 | |
b12915c1 | 2102 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2103 | if test "x$LINE" != x ; then |
2104 | eval "DEFAULT_$LINE" | |
2105 | else | |
2106 | no_cache=1 | |
2107 | fi | |
2108 | ||
b12915c1 | 2109 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
a0b9e27f MB |
2110 | |
2111 | fi | |
10f2d63a VZ |
2112 | |
2113 | ||
b12915c1 | 2114 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2115 | if test "$no_cache" != 1; then |
b12915c1 | 2116 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2117 | fi |
2118 | ||
b12915c1 | 2119 | if test "$wxUSE_LIBTIFF" = yes; then |
a0b9e27f | 2120 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 2121 | elif test "$wxUSE_LIBTIFF" = no; then |
a0b9e27f | 2122 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 2123 | elif test "$wxUSE_LIBTIFF" = sys; then |
a0b9e27f | 2124 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2125 | elif test "$wxUSE_LIBTIFF" = builtin; then |
a0b9e27f | 2126 | echo "$ac_t""builtin version" 1>&6 |
0dcf9893 | 2127 | else |
a0b9e27f | 2128 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2129 | fi |
a0b9e27f | 2130 | |
10f2d63a | 2131 | |
a0b9e27f | 2132 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
5005acfe | 2133 | echo "configure:2134: checking for --with-opengl" >&5 |
10f2d63a | 2134 | no_cache=0 |
a0b9e27f | 2135 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2136 | if test "${with_opengl+set}" = set; then |
2137 | withval="$with_opengl" | |
a0b9e27f | 2138 | |
10f2d63a | 2139 | if test "$withval" = yes; then |
b12915c1 | 2140 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2141 | else |
b12915c1 | 2142 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2143 | fi |
a0b9e27f | 2144 | |
10f2d63a | 2145 | else |
a0b9e27f | 2146 | |
b12915c1 | 2147 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2148 | if test "x$LINE" != x ; then |
2149 | eval "DEFAULT_$LINE" | |
2150 | else | |
2151 | no_cache=1 | |
2152 | fi | |
2153 | ||
b12915c1 | 2154 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
a0b9e27f MB |
2155 | |
2156 | fi | |
10f2d63a VZ |
2157 | |
2158 | ||
b12915c1 | 2159 | eval "$ac_cv_use_opengl" |
10f2d63a | 2160 | if test "$no_cache" != 1; then |
b12915c1 | 2161 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2162 | fi |
2163 | ||
b12915c1 | 2164 | if test "$wxUSE_OPENGL" = yes; then |
a0b9e27f | 2165 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2166 | else |
a0b9e27f | 2167 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2168 | fi |
a0b9e27f | 2169 | |
10f2d63a | 2170 | |
b12915c1 VZ |
2171 | fi |
2172 | ||
5c6fa7d2 | 2173 | |
a0b9e27f | 2174 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
5005acfe | 2175 | echo "configure:2176: checking for --with-dmalloc" >&5 |
8284b0c5 | 2176 | no_cache=0 |
a0b9e27f | 2177 | # Check whether --with-dmalloc or --without-dmalloc was given. |
b12915c1 VZ |
2178 | if test "${with_dmalloc+set}" = set; then |
2179 | withval="$with_dmalloc" | |
a0b9e27f | 2180 | |
c7a2bf27 | 2181 | if test "$withval" = yes; then |
b12915c1 | 2182 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2183 | else |
b12915c1 | 2184 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2185 | fi |
a0b9e27f | 2186 | |
c7a2bf27 | 2187 | else |
a0b9e27f | 2188 | |
b12915c1 | 2189 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2190 | if test "x$LINE" != x ; then |
2191 | eval "DEFAULT_$LINE" | |
2192 | else | |
2193 | no_cache=1 | |
2194 | fi | |
2195 | ||
b12915c1 | 2196 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
a0b9e27f MB |
2197 | |
2198 | fi | |
c7a2bf27 RR |
2199 | |
2200 | ||
b12915c1 | 2201 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2202 | if test "$no_cache" != 1; then |
b12915c1 | 2203 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2204 | fi |
2205 | ||
b12915c1 | 2206 | if test "$wxUSE_DMALLOC" = yes; then |
a0b9e27f | 2207 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2208 | else |
a0b9e27f | 2209 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2210 | fi |
a0b9e27f | 2211 | |
c7a2bf27 | 2212 | |
a0b9e27f | 2213 | echo $ac_n "checking for --with-regex""... $ac_c" 1>&6 |
5005acfe | 2214 | echo "configure:2215: checking for --with-regex" >&5 |
3e44f09d | 2215 | no_cache=0 |
a0b9e27f | 2216 | # Check whether --with-regex or --without-regex was given. |
3e44f09d VZ |
2217 | if test "${with_regex+set}" = set; then |
2218 | withval="$with_regex" | |
a0b9e27f | 2219 | |
3e44f09d VZ |
2220 | if test "$withval" = yes; then |
2221 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2222 | elif test "$withval" = no; then | |
2223 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2224 | elif test "$withval" = sys; then | |
2225 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
2226 | elif test "$withval" = builtin; then |
2227 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 2228 | else |
a0b9e27f | 2229 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d | 2230 | fi |
a0b9e27f | 2231 | |
3e44f09d | 2232 | else |
a0b9e27f | 2233 | |
3e44f09d VZ |
2234 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` |
2235 | if test "x$LINE" != x ; then | |
2236 | eval "DEFAULT_$LINE" | |
2237 | else | |
2238 | no_cache=1 | |
2239 | fi | |
2240 | ||
2241 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
a0b9e27f MB |
2242 | |
2243 | fi | |
3e44f09d VZ |
2244 | |
2245 | ||
2246 | eval "$ac_cv_use_regex" | |
2247 | if test "$no_cache" != 1; then | |
2248 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2249 | fi | |
2250 | ||
2251 | if test "$wxUSE_REGEX" = yes; then | |
a0b9e27f | 2252 | echo "$ac_t""yes" 1>&6 |
3e44f09d | 2253 | elif test "$wxUSE_REGEX" = no; then |
a0b9e27f | 2254 | echo "$ac_t""no" 1>&6 |
3e44f09d | 2255 | elif test "$wxUSE_REGEX" = sys; then |
a0b9e27f | 2256 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2257 | elif test "$wxUSE_REGEX" = builtin; then |
a0b9e27f | 2258 | echo "$ac_t""builtin version" 1>&6 |
3e44f09d | 2259 | else |
a0b9e27f | 2260 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d | 2261 | fi |
a0b9e27f | 2262 | |
3e44f09d | 2263 | |
a0b9e27f | 2264 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
5005acfe | 2265 | echo "configure:2266: checking for --with-zlib" >&5 |
10f2d63a | 2266 | no_cache=0 |
a0b9e27f | 2267 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2268 | if test "${with_zlib+set}" = set; then |
2269 | withval="$with_zlib" | |
a0b9e27f | 2270 | |
10f2d63a | 2271 | if test "$withval" = yes; then |
b12915c1 | 2272 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2273 | elif test "$withval" = no; then |
b12915c1 | 2274 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2275 | elif test "$withval" = sys; then |
2276 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
2277 | elif test "$withval" = builtin; then |
2278 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 2279 | else |
a0b9e27f | 2280 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2281 | fi |
a0b9e27f | 2282 | |
10f2d63a | 2283 | else |
a0b9e27f | 2284 | |
b12915c1 | 2285 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2286 | if test "x$LINE" != x ; then |
2287 | eval "DEFAULT_$LINE" | |
2288 | else | |
2289 | no_cache=1 | |
2290 | fi | |
2291 | ||
b12915c1 | 2292 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
a0b9e27f MB |
2293 | |
2294 | fi | |
10f2d63a VZ |
2295 | |
2296 | ||
b12915c1 | 2297 | eval "$ac_cv_use_zlib" |
10f2d63a | 2298 | if test "$no_cache" != 1; then |
b12915c1 | 2299 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2300 | fi |
2301 | ||
b12915c1 | 2302 | if test "$wxUSE_ZLIB" = yes; then |
a0b9e27f | 2303 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2304 | elif test "$wxUSE_ZLIB" = no; then |
a0b9e27f | 2305 | echo "$ac_t""no" 1>&6 |
422107f9 | 2306 | elif test "$wxUSE_ZLIB" = sys; then |
a0b9e27f | 2307 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2308 | elif test "$wxUSE_ZLIB" = builtin; then |
a0b9e27f | 2309 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 2310 | else |
a0b9e27f | 2311 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2312 | fi |
a0b9e27f | 2313 | |
10f2d63a | 2314 | |
a0b9e27f | 2315 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
5005acfe | 2316 | echo "configure:2317: checking for --with-odbc" >&5 |
10f2d63a | 2317 | no_cache=0 |
a0b9e27f | 2318 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2319 | if test "${with_odbc+set}" = set; then |
2320 | withval="$with_odbc" | |
a0b9e27f | 2321 | |
10f2d63a VZ |
2322 | if test "$withval" = yes; then |
2323 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2324 | else | |
2325 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2326 | fi | |
a0b9e27f | 2327 | |
10f2d63a | 2328 | else |
a0b9e27f | 2329 | |
10f2d63a VZ |
2330 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2331 | if test "x$LINE" != x ; then | |
2332 | eval "DEFAULT_$LINE" | |
2333 | else | |
2334 | no_cache=1 | |
2335 | fi | |
2336 | ||
2337 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
a0b9e27f MB |
2338 | |
2339 | fi | |
10f2d63a VZ |
2340 | |
2341 | ||
2342 | eval "$ac_cv_use_odbc" | |
2343 | if test "$no_cache" != 1; then | |
2344 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2345 | fi | |
2346 | ||
2347 | if test "$wxUSE_ODBC" = yes; then | |
a0b9e27f | 2348 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2349 | else |
a0b9e27f | 2350 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2351 | fi |
a0b9e27f | 2352 | |
52127426 | 2353 | |
8284b0c5 MB |
2354 | |
2355 | ||
5005acfe VZ |
2356 | enablestring= |
2357 | echo $ac_n "checking for --${enablestring:-enable}-shared""... $ac_c" 1>&6 | |
2358 | echo "configure:2359: checking for --${enablestring:-enable}-shared" >&5 | |
10f2d63a VZ |
2359 | no_cache=0 |
2360 | # Check whether --enable-shared or --disable-shared was given. | |
2361 | if test "${enable_shared+set}" = set; then | |
2362 | enableval="$enable_shared" | |
a0b9e27f | 2363 | |
10f2d63a VZ |
2364 | if test "$enableval" = yes; then |
2365 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2366 | else | |
2367 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2368 | fi | |
a0b9e27f | 2369 | |
10f2d63a | 2370 | else |
a0b9e27f | 2371 | |
10f2d63a VZ |
2372 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2373 | if test "x$LINE" != x ; then | |
2374 | eval "DEFAULT_$LINE" | |
2375 | else | |
2376 | no_cache=1 | |
2377 | fi | |
2378 | ||
2379 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
a0b9e27f MB |
2380 | |
2381 | fi | |
10f2d63a VZ |
2382 | |
2383 | ||
2384 | eval "$ac_cv_use_shared" | |
2385 | if test "$no_cache" != 1; then | |
2386 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2387 | fi | |
2388 | ||
2389 | if test "$wxUSE_SHARED" = yes; then | |
a0b9e27f | 2390 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2391 | else |
a0b9e27f | 2392 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2393 | fi |
a0b9e27f | 2394 | |
10f2d63a | 2395 | |
5005acfe VZ |
2396 | enablestring= |
2397 | echo $ac_n "checking for --${enablestring:-enable}-soname""... $ac_c" 1>&6 | |
2398 | echo "configure:2399: checking for --${enablestring:-enable}-soname" >&5 | |
00cf1208 | 2399 | no_cache=0 |
3a922bb4 RL |
2400 | # Check whether --enable-soname or --disable-soname was given. |
2401 | if test "${enable_soname+set}" = set; then | |
2402 | enableval="$enable_soname" | |
a0b9e27f | 2403 | |
00cf1208 | 2404 | if test "$enableval" = yes; then |
3a922bb4 | 2405 | ac_cv_use_soname='wxUSE_SONAME=yes' |
00cf1208 | 2406 | else |
3a922bb4 | 2407 | ac_cv_use_soname='wxUSE_SONAME=no' |
00cf1208 | 2408 | fi |
a0b9e27f | 2409 | |
00cf1208 | 2410 | else |
a0b9e27f | 2411 | |
3a922bb4 | 2412 | LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}` |
00cf1208 RR |
2413 | if test "x$LINE" != x ; then |
2414 | eval "DEFAULT_$LINE" | |
2415 | else | |
2416 | no_cache=1 | |
2417 | fi | |
2418 | ||
3a922bb4 | 2419 | ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME |
a0b9e27f MB |
2420 | |
2421 | fi | |
00cf1208 RR |
2422 | |
2423 | ||
3a922bb4 | 2424 | eval "$ac_cv_use_soname" |
00cf1208 | 2425 | if test "$no_cache" != 1; then |
3a922bb4 | 2426 | echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp |
00cf1208 RR |
2427 | fi |
2428 | ||
3a922bb4 | 2429 | if test "$wxUSE_SONAME" = yes; then |
a0b9e27f | 2430 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2431 | else |
a0b9e27f | 2432 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2433 | fi |
a0b9e27f | 2434 | |
00cf1208 | 2435 | |
5005acfe VZ |
2436 | enablestring= |
2437 | echo $ac_n "checking for --${enablestring:-enable}-optimise""... $ac_c" 1>&6 | |
2438 | echo "configure:2439: checking for --${enablestring:-enable}-optimise" >&5 | |
10f2d63a VZ |
2439 | no_cache=0 |
2440 | # Check whether --enable-optimise or --disable-optimise was given. | |
2441 | if test "${enable_optimise+set}" = set; then | |
2442 | enableval="$enable_optimise" | |
a0b9e27f | 2443 | |
10f2d63a VZ |
2444 | if test "$enableval" = yes; then |
2445 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2446 | else | |
2447 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2448 | fi | |
a0b9e27f | 2449 | |
10f2d63a | 2450 | else |
a0b9e27f | 2451 | |
10f2d63a VZ |
2452 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2453 | if test "x$LINE" != x ; then | |
2454 | eval "DEFAULT_$LINE" | |
2455 | else | |
2456 | no_cache=1 | |
2457 | fi | |
2458 | ||
2459 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
a0b9e27f MB |
2460 | |
2461 | fi | |
10f2d63a VZ |
2462 | |
2463 | ||
2464 | eval "$ac_cv_use_optimise" | |
2465 | if test "$no_cache" != 1; then | |
2466 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2467 | fi | |
2468 | ||
2469 | if test "$wxUSE_OPTIMISE" = yes; then | |
a0b9e27f | 2470 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2471 | else |
a0b9e27f | 2472 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2473 | fi |
a0b9e27f | 2474 | |
10f2d63a | 2475 | |
5005acfe VZ |
2476 | enablestring= |
2477 | echo $ac_n "checking for --${enablestring:-enable}-debug""... $ac_c" 1>&6 | |
2478 | echo "configure:2479: checking for --${enablestring:-enable}-debug" >&5 | |
10f2d63a VZ |
2479 | no_cache=0 |
2480 | # Check whether --enable-debug or --disable-debug was given. | |
2481 | if test "${enable_debug+set}" = set; then | |
2482 | enableval="$enable_debug" | |
a0b9e27f | 2483 | |
10f2d63a VZ |
2484 | if test "$enableval" = yes; then |
2485 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2486 | else | |
2487 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2488 | fi | |
a0b9e27f | 2489 | |
10f2d63a | 2490 | else |
a0b9e27f | 2491 | |
10f2d63a VZ |
2492 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2493 | if test "x$LINE" != x ; then | |
2494 | eval "DEFAULT_$LINE" | |
2495 | else | |
2496 | no_cache=1 | |
2497 | fi | |
2498 | ||
2499 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
a0b9e27f MB |
2500 | |
2501 | fi | |
10f2d63a VZ |
2502 | |
2503 | ||
2504 | eval "$ac_cv_use_debug" | |
2505 | if test "$no_cache" != 1; then | |
2506 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2507 | fi | |
2508 | ||
2509 | if test "$wxUSE_DEBUG" = yes; then | |
a0b9e27f | 2510 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2511 | else |
a0b9e27f | 2512 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2513 | fi |
a0b9e27f | 2514 | |
52127426 | 2515 | |
8284b0c5 | 2516 | |
5005acfe VZ |
2517 | enablestring= |
2518 | echo $ac_n "checking for --${enablestring:-enable}-precomp""... $ac_c" 1>&6 | |
2519 | echo "configure:2520: checking for --${enablestring:-enable}-precomp" >&5 | |
683dccda GD |
2520 | no_cache=0 |
2521 | # Check whether --enable-precomp or --disable-precomp was given. | |
2522 | if test "${enable_precomp+set}" = set; then | |
2523 | enableval="$enable_precomp" | |
a0b9e27f | 2524 | |
683dccda GD |
2525 | if test "$enableval" = yes; then |
2526 | ac_cv_use_precomp='wxUSE_PRECOMP=yes' | |
2527 | else | |
2528 | ac_cv_use_precomp='wxUSE_PRECOMP=no' | |
2529 | fi | |
a0b9e27f | 2530 | |
683dccda | 2531 | else |
a0b9e27f | 2532 | |
683dccda GD |
2533 | LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}` |
2534 | if test "x$LINE" != x ; then | |
2535 | eval "DEFAULT_$LINE" | |
2536 | else | |
2537 | no_cache=1 | |
2538 | fi | |
2539 | ||
2540 | ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP | |
a0b9e27f MB |
2541 | |
2542 | fi | |
683dccda GD |
2543 | |
2544 | ||
2545 | eval "$ac_cv_use_precomp" | |
2546 | if test "$no_cache" != 1; then | |
2547 | echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp | |
2548 | fi | |
2549 | ||
2550 | if test "$wxUSE_PRECOMP" = yes; then | |
a0b9e27f | 2551 | echo "$ac_t""yes" 1>&6 |
683dccda | 2552 | else |
a0b9e27f | 2553 | echo "$ac_t""no" 1>&6 |
683dccda | 2554 | fi |
a0b9e27f | 2555 | |
683dccda | 2556 | |
10f2d63a VZ |
2557 | if test "$wxUSE_DEBUG" = "yes"; then |
2558 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2559 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2560 | elif test "$wxUSE_DEBUG" = "no"; then | |
2561 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2562 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2563 | fi | |
2564 | ||
8284b0c5 | 2565 | |
5005acfe VZ |
2566 | enablestring= |
2567 | echo $ac_n "checking for --${enablestring:-enable}-debug_flag""... $ac_c" 1>&6 | |
2568 | echo "configure:2569: checking for --${enablestring:-enable}-debug_flag" >&5 | |
10f2d63a VZ |
2569 | no_cache=0 |
2570 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2571 | if test "${enable_debug_flag+set}" = set; then | |
2572 | enableval="$enable_debug_flag" | |
a0b9e27f | 2573 | |
10f2d63a VZ |
2574 | if test "$enableval" = yes; then |
2575 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2576 | else | |
2577 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2578 | fi | |
a0b9e27f | 2579 | |
10f2d63a | 2580 | else |
a0b9e27f | 2581 | |
10f2d63a VZ |
2582 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2583 | if test "x$LINE" != x ; then | |
2584 | eval "DEFAULT_$LINE" | |
2585 | else | |
2586 | no_cache=1 | |
2587 | fi | |
2588 | ||
2589 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
a0b9e27f MB |
2590 | |
2591 | fi | |
10f2d63a VZ |
2592 | |
2593 | ||
2594 | eval "$ac_cv_use_debug_flag" | |
2595 | if test "$no_cache" != 1; then | |
2596 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2597 | fi | |
2598 | ||
2599 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
a0b9e27f | 2600 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2601 | else |
a0b9e27f | 2602 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2603 | fi |
a0b9e27f | 2604 | |
10f2d63a | 2605 | |
5005acfe VZ |
2606 | enablestring= |
2607 | echo $ac_n "checking for --${enablestring:-enable}-debug_info""... $ac_c" 1>&6 | |
2608 | echo "configure:2609: checking for --${enablestring:-enable}-debug_info" >&5 | |
10f2d63a VZ |
2609 | no_cache=0 |
2610 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2611 | if test "${enable_debug_info+set}" = set; then | |
2612 | enableval="$enable_debug_info" | |
a0b9e27f | 2613 | |
10f2d63a VZ |
2614 | if test "$enableval" = yes; then |
2615 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2616 | else | |
2617 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2618 | fi | |
a0b9e27f | 2619 | |
10f2d63a | 2620 | else |
a0b9e27f | 2621 | |
10f2d63a VZ |
2622 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2623 | if test "x$LINE" != x ; then | |
2624 | eval "DEFAULT_$LINE" | |
2625 | else | |
2626 | no_cache=1 | |
2627 | fi | |
2628 | ||
2629 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
a0b9e27f MB |
2630 | |
2631 | fi | |
10f2d63a VZ |
2632 | |
2633 | ||
2634 | eval "$ac_cv_use_debug_info" | |
2635 | if test "$no_cache" != 1; then | |
2636 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2637 | fi | |
2638 | ||
2639 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
a0b9e27f | 2640 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2641 | else |
a0b9e27f | 2642 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2643 | fi |
a0b9e27f | 2644 | |
10f2d63a | 2645 | |
5005acfe VZ |
2646 | enablestring= |
2647 | echo $ac_n "checking for --${enablestring:-enable}-debug_gdb""... $ac_c" 1>&6 | |
2648 | echo "configure:2649: checking for --${enablestring:-enable}-debug_gdb" >&5 | |
10f2d63a VZ |
2649 | no_cache=0 |
2650 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2651 | if test "${enable_debug_gdb+set}" = set; then | |
2652 | enableval="$enable_debug_gdb" | |
a0b9e27f | 2653 | |
10f2d63a VZ |
2654 | if test "$enableval" = yes; then |
2655 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2656 | else | |
2657 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2658 | fi | |
a0b9e27f | 2659 | |
10f2d63a | 2660 | else |
a0b9e27f | 2661 | |
10f2d63a VZ |
2662 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2663 | if test "x$LINE" != x ; then | |
2664 | eval "DEFAULT_$LINE" | |
2665 | else | |
2666 | no_cache=1 | |
2667 | fi | |
2668 | ||
2669 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
a0b9e27f MB |
2670 | |
2671 | fi | |
10f2d63a VZ |
2672 | |
2673 | ||
2674 | eval "$ac_cv_use_debug_gdb" | |
2675 | if test "$no_cache" != 1; then | |
2676 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2677 | fi | |
2678 | ||
2679 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
a0b9e27f | 2680 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2681 | else |
a0b9e27f | 2682 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2683 | fi |
a0b9e27f | 2684 | |
10f2d63a | 2685 | |
5005acfe VZ |
2686 | enablestring= |
2687 | echo $ac_n "checking for --${enablestring:-enable}-debug_cntxt""... $ac_c" 1>&6 | |
2688 | echo "configure:2689: checking for --${enablestring:-enable}-debug_cntxt" >&5 | |
10f2d63a VZ |
2689 | no_cache=0 |
2690 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2691 | if test "${enable_debug_cntxt+set}" = set; then | |
2692 | enableval="$enable_debug_cntxt" | |
a0b9e27f | 2693 | |
10f2d63a VZ |
2694 | if test "$enableval" = yes; then |
2695 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2696 | else | |
2697 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2698 | fi | |
a0b9e27f | 2699 | |
10f2d63a | 2700 | else |
a0b9e27f | 2701 | |
10f2d63a VZ |
2702 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2703 | if test "x$LINE" != x ; then | |
2704 | eval "DEFAULT_$LINE" | |
2705 | else | |
2706 | no_cache=1 | |
2707 | fi | |
2708 | ||
2709 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
a0b9e27f MB |
2710 | |
2711 | fi | |
10f2d63a VZ |
2712 | |
2713 | ||
2714 | eval "$ac_cv_use_debug_cntxt" | |
2715 | if test "$no_cache" != 1; then | |
2716 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2717 | fi | |
2718 | ||
2719 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
a0b9e27f | 2720 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2721 | else |
a0b9e27f | 2722 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2723 | fi |
a0b9e27f | 2724 | |
10f2d63a | 2725 | |
5005acfe VZ |
2726 | enablestring= |
2727 | echo $ac_n "checking for --${enablestring:-enable}-mem_tracing""... $ac_c" 1>&6 | |
2728 | echo "configure:2729: checking for --${enablestring:-enable}-mem_tracing" >&5 | |
10f2d63a VZ |
2729 | no_cache=0 |
2730 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2731 | if test "${enable_mem_tracing+set}" = set; then | |
2732 | enableval="$enable_mem_tracing" | |
a0b9e27f | 2733 | |
10f2d63a VZ |
2734 | if test "$enableval" = yes; then |
2735 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2736 | else | |
2737 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2738 | fi | |
a0b9e27f | 2739 | |
10f2d63a | 2740 | else |
a0b9e27f | 2741 | |
10f2d63a VZ |
2742 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2743 | if test "x$LINE" != x ; then | |
2744 | eval "DEFAULT_$LINE" | |
2745 | else | |
2746 | no_cache=1 | |
2747 | fi | |
2748 | ||
2749 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
a0b9e27f MB |
2750 | |
2751 | fi | |
10f2d63a VZ |
2752 | |
2753 | ||
2754 | eval "$ac_cv_use_mem_tracing" | |
2755 | if test "$no_cache" != 1; then | |
2756 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2757 | fi | |
2758 | ||
2759 | if test "$wxUSE_MEM_TRACING" = yes; then | |
a0b9e27f | 2760 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2761 | else |
a0b9e27f | 2762 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2763 | fi |
a0b9e27f | 2764 | |
10f2d63a | 2765 | |
5005acfe VZ |
2766 | enablestring= |
2767 | echo $ac_n "checking for --${enablestring:-enable}-profile""... $ac_c" 1>&6 | |
2768 | echo "configure:2769: checking for --${enablestring:-enable}-profile" >&5 | |
10f2d63a VZ |
2769 | no_cache=0 |
2770 | # Check whether --enable-profile or --disable-profile was given. | |
2771 | if test "${enable_profile+set}" = set; then | |
2772 | enableval="$enable_profile" | |
a0b9e27f | 2773 | |
10f2d63a VZ |
2774 | if test "$enableval" = yes; then |
2775 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2776 | else | |
2777 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2778 | fi | |
a0b9e27f | 2779 | |
10f2d63a | 2780 | else |
a0b9e27f | 2781 | |
10f2d63a VZ |
2782 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2783 | if test "x$LINE" != x ; then | |
2784 | eval "DEFAULT_$LINE" | |
2785 | else | |
2786 | no_cache=1 | |
2787 | fi | |
2788 | ||
2789 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
a0b9e27f MB |
2790 | |
2791 | fi | |
10f2d63a VZ |
2792 | |
2793 | ||
2794 | eval "$ac_cv_use_profile" | |
2795 | if test "$no_cache" != 1; then | |
2796 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2797 | fi | |
2798 | ||
2799 | if test "$wxUSE_PROFILE" = yes; then | |
a0b9e27f | 2800 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2801 | else |
a0b9e27f | 2802 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2803 | fi |
a0b9e27f | 2804 | |
10f2d63a | 2805 | |
5005acfe VZ |
2806 | enablestring= |
2807 | echo $ac_n "checking for --${enablestring:-enable}-no_rtti""... $ac_c" 1>&6 | |
2808 | echo "configure:2809: checking for --${enablestring:-enable}-no_rtti" >&5 | |
10f2d63a VZ |
2809 | no_cache=0 |
2810 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2811 | if test "${enable_no_rtti+set}" = set; then | |
2812 | enableval="$enable_no_rtti" | |
a0b9e27f | 2813 | |
10f2d63a VZ |
2814 | if test "$enableval" = yes; then |
2815 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2816 | else | |
2817 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2818 | fi | |
a0b9e27f | 2819 | |
10f2d63a | 2820 | else |
a0b9e27f | 2821 | |
10f2d63a VZ |
2822 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2823 | if test "x$LINE" != x ; then | |
2824 | eval "DEFAULT_$LINE" | |
2825 | else | |
2826 | no_cache=1 | |
2827 | fi | |
2828 | ||
2829 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
a0b9e27f MB |
2830 | |
2831 | fi | |
10f2d63a VZ |
2832 | |
2833 | ||
2834 | eval "$ac_cv_use_no_rtti" | |
2835 | if test "$no_cache" != 1; then | |
2836 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2837 | fi | |
2838 | ||
2839 | if test "$wxUSE_NO_RTTI" = yes; then | |
a0b9e27f | 2840 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2841 | else |
a0b9e27f | 2842 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2843 | fi |
a0b9e27f | 2844 | |
10f2d63a | 2845 | |
5005acfe VZ |
2846 | enablestring= |
2847 | echo $ac_n "checking for --${enablestring:-enable}-no_exceptions""... $ac_c" 1>&6 | |
2848 | echo "configure:2849: checking for --${enablestring:-enable}-no_exceptions" >&5 | |
10f2d63a VZ |
2849 | no_cache=0 |
2850 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2851 | if test "${enable_no_exceptions+set}" = set; then | |
2852 | enableval="$enable_no_exceptions" | |
a0b9e27f | 2853 | |
10f2d63a VZ |
2854 | if test "$enableval" = yes; then |
2855 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2856 | else | |
2857 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2858 | fi | |
a0b9e27f | 2859 | |
10f2d63a | 2860 | else |
a0b9e27f | 2861 | |
10f2d63a VZ |
2862 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2863 | if test "x$LINE" != x ; then | |
2864 | eval "DEFAULT_$LINE" | |
2865 | else | |
2866 | no_cache=1 | |
2867 | fi | |
2868 | ||
2869 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
a0b9e27f MB |
2870 | |
2871 | fi | |
10f2d63a VZ |
2872 | |
2873 | ||
2874 | eval "$ac_cv_use_no_exceptions" | |
2875 | if test "$no_cache" != 1; then | |
2876 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2877 | fi | |
2878 | ||
2879 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
a0b9e27f | 2880 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2881 | else |
a0b9e27f | 2882 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2883 | fi |
a0b9e27f | 2884 | |
10f2d63a | 2885 | |
5005acfe VZ |
2886 | enablestring= |
2887 | echo $ac_n "checking for --${enablestring:-enable}-permissive""... $ac_c" 1>&6 | |
2888 | echo "configure:2889: checking for --${enablestring:-enable}-permissive" >&5 | |
10f2d63a VZ |
2889 | no_cache=0 |
2890 | # Check whether --enable-permissive or --disable-permissive was given. | |
2891 | if test "${enable_permissive+set}" = set; then | |
2892 | enableval="$enable_permissive" | |
a0b9e27f | 2893 | |
10f2d63a VZ |
2894 | if test "$enableval" = yes; then |
2895 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2896 | else | |
2897 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2898 | fi | |
a0b9e27f | 2899 | |
10f2d63a | 2900 | else |
a0b9e27f | 2901 | |
10f2d63a VZ |
2902 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2903 | if test "x$LINE" != x ; then | |
2904 | eval "DEFAULT_$LINE" | |
2905 | else | |
2906 | no_cache=1 | |
2907 | fi | |
2908 | ||
2909 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
a0b9e27f MB |
2910 | |
2911 | fi | |
10f2d63a VZ |
2912 | |
2913 | ||
2914 | eval "$ac_cv_use_permissive" | |
2915 | if test "$no_cache" != 1; then | |
2916 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2917 | fi | |
2918 | ||
2919 | if test "$wxUSE_PERMISSIVE" = yes; then | |
a0b9e27f | 2920 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2921 | else |
a0b9e27f | 2922 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2923 | fi |
a0b9e27f | 2924 | |
10f2d63a | 2925 | |
5005acfe VZ |
2926 | enablestring= |
2927 | echo $ac_n "checking for --${enablestring:-enable}-no_deps""... $ac_c" 1>&6 | |
2928 | echo "configure:2929: checking for --${enablestring:-enable}-no_deps" >&5 | |
10f2d63a VZ |
2929 | no_cache=0 |
2930 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2931 | if test "${enable_no_deps+set}" = set; then | |
2932 | enableval="$enable_no_deps" | |
a0b9e27f | 2933 | |
10f2d63a VZ |
2934 | if test "$enableval" = yes; then |
2935 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2936 | else | |
2937 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2938 | fi | |
a0b9e27f | 2939 | |
10f2d63a | 2940 | else |
a0b9e27f | 2941 | |
10f2d63a VZ |
2942 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2943 | if test "x$LINE" != x ; then | |
2944 | eval "DEFAULT_$LINE" | |
2945 | else | |
2946 | no_cache=1 | |
2947 | fi | |
2948 | ||
2949 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
a0b9e27f MB |
2950 | |
2951 | fi | |
10f2d63a VZ |
2952 | |
2953 | ||
2954 | eval "$ac_cv_use_no_deps" | |
2955 | if test "$no_cache" != 1; then | |
2956 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2957 | fi | |
2958 | ||
2959 | if test "$wxUSE_NO_DEPS" = yes; then | |
a0b9e27f | 2960 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2961 | else |
a0b9e27f | 2962 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2963 | fi |
a0b9e27f | 2964 | |
52127426 | 2965 | |
8284b0c5 | 2966 | |
5005acfe VZ |
2967 | enablestring= |
2968 | echo $ac_n "checking for --${enablestring:-enable}-compat20""... $ac_c" 1>&6 | |
2969 | echo "configure:2970: checking for --${enablestring:-enable}-compat20" >&5 | |
54276ccf VZ |
2970 | no_cache=0 |
2971 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2972 | if test "${enable_compat20+set}" = set; then | |
2973 | enableval="$enable_compat20" | |
a0b9e27f | 2974 | |
54276ccf VZ |
2975 | if test "$enableval" = yes; then |
2976 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2977 | else | |
2978 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2979 | fi | |
a0b9e27f | 2980 | |
54276ccf | 2981 | else |
a0b9e27f | 2982 | |
54276ccf VZ |
2983 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` |
2984 | if test "x$LINE" != x ; then | |
2985 | eval "DEFAULT_$LINE" | |
2986 | else | |
2987 | no_cache=1 | |
2988 | fi | |
2989 | ||
2990 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
a0b9e27f MB |
2991 | |
2992 | fi | |
54276ccf VZ |
2993 | |
2994 | ||
2995 | eval "$ac_cv_use_compat20" | |
2996 | if test "$no_cache" != 1; then | |
2997 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
2998 | fi | |
2999 | ||
3000 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
a0b9e27f | 3001 | echo "$ac_t""yes" 1>&6 |
54276ccf | 3002 | else |
a0b9e27f | 3003 | echo "$ac_t""no" 1>&6 |
54276ccf | 3004 | fi |
a0b9e27f | 3005 | |
54276ccf | 3006 | |
5005acfe VZ |
3007 | enablestring=disable |
3008 | echo $ac_n "checking for --${enablestring:-enable}-compat22""... $ac_c" 1>&6 | |
3009 | echo "configure:3010: checking for --${enablestring:-enable}-compat22" >&5 | |
54276ccf VZ |
3010 | no_cache=0 |
3011 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
3012 | if test "${enable_compat22+set}" = set; then | |
3013 | enableval="$enable_compat22" | |
a0b9e27f | 3014 | |
54276ccf VZ |
3015 | if test "$enableval" = yes; then |
3016 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
3017 | else | |
3018 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
3019 | fi | |
a0b9e27f | 3020 | |
54276ccf | 3021 | else |
a0b9e27f | 3022 | |
54276ccf VZ |
3023 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` |
3024 | if test "x$LINE" != x ; then | |
3025 | eval "DEFAULT_$LINE" | |
3026 | else | |
3027 | no_cache=1 | |
3028 | fi | |
3029 | ||
3030 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
a0b9e27f MB |
3031 | |
3032 | fi | |
54276ccf VZ |
3033 | |
3034 | ||
3035 | eval "$ac_cv_use_compat22" | |
3036 | if test "$no_cache" != 1; then | |
3037 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
3038 | fi | |
3039 | ||
3040 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
a0b9e27f | 3041 | echo "$ac_t""yes" 1>&6 |
54276ccf | 3042 | else |
a0b9e27f | 3043 | echo "$ac_t""no" 1>&6 |
54276ccf | 3044 | fi |
a0b9e27f | 3045 | |
54276ccf | 3046 | |
3bd8fb5f RD |
3047 | # Check whether --enable-rpath or --disable-rpath was given. |
3048 | if test "${enable_rpath+set}" = set; then | |
3049 | enableval="$enable_rpath" | |
3050 | wxRPATH_DIR="$enableval" | |
a0b9e27f MB |
3051 | fi |
3052 | ||
3bd8fb5f RD |
3053 | |
3054 | if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then | |
3055 | WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR" | |
3056 | fi | |
3057 | ||
8284b0c5 MB |
3058 | |
3059 | ||
3060 | ||
5005acfe VZ |
3061 | enablestring= |
3062 | echo $ac_n "checking for --${enablestring:-enable}-intl""... $ac_c" 1>&6 | |
3063 | echo "configure:3064: checking for --${enablestring:-enable}-intl" >&5 | |
10f2d63a VZ |
3064 | no_cache=0 |
3065 | # Check whether --enable-intl or --disable-intl was given. | |
3066 | if test "${enable_intl+set}" = set; then | |
3067 | enableval="$enable_intl" | |
a0b9e27f | 3068 | |
10f2d63a VZ |
3069 | if test "$enableval" = yes; then |
3070 | ac_cv_use_intl='wxUSE_INTL=yes' | |
3071 | else | |
3072 | ac_cv_use_intl='wxUSE_INTL=no' | |
3073 | fi | |
a0b9e27f | 3074 | |
10f2d63a | 3075 | else |
a0b9e27f | 3076 | |
10f2d63a VZ |
3077 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
3078 | if test "x$LINE" != x ; then | |
3079 | eval "DEFAULT_$LINE" | |
3080 | else | |
3081 | no_cache=1 | |
3082 | fi | |
3083 | ||
3084 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
a0b9e27f MB |
3085 | |
3086 | fi | |
10f2d63a VZ |
3087 | |
3088 | ||
3089 | eval "$ac_cv_use_intl" | |
3090 | if test "$no_cache" != 1; then | |
3091 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3092 | fi | |
3093 | ||
3094 | if test "$wxUSE_INTL" = yes; then | |
a0b9e27f | 3095 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3096 | else |
a0b9e27f | 3097 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3098 | fi |
a0b9e27f | 3099 | |
10f2d63a | 3100 | |
5005acfe VZ |
3101 | enablestring= |
3102 | echo $ac_n "checking for --${enablestring:-enable}-config""... $ac_c" 1>&6 | |
3103 | echo "configure:3104: checking for --${enablestring:-enable}-config" >&5 | |
10f2d63a VZ |
3104 | no_cache=0 |
3105 | # Check whether --enable-config or --disable-config was given. | |
3106 | if test "${enable_config+set}" = set; then | |
3107 | enableval="$enable_config" | |
a0b9e27f | 3108 | |
10f2d63a VZ |
3109 | if test "$enableval" = yes; then |
3110 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3111 | else | |
3112 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3113 | fi | |
a0b9e27f | 3114 | |
10f2d63a | 3115 | else |
a0b9e27f | 3116 | |
10f2d63a VZ |
3117 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3118 | if test "x$LINE" != x ; then | |
3119 | eval "DEFAULT_$LINE" | |
3120 | else | |
3121 | no_cache=1 | |
3122 | fi | |
3123 | ||
3124 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
a0b9e27f MB |
3125 | |
3126 | fi | |
10f2d63a VZ |
3127 | |
3128 | ||
3129 | eval "$ac_cv_use_config" | |
3130 | if test "$no_cache" != 1; then | |
3131 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3132 | fi | |
3133 | ||
3134 | if test "$wxUSE_CONFIG" = yes; then | |
a0b9e27f | 3135 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3136 | else |
a0b9e27f | 3137 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3138 | fi |
a0b9e27f | 3139 | |
52127426 | 3140 | |
8284b0c5 | 3141 | |
5005acfe VZ |
3142 | enablestring= |
3143 | echo $ac_n "checking for --${enablestring:-enable}-protocols""... $ac_c" 1>&6 | |
3144 | echo "configure:3145: checking for --${enablestring:-enable}-protocols" >&5 | |
a1622950 VZ |
3145 | no_cache=0 |
3146 | # Check whether --enable-protocols or --disable-protocols was given. | |
3147 | if test "${enable_protocols+set}" = set; then | |
3148 | enableval="$enable_protocols" | |
a0b9e27f | 3149 | |
a1622950 VZ |
3150 | if test "$enableval" = yes; then |
3151 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
3152 | else | |
3153 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
3154 | fi | |
a0b9e27f | 3155 | |
a1622950 | 3156 | else |
a0b9e27f | 3157 | |
a1622950 VZ |
3158 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
3159 | if test "x$LINE" != x ; then | |
3160 | eval "DEFAULT_$LINE" | |
3161 | else | |
3162 | no_cache=1 | |
3163 | fi | |
3164 | ||
3165 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
a0b9e27f MB |
3166 | |
3167 | fi | |
a1622950 VZ |
3168 | |
3169 | ||
3170 | eval "$ac_cv_use_protocols" | |
3171 | if test "$no_cache" != 1; then | |
3172 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
3173 | fi | |
3174 | ||
3175 | if test "$wxUSE_PROTOCOL" = yes; then | |
a0b9e27f | 3176 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3177 | else |
a0b9e27f | 3178 | echo "$ac_t""no" 1>&6 |
a1622950 | 3179 | fi |
a0b9e27f | 3180 | |
a1622950 | 3181 | |
5005acfe VZ |
3182 | enablestring= |
3183 | echo $ac_n "checking for --${enablestring:-enable}-ftp""... $ac_c" 1>&6 | |
3184 | echo "configure:3185: checking for --${enablestring:-enable}-ftp" >&5 | |
a1622950 VZ |
3185 | no_cache=0 |
3186 | # Check whether --enable-ftp or --disable-ftp was given. | |
3187 | if test "${enable_ftp+set}" = set; then | |
3188 | enableval="$enable_ftp" | |
a0b9e27f | 3189 | |
a1622950 VZ |
3190 | if test "$enableval" = yes; then |
3191 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
3192 | else | |
3193 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
3194 | fi | |
a0b9e27f | 3195 | |
a1622950 | 3196 | else |
a0b9e27f | 3197 | |
a1622950 VZ |
3198 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
3199 | if test "x$LINE" != x ; then | |
3200 | eval "DEFAULT_$LINE" | |
3201 | else | |
3202 | no_cache=1 | |
3203 | fi | |
3204 | ||
3205 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
a0b9e27f MB |
3206 | |
3207 | fi | |
a1622950 VZ |
3208 | |
3209 | ||
3210 | eval "$ac_cv_use_ftp" | |
3211 | if test "$no_cache" != 1; then | |
3212 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
3213 | fi | |
3214 | ||
3215 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
a0b9e27f | 3216 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3217 | else |
a0b9e27f | 3218 | echo "$ac_t""no" 1>&6 |
a1622950 | 3219 | fi |
a0b9e27f | 3220 | |
a1622950 | 3221 | |
5005acfe VZ |
3222 | enablestring= |
3223 | echo $ac_n "checking for --${enablestring:-enable}-http""... $ac_c" 1>&6 | |
3224 | echo "configure:3225: checking for --${enablestring:-enable}-http" >&5 | |
a1622950 VZ |
3225 | no_cache=0 |
3226 | # Check whether --enable-http or --disable-http was given. | |
3227 | if test "${enable_http+set}" = set; then | |
3228 | enableval="$enable_http" | |
a0b9e27f | 3229 | |
a1622950 VZ |
3230 | if test "$enableval" = yes; then |
3231 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
3232 | else | |
3233 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
3234 | fi | |
a0b9e27f | 3235 | |
a1622950 | 3236 | else |
a0b9e27f | 3237 | |
a1622950 VZ |
3238 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
3239 | if test "x$LINE" != x ; then | |
3240 | eval "DEFAULT_$LINE" | |
3241 | else | |
3242 | no_cache=1 | |
3243 | fi | |
3244 | ||
3245 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
a0b9e27f MB |
3246 | |
3247 | fi | |
a1622950 VZ |
3248 | |
3249 | ||
3250 | eval "$ac_cv_use_http" | |
3251 | if test "$no_cache" != 1; then | |
3252 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
3253 | fi | |
3254 | ||
3255 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
a0b9e27f | 3256 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3257 | else |
a0b9e27f | 3258 | echo "$ac_t""no" 1>&6 |
a1622950 | 3259 | fi |
a0b9e27f | 3260 | |
a1622950 | 3261 | |
5005acfe VZ |
3262 | enablestring= |
3263 | echo $ac_n "checking for --${enablestring:-enable}-fileproto""... $ac_c" 1>&6 | |
3264 | echo "configure:3265: checking for --${enablestring:-enable}-fileproto" >&5 | |
a1622950 VZ |
3265 | no_cache=0 |
3266 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
3267 | if test "${enable_fileproto+set}" = set; then | |
3268 | enableval="$enable_fileproto" | |
a0b9e27f | 3269 | |
a1622950 VZ |
3270 | if test "$enableval" = yes; then |
3271 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
3272 | else | |
3273 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
3274 | fi | |
a0b9e27f | 3275 | |
a1622950 | 3276 | else |
a0b9e27f | 3277 | |
a1622950 VZ |
3278 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
3279 | if test "x$LINE" != x ; then | |
3280 | eval "DEFAULT_$LINE" | |
3281 | else | |
3282 | no_cache=1 | |
3283 | fi | |
3284 | ||
3285 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
a0b9e27f MB |
3286 | |
3287 | fi | |
a1622950 VZ |
3288 | |
3289 | ||
3290 | eval "$ac_cv_use_fileproto" | |
3291 | if test "$no_cache" != 1; then | |
3292 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
3293 | fi | |
3294 | ||
3295 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
a0b9e27f | 3296 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3297 | else |
a0b9e27f | 3298 | echo "$ac_t""no" 1>&6 |
a1622950 | 3299 | fi |
a0b9e27f | 3300 | |
a1622950 | 3301 | |
5005acfe VZ |
3302 | enablestring= |
3303 | echo $ac_n "checking for --${enablestring:-enable}-sockets""... $ac_c" 1>&6 | |
3304 | echo "configure:3305: checking for --${enablestring:-enable}-sockets" >&5 | |
10f2d63a VZ |
3305 | no_cache=0 |
3306 | # Check whether --enable-sockets or --disable-sockets was given. | |
3307 | if test "${enable_sockets+set}" = set; then | |
3308 | enableval="$enable_sockets" | |
a0b9e27f | 3309 | |
10f2d63a VZ |
3310 | if test "$enableval" = yes; then |
3311 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
3312 | else | |
3313 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
3314 | fi | |
a0b9e27f | 3315 | |
10f2d63a | 3316 | else |
a0b9e27f | 3317 | |
10f2d63a VZ |
3318 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
3319 | if test "x$LINE" != x ; then | |
3320 | eval "DEFAULT_$LINE" | |
3321 | else | |
3322 | no_cache=1 | |
3323 | fi | |
3324 | ||
3325 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
a0b9e27f MB |
3326 | |
3327 | fi | |
10f2d63a VZ |
3328 | |
3329 | ||
3330 | eval "$ac_cv_use_sockets" | |
3331 | if test "$no_cache" != 1; then | |
3332 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
3333 | fi | |
3334 | ||
3335 | if test "$wxUSE_SOCKETS" = yes; then | |
a0b9e27f | 3336 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3337 | else |
a0b9e27f | 3338 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3339 | fi |
a0b9e27f | 3340 | |
8284b0c5 | 3341 | |
5005acfe VZ |
3342 | enablestring= |
3343 | echo $ac_n "checking for --${enablestring:-enable}-ole""... $ac_c" 1>&6 | |
3344 | echo "configure:3345: checking for --${enablestring:-enable}-ole" >&5 | |
3bce6687 JS |
3345 | no_cache=0 |
3346 | # Check whether --enable-ole or --disable-ole was given. | |
3347 | if test "${enable_ole+set}" = set; then | |
3348 | enableval="$enable_ole" | |
3349 | ||
3350 | if test "$enableval" = yes; then | |
3351 | ac_cv_use_ole='wxUSE_OLE=yes' | |
3352 | else | |
3353 | ac_cv_use_ole='wxUSE_OLE=no' | |
3354 | fi | |
3355 | ||
3356 | else | |
3357 | ||
3358 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
3359 | if test "x$LINE" != x ; then | |
3360 | eval "DEFAULT_$LINE" | |
3361 | else | |
3362 | no_cache=1 | |
3363 | fi | |
3364 | ||
3365 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
3366 | ||
3367 | fi | |
3368 | ||
3369 | ||
3370 | eval "$ac_cv_use_ole" | |
3371 | if test "$no_cache" != 1; then | |
3372 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
3373 | fi | |
3374 | ||
3375 | if test "$wxUSE_OLE" = yes; then | |
3376 | echo "$ac_t""yes" 1>&6 | |
3377 | else | |
3378 | echo "$ac_t""no" 1>&6 | |
3379 | fi | |
3380 | ||
3381 | ||
5005acfe VZ |
3382 | enablestring= |
3383 | echo $ac_n "checking for --${enablestring:-enable}-dataobj""... $ac_c" 1>&6 | |
3384 | echo "configure:3385: checking for --${enablestring:-enable}-dataobj" >&5 | |
3bce6687 JS |
3385 | no_cache=0 |
3386 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
3387 | if test "${enable_dataobj+set}" = set; then | |
3388 | enableval="$enable_dataobj" | |
3389 | ||
3390 | if test "$enableval" = yes; then | |
3391 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
3392 | else | |
3393 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
3394 | fi | |
3395 | ||
3396 | else | |
3397 | ||
3398 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
3399 | if test "x$LINE" != x ; then | |
3400 | eval "DEFAULT_$LINE" | |
3401 | else | |
3402 | no_cache=1 | |
3403 | fi | |
3404 | ||
3405 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
3406 | ||
3407 | fi | |
3408 | ||
3409 | ||
3410 | eval "$ac_cv_use_dataobj" | |
3411 | if test "$no_cache" != 1; then | |
3412 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
3413 | fi | |
3414 | ||
3415 | if test "$wxUSE_DATAOBJ" = yes; then | |
3416 | echo "$ac_t""yes" 1>&6 | |
3417 | else | |
3418 | echo "$ac_t""no" 1>&6 | |
3419 | fi | |
3420 | ||
3421 | ||
52127426 | 3422 | |
5005acfe VZ |
3423 | enablestring= |
3424 | echo $ac_n "checking for --${enablestring:-enable}-ipc""... $ac_c" 1>&6 | |
3425 | echo "configure:3426: checking for --${enablestring:-enable}-ipc" >&5 | |
10f2d63a | 3426 | no_cache=0 |
eb4efbdc VZ |
3427 | # Check whether --enable-ipc or --disable-ipc was given. |
3428 | if test "${enable_ipc+set}" = set; then | |
3429 | enableval="$enable_ipc" | |
a0b9e27f | 3430 | |
10f2d63a | 3431 | if test "$enableval" = yes; then |
eb4efbdc | 3432 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 3433 | else |
eb4efbdc | 3434 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 3435 | fi |
a0b9e27f | 3436 | |
10f2d63a | 3437 | else |
a0b9e27f | 3438 | |
eb4efbdc | 3439 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
3440 | if test "x$LINE" != x ; then |
3441 | eval "DEFAULT_$LINE" | |
3442 | else | |
3443 | no_cache=1 | |
3444 | fi | |
3445 | ||
eb4efbdc | 3446 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
a0b9e27f MB |
3447 | |
3448 | fi | |
10f2d63a VZ |
3449 | |
3450 | ||
eb4efbdc | 3451 | eval "$ac_cv_use_ipc" |
10f2d63a | 3452 | if test "$no_cache" != 1; then |
eb4efbdc | 3453 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3454 | fi |
3455 | ||
eb4efbdc | 3456 | if test "$wxUSE_IPC" = yes; then |
a0b9e27f | 3457 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3458 | else |
a0b9e27f | 3459 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3460 | fi |
a0b9e27f | 3461 | |
52127426 | 3462 | |
8284b0c5 | 3463 | |
5005acfe VZ |
3464 | enablestring= |
3465 | echo $ac_n "checking for --${enablestring:-enable}-cmdline""... $ac_c" 1>&6 | |
3466 | echo "configure:3467: checking for --${enablestring:-enable}-cmdline" >&5 | |
1e6feb95 VZ |
3467 | no_cache=0 |
3468 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
3469 | if test "${enable_cmdline+set}" = set; then | |
3470 | enableval="$enable_cmdline" | |
a0b9e27f | 3471 | |
1e6feb95 VZ |
3472 | if test "$enableval" = yes; then |
3473 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
3474 | else | |
3475 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
3476 | fi | |
a0b9e27f | 3477 | |
1e6feb95 | 3478 | else |
a0b9e27f | 3479 | |
1e6feb95 VZ |
3480 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` |
3481 | if test "x$LINE" != x ; then | |
3482 | eval "DEFAULT_$LINE" | |
3483 | else | |
3484 | no_cache=1 | |
3485 | fi | |
3486 | ||
3487 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
a0b9e27f MB |
3488 | |
3489 | fi | |
1e6feb95 VZ |
3490 | |
3491 | ||
3492 | eval "$ac_cv_use_cmdline" | |
3493 | if test "$no_cache" != 1; then | |
3494 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3495 | fi | |
3496 | ||
3497 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
a0b9e27f | 3498 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3499 | else |
a0b9e27f | 3500 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3501 | fi |
a0b9e27f | 3502 | |
1e6feb95 | 3503 | |
5005acfe VZ |
3504 | enablestring= |
3505 | echo $ac_n "checking for --${enablestring:-enable}-datetime""... $ac_c" 1>&6 | |
3506 | echo "configure:3507: checking for --${enablestring:-enable}-datetime" >&5 | |
1e6feb95 VZ |
3507 | no_cache=0 |
3508 | # Check whether --enable-datetime or --disable-datetime was given. | |
3509 | if test "${enable_datetime+set}" = set; then | |
3510 | enableval="$enable_datetime" | |
a0b9e27f | 3511 | |
1e6feb95 VZ |
3512 | if test "$enableval" = yes; then |
3513 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3514 | else | |
3515 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3516 | fi | |
a0b9e27f | 3517 | |
1e6feb95 | 3518 | else |
a0b9e27f | 3519 | |
1e6feb95 VZ |
3520 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` |
3521 | if test "x$LINE" != x ; then | |
3522 | eval "DEFAULT_$LINE" | |
3523 | else | |
3524 | no_cache=1 | |
3525 | fi | |
3526 | ||
3527 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
a0b9e27f MB |
3528 | |
3529 | fi | |
1e6feb95 VZ |
3530 | |
3531 | ||
3532 | eval "$ac_cv_use_datetime" | |
3533 | if test "$no_cache" != 1; then | |
3534 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3535 | fi | |
3536 | ||
3537 | if test "$wxUSE_DATETIME" = yes; then | |
a0b9e27f | 3538 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3539 | else |
a0b9e27f | 3540 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3541 | fi |
a0b9e27f | 3542 | |
1e6feb95 | 3543 | |
5005acfe VZ |
3544 | enablestring= |
3545 | echo $ac_n "checking for --${enablestring:-enable}-timedate""... $ac_c" 1>&6 | |
3546 | echo "configure:3547: checking for --${enablestring:-enable}-timedate" >&5 | |
1e6feb95 VZ |
3547 | no_cache=0 |
3548 | # Check whether --enable-timedate or --disable-timedate was given. | |
3549 | if test "${enable_timedate+set}" = set; then | |
3550 | enableval="$enable_timedate" | |
a0b9e27f | 3551 | |
1e6feb95 VZ |
3552 | if test "$enableval" = yes; then |
3553 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3554 | else | |
3555 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3556 | fi | |
a0b9e27f | 3557 | |
1e6feb95 | 3558 | else |
a0b9e27f | 3559 | |
1e6feb95 VZ |
3560 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` |
3561 | if test "x$LINE" != x ; then | |
3562 | eval "DEFAULT_$LINE" | |
3563 | else | |
3564 | no_cache=1 | |
3565 | fi | |
3566 | ||
3567 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
a0b9e27f MB |
3568 | |
3569 | fi | |
1e6feb95 VZ |
3570 | |
3571 | ||
3572 | eval "$ac_cv_use_timedate" | |
3573 | if test "$no_cache" != 1; then | |
3574 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3575 | fi | |
3576 | ||
3577 | if test "$wxUSE_TIMEDATE" = yes; then | |
a0b9e27f | 3578 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3579 | else |
a0b9e27f | 3580 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3581 | fi |
a0b9e27f | 3582 | |
1e6feb95 | 3583 | |
5005acfe VZ |
3584 | enablestring= |
3585 | echo $ac_n "checking for --${enablestring:-enable}-stopwatch""... $ac_c" 1>&6 | |
3586 | echo "configure:3587: checking for --${enablestring:-enable}-stopwatch" >&5 | |
1e6feb95 VZ |
3587 | no_cache=0 |
3588 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3589 | if test "${enable_stopwatch+set}" = set; then | |
3590 | enableval="$enable_stopwatch" | |
a0b9e27f | 3591 | |
1e6feb95 VZ |
3592 | if test "$enableval" = yes; then |
3593 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3594 | else | |
3595 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3596 | fi | |
a0b9e27f | 3597 | |
1e6feb95 | 3598 | else |
a0b9e27f | 3599 | |
1e6feb95 VZ |
3600 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` |
3601 | if test "x$LINE" != x ; then | |
3602 | eval "DEFAULT_$LINE" | |
3603 | else | |
3604 | no_cache=1 | |
3605 | fi | |
3606 | ||
3607 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
a0b9e27f MB |
3608 | |
3609 | fi | |
1e6feb95 VZ |
3610 | |
3611 | ||
3612 | eval "$ac_cv_use_stopwatch" | |
3613 | if test "$no_cache" != 1; then | |
3614 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3615 | fi | |
3616 | ||
3617 | if test "$wxUSE_STOPWATCH" = yes; then | |
a0b9e27f | 3618 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3619 | else |
a0b9e27f | 3620 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3621 | fi |
a0b9e27f | 3622 | |
1e6feb95 | 3623 | |
5005acfe VZ |
3624 | enablestring= |
3625 | echo $ac_n "checking for --${enablestring:-enable}-dialupman""... $ac_c" 1>&6 | |
3626 | echo "configure:3627: checking for --${enablestring:-enable}-dialupman" >&5 | |
10f2d63a | 3627 | no_cache=0 |
eb4efbdc VZ |
3628 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3629 | if test "${enable_dialupman+set}" = set; then | |
3630 | enableval="$enable_dialupman" | |
a0b9e27f | 3631 | |
10f2d63a | 3632 | if test "$enableval" = yes; then |
eb4efbdc | 3633 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3634 | else |
eb4efbdc | 3635 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3636 | fi |
a0b9e27f | 3637 | |
10f2d63a | 3638 | else |
a0b9e27f | 3639 | |
eb4efbdc | 3640 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3641 | if test "x$LINE" != x ; then |
3642 | eval "DEFAULT_$LINE" | |
3643 | else | |
3644 | no_cache=1 | |
3645 | fi | |
3646 | ||
eb4efbdc | 3647 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
a0b9e27f MB |
3648 | |
3649 | fi | |
10f2d63a VZ |
3650 | |
3651 | ||
eb4efbdc | 3652 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3653 | if test "$no_cache" != 1; then |
eb4efbdc | 3654 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3655 | fi |
3656 | ||
eb4efbdc | 3657 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
a0b9e27f | 3658 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3659 | else |
a0b9e27f | 3660 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3661 | fi |
a0b9e27f | 3662 | |
10f2d63a | 3663 | |
5005acfe VZ |
3664 | enablestring= |
3665 | echo $ac_n "checking for --${enablestring:-enable}-apple_ieee""... $ac_c" 1>&6 | |
3666 | echo "configure:3667: checking for --${enablestring:-enable}-apple_ieee" >&5 | |
10f2d63a VZ |
3667 | no_cache=0 |
3668 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3669 | if test "${enable_apple_ieee+set}" = set; then | |
3670 | enableval="$enable_apple_ieee" | |
a0b9e27f | 3671 | |
10f2d63a VZ |
3672 | if test "$enableval" = yes; then |
3673 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3674 | else | |
3675 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3676 | fi | |
a0b9e27f | 3677 | |
10f2d63a | 3678 | else |
a0b9e27f | 3679 | |
10f2d63a VZ |
3680 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3681 | if test "x$LINE" != x ; then | |
3682 | eval "DEFAULT_$LINE" | |
3683 | else | |
3684 | no_cache=1 | |
3685 | fi | |
3686 | ||
3687 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
a0b9e27f MB |
3688 | |
3689 | fi | |
10f2d63a VZ |
3690 | |
3691 | ||
3692 | eval "$ac_cv_use_apple_ieee" | |
3693 | if test "$no_cache" != 1; then | |
3694 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3695 | fi | |
3696 | ||
3697 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
a0b9e27f | 3698 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3699 | else |
a0b9e27f | 3700 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3701 | fi |
a0b9e27f | 3702 | |
10f2d63a | 3703 | |
5005acfe VZ |
3704 | enablestring= |
3705 | echo $ac_n "checking for --${enablestring:-enable}-timer""... $ac_c" 1>&6 | |
3706 | echo "configure:3707: checking for --${enablestring:-enable}-timer" >&5 | |
10f2d63a | 3707 | no_cache=0 |
1e6feb95 VZ |
3708 | # Check whether --enable-timer or --disable-timer was given. |
3709 | if test "${enable_timer+set}" = set; then | |
3710 | enableval="$enable_timer" | |
a0b9e27f | 3711 | |
10f2d63a | 3712 | if test "$enableval" = yes; then |
1e6feb95 | 3713 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3714 | else |
1e6feb95 | 3715 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3716 | fi |
a0b9e27f | 3717 | |
10f2d63a | 3718 | else |
a0b9e27f | 3719 | |
1e6feb95 | 3720 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3721 | if test "x$LINE" != x ; then |
3722 | eval "DEFAULT_$LINE" | |
3723 | else | |
3724 | no_cache=1 | |
3725 | fi | |
3726 | ||
1e6feb95 | 3727 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
a0b9e27f MB |
3728 | |
3729 | fi | |
10f2d63a VZ |
3730 | |
3731 | ||
1e6feb95 | 3732 | eval "$ac_cv_use_timer" |
10f2d63a | 3733 | if test "$no_cache" != 1; then |
1e6feb95 | 3734 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3735 | fi |
3736 | ||
1e6feb95 | 3737 | if test "$wxUSE_TIMER" = yes; then |
a0b9e27f | 3738 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3739 | else |
a0b9e27f | 3740 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3741 | fi |
a0b9e27f | 3742 | |
10f2d63a | 3743 | |
5005acfe VZ |
3744 | enablestring= |
3745 | echo $ac_n "checking for --${enablestring:-enable}-wave""... $ac_c" 1>&6 | |
3746 | echo "configure:3747: checking for --${enablestring:-enable}-wave" >&5 | |
10f2d63a VZ |
3747 | no_cache=0 |
3748 | # Check whether --enable-wave or --disable-wave was given. | |
3749 | if test "${enable_wave+set}" = set; then | |
3750 | enableval="$enable_wave" | |
a0b9e27f | 3751 | |
10f2d63a VZ |
3752 | if test "$enableval" = yes; then |
3753 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3754 | else | |
3755 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3756 | fi | |
a0b9e27f | 3757 | |
10f2d63a | 3758 | else |
a0b9e27f | 3759 | |
10f2d63a VZ |
3760 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3761 | if test "x$LINE" != x ; then | |
3762 | eval "DEFAULT_$LINE" | |
3763 | else | |
3764 | no_cache=1 | |
3765 | fi | |
3766 | ||
3767 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
a0b9e27f MB |
3768 | |
3769 | fi | |
10f2d63a VZ |
3770 | |
3771 | ||
3772 | eval "$ac_cv_use_wave" | |
3773 | if test "$no_cache" != 1; then | |
3774 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3775 | fi | |
3776 | ||
3777 | if test "$wxUSE_WAVE" = yes; then | |
a0b9e27f | 3778 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3779 | else |
a0b9e27f | 3780 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3781 | fi |
a0b9e27f | 3782 | |
10f2d63a | 3783 | |
5005acfe VZ |
3784 | enablestring= |
3785 | echo $ac_n "checking for --${enablestring:-enable}-fraction""... $ac_c" 1>&6 | |
3786 | echo "configure:3787: checking for --${enablestring:-enable}-fraction" >&5 | |
10f2d63a VZ |
3787 | no_cache=0 |
3788 | # Check whether --enable-fraction or --disable-fraction was given. | |
3789 | if test "${enable_fraction+set}" = set; then | |
3790 | enableval="$enable_fraction" | |
a0b9e27f | 3791 | |
10f2d63a VZ |
3792 | if test "$enableval" = yes; then |
3793 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3794 | else | |
3795 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3796 | fi | |
a0b9e27f | 3797 | |
10f2d63a | 3798 | else |
a0b9e27f | 3799 | |
10f2d63a VZ |
3800 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3801 | if test "x$LINE" != x ; then | |
3802 | eval "DEFAULT_$LINE" | |
3803 | else | |
3804 | no_cache=1 | |
3805 | fi | |
3806 | ||
3807 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
a0b9e27f MB |
3808 | |
3809 | fi | |
10f2d63a VZ |
3810 | |
3811 | ||
3812 | eval "$ac_cv_use_fraction" | |
3813 | if test "$no_cache" != 1; then | |
3814 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3815 | fi | |
3816 | ||
3817 | if test "$wxUSE_FRACTION" = yes; then | |
a0b9e27f | 3818 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3819 | else |
a0b9e27f | 3820 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3821 | fi |
a0b9e27f | 3822 | |
10f2d63a | 3823 | |
5005acfe VZ |
3824 | enablestring= |
3825 | echo $ac_n "checking for --${enablestring:-enable}-dynlib""... $ac_c" 1>&6 | |
3826 | echo "configure:3827: checking for --${enablestring:-enable}-dynlib" >&5 | |
10f2d63a VZ |
3827 | no_cache=0 |
3828 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3829 | if test "${enable_dynlib+set}" = set; then | |
3830 | enableval="$enable_dynlib" | |
a0b9e27f | 3831 | |
10f2d63a VZ |
3832 | if test "$enableval" = yes; then |
3833 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3834 | else | |
3835 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3836 | fi | |
a0b9e27f | 3837 | |
10f2d63a | 3838 | else |
a0b9e27f | 3839 | |
10f2d63a VZ |
3840 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3841 | if test "x$LINE" != x ; then | |
3842 | eval "DEFAULT_$LINE" | |
3843 | else | |
3844 | no_cache=1 | |
3845 | fi | |
3846 | ||
3847 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
a0b9e27f MB |
3848 | |
3849 | fi | |
10f2d63a VZ |
3850 | |
3851 | ||
3852 | eval "$ac_cv_use_dynlib" | |
3853 | if test "$no_cache" != 1; then | |
3854 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3855 | fi | |
3856 | ||
3857 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
a0b9e27f | 3858 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3859 | else |
a0b9e27f | 3860 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3861 | fi |
a0b9e27f | 3862 | |
10f2d63a | 3863 | |
5005acfe VZ |
3864 | enablestring= |
3865 | echo $ac_n "checking for --${enablestring:-enable}-dynamicloader""... $ac_c" 1>&6 | |
3866 | echo "configure:3867: checking for --${enablestring:-enable}-dynamicloader" >&5 | |
0b9ab0bd RL |
3867 | no_cache=0 |
3868 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
3869 | if test "${enable_dynamicloader+set}" = set; then | |
3870 | enableval="$enable_dynamicloader" | |
a0b9e27f | 3871 | |
0b9ab0bd RL |
3872 | if test "$enableval" = yes; then |
3873 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
3874 | else | |
3875 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
3876 | fi | |
a0b9e27f | 3877 | |
0b9ab0bd | 3878 | else |
a0b9e27f | 3879 | |
0b9ab0bd RL |
3880 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` |
3881 | if test "x$LINE" != x ; then | |
3882 | eval "DEFAULT_$LINE" | |
3883 | else | |
3884 | no_cache=1 | |
3885 | fi | |
3886 | ||
3887 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
a0b9e27f MB |
3888 | |
3889 | fi | |
0b9ab0bd RL |
3890 | |
3891 | ||
3892 | eval "$ac_cv_use_dynamicloader" | |
3893 | if test "$no_cache" != 1; then | |
3894 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
3895 | fi | |
3896 | ||
3897 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
a0b9e27f | 3898 | echo "$ac_t""yes" 1>&6 |
0b9ab0bd | 3899 | else |
a0b9e27f | 3900 | echo "$ac_t""no" 1>&6 |
0b9ab0bd | 3901 | fi |
a0b9e27f | 3902 | |
0b9ab0bd | 3903 | |
5005acfe VZ |
3904 | enablestring= |
3905 | echo $ac_n "checking for --${enablestring:-enable}-longlong""... $ac_c" 1>&6 | |
3906 | echo "configure:3907: checking for --${enablestring:-enable}-longlong" >&5 | |
10f2d63a VZ |
3907 | no_cache=0 |
3908 | # Check whether --enable-longlong or --disable-longlong was given. | |
3909 | if test "${enable_longlong+set}" = set; then | |
3910 | enableval="$enable_longlong" | |
a0b9e27f | 3911 | |
10f2d63a VZ |
3912 | if test "$enableval" = yes; then |
3913 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3914 | else | |
3915 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3916 | fi | |
a0b9e27f | 3917 | |
10f2d63a | 3918 | else |
a0b9e27f | 3919 | |
10f2d63a VZ |
3920 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3921 | if test "x$LINE" != x ; then | |
3922 | eval "DEFAULT_$LINE" | |
3923 | else | |
3924 | no_cache=1 | |
3925 | fi | |
3926 | ||
3927 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
a0b9e27f MB |
3928 | |
3929 | fi | |
10f2d63a VZ |
3930 | |
3931 | ||
3932 | eval "$ac_cv_use_longlong" | |
3933 | if test "$no_cache" != 1; then | |
3934 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3935 | fi | |
3936 | ||
3937 | if test "$wxUSE_LONGLONG" = yes; then | |
a0b9e27f | 3938 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3939 | else |
a0b9e27f | 3940 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3941 | fi |
a0b9e27f | 3942 | |
10f2d63a | 3943 | |
5005acfe VZ |
3944 | enablestring= |
3945 | echo $ac_n "checking for --${enablestring:-enable}-geometry""... $ac_c" 1>&6 | |
3946 | echo "configure:3947: checking for --${enablestring:-enable}-geometry" >&5 | |
e8f65ba6 RR |
3947 | no_cache=0 |
3948 | # Check whether --enable-geometry or --disable-geometry was given. | |
3949 | if test "${enable_geometry+set}" = set; then | |
3950 | enableval="$enable_geometry" | |
a0b9e27f | 3951 | |
e8f65ba6 RR |
3952 | if test "$enableval" = yes; then |
3953 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3954 | else | |
3955 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3956 | fi | |
a0b9e27f | 3957 | |
e8f65ba6 | 3958 | else |
a0b9e27f | 3959 | |
e8f65ba6 RR |
3960 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
3961 | if test "x$LINE" != x ; then | |
3962 | eval "DEFAULT_$LINE" | |
3963 | else | |
3964 | no_cache=1 | |
3965 | fi | |
3966 | ||
3967 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
a0b9e27f MB |
3968 | |
3969 | fi | |
e8f65ba6 RR |
3970 | |
3971 | ||
3972 | eval "$ac_cv_use_geometry" | |
3973 | if test "$no_cache" != 1; then | |
3974 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3975 | fi | |
3976 | ||
3977 | if test "$wxUSE_GEOMETRY" = yes; then | |
a0b9e27f | 3978 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 3979 | else |
a0b9e27f | 3980 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 3981 | fi |
a0b9e27f | 3982 | |
e8f65ba6 | 3983 | |
5005acfe VZ |
3984 | enablestring= |
3985 | echo $ac_n "checking for --${enablestring:-enable}-log""... $ac_c" 1>&6 | |
3986 | echo "configure:3987: checking for --${enablestring:-enable}-log" >&5 | |
10f2d63a VZ |
3987 | no_cache=0 |
3988 | # Check whether --enable-log or --disable-log was given. | |
3989 | if test "${enable_log+set}" = set; then | |
3990 | enableval="$enable_log" | |
a0b9e27f | 3991 | |
10f2d63a VZ |
3992 | if test "$enableval" = yes; then |
3993 | ac_cv_use_log='wxUSE_LOG=yes' | |
3994 | else | |
3995 | ac_cv_use_log='wxUSE_LOG=no' | |
3996 | fi | |
a0b9e27f | 3997 | |
10f2d63a | 3998 | else |
a0b9e27f | 3999 | |
10f2d63a VZ |
4000 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
4001 | if test "x$LINE" != x ; then | |
4002 | eval "DEFAULT_$LINE" | |
4003 | else | |
4004 | no_cache=1 | |
4005 | fi | |
4006 | ||
4007 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
a0b9e27f MB |
4008 | |
4009 | fi | |
10f2d63a VZ |
4010 | |
4011 | ||
4012 | eval "$ac_cv_use_log" | |
4013 | if test "$no_cache" != 1; then | |
4014 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
4015 | fi | |
4016 | ||
4017 | if test "$wxUSE_LOG" = yes; then | |
a0b9e27f | 4018 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4019 | else |
a0b9e27f | 4020 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4021 | fi |
a0b9e27f | 4022 | |
10f2d63a | 4023 | |
5005acfe VZ |
4024 | enablestring= |
4025 | echo $ac_n "checking for --${enablestring:-enable}-streams""... $ac_c" 1>&6 | |
4026 | echo "configure:4027: checking for --${enablestring:-enable}-streams" >&5 | |
10f2d63a VZ |
4027 | no_cache=0 |
4028 | # Check whether --enable-streams or --disable-streams was given. | |
4029 | if test "${enable_streams+set}" = set; then | |
4030 | enableval="$enable_streams" | |
a0b9e27f | 4031 | |
10f2d63a VZ |
4032 | if test "$enableval" = yes; then |
4033 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
4034 | else | |
4035 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
4036 | fi | |
a0b9e27f | 4037 | |
10f2d63a | 4038 | else |
a0b9e27f | 4039 | |
10f2d63a VZ |
4040 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
4041 | if test "x$LINE" != x ; then | |
4042 | eval "DEFAULT_$LINE" | |
4043 | else | |
4044 | no_cache=1 | |
4045 | fi | |
4046 | ||
4047 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
a0b9e27f MB |
4048 | |
4049 | fi | |
10f2d63a VZ |
4050 | |
4051 | ||
4052 | eval "$ac_cv_use_streams" | |
4053 | if test "$no_cache" != 1; then | |
4054 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
4055 | fi | |
4056 | ||
4057 | if test "$wxUSE_STREAMS" = yes; then | |
a0b9e27f | 4058 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4059 | else |
a0b9e27f | 4060 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4061 | fi |
a0b9e27f | 4062 | |
10f2d63a | 4063 | |
5005acfe VZ |
4064 | enablestring= |
4065 | echo $ac_n "checking for --${enablestring:-enable}-file""... $ac_c" 1>&6 | |
4066 | echo "configure:4067: checking for --${enablestring:-enable}-file" >&5 | |
10f2d63a VZ |
4067 | no_cache=0 |
4068 | # Check whether --enable-file or --disable-file was given. | |
4069 | if test "${enable_file+set}" = set; then | |
4070 | enableval="$enable_file" | |
a0b9e27f | 4071 | |
10f2d63a VZ |
4072 | if test "$enableval" = yes; then |
4073 | ac_cv_use_file='wxUSE_FILE=yes' | |
4074 | else | |
4075 | ac_cv_use_file='wxUSE_FILE=no' | |
4076 | fi | |
a0b9e27f | 4077 | |
10f2d63a | 4078 | else |
a0b9e27f | 4079 | |
10f2d63a VZ |
4080 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
4081 | if test "x$LINE" != x ; then | |
4082 | eval "DEFAULT_$LINE" | |
4083 | else | |
4084 | no_cache=1 | |
4085 | fi | |
4086 | ||
4087 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
a0b9e27f MB |
4088 | |
4089 | fi | |
10f2d63a VZ |
4090 | |
4091 | ||
4092 | eval "$ac_cv_use_file" | |
4093 | if test "$no_cache" != 1; then | |
4094 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
4095 | fi | |
4096 | ||
4097 | if test "$wxUSE_FILE" = yes; then | |
a0b9e27f | 4098 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4099 | else |
a0b9e27f | 4100 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4101 | fi |
a0b9e27f | 4102 | |
10f2d63a | 4103 | |
5005acfe VZ |
4104 | enablestring= |
4105 | echo $ac_n "checking for --${enablestring:-enable}-ffile""... $ac_c" 1>&6 | |
4106 | echo "configure:4107: checking for --${enablestring:-enable}-ffile" >&5 | |
10f2d63a | 4107 | no_cache=0 |
1e6feb95 VZ |
4108 | # Check whether --enable-ffile or --disable-ffile was given. |
4109 | if test "${enable_ffile+set}" = set; then | |
4110 | enableval="$enable_ffile" | |
a0b9e27f | 4111 | |
10f2d63a | 4112 | if test "$enableval" = yes; then |
1e6feb95 | 4113 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 4114 | else |
1e6feb95 | 4115 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 4116 | fi |
a0b9e27f | 4117 | |
10f2d63a | 4118 | else |
a0b9e27f | 4119 | |
1e6feb95 | 4120 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4121 | if test "x$LINE" != x ; then |
4122 | eval "DEFAULT_$LINE" | |
4123 | else | |
4124 | no_cache=1 | |
4125 | fi | |
4126 | ||
1e6feb95 | 4127 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
a0b9e27f MB |
4128 | |
4129 | fi | |
10f2d63a VZ |
4130 | |
4131 | ||
1e6feb95 | 4132 | eval "$ac_cv_use_ffile" |
10f2d63a | 4133 | if test "$no_cache" != 1; then |
1e6feb95 | 4134 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4135 | fi |
4136 | ||
1e6feb95 | 4137 | if test "$wxUSE_FFILE" = yes; then |
a0b9e27f | 4138 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4139 | else |
a0b9e27f | 4140 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4141 | fi |
a0b9e27f | 4142 | |
10f2d63a | 4143 | |
5005acfe VZ |
4144 | enablestring= |
4145 | echo $ac_n "checking for --${enablestring:-enable}-textbuf""... $ac_c" 1>&6 | |
4146 | echo "configure:4147: checking for --${enablestring:-enable}-textbuf" >&5 | |
a3a584a7 VZ |
4147 | no_cache=0 |
4148 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
4149 | if test "${enable_textbuf+set}" = set; then | |
4150 | enableval="$enable_textbuf" | |
a0b9e27f | 4151 | |
a3a584a7 VZ |
4152 | if test "$enableval" = yes; then |
4153 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
4154 | else | |
4155 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
4156 | fi | |
a0b9e27f | 4157 | |
a3a584a7 | 4158 | else |
a0b9e27f | 4159 | |
a3a584a7 VZ |
4160 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` |
4161 | if test "x$LINE" != x ; then | |
4162 | eval "DEFAULT_$LINE" | |
4163 | else | |
4164 | no_cache=1 | |
4165 | fi | |
4166 | ||
4167 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
a0b9e27f MB |
4168 | |
4169 | fi | |
a3a584a7 VZ |
4170 | |
4171 | ||
4172 | eval "$ac_cv_use_textbuf" | |
4173 | if test "$no_cache" != 1; then | |
4174 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
4175 | fi | |
4176 | ||
4177 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
a0b9e27f | 4178 | echo "$ac_t""yes" 1>&6 |
a3a584a7 | 4179 | else |
a0b9e27f | 4180 | echo "$ac_t""no" 1>&6 |
a3a584a7 | 4181 | fi |
a0b9e27f | 4182 | |
a3a584a7 | 4183 | |
5005acfe VZ |
4184 | enablestring= |
4185 | echo $ac_n "checking for --${enablestring:-enable}-textfile""... $ac_c" 1>&6 | |
4186 | echo "configure:4187: checking for --${enablestring:-enable}-textfile" >&5 | |
10f2d63a | 4187 | no_cache=0 |
1e6feb95 VZ |
4188 | # Check whether --enable-textfile or --disable-textfile was given. |
4189 | if test "${enable_textfile+set}" = set; then | |
4190 | enableval="$enable_textfile" | |
a0b9e27f | 4191 | |
10f2d63a | 4192 | if test "$enableval" = yes; then |
1e6feb95 | 4193 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 4194 | else |
1e6feb95 | 4195 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 4196 | fi |
a0b9e27f | 4197 | |
10f2d63a | 4198 | else |
a0b9e27f | 4199 | |
1e6feb95 | 4200 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4201 | if test "x$LINE" != x ; then |
4202 | eval "DEFAULT_$LINE" | |
4203 | else | |
4204 | no_cache=1 | |
4205 | fi | |
4206 | ||
1e6feb95 | 4207 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
a0b9e27f MB |
4208 | |
4209 | fi | |
10f2d63a VZ |
4210 | |
4211 | ||
1e6feb95 | 4212 | eval "$ac_cv_use_textfile" |
10f2d63a | 4213 | if test "$no_cache" != 1; then |
1e6feb95 | 4214 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4215 | fi |
4216 | ||
1e6feb95 | 4217 | if test "$wxUSE_TEXTFILE" = yes; then |
a0b9e27f | 4218 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4219 | else |
a0b9e27f | 4220 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4221 | fi |
a0b9e27f | 4222 | |
10f2d63a | 4223 | |
5005acfe VZ |
4224 | enablestring= |
4225 | echo $ac_n "checking for --${enablestring:-enable}-fontmap""... $ac_c" 1>&6 | |
4226 | echo "configure:4227: checking for --${enablestring:-enable}-fontmap" >&5 | |
10f2d63a | 4227 | no_cache=0 |
1e6feb95 VZ |
4228 | # Check whether --enable-fontmap or --disable-fontmap was given. |
4229 | if test "${enable_fontmap+set}" = set; then | |
4230 | enableval="$enable_fontmap" | |
a0b9e27f | 4231 | |
10f2d63a | 4232 | if test "$enableval" = yes; then |
1e6feb95 | 4233 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 4234 | else |
1e6feb95 | 4235 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 4236 | fi |
a0b9e27f | 4237 | |
10f2d63a | 4238 | else |
a0b9e27f | 4239 | |
1e6feb95 | 4240 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
4241 | if test "x$LINE" != x ; then |
4242 | eval "DEFAULT_$LINE" | |
4243 | else | |
4244 | no_cache=1 | |
4245 | fi | |
4246 | ||
1e6feb95 | 4247 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
a0b9e27f MB |
4248 | |
4249 | fi | |
10f2d63a VZ |
4250 | |
4251 | ||
1e6feb95 | 4252 | eval "$ac_cv_use_fontmap" |
10f2d63a | 4253 | if test "$no_cache" != 1; then |
1e6feb95 | 4254 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4255 | fi |
4256 | ||
1e6feb95 | 4257 | if test "$wxUSE_FONTMAP" = yes; then |
a0b9e27f | 4258 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4259 | else |
a0b9e27f | 4260 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4261 | fi |
a0b9e27f | 4262 | |
10f2d63a | 4263 | |
5005acfe VZ |
4264 | enablestring= |
4265 | echo $ac_n "checking for --${enablestring:-enable}-unicode""... $ac_c" 1>&6 | |
4266 | echo "configure:4267: checking for --${enablestring:-enable}-unicode" >&5 | |
10f2d63a | 4267 | no_cache=0 |
1e6feb95 VZ |
4268 | # Check whether --enable-unicode or --disable-unicode was given. |
4269 | if test "${enable_unicode+set}" = set; then | |
4270 | enableval="$enable_unicode" | |
a0b9e27f | 4271 | |
1e6feb95 VZ |
4272 | if test "$enableval" = yes; then |
4273 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
4274 | else | |
4275 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
4276 | fi | |
a0b9e27f | 4277 | |
1e6feb95 | 4278 | else |
a0b9e27f | 4279 | |
1e6feb95 VZ |
4280 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` |
4281 | if test "x$LINE" != x ; then | |
4282 | eval "DEFAULT_$LINE" | |
4283 | else | |
4284 | no_cache=1 | |
4285 | fi | |
4286 | ||
4287 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
a0b9e27f MB |
4288 | |
4289 | fi | |
1e6feb95 VZ |
4290 | |
4291 | ||
4292 | eval "$ac_cv_use_unicode" | |
4293 | if test "$no_cache" != 1; then | |
4294 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
4295 | fi | |
4296 | ||
4297 | if test "$wxUSE_UNICODE" = yes; then | |
a0b9e27f | 4298 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 4299 | else |
a0b9e27f | 4300 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 4301 | fi |
a0b9e27f | 4302 | |
1e6feb95 | 4303 | |
5005acfe VZ |
4304 | enablestring= |
4305 | echo $ac_n "checking for --${enablestring:-enable}-mslu""... $ac_c" 1>&6 | |
4306 | echo "configure:4307: checking for --${enablestring:-enable}-mslu" >&5 | |
a72a4bfa VS |
4307 | no_cache=0 |
4308 | # Check whether --enable-mslu or --disable-mslu was given. | |
4309 | if test "${enable_mslu+set}" = set; then | |
4310 | enableval="$enable_mslu" | |
a0b9e27f | 4311 | |
a72a4bfa VS |
4312 | if test "$enableval" = yes; then |
4313 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
4314 | else | |
4315 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
4316 | fi | |
a0b9e27f | 4317 | |
a72a4bfa | 4318 | else |
a0b9e27f | 4319 | |
a72a4bfa VS |
4320 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` |
4321 | if test "x$LINE" != x ; then | |
4322 | eval "DEFAULT_$LINE" | |
4323 | else | |
4324 | no_cache=1 | |
4325 | fi | |
4326 | ||
4327 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
a0b9e27f MB |
4328 | |
4329 | fi | |
a72a4bfa VS |
4330 | |
4331 | ||
4332 | eval "$ac_cv_use_mslu" | |
4333 | if test "$no_cache" != 1; then | |
4334 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
4335 | fi | |
4336 | ||
4337 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
a0b9e27f | 4338 | echo "$ac_t""yes" 1>&6 |
a72a4bfa | 4339 | else |
a0b9e27f | 4340 | echo "$ac_t""no" 1>&6 |
a72a4bfa | 4341 | fi |
a0b9e27f | 4342 | |
a72a4bfa | 4343 | |
5005acfe VZ |
4344 | enablestring= |
4345 | echo $ac_n "checking for --${enablestring:-enable}-wxprintfv""... $ac_c" 1>&6 | |
4346 | echo "configure:4347: checking for --${enablestring:-enable}-wxprintfv" >&5 | |
1e6feb95 VZ |
4347 | no_cache=0 |
4348 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
4349 | if test "${enable_wxprintfv+set}" = set; then | |
4350 | enableval="$enable_wxprintfv" | |
a0b9e27f | 4351 | |
1e6feb95 | 4352 | if test "$enableval" = yes; then |
10f2d63a VZ |
4353 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
4354 | else | |
4355 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
4356 | fi | |
a0b9e27f | 4357 | |
10f2d63a | 4358 | else |
a0b9e27f | 4359 | |
10f2d63a VZ |
4360 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
4361 | if test "x$LINE" != x ; then | |
4362 | eval "DEFAULT_$LINE" | |
4363 | else | |
4364 | no_cache=1 | |
4365 | fi | |
4366 | ||
4367 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
a0b9e27f MB |
4368 | |
4369 | fi | |
10f2d63a VZ |
4370 | |
4371 | ||
4372 | eval "$ac_cv_use_wxprintfv" | |
4373 | if test "$no_cache" != 1; then | |
4374 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
4375 | fi | |
4376 | ||
4377 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
a0b9e27f | 4378 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4379 | else |
a0b9e27f | 4380 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4381 | fi |
a0b9e27f | 4382 | |
10f2d63a | 4383 | |
5005acfe VZ |
4384 | enablestring= |
4385 | echo $ac_n "checking for --${enablestring:-enable}-std_iostreams""... $ac_c" 1>&6 | |
4386 | echo "configure:4387: checking for --${enablestring:-enable}-std_iostreams" >&5 | |
10f2d63a VZ |
4387 | no_cache=0 |
4388 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
4389 | if test "${enable_std_iostreams+set}" = set; then | |
4390 | enableval="$enable_std_iostreams" | |
a0b9e27f | 4391 | |
10f2d63a VZ |
4392 | if test "$enableval" = yes; then |
4393 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
4394 | else | |
4395 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
4396 | fi | |
a0b9e27f | 4397 | |
10f2d63a | 4398 | else |
a0b9e27f | 4399 | |
10f2d63a VZ |
4400 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
4401 | if test "x$LINE" != x ; then | |
4402 | eval "DEFAULT_$LINE" | |
4403 | else | |
4404 | no_cache=1 | |
4405 | fi | |
4406 | ||
4407 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
a0b9e27f MB |
4408 | |
4409 | fi | |
10f2d63a VZ |
4410 | |
4411 | ||
4412 | eval "$ac_cv_use_std_iostreams" | |
4413 | if test "$no_cache" != 1; then | |
4414 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
4415 | fi | |
4416 | ||
4417 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
a0b9e27f | 4418 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4419 | else |
a0b9e27f | 4420 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4421 | fi |
a0b9e27f | 4422 | |
10f2d63a | 4423 | |
5005acfe VZ |
4424 | enablestring= |
4425 | echo $ac_n "checking for --${enablestring:-enable}-filesystem""... $ac_c" 1>&6 | |
4426 | echo "configure:4427: checking for --${enablestring:-enable}-filesystem" >&5 | |
24528b0c VS |
4427 | no_cache=0 |
4428 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
4429 | if test "${enable_filesystem+set}" = set; then | |
4430 | enableval="$enable_filesystem" | |
a0b9e27f | 4431 | |
24528b0c VS |
4432 | if test "$enableval" = yes; then |
4433 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
4434 | else | |
4435 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
4436 | fi | |
a0b9e27f | 4437 | |
24528b0c | 4438 | else |
a0b9e27f | 4439 | |
24528b0c VS |
4440 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
4441 | if test "x$LINE" != x ; then | |
4442 | eval "DEFAULT_$LINE" | |
4443 | else | |
4444 | no_cache=1 | |
4445 | fi | |
4446 | ||
4447 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
a0b9e27f MB |
4448 | |
4449 | fi | |
24528b0c VS |
4450 | |
4451 | ||
4452 | eval "$ac_cv_use_filesystem" | |
4453 | if test "$no_cache" != 1; then | |
4454 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
4455 | fi | |
4456 | ||
4457 | if test "$wxUSE_FILESYSTEM" = yes; then | |
a0b9e27f | 4458 | echo "$ac_t""yes" 1>&6 |
24528b0c | 4459 | else |
a0b9e27f | 4460 | echo "$ac_t""no" 1>&6 |
24528b0c | 4461 | fi |
a0b9e27f | 4462 | |
24528b0c | 4463 | |
5005acfe VZ |
4464 | enablestring= |
4465 | echo $ac_n "checking for --${enablestring:-enable}-fs_inet""... $ac_c" 1>&6 | |
4466 | echo "configure:4467: checking for --${enablestring:-enable}-fs_inet" >&5 | |
10f2d63a VZ |
4467 | no_cache=0 |
4468 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
4469 | if test "${enable_fs_inet+set}" = set; then | |
4470 | enableval="$enable_fs_inet" | |
a0b9e27f | 4471 | |
10f2d63a VZ |
4472 | if test "$enableval" = yes; then |
4473 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
4474 | else | |
4475 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
4476 | fi | |
a0b9e27f | 4477 | |
10f2d63a | 4478 | else |
a0b9e27f | 4479 | |
10f2d63a VZ |
4480 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
4481 | if test "x$LINE" != x ; then | |
4482 | eval "DEFAULT_$LINE" | |
4483 | else | |
4484 | no_cache=1 | |
4485 | fi | |
4486 | ||
4487 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
a0b9e27f MB |
4488 | |
4489 | fi | |
10f2d63a VZ |
4490 | |
4491 | ||
4492 | eval "$ac_cv_use_fs_inet" | |
4493 | if test "$no_cache" != 1; then | |
4494 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
4495 | fi | |
4496 | ||
4497 | if test "$wxUSE_FS_INET" = yes; then | |
a0b9e27f | 4498 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4499 | else |
a0b9e27f | 4500 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4501 | fi |
a0b9e27f | 4502 | |
10f2d63a | 4503 | |
5005acfe VZ |
4504 | enablestring= |
4505 | echo $ac_n "checking for --${enablestring:-enable}-fs_zip""... $ac_c" 1>&6 | |
4506 | echo "configure:4507: checking for --${enablestring:-enable}-fs_zip" >&5 | |
10f2d63a VZ |
4507 | no_cache=0 |
4508 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
4509 | if test "${enable_fs_zip+set}" = set; then | |
4510 | enableval="$enable_fs_zip" | |
a0b9e27f | 4511 | |
10f2d63a VZ |
4512 | if test "$enableval" = yes; then |
4513 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
4514 | else | |
4515 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
4516 | fi | |
a0b9e27f | 4517 | |
10f2d63a | 4518 | else |
a0b9e27f | 4519 | |
10f2d63a VZ |
4520 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
4521 | if test "x$LINE" != x ; then | |
4522 | eval "DEFAULT_$LINE" | |
4523 | else | |
4524 | no_cache=1 | |
4525 | fi | |
4526 | ||
4527 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
a0b9e27f MB |
4528 | |
4529 | fi | |
10f2d63a VZ |
4530 | |
4531 | ||
4532 | eval "$ac_cv_use_fs_zip" | |
4533 | if test "$no_cache" != 1; then | |
4534 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
4535 | fi | |
4536 | ||
4537 | if test "$wxUSE_FS_ZIP" = yes; then | |
a0b9e27f | 4538 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4539 | else |
a0b9e27f | 4540 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4541 | fi |
a0b9e27f | 4542 | |
10f2d63a | 4543 | |
5005acfe VZ |
4544 | enablestring= |
4545 | echo $ac_n "checking for --${enablestring:-enable}-zipstream""... $ac_c" 1>&6 | |
4546 | echo "configure:4547: checking for --${enablestring:-enable}-zipstream" >&5 | |
10f2d63a VZ |
4547 | no_cache=0 |
4548 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
4549 | if test "${enable_zipstream+set}" = set; then | |
4550 | enableval="$enable_zipstream" | |
a0b9e27f | 4551 | |
10f2d63a VZ |
4552 | if test "$enableval" = yes; then |
4553 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
4554 | else | |
4555 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
4556 | fi | |
a0b9e27f | 4557 | |
10f2d63a | 4558 | else |
a0b9e27f | 4559 | |
10f2d63a VZ |
4560 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
4561 | if test "x$LINE" != x ; then | |
4562 | eval "DEFAULT_$LINE" | |
4563 | else | |
4564 | no_cache=1 | |
4565 | fi | |
4566 | ||
4567 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
a0b9e27f MB |
4568 | |
4569 | fi | |
10f2d63a VZ |
4570 | |
4571 | ||
4572 | eval "$ac_cv_use_zipstream" | |
4573 | if test "$no_cache" != 1; then | |
4574 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4575 | fi | |
4576 | ||
4577 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
a0b9e27f | 4578 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4579 | else |
a0b9e27f | 4580 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4581 | fi |
a0b9e27f | 4582 | |
8284b0c5 | 4583 | |
52127426 | 4584 | |
5005acfe VZ |
4585 | enablestring= |
4586 | echo $ac_n "checking for --${enablestring:-enable}-catch_segvs""... $ac_c" 1>&6 | |
4587 | echo "configure:4588: checking for --${enablestring:-enable}-catch_segvs" >&5 | |
eb4efbdc VZ |
4588 | no_cache=0 |
4589 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4590 | if test "${enable_catch_segvs+set}" = set; then | |
4591 | enableval="$enable_catch_segvs" | |
a0b9e27f | 4592 | |
eb4efbdc VZ |
4593 | if test "$enableval" = yes; then |
4594 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4595 | else | |
4596 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4597 | fi | |
a0b9e27f | 4598 | |
eb4efbdc | 4599 | else |
a0b9e27f | 4600 | |
eb4efbdc VZ |
4601 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4602 | if test "x$LINE" != x ; then | |
4603 | eval "DEFAULT_$LINE" | |
4604 | else | |
4605 | no_cache=1 | |
4606 | fi | |
4607 | ||
4608 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
a0b9e27f MB |
4609 | |
4610 | fi | |
eb4efbdc VZ |
4611 | |
4612 | ||
4613 | eval "$ac_cv_use_catch_segvs" | |
4614 | if test "$no_cache" != 1; then | |
4615 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4616 | fi | |
4617 | ||
4618 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
a0b9e27f | 4619 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4620 | else |
a0b9e27f | 4621 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4622 | fi |
a0b9e27f | 4623 | |
eb4efbdc | 4624 | |
5005acfe VZ |
4625 | enablestring= |
4626 | echo $ac_n "checking for --${enablestring:-enable}-snglinst""... $ac_c" 1>&6 | |
4627 | echo "configure:4628: checking for --${enablestring:-enable}-snglinst" >&5 | |
4f3c5f06 VZ |
4628 | no_cache=0 |
4629 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4630 | if test "${enable_snglinst+set}" = set; then | |
4631 | enableval="$enable_snglinst" | |
a0b9e27f | 4632 | |
4f3c5f06 VZ |
4633 | if test "$enableval" = yes; then |
4634 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4635 | else | |
4636 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4637 | fi | |
a0b9e27f | 4638 | |
4f3c5f06 | 4639 | else |
a0b9e27f | 4640 | |
4f3c5f06 VZ |
4641 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4642 | if test "x$LINE" != x ; then | |
4643 | eval "DEFAULT_$LINE" | |
4644 | else | |
4645 | no_cache=1 | |
4646 | fi | |
4647 | ||
4648 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
a0b9e27f MB |
4649 | |
4650 | fi | |
4f3c5f06 VZ |
4651 | |
4652 | ||
4653 | eval "$ac_cv_use_snglinst" | |
4654 | if test "$no_cache" != 1; then | |
4655 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4656 | fi | |
4657 | ||
4658 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
a0b9e27f | 4659 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4660 | else |
a0b9e27f | 4661 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4662 | fi |
a0b9e27f | 4663 | |
52127426 | 4664 | |
8284b0c5 | 4665 | |
5005acfe VZ |
4666 | enablestring= |
4667 | echo $ac_n "checking for --${enablestring:-enable}-mimetype""... $ac_c" 1>&6 | |
4668 | echo "configure:4669: checking for --${enablestring:-enable}-mimetype" >&5 | |
1e6feb95 VZ |
4669 | no_cache=0 |
4670 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4671 | if test "${enable_mimetype+set}" = set; then | |
4672 | enableval="$enable_mimetype" | |
a0b9e27f | 4673 | |
1e6feb95 VZ |
4674 | if test "$enableval" = yes; then |
4675 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4676 | else | |
4677 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4678 | fi | |
a0b9e27f | 4679 | |
1e6feb95 | 4680 | else |
a0b9e27f | 4681 | |
1e6feb95 VZ |
4682 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` |
4683 | if test "x$LINE" != x ; then | |
4684 | eval "DEFAULT_$LINE" | |
4685 | else | |
4686 | no_cache=1 | |
4687 | fi | |
4688 | ||
4689 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
a0b9e27f MB |
4690 | |
4691 | fi | |
1e6feb95 VZ |
4692 | |
4693 | ||
4694 | eval "$ac_cv_use_mimetype" | |
4695 | if test "$no_cache" != 1; then | |
4696 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4697 | fi | |
4698 | ||
4699 | if test "$wxUSE_MIMETYPE" = yes; then | |
a0b9e27f | 4700 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 4701 | else |
a0b9e27f | 4702 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 4703 | fi |
a0b9e27f | 4704 | |
1e6feb95 | 4705 | |
5005acfe VZ |
4706 | enablestring= |
4707 | echo $ac_n "checking for --${enablestring:-enable}-system_options""... $ac_c" 1>&6 | |
4708 | echo "configure:4709: checking for --${enablestring:-enable}-system_options" >&5 | |
3e44f09d VZ |
4709 | no_cache=0 |
4710 | # Check whether --enable-system_options or --disable-system_options was given. | |
4711 | if test "${enable_system_options+set}" = set; then | |
4712 | enableval="$enable_system_options" | |
a0b9e27f | 4713 | |
3e44f09d VZ |
4714 | if test "$enableval" = yes; then |
4715 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
4716 | else | |
4717 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
4718 | fi | |
a0b9e27f | 4719 | |
3e44f09d | 4720 | else |
a0b9e27f | 4721 | |
3e44f09d VZ |
4722 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` |
4723 | if test "x$LINE" != x ; then | |
4724 | eval "DEFAULT_$LINE" | |
4725 | else | |
4726 | no_cache=1 | |
4727 | fi | |
4728 | ||
4729 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
a0b9e27f MB |
4730 | |
4731 | fi | |
3e44f09d VZ |
4732 | |
4733 | ||
4734 | eval "$ac_cv_use_system_options" | |
4735 | if test "$no_cache" != 1; then | |
4736 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
4737 | fi | |
4738 | ||
4739 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
a0b9e27f | 4740 | echo "$ac_t""yes" 1>&6 |
3e44f09d | 4741 | else |
a0b9e27f | 4742 | echo "$ac_t""no" 1>&6 |
3e44f09d | 4743 | fi |
a0b9e27f | 4744 | |
8284b0c5 | 4745 | |
52127426 | 4746 | |
5005acfe VZ |
4747 | enablestring= |
4748 | echo $ac_n "checking for --${enablestring:-enable}-url""... $ac_c" 1>&6 | |
4749 | echo "configure:4750: checking for --${enablestring:-enable}-url" >&5 | |
4cdb0ab0 VS |
4750 | no_cache=0 |
4751 | # Check whether --enable-url or --disable-url was given. | |
4752 | if test "${enable_url+set}" = set; then | |
4753 | enableval="$enable_url" | |
a0b9e27f | 4754 | |
4cdb0ab0 VS |
4755 | if test "$enableval" = yes; then |
4756 | ac_cv_use_url='wxUSE_URL=yes' | |
4757 | else | |
4758 | ac_cv_use_url='wxUSE_URL=no' | |
4759 | fi | |
a0b9e27f | 4760 | |
4cdb0ab0 | 4761 | else |
a0b9e27f | 4762 | |
4cdb0ab0 VS |
4763 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` |
4764 | if test "x$LINE" != x ; then | |
4765 | eval "DEFAULT_$LINE" | |
4766 | else | |
4767 | no_cache=1 | |
4768 | fi | |
4769 | ||
4770 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
a0b9e27f MB |
4771 | |
4772 | fi | |
4cdb0ab0 VS |
4773 | |
4774 | ||
4775 | eval "$ac_cv_use_url" | |
4776 | if test "$no_cache" != 1; then | |
4777 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
4778 | fi | |
4779 | ||
4780 | if test "$wxUSE_URL" = yes; then | |
a0b9e27f | 4781 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4782 | else |
a0b9e27f | 4783 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4784 | fi |
a0b9e27f | 4785 | |
4cdb0ab0 | 4786 | |
5005acfe VZ |
4787 | enablestring= |
4788 | echo $ac_n "checking for --${enablestring:-enable}-protocol""... $ac_c" 1>&6 | |
4789 | echo "configure:4790: checking for --${enablestring:-enable}-protocol" >&5 | |
4cdb0ab0 VS |
4790 | no_cache=0 |
4791 | # Check whether --enable-protocol or --disable-protocol was given. | |
4792 | if test "${enable_protocol+set}" = set; then | |
4793 | enableval="$enable_protocol" | |
a0b9e27f | 4794 | |
4cdb0ab0 VS |
4795 | if test "$enableval" = yes; then |
4796 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
4797 | else | |
4798 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
4799 | fi | |
a0b9e27f | 4800 | |
4cdb0ab0 | 4801 | else |
a0b9e27f | 4802 | |
4cdb0ab0 VS |
4803 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
4804 | if test "x$LINE" != x ; then | |
4805 | eval "DEFAULT_$LINE" | |
4806 | else | |
4807 | no_cache=1 | |
4808 | fi | |
4809 | ||
4810 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
a0b9e27f MB |
4811 | |
4812 | fi | |
4cdb0ab0 VS |
4813 | |
4814 | ||
4815 | eval "$ac_cv_use_protocol" | |
4816 | if test "$no_cache" != 1; then | |
4817 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
4818 | fi | |
4819 | ||
4820 | if test "$wxUSE_PROTOCOL" = yes; then | |
a0b9e27f | 4821 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4822 | else |
a0b9e27f | 4823 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4824 | fi |
a0b9e27f | 4825 | |
4cdb0ab0 | 4826 | |
5005acfe VZ |
4827 | enablestring= |
4828 | echo $ac_n "checking for --${enablestring:-enable}-protocol_http""... $ac_c" 1>&6 | |
4829 | echo "configure:4830: checking for --${enablestring:-enable}-protocol_http" >&5 | |
4cdb0ab0 VS |
4830 | no_cache=0 |
4831 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
4832 | if test "${enable_protocol_http+set}" = set; then | |
4833 | enableval="$enable_protocol_http" | |
a0b9e27f | 4834 | |
4cdb0ab0 VS |
4835 | if test "$enableval" = yes; then |
4836 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
4837 | else | |
4838 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
4839 | fi | |
a0b9e27f | 4840 | |
4cdb0ab0 | 4841 | else |
a0b9e27f | 4842 | |
4cdb0ab0 VS |
4843 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
4844 | if test "x$LINE" != x ; then | |
4845 | eval "DEFAULT_$LINE" | |
4846 | else | |
4847 | no_cache=1 | |
4848 | fi | |
4849 | ||
4850 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
a0b9e27f MB |
4851 | |
4852 | fi | |
4cdb0ab0 VS |
4853 | |
4854 | ||
4855 | eval "$ac_cv_use_protocol_http" | |
4856 | if test "$no_cache" != 1; then | |
4857 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
4858 | fi | |
4859 | ||
4860 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
a0b9e27f | 4861 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4862 | else |
a0b9e27f | 4863 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4864 | fi |
a0b9e27f | 4865 | |
4cdb0ab0 | 4866 | |
5005acfe VZ |
4867 | enablestring= |
4868 | echo $ac_n "checking for --${enablestring:-enable}-protocol_ftp""... $ac_c" 1>&6 | |
4869 | echo "configure:4870: checking for --${enablestring:-enable}-protocol_ftp" >&5 | |
4cdb0ab0 VS |
4870 | no_cache=0 |
4871 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
4872 | if test "${enable_protocol_ftp+set}" = set; then | |
4873 | enableval="$enable_protocol_ftp" | |
a0b9e27f | 4874 | |
4cdb0ab0 VS |
4875 | if test "$enableval" = yes; then |
4876 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4877 | else | |
4878 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
4879 | fi | |
a0b9e27f | 4880 | |
4cdb0ab0 | 4881 | else |
a0b9e27f | 4882 | |
4cdb0ab0 VS |
4883 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
4884 | if test "x$LINE" != x ; then | |
4885 | eval "DEFAULT_$LINE" | |
4886 | else | |
4887 | no_cache=1 | |
4888 | fi | |
4889 | ||
4890 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
a0b9e27f MB |
4891 | |
4892 | fi | |
4cdb0ab0 VS |
4893 | |
4894 | ||
4895 | eval "$ac_cv_use_protocol_ftp" | |
4896 | if test "$no_cache" != 1; then | |
4897 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
4898 | fi | |
4899 | ||
4900 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
a0b9e27f | 4901 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4902 | else |
a0b9e27f | 4903 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4904 | fi |
a0b9e27f | 4905 | |
4cdb0ab0 | 4906 | |
5005acfe VZ |
4907 | enablestring= |
4908 | echo $ac_n "checking for --${enablestring:-enable}-protocol_file""... $ac_c" 1>&6 | |
4909 | echo "configure:4910: checking for --${enablestring:-enable}-protocol_file" >&5 | |
4cdb0ab0 VS |
4910 | no_cache=0 |
4911 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
4912 | if test "${enable_protocol_file+set}" = set; then | |
4913 | enableval="$enable_protocol_file" | |
a0b9e27f | 4914 | |
4cdb0ab0 VS |
4915 | if test "$enableval" = yes; then |
4916 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
4917 | else | |
4918 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
4919 | fi | |
a0b9e27f | 4920 | |
4cdb0ab0 | 4921 | else |
a0b9e27f | 4922 | |
4cdb0ab0 VS |
4923 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
4924 | if test "x$LINE" != x ; then | |
4925 | eval "DEFAULT_$LINE" | |
4926 | else | |
4927 | no_cache=1 | |
4928 | fi | |
4929 | ||
4930 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
a0b9e27f MB |
4931 | |
4932 | fi | |
4cdb0ab0 VS |
4933 | |
4934 | ||
4935 | eval "$ac_cv_use_protocol_file" | |
4936 | if test "$no_cache" != 1; then | |
4937 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
4938 | fi | |
4939 | ||
4940 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
a0b9e27f | 4941 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4942 | else |
a0b9e27f | 4943 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4944 | fi |
a0b9e27f | 4945 | |
52127426 | 4946 | |
8284b0c5 MB |
4947 | |
4948 | ||
4949 | ||
5005acfe VZ |
4950 | enablestring= |
4951 | echo $ac_n "checking for --${enablestring:-enable}-threads""... $ac_c" 1>&6 | |
4952 | echo "configure:4953: checking for --${enablestring:-enable}-threads" >&5 | |
10f2d63a VZ |
4953 | no_cache=0 |
4954 | # Check whether --enable-threads or --disable-threads was given. | |
4955 | if test "${enable_threads+set}" = set; then | |
4956 | enableval="$enable_threads" | |
a0b9e27f | 4957 | |
10f2d63a VZ |
4958 | if test "$enableval" = yes; then |
4959 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4960 | else | |
4961 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4962 | fi | |
a0b9e27f | 4963 | |
10f2d63a | 4964 | else |
a0b9e27f | 4965 | |
10f2d63a VZ |
4966 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
4967 | if test "x$LINE" != x ; then | |
4968 | eval "DEFAULT_$LINE" | |
4969 | else | |
4970 | no_cache=1 | |
4971 | fi | |
4972 | ||
4973 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
a0b9e27f MB |
4974 | |
4975 | fi | |
10f2d63a VZ |
4976 | |
4977 | ||
4978 | eval "$ac_cv_use_threads" | |
4979 | if test "$no_cache" != 1; then | |
4980 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4981 | fi | |
4982 | ||
4983 | if test "$wxUSE_THREADS" = yes; then | |
a0b9e27f | 4984 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4985 | else |
a0b9e27f | 4986 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4987 | fi |
a0b9e27f | 4988 | |
10f2d63a | 4989 | |
b12915c1 VZ |
4990 | if test "$wxUSE_GUI" = "yes"; then |
4991 | ||
8284b0c5 MB |
4992 | |
4993 | ||
5005acfe VZ |
4994 | enablestring= |
4995 | echo $ac_n "checking for --${enablestring:-enable}-docview""... $ac_c" 1>&6 | |
4996 | echo "configure:4997: checking for --${enablestring:-enable}-docview" >&5 | |
10f2d63a VZ |
4997 | no_cache=0 |
4998 | # Check whether --enable-docview or --disable-docview was given. | |
4999 | if test "${enable_docview+set}" = set; then | |
5000 | enableval="$enable_docview" | |
a0b9e27f | 5001 | |
10f2d63a VZ |
5002 | if test "$enableval" = yes; then |
5003 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
5004 | else | |
5005 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
5006 | fi | |
a0b9e27f | 5007 | |
10f2d63a | 5008 | else |
a0b9e27f | 5009 | |
10f2d63a VZ |
5010 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
5011 | if test "x$LINE" != x ; then | |
5012 | eval "DEFAULT_$LINE" | |
5013 | else | |
5014 | no_cache=1 | |
5015 | fi | |
5016 | ||
5017 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
a0b9e27f MB |
5018 | |
5019 | fi | |
10f2d63a VZ |
5020 | |
5021 | ||
5022 | eval "$ac_cv_use_docview" | |
5023 | if test "$no_cache" != 1; then | |
5024 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
5025 | fi | |
5026 | ||
5027 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
a0b9e27f | 5028 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5029 | else |
a0b9e27f | 5030 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5031 | fi |
a0b9e27f | 5032 | |
10f2d63a | 5033 | |
5005acfe VZ |
5034 | enablestring= |
5035 | echo $ac_n "checking for --${enablestring:-enable}-help""... $ac_c" 1>&6 | |
5036 | echo "configure:5037: checking for --${enablestring:-enable}-help" >&5 | |
10f2d63a VZ |
5037 | no_cache=0 |
5038 | # Check whether --enable-help or --disable-help was given. | |
5039 | if test "${enable_help+set}" = set; then | |
5040 | enableval="$enable_help" | |
a0b9e27f | 5041 | |
10f2d63a VZ |
5042 | if test "$enableval" = yes; then |
5043 | ac_cv_use_help='wxUSE_HELP=yes' | |
5044 | else | |
5045 | ac_cv_use_help='wxUSE_HELP=no' | |
5046 | fi | |
a0b9e27f | 5047 | |
10f2d63a | 5048 | else |
a0b9e27f | 5049 | |
10f2d63a VZ |
5050 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
5051 | if test "x$LINE" != x ; then | |
5052 | eval "DEFAULT_$LINE" | |
5053 | else | |
5054 | no_cache=1 | |
5055 | fi | |
5056 | ||
5057 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
a0b9e27f MB |
5058 | |
5059 | fi | |
10f2d63a VZ |
5060 | |
5061 | ||
5062 | eval "$ac_cv_use_help" | |
5063 | if test "$no_cache" != 1; then | |
5064 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
5065 | fi | |
5066 | ||
5067 | if test "$wxUSE_HELP" = yes; then | |
a0b9e27f | 5068 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5069 | else |
a0b9e27f | 5070 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5071 | fi |
a0b9e27f | 5072 | |
10f2d63a | 5073 | |
5005acfe VZ |
5074 | enablestring= |
5075 | echo $ac_n "checking for --${enablestring:-enable}-mshtmlhelp""... $ac_c" 1>&6 | |
5076 | echo "configure:5077: checking for --${enablestring:-enable}-mshtmlhelp" >&5 | |
29fd3c0c VS |
5077 | no_cache=0 |
5078 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
5079 | if test "${enable_mshtmlhelp+set}" = set; then | |
5080 | enableval="$enable_mshtmlhelp" | |
a0b9e27f | 5081 | |
29fd3c0c VS |
5082 | if test "$enableval" = yes; then |
5083 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
5084 | else | |
5085 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
5086 | fi | |
a0b9e27f | 5087 | |
29fd3c0c | 5088 | else |
a0b9e27f | 5089 | |
29fd3c0c VS |
5090 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` |
5091 | if test "x$LINE" != x ; then | |
5092 | eval "DEFAULT_$LINE" | |
5093 | else | |
5094 | no_cache=1 | |
5095 | fi | |
5096 | ||
5097 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
a0b9e27f MB |
5098 | |
5099 | fi | |
29fd3c0c VS |
5100 | |
5101 | ||
5102 | eval "$ac_cv_use_mshtmlhelp" | |
5103 | if test "$no_cache" != 1; then | |
5104 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
5105 | fi | |
5106 | ||
5107 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
a0b9e27f | 5108 | echo "$ac_t""yes" 1>&6 |
29fd3c0c | 5109 | else |
a0b9e27f | 5110 | echo "$ac_t""no" 1>&6 |
29fd3c0c | 5111 | fi |
a0b9e27f | 5112 | |
29fd3c0c | 5113 | |
5005acfe VZ |
5114 | enablestring= |
5115 | echo $ac_n "checking for --${enablestring:-enable}-html""... $ac_c" 1>&6 | |
5116 | echo "configure:5117: checking for --${enablestring:-enable}-html" >&5 | |
3379ed37 VZ |
5117 | no_cache=0 |
5118 | # Check whether --enable-html or --disable-html was given. | |
5119 | if test "${enable_html+set}" = set; then | |
5120 | enableval="$enable_html" | |
a0b9e27f | 5121 | |
3379ed37 VZ |
5122 | if test "$enableval" = yes; then |
5123 | ac_cv_use_html='wxUSE_HTML=yes' | |
5124 | else | |
5125 | ac_cv_use_html='wxUSE_HTML=no' | |
5126 | fi | |
a0b9e27f | 5127 | |
3379ed37 | 5128 | else |
a0b9e27f | 5129 | |
3379ed37 VZ |
5130 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` |
5131 | if test "x$LINE" != x ; then | |
5132 | eval "DEFAULT_$LINE" | |
5133 | else | |
5134 | no_cache=1 | |
5135 | fi | |
5136 | ||
5137 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
a0b9e27f MB |
5138 | |
5139 | fi | |
3379ed37 VZ |
5140 | |
5141 | ||
5142 | eval "$ac_cv_use_html" | |
5143 | if test "$no_cache" != 1; then | |
5144 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
5145 | fi | |
5146 | ||
5147 | if test "$wxUSE_HTML" = yes; then | |
a0b9e27f | 5148 | echo "$ac_t""yes" 1>&6 |
3379ed37 | 5149 | else |
a0b9e27f | 5150 | echo "$ac_t""no" 1>&6 |
3379ed37 | 5151 | fi |
a0b9e27f | 5152 | |
3379ed37 | 5153 | |
5005acfe VZ |
5154 | enablestring= |
5155 | echo $ac_n "checking for --${enablestring:-enable}-htmlhelp""... $ac_c" 1>&6 | |
5156 | echo "configure:5157: checking for --${enablestring:-enable}-htmlhelp" >&5 | |
3379ed37 VZ |
5157 | no_cache=0 |
5158 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
5159 | if test "${enable_htmlhelp+set}" = set; then | |
5160 | enableval="$enable_htmlhelp" | |
a0b9e27f | 5161 | |
3379ed37 VZ |
5162 | if test "$enableval" = yes; then |
5163 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
5164 | else | |
5165 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
5166 | fi | |
a0b9e27f | 5167 | |
3379ed37 | 5168 | else |
a0b9e27f | 5169 | |
3379ed37 VZ |
5170 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` |
5171 | if test "x$LINE" != x ; then | |
5172 | eval "DEFAULT_$LINE" | |
5173 | else | |
5174 | no_cache=1 | |
5175 | fi | |
5176 | ||
5177 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
a0b9e27f MB |
5178 | |
5179 | fi | |
3379ed37 VZ |
5180 | |
5181 | ||
5182 | eval "$ac_cv_use_htmlhelp" | |
5183 | if test "$no_cache" != 1; then | |
5184 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
5185 | fi | |
5186 | ||
5187 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
a0b9e27f | 5188 | echo "$ac_t""yes" 1>&6 |
3379ed37 | 5189 | else |
a0b9e27f | 5190 | echo "$ac_t""no" 1>&6 |
3379ed37 | 5191 | fi |
a0b9e27f | 5192 | |
3379ed37 | 5193 | |
5005acfe VZ |
5194 | enablestring= |
5195 | echo $ac_n "checking for --${enablestring:-enable}-constraints""... $ac_c" 1>&6 | |
5196 | echo "configure:5197: checking for --${enablestring:-enable}-constraints" >&5 | |
10f2d63a VZ |
5197 | no_cache=0 |
5198 | # Check whether --enable-constraints or --disable-constraints was given. | |
5199 | if test "${enable_constraints+set}" = set; then | |
5200 | enableval="$enable_constraints" | |
a0b9e27f | 5201 | |
10f2d63a VZ |
5202 | if test "$enableval" = yes; then |
5203 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
5204 | else | |
5205 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
5206 | fi | |
a0b9e27f | 5207 | |
10f2d63a | 5208 | else |
a0b9e27f | 5209 | |
10f2d63a VZ |
5210 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
5211 | if test "x$LINE" != x ; then | |
5212 | eval "DEFAULT_$LINE" | |
5213 | else | |
5214 | no_cache=1 | |
5215 | fi | |
5216 | ||
5217 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
a0b9e27f MB |
5218 | |
5219 | fi | |
10f2d63a VZ |
5220 | |
5221 | ||
5222 | eval "$ac_cv_use_constraints" | |
5223 | if test "$no_cache" != 1; then | |
5224 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
5225 | fi | |
5226 | ||
5227 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
a0b9e27f | 5228 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5229 | else |
a0b9e27f | 5230 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5231 | fi |
a0b9e27f | 5232 | |
10f2d63a | 5233 | |
5005acfe VZ |
5234 | enablestring= |
5235 | echo $ac_n "checking for --${enablestring:-enable}-printarch""... $ac_c" 1>&6 | |
5236 | echo "configure:5237: checking for --${enablestring:-enable}-printarch" >&5 | |
10f2d63a VZ |
5237 | no_cache=0 |
5238 | # Check whether --enable-printarch or --disable-printarch was given. | |
5239 | if test "${enable_printarch+set}" = set; then | |
5240 | enableval="$enable_printarch" | |
a0b9e27f | 5241 | |
10f2d63a VZ |
5242 | if test "$enableval" = yes; then |
5243 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
5244 | else | |
5245 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
5246 | fi | |
a0b9e27f | 5247 | |
10f2d63a | 5248 | else |
a0b9e27f | 5249 | |
10f2d63a VZ |
5250 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
5251 | if test "x$LINE" != x ; then | |
5252 | eval "DEFAULT_$LINE" | |
5253 | else | |
5254 | no_cache=1 | |
5255 | fi | |
5256 | ||
5257 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
a0b9e27f MB |
5258 | |
5259 | fi | |
10f2d63a VZ |
5260 | |
5261 | ||
5262 | eval "$ac_cv_use_printarch" | |
5263 | if test "$no_cache" != 1; then | |
5264 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
5265 | fi | |
5266 | ||
5267 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
a0b9e27f | 5268 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5269 | else |
a0b9e27f | 5270 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5271 | fi |
a0b9e27f | 5272 | |
10f2d63a | 5273 | |
5005acfe VZ |
5274 | enablestring= |
5275 | echo $ac_n "checking for --${enablestring:-enable}-mdi""... $ac_c" 1>&6 | |
5276 | echo "configure:5277: checking for --${enablestring:-enable}-mdi" >&5 | |
10f2d63a VZ |
5277 | no_cache=0 |
5278 | # Check whether --enable-mdi or --disable-mdi was given. | |
5279 | if test "${enable_mdi+set}" = set; then | |
5280 | enableval="$enable_mdi" | |
a0b9e27f | 5281 | |
10f2d63a VZ |
5282 | if test "$enableval" = yes; then |
5283 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
5284 | else | |
5285 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
5286 | fi | |
a0b9e27f | 5287 | |
10f2d63a | 5288 | else |
a0b9e27f | 5289 | |
10f2d63a VZ |
5290 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
5291 | if test "x$LINE" != x ; then | |
5292 | eval "DEFAULT_$LINE" | |
5293 | else | |
5294 | no_cache=1 | |
5295 | fi | |
5296 | ||
5297 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
a0b9e27f MB |
5298 | |
5299 | fi | |
10f2d63a VZ |
5300 | |
5301 | ||
5302 | eval "$ac_cv_use_mdi" | |
5303 | if test "$no_cache" != 1; then | |
5304 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
5305 | fi | |
5306 | ||
5307 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
a0b9e27f | 5308 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5309 | else |
a0b9e27f | 5310 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5311 | fi |
a0b9e27f | 5312 | |
698dcdb6 | 5313 | |
5005acfe VZ |
5314 | enablestring= |
5315 | echo $ac_n "checking for --${enablestring:-enable}-loggui""... $ac_c" 1>&6 | |
5316 | echo "configure:5317: checking for --${enablestring:-enable}-loggui" >&5 | |
1e6feb95 VZ |
5317 | no_cache=0 |
5318 | # Check whether --enable-loggui or --disable-loggui was given. | |
5319 | if test "${enable_loggui+set}" = set; then | |
5320 | enableval="$enable_loggui" | |
a0b9e27f | 5321 | |
1e6feb95 VZ |
5322 | if test "$enableval" = yes; then |
5323 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
5324 | else | |
5325 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
5326 | fi | |
a0b9e27f | 5327 | |
1e6feb95 | 5328 | else |
a0b9e27f | 5329 | |
1e6feb95 VZ |
5330 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` |
5331 | if test "x$LINE" != x ; then | |
5332 | eval "DEFAULT_$LINE" | |
5333 | else | |
5334 | no_cache=1 | |
5335 | fi | |
5336 | ||
5337 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
a0b9e27f MB |
5338 | |
5339 | fi | |
1e6feb95 VZ |
5340 | |
5341 | ||
5342 | eval "$ac_cv_use_loggui" | |
5343 | if test "$no_cache" != 1; then | |
5344 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
5345 | fi | |
5346 | ||
5347 | if test "$wxUSE_LOGGUI" = yes; then | |
a0b9e27f | 5348 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 5349 | else |
a0b9e27f | 5350 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 5351 | fi |
a0b9e27f | 5352 | |
1e6feb95 | 5353 | |
5005acfe VZ |
5354 | enablestring= |
5355 | echo $ac_n "checking for --${enablestring:-enable}-logwin""... $ac_c" 1>&6 | |
5356 | echo "configure:5357: checking for --${enablestring:-enable}-logwin" >&5 | |
1e6feb95 VZ |
5357 | no_cache=0 |
5358 | # Check whether --enable-logwin or --disable-logwin was given. | |
5359 | if test "${enable_logwin+set}" = set; then | |
5360 | enableval="$enable_logwin" | |
a0b9e27f | 5361 | |
1e6feb95 VZ |
5362 | if test "$enableval" = yes; then |
5363 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
5364 | else | |
5365 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
5366 | fi | |
a0b9e27f | 5367 | |
1e6feb95 | 5368 | else |
a0b9e27f | 5369 | |
1e6feb95 VZ |
5370 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` |
5371 | if test "x$LINE" != x ; then | |
5372 | eval "DEFAULT_$LINE" | |
5373 | else | |
5374 | no_cache=1 | |
5375 | fi | |
5376 | ||
5377 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
a0b9e27f MB |
5378 | |
5379 | fi | |
1e6feb95 VZ |
5380 | |
5381 | ||
5382 | eval "$ac_cv_use_logwin" | |
5383 | if test "$no_cache" != 1; then | |
5384 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
5385 | fi | |
5386 | ||
5387 | if test "$wxUSE_LOGWINDOW" = yes; then | |
a0b9e27f | 5388 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 5389 | else |
a0b9e27f | 5390 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 5391 | fi |
a0b9e27f | 5392 | |
1e6feb95 | 5393 | |
5005acfe VZ |
5394 | enablestring= |
5395 | echo $ac_n "checking for --${enablestring:-enable}-logdialog""... $ac_c" 1>&6 | |
5396 | echo "configure:5397: checking for --${enablestring:-enable}-logdialog" >&5 | |
69d27ff7 MB |
5397 | no_cache=0 |
5398 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
5399 | if test "${enable_logdialog+set}" = set; then | |
5400 | enableval="$enable_logdialog" | |
a0b9e27f | 5401 | |
69d27ff7 MB |
5402 | if test "$enableval" = yes; then |
5403 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
5404 | else | |
5405 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
5406 | fi | |
a0b9e27f | 5407 | |
69d27ff7 | 5408 | else |
a0b9e27f | 5409 | |
69d27ff7 MB |
5410 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` |
5411 | if test "x$LINE" != x ; then | |
5412 | eval "DEFAULT_$LINE" | |
5413 | else | |
5414 | no_cache=1 | |
5415 | fi | |
5416 | ||
5417 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
a0b9e27f MB |
5418 | |
5419 | fi | |
69d27ff7 MB |
5420 | |
5421 | ||
5422 | eval "$ac_cv_use_logdialog" | |
5423 | if test "$no_cache" != 1; then | |
5424 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
5425 | fi | |
5426 | ||
5427 | if test "$wxUSE_LOGDIALOG" = yes; then | |
a0b9e27f | 5428 | echo "$ac_t""yes" 1>&6 |
69d27ff7 | 5429 | else |
a0b9e27f | 5430 | echo "$ac_t""no" 1>&6 |
69d27ff7 | 5431 | fi |
a0b9e27f | 5432 | |
8284b0c5 | 5433 | |
52127426 | 5434 | |
5005acfe VZ |
5435 | enablestring= |
5436 | echo $ac_n "checking for --${enablestring:-enable}-postscript""... $ac_c" 1>&6 | |
5437 | echo "configure:5438: checking for --${enablestring:-enable}-postscript" >&5 | |
10f2d63a VZ |
5438 | no_cache=0 |
5439 | # Check whether --enable-postscript or --disable-postscript was given. | |
5440 | if test "${enable_postscript+set}" = set; then | |
5441 | enableval="$enable_postscript" | |
a0b9e27f | 5442 | |
10f2d63a VZ |
5443 | if test "$enableval" = yes; then |
5444 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
5445 | else | |
5446 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
5447 | fi | |
a0b9e27f | 5448 | |
10f2d63a | 5449 | else |
a0b9e27f | 5450 | |
10f2d63a VZ |
5451 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
5452 | if test "x$LINE" != x ; then | |
5453 | eval "DEFAULT_$LINE" | |
5454 | else | |
5455 | no_cache=1 | |
5456 | fi | |
5457 | ||
5458 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
a0b9e27f MB |
5459 | |
5460 | fi | |
10f2d63a VZ |
5461 | |
5462 | ||
5463 | eval "$ac_cv_use_postscript" | |
5464 | if test "$no_cache" != 1; then | |
5465 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
5466 | fi | |
5467 | ||
5468 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
a0b9e27f | 5469 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5470 | else |
a0b9e27f | 5471 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5472 | fi |
a0b9e27f | 5473 | |
8284b0c5 MB |
5474 | |
5475 | ||
52127426 | 5476 | |
8284b0c5 | 5477 | |
5005acfe VZ |
5478 | enablestring= |
5479 | echo $ac_n "checking for --${enablestring:-enable}-prologio""... $ac_c" 1>&6 | |
5480 | echo "configure:5481: checking for --${enablestring:-enable}-prologio" >&5 | |
10f2d63a VZ |
5481 | no_cache=0 |
5482 | # Check whether --enable-prologio or --disable-prologio was given. | |
5483 | if test "${enable_prologio+set}" = set; then | |
5484 | enableval="$enable_prologio" | |
a0b9e27f | 5485 | |
10f2d63a VZ |
5486 | if test "$enableval" = yes; then |
5487 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
5488 | else | |
5489 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
5490 | fi | |
a0b9e27f | 5491 | |
10f2d63a | 5492 | else |
a0b9e27f | 5493 | |
10f2d63a VZ |
5494 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
5495 | if test "x$LINE" != x ; then | |
5496 | eval "DEFAULT_$LINE" | |
5497 | else | |
5498 | no_cache=1 | |
5499 | fi | |
5500 | ||
5501 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
a0b9e27f MB |
5502 | |
5503 | fi | |
10f2d63a VZ |
5504 | |
5505 | ||
5506 | eval "$ac_cv_use_prologio" | |
5507 | if test "$no_cache" != 1; then | |
5508 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
5509 | fi | |
5510 | ||
5511 | if test "$wxUSE_PROLOGIO" = yes; then | |
a0b9e27f | 5512 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5513 | else |
a0b9e27f | 5514 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5515 | fi |
a0b9e27f | 5516 | |
10f2d63a | 5517 | |
5005acfe VZ |
5518 | enablestring= |
5519 | echo $ac_n "checking for --${enablestring:-enable}-resources""... $ac_c" 1>&6 | |
5520 | echo "configure:5521: checking for --${enablestring:-enable}-resources" >&5 | |
10f2d63a VZ |
5521 | no_cache=0 |
5522 | # Check whether --enable-resources or --disable-resources was given. | |
5523 | if test "${enable_resources+set}" = set; then | |
5524 | enableval="$enable_resources" | |
a0b9e27f | 5525 | |
10f2d63a VZ |
5526 | if test "$enableval" = yes; then |
5527 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
5528 | else | |
5529 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
5530 | fi | |
a0b9e27f | 5531 | |
10f2d63a | 5532 | else |
a0b9e27f | 5533 | |
10f2d63a VZ |
5534 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
5535 | if test "x$LINE" != x ; then | |
5536 | eval "DEFAULT_$LINE" | |
5537 | else | |
5538 | no_cache=1 | |
5539 | fi | |
5540 | ||
5541 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
a0b9e27f MB |
5542 | |
5543 | fi | |
10f2d63a VZ |
5544 | |
5545 | ||
5546 | eval "$ac_cv_use_resources" | |
5547 | if test "$no_cache" != 1; then | |
5548 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
5549 | fi | |
5550 | ||
5551 | if test "$wxUSE_RESOURCES" = yes; then | |
a0b9e27f | 5552 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5553 | else |
a0b9e27f | 5554 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5555 | fi |
a0b9e27f | 5556 | |
8284b0c5 | 5557 | |
52127426 | 5558 | |
5005acfe VZ |
5559 | enablestring= |
5560 | echo $ac_n "checking for --${enablestring:-enable}-xresources""... $ac_c" 1>&6 | |
5561 | echo "configure:5562: checking for --${enablestring:-enable}-xresources" >&5 | |
10f2d63a VZ |
5562 | no_cache=0 |
5563 | # Check whether --enable-xresources or --disable-xresources was given. | |
5564 | if test "${enable_xresources+set}" = set; then | |
5565 | enableval="$enable_xresources" | |
a0b9e27f | 5566 | |
10f2d63a VZ |
5567 | if test "$enableval" = yes; then |
5568 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
5569 | else | |
5570 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
5571 | fi | |
a0b9e27f | 5572 | |
10f2d63a | 5573 | else |
a0b9e27f | 5574 | |
10f2d63a VZ |
5575 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
5576 | if test "x$LINE" != x ; then | |
5577 | eval "DEFAULT_$LINE" | |
5578 | else | |
5579 | no_cache=1 | |
5580 | fi | |
5581 | ||
5582 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
a0b9e27f MB |
5583 | |
5584 | fi | |
10f2d63a VZ |
5585 | |
5586 | ||
5587 | eval "$ac_cv_use_xresources" | |
5588 | if test "$no_cache" != 1; then | |
5589 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
5590 | fi | |
5591 | ||
5592 | if test "$wxUSE_X_RESOURCES" = yes; then | |
a0b9e27f | 5593 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5594 | else |
a0b9e27f | 5595 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5596 | fi |
a0b9e27f | 5597 | |
8284b0c5 MB |
5598 | |
5599 | ||
52127426 | 5600 | |
5005acfe VZ |
5601 | enablestring= |
5602 | echo $ac_n "checking for --${enablestring:-enable}-clipboard""... $ac_c" 1>&6 | |
5603 | echo "configure:5604: checking for --${enablestring:-enable}-clipboard" >&5 | |
10f2d63a VZ |
5604 | no_cache=0 |
5605 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
5606 | if test "${enable_clipboard+set}" = set; then | |
5607 | enableval="$enable_clipboard" | |
a0b9e27f | 5608 | |
10f2d63a VZ |
5609 | if test "$enableval" = yes; then |
5610 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
5611 | else | |
5612 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
5613 | fi | |
a0b9e27f | 5614 | |
10f2d63a | 5615 | else |
a0b9e27f | 5616 | |
10f2d63a VZ |
5617 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
5618 | if test "x$LINE" != x ; then | |
5619 | eval "DEFAULT_$LINE" | |
5620 | else | |
5621 | no_cache=1 | |
5622 | fi | |
5623 | ||
5624 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
a0b9e27f MB |
5625 | |
5626 | fi | |
10f2d63a VZ |
5627 | |
5628 | ||
5629 | eval "$ac_cv_use_clipboard" | |
5630 | if test "$no_cache" != 1; then | |
5631 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
5632 | fi | |
5633 | ||
5634 | if test "$wxUSE_CLIPBOARD" = yes; then | |
a0b9e27f | 5635 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5636 | else |
a0b9e27f | 5637 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5638 | fi |
a0b9e27f | 5639 | |
10f2d63a | 5640 | |
5005acfe VZ |
5641 | enablestring= |
5642 | echo $ac_n "checking for --${enablestring:-enable}-dnd""... $ac_c" 1>&6 | |
5643 | echo "configure:5644: checking for --${enablestring:-enable}-dnd" >&5 | |
10f2d63a VZ |
5644 | no_cache=0 |
5645 | # Check whether --enable-dnd or --disable-dnd was given. | |
5646 | if test "${enable_dnd+set}" = set; then | |
5647 | enableval="$enable_dnd" | |
a0b9e27f | 5648 | |
10f2d63a VZ |
5649 | if test "$enableval" = yes; then |
5650 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
5651 | else | |
5652 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
5653 | fi | |
a0b9e27f | 5654 | |
10f2d63a | 5655 | else |
a0b9e27f | 5656 | |
10f2d63a VZ |
5657 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
5658 | if test "x$LINE" != x ; then | |
5659 | eval "DEFAULT_$LINE" | |
5660 | else | |
5661 | no_cache=1 | |
5662 | fi | |
5663 | ||
5664 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
a0b9e27f MB |
5665 | |
5666 | fi | |
10f2d63a VZ |
5667 | |
5668 | ||
5669 | eval "$ac_cv_use_dnd" | |
5670 | if test "$no_cache" != 1; then | |
5671 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
5672 | fi | |
5673 | ||
5674 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
a0b9e27f | 5675 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5676 | else |
a0b9e27f | 5677 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5678 | fi |
a0b9e27f | 5679 | |
10f2d63a | 5680 | |
5005acfe VZ |
5681 | enablestring= |
5682 | echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6 | |
5683 | echo "configure:5684: checking for --${enablestring:-enable}-metafile" >&5 | |
b64f0a5f RL |
5684 | no_cache=0 |
5685 | # Check whether --enable-metafile or --disable-metafile was given. | |
5686 | if test "${enable_metafile+set}" = set; then | |
5687 | enableval="$enable_metafile" | |
a0b9e27f | 5688 | |
b64f0a5f RL |
5689 | if test "$enableval" = yes; then |
5690 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
5691 | else | |
5692 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
5693 | fi | |
a0b9e27f | 5694 | |
b64f0a5f | 5695 | else |
a0b9e27f | 5696 | |
b64f0a5f RL |
5697 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
5698 | if test "x$LINE" != x ; then | |
5699 | eval "DEFAULT_$LINE" | |
5700 | else | |
5701 | no_cache=1 | |
5702 | fi | |
5703 | ||
5704 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
a0b9e27f MB |
5705 | |
5706 | fi | |
b64f0a5f RL |
5707 | |
5708 | ||
5709 | eval "$ac_cv_use_metafile" | |
5710 | if test "$no_cache" != 1; then | |
5711 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
5712 | fi | |
5713 | ||
5714 | if test "$wxUSE_METAFILE" = yes; then | |
a0b9e27f | 5715 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 5716 | else |
a0b9e27f | 5717 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 5718 | fi |
a0b9e27f | 5719 | |
52127426 | 5720 | |
8284b0c5 | 5721 | |
5005acfe VZ |
5722 | enablestring= |
5723 | echo $ac_n "checking for --${enablestring:-enable}-treelayout""... $ac_c" 1>&6 | |
5724 | echo "configure:5725: checking for --${enablestring:-enable}-treelayout" >&5 | |
10f2d63a | 5725 | no_cache=0 |
24176f2c GD |
5726 | # Check whether --enable-treelayout or --disable-treelayout was given. |
5727 | if test "${enable_treelayout+set}" = set; then | |
5728 | enableval="$enable_treelayout" | |
a0b9e27f | 5729 | |
10f2d63a | 5730 | if test "$enableval" = yes; then |
24176f2c | 5731 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes' |
10f2d63a | 5732 | else |
24176f2c | 5733 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=no' |
10f2d63a | 5734 | fi |
a0b9e27f | 5735 | |
10f2d63a | 5736 | else |
a0b9e27f | 5737 | |
24176f2c | 5738 | LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}` |
10f2d63a VZ |
5739 | if test "x$LINE" != x ; then |
5740 | eval "DEFAULT_$LINE" | |
5741 | else | |
5742 | no_cache=1 | |
5743 | fi | |
5744 | ||
24176f2c | 5745 | ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT |
a0b9e27f MB |
5746 | |
5747 | fi | |
10f2d63a VZ |
5748 | |
5749 | ||
24176f2c | 5750 | eval "$ac_cv_use_treelayout" |
10f2d63a | 5751 | if test "$no_cache" != 1; then |
24176f2c | 5752 | echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5753 | fi |
5754 | ||
24176f2c | 5755 | if test "$wxUSE_TREELAYOUT" = yes; then |
a0b9e27f | 5756 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5757 | else |
a0b9e27f | 5758 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5759 | fi |
a0b9e27f | 5760 | |
8284b0c5 | 5761 | |
52127426 | 5762 | |
8284b0c5 | 5763 | |
5005acfe VZ |
5764 | enablestring= |
5765 | echo $ac_n "checking for --${enablestring:-enable}-controls""... $ac_c" 1>&6 | |
5766 | echo "configure:5767: checking for --${enablestring:-enable}-controls" >&5 | |
10f2d63a VZ |
5767 | no_cache=0 |
5768 | # Check whether --enable-controls or --disable-controls was given. | |
5769 | if test "${enable_controls+set}" = set; then | |
5770 | enableval="$enable_controls" | |
a0b9e27f | 5771 | |
10f2d63a VZ |
5772 | if test "$enableval" = yes; then |
5773 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
5774 | else | |
5775 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
5776 | fi | |
a0b9e27f | 5777 | |
10f2d63a | 5778 | else |
a0b9e27f | 5779 | |
10f2d63a VZ |
5780 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
5781 | if test "x$LINE" != x ; then | |
5782 | eval "DEFAULT_$LINE" | |
5783 | else | |
5784 | no_cache=1 | |
5785 | fi | |
5786 | ||
5787 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
a0b9e27f MB |
5788 | |
5789 | fi | |
10f2d63a VZ |
5790 | |
5791 | ||
5792 | eval "$ac_cv_use_controls" | |
5793 | if test "$no_cache" != 1; then | |
5794 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
5795 | fi | |
5796 | ||
5797 | if test "$wxUSE_CONTROLS" = yes; then | |
a0b9e27f | 5798 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5799 | else |
a0b9e27f | 5800 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5801 | fi |
a0b9e27f | 5802 | |
10f2d63a VZ |
5803 | |
5804 | if test "$wxUSE_CONTROLS" = "yes"; then | |
5805 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
5806 | DEFAULT_wxUSE_BMPBUTTON=yes |
5807 | DEFAULT_wxUSE_BUTTON=yes | |
5808 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5809 | DEFAULT_wxUSE_CARET=yes |
5810 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
5811 | DEFAULT_wxUSE_CHECKBOX=yes |
5812 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
5813 | DEFAULT_wxUSE_CHOICE=yes | |
5814 | DEFAULT_wxUSE_GAUGE=yes | |
5815 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 5816 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
5817 | DEFAULT_wxUSE_IMAGLIST=yes |
5818 | DEFAULT_wxUSE_LISTBOX=yes | |
5819 | DEFAULT_wxUSE_LISTCTRL=yes | |
5820 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 5821 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
5822 | DEFAULT_wxUSE_RADIOBOX=yes |
5823 | DEFAULT_wxUSE_RADIOBTN=yes | |
5824 | DEFAULT_wxUSE_SASH=yes | |
5825 | DEFAULT_wxUSE_SCROLLBAR=yes | |
5826 | DEFAULT_wxUSE_SLIDER=yes | |
5827 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 5828 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
5829 | DEFAULT_wxUSE_SPLITTER=yes |
5830 | DEFAULT_wxUSE_STATBMP=yes | |
5831 | DEFAULT_wxUSE_STATBOX=yes | |
5832 | DEFAULT_wxUSE_STATLINE=yes | |
5833 | DEFAULT_wxUSE_STATUSBAR=yes | |
5834 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 5835 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 5836 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
5837 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
5838 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
5839 | DEFAULT_wxUSE_TOOLTIPS=yes |
5840 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 5841 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 5842 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
5843 | elif test "$wxUSE_CONTROLS" = "no"; then |
5844 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
5845 | DEFAULT_wxUSE_BMPBUTTON=no |
5846 | DEFAULT_wxUSE_BUTTON=no | |
5847 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5848 | DEFAULT_wxUSE_CARET=no |
5849 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
5850 | DEFAULT_wxUSE_CHECKBOX=no |
5851 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5852 | DEFAULT_wxUSE_CHOICE=no | |
5853 | DEFAULT_wxUSE_GAUGE=no | |
5854 | DEFAULT_wxUSE_GRID=no | |
5855 | DEFAULT_wxUSE_NEW_GRID=no | |
5856 | DEFAULT_wxUSE_IMAGLIST=no | |
5857 | DEFAULT_wxUSE_LISTBOX=no | |
5858 | DEFAULT_wxUSE_LISTCTRL=no | |
5859 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 5860 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
5861 | DEFAULT_wxUSE_RADIOBOX=no |
5862 | DEFAULT_wxUSE_RADIOBTN=no | |
5863 | DEFAULT_wxUSE_SASH=no | |
5864 | DEFAULT_wxUSE_SCROLLBAR=no | |
5865 | DEFAULT_wxUSE_SLIDER=no | |
5866 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 5867 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
5868 | DEFAULT_wxUSE_SPLITTER=no |
5869 | DEFAULT_wxUSE_STATBMP=no | |
5870 | DEFAULT_wxUSE_STATBOX=no | |
5871 | DEFAULT_wxUSE_STATLINE=no | |
5872 | DEFAULT_wxUSE_STATUSBAR=no | |
5873 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 5874 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 5875 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
5876 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
5877 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
5878 | DEFAULT_wxUSE_TOOLTIPS=no |
5879 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 5880 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 5881 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
5882 | fi |
5883 | ||
8284b0c5 | 5884 | |
5005acfe VZ |
5885 | enablestring= |
5886 | echo $ac_n "checking for --${enablestring:-enable}-accel""... $ac_c" 1>&6 | |
5887 | echo "configure:5888: checking for --${enablestring:-enable}-accel" >&5 | |
10f2d63a VZ |
5888 | no_cache=0 |
5889 | # Check whether --enable-accel or --disable-accel was given. | |
5890 | if test "${enable_accel+set}" = set; then | |
5891 | enableval="$enable_accel" | |
a0b9e27f | 5892 | |
10f2d63a VZ |
5893 | if test "$enableval" = yes; then |
5894 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5895 | else | |
5896 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5897 | fi | |
a0b9e27f | 5898 | |
10f2d63a | 5899 | else |
a0b9e27f | 5900 | |
10f2d63a VZ |
5901 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
5902 | if test "x$LINE" != x ; then | |
5903 | eval "DEFAULT_$LINE" | |
5904 | else | |
5905 | no_cache=1 | |
5906 | fi | |
5907 | ||
5908 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
a0b9e27f MB |
5909 | |
5910 | fi | |
10f2d63a VZ |
5911 | |
5912 | ||
5913 | eval "$ac_cv_use_accel" | |
5914 | if test "$no_cache" != 1; then | |
5915 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5916 | fi | |
5917 | ||
5918 | if test "$wxUSE_ACCEL" = yes; then | |
a0b9e27f | 5919 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5920 | else |
a0b9e27f | 5921 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5922 | fi |
a0b9e27f | 5923 | |
10f2d63a | 5924 | |
5005acfe VZ |
5925 | enablestring= |
5926 | echo $ac_n "checking for --${enablestring:-enable}-button""... $ac_c" 1>&6 | |
5927 | echo "configure:5928: checking for --${enablestring:-enable}-button" >&5 | |
10f2d63a | 5928 | no_cache=0 |
1e6feb95 VZ |
5929 | # Check whether --enable-button or --disable-button was given. |
5930 | if test "${enable_button+set}" = set; then | |
5931 | enableval="$enable_button" | |
a0b9e27f | 5932 | |
10f2d63a | 5933 | if test "$enableval" = yes; then |
1e6feb95 | 5934 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 5935 | else |
1e6feb95 | 5936 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 5937 | fi |
a0b9e27f | 5938 | |
10f2d63a | 5939 | else |
a0b9e27f | 5940 | |
1e6feb95 | 5941 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
5942 | if test "x$LINE" != x ; then |
5943 | eval "DEFAULT_$LINE" | |
5944 | else | |
5945 | no_cache=1 | |
5946 | fi | |
5947 | ||
1e6feb95 | 5948 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
a0b9e27f MB |
5949 | |
5950 | fi | |
10f2d63a VZ |
5951 | |
5952 | ||
1e6feb95 | 5953 | eval "$ac_cv_use_button" |
10f2d63a | 5954 | if test "$no_cache" != 1; then |
1e6feb95 | 5955 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5956 | fi |
5957 | ||
1e6feb95 | 5958 | if test "$wxUSE_BUTTON" = yes; then |
a0b9e27f | 5959 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5960 | else |
a0b9e27f | 5961 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5962 | fi |
a0b9e27f | 5963 | |
10f2d63a | 5964 | |
5005acfe VZ |
5965 | enablestring= |
5966 | echo $ac_n "checking for --${enablestring:-enable}-bmpbutton""... $ac_c" 1>&6 | |
5967 | echo "configure:5968: checking for --${enablestring:-enable}-bmpbutton" >&5 | |
10f2d63a VZ |
5968 | no_cache=0 |
5969 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
5970 | if test "${enable_bmpbutton+set}" = set; then | |
5971 | enableval="$enable_bmpbutton" | |
a0b9e27f | 5972 | |
10f2d63a VZ |
5973 | if test "$enableval" = yes; then |
5974 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
5975 | else | |
5976 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
5977 | fi | |
a0b9e27f | 5978 | |
10f2d63a | 5979 | else |
a0b9e27f | 5980 | |
10f2d63a VZ |
5981 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
5982 | if test "x$LINE" != x ; then | |
5983 | eval "DEFAULT_$LINE" | |
5984 | else | |
5985 | no_cache=1 | |
5986 | fi | |
5987 | ||
5988 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
a0b9e27f MB |
5989 | |
5990 | fi | |
10f2d63a VZ |
5991 | |
5992 | ||
5993 | eval "$ac_cv_use_bmpbutton" | |
5994 | if test "$no_cache" != 1; then | |
5995 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5996 | fi | |
5997 | ||
5998 | if test "$wxUSE_BMPBUTTON" = yes; then | |
a0b9e27f | 5999 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6000 | else |
a0b9e27f | 6001 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6002 | fi |
a0b9e27f | 6003 | |
10f2d63a | 6004 | |
5005acfe VZ |
6005 | enablestring= |
6006 | echo $ac_n "checking for --${enablestring:-enable}-calendar""... $ac_c" 1>&6 | |
6007 | echo "configure:6008: checking for --${enablestring:-enable}-calendar" >&5 | |
1e6feb95 VZ |
6008 | no_cache=0 |
6009 | # Check whether --enable-calendar or --disable-calendar was given. | |
6010 | if test "${enable_calendar+set}" = set; then | |
6011 | enableval="$enable_calendar" | |
a0b9e27f | 6012 | |
1e6feb95 VZ |
6013 | if test "$enableval" = yes; then |
6014 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
6015 | else | |
6016 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
6017 | fi | |
a0b9e27f | 6018 | |
1e6feb95 | 6019 | else |
a0b9e27f | 6020 | |
1e6feb95 VZ |
6021 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` |
6022 | if test "x$LINE" != x ; then | |
6023 | eval "DEFAULT_$LINE" | |
6024 | else | |
6025 | no_cache=1 | |
6026 | fi | |
6027 | ||
6028 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
a0b9e27f MB |
6029 | |
6030 | fi | |
1e6feb95 VZ |
6031 | |
6032 | ||
6033 | eval "$ac_cv_use_calendar" | |
6034 | if test "$no_cache" != 1; then | |
6035 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
6036 | fi | |
6037 | ||
6038 | if test "$wxUSE_CALCTRL" = yes; then | |
a0b9e27f | 6039 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 6040 | else |
a0b9e27f | 6041 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 6042 | fi |
a0b9e27f | 6043 | |
1e6feb95 | 6044 | |
5005acfe VZ |
6045 | enablestring= |
6046 | echo $ac_n "checking for --${enablestring:-enable}-caret""... $ac_c" 1>&6 | |
6047 | echo "configure:6048: checking for --${enablestring:-enable}-caret" >&5 | |
1e6feb95 VZ |
6048 | no_cache=0 |
6049 | # Check whether --enable-caret or --disable-caret was given. | |
6050 | if test "${enable_caret+set}" = set; then | |
6051 | enableval="$enable_caret" | |
a0b9e27f | 6052 | |
1e6feb95 VZ |
6053 | if test "$enableval" = yes; then |
6054 | ac_cv_use_caret='wxUSE_CARET=yes' | |
6055 | else | |
6056 | ac_cv_use_caret='wxUSE_CARET=no' | |
6057 | fi | |
a0b9e27f | 6058 | |
1e6feb95 | 6059 | else |
a0b9e27f | 6060 | |
1e6feb95 VZ |
6061 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` |
6062 | if test "x$LINE" != x ; then | |
6063 | eval "DEFAULT_$LINE" | |
6064 | else | |
6065 | no_cache=1 | |
6066 | fi | |
6067 | ||
6068 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
a0b9e27f MB |
6069 | |
6070 | fi | |
1e6feb95 VZ |
6071 | |
6072 | ||
6073 | eval "$ac_cv_use_caret" | |
6074 | if test "$no_cache" != 1; then | |
6075 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
6076 | fi | |
6077 | ||
6078 | if test "$wxUSE_CARET" = yes; then | |
a0b9e27f | 6079 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 6080 | else |
a0b9e27f | 6081 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 6082 | fi |
a0b9e27f | 6083 | |
1e6feb95 | 6084 | |
5005acfe VZ |
6085 | enablestring= |
6086 | echo $ac_n "checking for --${enablestring:-enable}-checkbox""... $ac_c" 1>&6 | |
6087 | echo "configure:6088: checking for --${enablestring:-enable}-checkbox" >&5 | |
10f2d63a VZ |
6088 | no_cache=0 |
6089 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
6090 | if test "${enable_checkbox+set}" = set; then | |
6091 | enableval="$enable_checkbox" | |
a0b9e27f | 6092 | |
10f2d63a VZ |
6093 | if test "$enableval" = yes; then |
6094 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
6095 | else | |
6096 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
6097 | fi | |
a0b9e27f | 6098 | |
10f2d63a | 6099 | else |
a0b9e27f | 6100 | |
10f2d63a VZ |
6101 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
6102 | if test "x$LINE" != x ; then | |
6103 | eval "DEFAULT_$LINE" | |
6104 | else | |
6105 | no_cache=1 | |
6106 | fi | |
6107 | ||
6108 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
a0b9e27f MB |
6109 | |
6110 | fi | |
10f2d63a VZ |
6111 | |
6112 | ||
6113 | eval "$ac_cv_use_checkbox" | |
6114 | if test "$no_cache" != 1; then | |
6115 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
6116 | fi | |
6117 | ||
6118 | if test "$wxUSE_CHECKBOX" = yes; then | |
a0b9e27f | 6119 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6120 | else |
a0b9e27f | 6121 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6122 | fi |
a0b9e27f | 6123 | |
10f2d63a | 6124 | |
5005acfe VZ |
6125 | enablestring= |
6126 | echo $ac_n "checking for --${enablestring:-enable}-checklst""... $ac_c" 1>&6 | |
6127 | echo "configure:6128: checking for --${enablestring:-enable}-checklst" >&5 | |
10f2d63a VZ |
6128 | no_cache=0 |
6129 | # Check whether --enable-checklst or --disable-checklst was given. | |
6130 | if test "${enable_checklst+set}" = set; then | |
6131 | enableval="$enable_checklst" | |
a0b9e27f | 6132 | |
10f2d63a VZ |
6133 | if test "$enableval" = yes; then |
6134 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
6135 | else | |
6136 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
6137 | fi | |
a0b9e27f | 6138 | |
10f2d63a | 6139 | else |
a0b9e27f | 6140 | |
10f2d63a VZ |
6141 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
6142 | if test "x$LINE" != x ; then | |
6143 | eval "DEFAULT_$LINE" | |
6144 | else | |
6145 | no_cache=1 | |
6146 | fi | |
6147 | ||
6148 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
a0b9e27f MB |
6149 | |
6150 | fi | |
10f2d63a VZ |
6151 | |
6152 | ||
6153 | eval "$ac_cv_use_checklst" | |
6154 | if test "$no_cache" != 1; then | |
6155 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
6156 | fi | |
6157 | ||
6158 | if test "$wxUSE_CHECKLST" = yes; then | |
a0b9e27f | 6159 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6160 | else |
a0b9e27f | 6161 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6162 | fi |
a0b9e27f | 6163 | |
10f2d63a | 6164 | |
5005acfe VZ |
6165 | enablestring= |
6166 | echo $ac_n "checking for --${enablestring:-enable}-choice""... $ac_c" 1>&6 | |
6167 | echo "configure:6168: checking for --${enablestring:-enable}-choice" >&5 | |
10f2d63a VZ |
6168 | no_cache=0 |
6169 | # Check whether --enable-choice or --disable-choice was given. | |
6170 | if test "${enable_choice+set}" = set; then | |
6171 | enableval="$enable_choice" | |
a0b9e27f | 6172 | |
10f2d63a VZ |
6173 | if test "$enableval" = yes; then |
6174 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
6175 | else | |
6176 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
6177 | fi | |
a0b9e27f | 6178 | |
10f2d63a | 6179 | else |
a0b9e27f | 6180 | |
10f2d63a VZ |
6181 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
6182 | if test "x$LINE" != x ; then | |
6183 | eval "DEFAULT_$LINE" | |
6184 | else | |
6185 | no_cache=1 | |
6186 | fi | |
6187 | ||
6188 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
a0b9e27f MB |
6189 | |
6190 | fi | |
10f2d63a VZ |
6191 | |
6192 | ||
6193 | eval "$ac_cv_use_choice" | |
6194 | if test "$no_cache" != 1; then | |
6195 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
6196 | fi | |
6197 | ||
6198 | if test "$wxUSE_CHOICE" = yes; then | |
a0b9e27f | 6199 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6200 | else |
a0b9e27f | 6201 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6202 | fi |
a0b9e27f | 6203 | |
10f2d63a | 6204 | |
5005acfe VZ |
6205 | enablestring= |
6206 | echo $ac_n "checking for --${enablestring:-enable}-combobox""... $ac_c" 1>&6 | |
6207 | echo "configure:6208: checking for --${enablestring:-enable}-combobox" >&5 | |
10f2d63a VZ |
6208 | no_cache=0 |
6209 | # Check whether --enable-combobox or --disable-combobox was given. | |
6210 | if test "${enable_combobox+set}" = set; then | |
6211 | enableval="$enable_combobox" | |
a0b9e27f | 6212 | |
10f2d63a VZ |
6213 | if test "$enableval" = yes; then |
6214 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
6215 | else | |
6216 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
6217 | fi | |
a0b9e27f | 6218 | |
10f2d63a | 6219 | else |
a0b9e27f | 6220 | |
10f2d63a VZ |
6221 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
6222 | if test "x$LINE" != x ; then | |
6223 | eval "DEFAULT_$LINE" | |
6224 | else | |
6225 | no_cache=1 | |
6226 | fi | |
6227 | ||
6228 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
a0b9e27f MB |
6229 | |
6230 | fi | |
10f2d63a VZ |
6231 | |
6232 | ||
6233 | eval "$ac_cv_use_combobox" | |
6234 | if test "$no_cache" != 1; then | |
6235 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
6236 | fi | |
6237 | ||
6238 | if test "$wxUSE_COMBOBOX" = yes; then | |
a0b9e27f | 6239 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6240 | else |
a0b9e27f | 6241 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6242 | fi |
a0b9e27f | 6243 | |
10f2d63a | 6244 | |
5005acfe VZ |
6245 | enablestring= |
6246 | echo $ac_n "checking for --${enablestring:-enable}-gauge""... $ac_c" 1>&6 | |
6247 | echo "configure:6248: checking for --${enablestring:-enable}-gauge" >&5 | |
10f2d63a VZ |
6248 | no_cache=0 |
6249 | # Check whether --enable-gauge or --disable-gauge was given. | |
6250 | if test "${enable_gauge+set}" = set; then | |
6251 | enableval="$enable_gauge" | |
a0b9e27f | 6252 | |
10f2d63a VZ |
6253 | if test "$enableval" = yes; then |
6254 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
6255 | else | |
6256 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
6257 | fi | |
a0b9e27f | 6258 | |
10f2d63a | 6259 | else |
a0b9e27f | 6260 | |
10f2d63a VZ |
6261 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
6262 | if test "x$LINE" != x ; then | |
6263 | eval "DEFAULT_$LINE" | |
6264 | else | |
6265 | no_cache=1 | |
6266 | fi | |
6267 | ||
6268 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
a0b9e27f MB |
6269 | |
6270 | fi | |
10f2d63a VZ |
6271 | |
6272 | ||
6273 | eval "$ac_cv_use_gauge" | |
6274 | if test "$no_cache" != 1; then | |
6275 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
6276 | fi | |
6277 | ||
6278 | if test "$wxUSE_GAUGE" = yes; then | |
a0b9e27f | 6279 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6280 | else |
a0b9e27f | 6281 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6282 | fi |
a0b9e27f | 6283 | |
10f2d63a | 6284 | |
5005acfe VZ |
6285 | enablestring= |
6286 | echo $ac_n "checking for --${enablestring:-enable}-grid""... $ac_c" 1>&6 | |
6287 | echo "configure:6288: checking for --${enablestring:-enable}-grid" >&5 | |
10f2d63a VZ |
6288 | no_cache=0 |
6289 | # Check whether --enable-grid or --disable-grid was given. | |
6290 | if test "${enable_grid+set}" = set; then | |
6291 | enableval="$enable_grid" | |
a0b9e27f | 6292 | |
10f2d63a VZ |
6293 | if test "$enableval" = yes; then |
6294 | ac_cv_use_grid='wxUSE_GRID=yes' | |
6295 | else | |
6296 | ac_cv_use_grid='wxUSE_GRID=no' | |
6297 | fi | |
a0b9e27f | 6298 | |
10f2d63a | 6299 | else |
a0b9e27f | 6300 | |
10f2d63a VZ |
6301 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
6302 | if test "x$LINE" != x ; then | |
6303 | eval "DEFAULT_$LINE" | |
6304 | else | |
6305 | no_cache=1 | |
6306 | fi | |
6307 | ||
6308 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
a0b9e27f MB |
6309 | |
6310 | fi | |
10f2d63a VZ |
6311 | |
6312 | ||
6313 | eval "$ac_cv_use_grid" | |
6314 | if test "$no_cache" != 1; then | |
6315 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
6316 | fi | |
6317 | ||
6318 | if test "$wxUSE_GRID" = yes; then | |
a0b9e27f | 6319 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6320 | else |
a0b9e27f | 6321 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6322 | fi |
a0b9e27f | 6323 | |
10f2d63a | 6324 | |
5005acfe VZ |
6325 | enablestring= |
6326 | echo $ac_n "checking for --${enablestring:-enable}-newgrid""... $ac_c" 1>&6 | |
6327 | echo "configure:6328: checking for --${enablestring:-enable}-newgrid" >&5 | |
10f2d63a VZ |
6328 | no_cache=0 |
6329 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
6330 | if test "${enable_newgrid+set}" = set; then | |
6331 | enableval="$enable_newgrid" | |
a0b9e27f | 6332 | |
10f2d63a VZ |
6333 | if test "$enableval" = yes; then |
6334 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
6335 | else | |
6336 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
6337 | fi | |
a0b9e27f | 6338 | |
10f2d63a | 6339 | else |
a0b9e27f | 6340 | |
10f2d63a VZ |
6341 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
6342 | if test "x$LINE" != x ; then | |
6343 | eval "DEFAULT_$LINE" | |
6344 | else | |
6345 | no_cache=1 | |
6346 | fi | |
6347 | ||
6348 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
a0b9e27f MB |
6349 | |
6350 | fi | |
10f2d63a VZ |
6351 | |
6352 | ||
6353 | eval "$ac_cv_use_newgrid" | |
6354 | if test "$no_cache" != 1; then | |
6355 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
6356 | fi | |
6357 | ||
6358 | if test "$wxUSE_NEW_GRID" = yes; then | |
a0b9e27f | 6359 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6360 | else |
a0b9e27f | 6361 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6362 | fi |
a0b9e27f | 6363 | |
10f2d63a | 6364 | |
5005acfe VZ |
6365 | enablestring= |
6366 | echo $ac_n "checking for --${enablestring:-enable}-imaglist""... $ac_c" 1>&6 | |
6367 | echo "configure:6368: checking for --${enablestring:-enable}-imaglist" >&5 | |
10f2d63a VZ |
6368 | no_cache=0 |
6369 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
6370 | if test "${enable_imaglist+set}" = set; then | |
6371 | enableval="$enable_imaglist" | |
a0b9e27f | 6372 | |
10f2d63a VZ |
6373 | if test "$enableval" = yes; then |
6374 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
6375 | else | |
6376 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
6377 | fi | |
a0b9e27f | 6378 | |
10f2d63a | 6379 | else |
a0b9e27f | 6380 | |
10f2d63a VZ |
6381 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
6382 | if test "x$LINE" != x ; then | |
6383 | eval "DEFAULT_$LINE" | |
6384 | else | |
6385 | no_cache=1 | |
6386 | fi | |
6387 | ||
6388 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
a0b9e27f MB |
6389 | |
6390 | fi | |
10f2d63a VZ |
6391 | |
6392 | ||
6393 | eval "$ac_cv_use_imaglist" | |
6394 | if test "$no_cache" != 1; then | |
6395 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
6396 | fi | |
6397 | ||
6398 | if test "$wxUSE_IMAGLIST" = yes; then | |
a0b9e27f | 6399 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6400 | else |
a0b9e27f | 6401 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6402 | fi |
a0b9e27f | 6403 | |
10f2d63a | 6404 | |
5005acfe VZ |
6405 | enablestring= |
6406 | echo $ac_n "checking for --${enablestring:-enable}-listbox""... $ac_c" 1>&6 | |
6407 | echo "configure:6408: checking for --${enablestring:-enable}-listbox" >&5 | |
10f2d63a VZ |
6408 | no_cache=0 |
6409 | # Check whether --enable-listbox or --disable-listbox was given. | |
6410 | if test "${enable_listbox+set}" = set; then | |
6411 | enableval="$enable_listbox" | |
a0b9e27f | 6412 | |
10f2d63a VZ |
6413 | if test "$enableval" = yes; then |
6414 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
6415 | else | |
6416 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
6417 | fi | |
a0b9e27f | 6418 | |
10f2d63a | 6419 | else |
a0b9e27f | 6420 | |
10f2d63a VZ |
6421 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
6422 | if test "x$LINE" != x ; then | |
6423 | eval "DEFAULT_$LINE" | |
6424 | else | |
6425 | no_cache=1 | |
6426 | fi | |
6427 | ||
6428 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
a0b9e27f MB |
6429 | |
6430 | fi | |
10f2d63a VZ |
6431 | |
6432 | ||
6433 | eval "$ac_cv_use_listbox" | |
6434 | if test "$no_cache" != 1; then | |
6435 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
6436 | fi | |
6437 | ||
6438 | if test "$wxUSE_LISTBOX" = yes; then | |
a0b9e27f | 6439 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6440 | else |
a0b9e27f | 6441 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6442 | fi |
a0b9e27f | 6443 | |
10f2d63a | 6444 | |
5005acfe VZ |
6445 | enablestring= |
6446 | echo $ac_n "checking for --${enablestring:-enable}-listctrl""... $ac_c" 1>&6 | |
6447 | echo "configure:6448: checking for --${enablestring:-enable}-listctrl" >&5 | |
10f2d63a VZ |
6448 | no_cache=0 |
6449 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
6450 | if test "${enable_listctrl+set}" = set; then | |
6451 | enableval="$enable_listctrl" | |
a0b9e27f | 6452 | |
10f2d63a VZ |
6453 | if test "$enableval" = yes; then |
6454 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
6455 | else | |
6456 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
6457 | fi | |
a0b9e27f | 6458 | |
10f2d63a | 6459 | else |
a0b9e27f | 6460 | |
10f2d63a VZ |
6461 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
6462 | if test "x$LINE" != x ; then | |
6463 | eval "DEFAULT_$LINE" | |
6464 | else | |
6465 | no_cache=1 | |
6466 | fi | |
6467 | ||
6468 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
a0b9e27f MB |
6469 | |
6470 | fi | |
10f2d63a VZ |
6471 | |
6472 | ||
6473 | eval "$ac_cv_use_listctrl" | |
6474 | if test "$no_cache" != 1; then | |
6475 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
6476 | fi | |
6477 | ||
6478 | if test "$wxUSE_LISTCTRL" = yes; then | |
a0b9e27f | 6479 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6480 | else |
a0b9e27f | 6481 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6482 | fi |
a0b9e27f | 6483 | |
10f2d63a | 6484 | |
5005acfe VZ |
6485 | enablestring= |
6486 | echo $ac_n "checking for --${enablestring:-enable}-notebook""... $ac_c" 1>&6 | |
6487 | echo "configure:6488: checking for --${enablestring:-enable}-notebook" >&5 | |
10f2d63a VZ |
6488 | no_cache=0 |
6489 | # Check whether --enable-notebook or --disable-notebook was given. | |
6490 | if test "${enable_notebook+set}" = set; then | |
6491 | enableval="$enable_notebook" | |
a0b9e27f | 6492 | |
10f2d63a VZ |
6493 | if test "$enableval" = yes; then |
6494 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
6495 | else | |
6496 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
6497 | fi | |
a0b9e27f | 6498 | |
10f2d63a | 6499 | else |
a0b9e27f | 6500 | |
10f2d63a VZ |
6501 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
6502 | if test "x$LINE" != x ; then | |
6503 | eval "DEFAULT_$LINE" | |
6504 | else | |
6505 | no_cache=1 | |
6506 | fi | |
6507 | ||
6508 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
a0b9e27f MB |
6509 | |
6510 | fi | |
10f2d63a VZ |
6511 | |
6512 | ||
6513 | eval "$ac_cv_use_notebook" | |
6514 | if test "$no_cache" != 1; then | |
6515 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
6516 | fi | |
6517 | ||
6518 | if test "$wxUSE_NOTEBOOK" = yes; then | |
a0b9e27f | 6519 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6520 | else |
a0b9e27f | 6521 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6522 | fi |
a0b9e27f | 6523 | |
10f2d63a | 6524 | |
5005acfe VZ |
6525 | enablestring= |
6526 | echo $ac_n "checking for --${enablestring:-enable}-propsheet""... $ac_c" 1>&6 | |
6527 | echo "configure:6528: checking for --${enablestring:-enable}-propsheet" >&5 | |
24176f2c GD |
6528 | no_cache=0 |
6529 | # Check whether --enable-propsheet or --disable-propsheet was given. | |
6530 | if test "${enable_propsheet+set}" = set; then | |
6531 | enableval="$enable_propsheet" | |
a0b9e27f | 6532 | |
24176f2c GD |
6533 | if test "$enableval" = yes; then |
6534 | ac_cv_use_propsheet='wxUSE_PROPSHEET=yes' | |
6535 | else | |
6536 | ac_cv_use_propsheet='wxUSE_PROPSHEET=no' | |
6537 | fi | |
a0b9e27f | 6538 | |
24176f2c | 6539 | else |
a0b9e27f | 6540 | |
24176f2c GD |
6541 | LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}` |
6542 | if test "x$LINE" != x ; then | |
6543 | eval "DEFAULT_$LINE" | |
6544 | else | |
6545 | no_cache=1 | |
6546 | fi | |
6547 | ||
6548 | ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET | |
a0b9e27f MB |
6549 | |
6550 | fi | |
24176f2c GD |
6551 | |
6552 | ||
6553 | eval "$ac_cv_use_propsheet" | |
6554 | if test "$no_cache" != 1; then | |
6555 | echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp | |
6556 | fi | |
6557 | ||
6558 | if test "$wxUSE_PROPSHEET" = yes; then | |
a0b9e27f | 6559 | echo "$ac_t""yes" 1>&6 |
24176f2c | 6560 | else |
a0b9e27f | 6561 | echo "$ac_t""no" 1>&6 |
24176f2c | 6562 | fi |
a0b9e27f | 6563 | |
24176f2c | 6564 | |
5005acfe VZ |
6565 | enablestring= |
6566 | echo $ac_n "checking for --${enablestring:-enable}-radiobox""... $ac_c" 1>&6 | |
6567 | echo "configure:6568: checking for --${enablestring:-enable}-radiobox" >&5 | |
10f2d63a VZ |
6568 | no_cache=0 |
6569 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
6570 | if test "${enable_radiobox+set}" = set; then | |
6571 | enableval="$enable_radiobox" | |
a0b9e27f | 6572 | |
10f2d63a VZ |
6573 | if test "$enableval" = yes; then |
6574 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
6575 | else | |
6576 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
6577 | fi | |
a0b9e27f | 6578 | |
10f2d63a | 6579 | else |
a0b9e27f | 6580 | |
10f2d63a VZ |
6581 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
6582 | if test "x$LINE" != x ; then | |
6583 | eval "DEFAULT_$LINE" | |
6584 | else | |
6585 | no_cache=1 | |
6586 | fi | |
6587 | ||
6588 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
a0b9e27f MB |
6589 | |
6590 | fi | |
10f2d63a VZ |
6591 | |
6592 | ||
6593 | eval "$ac_cv_use_radiobox" | |
6594 | if test "$no_cache" != 1; then | |
6595 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
6596 | fi | |
6597 | ||
6598 | if test "$wxUSE_RADIOBOX" = yes; then | |
a0b9e27f | 6599 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6600 | else |
a0b9e27f | 6601 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6602 | fi |
a0b9e27f | 6603 | |
10f2d63a | 6604 | |
5005acfe VZ |
6605 | enablestring= |
6606 | echo $ac_n "checking for --${enablestring:-enable}-radiobtn""... $ac_c" 1>&6 | |
6607 | echo "configure:6608: checking for --${enablestring:-enable}-radiobtn" >&5 | |
10f2d63a VZ |
6608 | no_cache=0 |
6609 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
6610 | if test "${enable_radiobtn+set}" = set; then | |
6611 | enableval="$enable_radiobtn" | |
a0b9e27f | 6612 | |
10f2d63a VZ |
6613 | if test "$enableval" = yes; then |
6614 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
6615 | else | |
6616 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
6617 | fi | |
a0b9e27f | 6618 | |
10f2d63a | 6619 | else |
a0b9e27f | 6620 | |
10f2d63a VZ |
6621 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
6622 | if test "x$LINE" != x ; then | |
6623 | eval "DEFAULT_$LINE" | |
6624 | else | |
6625 | no_cache=1 | |
6626 | fi | |
6627 | ||
6628 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
a0b9e27f MB |
6629 | |
6630 | fi | |
10f2d63a VZ |
6631 | |
6632 | ||
6633 | eval "$ac_cv_use_radiobtn" | |
6634 | if test "$no_cache" != 1; then | |
6635 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
6636 | fi | |
6637 | ||
6638 | if test "$wxUSE_RADIOBTN" = yes; then | |
a0b9e27f | 6639 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6640 | else |
a0b9e27f | 6641 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6642 | fi |
a0b9e27f | 6643 | |
10f2d63a | 6644 | |
5005acfe VZ |
6645 | enablestring= |
6646 | echo $ac_n "checking for --${enablestring:-enable}-sash""... $ac_c" 1>&6 | |
6647 | echo "configure:6648: checking for --${enablestring:-enable}-sash" >&5 | |
10f2d63a VZ |
6648 | no_cache=0 |
6649 | # Check whether --enable-sash or --disable-sash was given. | |
6650 | if test "${enable_sash+set}" = set; then | |
6651 | enableval="$enable_sash" | |
a0b9e27f | 6652 | |
10f2d63a VZ |
6653 | if test "$enableval" = yes; then |
6654 | ac_cv_use_sash='wxUSE_SASH=yes' | |
6655 | else | |
6656 | ac_cv_use_sash='wxUSE_SASH=no' | |
6657 | fi | |
a0b9e27f | 6658 | |
10f2d63a | 6659 | else |
a0b9e27f | 6660 | |
10f2d63a VZ |
6661 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
6662 | if test "x$LINE" != x ; then | |
6663 | eval "DEFAULT_$LINE" | |
6664 | else | |
6665 | no_cache=1 | |
6666 | fi | |
6667 | ||
6668 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
a0b9e27f MB |
6669 | |
6670 | fi | |
10f2d63a VZ |
6671 | |
6672 | ||
6673 | eval "$ac_cv_use_sash" | |
6674 | if test "$no_cache" != 1; then | |
6675 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
6676 | fi | |
6677 | ||
6678 | if test "$wxUSE_SASH" = yes; then | |
a0b9e27f | 6679 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6680 | else |
a0b9e27f | 6681 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6682 | fi |
a0b9e27f | 6683 | |
10f2d63a | 6684 | |
5005acfe VZ |
6685 | enablestring= |
6686 | echo $ac_n "checking for --${enablestring:-enable}-scrollbar""... $ac_c" 1>&6 | |
6687 | echo "configure:6688: checking for --${enablestring:-enable}-scrollbar" >&5 | |
10f2d63a VZ |
6688 | no_cache=0 |
6689 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
6690 | if test "${enable_scrollbar+set}" = set; then | |
6691 | enableval="$enable_scrollbar" | |
a0b9e27f | 6692 | |
10f2d63a VZ |
6693 | if test "$enableval" = yes; then |
6694 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
6695 | else | |
6696 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
6697 | fi | |
a0b9e27f | 6698 | |
10f2d63a | 6699 | else |
a0b9e27f | 6700 | |
10f2d63a VZ |
6701 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
6702 | if test "x$LINE" != x ; then | |
6703 | eval "DEFAULT_$LINE" | |
6704 | else | |
6705 | no_cache=1 | |
6706 | fi | |
6707 | ||
6708 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
a0b9e27f MB |
6709 | |
6710 | fi | |
10f2d63a VZ |
6711 | |
6712 | ||
6713 | eval "$ac_cv_use_scrollbar" | |
6714 | if test "$no_cache" != 1; then | |
6715 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
6716 | fi | |
6717 | ||
6718 | if test "$wxUSE_SCROLLBAR" = yes; then | |
a0b9e27f | 6719 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6720 | else |
a0b9e27f | 6721 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6722 | fi |
a0b9e27f | 6723 | |
10f2d63a | 6724 | |
5005acfe VZ |
6725 | enablestring= |
6726 | echo $ac_n "checking for --${enablestring:-enable}-slider""... $ac_c" 1>&6 | |
6727 | echo "configure:6728: checking for --${enablestring:-enable}-slider" >&5 | |
10f2d63a VZ |
6728 | no_cache=0 |
6729 | # Check whether --enable-slider or --disable-slider was given. | |
6730 | if test "${enable_slider+set}" = set; then | |
6731 | enableval="$enable_slider" | |
a0b9e27f | 6732 | |
10f2d63a VZ |
6733 | if test "$enableval" = yes; then |
6734 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
6735 | else | |
6736 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
6737 | fi | |
a0b9e27f | 6738 | |
10f2d63a | 6739 | else |
a0b9e27f | 6740 | |
10f2d63a VZ |
6741 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
6742 | if test "x$LINE" != x ; then | |
6743 | eval "DEFAULT_$LINE" | |
6744 | else | |
6745 | no_cache=1 | |
6746 | fi | |
6747 | ||
6748 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
a0b9e27f MB |
6749 | |
6750 | fi | |
10f2d63a VZ |
6751 | |
6752 | ||
6753 | eval "$ac_cv_use_slider" | |
6754 | if test "$no_cache" != 1; then | |
6755 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
6756 | fi | |
6757 | ||
6758 | if test "$wxUSE_SLIDER" = yes; then | |
a0b9e27f | 6759 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6760 | else |
a0b9e27f | 6761 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6762 | fi |
a0b9e27f | 6763 | |
10f2d63a | 6764 | |
5005acfe VZ |
6765 | enablestring= |
6766 | echo $ac_n "checking for --${enablestring:-enable}-spinbtn""... $ac_c" 1>&6 | |
6767 | echo "configure:6768: checking for --${enablestring:-enable}-spinbtn" >&5 | |
10f2d63a VZ |
6768 | no_cache=0 |
6769 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
6770 | if test "${enable_spinbtn+set}" = set; then | |
6771 | enableval="$enable_spinbtn" | |
a0b9e27f | 6772 | |
10f2d63a VZ |
6773 | if test "$enableval" = yes; then |
6774 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
6775 | else | |
6776 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
6777 | fi | |
a0b9e27f | 6778 | |
10f2d63a | 6779 | else |
a0b9e27f | 6780 | |
10f2d63a VZ |
6781 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
6782 | if test "x$LINE" != x ; then | |
6783 | eval "DEFAULT_$LINE" | |
6784 | else | |
6785 | no_cache=1 | |
6786 | fi | |
6787 | ||
6788 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
a0b9e27f MB |
6789 | |
6790 | fi | |
10f2d63a VZ |
6791 | |
6792 | ||
6793 | eval "$ac_cv_use_spinbtn" | |
6794 | if test "$no_cache" != 1; then | |
6795 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
6796 | fi | |
6797 | ||
6798 | if test "$wxUSE_SPINBTN" = yes; then | |
a0b9e27f | 6799 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6800 | else |
a0b9e27f | 6801 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6802 | fi |
a0b9e27f | 6803 | |
10f2d63a | 6804 | |
5005acfe VZ |
6805 | enablestring= |
6806 | echo $ac_n "checking for --${enablestring:-enable}-spinctrl""... $ac_c" 1>&6 | |
6807 | echo "configure:6808: checking for --${enablestring:-enable}-spinctrl" >&5 | |
56cfaa52 RR |
6808 | no_cache=0 |
6809 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
6810 | if test "${enable_spinctrl+set}" = set; then | |
6811 | enableval="$enable_spinctrl" | |
a0b9e27f | 6812 | |
56cfaa52 RR |
6813 | if test "$enableval" = yes; then |
6814 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
6815 | else | |
6816 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
6817 | fi | |
a0b9e27f | 6818 | |
56cfaa52 | 6819 | else |
a0b9e27f | 6820 | |
56cfaa52 RR |
6821 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
6822 | if test "x$LINE" != x ; then | |
6823 | eval "DEFAULT_$LINE" | |
6824 | else | |
6825 | no_cache=1 | |
6826 | fi | |
6827 | ||
6828 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
a0b9e27f MB |
6829 | |
6830 | fi | |
56cfaa52 RR |
6831 | |
6832 | ||
6833 | eval "$ac_cv_use_spinctrl" | |
6834 | if test "$no_cache" != 1; then | |
6835 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
6836 | fi | |
6837 | ||
6838 | if test "$wxUSE_SPINCTRL" = yes; then | |
a0b9e27f | 6839 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 6840 | else |
a0b9e27f | 6841 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 6842 | fi |
a0b9e27f | 6843 | |
56cfaa52 | 6844 | |
5005acfe VZ |
6845 | enablestring= |
6846 | echo $ac_n "checking for --${enablestring:-enable}-splitter""... $ac_c" 1>&6 | |
6847 | echo "configure:6848: checking for --${enablestring:-enable}-splitter" >&5 | |
10f2d63a VZ |
6848 | no_cache=0 |
6849 | # Check whether --enable-splitter or --disable-splitter was given. | |
6850 | if test "${enable_splitter+set}" = set; then | |
6851 | enableval="$enable_splitter" | |
a0b9e27f | 6852 | |
10f2d63a VZ |
6853 | if test "$enableval" = yes; then |
6854 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
6855 | else | |
6856 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
6857 | fi | |
a0b9e27f | 6858 | |
10f2d63a | 6859 | else |
a0b9e27f | 6860 | |
10f2d63a VZ |
6861 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
6862 | if test "x$LINE" != x ; then | |
6863 | eval "DEFAULT_$LINE" | |
6864 | else | |
6865 | no_cache=1 | |
6866 | fi | |
6867 | ||
6868 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
a0b9e27f MB |
6869 | |
6870 | fi | |
10f2d63a VZ |
6871 | |
6872 | ||
6873 | eval "$ac_cv_use_splitter" | |
6874 | if test "$no_cache" != 1; then | |
6875 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
6876 | fi | |
6877 | ||
6878 | if test "$wxUSE_SPLITTER" = yes; then | |
a0b9e27f | 6879 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6880 | else |
a0b9e27f | 6881 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6882 | fi |
a0b9e27f | 6883 | |
10f2d63a | 6884 | |
5005acfe VZ |
6885 | enablestring= |
6886 | echo $ac_n "checking for --${enablestring:-enable}-statbmp""... $ac_c" 1>&6 | |
6887 | echo "configure:6888: checking for --${enablestring:-enable}-statbmp" >&5 | |
10f2d63a VZ |
6888 | no_cache=0 |
6889 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
6890 | if test "${enable_statbmp+set}" = set; then | |
6891 | enableval="$enable_statbmp" | |
a0b9e27f | 6892 | |
10f2d63a VZ |
6893 | if test "$enableval" = yes; then |
6894 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
6895 | else | |
6896 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
6897 | fi | |
a0b9e27f | 6898 | |
10f2d63a | 6899 | else |
a0b9e27f | 6900 | |
10f2d63a VZ |
6901 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
6902 | if test "x$LINE" != x ; then | |
6903 | eval "DEFAULT_$LINE" | |
6904 | else | |
6905 | no_cache=1 | |
6906 | fi | |
6907 | ||
6908 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
a0b9e27f MB |
6909 | |
6910 | fi | |
10f2d63a VZ |
6911 | |
6912 | ||
6913 | eval "$ac_cv_use_statbmp" | |
6914 | if test "$no_cache" != 1; then | |
6915 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
6916 | fi | |
6917 | ||
6918 | if test "$wxUSE_STATBMP" = yes; then | |
a0b9e27f | 6919 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6920 | else |
a0b9e27f | 6921 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6922 | fi |
a0b9e27f | 6923 | |
10f2d63a | 6924 | |
5005acfe VZ |
6925 | enablestring= |
6926 | echo $ac_n "checking for --${enablestring:-enable}-statbox""... $ac_c" 1>&6 | |
6927 | echo "configure:6928: checking for --${enablestring:-enable}-statbox" >&5 | |
10f2d63a VZ |
6928 | no_cache=0 |
6929 | # Check whether --enable-statbox or --disable-statbox was given. | |
6930 | if test "${enable_statbox+set}" = set; then | |
6931 | enableval="$enable_statbox" | |
a0b9e27f | 6932 | |
10f2d63a VZ |
6933 | if test "$enableval" = yes; then |
6934 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
6935 | else | |
6936 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
6937 | fi | |
a0b9e27f | 6938 | |
10f2d63a | 6939 | else |
a0b9e27f | 6940 | |
10f2d63a VZ |
6941 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
6942 | if test "x$LINE" != x ; then | |
6943 | eval "DEFAULT_$LINE" | |
6944 | else | |
6945 | no_cache=1 | |
6946 | fi | |
6947 | ||
6948 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
a0b9e27f MB |
6949 | |
6950 | fi | |
10f2d63a VZ |
6951 | |
6952 | ||
6953 | eval "$ac_cv_use_statbox" | |
6954 | if test "$no_cache" != 1; then | |
6955 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
6956 | fi | |
6957 | ||
6958 | if test "$wxUSE_STATBOX" = yes; then | |
a0b9e27f | 6959 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6960 | else |
a0b9e27f | 6961 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6962 | fi |
a0b9e27f | 6963 | |
10f2d63a | 6964 | |
5005acfe VZ |
6965 | enablestring= |
6966 | echo $ac_n "checking for --${enablestring:-enable}-statline""... $ac_c" 1>&6 | |
6967 | echo "configure:6968: checking for --${enablestring:-enable}-statline" >&5 | |
10f2d63a VZ |
6968 | no_cache=0 |
6969 | # Check whether --enable-statline or --disable-statline was given. | |
6970 | if test "${enable_statline+set}" = set; then | |
6971 | enableval="$enable_statline" | |
a0b9e27f | 6972 | |
10f2d63a VZ |
6973 | if test "$enableval" = yes; then |
6974 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
6975 | else | |
6976 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
6977 | fi | |
a0b9e27f | 6978 | |
10f2d63a | 6979 | else |
a0b9e27f | 6980 | |
10f2d63a VZ |
6981 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
6982 | if test "x$LINE" != x ; then | |
6983 | eval "DEFAULT_$LINE" | |
6984 | else | |
6985 | no_cache=1 | |
6986 | fi | |
6987 | ||
6988 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
a0b9e27f MB |
6989 | |
6990 | fi | |
10f2d63a VZ |
6991 | |
6992 | ||
6993 | eval "$ac_cv_use_statline" | |
6994 | if test "$no_cache" != 1; then | |
6995 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
6996 | fi | |
6997 | ||
6998 | if test "$wxUSE_STATLINE" = yes; then | |
a0b9e27f | 6999 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7000 | else |
a0b9e27f | 7001 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7002 | fi |
a0b9e27f | 7003 | |
10f2d63a | 7004 | |
5005acfe VZ |
7005 | enablestring= |
7006 | echo $ac_n "checking for --${enablestring:-enable}-stattext""... $ac_c" 1>&6 | |
7007 | echo "configure:7008: checking for --${enablestring:-enable}-stattext" >&5 | |
1e6feb95 VZ |
7008 | no_cache=0 |
7009 | # Check whether --enable-stattext or --disable-stattext was given. | |
7010 | if test "${enable_stattext+set}" = set; then | |
7011 | enableval="$enable_stattext" | |
a0b9e27f | 7012 | |
1e6feb95 VZ |
7013 | if test "$enableval" = yes; then |
7014 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
7015 | else | |
7016 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
7017 | fi | |
a0b9e27f | 7018 | |
1e6feb95 | 7019 | else |
a0b9e27f | 7020 | |
1e6feb95 VZ |
7021 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` |
7022 | if test "x$LINE" != x ; then | |
7023 | eval "DEFAULT_$LINE" | |
7024 | else | |
7025 | no_cache=1 | |
7026 | fi | |
7027 | ||
7028 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
a0b9e27f MB |
7029 | |
7030 | fi | |
1e6feb95 VZ |
7031 | |
7032 | ||
7033 | eval "$ac_cv_use_stattext" | |
7034 | if test "$no_cache" != 1; then | |
7035 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
7036 | fi | |
7037 | ||
7038 | if test "$wxUSE_STATTEXT" = yes; then | |
a0b9e27f | 7039 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7040 | else |
a0b9e27f | 7041 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7042 | fi |
a0b9e27f | 7043 | |
1e6feb95 | 7044 | |
5005acfe VZ |
7045 | enablestring= |
7046 | echo $ac_n "checking for --${enablestring:-enable}-statusbar""... $ac_c" 1>&6 | |
7047 | echo "configure:7048: checking for --${enablestring:-enable}-statusbar" >&5 | |
10f2d63a VZ |
7048 | no_cache=0 |
7049 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
7050 | if test "${enable_statusbar+set}" = set; then | |
7051 | enableval="$enable_statusbar" | |
a0b9e27f | 7052 | |
10f2d63a VZ |
7053 | if test "$enableval" = yes; then |
7054 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
7055 | else | |
7056 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
7057 | fi | |
a0b9e27f | 7058 | |
10f2d63a | 7059 | else |
a0b9e27f | 7060 | |
10f2d63a VZ |
7061 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
7062 | if test "x$LINE" != x ; then | |
7063 | eval "DEFAULT_$LINE" | |
7064 | else | |
7065 | no_cache=1 | |
7066 | fi | |
7067 | ||
7068 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
a0b9e27f MB |
7069 | |
7070 | fi | |
10f2d63a VZ |
7071 | |
7072 | ||
7073 | eval "$ac_cv_use_statusbar" | |
7074 | if test "$no_cache" != 1; then | |
7075 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
7076 | fi | |
7077 | ||
7078 | if test "$wxUSE_STATUSBAR" = yes; then | |
a0b9e27f | 7079 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7080 | else |
a0b9e27f | 7081 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7082 | fi |
a0b9e27f | 7083 | |
10f2d63a | 7084 | |
5005acfe VZ |
7085 | enablestring= |
7086 | echo $ac_n "checking for --${enablestring:-enable}-tabdialog""... $ac_c" 1>&6 | |
7087 | echo "configure:7088: checking for --${enablestring:-enable}-tabdialog" >&5 | |
10f2d63a VZ |
7088 | no_cache=0 |
7089 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
7090 | if test "${enable_tabdialog+set}" = set; then | |
7091 | enableval="$enable_tabdialog" | |
a0b9e27f | 7092 | |
10f2d63a VZ |
7093 | if test "$enableval" = yes; then |
7094 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
7095 | else | |
7096 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
7097 | fi | |
a0b9e27f | 7098 | |
10f2d63a | 7099 | else |
a0b9e27f | 7100 | |
10f2d63a VZ |
7101 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
7102 | if test "x$LINE" != x ; then | |
7103 | eval "DEFAULT_$LINE" | |
7104 | else | |
7105 | no_cache=1 | |
7106 | fi | |
7107 | ||
7108 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
a0b9e27f MB |
7109 | |
7110 | fi | |
10f2d63a VZ |
7111 | |
7112 | ||
7113 | eval "$ac_cv_use_tabdialog" | |
7114 | if test "$no_cache" != 1; then | |
7115 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
7116 | fi | |
7117 | ||
7118 | if test "$wxUSE_TABDIALOG" = yes; then | |
a0b9e27f | 7119 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7120 | else |
a0b9e27f | 7121 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7122 | fi |
a0b9e27f | 7123 | |
10f2d63a | 7124 | |
5005acfe VZ |
7125 | enablestring= |
7126 | echo $ac_n "checking for --${enablestring:-enable}-textctrl""... $ac_c" 1>&6 | |
7127 | echo "configure:7128: checking for --${enablestring:-enable}-textctrl" >&5 | |
1e6feb95 VZ |
7128 | no_cache=0 |
7129 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
7130 | if test "${enable_textctrl+set}" = set; then | |
7131 | enableval="$enable_textctrl" | |
a0b9e27f | 7132 | |
1e6feb95 VZ |
7133 | if test "$enableval" = yes; then |
7134 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
7135 | else | |
7136 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
7137 | fi | |
a0b9e27f | 7138 | |
1e6feb95 | 7139 | else |
a0b9e27f | 7140 | |
1e6feb95 VZ |
7141 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` |
7142 | if test "x$LINE" != x ; then | |
7143 | eval "DEFAULT_$LINE" | |
7144 | else | |
7145 | no_cache=1 | |
7146 | fi | |
7147 | ||
7148 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
a0b9e27f MB |
7149 | |
7150 | fi | |
1e6feb95 VZ |
7151 | |
7152 | ||
7153 | eval "$ac_cv_use_textctrl" | |
7154 | if test "$no_cache" != 1; then | |
7155 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
7156 | fi | |
7157 | ||
7158 | if test "$wxUSE_TEXTCTRL" = yes; then | |
a0b9e27f | 7159 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7160 | else |
a0b9e27f | 7161 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7162 | fi |
a0b9e27f | 7163 | |
1e6feb95 | 7164 | |
5005acfe VZ |
7165 | enablestring= |
7166 | echo $ac_n "checking for --${enablestring:-enable}-togglebtn""... $ac_c" 1>&6 | |
7167 | echo "configure:7168: checking for --${enablestring:-enable}-togglebtn" >&5 | |
1db8dc4a VZ |
7168 | no_cache=0 |
7169 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
7170 | if test "${enable_togglebtn+set}" = set; then | |
7171 | enableval="$enable_togglebtn" | |
a0b9e27f | 7172 | |
1db8dc4a VZ |
7173 | if test "$enableval" = yes; then |
7174 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
7175 | else | |
7176 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
7177 | fi | |
a0b9e27f | 7178 | |
1db8dc4a | 7179 | else |
a0b9e27f | 7180 | |
1db8dc4a VZ |
7181 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
7182 | if test "x$LINE" != x ; then | |
7183 | eval "DEFAULT_$LINE" | |
7184 | else | |
7185 | no_cache=1 | |
7186 | fi | |
7187 | ||
7188 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
a0b9e27f MB |
7189 | |
7190 | fi | |
1db8dc4a VZ |
7191 | |
7192 | ||
7193 | eval "$ac_cv_use_togglebtn" | |
7194 | if test "$no_cache" != 1; then | |
7195 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
7196 | fi | |
7197 | ||
7198 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
a0b9e27f | 7199 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 7200 | else |
a0b9e27f | 7201 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 7202 | fi |
a0b9e27f | 7203 | |
1db8dc4a | 7204 | |
5005acfe VZ |
7205 | enablestring= |
7206 | echo $ac_n "checking for --${enablestring:-enable}-toolbar""... $ac_c" 1>&6 | |
7207 | echo "configure:7208: checking for --${enablestring:-enable}-toolbar" >&5 | |
10f2d63a VZ |
7208 | no_cache=0 |
7209 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
7210 | if test "${enable_toolbar+set}" = set; then | |
7211 | enableval="$enable_toolbar" | |
a0b9e27f | 7212 | |
10f2d63a VZ |
7213 | if test "$enableval" = yes; then |
7214 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
7215 | else | |
7216 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
7217 | fi | |
a0b9e27f | 7218 | |
10f2d63a | 7219 | else |
a0b9e27f | 7220 | |
10f2d63a VZ |
7221 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
7222 | if test "x$LINE" != x ; then | |
7223 | eval "DEFAULT_$LINE" | |
7224 | else | |
7225 | no_cache=1 | |
7226 | fi | |
7227 | ||
7228 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
a0b9e27f MB |
7229 | |
7230 | fi | |
10f2d63a VZ |
7231 | |
7232 | ||
7233 | eval "$ac_cv_use_toolbar" | |
7234 | if test "$no_cache" != 1; then | |
7235 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
7236 | fi | |
7237 | ||
7238 | if test "$wxUSE_TOOLBAR" = yes; then | |
a0b9e27f | 7239 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7240 | else |
a0b9e27f | 7241 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7242 | fi |
a0b9e27f | 7243 | |
10f2d63a | 7244 | |
5005acfe VZ |
7245 | enablestring= |
7246 | echo $ac_n "checking for --${enablestring:-enable}-tbarnative""... $ac_c" 1>&6 | |
7247 | echo "configure:7248: checking for --${enablestring:-enable}-tbarnative" >&5 | |
360d6699 VZ |
7248 | no_cache=0 |
7249 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
7250 | if test "${enable_tbarnative+set}" = set; then | |
7251 | enableval="$enable_tbarnative" | |
a0b9e27f | 7252 | |
360d6699 VZ |
7253 | if test "$enableval" = yes; then |
7254 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
7255 | else | |
7256 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
7257 | fi | |
a0b9e27f | 7258 | |
360d6699 | 7259 | else |
a0b9e27f | 7260 | |
360d6699 VZ |
7261 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
7262 | if test "x$LINE" != x ; then | |
7263 | eval "DEFAULT_$LINE" | |
7264 | else | |
7265 | no_cache=1 | |
7266 | fi | |
7267 | ||
7268 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
a0b9e27f MB |
7269 | |
7270 | fi | |
360d6699 VZ |
7271 | |
7272 | ||
7273 | eval "$ac_cv_use_tbarnative" | |
7274 | if test "$no_cache" != 1; then | |
7275 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
7276 | fi | |
7277 | ||
7278 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
a0b9e27f | 7279 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7280 | else |
a0b9e27f | 7281 | echo "$ac_t""no" 1>&6 |
360d6699 | 7282 | fi |
a0b9e27f | 7283 | |
360d6699 | 7284 | |
5005acfe VZ |
7285 | enablestring= |
7286 | echo $ac_n "checking for --${enablestring:-enable}-tbarsmpl""... $ac_c" 1>&6 | |
7287 | echo "configure:7288: checking for --${enablestring:-enable}-tbarsmpl" >&5 | |
360d6699 VZ |
7288 | no_cache=0 |
7289 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
7290 | if test "${enable_tbarsmpl+set}" = set; then | |
7291 | enableval="$enable_tbarsmpl" | |
a0b9e27f | 7292 | |
360d6699 VZ |
7293 | if test "$enableval" = yes; then |
7294 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
7295 | else | |
7296 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
7297 | fi | |
a0b9e27f | 7298 | |
360d6699 | 7299 | else |
a0b9e27f | 7300 | |
360d6699 VZ |
7301 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
7302 | if test "x$LINE" != x ; then | |
7303 | eval "DEFAULT_$LINE" | |
7304 | else | |
7305 | no_cache=1 | |
7306 | fi | |
7307 | ||
7308 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
a0b9e27f MB |
7309 | |
7310 | fi | |
360d6699 VZ |
7311 | |
7312 | ||
7313 | eval "$ac_cv_use_tbarsmpl" | |
7314 | if test "$no_cache" != 1; then | |
7315 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
7316 | fi | |
7317 | ||
7318 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
a0b9e27f | 7319 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7320 | else |
a0b9e27f | 7321 | echo "$ac_t""no" 1>&6 |
360d6699 | 7322 | fi |
a0b9e27f | 7323 | |
360d6699 | 7324 | |
5005acfe VZ |
7325 | enablestring= |
7326 | echo $ac_n "checking for --${enablestring:-enable}-treectrl""... $ac_c" 1>&6 | |
7327 | echo "configure:7328: checking for --${enablestring:-enable}-treectrl" >&5 | |
10f2d63a VZ |
7328 | no_cache=0 |
7329 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
7330 | if test "${enable_treectrl+set}" = set; then | |
7331 | enableval="$enable_treectrl" | |
a0b9e27f | 7332 | |
10f2d63a VZ |
7333 | if test "$enableval" = yes; then |
7334 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
7335 | else | |
7336 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
7337 | fi | |
a0b9e27f | 7338 | |
10f2d63a | 7339 | else |
a0b9e27f | 7340 | |
10f2d63a VZ |
7341 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
7342 | if test "x$LINE" != x ; then | |
7343 | eval "DEFAULT_$LINE" | |
7344 | else | |
7345 | no_cache=1 | |
7346 | fi | |
7347 | ||
7348 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
a0b9e27f MB |
7349 | |
7350 | fi | |
10f2d63a VZ |
7351 | |
7352 | ||
1e6feb95 VZ |
7353 | eval "$ac_cv_use_treectrl" |
7354 | if test "$no_cache" != 1; then | |
7355 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
7356 | fi | |
7357 | ||
7358 | if test "$wxUSE_TREECTRL" = yes; then | |
a0b9e27f | 7359 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7360 | else |
a0b9e27f | 7361 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7362 | fi |
a0b9e27f | 7363 | |
1e6feb95 | 7364 | |
5005acfe VZ |
7365 | enablestring= |
7366 | echo $ac_n "checking for --${enablestring:-enable}-tipwindow""... $ac_c" 1>&6 | |
7367 | echo "configure:7368: checking for --${enablestring:-enable}-tipwindow" >&5 | |
9926e4a4 VZ |
7368 | no_cache=0 |
7369 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
7370 | if test "${enable_tipwindow+set}" = set; then | |
7371 | enableval="$enable_tipwindow" | |
a0b9e27f | 7372 | |
9926e4a4 VZ |
7373 | if test "$enableval" = yes; then |
7374 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
7375 | else | |
7376 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
7377 | fi | |
a0b9e27f | 7378 | |
9926e4a4 | 7379 | else |
a0b9e27f | 7380 | |
9926e4a4 VZ |
7381 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` |
7382 | if test "x$LINE" != x ; then | |
7383 | eval "DEFAULT_$LINE" | |
7384 | else | |
7385 | no_cache=1 | |
7386 | fi | |
7387 | ||
7388 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
a0b9e27f MB |
7389 | |
7390 | fi | |
9926e4a4 VZ |
7391 | |
7392 | ||
7393 | eval "$ac_cv_use_tipwindow" | |
7394 | if test "$no_cache" != 1; then | |
7395 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
7396 | fi | |
7397 | ||
7398 | if test "$wxUSE_TIPWINDOW" = yes; then | |
a0b9e27f | 7399 | echo "$ac_t""yes" 1>&6 |
9926e4a4 | 7400 | else |
a0b9e27f | 7401 | echo "$ac_t""no" 1>&6 |
9926e4a4 | 7402 | fi |
a0b9e27f | 7403 | |
9926e4a4 | 7404 | |
5005acfe VZ |
7405 | enablestring= |
7406 | echo $ac_n "checking for --${enablestring:-enable}-popupwin""... $ac_c" 1>&6 | |
7407 | echo "configure:7408: checking for --${enablestring:-enable}-popupwin" >&5 | |
9f41d601 RR |
7408 | no_cache=0 |
7409 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
7410 | if test "${enable_popupwin+set}" = set; then | |
7411 | enableval="$enable_popupwin" | |
a0b9e27f | 7412 | |
9f41d601 RR |
7413 | if test "$enableval" = yes; then |
7414 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
7415 | else | |
7416 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
7417 | fi | |
a0b9e27f | 7418 | |
9f41d601 | 7419 | else |
a0b9e27f | 7420 | |
9f41d601 RR |
7421 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` |
7422 | if test "x$LINE" != x ; then | |
7423 | eval "DEFAULT_$LINE" | |
7424 | else | |
7425 | no_cache=1 | |
7426 | fi | |
7427 | ||
7428 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
a0b9e27f MB |
7429 | |
7430 | fi | |
9f41d601 RR |
7431 | |
7432 | ||
7433 | eval "$ac_cv_use_popupwin" | |
7434 | if test "$no_cache" != 1; then | |
7435 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
7436 | fi | |
7437 | ||
7438 | if test "$wxUSE_POPUPWIN" = yes; then | |
a0b9e27f | 7439 | echo "$ac_t""yes" 1>&6 |
9f41d601 | 7440 | else |
a0b9e27f | 7441 | echo "$ac_t""no" 1>&6 |
9f41d601 | 7442 | fi |
a0b9e27f | 7443 | |
52127426 | 7444 | |
8284b0c5 MB |
7445 | |
7446 | ||
5005acfe VZ |
7447 | enablestring= |
7448 | echo $ac_n "checking for --${enablestring:-enable}-commondlg""... $ac_c" 1>&6 | |
7449 | echo "configure:7450: checking for --${enablestring:-enable}-commondlg" >&5 | |
1e6feb95 VZ |
7450 | no_cache=0 |
7451 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
7452 | if test "${enable_commondlg+set}" = set; then | |
7453 | enableval="$enable_commondlg" | |
a0b9e27f | 7454 | |
1e6feb95 VZ |
7455 | if test "$enableval" = yes; then |
7456 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
7457 | else | |
7458 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
7459 | fi | |
a0b9e27f | 7460 | |
1e6feb95 | 7461 | else |
a0b9e27f | 7462 | |
1e6feb95 VZ |
7463 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` |
7464 | if test "x$LINE" != x ; then | |
7465 | eval "DEFAULT_$LINE" | |
7466 | else | |
7467 | no_cache=1 | |
7468 | fi | |
7469 | ||
7470 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
a0b9e27f MB |
7471 | |
7472 | fi | |
1e6feb95 VZ |
7473 | |
7474 | ||
7475 | eval "$ac_cv_use_commondlg" | |
7476 | if test "$no_cache" != 1; then | |
7477 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
7478 | fi | |
7479 | ||
7480 | if test "$wxUSE_COMMONDLGS" = yes; then | |
a0b9e27f | 7481 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7482 | else |
a0b9e27f | 7483 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7484 | fi |
a0b9e27f | 7485 | |
1e6feb95 | 7486 | |
5005acfe VZ |
7487 | enablestring= |
7488 | echo $ac_n "checking for --${enablestring:-enable}-choicedlg""... $ac_c" 1>&6 | |
7489 | echo "configure:7490: checking for --${enablestring:-enable}-choicedlg" >&5 | |
1e6feb95 VZ |
7490 | no_cache=0 |
7491 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
7492 | if test "${enable_choicedlg+set}" = set; then | |
7493 | enableval="$enable_choicedlg" | |
a0b9e27f | 7494 | |
1e6feb95 VZ |
7495 | if test "$enableval" = yes; then |
7496 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
7497 | else | |
7498 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
7499 | fi | |
a0b9e27f | 7500 | |
1e6feb95 | 7501 | else |
a0b9e27f | 7502 | |
1e6feb95 VZ |
7503 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` |
7504 | if test "x$LINE" != x ; then | |
7505 | eval "DEFAULT_$LINE" | |
7506 | else | |
7507 | no_cache=1 | |
7508 | fi | |
7509 | ||
7510 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
a0b9e27f MB |
7511 | |
7512 | fi | |
1e6feb95 VZ |
7513 | |
7514 | ||
7515 | eval "$ac_cv_use_choicedlg" | |
7516 | if test "$no_cache" != 1; then | |
7517 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
7518 | fi | |
7519 | ||
7520 | if test "$wxUSE_CHOICEDLG" = yes; then | |
a0b9e27f | 7521 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7522 | else |
a0b9e27f | 7523 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7524 | fi |
a0b9e27f | 7525 | |
1e6feb95 | 7526 | |
5005acfe VZ |
7527 | enablestring= |
7528 | echo $ac_n "checking for --${enablestring:-enable}-coldlg""... $ac_c" 1>&6 | |
7529 | echo "configure:7530: checking for --${enablestring:-enable}-coldlg" >&5 | |
1e6feb95 VZ |
7530 | no_cache=0 |
7531 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
7532 | if test "${enable_coldlg+set}" = set; then | |
7533 | enableval="$enable_coldlg" | |
a0b9e27f | 7534 | |
1e6feb95 VZ |
7535 | if test "$enableval" = yes; then |
7536 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
7537 | else | |
7538 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
7539 | fi | |
a0b9e27f | 7540 | |
1e6feb95 | 7541 | else |
a0b9e27f | 7542 | |
1e6feb95 VZ |
7543 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` |
7544 | if test "x$LINE" != x ; then | |
7545 | eval "DEFAULT_$LINE" | |
7546 | else | |
7547 | no_cache=1 | |
7548 | fi | |
7549 | ||
7550 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
a0b9e27f MB |
7551 | |
7552 | fi | |
1e6feb95 VZ |
7553 | |
7554 | ||
7555 | eval "$ac_cv_use_coldlg" | |
7556 | if test "$no_cache" != 1; then | |
7557 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
7558 | fi | |
7559 | ||
7560 | if test "$wxUSE_COLOURDLG" = yes; then | |
a0b9e27f | 7561 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7562 | else |
a0b9e27f | 7563 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7564 | fi |
a0b9e27f | 7565 | |
1e6feb95 | 7566 | |
5005acfe VZ |
7567 | enablestring= |
7568 | echo $ac_n "checking for --${enablestring:-enable}-filedlg""... $ac_c" 1>&6 | |
7569 | echo "configure:7570: checking for --${enablestring:-enable}-filedlg" >&5 | |
1e6feb95 VZ |
7570 | no_cache=0 |
7571 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
7572 | if test "${enable_filedlg+set}" = set; then | |
7573 | enableval="$enable_filedlg" | |
a0b9e27f | 7574 | |
1e6feb95 VZ |
7575 | if test "$enableval" = yes; then |
7576 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
7577 | else | |
7578 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
7579 | fi | |
a0b9e27f | 7580 | |
1e6feb95 | 7581 | else |
a0b9e27f | 7582 | |
1e6feb95 VZ |
7583 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` |
7584 | if test "x$LINE" != x ; then | |
7585 | eval "DEFAULT_$LINE" | |
7586 | else | |
7587 | no_cache=1 | |
7588 | fi | |
7589 | ||
7590 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
a0b9e27f MB |
7591 | |
7592 | fi | |
1e6feb95 VZ |
7593 | |
7594 | ||
7595 | eval "$ac_cv_use_filedlg" | |
7596 | if test "$no_cache" != 1; then | |
7597 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
7598 | fi | |
7599 | ||
7600 | if test "$wxUSE_FILEDLG" = yes; then | |
a0b9e27f | 7601 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7602 | else |
a0b9e27f | 7603 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7604 | fi |
a0b9e27f | 7605 | |
1e6feb95 | 7606 | |
5005acfe VZ |
7607 | enablestring= |
7608 | echo $ac_n "checking for --${enablestring:-enable}-finddlg""... $ac_c" 1>&6 | |
7609 | echo "configure:7610: checking for --${enablestring:-enable}-finddlg" >&5 | |
8db37e06 | 7610 | no_cache=0 |
69d27ff7 MB |
7611 | # Check whether --enable-finddlg or --disable-finddlg was given. |
7612 | if test "${enable_finddlg+set}" = set; then | |
7613 | enableval="$enable_finddlg" | |
a0b9e27f | 7614 | |
8db37e06 | 7615 | if test "$enableval" = yes; then |
69d27ff7 | 7616 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 7617 | else |
69d27ff7 | 7618 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 | 7619 | fi |
a0b9e27f | 7620 | |
8db37e06 | 7621 | else |
a0b9e27f | 7622 | |
8db37e06 VZ |
7623 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` |
7624 | if test "x$LINE" != x ; then | |
7625 | eval "DEFAULT_$LINE" | |
7626 | else | |
7627 | no_cache=1 | |
7628 | fi | |
7629 | ||
69d27ff7 | 7630 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
a0b9e27f MB |
7631 | |
7632 | fi | |
8db37e06 VZ |
7633 | |
7634 | ||
69d27ff7 | 7635 | eval "$ac_cv_use_finddlg" |
8db37e06 | 7636 | if test "$no_cache" != 1; then |
69d27ff7 | 7637 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
7638 | fi |
7639 | ||
7640 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
a0b9e27f | 7641 | echo "$ac_t""yes" 1>&6 |
8db37e06 | 7642 | else |
a0b9e27f | 7643 | echo "$ac_t""no" 1>&6 |
8db37e06 | 7644 | fi |
a0b9e27f | 7645 | |
8db37e06 | 7646 | |
5005acfe VZ |
7647 | enablestring= |
7648 | echo $ac_n "checking for --${enablestring:-enable}-fontdlg""... $ac_c" 1>&6 | |
7649 | echo "configure:7650: checking for --${enablestring:-enable}-fontdlg" >&5 | |
1e6feb95 VZ |
7650 | no_cache=0 |
7651 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
7652 | if test "${enable_fontdlg+set}" = set; then | |
7653 | enableval="$enable_fontdlg" | |
a0b9e27f | 7654 | |
1e6feb95 VZ |
7655 | if test "$enableval" = yes; then |
7656 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
7657 | else | |
7658 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
7659 | fi | |
a0b9e27f | 7660 | |
1e6feb95 | 7661 | else |
a0b9e27f | 7662 | |
1e6feb95 VZ |
7663 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` |
7664 | if test "x$LINE" != x ; then | |
7665 | eval "DEFAULT_$LINE" | |
7666 | else | |
7667 | no_cache=1 | |
7668 | fi | |
7669 | ||
7670 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
a0b9e27f MB |
7671 | |
7672 | fi | |
1e6feb95 VZ |
7673 | |
7674 | ||
7675 | eval "$ac_cv_use_fontdlg" | |
7676 | if test "$no_cache" != 1; then | |
7677 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
7678 | fi | |
7679 | ||
7680 | if test "$wxUSE_FONTDLG" = yes; then | |
a0b9e27f | 7681 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7682 | else |
a0b9e27f | 7683 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7684 | fi |
a0b9e27f | 7685 | |
1e6feb95 | 7686 | |
5005acfe VZ |
7687 | enablestring= |
7688 | echo $ac_n "checking for --${enablestring:-enable}-dirdlg""... $ac_c" 1>&6 | |
7689 | echo "configure:7690: checking for --${enablestring:-enable}-dirdlg" >&5 | |
1e6feb95 VZ |
7690 | no_cache=0 |
7691 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
7692 | if test "${enable_dirdlg+set}" = set; then | |
7693 | enableval="$enable_dirdlg" | |
a0b9e27f | 7694 | |
1e6feb95 VZ |
7695 | if test "$enableval" = yes; then |
7696 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
7697 | else | |
7698 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
7699 | fi | |
a0b9e27f | 7700 | |
1e6feb95 | 7701 | else |
a0b9e27f | 7702 | |
1e6feb95 VZ |
7703 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` |
7704 | if test "x$LINE" != x ; then | |
7705 | eval "DEFAULT_$LINE" | |
7706 | else | |
7707 | no_cache=1 | |
7708 | fi | |
7709 | ||
7710 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
a0b9e27f MB |
7711 | |
7712 | fi | |
1e6feb95 VZ |
7713 | |
7714 | ||
7715 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 7716 | if test "$no_cache" != 1; then |
1e6feb95 | 7717 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7718 | fi |
7719 | ||
1e6feb95 | 7720 | if test "$wxUSE_DIRDLG" = yes; then |
a0b9e27f | 7721 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7722 | else |
a0b9e27f | 7723 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7724 | fi |
a0b9e27f | 7725 | |
698dcdb6 | 7726 | |
5005acfe VZ |
7727 | enablestring= |
7728 | echo $ac_n "checking for --${enablestring:-enable}-msgdlg""... $ac_c" 1>&6 | |
7729 | echo "configure:7730: checking for --${enablestring:-enable}-msgdlg" >&5 | |
10f2d63a | 7730 | no_cache=0 |
1e6feb95 VZ |
7731 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
7732 | if test "${enable_msgdlg+set}" = set; then | |
7733 | enableval="$enable_msgdlg" | |
a0b9e27f | 7734 | |
10f2d63a | 7735 | if test "$enableval" = yes; then |
1e6feb95 | 7736 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 7737 | else |
1e6feb95 | 7738 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 7739 | fi |
a0b9e27f | 7740 | |
10f2d63a | 7741 | else |
a0b9e27f | 7742 | |
1e6feb95 | 7743 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7744 | if test "x$LINE" != x ; then |
7745 | eval "DEFAULT_$LINE" | |
7746 | else | |
7747 | no_cache=1 | |
7748 | fi | |
7749 | ||
1e6feb95 | 7750 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
a0b9e27f MB |
7751 | |
7752 | fi | |
10f2d63a VZ |
7753 | |
7754 | ||
1e6feb95 | 7755 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 7756 | if test "$no_cache" != 1; then |
1e6feb95 | 7757 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7758 | fi |
7759 | ||
1e6feb95 | 7760 | if test "$wxUSE_MSGDLG" = yes; then |
a0b9e27f | 7761 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7762 | else |
a0b9e27f | 7763 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7764 | fi |
a0b9e27f | 7765 | |
10f2d63a | 7766 | |
5005acfe VZ |
7767 | enablestring= |
7768 | echo $ac_n "checking for --${enablestring:-enable}-numberdlg""... $ac_c" 1>&6 | |
7769 | echo "configure:7770: checking for --${enablestring:-enable}-numberdlg" >&5 | |
10f2d63a | 7770 | no_cache=0 |
1e6feb95 VZ |
7771 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
7772 | if test "${enable_numberdlg+set}" = set; then | |
7773 | enableval="$enable_numberdlg" | |
a0b9e27f | 7774 | |
10f2d63a | 7775 | if test "$enableval" = yes; then |
1e6feb95 | 7776 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 7777 | else |
1e6feb95 | 7778 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 7779 | fi |
a0b9e27f | 7780 | |
10f2d63a | 7781 | else |
a0b9e27f | 7782 | |
1e6feb95 | 7783 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7784 | if test "x$LINE" != x ; then |
7785 | eval "DEFAULT_$LINE" | |
7786 | else | |
7787 | no_cache=1 | |
7788 | fi | |
7789 | ||
1e6feb95 | 7790 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
a0b9e27f MB |
7791 | |
7792 | fi | |
10f2d63a VZ |
7793 | |
7794 | ||
1e6feb95 | 7795 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 7796 | if test "$no_cache" != 1; then |
1e6feb95 | 7797 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7798 | fi |
7799 | ||
1e6feb95 | 7800 | if test "$wxUSE_NUMBERDLG" = yes; then |
a0b9e27f | 7801 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7802 | else |
a0b9e27f | 7803 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7804 | fi |
a0b9e27f | 7805 | |
10f2d63a | 7806 | |
5005acfe VZ |
7807 | enablestring= |
7808 | echo $ac_n "checking for --${enablestring:-enable}-splash""... $ac_c" 1>&6 | |
7809 | echo "configure:7810: checking for --${enablestring:-enable}-splash" >&5 | |
cbca9943 VZ |
7810 | no_cache=0 |
7811 | # Check whether --enable-splash or --disable-splash was given. | |
7812 | if test "${enable_splash+set}" = set; then | |
7813 | enableval="$enable_splash" | |
a0b9e27f | 7814 | |
cbca9943 VZ |
7815 | if test "$enableval" = yes; then |
7816 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
7817 | else | |
7818 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
7819 | fi | |
a0b9e27f | 7820 | |
cbca9943 | 7821 | else |
a0b9e27f | 7822 | |
cbca9943 VZ |
7823 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` |
7824 | if test "x$LINE" != x ; then | |
7825 | eval "DEFAULT_$LINE" | |
7826 | else | |
7827 | no_cache=1 | |
7828 | fi | |
7829 | ||
7830 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
a0b9e27f MB |
7831 | |
7832 | fi | |
cbca9943 VZ |
7833 | |
7834 | ||
7835 | eval "$ac_cv_use_splash" | |
7836 | if test "$no_cache" != 1; then | |
7837 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
7838 | fi | |
7839 | ||
7840 | if test "$wxUSE_SPLASH" = yes; then | |
a0b9e27f | 7841 | echo "$ac_t""yes" 1>&6 |
cbca9943 | 7842 | else |
a0b9e27f | 7843 | echo "$ac_t""no" 1>&6 |
cbca9943 | 7844 | fi |
a0b9e27f | 7845 | |
cbca9943 | 7846 | |
5005acfe VZ |
7847 | enablestring= |
7848 | echo $ac_n "checking for --${enablestring:-enable}-textdlg""... $ac_c" 1>&6 | |
7849 | echo "configure:7850: checking for --${enablestring:-enable}-textdlg" >&5 | |
10f2d63a VZ |
7850 | no_cache=0 |
7851 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
7852 | if test "${enable_textdlg+set}" = set; then | |
7853 | enableval="$enable_textdlg" | |
a0b9e27f | 7854 | |
10f2d63a VZ |
7855 | if test "$enableval" = yes; then |
7856 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
7857 | else | |
7858 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
7859 | fi | |
a0b9e27f | 7860 | |
10f2d63a | 7861 | else |
a0b9e27f | 7862 | |
10f2d63a VZ |
7863 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
7864 | if test "x$LINE" != x ; then | |
7865 | eval "DEFAULT_$LINE" | |
7866 | else | |
7867 | no_cache=1 | |
7868 | fi | |
7869 | ||
7870 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
a0b9e27f MB |
7871 | |
7872 | fi | |
10f2d63a VZ |
7873 | |
7874 | ||
7875 | eval "$ac_cv_use_textdlg" | |
7876 | if test "$no_cache" != 1; then | |
7877 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
7878 | fi | |
7879 | ||
7880 | if test "$wxUSE_TEXTDLG" = yes; then | |
a0b9e27f | 7881 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7882 | else |
a0b9e27f | 7883 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7884 | fi |
a0b9e27f | 7885 | |
10f2d63a | 7886 | |
5005acfe VZ |
7887 | enablestring= |
7888 | echo $ac_n "checking for --${enablestring:-enable}-tipdlg""... $ac_c" 1>&6 | |
7889 | echo "configure:7890: checking for --${enablestring:-enable}-tipdlg" >&5 | |
10f2d63a VZ |
7890 | no_cache=0 |
7891 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
7892 | if test "${enable_tipdlg+set}" = set; then | |
7893 | enableval="$enable_tipdlg" | |
a0b9e27f | 7894 | |
10f2d63a VZ |
7895 | if test "$enableval" = yes; then |
7896 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
7897 | else | |
7898 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
7899 | fi | |
a0b9e27f | 7900 | |
10f2d63a | 7901 | else |
a0b9e27f | 7902 | |
10f2d63a VZ |
7903 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
7904 | if test "x$LINE" != x ; then | |
7905 | eval "DEFAULT_$LINE" | |
7906 | else | |
7907 | no_cache=1 | |
7908 | fi | |
7909 | ||
7910 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
a0b9e27f MB |
7911 | |
7912 | fi | |
10f2d63a VZ |
7913 | |
7914 | ||
7915 | eval "$ac_cv_use_tipdlg" | |
7916 | if test "$no_cache" != 1; then | |
7917 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
7918 | fi | |
7919 | ||
7920 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
a0b9e27f | 7921 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7922 | else |
a0b9e27f | 7923 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7924 | fi |
a0b9e27f | 7925 | |
10f2d63a | 7926 | |
5005acfe VZ |
7927 | enablestring= |
7928 | echo $ac_n "checking for --${enablestring:-enable}-progressdlg""... $ac_c" 1>&6 | |
7929 | echo "configure:7930: checking for --${enablestring:-enable}-progressdlg" >&5 | |
10f2d63a VZ |
7930 | no_cache=0 |
7931 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
7932 | if test "${enable_progressdlg+set}" = set; then | |
7933 | enableval="$enable_progressdlg" | |
a0b9e27f | 7934 | |
10f2d63a VZ |
7935 | if test "$enableval" = yes; then |
7936 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
7937 | else | |
7938 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
7939 | fi | |
a0b9e27f | 7940 | |
10f2d63a | 7941 | else |
a0b9e27f | 7942 | |
10f2d63a VZ |
7943 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
7944 | if test "x$LINE" != x ; then | |
7945 | eval "DEFAULT_$LINE" | |
7946 | else | |
7947 | no_cache=1 | |
7948 | fi | |
7949 | ||
7950 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
a0b9e27f MB |
7951 | |
7952 | fi | |
10f2d63a VZ |
7953 | |
7954 | ||
7955 | eval "$ac_cv_use_progressdlg" | |
7956 | if test "$no_cache" != 1; then | |
7957 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
7958 | fi | |
7959 | ||
7960 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
a0b9e27f | 7961 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7962 | else |
a0b9e27f | 7963 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7964 | fi |
a0b9e27f | 7965 | |
10f2d63a | 7966 | |
5005acfe VZ |
7967 | enablestring= |
7968 | echo $ac_n "checking for --${enablestring:-enable}-wizarddlg""... $ac_c" 1>&6 | |
7969 | echo "configure:7970: checking for --${enablestring:-enable}-wizarddlg" >&5 | |
b1f5d087 VZ |
7970 | no_cache=0 |
7971 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
7972 | if test "${enable_wizarddlg+set}" = set; then | |
7973 | enableval="$enable_wizarddlg" | |
a0b9e27f | 7974 | |
b1f5d087 VZ |
7975 | if test "$enableval" = yes; then |
7976 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
7977 | else | |
7978 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
7979 | fi | |
a0b9e27f | 7980 | |
b1f5d087 | 7981 | else |
a0b9e27f | 7982 | |
b1f5d087 VZ |
7983 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` |
7984 | if test "x$LINE" != x ; then | |
7985 | eval "DEFAULT_$LINE" | |
7986 | else | |
7987 | no_cache=1 | |
7988 | fi | |
7989 | ||
7990 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
a0b9e27f MB |
7991 | |
7992 | fi | |
b1f5d087 VZ |
7993 | |
7994 | ||
7995 | eval "$ac_cv_use_wizarddlg" | |
7996 | if test "$no_cache" != 1; then | |
7997 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
7998 | fi | |
7999 | ||
8000 | if test "$wxUSE_WIZARDDLG" = yes; then | |
a0b9e27f | 8001 | echo "$ac_t""yes" 1>&6 |
b1f5d087 | 8002 | else |
a0b9e27f | 8003 | echo "$ac_t""no" 1>&6 |
b1f5d087 | 8004 | fi |
a0b9e27f | 8005 | |
8284b0c5 MB |
8006 | |
8007 | ||
52127426 | 8008 | |
5005acfe VZ |
8009 | enablestring= |
8010 | echo $ac_n "checking for --${enablestring:-enable}-menus""... $ac_c" 1>&6 | |
8011 | echo "configure:8012: checking for --${enablestring:-enable}-menus" >&5 | |
1e6feb95 VZ |
8012 | no_cache=0 |
8013 | # Check whether --enable-menus or --disable-menus was given. | |
8014 | if test "${enable_menus+set}" = set; then | |
8015 | enableval="$enable_menus" | |
a0b9e27f | 8016 | |
1e6feb95 VZ |
8017 | if test "$enableval" = yes; then |
8018 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
8019 | else | |
8020 | ac_cv_use_menus='wxUSE_MENUS=no' | |
8021 | fi | |
a0b9e27f | 8022 | |
1e6feb95 | 8023 | else |
a0b9e27f | 8024 | |
1e6feb95 VZ |
8025 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` |
8026 | if test "x$LINE" != x ; then | |
8027 | eval "DEFAULT_$LINE" | |
8028 | else | |
8029 | no_cache=1 | |
8030 | fi | |
8031 | ||
8032 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
a0b9e27f MB |
8033 | |
8034 | fi | |
1e6feb95 VZ |
8035 | |
8036 | ||
8037 | eval "$ac_cv_use_menus" | |
8038 | if test "$no_cache" != 1; then | |
8039 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
8040 | fi | |
8041 | ||
8042 | if test "$wxUSE_MENUS" = yes; then | |
a0b9e27f | 8043 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 8044 | else |
a0b9e27f | 8045 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 8046 | fi |
a0b9e27f | 8047 | |
1e6feb95 | 8048 | |
5005acfe VZ |
8049 | enablestring= |
8050 | echo $ac_n "checking for --${enablestring:-enable}-miniframe""... $ac_c" 1>&6 | |
8051 | echo "configure:8052: checking for --${enablestring:-enable}-miniframe" >&5 | |
10f2d63a VZ |
8052 | no_cache=0 |
8053 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
8054 | if test "${enable_miniframe+set}" = set; then | |
8055 | enableval="$enable_miniframe" | |
a0b9e27f | 8056 | |
10f2d63a VZ |
8057 | if test "$enableval" = yes; then |
8058 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
8059 | else | |
8060 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
8061 | fi | |
a0b9e27f | 8062 | |
10f2d63a | 8063 | else |
a0b9e27f | 8064 | |
10f2d63a VZ |
8065 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
8066 | if test "x$LINE" != x ; then | |
8067 | eval "DEFAULT_$LINE" | |
8068 | else | |
8069 | no_cache=1 | |
8070 | fi | |
8071 | ||
8072 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
a0b9e27f MB |
8073 | |
8074 | fi | |
10f2d63a VZ |
8075 | |
8076 | ||
8077 | eval "$ac_cv_use_miniframe" | |
8078 | if test "$no_cache" != 1; then | |
8079 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
8080 | fi | |
8081 | ||
8082 | if test "$wxUSE_MINIFRAME" = yes; then | |
a0b9e27f | 8083 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8084 | else |
a0b9e27f | 8085 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8086 | fi |
a0b9e27f | 8087 | |
10f2d63a | 8088 | |
5005acfe VZ |
8089 | enablestring= |
8090 | echo $ac_n "checking for --${enablestring:-enable}-tooltips""... $ac_c" 1>&6 | |
8091 | echo "configure:8092: checking for --${enablestring:-enable}-tooltips" >&5 | |
10f2d63a VZ |
8092 | no_cache=0 |
8093 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
8094 | if test "${enable_tooltips+set}" = set; then | |
8095 | enableval="$enable_tooltips" | |
a0b9e27f | 8096 | |
10f2d63a VZ |
8097 | if test "$enableval" = yes; then |
8098 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
8099 | else | |
8100 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
8101 | fi | |
a0b9e27f | 8102 | |
10f2d63a | 8103 | else |
a0b9e27f | 8104 | |
10f2d63a VZ |
8105 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
8106 | if test "x$LINE" != x ; then | |
8107 | eval "DEFAULT_$LINE" | |
8108 | else | |
8109 | no_cache=1 | |
8110 | fi | |
8111 | ||
8112 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
a0b9e27f MB |
8113 | |
8114 | fi | |
10f2d63a VZ |
8115 | |
8116 | ||
8117 | eval "$ac_cv_use_tooltips" | |
8118 | if test "$no_cache" != 1; then | |
8119 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
8120 | fi | |
8121 | ||
8122 | if test "$wxUSE_TOOLTIPS" = yes; then | |
a0b9e27f | 8123 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8124 | else |
a0b9e27f | 8125 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8126 | fi |
a0b9e27f | 8127 | |
10f2d63a | 8128 | |
5005acfe VZ |
8129 | enablestring= |
8130 | echo $ac_n "checking for --${enablestring:-enable}-splines""... $ac_c" 1>&6 | |
8131 | echo "configure:8132: checking for --${enablestring:-enable}-splines" >&5 | |
10f2d63a VZ |
8132 | no_cache=0 |
8133 | # Check whether --enable-splines or --disable-splines was given. | |
8134 | if test "${enable_splines+set}" = set; then | |
8135 | enableval="$enable_splines" | |
a0b9e27f | 8136 | |
10f2d63a VZ |
8137 | if test "$enableval" = yes; then |
8138 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
8139 | else | |
8140 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
8141 | fi | |
a0b9e27f | 8142 | |
10f2d63a | 8143 | else |
a0b9e27f | 8144 | |
10f2d63a VZ |
8145 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
8146 | if test "x$LINE" != x ; then | |
8147 | eval "DEFAULT_$LINE" | |
8148 | else | |
8149 | no_cache=1 | |
8150 | fi | |
8151 | ||
8152 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
a0b9e27f MB |
8153 | |
8154 | fi | |
10f2d63a VZ |
8155 | |
8156 | ||
8157 | eval "$ac_cv_use_splines" | |
8158 | if test "$no_cache" != 1; then | |
8159 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
8160 | fi | |
8161 | ||
8162 | if test "$wxUSE_SPLINES" = yes; then | |
a0b9e27f | 8163 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8164 | else |
a0b9e27f | 8165 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8166 | fi |
a0b9e27f | 8167 | |
10f2d63a | 8168 | |
5005acfe VZ |
8169 | enablestring= |
8170 | echo $ac_n "checking for --${enablestring:-enable}-validators""... $ac_c" 1>&6 | |
8171 | echo "configure:8172: checking for --${enablestring:-enable}-validators" >&5 | |
10f2d63a VZ |
8172 | no_cache=0 |
8173 | # Check whether --enable-validators or --disable-validators was given. | |
8174 | if test "${enable_validators+set}" = set; then | |
8175 | enableval="$enable_validators" | |
a0b9e27f | 8176 | |
10f2d63a VZ |
8177 | if test "$enableval" = yes; then |
8178 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
8179 | else | |
8180 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
8181 | fi | |
a0b9e27f | 8182 | |
10f2d63a | 8183 | else |
a0b9e27f | 8184 | |
10f2d63a VZ |
8185 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
8186 | if test "x$LINE" != x ; then | |
8187 | eval "DEFAULT_$LINE" | |
8188 | else | |
8189 | no_cache=1 | |
8190 | fi | |
8191 | ||
8192 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
a0b9e27f MB |
8193 | |
8194 | fi | |
10f2d63a VZ |
8195 | |
8196 | ||
8197 | eval "$ac_cv_use_validators" | |
8198 | if test "$no_cache" != 1; then | |
8199 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
8200 | fi | |
8201 | ||
8202 | if test "$wxUSE_VALIDATORS" = yes; then | |
a0b9e27f | 8203 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8204 | else |
a0b9e27f | 8205 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8206 | fi |
a0b9e27f | 8207 | |
10f2d63a | 8208 | |
5005acfe VZ |
8209 | enablestring= |
8210 | echo $ac_n "checking for --${enablestring:-enable}-busyinfo""... $ac_c" 1>&6 | |
8211 | echo "configure:8212: checking for --${enablestring:-enable}-busyinfo" >&5 | |
10f2d63a VZ |
8212 | no_cache=0 |
8213 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
8214 | if test "${enable_busyinfo+set}" = set; then | |
8215 | enableval="$enable_busyinfo" | |
a0b9e27f | 8216 | |
10f2d63a VZ |
8217 | if test "$enableval" = yes; then |
8218 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
8219 | else | |
8220 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
8221 | fi | |
a0b9e27f | 8222 | |
10f2d63a | 8223 | else |
a0b9e27f | 8224 | |
10f2d63a VZ |
8225 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
8226 | if test "x$LINE" != x ; then | |
8227 | eval "DEFAULT_$LINE" | |
8228 | else | |
8229 | no_cache=1 | |
8230 | fi | |
8231 | ||
8232 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
a0b9e27f MB |
8233 | |
8234 | fi | |
10f2d63a VZ |
8235 | |
8236 | ||
8237 | eval "$ac_cv_use_busyinfo" | |
8238 | if test "$no_cache" != 1; then | |
8239 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
8240 | fi | |
8241 | ||
8242 | if test "$wxUSE_BUSYINFO" = yes; then | |
a0b9e27f | 8243 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8244 | else |
a0b9e27f | 8245 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8246 | fi |
a0b9e27f | 8247 | |
10f2d63a | 8248 | |
5005acfe VZ |
8249 | enablestring= |
8250 | echo $ac_n "checking for --${enablestring:-enable}-joystick""... $ac_c" 1>&6 | |
8251 | echo "configure:8252: checking for --${enablestring:-enable}-joystick" >&5 | |
f6bcfd97 BP |
8252 | no_cache=0 |
8253 | # Check whether --enable-joystick or --disable-joystick was given. | |
8254 | if test "${enable_joystick+set}" = set; then | |
8255 | enableval="$enable_joystick" | |
a0b9e27f | 8256 | |
f6bcfd97 BP |
8257 | if test "$enableval" = yes; then |
8258 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
8259 | else | |
8260 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
8261 | fi | |
a0b9e27f | 8262 | |
f6bcfd97 | 8263 | else |
a0b9e27f | 8264 | |
f6bcfd97 BP |
8265 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
8266 | if test "x$LINE" != x ; then | |
8267 | eval "DEFAULT_$LINE" | |
8268 | else | |
8269 | no_cache=1 | |
8270 | fi | |
8271 | ||
8272 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
a0b9e27f MB |
8273 | |
8274 | fi | |
f6bcfd97 BP |
8275 | |
8276 | ||
8277 | eval "$ac_cv_use_joystick" | |
8278 | if test "$no_cache" != 1; then | |
8279 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
8280 | fi | |
8281 | ||
8282 | if test "$wxUSE_JOYSTICK" = yes; then | |
a0b9e27f | 8283 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 8284 | else |
a0b9e27f | 8285 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 8286 | fi |
a0b9e27f | 8287 | |
698dcdb6 | 8288 | |
5005acfe VZ |
8289 | enablestring= |
8290 | echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6 | |
8291 | echo "configure:8292: checking for --${enablestring:-enable}-metafile" >&5 | |
1e6feb95 VZ |
8292 | no_cache=0 |
8293 | # Check whether --enable-metafile or --disable-metafile was given. | |
8294 | if test "${enable_metafile+set}" = set; then | |
8295 | enableval="$enable_metafile" | |
a0b9e27f | 8296 | |
1e6feb95 VZ |
8297 | if test "$enableval" = yes; then |
8298 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
8299 | else | |
8300 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
8301 | fi | |
a0b9e27f | 8302 | |
1e6feb95 | 8303 | else |
a0b9e27f | 8304 | |
1e6feb95 VZ |
8305 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
8306 | if test "x$LINE" != x ; then | |
8307 | eval "DEFAULT_$LINE" | |
8308 | else | |
8309 | no_cache=1 | |
8310 | fi | |
8311 | ||
8312 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
a0b9e27f MB |
8313 | |
8314 | fi | |
1e6feb95 VZ |
8315 | |
8316 | ||
8317 | eval "$ac_cv_use_metafile" | |
8318 | if test "$no_cache" != 1; then | |
8319 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
8320 | fi | |
8321 | ||
8322 | if test "$wxUSE_METAFILE" = yes; then | |
a0b9e27f | 8323 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 8324 | else |
a0b9e27f | 8325 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 8326 | fi |
a0b9e27f | 8327 | |
1e6feb95 | 8328 | |
5005acfe VZ |
8329 | enablestring= |
8330 | echo $ac_n "checking for --${enablestring:-enable}-dragimage""... $ac_c" 1>&6 | |
8331 | echo "configure:8332: checking for --${enablestring:-enable}-dragimage" >&5 | |
24fd6d87 VZ |
8332 | no_cache=0 |
8333 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
8334 | if test "${enable_dragimage+set}" = set; then | |
8335 | enableval="$enable_dragimage" | |
a0b9e27f | 8336 | |
24fd6d87 VZ |
8337 | if test "$enableval" = yes; then |
8338 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
8339 | else | |
8340 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
8341 | fi | |
a0b9e27f | 8342 | |
24fd6d87 | 8343 | else |
a0b9e27f | 8344 | |
24fd6d87 VZ |
8345 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` |
8346 | if test "x$LINE" != x ; then | |
8347 | eval "DEFAULT_$LINE" | |
8348 | else | |
8349 | no_cache=1 | |
8350 | fi | |
8351 | ||
8352 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
a0b9e27f MB |
8353 | |
8354 | fi | |
24fd6d87 VZ |
8355 | |
8356 | ||
8357 | eval "$ac_cv_use_dragimage" | |
8358 | if test "$no_cache" != 1; then | |
8359 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
8360 | fi | |
8361 | ||
8362 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
a0b9e27f | 8363 | echo "$ac_t""yes" 1>&6 |
24fd6d87 | 8364 | else |
a0b9e27f | 8365 | echo "$ac_t""no" 1>&6 |
24fd6d87 | 8366 | fi |
a0b9e27f | 8367 | |
52127426 | 8368 | |
8284b0c5 MB |
8369 | |
8370 | ||
5005acfe VZ |
8371 | enablestring= |
8372 | echo $ac_n "checking for --${enablestring:-enable}-palette""... $ac_c" 1>&6 | |
8373 | echo "configure:8374: checking for --${enablestring:-enable}-palette" >&5 | |
edae8572 VZ |
8374 | no_cache=0 |
8375 | # Check whether --enable-palette or --disable-palette was given. | |
8376 | if test "${enable_palette+set}" = set; then | |
8377 | enableval="$enable_palette" | |
a0b9e27f | 8378 | |
edae8572 VZ |
8379 | if test "$enableval" = yes; then |
8380 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
8381 | else | |
8382 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
8383 | fi | |
a0b9e27f | 8384 | |
edae8572 | 8385 | else |
a0b9e27f | 8386 | |
edae8572 VZ |
8387 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` |
8388 | if test "x$LINE" != x ; then | |
8389 | eval "DEFAULT_$LINE" | |
8390 | else | |
8391 | no_cache=1 | |
8392 | fi | |
8393 | ||
8394 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
a0b9e27f MB |
8395 | |
8396 | fi | |
edae8572 VZ |
8397 | |
8398 | ||
8399 | eval "$ac_cv_use_palette" | |
8400 | if test "$no_cache" != 1; then | |
8401 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
8402 | fi | |
8403 | ||
8404 | if test "$wxUSE_PALETTE" = yes; then | |
a0b9e27f | 8405 | echo "$ac_t""yes" 1>&6 |
edae8572 | 8406 | else |
a0b9e27f | 8407 | echo "$ac_t""no" 1>&6 |
edae8572 | 8408 | fi |
a0b9e27f | 8409 | |
edae8572 | 8410 | |
5005acfe VZ |
8411 | enablestring= |
8412 | echo $ac_n "checking for --${enablestring:-enable}-image""... $ac_c" 1>&6 | |
8413 | echo "configure:8414: checking for --${enablestring:-enable}-image" >&5 | |
0046ff7c VS |
8414 | no_cache=0 |
8415 | # Check whether --enable-image or --disable-image was given. | |
8416 | if test "${enable_image+set}" = set; then | |
8417 | enableval="$enable_image" | |
a0b9e27f | 8418 | |
0046ff7c VS |
8419 | if test "$enableval" = yes; then |
8420 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
8421 | else | |
8422 | ac_cv_use_image='wxUSE_IMAGE=no' | |
8423 | fi | |
a0b9e27f | 8424 | |
0046ff7c | 8425 | else |
a0b9e27f | 8426 | |
0046ff7c VS |
8427 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
8428 | if test "x$LINE" != x ; then | |
8429 | eval "DEFAULT_$LINE" | |
8430 | else | |
8431 | no_cache=1 | |
8432 | fi | |
8433 | ||
8434 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
a0b9e27f MB |
8435 | |
8436 | fi | |
0046ff7c VS |
8437 | |
8438 | ||
8439 | eval "$ac_cv_use_image" | |
8440 | if test "$no_cache" != 1; then | |
8441 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
8442 | fi | |
8443 | ||
8444 | if test "$wxUSE_IMAGE" = yes; then | |
a0b9e27f | 8445 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8446 | else |
a0b9e27f | 8447 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8448 | fi |
a0b9e27f | 8449 | |
0046ff7c | 8450 | |
5005acfe VZ |
8451 | enablestring= |
8452 | echo $ac_n "checking for --${enablestring:-enable}-gif""... $ac_c" 1>&6 | |
8453 | echo "configure:8454: checking for --${enablestring:-enable}-gif" >&5 | |
10f2d63a VZ |
8454 | no_cache=0 |
8455 | # Check whether --enable-gif or --disable-gif was given. | |
8456 | if test "${enable_gif+set}" = set; then | |
8457 | enableval="$enable_gif" | |
a0b9e27f | 8458 | |
10f2d63a VZ |
8459 | if test "$enableval" = yes; then |
8460 | ac_cv_use_gif='wxUSE_GIF=yes' | |
8461 | else | |
8462 | ac_cv_use_gif='wxUSE_GIF=no' | |
8463 | fi | |
a0b9e27f | 8464 | |
10f2d63a | 8465 | else |
a0b9e27f | 8466 | |
10f2d63a VZ |
8467 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
8468 | if test "x$LINE" != x ; then | |
8469 | eval "DEFAULT_$LINE" | |
8470 | else | |
8471 | no_cache=1 | |
8472 | fi | |
8473 | ||
8474 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
a0b9e27f MB |
8475 | |
8476 | fi | |
10f2d63a VZ |
8477 | |
8478 | ||
8479 | eval "$ac_cv_use_gif" | |
8480 | if test "$no_cache" != 1; then | |
8481 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
8482 | fi | |
8483 | ||
8484 | if test "$wxUSE_GIF" = yes; then | |
a0b9e27f | 8485 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8486 | else |
a0b9e27f | 8487 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8488 | fi |
a0b9e27f | 8489 | |
10f2d63a | 8490 | |
5005acfe VZ |
8491 | enablestring= |
8492 | echo $ac_n "checking for --${enablestring:-enable}-pcx""... $ac_c" 1>&6 | |
8493 | echo "configure:8494: checking for --${enablestring:-enable}-pcx" >&5 | |
10f2d63a VZ |
8494 | no_cache=0 |
8495 | # Check whether --enable-pcx or --disable-pcx was given. | |
8496 | if test "${enable_pcx+set}" = set; then | |
8497 | enableval="$enable_pcx" | |
a0b9e27f | 8498 | |
10f2d63a VZ |
8499 | if test "$enableval" = yes; then |
8500 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
8501 | else | |
8502 | ac_cv_use_pcx='wxUSE_PCX=no' | |
8503 | fi | |
a0b9e27f | 8504 | |
10f2d63a | 8505 | else |
a0b9e27f | 8506 | |
10f2d63a VZ |
8507 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
8508 | if test "x$LINE" != x ; then | |
8509 | eval "DEFAULT_$LINE" | |
8510 | else | |
8511 | no_cache=1 | |
8512 | fi | |
8513 | ||
8514 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
a0b9e27f MB |
8515 | |
8516 | fi | |
10f2d63a VZ |
8517 | |
8518 | ||
8519 | eval "$ac_cv_use_pcx" | |
8520 | if test "$no_cache" != 1; then | |
8521 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
8522 | fi | |
8523 | ||
8524 | if test "$wxUSE_PCX" = yes; then | |
a0b9e27f | 8525 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8526 | else |
a0b9e27f | 8527 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8528 | fi |
a0b9e27f | 8529 | |
10f2d63a | 8530 | |
5005acfe VZ |
8531 | enablestring= |
8532 | echo $ac_n "checking for --${enablestring:-enable}-iff""... $ac_c" 1>&6 | |
8533 | echo "configure:8534: checking for --${enablestring:-enable}-iff" >&5 | |
4b6b4dfc RR |
8534 | no_cache=0 |
8535 | # Check whether --enable-iff or --disable-iff was given. | |
8536 | if test "${enable_iff+set}" = set; then | |
8537 | enableval="$enable_iff" | |
a0b9e27f | 8538 | |
4b6b4dfc RR |
8539 | if test "$enableval" = yes; then |
8540 | ac_cv_use_iff='wxUSE_IFF=yes' | |
8541 | else | |
8542 | ac_cv_use_iff='wxUSE_IFF=no' | |
8543 | fi | |
a0b9e27f | 8544 | |
4b6b4dfc | 8545 | else |
a0b9e27f | 8546 | |
4b6b4dfc RR |
8547 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` |
8548 | if test "x$LINE" != x ; then | |
8549 | eval "DEFAULT_$LINE" | |
8550 | else | |
8551 | no_cache=1 | |
8552 | fi | |
8553 | ||
8554 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
a0b9e27f MB |
8555 | |
8556 | fi | |
4b6b4dfc RR |
8557 | |
8558 | ||
8559 | eval "$ac_cv_use_iff" | |
8560 | if test "$no_cache" != 1; then | |
8561 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
8562 | fi | |
8563 | ||
8564 | if test "$wxUSE_IFF" = yes; then | |
a0b9e27f | 8565 | echo "$ac_t""yes" 1>&6 |
4b6b4dfc | 8566 | else |
a0b9e27f | 8567 | echo "$ac_t""no" 1>&6 |
4b6b4dfc | 8568 | fi |
a0b9e27f | 8569 | |
4b6b4dfc | 8570 | |
5005acfe VZ |
8571 | enablestring= |
8572 | echo $ac_n "checking for --${enablestring:-enable}-pnm""... $ac_c" 1>&6 | |
8573 | echo "configure:8574: checking for --${enablestring:-enable}-pnm" >&5 | |
10f2d63a VZ |
8574 | no_cache=0 |
8575 | # Check whether --enable-pnm or --disable-pnm was given. | |
8576 | if test "${enable_pnm+set}" = set; then | |
8577 | enableval="$enable_pnm" | |
a0b9e27f | 8578 | |
10f2d63a VZ |
8579 | if test "$enableval" = yes; then |
8580 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
8581 | else | |
8582 | ac_cv_use_pnm='wxUSE_PNM=no' | |
8583 | fi | |
a0b9e27f | 8584 | |
10f2d63a | 8585 | else |
a0b9e27f | 8586 | |
10f2d63a VZ |
8587 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
8588 | if test "x$LINE" != x ; then | |
8589 | eval "DEFAULT_$LINE" | |
8590 | else | |
8591 | no_cache=1 | |
8592 | fi | |
8593 | ||
8594 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
a0b9e27f MB |
8595 | |
8596 | fi | |
10f2d63a VZ |
8597 | |
8598 | ||
8599 | eval "$ac_cv_use_pnm" | |
8600 | if test "$no_cache" != 1; then | |
8601 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
8602 | fi | |
8603 | ||
8604 | if test "$wxUSE_PNM" = yes; then | |
a0b9e27f | 8605 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8606 | else |
a0b9e27f | 8607 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8608 | fi |
a0b9e27f | 8609 | |
10f2d63a | 8610 | |
5005acfe VZ |
8611 | enablestring= |
8612 | echo $ac_n "checking for --${enablestring:-enable}-xpm""... $ac_c" 1>&6 | |
8613 | echo "configure:8614: checking for --${enablestring:-enable}-xpm" >&5 | |
0046ff7c | 8614 | no_cache=0 |
69d27ff7 MB |
8615 | # Check whether --enable-xpm or --disable-xpm was given. |
8616 | if test "${enable_xpm+set}" = set; then | |
8617 | enableval="$enable_xpm" | |
a0b9e27f | 8618 | |
0046ff7c | 8619 | if test "$enableval" = yes; then |
69d27ff7 | 8620 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 8621 | else |
69d27ff7 | 8622 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 8623 | fi |
a0b9e27f | 8624 | |
0046ff7c | 8625 | else |
a0b9e27f | 8626 | |
0046ff7c VS |
8627 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
8628 | if test "x$LINE" != x ; then | |
8629 | eval "DEFAULT_$LINE" | |
8630 | else | |
8631 | no_cache=1 | |
8632 | fi | |
8633 | ||
69d27ff7 | 8634 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
a0b9e27f MB |
8635 | |
8636 | fi | |
0046ff7c VS |
8637 | |
8638 | ||
69d27ff7 | 8639 | eval "$ac_cv_use_xpm" |
0046ff7c | 8640 | if test "$no_cache" != 1; then |
69d27ff7 | 8641 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
8642 | fi |
8643 | ||
8644 | if test "$wxUSE_XPM" = yes; then | |
a0b9e27f | 8645 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8646 | else |
a0b9e27f | 8647 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8648 | fi |
a0b9e27f | 8649 | |
0046ff7c | 8650 | |
5005acfe VZ |
8651 | enablestring= |
8652 | echo $ac_n "checking for --${enablestring:-enable}-ico_cur""... $ac_c" 1>&6 | |
8653 | echo "configure:8654: checking for --${enablestring:-enable}-ico_cur" >&5 | |
658974ae | 8654 | no_cache=0 |
c7206e64 VS |
8655 | # Check whether --enable-ico_cur or --disable-ico_cur was given. |
8656 | if test "${enable_ico_cur+set}" = set; then | |
8657 | enableval="$enable_ico_cur" | |
a0b9e27f | 8658 | |
658974ae | 8659 | if test "$enableval" = yes; then |
c7206e64 | 8660 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' |
658974ae | 8661 | else |
c7206e64 | 8662 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' |
658974ae | 8663 | fi |
a0b9e27f | 8664 | |
658974ae | 8665 | else |
a0b9e27f | 8666 | |
658974ae VS |
8667 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` |
8668 | if test "x$LINE" != x ; then | |
8669 | eval "DEFAULT_$LINE" | |
8670 | else | |
8671 | no_cache=1 | |
8672 | fi | |
8673 | ||
c7206e64 | 8674 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR |
a0b9e27f MB |
8675 | |
8676 | fi | |
658974ae VS |
8677 | |
8678 | ||
c7206e64 | 8679 | eval "$ac_cv_use_ico_cur" |
658974ae | 8680 | if test "$no_cache" != 1; then |
c7206e64 | 8681 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp |
658974ae VS |
8682 | fi |
8683 | ||
8684 | if test "$wxUSE_ICO_CUR" = yes; then | |
a0b9e27f | 8685 | echo "$ac_t""yes" 1>&6 |
658974ae | 8686 | else |
a0b9e27f | 8687 | echo "$ac_t""no" 1>&6 |
658974ae | 8688 | fi |
a0b9e27f | 8689 | |
658974ae | 8690 | |
b12915c1 VZ |
8691 | fi |
8692 | ||
d558c907 VS |
8693 | case "${host}" in |
8694 | *-pc-os2_emx | *-pc-os2-emx ) | |
6969f178 MB |
8695 | PATH_IFS=';' |
8696 | LEX_STEM="lexyy" | |
d558c907 VS |
8697 | ;; |
8698 | *) | |
8699 | PATH_IFS=':' | |
8700 | LEX_STEM="lex.yy" | |
8701 | ;; | |
8702 | esac | |
8703 | ||
8284b0c5 MB |
8704 | |
8705 | ||
10f2d63a VZ |
8706 | echo "saving argument cache $wx_arg_cache_file" |
8707 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
a0b9e27f | 8708 | |
52127426 | 8709 | |
8284b0c5 | 8710 | |
a0b9e27f | 8711 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 |
5005acfe | 8712 | echo "configure:8713: checking for toolkit" >&5 |
10f2d63a VZ |
8713 | |
8714 | if test "$wxUSE_GUI" = "yes"; then | |
8715 | ||
3a922bb4 | 8716 | if test "$USE_BEOS" = 1; then |
a0b9e27f | 8717 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } |
3a922bb4 | 8718 | fi |
b12915c1 | 8719 | |
3a922bb4 RL |
8720 | if test "$TOOLKIT_GIVEN" = 1; then |
8721 | for toolkit in `echo $ALL_TOOLKITS`; do | |
8722 | var=wxUSE_$toolkit | |
8723 | eval "value=\$${var}" | |
8724 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
8725 | done | |
10f2d63a | 8726 | else |
3a922bb4 RL |
8727 | for toolkit in `echo $ALL_TOOLKITS`; do |
8728 | if test "$has_toolkit_in_cache" != 1; then | |
8729 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
8730 | else | |
8731 | var=DEFAULT_wxUSE_$toolkit | |
8732 | fi | |
8733 | eval "wxUSE_$toolkit=\$${var}" | |
8734 | done | |
10f2d63a | 8735 | fi |
10f2d63a | 8736 | |
3a922bb4 | 8737 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \ |
f79bd02d | 8738 | + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}` |
10f2d63a | 8739 | |
d558c907 | 8740 | case "${host}" in |
6fa882bd | 8741 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 | 8742 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` |
3a922bb4 | 8743 | esac |
10f2d63a | 8744 | |
3a922bb4 RL |
8745 | case "$NUM_TOOLKITS" in |
8746 | 1) | |
8747 | ;; | |
8748 | 0) | |
a0b9e27f | 8749 | { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; } |
3a922bb4 RL |
8750 | ;; |
8751 | *) | |
a0b9e27f | 8752 | { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; } |
3a922bb4 | 8753 | esac |
10f2d63a | 8754 | |
3a922bb4 RL |
8755 | for toolkit in `echo $ALL_TOOLKITS`; do |
8756 | var=wxUSE_$toolkit | |
8757 | eval "value=\$${var}" | |
8758 | if test "x$value" != x; then | |
8759 | cache_var=CACHE_$toolkit | |
8760 | eval "cache=\$${cache_var}" | |
8761 | if test "$cache" = 1; then | |
8762 | echo "$var=$value" >> ${wx_arg_cache_file} | |
8763 | fi | |
8764 | if test "$value" = 1; then | |
8765 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
a0b9e27f | 8766 | echo "$ac_t""$toolkit_echo" 1>&6 |
3a922bb4 RL |
8767 | fi |
8768 | fi | |
8769 | done | |
10f2d63a | 8770 | else |
a0b9e27f | 8771 | echo "$ac_t""base ($host_alias hosted) only" 1>&6 |
10f2d63a VZ |
8772 | fi |
8773 | ||
6969f178 MB |
8774 | case "${host}" in |
8775 | *-pc-os2_emx | *-pc-os2-emx ) | |
8776 | LIBS="$LIBS -lstdcpp" | |
8777 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
db82f09e | 8778 | echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6 |
5005acfe | 8779 | echo "configure:8780: checking for drand48 in -lcExt" >&5 |
6969f178 MB |
8780 | ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'` |
8781 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8782 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8783 | else | |
8784 | ac_save_LIBS="$LIBS" | |
8785 | LIBS="-lcExt $LIBS" | |
8786 | cat > conftest.$ac_ext <<EOF | |
5005acfe | 8787 | #line 8788 "configure" |
6969f178 MB |
8788 | #include "confdefs.h" |
8789 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8790 | /* We use char because int might match the return type of a gcc2 | |
8791 | builtin and then its argument prototype would still apply. */ | |
8792 | char drand48(); | |
8793 | ||
8794 | int main() { | |
8795 | drand48() | |
8796 | ; return 0; } | |
8797 | EOF | |
5005acfe | 8798 | if { (eval echo configure:8799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6969f178 MB |
8799 | rm -rf conftest* |
8800 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8801 | else | |
8802 | echo "configure: failed program was:" >&5 | |
8803 | cat conftest.$ac_ext >&5 | |
8804 | rm -rf conftest* | |
8805 | eval "ac_cv_lib_$ac_lib_var=no" | |
8806 | fi | |
8807 | rm -f conftest* | |
8808 | LIBS="$ac_save_LIBS" | |
8809 | ||
8810 | fi | |
8811 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8812 | echo "$ac_t""yes" 1>&6 | |
8813 | LIBS="$LIBS -lcExt" | |
8814 | else | |
8815 | echo "$ac_t""no" 1>&6 | |
8816 | fi | |
8817 | ||
8818 | else | |
db82f09e | 8819 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" |
6969f178 MB |
8820 | fi |
8821 | ;; | |
8822 | esac | |
8284b0c5 | 8823 | |
43d99b6d VS |
8824 | wants_win32=0 |
8825 | doesnt_want_win32=0 | |
17234b26 MB |
8826 | case "${host}" in |
8827 | *-*-cygwin*) | |
8828 | if test "$wxUSE_MSW" = 1 ; then | |
43d99b6d VS |
8829 | wants_win32=1 |
8830 | else | |
8831 | doesnt_want_win32=1 | |
17234b26 MB |
8832 | fi |
8833 | ;; | |
8834 | *-*-mingw*) | |
43d99b6d | 8835 | wants_win32=1 |
17234b26 MB |
8836 | ;; |
8837 | esac | |
8838 | ||
43d99b6d | 8839 | if test "$wants_win32" = 1 ; then |
17234b26 MB |
8840 | USE_UNIX=0 |
8841 | USE_WIN32=1 | |
a0b9e27f | 8842 | cat >> confdefs.h <<\EOF |
17234b26 | 8843 | #define __WIN32__ 1 |
a0b9e27f | 8844 | EOF |
17234b26 | 8845 | |
a0b9e27f | 8846 | cat >> confdefs.h <<\EOF |
17234b26 | 8847 | #define __WIN95__ 1 |
a0b9e27f | 8848 | EOF |
17234b26 | 8849 | |
a0b9e27f | 8850 | cat >> confdefs.h <<\EOF |
17234b26 | 8851 | #define __WINDOWS__ 1 |
a0b9e27f | 8852 | EOF |
17234b26 | 8853 | |
a0b9e27f | 8854 | cat >> confdefs.h <<\EOF |
17234b26 | 8855 | #define __GNUWIN32__ 1 |
a0b9e27f | 8856 | EOF |
17234b26 | 8857 | |
a0b9e27f | 8858 | cat >> confdefs.h <<\EOF |
17234b26 | 8859 | #define STRICT 1 |
a0b9e27f | 8860 | EOF |
17234b26 | 8861 | |
a0b9e27f | 8862 | cat >> confdefs.h <<\EOF |
17234b26 | 8863 | #define WINVER 0x0400 |
a0b9e27f | 8864 | EOF |
17234b26 | 8865 | |
43d99b6d VS |
8866 | fi |
8867 | if test "$doesnt_want_win32" = 1 ; then | |
17234b26 MB |
8868 | USE_UNIX=1 |
8869 | USE_WIN32=0 | |
8870 | fi | |
8871 | ||
8872 | if test "$USE_UNIX" = 1 ; then | |
8873 | wxUSE_UNIX=yes | |
a0b9e27f | 8874 | cat >> confdefs.h <<\EOF |
17234b26 | 8875 | #define __UNIX__ 1 |
a0b9e27f | 8876 | EOF |
17234b26 MB |
8877 | |
8878 | fi | |
8879 | ||
8284b0c5 | 8880 | |
a0b9e27f | 8881 | cat > confcache <<\EOF |
10f2d63a VZ |
8882 | # This file is a shell script that caches the results of configure |
8883 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
8884 | # scripts and configure runs. It is not useful on other systems. |
8885 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8886 | # |
a0b9e27f MB |
8887 | # By default, configure uses ./config.cache as the cache file, |
8888 | # creating it if it does not exist already. You can give configure | |
8889 | # the --cache-file=FILE option to use a different cache file; that is | |
8890 | # what configure does when it calls configure scripts in | |
8891 | # subdirectories, so they share the cache. | |
8892 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8893 | # config.status only pays attention to the cache file if you give it the | |
8894 | # --recheck option to rerun configure. | |
10f2d63a | 8895 | # |
a0b9e27f | 8896 | EOF |
10f2d63a VZ |
8897 | # The following way of writing the cache mishandles newlines in values, |
8898 | # but we know of no workaround that is simple, portable, and efficient. | |
8899 | # So, don't put newlines in cache variables' values. | |
8900 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8901 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
8902 | (set) 2>&1 | |
8903 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8904 | *ac_space=\ *) | |
8905 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8906 | # turns \\\\ into \\, and sed turns \\ into \). | |
8907 | sed -n \ | |
8908 | -e "s/'/'\\\\''/g" \ | |
8909 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8910 | ;; | |
8911 | *) | |
8912 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8913 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8914 | ;; | |
8915 | esac >> confcache | |
8916 | if cmp -s $cache_file confcache; then | |
8917 | : | |
8918 | else | |
10f2d63a | 8919 | if test -w $cache_file; then |
a0b9e27f MB |
8920 | echo "updating cache $cache_file" |
8921 | cat confcache > $cache_file | |
10f2d63a VZ |
8922 | else |
8923 | echo "not updating unwritable cache $cache_file" | |
8924 | fi | |
8925 | fi | |
8926 | rm -f confcache | |
8927 | ||
a0b9e27f | 8928 | |
e59890c3 | 8929 | if test "$build" != "$host" ; then |
9d353d4a | 8930 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then |
3a922bb4 RL |
8931 | CC=$host_alias-gcc |
8932 | CXX=$host_alias-c++ | |
8933 | AR=$host_alias-ar | |
8934 | RANLIB=$host_alias-ranlib | |
8935 | DLLTOOL=$host_alias-dlltool | |
8936 | RESCOMP=$host_alias-windres | |
8937 | LD=$host_alias-ld | |
8938 | NM=$host_alias-nm | |
8939 | STRIP=$host_alias-strip | |
8940 | else | |
a0b9e27f | 8941 | { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; } |
3a922bb4 | 8942 | fi |
10f2d63a VZ |
8943 | fi |
8944 | ||
ec603395 | 8945 | CFLAGS=${CFLAGS:=} |
a0b9e27f | 8946 | # Extract the first word of "gcc", so it can be a program name with args. |
8284b0c5 | 8947 | set dummy gcc; ac_word=$2 |
a0b9e27f | 8948 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
5005acfe | 8949 | echo "configure:8950: checking for $ac_word" >&5 |
a0b9e27f MB |
8950 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8951 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
8952 | else |
8953 | if test -n "$CC"; then | |
8954 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 8955 | else |
a0b9e27f MB |
8956 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8957 | ac_dummy="$PATH" | |
8958 | for ac_dir in $ac_dummy; do | |
8959 | test -z "$ac_dir" && ac_dir=. | |
8960 | if test -f $ac_dir/$ac_word; then | |
8961 | ac_cv_prog_CC="gcc" | |
8962 | break | |
8963 | fi | |
8964 | done | |
8965 | IFS="$ac_save_ifs" | |
10f2d63a | 8966 | fi |
6232543b | 8967 | fi |
a0b9e27f | 8968 | CC="$ac_cv_prog_CC" |
6232543b | 8969 | if test -n "$CC"; then |
a0b9e27f | 8970 | echo "$ac_t""$CC" 1>&6 |
247f5006 | 8971 | else |
a0b9e27f | 8972 | echo "$ac_t""no" 1>&6 |
247f5006 VZ |
8973 | fi |
8974 | ||
5c6fa7d2 RR |
8975 | if test -z "$CC"; then |
8976 | # Extract the first word of "cc", so it can be a program name with args. | |
8977 | set dummy cc; ac_word=$2 | |
a0b9e27f | 8978 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
5005acfe | 8979 | echo "configure:8980: checking for $ac_word" >&5 |
a0b9e27f MB |
8980 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8981 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5c6fa7d2 RR |
8982 | else |
8983 | if test -n "$CC"; then | |
8984 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
8985 | else | |
a0b9e27f | 8986 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
5c6fa7d2 | 8987 | ac_prog_rejected=no |
a0b9e27f MB |
8988 | ac_dummy="$PATH" |
8989 | for ac_dir in $ac_dummy; do | |
8990 | test -z "$ac_dir" && ac_dir=. | |
8991 | if test -f $ac_dir/$ac_word; then | |
8992 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
8993 | ac_prog_rejected=yes | |
8994 | continue | |
8995 | fi | |
8996 | ac_cv_prog_CC="cc" | |
8997 | break | |
8998 | fi | |
8999 | done | |
9000 | IFS="$ac_save_ifs" | |
328a083c RR |
9001 | if test $ac_prog_rejected = yes; then |
9002 | # We found a bogon in the path, so make sure we never use it. | |
9003 | set dummy $ac_cv_prog_CC | |
9004 | shift | |
a0b9e27f | 9005 | if test $# -gt 0; then |
328a083c | 9006 | # We chose a different compiler from the bogus one. |
1e487827 VS |
9007 | # However, it has the same basename, so the bogon will be chosen |
9008 | # first if we set CC to just the basename; use the full file name. | |
9009 | shift | |
a0b9e27f | 9010 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
9011 | shift |
9012 | ac_cv_prog_CC="$@" | |
703e0a69 | 9013 | fi |
1e487827 VS |
9014 | fi |
9015 | fi | |
9016 | fi | |
a0b9e27f | 9017 | CC="$ac_cv_prog_CC" |
1e487827 | 9018 | if test -n "$CC"; then |
a0b9e27f | 9019 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 9020 | else |
a0b9e27f | 9021 | echo "$ac_t""no" 1>&6 |
703e0a69 | 9022 | fi |
1e487827 | 9023 | |
a0b9e27f MB |
9024 | if test -z "$CC"; then |
9025 | case "`uname -s`" in | |
9026 | *win32* | *WIN32*) | |
9027 | # Extract the first word of "cl", so it can be a program name with args. | |
9028 | set dummy cl; ac_word=$2 | |
9029 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
5005acfe | 9030 | echo "configure:9031: checking for $ac_word" >&5 |
a0b9e27f MB |
9031 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
9032 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f09359cf VS |
9033 | else |
9034 | if test -n "$CC"; then | |
9035 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9036 | else | |
a0b9e27f MB |
9037 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9038 | ac_dummy="$PATH" | |
9039 | for ac_dir in $ac_dummy; do | |
9040 | test -z "$ac_dir" && ac_dir=. | |
9041 | if test -f $ac_dir/$ac_word; then | |
9042 | ac_cv_prog_CC="cl" | |
9043 | break | |
9044 | fi | |
9045 | done | |
9046 | IFS="$ac_save_ifs" | |
f09359cf VS |
9047 | fi |
9048 | fi | |
a0b9e27f | 9049 | CC="$ac_cv_prog_CC" |
f09359cf | 9050 | if test -n "$CC"; then |
a0b9e27f | 9051 | echo "$ac_t""$CC" 1>&6 |
f09359cf | 9052 | else |
a0b9e27f | 9053 | echo "$ac_t""no" 1>&6 |
247f5006 | 9054 | fi |
a0b9e27f MB |
9055 | ;; |
9056 | esac | |
8284b0c5 | 9057 | fi |
a0b9e27f | 9058 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
5c6fa7d2 | 9059 | fi |
1e487827 | 9060 | |
a0b9e27f | 9061 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
5005acfe | 9062 | echo "configure:9063: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
f09359cf | 9063 | |
a0b9e27f MB |
9064 | ac_ext=c |
9065 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9066 | ac_cpp='$CPP $CPPFLAGS' | |
9067 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9068 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9069 | cross_compiling=$ac_cv_prog_cc_cross | |
f09359cf | 9070 | |
a0b9e27f | 9071 | cat > conftest.$ac_ext << EOF |
247f5006 | 9072 | |
5005acfe | 9073 | #line 9074 "configure" |
a0b9e27f | 9074 | #include "confdefs.h" |
247f5006 | 9075 | |
a0b9e27f MB |
9076 | main(){return(0);} |
9077 | EOF | |
5005acfe | 9078 | if { (eval echo configure:9079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
9079 | ac_cv_prog_cc_works=yes |
9080 | # If we can't run a trivial program, we are probably using a cross compiler. | |
9081 | if (./conftest; exit) 2>/dev/null; then | |
9082 | ac_cv_prog_cc_cross=no | |
698dcdb6 | 9083 | else |
a0b9e27f | 9084 | ac_cv_prog_cc_cross=yes |
698dcdb6 | 9085 | fi |
7b4a847f | 9086 | else |
a0b9e27f MB |
9087 | echo "configure: failed program was:" >&5 |
9088 | cat conftest.$ac_ext >&5 | |
9089 | ac_cv_prog_cc_works=no | |
52127426 | 9090 | fi |
a0b9e27f MB |
9091 | rm -fr conftest* |
9092 | ac_ext=c | |
9093 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9094 | ac_cpp='$CPP $CPPFLAGS' | |
9095 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9096 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9097 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 9098 | |
a0b9e27f MB |
9099 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
9100 | if test $ac_cv_prog_cc_works = no; then | |
9101 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
9102 | fi | |
9103 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
5005acfe | 9104 | echo "configure:9105: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
a0b9e27f MB |
9105 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
9106 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 9107 | |
a0b9e27f | 9108 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
5005acfe | 9109 | echo "configure:9110: checking whether we are using GNU C" >&5 |
a0b9e27f MB |
9110 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
9111 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 9112 | else |
a0b9e27f MB |
9113 | cat > conftest.c <<EOF |
9114 | #ifdef __GNUC__ | |
9115 | yes; | |
8284b0c5 | 9116 | #endif |
a0b9e27f | 9117 | EOF |
5005acfe | 9118 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:9119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
a0b9e27f | 9119 | ac_cv_prog_gcc=yes |
5c6fa7d2 | 9120 | else |
a0b9e27f | 9121 | ac_cv_prog_gcc=no |
8284b0c5 MB |
9122 | fi |
9123 | fi | |
1e487827 | 9124 | |
a0b9e27f | 9125 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
f09359cf | 9126 | |
a0b9e27f MB |
9127 | if test $ac_cv_prog_gcc = yes; then |
9128 | GCC=yes | |
9129 | else | |
9130 | GCC= | |
9131 | fi | |
247f5006 | 9132 | |
a0b9e27f MB |
9133 | ac_test_CFLAGS="${CFLAGS+set}" |
9134 | ac_save_CFLAGS="$CFLAGS" | |
9135 | CFLAGS= | |
9136 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
5005acfe | 9137 | echo "configure:9138: checking whether ${CC-cc} accepts -g" >&5 |
a0b9e27f MB |
9138 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
9139 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9140 | else | |
9141 | echo 'void f(){}' > conftest.c | |
9142 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
9143 | ac_cv_prog_cc_g=yes |
9144 | else | |
a0b9e27f | 9145 | ac_cv_prog_cc_g=no |
10f2d63a | 9146 | fi |
a0b9e27f MB |
9147 | rm -f conftest* |
9148 | ||
10f2d63a | 9149 | fi |
a0b9e27f MB |
9150 | |
9151 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
f09359cf | 9152 | if test "$ac_test_CFLAGS" = set; then |
a0b9e27f | 9153 | CFLAGS="$ac_save_CFLAGS" |
f09359cf VS |
9154 | elif test $ac_cv_prog_cc_g = yes; then |
9155 | if test "$GCC" = yes; then | |
10f2d63a VZ |
9156 | CFLAGS="-g -O2" |
9157 | else | |
f09359cf | 9158 | CFLAGS="-g" |
10f2d63a | 9159 | fi |
5c0a20c3 | 9160 | else |
f09359cf VS |
9161 | if test "$GCC" = yes; then |
9162 | CFLAGS="-O2" | |
9163 | else | |
9164 | CFLAGS= | |
9165 | fi | |
10f2d63a VZ |
9166 | fi |
9167 | ||
9168 | ||
a0b9e27f | 9169 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
5005acfe | 9170 | echo "configure:9171: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
9171 | # On Suns, sometimes $CPP names a directory. |
9172 | if test -n "$CPP" && test -d "$CPP"; then | |
9173 | CPP= | |
9174 | fi | |
9175 | if test -z "$CPP"; then | |
a0b9e27f MB |
9176 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
9177 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9178 | else | |
9179 | # This must be in double quotes, not single quotes, because CPP may get | |
9180 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
9181 | CPP="${CC-cc} -E" | |
10f2d63a | 9182 | # On the NeXT, cc -E runs the code through the compiler's parser, |
a0b9e27f MB |
9183 | # not just through cpp. |
9184 | cat > conftest.$ac_ext <<EOF | |
5005acfe | 9185 | #line 9186 "configure" |
10f2d63a VZ |
9186 | #include "confdefs.h" |
9187 | #include <assert.h> | |
a0b9e27f MB |
9188 | Syntax Error |
9189 | EOF | |
9190 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5005acfe | 9191 | { (eval echo configure:9192: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9192 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9193 | if test -z "$ac_err"; then | |
10f2d63a VZ |
9194 | : |
9195 | else | |
a0b9e27f MB |
9196 | echo "$ac_err" >&5 |
9197 | echo "configure: failed program was:" >&5 | |
10f2d63a | 9198 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
9199 | rm -rf conftest* |
9200 | CPP="${CC-cc} -E -traditional-cpp" | |
9201 | cat > conftest.$ac_ext <<EOF | |
5005acfe | 9202 | #line 9203 "configure" |
f09359cf | 9203 | #include "confdefs.h" |
a0b9e27f MB |
9204 | #include <assert.h> |
9205 | Syntax Error | |
9206 | EOF | |
9207 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5005acfe | 9208 | { (eval echo configure:9209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9209 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9210 | if test -z "$ac_err"; then | |
9211 | : | |
247f5006 | 9212 | else |
a0b9e27f MB |
9213 | echo "$ac_err" >&5 |
9214 | echo "configure: failed program was:" >&5 | |
f09359cf | 9215 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
9216 | rm -rf conftest* |
9217 | CPP="${CC-cc} -nologo -E" | |
9218 | cat > conftest.$ac_ext <<EOF | |
5005acfe | 9219 | #line 9220 "configure" |
10f2d63a VZ |
9220 | #include "confdefs.h" |
9221 | #include <assert.h> | |
a0b9e27f MB |
9222 | Syntax Error |
9223 | EOF | |
9224 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5005acfe | 9225 | { (eval echo configure:9226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9226 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9227 | if test -z "$ac_err"; then | |
10f2d63a VZ |
9228 | : |
9229 | else | |
a0b9e27f MB |
9230 | echo "$ac_err" >&5 |
9231 | echo "configure: failed program was:" >&5 | |
10f2d63a | 9232 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
9233 | rm -rf conftest* |
9234 | CPP=/lib/cpp | |
579d8138 | 9235 | fi |
a0b9e27f | 9236 | rm -f conftest* |
52127426 | 9237 | fi |
a0b9e27f | 9238 | rm -f conftest* |
8284b0c5 | 9239 | fi |
a0b9e27f MB |
9240 | rm -f conftest* |
9241 | ac_cv_prog_CPP="$CPP" | |
9242 | fi | |
9243 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 9244 | else |
a0b9e27f | 9245 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 9246 | fi |
a0b9e27f | 9247 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a | 9248 | |
a0b9e27f MB |
9249 | if test $ac_cv_prog_gcc = yes; then |
9250 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
5005acfe | 9251 | echo "configure:9252: checking whether ${CC-cc} needs -traditional" >&5 |
a0b9e27f MB |
9252 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
9253 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9254 | else |
9255 | ac_pattern="Autoconf.*'x'" | |
a0b9e27f | 9256 | cat > conftest.$ac_ext <<EOF |
5005acfe | 9257 | #line 9258 "configure" |
10f2d63a VZ |
9258 | #include "confdefs.h" |
9259 | #include <sgtty.h> | |
9260 | Autoconf TIOCGETP | |
a0b9e27f | 9261 | EOF |
10f2d63a VZ |
9262 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
9263 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
a0b9e27f | 9264 | rm -rf conftest* |
10f2d63a VZ |
9265 | ac_cv_prog_gcc_traditional=yes |
9266 | else | |
a0b9e27f | 9267 | rm -rf conftest* |
10f2d63a VZ |
9268 | ac_cv_prog_gcc_traditional=no |
9269 | fi | |
9270 | rm -f conftest* | |
9271 | ||
8284b0c5 | 9272 | |
10f2d63a | 9273 | if test $ac_cv_prog_gcc_traditional = no; then |
a0b9e27f | 9274 | cat > conftest.$ac_ext <<EOF |
5005acfe | 9275 | #line 9276 "configure" |
10f2d63a VZ |
9276 | #include "confdefs.h" |
9277 | #include <termio.h> | |
9278 | Autoconf TCGETA | |
a0b9e27f | 9279 | EOF |
10f2d63a VZ |
9280 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
9281 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
a0b9e27f | 9282 | rm -rf conftest* |
10f2d63a VZ |
9283 | ac_cv_prog_gcc_traditional=yes |
9284 | fi | |
9285 | rm -f conftest* | |
9286 | ||
9287 | fi | |
9288 | fi | |
a0b9e27f MB |
9289 | |
9290 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
9291 | if test $ac_cv_prog_gcc_traditional = yes; then |
9292 | CC="$CC -traditional" | |
9293 | fi | |
9294 | fi | |
9295 | ||
8284b0c5 MB |
9296 | |
9297 | ||
a0b9e27f MB |
9298 | ac_ext=C |
9299 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 9300 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
9301 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
9302 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9303 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 9304 | |
698dcdb6 | 9305 | |
ec603395 | 9306 | CXXFLAGS=${CXXFLAGS:=} |
a0b9e27f MB |
9307 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
9308 | do | |
9309 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
9310 | set dummy $ac_prog; ac_word=$2 | |
9311 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
5005acfe | 9312 | echo "configure:9313: checking for $ac_word" >&5 |
a0b9e27f MB |
9313 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
9314 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9315 | else |
9316 | if test -n "$CXX"; then | |
9317 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
9318 | else | |
a0b9e27f MB |
9319 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9320 | ac_dummy="$PATH" | |
9321 | for ac_dir in $ac_dummy; do | |
9322 | test -z "$ac_dir" && ac_dir=. | |
9323 | if test -f $ac_dir/$ac_word; then | |
9324 | ac_cv_prog_CXX="$ac_prog" | |
9325 | break | |
9326 | fi | |
9327 | done | |
9328 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9329 | fi |
9330 | fi | |
a0b9e27f | 9331 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 9332 | if test -n "$CXX"; then |
a0b9e27f | 9333 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 9334 | else |
a0b9e27f | 9335 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9336 | fi |
9337 | ||
a0b9e27f | 9338 | test -n "$CXX" && break |
10f2d63a | 9339 | done |
a0b9e27f | 9340 | test -n "$CXX" || CXX="gcc" |
f09359cf | 9341 | |
a0b9e27f MB |
9342 | |
9343 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
5005acfe | 9344 | echo "configure:9345: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
a0b9e27f MB |
9345 | |
9346 | ac_ext=C | |
9347 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9348 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9349 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9350 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9351 | cross_compiling=$ac_cv_prog_cxx_cross | |
9352 | ||
9353 | cat > conftest.$ac_ext << EOF | |
9354 | ||
5005acfe | 9355 | #line 9356 "configure" |
a0b9e27f MB |
9356 | #include "confdefs.h" |
9357 | ||
9358 | int main(){return(0);} | |
9359 | EOF | |
5005acfe | 9360 | if { (eval echo configure:9361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
9361 | ac_cv_prog_cxx_works=yes |
9362 | # If we can't run a trivial program, we are probably using a cross compiler. | |
9363 | if (./conftest; exit) 2>/dev/null; then | |
9364 | ac_cv_prog_cxx_cross=no | |
9365 | else | |
9366 | ac_cv_prog_cxx_cross=yes | |
9367 | fi | |
8284b0c5 | 9368 | else |
a0b9e27f MB |
9369 | echo "configure: failed program was:" >&5 |
9370 | cat conftest.$ac_ext >&5 | |
9371 | ac_cv_prog_cxx_works=no | |
8284b0c5 | 9372 | fi |
a0b9e27f MB |
9373 | rm -fr conftest* |
9374 | ac_ext=C | |
9375 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9376 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9377 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9378 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9379 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 9380 | |
a0b9e27f MB |
9381 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 |
9382 | if test $ac_cv_prog_cxx_works = no; then | |
9383 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
9384 | fi | |
9385 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
5005acfe | 9386 | echo "configure:9387: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
a0b9e27f MB |
9387 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
9388 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 9389 | |
a0b9e27f | 9390 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 |
5005acfe | 9391 | echo "configure:9392: checking whether we are using GNU C++" >&5 |
a0b9e27f MB |
9392 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
9393 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9394 | else | |
9395 | cat > conftest.C <<EOF | |
9396 | #ifdef __GNUC__ | |
9397 | yes; | |
10f2d63a | 9398 | #endif |
a0b9e27f | 9399 | EOF |
5005acfe | 9400 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
a0b9e27f MB |
9401 | ac_cv_prog_gxx=yes |
9402 | else | |
9403 | ac_cv_prog_gxx=no | |
9404 | fi | |
9405 | fi | |
10f2d63a | 9406 | |
a0b9e27f | 9407 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 9408 | |
a0b9e27f MB |
9409 | if test $ac_cv_prog_gxx = yes; then |
9410 | GXX=yes | |
9411 | else | |
9412 | GXX= | |
9413 | fi | |
f09359cf | 9414 | |
a0b9e27f MB |
9415 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
9416 | ac_save_CXXFLAGS="$CXXFLAGS" | |
9417 | CXXFLAGS= | |
9418 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
5005acfe | 9419 | echo "configure:9420: checking whether ${CXX-g++} accepts -g" >&5 |
a0b9e27f MB |
9420 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
9421 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9422 | else | |
9423 | echo 'void f(){}' > conftest.cc | |
9424 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
9425 | ac_cv_prog_cxx_g=yes |
9426 | else | |
a0b9e27f | 9427 | ac_cv_prog_cxx_g=no |
10f2d63a | 9428 | fi |
a0b9e27f MB |
9429 | rm -f conftest* |
9430 | ||
10f2d63a | 9431 | fi |
a0b9e27f MB |
9432 | |
9433 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
f09359cf | 9434 | if test "$ac_test_CXXFLAGS" = set; then |
a0b9e27f | 9435 | CXXFLAGS="$ac_save_CXXFLAGS" |
f09359cf VS |
9436 | elif test $ac_cv_prog_cxx_g = yes; then |
9437 | if test "$GXX" = yes; then | |
10f2d63a VZ |
9438 | CXXFLAGS="-g -O2" |
9439 | else | |
f09359cf | 9440 | CXXFLAGS="-g" |
10f2d63a | 9441 | fi |
5c0a20c3 | 9442 | else |
f09359cf VS |
9443 | if test "$GXX" = yes; then |
9444 | CXXFLAGS="-O2" | |
9445 | else | |
9446 | CXXFLAGS= | |
9447 | fi | |
10f2d63a VZ |
9448 | fi |
9449 | ||
9450 | ||
10f2d63a | 9451 | ac_ext=c |
a0b9e27f | 9452 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 9453 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
9454 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
9455 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9456 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 MB |
9457 | |
9458 | ||
a0b9e27f MB |
9459 | # Extract the first word of "ranlib", so it can be a program name with args. |
9460 | set dummy ranlib; ac_word=$2 | |
9461 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
5005acfe | 9462 | echo "configure:9463: checking for $ac_word" >&5 |
a0b9e27f MB |
9463 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
9464 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9465 | else |
9466 | if test -n "$RANLIB"; then | |
9467 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9468 | else | |
a0b9e27f MB |
9469 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9470 | ac_dummy="$PATH" | |
9471 | for ac_dir in $ac_dummy; do | |
9472 | test -z "$ac_dir" && ac_dir=. | |
9473 | if test -f $ac_dir/$ac_word; then | |
9474 | ac_cv_prog_RANLIB="ranlib" | |
9475 | break | |
9476 | fi | |
9477 | done | |
9478 | IFS="$ac_save_ifs" | |
9479 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
9480 | fi |
9481 | fi | |
a0b9e27f | 9482 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 9483 | if test -n "$RANLIB"; then |
a0b9e27f | 9484 | echo "$ac_t""$RANLIB" 1>&6 |
328a083c | 9485 | else |
a0b9e27f | 9486 | echo "$ac_t""no" 1>&6 |
328a083c RR |
9487 | fi |
9488 | ||
10f2d63a VZ |
9489 | |
9490 | # Extract the first word of "ar", so it can be a program name with args. | |
9491 | set dummy ar; ac_word=$2 | |
a0b9e27f | 9492 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
5005acfe | 9493 | echo "configure:9494: checking for $ac_word" >&5 |
a0b9e27f MB |
9494 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
9495 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9496 | else |
9497 | if test -n "$AR"; then | |
9498 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
9499 | else | |
a0b9e27f MB |
9500 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9501 | ac_dummy="$PATH" | |
9502 | for ac_dir in $ac_dummy; do | |
9503 | test -z "$ac_dir" && ac_dir=. | |
9504 | if test -f $ac_dir/$ac_word; then | |
9505 | ac_cv_prog_AR="ar" | |
9506 | break | |
9507 | fi | |
9508 | done | |
9509 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9510 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
9511 | fi | |
9512 | fi | |
a0b9e27f | 9513 | AR="$ac_cv_prog_AR" |
10f2d63a | 9514 | if test -n "$AR"; then |
a0b9e27f | 9515 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 9516 | else |
a0b9e27f | 9517 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9518 | fi |
9519 | ||
8284b0c5 | 9520 | |
6054113a | 9521 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
9522 | # so one script is as good as another. But avoid the broken or |
9523 | # incompatible versions: | |
9524 | # SysV /etc/install, /usr/sbin/install | |
9525 | # SunOS /usr/etc/install | |
9526 | # IRIX /sbin/install | |
9527 | # AIX /bin/install | |
f09359cf | 9528 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
10f2d63a VZ |
9529 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
9530 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
9531 | # ./install, which can be erroneously created by make from ./install.sh. | |
a0b9e27f | 9532 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
5005acfe | 9533 | echo "configure:9534: checking for a BSD compatible install" >&5 |
10f2d63a | 9534 | if test -z "$INSTALL"; then |
a0b9e27f MB |
9535 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
9536 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9537 | else | |
9538 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
9539 | for ac_dir in $PATH; do | |
9540 | # Account for people who put trailing slashes in PATH elements. | |
9541 | case "$ac_dir/" in | |
9542 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
9543 | *) | |
9544 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
9545 | # Don't use installbsd from OSF since it installs stuff as root | |
9546 | # by default. | |
9547 | for ac_prog in ginstall scoinst install; do | |
9548 | if test -f $ac_dir/$ac_prog; then | |
9549 | if test $ac_prog = install && | |
9550 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
9551 | # AIX install. It has an incompatible calling convention. | |
9552 | : | |
9553 | else | |
9554 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
9555 | break 2 | |
9556 | fi | |
9557 | fi | |
10f2d63a | 9558 | done |
a0b9e27f MB |
9559 | ;; |
9560 | esac | |
9561 | done | |
9562 | IFS="$ac_save_IFS" | |
10f2d63a VZ |
9563 | |
9564 | fi | |
9565 | if test "${ac_cv_path_install+set}" = set; then | |
a0b9e27f | 9566 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
9567 | else |
9568 | # As a last resort, use the slow shell script. We don't cache a | |
9569 | # path for INSTALL within a source directory, because that will | |
9570 | # break other packages using the cache if that directory is | |
9571 | # removed, or if the path is relative. | |
a0b9e27f | 9572 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
9573 | fi |
9574 | fi | |
a0b9e27f | 9575 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
9576 | |
9577 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
9578 | # It thinks the first close brace ends the variable substitution. | |
9579 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
9580 | ||
a0b9e27f | 9581 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
f09359cf | 9582 | |
10f2d63a VZ |
9583 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
9584 | ||
8284b0c5 | 9585 | |
1d1b75ac VZ |
9586 | case ${INSTALL} in |
9587 | /* ) # Absolute | |
9588 | ;; | |
3bd8fb5f | 9589 | *) |
1d1b75ac VZ |
9590 | INSTALL=`pwd`/${INSTALL} ;; |
9591 | esac | |
9592 | ||
8284b0c5 | 9593 | |
6054113a GD |
9594 | case "${host}" in |
9595 | ||
b5853384 | 9596 | powerpc-*-darwin* ) |
eb99ae0b GD |
9597 | INSTALL_PROGRAM="cp -fp" |
9598 | INSTALL_DATA="cp -fp" | |
6054113a GD |
9599 | ;; |
9600 | *) | |
9601 | ;; | |
d6853540 | 9602 | esac |
698dcdb6 | 9603 | |
10f2d63a VZ |
9604 | # Extract the first word of "strip", so it can be a program name with args. |
9605 | set dummy strip; ac_word=$2 | |
a0b9e27f | 9606 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
5005acfe | 9607 | echo "configure:9608: checking for $ac_word" >&5 |
a0b9e27f MB |
9608 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
9609 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9610 | else |
9611 | if test -n "$STRIP"; then | |
9612 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9613 | else | |
a0b9e27f MB |
9614 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9615 | ac_dummy="$PATH" | |
9616 | for ac_dir in $ac_dummy; do | |
9617 | test -z "$ac_dir" && ac_dir=. | |
9618 | if test -f $ac_dir/$ac_word; then | |
9619 | ac_cv_prog_STRIP="strip" | |
9620 | break | |
9621 | fi | |
9622 | done | |
9623 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9624 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
9625 | fi | |
9626 | fi | |
a0b9e27f | 9627 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 9628 | if test -n "$STRIP"; then |
a0b9e27f | 9629 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 9630 | else |
a0b9e27f | 9631 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9632 | fi |
9633 | ||
5c6fa7d2 | 9634 | |
a0b9e27f | 9635 | echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6 |
5005acfe | 9636 | echo "configure:9637: checking if make is GNU make" >&5 |
a0b9e27f MB |
9637 | if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then |
9638 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 9639 | else |
a0b9e27f | 9640 | |
414eab6d | 9641 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | |
d558c907 | 9642 | egrep -s GNU > /dev/null); then |
414eab6d VZ |
9643 | wx_cv_prog_makeisgnu="yes" |
9644 | else | |
9645 | wx_cv_prog_makeisgnu="no" | |
9646 | fi | |
9647 | ||
9648 | fi | |
a0b9e27f MB |
9649 | |
9650 | echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6 | |
414eab6d VZ |
9651 | |
9652 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
9653 | IF_GNU_MAKE="" | |
9654 | else | |
9655 | IF_GNU_MAKE="#" | |
9656 | fi | |
9657 | ||
8284b0c5 MB |
9658 | |
9659 | ||
414eab6d | 9660 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then |
a0b9e27f | 9661 | echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6 |
5005acfe | 9662 | echo "configure:9663: checking if make supports VPATH" >&5 |
a0b9e27f MB |
9663 | if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then |
9664 | echo $ac_n "(cached) $ac_c" 1>&6 | |
04e7a216 | 9665 | else |
a0b9e27f | 9666 | |
10f2d63a VZ |
9667 | cat - << EOF > confMake |
9668 | check : file | |
9669 | cp \$? \$@ | |
9670 | cp \$? final_file | |
9671 | EOF | |
9672 | ||
9673 | if test ! -d sub ; then | |
9674 | mkdir sub | |
9675 | fi | |
9676 | echo dummy > sub/file | |
f6bcfd97 | 9677 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
9678 | RESULT=$? |
9679 | rm -f sub/file check final_file confMake | |
9680 | rmdir sub | |
9681 | if test "$RESULT" = 0; then | |
04e7a216 | 9682 | wx_cv_prog_makevpath="yes" |
10f2d63a | 9683 | else |
04e7a216 VZ |
9684 | wx_cv_prog_makevpath="no" |
9685 | fi | |
9686 | ||
9687 | fi | |
a0b9e27f MB |
9688 | |
9689 | echo "$ac_t""$wx_cv_prog_makevpath" 1>&6 | |
04e7a216 VZ |
9690 | |
9691 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
a0b9e27f | 9692 | { echo "configure: error: |
5c6fa7d2 RR |
9693 | You need a make-utility that is able to use the variable |
9694 | VPATH correctly. | |
9695 | If your version of make does not support VPATH correctly, | |
9696 | please install GNU-make (possibly as gmake), and start | |
9697 | configure with the following command: | |
9698 | export MAKE=gmake; ./configure for sh-type shells | |
9699 | setenv MAKE gmake; ./configure for csh-type shells | |
9700 | Also please do remember to use gmake in this case every time | |
9701 | you are trying to compile. | |
a0b9e27f MB |
9702 | " 1>&2; exit 1; } |
9703 | fi fi | |
10f2d63a VZ |
9704 | for ac_prog in 'bison -y' byacc |
9705 | do | |
a0b9e27f | 9706 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 9707 | set dummy $ac_prog; ac_word=$2 |
a0b9e27f | 9708 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
5005acfe | 9709 | echo "configure:9710: checking for $ac_word" >&5 |
a0b9e27f MB |
9710 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
9711 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9712 | else |
9713 | if test -n "$YACC"; then | |
9714 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
9715 | else | |
a0b9e27f MB |
9716 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9717 | ac_dummy="$PATH" | |
9718 | for ac_dir in $ac_dummy; do | |
9719 | test -z "$ac_dir" && ac_dir=. | |
9720 | if test -f $ac_dir/$ac_word; then | |
9721 | ac_cv_prog_YACC="$ac_prog" | |
9722 | break | |
9723 | fi | |
9724 | done | |
9725 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9726 | fi |
9727 | fi | |
a0b9e27f | 9728 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 9729 | if test -n "$YACC"; then |
a0b9e27f | 9730 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 9731 | else |
a0b9e27f | 9732 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9733 | fi |
9734 | ||
a0b9e27f | 9735 | test -n "$YACC" && break |
10f2d63a VZ |
9736 | done |
9737 | test -n "$YACC" || YACC="yacc" | |
9738 | ||
8284b0c5 | 9739 | |
a0b9e27f MB |
9740 | # Extract the first word of "flex", so it can be a program name with args. |
9741 | set dummy flex; ac_word=$2 | |
9742 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
5005acfe | 9743 | echo "configure:9744: checking for $ac_word" >&5 |
a0b9e27f MB |
9744 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
9745 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9746 | else |
9747 | if test -n "$LEX"; then | |
9748 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
9749 | else | |
a0b9e27f MB |
9750 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9751 | ac_dummy="$PATH" | |
9752 | for ac_dir in $ac_dummy; do | |
9753 | test -z "$ac_dir" && ac_dir=. | |
9754 | if test -f $ac_dir/$ac_word; then | |
9755 | ac_cv_prog_LEX="flex" | |
9756 | break | |
9757 | fi | |
9758 | done | |
9759 | IFS="$ac_save_ifs" | |
9760 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
9761 | fi |
9762 | fi | |
a0b9e27f | 9763 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 9764 | if test -n "$LEX"; then |
a0b9e27f | 9765 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 9766 | else |
a0b9e27f | 9767 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9768 | fi |
9769 | ||
9770 | if test -z "$LEXLIB" | |
9771 | then | |
a0b9e27f MB |
9772 | case "$LEX" in |
9773 | flex*) ac_lib=fl ;; | |
9774 | *) ac_lib=l ;; | |
9775 | esac | |
9776 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
5005acfe | 9777 | echo "configure:9778: checking for yywrap in -l$ac_lib" >&5 |
a0b9e27f MB |
9778 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
9779 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9780 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9781 | else | |
9782 | ac_save_LIBS="$LIBS" | |
9783 | LIBS="-l$ac_lib $LIBS" | |
9784 | cat > conftest.$ac_ext <<EOF | |
5005acfe | 9785 | #line 9786 "configure" |
247f5006 | 9786 | #include "confdefs.h" |
247f5006 | 9787 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 | 9788 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
9789 | builtin and then its argument prototype would still apply. */ |
9790 | char yywrap(); | |
10f2d63a | 9791 | |
a0b9e27f MB |
9792 | int main() { |
9793 | yywrap() | |
9794 | ; return 0; } | |
9795 | EOF | |
5005acfe | 9796 | if { (eval echo configure:9797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
9797 | rm -rf conftest* |
9798 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9799 | else | |
9800 | echo "configure: failed program was:" >&5 | |
9801 | cat conftest.$ac_ext >&5 | |
9802 | rm -rf conftest* | |
9803 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 9804 | fi |
a0b9e27f MB |
9805 | rm -f conftest* |
9806 | LIBS="$ac_save_LIBS" | |
8284b0c5 | 9807 | |
10f2d63a | 9808 | fi |
a0b9e27f MB |
9809 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
9810 | echo "$ac_t""yes" 1>&6 | |
9811 | LEXLIB="-l$ac_lib" | |
8284b0c5 | 9812 | else |
a0b9e27f | 9813 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9814 | fi |
9815 | ||
a0b9e27f | 9816 | fi |
10f2d63a VZ |
9817 | |
9818 | ||
a0b9e27f | 9819 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
5005acfe | 9820 | echo "configure:9821: checking whether ln -s works" >&5 |
a0b9e27f MB |
9821 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
9822 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9823 | else |
a0b9e27f MB |
9824 | rm -f conftestdata |
9825 | if ln -s X conftestdata 2>/dev/null | |
9826 | then | |
9827 | rm -f conftestdata | |
9828 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 9829 | else |
a0b9e27f | 9830 | ac_cv_prog_LN_S=ln |
10f2d63a | 9831 | fi |
a0b9e27f MB |
9832 | fi |
9833 | LN_S="$ac_cv_prog_LN_S" | |
9834 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
9835 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 9836 | else |
a0b9e27f | 9837 | echo "$ac_t""no" 1>&6 |
5c6fa7d2 | 9838 | fi |
5c6fa7d2 | 9839 | |
247f5006 | 9840 | |
a0b9e27f MB |
9841 | |
9842 | if test "$wxUSE_MAC" != 1; then | |
9843 | for ac_hdr in strings.h | |
9844 | do | |
9845 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9846 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5005acfe | 9847 | echo "configure:9848: checking for $ac_hdr" >&5 |
a0b9e27f MB |
9848 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9849 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9850 | else | |
9851 | cat > conftest.$ac_ext <<EOF | |
5005acfe | 9852 | #line 9853 "configure" |
a0b9e27f MB |
9853 | #include "confdefs.h" |
9854 | #include <$ac_hdr> | |
9855 | EOF | |
9856 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5005acfe | 9857 | { (eval echo configure:9858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9858 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9859 | if test -z "$ac_err"; then | |
9860 | rm -rf conftest* | |
9861 | eval "ac_cv_header_$ac_safe=yes" | |
9862 | else | |
9863 | echo "$ac_err" >&5 | |
9864 | echo "configure: failed program was:" >&5 | |
9865 | cat conftest.$ac_ext >&5 | |
9866 | rm -rf conftest* | |
9867 | eval "ac_cv_header_$ac_safe=no" | |
21d1c967 | 9868 | fi |
247f5006 | 9869 | rm -f conftest* |
19bc6aad | 9870 | fi |
a0b9e27f MB |
9871 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9872 | echo "$ac_t""yes" 1>&6 | |
9873 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9874 | cat >> confdefs.h <<EOF | |
9875 | #define $ac_tr_hdr 1 | |
9876 | EOF | |
9877 | ||
247f5006 | 9878 | else |
a0b9e27f | 9879 | echo "$ac_t""no" 1>&6 |
18dbb1f6 | 9880 | fi |
a0b9e27f | 9881 | done |
247f5006 | 9882 | |
90dd450c | 9883 | fi |
90dd450c | 9884 | |
a0b9e27f MB |
9885 | for ac_hdr in stdlib.h |
9886 | do | |
9887 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9888 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5005acfe | 9889 | echo "configure:9890: checking for $ac_hdr" >&5 |
a0b9e27f MB |
9890 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9891 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9892 | else | |
9893 | cat > conftest.$ac_ext <<EOF | |
5005acfe | 9894 | #line 9895 "configure" |
90dd450c | 9895 | #include "confdefs.h" |
a0b9e27f MB |
9896 | #include <$ac_hdr> |
9897 | EOF | |
9898 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5005acfe | 9899 | { (eval echo configure:9900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9900 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9901 | if test -z "$ac_err"; then | |
9902 | rm -rf conftest* | |
9903 | eval "ac_cv_header_$ac_safe=yes" | |
9904 | else | |
9905 | echo "$ac_err" >&5 | |
9906 | echo "configure: failed program was:" >&5 | |
9907 | cat conftest.$ac_ext >&5 | |
9908 | rm -rf conftest* | |
9909 | eval "ac_cv_header_$ac_safe=no" | |
9910 | fi | |
9911 | rm -f conftest* | |
9912 | fi | |
9913 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9914 | echo "$ac_t""yes" 1>&6 | |
9915 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9916 | cat >> confdefs.h <<EOF | |
9917 | #define $ac_tr_hdr 1 | |
9918 | EOF | |
9919 | ||
8284b0c5 | 9920 | else |
a0b9e27f | 9921 | echo "$ac_t""no" 1>&6 |
21d1c967 | 9922 | fi |
a0b9e27f MB |
9923 | done |
9924 | ||
9925 | for ac_hdr in malloc.h | |
9926 | do | |
9927 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9928 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5005acfe | 9929 | echo "configure:9930: checking for $ac_hdr" >&5 |
a0b9e27f MB |
9930 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9931 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9932 | else | |
9933 | cat > conftest.$ac_ext <<EOF | |
5005acfe | 9934 | #line 9935 "configure" |
a0b9e27f MB |
9935 | #include "confdefs.h" |
9936 | #include <$ac_hdr> | |
9937 | EOF | |
9938 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5005acfe | 9939 | { (eval echo configure:9940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9940 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9941 | if test -z "$ac_err"; then | |
9942 | rm -rf conftest* | |
9943 | eval "ac_cv_header_$ac_safe=yes" | |
9944 | else | |
9945 | echo "$ac_err" >&5 | |
9946 | echo "configure: failed program was:" >&5 | |
9947 | cat conftest.$ac_ext >&5 | |
9948 | rm -rf conftest* | |
9949 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 9950 | fi |
a0b9e27f | 9951 | rm -f conftest* |
90dd450c | 9952 | fi |
a0b9e27f MB |
9953 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9954 | echo "$ac_t""yes" 1>&6 | |
9955 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9956 | cat >> confdefs.h <<EOF | |
9957 | #define $ac_tr_hdr 1 | |
9958 | EOF | |
9959 | ||
9960 | else | |
9961 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 9962 | fi |
a0b9e27f | 9963 | done |
247f5006 | 9964 | |
a0b9e27f MB |
9965 | for ac_hdr in unistd.h |
9966 | do | |
9967 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9968 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5005acfe | 9969 | echo "configure:9970: checking for $ac_hdr" >&5 |
a0b9e27f MB |
9970 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9971 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9972 | else | |
9973 | cat > conftest.$ac_ext <<EOF | |
5005acfe | 9974 | #line 9975 "configure" |
a0b9e27f MB |
9975 | #include "confdefs.h" |
9976 | #include <$ac_hdr> | |
9977 | EOF | |
9978 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5005acfe | 9979 | { (eval echo configure:9980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9980 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9981 | if test -z "$ac_err"; then | |
9982 | rm -rf conftest* | |
9983 | eval "ac_cv_header_$ac_safe=yes" | |
9984 | else | |
9985 | echo "$ac_err" >&5 | |
9986 | echo "configure: failed program was:" >&5 | |
9987 | cat conftest.$ac_ext >&5 | |
9988 | rm -rf conftest* | |
9989 | eval "ac_cv_header_$ac_safe=no" | |
247f5006 | 9990 | fi |
a0b9e27f MB |
9991 | rm -f conftest* |
9992 | fi | |
9993 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9994 | echo "$ac_t""yes" 1>&6 | |
9995 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9996 | cat >> confdefs.h <<EOF | |
9997 | #define $ac_tr_hdr 1 | |
9998 | EOF | |
9999 | ||
10000 | else | |
10001 | echo "$ac_t""no" 1>&6 | |
10002 | fi | |
10003 | done | |
90dd450c | 10004 | |
a0b9e27f | 10005 | for ac_hdr in wchar.h |
21d1c967 | 10006 | do |
a0b9e27f MB |
10007 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10008 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5005acfe | 10009 | echo "configure:10010: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10010 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10011 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10012 | else | |
10013 | cat > conftest.$ac_ext <<EOF | |
5005acfe | 10014 | #line 10015 "configure" |
4f14bcd8 | 10015 | #include "confdefs.h" |
a0b9e27f MB |
10016 | #include <$ac_hdr> |
10017 | EOF | |
10018 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5005acfe | 10019 | { (eval echo configure:10020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10020 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10021 | if test -z "$ac_err"; then | |
10022 | rm -rf conftest* | |
10023 | eval "ac_cv_header_$ac_safe=yes" | |
10024 | else | |
10025 | echo "$ac_err" >&5 | |
10026 | echo "configure: failed program was:" >&5 | |
10027 | cat conftest.$ac_ext >&5 | |
10028 | rm -rf conftest* | |
10029 | eval "ac_cv_header_$ac_safe=no" | |
10030 | fi | |
10031 | rm -f conftest* | |
10032 | fi | |
10033 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10034 | echo "$ac_t""yes" 1>&6 | |
10035 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10036 | cat >> confdefs.h <<EOF | |
10037 | #define $ac_tr_hdr 1 | |
10038 | EOF | |
10039 | ||
10040 | else | |
10041 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
10042 | fi |
10043 | done | |
4f14bcd8 | 10044 | |
5c6fa7d2 | 10045 | |
a0b9e27f MB |
10046 | if test "$ac_cv_header_wchar_h" != "yes"; then |
10047 | for ac_hdr in wcstr.h | |
21d1c967 | 10048 | do |
a0b9e27f MB |
10049 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10050 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5005acfe | 10051 | echo "configure:10052: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10052 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10053 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10054 | else | |
10055 | cat > conftest.$ac_ext <<EOF | |
5005acfe | 10056 | #line 10057 "configure" |
d4158b5d | 10057 | #include "confdefs.h" |
a0b9e27f MB |
10058 | #include <$ac_hdr> |
10059 | EOF | |
10060 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5005acfe | 10061 | { (eval echo configure:10062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10062 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10063 | if test -z "$ac_err"; then | |
10064 | rm -rf conftest* | |
10065 | eval "ac_cv_header_$ac_safe=yes" | |
10066 | else | |
10067 | echo "$ac_err" >&5 | |
10068 | echo "configure: failed program was:" >&5 | |
d4158b5d | 10069 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10070 | rm -rf conftest* |
10071 | eval "ac_cv_header_$ac_safe=no" | |
d4158b5d | 10072 | fi |
a0b9e27f | 10073 | rm -f conftest* |
21d1c967 | 10074 | fi |
a0b9e27f MB |
10075 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10076 | echo "$ac_t""yes" 1>&6 | |
10077 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10078 | cat >> confdefs.h <<EOF | |
10079 | #define $ac_tr_hdr 1 | |
10080 | EOF | |
10081 | ||
10082 | else | |
10083 | echo "$ac_t""no" 1>&6 | |
d4158b5d | 10084 | fi |
21d1c967 | 10085 | done |
f6bcfd97 | 10086 | |
90dd450c | 10087 | fi |
90dd450c | 10088 | |
a0b9e27f | 10089 | for ac_hdr in fnmatch.h |
21d1c967 | 10090 | do |
a0b9e27f MB |
10091 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10092 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5005acfe | 10093 | echo "configure:10094: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10094 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10095 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10096 | else | |
10097 | cat > conftest.$ac_ext <<EOF | |
5005acfe | 10098 | #line 10099 "configure" |
90dd450c | 10099 | #include "confdefs.h" |
a0b9e27f MB |
10100 | #include <$ac_hdr> |
10101 | EOF | |
10102 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5005acfe | 10103 | { (eval echo configure:10104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10104 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10105 | if test -z "$ac_err"; then | |
10106 | rm -rf conftest* | |
10107 | eval "ac_cv_header_$ac_safe=yes" | |
10108 | else | |
10109 | echo "$ac_err" >&5 | |
10110 | echo "configure: failed program was:" >&5 | |
3a922bb4 | 10111 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10112 | rm -rf conftest* |
10113 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 10114 | fi |
a0b9e27f | 10115 | rm -f conftest* |
4f14bcd8 | 10116 | fi |
a0b9e27f MB |
10117 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10118 | echo "$ac_t""yes" 1>&6 | |
10119 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10120 | cat >> confdefs.h <<EOF | |
10121 | #define $ac_tr_hdr 1 | |
10122 | EOF | |
10123 | ||
10124 | else | |
10125 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
10126 | fi |
10127 | done | |
90dd450c | 10128 | |
5c6fa7d2 | 10129 | |
a0b9e27f MB |
10130 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
10131 | for ac_func in fnmatch | |
21d1c967 | 10132 | do |
a0b9e27f | 10133 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5005acfe | 10134 | echo "configure:10135: checking for $ac_func" >&5 |
a0b9e27f MB |
10135 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10136 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10137 | else |
a0b9e27f | 10138 | cat > conftest.$ac_ext <<EOF |
5005acfe | 10139 | #line 10140 "configure" |
a0b9e27f MB |
10140 | #include "confdefs.h" |
10141 | /* System header to define __stub macros and hopefully few prototypes, | |
10142 | which can conflict with char $ac_func(); below. */ | |
10143 | #include <assert.h> | |
10144 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10145 | /* We use char because int might match the return type of a gcc2 | |
10146 | builtin and then its argument prototype would still apply. */ | |
10147 | char $ac_func(); | |
10148 | ||
10149 | int main() { | |
10150 | ||
10151 | /* The GNU C library defines this for functions which it implements | |
10152 | to always fail with ENOSYS. Some functions are actually named | |
10153 | something starting with __ and the normal name is an alias. */ | |
10154 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10155 | choke me | |
10156 | #else | |
10157 | $ac_func(); | |
10158 | #endif | |
10159 | ||
10160 | ; return 0; } | |
10161 | EOF | |
5005acfe | 10162 | if { (eval echo configure:10163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
10163 | rm -rf conftest* |
10164 | eval "ac_cv_func_$ac_func=yes" | |
8284b0c5 | 10165 | else |
a0b9e27f | 10166 | echo "configure: failed program was:" >&5 |
8284b0c5 | 10167 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10168 | rm -rf conftest* |
10169 | eval "ac_cv_func_$ac_func=no" | |
8284b0c5 | 10170 | fi |
a0b9e27f | 10171 | rm -f conftest* |
8284b0c5 | 10172 | fi |
32832908 | 10173 | |
a0b9e27f MB |
10174 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
10175 | echo "$ac_t""yes" 1>&6 | |
10176 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10177 | cat >> confdefs.h <<EOF | |
10178 | #define $ac_tr_func 1 | |
10179 | EOF | |
10180 | ||
10181 | else | |
10182 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
10183 | fi |
10184 | done | |
90dd450c | 10185 | |
a0b9e27f | 10186 | fi |
90dd450c | 10187 | |
a0b9e27f | 10188 | for ac_hdr in langinfo.h |
21d1c967 | 10189 | do |
a0b9e27f MB |
10190 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10191 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5005acfe | 10192 | echo "configure:10193: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10193 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10194 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10195 | else | |
10196 | cat > conftest.$ac_ext <<EOF | |
5005acfe | 10197 | #line 10198 "configure" |
247f5006 | 10198 | #include "confdefs.h" |
a0b9e27f MB |
10199 | #include <$ac_hdr> |
10200 | EOF | |
10201 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5005acfe | 10202 | { (eval echo configure:10203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10203 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10204 | if test -z "$ac_err"; then | |
10205 | rm -rf conftest* | |
10206 | eval "ac_cv_header_$ac_safe=yes" | |
10207 | else | |
10208 | echo "$ac_err" >&5 | |
10209 | echo "configure: failed program was:" >&5 | |
90dd450c | 10210 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10211 | rm -rf conftest* |
10212 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 10213 | fi |
a0b9e27f | 10214 | rm -f conftest* |
4f14bcd8 | 10215 | fi |
a0b9e27f MB |
10216 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10217 | echo "$ac_t""yes" 1>&6 | |
10218 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10219 | cat >> confdefs.h <<EOF | |
10220 | #define $ac_tr_hdr 1 | |
10221 | EOF | |
10222 | ||
10223 | else | |
10224 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
10225 | fi |
10226 | done | |
3a922bb4 | 10227 | |
8284b0c5 | 10228 | |
a0b9e27f MB |
10229 | if test "$wxUSE_GUI" = "yes"; then |
10230 | if test "$wxUSE_UNIX" = "yes"; then | |
10231 | for ac_hdr in X11/XKBlib.h | |
21d1c967 | 10232 | do |
a0b9e27f MB |
10233 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10234 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5005acfe | 10235 | echo "configure:10236: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10236 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10237 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10238 | else | |
10239 | cat > conftest.$ac_ext <<EOF | |
5005acfe | 10240 | #line 10241 "configure" |
90dd450c | 10241 | #include "confdefs.h" |
a0b9e27f MB |
10242 | #include <$ac_hdr> |
10243 | EOF | |
10244 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5005acfe | 10245 | { (eval echo configure:10246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10246 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10247 | if test -z "$ac_err"; then | |
10248 | rm -rf conftest* | |
10249 | eval "ac_cv_header_$ac_safe=yes" | |
10250 | else | |
10251 | echo "$ac_err" >&5 | |
10252 | echo "configure: failed program was:" >&5 | |
90dd450c | 10253 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10254 | rm -rf conftest* |
10255 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 10256 | fi |
a0b9e27f | 10257 | rm -f conftest* |
90dd450c | 10258 | fi |
a0b9e27f MB |
10259 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10260 | echo "$ac_t""yes" 1>&6 | |
10261 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10262 | cat >> confdefs.h <<EOF | |
10263 | #define $ac_tr_hdr 1 | |
10264 | EOF | |
10265 | ||
10266 | else | |
10267 | echo "$ac_t""no" 1>&6 | |
247f5006 | 10268 | fi |
247f5006 VZ |
10269 | done |
10270 | ||
a0b9e27f MB |
10271 | fi |
10272 | fi | |
247f5006 | 10273 | |
247f5006 | 10274 | |
a0b9e27f | 10275 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
5005acfe | 10276 | echo "configure:10277: checking for working const" >&5 |
a0b9e27f MB |
10277 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
10278 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10279 | else |
a0b9e27f | 10280 | cat > conftest.$ac_ext <<EOF |
5005acfe | 10281 | #line 10282 "configure" |
a0b9e27f MB |
10282 | #include "confdefs.h" |
10283 | ||
10284 | int main() { | |
10285 | ||
10286 | /* Ultrix mips cc rejects this. */ | |
10287 | typedef int charset[2]; const charset x; | |
10288 | /* SunOS 4.1.1 cc rejects this. */ | |
10289 | char const *const *ccp; | |
10290 | char **p; | |
10291 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
10292 | struct point {int x, y;}; | |
10293 | static struct point const zero = {0,0}; | |
10294 | /* AIX XL C 1.02.0.0 rejects this. | |
10295 | It does not let you subtract one const X* pointer from another in an arm | |
10296 | of an if-expression whose if-part is not a constant expression */ | |
10297 | const char *g = "string"; | |
10298 | ccp = &g + (g ? g-g : 0); | |
10299 | /* HPUX 7.0 cc rejects these. */ | |
10300 | ++ccp; | |
10301 | p = (char**) ccp; | |
10302 | ccp = (char const *const *) p; | |
10303 | { /* SCO 3.2v4 cc rejects this. */ | |
10304 | char *t; | |
10305 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
10306 | ||
10307 | *t++ = 0; | |
10308 | } | |
10309 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
10310 | int x[] = {25, 17}; | |
10311 | const int *foo = &x[0]; | |
10312 | ++foo; | |
10313 | } | |
10314 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
10315 | typedef const int *iptr; | |
10316 | iptr p = 0; | |
10317 | ++p; | |
10318 | } | |
10319 | { /* AIX XL C 1.02.0.0 rejects this saying | |
10320 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
10321 | struct s { int j; const int *ap[3]; }; | |
10322 | struct s *b; b->j = 5; | |
10323 | } | |
10324 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
10325 | const int foo = 10; | |
10326 | } | |
10327 | ||
10328 | ; return 0; } | |
10329 | EOF | |
5005acfe | 10330 | if { (eval echo configure:10331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
10331 | rm -rf conftest* |
10332 | ac_cv_c_const=yes | |
247f5006 | 10333 | else |
a0b9e27f | 10334 | echo "configure: failed program was:" >&5 |
247f5006 | 10335 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10336 | rm -rf conftest* |
10337 | ac_cv_c_const=no | |
247f5006 | 10338 | fi |
a0b9e27f | 10339 | rm -f conftest* |
21d1c967 | 10340 | fi |
247f5006 | 10341 | |
a0b9e27f MB |
10342 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
10343 | if test $ac_cv_c_const = no; then | |
10344 | cat >> confdefs.h <<\EOF | |
10345 | #define const | |
10346 | EOF | |
10f2d63a | 10347 | |
90dd450c | 10348 | fi |
81809c07 | 10349 | |
a0b9e27f | 10350 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
5005acfe | 10351 | echo "configure:10352: checking for inline" >&5 |
a0b9e27f MB |
10352 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
10353 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8168de4c | 10354 | else |
a0b9e27f MB |
10355 | ac_cv_c_inline=no |
10356 | for ac_kw in inline __inline__ __inline; do | |
10357 | cat > conftest.$ac_ext <<EOF | |
5005acfe | 10358 | #line 10359 "configure" |
a0b9e27f MB |
10359 | #include "confdefs.h" |
10360 | ||
10361 | int main() { | |
10362 | } $ac_kw foo() { | |
10363 | ; return 0; } | |
10364 | EOF | |
5005acfe | 10365 | if { (eval echo configure:10366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
10366 | rm -rf conftest* |
10367 | ac_cv_c_inline=$ac_kw; break | |
247f5006 | 10368 | else |
a0b9e27f | 10369 | echo "configure: failed program was:" >&5 |
247f5006 | 10370 | cat conftest.$ac_ext >&5 |
247f5006 | 10371 | fi |
a0b9e27f MB |
10372 | rm -f conftest* |
10373 | done | |
247f5006 VZ |
10374 | |
10375 | fi | |
10376 | ||
a0b9e27f MB |
10377 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
10378 | case "$ac_cv_c_inline" in | |
10379 | inline | yes) ;; | |
10380 | no) cat >> confdefs.h <<\EOF | |
10381 | #define inline | |
10382 | EOF | |
10383 | ;; | |
10384 | *) cat >> confdefs.h <<EOF | |
10385 | #define inline $ac_cv_c_inline | |
10386 | EOF | |
10387 | ;; | |
10388 | esac | |
247f5006 | 10389 | |
247f5006 | 10390 | |
a0b9e27f | 10391 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
5005acfe | 10392 | echo "configure:10393: checking size of char" >&5 |
a0b9e27f MB |
10393 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
10394 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10395 | else | |
10396 | if test "$cross_compiling" = yes; then | |
10397 | ac_cv_sizeof_char=1 | |
10398 | else | |
10399 | cat > conftest.$ac_ext <<EOF | |
5005acfe | 10400 | #line 10401 "configure" |
4f14bcd8 | 10401 | #include "confdefs.h" |
a0b9e27f | 10402 | #include <stdio.h> |
a0b9e27f | 10403 | main() |
247f5006 | 10404 | { |
a0b9e27f MB |
10405 | FILE *f=fopen("conftestval", "w"); |
10406 | if (!f) exit(1); | |
10407 | fprintf(f, "%d\n", sizeof(char)); | |
10408 | exit(0); | |
52127426 | 10409 | } |
a0b9e27f | 10410 | EOF |
db82f09e | 10411 | if { (eval echo configure:10412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10412 | then |
10413 | ac_cv_sizeof_char=`cat conftestval` | |
247f5006 | 10414 | else |
a0b9e27f | 10415 | echo "configure: failed program was:" >&5 |
247f5006 | 10416 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10417 | rm -fr conftest* |
10418 | ac_cv_sizeof_char=0 | |
247f5006 | 10419 | fi |
a0b9e27f | 10420 | rm -fr conftest* |
247f5006 | 10421 | fi |
247f5006 VZ |
10422 | |
10423 | fi | |
a0b9e27f MB |
10424 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
10425 | cat >> confdefs.h <<EOF | |
10426 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
10427 | EOF | |
247f5006 | 10428 | |
247f5006 | 10429 | |
a0b9e27f | 10430 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
db82f09e | 10431 | echo "configure:10432: checking size of short" >&5 |
a0b9e27f MB |
10432 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
10433 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10434 | else |
a0b9e27f MB |
10435 | if test "$cross_compiling" = yes; then |
10436 | ac_cv_sizeof_short=2 | |
247f5006 | 10437 | else |
a0b9e27f | 10438 | cat > conftest.$ac_ext <<EOF |
db82f09e | 10439 | #line 10440 "configure" |
a0b9e27f MB |
10440 | #include "confdefs.h" |
10441 | #include <stdio.h> | |
a0b9e27f MB |
10442 | main() |
10443 | { | |
10444 | FILE *f=fopen("conftestval", "w"); | |
10445 | if (!f) exit(1); | |
10446 | fprintf(f, "%d\n", sizeof(short)); | |
10447 | exit(0); | |
10448 | } | |
10449 | EOF | |
db82f09e | 10450 | if { (eval echo configure:10451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10451 | then |
10452 | ac_cv_sizeof_short=`cat conftestval` | |
247f5006 | 10453 | else |
a0b9e27f MB |
10454 | echo "configure: failed program was:" >&5 |
10455 | cat conftest.$ac_ext >&5 | |
10456 | rm -fr conftest* | |
10457 | ac_cv_sizeof_short=0 | |
247f5006 | 10458 | fi |
a0b9e27f | 10459 | rm -fr conftest* |
247f5006 VZ |
10460 | fi |
10461 | ||
247f5006 | 10462 | fi |
a0b9e27f MB |
10463 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
10464 | cat >> confdefs.h <<EOF | |
10465 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
10466 | EOF | |
247f5006 VZ |
10467 | |
10468 | ||
a0b9e27f | 10469 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 |
db82f09e | 10470 | echo "configure:10471: checking size of void *" >&5 |
a0b9e27f MB |
10471 | if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then |
10472 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10473 | else | |
10474 | if test "$cross_compiling" = yes; then | |
10475 | ac_cv_sizeof_void_p=4 | |
247f5006 | 10476 | else |
a0b9e27f | 10477 | cat > conftest.$ac_ext <<EOF |
db82f09e | 10478 | #line 10479 "configure" |
247f5006 | 10479 | #include "confdefs.h" |
247f5006 | 10480 | #include <stdio.h> |
a0b9e27f | 10481 | main() |
247f5006 | 10482 | { |
a0b9e27f MB |
10483 | FILE *f=fopen("conftestval", "w"); |
10484 | if (!f) exit(1); | |
10485 | fprintf(f, "%d\n", sizeof(void *)); | |
10486 | exit(0); | |
5c6fa7d2 | 10487 | } |
a0b9e27f | 10488 | EOF |
db82f09e | 10489 | if { (eval echo configure:10490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10490 | then |
10491 | ac_cv_sizeof_void_p=`cat conftestval` | |
10492 | else | |
10493 | echo "configure: failed program was:" >&5 | |
10494 | cat conftest.$ac_ext >&5 | |
10495 | rm -fr conftest* | |
10496 | ac_cv_sizeof_void_p=0 | |
10497 | fi | |
10498 | rm -fr conftest* | |
10499 | fi | |
8284b0c5 | 10500 | |
247f5006 | 10501 | fi |
a0b9e27f MB |
10502 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 |
10503 | cat >> confdefs.h <<EOF | |
10504 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
10505 | EOF | |
247f5006 | 10506 | |
247f5006 | 10507 | |
a0b9e27f | 10508 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
db82f09e | 10509 | echo "configure:10510: checking size of int" >&5 |
a0b9e27f MB |
10510 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
10511 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10512 | else |
a0b9e27f MB |
10513 | if test "$cross_compiling" = yes; then |
10514 | ac_cv_sizeof_int=4 | |
10515 | else | |
10516 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 10517 | #line 10518 "configure" |
247f5006 | 10518 | #include "confdefs.h" |
a0b9e27f | 10519 | #include <stdio.h> |
a0b9e27f | 10520 | main() |
247f5006 | 10521 | { |
a0b9e27f MB |
10522 | FILE *f=fopen("conftestval", "w"); |
10523 | if (!f) exit(1); | |
10524 | fprintf(f, "%d\n", sizeof(int)); | |
10525 | exit(0); | |
247f5006 | 10526 | } |
a0b9e27f | 10527 | EOF |
db82f09e | 10528 | if { (eval echo configure:10529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10529 | then |
10530 | ac_cv_sizeof_int=`cat conftestval` | |
6f72b082 | 10531 | else |
a0b9e27f MB |
10532 | echo "configure: failed program was:" >&5 |
10533 | cat conftest.$ac_ext >&5 | |
10534 | rm -fr conftest* | |
10535 | ac_cv_sizeof_int=0 | |
21d1c967 | 10536 | fi |
a0b9e27f | 10537 | rm -fr conftest* |
698dcdb6 | 10538 | fi |
4f14bcd8 | 10539 | |
21d1c967 | 10540 | fi |
a0b9e27f MB |
10541 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
10542 | cat >> confdefs.h <<EOF | |
10543 | #define SIZEOF_INT $ac_cv_sizeof_int | |
10544 | EOF | |
4f14bcd8 | 10545 | |
5c6fa7d2 | 10546 | |
a0b9e27f | 10547 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
db82f09e | 10548 | echo "configure:10549: checking size of long" >&5 |
a0b9e27f MB |
10549 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
10550 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10551 | else |
247f5006 | 10552 | if test "$cross_compiling" = yes; then |
a0b9e27f | 10553 | ac_cv_sizeof_long=4 |
247f5006 | 10554 | else |
a0b9e27f | 10555 | cat > conftest.$ac_ext <<EOF |
db82f09e | 10556 | #line 10557 "configure" |
247f5006 | 10557 | #include "confdefs.h" |
a0b9e27f | 10558 | #include <stdio.h> |
a0b9e27f | 10559 | main() |
247f5006 | 10560 | { |
a0b9e27f MB |
10561 | FILE *f=fopen("conftestval", "w"); |
10562 | if (!f) exit(1); | |
10563 | fprintf(f, "%d\n", sizeof(long)); | |
10564 | exit(0); | |
247f5006 | 10565 | } |
a0b9e27f | 10566 | EOF |
db82f09e | 10567 | if { (eval echo configure:10568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10568 | then |
10569 | ac_cv_sizeof_long=`cat conftestval` | |
247f5006 | 10570 | else |
a0b9e27f MB |
10571 | echo "configure: failed program was:" >&5 |
10572 | cat conftest.$ac_ext >&5 | |
10573 | rm -fr conftest* | |
10574 | ac_cv_sizeof_long=0 | |
247f5006 | 10575 | fi |
a0b9e27f | 10576 | rm -fr conftest* |
247f5006 | 10577 | fi |
247f5006 | 10578 | |
5c6fa7d2 | 10579 | fi |
a0b9e27f MB |
10580 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
10581 | cat >> confdefs.h <<EOF | |
10582 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
10583 | EOF | |
247f5006 | 10584 | |
a0b9e27f MB |
10585 | |
10586 | ||
10587 | case "${host}" in | |
10588 | arm-*-linux* ) | |
10589 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
db82f09e | 10590 | echo "configure:10591: checking size of long long" >&5 |
a0b9e27f MB |
10591 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10592 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10593 | else | |
10594 | if test "$cross_compiling" = yes; then | |
10595 | ac_cv_sizeof_long_long=8 | |
10596 | else | |
10597 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 10598 | #line 10599 "configure" |
247f5006 | 10599 | #include "confdefs.h" |
a0b9e27f | 10600 | #include <stdio.h> |
a0b9e27f | 10601 | main() |
247f5006 | 10602 | { |
a0b9e27f MB |
10603 | FILE *f=fopen("conftestval", "w"); |
10604 | if (!f) exit(1); | |
10605 | fprintf(f, "%d\n", sizeof(long long)); | |
10606 | exit(0); | |
247f5006 | 10607 | } |
a0b9e27f | 10608 | EOF |
db82f09e | 10609 | if { (eval echo configure:10610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10610 | then |
10611 | ac_cv_sizeof_long_long=`cat conftestval` | |
7b4a847f | 10612 | else |
a0b9e27f MB |
10613 | echo "configure: failed program was:" >&5 |
10614 | cat conftest.$ac_ext >&5 | |
10615 | rm -fr conftest* | |
10616 | ac_cv_sizeof_long_long=0 | |
5c6fa7d2 | 10617 | fi |
a0b9e27f | 10618 | rm -fr conftest* |
5c6fa7d2 | 10619 | fi |
8284b0c5 | 10620 | |
a0b9e27f MB |
10621 | fi |
10622 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
10623 | cat >> confdefs.h <<EOF | |
10624 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10625 | EOF | |
10626 | ||
10627 | ||
10628 | ;; | |
4f57cf11 | 10629 | *-hp-hpux* ) |
a0b9e27f | 10630 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
db82f09e | 10631 | echo "configure:10632: checking size of long long" >&5 |
a0b9e27f MB |
10632 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10633 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 MB |
10634 | else |
10635 | if test "$cross_compiling" = yes; then | |
a0b9e27f | 10636 | ac_cv_sizeof_long_long=0 |
8284b0c5 | 10637 | else |
a0b9e27f | 10638 | cat > conftest.$ac_ext <<EOF |
db82f09e | 10639 | #line 10640 "configure" |
8284b0c5 MB |
10640 | #include "confdefs.h" |
10641 | #include <stdio.h> | |
a0b9e27f | 10642 | main() |
8284b0c5 | 10643 | { |
a0b9e27f MB |
10644 | FILE *f=fopen("conftestval", "w"); |
10645 | if (!f) exit(1); | |
10646 | fprintf(f, "%d\n", sizeof(long long)); | |
10647 | exit(0); | |
8284b0c5 | 10648 | } |
a0b9e27f | 10649 | EOF |
db82f09e | 10650 | if { (eval echo configure:10651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10651 | then |
10652 | ac_cv_sizeof_long_long=`cat conftestval` | |
5c6fa7d2 | 10653 | else |
a0b9e27f MB |
10654 | echo "configure: failed program was:" >&5 |
10655 | cat conftest.$ac_ext >&5 | |
10656 | rm -fr conftest* | |
5c6fa7d2 | 10657 | ac_cv_sizeof_long_long=0 |
52127426 | 10658 | fi |
a0b9e27f MB |
10659 | rm -fr conftest* |
10660 | fi | |
10661 | ||
4f57cf11 GD |
10662 | fi |
10663 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
10664 | cat >> confdefs.h <<EOF | |
10665 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10666 | EOF | |
10667 | ||
10668 | ||
10669 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
10670 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
10671 | fi | |
10672 | ;; | |
10673 | * ) | |
10674 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
db82f09e | 10675 | echo "configure:10676: checking size of long long" >&5 |
4f57cf11 GD |
10676 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10677 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10678 | else | |
10679 | if test "$cross_compiling" = yes; then | |
10680 | ac_cv_sizeof_long_long=0 | |
10681 | else | |
10682 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 10683 | #line 10684 "configure" |
4f57cf11 GD |
10684 | #include "confdefs.h" |
10685 | #include <stdio.h> | |
10686 | main() | |
10687 | { | |
10688 | FILE *f=fopen("conftestval", "w"); | |
10689 | if (!f) exit(1); | |
10690 | fprintf(f, "%d\n", sizeof(long long)); | |
10691 | exit(0); | |
10692 | } | |
10693 | EOF | |
db82f09e | 10694 | if { (eval echo configure:10695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f57cf11 GD |
10695 | then |
10696 | ac_cv_sizeof_long_long=`cat conftestval` | |
10697 | else | |
10698 | echo "configure: failed program was:" >&5 | |
10699 | cat conftest.$ac_ext >&5 | |
10700 | rm -fr conftest* | |
10701 | ac_cv_sizeof_long_long=0 | |
10702 | fi | |
10703 | rm -fr conftest* | |
10704 | fi | |
10705 | ||
7b4a847f | 10706 | fi |
a0b9e27f MB |
10707 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
10708 | cat >> confdefs.h <<EOF | |
21d1c967 | 10709 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
a0b9e27f | 10710 | EOF |
9e691f46 | 10711 | |
8284b0c5 | 10712 | |
21d1c967 GD |
10713 | esac |
10714 | ||
a0b9e27f | 10715 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 |
db82f09e | 10716 | echo "configure:10717: checking size of wchar_t" >&5 |
a0b9e27f MB |
10717 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then |
10718 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 10719 | else |
a0b9e27f | 10720 | |
21d1c967 GD |
10721 | if test "$cross_compiling" = yes; then |
10722 | wx_cv_sizeof_wchar_t=4 | |
a0b9e27f | 10723 | |
6f72b082 | 10724 | else |
a0b9e27f | 10725 | cat > conftest.$ac_ext <<EOF |
db82f09e | 10726 | #line 10727 "configure" |
6f72b082 | 10727 | #include "confdefs.h" |
21d1c967 GD |
10728 | |
10729 | #ifdef HAVE_WCHAR_H | |
10730 | # ifdef __CYGWIN__ | |
10731 | # include <stddef.h> | |
10732 | # endif | |
10733 | # include <wchar.h> | |
10734 | #endif | |
10735 | #ifdef HAVE_STDLIB_H | |
10736 | # include <stdlib.h> | |
10737 | #endif | |
10738 | #include <stdio.h> | |
10739 | int main() | |
10740 | { | |
10741 | FILE *f=fopen("conftestval", "w"); | |
10742 | if (!f) exit(1); | |
10743 | fprintf(f, "%i", sizeof(wchar_t)); | |
10744 | exit(0); | |
10745 | } | |
a0b9e27f MB |
10746 | |
10747 | EOF | |
db82f09e | 10748 | if { (eval echo configure:10749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 10749 | then |
21d1c967 | 10750 | wx_cv_sizeof_wchar_t=`cat conftestval` |
6f72b082 | 10751 | else |
a0b9e27f MB |
10752 | echo "configure: failed program was:" >&5 |
10753 | cat conftest.$ac_ext >&5 | |
10754 | rm -fr conftest* | |
10755 | wx_cv_sizeof_wchar_t=0 | |
6f72b082 | 10756 | fi |
a0b9e27f | 10757 | rm -fr conftest* |
6f72b082 | 10758 | fi |
6f72b082 | 10759 | |
a0b9e27f | 10760 | |
3f345b47 VZ |
10761 | fi |
10762 | ||
a0b9e27f MB |
10763 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 |
10764 | ||
10765 | cat >> confdefs.h <<EOF | |
21d1c967 | 10766 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t |
a0b9e27f | 10767 | EOF |
90dd450c | 10768 | |
8284b0c5 | 10769 | |
21d1c967 GD |
10770 | # Check whether --enable-largefile or --disable-largefile was given. |
10771 | if test "${enable_largefile+set}" = set; then | |
10772 | enableval="$enable_largefile" | |
a0b9e27f MB |
10773 | : |
10774 | fi | |
3f345b47 | 10775 | |
21d1c967 GD |
10776 | if test "$enable_largefile" != no; then |
10777 | wx_largefile=no | |
a0b9e27f MB |
10778 | |
10779 | echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 | |
db82f09e | 10780 | echo "configure:10781: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
a0b9e27f MB |
10781 | if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then |
10782 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10783 | else | |
10784 | ||
10785 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 10786 | #line 10787 "configure" |
90dd450c | 10787 | #include "confdefs.h" |
21d1c967 GD |
10788 | #define _FILE_OFFSET_BITS 64 |
10789 | #include <sys/types.h> | |
a0b9e27f | 10790 | int main() { |
21d1c967 GD |
10791 | typedef struct { |
10792 | unsigned int field: sizeof(off_t) == 8; | |
10793 | } wxlf; | |
10794 | ||
a0b9e27f MB |
10795 | ; return 0; } |
10796 | EOF | |
db82f09e | 10797 | if { (eval echo configure:10798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 10798 | rm -rf conftest* |
21d1c967 | 10799 | ac_cv_sys_file_offset_bits=64 |
f6bcfd97 | 10800 | else |
a0b9e27f MB |
10801 | echo "configure: failed program was:" >&5 |
10802 | cat conftest.$ac_ext >&5 | |
10803 | rm -rf conftest* | |
10804 | ac_cv_sys_file_offset_bits=no | |
5c6fa7d2 | 10805 | fi |
a0b9e27f MB |
10806 | rm -f conftest* |
10807 | ||
10808 | ||
247f5006 | 10809 | fi |
a0b9e27f MB |
10810 | |
10811 | echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6 | |
21d1c967 GD |
10812 | |
10813 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
10814 | wx_largefile=yes | |
a0b9e27f | 10815 | cat >> confdefs.h <<EOF |
21d1c967 | 10816 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
a0b9e27f | 10817 | EOF |
21d1c967 GD |
10818 | |
10819 | fi | |
10820 | ||
10821 | if test "x$wx_largefile" != "xyes"; then | |
a0b9e27f MB |
10822 | |
10823 | echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6 | |
db82f09e | 10824 | echo "configure:10825: checking for _LARGE_FILES value needed for large files" >&5 |
a0b9e27f MB |
10825 | if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then |
10826 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10827 | else | |
10828 | ||
10829 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 10830 | #line 10831 "configure" |
f6bcfd97 | 10831 | #include "confdefs.h" |
21d1c967 GD |
10832 | #define _LARGE_FILES 1 |
10833 | #include <sys/types.h> | |
a0b9e27f | 10834 | int main() { |
21d1c967 GD |
10835 | typedef struct { |
10836 | unsigned int field: sizeof(off_t) == 8; | |
10837 | } wxlf; | |
10838 | ||
a0b9e27f MB |
10839 | ; return 0; } |
10840 | EOF | |
db82f09e | 10841 | if { (eval echo configure:10842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 10842 | rm -rf conftest* |
21d1c967 | 10843 | ac_cv_sys_large_files=1 |
f6bcfd97 | 10844 | else |
a0b9e27f MB |
10845 | echo "configure: failed program was:" >&5 |
10846 | cat conftest.$ac_ext >&5 | |
10847 | rm -rf conftest* | |
10848 | ac_cv_sys_large_files=no | |
5c6fa7d2 | 10849 | fi |
a0b9e27f MB |
10850 | rm -f conftest* |
10851 | ||
10852 | ||
247f5006 | 10853 | fi |
a0b9e27f MB |
10854 | |
10855 | echo "$ac_t""$ac_cv_sys_large_files" 1>&6 | |
3f345b47 | 10856 | |
21d1c967 GD |
10857 | if test "$ac_cv_sys_large_files" != no; then |
10858 | wx_largefile=yes | |
a0b9e27f | 10859 | cat >> confdefs.h <<EOF |
21d1c967 | 10860 | #define _LARGE_FILES $ac_cv_sys_large_files |
a0b9e27f | 10861 | EOF |
90dd450c | 10862 | |
90dd450c VZ |
10863 | fi |
10864 | ||
90dd450c | 10865 | fi |
90dd450c | 10866 | |
a0b9e27f | 10867 | echo $ac_n "checking if large file support is available""... $ac_c" 1>&6 |
db82f09e | 10868 | echo "configure:10869: checking if large file support is available" >&5 |
21d1c967 | 10869 | if test "x$wx_largefile" = "xyes"; then |
a0b9e27f | 10870 | cat >> confdefs.h <<\EOF |
21d1c967 | 10871 | #define HAVE_LARGEFILE_SUPPORT 1 |
a0b9e27f | 10872 | EOF |
90dd450c | 10873 | |
90dd450c | 10874 | fi |
a0b9e27f | 10875 | echo "$ac_t""$wx_largefile" 1>&6 |
21d1c967 | 10876 | fi |
90dd450c | 10877 | |
8284b0c5 | 10878 | |
f02444d0 | 10879 | if test "x$wx_largefile" = "xyes"; then |
e26c13cf RD |
10880 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then |
10881 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
f02444d0 | 10882 | else |
e26c13cf | 10883 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" |
f02444d0 | 10884 | fi |
e26c13cf | 10885 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" |
f02444d0 VZ |
10886 | fi |
10887 | ||
a0b9e27f | 10888 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
db82f09e | 10889 | echo "configure:10890: checking whether byte ordering is bigendian" >&5 |
a0b9e27f MB |
10890 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
10891 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 10892 | else |
21d1c967 GD |
10893 | ac_cv_c_bigendian=unknown |
10894 | # See if sys/param.h defines the BYTE_ORDER macro. | |
a0b9e27f | 10895 | cat > conftest.$ac_ext <<EOF |
db82f09e | 10896 | #line 10897 "configure" |
90dd450c | 10897 | #include "confdefs.h" |
21d1c967 GD |
10898 | #include <sys/types.h> |
10899 | #include <sys/param.h> | |
a0b9e27f | 10900 | int main() { |
21d1c967 GD |
10901 | |
10902 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
10903 | bogus endian macros | |
10904 | #endif | |
a0b9e27f MB |
10905 | ; return 0; } |
10906 | EOF | |
db82f09e | 10907 | if { (eval echo configure:10908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 10908 | rm -rf conftest* |
21d1c967 | 10909 | # It does; now see whether it defined to BIG_ENDIAN or not. |
a0b9e27f | 10910 | cat > conftest.$ac_ext <<EOF |
db82f09e | 10911 | #line 10912 "configure" |
90dd450c | 10912 | #include "confdefs.h" |
21d1c967 GD |
10913 | #include <sys/types.h> |
10914 | #include <sys/param.h> | |
a0b9e27f | 10915 | int main() { |
21d1c967 GD |
10916 | |
10917 | #if BYTE_ORDER != BIG_ENDIAN | |
10918 | not big endian | |
10919 | #endif | |
a0b9e27f MB |
10920 | ; return 0; } |
10921 | EOF | |
db82f09e | 10922 | if { (eval echo configure:10923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 10923 | rm -rf conftest* |
21d1c967 | 10924 | ac_cv_c_bigendian=yes |
3f345b47 | 10925 | else |
a0b9e27f MB |
10926 | echo "configure: failed program was:" >&5 |
10927 | cat conftest.$ac_ext >&5 | |
10928 | rm -rf conftest* | |
10929 | ac_cv_c_bigendian=no | |
3f345b47 | 10930 | fi |
a0b9e27f | 10931 | rm -f conftest* |
3f345b47 | 10932 | else |
a0b9e27f MB |
10933 | echo "configure: failed program was:" >&5 |
10934 | cat conftest.$ac_ext >&5 | |
3f345b47 | 10935 | fi |
a0b9e27f | 10936 | rm -f conftest* |
21d1c967 GD |
10937 | if test $ac_cv_c_bigendian = unknown; then |
10938 | if test "$cross_compiling" = yes; then | |
10939 | ac_cv_c_bigendian=unknown | |
10f2d63a | 10940 | else |
a0b9e27f | 10941 | cat > conftest.$ac_ext <<EOF |
db82f09e | 10942 | #line 10943 "configure" |
90dd450c | 10943 | #include "confdefs.h" |
21d1c967 GD |
10944 | main () { |
10945 | /* Are we little or big endian? From Harbison&Steele. */ | |
10946 | union | |
10947 | { | |
10948 | long l; | |
10949 | char c[sizeof (long)]; | |
10950 | } u; | |
10951 | u.l = 1; | |
10952 | exit (u.c[sizeof (long) - 1] == 1); | |
10953 | } | |
a0b9e27f | 10954 | EOF |
db82f09e | 10955 | if { (eval echo configure:10956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 10956 | then |
21d1c967 | 10957 | ac_cv_c_bigendian=no |
3f345b47 | 10958 | else |
a0b9e27f MB |
10959 | echo "configure: failed program was:" >&5 |
10960 | cat conftest.$ac_ext >&5 | |
10961 | rm -fr conftest* | |
10962 | ac_cv_c_bigendian=yes | |
247f5006 | 10963 | fi |
a0b9e27f | 10964 | rm -fr conftest* |
247f5006 | 10965 | fi |
a0b9e27f | 10966 | |
3f345b47 | 10967 | fi |
8168de4c | 10968 | fi |
a0b9e27f MB |
10969 | |
10970 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
247f5006 | 10971 | if test $ac_cv_c_bigendian = unknown; then |
a0b9e27f | 10972 | 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 |
10973 | fi |
10974 | if test $ac_cv_c_bigendian = yes; then | |
a0b9e27f | 10975 | cat >> confdefs.h <<\EOF |
247f5006 | 10976 | #define WORDS_BIGENDIAN 1 |
a0b9e27f | 10977 | EOF |
247f5006 VZ |
10978 | |
10979 | fi | |
10980 | ||
10981 | ||
a0b9e27f | 10982 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
db82f09e | 10983 | echo "configure:10984: checking how to run the C++ preprocessor" >&5 |
247f5006 | 10984 | if test -z "$CXXCPP"; then |
a0b9e27f MB |
10985 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then |
10986 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10987 | else |
a0b9e27f MB |
10988 | ac_ext=C |
10989 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10990 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10991 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10992 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10993 | cross_compiling=$ac_cv_prog_cxx_cross | |
10994 | CXXCPP="${CXX-g++} -E" | |
10995 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 10996 | #line 10997 "configure" |
5c6fa7d2 | 10997 | #include "confdefs.h" |
a0b9e27f MB |
10998 | #include <stdlib.h> |
10999 | EOF | |
11000 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
db82f09e | 11001 | { (eval echo configure:11002: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11002 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11003 | if test -z "$ac_err"; then | |
21d1c967 | 11004 | : |
698dcdb6 | 11005 | else |
a0b9e27f MB |
11006 | echo "$ac_err" >&5 |
11007 | echo "configure: failed program was:" >&5 | |
698dcdb6 | 11008 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11009 | rm -rf conftest* |
11010 | CXXCPP=/lib/cpp | |
247f5006 | 11011 | fi |
a0b9e27f MB |
11012 | rm -f conftest* |
11013 | ac_cv_prog_CXXCPP="$CXXCPP" | |
11014 | ac_ext=C | |
11015 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11016 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11017 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11018 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11019 | cross_compiling=$ac_cv_prog_cxx_cross | |
328a083c | 11020 | fi |
90dd450c | 11021 | fi |
a0b9e27f MB |
11022 | CXXCPP="$ac_cv_prog_CXXCPP" |
11023 | echo "$ac_t""$CXXCPP" 1>&6 | |
1e6feb95 | 11024 | |
1725144d | 11025 | |
21d1c967 | 11026 | if test "$cross_compiling" = "yes"; then |
a0b9e27f | 11027 | cat >> confdefs.h <<\EOF |
21d1c967 | 11028 | #define wxUSE_IOSTREAMH 1 |
a0b9e27f | 11029 | EOF |
ab9b9eab | 11030 | |
21d1c967 | 11031 | else |
a0b9e27f MB |
11032 | |
11033 | ac_ext=C | |
11034 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 11035 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
11036 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11037 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11038 | cross_compiling=$ac_cv_prog_cxx_cross | |
52127426 | 11039 | |
247f5006 | 11040 | |
a0b9e27f | 11041 | for ac_hdr in iostream |
21d1c967 | 11042 | do |
a0b9e27f MB |
11043 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11044 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
db82f09e | 11045 | echo "configure:11046: checking for $ac_hdr" >&5 |
a0b9e27f MB |
11046 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11047 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11048 | else | |
11049 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 11050 | #line 11051 "configure" |
ab9b9eab | 11051 | #include "confdefs.h" |
a0b9e27f MB |
11052 | #include <$ac_hdr> |
11053 | EOF | |
11054 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
db82f09e | 11055 | { (eval echo configure:11056: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11056 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11057 | if test -z "$ac_err"; then | |
11058 | rm -rf conftest* | |
11059 | eval "ac_cv_header_$ac_safe=yes" | |
11060 | else | |
11061 | echo "$ac_err" >&5 | |
11062 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 11063 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11064 | rm -rf conftest* |
11065 | eval "ac_cv_header_$ac_safe=no" | |
ab9b9eab | 11066 | fi |
a0b9e27f | 11067 | rm -f conftest* |
90dd450c | 11068 | fi |
a0b9e27f MB |
11069 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11070 | echo "$ac_t""yes" 1>&6 | |
11071 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11072 | cat >> confdefs.h <<EOF | |
11073 | #define $ac_tr_hdr 1 | |
11074 | EOF | |
11075 | ||
11076 | else | |
11077 | echo "$ac_t""no" 1>&6 | |
90dd450c | 11078 | fi |
21d1c967 | 11079 | done |
10f2d63a | 11080 | |
8284b0c5 | 11081 | |
21d1c967 GD |
11082 | if test "$ac_cv_header_iostream" = "yes" ; then |
11083 | : | |
11084 | else | |
a0b9e27f | 11085 | cat >> confdefs.h <<\EOF |
21d1c967 | 11086 | #define wxUSE_IOSTREAMH 1 |
a0b9e27f | 11087 | EOF |
788deba1 | 11088 | |
90dd450c | 11089 | fi |
ab9b9eab | 11090 | |
21d1c967 | 11091 | ac_ext=c |
a0b9e27f | 11092 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
21d1c967 | 11093 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
11094 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11095 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11096 | cross_compiling=$ac_cv_prog_cc_cross | |
ab9b9eab | 11097 | |
21d1c967 | 11098 | fi |
ab9b9eab | 11099 | |
52127426 | 11100 | |
8284b0c5 | 11101 | |
a0b9e27f | 11102 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 |
db82f09e | 11103 | echo "configure:11104: checking if C++ compiler supports bool" >&5 |
a0b9e27f MB |
11104 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
11105 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 11106 | else |
a0b9e27f MB |
11107 | |
11108 | ||
11109 | ac_ext=C | |
11110 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 11111 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
11112 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11113 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11114 | cross_compiling=$ac_cv_prog_cxx_cross | |
21d1c967 | 11115 | |
8284b0c5 | 11116 | |
a0b9e27f | 11117 | cat > conftest.$ac_ext <<EOF |
db82f09e | 11118 | #line 11119 "configure" |
ab9b9eab | 11119 | #include "confdefs.h" |
21d1c967 | 11120 | |
a0b9e27f MB |
11121 | |
11122 | int main() { | |
21d1c967 GD |
11123 | |
11124 | bool b = true; | |
11125 | ||
11126 | return 0; | |
a0b9e27f MB |
11127 | |
11128 | ; return 0; } | |
11129 | EOF | |
db82f09e | 11130 | if { (eval echo configure:11131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
11131 | rm -rf conftest* |
11132 | ||
21d1c967 | 11133 | wx_cv_cpp_bool=yes |
a0b9e27f | 11134 | |
698dcdb6 | 11135 | else |
a0b9e27f MB |
11136 | echo "configure: failed program was:" >&5 |
11137 | cat conftest.$ac_ext >&5 | |
11138 | rm -rf conftest* | |
11139 | ||
21d1c967 | 11140 | wx_cv_cpp_bool=no |
a0b9e27f MB |
11141 | |
11142 | ||
698dcdb6 | 11143 | fi |
a0b9e27f | 11144 | rm -f conftest* |
21d1c967 GD |
11145 | |
11146 | ac_ext=c | |
a0b9e27f | 11147 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
21d1c967 | 11148 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
11149 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11150 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11151 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 11152 | |
a0b9e27f | 11153 | |
247f5006 | 11154 | fi |
a0b9e27f MB |
11155 | |
11156 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
21d1c967 GD |
11157 | |
11158 | if test "$wx_cv_cpp_bool" = "yes"; then | |
a0b9e27f | 11159 | cat >> confdefs.h <<\EOF |
21d1c967 | 11160 | #define HAVE_BOOL 1 |
a0b9e27f | 11161 | EOF |
ab9b9eab | 11162 | |
21d1c967 GD |
11163 | fi |
11164 | ||
52127426 | 11165 | |
8284b0c5 | 11166 | |
a0b9e27f | 11167 | echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6 |
db82f09e | 11168 | echo "configure:11169: checking if C++ compiler supports the explicit keyword" >&5 |
a0b9e27f MB |
11169 | if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then |
11170 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 11171 | else |
a0b9e27f MB |
11172 | |
11173 | ||
11174 | ac_ext=C | |
11175 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 11176 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
11177 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11178 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11179 | cross_compiling=$ac_cv_prog_cxx_cross | |
986ecc86 | 11180 | |
8284b0c5 | 11181 | |
a0b9e27f | 11182 | cat > conftest.$ac_ext <<EOF |
db82f09e | 11183 | #line 11184 "configure" |
986ecc86 VZ |
11184 | #include "confdefs.h" |
11185 | ||
11186 | class Foo { public: explicit Foo(int) {} }; | |
a0b9e27f MB |
11187 | |
11188 | int main() { | |
986ecc86 VZ |
11189 | |
11190 | return 0; | |
a0b9e27f MB |
11191 | |
11192 | ; return 0; } | |
11193 | EOF | |
db82f09e | 11194 | if { (eval echo configure:11195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
11195 | rm -rf conftest* |
11196 | ||
11197 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 11198 | #line 11199 "configure" |
986ecc86 VZ |
11199 | #include "confdefs.h" |
11200 | ||
11201 | class Foo { public: explicit Foo(int) {} }; | |
11202 | static void TakeFoo(const Foo& foo) { } | |
a0b9e27f MB |
11203 | |
11204 | int main() { | |
986ecc86 VZ |
11205 | |
11206 | TakeFoo(17); | |
11207 | return 0; | |
a0b9e27f MB |
11208 | |
11209 | ; return 0; } | |
11210 | EOF | |
db82f09e | 11211 | if { (eval echo configure:11212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 11212 | rm -rf conftest* |
986ecc86 VZ |
11213 | wx_cv_explicit=no |
11214 | else | |
a0b9e27f MB |
11215 | echo "configure: failed program was:" >&5 |
11216 | cat conftest.$ac_ext >&5 | |
11217 | rm -rf conftest* | |
11218 | wx_cv_explicit=yes | |
11219 | ||
986ecc86 | 11220 | fi |
a0b9e27f MB |
11221 | rm -f conftest* |
11222 | ||
986ecc86 | 11223 | else |
a0b9e27f MB |
11224 | echo "configure: failed program was:" >&5 |
11225 | cat conftest.$ac_ext >&5 | |
11226 | rm -rf conftest* | |
11227 | wx_cv_explicit=no | |
11228 | ||
986ecc86 | 11229 | fi |
a0b9e27f | 11230 | rm -f conftest* |
986ecc86 VZ |
11231 | |
11232 | ac_ext=c | |
a0b9e27f | 11233 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
986ecc86 | 11234 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
11235 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11236 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11237 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 11238 | |
a0b9e27f | 11239 | |
247f5006 | 11240 | fi |
a0b9e27f MB |
11241 | |
11242 | echo "$ac_t""$wx_cv_explicit" 1>&6 | |
986ecc86 VZ |
11243 | |
11244 | if test "$wx_cv_explicit" = "yes"; then | |
a0b9e27f | 11245 | cat >> confdefs.h <<\EOF |
986ecc86 | 11246 | #define HAVE_EXPLICIT 1 |
a0b9e27f | 11247 | EOF |
986ecc86 VZ |
11248 | |
11249 | fi | |
11250 | ||
8284b0c5 MB |
11251 | |
11252 | ||
21d1c967 GD |
11253 | SEARCH_INCLUDE="\ |
11254 | /usr/local/include \ | |
11255 | \ | |
11256 | /usr/Motif-1.2/include \ | |
11257 | /usr/Motif-2.1/include \ | |
11258 | \ | |
11259 | /usr/include/Motif1.2 \ | |
11260 | /opt/xpm/include/X11 \ | |
11261 | /opt/GBxpm/include/ \ | |
11262 | /opt/GBxpm/X11/include/ \ | |
11263 | \ | |
11264 | /usr/Motif1.2/include \ | |
11265 | /usr/dt/include \ | |
11266 | /usr/openwin/include \ | |
11267 | \ | |
11268 | /usr/include/Xm \ | |
11269 | \ | |
11270 | /usr/X11R6/include \ | |
11271 | /usr/X11R6.4/include \ | |
11272 | /usr/X11R5/include \ | |
11273 | /usr/X11R4/include \ | |
11274 | \ | |
11275 | /usr/include/X11R6 \ | |
11276 | /usr/include/X11R5 \ | |
11277 | /usr/include/X11R4 \ | |
11278 | \ | |
11279 | /usr/local/X11R6/include \ | |
11280 | /usr/local/X11R5/include \ | |
11281 | /usr/local/X11R4/include \ | |
11282 | \ | |
11283 | /usr/local/include/X11R6 \ | |
11284 | /usr/local/include/X11R5 \ | |
11285 | /usr/local/include/X11R4 \ | |
11286 | \ | |
11287 | /usr/X11/include \ | |
11288 | /usr/include/X11 \ | |
11289 | /usr/local/X11/include \ | |
11290 | /usr/local/include/X11 \ | |
11291 | \ | |
11292 | /usr/X386/include \ | |
11293 | /usr/x386/include \ | |
11294 | /usr/XFree86/include/X11 \ | |
11295 | \ | |
11296 | X:/XFree86/include \ | |
11297 | X:/XFree86/include/X11 \ | |
11298 | \ | |
11299 | /usr/include/gtk \ | |
11300 | /usr/local/include/gtk \ | |
11301 | /usr/include/glib \ | |
11302 | /usr/local/include/glib \ | |
11303 | \ | |
11304 | /usr/include/qt \ | |
11305 | /usr/local/include/qt \ | |
11306 | \ | |
11307 | /usr/include/windows \ | |
11308 | /usr/include/wine \ | |
11309 | /usr/local/include/wine \ | |
11310 | \ | |
11311 | /usr/unsupported/include \ | |
11312 | /usr/athena/include \ | |
11313 | /usr/local/x11r5/include \ | |
11314 | /usr/lpp/Xamples/include \ | |
11315 | \ | |
a85030bd RL |
11316 | /usr/openwin/share/include \ |
11317 | /usr/include" | |
21d1c967 GD |
11318 | |
11319 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
11320 | ||
8284b0c5 | 11321 | |
a0b9e27f | 11322 | cat > confcache <<\EOF |
21d1c967 GD |
11323 | # This file is a shell script that caches the results of configure |
11324 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
11325 | # scripts and configure runs. It is not useful on other systems. |
11326 | # If it contains results you don't want to keep, you may remove or edit it. | |
21d1c967 | 11327 | # |
a0b9e27f MB |
11328 | # By default, configure uses ./config.cache as the cache file, |
11329 | # creating it if it does not exist already. You can give configure | |
11330 | # the --cache-file=FILE option to use a different cache file; that is | |
11331 | # what configure does when it calls configure scripts in | |
11332 | # subdirectories, so they share the cache. | |
11333 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
11334 | # config.status only pays attention to the cache file if you give it the | |
11335 | # --recheck option to rerun configure. | |
21d1c967 | 11336 | # |
a0b9e27f | 11337 | EOF |
21d1c967 GD |
11338 | # The following way of writing the cache mishandles newlines in values, |
11339 | # but we know of no workaround that is simple, portable, and efficient. | |
11340 | # So, don't put newlines in cache variables' values. | |
11341 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
11342 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
11343 | (set) 2>&1 | |
11344 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
11345 | *ac_space=\ *) | |
11346 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
11347 | # turns \\\\ into \\, and sed turns \\ into \). | |
11348 | sed -n \ | |
11349 | -e "s/'/'\\\\''/g" \ | |
11350 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
11351 | ;; | |
11352 | *) | |
11353 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
11354 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
11355 | ;; | |
11356 | esac >> confcache | |
11357 | if cmp -s $cache_file confcache; then | |
11358 | : | |
11359 | else | |
21d1c967 | 11360 | if test -w $cache_file; then |
a0b9e27f MB |
11361 | echo "updating cache $cache_file" |
11362 | cat confcache > $cache_file | |
21d1c967 GD |
11363 | else |
11364 | echo "not updating unwritable cache $cache_file" | |
11365 | fi | |
ab9b9eab | 11366 | fi |
21d1c967 | 11367 | rm -f confcache |
ab9b9eab | 11368 | |
247f5006 | 11369 | |
a0b9e27f MB |
11370 | if test "$USE_LINUX" = 1; then |
11371 | echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6 | |
db82f09e | 11372 | echo "configure:11373: checking for glibc 2.1 or later" >&5 |
a0b9e27f MB |
11373 | if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then |
11374 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11375 | else | |
11376 | ||
11377 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 11378 | #line 11379 "configure" |
ab9b9eab | 11379 | #include "confdefs.h" |
21d1c967 | 11380 | #include <features.h> |
a0b9e27f | 11381 | int main() { |
ab9b9eab | 11382 | |
21d1c967 GD |
11383 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) |
11384 | #error not glibc2.1 | |
11385 | #endif | |
a0b9e27f MB |
11386 | |
11387 | ; return 0; } | |
11388 | EOF | |
db82f09e | 11389 | if { (eval echo configure:11390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
11390 | rm -rf conftest* |
11391 | ||
21d1c967 | 11392 | wx_cv_lib_glibc21=yes |
a0b9e27f | 11393 | |
698dcdb6 | 11394 | else |
a0b9e27f MB |
11395 | echo "configure: failed program was:" >&5 |
11396 | cat conftest.$ac_ext >&5 | |
11397 | rm -rf conftest* | |
11398 | ||
21d1c967 | 11399 | wx_cv_lib_glibc21=no |
a0b9e27f MB |
11400 | |
11401 | ||
5c6fa7d2 | 11402 | fi |
a0b9e27f MB |
11403 | rm -f conftest* |
11404 | ||
247f5006 | 11405 | fi |
a0b9e27f MB |
11406 | |
11407 | echo "$ac_t""$wx_cv_lib_glibc21" 1>&6 | |
21d1c967 | 11408 | if test "$wx_cv_lib_glibc21" = "yes"; then |
a0b9e27f | 11409 | cat >> confdefs.h <<\EOF |
21d1c967 | 11410 | #define wxHAVE_GLIBC2 1 |
a0b9e27f | 11411 | EOF |
1e487827 | 11412 | |
90dd450c | 11413 | fi |
ab9b9eab VZ |
11414 | fi |
11415 | ||
5c0a20c3 VZ |
11416 | if test "x$wx_cv_lib_glibc21" = "xyes"; then |
11417 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
a0b9e27f | 11418 | cat >> confdefs.h <<\EOF |
5c0a20c3 | 11419 | #define _GNU_SOURCE 1 |
a0b9e27f | 11420 | EOF |
5c0a20c3 VZ |
11421 | |
11422 | fi | |
11423 | fi | |
11424 | ||
8284b0c5 MB |
11425 | |
11426 | ||
21d1c967 GD |
11427 | REGEX_INCLUDE= |
11428 | if test "$wxUSE_REGEX" != "no"; then | |
a0b9e27f | 11429 | cat >> confdefs.h <<\EOF |
21d1c967 | 11430 | #define wxUSE_REGEX 1 |
a0b9e27f | 11431 | EOF |
698dcdb6 | 11432 | |
8284b0c5 | 11433 | |
21d1c967 | 11434 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then |
a0b9e27f MB |
11435 | ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'` |
11436 | echo $ac_n "checking for regex.h""... $ac_c" 1>&6 | |
db82f09e | 11437 | echo "configure:11438: checking for regex.h" >&5 |
a0b9e27f MB |
11438 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11439 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11440 | else | |
11441 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 11442 | #line 11443 "configure" |
247f5006 VZ |
11443 | #include "confdefs.h" |
11444 | #include <regex.h> | |
a0b9e27f MB |
11445 | EOF |
11446 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
db82f09e | 11447 | { (eval echo configure:11448: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11448 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11449 | if test -z "$ac_err"; then | |
11450 | rm -rf conftest* | |
11451 | eval "ac_cv_header_$ac_safe=yes" | |
11452 | else | |
11453 | echo "$ac_err" >&5 | |
11454 | echo "configure: failed program was:" >&5 | |
21d1c967 | 11455 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11456 | rm -rf conftest* |
11457 | eval "ac_cv_header_$ac_safe=no" | |
21d1c967 | 11458 | fi |
a0b9e27f | 11459 | rm -f conftest* |
698dcdb6 | 11460 | fi |
a0b9e27f MB |
11461 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11462 | echo "$ac_t""yes" 1>&6 | |
11463 | for ac_func in regcomp | |
21d1c967 | 11464 | do |
a0b9e27f | 11465 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
db82f09e | 11466 | echo "configure:11467: checking for $ac_func" >&5 |
a0b9e27f MB |
11467 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11468 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 11469 | else |
a0b9e27f | 11470 | cat > conftest.$ac_ext <<EOF |
db82f09e | 11471 | #line 11472 "configure" |
a0b9e27f MB |
11472 | #include "confdefs.h" |
11473 | /* System header to define __stub macros and hopefully few prototypes, | |
11474 | which can conflict with char $ac_func(); below. */ | |
21d1c967 GD |
11475 | #include <assert.h> |
11476 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11477 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11478 | builtin and then its argument prototype would still apply. */ |
11479 | char $ac_func(); | |
11480 | ||
11481 | int main() { | |
11482 | ||
21d1c967 GD |
11483 | /* The GNU C library defines this for functions which it implements |
11484 | to always fail with ENOSYS. Some functions are actually named | |
11485 | something starting with __ and the normal name is an alias. */ | |
11486 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11487 | choke me | |
11488 | #else | |
a0b9e27f | 11489 | $ac_func(); |
21d1c967 | 11490 | #endif |
90dd450c | 11491 | |
a0b9e27f MB |
11492 | ; return 0; } |
11493 | EOF | |
db82f09e | 11494 | if { (eval echo configure:11495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
11495 | rm -rf conftest* |
11496 | eval "ac_cv_func_$ac_func=yes" | |
11497 | else | |
11498 | echo "configure: failed program was:" >&5 | |
11499 | cat conftest.$ac_ext >&5 | |
11500 | rm -rf conftest* | |
11501 | eval "ac_cv_func_$ac_func=no" | |
11502 | fi | |
11503 | rm -f conftest* | |
11504 | fi | |
5c6fa7d2 | 11505 | |
a0b9e27f MB |
11506 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
11507 | echo "$ac_t""yes" 1>&6 | |
11508 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11509 | cat >> confdefs.h <<EOF | |
11510 | #define $ac_tr_func 1 | |
11511 | EOF | |
11512 | ||
11513 | else | |
11514 | echo "$ac_t""no" 1>&6 | |
698dcdb6 | 11515 | fi |
21d1c967 GD |
11516 | done |
11517 | ||
a0b9e27f MB |
11518 | else |
11519 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11520 | fi |
11521 | ||
8284b0c5 | 11522 | |
21d1c967 GD |
11523 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
11524 | if test "$wxUSE_REGEX" = "sys" ; then | |
a0b9e27f | 11525 | { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11526 | else |
a0b9e27f | 11527 | echo "configure: warning: system regex library not found, will use built-in instead" 1>&2 |
21d1c967 GD |
11528 | wxUSE_REGEX=builtin |
11529 | fi | |
11530 | else | |
11531 | wxUSE_REGEX=sys | |
11532 | fi | |
ab9b9eab | 11533 | fi |
90dd450c | 11534 | |
21d1c967 GD |
11535 | if test "$wxUSE_REGEX" = "builtin" ; then |
11536 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
90dd450c | 11537 | fi |
21d1c967 | 11538 | fi |
90dd450c | 11539 | |
8284b0c5 | 11540 | |
21d1c967 GD |
11541 | ZLIB_INCLUDE= |
11542 | ZLIB_LINK= | |
11543 | if test "$wxUSE_ZLIB" != "no" ; then | |
a0b9e27f | 11544 | cat >> confdefs.h <<\EOF |
21d1c967 | 11545 | #define wxUSE_ZLIB 1 |
a0b9e27f | 11546 | EOF |
21d1c967 | 11547 | |
8284b0c5 | 11548 | |
21d1c967 | 11549 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then |
a0b9e27f MB |
11550 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` |
11551 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
db82f09e | 11552 | echo "configure:11553: checking for zlib.h" >&5 |
a0b9e27f MB |
11553 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11554 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11555 | else | |
11556 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 11557 | #line 11558 "configure" |
ab9b9eab | 11558 | #include "confdefs.h" |
21d1c967 | 11559 | #include <zlib.h> |
a0b9e27f MB |
11560 | EOF |
11561 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
db82f09e | 11562 | { (eval echo configure:11563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11563 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11564 | if test -z "$ac_err"; then | |
11565 | rm -rf conftest* | |
11566 | eval "ac_cv_header_$ac_safe=yes" | |
11567 | else | |
11568 | echo "$ac_err" >&5 | |
11569 | echo "configure: failed program was:" >&5 | |
698dcdb6 | 11570 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11571 | rm -rf conftest* |
11572 | eval "ac_cv_header_$ac_safe=no" | |
698dcdb6 | 11573 | fi |
a0b9e27f | 11574 | rm -f conftest* |
ab9b9eab | 11575 | fi |
a0b9e27f MB |
11576 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11577 | echo "$ac_t""yes" 1>&6 | |
11578 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 | |
db82f09e | 11579 | echo "configure:11580: checking for deflate in -lz" >&5 |
a0b9e27f MB |
11580 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
11581 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11582 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11583 | else |
a0b9e27f | 11584 | ac_save_LIBS="$LIBS" |
21d1c967 | 11585 | LIBS="-lz $LIBS" |
a0b9e27f | 11586 | cat > conftest.$ac_ext <<EOF |
db82f09e | 11587 | #line 11588 "configure" |
ab9b9eab | 11588 | #include "confdefs.h" |
21d1c967 GD |
11589 | /* Override any gcc2 internal prototype to avoid an error. */ |
11590 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11591 | builtin and then its argument prototype would still apply. */ |
11592 | char deflate(); | |
11593 | ||
11594 | int main() { | |
11595 | deflate() | |
11596 | ; return 0; } | |
11597 | EOF | |
db82f09e | 11598 | if { (eval echo configure:11599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
11599 | rm -rf conftest* |
11600 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11601 | else | |
11602 | echo "configure: failed program was:" >&5 | |
11603 | cat conftest.$ac_ext >&5 | |
11604 | rm -rf conftest* | |
11605 | eval "ac_cv_lib_$ac_lib_var=no" | |
90dd450c | 11606 | fi |
a0b9e27f MB |
11607 | rm -f conftest* |
11608 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 11609 | |
698dcdb6 | 11610 | fi |
a0b9e27f MB |
11611 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
11612 | echo "$ac_t""yes" 1>&6 | |
11613 | ZLIB_LINK=" -lz" | |
11614 | else | |
11615 | echo "$ac_t""no" 1>&6 | |
11616 | fi | |
698dcdb6 | 11617 | |
a0b9e27f MB |
11618 | else |
11619 | echo "$ac_t""no" 1>&6 | |
11620 | fi | |
8284b0c5 | 11621 | |
247f5006 | 11622 | |
21d1c967 GD |
11623 | if test "x$ZLIB_LINK" = "x" ; then |
11624 | if test "$wxUSE_ZLIB" = "sys" ; then | |
a0b9e27f | 11625 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11626 | else |
a0b9e27f | 11627 | echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2 |
21d1c967 GD |
11628 | wxUSE_ZLIB=builtin |
11629 | fi | |
11630 | else | |
11631 | wxUSE_ZLIB=sys | |
11632 | fi | |
11633 | fi | |
11634 | ||
11635 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
11636 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
11637 | fi | |
ab9b9eab VZ |
11638 | fi |
11639 | ||
8284b0c5 | 11640 | |
21d1c967 GD |
11641 | PNG_INCLUDE= |
11642 | PNG_LINK= | |
11643 | if test "$wxUSE_LIBPNG" != "no" ; then | |
a0b9e27f | 11644 | cat >> confdefs.h <<\EOF |
21d1c967 | 11645 | #define wxUSE_LIBPNG 1 |
a0b9e27f | 11646 | EOF |
90dd450c | 11647 | |
8284b0c5 | 11648 | |
21d1c967 | 11649 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then |
a0b9e27f | 11650 | echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2 |
21d1c967 GD |
11651 | wxUSE_LIBPNG=sys |
11652 | fi | |
90dd450c | 11653 | |
21d1c967 | 11654 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
a0b9e27f | 11655 | echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2 |
21d1c967 GD |
11656 | wxUSE_LIBPNG=builtin |
11657 | fi | |
11658 | ||
11659 | if test "$wxUSE_MGL" != 1 ; then | |
11660 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
a0b9e27f MB |
11661 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` |
11662 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
db82f09e | 11663 | echo "configure:11664: checking for png.h" >&5 |
a0b9e27f MB |
11664 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11665 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11666 | else | |
11667 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 11668 | #line 11669 "configure" |
21d1c967 GD |
11669 | #include "confdefs.h" |
11670 | #include <png.h> | |
a0b9e27f MB |
11671 | EOF |
11672 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
db82f09e | 11673 | { (eval echo configure:11674: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11674 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11675 | if test -z "$ac_err"; then | |
11676 | rm -rf conftest* | |
11677 | eval "ac_cv_header_$ac_safe=yes" | |
11678 | else | |
11679 | echo "$ac_err" >&5 | |
11680 | echo "configure: failed program was:" >&5 | |
90dd450c | 11681 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11682 | rm -rf conftest* |
11683 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 11684 | fi |
a0b9e27f | 11685 | rm -f conftest* |
90dd450c | 11686 | fi |
a0b9e27f MB |
11687 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11688 | echo "$ac_t""yes" 1>&6 | |
11689 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 | |
db82f09e | 11690 | echo "configure:11691: checking for png_check_sig in -lpng" >&5 |
a0b9e27f MB |
11691 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
11692 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11693 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11694 | else |
a0b9e27f | 11695 | ac_save_LIBS="$LIBS" |
21d1c967 | 11696 | LIBS="-lpng -lz -lm $LIBS" |
a0b9e27f | 11697 | cat > conftest.$ac_ext <<EOF |
db82f09e | 11698 | #line 11699 "configure" |
90dd450c | 11699 | #include "confdefs.h" |
21d1c967 GD |
11700 | /* Override any gcc2 internal prototype to avoid an error. */ |
11701 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11702 | builtin and then its argument prototype would still apply. */ |
11703 | char png_check_sig(); | |
90dd450c | 11704 | |
a0b9e27f MB |
11705 | int main() { |
11706 | png_check_sig() | |
11707 | ; return 0; } | |
11708 | EOF | |
db82f09e | 11709 | if { (eval echo configure:11710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
11710 | rm -rf conftest* |
11711 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11712 | else | |
11713 | echo "configure: failed program was:" >&5 | |
11714 | cat conftest.$ac_ext >&5 | |
11715 | rm -rf conftest* | |
11716 | eval "ac_cv_lib_$ac_lib_var=no" | |
11717 | fi | |
11718 | rm -f conftest* | |
11719 | LIBS="$ac_save_LIBS" | |
247f5006 | 11720 | |
90dd450c | 11721 | fi |
a0b9e27f MB |
11722 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
11723 | echo "$ac_t""yes" 1>&6 | |
11724 | PNG_LINK=" -lpng" | |
11725 | else | |
11726 | echo "$ac_t""no" 1>&6 | |
11727 | fi | |
90dd450c | 11728 | |
a0b9e27f MB |
11729 | |
11730 | else | |
11731 | echo "$ac_t""no" 1>&6 | |
11732 | fi | |
8284b0c5 | 11733 | |
247f5006 | 11734 | |
21d1c967 GD |
11735 | if test "x$PNG_LINK" = "x" ; then |
11736 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
a0b9e27f | 11737 | { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11738 | else |
a0b9e27f | 11739 | echo "configure: warning: system png library not found, will use built-in instead" 1>&2 |
21d1c967 GD |
11740 | wxUSE_LIBPNG=builtin |
11741 | fi | |
11742 | else | |
11743 | wxUSE_LIBPNG=yes | |
11744 | fi | |
11745 | fi | |
11746 | fi | |
90dd450c | 11747 | |
21d1c967 GD |
11748 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
11749 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
11750 | fi | |
90dd450c | 11751 | |
21d1c967 | 11752 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
90dd450c VZ |
11753 | fi |
11754 | ||
8284b0c5 | 11755 | |
21d1c967 GD |
11756 | JPEG_INCLUDE= |
11757 | JPEG_LINK= | |
11758 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
a0b9e27f | 11759 | cat >> confdefs.h <<\EOF |
21d1c967 | 11760 | #define wxUSE_LIBJPEG 1 |
a0b9e27f | 11761 | EOF |
90dd450c | 11762 | |
8284b0c5 | 11763 | |
21d1c967 | 11764 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then |
a0b9e27f | 11765 | echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2 |
21d1c967 GD |
11766 | wxUSE_LIBJPEG=sys |
11767 | fi | |
90dd450c | 11768 | |
21d1c967 GD |
11769 | if test "$wxUSE_MGL" != 1 ; then |
11770 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
a0b9e27f | 11771 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 |
db82f09e | 11772 | echo "configure:11773: checking for jpeglib.h" >&5 |
a0b9e27f MB |
11773 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then |
11774 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11775 | else |
a0b9e27f | 11776 | cat > conftest.$ac_ext <<EOF |
db82f09e | 11777 | #line 11778 "configure" |
21d1c967 | 11778 | #include "confdefs.h" |
90dd450c | 11779 | |
21d1c967 GD |
11780 | #undef HAVE_STDLIB_H |
11781 | #include <stdio.h> | |
11782 | #include <jpeglib.h> | |
a0b9e27f MB |
11783 | |
11784 | int main() { | |
90dd450c | 11785 | |
a0b9e27f MB |
11786 | |
11787 | ; return 0; } | |
11788 | EOF | |
db82f09e | 11789 | if { (eval echo configure:11790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 11790 | rm -rf conftest* |
21d1c967 | 11791 | ac_cv_header_jpeglib_h=yes |
90dd450c | 11792 | else |
a0b9e27f MB |
11793 | echo "configure: failed program was:" >&5 |
11794 | cat conftest.$ac_ext >&5 | |
11795 | rm -rf conftest* | |
11796 | ac_cv_header_jpeglib_h=no | |
11797 | ||
90dd450c | 11798 | fi |
a0b9e27f MB |
11799 | rm -f conftest* |
11800 | ||
90dd450c VZ |
11801 | fi |
11802 | ||
a0b9e27f | 11803 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 |
90dd450c | 11804 | |
21d1c967 | 11805 | if test "$ac_cv_header_jpeglib_h" = "yes"; then |
a0b9e27f | 11806 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 |
db82f09e | 11807 | echo "configure:11808: checking for jpeg_read_header in -ljpeg" >&5 |
a0b9e27f MB |
11808 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
11809 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11810 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11811 | else |
a0b9e27f | 11812 | ac_save_LIBS="$LIBS" |
21d1c967 | 11813 | LIBS="-ljpeg $LIBS" |
a0b9e27f | 11814 | cat > conftest.$ac_ext <<EOF |
db82f09e | 11815 | #line 11816 "configure" |
21d1c967 GD |
11816 | #include "confdefs.h" |
11817 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11818 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11819 | builtin and then its argument prototype would still apply. */ |
11820 | char jpeg_read_header(); | |
11821 | ||
11822 | int main() { | |
11823 | jpeg_read_header() | |
11824 | ; return 0; } | |
11825 | EOF | |
db82f09e | 11826 | if { (eval echo configure:11827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
11827 | rm -rf conftest* |
11828 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11829 | else | |
11830 | echo "configure: failed program was:" >&5 | |
11831 | cat conftest.$ac_ext >&5 | |
11832 | rm -rf conftest* | |
11833 | eval "ac_cv_lib_$ac_lib_var=no" | |
11834 | fi | |
11835 | rm -f conftest* | |
11836 | LIBS="$ac_save_LIBS" | |
11837 | ||
11838 | fi | |
11839 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11840 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 11841 | JPEG_LINK=" -ljpeg" |
a0b9e27f MB |
11842 | else |
11843 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
11844 | fi |
11845 | ||
21d1c967 | 11846 | fi |
90dd450c | 11847 | |
21d1c967 GD |
11848 | if test "x$JPEG_LINK" = "x" ; then |
11849 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
a0b9e27f | 11850 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11851 | else |
a0b9e27f | 11852 | echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2 |
21d1c967 GD |
11853 | wxUSE_LIBJPEG=builtin |
11854 | fi | |
11855 | else | |
11856 | wxUSE_LIBJPEG=sys | |
11857 | fi | |
11858 | fi | |
11859 | fi | |
90dd450c | 11860 | |
21d1c967 GD |
11861 | if test "$wxUSE_LIBJPEG" = "builtin" ; then |
11862 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
11863 | fi | |
11864 | fi | |
90dd450c | 11865 | |
8284b0c5 | 11866 | |
21d1c967 GD |
11867 | TIFF_INCLUDE= |
11868 | TIFF_LINK= | |
11869 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
a0b9e27f | 11870 | cat >> confdefs.h <<\EOF |
21d1c967 | 11871 | #define wxUSE_LIBTIFF 1 |
a0b9e27f | 11872 | EOF |
21d1c967 | 11873 | |
8284b0c5 | 11874 | |
21d1c967 | 11875 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then |
a0b9e27f MB |
11876 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` |
11877 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
db82f09e | 11878 | echo "configure:11879: checking for tiffio.h" >&5 |
a0b9e27f MB |
11879 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11880 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11881 | else | |
11882 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 11883 | #line 11884 "configure" |
247f5006 VZ |
11884 | #include "confdefs.h" |
11885 | #include <tiffio.h> | |
a0b9e27f MB |
11886 | EOF |
11887 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
db82f09e | 11888 | { (eval echo configure:11889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11889 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11890 | if test -z "$ac_err"; then | |
11891 | rm -rf conftest* | |
11892 | eval "ac_cv_header_$ac_safe=yes" | |
11893 | else | |
11894 | echo "$ac_err" >&5 | |
11895 | echo "configure: failed program was:" >&5 | |
21d1c967 | 11896 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11897 | rm -rf conftest* |
11898 | eval "ac_cv_header_$ac_safe=no" | |
21d1c967 | 11899 | fi |
a0b9e27f | 11900 | rm -f conftest* |
21d1c967 | 11901 | fi |
a0b9e27f MB |
11902 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11903 | echo "$ac_t""yes" 1>&6 | |
11904 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
db82f09e | 11905 | echo "configure:11906: checking for TIFFError in -ltiff" >&5 |
a0b9e27f MB |
11906 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
11907 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11908 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 11909 | else |
a0b9e27f | 11910 | ac_save_LIBS="$LIBS" |
21d1c967 | 11911 | LIBS="-ltiff -lm $LIBS" |
a0b9e27f | 11912 | cat > conftest.$ac_ext <<EOF |
db82f09e | 11913 | #line 11914 "configure" |
ab9b9eab VZ |
11914 | #include "confdefs.h" |
11915 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11916 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11917 | builtin and then its argument prototype would still apply. */ |
11918 | char TIFFError(); | |
ab9b9eab | 11919 | |
a0b9e27f MB |
11920 | int main() { |
11921 | TIFFError() | |
11922 | ; return 0; } | |
11923 | EOF | |
db82f09e | 11924 | if { (eval echo configure:11925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
11925 | rm -rf conftest* |
11926 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11927 | else | |
11928 | echo "configure: failed program was:" >&5 | |
11929 | cat conftest.$ac_ext >&5 | |
11930 | rm -rf conftest* | |
11931 | eval "ac_cv_lib_$ac_lib_var=no" | |
11932 | fi | |
11933 | rm -f conftest* | |
11934 | LIBS="$ac_save_LIBS" | |
247f5006 | 11935 | |
21d1c967 | 11936 | fi |
a0b9e27f MB |
11937 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
11938 | echo "$ac_t""yes" 1>&6 | |
11939 | TIFF_LINK=" -ltiff" | |
11940 | else | |
11941 | echo "$ac_t""no" 1>&6 | |
11942 | fi | |
cd6d6d5b | 11943 | |
a0b9e27f MB |
11944 | |
11945 | else | |
11946 | echo "$ac_t""no" 1>&6 | |
11947 | fi | |
8284b0c5 | 11948 | |
247f5006 | 11949 | |
21d1c967 GD |
11950 | if test "x$TIFF_LINK" = "x" ; then |
11951 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
a0b9e27f | 11952 | { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; } |
90dd450c | 11953 | else |
a0b9e27f | 11954 | echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2 |
21d1c967 | 11955 | wxUSE_LIBTIFF=builtin |
d8356fa3 | 11956 | fi |
d8356fa3 | 11957 | else |
21d1c967 | 11958 | wxUSE_LIBTIFF=sys |
d8356fa3 | 11959 | fi |
21d1c967 | 11960 | fi |
d8356fa3 | 11961 | |
21d1c967 GD |
11962 | if test "$wxUSE_LIBTIFF" = "builtin" ; then |
11963 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
1e6feb95 | 11964 | fi |
21d1c967 | 11965 | fi |
10f2d63a | 11966 | |
8284b0c5 | 11967 | |
21d1c967 | 11968 | AFMINSTALL= |
90dd450c | 11969 | |
21d1c967 GD |
11970 | TOOLKIT= |
11971 | TOOLKIT_INCLUDE= | |
11972 | WIDGET_SET= | |
11973 | ||
11974 | if test "$USE_WIN32" = 1 ; then | |
a0b9e27f | 11975 | for ac_hdr in w32api.h |
21d1c967 | 11976 | do |
a0b9e27f MB |
11977 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11978 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
db82f09e | 11979 | echo "configure:11980: checking for $ac_hdr" >&5 |
a0b9e27f MB |
11980 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11981 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11982 | else | |
11983 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 11984 | #line 11985 "configure" |
247f5006 | 11985 | #include "confdefs.h" |
a0b9e27f MB |
11986 | #include <$ac_hdr> |
11987 | EOF | |
11988 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
db82f09e | 11989 | { (eval echo configure:11990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11990 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11991 | if test -z "$ac_err"; then | |
11992 | rm -rf conftest* | |
11993 | eval "ac_cv_header_$ac_safe=yes" | |
11994 | else | |
11995 | echo "$ac_err" >&5 | |
11996 | echo "configure: failed program was:" >&5 | |
f79bd02d | 11997 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11998 | rm -rf conftest* |
11999 | eval "ac_cv_header_$ac_safe=no" | |
f79bd02d | 12000 | fi |
a0b9e27f | 12001 | rm -f conftest* |
21d1c967 | 12002 | fi |
a0b9e27f MB |
12003 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12004 | echo "$ac_t""yes" 1>&6 | |
12005 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12006 | cat >> confdefs.h <<EOF | |
12007 | #define $ac_tr_hdr 1 | |
12008 | EOF | |
12009 | ||
12010 | else | |
12011 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
12012 | fi |
12013 | done | |
f79bd02d | 12014 | |
a0b9e27f MB |
12015 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` |
12016 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
db82f09e | 12017 | echo "configure:12018: checking for windows.h" >&5 |
a0b9e27f MB |
12018 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12019 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12020 | else |
a0b9e27f | 12021 | cat > conftest.$ac_ext <<EOF |
db82f09e | 12022 | #line 12023 "configure" |
247f5006 VZ |
12023 | #include "confdefs.h" |
12024 | #include <windows.h> | |
a0b9e27f MB |
12025 | EOF |
12026 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
db82f09e | 12027 | { (eval echo configure:12028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
12028 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12029 | if test -z "$ac_err"; then | |
12030 | rm -rf conftest* | |
12031 | eval "ac_cv_header_$ac_safe=yes" | |
12032 | else | |
12033 | echo "$ac_err" >&5 | |
12034 | echo "configure: failed program was:" >&5 | |
90dd450c | 12035 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
12036 | rm -rf conftest* |
12037 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 12038 | fi |
a0b9e27f | 12039 | rm -f conftest* |
90dd450c | 12040 | fi |
a0b9e27f MB |
12041 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12042 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 12043 | : |
90dd450c | 12044 | else |
a0b9e27f | 12045 | echo "$ac_t""no" 1>&6 |
21d1c967 | 12046 | |
a0b9e27f MB |
12047 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } |
12048 | ||
5c6fa7d2 | 12049 | fi |
7b4a847f | 12050 | |
5c6fa7d2 | 12051 | |
a0b9e27f | 12052 | echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6 |
db82f09e | 12053 | echo "configure:12054: checking if w32api has good enough MSIE support" >&5 |
a0b9e27f MB |
12054 | if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then |
12055 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 12056 | else |
a0b9e27f MB |
12057 | |
12058 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 12059 | #line 12060 "configure" |
f79bd02d | 12060 | #include "confdefs.h" |
21d1c967 | 12061 | #include <w32api.h> |
a0b9e27f | 12062 | int main() { |
f79bd02d | 12063 | |
21d1c967 GD |
12064 | #define wxCHECK_W32API_VERSION( major, minor ) \ |
12065 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
12066 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
12067 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
12068 | ||
12069 | #if !wxCHECK_W32API_VERSION(1,1) | |
12070 | #error You need w32api 1.1 or newer | |
12071 | #endif | |
a0b9e27f MB |
12072 | |
12073 | ; return 0; } | |
12074 | EOF | |
db82f09e | 12075 | if { (eval echo configure:12076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
12076 | rm -rf conftest* |
12077 | ||
21d1c967 | 12078 | wx_cv_w32api_win32_ie=yes |
a0b9e27f | 12079 | |
f79bd02d | 12080 | else |
a0b9e27f MB |
12081 | echo "configure: failed program was:" >&5 |
12082 | cat conftest.$ac_ext >&5 | |
12083 | rm -rf conftest* | |
12084 | ||
21d1c967 | 12085 | wx_cv_w32api_win32_ie=no |
a0b9e27f | 12086 | |
5c6fa7d2 | 12087 | fi |
a0b9e27f MB |
12088 | rm -f conftest* |
12089 | ||
247f5006 | 12090 | fi |
a0b9e27f MB |
12091 | |
12092 | echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6 | |
21d1c967 GD |
12093 | if test "$wx_cv_w32api_win32_ie" = "yes" ; then |
12094 | CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400" | |
12095 | fi | |
f79bd02d | 12096 | |
21d1c967 GD |
12097 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" |
12098 | ||
12099 | case "${host}" in | |
12100 | *-*-cygwin* ) | |
12101 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32" | |
12102 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
f79bd02d | 12103 | esac |
f79bd02d | 12104 | |
21d1c967 GD |
12105 | if test "$wxUSE_ODBC" = "yes" ; then |
12106 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
12107 | fi | |
f79bd02d | 12108 | |
21d1c967 GD |
12109 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
12110 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
f79bd02d | 12111 | fi |
f79bd02d | 12112 | |
b2fee376 | 12113 | if test "$USE_DARWIN" = 1; then |
50bcbd3d | 12114 | if test "$wxUSE_PRECOMP" = "yes"; then |
b2fee376 GD |
12115 | CPPFLAGS="$CPPFLAGS -cpp-precomp" |
12116 | else | |
12117 | CPPFLAGS="$CPPFLAGS -no-cpp-precomp" | |
12118 | fi | |
12119 | fi | |
12120 | ||
21d1c967 GD |
12121 | if test "$wxUSE_GUI" = "yes"; then |
12122 | USE_GUI=1 | |
f79bd02d | 12123 | |
21d1c967 | 12124 | GUI_TK_LIBRARY= |
f79bd02d | 12125 | |
21d1c967 GD |
12126 | WXGTK12= |
12127 | WXGTK127= | |
12128 | WXGTK20= | |
f79bd02d | 12129 | |
21d1c967 GD |
12130 | if test "$wxUSE_MSW" = 1 ; then |
12131 | TOOLKIT=MSW | |
12132 | GUIDIST=MSW_DIST | |
f79bd02d | 12133 | |
21d1c967 GD |
12134 | case "${host}" in |
12135 | *-*-mingw32* ) | |
12136 | LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
12137 | esac | |
f79bd02d JS |
12138 | fi |
12139 | ||
21d1c967 | 12140 | if test "$wxUSE_GTK" = 1; then |
a0b9e27f | 12141 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 |
db82f09e | 12142 | echo "configure:12143: checking for GTK+ version" >&5 |
21d1c967 GD |
12143 | |
12144 | gtk_version_cached=1 | |
a0b9e27f MB |
12145 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then |
12146 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f79bd02d | 12147 | else |
a0b9e27f | 12148 | |
21d1c967 | 12149 | gtk_version_cached=0 |
a0b9e27f | 12150 | echo "$ac_t""" 1>&6 |
f79bd02d | 12151 | |
21d1c967 GD |
12152 | GTK_MODULES= |
12153 | if test "$wxUSE_THREADS" = "yes"; then | |
12154 | GTK_MODULES=gthread | |
12155 | fi | |
f79bd02d | 12156 | |
21d1c967 GD |
12157 | wx_cv_lib_gtk= |
12158 | if test "x$wxUSE_GTK2" = "xyes"; then | |
12159 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
12160 | if test "${enable_gtktest+set}" = set; then | |
12161 | enableval="$enable_gtktest" | |
a0b9e27f | 12162 | : |
f79bd02d | 12163 | else |
21d1c967 | 12164 | enable_gtktest=yes |
a0b9e27f MB |
12165 | fi |
12166 | ||
f79bd02d | 12167 | |
21d1c967 GD |
12168 | pkg_config_args=gtk+-2.0 |
12169 | for module in . $GTK_MODULES | |
12170 | do | |
12171 | case "$module" in | |
a0b9e27f | 12172 | gthread) |
21d1c967 GD |
12173 | pkg_config_args="$pkg_config_args gthread-2.0" |
12174 | ;; | |
12175 | esac | |
12176 | done | |
12177 | ||
12178 | no_gtk="" | |
f79bd02d | 12179 | |
21d1c967 GD |
12180 | # Extract the first word of "pkg-config", so it can be a program name with args. |
12181 | set dummy pkg-config; ac_word=$2 | |
a0b9e27f | 12182 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
db82f09e | 12183 | echo "configure:12184: checking for $ac_word" >&5 |
a0b9e27f MB |
12184 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
12185 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12186 | else |
a0b9e27f MB |
12187 | case "$PKG_CONFIG" in |
12188 | /*) | |
21d1c967 GD |
12189 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
12190 | ;; | |
a0b9e27f MB |
12191 | ?:/*) |
12192 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
12193 | ;; | |
21d1c967 | 12194 | *) |
a0b9e27f MB |
12195 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
12196 | ac_dummy="$PATH" | |
12197 | for ac_dir in $ac_dummy; do | |
12198 | test -z "$ac_dir" && ac_dir=. | |
12199 | if test -f $ac_dir/$ac_word; then | |
12200 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
12201 | break | |
12202 | fi | |
12203 | done | |
12204 | IFS="$ac_save_ifs" | |
21d1c967 GD |
12205 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
12206 | ;; | |
12207 | esac | |
f79bd02d | 12208 | fi |
a0b9e27f | 12209 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
21d1c967 | 12210 | if test -n "$PKG_CONFIG"; then |
a0b9e27f | 12211 | echo "$ac_t""$PKG_CONFIG" 1>&6 |
f79bd02d | 12212 | else |
a0b9e27f | 12213 | echo "$ac_t""no" 1>&6 |
f79bd02d JS |
12214 | fi |
12215 | ||
8284b0c5 | 12216 | |
21d1c967 GD |
12217 | if test x$PKG_CONFIG != xno ; then |
12218 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
12219 | : | |
12220 | else | |
12221 | echo *** pkg-config too old; version 0.7 or better required. | |
12222 | no_gtk=yes | |
12223 | PKG_CONFIG=no | |
12224 | fi | |
12225 | else | |
12226 | no_gtk=yes | |
12227 | fi | |
f79bd02d | 12228 | |
21d1c967 | 12229 | min_gtk_version=2.0.0 |
a0b9e27f | 12230 | echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6 |
db82f09e | 12231 | echo "configure:12232: checking for GTK+ - version >= $min_gtk_version" >&5 |
f79bd02d | 12232 | |
21d1c967 GD |
12233 | if test x$PKG_CONFIG != xno ; then |
12234 | ## don't try to run the test against uninstalled libtool libs | |
12235 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
12236 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
12237 | enable_gtktest=no | |
12238 | fi | |
f79bd02d | 12239 | |
21d1c967 GD |
12240 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then |
12241 | : | |
12242 | else | |
12243 | no_gtk=yes | |
12244 | fi | |
12245 | fi | |
f79bd02d | 12246 | |
21d1c967 GD |
12247 | if test x"$no_gtk" = x ; then |
12248 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
12249 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
12250 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
12251 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12252 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
12253 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12254 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
12255 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12256 | if test "x$enable_gtktest" = "xyes" ; then | |
12257 | ac_save_CFLAGS="$CFLAGS" | |
12258 | ac_save_LIBS="$LIBS" | |
12259 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12260 | LIBS="$GTK_LIBS $LIBS" | |
12261 | rm -f conf.gtktest | |
12262 | if test "$cross_compiling" = yes; then | |
12263 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 12264 | else |
a0b9e27f | 12265 | cat > conftest.$ac_ext <<EOF |
db82f09e | 12266 | #line 12267 "configure" |
f79bd02d | 12267 | #include "confdefs.h" |
f79bd02d | 12268 | |
21d1c967 GD |
12269 | #include <gtk/gtk.h> |
12270 | #include <stdio.h> | |
12271 | #include <stdlib.h> | |
f79bd02d | 12272 | |
a0b9e27f | 12273 | int |
21d1c967 GD |
12274 | main () |
12275 | { | |
12276 | int major, minor, micro; | |
12277 | char *tmp_version; | |
f79bd02d | 12278 | |
21d1c967 | 12279 | system ("touch conf.gtktest"); |
f79bd02d | 12280 | |
21d1c967 GD |
12281 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
12282 | tmp_version = g_strdup("$min_gtk_version"); | |
12283 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12284 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12285 | exit(1); | |
12286 | } | |
f79bd02d | 12287 | |
21d1c967 GD |
12288 | if ((gtk_major_version != $gtk_config_major_version) || |
12289 | (gtk_minor_version != $gtk_config_minor_version) || | |
12290 | (gtk_micro_version != $gtk_config_micro_version)) | |
12291 | { | |
a0b9e27f | 12292 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
12293 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
12294 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12295 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
12296 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12297 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12298 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12299 | printf("*** required on your system.\n"); | |
12300 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
12301 | printf("*** to point to the correct configuration files\n"); | |
a0b9e27f | 12302 | } |
21d1c967 GD |
12303 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || |
12304 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12305 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12306 | { | |
12307 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12308 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12309 | printf("*** library (version %d.%d.%d)\n", | |
12310 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12311 | } | |
12312 | else | |
12313 | { | |
12314 | if ((gtk_major_version > major) || | |
12315 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12316 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12317 | { | |
12318 | return 0; | |
12319 | } | |
12320 | else | |
12321 | { | |
12322 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12323 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12324 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12325 | major, minor, micro); | |
12326 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12327 | printf("***\n"); | |
12328 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12329 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
12330 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12331 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
12332 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
12333 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12334 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12335 | } | |
12336 | } | |
12337 | return 1; | |
12338 | } | |
f79bd02d | 12339 | |
a0b9e27f | 12340 | EOF |
db82f09e | 12341 | if { (eval echo configure:12342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 12342 | then |
21d1c967 | 12343 | : |
f79bd02d | 12344 | else |
a0b9e27f MB |
12345 | echo "configure: failed program was:" >&5 |
12346 | cat conftest.$ac_ext >&5 | |
12347 | rm -fr conftest* | |
12348 | no_gtk=yes | |
f79bd02d | 12349 | fi |
a0b9e27f | 12350 | rm -fr conftest* |
f79bd02d | 12351 | fi |
a0b9e27f | 12352 | |
21d1c967 GD |
12353 | CFLAGS="$ac_save_CFLAGS" |
12354 | LIBS="$ac_save_LIBS" | |
12355 | fi | |
12356 | fi | |
12357 | if test "x$no_gtk" = x ; then | |
a0b9e27f MB |
12358 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 |
12359 | wx_cv_lib_gtk=2.0 | |
21d1c967 | 12360 | else |
a0b9e27f | 12361 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12362 | if test "$PKG_CONFIG" = "no" ; then |
12363 | echo "*** A new enough version of pkg-config was not found." | |
12364 | echo "*** See http://pkgconfig.sourceforge.net" | |
12365 | else | |
12366 | if test -f conf.gtktest ; then | |
12367 | : | |
12368 | else | |
12369 | echo "*** Could not run GTK+ test program, checking why..." | |
579d8138 VS |
12370 | ac_save_CFLAGS="$CFLAGS" |
12371 | ac_save_LIBS="$LIBS" | |
21d1c967 GD |
12372 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
12373 | LIBS="$LIBS $GTK_LIBS" | |
a0b9e27f | 12374 | cat > conftest.$ac_ext <<EOF |
db82f09e | 12375 | #line 12376 "configure" |
f79bd02d | 12376 | #include "confdefs.h" |
21d1c967 GD |
12377 | |
12378 | #include <gtk/gtk.h> | |
12379 | #include <stdio.h> | |
f79bd02d | 12380 | |
a0b9e27f MB |
12381 | int main() { |
12382 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
12383 | ; return 0; } | |
12384 | EOF | |
db82f09e | 12385 | if { (eval echo configure:12386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 12386 | rm -rf conftest* |
21d1c967 GD |
12387 | echo "*** The test program compiled, but did not run. This usually means" |
12388 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
12389 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
12390 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12391 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12392 | echo "*** is required on your system" | |
12393 | echo "***" | |
12394 | echo "*** If you have an old version installed, it is best to remove it, although" | |
a0b9e27f | 12395 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
f79bd02d | 12396 | else |
a0b9e27f MB |
12397 | echo "configure: failed program was:" >&5 |
12398 | cat conftest.$ac_ext >&5 | |
12399 | rm -rf conftest* | |
12400 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
579d8138 | 12401 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." |
f79bd02d | 12402 | fi |
a0b9e27f | 12403 | rm -f conftest* |
21d1c967 GD |
12404 | CFLAGS="$ac_save_CFLAGS" |
12405 | LIBS="$ac_save_LIBS" | |
12406 | fi | |
12407 | fi | |
12408 | GTK_CFLAGS="" | |
12409 | GTK_LIBS="" | |
12410 | : | |
12411 | fi | |
a0b9e27f MB |
12412 | |
12413 | ||
21d1c967 | 12414 | rm -f conf.gtktest |
f79bd02d | 12415 | |
21d1c967 | 12416 | fi |
f79bd02d | 12417 | |
21d1c967 | 12418 | if test -z "$wx_cv_lib_gtk"; then |
a0b9e27f | 12419 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
21d1c967 GD |
12420 | if test "${with_gtk_prefix+set}" = set; then |
12421 | withval="$with_gtk_prefix" | |
12422 | gtk_config_prefix="$withval" | |
12423 | else | |
12424 | gtk_config_prefix="" | |
a0b9e27f | 12425 | fi |
f79bd02d | 12426 | |
21d1c967 GD |
12427 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
12428 | if test "${with_gtk_exec_prefix+set}" = set; then | |
12429 | withval="$with_gtk_exec_prefix" | |
12430 | gtk_config_exec_prefix="$withval" | |
12431 | else | |
12432 | gtk_config_exec_prefix="" | |
a0b9e27f MB |
12433 | fi |
12434 | ||
21d1c967 GD |
12435 | # Check whether --enable-gtktest or --disable-gtktest was given. |
12436 | if test "${enable_gtktest+set}" = set; then | |
12437 | enableval="$enable_gtktest" | |
a0b9e27f | 12438 | : |
21d1c967 GD |
12439 | else |
12440 | enable_gtktest=yes | |
a0b9e27f MB |
12441 | fi |
12442 | ||
21d1c967 GD |
12443 | |
12444 | for module in . $GTK_MODULES | |
12445 | do | |
12446 | case "$module" in | |
a0b9e27f | 12447 | gthread) |
21d1c967 GD |
12448 | gtk_config_args="$gtk_config_args gthread" |
12449 | ;; | |
12450 | esac | |
12451 | done | |
12452 | ||
12453 | if test x$gtk_config_exec_prefix != x ; then | |
12454 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
12455 | if test x${GTK_CONFIG+set} != xset ; then | |
12456 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
12457 | fi | |
12458 | fi | |
12459 | if test x$gtk_config_prefix != x ; then | |
12460 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
12461 | if test x${GTK_CONFIG+set} != xset ; then | |
12462 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
12463 | fi | |
12464 | fi | |
12465 | ||
12466 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
12467 | set dummy gtk-config; ac_word=$2 | |
a0b9e27f | 12468 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
db82f09e | 12469 | echo "configure:12470: checking for $ac_word" >&5 |
a0b9e27f MB |
12470 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
12471 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12472 | else |
a0b9e27f MB |
12473 | case "$GTK_CONFIG" in |
12474 | /*) | |
21d1c967 GD |
12475 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
12476 | ;; | |
a0b9e27f MB |
12477 | ?:/*) |
12478 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
12479 | ;; | |
21d1c967 | 12480 | *) |
a0b9e27f MB |
12481 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
12482 | ac_dummy="$PATH" | |
12483 | for ac_dir in $ac_dummy; do | |
12484 | test -z "$ac_dir" && ac_dir=. | |
12485 | if test -f $ac_dir/$ac_word; then | |
12486 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
12487 | break | |
12488 | fi | |
12489 | done | |
12490 | IFS="$ac_save_ifs" | |
21d1c967 GD |
12491 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
12492 | ;; | |
12493 | esac | |
12494 | fi | |
a0b9e27f | 12495 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
21d1c967 | 12496 | if test -n "$GTK_CONFIG"; then |
a0b9e27f | 12497 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
21d1c967 | 12498 | else |
a0b9e27f | 12499 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12500 | fi |
12501 | ||
12502 | min_gtk_version=1.2.7 | |
a0b9e27f | 12503 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
db82f09e | 12504 | echo "configure:12505: checking for GTK - version >= $min_gtk_version" >&5 |
21d1c967 GD |
12505 | no_gtk="" |
12506 | if test "$GTK_CONFIG" = "no" ; then | |
12507 | no_gtk=yes | |
12508 | else | |
12509 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
12510 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
12511 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12512 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12513 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12514 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12515 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12516 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12517 | if test "x$enable_gtktest" = "xyes" ; then | |
12518 | ac_save_CFLAGS="$CFLAGS" | |
12519 | ac_save_LIBS="$LIBS" | |
12520 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12521 | LIBS="$GTK_LIBS $LIBS" | |
12522 | rm -f conf.gtktest | |
12523 | if test "$cross_compiling" = yes; then | |
12524 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 12525 | else |
a0b9e27f | 12526 | cat > conftest.$ac_ext <<EOF |
db82f09e | 12527 | #line 12528 "configure" |
f79bd02d JS |
12528 | #include "confdefs.h" |
12529 | ||
21d1c967 GD |
12530 | #include <gtk/gtk.h> |
12531 | #include <stdio.h> | |
12532 | #include <stdlib.h> | |
f79bd02d | 12533 | |
a0b9e27f | 12534 | int |
21d1c967 GD |
12535 | main () |
12536 | { | |
12537 | int major, minor, micro; | |
12538 | char *tmp_version; | |
12539 | ||
12540 | system ("touch conf.gtktest"); | |
12541 | ||
12542 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
12543 | tmp_version = g_strdup("$min_gtk_version"); | |
12544 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12545 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12546 | exit(1); | |
12547 | } | |
90dd450c | 12548 | |
21d1c967 GD |
12549 | if ((gtk_major_version != $gtk_config_major_version) || |
12550 | (gtk_minor_version != $gtk_config_minor_version) || | |
12551 | (gtk_micro_version != $gtk_config_micro_version)) | |
12552 | { | |
a0b9e27f | 12553 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
12554 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
12555 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12556 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
12557 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12558 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12559 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12560 | printf("*** required on your system.\n"); | |
12561 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
12562 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
12563 | printf("*** before re-running configure\n"); | |
a0b9e27f | 12564 | } |
21d1c967 GD |
12565 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
12566 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
12567 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12568 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12569 | { | |
12570 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12571 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12572 | printf("*** library (version %d.%d.%d)\n", | |
12573 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12574 | } | |
12575 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
12576 | else | |
12577 | { | |
12578 | if ((gtk_major_version > major) || | |
12579 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12580 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12581 | { | |
12582 | return 0; | |
12583 | } | |
12584 | else | |
12585 | { | |
12586 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12587 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12588 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12589 | major, minor, micro); | |
12590 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12591 | printf("***\n"); | |
12592 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12593 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
12594 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12595 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
12596 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
12597 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12598 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12599 | } | |
12600 | } | |
12601 | return 1; | |
12602 | } | |
12603 | ||
a0b9e27f | 12604 | EOF |
db82f09e | 12605 | if { (eval echo configure:12606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 12606 | then |
21d1c967 GD |
12607 | : |
12608 | else | |
a0b9e27f MB |
12609 | echo "configure: failed program was:" >&5 |
12610 | cat conftest.$ac_ext >&5 | |
12611 | rm -fr conftest* | |
12612 | no_gtk=yes | |
21d1c967 | 12613 | fi |
a0b9e27f | 12614 | rm -fr conftest* |
21d1c967 | 12615 | fi |
a0b9e27f | 12616 | |
21d1c967 GD |
12617 | CFLAGS="$ac_save_CFLAGS" |
12618 | LIBS="$ac_save_LIBS" | |
12619 | fi | |
12620 | fi | |
12621 | if test "x$no_gtk" = x ; then | |
a0b9e27f MB |
12622 | echo "$ac_t""yes" 1>&6 |
12623 | wx_cv_lib_gtk=1.2.7 | |
21d1c967 | 12624 | else |
a0b9e27f | 12625 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12626 | if test "$GTK_CONFIG" = "no" ; then |
12627 | echo "*** The gtk-config script installed by GTK could not be found" | |
12628 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
12629 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
12630 | echo "*** full path to gtk-config." | |
12631 | else | |
12632 | if test -f conf.gtktest ; then | |
12633 | : | |
12634 | else | |
12635 | echo "*** Could not run GTK test program, checking why..." | |
12636 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12637 | LIBS="$LIBS $GTK_LIBS" | |
a0b9e27f | 12638 | cat > conftest.$ac_ext <<EOF |
db82f09e | 12639 | #line 12640 "configure" |
21d1c967 GD |
12640 | #include "confdefs.h" |
12641 | ||
12642 | #include <gtk/gtk.h> | |
12643 | #include <stdio.h> | |
12644 | ||
a0b9e27f MB |
12645 | int main() { |
12646 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
12647 | ; return 0; } | |
12648 | EOF | |
db82f09e | 12649 | if { (eval echo configure:12650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 12650 | rm -rf conftest* |
21d1c967 GD |
12651 | echo "*** The test program compiled, but did not run. This usually means" |
12652 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
12653 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
12654 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12655 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12656 | echo "*** is required on your system" | |
12657 | echo "***" | |
12658 | echo "*** If you have an old version installed, it is best to remove it, although" | |
12659 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
12660 | echo "***" | |
12661 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
12662 | echo "*** came with the system with the command" | |
12663 | echo "***" | |
a0b9e27f | 12664 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 12665 | else |
a0b9e27f MB |
12666 | echo "configure: failed program was:" >&5 |
12667 | cat conftest.$ac_ext >&5 | |
12668 | rm -rf conftest* | |
12669 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
12670 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
12671 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
a0b9e27f | 12672 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 12673 | fi |
a0b9e27f | 12674 | rm -f conftest* |
21d1c967 GD |
12675 | CFLAGS="$ac_save_CFLAGS" |
12676 | LIBS="$ac_save_LIBS" | |
12677 | fi | |
12678 | fi | |
12679 | GTK_CFLAGS="" | |
12680 | GTK_LIBS="" | |
12681 | : | |
12682 | fi | |
a0b9e27f MB |
12683 | |
12684 | ||
21d1c967 GD |
12685 | rm -f conf.gtktest |
12686 | ||
12687 | fi | |
12688 | ||
12689 | if test -z "$wx_cv_lib_gtk"; then | |
a0b9e27f | 12690 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
21d1c967 GD |
12691 | if test "${with_gtk_prefix+set}" = set; then |
12692 | withval="$with_gtk_prefix" | |
12693 | gtk_config_prefix="$withval" | |
12694 | else | |
12695 | gtk_config_prefix="" | |
a0b9e27f | 12696 | fi |
f79bd02d | 12697 | |
21d1c967 GD |
12698 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
12699 | if test "${with_gtk_exec_prefix+set}" = set; then | |
12700 | withval="$with_gtk_exec_prefix" | |
12701 | gtk_config_exec_prefix="$withval" | |
12702 | else | |
12703 | gtk_config_exec_prefix="" | |
a0b9e27f MB |
12704 | fi |
12705 | ||
21d1c967 GD |
12706 | # Check whether --enable-gtktest or --disable-gtktest was given. |
12707 | if test "${enable_gtktest+set}" = set; then | |
12708 | enableval="$enable_gtktest" | |
a0b9e27f | 12709 | : |
90dd450c | 12710 | else |
21d1c967 | 12711 | enable_gtktest=yes |
a0b9e27f MB |
12712 | fi |
12713 | ||
21d1c967 GD |
12714 | |
12715 | for module in . $GTK_MODULES | |
12716 | do | |
12717 | case "$module" in | |
a0b9e27f | 12718 | gthread) |
21d1c967 GD |
12719 | gtk_config_args="$gtk_config_args gthread" |
12720 | ;; | |
12721 | esac | |
12722 | done | |
12723 | ||
12724 | if test x$gtk_config_exec_prefix != x ; then | |
12725 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
12726 | if test x${GTK_CONFIG+set} != xset ; then | |
12727 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
12728 | fi | |
12729 | fi | |
12730 | if test x$gtk_config_prefix != x ; then | |
12731 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
12732 | if test x${GTK_CONFIG+set} != xset ; then | |
12733 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
12734 | fi | |
12735 | fi | |
12736 | ||
12737 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
12738 | set dummy gtk-config; ac_word=$2 | |
a0b9e27f | 12739 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
db82f09e | 12740 | echo "configure:12741: checking for $ac_word" >&5 |
a0b9e27f MB |
12741 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
12742 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 12743 | else |
a0b9e27f MB |
12744 | case "$GTK_CONFIG" in |
12745 | /*) | |
21d1c967 GD |
12746 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
12747 | ;; | |
a0b9e27f MB |
12748 | ?:/*) |
12749 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
12750 | ;; | |
21d1c967 | 12751 | *) |
a0b9e27f MB |
12752 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
12753 | ac_dummy="$PATH" | |
12754 | for ac_dir in $ac_dummy; do | |
12755 | test -z "$ac_dir" && ac_dir=. | |
12756 | if test -f $ac_dir/$ac_word; then | |
12757 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
12758 | break | |
12759 | fi | |
12760 | done | |
12761 | IFS="$ac_save_ifs" | |
21d1c967 GD |
12762 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
12763 | ;; | |
12764 | esac | |
12765 | fi | |
a0b9e27f | 12766 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
21d1c967 | 12767 | if test -n "$GTK_CONFIG"; then |
a0b9e27f | 12768 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
21d1c967 | 12769 | else |
a0b9e27f | 12770 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12771 | fi |
12772 | ||
12773 | min_gtk_version=1.2.3 | |
a0b9e27f | 12774 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
db82f09e | 12775 | echo "configure:12776: checking for GTK - version >= $min_gtk_version" >&5 |
21d1c967 GD |
12776 | no_gtk="" |
12777 | if test "$GTK_CONFIG" = "no" ; then | |
12778 | no_gtk=yes | |
12779 | else | |
12780 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
12781 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
12782 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12783 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12784 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12785 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12786 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12787 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12788 | if test "x$enable_gtktest" = "xyes" ; then | |
12789 | ac_save_CFLAGS="$CFLAGS" | |
12790 | ac_save_LIBS="$LIBS" | |
12791 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12792 | LIBS="$GTK_LIBS $LIBS" | |
12793 | rm -f conf.gtktest | |
12794 | if test "$cross_compiling" = yes; then | |
12795 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
12796 | else | |
a0b9e27f | 12797 | cat > conftest.$ac_ext <<EOF |
db82f09e | 12798 | #line 12799 "configure" |
f79bd02d | 12799 | #include "confdefs.h" |
21d1c967 GD |
12800 | |
12801 | #include <gtk/gtk.h> | |
12802 | #include <stdio.h> | |
12803 | #include <stdlib.h> | |
12804 | ||
a0b9e27f | 12805 | int |
21d1c967 GD |
12806 | main () |
12807 | { | |
12808 | int major, minor, micro; | |
12809 | char *tmp_version; | |
12810 | ||
12811 | system ("touch conf.gtktest"); | |
12812 | ||
12813 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
12814 | tmp_version = g_strdup("$min_gtk_version"); | |
12815 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12816 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12817 | exit(1); | |
12818 | } | |
12819 | ||
12820 | if ((gtk_major_version != $gtk_config_major_version) || | |
12821 | (gtk_minor_version != $gtk_config_minor_version) || | |
12822 | (gtk_micro_version != $gtk_config_micro_version)) | |
12823 | { | |
a0b9e27f | 12824 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
12825 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
12826 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12827 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
12828 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12829 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12830 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12831 | printf("*** required on your system.\n"); | |
12832 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
12833 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
12834 | printf("*** before re-running configure\n"); | |
a0b9e27f | 12835 | } |
21d1c967 GD |
12836 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
12837 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
12838 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12839 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12840 | { | |
12841 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12842 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12843 | printf("*** library (version %d.%d.%d)\n", | |
12844 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12845 | } | |
12846 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
12847 | else | |
12848 | { | |
12849 | if ((gtk_major_version > major) || | |
12850 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12851 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12852 | { | |
12853 | return 0; | |
12854 | } | |
12855 | else | |
12856 | { | |
12857 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12858 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12859 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12860 | major, minor, micro); | |
12861 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12862 | printf("***\n"); | |
12863 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12864 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
12865 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12866 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
12867 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
12868 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12869 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12870 | } | |
12871 | } | |
12872 | return 1; | |
12873 | } | |
12874 | ||
a0b9e27f | 12875 | EOF |
db82f09e | 12876 | if { (eval echo configure:12877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 12877 | then |
21d1c967 GD |
12878 | : |
12879 | else | |
a0b9e27f MB |
12880 | echo "configure: failed program was:" >&5 |
12881 | cat conftest.$ac_ext >&5 | |
12882 | rm -fr conftest* | |
12883 | no_gtk=yes | |
21d1c967 | 12884 | fi |
a0b9e27f | 12885 | rm -fr conftest* |
21d1c967 | 12886 | fi |
a0b9e27f | 12887 | |
21d1c967 GD |
12888 | CFLAGS="$ac_save_CFLAGS" |
12889 | LIBS="$ac_save_LIBS" | |
12890 | fi | |
12891 | fi | |
12892 | if test "x$no_gtk" = x ; then | |
a0b9e27f MB |
12893 | echo "$ac_t""yes" 1>&6 |
12894 | wx_cv_lib_gtk=1.2.3 | |
21d1c967 | 12895 | else |
a0b9e27f | 12896 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12897 | if test "$GTK_CONFIG" = "no" ; then |
12898 | echo "*** The gtk-config script installed by GTK could not be found" | |
12899 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
12900 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
12901 | echo "*** full path to gtk-config." | |
12902 | else | |
12903 | if test -f conf.gtktest ; then | |
12904 | : | |
12905 | else | |
12906 | echo "*** Could not run GTK test program, checking why..." | |
12907 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12908 | LIBS="$LIBS $GTK_LIBS" | |
a0b9e27f | 12909 | cat > conftest.$ac_ext <<EOF |
db82f09e | 12910 | #line 12911 "configure" |
21d1c967 GD |
12911 | #include "confdefs.h" |
12912 | ||
12913 | #include <gtk/gtk.h> | |
12914 | #include <stdio.h> | |
f79bd02d | 12915 | |
a0b9e27f MB |
12916 | int main() { |
12917 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
12918 | ; return 0; } | |
12919 | EOF | |
db82f09e | 12920 | if { (eval echo configure:12921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 12921 | rm -rf conftest* |
21d1c967 GD |
12922 | echo "*** The test program compiled, but did not run. This usually means" |
12923 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
12924 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
12925 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12926 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12927 | echo "*** is required on your system" | |
12928 | echo "***" | |
12929 | echo "*** If you have an old version installed, it is best to remove it, although" | |
12930 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
12931 | echo "***" | |
12932 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
12933 | echo "*** came with the system with the command" | |
12934 | echo "***" | |
a0b9e27f | 12935 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 12936 | else |
a0b9e27f MB |
12937 | echo "configure: failed program was:" >&5 |
12938 | cat conftest.$ac_ext >&5 | |
12939 | rm -rf conftest* | |
12940 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
12941 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
12942 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
a0b9e27f | 12943 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 12944 | fi |
a0b9e27f | 12945 | rm -f conftest* |
21d1c967 GD |
12946 | CFLAGS="$ac_save_CFLAGS" |
12947 | LIBS="$ac_save_LIBS" | |
12948 | fi | |
12949 | fi | |
12950 | GTK_CFLAGS="" | |
12951 | GTK_LIBS="" | |
12952 | : | |
12953 | fi | |
a0b9e27f MB |
12954 | |
12955 | ||
21d1c967 | 12956 | rm -f conf.gtktest |
f79bd02d | 12957 | |
21d1c967 GD |
12958 | fi |
12959 | ||
12960 | if test -z "$wx_cv_lib_gtk"; then | |
12961 | wx_cv_lib_gtk=none | |
12962 | else | |
12963 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
12964 | wx_cv_libs_gtk=$GTK_LIBS | |
12965 | fi | |
a0b9e27f MB |
12966 | |
12967 | ||
5c6fa7d2 | 12968 | fi |
52127426 | 12969 | |
8284b0c5 | 12970 | |
21d1c967 | 12971 | if test "$gtk_version_cached" = 1; then |
a0b9e27f | 12972 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 |
21d1c967 GD |
12973 | fi |
12974 | ||
12975 | case "$wx_cv_lib_gtk" in | |
12976 | 2.0) WXGTK20=1 | |
12977 | ;; | |
12978 | 1.2.7) WXGTK127=1 | |
12979 | WXGTK12=1 | |
12980 | ;; | |
12981 | 1.2.3) WXGTK12=1 | |
12982 | ;; | |
a0b9e27f | 12983 | *) { echo "configure: error: |
247f5006 VZ |
12984 | Please check that gtk-config is in path, the directory |
12985 | where GTK+ libraries are installed (returned by | |
12986 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
12987 | equivalent variable and GTK+ is version 1.2.3 or above. | |
a0b9e27f | 12988 | " 1>&2; exit 1; } |
21d1c967 GD |
12989 | ;; |
12990 | esac | |
12991 | ||
b13cd66e VZ |
12992 | if test "$WXGTK20" = 1; then |
12993 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
a0b9e27f | 12994 | |
f09359cf VS |
12995 | succeeded=no |
12996 | ||
12997 | if test -z "$PKG_CONFIG"; then | |
12998 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
12999 | set dummy pkg-config; ac_word=$2 | |
a0b9e27f | 13000 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
db82f09e | 13001 | echo "configure:13002: checking for $ac_word" >&5 |
a0b9e27f MB |
13002 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
13003 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f09359cf | 13004 | else |
a0b9e27f MB |
13005 | case "$PKG_CONFIG" in |
13006 | /*) | |
f09359cf VS |
13007 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
13008 | ;; | |
a0b9e27f MB |
13009 | ?:/*) |
13010 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
13011 | ;; | |
f09359cf | 13012 | *) |
a0b9e27f MB |
13013 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
13014 | ac_dummy="$PATH" | |
13015 | for ac_dir in $ac_dummy; do | |
13016 | test -z "$ac_dir" && ac_dir=. | |
13017 | if test -f $ac_dir/$ac_word; then | |
13018 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
13019 | break | |
13020 | fi | |
13021 | done | |
13022 | IFS="$ac_save_ifs" | |
f09359cf VS |
13023 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
13024 | ;; | |
13025 | esac | |
13026 | fi | |
a0b9e27f | 13027 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
f09359cf | 13028 | if test -n "$PKG_CONFIG"; then |
a0b9e27f | 13029 | echo "$ac_t""$PKG_CONFIG" 1>&6 |
f09359cf | 13030 | else |
a0b9e27f | 13031 | echo "$ac_t""no" 1>&6 |
f09359cf VS |
13032 | fi |
13033 | ||
13034 | fi | |
13035 | ||
13036 | if test "$PKG_CONFIG" = "no" ; then | |
13037 | echo "*** The pkg-config script could not be found. Make sure it is" | |
13038 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
13039 | echo "*** to the full path to pkg-config." | |
13040 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
13041 | else | |
13042 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
13043 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
a0b9e27f | 13044 | echo $ac_n "checking for pangoft2""... $ac_c" 1>&6 |
db82f09e | 13045 | echo "configure:13046: checking for pangoft2" >&5 |
f09359cf VS |
13046 | |
13047 | if $PKG_CONFIG --exists "pangoft2" ; then | |
a0b9e27f | 13048 | echo "$ac_t""yes" 1>&6 |
f09359cf VS |
13049 | succeeded=yes |
13050 | ||
a0b9e27f | 13051 | echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6 |
db82f09e | 13052 | echo "configure:13053: checking PANGOFT2_CFLAGS" >&5 |
f09359cf | 13053 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
a0b9e27f | 13054 | echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6 |
f09359cf | 13055 | |
a0b9e27f | 13056 | echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6 |
db82f09e | 13057 | echo "configure:13058: checking PANGOFT2_LIBS" >&5 |
f09359cf | 13058 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
a0b9e27f | 13059 | echo "$ac_t""$PANGOFT2_LIBS" 1>&6 |
f09359cf VS |
13060 | else |
13061 | PANGOFT2_CFLAGS="" | |
13062 | PANGOFT2_LIBS="" | |
a0b9e27f | 13063 | ## If we have a custom action on failure, don't print errors, but |
f09359cf VS |
13064 | ## do set a variable so people can do so. |
13065 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
a0b9e27f | 13066 | |
f09359cf VS |
13067 | fi |
13068 | ||
a0b9e27f MB |
13069 | |
13070 | ||
f09359cf VS |
13071 | else |
13072 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
13073 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
13074 | fi | |
13075 | fi | |
13076 | ||
13077 | if test $succeeded = yes; then | |
a0b9e27f | 13078 | |
b13cd66e VZ |
13079 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" |
13080 | LIBS="$LIBS $PANGOFT2_LIBS" | |
a0b9e27f | 13081 | |
f09359cf | 13082 | else |
a0b9e27f MB |
13083 | |
13084 | echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2 | |
b13cd66e | 13085 | wxUSE_PRINTING_ARCHITECTURE="no" |
a0b9e27f MB |
13086 | |
13087 | ||
f09359cf VS |
13088 | fi |
13089 | ||
b13cd66e | 13090 | fi |
f09359cf VS |
13091 | fi |
13092 | ||
21d1c967 GD |
13093 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
13094 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" | |
13095 | ||
13096 | AFMINSTALL=afminstall | |
13097 | TOOLKIT=GTK | |
13098 | GUIDIST=GTK_DIST | |
13099 | ||
a0b9e27f | 13100 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
db82f09e | 13101 | echo "configure:13102: checking for gdk_im_open in -lgdk" >&5 |
a0b9e27f MB |
13102 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
13103 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13104 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13105 | else |
a0b9e27f | 13106 | ac_save_LIBS="$LIBS" |
21d1c967 | 13107 | LIBS="-lgdk $LIBS" |
a0b9e27f | 13108 | cat > conftest.$ac_ext <<EOF |
db82f09e | 13109 | #line 13110 "configure" |
90dd450c | 13110 | #include "confdefs.h" |
5c6fa7d2 | 13111 | /* Override any gcc2 internal prototype to avoid an error. */ |
5c6fa7d2 | 13112 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
13113 | builtin and then its argument prototype would still apply. */ |
13114 | char gdk_im_open(); | |
13115 | ||
13116 | int main() { | |
13117 | gdk_im_open() | |
13118 | ; return 0; } | |
13119 | EOF | |
db82f09e | 13120 | if { (eval echo configure:13121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13121 | rm -rf conftest* |
13122 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13123 | else | |
13124 | echo "configure: failed program was:" >&5 | |
13125 | cat conftest.$ac_ext >&5 | |
13126 | rm -rf conftest* | |
13127 | eval "ac_cv_lib_$ac_lib_var=no" | |
13128 | fi | |
13129 | rm -f conftest* | |
13130 | LIBS="$ac_save_LIBS" | |
13131 | ||
13132 | fi | |
13133 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13134 | echo "$ac_t""yes" 1>&6 | |
13135 | cat >> confdefs.h <<\EOF | |
21d1c967 | 13136 | #define HAVE_XIM 1 |
a0b9e27f | 13137 | EOF |
21d1c967 | 13138 | |
a0b9e27f MB |
13139 | else |
13140 | echo "$ac_t""no" 1>&6 | |
90dd450c | 13141 | fi |
1e6feb95 | 13142 | |
21d1c967 | 13143 | fi |
1e6feb95 | 13144 | |
21d1c967 | 13145 | if test "$wxUSE_MGL" = 1; then |
a0b9e27f | 13146 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 |
db82f09e | 13147 | echo "configure:13148: checking for SciTech MGL library" >&5 |
21d1c967 | 13148 | if test "x$MGL_ROOT" = x ; then |
a0b9e27f MB |
13149 | echo "$ac_t""not found" 1>&6 |
13150 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
21d1c967 | 13151 | else |
a0b9e27f | 13152 | echo "$ac_t""$MGL_ROOT" 1>&6 |
21d1c967 GD |
13153 | fi |
13154 | ||
13155 | case "${host}" in | |
13156 | *-*-linux* ) | |
13157 | mgl_os=linux/gcc/glibc | |
13158 | ;; | |
13159 | *-pc-msdosdjgpp ) | |
13160 | mgl_os=dos32/dj2 | |
13161 | ;; | |
13162 | *) | |
a0b9e27f | 13163 | { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; } |
21d1c967 | 13164 | esac |
1e6feb95 | 13165 | |
21d1c967 | 13166 | mgl_lib_type="" |
3fcdd07b | 13167 | |
21d1c967 GD |
13168 | if test "$wxUSE_DEBUG_FLAG" = yes ; then |
13169 | if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \ | |
13170 | -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then | |
13171 | mgl_lib_type=debug | |
13172 | fi | |
13173 | fi | |
13174 | if test "x$mgl_lib_type" = x ; then | |
13175 | if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \ | |
13176 | -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then | |
13177 | mgl_lib_type=release | |
13178 | else | |
a0b9e27f | 13179 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } |
21d1c967 | 13180 | fi |
90dd450c | 13181 | fi |
2224580a | 13182 | |
1d1b75ac VZ |
13183 | wxUSE_UNIVERSAL="yes" |
13184 | ||
21d1c967 GD |
13185 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" |
13186 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
13187 | ||
90dd450c | 13188 | AFMINSTALL=afminstall |
21d1c967 GD |
13189 | TOOLKIT=MGL |
13190 | GUIDIST=MGL_DIST | |
13191 | fi | |
dad6c0ea | 13192 | |
21d1c967 | 13193 | if test "$wxUSE_MICROWIN" = 1; then |
a0b9e27f | 13194 | echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6 |
db82f09e | 13195 | echo "configure:13196: checking for MicroWindows" >&5 |
21d1c967 | 13196 | if test "x$MICROWINDOWS" = x ; then |
a0b9e27f MB |
13197 | echo "$ac_t""not found" 1>&6 |
13198 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; } | |
21d1c967 | 13199 | else |
a0b9e27f | 13200 | echo "$ac_t""$MICROWINDOWS" 1>&6 |
21d1c967 | 13201 | fi |
f6bcfd97 | 13202 | |
21d1c967 | 13203 | if test -f $MICROWINDOWS/lib/libmwin.a; then |
a0b9e27f | 13204 | echo "$ac_t""MicroWindows' libraries found." 1>&6 |
21d1c967 | 13205 | else |
a0b9e27f | 13206 | { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; } |
90dd450c | 13207 | fi |
0b2effe9 | 13208 | |
21d1c967 GD |
13209 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" |
13210 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
13211 | ||
1d1b75ac VZ |
13212 | wxUSE_UNIVERSAL="yes" |
13213 | ||
21d1c967 GD |
13214 | AFMINSTALL=afminstall |
13215 | TOOLKIT=MICROWIN | |
13216 | GUIDIST=MICROWIN_DIST | |
1d1b75ac VZ |
13217 | |
13218 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
21d1c967 | 13219 | fi |
f6bcfd97 | 13220 | |
21d1c967 | 13221 | if test "$wxUSE_X11" = 1; then |
a0b9e27f MB |
13222 | # If we find X, set shell vars x_includes and x_libraries to the |
13223 | # paths, otherwise set no_x=yes. | |
13224 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
13225 | # --without-x overrides everything else, but does not touch the cache. | |
13226 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
db82f09e | 13227 | echo "configure:13228: checking for X" >&5 |
d8356fa3 | 13228 | |
21d1c967 GD |
13229 | # Check whether --with-x or --without-x was given. |
13230 | if test "${with_x+set}" = set; then | |
13231 | withval="$with_x" | |
a0b9e27f MB |
13232 | : |
13233 | fi | |
2224580a | 13234 | |
21d1c967 GD |
13235 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
13236 | if test "x$with_x" = xno; then | |
13237 | # The user explicitly disabled X. | |
13238 | have_x=disabled | |
13239 | else | |
13240 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
13241 | # Both variables are already set. | |
13242 | have_x=yes | |
13243 | else | |
a0b9e27f MB |
13244 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
13245 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 GD |
13246 | else |
13247 | # One or both of the vars are not set, and there is no cached value. | |
a0b9e27f MB |
13248 | ac_x_includes=NO ac_x_libraries=NO |
13249 | rm -fr conftestdir | |
13250 | if mkdir conftestdir; then | |
13251 | cd conftestdir | |
21d1c967 | 13252 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
a0b9e27f | 13253 | cat > Imakefile <<'EOF' |
21d1c967 GD |
13254 | acfindx: |
13255 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
a0b9e27f | 13256 | EOF |
21d1c967 GD |
13257 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
13258 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
13259 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
13260 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
13261 | for ac_extension in a so sl; do | |
13262 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
a0b9e27f | 13263 | test -f $ac_im_libdir/libX11.$ac_extension; then |
21d1c967 GD |
13264 | ac_im_usrlibdir=$ac_im_libdir; break |
13265 | fi | |
13266 | done | |
13267 | # Screen out bogus values from the imake configuration. They are | |
13268 | # bogus both because they are the default anyway, and because | |
13269 | # using them would break gcc on systems where it needs fixed includes. | |
a0b9e27f | 13270 | case "$ac_im_incroot" in |
21d1c967 | 13271 | /usr/include) ;; |
a0b9e27f | 13272 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
21d1c967 | 13273 | esac |
a0b9e27f | 13274 | case "$ac_im_usrlibdir" in |
21d1c967 | 13275 | /usr/lib | /lib) ;; |
a0b9e27f | 13276 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
21d1c967 GD |
13277 | esac |
13278 | fi | |
13279 | cd .. | |
a0b9e27f | 13280 | rm -fr conftestdir |
21d1c967 | 13281 | fi |
10f2d63a | 13282 | |
a0b9e27f MB |
13283 | if test "$ac_x_includes" = NO; then |
13284 | # Guess where to find include files, by looking for this one X11 .h file. | |
13285 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
13286 | ||
21d1c967 | 13287 | # First, try using that file with no special directory specified. |
a0b9e27f | 13288 | cat > conftest.$ac_ext <<EOF |
db82f09e | 13289 | #line 13290 "configure" |
21d1c967 | 13290 | #include "confdefs.h" |
a0b9e27f MB |
13291 | #include <$x_direct_test_include> |
13292 | EOF | |
13293 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
db82f09e | 13294 | { (eval echo configure:13295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
13295 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13296 | if test -z "$ac_err"; then | |
13297 | rm -rf conftest* | |
21d1c967 GD |
13298 | # We can compile using X headers with no special include directory. |
13299 | ac_x_includes= | |
90dd450c | 13300 | else |
a0b9e27f MB |
13301 | echo "$ac_err" >&5 |
13302 | echo "configure: failed program was:" >&5 | |
90dd450c | 13303 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
13304 | rm -rf conftest* |
13305 | # Look for the header file in a standard set of common directories. | |
13306 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
13307 | for ac_dir in \ | |
13308 | /usr/X11/include \ | |
13309 | /usr/X11R6/include \ | |
13310 | /usr/X11R5/include \ | |
13311 | /usr/X11R4/include \ | |
13312 | \ | |
13313 | /usr/include/X11 \ | |
13314 | /usr/include/X11R6 \ | |
13315 | /usr/include/X11R5 \ | |
13316 | /usr/include/X11R4 \ | |
13317 | \ | |
13318 | /usr/local/X11/include \ | |
13319 | /usr/local/X11R6/include \ | |
13320 | /usr/local/X11R5/include \ | |
13321 | /usr/local/X11R4/include \ | |
13322 | \ | |
13323 | /usr/local/include/X11 \ | |
13324 | /usr/local/include/X11R6 \ | |
13325 | /usr/local/include/X11R5 \ | |
13326 | /usr/local/include/X11R4 \ | |
13327 | \ | |
13328 | /usr/X386/include \ | |
13329 | /usr/x386/include \ | |
13330 | /usr/XFree86/include/X11 \ | |
13331 | \ | |
13332 | /usr/include \ | |
13333 | /usr/local/include \ | |
13334 | /usr/unsupported/include \ | |
13335 | /usr/athena/include \ | |
13336 | /usr/local/x11r5/include \ | |
13337 | /usr/lpp/Xamples/include \ | |
13338 | \ | |
13339 | /usr/openwin/include \ | |
13340 | /usr/openwin/share/include \ | |
13341 | ; \ | |
13342 | do | |
13343 | if test -r "$ac_dir/$x_direct_test_include"; then | |
13344 | ac_x_includes=$ac_dir | |
13345 | break | |
13346 | fi | |
13347 | done | |
3a922bb4 | 13348 | fi |
a0b9e27f MB |
13349 | rm -f conftest* |
13350 | fi # $ac_x_includes = NO | |
10f2d63a | 13351 | |
a0b9e27f | 13352 | if test "$ac_x_libraries" = NO; then |
21d1c967 | 13353 | # Check for the libraries. |
a0b9e27f MB |
13354 | |
13355 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
13356 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
13357 | ||
21d1c967 GD |
13358 | # See if we find them without any special options. |
13359 | # Don't add to $LIBS permanently. | |
a0b9e27f MB |
13360 | ac_save_LIBS="$LIBS" |
13361 | LIBS="-l$x_direct_test_library $LIBS" | |
13362 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 13363 | #line 13364 "configure" |
3a922bb4 | 13364 | #include "confdefs.h" |
a0b9e27f MB |
13365 | |
13366 | int main() { | |
13367 | ${x_direct_test_function}() | |
13368 | ; return 0; } | |
13369 | EOF | |
db82f09e | 13370 | if { (eval echo configure:13371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13371 | rm -rf conftest* |
13372 | LIBS="$ac_save_LIBS" | |
21d1c967 GD |
13373 | # We can link X programs with no special library path. |
13374 | ac_x_libraries= | |
3a922bb4 | 13375 | else |
a0b9e27f MB |
13376 | echo "configure: failed program was:" >&5 |
13377 | cat conftest.$ac_ext >&5 | |
13378 | rm -rf conftest* | |
13379 | LIBS="$ac_save_LIBS" | |
13380 | # First see if replacing the include by lib works. | |
13381 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
13382 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
13383 | /usr/X11/lib \ | |
13384 | /usr/X11R6/lib \ | |
13385 | /usr/X11R5/lib \ | |
13386 | /usr/X11R4/lib \ | |
13387 | \ | |
13388 | /usr/lib/X11 \ | |
13389 | /usr/lib/X11R6 \ | |
13390 | /usr/lib/X11R5 \ | |
13391 | /usr/lib/X11R4 \ | |
13392 | \ | |
13393 | /usr/local/X11/lib \ | |
13394 | /usr/local/X11R6/lib \ | |
13395 | /usr/local/X11R5/lib \ | |
13396 | /usr/local/X11R4/lib \ | |
13397 | \ | |
13398 | /usr/local/lib/X11 \ | |
13399 | /usr/local/lib/X11R6 \ | |
13400 | /usr/local/lib/X11R5 \ | |
13401 | /usr/local/lib/X11R4 \ | |
13402 | \ | |
13403 | /usr/X386/lib \ | |
13404 | /usr/x386/lib \ | |
13405 | /usr/XFree86/lib/X11 \ | |
13406 | \ | |
13407 | /usr/lib \ | |
13408 | /usr/local/lib \ | |
13409 | /usr/unsupported/lib \ | |
13410 | /usr/athena/lib \ | |
13411 | /usr/local/x11r5/lib \ | |
13412 | /usr/lpp/Xamples/lib \ | |
13413 | /lib/usr/lib/X11 \ | |
13414 | \ | |
13415 | /usr/openwin/lib \ | |
13416 | /usr/openwin/share/lib \ | |
13417 | ; \ | |
21d1c967 GD |
13418 | do |
13419 | for ac_extension in a so sl; do | |
a0b9e27f | 13420 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
21d1c967 GD |
13421 | ac_x_libraries=$ac_dir |
13422 | break 2 | |
13423 | fi | |
13424 | done | |
13425 | done | |
3a922bb4 | 13426 | fi |
a0b9e27f MB |
13427 | rm -f conftest* |
13428 | fi # $ac_x_libraries = NO | |
90dd450c | 13429 | |
a0b9e27f | 13430 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
21d1c967 GD |
13431 | # Didn't find X anywhere. Cache the known absence of X. |
13432 | ac_cv_have_x="have_x=no" | |
13433 | else | |
13434 | # Record where we found X for the cache. | |
13435 | ac_cv_have_x="have_x=yes \ | |
13436 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
90dd450c | 13437 | fi |
21d1c967 GD |
13438 | fi |
13439 | fi | |
13440 | eval "$ac_cv_have_x" | |
13441 | fi # $with_x != no | |
90dd450c | 13442 | |
21d1c967 | 13443 | if test "$have_x" != yes; then |
a0b9e27f | 13444 | echo "$ac_t""$have_x" 1>&6 |
21d1c967 GD |
13445 | no_x=yes |
13446 | else | |
13447 | # If each of the values was on the command line, it overrides each guess. | |
13448 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
13449 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
13450 | # Update the cache value to reflect the command line values. | |
13451 | ac_cv_have_x="have_x=yes \ | |
13452 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
a0b9e27f | 13453 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
21d1c967 | 13454 | fi |
90dd450c | 13455 | |
21d1c967 | 13456 | if test "$no_x" = yes; then |
90dd450c | 13457 | # Not all programs may use this symbol, but it does not hurt to define it. |
a0b9e27f | 13458 | cat >> confdefs.h <<\EOF |
90dd450c | 13459 | #define X_DISPLAY_MISSING 1 |
a0b9e27f | 13460 | EOF |
90dd450c VZ |
13461 | |
13462 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
13463 | else | |
13464 | if test -n "$x_includes"; then | |
13465 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
62d0491b | 13466 | fi |
3a922bb4 | 13467 | |
90dd450c VZ |
13468 | # It would also be nice to do this for all -L options, not just this one. |
13469 | if test -n "$x_libraries"; then | |
13470 | X_LIBS="$X_LIBS -L$x_libraries" | |
13471 | # For Solaris; some versions of Sun CC require a space after -R and | |
13472 | # others require no space. Words are not sufficient . . . . | |
a0b9e27f | 13473 | case "`(uname -sr) 2>/dev/null`" in |
90dd450c | 13474 | "SunOS 5"*) |
a0b9e27f | 13475 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
db82f09e | 13476 | echo "configure:13477: checking whether -R must be followed by a space" >&5 |
a0b9e27f MB |
13477 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
13478 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 13479 | #line 13480 "configure" |
90dd450c VZ |
13480 | #include "confdefs.h" |
13481 | ||
a0b9e27f | 13482 | int main() { |
90dd450c | 13483 | |
a0b9e27f MB |
13484 | ; return 0; } |
13485 | EOF | |
db82f09e | 13486 | if { (eval echo configure:13487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 13487 | rm -rf conftest* |
90dd450c | 13488 | ac_R_nospace=yes |
3a922bb4 | 13489 | else |
a0b9e27f MB |
13490 | echo "configure: failed program was:" >&5 |
13491 | cat conftest.$ac_ext >&5 | |
13492 | rm -rf conftest* | |
13493 | ac_R_nospace=no | |
3a922bb4 | 13494 | fi |
a0b9e27f | 13495 | rm -f conftest* |
90dd450c | 13496 | if test $ac_R_nospace = yes; then |
a0b9e27f | 13497 | echo "$ac_t""no" 1>&6 |
90dd450c VZ |
13498 | X_LIBS="$X_LIBS -R$x_libraries" |
13499 | else | |
13500 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
a0b9e27f | 13501 | cat > conftest.$ac_ext <<EOF |
db82f09e | 13502 | #line 13503 "configure" |
90dd450c | 13503 | #include "confdefs.h" |
3a922bb4 | 13504 | |
a0b9e27f | 13505 | int main() { |
6f754473 | 13506 | |
a0b9e27f MB |
13507 | ; return 0; } |
13508 | EOF | |
db82f09e | 13509 | if { (eval echo configure:13510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 13510 | rm -rf conftest* |
90dd450c VZ |
13511 | ac_R_space=yes |
13512 | else | |
a0b9e27f MB |
13513 | echo "configure: failed program was:" >&5 |
13514 | cat conftest.$ac_ext >&5 | |
13515 | rm -rf conftest* | |
13516 | ac_R_space=no | |
90dd450c | 13517 | fi |
a0b9e27f | 13518 | rm -f conftest* |
90dd450c | 13519 | if test $ac_R_space = yes; then |
a0b9e27f | 13520 | echo "$ac_t""yes" 1>&6 |
90dd450c VZ |
13521 | X_LIBS="$X_LIBS -R $x_libraries" |
13522 | else | |
a0b9e27f | 13523 | echo "$ac_t""neither works" 1>&6 |
90dd450c VZ |
13524 | fi |
13525 | fi | |
a0b9e27f | 13526 | LIBS="$ac_xsave_LIBS" |
90dd450c VZ |
13527 | esac |
13528 | fi | |
13529 | ||
13530 | # Check for system-dependent libraries X programs must link with. | |
13531 | # Do this before checking for the system-independent R6 libraries | |
13532 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
6f754473 | 13533 | |
90dd450c VZ |
13534 | if test "$ISC" = yes; then |
13535 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
13536 | else | |
a0b9e27f MB |
13537 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
13538 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
90dd450c | 13539 | # the Alpha needs dnet_stub (dnet does not exist). |
a0b9e27f | 13540 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
db82f09e | 13541 | echo "configure:13542: checking for dnet_ntoa in -ldnet" >&5 |
a0b9e27f MB |
13542 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13543 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13544 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 13545 | else |
a0b9e27f | 13546 | ac_save_LIBS="$LIBS" |
247f5006 | 13547 | LIBS="-ldnet $LIBS" |
a0b9e27f | 13548 | cat > conftest.$ac_ext <<EOF |
db82f09e | 13549 | #line 13550 "configure" |
247f5006 | 13550 | #include "confdefs.h" |
247f5006 | 13551 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 | 13552 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
13553 | builtin and then its argument prototype would still apply. */ |
13554 | char dnet_ntoa(); | |
13555 | ||
13556 | int main() { | |
13557 | dnet_ntoa() | |
13558 | ; return 0; } | |
13559 | EOF | |
db82f09e | 13560 | if { (eval echo configure:13561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13561 | rm -rf conftest* |
13562 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13563 | else | |
13564 | echo "configure: failed program was:" >&5 | |
13565 | cat conftest.$ac_ext >&5 | |
13566 | rm -rf conftest* | |
13567 | eval "ac_cv_lib_$ac_lib_var=no" | |
13568 | fi | |
13569 | rm -f conftest* | |
13570 | LIBS="$ac_save_LIBS" | |
13571 | ||
13572 | fi | |
13573 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13574 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13575 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
a0b9e27f MB |
13576 | else |
13577 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
13578 | fi |
13579 | ||
90dd450c | 13580 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
a0b9e27f | 13581 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
db82f09e | 13582 | echo "configure:13583: checking for dnet_ntoa in -ldnet_stub" >&5 |
a0b9e27f MB |
13583 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13584 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13585 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13586 | else |
a0b9e27f | 13587 | ac_save_LIBS="$LIBS" |
90dd450c | 13588 | LIBS="-ldnet_stub $LIBS" |
a0b9e27f | 13589 | cat > conftest.$ac_ext <<EOF |
db82f09e | 13590 | #line 13591 "configure" |
90dd450c VZ |
13591 | #include "confdefs.h" |
13592 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13593 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13594 | builtin and then its argument prototype would still apply. */ |
13595 | char dnet_ntoa(); | |
13596 | ||
13597 | int main() { | |
13598 | dnet_ntoa() | |
13599 | ; return 0; } | |
13600 | EOF | |
db82f09e | 13601 | if { (eval echo configure:13602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13602 | rm -rf conftest* |
13603 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13604 | else | |
13605 | echo "configure: failed program was:" >&5 | |
13606 | cat conftest.$ac_ext >&5 | |
13607 | rm -rf conftest* | |
13608 | eval "ac_cv_lib_$ac_lib_var=no" | |
13609 | fi | |
13610 | rm -f conftest* | |
13611 | LIBS="$ac_save_LIBS" | |
13612 | ||
13613 | fi | |
13614 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13615 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13616 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
a0b9e27f MB |
13617 | else |
13618 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
13619 | fi |
13620 | ||
90dd450c | 13621 | fi |
978f1259 | 13622 | |
90dd450c VZ |
13623 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
13624 | # to get the SysV transport functions. | |
a0b9e27f | 13625 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
90dd450c VZ |
13626 | # needs -lnsl. |
13627 | # The nsl library prevents programs from opening the X display | |
a0b9e27f MB |
13628 | # on Irix 5.2, according to dickey@clark.net. |
13629 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
db82f09e | 13630 | echo "configure:13631: checking for gethostbyname" >&5 |
a0b9e27f MB |
13631 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
13632 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13633 | else | |
13634 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 13635 | #line 13636 "configure" |
90dd450c VZ |
13636 | #include "confdefs.h" |
13637 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 13638 | which can conflict with char gethostbyname(); below. */ |
90dd450c VZ |
13639 | #include <assert.h> |
13640 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13641 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13642 | builtin and then its argument prototype would still apply. */ |
13643 | char gethostbyname(); | |
13644 | ||
13645 | int main() { | |
13646 | ||
90dd450c VZ |
13647 | /* The GNU C library defines this for functions which it implements |
13648 | to always fail with ENOSYS. Some functions are actually named | |
13649 | something starting with __ and the normal name is an alias. */ | |
13650 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
13651 | choke me | |
13652 | #else | |
a0b9e27f | 13653 | gethostbyname(); |
90dd450c | 13654 | #endif |
978f1259 | 13655 | |
a0b9e27f MB |
13656 | ; return 0; } |
13657 | EOF | |
db82f09e | 13658 | if { (eval echo configure:13659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13659 | rm -rf conftest* |
13660 | eval "ac_cv_func_gethostbyname=yes" | |
13661 | else | |
13662 | echo "configure: failed program was:" >&5 | |
13663 | cat conftest.$ac_ext >&5 | |
13664 | rm -rf conftest* | |
13665 | eval "ac_cv_func_gethostbyname=no" | |
13666 | fi | |
13667 | rm -f conftest* | |
13668 | fi | |
13669 | ||
13670 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
13671 | echo "$ac_t""yes" 1>&6 | |
13672 | : | |
13673 | else | |
13674 | echo "$ac_t""no" 1>&6 | |
13675 | fi | |
698dcdb6 | 13676 | |
90dd450c | 13677 | if test $ac_cv_func_gethostbyname = no; then |
a0b9e27f | 13678 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
db82f09e | 13679 | echo "configure:13680: checking for gethostbyname in -lnsl" >&5 |
a0b9e27f MB |
13680 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
13681 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13682 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13683 | else |
a0b9e27f | 13684 | ac_save_LIBS="$LIBS" |
90dd450c | 13685 | LIBS="-lnsl $LIBS" |
a0b9e27f | 13686 | cat > conftest.$ac_ext <<EOF |
db82f09e | 13687 | #line 13688 "configure" |
90dd450c VZ |
13688 | #include "confdefs.h" |
13689 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13690 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13691 | builtin and then its argument prototype would still apply. */ |
13692 | char gethostbyname(); | |
5c6fa7d2 | 13693 | |
a0b9e27f MB |
13694 | int main() { |
13695 | gethostbyname() | |
13696 | ; return 0; } | |
13697 | EOF | |
db82f09e | 13698 | if { (eval echo configure:13699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13699 | rm -rf conftest* |
13700 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8284b0c5 | 13701 | else |
a0b9e27f MB |
13702 | echo "configure: failed program was:" >&5 |
13703 | cat conftest.$ac_ext >&5 | |
13704 | rm -rf conftest* | |
13705 | eval "ac_cv_lib_$ac_lib_var=no" | |
13706 | fi | |
13707 | rm -f conftest* | |
13708 | LIBS="$ac_save_LIBS" | |
247f5006 | 13709 | |
a0b9e27f MB |
13710 | fi |
13711 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13712 | echo "$ac_t""yes" 1>&6 | |
13713 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
13714 | else | |
13715 | echo "$ac_t""no" 1>&6 | |
90dd450c | 13716 | fi |
b12915c1 | 13717 | |
90dd450c VZ |
13718 | fi |
13719 | ||
13720 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
13721 | # socket/setsockopt and other routines are undefined under SCO ODT | |
13722 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
a0b9e27f MB |
13723 | # on later versions), says simon@lia.di.epfl.ch: it contains |
13724 | # gethostby* variants that don't use the nameserver (or something). | |
13725 | # -lsocket must be given before -lnsl if both are needed. | |
13726 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
13727 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
db82f09e | 13728 | echo "configure:13729: checking for connect" >&5 |
a0b9e27f MB |
13729 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
13730 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13731 | else | |
13732 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 13733 | #line 13734 "configure" |
55e80573 | 13734 | #include "confdefs.h" |
90dd450c | 13735 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 13736 | which can conflict with char connect(); below. */ |
90dd450c VZ |
13737 | #include <assert.h> |
13738 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13739 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13740 | builtin and then its argument prototype would still apply. */ |
13741 | char connect(); | |
13742 | ||
13743 | int main() { | |
13744 | ||
90dd450c VZ |
13745 | /* The GNU C library defines this for functions which it implements |
13746 | to always fail with ENOSYS. Some functions are actually named | |
13747 | something starting with __ and the normal name is an alias. */ | |
13748 | #if defined (__stub_connect) || defined (__stub___connect) | |
13749 | choke me | |
13750 | #else | |
a0b9e27f | 13751 | connect(); |
90dd450c VZ |
13752 | #endif |
13753 | ||
a0b9e27f MB |
13754 | ; return 0; } |
13755 | EOF | |
db82f09e | 13756 | if { (eval echo configure:13757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13757 | rm -rf conftest* |
13758 | eval "ac_cv_func_connect=yes" | |
13759 | else | |
13760 | echo "configure: failed program was:" >&5 | |
13761 | cat conftest.$ac_ext >&5 | |
13762 | rm -rf conftest* | |
13763 | eval "ac_cv_func_connect=no" | |
13764 | fi | |
13765 | rm -f conftest* | |
13766 | fi | |
13767 | ||
13768 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
13769 | echo "$ac_t""yes" 1>&6 | |
13770 | : | |
13771 | else | |
13772 | echo "$ac_t""no" 1>&6 | |
13773 | fi | |
55e80573 | 13774 | |
90dd450c | 13775 | if test $ac_cv_func_connect = no; then |
a0b9e27f | 13776 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
db82f09e | 13777 | echo "configure:13778: checking for connect in -lsocket" >&5 |
a0b9e27f MB |
13778 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
13779 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13780 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13781 | else |
a0b9e27f | 13782 | ac_save_LIBS="$LIBS" |
90dd450c | 13783 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 13784 | cat > conftest.$ac_ext <<EOF |
db82f09e | 13785 | #line 13786 "configure" |
90dd450c VZ |
13786 | #include "confdefs.h" |
13787 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13788 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13789 | builtin and then its argument prototype would still apply. */ |
13790 | char connect(); | |
13791 | ||
13792 | int main() { | |
13793 | connect() | |
13794 | ; return 0; } | |
13795 | EOF | |
db82f09e | 13796 | if { (eval echo configure:13797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13797 | rm -rf conftest* |
13798 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13799 | else | |
13800 | echo "configure: failed program was:" >&5 | |
13801 | cat conftest.$ac_ext >&5 | |
13802 | rm -rf conftest* | |
13803 | eval "ac_cv_lib_$ac_lib_var=no" | |
13804 | fi | |
13805 | rm -f conftest* | |
13806 | LIBS="$ac_save_LIBS" | |
13807 | ||
13808 | fi | |
13809 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13810 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13811 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
a0b9e27f MB |
13812 | else |
13813 | echo "$ac_t""no" 1>&6 | |
90dd450c | 13814 | fi |
77e13408 | 13815 | |
90dd450c | 13816 | fi |
25d0687a | 13817 | |
a0b9e27f MB |
13818 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
13819 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
db82f09e | 13820 | echo "configure:13821: checking for remove" >&5 |
a0b9e27f MB |
13821 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
13822 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13823 | else |
a0b9e27f | 13824 | cat > conftest.$ac_ext <<EOF |
db82f09e | 13825 | #line 13826 "configure" |
90dd450c VZ |
13826 | #include "confdefs.h" |
13827 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 13828 | which can conflict with char remove(); below. */ |
90dd450c VZ |
13829 | #include <assert.h> |
13830 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13831 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13832 | builtin and then its argument prototype would still apply. */ |
13833 | char remove(); | |
13834 | ||
13835 | int main() { | |
13836 | ||
90dd450c VZ |
13837 | /* The GNU C library defines this for functions which it implements |
13838 | to always fail with ENOSYS. Some functions are actually named | |
13839 | something starting with __ and the normal name is an alias. */ | |
13840 | #if defined (__stub_remove) || defined (__stub___remove) | |
13841 | choke me | |
13842 | #else | |
a0b9e27f | 13843 | remove(); |
90dd450c | 13844 | #endif |
55e80573 | 13845 | |
a0b9e27f MB |
13846 | ; return 0; } |
13847 | EOF | |
db82f09e | 13848 | if { (eval echo configure:13849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13849 | rm -rf conftest* |
13850 | eval "ac_cv_func_remove=yes" | |
13851 | else | |
13852 | echo "configure: failed program was:" >&5 | |
13853 | cat conftest.$ac_ext >&5 | |
13854 | rm -rf conftest* | |
13855 | eval "ac_cv_func_remove=no" | |
13856 | fi | |
13857 | rm -f conftest* | |
13858 | fi | |
13859 | ||
13860 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
13861 | echo "$ac_t""yes" 1>&6 | |
13862 | : | |
13863 | else | |
13864 | echo "$ac_t""no" 1>&6 | |
13865 | fi | |
10f2d63a | 13866 | |
90dd450c | 13867 | if test $ac_cv_func_remove = no; then |
a0b9e27f | 13868 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
db82f09e | 13869 | echo "configure:13870: checking for remove in -lposix" >&5 |
a0b9e27f MB |
13870 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
13871 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13872 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13873 | else |
a0b9e27f | 13874 | ac_save_LIBS="$LIBS" |
90dd450c | 13875 | LIBS="-lposix $LIBS" |
a0b9e27f | 13876 | cat > conftest.$ac_ext <<EOF |
db82f09e | 13877 | #line 13878 "configure" |
90dd450c VZ |
13878 | #include "confdefs.h" |
13879 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13880 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13881 | builtin and then its argument prototype would still apply. */ |
13882 | char remove(); | |
13883 | ||
13884 | int main() { | |
13885 | remove() | |
13886 | ; return 0; } | |
13887 | EOF | |
db82f09e | 13888 | if { (eval echo configure:13889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13889 | rm -rf conftest* |
13890 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13891 | else | |
13892 | echo "configure: failed program was:" >&5 | |
13893 | cat conftest.$ac_ext >&5 | |
13894 | rm -rf conftest* | |
13895 | eval "ac_cv_lib_$ac_lib_var=no" | |
13896 | fi | |
13897 | rm -f conftest* | |
13898 | LIBS="$ac_save_LIBS" | |
13899 | ||
13900 | fi | |
13901 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13902 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13903 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
a0b9e27f MB |
13904 | else |
13905 | echo "$ac_t""no" 1>&6 | |
90dd450c | 13906 | fi |
f6bcfd97 | 13907 | |
6fa882bd RR |
13908 | fi |
13909 | ||
90dd450c | 13910 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
a0b9e27f | 13911 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
db82f09e | 13912 | echo "configure:13913: checking for shmat" >&5 |
a0b9e27f MB |
13913 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
13914 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13915 | else |
a0b9e27f | 13916 | cat > conftest.$ac_ext <<EOF |
db82f09e | 13917 | #line 13918 "configure" |
90dd450c VZ |
13918 | #include "confdefs.h" |
13919 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 13920 | which can conflict with char shmat(); below. */ |
90dd450c VZ |
13921 | #include <assert.h> |
13922 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13923 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13924 | builtin and then its argument prototype would still apply. */ |
13925 | char shmat(); | |
13926 | ||
13927 | int main() { | |
13928 | ||
90dd450c VZ |
13929 | /* The GNU C library defines this for functions which it implements |
13930 | to always fail with ENOSYS. Some functions are actually named | |
13931 | something starting with __ and the normal name is an alias. */ | |
13932 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
13933 | choke me | |
13934 | #else | |
a0b9e27f | 13935 | shmat(); |
90dd450c | 13936 | #endif |
10f2d63a | 13937 | |
a0b9e27f MB |
13938 | ; return 0; } |
13939 | EOF | |
db82f09e | 13940 | if { (eval echo configure:13941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13941 | rm -rf conftest* |
13942 | eval "ac_cv_func_shmat=yes" | |
13943 | else | |
13944 | echo "configure: failed program was:" >&5 | |
13945 | cat conftest.$ac_ext >&5 | |
13946 | rm -rf conftest* | |
13947 | eval "ac_cv_func_shmat=no" | |
13948 | fi | |
13949 | rm -f conftest* | |
13950 | fi | |
13951 | ||
13952 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
13953 | echo "$ac_t""yes" 1>&6 | |
13954 | : | |
13955 | else | |
13956 | echo "$ac_t""no" 1>&6 | |
13957 | fi | |
d08b457b | 13958 | |
90dd450c | 13959 | if test $ac_cv_func_shmat = no; then |
a0b9e27f | 13960 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
db82f09e | 13961 | echo "configure:13962: checking for shmat in -lipc" >&5 |
a0b9e27f MB |
13962 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
13963 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13964 | echo $ac_n "(cached) $ac_c" 1>&6 | |
d08b457b | 13965 | else |
a0b9e27f | 13966 | ac_save_LIBS="$LIBS" |
90dd450c | 13967 | LIBS="-lipc $LIBS" |
a0b9e27f | 13968 | cat > conftest.$ac_ext <<EOF |
db82f09e | 13969 | #line 13970 "configure" |
90dd450c | 13970 | #include "confdefs.h" |
8284b0c5 | 13971 | /* Override any gcc2 internal prototype to avoid an error. */ |
90dd450c | 13972 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
13973 | builtin and then its argument prototype would still apply. */ |
13974 | char shmat(); | |
13975 | ||
13976 | int main() { | |
13977 | shmat() | |
13978 | ; return 0; } | |
13979 | EOF | |
db82f09e | 13980 | if { (eval echo configure:13981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13981 | rm -rf conftest* |
13982 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13983 | else | |
13984 | echo "configure: failed program was:" >&5 | |
13985 | cat conftest.$ac_ext >&5 | |
13986 | rm -rf conftest* | |
13987 | eval "ac_cv_lib_$ac_lib_var=no" | |
13988 | fi | |
13989 | rm -f conftest* | |
13990 | LIBS="$ac_save_LIBS" | |
13991 | ||
13992 | fi | |
13993 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13994 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13995 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
a0b9e27f MB |
13996 | else |
13997 | echo "$ac_t""no" 1>&6 | |
d08b457b GD |
13998 | fi |
13999 | ||
d558c907 | 14000 | fi |
90dd450c | 14001 | fi |
3a922bb4 | 14002 | |
90dd450c | 14003 | # Check for libraries that X11R6 Xt/Xaw programs need. |
a0b9e27f | 14004 | ac_save_LDFLAGS="$LDFLAGS" |
90dd450c VZ |
14005 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
14006 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
14007 | # check for ICE first), but we must link in the order -lSM -lICE or | |
14008 | # we get undefined symbols. So assume we have SM if we have ICE. | |
14009 | # These have to be linked with before -lX11, unlike the other | |
14010 | # libraries we check for below, so use a different variable. | |
a0b9e27f MB |
14011 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
14012 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
db82f09e | 14013 | echo "configure:14014: checking for IceConnectionNumber in -lICE" >&5 |
a0b9e27f MB |
14014 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
14015 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14016 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14017 | else | |
14018 | ac_save_LIBS="$LIBS" | |
f09359cf | 14019 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 14020 | cat > conftest.$ac_ext <<EOF |
db82f09e | 14021 | #line 14022 "configure" |
9cfadba2 | 14022 | #include "confdefs.h" |
90dd450c VZ |
14023 | /* Override any gcc2 internal prototype to avoid an error. */ |
14024 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14025 | builtin and then its argument prototype would still apply. */ |
14026 | char IceConnectionNumber(); | |
14027 | ||
14028 | int main() { | |
14029 | IceConnectionNumber() | |
14030 | ; return 0; } | |
14031 | EOF | |
db82f09e | 14032 | if { (eval echo configure:14033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14033 | rm -rf conftest* |
14034 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14035 | else | |
14036 | echo "configure: failed program was:" >&5 | |
14037 | cat conftest.$ac_ext >&5 | |
14038 | rm -rf conftest* | |
14039 | eval "ac_cv_lib_$ac_lib_var=no" | |
14040 | fi | |
14041 | rm -f conftest* | |
14042 | LIBS="$ac_save_LIBS" | |
14043 | ||
14044 | fi | |
14045 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14046 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 14047 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
a0b9e27f MB |
14048 | else |
14049 | echo "$ac_t""no" 1>&6 | |
9cfadba2 | 14050 | fi |
10f2d63a | 14051 | |
a0b9e27f | 14052 | LDFLAGS="$ac_save_LDFLAGS" |
90dd450c VZ |
14053 | |
14054 | fi | |
14055 | ||
8284b0c5 | 14056 | |
90dd450c | 14057 | if test "$no_x" = "yes"; then |
a0b9e27f | 14058 | { echo "configure: error: X11 not found" 1>&2; exit 1; } |
90dd450c VZ |
14059 | fi |
14060 | ||
14061 | GUI_TK_LIBRARY="$X_LIBS" | |
14062 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
14063 | AFMINSTALL=afminstall | |
14064 | COMPILED_X_PROGRAM=0 | |
14065 | ||
21d1c967 | 14066 | if test "$wxUSE_NANOX" = "yes"; then |
a0b9e27f | 14067 | echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6 |
db82f09e | 14068 | echo "configure:14069: checking for MicroWindows/NanoX distribution" >&5 |
21d1c967 | 14069 | if test "x$MICROWIN" = x ; then |
a0b9e27f MB |
14070 | echo "$ac_t""not found" 1>&6 |
14071 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; } | |
90dd450c | 14072 | else |
a0b9e27f MB |
14073 | echo "$ac_t""$MICROWIN" 1>&6 |
14074 | cat >> confdefs.h <<\EOF | |
21d1c967 | 14075 | #define wxUSE_NANOX 1 |
a0b9e27f | 14076 | EOF |
21d1c967 | 14077 | |
90dd450c VZ |
14078 | fi |
14079 | fi | |
14080 | ||
14081 | xpm_link= | |
a0b9e27f | 14082 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
db82f09e | 14083 | echo "configure:14084: checking for Xpm library" >&5 |
a0b9e27f | 14084 | |
90dd450c VZ |
14085 | ac_find_libraries= |
14086 | for ac_dir in $SEARCH_LIB; | |
14087 | do | |
14088 | for ac_extension in a so sl dylib; do | |
14089 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
14090 | ac_find_libraries=$ac_dir | |
14091 | break 2 | |
14092 | fi | |
14093 | done | |
14094 | done | |
14095 | ||
14096 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 14097 | |
90dd450c VZ |
14098 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
14099 | result=$? | |
14100 | if test $result = 0; then | |
14101 | ac_path_to_link="" | |
14102 | else | |
14103 | ac_path_to_link=" -L$ac_find_libraries" | |
21d1c967 | 14104 | fi |
90dd450c | 14105 | |
21d1c967 GD |
14106 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
14107 | xpm_link=" -lXpm" | |
a0b9e27f | 14108 | cat >> confdefs.h <<\EOF |
21d1c967 | 14109 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 14110 | EOF |
90dd450c | 14111 | |
a0b9e27f | 14112 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 14113 | else |
a0b9e27f | 14114 | cat > conftest.$ac_ext <<EOF |
db82f09e | 14115 | #line 14116 "configure" |
21d1c967 | 14116 | #include "confdefs.h" |
90dd450c | 14117 | |
21d1c967 | 14118 | #include <X11/xpm.h> |
a0b9e27f MB |
14119 | |
14120 | int main() { | |
6f72b082 | 14121 | |
21d1c967 GD |
14122 | int version; |
14123 | version = XpmLibraryVersion(); | |
a0b9e27f MB |
14124 | |
14125 | ; return 0; } | |
14126 | EOF | |
db82f09e | 14127 | if { (eval echo configure:14128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
14128 | rm -rf conftest* |
14129 | ||
21d1c967 | 14130 | xpm_link=" -lXpm" |
a0b9e27f | 14131 | cat >> confdefs.h <<\EOF |
21d1c967 | 14132 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 14133 | EOF |
90dd450c | 14134 | |
a0b9e27f | 14135 | echo "$ac_t""found in default search path" 1>&6 |
21d1c967 | 14136 | COMPILED_X_PROGRAM=0 |
a0b9e27f | 14137 | |
21d1c967 | 14138 | else |
a0b9e27f MB |
14139 | echo "configure: failed program was:" >&5 |
14140 | cat conftest.$ac_ext >&5 | |
14141 | rm -rf conftest* | |
14142 | ||
14143 | echo "$ac_t""no" 1>&6 | |
14144 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
14145 | ||
14146 | ||
6f72b082 | 14147 | fi |
a0b9e27f | 14148 | rm -f conftest* |
21d1c967 | 14149 | fi |
90dd450c | 14150 | |
1d1b75ac VZ |
14151 | wxUSE_UNIVERSAL="yes" |
14152 | ||
21d1c967 GD |
14153 | if test "$wxUSE_NANOX" = "yes"; then |
14154 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
14155 | 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" | |
14156 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
14157 | else | |
14158 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link" | |
14159 | fi | |
6f72b082 | 14160 | |
21d1c967 GD |
14161 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" |
14162 | TOOLKIT=X11 | |
14163 | GUIDIST=X11_DIST | |
14164 | fi | |
90dd450c | 14165 | |
21d1c967 | 14166 | if test "$wxUSE_WINE" = 1; then |
a0b9e27f MB |
14167 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` |
14168 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
db82f09e | 14169 | echo "configure:14170: checking for windows.h" >&5 |
a0b9e27f MB |
14170 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14171 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14172 | else | |
14173 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 14174 | #line 14175 "configure" |
247f5006 VZ |
14175 | #include "confdefs.h" |
14176 | #include <windows.h> | |
a0b9e27f MB |
14177 | EOF |
14178 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
db82f09e | 14179 | { (eval echo configure:14180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
14180 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14181 | if test -z "$ac_err"; then | |
14182 | rm -rf conftest* | |
14183 | eval "ac_cv_header_$ac_safe=yes" | |
14184 | else | |
14185 | echo "$ac_err" >&5 | |
14186 | echo "configure: failed program was:" >&5 | |
10f2d63a | 14187 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
14188 | rm -rf conftest* |
14189 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 14190 | fi |
a0b9e27f | 14191 | rm -f conftest* |
10f2d63a | 14192 | fi |
a0b9e27f MB |
14193 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14194 | echo "$ac_t""yes" 1>&6 | |
21d1c967 GD |
14195 | : |
14196 | else | |
a0b9e27f | 14197 | echo "$ac_t""no" 1>&6 |
21d1c967 | 14198 | |
a0b9e27f MB |
14199 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } |
14200 | ||
5c6fa7d2 | 14201 | fi |
7b4a847f | 14202 | |
5c6fa7d2 | 14203 | |
8284b0c5 | 14204 | xpm_link= |
a0b9e27f | 14205 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
db82f09e | 14206 | echo "configure:14207: checking for Xpm library" >&5 |
a0b9e27f | 14207 | |
90dd450c VZ |
14208 | ac_find_libraries= |
14209 | for ac_dir in $SEARCH_LIB; | |
14210 | do | |
14211 | for ac_extension in a so sl dylib; do | |
21d1c967 | 14212 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
90dd450c VZ |
14213 | ac_find_libraries=$ac_dir |
14214 | break 2 | |
14215 | fi | |
14216 | done | |
14217 | done | |
14218 | ||
21d1c967 GD |
14219 | if test "$ac_find_libraries" != "" ; then |
14220 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
14221 | xpm_link=" -lXpm" | |
a0b9e27f | 14222 | cat >> confdefs.h <<\EOF |
21d1c967 | 14223 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 14224 | EOF |
90dd450c | 14225 | |
a0b9e27f | 14226 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 14227 | else |
a0b9e27f MB |
14228 | echo "$ac_t""no" 1>&6 |
14229 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
21d1c967 GD |
14230 | fi |
14231 | ||
14232 | mesa_link= | |
a0b9e27f | 14233 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 |
db82f09e | 14234 | echo "configure:14235: checking for Mesa library" >&5 |
a0b9e27f | 14235 | |
90dd450c VZ |
14236 | ac_find_libraries= |
14237 | for ac_dir in $SEARCH_LIB; | |
14238 | do | |
14239 | for ac_extension in a so sl dylib; do | |
14240 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
14241 | ac_find_libraries=$ac_dir | |
14242 | break 2 | |
14243 | fi | |
14244 | done | |
14245 | done | |
14246 | ||
21d1c967 GD |
14247 | if test "$ac_find_libraries" != "" ; then |
14248 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
14249 | mesa_link=" -lMesaGL" | |
a0b9e27f | 14250 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 14251 | else |
3bce6687 JS |
14252 | mesa_link="" |
14253 | echo "$ac_t""no" 1>&6 | |
14254 | echo "configure: warning: library will be compiled without Mesa support" 1>&2 | |
21d1c967 GD |
14255 | fi |
14256 | ||
14257 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" | |
14258 | TOOLKIT=MSW | |
14259 | GUIDIST=MSW_DIST | |
14260 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__" | |
14261 | fi | |
14262 | ||
14263 | if test "$wxUSE_MOTIF" = 1; then | |
14264 | if test "$no_x" = yes; then | |
14265 | # Not all programs may use this symbol, but it does not hurt to define it. | |
a0b9e27f | 14266 | cat >> confdefs.h <<\EOF |
21d1c967 | 14267 | #define X_DISPLAY_MISSING 1 |
a0b9e27f | 14268 | EOF |
21d1c967 GD |
14269 | |
14270 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
14271 | else | |
14272 | if test -n "$x_includes"; then | |
14273 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
90dd450c VZ |
14274 | fi |
14275 | ||
21d1c967 GD |
14276 | # It would also be nice to do this for all -L options, not just this one. |
14277 | if test -n "$x_libraries"; then | |
14278 | X_LIBS="$X_LIBS -L$x_libraries" | |
14279 | # For Solaris; some versions of Sun CC require a space after -R and | |
14280 | # others require no space. Words are not sufficient . . . . | |
a0b9e27f | 14281 | case "`(uname -sr) 2>/dev/null`" in |
21d1c967 | 14282 | "SunOS 5"*) |
a0b9e27f | 14283 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
db82f09e | 14284 | echo "configure:14285: checking whether -R must be followed by a space" >&5 |
a0b9e27f MB |
14285 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
14286 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 14287 | #line 14288 "configure" |
21d1c967 GD |
14288 | #include "confdefs.h" |
14289 | ||
a0b9e27f | 14290 | int main() { |
21d1c967 | 14291 | |
a0b9e27f MB |
14292 | ; return 0; } |
14293 | EOF | |
db82f09e | 14294 | if { (eval echo configure:14295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 14295 | rm -rf conftest* |
21d1c967 | 14296 | ac_R_nospace=yes |
698dcdb6 | 14297 | else |
a0b9e27f MB |
14298 | echo "configure: failed program was:" >&5 |
14299 | cat conftest.$ac_ext >&5 | |
14300 | rm -rf conftest* | |
14301 | ac_R_nospace=no | |
10f2d63a | 14302 | fi |
a0b9e27f | 14303 | rm -f conftest* |
21d1c967 | 14304 | if test $ac_R_nospace = yes; then |
a0b9e27f | 14305 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
14306 | X_LIBS="$X_LIBS -R$x_libraries" |
14307 | else | |
14308 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
a0b9e27f | 14309 | cat > conftest.$ac_ext <<EOF |
db82f09e | 14310 | #line 14311 "configure" |
21d1c967 | 14311 | #include "confdefs.h" |
10f2d63a | 14312 | |
a0b9e27f | 14313 | int main() { |
f0c87536 | 14314 | |
a0b9e27f MB |
14315 | ; return 0; } |
14316 | EOF | |
db82f09e | 14317 | if { (eval echo configure:14318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 14318 | rm -rf conftest* |
21d1c967 GD |
14319 | ac_R_space=yes |
14320 | else | |
a0b9e27f MB |
14321 | echo "configure: failed program was:" >&5 |
14322 | cat conftest.$ac_ext >&5 | |
14323 | rm -rf conftest* | |
14324 | ac_R_space=no | |
21d1c967 | 14325 | fi |
a0b9e27f | 14326 | rm -f conftest* |
21d1c967 | 14327 | if test $ac_R_space = yes; then |
a0b9e27f | 14328 | echo "$ac_t""yes" 1>&6 |
21d1c967 GD |
14329 | X_LIBS="$X_LIBS -R $x_libraries" |
14330 | else | |
a0b9e27f | 14331 | echo "$ac_t""neither works" 1>&6 |
21d1c967 GD |
14332 | fi |
14333 | fi | |
a0b9e27f | 14334 | LIBS="$ac_xsave_LIBS" |
21d1c967 GD |
14335 | esac |
14336 | fi | |
90dd450c | 14337 | |
21d1c967 GD |
14338 | # Check for system-dependent libraries X programs must link with. |
14339 | # Do this before checking for the system-independent R6 libraries | |
14340 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
14341 | ||
14342 | if test "$ISC" = yes; then | |
14343 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
14344 | else | |
a0b9e27f MB |
14345 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
14346 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
21d1c967 | 14347 | # the Alpha needs dnet_stub (dnet does not exist). |
a0b9e27f | 14348 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
db82f09e | 14349 | echo "configure:14350: checking for dnet_ntoa in -ldnet" >&5 |
a0b9e27f MB |
14350 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
14351 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14352 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 14353 | else |
a0b9e27f | 14354 | ac_save_LIBS="$LIBS" |
247f5006 | 14355 | LIBS="-ldnet $LIBS" |
a0b9e27f | 14356 | cat > conftest.$ac_ext <<EOF |
db82f09e | 14357 | #line 14358 "configure" |
247f5006 | 14358 | #include "confdefs.h" |
247f5006 | 14359 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 | 14360 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
14361 | builtin and then its argument prototype would still apply. */ |
14362 | char dnet_ntoa(); | |
14363 | ||
14364 | int main() { | |
14365 | dnet_ntoa() | |
14366 | ; return 0; } | |
14367 | EOF | |
db82f09e | 14368 | if { (eval echo configure:14369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14369 | rm -rf conftest* |
14370 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14371 | else | |
14372 | echo "configure: failed program was:" >&5 | |
14373 | cat conftest.$ac_ext >&5 | |
14374 | rm -rf conftest* | |
14375 | eval "ac_cv_lib_$ac_lib_var=no" | |
14376 | fi | |
14377 | rm -f conftest* | |
14378 | LIBS="$ac_save_LIBS" | |
14379 | ||
14380 | fi | |
14381 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14382 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14383 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
a0b9e27f MB |
14384 | else |
14385 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 | 14386 | fi |
0fb0dd83 | 14387 | |
21d1c967 | 14388 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
a0b9e27f | 14389 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
db82f09e | 14390 | echo "configure:14391: checking for dnet_ntoa in -ldnet_stub" >&5 |
a0b9e27f MB |
14391 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
14392 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14393 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 14394 | else |
a0b9e27f | 14395 | ac_save_LIBS="$LIBS" |
21d1c967 | 14396 | LIBS="-ldnet_stub $LIBS" |
a0b9e27f | 14397 | cat > conftest.$ac_ext <<EOF |
db82f09e | 14398 | #line 14399 "configure" |
21d1c967 GD |
14399 | #include "confdefs.h" |
14400 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14401 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14402 | builtin and then its argument prototype would still apply. */ |
14403 | char dnet_ntoa(); | |
14404 | ||
14405 | int main() { | |
14406 | dnet_ntoa() | |
14407 | ; return 0; } | |
14408 | EOF | |
db82f09e | 14409 | if { (eval echo configure:14410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14410 | rm -rf conftest* |
14411 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14412 | else | |
14413 | echo "configure: failed program was:" >&5 | |
14414 | cat conftest.$ac_ext >&5 | |
14415 | rm -rf conftest* | |
14416 | eval "ac_cv_lib_$ac_lib_var=no" | |
14417 | fi | |
14418 | rm -f conftest* | |
14419 | LIBS="$ac_save_LIBS" | |
14420 | ||
14421 | fi | |
14422 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14423 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14424 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
a0b9e27f MB |
14425 | else |
14426 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
14427 | fi |
14428 | ||
21d1c967 | 14429 | fi |
90dd450c | 14430 | |
21d1c967 GD |
14431 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
14432 | # to get the SysV transport functions. | |
a0b9e27f | 14433 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
21d1c967 GD |
14434 | # needs -lnsl. |
14435 | # The nsl library prevents programs from opening the X display | |
a0b9e27f MB |
14436 | # on Irix 5.2, according to dickey@clark.net. |
14437 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
db82f09e | 14438 | echo "configure:14439: checking for gethostbyname" >&5 |
a0b9e27f MB |
14439 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
14440 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14441 | else | |
14442 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 14443 | #line 14444 "configure" |
21d1c967 GD |
14444 | #include "confdefs.h" |
14445 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 14446 | which can conflict with char gethostbyname(); below. */ |
21d1c967 GD |
14447 | #include <assert.h> |
14448 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14449 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14450 | builtin and then its argument prototype would still apply. */ |
14451 | char gethostbyname(); | |
14452 | ||
14453 | int main() { | |
14454 | ||
21d1c967 GD |
14455 | /* The GNU C library defines this for functions which it implements |
14456 | to always fail with ENOSYS. Some functions are actually named | |
14457 | something starting with __ and the normal name is an alias. */ | |
14458 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
14459 | choke me | |
14460 | #else | |
a0b9e27f | 14461 | gethostbyname(); |
21d1c967 | 14462 | #endif |
90dd450c | 14463 | |
a0b9e27f MB |
14464 | ; return 0; } |
14465 | EOF | |
db82f09e | 14466 | if { (eval echo configure:14467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14467 | rm -rf conftest* |
14468 | eval "ac_cv_func_gethostbyname=yes" | |
14469 | else | |
14470 | echo "configure: failed program was:" >&5 | |
14471 | cat conftest.$ac_ext >&5 | |
14472 | rm -rf conftest* | |
14473 | eval "ac_cv_func_gethostbyname=no" | |
14474 | fi | |
14475 | rm -f conftest* | |
14476 | fi | |
14477 | ||
14478 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
14479 | echo "$ac_t""yes" 1>&6 | |
14480 | : | |
14481 | else | |
14482 | echo "$ac_t""no" 1>&6 | |
14483 | fi | |
90dd450c | 14484 | |
21d1c967 | 14485 | if test $ac_cv_func_gethostbyname = no; then |
a0b9e27f | 14486 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
db82f09e | 14487 | echo "configure:14488: checking for gethostbyname in -lnsl" >&5 |
a0b9e27f MB |
14488 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
14489 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14490 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 14491 | else |
a0b9e27f | 14492 | ac_save_LIBS="$LIBS" |
21d1c967 | 14493 | LIBS="-lnsl $LIBS" |
a0b9e27f | 14494 | cat > conftest.$ac_ext <<EOF |
db82f09e | 14495 | #line 14496 "configure" |
21d1c967 GD |
14496 | #include "confdefs.h" |
14497 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14498 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14499 | builtin and then its argument prototype would still apply. */ |
14500 | char gethostbyname(); | |
5c6fa7d2 | 14501 | |
a0b9e27f MB |
14502 | int main() { |
14503 | gethostbyname() | |
14504 | ; return 0; } | |
14505 | EOF | |
db82f09e | 14506 | if { (eval echo configure:14507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14507 | rm -rf conftest* |
14508 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8284b0c5 | 14509 | else |
a0b9e27f MB |
14510 | echo "configure: failed program was:" >&5 |
14511 | cat conftest.$ac_ext >&5 | |
14512 | rm -rf conftest* | |
14513 | eval "ac_cv_lib_$ac_lib_var=no" | |
14514 | fi | |
14515 | rm -f conftest* | |
14516 | LIBS="$ac_save_LIBS" | |
247f5006 | 14517 | |
a0b9e27f MB |
14518 | fi |
14519 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14520 | echo "$ac_t""yes" 1>&6 | |
14521 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
14522 | else | |
14523 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 14524 | fi |
90dd450c | 14525 | |
90dd450c VZ |
14526 | fi |
14527 | ||
21d1c967 GD |
14528 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
14529 | # socket/setsockopt and other routines are undefined under SCO ODT | |
14530 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
a0b9e27f MB |
14531 | # on later versions), says simon@lia.di.epfl.ch: it contains |
14532 | # gethostby* variants that don't use the nameserver (or something). | |
14533 | # -lsocket must be given before -lnsl if both are needed. | |
14534 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
14535 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
db82f09e | 14536 | echo "configure:14537: checking for connect" >&5 |
a0b9e27f MB |
14537 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
14538 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14539 | else | |
14540 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 14541 | #line 14542 "configure" |
21d1c967 GD |
14542 | #include "confdefs.h" |
14543 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 14544 | which can conflict with char connect(); below. */ |
21d1c967 GD |
14545 | #include <assert.h> |
14546 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14547 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14548 | builtin and then its argument prototype would still apply. */ |
14549 | char connect(); | |
14550 | ||
14551 | int main() { | |
14552 | ||
21d1c967 GD |
14553 | /* The GNU C library defines this for functions which it implements |
14554 | to always fail with ENOSYS. Some functions are actually named | |
14555 | something starting with __ and the normal name is an alias. */ | |
14556 | #if defined (__stub_connect) || defined (__stub___connect) | |
14557 | choke me | |
14558 | #else | |
a0b9e27f | 14559 | connect(); |
21d1c967 | 14560 | #endif |
90dd450c | 14561 | |
a0b9e27f MB |
14562 | ; return 0; } |
14563 | EOF | |
db82f09e | 14564 | if { (eval echo configure:14565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14565 | rm -rf conftest* |
14566 | eval "ac_cv_func_connect=yes" | |
14567 | else | |
14568 | echo "configure: failed program was:" >&5 | |
14569 | cat conftest.$ac_ext >&5 | |
14570 | rm -rf conftest* | |
14571 | eval "ac_cv_func_connect=no" | |
14572 | fi | |
14573 | rm -f conftest* | |
14574 | fi | |
14575 | ||
14576 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
14577 | echo "$ac_t""yes" 1>&6 | |
14578 | : | |
14579 | else | |
14580 | echo "$ac_t""no" 1>&6 | |
14581 | fi | |
1f8ae82f | 14582 | |
21d1c967 | 14583 | if test $ac_cv_func_connect = no; then |
a0b9e27f | 14584 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
db82f09e | 14585 | echo "configure:14586: checking for connect in -lsocket" >&5 |
a0b9e27f MB |
14586 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
14587 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14588 | echo $ac_n "(cached) $ac_c" 1>&6 | |
0fbb762e | 14589 | else |
a0b9e27f | 14590 | ac_save_LIBS="$LIBS" |
21d1c967 | 14591 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 14592 | cat > conftest.$ac_ext <<EOF |
db82f09e | 14593 | #line 14594 "configure" |
0fbb762e | 14594 | #include "confdefs.h" |
21d1c967 GD |
14595 | /* Override any gcc2 internal prototype to avoid an error. */ |
14596 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14597 | builtin and then its argument prototype would still apply. */ |
14598 | char connect(); | |
14599 | ||
14600 | int main() { | |
14601 | connect() | |
14602 | ; return 0; } | |
14603 | EOF | |
db82f09e | 14604 | if { (eval echo configure:14605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14605 | rm -rf conftest* |
14606 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14607 | else | |
14608 | echo "configure: failed program was:" >&5 | |
14609 | cat conftest.$ac_ext >&5 | |
14610 | rm -rf conftest* | |
14611 | eval "ac_cv_lib_$ac_lib_var=no" | |
14612 | fi | |
14613 | rm -f conftest* | |
14614 | LIBS="$ac_save_LIBS" | |
14615 | ||
14616 | fi | |
14617 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14618 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14619 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
a0b9e27f MB |
14620 | else |
14621 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 14622 | fi |
90dd450c | 14623 | |
21d1c967 | 14624 | fi |
90dd450c | 14625 | |
a0b9e27f MB |
14626 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
14627 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
db82f09e | 14628 | echo "configure:14629: checking for remove" >&5 |
a0b9e27f MB |
14629 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
14630 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 14631 | else |
a0b9e27f | 14632 | cat > conftest.$ac_ext <<EOF |
db82f09e | 14633 | #line 14634 "configure" |
21d1c967 GD |
14634 | #include "confdefs.h" |
14635 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 14636 | which can conflict with char remove(); below. */ |
21d1c967 GD |
14637 | #include <assert.h> |
14638 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14639 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14640 | builtin and then its argument prototype would still apply. */ |
14641 | char remove(); | |
14642 | ||
14643 | int main() { | |
14644 | ||
21d1c967 GD |
14645 | /* The GNU C library defines this for functions which it implements |
14646 | to always fail with ENOSYS. Some functions are actually named | |
14647 | something starting with __ and the normal name is an alias. */ | |
14648 | #if defined (__stub_remove) || defined (__stub___remove) | |
14649 | choke me | |
14650 | #else | |
a0b9e27f | 14651 | remove(); |
21d1c967 | 14652 | #endif |
90dd450c | 14653 | |
a0b9e27f MB |
14654 | ; return 0; } |
14655 | EOF | |
db82f09e | 14656 | if { (eval echo configure:14657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14657 | rm -rf conftest* |
14658 | eval "ac_cv_func_remove=yes" | |
14659 | else | |
14660 | echo "configure: failed program was:" >&5 | |
14661 | cat conftest.$ac_ext >&5 | |
14662 | rm -rf conftest* | |
14663 | eval "ac_cv_func_remove=no" | |
14664 | fi | |
14665 | rm -f conftest* | |
14666 | fi | |
14667 | ||
14668 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
14669 | echo "$ac_t""yes" 1>&6 | |
14670 | : | |
14671 | else | |
14672 | echo "$ac_t""no" 1>&6 | |
14673 | fi | |
90dd450c | 14674 | |
21d1c967 | 14675 | if test $ac_cv_func_remove = no; then |
a0b9e27f | 14676 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
db82f09e | 14677 | echo "configure:14678: checking for remove in -lposix" >&5 |
a0b9e27f MB |
14678 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
14679 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14680 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 14681 | else |
a0b9e27f | 14682 | ac_save_LIBS="$LIBS" |
21d1c967 | 14683 | LIBS="-lposix $LIBS" |
a0b9e27f | 14684 | cat > conftest.$ac_ext <<EOF |
db82f09e | 14685 | #line 14686 "configure" |
21d1c967 GD |
14686 | #include "confdefs.h" |
14687 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14688 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14689 | builtin and then its argument prototype would still apply. */ |
14690 | char remove(); | |
14691 | ||
14692 | int main() { | |
14693 | remove() | |
14694 | ; return 0; } | |
14695 | EOF | |
db82f09e | 14696 | if { (eval echo configure:14697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14697 | rm -rf conftest* |
14698 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14699 | else | |
14700 | echo "configure: failed program was:" >&5 | |
14701 | cat conftest.$ac_ext >&5 | |
14702 | rm -rf conftest* | |
14703 | eval "ac_cv_lib_$ac_lib_var=no" | |
14704 | fi | |
14705 | rm -f conftest* | |
14706 | LIBS="$ac_save_LIBS" | |
14707 | ||
14708 | fi | |
14709 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14710 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14711 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
a0b9e27f MB |
14712 | else |
14713 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 14714 | fi |
19bc6aad | 14715 | |
90dd450c | 14716 | fi |
19bc6aad | 14717 | |
21d1c967 | 14718 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
a0b9e27f | 14719 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
db82f09e | 14720 | echo "configure:14721: checking for shmat" >&5 |
a0b9e27f MB |
14721 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
14722 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 14723 | else |
a0b9e27f | 14724 | cat > conftest.$ac_ext <<EOF |
db82f09e | 14725 | #line 14726 "configure" |
21d1c967 GD |
14726 | #include "confdefs.h" |
14727 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 14728 | which can conflict with char shmat(); below. */ |
21d1c967 GD |
14729 | #include <assert.h> |
14730 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14731 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14732 | builtin and then its argument prototype would still apply. */ |
14733 | char shmat(); | |
14734 | ||
14735 | int main() { | |
14736 | ||
21d1c967 GD |
14737 | /* The GNU C library defines this for functions which it implements |
14738 | to always fail with ENOSYS. Some functions are actually named | |
14739 | something starting with __ and the normal name is an alias. */ | |
14740 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
14741 | choke me | |
14742 | #else | |
a0b9e27f | 14743 | shmat(); |
21d1c967 | 14744 | #endif |
90dd450c | 14745 | |
a0b9e27f MB |
14746 | ; return 0; } |
14747 | EOF | |
db82f09e | 14748 | if { (eval echo configure:14749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14749 | rm -rf conftest* |
14750 | eval "ac_cv_func_shmat=yes" | |
14751 | else | |
14752 | echo "configure: failed program was:" >&5 | |
14753 | cat conftest.$ac_ext >&5 | |
14754 | rm -rf conftest* | |
14755 | eval "ac_cv_func_shmat=no" | |
14756 | fi | |
14757 | rm -f conftest* | |
14758 | fi | |
14759 | ||
14760 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
14761 | echo "$ac_t""yes" 1>&6 | |
14762 | : | |
14763 | else | |
14764 | echo "$ac_t""no" 1>&6 | |
14765 | fi | |
19bc6aad | 14766 | |
21d1c967 | 14767 | if test $ac_cv_func_shmat = no; then |
a0b9e27f | 14768 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
db82f09e | 14769 | echo "configure:14770: checking for shmat in -lipc" >&5 |
a0b9e27f MB |
14770 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
14771 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14772 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5c6fa7d2 | 14773 | else |
a0b9e27f | 14774 | ac_save_LIBS="$LIBS" |
5c6fa7d2 | 14775 | LIBS="-lipc $LIBS" |
a0b9e27f | 14776 | cat > conftest.$ac_ext <<EOF |
db82f09e | 14777 | #line 14778 "configure" |
5c6fa7d2 | 14778 | #include "confdefs.h" |
5c6fa7d2 | 14779 | /* Override any gcc2 internal prototype to avoid an error. */ |
5c6fa7d2 | 14780 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
14781 | builtin and then its argument prototype would still apply. */ |
14782 | char shmat(); | |
14783 | ||
14784 | int main() { | |
14785 | shmat() | |
14786 | ; return 0; } | |
14787 | EOF | |
db82f09e | 14788 | if { (eval echo configure:14789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14789 | rm -rf conftest* |
14790 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14791 | else | |
14792 | echo "configure: failed program was:" >&5 | |
14793 | cat conftest.$ac_ext >&5 | |
14794 | rm -rf conftest* | |
14795 | eval "ac_cv_lib_$ac_lib_var=no" | |
14796 | fi | |
14797 | rm -f conftest* | |
14798 | LIBS="$ac_save_LIBS" | |
14799 | ||
14800 | fi | |
14801 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14802 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14803 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
a0b9e27f MB |
14804 | else |
14805 | echo "$ac_t""no" 1>&6 | |
9f8148b1 | 14806 | fi |
90dd450c | 14807 | |
90dd450c | 14808 | fi |
21d1c967 | 14809 | fi |
10f2d63a | 14810 | |
21d1c967 | 14811 | # Check for libraries that X11R6 Xt/Xaw programs need. |
a0b9e27f | 14812 | ac_save_LDFLAGS="$LDFLAGS" |
21d1c967 GD |
14813 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
14814 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
14815 | # check for ICE first), but we must link in the order -lSM -lICE or | |
14816 | # we get undefined symbols. So assume we have SM if we have ICE. | |
14817 | # These have to be linked with before -lX11, unlike the other | |
14818 | # libraries we check for below, so use a different variable. | |
a0b9e27f MB |
14819 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
14820 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
db82f09e | 14821 | echo "configure:14822: checking for IceConnectionNumber in -lICE" >&5 |
a0b9e27f MB |
14822 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
14823 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14824 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14825 | else | |
14826 | ac_save_LIBS="$LIBS" | |
f09359cf | 14827 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 14828 | cat > conftest.$ac_ext <<EOF |
db82f09e | 14829 | #line 14830 "configure" |
29fd3c0c | 14830 | #include "confdefs.h" |
21d1c967 GD |
14831 | /* Override any gcc2 internal prototype to avoid an error. */ |
14832 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14833 | builtin and then its argument prototype would still apply. */ |
14834 | char IceConnectionNumber(); | |
14835 | ||
14836 | int main() { | |
14837 | IceConnectionNumber() | |
14838 | ; return 0; } | |
14839 | EOF | |
db82f09e | 14840 | if { (eval echo configure:14841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14841 | rm -rf conftest* |
14842 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14843 | else | |
14844 | echo "configure: failed program was:" >&5 | |
14845 | cat conftest.$ac_ext >&5 | |
14846 | rm -rf conftest* | |
14847 | eval "ac_cv_lib_$ac_lib_var=no" | |
14848 | fi | |
14849 | rm -f conftest* | |
14850 | LIBS="$ac_save_LIBS" | |
14851 | ||
14852 | fi | |
14853 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14854 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14855 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
a0b9e27f MB |
14856 | else |
14857 | echo "$ac_t""no" 1>&6 | |
29fd3c0c | 14858 | fi |
21d1c967 | 14859 | |
a0b9e27f | 14860 | LDFLAGS="$ac_save_LDFLAGS" |
29fd3c0c | 14861 | |
10f2d63a VZ |
14862 | fi |
14863 | ||
8284b0c5 | 14864 | |
21d1c967 | 14865 | if test "$no_x" = "yes"; then |
a0b9e27f | 14866 | { echo "configure: error: X11 not found" 1>&2; exit 1; } |
21d1c967 GD |
14867 | fi |
14868 | ||
14869 | GUI_TK_LIBRARY="$X_LIBS" | |
14870 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
14871 | AFMINSTALL=afminstall | |
14872 | COMPILED_X_PROGRAM=0 | |
14873 | ||
a0b9e27f | 14874 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 |
db82f09e | 14875 | echo "configure:14876: checking for Motif/Lesstif headers" >&5 |
a0b9e27f | 14876 | |
21d1c967 GD |
14877 | ac_find_includes= |
14878 | for ac_dir in $SEARCH_INCLUDE; | |
14879 | do | |
14880 | if test -f "$ac_dir/Xm/Xm.h"; then | |
14881 | ac_find_includes=$ac_dir | |
14882 | break | |
14883 | fi | |
14884 | done | |
14885 | ||
14886 | if test "$ac_find_includes" != "" ; then | |
a0b9e27f MB |
14887 | echo "$ac_t""found in $ac_find_includes" 1>&6 |
14888 | ||
dd0e4a90 VZ |
14889 | ac_path_to_include=$ac_find_includes |
14890 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
14891 | result=$? | |
14892 | if test $result = 0; then | |
14893 | ac_path_to_include="" | |
14894 | else | |
14895 | ac_path_to_include=" -I$ac_find_includes" | |
14896 | fi | |
14897 | ||
14898 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
21d1c967 | 14899 | else |
a0b9e27f | 14900 | cat > conftest.$ac_ext <<EOF |
db82f09e | 14901 | #line 14902 "configure" |
10f2d63a | 14902 | #include "confdefs.h" |
21d1c967 GD |
14903 | |
14904 | #include <Xm/Xm.h> | |
a0b9e27f MB |
14905 | |
14906 | int main() { | |
21d1c967 GD |
14907 | |
14908 | int version; | |
14909 | version = xmUseVersion; | |
a0b9e27f MB |
14910 | |
14911 | ; return 0; } | |
14912 | EOF | |
db82f09e | 14913 | if { (eval echo configure:14914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
14914 | rm -rf conftest* |
14915 | ||
14916 | echo "$ac_t""found in default search path" 1>&6 | |
21d1c967 | 14917 | COMPILED_X_PROGRAM=1 |
a0b9e27f | 14918 | |
10f2d63a | 14919 | else |
a0b9e27f MB |
14920 | echo "configure: failed program was:" >&5 |
14921 | cat conftest.$ac_ext >&5 | |
14922 | rm -rf conftest* | |
14923 | ||
14924 | echo "$ac_t""no" 1>&6 | |
14925 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
14926 | ||
14927 | ||
10f2d63a | 14928 | fi |
a0b9e27f | 14929 | rm -f conftest* |
21d1c967 | 14930 | fi |
10f2d63a | 14931 | |
21d1c967 | 14932 | if test "$COMPILED_X_PROGRAM" = 0; then |
a0b9e27f | 14933 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 |
db82f09e | 14934 | echo "configure:14935: checking for Motif/Lesstif library" >&5 |
a0b9e27f | 14935 | |
21d1c967 GD |
14936 | ac_find_libraries= |
14937 | for ac_dir in $SEARCH_LIB; | |
14938 | do | |
14939 | for ac_extension in a so sl dylib; do | |
14940 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
14941 | ac_find_libraries=$ac_dir | |
14942 | break 2 | |
14943 | fi | |
14944 | done | |
14945 | done | |
14946 | ||
14947 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 14948 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 14949 | |
a0b9e27f | 14950 | |
21d1c967 GD |
14951 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
14952 | result=$? | |
14953 | if test $result = 0; then | |
14954 | ac_path_to_link="" | |
14955 | else | |
14956 | ac_path_to_link=" -L$ac_find_libraries" | |
14957 | fi | |
14958 | ||
21d1c967 | 14959 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
21d1c967 | 14960 | else |
dd0e4a90 VZ |
14961 | save_CFLAGS=$CFLAGS |
14962 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
14963 | ||
a0b9e27f | 14964 | cat > conftest.$ac_ext <<EOF |
db82f09e | 14965 | #line 14966 "configure" |
d836ee96 | 14966 | #include "confdefs.h" |
21d1c967 GD |
14967 | |
14968 | #include <Xm/Xm.h> | |
a0b9e27f MB |
14969 | |
14970 | int main() { | |
21d1c967 GD |
14971 | |
14972 | int version; | |
14973 | version = xmUseVersion; | |
a0b9e27f MB |
14974 | |
14975 | ; return 0; } | |
14976 | EOF | |
db82f09e | 14977 | if { (eval echo configure:14978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
14978 | rm -rf conftest* |
14979 | ||
14980 | echo "$ac_t""found in default search path" 1>&6 | |
21d1c967 | 14981 | COMPILED_X_PROGRAM=1 |
a0b9e27f | 14982 | |
d836ee96 | 14983 | else |
a0b9e27f MB |
14984 | echo "configure: failed program was:" >&5 |
14985 | cat conftest.$ac_ext >&5 | |
14986 | rm -rf conftest* | |
14987 | ||
14988 | echo "$ac_t""no" 1>&6 | |
14989 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
14990 | ||
14991 | ||
d836ee96 | 14992 | fi |
a0b9e27f | 14993 | rm -f conftest* |
dd0e4a90 VZ |
14994 | |
14995 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
14996 | fi |
14997 | fi | |
14998 | ||
14999 | xpm_link= | |
a0b9e27f | 15000 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
db82f09e | 15001 | echo "configure:15002: checking for Xpm library" >&5 |
a0b9e27f | 15002 | |
21d1c967 GD |
15003 | ac_find_libraries= |
15004 | for ac_dir in $SEARCH_LIB; | |
15005 | do | |
15006 | for ac_extension in a so sl dylib; do | |
15007 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
15008 | ac_find_libraries=$ac_dir | |
15009 | break 2 | |
15010 | fi | |
15011 | done | |
15012 | done | |
15013 | ||
15014 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 15015 | |
21d1c967 GD |
15016 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
15017 | result=$? | |
15018 | if test $result = 0; then | |
15019 | ac_path_to_link="" | |
15020 | else | |
15021 | ac_path_to_link=" -L$ac_find_libraries" | |
15022 | fi | |
15023 | ||
15024 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
dd0e4a90 | 15025 | |
21d1c967 | 15026 | xpm_link=" -lXpm" |
a0b9e27f | 15027 | cat >> confdefs.h <<\EOF |
21d1c967 | 15028 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 15029 | EOF |
90dd450c | 15030 | |
a0b9e27f | 15031 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 15032 | else |
dd0e4a90 VZ |
15033 | save_CFLAGS=$CFLAGS |
15034 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
15035 | ||
a0b9e27f | 15036 | cat > conftest.$ac_ext <<EOF |
db82f09e | 15037 | #line 15038 "configure" |
d836ee96 | 15038 | #include "confdefs.h" |
21d1c967 GD |
15039 | |
15040 | #include <X11/xpm.h> | |
a0b9e27f MB |
15041 | |
15042 | int main() { | |
21d1c967 GD |
15043 | |
15044 | int version; | |
15045 | version = XpmLibraryVersion(); | |
a0b9e27f MB |
15046 | |
15047 | ; return 0; } | |
15048 | EOF | |
db82f09e | 15049 | if { (eval echo configure:15050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
15050 | rm -rf conftest* |
15051 | ||
21d1c967 | 15052 | xpm_link=" -lXpm" |
a0b9e27f | 15053 | cat >> confdefs.h <<\EOF |
21d1c967 | 15054 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 15055 | EOF |
21d1c967 | 15056 | |
a0b9e27f | 15057 | echo "$ac_t""found in default search path" 1>&6 |
21d1c967 | 15058 | COMPILED_X_PROGRAM=0 |
a0b9e27f | 15059 | |
d836ee96 | 15060 | else |
a0b9e27f MB |
15061 | echo "configure: failed program was:" >&5 |
15062 | cat conftest.$ac_ext >&5 | |
15063 | rm -rf conftest* | |
15064 | ||
15065 | echo "$ac_t""no" 1>&6 | |
15066 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
15067 | ||
15068 | ||
d836ee96 | 15069 | fi |
a0b9e27f | 15070 | rm -f conftest* |
dd0e4a90 VZ |
15071 | |
15072 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
15073 | fi |
15074 | ||
a0b9e27f | 15075 | echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6 |
db82f09e | 15076 | echo "configure:15077: checking if we need -lXp and/or -lSM -lICE" >&5 |
6a30f1c8 MB |
15077 | libp_link="" |
15078 | libsm_ice_link="" | |
15079 | libs_found=0 | |
15080 | for libp in "" " -lXp"; do | |
15081 | if test "$libs_found" = "0"; then | |
15082 | for libsm_ice in " -lSM -lICE"; do | |
e26c13cf | 15083 | if test "$libs_found" = "0"; then |
6a30f1c8 MB |
15084 | save_LIBS="$LIBS" |
15085 | LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
dd0e4a90 VZ |
15086 | save_CFLAGS=$CFLAGS |
15087 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
15088 | ||
a0b9e27f | 15089 | cat > conftest.$ac_ext <<EOF |
db82f09e | 15090 | #line 15091 "configure" |
6a30f1c8 | 15091 | #include "confdefs.h" |
17234b26 | 15092 | |
6a30f1c8 MB |
15093 | #include <Xm/Xm.h> |
15094 | #include <Xm/List.h> | |
a0b9e27f MB |
15095 | |
15096 | int main() { | |
6a30f1c8 MB |
15097 | |
15098 | XmString string = NULL; | |
15099 | Widget w = NULL; | |
15100 | int position = 0; | |
15101 | XmListAddItem(w, string, position); | |
a0b9e27f MB |
15102 | |
15103 | ; return 0; } | |
15104 | EOF | |
db82f09e | 15105 | if { (eval echo configure:15106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15106 | rm -rf conftest* |
15107 | ||
6a30f1c8 MB |
15108 | libp_link="$libp" |
15109 | libsm_ice_link="$libsm_ice" | |
a0b9e27f | 15110 | echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6 |
6a30f1c8 | 15111 | libs_found=1 |
a0b9e27f | 15112 | |
6a30f1c8 | 15113 | else |
a0b9e27f MB |
15114 | echo "configure: failed program was:" >&5 |
15115 | cat conftest.$ac_ext >&5 | |
15116 | rm -rf conftest* | |
15117 | ||
15118 | ||
6a30f1c8 | 15119 | fi |
a0b9e27f | 15120 | rm -f conftest* |
dd0e4a90 | 15121 | |
6a30f1c8 | 15122 | LIBS="$save_LIBS" |
dd0e4a90 | 15123 | CFLAGS=$save_CFLAGS |
6a30f1c8 MB |
15124 | fi |
15125 | done | |
15126 | fi | |
15127 | done | |
15128 | ||
15129 | if test "$libs_found" = "0"; then | |
a0b9e27f MB |
15130 | echo "$ac_t""can't find the right libraries" 1>&6 |
15131 | { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; } | |
6a30f1c8 MB |
15132 | fi |
15133 | ||
15134 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" | |
21d1c967 GD |
15135 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" |
15136 | TOOLKIT=MOTIF | |
15137 | GUIDIST=MOTIF_DIST | |
15138 | fi | |
15139 | ||
15140 | if test "$wxUSE_MAC" = 1; then | |
b2fee376 | 15141 | CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefile -I/Developer/Headers/FlatCarbon" |
21d1c967 GD |
15142 | |
15143 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile" | |
15144 | TOOLKIT=MAC | |
15145 | GUIDIST=MACX_DIST | |
15146 | fi | |
15147 | ||
15148 | if test "$wxUSE_PM" = 1; then | |
15149 | TOOLKIT=PM | |
15150 | GUIDIST=GTK_DIST | |
15151 | fi | |
15152 | ||
15153 | if test "$TOOLKIT" = "PM" ; then | |
15154 | TOOLKIT_DIR="os2" | |
15155 | else | |
15156 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
15157 | fi | |
15158 | ||
15159 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
15160 | ||
15161 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
15162 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
15163 | ||
15164 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
15165 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
15166 | ||
15167 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
15168 | if test "$wxUSE_X11" = 1; then | |
15169 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
15170 | else | |
15171 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
15172 | fi | |
15173 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
15174 | WIDGET_SET=univ | |
15175 | else | |
15176 | ALL_OBJECTS="\$(GUIOBJS)" | |
15177 | ALL_SOURCES="\$(ALL_SOURCES)" | |
15178 | ALL_HEADERS="\$(ALL_HEADERS)" | |
15179 | fi | |
15180 | ||
15181 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
15182 | ||
15183 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then | |
15184 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
15185 | fi | |
15186 | ||
15187 | if test "$wxUSE_HTML" = "yes"; then | |
15188 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
15189 | fi | |
15190 | ||
15191 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
15192 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
15193 | fi | |
15194 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
15195 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
15196 | fi | |
15197 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
15198 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
15199 | fi | |
15200 | ||
15201 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
15202 | DISTDIR="wx\$(TOOLKIT)" | |
90dd450c | 15203 | else |
21d1c967 GD |
15204 | USE_GUI=0 |
15205 | ||
15206 | TOOLKIT_DIR="base" | |
15207 | ||
15208 | if test "$USE_WIN32" = 1 ; then | |
15209 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
15210 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
15211 | ||
15212 | TOOLKIT="MSW" | |
15213 | else | |
15214 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
15215 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
15216 | fi | |
15217 | ||
15218 | ALL_SOURCES="\$(ALL_SOURCES)" | |
15219 | ALL_HEADERS="\$(ALL_HEADERS)" | |
15220 | ||
15221 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
15222 | ||
15223 | GUIDIST="BASE_DIST" | |
15224 | DISTDIR="wxBase" | |
d836ee96 VZ |
15225 | fi |
15226 | ||
8284b0c5 | 15227 | |
21d1c967 GD |
15228 | if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then |
15229 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
6232543b | 15230 | fi |
21d1c967 GD |
15231 | |
15232 | if test "$wxUSE_REGEX" = "builtin" ; then | |
15233 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
1e487827 | 15234 | fi |
21d1c967 GD |
15235 | if test "$wxUSE_ZLIB" = "builtin" ; then |
15236 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
bd3277fe VZ |
15237 | fi |
15238 | ||
8284b0c5 | 15239 | |
21d1c967 GD |
15240 | if test "$wxUSE_OPENGL" = "yes"; then |
15241 | if test "$wxUSE_MAC" = 1; then | |
15242 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
15243 | elif test "$wxUSE_MSW" = 1; then | |
15244 | OPENGL_LIBS="-lopengl32 -lglu32" | |
15245 | else | |
a0b9e27f MB |
15246 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` |
15247 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
db82f09e | 15248 | echo "configure:15249: checking for GL/gl.h" >&5 |
a0b9e27f MB |
15249 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15250 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15251 | else | |
15252 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 15253 | #line 15254 "configure" |
10f2d63a | 15254 | #include "confdefs.h" |
21d1c967 | 15255 | #include <GL/gl.h> |
a0b9e27f MB |
15256 | EOF |
15257 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
db82f09e | 15258 | { (eval echo configure:15259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
15259 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15260 | if test -z "$ac_err"; then | |
15261 | rm -rf conftest* | |
15262 | eval "ac_cv_header_$ac_safe=yes" | |
15263 | else | |
15264 | echo "$ac_err" >&5 | |
15265 | echo "configure: failed program was:" >&5 | |
698dcdb6 | 15266 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
15267 | rm -rf conftest* |
15268 | eval "ac_cv_header_$ac_safe=no" | |
703e0a69 | 15269 | fi |
a0b9e27f | 15270 | rm -f conftest* |
698dcdb6 | 15271 | fi |
a0b9e27f MB |
15272 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15273 | echo "$ac_t""yes" 1>&6 | |
15274 | ||
15275 | echo $ac_n "checking for -lGL""... $ac_c" 1>&6 | |
db82f09e | 15276 | echo "configure:15277: checking for -lGL" >&5 |
a0b9e27f | 15277 | |
21d1c967 GD |
15278 | ac_find_libraries= |
15279 | for ac_dir in $SEARCH_LIB; | |
15280 | do | |
15281 | for ac_extension in a so sl dylib; do | |
15282 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
15283 | ac_find_libraries=$ac_dir | |
15284 | break 2 | |
15285 | fi | |
15286 | done | |
15287 | done | |
15288 | ||
15289 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 15290 | |
21d1c967 GD |
15291 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
15292 | result=$? | |
15293 | if test $result = 0; then | |
15294 | ac_path_to_link="" | |
15295 | else | |
15296 | ac_path_to_link=" -L$ac_find_libraries" | |
15297 | fi | |
15298 | ||
15299 | if test "$ac_path_to_link" = " -L/usr/lib" ; then | |
15300 | LDFLAGS_GL="$LDFLAGS" | |
15301 | else | |
15302 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
15303 | fi | |
15304 | OPENGL_LIBS="-lGL -lGLU" | |
a0b9e27f | 15305 | echo "$ac_t""yes" 1>&6 |
21d1c967 | 15306 | else |
a0b9e27f MB |
15307 | echo "$ac_t""no" 1>&6 |
15308 | echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6 | |
db82f09e | 15309 | echo "configure:15310: checking for -lMesaGL" >&5 |
a0b9e27f | 15310 | |
21d1c967 GD |
15311 | ac_find_libraries= |
15312 | for ac_dir in $SEARCH_LIB; | |
15313 | do | |
15314 | for ac_extension in a so sl dylib; do | |
15315 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
15316 | ac_find_libraries=$ac_dir | |
15317 | break 2 | |
15318 | fi | |
15319 | done | |
15320 | done | |
15321 | ||
15322 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 15323 | |
21d1c967 GD |
15324 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
15325 | result=$? | |
15326 | if test $result = 0; then | |
15327 | ac_path_to_link="" | |
15328 | else | |
15329 | ac_path_to_link=" -L$ac_find_libraries" | |
15330 | fi | |
15331 | ||
15332 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
15333 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
a0b9e27f | 15334 | echo "$ac_t""yes" 1>&6 |
21d1c967 | 15335 | else |
a0b9e27f | 15336 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
15337 | fi |
15338 | fi | |
a0b9e27f MB |
15339 | |
15340 | else | |
15341 | echo "$ac_t""no" 1>&6 | |
5c6fa7d2 | 15342 | fi |
52127426 | 15343 | |
8284b0c5 | 15344 | |
21d1c967 | 15345 | if test "x$OPENGL_LIBS" = "x"; then |
a0b9e27f | 15346 | { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; } |
21d1c967 GD |
15347 | fi |
15348 | fi | |
90dd450c | 15349 | |
21d1c967 | 15350 | if test "$wxUSE_OPENGL" = "yes"; then |
a0b9e27f | 15351 | cat >> confdefs.h <<\EOF |
21d1c967 | 15352 | #define wxUSE_OPENGL 1 |
a0b9e27f | 15353 | EOF |
21d1c967 | 15354 | |
a0b9e27f | 15355 | cat >> confdefs.h <<\EOF |
21d1c967 | 15356 | #define wxUSE_GLCANVAS 1 |
a0b9e27f | 15357 | EOF |
21d1c967 GD |
15358 | |
15359 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" | |
15360 | fi | |
10f2d63a | 15361 | fi |
21d1c967 GD |
15362 | |
15363 | if test -z "$TOOLKIT_VPATH" ; then | |
15364 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
10f2d63a | 15365 | fi |
21d1c967 GD |
15366 | |
15367 | if test -n "$TOOLKIT" ; then | |
15368 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
15369 | fi | |
15370 | ||
15371 | lib_unicode_suffix= | |
15372 | if test "$wxUSE_UNICODE" = "yes"; then | |
15373 | lib_unicode_suffix=u | |
90dd450c | 15374 | fi |
698dcdb6 | 15375 | |
21d1c967 GD |
15376 | lib_debug_suffix= |
15377 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
15378 | lib_debug_suffix=d | |
15379 | fi | |
698dcdb6 | 15380 | |
21d1c967 GD |
15381 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" |
15382 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
15383 | ||
15384 | if test "$cross_compiling" = "yes"; then | |
15385 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
15386 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
15387 | fi | |
15388 | ||
15389 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
15390 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
15391 | ||
15392 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
15393 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
15394 | ||
15395 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
15396 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
15397 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
15398 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
15399 | ||
15400 | case "${host}" in | |
15401 | *-*-cygwin* | *-*-mingw32* ) | |
15402 | ||
a0b9e27f MB |
15403 | |
15404 | ||
17234b26 | 15405 | if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then |
21d1c967 GD |
15406 | WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" |
15407 | WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
15408 | WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}" | |
15409 | WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
15410 | else | |
15411 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
15412 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
15413 | fi | |
15414 | ;; | |
15415 | ||
15416 | *-*-darwin* ) | |
15417 | if test "$wxUSE_MAC" = 1; then | |
3bd8fb5f | 15418 | WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.r" |
21d1c967 GD |
15419 | WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.rsrc" |
15420 | fi | |
15421 | ;; | |
15422 | esac | |
15423 | ||
15424 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
15425 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
15426 | ||
15427 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
15428 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" | |
15429 | ||
15430 | if test "$wxUSE_OPENGL" = "yes"; then | |
15431 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" | |
15432 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
15433 | fi | |
15434 | ||
8284b0c5 MB |
15435 | |
15436 | ||
21d1c967 GD |
15437 | if test "$wxUSE_SHARED" = "yes"; then |
15438 | case "${host}" in | |
15439 | *-pc-os2_emx | *-pc-os2-emx | \ | |
15440 | *-pc-msdosdjgpp ) | |
15441 | wxUSE_SHARED=no | |
a0b9e27f | 15442 | echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2 |
21d1c967 GD |
15443 | ;; |
15444 | esac | |
15445 | fi | |
15446 | ||
15447 | if test "$wxUSE_SHARED" = "yes"; then | |
15448 | ||
15449 | if test "$wxUSE_OPENGL" = "yes"; then | |
15450 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
15451 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}" | |
15452 | else | |
15453 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
15454 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}" | |
15455 | fi | |
15456 | ||
15457 | if test "$GCC" = "yes"; then | |
15458 | PIC_FLAG="-fPIC" | |
15459 | fi | |
15460 | ||
15461 | SHARED_LD="${CXX} -shared -o" | |
15462 | ||
15463 | case "${host}" in | |
15464 | *-hp-hpux* ) | |
ad2622f1 | 15465 | if test "$GCC" = "yes"; then |
85d5e282 | 15466 | SHARED_LD="${CXX} -shared ${PIC_FLAG} -o" |
21d1c967 GD |
15467 | else |
15468 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
15469 | ||
15470 | SHARED_LD="${CXX} -b -o" | |
15471 | PIC_FLAG="+Z" | |
15472 | fi | |
15473 | ||
15474 | if test "$wxUSE_OPENGL" = "yes"; then | |
15475 | WX_ALL_INSTALLED="preinstall_gl" | |
15476 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
15477 | else | |
15478 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
15479 | fi | |
15480 | ;; | |
15481 | ||
15482 | *-*-linux* ) | |
15483 | if test "$GCC" != "yes"; then | |
a0b9e27f | 15484 | echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6 |
db82f09e | 15485 | echo "configure:15486: checking for Intel compiler" >&5 |
a0b9e27f MB |
15486 | if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then |
15487 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15488 | else | |
15489 | ||
15490 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 15491 | #line 15492 "configure" |
698dcdb6 | 15492 | #include "confdefs.h" |
90dd450c | 15493 | |
a0b9e27f | 15494 | int main() { |
90dd450c | 15495 | |
21d1c967 GD |
15496 | #ifndef __INTEL_COMPILER |
15497 | #error Not icc | |
15498 | #endif | |
a0b9e27f MB |
15499 | |
15500 | ; return 0; } | |
15501 | EOF | |
db82f09e | 15502 | if { (eval echo configure:15503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 15503 | rm -rf conftest* |
21d1c967 | 15504 | wx_cv_prog_icc=yes |
6232543b | 15505 | else |
a0b9e27f MB |
15506 | echo "configure: failed program was:" >&5 |
15507 | cat conftest.$ac_ext >&5 | |
15508 | rm -rf conftest* | |
15509 | wx_cv_prog_icc=no | |
15510 | ||
5c6fa7d2 | 15511 | fi |
a0b9e27f MB |
15512 | rm -f conftest* |
15513 | ||
247f5006 | 15514 | fi |
a0b9e27f MB |
15515 | |
15516 | echo "$ac_t""$wx_cv_prog_icc" 1>&6 | |
21d1c967 GD |
15517 | if test "$wx_cv_prog_icc" = "yes"; then |
15518 | PIC_FLAG="-KPIC" | |
15519 | fi | |
15520 | fi | |
15521 | ||
15522 | if test "$wxUSE_SONAME" = "yes" ; then | |
15523 | SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}" | |
15524 | SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" | |
15525 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" | |
15526 | fi | |
15527 | ;; | |
15528 | ||
15529 | *-*-solaris2* ) | |
15530 | if test "$GCC" = yes ; then | |
15531 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
15532 | else | |
15533 | SHARED_LD="${CXX} -G -o" | |
15534 | PIC_FLAG="-KPIC" | |
15535 | SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}" | |
15536 | SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}" | |
15537 | fi | |
15538 | ;; | |
15539 | ||
15540 | *-*-darwin* ) | |
b2fee376 GD |
15541 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL" |
15542 | CFLAGS="$CFLAGS -fno-common" | |
15543 | CXXFLAGS="$CXXFLAGS -fno-common" | |
21d1c967 GD |
15544 | SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o" |
15545 | PIC_FLAG="-dynamic -fPIC" | |
15546 | SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}" | |
15547 | SONAME_FLAGS_GL=${SONAME_FLAGS} | |
15548 | ;; | |
15549 | ||
15550 | *-*-aix* ) | |
321d2b14 VZ |
15551 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. |
15552 | set dummy makeC++SharedLib; ac_word=$2 | |
a0b9e27f | 15553 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
db82f09e | 15554 | echo "configure:15555: checking for $ac_word" >&5 |
a0b9e27f MB |
15555 | if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then |
15556 | echo $ac_n "(cached) $ac_c" 1>&6 | |
321d2b14 VZ |
15557 | else |
15558 | if test -n "$AIX_CXX_LD"; then | |
15559 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
15560 | else | |
a0b9e27f MB |
15561 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
15562 | ac_dummy="$PATH" | |
15563 | for ac_dir in $ac_dummy; do | |
15564 | test -z "$ac_dir" && ac_dir=. | |
15565 | if test -f $ac_dir/$ac_word; then | |
15566 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
15567 | break | |
15568 | fi | |
15569 | done | |
15570 | IFS="$ac_save_ifs" | |
321d2b14 VZ |
15571 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" |
15572 | fi | |
15573 | fi | |
a0b9e27f | 15574 | AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD" |
321d2b14 | 15575 | if test -n "$AIX_CXX_LD"; then |
a0b9e27f | 15576 | echo "$ac_t""$AIX_CXX_LD" 1>&6 |
321d2b14 | 15577 | else |
a0b9e27f | 15578 | echo "$ac_t""no" 1>&6 |
321d2b14 VZ |
15579 | fi |
15580 | ||
8284b0c5 | 15581 | |
321d2b14 | 15582 | SHARED_LD="$(AIX_CXX_LD) -p 0 -o" |
21d1c967 GD |
15583 | ;; |
15584 | ||
15585 | *-*-cygwin* | *-*-mingw32* ) | |
15586 | ||
15587 | WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a" | |
15588 | ||
15589 | SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o" | |
15590 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
15591 | ||
15592 | PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1" | |
15593 | ||
15594 | if test "$wxUSE_OPENGL" = "yes"; then | |
15595 | WX_ALL_INSTALLED="preinstall_gl" | |
15596 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
15597 | else | |
15598 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
15599 | fi | |
15600 | ;; | |
15601 | ||
15602 | *-*-beos* ) | |
15603 | SHARED_LD="${LD} -shared -o" | |
15604 | ;; | |
15605 | ||
15606 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ | |
15607 | *-*-sunos4* | \ | |
15608 | *-*-irix5* | *-*-irix6* | \ | |
15609 | *-*-osf* | \ | |
15610 | *-*-dgux5* | \ | |
15611 | *-*-sysv5* ) | |
15612 | ;; | |
15613 | ||
15614 | *) | |
a0b9e27f | 15615 | { echo "configure: error: unknown system type $host." 1>&2; exit 1; } |
21d1c967 GD |
15616 | esac |
15617 | ||
15618 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
15619 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
15620 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
15621 | fi | |
15622 | ||
15623 | WX_TARGET_LIBRARY_TYPE="so" | |
15624 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' | |
90dd450c | 15625 | fi |
10f2d63a | 15626 | |
21d1c967 GD |
15627 | if test "$wxUSE_SHARED" = "no"; then |
15628 | ||
15629 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then | |
15630 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
15631 | fi | |
15632 | ||
15633 | if test "$wxUSE_MAC" = 1; then | |
15634 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
15635 | fi | |
15636 | ||
15637 | if test "$wxUSE_OPENGL" = "yes"; then | |
15638 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
15639 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
15640 | else | |
15641 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
15642 | fi | |
15643 | ||
15644 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
15645 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
15646 | ||
15647 | WX_TARGET_LIBRARY_TYPE="a" | |
15648 | INSTALL_LIBRARY='$(INSTALL_DATA)' | |
2bffed64 VZ |
15649 | |
15650 | STATIC_FLAG="yes" | |
15651 | else | |
15652 | STATIC_FLAG="no" | |
90dd450c | 15653 | fi |
1e487827 | 15654 | |
21d1c967 GD |
15655 | if test "$wxUSE_MAC" = 1; then |
15656 | LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}" | |
15657 | WX_ALL="${WX_ALL} ${LIBWXMACRES}" | |
15658 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
15659 | # Extract the first word of "Rez", so it can be a program name with args. | |
15660 | set dummy Rez; ac_word=$2 | |
a0b9e27f | 15661 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
db82f09e | 15662 | echo "configure:15663: checking for $ac_word" >&5 |
a0b9e27f MB |
15663 | if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then |
15664 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b93d0d08 | 15665 | else |
21d1c967 GD |
15666 | if test -n "$RESCOMP"; then |
15667 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
b93d0d08 | 15668 | else |
a0b9e27f MB |
15669 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
15670 | ac_dummy="$PATH" | |
15671 | for ac_dir in $ac_dummy; do | |
15672 | test -z "$ac_dir" && ac_dir=. | |
15673 | if test -f $ac_dir/$ac_word; then | |
15674 | ac_cv_prog_RESCOMP="Rez" | |
15675 | break | |
15676 | fi | |
15677 | done | |
15678 | IFS="$ac_save_ifs" | |
21d1c967 | 15679 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
b93d0d08 | 15680 | fi |
b93d0d08 | 15681 | fi |
a0b9e27f | 15682 | RESCOMP="$ac_cv_prog_RESCOMP" |
21d1c967 | 15683 | if test -n "$RESCOMP"; then |
a0b9e27f | 15684 | echo "$ac_t""$RESCOMP" 1>&6 |
90dd450c | 15685 | else |
a0b9e27f | 15686 | echo "$ac_t""no" 1>&6 |
90dd450c | 15687 | fi |
b93d0d08 | 15688 | |
21d1c967 GD |
15689 | # Extract the first word of "DeRez", so it can be a program name with args. |
15690 | set dummy DeRez; ac_word=$2 | |
a0b9e27f | 15691 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
db82f09e | 15692 | echo "configure:15693: checking for $ac_word" >&5 |
a0b9e27f MB |
15693 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
15694 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3a922bb4 | 15695 | else |
21d1c967 GD |
15696 | if test -n "$DEREZ"; then |
15697 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
4f14bcd8 | 15698 | else |
a0b9e27f MB |
15699 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
15700 | ac_dummy="$PATH" | |
15701 | for ac_dir in $ac_dummy; do | |
15702 | test -z "$ac_dir" && ac_dir=. | |
15703 | if test -f $ac_dir/$ac_word; then | |
15704 | ac_cv_prog_DEREZ="DeRez" | |
15705 | break | |
15706 | fi | |
15707 | done | |
15708 | IFS="$ac_save_ifs" | |
21d1c967 | 15709 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
3a922bb4 | 15710 | fi |
90dd450c | 15711 | fi |
a0b9e27f | 15712 | DEREZ="$ac_cv_prog_DEREZ" |
21d1c967 | 15713 | if test -n "$DEREZ"; then |
a0b9e27f | 15714 | echo "$ac_t""$DEREZ" 1>&6 |
90dd450c | 15715 | else |
a0b9e27f | 15716 | echo "$ac_t""no" 1>&6 |
3a922bb4 | 15717 | fi |
698dcdb6 | 15718 | |
21d1c967 GD |
15719 | MACOSX_BUNDLE="bundle" |
15720 | if test "$wxUSE_SHARED" = "yes"; then | |
15721 | LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r -o \$(BIN_PROGRAM)" | |
15722 | LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r -o" | |
15723 | else | |
15724 | LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)" | |
15725 | LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
15726 | fi | |
15727 | else | |
15728 | if test "$wxUSE_PM" = 1; then | |
15729 | LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)" | |
90dd450c | 15730 | fi |
4f14bcd8 | 15731 | fi |
10f2d63a | 15732 | |
8284b0c5 | 15733 | |
a0b9e27f | 15734 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
db82f09e | 15735 | echo "configure:15736: checking for ANSI C header files" >&5 |
a0b9e27f MB |
15736 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
15737 | echo $ac_n "(cached) $ac_c" 1>&6 | |
52127426 | 15738 | else |
a0b9e27f | 15739 | cat > conftest.$ac_ext <<EOF |
db82f09e | 15740 | #line 15741 "configure" |
52127426 | 15741 | #include "confdefs.h" |
a0b9e27f MB |
15742 | #include <stdlib.h> |
15743 | #include <stdarg.h> | |
15744 | #include <string.h> | |
15745 | #include <float.h> | |
15746 | EOF | |
15747 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
db82f09e | 15748 | { (eval echo configure:15749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
15749 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15750 | if test -z "$ac_err"; then | |
15751 | rm -rf conftest* | |
15752 | ac_cv_header_stdc=yes | |
15753 | else | |
15754 | echo "$ac_err" >&5 | |
15755 | echo "configure: failed program was:" >&5 | |
15756 | cat conftest.$ac_ext >&5 | |
15757 | rm -rf conftest* | |
15758 | ac_cv_header_stdc=no | |
15759 | fi | |
15760 | rm -f conftest* | |
15761 | ||
15762 | if test $ac_cv_header_stdc = yes; then | |
15763 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
15764 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 15765 | #line 15766 "configure" |
a0b9e27f MB |
15766 | #include "confdefs.h" |
15767 | #include <string.h> | |
15768 | EOF | |
15769 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15770 | egrep "memchr" >/dev/null 2>&1; then | |
15771 | : | |
15772 | else | |
15773 | rm -rf conftest* | |
15774 | ac_cv_header_stdc=no | |
15775 | fi | |
15776 | rm -f conftest* | |
15777 | ||
15778 | fi | |
15779 | ||
15780 | if test $ac_cv_header_stdc = yes; then | |
15781 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
15782 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 15783 | #line 15784 "configure" |
a0b9e27f MB |
15784 | #include "confdefs.h" |
15785 | #include <stdlib.h> | |
15786 | EOF | |
15787 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15788 | egrep "free" >/dev/null 2>&1; then | |
15789 | : | |
7b4a847f | 15790 | else |
a0b9e27f MB |
15791 | rm -rf conftest* |
15792 | ac_cv_header_stdc=no | |
52127426 | 15793 | fi |
a0b9e27f MB |
15794 | rm -f conftest* |
15795 | ||
52127426 | 15796 | fi |
a0b9e27f MB |
15797 | |
15798 | if test $ac_cv_header_stdc = yes; then | |
15799 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
15800 | if test "$cross_compiling" = yes; then | |
247f5006 VZ |
15801 | : |
15802 | else | |
a0b9e27f | 15803 | cat > conftest.$ac_ext <<EOF |
db82f09e | 15804 | #line 15805 "configure" |
a0b9e27f MB |
15805 | #include "confdefs.h" |
15806 | #include <ctype.h> | |
15807 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
15808 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
15809 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
15810 | int main () { int i; for (i = 0; i < 256; i++) | |
15811 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
15812 | exit (0); } | |
247f5006 | 15813 | |
a0b9e27f | 15814 | EOF |
db82f09e | 15815 | if { (eval echo configure:15816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
15816 | then |
15817 | : | |
15818 | else | |
15819 | echo "configure: failed program was:" >&5 | |
15820 | cat conftest.$ac_ext >&5 | |
15821 | rm -fr conftest* | |
15822 | ac_cv_header_stdc=no | |
15823 | fi | |
15824 | rm -fr conftest* | |
15825 | fi | |
15826 | ||
15827 | fi | |
15828 | fi | |
15829 | ||
15830 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
15831 | if test $ac_cv_header_stdc = yes; then | |
15832 | cat >> confdefs.h <<\EOF | |
15833 | #define STDC_HEADERS 1 | |
15834 | EOF | |
8284b0c5 MB |
15835 | |
15836 | fi | |
15837 | ||
a0b9e27f | 15838 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
db82f09e | 15839 | echo "configure:15840: checking for mode_t" >&5 |
a0b9e27f MB |
15840 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
15841 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 15842 | else |
a0b9e27f | 15843 | cat > conftest.$ac_ext <<EOF |
db82f09e | 15844 | #line 15845 "configure" |
8284b0c5 | 15845 | #include "confdefs.h" |
a0b9e27f MB |
15846 | #include <sys/types.h> |
15847 | #if STDC_HEADERS | |
15848 | #include <stdlib.h> | |
15849 | #include <stddef.h> | |
8284b0c5 | 15850 | #endif |
a0b9e27f MB |
15851 | EOF |
15852 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15853 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
15854 | rm -rf conftest* | |
15855 | ac_cv_type_mode_t=yes | |
5c6fa7d2 | 15856 | else |
a0b9e27f MB |
15857 | rm -rf conftest* |
15858 | ac_cv_type_mode_t=no | |
15859 | fi | |
15860 | rm -f conftest* | |
15861 | ||
8284b0c5 | 15862 | fi |
a0b9e27f MB |
15863 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 |
15864 | if test $ac_cv_type_mode_t = no; then | |
15865 | cat >> confdefs.h <<\EOF | |
15866 | #define mode_t int | |
15867 | EOF | |
15868 | ||
8284b0c5 | 15869 | fi |
a0b9e27f MB |
15870 | |
15871 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
db82f09e | 15872 | echo "configure:15873: checking for off_t" >&5 |
a0b9e27f MB |
15873 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
15874 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15875 | else | |
15876 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 15877 | #line 15878 "configure" |
a0b9e27f MB |
15878 | #include "confdefs.h" |
15879 | #include <sys/types.h> | |
15880 | #if STDC_HEADERS | |
15881 | #include <stdlib.h> | |
15882 | #include <stddef.h> | |
15883 | #endif | |
15884 | EOF | |
15885 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15886 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
15887 | rm -rf conftest* | |
15888 | ac_cv_type_off_t=yes | |
247f5006 | 15889 | else |
a0b9e27f MB |
15890 | rm -rf conftest* |
15891 | ac_cv_type_off_t=no | |
15892 | fi | |
15893 | rm -f conftest* | |
247f5006 | 15894 | |
a0b9e27f MB |
15895 | fi |
15896 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
15897 | if test $ac_cv_type_off_t = no; then | |
15898 | cat >> confdefs.h <<\EOF | |
90dd450c | 15899 | #define off_t long |
a0b9e27f | 15900 | EOF |
10f2d63a | 15901 | |
90dd450c | 15902 | fi |
10f2d63a | 15903 | |
a0b9e27f | 15904 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
db82f09e | 15905 | echo "configure:15906: checking for pid_t" >&5 |
a0b9e27f MB |
15906 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
15907 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 15908 | else |
a0b9e27f | 15909 | cat > conftest.$ac_ext <<EOF |
db82f09e | 15910 | #line 15911 "configure" |
10f2d63a | 15911 | #include "confdefs.h" |
a0b9e27f MB |
15912 | #include <sys/types.h> |
15913 | #if STDC_HEADERS | |
15914 | #include <stdlib.h> | |
15915 | #include <stddef.h> | |
8284b0c5 | 15916 | #endif |
a0b9e27f MB |
15917 | EOF |
15918 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15919 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
15920 | rm -rf conftest* | |
90dd450c | 15921 | ac_cv_type_pid_t=yes |
698dcdb6 | 15922 | else |
a0b9e27f MB |
15923 | rm -rf conftest* |
15924 | ac_cv_type_pid_t=no | |
8284b0c5 | 15925 | fi |
a0b9e27f | 15926 | rm -f conftest* |
247f5006 | 15927 | |
a0b9e27f MB |
15928 | fi |
15929 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
15930 | if test $ac_cv_type_pid_t = no; then | |
15931 | cat >> confdefs.h <<\EOF | |
90dd450c | 15932 | #define pid_t int |
a0b9e27f | 15933 | EOF |
10f2d63a | 15934 | |
7b4a847f RR |
15935 | fi |
15936 | ||
a0b9e27f | 15937 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
db82f09e | 15938 | echo "configure:15939: checking for size_t" >&5 |
a0b9e27f MB |
15939 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
15940 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7b4a847f | 15941 | else |
a0b9e27f | 15942 | cat > conftest.$ac_ext <<EOF |
db82f09e | 15943 | #line 15944 "configure" |
7b4a847f | 15944 | #include "confdefs.h" |
a0b9e27f MB |
15945 | #include <sys/types.h> |
15946 | #if STDC_HEADERS | |
15947 | #include <stdlib.h> | |
15948 | #include <stddef.h> | |
8284b0c5 | 15949 | #endif |
a0b9e27f MB |
15950 | EOF |
15951 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15952 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
15953 | rm -rf conftest* | |
90dd450c | 15954 | ac_cv_type_size_t=yes |
18dbb1f6 | 15955 | else |
a0b9e27f MB |
15956 | rm -rf conftest* |
15957 | ac_cv_type_size_t=no | |
52127426 | 15958 | fi |
a0b9e27f | 15959 | rm -f conftest* |
247f5006 | 15960 | |
a0b9e27f MB |
15961 | fi |
15962 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
15963 | if test $ac_cv_type_size_t = no; then | |
15964 | cat >> confdefs.h <<\EOF | |
90dd450c | 15965 | #define size_t unsigned |
a0b9e27f | 15966 | EOF |
90dd450c VZ |
15967 | |
15968 | fi | |
15969 | ||
a0b9e27f | 15970 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
db82f09e | 15971 | echo "configure:15972: checking for uid_t in sys/types.h" >&5 |
a0b9e27f MB |
15972 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
15973 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b3e8d00a | 15974 | else |
a0b9e27f | 15975 | cat > conftest.$ac_ext <<EOF |
db82f09e | 15976 | #line 15977 "configure" |
b3e8d00a | 15977 | #include "confdefs.h" |
90dd450c | 15978 | #include <sys/types.h> |
a0b9e27f | 15979 | EOF |
90dd450c VZ |
15980 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
15981 | egrep "uid_t" >/dev/null 2>&1; then | |
a0b9e27f | 15982 | rm -rf conftest* |
90dd450c | 15983 | ac_cv_type_uid_t=yes |
b3e8d00a | 15984 | else |
a0b9e27f | 15985 | rm -rf conftest* |
90dd450c | 15986 | ac_cv_type_uid_t=no |
b3e8d00a | 15987 | fi |
90dd450c | 15988 | rm -f conftest* |
b3e8d00a | 15989 | |
4f14bcd8 | 15990 | fi |
247f5006 | 15991 | |
a0b9e27f MB |
15992 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
15993 | if test $ac_cv_type_uid_t = no; then | |
15994 | cat >> confdefs.h <<\EOF | |
90dd450c | 15995 | #define uid_t int |
a0b9e27f | 15996 | EOF |
247f5006 | 15997 | |
a0b9e27f | 15998 | cat >> confdefs.h <<\EOF |
90dd450c | 15999 | #define gid_t int |
a0b9e27f | 16000 | EOF |
4f14bcd8 | 16001 | |
b3e8d00a | 16002 | fi |
b3e8d00a | 16003 | |
8284b0c5 MB |
16004 | |
16005 | ||
a0b9e27f MB |
16006 | ac_ext=C |
16007 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 16008 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
16009 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16010 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16011 | cross_compiling=$ac_cv_prog_cxx_cross | |
90dd450c | 16012 | |
a0b9e27f | 16013 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 |
db82f09e | 16014 | echo "configure:16015: checking if size_t is unsigned int" >&5 |
a0b9e27f MB |
16015 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
16016 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 16017 | else |
a0b9e27f | 16018 | cat > conftest.$ac_ext <<EOF |
db82f09e | 16019 | #line 16020 "configure" |
10f2d63a | 16020 | #include "confdefs.h" |
90dd450c | 16021 | #include <stddef.h> |
a0b9e27f | 16022 | int main() { |
90dd450c VZ |
16023 | |
16024 | return 0; } | |
16025 | ||
16026 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
16027 | ||
16028 | int bar() { | |
a0b9e27f MB |
16029 | |
16030 | ; return 0; } | |
16031 | EOF | |
db82f09e | 16032 | if { (eval echo configure:16033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 16033 | rm -rf conftest* |
90dd450c | 16034 | wx_cv_size_t_is_uint=no |
698dcdb6 | 16035 | else |
a0b9e27f MB |
16036 | echo "configure: failed program was:" >&5 |
16037 | cat conftest.$ac_ext >&5 | |
16038 | rm -rf conftest* | |
16039 | wx_cv_size_t_is_uint=yes | |
16040 | ||
5c6fa7d2 | 16041 | fi |
a0b9e27f | 16042 | rm -f conftest* |
8284b0c5 | 16043 | |
247f5006 | 16044 | fi |
a0b9e27f MB |
16045 | |
16046 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
4f14bcd8 | 16047 | |
90dd450c | 16048 | if test "$wx_cv_size_t_is_uint" = "yes"; then |
a0b9e27f | 16049 | cat >> confdefs.h <<\EOF |
90dd450c | 16050 | #define wxSIZE_T_IS_UINT 1 |
a0b9e27f | 16051 | EOF |
698dcdb6 | 16052 | |
90dd450c | 16053 | else |
a0b9e27f | 16054 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 |
db82f09e | 16055 | echo "configure:16056: checking if size_t is unsigned long" >&5 |
a0b9e27f MB |
16056 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
16057 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 16058 | else |
a0b9e27f | 16059 | cat > conftest.$ac_ext <<EOF |
db82f09e | 16060 | #line 16061 "configure" |
10f2d63a | 16061 | #include "confdefs.h" |
90dd450c | 16062 | #include <stddef.h> |
a0b9e27f | 16063 | int main() { |
90dd450c VZ |
16064 | |
16065 | return 0; } | |
16066 | ||
16067 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
16068 | ||
16069 | int bar() { | |
a0b9e27f MB |
16070 | |
16071 | ; return 0; } | |
16072 | EOF | |
db82f09e | 16073 | if { (eval echo configure:16074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 16074 | rm -rf conftest* |
90dd450c | 16075 | wx_cv_size_t_is_ulong=no |
698dcdb6 | 16076 | else |
a0b9e27f MB |
16077 | echo "configure: failed program was:" >&5 |
16078 | cat conftest.$ac_ext >&5 | |
16079 | rm -rf conftest* | |
16080 | wx_cv_size_t_is_ulong=yes | |
16081 | ||
5c6fa7d2 | 16082 | fi |
a0b9e27f MB |
16083 | rm -f conftest* |
16084 | ||
247f5006 | 16085 | fi |
a0b9e27f MB |
16086 | |
16087 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
10f2d63a | 16088 | |
90dd450c | 16089 | if test "$wx_cv_size_t_is_ulong" = "yes"; then |
a0b9e27f | 16090 | cat >> confdefs.h <<\EOF |
90dd450c | 16091 | #define wxSIZE_T_IS_ULONG 1 |
a0b9e27f | 16092 | EOF |
4f14bcd8 GD |
16093 | |
16094 | fi | |
90dd450c | 16095 | fi |
1e487827 | 16096 | |
90dd450c | 16097 | ac_ext=c |
a0b9e27f | 16098 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 16099 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
16100 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16101 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16102 | cross_compiling=$ac_cv_prog_cc_cross | |
698dcdb6 | 16103 | |
5c6fa7d2 | 16104 | |
8284b0c5 | 16105 | |
a0b9e27f | 16106 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
db82f09e | 16107 | echo "configure:16108: checking for pw_gecos in struct passwd" >&5 |
a0b9e27f MB |
16108 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
16109 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 16110 | else |
a0b9e27f MB |
16111 | |
16112 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 16113 | #line 16114 "configure" |
4f14bcd8 | 16114 | #include "confdefs.h" |
90dd450c | 16115 | #include <pwd.h> |
a0b9e27f | 16116 | int main() { |
f6bcfd97 | 16117 | |
90dd450c VZ |
16118 | char *p; |
16119 | struct passwd *pw; | |
16120 | p = pw->pw_gecos; | |
a0b9e27f MB |
16121 | |
16122 | ; return 0; } | |
16123 | EOF | |
db82f09e | 16124 | if { (eval echo configure:16125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
16125 | rm -rf conftest* |
16126 | ||
90dd450c | 16127 | wx_cv_struct_pw_gecos=yes |
a0b9e27f | 16128 | |
10f2d63a | 16129 | else |
a0b9e27f MB |
16130 | echo "configure: failed program was:" >&5 |
16131 | cat conftest.$ac_ext >&5 | |
16132 | rm -rf conftest* | |
16133 | ||
90dd450c | 16134 | wx_cv_struct_pw_gecos=no |
a0b9e27f MB |
16135 | |
16136 | ||
5c6fa7d2 | 16137 | fi |
a0b9e27f MB |
16138 | rm -f conftest* |
16139 | ||
247f5006 VZ |
16140 | |
16141 | fi | |
a0b9e27f MB |
16142 | |
16143 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
c521c494 | 16144 | |
90dd450c | 16145 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
a0b9e27f | 16146 | cat >> confdefs.h <<\EOF |
90dd450c | 16147 | #define HAVE_PW_GECOS 1 |
a0b9e27f | 16148 | EOF |
c521c494 | 16149 | |
90dd450c | 16150 | fi |
4f14bcd8 | 16151 | |
8284b0c5 | 16152 | |
d29b553b | 16153 | if test "$wx_cv_sizeof_wchar_t" != "0"; then |
a0b9e27f | 16154 | cat >> confdefs.h <<\EOF |
d74f4b5a | 16155 | #define wxUSE_WCHAR_T 1 |
a0b9e27f | 16156 | EOF |
d74f4b5a | 16157 | |
8284b0c5 | 16158 | |
d74f4b5a VZ |
16159 | WCSLEN_FOUND=0 |
16160 | WCHAR_LINK= | |
a0b9e27f | 16161 | for ac_func in wcslen |
7a30264c | 16162 | do |
a0b9e27f | 16163 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
db82f09e | 16164 | echo "configure:16165: checking for $ac_func" >&5 |
a0b9e27f MB |
16165 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16166 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16167 | else | |
16168 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 16169 | #line 16170 "configure" |
4f14bcd8 | 16170 | #include "confdefs.h" |
7a30264c | 16171 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 16172 | which can conflict with char $ac_func(); below. */ |
7a30264c | 16173 | #include <assert.h> |
4f14bcd8 GD |
16174 | /* Override any gcc2 internal prototype to avoid an error. */ |
16175 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16176 | builtin and then its argument prototype would still apply. */ |
16177 | char $ac_func(); | |
16178 | ||
16179 | int main() { | |
16180 | ||
7a30264c VZ |
16181 | /* The GNU C library defines this for functions which it implements |
16182 | to always fail with ENOSYS. Some functions are actually named | |
16183 | something starting with __ and the normal name is an alias. */ | |
16184 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16185 | choke me | |
16186 | #else | |
a0b9e27f | 16187 | $ac_func(); |
7a30264c VZ |
16188 | #endif |
16189 | ||
a0b9e27f MB |
16190 | ; return 0; } |
16191 | EOF | |
db82f09e | 16192 | if { (eval echo configure:16193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16193 | rm -rf conftest* |
16194 | eval "ac_cv_func_$ac_func=yes" | |
16195 | else | |
16196 | echo "configure: failed program was:" >&5 | |
16197 | cat conftest.$ac_ext >&5 | |
16198 | rm -rf conftest* | |
16199 | eval "ac_cv_func_$ac_func=no" | |
16200 | fi | |
16201 | rm -f conftest* | |
16202 | fi | |
16203 | ||
16204 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16205 | echo "$ac_t""yes" 1>&6 | |
16206 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16207 | cat >> confdefs.h <<EOF | |
16208 | #define $ac_tr_func 1 | |
16209 | EOF | |
d74f4b5a | 16210 | WCSLEN_FOUND=1 |
a0b9e27f MB |
16211 | else |
16212 | echo "$ac_t""no" 1>&6 | |
7a30264c VZ |
16213 | fi |
16214 | done | |
9d8deca0 | 16215 | |
8284b0c5 | 16216 | |
d74f4b5a | 16217 | if test "$WCSLEN_FOUND" = 0; then |
7a30264c | 16218 | if test "$TOOLKIT" = "MSW"; then |
a0b9e27f | 16219 | echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6 |
db82f09e | 16220 | echo "configure:16221: checking for wcslen in -lmsvcrt" >&5 |
a0b9e27f MB |
16221 | ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'` |
16222 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16223 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16224 | else |
a0b9e27f | 16225 | ac_save_LIBS="$LIBS" |
7a30264c | 16226 | LIBS="-lmsvcrt $LIBS" |
a0b9e27f | 16227 | cat > conftest.$ac_ext <<EOF |
db82f09e | 16228 | #line 16229 "configure" |
10f2d63a | 16229 | #include "confdefs.h" |
4f14bcd8 GD |
16230 | /* Override any gcc2 internal prototype to avoid an error. */ |
16231 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16232 | builtin and then its argument prototype would still apply. */ |
16233 | char wcslen(); | |
16234 | ||
16235 | int main() { | |
16236 | wcslen() | |
16237 | ; return 0; } | |
16238 | EOF | |
db82f09e | 16239 | if { (eval echo configure:16240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16240 | rm -rf conftest* |
16241 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16242 | else | |
16243 | echo "configure: failed program was:" >&5 | |
16244 | cat conftest.$ac_ext >&5 | |
16245 | rm -rf conftest* | |
16246 | eval "ac_cv_lib_$ac_lib_var=no" | |
16247 | fi | |
16248 | rm -f conftest* | |
16249 | LIBS="$ac_save_LIBS" | |
16250 | ||
16251 | fi | |
16252 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16253 | echo "$ac_t""yes" 1>&6 | |
d74f4b5a | 16254 | WCHAR_OK=1 |
a0b9e27f MB |
16255 | else |
16256 | echo "$ac_t""no" 1>&6 | |
d29b553b | 16257 | fi |
698dcdb6 | 16258 | |
7a30264c | 16259 | else |
a0b9e27f | 16260 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 |
db82f09e | 16261 | echo "configure:16262: checking for wcslen in -lw" >&5 |
a0b9e27f MB |
16262 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
16263 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16264 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 16265 | else |
a0b9e27f | 16266 | ac_save_LIBS="$LIBS" |
7a30264c | 16267 | LIBS="-lw $LIBS" |
a0b9e27f | 16268 | cat > conftest.$ac_ext <<EOF |
db82f09e | 16269 | #line 16270 "configure" |
95c8801c | 16270 | #include "confdefs.h" |
4f14bcd8 GD |
16271 | /* Override any gcc2 internal prototype to avoid an error. */ |
16272 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16273 | builtin and then its argument prototype would still apply. */ |
16274 | char wcslen(); | |
52127426 | 16275 | |
a0b9e27f MB |
16276 | int main() { |
16277 | wcslen() | |
16278 | ; return 0; } | |
16279 | EOF | |
db82f09e | 16280 | if { (eval echo configure:16281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16281 | rm -rf conftest* |
16282 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16283 | else | |
16284 | echo "configure: failed program was:" >&5 | |
16285 | cat conftest.$ac_ext >&5 | |
16286 | rm -rf conftest* | |
16287 | eval "ac_cv_lib_$ac_lib_var=no" | |
16288 | fi | |
16289 | rm -f conftest* | |
16290 | LIBS="$ac_save_LIBS" | |
16291 | ||
16292 | fi | |
16293 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16294 | echo "$ac_t""yes" 1>&6 | |
16295 | ||
7a30264c | 16296 | WCHAR_LINK=" -lw" |
d74f4b5a | 16297 | WCSLEN_FOUND=1 |
a0b9e27f MB |
16298 | |
16299 | else | |
16300 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 16301 | fi |
10f2d63a | 16302 | |
7a30264c | 16303 | fi |
d29b553b | 16304 | fi |
95c8801c | 16305 | |
d74f4b5a | 16306 | if test "$WCSLEN_FOUND" = 1; then |
a0b9e27f | 16307 | cat >> confdefs.h <<\EOF |
d74f4b5a | 16308 | #define HAVE_WCSLEN 1 |
a0b9e27f | 16309 | EOF |
10f2d63a | 16310 | |
d74f4b5a | 16311 | fi |
52127426 | 16312 | |
a0b9e27f | 16313 | for ac_func in wcsrtombs |
eb4efbdc | 16314 | do |
a0b9e27f | 16315 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
db82f09e | 16316 | echo "configure:16317: checking for $ac_func" >&5 |
a0b9e27f MB |
16317 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16318 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16319 | else | |
16320 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 16321 | #line 16322 "configure" |
eb4efbdc VZ |
16322 | #include "confdefs.h" |
16323 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 16324 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
16325 | #include <assert.h> |
16326 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4f14bcd8 | 16327 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
16328 | builtin and then its argument prototype would still apply. */ |
16329 | char $ac_func(); | |
16330 | ||
16331 | int main() { | |
16332 | ||
10f2d63a VZ |
16333 | /* The GNU C library defines this for functions which it implements |
16334 | to always fail with ENOSYS. Some functions are actually named | |
16335 | something starting with __ and the normal name is an alias. */ | |
247f5006 | 16336 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
10f2d63a VZ |
16337 | choke me |
16338 | #else | |
a0b9e27f | 16339 | $ac_func(); |
10f2d63a VZ |
16340 | #endif |
16341 | ||
a0b9e27f MB |
16342 | ; return 0; } |
16343 | EOF | |
db82f09e | 16344 | if { (eval echo configure:16345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16345 | rm -rf conftest* |
16346 | eval "ac_cv_func_$ac_func=yes" | |
16347 | else | |
16348 | echo "configure: failed program was:" >&5 | |
16349 | cat conftest.$ac_ext >&5 | |
16350 | rm -rf conftest* | |
16351 | eval "ac_cv_func_$ac_func=no" | |
16352 | fi | |
16353 | rm -f conftest* | |
16354 | fi | |
270a909e | 16355 | |
a0b9e27f MB |
16356 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16357 | echo "$ac_t""yes" 1>&6 | |
16358 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16359 | cat >> confdefs.h <<EOF | |
16360 | #define $ac_tr_func 1 | |
16361 | EOF | |
16362 | ||
16363 | else | |
16364 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 16365 | fi |
247f5006 | 16366 | done |
1e487827 | 16367 | |
af15babd | 16368 | else |
a0b9e27f | 16369 | echo "configure: warning: Wide character support is unavailable" 1>&2 |
7b4a847f | 16370 | fi |
52127426 | 16371 | |
8284b0c5 | 16372 | |
a0b9e27f MB |
16373 | ac_ext=C |
16374 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
247f5006 | 16375 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
16376 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16377 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16378 | cross_compiling=$ac_cv_prog_cxx_cross | |
af15babd | 16379 | |
247f5006 VZ |
16380 | |
16381 | for ac_func in vsnprintf | |
16382 | do | |
a0b9e27f | 16383 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
db82f09e | 16384 | echo "configure:16385: checking for $ac_func" >&5 |
a0b9e27f MB |
16385 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16386 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16387 | else | |
16388 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 16389 | #line 16390 "configure" |
af15babd | 16390 | #include "confdefs.h" |
247f5006 | 16391 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 16392 | which can conflict with char $ac_func(); below. */ |
247f5006 VZ |
16393 | #include <assert.h> |
16394 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16395 | #ifdef __cplusplus | |
16396 | extern "C" | |
16397 | #endif | |
16398 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16399 | builtin and then its argument prototype would still apply. */ |
16400 | char $ac_func(); | |
16401 | ||
16402 | int main() { | |
16403 | ||
247f5006 VZ |
16404 | /* The GNU C library defines this for functions which it implements |
16405 | to always fail with ENOSYS. Some functions are actually named | |
16406 | something starting with __ and the normal name is an alias. */ | |
16407 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16408 | choke me | |
16409 | #else | |
a0b9e27f | 16410 | $ac_func(); |
247f5006 | 16411 | #endif |
af15babd | 16412 | |
a0b9e27f MB |
16413 | ; return 0; } |
16414 | EOF | |
db82f09e | 16415 | if { (eval echo configure:16416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16416 | rm -rf conftest* |
16417 | eval "ac_cv_func_$ac_func=yes" | |
16418 | else | |
16419 | echo "configure: failed program was:" >&5 | |
16420 | cat conftest.$ac_ext >&5 | |
16421 | rm -rf conftest* | |
16422 | eval "ac_cv_func_$ac_func=no" | |
16423 | fi | |
16424 | rm -f conftest* | |
16425 | fi | |
52127426 | 16426 | |
a0b9e27f MB |
16427 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16428 | echo "$ac_t""yes" 1>&6 | |
16429 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16430 | cat >> confdefs.h <<EOF | |
16431 | #define $ac_tr_func 1 | |
16432 | EOF | |
16433 | ||
16434 | else | |
16435 | echo "$ac_t""no" 1>&6 | |
5c6fa7d2 | 16436 | fi |
247f5006 | 16437 | done |
8284b0c5 | 16438 | |
4f14bcd8 | 16439 | |
247f5006 | 16440 | if test "$wxUSE_UNICODE" = yes; then |
a0b9e27f | 16441 | for ac_func in fputwc wprintf vswprintf |
d74f4b5a | 16442 | do |
a0b9e27f | 16443 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
db82f09e | 16444 | echo "configure:16445: checking for $ac_func" >&5 |
a0b9e27f MB |
16445 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16446 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16447 | else | |
16448 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 16449 | #line 16450 "configure" |
d74f4b5a VZ |
16450 | #include "confdefs.h" |
16451 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 16452 | which can conflict with char $ac_func(); below. */ |
d74f4b5a VZ |
16453 | #include <assert.h> |
16454 | /* Override any gcc2 internal prototype to avoid an error. */ | |
247f5006 VZ |
16455 | #ifdef __cplusplus |
16456 | extern "C" | |
16457 | #endif | |
d74f4b5a | 16458 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
16459 | builtin and then its argument prototype would still apply. */ |
16460 | char $ac_func(); | |
16461 | ||
16462 | int main() { | |
16463 | ||
d74f4b5a VZ |
16464 | /* The GNU C library defines this for functions which it implements |
16465 | to always fail with ENOSYS. Some functions are actually named | |
16466 | something starting with __ and the normal name is an alias. */ | |
16467 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16468 | choke me | |
16469 | #else | |
a0b9e27f | 16470 | $ac_func(); |
d74f4b5a VZ |
16471 | #endif |
16472 | ||
a0b9e27f MB |
16473 | ; return 0; } |
16474 | EOF | |
db82f09e | 16475 | if { (eval echo configure:16476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16476 | rm -rf conftest* |
16477 | eval "ac_cv_func_$ac_func=yes" | |
16478 | else | |
16479 | echo "configure: failed program was:" >&5 | |
16480 | cat conftest.$ac_ext >&5 | |
16481 | rm -rf conftest* | |
16482 | eval "ac_cv_func_$ac_func=no" | |
16483 | fi | |
16484 | rm -f conftest* | |
16485 | fi | |
d74f4b5a | 16486 | |
a0b9e27f MB |
16487 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16488 | echo "$ac_t""yes" 1>&6 | |
16489 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16490 | cat >> confdefs.h <<EOF | |
16491 | #define $ac_tr_func 1 | |
16492 | EOF | |
16493 | ||
16494 | else | |
16495 | echo "$ac_t""no" 1>&6 | |
d74f4b5a VZ |
16496 | fi |
16497 | done | |
16498 | ||
79668cae | 16499 | echo $ac_n "checking for _vsnwprintf""... $ac_c" 1>&6 |
db82f09e | 16500 | echo "configure:16501: checking for _vsnwprintf" >&5 |
79668cae | 16501 | cat > conftest.$ac_ext <<EOF |
db82f09e | 16502 | #line 16503 "configure" |
79668cae MB |
16503 | #include "confdefs.h" |
16504 | #include <wchar.h> | |
16505 | int main() { | |
16506 | &_vsnwprintf; | |
16507 | ; return 0; } | |
16508 | EOF | |
db82f09e | 16509 | if { (eval echo configure:16510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
79668cae MB |
16510 | rm -rf conftest* |
16511 | echo "$ac_t""yes" 1>&6 | |
16512 | cat >> confdefs.h <<\EOF | |
16513 | #define HAVE__VSNWPRINTF 1 | |
16514 | EOF | |
16515 | ||
16516 | else | |
16517 | echo "configure: failed program was:" >&5 | |
16518 | cat conftest.$ac_ext >&5 | |
16519 | rm -rf conftest* | |
16520 | echo "$ac_t""no" 1>&6 | |
16521 | fi | |
16522 | rm -f conftest*; | |
d74f4b5a VZ |
16523 | fi |
16524 | ||
247f5006 | 16525 | ac_ext=c |
a0b9e27f | 16526 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
247f5006 | 16527 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
16528 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16529 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16530 | cross_compiling=$ac_cv_prog_cc_cross | |
247f5006 VZ |
16531 | |
16532 | ||
16533 | ||
16534 | ||
4f14bcd8 | 16535 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 16536 | |
8284b0c5 MB |
16537 | |
16538 | ||
a0b9e27f MB |
16539 | ac_ext=C |
16540 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 16541 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
16542 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16543 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16544 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 16545 | |
52127426 | 16546 | |
a0b9e27f MB |
16547 | |
16548 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
b040e242 VS |
16549 | if test "${with_libiconv_prefix+set}" = set; then |
16550 | withval="$with_libiconv_prefix" | |
a0b9e27f | 16551 | |
b040e242 VS |
16552 | for dir in `echo "$withval" | tr : ' '`; do |
16553 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
16554 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
16555 | done | |
a0b9e27f MB |
16556 | |
16557 | fi | |
b040e242 VS |
16558 | |
16559 | ||
a0b9e27f | 16560 | echo $ac_n "checking for iconv""... $ac_c" 1>&6 |
db82f09e | 16561 | echo "configure:16562: checking for iconv" >&5 |
a0b9e27f MB |
16562 | if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then |
16563 | echo $ac_n "(cached) $ac_c" 1>&6 | |
af15babd | 16564 | else |
a0b9e27f | 16565 | |
b040e242 VS |
16566 | am_cv_func_iconv="no, consider installing GNU libiconv" |
16567 | am_cv_lib_iconv=no | |
a0b9e27f | 16568 | cat > conftest.$ac_ext <<EOF |
db82f09e | 16569 | #line 16570 "configure" |
af15babd | 16570 | #include "confdefs.h" |
b040e242 | 16571 | #include <stdlib.h> |
4f14bcd8 | 16572 | #include <iconv.h> |
a0b9e27f | 16573 | int main() { |
b040e242 VS |
16574 | iconv_t cd = iconv_open("",""); |
16575 | iconv(cd,NULL,NULL,NULL,NULL); | |
16576 | iconv_close(cd); | |
a0b9e27f MB |
16577 | ; return 0; } |
16578 | EOF | |
db82f09e | 16579 | if { (eval echo configure:16580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 16580 | rm -rf conftest* |
b040e242 | 16581 | am_cv_func_iconv=yes |
af15babd | 16582 | else |
a0b9e27f MB |
16583 | echo "configure: failed program was:" >&5 |
16584 | cat conftest.$ac_ext >&5 | |
b040e242 | 16585 | fi |
a0b9e27f | 16586 | rm -f conftest* |
b040e242 VS |
16587 | if test "$am_cv_func_iconv" != yes; then |
16588 | am_save_LIBS="$LIBS" | |
16589 | LIBS="$LIBS -liconv" | |
a0b9e27f | 16590 | cat > conftest.$ac_ext <<EOF |
db82f09e | 16591 | #line 16592 "configure" |
b040e242 VS |
16592 | #include "confdefs.h" |
16593 | #include <stdlib.h> | |
16594 | #include <iconv.h> | |
a0b9e27f | 16595 | int main() { |
b040e242 VS |
16596 | iconv_t cd = iconv_open("",""); |
16597 | iconv(cd,NULL,NULL,NULL,NULL); | |
16598 | iconv_close(cd); | |
a0b9e27f MB |
16599 | ; return 0; } |
16600 | EOF | |
db82f09e | 16601 | if { (eval echo configure:16602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 16602 | rm -rf conftest* |
b040e242 VS |
16603 | am_cv_lib_iconv=yes |
16604 | am_cv_func_iconv=yes | |
16605 | else | |
a0b9e27f MB |
16606 | echo "configure: failed program was:" >&5 |
16607 | cat conftest.$ac_ext >&5 | |
af15babd | 16608 | fi |
a0b9e27f | 16609 | rm -f conftest* |
b040e242 VS |
16610 | LIBS="$am_save_LIBS" |
16611 | fi | |
a0b9e27f | 16612 | |
247f5006 | 16613 | fi |
247f5006 | 16614 | |
a0b9e27f MB |
16615 | echo "$ac_t""$am_cv_func_iconv" 1>&6 |
16616 | if test "$am_cv_func_iconv" = yes; then | |
16617 | cat >> confdefs.h <<\EOF | |
b040e242 | 16618 | #define HAVE_ICONV 1 |
a0b9e27f | 16619 | EOF |
b040e242 | 16620 | |
a0b9e27f | 16621 | echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6 |
db82f09e | 16622 | echo "configure:16623: checking if iconv needs const" >&5 |
a0b9e27f MB |
16623 | if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then |
16624 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b040e242 | 16625 | else |
a0b9e27f | 16626 | cat > conftest.$ac_ext <<EOF |
db82f09e | 16627 | #line 16628 "configure" |
b040e242 VS |
16628 | #include "confdefs.h" |
16629 | ||
16630 | #include <stdlib.h> | |
16631 | #include <iconv.h> | |
16632 | extern | |
16633 | #ifdef __cplusplus | |
16634 | "C" | |
16635 | #endif | |
16636 | #if defined(__STDC__) || defined(__cplusplus) | |
16637 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
16638 | #else | |
16639 | size_t iconv(); | |
16640 | #endif | |
a0b9e27f MB |
16641 | |
16642 | int main() { | |
af15babd | 16643 | |
a0b9e27f MB |
16644 | ; return 0; } |
16645 | EOF | |
db82f09e | 16646 | if { (eval echo configure:16647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 16647 | rm -rf conftest* |
b7043674 | 16648 | wx_cv_func_iconv_const="no" |
b040e242 | 16649 | else |
a0b9e27f MB |
16650 | echo "configure: failed program was:" >&5 |
16651 | cat conftest.$ac_ext >&5 | |
16652 | rm -rf conftest* | |
16653 | wx_cv_func_iconv_const="yes" | |
16654 | ||
5c6fa7d2 | 16655 | fi |
a0b9e27f MB |
16656 | rm -f conftest* |
16657 | ||
247f5006 | 16658 | fi |
a0b9e27f MB |
16659 | |
16660 | echo "$ac_t""$wx_cv_func_iconv_const" 1>&6 | |
b7043674 VZ |
16661 | |
16662 | iconv_const= | |
1c405bb5 | 16663 | if test "x$wx_cv_func_iconv_const" = "xyes"; then |
b7043674 VZ |
16664 | iconv_const="const" |
16665 | fi | |
16666 | ||
a0b9e27f | 16667 | cat >> confdefs.h <<EOF |
f09359cf | 16668 | #define ICONV_CONST $iconv_const |
a0b9e27f | 16669 | EOF |
b040e242 VS |
16670 | |
16671 | fi | |
16672 | LIBICONV= | |
16673 | if test "$am_cv_lib_iconv" = yes; then | |
16674 | LIBICONV="-liconv" | |
16675 | fi | |
a0b9e27f | 16676 | |
b040e242 VS |
16677 | |
16678 | LIBS="$LIBICONV $LIBS" | |
4f14bcd8 | 16679 | ac_ext=c |
a0b9e27f | 16680 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 16681 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
16682 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16683 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16684 | cross_compiling=$ac_cv_prog_cc_cross | |
7b4a847f | 16685 | |
5c6fa7d2 | 16686 | |
8284b0c5 | 16687 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
a0b9e27f | 16688 | for ac_func in sigaction |
af15babd | 16689 | do |
a0b9e27f | 16690 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
db82f09e | 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 | |
db82f09e | 16696 | #line 16697 "configure" |
af15babd VZ |
16697 | #include "confdefs.h" |
16698 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 16699 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
16700 | #include <assert.h> |
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 | ||
af15babd 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(); |
af15babd VZ |
16715 | #endif |
16716 | ||
a0b9e27f MB |
16717 | ; return 0; } |
16718 | EOF | |
db82f09e | 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 | |
7b4a847f | 16730 | |
a0b9e27f MB |
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 | |
16737 | ||
16738 | else | |
16739 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
16740 | fi |
16741 | done | |
16742 | ||
8284b0c5 | 16743 | |
4f14bcd8 | 16744 | if test "$ac_cv_func_sigaction" = "no"; then |
a0b9e27f | 16745 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 |
4f14bcd8 GD |
16746 | wxUSE_ON_FATAL_EXCEPTION=no |
16747 | fi | |
16748 | ||
16749 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
a0b9e27f MB |
16750 | |
16751 | ac_ext=C | |
16752 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 16753 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
16754 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16755 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16756 | cross_compiling=$ac_cv_prog_cxx_cross | |
7b4a847f | 16757 | |
5c6fa7d2 | 16758 | |
a0b9e27f | 16759 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 |
db82f09e | 16760 | echo "configure:16761: checking for sa_handler type" >&5 |
a0b9e27f MB |
16761 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
16762 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 16763 | else |
a0b9e27f MB |
16764 | |
16765 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 16766 | #line 16767 "configure" |
af15babd | 16767 | #include "confdefs.h" |
4f14bcd8 | 16768 | #include <signal.h> |
a0b9e27f | 16769 | int main() { |
4f14bcd8 GD |
16770 | |
16771 | extern void testSigHandler(int); | |
16772 | ||
16773 | struct sigaction sa; | |
16774 | sa.sa_handler = testSigHandler; | |
a0b9e27f MB |
16775 | |
16776 | ; return 0; } | |
16777 | EOF | |
db82f09e | 16778 | if { (eval echo configure:16779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
16779 | rm -rf conftest* |
16780 | ||
4f14bcd8 | 16781 | wx_cv_type_sa_handler=int |
a0b9e27f | 16782 | |
af15babd | 16783 | else |
a0b9e27f MB |
16784 | echo "configure: failed program was:" >&5 |
16785 | cat conftest.$ac_ext >&5 | |
16786 | rm -rf conftest* | |
16787 | ||
4f14bcd8 | 16788 | wx_cv_type_sa_handler=void |
a0b9e27f | 16789 | |
5c6fa7d2 | 16790 | fi |
a0b9e27f MB |
16791 | rm -f conftest* |
16792 | ||
247f5006 | 16793 | fi |
a0b9e27f MB |
16794 | |
16795 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
4f14bcd8 GD |
16796 | |
16797 | ac_ext=c | |
a0b9e27f | 16798 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 16799 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
16800 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16801 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16802 | cross_compiling=$ac_cv_prog_cc_cross | |
579d8138 | 16803 | |
8284b0c5 | 16804 | |
a0b9e27f | 16805 | cat >> confdefs.h <<EOF |
4f14bcd8 | 16806 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler |
a0b9e27f | 16807 | EOF |
af15babd | 16808 | |
4f14bcd8 GD |
16809 | fi |
16810 | fi | |
af15babd | 16811 | |
a1d22ad7 | 16812 | for ac_func in mkstemp mktemp |
af15babd | 16813 | do |
a0b9e27f | 16814 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
db82f09e | 16815 | echo "configure:16816: checking for $ac_func" >&5 |
a0b9e27f MB |
16816 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16817 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16818 | else | |
16819 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 16820 | #line 16821 "configure" |
af15babd VZ |
16821 | #include "confdefs.h" |
16822 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 16823 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
16824 | #include <assert.h> |
16825 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16826 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16827 | builtin and then its argument prototype would still apply. */ |
16828 | char $ac_func(); | |
16829 | ||
16830 | int main() { | |
16831 | ||
af15babd VZ |
16832 | /* The GNU C library defines this for functions which it implements |
16833 | to always fail with ENOSYS. Some functions are actually named | |
16834 | something starting with __ and the normal name is an alias. */ | |
16835 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16836 | choke me | |
16837 | #else | |
a0b9e27f | 16838 | $ac_func(); |
af15babd VZ |
16839 | #endif |
16840 | ||
a0b9e27f MB |
16841 | ; return 0; } |
16842 | EOF | |
db82f09e | 16843 | if { (eval echo configure:16844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16844 | rm -rf conftest* |
16845 | eval "ac_cv_func_$ac_func=yes" | |
16846 | else | |
16847 | echo "configure: failed program was:" >&5 | |
16848 | cat conftest.$ac_ext >&5 | |
16849 | rm -rf conftest* | |
16850 | eval "ac_cv_func_$ac_func=no" | |
16851 | fi | |
16852 | rm -f conftest* | |
16853 | fi | |
af15babd | 16854 | |
a0b9e27f MB |
16855 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16856 | echo "$ac_t""yes" 1>&6 | |
16857 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16858 | cat >> confdefs.h <<EOF | |
16859 | #define $ac_tr_func 1 | |
16860 | EOF | |
ade35f11 | 16861 | break |
a0b9e27f MB |
16862 | else |
16863 | echo "$ac_t""no" 1>&6 | |
ade35f11 VZ |
16864 | fi |
16865 | done | |
16866 | ||
8284b0c5 | 16867 | |
a0b9e27f | 16868 | echo $ac_n "checking for statfs""... $ac_c" 1>&6 |
db82f09e | 16869 | echo "configure:16870: checking for statfs" >&5 |
a0b9e27f MB |
16870 | if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then |
16871 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 16872 | else |
a0b9e27f | 16873 | cat > conftest.$ac_ext <<EOF |
db82f09e | 16874 | #line 16875 "configure" |
4f14bcd8 GD |
16875 | #include "confdefs.h" |
16876 | ||
16877 | #if defined(__BSD__) | |
16878 | #include <sys/param.h> | |
16879 | #include <sys/mount.h> | |
16880 | #else | |
16881 | #include <sys/vfs.h> | |
16882 | #endif | |
a0b9e27f MB |
16883 | |
16884 | int main() { | |
4f14bcd8 GD |
16885 | |
16886 | long l; | |
16887 | struct statfs fs; | |
16888 | statfs("/", &fs); | |
16889 | l = fs.f_bsize; | |
16890 | l += fs.f_blocks; | |
16891 | l += fs.f_bavail; | |
a0b9e27f MB |
16892 | |
16893 | ; return 0; } | |
16894 | EOF | |
db82f09e | 16895 | if { (eval echo configure:16896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
16896 | rm -rf conftest* |
16897 | ||
4f14bcd8 | 16898 | wx_cv_func_statfs=yes |
a0b9e27f | 16899 | |
4f14bcd8 | 16900 | else |
a0b9e27f MB |
16901 | echo "configure: failed program was:" >&5 |
16902 | cat conftest.$ac_ext >&5 | |
16903 | rm -rf conftest* | |
16904 | ||
4f14bcd8 | 16905 | wx_cv_func_statfs=no |
a0b9e27f MB |
16906 | |
16907 | ||
5c6fa7d2 | 16908 | fi |
a0b9e27f | 16909 | rm -f conftest* |
8284b0c5 | 16910 | |
247f5006 | 16911 | fi |
a0b9e27f MB |
16912 | |
16913 | echo "$ac_t""$wx_cv_func_statfs" 1>&6 | |
4f14bcd8 GD |
16914 | |
16915 | if test "$wx_cv_func_statfs" = "yes"; then | |
a0b9e27f | 16916 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 16917 | #define HAVE_STATFS 1 |
a0b9e27f | 16918 | EOF |
4f14bcd8 GD |
16919 | |
16920 | else | |
a0b9e27f | 16921 | echo $ac_n "checking for statvfs""... $ac_c" 1>&6 |
db82f09e | 16922 | echo "configure:16923: checking for statvfs" >&5 |
a0b9e27f MB |
16923 | if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then |
16924 | echo $ac_n "(cached) $ac_c" 1>&6 | |
af15babd | 16925 | else |
a0b9e27f | 16926 | cat > conftest.$ac_ext <<EOF |
db82f09e | 16927 | #line 16928 "configure" |
af15babd | 16928 | #include "confdefs.h" |
af15babd | 16929 | |
4f14bcd8 | 16930 | #include <sys/statvfs.h> |
a0b9e27f MB |
16931 | |
16932 | int main() { | |
af15babd | 16933 | |
4f14bcd8 GD |
16934 | long l; |
16935 | struct statvfs fs; | |
16936 | statvfs("/", &fs); | |
16937 | l = fs.f_bsize; | |
16938 | l += fs.f_blocks; | |
16939 | l += fs.f_bavail; | |
a0b9e27f MB |
16940 | |
16941 | ; return 0; } | |
16942 | EOF | |
db82f09e | 16943 | if { (eval echo configure:16944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
16944 | rm -rf conftest* |
16945 | ||
4f14bcd8 | 16946 | wx_cv_func_statvfs=yes |
a0b9e27f | 16947 | |
af15babd | 16948 | else |
a0b9e27f MB |
16949 | echo "configure: failed program was:" >&5 |
16950 | cat conftest.$ac_ext >&5 | |
16951 | rm -rf conftest* | |
16952 | ||
4f14bcd8 | 16953 | wx_cv_func_statvfs=no |
a0b9e27f MB |
16954 | |
16955 | ||
5c6fa7d2 | 16956 | fi |
a0b9e27f MB |
16957 | rm -f conftest* |
16958 | ||
247f5006 | 16959 | fi |
a0b9e27f MB |
16960 | |
16961 | echo "$ac_t""$wx_cv_func_statvfs" 1>&6 | |
af15babd | 16962 | |
4f14bcd8 | 16963 | if test "$wx_cv_func_statvfs" = "yes"; then |
a0b9e27f | 16964 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 16965 | #define HAVE_STATVFS 1 |
a0b9e27f | 16966 | EOF |
af15babd | 16967 | |
4f14bcd8 | 16968 | else |
a0b9e27f | 16969 | echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2 |
4f14bcd8 GD |
16970 | fi |
16971 | fi | |
af15babd | 16972 | |
4f14bcd8 | 16973 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
a0b9e27f | 16974 | for ac_func in fcntl flock |
af15babd | 16975 | do |
a0b9e27f | 16976 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
db82f09e | 16977 | echo "configure:16978: checking for $ac_func" >&5 |
a0b9e27f MB |
16978 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16979 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16980 | else | |
16981 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 16982 | #line 16983 "configure" |
af15babd VZ |
16983 | #include "confdefs.h" |
16984 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 16985 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
16986 | #include <assert.h> |
16987 | /* Override any gcc2 internal prototype to avoid an error. */ | |
af15babd | 16988 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
16989 | builtin and then its argument prototype would still apply. */ |
16990 | char $ac_func(); | |
16991 | ||
16992 | int main() { | |
16993 | ||
af15babd VZ |
16994 | /* The GNU C library defines this for functions which it implements |
16995 | to always fail with ENOSYS. Some functions are actually named | |
16996 | something starting with __ and the normal name is an alias. */ | |
16997 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16998 | choke me | |
16999 | #else | |
a0b9e27f | 17000 | $ac_func(); |
af15babd VZ |
17001 | #endif |
17002 | ||
a0b9e27f MB |
17003 | ; return 0; } |
17004 | EOF | |
db82f09e | 17005 | if { (eval echo configure:17006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17006 | rm -rf conftest* |
17007 | eval "ac_cv_func_$ac_func=yes" | |
17008 | else | |
17009 | echo "configure: failed program was:" >&5 | |
17010 | cat conftest.$ac_ext >&5 | |
17011 | rm -rf conftest* | |
17012 | eval "ac_cv_func_$ac_func=no" | |
17013 | fi | |
17014 | rm -f conftest* | |
17015 | fi | |
17016 | ||
17017 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17018 | echo "$ac_t""yes" 1>&6 | |
17019 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17020 | cat >> confdefs.h <<EOF | |
17021 | #define $ac_tr_func 1 | |
17022 | EOF | |
4f14bcd8 | 17023 | break |
a0b9e27f MB |
17024 | else |
17025 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
17026 | fi |
17027 | done | |
17028 | ||
8284b0c5 | 17029 | |
4f14bcd8 | 17030 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
a0b9e27f | 17031 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 |
4f14bcd8 GD |
17032 | wxUSE_SNGLINST_CHECKER=no |
17033 | fi | |
17034 | fi | |
af15babd | 17035 | |
4f14bcd8 | 17036 | for ac_func in timegm |
af15babd | 17037 | do |
a0b9e27f | 17038 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
db82f09e | 17039 | echo "configure:17040: checking for $ac_func" >&5 |
a0b9e27f MB |
17040 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17041 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17042 | else | |
17043 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 17044 | #line 17045 "configure" |
af15babd VZ |
17045 | #include "confdefs.h" |
17046 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17047 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17048 | #include <assert.h> |
17049 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17050 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17051 | builtin and then its argument prototype would still apply. */ |
17052 | char $ac_func(); | |
17053 | ||
17054 | int main() { | |
17055 | ||
af15babd VZ |
17056 | /* The GNU C library defines this for functions which it implements |
17057 | to always fail with ENOSYS. Some functions are actually named | |
17058 | something starting with __ and the normal name is an alias. */ | |
247f5006 VZ |
17059 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
17060 | choke me | |
17061 | #else | |
a0b9e27f | 17062 | $ac_func(); |
247f5006 VZ |
17063 | #endif |
17064 | ||
a0b9e27f MB |
17065 | ; return 0; } |
17066 | EOF | |
db82f09e | 17067 | if { (eval echo configure:17068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17068 | rm -rf conftest* |
17069 | eval "ac_cv_func_$ac_func=yes" | |
17070 | else | |
17071 | echo "configure: failed program was:" >&5 | |
17072 | cat conftest.$ac_ext >&5 | |
17073 | rm -rf conftest* | |
17074 | eval "ac_cv_func_$ac_func=no" | |
17075 | fi | |
17076 | rm -f conftest* | |
17077 | fi | |
703e0a69 | 17078 | |
a0b9e27f MB |
17079 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17080 | echo "$ac_t""yes" 1>&6 | |
17081 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17082 | cat >> confdefs.h <<EOF | |
17083 | #define $ac_tr_func 1 | |
17084 | EOF | |
17085 | ||
17086 | else | |
17087 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
17088 | fi |
17089 | done | |
17090 | ||
8284b0c5 | 17091 | |
4f14bcd8 | 17092 | for ac_func in putenv setenv |
10f2d63a | 17093 | do |
a0b9e27f | 17094 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
db82f09e | 17095 | echo "configure:17096: checking for $ac_func" >&5 |
a0b9e27f MB |
17096 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17097 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17098 | else | |
17099 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 17100 | #line 17101 "configure" |
af15babd VZ |
17101 | #include "confdefs.h" |
17102 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17103 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17104 | #include <assert.h> |
17105 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17106 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17107 | builtin and then its argument prototype would still apply. */ |
17108 | char $ac_func(); | |
17109 | ||
17110 | int main() { | |
17111 | ||
af15babd VZ |
17112 | /* The GNU C library defines this for functions which it implements |
17113 | to always fail with ENOSYS. Some functions are actually named | |
17114 | something starting with __ and the normal name is an alias. */ | |
17115 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17116 | choke me | |
17117 | #else | |
a0b9e27f | 17118 | $ac_func(); |
af15babd VZ |
17119 | #endif |
17120 | ||
a0b9e27f MB |
17121 | ; return 0; } |
17122 | EOF | |
db82f09e | 17123 | if { (eval echo configure:17124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17124 | rm -rf conftest* |
17125 | eval "ac_cv_func_$ac_func=yes" | |
17126 | else | |
17127 | echo "configure: failed program was:" >&5 | |
17128 | cat conftest.$ac_ext >&5 | |
17129 | rm -rf conftest* | |
17130 | eval "ac_cv_func_$ac_func=no" | |
17131 | fi | |
17132 | rm -f conftest* | |
17133 | fi | |
17134 | ||
17135 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17136 | echo "$ac_t""yes" 1>&6 | |
17137 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17138 | cat >> confdefs.h <<EOF | |
17139 | #define $ac_tr_func 1 | |
17140 | EOF | |
4f14bcd8 | 17141 | break |
a0b9e27f MB |
17142 | else |
17143 | echo "$ac_t""no" 1>&6 | |
af15babd | 17144 | fi |
af15babd VZ |
17145 | done |
17146 | ||
8284b0c5 | 17147 | |
4f14bcd8 GD |
17148 | HAVE_SOME_SLEEP_FUNC=0 |
17149 | if test "$USE_BEOS" = 1; then | |
a0b9e27f | 17150 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 17151 | #define HAVE_SLEEP 1 |
a0b9e27f | 17152 | EOF |
af15babd | 17153 | |
4f14bcd8 | 17154 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
17155 | fi |
17156 | ||
4f14bcd8 | 17157 | if test "$USE_DARWIN" = 1; then |
a0b9e27f | 17158 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 17159 | #define HAVE_USLEEP 1 |
a0b9e27f | 17160 | EOF |
10f2d63a | 17161 | |
4f14bcd8 | 17162 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
17163 | fi |
17164 | ||
4f14bcd8 GD |
17165 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
17166 | POSIX4_LINK= | |
a0b9e27f | 17167 | for ac_func in nanosleep |
4f14bcd8 | 17168 | do |
a0b9e27f | 17169 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
db82f09e | 17170 | echo "configure:17171: checking for $ac_func" >&5 |
a0b9e27f MB |
17171 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17172 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17173 | else | |
17174 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 17175 | #line 17176 "configure" |
10f2d63a | 17176 | #include "confdefs.h" |
4f14bcd8 | 17177 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 17178 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 17179 | #include <assert.h> |
10f2d63a VZ |
17180 | /* Override any gcc2 internal prototype to avoid an error. */ |
17181 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17182 | builtin and then its argument prototype would still apply. */ |
17183 | char $ac_func(); | |
17184 | ||
17185 | int main() { | |
17186 | ||
4f14bcd8 GD |
17187 | /* The GNU C library defines this for functions which it implements |
17188 | to always fail with ENOSYS. Some functions are actually named | |
17189 | something starting with __ and the normal name is an alias. */ | |
17190 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17191 | choke me | |
17192 | #else | |
a0b9e27f | 17193 | $ac_func(); |
4f14bcd8 GD |
17194 | #endif |
17195 | ||
a0b9e27f MB |
17196 | ; return 0; } |
17197 | EOF | |
db82f09e | 17198 | if { (eval echo configure:17199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17199 | rm -rf conftest* |
17200 | eval "ac_cv_func_$ac_func=yes" | |
17201 | else | |
17202 | echo "configure: failed program was:" >&5 | |
17203 | cat conftest.$ac_ext >&5 | |
17204 | rm -rf conftest* | |
17205 | eval "ac_cv_func_$ac_func=no" | |
17206 | fi | |
17207 | rm -f conftest* | |
17208 | fi | |
17209 | ||
17210 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17211 | echo "$ac_t""yes" 1>&6 | |
17212 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17213 | cat >> confdefs.h <<EOF | |
17214 | #define $ac_tr_func 1 | |
17215 | EOF | |
17216 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17217 | #define HAVE_NANOSLEEP 1 |
a0b9e27f | 17218 | EOF |
4f14bcd8 | 17219 | |
10f2d63a | 17220 | else |
a0b9e27f MB |
17221 | echo "$ac_t""no" 1>&6 |
17222 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
db82f09e | 17223 | echo "configure:17224: checking for nanosleep in -lposix4" >&5 |
a0b9e27f MB |
17224 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
17225 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17226 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17227 | else |
a0b9e27f | 17228 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17229 | LIBS="-lposix4 $LIBS" |
a0b9e27f | 17230 | cat > conftest.$ac_ext <<EOF |
db82f09e | 17231 | #line 17232 "configure" |
10f2d63a VZ |
17232 | #include "confdefs.h" |
17233 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17234 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17235 | builtin and then its argument prototype would still apply. */ |
17236 | char nanosleep(); | |
17237 | ||
17238 | int main() { | |
17239 | nanosleep() | |
17240 | ; return 0; } | |
17241 | EOF | |
db82f09e | 17242 | if { (eval echo configure:17243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17243 | rm -rf conftest* |
17244 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17245 | else | |
17246 | echo "configure: failed program was:" >&5 | |
17247 | cat conftest.$ac_ext >&5 | |
17248 | rm -rf conftest* | |
17249 | eval "ac_cv_lib_$ac_lib_var=no" | |
17250 | fi | |
17251 | rm -f conftest* | |
17252 | LIBS="$ac_save_LIBS" | |
17253 | ||
17254 | fi | |
17255 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17256 | echo "$ac_t""yes" 1>&6 | |
17257 | ||
17258 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17259 | #define HAVE_NANOSLEEP 1 |
a0b9e27f | 17260 | EOF |
4f14bcd8 | 17261 | |
3d63bc3a | 17262 | POSIX4_LINK=" -lposix4" |
a0b9e27f | 17263 | |
10f2d63a | 17264 | else |
a0b9e27f | 17265 | echo "$ac_t""no" 1>&6 |
10f2d63a | 17266 | |
a0b9e27f | 17267 | for ac_func in usleep |
4f14bcd8 | 17268 | do |
a0b9e27f | 17269 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
db82f09e | 17270 | echo "configure:17271: checking for $ac_func" >&5 |
a0b9e27f MB |
17271 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17272 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17273 | else | |
17274 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 17275 | #line 17276 "configure" |
10f2d63a | 17276 | #include "confdefs.h" |
4f14bcd8 | 17277 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 17278 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
17279 | #include <assert.h> |
17280 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17281 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17282 | builtin and then its argument prototype would still apply. */ |
17283 | char $ac_func(); | |
17284 | ||
17285 | int main() { | |
17286 | ||
4f14bcd8 GD |
17287 | /* The GNU C library defines this for functions which it implements |
17288 | to always fail with ENOSYS. Some functions are actually named | |
17289 | something starting with __ and the normal name is an alias. */ | |
17290 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17291 | choke me | |
17292 | #else | |
a0b9e27f | 17293 | $ac_func(); |
4f14bcd8 GD |
17294 | #endif |
17295 | ||
a0b9e27f MB |
17296 | ; return 0; } |
17297 | EOF | |
db82f09e | 17298 | if { (eval echo configure:17299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17299 | rm -rf conftest* |
17300 | eval "ac_cv_func_$ac_func=yes" | |
17301 | else | |
17302 | echo "configure: failed program was:" >&5 | |
17303 | cat conftest.$ac_ext >&5 | |
17304 | rm -rf conftest* | |
17305 | eval "ac_cv_func_$ac_func=no" | |
17306 | fi | |
17307 | rm -f conftest* | |
17308 | fi | |
17309 | ||
17310 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17311 | echo "$ac_t""yes" 1>&6 | |
17312 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17313 | cat >> confdefs.h <<EOF | |
17314 | #define $ac_tr_func 1 | |
17315 | EOF | |
17316 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17317 | #define HAVE_USLEEP 1 |
a0b9e27f | 17318 | EOF |
4f14bcd8 | 17319 | |
698dcdb6 | 17320 | else |
a0b9e27f MB |
17321 | echo "$ac_t""no" 1>&6 |
17322 | echo "configure: warning: wxSleep() function will not work" 1>&2 | |
17323 | ||
10f2d63a | 17324 | fi |
4f14bcd8 | 17325 | done |
10f2d63a | 17326 | |
a0b9e27f MB |
17327 | |
17328 | ||
6232543b | 17329 | fi |
10f2d63a | 17330 | |
a0b9e27f MB |
17331 | |
17332 | ||
1e487827 | 17333 | fi |
4f14bcd8 | 17334 | done |
703e0a69 | 17335 | |
10f2d63a VZ |
17336 | fi |
17337 | ||
4f14bcd8 | 17338 | for ac_func in uname gethostname |
70846f0a | 17339 | do |
a0b9e27f | 17340 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
db82f09e | 17341 | echo "configure:17342: checking for $ac_func" >&5 |
a0b9e27f MB |
17342 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17343 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17344 | else | |
17345 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 17346 | #line 17347 "configure" |
70846f0a VZ |
17347 | #include "confdefs.h" |
17348 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17349 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
17350 | #include <assert.h> |
17351 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17352 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17353 | builtin and then its argument prototype would still apply. */ |
17354 | char $ac_func(); | |
17355 | ||
17356 | int main() { | |
17357 | ||
70846f0a VZ |
17358 | /* The GNU C library defines this for functions which it implements |
17359 | to always fail with ENOSYS. Some functions are actually named | |
17360 | something starting with __ and the normal name is an alias. */ | |
17361 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17362 | choke me | |
17363 | #else | |
a0b9e27f | 17364 | $ac_func(); |
70846f0a VZ |
17365 | #endif |
17366 | ||
a0b9e27f MB |
17367 | ; return 0; } |
17368 | EOF | |
db82f09e | 17369 | if { (eval echo configure:17370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17370 | rm -rf conftest* |
17371 | eval "ac_cv_func_$ac_func=yes" | |
17372 | else | |
17373 | echo "configure: failed program was:" >&5 | |
17374 | cat conftest.$ac_ext >&5 | |
17375 | rm -rf conftest* | |
17376 | eval "ac_cv_func_$ac_func=no" | |
17377 | fi | |
17378 | rm -f conftest* | |
17379 | fi | |
17380 | ||
17381 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17382 | echo "$ac_t""yes" 1>&6 | |
17383 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17384 | cat >> confdefs.h <<EOF | |
17385 | #define $ac_tr_func 1 | |
17386 | EOF | |
4f14bcd8 | 17387 | break |
a0b9e27f MB |
17388 | else |
17389 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
17390 | fi |
17391 | done | |
17392 | ||
8284b0c5 MB |
17393 | |
17394 | ||
a0b9e27f MB |
17395 | ac_ext=C |
17396 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 17397 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
17398 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17399 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17400 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 17401 | |
4f14bcd8 GD |
17402 | |
17403 | for ac_func in strtok_r | |
10f2d63a | 17404 | do |
a0b9e27f | 17405 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
db82f09e | 17406 | echo "configure:17407: checking for $ac_func" >&5 |
a0b9e27f MB |
17407 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17408 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17409 | else | |
17410 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 17411 | #line 17412 "configure" |
10f2d63a | 17412 | #include "confdefs.h" |
4f14bcd8 | 17413 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 17414 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
17415 | #include <assert.h> |
17416 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17417 | #ifdef __cplusplus | |
17418 | extern "C" | |
17419 | #endif | |
17420 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17421 | builtin and then its argument prototype would still apply. */ |
17422 | char $ac_func(); | |
17423 | ||
17424 | int main() { | |
17425 | ||
4f14bcd8 GD |
17426 | /* The GNU C library defines this for functions which it implements |
17427 | to always fail with ENOSYS. Some functions are actually named | |
17428 | something starting with __ and the normal name is an alias. */ | |
17429 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17430 | choke me | |
17431 | #else | |
a0b9e27f | 17432 | $ac_func(); |
4f14bcd8 GD |
17433 | #endif |
17434 | ||
a0b9e27f MB |
17435 | ; return 0; } |
17436 | EOF | |
db82f09e | 17437 | if { (eval echo configure:17438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17438 | rm -rf conftest* |
17439 | eval "ac_cv_func_$ac_func=yes" | |
17440 | else | |
17441 | echo "configure: failed program was:" >&5 | |
17442 | cat conftest.$ac_ext >&5 | |
17443 | rm -rf conftest* | |
17444 | eval "ac_cv_func_$ac_func=no" | |
17445 | fi | |
17446 | rm -f conftest* | |
17447 | fi | |
4f14bcd8 | 17448 | |
a0b9e27f MB |
17449 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17450 | echo "$ac_t""yes" 1>&6 | |
17451 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17452 | cat >> confdefs.h <<EOF | |
17453 | #define $ac_tr_func 1 | |
17454 | EOF | |
17455 | ||
17456 | else | |
17457 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17458 | fi |
17459 | done | |
17460 | ||
8284b0c5 | 17461 | |
4f14bcd8 | 17462 | ac_ext=c |
a0b9e27f | 17463 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 17464 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
17465 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17466 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17467 | cross_compiling=$ac_cv_prog_cc_cross | |
7b4a847f | 17468 | |
5c6fa7d2 | 17469 | |
8284b0c5 | 17470 | INET_LINK= |
4f14bcd8 GD |
17471 | for ac_func in inet_addr |
17472 | do | |
a0b9e27f | 17473 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
db82f09e | 17474 | echo "configure:17475: checking for $ac_func" >&5 |
a0b9e27f MB |
17475 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17476 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17477 | else | |
17478 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 17479 | #line 17480 "configure" |
10f2d63a | 17480 | #include "confdefs.h" |
4f14bcd8 | 17481 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 17482 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 17483 | #include <assert.h> |
10f2d63a VZ |
17484 | /* Override any gcc2 internal prototype to avoid an error. */ |
17485 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17486 | builtin and then its argument prototype would still apply. */ |
17487 | char $ac_func(); | |
17488 | ||
17489 | int main() { | |
17490 | ||
4f14bcd8 GD |
17491 | /* The GNU C library defines this for functions which it implements |
17492 | to always fail with ENOSYS. Some functions are actually named | |
17493 | something starting with __ and the normal name is an alias. */ | |
17494 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17495 | choke me | |
17496 | #else | |
a0b9e27f | 17497 | $ac_func(); |
4f14bcd8 GD |
17498 | #endif |
17499 | ||
a0b9e27f MB |
17500 | ; return 0; } |
17501 | EOF | |
db82f09e | 17502 | if { (eval echo configure:17503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17503 | rm -rf conftest* |
17504 | eval "ac_cv_func_$ac_func=yes" | |
17505 | else | |
17506 | echo "configure: failed program was:" >&5 | |
17507 | cat conftest.$ac_ext >&5 | |
17508 | rm -rf conftest* | |
17509 | eval "ac_cv_func_$ac_func=no" | |
17510 | fi | |
17511 | rm -f conftest* | |
17512 | fi | |
17513 | ||
17514 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17515 | echo "$ac_t""yes" 1>&6 | |
17516 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17517 | cat >> confdefs.h <<EOF | |
17518 | #define $ac_tr_func 1 | |
17519 | EOF | |
17520 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17521 | #define HAVE_INET_ADDR 1 |
a0b9e27f | 17522 | EOF |
10f2d63a VZ |
17523 | |
17524 | else | |
a0b9e27f MB |
17525 | echo "$ac_t""no" 1>&6 |
17526 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 | |
db82f09e | 17527 | echo "configure:17528: checking for inet_addr in -lnsl" >&5 |
a0b9e27f MB |
17528 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
17529 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17530 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17531 | else |
a0b9e27f | 17532 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17533 | LIBS="-lnsl $LIBS" |
a0b9e27f | 17534 | cat > conftest.$ac_ext <<EOF |
db82f09e | 17535 | #line 17536 "configure" |
10f2d63a VZ |
17536 | #include "confdefs.h" |
17537 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17538 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17539 | builtin and then its argument prototype would still apply. */ |
17540 | char inet_addr(); | |
17541 | ||
17542 | int main() { | |
17543 | inet_addr() | |
17544 | ; return 0; } | |
17545 | EOF | |
db82f09e | 17546 | if { (eval echo configure:17547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17547 | rm -rf conftest* |
17548 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17549 | else | |
17550 | echo "configure: failed program was:" >&5 | |
17551 | cat conftest.$ac_ext >&5 | |
17552 | rm -rf conftest* | |
17553 | eval "ac_cv_lib_$ac_lib_var=no" | |
17554 | fi | |
17555 | rm -f conftest* | |
17556 | LIBS="$ac_save_LIBS" | |
17557 | ||
17558 | fi | |
17559 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17560 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 17561 | INET_LINK="nsl" |
10f2d63a | 17562 | else |
a0b9e27f MB |
17563 | echo "$ac_t""no" 1>&6 |
17564 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 | |
db82f09e | 17565 | echo "configure:17566: checking for inet_addr in -lresolv" >&5 |
a0b9e27f MB |
17566 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
17567 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17568 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17569 | else |
a0b9e27f | 17570 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17571 | LIBS="-lresolv $LIBS" |
a0b9e27f | 17572 | cat > conftest.$ac_ext <<EOF |
db82f09e | 17573 | #line 17574 "configure" |
7b4a847f | 17574 | #include "confdefs.h" |
5c6fa7d2 | 17575 | /* Override any gcc2 internal prototype to avoid an error. */ |
5c6fa7d2 | 17576 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
17577 | builtin and then its argument prototype would still apply. */ |
17578 | char inet_addr(); | |
17579 | ||
17580 | int main() { | |
17581 | inet_addr() | |
17582 | ; return 0; } | |
17583 | EOF | |
db82f09e | 17584 | if { (eval echo configure:17585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17585 | rm -rf conftest* |
17586 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17587 | else | |
17588 | echo "configure: failed program was:" >&5 | |
17589 | cat conftest.$ac_ext >&5 | |
17590 | rm -rf conftest* | |
17591 | eval "ac_cv_lib_$ac_lib_var=no" | |
17592 | fi | |
17593 | rm -f conftest* | |
17594 | LIBS="$ac_save_LIBS" | |
17595 | ||
17596 | fi | |
17597 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17598 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 17599 | INET_LINK="resolv" |
698dcdb6 | 17600 | else |
a0b9e27f MB |
17601 | echo "$ac_t""no" 1>&6 |
17602 | echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6 | |
db82f09e | 17603 | echo "configure:17604: checking for inet_addr in -lsocket" >&5 |
a0b9e27f MB |
17604 | ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'` |
17605 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17606 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3c011993 | 17607 | else |
a0b9e27f | 17608 | ac_save_LIBS="$LIBS" |
3c011993 | 17609 | LIBS="-lsocket $LIBS" |
a0b9e27f | 17610 | cat > conftest.$ac_ext <<EOF |
db82f09e | 17611 | #line 17612 "configure" |
3c011993 VZ |
17612 | #include "confdefs.h" |
17613 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17614 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17615 | builtin and then its argument prototype would still apply. */ |
17616 | char inet_addr(); | |
4f14bcd8 | 17617 | |
a0b9e27f MB |
17618 | int main() { |
17619 | inet_addr() | |
17620 | ; return 0; } | |
17621 | EOF | |
db82f09e | 17622 | if { (eval echo configure:17623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17623 | rm -rf conftest* |
17624 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17625 | else | |
17626 | echo "configure: failed program was:" >&5 | |
17627 | cat conftest.$ac_ext >&5 | |
17628 | rm -rf conftest* | |
17629 | eval "ac_cv_lib_$ac_lib_var=no" | |
8284b0c5 | 17630 | fi |
a0b9e27f MB |
17631 | rm -f conftest* |
17632 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 17633 | |
7b4a847f | 17634 | fi |
a0b9e27f MB |
17635 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
17636 | echo "$ac_t""yes" 1>&6 | |
17637 | INET_LINK="socket" | |
17638 | ||
17639 | else | |
17640 | echo "$ac_t""no" 1>&6 | |
17641 | fi | |
579d8138 | 17642 | |
a0b9e27f | 17643 | |
5c6fa7d2 | 17644 | fi |
52127426 | 17645 | |
a0b9e27f MB |
17646 | |
17647 | fi | |
247f5006 | 17648 | |
a0b9e27f | 17649 | |
8284b0c5 | 17650 | |
698dcdb6 | 17651 | fi |
4f14bcd8 GD |
17652 | done |
17653 | ||
8284b0c5 | 17654 | |
4f14bcd8 GD |
17655 | for ac_func in inet_aton |
17656 | do | |
a0b9e27f | 17657 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
db82f09e | 17658 | echo "configure:17659: checking for $ac_func" >&5 |
a0b9e27f MB |
17659 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17660 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17661 | else | |
17662 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 17663 | #line 17664 "configure" |
f6bcfd97 | 17664 | #include "confdefs.h" |
4f14bcd8 | 17665 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 17666 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 17667 | #include <assert.h> |
f6bcfd97 BP |
17668 | /* Override any gcc2 internal prototype to avoid an error. */ |
17669 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17670 | builtin and then its argument prototype would still apply. */ |
17671 | char $ac_func(); | |
17672 | ||
17673 | int main() { | |
17674 | ||
4f14bcd8 GD |
17675 | /* The GNU C library defines this for functions which it implements |
17676 | to always fail with ENOSYS. Some functions are actually named | |
17677 | something starting with __ and the normal name is an alias. */ | |
17678 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17679 | choke me | |
17680 | #else | |
a0b9e27f | 17681 | $ac_func(); |
4f14bcd8 GD |
17682 | #endif |
17683 | ||
a0b9e27f MB |
17684 | ; return 0; } |
17685 | EOF | |
db82f09e | 17686 | if { (eval echo configure:17687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17687 | rm -rf conftest* |
17688 | eval "ac_cv_func_$ac_func=yes" | |
17689 | else | |
17690 | echo "configure: failed program was:" >&5 | |
17691 | cat conftest.$ac_ext >&5 | |
17692 | rm -rf conftest* | |
17693 | eval "ac_cv_func_$ac_func=no" | |
17694 | fi | |
17695 | rm -f conftest* | |
17696 | fi | |
17697 | ||
17698 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17699 | echo "$ac_t""yes" 1>&6 | |
17700 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17701 | cat >> confdefs.h <<EOF | |
17702 | #define $ac_tr_func 1 | |
17703 | EOF | |
17704 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17705 | #define HAVE_INET_ATON 1 |
a0b9e27f | 17706 | EOF |
4f14bcd8 | 17707 | |
10f2d63a | 17708 | else |
a0b9e27f MB |
17709 | echo "$ac_t""no" 1>&6 |
17710 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 | |
db82f09e | 17711 | echo "configure:17712: checking for inet_aton in -l$INET_LINK" >&5 |
a0b9e27f MB |
17712 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
17713 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17714 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 17715 | else |
a0b9e27f | 17716 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17717 | LIBS="-l$INET_LINK $LIBS" |
a0b9e27f | 17718 | cat > conftest.$ac_ext <<EOF |
db82f09e | 17719 | #line 17720 "configure" |
10f2d63a | 17720 | #include "confdefs.h" |
6232543b | 17721 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 17722 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
17723 | builtin and then its argument prototype would still apply. */ |
17724 | char inet_aton(); | |
17725 | ||
17726 | int main() { | |
17727 | inet_aton() | |
17728 | ; return 0; } | |
17729 | EOF | |
db82f09e | 17730 | if { (eval echo configure:17731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17731 | rm -rf conftest* |
17732 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17733 | else | |
17734 | echo "configure: failed program was:" >&5 | |
17735 | cat conftest.$ac_ext >&5 | |
17736 | rm -rf conftest* | |
17737 | eval "ac_cv_lib_$ac_lib_var=no" | |
17738 | fi | |
17739 | rm -f conftest* | |
17740 | LIBS="$ac_save_LIBS" | |
4f14bcd8 | 17741 | |
10f2d63a | 17742 | fi |
a0b9e27f MB |
17743 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
17744 | echo "$ac_t""yes" 1>&6 | |
17745 | cat >> confdefs.h <<\EOF | |
17746 | #define HAVE_INET_ATON 1 | |
17747 | EOF | |
10f2d63a | 17748 | |
a0b9e27f MB |
17749 | else |
17750 | echo "$ac_t""no" 1>&6 | |
17751 | fi | |
247f5006 | 17752 | |
a0b9e27f | 17753 | |
10f2d63a | 17754 | fi |
4f14bcd8 | 17755 | done |
10f2d63a | 17756 | |
8284b0c5 | 17757 | |
4f14bcd8 | 17758 | if test "x$INET_LINK" != "x"; then |
a0b9e27f | 17759 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 17760 | #define HAVE_INET_ADDR 1 |
a0b9e27f | 17761 | EOF |
4f14bcd8 | 17762 | |
3d63bc3a | 17763 | INET_LINK=" -l$INET_LINK" |
6232543b | 17764 | fi |
10f2d63a | 17765 | |
1e487827 | 17766 | fi |
703e0a69 | 17767 | |
8284b0c5 | 17768 | |
a0b9e27f | 17769 | cat > confcache <<\EOF |
4f14bcd8 GD |
17770 | # This file is a shell script that caches the results of configure |
17771 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
17772 | # scripts and configure runs. It is not useful on other systems. |
17773 | # If it contains results you don't want to keep, you may remove or edit it. | |
4f14bcd8 | 17774 | # |
a0b9e27f MB |
17775 | # By default, configure uses ./config.cache as the cache file, |
17776 | # creating it if it does not exist already. You can give configure | |
17777 | # the --cache-file=FILE option to use a different cache file; that is | |
17778 | # what configure does when it calls configure scripts in | |
17779 | # subdirectories, so they share the cache. | |
17780 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
17781 | # config.status only pays attention to the cache file if you give it the | |
17782 | # --recheck option to rerun configure. | |
4f14bcd8 | 17783 | # |
a0b9e27f | 17784 | EOF |
4f14bcd8 GD |
17785 | # The following way of writing the cache mishandles newlines in values, |
17786 | # but we know of no workaround that is simple, portable, and efficient. | |
17787 | # So, don't put newlines in cache variables' values. | |
17788 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
17789 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
17790 | (set) 2>&1 | |
17791 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
17792 | *ac_space=\ *) | |
17793 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
17794 | # turns \\\\ into \\, and sed turns \\ into \). | |
17795 | sed -n \ | |
17796 | -e "s/'/'\\\\''/g" \ | |
17797 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
17798 | ;; | |
17799 | *) | |
17800 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
17801 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
17802 | ;; | |
17803 | esac >> confcache | |
17804 | if cmp -s $cache_file confcache; then | |
17805 | : | |
17806 | else | |
4f14bcd8 | 17807 | if test -w $cache_file; then |
a0b9e27f MB |
17808 | echo "updating cache $cache_file" |
17809 | cat confcache > $cache_file | |
f6bcfd97 | 17810 | else |
4f14bcd8 | 17811 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 17812 | fi |
4f14bcd8 GD |
17813 | fi |
17814 | rm -f confcache | |
f6bcfd97 | 17815 | |
8284b0c5 | 17816 | |
a0b9e27f | 17817 | |
009fead0 | 17818 | CPP_MT_FLAG= |
4f14bcd8 GD |
17819 | if test "$TOOLKIT" != "MSW"; then |
17820 | ||
a0b9e27f | 17821 | |
7274f1c7 | 17822 | THREADS_LINK= |
009fead0 | 17823 | THREADS_CFLAGS= |
7274f1c7 RL |
17824 | |
17825 | if test "$wxUSE_THREADS" = "yes" ; then | |
17826 | if test "$wxUSE_WINE" = 1 ; then | |
a0b9e27f | 17827 | echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2 |
7274f1c7 RL |
17828 | wxUSE_THREADS="no" |
17829 | elif test "$USE_BEOS" = 1; then | |
a0b9e27f | 17830 | echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2 |
7274f1c7 RL |
17831 | wxUSE_THREADS="no" |
17832 | fi | |
4f14bcd8 | 17833 | fi |
4f14bcd8 | 17834 | |
7274f1c7 | 17835 | if test "$wxUSE_THREADS" = "yes" ; then |
a0b9e27f MB |
17836 | |
17837 | ||
009fead0 VZ |
17838 | THREAD_OPTS="-pthread" |
17839 | case "${host}" in | |
17840 | *-*-solaris2* | *-*-sunos4* ) | |
17841 | if test "x$GCC" = "xyes"; then | |
126be6b4 | 17842 | THREAD_OPTS="-pthreads $THREAD_OPTS" |
009fead0 VZ |
17843 | else |
17844 | THREAD_OPTS="-mt $THREAD_OPTS" | |
17845 | fi | |
17846 | ;; | |
17847 | *-*-freebsd*) | |
17848 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
17849 | ;; | |
17234b26 MB |
17850 | *-*-darwin* | *-*-cygwin* ) |
17851 | THREAD_OPTS="" | |
4101db81 | 17852 | ;; |
8f4a9a10 | 17853 | *-*-aix*) |
009fead0 VZ |
17854 | THREAD_OPTS="pthreads" |
17855 | ;; | |
009fead0 | 17856 | esac |
4f14bcd8 | 17857 | |
02a1dfba | 17858 | THREAD_OPTS="$THREAD_OPTS pthread none" |
595e0e44 | 17859 | |
009fead0 VZ |
17860 | THREADS_OK=no |
17861 | for flag in $THREAD_OPTS; do | |
17862 | case $flag in | |
17863 | none) | |
a0b9e27f | 17864 | echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6 |
db82f09e | 17865 | echo "configure:17866: checking whether pthreads work without any flags" >&5 |
009fead0 | 17866 | ;; |
698dcdb6 | 17867 | |
009fead0 | 17868 | -*) |
a0b9e27f | 17869 | echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6 |
db82f09e | 17870 | echo "configure:17871: checking whether pthreads work with $flag" >&5 |
009fead0 VZ |
17871 | THREADS_CFLAGS="$flag" |
17872 | ;; | |
698dcdb6 | 17873 | |
009fead0 | 17874 | *) |
a0b9e27f | 17875 | echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6 |
db82f09e | 17876 | echo "configure:17877: checking for the pthreads library -l$flag" >&5 |
009fead0 VZ |
17877 | THREADS_LINK="-l$flag" |
17878 | ;; | |
17879 | esac | |
10f2d63a | 17880 | |
009fead0 VZ |
17881 | save_LIBS="$LIBS" |
17882 | save_CFLAGS="$CFLAGS" | |
17883 | LIBS="$THREADS_LINK $LIBS" | |
04727afd | 17884 | CFLAGS="$THREADS_CFLAGS $CFLAGS" |
10f2d63a | 17885 | |
a0b9e27f | 17886 | cat > conftest.$ac_ext <<EOF |
db82f09e | 17887 | #line 17888 "configure" |
009fead0 VZ |
17888 | #include "confdefs.h" |
17889 | #include <pthread.h> | |
a0b9e27f | 17890 | int main() { |
009fead0 | 17891 | pthread_create(0,0,0,0); |
a0b9e27f MB |
17892 | ; return 0; } |
17893 | EOF | |
db82f09e | 17894 | if { (eval echo configure:17895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 17895 | rm -rf conftest* |
009fead0 | 17896 | THREADS_OK=yes |
10f2d63a | 17897 | else |
a0b9e27f MB |
17898 | echo "configure: failed program was:" >&5 |
17899 | cat conftest.$ac_ext >&5 | |
6232543b | 17900 | fi |
a0b9e27f | 17901 | rm -f conftest* |
698dcdb6 | 17902 | |
009fead0 VZ |
17903 | LIBS="$save_LIBS" |
17904 | CFLAGS="$save_CFLAGS" | |
d9b9876f | 17905 | |
a0b9e27f | 17906 | echo "$ac_t""$THREADS_OK" 1>&6 |
009fead0 VZ |
17907 | if test "x$THREADS_OK" = "xyes"; then |
17908 | break; | |
17909 | fi | |
d9b9876f | 17910 | |
009fead0 VZ |
17911 | THREADS_LINK="" |
17912 | THREADS_CFLAGS="" | |
17913 | done | |
4f14bcd8 | 17914 | |
009fead0 VZ |
17915 | if test "x$THREADS_OK" != "xyes"; then |
17916 | wxUSE_THREADS=no | |
a0b9e27f | 17917 | echo "configure: warning: No thread support on this system... disabled" 1>&2 |
009fead0 | 17918 | else |
db82f09e VZ |
17919 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" |
17920 | LIBS="$THREADS_LINK $LIBS" | |
fe5a9cab | 17921 | |
a0b9e27f | 17922 | echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6 |
db82f09e | 17923 | echo "configure:17924: checking if more special flags are required for pthreads" >&5 |
009fead0 VZ |
17924 | flag=no |
17925 | case "${host}" in | |
17926 | *-aix* | *-freebsd*) | |
17927 | flag="-D_THREAD_SAFE" | |
17928 | ;; | |
06313569 GD |
17929 | *-hp-hpux* ) |
17930 | flag="-D_REENTRANT" | |
17931 | ;; | |
009fead0 VZ |
17932 | *solaris* | alpha*-osf*) |
17933 | flag="-D_REENTRANT" | |
17934 | ;; | |
17935 | esac | |
a0b9e27f | 17936 | echo "$ac_t""${flag}" 1>&6 |
009fead0 | 17937 | if test "x$flag" != xno; then |
04727afd | 17938 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" |
009fead0 VZ |
17939 | fi |
17940 | ||
009fead0 | 17941 | if test "x$THREADS_CFLAGS" != "x"; then |
04727afd | 17942 | CFLAGS="$CFLAGS $THREADS_CFLAGS" |
009fead0 VZ |
17943 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" |
17944 | fi | |
17945 | fi | |
4f14bcd8 | 17946 | fi |
4f14bcd8 | 17947 | |
7274f1c7 | 17948 | if test "$wxUSE_THREADS" = "yes" ; then |
a0b9e27f | 17949 | for ac_func in thr_setconcurrency |
4f14bcd8 | 17950 | do |
a0b9e27f | 17951 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
db82f09e | 17952 | echo "configure:17953: checking for $ac_func" >&5 |
a0b9e27f MB |
17953 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17954 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17955 | else | |
17956 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 17957 | #line 17958 "configure" |
d9b9876f | 17958 | #include "confdefs.h" |
4f14bcd8 | 17959 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 17960 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
17961 | #include <assert.h> |
17962 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17963 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17964 | builtin and then its argument prototype would still apply. */ |
17965 | char $ac_func(); | |
17966 | ||
17967 | int main() { | |
17968 | ||
4f14bcd8 GD |
17969 | /* The GNU C library defines this for functions which it implements |
17970 | to always fail with ENOSYS. Some functions are actually named | |
17971 | something starting with __ and the normal name is an alias. */ | |
17972 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17973 | choke me | |
17974 | #else | |
a0b9e27f | 17975 | $ac_func(); |
4f14bcd8 GD |
17976 | #endif |
17977 | ||
a0b9e27f MB |
17978 | ; return 0; } |
17979 | EOF | |
db82f09e | 17980 | if { (eval echo configure:17981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17981 | rm -rf conftest* |
17982 | eval "ac_cv_func_$ac_func=yes" | |
17983 | else | |
17984 | echo "configure: failed program was:" >&5 | |
17985 | cat conftest.$ac_ext >&5 | |
17986 | rm -rf conftest* | |
17987 | eval "ac_cv_func_$ac_func=no" | |
17988 | fi | |
17989 | rm -f conftest* | |
17990 | fi | |
698dcdb6 | 17991 | |
a0b9e27f MB |
17992 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17993 | echo "$ac_t""yes" 1>&6 | |
17994 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17995 | cat >> confdefs.h <<EOF | |
17996 | #define $ac_tr_func 1 | |
17997 | EOF | |
17998 | ||
17999 | else | |
18000 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 18001 | fi |
4f14bcd8 | 18002 | done |
10f2d63a | 18003 | |
8284b0c5 | 18004 | |
a0b9e27f | 18005 | for ac_hdr in sched.h |
4f14bcd8 | 18006 | do |
a0b9e27f MB |
18007 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
18008 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
db82f09e | 18009 | echo "configure:18010: checking for $ac_hdr" >&5 |
a0b9e27f MB |
18010 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
18011 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18012 | else | |
18013 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 18014 | #line 18015 "configure" |
247f5006 | 18015 | #include "confdefs.h" |
a0b9e27f MB |
18016 | #include <$ac_hdr> |
18017 | EOF | |
18018 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
db82f09e | 18019 | { (eval echo configure:18020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
18020 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
18021 | if test -z "$ac_err"; then | |
18022 | rm -rf conftest* | |
18023 | eval "ac_cv_header_$ac_safe=yes" | |
18024 | else | |
18025 | echo "$ac_err" >&5 | |
18026 | echo "configure: failed program was:" >&5 | |
4f14bcd8 | 18027 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
18028 | rm -rf conftest* |
18029 | eval "ac_cv_header_$ac_safe=no" | |
13111b2a | 18030 | fi |
a0b9e27f | 18031 | rm -f conftest* |
10f2d63a | 18032 | fi |
a0b9e27f MB |
18033 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
18034 | echo "$ac_t""yes" 1>&6 | |
18035 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
18036 | cat >> confdefs.h <<EOF | |
18037 | #define $ac_tr_hdr 1 | |
18038 | EOF | |
18039 | ||
18040 | else | |
18041 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 | 18042 | fi |
4f14bcd8 | 18043 | done |
f6bcfd97 | 18044 | |
009fead0 | 18045 | if test "$ac_cv_header_sched_h" = "yes"; then |
a0b9e27f | 18046 | echo $ac_n "checking for sched_yield""... $ac_c" 1>&6 |
db82f09e | 18047 | echo "configure:18048: checking for sched_yield" >&5 |
a0b9e27f MB |
18048 | if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then |
18049 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 18050 | else |
a0b9e27f | 18051 | cat > conftest.$ac_ext <<EOF |
db82f09e | 18052 | #line 18053 "configure" |
4f14bcd8 | 18053 | #include "confdefs.h" |
009fead0 | 18054 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18055 | which can conflict with char sched_yield(); below. */ |
009fead0 | 18056 | #include <assert.h> |
4f14bcd8 GD |
18057 | /* Override any gcc2 internal prototype to avoid an error. */ |
18058 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18059 | builtin and then its argument prototype would still apply. */ |
18060 | char sched_yield(); | |
18061 | ||
18062 | int main() { | |
18063 | ||
009fead0 VZ |
18064 | /* The GNU C library defines this for functions which it implements |
18065 | to always fail with ENOSYS. Some functions are actually named | |
18066 | something starting with __ and the normal name is an alias. */ | |
18067 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
18068 | choke me | |
18069 | #else | |
a0b9e27f | 18070 | sched_yield(); |
009fead0 VZ |
18071 | #endif |
18072 | ||
a0b9e27f MB |
18073 | ; return 0; } |
18074 | EOF | |
db82f09e | 18075 | if { (eval echo configure:18076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18076 | rm -rf conftest* |
18077 | eval "ac_cv_func_sched_yield=yes" | |
18078 | else | |
18079 | echo "configure: failed program was:" >&5 | |
18080 | cat conftest.$ac_ext >&5 | |
18081 | rm -rf conftest* | |
18082 | eval "ac_cv_func_sched_yield=no" | |
18083 | fi | |
18084 | rm -f conftest* | |
18085 | fi | |
18086 | ||
18087 | if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then | |
18088 | echo "$ac_t""yes" 1>&6 | |
18089 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18090 | #define HAVE_SCHED_YIELD 1 |
a0b9e27f | 18091 | EOF |
10f2d63a | 18092 | |
4f14bcd8 | 18093 | else |
a0b9e27f | 18094 | echo "$ac_t""no" 1>&6 |
009fead0 | 18095 | |
a0b9e27f | 18096 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 |
db82f09e | 18097 | echo "configure:18098: checking for sched_yield in -lposix4" >&5 |
a0b9e27f MB |
18098 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
18099 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18100 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 18101 | else |
a0b9e27f | 18102 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18103 | LIBS="-lposix4 $LIBS" |
a0b9e27f | 18104 | cat > conftest.$ac_ext <<EOF |
db82f09e | 18105 | #line 18106 "configure" |
4f14bcd8 GD |
18106 | #include "confdefs.h" |
18107 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18108 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18109 | builtin and then its argument prototype would still apply. */ |
18110 | char sched_yield(); | |
18111 | ||
18112 | int main() { | |
18113 | sched_yield() | |
18114 | ; return 0; } | |
18115 | EOF | |
db82f09e | 18116 | if { (eval echo configure:18117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18117 | rm -rf conftest* |
18118 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18119 | else | |
18120 | echo "configure: failed program was:" >&5 | |
18121 | cat conftest.$ac_ext >&5 | |
18122 | rm -rf conftest* | |
18123 | eval "ac_cv_lib_$ac_lib_var=no" | |
18124 | fi | |
18125 | rm -f conftest* | |
18126 | LIBS="$ac_save_LIBS" | |
18127 | ||
18128 | fi | |
18129 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18130 | echo "$ac_t""yes" 1>&6 | |
18131 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18132 | #define HAVE_SCHED_YIELD 1 |
a0b9e27f | 18133 | EOF |
3d63bc3a | 18134 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 18135 | else |
a0b9e27f MB |
18136 | echo "$ac_t""no" 1>&6 |
18137 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
18138 | ||
54276ccf VZ |
18139 | fi |
18140 | ||
a0b9e27f MB |
18141 | |
18142 | ||
4f14bcd8 | 18143 | fi |
698dcdb6 | 18144 | |
009fead0 | 18145 | fi |
10f2d63a | 18146 | |
7274f1c7 | 18147 | HAVE_PRIOR_FUNCS=0 |
a0b9e27f | 18148 | echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6 |
db82f09e | 18149 | echo "configure:18150: checking for pthread_attr_getschedpolicy" >&5 |
a0b9e27f MB |
18150 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then |
18151 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 18152 | else |
a0b9e27f | 18153 | cat > conftest.$ac_ext <<EOF |
db82f09e | 18154 | #line 18155 "configure" |
422107f9 | 18155 | #include "confdefs.h" |
009fead0 | 18156 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18157 | which can conflict with char pthread_attr_getschedpolicy(); below. */ |
009fead0 | 18158 | #include <assert.h> |
4f14bcd8 GD |
18159 | /* Override any gcc2 internal prototype to avoid an error. */ |
18160 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18161 | builtin and then its argument prototype would still apply. */ |
18162 | char pthread_attr_getschedpolicy(); | |
18163 | ||
18164 | int main() { | |
18165 | ||
009fead0 VZ |
18166 | /* The GNU C library defines this for functions which it implements |
18167 | to always fail with ENOSYS. Some functions are actually named | |
18168 | something starting with __ and the normal name is an alias. */ | |
18169 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
18170 | choke me | |
18171 | #else | |
a0b9e27f | 18172 | pthread_attr_getschedpolicy(); |
009fead0 VZ |
18173 | #endif |
18174 | ||
a0b9e27f MB |
18175 | ; return 0; } |
18176 | EOF | |
db82f09e | 18177 | if { (eval echo configure:18178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18178 | rm -rf conftest* |
18179 | eval "ac_cv_func_pthread_attr_getschedpolicy=yes" | |
18180 | else | |
18181 | echo "configure: failed program was:" >&5 | |
18182 | cat conftest.$ac_ext >&5 | |
18183 | rm -rf conftest* | |
18184 | eval "ac_cv_func_pthread_attr_getschedpolicy=no" | |
18185 | fi | |
18186 | rm -f conftest* | |
18187 | fi | |
18188 | ||
18189 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then | |
18190 | echo "$ac_t""yes" 1>&6 | |
18191 | echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6 | |
db82f09e | 18192 | echo "configure:18193: checking for pthread_attr_setschedparam" >&5 |
a0b9e27f MB |
18193 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then |
18194 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 18195 | else |
a0b9e27f | 18196 | cat > conftest.$ac_ext <<EOF |
db82f09e | 18197 | #line 18198 "configure" |
a0b9e27f MB |
18198 | #include "confdefs.h" |
18199 | /* System header to define __stub macros and hopefully few prototypes, | |
18200 | which can conflict with char pthread_attr_setschedparam(); below. */ | |
009fead0 | 18201 | #include <assert.h> |
422107f9 VZ |
18202 | /* Override any gcc2 internal prototype to avoid an error. */ |
18203 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18204 | builtin and then its argument prototype would still apply. */ |
18205 | char pthread_attr_setschedparam(); | |
18206 | ||
18207 | int main() { | |
18208 | ||
009fead0 VZ |
18209 | /* The GNU C library defines this for functions which it implements |
18210 | to always fail with ENOSYS. Some functions are actually named | |
18211 | something starting with __ and the normal name is an alias. */ | |
18212 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
18213 | choke me | |
18214 | #else | |
a0b9e27f | 18215 | pthread_attr_setschedparam(); |
009fead0 VZ |
18216 | #endif |
18217 | ||
a0b9e27f MB |
18218 | ; return 0; } |
18219 | EOF | |
db82f09e | 18220 | if { (eval echo configure:18221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18221 | rm -rf conftest* |
18222 | eval "ac_cv_func_pthread_attr_setschedparam=yes" | |
18223 | else | |
18224 | echo "configure: failed program was:" >&5 | |
18225 | cat conftest.$ac_ext >&5 | |
18226 | rm -rf conftest* | |
18227 | eval "ac_cv_func_pthread_attr_setschedparam=no" | |
18228 | fi | |
18229 | rm -f conftest* | |
18230 | fi | |
18231 | ||
18232 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then | |
18233 | echo "$ac_t""yes" 1>&6 | |
18234 | echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6 | |
db82f09e | 18235 | echo "configure:18236: checking for sched_get_priority_max" >&5 |
a0b9e27f MB |
18236 | if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then |
18237 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18238 | else | |
18239 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 18240 | #line 18241 "configure" |
422107f9 | 18241 | #include "confdefs.h" |
009fead0 VZ |
18242 | /* System header to define __stub macros and hopefully few prototypes |
18243 | else | |
a0b9e27f MB |
18244 | echo "$ac_t""no" 1>&6 |
18245 | which can conflict with char sched_get_priority_max(); below. */ | |
009fead0 | 18246 | #include <assert.h> |
4f14bcd8 GD |
18247 | /* Override any gcc2 internal prototype to avoid an error. */ |
18248 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18249 | builtin and then its argument prototype would still apply. */ |
18250 | char sched_get_priority_max(); | |
18251 | ||
18252 | int main() { | |
18253 | ||
009fead0 VZ |
18254 | /* The GNU C library defines this for functions which it implements |
18255 | to always fail with ENOSYS. Some functions are actually named | |
18256 | something starting with __ and the normal name is an alias. */ | |
18257 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
18258 | choke me | |
18259 | #else | |
a0b9e27f | 18260 | sched_get_priority_max(); |
009fead0 VZ |
18261 | #endif |
18262 | ||
a0b9e27f MB |
18263 | ; return 0; } |
18264 | EOF | |
db82f09e | 18265 | if { (eval echo configure:18266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18266 | rm -rf conftest* |
18267 | eval "ac_cv_func_sched_get_priority_max=yes" | |
18268 | else | |
18269 | echo "configure: failed program was:" >&5 | |
18270 | cat conftest.$ac_ext >&5 | |
18271 | rm -rf conftest* | |
18272 | eval "ac_cv_func_sched_get_priority_max=no" | |
18273 | fi | |
18274 | rm -f conftest* | |
18275 | fi | |
18276 | ||
18277 | if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then | |
18278 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
18279 | HAVE_PRIOR_FUNCS=1 |
18280 | else | |
a0b9e27f MB |
18281 | echo "$ac_t""no" 1>&6 |
18282 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
db82f09e | 18283 | echo "configure:18284: checking for sched_get_priority_max in -lposix4" >&5 |
a0b9e27f MB |
18284 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
18285 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18286 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 18287 | else |
a0b9e27f | 18288 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18289 | LIBS="-lposix4 $LIBS" |
a0b9e27f | 18290 | cat > conftest.$ac_ext <<EOF |
db82f09e | 18291 | #line 18292 "configure" |
422107f9 VZ |
18292 | #include "confdefs.h" |
18293 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18294 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18295 | builtin and then its argument prototype would still apply. */ |
18296 | char sched_get_priority_max(); | |
18297 | ||
18298 | int main() { | |
18299 | sched_get_priority_max() | |
18300 | ; return 0; } | |
18301 | EOF | |
db82f09e | 18302 | if { (eval echo configure:18303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18303 | rm -rf conftest* |
18304 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18305 | else | |
18306 | echo "configure: failed program was:" >&5 | |
18307 | cat conftest.$ac_ext >&5 | |
18308 | rm -rf conftest* | |
18309 | eval "ac_cv_lib_$ac_lib_var=no" | |
18310 | fi | |
18311 | rm -f conftest* | |
18312 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 18313 | |
a0b9e27f MB |
18314 | fi |
18315 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18316 | echo "$ac_t""yes" 1>&6 | |
18317 | ||
7274f1c7 RL |
18318 | HAVE_PRIOR_FUNCS=1 |
18319 | POSIX4_LINK=" -lposix4" | |
a0b9e27f MB |
18320 | |
18321 | else | |
18322 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 18323 | fi |
463abc64 | 18324 | |
a0b9e27f | 18325 | |
328a083c | 18326 | fi |
463abc64 | 18327 | |
a0b9e27f MB |
18328 | |
18329 | else | |
18330 | echo "$ac_t""no" 1>&6 | |
7b4a847f | 18331 | fi |
579d8138 | 18332 | |
a0b9e27f | 18333 | |
5c6fa7d2 | 18334 | fi |
52127426 | 18335 | |
8284b0c5 | 18336 | |
7274f1c7 | 18337 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
a0b9e27f | 18338 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18339 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
a0b9e27f | 18340 | EOF |
463abc64 | 18341 | |
7274f1c7 | 18342 | else |
a0b9e27f | 18343 | echo "configure: warning: Setting thread priority will not work" 1>&2 |
7274f1c7 | 18344 | fi |
463abc64 | 18345 | |
a0b9e27f | 18346 | echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6 |
db82f09e | 18347 | echo "configure:18348: checking for pthread_cancel" >&5 |
a0b9e27f MB |
18348 | if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then |
18349 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 18350 | else |
a0b9e27f | 18351 | cat > conftest.$ac_ext <<EOF |
db82f09e | 18352 | #line 18353 "configure" |
422107f9 | 18353 | #include "confdefs.h" |
009fead0 | 18354 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18355 | which can conflict with char pthread_cancel(); below. */ |
009fead0 | 18356 | #include <assert.h> |
422107f9 VZ |
18357 | /* Override any gcc2 internal prototype to avoid an error. */ |
18358 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18359 | builtin and then its argument prototype would still apply. */ |
18360 | char pthread_cancel(); | |
18361 | ||
18362 | int main() { | |
18363 | ||
009fead0 VZ |
18364 | /* The GNU C library defines this for functions which it implements |
18365 | to always fail with ENOSYS. Some functions are actually named | |
18366 | something starting with __ and the normal name is an alias. */ | |
18367 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
18368 | choke me | |
18369 | #else | |
a0b9e27f | 18370 | pthread_cancel(); |
009fead0 VZ |
18371 | #endif |
18372 | ||
a0b9e27f MB |
18373 | ; return 0; } |
18374 | EOF | |
db82f09e | 18375 | if { (eval echo configure:18376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18376 | rm -rf conftest* |
18377 | eval "ac_cv_func_pthread_cancel=yes" | |
18378 | else | |
18379 | echo "configure: failed program was:" >&5 | |
18380 | cat conftest.$ac_ext >&5 | |
18381 | rm -rf conftest* | |
18382 | eval "ac_cv_func_pthread_cancel=no" | |
18383 | fi | |
18384 | rm -f conftest* | |
18385 | fi | |
18386 | ||
18387 | if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then | |
18388 | echo "$ac_t""yes" 1>&6 | |
18389 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18390 | #define HAVE_PTHREAD_CANCEL 1 |
a0b9e27f | 18391 | EOF |
4f14bcd8 | 18392 | |
698dcdb6 | 18393 | else |
a0b9e27f MB |
18394 | echo "$ac_t""no" 1>&6 |
18395 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
422107f9 VZ |
18396 | fi |
18397 | ||
5c6fa7d2 | 18398 | |
a0b9e27f | 18399 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
db82f09e | 18400 | echo "configure:18401: checking for pthread_cleanup_push/pop" >&5 |
a0b9e27f MB |
18401 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
18402 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 18403 | else |
a0b9e27f MB |
18404 | |
18405 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 18406 | #line 18407 "configure" |
4f14bcd8 GD |
18407 | #include "confdefs.h" |
18408 | #include <pthread.h> | |
a0b9e27f | 18409 | int main() { |
4f14bcd8 | 18410 | |
7274f1c7 RL |
18411 | pthread_cleanup_push(NULL, NULL); |
18412 | pthread_cleanup_pop(0); | |
a0b9e27f MB |
18413 | |
18414 | ; return 0; } | |
18415 | EOF | |
db82f09e | 18416 | if { (eval echo configure:18417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
18417 | rm -rf conftest* |
18418 | ||
7274f1c7 | 18419 | wx_cv_func_pthread_cleanup_push=yes |
a0b9e27f | 18420 | |
4f14bcd8 | 18421 | else |
a0b9e27f MB |
18422 | echo "configure: failed program was:" >&5 |
18423 | cat conftest.$ac_ext >&5 | |
18424 | rm -rf conftest* | |
18425 | ||
7274f1c7 | 18426 | wx_cv_func_pthread_cleanup_push=no |
a0b9e27f | 18427 | |
5c6fa7d2 | 18428 | fi |
a0b9e27f MB |
18429 | rm -f conftest* |
18430 | ||
247f5006 | 18431 | fi |
a0b9e27f MB |
18432 | |
18433 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
4f14bcd8 | 18434 | |
7274f1c7 | 18435 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
a0b9e27f | 18436 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18437 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
a0b9e27f | 18438 | EOF |
c7a2bf27 | 18439 | |
7274f1c7 | 18440 | fi |
4f14bcd8 | 18441 | |
a0b9e27f MB |
18442 | |
18443 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 | |
db82f09e | 18444 | echo "configure:18445: checking for pthread_mutexattr_t" >&5 |
a0b9e27f MB |
18445 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
18446 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 18447 | else |
a0b9e27f MB |
18448 | |
18449 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 18450 | #line 18451 "configure" |
0dcf9893 | 18451 | #include "confdefs.h" |
4f14bcd8 | 18452 | #include <pthread.h> |
a0b9e27f | 18453 | int main() { |
4f14bcd8 | 18454 | |
7274f1c7 RL |
18455 | pthread_mutexattr_t attr; |
18456 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
a0b9e27f MB |
18457 | |
18458 | ; return 0; } | |
18459 | EOF | |
db82f09e | 18460 | if { (eval echo configure:18461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
18461 | rm -rf conftest* |
18462 | ||
7274f1c7 | 18463 | wx_cv_type_pthread_mutexattr_t=yes |
a0b9e27f | 18464 | |
3fed1840 | 18465 | else |
a0b9e27f MB |
18466 | echo "configure: failed program was:" >&5 |
18467 | cat conftest.$ac_ext >&5 | |
18468 | rm -rf conftest* | |
18469 | ||
7274f1c7 | 18470 | wx_cv_type_pthread_mutexattr_t=no |
a0b9e27f MB |
18471 | |
18472 | ||
5c6fa7d2 | 18473 | fi |
a0b9e27f MB |
18474 | rm -f conftest* |
18475 | ||
247f5006 | 18476 | fi |
a0b9e27f MB |
18477 | |
18478 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
4f14bcd8 | 18479 | |
7274f1c7 | 18480 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
a0b9e27f | 18481 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18482 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
a0b9e27f | 18483 | EOF |
4f14bcd8 | 18484 | |
7274f1c7 | 18485 | else |
a0b9e27f | 18486 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 |
db82f09e | 18487 | echo "configure:18488: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
a0b9e27f MB |
18488 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
18489 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18490 | else | |
18491 | ||
18492 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 18493 | #line 18494 "configure" |
3fed1840 | 18494 | #include "confdefs.h" |
4f14bcd8 | 18495 | #include <pthread.h> |
a0b9e27f | 18496 | int main() { |
4f14bcd8 | 18497 | |
7274f1c7 | 18498 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
a0b9e27f MB |
18499 | |
18500 | ; return 0; } | |
18501 | EOF | |
db82f09e | 18502 | if { (eval echo configure:18503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
18503 | rm -rf conftest* |
18504 | ||
7274f1c7 | 18505 | wx_cv_type_pthread_rec_mutex_init=yes |
a0b9e27f | 18506 | |
698dcdb6 | 18507 | else |
a0b9e27f MB |
18508 | echo "configure: failed program was:" >&5 |
18509 | cat conftest.$ac_ext >&5 | |
18510 | rm -rf conftest* | |
18511 | ||
7274f1c7 | 18512 | wx_cv_type_pthread_rec_mutex_init=no |
a0b9e27f MB |
18513 | |
18514 | ||
5c6fa7d2 | 18515 | fi |
a0b9e27f MB |
18516 | rm -f conftest* |
18517 | ||
247f5006 | 18518 | fi |
a0b9e27f MB |
18519 | |
18520 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 | |
7274f1c7 | 18521 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
a0b9e27f | 18522 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18523 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
a0b9e27f | 18524 | EOF |
3fed1840 | 18525 | |
7274f1c7 | 18526 | else |
a0b9e27f | 18527 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 |
7274f1c7 RL |
18528 | fi |
18529 | fi | |
7274f1c7 | 18530 | fi |
3fed1840 | 18531 | |
a0b9e27f MB |
18532 | else |
18533 | if test "$wxUSE_THREADS" = "yes" ; then | |
18534 | case "${host}" in | |
18535 | *-*-mingw32* ) | |
ca8e52b3 | 18536 | echo $ac_n "checking if compiler supports -mthreads""... $ac_c" 1>&6 |
db82f09e | 18537 | echo "configure:18538: checking if compiler supports -mthreads" >&5 |
ca8e52b3 VZ |
18538 | if eval "test \"`echo '$''{'wx_cv_cflags_mthread'+set}'`\" = set"; then |
18539 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18540 | else | |
18541 | ||
18542 | CFLAGS_OLD="$CFLAGS" | |
18543 | CFLAGS="$CFLAGS -mthreads" | |
18544 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 18545 | #line 18546 "configure" |
ca8e52b3 VZ |
18546 | #include "confdefs.h" |
18547 | ||
18548 | int main() { | |
18549 | ||
18550 | ; return 0; } | |
18551 | EOF | |
db82f09e | 18552 | if { (eval echo configure:18553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
ca8e52b3 VZ |
18553 | rm -rf conftest* |
18554 | wx_cv_cflags_mthread=yes | |
18555 | else | |
18556 | echo "configure: failed program was:" >&5 | |
18557 | cat conftest.$ac_ext >&5 | |
18558 | rm -rf conftest* | |
18559 | wx_cv_cflags_mthread=no | |
18560 | ||
18561 | fi | |
18562 | rm -f conftest* | |
18563 | ||
18564 | ||
18565 | fi | |
18566 | ||
18567 | echo "$ac_t""$wx_cv_cflags_mthread" 1>&6 | |
18568 | ||
18569 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
18570 | CXXFLAGS="$CXXFLAGS -mthreads" | |
18571 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
18572 | LDFLAGS="$LDFLAGS -mthreads" | |
18573 | else | |
18574 | CFLAGS="$CFLAGS_OLD" | |
18575 | fi | |
a0b9e27f MB |
18576 | ;; |
18577 | esac | |
18578 | fi | |
4f14bcd8 GD |
18579 | fi |
18580 | ||
18581 | if test "$wxUSE_THREADS" = "yes"; then | |
a0b9e27f | 18582 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18583 | #define wxUSE_THREADS 1 |
a0b9e27f | 18584 | EOF |
7b6058cd | 18585 | |
8284b0c5 | 18586 | |
4f14bcd8 | 18587 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" |
698dcdb6 | 18588 | else |
4f14bcd8 | 18589 | if test "$ac_cv_func_strtok_r" = "yes"; then |
a0b9e27f | 18590 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 |
db82f09e | 18591 | echo "configure:18592: checking if -D_REENTRANT is needed" >&5 |
4f14bcd8 GD |
18592 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
18593 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
a0b9e27f | 18594 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 18595 | else |
a0b9e27f | 18596 | echo "$ac_t""no" 1>&6 |
4f14bcd8 GD |
18597 | fi |
18598 | fi | |
18599 | fi | |
18600 | ||
18601 | if test "$WXGTK20" = 1 ; then | |
a0b9e27f | 18602 | cat >> confdefs.h <<EOF |
4f14bcd8 | 18603 | #define __WXGTK20__ $WXGTK20 |
a0b9e27f | 18604 | EOF |
4f14bcd8 GD |
18605 | |
18606 | WXGTK12=1 | |
10f2d63a | 18607 | fi |
4f14bcd8 GD |
18608 | |
18609 | if test "$WXGTK12" = 1 ; then | |
a0b9e27f | 18610 | cat >> confdefs.h <<EOF |
4f14bcd8 | 18611 | #define __WXGTK12__ $WXGTK12 |
a0b9e27f | 18612 | EOF |
4f14bcd8 | 18613 | |
10f2d63a | 18614 | fi |
698dcdb6 | 18615 | |
4f14bcd8 | 18616 | if test "$WXGTK127" = 1 ; then |
a0b9e27f | 18617 | cat >> confdefs.h <<EOF |
4f14bcd8 | 18618 | #define __WXGTK127__ $WXGTK127 |
a0b9e27f | 18619 | EOF |
4f14bcd8 | 18620 | |
698dcdb6 | 18621 | fi |
10f2d63a | 18622 | |
4f14bcd8 GD |
18623 | WXDEBUG= |
18624 | ||
18625 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
18626 | WXDEBUG="-g" | |
18627 | wxUSE_OPTIMISE=no | |
698dcdb6 | 18628 | fi |
4f14bcd8 GD |
18629 | |
18630 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
18631 | wxUSE_DEBUG_INFO=yes | |
18632 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
18633 | fi |
18634 | ||
4f14bcd8 | 18635 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
a0b9e27f | 18636 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18637 | #define WXDEBUG 1 |
a0b9e27f | 18638 | EOF |
4f14bcd8 GD |
18639 | |
18640 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 18641 | else |
4f14bcd8 GD |
18642 | if test "$wxUSE_GTK" = 1 ; then |
18643 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
18644 | fi | |
18645 | fi | |
18646 | ||
18647 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
a0b9e27f | 18648 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18649 | #define wxUSE_MEMORY_TRACING 1 |
a0b9e27f | 18650 | EOF |
4f14bcd8 | 18651 | |
a0b9e27f | 18652 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18653 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 |
a0b9e27f | 18654 | EOF |
4f14bcd8 | 18655 | |
a0b9e27f | 18656 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18657 | #define wxUSE_DEBUG_NEW_ALWAYS 1 |
a0b9e27f | 18658 | EOF |
4f14bcd8 GD |
18659 | |
18660 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
18661 | fi | |
18662 | ||
18663 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 18664 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
18665 | fi |
18666 | ||
18667 | PROFILE= | |
18668 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 18669 | PROFILE=" -pg" |
10f2d63a VZ |
18670 | fi |
18671 | ||
009fead0 VZ |
18672 | CODE_GEN_FLAGS= |
18673 | CODE_GEN_FLAGS_CXX= | |
88e30f2b | 18674 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
18675 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
18676 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 18677 | fi |
4f14bcd8 GD |
18678 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
18679 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
18680 | fi | |
18681 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
18682 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
18683 | fi | |
4f14bcd8 GD |
18684 | if test "$USE_WIN32" = 1 ; then |
18685 | # I'm not even really sure what this was ever added to solve, | |
18686 | # but someone added it for mingw native builds, so I guess | |
18687 | # they had a reason, right?? | |
18688 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return" | |
18689 | fi | |
1d1b75ac VZ |
18690 | |
18691 | case "${host}" in | |
18692 | powerpc*-*-aix* ) | |
18693 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
18694 | ;; | |
18695 | esac | |
4f14bcd8 GD |
18696 | fi |
18697 | ||
4f14bcd8 GD |
18698 | if test "$wxUSE_OPTIMISE" = "no" ; then |
18699 | OPTIMISE= | |
18700 | else | |
18701 | if test "$GCC" = yes ; then | |
18702 | OPTIMISE="-O2" | |
18703 | case "${host}" in | |
18704 | i586-*-*|i686-*-* ) | |
18705 | OPTIMISE="${OPTIMISE} " | |
18706 | ;; | |
18707 | esac | |
18708 | else | |
18709 | OPTIMISE="-O" | |
18710 | fi | |
18711 | fi | |
18712 | ||
18713 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then | |
a0b9e27f | 18714 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18715 | #define WXWIN_COMPATIBILITY_2 1 |
a0b9e27f | 18716 | EOF |
4f14bcd8 | 18717 | |
8284b0c5 | 18718 | |
4f14bcd8 GD |
18719 | WXWIN_COMPATIBILITY_2_2="yes" |
18720 | fi | |
18721 | ||
0c9a1c32 | 18722 | if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then |
a0b9e27f | 18723 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18724 | #define WXWIN_COMPATIBILITY_2_2 1 |
a0b9e27f | 18725 | EOF |
4f14bcd8 | 18726 | |
10f2d63a VZ |
18727 | fi |
18728 | ||
8284b0c5 | 18729 | |
10f2d63a | 18730 | if test "$wxUSE_GUI" = "yes"; then |
a0b9e27f | 18731 | cat >> confdefs.h <<\EOF |
10f2d63a | 18732 | #define wxUSE_GUI 1 |
a0b9e27f | 18733 | EOF |
10f2d63a | 18734 | |
8284b0c5 | 18735 | |
10f2d63a | 18736 | else |
a0b9e27f | 18737 | cat >> confdefs.h <<\EOF |
10f2d63a | 18738 | #define wxUSE_NOGUI 1 |
a0b9e27f | 18739 | EOF |
10f2d63a VZ |
18740 | |
18741 | fi | |
18742 | ||
8284b0c5 | 18743 | |
10f2d63a | 18744 | if test "$wxUSE_UNIX" = "yes"; then |
a0b9e27f | 18745 | cat >> confdefs.h <<\EOF |
10f2d63a | 18746 | #define wxUSE_UNIX 1 |
a0b9e27f | 18747 | EOF |
10f2d63a VZ |
18748 | |
18749 | fi | |
18750 | ||
8284b0c5 | 18751 | |
10f2d63a | 18752 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
a0b9e27f | 18753 | cat >> confdefs.h <<\EOF |
10f2d63a | 18754 | #define wxUSE_APPLE_IEEE 1 |
a0b9e27f | 18755 | EOF |
10f2d63a VZ |
18756 | |
18757 | fi | |
18758 | ||
1e6feb95 | 18759 | if test "$wxUSE_TIMER" = "yes"; then |
a0b9e27f | 18760 | cat >> confdefs.h <<\EOF |
1e6feb95 | 18761 | #define wxUSE_TIMER 1 |
a0b9e27f | 18762 | EOF |
1e6feb95 VZ |
18763 | |
18764 | fi | |
18765 | ||
10f2d63a | 18766 | if test "$wxUSE_WAVE" = "yes"; then |
a0b9e27f | 18767 | cat >> confdefs.h <<\EOF |
10f2d63a | 18768 | #define wxUSE_WAVE 1 |
a0b9e27f | 18769 | EOF |
10f2d63a VZ |
18770 | |
18771 | fi | |
18772 | ||
1e6feb95 | 18773 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
a0b9e27f | 18774 | cat >> confdefs.h <<\EOF |
1e6feb95 | 18775 | #define wxUSE_CMDLINE_PARSER 1 |
a0b9e27f | 18776 | EOF |
1e6feb95 VZ |
18777 | |
18778 | fi | |
18779 | ||
18780 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
a0b9e27f | 18781 | cat >> confdefs.h <<\EOF |
1e6feb95 | 18782 | #define wxUSE_STOPWATCH 1 |
a0b9e27f | 18783 | EOF |
1e6feb95 VZ |
18784 | |
18785 | fi | |
18786 | ||
18787 | if test "$wxUSE_DATETIME" = "yes"; then | |
a0b9e27f | 18788 | cat >> confdefs.h <<\EOF |
1e6feb95 | 18789 | #define wxUSE_DATETIME 1 |
a0b9e27f | 18790 | EOF |
1e6feb95 VZ |
18791 | |
18792 | fi | |
18793 | ||
18794 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
a0b9e27f | 18795 | cat >> confdefs.h <<\EOF |
1e6feb95 | 18796 | #define wxUSE_TIMEDATE 1 |
a0b9e27f | 18797 | EOF |
1e6feb95 VZ |
18798 | |
18799 | fi | |
18800 | ||
10f2d63a | 18801 | if test "$wxUSE_FILE" = "yes"; then |
a0b9e27f | 18802 | cat >> confdefs.h <<\EOF |
10f2d63a | 18803 | #define wxUSE_FILE 1 |
a0b9e27f | 18804 | EOF |
10f2d63a VZ |
18805 | |
18806 | fi | |
18807 | ||
1e6feb95 | 18808 | if test "$wxUSE_FFILE" = "yes"; then |
a0b9e27f | 18809 | cat >> confdefs.h <<\EOF |
1e6feb95 | 18810 | #define wxUSE_FFILE 1 |
a0b9e27f | 18811 | EOF |
1e6feb95 VZ |
18812 | |
18813 | fi | |
18814 | ||
24528b0c | 18815 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
a0b9e27f | 18816 | cat >> confdefs.h <<\EOF |
24528b0c | 18817 | #define wxUSE_FILESYSTEM 1 |
a0b9e27f | 18818 | EOF |
24528b0c VS |
18819 | |
18820 | fi | |
18821 | ||
10f2d63a | 18822 | if test "$wxUSE_FS_INET" = "yes"; then |
a0b9e27f | 18823 | cat >> confdefs.h <<\EOF |
10f2d63a | 18824 | #define wxUSE_FS_INET 1 |
a0b9e27f | 18825 | EOF |
10f2d63a VZ |
18826 | |
18827 | fi | |
18828 | ||
18829 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
a0b9e27f | 18830 | cat >> confdefs.h <<\EOF |
10f2d63a | 18831 | #define wxUSE_FS_ZIP 1 |
a0b9e27f | 18832 | EOF |
10f2d63a VZ |
18833 | |
18834 | fi | |
18835 | ||
18836 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
a0b9e27f | 18837 | cat >> confdefs.h <<\EOF |
10f2d63a | 18838 | #define wxUSE_ZIPSTREAM 1 |
a0b9e27f | 18839 | EOF |
10f2d63a VZ |
18840 | |
18841 | fi | |
18842 | ||
eb4efbdc | 18843 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
a0b9e27f | 18844 | cat >> confdefs.h <<\EOF |
eb4efbdc | 18845 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
a0b9e27f | 18846 | EOF |
eb4efbdc VZ |
18847 | |
18848 | fi | |
18849 | ||
4f3c5f06 | 18850 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
a0b9e27f | 18851 | cat >> confdefs.h <<\EOF |
4f3c5f06 | 18852 | #define wxUSE_SNGLINST_CHECKER 1 |
a0b9e27f | 18853 | EOF |
4f3c5f06 VZ |
18854 | |
18855 | fi | |
18856 | ||
10f2d63a | 18857 | if test "$wxUSE_BUSYINFO" = "yes"; then |
a0b9e27f | 18858 | cat >> confdefs.h <<\EOF |
10f2d63a | 18859 | #define wxUSE_BUSYINFO 1 |
a0b9e27f | 18860 | EOF |
10f2d63a VZ |
18861 | |
18862 | fi | |
18863 | ||
18864 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
a0b9e27f | 18865 | cat >> confdefs.h <<\EOF |
10f2d63a | 18866 | #define wxUSE_STD_IOSTREAM 1 |
a0b9e27f | 18867 | EOF |
10f2d63a VZ |
18868 | |
18869 | fi | |
18870 | ||
a3a584a7 | 18871 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
a0b9e27f | 18872 | cat >> confdefs.h <<\EOF |
a3a584a7 | 18873 | #define wxUSE_TEXTBUFFER 1 |
a0b9e27f | 18874 | EOF |
a3a584a7 VZ |
18875 | |
18876 | fi | |
18877 | ||
10f2d63a | 18878 | if test "$wxUSE_TEXTFILE" = "yes"; then |
a3a584a7 | 18879 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then |
a0b9e27f | 18880 | echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2 |
10f2d63a | 18881 | else |
a0b9e27f | 18882 | cat >> confdefs.h <<\EOF |
10f2d63a | 18883 | #define wxUSE_TEXTFILE 1 |
a0b9e27f | 18884 | EOF |
10f2d63a VZ |
18885 | |
18886 | fi | |
18887 | fi | |
18888 | ||
18889 | if test "$wxUSE_CONFIG" = "yes" ; then | |
18890 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
a0b9e27f | 18891 | echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2 |
10f2d63a | 18892 | else |
a0b9e27f | 18893 | cat >> confdefs.h <<\EOF |
10f2d63a | 18894 | #define wxUSE_CONFIG 1 |
a0b9e27f | 18895 | EOF |
10f2d63a VZ |
18896 | |
18897 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
18898 | fi | |
18899 | fi | |
18900 | ||
18901 | if test "$wxUSE_INTL" = "yes" ; then | |
18902 | if test "$wxUSE_FILE" != "yes"; then | |
a0b9e27f | 18903 | echo "configure: warning: I18n code requires wxFile... disabled" 1>&2 |
10f2d63a | 18904 | else |
a0b9e27f | 18905 | cat >> confdefs.h <<\EOF |
10f2d63a | 18906 | #define wxUSE_INTL 1 |
a0b9e27f | 18907 | EOF |
10f2d63a VZ |
18908 | |
18909 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 18910 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
18911 | fi |
18912 | fi | |
18913 | ||
18914 | if test "$wxUSE_LOG" = "yes"; then | |
a0b9e27f | 18915 | cat >> confdefs.h <<\EOF |
10f2d63a | 18916 | #define wxUSE_LOG 1 |
a0b9e27f | 18917 | EOF |
10f2d63a | 18918 | |
8284b0c5 | 18919 | |
d73be714 | 18920 | if test "$wxUSE_LOGGUI" = "yes"; then |
a0b9e27f | 18921 | cat >> confdefs.h <<\EOF |
d73be714 | 18922 | #define wxUSE_LOGGUI 1 |
a0b9e27f | 18923 | EOF |
d73be714 VZ |
18924 | |
18925 | fi | |
18926 | ||
18927 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
a0b9e27f | 18928 | cat >> confdefs.h <<\EOF |
d73be714 | 18929 | #define wxUSE_LOGWINDOW 1 |
a0b9e27f | 18930 | EOF |
69d27ff7 MB |
18931 | |
18932 | fi | |
18933 | ||
18934 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
a0b9e27f | 18935 | cat >> confdefs.h <<\EOF |
69d27ff7 | 18936 | #define wxUSE_LOG_DIALOG 1 |
a0b9e27f | 18937 | EOF |
d73be714 VZ |
18938 | |
18939 | fi | |
10f2d63a VZ |
18940 | fi |
18941 | ||
18942 | if test "$wxUSE_LONGLONG" = "yes"; then | |
a0b9e27f | 18943 | cat >> confdefs.h <<\EOF |
10f2d63a | 18944 | #define wxUSE_LONGLONG 1 |
a0b9e27f | 18945 | EOF |
10f2d63a VZ |
18946 | |
18947 | fi | |
18948 | ||
e8f65ba6 | 18949 | if test "$wxUSE_GEOMETRY" = "yes"; then |
a0b9e27f | 18950 | cat >> confdefs.h <<\EOF |
e8f65ba6 | 18951 | #define wxUSE_GEOMETRY 1 |
a0b9e27f | 18952 | EOF |
e8f65ba6 RR |
18953 | |
18954 | fi | |
18955 | ||
10f2d63a | 18956 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
a0b9e27f | 18957 | cat >> confdefs.h <<\EOF |
10f2d63a | 18958 | #define wxUSE_DIALUP_MANAGER 1 |
a0b9e27f | 18959 | EOF |
10f2d63a | 18960 | |
70f7a477 | 18961 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
18962 | fi |
18963 | ||
18964 | if test "$wxUSE_STREAMS" = "yes" ; then | |
a0b9e27f | 18965 | cat >> confdefs.h <<\EOF |
10f2d63a | 18966 | #define wxUSE_STREAMS 1 |
a0b9e27f | 18967 | EOF |
10f2d63a VZ |
18968 | |
18969 | fi | |
18970 | ||
5c6fa7d2 | 18971 | |
8284b0c5 | 18972 | if test "$wxUSE_DATETIME" = "yes"; then |
a0b9e27f | 18973 | for ac_func in strptime |
83307f33 | 18974 | do |
a0b9e27f | 18975 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
db82f09e | 18976 | echo "configure:18977: checking for $ac_func" >&5 |
a0b9e27f MB |
18977 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18978 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18979 | else | |
18980 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 18981 | #line 18982 "configure" |
83307f33 VZ |
18982 | #include "confdefs.h" |
18983 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 18984 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
18985 | #include <assert.h> |
18986 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18987 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18988 | builtin and then its argument prototype would still apply. */ |
18989 | char $ac_func(); | |
18990 | ||
18991 | int main() { | |
18992 | ||
83307f33 VZ |
18993 | /* The GNU C library defines this for functions which it implements |
18994 | to always fail with ENOSYS. Some functions are actually named | |
18995 | something starting with __ and the normal name is an alias. */ | |
18996 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18997 | choke me | |
18998 | #else | |
a0b9e27f | 18999 | $ac_func(); |
83307f33 VZ |
19000 | #endif |
19001 | ||
a0b9e27f MB |
19002 | ; return 0; } |
19003 | EOF | |
db82f09e | 19004 | if { (eval echo configure:19005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19005 | rm -rf conftest* |
19006 | eval "ac_cv_func_$ac_func=yes" | |
19007 | else | |
19008 | echo "configure: failed program was:" >&5 | |
19009 | cat conftest.$ac_ext >&5 | |
19010 | rm -rf conftest* | |
19011 | eval "ac_cv_func_$ac_func=no" | |
19012 | fi | |
19013 | rm -f conftest* | |
19014 | fi | |
83307f33 | 19015 | |
a0b9e27f MB |
19016 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
19017 | echo "$ac_t""yes" 1>&6 | |
19018 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19019 | cat >> confdefs.h <<EOF | |
19020 | #define $ac_tr_func 1 | |
19021 | EOF | |
19022 | ||
19023 | else | |
19024 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
19025 | fi |
19026 | done | |
19027 | ||
5c6fa7d2 | 19028 | |
a0b9e27f | 19029 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
db82f09e | 19030 | echo "configure:19031: checking for timezone variable in <time.h>" >&5 |
a0b9e27f MB |
19031 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
19032 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 19033 | else |
a0b9e27f MB |
19034 | |
19035 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 19036 | #line 19037 "configure" |
360d6699 VZ |
19037 | #include "confdefs.h" |
19038 | ||
b4085ce6 | 19039 | #include <time.h> |
a0b9e27f MB |
19040 | |
19041 | int main() { | |
360d6699 VZ |
19042 | |
19043 | int tz; | |
4f11a343 | 19044 | tz = timezone; |
a0b9e27f MB |
19045 | |
19046 | ; return 0; } | |
19047 | EOF | |
db82f09e | 19048 | if { (eval echo configure:19049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19049 | rm -rf conftest* |
19050 | ||
4f11a343 | 19051 | wx_cv_var_timezone=timezone |
a0b9e27f | 19052 | |
360d6699 | 19053 | else |
a0b9e27f MB |
19054 | echo "configure: failed program was:" >&5 |
19055 | cat conftest.$ac_ext >&5 | |
19056 | rm -rf conftest* | |
19057 | ||
19058 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 19059 | #line 19060 "configure" |
360d6699 VZ |
19060 | #include "confdefs.h" |
19061 | ||
b4085ce6 | 19062 | #include <time.h> |
a0b9e27f MB |
19063 | |
19064 | int main() { | |
360d6699 VZ |
19065 | |
19066 | int tz; | |
19067 | tz = _timezone; | |
a0b9e27f MB |
19068 | |
19069 | ; return 0; } | |
19070 | EOF | |
db82f09e | 19071 | if { (eval echo configure:19072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19072 | rm -rf conftest* |
19073 | ||
360d6699 | 19074 | wx_cv_var_timezone=_timezone |
a0b9e27f | 19075 | |
5357c8e8 | 19076 | else |
a0b9e27f MB |
19077 | echo "configure: failed program was:" >&5 |
19078 | cat conftest.$ac_ext >&5 | |
19079 | rm -rf conftest* | |
19080 | ||
19081 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 19082 | #line 19083 "configure" |
5357c8e8 VZ |
19083 | #include "confdefs.h" |
19084 | ||
b4085ce6 | 19085 | #include <time.h> |
a0b9e27f MB |
19086 | |
19087 | int main() { | |
5357c8e8 VZ |
19088 | |
19089 | int tz; | |
4f11a343 | 19090 | tz = __timezone; |
a0b9e27f MB |
19091 | |
19092 | ; return 0; } | |
19093 | EOF | |
db82f09e | 19094 | if { (eval echo configure:19095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19095 | rm -rf conftest* |
19096 | ||
4f11a343 | 19097 | wx_cv_var_timezone=__timezone |
a0b9e27f | 19098 | |
360d6699 | 19099 | else |
a0b9e27f MB |
19100 | echo "configure: failed program was:" >&5 |
19101 | cat conftest.$ac_ext >&5 | |
19102 | rm -rf conftest* | |
19103 | ||
f9bc1684 | 19104 | if test "$USE_DOS" = 0 ; then |
a0b9e27f | 19105 | echo "configure: warning: no timezone variable" 1>&2 |
f9bc1684 | 19106 | fi |
a0b9e27f MB |
19107 | |
19108 | ||
328a083c | 19109 | fi |
a0b9e27f MB |
19110 | rm -f conftest* |
19111 | ||
19112 | ||
7b4a847f | 19113 | fi |
a0b9e27f MB |
19114 | rm -f conftest* |
19115 | ||
19116 | ||
5c6fa7d2 | 19117 | fi |
a0b9e27f MB |
19118 | rm -f conftest* |
19119 | ||
19120 | ||
247f5006 | 19121 | fi |
a0b9e27f MB |
19122 | |
19123 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 | |
698dcdb6 | 19124 | |
f9bc1684 | 19125 | if test "x$wx_cv_var_timezone" != x ; then |
a0b9e27f | 19126 | cat >> confdefs.h <<EOF |
360d6699 | 19127 | #define WX_TIMEZONE $wx_cv_var_timezone |
a0b9e27f | 19128 | EOF |
360d6699 | 19129 | |
f9bc1684 | 19130 | fi |
698dcdb6 | 19131 | |
a0b9e27f | 19132 | for ac_func in localtime |
afc31813 | 19133 | do |
a0b9e27f | 19134 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
db82f09e | 19135 | echo "configure:19136: checking for $ac_func" >&5 |
a0b9e27f MB |
19136 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19137 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19138 | else | |
19139 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 19140 | #line 19141 "configure" |
10f2d63a | 19141 | #include "confdefs.h" |
afc31813 | 19142 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 19143 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
19144 | #include <assert.h> |
19145 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19146 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19147 | builtin and then its argument prototype would still apply. */ |
19148 | char $ac_func(); | |
19149 | ||
19150 | int main() { | |
19151 | ||
afc31813 VZ |
19152 | /* The GNU C library defines this for functions which it implements |
19153 | to always fail with ENOSYS. Some functions are actually named | |
19154 | something starting with __ and the normal name is an alias. */ | |
19155 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19156 | choke me | |
19157 | #else | |
a0b9e27f | 19158 | $ac_func(); |
afc31813 VZ |
19159 | #endif |
19160 | ||
a0b9e27f MB |
19161 | ; return 0; } |
19162 | EOF | |
db82f09e | 19163 | if { (eval echo configure:19164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19164 | rm -rf conftest* |
19165 | eval "ac_cv_func_$ac_func=yes" | |
19166 | else | |
19167 | echo "configure: failed program was:" >&5 | |
19168 | cat conftest.$ac_ext >&5 | |
19169 | rm -rf conftest* | |
19170 | eval "ac_cv_func_$ac_func=no" | |
19171 | fi | |
19172 | rm -f conftest* | |
19173 | fi | |
afc31813 | 19174 | |
a0b9e27f MB |
19175 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
19176 | echo "$ac_t""yes" 1>&6 | |
19177 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19178 | cat >> confdefs.h <<EOF | |
19179 | #define $ac_tr_func 1 | |
19180 | EOF | |
19181 | ||
19182 | else | |
19183 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
19184 | fi |
19185 | done | |
19186 | ||
5c6fa7d2 | 19187 | |
8284b0c5 | 19188 | if test "$ac_cv_func_localtime" = "yes"; then |
a0b9e27f | 19189 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 |
db82f09e | 19190 | echo "configure:19191: checking for tm_gmtoff in struct tm" >&5 |
a0b9e27f MB |
19191 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
19192 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19193 | else | |
19194 | ||
19195 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 19196 | #line 19197 "configure" |
0470b1e6 VZ |
19197 | #include "confdefs.h" |
19198 | ||
b4085ce6 | 19199 | #include <time.h> |
a0b9e27f MB |
19200 | |
19201 | int main() { | |
0470b1e6 VZ |
19202 | |
19203 | struct tm tm; | |
19204 | tm.tm_gmtoff++; | |
a0b9e27f MB |
19205 | |
19206 | ; return 0; } | |
19207 | EOF | |
db82f09e | 19208 | if { (eval echo configure:19209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19209 | rm -rf conftest* |
19210 | ||
f03a98d8 | 19211 | wx_cv_struct_tm_has_gmtoff=yes |
a0b9e27f | 19212 | |
0470b1e6 | 19213 | else |
a0b9e27f MB |
19214 | echo "configure: failed program was:" >&5 |
19215 | cat conftest.$ac_ext >&5 | |
19216 | rm -rf conftest* | |
19217 | wx_cv_struct_tm_has_gmtoff=no | |
19218 | ||
5c6fa7d2 | 19219 | fi |
a0b9e27f MB |
19220 | rm -f conftest* |
19221 | ||
247f5006 | 19222 | fi |
a0b9e27f MB |
19223 | |
19224 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
19225 | fi |
19226 | ||
19227 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
a0b9e27f | 19228 | cat >> confdefs.h <<\EOF |
6232543b | 19229 | #define WX_GMTOFF_IN_TM 1 |
a0b9e27f | 19230 | EOF |
0470b1e6 | 19231 | |
3fcdd07b VZ |
19232 | fi |
19233 | ||
a0b9e27f | 19234 | for ac_func in gettimeofday ftime |
3fcdd07b | 19235 | do |
a0b9e27f | 19236 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
db82f09e | 19237 | echo "configure:19238: checking for $ac_func" >&5 |
a0b9e27f MB |
19238 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19239 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19240 | else | |
19241 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 19242 | #line 19243 "configure" |
3fcdd07b VZ |
19243 | #include "confdefs.h" |
19244 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 19245 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
19246 | #include <assert.h> |
19247 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19248 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19249 | builtin and then its argument prototype would still apply. */ |
19250 | char $ac_func(); | |
19251 | ||
19252 | int main() { | |
19253 | ||
3fcdd07b VZ |
19254 | /* The GNU C library defines this for functions which it implements |
19255 | to always fail with ENOSYS. Some functions are actually named | |
19256 | something starting with __ and the normal name is an alias. */ | |
19257 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19258 | choke me | |
19259 | #else | |
a0b9e27f | 19260 | $ac_func(); |
3fcdd07b VZ |
19261 | #endif |
19262 | ||
a0b9e27f MB |
19263 | ; return 0; } |
19264 | EOF | |
db82f09e | 19265 | if { (eval echo configure:19266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19266 | rm -rf conftest* |
19267 | eval "ac_cv_func_$ac_func=yes" | |
19268 | else | |
19269 | echo "configure: failed program was:" >&5 | |
19270 | cat conftest.$ac_ext >&5 | |
19271 | rm -rf conftest* | |
19272 | eval "ac_cv_func_$ac_func=no" | |
19273 | fi | |
19274 | rm -f conftest* | |
19275 | fi | |
19276 | ||
19277 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19278 | echo "$ac_t""yes" 1>&6 | |
19279 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19280 | cat >> confdefs.h <<EOF | |
19281 | #define $ac_tr_func 1 | |
19282 | EOF | |
3fcdd07b | 19283 | break |
a0b9e27f MB |
19284 | else |
19285 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
19286 | fi |
19287 | done | |
19288 | ||
698dcdb6 | 19289 | |
8284b0c5 | 19290 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
a0b9e27f | 19291 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 |
db82f09e | 19292 | echo "configure:19293: checking whether gettimeofday takes two arguments" >&5 |
a0b9e27f MB |
19293 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
19294 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19295 | else | |
19296 | ||
19297 | ||
19298 | ac_ext=C | |
19299 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 19300 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
19301 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
19302 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
19303 | cross_compiling=$ac_cv_prog_cxx_cross | |
52127426 | 19304 | |
8284b0c5 | 19305 | |
a0b9e27f | 19306 | cat > conftest.$ac_ext <<EOF |
db82f09e | 19307 | #line 19308 "configure" |
10f2d63a | 19308 | #include "confdefs.h" |
afc31813 VZ |
19309 | |
19310 | #include <sys/time.h> | |
19311 | #include <unistd.h> | |
a0b9e27f MB |
19312 | |
19313 | int main() { | |
afc31813 VZ |
19314 | |
19315 | struct timeval tv; | |
776862b4 | 19316 | gettimeofday(&tv, NULL); |
a0b9e27f MB |
19317 | |
19318 | ; return 0; } | |
19319 | EOF | |
db82f09e | 19320 | if { (eval echo configure:19321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 19321 | rm -rf conftest* |
afc31813 | 19322 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 19323 | else |
a0b9e27f MB |
19324 | echo "configure: failed program was:" >&5 |
19325 | cat conftest.$ac_ext >&5 | |
19326 | rm -rf conftest* | |
19327 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 19328 | #line 19329 "configure" |
10f2d63a | 19329 | #include "confdefs.h" |
afc31813 VZ |
19330 | |
19331 | #include <sys/time.h> | |
19332 | #include <unistd.h> | |
a0b9e27f MB |
19333 | |
19334 | int main() { | |
afc31813 VZ |
19335 | |
19336 | struct timeval tv; | |
19337 | gettimeofday(&tv); | |
a0b9e27f MB |
19338 | |
19339 | ; return 0; } | |
19340 | EOF | |
db82f09e | 19341 | if { (eval echo configure:19342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 19342 | rm -rf conftest* |
afc31813 | 19343 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 19344 | else |
a0b9e27f MB |
19345 | echo "configure: failed program was:" >&5 |
19346 | cat conftest.$ac_ext >&5 | |
19347 | rm -rf conftest* | |
19348 | ||
19349 | echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2 | |
776862b4 | 19350 | wx_cv_func_gettimeofday_has_2_args=unknown |
a0b9e27f MB |
19351 | |
19352 | ||
10f2d63a | 19353 | fi |
a0b9e27f MB |
19354 | rm -f conftest* |
19355 | ||
10f2d63a | 19356 | fi |
a0b9e27f | 19357 | rm -f conftest* |
afc31813 | 19358 | ac_ext=c |
a0b9e27f | 19359 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 19360 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
19361 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
19362 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
19363 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 19364 | |
a0b9e27f | 19365 | |
247f5006 | 19366 | fi |
a0b9e27f MB |
19367 | |
19368 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 19369 | |
afc31813 | 19370 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
a0b9e27f | 19371 | cat >> confdefs.h <<\EOF |
afc31813 | 19372 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
a0b9e27f | 19373 | EOF |
afc31813 VZ |
19374 | |
19375 | fi | |
19376 | fi | |
19377 | ||
a0b9e27f | 19378 | cat >> confdefs.h <<\EOF |
afc31813 | 19379 | #define wxUSE_TIMEDATE 1 |
a0b9e27f | 19380 | EOF |
afc31813 VZ |
19381 | |
19382 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
19383 | fi | |
19384 | ||
8284b0c5 | 19385 | |
52127426 | 19386 | if test "$wxUSE_SOCKETS" = "yes"; then |
6c657b52 | 19387 | if test "$wxUSE_MGL" = "1"; then |
a0b9e27f | 19388 | echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
19389 | wxUSE_SOCKETS="no" |
19390 | fi | |
0feee163 | 19391 | fi |
b089607b | 19392 | |
0feee163 VZ |
19393 | if test "$wxUSE_SOCKETS" = "yes"; then |
19394 | if test "$TOOLKIT" != "MSW"; then | |
a0b9e27f | 19395 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
db82f09e | 19396 | echo "configure:19397: checking for socket" >&5 |
a0b9e27f MB |
19397 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
19398 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 19399 | else |
a0b9e27f | 19400 | cat > conftest.$ac_ext <<EOF |
db82f09e | 19401 | #line 19402 "configure" |
c63c7106 VZ |
19402 | #include "confdefs.h" |
19403 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 19404 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
19405 | #include <assert.h> |
19406 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19407 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19408 | builtin and then its argument prototype would still apply. */ |
19409 | char socket(); | |
19410 | ||
19411 | int main() { | |
19412 | ||
c63c7106 VZ |
19413 | /* The GNU C library defines this for functions which it implements |
19414 | to always fail with ENOSYS. Some functions are actually named | |
19415 | something starting with __ and the normal name is an alias. */ | |
19416 | #if defined (__stub_socket) || defined (__stub___socket) | |
19417 | choke me | |
19418 | #else | |
a0b9e27f | 19419 | socket(); |
c63c7106 VZ |
19420 | #endif |
19421 | ||
a0b9e27f MB |
19422 | ; return 0; } |
19423 | EOF | |
db82f09e | 19424 | if { (eval echo configure:19425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19425 | rm -rf conftest* |
19426 | eval "ac_cv_func_socket=yes" | |
19427 | else | |
19428 | echo "configure: failed program was:" >&5 | |
19429 | cat conftest.$ac_ext >&5 | |
19430 | rm -rf conftest* | |
19431 | eval "ac_cv_func_socket=no" | |
19432 | fi | |
19433 | rm -f conftest* | |
19434 | fi | |
19435 | ||
19436 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
19437 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
19438 | : |
19439 | else | |
a0b9e27f MB |
19440 | echo "$ac_t""no" 1>&6 |
19441 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
db82f09e | 19442 | echo "configure:19443: checking for socket in -lsocket" >&5 |
a0b9e27f MB |
19443 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
19444 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19445 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 19446 | else |
a0b9e27f | 19447 | ac_save_LIBS="$LIBS" |
c63c7106 | 19448 | LIBS="-lsocket $LIBS" |
a0b9e27f | 19449 | cat > conftest.$ac_ext <<EOF |
db82f09e | 19450 | #line 19451 "configure" |
c63c7106 VZ |
19451 | #include "confdefs.h" |
19452 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19453 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19454 | builtin and then its argument prototype would still apply. */ |
19455 | char socket(); | |
19456 | ||
19457 | int main() { | |
19458 | socket() | |
19459 | ; return 0; } | |
19460 | EOF | |
db82f09e | 19461 | if { (eval echo configure:19462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19462 | rm -rf conftest* |
19463 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19464 | else | |
19465 | echo "configure: failed program was:" >&5 | |
19466 | cat conftest.$ac_ext >&5 | |
19467 | rm -rf conftest* | |
19468 | eval "ac_cv_lib_$ac_lib_var=no" | |
19469 | fi | |
19470 | rm -f conftest* | |
19471 | LIBS="$ac_save_LIBS" | |
19472 | ||
19473 | fi | |
19474 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19475 | echo "$ac_t""yes" 1>&6 | |
d558c907 VS |
19476 | if test "$INET_LINK" != " -lsocket"; then |
19477 | INET_LINK="$INET_LINK -lsocket" | |
19478 | fi | |
c63c7106 | 19479 | else |
a0b9e27f | 19480 | echo "$ac_t""no" 1>&6 |
afc31813 | 19481 | |
a0b9e27f | 19482 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
3a922bb4 | 19483 | wxUSE_SOCKETS=no |
a0b9e27f MB |
19484 | |
19485 | ||
6232543b | 19486 | fi |
b089607b | 19487 | |
a0b9e27f | 19488 | |
1e487827 | 19489 | fi |
afc31813 | 19490 | |
3a922bb4 | 19491 | fi |
0feee163 | 19492 | fi |
51a9faba | 19493 | |
0feee163 VZ |
19494 | if test "$wxUSE_SOCKETS" = "yes" ; then |
19495 | if test "$TOOLKIT" != "MSW"; then | |
a0b9e27f | 19496 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 |
db82f09e | 19497 | echo "configure:19498: checking what is the type of the third argument of getsockname" >&5 |
a0b9e27f MB |
19498 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
19499 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19500 | else | |
19501 | ||
19502 | ||
19503 | ac_ext=C | |
19504 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 19505 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
19506 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
19507 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
19508 | cross_compiling=$ac_cv_prog_cxx_cross | |
698dcdb6 | 19509 | |
8284b0c5 | 19510 | |
a0b9e27f | 19511 | cat > conftest.$ac_ext <<EOF |
db82f09e | 19512 | #line 19513 "configure" |
afc31813 | 19513 | #include "confdefs.h" |
51a9faba | 19514 | |
3a922bb4 RL |
19515 | #include <sys/types.h> |
19516 | #include <sys/socket.h> | |
a0b9e27f MB |
19517 | |
19518 | int main() { | |
51a9faba | 19519 | |
3a922bb4 RL |
19520 | socklen_t len; |
19521 | getsockname(0, 0, &len); | |
a0b9e27f MB |
19522 | |
19523 | ; return 0; } | |
19524 | EOF | |
db82f09e | 19525 | if { (eval echo configure:19526: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 19526 | rm -rf conftest* |
51a9faba | 19527 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 19528 | else |
a0b9e27f MB |
19529 | echo "configure: failed program was:" >&5 |
19530 | cat conftest.$ac_ext >&5 | |
19531 | rm -rf conftest* | |
19532 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 19533 | #line 19534 "configure" |
afc31813 | 19534 | #include "confdefs.h" |
51a9faba | 19535 | |
3a922bb4 RL |
19536 | #include <sys/types.h> |
19537 | #include <sys/socket.h> | |
a0b9e27f MB |
19538 | |
19539 | int main() { | |
51a9faba | 19540 | |
3a922bb4 RL |
19541 | size_t len; |
19542 | getsockname(0, 0, &len); | |
a0b9e27f MB |
19543 | |
19544 | ; return 0; } | |
19545 | EOF | |
db82f09e | 19546 | if { (eval echo configure:19547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 19547 | rm -rf conftest* |
51a9faba | 19548 | wx_cv_type_getsockname3=size_t |
afc31813 | 19549 | else |
a0b9e27f MB |
19550 | echo "configure: failed program was:" >&5 |
19551 | cat conftest.$ac_ext >&5 | |
19552 | rm -rf conftest* | |
19553 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 19554 | #line 19555 "configure" |
afc31813 | 19555 | #include "confdefs.h" |
51a9faba | 19556 | |
3a922bb4 RL |
19557 | #include <sys/types.h> |
19558 | #include <sys/socket.h> | |
a0b9e27f MB |
19559 | |
19560 | int main() { | |
51a9faba | 19561 | |
3a922bb4 RL |
19562 | int len; |
19563 | getsockname(0, 0, &len); | |
a0b9e27f MB |
19564 | |
19565 | ; return 0; } | |
19566 | EOF | |
db82f09e | 19567 | if { (eval echo configure:19568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 19568 | rm -rf conftest* |
51a9faba | 19569 | wx_cv_type_getsockname3=int |
afc31813 | 19570 | else |
a0b9e27f MB |
19571 | echo "configure: failed program was:" >&5 |
19572 | cat conftest.$ac_ext >&5 | |
19573 | rm -rf conftest* | |
19574 | wx_cv_type_getsockname3=unknown | |
19575 | ||
afc31813 | 19576 | fi |
a0b9e27f MB |
19577 | rm -f conftest* |
19578 | ||
afc31813 | 19579 | fi |
a0b9e27f MB |
19580 | rm -f conftest* |
19581 | ||
afc31813 | 19582 | fi |
a0b9e27f | 19583 | rm -f conftest* |
51a9faba | 19584 | |
3a922bb4 | 19585 | ac_ext=c |
a0b9e27f | 19586 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 19587 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
19588 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
19589 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
19590 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 19591 | |
a0b9e27f | 19592 | |
247f5006 | 19593 | fi |
a0b9e27f MB |
19594 | |
19595 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba | 19596 | |
3a922bb4 RL |
19597 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
19598 | wxUSE_SOCKETS=no | |
a0b9e27f | 19599 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 |
3a922bb4 | 19600 | else |
a0b9e27f | 19601 | cat >> confdefs.h <<EOF |
51a9faba | 19602 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
a0b9e27f | 19603 | EOF |
51a9faba | 19604 | |
3a922bb4 | 19605 | fi |
51a9faba VZ |
19606 | fi |
19607 | fi | |
afc31813 | 19608 | |
51a9faba | 19609 | if test "$wxUSE_SOCKETS" = "yes" ; then |
a0b9e27f | 19610 | cat >> confdefs.h <<\EOF |
afc31813 | 19611 | #define wxUSE_SOCKETS 1 |
a0b9e27f | 19612 | EOF |
afc31813 | 19613 | |
70f7a477 | 19614 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
19615 | fi |
19616 | ||
8284b0c5 | 19617 | |
dc3d889d VZ |
19618 | if test "$wxUSE_GUI" = "yes"; then |
19619 | ||
156b2523 | 19620 | if test "$TOOLKIT" = "MAC"; then |
a0b9e27f | 19621 | echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2 |
156b2523 GD |
19622 | wxUSE_JOYSTICK=no |
19623 | fi | |
19624 | if test "$TOOLKIT" = "MOTIF"; then | |
a0b9e27f | 19625 | echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2 |
156b2523 | 19626 | wxUSE_JOYSTICK=no |
f79bd02d JS |
19627 | fi |
19628 | if test "$TOOLKIT" = "X11"; then | |
a0b9e27f | 19629 | echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2 |
f79bd02d | 19630 | wxUSE_JOYSTICK=no |
156b2523 GD |
19631 | fi |
19632 | ||
3a922bb4 RL |
19633 | if test "$TOOLKIT" != "MSW"; then |
19634 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
a0b9e27f | 19635 | for ac_hdr in linux/joystick.h |
10f2d63a | 19636 | do |
a0b9e27f MB |
19637 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
19638 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
db82f09e | 19639 | echo "configure:19640: checking for $ac_hdr" >&5 |
a0b9e27f MB |
19640 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
19641 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19642 | else | |
19643 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 19644 | #line 19645 "configure" |
247f5006 | 19645 | #include "confdefs.h" |
a0b9e27f MB |
19646 | #include <$ac_hdr> |
19647 | EOF | |
19648 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
db82f09e | 19649 | { (eval echo configure:19650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
19650 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
19651 | if test -z "$ac_err"; then | |
19652 | rm -rf conftest* | |
19653 | eval "ac_cv_header_$ac_safe=yes" | |
19654 | else | |
19655 | echo "$ac_err" >&5 | |
19656 | echo "configure: failed program was:" >&5 | |
247f5006 | 19657 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
19658 | rm -rf conftest* |
19659 | eval "ac_cv_header_$ac_safe=no" | |
247f5006 | 19660 | fi |
a0b9e27f | 19661 | rm -f conftest* |
10f2d63a | 19662 | fi |
a0b9e27f MB |
19663 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
19664 | echo "$ac_t""yes" 1>&6 | |
19665 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
19666 | cat >> confdefs.h <<EOF | |
19667 | #define $ac_tr_hdr 1 | |
19668 | EOF | |
19669 | ||
19670 | else | |
19671 | echo "$ac_t""no" 1>&6 | |
247f5006 | 19672 | fi |
10f2d63a VZ |
19673 | done |
19674 | ||
3a922bb4 RL |
19675 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
19676 | wxUSE_JOYSTICK=no | |
a0b9e27f | 19677 | echo "configure: warning: Joystick not supported by this system... disabled" 1>&2 |
3a922bb4 RL |
19678 | fi |
19679 | fi | |
19680 | fi | |
b089607b | 19681 | |
3a922bb4 | 19682 | if test "$wxUSE_JOYSTICK" = "yes"; then |
a0b9e27f | 19683 | cat >> confdefs.h <<\EOF |
10f2d63a | 19684 | #define wxUSE_JOYSTICK 1 |
a0b9e27f | 19685 | EOF |
10f2d63a | 19686 | |
3a922bb4 RL |
19687 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
19688 | fi | |
dc3d889d VZ |
19689 | fi |
19690 | ||
8284b0c5 | 19691 | |
b089607b VZ |
19692 | if test "$TOOLKIT" != "MSW"; then |
19693 | ||
3a922bb4 RL |
19694 | HAVE_DL_FUNCS=0 |
19695 | HAVE_SHL_FUNCS=0 | |
0b9ab0bd | 19696 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
3a922bb4 RL |
19697 | if test "$USE_DARWIN" = 1; then |
19698 | HAVE_DL_FUNCS=1 | |
19699 | else | |
a0b9e27f | 19700 | for ac_func in dlopen |
10f2d63a | 19701 | do |
a0b9e27f | 19702 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
db82f09e | 19703 | echo "configure:19704: checking for $ac_func" >&5 |
a0b9e27f MB |
19704 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19705 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19706 | else | |
19707 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 19708 | #line 19709 "configure" |
10f2d63a VZ |
19709 | #include "confdefs.h" |
19710 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 19711 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
19712 | #include <assert.h> |
19713 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19714 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19715 | builtin and then its argument prototype would still apply. */ |
19716 | char $ac_func(); | |
19717 | ||
19718 | int main() { | |
19719 | ||
10f2d63a VZ |
19720 | /* The GNU C library defines this for functions which it implements |
19721 | to always fail with ENOSYS. Some functions are actually named | |
19722 | something starting with __ and the normal name is an alias. */ | |
19723 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19724 | choke me | |
19725 | #else | |
a0b9e27f | 19726 | $ac_func(); |
10f2d63a VZ |
19727 | #endif |
19728 | ||
a0b9e27f MB |
19729 | ; return 0; } |
19730 | EOF | |
db82f09e | 19731 | if { (eval echo configure:19732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19732 | rm -rf conftest* |
19733 | eval "ac_cv_func_$ac_func=yes" | |
19734 | else | |
19735 | echo "configure: failed program was:" >&5 | |
19736 | cat conftest.$ac_ext >&5 | |
19737 | rm -rf conftest* | |
19738 | eval "ac_cv_func_$ac_func=no" | |
19739 | fi | |
19740 | rm -f conftest* | |
19741 | fi | |
19742 | ||
19743 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19744 | echo "$ac_t""yes" 1>&6 | |
19745 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19746 | cat >> confdefs.h <<EOF | |
19747 | #define $ac_tr_func 1 | |
19748 | EOF | |
19749 | ||
19750 | cat >> confdefs.h <<\EOF | |
10f2d63a | 19751 | #define HAVE_DLOPEN 1 |
a0b9e27f | 19752 | EOF |
10f2d63a | 19753 | |
3a922bb4 | 19754 | HAVE_DL_FUNCS=1 |
a0b9e27f | 19755 | |
10f2d63a | 19756 | else |
a0b9e27f MB |
19757 | echo "$ac_t""no" 1>&6 |
19758 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
db82f09e | 19759 | echo "configure:19760: checking for dlopen in -ldl" >&5 |
a0b9e27f MB |
19760 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
19761 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19762 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 19763 | else |
a0b9e27f | 19764 | ac_save_LIBS="$LIBS" |
10f2d63a | 19765 | LIBS="-ldl $LIBS" |
a0b9e27f | 19766 | cat > conftest.$ac_ext <<EOF |
db82f09e | 19767 | #line 19768 "configure" |
10f2d63a VZ |
19768 | #include "confdefs.h" |
19769 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19770 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19771 | builtin and then its argument prototype would still apply. */ |
19772 | char dlopen(); | |
19773 | ||
19774 | int main() { | |
19775 | dlopen() | |
19776 | ; return 0; } | |
19777 | EOF | |
db82f09e | 19778 | if { (eval echo configure:19779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19779 | rm -rf conftest* |
19780 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19781 | else | |
19782 | echo "configure: failed program was:" >&5 | |
19783 | cat conftest.$ac_ext >&5 | |
19784 | rm -rf conftest* | |
19785 | eval "ac_cv_lib_$ac_lib_var=no" | |
19786 | fi | |
19787 | rm -f conftest* | |
19788 | LIBS="$ac_save_LIBS" | |
19789 | ||
19790 | fi | |
19791 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19792 | echo "$ac_t""yes" 1>&6 | |
19793 | ||
19794 | cat >> confdefs.h <<\EOF | |
10f2d63a | 19795 | #define HAVE_DLOPEN 1 |
a0b9e27f | 19796 | EOF |
10f2d63a | 19797 | |
3a922bb4 | 19798 | HAVE_DL_FUNCS=1 |
3d63bc3a | 19799 | DL_LINK=" -ldl$DL_LINK" |
a0b9e27f | 19800 | |
10f2d63a | 19801 | else |
a0b9e27f | 19802 | echo "$ac_t""no" 1>&6 |
10f2d63a | 19803 | |
a0b9e27f | 19804 | for ac_func in shl_load |
10f2d63a | 19805 | do |
a0b9e27f | 19806 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
db82f09e | 19807 | echo "configure:19808: checking for $ac_func" >&5 |
a0b9e27f MB |
19808 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19809 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19810 | else | |
19811 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 19812 | #line 19813 "configure" |
10f2d63a VZ |
19813 | #include "confdefs.h" |
19814 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 19815 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
19816 | #include <assert.h> |
19817 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19818 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19819 | builtin and then its argument prototype would still apply. */ |
19820 | char $ac_func(); | |
19821 | ||
19822 | int main() { | |
19823 | ||
10f2d63a VZ |
19824 | /* The GNU C library defines this for functions which it implements |
19825 | to always fail with ENOSYS. Some functions are actually named | |
19826 | something starting with __ and the normal name is an alias. */ | |
19827 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19828 | choke me | |
19829 | #else | |
a0b9e27f | 19830 | $ac_func(); |
10f2d63a VZ |
19831 | #endif |
19832 | ||
a0b9e27f MB |
19833 | ; return 0; } |
19834 | EOF | |
db82f09e | 19835 | if { (eval echo configure:19836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19836 | rm -rf conftest* |
19837 | eval "ac_cv_func_$ac_func=yes" | |
19838 | else | |
19839 | echo "configure: failed program was:" >&5 | |
19840 | cat conftest.$ac_ext >&5 | |
19841 | rm -rf conftest* | |
19842 | eval "ac_cv_func_$ac_func=no" | |
19843 | fi | |
19844 | rm -f conftest* | |
19845 | fi | |
19846 | ||
19847 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19848 | echo "$ac_t""yes" 1>&6 | |
19849 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19850 | cat >> confdefs.h <<EOF | |
19851 | #define $ac_tr_func 1 | |
19852 | EOF | |
19853 | ||
19854 | cat >> confdefs.h <<\EOF | |
10f2d63a | 19855 | #define HAVE_SHL_LOAD 1 |
a0b9e27f | 19856 | EOF |
10f2d63a | 19857 | |
3a922bb4 | 19858 | HAVE_SHL_FUNCS=1 |
a0b9e27f | 19859 | |
10f2d63a | 19860 | else |
a0b9e27f MB |
19861 | echo "$ac_t""no" 1>&6 |
19862 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
db82f09e | 19863 | echo "configure:19864: checking for dld in -lshl_load" >&5 |
a0b9e27f MB |
19864 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
19865 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19866 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 19867 | else |
a0b9e27f | 19868 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 19869 | LIBS="-lshl_load $LIBS" |
a0b9e27f | 19870 | cat > conftest.$ac_ext <<EOF |
db82f09e | 19871 | #line 19872 "configure" |
f6bcfd97 | 19872 | #include "confdefs.h" |
8284b0c5 | 19873 | /* Override any gcc2 internal prototype to avoid an error. */ |
f6bcfd97 | 19874 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
19875 | builtin and then its argument prototype would still apply. */ |
19876 | char dld(); | |
19877 | ||
19878 | int main() { | |
19879 | dld() | |
19880 | ; return 0; } | |
19881 | EOF | |
db82f09e | 19882 | if { (eval echo configure:19883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19883 | rm -rf conftest* |
19884 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19885 | else | |
19886 | echo "configure: failed program was:" >&5 | |
19887 | cat conftest.$ac_ext >&5 | |
19888 | rm -rf conftest* | |
19889 | eval "ac_cv_lib_$ac_lib_var=no" | |
19890 | fi | |
19891 | rm -f conftest* | |
19892 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 19893 | |
a0b9e27f MB |
19894 | fi |
19895 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19896 | echo "$ac_t""yes" 1>&6 | |
19897 | ||
3a922bb4 | 19898 | HAVE_SHL_FUNCS=1 |
3d63bc3a | 19899 | DL_LINK=" -ldld$DL_LINK" |
a0b9e27f MB |
19900 | |
19901 | else | |
19902 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
19903 | fi |
19904 | ||
a0b9e27f | 19905 | |
10f2d63a VZ |
19906 | fi |
19907 | done | |
19908 | ||
a0b9e27f | 19909 | |
10f2d63a VZ |
19910 | fi |
19911 | ||
a0b9e27f | 19912 | |
10f2d63a VZ |
19913 | fi |
19914 | done | |
19915 | ||
5c6fa7d2 | 19916 | |
8284b0c5 | 19917 | if test "$HAVE_DL_FUNCS" = 1; then |
a0b9e27f | 19918 | for ac_func in dlerror |
f6bcfd97 | 19919 | do |
a0b9e27f | 19920 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
db82f09e | 19921 | echo "configure:19922: checking for $ac_func" >&5 |
a0b9e27f MB |
19922 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19923 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19924 | else | |
19925 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 19926 | #line 19927 "configure" |
f6bcfd97 BP |
19927 | #include "confdefs.h" |
19928 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 19929 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
19930 | #include <assert.h> |
19931 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19932 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19933 | builtin and then its argument prototype would still apply. */ |
19934 | char $ac_func(); | |
19935 | ||
19936 | int main() { | |
19937 | ||
f6bcfd97 BP |
19938 | /* The GNU C library defines this for functions which it implements |
19939 | to always fail with ENOSYS. Some functions are actually named | |
19940 | something starting with __ and the normal name is an alias. */ | |
19941 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19942 | choke me | |
19943 | #else | |
a0b9e27f | 19944 | $ac_func(); |
f6bcfd97 BP |
19945 | #endif |
19946 | ||
a0b9e27f MB |
19947 | ; return 0; } |
19948 | EOF | |
db82f09e | 19949 | if { (eval echo configure:19950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19950 | rm -rf conftest* |
19951 | eval "ac_cv_func_$ac_func=yes" | |
19952 | else | |
19953 | echo "configure: failed program was:" >&5 | |
19954 | cat conftest.$ac_ext >&5 | |
19955 | rm -rf conftest* | |
19956 | eval "ac_cv_func_$ac_func=no" | |
19957 | fi | |
19958 | rm -f conftest* | |
19959 | fi | |
19960 | ||
19961 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19962 | echo "$ac_t""yes" 1>&6 | |
19963 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19964 | cat >> confdefs.h <<EOF | |
19965 | #define $ac_tr_func 1 | |
19966 | EOF | |
19967 | cat >> confdefs.h <<\EOF | |
f6bcfd97 | 19968 | #define HAVE_DLERROR 1 |
a0b9e27f | 19969 | EOF |
f6bcfd97 BP |
19970 | |
19971 | else | |
a0b9e27f MB |
19972 | echo "$ac_t""no" 1>&6 |
19973 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
db82f09e | 19974 | echo "configure:19975: checking for dlerror in -ldl" >&5 |
a0b9e27f MB |
19975 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
19976 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19977 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 19978 | else |
a0b9e27f | 19979 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 19980 | LIBS="-ldl $LIBS" |
a0b9e27f | 19981 | cat > conftest.$ac_ext <<EOF |
db82f09e | 19982 | #line 19983 "configure" |
f6bcfd97 BP |
19983 | #include "confdefs.h" |
19984 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19985 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19986 | builtin and then its argument prototype would still apply. */ |
19987 | char dlerror(); | |
19988 | ||
19989 | int main() { | |
19990 | dlerror() | |
19991 | ; return 0; } | |
19992 | EOF | |
db82f09e | 19993 | if { (eval echo configure:19994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19994 | rm -rf conftest* |
19995 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19996 | else | |
19997 | echo "configure: failed program was:" >&5 | |
19998 | cat conftest.$ac_ext >&5 | |
19999 | rm -rf conftest* | |
20000 | eval "ac_cv_lib_$ac_lib_var=no" | |
20001 | fi | |
20002 | rm -f conftest* | |
20003 | LIBS="$ac_save_LIBS" | |
20004 | ||
20005 | fi | |
20006 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20007 | echo "$ac_t""yes" 1>&6 | |
20008 | cat >> confdefs.h <<\EOF | |
f6bcfd97 | 20009 | #define HAVE_DLERROR 1 |
a0b9e27f | 20010 | EOF |
f6bcfd97 | 20011 | |
a0b9e27f MB |
20012 | else |
20013 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
20014 | fi |
20015 | ||
20016 | fi | |
20017 | done | |
20018 | ||
3a922bb4 RL |
20019 | fi |
20020 | fi | |
f6bcfd97 | 20021 | |
3a922bb4 RL |
20022 | if test "$HAVE_DL_FUNCS" = 0; then |
20023 | if test "$HAVE_SHL_FUNCS" = 0; then | |
20024 | if test "$USE_UNIX" = 1; then | |
a0b9e27f | 20025 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 |
0b9ab0bd | 20026 | wxUSE_DYNAMIC_LOADER=no |
3a922bb4 RL |
20027 | wxUSE_DYNLIB_CLASS=no |
20028 | else | |
a0b9e27f | 20029 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 |
3a922bb4 RL |
20030 | fi |
20031 | fi | |
10f2d63a VZ |
20032 | fi |
20033 | fi | |
20034 | fi | |
20035 | ||
0b9ab0bd | 20036 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then |
a0b9e27f | 20037 | cat >> confdefs.h <<\EOF |
0b9ab0bd | 20038 | #define wxUSE_DYNAMIC_LOADER 1 |
a0b9e27f | 20039 | EOF |
0b9ab0bd RL |
20040 | |
20041 | elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
a0b9e27f | 20042 | cat >> confdefs.h <<\EOF |
10f2d63a | 20043 | #define wxUSE_DYNLIB_CLASS 1 |
a0b9e27f | 20044 | EOF |
10f2d63a VZ |
20045 | |
20046 | fi | |
20047 | ||
8284b0c5 | 20048 | |
1e6feb95 | 20049 | if test "$wxUSE_FONTMAP" = "yes" ; then |
a0b9e27f | 20050 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20051 | #define wxUSE_FONTMAP 1 |
a0b9e27f | 20052 | EOF |
1e6feb95 VZ |
20053 | |
20054 | fi | |
20055 | ||
10f2d63a | 20056 | if test "$wxUSE_UNICODE" = "yes" ; then |
a0b9e27f | 20057 | cat >> confdefs.h <<\EOF |
10f2d63a | 20058 | #define wxUSE_UNICODE 1 |
a0b9e27f | 20059 | EOF |
10f2d63a | 20060 | |
8284b0c5 | 20061 | |
bbc3925a VS |
20062 | if test "$wxUSE_MSW" != 1; then |
20063 | wxUSE_UNICODE_MSLU=no | |
20064 | fi | |
a72a4bfa VS |
20065 | |
20066 | if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
a0b9e27f | 20067 | echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6 |
db82f09e | 20068 | echo "configure:20069: checking for main in -lunicows" >&5 |
a0b9e27f MB |
20069 | ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'` |
20070 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20071 | echo $ac_n "(cached) $ac_c" 1>&6 | |
a72a4bfa | 20072 | else |
a0b9e27f | 20073 | ac_save_LIBS="$LIBS" |
a72a4bfa | 20074 | LIBS="-lunicows $LIBS" |
a0b9e27f | 20075 | cat > conftest.$ac_ext <<EOF |
db82f09e | 20076 | #line 20077 "configure" |
a72a4bfa VS |
20077 | #include "confdefs.h" |
20078 | ||
a0b9e27f MB |
20079 | int main() { |
20080 | main() | |
20081 | ; return 0; } | |
20082 | EOF | |
db82f09e | 20083 | if { (eval echo configure:20084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20084 | rm -rf conftest* |
20085 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20086 | else | |
20087 | echo "configure: failed program was:" >&5 | |
20088 | cat conftest.$ac_ext >&5 | |
20089 | rm -rf conftest* | |
20090 | eval "ac_cv_lib_$ac_lib_var=no" | |
20091 | fi | |
20092 | rm -f conftest* | |
20093 | LIBS="$ac_save_LIBS" | |
8284b0c5 | 20094 | |
a0b9e27f MB |
20095 | fi |
20096 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20097 | echo "$ac_t""yes" 1>&6 | |
20098 | ||
20099 | cat >> confdefs.h <<\EOF | |
a72a4bfa | 20100 | #define wxUSE_UNICODE_MSLU 1 |
a0b9e27f | 20101 | EOF |
a72a4bfa | 20102 | |
a0b9e27f | 20103 | |
a72a4bfa | 20104 | else |
a0b9e27f | 20105 | echo "$ac_t""no" 1>&6 |
a72a4bfa | 20106 | |
a0b9e27f MB |
20107 | echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled. |
20108 | Applications will only run on Windows NT/2000/XP!" 1>&2 | |
a72a4bfa | 20109 | wxUSE_UNICODE_MSLU=no |
a0b9e27f | 20110 | |
a72a4bfa VS |
20111 | fi |
20112 | ||
20113 | fi | |
10f2d63a VZ |
20114 | fi |
20115 | ||
10f2d63a | 20116 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
a0b9e27f | 20117 | cat >> confdefs.h <<\EOF |
10f2d63a | 20118 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
a0b9e27f | 20119 | EOF |
10f2d63a VZ |
20120 | |
20121 | fi | |
20122 | ||
8284b0c5 MB |
20123 | |
20124 | ||
10f2d63a VZ |
20125 | IODBC_C_SRC="" |
20126 | if test "$wxUSE_ODBC" = "yes" ; then | |
a0b9e27f | 20127 | cat >> confdefs.h <<\EOF |
10f2d63a | 20128 | #define wxUSE_ODBC 1 |
a0b9e27f | 20129 | EOF |
10f2d63a VZ |
20130 | |
20131 | WXODBCFLAG="-D_IODBC_" | |
20132 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
20133 | fi |
20134 | ||
8284b0c5 | 20135 | |
10f2d63a | 20136 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
a0b9e27f | 20137 | cat >> confdefs.h <<\EOF |
10f2d63a | 20138 | #define wxUSE_POSTSCRIPT 1 |
a0b9e27f | 20139 | EOF |
10f2d63a VZ |
20140 | |
20141 | fi | |
20142 | ||
a0b9e27f | 20143 | cat >> confdefs.h <<\EOF |
10f2d63a | 20144 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
a0b9e27f | 20145 | EOF |
10f2d63a | 20146 | |
8284b0c5 | 20147 | |
a0b9e27f | 20148 | cat >> confdefs.h <<\EOF |
10f2d63a | 20149 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
a0b9e27f | 20150 | EOF |
10f2d63a | 20151 | |
8284b0c5 MB |
20152 | |
20153 | ||
10f2d63a | 20154 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
a0b9e27f | 20155 | cat >> confdefs.h <<\EOF |
10f2d63a | 20156 | #define wxUSE_CONSTRAINTS 1 |
a0b9e27f | 20157 | EOF |
10f2d63a VZ |
20158 | |
20159 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
20160 | fi | |
20161 | ||
20162 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
fc26f4ab | 20163 | |
8284b0c5 | 20164 | |
bb811f17 | 20165 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then |
a0b9e27f | 20166 | cat >> confdefs.h <<\EOF |
10f2d63a | 20167 | #define wxUSE_MDI_ARCHITECTURE 1 |
a0b9e27f | 20168 | EOF |
10f2d63a | 20169 | |
bb811f17 JS |
20170 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
20171 | fi | |
10f2d63a VZ |
20172 | fi |
20173 | ||
20174 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
a0b9e27f | 20175 | cat >> confdefs.h <<\EOF |
10f2d63a | 20176 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
a0b9e27f | 20177 | EOF |
10f2d63a VZ |
20178 | |
20179 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
20180 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
20181 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
20182 | fi | |
20183 | fi | |
20184 | ||
20185 | if test "$wxUSE_HELP" = "yes"; then | |
a0b9e27f | 20186 | cat >> confdefs.h <<\EOF |
10f2d63a | 20187 | #define wxUSE_HELP 1 |
a0b9e27f | 20188 | EOF |
10f2d63a VZ |
20189 | |
20190 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 20191 | |
77e13408 | 20192 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 20193 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
a0b9e27f | 20194 | cat >> confdefs.h <<\EOF |
29fd3c0c | 20195 | #define wxUSE_MS_HTML_HELP 1 |
a0b9e27f | 20196 | EOF |
29fd3c0c | 20197 | |
3e44f09d | 20198 | fi |
3379ed37 | 20199 | fi |
031d8228 VS |
20200 | |
20201 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
20202 | if test "$wxUSE_HTML" = "yes"; then | |
a0b9e27f | 20203 | cat >> confdefs.h <<\EOF |
031d8228 | 20204 | #define wxUSE_WXHTML_HELP 1 |
a0b9e27f | 20205 | EOF |
031d8228 VS |
20206 | |
20207 | else | |
a0b9e27f | 20208 | echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2 |
031d8228 VS |
20209 | wxUSE_WXHTML_HELP=no |
20210 | fi | |
20211 | fi | |
10f2d63a VZ |
20212 | fi |
20213 | ||
20214 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
20215 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
a0b9e27f | 20216 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 20217 | else |
a0b9e27f | 20218 | cat >> confdefs.h <<\EOF |
10f2d63a | 20219 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
a0b9e27f | 20220 | EOF |
10f2d63a VZ |
20221 | |
20222 | fi | |
20223 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
20224 | fi | |
20225 | ||
20226 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
a0b9e27f | 20227 | cat >> confdefs.h <<\EOF |
10f2d63a | 20228 | #define wxUSE_PROLOGIO 1 |
a0b9e27f | 20229 | EOF |
10f2d63a VZ |
20230 | |
20231 | fi | |
20232 | ||
20233 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
e334d0ea | 20234 | if test "$wxUSE_NANOX" = "yes"; then |
a0b9e27f | 20235 | echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2 |
e334d0ea | 20236 | else |
a0b9e27f | 20237 | cat >> confdefs.h <<\EOF |
10f2d63a | 20238 | #define wxUSE_RESOURCES 1 |
a0b9e27f | 20239 | EOF |
10f2d63a | 20240 | |
e334d0ea JS |
20241 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" |
20242 | fi | |
10f2d63a VZ |
20243 | fi |
20244 | ||
20245 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
a0b9e27f | 20246 | cat >> confdefs.h <<\EOF |
10f2d63a | 20247 | #define wxUSE_X_RESOURCES 1 |
a0b9e27f | 20248 | EOF |
10f2d63a VZ |
20249 | |
20250 | fi | |
20251 | ||
8284b0c5 | 20252 | |
77e13408 RL |
20253 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
20254 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
3bce6687 | 20255 | -o "$wxUSE_OLE" = "yes" \ |
77e13408 | 20256 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then |
a0b9e27f | 20257 | for ac_hdr in ole2.h |
10f2d63a | 20258 | do |
a0b9e27f MB |
20259 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
20260 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
db82f09e | 20261 | echo "configure:20262: checking for $ac_hdr" >&5 |
a0b9e27f MB |
20262 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
20263 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20264 | else | |
20265 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 20266 | #line 20267 "configure" |
10f2d63a | 20267 | #include "confdefs.h" |
a0b9e27f MB |
20268 | #include <$ac_hdr> |
20269 | EOF | |
20270 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
db82f09e | 20271 | { (eval echo configure:20272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
20272 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
20273 | if test -z "$ac_err"; then | |
20274 | rm -rf conftest* | |
20275 | eval "ac_cv_header_$ac_safe=yes" | |
20276 | else | |
20277 | echo "$ac_err" >&5 | |
20278 | echo "configure: failed program was:" >&5 | |
10f2d63a | 20279 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
20280 | rm -rf conftest* |
20281 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 20282 | fi |
a0b9e27f | 20283 | rm -f conftest* |
10f2d63a | 20284 | fi |
a0b9e27f MB |
20285 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
20286 | echo "$ac_t""yes" 1>&6 | |
20287 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
20288 | cat >> confdefs.h <<EOF | |
20289 | #define $ac_tr_hdr 1 | |
20290 | EOF | |
20291 | ||
20292 | else | |
20293 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
20294 | fi |
20295 | done | |
20296 | ||
8284b0c5 | 20297 | |
2b9bdf71 VZ |
20298 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
20299 | if test "$GCC" = yes ; then | |
a0b9e27f MB |
20300 | |
20301 | ac_ext=C | |
20302 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8284b0c5 | 20303 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
20304 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20305 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20306 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 MB |
20307 | |
20308 | ||
a0b9e27f | 20309 | echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6 |
db82f09e | 20310 | echo "configure:20311: checking if g++ requires -fvtable-thunks" >&5 |
a0b9e27f | 20311 | cat > conftest.$ac_ext <<EOF |
db82f09e | 20312 | #line 20313 "configure" |
8284b0c5 MB |
20313 | #include "confdefs.h" |
20314 | #include <windows.h> | |
20315 | #include <ole2.h> | |
a0b9e27f | 20316 | int main() { |
8284b0c5 | 20317 | |
a0b9e27f MB |
20318 | ; return 0; } |
20319 | EOF | |
db82f09e | 20320 | if { (eval echo configure:20321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
20321 | rm -rf conftest* |
20322 | echo "$ac_t""no" 1>&6 | |
20323 | else | |
20324 | echo "configure: failed program was:" >&5 | |
20325 | cat conftest.$ac_ext >&5 | |
20326 | rm -rf conftest* | |
20327 | echo "$ac_t""yes" 1>&6 | |
8284b0c5 MB |
20328 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
20329 | fi | |
a0b9e27f | 20330 | rm -f conftest* |
8284b0c5 | 20331 | ac_ext=c |
a0b9e27f | 20332 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
8284b0c5 | 20333 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
20334 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20335 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20336 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 20337 | |
2b9bdf71 | 20338 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" |
3d63bc3a | 20339 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
a0b9e27f | 20340 | cat >> confdefs.h <<\EOF |
4f11a343 | 20341 | #define wxUSE_OLE 1 |
a0b9e27f | 20342 | EOF |
4f11a343 | 20343 | |
8284b0c5 | 20344 | |
2b9bdf71 VZ |
20345 | fi |
20346 | ||
a0b9e27f | 20347 | cat >> confdefs.h <<\EOF |
2b9bdf71 | 20348 | #define wxUSE_DATAOBJ 1 |
a0b9e27f | 20349 | EOF |
2b9bdf71 VZ |
20350 | |
20351 | else | |
a0b9e27f | 20352 | echo "configure: warning: Some features disabled because OLE headers not found" 1>&2 |
2b9bdf71 VZ |
20353 | |
20354 | wxUSE_CLIPBOARD=no | |
20355 | wxUSE_DRAG_AND_DROP=no | |
20356 | wxUSE_DATAOBJ=no | |
3bce6687 JS |
20357 | wxUSE_OLE=no |
20358 | fi | |
20359 | ||
20360 | if test "$wxUSE_METAFILE" = "yes"; then | |
20361 | cat >> confdefs.h <<\EOF | |
20362 | #define wxUSE_METAFILE 1 | |
20363 | EOF | |
20364 | ||
20365 | ||
20366 | cat >> confdefs.h <<\EOF | |
20367 | #define wxUSE_ENH_METAFILE 1 | |
20368 | EOF | |
20369 | ||
20370 | fi | |
20371 | fi | |
20372 | ||
20373 | if test "$wxUSE_WINE" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ | |
20374 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
20375 | -o "$wxUSE_OLE" = "yes" \ | |
20376 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
20377 | for ac_hdr in ole2.h | |
20378 | do | |
20379 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
20380 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
db82f09e | 20381 | echo "configure:20382: checking for $ac_hdr" >&5 |
3bce6687 JS |
20382 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
20383 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20384 | else | |
20385 | cat > conftest.$ac_ext <<EOF | |
db82f09e | 20386 | #line 20387 "configure" |
3bce6687 JS |
20387 | #include "confdefs.h" |
20388 | #include <$ac_hdr> | |
20389 | EOF | |
20390 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
db82f09e | 20391 | { (eval echo configure:20392: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3bce6687 JS |
20392 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
20393 | if test -z "$ac_err"; then | |
20394 | rm -rf conftest* | |
20395 | eval "ac_cv_header_$ac_safe=yes" | |
20396 | else | |
20397 | echo "$ac_err" >&5 | |
20398 | echo "configure: failed program was:" >&5 | |
20399 | cat conftest.$ac_ext >&5 | |
20400 | rm -rf conftest* | |
20401 | eval "ac_cv_header_$ac_safe=no" | |
20402 | fi | |
20403 | rm -f conftest* | |
20404 | fi | |
20405 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
20406 | echo "$ac_t""yes" 1>&6 | |
20407 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
20408 | cat >> confdefs.h <<EOF | |
20409 | #define $ac_tr_hdr 1 | |
20410 | EOF | |
20411 | ||
20412 | else | |
20413 | echo "$ac_t""no" 1>&6 | |
20414 | fi | |
20415 | done | |
20416 | ||
20417 | ||
20418 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
20419 | if test "$GCC" = yes ; then | |
20420 | ||
20421 | ac_ext=C | |
20422 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
20423 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20424 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
20425 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20426 | cross_compiling=$ac_cv_prog_cxx_cross | |
20427 | ||
20428 | ||
20429 | echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6 | |
db82f09e | 20430 | echo "configure:20431: checking if g++ requires -fvtable-thunks" >&5 |
3bce6687 | 20431 | cat > conftest.$ac_ext <<EOF |
db82f09e | 20432 | #line 20433 "configure" |
3bce6687 JS |
20433 | #include "confdefs.h" |
20434 | #include <windows.h> | |
20435 | #include <ole2.h> | |
20436 | int main() { | |
20437 | ||
20438 | ; return 0; } | |
20439 | EOF | |
db82f09e | 20440 | if { (eval echo configure:20441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3bce6687 JS |
20441 | rm -rf conftest* |
20442 | echo "$ac_t""no" 1>&6 | |
20443 | else | |
20444 | echo "configure: failed program was:" >&5 | |
20445 | cat conftest.$ac_ext >&5 | |
20446 | rm -rf conftest* | |
20447 | echo "$ac_t""yes" 1>&6 | |
20448 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" | |
20449 | fi | |
20450 | rm -f conftest* | |
20451 | ac_ext=c | |
20452 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
20453 | ac_cpp='$CPP $CPPFLAGS' | |
20454 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
20455 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20456 | cross_compiling=$ac_cv_prog_cc_cross | |
20457 | ||
20458 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" | |
20459 | LIBS=" -lwine_uuid$LIBS" | |
20460 | cat >> confdefs.h <<\EOF | |
20461 | #define wxUSE_OLE 1 | |
20462 | EOF | |
20463 | ||
20464 | ||
20465 | fi | |
20466 | ||
20467 | cat >> confdefs.h <<\EOF | |
20468 | #define wxUSE_DATAOBJ 1 | |
20469 | EOF | |
20470 | ||
20471 | else | |
20472 | echo "configure: warning: Some features disabled because OLE headers not found" 1>&2 | |
20473 | ||
20474 | wxUSE_CLIPBOARD=no | |
20475 | wxUSE_DRAG_AND_DROP=no | |
20476 | wxUSE_DATAOBJ=no | |
20477 | wxUSE_OLE=no | |
2b9bdf71 VZ |
20478 | fi |
20479 | ||
77e13408 | 20480 | if test "$wxUSE_METAFILE" = "yes"; then |
a0b9e27f | 20481 | cat >> confdefs.h <<\EOF |
b64f0a5f | 20482 | #define wxUSE_METAFILE 1 |
a0b9e27f | 20483 | EOF |
b64f0a5f | 20484 | |
8284b0c5 | 20485 | |
a0b9e27f | 20486 | cat >> confdefs.h <<\EOF |
b64f0a5f | 20487 | #define wxUSE_ENH_METAFILE 1 |
a0b9e27f | 20488 | EOF |
b64f0a5f | 20489 | |
2b9bdf71 VZ |
20490 | fi |
20491 | fi | |
20492 | ||
20493 | if test "$wxUSE_IPC" = "yes"; then | |
20494 | if test "$wxUSE_SOCKETS" != "yes"; then | |
a0b9e27f | 20495 | echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2 |
2b9bdf71 VZ |
20496 | fi |
20497 | ||
a0b9e27f | 20498 | cat >> confdefs.h <<\EOF |
2b9bdf71 | 20499 | #define wxUSE_IPC 1 |
a0b9e27f | 20500 | EOF |
2b9bdf71 VZ |
20501 | |
20502 | fi | |
20503 | ||
20504 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
6c657b52 | 20505 | if test "$wxUSE_MGL" = 1; then |
a0b9e27f | 20506 | echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
20507 | wxUSE_CLIPBOARD=no |
20508 | fi | |
20509 | ||
20510 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
a0b9e27f | 20511 | cat >> confdefs.h <<\EOF |
2b9bdf71 | 20512 | #define wxUSE_CLIPBOARD 1 |
a0b9e27f | 20513 | EOF |
2b9bdf71 | 20514 | |
8284b0c5 | 20515 | |
a0b9e27f | 20516 | cat >> confdefs.h <<\EOF |
673f4220 | 20517 | #define wxUSE_DATAOBJ 1 |
a0b9e27f | 20518 | EOF |
673f4220 | 20519 | |
6c657b52 | 20520 | fi |
2b9bdf71 VZ |
20521 | fi |
20522 | ||
20523 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
20524 | if test "$wxUSE_GTK" = 1; then | |
20525 | if test "$WXGTK12" != 1; then | |
a0b9e27f | 20526 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2 |
10f2d63a VZ |
20527 | wxUSE_DRAG_AND_DROP=no |
20528 | fi | |
20529 | fi | |
20530 | ||
2b9bdf71 | 20531 | if test "$wxUSE_MOTIF" = 1; then |
a0b9e27f | 20532 | echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2 |
2b9bdf71 VZ |
20533 | wxUSE_DRAG_AND_DROP=no |
20534 | fi | |
20535 | ||
f79bd02d | 20536 | if test "$wxUSE_X11" = 1; then |
a0b9e27f | 20537 | echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2 |
f79bd02d JS |
20538 | wxUSE_DRAG_AND_DROP=no |
20539 | fi | |
20540 | ||
6c657b52 | 20541 | if test "$wxUSE_MGL" = 1; then |
a0b9e27f | 20542 | echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
20543 | wxUSE_DRAG_AND_DROP=no |
20544 | fi | |
20545 | ||
10f2d63a | 20546 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
a0b9e27f | 20547 | cat >> confdefs.h <<\EOF |
10f2d63a | 20548 | #define wxUSE_DRAG_AND_DROP 1 |
a0b9e27f | 20549 | EOF |
10f2d63a VZ |
20550 | |
20551 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
20552 | fi | |
20553 | ||
20554 | fi | |
20555 | ||
20556 | if test "$wxUSE_SPLINES" = "yes" ; then | |
a0b9e27f | 20557 | cat >> confdefs.h <<\EOF |
10f2d63a | 20558 | #define wxUSE_SPLINES 1 |
a0b9e27f | 20559 | EOF |
10f2d63a VZ |
20560 | |
20561 | fi | |
20562 | ||
8284b0c5 | 20563 | |
1e6feb95 VZ |
20564 | USES_CONTROLS=0 |
20565 | if test "$wxUSE_CONTROLS" = "yes"; then | |
20566 | USES_CONTROLS=1 | |
20567 | fi | |
20568 | ||
10f2d63a | 20569 | if test "$wxUSE_ACCEL" = "yes"; then |
a0b9e27f | 20570 | cat >> confdefs.h <<\EOF |
10f2d63a | 20571 | #define wxUSE_ACCEL 1 |
a0b9e27f | 20572 | EOF |
10f2d63a | 20573 | |
1e6feb95 VZ |
20574 | USES_CONTROLS=1 |
20575 | fi | |
20576 | ||
20577 | if test "$wxUSE_BUTTON" = "yes"; then | |
a0b9e27f | 20578 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20579 | #define wxUSE_BUTTON 1 |
a0b9e27f | 20580 | EOF |
1e6feb95 VZ |
20581 | |
20582 | USES_CONTROLS=1 | |
20583 | fi | |
20584 | ||
20585 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
a0b9e27f | 20586 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20587 | #define wxUSE_BMPBUTTON 1 |
a0b9e27f | 20588 | EOF |
1e6feb95 VZ |
20589 | |
20590 | USES_CONTROLS=1 | |
20591 | fi | |
20592 | ||
20593 | if test "$wxUSE_CALCTRL" = "yes"; then | |
a0b9e27f | 20594 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20595 | #define wxUSE_CALENDARCTRL 1 |
a0b9e27f | 20596 | EOF |
1e6feb95 VZ |
20597 | |
20598 | USES_CONTROLS=1 | |
20599 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
20600 | fi |
20601 | ||
20602 | if test "$wxUSE_CARET" = "yes"; then | |
a0b9e27f | 20603 | cat >> confdefs.h <<\EOF |
10f2d63a | 20604 | #define wxUSE_CARET 1 |
a0b9e27f | 20605 | EOF |
10f2d63a | 20606 | |
1e6feb95 | 20607 | USES_CONTROLS=1 |
10f2d63a VZ |
20608 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
20609 | fi | |
20610 | ||
20611 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
a0b9e27f | 20612 | cat >> confdefs.h <<\EOF |
10f2d63a | 20613 | #define wxUSE_COMBOBOX 1 |
a0b9e27f | 20614 | EOF |
10f2d63a | 20615 | |
1e6feb95 | 20616 | USES_CONTROLS=1 |
10f2d63a VZ |
20617 | fi |
20618 | ||
20619 | if test "$wxUSE_CHOICE" = "yes"; then | |
a0b9e27f | 20620 | cat >> confdefs.h <<\EOF |
10f2d63a | 20621 | #define wxUSE_CHOICE 1 |
a0b9e27f | 20622 | EOF |
10f2d63a | 20623 | |
1e6feb95 | 20624 | USES_CONTROLS=1 |
10f2d63a VZ |
20625 | fi |
20626 | ||
20627 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
a0b9e27f | 20628 | cat >> confdefs.h <<\EOF |
10f2d63a | 20629 | #define wxUSE_CHECKBOX 1 |
a0b9e27f | 20630 | EOF |
10f2d63a | 20631 | |
1e6feb95 | 20632 | USES_CONTROLS=1 |
10f2d63a VZ |
20633 | fi |
20634 | ||
20635 | if test "$wxUSE_CHECKLST" = "yes"; then | |
a0b9e27f | 20636 | cat >> confdefs.h <<\EOF |
10f2d63a | 20637 | #define wxUSE_CHECKLISTBOX 1 |
a0b9e27f | 20638 | EOF |
10f2d63a | 20639 | |
1e6feb95 | 20640 | USES_CONTROLS=1 |
10f2d63a VZ |
20641 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
20642 | fi | |
20643 | ||
20644 | if test "$wxUSE_GAUGE" = "yes"; then | |
a0b9e27f | 20645 | cat >> confdefs.h <<\EOF |
10f2d63a | 20646 | #define wxUSE_GAUGE 1 |
a0b9e27f | 20647 | EOF |
10f2d63a | 20648 | |
1e6feb95 | 20649 | USES_CONTROLS=1 |
10f2d63a VZ |
20650 | fi |
20651 | ||
d6a55c4b VZ |
20652 | if test "$wxUSE_NEW_GRID" = "yes"; then |
20653 | wxUSE_GRID="yes" | |
a0b9e27f | 20654 | cat >> confdefs.h <<\EOF |
d6a55c4b | 20655 | #define wxUSE_NEW_GRID 1 |
a0b9e27f | 20656 | EOF |
10f2d63a | 20657 | |
1e6feb95 | 20658 | USES_CONTROLS=1 |
d6a55c4b | 20659 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
20660 | fi |
20661 | ||
d6a55c4b | 20662 | if test "$wxUSE_GRID" = "yes"; then |
a0b9e27f | 20663 | cat >> confdefs.h <<\EOF |
d6a55c4b | 20664 | #define wxUSE_GRID 1 |
a0b9e27f | 20665 | EOF |
10f2d63a | 20666 | |
1e6feb95 | 20667 | USES_CONTROLS=1 |
d6a55c4b | 20668 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
20669 | fi |
20670 | ||
20671 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
a0b9e27f | 20672 | cat >> confdefs.h <<\EOF |
10f2d63a | 20673 | #define wxUSE_IMAGLIST 1 |
a0b9e27f | 20674 | EOF |
10f2d63a VZ |
20675 | |
20676 | fi | |
20677 | ||
20678 | if test "$wxUSE_LISTBOX" = "yes"; then | |
a0b9e27f | 20679 | cat >> confdefs.h <<\EOF |
10f2d63a | 20680 | #define wxUSE_LISTBOX 1 |
a0b9e27f | 20681 | EOF |
10f2d63a | 20682 | |
1e6feb95 | 20683 | USES_CONTROLS=1 |
10f2d63a VZ |
20684 | fi |
20685 | ||
20686 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
20687 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
a0b9e27f | 20688 | cat >> confdefs.h <<\EOF |
10f2d63a | 20689 | #define wxUSE_LISTCTRL 1 |
a0b9e27f | 20690 | EOF |
10f2d63a | 20691 | |
1e6feb95 | 20692 | USES_CONTROLS=1 |
10f2d63a VZ |
20693 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
20694 | else | |
a0b9e27f | 20695 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
20696 | fi |
20697 | fi | |
20698 | ||
20699 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
a0b9e27f | 20700 | cat >> confdefs.h <<\EOF |
10f2d63a | 20701 | #define wxUSE_NOTEBOOK 1 |
a0b9e27f | 20702 | EOF |
10f2d63a | 20703 | |
1e6feb95 | 20704 | USES_CONTROLS=1 |
10f2d63a VZ |
20705 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
20706 | fi | |
20707 | ||
24176f2c | 20708 | if test "$wxUSE_PROPSHEET" = "yes"; then |
a0b9e27f | 20709 | cat >> confdefs.h <<\EOF |
24176f2c | 20710 | #define wxUSE_PROPSHEET 1 |
a0b9e27f | 20711 | EOF |
24176f2c GD |
20712 | |
20713 | USES_CONTROLS=1 | |
20714 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist" | |
20715 | fi | |
20716 | ||
10f2d63a | 20717 | if test "$wxUSE_RADIOBOX" = "yes"; then |
a0b9e27f | 20718 | cat >> confdefs.h <<\EOF |
10f2d63a | 20719 | #define wxUSE_RADIOBOX 1 |
a0b9e27f | 20720 | EOF |
10f2d63a | 20721 | |
1e6feb95 | 20722 | USES_CONTROLS=1 |
10f2d63a VZ |
20723 | fi |
20724 | ||
20725 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
a0b9e27f | 20726 | cat >> confdefs.h <<\EOF |
10f2d63a | 20727 | #define wxUSE_RADIOBTN 1 |
a0b9e27f | 20728 | EOF |
10f2d63a | 20729 | |
1e6feb95 | 20730 | USES_CONTROLS=1 |
10f2d63a VZ |
20731 | fi |
20732 | ||
20733 | if test "$wxUSE_SASH" = "yes"; then | |
a0b9e27f | 20734 | cat >> confdefs.h <<\EOF |
10f2d63a | 20735 | #define wxUSE_SASH 1 |
a0b9e27f | 20736 | EOF |
10f2d63a VZ |
20737 | |
20738 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
20739 | fi | |
20740 | ||
20741 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
a0b9e27f | 20742 | cat >> confdefs.h <<\EOF |
10f2d63a | 20743 | #define wxUSE_SCROLLBAR 1 |
a0b9e27f | 20744 | EOF |
10f2d63a | 20745 | |
1e6feb95 | 20746 | USES_CONTROLS=1 |
741a9306 | 20747 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
20748 | fi |
20749 | ||
20750 | if test "$wxUSE_SLIDER" = "yes"; then | |
a0b9e27f | 20751 | cat >> confdefs.h <<\EOF |
10f2d63a | 20752 | #define wxUSE_SLIDER 1 |
a0b9e27f | 20753 | EOF |
10f2d63a | 20754 | |
1e6feb95 | 20755 | USES_CONTROLS=1 |
10f2d63a VZ |
20756 | fi |
20757 | ||
20758 | if test "$wxUSE_SPINBTN" = "yes"; then | |
a0b9e27f | 20759 | cat >> confdefs.h <<\EOF |
10f2d63a | 20760 | #define wxUSE_SPINBTN 1 |
a0b9e27f | 20761 | EOF |
10f2d63a | 20762 | |
1e6feb95 | 20763 | USES_CONTROLS=1 |
10f2d63a VZ |
20764 | fi |
20765 | ||
56cfaa52 | 20766 | if test "$wxUSE_SPINCTRL" = "yes"; then |
a0b9e27f | 20767 | cat >> confdefs.h <<\EOF |
56cfaa52 | 20768 | #define wxUSE_SPINCTRL 1 |
a0b9e27f | 20769 | EOF |
56cfaa52 | 20770 | |
1e6feb95 | 20771 | USES_CONTROLS=1 |
56cfaa52 RR |
20772 | fi |
20773 | ||
10f2d63a | 20774 | if test "$wxUSE_SPLITTER" = "yes"; then |
a0b9e27f | 20775 | cat >> confdefs.h <<\EOF |
10f2d63a | 20776 | #define wxUSE_SPLITTER 1 |
a0b9e27f | 20777 | EOF |
10f2d63a VZ |
20778 | |
20779 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
20780 | fi | |
20781 | ||
20782 | if test "$wxUSE_STATBMP" = "yes"; then | |
a0b9e27f | 20783 | cat >> confdefs.h <<\EOF |
10f2d63a | 20784 | #define wxUSE_STATBMP 1 |
a0b9e27f | 20785 | EOF |
10f2d63a | 20786 | |
1e6feb95 | 20787 | USES_CONTROLS=1 |
10f2d63a VZ |
20788 | fi |
20789 | ||
20790 | if test "$wxUSE_STATBOX" = "yes"; then | |
a0b9e27f | 20791 | cat >> confdefs.h <<\EOF |
10f2d63a | 20792 | #define wxUSE_STATBOX 1 |
a0b9e27f | 20793 | EOF |
10f2d63a | 20794 | |
1e6feb95 VZ |
20795 | USES_CONTROLS=1 |
20796 | fi | |
20797 | ||
20798 | if test "$wxUSE_STATTEXT" = "yes"; then | |
a0b9e27f | 20799 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20800 | #define wxUSE_STATTEXT 1 |
a0b9e27f | 20801 | EOF |
1e6feb95 VZ |
20802 | |
20803 | USES_CONTROLS=1 | |
10f2d63a VZ |
20804 | fi |
20805 | ||
20806 | if test "$wxUSE_STATLINE" = "yes"; then | |
20807 | if test "$wxUSE_WINE" = 1 ; then | |
a0b9e27f | 20808 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 |
10f2d63a | 20809 | else |
a0b9e27f | 20810 | cat >> confdefs.h <<\EOF |
10f2d63a | 20811 | #define wxUSE_STATLINE 1 |
a0b9e27f | 20812 | EOF |
10f2d63a | 20813 | |
1e6feb95 | 20814 | USES_CONTROLS=1 |
10f2d63a VZ |
20815 | fi |
20816 | fi | |
20817 | ||
20818 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
a0b9e27f | 20819 | cat >> confdefs.h <<\EOF |
10f2d63a | 20820 | #define wxUSE_STATUSBAR 1 |
a0b9e27f | 20821 | EOF |
10f2d63a | 20822 | |
1e6feb95 | 20823 | USES_CONTROLS=1 |
698dcdb6 | 20824 | |
2286341c | 20825 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
20826 | fi |
20827 | ||
20828 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
a0b9e27f | 20829 | cat >> confdefs.h <<\EOF |
10f2d63a | 20830 | #define wxUSE_TAB_DIALOG 1 |
a0b9e27f | 20831 | EOF |
10f2d63a VZ |
20832 | |
20833 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
20834 | fi | |
20835 | ||
1e6feb95 | 20836 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
a0b9e27f | 20837 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20838 | #define wxUSE_TEXTCTRL 1 |
a0b9e27f | 20839 | EOF |
1e6feb95 VZ |
20840 | |
20841 | USES_CONTROLS=1 | |
20842 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
20843 | fi | |
20844 | ||
1db8dc4a | 20845 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
156b2523 | 20846 | if test "$wxUSE_MAC" = 1; then |
a0b9e27f | 20847 | echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2 |
156b2523 GD |
20848 | wxUSE_TOGGLEBTN=no |
20849 | fi | |
20850 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
a0b9e27f | 20851 | echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2 |
a45d7ab7 GD |
20852 | wxUSE_TOGGLEBTN=no |
20853 | fi | |
20854 | ||
20855 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
a0b9e27f | 20856 | cat >> confdefs.h <<\EOF |
1db8dc4a | 20857 | #define wxUSE_TOGGLEBTN 1 |
a0b9e27f | 20858 | EOF |
1db8dc4a | 20859 | |
1e6feb95 | 20860 | USES_CONTROLS=1 |
a45d7ab7 | 20861 | fi |
1db8dc4a VZ |
20862 | fi |
20863 | ||
360d6699 | 20864 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
a0b9e27f | 20865 | cat >> confdefs.h <<\EOF |
360d6699 | 20866 | #define wxUSE_TOOLBAR_SIMPLE 1 |
a0b9e27f | 20867 | EOF |
360d6699 VZ |
20868 | |
20869 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 20870 | USES_CONTROLS=1 |
360d6699 VZ |
20871 | fi |
20872 | ||
10f2d63a | 20873 | if test "$wxUSE_TOOLBAR" = "yes"; then |
a0b9e27f | 20874 | cat >> confdefs.h <<\EOF |
10f2d63a | 20875 | #define wxUSE_TOOLBAR 1 |
a0b9e27f | 20876 | EOF |
10f2d63a | 20877 | |
1e6feb95 | 20878 | USES_CONTROLS=1 |
698dcdb6 | 20879 | |
360d6699 VZ |
20880 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
20881 | wxUSE_TOOLBAR_NATIVE="yes" | |
20882 | fi | |
20883 | ||
1e6feb95 | 20884 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
a0b9e27f | 20885 | cat >> confdefs.h <<\EOF |
360d6699 | 20886 | #define wxUSE_TOOLBAR_NATIVE 1 |
a0b9e27f | 20887 | EOF |
360d6699 | 20888 | |
1e6feb95 VZ |
20889 | USES_CONTROLS=1 |
20890 | fi | |
20891 | ||
20892 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
20893 | fi |
20894 | ||
10f2d63a VZ |
20895 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
20896 | if test "$wxUSE_MOTIF" = 1; then | |
a0b9e27f | 20897 | echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2 |
10f2d63a VZ |
20898 | else |
20899 | if test "$wxUSE_WINE" = 1; then | |
a0b9e27f | 20900 | echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2 |
10f2d63a | 20901 | else |
69d27ff7 | 20902 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
a0b9e27f | 20903 | echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2 |
69d27ff7 | 20904 | else |
a0b9e27f | 20905 | cat >> confdefs.h <<\EOF |
10f2d63a | 20906 | #define wxUSE_TOOLTIPS 1 |
a0b9e27f | 20907 | EOF |
10f2d63a | 20908 | |
69d27ff7 | 20909 | fi |
10f2d63a VZ |
20910 | fi |
20911 | fi | |
20912 | fi | |
20913 | ||
20914 | if test "$wxUSE_TREECTRL" = "yes"; then | |
20915 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
a0b9e27f | 20916 | cat >> confdefs.h <<\EOF |
10f2d63a | 20917 | #define wxUSE_TREECTRL 1 |
a0b9e27f | 20918 | EOF |
10f2d63a | 20919 | |
1e6feb95 | 20920 | USES_CONTROLS=1 |
10f2d63a VZ |
20921 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
20922 | else | |
a0b9e27f | 20923 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
20924 | fi |
20925 | fi | |
20926 | ||
9f41d601 | 20927 | if test "$wxUSE_POPUPWIN" = "yes"; then |
6abe4b65 | 20928 | if test "$wxUSE_MAC" = 1; then |
a0b9e27f | 20929 | echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2 |
6abe4b65 | 20930 | else |
485cf710 | 20931 | if test "$wxUSE_MOTIF" = 1; then |
a0b9e27f | 20932 | echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2 |
485cf710 | 20933 | else |
3c011993 | 20934 | if test "$wxUSE_PM" = 1; then |
a0b9e27f | 20935 | echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2 |
3bd8fb5f | 20936 | else |
a0b9e27f | 20937 | cat >> confdefs.h <<\EOF |
9f41d601 | 20938 | #define wxUSE_POPUPWIN 1 |
a0b9e27f | 20939 | EOF |
9f41d601 | 20940 | |
8284b0c5 | 20941 | |
3c011993 VZ |
20942 | USES_CONTROLS=1 |
20943 | fi | |
485cf710 | 20944 | fi |
6abe4b65 | 20945 | fi |
9f41d601 RR |
20946 | fi |
20947 | ||
dd964dcc | 20948 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
3c011993 | 20949 | if test "$wxUSE_PM" = 1; then |
a0b9e27f | 20950 | echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2 |
3bd8fb5f | 20951 | else |
a0b9e27f | 20952 | cat >> confdefs.h <<\EOF |
dd964dcc | 20953 | #define wxUSE_TIPWINDOW 1 |
a0b9e27f | 20954 | EOF |
dd964dcc | 20955 | |
3c011993 | 20956 | fi |
dd964dcc VZ |
20957 | fi |
20958 | ||
1e6feb95 | 20959 | if test "$USES_CONTROLS" = 1; then |
a0b9e27f | 20960 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20961 | #define wxUSE_CONTROLS 1 |
a0b9e27f | 20962 | EOF |
10f2d63a | 20963 | |
10f2d63a VZ |
20964 | fi |
20965 | ||
8284b0c5 | 20966 | |
24176f2c | 20967 | if test "$wxUSE_TREELAYOUT" = "yes"; then |
a0b9e27f | 20968 | cat >> confdefs.h <<\EOF |
24176f2c | 20969 | #define wxUSE_TREELAYOUT 1 |
a0b9e27f | 20970 | EOF |
24176f2c GD |
20971 | |
20972 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay" | |
20973 | fi | |
1e6feb95 | 20974 | |
24fd6d87 | 20975 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
a0b9e27f | 20976 | cat >> confdefs.h <<\EOF |
24fd6d87 | 20977 | #define wxUSE_DRAGIMAGE 1 |
a0b9e27f | 20978 | EOF |
24fd6d87 VZ |
20979 | |
20980 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
20981 | fi | |
20982 | ||
1e6feb95 | 20983 | if test "$wxUSE_MENUS" = "yes"; then |
a0b9e27f | 20984 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20985 | #define wxUSE_MENUS 1 |
a0b9e27f | 20986 | EOF |
10f2d63a | 20987 | |
1e6feb95 | 20988 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
20989 | fi |
20990 | ||
1e6feb95 | 20991 | if test "$wxUSE_METAFILE" = "yes"; then |
a0b9e27f | 20992 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20993 | #define wxUSE_METAFILE 1 |
a0b9e27f | 20994 | EOF |
10f2d63a | 20995 | |
10f2d63a VZ |
20996 | fi |
20997 | ||
1e6feb95 | 20998 | if test "$wxUSE_MIMETYPE" = "yes"; then |
a0b9e27f | 20999 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21000 | #define wxUSE_MIMETYPE 1 |
a0b9e27f | 21001 | EOF |
10f2d63a | 21002 | |
10f2d63a VZ |
21003 | fi |
21004 | ||
3e44f09d | 21005 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
a0b9e27f | 21006 | cat >> confdefs.h <<\EOF |
3e44f09d | 21007 | #define wxUSE_SYSTEM_OPTIONS 1 |
a0b9e27f | 21008 | EOF |
3e44f09d | 21009 | |
321d2b14 VZ |
21010 | if test "$TOOLKIT" = "MSW"; then |
21011 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" | |
21012 | fi | |
21013 | ||
3e44f09d VZ |
21014 | fi |
21015 | ||
4cdb0ab0 | 21016 | if test "$wxUSE_PROTOCOL" = "yes"; then |
3954f9ca | 21017 | if test "$wxUSE_SOCKETS" != "yes"; then |
a0b9e27f | 21018 | echo "configure: warning: Protocol classes require sockets... disabled" 1>&2 |
3954f9ca VS |
21019 | wxUSE_PROTOCOL=no |
21020 | fi | |
21021 | ||
21022 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
a0b9e27f | 21023 | cat >> confdefs.h <<\EOF |
4cdb0ab0 | 21024 | #define wxUSE_PROTOCOL 1 |
a0b9e27f | 21025 | EOF |
4cdb0ab0 | 21026 | |
8284b0c5 | 21027 | |
3954f9ca | 21028 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then |
a0b9e27f | 21029 | cat >> confdefs.h <<\EOF |
4cdb0ab0 | 21030 | #define wxUSE_PROTOCOL_HTTP 1 |
a0b9e27f | 21031 | EOF |
4cdb0ab0 | 21032 | |
3954f9ca VS |
21033 | fi |
21034 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
a0b9e27f | 21035 | cat >> confdefs.h <<\EOF |
4cdb0ab0 | 21036 | #define wxUSE_PROTOCOL_FTP 1 |
a0b9e27f | 21037 | EOF |
4cdb0ab0 | 21038 | |
3954f9ca VS |
21039 | fi |
21040 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
a0b9e27f | 21041 | cat >> confdefs.h <<\EOF |
3954f9ca | 21042 | #define wxUSE_PROTOCOL_FILE 1 |
a0b9e27f | 21043 | EOF |
3954f9ca VS |
21044 | |
21045 | fi | |
4cdb0ab0 | 21046 | fi |
3954f9ca VS |
21047 | fi |
21048 | ||
21049 | if test "$wxUSE_URL" = "yes"; then | |
21050 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
a0b9e27f | 21051 | echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2 |
3954f9ca VS |
21052 | wxUSE_URL=no |
21053 | fi | |
21054 | if test "$wxUSE_URL" = "yes"; then | |
a0b9e27f | 21055 | cat >> confdefs.h <<\EOF |
3954f9ca | 21056 | #define wxUSE_URL 1 |
a0b9e27f | 21057 | EOF |
4cdb0ab0 VS |
21058 | |
21059 | fi | |
21060 | fi | |
21061 | ||
10f2d63a | 21062 | if test "$wxUSE_MINIFRAME" = "yes"; then |
a0b9e27f | 21063 | cat >> confdefs.h <<\EOF |
10f2d63a | 21064 | #define wxUSE_MINIFRAME 1 |
a0b9e27f | 21065 | EOF |
10f2d63a VZ |
21066 | |
21067 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
21068 | fi | |
21069 | ||
21070 | if test "$wxUSE_HTML" = "yes"; then | |
a0b9e27f | 21071 | cat >> confdefs.h <<\EOF |
10f2d63a | 21072 | #define wxUSE_HTML 1 |
a0b9e27f | 21073 | EOF |
10f2d63a VZ |
21074 | |
21075 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
10f2d63a VZ |
21076 | fi |
21077 | ||
21078 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
a0b9e27f | 21079 | cat >> confdefs.h <<\EOF |
1e487827 | 21080 | #define wxUSE_VALIDATORS 1 |
a0b9e27f | 21081 | EOF |
703e0a69 | 21082 | |
698dcdb6 VZ |
21083 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
21084 | fi | |
21085 | ||
edae8572 | 21086 | if test "$wxUSE_PALETTE" = "yes" ; then |
a0b9e27f | 21087 | cat >> confdefs.h <<\EOF |
edae8572 | 21088 | #define wxUSE_PALETTE 1 |
a0b9e27f | 21089 | EOF |
edae8572 VZ |
21090 | |
21091 | fi | |
21092 | ||
698dcdb6 | 21093 | if test "$wxUSE_IMAGE" = "yes" ; then |
a0b9e27f | 21094 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21095 | #define wxUSE_IMAGE 1 |
a0b9e27f | 21096 | EOF |
698dcdb6 VZ |
21097 | |
21098 | fi | |
21099 | ||
21100 | if test "$wxUSE_GIF" = "yes" ; then | |
a0b9e27f | 21101 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21102 | #define wxUSE_GIF 1 |
a0b9e27f | 21103 | EOF |
698dcdb6 VZ |
21104 | |
21105 | fi | |
21106 | ||
21107 | if test "$wxUSE_PCX" = "yes" ; then | |
a0b9e27f | 21108 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21109 | #define wxUSE_PCX 1 |
a0b9e27f | 21110 | EOF |
698dcdb6 VZ |
21111 | |
21112 | fi | |
21113 | ||
4b6b4dfc | 21114 | if test "$wxUSE_IFF" = "yes" ; then |
a0b9e27f | 21115 | cat >> confdefs.h <<\EOF |
4b6b4dfc | 21116 | #define wxUSE_IFF 1 |
a0b9e27f | 21117 | EOF |
4b6b4dfc RR |
21118 | |
21119 | fi | |
21120 | ||
698dcdb6 | 21121 | if test "$wxUSE_PNM" = "yes" ; then |
a0b9e27f | 21122 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21123 | #define wxUSE_PNM 1 |
a0b9e27f | 21124 | EOF |
698dcdb6 VZ |
21125 | |
21126 | fi | |
21127 | ||
21128 | if test "$wxUSE_XPM" = "yes" ; then | |
a0b9e27f | 21129 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21130 | #define wxUSE_XPM 1 |
a0b9e27f | 21131 | EOF |
698dcdb6 VZ |
21132 | |
21133 | fi | |
21134 | ||
658974ae | 21135 | if test "$wxUSE_ICO_CUR" = "yes" ; then |
a0b9e27f | 21136 | cat >> confdefs.h <<\EOF |
658974ae | 21137 | #define wxUSE_ICO_CUR 1 |
a0b9e27f | 21138 | EOF |
658974ae VS |
21139 | |
21140 | fi | |
21141 | ||
a72a4bfa VS |
21142 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then |
21143 | LIBS=" -lunicows $LIBS" | |
21144 | fi | |
21145 | ||
8284b0c5 | 21146 | |
1e6feb95 | 21147 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
a0b9e27f | 21148 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21149 | #define wxUSE_CHOICEDLG 1 |
a0b9e27f | 21150 | EOF |
1e6feb95 VZ |
21151 | |
21152 | fi | |
21153 | ||
21154 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
a0b9e27f | 21155 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21156 | #define wxUSE_COLOURDLG 1 |
a0b9e27f | 21157 | EOF |
1e6feb95 VZ |
21158 | |
21159 | fi | |
21160 | ||
21161 | if test "$wxUSE_FILEDLG" = "yes"; then | |
a0b9e27f | 21162 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21163 | #define wxUSE_FILEDLG 1 |
a0b9e27f | 21164 | EOF |
1e6feb95 VZ |
21165 | |
21166 | fi | |
21167 | ||
8db37e06 | 21168 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
a0b9e27f | 21169 | cat >> confdefs.h <<\EOF |
8db37e06 | 21170 | #define wxUSE_FINDREPLDLG 1 |
a0b9e27f | 21171 | EOF |
8db37e06 VZ |
21172 | |
21173 | fi | |
21174 | ||
1e6feb95 | 21175 | if test "$wxUSE_FONTDLG" = "yes"; then |
a0b9e27f | 21176 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21177 | #define wxUSE_FONTDLG 1 |
a0b9e27f | 21178 | EOF |
1e6feb95 VZ |
21179 | |
21180 | fi | |
21181 | ||
21182 | if test "$wxUSE_DIRDLG" = "yes"; then | |
ae1daed0 | 21183 | if test "$wxUSE_TREECTRL" != "yes"; then |
a0b9e27f | 21184 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 |
1e6feb95 | 21185 | else |
a0b9e27f | 21186 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21187 | #define wxUSE_DIRDLG 1 |
a0b9e27f | 21188 | EOF |
1e6feb95 | 21189 | |
1e6feb95 VZ |
21190 | fi |
21191 | fi | |
21192 | ||
21193 | if test "$wxUSE_MSGDLG" = "yes"; then | |
a0b9e27f | 21194 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21195 | #define wxUSE_MSGDLG 1 |
a0b9e27f | 21196 | EOF |
1e6feb95 VZ |
21197 | |
21198 | fi | |
21199 | ||
21200 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
a0b9e27f | 21201 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21202 | #define wxUSE_NUMBERDLG 1 |
a0b9e27f | 21203 | EOF |
1e6feb95 VZ |
21204 | |
21205 | fi | |
21206 | ||
21207 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
21208 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
a0b9e27f | 21209 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 |
1e6feb95 | 21210 | else |
a0b9e27f | 21211 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21212 | #define wxUSE_PROGRESSDLG 1 |
a0b9e27f | 21213 | EOF |
1e6feb95 VZ |
21214 | |
21215 | fi | |
21216 | fi | |
21217 | ||
cbca9943 | 21218 | if test "$wxUSE_SPLASH" = "yes"; then |
a0b9e27f | 21219 | cat >> confdefs.h <<\EOF |
cbca9943 | 21220 | #define wxUSE_SPLASH 1 |
a0b9e27f | 21221 | EOF |
cbca9943 VZ |
21222 | |
21223 | fi | |
21224 | ||
1e6feb95 VZ |
21225 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
21226 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
a0b9e27f | 21227 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 |
1e6feb95 | 21228 | else |
a0b9e27f | 21229 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21230 | #define wxUSE_STARTUP_TIPS 1 |
a0b9e27f | 21231 | EOF |
1e6feb95 | 21232 | |
7b4a847f RR |
21233 | fi |
21234 | fi | |
579d8138 | 21235 | |
8284b0c5 | 21236 | if test "$wxUSE_TEXTDLG" = "yes"; then |
a0b9e27f | 21237 | cat >> confdefs.h <<\EOF |
8284b0c5 | 21238 | #define wxUSE_TEXTDLG 1 |
a0b9e27f | 21239 | EOF |
8284b0c5 MB |
21240 | |
21241 | fi | |
21242 | ||
21243 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
a0b9e27f | 21244 | cat >> confdefs.h <<\EOF |
8284b0c5 | 21245 | #define wxUSE_WIZARDDLG 1 |
a0b9e27f | 21246 | EOF |
8284b0c5 MB |
21247 | |
21248 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
21249 | fi | |
21250 | ||
21251 | ||
21252 | if test "$cross_compiling" = "yes"; then | |
21253 | OSINFO="\"$host\"" | |
21254 | else | |
21255 | OSINFO=`uname -s -r -m` | |
21256 | OSINFO="\"$OSINFO\"" | |
21257 | fi | |
21258 | ||
a0b9e27f | 21259 | cat >> confdefs.h <<EOF |
8284b0c5 | 21260 | #define WXWIN_OS_DESCRIPTION $OSINFO |
a0b9e27f | 21261 | EOF |
8284b0c5 MB |
21262 | |
21263 | ||
21264 | ||
21265 | if test "x$prefix" != "xNONE"; then | |
21266 | wxPREFIX=$prefix | |
21267 | else | |
21268 | wxPREFIX=$ac_default_prefix | |
21269 | fi | |
21270 | ||
a0b9e27f | 21271 | cat >> confdefs.h <<EOF |
8284b0c5 | 21272 | #define wxINSTALL_PREFIX "$wxPREFIX" |
a0b9e27f | 21273 | EOF |
8284b0c5 MB |
21274 | |
21275 | ||
21276 | ||
21277 | ||
21278 | ||
21279 | if test "$wxUSE_MAC" = 1 ; then | |
21280 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" | |
21281 | fi | |
21282 | ||
21283 | ||
21284 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK -lm $LIBS" | |
21285 | ||
21286 | if test "$wxUSE_GUI" = "yes"; then | |
21287 | ||
21288 | LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS" | |
21289 | ||
a0b9e27f | 21290 | |
8284b0c5 MB |
21291 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ |
21292 | drawing dynamic erase event exec font image \ | |
21293 | minimal propsize rotate widgets" | |
21294 | ||
21295 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" | |
21296 | else | |
21297 | SAMPLES_SUBDIRS="console" | |
21298 | fi | |
21299 | ||
21300 | ||
21301 | INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \ | |
21302 | -I\${top_srcdir}/include \ | |
21303 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ | |
21304 | $TOOLKIT_INCLUDE" | |
21305 | ||
21306 | if test "$wxUSE_GTK" = 1; then | |
21307 | WXCONFIG_INCLUDE= | |
21308 | else | |
21309 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
21310 | fi | |
21311 | ||
21312 | if test "$GXX" = yes ; then | |
21313 | CXXWARNINGS="-Wall" | |
a0b9e27f | 21314 | |
8284b0c5 MB |
21315 | if test "$wxUSE_NO_DEPS" = "no" ; then |
21316 | CFLAGS="-MMD $CFLAGS" | |
21317 | CXXFLAGS="-MMD $CXXFLAGS" | |
21318 | fi | |
21319 | fi | |
21320 | ||
b2fee376 | 21321 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" |
8284b0c5 | 21322 | |
b2fee376 | 21323 | CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'` |
8284b0c5 MB |
21324 | CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` |
21325 | CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
21326 | LIBS=`echo $LIBS | sed 's/ \+/ /g'` | |
21327 | ||
21328 | LDFLAGS="$LDFLAGS $PROFILE" | |
21329 | ||
21330 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
21331 | ||
21332 | ||
21333 | ||
21334 | ||
21335 | ||
21336 | ||
21337 | ||
21338 | ||
21339 | ||
21340 | ||
21341 | ||
21342 | ||
21343 | ||
21344 | ||
21345 | ||
21346 | ||
21347 | ||
21348 | ||
21349 | ||
21350 | ||
21351 | ||
21352 | ||
21353 | ||
21354 | ||
21355 | ||
21356 | ||
21357 | ||
21358 | ||
21359 | ||
21360 | ||
21361 | ||
21362 | ||
21363 | ||
21364 | ||
21365 | ||
21366 | ||
21367 | ||
21368 | ||
21369 | ||
21370 | ||
21371 | ||
21372 | ||
21373 | ||
21374 | ||
21375 | ||
21376 | ||
21377 | ||
21378 | ||
21379 | ||
21380 | ||
21381 | ||
21382 | ||
21383 | ||
21384 | ||
21385 | ||
21386 | ||
21387 | ||
21388 | ||
21389 | ||
21390 | ||
21391 | ||
21392 | ||
21393 | ||
21394 | ||
21395 | ||
21396 | ||
21397 | ||
21398 | ||
2f51a9ec GD |
21399 | |
21400 | ||
21401 | ||
21402 | ||
f6bcfd97 | 21403 | |
dad6c0ea | 21404 | |
caa2c79b | 21405 | |
3711412e | 21406 | |
1e6feb95 VZ |
21407 | |
21408 | ||
885d4bf5 VS |
21409 | |
21410 | ||
21411 | ||
21412 | ||
9b695262 VZ |
21413 | |
21414 | ||
62d0491b | 21415 | |
ef7f2189 | 21416 | |
40f7145c | 21417 | |
2bffed64 VZ |
21418 | |
21419 | ||
3bd8fb5f | 21420 | |
e26c13cf | 21421 | |
10f2d63a | 21422 | |
a0b9e27f MB |
21423 | |
21424 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
db82f09e | 21425 | echo "configure:21426: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
a0b9e27f MB |
21426 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
21427 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
21428 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 21429 | else |
a0b9e27f | 21430 | cat > conftestmake <<\EOF |
10f2d63a VZ |
21431 | all: |
21432 | @echo 'ac_maketemp="${MAKE}"' | |
a0b9e27f | 21433 | EOF |
10f2d63a | 21434 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
a0b9e27f | 21435 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
21436 | if test -n "$ac_maketemp"; then |
21437 | eval ac_cv_prog_make_${ac_make}_set=yes | |
21438 | else | |
21439 | eval ac_cv_prog_make_${ac_make}_set=no | |
21440 | fi | |
a0b9e27f | 21441 | rm -f conftestmake |
10f2d63a VZ |
21442 | fi |
21443 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
a0b9e27f | 21444 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
21445 | SET_MAKE= |
21446 | else | |
a0b9e27f | 21447 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
21448 | SET_MAKE="MAKE=${MAKE-make}" |
21449 | fi | |
21450 | ||
8284b0c5 | 21451 | |
3a922bb4 RL |
21452 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then |
21453 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
00cf1208 | 21454 | fi |
665bbe97 | 21455 | |
8284b0c5 | 21456 | |
10f2d63a | 21457 | |
57973b9c VZ |
21458 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
21459 | wx_cv_if_gnu_make=$IF_GNU_MAKE | |
21460 | wx_cv_path_ifs=$PATH_IFS | |
21461 | wx_cv_program_ext=$PROGRAM_EXT | |
21462 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
21463 | wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL | |
21464 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE | |
21465 | export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \ | |
21466 | wx_cv_path_ifs wx_cv_program_ext \ | |
21467 | wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype | |
21468 | ||
a0b9e27f | 21469 | subdirs="demos samples utils contrib" |
8284b0c5 | 21470 | |
10f2d63a | 21471 | |
a0b9e27f MB |
21472 | trap '' 1 2 15 |
21473 | cat > confcache <<\EOF | |
10f2d63a VZ |
21474 | # This file is a shell script that caches the results of configure |
21475 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
21476 | # scripts and configure runs. It is not useful on other systems. |
21477 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 21478 | # |
a0b9e27f MB |
21479 | # By default, configure uses ./config.cache as the cache file, |
21480 | # creating it if it does not exist already. You can give configure | |
21481 | # the --cache-file=FILE option to use a different cache file; that is | |
21482 | # what configure does when it calls configure scripts in | |
21483 | # subdirectories, so they share the cache. | |
21484 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
21485 | # config.status only pays attention to the cache file if you give it the | |
21486 | # --recheck option to rerun configure. | |
10f2d63a | 21487 | # |
a0b9e27f | 21488 | EOF |
10f2d63a VZ |
21489 | # The following way of writing the cache mishandles newlines in values, |
21490 | # but we know of no workaround that is simple, portable, and efficient. | |
21491 | # So, don't put newlines in cache variables' values. | |
21492 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
21493 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
21494 | (set) 2>&1 | |
21495 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
21496 | *ac_space=\ *) | |
21497 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
21498 | # turns \\\\ into \\, and sed turns \\ into \). | |
21499 | sed -n \ | |
21500 | -e "s/'/'\\\\''/g" \ | |
21501 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
21502 | ;; | |
21503 | *) | |
21504 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
21505 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
21506 | ;; | |
21507 | esac >> confcache | |
21508 | if cmp -s $cache_file confcache; then | |
21509 | : | |
21510 | else | |
10f2d63a | 21511 | if test -w $cache_file; then |
a0b9e27f MB |
21512 | echo "updating cache $cache_file" |
21513 | cat confcache > $cache_file | |
10f2d63a VZ |
21514 | else |
21515 | echo "not updating unwritable cache $cache_file" | |
21516 | fi | |
21517 | fi | |
21518 | rm -f confcache | |
21519 | ||
a0b9e27f MB |
21520 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
21521 | ||
10f2d63a VZ |
21522 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
21523 | # Let make expand exec_prefix. | |
21524 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
21525 | ||
a0b9e27f MB |
21526 | # Any assignment to VPATH causes Sun make to only execute |
21527 | # the first set of double-colon rules, so remove it if not needed. | |
21528 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 21529 | if test "x$srcdir" = x.; then |
a0b9e27f | 21530 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
21531 | fi |
21532 | ||
a0b9e27f | 21533 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
10f2d63a | 21534 | |
a0b9e27f | 21535 | DEFS=-DHAVE_CONFIG_H |
8284b0c5 | 21536 | |
a0b9e27f | 21537 | # Without the "./", some shells look in PATH for config.status. |
247f5006 | 21538 | : ${CONFIG_STATUS=./config.status} |
52127426 | 21539 | |
a0b9e27f MB |
21540 | echo creating $CONFIG_STATUS |
21541 | rm -f $CONFIG_STATUS | |
21542 | cat > $CONFIG_STATUS <<EOF | |
21543 | #! /bin/sh | |
21544 | # Generated automatically by configure. | |
21545 | # Run this file to recreate the current configuration. | |
21546 | # This directory was configured as follows, | |
21547 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
247f5006 | 21548 | # |
a0b9e27f | 21549 | # $0 $ac_configure_args |
247f5006 | 21550 | # |
a0b9e27f MB |
21551 | # Compiler output produced by configure, useful for debugging |
21552 | # configure, is in ./config.log if it exists. | |
247f5006 | 21553 | |
a0b9e27f MB |
21554 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
21555 | for ac_option | |
247f5006 | 21556 | do |
a0b9e27f MB |
21557 | case "\$ac_option" in |
21558 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
21559 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
21560 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
21561 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
21562 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
21563 | exit 0 ;; | |
21564 | -help | --help | --hel | --he | --h) | |
21565 | echo "\$ac_cs_usage"; exit 0 ;; | |
21566 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
247f5006 VZ |
21567 | esac |
21568 | done | |
21569 | ||
a0b9e27f MB |
21570 | ac_given_srcdir=$srcdir |
21571 | ac_given_INSTALL="$INSTALL" | |
247f5006 | 21572 | |
a0b9e27f MB |
21573 | trap 'rm -fr `echo " |
21574 | wx-config | |
21575 | src/make.env | |
21576 | src/makeprog.env | |
21577 | src/makelib.env | |
21578 | Makefile | |
21579 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
21580 | EOF | |
21581 | cat >> $CONFIG_STATUS <<EOF | |
247f5006 | 21582 | |
a0b9e27f MB |
21583 | # Protect against being on the right side of a sed subst in config.status. |
21584 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
21585 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
21586 | $ac_vpsub | |
21587 | $extrasub | |
21588 | s%@SHELL@%$SHELL%g | |
21589 | s%@CFLAGS@%$CFLAGS%g | |
21590 | s%@CPPFLAGS@%$CPPFLAGS%g | |
21591 | s%@CXXFLAGS@%$CXXFLAGS%g | |
21592 | s%@FFLAGS@%$FFLAGS%g | |
21593 | s%@DEFS@%$DEFS%g | |
21594 | s%@LDFLAGS@%$LDFLAGS%g | |
21595 | s%@LIBS@%$LIBS%g | |
21596 | s%@exec_prefix@%$exec_prefix%g | |
21597 | s%@prefix@%$prefix%g | |
21598 | s%@program_transform_name@%$program_transform_name%g | |
21599 | s%@bindir@%$bindir%g | |
21600 | s%@sbindir@%$sbindir%g | |
21601 | s%@libexecdir@%$libexecdir%g | |
21602 | s%@datadir@%$datadir%g | |
21603 | s%@sysconfdir@%$sysconfdir%g | |
21604 | s%@sharedstatedir@%$sharedstatedir%g | |
21605 | s%@localstatedir@%$localstatedir%g | |
21606 | s%@libdir@%$libdir%g | |
21607 | s%@includedir@%$includedir%g | |
21608 | s%@oldincludedir@%$oldincludedir%g | |
21609 | s%@infodir@%$infodir%g | |
21610 | s%@mandir@%$mandir%g | |
21611 | s%@host@%$host%g | |
21612 | s%@host_alias@%$host_alias%g | |
21613 | s%@host_cpu@%$host_cpu%g | |
21614 | s%@host_vendor@%$host_vendor%g | |
21615 | s%@host_os@%$host_os%g | |
21616 | s%@target@%$target%g | |
21617 | s%@target_alias@%$target_alias%g | |
21618 | s%@target_cpu@%$target_cpu%g | |
21619 | s%@target_vendor@%$target_vendor%g | |
21620 | s%@target_os@%$target_os%g | |
21621 | s%@build@%$build%g | |
21622 | s%@build_alias@%$build_alias%g | |
21623 | s%@build_cpu@%$build_cpu%g | |
21624 | s%@build_vendor@%$build_vendor%g | |
21625 | s%@build_os@%$build_os%g | |
21626 | s%@CC@%$CC%g | |
21627 | s%@CPP@%$CPP%g | |
21628 | s%@CXX@%$CXX%g | |
21629 | s%@RANLIB@%$RANLIB%g | |
21630 | s%@AR@%$AR%g | |
21631 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
21632 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
21633 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
21634 | s%@STRIP@%$STRIP%g | |
21635 | s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g | |
21636 | s%@YACC@%$YACC%g | |
21637 | s%@LEX@%$LEX%g | |
21638 | s%@LEXLIB@%$LEXLIB%g | |
21639 | s%@LN_S@%$LN_S%g | |
21640 | s%@CXXCPP@%$CXXCPP%g | |
21641 | s%@PKG_CONFIG@%$PKG_CONFIG%g | |
21642 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g | |
21643 | s%@GTK_LIBS@%$GTK_LIBS%g | |
21644 | s%@GTK_CONFIG@%$GTK_CONFIG%g | |
21645 | s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g | |
21646 | s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g | |
21647 | s%@X_CFLAGS@%$X_CFLAGS%g | |
21648 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
21649 | s%@X_LIBS@%$X_LIBS%g | |
21650 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
21651 | s%@AIX_CXX_LD@%$AIX_CXX_LD%g | |
21652 | s%@RESCOMP@%$RESCOMP%g | |
21653 | s%@DEREZ@%$DEREZ%g | |
21654 | s%@LIBICONV@%$LIBICONV%g | |
21655 | s%@LEX_STEM@%$LEX_STEM%g | |
21656 | s%@PATH_IFS@%$PATH_IFS%g | |
21657 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
21658 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
21659 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
21660 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
21661 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
21662 | s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g | |
21663 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
21664 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
21665 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
21666 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g | |
21667 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g | |
21668 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
21669 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g | |
21670 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
21671 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
21672 | s%@WX_ALL@%$WX_ALL%g | |
21673 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
21674 | s%@SHARED_LD@%$SHARED_LD%g | |
21675 | s%@PIC_FLAG@%$PIC_FLAG%g | |
21676 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g | |
21677 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
21678 | s%@SONAME_FLAGS@%$SONAME_FLAGS%g | |
21679 | s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g | |
21680 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g | |
21681 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
2bffed64 | 21682 | s%@STATIC_FLAG@%$STATIC_FLAG%g |
a0b9e27f MB |
21683 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g |
21684 | s%@USE_GUI@%$USE_GUI%g | |
21685 | s%@AFMINSTALL@%$AFMINSTALL%g | |
21686 | s%@TOOLKIT@%$TOOLKIT%g | |
21687 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
21688 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g | |
21689 | s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g | |
21690 | s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g | |
21691 | s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g | |
21692 | s%@cross_compiling@%$cross_compiling%g | |
21693 | s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g | |
21694 | s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g | |
21695 | s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g | |
21696 | s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g | |
21697 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g | |
21698 | s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g | |
e26c13cf | 21699 | s%@WX_LARGEFILE_FLAGS@%$WX_LARGEFILE_FLAGS%g |
a0b9e27f MB |
21700 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g |
21701 | s%@ALL_HEADERS@%$ALL_HEADERS%g | |
21702 | s%@ALL_SOURCES@%$ALL_SOURCES%g | |
21703 | s%@GUIDIST@%$GUIDIST%g | |
21704 | s%@PORT_FILES@%$PORT_FILES%g | |
21705 | s%@DISTDIR@%$DISTDIR%g | |
a0b9e27f MB |
21706 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g |
21707 | s%@LDFLAGS_GL@%$LDFLAGS_GL%g | |
21708 | s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g | |
21709 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g | |
21710 | s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g | |
21711 | s%@EXTRADEFS@%$EXTRADEFS%g | |
21712 | s%@RESFLAGS@%$RESFLAGS%g | |
21713 | s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g | |
21714 | s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g | |
21715 | s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g | |
21716 | s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g | |
21717 | s%@LIBWXMACRES@%$LIBWXMACRES%g | |
21718 | s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g | |
21719 | s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g | |
21720 | s%@DLLTOOL@%$DLLTOOL%g | |
21721 | s%@AS@%$AS%g | |
21722 | s%@NM@%$NM%g | |
21723 | s%@LD@%$LD%g | |
21724 | s%@MAKEINFO@%$MAKEINFO%g | |
21725 | s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g | |
21726 | s%@SET_MAKE@%$SET_MAKE%g | |
21727 | s%@subdirs@%$subdirs%g | |
247f5006 | 21728 | |
247f5006 | 21729 | CEOF |
a0b9e27f | 21730 | EOF |
247f5006 | 21731 | |
a0b9e27f MB |
21732 | cat >> $CONFIG_STATUS <<\EOF |
21733 | ||
21734 | # Split the substitutions into bite-sized pieces for seds with | |
21735 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
21736 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
21737 | ac_file=1 # Number of current file. | |
21738 | ac_beg=1 # First line for current file. | |
21739 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
21740 | ac_more_lines=: | |
21741 | ac_sed_cmds="" | |
21742 | while $ac_more_lines; do | |
21743 | if test $ac_beg -gt 1; then | |
21744 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
21745 | else | |
21746 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
21747 | fi | |
21748 | if test ! -s conftest.s$ac_file; then | |
21749 | ac_more_lines=false | |
21750 | rm -f conftest.s$ac_file | |
21751 | else | |
21752 | if test -z "$ac_sed_cmds"; then | |
21753 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
247f5006 | 21754 | else |
a0b9e27f | 21755 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
247f5006 | 21756 | fi |
a0b9e27f MB |
21757 | ac_file=`expr $ac_file + 1` |
21758 | ac_beg=$ac_end | |
21759 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
10f2d63a | 21760 | fi |
a0b9e27f MB |
21761 | done |
21762 | if test -z "$ac_sed_cmds"; then | |
21763 | ac_sed_cmds=cat | |
21764 | fi | |
21765 | EOF | |
10f2d63a | 21766 | |
a0b9e27f | 21767 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 21768 | |
a0b9e27f MB |
21769 | CONFIG_FILES=\${CONFIG_FILES-"wx-config |
21770 | src/make.env | |
21771 | src/makeprog.env | |
21772 | src/makelib.env | |
21773 | Makefile | |
21774 | "} | |
21775 | EOF | |
21776 | cat >> $CONFIG_STATUS <<\EOF | |
21777 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
21778 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
21779 | case "$ac_file" in | |
21780 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
21781 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
21782 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a | 21783 | esac |
247f5006 | 21784 | |
a0b9e27f | 21785 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
247f5006 | 21786 | |
a0b9e27f MB |
21787 | # Remove last slash and all that follows it. Not all systems have dirname. |
21788 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
21789 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
21790 | # The file is in a subdirectory. | |
21791 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
21792 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
21793 | # A "../" for each directory in $ac_dir_suffix. | |
21794 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
21795 | else | |
21796 | ac_dir_suffix= ac_dots= | |
21797 | fi | |
247f5006 | 21798 | |
a0b9e27f MB |
21799 | case "$ac_given_srcdir" in |
21800 | .) srcdir=. | |
21801 | if test -z "$ac_dots"; then top_srcdir=. | |
21802 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
21803 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
247f5006 | 21804 | *) # Relative path. |
a0b9e27f MB |
21805 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
21806 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
8284b0c5 | 21807 | esac |
10f2d63a | 21808 | |
a0b9e27f MB |
21809 | case "$ac_given_INSTALL" in |
21810 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
21811 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
21812 | esac | |
247f5006 | 21813 | |
a0b9e27f MB |
21814 | echo creating "$ac_file" |
21815 | rm -f "$ac_file" | |
21816 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
21817 | case "$ac_file" in | |
21818 | *Makefile*) ac_comsub="1i\\ | |
21819 | # $configure_input" ;; | |
21820 | *) ac_comsub= ;; | |
21821 | esac | |
247f5006 | 21822 | |
a0b9e27f MB |
21823 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
21824 | sed -e "$ac_comsub | |
21825 | s%@configure_input@%$configure_input%g | |
21826 | s%@srcdir@%$srcdir%g | |
21827 | s%@top_srcdir@%$top_srcdir%g | |
21828 | s%@INSTALL@%$INSTALL%g | |
21829 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
21830 | fi; done | |
21831 | rm -f conftest.s* | |
10f2d63a VZ |
21832 | |
21833 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
21834 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
21835 | # | |
21836 | # ac_d sets the value in "#define NAME VALUE" lines. | |
a0b9e27f MB |
21837 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
21838 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
21839 | ac_dC='\3' | |
21840 | ac_dD='%g' | |
21841 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
21842 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
21843 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 21844 | ac_uC=' ' |
a0b9e27f MB |
21845 | ac_uD='\4%g' |
21846 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
21847 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
21848 | ac_eB='$%\1#\2define\3' | |
21849 | ac_eC=' ' | |
21850 | ac_eD='%g' | |
21851 | ||
21852 | if test "${CONFIG_HEADERS+set}" != set; then | |
21853 | EOF | |
21854 | cat >> $CONFIG_STATUS <<EOF | |
21855 | CONFIG_HEADERS="setup.h:setup.h.in" | |
21856 | EOF | |
21857 | cat >> $CONFIG_STATUS <<\EOF | |
21858 | fi | |
21859 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 21860 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
a0b9e27f MB |
21861 | case "$ac_file" in |
21862 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
21863 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
21864 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
21865 | esac |
21866 | ||
a0b9e27f MB |
21867 | echo creating $ac_file |
21868 | ||
21869 | rm -f conftest.frag conftest.in conftest.out | |
21870 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
21871 | cat $ac_file_inputs > conftest.in | |
21872 | ||
21873 | EOF | |
21874 | ||
21875 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
21876 | # the proper values into config.h.in to produce config.h. And first: | |
21877 | # Protect against being on the right side of a sed subst in config.status. | |
21878 | # Protect against being in an unquoted here document in config.status. | |
21879 | rm -f conftest.vals | |
21880 | cat > conftest.hdr <<\EOF | |
21881 | s/[\\&%]/\\&/g | |
21882 | s%[\\$`]%\\&%g | |
21883 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
21884 | s%ac_d%ac_u%gp | |
21885 | s%ac_u%ac_e%gp | |
21886 | EOF | |
21887 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
21888 | rm -f conftest.hdr | |
10f2d63a VZ |
21889 | |
21890 | # This sed command replaces #undef with comments. This is necessary, for | |
21891 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
21892 | # on some systems where configure will not decide to define it. | |
a0b9e27f MB |
21893 | cat >> conftest.vals <<\EOF |
21894 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
21895 | EOF | |
21896 | ||
21897 | # Break up conftest.vals because some shells have a limit on | |
21898 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
21899 | |
21900 | rm -f conftest.tail | |
a0b9e27f | 21901 | while : |
10f2d63a | 21902 | do |
a0b9e27f MB |
21903 | ac_lines=`grep -c . conftest.vals` |
21904 | # grep -c gives empty output for an empty file on some AIX systems. | |
21905 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
21906 | # Write a limited-size here document to conftest.frag. | |
21907 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
21908 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 21909 | echo 'CEOF |
a0b9e27f MB |
21910 | sed -f conftest.frag conftest.in > conftest.out |
21911 | rm -f conftest.in | |
21912 | mv conftest.out conftest.in | |
21913 | ' >> $CONFIG_STATUS | |
21914 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
21915 | rm -f conftest.vals | |
21916 | mv conftest.tail conftest.vals | |
10f2d63a | 21917 | done |
a0b9e27f MB |
21918 | rm -f conftest.vals |
21919 | ||
21920 | cat >> $CONFIG_STATUS <<\EOF | |
21921 | rm -f conftest.frag conftest.h | |
21922 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
21923 | cat conftest.in >> conftest.h | |
21924 | rm -f conftest.in | |
21925 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
21926 | echo "$ac_file is unchanged" | |
21927 | rm -f conftest.h | |
10f2d63a | 21928 | else |
a0b9e27f MB |
21929 | # Remove last slash and all that follows it. Not all systems have dirname. |
21930 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
21931 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
21932 | # The file is in a subdirectory. | |
21933 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
247f5006 | 21934 | fi |
a0b9e27f MB |
21935 | rm -f $ac_file |
21936 | mv conftest.h $ac_file | |
247f5006 | 21937 | fi |
a0b9e27f MB |
21938 | fi; done |
21939 | ||
21940 | EOF | |
21941 | cat >> $CONFIG_STATUS <<EOF | |
21942 | ||
21943 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" | |
21944 | LN_S="${LN_S}" | |
21945 | ||
21946 | ||
21947 | EOF | |
21948 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 21949 | |
652d930d | 21950 | if test ! -h wx-config; then |
991a5759 | 21951 | chmod +x wx-config |
3a922bb4 RL |
21952 | mv wx-config wx${TOOLCHAIN_NAME}-config |
21953 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 21954 | fi |
665bbe97 | 21955 | |
00cf1208 RR |
21956 | if test ! -d lib; then |
21957 | mkdir lib | |
21958 | fi | |
21959 | if test ! -d lib/wx; then | |
21960 | mkdir lib/wx | |
21961 | fi | |
21962 | if test ! -d lib/wx/include; then | |
21963 | mkdir lib/wx/include | |
21964 | fi | |
3a922bb4 RL |
21965 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
21966 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 21967 | fi |
3a922bb4 RL |
21968 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
21969 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
21970 | fi |
21971 | if test -f setup.h; then | |
3a922bb4 | 21972 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 21973 | fi |
a0b9e27f MB |
21974 | |
21975 | exit 0 | |
21976 | EOF | |
10f2d63a | 21977 | chmod +x $CONFIG_STATUS |
a0b9e27f MB |
21978 | rm -fr confdefs* $ac_clean_files |
21979 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 21980 | |
2224580a VZ |
21981 | if test "$no_recursion" != yes; then |
21982 | ||
21983 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
21984 | ac_sub_configure_args= | |
21985 | ac_prev= | |
21986 | for ac_arg in $ac_configure_args; do | |
21987 | if test -n "$ac_prev"; then | |
21988 | ac_prev= | |
21989 | continue | |
21990 | fi | |
a0b9e27f | 21991 | case "$ac_arg" in |
2224580a VZ |
21992 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
21993 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
21994 | ac_prev=cache_file ;; | |
21995 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
a0b9e27f | 21996 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
21997 | ;; |
21998 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
21999 | ac_prev=srcdir ;; | |
22000 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
22001 | ;; | |
22002 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
22003 | esac | |
22004 | done | |
22005 | ||
a0b9e27f | 22006 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
22007 | |
22008 | # Do not complain, so a configure script can configure whichever | |
22009 | # parts of a large source tree are present. | |
a0b9e27f MB |
22010 | if test ! -d $srcdir/$ac_config_dir; then |
22011 | continue | |
22012 | fi | |
2224580a | 22013 | |
a0b9e27f | 22014 | echo configuring in $ac_config_dir |
2224580a | 22015 | |
a0b9e27f MB |
22016 | case "$srcdir" in |
22017 | .) ;; | |
22018 | *) | |
22019 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; | |
22020 | else | |
22021 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
22022 | fi | |
22023 | ;; | |
22024 | esac | |
2224580a | 22025 | |
a0b9e27f MB |
22026 | ac_popdir=`pwd` |
22027 | cd $ac_config_dir | |
247f5006 | 22028 | |
a0b9e27f MB |
22029 | # A "../" for each directory in /$ac_config_dir. |
22030 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
247f5006 | 22031 | |
a0b9e27f MB |
22032 | case "$srcdir" in |
22033 | .) # No --srcdir option. We are building in place. | |
22034 | ac_sub_srcdir=$srcdir ;; | |
22035 | /*) # Absolute path. | |
22036 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
22037 | *) # Relative path. | |
22038 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; | |
22039 | esac | |
2224580a VZ |
22040 | |
22041 | # Check for guested configure; otherwise get Cygnus style configure. | |
a0b9e27f MB |
22042 | if test -f $ac_sub_srcdir/configure; then |
22043 | ac_sub_configure=$ac_sub_srcdir/configure | |
22044 | elif test -f $ac_sub_srcdir/configure.in; then | |
2224580a VZ |
22045 | ac_sub_configure=$ac_configure |
22046 | else | |
a0b9e27f | 22047 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
22048 | ac_sub_configure= |
22049 | fi | |
22050 | ||
22051 | # The recursion is here. | |
22052 | if test -n "$ac_sub_configure"; then | |
a0b9e27f | 22053 | |
2224580a | 22054 | # Make the cache file name correct relative to the subdirectory. |
a0b9e27f MB |
22055 | case "$cache_file" in |
22056 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 22057 | *) # Relative path. |
a0b9e27f | 22058 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 22059 | esac |
a0b9e27f MB |
22060 | case "$ac_given_INSTALL" in |
22061 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
22062 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
22063 | esac | |
2224580a | 22064 | |
a0b9e27f | 22065 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 22066 | # The eval makes quoting arguments work. |
a0b9e27f MB |
22067 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
22068 | then : | |
22069 | else | |
22070 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
22071 | fi | |
2224580a VZ |
22072 | fi |
22073 | ||
22074 | cd $ac_popdir | |
22075 | done | |
22076 | fi | |
22077 | ||
8284b0c5 | 22078 |