]>
Commit | Line | Data |
---|---|---|
10f2d63a VZ |
1 | #! /bin/sh |
2 | ||
a0b9e27f MB |
3 | # From configure.in Id: configure.in |
4 | ||
5 | ||
6 | ||
7 | ||
8 | ||
9 | ||
10 | ||
11 | ||
12 | ||
13 | ||
14 | ||
15 | ||
16 | ||
17 | ||
18 | ||
19 | ||
20 | ||
21 | ||
22 | ||
23 | ||
24 | ||
52127426 | 25 | |
52127426 | 26 | |
8284b0c5 MB |
27 | |
28 | ||
29 | ||
30 | ||
31 | ||
32 | ||
33 | ||
34 | ||
35 | ||
8284b0c5 MB |
36 | |
37 | ||
38 | ||
39 | ||
40 | ||
41 | ||
42 | ||
43 | ||
8284b0c5 MB |
44 | |
45 | ||
46 | ||
247f5006 | 47 | |
247f5006 | 48 | |
a0b9e27f MB |
49 | |
50 | ||
51 | ||
52 | ||
53 | ||
54 | ||
2b5f62a0 VZ |
55 | |
56 | ||
57 | ||
521196a2 MB |
58 | |
59 | ||
60 | ||
a0b9e27f MB |
61 | |
62 | ||
63 | ||
64 | ||
65 | # Configure paths for GTK+ | |
66 | # Owen Taylor 1997-2001 | |
67 | ||
68 | ||
69 | ||
2b5f62a0 VZ |
70 | # Configure paths for GTK+ |
71 | # Owen Taylor 97-11-3 | |
a0b9e27f MB |
72 | |
73 | ||
74 | ||
75 | ||
76 | ||
a0b9e27f MB |
77 | |
78 | ||
79 | ||
80 | # Guess values for system-dependent variables and create Makefiles. | |
81 | # Generated automatically using autoconf version 2.13 | |
82 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
83 | # | |
84 | # This configure script is free software; the Free Software Foundation | |
85 | # gives unlimited permission to copy, distribute and modify it. | |
86 | ||
87 | # Defaults: | |
88 | ac_help= | |
89 | ac_default_prefix=/usr/local | |
90 | # Any additions from configure.in: | |
91 | ac_help="$ac_help | |
92 | --enable-gui use GUI classes" | |
93 | ac_help="$ac_help | |
94 | --enable-universal use wxWindows GUI controls instead of native ones" | |
95 | ac_help="$ac_help | |
96 | --with-gtk use GTK+" | |
97 | ac_help="$ac_help | |
98 | --with-motif use Motif/Lesstif" | |
99 | ac_help="$ac_help | |
100 | --with-mac use Mac OS X" | |
ac0c4cc3 DE |
101 | ac_help="$ac_help |
102 | --with-cocoa use Cocoa" | |
a0b9e27f | 103 | ac_help="$ac_help |
89e6bf6d | 104 | --with-wine use Wine" |
a0b9e27f MB |
105 | ac_help="$ac_help |
106 | --with-msw use MS-Windows" | |
107 | ac_help="$ac_help | |
108 | --with-pm use OS/2 Presentation Manager" | |
109 | ac_help="$ac_help | |
110 | --with-mgl use SciTech MGL" | |
111 | ac_help="$ac_help | |
112 | --with-microwin use MicroWindows" | |
113 | ac_help="$ac_help | |
114 | --with-x11 use X11" | |
115 | ac_help="$ac_help | |
116 | --enable-nanox use NanoX" | |
117 | ac_help="$ac_help | |
118 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)" | |
119 | ac_help="$ac_help | |
120 | --with-libpng use libpng (PNG image format)" | |
121 | ac_help="$ac_help | |
122 | --with-libjpeg use libjpeg (JPEG file format)" | |
123 | ac_help="$ac_help | |
124 | --with-libtiff use libtiff (TIFF file format)" | |
125 | ac_help="$ac_help | |
126 | --with-opengl use OpenGL (or Mesa)" | |
127 | ac_help="$ac_help | |
128 | --with-dmalloc use dmalloc library (http://dmalloc.com/)" | |
129 | ac_help="$ac_help | |
130 | --with-regex enable support for wxRegEx class" | |
131 | ac_help="$ac_help | |
132 | --with-zlib use zlib for LZW compression" | |
133 | ac_help="$ac_help | |
134 | --with-odbc use the IODBC and wxODBC classes" | |
135 | ac_help="$ac_help | |
136 | --enable-shared create shared library code" | |
137 | ac_help="$ac_help | |
138 | --enable-soname set the DT_SONAME field in ELF shared libraries" | |
139 | ac_help="$ac_help | |
140 | --enable-optimise create optimised code" | |
141 | ac_help="$ac_help | |
142 | --enable-debug same as debug_flag and debug_info" | |
143 | ac_help="$ac_help | |
b2fee376 | 144 | --enable-precomp enable use of precompiled headers (Mac OS X/Darwin)" |
a0b9e27f MB |
145 | ac_help="$ac_help |
146 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" | |
147 | ac_help="$ac_help | |
148 | --enable-debug_info create code with debugging information" | |
149 | ac_help="$ac_help | |
150 | --enable-debug_gdb create code with extra GDB debugging information" | |
151 | ac_help="$ac_help | |
152 | --enable-debug_cntxt use wxDebugContext" | |
153 | ac_help="$ac_help | |
154 | --enable-mem_tracing create code with memory tracing" | |
155 | ac_help="$ac_help | |
156 | --enable-profile create code with profiling information" | |
157 | ac_help="$ac_help | |
158 | --enable-no_rtti create code without RTTI information" | |
159 | ac_help="$ac_help | |
160 | --enable-no_exceptions create code without C++ exceptions handling" | |
161 | ac_help="$ac_help | |
162 | --enable-permissive compile code disregarding strict ANSI" | |
163 | ac_help="$ac_help | |
164 | --enable-no_deps create code without dependency information" | |
165 | ac_help="$ac_help | |
166 | --enable-compat20 enable wxWindows 2.0 compatibility" | |
167 | ac_help="$ac_help | |
65d8ef1e VS |
168 | --enable-compat22 enable wxWindows 2.2 compatibility" |
169 | ac_help="$ac_help | |
170 | --disable-compat24 disable wxWindows 2.4 compatibility" | |
a0b9e27f MB |
171 | ac_help="$ac_help |
172 | --enable-rpath=DIR output the rpath flag from wx-config" | |
173 | ac_help="$ac_help | |
174 | --enable-intl use internationalization system" | |
175 | ac_help="$ac_help | |
176 | --enable-config use wxConfig (and derived) classes" | |
177 | ac_help="$ac_help | |
178 | --enable-protocols use wxProtocol and derived classes" | |
179 | ac_help="$ac_help | |
180 | --enable-ftp use wxFTP (requires wxProtocol" | |
181 | ac_help="$ac_help | |
182 | --enable-http use wxHTTP (requires wxProtocol" | |
183 | ac_help="$ac_help | |
184 | --enable-fileproto use wxFileProto class (requires wxProtocol" | |
185 | ac_help="$ac_help | |
186 | --enable-sockets use socket/network classes" | |
3bce6687 JS |
187 | ac_help="$ac_help |
188 | --enable-ole use OLE classes" | |
189 | ac_help="$ac_help | |
190 | --enable-dataobj use data object classes" | |
a0b9e27f MB |
191 | ac_help="$ac_help |
192 | --enable-ipc use interprocess communication (wxSocket etc.)" | |
193 | ac_help="$ac_help | |
194 | --enable-cmdline use wxCmdLineParser class" | |
195 | ac_help="$ac_help | |
196 | --enable-datetime use wxDateTime class" | |
197 | ac_help="$ac_help | |
198 | --enable-timedate use obsolete wxDate/wxTime classes" | |
199 | ac_help="$ac_help | |
200 | --enable-stopwatch use wxStopWatch class" | |
201 | ac_help="$ac_help | |
202 | --enable-dialupman use dialup network classes" | |
203 | ac_help="$ac_help | |
204 | --enable-apple_ieee use the Apple IEEE codec" | |
205 | ac_help="$ac_help | |
206 | --enable-timer use wxTimer class" | |
207 | ac_help="$ac_help | |
208 | --enable-wave use wxWave class" | |
209 | ac_help="$ac_help | |
210 | --enable-fraction use wxFraction class" | |
211 | ac_help="$ac_help | |
212 | --enable-dynlib use wxLibrary class for DLL loading" | |
213 | ac_help="$ac_help | |
214 | --enable-dynamicloader use (new) wxDynamicLibrary class" | |
215 | ac_help="$ac_help | |
216 | --enable-longlong use wxLongLong class" | |
217 | ac_help="$ac_help | |
218 | --enable-geometry use geometry class" | |
219 | ac_help="$ac_help | |
220 | --enable-log use logging system" | |
221 | ac_help="$ac_help | |
222 | --enable-streams use wxStream etc classes" | |
223 | ac_help="$ac_help | |
224 | --enable-file use wxFile classes" | |
225 | ac_help="$ac_help | |
226 | --enable-ffile use wxFFile classes" | |
227 | ac_help="$ac_help | |
228 | --enable-textbuf use wxTextBuffer class" | |
229 | ac_help="$ac_help | |
230 | --enable-textfile use wxTextFile class" | |
231 | ac_help="$ac_help | |
232 | --enable-fontmap use font encodings conversion classes" | |
233 | ac_help="$ac_help | |
234 | --enable-unicode compile wxString with Unicode support" | |
235 | ac_help="$ac_help | |
236 | --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)" | |
237 | ac_help="$ac_help | |
238 | --enable-wxprintfv use wxWindows implementation of vprintf()" | |
239 | ac_help="$ac_help | |
240 | --enable-std_iostreams use standard C++ stream classes" | |
241 | ac_help="$ac_help | |
242 | --enable-filesystem use virtual file systems classes" | |
243 | ac_help="$ac_help | |
244 | --enable-fs_inet use virtual HTTP/FTP filesystems" | |
245 | ac_help="$ac_help | |
246 | --enable-fs_zip use virtual ZIP filesystems" | |
247 | ac_help="$ac_help | |
248 | --enable-zipstream use wxZipInputStream" | |
249 | ac_help="$ac_help | |
250 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException" | |
251 | ac_help="$ac_help | |
252 | --enable-snglinst use wxSingleInstanceChecker class" | |
253 | ac_help="$ac_help | |
254 | --enable-mimetype use wxMimeTypesManager" | |
255 | ac_help="$ac_help | |
256 | --enable-sysoptions use wxSystemOptions" | |
257 | ac_help="$ac_help | |
258 | --enable-url use wxURL class" | |
259 | ac_help="$ac_help | |
260 | --enable-protocol use wxProtocol class" | |
261 | ac_help="$ac_help | |
262 | --enable-protocol-http HTTP support in wxProtocol" | |
263 | ac_help="$ac_help | |
264 | --enable-protocol-ftp FTP support in wxProtocol" | |
265 | ac_help="$ac_help | |
266 | --enable-protocol-file FILE support in wxProtocol" | |
267 | ac_help="$ac_help | |
268 | --enable-threads use threads" | |
269 | ac_help="$ac_help | |
270 | --enable-docview use document view architecture" | |
271 | ac_help="$ac_help | |
272 | --enable-help use help subsystem" | |
273 | ac_help="$ac_help | |
274 | --enable-mshtmlhelp use MS HTML Help (win32)" | |
275 | ac_help="$ac_help | |
276 | --enable-html use wxHTML sub-library" | |
277 | ac_help="$ac_help | |
278 | --enable-htmlhelp use wxHTML-based help" | |
279 | ac_help="$ac_help | |
280 | --enable-constraints use layout-constraints system" | |
281 | ac_help="$ac_help | |
282 | --enable-printarch use printing architecture" | |
283 | ac_help="$ac_help | |
284 | --enable-mdi use multiple document interface architecture" | |
285 | ac_help="$ac_help | |
286 | --enable-loggui use standard GUI logger" | |
287 | ac_help="$ac_help | |
288 | --enable-logwin use wxLogWindow" | |
289 | ac_help="$ac_help | |
290 | --enable-logdialog use wxLogDialog" | |
291 | ac_help="$ac_help | |
292 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" | |
293 | ac_help="$ac_help | |
294 | --enable-prologio use Prolog IO library" | |
295 | ac_help="$ac_help | |
296 | --enable-resources use wxWindows resources" | |
297 | ac_help="$ac_help | |
298 | --enable-xresources use X resources for save (default for gtk+)" | |
299 | ac_help="$ac_help | |
da494b40 | 300 | --enable-clipboard use wxClipboard class" |
a0b9e27f MB |
301 | ac_help="$ac_help |
302 | --enable-dnd use Drag'n'Drop classes" | |
303 | ac_help="$ac_help | |
304 | --enable-metafile use win32 metafiles" | |
305 | ac_help="$ac_help | |
da494b40 | 306 | --enable-treelayout use wxTreeLayout class" |
a0b9e27f MB |
307 | ac_help="$ac_help |
308 | --enable-controls use all usual controls" | |
309 | ac_help="$ac_help | |
310 | --enable-accel use accelerators" | |
311 | ac_help="$ac_help | |
312 | --enable-button use wxButton class" | |
313 | ac_help="$ac_help | |
314 | --enable-bmpbutton use wxBitmapButton class" | |
315 | ac_help="$ac_help | |
316 | --enable-calendar use wxCalendarCtrl class" | |
317 | ac_help="$ac_help | |
318 | --enable-caret use wxCaret class" | |
319 | ac_help="$ac_help | |
320 | --enable-checkbox use wxCheckBox class" | |
321 | ac_help="$ac_help | |
322 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" | |
323 | ac_help="$ac_help | |
324 | --enable-choice use wxChoice class" | |
325 | ac_help="$ac_help | |
da494b40 MB |
326 | --enable-combobox use wxComboBox class" |
327 | ac_help="$ac_help | |
328 | --enable-display use wxDisplay class" | |
a0b9e27f MB |
329 | ac_help="$ac_help |
330 | --enable-gauge use wxGauge class" | |
331 | ac_help="$ac_help | |
332 | --enable-grid use wxGrid class" | |
333 | ac_help="$ac_help | |
334 | --enable-newgrid use new wxGrid class" | |
335 | ac_help="$ac_help | |
336 | --enable-imaglist use wxImageList class" | |
337 | ac_help="$ac_help | |
338 | --enable-listbox use wxListBox class" | |
339 | ac_help="$ac_help | |
340 | --enable-listctrl use wxListCtrl class" | |
341 | ac_help="$ac_help | |
342 | --enable-notebook use wxNotebook class" | |
343 | ac_help="$ac_help | |
344 | --enable-propsheet use wxPropertySheet class" | |
345 | ac_help="$ac_help | |
346 | --enable-radiobox use wxRadioBox class" | |
347 | ac_help="$ac_help | |
348 | --enable-radiobtn use wxRadioButton class" | |
349 | ac_help="$ac_help | |
350 | --enable-sash use wxSashWindow class" | |
351 | ac_help="$ac_help | |
352 | --enable-scrollbar use wxScrollBar class and scrollable windows" | |
353 | ac_help="$ac_help | |
354 | --enable-slider use wxSlider class" | |
355 | ac_help="$ac_help | |
356 | --enable-spinbtn use wxSpinButton class" | |
357 | ac_help="$ac_help | |
358 | --enable-spinctrl use wxSpinCtrl class" | |
359 | ac_help="$ac_help | |
360 | --enable-splitter use wxSplitterWindow class" | |
361 | ac_help="$ac_help | |
362 | --enable-statbmp use wxStaticBitmap class" | |
363 | ac_help="$ac_help | |
364 | --enable-statbox use wxStaticBox class" | |
365 | ac_help="$ac_help | |
366 | --enable-statline use wxStaticLine class" | |
367 | ac_help="$ac_help | |
368 | --enable-stattext use wxStaticText class" | |
369 | ac_help="$ac_help | |
370 | --enable-statusbar use wxStatusBar class" | |
371 | ac_help="$ac_help | |
372 | --enable-tabdialog use wxTabControl class" | |
373 | ac_help="$ac_help | |
374 | --enable-textctrl use wxTextCtrl class" | |
375 | ac_help="$ac_help | |
376 | --enable-togglebtn use wxToggleButton class" | |
377 | ac_help="$ac_help | |
378 | --enable-toolbar use wxToolBar class" | |
379 | ac_help="$ac_help | |
380 | --enable-tbarnative use native wxToolBar class" | |
381 | ac_help="$ac_help | |
382 | --enable-tbarsmpl use wxToolBarSimple class" | |
383 | ac_help="$ac_help | |
384 | --enable-treectrl use wxTreeCtrl class" | |
385 | ac_help="$ac_help | |
386 | --enable-tipwindow use wxTipWindow class" | |
387 | ac_help="$ac_help | |
388 | --enable-popupwin use wxPopUpWindow class" | |
389 | ac_help="$ac_help | |
390 | --enable-commondlg use all common dialogs" | |
391 | ac_help="$ac_help | |
392 | --enable-choicedlg use wxChoiceDialog" | |
393 | ac_help="$ac_help | |
394 | --enable-coldlg use wxColourDialog" | |
395 | ac_help="$ac_help | |
396 | --enable-filedlg use wxFileDialog" | |
397 | ac_help="$ac_help | |
398 | --enable-finddlg use wxFindReplaceDialog" | |
399 | ac_help="$ac_help | |
400 | --enable-fontdlg use wxFontDialog" | |
401 | ac_help="$ac_help | |
402 | --enable-dirdlg use wxDirDialog" | |
403 | ac_help="$ac_help | |
404 | --enable-msgdlg use wxMessageDialog" | |
405 | ac_help="$ac_help | |
406 | --enable-numberdlg use wxNumberEntryDialog" | |
407 | ac_help="$ac_help | |
408 | --enable-splash use wxSplashScreen" | |
409 | ac_help="$ac_help | |
410 | --enable-textdlg use wxTextDialog" | |
411 | ac_help="$ac_help | |
412 | --enable-tipdlg use startup tips" | |
413 | ac_help="$ac_help | |
414 | --enable-progressdlg use wxProgressDialog" | |
415 | ac_help="$ac_help | |
416 | --enable-wizarddlg use wxWizard" | |
417 | ac_help="$ac_help | |
418 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" | |
419 | ac_help="$ac_help | |
420 | --enable-miniframe use wxMiniFrame class" | |
421 | ac_help="$ac_help | |
422 | --enable-tooltips use wxToolTip class" | |
423 | ac_help="$ac_help | |
424 | --enable-splines use spline drawing code" | |
425 | ac_help="$ac_help | |
426 | --enable-validators use wxValidator and derived classes" | |
427 | ac_help="$ac_help | |
428 | --enable-busyinfo use wxBusyInfo" | |
429 | ac_help="$ac_help | |
430 | --enable-joystick use wxJoystick (Linux only)" | |
431 | ac_help="$ac_help | |
432 | --enable-metafiles use wxMetaFile (Windows only)" | |
433 | ac_help="$ac_help | |
434 | --enable-dragimage use wxDragImage" | |
435 | ac_help="$ac_help | |
436 | --enable-palette use wxPalette class" | |
437 | ac_help="$ac_help | |
438 | --enable-image use wxImage class" | |
439 | ac_help="$ac_help | |
440 | --enable-gif use gif images (GIF file format)" | |
441 | ac_help="$ac_help | |
442 | --enable-pcx use pcx images (PCX file format)" | |
443 | ac_help="$ac_help | |
444 | --enable-iff use iff images (IFF file format)" | |
445 | ac_help="$ac_help | |
446 | --enable-pnm use pnm images (PNM file format)" | |
447 | ac_help="$ac_help | |
448 | --enable-xpm use xpm images (XPM file format)" | |
449 | ac_help="$ac_help | |
450 | --enable-icocur use Windows ICO and CUR formats" | |
451 | ac_help="$ac_help | |
452 | --disable-largefile omit support for large files" | |
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-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
457 | ac_help="$ac_help | |
458 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
459 | ac_help="$ac_help | |
460 | --disable-gtktest Do not try to compile and run a test GTK program" | |
461 | ac_help="$ac_help | |
462 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
463 | ac_help="$ac_help | |
464 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
465 | ac_help="$ac_help | |
466 | --disable-gtktest Do not try to compile and run a test GTK program" | |
467 | ac_help="$ac_help | |
468 | --with-x use the X Window System" | |
469 | ac_help="$ac_help | |
470 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib" | |
10f2d63a VZ |
471 | |
472 | # Initialize some variables set by options. | |
473 | # The variables have the same names as the options, with | |
474 | # dashes changed to underlines. | |
a0b9e27f MB |
475 | build=NONE |
476 | cache_file=./config.cache | |
10f2d63a | 477 | exec_prefix=NONE |
a0b9e27f | 478 | host=NONE |
10f2d63a | 479 | no_create= |
a0b9e27f | 480 | nonopt=NONE |
10f2d63a VZ |
481 | no_recursion= |
482 | prefix=NONE | |
483 | program_prefix=NONE | |
484 | program_suffix=NONE | |
485 | program_transform_name=s,x,x, | |
486 | silent= | |
487 | site= | |
488 | srcdir= | |
a0b9e27f | 489 | target=NONE |
10f2d63a VZ |
490 | verbose= |
491 | x_includes=NONE | |
492 | x_libraries=NONE | |
493 | bindir='${exec_prefix}/bin' | |
494 | sbindir='${exec_prefix}/sbin' | |
495 | libexecdir='${exec_prefix}/libexec' | |
496 | datadir='${prefix}/share' | |
497 | sysconfdir='${prefix}/etc' | |
498 | sharedstatedir='${prefix}/com' | |
499 | localstatedir='${prefix}/var' | |
500 | libdir='${exec_prefix}/lib' | |
501 | includedir='${prefix}/include' | |
502 | oldincludedir='/usr/include' | |
503 | infodir='${prefix}/info' | |
504 | mandir='${prefix}/man' | |
505 | ||
a0b9e27f MB |
506 | # Initialize some other variables. |
507 | subdirs= | |
508 | MFLAGS= MAKEFLAGS= | |
509 | SHELL=${CONFIG_SHELL-/bin/sh} | |
510 | # Maximum number of lines to put in a shell here document. | |
511 | ac_max_here_lines=12 | |
512 | ||
10f2d63a VZ |
513 | ac_prev= |
514 | for ac_option | |
515 | do | |
a0b9e27f | 516 | |
10f2d63a VZ |
517 | # If the previous option needs an argument, assign it. |
518 | if test -n "$ac_prev"; then | |
519 | eval "$ac_prev=\$ac_option" | |
520 | ac_prev= | |
521 | continue | |
522 | fi | |
523 | ||
a0b9e27f MB |
524 | case "$ac_option" in |
525 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
526 | *) ac_optarg= ;; | |
527 | esac | |
10f2d63a VZ |
528 | |
529 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
530 | ||
a0b9e27f | 531 | case "$ac_option" in |
10f2d63a VZ |
532 | |
533 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
534 | ac_prev=bindir ;; | |
535 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
a0b9e27f | 536 | bindir="$ac_optarg" ;; |
10f2d63a VZ |
537 | |
538 | -build | --build | --buil | --bui | --bu) | |
a0b9e27f | 539 | ac_prev=build ;; |
10f2d63a | 540 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
a0b9e27f | 541 | build="$ac_optarg" ;; |
10f2d63a VZ |
542 | |
543 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
544 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
545 | ac_prev=cache_file ;; | |
546 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
547 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
a0b9e27f | 548 | cache_file="$ac_optarg" ;; |
10f2d63a VZ |
549 | |
550 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
551 | ac_prev=datadir ;; | |
552 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
553 | | --da=*) | |
a0b9e27f | 554 | datadir="$ac_optarg" ;; |
10f2d63a VZ |
555 | |
556 | -disable-* | --disable-*) | |
a0b9e27f | 557 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
10f2d63a | 558 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
559 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
560 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
561 | fi | |
562 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
563 | eval "enable_${ac_feature}=no" ;; | |
10f2d63a VZ |
564 | |
565 | -enable-* | --enable-*) | |
a0b9e27f | 566 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
10f2d63a | 567 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
568 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
569 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
570 | fi | |
571 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
572 | case "$ac_option" in | |
573 | *=*) ;; | |
10f2d63a VZ |
574 | *) ac_optarg=yes ;; |
575 | esac | |
a0b9e27f | 576 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
10f2d63a VZ |
577 | |
578 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
579 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
580 | | --exec | --exe | --ex) | |
581 | ac_prev=exec_prefix ;; | |
582 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
583 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
584 | | --exec=* | --exe=* | --ex=*) | |
a0b9e27f | 585 | exec_prefix="$ac_optarg" ;; |
10f2d63a VZ |
586 | |
587 | -gas | --gas | --ga | --g) | |
588 | # Obsolete; use --with-gas. | |
589 | with_gas=yes ;; | |
590 | ||
a0b9e27f MB |
591 | -help | --help | --hel | --he) |
592 | # Omit some internal or obsolete options to make the list less imposing. | |
593 | # This message is too long to be a string in the A/UX 3.1 sh. | |
594 | cat << EOF | |
595 | Usage: configure [options] [host] | |
596 | Options: [defaults in brackets after descriptions] | |
597 | Configuration: | |
598 | --cache-file=FILE cache test results in FILE | |
599 | --help print this message | |
600 | --no-create do not create output files | |
601 | --quiet, --silent do not print \`checking...' messages | |
602 | --version print the version of autoconf that created configure | |
603 | Directory and file names: | |
604 | --prefix=PREFIX install architecture-independent files in PREFIX | |
605 | [$ac_default_prefix] | |
606 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
607 | [same as prefix] | |
608 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
609 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
610 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
611 | --datadir=DIR read-only architecture-independent data in DIR | |
612 | [PREFIX/share] | |
613 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
614 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
615 | [PREFIX/com] | |
616 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
617 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
618 | --includedir=DIR C header files in DIR [PREFIX/include] | |
619 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
620 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
621 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
622 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
623 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
624 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
625 | --program-transform-name=PROGRAM | |
626 | run sed PROGRAM on installed program names | |
627 | EOF | |
628 | cat << EOF | |
629 | Host type: | |
630 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
631 | --host=HOST configure for HOST [guessed] | |
632 | --target=TARGET configure for TARGET [TARGET=HOST] | |
633 | Features and packages: | |
634 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
635 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
636 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
637 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
638 | --x-includes=DIR X include files are in DIR | |
639 | --x-libraries=DIR X library files are in DIR | |
640 | EOF | |
641 | if test -n "$ac_help"; then | |
642 | echo "--enable and --with options recognized:$ac_help" | |
643 | fi | |
644 | exit 0 ;; | |
10f2d63a VZ |
645 | |
646 | -host | --host | --hos | --ho) | |
a0b9e27f | 647 | ac_prev=host ;; |
10f2d63a | 648 | -host=* | --host=* | --hos=* | --ho=*) |
a0b9e27f | 649 | host="$ac_optarg" ;; |
10f2d63a VZ |
650 | |
651 | -includedir | --includedir | --includedi | --included | --include \ | |
652 | | --includ | --inclu | --incl | --inc) | |
653 | ac_prev=includedir ;; | |
654 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
655 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
a0b9e27f | 656 | includedir="$ac_optarg" ;; |
10f2d63a VZ |
657 | |
658 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
659 | ac_prev=infodir ;; | |
660 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
a0b9e27f | 661 | infodir="$ac_optarg" ;; |
10f2d63a VZ |
662 | |
663 | -libdir | --libdir | --libdi | --libd) | |
664 | ac_prev=libdir ;; | |
665 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
a0b9e27f | 666 | libdir="$ac_optarg" ;; |
10f2d63a VZ |
667 | |
668 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
669 | | --libexe | --libex | --libe) | |
670 | ac_prev=libexecdir ;; | |
671 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
672 | | --libexe=* | --libex=* | --libe=*) | |
a0b9e27f | 673 | libexecdir="$ac_optarg" ;; |
10f2d63a VZ |
674 | |
675 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
676 | | --localstate | --localstat | --localsta | --localst \ | |
677 | | --locals | --local | --loca | --loc | --lo) | |
678 | ac_prev=localstatedir ;; | |
679 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
680 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
681 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
a0b9e27f | 682 | localstatedir="$ac_optarg" ;; |
10f2d63a VZ |
683 | |
684 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
685 | ac_prev=mandir ;; | |
686 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
a0b9e27f | 687 | mandir="$ac_optarg" ;; |
10f2d63a VZ |
688 | |
689 | -nfp | --nfp | --nf) | |
690 | # Obsolete; use --without-fp. | |
691 | with_fp=no ;; | |
692 | ||
693 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
a0b9e27f | 694 | | --no-cr | --no-c) |
10f2d63a VZ |
695 | no_create=yes ;; |
696 | ||
697 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
698 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
699 | no_recursion=yes ;; | |
700 | ||
701 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
702 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
703 | | --oldin | --oldi | --old | --ol | --o) | |
704 | ac_prev=oldincludedir ;; | |
705 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
706 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
707 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
a0b9e27f | 708 | oldincludedir="$ac_optarg" ;; |
10f2d63a VZ |
709 | |
710 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
711 | ac_prev=prefix ;; | |
712 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
a0b9e27f | 713 | prefix="$ac_optarg" ;; |
10f2d63a VZ |
714 | |
715 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
716 | | --program-pre | --program-pr | --program-p) | |
717 | ac_prev=program_prefix ;; | |
718 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
719 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
a0b9e27f | 720 | program_prefix="$ac_optarg" ;; |
10f2d63a VZ |
721 | |
722 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
723 | | --program-suf | --program-su | --program-s) | |
724 | ac_prev=program_suffix ;; | |
725 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
726 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
a0b9e27f | 727 | program_suffix="$ac_optarg" ;; |
10f2d63a VZ |
728 | |
729 | -program-transform-name | --program-transform-name \ | |
730 | | --program-transform-nam | --program-transform-na \ | |
731 | | --program-transform-n | --program-transform- \ | |
732 | | --program-transform | --program-transfor \ | |
733 | | --program-transfo | --program-transf \ | |
734 | | --program-trans | --program-tran \ | |
735 | | --progr-tra | --program-tr | --program-t) | |
736 | ac_prev=program_transform_name ;; | |
737 | -program-transform-name=* | --program-transform-name=* \ | |
738 | | --program-transform-nam=* | --program-transform-na=* \ | |
739 | | --program-transform-n=* | --program-transform-=* \ | |
740 | | --program-transform=* | --program-transfor=* \ | |
741 | | --program-transfo=* | --program-transf=* \ | |
742 | | --program-trans=* | --program-tran=* \ | |
743 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
a0b9e27f | 744 | program_transform_name="$ac_optarg" ;; |
10f2d63a VZ |
745 | |
746 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
747 | | -silent | --silent | --silen | --sile | --sil) | |
748 | silent=yes ;; | |
749 | ||
750 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
751 | ac_prev=sbindir ;; | |
752 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
753 | | --sbi=* | --sb=*) | |
a0b9e27f | 754 | sbindir="$ac_optarg" ;; |
10f2d63a VZ |
755 | |
756 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
757 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
758 | | --sharedst | --shareds | --shared | --share | --shar \ | |
759 | | --sha | --sh) | |
760 | ac_prev=sharedstatedir ;; | |
761 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
762 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
763 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
764 | | --sha=* | --sh=*) | |
a0b9e27f | 765 | sharedstatedir="$ac_optarg" ;; |
10f2d63a VZ |
766 | |
767 | -site | --site | --sit) | |
768 | ac_prev=site ;; | |
769 | -site=* | --site=* | --sit=*) | |
a0b9e27f | 770 | site="$ac_optarg" ;; |
10f2d63a VZ |
771 | |
772 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
773 | ac_prev=srcdir ;; | |
774 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
a0b9e27f | 775 | srcdir="$ac_optarg" ;; |
10f2d63a VZ |
776 | |
777 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
778 | | --syscon | --sysco | --sysc | --sys | --sy) | |
779 | ac_prev=sysconfdir ;; | |
780 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
781 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
a0b9e27f | 782 | sysconfdir="$ac_optarg" ;; |
10f2d63a VZ |
783 | |
784 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
a0b9e27f | 785 | ac_prev=target ;; |
10f2d63a | 786 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
a0b9e27f | 787 | target="$ac_optarg" ;; |
10f2d63a VZ |
788 | |
789 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
790 | verbose=yes ;; | |
791 | ||
a0b9e27f MB |
792 | -version | --version | --versio | --versi | --vers) |
793 | echo "configure generated by autoconf version 2.13" | |
794 | exit 0 ;; | |
10f2d63a VZ |
795 | |
796 | -with-* | --with-*) | |
a0b9e27f | 797 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
10f2d63a | 798 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
799 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
800 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
801 | fi | |
10f2d63a | 802 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
a0b9e27f MB |
803 | case "$ac_option" in |
804 | *=*) ;; | |
10f2d63a VZ |
805 | *) ac_optarg=yes ;; |
806 | esac | |
a0b9e27f | 807 | eval "with_${ac_package}='$ac_optarg'" ;; |
10f2d63a VZ |
808 | |
809 | -without-* | --without-*) | |
a0b9e27f | 810 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
10f2d63a | 811 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
812 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
813 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
814 | fi | |
815 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
816 | eval "with_${ac_package}=no" ;; | |
10f2d63a VZ |
817 | |
818 | --x) | |
819 | # Obsolete; use --with-x. | |
820 | with_x=yes ;; | |
821 | ||
822 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
823 | | --x-incl | --x-inc | --x-in | --x-i) | |
824 | ac_prev=x_includes ;; | |
825 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
826 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
a0b9e27f | 827 | x_includes="$ac_optarg" ;; |
10f2d63a VZ |
828 | |
829 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
830 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
831 | ac_prev=x_libraries ;; | |
832 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
833 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
a0b9e27f | 834 | x_libraries="$ac_optarg" ;; |
10f2d63a | 835 | |
a0b9e27f | 836 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
10f2d63a VZ |
837 | ;; |
838 | ||
839 | *) | |
a0b9e27f MB |
840 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
841 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
842 | fi | |
843 | if test "x$nonopt" != xNONE; then | |
844 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
845 | fi | |
846 | nonopt="$ac_option" | |
10f2d63a VZ |
847 | ;; |
848 | ||
849 | esac | |
850 | done | |
851 | ||
852 | if test -n "$ac_prev"; then | |
a0b9e27f | 853 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
8284b0c5 | 854 | fi |
8284b0c5 | 855 | |
a0b9e27f MB |
856 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
857 | ||
858 | # File descriptor usage: | |
859 | # 0 standard input | |
860 | # 1 file creation | |
861 | # 2 errors and warnings | |
862 | # 3 some systems may open it to /dev/tty | |
863 | # 4 used on the Kubota Titan | |
864 | # 6 checking for... messages and results | |
865 | # 5 compiler messages saved in config.log | |
866 | if test "$silent" = yes; then | |
867 | exec 6>/dev/null | |
868 | else | |
869 | exec 6>&1 | |
870 | fi | |
871 | exec 5>./config.log | |
872 | ||
873 | echo "\ | |
874 | This file contains any messages produced by compilers while | |
875 | running configure, to aid debugging if configure makes a mistake. | |
876 | " 1>&5 | |
8284b0c5 | 877 | |
a0b9e27f MB |
878 | # Strip out --no-create and --no-recursion so they do not pile up. |
879 | # Also quote any args containing shell metacharacters. | |
880 | ac_configure_args= | |
881 | for ac_arg | |
10f2d63a | 882 | do |
a0b9e27f MB |
883 | case "$ac_arg" in |
884 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
885 | | --no-cr | --no-c) ;; | |
886 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
887 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
888 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
889 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
890 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
10f2d63a VZ |
891 | esac |
892 | done | |
893 | ||
a0b9e27f MB |
894 | # NLS nuisances. |
895 | # Only set these to C if already set. These must not be set unconditionally | |
896 | # because not all systems understand e.g. LANG=C (notably SCO). | |
897 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
898 | # Non-C LC_CTYPE values break the ctype check. | |
899 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
900 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
901 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
902 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
247f5006 | 903 | |
a0b9e27f MB |
904 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
905 | rm -rf conftest* confdefs.h | |
906 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
907 | echo > confdefs.h | |
10f2d63a | 908 | |
a0b9e27f MB |
909 | # A filename unique to this package, relative to the directory that |
910 | # configure is in, which we can look for to find out if srcdir is correct. | |
911 | ac_unique_file=wx-config.in | |
10f2d63a VZ |
912 | |
913 | # Find the source files, if location was not specified. | |
914 | if test -z "$srcdir"; then | |
915 | ac_srcdir_defaulted=yes | |
916 | # Try the directory containing this script, then its parent. | |
a0b9e27f MB |
917 | ac_prog=$0 |
918 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
919 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
10f2d63a VZ |
920 | srcdir=$ac_confdir |
921 | if test ! -r $srcdir/$ac_unique_file; then | |
922 | srcdir=.. | |
923 | fi | |
924 | else | |
925 | ac_srcdir_defaulted=no | |
926 | fi | |
927 | if test ! -r $srcdir/$ac_unique_file; then | |
928 | if test "$ac_srcdir_defaulted" = yes; then | |
a0b9e27f | 929 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
10f2d63a | 930 | else |
a0b9e27f | 931 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
10f2d63a VZ |
932 | fi |
933 | fi | |
a0b9e27f | 934 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
328a083c | 935 | |
10f2d63a VZ |
936 | # Prefer explicitly selected file to automatically selected ones. |
937 | if test -z "$CONFIG_SITE"; then | |
938 | if test "x$prefix" != xNONE; then | |
939 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
940 | else | |
941 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
942 | fi | |
943 | fi | |
944 | for ac_site_file in $CONFIG_SITE; do | |
945 | if test -r "$ac_site_file"; then | |
a0b9e27f | 946 | echo "loading site script $ac_site_file" |
10f2d63a VZ |
947 | . "$ac_site_file" |
948 | fi | |
949 | done | |
950 | ||
951 | if test -r "$cache_file"; then | |
a0b9e27f MB |
952 | echo "loading cache $cache_file" |
953 | . $cache_file | |
10f2d63a | 954 | else |
a0b9e27f MB |
955 | echo "creating cache $cache_file" |
956 | > $cache_file | |
10f2d63a VZ |
957 | fi |
958 | ||
959 | ac_ext=c | |
a0b9e27f | 960 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 961 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
962 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
963 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
964 | cross_compiling=$ac_cv_prog_cc_cross | |
965 | ||
966 | ac_exeext= | |
967 | ac_objext=o | |
968 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
969 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
970 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
971 | ac_n= ac_c=' | |
972 | ' ac_t=' ' | |
973 | else | |
974 | ac_n=-n ac_c= ac_t= | |
975 | fi | |
976 | else | |
977 | ac_n= ac_c='\c' ac_t= | |
978 | fi | |
8284b0c5 MB |
979 | |
980 | ||
10f2d63a | 981 | |
7c66a493 VZ |
982 | ac_aux_dir= |
983 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
984 | if test -f $ac_dir/install-sh; then | |
985 | ac_aux_dir=$ac_dir | |
986 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
987 | break | |
988 | elif test -f $ac_dir/install.sh; then | |
989 | ac_aux_dir=$ac_dir | |
990 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
991 | break | |
247f5006 | 992 | fi |
7c66a493 VZ |
993 | done |
994 | if test -z "$ac_aux_dir"; then | |
a0b9e27f | 995 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
7c66a493 | 996 | fi |
a0b9e27f MB |
997 | ac_config_guess=$ac_aux_dir/config.guess |
998 | ac_config_sub=$ac_aux_dir/config.sub | |
999 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
698dcdb6 | 1000 | |
8284b0c5 | 1001 | |
a0b9e27f MB |
1002 | # Do some error checking and defaulting for the host and target type. |
1003 | # The inputs are: | |
1004 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
1005 | # | |
1006 | # The rules are: | |
1007 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
1008 | # same time. | |
1009 | # 2. Host defaults to nonopt. | |
1010 | # 3. If nonopt is not specified, then host defaults to the current host, | |
1011 | # as determined by config.guess. | |
1012 | # 4. Target and build default to nonopt. | |
1013 | # 5. If nonopt is not specified, then target and build default to host. | |
7c66a493 VZ |
1014 | |
1015 | # The aliases save the names the user supplied, while $host etc. | |
1016 | # will get canonicalized. | |
a0b9e27f MB |
1017 | case $host---$target---$nonopt in |
1018 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
1019 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
1020 | esac | |
1021 | ||
1022 | ||
1023 | # Make sure we can run config.sub. | |
1024 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
1025 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
1026 | fi | |
1027 | ||
1028 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
ac0c4cc3 | 1029 | echo "configure:1030: checking host system type" >&5 |
a0b9e27f MB |
1030 | |
1031 | host_alias=$host | |
1032 | case "$host_alias" in | |
1033 | NONE) | |
1034 | case $nonopt in | |
1035 | NONE) | |
1036 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
1037 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
1038 | fi ;; | |
1039 | *) host_alias=$nonopt ;; | |
1040 | esac ;; | |
1041 | esac | |
1042 | ||
1043 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
1044 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1045 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1046 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1047 | echo "$ac_t""$host" 1>&6 | |
1048 | ||
1049 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
ac0c4cc3 | 1050 | echo "configure:1051: checking target system type" >&5 |
a0b9e27f MB |
1051 | |
1052 | target_alias=$target | |
1053 | case "$target_alias" in | |
1054 | NONE) | |
1055 | case $nonopt in | |
1056 | NONE) target_alias=$host_alias ;; | |
1057 | *) target_alias=$nonopt ;; | |
1058 | esac ;; | |
1059 | esac | |
1060 | ||
1061 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
1062 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1063 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1064 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1065 | echo "$ac_t""$target" 1>&6 | |
1066 | ||
1067 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
ac0c4cc3 | 1068 | echo "configure:1069: checking build system type" >&5 |
a0b9e27f MB |
1069 | |
1070 | build_alias=$build | |
1071 | case "$build_alias" in | |
1072 | NONE) | |
1073 | case $nonopt in | |
1074 | NONE) build_alias=$host_alias ;; | |
1075 | *) build_alias=$nonopt ;; | |
1076 | esac ;; | |
1077 | esac | |
1078 | ||
1079 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
1080 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1081 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1082 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1083 | echo "$ac_t""$build" 1>&6 | |
1084 | ||
1085 | test "$host_alias" != "$target_alias" && | |
7c66a493 VZ |
1086 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1087 | NONENONEs,x,x, && | |
1088 | program_prefix=${target_alias}- | |
8284b0c5 MB |
1089 | |
1090 | ||
a0b9e27f | 1091 | |
10f2d63a | 1092 | WX_MAJOR_VERSION_NUMBER=2 |
34bed6d9 VZ |
1093 | WX_MINOR_VERSION_NUMBER=5 |
1094 | WX_RELEASE_NUMBER=0 | |
10f2d63a | 1095 | |
10f2d63a | 1096 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1097 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1098 | |
978f1259 RL |
1099 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER |
1100 | ||
34bed6d9 | 1101 | WX_CURRENT=0 |
6426998c RL |
1102 | WX_REVISION=0 |
1103 | WX_AGE=0 | |
1104 | ||
8284b0c5 MB |
1105 | |
1106 | ||
10f2d63a VZ |
1107 | USE_UNIX=1 |
1108 | USE_WIN32=0 | |
f9bc1684 | 1109 | USE_DOS=0 |
b12915c1 | 1110 | USE_BEOS=0 |
1216f52d | 1111 | USE_MAC=0 |
b12915c1 | 1112 | |
10f2d63a VZ |
1113 | USE_LINUX= |
1114 | USE_SGI= | |
1115 | USE_HPUX= | |
1116 | USE_SYSV= | |
1117 | USE_SVR4= | |
1118 | USE_AIX= | |
1119 | USE_SUN= | |
1120 | USE_SOLARIS= | |
1121 | USE_SUNOS= | |
1122 | USE_ALPHA= | |
1123 | USE_OSF= | |
1124 | USE_BSD= | |
f11bdd03 | 1125 | USE_DARWIN= |
10f2d63a | 1126 | USE_FREEBSD= |
95c8801c | 1127 | USE_OPENBSD= |
f6bcfd97 | 1128 | USE_NETBSD= |
10f2d63a VZ |
1129 | USE_VMS= |
1130 | USE_ULTRIX= | |
10f2d63a VZ |
1131 | USE_DATA_GENERAL= |
1132 | ||
ab9b9eab VZ |
1133 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1134 | ||
ac0c4cc3 | 1135 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" |
10f2d63a | 1136 | |
ac0c4cc3 | 1137 | DEFAULT_wxUSE_COCOA=0 |
10f2d63a | 1138 | DEFAULT_wxUSE_GTK=0 |
1e6feb95 VZ |
1139 | DEFAULT_wxUSE_MAC=0 |
1140 | DEFAULT_wxUSE_MGL=0 | |
1725144d | 1141 | DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1142 | DEFAULT_wxUSE_MOTIF=0 |
1143 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1144 | DEFAULT_wxUSE_PM=0 |
f79bd02d | 1145 | DEFAULT_wxUSE_X11=0 |
10f2d63a | 1146 | |
ac0c4cc3 | 1147 | DEFAULT_DEFAULT_wxUSE_COCOA=0 |
10f2d63a | 1148 | DEFAULT_DEFAULT_wxUSE_GTK=0 |
1e6feb95 VZ |
1149 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1150 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1725144d | 1151 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1152 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1153 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1154 | DEFAULT_DEFAULT_wxUSE_PM=0 |
f79bd02d | 1155 | DEFAULT_DEFAULT_wxUSE_X11=0 |
10f2d63a | 1156 | |
d6a55c4b | 1157 | PROGRAM_EXT= |
3a922bb4 | 1158 | SO_SUFFIX=so |
d6a55c4b | 1159 | |
10f2d63a VZ |
1160 | case "${host}" in |
1161 | *-hp-hpux* ) | |
1162 | USE_HPUX=1 | |
1163 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1164 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1165 | SO_SUFFIX=sl |
a0b9e27f | 1166 | cat >> confdefs.h <<\EOF |
10f2d63a | 1167 | #define __HPUX__ 1 |
a0b9e27f | 1168 | EOF |
10f2d63a VZ |
1169 | |
1170 | ;; | |
1171 | *-*-linux* ) | |
1172 | USE_LINUX=1 | |
a0b9e27f | 1173 | cat >> confdefs.h <<\EOF |
10f2d63a | 1174 | #define __LINUX__ 1 |
a0b9e27f | 1175 | EOF |
10f2d63a VZ |
1176 | |
1177 | TMP=`uname -m` | |
1178 | if test "x$TMP" = "xalpha"; then | |
1179 | USE_ALPHA=1 | |
a0b9e27f | 1180 | cat >> confdefs.h <<\EOF |
10f2d63a | 1181 | #define __ALPHA__ 1 |
a0b9e27f | 1182 | EOF |
10f2d63a VZ |
1183 | |
1184 | fi | |
1185 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1186 | ;; | |
1187 | *-*-irix5* | *-*-irix6* ) | |
1188 | USE_SGI=1 | |
1189 | USE_SVR4=1 | |
a0b9e27f | 1190 | cat >> confdefs.h <<\EOF |
10f2d63a | 1191 | #define __SGI__ 1 |
a0b9e27f | 1192 | EOF |
10f2d63a | 1193 | |
a0b9e27f | 1194 | cat >> confdefs.h <<\EOF |
10f2d63a | 1195 | #define __SVR4__ 1 |
a0b9e27f | 1196 | EOF |
10f2d63a VZ |
1197 | |
1198 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1199 | ;; | |
1200 | *-*-solaris2* ) | |
1201 | USE_SUN=1 | |
1202 | USE_SOLARIS=1 | |
1203 | USE_SVR4=1 | |
a0b9e27f | 1204 | cat >> confdefs.h <<\EOF |
10f2d63a | 1205 | #define __SUN__ 1 |
a0b9e27f | 1206 | EOF |
10f2d63a | 1207 | |
a0b9e27f | 1208 | cat >> confdefs.h <<\EOF |
10f2d63a | 1209 | #define __SOLARIS__ 1 |
a0b9e27f | 1210 | EOF |
10f2d63a | 1211 | |
a0b9e27f | 1212 | cat >> confdefs.h <<\EOF |
10f2d63a | 1213 | #define __SVR4__ 1 |
a0b9e27f | 1214 | EOF |
10f2d63a VZ |
1215 | |
1216 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1217 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1218 | ;; |
1219 | *-*-sunos4* ) | |
1220 | USE_SUN=1 | |
1221 | USE_SUNOS=1 | |
1222 | USE_BSD=1 | |
a0b9e27f | 1223 | cat >> confdefs.h <<\EOF |
10f2d63a | 1224 | #define __SUN__ 1 |
a0b9e27f | 1225 | EOF |
10f2d63a | 1226 | |
a0b9e27f | 1227 | cat >> confdefs.h <<\EOF |
10f2d63a | 1228 | #define __SUNOS__ 1 |
a0b9e27f | 1229 | EOF |
10f2d63a | 1230 | |
a0b9e27f | 1231 | cat >> confdefs.h <<\EOF |
10f2d63a | 1232 | #define __BSD__ 1 |
a0b9e27f | 1233 | EOF |
10f2d63a VZ |
1234 | |
1235 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1236 | ;; | |
f6bcfd97 | 1237 | *-*-freebsd*) |
10f2d63a VZ |
1238 | USE_BSD=1 |
1239 | USE_FREEBSD=1 | |
a0b9e27f | 1240 | cat >> confdefs.h <<\EOF |
10f2d63a | 1241 | #define __FREEBSD__ 1 |
a0b9e27f | 1242 | EOF |
10f2d63a | 1243 | |
a0b9e27f | 1244 | cat >> confdefs.h <<\EOF |
10f2d63a | 1245 | #define __BSD__ 1 |
a0b9e27f | 1246 | EOF |
95c8801c VS |
1247 | |
1248 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1249 | ;; | |
1250 | *-*-openbsd*) | |
1251 | USE_BSD=1 | |
1252 | USE_OPENBSD=1 | |
a0b9e27f | 1253 | cat >> confdefs.h <<\EOF |
2b5f62a0 | 1254 | #define __OPENBSD__ 1 |
a0b9e27f | 1255 | EOF |
95c8801c | 1256 | |
a0b9e27f | 1257 | cat >> confdefs.h <<\EOF |
2b5f62a0 | 1258 | #define __BSD__ 1 |
a0b9e27f | 1259 | EOF |
f6bcfd97 BP |
1260 | |
1261 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1262 | ;; | |
1263 | *-*-netbsd*) | |
1264 | USE_BSD=1 | |
1265 | USE_NETBSD=1 | |
a0b9e27f | 1266 | cat >> confdefs.h <<\EOF |
2b5f62a0 | 1267 | #define __NETBSD__ 1 |
a0b9e27f | 1268 | EOF |
f6bcfd97 | 1269 | |
a0b9e27f | 1270 | cat >> confdefs.h <<\EOF |
2b5f62a0 | 1271 | #define __BSD__ 1 |
a0b9e27f | 1272 | EOF |
10f2d63a VZ |
1273 | |
1274 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1275 | ;; | |
1276 | *-*-osf* ) | |
1277 | USE_ALPHA=1 | |
1278 | USE_OSF=1 | |
a0b9e27f | 1279 | cat >> confdefs.h <<\EOF |
10f2d63a | 1280 | #define __ALPHA__ 1 |
a0b9e27f | 1281 | EOF |
10f2d63a | 1282 | |
a0b9e27f | 1283 | cat >> confdefs.h <<\EOF |
10f2d63a | 1284 | #define __OSF__ 1 |
a0b9e27f | 1285 | EOF |
10f2d63a VZ |
1286 | |
1287 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1288 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1289 | ;; |
1290 | *-*-dgux5* ) | |
1291 | USE_ALPHA=1 | |
1292 | USE_SVR4=1 | |
a0b9e27f | 1293 | cat >> confdefs.h <<\EOF |
10f2d63a | 1294 | #define __ALPHA__ 1 |
a0b9e27f | 1295 | EOF |
10f2d63a | 1296 | |
a0b9e27f | 1297 | cat >> confdefs.h <<\EOF |
10f2d63a | 1298 | #define __SVR4__ 1 |
a0b9e27f | 1299 | EOF |
10f2d63a VZ |
1300 | |
1301 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1302 | ;; | |
1303 | *-*-sysv5* ) | |
1304 | USE_SYSV=1 | |
1305 | USE_SVR4=1 | |
a0b9e27f | 1306 | cat >> confdefs.h <<\EOF |
10f2d63a | 1307 | #define __SYSV__ 1 |
a0b9e27f | 1308 | EOF |
10f2d63a | 1309 | |
a0b9e27f | 1310 | cat >> confdefs.h <<\EOF |
10f2d63a | 1311 | #define __SVR4__ 1 |
a0b9e27f | 1312 | EOF |
10f2d63a VZ |
1313 | |
1314 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1315 | ;; | |
1316 | *-*-aix* ) | |
1317 | USE_AIX=1 | |
1318 | USE_SYSV=1 | |
1319 | USE_SVR4=1 | |
2b5f62a0 | 1320 | SO_SUFFIX=a |
a0b9e27f | 1321 | cat >> confdefs.h <<\EOF |
10f2d63a | 1322 | #define __AIX__ 1 |
a0b9e27f | 1323 | EOF |
10f2d63a | 1324 | |
a0b9e27f | 1325 | cat >> confdefs.h <<\EOF |
10f2d63a | 1326 | #define __SYSV__ 1 |
a0b9e27f | 1327 | EOF |
10f2d63a | 1328 | |
a0b9e27f | 1329 | cat >> confdefs.h <<\EOF |
10f2d63a | 1330 | #define __SVR4__ 1 |
a0b9e27f | 1331 | EOF |
10f2d63a VZ |
1332 | |
1333 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1334 | ;; | |
1335 | ||
1c8183e2 | 1336 | *-*-cygwin* | *-*-mingw32* ) |
17234b26 | 1337 | SO_SUFFIX=dll |
cf27ef00 | 1338 | PROGRAM_EXT=".exe" |
7b7a7637 | 1339 | RESCOMP=windres |
10f2d63a VZ |
1340 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1341 | ;; | |
1342 | ||
f9bc1684 VS |
1343 | *-pc-msdosdjgpp ) |
1344 | USE_UNIX=0 | |
1345 | USE_DOS=1 | |
a0b9e27f | 1346 | cat >> confdefs.h <<\EOF |
f9bc1684 | 1347 | #define __DOS__ 1 |
a0b9e27f | 1348 | EOF |
f9bc1684 VS |
1349 | |
1350 | PROGRAM_EXT=".exe" | |
1351 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
24f5e003 | 1352 | LIBS="$LIBS -lstdc++" |
f9bc1684 VS |
1353 | ;; |
1354 | ||
6fa882bd | 1355 | *-pc-os2_emx | *-pc-os2-emx ) |
a0b9e27f | 1356 | cat >> confdefs.h <<\EOF |
10f2d63a | 1357 | #define __EMX__ 1 |
a0b9e27f | 1358 | EOF |
10f2d63a | 1359 | |
cf27ef00 | 1360 | PROGRAM_EXT=".exe" |
e07802fc | 1361 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1362 | ;; |
1363 | ||
d08b457b GD |
1364 | powerpc-*-darwin* ) |
1365 | USE_BSD=1 | |
f11bdd03 | 1366 | USE_DARWIN=1 |
3a922bb4 | 1367 | SO_SUFFIX=dylib |
a0b9e27f | 1368 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1369 | #define __BSD__ 1 |
a0b9e27f | 1370 | EOF |
b4085ce6 | 1371 | |
a0b9e27f | 1372 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1373 | #define __DARWIN__ 1 |
a0b9e27f | 1374 | EOF |
d08b457b | 1375 | |
a0b9e27f | 1376 | cat >> confdefs.h <<\EOF |
d08b457b | 1377 | #define __POWERPC__ 1 |
82d43113 GD |
1378 | EOF |
1379 | ||
1380 | cat >> confdefs.h <<\EOF | |
1381 | #define TARGET_CARBON 1 | |
a0b9e27f | 1382 | EOF |
b4085ce6 GD |
1383 | |
1384 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1385 | ;; | |
1386 | ||
b12915c1 VZ |
1387 | *-*-beos* ) |
1388 | USE_BEOS=1 | |
a0b9e27f | 1389 | cat >> confdefs.h <<\EOF |
b12915c1 | 1390 | #define __BEOS__ 1 |
a0b9e27f | 1391 | EOF |
b12915c1 VZ |
1392 | |
1393 | ;; | |
1394 | ||
10f2d63a | 1395 | *) |
a0b9e27f | 1396 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1397 | esac |
1398 | ||
8284b0c5 MB |
1399 | |
1400 | ||
1401 | ||
1402 | wx_arg_cache_file="configarg.cache" | |
1403 | echo "loading argument cache $wx_arg_cache_file" | |
10f2d63a VZ |
1404 | rm -f ${wx_arg_cache_file}.tmp |
1405 | touch ${wx_arg_cache_file}.tmp | |
1406 | touch ${wx_arg_cache_file} | |
a0b9e27f | 1407 | |
10f2d63a VZ |
1408 | |
1409 | DEBUG_CONFIGURE=0 | |
1410 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1411 | DEFAULT_wxUSE_UNIVERSAL=no |
1412 | ||
d8356fa3 VZ |
1413 | DEFAULT_wxUSE_NANOX=no |
1414 | ||
10f2d63a VZ |
1415 | DEFAULT_wxUSE_THREADS=yes |
1416 | ||
1417 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1418 | DEFAULT_wxUSE_SONAME=no |
1e6feb95 | 1419 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1420 | DEFAULT_wxUSE_PROFILE=no |
1421 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1422 | DEFAULT_wxUSE_NO_RTTI=no |
1423 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1424 | DEFAULT_wxUSE_PERMISSIVE=no |
1425 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1426 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1427 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1428 | DEFAULT_wxUSE_MEM_TRACING=no | |
1429 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1430 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1431 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1432 | DEFAULT_wxUSE_APPLE_IEEE=no |
1433 | ||
1434 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1435 | DEFAULT_wxUSE_LOGWINDOW=no |
1436 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 1437 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
1438 | |
1439 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1440 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1441 | |
3e44f09d | 1442 | DEFAULT_wxUSE_REGEX=no |
10f2d63a VZ |
1443 | DEFAULT_wxUSE_ZLIB=no |
1444 | DEFAULT_wxUSE_LIBPNG=no | |
1445 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1446 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1447 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1448 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1449 | |
eb4efbdc | 1450 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1451 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1452 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1453 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1454 | DEFAULT_wxUSE_DATETIME=no | |
1455 | DEFAULT_wxUSE_TIMEDATE=no | |
1456 | DEFAULT_wxUSE_TIMER=no | |
1457 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1458 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1459 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 1460 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 1461 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1462 | DEFAULT_wxUSE_WAVE=no |
1463 | DEFAULT_wxUSE_INTL=no | |
1464 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1465 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1466 | DEFAULT_wxUSE_STREAMS=no |
1467 | DEFAULT_wxUSE_SOCKETS=no | |
3bce6687 JS |
1468 | DEFAULT_wxUSE_OLE=no |
1469 | DEFAULT_wxUSE_DATAOBJ=no | |
10f2d63a | 1470 | DEFAULT_wxUSE_DIALUP_MANAGER=no |
10f2d63a | 1471 | DEFAULT_wxUSE_JOYSTICK=no |
6bff71f8 | 1472 | DEFAULT_wxUSE_DYNLIB_CLASS=no |
0b9ab0bd | 1473 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
10f2d63a | 1474 | DEFAULT_wxUSE_LONGLONG=no |
e8f65ba6 | 1475 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1476 | |
1477 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1478 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1479 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1480 | ||
1481 | DEFAULT_wxUSE_X_RESOURCES=no | |
1482 | DEFAULT_wxUSE_CLIPBOARD=no | |
1483 | DEFAULT_wxUSE_TOOLTIPS=no | |
1484 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1485 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1486 | DEFAULT_wxUSE_SPLINES=no |
1487 | ||
1488 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1489 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1490 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1491 | ||
1492 | DEFAULT_wxUSE_PROLOGIO=no | |
1493 | DEFAULT_wxUSE_RESOURCES=no | |
1494 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1495 | DEFAULT_wxUSE_IPC=no | |
1496 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 1497 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 1498 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 1499 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 1500 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 1501 | DEFAULT_wxUSE_MIMETYPE=no |
4cdb0ab0 VS |
1502 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no |
1503 | DEFAULT_wxUSE_PROTOCOL=no | |
1504 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
1505 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
1506 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
1507 | DEFAULT_wxUSE_URL=no | |
3bd8fb5f | 1508 | |
10f2d63a | 1509 | DEFAULT_wxUSE_COMMONDLGS=no |
1e6feb95 VZ |
1510 | DEFAULT_wxUSE_CHOICEDLG=no |
1511 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1512 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 1513 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 1514 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
1515 | DEFAULT_wxUSE_FONTDLG=no |
1516 | DEFAULT_wxUSE_MSGDLG=no | |
1517 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 1518 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 1519 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
1520 | DEFAULT_wxUSE_STARTUP_TIPS=no |
1521 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
1522 | DEFAULT_wxUSE_WIZARDDLG=no |
1523 | ||
1e6feb95 | 1524 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1525 | DEFAULT_wxUSE_MINIFRAME=no |
1526 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1527 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1528 | DEFAULT_wxUSE_FS_INET=no |
1529 | DEFAULT_wxUSE_FS_ZIP=no | |
1530 | DEFAULT_wxUSE_BUSYINFO=no | |
1531 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1532 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1533 | |
1534 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1535 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1536 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1537 | DEFAULT_wxUSE_CALCTRL=no |
1538 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1539 | DEFAULT_wxUSE_CHECKBOX=no |
1540 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1541 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a | 1542 | DEFAULT_wxUSE_COMBOBOX=no |
da494b40 | 1543 | DEFAULT_wxUSE_DISPLAY=no |
10f2d63a VZ |
1544 | DEFAULT_wxUSE_GAUGE=no |
1545 | DEFAULT_wxUSE_GRID=no | |
1546 | DEFAULT_wxUSE_NEW_GRID=no | |
1547 | DEFAULT_wxUSE_IMAGLIST=no | |
1548 | DEFAULT_wxUSE_LISTBOX=no | |
1549 | DEFAULT_wxUSE_LISTCTRL=no | |
1550 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 1551 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
1552 | DEFAULT_wxUSE_RADIOBOX=no |
1553 | DEFAULT_wxUSE_RADIOBTN=no | |
1554 | DEFAULT_wxUSE_SASH=no | |
1555 | DEFAULT_wxUSE_SCROLLBAR=no | |
1556 | DEFAULT_wxUSE_SLIDER=no | |
1557 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1558 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1559 | DEFAULT_wxUSE_SPLITTER=no |
1560 | DEFAULT_wxUSE_STATBMP=no | |
1561 | DEFAULT_wxUSE_STATBOX=no | |
1562 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1563 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1564 | DEFAULT_wxUSE_STATUSBAR=yes |
1565 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1566 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1567 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1568 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1569 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1570 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 1571 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 1572 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 1573 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
1574 | |
1575 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1576 | DEFAULT_wxUSE_UNICODE_MSLU=no |
10f2d63a VZ |
1577 | DEFAULT_wxUSE_WCSRTOMBS=no |
1578 | ||
edae8572 | 1579 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 1580 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1581 | DEFAULT_wxUSE_GIF=no |
1582 | DEFAULT_wxUSE_PCX=no | |
1583 | DEFAULT_wxUSE_PNM=no | |
4b6b4dfc | 1584 | DEFAULT_wxUSE_IFF=no |
0046ff7c | 1585 | DEFAULT_wxUSE_XPM=no |
658974ae | 1586 | DEFAULT_wxUSE_ICO_CUR=no |
10f2d63a | 1587 | else |
1e6feb95 VZ |
1588 | DEFAULT_wxUSE_UNIVERSAL=no |
1589 | ||
d8356fa3 VZ |
1590 | DEFAULT_wxUSE_NANOX=no |
1591 | ||
10f2d63a VZ |
1592 | DEFAULT_wxUSE_THREADS=yes |
1593 | ||
1594 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1595 | DEFAULT_wxUSE_SONAME=no |
10f2d63a VZ |
1596 | DEFAULT_wxUSE_OPTIMISE=yes |
1597 | DEFAULT_wxUSE_PROFILE=no | |
1598 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1599 | DEFAULT_wxUSE_NO_RTTI=no |
1600 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1601 | DEFAULT_wxUSE_PERMISSIVE=no |
1602 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1603 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1604 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1605 | DEFAULT_wxUSE_MEM_TRACING=no | |
1606 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1607 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1608 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1609 | DEFAULT_wxUSE_APPLE_IEEE=yes |
1610 | ||
1611 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1612 | DEFAULT_wxUSE_LOGWINDOW=yes |
1613 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 1614 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
1615 | |
1616 | DEFAULT_wxUSE_GUI=yes | |
1617 | ||
831b3152 | 1618 | DEFAULT_wxUSE_REGEX=yes |
10f2d63a VZ |
1619 | DEFAULT_wxUSE_ZLIB=yes |
1620 | DEFAULT_wxUSE_LIBPNG=yes | |
1621 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1622 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1623 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1624 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1625 | |
eb4efbdc | 1626 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1627 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1628 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1629 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1630 | DEFAULT_wxUSE_DATETIME=yes | |
1631 | DEFAULT_wxUSE_TIMEDATE=no | |
1632 | DEFAULT_wxUSE_TIMER=yes | |
1633 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1634 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1635 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 1636 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 1637 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1638 | DEFAULT_wxUSE_WAVE=no |
1639 | DEFAULT_wxUSE_INTL=yes | |
1640 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1641 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1642 | DEFAULT_wxUSE_STREAMS=yes |
1643 | DEFAULT_wxUSE_SOCKETS=yes | |
3bce6687 JS |
1644 | DEFAULT_wxUSE_OLE=yes |
1645 | DEFAULT_wxUSE_DATAOBJ=yes | |
10f2d63a | 1646 | DEFAULT_wxUSE_DIALUP_MANAGER=yes |
10f2d63a | 1647 | DEFAULT_wxUSE_JOYSTICK=yes |
6bff71f8 | 1648 | DEFAULT_wxUSE_DYNLIB_CLASS=yes |
9337b578 | 1649 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes |
b685cd9b | 1650 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1651 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1652 | |
1653 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1654 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1655 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1656 | ||
1657 | DEFAULT_wxUSE_X_RESOURCES=no | |
1658 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1659 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1660 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1661 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1662 | DEFAULT_wxUSE_SPLINES=yes |
1663 | ||
1664 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1665 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1666 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1667 | ||
2b5f62a0 VZ |
1668 | DEFAULT_wxUSE_PROLOGIO=no |
1669 | DEFAULT_wxUSE_RESOURCES=no | |
10f2d63a VZ |
1670 | DEFAULT_wxUSE_CONSTRAINTS=yes |
1671 | DEFAULT_wxUSE_IPC=yes | |
1672 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 1673 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 1674 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 1675 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 1676 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 1677 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 1678 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
4cdb0ab0 VS |
1679 | DEFAULT_wxUSE_PROTOCOL=yes |
1680 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
1681 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
1682 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
1683 | DEFAULT_wxUSE_URL=yes | |
10f2d63a VZ |
1684 | |
1685 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1686 | DEFAULT_wxUSE_CHOICEDLG=yes |
1687 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1688 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 1689 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 1690 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
1691 | DEFAULT_wxUSE_FONTDLG=yes |
1692 | DEFAULT_wxUSE_MSGDLG=yes | |
1693 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 1694 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 1695 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
1696 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
1697 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
1698 | DEFAULT_wxUSE_WIZARDDLG=yes |
1699 | ||
1e6feb95 | 1700 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1701 | DEFAULT_wxUSE_MINIFRAME=yes |
1702 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1703 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1704 | DEFAULT_wxUSE_FS_INET=yes |
1705 | DEFAULT_wxUSE_FS_ZIP=yes | |
1706 | DEFAULT_wxUSE_BUSYINFO=yes | |
1707 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1708 | DEFAULT_wxUSE_VALIDATORS=yes | |
1709 | ||
1710 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1711 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1712 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1713 | DEFAULT_wxUSE_CALCTRL=yes |
1714 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1715 | DEFAULT_wxUSE_CHECKBOX=yes |
1716 | DEFAULT_wxUSE_CHECKLST=yes | |
1717 | DEFAULT_wxUSE_CHOICE=yes | |
1718 | DEFAULT_wxUSE_COMBOBOX=yes | |
da494b40 | 1719 | DEFAULT_wxUSE_DISPLAY=no |
10f2d63a VZ |
1720 | DEFAULT_wxUSE_GAUGE=yes |
1721 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1722 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1723 | DEFAULT_wxUSE_IMAGLIST=yes |
1724 | DEFAULT_wxUSE_LISTBOX=yes | |
1725 | DEFAULT_wxUSE_LISTCTRL=yes | |
1726 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 1727 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
1728 | DEFAULT_wxUSE_RADIOBOX=yes |
1729 | DEFAULT_wxUSE_RADIOBTN=yes | |
1730 | DEFAULT_wxUSE_SASH=yes | |
1731 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1732 | DEFAULT_wxUSE_SLIDER=yes | |
1733 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1734 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1735 | DEFAULT_wxUSE_SPLITTER=yes |
1736 | DEFAULT_wxUSE_STATBMP=yes | |
1737 | DEFAULT_wxUSE_STATBOX=yes | |
1738 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1739 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1740 | DEFAULT_wxUSE_STATUSBAR=yes |
1741 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1742 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1743 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1744 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1745 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1746 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 1747 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 1748 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 1749 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
1750 | |
1751 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1752 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
10f2d63a VZ |
1753 | DEFAULT_wxUSE_WCSRTOMBS=no |
1754 | ||
edae8572 | 1755 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 1756 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1757 | DEFAULT_wxUSE_GIF=yes |
1758 | DEFAULT_wxUSE_PCX=yes | |
cc0e8480 | 1759 | DEFAULT_wxUSE_IFF=no |
10f2d63a | 1760 | DEFAULT_wxUSE_PNM=yes |
0046ff7c | 1761 | DEFAULT_wxUSE_XPM=yes |
658974ae | 1762 | DEFAULT_wxUSE_ICO_CUR=yes |
10f2d63a VZ |
1763 | fi |
1764 | ||
8284b0c5 MB |
1765 | |
1766 | ||
10f2d63a | 1767 | for toolkit in `echo $ALL_TOOLKITS`; do |
d74f4b5a VZ |
1768 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` |
1769 | if test "x$LINE" != "x" ; then | |
10f2d63a VZ |
1770 | has_toolkit_in_cache=1 |
1771 | eval "DEFAULT_$LINE" | |
1772 | eval "CACHE_$toolkit=1" | |
1773 | fi | |
1774 | done | |
1775 | ||
8284b0c5 MB |
1776 | |
1777 | ||
5005acfe VZ |
1778 | enablestring= |
1779 | echo $ac_n "checking for --${enablestring:-enable}-gui""... $ac_c" 1>&6 | |
ac0c4cc3 | 1780 | echo "configure:1781: checking for --${enablestring:-enable}-gui" >&5 |
10f2d63a VZ |
1781 | no_cache=0 |
1782 | # Check whether --enable-gui or --disable-gui was given. | |
1783 | if test "${enable_gui+set}" = set; then | |
1784 | enableval="$enable_gui" | |
a0b9e27f | 1785 | |
10f2d63a VZ |
1786 | if test "$enableval" = yes; then |
1787 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1788 | else | |
1789 | ac_cv_use_gui='wxUSE_GUI=no' | |
1790 | fi | |
a0b9e27f | 1791 | |
10f2d63a | 1792 | else |
a0b9e27f | 1793 | |
10f2d63a VZ |
1794 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1795 | if test "x$LINE" != x ; then | |
1796 | eval "DEFAULT_$LINE" | |
1797 | else | |
1798 | no_cache=1 | |
1799 | fi | |
1800 | ||
1801 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
a0b9e27f MB |
1802 | |
1803 | fi | |
10f2d63a VZ |
1804 | |
1805 | ||
1806 | eval "$ac_cv_use_gui" | |
1807 | if test "$no_cache" != 1; then | |
1808 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1809 | fi | |
1810 | ||
1811 | if test "$wxUSE_GUI" = yes; then | |
a0b9e27f | 1812 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1813 | else |
a0b9e27f | 1814 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1815 | fi |
a0b9e27f | 1816 | |
10f2d63a | 1817 | |
b12915c1 | 1818 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1819 | |
8284b0c5 | 1820 | |
5005acfe VZ |
1821 | enablestring= |
1822 | echo $ac_n "checking for --${enablestring:-enable}-universal""... $ac_c" 1>&6 | |
ac0c4cc3 | 1823 | echo "configure:1824: checking for --${enablestring:-enable}-universal" >&5 |
1e6feb95 VZ |
1824 | no_cache=0 |
1825 | # Check whether --enable-universal or --disable-universal was given. | |
1826 | if test "${enable_universal+set}" = set; then | |
1827 | enableval="$enable_universal" | |
a0b9e27f | 1828 | |
1e6feb95 VZ |
1829 | if test "$enableval" = yes; then |
1830 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1831 | else | |
1832 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1833 | fi | |
a0b9e27f | 1834 | |
1e6feb95 | 1835 | else |
a0b9e27f | 1836 | |
1e6feb95 VZ |
1837 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` |
1838 | if test "x$LINE" != x ; then | |
1839 | eval "DEFAULT_$LINE" | |
1840 | else | |
1841 | no_cache=1 | |
1842 | fi | |
1843 | ||
1844 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
a0b9e27f MB |
1845 | |
1846 | fi | |
1e6feb95 VZ |
1847 | |
1848 | ||
1849 | eval "$ac_cv_use_universal" | |
1850 | if test "$no_cache" != 1; then | |
1851 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1852 | fi | |
1853 | ||
1854 | if test "$wxUSE_UNIVERSAL" = yes; then | |
a0b9e27f | 1855 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 1856 | else |
a0b9e27f | 1857 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 1858 | fi |
a0b9e27f | 1859 | |
10f2d63a VZ |
1860 | # Check whether --with-gtk or --without-gtk was given. |
1861 | if test "${with_gtk+set}" = set; then | |
1862 | withval="$with_gtk" | |
1863 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1864 | fi |
10f2d63a VZ |
1865 | |
1866 | # Check whether --with-motif or --without-motif was given. | |
1867 | if test "${with_motif+set}" = set; then | |
1868 | withval="$with_motif" | |
1869 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1870 | fi |
10f2d63a | 1871 | |
b4085ce6 GD |
1872 | # Check whether --with-mac or --without-mac was given. |
1873 | if test "${with_mac+set}" = set; then | |
1874 | withval="$with_mac" | |
1875 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
a0b9e27f | 1876 | fi |
b4085ce6 | 1877 | |
ac0c4cc3 DE |
1878 | # Check whether --with-cocoa or --without-cocoa was given. |
1879 | if test "${with_cocoa+set}" = set; then | |
1880 | withval="$with_cocoa" | |
1881 | wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1 | |
1882 | fi | |
1883 | ||
10f2d63a VZ |
1884 | # Check whether --with-wine or --without-wine was given. |
1885 | if test "${with_wine+set}" = set; then | |
1886 | withval="$with_wine" | |
89e6bf6d | 1887 | wxUSE_WINE="$withval" CACHE_WINE=1 |
a0b9e27f | 1888 | fi |
10f2d63a | 1889 | |
77e13408 RL |
1890 | # Check whether --with-msw or --without-msw was given. |
1891 | if test "${with_msw+set}" = set; then | |
1892 | withval="$with_msw" | |
b4efce5e | 1893 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 |
a0b9e27f | 1894 | fi |
10f2d63a | 1895 | |
e07802fc VZ |
1896 | # Check whether --with-pm or --without-pm was given. |
1897 | if test "${with_pm+set}" = set; then | |
1898 | withval="$with_pm" | |
1899 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1900 | fi |
698dcdb6 | 1901 | |
1e6feb95 VZ |
1902 | # Check whether --with-mgl or --without-mgl was given. |
1903 | if test "${with_mgl+set}" = set; then | |
1904 | withval="$with_mgl" | |
6c657b52 | 1905 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 |
a0b9e27f | 1906 | fi |
1e6feb95 | 1907 | |
1725144d RR |
1908 | # Check whether --with-microwin or --without-microwin was given. |
1909 | if test "${with_microwin+set}" = set; then | |
1910 | withval="$with_microwin" | |
1911 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1912 | fi |
1725144d | 1913 | |
f79bd02d JS |
1914 | # Check whether --with-x11 or --without-x11 was given. |
1915 | if test "${with_x11+set}" = set; then | |
1916 | withval="$with_x11" | |
3c011993 | 1917 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 |
a0b9e27f | 1918 | fi |
10f2d63a | 1919 | |
a0b9e27f | 1920 | |
5005acfe VZ |
1921 | enablestring= |
1922 | echo $ac_n "checking for --${enablestring:-enable}-nanox""... $ac_c" 1>&6 | |
ac0c4cc3 | 1923 | echo "configure:1924: checking for --${enablestring:-enable}-nanox" >&5 |
d8356fa3 | 1924 | no_cache=0 |
ba875e66 VZ |
1925 | # Check whether --enable-nanox or --disable-nanox was given. |
1926 | if test "${enable_nanox+set}" = set; then | |
1927 | enableval="$enable_nanox" | |
a0b9e27f | 1928 | |
d8356fa3 | 1929 | if test "$enableval" = yes; then |
ba875e66 | 1930 | ac_cv_use_nanox='wxUSE_NANOX=yes' |
d8356fa3 | 1931 | else |
ba875e66 | 1932 | ac_cv_use_nanox='wxUSE_NANOX=no' |
d8356fa3 | 1933 | fi |
a0b9e27f | 1934 | |
d8356fa3 | 1935 | else |
a0b9e27f | 1936 | |
d8356fa3 VZ |
1937 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` |
1938 | if test "x$LINE" != x ; then | |
1939 | eval "DEFAULT_$LINE" | |
1940 | else | |
1941 | no_cache=1 | |
1942 | fi | |
1943 | ||
ba875e66 | 1944 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX |
a0b9e27f MB |
1945 | |
1946 | fi | |
d8356fa3 VZ |
1947 | |
1948 | ||
ba875e66 | 1949 | eval "$ac_cv_use_nanox" |
d8356fa3 | 1950 | if test "$no_cache" != 1; then |
ba875e66 | 1951 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp |
d8356fa3 VZ |
1952 | fi |
1953 | ||
1954 | if test "$wxUSE_NANOX" = yes; then | |
a0b9e27f | 1955 | echo "$ac_t""yes" 1>&6 |
d8356fa3 | 1956 | else |
a0b9e27f | 1957 | echo "$ac_t""no" 1>&6 |
d8356fa3 | 1958 | fi |
a0b9e27f | 1959 | |
8284b0c5 | 1960 | |
d74f4b5a | 1961 | |
5005acfe VZ |
1962 | enablestring= |
1963 | echo $ac_n "checking for --${enablestring:-enable}-gtk2""... $ac_c" 1>&6 | |
ac0c4cc3 | 1964 | echo "configure:1965: checking for --${enablestring:-enable}-gtk2" >&5 |
d74f4b5a VZ |
1965 | no_cache=0 |
1966 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
8168de4c VZ |
1967 | if test "${enable_gtk2+set}" = set; then |
1968 | enableval="$enable_gtk2" | |
a0b9e27f | 1969 | |
d74f4b5a VZ |
1970 | if test "$enableval" = yes; then |
1971 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
1972 | else | |
1973 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
1974 | fi | |
a0b9e27f | 1975 | |
10f2d63a | 1976 | else |
a0b9e27f | 1977 | |
d74f4b5a VZ |
1978 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` |
1979 | if test "x$LINE" != x ; then | |
1980 | eval "DEFAULT_$LINE" | |
1981 | else | |
1982 | no_cache=1 | |
1983 | fi | |
1984 | ||
1985 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
a0b9e27f MB |
1986 | |
1987 | fi | |
52127426 | 1988 | |
328a083c | 1989 | |
d74f4b5a VZ |
1990 | eval "$ac_cv_use_gtk2" |
1991 | if test "$no_cache" != 1; then | |
1992 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
1993 | fi | |
1994 | ||
1995 | if test "$wxUSE_GTK2" = yes; then | |
a0b9e27f | 1996 | echo "$ac_t""yes" 1>&6 |
d74f4b5a | 1997 | else |
a0b9e27f | 1998 | echo "$ac_t""no" 1>&6 |
d74f4b5a | 1999 | fi |
a0b9e27f | 2000 | |
d74f4b5a | 2001 | |
5c6fa7d2 | 2002 | |
a0b9e27f | 2003 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
ac0c4cc3 | 2004 | echo "configure:2005: checking for --with-libpng" >&5 |
8284b0c5 | 2005 | no_cache=0 |
a0b9e27f | 2006 | # Check whether --with-libpng or --without-libpng was given. |
b12915c1 VZ |
2007 | if test "${with_libpng+set}" = set; then |
2008 | withval="$with_libpng" | |
a0b9e27f | 2009 | |
10f2d63a | 2010 | if test "$withval" = yes; then |
b12915c1 | 2011 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 2012 | elif test "$withval" = no; then |
b12915c1 | 2013 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
2014 | elif test "$withval" = sys; then |
2015 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
2016 | elif test "$withval" = builtin; then |
2017 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 2018 | else |
a0b9e27f | 2019 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2020 | fi |
a0b9e27f | 2021 | |
10f2d63a | 2022 | else |
a0b9e27f | 2023 | |
b12915c1 | 2024 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2025 | if test "x$LINE" != x ; then |
2026 | eval "DEFAULT_$LINE" | |
2027 | else | |
2028 | no_cache=1 | |
2029 | fi | |
2030 | ||
b12915c1 | 2031 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
a0b9e27f MB |
2032 | |
2033 | fi | |
10f2d63a VZ |
2034 | |
2035 | ||
b12915c1 | 2036 | eval "$ac_cv_use_libpng" |
10f2d63a | 2037 | if test "$no_cache" != 1; then |
b12915c1 | 2038 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2039 | fi |
2040 | ||
b12915c1 | 2041 | if test "$wxUSE_LIBPNG" = yes; then |
a0b9e27f | 2042 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2043 | elif test "$wxUSE_LIBPNG" = no; then |
a0b9e27f | 2044 | echo "$ac_t""no" 1>&6 |
422107f9 | 2045 | elif test "$wxUSE_LIBPNG" = sys; then |
a0b9e27f | 2046 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2047 | elif test "$wxUSE_LIBPNG" = builtin; then |
a0b9e27f | 2048 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 2049 | else |
a0b9e27f | 2050 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2051 | fi |
a0b9e27f | 2052 | |
10f2d63a | 2053 | |
a0b9e27f | 2054 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
ac0c4cc3 | 2055 | echo "configure:2056: checking for --with-libjpeg" >&5 |
10f2d63a | 2056 | no_cache=0 |
a0b9e27f | 2057 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
2058 | if test "${with_libjpeg+set}" = set; then |
2059 | withval="$with_libjpeg" | |
a0b9e27f | 2060 | |
10f2d63a | 2061 | if test "$withval" = yes; then |
b12915c1 | 2062 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 2063 | elif test "$withval" = no; then |
b12915c1 | 2064 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
2065 | elif test "$withval" = sys; then |
2066 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
2067 | elif test "$withval" = builtin; then |
2068 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 2069 | else |
a0b9e27f | 2070 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2071 | fi |
a0b9e27f | 2072 | |
10f2d63a | 2073 | else |
a0b9e27f | 2074 | |
b12915c1 | 2075 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2076 | if test "x$LINE" != x ; then |
2077 | eval "DEFAULT_$LINE" | |
2078 | else | |
2079 | no_cache=1 | |
2080 | fi | |
2081 | ||
b12915c1 | 2082 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
a0b9e27f MB |
2083 | |
2084 | fi | |
10f2d63a VZ |
2085 | |
2086 | ||
b12915c1 | 2087 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 2088 | if test "$no_cache" != 1; then |
b12915c1 | 2089 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2090 | fi |
2091 | ||
b12915c1 | 2092 | if test "$wxUSE_LIBJPEG" = yes; then |
a0b9e27f | 2093 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2094 | elif test "$wxUSE_LIBJPEG" = no; then |
a0b9e27f | 2095 | echo "$ac_t""no" 1>&6 |
422107f9 | 2096 | elif test "$wxUSE_LIBJPEG" = sys; then |
a0b9e27f | 2097 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2098 | elif test "$wxUSE_LIBJPEG" = builtin; then |
a0b9e27f | 2099 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 2100 | else |
a0b9e27f | 2101 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2102 | fi |
a0b9e27f | 2103 | |
10f2d63a | 2104 | |
a0b9e27f | 2105 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
ac0c4cc3 | 2106 | echo "configure:2107: checking for --with-libtiff" >&5 |
10f2d63a | 2107 | no_cache=0 |
a0b9e27f | 2108 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
2109 | if test "${with_libtiff+set}" = set; then |
2110 | withval="$with_libtiff" | |
a0b9e27f | 2111 | |
10f2d63a | 2112 | if test "$withval" = yes; then |
b12915c1 | 2113 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2114 | elif test "$withval" = no; then |
b12915c1 | 2115 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2116 | elif test "$withval" = sys; then |
2117 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
2118 | elif test "$withval" = builtin; then |
2119 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 2120 | else |
a0b9e27f | 2121 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2122 | fi |
a0b9e27f | 2123 | |
10f2d63a | 2124 | else |
a0b9e27f | 2125 | |
b12915c1 | 2126 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2127 | if test "x$LINE" != x ; then |
2128 | eval "DEFAULT_$LINE" | |
2129 | else | |
2130 | no_cache=1 | |
2131 | fi | |
2132 | ||
b12915c1 | 2133 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
a0b9e27f MB |
2134 | |
2135 | fi | |
10f2d63a VZ |
2136 | |
2137 | ||
b12915c1 | 2138 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2139 | if test "$no_cache" != 1; then |
b12915c1 | 2140 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2141 | fi |
2142 | ||
b12915c1 | 2143 | if test "$wxUSE_LIBTIFF" = yes; then |
a0b9e27f | 2144 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 2145 | elif test "$wxUSE_LIBTIFF" = no; then |
a0b9e27f | 2146 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 2147 | elif test "$wxUSE_LIBTIFF" = sys; then |
a0b9e27f | 2148 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2149 | elif test "$wxUSE_LIBTIFF" = builtin; then |
a0b9e27f | 2150 | echo "$ac_t""builtin version" 1>&6 |
0dcf9893 | 2151 | else |
a0b9e27f | 2152 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2153 | fi |
a0b9e27f | 2154 | |
10f2d63a | 2155 | |
a0b9e27f | 2156 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
ac0c4cc3 | 2157 | echo "configure:2158: checking for --with-opengl" >&5 |
10f2d63a | 2158 | no_cache=0 |
a0b9e27f | 2159 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2160 | if test "${with_opengl+set}" = set; then |
2161 | withval="$with_opengl" | |
a0b9e27f | 2162 | |
10f2d63a | 2163 | if test "$withval" = yes; then |
b12915c1 | 2164 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2165 | else |
b12915c1 | 2166 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2167 | fi |
a0b9e27f | 2168 | |
10f2d63a | 2169 | else |
a0b9e27f | 2170 | |
b12915c1 | 2171 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2172 | if test "x$LINE" != x ; then |
2173 | eval "DEFAULT_$LINE" | |
2174 | else | |
2175 | no_cache=1 | |
2176 | fi | |
2177 | ||
b12915c1 | 2178 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
a0b9e27f MB |
2179 | |
2180 | fi | |
10f2d63a VZ |
2181 | |
2182 | ||
b12915c1 | 2183 | eval "$ac_cv_use_opengl" |
10f2d63a | 2184 | if test "$no_cache" != 1; then |
b12915c1 | 2185 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2186 | fi |
2187 | ||
b12915c1 | 2188 | if test "$wxUSE_OPENGL" = yes; then |
a0b9e27f | 2189 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2190 | else |
a0b9e27f | 2191 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2192 | fi |
a0b9e27f | 2193 | |
10f2d63a | 2194 | |
b12915c1 VZ |
2195 | fi |
2196 | ||
5c6fa7d2 | 2197 | |
a0b9e27f | 2198 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
ac0c4cc3 | 2199 | echo "configure:2200: checking for --with-dmalloc" >&5 |
8284b0c5 | 2200 | no_cache=0 |
a0b9e27f | 2201 | # Check whether --with-dmalloc or --without-dmalloc was given. |
b12915c1 VZ |
2202 | if test "${with_dmalloc+set}" = set; then |
2203 | withval="$with_dmalloc" | |
a0b9e27f | 2204 | |
c7a2bf27 | 2205 | if test "$withval" = yes; then |
b12915c1 | 2206 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2207 | else |
b12915c1 | 2208 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2209 | fi |
a0b9e27f | 2210 | |
c7a2bf27 | 2211 | else |
a0b9e27f | 2212 | |
b12915c1 | 2213 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2214 | if test "x$LINE" != x ; then |
2215 | eval "DEFAULT_$LINE" | |
2216 | else | |
2217 | no_cache=1 | |
2218 | fi | |
2219 | ||
b12915c1 | 2220 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
a0b9e27f MB |
2221 | |
2222 | fi | |
c7a2bf27 RR |
2223 | |
2224 | ||
b12915c1 | 2225 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2226 | if test "$no_cache" != 1; then |
b12915c1 | 2227 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2228 | fi |
2229 | ||
b12915c1 | 2230 | if test "$wxUSE_DMALLOC" = yes; then |
a0b9e27f | 2231 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2232 | else |
a0b9e27f | 2233 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2234 | fi |
a0b9e27f | 2235 | |
c7a2bf27 | 2236 | |
a0b9e27f | 2237 | echo $ac_n "checking for --with-regex""... $ac_c" 1>&6 |
ac0c4cc3 | 2238 | echo "configure:2239: checking for --with-regex" >&5 |
3e44f09d | 2239 | no_cache=0 |
a0b9e27f | 2240 | # Check whether --with-regex or --without-regex was given. |
3e44f09d VZ |
2241 | if test "${with_regex+set}" = set; then |
2242 | withval="$with_regex" | |
a0b9e27f | 2243 | |
3e44f09d VZ |
2244 | if test "$withval" = yes; then |
2245 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2246 | elif test "$withval" = no; then | |
2247 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2248 | elif test "$withval" = sys; then | |
2249 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
2250 | elif test "$withval" = builtin; then |
2251 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 2252 | else |
a0b9e27f | 2253 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d | 2254 | fi |
a0b9e27f | 2255 | |
3e44f09d | 2256 | else |
a0b9e27f | 2257 | |
3e44f09d VZ |
2258 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` |
2259 | if test "x$LINE" != x ; then | |
2260 | eval "DEFAULT_$LINE" | |
2261 | else | |
2262 | no_cache=1 | |
2263 | fi | |
2264 | ||
2265 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
a0b9e27f MB |
2266 | |
2267 | fi | |
3e44f09d VZ |
2268 | |
2269 | ||
2270 | eval "$ac_cv_use_regex" | |
2271 | if test "$no_cache" != 1; then | |
2272 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2273 | fi | |
2274 | ||
2275 | if test "$wxUSE_REGEX" = yes; then | |
a0b9e27f | 2276 | echo "$ac_t""yes" 1>&6 |
3e44f09d | 2277 | elif test "$wxUSE_REGEX" = no; then |
a0b9e27f | 2278 | echo "$ac_t""no" 1>&6 |
3e44f09d | 2279 | elif test "$wxUSE_REGEX" = sys; then |
a0b9e27f | 2280 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2281 | elif test "$wxUSE_REGEX" = builtin; then |
a0b9e27f | 2282 | echo "$ac_t""builtin version" 1>&6 |
3e44f09d | 2283 | else |
a0b9e27f | 2284 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d | 2285 | fi |
a0b9e27f | 2286 | |
3e44f09d | 2287 | |
a0b9e27f | 2288 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
ac0c4cc3 | 2289 | echo "configure:2290: checking for --with-zlib" >&5 |
10f2d63a | 2290 | no_cache=0 |
a0b9e27f | 2291 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2292 | if test "${with_zlib+set}" = set; then |
2293 | withval="$with_zlib" | |
a0b9e27f | 2294 | |
10f2d63a | 2295 | if test "$withval" = yes; then |
b12915c1 | 2296 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2297 | elif test "$withval" = no; then |
b12915c1 | 2298 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2299 | elif test "$withval" = sys; then |
2300 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
2301 | elif test "$withval" = builtin; then |
2302 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 2303 | else |
a0b9e27f | 2304 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2305 | fi |
a0b9e27f | 2306 | |
10f2d63a | 2307 | else |
a0b9e27f | 2308 | |
b12915c1 | 2309 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2310 | if test "x$LINE" != x ; then |
2311 | eval "DEFAULT_$LINE" | |
2312 | else | |
2313 | no_cache=1 | |
2314 | fi | |
2315 | ||
b12915c1 | 2316 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
a0b9e27f MB |
2317 | |
2318 | fi | |
10f2d63a VZ |
2319 | |
2320 | ||
b12915c1 | 2321 | eval "$ac_cv_use_zlib" |
10f2d63a | 2322 | if test "$no_cache" != 1; then |
b12915c1 | 2323 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2324 | fi |
2325 | ||
b12915c1 | 2326 | if test "$wxUSE_ZLIB" = yes; then |
a0b9e27f | 2327 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2328 | elif test "$wxUSE_ZLIB" = no; then |
a0b9e27f | 2329 | echo "$ac_t""no" 1>&6 |
422107f9 | 2330 | elif test "$wxUSE_ZLIB" = sys; then |
a0b9e27f | 2331 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2332 | elif test "$wxUSE_ZLIB" = builtin; then |
a0b9e27f | 2333 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 2334 | else |
a0b9e27f | 2335 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2336 | fi |
a0b9e27f | 2337 | |
10f2d63a | 2338 | |
a0b9e27f | 2339 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
ac0c4cc3 | 2340 | echo "configure:2341: checking for --with-odbc" >&5 |
10f2d63a | 2341 | no_cache=0 |
a0b9e27f | 2342 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2343 | if test "${with_odbc+set}" = set; then |
2344 | withval="$with_odbc" | |
a0b9e27f | 2345 | |
10f2d63a VZ |
2346 | if test "$withval" = yes; then |
2347 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2348 | else | |
2349 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2350 | fi | |
a0b9e27f | 2351 | |
10f2d63a | 2352 | else |
a0b9e27f | 2353 | |
10f2d63a VZ |
2354 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2355 | if test "x$LINE" != x ; then | |
2356 | eval "DEFAULT_$LINE" | |
2357 | else | |
2358 | no_cache=1 | |
2359 | fi | |
2360 | ||
2361 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
a0b9e27f MB |
2362 | |
2363 | fi | |
10f2d63a VZ |
2364 | |
2365 | ||
2366 | eval "$ac_cv_use_odbc" | |
2367 | if test "$no_cache" != 1; then | |
2368 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2369 | fi | |
2370 | ||
2371 | if test "$wxUSE_ODBC" = yes; then | |
a0b9e27f | 2372 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2373 | else |
a0b9e27f | 2374 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2375 | fi |
a0b9e27f | 2376 | |
52127426 | 2377 | |
8284b0c5 MB |
2378 | |
2379 | ||
5005acfe VZ |
2380 | enablestring= |
2381 | echo $ac_n "checking for --${enablestring:-enable}-shared""... $ac_c" 1>&6 | |
ac0c4cc3 | 2382 | echo "configure:2383: checking for --${enablestring:-enable}-shared" >&5 |
10f2d63a VZ |
2383 | no_cache=0 |
2384 | # Check whether --enable-shared or --disable-shared was given. | |
2385 | if test "${enable_shared+set}" = set; then | |
2386 | enableval="$enable_shared" | |
a0b9e27f | 2387 | |
10f2d63a VZ |
2388 | if test "$enableval" = yes; then |
2389 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2390 | else | |
2391 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2392 | fi | |
a0b9e27f | 2393 | |
10f2d63a | 2394 | else |
a0b9e27f | 2395 | |
10f2d63a VZ |
2396 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2397 | if test "x$LINE" != x ; then | |
2398 | eval "DEFAULT_$LINE" | |
2399 | else | |
2400 | no_cache=1 | |
2401 | fi | |
2402 | ||
2403 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
a0b9e27f MB |
2404 | |
2405 | fi | |
10f2d63a VZ |
2406 | |
2407 | ||
2408 | eval "$ac_cv_use_shared" | |
2409 | if test "$no_cache" != 1; then | |
2410 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2411 | fi | |
2412 | ||
2413 | if test "$wxUSE_SHARED" = yes; then | |
a0b9e27f | 2414 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2415 | else |
a0b9e27f | 2416 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2417 | fi |
a0b9e27f | 2418 | |
10f2d63a | 2419 | |
5005acfe VZ |
2420 | enablestring= |
2421 | echo $ac_n "checking for --${enablestring:-enable}-soname""... $ac_c" 1>&6 | |
ac0c4cc3 | 2422 | echo "configure:2423: checking for --${enablestring:-enable}-soname" >&5 |
00cf1208 | 2423 | no_cache=0 |
3a922bb4 RL |
2424 | # Check whether --enable-soname or --disable-soname was given. |
2425 | if test "${enable_soname+set}" = set; then | |
2426 | enableval="$enable_soname" | |
a0b9e27f | 2427 | |
00cf1208 | 2428 | if test "$enableval" = yes; then |
3a922bb4 | 2429 | ac_cv_use_soname='wxUSE_SONAME=yes' |
00cf1208 | 2430 | else |
3a922bb4 | 2431 | ac_cv_use_soname='wxUSE_SONAME=no' |
00cf1208 | 2432 | fi |
a0b9e27f | 2433 | |
00cf1208 | 2434 | else |
a0b9e27f | 2435 | |
3a922bb4 | 2436 | LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}` |
00cf1208 RR |
2437 | if test "x$LINE" != x ; then |
2438 | eval "DEFAULT_$LINE" | |
2439 | else | |
2440 | no_cache=1 | |
2441 | fi | |
2442 | ||
3a922bb4 | 2443 | ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME |
a0b9e27f MB |
2444 | |
2445 | fi | |
00cf1208 RR |
2446 | |
2447 | ||
3a922bb4 | 2448 | eval "$ac_cv_use_soname" |
00cf1208 | 2449 | if test "$no_cache" != 1; then |
3a922bb4 | 2450 | echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp |
00cf1208 RR |
2451 | fi |
2452 | ||
3a922bb4 | 2453 | if test "$wxUSE_SONAME" = yes; then |
a0b9e27f | 2454 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2455 | else |
a0b9e27f | 2456 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2457 | fi |
a0b9e27f | 2458 | |
00cf1208 | 2459 | |
5005acfe VZ |
2460 | enablestring= |
2461 | echo $ac_n "checking for --${enablestring:-enable}-optimise""... $ac_c" 1>&6 | |
ac0c4cc3 | 2462 | echo "configure:2463: checking for --${enablestring:-enable}-optimise" >&5 |
10f2d63a VZ |
2463 | no_cache=0 |
2464 | # Check whether --enable-optimise or --disable-optimise was given. | |
2465 | if test "${enable_optimise+set}" = set; then | |
2466 | enableval="$enable_optimise" | |
a0b9e27f | 2467 | |
10f2d63a VZ |
2468 | if test "$enableval" = yes; then |
2469 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2470 | else | |
2471 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2472 | fi | |
a0b9e27f | 2473 | |
10f2d63a | 2474 | else |
a0b9e27f | 2475 | |
10f2d63a VZ |
2476 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2477 | if test "x$LINE" != x ; then | |
2478 | eval "DEFAULT_$LINE" | |
2479 | else | |
2480 | no_cache=1 | |
2481 | fi | |
2482 | ||
2483 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
a0b9e27f MB |
2484 | |
2485 | fi | |
10f2d63a VZ |
2486 | |
2487 | ||
2488 | eval "$ac_cv_use_optimise" | |
2489 | if test "$no_cache" != 1; then | |
2490 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2491 | fi | |
2492 | ||
2493 | if test "$wxUSE_OPTIMISE" = yes; then | |
a0b9e27f | 2494 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2495 | else |
a0b9e27f | 2496 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2497 | fi |
a0b9e27f | 2498 | |
10f2d63a | 2499 | |
5005acfe VZ |
2500 | enablestring= |
2501 | echo $ac_n "checking for --${enablestring:-enable}-debug""... $ac_c" 1>&6 | |
ac0c4cc3 | 2502 | echo "configure:2503: checking for --${enablestring:-enable}-debug" >&5 |
10f2d63a VZ |
2503 | no_cache=0 |
2504 | # Check whether --enable-debug or --disable-debug was given. | |
2505 | if test "${enable_debug+set}" = set; then | |
2506 | enableval="$enable_debug" | |
a0b9e27f | 2507 | |
10f2d63a VZ |
2508 | if test "$enableval" = yes; then |
2509 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2510 | else | |
2511 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2512 | fi | |
a0b9e27f | 2513 | |
10f2d63a | 2514 | else |
a0b9e27f | 2515 | |
10f2d63a VZ |
2516 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2517 | if test "x$LINE" != x ; then | |
2518 | eval "DEFAULT_$LINE" | |
2519 | else | |
2520 | no_cache=1 | |
2521 | fi | |
2522 | ||
2523 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
a0b9e27f MB |
2524 | |
2525 | fi | |
10f2d63a VZ |
2526 | |
2527 | ||
2528 | eval "$ac_cv_use_debug" | |
2529 | if test "$no_cache" != 1; then | |
2530 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2531 | fi | |
2532 | ||
2533 | if test "$wxUSE_DEBUG" = yes; then | |
a0b9e27f | 2534 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2535 | else |
a0b9e27f | 2536 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2537 | fi |
a0b9e27f | 2538 | |
52127426 | 2539 | |
8284b0c5 | 2540 | |
5005acfe VZ |
2541 | enablestring= |
2542 | echo $ac_n "checking for --${enablestring:-enable}-precomp""... $ac_c" 1>&6 | |
ac0c4cc3 | 2543 | echo "configure:2544: checking for --${enablestring:-enable}-precomp" >&5 |
683dccda GD |
2544 | no_cache=0 |
2545 | # Check whether --enable-precomp or --disable-precomp was given. | |
2546 | if test "${enable_precomp+set}" = set; then | |
2547 | enableval="$enable_precomp" | |
a0b9e27f | 2548 | |
683dccda GD |
2549 | if test "$enableval" = yes; then |
2550 | ac_cv_use_precomp='wxUSE_PRECOMP=yes' | |
2551 | else | |
2552 | ac_cv_use_precomp='wxUSE_PRECOMP=no' | |
2553 | fi | |
a0b9e27f | 2554 | |
683dccda | 2555 | else |
a0b9e27f | 2556 | |
683dccda GD |
2557 | LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}` |
2558 | if test "x$LINE" != x ; then | |
2559 | eval "DEFAULT_$LINE" | |
2560 | else | |
2561 | no_cache=1 | |
2562 | fi | |
2563 | ||
2564 | ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP | |
a0b9e27f MB |
2565 | |
2566 | fi | |
683dccda GD |
2567 | |
2568 | ||
2569 | eval "$ac_cv_use_precomp" | |
2570 | if test "$no_cache" != 1; then | |
2571 | echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp | |
2572 | fi | |
2573 | ||
2574 | if test "$wxUSE_PRECOMP" = yes; then | |
a0b9e27f | 2575 | echo "$ac_t""yes" 1>&6 |
683dccda | 2576 | else |
a0b9e27f | 2577 | echo "$ac_t""no" 1>&6 |
683dccda | 2578 | fi |
a0b9e27f | 2579 | |
683dccda | 2580 | |
10f2d63a VZ |
2581 | if test "$wxUSE_DEBUG" = "yes"; then |
2582 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2583 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2584 | elif test "$wxUSE_DEBUG" = "no"; then | |
2585 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2586 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2587 | fi | |
2588 | ||
8284b0c5 | 2589 | |
5005acfe VZ |
2590 | enablestring= |
2591 | echo $ac_n "checking for --${enablestring:-enable}-debug_flag""... $ac_c" 1>&6 | |
ac0c4cc3 | 2592 | echo "configure:2593: checking for --${enablestring:-enable}-debug_flag" >&5 |
10f2d63a VZ |
2593 | no_cache=0 |
2594 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2595 | if test "${enable_debug_flag+set}" = set; then | |
2596 | enableval="$enable_debug_flag" | |
a0b9e27f | 2597 | |
10f2d63a VZ |
2598 | if test "$enableval" = yes; then |
2599 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2600 | else | |
2601 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2602 | fi | |
a0b9e27f | 2603 | |
10f2d63a | 2604 | else |
a0b9e27f | 2605 | |
10f2d63a VZ |
2606 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2607 | if test "x$LINE" != x ; then | |
2608 | eval "DEFAULT_$LINE" | |
2609 | else | |
2610 | no_cache=1 | |
2611 | fi | |
2612 | ||
2613 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
a0b9e27f MB |
2614 | |
2615 | fi | |
10f2d63a VZ |
2616 | |
2617 | ||
2618 | eval "$ac_cv_use_debug_flag" | |
2619 | if test "$no_cache" != 1; then | |
2620 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2621 | fi | |
2622 | ||
2623 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
a0b9e27f | 2624 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2625 | else |
a0b9e27f | 2626 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2627 | fi |
a0b9e27f | 2628 | |
10f2d63a | 2629 | |
5005acfe VZ |
2630 | enablestring= |
2631 | echo $ac_n "checking for --${enablestring:-enable}-debug_info""... $ac_c" 1>&6 | |
ac0c4cc3 | 2632 | echo "configure:2633: checking for --${enablestring:-enable}-debug_info" >&5 |
10f2d63a VZ |
2633 | no_cache=0 |
2634 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2635 | if test "${enable_debug_info+set}" = set; then | |
2636 | enableval="$enable_debug_info" | |
a0b9e27f | 2637 | |
10f2d63a VZ |
2638 | if test "$enableval" = yes; then |
2639 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2640 | else | |
2641 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2642 | fi | |
a0b9e27f | 2643 | |
10f2d63a | 2644 | else |
a0b9e27f | 2645 | |
10f2d63a VZ |
2646 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2647 | if test "x$LINE" != x ; then | |
2648 | eval "DEFAULT_$LINE" | |
2649 | else | |
2650 | no_cache=1 | |
2651 | fi | |
2652 | ||
2653 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
a0b9e27f MB |
2654 | |
2655 | fi | |
10f2d63a VZ |
2656 | |
2657 | ||
2658 | eval "$ac_cv_use_debug_info" | |
2659 | if test "$no_cache" != 1; then | |
2660 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2661 | fi | |
2662 | ||
2663 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
a0b9e27f | 2664 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2665 | else |
a0b9e27f | 2666 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2667 | fi |
a0b9e27f | 2668 | |
10f2d63a | 2669 | |
5005acfe VZ |
2670 | enablestring= |
2671 | echo $ac_n "checking for --${enablestring:-enable}-debug_gdb""... $ac_c" 1>&6 | |
ac0c4cc3 | 2672 | echo "configure:2673: checking for --${enablestring:-enable}-debug_gdb" >&5 |
10f2d63a VZ |
2673 | no_cache=0 |
2674 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2675 | if test "${enable_debug_gdb+set}" = set; then | |
2676 | enableval="$enable_debug_gdb" | |
a0b9e27f | 2677 | |
10f2d63a VZ |
2678 | if test "$enableval" = yes; then |
2679 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2680 | else | |
2681 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2682 | fi | |
a0b9e27f | 2683 | |
10f2d63a | 2684 | else |
a0b9e27f | 2685 | |
10f2d63a VZ |
2686 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2687 | if test "x$LINE" != x ; then | |
2688 | eval "DEFAULT_$LINE" | |
2689 | else | |
2690 | no_cache=1 | |
2691 | fi | |
2692 | ||
2693 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
a0b9e27f MB |
2694 | |
2695 | fi | |
10f2d63a VZ |
2696 | |
2697 | ||
2698 | eval "$ac_cv_use_debug_gdb" | |
2699 | if test "$no_cache" != 1; then | |
2700 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2701 | fi | |
2702 | ||
2703 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
a0b9e27f | 2704 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2705 | else |
a0b9e27f | 2706 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2707 | fi |
a0b9e27f | 2708 | |
10f2d63a | 2709 | |
5005acfe VZ |
2710 | enablestring= |
2711 | echo $ac_n "checking for --${enablestring:-enable}-debug_cntxt""... $ac_c" 1>&6 | |
ac0c4cc3 | 2712 | echo "configure:2713: checking for --${enablestring:-enable}-debug_cntxt" >&5 |
10f2d63a VZ |
2713 | no_cache=0 |
2714 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2715 | if test "${enable_debug_cntxt+set}" = set; then | |
2716 | enableval="$enable_debug_cntxt" | |
a0b9e27f | 2717 | |
10f2d63a VZ |
2718 | if test "$enableval" = yes; then |
2719 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2720 | else | |
2721 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2722 | fi | |
a0b9e27f | 2723 | |
10f2d63a | 2724 | else |
a0b9e27f | 2725 | |
10f2d63a VZ |
2726 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2727 | if test "x$LINE" != x ; then | |
2728 | eval "DEFAULT_$LINE" | |
2729 | else | |
2730 | no_cache=1 | |
2731 | fi | |
2732 | ||
2733 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
a0b9e27f MB |
2734 | |
2735 | fi | |
10f2d63a VZ |
2736 | |
2737 | ||
2738 | eval "$ac_cv_use_debug_cntxt" | |
2739 | if test "$no_cache" != 1; then | |
2740 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2741 | fi | |
2742 | ||
2743 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
a0b9e27f | 2744 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2745 | else |
a0b9e27f | 2746 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2747 | fi |
a0b9e27f | 2748 | |
10f2d63a | 2749 | |
5005acfe VZ |
2750 | enablestring= |
2751 | echo $ac_n "checking for --${enablestring:-enable}-mem_tracing""... $ac_c" 1>&6 | |
ac0c4cc3 | 2752 | echo "configure:2753: checking for --${enablestring:-enable}-mem_tracing" >&5 |
10f2d63a VZ |
2753 | no_cache=0 |
2754 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2755 | if test "${enable_mem_tracing+set}" = set; then | |
2756 | enableval="$enable_mem_tracing" | |
a0b9e27f | 2757 | |
10f2d63a VZ |
2758 | if test "$enableval" = yes; then |
2759 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2760 | else | |
2761 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2762 | fi | |
a0b9e27f | 2763 | |
10f2d63a | 2764 | else |
a0b9e27f | 2765 | |
10f2d63a VZ |
2766 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2767 | if test "x$LINE" != x ; then | |
2768 | eval "DEFAULT_$LINE" | |
2769 | else | |
2770 | no_cache=1 | |
2771 | fi | |
2772 | ||
2773 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
a0b9e27f MB |
2774 | |
2775 | fi | |
10f2d63a VZ |
2776 | |
2777 | ||
2778 | eval "$ac_cv_use_mem_tracing" | |
2779 | if test "$no_cache" != 1; then | |
2780 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2781 | fi | |
2782 | ||
2783 | if test "$wxUSE_MEM_TRACING" = yes; then | |
a0b9e27f | 2784 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2785 | else |
a0b9e27f | 2786 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2787 | fi |
a0b9e27f | 2788 | |
10f2d63a | 2789 | |
5005acfe VZ |
2790 | enablestring= |
2791 | echo $ac_n "checking for --${enablestring:-enable}-profile""... $ac_c" 1>&6 | |
ac0c4cc3 | 2792 | echo "configure:2793: checking for --${enablestring:-enable}-profile" >&5 |
10f2d63a VZ |
2793 | no_cache=0 |
2794 | # Check whether --enable-profile or --disable-profile was given. | |
2795 | if test "${enable_profile+set}" = set; then | |
2796 | enableval="$enable_profile" | |
a0b9e27f | 2797 | |
10f2d63a VZ |
2798 | if test "$enableval" = yes; then |
2799 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2800 | else | |
2801 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2802 | fi | |
a0b9e27f | 2803 | |
10f2d63a | 2804 | else |
a0b9e27f | 2805 | |
10f2d63a VZ |
2806 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2807 | if test "x$LINE" != x ; then | |
2808 | eval "DEFAULT_$LINE" | |
2809 | else | |
2810 | no_cache=1 | |
2811 | fi | |
2812 | ||
2813 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
a0b9e27f MB |
2814 | |
2815 | fi | |
10f2d63a VZ |
2816 | |
2817 | ||
2818 | eval "$ac_cv_use_profile" | |
2819 | if test "$no_cache" != 1; then | |
2820 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2821 | fi | |
2822 | ||
2823 | if test "$wxUSE_PROFILE" = yes; then | |
a0b9e27f | 2824 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2825 | else |
a0b9e27f | 2826 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2827 | fi |
a0b9e27f | 2828 | |
10f2d63a | 2829 | |
5005acfe VZ |
2830 | enablestring= |
2831 | echo $ac_n "checking for --${enablestring:-enable}-no_rtti""... $ac_c" 1>&6 | |
ac0c4cc3 | 2832 | echo "configure:2833: checking for --${enablestring:-enable}-no_rtti" >&5 |
10f2d63a VZ |
2833 | no_cache=0 |
2834 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2835 | if test "${enable_no_rtti+set}" = set; then | |
2836 | enableval="$enable_no_rtti" | |
a0b9e27f | 2837 | |
10f2d63a VZ |
2838 | if test "$enableval" = yes; then |
2839 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2840 | else | |
2841 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2842 | fi | |
a0b9e27f | 2843 | |
10f2d63a | 2844 | else |
a0b9e27f | 2845 | |
10f2d63a VZ |
2846 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2847 | if test "x$LINE" != x ; then | |
2848 | eval "DEFAULT_$LINE" | |
2849 | else | |
2850 | no_cache=1 | |
2851 | fi | |
2852 | ||
2853 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
a0b9e27f MB |
2854 | |
2855 | fi | |
10f2d63a VZ |
2856 | |
2857 | ||
2858 | eval "$ac_cv_use_no_rtti" | |
2859 | if test "$no_cache" != 1; then | |
2860 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2861 | fi | |
2862 | ||
2863 | if test "$wxUSE_NO_RTTI" = yes; then | |
a0b9e27f | 2864 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2865 | else |
a0b9e27f | 2866 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2867 | fi |
a0b9e27f | 2868 | |
10f2d63a | 2869 | |
5005acfe VZ |
2870 | enablestring= |
2871 | echo $ac_n "checking for --${enablestring:-enable}-no_exceptions""... $ac_c" 1>&6 | |
ac0c4cc3 | 2872 | echo "configure:2873: checking for --${enablestring:-enable}-no_exceptions" >&5 |
10f2d63a VZ |
2873 | no_cache=0 |
2874 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2875 | if test "${enable_no_exceptions+set}" = set; then | |
2876 | enableval="$enable_no_exceptions" | |
a0b9e27f | 2877 | |
10f2d63a VZ |
2878 | if test "$enableval" = yes; then |
2879 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2880 | else | |
2881 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2882 | fi | |
a0b9e27f | 2883 | |
10f2d63a | 2884 | else |
a0b9e27f | 2885 | |
10f2d63a VZ |
2886 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2887 | if test "x$LINE" != x ; then | |
2888 | eval "DEFAULT_$LINE" | |
2889 | else | |
2890 | no_cache=1 | |
2891 | fi | |
2892 | ||
2893 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
a0b9e27f MB |
2894 | |
2895 | fi | |
10f2d63a VZ |
2896 | |
2897 | ||
2898 | eval "$ac_cv_use_no_exceptions" | |
2899 | if test "$no_cache" != 1; then | |
2900 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2901 | fi | |
2902 | ||
2903 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
a0b9e27f | 2904 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2905 | else |
a0b9e27f | 2906 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2907 | fi |
a0b9e27f | 2908 | |
10f2d63a | 2909 | |
5005acfe VZ |
2910 | enablestring= |
2911 | echo $ac_n "checking for --${enablestring:-enable}-permissive""... $ac_c" 1>&6 | |
ac0c4cc3 | 2912 | echo "configure:2913: checking for --${enablestring:-enable}-permissive" >&5 |
10f2d63a VZ |
2913 | no_cache=0 |
2914 | # Check whether --enable-permissive or --disable-permissive was given. | |
2915 | if test "${enable_permissive+set}" = set; then | |
2916 | enableval="$enable_permissive" | |
a0b9e27f | 2917 | |
10f2d63a VZ |
2918 | if test "$enableval" = yes; then |
2919 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2920 | else | |
2921 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2922 | fi | |
a0b9e27f | 2923 | |
10f2d63a | 2924 | else |
a0b9e27f | 2925 | |
10f2d63a VZ |
2926 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2927 | if test "x$LINE" != x ; then | |
2928 | eval "DEFAULT_$LINE" | |
2929 | else | |
2930 | no_cache=1 | |
2931 | fi | |
2932 | ||
2933 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
a0b9e27f MB |
2934 | |
2935 | fi | |
10f2d63a VZ |
2936 | |
2937 | ||
2938 | eval "$ac_cv_use_permissive" | |
2939 | if test "$no_cache" != 1; then | |
2940 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2941 | fi | |
2942 | ||
2943 | if test "$wxUSE_PERMISSIVE" = yes; then | |
a0b9e27f | 2944 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2945 | else |
a0b9e27f | 2946 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2947 | fi |
a0b9e27f | 2948 | |
10f2d63a | 2949 | |
5005acfe VZ |
2950 | enablestring= |
2951 | echo $ac_n "checking for --${enablestring:-enable}-no_deps""... $ac_c" 1>&6 | |
ac0c4cc3 | 2952 | echo "configure:2953: checking for --${enablestring:-enable}-no_deps" >&5 |
10f2d63a VZ |
2953 | no_cache=0 |
2954 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2955 | if test "${enable_no_deps+set}" = set; then | |
2956 | enableval="$enable_no_deps" | |
a0b9e27f | 2957 | |
10f2d63a VZ |
2958 | if test "$enableval" = yes; then |
2959 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2960 | else | |
2961 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2962 | fi | |
a0b9e27f | 2963 | |
10f2d63a | 2964 | else |
a0b9e27f | 2965 | |
10f2d63a VZ |
2966 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2967 | if test "x$LINE" != x ; then | |
2968 | eval "DEFAULT_$LINE" | |
2969 | else | |
2970 | no_cache=1 | |
2971 | fi | |
2972 | ||
2973 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
a0b9e27f MB |
2974 | |
2975 | fi | |
10f2d63a VZ |
2976 | |
2977 | ||
2978 | eval "$ac_cv_use_no_deps" | |
2979 | if test "$no_cache" != 1; then | |
2980 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2981 | fi | |
2982 | ||
2983 | if test "$wxUSE_NO_DEPS" = yes; then | |
a0b9e27f | 2984 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2985 | else |
a0b9e27f | 2986 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2987 | fi |
a0b9e27f | 2988 | |
52127426 | 2989 | |
8284b0c5 | 2990 | |
5005acfe VZ |
2991 | enablestring= |
2992 | echo $ac_n "checking for --${enablestring:-enable}-compat20""... $ac_c" 1>&6 | |
ac0c4cc3 | 2993 | echo "configure:2994: checking for --${enablestring:-enable}-compat20" >&5 |
54276ccf VZ |
2994 | no_cache=0 |
2995 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2996 | if test "${enable_compat20+set}" = set; then | |
2997 | enableval="$enable_compat20" | |
a0b9e27f | 2998 | |
54276ccf VZ |
2999 | if test "$enableval" = yes; then |
3000 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
3001 | else | |
3002 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
3003 | fi | |
a0b9e27f | 3004 | |
54276ccf | 3005 | else |
a0b9e27f | 3006 | |
54276ccf VZ |
3007 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` |
3008 | if test "x$LINE" != x ; then | |
3009 | eval "DEFAULT_$LINE" | |
3010 | else | |
3011 | no_cache=1 | |
3012 | fi | |
3013 | ||
3014 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
a0b9e27f MB |
3015 | |
3016 | fi | |
54276ccf VZ |
3017 | |
3018 | ||
3019 | eval "$ac_cv_use_compat20" | |
3020 | if test "$no_cache" != 1; then | |
3021 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
3022 | fi | |
3023 | ||
3024 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
a0b9e27f | 3025 | echo "$ac_t""yes" 1>&6 |
54276ccf | 3026 | else |
a0b9e27f | 3027 | echo "$ac_t""no" 1>&6 |
54276ccf | 3028 | fi |
a0b9e27f | 3029 | |
54276ccf | 3030 | |
65d8ef1e | 3031 | enablestring= |
5005acfe | 3032 | echo $ac_n "checking for --${enablestring:-enable}-compat22""... $ac_c" 1>&6 |
ac0c4cc3 | 3033 | echo "configure:3034: checking for --${enablestring:-enable}-compat22" >&5 |
54276ccf VZ |
3034 | no_cache=0 |
3035 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
3036 | if test "${enable_compat22+set}" = set; then | |
3037 | enableval="$enable_compat22" | |
a0b9e27f | 3038 | |
54276ccf VZ |
3039 | if test "$enableval" = yes; then |
3040 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
3041 | else | |
3042 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
3043 | fi | |
a0b9e27f | 3044 | |
54276ccf | 3045 | else |
a0b9e27f | 3046 | |
54276ccf VZ |
3047 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` |
3048 | if test "x$LINE" != x ; then | |
3049 | eval "DEFAULT_$LINE" | |
3050 | else | |
3051 | no_cache=1 | |
3052 | fi | |
3053 | ||
3054 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
a0b9e27f MB |
3055 | |
3056 | fi | |
54276ccf VZ |
3057 | |
3058 | ||
3059 | eval "$ac_cv_use_compat22" | |
3060 | if test "$no_cache" != 1; then | |
3061 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
3062 | fi | |
3063 | ||
3064 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
a0b9e27f | 3065 | echo "$ac_t""yes" 1>&6 |
54276ccf | 3066 | else |
a0b9e27f | 3067 | echo "$ac_t""no" 1>&6 |
54276ccf | 3068 | fi |
a0b9e27f | 3069 | |
54276ccf | 3070 | |
65d8ef1e VS |
3071 | enablestring=disable |
3072 | echo $ac_n "checking for --${enablestring:-enable}-compat24""... $ac_c" 1>&6 | |
ac0c4cc3 | 3073 | echo "configure:3074: checking for --${enablestring:-enable}-compat24" >&5 |
65d8ef1e VS |
3074 | no_cache=0 |
3075 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
3076 | if test "${enable_compat24+set}" = set; then | |
3077 | enableval="$enable_compat24" | |
3078 | ||
3079 | if test "$enableval" = yes; then | |
3080 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
3081 | else | |
3082 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
3083 | fi | |
3084 | ||
3085 | else | |
3086 | ||
3087 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` | |
3088 | if test "x$LINE" != x ; then | |
3089 | eval "DEFAULT_$LINE" | |
3090 | else | |
3091 | no_cache=1 | |
3092 | fi | |
3093 | ||
3094 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
3095 | ||
3096 | fi | |
3097 | ||
3098 | ||
3099 | eval "$ac_cv_use_compat24" | |
3100 | if test "$no_cache" != 1; then | |
3101 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
3102 | fi | |
3103 | ||
3104 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
3105 | echo "$ac_t""yes" 1>&6 | |
3106 | else | |
3107 | echo "$ac_t""no" 1>&6 | |
3108 | fi | |
3109 | ||
3110 | ||
3bd8fb5f RD |
3111 | # Check whether --enable-rpath or --disable-rpath was given. |
3112 | if test "${enable_rpath+set}" = set; then | |
3113 | enableval="$enable_rpath" | |
3114 | wxRPATH_DIR="$enableval" | |
a0b9e27f MB |
3115 | fi |
3116 | ||
3bd8fb5f RD |
3117 | |
3118 | if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then | |
3119 | WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR" | |
3120 | fi | |
3121 | ||
8284b0c5 MB |
3122 | |
3123 | ||
3124 | ||
5005acfe VZ |
3125 | enablestring= |
3126 | echo $ac_n "checking for --${enablestring:-enable}-intl""... $ac_c" 1>&6 | |
ac0c4cc3 | 3127 | echo "configure:3128: checking for --${enablestring:-enable}-intl" >&5 |
10f2d63a VZ |
3128 | no_cache=0 |
3129 | # Check whether --enable-intl or --disable-intl was given. | |
3130 | if test "${enable_intl+set}" = set; then | |
3131 | enableval="$enable_intl" | |
a0b9e27f | 3132 | |
10f2d63a VZ |
3133 | if test "$enableval" = yes; then |
3134 | ac_cv_use_intl='wxUSE_INTL=yes' | |
3135 | else | |
3136 | ac_cv_use_intl='wxUSE_INTL=no' | |
3137 | fi | |
a0b9e27f | 3138 | |
10f2d63a | 3139 | else |
a0b9e27f | 3140 | |
10f2d63a VZ |
3141 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
3142 | if test "x$LINE" != x ; then | |
3143 | eval "DEFAULT_$LINE" | |
3144 | else | |
3145 | no_cache=1 | |
3146 | fi | |
3147 | ||
3148 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
a0b9e27f MB |
3149 | |
3150 | fi | |
10f2d63a VZ |
3151 | |
3152 | ||
3153 | eval "$ac_cv_use_intl" | |
3154 | if test "$no_cache" != 1; then | |
3155 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3156 | fi | |
3157 | ||
3158 | if test "$wxUSE_INTL" = yes; then | |
a0b9e27f | 3159 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3160 | else |
a0b9e27f | 3161 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3162 | fi |
a0b9e27f | 3163 | |
10f2d63a | 3164 | |
5005acfe VZ |
3165 | enablestring= |
3166 | echo $ac_n "checking for --${enablestring:-enable}-config""... $ac_c" 1>&6 | |
ac0c4cc3 | 3167 | echo "configure:3168: checking for --${enablestring:-enable}-config" >&5 |
10f2d63a VZ |
3168 | no_cache=0 |
3169 | # Check whether --enable-config or --disable-config was given. | |
3170 | if test "${enable_config+set}" = set; then | |
3171 | enableval="$enable_config" | |
a0b9e27f | 3172 | |
10f2d63a VZ |
3173 | if test "$enableval" = yes; then |
3174 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3175 | else | |
3176 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3177 | fi | |
a0b9e27f | 3178 | |
10f2d63a | 3179 | else |
a0b9e27f | 3180 | |
10f2d63a VZ |
3181 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3182 | if test "x$LINE" != x ; then | |
3183 | eval "DEFAULT_$LINE" | |
3184 | else | |
3185 | no_cache=1 | |
3186 | fi | |
3187 | ||
3188 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
a0b9e27f MB |
3189 | |
3190 | fi | |
10f2d63a VZ |
3191 | |
3192 | ||
3193 | eval "$ac_cv_use_config" | |
3194 | if test "$no_cache" != 1; then | |
3195 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3196 | fi | |
3197 | ||
3198 | if test "$wxUSE_CONFIG" = yes; then | |
a0b9e27f | 3199 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3200 | else |
a0b9e27f | 3201 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3202 | fi |
a0b9e27f | 3203 | |
52127426 | 3204 | |
8284b0c5 | 3205 | |
5005acfe VZ |
3206 | enablestring= |
3207 | echo $ac_n "checking for --${enablestring:-enable}-protocols""... $ac_c" 1>&6 | |
ac0c4cc3 | 3208 | echo "configure:3209: checking for --${enablestring:-enable}-protocols" >&5 |
a1622950 VZ |
3209 | no_cache=0 |
3210 | # Check whether --enable-protocols or --disable-protocols was given. | |
3211 | if test "${enable_protocols+set}" = set; then | |
3212 | enableval="$enable_protocols" | |
a0b9e27f | 3213 | |
a1622950 VZ |
3214 | if test "$enableval" = yes; then |
3215 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
3216 | else | |
3217 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
3218 | fi | |
a0b9e27f | 3219 | |
a1622950 | 3220 | else |
a0b9e27f | 3221 | |
a1622950 VZ |
3222 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
3223 | if test "x$LINE" != x ; then | |
3224 | eval "DEFAULT_$LINE" | |
3225 | else | |
3226 | no_cache=1 | |
3227 | fi | |
3228 | ||
3229 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
a0b9e27f MB |
3230 | |
3231 | fi | |
a1622950 VZ |
3232 | |
3233 | ||
3234 | eval "$ac_cv_use_protocols" | |
3235 | if test "$no_cache" != 1; then | |
3236 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
3237 | fi | |
3238 | ||
3239 | if test "$wxUSE_PROTOCOL" = yes; then | |
a0b9e27f | 3240 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3241 | else |
a0b9e27f | 3242 | echo "$ac_t""no" 1>&6 |
a1622950 | 3243 | fi |
a0b9e27f | 3244 | |
a1622950 | 3245 | |
5005acfe VZ |
3246 | enablestring= |
3247 | echo $ac_n "checking for --${enablestring:-enable}-ftp""... $ac_c" 1>&6 | |
ac0c4cc3 | 3248 | echo "configure:3249: checking for --${enablestring:-enable}-ftp" >&5 |
a1622950 VZ |
3249 | no_cache=0 |
3250 | # Check whether --enable-ftp or --disable-ftp was given. | |
3251 | if test "${enable_ftp+set}" = set; then | |
3252 | enableval="$enable_ftp" | |
a0b9e27f | 3253 | |
a1622950 VZ |
3254 | if test "$enableval" = yes; then |
3255 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
3256 | else | |
3257 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
3258 | fi | |
a0b9e27f | 3259 | |
a1622950 | 3260 | else |
a0b9e27f | 3261 | |
a1622950 VZ |
3262 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
3263 | if test "x$LINE" != x ; then | |
3264 | eval "DEFAULT_$LINE" | |
3265 | else | |
3266 | no_cache=1 | |
3267 | fi | |
3268 | ||
3269 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
a0b9e27f MB |
3270 | |
3271 | fi | |
a1622950 VZ |
3272 | |
3273 | ||
3274 | eval "$ac_cv_use_ftp" | |
3275 | if test "$no_cache" != 1; then | |
3276 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
3277 | fi | |
3278 | ||
3279 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
a0b9e27f | 3280 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3281 | else |
a0b9e27f | 3282 | echo "$ac_t""no" 1>&6 |
a1622950 | 3283 | fi |
a0b9e27f | 3284 | |
a1622950 | 3285 | |
5005acfe VZ |
3286 | enablestring= |
3287 | echo $ac_n "checking for --${enablestring:-enable}-http""... $ac_c" 1>&6 | |
ac0c4cc3 | 3288 | echo "configure:3289: checking for --${enablestring:-enable}-http" >&5 |
a1622950 VZ |
3289 | no_cache=0 |
3290 | # Check whether --enable-http or --disable-http was given. | |
3291 | if test "${enable_http+set}" = set; then | |
3292 | enableval="$enable_http" | |
a0b9e27f | 3293 | |
a1622950 VZ |
3294 | if test "$enableval" = yes; then |
3295 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
3296 | else | |
3297 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
3298 | fi | |
a0b9e27f | 3299 | |
a1622950 | 3300 | else |
a0b9e27f | 3301 | |
a1622950 VZ |
3302 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
3303 | if test "x$LINE" != x ; then | |
3304 | eval "DEFAULT_$LINE" | |
3305 | else | |
3306 | no_cache=1 | |
3307 | fi | |
3308 | ||
3309 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
a0b9e27f MB |
3310 | |
3311 | fi | |
a1622950 VZ |
3312 | |
3313 | ||
3314 | eval "$ac_cv_use_http" | |
3315 | if test "$no_cache" != 1; then | |
3316 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
3317 | fi | |
3318 | ||
3319 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
a0b9e27f | 3320 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3321 | else |
a0b9e27f | 3322 | echo "$ac_t""no" 1>&6 |
a1622950 | 3323 | fi |
a0b9e27f | 3324 | |
a1622950 | 3325 | |
5005acfe VZ |
3326 | enablestring= |
3327 | echo $ac_n "checking for --${enablestring:-enable}-fileproto""... $ac_c" 1>&6 | |
ac0c4cc3 | 3328 | echo "configure:3329: checking for --${enablestring:-enable}-fileproto" >&5 |
a1622950 VZ |
3329 | no_cache=0 |
3330 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
3331 | if test "${enable_fileproto+set}" = set; then | |
3332 | enableval="$enable_fileproto" | |
a0b9e27f | 3333 | |
a1622950 VZ |
3334 | if test "$enableval" = yes; then |
3335 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
3336 | else | |
3337 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
3338 | fi | |
a0b9e27f | 3339 | |
a1622950 | 3340 | else |
a0b9e27f | 3341 | |
a1622950 VZ |
3342 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
3343 | if test "x$LINE" != x ; then | |
3344 | eval "DEFAULT_$LINE" | |
3345 | else | |
3346 | no_cache=1 | |
3347 | fi | |
3348 | ||
3349 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
a0b9e27f MB |
3350 | |
3351 | fi | |
a1622950 VZ |
3352 | |
3353 | ||
3354 | eval "$ac_cv_use_fileproto" | |
3355 | if test "$no_cache" != 1; then | |
3356 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
3357 | fi | |
3358 | ||
3359 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
a0b9e27f | 3360 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3361 | else |
a0b9e27f | 3362 | echo "$ac_t""no" 1>&6 |
a1622950 | 3363 | fi |
a0b9e27f | 3364 | |
a1622950 | 3365 | |
5005acfe VZ |
3366 | enablestring= |
3367 | echo $ac_n "checking for --${enablestring:-enable}-sockets""... $ac_c" 1>&6 | |
ac0c4cc3 | 3368 | echo "configure:3369: checking for --${enablestring:-enable}-sockets" >&5 |
10f2d63a VZ |
3369 | no_cache=0 |
3370 | # Check whether --enable-sockets or --disable-sockets was given. | |
3371 | if test "${enable_sockets+set}" = set; then | |
3372 | enableval="$enable_sockets" | |
a0b9e27f | 3373 | |
10f2d63a VZ |
3374 | if test "$enableval" = yes; then |
3375 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
3376 | else | |
3377 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
3378 | fi | |
a0b9e27f | 3379 | |
10f2d63a | 3380 | else |
a0b9e27f | 3381 | |
10f2d63a VZ |
3382 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
3383 | if test "x$LINE" != x ; then | |
3384 | eval "DEFAULT_$LINE" | |
3385 | else | |
3386 | no_cache=1 | |
3387 | fi | |
3388 | ||
3389 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
a0b9e27f MB |
3390 | |
3391 | fi | |
10f2d63a VZ |
3392 | |
3393 | ||
3394 | eval "$ac_cv_use_sockets" | |
3395 | if test "$no_cache" != 1; then | |
3396 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
3397 | fi | |
3398 | ||
3399 | if test "$wxUSE_SOCKETS" = yes; then | |
a0b9e27f | 3400 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3401 | else |
a0b9e27f | 3402 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3403 | fi |
a0b9e27f | 3404 | |
8284b0c5 | 3405 | |
5005acfe VZ |
3406 | enablestring= |
3407 | echo $ac_n "checking for --${enablestring:-enable}-ole""... $ac_c" 1>&6 | |
ac0c4cc3 | 3408 | echo "configure:3409: checking for --${enablestring:-enable}-ole" >&5 |
3bce6687 JS |
3409 | no_cache=0 |
3410 | # Check whether --enable-ole or --disable-ole was given. | |
3411 | if test "${enable_ole+set}" = set; then | |
3412 | enableval="$enable_ole" | |
3413 | ||
3414 | if test "$enableval" = yes; then | |
3415 | ac_cv_use_ole='wxUSE_OLE=yes' | |
3416 | else | |
3417 | ac_cv_use_ole='wxUSE_OLE=no' | |
3418 | fi | |
3419 | ||
3420 | else | |
3421 | ||
3422 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
3423 | if test "x$LINE" != x ; then | |
3424 | eval "DEFAULT_$LINE" | |
3425 | else | |
3426 | no_cache=1 | |
3427 | fi | |
3428 | ||
3429 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
3430 | ||
3431 | fi | |
3432 | ||
3433 | ||
3434 | eval "$ac_cv_use_ole" | |
3435 | if test "$no_cache" != 1; then | |
3436 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
3437 | fi | |
3438 | ||
3439 | if test "$wxUSE_OLE" = yes; then | |
3440 | echo "$ac_t""yes" 1>&6 | |
3441 | else | |
3442 | echo "$ac_t""no" 1>&6 | |
3443 | fi | |
3444 | ||
3445 | ||
5005acfe VZ |
3446 | enablestring= |
3447 | echo $ac_n "checking for --${enablestring:-enable}-dataobj""... $ac_c" 1>&6 | |
ac0c4cc3 | 3448 | echo "configure:3449: checking for --${enablestring:-enable}-dataobj" >&5 |
3bce6687 JS |
3449 | no_cache=0 |
3450 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
3451 | if test "${enable_dataobj+set}" = set; then | |
3452 | enableval="$enable_dataobj" | |
3453 | ||
3454 | if test "$enableval" = yes; then | |
3455 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
3456 | else | |
3457 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
3458 | fi | |
3459 | ||
3460 | else | |
3461 | ||
3462 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
3463 | if test "x$LINE" != x ; then | |
3464 | eval "DEFAULT_$LINE" | |
3465 | else | |
3466 | no_cache=1 | |
3467 | fi | |
3468 | ||
3469 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
3470 | ||
3471 | fi | |
3472 | ||
3473 | ||
3474 | eval "$ac_cv_use_dataobj" | |
3475 | if test "$no_cache" != 1; then | |
3476 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
3477 | fi | |
3478 | ||
3479 | if test "$wxUSE_DATAOBJ" = yes; then | |
3480 | echo "$ac_t""yes" 1>&6 | |
3481 | else | |
3482 | echo "$ac_t""no" 1>&6 | |
3483 | fi | |
3484 | ||
3485 | ||
52127426 | 3486 | |
5005acfe VZ |
3487 | enablestring= |
3488 | echo $ac_n "checking for --${enablestring:-enable}-ipc""... $ac_c" 1>&6 | |
ac0c4cc3 | 3489 | echo "configure:3490: checking for --${enablestring:-enable}-ipc" >&5 |
10f2d63a | 3490 | no_cache=0 |
eb4efbdc VZ |
3491 | # Check whether --enable-ipc or --disable-ipc was given. |
3492 | if test "${enable_ipc+set}" = set; then | |
3493 | enableval="$enable_ipc" | |
a0b9e27f | 3494 | |
10f2d63a | 3495 | if test "$enableval" = yes; then |
eb4efbdc | 3496 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 3497 | else |
eb4efbdc | 3498 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 3499 | fi |
a0b9e27f | 3500 | |
10f2d63a | 3501 | else |
a0b9e27f | 3502 | |
eb4efbdc | 3503 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
3504 | if test "x$LINE" != x ; then |
3505 | eval "DEFAULT_$LINE" | |
3506 | else | |
3507 | no_cache=1 | |
3508 | fi | |
3509 | ||
eb4efbdc | 3510 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
a0b9e27f MB |
3511 | |
3512 | fi | |
10f2d63a VZ |
3513 | |
3514 | ||
eb4efbdc | 3515 | eval "$ac_cv_use_ipc" |
10f2d63a | 3516 | if test "$no_cache" != 1; then |
eb4efbdc | 3517 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3518 | fi |
3519 | ||
eb4efbdc | 3520 | if test "$wxUSE_IPC" = yes; then |
a0b9e27f | 3521 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3522 | else |
a0b9e27f | 3523 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3524 | fi |
a0b9e27f | 3525 | |
52127426 | 3526 | |
8284b0c5 | 3527 | |
5005acfe VZ |
3528 | enablestring= |
3529 | echo $ac_n "checking for --${enablestring:-enable}-cmdline""... $ac_c" 1>&6 | |
ac0c4cc3 | 3530 | echo "configure:3531: checking for --${enablestring:-enable}-cmdline" >&5 |
1e6feb95 VZ |
3531 | no_cache=0 |
3532 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
3533 | if test "${enable_cmdline+set}" = set; then | |
3534 | enableval="$enable_cmdline" | |
a0b9e27f | 3535 | |
1e6feb95 VZ |
3536 | if test "$enableval" = yes; then |
3537 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
3538 | else | |
3539 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
3540 | fi | |
a0b9e27f | 3541 | |
1e6feb95 | 3542 | else |
a0b9e27f | 3543 | |
1e6feb95 VZ |
3544 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` |
3545 | if test "x$LINE" != x ; then | |
3546 | eval "DEFAULT_$LINE" | |
3547 | else | |
3548 | no_cache=1 | |
3549 | fi | |
3550 | ||
3551 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
a0b9e27f MB |
3552 | |
3553 | fi | |
1e6feb95 VZ |
3554 | |
3555 | ||
3556 | eval "$ac_cv_use_cmdline" | |
3557 | if test "$no_cache" != 1; then | |
3558 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3559 | fi | |
3560 | ||
3561 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
a0b9e27f | 3562 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3563 | else |
a0b9e27f | 3564 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3565 | fi |
a0b9e27f | 3566 | |
1e6feb95 | 3567 | |
5005acfe VZ |
3568 | enablestring= |
3569 | echo $ac_n "checking for --${enablestring:-enable}-datetime""... $ac_c" 1>&6 | |
ac0c4cc3 | 3570 | echo "configure:3571: checking for --${enablestring:-enable}-datetime" >&5 |
1e6feb95 VZ |
3571 | no_cache=0 |
3572 | # Check whether --enable-datetime or --disable-datetime was given. | |
3573 | if test "${enable_datetime+set}" = set; then | |
3574 | enableval="$enable_datetime" | |
a0b9e27f | 3575 | |
1e6feb95 VZ |
3576 | if test "$enableval" = yes; then |
3577 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3578 | else | |
3579 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3580 | fi | |
a0b9e27f | 3581 | |
1e6feb95 | 3582 | else |
a0b9e27f | 3583 | |
1e6feb95 VZ |
3584 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` |
3585 | if test "x$LINE" != x ; then | |
3586 | eval "DEFAULT_$LINE" | |
3587 | else | |
3588 | no_cache=1 | |
3589 | fi | |
3590 | ||
3591 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
a0b9e27f MB |
3592 | |
3593 | fi | |
1e6feb95 VZ |
3594 | |
3595 | ||
3596 | eval "$ac_cv_use_datetime" | |
3597 | if test "$no_cache" != 1; then | |
3598 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3599 | fi | |
3600 | ||
3601 | if test "$wxUSE_DATETIME" = yes; then | |
a0b9e27f | 3602 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3603 | else |
a0b9e27f | 3604 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3605 | fi |
a0b9e27f | 3606 | |
1e6feb95 | 3607 | |
5005acfe VZ |
3608 | enablestring= |
3609 | echo $ac_n "checking for --${enablestring:-enable}-timedate""... $ac_c" 1>&6 | |
ac0c4cc3 | 3610 | echo "configure:3611: checking for --${enablestring:-enable}-timedate" >&5 |
1e6feb95 VZ |
3611 | no_cache=0 |
3612 | # Check whether --enable-timedate or --disable-timedate was given. | |
3613 | if test "${enable_timedate+set}" = set; then | |
3614 | enableval="$enable_timedate" | |
a0b9e27f | 3615 | |
1e6feb95 VZ |
3616 | if test "$enableval" = yes; then |
3617 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3618 | else | |
3619 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3620 | fi | |
a0b9e27f | 3621 | |
1e6feb95 | 3622 | else |
a0b9e27f | 3623 | |
1e6feb95 VZ |
3624 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` |
3625 | if test "x$LINE" != x ; then | |
3626 | eval "DEFAULT_$LINE" | |
3627 | else | |
3628 | no_cache=1 | |
3629 | fi | |
3630 | ||
3631 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
a0b9e27f MB |
3632 | |
3633 | fi | |
1e6feb95 VZ |
3634 | |
3635 | ||
3636 | eval "$ac_cv_use_timedate" | |
3637 | if test "$no_cache" != 1; then | |
3638 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3639 | fi | |
3640 | ||
3641 | if test "$wxUSE_TIMEDATE" = yes; then | |
a0b9e27f | 3642 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3643 | else |
a0b9e27f | 3644 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3645 | fi |
a0b9e27f | 3646 | |
1e6feb95 | 3647 | |
5005acfe VZ |
3648 | enablestring= |
3649 | echo $ac_n "checking for --${enablestring:-enable}-stopwatch""... $ac_c" 1>&6 | |
ac0c4cc3 | 3650 | echo "configure:3651: checking for --${enablestring:-enable}-stopwatch" >&5 |
1e6feb95 VZ |
3651 | no_cache=0 |
3652 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3653 | if test "${enable_stopwatch+set}" = set; then | |
3654 | enableval="$enable_stopwatch" | |
a0b9e27f | 3655 | |
1e6feb95 VZ |
3656 | if test "$enableval" = yes; then |
3657 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3658 | else | |
3659 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3660 | fi | |
a0b9e27f | 3661 | |
1e6feb95 | 3662 | else |
a0b9e27f | 3663 | |
1e6feb95 VZ |
3664 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` |
3665 | if test "x$LINE" != x ; then | |
3666 | eval "DEFAULT_$LINE" | |
3667 | else | |
3668 | no_cache=1 | |
3669 | fi | |
3670 | ||
3671 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
a0b9e27f MB |
3672 | |
3673 | fi | |
1e6feb95 VZ |
3674 | |
3675 | ||
3676 | eval "$ac_cv_use_stopwatch" | |
3677 | if test "$no_cache" != 1; then | |
3678 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3679 | fi | |
3680 | ||
3681 | if test "$wxUSE_STOPWATCH" = yes; then | |
a0b9e27f | 3682 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3683 | else |
a0b9e27f | 3684 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3685 | fi |
a0b9e27f | 3686 | |
1e6feb95 | 3687 | |
5005acfe VZ |
3688 | enablestring= |
3689 | echo $ac_n "checking for --${enablestring:-enable}-dialupman""... $ac_c" 1>&6 | |
ac0c4cc3 | 3690 | echo "configure:3691: checking for --${enablestring:-enable}-dialupman" >&5 |
10f2d63a | 3691 | no_cache=0 |
eb4efbdc VZ |
3692 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3693 | if test "${enable_dialupman+set}" = set; then | |
3694 | enableval="$enable_dialupman" | |
a0b9e27f | 3695 | |
10f2d63a | 3696 | if test "$enableval" = yes; then |
eb4efbdc | 3697 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3698 | else |
eb4efbdc | 3699 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3700 | fi |
a0b9e27f | 3701 | |
10f2d63a | 3702 | else |
a0b9e27f | 3703 | |
eb4efbdc | 3704 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3705 | if test "x$LINE" != x ; then |
3706 | eval "DEFAULT_$LINE" | |
3707 | else | |
3708 | no_cache=1 | |
3709 | fi | |
3710 | ||
eb4efbdc | 3711 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
a0b9e27f MB |
3712 | |
3713 | fi | |
10f2d63a VZ |
3714 | |
3715 | ||
eb4efbdc | 3716 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3717 | if test "$no_cache" != 1; then |
eb4efbdc | 3718 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3719 | fi |
3720 | ||
eb4efbdc | 3721 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
a0b9e27f | 3722 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3723 | else |
a0b9e27f | 3724 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3725 | fi |
a0b9e27f | 3726 | |
10f2d63a | 3727 | |
5005acfe VZ |
3728 | enablestring= |
3729 | echo $ac_n "checking for --${enablestring:-enable}-apple_ieee""... $ac_c" 1>&6 | |
ac0c4cc3 | 3730 | echo "configure:3731: checking for --${enablestring:-enable}-apple_ieee" >&5 |
10f2d63a VZ |
3731 | no_cache=0 |
3732 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3733 | if test "${enable_apple_ieee+set}" = set; then | |
3734 | enableval="$enable_apple_ieee" | |
a0b9e27f | 3735 | |
10f2d63a VZ |
3736 | if test "$enableval" = yes; then |
3737 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3738 | else | |
3739 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3740 | fi | |
a0b9e27f | 3741 | |
10f2d63a | 3742 | else |
a0b9e27f | 3743 | |
10f2d63a VZ |
3744 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3745 | if test "x$LINE" != x ; then | |
3746 | eval "DEFAULT_$LINE" | |
3747 | else | |
3748 | no_cache=1 | |
3749 | fi | |
3750 | ||
3751 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
a0b9e27f MB |
3752 | |
3753 | fi | |
10f2d63a VZ |
3754 | |
3755 | ||
3756 | eval "$ac_cv_use_apple_ieee" | |
3757 | if test "$no_cache" != 1; then | |
3758 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3759 | fi | |
3760 | ||
3761 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
a0b9e27f | 3762 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3763 | else |
a0b9e27f | 3764 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3765 | fi |
a0b9e27f | 3766 | |
10f2d63a | 3767 | |
5005acfe VZ |
3768 | enablestring= |
3769 | echo $ac_n "checking for --${enablestring:-enable}-timer""... $ac_c" 1>&6 | |
ac0c4cc3 | 3770 | echo "configure:3771: checking for --${enablestring:-enable}-timer" >&5 |
10f2d63a | 3771 | no_cache=0 |
1e6feb95 VZ |
3772 | # Check whether --enable-timer or --disable-timer was given. |
3773 | if test "${enable_timer+set}" = set; then | |
3774 | enableval="$enable_timer" | |
a0b9e27f | 3775 | |
10f2d63a | 3776 | if test "$enableval" = yes; then |
1e6feb95 | 3777 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3778 | else |
1e6feb95 | 3779 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3780 | fi |
a0b9e27f | 3781 | |
10f2d63a | 3782 | else |
a0b9e27f | 3783 | |
1e6feb95 | 3784 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3785 | if test "x$LINE" != x ; then |
3786 | eval "DEFAULT_$LINE" | |
3787 | else | |
3788 | no_cache=1 | |
3789 | fi | |
3790 | ||
1e6feb95 | 3791 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
a0b9e27f MB |
3792 | |
3793 | fi | |
10f2d63a VZ |
3794 | |
3795 | ||
1e6feb95 | 3796 | eval "$ac_cv_use_timer" |
10f2d63a | 3797 | if test "$no_cache" != 1; then |
1e6feb95 | 3798 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3799 | fi |
3800 | ||
1e6feb95 | 3801 | if test "$wxUSE_TIMER" = yes; then |
a0b9e27f | 3802 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3803 | else |
a0b9e27f | 3804 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3805 | fi |
a0b9e27f | 3806 | |
10f2d63a | 3807 | |
5005acfe VZ |
3808 | enablestring= |
3809 | echo $ac_n "checking for --${enablestring:-enable}-wave""... $ac_c" 1>&6 | |
ac0c4cc3 | 3810 | echo "configure:3811: checking for --${enablestring:-enable}-wave" >&5 |
10f2d63a VZ |
3811 | no_cache=0 |
3812 | # Check whether --enable-wave or --disable-wave was given. | |
3813 | if test "${enable_wave+set}" = set; then | |
3814 | enableval="$enable_wave" | |
a0b9e27f | 3815 | |
10f2d63a VZ |
3816 | if test "$enableval" = yes; then |
3817 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3818 | else | |
3819 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3820 | fi | |
a0b9e27f | 3821 | |
10f2d63a | 3822 | else |
a0b9e27f | 3823 | |
10f2d63a VZ |
3824 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3825 | if test "x$LINE" != x ; then | |
3826 | eval "DEFAULT_$LINE" | |
3827 | else | |
3828 | no_cache=1 | |
3829 | fi | |
3830 | ||
3831 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
a0b9e27f MB |
3832 | |
3833 | fi | |
10f2d63a VZ |
3834 | |
3835 | ||
3836 | eval "$ac_cv_use_wave" | |
3837 | if test "$no_cache" != 1; then | |
3838 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3839 | fi | |
3840 | ||
3841 | if test "$wxUSE_WAVE" = yes; then | |
a0b9e27f | 3842 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3843 | else |
a0b9e27f | 3844 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3845 | fi |
a0b9e27f | 3846 | |
10f2d63a | 3847 | |
5005acfe VZ |
3848 | enablestring= |
3849 | echo $ac_n "checking for --${enablestring:-enable}-fraction""... $ac_c" 1>&6 | |
ac0c4cc3 | 3850 | echo "configure:3851: checking for --${enablestring:-enable}-fraction" >&5 |
10f2d63a VZ |
3851 | no_cache=0 |
3852 | # Check whether --enable-fraction or --disable-fraction was given. | |
3853 | if test "${enable_fraction+set}" = set; then | |
3854 | enableval="$enable_fraction" | |
a0b9e27f | 3855 | |
10f2d63a VZ |
3856 | if test "$enableval" = yes; then |
3857 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3858 | else | |
3859 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3860 | fi | |
a0b9e27f | 3861 | |
10f2d63a | 3862 | else |
a0b9e27f | 3863 | |
10f2d63a VZ |
3864 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3865 | if test "x$LINE" != x ; then | |
3866 | eval "DEFAULT_$LINE" | |
3867 | else | |
3868 | no_cache=1 | |
3869 | fi | |
3870 | ||
3871 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
a0b9e27f MB |
3872 | |
3873 | fi | |
10f2d63a VZ |
3874 | |
3875 | ||
3876 | eval "$ac_cv_use_fraction" | |
3877 | if test "$no_cache" != 1; then | |
3878 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3879 | fi | |
3880 | ||
3881 | if test "$wxUSE_FRACTION" = yes; then | |
a0b9e27f | 3882 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3883 | else |
a0b9e27f | 3884 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3885 | fi |
a0b9e27f | 3886 | |
10f2d63a | 3887 | |
5005acfe VZ |
3888 | enablestring= |
3889 | echo $ac_n "checking for --${enablestring:-enable}-dynlib""... $ac_c" 1>&6 | |
ac0c4cc3 | 3890 | echo "configure:3891: checking for --${enablestring:-enable}-dynlib" >&5 |
10f2d63a VZ |
3891 | no_cache=0 |
3892 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3893 | if test "${enable_dynlib+set}" = set; then | |
3894 | enableval="$enable_dynlib" | |
a0b9e27f | 3895 | |
10f2d63a VZ |
3896 | if test "$enableval" = yes; then |
3897 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3898 | else | |
3899 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3900 | fi | |
a0b9e27f | 3901 | |
10f2d63a | 3902 | else |
a0b9e27f | 3903 | |
10f2d63a VZ |
3904 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3905 | if test "x$LINE" != x ; then | |
3906 | eval "DEFAULT_$LINE" | |
3907 | else | |
3908 | no_cache=1 | |
3909 | fi | |
3910 | ||
3911 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
a0b9e27f MB |
3912 | |
3913 | fi | |
10f2d63a VZ |
3914 | |
3915 | ||
3916 | eval "$ac_cv_use_dynlib" | |
3917 | if test "$no_cache" != 1; then | |
3918 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3919 | fi | |
3920 | ||
3921 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
a0b9e27f | 3922 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3923 | else |
a0b9e27f | 3924 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3925 | fi |
a0b9e27f | 3926 | |
10f2d63a | 3927 | |
5005acfe VZ |
3928 | enablestring= |
3929 | echo $ac_n "checking for --${enablestring:-enable}-dynamicloader""... $ac_c" 1>&6 | |
ac0c4cc3 | 3930 | echo "configure:3931: checking for --${enablestring:-enable}-dynamicloader" >&5 |
0b9ab0bd RL |
3931 | no_cache=0 |
3932 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
3933 | if test "${enable_dynamicloader+set}" = set; then | |
3934 | enableval="$enable_dynamicloader" | |
a0b9e27f | 3935 | |
0b9ab0bd RL |
3936 | if test "$enableval" = yes; then |
3937 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
3938 | else | |
3939 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
3940 | fi | |
a0b9e27f | 3941 | |
0b9ab0bd | 3942 | else |
a0b9e27f | 3943 | |
0b9ab0bd RL |
3944 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` |
3945 | if test "x$LINE" != x ; then | |
3946 | eval "DEFAULT_$LINE" | |
3947 | else | |
3948 | no_cache=1 | |
3949 | fi | |
3950 | ||
3951 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
a0b9e27f MB |
3952 | |
3953 | fi | |
0b9ab0bd RL |
3954 | |
3955 | ||
3956 | eval "$ac_cv_use_dynamicloader" | |
3957 | if test "$no_cache" != 1; then | |
3958 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
3959 | fi | |
3960 | ||
3961 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
a0b9e27f | 3962 | echo "$ac_t""yes" 1>&6 |
0b9ab0bd | 3963 | else |
a0b9e27f | 3964 | echo "$ac_t""no" 1>&6 |
0b9ab0bd | 3965 | fi |
a0b9e27f | 3966 | |
0b9ab0bd | 3967 | |
5005acfe VZ |
3968 | enablestring= |
3969 | echo $ac_n "checking for --${enablestring:-enable}-longlong""... $ac_c" 1>&6 | |
ac0c4cc3 | 3970 | echo "configure:3971: checking for --${enablestring:-enable}-longlong" >&5 |
10f2d63a VZ |
3971 | no_cache=0 |
3972 | # Check whether --enable-longlong or --disable-longlong was given. | |
3973 | if test "${enable_longlong+set}" = set; then | |
3974 | enableval="$enable_longlong" | |
a0b9e27f | 3975 | |
10f2d63a VZ |
3976 | if test "$enableval" = yes; then |
3977 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3978 | else | |
3979 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3980 | fi | |
a0b9e27f | 3981 | |
10f2d63a | 3982 | else |
a0b9e27f | 3983 | |
10f2d63a VZ |
3984 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3985 | if test "x$LINE" != x ; then | |
3986 | eval "DEFAULT_$LINE" | |
3987 | else | |
3988 | no_cache=1 | |
3989 | fi | |
3990 | ||
3991 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
a0b9e27f MB |
3992 | |
3993 | fi | |
10f2d63a VZ |
3994 | |
3995 | ||
3996 | eval "$ac_cv_use_longlong" | |
3997 | if test "$no_cache" != 1; then | |
3998 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3999 | fi | |
4000 | ||
4001 | if test "$wxUSE_LONGLONG" = yes; then | |
a0b9e27f | 4002 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4003 | else |
a0b9e27f | 4004 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4005 | fi |
a0b9e27f | 4006 | |
10f2d63a | 4007 | |
5005acfe VZ |
4008 | enablestring= |
4009 | echo $ac_n "checking for --${enablestring:-enable}-geometry""... $ac_c" 1>&6 | |
ac0c4cc3 | 4010 | echo "configure:4011: checking for --${enablestring:-enable}-geometry" >&5 |
e8f65ba6 RR |
4011 | no_cache=0 |
4012 | # Check whether --enable-geometry or --disable-geometry was given. | |
4013 | if test "${enable_geometry+set}" = set; then | |
4014 | enableval="$enable_geometry" | |
a0b9e27f | 4015 | |
e8f65ba6 RR |
4016 | if test "$enableval" = yes; then |
4017 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
4018 | else | |
4019 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
4020 | fi | |
a0b9e27f | 4021 | |
e8f65ba6 | 4022 | else |
a0b9e27f | 4023 | |
e8f65ba6 RR |
4024 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
4025 | if test "x$LINE" != x ; then | |
4026 | eval "DEFAULT_$LINE" | |
4027 | else | |
4028 | no_cache=1 | |
4029 | fi | |
4030 | ||
4031 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
a0b9e27f MB |
4032 | |
4033 | fi | |
e8f65ba6 RR |
4034 | |
4035 | ||
4036 | eval "$ac_cv_use_geometry" | |
4037 | if test "$no_cache" != 1; then | |
4038 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
4039 | fi | |
4040 | ||
4041 | if test "$wxUSE_GEOMETRY" = yes; then | |
a0b9e27f | 4042 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 4043 | else |
a0b9e27f | 4044 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 4045 | fi |
a0b9e27f | 4046 | |
e8f65ba6 | 4047 | |
5005acfe VZ |
4048 | enablestring= |
4049 | echo $ac_n "checking for --${enablestring:-enable}-log""... $ac_c" 1>&6 | |
ac0c4cc3 | 4050 | echo "configure:4051: checking for --${enablestring:-enable}-log" >&5 |
10f2d63a VZ |
4051 | no_cache=0 |
4052 | # Check whether --enable-log or --disable-log was given. | |
4053 | if test "${enable_log+set}" = set; then | |
4054 | enableval="$enable_log" | |
a0b9e27f | 4055 | |
10f2d63a VZ |
4056 | if test "$enableval" = yes; then |
4057 | ac_cv_use_log='wxUSE_LOG=yes' | |
4058 | else | |
4059 | ac_cv_use_log='wxUSE_LOG=no' | |
4060 | fi | |
a0b9e27f | 4061 | |
10f2d63a | 4062 | else |
a0b9e27f | 4063 | |
10f2d63a VZ |
4064 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
4065 | if test "x$LINE" != x ; then | |
4066 | eval "DEFAULT_$LINE" | |
4067 | else | |
4068 | no_cache=1 | |
4069 | fi | |
4070 | ||
4071 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
a0b9e27f MB |
4072 | |
4073 | fi | |
10f2d63a VZ |
4074 | |
4075 | ||
4076 | eval "$ac_cv_use_log" | |
4077 | if test "$no_cache" != 1; then | |
4078 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
4079 | fi | |
4080 | ||
4081 | if test "$wxUSE_LOG" = yes; then | |
a0b9e27f | 4082 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4083 | else |
a0b9e27f | 4084 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4085 | fi |
a0b9e27f | 4086 | |
10f2d63a | 4087 | |
5005acfe VZ |
4088 | enablestring= |
4089 | echo $ac_n "checking for --${enablestring:-enable}-streams""... $ac_c" 1>&6 | |
ac0c4cc3 | 4090 | echo "configure:4091: checking for --${enablestring:-enable}-streams" >&5 |
10f2d63a VZ |
4091 | no_cache=0 |
4092 | # Check whether --enable-streams or --disable-streams was given. | |
4093 | if test "${enable_streams+set}" = set; then | |
4094 | enableval="$enable_streams" | |
a0b9e27f | 4095 | |
10f2d63a VZ |
4096 | if test "$enableval" = yes; then |
4097 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
4098 | else | |
4099 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
4100 | fi | |
a0b9e27f | 4101 | |
10f2d63a | 4102 | else |
a0b9e27f | 4103 | |
10f2d63a VZ |
4104 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
4105 | if test "x$LINE" != x ; then | |
4106 | eval "DEFAULT_$LINE" | |
4107 | else | |
4108 | no_cache=1 | |
4109 | fi | |
4110 | ||
4111 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
a0b9e27f MB |
4112 | |
4113 | fi | |
10f2d63a VZ |
4114 | |
4115 | ||
4116 | eval "$ac_cv_use_streams" | |
4117 | if test "$no_cache" != 1; then | |
4118 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
4119 | fi | |
4120 | ||
4121 | if test "$wxUSE_STREAMS" = yes; then | |
a0b9e27f | 4122 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4123 | else |
a0b9e27f | 4124 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4125 | fi |
a0b9e27f | 4126 | |
10f2d63a | 4127 | |
5005acfe VZ |
4128 | enablestring= |
4129 | echo $ac_n "checking for --${enablestring:-enable}-file""... $ac_c" 1>&6 | |
ac0c4cc3 | 4130 | echo "configure:4131: checking for --${enablestring:-enable}-file" >&5 |
10f2d63a VZ |
4131 | no_cache=0 |
4132 | # Check whether --enable-file or --disable-file was given. | |
4133 | if test "${enable_file+set}" = set; then | |
4134 | enableval="$enable_file" | |
a0b9e27f | 4135 | |
10f2d63a VZ |
4136 | if test "$enableval" = yes; then |
4137 | ac_cv_use_file='wxUSE_FILE=yes' | |
4138 | else | |
4139 | ac_cv_use_file='wxUSE_FILE=no' | |
4140 | fi | |
a0b9e27f | 4141 | |
10f2d63a | 4142 | else |
a0b9e27f | 4143 | |
10f2d63a VZ |
4144 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
4145 | if test "x$LINE" != x ; then | |
4146 | eval "DEFAULT_$LINE" | |
4147 | else | |
4148 | no_cache=1 | |
4149 | fi | |
4150 | ||
4151 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
a0b9e27f MB |
4152 | |
4153 | fi | |
10f2d63a VZ |
4154 | |
4155 | ||
4156 | eval "$ac_cv_use_file" | |
4157 | if test "$no_cache" != 1; then | |
4158 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
4159 | fi | |
4160 | ||
4161 | if test "$wxUSE_FILE" = yes; then | |
a0b9e27f | 4162 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4163 | else |
a0b9e27f | 4164 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4165 | fi |
a0b9e27f | 4166 | |
10f2d63a | 4167 | |
5005acfe VZ |
4168 | enablestring= |
4169 | echo $ac_n "checking for --${enablestring:-enable}-ffile""... $ac_c" 1>&6 | |
ac0c4cc3 | 4170 | echo "configure:4171: checking for --${enablestring:-enable}-ffile" >&5 |
10f2d63a | 4171 | no_cache=0 |
1e6feb95 VZ |
4172 | # Check whether --enable-ffile or --disable-ffile was given. |
4173 | if test "${enable_ffile+set}" = set; then | |
4174 | enableval="$enable_ffile" | |
a0b9e27f | 4175 | |
10f2d63a | 4176 | if test "$enableval" = yes; then |
1e6feb95 | 4177 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 4178 | else |
1e6feb95 | 4179 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 4180 | fi |
a0b9e27f | 4181 | |
10f2d63a | 4182 | else |
a0b9e27f | 4183 | |
1e6feb95 | 4184 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4185 | if test "x$LINE" != x ; then |
4186 | eval "DEFAULT_$LINE" | |
4187 | else | |
4188 | no_cache=1 | |
4189 | fi | |
4190 | ||
1e6feb95 | 4191 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
a0b9e27f MB |
4192 | |
4193 | fi | |
10f2d63a VZ |
4194 | |
4195 | ||
1e6feb95 | 4196 | eval "$ac_cv_use_ffile" |
10f2d63a | 4197 | if test "$no_cache" != 1; then |
1e6feb95 | 4198 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4199 | fi |
4200 | ||
1e6feb95 | 4201 | if test "$wxUSE_FFILE" = yes; then |
a0b9e27f | 4202 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4203 | else |
a0b9e27f | 4204 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4205 | fi |
a0b9e27f | 4206 | |
10f2d63a | 4207 | |
5005acfe VZ |
4208 | enablestring= |
4209 | echo $ac_n "checking for --${enablestring:-enable}-textbuf""... $ac_c" 1>&6 | |
ac0c4cc3 | 4210 | echo "configure:4211: checking for --${enablestring:-enable}-textbuf" >&5 |
a3a584a7 VZ |
4211 | no_cache=0 |
4212 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
4213 | if test "${enable_textbuf+set}" = set; then | |
4214 | enableval="$enable_textbuf" | |
a0b9e27f | 4215 | |
a3a584a7 VZ |
4216 | if test "$enableval" = yes; then |
4217 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
4218 | else | |
4219 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
4220 | fi | |
a0b9e27f | 4221 | |
a3a584a7 | 4222 | else |
a0b9e27f | 4223 | |
a3a584a7 VZ |
4224 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` |
4225 | if test "x$LINE" != x ; then | |
4226 | eval "DEFAULT_$LINE" | |
4227 | else | |
4228 | no_cache=1 | |
4229 | fi | |
4230 | ||
4231 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
a0b9e27f MB |
4232 | |
4233 | fi | |
a3a584a7 VZ |
4234 | |
4235 | ||
4236 | eval "$ac_cv_use_textbuf" | |
4237 | if test "$no_cache" != 1; then | |
4238 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
4239 | fi | |
4240 | ||
4241 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
a0b9e27f | 4242 | echo "$ac_t""yes" 1>&6 |
a3a584a7 | 4243 | else |
a0b9e27f | 4244 | echo "$ac_t""no" 1>&6 |
a3a584a7 | 4245 | fi |
a0b9e27f | 4246 | |
a3a584a7 | 4247 | |
5005acfe VZ |
4248 | enablestring= |
4249 | echo $ac_n "checking for --${enablestring:-enable}-textfile""... $ac_c" 1>&6 | |
ac0c4cc3 | 4250 | echo "configure:4251: checking for --${enablestring:-enable}-textfile" >&5 |
10f2d63a | 4251 | no_cache=0 |
1e6feb95 VZ |
4252 | # Check whether --enable-textfile or --disable-textfile was given. |
4253 | if test "${enable_textfile+set}" = set; then | |
4254 | enableval="$enable_textfile" | |
a0b9e27f | 4255 | |
10f2d63a | 4256 | if test "$enableval" = yes; then |
1e6feb95 | 4257 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 4258 | else |
1e6feb95 | 4259 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 4260 | fi |
a0b9e27f | 4261 | |
10f2d63a | 4262 | else |
a0b9e27f | 4263 | |
1e6feb95 | 4264 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4265 | if test "x$LINE" != x ; then |
4266 | eval "DEFAULT_$LINE" | |
4267 | else | |
4268 | no_cache=1 | |
4269 | fi | |
4270 | ||
1e6feb95 | 4271 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
a0b9e27f MB |
4272 | |
4273 | fi | |
10f2d63a VZ |
4274 | |
4275 | ||
1e6feb95 | 4276 | eval "$ac_cv_use_textfile" |
10f2d63a | 4277 | if test "$no_cache" != 1; then |
1e6feb95 | 4278 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4279 | fi |
4280 | ||
1e6feb95 | 4281 | if test "$wxUSE_TEXTFILE" = yes; then |
a0b9e27f | 4282 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4283 | else |
a0b9e27f | 4284 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4285 | fi |
a0b9e27f | 4286 | |
10f2d63a | 4287 | |
5005acfe VZ |
4288 | enablestring= |
4289 | echo $ac_n "checking for --${enablestring:-enable}-fontmap""... $ac_c" 1>&6 | |
ac0c4cc3 | 4290 | echo "configure:4291: checking for --${enablestring:-enable}-fontmap" >&5 |
10f2d63a | 4291 | no_cache=0 |
1e6feb95 VZ |
4292 | # Check whether --enable-fontmap or --disable-fontmap was given. |
4293 | if test "${enable_fontmap+set}" = set; then | |
4294 | enableval="$enable_fontmap" | |
a0b9e27f | 4295 | |
10f2d63a | 4296 | if test "$enableval" = yes; then |
1e6feb95 | 4297 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 4298 | else |
1e6feb95 | 4299 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 4300 | fi |
a0b9e27f | 4301 | |
10f2d63a | 4302 | else |
a0b9e27f | 4303 | |
1e6feb95 | 4304 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
4305 | if test "x$LINE" != x ; then |
4306 | eval "DEFAULT_$LINE" | |
4307 | else | |
4308 | no_cache=1 | |
4309 | fi | |
4310 | ||
1e6feb95 | 4311 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
a0b9e27f MB |
4312 | |
4313 | fi | |
10f2d63a VZ |
4314 | |
4315 | ||
1e6feb95 | 4316 | eval "$ac_cv_use_fontmap" |
10f2d63a | 4317 | if test "$no_cache" != 1; then |
1e6feb95 | 4318 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4319 | fi |
4320 | ||
1e6feb95 | 4321 | if test "$wxUSE_FONTMAP" = yes; then |
a0b9e27f | 4322 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4323 | else |
a0b9e27f | 4324 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4325 | fi |
a0b9e27f | 4326 | |
10f2d63a | 4327 | |
5005acfe VZ |
4328 | enablestring= |
4329 | echo $ac_n "checking for --${enablestring:-enable}-unicode""... $ac_c" 1>&6 | |
ac0c4cc3 | 4330 | echo "configure:4331: checking for --${enablestring:-enable}-unicode" >&5 |
10f2d63a | 4331 | no_cache=0 |
1e6feb95 VZ |
4332 | # Check whether --enable-unicode or --disable-unicode was given. |
4333 | if test "${enable_unicode+set}" = set; then | |
4334 | enableval="$enable_unicode" | |
a0b9e27f | 4335 | |
1e6feb95 VZ |
4336 | if test "$enableval" = yes; then |
4337 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
4338 | else | |
4339 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
4340 | fi | |
a0b9e27f | 4341 | |
1e6feb95 | 4342 | else |
a0b9e27f | 4343 | |
1e6feb95 VZ |
4344 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` |
4345 | if test "x$LINE" != x ; then | |
4346 | eval "DEFAULT_$LINE" | |
4347 | else | |
4348 | no_cache=1 | |
4349 | fi | |
4350 | ||
4351 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
a0b9e27f MB |
4352 | |
4353 | fi | |
1e6feb95 VZ |
4354 | |
4355 | ||
4356 | eval "$ac_cv_use_unicode" | |
4357 | if test "$no_cache" != 1; then | |
4358 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
4359 | fi | |
4360 | ||
4361 | if test "$wxUSE_UNICODE" = yes; then | |
a0b9e27f | 4362 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 4363 | else |
a0b9e27f | 4364 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 4365 | fi |
a0b9e27f | 4366 | |
1e6feb95 | 4367 | |
5005acfe VZ |
4368 | enablestring= |
4369 | echo $ac_n "checking for --${enablestring:-enable}-mslu""... $ac_c" 1>&6 | |
ac0c4cc3 | 4370 | echo "configure:4371: checking for --${enablestring:-enable}-mslu" >&5 |
a72a4bfa VS |
4371 | no_cache=0 |
4372 | # Check whether --enable-mslu or --disable-mslu was given. | |
4373 | if test "${enable_mslu+set}" = set; then | |
4374 | enableval="$enable_mslu" | |
a0b9e27f | 4375 | |
a72a4bfa VS |
4376 | if test "$enableval" = yes; then |
4377 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
4378 | else | |
4379 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
4380 | fi | |
a0b9e27f | 4381 | |
a72a4bfa | 4382 | else |
a0b9e27f | 4383 | |
a72a4bfa VS |
4384 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` |
4385 | if test "x$LINE" != x ; then | |
4386 | eval "DEFAULT_$LINE" | |
4387 | else | |
4388 | no_cache=1 | |
4389 | fi | |
4390 | ||
4391 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
a0b9e27f MB |
4392 | |
4393 | fi | |
a72a4bfa VS |
4394 | |
4395 | ||
4396 | eval "$ac_cv_use_mslu" | |
4397 | if test "$no_cache" != 1; then | |
4398 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
4399 | fi | |
4400 | ||
4401 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
a0b9e27f | 4402 | echo "$ac_t""yes" 1>&6 |
a72a4bfa | 4403 | else |
a0b9e27f | 4404 | echo "$ac_t""no" 1>&6 |
a72a4bfa | 4405 | fi |
a0b9e27f | 4406 | |
a72a4bfa | 4407 | |
5005acfe VZ |
4408 | enablestring= |
4409 | echo $ac_n "checking for --${enablestring:-enable}-wxprintfv""... $ac_c" 1>&6 | |
ac0c4cc3 | 4410 | echo "configure:4411: checking for --${enablestring:-enable}-wxprintfv" >&5 |
1e6feb95 VZ |
4411 | no_cache=0 |
4412 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
4413 | if test "${enable_wxprintfv+set}" = set; then | |
4414 | enableval="$enable_wxprintfv" | |
a0b9e27f | 4415 | |
1e6feb95 | 4416 | if test "$enableval" = yes; then |
10f2d63a VZ |
4417 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
4418 | else | |
4419 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
4420 | fi | |
a0b9e27f | 4421 | |
10f2d63a | 4422 | else |
a0b9e27f | 4423 | |
10f2d63a VZ |
4424 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
4425 | if test "x$LINE" != x ; then | |
4426 | eval "DEFAULT_$LINE" | |
4427 | else | |
4428 | no_cache=1 | |
4429 | fi | |
4430 | ||
4431 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
a0b9e27f MB |
4432 | |
4433 | fi | |
10f2d63a VZ |
4434 | |
4435 | ||
4436 | eval "$ac_cv_use_wxprintfv" | |
4437 | if test "$no_cache" != 1; then | |
4438 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
4439 | fi | |
4440 | ||
4441 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
a0b9e27f | 4442 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4443 | else |
a0b9e27f | 4444 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4445 | fi |
a0b9e27f | 4446 | |
10f2d63a | 4447 | |
5005acfe VZ |
4448 | enablestring= |
4449 | echo $ac_n "checking for --${enablestring:-enable}-std_iostreams""... $ac_c" 1>&6 | |
ac0c4cc3 | 4450 | echo "configure:4451: checking for --${enablestring:-enable}-std_iostreams" >&5 |
10f2d63a VZ |
4451 | no_cache=0 |
4452 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
4453 | if test "${enable_std_iostreams+set}" = set; then | |
4454 | enableval="$enable_std_iostreams" | |
a0b9e27f | 4455 | |
10f2d63a VZ |
4456 | if test "$enableval" = yes; then |
4457 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
4458 | else | |
4459 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
4460 | fi | |
a0b9e27f | 4461 | |
10f2d63a | 4462 | else |
a0b9e27f | 4463 | |
10f2d63a VZ |
4464 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
4465 | if test "x$LINE" != x ; then | |
4466 | eval "DEFAULT_$LINE" | |
4467 | else | |
4468 | no_cache=1 | |
4469 | fi | |
4470 | ||
4471 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
a0b9e27f MB |
4472 | |
4473 | fi | |
10f2d63a VZ |
4474 | |
4475 | ||
4476 | eval "$ac_cv_use_std_iostreams" | |
4477 | if test "$no_cache" != 1; then | |
4478 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
4479 | fi | |
4480 | ||
4481 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
a0b9e27f | 4482 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4483 | else |
a0b9e27f | 4484 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4485 | fi |
a0b9e27f | 4486 | |
10f2d63a | 4487 | |
5005acfe VZ |
4488 | enablestring= |
4489 | echo $ac_n "checking for --${enablestring:-enable}-filesystem""... $ac_c" 1>&6 | |
ac0c4cc3 | 4490 | echo "configure:4491: checking for --${enablestring:-enable}-filesystem" >&5 |
24528b0c VS |
4491 | no_cache=0 |
4492 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
4493 | if test "${enable_filesystem+set}" = set; then | |
4494 | enableval="$enable_filesystem" | |
a0b9e27f | 4495 | |
24528b0c VS |
4496 | if test "$enableval" = yes; then |
4497 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
4498 | else | |
4499 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
4500 | fi | |
a0b9e27f | 4501 | |
24528b0c | 4502 | else |
a0b9e27f | 4503 | |
24528b0c VS |
4504 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
4505 | if test "x$LINE" != x ; then | |
4506 | eval "DEFAULT_$LINE" | |
4507 | else | |
4508 | no_cache=1 | |
4509 | fi | |
4510 | ||
4511 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
a0b9e27f MB |
4512 | |
4513 | fi | |
24528b0c VS |
4514 | |
4515 | ||
4516 | eval "$ac_cv_use_filesystem" | |
4517 | if test "$no_cache" != 1; then | |
4518 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
4519 | fi | |
4520 | ||
4521 | if test "$wxUSE_FILESYSTEM" = yes; then | |
a0b9e27f | 4522 | echo "$ac_t""yes" 1>&6 |
24528b0c | 4523 | else |
a0b9e27f | 4524 | echo "$ac_t""no" 1>&6 |
24528b0c | 4525 | fi |
a0b9e27f | 4526 | |
24528b0c | 4527 | |
5005acfe VZ |
4528 | enablestring= |
4529 | echo $ac_n "checking for --${enablestring:-enable}-fs_inet""... $ac_c" 1>&6 | |
ac0c4cc3 | 4530 | echo "configure:4531: checking for --${enablestring:-enable}-fs_inet" >&5 |
10f2d63a VZ |
4531 | no_cache=0 |
4532 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
4533 | if test "${enable_fs_inet+set}" = set; then | |
4534 | enableval="$enable_fs_inet" | |
a0b9e27f | 4535 | |
10f2d63a VZ |
4536 | if test "$enableval" = yes; then |
4537 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
4538 | else | |
4539 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
4540 | fi | |
a0b9e27f | 4541 | |
10f2d63a | 4542 | else |
a0b9e27f | 4543 | |
10f2d63a VZ |
4544 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
4545 | if test "x$LINE" != x ; then | |
4546 | eval "DEFAULT_$LINE" | |
4547 | else | |
4548 | no_cache=1 | |
4549 | fi | |
4550 | ||
4551 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
a0b9e27f MB |
4552 | |
4553 | fi | |
10f2d63a VZ |
4554 | |
4555 | ||
4556 | eval "$ac_cv_use_fs_inet" | |
4557 | if test "$no_cache" != 1; then | |
4558 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
4559 | fi | |
4560 | ||
4561 | if test "$wxUSE_FS_INET" = yes; then | |
a0b9e27f | 4562 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4563 | else |
a0b9e27f | 4564 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4565 | fi |
a0b9e27f | 4566 | |
10f2d63a | 4567 | |
5005acfe VZ |
4568 | enablestring= |
4569 | echo $ac_n "checking for --${enablestring:-enable}-fs_zip""... $ac_c" 1>&6 | |
ac0c4cc3 | 4570 | echo "configure:4571: checking for --${enablestring:-enable}-fs_zip" >&5 |
10f2d63a VZ |
4571 | no_cache=0 |
4572 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
4573 | if test "${enable_fs_zip+set}" = set; then | |
4574 | enableval="$enable_fs_zip" | |
a0b9e27f | 4575 | |
10f2d63a VZ |
4576 | if test "$enableval" = yes; then |
4577 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
4578 | else | |
4579 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
4580 | fi | |
a0b9e27f | 4581 | |
10f2d63a | 4582 | else |
a0b9e27f | 4583 | |
10f2d63a VZ |
4584 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
4585 | if test "x$LINE" != x ; then | |
4586 | eval "DEFAULT_$LINE" | |
4587 | else | |
4588 | no_cache=1 | |
4589 | fi | |
4590 | ||
4591 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
a0b9e27f MB |
4592 | |
4593 | fi | |
10f2d63a VZ |
4594 | |
4595 | ||
4596 | eval "$ac_cv_use_fs_zip" | |
4597 | if test "$no_cache" != 1; then | |
4598 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
4599 | fi | |
4600 | ||
4601 | if test "$wxUSE_FS_ZIP" = yes; then | |
a0b9e27f | 4602 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4603 | else |
a0b9e27f | 4604 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4605 | fi |
a0b9e27f | 4606 | |
10f2d63a | 4607 | |
5005acfe VZ |
4608 | enablestring= |
4609 | echo $ac_n "checking for --${enablestring:-enable}-zipstream""... $ac_c" 1>&6 | |
ac0c4cc3 | 4610 | echo "configure:4611: checking for --${enablestring:-enable}-zipstream" >&5 |
10f2d63a VZ |
4611 | no_cache=0 |
4612 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
4613 | if test "${enable_zipstream+set}" = set; then | |
4614 | enableval="$enable_zipstream" | |
a0b9e27f | 4615 | |
10f2d63a VZ |
4616 | if test "$enableval" = yes; then |
4617 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
4618 | else | |
4619 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
4620 | fi | |
a0b9e27f | 4621 | |
10f2d63a | 4622 | else |
a0b9e27f | 4623 | |
10f2d63a VZ |
4624 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
4625 | if test "x$LINE" != x ; then | |
4626 | eval "DEFAULT_$LINE" | |
4627 | else | |
4628 | no_cache=1 | |
4629 | fi | |
4630 | ||
4631 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
a0b9e27f MB |
4632 | |
4633 | fi | |
10f2d63a VZ |
4634 | |
4635 | ||
4636 | eval "$ac_cv_use_zipstream" | |
4637 | if test "$no_cache" != 1; then | |
4638 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4639 | fi | |
4640 | ||
4641 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
a0b9e27f | 4642 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4643 | else |
a0b9e27f | 4644 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4645 | fi |
a0b9e27f | 4646 | |
8284b0c5 | 4647 | |
52127426 | 4648 | |
5005acfe VZ |
4649 | enablestring= |
4650 | echo $ac_n "checking for --${enablestring:-enable}-catch_segvs""... $ac_c" 1>&6 | |
ac0c4cc3 | 4651 | echo "configure:4652: checking for --${enablestring:-enable}-catch_segvs" >&5 |
eb4efbdc VZ |
4652 | no_cache=0 |
4653 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4654 | if test "${enable_catch_segvs+set}" = set; then | |
4655 | enableval="$enable_catch_segvs" | |
a0b9e27f | 4656 | |
eb4efbdc VZ |
4657 | if test "$enableval" = yes; then |
4658 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4659 | else | |
4660 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4661 | fi | |
a0b9e27f | 4662 | |
eb4efbdc | 4663 | else |
a0b9e27f | 4664 | |
eb4efbdc VZ |
4665 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4666 | if test "x$LINE" != x ; then | |
4667 | eval "DEFAULT_$LINE" | |
4668 | else | |
4669 | no_cache=1 | |
4670 | fi | |
4671 | ||
4672 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
a0b9e27f MB |
4673 | |
4674 | fi | |
eb4efbdc VZ |
4675 | |
4676 | ||
4677 | eval "$ac_cv_use_catch_segvs" | |
4678 | if test "$no_cache" != 1; then | |
4679 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4680 | fi | |
4681 | ||
4682 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
a0b9e27f | 4683 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4684 | else |
a0b9e27f | 4685 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4686 | fi |
a0b9e27f | 4687 | |
eb4efbdc | 4688 | |
5005acfe VZ |
4689 | enablestring= |
4690 | echo $ac_n "checking for --${enablestring:-enable}-snglinst""... $ac_c" 1>&6 | |
ac0c4cc3 | 4691 | echo "configure:4692: checking for --${enablestring:-enable}-snglinst" >&5 |
4f3c5f06 VZ |
4692 | no_cache=0 |
4693 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4694 | if test "${enable_snglinst+set}" = set; then | |
4695 | enableval="$enable_snglinst" | |
a0b9e27f | 4696 | |
4f3c5f06 VZ |
4697 | if test "$enableval" = yes; then |
4698 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4699 | else | |
4700 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4701 | fi | |
a0b9e27f | 4702 | |
4f3c5f06 | 4703 | else |
a0b9e27f | 4704 | |
4f3c5f06 VZ |
4705 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4706 | if test "x$LINE" != x ; then | |
4707 | eval "DEFAULT_$LINE" | |
4708 | else | |
4709 | no_cache=1 | |
4710 | fi | |
4711 | ||
4712 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
a0b9e27f MB |
4713 | |
4714 | fi | |
4f3c5f06 VZ |
4715 | |
4716 | ||
4717 | eval "$ac_cv_use_snglinst" | |
4718 | if test "$no_cache" != 1; then | |
4719 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4720 | fi | |
4721 | ||
4722 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
a0b9e27f | 4723 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4724 | else |
a0b9e27f | 4725 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4726 | fi |
a0b9e27f | 4727 | |
52127426 | 4728 | |
8284b0c5 | 4729 | |
5005acfe VZ |
4730 | enablestring= |
4731 | echo $ac_n "checking for --${enablestring:-enable}-mimetype""... $ac_c" 1>&6 | |
ac0c4cc3 | 4732 | echo "configure:4733: checking for --${enablestring:-enable}-mimetype" >&5 |
1e6feb95 VZ |
4733 | no_cache=0 |
4734 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4735 | if test "${enable_mimetype+set}" = set; then | |
4736 | enableval="$enable_mimetype" | |
a0b9e27f | 4737 | |
1e6feb95 VZ |
4738 | if test "$enableval" = yes; then |
4739 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4740 | else | |
4741 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4742 | fi | |
a0b9e27f | 4743 | |
1e6feb95 | 4744 | else |
a0b9e27f | 4745 | |
1e6feb95 VZ |
4746 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` |
4747 | if test "x$LINE" != x ; then | |
4748 | eval "DEFAULT_$LINE" | |
4749 | else | |
4750 | no_cache=1 | |
4751 | fi | |
4752 | ||
4753 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
a0b9e27f MB |
4754 | |
4755 | fi | |
1e6feb95 VZ |
4756 | |
4757 | ||
4758 | eval "$ac_cv_use_mimetype" | |
4759 | if test "$no_cache" != 1; then | |
4760 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4761 | fi | |
4762 | ||
4763 | if test "$wxUSE_MIMETYPE" = yes; then | |
a0b9e27f | 4764 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 4765 | else |
a0b9e27f | 4766 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 4767 | fi |
a0b9e27f | 4768 | |
1e6feb95 | 4769 | |
5005acfe VZ |
4770 | enablestring= |
4771 | echo $ac_n "checking for --${enablestring:-enable}-system_options""... $ac_c" 1>&6 | |
ac0c4cc3 | 4772 | echo "configure:4773: checking for --${enablestring:-enable}-system_options" >&5 |
3e44f09d VZ |
4773 | no_cache=0 |
4774 | # Check whether --enable-system_options or --disable-system_options was given. | |
4775 | if test "${enable_system_options+set}" = set; then | |
4776 | enableval="$enable_system_options" | |
a0b9e27f | 4777 | |
3e44f09d VZ |
4778 | if test "$enableval" = yes; then |
4779 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
4780 | else | |
4781 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
4782 | fi | |
a0b9e27f | 4783 | |
3e44f09d | 4784 | else |
a0b9e27f | 4785 | |
3e44f09d VZ |
4786 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` |
4787 | if test "x$LINE" != x ; then | |
4788 | eval "DEFAULT_$LINE" | |
4789 | else | |
4790 | no_cache=1 | |
4791 | fi | |
4792 | ||
4793 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
a0b9e27f MB |
4794 | |
4795 | fi | |
3e44f09d VZ |
4796 | |
4797 | ||
4798 | eval "$ac_cv_use_system_options" | |
4799 | if test "$no_cache" != 1; then | |
4800 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
4801 | fi | |
4802 | ||
4803 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
a0b9e27f | 4804 | echo "$ac_t""yes" 1>&6 |
3e44f09d | 4805 | else |
a0b9e27f | 4806 | echo "$ac_t""no" 1>&6 |
3e44f09d | 4807 | fi |
a0b9e27f | 4808 | |
8284b0c5 | 4809 | |
52127426 | 4810 | |
5005acfe VZ |
4811 | enablestring= |
4812 | echo $ac_n "checking for --${enablestring:-enable}-url""... $ac_c" 1>&6 | |
ac0c4cc3 | 4813 | echo "configure:4814: checking for --${enablestring:-enable}-url" >&5 |
4cdb0ab0 VS |
4814 | no_cache=0 |
4815 | # Check whether --enable-url or --disable-url was given. | |
4816 | if test "${enable_url+set}" = set; then | |
4817 | enableval="$enable_url" | |
a0b9e27f | 4818 | |
4cdb0ab0 VS |
4819 | if test "$enableval" = yes; then |
4820 | ac_cv_use_url='wxUSE_URL=yes' | |
4821 | else | |
4822 | ac_cv_use_url='wxUSE_URL=no' | |
4823 | fi | |
a0b9e27f | 4824 | |
4cdb0ab0 | 4825 | else |
a0b9e27f | 4826 | |
4cdb0ab0 VS |
4827 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` |
4828 | if test "x$LINE" != x ; then | |
4829 | eval "DEFAULT_$LINE" | |
4830 | else | |
4831 | no_cache=1 | |
4832 | fi | |
4833 | ||
4834 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
a0b9e27f MB |
4835 | |
4836 | fi | |
4cdb0ab0 VS |
4837 | |
4838 | ||
4839 | eval "$ac_cv_use_url" | |
4840 | if test "$no_cache" != 1; then | |
4841 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
4842 | fi | |
4843 | ||
4844 | if test "$wxUSE_URL" = yes; then | |
a0b9e27f | 4845 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4846 | else |
a0b9e27f | 4847 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4848 | fi |
a0b9e27f | 4849 | |
4cdb0ab0 | 4850 | |
5005acfe VZ |
4851 | enablestring= |
4852 | echo $ac_n "checking for --${enablestring:-enable}-protocol""... $ac_c" 1>&6 | |
ac0c4cc3 | 4853 | echo "configure:4854: checking for --${enablestring:-enable}-protocol" >&5 |
4cdb0ab0 VS |
4854 | no_cache=0 |
4855 | # Check whether --enable-protocol or --disable-protocol was given. | |
4856 | if test "${enable_protocol+set}" = set; then | |
4857 | enableval="$enable_protocol" | |
a0b9e27f | 4858 | |
4cdb0ab0 VS |
4859 | if test "$enableval" = yes; then |
4860 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
4861 | else | |
4862 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
4863 | fi | |
a0b9e27f | 4864 | |
4cdb0ab0 | 4865 | else |
a0b9e27f | 4866 | |
4cdb0ab0 VS |
4867 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
4868 | if test "x$LINE" != x ; then | |
4869 | eval "DEFAULT_$LINE" | |
4870 | else | |
4871 | no_cache=1 | |
4872 | fi | |
4873 | ||
4874 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
a0b9e27f MB |
4875 | |
4876 | fi | |
4cdb0ab0 VS |
4877 | |
4878 | ||
4879 | eval "$ac_cv_use_protocol" | |
4880 | if test "$no_cache" != 1; then | |
4881 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
4882 | fi | |
4883 | ||
4884 | if test "$wxUSE_PROTOCOL" = yes; then | |
a0b9e27f | 4885 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4886 | else |
a0b9e27f | 4887 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4888 | fi |
a0b9e27f | 4889 | |
4cdb0ab0 | 4890 | |
5005acfe VZ |
4891 | enablestring= |
4892 | echo $ac_n "checking for --${enablestring:-enable}-protocol_http""... $ac_c" 1>&6 | |
ac0c4cc3 | 4893 | echo "configure:4894: checking for --${enablestring:-enable}-protocol_http" >&5 |
4cdb0ab0 VS |
4894 | no_cache=0 |
4895 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
4896 | if test "${enable_protocol_http+set}" = set; then | |
4897 | enableval="$enable_protocol_http" | |
a0b9e27f | 4898 | |
4cdb0ab0 VS |
4899 | if test "$enableval" = yes; then |
4900 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
4901 | else | |
4902 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
4903 | fi | |
a0b9e27f | 4904 | |
4cdb0ab0 | 4905 | else |
a0b9e27f | 4906 | |
4cdb0ab0 VS |
4907 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
4908 | if test "x$LINE" != x ; then | |
4909 | eval "DEFAULT_$LINE" | |
4910 | else | |
4911 | no_cache=1 | |
4912 | fi | |
4913 | ||
4914 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
a0b9e27f MB |
4915 | |
4916 | fi | |
4cdb0ab0 VS |
4917 | |
4918 | ||
4919 | eval "$ac_cv_use_protocol_http" | |
4920 | if test "$no_cache" != 1; then | |
4921 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
4922 | fi | |
4923 | ||
4924 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
a0b9e27f | 4925 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4926 | else |
a0b9e27f | 4927 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4928 | fi |
a0b9e27f | 4929 | |
4cdb0ab0 | 4930 | |
5005acfe VZ |
4931 | enablestring= |
4932 | echo $ac_n "checking for --${enablestring:-enable}-protocol_ftp""... $ac_c" 1>&6 | |
ac0c4cc3 | 4933 | echo "configure:4934: checking for --${enablestring:-enable}-protocol_ftp" >&5 |
4cdb0ab0 VS |
4934 | no_cache=0 |
4935 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
4936 | if test "${enable_protocol_ftp+set}" = set; then | |
4937 | enableval="$enable_protocol_ftp" | |
a0b9e27f | 4938 | |
4cdb0ab0 VS |
4939 | if test "$enableval" = yes; then |
4940 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4941 | else | |
4942 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
4943 | fi | |
a0b9e27f | 4944 | |
4cdb0ab0 | 4945 | else |
a0b9e27f | 4946 | |
4cdb0ab0 VS |
4947 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
4948 | if test "x$LINE" != x ; then | |
4949 | eval "DEFAULT_$LINE" | |
4950 | else | |
4951 | no_cache=1 | |
4952 | fi | |
4953 | ||
4954 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
a0b9e27f MB |
4955 | |
4956 | fi | |
4cdb0ab0 VS |
4957 | |
4958 | ||
4959 | eval "$ac_cv_use_protocol_ftp" | |
4960 | if test "$no_cache" != 1; then | |
4961 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
4962 | fi | |
4963 | ||
4964 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
a0b9e27f | 4965 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4966 | else |
a0b9e27f | 4967 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4968 | fi |
a0b9e27f | 4969 | |
4cdb0ab0 | 4970 | |
5005acfe VZ |
4971 | enablestring= |
4972 | echo $ac_n "checking for --${enablestring:-enable}-protocol_file""... $ac_c" 1>&6 | |
ac0c4cc3 | 4973 | echo "configure:4974: checking for --${enablestring:-enable}-protocol_file" >&5 |
4cdb0ab0 VS |
4974 | no_cache=0 |
4975 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
4976 | if test "${enable_protocol_file+set}" = set; then | |
4977 | enableval="$enable_protocol_file" | |
a0b9e27f | 4978 | |
4cdb0ab0 VS |
4979 | if test "$enableval" = yes; then |
4980 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
4981 | else | |
4982 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
4983 | fi | |
a0b9e27f | 4984 | |
4cdb0ab0 | 4985 | else |
a0b9e27f | 4986 | |
4cdb0ab0 VS |
4987 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
4988 | if test "x$LINE" != x ; then | |
4989 | eval "DEFAULT_$LINE" | |
4990 | else | |
4991 | no_cache=1 | |
4992 | fi | |
4993 | ||
4994 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
a0b9e27f MB |
4995 | |
4996 | fi | |
4cdb0ab0 VS |
4997 | |
4998 | ||
4999 | eval "$ac_cv_use_protocol_file" | |
5000 | if test "$no_cache" != 1; then | |
5001 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
5002 | fi | |
5003 | ||
5004 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
a0b9e27f | 5005 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 5006 | else |
a0b9e27f | 5007 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 5008 | fi |
a0b9e27f | 5009 | |
52127426 | 5010 | |
8284b0c5 MB |
5011 | |
5012 | ||
5013 | ||
5005acfe VZ |
5014 | enablestring= |
5015 | echo $ac_n "checking for --${enablestring:-enable}-threads""... $ac_c" 1>&6 | |
ac0c4cc3 | 5016 | echo "configure:5017: checking for --${enablestring:-enable}-threads" >&5 |
10f2d63a VZ |
5017 | no_cache=0 |
5018 | # Check whether --enable-threads or --disable-threads was given. | |
5019 | if test "${enable_threads+set}" = set; then | |
5020 | enableval="$enable_threads" | |
a0b9e27f | 5021 | |
10f2d63a VZ |
5022 | if test "$enableval" = yes; then |
5023 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
5024 | else | |
5025 | ac_cv_use_threads='wxUSE_THREADS=no' | |
5026 | fi | |
a0b9e27f | 5027 | |
10f2d63a | 5028 | else |
a0b9e27f | 5029 | |
10f2d63a VZ |
5030 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
5031 | if test "x$LINE" != x ; then | |
5032 | eval "DEFAULT_$LINE" | |
5033 | else | |
5034 | no_cache=1 | |
5035 | fi | |
5036 | ||
5037 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
a0b9e27f MB |
5038 | |
5039 | fi | |
10f2d63a VZ |
5040 | |
5041 | ||
5042 | eval "$ac_cv_use_threads" | |
5043 | if test "$no_cache" != 1; then | |
5044 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
5045 | fi | |
5046 | ||
5047 | if test "$wxUSE_THREADS" = yes; then | |
a0b9e27f | 5048 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5049 | else |
a0b9e27f | 5050 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5051 | fi |
a0b9e27f | 5052 | |
10f2d63a | 5053 | |
b12915c1 VZ |
5054 | if test "$wxUSE_GUI" = "yes"; then |
5055 | ||
8284b0c5 MB |
5056 | |
5057 | ||
5005acfe VZ |
5058 | enablestring= |
5059 | echo $ac_n "checking for --${enablestring:-enable}-docview""... $ac_c" 1>&6 | |
ac0c4cc3 | 5060 | echo "configure:5061: checking for --${enablestring:-enable}-docview" >&5 |
10f2d63a VZ |
5061 | no_cache=0 |
5062 | # Check whether --enable-docview or --disable-docview was given. | |
5063 | if test "${enable_docview+set}" = set; then | |
5064 | enableval="$enable_docview" | |
a0b9e27f | 5065 | |
10f2d63a VZ |
5066 | if test "$enableval" = yes; then |
5067 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
5068 | else | |
5069 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
5070 | fi | |
a0b9e27f | 5071 | |
10f2d63a | 5072 | else |
a0b9e27f | 5073 | |
10f2d63a VZ |
5074 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
5075 | if test "x$LINE" != x ; then | |
5076 | eval "DEFAULT_$LINE" | |
5077 | else | |
5078 | no_cache=1 | |
5079 | fi | |
5080 | ||
5081 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
a0b9e27f MB |
5082 | |
5083 | fi | |
10f2d63a VZ |
5084 | |
5085 | ||
5086 | eval "$ac_cv_use_docview" | |
5087 | if test "$no_cache" != 1; then | |
5088 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
5089 | fi | |
5090 | ||
5091 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
a0b9e27f | 5092 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5093 | else |
a0b9e27f | 5094 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5095 | fi |
a0b9e27f | 5096 | |
10f2d63a | 5097 | |
5005acfe VZ |
5098 | enablestring= |
5099 | echo $ac_n "checking for --${enablestring:-enable}-help""... $ac_c" 1>&6 | |
ac0c4cc3 | 5100 | echo "configure:5101: checking for --${enablestring:-enable}-help" >&5 |
10f2d63a VZ |
5101 | no_cache=0 |
5102 | # Check whether --enable-help or --disable-help was given. | |
5103 | if test "${enable_help+set}" = set; then | |
5104 | enableval="$enable_help" | |
a0b9e27f | 5105 | |
10f2d63a VZ |
5106 | if test "$enableval" = yes; then |
5107 | ac_cv_use_help='wxUSE_HELP=yes' | |
5108 | else | |
5109 | ac_cv_use_help='wxUSE_HELP=no' | |
5110 | fi | |
a0b9e27f | 5111 | |
10f2d63a | 5112 | else |
a0b9e27f | 5113 | |
10f2d63a VZ |
5114 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
5115 | if test "x$LINE" != x ; then | |
5116 | eval "DEFAULT_$LINE" | |
5117 | else | |
5118 | no_cache=1 | |
5119 | fi | |
5120 | ||
5121 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
a0b9e27f MB |
5122 | |
5123 | fi | |
10f2d63a VZ |
5124 | |
5125 | ||
5126 | eval "$ac_cv_use_help" | |
5127 | if test "$no_cache" != 1; then | |
5128 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
5129 | fi | |
5130 | ||
5131 | if test "$wxUSE_HELP" = yes; then | |
a0b9e27f | 5132 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5133 | else |
a0b9e27f | 5134 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5135 | fi |
a0b9e27f | 5136 | |
10f2d63a | 5137 | |
5005acfe VZ |
5138 | enablestring= |
5139 | echo $ac_n "checking for --${enablestring:-enable}-mshtmlhelp""... $ac_c" 1>&6 | |
ac0c4cc3 | 5140 | echo "configure:5141: checking for --${enablestring:-enable}-mshtmlhelp" >&5 |
29fd3c0c VS |
5141 | no_cache=0 |
5142 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
5143 | if test "${enable_mshtmlhelp+set}" = set; then | |
5144 | enableval="$enable_mshtmlhelp" | |
a0b9e27f | 5145 | |
29fd3c0c VS |
5146 | if test "$enableval" = yes; then |
5147 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
5148 | else | |
5149 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
5150 | fi | |
a0b9e27f | 5151 | |
29fd3c0c | 5152 | else |
a0b9e27f | 5153 | |
29fd3c0c VS |
5154 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` |
5155 | if test "x$LINE" != x ; then | |
5156 | eval "DEFAULT_$LINE" | |
5157 | else | |
5158 | no_cache=1 | |
5159 | fi | |
5160 | ||
5161 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
a0b9e27f MB |
5162 | |
5163 | fi | |
29fd3c0c VS |
5164 | |
5165 | ||
5166 | eval "$ac_cv_use_mshtmlhelp" | |
5167 | if test "$no_cache" != 1; then | |
5168 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
5169 | fi | |
5170 | ||
5171 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
a0b9e27f | 5172 | echo "$ac_t""yes" 1>&6 |
29fd3c0c | 5173 | else |
a0b9e27f | 5174 | echo "$ac_t""no" 1>&6 |
29fd3c0c | 5175 | fi |
a0b9e27f | 5176 | |
29fd3c0c | 5177 | |
5005acfe VZ |
5178 | enablestring= |
5179 | echo $ac_n "checking for --${enablestring:-enable}-html""... $ac_c" 1>&6 | |
ac0c4cc3 | 5180 | echo "configure:5181: checking for --${enablestring:-enable}-html" >&5 |
3379ed37 VZ |
5181 | no_cache=0 |
5182 | # Check whether --enable-html or --disable-html was given. | |
5183 | if test "${enable_html+set}" = set; then | |
5184 | enableval="$enable_html" | |
a0b9e27f | 5185 | |
3379ed37 VZ |
5186 | if test "$enableval" = yes; then |
5187 | ac_cv_use_html='wxUSE_HTML=yes' | |
5188 | else | |
5189 | ac_cv_use_html='wxUSE_HTML=no' | |
5190 | fi | |
a0b9e27f | 5191 | |
3379ed37 | 5192 | else |
a0b9e27f | 5193 | |
3379ed37 VZ |
5194 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` |
5195 | if test "x$LINE" != x ; then | |
5196 | eval "DEFAULT_$LINE" | |
5197 | else | |
5198 | no_cache=1 | |
5199 | fi | |
5200 | ||
5201 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
a0b9e27f MB |
5202 | |
5203 | fi | |
3379ed37 VZ |
5204 | |
5205 | ||
5206 | eval "$ac_cv_use_html" | |
5207 | if test "$no_cache" != 1; then | |
5208 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
5209 | fi | |
5210 | ||
5211 | if test "$wxUSE_HTML" = yes; then | |
a0b9e27f | 5212 | echo "$ac_t""yes" 1>&6 |
3379ed37 | 5213 | else |
a0b9e27f | 5214 | echo "$ac_t""no" 1>&6 |
3379ed37 | 5215 | fi |
a0b9e27f | 5216 | |
3379ed37 | 5217 | |
5005acfe VZ |
5218 | enablestring= |
5219 | echo $ac_n "checking for --${enablestring:-enable}-htmlhelp""... $ac_c" 1>&6 | |
ac0c4cc3 | 5220 | echo "configure:5221: checking for --${enablestring:-enable}-htmlhelp" >&5 |
3379ed37 VZ |
5221 | no_cache=0 |
5222 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
5223 | if test "${enable_htmlhelp+set}" = set; then | |
5224 | enableval="$enable_htmlhelp" | |
a0b9e27f | 5225 | |
3379ed37 VZ |
5226 | if test "$enableval" = yes; then |
5227 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
5228 | else | |
5229 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
5230 | fi | |
a0b9e27f | 5231 | |
3379ed37 | 5232 | else |
a0b9e27f | 5233 | |
3379ed37 VZ |
5234 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` |
5235 | if test "x$LINE" != x ; then | |
5236 | eval "DEFAULT_$LINE" | |
5237 | else | |
5238 | no_cache=1 | |
5239 | fi | |
5240 | ||
5241 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
a0b9e27f MB |
5242 | |
5243 | fi | |
3379ed37 VZ |
5244 | |
5245 | ||
5246 | eval "$ac_cv_use_htmlhelp" | |
5247 | if test "$no_cache" != 1; then | |
5248 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
5249 | fi | |
5250 | ||
5251 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
a0b9e27f | 5252 | echo "$ac_t""yes" 1>&6 |
3379ed37 | 5253 | else |
a0b9e27f | 5254 | echo "$ac_t""no" 1>&6 |
3379ed37 | 5255 | fi |
a0b9e27f | 5256 | |
3379ed37 | 5257 | |
5005acfe VZ |
5258 | enablestring= |
5259 | echo $ac_n "checking for --${enablestring:-enable}-constraints""... $ac_c" 1>&6 | |
ac0c4cc3 | 5260 | echo "configure:5261: checking for --${enablestring:-enable}-constraints" >&5 |
10f2d63a VZ |
5261 | no_cache=0 |
5262 | # Check whether --enable-constraints or --disable-constraints was given. | |
5263 | if test "${enable_constraints+set}" = set; then | |
5264 | enableval="$enable_constraints" | |
a0b9e27f | 5265 | |
10f2d63a VZ |
5266 | if test "$enableval" = yes; then |
5267 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
5268 | else | |
5269 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
5270 | fi | |
a0b9e27f | 5271 | |
10f2d63a | 5272 | else |
a0b9e27f | 5273 | |
10f2d63a VZ |
5274 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
5275 | if test "x$LINE" != x ; then | |
5276 | eval "DEFAULT_$LINE" | |
5277 | else | |
5278 | no_cache=1 | |
5279 | fi | |
5280 | ||
5281 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
a0b9e27f MB |
5282 | |
5283 | fi | |
10f2d63a VZ |
5284 | |
5285 | ||
5286 | eval "$ac_cv_use_constraints" | |
5287 | if test "$no_cache" != 1; then | |
5288 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
5289 | fi | |
5290 | ||
5291 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
a0b9e27f | 5292 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5293 | else |
a0b9e27f | 5294 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5295 | fi |
a0b9e27f | 5296 | |
10f2d63a | 5297 | |
5005acfe VZ |
5298 | enablestring= |
5299 | echo $ac_n "checking for --${enablestring:-enable}-printarch""... $ac_c" 1>&6 | |
ac0c4cc3 | 5300 | echo "configure:5301: checking for --${enablestring:-enable}-printarch" >&5 |
10f2d63a VZ |
5301 | no_cache=0 |
5302 | # Check whether --enable-printarch or --disable-printarch was given. | |
5303 | if test "${enable_printarch+set}" = set; then | |
5304 | enableval="$enable_printarch" | |
a0b9e27f | 5305 | |
10f2d63a VZ |
5306 | if test "$enableval" = yes; then |
5307 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
5308 | else | |
5309 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
5310 | fi | |
a0b9e27f | 5311 | |
10f2d63a | 5312 | else |
a0b9e27f | 5313 | |
10f2d63a VZ |
5314 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
5315 | if test "x$LINE" != x ; then | |
5316 | eval "DEFAULT_$LINE" | |
5317 | else | |
5318 | no_cache=1 | |
5319 | fi | |
5320 | ||
5321 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
a0b9e27f MB |
5322 | |
5323 | fi | |
10f2d63a VZ |
5324 | |
5325 | ||
5326 | eval "$ac_cv_use_printarch" | |
5327 | if test "$no_cache" != 1; then | |
5328 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
5329 | fi | |
5330 | ||
5331 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
a0b9e27f | 5332 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5333 | else |
a0b9e27f | 5334 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5335 | fi |
a0b9e27f | 5336 | |
10f2d63a | 5337 | |
5005acfe VZ |
5338 | enablestring= |
5339 | echo $ac_n "checking for --${enablestring:-enable}-mdi""... $ac_c" 1>&6 | |
ac0c4cc3 | 5340 | echo "configure:5341: checking for --${enablestring:-enable}-mdi" >&5 |
10f2d63a VZ |
5341 | no_cache=0 |
5342 | # Check whether --enable-mdi or --disable-mdi was given. | |
5343 | if test "${enable_mdi+set}" = set; then | |
5344 | enableval="$enable_mdi" | |
a0b9e27f | 5345 | |
10f2d63a VZ |
5346 | if test "$enableval" = yes; then |
5347 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
5348 | else | |
5349 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
5350 | fi | |
a0b9e27f | 5351 | |
10f2d63a | 5352 | else |
a0b9e27f | 5353 | |
10f2d63a VZ |
5354 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
5355 | if test "x$LINE" != x ; then | |
5356 | eval "DEFAULT_$LINE" | |
5357 | else | |
5358 | no_cache=1 | |
5359 | fi | |
5360 | ||
5361 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
a0b9e27f MB |
5362 | |
5363 | fi | |
10f2d63a VZ |
5364 | |
5365 | ||
5366 | eval "$ac_cv_use_mdi" | |
5367 | if test "$no_cache" != 1; then | |
5368 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
5369 | fi | |
5370 | ||
5371 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
a0b9e27f | 5372 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5373 | else |
a0b9e27f | 5374 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5375 | fi |
a0b9e27f | 5376 | |
698dcdb6 | 5377 | |
5005acfe VZ |
5378 | enablestring= |
5379 | echo $ac_n "checking for --${enablestring:-enable}-loggui""... $ac_c" 1>&6 | |
ac0c4cc3 | 5380 | echo "configure:5381: checking for --${enablestring:-enable}-loggui" >&5 |
1e6feb95 VZ |
5381 | no_cache=0 |
5382 | # Check whether --enable-loggui or --disable-loggui was given. | |
5383 | if test "${enable_loggui+set}" = set; then | |
5384 | enableval="$enable_loggui" | |
a0b9e27f | 5385 | |
1e6feb95 VZ |
5386 | if test "$enableval" = yes; then |
5387 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
5388 | else | |
5389 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
5390 | fi | |
a0b9e27f | 5391 | |
1e6feb95 | 5392 | else |
a0b9e27f | 5393 | |
1e6feb95 VZ |
5394 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` |
5395 | if test "x$LINE" != x ; then | |
5396 | eval "DEFAULT_$LINE" | |
5397 | else | |
5398 | no_cache=1 | |
5399 | fi | |
5400 | ||
5401 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
a0b9e27f MB |
5402 | |
5403 | fi | |
1e6feb95 VZ |
5404 | |
5405 | ||
5406 | eval "$ac_cv_use_loggui" | |
5407 | if test "$no_cache" != 1; then | |
5408 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
5409 | fi | |
5410 | ||
5411 | if test "$wxUSE_LOGGUI" = yes; then | |
a0b9e27f | 5412 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 5413 | else |
a0b9e27f | 5414 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 5415 | fi |
a0b9e27f | 5416 | |
1e6feb95 | 5417 | |
5005acfe VZ |
5418 | enablestring= |
5419 | echo $ac_n "checking for --${enablestring:-enable}-logwin""... $ac_c" 1>&6 | |
ac0c4cc3 | 5420 | echo "configure:5421: checking for --${enablestring:-enable}-logwin" >&5 |
1e6feb95 VZ |
5421 | no_cache=0 |
5422 | # Check whether --enable-logwin or --disable-logwin was given. | |
5423 | if test "${enable_logwin+set}" = set; then | |
5424 | enableval="$enable_logwin" | |
a0b9e27f | 5425 | |
1e6feb95 VZ |
5426 | if test "$enableval" = yes; then |
5427 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
5428 | else | |
5429 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
5430 | fi | |
a0b9e27f | 5431 | |
1e6feb95 | 5432 | else |
a0b9e27f | 5433 | |
1e6feb95 VZ |
5434 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` |
5435 | if test "x$LINE" != x ; then | |
5436 | eval "DEFAULT_$LINE" | |
5437 | else | |
5438 | no_cache=1 | |
5439 | fi | |
5440 | ||
5441 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
a0b9e27f MB |
5442 | |
5443 | fi | |
1e6feb95 VZ |
5444 | |
5445 | ||
5446 | eval "$ac_cv_use_logwin" | |
5447 | if test "$no_cache" != 1; then | |
5448 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
5449 | fi | |
5450 | ||
5451 | if test "$wxUSE_LOGWINDOW" = yes; then | |
a0b9e27f | 5452 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 5453 | else |
a0b9e27f | 5454 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 5455 | fi |
a0b9e27f | 5456 | |
1e6feb95 | 5457 | |
5005acfe VZ |
5458 | enablestring= |
5459 | echo $ac_n "checking for --${enablestring:-enable}-logdialog""... $ac_c" 1>&6 | |
ac0c4cc3 | 5460 | echo "configure:5461: checking for --${enablestring:-enable}-logdialog" >&5 |
69d27ff7 MB |
5461 | no_cache=0 |
5462 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
5463 | if test "${enable_logdialog+set}" = set; then | |
5464 | enableval="$enable_logdialog" | |
a0b9e27f | 5465 | |
69d27ff7 MB |
5466 | if test "$enableval" = yes; then |
5467 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
5468 | else | |
5469 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
5470 | fi | |
a0b9e27f | 5471 | |
69d27ff7 | 5472 | else |
a0b9e27f | 5473 | |
69d27ff7 MB |
5474 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` |
5475 | if test "x$LINE" != x ; then | |
5476 | eval "DEFAULT_$LINE" | |
5477 | else | |
5478 | no_cache=1 | |
5479 | fi | |
5480 | ||
5481 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
a0b9e27f MB |
5482 | |
5483 | fi | |
69d27ff7 MB |
5484 | |
5485 | ||
5486 | eval "$ac_cv_use_logdialog" | |
5487 | if test "$no_cache" != 1; then | |
5488 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
5489 | fi | |
5490 | ||
5491 | if test "$wxUSE_LOGDIALOG" = yes; then | |
a0b9e27f | 5492 | echo "$ac_t""yes" 1>&6 |
69d27ff7 | 5493 | else |
a0b9e27f | 5494 | echo "$ac_t""no" 1>&6 |
69d27ff7 | 5495 | fi |
a0b9e27f | 5496 | |
8284b0c5 | 5497 | |
52127426 | 5498 | |
5005acfe VZ |
5499 | enablestring= |
5500 | echo $ac_n "checking for --${enablestring:-enable}-postscript""... $ac_c" 1>&6 | |
ac0c4cc3 | 5501 | echo "configure:5502: checking for --${enablestring:-enable}-postscript" >&5 |
10f2d63a VZ |
5502 | no_cache=0 |
5503 | # Check whether --enable-postscript or --disable-postscript was given. | |
5504 | if test "${enable_postscript+set}" = set; then | |
5505 | enableval="$enable_postscript" | |
a0b9e27f | 5506 | |
10f2d63a VZ |
5507 | if test "$enableval" = yes; then |
5508 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
5509 | else | |
5510 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
5511 | fi | |
a0b9e27f | 5512 | |
10f2d63a | 5513 | else |
a0b9e27f | 5514 | |
10f2d63a VZ |
5515 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
5516 | if test "x$LINE" != x ; then | |
5517 | eval "DEFAULT_$LINE" | |
5518 | else | |
5519 | no_cache=1 | |
5520 | fi | |
5521 | ||
5522 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
a0b9e27f MB |
5523 | |
5524 | fi | |
10f2d63a VZ |
5525 | |
5526 | ||
5527 | eval "$ac_cv_use_postscript" | |
5528 | if test "$no_cache" != 1; then | |
5529 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
5530 | fi | |
5531 | ||
5532 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
a0b9e27f | 5533 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5534 | else |
a0b9e27f | 5535 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5536 | fi |
a0b9e27f | 5537 | |
8284b0c5 MB |
5538 | |
5539 | ||
52127426 | 5540 | |
8284b0c5 | 5541 | |
5005acfe VZ |
5542 | enablestring= |
5543 | echo $ac_n "checking for --${enablestring:-enable}-prologio""... $ac_c" 1>&6 | |
ac0c4cc3 | 5544 | echo "configure:5545: checking for --${enablestring:-enable}-prologio" >&5 |
10f2d63a VZ |
5545 | no_cache=0 |
5546 | # Check whether --enable-prologio or --disable-prologio was given. | |
5547 | if test "${enable_prologio+set}" = set; then | |
5548 | enableval="$enable_prologio" | |
a0b9e27f | 5549 | |
10f2d63a VZ |
5550 | if test "$enableval" = yes; then |
5551 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
5552 | else | |
5553 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
5554 | fi | |
a0b9e27f | 5555 | |
10f2d63a | 5556 | else |
a0b9e27f | 5557 | |
10f2d63a VZ |
5558 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
5559 | if test "x$LINE" != x ; then | |
5560 | eval "DEFAULT_$LINE" | |
5561 | else | |
5562 | no_cache=1 | |
5563 | fi | |
5564 | ||
5565 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
a0b9e27f MB |
5566 | |
5567 | fi | |
10f2d63a VZ |
5568 | |
5569 | ||
5570 | eval "$ac_cv_use_prologio" | |
5571 | if test "$no_cache" != 1; then | |
5572 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
5573 | fi | |
5574 | ||
5575 | if test "$wxUSE_PROLOGIO" = yes; then | |
a0b9e27f | 5576 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5577 | else |
a0b9e27f | 5578 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5579 | fi |
a0b9e27f | 5580 | |
10f2d63a | 5581 | |
5005acfe VZ |
5582 | enablestring= |
5583 | echo $ac_n "checking for --${enablestring:-enable}-resources""... $ac_c" 1>&6 | |
ac0c4cc3 | 5584 | echo "configure:5585: checking for --${enablestring:-enable}-resources" >&5 |
10f2d63a VZ |
5585 | no_cache=0 |
5586 | # Check whether --enable-resources or --disable-resources was given. | |
5587 | if test "${enable_resources+set}" = set; then | |
5588 | enableval="$enable_resources" | |
a0b9e27f | 5589 | |
10f2d63a VZ |
5590 | if test "$enableval" = yes; then |
5591 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
5592 | else | |
5593 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
5594 | fi | |
a0b9e27f | 5595 | |
10f2d63a | 5596 | else |
a0b9e27f | 5597 | |
10f2d63a VZ |
5598 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
5599 | if test "x$LINE" != x ; then | |
5600 | eval "DEFAULT_$LINE" | |
5601 | else | |
5602 | no_cache=1 | |
5603 | fi | |
5604 | ||
5605 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
a0b9e27f MB |
5606 | |
5607 | fi | |
10f2d63a VZ |
5608 | |
5609 | ||
5610 | eval "$ac_cv_use_resources" | |
5611 | if test "$no_cache" != 1; then | |
5612 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
5613 | fi | |
5614 | ||
5615 | if test "$wxUSE_RESOURCES" = yes; then | |
a0b9e27f | 5616 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5617 | else |
a0b9e27f | 5618 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5619 | fi |
a0b9e27f | 5620 | |
8284b0c5 | 5621 | |
52127426 | 5622 | |
5005acfe VZ |
5623 | enablestring= |
5624 | echo $ac_n "checking for --${enablestring:-enable}-xresources""... $ac_c" 1>&6 | |
ac0c4cc3 | 5625 | echo "configure:5626: checking for --${enablestring:-enable}-xresources" >&5 |
10f2d63a VZ |
5626 | no_cache=0 |
5627 | # Check whether --enable-xresources or --disable-xresources was given. | |
5628 | if test "${enable_xresources+set}" = set; then | |
5629 | enableval="$enable_xresources" | |
a0b9e27f | 5630 | |
10f2d63a VZ |
5631 | if test "$enableval" = yes; then |
5632 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
5633 | else | |
5634 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
5635 | fi | |
a0b9e27f | 5636 | |
10f2d63a | 5637 | else |
a0b9e27f | 5638 | |
10f2d63a VZ |
5639 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
5640 | if test "x$LINE" != x ; then | |
5641 | eval "DEFAULT_$LINE" | |
5642 | else | |
5643 | no_cache=1 | |
5644 | fi | |
5645 | ||
5646 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
a0b9e27f MB |
5647 | |
5648 | fi | |
10f2d63a VZ |
5649 | |
5650 | ||
5651 | eval "$ac_cv_use_xresources" | |
5652 | if test "$no_cache" != 1; then | |
5653 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
5654 | fi | |
5655 | ||
5656 | if test "$wxUSE_X_RESOURCES" = yes; then | |
a0b9e27f | 5657 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5658 | else |
a0b9e27f | 5659 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5660 | fi |
a0b9e27f | 5661 | |
8284b0c5 MB |
5662 | |
5663 | ||
52127426 | 5664 | |
5005acfe VZ |
5665 | enablestring= |
5666 | echo $ac_n "checking for --${enablestring:-enable}-clipboard""... $ac_c" 1>&6 | |
ac0c4cc3 | 5667 | echo "configure:5668: checking for --${enablestring:-enable}-clipboard" >&5 |
10f2d63a VZ |
5668 | no_cache=0 |
5669 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
5670 | if test "${enable_clipboard+set}" = set; then | |
5671 | enableval="$enable_clipboard" | |
a0b9e27f | 5672 | |
10f2d63a VZ |
5673 | if test "$enableval" = yes; then |
5674 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
5675 | else | |
5676 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
5677 | fi | |
a0b9e27f | 5678 | |
10f2d63a | 5679 | else |
a0b9e27f | 5680 | |
10f2d63a VZ |
5681 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
5682 | if test "x$LINE" != x ; then | |
5683 | eval "DEFAULT_$LINE" | |
5684 | else | |
5685 | no_cache=1 | |
5686 | fi | |
5687 | ||
5688 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
a0b9e27f MB |
5689 | |
5690 | fi | |
10f2d63a VZ |
5691 | |
5692 | ||
5693 | eval "$ac_cv_use_clipboard" | |
5694 | if test "$no_cache" != 1; then | |
5695 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
5696 | fi | |
5697 | ||
5698 | if test "$wxUSE_CLIPBOARD" = yes; then | |
a0b9e27f | 5699 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5700 | else |
a0b9e27f | 5701 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5702 | fi |
a0b9e27f | 5703 | |
10f2d63a | 5704 | |
5005acfe VZ |
5705 | enablestring= |
5706 | echo $ac_n "checking for --${enablestring:-enable}-dnd""... $ac_c" 1>&6 | |
ac0c4cc3 | 5707 | echo "configure:5708: checking for --${enablestring:-enable}-dnd" >&5 |
10f2d63a VZ |
5708 | no_cache=0 |
5709 | # Check whether --enable-dnd or --disable-dnd was given. | |
5710 | if test "${enable_dnd+set}" = set; then | |
5711 | enableval="$enable_dnd" | |
a0b9e27f | 5712 | |
10f2d63a VZ |
5713 | if test "$enableval" = yes; then |
5714 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
5715 | else | |
5716 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
5717 | fi | |
a0b9e27f | 5718 | |
10f2d63a | 5719 | else |
a0b9e27f | 5720 | |
10f2d63a VZ |
5721 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
5722 | if test "x$LINE" != x ; then | |
5723 | eval "DEFAULT_$LINE" | |
5724 | else | |
5725 | no_cache=1 | |
5726 | fi | |
5727 | ||
5728 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
a0b9e27f MB |
5729 | |
5730 | fi | |
10f2d63a VZ |
5731 | |
5732 | ||
5733 | eval "$ac_cv_use_dnd" | |
5734 | if test "$no_cache" != 1; then | |
5735 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
5736 | fi | |
5737 | ||
5738 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
a0b9e27f | 5739 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5740 | else |
a0b9e27f | 5741 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5742 | fi |
a0b9e27f | 5743 | |
10f2d63a | 5744 | |
5005acfe VZ |
5745 | enablestring= |
5746 | echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6 | |
ac0c4cc3 | 5747 | echo "configure:5748: checking for --${enablestring:-enable}-metafile" >&5 |
b64f0a5f RL |
5748 | no_cache=0 |
5749 | # Check whether --enable-metafile or --disable-metafile was given. | |
5750 | if test "${enable_metafile+set}" = set; then | |
5751 | enableval="$enable_metafile" | |
a0b9e27f | 5752 | |
b64f0a5f RL |
5753 | if test "$enableval" = yes; then |
5754 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
5755 | else | |
5756 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
5757 | fi | |
a0b9e27f | 5758 | |
b64f0a5f | 5759 | else |
a0b9e27f | 5760 | |
b64f0a5f RL |
5761 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
5762 | if test "x$LINE" != x ; then | |
5763 | eval "DEFAULT_$LINE" | |
5764 | else | |
5765 | no_cache=1 | |
5766 | fi | |
5767 | ||
5768 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
a0b9e27f MB |
5769 | |
5770 | fi | |
b64f0a5f RL |
5771 | |
5772 | ||
5773 | eval "$ac_cv_use_metafile" | |
5774 | if test "$no_cache" != 1; then | |
5775 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
5776 | fi | |
5777 | ||
5778 | if test "$wxUSE_METAFILE" = yes; then | |
a0b9e27f | 5779 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 5780 | else |
a0b9e27f | 5781 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 5782 | fi |
a0b9e27f | 5783 | |
52127426 | 5784 | |
8284b0c5 | 5785 | |
5005acfe VZ |
5786 | enablestring= |
5787 | echo $ac_n "checking for --${enablestring:-enable}-treelayout""... $ac_c" 1>&6 | |
ac0c4cc3 | 5788 | echo "configure:5789: checking for --${enablestring:-enable}-treelayout" >&5 |
10f2d63a | 5789 | no_cache=0 |
24176f2c GD |
5790 | # Check whether --enable-treelayout or --disable-treelayout was given. |
5791 | if test "${enable_treelayout+set}" = set; then | |
5792 | enableval="$enable_treelayout" | |
a0b9e27f | 5793 | |
10f2d63a | 5794 | if test "$enableval" = yes; then |
24176f2c | 5795 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes' |
10f2d63a | 5796 | else |
24176f2c | 5797 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=no' |
10f2d63a | 5798 | fi |
a0b9e27f | 5799 | |
10f2d63a | 5800 | else |
a0b9e27f | 5801 | |
24176f2c | 5802 | LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}` |
10f2d63a VZ |
5803 | if test "x$LINE" != x ; then |
5804 | eval "DEFAULT_$LINE" | |
5805 | else | |
5806 | no_cache=1 | |
5807 | fi | |
5808 | ||
24176f2c | 5809 | ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT |
a0b9e27f MB |
5810 | |
5811 | fi | |
10f2d63a VZ |
5812 | |
5813 | ||
24176f2c | 5814 | eval "$ac_cv_use_treelayout" |
10f2d63a | 5815 | if test "$no_cache" != 1; then |
24176f2c | 5816 | echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5817 | fi |
5818 | ||
24176f2c | 5819 | if test "$wxUSE_TREELAYOUT" = yes; then |
a0b9e27f | 5820 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5821 | else |
a0b9e27f | 5822 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5823 | fi |
a0b9e27f | 5824 | |
8284b0c5 | 5825 | |
52127426 | 5826 | |
8284b0c5 | 5827 | |
5005acfe VZ |
5828 | enablestring= |
5829 | echo $ac_n "checking for --${enablestring:-enable}-controls""... $ac_c" 1>&6 | |
ac0c4cc3 | 5830 | echo "configure:5831: checking for --${enablestring:-enable}-controls" >&5 |
10f2d63a VZ |
5831 | no_cache=0 |
5832 | # Check whether --enable-controls or --disable-controls was given. | |
5833 | if test "${enable_controls+set}" = set; then | |
5834 | enableval="$enable_controls" | |
a0b9e27f | 5835 | |
10f2d63a VZ |
5836 | if test "$enableval" = yes; then |
5837 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
5838 | else | |
5839 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
5840 | fi | |
a0b9e27f | 5841 | |
10f2d63a | 5842 | else |
a0b9e27f | 5843 | |
10f2d63a VZ |
5844 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
5845 | if test "x$LINE" != x ; then | |
5846 | eval "DEFAULT_$LINE" | |
5847 | else | |
5848 | no_cache=1 | |
5849 | fi | |
5850 | ||
5851 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
a0b9e27f MB |
5852 | |
5853 | fi | |
10f2d63a VZ |
5854 | |
5855 | ||
5856 | eval "$ac_cv_use_controls" | |
5857 | if test "$no_cache" != 1; then | |
5858 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
5859 | fi | |
5860 | ||
5861 | if test "$wxUSE_CONTROLS" = yes; then | |
a0b9e27f | 5862 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5863 | else |
a0b9e27f | 5864 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5865 | fi |
a0b9e27f | 5866 | |
10f2d63a VZ |
5867 | |
5868 | if test "$wxUSE_CONTROLS" = "yes"; then | |
5869 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
5870 | DEFAULT_wxUSE_BMPBUTTON=yes |
5871 | DEFAULT_wxUSE_BUTTON=yes | |
5872 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5873 | DEFAULT_wxUSE_CARET=yes |
5874 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
5875 | DEFAULT_wxUSE_CHECKBOX=yes |
5876 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
5877 | DEFAULT_wxUSE_CHOICE=yes | |
5878 | DEFAULT_wxUSE_GAUGE=yes | |
5879 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 5880 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
5881 | DEFAULT_wxUSE_IMAGLIST=yes |
5882 | DEFAULT_wxUSE_LISTBOX=yes | |
5883 | DEFAULT_wxUSE_LISTCTRL=yes | |
5884 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 5885 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
5886 | DEFAULT_wxUSE_RADIOBOX=yes |
5887 | DEFAULT_wxUSE_RADIOBTN=yes | |
5888 | DEFAULT_wxUSE_SASH=yes | |
5889 | DEFAULT_wxUSE_SCROLLBAR=yes | |
5890 | DEFAULT_wxUSE_SLIDER=yes | |
5891 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 5892 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
5893 | DEFAULT_wxUSE_SPLITTER=yes |
5894 | DEFAULT_wxUSE_STATBMP=yes | |
5895 | DEFAULT_wxUSE_STATBOX=yes | |
5896 | DEFAULT_wxUSE_STATLINE=yes | |
5897 | DEFAULT_wxUSE_STATUSBAR=yes | |
5898 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 5899 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 5900 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
5901 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
5902 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
5903 | DEFAULT_wxUSE_TOOLTIPS=yes |
5904 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 5905 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 5906 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
5907 | elif test "$wxUSE_CONTROLS" = "no"; then |
5908 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
5909 | DEFAULT_wxUSE_BMPBUTTON=no |
5910 | DEFAULT_wxUSE_BUTTON=no | |
5911 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5912 | DEFAULT_wxUSE_CARET=no |
5913 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
5914 | DEFAULT_wxUSE_CHECKBOX=no |
5915 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5916 | DEFAULT_wxUSE_CHOICE=no | |
5917 | DEFAULT_wxUSE_GAUGE=no | |
5918 | DEFAULT_wxUSE_GRID=no | |
5919 | DEFAULT_wxUSE_NEW_GRID=no | |
5920 | DEFAULT_wxUSE_IMAGLIST=no | |
5921 | DEFAULT_wxUSE_LISTBOX=no | |
5922 | DEFAULT_wxUSE_LISTCTRL=no | |
5923 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 5924 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
5925 | DEFAULT_wxUSE_RADIOBOX=no |
5926 | DEFAULT_wxUSE_RADIOBTN=no | |
5927 | DEFAULT_wxUSE_SASH=no | |
5928 | DEFAULT_wxUSE_SCROLLBAR=no | |
5929 | DEFAULT_wxUSE_SLIDER=no | |
5930 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 5931 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
5932 | DEFAULT_wxUSE_SPLITTER=no |
5933 | DEFAULT_wxUSE_STATBMP=no | |
5934 | DEFAULT_wxUSE_STATBOX=no | |
5935 | DEFAULT_wxUSE_STATLINE=no | |
5936 | DEFAULT_wxUSE_STATUSBAR=no | |
5937 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 5938 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 5939 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
5940 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
5941 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
5942 | DEFAULT_wxUSE_TOOLTIPS=no |
5943 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 5944 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 5945 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
5946 | fi |
5947 | ||
ac0c4cc3 DE |
5948 | ## FIXME: This is a blatant hack |
5949 | if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then | |
5950 | wxUSE_PRINTING_ARCHITECTURE=no | |
5951 | wxUSE_HELP=no | |
5952 | wxUSE_CLIPBOARD=no | |
5953 | wxUSE_DRAG_AND_DROP=no | |
5954 | wxUSE_DATAOBJ=no | |
5955 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
5956 | DEFAULT_wxUSE_TEXTDLG=no | |
5957 | DEFAULT_wxUSE_GAUGE=no | |
5958 | DEFAULT_wxUSE_SCROLLBAR=no | |
5959 | DEFAULT_wxUSE_SLIDER=no | |
5960 | DEFAULT_wxUSE_COMBOBOX=no | |
5961 | DEFAULT_wxUSE_CALCTRL=no | |
5962 | DEFAULT_wxUSE_SPINBTN=no | |
5963 | DEFAULT_wxUSE_SPINCTRL=no | |
5964 | DEFAULT_wxUSE_TOOLTIPS=no | |
5965 | DEFAULT_wxUSE_CHOICEDLG=no | |
5966 | DEFAULT_wxUSE_COLOURDLG=no | |
5967 | DEFAULT_wxUSE_DIRDLG=no | |
5968 | DEFAULT_wxUSE_DRAGIMAGE=no | |
5969 | DEFAULT_wxUSE_FINDREPLDLG=no | |
5970 | DEFAULT_wxUSE_FONTDLG=no | |
5971 | DEFAULT_wxUSE_GRID=no | |
5972 | DEFAULT_wxUSE_NEW_GRID=no | |
5973 | DEFAULT_wxUSE_NUMBERDLG=no | |
5974 | DEFAULT_wxUSE_PROGRESSDLG=no | |
5975 | DEFAULT_wxUSE_PROPSHEET=no | |
5976 | DEFAULT_wxUSE_SASH=no | |
5977 | DEFAULT_wxUSE_SPLITTER=no | |
5978 | DEFAULT_wxUSE_WIZARDDLG=no | |
5979 | DEFAULT_wxUSE_SPLITTER=no | |
5980 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
5981 | DEFAULT_wxUSE_TREECTRL=no | |
5982 | fi | |
5983 | ||
8284b0c5 | 5984 | |
5005acfe VZ |
5985 | enablestring= |
5986 | echo $ac_n "checking for --${enablestring:-enable}-accel""... $ac_c" 1>&6 | |
ac0c4cc3 | 5987 | echo "configure:5988: checking for --${enablestring:-enable}-accel" >&5 |
10f2d63a VZ |
5988 | no_cache=0 |
5989 | # Check whether --enable-accel or --disable-accel was given. | |
5990 | if test "${enable_accel+set}" = set; then | |
5991 | enableval="$enable_accel" | |
a0b9e27f | 5992 | |
10f2d63a VZ |
5993 | if test "$enableval" = yes; then |
5994 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5995 | else | |
5996 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5997 | fi | |
a0b9e27f | 5998 | |
10f2d63a | 5999 | else |
a0b9e27f | 6000 | |
10f2d63a VZ |
6001 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
6002 | if test "x$LINE" != x ; then | |
6003 | eval "DEFAULT_$LINE" | |
6004 | else | |
6005 | no_cache=1 | |
6006 | fi | |
6007 | ||
6008 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
a0b9e27f MB |
6009 | |
6010 | fi | |
10f2d63a VZ |
6011 | |
6012 | ||
6013 | eval "$ac_cv_use_accel" | |
6014 | if test "$no_cache" != 1; then | |
6015 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
6016 | fi | |
6017 | ||
6018 | if test "$wxUSE_ACCEL" = yes; then | |
a0b9e27f | 6019 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6020 | else |
a0b9e27f | 6021 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6022 | fi |
a0b9e27f | 6023 | |
10f2d63a | 6024 | |
5005acfe VZ |
6025 | enablestring= |
6026 | echo $ac_n "checking for --${enablestring:-enable}-button""... $ac_c" 1>&6 | |
ac0c4cc3 | 6027 | echo "configure:6028: checking for --${enablestring:-enable}-button" >&5 |
10f2d63a | 6028 | no_cache=0 |
1e6feb95 VZ |
6029 | # Check whether --enable-button or --disable-button was given. |
6030 | if test "${enable_button+set}" = set; then | |
6031 | enableval="$enable_button" | |
a0b9e27f | 6032 | |
10f2d63a | 6033 | if test "$enableval" = yes; then |
1e6feb95 | 6034 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 6035 | else |
1e6feb95 | 6036 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 6037 | fi |
a0b9e27f | 6038 | |
10f2d63a | 6039 | else |
a0b9e27f | 6040 | |
1e6feb95 | 6041 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
6042 | if test "x$LINE" != x ; then |
6043 | eval "DEFAULT_$LINE" | |
6044 | else | |
6045 | no_cache=1 | |
6046 | fi | |
6047 | ||
1e6feb95 | 6048 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
a0b9e27f MB |
6049 | |
6050 | fi | |
10f2d63a VZ |
6051 | |
6052 | ||
1e6feb95 | 6053 | eval "$ac_cv_use_button" |
10f2d63a | 6054 | if test "$no_cache" != 1; then |
1e6feb95 | 6055 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6056 | fi |
6057 | ||
1e6feb95 | 6058 | if test "$wxUSE_BUTTON" = yes; then |
a0b9e27f | 6059 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6060 | else |
a0b9e27f | 6061 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6062 | fi |
a0b9e27f | 6063 | |
10f2d63a | 6064 | |
5005acfe VZ |
6065 | enablestring= |
6066 | echo $ac_n "checking for --${enablestring:-enable}-bmpbutton""... $ac_c" 1>&6 | |
ac0c4cc3 | 6067 | echo "configure:6068: checking for --${enablestring:-enable}-bmpbutton" >&5 |
10f2d63a VZ |
6068 | no_cache=0 |
6069 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
6070 | if test "${enable_bmpbutton+set}" = set; then | |
6071 | enableval="$enable_bmpbutton" | |
a0b9e27f | 6072 | |
10f2d63a VZ |
6073 | if test "$enableval" = yes; then |
6074 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
6075 | else | |
6076 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
6077 | fi | |
a0b9e27f | 6078 | |
10f2d63a | 6079 | else |
a0b9e27f | 6080 | |
10f2d63a VZ |
6081 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
6082 | if test "x$LINE" != x ; then | |
6083 | eval "DEFAULT_$LINE" | |
6084 | else | |
6085 | no_cache=1 | |
6086 | fi | |
6087 | ||
6088 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
a0b9e27f MB |
6089 | |
6090 | fi | |
10f2d63a VZ |
6091 | |
6092 | ||
6093 | eval "$ac_cv_use_bmpbutton" | |
6094 | if test "$no_cache" != 1; then | |
6095 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
6096 | fi | |
6097 | ||
6098 | if test "$wxUSE_BMPBUTTON" = yes; then | |
a0b9e27f | 6099 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6100 | else |
a0b9e27f | 6101 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6102 | fi |
a0b9e27f | 6103 | |
10f2d63a | 6104 | |
5005acfe VZ |
6105 | enablestring= |
6106 | echo $ac_n "checking for --${enablestring:-enable}-calendar""... $ac_c" 1>&6 | |
ac0c4cc3 | 6107 | echo "configure:6108: checking for --${enablestring:-enable}-calendar" >&5 |
1e6feb95 VZ |
6108 | no_cache=0 |
6109 | # Check whether --enable-calendar or --disable-calendar was given. | |
6110 | if test "${enable_calendar+set}" = set; then | |
6111 | enableval="$enable_calendar" | |
a0b9e27f | 6112 | |
1e6feb95 VZ |
6113 | if test "$enableval" = yes; then |
6114 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
6115 | else | |
6116 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
6117 | fi | |
a0b9e27f | 6118 | |
1e6feb95 | 6119 | else |
a0b9e27f | 6120 | |
1e6feb95 VZ |
6121 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` |
6122 | if test "x$LINE" != x ; then | |
6123 | eval "DEFAULT_$LINE" | |
6124 | else | |
6125 | no_cache=1 | |
6126 | fi | |
6127 | ||
6128 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
a0b9e27f MB |
6129 | |
6130 | fi | |
1e6feb95 VZ |
6131 | |
6132 | ||
6133 | eval "$ac_cv_use_calendar" | |
6134 | if test "$no_cache" != 1; then | |
6135 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
6136 | fi | |
6137 | ||
6138 | if test "$wxUSE_CALCTRL" = yes; then | |
a0b9e27f | 6139 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 6140 | else |
a0b9e27f | 6141 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 6142 | fi |
a0b9e27f | 6143 | |
1e6feb95 | 6144 | |
5005acfe VZ |
6145 | enablestring= |
6146 | echo $ac_n "checking for --${enablestring:-enable}-caret""... $ac_c" 1>&6 | |
ac0c4cc3 | 6147 | echo "configure:6148: checking for --${enablestring:-enable}-caret" >&5 |
1e6feb95 VZ |
6148 | no_cache=0 |
6149 | # Check whether --enable-caret or --disable-caret was given. | |
6150 | if test "${enable_caret+set}" = set; then | |
6151 | enableval="$enable_caret" | |
a0b9e27f | 6152 | |
1e6feb95 VZ |
6153 | if test "$enableval" = yes; then |
6154 | ac_cv_use_caret='wxUSE_CARET=yes' | |
6155 | else | |
6156 | ac_cv_use_caret='wxUSE_CARET=no' | |
6157 | fi | |
a0b9e27f | 6158 | |
1e6feb95 | 6159 | else |
a0b9e27f | 6160 | |
1e6feb95 VZ |
6161 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` |
6162 | if test "x$LINE" != x ; then | |
6163 | eval "DEFAULT_$LINE" | |
6164 | else | |
6165 | no_cache=1 | |
6166 | fi | |
6167 | ||
6168 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
a0b9e27f MB |
6169 | |
6170 | fi | |
1e6feb95 VZ |
6171 | |
6172 | ||
6173 | eval "$ac_cv_use_caret" | |
6174 | if test "$no_cache" != 1; then | |
6175 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
6176 | fi | |
6177 | ||
6178 | if test "$wxUSE_CARET" = yes; then | |
a0b9e27f | 6179 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 6180 | else |
a0b9e27f | 6181 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 6182 | fi |
a0b9e27f | 6183 | |
1e6feb95 | 6184 | |
5005acfe VZ |
6185 | enablestring= |
6186 | echo $ac_n "checking for --${enablestring:-enable}-checkbox""... $ac_c" 1>&6 | |
ac0c4cc3 | 6187 | echo "configure:6188: checking for --${enablestring:-enable}-checkbox" >&5 |
10f2d63a VZ |
6188 | no_cache=0 |
6189 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
6190 | if test "${enable_checkbox+set}" = set; then | |
6191 | enableval="$enable_checkbox" | |
a0b9e27f | 6192 | |
10f2d63a VZ |
6193 | if test "$enableval" = yes; then |
6194 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
6195 | else | |
6196 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
6197 | fi | |
a0b9e27f | 6198 | |
10f2d63a | 6199 | else |
a0b9e27f | 6200 | |
10f2d63a VZ |
6201 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
6202 | if test "x$LINE" != x ; then | |
6203 | eval "DEFAULT_$LINE" | |
6204 | else | |
6205 | no_cache=1 | |
6206 | fi | |
6207 | ||
6208 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
a0b9e27f MB |
6209 | |
6210 | fi | |
10f2d63a VZ |
6211 | |
6212 | ||
6213 | eval "$ac_cv_use_checkbox" | |
6214 | if test "$no_cache" != 1; then | |
6215 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
6216 | fi | |
6217 | ||
6218 | if test "$wxUSE_CHECKBOX" = yes; then | |
a0b9e27f | 6219 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6220 | else |
a0b9e27f | 6221 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6222 | fi |
a0b9e27f | 6223 | |
10f2d63a | 6224 | |
5005acfe VZ |
6225 | enablestring= |
6226 | echo $ac_n "checking for --${enablestring:-enable}-checklst""... $ac_c" 1>&6 | |
ac0c4cc3 | 6227 | echo "configure:6228: checking for --${enablestring:-enable}-checklst" >&5 |
10f2d63a VZ |
6228 | no_cache=0 |
6229 | # Check whether --enable-checklst or --disable-checklst was given. | |
6230 | if test "${enable_checklst+set}" = set; then | |
6231 | enableval="$enable_checklst" | |
a0b9e27f | 6232 | |
10f2d63a VZ |
6233 | if test "$enableval" = yes; then |
6234 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
6235 | else | |
6236 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
6237 | fi | |
a0b9e27f | 6238 | |
10f2d63a | 6239 | else |
a0b9e27f | 6240 | |
10f2d63a VZ |
6241 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
6242 | if test "x$LINE" != x ; then | |
6243 | eval "DEFAULT_$LINE" | |
6244 | else | |
6245 | no_cache=1 | |
6246 | fi | |
6247 | ||
6248 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
a0b9e27f MB |
6249 | |
6250 | fi | |
10f2d63a VZ |
6251 | |
6252 | ||
6253 | eval "$ac_cv_use_checklst" | |
6254 | if test "$no_cache" != 1; then | |
6255 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
6256 | fi | |
6257 | ||
6258 | if test "$wxUSE_CHECKLST" = yes; then | |
a0b9e27f | 6259 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6260 | else |
a0b9e27f | 6261 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6262 | fi |
a0b9e27f | 6263 | |
10f2d63a | 6264 | |
5005acfe VZ |
6265 | enablestring= |
6266 | echo $ac_n "checking for --${enablestring:-enable}-choice""... $ac_c" 1>&6 | |
ac0c4cc3 | 6267 | echo "configure:6268: checking for --${enablestring:-enable}-choice" >&5 |
10f2d63a VZ |
6268 | no_cache=0 |
6269 | # Check whether --enable-choice or --disable-choice was given. | |
6270 | if test "${enable_choice+set}" = set; then | |
6271 | enableval="$enable_choice" | |
a0b9e27f | 6272 | |
10f2d63a VZ |
6273 | if test "$enableval" = yes; then |
6274 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
6275 | else | |
6276 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
6277 | fi | |
a0b9e27f | 6278 | |
10f2d63a | 6279 | else |
a0b9e27f | 6280 | |
10f2d63a VZ |
6281 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
6282 | if test "x$LINE" != x ; then | |
6283 | eval "DEFAULT_$LINE" | |
6284 | else | |
6285 | no_cache=1 | |
6286 | fi | |
6287 | ||
6288 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
a0b9e27f MB |
6289 | |
6290 | fi | |
10f2d63a VZ |
6291 | |
6292 | ||
6293 | eval "$ac_cv_use_choice" | |
6294 | if test "$no_cache" != 1; then | |
6295 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
6296 | fi | |
6297 | ||
6298 | if test "$wxUSE_CHOICE" = yes; then | |
a0b9e27f | 6299 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6300 | else |
a0b9e27f | 6301 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6302 | fi |
a0b9e27f | 6303 | |
10f2d63a | 6304 | |
5005acfe VZ |
6305 | enablestring= |
6306 | echo $ac_n "checking for --${enablestring:-enable}-combobox""... $ac_c" 1>&6 | |
ac0c4cc3 | 6307 | echo "configure:6308: checking for --${enablestring:-enable}-combobox" >&5 |
10f2d63a VZ |
6308 | no_cache=0 |
6309 | # Check whether --enable-combobox or --disable-combobox was given. | |
6310 | if test "${enable_combobox+set}" = set; then | |
6311 | enableval="$enable_combobox" | |
a0b9e27f | 6312 | |
10f2d63a VZ |
6313 | if test "$enableval" = yes; then |
6314 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
6315 | else | |
6316 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
6317 | fi | |
a0b9e27f | 6318 | |
10f2d63a | 6319 | else |
a0b9e27f | 6320 | |
10f2d63a VZ |
6321 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
6322 | if test "x$LINE" != x ; then | |
6323 | eval "DEFAULT_$LINE" | |
6324 | else | |
6325 | no_cache=1 | |
6326 | fi | |
6327 | ||
6328 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
a0b9e27f MB |
6329 | |
6330 | fi | |
10f2d63a VZ |
6331 | |
6332 | ||
6333 | eval "$ac_cv_use_combobox" | |
6334 | if test "$no_cache" != 1; then | |
6335 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
6336 | fi | |
6337 | ||
6338 | if test "$wxUSE_COMBOBOX" = yes; then | |
a0b9e27f | 6339 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6340 | else |
a0b9e27f | 6341 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6342 | fi |
a0b9e27f | 6343 | |
10f2d63a | 6344 | |
da494b40 MB |
6345 | enablestring= |
6346 | echo $ac_n "checking for --${enablestring:-enable}-display""... $ac_c" 1>&6 | |
ac0c4cc3 | 6347 | echo "configure:6348: checking for --${enablestring:-enable}-display" >&5 |
da494b40 MB |
6348 | no_cache=0 |
6349 | # Check whether --enable-display or --disable-display was given. | |
6350 | if test "${enable_display+set}" = set; then | |
6351 | enableval="$enable_display" | |
6352 | ||
6353 | if test "$enableval" = yes; then | |
6354 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
6355 | else | |
6356 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
6357 | fi | |
6358 | ||
6359 | else | |
6360 | ||
6361 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` | |
6362 | if test "x$LINE" != x ; then | |
6363 | eval "DEFAULT_$LINE" | |
6364 | else | |
6365 | no_cache=1 | |
6366 | fi | |
6367 | ||
6368 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
6369 | ||
6370 | fi | |
6371 | ||
6372 | ||
6373 | eval "$ac_cv_use_display" | |
6374 | if test "$no_cache" != 1; then | |
6375 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
6376 | fi | |
6377 | ||
6378 | if test "$wxUSE_DISPLAY" = yes; then | |
6379 | echo "$ac_t""yes" 1>&6 | |
6380 | else | |
6381 | echo "$ac_t""no" 1>&6 | |
6382 | fi | |
6383 | ||
6384 | ||
5005acfe VZ |
6385 | enablestring= |
6386 | echo $ac_n "checking for --${enablestring:-enable}-gauge""... $ac_c" 1>&6 | |
ac0c4cc3 | 6387 | echo "configure:6388: checking for --${enablestring:-enable}-gauge" >&5 |
10f2d63a VZ |
6388 | no_cache=0 |
6389 | # Check whether --enable-gauge or --disable-gauge was given. | |
6390 | if test "${enable_gauge+set}" = set; then | |
6391 | enableval="$enable_gauge" | |
a0b9e27f | 6392 | |
10f2d63a VZ |
6393 | if test "$enableval" = yes; then |
6394 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
6395 | else | |
6396 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
6397 | fi | |
a0b9e27f | 6398 | |
10f2d63a | 6399 | else |
a0b9e27f | 6400 | |
10f2d63a VZ |
6401 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
6402 | if test "x$LINE" != x ; then | |
6403 | eval "DEFAULT_$LINE" | |
6404 | else | |
6405 | no_cache=1 | |
6406 | fi | |
6407 | ||
6408 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
a0b9e27f MB |
6409 | |
6410 | fi | |
10f2d63a VZ |
6411 | |
6412 | ||
6413 | eval "$ac_cv_use_gauge" | |
6414 | if test "$no_cache" != 1; then | |
6415 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
6416 | fi | |
6417 | ||
6418 | if test "$wxUSE_GAUGE" = yes; then | |
a0b9e27f | 6419 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6420 | else |
a0b9e27f | 6421 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6422 | fi |
a0b9e27f | 6423 | |
10f2d63a | 6424 | |
5005acfe VZ |
6425 | enablestring= |
6426 | echo $ac_n "checking for --${enablestring:-enable}-grid""... $ac_c" 1>&6 | |
ac0c4cc3 | 6427 | echo "configure:6428: checking for --${enablestring:-enable}-grid" >&5 |
10f2d63a VZ |
6428 | no_cache=0 |
6429 | # Check whether --enable-grid or --disable-grid was given. | |
6430 | if test "${enable_grid+set}" = set; then | |
6431 | enableval="$enable_grid" | |
a0b9e27f | 6432 | |
10f2d63a VZ |
6433 | if test "$enableval" = yes; then |
6434 | ac_cv_use_grid='wxUSE_GRID=yes' | |
6435 | else | |
6436 | ac_cv_use_grid='wxUSE_GRID=no' | |
6437 | fi | |
a0b9e27f | 6438 | |
10f2d63a | 6439 | else |
a0b9e27f | 6440 | |
10f2d63a VZ |
6441 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
6442 | if test "x$LINE" != x ; then | |
6443 | eval "DEFAULT_$LINE" | |
6444 | else | |
6445 | no_cache=1 | |
6446 | fi | |
6447 | ||
6448 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
a0b9e27f MB |
6449 | |
6450 | fi | |
10f2d63a VZ |
6451 | |
6452 | ||
6453 | eval "$ac_cv_use_grid" | |
6454 | if test "$no_cache" != 1; then | |
6455 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
6456 | fi | |
6457 | ||
6458 | if test "$wxUSE_GRID" = yes; then | |
a0b9e27f | 6459 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6460 | else |
a0b9e27f | 6461 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6462 | fi |
a0b9e27f | 6463 | |
10f2d63a | 6464 | |
5005acfe VZ |
6465 | enablestring= |
6466 | echo $ac_n "checking for --${enablestring:-enable}-newgrid""... $ac_c" 1>&6 | |
ac0c4cc3 | 6467 | echo "configure:6468: checking for --${enablestring:-enable}-newgrid" >&5 |
10f2d63a VZ |
6468 | no_cache=0 |
6469 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
6470 | if test "${enable_newgrid+set}" = set; then | |
6471 | enableval="$enable_newgrid" | |
a0b9e27f | 6472 | |
10f2d63a VZ |
6473 | if test "$enableval" = yes; then |
6474 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
6475 | else | |
6476 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
6477 | fi | |
a0b9e27f | 6478 | |
10f2d63a | 6479 | else |
a0b9e27f | 6480 | |
10f2d63a VZ |
6481 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
6482 | if test "x$LINE" != x ; then | |
6483 | eval "DEFAULT_$LINE" | |
6484 | else | |
6485 | no_cache=1 | |
6486 | fi | |
6487 | ||
6488 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
a0b9e27f MB |
6489 | |
6490 | fi | |
10f2d63a VZ |
6491 | |
6492 | ||
6493 | eval "$ac_cv_use_newgrid" | |
6494 | if test "$no_cache" != 1; then | |
6495 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
6496 | fi | |
6497 | ||
6498 | if test "$wxUSE_NEW_GRID" = yes; then | |
a0b9e27f | 6499 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6500 | else |
a0b9e27f | 6501 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6502 | fi |
a0b9e27f | 6503 | |
10f2d63a | 6504 | |
5005acfe VZ |
6505 | enablestring= |
6506 | echo $ac_n "checking for --${enablestring:-enable}-imaglist""... $ac_c" 1>&6 | |
ac0c4cc3 | 6507 | echo "configure:6508: checking for --${enablestring:-enable}-imaglist" >&5 |
10f2d63a VZ |
6508 | no_cache=0 |
6509 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
6510 | if test "${enable_imaglist+set}" = set; then | |
6511 | enableval="$enable_imaglist" | |
a0b9e27f | 6512 | |
10f2d63a VZ |
6513 | if test "$enableval" = yes; then |
6514 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
6515 | else | |
6516 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
6517 | fi | |
a0b9e27f | 6518 | |
10f2d63a | 6519 | else |
a0b9e27f | 6520 | |
10f2d63a VZ |
6521 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
6522 | if test "x$LINE" != x ; then | |
6523 | eval "DEFAULT_$LINE" | |
6524 | else | |
6525 | no_cache=1 | |
6526 | fi | |
6527 | ||
6528 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
a0b9e27f MB |
6529 | |
6530 | fi | |
10f2d63a VZ |
6531 | |
6532 | ||
6533 | eval "$ac_cv_use_imaglist" | |
6534 | if test "$no_cache" != 1; then | |
6535 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
6536 | fi | |
6537 | ||
6538 | if test "$wxUSE_IMAGLIST" = yes; then | |
a0b9e27f | 6539 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6540 | else |
a0b9e27f | 6541 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6542 | fi |
a0b9e27f | 6543 | |
10f2d63a | 6544 | |
5005acfe VZ |
6545 | enablestring= |
6546 | echo $ac_n "checking for --${enablestring:-enable}-listbox""... $ac_c" 1>&6 | |
ac0c4cc3 | 6547 | echo "configure:6548: checking for --${enablestring:-enable}-listbox" >&5 |
10f2d63a VZ |
6548 | no_cache=0 |
6549 | # Check whether --enable-listbox or --disable-listbox was given. | |
6550 | if test "${enable_listbox+set}" = set; then | |
6551 | enableval="$enable_listbox" | |
a0b9e27f | 6552 | |
10f2d63a VZ |
6553 | if test "$enableval" = yes; then |
6554 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
6555 | else | |
6556 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
6557 | fi | |
a0b9e27f | 6558 | |
10f2d63a | 6559 | else |
a0b9e27f | 6560 | |
10f2d63a VZ |
6561 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
6562 | if test "x$LINE" != x ; then | |
6563 | eval "DEFAULT_$LINE" | |
6564 | else | |
6565 | no_cache=1 | |
6566 | fi | |
6567 | ||
6568 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
a0b9e27f MB |
6569 | |
6570 | fi | |
10f2d63a VZ |
6571 | |
6572 | ||
6573 | eval "$ac_cv_use_listbox" | |
6574 | if test "$no_cache" != 1; then | |
6575 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
6576 | fi | |
6577 | ||
6578 | if test "$wxUSE_LISTBOX" = yes; then | |
a0b9e27f | 6579 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6580 | else |
a0b9e27f | 6581 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6582 | fi |
a0b9e27f | 6583 | |
10f2d63a | 6584 | |
5005acfe VZ |
6585 | enablestring= |
6586 | echo $ac_n "checking for --${enablestring:-enable}-listctrl""... $ac_c" 1>&6 | |
ac0c4cc3 | 6587 | echo "configure:6588: checking for --${enablestring:-enable}-listctrl" >&5 |
10f2d63a VZ |
6588 | no_cache=0 |
6589 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
6590 | if test "${enable_listctrl+set}" = set; then | |
6591 | enableval="$enable_listctrl" | |
a0b9e27f | 6592 | |
10f2d63a VZ |
6593 | if test "$enableval" = yes; then |
6594 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
6595 | else | |
6596 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
6597 | fi | |
a0b9e27f | 6598 | |
10f2d63a | 6599 | else |
a0b9e27f | 6600 | |
10f2d63a VZ |
6601 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
6602 | if test "x$LINE" != x ; then | |
6603 | eval "DEFAULT_$LINE" | |
6604 | else | |
6605 | no_cache=1 | |
6606 | fi | |
6607 | ||
6608 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
a0b9e27f MB |
6609 | |
6610 | fi | |
10f2d63a VZ |
6611 | |
6612 | ||
6613 | eval "$ac_cv_use_listctrl" | |
6614 | if test "$no_cache" != 1; then | |
6615 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
6616 | fi | |
6617 | ||
6618 | if test "$wxUSE_LISTCTRL" = yes; then | |
a0b9e27f | 6619 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6620 | else |
a0b9e27f | 6621 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6622 | fi |
a0b9e27f | 6623 | |
10f2d63a | 6624 | |
5005acfe VZ |
6625 | enablestring= |
6626 | echo $ac_n "checking for --${enablestring:-enable}-notebook""... $ac_c" 1>&6 | |
ac0c4cc3 | 6627 | echo "configure:6628: checking for --${enablestring:-enable}-notebook" >&5 |
10f2d63a VZ |
6628 | no_cache=0 |
6629 | # Check whether --enable-notebook or --disable-notebook was given. | |
6630 | if test "${enable_notebook+set}" = set; then | |
6631 | enableval="$enable_notebook" | |
a0b9e27f | 6632 | |
10f2d63a VZ |
6633 | if test "$enableval" = yes; then |
6634 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
6635 | else | |
6636 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
6637 | fi | |
a0b9e27f | 6638 | |
10f2d63a | 6639 | else |
a0b9e27f | 6640 | |
10f2d63a VZ |
6641 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
6642 | if test "x$LINE" != x ; then | |
6643 | eval "DEFAULT_$LINE" | |
6644 | else | |
6645 | no_cache=1 | |
6646 | fi | |
6647 | ||
6648 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
a0b9e27f MB |
6649 | |
6650 | fi | |
10f2d63a VZ |
6651 | |
6652 | ||
6653 | eval "$ac_cv_use_notebook" | |
6654 | if test "$no_cache" != 1; then | |
6655 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
6656 | fi | |
6657 | ||
6658 | if test "$wxUSE_NOTEBOOK" = yes; then | |
a0b9e27f | 6659 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6660 | else |
a0b9e27f | 6661 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6662 | fi |
a0b9e27f | 6663 | |
10f2d63a | 6664 | |
5005acfe VZ |
6665 | enablestring= |
6666 | echo $ac_n "checking for --${enablestring:-enable}-propsheet""... $ac_c" 1>&6 | |
ac0c4cc3 | 6667 | echo "configure:6668: checking for --${enablestring:-enable}-propsheet" >&5 |
24176f2c GD |
6668 | no_cache=0 |
6669 | # Check whether --enable-propsheet or --disable-propsheet was given. | |
6670 | if test "${enable_propsheet+set}" = set; then | |
6671 | enableval="$enable_propsheet" | |
a0b9e27f | 6672 | |
24176f2c GD |
6673 | if test "$enableval" = yes; then |
6674 | ac_cv_use_propsheet='wxUSE_PROPSHEET=yes' | |
6675 | else | |
6676 | ac_cv_use_propsheet='wxUSE_PROPSHEET=no' | |
6677 | fi | |
a0b9e27f | 6678 | |
24176f2c | 6679 | else |
a0b9e27f | 6680 | |
24176f2c GD |
6681 | LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}` |
6682 | if test "x$LINE" != x ; then | |
6683 | eval "DEFAULT_$LINE" | |
6684 | else | |
6685 | no_cache=1 | |
6686 | fi | |
6687 | ||
6688 | ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET | |
a0b9e27f MB |
6689 | |
6690 | fi | |
24176f2c GD |
6691 | |
6692 | ||
6693 | eval "$ac_cv_use_propsheet" | |
6694 | if test "$no_cache" != 1; then | |
6695 | echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp | |
6696 | fi | |
6697 | ||
6698 | if test "$wxUSE_PROPSHEET" = yes; then | |
a0b9e27f | 6699 | echo "$ac_t""yes" 1>&6 |
24176f2c | 6700 | else |
a0b9e27f | 6701 | echo "$ac_t""no" 1>&6 |
24176f2c | 6702 | fi |
a0b9e27f | 6703 | |
24176f2c | 6704 | |
5005acfe VZ |
6705 | enablestring= |
6706 | echo $ac_n "checking for --${enablestring:-enable}-radiobox""... $ac_c" 1>&6 | |
ac0c4cc3 | 6707 | echo "configure:6708: checking for --${enablestring:-enable}-radiobox" >&5 |
10f2d63a VZ |
6708 | no_cache=0 |
6709 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
6710 | if test "${enable_radiobox+set}" = set; then | |
6711 | enableval="$enable_radiobox" | |
a0b9e27f | 6712 | |
10f2d63a VZ |
6713 | if test "$enableval" = yes; then |
6714 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
6715 | else | |
6716 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
6717 | fi | |
a0b9e27f | 6718 | |
10f2d63a | 6719 | else |
a0b9e27f | 6720 | |
10f2d63a VZ |
6721 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
6722 | if test "x$LINE" != x ; then | |
6723 | eval "DEFAULT_$LINE" | |
6724 | else | |
6725 | no_cache=1 | |
6726 | fi | |
6727 | ||
6728 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
a0b9e27f MB |
6729 | |
6730 | fi | |
10f2d63a VZ |
6731 | |
6732 | ||
6733 | eval "$ac_cv_use_radiobox" | |
6734 | if test "$no_cache" != 1; then | |
6735 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
6736 | fi | |
6737 | ||
6738 | if test "$wxUSE_RADIOBOX" = yes; then | |
a0b9e27f | 6739 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6740 | else |
a0b9e27f | 6741 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6742 | fi |
a0b9e27f | 6743 | |
10f2d63a | 6744 | |
5005acfe VZ |
6745 | enablestring= |
6746 | echo $ac_n "checking for --${enablestring:-enable}-radiobtn""... $ac_c" 1>&6 | |
ac0c4cc3 | 6747 | echo "configure:6748: checking for --${enablestring:-enable}-radiobtn" >&5 |
10f2d63a VZ |
6748 | no_cache=0 |
6749 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
6750 | if test "${enable_radiobtn+set}" = set; then | |
6751 | enableval="$enable_radiobtn" | |
a0b9e27f | 6752 | |
10f2d63a VZ |
6753 | if test "$enableval" = yes; then |
6754 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
6755 | else | |
6756 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
6757 | fi | |
a0b9e27f | 6758 | |
10f2d63a | 6759 | else |
a0b9e27f | 6760 | |
10f2d63a VZ |
6761 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
6762 | if test "x$LINE" != x ; then | |
6763 | eval "DEFAULT_$LINE" | |
6764 | else | |
6765 | no_cache=1 | |
6766 | fi | |
6767 | ||
6768 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
a0b9e27f MB |
6769 | |
6770 | fi | |
10f2d63a VZ |
6771 | |
6772 | ||
6773 | eval "$ac_cv_use_radiobtn" | |
6774 | if test "$no_cache" != 1; then | |
6775 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
6776 | fi | |
6777 | ||
6778 | if test "$wxUSE_RADIOBTN" = yes; then | |
a0b9e27f | 6779 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6780 | else |
a0b9e27f | 6781 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6782 | fi |
a0b9e27f | 6783 | |
10f2d63a | 6784 | |
5005acfe VZ |
6785 | enablestring= |
6786 | echo $ac_n "checking for --${enablestring:-enable}-sash""... $ac_c" 1>&6 | |
ac0c4cc3 | 6787 | echo "configure:6788: checking for --${enablestring:-enable}-sash" >&5 |
10f2d63a VZ |
6788 | no_cache=0 |
6789 | # Check whether --enable-sash or --disable-sash was given. | |
6790 | if test "${enable_sash+set}" = set; then | |
6791 | enableval="$enable_sash" | |
a0b9e27f | 6792 | |
10f2d63a VZ |
6793 | if test "$enableval" = yes; then |
6794 | ac_cv_use_sash='wxUSE_SASH=yes' | |
6795 | else | |
6796 | ac_cv_use_sash='wxUSE_SASH=no' | |
6797 | fi | |
a0b9e27f | 6798 | |
10f2d63a | 6799 | else |
a0b9e27f | 6800 | |
10f2d63a VZ |
6801 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
6802 | if test "x$LINE" != x ; then | |
6803 | eval "DEFAULT_$LINE" | |
6804 | else | |
6805 | no_cache=1 | |
6806 | fi | |
6807 | ||
6808 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
a0b9e27f MB |
6809 | |
6810 | fi | |
10f2d63a VZ |
6811 | |
6812 | ||
6813 | eval "$ac_cv_use_sash" | |
6814 | if test "$no_cache" != 1; then | |
6815 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
6816 | fi | |
6817 | ||
6818 | if test "$wxUSE_SASH" = yes; then | |
a0b9e27f | 6819 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6820 | else |
a0b9e27f | 6821 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6822 | fi |
a0b9e27f | 6823 | |
10f2d63a | 6824 | |
5005acfe VZ |
6825 | enablestring= |
6826 | echo $ac_n "checking for --${enablestring:-enable}-scrollbar""... $ac_c" 1>&6 | |
ac0c4cc3 | 6827 | echo "configure:6828: checking for --${enablestring:-enable}-scrollbar" >&5 |
10f2d63a VZ |
6828 | no_cache=0 |
6829 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
6830 | if test "${enable_scrollbar+set}" = set; then | |
6831 | enableval="$enable_scrollbar" | |
a0b9e27f | 6832 | |
10f2d63a VZ |
6833 | if test "$enableval" = yes; then |
6834 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
6835 | else | |
6836 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
6837 | fi | |
a0b9e27f | 6838 | |
10f2d63a | 6839 | else |
a0b9e27f | 6840 | |
10f2d63a VZ |
6841 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
6842 | if test "x$LINE" != x ; then | |
6843 | eval "DEFAULT_$LINE" | |
6844 | else | |
6845 | no_cache=1 | |
6846 | fi | |
6847 | ||
6848 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
a0b9e27f MB |
6849 | |
6850 | fi | |
10f2d63a VZ |
6851 | |
6852 | ||
6853 | eval "$ac_cv_use_scrollbar" | |
6854 | if test "$no_cache" != 1; then | |
6855 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
6856 | fi | |
6857 | ||
6858 | if test "$wxUSE_SCROLLBAR" = yes; then | |
a0b9e27f | 6859 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6860 | else |
a0b9e27f | 6861 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6862 | fi |
a0b9e27f | 6863 | |
10f2d63a | 6864 | |
5005acfe VZ |
6865 | enablestring= |
6866 | echo $ac_n "checking for --${enablestring:-enable}-slider""... $ac_c" 1>&6 | |
ac0c4cc3 | 6867 | echo "configure:6868: checking for --${enablestring:-enable}-slider" >&5 |
10f2d63a VZ |
6868 | no_cache=0 |
6869 | # Check whether --enable-slider or --disable-slider was given. | |
6870 | if test "${enable_slider+set}" = set; then | |
6871 | enableval="$enable_slider" | |
a0b9e27f | 6872 | |
10f2d63a VZ |
6873 | if test "$enableval" = yes; then |
6874 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
6875 | else | |
6876 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
6877 | fi | |
a0b9e27f | 6878 | |
10f2d63a | 6879 | else |
a0b9e27f | 6880 | |
10f2d63a VZ |
6881 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
6882 | if test "x$LINE" != x ; then | |
6883 | eval "DEFAULT_$LINE" | |
6884 | else | |
6885 | no_cache=1 | |
6886 | fi | |
6887 | ||
6888 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
a0b9e27f MB |
6889 | |
6890 | fi | |
10f2d63a VZ |
6891 | |
6892 | ||
6893 | eval "$ac_cv_use_slider" | |
6894 | if test "$no_cache" != 1; then | |
6895 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
6896 | fi | |
6897 | ||
6898 | if test "$wxUSE_SLIDER" = yes; then | |
a0b9e27f | 6899 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6900 | else |
a0b9e27f | 6901 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6902 | fi |
a0b9e27f | 6903 | |
10f2d63a | 6904 | |
5005acfe VZ |
6905 | enablestring= |
6906 | echo $ac_n "checking for --${enablestring:-enable}-spinbtn""... $ac_c" 1>&6 | |
ac0c4cc3 | 6907 | echo "configure:6908: checking for --${enablestring:-enable}-spinbtn" >&5 |
10f2d63a VZ |
6908 | no_cache=0 |
6909 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
6910 | if test "${enable_spinbtn+set}" = set; then | |
6911 | enableval="$enable_spinbtn" | |
a0b9e27f | 6912 | |
10f2d63a VZ |
6913 | if test "$enableval" = yes; then |
6914 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
6915 | else | |
6916 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
6917 | fi | |
a0b9e27f | 6918 | |
10f2d63a | 6919 | else |
a0b9e27f | 6920 | |
10f2d63a VZ |
6921 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
6922 | if test "x$LINE" != x ; then | |
6923 | eval "DEFAULT_$LINE" | |
6924 | else | |
6925 | no_cache=1 | |
6926 | fi | |
6927 | ||
6928 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
a0b9e27f MB |
6929 | |
6930 | fi | |
10f2d63a VZ |
6931 | |
6932 | ||
6933 | eval "$ac_cv_use_spinbtn" | |
6934 | if test "$no_cache" != 1; then | |
6935 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
6936 | fi | |
6937 | ||
6938 | if test "$wxUSE_SPINBTN" = yes; then | |
a0b9e27f | 6939 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6940 | else |
a0b9e27f | 6941 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6942 | fi |
a0b9e27f | 6943 | |
10f2d63a | 6944 | |
5005acfe VZ |
6945 | enablestring= |
6946 | echo $ac_n "checking for --${enablestring:-enable}-spinctrl""... $ac_c" 1>&6 | |
ac0c4cc3 | 6947 | echo "configure:6948: checking for --${enablestring:-enable}-spinctrl" >&5 |
56cfaa52 RR |
6948 | no_cache=0 |
6949 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
6950 | if test "${enable_spinctrl+set}" = set; then | |
6951 | enableval="$enable_spinctrl" | |
a0b9e27f | 6952 | |
56cfaa52 RR |
6953 | if test "$enableval" = yes; then |
6954 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
6955 | else | |
6956 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
6957 | fi | |
a0b9e27f | 6958 | |
56cfaa52 | 6959 | else |
a0b9e27f | 6960 | |
56cfaa52 RR |
6961 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
6962 | if test "x$LINE" != x ; then | |
6963 | eval "DEFAULT_$LINE" | |
6964 | else | |
6965 | no_cache=1 | |
6966 | fi | |
6967 | ||
6968 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
a0b9e27f MB |
6969 | |
6970 | fi | |
56cfaa52 RR |
6971 | |
6972 | ||
6973 | eval "$ac_cv_use_spinctrl" | |
6974 | if test "$no_cache" != 1; then | |
6975 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
6976 | fi | |
6977 | ||
6978 | if test "$wxUSE_SPINCTRL" = yes; then | |
a0b9e27f | 6979 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 6980 | else |
a0b9e27f | 6981 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 6982 | fi |
a0b9e27f | 6983 | |
56cfaa52 | 6984 | |
5005acfe VZ |
6985 | enablestring= |
6986 | echo $ac_n "checking for --${enablestring:-enable}-splitter""... $ac_c" 1>&6 | |
ac0c4cc3 | 6987 | echo "configure:6988: checking for --${enablestring:-enable}-splitter" >&5 |
10f2d63a VZ |
6988 | no_cache=0 |
6989 | # Check whether --enable-splitter or --disable-splitter was given. | |
6990 | if test "${enable_splitter+set}" = set; then | |
6991 | enableval="$enable_splitter" | |
a0b9e27f | 6992 | |
10f2d63a VZ |
6993 | if test "$enableval" = yes; then |
6994 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
6995 | else | |
6996 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
6997 | fi | |
a0b9e27f | 6998 | |
10f2d63a | 6999 | else |
a0b9e27f | 7000 | |
10f2d63a VZ |
7001 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
7002 | if test "x$LINE" != x ; then | |
7003 | eval "DEFAULT_$LINE" | |
7004 | else | |
7005 | no_cache=1 | |
7006 | fi | |
7007 | ||
7008 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
a0b9e27f MB |
7009 | |
7010 | fi | |
10f2d63a VZ |
7011 | |
7012 | ||
7013 | eval "$ac_cv_use_splitter" | |
7014 | if test "$no_cache" != 1; then | |
7015 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
7016 | fi | |
7017 | ||
7018 | if test "$wxUSE_SPLITTER" = yes; then | |
a0b9e27f | 7019 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7020 | else |
a0b9e27f | 7021 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7022 | fi |
a0b9e27f | 7023 | |
10f2d63a | 7024 | |
5005acfe VZ |
7025 | enablestring= |
7026 | echo $ac_n "checking for --${enablestring:-enable}-statbmp""... $ac_c" 1>&6 | |
ac0c4cc3 | 7027 | echo "configure:7028: checking for --${enablestring:-enable}-statbmp" >&5 |
10f2d63a VZ |
7028 | no_cache=0 |
7029 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
7030 | if test "${enable_statbmp+set}" = set; then | |
7031 | enableval="$enable_statbmp" | |
a0b9e27f | 7032 | |
10f2d63a VZ |
7033 | if test "$enableval" = yes; then |
7034 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
7035 | else | |
7036 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
7037 | fi | |
a0b9e27f | 7038 | |
10f2d63a | 7039 | else |
a0b9e27f | 7040 | |
10f2d63a VZ |
7041 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
7042 | if test "x$LINE" != x ; then | |
7043 | eval "DEFAULT_$LINE" | |
7044 | else | |
7045 | no_cache=1 | |
7046 | fi | |
7047 | ||
7048 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
a0b9e27f MB |
7049 | |
7050 | fi | |
10f2d63a VZ |
7051 | |
7052 | ||
7053 | eval "$ac_cv_use_statbmp" | |
7054 | if test "$no_cache" != 1; then | |
7055 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
7056 | fi | |
7057 | ||
7058 | if test "$wxUSE_STATBMP" = yes; then | |
a0b9e27f | 7059 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7060 | else |
a0b9e27f | 7061 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7062 | fi |
a0b9e27f | 7063 | |
10f2d63a | 7064 | |
5005acfe VZ |
7065 | enablestring= |
7066 | echo $ac_n "checking for --${enablestring:-enable}-statbox""... $ac_c" 1>&6 | |
ac0c4cc3 | 7067 | echo "configure:7068: checking for --${enablestring:-enable}-statbox" >&5 |
10f2d63a VZ |
7068 | no_cache=0 |
7069 | # Check whether --enable-statbox or --disable-statbox was given. | |
7070 | if test "${enable_statbox+set}" = set; then | |
7071 | enableval="$enable_statbox" | |
a0b9e27f | 7072 | |
10f2d63a VZ |
7073 | if test "$enableval" = yes; then |
7074 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
7075 | else | |
7076 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
7077 | fi | |
a0b9e27f | 7078 | |
10f2d63a | 7079 | else |
a0b9e27f | 7080 | |
10f2d63a VZ |
7081 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
7082 | if test "x$LINE" != x ; then | |
7083 | eval "DEFAULT_$LINE" | |
7084 | else | |
7085 | no_cache=1 | |
7086 | fi | |
7087 | ||
7088 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
a0b9e27f MB |
7089 | |
7090 | fi | |
10f2d63a VZ |
7091 | |
7092 | ||
7093 | eval "$ac_cv_use_statbox" | |
7094 | if test "$no_cache" != 1; then | |
7095 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
7096 | fi | |
7097 | ||
7098 | if test "$wxUSE_STATBOX" = yes; then | |
a0b9e27f | 7099 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7100 | else |
a0b9e27f | 7101 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7102 | fi |
a0b9e27f | 7103 | |
10f2d63a | 7104 | |
5005acfe VZ |
7105 | enablestring= |
7106 | echo $ac_n "checking for --${enablestring:-enable}-statline""... $ac_c" 1>&6 | |
ac0c4cc3 | 7107 | echo "configure:7108: checking for --${enablestring:-enable}-statline" >&5 |
10f2d63a VZ |
7108 | no_cache=0 |
7109 | # Check whether --enable-statline or --disable-statline was given. | |
7110 | if test "${enable_statline+set}" = set; then | |
7111 | enableval="$enable_statline" | |
a0b9e27f | 7112 | |
10f2d63a VZ |
7113 | if test "$enableval" = yes; then |
7114 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
7115 | else | |
7116 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
7117 | fi | |
a0b9e27f | 7118 | |
10f2d63a | 7119 | else |
a0b9e27f | 7120 | |
10f2d63a VZ |
7121 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
7122 | if test "x$LINE" != x ; then | |
7123 | eval "DEFAULT_$LINE" | |
7124 | else | |
7125 | no_cache=1 | |
7126 | fi | |
7127 | ||
7128 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
a0b9e27f MB |
7129 | |
7130 | fi | |
10f2d63a VZ |
7131 | |
7132 | ||
7133 | eval "$ac_cv_use_statline" | |
7134 | if test "$no_cache" != 1; then | |
7135 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
7136 | fi | |
7137 | ||
7138 | if test "$wxUSE_STATLINE" = yes; then | |
a0b9e27f | 7139 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7140 | else |
a0b9e27f | 7141 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7142 | fi |
a0b9e27f | 7143 | |
10f2d63a | 7144 | |
5005acfe VZ |
7145 | enablestring= |
7146 | echo $ac_n "checking for --${enablestring:-enable}-stattext""... $ac_c" 1>&6 | |
ac0c4cc3 | 7147 | echo "configure:7148: checking for --${enablestring:-enable}-stattext" >&5 |
1e6feb95 VZ |
7148 | no_cache=0 |
7149 | # Check whether --enable-stattext or --disable-stattext was given. | |
7150 | if test "${enable_stattext+set}" = set; then | |
7151 | enableval="$enable_stattext" | |
a0b9e27f | 7152 | |
1e6feb95 VZ |
7153 | if test "$enableval" = yes; then |
7154 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
7155 | else | |
7156 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
7157 | fi | |
a0b9e27f | 7158 | |
1e6feb95 | 7159 | else |
a0b9e27f | 7160 | |
1e6feb95 VZ |
7161 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` |
7162 | if test "x$LINE" != x ; then | |
7163 | eval "DEFAULT_$LINE" | |
7164 | else | |
7165 | no_cache=1 | |
7166 | fi | |
7167 | ||
7168 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
a0b9e27f MB |
7169 | |
7170 | fi | |
1e6feb95 VZ |
7171 | |
7172 | ||
7173 | eval "$ac_cv_use_stattext" | |
7174 | if test "$no_cache" != 1; then | |
7175 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
7176 | fi | |
7177 | ||
7178 | if test "$wxUSE_STATTEXT" = yes; then | |
a0b9e27f | 7179 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7180 | else |
a0b9e27f | 7181 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7182 | fi |
a0b9e27f | 7183 | |
1e6feb95 | 7184 | |
5005acfe VZ |
7185 | enablestring= |
7186 | echo $ac_n "checking for --${enablestring:-enable}-statusbar""... $ac_c" 1>&6 | |
ac0c4cc3 | 7187 | echo "configure:7188: checking for --${enablestring:-enable}-statusbar" >&5 |
10f2d63a VZ |
7188 | no_cache=0 |
7189 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
7190 | if test "${enable_statusbar+set}" = set; then | |
7191 | enableval="$enable_statusbar" | |
a0b9e27f | 7192 | |
10f2d63a VZ |
7193 | if test "$enableval" = yes; then |
7194 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
7195 | else | |
7196 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
7197 | fi | |
a0b9e27f | 7198 | |
10f2d63a | 7199 | else |
a0b9e27f | 7200 | |
10f2d63a VZ |
7201 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
7202 | if test "x$LINE" != x ; then | |
7203 | eval "DEFAULT_$LINE" | |
7204 | else | |
7205 | no_cache=1 | |
7206 | fi | |
7207 | ||
7208 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
a0b9e27f MB |
7209 | |
7210 | fi | |
10f2d63a VZ |
7211 | |
7212 | ||
7213 | eval "$ac_cv_use_statusbar" | |
7214 | if test "$no_cache" != 1; then | |
7215 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
7216 | fi | |
7217 | ||
7218 | if test "$wxUSE_STATUSBAR" = yes; then | |
a0b9e27f | 7219 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7220 | else |
a0b9e27f | 7221 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7222 | fi |
a0b9e27f | 7223 | |
10f2d63a | 7224 | |
5005acfe VZ |
7225 | enablestring= |
7226 | echo $ac_n "checking for --${enablestring:-enable}-tabdialog""... $ac_c" 1>&6 | |
ac0c4cc3 | 7227 | echo "configure:7228: checking for --${enablestring:-enable}-tabdialog" >&5 |
10f2d63a VZ |
7228 | no_cache=0 |
7229 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
7230 | if test "${enable_tabdialog+set}" = set; then | |
7231 | enableval="$enable_tabdialog" | |
a0b9e27f | 7232 | |
10f2d63a VZ |
7233 | if test "$enableval" = yes; then |
7234 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
7235 | else | |
7236 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
7237 | fi | |
a0b9e27f | 7238 | |
10f2d63a | 7239 | else |
a0b9e27f | 7240 | |
10f2d63a VZ |
7241 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
7242 | if test "x$LINE" != x ; then | |
7243 | eval "DEFAULT_$LINE" | |
7244 | else | |
7245 | no_cache=1 | |
7246 | fi | |
7247 | ||
7248 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
a0b9e27f MB |
7249 | |
7250 | fi | |
10f2d63a VZ |
7251 | |
7252 | ||
7253 | eval "$ac_cv_use_tabdialog" | |
7254 | if test "$no_cache" != 1; then | |
7255 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
7256 | fi | |
7257 | ||
7258 | if test "$wxUSE_TABDIALOG" = yes; then | |
a0b9e27f | 7259 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7260 | else |
a0b9e27f | 7261 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7262 | fi |
a0b9e27f | 7263 | |
10f2d63a | 7264 | |
5005acfe VZ |
7265 | enablestring= |
7266 | echo $ac_n "checking for --${enablestring:-enable}-textctrl""... $ac_c" 1>&6 | |
ac0c4cc3 | 7267 | echo "configure:7268: checking for --${enablestring:-enable}-textctrl" >&5 |
1e6feb95 VZ |
7268 | no_cache=0 |
7269 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
7270 | if test "${enable_textctrl+set}" = set; then | |
7271 | enableval="$enable_textctrl" | |
a0b9e27f | 7272 | |
1e6feb95 VZ |
7273 | if test "$enableval" = yes; then |
7274 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
7275 | else | |
7276 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
7277 | fi | |
a0b9e27f | 7278 | |
1e6feb95 | 7279 | else |
a0b9e27f | 7280 | |
1e6feb95 VZ |
7281 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` |
7282 | if test "x$LINE" != x ; then | |
7283 | eval "DEFAULT_$LINE" | |
7284 | else | |
7285 | no_cache=1 | |
7286 | fi | |
7287 | ||
7288 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
a0b9e27f MB |
7289 | |
7290 | fi | |
1e6feb95 VZ |
7291 | |
7292 | ||
7293 | eval "$ac_cv_use_textctrl" | |
7294 | if test "$no_cache" != 1; then | |
7295 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
7296 | fi | |
7297 | ||
7298 | if test "$wxUSE_TEXTCTRL" = yes; then | |
a0b9e27f | 7299 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7300 | else |
a0b9e27f | 7301 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7302 | fi |
a0b9e27f | 7303 | |
1e6feb95 | 7304 | |
5005acfe VZ |
7305 | enablestring= |
7306 | echo $ac_n "checking for --${enablestring:-enable}-togglebtn""... $ac_c" 1>&6 | |
ac0c4cc3 | 7307 | echo "configure:7308: checking for --${enablestring:-enable}-togglebtn" >&5 |
1db8dc4a VZ |
7308 | no_cache=0 |
7309 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
7310 | if test "${enable_togglebtn+set}" = set; then | |
7311 | enableval="$enable_togglebtn" | |
a0b9e27f | 7312 | |
1db8dc4a VZ |
7313 | if test "$enableval" = yes; then |
7314 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
7315 | else | |
7316 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
7317 | fi | |
a0b9e27f | 7318 | |
1db8dc4a | 7319 | else |
a0b9e27f | 7320 | |
1db8dc4a VZ |
7321 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
7322 | if test "x$LINE" != x ; then | |
7323 | eval "DEFAULT_$LINE" | |
7324 | else | |
7325 | no_cache=1 | |
7326 | fi | |
7327 | ||
7328 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
a0b9e27f MB |
7329 | |
7330 | fi | |
1db8dc4a VZ |
7331 | |
7332 | ||
7333 | eval "$ac_cv_use_togglebtn" | |
7334 | if test "$no_cache" != 1; then | |
7335 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
7336 | fi | |
7337 | ||
7338 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
a0b9e27f | 7339 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 7340 | else |
a0b9e27f | 7341 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 7342 | fi |
a0b9e27f | 7343 | |
1db8dc4a | 7344 | |
5005acfe VZ |
7345 | enablestring= |
7346 | echo $ac_n "checking for --${enablestring:-enable}-toolbar""... $ac_c" 1>&6 | |
ac0c4cc3 | 7347 | echo "configure:7348: checking for --${enablestring:-enable}-toolbar" >&5 |
10f2d63a VZ |
7348 | no_cache=0 |
7349 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
7350 | if test "${enable_toolbar+set}" = set; then | |
7351 | enableval="$enable_toolbar" | |
a0b9e27f | 7352 | |
10f2d63a VZ |
7353 | if test "$enableval" = yes; then |
7354 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
7355 | else | |
7356 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
7357 | fi | |
a0b9e27f | 7358 | |
10f2d63a | 7359 | else |
a0b9e27f | 7360 | |
10f2d63a VZ |
7361 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
7362 | if test "x$LINE" != x ; then | |
7363 | eval "DEFAULT_$LINE" | |
7364 | else | |
7365 | no_cache=1 | |
7366 | fi | |
7367 | ||
7368 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
a0b9e27f MB |
7369 | |
7370 | fi | |
10f2d63a VZ |
7371 | |
7372 | ||
7373 | eval "$ac_cv_use_toolbar" | |
7374 | if test "$no_cache" != 1; then | |
7375 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
7376 | fi | |
7377 | ||
7378 | if test "$wxUSE_TOOLBAR" = yes; then | |
a0b9e27f | 7379 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7380 | else |
a0b9e27f | 7381 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7382 | fi |
a0b9e27f | 7383 | |
10f2d63a | 7384 | |
5005acfe VZ |
7385 | enablestring= |
7386 | echo $ac_n "checking for --${enablestring:-enable}-tbarnative""... $ac_c" 1>&6 | |
ac0c4cc3 | 7387 | echo "configure:7388: checking for --${enablestring:-enable}-tbarnative" >&5 |
360d6699 VZ |
7388 | no_cache=0 |
7389 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
7390 | if test "${enable_tbarnative+set}" = set; then | |
7391 | enableval="$enable_tbarnative" | |
a0b9e27f | 7392 | |
360d6699 VZ |
7393 | if test "$enableval" = yes; then |
7394 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
7395 | else | |
7396 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
7397 | fi | |
a0b9e27f | 7398 | |
360d6699 | 7399 | else |
a0b9e27f | 7400 | |
360d6699 VZ |
7401 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
7402 | if test "x$LINE" != x ; then | |
7403 | eval "DEFAULT_$LINE" | |
7404 | else | |
7405 | no_cache=1 | |
7406 | fi | |
7407 | ||
7408 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
a0b9e27f MB |
7409 | |
7410 | fi | |
360d6699 VZ |
7411 | |
7412 | ||
7413 | eval "$ac_cv_use_tbarnative" | |
7414 | if test "$no_cache" != 1; then | |
7415 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
7416 | fi | |
7417 | ||
7418 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
a0b9e27f | 7419 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7420 | else |
a0b9e27f | 7421 | echo "$ac_t""no" 1>&6 |
360d6699 | 7422 | fi |
a0b9e27f | 7423 | |
360d6699 | 7424 | |
5005acfe VZ |
7425 | enablestring= |
7426 | echo $ac_n "checking for --${enablestring:-enable}-tbarsmpl""... $ac_c" 1>&6 | |
ac0c4cc3 | 7427 | echo "configure:7428: checking for --${enablestring:-enable}-tbarsmpl" >&5 |
360d6699 VZ |
7428 | no_cache=0 |
7429 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
7430 | if test "${enable_tbarsmpl+set}" = set; then | |
7431 | enableval="$enable_tbarsmpl" | |
a0b9e27f | 7432 | |
360d6699 VZ |
7433 | if test "$enableval" = yes; then |
7434 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
7435 | else | |
7436 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
7437 | fi | |
a0b9e27f | 7438 | |
360d6699 | 7439 | else |
a0b9e27f | 7440 | |
360d6699 VZ |
7441 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
7442 | if test "x$LINE" != x ; then | |
7443 | eval "DEFAULT_$LINE" | |
7444 | else | |
7445 | no_cache=1 | |
7446 | fi | |
7447 | ||
7448 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
a0b9e27f MB |
7449 | |
7450 | fi | |
360d6699 VZ |
7451 | |
7452 | ||
7453 | eval "$ac_cv_use_tbarsmpl" | |
7454 | if test "$no_cache" != 1; then | |
7455 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
7456 | fi | |
7457 | ||
7458 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
a0b9e27f | 7459 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7460 | else |
a0b9e27f | 7461 | echo "$ac_t""no" 1>&6 |
360d6699 | 7462 | fi |
a0b9e27f | 7463 | |
360d6699 | 7464 | |
5005acfe VZ |
7465 | enablestring= |
7466 | echo $ac_n "checking for --${enablestring:-enable}-treectrl""... $ac_c" 1>&6 | |
ac0c4cc3 | 7467 | echo "configure:7468: checking for --${enablestring:-enable}-treectrl" >&5 |
10f2d63a VZ |
7468 | no_cache=0 |
7469 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
7470 | if test "${enable_treectrl+set}" = set; then | |
7471 | enableval="$enable_treectrl" | |
a0b9e27f | 7472 | |
10f2d63a VZ |
7473 | if test "$enableval" = yes; then |
7474 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
7475 | else | |
7476 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
7477 | fi | |
a0b9e27f | 7478 | |
10f2d63a | 7479 | else |
a0b9e27f | 7480 | |
10f2d63a VZ |
7481 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
7482 | if test "x$LINE" != x ; then | |
7483 | eval "DEFAULT_$LINE" | |
7484 | else | |
7485 | no_cache=1 | |
7486 | fi | |
7487 | ||
7488 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
a0b9e27f MB |
7489 | |
7490 | fi | |
10f2d63a VZ |
7491 | |
7492 | ||
1e6feb95 VZ |
7493 | eval "$ac_cv_use_treectrl" |
7494 | if test "$no_cache" != 1; then | |
7495 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
7496 | fi | |
7497 | ||
7498 | if test "$wxUSE_TREECTRL" = yes; then | |
a0b9e27f | 7499 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7500 | else |
a0b9e27f | 7501 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7502 | fi |
a0b9e27f | 7503 | |
1e6feb95 | 7504 | |
5005acfe VZ |
7505 | enablestring= |
7506 | echo $ac_n "checking for --${enablestring:-enable}-tipwindow""... $ac_c" 1>&6 | |
ac0c4cc3 | 7507 | echo "configure:7508: checking for --${enablestring:-enable}-tipwindow" >&5 |
9926e4a4 VZ |
7508 | no_cache=0 |
7509 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
7510 | if test "${enable_tipwindow+set}" = set; then | |
7511 | enableval="$enable_tipwindow" | |
a0b9e27f | 7512 | |
9926e4a4 VZ |
7513 | if test "$enableval" = yes; then |
7514 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
7515 | else | |
7516 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
7517 | fi | |
a0b9e27f | 7518 | |
9926e4a4 | 7519 | else |
a0b9e27f | 7520 | |
9926e4a4 VZ |
7521 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` |
7522 | if test "x$LINE" != x ; then | |
7523 | eval "DEFAULT_$LINE" | |
7524 | else | |
7525 | no_cache=1 | |
7526 | fi | |
7527 | ||
7528 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
a0b9e27f MB |
7529 | |
7530 | fi | |
9926e4a4 VZ |
7531 | |
7532 | ||
7533 | eval "$ac_cv_use_tipwindow" | |
7534 | if test "$no_cache" != 1; then | |
7535 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
7536 | fi | |
7537 | ||
7538 | if test "$wxUSE_TIPWINDOW" = yes; then | |
a0b9e27f | 7539 | echo "$ac_t""yes" 1>&6 |
9926e4a4 | 7540 | else |
a0b9e27f | 7541 | echo "$ac_t""no" 1>&6 |
9926e4a4 | 7542 | fi |
a0b9e27f | 7543 | |
9926e4a4 | 7544 | |
5005acfe VZ |
7545 | enablestring= |
7546 | echo $ac_n "checking for --${enablestring:-enable}-popupwin""... $ac_c" 1>&6 | |
ac0c4cc3 | 7547 | echo "configure:7548: checking for --${enablestring:-enable}-popupwin" >&5 |
9f41d601 RR |
7548 | no_cache=0 |
7549 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
7550 | if test "${enable_popupwin+set}" = set; then | |
7551 | enableval="$enable_popupwin" | |
a0b9e27f | 7552 | |
9f41d601 RR |
7553 | if test "$enableval" = yes; then |
7554 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
7555 | else | |
7556 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
7557 | fi | |
a0b9e27f | 7558 | |
9f41d601 | 7559 | else |
a0b9e27f | 7560 | |
9f41d601 RR |
7561 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` |
7562 | if test "x$LINE" != x ; then | |
7563 | eval "DEFAULT_$LINE" | |
7564 | else | |
7565 | no_cache=1 | |
7566 | fi | |
7567 | ||
7568 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
a0b9e27f MB |
7569 | |
7570 | fi | |
9f41d601 RR |
7571 | |
7572 | ||
7573 | eval "$ac_cv_use_popupwin" | |
7574 | if test "$no_cache" != 1; then | |
7575 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
7576 | fi | |
7577 | ||
7578 | if test "$wxUSE_POPUPWIN" = yes; then | |
a0b9e27f | 7579 | echo "$ac_t""yes" 1>&6 |
9f41d601 | 7580 | else |
a0b9e27f | 7581 | echo "$ac_t""no" 1>&6 |
9f41d601 | 7582 | fi |
a0b9e27f | 7583 | |
52127426 | 7584 | |
8284b0c5 MB |
7585 | |
7586 | ||
5005acfe VZ |
7587 | enablestring= |
7588 | echo $ac_n "checking for --${enablestring:-enable}-commondlg""... $ac_c" 1>&6 | |
ac0c4cc3 | 7589 | echo "configure:7590: checking for --${enablestring:-enable}-commondlg" >&5 |
1e6feb95 VZ |
7590 | no_cache=0 |
7591 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
7592 | if test "${enable_commondlg+set}" = set; then | |
7593 | enableval="$enable_commondlg" | |
a0b9e27f | 7594 | |
1e6feb95 VZ |
7595 | if test "$enableval" = yes; then |
7596 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
7597 | else | |
7598 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
7599 | fi | |
a0b9e27f | 7600 | |
1e6feb95 | 7601 | else |
a0b9e27f | 7602 | |
1e6feb95 VZ |
7603 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` |
7604 | if test "x$LINE" != x ; then | |
7605 | eval "DEFAULT_$LINE" | |
7606 | else | |
7607 | no_cache=1 | |
7608 | fi | |
7609 | ||
7610 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
a0b9e27f MB |
7611 | |
7612 | fi | |
1e6feb95 VZ |
7613 | |
7614 | ||
7615 | eval "$ac_cv_use_commondlg" | |
7616 | if test "$no_cache" != 1; then | |
7617 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
7618 | fi | |
7619 | ||
7620 | if test "$wxUSE_COMMONDLGS" = yes; then | |
a0b9e27f | 7621 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7622 | else |
a0b9e27f | 7623 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7624 | fi |
a0b9e27f | 7625 | |
1e6feb95 | 7626 | |
5005acfe VZ |
7627 | enablestring= |
7628 | echo $ac_n "checking for --${enablestring:-enable}-choicedlg""... $ac_c" 1>&6 | |
ac0c4cc3 | 7629 | echo "configure:7630: checking for --${enablestring:-enable}-choicedlg" >&5 |
1e6feb95 VZ |
7630 | no_cache=0 |
7631 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
7632 | if test "${enable_choicedlg+set}" = set; then | |
7633 | enableval="$enable_choicedlg" | |
a0b9e27f | 7634 | |
1e6feb95 VZ |
7635 | if test "$enableval" = yes; then |
7636 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
7637 | else | |
7638 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
7639 | fi | |
a0b9e27f | 7640 | |
1e6feb95 | 7641 | else |
a0b9e27f | 7642 | |
1e6feb95 VZ |
7643 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` |
7644 | if test "x$LINE" != x ; then | |
7645 | eval "DEFAULT_$LINE" | |
7646 | else | |
7647 | no_cache=1 | |
7648 | fi | |
7649 | ||
7650 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
a0b9e27f MB |
7651 | |
7652 | fi | |
1e6feb95 VZ |
7653 | |
7654 | ||
7655 | eval "$ac_cv_use_choicedlg" | |
7656 | if test "$no_cache" != 1; then | |
7657 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
7658 | fi | |
7659 | ||
7660 | if test "$wxUSE_CHOICEDLG" = yes; then | |
a0b9e27f | 7661 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7662 | else |
a0b9e27f | 7663 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7664 | fi |
a0b9e27f | 7665 | |
1e6feb95 | 7666 | |
5005acfe VZ |
7667 | enablestring= |
7668 | echo $ac_n "checking for --${enablestring:-enable}-coldlg""... $ac_c" 1>&6 | |
ac0c4cc3 | 7669 | echo "configure:7670: checking for --${enablestring:-enable}-coldlg" >&5 |
1e6feb95 VZ |
7670 | no_cache=0 |
7671 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
7672 | if test "${enable_coldlg+set}" = set; then | |
7673 | enableval="$enable_coldlg" | |
a0b9e27f | 7674 | |
1e6feb95 VZ |
7675 | if test "$enableval" = yes; then |
7676 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
7677 | else | |
7678 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
7679 | fi | |
a0b9e27f | 7680 | |
1e6feb95 | 7681 | else |
a0b9e27f | 7682 | |
1e6feb95 VZ |
7683 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` |
7684 | if test "x$LINE" != x ; then | |
7685 | eval "DEFAULT_$LINE" | |
7686 | else | |
7687 | no_cache=1 | |
7688 | fi | |
7689 | ||
7690 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
a0b9e27f MB |
7691 | |
7692 | fi | |
1e6feb95 VZ |
7693 | |
7694 | ||
7695 | eval "$ac_cv_use_coldlg" | |
7696 | if test "$no_cache" != 1; then | |
7697 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
7698 | fi | |
7699 | ||
7700 | if test "$wxUSE_COLOURDLG" = yes; then | |
a0b9e27f | 7701 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7702 | else |
a0b9e27f | 7703 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7704 | fi |
a0b9e27f | 7705 | |
1e6feb95 | 7706 | |
5005acfe VZ |
7707 | enablestring= |
7708 | echo $ac_n "checking for --${enablestring:-enable}-filedlg""... $ac_c" 1>&6 | |
ac0c4cc3 | 7709 | echo "configure:7710: checking for --${enablestring:-enable}-filedlg" >&5 |
1e6feb95 VZ |
7710 | no_cache=0 |
7711 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
7712 | if test "${enable_filedlg+set}" = set; then | |
7713 | enableval="$enable_filedlg" | |
a0b9e27f | 7714 | |
1e6feb95 VZ |
7715 | if test "$enableval" = yes; then |
7716 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
7717 | else | |
7718 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
7719 | fi | |
a0b9e27f | 7720 | |
1e6feb95 | 7721 | else |
a0b9e27f | 7722 | |
1e6feb95 VZ |
7723 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` |
7724 | if test "x$LINE" != x ; then | |
7725 | eval "DEFAULT_$LINE" | |
7726 | else | |
7727 | no_cache=1 | |
7728 | fi | |
7729 | ||
7730 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
a0b9e27f MB |
7731 | |
7732 | fi | |
1e6feb95 VZ |
7733 | |
7734 | ||
7735 | eval "$ac_cv_use_filedlg" | |
7736 | if test "$no_cache" != 1; then | |
7737 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
7738 | fi | |
7739 | ||
7740 | if test "$wxUSE_FILEDLG" = yes; then | |
a0b9e27f | 7741 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7742 | else |
a0b9e27f | 7743 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7744 | fi |
a0b9e27f | 7745 | |
1e6feb95 | 7746 | |
5005acfe VZ |
7747 | enablestring= |
7748 | echo $ac_n "checking for --${enablestring:-enable}-finddlg""... $ac_c" 1>&6 | |
ac0c4cc3 | 7749 | echo "configure:7750: checking for --${enablestring:-enable}-finddlg" >&5 |
8db37e06 | 7750 | no_cache=0 |
69d27ff7 MB |
7751 | # Check whether --enable-finddlg or --disable-finddlg was given. |
7752 | if test "${enable_finddlg+set}" = set; then | |
7753 | enableval="$enable_finddlg" | |
a0b9e27f | 7754 | |
8db37e06 | 7755 | if test "$enableval" = yes; then |
69d27ff7 | 7756 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 7757 | else |
69d27ff7 | 7758 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 | 7759 | fi |
a0b9e27f | 7760 | |
8db37e06 | 7761 | else |
a0b9e27f | 7762 | |
8db37e06 VZ |
7763 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` |
7764 | if test "x$LINE" != x ; then | |
7765 | eval "DEFAULT_$LINE" | |
7766 | else | |
7767 | no_cache=1 | |
7768 | fi | |
7769 | ||
69d27ff7 | 7770 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
a0b9e27f MB |
7771 | |
7772 | fi | |
8db37e06 VZ |
7773 | |
7774 | ||
69d27ff7 | 7775 | eval "$ac_cv_use_finddlg" |
8db37e06 | 7776 | if test "$no_cache" != 1; then |
69d27ff7 | 7777 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
7778 | fi |
7779 | ||
7780 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
a0b9e27f | 7781 | echo "$ac_t""yes" 1>&6 |
8db37e06 | 7782 | else |
a0b9e27f | 7783 | echo "$ac_t""no" 1>&6 |
8db37e06 | 7784 | fi |
a0b9e27f | 7785 | |
8db37e06 | 7786 | |
5005acfe VZ |
7787 | enablestring= |
7788 | echo $ac_n "checking for --${enablestring:-enable}-fontdlg""... $ac_c" 1>&6 | |
ac0c4cc3 | 7789 | echo "configure:7790: checking for --${enablestring:-enable}-fontdlg" >&5 |
1e6feb95 VZ |
7790 | no_cache=0 |
7791 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
7792 | if test "${enable_fontdlg+set}" = set; then | |
7793 | enableval="$enable_fontdlg" | |
a0b9e27f | 7794 | |
1e6feb95 VZ |
7795 | if test "$enableval" = yes; then |
7796 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
7797 | else | |
7798 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
7799 | fi | |
a0b9e27f | 7800 | |
1e6feb95 | 7801 | else |
a0b9e27f | 7802 | |
1e6feb95 VZ |
7803 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` |
7804 | if test "x$LINE" != x ; then | |
7805 | eval "DEFAULT_$LINE" | |
7806 | else | |
7807 | no_cache=1 | |
7808 | fi | |
7809 | ||
7810 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
a0b9e27f MB |
7811 | |
7812 | fi | |
1e6feb95 VZ |
7813 | |
7814 | ||
7815 | eval "$ac_cv_use_fontdlg" | |
7816 | if test "$no_cache" != 1; then | |
7817 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
7818 | fi | |
7819 | ||
7820 | if test "$wxUSE_FONTDLG" = yes; then | |
a0b9e27f | 7821 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7822 | else |
a0b9e27f | 7823 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7824 | fi |
a0b9e27f | 7825 | |
1e6feb95 | 7826 | |
5005acfe VZ |
7827 | enablestring= |
7828 | echo $ac_n "checking for --${enablestring:-enable}-dirdlg""... $ac_c" 1>&6 | |
ac0c4cc3 | 7829 | echo "configure:7830: checking for --${enablestring:-enable}-dirdlg" >&5 |
1e6feb95 VZ |
7830 | no_cache=0 |
7831 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
7832 | if test "${enable_dirdlg+set}" = set; then | |
7833 | enableval="$enable_dirdlg" | |
a0b9e27f | 7834 | |
1e6feb95 VZ |
7835 | if test "$enableval" = yes; then |
7836 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
7837 | else | |
7838 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
7839 | fi | |
a0b9e27f | 7840 | |
1e6feb95 | 7841 | else |
a0b9e27f | 7842 | |
1e6feb95 VZ |
7843 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` |
7844 | if test "x$LINE" != x ; then | |
7845 | eval "DEFAULT_$LINE" | |
7846 | else | |
7847 | no_cache=1 | |
7848 | fi | |
7849 | ||
7850 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
a0b9e27f MB |
7851 | |
7852 | fi | |
1e6feb95 VZ |
7853 | |
7854 | ||
7855 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 7856 | if test "$no_cache" != 1; then |
1e6feb95 | 7857 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7858 | fi |
7859 | ||
1e6feb95 | 7860 | if test "$wxUSE_DIRDLG" = yes; then |
a0b9e27f | 7861 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7862 | else |
a0b9e27f | 7863 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7864 | fi |
a0b9e27f | 7865 | |
698dcdb6 | 7866 | |
5005acfe VZ |
7867 | enablestring= |
7868 | echo $ac_n "checking for --${enablestring:-enable}-msgdlg""... $ac_c" 1>&6 | |
ac0c4cc3 | 7869 | echo "configure:7870: checking for --${enablestring:-enable}-msgdlg" >&5 |
10f2d63a | 7870 | no_cache=0 |
1e6feb95 VZ |
7871 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
7872 | if test "${enable_msgdlg+set}" = set; then | |
7873 | enableval="$enable_msgdlg" | |
a0b9e27f | 7874 | |
10f2d63a | 7875 | if test "$enableval" = yes; then |
1e6feb95 | 7876 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 7877 | else |
1e6feb95 | 7878 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 7879 | fi |
a0b9e27f | 7880 | |
10f2d63a | 7881 | else |
a0b9e27f | 7882 | |
1e6feb95 | 7883 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7884 | if test "x$LINE" != x ; then |
7885 | eval "DEFAULT_$LINE" | |
7886 | else | |
7887 | no_cache=1 | |
7888 | fi | |
7889 | ||
1e6feb95 | 7890 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
a0b9e27f MB |
7891 | |
7892 | fi | |
10f2d63a VZ |
7893 | |
7894 | ||
1e6feb95 | 7895 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 7896 | if test "$no_cache" != 1; then |
1e6feb95 | 7897 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7898 | fi |
7899 | ||
1e6feb95 | 7900 | if test "$wxUSE_MSGDLG" = yes; then |
a0b9e27f | 7901 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7902 | else |
a0b9e27f | 7903 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7904 | fi |
a0b9e27f | 7905 | |
10f2d63a | 7906 | |
5005acfe VZ |
7907 | enablestring= |
7908 | echo $ac_n "checking for --${enablestring:-enable}-numberdlg""... $ac_c" 1>&6 | |
ac0c4cc3 | 7909 | echo "configure:7910: checking for --${enablestring:-enable}-numberdlg" >&5 |
10f2d63a | 7910 | no_cache=0 |
1e6feb95 VZ |
7911 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
7912 | if test "${enable_numberdlg+set}" = set; then | |
7913 | enableval="$enable_numberdlg" | |
a0b9e27f | 7914 | |
10f2d63a | 7915 | if test "$enableval" = yes; then |
1e6feb95 | 7916 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 7917 | else |
1e6feb95 | 7918 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 7919 | fi |
a0b9e27f | 7920 | |
10f2d63a | 7921 | else |
a0b9e27f | 7922 | |
1e6feb95 | 7923 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7924 | if test "x$LINE" != x ; then |
7925 | eval "DEFAULT_$LINE" | |
7926 | else | |
7927 | no_cache=1 | |
7928 | fi | |
7929 | ||
1e6feb95 | 7930 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
a0b9e27f MB |
7931 | |
7932 | fi | |
10f2d63a VZ |
7933 | |
7934 | ||
1e6feb95 | 7935 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 7936 | if test "$no_cache" != 1; then |
1e6feb95 | 7937 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7938 | fi |
7939 | ||
1e6feb95 | 7940 | if test "$wxUSE_NUMBERDLG" = yes; then |
a0b9e27f | 7941 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7942 | else |
a0b9e27f | 7943 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7944 | fi |
a0b9e27f | 7945 | |
10f2d63a | 7946 | |
5005acfe VZ |
7947 | enablestring= |
7948 | echo $ac_n "checking for --${enablestring:-enable}-splash""... $ac_c" 1>&6 | |
ac0c4cc3 | 7949 | echo "configure:7950: checking for --${enablestring:-enable}-splash" >&5 |
cbca9943 VZ |
7950 | no_cache=0 |
7951 | # Check whether --enable-splash or --disable-splash was given. | |
7952 | if test "${enable_splash+set}" = set; then | |
7953 | enableval="$enable_splash" | |
a0b9e27f | 7954 | |
cbca9943 VZ |
7955 | if test "$enableval" = yes; then |
7956 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
7957 | else | |
7958 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
7959 | fi | |
a0b9e27f | 7960 | |
cbca9943 | 7961 | else |
a0b9e27f | 7962 | |
cbca9943 VZ |
7963 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` |
7964 | if test "x$LINE" != x ; then | |
7965 | eval "DEFAULT_$LINE" | |
7966 | else | |
7967 | no_cache=1 | |
7968 | fi | |
7969 | ||
7970 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
a0b9e27f MB |
7971 | |
7972 | fi | |
cbca9943 VZ |
7973 | |
7974 | ||
7975 | eval "$ac_cv_use_splash" | |
7976 | if test "$no_cache" != 1; then | |
7977 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
7978 | fi | |
7979 | ||
7980 | if test "$wxUSE_SPLASH" = yes; then | |
a0b9e27f | 7981 | echo "$ac_t""yes" 1>&6 |
cbca9943 | 7982 | else |
a0b9e27f | 7983 | echo "$ac_t""no" 1>&6 |
cbca9943 | 7984 | fi |
a0b9e27f | 7985 | |
cbca9943 | 7986 | |
5005acfe VZ |
7987 | enablestring= |
7988 | echo $ac_n "checking for --${enablestring:-enable}-textdlg""... $ac_c" 1>&6 | |
ac0c4cc3 | 7989 | echo "configure:7990: checking for --${enablestring:-enable}-textdlg" >&5 |
10f2d63a VZ |
7990 | no_cache=0 |
7991 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
7992 | if test "${enable_textdlg+set}" = set; then | |
7993 | enableval="$enable_textdlg" | |
a0b9e27f | 7994 | |
10f2d63a VZ |
7995 | if test "$enableval" = yes; then |
7996 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
7997 | else | |
7998 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
7999 | fi | |
a0b9e27f | 8000 | |
10f2d63a | 8001 | else |
a0b9e27f | 8002 | |
10f2d63a VZ |
8003 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
8004 | if test "x$LINE" != x ; then | |
8005 | eval "DEFAULT_$LINE" | |
8006 | else | |
8007 | no_cache=1 | |
8008 | fi | |
8009 | ||
8010 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
a0b9e27f MB |
8011 | |
8012 | fi | |
10f2d63a VZ |
8013 | |
8014 | ||
8015 | eval "$ac_cv_use_textdlg" | |
8016 | if test "$no_cache" != 1; then | |
8017 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
8018 | fi | |
8019 | ||
8020 | if test "$wxUSE_TEXTDLG" = yes; then | |
a0b9e27f | 8021 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8022 | else |
a0b9e27f | 8023 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8024 | fi |
a0b9e27f | 8025 | |
10f2d63a | 8026 | |
5005acfe VZ |
8027 | enablestring= |
8028 | echo $ac_n "checking for --${enablestring:-enable}-tipdlg""... $ac_c" 1>&6 | |
ac0c4cc3 | 8029 | echo "configure:8030: checking for --${enablestring:-enable}-tipdlg" >&5 |
10f2d63a VZ |
8030 | no_cache=0 |
8031 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
8032 | if test "${enable_tipdlg+set}" = set; then | |
8033 | enableval="$enable_tipdlg" | |
a0b9e27f | 8034 | |
10f2d63a VZ |
8035 | if test "$enableval" = yes; then |
8036 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
8037 | else | |
8038 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
8039 | fi | |
a0b9e27f | 8040 | |
10f2d63a | 8041 | else |
a0b9e27f | 8042 | |
10f2d63a VZ |
8043 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
8044 | if test "x$LINE" != x ; then | |
8045 | eval "DEFAULT_$LINE" | |
8046 | else | |
8047 | no_cache=1 | |
8048 | fi | |
8049 | ||
8050 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
a0b9e27f MB |
8051 | |
8052 | fi | |
10f2d63a VZ |
8053 | |
8054 | ||
8055 | eval "$ac_cv_use_tipdlg" | |
8056 | if test "$no_cache" != 1; then | |
8057 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
8058 | fi | |
8059 | ||
8060 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
a0b9e27f | 8061 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8062 | else |
a0b9e27f | 8063 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8064 | fi |
a0b9e27f | 8065 | |
10f2d63a | 8066 | |
5005acfe VZ |
8067 | enablestring= |
8068 | echo $ac_n "checking for --${enablestring:-enable}-progressdlg""... $ac_c" 1>&6 | |
ac0c4cc3 | 8069 | echo "configure:8070: checking for --${enablestring:-enable}-progressdlg" >&5 |
10f2d63a VZ |
8070 | no_cache=0 |
8071 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
8072 | if test "${enable_progressdlg+set}" = set; then | |
8073 | enableval="$enable_progressdlg" | |
a0b9e27f | 8074 | |
10f2d63a VZ |
8075 | if test "$enableval" = yes; then |
8076 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
8077 | else | |
8078 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
8079 | fi | |
a0b9e27f | 8080 | |
10f2d63a | 8081 | else |
a0b9e27f | 8082 | |
10f2d63a VZ |
8083 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
8084 | if test "x$LINE" != x ; then | |
8085 | eval "DEFAULT_$LINE" | |
8086 | else | |
8087 | no_cache=1 | |
8088 | fi | |
8089 | ||
8090 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
a0b9e27f MB |
8091 | |
8092 | fi | |
10f2d63a VZ |
8093 | |
8094 | ||
8095 | eval "$ac_cv_use_progressdlg" | |
8096 | if test "$no_cache" != 1; then | |
8097 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
8098 | fi | |
8099 | ||
8100 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
a0b9e27f | 8101 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8102 | else |
a0b9e27f | 8103 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8104 | fi |
a0b9e27f | 8105 | |
10f2d63a | 8106 | |
5005acfe VZ |
8107 | enablestring= |
8108 | echo $ac_n "checking for --${enablestring:-enable}-wizarddlg""... $ac_c" 1>&6 | |
ac0c4cc3 | 8109 | echo "configure:8110: checking for --${enablestring:-enable}-wizarddlg" >&5 |
b1f5d087 VZ |
8110 | no_cache=0 |
8111 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
8112 | if test "${enable_wizarddlg+set}" = set; then | |
8113 | enableval="$enable_wizarddlg" | |
a0b9e27f | 8114 | |
b1f5d087 VZ |
8115 | if test "$enableval" = yes; then |
8116 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
8117 | else | |
8118 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
8119 | fi | |
a0b9e27f | 8120 | |
b1f5d087 | 8121 | else |
a0b9e27f | 8122 | |
b1f5d087 VZ |
8123 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` |
8124 | if test "x$LINE" != x ; then | |
8125 | eval "DEFAULT_$LINE" | |
8126 | else | |
8127 | no_cache=1 | |
8128 | fi | |
8129 | ||
8130 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
a0b9e27f MB |
8131 | |
8132 | fi | |
b1f5d087 VZ |
8133 | |
8134 | ||
8135 | eval "$ac_cv_use_wizarddlg" | |
8136 | if test "$no_cache" != 1; then | |
8137 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
8138 | fi | |
8139 | ||
8140 | if test "$wxUSE_WIZARDDLG" = yes; then | |
a0b9e27f | 8141 | echo "$ac_t""yes" 1>&6 |
b1f5d087 | 8142 | else |
a0b9e27f | 8143 | echo "$ac_t""no" 1>&6 |
b1f5d087 | 8144 | fi |
a0b9e27f | 8145 | |
8284b0c5 MB |
8146 | |
8147 | ||
52127426 | 8148 | |
5005acfe VZ |
8149 | enablestring= |
8150 | echo $ac_n "checking for --${enablestring:-enable}-menus""... $ac_c" 1>&6 | |
ac0c4cc3 | 8151 | echo "configure:8152: checking for --${enablestring:-enable}-menus" >&5 |
1e6feb95 VZ |
8152 | no_cache=0 |
8153 | # Check whether --enable-menus or --disable-menus was given. | |
8154 | if test "${enable_menus+set}" = set; then | |
8155 | enableval="$enable_menus" | |
a0b9e27f | 8156 | |
1e6feb95 VZ |
8157 | if test "$enableval" = yes; then |
8158 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
8159 | else | |
8160 | ac_cv_use_menus='wxUSE_MENUS=no' | |
8161 | fi | |
a0b9e27f | 8162 | |
1e6feb95 | 8163 | else |
a0b9e27f | 8164 | |
1e6feb95 VZ |
8165 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` |
8166 | if test "x$LINE" != x ; then | |
8167 | eval "DEFAULT_$LINE" | |
8168 | else | |
8169 | no_cache=1 | |
8170 | fi | |
8171 | ||
8172 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
a0b9e27f MB |
8173 | |
8174 | fi | |
1e6feb95 VZ |
8175 | |
8176 | ||
8177 | eval "$ac_cv_use_menus" | |
8178 | if test "$no_cache" != 1; then | |
8179 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
8180 | fi | |
8181 | ||
8182 | if test "$wxUSE_MENUS" = yes; then | |
a0b9e27f | 8183 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 8184 | else |
a0b9e27f | 8185 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 8186 | fi |
a0b9e27f | 8187 | |
1e6feb95 | 8188 | |
5005acfe VZ |
8189 | enablestring= |
8190 | echo $ac_n "checking for --${enablestring:-enable}-miniframe""... $ac_c" 1>&6 | |
ac0c4cc3 | 8191 | echo "configure:8192: checking for --${enablestring:-enable}-miniframe" >&5 |
10f2d63a VZ |
8192 | no_cache=0 |
8193 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
8194 | if test "${enable_miniframe+set}" = set; then | |
8195 | enableval="$enable_miniframe" | |
a0b9e27f | 8196 | |
10f2d63a VZ |
8197 | if test "$enableval" = yes; then |
8198 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
8199 | else | |
8200 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
8201 | fi | |
a0b9e27f | 8202 | |
10f2d63a | 8203 | else |
a0b9e27f | 8204 | |
10f2d63a VZ |
8205 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
8206 | if test "x$LINE" != x ; then | |
8207 | eval "DEFAULT_$LINE" | |
8208 | else | |
8209 | no_cache=1 | |
8210 | fi | |
8211 | ||
8212 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
a0b9e27f MB |
8213 | |
8214 | fi | |
10f2d63a VZ |
8215 | |
8216 | ||
8217 | eval "$ac_cv_use_miniframe" | |
8218 | if test "$no_cache" != 1; then | |
8219 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
8220 | fi | |
8221 | ||
8222 | if test "$wxUSE_MINIFRAME" = yes; then | |
a0b9e27f | 8223 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8224 | else |
a0b9e27f | 8225 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8226 | fi |
a0b9e27f | 8227 | |
10f2d63a | 8228 | |
5005acfe VZ |
8229 | enablestring= |
8230 | echo $ac_n "checking for --${enablestring:-enable}-tooltips""... $ac_c" 1>&6 | |
ac0c4cc3 | 8231 | echo "configure:8232: checking for --${enablestring:-enable}-tooltips" >&5 |
10f2d63a VZ |
8232 | no_cache=0 |
8233 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
8234 | if test "${enable_tooltips+set}" = set; then | |
8235 | enableval="$enable_tooltips" | |
a0b9e27f | 8236 | |
10f2d63a VZ |
8237 | if test "$enableval" = yes; then |
8238 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
8239 | else | |
8240 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
8241 | fi | |
a0b9e27f | 8242 | |
10f2d63a | 8243 | else |
a0b9e27f | 8244 | |
10f2d63a VZ |
8245 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
8246 | if test "x$LINE" != x ; then | |
8247 | eval "DEFAULT_$LINE" | |
8248 | else | |
8249 | no_cache=1 | |
8250 | fi | |
8251 | ||
8252 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
a0b9e27f MB |
8253 | |
8254 | fi | |
10f2d63a VZ |
8255 | |
8256 | ||
8257 | eval "$ac_cv_use_tooltips" | |
8258 | if test "$no_cache" != 1; then | |
8259 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
8260 | fi | |
8261 | ||
8262 | if test "$wxUSE_TOOLTIPS" = yes; then | |
a0b9e27f | 8263 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8264 | else |
a0b9e27f | 8265 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8266 | fi |
a0b9e27f | 8267 | |
10f2d63a | 8268 | |
5005acfe VZ |
8269 | enablestring= |
8270 | echo $ac_n "checking for --${enablestring:-enable}-splines""... $ac_c" 1>&6 | |
ac0c4cc3 | 8271 | echo "configure:8272: checking for --${enablestring:-enable}-splines" >&5 |
10f2d63a VZ |
8272 | no_cache=0 |
8273 | # Check whether --enable-splines or --disable-splines was given. | |
8274 | if test "${enable_splines+set}" = set; then | |
8275 | enableval="$enable_splines" | |
a0b9e27f | 8276 | |
10f2d63a VZ |
8277 | if test "$enableval" = yes; then |
8278 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
8279 | else | |
8280 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
8281 | fi | |
a0b9e27f | 8282 | |
10f2d63a | 8283 | else |
a0b9e27f | 8284 | |
10f2d63a VZ |
8285 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
8286 | if test "x$LINE" != x ; then | |
8287 | eval "DEFAULT_$LINE" | |
8288 | else | |
8289 | no_cache=1 | |
8290 | fi | |
8291 | ||
8292 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
a0b9e27f MB |
8293 | |
8294 | fi | |
10f2d63a VZ |
8295 | |
8296 | ||
8297 | eval "$ac_cv_use_splines" | |
8298 | if test "$no_cache" != 1; then | |
8299 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
8300 | fi | |
8301 | ||
8302 | if test "$wxUSE_SPLINES" = yes; then | |
a0b9e27f | 8303 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8304 | else |
a0b9e27f | 8305 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8306 | fi |
a0b9e27f | 8307 | |
10f2d63a | 8308 | |
5005acfe VZ |
8309 | enablestring= |
8310 | echo $ac_n "checking for --${enablestring:-enable}-validators""... $ac_c" 1>&6 | |
ac0c4cc3 | 8311 | echo "configure:8312: checking for --${enablestring:-enable}-validators" >&5 |
10f2d63a VZ |
8312 | no_cache=0 |
8313 | # Check whether --enable-validators or --disable-validators was given. | |
8314 | if test "${enable_validators+set}" = set; then | |
8315 | enableval="$enable_validators" | |
a0b9e27f | 8316 | |
10f2d63a VZ |
8317 | if test "$enableval" = yes; then |
8318 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
8319 | else | |
8320 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
8321 | fi | |
a0b9e27f | 8322 | |
10f2d63a | 8323 | else |
a0b9e27f | 8324 | |
10f2d63a VZ |
8325 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
8326 | if test "x$LINE" != x ; then | |
8327 | eval "DEFAULT_$LINE" | |
8328 | else | |
8329 | no_cache=1 | |
8330 | fi | |
8331 | ||
8332 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
a0b9e27f MB |
8333 | |
8334 | fi | |
10f2d63a VZ |
8335 | |
8336 | ||
8337 | eval "$ac_cv_use_validators" | |
8338 | if test "$no_cache" != 1; then | |
8339 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
8340 | fi | |
8341 | ||
8342 | if test "$wxUSE_VALIDATORS" = yes; then | |
a0b9e27f | 8343 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8344 | else |
a0b9e27f | 8345 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8346 | fi |
a0b9e27f | 8347 | |
10f2d63a | 8348 | |
5005acfe VZ |
8349 | enablestring= |
8350 | echo $ac_n "checking for --${enablestring:-enable}-busyinfo""... $ac_c" 1>&6 | |
ac0c4cc3 | 8351 | echo "configure:8352: checking for --${enablestring:-enable}-busyinfo" >&5 |
10f2d63a VZ |
8352 | no_cache=0 |
8353 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
8354 | if test "${enable_busyinfo+set}" = set; then | |
8355 | enableval="$enable_busyinfo" | |
a0b9e27f | 8356 | |
10f2d63a VZ |
8357 | if test "$enableval" = yes; then |
8358 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
8359 | else | |
8360 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
8361 | fi | |
a0b9e27f | 8362 | |
10f2d63a | 8363 | else |
a0b9e27f | 8364 | |
10f2d63a VZ |
8365 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
8366 | if test "x$LINE" != x ; then | |
8367 | eval "DEFAULT_$LINE" | |
8368 | else | |
8369 | no_cache=1 | |
8370 | fi | |
8371 | ||
8372 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
a0b9e27f MB |
8373 | |
8374 | fi | |
10f2d63a VZ |
8375 | |
8376 | ||
8377 | eval "$ac_cv_use_busyinfo" | |
8378 | if test "$no_cache" != 1; then | |
8379 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
8380 | fi | |
8381 | ||
8382 | if test "$wxUSE_BUSYINFO" = yes; then | |
a0b9e27f | 8383 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8384 | else |
a0b9e27f | 8385 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8386 | fi |
a0b9e27f | 8387 | |
10f2d63a | 8388 | |
5005acfe VZ |
8389 | enablestring= |
8390 | echo $ac_n "checking for --${enablestring:-enable}-joystick""... $ac_c" 1>&6 | |
ac0c4cc3 | 8391 | echo "configure:8392: checking for --${enablestring:-enable}-joystick" >&5 |
f6bcfd97 BP |
8392 | no_cache=0 |
8393 | # Check whether --enable-joystick or --disable-joystick was given. | |
8394 | if test "${enable_joystick+set}" = set; then | |
8395 | enableval="$enable_joystick" | |
a0b9e27f | 8396 | |
f6bcfd97 BP |
8397 | if test "$enableval" = yes; then |
8398 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
8399 | else | |
8400 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
8401 | fi | |
a0b9e27f | 8402 | |
f6bcfd97 | 8403 | else |
a0b9e27f | 8404 | |
f6bcfd97 BP |
8405 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
8406 | if test "x$LINE" != x ; then | |
8407 | eval "DEFAULT_$LINE" | |
8408 | else | |
8409 | no_cache=1 | |
8410 | fi | |
8411 | ||
8412 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
a0b9e27f MB |
8413 | |
8414 | fi | |
f6bcfd97 BP |
8415 | |
8416 | ||
8417 | eval "$ac_cv_use_joystick" | |
8418 | if test "$no_cache" != 1; then | |
8419 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
8420 | fi | |
8421 | ||
8422 | if test "$wxUSE_JOYSTICK" = yes; then | |
a0b9e27f | 8423 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 8424 | else |
a0b9e27f | 8425 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 8426 | fi |
a0b9e27f | 8427 | |
698dcdb6 | 8428 | |
5005acfe VZ |
8429 | enablestring= |
8430 | echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6 | |
ac0c4cc3 | 8431 | echo "configure:8432: checking for --${enablestring:-enable}-metafile" >&5 |
1e6feb95 VZ |
8432 | no_cache=0 |
8433 | # Check whether --enable-metafile or --disable-metafile was given. | |
8434 | if test "${enable_metafile+set}" = set; then | |
8435 | enableval="$enable_metafile" | |
a0b9e27f | 8436 | |
1e6feb95 VZ |
8437 | if test "$enableval" = yes; then |
8438 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
8439 | else | |
8440 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
8441 | fi | |
a0b9e27f | 8442 | |
1e6feb95 | 8443 | else |
a0b9e27f | 8444 | |
1e6feb95 VZ |
8445 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
8446 | if test "x$LINE" != x ; then | |
8447 | eval "DEFAULT_$LINE" | |
8448 | else | |
8449 | no_cache=1 | |
8450 | fi | |
8451 | ||
8452 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
a0b9e27f MB |
8453 | |
8454 | fi | |
1e6feb95 VZ |
8455 | |
8456 | ||
8457 | eval "$ac_cv_use_metafile" | |
8458 | if test "$no_cache" != 1; then | |
8459 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
8460 | fi | |
8461 | ||
8462 | if test "$wxUSE_METAFILE" = yes; then | |
a0b9e27f | 8463 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 8464 | else |
a0b9e27f | 8465 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 8466 | fi |
a0b9e27f | 8467 | |
1e6feb95 | 8468 | |
5005acfe VZ |
8469 | enablestring= |
8470 | echo $ac_n "checking for --${enablestring:-enable}-dragimage""... $ac_c" 1>&6 | |
ac0c4cc3 | 8471 | echo "configure:8472: checking for --${enablestring:-enable}-dragimage" >&5 |
24fd6d87 VZ |
8472 | no_cache=0 |
8473 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
8474 | if test "${enable_dragimage+set}" = set; then | |
8475 | enableval="$enable_dragimage" | |
a0b9e27f | 8476 | |
24fd6d87 VZ |
8477 | if test "$enableval" = yes; then |
8478 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
8479 | else | |
8480 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
8481 | fi | |
a0b9e27f | 8482 | |
24fd6d87 | 8483 | else |
a0b9e27f | 8484 | |
24fd6d87 VZ |
8485 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` |
8486 | if test "x$LINE" != x ; then | |
8487 | eval "DEFAULT_$LINE" | |
8488 | else | |
8489 | no_cache=1 | |
8490 | fi | |
8491 | ||
8492 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
a0b9e27f MB |
8493 | |
8494 | fi | |
24fd6d87 VZ |
8495 | |
8496 | ||
8497 | eval "$ac_cv_use_dragimage" | |
8498 | if test "$no_cache" != 1; then | |
8499 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
8500 | fi | |
8501 | ||
8502 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
a0b9e27f | 8503 | echo "$ac_t""yes" 1>&6 |
24fd6d87 | 8504 | else |
a0b9e27f | 8505 | echo "$ac_t""no" 1>&6 |
24fd6d87 | 8506 | fi |
a0b9e27f | 8507 | |
52127426 | 8508 | |
8284b0c5 MB |
8509 | |
8510 | ||
5005acfe VZ |
8511 | enablestring= |
8512 | echo $ac_n "checking for --${enablestring:-enable}-palette""... $ac_c" 1>&6 | |
ac0c4cc3 | 8513 | echo "configure:8514: checking for --${enablestring:-enable}-palette" >&5 |
edae8572 VZ |
8514 | no_cache=0 |
8515 | # Check whether --enable-palette or --disable-palette was given. | |
8516 | if test "${enable_palette+set}" = set; then | |
8517 | enableval="$enable_palette" | |
a0b9e27f | 8518 | |
edae8572 VZ |
8519 | if test "$enableval" = yes; then |
8520 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
8521 | else | |
8522 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
8523 | fi | |
a0b9e27f | 8524 | |
edae8572 | 8525 | else |
a0b9e27f | 8526 | |
edae8572 VZ |
8527 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` |
8528 | if test "x$LINE" != x ; then | |
8529 | eval "DEFAULT_$LINE" | |
8530 | else | |
8531 | no_cache=1 | |
8532 | fi | |
8533 | ||
8534 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
a0b9e27f MB |
8535 | |
8536 | fi | |
edae8572 VZ |
8537 | |
8538 | ||
8539 | eval "$ac_cv_use_palette" | |
8540 | if test "$no_cache" != 1; then | |
8541 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
8542 | fi | |
8543 | ||
8544 | if test "$wxUSE_PALETTE" = yes; then | |
a0b9e27f | 8545 | echo "$ac_t""yes" 1>&6 |
edae8572 | 8546 | else |
a0b9e27f | 8547 | echo "$ac_t""no" 1>&6 |
edae8572 | 8548 | fi |
a0b9e27f | 8549 | |
edae8572 | 8550 | |
5005acfe VZ |
8551 | enablestring= |
8552 | echo $ac_n "checking for --${enablestring:-enable}-image""... $ac_c" 1>&6 | |
ac0c4cc3 | 8553 | echo "configure:8554: checking for --${enablestring:-enable}-image" >&5 |
0046ff7c VS |
8554 | no_cache=0 |
8555 | # Check whether --enable-image or --disable-image was given. | |
8556 | if test "${enable_image+set}" = set; then | |
8557 | enableval="$enable_image" | |
a0b9e27f | 8558 | |
0046ff7c VS |
8559 | if test "$enableval" = yes; then |
8560 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
8561 | else | |
8562 | ac_cv_use_image='wxUSE_IMAGE=no' | |
8563 | fi | |
a0b9e27f | 8564 | |
0046ff7c | 8565 | else |
a0b9e27f | 8566 | |
0046ff7c VS |
8567 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
8568 | if test "x$LINE" != x ; then | |
8569 | eval "DEFAULT_$LINE" | |
8570 | else | |
8571 | no_cache=1 | |
8572 | fi | |
8573 | ||
8574 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
a0b9e27f MB |
8575 | |
8576 | fi | |
0046ff7c VS |
8577 | |
8578 | ||
8579 | eval "$ac_cv_use_image" | |
8580 | if test "$no_cache" != 1; then | |
8581 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
8582 | fi | |
8583 | ||
8584 | if test "$wxUSE_IMAGE" = yes; then | |
a0b9e27f | 8585 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8586 | else |
a0b9e27f | 8587 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8588 | fi |
a0b9e27f | 8589 | |
0046ff7c | 8590 | |
5005acfe VZ |
8591 | enablestring= |
8592 | echo $ac_n "checking for --${enablestring:-enable}-gif""... $ac_c" 1>&6 | |
ac0c4cc3 | 8593 | echo "configure:8594: checking for --${enablestring:-enable}-gif" >&5 |
10f2d63a VZ |
8594 | no_cache=0 |
8595 | # Check whether --enable-gif or --disable-gif was given. | |
8596 | if test "${enable_gif+set}" = set; then | |
8597 | enableval="$enable_gif" | |
a0b9e27f | 8598 | |
10f2d63a VZ |
8599 | if test "$enableval" = yes; then |
8600 | ac_cv_use_gif='wxUSE_GIF=yes' | |
8601 | else | |
8602 | ac_cv_use_gif='wxUSE_GIF=no' | |
8603 | fi | |
a0b9e27f | 8604 | |
10f2d63a | 8605 | else |
a0b9e27f | 8606 | |
10f2d63a VZ |
8607 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
8608 | if test "x$LINE" != x ; then | |
8609 | eval "DEFAULT_$LINE" | |
8610 | else | |
8611 | no_cache=1 | |
8612 | fi | |
8613 | ||
8614 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
a0b9e27f MB |
8615 | |
8616 | fi | |
10f2d63a VZ |
8617 | |
8618 | ||
8619 | eval "$ac_cv_use_gif" | |
8620 | if test "$no_cache" != 1; then | |
8621 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
8622 | fi | |
8623 | ||
8624 | if test "$wxUSE_GIF" = yes; then | |
a0b9e27f | 8625 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8626 | else |
a0b9e27f | 8627 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8628 | fi |
a0b9e27f | 8629 | |
10f2d63a | 8630 | |
5005acfe VZ |
8631 | enablestring= |
8632 | echo $ac_n "checking for --${enablestring:-enable}-pcx""... $ac_c" 1>&6 | |
ac0c4cc3 | 8633 | echo "configure:8634: checking for --${enablestring:-enable}-pcx" >&5 |
10f2d63a VZ |
8634 | no_cache=0 |
8635 | # Check whether --enable-pcx or --disable-pcx was given. | |
8636 | if test "${enable_pcx+set}" = set; then | |
8637 | enableval="$enable_pcx" | |
a0b9e27f | 8638 | |
10f2d63a VZ |
8639 | if test "$enableval" = yes; then |
8640 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
8641 | else | |
8642 | ac_cv_use_pcx='wxUSE_PCX=no' | |
8643 | fi | |
a0b9e27f | 8644 | |
10f2d63a | 8645 | else |
a0b9e27f | 8646 | |
10f2d63a VZ |
8647 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
8648 | if test "x$LINE" != x ; then | |
8649 | eval "DEFAULT_$LINE" | |
8650 | else | |
8651 | no_cache=1 | |
8652 | fi | |
8653 | ||
8654 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
a0b9e27f MB |
8655 | |
8656 | fi | |
10f2d63a VZ |
8657 | |
8658 | ||
8659 | eval "$ac_cv_use_pcx" | |
8660 | if test "$no_cache" != 1; then | |
8661 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
8662 | fi | |
8663 | ||
8664 | if test "$wxUSE_PCX" = yes; then | |
a0b9e27f | 8665 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8666 | else |
a0b9e27f | 8667 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8668 | fi |
a0b9e27f | 8669 | |
10f2d63a | 8670 | |
5005acfe VZ |
8671 | enablestring= |
8672 | echo $ac_n "checking for --${enablestring:-enable}-iff""... $ac_c" 1>&6 | |
ac0c4cc3 | 8673 | echo "configure:8674: checking for --${enablestring:-enable}-iff" >&5 |
4b6b4dfc RR |
8674 | no_cache=0 |
8675 | # Check whether --enable-iff or --disable-iff was given. | |
8676 | if test "${enable_iff+set}" = set; then | |
8677 | enableval="$enable_iff" | |
a0b9e27f | 8678 | |
4b6b4dfc RR |
8679 | if test "$enableval" = yes; then |
8680 | ac_cv_use_iff='wxUSE_IFF=yes' | |
8681 | else | |
8682 | ac_cv_use_iff='wxUSE_IFF=no' | |
8683 | fi | |
a0b9e27f | 8684 | |
4b6b4dfc | 8685 | else |
a0b9e27f | 8686 | |
4b6b4dfc RR |
8687 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` |
8688 | if test "x$LINE" != x ; then | |
8689 | eval "DEFAULT_$LINE" | |
8690 | else | |
8691 | no_cache=1 | |
8692 | fi | |
8693 | ||
8694 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
a0b9e27f MB |
8695 | |
8696 | fi | |
4b6b4dfc RR |
8697 | |
8698 | ||
8699 | eval "$ac_cv_use_iff" | |
8700 | if test "$no_cache" != 1; then | |
8701 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
8702 | fi | |
8703 | ||
8704 | if test "$wxUSE_IFF" = yes; then | |
a0b9e27f | 8705 | echo "$ac_t""yes" 1>&6 |
4b6b4dfc | 8706 | else |
a0b9e27f | 8707 | echo "$ac_t""no" 1>&6 |
4b6b4dfc | 8708 | fi |
a0b9e27f | 8709 | |
4b6b4dfc | 8710 | |
5005acfe VZ |
8711 | enablestring= |
8712 | echo $ac_n "checking for --${enablestring:-enable}-pnm""... $ac_c" 1>&6 | |
ac0c4cc3 | 8713 | echo "configure:8714: checking for --${enablestring:-enable}-pnm" >&5 |
10f2d63a VZ |
8714 | no_cache=0 |
8715 | # Check whether --enable-pnm or --disable-pnm was given. | |
8716 | if test "${enable_pnm+set}" = set; then | |
8717 | enableval="$enable_pnm" | |
a0b9e27f | 8718 | |
10f2d63a VZ |
8719 | if test "$enableval" = yes; then |
8720 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
8721 | else | |
8722 | ac_cv_use_pnm='wxUSE_PNM=no' | |
8723 | fi | |
a0b9e27f | 8724 | |
10f2d63a | 8725 | else |
a0b9e27f | 8726 | |
10f2d63a VZ |
8727 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
8728 | if test "x$LINE" != x ; then | |
8729 | eval "DEFAULT_$LINE" | |
8730 | else | |
8731 | no_cache=1 | |
8732 | fi | |
8733 | ||
8734 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
a0b9e27f MB |
8735 | |
8736 | fi | |
10f2d63a VZ |
8737 | |
8738 | ||
8739 | eval "$ac_cv_use_pnm" | |
8740 | if test "$no_cache" != 1; then | |
8741 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
8742 | fi | |
8743 | ||
8744 | if test "$wxUSE_PNM" = yes; then | |
a0b9e27f | 8745 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8746 | else |
a0b9e27f | 8747 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8748 | fi |
a0b9e27f | 8749 | |
10f2d63a | 8750 | |
5005acfe VZ |
8751 | enablestring= |
8752 | echo $ac_n "checking for --${enablestring:-enable}-xpm""... $ac_c" 1>&6 | |
ac0c4cc3 | 8753 | echo "configure:8754: checking for --${enablestring:-enable}-xpm" >&5 |
0046ff7c | 8754 | no_cache=0 |
69d27ff7 MB |
8755 | # Check whether --enable-xpm or --disable-xpm was given. |
8756 | if test "${enable_xpm+set}" = set; then | |
8757 | enableval="$enable_xpm" | |
a0b9e27f | 8758 | |
0046ff7c | 8759 | if test "$enableval" = yes; then |
69d27ff7 | 8760 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 8761 | else |
69d27ff7 | 8762 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 8763 | fi |
a0b9e27f | 8764 | |
0046ff7c | 8765 | else |
a0b9e27f | 8766 | |
0046ff7c VS |
8767 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
8768 | if test "x$LINE" != x ; then | |
8769 | eval "DEFAULT_$LINE" | |
8770 | else | |
8771 | no_cache=1 | |
8772 | fi | |
8773 | ||
69d27ff7 | 8774 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
a0b9e27f MB |
8775 | |
8776 | fi | |
0046ff7c VS |
8777 | |
8778 | ||
69d27ff7 | 8779 | eval "$ac_cv_use_xpm" |
0046ff7c | 8780 | if test "$no_cache" != 1; then |
69d27ff7 | 8781 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
8782 | fi |
8783 | ||
8784 | if test "$wxUSE_XPM" = yes; then | |
a0b9e27f | 8785 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8786 | else |
a0b9e27f | 8787 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8788 | fi |
a0b9e27f | 8789 | |
0046ff7c | 8790 | |
5005acfe VZ |
8791 | enablestring= |
8792 | echo $ac_n "checking for --${enablestring:-enable}-ico_cur""... $ac_c" 1>&6 | |
ac0c4cc3 | 8793 | echo "configure:8794: checking for --${enablestring:-enable}-ico_cur" >&5 |
658974ae | 8794 | no_cache=0 |
c7206e64 VS |
8795 | # Check whether --enable-ico_cur or --disable-ico_cur was given. |
8796 | if test "${enable_ico_cur+set}" = set; then | |
8797 | enableval="$enable_ico_cur" | |
a0b9e27f | 8798 | |
658974ae | 8799 | if test "$enableval" = yes; then |
c7206e64 | 8800 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' |
658974ae | 8801 | else |
c7206e64 | 8802 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' |
658974ae | 8803 | fi |
a0b9e27f | 8804 | |
658974ae | 8805 | else |
a0b9e27f | 8806 | |
658974ae VS |
8807 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` |
8808 | if test "x$LINE" != x ; then | |
8809 | eval "DEFAULT_$LINE" | |
8810 | else | |
8811 | no_cache=1 | |
8812 | fi | |
8813 | ||
c7206e64 | 8814 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR |
a0b9e27f MB |
8815 | |
8816 | fi | |
658974ae VS |
8817 | |
8818 | ||
c7206e64 | 8819 | eval "$ac_cv_use_ico_cur" |
658974ae | 8820 | if test "$no_cache" != 1; then |
c7206e64 | 8821 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp |
658974ae VS |
8822 | fi |
8823 | ||
8824 | if test "$wxUSE_ICO_CUR" = yes; then | |
a0b9e27f | 8825 | echo "$ac_t""yes" 1>&6 |
658974ae | 8826 | else |
a0b9e27f | 8827 | echo "$ac_t""no" 1>&6 |
658974ae | 8828 | fi |
a0b9e27f | 8829 | |
658974ae | 8830 | |
b12915c1 VZ |
8831 | fi |
8832 | ||
d558c907 VS |
8833 | case "${host}" in |
8834 | *-pc-os2_emx | *-pc-os2-emx ) | |
6969f178 MB |
8835 | PATH_IFS=';' |
8836 | LEX_STEM="lexyy" | |
d558c907 VS |
8837 | ;; |
8838 | *) | |
8839 | PATH_IFS=':' | |
8840 | LEX_STEM="lex.yy" | |
8841 | ;; | |
8842 | esac | |
8843 | ||
8284b0c5 MB |
8844 | |
8845 | ||
10f2d63a VZ |
8846 | echo "saving argument cache $wx_arg_cache_file" |
8847 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
a0b9e27f | 8848 | |
52127426 | 8849 | |
8284b0c5 | 8850 | |
a0b9e27f | 8851 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 |
ac0c4cc3 | 8852 | echo "configure:8853: checking for toolkit" >&5 |
89e6bf6d VZ |
8853 | |
8854 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
8855 | if test "$wxUSE_WINE" = "yes"; then | |
8856 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
8857 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
8858 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
8859 | fi | |
10f2d63a VZ |
8860 | |
8861 | if test "$wxUSE_GUI" = "yes"; then | |
8862 | ||
3a922bb4 | 8863 | if test "$USE_BEOS" = 1; then |
a0b9e27f | 8864 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } |
3a922bb4 | 8865 | fi |
b12915c1 | 8866 | |
3a922bb4 RL |
8867 | if test "$TOOLKIT_GIVEN" = 1; then |
8868 | for toolkit in `echo $ALL_TOOLKITS`; do | |
8869 | var=wxUSE_$toolkit | |
8870 | eval "value=\$${var}" | |
8871 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
8872 | done | |
10f2d63a | 8873 | else |
3a922bb4 RL |
8874 | for toolkit in `echo $ALL_TOOLKITS`; do |
8875 | if test "$has_toolkit_in_cache" != 1; then | |
8876 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
8877 | else | |
8878 | var=DEFAULT_wxUSE_$toolkit | |
8879 | fi | |
8880 | eval "wxUSE_$toolkit=\$${var}" | |
8881 | done | |
10f2d63a | 8882 | fi |
10f2d63a | 8883 | |
ac0c4cc3 DE |
8884 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ |
8885 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
8886 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
10f2d63a | 8887 | |
d558c907 | 8888 | case "${host}" in |
6fa882bd | 8889 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 | 8890 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` |
3a922bb4 | 8891 | esac |
10f2d63a | 8892 | |
3a922bb4 RL |
8893 | case "$NUM_TOOLKITS" in |
8894 | 1) | |
8895 | ;; | |
8896 | 0) | |
a0b9e27f | 8897 | { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; } |
3a922bb4 RL |
8898 | ;; |
8899 | *) | |
a0b9e27f | 8900 | { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; } |
3a922bb4 | 8901 | esac |
10f2d63a | 8902 | |
3a922bb4 RL |
8903 | for toolkit in `echo $ALL_TOOLKITS`; do |
8904 | var=wxUSE_$toolkit | |
8905 | eval "value=\$${var}" | |
8906 | if test "x$value" != x; then | |
8907 | cache_var=CACHE_$toolkit | |
8908 | eval "cache=\$${cache_var}" | |
8909 | if test "$cache" = 1; then | |
8910 | echo "$var=$value" >> ${wx_arg_cache_file} | |
8911 | fi | |
8912 | if test "$value" = 1; then | |
8913 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
a0b9e27f | 8914 | echo "$ac_t""$toolkit_echo" 1>&6 |
3a922bb4 RL |
8915 | fi |
8916 | fi | |
8917 | done | |
10f2d63a | 8918 | else |
a0b9e27f | 8919 | echo "$ac_t""base ($host_alias hosted) only" 1>&6 |
10f2d63a VZ |
8920 | fi |
8921 | ||
43d99b6d VS |
8922 | wants_win32=0 |
8923 | doesnt_want_win32=0 | |
17234b26 MB |
8924 | case "${host}" in |
8925 | *-*-cygwin*) | |
8926 | if test "$wxUSE_MSW" = 1 ; then | |
43d99b6d VS |
8927 | wants_win32=1 |
8928 | else | |
8929 | doesnt_want_win32=1 | |
17234b26 MB |
8930 | fi |
8931 | ;; | |
8932 | *-*-mingw*) | |
43d99b6d | 8933 | wants_win32=1 |
17234b26 MB |
8934 | ;; |
8935 | esac | |
8936 | ||
89e6bf6d VZ |
8937 | if test "$wxUSE_WINE" = "yes"; then |
8938 | wants_win32=1 | |
8939 | CC=winegcc | |
8940 | CXX=wineg++ | |
8941 | RESCOMP=wrc | |
8942 | fi | |
8943 | ||
43d99b6d | 8944 | if test "$wants_win32" = 1 ; then |
17234b26 MB |
8945 | USE_UNIX=0 |
8946 | USE_WIN32=1 | |
a0b9e27f | 8947 | cat >> confdefs.h <<\EOF |
17234b26 | 8948 | #define __WIN32__ 1 |
a0b9e27f | 8949 | EOF |
17234b26 | 8950 | |
a0b9e27f | 8951 | cat >> confdefs.h <<\EOF |
17234b26 | 8952 | #define __WIN95__ 1 |
a0b9e27f | 8953 | EOF |
17234b26 | 8954 | |
a0b9e27f | 8955 | cat >> confdefs.h <<\EOF |
17234b26 | 8956 | #define __WINDOWS__ 1 |
a0b9e27f | 8957 | EOF |
17234b26 | 8958 | |
a0b9e27f | 8959 | cat >> confdefs.h <<\EOF |
17234b26 | 8960 | #define __GNUWIN32__ 1 |
a0b9e27f | 8961 | EOF |
17234b26 | 8962 | |
a0b9e27f | 8963 | cat >> confdefs.h <<\EOF |
17234b26 | 8964 | #define STRICT 1 |
a0b9e27f | 8965 | EOF |
17234b26 | 8966 | |
a0b9e27f | 8967 | cat >> confdefs.h <<\EOF |
17234b26 | 8968 | #define WINVER 0x0400 |
a0b9e27f | 8969 | EOF |
17234b26 | 8970 | |
43d99b6d VS |
8971 | fi |
8972 | if test "$doesnt_want_win32" = 1 ; then | |
17234b26 MB |
8973 | USE_UNIX=1 |
8974 | USE_WIN32=0 | |
8975 | fi | |
8976 | ||
8977 | if test "$USE_UNIX" = 1 ; then | |
8978 | wxUSE_UNIX=yes | |
a0b9e27f | 8979 | cat >> confdefs.h <<\EOF |
17234b26 | 8980 | #define __UNIX__ 1 |
a0b9e27f | 8981 | EOF |
17234b26 MB |
8982 | |
8983 | fi | |
8984 | ||
8284b0c5 | 8985 | |
a0b9e27f | 8986 | cat > confcache <<\EOF |
10f2d63a VZ |
8987 | # This file is a shell script that caches the results of configure |
8988 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
8989 | # scripts and configure runs. It is not useful on other systems. |
8990 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8991 | # |
a0b9e27f MB |
8992 | # By default, configure uses ./config.cache as the cache file, |
8993 | # creating it if it does not exist already. You can give configure | |
8994 | # the --cache-file=FILE option to use a different cache file; that is | |
8995 | # what configure does when it calls configure scripts in | |
8996 | # subdirectories, so they share the cache. | |
8997 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8998 | # config.status only pays attention to the cache file if you give it the | |
8999 | # --recheck option to rerun configure. | |
10f2d63a | 9000 | # |
a0b9e27f | 9001 | EOF |
10f2d63a VZ |
9002 | # The following way of writing the cache mishandles newlines in values, |
9003 | # but we know of no workaround that is simple, portable, and efficient. | |
9004 | # So, don't put newlines in cache variables' values. | |
9005 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
9006 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
9007 | (set) 2>&1 | |
9008 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
9009 | *ac_space=\ *) | |
9010 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
9011 | # turns \\\\ into \\, and sed turns \\ into \). | |
9012 | sed -n \ | |
9013 | -e "s/'/'\\\\''/g" \ | |
9014 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
9015 | ;; | |
9016 | *) | |
9017 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
9018 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
9019 | ;; | |
9020 | esac >> confcache | |
9021 | if cmp -s $cache_file confcache; then | |
9022 | : | |
9023 | else | |
10f2d63a | 9024 | if test -w $cache_file; then |
a0b9e27f MB |
9025 | echo "updating cache $cache_file" |
9026 | cat confcache > $cache_file | |
10f2d63a VZ |
9027 | else |
9028 | echo "not updating unwritable cache $cache_file" | |
9029 | fi | |
9030 | fi | |
9031 | rm -f confcache | |
9032 | ||
a0b9e27f | 9033 | |
e59890c3 | 9034 | if test "$build" != "$host" ; then |
9d353d4a | 9035 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then |
3a922bb4 RL |
9036 | CC=$host_alias-gcc |
9037 | CXX=$host_alias-c++ | |
9038 | AR=$host_alias-ar | |
9039 | RANLIB=$host_alias-ranlib | |
9040 | DLLTOOL=$host_alias-dlltool | |
9041 | RESCOMP=$host_alias-windres | |
9042 | LD=$host_alias-ld | |
9043 | NM=$host_alias-nm | |
9044 | STRIP=$host_alias-strip | |
9045 | else | |
a0b9e27f | 9046 | { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; } |
3a922bb4 | 9047 | fi |
10f2d63a VZ |
9048 | fi |
9049 | ||
ec603395 | 9050 | CFLAGS=${CFLAGS:=} |
a0b9e27f | 9051 | # Extract the first word of "gcc", so it can be a program name with args. |
8284b0c5 | 9052 | set dummy gcc; ac_word=$2 |
a0b9e27f | 9053 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
ac0c4cc3 | 9054 | echo "configure:9055: checking for $ac_word" >&5 |
a0b9e27f MB |
9055 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
9056 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
9057 | else |
9058 | if test -n "$CC"; then | |
9059 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 9060 | else |
a0b9e27f MB |
9061 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9062 | ac_dummy="$PATH" | |
9063 | for ac_dir in $ac_dummy; do | |
9064 | test -z "$ac_dir" && ac_dir=. | |
9065 | if test -f $ac_dir/$ac_word; then | |
9066 | ac_cv_prog_CC="gcc" | |
9067 | break | |
9068 | fi | |
9069 | done | |
9070 | IFS="$ac_save_ifs" | |
10f2d63a | 9071 | fi |
6232543b | 9072 | fi |
a0b9e27f | 9073 | CC="$ac_cv_prog_CC" |
6232543b | 9074 | if test -n "$CC"; then |
a0b9e27f | 9075 | echo "$ac_t""$CC" 1>&6 |
247f5006 | 9076 | else |
a0b9e27f | 9077 | echo "$ac_t""no" 1>&6 |
247f5006 VZ |
9078 | fi |
9079 | ||
5c6fa7d2 RR |
9080 | if test -z "$CC"; then |
9081 | # Extract the first word of "cc", so it can be a program name with args. | |
9082 | set dummy cc; ac_word=$2 | |
a0b9e27f | 9083 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
ac0c4cc3 | 9084 | echo "configure:9085: checking for $ac_word" >&5 |
a0b9e27f MB |
9085 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
9086 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5c6fa7d2 RR |
9087 | else |
9088 | if test -n "$CC"; then | |
9089 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9090 | else | |
a0b9e27f | 9091 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
5c6fa7d2 | 9092 | ac_prog_rejected=no |
a0b9e27f MB |
9093 | ac_dummy="$PATH" |
9094 | for ac_dir in $ac_dummy; do | |
9095 | test -z "$ac_dir" && ac_dir=. | |
9096 | if test -f $ac_dir/$ac_word; then | |
9097 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
9098 | ac_prog_rejected=yes | |
9099 | continue | |
9100 | fi | |
9101 | ac_cv_prog_CC="cc" | |
9102 | break | |
9103 | fi | |
9104 | done | |
9105 | IFS="$ac_save_ifs" | |
328a083c RR |
9106 | if test $ac_prog_rejected = yes; then |
9107 | # We found a bogon in the path, so make sure we never use it. | |
9108 | set dummy $ac_cv_prog_CC | |
9109 | shift | |
a0b9e27f | 9110 | if test $# -gt 0; then |
328a083c | 9111 | # We chose a different compiler from the bogus one. |
1e487827 VS |
9112 | # However, it has the same basename, so the bogon will be chosen |
9113 | # first if we set CC to just the basename; use the full file name. | |
9114 | shift | |
a0b9e27f | 9115 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
9116 | shift |
9117 | ac_cv_prog_CC="$@" | |
703e0a69 | 9118 | fi |
1e487827 VS |
9119 | fi |
9120 | fi | |
9121 | fi | |
a0b9e27f | 9122 | CC="$ac_cv_prog_CC" |
1e487827 | 9123 | if test -n "$CC"; then |
a0b9e27f | 9124 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 9125 | else |
a0b9e27f | 9126 | echo "$ac_t""no" 1>&6 |
703e0a69 | 9127 | fi |
1e487827 | 9128 | |
a0b9e27f MB |
9129 | if test -z "$CC"; then |
9130 | case "`uname -s`" in | |
9131 | *win32* | *WIN32*) | |
9132 | # Extract the first word of "cl", so it can be a program name with args. | |
9133 | set dummy cl; ac_word=$2 | |
9134 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ac0c4cc3 | 9135 | echo "configure:9136: checking for $ac_word" >&5 |
a0b9e27f MB |
9136 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
9137 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f09359cf VS |
9138 | else |
9139 | if test -n "$CC"; then | |
9140 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9141 | else | |
a0b9e27f MB |
9142 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9143 | ac_dummy="$PATH" | |
9144 | for ac_dir in $ac_dummy; do | |
9145 | test -z "$ac_dir" && ac_dir=. | |
9146 | if test -f $ac_dir/$ac_word; then | |
9147 | ac_cv_prog_CC="cl" | |
9148 | break | |
9149 | fi | |
9150 | done | |
9151 | IFS="$ac_save_ifs" | |
f09359cf VS |
9152 | fi |
9153 | fi | |
a0b9e27f | 9154 | CC="$ac_cv_prog_CC" |
f09359cf | 9155 | if test -n "$CC"; then |
a0b9e27f | 9156 | echo "$ac_t""$CC" 1>&6 |
f09359cf | 9157 | else |
a0b9e27f | 9158 | echo "$ac_t""no" 1>&6 |
247f5006 | 9159 | fi |
a0b9e27f MB |
9160 | ;; |
9161 | esac | |
8284b0c5 | 9162 | fi |
a0b9e27f | 9163 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
5c6fa7d2 | 9164 | fi |
1e487827 | 9165 | |
a0b9e27f | 9166 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
ac0c4cc3 | 9167 | echo "configure:9168: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
f09359cf | 9168 | |
a0b9e27f MB |
9169 | ac_ext=c |
9170 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9171 | ac_cpp='$CPP $CPPFLAGS' | |
9172 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9173 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9174 | cross_compiling=$ac_cv_prog_cc_cross | |
f09359cf | 9175 | |
a0b9e27f | 9176 | cat > conftest.$ac_ext << EOF |
247f5006 | 9177 | |
ac0c4cc3 | 9178 | #line 9179 "configure" |
a0b9e27f | 9179 | #include "confdefs.h" |
247f5006 | 9180 | |
a0b9e27f MB |
9181 | main(){return(0);} |
9182 | EOF | |
ac0c4cc3 | 9183 | if { (eval echo configure:9184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
9184 | ac_cv_prog_cc_works=yes |
9185 | # If we can't run a trivial program, we are probably using a cross compiler. | |
9186 | if (./conftest; exit) 2>/dev/null; then | |
9187 | ac_cv_prog_cc_cross=no | |
698dcdb6 | 9188 | else |
a0b9e27f | 9189 | ac_cv_prog_cc_cross=yes |
698dcdb6 | 9190 | fi |
7b4a847f | 9191 | else |
a0b9e27f MB |
9192 | echo "configure: failed program was:" >&5 |
9193 | cat conftest.$ac_ext >&5 | |
9194 | ac_cv_prog_cc_works=no | |
52127426 | 9195 | fi |
a0b9e27f MB |
9196 | rm -fr conftest* |
9197 | ac_ext=c | |
9198 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9199 | ac_cpp='$CPP $CPPFLAGS' | |
9200 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9201 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9202 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 9203 | |
a0b9e27f MB |
9204 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
9205 | if test $ac_cv_prog_cc_works = no; then | |
9206 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
9207 | fi | |
9208 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
ac0c4cc3 | 9209 | echo "configure:9210: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
a0b9e27f MB |
9210 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
9211 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 9212 | |
a0b9e27f | 9213 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
ac0c4cc3 | 9214 | echo "configure:9215: checking whether we are using GNU C" >&5 |
a0b9e27f MB |
9215 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
9216 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 9217 | else |
a0b9e27f MB |
9218 | cat > conftest.c <<EOF |
9219 | #ifdef __GNUC__ | |
9220 | yes; | |
8284b0c5 | 9221 | #endif |
a0b9e27f | 9222 | EOF |
ac0c4cc3 | 9223 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:9224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
a0b9e27f | 9224 | ac_cv_prog_gcc=yes |
5c6fa7d2 | 9225 | else |
a0b9e27f | 9226 | ac_cv_prog_gcc=no |
8284b0c5 MB |
9227 | fi |
9228 | fi | |
1e487827 | 9229 | |
a0b9e27f | 9230 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
f09359cf | 9231 | |
a0b9e27f MB |
9232 | if test $ac_cv_prog_gcc = yes; then |
9233 | GCC=yes | |
9234 | else | |
9235 | GCC= | |
9236 | fi | |
247f5006 | 9237 | |
a0b9e27f MB |
9238 | ac_test_CFLAGS="${CFLAGS+set}" |
9239 | ac_save_CFLAGS="$CFLAGS" | |
9240 | CFLAGS= | |
9241 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
ac0c4cc3 | 9242 | echo "configure:9243: checking whether ${CC-cc} accepts -g" >&5 |
a0b9e27f MB |
9243 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
9244 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9245 | else | |
9246 | echo 'void f(){}' > conftest.c | |
9247 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
9248 | ac_cv_prog_cc_g=yes |
9249 | else | |
a0b9e27f | 9250 | ac_cv_prog_cc_g=no |
10f2d63a | 9251 | fi |
a0b9e27f MB |
9252 | rm -f conftest* |
9253 | ||
10f2d63a | 9254 | fi |
a0b9e27f MB |
9255 | |
9256 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
f09359cf | 9257 | if test "$ac_test_CFLAGS" = set; then |
a0b9e27f | 9258 | CFLAGS="$ac_save_CFLAGS" |
f09359cf VS |
9259 | elif test $ac_cv_prog_cc_g = yes; then |
9260 | if test "$GCC" = yes; then | |
10f2d63a VZ |
9261 | CFLAGS="-g -O2" |
9262 | else | |
f09359cf | 9263 | CFLAGS="-g" |
10f2d63a | 9264 | fi |
5c0a20c3 | 9265 | else |
f09359cf VS |
9266 | if test "$GCC" = yes; then |
9267 | CFLAGS="-O2" | |
9268 | else | |
9269 | CFLAGS= | |
9270 | fi | |
10f2d63a VZ |
9271 | fi |
9272 | ||
9273 | ||
a0b9e27f | 9274 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
ac0c4cc3 | 9275 | echo "configure:9276: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
9276 | # On Suns, sometimes $CPP names a directory. |
9277 | if test -n "$CPP" && test -d "$CPP"; then | |
9278 | CPP= | |
9279 | fi | |
9280 | if test -z "$CPP"; then | |
a0b9e27f MB |
9281 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
9282 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9283 | else | |
9284 | # This must be in double quotes, not single quotes, because CPP may get | |
9285 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
9286 | CPP="${CC-cc} -E" | |
10f2d63a | 9287 | # On the NeXT, cc -E runs the code through the compiler's parser, |
a0b9e27f MB |
9288 | # not just through cpp. |
9289 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 9290 | #line 9291 "configure" |
10f2d63a VZ |
9291 | #include "confdefs.h" |
9292 | #include <assert.h> | |
a0b9e27f MB |
9293 | Syntax Error |
9294 | EOF | |
9295 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ac0c4cc3 | 9296 | { (eval echo configure:9297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9297 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9298 | if test -z "$ac_err"; then | |
10f2d63a VZ |
9299 | : |
9300 | else | |
a0b9e27f MB |
9301 | echo "$ac_err" >&5 |
9302 | echo "configure: failed program was:" >&5 | |
10f2d63a | 9303 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
9304 | rm -rf conftest* |
9305 | CPP="${CC-cc} -E -traditional-cpp" | |
9306 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 9307 | #line 9308 "configure" |
f09359cf | 9308 | #include "confdefs.h" |
a0b9e27f MB |
9309 | #include <assert.h> |
9310 | Syntax Error | |
9311 | EOF | |
9312 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ac0c4cc3 | 9313 | { (eval echo configure:9314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9314 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9315 | if test -z "$ac_err"; then | |
9316 | : | |
247f5006 | 9317 | else |
a0b9e27f MB |
9318 | echo "$ac_err" >&5 |
9319 | echo "configure: failed program was:" >&5 | |
f09359cf | 9320 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
9321 | rm -rf conftest* |
9322 | CPP="${CC-cc} -nologo -E" | |
9323 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 9324 | #line 9325 "configure" |
10f2d63a VZ |
9325 | #include "confdefs.h" |
9326 | #include <assert.h> | |
a0b9e27f MB |
9327 | Syntax Error |
9328 | EOF | |
9329 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ac0c4cc3 | 9330 | { (eval echo configure:9331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9331 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9332 | if test -z "$ac_err"; then | |
10f2d63a VZ |
9333 | : |
9334 | else | |
a0b9e27f MB |
9335 | echo "$ac_err" >&5 |
9336 | echo "configure: failed program was:" >&5 | |
10f2d63a | 9337 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
9338 | rm -rf conftest* |
9339 | CPP=/lib/cpp | |
579d8138 | 9340 | fi |
a0b9e27f | 9341 | rm -f conftest* |
52127426 | 9342 | fi |
a0b9e27f | 9343 | rm -f conftest* |
8284b0c5 | 9344 | fi |
a0b9e27f MB |
9345 | rm -f conftest* |
9346 | ac_cv_prog_CPP="$CPP" | |
9347 | fi | |
9348 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 9349 | else |
a0b9e27f | 9350 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 9351 | fi |
a0b9e27f | 9352 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a | 9353 | |
a0b9e27f MB |
9354 | if test $ac_cv_prog_gcc = yes; then |
9355 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
ac0c4cc3 | 9356 | echo "configure:9357: checking whether ${CC-cc} needs -traditional" >&5 |
a0b9e27f MB |
9357 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
9358 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9359 | else |
9360 | ac_pattern="Autoconf.*'x'" | |
a0b9e27f | 9361 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 9362 | #line 9363 "configure" |
10f2d63a VZ |
9363 | #include "confdefs.h" |
9364 | #include <sgtty.h> | |
9365 | Autoconf TIOCGETP | |
a0b9e27f | 9366 | EOF |
10f2d63a VZ |
9367 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
9368 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
a0b9e27f | 9369 | rm -rf conftest* |
10f2d63a VZ |
9370 | ac_cv_prog_gcc_traditional=yes |
9371 | else | |
a0b9e27f | 9372 | rm -rf conftest* |
10f2d63a VZ |
9373 | ac_cv_prog_gcc_traditional=no |
9374 | fi | |
9375 | rm -f conftest* | |
9376 | ||
8284b0c5 | 9377 | |
10f2d63a | 9378 | if test $ac_cv_prog_gcc_traditional = no; then |
a0b9e27f | 9379 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 9380 | #line 9381 "configure" |
10f2d63a VZ |
9381 | #include "confdefs.h" |
9382 | #include <termio.h> | |
9383 | Autoconf TCGETA | |
a0b9e27f | 9384 | EOF |
10f2d63a VZ |
9385 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
9386 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
a0b9e27f | 9387 | rm -rf conftest* |
10f2d63a VZ |
9388 | ac_cv_prog_gcc_traditional=yes |
9389 | fi | |
9390 | rm -f conftest* | |
9391 | ||
9392 | fi | |
9393 | fi | |
a0b9e27f MB |
9394 | |
9395 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
9396 | if test $ac_cv_prog_gcc_traditional = yes; then |
9397 | CC="$CC -traditional" | |
9398 | fi | |
9399 | fi | |
9400 | ||
8284b0c5 MB |
9401 | |
9402 | ||
a0b9e27f MB |
9403 | ac_ext=C |
9404 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 9405 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
9406 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
9407 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9408 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 9409 | |
698dcdb6 | 9410 | |
ec603395 | 9411 | CXXFLAGS=${CXXFLAGS:=} |
a0b9e27f MB |
9412 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
9413 | do | |
9414 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
9415 | set dummy $ac_prog; ac_word=$2 | |
9416 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ac0c4cc3 | 9417 | echo "configure:9418: checking for $ac_word" >&5 |
a0b9e27f MB |
9418 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
9419 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9420 | else |
9421 | if test -n "$CXX"; then | |
9422 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
9423 | else | |
a0b9e27f MB |
9424 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9425 | ac_dummy="$PATH" | |
9426 | for ac_dir in $ac_dummy; do | |
9427 | test -z "$ac_dir" && ac_dir=. | |
9428 | if test -f $ac_dir/$ac_word; then | |
9429 | ac_cv_prog_CXX="$ac_prog" | |
9430 | break | |
9431 | fi | |
9432 | done | |
9433 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9434 | fi |
9435 | fi | |
a0b9e27f | 9436 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 9437 | if test -n "$CXX"; then |
a0b9e27f | 9438 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 9439 | else |
a0b9e27f | 9440 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9441 | fi |
9442 | ||
a0b9e27f | 9443 | test -n "$CXX" && break |
10f2d63a | 9444 | done |
a0b9e27f | 9445 | test -n "$CXX" || CXX="gcc" |
f09359cf | 9446 | |
a0b9e27f MB |
9447 | |
9448 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
ac0c4cc3 | 9449 | echo "configure:9450: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
a0b9e27f MB |
9450 | |
9451 | ac_ext=C | |
9452 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9453 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9454 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9455 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9456 | cross_compiling=$ac_cv_prog_cxx_cross | |
9457 | ||
9458 | cat > conftest.$ac_ext << EOF | |
9459 | ||
ac0c4cc3 | 9460 | #line 9461 "configure" |
a0b9e27f MB |
9461 | #include "confdefs.h" |
9462 | ||
9463 | int main(){return(0);} | |
9464 | EOF | |
ac0c4cc3 | 9465 | if { (eval echo configure:9466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
9466 | ac_cv_prog_cxx_works=yes |
9467 | # If we can't run a trivial program, we are probably using a cross compiler. | |
9468 | if (./conftest; exit) 2>/dev/null; then | |
9469 | ac_cv_prog_cxx_cross=no | |
9470 | else | |
9471 | ac_cv_prog_cxx_cross=yes | |
9472 | fi | |
8284b0c5 | 9473 | else |
a0b9e27f MB |
9474 | echo "configure: failed program was:" >&5 |
9475 | cat conftest.$ac_ext >&5 | |
9476 | ac_cv_prog_cxx_works=no | |
8284b0c5 | 9477 | fi |
a0b9e27f MB |
9478 | rm -fr conftest* |
9479 | ac_ext=C | |
9480 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9481 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9482 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9483 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9484 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 9485 | |
a0b9e27f MB |
9486 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 |
9487 | if test $ac_cv_prog_cxx_works = no; then | |
9488 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
9489 | fi | |
9490 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
ac0c4cc3 | 9491 | echo "configure:9492: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
a0b9e27f MB |
9492 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
9493 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 9494 | |
a0b9e27f | 9495 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 |
ac0c4cc3 | 9496 | echo "configure:9497: checking whether we are using GNU C++" >&5 |
a0b9e27f MB |
9497 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
9498 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9499 | else | |
9500 | cat > conftest.C <<EOF | |
9501 | #ifdef __GNUC__ | |
9502 | yes; | |
10f2d63a | 9503 | #endif |
a0b9e27f | 9504 | EOF |
ac0c4cc3 | 9505 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9506: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
a0b9e27f MB |
9506 | ac_cv_prog_gxx=yes |
9507 | else | |
9508 | ac_cv_prog_gxx=no | |
9509 | fi | |
9510 | fi | |
10f2d63a | 9511 | |
a0b9e27f | 9512 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 9513 | |
a0b9e27f MB |
9514 | if test $ac_cv_prog_gxx = yes; then |
9515 | GXX=yes | |
9516 | else | |
9517 | GXX= | |
9518 | fi | |
f09359cf | 9519 | |
a0b9e27f MB |
9520 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
9521 | ac_save_CXXFLAGS="$CXXFLAGS" | |
9522 | CXXFLAGS= | |
9523 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
ac0c4cc3 | 9524 | echo "configure:9525: checking whether ${CXX-g++} accepts -g" >&5 |
a0b9e27f MB |
9525 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
9526 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9527 | else | |
9528 | echo 'void f(){}' > conftest.cc | |
9529 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
9530 | ac_cv_prog_cxx_g=yes |
9531 | else | |
a0b9e27f | 9532 | ac_cv_prog_cxx_g=no |
10f2d63a | 9533 | fi |
a0b9e27f MB |
9534 | rm -f conftest* |
9535 | ||
10f2d63a | 9536 | fi |
a0b9e27f MB |
9537 | |
9538 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
f09359cf | 9539 | if test "$ac_test_CXXFLAGS" = set; then |
a0b9e27f | 9540 | CXXFLAGS="$ac_save_CXXFLAGS" |
f09359cf VS |
9541 | elif test $ac_cv_prog_cxx_g = yes; then |
9542 | if test "$GXX" = yes; then | |
10f2d63a VZ |
9543 | CXXFLAGS="-g -O2" |
9544 | else | |
f09359cf | 9545 | CXXFLAGS="-g" |
10f2d63a | 9546 | fi |
5c0a20c3 | 9547 | else |
f09359cf VS |
9548 | if test "$GXX" = yes; then |
9549 | CXXFLAGS="-O2" | |
9550 | else | |
9551 | CXXFLAGS= | |
9552 | fi | |
10f2d63a VZ |
9553 | fi |
9554 | ||
9555 | ||
10f2d63a | 9556 | ac_ext=c |
a0b9e27f | 9557 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 9558 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
9559 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
9560 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9561 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 MB |
9562 | |
9563 | ||
a0b9e27f MB |
9564 | # Extract the first word of "ranlib", so it can be a program name with args. |
9565 | set dummy ranlib; ac_word=$2 | |
9566 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ac0c4cc3 | 9567 | echo "configure:9568: checking for $ac_word" >&5 |
a0b9e27f MB |
9568 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
9569 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9570 | else |
9571 | if test -n "$RANLIB"; then | |
9572 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9573 | else | |
a0b9e27f MB |
9574 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9575 | ac_dummy="$PATH" | |
9576 | for ac_dir in $ac_dummy; do | |
9577 | test -z "$ac_dir" && ac_dir=. | |
9578 | if test -f $ac_dir/$ac_word; then | |
9579 | ac_cv_prog_RANLIB="ranlib" | |
9580 | break | |
9581 | fi | |
9582 | done | |
9583 | IFS="$ac_save_ifs" | |
9584 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
9585 | fi |
9586 | fi | |
a0b9e27f | 9587 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 9588 | if test -n "$RANLIB"; then |
a0b9e27f | 9589 | echo "$ac_t""$RANLIB" 1>&6 |
328a083c | 9590 | else |
a0b9e27f | 9591 | echo "$ac_t""no" 1>&6 |
328a083c RR |
9592 | fi |
9593 | ||
10f2d63a VZ |
9594 | |
9595 | # Extract the first word of "ar", so it can be a program name with args. | |
9596 | set dummy ar; ac_word=$2 | |
a0b9e27f | 9597 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
ac0c4cc3 | 9598 | echo "configure:9599: checking for $ac_word" >&5 |
a0b9e27f MB |
9599 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
9600 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9601 | else |
9602 | if test -n "$AR"; then | |
9603 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
9604 | else | |
a0b9e27f MB |
9605 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9606 | ac_dummy="$PATH" | |
9607 | for ac_dir in $ac_dummy; do | |
9608 | test -z "$ac_dir" && ac_dir=. | |
9609 | if test -f $ac_dir/$ac_word; then | |
9610 | ac_cv_prog_AR="ar" | |
9611 | break | |
9612 | fi | |
9613 | done | |
9614 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9615 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
9616 | fi | |
9617 | fi | |
a0b9e27f | 9618 | AR="$ac_cv_prog_AR" |
10f2d63a | 9619 | if test -n "$AR"; then |
a0b9e27f | 9620 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 9621 | else |
a0b9e27f | 9622 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9623 | fi |
9624 | ||
8284b0c5 | 9625 | |
6054113a | 9626 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
9627 | # so one script is as good as another. But avoid the broken or |
9628 | # incompatible versions: | |
9629 | # SysV /etc/install, /usr/sbin/install | |
9630 | # SunOS /usr/etc/install | |
9631 | # IRIX /sbin/install | |
9632 | # AIX /bin/install | |
f09359cf | 9633 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
10f2d63a VZ |
9634 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
9635 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
9636 | # ./install, which can be erroneously created by make from ./install.sh. | |
a0b9e27f | 9637 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
ac0c4cc3 | 9638 | echo "configure:9639: checking for a BSD compatible install" >&5 |
10f2d63a | 9639 | if test -z "$INSTALL"; then |
a0b9e27f MB |
9640 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
9641 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9642 | else | |
9643 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
9644 | for ac_dir in $PATH; do | |
9645 | # Account for people who put trailing slashes in PATH elements. | |
9646 | case "$ac_dir/" in | |
9647 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
9648 | *) | |
9649 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
9650 | # Don't use installbsd from OSF since it installs stuff as root | |
9651 | # by default. | |
9652 | for ac_prog in ginstall scoinst install; do | |
9653 | if test -f $ac_dir/$ac_prog; then | |
9654 | if test $ac_prog = install && | |
9655 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
9656 | # AIX install. It has an incompatible calling convention. | |
9657 | : | |
9658 | else | |
9659 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
9660 | break 2 | |
9661 | fi | |
9662 | fi | |
10f2d63a | 9663 | done |
a0b9e27f MB |
9664 | ;; |
9665 | esac | |
9666 | done | |
9667 | IFS="$ac_save_IFS" | |
10f2d63a VZ |
9668 | |
9669 | fi | |
9670 | if test "${ac_cv_path_install+set}" = set; then | |
a0b9e27f | 9671 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
9672 | else |
9673 | # As a last resort, use the slow shell script. We don't cache a | |
9674 | # path for INSTALL within a source directory, because that will | |
9675 | # break other packages using the cache if that directory is | |
9676 | # removed, or if the path is relative. | |
a0b9e27f | 9677 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
9678 | fi |
9679 | fi | |
a0b9e27f | 9680 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
9681 | |
9682 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
9683 | # It thinks the first close brace ends the variable substitution. | |
9684 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
9685 | ||
a0b9e27f | 9686 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
f09359cf | 9687 | |
10f2d63a VZ |
9688 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
9689 | ||
8284b0c5 | 9690 | |
1d1b75ac VZ |
9691 | case ${INSTALL} in |
9692 | /* ) # Absolute | |
9693 | ;; | |
4f5a7f74 VZ |
9694 | ?:* ) # Drive letter, considered as absolute. |
9695 | ;; | |
3bd8fb5f | 9696 | *) |
1d1b75ac VZ |
9697 | INSTALL=`pwd`/${INSTALL} ;; |
9698 | esac | |
9699 | ||
4f5a7f74 VZ |
9700 | case ${host} in |
9701 | *-hp-hpux* ) | |
9702 | INSTALL_DIR="mkdir" | |
9703 | ;; | |
9704 | ||
9705 | *) INSTALL_DIR="$INSTALL -d" | |
9706 | ;; | |
9707 | esac | |
9708 | ||
8284b0c5 | 9709 | |
6054113a GD |
9710 | case "${host}" in |
9711 | ||
b5853384 | 9712 | powerpc-*-darwin* ) |
eb99ae0b GD |
9713 | INSTALL_PROGRAM="cp -fp" |
9714 | INSTALL_DATA="cp -fp" | |
6054113a GD |
9715 | ;; |
9716 | *) | |
9717 | ;; | |
d6853540 | 9718 | esac |
698dcdb6 | 9719 | |
10f2d63a VZ |
9720 | # Extract the first word of "strip", so it can be a program name with args. |
9721 | set dummy strip; ac_word=$2 | |
a0b9e27f | 9722 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
ac0c4cc3 | 9723 | echo "configure:9724: checking for $ac_word" >&5 |
a0b9e27f MB |
9724 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
9725 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9726 | else |
9727 | if test -n "$STRIP"; then | |
9728 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9729 | else | |
a0b9e27f MB |
9730 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9731 | ac_dummy="$PATH" | |
9732 | for ac_dir in $ac_dummy; do | |
9733 | test -z "$ac_dir" && ac_dir=. | |
9734 | if test -f $ac_dir/$ac_word; then | |
9735 | ac_cv_prog_STRIP="strip" | |
9736 | break | |
9737 | fi | |
9738 | done | |
9739 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9740 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
9741 | fi | |
9742 | fi | |
a0b9e27f | 9743 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 9744 | if test -n "$STRIP"; then |
a0b9e27f | 9745 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 9746 | else |
a0b9e27f | 9747 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9748 | fi |
9749 | ||
5c6fa7d2 | 9750 | |
a0b9e27f | 9751 | echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6 |
ac0c4cc3 | 9752 | echo "configure:9753: checking if make is GNU make" >&5 |
a0b9e27f MB |
9753 | if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then |
9754 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 9755 | else |
a0b9e27f | 9756 | |
414eab6d | 9757 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | |
d558c907 | 9758 | egrep -s GNU > /dev/null); then |
414eab6d VZ |
9759 | wx_cv_prog_makeisgnu="yes" |
9760 | else | |
9761 | wx_cv_prog_makeisgnu="no" | |
9762 | fi | |
9763 | ||
9764 | fi | |
a0b9e27f MB |
9765 | |
9766 | echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6 | |
414eab6d VZ |
9767 | |
9768 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
9769 | IF_GNU_MAKE="" | |
9770 | else | |
9771 | IF_GNU_MAKE="#" | |
9772 | fi | |
9773 | ||
8284b0c5 MB |
9774 | |
9775 | ||
414eab6d | 9776 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then |
a0b9e27f | 9777 | echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6 |
ac0c4cc3 | 9778 | echo "configure:9779: checking if make supports VPATH" >&5 |
a0b9e27f MB |
9779 | if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then |
9780 | echo $ac_n "(cached) $ac_c" 1>&6 | |
04e7a216 | 9781 | else |
a0b9e27f | 9782 | |
10f2d63a VZ |
9783 | cat - << EOF > confMake |
9784 | check : file | |
9785 | cp \$? \$@ | |
9786 | cp \$? final_file | |
9787 | EOF | |
9788 | ||
9789 | if test ! -d sub ; then | |
9790 | mkdir sub | |
9791 | fi | |
9792 | echo dummy > sub/file | |
f6bcfd97 | 9793 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
9794 | RESULT=$? |
9795 | rm -f sub/file check final_file confMake | |
9796 | rmdir sub | |
9797 | if test "$RESULT" = 0; then | |
04e7a216 | 9798 | wx_cv_prog_makevpath="yes" |
10f2d63a | 9799 | else |
04e7a216 VZ |
9800 | wx_cv_prog_makevpath="no" |
9801 | fi | |
9802 | ||
9803 | fi | |
a0b9e27f MB |
9804 | |
9805 | echo "$ac_t""$wx_cv_prog_makevpath" 1>&6 | |
04e7a216 VZ |
9806 | |
9807 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
a0b9e27f | 9808 | { echo "configure: error: |
5c6fa7d2 RR |
9809 | You need a make-utility that is able to use the variable |
9810 | VPATH correctly. | |
9811 | If your version of make does not support VPATH correctly, | |
9812 | please install GNU-make (possibly as gmake), and start | |
9813 | configure with the following command: | |
9814 | export MAKE=gmake; ./configure for sh-type shells | |
9815 | setenv MAKE gmake; ./configure for csh-type shells | |
9816 | Also please do remember to use gmake in this case every time | |
9817 | you are trying to compile. | |
a0b9e27f MB |
9818 | " 1>&2; exit 1; } |
9819 | fi fi | |
10f2d63a VZ |
9820 | for ac_prog in 'bison -y' byacc |
9821 | do | |
a0b9e27f | 9822 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 9823 | set dummy $ac_prog; ac_word=$2 |
a0b9e27f | 9824 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
ac0c4cc3 | 9825 | echo "configure:9826: checking for $ac_word" >&5 |
a0b9e27f MB |
9826 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
9827 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9828 | else |
9829 | if test -n "$YACC"; then | |
9830 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
9831 | else | |
a0b9e27f MB |
9832 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9833 | ac_dummy="$PATH" | |
9834 | for ac_dir in $ac_dummy; do | |
9835 | test -z "$ac_dir" && ac_dir=. | |
9836 | if test -f $ac_dir/$ac_word; then | |
9837 | ac_cv_prog_YACC="$ac_prog" | |
9838 | break | |
9839 | fi | |
9840 | done | |
9841 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9842 | fi |
9843 | fi | |
a0b9e27f | 9844 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 9845 | if test -n "$YACC"; then |
a0b9e27f | 9846 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 9847 | else |
a0b9e27f | 9848 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9849 | fi |
9850 | ||
a0b9e27f | 9851 | test -n "$YACC" && break |
10f2d63a VZ |
9852 | done |
9853 | test -n "$YACC" || YACC="yacc" | |
9854 | ||
8284b0c5 | 9855 | |
a0b9e27f MB |
9856 | # Extract the first word of "flex", so it can be a program name with args. |
9857 | set dummy flex; ac_word=$2 | |
9858 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ac0c4cc3 | 9859 | echo "configure:9860: checking for $ac_word" >&5 |
a0b9e27f MB |
9860 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
9861 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9862 | else |
9863 | if test -n "$LEX"; then | |
9864 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
9865 | else | |
a0b9e27f MB |
9866 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9867 | ac_dummy="$PATH" | |
9868 | for ac_dir in $ac_dummy; do | |
9869 | test -z "$ac_dir" && ac_dir=. | |
9870 | if test -f $ac_dir/$ac_word; then | |
9871 | ac_cv_prog_LEX="flex" | |
9872 | break | |
9873 | fi | |
9874 | done | |
9875 | IFS="$ac_save_ifs" | |
9876 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
9877 | fi |
9878 | fi | |
a0b9e27f | 9879 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 9880 | if test -n "$LEX"; then |
a0b9e27f | 9881 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 9882 | else |
a0b9e27f | 9883 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9884 | fi |
9885 | ||
9886 | if test -z "$LEXLIB" | |
9887 | then | |
a0b9e27f MB |
9888 | case "$LEX" in |
9889 | flex*) ac_lib=fl ;; | |
9890 | *) ac_lib=l ;; | |
9891 | esac | |
9892 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
ac0c4cc3 | 9893 | echo "configure:9894: checking for yywrap in -l$ac_lib" >&5 |
a0b9e27f MB |
9894 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
9895 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9896 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9897 | else | |
9898 | ac_save_LIBS="$LIBS" | |
9899 | LIBS="-l$ac_lib $LIBS" | |
9900 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 9901 | #line 9902 "configure" |
247f5006 | 9902 | #include "confdefs.h" |
247f5006 | 9903 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 | 9904 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
9905 | builtin and then its argument prototype would still apply. */ |
9906 | char yywrap(); | |
10f2d63a | 9907 | |
a0b9e27f MB |
9908 | int main() { |
9909 | yywrap() | |
9910 | ; return 0; } | |
9911 | EOF | |
ac0c4cc3 | 9912 | if { (eval echo configure:9913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
9913 | rm -rf conftest* |
9914 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9915 | else | |
9916 | echo "configure: failed program was:" >&5 | |
9917 | cat conftest.$ac_ext >&5 | |
9918 | rm -rf conftest* | |
9919 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 9920 | fi |
a0b9e27f MB |
9921 | rm -f conftest* |
9922 | LIBS="$ac_save_LIBS" | |
8284b0c5 | 9923 | |
10f2d63a | 9924 | fi |
a0b9e27f MB |
9925 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
9926 | echo "$ac_t""yes" 1>&6 | |
9927 | LEXLIB="-l$ac_lib" | |
8284b0c5 | 9928 | else |
a0b9e27f | 9929 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9930 | fi |
9931 | ||
a0b9e27f | 9932 | fi |
10f2d63a VZ |
9933 | |
9934 | ||
a0b9e27f | 9935 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
ac0c4cc3 | 9936 | echo "configure:9937: checking whether ln -s works" >&5 |
a0b9e27f MB |
9937 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
9938 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9939 | else |
a0b9e27f MB |
9940 | rm -f conftestdata |
9941 | if ln -s X conftestdata 2>/dev/null | |
9942 | then | |
9943 | rm -f conftestdata | |
9944 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 9945 | else |
a0b9e27f | 9946 | ac_cv_prog_LN_S=ln |
10f2d63a | 9947 | fi |
a0b9e27f MB |
9948 | fi |
9949 | LN_S="$ac_cv_prog_LN_S" | |
9950 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
9951 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 9952 | else |
a0b9e27f | 9953 | echo "$ac_t""no" 1>&6 |
5c6fa7d2 | 9954 | fi |
5c6fa7d2 | 9955 | |
247f5006 | 9956 | |
2b5f62a0 VZ |
9957 | case "${host}" in |
9958 | *-pc-os2_emx | *-pc-os2-emx ) | |
9959 | LIBS="$LIBS -lstdcpp" | |
9960 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
9961 | echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6 | |
ac0c4cc3 | 9962 | echo "configure:9963: checking for drand48 in -lcExt" >&5 |
2b5f62a0 VZ |
9963 | ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'` |
9964 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9965 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9966 | else | |
9967 | ac_save_LIBS="$LIBS" | |
9968 | LIBS="-lcExt $LIBS" | |
9969 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 9970 | #line 9971 "configure" |
2b5f62a0 VZ |
9971 | #include "confdefs.h" |
9972 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9973 | /* We use char because int might match the return type of a gcc2 | |
9974 | builtin and then its argument prototype would still apply. */ | |
9975 | char drand48(); | |
9976 | ||
9977 | int main() { | |
9978 | drand48() | |
9979 | ; return 0; } | |
9980 | EOF | |
ac0c4cc3 | 9981 | if { (eval echo configure:9982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
9982 | rm -rf conftest* |
9983 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9984 | else | |
9985 | echo "configure: failed program was:" >&5 | |
9986 | cat conftest.$ac_ext >&5 | |
9987 | rm -rf conftest* | |
9988 | eval "ac_cv_lib_$ac_lib_var=no" | |
9989 | fi | |
9990 | rm -f conftest* | |
9991 | LIBS="$ac_save_LIBS" | |
9992 | ||
9993 | fi | |
9994 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9995 | echo "$ac_t""yes" 1>&6 | |
9996 | LIBS="$LIBS -lcExt" | |
9997 | else | |
9998 | echo "$ac_t""no" 1>&6 | |
9999 | fi | |
10000 | ||
10001 | else | |
10002 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
10003 | fi | |
10004 | ;; | |
10005 | esac | |
10006 | ||
a0b9e27f | 10007 | |
ac0c4cc3 | 10008 | if test "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then |
a0b9e27f MB |
10009 | for ac_hdr in strings.h |
10010 | do | |
10011 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10012 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
ac0c4cc3 | 10013 | echo "configure:10014: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10014 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10015 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10016 | else | |
10017 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 10018 | #line 10019 "configure" |
a0b9e27f MB |
10019 | #include "confdefs.h" |
10020 | #include <$ac_hdr> | |
10021 | EOF | |
10022 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ac0c4cc3 | 10023 | { (eval echo configure:10024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10024 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10025 | if test -z "$ac_err"; then | |
10026 | rm -rf conftest* | |
10027 | eval "ac_cv_header_$ac_safe=yes" | |
10028 | else | |
10029 | echo "$ac_err" >&5 | |
10030 | echo "configure: failed program was:" >&5 | |
10031 | cat conftest.$ac_ext >&5 | |
10032 | rm -rf conftest* | |
10033 | eval "ac_cv_header_$ac_safe=no" | |
21d1c967 | 10034 | fi |
247f5006 | 10035 | rm -f conftest* |
19bc6aad | 10036 | fi |
a0b9e27f MB |
10037 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10038 | echo "$ac_t""yes" 1>&6 | |
10039 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10040 | cat >> confdefs.h <<EOF | |
10041 | #define $ac_tr_hdr 1 | |
10042 | EOF | |
10043 | ||
247f5006 | 10044 | else |
a0b9e27f | 10045 | echo "$ac_t""no" 1>&6 |
18dbb1f6 | 10046 | fi |
a0b9e27f | 10047 | done |
247f5006 | 10048 | |
90dd450c | 10049 | fi |
90dd450c | 10050 | |
a0b9e27f MB |
10051 | for ac_hdr in stdlib.h |
10052 | do | |
10053 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10054 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
ac0c4cc3 | 10055 | echo "configure:10056: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10056 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10057 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10058 | else | |
10059 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 10060 | #line 10061 "configure" |
90dd450c | 10061 | #include "confdefs.h" |
a0b9e27f MB |
10062 | #include <$ac_hdr> |
10063 | EOF | |
10064 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ac0c4cc3 | 10065 | { (eval echo configure:10066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10066 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10067 | if test -z "$ac_err"; then | |
10068 | rm -rf conftest* | |
10069 | eval "ac_cv_header_$ac_safe=yes" | |
10070 | else | |
10071 | echo "$ac_err" >&5 | |
10072 | echo "configure: failed program was:" >&5 | |
10073 | cat conftest.$ac_ext >&5 | |
10074 | rm -rf conftest* | |
10075 | eval "ac_cv_header_$ac_safe=no" | |
10076 | fi | |
10077 | rm -f conftest* | |
10078 | fi | |
10079 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10080 | echo "$ac_t""yes" 1>&6 | |
10081 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10082 | cat >> confdefs.h <<EOF | |
10083 | #define $ac_tr_hdr 1 | |
10084 | EOF | |
10085 | ||
8284b0c5 | 10086 | else |
a0b9e27f | 10087 | echo "$ac_t""no" 1>&6 |
21d1c967 | 10088 | fi |
a0b9e27f MB |
10089 | done |
10090 | ||
10091 | for ac_hdr in malloc.h | |
10092 | do | |
10093 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10094 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
ac0c4cc3 | 10095 | echo "configure:10096: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10096 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10097 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10098 | else | |
10099 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 10100 | #line 10101 "configure" |
a0b9e27f MB |
10101 | #include "confdefs.h" |
10102 | #include <$ac_hdr> | |
10103 | EOF | |
10104 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ac0c4cc3 | 10105 | { (eval echo configure:10106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10106 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10107 | if test -z "$ac_err"; then | |
10108 | rm -rf conftest* | |
10109 | eval "ac_cv_header_$ac_safe=yes" | |
10110 | else | |
10111 | echo "$ac_err" >&5 | |
10112 | echo "configure: failed program was:" >&5 | |
10113 | cat conftest.$ac_ext >&5 | |
10114 | rm -rf conftest* | |
10115 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 10116 | fi |
a0b9e27f | 10117 | rm -f conftest* |
90dd450c | 10118 | fi |
a0b9e27f MB |
10119 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10120 | echo "$ac_t""yes" 1>&6 | |
10121 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10122 | cat >> confdefs.h <<EOF | |
10123 | #define $ac_tr_hdr 1 | |
10124 | EOF | |
10125 | ||
10126 | else | |
10127 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 10128 | fi |
a0b9e27f | 10129 | done |
247f5006 | 10130 | |
a0b9e27f MB |
10131 | for ac_hdr in unistd.h |
10132 | do | |
10133 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10134 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
ac0c4cc3 | 10135 | echo "configure:10136: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10136 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10137 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10138 | else | |
10139 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 10140 | #line 10141 "configure" |
a0b9e27f MB |
10141 | #include "confdefs.h" |
10142 | #include <$ac_hdr> | |
10143 | EOF | |
10144 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ac0c4cc3 | 10145 | { (eval echo configure:10146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10146 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10147 | if test -z "$ac_err"; then | |
10148 | rm -rf conftest* | |
10149 | eval "ac_cv_header_$ac_safe=yes" | |
10150 | else | |
10151 | echo "$ac_err" >&5 | |
10152 | echo "configure: failed program was:" >&5 | |
10153 | cat conftest.$ac_ext >&5 | |
10154 | rm -rf conftest* | |
10155 | eval "ac_cv_header_$ac_safe=no" | |
247f5006 | 10156 | fi |
a0b9e27f MB |
10157 | rm -f conftest* |
10158 | fi | |
10159 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10160 | echo "$ac_t""yes" 1>&6 | |
10161 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10162 | cat >> confdefs.h <<EOF | |
10163 | #define $ac_tr_hdr 1 | |
10164 | EOF | |
10165 | ||
10166 | else | |
10167 | echo "$ac_t""no" 1>&6 | |
10168 | fi | |
10169 | done | |
90dd450c | 10170 | |
a0b9e27f | 10171 | for ac_hdr in wchar.h |
21d1c967 | 10172 | do |
a0b9e27f MB |
10173 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10174 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
ac0c4cc3 | 10175 | echo "configure:10176: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10176 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10177 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10178 | else | |
10179 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 10180 | #line 10181 "configure" |
4f14bcd8 | 10181 | #include "confdefs.h" |
a0b9e27f MB |
10182 | #include <$ac_hdr> |
10183 | EOF | |
10184 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ac0c4cc3 | 10185 | { (eval echo configure:10186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10186 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10187 | if test -z "$ac_err"; then | |
10188 | rm -rf conftest* | |
10189 | eval "ac_cv_header_$ac_safe=yes" | |
10190 | else | |
10191 | echo "$ac_err" >&5 | |
10192 | echo "configure: failed program was:" >&5 | |
10193 | cat conftest.$ac_ext >&5 | |
10194 | rm -rf conftest* | |
10195 | eval "ac_cv_header_$ac_safe=no" | |
10196 | fi | |
10197 | rm -f conftest* | |
10198 | fi | |
10199 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10200 | echo "$ac_t""yes" 1>&6 | |
10201 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10202 | cat >> confdefs.h <<EOF | |
10203 | #define $ac_tr_hdr 1 | |
10204 | EOF | |
10205 | ||
10206 | else | |
10207 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
10208 | fi |
10209 | done | |
4f14bcd8 | 10210 | |
5c6fa7d2 | 10211 | |
a0b9e27f MB |
10212 | if test "$ac_cv_header_wchar_h" != "yes"; then |
10213 | for ac_hdr in wcstr.h | |
21d1c967 | 10214 | do |
a0b9e27f MB |
10215 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10216 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
ac0c4cc3 | 10217 | echo "configure:10218: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10218 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10219 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10220 | else | |
10221 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 10222 | #line 10223 "configure" |
d4158b5d | 10223 | #include "confdefs.h" |
a0b9e27f MB |
10224 | #include <$ac_hdr> |
10225 | EOF | |
10226 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ac0c4cc3 | 10227 | { (eval echo configure:10228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10228 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10229 | if test -z "$ac_err"; then | |
10230 | rm -rf conftest* | |
10231 | eval "ac_cv_header_$ac_safe=yes" | |
10232 | else | |
10233 | echo "$ac_err" >&5 | |
10234 | echo "configure: failed program was:" >&5 | |
d4158b5d | 10235 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10236 | rm -rf conftest* |
10237 | eval "ac_cv_header_$ac_safe=no" | |
d4158b5d | 10238 | fi |
a0b9e27f | 10239 | rm -f conftest* |
21d1c967 | 10240 | fi |
a0b9e27f MB |
10241 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10242 | echo "$ac_t""yes" 1>&6 | |
10243 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10244 | cat >> confdefs.h <<EOF | |
10245 | #define $ac_tr_hdr 1 | |
10246 | EOF | |
10247 | ||
10248 | else | |
10249 | echo "$ac_t""no" 1>&6 | |
d4158b5d | 10250 | fi |
21d1c967 | 10251 | done |
f6bcfd97 | 10252 | |
90dd450c | 10253 | fi |
90dd450c | 10254 | |
a0b9e27f | 10255 | for ac_hdr in fnmatch.h |
21d1c967 | 10256 | do |
a0b9e27f MB |
10257 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10258 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
ac0c4cc3 | 10259 | echo "configure:10260: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10260 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10261 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10262 | else | |
10263 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 10264 | #line 10265 "configure" |
90dd450c | 10265 | #include "confdefs.h" |
a0b9e27f MB |
10266 | #include <$ac_hdr> |
10267 | EOF | |
10268 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ac0c4cc3 | 10269 | { (eval echo configure:10270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10270 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10271 | if test -z "$ac_err"; then | |
10272 | rm -rf conftest* | |
10273 | eval "ac_cv_header_$ac_safe=yes" | |
10274 | else | |
10275 | echo "$ac_err" >&5 | |
10276 | echo "configure: failed program was:" >&5 | |
3a922bb4 | 10277 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10278 | rm -rf conftest* |
10279 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 10280 | fi |
a0b9e27f | 10281 | rm -f conftest* |
4f14bcd8 | 10282 | fi |
a0b9e27f MB |
10283 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10284 | echo "$ac_t""yes" 1>&6 | |
10285 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10286 | cat >> confdefs.h <<EOF | |
10287 | #define $ac_tr_hdr 1 | |
10288 | EOF | |
10289 | ||
10290 | else | |
10291 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
10292 | fi |
10293 | done | |
90dd450c | 10294 | |
5c6fa7d2 | 10295 | |
a0b9e27f MB |
10296 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
10297 | for ac_func in fnmatch | |
21d1c967 | 10298 | do |
a0b9e27f | 10299 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
ac0c4cc3 | 10300 | echo "configure:10301: checking for $ac_func" >&5 |
a0b9e27f MB |
10301 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10302 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10303 | else |
a0b9e27f | 10304 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 10305 | #line 10306 "configure" |
a0b9e27f MB |
10306 | #include "confdefs.h" |
10307 | /* System header to define __stub macros and hopefully few prototypes, | |
10308 | which can conflict with char $ac_func(); below. */ | |
10309 | #include <assert.h> | |
10310 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10311 | /* We use char because int might match the return type of a gcc2 | |
10312 | builtin and then its argument prototype would still apply. */ | |
10313 | char $ac_func(); | |
10314 | ||
10315 | int main() { | |
10316 | ||
10317 | /* The GNU C library defines this for functions which it implements | |
10318 | to always fail with ENOSYS. Some functions are actually named | |
10319 | something starting with __ and the normal name is an alias. */ | |
10320 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10321 | choke me | |
10322 | #else | |
10323 | $ac_func(); | |
10324 | #endif | |
10325 | ||
10326 | ; return 0; } | |
10327 | EOF | |
ac0c4cc3 | 10328 | if { (eval echo configure:10329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
10329 | rm -rf conftest* |
10330 | eval "ac_cv_func_$ac_func=yes" | |
8284b0c5 | 10331 | else |
a0b9e27f | 10332 | echo "configure: failed program was:" >&5 |
8284b0c5 | 10333 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10334 | rm -rf conftest* |
10335 | eval "ac_cv_func_$ac_func=no" | |
8284b0c5 | 10336 | fi |
a0b9e27f | 10337 | rm -f conftest* |
8284b0c5 | 10338 | fi |
32832908 | 10339 | |
a0b9e27f MB |
10340 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
10341 | echo "$ac_t""yes" 1>&6 | |
10342 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10343 | cat >> confdefs.h <<EOF | |
10344 | #define $ac_tr_func 1 | |
10345 | EOF | |
10346 | ||
10347 | else | |
10348 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
10349 | fi |
10350 | done | |
90dd450c | 10351 | |
a0b9e27f | 10352 | fi |
90dd450c | 10353 | |
a0b9e27f | 10354 | for ac_hdr in langinfo.h |
21d1c967 | 10355 | do |
a0b9e27f MB |
10356 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10357 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
ac0c4cc3 | 10358 | echo "configure:10359: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10359 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10360 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10361 | else | |
10362 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 10363 | #line 10364 "configure" |
247f5006 | 10364 | #include "confdefs.h" |
a0b9e27f MB |
10365 | #include <$ac_hdr> |
10366 | EOF | |
10367 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ac0c4cc3 | 10368 | { (eval echo configure:10369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10369 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10370 | if test -z "$ac_err"; then | |
10371 | rm -rf conftest* | |
10372 | eval "ac_cv_header_$ac_safe=yes" | |
10373 | else | |
10374 | echo "$ac_err" >&5 | |
10375 | echo "configure: failed program was:" >&5 | |
90dd450c | 10376 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10377 | rm -rf conftest* |
10378 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 10379 | fi |
a0b9e27f | 10380 | rm -f conftest* |
4f14bcd8 | 10381 | fi |
a0b9e27f MB |
10382 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10383 | echo "$ac_t""yes" 1>&6 | |
10384 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10385 | cat >> confdefs.h <<EOF | |
10386 | #define $ac_tr_hdr 1 | |
10387 | EOF | |
10388 | ||
10389 | else | |
10390 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
10391 | fi |
10392 | done | |
3a922bb4 | 10393 | |
8284b0c5 | 10394 | |
4f5a7f74 VZ |
10395 | case "${host}" in |
10396 | *-pc-os2_emx | *-pc-os2-emx ) | |
10397 | if test $ac_cv_header_langinfo_h = "yes"; then | |
10398 | LIBS="$LIBS -lintl" | |
10399 | fi | |
10400 | ;; | |
10401 | esac | |
10402 | ||
a0b9e27f MB |
10403 | if test "$wxUSE_GUI" = "yes"; then |
10404 | if test "$wxUSE_UNIX" = "yes"; then | |
10405 | for ac_hdr in X11/XKBlib.h | |
21d1c967 | 10406 | do |
a0b9e27f MB |
10407 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10408 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
ac0c4cc3 | 10409 | echo "configure:10410: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10410 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10411 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10412 | else | |
10413 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 10414 | #line 10415 "configure" |
90dd450c | 10415 | #include "confdefs.h" |
a0b9e27f MB |
10416 | #include <$ac_hdr> |
10417 | EOF | |
10418 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ac0c4cc3 | 10419 | { (eval echo configure:10420: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10420 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10421 | if test -z "$ac_err"; then | |
10422 | rm -rf conftest* | |
10423 | eval "ac_cv_header_$ac_safe=yes" | |
10424 | else | |
10425 | echo "$ac_err" >&5 | |
10426 | echo "configure: failed program was:" >&5 | |
90dd450c | 10427 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10428 | rm -rf conftest* |
10429 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 10430 | fi |
a0b9e27f | 10431 | rm -f conftest* |
90dd450c | 10432 | fi |
a0b9e27f MB |
10433 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10434 | echo "$ac_t""yes" 1>&6 | |
10435 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10436 | cat >> confdefs.h <<EOF | |
10437 | #define $ac_tr_hdr 1 | |
10438 | EOF | |
10439 | ||
10440 | else | |
10441 | echo "$ac_t""no" 1>&6 | |
247f5006 | 10442 | fi |
247f5006 VZ |
10443 | done |
10444 | ||
a0b9e27f MB |
10445 | fi |
10446 | fi | |
247f5006 | 10447 | |
247f5006 | 10448 | |
a0b9e27f | 10449 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
ac0c4cc3 | 10450 | echo "configure:10451: checking for working const" >&5 |
a0b9e27f MB |
10451 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
10452 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10453 | else |
a0b9e27f | 10454 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 10455 | #line 10456 "configure" |
a0b9e27f MB |
10456 | #include "confdefs.h" |
10457 | ||
10458 | int main() { | |
10459 | ||
10460 | /* Ultrix mips cc rejects this. */ | |
10461 | typedef int charset[2]; const charset x; | |
10462 | /* SunOS 4.1.1 cc rejects this. */ | |
10463 | char const *const *ccp; | |
10464 | char **p; | |
10465 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
10466 | struct point {int x, y;}; | |
10467 | static struct point const zero = {0,0}; | |
10468 | /* AIX XL C 1.02.0.0 rejects this. | |
10469 | It does not let you subtract one const X* pointer from another in an arm | |
10470 | of an if-expression whose if-part is not a constant expression */ | |
10471 | const char *g = "string"; | |
10472 | ccp = &g + (g ? g-g : 0); | |
10473 | /* HPUX 7.0 cc rejects these. */ | |
10474 | ++ccp; | |
10475 | p = (char**) ccp; | |
10476 | ccp = (char const *const *) p; | |
10477 | { /* SCO 3.2v4 cc rejects this. */ | |
10478 | char *t; | |
10479 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
10480 | ||
10481 | *t++ = 0; | |
10482 | } | |
10483 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
10484 | int x[] = {25, 17}; | |
10485 | const int *foo = &x[0]; | |
10486 | ++foo; | |
10487 | } | |
10488 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
10489 | typedef const int *iptr; | |
10490 | iptr p = 0; | |
10491 | ++p; | |
10492 | } | |
10493 | { /* AIX XL C 1.02.0.0 rejects this saying | |
10494 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
10495 | struct s { int j; const int *ap[3]; }; | |
10496 | struct s *b; b->j = 5; | |
10497 | } | |
10498 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
10499 | const int foo = 10; | |
10500 | } | |
10501 | ||
10502 | ; return 0; } | |
10503 | EOF | |
ac0c4cc3 | 10504 | if { (eval echo configure:10505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
10505 | rm -rf conftest* |
10506 | ac_cv_c_const=yes | |
247f5006 | 10507 | else |
a0b9e27f | 10508 | echo "configure: failed program was:" >&5 |
247f5006 | 10509 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10510 | rm -rf conftest* |
10511 | ac_cv_c_const=no | |
247f5006 | 10512 | fi |
a0b9e27f | 10513 | rm -f conftest* |
21d1c967 | 10514 | fi |
247f5006 | 10515 | |
a0b9e27f MB |
10516 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
10517 | if test $ac_cv_c_const = no; then | |
10518 | cat >> confdefs.h <<\EOF | |
10519 | #define const | |
10520 | EOF | |
10f2d63a | 10521 | |
90dd450c | 10522 | fi |
81809c07 | 10523 | |
a0b9e27f | 10524 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
ac0c4cc3 | 10525 | echo "configure:10526: checking for inline" >&5 |
a0b9e27f MB |
10526 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
10527 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8168de4c | 10528 | else |
a0b9e27f MB |
10529 | ac_cv_c_inline=no |
10530 | for ac_kw in inline __inline__ __inline; do | |
10531 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 10532 | #line 10533 "configure" |
a0b9e27f MB |
10533 | #include "confdefs.h" |
10534 | ||
10535 | int main() { | |
10536 | } $ac_kw foo() { | |
10537 | ; return 0; } | |
10538 | EOF | |
ac0c4cc3 | 10539 | if { (eval echo configure:10540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
10540 | rm -rf conftest* |
10541 | ac_cv_c_inline=$ac_kw; break | |
247f5006 | 10542 | else |
a0b9e27f | 10543 | echo "configure: failed program was:" >&5 |
247f5006 | 10544 | cat conftest.$ac_ext >&5 |
247f5006 | 10545 | fi |
a0b9e27f MB |
10546 | rm -f conftest* |
10547 | done | |
247f5006 VZ |
10548 | |
10549 | fi | |
10550 | ||
a0b9e27f MB |
10551 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
10552 | case "$ac_cv_c_inline" in | |
10553 | inline | yes) ;; | |
10554 | no) cat >> confdefs.h <<\EOF | |
10555 | #define inline | |
10556 | EOF | |
10557 | ;; | |
10558 | *) cat >> confdefs.h <<EOF | |
10559 | #define inline $ac_cv_c_inline | |
10560 | EOF | |
10561 | ;; | |
10562 | esac | |
247f5006 | 10563 | |
247f5006 | 10564 | |
a0b9e27f | 10565 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
ac0c4cc3 | 10566 | echo "configure:10567: checking size of char" >&5 |
a0b9e27f MB |
10567 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
10568 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10569 | else | |
10570 | if test "$cross_compiling" = yes; then | |
10571 | ac_cv_sizeof_char=1 | |
10572 | else | |
10573 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 10574 | #line 10575 "configure" |
4f14bcd8 | 10575 | #include "confdefs.h" |
a0b9e27f | 10576 | #include <stdio.h> |
a0b9e27f | 10577 | main() |
247f5006 | 10578 | { |
a0b9e27f MB |
10579 | FILE *f=fopen("conftestval", "w"); |
10580 | if (!f) exit(1); | |
10581 | fprintf(f, "%d\n", sizeof(char)); | |
10582 | exit(0); | |
52127426 | 10583 | } |
a0b9e27f | 10584 | EOF |
ac0c4cc3 | 10585 | if { (eval echo configure:10586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10586 | then |
10587 | ac_cv_sizeof_char=`cat conftestval` | |
247f5006 | 10588 | else |
a0b9e27f | 10589 | echo "configure: failed program was:" >&5 |
247f5006 | 10590 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10591 | rm -fr conftest* |
10592 | ac_cv_sizeof_char=0 | |
247f5006 | 10593 | fi |
a0b9e27f | 10594 | rm -fr conftest* |
247f5006 | 10595 | fi |
247f5006 VZ |
10596 | |
10597 | fi | |
a0b9e27f MB |
10598 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
10599 | cat >> confdefs.h <<EOF | |
10600 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
10601 | EOF | |
247f5006 | 10602 | |
247f5006 | 10603 | |
a0b9e27f | 10604 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
ac0c4cc3 | 10605 | echo "configure:10606: checking size of short" >&5 |
a0b9e27f MB |
10606 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
10607 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10608 | else |
a0b9e27f MB |
10609 | if test "$cross_compiling" = yes; then |
10610 | ac_cv_sizeof_short=2 | |
247f5006 | 10611 | else |
a0b9e27f | 10612 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 10613 | #line 10614 "configure" |
a0b9e27f MB |
10614 | #include "confdefs.h" |
10615 | #include <stdio.h> | |
a0b9e27f MB |
10616 | main() |
10617 | { | |
10618 | FILE *f=fopen("conftestval", "w"); | |
10619 | if (!f) exit(1); | |
10620 | fprintf(f, "%d\n", sizeof(short)); | |
10621 | exit(0); | |
10622 | } | |
10623 | EOF | |
ac0c4cc3 | 10624 | if { (eval echo configure:10625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10625 | then |
10626 | ac_cv_sizeof_short=`cat conftestval` | |
247f5006 | 10627 | else |
a0b9e27f MB |
10628 | echo "configure: failed program was:" >&5 |
10629 | cat conftest.$ac_ext >&5 | |
10630 | rm -fr conftest* | |
10631 | ac_cv_sizeof_short=0 | |
247f5006 | 10632 | fi |
a0b9e27f | 10633 | rm -fr conftest* |
247f5006 VZ |
10634 | fi |
10635 | ||
247f5006 | 10636 | fi |
a0b9e27f MB |
10637 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
10638 | cat >> confdefs.h <<EOF | |
10639 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
10640 | EOF | |
247f5006 VZ |
10641 | |
10642 | ||
a0b9e27f | 10643 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 |
ac0c4cc3 | 10644 | echo "configure:10645: checking size of void *" >&5 |
a0b9e27f MB |
10645 | if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then |
10646 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10647 | else | |
10648 | if test "$cross_compiling" = yes; then | |
10649 | ac_cv_sizeof_void_p=4 | |
247f5006 | 10650 | else |
a0b9e27f | 10651 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 10652 | #line 10653 "configure" |
247f5006 | 10653 | #include "confdefs.h" |
247f5006 | 10654 | #include <stdio.h> |
a0b9e27f | 10655 | main() |
247f5006 | 10656 | { |
a0b9e27f MB |
10657 | FILE *f=fopen("conftestval", "w"); |
10658 | if (!f) exit(1); | |
10659 | fprintf(f, "%d\n", sizeof(void *)); | |
10660 | exit(0); | |
5c6fa7d2 | 10661 | } |
a0b9e27f | 10662 | EOF |
ac0c4cc3 | 10663 | if { (eval echo configure:10664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10664 | then |
10665 | ac_cv_sizeof_void_p=`cat conftestval` | |
10666 | else | |
10667 | echo "configure: failed program was:" >&5 | |
10668 | cat conftest.$ac_ext >&5 | |
10669 | rm -fr conftest* | |
10670 | ac_cv_sizeof_void_p=0 | |
10671 | fi | |
10672 | rm -fr conftest* | |
10673 | fi | |
8284b0c5 | 10674 | |
247f5006 | 10675 | fi |
a0b9e27f MB |
10676 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 |
10677 | cat >> confdefs.h <<EOF | |
10678 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
10679 | EOF | |
247f5006 | 10680 | |
247f5006 | 10681 | |
a0b9e27f | 10682 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
ac0c4cc3 | 10683 | echo "configure:10684: checking size of int" >&5 |
a0b9e27f MB |
10684 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
10685 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10686 | else |
a0b9e27f MB |
10687 | if test "$cross_compiling" = yes; then |
10688 | ac_cv_sizeof_int=4 | |
10689 | else | |
10690 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 10691 | #line 10692 "configure" |
247f5006 | 10692 | #include "confdefs.h" |
a0b9e27f | 10693 | #include <stdio.h> |
a0b9e27f | 10694 | main() |
247f5006 | 10695 | { |
a0b9e27f MB |
10696 | FILE *f=fopen("conftestval", "w"); |
10697 | if (!f) exit(1); | |
10698 | fprintf(f, "%d\n", sizeof(int)); | |
10699 | exit(0); | |
247f5006 | 10700 | } |
a0b9e27f | 10701 | EOF |
ac0c4cc3 | 10702 | if { (eval echo configure:10703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10703 | then |
10704 | ac_cv_sizeof_int=`cat conftestval` | |
6f72b082 | 10705 | else |
a0b9e27f MB |
10706 | echo "configure: failed program was:" >&5 |
10707 | cat conftest.$ac_ext >&5 | |
10708 | rm -fr conftest* | |
10709 | ac_cv_sizeof_int=0 | |
21d1c967 | 10710 | fi |
a0b9e27f | 10711 | rm -fr conftest* |
698dcdb6 | 10712 | fi |
4f14bcd8 | 10713 | |
21d1c967 | 10714 | fi |
a0b9e27f MB |
10715 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
10716 | cat >> confdefs.h <<EOF | |
10717 | #define SIZEOF_INT $ac_cv_sizeof_int | |
10718 | EOF | |
4f14bcd8 | 10719 | |
5c6fa7d2 | 10720 | |
a0b9e27f | 10721 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
ac0c4cc3 | 10722 | echo "configure:10723: checking size of long" >&5 |
a0b9e27f MB |
10723 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
10724 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10725 | else |
247f5006 | 10726 | if test "$cross_compiling" = yes; then |
a0b9e27f | 10727 | ac_cv_sizeof_long=4 |
247f5006 | 10728 | else |
a0b9e27f | 10729 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 10730 | #line 10731 "configure" |
247f5006 | 10731 | #include "confdefs.h" |
a0b9e27f | 10732 | #include <stdio.h> |
a0b9e27f | 10733 | main() |
247f5006 | 10734 | { |
a0b9e27f MB |
10735 | FILE *f=fopen("conftestval", "w"); |
10736 | if (!f) exit(1); | |
10737 | fprintf(f, "%d\n", sizeof(long)); | |
10738 | exit(0); | |
247f5006 | 10739 | } |
a0b9e27f | 10740 | EOF |
ac0c4cc3 | 10741 | if { (eval echo configure:10742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10742 | then |
10743 | ac_cv_sizeof_long=`cat conftestval` | |
247f5006 | 10744 | else |
a0b9e27f MB |
10745 | echo "configure: failed program was:" >&5 |
10746 | cat conftest.$ac_ext >&5 | |
10747 | rm -fr conftest* | |
10748 | ac_cv_sizeof_long=0 | |
247f5006 | 10749 | fi |
a0b9e27f | 10750 | rm -fr conftest* |
247f5006 | 10751 | fi |
247f5006 | 10752 | |
5c6fa7d2 | 10753 | fi |
a0b9e27f MB |
10754 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
10755 | cat >> confdefs.h <<EOF | |
10756 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
10757 | EOF | |
247f5006 | 10758 | |
a0b9e27f MB |
10759 | |
10760 | ||
10761 | case "${host}" in | |
10762 | arm-*-linux* ) | |
10763 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
ac0c4cc3 | 10764 | echo "configure:10765: checking size of long long" >&5 |
a0b9e27f MB |
10765 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10766 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10767 | else | |
10768 | if test "$cross_compiling" = yes; then | |
10769 | ac_cv_sizeof_long_long=8 | |
10770 | else | |
10771 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 10772 | #line 10773 "configure" |
247f5006 | 10773 | #include "confdefs.h" |
a0b9e27f | 10774 | #include <stdio.h> |
a0b9e27f | 10775 | main() |
247f5006 | 10776 | { |
a0b9e27f MB |
10777 | FILE *f=fopen("conftestval", "w"); |
10778 | if (!f) exit(1); | |
10779 | fprintf(f, "%d\n", sizeof(long long)); | |
10780 | exit(0); | |
247f5006 | 10781 | } |
a0b9e27f | 10782 | EOF |
ac0c4cc3 | 10783 | if { (eval echo configure:10784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10784 | then |
10785 | ac_cv_sizeof_long_long=`cat conftestval` | |
7b4a847f | 10786 | else |
a0b9e27f MB |
10787 | echo "configure: failed program was:" >&5 |
10788 | cat conftest.$ac_ext >&5 | |
10789 | rm -fr conftest* | |
10790 | ac_cv_sizeof_long_long=0 | |
5c6fa7d2 | 10791 | fi |
a0b9e27f | 10792 | rm -fr conftest* |
5c6fa7d2 | 10793 | fi |
8284b0c5 | 10794 | |
a0b9e27f MB |
10795 | fi |
10796 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
10797 | cat >> confdefs.h <<EOF | |
10798 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10799 | EOF | |
10800 | ||
10801 | ||
10802 | ;; | |
4f57cf11 | 10803 | *-hp-hpux* ) |
a0b9e27f | 10804 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
ac0c4cc3 | 10805 | echo "configure:10806: checking size of long long" >&5 |
a0b9e27f MB |
10806 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10807 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 MB |
10808 | else |
10809 | if test "$cross_compiling" = yes; then | |
a0b9e27f | 10810 | ac_cv_sizeof_long_long=0 |
8284b0c5 | 10811 | else |
a0b9e27f | 10812 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 10813 | #line 10814 "configure" |
8284b0c5 MB |
10814 | #include "confdefs.h" |
10815 | #include <stdio.h> | |
a0b9e27f | 10816 | main() |
8284b0c5 | 10817 | { |
a0b9e27f MB |
10818 | FILE *f=fopen("conftestval", "w"); |
10819 | if (!f) exit(1); | |
10820 | fprintf(f, "%d\n", sizeof(long long)); | |
10821 | exit(0); | |
8284b0c5 | 10822 | } |
a0b9e27f | 10823 | EOF |
ac0c4cc3 | 10824 | if { (eval echo configure:10825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10825 | then |
10826 | ac_cv_sizeof_long_long=`cat conftestval` | |
5c6fa7d2 | 10827 | else |
a0b9e27f MB |
10828 | echo "configure: failed program was:" >&5 |
10829 | cat conftest.$ac_ext >&5 | |
10830 | rm -fr conftest* | |
5c6fa7d2 | 10831 | ac_cv_sizeof_long_long=0 |
52127426 | 10832 | fi |
a0b9e27f MB |
10833 | rm -fr conftest* |
10834 | fi | |
10835 | ||
4f57cf11 GD |
10836 | fi |
10837 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
10838 | cat >> confdefs.h <<EOF | |
10839 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10840 | EOF | |
10841 | ||
10842 | ||
10843 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
10844 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
10845 | fi | |
10846 | ;; | |
10847 | * ) | |
10848 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
ac0c4cc3 | 10849 | echo "configure:10850: checking size of long long" >&5 |
4f57cf11 GD |
10850 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10851 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10852 | else | |
10853 | if test "$cross_compiling" = yes; then | |
10854 | ac_cv_sizeof_long_long=0 | |
10855 | else | |
10856 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 10857 | #line 10858 "configure" |
4f57cf11 GD |
10858 | #include "confdefs.h" |
10859 | #include <stdio.h> | |
10860 | main() | |
10861 | { | |
10862 | FILE *f=fopen("conftestval", "w"); | |
10863 | if (!f) exit(1); | |
10864 | fprintf(f, "%d\n", sizeof(long long)); | |
10865 | exit(0); | |
10866 | } | |
10867 | EOF | |
ac0c4cc3 | 10868 | if { (eval echo configure:10869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f57cf11 GD |
10869 | then |
10870 | ac_cv_sizeof_long_long=`cat conftestval` | |
10871 | else | |
10872 | echo "configure: failed program was:" >&5 | |
10873 | cat conftest.$ac_ext >&5 | |
10874 | rm -fr conftest* | |
10875 | ac_cv_sizeof_long_long=0 | |
10876 | fi | |
10877 | rm -fr conftest* | |
10878 | fi | |
10879 | ||
7b4a847f | 10880 | fi |
a0b9e27f MB |
10881 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
10882 | cat >> confdefs.h <<EOF | |
21d1c967 | 10883 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
a0b9e27f | 10884 | EOF |
9e691f46 | 10885 | |
8284b0c5 | 10886 | |
21d1c967 GD |
10887 | esac |
10888 | ||
a0b9e27f | 10889 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 |
ac0c4cc3 | 10890 | echo "configure:10891: checking size of wchar_t" >&5 |
a0b9e27f MB |
10891 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then |
10892 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 10893 | else |
a0b9e27f | 10894 | |
21d1c967 | 10895 | if test "$cross_compiling" = yes; then |
2b5f62a0 VZ |
10896 | |
10897 | case "${host}" in | |
10898 | *-pc-msdosdjgpp ) | |
10899 | wx_cv_sizeof_wchar_t=0 | |
10900 | ;; | |
10901 | * ) | |
10902 | wx_cv_sizeof_wchar_t=4 | |
10903 | ;; | |
10904 | esac | |
10905 | ||
a0b9e27f | 10906 | |
6f72b082 | 10907 | else |
a0b9e27f | 10908 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 10909 | #line 10910 "configure" |
6f72b082 | 10910 | #include "confdefs.h" |
21d1c967 | 10911 | |
2b5f62a0 VZ |
10912 | /* DJGPP only has fake wchar_t: */ |
10913 | #ifdef __DJGPP__ | |
10914 | # error "fake wchar_t" | |
10915 | #endif | |
21d1c967 GD |
10916 | #ifdef HAVE_WCHAR_H |
10917 | # ifdef __CYGWIN__ | |
10918 | # include <stddef.h> | |
10919 | # endif | |
10920 | # include <wchar.h> | |
10921 | #endif | |
10922 | #ifdef HAVE_STDLIB_H | |
10923 | # include <stdlib.h> | |
10924 | #endif | |
10925 | #include <stdio.h> | |
10926 | int main() | |
10927 | { | |
10928 | FILE *f=fopen("conftestval", "w"); | |
10929 | if (!f) exit(1); | |
10930 | fprintf(f, "%i", sizeof(wchar_t)); | |
10931 | exit(0); | |
10932 | } | |
a0b9e27f MB |
10933 | |
10934 | EOF | |
ac0c4cc3 | 10935 | if { (eval echo configure:10936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 10936 | then |
21d1c967 | 10937 | wx_cv_sizeof_wchar_t=`cat conftestval` |
6f72b082 | 10938 | else |
a0b9e27f MB |
10939 | echo "configure: failed program was:" >&5 |
10940 | cat conftest.$ac_ext >&5 | |
10941 | rm -fr conftest* | |
10942 | wx_cv_sizeof_wchar_t=0 | |
6f72b082 | 10943 | fi |
a0b9e27f | 10944 | rm -fr conftest* |
6f72b082 | 10945 | fi |
6f72b082 | 10946 | |
a0b9e27f | 10947 | |
3f345b47 VZ |
10948 | fi |
10949 | ||
a0b9e27f MB |
10950 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 |
10951 | ||
10952 | cat >> confdefs.h <<EOF | |
21d1c967 | 10953 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t |
a0b9e27f | 10954 | EOF |
90dd450c | 10955 | |
8284b0c5 | 10956 | |
21d1c967 GD |
10957 | # Check whether --enable-largefile or --disable-largefile was given. |
10958 | if test "${enable_largefile+set}" = set; then | |
10959 | enableval="$enable_largefile" | |
a0b9e27f MB |
10960 | : |
10961 | fi | |
3f345b47 | 10962 | |
21d1c967 GD |
10963 | if test "$enable_largefile" != no; then |
10964 | wx_largefile=no | |
a0b9e27f MB |
10965 | |
10966 | echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 | |
ac0c4cc3 | 10967 | echo "configure:10968: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
a0b9e27f MB |
10968 | if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then |
10969 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10970 | else | |
10971 | ||
10972 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 10973 | #line 10974 "configure" |
90dd450c | 10974 | #include "confdefs.h" |
21d1c967 GD |
10975 | #define _FILE_OFFSET_BITS 64 |
10976 | #include <sys/types.h> | |
a0b9e27f | 10977 | int main() { |
21d1c967 GD |
10978 | typedef struct { |
10979 | unsigned int field: sizeof(off_t) == 8; | |
10980 | } wxlf; | |
10981 | ||
a0b9e27f MB |
10982 | ; return 0; } |
10983 | EOF | |
ac0c4cc3 | 10984 | if { (eval echo configure:10985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 10985 | rm -rf conftest* |
21d1c967 | 10986 | ac_cv_sys_file_offset_bits=64 |
f6bcfd97 | 10987 | else |
a0b9e27f MB |
10988 | echo "configure: failed program was:" >&5 |
10989 | cat conftest.$ac_ext >&5 | |
10990 | rm -rf conftest* | |
10991 | ac_cv_sys_file_offset_bits=no | |
5c6fa7d2 | 10992 | fi |
a0b9e27f MB |
10993 | rm -f conftest* |
10994 | ||
10995 | ||
247f5006 | 10996 | fi |
a0b9e27f MB |
10997 | |
10998 | echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6 | |
21d1c967 GD |
10999 | |
11000 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
11001 | wx_largefile=yes | |
a0b9e27f | 11002 | cat >> confdefs.h <<EOF |
21d1c967 | 11003 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
a0b9e27f | 11004 | EOF |
21d1c967 GD |
11005 | |
11006 | fi | |
11007 | ||
11008 | if test "x$wx_largefile" != "xyes"; then | |
a0b9e27f MB |
11009 | |
11010 | echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6 | |
ac0c4cc3 | 11011 | echo "configure:11012: checking for _LARGE_FILES value needed for large files" >&5 |
a0b9e27f MB |
11012 | if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then |
11013 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11014 | else | |
11015 | ||
11016 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 11017 | #line 11018 "configure" |
f6bcfd97 | 11018 | #include "confdefs.h" |
21d1c967 GD |
11019 | #define _LARGE_FILES 1 |
11020 | #include <sys/types.h> | |
a0b9e27f | 11021 | int main() { |
21d1c967 GD |
11022 | typedef struct { |
11023 | unsigned int field: sizeof(off_t) == 8; | |
11024 | } wxlf; | |
11025 | ||
a0b9e27f MB |
11026 | ; return 0; } |
11027 | EOF | |
ac0c4cc3 | 11028 | if { (eval echo configure:11029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 11029 | rm -rf conftest* |
21d1c967 | 11030 | ac_cv_sys_large_files=1 |
f6bcfd97 | 11031 | else |
a0b9e27f MB |
11032 | echo "configure: failed program was:" >&5 |
11033 | cat conftest.$ac_ext >&5 | |
11034 | rm -rf conftest* | |
11035 | ac_cv_sys_large_files=no | |
5c6fa7d2 | 11036 | fi |
a0b9e27f MB |
11037 | rm -f conftest* |
11038 | ||
11039 | ||
247f5006 | 11040 | fi |
a0b9e27f MB |
11041 | |
11042 | echo "$ac_t""$ac_cv_sys_large_files" 1>&6 | |
3f345b47 | 11043 | |
21d1c967 GD |
11044 | if test "$ac_cv_sys_large_files" != no; then |
11045 | wx_largefile=yes | |
a0b9e27f | 11046 | cat >> confdefs.h <<EOF |
21d1c967 | 11047 | #define _LARGE_FILES $ac_cv_sys_large_files |
a0b9e27f | 11048 | EOF |
90dd450c | 11049 | |
90dd450c VZ |
11050 | fi |
11051 | ||
90dd450c | 11052 | fi |
90dd450c | 11053 | |
a0b9e27f | 11054 | echo $ac_n "checking if large file support is available""... $ac_c" 1>&6 |
ac0c4cc3 | 11055 | echo "configure:11056: checking if large file support is available" >&5 |
21d1c967 | 11056 | if test "x$wx_largefile" = "xyes"; then |
a0b9e27f | 11057 | cat >> confdefs.h <<\EOF |
21d1c967 | 11058 | #define HAVE_LARGEFILE_SUPPORT 1 |
a0b9e27f | 11059 | EOF |
90dd450c | 11060 | |
90dd450c | 11061 | fi |
a0b9e27f | 11062 | echo "$ac_t""$wx_largefile" 1>&6 |
21d1c967 | 11063 | fi |
90dd450c | 11064 | |
8284b0c5 | 11065 | |
f02444d0 | 11066 | if test "x$wx_largefile" = "xyes"; then |
e26c13cf RD |
11067 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then |
11068 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
f02444d0 | 11069 | else |
e26c13cf | 11070 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" |
f02444d0 | 11071 | fi |
e26c13cf | 11072 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" |
f02444d0 VZ |
11073 | fi |
11074 | ||
a0b9e27f | 11075 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
ac0c4cc3 | 11076 | echo "configure:11077: checking whether byte ordering is bigendian" >&5 |
a0b9e27f MB |
11077 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
11078 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 11079 | else |
21d1c967 GD |
11080 | ac_cv_c_bigendian=unknown |
11081 | # See if sys/param.h defines the BYTE_ORDER macro. | |
a0b9e27f | 11082 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 11083 | #line 11084 "configure" |
90dd450c | 11084 | #include "confdefs.h" |
21d1c967 GD |
11085 | #include <sys/types.h> |
11086 | #include <sys/param.h> | |
a0b9e27f | 11087 | int main() { |
21d1c967 GD |
11088 | |
11089 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
11090 | bogus endian macros | |
11091 | #endif | |
a0b9e27f MB |
11092 | ; return 0; } |
11093 | EOF | |
ac0c4cc3 | 11094 | if { (eval echo configure:11095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 11095 | rm -rf conftest* |
21d1c967 | 11096 | # It does; now see whether it defined to BIG_ENDIAN or not. |
a0b9e27f | 11097 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 11098 | #line 11099 "configure" |
90dd450c | 11099 | #include "confdefs.h" |
21d1c967 GD |
11100 | #include <sys/types.h> |
11101 | #include <sys/param.h> | |
a0b9e27f | 11102 | int main() { |
21d1c967 GD |
11103 | |
11104 | #if BYTE_ORDER != BIG_ENDIAN | |
11105 | not big endian | |
11106 | #endif | |
a0b9e27f MB |
11107 | ; return 0; } |
11108 | EOF | |
ac0c4cc3 | 11109 | if { (eval echo configure:11110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 11110 | rm -rf conftest* |
21d1c967 | 11111 | ac_cv_c_bigendian=yes |
3f345b47 | 11112 | else |
a0b9e27f MB |
11113 | echo "configure: failed program was:" >&5 |
11114 | cat conftest.$ac_ext >&5 | |
11115 | rm -rf conftest* | |
11116 | ac_cv_c_bigendian=no | |
3f345b47 | 11117 | fi |
a0b9e27f | 11118 | rm -f conftest* |
3f345b47 | 11119 | else |
a0b9e27f MB |
11120 | echo "configure: failed program was:" >&5 |
11121 | cat conftest.$ac_ext >&5 | |
3f345b47 | 11122 | fi |
a0b9e27f | 11123 | rm -f conftest* |
21d1c967 GD |
11124 | if test $ac_cv_c_bigendian = unknown; then |
11125 | if test "$cross_compiling" = yes; then | |
11126 | ac_cv_c_bigendian=unknown | |
10f2d63a | 11127 | else |
a0b9e27f | 11128 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 11129 | #line 11130 "configure" |
90dd450c | 11130 | #include "confdefs.h" |
21d1c967 GD |
11131 | main () { |
11132 | /* Are we little or big endian? From Harbison&Steele. */ | |
11133 | union | |
11134 | { | |
11135 | long l; | |
11136 | char c[sizeof (long)]; | |
11137 | } u; | |
11138 | u.l = 1; | |
11139 | exit (u.c[sizeof (long) - 1] == 1); | |
11140 | } | |
a0b9e27f | 11141 | EOF |
ac0c4cc3 | 11142 | if { (eval echo configure:11143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 11143 | then |
21d1c967 | 11144 | ac_cv_c_bigendian=no |
3f345b47 | 11145 | else |
a0b9e27f MB |
11146 | echo "configure: failed program was:" >&5 |
11147 | cat conftest.$ac_ext >&5 | |
11148 | rm -fr conftest* | |
11149 | ac_cv_c_bigendian=yes | |
247f5006 | 11150 | fi |
a0b9e27f | 11151 | rm -fr conftest* |
247f5006 | 11152 | fi |
a0b9e27f | 11153 | |
3f345b47 | 11154 | fi |
8168de4c | 11155 | fi |
a0b9e27f MB |
11156 | |
11157 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
247f5006 | 11158 | if test $ac_cv_c_bigendian = unknown; then |
a0b9e27f | 11159 | 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 |
11160 | fi |
11161 | if test $ac_cv_c_bigendian = yes; then | |
a0b9e27f | 11162 | cat >> confdefs.h <<\EOF |
247f5006 | 11163 | #define WORDS_BIGENDIAN 1 |
a0b9e27f | 11164 | EOF |
247f5006 VZ |
11165 | |
11166 | fi | |
11167 | ||
11168 | ||
a0b9e27f | 11169 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
ac0c4cc3 | 11170 | echo "configure:11171: checking how to run the C++ preprocessor" >&5 |
247f5006 | 11171 | if test -z "$CXXCPP"; then |
a0b9e27f MB |
11172 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then |
11173 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 11174 | else |
a0b9e27f MB |
11175 | ac_ext=C |
11176 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11177 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11178 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11179 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11180 | cross_compiling=$ac_cv_prog_cxx_cross | |
11181 | CXXCPP="${CXX-g++} -E" | |
11182 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 11183 | #line 11184 "configure" |
5c6fa7d2 | 11184 | #include "confdefs.h" |
a0b9e27f MB |
11185 | #include <stdlib.h> |
11186 | EOF | |
11187 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ac0c4cc3 | 11188 | { (eval echo configure:11189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11189 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11190 | if test -z "$ac_err"; then | |
21d1c967 | 11191 | : |
698dcdb6 | 11192 | else |
a0b9e27f MB |
11193 | echo "$ac_err" >&5 |
11194 | echo "configure: failed program was:" >&5 | |
698dcdb6 | 11195 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11196 | rm -rf conftest* |
11197 | CXXCPP=/lib/cpp | |
247f5006 | 11198 | fi |
a0b9e27f MB |
11199 | rm -f conftest* |
11200 | ac_cv_prog_CXXCPP="$CXXCPP" | |
11201 | ac_ext=C | |
11202 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11203 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11204 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11205 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11206 | cross_compiling=$ac_cv_prog_cxx_cross | |
328a083c | 11207 | fi |
90dd450c | 11208 | fi |
a0b9e27f MB |
11209 | CXXCPP="$ac_cv_prog_CXXCPP" |
11210 | echo "$ac_t""$CXXCPP" 1>&6 | |
1e6feb95 | 11211 | |
1725144d | 11212 | |
21d1c967 | 11213 | if test "$cross_compiling" = "yes"; then |
a0b9e27f | 11214 | cat >> confdefs.h <<\EOF |
21d1c967 | 11215 | #define wxUSE_IOSTREAMH 1 |
a0b9e27f | 11216 | EOF |
ab9b9eab | 11217 | |
21d1c967 | 11218 | else |
a0b9e27f MB |
11219 | |
11220 | ac_ext=C | |
11221 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 11222 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
11223 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11224 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11225 | cross_compiling=$ac_cv_prog_cxx_cross | |
52127426 | 11226 | |
247f5006 | 11227 | |
a0b9e27f | 11228 | for ac_hdr in iostream |
21d1c967 | 11229 | do |
a0b9e27f MB |
11230 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11231 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
ac0c4cc3 | 11232 | echo "configure:11233: checking for $ac_hdr" >&5 |
a0b9e27f MB |
11233 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11234 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11235 | else | |
11236 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 11237 | #line 11238 "configure" |
ab9b9eab | 11238 | #include "confdefs.h" |
a0b9e27f MB |
11239 | #include <$ac_hdr> |
11240 | EOF | |
11241 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ac0c4cc3 | 11242 | { (eval echo configure:11243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11243 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11244 | if test -z "$ac_err"; then | |
11245 | rm -rf conftest* | |
11246 | eval "ac_cv_header_$ac_safe=yes" | |
11247 | else | |
11248 | echo "$ac_err" >&5 | |
11249 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 11250 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11251 | rm -rf conftest* |
11252 | eval "ac_cv_header_$ac_safe=no" | |
ab9b9eab | 11253 | fi |
a0b9e27f | 11254 | rm -f conftest* |
90dd450c | 11255 | fi |
a0b9e27f MB |
11256 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11257 | echo "$ac_t""yes" 1>&6 | |
11258 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11259 | cat >> confdefs.h <<EOF | |
11260 | #define $ac_tr_hdr 1 | |
11261 | EOF | |
11262 | ||
11263 | else | |
11264 | echo "$ac_t""no" 1>&6 | |
90dd450c | 11265 | fi |
21d1c967 | 11266 | done |
10f2d63a | 11267 | |
8284b0c5 | 11268 | |
21d1c967 GD |
11269 | if test "$ac_cv_header_iostream" = "yes" ; then |
11270 | : | |
11271 | else | |
a0b9e27f | 11272 | cat >> confdefs.h <<\EOF |
21d1c967 | 11273 | #define wxUSE_IOSTREAMH 1 |
a0b9e27f | 11274 | EOF |
788deba1 | 11275 | |
90dd450c | 11276 | fi |
ab9b9eab | 11277 | |
21d1c967 | 11278 | ac_ext=c |
a0b9e27f | 11279 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
21d1c967 | 11280 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
11281 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11282 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11283 | cross_compiling=$ac_cv_prog_cc_cross | |
ab9b9eab | 11284 | |
21d1c967 | 11285 | fi |
ab9b9eab | 11286 | |
52127426 | 11287 | |
8284b0c5 | 11288 | |
a0b9e27f | 11289 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 |
ac0c4cc3 | 11290 | echo "configure:11291: checking if C++ compiler supports bool" >&5 |
a0b9e27f MB |
11291 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
11292 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 11293 | else |
a0b9e27f MB |
11294 | |
11295 | ||
11296 | ac_ext=C | |
11297 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 11298 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
11299 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11300 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11301 | cross_compiling=$ac_cv_prog_cxx_cross | |
21d1c967 | 11302 | |
8284b0c5 | 11303 | |
a0b9e27f | 11304 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 11305 | #line 11306 "configure" |
ab9b9eab | 11306 | #include "confdefs.h" |
21d1c967 | 11307 | |
a0b9e27f MB |
11308 | |
11309 | int main() { | |
21d1c967 GD |
11310 | |
11311 | bool b = true; | |
11312 | ||
11313 | return 0; | |
a0b9e27f MB |
11314 | |
11315 | ; return 0; } | |
11316 | EOF | |
ac0c4cc3 | 11317 | if { (eval echo configure:11318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
11318 | rm -rf conftest* |
11319 | ||
21d1c967 | 11320 | wx_cv_cpp_bool=yes |
a0b9e27f | 11321 | |
698dcdb6 | 11322 | else |
a0b9e27f MB |
11323 | echo "configure: failed program was:" >&5 |
11324 | cat conftest.$ac_ext >&5 | |
11325 | rm -rf conftest* | |
11326 | ||
21d1c967 | 11327 | wx_cv_cpp_bool=no |
a0b9e27f MB |
11328 | |
11329 | ||
698dcdb6 | 11330 | fi |
a0b9e27f | 11331 | rm -f conftest* |
21d1c967 GD |
11332 | |
11333 | ac_ext=c | |
a0b9e27f | 11334 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
21d1c967 | 11335 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
11336 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11337 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11338 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 11339 | |
a0b9e27f | 11340 | |
247f5006 | 11341 | fi |
a0b9e27f MB |
11342 | |
11343 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
21d1c967 GD |
11344 | |
11345 | if test "$wx_cv_cpp_bool" = "yes"; then | |
a0b9e27f | 11346 | cat >> confdefs.h <<\EOF |
21d1c967 | 11347 | #define HAVE_BOOL 1 |
a0b9e27f | 11348 | EOF |
ab9b9eab | 11349 | |
21d1c967 GD |
11350 | fi |
11351 | ||
52127426 | 11352 | |
8284b0c5 | 11353 | |
a0b9e27f | 11354 | echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6 |
ac0c4cc3 | 11355 | echo "configure:11356: checking if C++ compiler supports the explicit keyword" >&5 |
a0b9e27f MB |
11356 | if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then |
11357 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 11358 | else |
a0b9e27f MB |
11359 | |
11360 | ||
11361 | ac_ext=C | |
11362 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 11363 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
11364 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11365 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11366 | cross_compiling=$ac_cv_prog_cxx_cross | |
986ecc86 | 11367 | |
8284b0c5 | 11368 | |
a0b9e27f | 11369 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 11370 | #line 11371 "configure" |
986ecc86 VZ |
11371 | #include "confdefs.h" |
11372 | ||
11373 | class Foo { public: explicit Foo(int) {} }; | |
a0b9e27f MB |
11374 | |
11375 | int main() { | |
986ecc86 VZ |
11376 | |
11377 | return 0; | |
a0b9e27f MB |
11378 | |
11379 | ; return 0; } | |
11380 | EOF | |
ac0c4cc3 | 11381 | if { (eval echo configure:11382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
11382 | rm -rf conftest* |
11383 | ||
11384 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 11385 | #line 11386 "configure" |
986ecc86 VZ |
11386 | #include "confdefs.h" |
11387 | ||
11388 | class Foo { public: explicit Foo(int) {} }; | |
11389 | static void TakeFoo(const Foo& foo) { } | |
a0b9e27f MB |
11390 | |
11391 | int main() { | |
986ecc86 VZ |
11392 | |
11393 | TakeFoo(17); | |
11394 | return 0; | |
a0b9e27f MB |
11395 | |
11396 | ; return 0; } | |
11397 | EOF | |
ac0c4cc3 | 11398 | if { (eval echo configure:11399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 11399 | rm -rf conftest* |
986ecc86 VZ |
11400 | wx_cv_explicit=no |
11401 | else | |
a0b9e27f MB |
11402 | echo "configure: failed program was:" >&5 |
11403 | cat conftest.$ac_ext >&5 | |
11404 | rm -rf conftest* | |
11405 | wx_cv_explicit=yes | |
11406 | ||
986ecc86 | 11407 | fi |
a0b9e27f MB |
11408 | rm -f conftest* |
11409 | ||
986ecc86 | 11410 | else |
a0b9e27f MB |
11411 | echo "configure: failed program was:" >&5 |
11412 | cat conftest.$ac_ext >&5 | |
11413 | rm -rf conftest* | |
11414 | wx_cv_explicit=no | |
11415 | ||
986ecc86 | 11416 | fi |
a0b9e27f | 11417 | rm -f conftest* |
986ecc86 VZ |
11418 | |
11419 | ac_ext=c | |
a0b9e27f | 11420 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
986ecc86 | 11421 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
11422 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11423 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11424 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 11425 | |
a0b9e27f | 11426 | |
247f5006 | 11427 | fi |
a0b9e27f MB |
11428 | |
11429 | echo "$ac_t""$wx_cv_explicit" 1>&6 | |
986ecc86 VZ |
11430 | |
11431 | if test "$wx_cv_explicit" = "yes"; then | |
a0b9e27f | 11432 | cat >> confdefs.h <<\EOF |
986ecc86 | 11433 | #define HAVE_EXPLICIT 1 |
a0b9e27f | 11434 | EOF |
986ecc86 VZ |
11435 | |
11436 | fi | |
11437 | ||
8284b0c5 | 11438 | |
521196a2 | 11439 | echo $ac_n "checking whether the compiler supports const_cast<>""... $ac_c" 1>&6 |
ac0c4cc3 | 11440 | echo "configure:11441: checking whether the compiler supports const_cast<>" >&5 |
521196a2 MB |
11441 | if eval "test \"`echo '$''{'ac_cv_cxx_const_cast'+set}'`\" = set"; then |
11442 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11443 | else | |
11444 | ||
11445 | ac_ext=C | |
11446 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11447 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11448 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11449 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11450 | cross_compiling=$ac_cv_prog_cxx_cross | |
11451 | ||
11452 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 11453 | #line 11454 "configure" |
521196a2 MB |
11454 | #include "confdefs.h" |
11455 | ||
11456 | int main() { | |
11457 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; | |
11458 | ; return 0; } | |
11459 | EOF | |
ac0c4cc3 | 11460 | if { (eval echo configure:11461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
521196a2 MB |
11461 | rm -rf conftest* |
11462 | ac_cv_cxx_const_cast=yes | |
11463 | else | |
11464 | echo "configure: failed program was:" >&5 | |
11465 | cat conftest.$ac_ext >&5 | |
11466 | rm -rf conftest* | |
11467 | ac_cv_cxx_const_cast=no | |
11468 | fi | |
11469 | rm -f conftest* | |
11470 | ac_ext=c | |
11471 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11472 | ac_cpp='$CPP $CPPFLAGS' | |
11473 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11474 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11475 | cross_compiling=$ac_cv_prog_cc_cross | |
11476 | ||
11477 | ||
11478 | fi | |
11479 | ||
11480 | echo "$ac_t""$ac_cv_cxx_const_cast" 1>&6 | |
11481 | if test "$ac_cv_cxx_const_cast" = yes; then | |
11482 | cat >> confdefs.h <<\EOF | |
11483 | #define HAVE_CONST_CAST | |
11484 | EOF | |
11485 | ||
11486 | fi | |
11487 | ||
11488 | ||
8284b0c5 | 11489 | |
21d1c967 GD |
11490 | SEARCH_INCLUDE="\ |
11491 | /usr/local/include \ | |
11492 | \ | |
11493 | /usr/Motif-1.2/include \ | |
11494 | /usr/Motif-2.1/include \ | |
11495 | \ | |
11496 | /usr/include/Motif1.2 \ | |
11497 | /opt/xpm/include/X11 \ | |
11498 | /opt/GBxpm/include/ \ | |
11499 | /opt/GBxpm/X11/include/ \ | |
11500 | \ | |
11501 | /usr/Motif1.2/include \ | |
11502 | /usr/dt/include \ | |
11503 | /usr/openwin/include \ | |
11504 | \ | |
11505 | /usr/include/Xm \ | |
11506 | \ | |
11507 | /usr/X11R6/include \ | |
11508 | /usr/X11R6.4/include \ | |
11509 | /usr/X11R5/include \ | |
11510 | /usr/X11R4/include \ | |
11511 | \ | |
11512 | /usr/include/X11R6 \ | |
11513 | /usr/include/X11R5 \ | |
11514 | /usr/include/X11R4 \ | |
11515 | \ | |
11516 | /usr/local/X11R6/include \ | |
11517 | /usr/local/X11R5/include \ | |
11518 | /usr/local/X11R4/include \ | |
11519 | \ | |
11520 | /usr/local/include/X11R6 \ | |
11521 | /usr/local/include/X11R5 \ | |
11522 | /usr/local/include/X11R4 \ | |
11523 | \ | |
11524 | /usr/X11/include \ | |
11525 | /usr/include/X11 \ | |
11526 | /usr/local/X11/include \ | |
11527 | /usr/local/include/X11 \ | |
11528 | \ | |
11529 | /usr/X386/include \ | |
11530 | /usr/x386/include \ | |
11531 | /usr/XFree86/include/X11 \ | |
11532 | \ | |
11533 | X:/XFree86/include \ | |
11534 | X:/XFree86/include/X11 \ | |
11535 | \ | |
11536 | /usr/include/gtk \ | |
11537 | /usr/local/include/gtk \ | |
11538 | /usr/include/glib \ | |
11539 | /usr/local/include/glib \ | |
11540 | \ | |
11541 | /usr/include/qt \ | |
11542 | /usr/local/include/qt \ | |
11543 | \ | |
11544 | /usr/include/windows \ | |
11545 | /usr/include/wine \ | |
11546 | /usr/local/include/wine \ | |
11547 | \ | |
11548 | /usr/unsupported/include \ | |
11549 | /usr/athena/include \ | |
11550 | /usr/local/x11r5/include \ | |
11551 | /usr/lpp/Xamples/include \ | |
11552 | \ | |
2b5f62a0 | 11553 | /usr/openwin/share/include" |
21d1c967 GD |
11554 | |
11555 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
11556 | ||
8284b0c5 | 11557 | |
a0b9e27f | 11558 | cat > confcache <<\EOF |
21d1c967 GD |
11559 | # This file is a shell script that caches the results of configure |
11560 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
11561 | # scripts and configure runs. It is not useful on other systems. |
11562 | # If it contains results you don't want to keep, you may remove or edit it. | |
21d1c967 | 11563 | # |
a0b9e27f MB |
11564 | # By default, configure uses ./config.cache as the cache file, |
11565 | # creating it if it does not exist already. You can give configure | |
11566 | # the --cache-file=FILE option to use a different cache file; that is | |
11567 | # what configure does when it calls configure scripts in | |
11568 | # subdirectories, so they share the cache. | |
11569 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
11570 | # config.status only pays attention to the cache file if you give it the | |
11571 | # --recheck option to rerun configure. | |
21d1c967 | 11572 | # |
a0b9e27f | 11573 | EOF |
21d1c967 GD |
11574 | # The following way of writing the cache mishandles newlines in values, |
11575 | # but we know of no workaround that is simple, portable, and efficient. | |
11576 | # So, don't put newlines in cache variables' values. | |
11577 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
11578 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
11579 | (set) 2>&1 | |
11580 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
11581 | *ac_space=\ *) | |
11582 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
11583 | # turns \\\\ into \\, and sed turns \\ into \). | |
11584 | sed -n \ | |
11585 | -e "s/'/'\\\\''/g" \ | |
11586 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
11587 | ;; | |
11588 | *) | |
11589 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
11590 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
11591 | ;; | |
11592 | esac >> confcache | |
11593 | if cmp -s $cache_file confcache; then | |
11594 | : | |
11595 | else | |
21d1c967 | 11596 | if test -w $cache_file; then |
a0b9e27f MB |
11597 | echo "updating cache $cache_file" |
11598 | cat confcache > $cache_file | |
21d1c967 GD |
11599 | else |
11600 | echo "not updating unwritable cache $cache_file" | |
11601 | fi | |
ab9b9eab | 11602 | fi |
21d1c967 | 11603 | rm -f confcache |
ab9b9eab | 11604 | |
247f5006 | 11605 | |
a0b9e27f MB |
11606 | if test "$USE_LINUX" = 1; then |
11607 | echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6 | |
ac0c4cc3 | 11608 | echo "configure:11609: checking for glibc 2.1 or later" >&5 |
a0b9e27f MB |
11609 | if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then |
11610 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11611 | else | |
11612 | ||
11613 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 11614 | #line 11615 "configure" |
ab9b9eab | 11615 | #include "confdefs.h" |
21d1c967 | 11616 | #include <features.h> |
a0b9e27f | 11617 | int main() { |
ab9b9eab | 11618 | |
21d1c967 GD |
11619 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) |
11620 | #error not glibc2.1 | |
11621 | #endif | |
a0b9e27f MB |
11622 | |
11623 | ; return 0; } | |
11624 | EOF | |
ac0c4cc3 | 11625 | if { (eval echo configure:11626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
11626 | rm -rf conftest* |
11627 | ||
21d1c967 | 11628 | wx_cv_lib_glibc21=yes |
a0b9e27f | 11629 | |
698dcdb6 | 11630 | else |
a0b9e27f MB |
11631 | echo "configure: failed program was:" >&5 |
11632 | cat conftest.$ac_ext >&5 | |
11633 | rm -rf conftest* | |
11634 | ||
21d1c967 | 11635 | wx_cv_lib_glibc21=no |
a0b9e27f MB |
11636 | |
11637 | ||
5c6fa7d2 | 11638 | fi |
a0b9e27f MB |
11639 | rm -f conftest* |
11640 | ||
247f5006 | 11641 | fi |
a0b9e27f MB |
11642 | |
11643 | echo "$ac_t""$wx_cv_lib_glibc21" 1>&6 | |
21d1c967 | 11644 | if test "$wx_cv_lib_glibc21" = "yes"; then |
a0b9e27f | 11645 | cat >> confdefs.h <<\EOF |
21d1c967 | 11646 | #define wxHAVE_GLIBC2 1 |
a0b9e27f | 11647 | EOF |
1e487827 | 11648 | |
90dd450c | 11649 | fi |
ab9b9eab VZ |
11650 | fi |
11651 | ||
5c0a20c3 VZ |
11652 | if test "x$wx_cv_lib_glibc21" = "xyes"; then |
11653 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
a0b9e27f | 11654 | cat >> confdefs.h <<\EOF |
5c0a20c3 | 11655 | #define _GNU_SOURCE 1 |
a0b9e27f | 11656 | EOF |
5c0a20c3 VZ |
11657 | |
11658 | fi | |
11659 | fi | |
11660 | ||
8284b0c5 MB |
11661 | |
11662 | ||
21d1c967 GD |
11663 | REGEX_INCLUDE= |
11664 | if test "$wxUSE_REGEX" != "no"; then | |
a0b9e27f | 11665 | cat >> confdefs.h <<\EOF |
21d1c967 | 11666 | #define wxUSE_REGEX 1 |
a0b9e27f | 11667 | EOF |
698dcdb6 | 11668 | |
8284b0c5 | 11669 | |
21d1c967 | 11670 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then |
a0b9e27f MB |
11671 | ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'` |
11672 | echo $ac_n "checking for regex.h""... $ac_c" 1>&6 | |
ac0c4cc3 | 11673 | echo "configure:11674: checking for regex.h" >&5 |
a0b9e27f MB |
11674 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11675 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11676 | else | |
11677 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 11678 | #line 11679 "configure" |
247f5006 VZ |
11679 | #include "confdefs.h" |
11680 | #include <regex.h> | |
a0b9e27f MB |
11681 | EOF |
11682 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ac0c4cc3 | 11683 | { (eval echo configure:11684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11684 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11685 | if test -z "$ac_err"; then | |
11686 | rm -rf conftest* | |
11687 | eval "ac_cv_header_$ac_safe=yes" | |
11688 | else | |
11689 | echo "$ac_err" >&5 | |
11690 | echo "configure: failed program was:" >&5 | |
21d1c967 | 11691 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11692 | rm -rf conftest* |
11693 | eval "ac_cv_header_$ac_safe=no" | |
21d1c967 | 11694 | fi |
a0b9e27f | 11695 | rm -f conftest* |
698dcdb6 | 11696 | fi |
a0b9e27f MB |
11697 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11698 | echo "$ac_t""yes" 1>&6 | |
11699 | for ac_func in regcomp | |
21d1c967 | 11700 | do |
a0b9e27f | 11701 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
ac0c4cc3 | 11702 | echo "configure:11703: checking for $ac_func" >&5 |
a0b9e27f MB |
11703 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11704 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 11705 | else |
a0b9e27f | 11706 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 11707 | #line 11708 "configure" |
a0b9e27f MB |
11708 | #include "confdefs.h" |
11709 | /* System header to define __stub macros and hopefully few prototypes, | |
11710 | which can conflict with char $ac_func(); below. */ | |
21d1c967 GD |
11711 | #include <assert.h> |
11712 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11713 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11714 | builtin and then its argument prototype would still apply. */ |
11715 | char $ac_func(); | |
11716 | ||
11717 | int main() { | |
11718 | ||
21d1c967 GD |
11719 | /* The GNU C library defines this for functions which it implements |
11720 | to always fail with ENOSYS. Some functions are actually named | |
11721 | something starting with __ and the normal name is an alias. */ | |
11722 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11723 | choke me | |
11724 | #else | |
a0b9e27f | 11725 | $ac_func(); |
21d1c967 | 11726 | #endif |
90dd450c | 11727 | |
a0b9e27f MB |
11728 | ; return 0; } |
11729 | EOF | |
ac0c4cc3 | 11730 | if { (eval echo configure:11731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
11731 | rm -rf conftest* |
11732 | eval "ac_cv_func_$ac_func=yes" | |
11733 | else | |
11734 | echo "configure: failed program was:" >&5 | |
11735 | cat conftest.$ac_ext >&5 | |
11736 | rm -rf conftest* | |
11737 | eval "ac_cv_func_$ac_func=no" | |
11738 | fi | |
11739 | rm -f conftest* | |
11740 | fi | |
5c6fa7d2 | 11741 | |
a0b9e27f MB |
11742 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
11743 | echo "$ac_t""yes" 1>&6 | |
11744 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11745 | cat >> confdefs.h <<EOF | |
11746 | #define $ac_tr_func 1 | |
11747 | EOF | |
11748 | ||
11749 | else | |
11750 | echo "$ac_t""no" 1>&6 | |
698dcdb6 | 11751 | fi |
21d1c967 GD |
11752 | done |
11753 | ||
a0b9e27f MB |
11754 | else |
11755 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11756 | fi |
11757 | ||
8284b0c5 | 11758 | |
21d1c967 GD |
11759 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
11760 | if test "$wxUSE_REGEX" = "sys" ; then | |
a0b9e27f | 11761 | { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11762 | else |
a0b9e27f | 11763 | echo "configure: warning: system regex library not found, will use built-in instead" 1>&2 |
21d1c967 GD |
11764 | wxUSE_REGEX=builtin |
11765 | fi | |
11766 | else | |
11767 | wxUSE_REGEX=sys | |
11768 | fi | |
ab9b9eab | 11769 | fi |
90dd450c | 11770 | |
21d1c967 GD |
11771 | if test "$wxUSE_REGEX" = "builtin" ; then |
11772 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
90dd450c | 11773 | fi |
21d1c967 | 11774 | fi |
90dd450c | 11775 | |
8284b0c5 | 11776 | |
21d1c967 GD |
11777 | ZLIB_INCLUDE= |
11778 | ZLIB_LINK= | |
11779 | if test "$wxUSE_ZLIB" != "no" ; then | |
a0b9e27f | 11780 | cat >> confdefs.h <<\EOF |
21d1c967 | 11781 | #define wxUSE_ZLIB 1 |
a0b9e27f | 11782 | EOF |
21d1c967 | 11783 | |
8284b0c5 | 11784 | |
21d1c967 | 11785 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then |
d775acfa VZ |
11786 | if test "$USE_DARWIN" = 1; then |
11787 | system_zlib_h_ok="yes" | |
11788 | else | |
11789 | echo $ac_n "checking for zlib.h >= 1.1.4""... $ac_c" 1>&6 | |
ac0c4cc3 | 11790 | echo "configure:11791: checking for zlib.h >= 1.1.4" >&5 |
d643b80e VZ |
11791 | if eval "test \"`echo '$''{'ac_cv_header_zlib_h'+set}'`\" = set"; then |
11792 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11793 | else | |
11794 | if test "$cross_compiling" = yes; then | |
89e6bf6d | 11795 | unset ac_cv_header_zlib_h |
d775acfa | 11796 | |
d643b80e VZ |
11797 | else |
11798 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 11799 | #line 11800 "configure" |
d643b80e VZ |
11800 | #include "confdefs.h" |
11801 | ||
d775acfa VZ |
11802 | #include <zlib.h> |
11803 | #include <stdio.h> | |
d643b80e | 11804 | |
d775acfa VZ |
11805 | |
11806 | int main() | |
11807 | { | |
11808 | FILE *f=fopen("conftestval", "w"); | |
11809 | if (!f) exit(1); | |
11810 | fprintf(f, "%s", | |
11811 | ZLIB_VERSION[0] == '1' && | |
11812 | (ZLIB_VERSION[2] > '1' || | |
11813 | (ZLIB_VERSION[2] == '1' && | |
11814 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
11815 | exit(0); | |
11816 | } | |
11817 | ||
d643b80e | 11818 | |
d643b80e | 11819 | EOF |
ac0c4cc3 | 11820 | if { (eval echo configure:11821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
d643b80e VZ |
11821 | then |
11822 | ac_cv_header_zlib_h=`cat conftestval` | |
11823 | else | |
11824 | echo "configure: failed program was:" >&5 | |
11825 | cat conftest.$ac_ext >&5 | |
11826 | rm -fr conftest* | |
11827 | ac_cv_header_zlib_h=no | |
11828 | fi | |
11829 | rm -fr conftest* | |
11830 | fi | |
11831 | ||
d775acfa | 11832 | |
d643b80e VZ |
11833 | fi |
11834 | ||
11835 | echo "$ac_t""$ac_cv_header_zlib_h" 1>&6 | |
89e6bf6d VZ |
11836 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` |
11837 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
ac0c4cc3 | 11838 | echo "configure:11839: checking for zlib.h" >&5 |
89e6bf6d VZ |
11839 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11840 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11841 | else | |
11842 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 11843 | #line 11844 "configure" |
89e6bf6d VZ |
11844 | #include "confdefs.h" |
11845 | #include <zlib.h> | |
11846 | EOF | |
11847 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ac0c4cc3 | 11848 | { (eval echo configure:11849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
89e6bf6d VZ |
11849 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11850 | if test -z "$ac_err"; then | |
11851 | rm -rf conftest* | |
11852 | eval "ac_cv_header_$ac_safe=yes" | |
11853 | else | |
11854 | echo "$ac_err" >&5 | |
11855 | echo "configure: failed program was:" >&5 | |
11856 | cat conftest.$ac_ext >&5 | |
11857 | rm -rf conftest* | |
11858 | eval "ac_cv_header_$ac_safe=no" | |
11859 | fi | |
11860 | rm -f conftest* | |
11861 | fi | |
11862 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11863 | echo "$ac_t""yes" 1>&6 | |
11864 | : | |
11865 | else | |
11866 | echo "$ac_t""no" 1>&6 | |
11867 | fi | |
11868 | ||
d643b80e | 11869 | |
d775acfa VZ |
11870 | system_zlib_h_ok=$ac_cv_header_zlib_h |
11871 | fi | |
11872 | ||
11873 | if test "$system_zlib_h_ok" = "yes"; then | |
d643b80e | 11874 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 |
ac0c4cc3 | 11875 | echo "configure:11876: checking for deflate in -lz" >&5 |
a0b9e27f MB |
11876 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
11877 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11878 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11879 | else |
a0b9e27f | 11880 | ac_save_LIBS="$LIBS" |
21d1c967 | 11881 | LIBS="-lz $LIBS" |
a0b9e27f | 11882 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 11883 | #line 11884 "configure" |
ab9b9eab | 11884 | #include "confdefs.h" |
21d1c967 GD |
11885 | /* Override any gcc2 internal prototype to avoid an error. */ |
11886 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11887 | builtin and then its argument prototype would still apply. */ |
11888 | char deflate(); | |
11889 | ||
11890 | int main() { | |
11891 | deflate() | |
11892 | ; return 0; } | |
11893 | EOF | |
ac0c4cc3 | 11894 | if { (eval echo configure:11895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
11895 | rm -rf conftest* |
11896 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11897 | else | |
11898 | echo "configure: failed program was:" >&5 | |
11899 | cat conftest.$ac_ext >&5 | |
11900 | rm -rf conftest* | |
11901 | eval "ac_cv_lib_$ac_lib_var=no" | |
90dd450c | 11902 | fi |
a0b9e27f MB |
11903 | rm -f conftest* |
11904 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 11905 | |
698dcdb6 | 11906 | fi |
a0b9e27f MB |
11907 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
11908 | echo "$ac_t""yes" 1>&6 | |
11909 | ZLIB_LINK=" -lz" | |
11910 | else | |
11911 | echo "$ac_t""no" 1>&6 | |
11912 | fi | |
698dcdb6 | 11913 | |
d643b80e | 11914 | fi |
247f5006 | 11915 | |
21d1c967 GD |
11916 | if test "x$ZLIB_LINK" = "x" ; then |
11917 | if test "$wxUSE_ZLIB" = "sys" ; then | |
d643b80e | 11918 | { echo "configure: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11919 | else |
d643b80e | 11920 | echo "configure: warning: zlib library not found or too old, will use built-in instead" 1>&2 |
21d1c967 GD |
11921 | wxUSE_ZLIB=builtin |
11922 | fi | |
11923 | else | |
11924 | wxUSE_ZLIB=sys | |
11925 | fi | |
11926 | fi | |
11927 | ||
11928 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
11929 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
11930 | fi | |
ab9b9eab VZ |
11931 | fi |
11932 | ||
8284b0c5 | 11933 | |
21d1c967 GD |
11934 | PNG_INCLUDE= |
11935 | PNG_LINK= | |
11936 | if test "$wxUSE_LIBPNG" != "no" ; then | |
a0b9e27f | 11937 | cat >> confdefs.h <<\EOF |
21d1c967 | 11938 | #define wxUSE_LIBPNG 1 |
a0b9e27f | 11939 | EOF |
90dd450c | 11940 | |
8284b0c5 | 11941 | |
21d1c967 | 11942 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then |
a0b9e27f | 11943 | echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2 |
21d1c967 GD |
11944 | wxUSE_LIBPNG=sys |
11945 | fi | |
90dd450c | 11946 | |
21d1c967 | 11947 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
a0b9e27f | 11948 | echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2 |
21d1c967 GD |
11949 | wxUSE_LIBPNG=builtin |
11950 | fi | |
11951 | ||
11952 | if test "$wxUSE_MGL" != 1 ; then | |
11953 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
5d3f766d | 11954 | echo $ac_n "checking for png.h > 0.90""... $ac_c" 1>&6 |
ac0c4cc3 | 11955 | echo "configure:11956: checking for png.h > 0.90" >&5 |
5d3f766d VZ |
11956 | if eval "test \"`echo '$''{'ac_cv_header_png_h'+set}'`\" = set"; then |
11957 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11958 | else | |
11959 | if test "$cross_compiling" = yes; then | |
89e6bf6d | 11960 | unset ac_cv_header_png_h |
5d3f766d VZ |
11961 | |
11962 | else | |
11963 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 11964 | #line 11965 "configure" |
5d3f766d VZ |
11965 | #include "confdefs.h" |
11966 | ||
11967 | #include <png.h> | |
11968 | #include <stdio.h> | |
11969 | ||
11970 | int main() | |
11971 | { | |
11972 | FILE *f=fopen("conftestval", "w"); | |
11973 | if (!f) exit(1); | |
11974 | fprintf(f, "%s", | |
11975 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
11976 | exit(0); | |
11977 | } | |
11978 | ||
11979 | EOF | |
ac0c4cc3 | 11980 | if { (eval echo configure:11981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
5d3f766d VZ |
11981 | then |
11982 | ac_cv_header_png_h=`cat conftestval` | |
11983 | else | |
11984 | echo "configure: failed program was:" >&5 | |
11985 | cat conftest.$ac_ext >&5 | |
11986 | rm -fr conftest* | |
11987 | ac_cv_header_png_h=no | |
11988 | fi | |
11989 | rm -fr conftest* | |
11990 | fi | |
11991 | ||
11992 | ||
11993 | fi | |
11994 | ||
11995 | echo "$ac_t""$ac_cv_header_png_h" 1>&6 | |
89e6bf6d VZ |
11996 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` |
11997 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
ac0c4cc3 | 11998 | echo "configure:11999: checking for png.h" >&5 |
89e6bf6d VZ |
11999 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12000 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12001 | else | |
12002 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 12003 | #line 12004 "configure" |
89e6bf6d VZ |
12004 | #include "confdefs.h" |
12005 | #include <png.h> | |
12006 | EOF | |
12007 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ac0c4cc3 | 12008 | { (eval echo configure:12009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
89e6bf6d VZ |
12009 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12010 | if test -z "$ac_err"; then | |
12011 | rm -rf conftest* | |
12012 | eval "ac_cv_header_$ac_safe=yes" | |
12013 | else | |
12014 | echo "$ac_err" >&5 | |
12015 | echo "configure: failed program was:" >&5 | |
12016 | cat conftest.$ac_ext >&5 | |
12017 | rm -rf conftest* | |
12018 | eval "ac_cv_header_$ac_safe=no" | |
12019 | fi | |
12020 | rm -f conftest* | |
12021 | fi | |
12022 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12023 | echo "$ac_t""yes" 1>&6 | |
12024 | : | |
12025 | else | |
12026 | echo "$ac_t""no" 1>&6 | |
12027 | fi | |
12028 | ||
5d3f766d VZ |
12029 | |
12030 | if test "$ac_cv_header_png_h" = "yes"; then | |
12031 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 | |
ac0c4cc3 | 12032 | echo "configure:12033: checking for png_check_sig in -lpng" >&5 |
a0b9e27f MB |
12033 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
12034 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12035 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12036 | else |
a0b9e27f | 12037 | ac_save_LIBS="$LIBS" |
21d1c967 | 12038 | LIBS="-lpng -lz -lm $LIBS" |
a0b9e27f | 12039 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 12040 | #line 12041 "configure" |
90dd450c | 12041 | #include "confdefs.h" |
21d1c967 GD |
12042 | /* Override any gcc2 internal prototype to avoid an error. */ |
12043 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
12044 | builtin and then its argument prototype would still apply. */ |
12045 | char png_check_sig(); | |
90dd450c | 12046 | |
a0b9e27f MB |
12047 | int main() { |
12048 | png_check_sig() | |
12049 | ; return 0; } | |
12050 | EOF | |
ac0c4cc3 | 12051 | if { (eval echo configure:12052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
12052 | rm -rf conftest* |
12053 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12054 | else | |
12055 | echo "configure: failed program was:" >&5 | |
12056 | cat conftest.$ac_ext >&5 | |
12057 | rm -rf conftest* | |
12058 | eval "ac_cv_lib_$ac_lib_var=no" | |
12059 | fi | |
12060 | rm -f conftest* | |
12061 | LIBS="$ac_save_LIBS" | |
247f5006 | 12062 | |
90dd450c | 12063 | fi |
a0b9e27f MB |
12064 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
12065 | echo "$ac_t""yes" 1>&6 | |
12066 | PNG_LINK=" -lpng" | |
12067 | else | |
12068 | echo "$ac_t""no" 1>&6 | |
12069 | fi | |
90dd450c | 12070 | |
5d3f766d | 12071 | fi |
247f5006 | 12072 | |
21d1c967 GD |
12073 | if test "x$PNG_LINK" = "x" ; then |
12074 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
0c98a14e | 12075 | { echo "configure: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; } |
21d1c967 | 12076 | else |
0c98a14e | 12077 | echo "configure: warning: system png library not found or too old, will use built-in instead" 1>&2 |
21d1c967 GD |
12078 | wxUSE_LIBPNG=builtin |
12079 | fi | |
12080 | else | |
2b5f62a0 | 12081 | wxUSE_LIBPNG=sys |
21d1c967 GD |
12082 | fi |
12083 | fi | |
12084 | fi | |
90dd450c | 12085 | |
21d1c967 GD |
12086 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
12087 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
12088 | fi | |
90dd450c | 12089 | |
21d1c967 | 12090 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
90dd450c VZ |
12091 | fi |
12092 | ||
8284b0c5 | 12093 | |
21d1c967 GD |
12094 | JPEG_INCLUDE= |
12095 | JPEG_LINK= | |
12096 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
a0b9e27f | 12097 | cat >> confdefs.h <<\EOF |
21d1c967 | 12098 | #define wxUSE_LIBJPEG 1 |
a0b9e27f | 12099 | EOF |
90dd450c | 12100 | |
8284b0c5 | 12101 | |
21d1c967 | 12102 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then |
a0b9e27f | 12103 | echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2 |
21d1c967 GD |
12104 | wxUSE_LIBJPEG=sys |
12105 | fi | |
90dd450c | 12106 | |
21d1c967 GD |
12107 | if test "$wxUSE_MGL" != 1 ; then |
12108 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
a0b9e27f | 12109 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 |
ac0c4cc3 | 12110 | echo "configure:12111: checking for jpeglib.h" >&5 |
a0b9e27f MB |
12111 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then |
12112 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12113 | else |
a0b9e27f | 12114 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 12115 | #line 12116 "configure" |
21d1c967 | 12116 | #include "confdefs.h" |
90dd450c | 12117 | |
21d1c967 GD |
12118 | #undef HAVE_STDLIB_H |
12119 | #include <stdio.h> | |
12120 | #include <jpeglib.h> | |
a0b9e27f MB |
12121 | |
12122 | int main() { | |
90dd450c | 12123 | |
a0b9e27f MB |
12124 | |
12125 | ; return 0; } | |
12126 | EOF | |
ac0c4cc3 | 12127 | if { (eval echo configure:12128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 12128 | rm -rf conftest* |
21d1c967 | 12129 | ac_cv_header_jpeglib_h=yes |
90dd450c | 12130 | else |
a0b9e27f MB |
12131 | echo "configure: failed program was:" >&5 |
12132 | cat conftest.$ac_ext >&5 | |
12133 | rm -rf conftest* | |
12134 | ac_cv_header_jpeglib_h=no | |
12135 | ||
90dd450c | 12136 | fi |
a0b9e27f MB |
12137 | rm -f conftest* |
12138 | ||
90dd450c VZ |
12139 | fi |
12140 | ||
a0b9e27f | 12141 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 |
90dd450c | 12142 | |
21d1c967 | 12143 | if test "$ac_cv_header_jpeglib_h" = "yes"; then |
a0b9e27f | 12144 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 |
ac0c4cc3 | 12145 | echo "configure:12146: checking for jpeg_read_header in -ljpeg" >&5 |
a0b9e27f MB |
12146 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
12147 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12148 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12149 | else |
a0b9e27f | 12150 | ac_save_LIBS="$LIBS" |
21d1c967 | 12151 | LIBS="-ljpeg $LIBS" |
a0b9e27f | 12152 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 12153 | #line 12154 "configure" |
21d1c967 GD |
12154 | #include "confdefs.h" |
12155 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12156 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
12157 | builtin and then its argument prototype would still apply. */ |
12158 | char jpeg_read_header(); | |
12159 | ||
12160 | int main() { | |
12161 | jpeg_read_header() | |
12162 | ; return 0; } | |
12163 | EOF | |
ac0c4cc3 | 12164 | if { (eval echo configure:12165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
12165 | rm -rf conftest* |
12166 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12167 | else | |
12168 | echo "configure: failed program was:" >&5 | |
12169 | cat conftest.$ac_ext >&5 | |
12170 | rm -rf conftest* | |
12171 | eval "ac_cv_lib_$ac_lib_var=no" | |
12172 | fi | |
12173 | rm -f conftest* | |
12174 | LIBS="$ac_save_LIBS" | |
12175 | ||
12176 | fi | |
12177 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12178 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 12179 | JPEG_LINK=" -ljpeg" |
a0b9e27f MB |
12180 | else |
12181 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
12182 | fi |
12183 | ||
21d1c967 | 12184 | fi |
90dd450c | 12185 | |
21d1c967 GD |
12186 | if test "x$JPEG_LINK" = "x" ; then |
12187 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
a0b9e27f | 12188 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; } |
21d1c967 | 12189 | else |
a0b9e27f | 12190 | echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2 |
21d1c967 GD |
12191 | wxUSE_LIBJPEG=builtin |
12192 | fi | |
12193 | else | |
12194 | wxUSE_LIBJPEG=sys | |
12195 | fi | |
12196 | fi | |
12197 | fi | |
90dd450c | 12198 | |
21d1c967 GD |
12199 | if test "$wxUSE_LIBJPEG" = "builtin" ; then |
12200 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
12201 | fi | |
12202 | fi | |
90dd450c | 12203 | |
8284b0c5 | 12204 | |
21d1c967 GD |
12205 | TIFF_INCLUDE= |
12206 | TIFF_LINK= | |
2b5f62a0 | 12207 | TIFF_PREREQ_LINKS=-lm |
21d1c967 | 12208 | if test "$wxUSE_LIBTIFF" != "no" ; then |
a0b9e27f | 12209 | cat >> confdefs.h <<\EOF |
21d1c967 | 12210 | #define wxUSE_LIBTIFF 1 |
a0b9e27f | 12211 | EOF |
21d1c967 | 12212 | |
8284b0c5 | 12213 | |
21d1c967 | 12214 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then |
2b5f62a0 VZ |
12215 | if test "$wxUSE_LIBJPEG" = "sys"; then |
12216 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
12217 | fi | |
12218 | if test "$wxUSE_ZLIB" = "sys"; then | |
12219 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
12220 | fi | |
a0b9e27f MB |
12221 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` |
12222 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
ac0c4cc3 | 12223 | echo "configure:12224: checking for tiffio.h" >&5 |
a0b9e27f MB |
12224 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12225 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12226 | else | |
12227 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 12228 | #line 12229 "configure" |
247f5006 VZ |
12229 | #include "confdefs.h" |
12230 | #include <tiffio.h> | |
a0b9e27f MB |
12231 | EOF |
12232 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ac0c4cc3 | 12233 | { (eval echo configure:12234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
12234 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12235 | if test -z "$ac_err"; then | |
12236 | rm -rf conftest* | |
12237 | eval "ac_cv_header_$ac_safe=yes" | |
12238 | else | |
12239 | echo "$ac_err" >&5 | |
12240 | echo "configure: failed program was:" >&5 | |
21d1c967 | 12241 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
12242 | rm -rf conftest* |
12243 | eval "ac_cv_header_$ac_safe=no" | |
21d1c967 | 12244 | fi |
a0b9e27f | 12245 | rm -f conftest* |
21d1c967 | 12246 | fi |
a0b9e27f MB |
12247 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12248 | echo "$ac_t""yes" 1>&6 | |
12249 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
ac0c4cc3 | 12250 | echo "configure:12251: checking for TIFFError in -ltiff" >&5 |
a0b9e27f MB |
12251 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
12252 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12253 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 12254 | else |
a0b9e27f | 12255 | ac_save_LIBS="$LIBS" |
2b5f62a0 | 12256 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" |
a0b9e27f | 12257 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 12258 | #line 12259 "configure" |
ab9b9eab VZ |
12259 | #include "confdefs.h" |
12260 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12261 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
12262 | builtin and then its argument prototype would still apply. */ |
12263 | char TIFFError(); | |
ab9b9eab | 12264 | |
a0b9e27f MB |
12265 | int main() { |
12266 | TIFFError() | |
12267 | ; return 0; } | |
12268 | EOF | |
ac0c4cc3 | 12269 | if { (eval echo configure:12270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
12270 | rm -rf conftest* |
12271 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12272 | else | |
12273 | echo "configure: failed program was:" >&5 | |
12274 | cat conftest.$ac_ext >&5 | |
12275 | rm -rf conftest* | |
12276 | eval "ac_cv_lib_$ac_lib_var=no" | |
12277 | fi | |
12278 | rm -f conftest* | |
12279 | LIBS="$ac_save_LIBS" | |
247f5006 | 12280 | |
21d1c967 | 12281 | fi |
a0b9e27f MB |
12282 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
12283 | echo "$ac_t""yes" 1>&6 | |
12284 | TIFF_LINK=" -ltiff" | |
12285 | else | |
12286 | echo "$ac_t""no" 1>&6 | |
12287 | fi | |
cd6d6d5b | 12288 | |
a0b9e27f MB |
12289 | |
12290 | else | |
12291 | echo "$ac_t""no" 1>&6 | |
12292 | fi | |
8284b0c5 | 12293 | |
247f5006 | 12294 | |
21d1c967 GD |
12295 | if test "x$TIFF_LINK" = "x" ; then |
12296 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
a0b9e27f | 12297 | { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; } |
90dd450c | 12298 | else |
a0b9e27f | 12299 | echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2 |
21d1c967 | 12300 | wxUSE_LIBTIFF=builtin |
d8356fa3 | 12301 | fi |
d8356fa3 | 12302 | else |
21d1c967 | 12303 | wxUSE_LIBTIFF=sys |
d8356fa3 | 12304 | fi |
21d1c967 | 12305 | fi |
d8356fa3 | 12306 | |
21d1c967 GD |
12307 | if test "$wxUSE_LIBTIFF" = "builtin" ; then |
12308 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
1e6feb95 | 12309 | fi |
21d1c967 | 12310 | fi |
10f2d63a | 12311 | |
8284b0c5 | 12312 | |
21d1c967 | 12313 | AFMINSTALL= |
2b5f62a0 | 12314 | WIN32INSTALL= |
90dd450c | 12315 | |
21d1c967 GD |
12316 | TOOLKIT= |
12317 | TOOLKIT_INCLUDE= | |
12318 | WIDGET_SET= | |
12319 | ||
12320 | if test "$USE_WIN32" = 1 ; then | |
a0b9e27f | 12321 | for ac_hdr in w32api.h |
21d1c967 | 12322 | do |
a0b9e27f MB |
12323 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12324 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
ac0c4cc3 | 12325 | echo "configure:12326: checking for $ac_hdr" >&5 |
a0b9e27f MB |
12326 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12327 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12328 | else | |
12329 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 12330 | #line 12331 "configure" |
247f5006 | 12331 | #include "confdefs.h" |
a0b9e27f MB |
12332 | #include <$ac_hdr> |
12333 | EOF | |
12334 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ac0c4cc3 | 12335 | { (eval echo configure:12336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
12336 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12337 | if test -z "$ac_err"; then | |
12338 | rm -rf conftest* | |
12339 | eval "ac_cv_header_$ac_safe=yes" | |
12340 | else | |
12341 | echo "$ac_err" >&5 | |
12342 | echo "configure: failed program was:" >&5 | |
f79bd02d | 12343 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
12344 | rm -rf conftest* |
12345 | eval "ac_cv_header_$ac_safe=no" | |
f79bd02d | 12346 | fi |
a0b9e27f | 12347 | rm -f conftest* |
21d1c967 | 12348 | fi |
a0b9e27f MB |
12349 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12350 | echo "$ac_t""yes" 1>&6 | |
12351 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12352 | cat >> confdefs.h <<EOF | |
12353 | #define $ac_tr_hdr 1 | |
12354 | EOF | |
12355 | ||
12356 | else | |
12357 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
12358 | fi |
12359 | done | |
f79bd02d | 12360 | |
a0b9e27f MB |
12361 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` |
12362 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
ac0c4cc3 | 12363 | echo "configure:12364: checking for windows.h" >&5 |
a0b9e27f MB |
12364 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12365 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12366 | else |
a0b9e27f | 12367 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 12368 | #line 12369 "configure" |
247f5006 VZ |
12369 | #include "confdefs.h" |
12370 | #include <windows.h> | |
a0b9e27f MB |
12371 | EOF |
12372 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ac0c4cc3 | 12373 | { (eval echo configure:12374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
12374 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12375 | if test -z "$ac_err"; then | |
12376 | rm -rf conftest* | |
12377 | eval "ac_cv_header_$ac_safe=yes" | |
12378 | else | |
12379 | echo "$ac_err" >&5 | |
12380 | echo "configure: failed program was:" >&5 | |
90dd450c | 12381 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
12382 | rm -rf conftest* |
12383 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 12384 | fi |
a0b9e27f | 12385 | rm -f conftest* |
90dd450c | 12386 | fi |
a0b9e27f MB |
12387 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12388 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 12389 | : |
90dd450c | 12390 | else |
a0b9e27f | 12391 | echo "$ac_t""no" 1>&6 |
21d1c967 | 12392 | |
a0b9e27f MB |
12393 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } |
12394 | ||
5c6fa7d2 | 12395 | fi |
7b4a847f | 12396 | |
5c6fa7d2 | 12397 | |
a0b9e27f | 12398 | echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6 |
ac0c4cc3 | 12399 | echo "configure:12400: checking if w32api has good enough MSIE support" >&5 |
a0b9e27f MB |
12400 | if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then |
12401 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 12402 | else |
a0b9e27f MB |
12403 | |
12404 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 12405 | #line 12406 "configure" |
f79bd02d | 12406 | #include "confdefs.h" |
21d1c967 | 12407 | #include <w32api.h> |
a0b9e27f | 12408 | int main() { |
f79bd02d | 12409 | |
21d1c967 GD |
12410 | #define wxCHECK_W32API_VERSION( major, minor ) \ |
12411 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
12412 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
12413 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
12414 | ||
12415 | #if !wxCHECK_W32API_VERSION(1,1) | |
12416 | #error You need w32api 1.1 or newer | |
12417 | #endif | |
a0b9e27f MB |
12418 | |
12419 | ; return 0; } | |
12420 | EOF | |
ac0c4cc3 | 12421 | if { (eval echo configure:12422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
12422 | rm -rf conftest* |
12423 | ||
21d1c967 | 12424 | wx_cv_w32api_win32_ie=yes |
a0b9e27f | 12425 | |
f79bd02d | 12426 | else |
a0b9e27f MB |
12427 | echo "configure: failed program was:" >&5 |
12428 | cat conftest.$ac_ext >&5 | |
12429 | rm -rf conftest* | |
12430 | ||
21d1c967 | 12431 | wx_cv_w32api_win32_ie=no |
a0b9e27f | 12432 | |
5c6fa7d2 | 12433 | fi |
a0b9e27f MB |
12434 | rm -f conftest* |
12435 | ||
247f5006 | 12436 | fi |
a0b9e27f MB |
12437 | |
12438 | echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6 | |
21d1c967 GD |
12439 | if test "$wx_cv_w32api_win32_ie" = "yes" ; then |
12440 | CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400" | |
12441 | fi | |
f79bd02d | 12442 | |
21d1c967 GD |
12443 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" |
12444 | ||
12445 | case "${host}" in | |
12446 | *-*-cygwin* ) | |
12447 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32" | |
12448 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
f79bd02d | 12449 | esac |
f79bd02d | 12450 | |
21d1c967 GD |
12451 | if test "$wxUSE_ODBC" = "yes" ; then |
12452 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
12453 | fi | |
f79bd02d | 12454 | |
21d1c967 GD |
12455 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
12456 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
2b5f62a0 VZ |
12457 | |
12458 | WIN32INSTALL=win32install | |
f79bd02d | 12459 | fi |
f79bd02d | 12460 | |
b2fee376 | 12461 | if test "$USE_DARWIN" = 1; then |
50bcbd3d | 12462 | if test "$wxUSE_PRECOMP" = "yes"; then |
b2fee376 GD |
12463 | CPPFLAGS="$CPPFLAGS -cpp-precomp" |
12464 | else | |
12465 | CPPFLAGS="$CPPFLAGS -no-cpp-precomp" | |
12466 | fi | |
12467 | fi | |
12468 | ||
21d1c967 GD |
12469 | if test "$wxUSE_GUI" = "yes"; then |
12470 | USE_GUI=1 | |
f79bd02d | 12471 | |
21d1c967 | 12472 | GUI_TK_LIBRARY= |
f79bd02d | 12473 | |
21d1c967 GD |
12474 | WXGTK12= |
12475 | WXGTK127= | |
12476 | WXGTK20= | |
f79bd02d | 12477 | |
21d1c967 GD |
12478 | if test "$wxUSE_MSW" = 1 ; then |
12479 | TOOLKIT=MSW | |
12480 | GUIDIST=MSW_DIST | |
f79bd02d | 12481 | |
89e6bf6d | 12482 | LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows" |
f79bd02d JS |
12483 | fi |
12484 | ||
21d1c967 | 12485 | if test "$wxUSE_GTK" = 1; then |
a0b9e27f | 12486 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 |
ac0c4cc3 | 12487 | echo "configure:12488: checking for GTK+ version" >&5 |
21d1c967 GD |
12488 | |
12489 | gtk_version_cached=1 | |
a0b9e27f MB |
12490 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then |
12491 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f79bd02d | 12492 | else |
a0b9e27f | 12493 | |
21d1c967 | 12494 | gtk_version_cached=0 |
a0b9e27f | 12495 | echo "$ac_t""" 1>&6 |
f79bd02d | 12496 | |
21d1c967 GD |
12497 | GTK_MODULES= |
12498 | if test "$wxUSE_THREADS" = "yes"; then | |
12499 | GTK_MODULES=gthread | |
12500 | fi | |
f79bd02d | 12501 | |
2b5f62a0 | 12502 | wx_cv_lib_gtk= |
21d1c967 GD |
12503 | if test "x$wxUSE_GTK2" = "xyes"; then |
12504 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
12505 | if test "${enable_gtktest+set}" = set; then | |
12506 | enableval="$enable_gtktest" | |
a0b9e27f | 12507 | : |
f79bd02d | 12508 | else |
21d1c967 | 12509 | enable_gtktest=yes |
a0b9e27f MB |
12510 | fi |
12511 | ||
f79bd02d | 12512 | |
21d1c967 GD |
12513 | pkg_config_args=gtk+-2.0 |
12514 | for module in . $GTK_MODULES | |
12515 | do | |
12516 | case "$module" in | |
a0b9e27f | 12517 | gthread) |
21d1c967 GD |
12518 | pkg_config_args="$pkg_config_args gthread-2.0" |
12519 | ;; | |
12520 | esac | |
12521 | done | |
12522 | ||
12523 | no_gtk="" | |
f79bd02d | 12524 | |
21d1c967 GD |
12525 | # Extract the first word of "pkg-config", so it can be a program name with args. |
12526 | set dummy pkg-config; ac_word=$2 | |
a0b9e27f | 12527 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
ac0c4cc3 | 12528 | echo "configure:12529: checking for $ac_word" >&5 |
a0b9e27f MB |
12529 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
12530 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12531 | else |
a0b9e27f MB |
12532 | case "$PKG_CONFIG" in |
12533 | /*) | |
21d1c967 GD |
12534 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
12535 | ;; | |
a0b9e27f MB |
12536 | ?:/*) |
12537 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
12538 | ;; | |
21d1c967 | 12539 | *) |
a0b9e27f MB |
12540 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
12541 | ac_dummy="$PATH" | |
12542 | for ac_dir in $ac_dummy; do | |
12543 | test -z "$ac_dir" && ac_dir=. | |
12544 | if test -f $ac_dir/$ac_word; then | |
12545 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
12546 | break | |
12547 | fi | |
12548 | done | |
12549 | IFS="$ac_save_ifs" | |
21d1c967 GD |
12550 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
12551 | ;; | |
12552 | esac | |
f79bd02d | 12553 | fi |
a0b9e27f | 12554 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
21d1c967 | 12555 | if test -n "$PKG_CONFIG"; then |
a0b9e27f | 12556 | echo "$ac_t""$PKG_CONFIG" 1>&6 |
f79bd02d | 12557 | else |
a0b9e27f | 12558 | echo "$ac_t""no" 1>&6 |
f79bd02d JS |
12559 | fi |
12560 | ||
8284b0c5 | 12561 | |
21d1c967 GD |
12562 | if test x$PKG_CONFIG != xno ; then |
12563 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
12564 | : | |
12565 | else | |
12566 | echo *** pkg-config too old; version 0.7 or better required. | |
12567 | no_gtk=yes | |
12568 | PKG_CONFIG=no | |
12569 | fi | |
12570 | else | |
12571 | no_gtk=yes | |
12572 | fi | |
f79bd02d | 12573 | |
21d1c967 | 12574 | min_gtk_version=2.0.0 |
a0b9e27f | 12575 | echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6 |
ac0c4cc3 | 12576 | echo "configure:12577: checking for GTK+ - version >= $min_gtk_version" >&5 |
f79bd02d | 12577 | |
21d1c967 GD |
12578 | if test x$PKG_CONFIG != xno ; then |
12579 | ## don't try to run the test against uninstalled libtool libs | |
12580 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
12581 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
12582 | enable_gtktest=no | |
12583 | fi | |
f79bd02d | 12584 | |
21d1c967 GD |
12585 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then |
12586 | : | |
12587 | else | |
12588 | no_gtk=yes | |
12589 | fi | |
12590 | fi | |
f79bd02d | 12591 | |
21d1c967 GD |
12592 | if test x"$no_gtk" = x ; then |
12593 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
12594 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
12595 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
12596 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12597 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
12598 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12599 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
12600 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12601 | if test "x$enable_gtktest" = "xyes" ; then | |
12602 | ac_save_CFLAGS="$CFLAGS" | |
12603 | ac_save_LIBS="$LIBS" | |
12604 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12605 | LIBS="$GTK_LIBS $LIBS" | |
12606 | rm -f conf.gtktest | |
12607 | if test "$cross_compiling" = yes; then | |
12608 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 12609 | else |
a0b9e27f | 12610 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 12611 | #line 12612 "configure" |
f79bd02d | 12612 | #include "confdefs.h" |
f79bd02d | 12613 | |
21d1c967 GD |
12614 | #include <gtk/gtk.h> |
12615 | #include <stdio.h> | |
12616 | #include <stdlib.h> | |
f79bd02d | 12617 | |
a0b9e27f | 12618 | int |
21d1c967 GD |
12619 | main () |
12620 | { | |
12621 | int major, minor, micro; | |
12622 | char *tmp_version; | |
f79bd02d | 12623 | |
21d1c967 | 12624 | system ("touch conf.gtktest"); |
f79bd02d | 12625 | |
21d1c967 GD |
12626 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
12627 | tmp_version = g_strdup("$min_gtk_version"); | |
12628 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12629 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12630 | exit(1); | |
12631 | } | |
f79bd02d | 12632 | |
21d1c967 GD |
12633 | if ((gtk_major_version != $gtk_config_major_version) || |
12634 | (gtk_minor_version != $gtk_config_minor_version) || | |
12635 | (gtk_micro_version != $gtk_config_micro_version)) | |
12636 | { | |
a0b9e27f | 12637 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
12638 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
12639 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12640 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
12641 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12642 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12643 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12644 | printf("*** required on your system.\n"); | |
12645 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
12646 | printf("*** to point to the correct configuration files\n"); | |
a0b9e27f | 12647 | } |
21d1c967 GD |
12648 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || |
12649 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12650 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12651 | { | |
12652 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12653 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12654 | printf("*** library (version %d.%d.%d)\n", | |
12655 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12656 | } | |
12657 | else | |
12658 | { | |
12659 | if ((gtk_major_version > major) || | |
12660 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12661 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12662 | { | |
12663 | return 0; | |
12664 | } | |
12665 | else | |
12666 | { | |
12667 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12668 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12669 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12670 | major, minor, micro); | |
12671 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12672 | printf("***\n"); | |
12673 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12674 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
12675 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12676 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
12677 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
12678 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12679 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12680 | } | |
12681 | } | |
12682 | return 1; | |
12683 | } | |
f79bd02d | 12684 | |
a0b9e27f | 12685 | EOF |
ac0c4cc3 | 12686 | if { (eval echo configure:12687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 12687 | then |
21d1c967 | 12688 | : |
f79bd02d | 12689 | else |
a0b9e27f MB |
12690 | echo "configure: failed program was:" >&5 |
12691 | cat conftest.$ac_ext >&5 | |
12692 | rm -fr conftest* | |
12693 | no_gtk=yes | |
f79bd02d | 12694 | fi |
a0b9e27f | 12695 | rm -fr conftest* |
f79bd02d | 12696 | fi |
a0b9e27f | 12697 | |
21d1c967 GD |
12698 | CFLAGS="$ac_save_CFLAGS" |
12699 | LIBS="$ac_save_LIBS" | |
12700 | fi | |
12701 | fi | |
12702 | if test "x$no_gtk" = x ; then | |
a0b9e27f MB |
12703 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 |
12704 | wx_cv_lib_gtk=2.0 | |
21d1c967 | 12705 | else |
a0b9e27f | 12706 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12707 | if test "$PKG_CONFIG" = "no" ; then |
12708 | echo "*** A new enough version of pkg-config was not found." | |
12709 | echo "*** See http://pkgconfig.sourceforge.net" | |
12710 | else | |
12711 | if test -f conf.gtktest ; then | |
12712 | : | |
12713 | else | |
12714 | echo "*** Could not run GTK+ test program, checking why..." | |
579d8138 VS |
12715 | ac_save_CFLAGS="$CFLAGS" |
12716 | ac_save_LIBS="$LIBS" | |
21d1c967 GD |
12717 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
12718 | LIBS="$LIBS $GTK_LIBS" | |
a0b9e27f | 12719 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 12720 | #line 12721 "configure" |
f79bd02d | 12721 | #include "confdefs.h" |
21d1c967 GD |
12722 | |
12723 | #include <gtk/gtk.h> | |
12724 | #include <stdio.h> | |
f79bd02d | 12725 | |
a0b9e27f MB |
12726 | int main() { |
12727 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
12728 | ; return 0; } | |
12729 | EOF | |
ac0c4cc3 | 12730 | if { (eval echo configure:12731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 12731 | rm -rf conftest* |
21d1c967 GD |
12732 | echo "*** The test program compiled, but did not run. This usually means" |
12733 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
12734 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
12735 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12736 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12737 | echo "*** is required on your system" | |
12738 | echo "***" | |
12739 | echo "*** If you have an old version installed, it is best to remove it, although" | |
a0b9e27f | 12740 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
f79bd02d | 12741 | else |
a0b9e27f MB |
12742 | echo "configure: failed program was:" >&5 |
12743 | cat conftest.$ac_ext >&5 | |
12744 | rm -rf conftest* | |
12745 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
579d8138 | 12746 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." |
f79bd02d | 12747 | fi |
a0b9e27f | 12748 | rm -f conftest* |
21d1c967 GD |
12749 | CFLAGS="$ac_save_CFLAGS" |
12750 | LIBS="$ac_save_LIBS" | |
12751 | fi | |
12752 | fi | |
12753 | GTK_CFLAGS="" | |
12754 | GTK_LIBS="" | |
12755 | : | |
12756 | fi | |
a0b9e27f MB |
12757 | |
12758 | ||
21d1c967 | 12759 | rm -f conf.gtktest |
f79bd02d | 12760 | |
2b5f62a0 | 12761 | else |
a0b9e27f | 12762 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
21d1c967 GD |
12763 | if test "${with_gtk_prefix+set}" = set; then |
12764 | withval="$with_gtk_prefix" | |
12765 | gtk_config_prefix="$withval" | |
12766 | else | |
12767 | gtk_config_prefix="" | |
a0b9e27f | 12768 | fi |
f79bd02d | 12769 | |
21d1c967 GD |
12770 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
12771 | if test "${with_gtk_exec_prefix+set}" = set; then | |
12772 | withval="$with_gtk_exec_prefix" | |
12773 | gtk_config_exec_prefix="$withval" | |
12774 | else | |
12775 | gtk_config_exec_prefix="" | |
a0b9e27f MB |
12776 | fi |
12777 | ||
21d1c967 GD |
12778 | # Check whether --enable-gtktest or --disable-gtktest was given. |
12779 | if test "${enable_gtktest+set}" = set; then | |
12780 | enableval="$enable_gtktest" | |
a0b9e27f | 12781 | : |
21d1c967 GD |
12782 | else |
12783 | enable_gtktest=yes | |
a0b9e27f MB |
12784 | fi |
12785 | ||
21d1c967 GD |
12786 | |
12787 | for module in . $GTK_MODULES | |
12788 | do | |
12789 | case "$module" in | |
a0b9e27f | 12790 | gthread) |
21d1c967 GD |
12791 | gtk_config_args="$gtk_config_args gthread" |
12792 | ;; | |
12793 | esac | |
12794 | done | |
12795 | ||
12796 | if test x$gtk_config_exec_prefix != x ; then | |
12797 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
12798 | if test x${GTK_CONFIG+set} != xset ; then | |
12799 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
12800 | fi | |
12801 | fi | |
12802 | if test x$gtk_config_prefix != x ; then | |
12803 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
12804 | if test x${GTK_CONFIG+set} != xset ; then | |
12805 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
12806 | fi | |
12807 | fi | |
12808 | ||
12809 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
12810 | set dummy gtk-config; ac_word=$2 | |
a0b9e27f | 12811 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
ac0c4cc3 | 12812 | echo "configure:12813: checking for $ac_word" >&5 |
a0b9e27f MB |
12813 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
12814 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12815 | else |
a0b9e27f MB |
12816 | case "$GTK_CONFIG" in |
12817 | /*) | |
21d1c967 GD |
12818 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
12819 | ;; | |
a0b9e27f MB |
12820 | ?:/*) |
12821 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
12822 | ;; | |
21d1c967 | 12823 | *) |
a0b9e27f MB |
12824 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
12825 | ac_dummy="$PATH" | |
12826 | for ac_dir in $ac_dummy; do | |
12827 | test -z "$ac_dir" && ac_dir=. | |
12828 | if test -f $ac_dir/$ac_word; then | |
12829 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
12830 | break | |
12831 | fi | |
12832 | done | |
12833 | IFS="$ac_save_ifs" | |
21d1c967 GD |
12834 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
12835 | ;; | |
12836 | esac | |
12837 | fi | |
a0b9e27f | 12838 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
21d1c967 | 12839 | if test -n "$GTK_CONFIG"; then |
a0b9e27f | 12840 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
21d1c967 | 12841 | else |
a0b9e27f | 12842 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12843 | fi |
12844 | ||
12845 | min_gtk_version=1.2.7 | |
a0b9e27f | 12846 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
ac0c4cc3 | 12847 | echo "configure:12848: checking for GTK - version >= $min_gtk_version" >&5 |
21d1c967 GD |
12848 | no_gtk="" |
12849 | if test "$GTK_CONFIG" = "no" ; then | |
12850 | no_gtk=yes | |
12851 | else | |
12852 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
12853 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
12854 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12855 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12856 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12857 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12858 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12859 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12860 | if test "x$enable_gtktest" = "xyes" ; then | |
12861 | ac_save_CFLAGS="$CFLAGS" | |
12862 | ac_save_LIBS="$LIBS" | |
12863 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12864 | LIBS="$GTK_LIBS $LIBS" | |
12865 | rm -f conf.gtktest | |
12866 | if test "$cross_compiling" = yes; then | |
12867 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 12868 | else |
a0b9e27f | 12869 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 12870 | #line 12871 "configure" |
f79bd02d JS |
12871 | #include "confdefs.h" |
12872 | ||
21d1c967 GD |
12873 | #include <gtk/gtk.h> |
12874 | #include <stdio.h> | |
12875 | #include <stdlib.h> | |
f79bd02d | 12876 | |
a0b9e27f | 12877 | int |
21d1c967 GD |
12878 | main () |
12879 | { | |
12880 | int major, minor, micro; | |
12881 | char *tmp_version; | |
12882 | ||
12883 | system ("touch conf.gtktest"); | |
12884 | ||
12885 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
12886 | tmp_version = g_strdup("$min_gtk_version"); | |
12887 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12888 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12889 | exit(1); | |
12890 | } | |
90dd450c | 12891 | |
21d1c967 GD |
12892 | if ((gtk_major_version != $gtk_config_major_version) || |
12893 | (gtk_minor_version != $gtk_config_minor_version) || | |
12894 | (gtk_micro_version != $gtk_config_micro_version)) | |
12895 | { | |
a0b9e27f | 12896 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
12897 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
12898 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12899 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
12900 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12901 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12902 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12903 | printf("*** required on your system.\n"); | |
12904 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
12905 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
12906 | printf("*** before re-running configure\n"); | |
a0b9e27f | 12907 | } |
21d1c967 GD |
12908 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
12909 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
12910 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12911 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12912 | { | |
12913 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12914 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12915 | printf("*** library (version %d.%d.%d)\n", | |
12916 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12917 | } | |
12918 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
12919 | else | |
12920 | { | |
12921 | if ((gtk_major_version > major) || | |
12922 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12923 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12924 | { | |
12925 | return 0; | |
12926 | } | |
12927 | else | |
12928 | { | |
12929 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12930 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12931 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12932 | major, minor, micro); | |
12933 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12934 | printf("***\n"); | |
12935 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12936 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
12937 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12938 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
12939 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
12940 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12941 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12942 | } | |
12943 | } | |
12944 | return 1; | |
12945 | } | |
12946 | ||
a0b9e27f | 12947 | EOF |
ac0c4cc3 | 12948 | if { (eval echo configure:12949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 12949 | then |
21d1c967 GD |
12950 | : |
12951 | else | |
a0b9e27f MB |
12952 | echo "configure: failed program was:" >&5 |
12953 | cat conftest.$ac_ext >&5 | |
12954 | rm -fr conftest* | |
12955 | no_gtk=yes | |
21d1c967 | 12956 | fi |
a0b9e27f | 12957 | rm -fr conftest* |
21d1c967 | 12958 | fi |
a0b9e27f | 12959 | |
21d1c967 GD |
12960 | CFLAGS="$ac_save_CFLAGS" |
12961 | LIBS="$ac_save_LIBS" | |
12962 | fi | |
12963 | fi | |
12964 | if test "x$no_gtk" = x ; then | |
a0b9e27f MB |
12965 | echo "$ac_t""yes" 1>&6 |
12966 | wx_cv_lib_gtk=1.2.7 | |
21d1c967 | 12967 | else |
a0b9e27f | 12968 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12969 | if test "$GTK_CONFIG" = "no" ; then |
12970 | echo "*** The gtk-config script installed by GTK could not be found" | |
12971 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
12972 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
12973 | echo "*** full path to gtk-config." | |
12974 | else | |
12975 | if test -f conf.gtktest ; then | |
12976 | : | |
12977 | else | |
12978 | echo "*** Could not run GTK test program, checking why..." | |
12979 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12980 | LIBS="$LIBS $GTK_LIBS" | |
a0b9e27f | 12981 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 12982 | #line 12983 "configure" |
21d1c967 GD |
12983 | #include "confdefs.h" |
12984 | ||
12985 | #include <gtk/gtk.h> | |
12986 | #include <stdio.h> | |
12987 | ||
a0b9e27f MB |
12988 | int main() { |
12989 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
12990 | ; return 0; } | |
12991 | EOF | |
ac0c4cc3 | 12992 | if { (eval echo configure:12993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 12993 | rm -rf conftest* |
21d1c967 GD |
12994 | echo "*** The test program compiled, but did not run. This usually means" |
12995 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
12996 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
12997 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12998 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12999 | echo "*** is required on your system" | |
13000 | echo "***" | |
13001 | echo "*** If you have an old version installed, it is best to remove it, although" | |
13002 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
13003 | echo "***" | |
13004 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
13005 | echo "*** came with the system with the command" | |
13006 | echo "***" | |
a0b9e27f | 13007 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 13008 | else |
a0b9e27f MB |
13009 | echo "configure: failed program was:" >&5 |
13010 | cat conftest.$ac_ext >&5 | |
13011 | rm -rf conftest* | |
13012 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
13013 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
13014 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
a0b9e27f | 13015 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 13016 | fi |
a0b9e27f | 13017 | rm -f conftest* |
21d1c967 GD |
13018 | CFLAGS="$ac_save_CFLAGS" |
13019 | LIBS="$ac_save_LIBS" | |
13020 | fi | |
13021 | fi | |
13022 | GTK_CFLAGS="" | |
13023 | GTK_LIBS="" | |
13024 | : | |
13025 | fi | |
a0b9e27f MB |
13026 | |
13027 | ||
21d1c967 GD |
13028 | rm -f conf.gtktest |
13029 | ||
21d1c967 | 13030 | |
2b5f62a0 VZ |
13031 | if test -z "$wx_cv_lib_gtk"; then |
13032 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
21d1c967 GD |
13033 | if test "${with_gtk_prefix+set}" = set; then |
13034 | withval="$with_gtk_prefix" | |
13035 | gtk_config_prefix="$withval" | |
13036 | else | |
13037 | gtk_config_prefix="" | |
a0b9e27f | 13038 | fi |
f79bd02d | 13039 | |
21d1c967 GD |
13040 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
13041 | if test "${with_gtk_exec_prefix+set}" = set; then | |
13042 | withval="$with_gtk_exec_prefix" | |
13043 | gtk_config_exec_prefix="$withval" | |
13044 | else | |
13045 | gtk_config_exec_prefix="" | |
a0b9e27f MB |
13046 | fi |
13047 | ||
21d1c967 GD |
13048 | # Check whether --enable-gtktest or --disable-gtktest was given. |
13049 | if test "${enable_gtktest+set}" = set; then | |
13050 | enableval="$enable_gtktest" | |
a0b9e27f | 13051 | : |
90dd450c | 13052 | else |
21d1c967 | 13053 | enable_gtktest=yes |
a0b9e27f MB |
13054 | fi |
13055 | ||
21d1c967 GD |
13056 | |
13057 | for module in . $GTK_MODULES | |
13058 | do | |
13059 | case "$module" in | |
a0b9e27f | 13060 | gthread) |
21d1c967 GD |
13061 | gtk_config_args="$gtk_config_args gthread" |
13062 | ;; | |
13063 | esac | |
13064 | done | |
13065 | ||
13066 | if test x$gtk_config_exec_prefix != x ; then | |
13067 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
13068 | if test x${GTK_CONFIG+set} != xset ; then | |
13069 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
13070 | fi | |
13071 | fi | |
13072 | if test x$gtk_config_prefix != x ; then | |
13073 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
13074 | if test x${GTK_CONFIG+set} != xset ; then | |
13075 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
13076 | fi | |
13077 | fi | |
13078 | ||
13079 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
13080 | set dummy gtk-config; ac_word=$2 | |
a0b9e27f | 13081 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
ac0c4cc3 | 13082 | echo "configure:13083: checking for $ac_word" >&5 |
a0b9e27f MB |
13083 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
13084 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13085 | else |
a0b9e27f MB |
13086 | case "$GTK_CONFIG" in |
13087 | /*) | |
21d1c967 GD |
13088 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
13089 | ;; | |
a0b9e27f MB |
13090 | ?:/*) |
13091 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
13092 | ;; | |
21d1c967 | 13093 | *) |
a0b9e27f MB |
13094 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
13095 | ac_dummy="$PATH" | |
13096 | for ac_dir in $ac_dummy; do | |
13097 | test -z "$ac_dir" && ac_dir=. | |
13098 | if test -f $ac_dir/$ac_word; then | |
13099 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
13100 | break | |
13101 | fi | |
13102 | done | |
13103 | IFS="$ac_save_ifs" | |
21d1c967 GD |
13104 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
13105 | ;; | |
13106 | esac | |
13107 | fi | |
a0b9e27f | 13108 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
21d1c967 | 13109 | if test -n "$GTK_CONFIG"; then |
a0b9e27f | 13110 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
21d1c967 | 13111 | else |
a0b9e27f | 13112 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
13113 | fi |
13114 | ||
13115 | min_gtk_version=1.2.3 | |
a0b9e27f | 13116 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
ac0c4cc3 | 13117 | echo "configure:13118: checking for GTK - version >= $min_gtk_version" >&5 |
21d1c967 GD |
13118 | no_gtk="" |
13119 | if test "$GTK_CONFIG" = "no" ; then | |
13120 | no_gtk=yes | |
13121 | else | |
13122 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
13123 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
13124 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
13125 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
13126 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
13127 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
13128 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
13129 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
13130 | if test "x$enable_gtktest" = "xyes" ; then | |
13131 | ac_save_CFLAGS="$CFLAGS" | |
13132 | ac_save_LIBS="$LIBS" | |
13133 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
13134 | LIBS="$GTK_LIBS $LIBS" | |
13135 | rm -f conf.gtktest | |
13136 | if test "$cross_compiling" = yes; then | |
13137 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
13138 | else | |
a0b9e27f | 13139 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 13140 | #line 13141 "configure" |
f79bd02d | 13141 | #include "confdefs.h" |
21d1c967 GD |
13142 | |
13143 | #include <gtk/gtk.h> | |
13144 | #include <stdio.h> | |
13145 | #include <stdlib.h> | |
13146 | ||
a0b9e27f | 13147 | int |
21d1c967 GD |
13148 | main () |
13149 | { | |
13150 | int major, minor, micro; | |
13151 | char *tmp_version; | |
13152 | ||
13153 | system ("touch conf.gtktest"); | |
13154 | ||
13155 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
13156 | tmp_version = g_strdup("$min_gtk_version"); | |
13157 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
13158 | printf("%s, bad version string\n", "$min_gtk_version"); | |
13159 | exit(1); | |
13160 | } | |
13161 | ||
13162 | if ((gtk_major_version != $gtk_config_major_version) || | |
13163 | (gtk_minor_version != $gtk_config_minor_version) || | |
13164 | (gtk_micro_version != $gtk_config_micro_version)) | |
13165 | { | |
a0b9e27f | 13166 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
13167 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
13168 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
13169 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
13170 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
13171 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
13172 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
13173 | printf("*** required on your system.\n"); | |
13174 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
13175 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
13176 | printf("*** before re-running configure\n"); | |
a0b9e27f | 13177 | } |
21d1c967 GD |
13178 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
13179 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
13180 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
13181 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
13182 | { | |
13183 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
13184 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
13185 | printf("*** library (version %d.%d.%d)\n", | |
13186 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
13187 | } | |
13188 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
13189 | else | |
13190 | { | |
13191 | if ((gtk_major_version > major) || | |
13192 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
13193 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
13194 | { | |
13195 | return 0; | |
13196 | } | |
13197 | else | |
13198 | { | |
13199 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
13200 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
13201 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
13202 | major, minor, micro); | |
13203 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
13204 | printf("***\n"); | |
13205 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
13206 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
13207 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
13208 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
13209 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
13210 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
13211 | printf("*** so that the correct libraries are found at run-time))\n"); | |
13212 | } | |
13213 | } | |
13214 | return 1; | |
13215 | } | |
13216 | ||
a0b9e27f | 13217 | EOF |
ac0c4cc3 | 13218 | if { (eval echo configure:13219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 13219 | then |
21d1c967 GD |
13220 | : |
13221 | else | |
a0b9e27f MB |
13222 | echo "configure: failed program was:" >&5 |
13223 | cat conftest.$ac_ext >&5 | |
13224 | rm -fr conftest* | |
13225 | no_gtk=yes | |
21d1c967 | 13226 | fi |
a0b9e27f | 13227 | rm -fr conftest* |
21d1c967 | 13228 | fi |
a0b9e27f | 13229 | |
21d1c967 GD |
13230 | CFLAGS="$ac_save_CFLAGS" |
13231 | LIBS="$ac_save_LIBS" | |
13232 | fi | |
13233 | fi | |
13234 | if test "x$no_gtk" = x ; then | |
a0b9e27f MB |
13235 | echo "$ac_t""yes" 1>&6 |
13236 | wx_cv_lib_gtk=1.2.3 | |
21d1c967 | 13237 | else |
a0b9e27f | 13238 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
13239 | if test "$GTK_CONFIG" = "no" ; then |
13240 | echo "*** The gtk-config script installed by GTK could not be found" | |
13241 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
13242 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
13243 | echo "*** full path to gtk-config." | |
13244 | else | |
13245 | if test -f conf.gtktest ; then | |
13246 | : | |
13247 | else | |
13248 | echo "*** Could not run GTK test program, checking why..." | |
13249 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
13250 | LIBS="$LIBS $GTK_LIBS" | |
a0b9e27f | 13251 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 13252 | #line 13253 "configure" |
21d1c967 GD |
13253 | #include "confdefs.h" |
13254 | ||
13255 | #include <gtk/gtk.h> | |
13256 | #include <stdio.h> | |
f79bd02d | 13257 | |
a0b9e27f MB |
13258 | int main() { |
13259 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
13260 | ; return 0; } | |
13261 | EOF | |
ac0c4cc3 | 13262 | if { (eval echo configure:13263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 13263 | rm -rf conftest* |
21d1c967 GD |
13264 | echo "*** The test program compiled, but did not run. This usually means" |
13265 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
13266 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
13267 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
13268 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
13269 | echo "*** is required on your system" | |
13270 | echo "***" | |
13271 | echo "*** If you have an old version installed, it is best to remove it, although" | |
13272 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
13273 | echo "***" | |
13274 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
13275 | echo "*** came with the system with the command" | |
13276 | echo "***" | |
a0b9e27f | 13277 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 13278 | else |
a0b9e27f MB |
13279 | echo "configure: failed program was:" >&5 |
13280 | cat conftest.$ac_ext >&5 | |
13281 | rm -rf conftest* | |
13282 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
13283 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
13284 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
a0b9e27f | 13285 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 13286 | fi |
a0b9e27f | 13287 | rm -f conftest* |
21d1c967 GD |
13288 | CFLAGS="$ac_save_CFLAGS" |
13289 | LIBS="$ac_save_LIBS" | |
13290 | fi | |
13291 | fi | |
13292 | GTK_CFLAGS="" | |
13293 | GTK_LIBS="" | |
13294 | : | |
13295 | fi | |
a0b9e27f MB |
13296 | |
13297 | ||
21d1c967 | 13298 | rm -f conf.gtktest |
f79bd02d | 13299 | |
2b5f62a0 | 13300 | fi |
21d1c967 GD |
13301 | fi |
13302 | ||
13303 | if test -z "$wx_cv_lib_gtk"; then | |
13304 | wx_cv_lib_gtk=none | |
13305 | else | |
13306 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
13307 | wx_cv_libs_gtk=$GTK_LIBS | |
13308 | fi | |
a0b9e27f MB |
13309 | |
13310 | ||
5c6fa7d2 | 13311 | fi |
52127426 | 13312 | |
8284b0c5 | 13313 | |
21d1c967 | 13314 | if test "$gtk_version_cached" = 1; then |
a0b9e27f | 13315 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 |
21d1c967 GD |
13316 | fi |
13317 | ||
13318 | case "$wx_cv_lib_gtk" in | |
13319 | 2.0) WXGTK20=1 | |
2b5f62a0 | 13320 | TOOLKIT_VERSION=2 |
21d1c967 GD |
13321 | ;; |
13322 | 1.2.7) WXGTK127=1 | |
13323 | WXGTK12=1 | |
13324 | ;; | |
13325 | 1.2.3) WXGTK12=1 | |
13326 | ;; | |
a0b9e27f | 13327 | *) { echo "configure: error: |
247f5006 VZ |
13328 | Please check that gtk-config is in path, the directory |
13329 | where GTK+ libraries are installed (returned by | |
13330 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
13331 | equivalent variable and GTK+ is version 1.2.3 or above. | |
a0b9e27f | 13332 | " 1>&2; exit 1; } |
21d1c967 GD |
13333 | ;; |
13334 | esac | |
13335 | ||
b13cd66e VZ |
13336 | if test "$WXGTK20" = 1; then |
13337 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
a0b9e27f | 13338 | |
f09359cf VS |
13339 | succeeded=no |
13340 | ||
13341 | if test -z "$PKG_CONFIG"; then | |
13342 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
13343 | set dummy pkg-config; ac_word=$2 | |
a0b9e27f | 13344 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
ac0c4cc3 | 13345 | echo "configure:13346: checking for $ac_word" >&5 |
a0b9e27f MB |
13346 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
13347 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f09359cf | 13348 | else |
a0b9e27f MB |
13349 | case "$PKG_CONFIG" in |
13350 | /*) | |
f09359cf VS |
13351 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
13352 | ;; | |
a0b9e27f MB |
13353 | ?:/*) |
13354 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
13355 | ;; | |
f09359cf | 13356 | *) |
a0b9e27f MB |
13357 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
13358 | ac_dummy="$PATH" | |
13359 | for ac_dir in $ac_dummy; do | |
13360 | test -z "$ac_dir" && ac_dir=. | |
13361 | if test -f $ac_dir/$ac_word; then | |
13362 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
13363 | break | |
13364 | fi | |
13365 | done | |
13366 | IFS="$ac_save_ifs" | |
f09359cf VS |
13367 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
13368 | ;; | |
13369 | esac | |
13370 | fi | |
a0b9e27f | 13371 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
f09359cf | 13372 | if test -n "$PKG_CONFIG"; then |
a0b9e27f | 13373 | echo "$ac_t""$PKG_CONFIG" 1>&6 |
f09359cf | 13374 | else |
a0b9e27f | 13375 | echo "$ac_t""no" 1>&6 |
f09359cf VS |
13376 | fi |
13377 | ||
13378 | fi | |
13379 | ||
13380 | if test "$PKG_CONFIG" = "no" ; then | |
13381 | echo "*** The pkg-config script could not be found. Make sure it is" | |
13382 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
13383 | echo "*** to the full path to pkg-config." | |
13384 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
13385 | else | |
13386 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
13387 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
a0b9e27f | 13388 | echo $ac_n "checking for pangoft2""... $ac_c" 1>&6 |
ac0c4cc3 | 13389 | echo "configure:13390: checking for pangoft2" >&5 |
f09359cf VS |
13390 | |
13391 | if $PKG_CONFIG --exists "pangoft2" ; then | |
a0b9e27f | 13392 | echo "$ac_t""yes" 1>&6 |
f09359cf VS |
13393 | succeeded=yes |
13394 | ||
a0b9e27f | 13395 | echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6 |
ac0c4cc3 | 13396 | echo "configure:13397: checking PANGOFT2_CFLAGS" >&5 |
f09359cf | 13397 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
a0b9e27f | 13398 | echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6 |
f09359cf | 13399 | |
a0b9e27f | 13400 | echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6 |
ac0c4cc3 | 13401 | echo "configure:13402: checking PANGOFT2_LIBS" >&5 |
f09359cf | 13402 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
a0b9e27f | 13403 | echo "$ac_t""$PANGOFT2_LIBS" 1>&6 |
f09359cf VS |
13404 | else |
13405 | PANGOFT2_CFLAGS="" | |
13406 | PANGOFT2_LIBS="" | |
a0b9e27f | 13407 | ## If we have a custom action on failure, don't print errors, but |
f09359cf VS |
13408 | ## do set a variable so people can do so. |
13409 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
a0b9e27f | 13410 | |
f09359cf VS |
13411 | fi |
13412 | ||
a0b9e27f MB |
13413 | |
13414 | ||
f09359cf VS |
13415 | else |
13416 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
13417 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
13418 | fi | |
13419 | fi | |
13420 | ||
13421 | if test $succeeded = yes; then | |
a0b9e27f | 13422 | |
b13cd66e VZ |
13423 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" |
13424 | LIBS="$LIBS $PANGOFT2_LIBS" | |
a0b9e27f | 13425 | |
f09359cf | 13426 | else |
a0b9e27f MB |
13427 | |
13428 | echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2 | |
b13cd66e | 13429 | wxUSE_PRINTING_ARCHITECTURE="no" |
a0b9e27f MB |
13430 | |
13431 | ||
f09359cf VS |
13432 | fi |
13433 | ||
b13cd66e | 13434 | fi |
2b5f62a0 VZ |
13435 | else |
13436 | if test "$wxUSE_UNICODE" = "yes"; then | |
13437 | echo "configure: warning: Unicode configuration not supported with GTK+ 1.x" 1>&2 | |
13438 | wxUSE_UNICODE=no | |
13439 | fi | |
13440 | fi | |
13441 | ||
13442 | if test "$USE_DARWIN" != 1; then | |
13443 | for ac_func in poll | |
13444 | do | |
13445 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
ac0c4cc3 | 13446 | echo "configure:13447: checking for $ac_func" >&5 |
2b5f62a0 VZ |
13447 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13448 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13449 | else | |
13450 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 13451 | #line 13452 "configure" |
2b5f62a0 VZ |
13452 | #include "confdefs.h" |
13453 | /* System header to define __stub macros and hopefully few prototypes, | |
13454 | which can conflict with char $ac_func(); below. */ | |
13455 | #include <assert.h> | |
13456 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13457 | /* We use char because int might match the return type of a gcc2 | |
13458 | builtin and then its argument prototype would still apply. */ | |
13459 | char $ac_func(); | |
13460 | ||
13461 | int main() { | |
13462 | ||
13463 | /* The GNU C library defines this for functions which it implements | |
13464 | to always fail with ENOSYS. Some functions are actually named | |
13465 | something starting with __ and the normal name is an alias. */ | |
13466 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13467 | choke me | |
13468 | #else | |
13469 | $ac_func(); | |
13470 | #endif | |
13471 | ||
13472 | ; return 0; } | |
13473 | EOF | |
ac0c4cc3 | 13474 | if { (eval echo configure:13475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
13475 | rm -rf conftest* |
13476 | eval "ac_cv_func_$ac_func=yes" | |
13477 | else | |
13478 | echo "configure: failed program was:" >&5 | |
13479 | cat conftest.$ac_ext >&5 | |
13480 | rm -rf conftest* | |
13481 | eval "ac_cv_func_$ac_func=no" | |
13482 | fi | |
13483 | rm -f conftest* | |
13484 | fi | |
13485 | ||
13486 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13487 | echo "$ac_t""yes" 1>&6 | |
13488 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13489 | cat >> confdefs.h <<EOF | |
13490 | #define $ac_tr_func 1 | |
13491 | EOF | |
13492 | ||
13493 | else | |
13494 | echo "$ac_t""no" 1>&6 | |
13495 | fi | |
13496 | done | |
13497 | ||
f09359cf VS |
13498 | fi |
13499 | ||
21d1c967 GD |
13500 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
13501 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" | |
13502 | ||
13503 | AFMINSTALL=afminstall | |
13504 | TOOLKIT=GTK | |
13505 | GUIDIST=GTK_DIST | |
13506 | ||
a0b9e27f | 13507 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
ac0c4cc3 | 13508 | echo "configure:13509: checking for gdk_im_open in -lgdk" >&5 |
a0b9e27f MB |
13509 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
13510 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13511 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13512 | else |
a0b9e27f | 13513 | ac_save_LIBS="$LIBS" |
21d1c967 | 13514 | LIBS="-lgdk $LIBS" |
a0b9e27f | 13515 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 13516 | #line 13517 "configure" |
90dd450c | 13517 | #include "confdefs.h" |
5c6fa7d2 | 13518 | /* Override any gcc2 internal prototype to avoid an error. */ |
5c6fa7d2 | 13519 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
13520 | builtin and then its argument prototype would still apply. */ |
13521 | char gdk_im_open(); | |
13522 | ||
13523 | int main() { | |
13524 | gdk_im_open() | |
13525 | ; return 0; } | |
13526 | EOF | |
ac0c4cc3 | 13527 | if { (eval echo configure:13528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13528 | rm -rf conftest* |
13529 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13530 | else | |
13531 | echo "configure: failed program was:" >&5 | |
13532 | cat conftest.$ac_ext >&5 | |
13533 | rm -rf conftest* | |
13534 | eval "ac_cv_lib_$ac_lib_var=no" | |
13535 | fi | |
13536 | rm -f conftest* | |
13537 | LIBS="$ac_save_LIBS" | |
13538 | ||
13539 | fi | |
13540 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13541 | echo "$ac_t""yes" 1>&6 | |
13542 | cat >> confdefs.h <<\EOF | |
21d1c967 | 13543 | #define HAVE_XIM 1 |
a0b9e27f | 13544 | EOF |
21d1c967 | 13545 | |
a0b9e27f MB |
13546 | else |
13547 | echo "$ac_t""no" 1>&6 | |
90dd450c | 13548 | fi |
1e6feb95 | 13549 | |
21d1c967 | 13550 | fi |
1e6feb95 | 13551 | |
21d1c967 | 13552 | if test "$wxUSE_MGL" = 1; then |
63a76696 | 13553 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 |
ac0c4cc3 | 13554 | echo "configure:13555: checking for SciTech MGL library" >&5 |
21d1c967 | 13555 | if test "x$MGL_ROOT" = x ; then |
a0b9e27f MB |
13556 | echo "$ac_t""not found" 1>&6 |
13557 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
21d1c967 | 13558 | else |
a0b9e27f | 13559 | echo "$ac_t""$MGL_ROOT" 1>&6 |
21d1c967 GD |
13560 | fi |
13561 | ||
63a76696 | 13562 | echo $ac_n "checking for libmgl location""... $ac_c" 1>&6 |
ac0c4cc3 | 13563 | echo "configure:13564: checking for libmgl location" >&5 |
21d1c967 GD |
13564 | case "${host}" in |
13565 | *-*-linux* ) | |
63a76696 VS |
13566 | if test "x$wxUSE_SHARED" = xyes ; then |
13567 | mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc" | |
13568 | else | |
13569 | mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so" | |
13570 | fi | |
21d1c967 GD |
13571 | ;; |
13572 | *-pc-msdosdjgpp ) | |
63a76696 | 13573 | mgl_os_candidates="dos32/dj2" |
21d1c967 GD |
13574 | ;; |
13575 | *) | |
a0b9e27f | 13576 | { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; } |
21d1c967 | 13577 | esac |
1e6feb95 | 13578 | |
21d1c967 | 13579 | mgl_lib_type="" |
63a76696 VS |
13580 | mgl_os="" |
13581 | ||
13582 | for mgl_os_i in $mgl_os_candidates ; do | |
13583 | if test "x$mgl_os" = x ; then | |
13584 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
13585 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
13586 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
13587 | mgl_lib_type=debug | |
13588 | mgl_os=$mgl_os_i | |
13589 | fi | |
13590 | fi | |
13591 | if test "x$mgl_lib_type" = x ; then | |
13592 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
13593 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
13594 | mgl_lib_type=release | |
13595 | mgl_os=$mgl_os_i | |
13596 | fi | |
13597 | fi | |
21d1c967 | 13598 | fi |
63a76696 | 13599 | done |
2224580a | 13600 | |
63a76696 VS |
13601 | if test "x$mgl_os" = x ; then |
13602 | echo "$ac_t""not found" 1>&6 | |
13603 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } | |
13604 | fi | |
13605 | echo "$ac_t"""$MGL_ROOT/lib/$mgl_lib_type/$mgl_os"" 1>&6 | |
13606 | ||
1d1b75ac VZ |
13607 | wxUSE_UNIVERSAL="yes" |
13608 | ||
21d1c967 GD |
13609 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" |
13610 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
13611 | ||
90dd450c | 13612 | AFMINSTALL=afminstall |
21d1c967 GD |
13613 | TOOLKIT=MGL |
13614 | GUIDIST=MGL_DIST | |
13615 | fi | |
dad6c0ea | 13616 | |
21d1c967 | 13617 | if test "$wxUSE_MICROWIN" = 1; then |
a0b9e27f | 13618 | echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6 |
ac0c4cc3 | 13619 | echo "configure:13620: checking for MicroWindows" >&5 |
21d1c967 | 13620 | if test "x$MICROWINDOWS" = x ; then |
a0b9e27f MB |
13621 | echo "$ac_t""not found" 1>&6 |
13622 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; } | |
21d1c967 | 13623 | else |
a0b9e27f | 13624 | echo "$ac_t""$MICROWINDOWS" 1>&6 |
21d1c967 | 13625 | fi |
f6bcfd97 | 13626 | |
21d1c967 | 13627 | if test -f $MICROWINDOWS/lib/libmwin.a; then |
a0b9e27f | 13628 | echo "$ac_t""MicroWindows' libraries found." 1>&6 |
21d1c967 | 13629 | else |
a0b9e27f | 13630 | { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; } |
90dd450c | 13631 | fi |
0b2effe9 | 13632 | |
21d1c967 GD |
13633 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" |
13634 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
13635 | ||
1d1b75ac VZ |
13636 | wxUSE_UNIVERSAL="yes" |
13637 | ||
21d1c967 GD |
13638 | AFMINSTALL=afminstall |
13639 | TOOLKIT=MICROWIN | |
13640 | GUIDIST=MICROWIN_DIST | |
1d1b75ac VZ |
13641 | |
13642 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
21d1c967 | 13643 | fi |
f6bcfd97 | 13644 | |
21d1c967 | 13645 | if test "$wxUSE_X11" = 1; then |
a0b9e27f MB |
13646 | # If we find X, set shell vars x_includes and x_libraries to the |
13647 | # paths, otherwise set no_x=yes. | |
13648 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
13649 | # --without-x overrides everything else, but does not touch the cache. | |
13650 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
ac0c4cc3 | 13651 | echo "configure:13652: checking for X" >&5 |
d8356fa3 | 13652 | |
21d1c967 GD |
13653 | # Check whether --with-x or --without-x was given. |
13654 | if test "${with_x+set}" = set; then | |
13655 | withval="$with_x" | |
a0b9e27f MB |
13656 | : |
13657 | fi | |
2224580a | 13658 | |
21d1c967 GD |
13659 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
13660 | if test "x$with_x" = xno; then | |
13661 | # The user explicitly disabled X. | |
13662 | have_x=disabled | |
13663 | else | |
13664 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
13665 | # Both variables are already set. | |
13666 | have_x=yes | |
13667 | else | |
a0b9e27f MB |
13668 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
13669 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 GD |
13670 | else |
13671 | # One or both of the vars are not set, and there is no cached value. | |
a0b9e27f MB |
13672 | ac_x_includes=NO ac_x_libraries=NO |
13673 | rm -fr conftestdir | |
13674 | if mkdir conftestdir; then | |
13675 | cd conftestdir | |
21d1c967 | 13676 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
a0b9e27f | 13677 | cat > Imakefile <<'EOF' |
21d1c967 GD |
13678 | acfindx: |
13679 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
a0b9e27f | 13680 | EOF |
21d1c967 GD |
13681 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
13682 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
13683 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
13684 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
13685 | for ac_extension in a so sl; do | |
13686 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
a0b9e27f | 13687 | test -f $ac_im_libdir/libX11.$ac_extension; then |
21d1c967 GD |
13688 | ac_im_usrlibdir=$ac_im_libdir; break |
13689 | fi | |
13690 | done | |
13691 | # Screen out bogus values from the imake configuration. They are | |
13692 | # bogus both because they are the default anyway, and because | |
13693 | # using them would break gcc on systems where it needs fixed includes. | |
a0b9e27f | 13694 | case "$ac_im_incroot" in |
21d1c967 | 13695 | /usr/include) ;; |
a0b9e27f | 13696 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
21d1c967 | 13697 | esac |
a0b9e27f | 13698 | case "$ac_im_usrlibdir" in |
21d1c967 | 13699 | /usr/lib | /lib) ;; |
a0b9e27f | 13700 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
21d1c967 GD |
13701 | esac |
13702 | fi | |
13703 | cd .. | |
a0b9e27f | 13704 | rm -fr conftestdir |
21d1c967 | 13705 | fi |
10f2d63a | 13706 | |
a0b9e27f MB |
13707 | if test "$ac_x_includes" = NO; then |
13708 | # Guess where to find include files, by looking for this one X11 .h file. | |
13709 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
13710 | ||
21d1c967 | 13711 | # First, try using that file with no special directory specified. |
a0b9e27f | 13712 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 13713 | #line 13714 "configure" |
21d1c967 | 13714 | #include "confdefs.h" |
a0b9e27f MB |
13715 | #include <$x_direct_test_include> |
13716 | EOF | |
13717 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ac0c4cc3 | 13718 | { (eval echo configure:13719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
13719 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13720 | if test -z "$ac_err"; then | |
13721 | rm -rf conftest* | |
21d1c967 GD |
13722 | # We can compile using X headers with no special include directory. |
13723 | ac_x_includes= | |
90dd450c | 13724 | else |
a0b9e27f MB |
13725 | echo "$ac_err" >&5 |
13726 | echo "configure: failed program was:" >&5 | |
90dd450c | 13727 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
13728 | rm -rf conftest* |
13729 | # Look for the header file in a standard set of common directories. | |
13730 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
13731 | for ac_dir in \ | |
13732 | /usr/X11/include \ | |
13733 | /usr/X11R6/include \ | |
13734 | /usr/X11R5/include \ | |
13735 | /usr/X11R4/include \ | |
13736 | \ | |
13737 | /usr/include/X11 \ | |
13738 | /usr/include/X11R6 \ | |
13739 | /usr/include/X11R5 \ | |
13740 | /usr/include/X11R4 \ | |
13741 | \ | |
13742 | /usr/local/X11/include \ | |
13743 | /usr/local/X11R6/include \ | |
13744 | /usr/local/X11R5/include \ | |
13745 | /usr/local/X11R4/include \ | |
13746 | \ | |
13747 | /usr/local/include/X11 \ | |
13748 | /usr/local/include/X11R6 \ | |
13749 | /usr/local/include/X11R5 \ | |
13750 | /usr/local/include/X11R4 \ | |
13751 | \ | |
13752 | /usr/X386/include \ | |
13753 | /usr/x386/include \ | |
13754 | /usr/XFree86/include/X11 \ | |
13755 | \ | |
13756 | /usr/include \ | |
13757 | /usr/local/include \ | |
13758 | /usr/unsupported/include \ | |
13759 | /usr/athena/include \ | |
13760 | /usr/local/x11r5/include \ | |
13761 | /usr/lpp/Xamples/include \ | |
13762 | \ | |
13763 | /usr/openwin/include \ | |
13764 | /usr/openwin/share/include \ | |
13765 | ; \ | |
13766 | do | |
13767 | if test -r "$ac_dir/$x_direct_test_include"; then | |
13768 | ac_x_includes=$ac_dir | |
13769 | break | |
13770 | fi | |
13771 | done | |
3a922bb4 | 13772 | fi |
a0b9e27f MB |
13773 | rm -f conftest* |
13774 | fi # $ac_x_includes = NO | |
10f2d63a | 13775 | |
a0b9e27f | 13776 | if test "$ac_x_libraries" = NO; then |
21d1c967 | 13777 | # Check for the libraries. |
a0b9e27f MB |
13778 | |
13779 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
13780 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
13781 | ||
21d1c967 GD |
13782 | # See if we find them without any special options. |
13783 | # Don't add to $LIBS permanently. | |
a0b9e27f MB |
13784 | ac_save_LIBS="$LIBS" |
13785 | LIBS="-l$x_direct_test_library $LIBS" | |
13786 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 13787 | #line 13788 "configure" |
3a922bb4 | 13788 | #include "confdefs.h" |
a0b9e27f MB |
13789 | |
13790 | int main() { | |
13791 | ${x_direct_test_function}() | |
13792 | ; return 0; } | |
13793 | EOF | |
ac0c4cc3 | 13794 | if { (eval echo configure:13795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13795 | rm -rf conftest* |
13796 | LIBS="$ac_save_LIBS" | |
21d1c967 GD |
13797 | # We can link X programs with no special library path. |
13798 | ac_x_libraries= | |
3a922bb4 | 13799 | else |
a0b9e27f MB |
13800 | echo "configure: failed program was:" >&5 |
13801 | cat conftest.$ac_ext >&5 | |
13802 | rm -rf conftest* | |
13803 | LIBS="$ac_save_LIBS" | |
13804 | # First see if replacing the include by lib works. | |
13805 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
13806 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
13807 | /usr/X11/lib \ | |
13808 | /usr/X11R6/lib \ | |
13809 | /usr/X11R5/lib \ | |
13810 | /usr/X11R4/lib \ | |
13811 | \ | |
13812 | /usr/lib/X11 \ | |
13813 | /usr/lib/X11R6 \ | |
13814 | /usr/lib/X11R5 \ | |
13815 | /usr/lib/X11R4 \ | |
13816 | \ | |
13817 | /usr/local/X11/lib \ | |
13818 | /usr/local/X11R6/lib \ | |
13819 | /usr/local/X11R5/lib \ | |
13820 | /usr/local/X11R4/lib \ | |
13821 | \ | |
13822 | /usr/local/lib/X11 \ | |
13823 | /usr/local/lib/X11R6 \ | |
13824 | /usr/local/lib/X11R5 \ | |
13825 | /usr/local/lib/X11R4 \ | |
13826 | \ | |
13827 | /usr/X386/lib \ | |
13828 | /usr/x386/lib \ | |
13829 | /usr/XFree86/lib/X11 \ | |
13830 | \ | |
13831 | /usr/lib \ | |
13832 | /usr/local/lib \ | |
13833 | /usr/unsupported/lib \ | |
13834 | /usr/athena/lib \ | |
13835 | /usr/local/x11r5/lib \ | |
13836 | /usr/lpp/Xamples/lib \ | |
13837 | /lib/usr/lib/X11 \ | |
13838 | \ | |
13839 | /usr/openwin/lib \ | |
13840 | /usr/openwin/share/lib \ | |
13841 | ; \ | |
21d1c967 GD |
13842 | do |
13843 | for ac_extension in a so sl; do | |
a0b9e27f | 13844 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
21d1c967 GD |
13845 | ac_x_libraries=$ac_dir |
13846 | break 2 | |
13847 | fi | |
13848 | done | |
13849 | done | |
3a922bb4 | 13850 | fi |
a0b9e27f MB |
13851 | rm -f conftest* |
13852 | fi # $ac_x_libraries = NO | |
90dd450c | 13853 | |
a0b9e27f | 13854 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
21d1c967 GD |
13855 | # Didn't find X anywhere. Cache the known absence of X. |
13856 | ac_cv_have_x="have_x=no" | |
13857 | else | |
13858 | # Record where we found X for the cache. | |
13859 | ac_cv_have_x="have_x=yes \ | |
13860 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
90dd450c | 13861 | fi |
21d1c967 GD |
13862 | fi |
13863 | fi | |
13864 | eval "$ac_cv_have_x" | |
13865 | fi # $with_x != no | |
90dd450c | 13866 | |
21d1c967 | 13867 | if test "$have_x" != yes; then |
a0b9e27f | 13868 | echo "$ac_t""$have_x" 1>&6 |
21d1c967 GD |
13869 | no_x=yes |
13870 | else | |
13871 | # If each of the values was on the command line, it overrides each guess. | |
13872 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
13873 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
13874 | # Update the cache value to reflect the command line values. | |
13875 | ac_cv_have_x="have_x=yes \ | |
13876 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
a0b9e27f | 13877 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
21d1c967 | 13878 | fi |
90dd450c | 13879 | |
21d1c967 | 13880 | if test "$no_x" = yes; then |
90dd450c | 13881 | # Not all programs may use this symbol, but it does not hurt to define it. |
a0b9e27f | 13882 | cat >> confdefs.h <<\EOF |
90dd450c | 13883 | #define X_DISPLAY_MISSING 1 |
a0b9e27f | 13884 | EOF |
90dd450c VZ |
13885 | |
13886 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
13887 | else | |
13888 | if test -n "$x_includes"; then | |
13889 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
62d0491b | 13890 | fi |
3a922bb4 | 13891 | |
90dd450c VZ |
13892 | # It would also be nice to do this for all -L options, not just this one. |
13893 | if test -n "$x_libraries"; then | |
13894 | X_LIBS="$X_LIBS -L$x_libraries" | |
13895 | # For Solaris; some versions of Sun CC require a space after -R and | |
13896 | # others require no space. Words are not sufficient . . . . | |
a0b9e27f | 13897 | case "`(uname -sr) 2>/dev/null`" in |
90dd450c | 13898 | "SunOS 5"*) |
a0b9e27f | 13899 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
ac0c4cc3 | 13900 | echo "configure:13901: checking whether -R must be followed by a space" >&5 |
a0b9e27f MB |
13901 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
13902 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 13903 | #line 13904 "configure" |
90dd450c VZ |
13904 | #include "confdefs.h" |
13905 | ||
a0b9e27f | 13906 | int main() { |
90dd450c | 13907 | |
a0b9e27f MB |
13908 | ; return 0; } |
13909 | EOF | |
ac0c4cc3 | 13910 | if { (eval echo configure:13911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 13911 | rm -rf conftest* |
90dd450c | 13912 | ac_R_nospace=yes |
3a922bb4 | 13913 | else |
a0b9e27f MB |
13914 | echo "configure: failed program was:" >&5 |
13915 | cat conftest.$ac_ext >&5 | |
13916 | rm -rf conftest* | |
13917 | ac_R_nospace=no | |
3a922bb4 | 13918 | fi |
a0b9e27f | 13919 | rm -f conftest* |
90dd450c | 13920 | if test $ac_R_nospace = yes; then |
a0b9e27f | 13921 | echo "$ac_t""no" 1>&6 |
90dd450c VZ |
13922 | X_LIBS="$X_LIBS -R$x_libraries" |
13923 | else | |
13924 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
a0b9e27f | 13925 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 13926 | #line 13927 "configure" |
90dd450c | 13927 | #include "confdefs.h" |
3a922bb4 | 13928 | |
a0b9e27f | 13929 | int main() { |
6f754473 | 13930 | |
a0b9e27f MB |
13931 | ; return 0; } |
13932 | EOF | |
ac0c4cc3 | 13933 | if { (eval echo configure:13934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 13934 | rm -rf conftest* |
90dd450c VZ |
13935 | ac_R_space=yes |
13936 | else | |
a0b9e27f MB |
13937 | echo "configure: failed program was:" >&5 |
13938 | cat conftest.$ac_ext >&5 | |
13939 | rm -rf conftest* | |
13940 | ac_R_space=no | |
90dd450c | 13941 | fi |
a0b9e27f | 13942 | rm -f conftest* |
90dd450c | 13943 | if test $ac_R_space = yes; then |
a0b9e27f | 13944 | echo "$ac_t""yes" 1>&6 |
90dd450c VZ |
13945 | X_LIBS="$X_LIBS -R $x_libraries" |
13946 | else | |
a0b9e27f | 13947 | echo "$ac_t""neither works" 1>&6 |
90dd450c VZ |
13948 | fi |
13949 | fi | |
a0b9e27f | 13950 | LIBS="$ac_xsave_LIBS" |
90dd450c VZ |
13951 | esac |
13952 | fi | |
13953 | ||
13954 | # Check for system-dependent libraries X programs must link with. | |
13955 | # Do this before checking for the system-independent R6 libraries | |
13956 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
6f754473 | 13957 | |
90dd450c VZ |
13958 | if test "$ISC" = yes; then |
13959 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
13960 | else | |
a0b9e27f MB |
13961 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
13962 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
90dd450c | 13963 | # the Alpha needs dnet_stub (dnet does not exist). |
a0b9e27f | 13964 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
ac0c4cc3 | 13965 | echo "configure:13966: checking for dnet_ntoa in -ldnet" >&5 |
a0b9e27f MB |
13966 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13967 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13968 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 13969 | else |
a0b9e27f | 13970 | ac_save_LIBS="$LIBS" |
247f5006 | 13971 | LIBS="-ldnet $LIBS" |
a0b9e27f | 13972 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 13973 | #line 13974 "configure" |
247f5006 | 13974 | #include "confdefs.h" |
247f5006 | 13975 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 | 13976 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
13977 | builtin and then its argument prototype would still apply. */ |
13978 | char dnet_ntoa(); | |
13979 | ||
13980 | int main() { | |
13981 | dnet_ntoa() | |
13982 | ; return 0; } | |
13983 | EOF | |
ac0c4cc3 | 13984 | if { (eval echo configure:13985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13985 | rm -rf conftest* |
13986 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13987 | else | |
13988 | echo "configure: failed program was:" >&5 | |
13989 | cat conftest.$ac_ext >&5 | |
13990 | rm -rf conftest* | |
13991 | eval "ac_cv_lib_$ac_lib_var=no" | |
13992 | fi | |
13993 | rm -f conftest* | |
13994 | LIBS="$ac_save_LIBS" | |
13995 | ||
13996 | fi | |
13997 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13998 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13999 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
a0b9e27f MB |
14000 | else |
14001 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
14002 | fi |
14003 | ||
90dd450c | 14004 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
a0b9e27f | 14005 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
ac0c4cc3 | 14006 | echo "configure:14007: checking for dnet_ntoa in -ldnet_stub" >&5 |
a0b9e27f MB |
14007 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
14008 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14009 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 14010 | else |
a0b9e27f | 14011 | ac_save_LIBS="$LIBS" |
90dd450c | 14012 | LIBS="-ldnet_stub $LIBS" |
a0b9e27f | 14013 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 14014 | #line 14015 "configure" |
90dd450c VZ |
14015 | #include "confdefs.h" |
14016 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14017 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14018 | builtin and then its argument prototype would still apply. */ |
14019 | char dnet_ntoa(); | |
14020 | ||
14021 | int main() { | |
14022 | dnet_ntoa() | |
14023 | ; return 0; } | |
14024 | EOF | |
ac0c4cc3 | 14025 | if { (eval echo configure:14026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14026 | rm -rf conftest* |
14027 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14028 | else | |
14029 | echo "configure: failed program was:" >&5 | |
14030 | cat conftest.$ac_ext >&5 | |
14031 | rm -rf conftest* | |
14032 | eval "ac_cv_lib_$ac_lib_var=no" | |
14033 | fi | |
14034 | rm -f conftest* | |
14035 | LIBS="$ac_save_LIBS" | |
14036 | ||
14037 | fi | |
14038 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14039 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 14040 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
a0b9e27f MB |
14041 | else |
14042 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
14043 | fi |
14044 | ||
90dd450c | 14045 | fi |
978f1259 | 14046 | |
90dd450c VZ |
14047 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
14048 | # to get the SysV transport functions. | |
a0b9e27f | 14049 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
90dd450c VZ |
14050 | # needs -lnsl. |
14051 | # The nsl library prevents programs from opening the X display | |
a0b9e27f MB |
14052 | # on Irix 5.2, according to dickey@clark.net. |
14053 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
ac0c4cc3 | 14054 | echo "configure:14055: checking for gethostbyname" >&5 |
a0b9e27f MB |
14055 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
14056 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14057 | else | |
14058 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 14059 | #line 14060 "configure" |
90dd450c VZ |
14060 | #include "confdefs.h" |
14061 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 14062 | which can conflict with char gethostbyname(); below. */ |
90dd450c VZ |
14063 | #include <assert.h> |
14064 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14065 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14066 | builtin and then its argument prototype would still apply. */ |
14067 | char gethostbyname(); | |
14068 | ||
14069 | int main() { | |
14070 | ||
90dd450c VZ |
14071 | /* The GNU C library defines this for functions which it implements |
14072 | to always fail with ENOSYS. Some functions are actually named | |
14073 | something starting with __ and the normal name is an alias. */ | |
14074 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
14075 | choke me | |
14076 | #else | |
a0b9e27f | 14077 | gethostbyname(); |
90dd450c | 14078 | #endif |
978f1259 | 14079 | |
a0b9e27f MB |
14080 | ; return 0; } |
14081 | EOF | |
ac0c4cc3 | 14082 | if { (eval echo configure:14083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14083 | rm -rf conftest* |
14084 | eval "ac_cv_func_gethostbyname=yes" | |
14085 | else | |
14086 | echo "configure: failed program was:" >&5 | |
14087 | cat conftest.$ac_ext >&5 | |
14088 | rm -rf conftest* | |
14089 | eval "ac_cv_func_gethostbyname=no" | |
14090 | fi | |
14091 | rm -f conftest* | |
14092 | fi | |
14093 | ||
14094 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
14095 | echo "$ac_t""yes" 1>&6 | |
14096 | : | |
14097 | else | |
14098 | echo "$ac_t""no" 1>&6 | |
14099 | fi | |
698dcdb6 | 14100 | |
90dd450c | 14101 | if test $ac_cv_func_gethostbyname = no; then |
a0b9e27f | 14102 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
ac0c4cc3 | 14103 | echo "configure:14104: checking for gethostbyname in -lnsl" >&5 |
a0b9e27f MB |
14104 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
14105 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14106 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 14107 | else |
a0b9e27f | 14108 | ac_save_LIBS="$LIBS" |
90dd450c | 14109 | LIBS="-lnsl $LIBS" |
a0b9e27f | 14110 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 14111 | #line 14112 "configure" |
90dd450c VZ |
14112 | #include "confdefs.h" |
14113 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14114 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14115 | builtin and then its argument prototype would still apply. */ |
14116 | char gethostbyname(); | |
5c6fa7d2 | 14117 | |
a0b9e27f MB |
14118 | int main() { |
14119 | gethostbyname() | |
14120 | ; return 0; } | |
14121 | EOF | |
ac0c4cc3 | 14122 | if { (eval echo configure:14123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14123 | rm -rf conftest* |
14124 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8284b0c5 | 14125 | else |
a0b9e27f MB |
14126 | echo "configure: failed program was:" >&5 |
14127 | cat conftest.$ac_ext >&5 | |
14128 | rm -rf conftest* | |
14129 | eval "ac_cv_lib_$ac_lib_var=no" | |
14130 | fi | |
14131 | rm -f conftest* | |
14132 | LIBS="$ac_save_LIBS" | |
247f5006 | 14133 | |
a0b9e27f MB |
14134 | fi |
14135 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14136 | echo "$ac_t""yes" 1>&6 | |
14137 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
14138 | else | |
14139 | echo "$ac_t""no" 1>&6 | |
90dd450c | 14140 | fi |
b12915c1 | 14141 | |
90dd450c VZ |
14142 | fi |
14143 | ||
14144 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
14145 | # socket/setsockopt and other routines are undefined under SCO ODT | |
14146 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
a0b9e27f MB |
14147 | # on later versions), says simon@lia.di.epfl.ch: it contains |
14148 | # gethostby* variants that don't use the nameserver (or something). | |
14149 | # -lsocket must be given before -lnsl if both are needed. | |
14150 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
14151 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
ac0c4cc3 | 14152 | echo "configure:14153: checking for connect" >&5 |
a0b9e27f MB |
14153 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
14154 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14155 | else | |
14156 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 14157 | #line 14158 "configure" |
55e80573 | 14158 | #include "confdefs.h" |
90dd450c | 14159 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 14160 | which can conflict with char connect(); below. */ |
90dd450c VZ |
14161 | #include <assert.h> |
14162 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14163 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14164 | builtin and then its argument prototype would still apply. */ |
14165 | char connect(); | |
14166 | ||
14167 | int main() { | |
14168 | ||
90dd450c VZ |
14169 | /* The GNU C library defines this for functions which it implements |
14170 | to always fail with ENOSYS. Some functions are actually named | |
14171 | something starting with __ and the normal name is an alias. */ | |
14172 | #if defined (__stub_connect) || defined (__stub___connect) | |
14173 | choke me | |
14174 | #else | |
a0b9e27f | 14175 | connect(); |
90dd450c VZ |
14176 | #endif |
14177 | ||
a0b9e27f MB |
14178 | ; return 0; } |
14179 | EOF | |
ac0c4cc3 | 14180 | if { (eval echo configure:14181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14181 | rm -rf conftest* |
14182 | eval "ac_cv_func_connect=yes" | |
14183 | else | |
14184 | echo "configure: failed program was:" >&5 | |
14185 | cat conftest.$ac_ext >&5 | |
14186 | rm -rf conftest* | |
14187 | eval "ac_cv_func_connect=no" | |
14188 | fi | |
14189 | rm -f conftest* | |
14190 | fi | |
14191 | ||
14192 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
14193 | echo "$ac_t""yes" 1>&6 | |
14194 | : | |
14195 | else | |
14196 | echo "$ac_t""no" 1>&6 | |
14197 | fi | |
55e80573 | 14198 | |
90dd450c | 14199 | if test $ac_cv_func_connect = no; then |
a0b9e27f | 14200 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
ac0c4cc3 | 14201 | echo "configure:14202: checking for connect in -lsocket" >&5 |
a0b9e27f MB |
14202 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
14203 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14204 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 14205 | else |
a0b9e27f | 14206 | ac_save_LIBS="$LIBS" |
90dd450c | 14207 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 14208 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 14209 | #line 14210 "configure" |
90dd450c VZ |
14210 | #include "confdefs.h" |
14211 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14212 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14213 | builtin and then its argument prototype would still apply. */ |
14214 | char connect(); | |
14215 | ||
14216 | int main() { | |
14217 | connect() | |
14218 | ; return 0; } | |
14219 | EOF | |
ac0c4cc3 | 14220 | if { (eval echo configure:14221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14221 | rm -rf conftest* |
14222 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14223 | else | |
14224 | echo "configure: failed program was:" >&5 | |
14225 | cat conftest.$ac_ext >&5 | |
14226 | rm -rf conftest* | |
14227 | eval "ac_cv_lib_$ac_lib_var=no" | |
14228 | fi | |
14229 | rm -f conftest* | |
14230 | LIBS="$ac_save_LIBS" | |
14231 | ||
14232 | fi | |
14233 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14234 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 14235 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
a0b9e27f MB |
14236 | else |
14237 | echo "$ac_t""no" 1>&6 | |
90dd450c | 14238 | fi |
77e13408 | 14239 | |
90dd450c | 14240 | fi |
25d0687a | 14241 | |
a0b9e27f MB |
14242 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
14243 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
ac0c4cc3 | 14244 | echo "configure:14245: checking for remove" >&5 |
a0b9e27f MB |
14245 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
14246 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 14247 | else |
a0b9e27f | 14248 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 14249 | #line 14250 "configure" |
90dd450c VZ |
14250 | #include "confdefs.h" |
14251 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 14252 | which can conflict with char remove(); below. */ |
90dd450c VZ |
14253 | #include <assert.h> |
14254 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14255 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14256 | builtin and then its argument prototype would still apply. */ |
14257 | char remove(); | |
14258 | ||
14259 | int main() { | |
14260 | ||
90dd450c VZ |
14261 | /* The GNU C library defines this for functions which it implements |
14262 | to always fail with ENOSYS. Some functions are actually named | |
14263 | something starting with __ and the normal name is an alias. */ | |
14264 | #if defined (__stub_remove) || defined (__stub___remove) | |
14265 | choke me | |
14266 | #else | |
a0b9e27f | 14267 | remove(); |
90dd450c | 14268 | #endif |
55e80573 | 14269 | |
a0b9e27f MB |
14270 | ; return 0; } |
14271 | EOF | |
ac0c4cc3 | 14272 | if { (eval echo configure:14273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14273 | rm -rf conftest* |
14274 | eval "ac_cv_func_remove=yes" | |
14275 | else | |
14276 | echo "configure: failed program was:" >&5 | |
14277 | cat conftest.$ac_ext >&5 | |
14278 | rm -rf conftest* | |
14279 | eval "ac_cv_func_remove=no" | |
14280 | fi | |
14281 | rm -f conftest* | |
14282 | fi | |
14283 | ||
14284 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
14285 | echo "$ac_t""yes" 1>&6 | |
14286 | : | |
14287 | else | |
14288 | echo "$ac_t""no" 1>&6 | |
14289 | fi | |
10f2d63a | 14290 | |
90dd450c | 14291 | if test $ac_cv_func_remove = no; then |
a0b9e27f | 14292 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
ac0c4cc3 | 14293 | echo "configure:14294: checking for remove in -lposix" >&5 |
a0b9e27f MB |
14294 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
14295 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14296 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 14297 | else |
a0b9e27f | 14298 | ac_save_LIBS="$LIBS" |
90dd450c | 14299 | LIBS="-lposix $LIBS" |
a0b9e27f | 14300 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 14301 | #line 14302 "configure" |
90dd450c VZ |
14302 | #include "confdefs.h" |
14303 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14304 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14305 | builtin and then its argument prototype would still apply. */ |
14306 | char remove(); | |
14307 | ||
14308 | int main() { | |
14309 | remove() | |
14310 | ; return 0; } | |
14311 | EOF | |
ac0c4cc3 | 14312 | if { (eval echo configure:14313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14313 | rm -rf conftest* |
14314 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14315 | else | |
14316 | echo "configure: failed program was:" >&5 | |
14317 | cat conftest.$ac_ext >&5 | |
14318 | rm -rf conftest* | |
14319 | eval "ac_cv_lib_$ac_lib_var=no" | |
14320 | fi | |
14321 | rm -f conftest* | |
14322 | LIBS="$ac_save_LIBS" | |
14323 | ||
14324 | fi | |
14325 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14326 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 14327 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
a0b9e27f MB |
14328 | else |
14329 | echo "$ac_t""no" 1>&6 | |
90dd450c | 14330 | fi |
f6bcfd97 | 14331 | |
6fa882bd RR |
14332 | fi |
14333 | ||
90dd450c | 14334 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
a0b9e27f | 14335 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
ac0c4cc3 | 14336 | echo "configure:14337: checking for shmat" >&5 |
a0b9e27f MB |
14337 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
14338 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 14339 | else |
a0b9e27f | 14340 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 14341 | #line 14342 "configure" |
90dd450c VZ |
14342 | #include "confdefs.h" |
14343 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 14344 | which can conflict with char shmat(); below. */ |
90dd450c VZ |
14345 | #include <assert.h> |
14346 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14347 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14348 | builtin and then its argument prototype would still apply. */ |
14349 | char shmat(); | |
14350 | ||
14351 | int main() { | |
14352 | ||
90dd450c VZ |
14353 | /* The GNU C library defines this for functions which it implements |
14354 | to always fail with ENOSYS. Some functions are actually named | |
14355 | something starting with __ and the normal name is an alias. */ | |
14356 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
14357 | choke me | |
14358 | #else | |
a0b9e27f | 14359 | shmat(); |
90dd450c | 14360 | #endif |
10f2d63a | 14361 | |
a0b9e27f MB |
14362 | ; return 0; } |
14363 | EOF | |
ac0c4cc3 | 14364 | if { (eval echo configure:14365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14365 | rm -rf conftest* |
14366 | eval "ac_cv_func_shmat=yes" | |
14367 | else | |
14368 | echo "configure: failed program was:" >&5 | |
14369 | cat conftest.$ac_ext >&5 | |
14370 | rm -rf conftest* | |
14371 | eval "ac_cv_func_shmat=no" | |
14372 | fi | |
14373 | rm -f conftest* | |
14374 | fi | |
14375 | ||
14376 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
14377 | echo "$ac_t""yes" 1>&6 | |
14378 | : | |
14379 | else | |
14380 | echo "$ac_t""no" 1>&6 | |
14381 | fi | |
d08b457b | 14382 | |
90dd450c | 14383 | if test $ac_cv_func_shmat = no; then |
a0b9e27f | 14384 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
ac0c4cc3 | 14385 | echo "configure:14386: checking for shmat in -lipc" >&5 |
a0b9e27f MB |
14386 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
14387 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14388 | echo $ac_n "(cached) $ac_c" 1>&6 | |
d08b457b | 14389 | else |
a0b9e27f | 14390 | ac_save_LIBS="$LIBS" |
90dd450c | 14391 | LIBS="-lipc $LIBS" |
a0b9e27f | 14392 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 14393 | #line 14394 "configure" |
90dd450c | 14394 | #include "confdefs.h" |
8284b0c5 | 14395 | /* Override any gcc2 internal prototype to avoid an error. */ |
90dd450c | 14396 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
14397 | builtin and then its argument prototype would still apply. */ |
14398 | char shmat(); | |
14399 | ||
14400 | int main() { | |
14401 | shmat() | |
14402 | ; return 0; } | |
14403 | EOF | |
ac0c4cc3 | 14404 | if { (eval echo configure:14405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14405 | rm -rf conftest* |
14406 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14407 | else | |
14408 | echo "configure: failed program was:" >&5 | |
14409 | cat conftest.$ac_ext >&5 | |
14410 | rm -rf conftest* | |
14411 | eval "ac_cv_lib_$ac_lib_var=no" | |
14412 | fi | |
14413 | rm -f conftest* | |
14414 | LIBS="$ac_save_LIBS" | |
14415 | ||
14416 | fi | |
14417 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14418 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 14419 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
a0b9e27f MB |
14420 | else |
14421 | echo "$ac_t""no" 1>&6 | |
d08b457b GD |
14422 | fi |
14423 | ||
d558c907 | 14424 | fi |
90dd450c | 14425 | fi |
3a922bb4 | 14426 | |
90dd450c | 14427 | # Check for libraries that X11R6 Xt/Xaw programs need. |
a0b9e27f | 14428 | ac_save_LDFLAGS="$LDFLAGS" |
90dd450c VZ |
14429 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
14430 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
14431 | # check for ICE first), but we must link in the order -lSM -lICE or | |
14432 | # we get undefined symbols. So assume we have SM if we have ICE. | |
14433 | # These have to be linked with before -lX11, unlike the other | |
14434 | # libraries we check for below, so use a different variable. | |
a0b9e27f MB |
14435 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
14436 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
ac0c4cc3 | 14437 | echo "configure:14438: checking for IceConnectionNumber in -lICE" >&5 |
a0b9e27f MB |
14438 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
14439 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14440 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14441 | else | |
14442 | ac_save_LIBS="$LIBS" | |
f09359cf | 14443 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 14444 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 14445 | #line 14446 "configure" |
9cfadba2 | 14446 | #include "confdefs.h" |
90dd450c VZ |
14447 | /* Override any gcc2 internal prototype to avoid an error. */ |
14448 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14449 | builtin and then its argument prototype would still apply. */ |
14450 | char IceConnectionNumber(); | |
14451 | ||
14452 | int main() { | |
14453 | IceConnectionNumber() | |
14454 | ; return 0; } | |
14455 | EOF | |
ac0c4cc3 | 14456 | if { (eval echo configure:14457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14457 | rm -rf conftest* |
14458 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14459 | else | |
14460 | echo "configure: failed program was:" >&5 | |
14461 | cat conftest.$ac_ext >&5 | |
14462 | rm -rf conftest* | |
14463 | eval "ac_cv_lib_$ac_lib_var=no" | |
14464 | fi | |
14465 | rm -f conftest* | |
14466 | LIBS="$ac_save_LIBS" | |
14467 | ||
14468 | fi | |
14469 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14470 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 14471 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
a0b9e27f MB |
14472 | else |
14473 | echo "$ac_t""no" 1>&6 | |
9cfadba2 | 14474 | fi |
10f2d63a | 14475 | |
a0b9e27f | 14476 | LDFLAGS="$ac_save_LDFLAGS" |
90dd450c VZ |
14477 | |
14478 | fi | |
14479 | ||
8284b0c5 | 14480 | |
90dd450c | 14481 | if test "$no_x" = "yes"; then |
a0b9e27f | 14482 | { echo "configure: error: X11 not found" 1>&2; exit 1; } |
90dd450c VZ |
14483 | fi |
14484 | ||
14485 | GUI_TK_LIBRARY="$X_LIBS" | |
14486 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
14487 | AFMINSTALL=afminstall | |
14488 | COMPILED_X_PROGRAM=0 | |
14489 | ||
21d1c967 | 14490 | if test "$wxUSE_NANOX" = "yes"; then |
a0b9e27f | 14491 | echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6 |
ac0c4cc3 | 14492 | echo "configure:14493: checking for MicroWindows/NanoX distribution" >&5 |
21d1c967 | 14493 | if test "x$MICROWIN" = x ; then |
a0b9e27f MB |
14494 | echo "$ac_t""not found" 1>&6 |
14495 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; } | |
90dd450c | 14496 | else |
a0b9e27f MB |
14497 | echo "$ac_t""$MICROWIN" 1>&6 |
14498 | cat >> confdefs.h <<\EOF | |
21d1c967 | 14499 | #define wxUSE_NANOX 1 |
a0b9e27f | 14500 | EOF |
21d1c967 | 14501 | |
90dd450c VZ |
14502 | fi |
14503 | fi | |
14504 | ||
14505 | xpm_link= | |
a0b9e27f | 14506 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
ac0c4cc3 | 14507 | echo "configure:14508: checking for Xpm library" >&5 |
a0b9e27f | 14508 | |
90dd450c | 14509 | ac_find_libraries= |
2b5f62a0 | 14510 | for ac_dir in $SEARCH_LIB /usr/lib; |
90dd450c VZ |
14511 | do |
14512 | for ac_extension in a so sl dylib; do | |
14513 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
14514 | ac_find_libraries=$ac_dir | |
14515 | break 2 | |
14516 | fi | |
14517 | done | |
14518 | done | |
14519 | ||
14520 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 14521 | |
90dd450c VZ |
14522 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
14523 | result=$? | |
14524 | if test $result = 0; then | |
14525 | ac_path_to_link="" | |
14526 | else | |
14527 | ac_path_to_link=" -L$ac_find_libraries" | |
21d1c967 | 14528 | fi |
90dd450c | 14529 | |
21d1c967 GD |
14530 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
14531 | xpm_link=" -lXpm" | |
a0b9e27f | 14532 | cat >> confdefs.h <<\EOF |
21d1c967 | 14533 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 14534 | EOF |
90dd450c | 14535 | |
a0b9e27f | 14536 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 14537 | else |
a0b9e27f | 14538 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 14539 | #line 14540 "configure" |
21d1c967 | 14540 | #include "confdefs.h" |
90dd450c | 14541 | |
21d1c967 | 14542 | #include <X11/xpm.h> |
a0b9e27f MB |
14543 | |
14544 | int main() { | |
6f72b082 | 14545 | |
21d1c967 GD |
14546 | int version; |
14547 | version = XpmLibraryVersion(); | |
a0b9e27f MB |
14548 | |
14549 | ; return 0; } | |
14550 | EOF | |
ac0c4cc3 | 14551 | if { (eval echo configure:14552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
14552 | rm -rf conftest* |
14553 | ||
21d1c967 | 14554 | xpm_link=" -lXpm" |
a0b9e27f | 14555 | cat >> confdefs.h <<\EOF |
21d1c967 | 14556 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 14557 | EOF |
90dd450c | 14558 | |
a0b9e27f | 14559 | echo "$ac_t""found in default search path" 1>&6 |
21d1c967 | 14560 | COMPILED_X_PROGRAM=0 |
a0b9e27f | 14561 | |
21d1c967 | 14562 | else |
a0b9e27f MB |
14563 | echo "configure: failed program was:" >&5 |
14564 | cat conftest.$ac_ext >&5 | |
14565 | rm -rf conftest* | |
14566 | ||
14567 | echo "$ac_t""no" 1>&6 | |
14568 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
14569 | ||
14570 | ||
6f72b082 | 14571 | fi |
a0b9e27f | 14572 | rm -f conftest* |
21d1c967 | 14573 | fi |
90dd450c | 14574 | |
2b5f62a0 VZ |
14575 | if test "$wxUSE_UNICODE" = "yes"; then |
14576 | ||
14577 | succeeded=no | |
90dd450c | 14578 | |
2b5f62a0 VZ |
14579 | if test -z "$PKG_CONFIG"; then |
14580 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
14581 | set dummy pkg-config; ac_word=$2 | |
14582 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ac0c4cc3 | 14583 | echo "configure:14584: checking for $ac_word" >&5 |
2b5f62a0 | 14584 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
a0b9e27f MB |
14585 | echo $ac_n "(cached) $ac_c" 1>&6 |
14586 | else | |
2b5f62a0 VZ |
14587 | case "$PKG_CONFIG" in |
14588 | /*) | |
14589 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
14590 | ;; | |
14591 | ?:/*) | |
14592 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
14593 | ;; | |
14594 | *) | |
14595 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
14596 | ac_dummy="$PATH" | |
14597 | for ac_dir in $ac_dummy; do | |
14598 | test -z "$ac_dir" && ac_dir=. | |
14599 | if test -f $ac_dir/$ac_word; then | |
14600 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
14601 | break | |
14602 | fi | |
14603 | done | |
14604 | IFS="$ac_save_ifs" | |
14605 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
14606 | ;; | |
14607 | esac | |
14608 | fi | |
14609 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
14610 | if test -n "$PKG_CONFIG"; then | |
14611 | echo "$ac_t""$PKG_CONFIG" 1>&6 | |
14612 | else | |
14613 | echo "$ac_t""no" 1>&6 | |
14614 | fi | |
14615 | ||
14616 | fi | |
14617 | ||
14618 | if test "$PKG_CONFIG" = "no" ; then | |
14619 | echo "*** The pkg-config script could not be found. Make sure it is" | |
14620 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
14621 | echo "*** to the full path to pkg-config." | |
14622 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
14623 | else | |
14624 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
14625 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
14626 | echo $ac_n "checking for pangox""... $ac_c" 1>&6 | |
ac0c4cc3 | 14627 | echo "configure:14628: checking for pangox" >&5 |
2b5f62a0 VZ |
14628 | |
14629 | if $PKG_CONFIG --exists "pangox" ; then | |
14630 | echo "$ac_t""yes" 1>&6 | |
14631 | succeeded=yes | |
14632 | ||
14633 | echo $ac_n "checking PANGOX_CFLAGS""... $ac_c" 1>&6 | |
ac0c4cc3 | 14634 | echo "configure:14635: checking PANGOX_CFLAGS" >&5 |
2b5f62a0 VZ |
14635 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` |
14636 | echo "$ac_t""$PANGOX_CFLAGS" 1>&6 | |
14637 | ||
14638 | echo $ac_n "checking PANGOX_LIBS""... $ac_c" 1>&6 | |
ac0c4cc3 | 14639 | echo "configure:14640: checking PANGOX_LIBS" >&5 |
2b5f62a0 VZ |
14640 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` |
14641 | echo "$ac_t""$PANGOX_LIBS" 1>&6 | |
14642 | else | |
14643 | PANGOX_CFLAGS="" | |
14644 | PANGOX_LIBS="" | |
14645 | ## If we have a custom action on failure, don't print errors, but | |
14646 | ## do set a variable so people can do so. | |
14647 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
14648 | ||
14649 | fi | |
14650 | ||
14651 | ||
14652 | ||
14653 | else | |
14654 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
14655 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
14656 | fi | |
14657 | fi | |
14658 | ||
14659 | if test $succeeded = yes; then | |
14660 | ||
14661 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" | |
14662 | LIBS="$LIBS $PANGOX_LIBS" | |
14663 | ||
14664 | else | |
14665 | ||
14666 | { echo "configure: error: pangox library not found, library cannot be compiled in Unicode mode" 1>&2; exit 1; } | |
14667 | ||
14668 | ||
14669 | fi | |
14670 | ||
14671 | ||
14672 | succeeded=no | |
14673 | ||
14674 | if test -z "$PKG_CONFIG"; then | |
14675 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
14676 | set dummy pkg-config; ac_word=$2 | |
14677 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ac0c4cc3 | 14678 | echo "configure:14679: checking for $ac_word" >&5 |
2b5f62a0 VZ |
14679 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
14680 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14681 | else | |
14682 | case "$PKG_CONFIG" in | |
14683 | /*) | |
14684 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
14685 | ;; | |
14686 | ?:/*) | |
14687 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
14688 | ;; | |
14689 | *) | |
14690 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
14691 | ac_dummy="$PATH" | |
14692 | for ac_dir in $ac_dummy; do | |
14693 | test -z "$ac_dir" && ac_dir=. | |
14694 | if test -f $ac_dir/$ac_word; then | |
14695 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
14696 | break | |
14697 | fi | |
14698 | done | |
14699 | IFS="$ac_save_ifs" | |
14700 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
14701 | ;; | |
14702 | esac | |
14703 | fi | |
14704 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
14705 | if test -n "$PKG_CONFIG"; then | |
14706 | echo "$ac_t""$PKG_CONFIG" 1>&6 | |
14707 | else | |
14708 | echo "$ac_t""no" 1>&6 | |
14709 | fi | |
14710 | ||
14711 | fi | |
14712 | ||
14713 | if test "$PKG_CONFIG" = "no" ; then | |
14714 | echo "*** The pkg-config script could not be found. Make sure it is" | |
14715 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
14716 | echo "*** to the full path to pkg-config." | |
14717 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
14718 | else | |
14719 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
14720 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
14721 | echo $ac_n "checking for pangoft2""... $ac_c" 1>&6 | |
ac0c4cc3 | 14722 | echo "configure:14723: checking for pangoft2" >&5 |
2b5f62a0 VZ |
14723 | |
14724 | if $PKG_CONFIG --exists "pangoft2" ; then | |
14725 | echo "$ac_t""yes" 1>&6 | |
14726 | succeeded=yes | |
14727 | ||
14728 | echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6 | |
ac0c4cc3 | 14729 | echo "configure:14730: checking PANGOFT2_CFLAGS" >&5 |
2b5f62a0 VZ |
14730 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
14731 | echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6 | |
14732 | ||
14733 | echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6 | |
ac0c4cc3 | 14734 | echo "configure:14735: checking PANGOFT2_LIBS" >&5 |
2b5f62a0 VZ |
14735 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
14736 | echo "$ac_t""$PANGOFT2_LIBS" 1>&6 | |
14737 | else | |
14738 | PANGOFT2_CFLAGS="" | |
14739 | PANGOFT2_LIBS="" | |
14740 | ## If we have a custom action on failure, don't print errors, but | |
14741 | ## do set a variable so people can do so. | |
14742 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
14743 | ||
14744 | fi | |
14745 | ||
14746 | ||
14747 | ||
14748 | else | |
14749 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
14750 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
14751 | fi | |
14752 | fi | |
14753 | ||
14754 | if test $succeeded = yes; then | |
14755 | ||
14756 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
14757 | LIBS="$LIBS $PANGOFT2_LIBS" | |
14758 | ||
14759 | else | |
14760 | ||
14761 | echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2 | |
14762 | wxUSE_PRINTING_ARCHITECTURE="no" | |
14763 | ||
14764 | ||
14765 | fi | |
14766 | ||
14767 | ||
14768 | succeeded=no | |
14769 | ||
14770 | if test -z "$PKG_CONFIG"; then | |
14771 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
14772 | set dummy pkg-config; ac_word=$2 | |
14773 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ac0c4cc3 | 14774 | echo "configure:14775: checking for $ac_word" >&5 |
2b5f62a0 VZ |
14775 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
14776 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14777 | else | |
14778 | case "$PKG_CONFIG" in | |
14779 | /*) | |
14780 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
14781 | ;; | |
14782 | ?:/*) | |
14783 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
14784 | ;; | |
14785 | *) | |
14786 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
14787 | ac_dummy="$PATH" | |
14788 | for ac_dir in $ac_dummy; do | |
14789 | test -z "$ac_dir" && ac_dir=. | |
14790 | if test -f $ac_dir/$ac_word; then | |
14791 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
14792 | break | |
14793 | fi | |
14794 | done | |
14795 | IFS="$ac_save_ifs" | |
14796 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
14797 | ;; | |
14798 | esac | |
14799 | fi | |
14800 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
14801 | if test -n "$PKG_CONFIG"; then | |
14802 | echo "$ac_t""$PKG_CONFIG" 1>&6 | |
14803 | else | |
14804 | echo "$ac_t""no" 1>&6 | |
14805 | fi | |
14806 | ||
14807 | fi | |
14808 | ||
14809 | if test "$PKG_CONFIG" = "no" ; then | |
14810 | echo "*** The pkg-config script could not be found. Make sure it is" | |
14811 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
14812 | echo "*** to the full path to pkg-config." | |
14813 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
14814 | else | |
14815 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
14816 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
14817 | echo $ac_n "checking for pangoxft""... $ac_c" 1>&6 | |
ac0c4cc3 | 14818 | echo "configure:14819: checking for pangoxft" >&5 |
2b5f62a0 VZ |
14819 | |
14820 | if $PKG_CONFIG --exists "pangoxft" ; then | |
14821 | echo "$ac_t""yes" 1>&6 | |
14822 | succeeded=yes | |
14823 | ||
14824 | echo $ac_n "checking PANGOXFT_CFLAGS""... $ac_c" 1>&6 | |
ac0c4cc3 | 14825 | echo "configure:14826: checking PANGOXFT_CFLAGS" >&5 |
2b5f62a0 VZ |
14826 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` |
14827 | echo "$ac_t""$PANGOXFT_CFLAGS" 1>&6 | |
14828 | ||
14829 | echo $ac_n "checking PANGOXFT_LIBS""... $ac_c" 1>&6 | |
ac0c4cc3 | 14830 | echo "configure:14831: checking PANGOXFT_LIBS" >&5 |
2b5f62a0 VZ |
14831 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` |
14832 | echo "$ac_t""$PANGOXFT_LIBS" 1>&6 | |
14833 | else | |
14834 | PANGOXFT_CFLAGS="" | |
14835 | PANGOXFT_LIBS="" | |
14836 | ## If we have a custom action on failure, don't print errors, but | |
14837 | ## do set a variable so people can do so. | |
14838 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
14839 | ||
14840 | fi | |
14841 | ||
14842 | ||
14843 | ||
14844 | else | |
14845 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
14846 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
14847 | fi | |
14848 | fi | |
14849 | ||
14850 | if test $succeeded = yes; then | |
14851 | ||
14852 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" | |
14853 | LIBS="$LIBS $PANGOXFT_LIBS" | |
14854 | ||
14855 | else | |
14856 | ||
14857 | echo "configure: warning: pangoxft library not found, library will be compiled without anti-aliasing support" 1>&2 | |
14858 | ||
14859 | ||
14860 | fi | |
14861 | ||
14862 | fi | |
14863 | ||
14864 | wxUSE_UNIVERSAL="yes" | |
14865 | ||
14866 | if test "$wxUSE_NANOX" = "yes"; then | |
14867 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
14868 | 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" | |
14869 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
14870 | else | |
14871 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link" | |
14872 | fi | |
14873 | ||
14874 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" | |
14875 | TOOLKIT=X11 | |
14876 | GUIDIST=X11_DIST | |
14877 | fi | |
14878 | ||
21d1c967 GD |
14879 | if test "$wxUSE_MOTIF" = 1; then |
14880 | if test "$no_x" = yes; then | |
14881 | # Not all programs may use this symbol, but it does not hurt to define it. | |
a0b9e27f | 14882 | cat >> confdefs.h <<\EOF |
21d1c967 | 14883 | #define X_DISPLAY_MISSING 1 |
a0b9e27f | 14884 | EOF |
21d1c967 GD |
14885 | |
14886 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
14887 | else | |
14888 | if test -n "$x_includes"; then | |
14889 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
90dd450c VZ |
14890 | fi |
14891 | ||
21d1c967 GD |
14892 | # It would also be nice to do this for all -L options, not just this one. |
14893 | if test -n "$x_libraries"; then | |
14894 | X_LIBS="$X_LIBS -L$x_libraries" | |
14895 | # For Solaris; some versions of Sun CC require a space after -R and | |
14896 | # others require no space. Words are not sufficient . . . . | |
a0b9e27f | 14897 | case "`(uname -sr) 2>/dev/null`" in |
21d1c967 | 14898 | "SunOS 5"*) |
a0b9e27f | 14899 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
ac0c4cc3 | 14900 | echo "configure:14901: checking whether -R must be followed by a space" >&5 |
a0b9e27f MB |
14901 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
14902 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 14903 | #line 14904 "configure" |
21d1c967 GD |
14904 | #include "confdefs.h" |
14905 | ||
a0b9e27f | 14906 | int main() { |
21d1c967 | 14907 | |
a0b9e27f MB |
14908 | ; return 0; } |
14909 | EOF | |
ac0c4cc3 | 14910 | if { (eval echo configure:14911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 14911 | rm -rf conftest* |
21d1c967 | 14912 | ac_R_nospace=yes |
698dcdb6 | 14913 | else |
a0b9e27f MB |
14914 | echo "configure: failed program was:" >&5 |
14915 | cat conftest.$ac_ext >&5 | |
14916 | rm -rf conftest* | |
14917 | ac_R_nospace=no | |
10f2d63a | 14918 | fi |
a0b9e27f | 14919 | rm -f conftest* |
21d1c967 | 14920 | if test $ac_R_nospace = yes; then |
a0b9e27f | 14921 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
14922 | X_LIBS="$X_LIBS -R$x_libraries" |
14923 | else | |
14924 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
a0b9e27f | 14925 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 14926 | #line 14927 "configure" |
21d1c967 | 14927 | #include "confdefs.h" |
10f2d63a | 14928 | |
a0b9e27f | 14929 | int main() { |
f0c87536 | 14930 | |
a0b9e27f MB |
14931 | ; return 0; } |
14932 | EOF | |
ac0c4cc3 | 14933 | if { (eval echo configure:14934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 14934 | rm -rf conftest* |
21d1c967 GD |
14935 | ac_R_space=yes |
14936 | else | |
a0b9e27f MB |
14937 | echo "configure: failed program was:" >&5 |
14938 | cat conftest.$ac_ext >&5 | |
14939 | rm -rf conftest* | |
14940 | ac_R_space=no | |
21d1c967 | 14941 | fi |
a0b9e27f | 14942 | rm -f conftest* |
21d1c967 | 14943 | if test $ac_R_space = yes; then |
a0b9e27f | 14944 | echo "$ac_t""yes" 1>&6 |
21d1c967 GD |
14945 | X_LIBS="$X_LIBS -R $x_libraries" |
14946 | else | |
a0b9e27f | 14947 | echo "$ac_t""neither works" 1>&6 |
21d1c967 GD |
14948 | fi |
14949 | fi | |
a0b9e27f | 14950 | LIBS="$ac_xsave_LIBS" |
21d1c967 GD |
14951 | esac |
14952 | fi | |
90dd450c | 14953 | |
21d1c967 GD |
14954 | # Check for system-dependent libraries X programs must link with. |
14955 | # Do this before checking for the system-independent R6 libraries | |
14956 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
14957 | ||
14958 | if test "$ISC" = yes; then | |
14959 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
14960 | else | |
a0b9e27f MB |
14961 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
14962 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
21d1c967 | 14963 | # the Alpha needs dnet_stub (dnet does not exist). |
a0b9e27f | 14964 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
ac0c4cc3 | 14965 | echo "configure:14966: checking for dnet_ntoa in -ldnet" >&5 |
a0b9e27f MB |
14966 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
14967 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14968 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 14969 | else |
a0b9e27f | 14970 | ac_save_LIBS="$LIBS" |
247f5006 | 14971 | LIBS="-ldnet $LIBS" |
a0b9e27f | 14972 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 14973 | #line 14974 "configure" |
247f5006 | 14974 | #include "confdefs.h" |
247f5006 | 14975 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 | 14976 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
14977 | builtin and then its argument prototype would still apply. */ |
14978 | char dnet_ntoa(); | |
14979 | ||
14980 | int main() { | |
14981 | dnet_ntoa() | |
14982 | ; return 0; } | |
14983 | EOF | |
ac0c4cc3 | 14984 | if { (eval echo configure:14985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14985 | rm -rf conftest* |
14986 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14987 | else | |
14988 | echo "configure: failed program was:" >&5 | |
14989 | cat conftest.$ac_ext >&5 | |
14990 | rm -rf conftest* | |
14991 | eval "ac_cv_lib_$ac_lib_var=no" | |
14992 | fi | |
14993 | rm -f conftest* | |
14994 | LIBS="$ac_save_LIBS" | |
14995 | ||
14996 | fi | |
14997 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14998 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14999 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
a0b9e27f MB |
15000 | else |
15001 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 | 15002 | fi |
0fb0dd83 | 15003 | |
21d1c967 | 15004 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
a0b9e27f | 15005 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
ac0c4cc3 | 15006 | echo "configure:15007: checking for dnet_ntoa in -ldnet_stub" >&5 |
a0b9e27f MB |
15007 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
15008 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15009 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 15010 | else |
a0b9e27f | 15011 | ac_save_LIBS="$LIBS" |
21d1c967 | 15012 | LIBS="-ldnet_stub $LIBS" |
a0b9e27f | 15013 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 15014 | #line 15015 "configure" |
21d1c967 GD |
15015 | #include "confdefs.h" |
15016 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15017 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15018 | builtin and then its argument prototype would still apply. */ |
15019 | char dnet_ntoa(); | |
15020 | ||
15021 | int main() { | |
15022 | dnet_ntoa() | |
15023 | ; return 0; } | |
15024 | EOF | |
ac0c4cc3 | 15025 | if { (eval echo configure:15026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15026 | rm -rf conftest* |
15027 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15028 | else | |
15029 | echo "configure: failed program was:" >&5 | |
15030 | cat conftest.$ac_ext >&5 | |
15031 | rm -rf conftest* | |
15032 | eval "ac_cv_lib_$ac_lib_var=no" | |
15033 | fi | |
15034 | rm -f conftest* | |
15035 | LIBS="$ac_save_LIBS" | |
15036 | ||
15037 | fi | |
15038 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15039 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 15040 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
a0b9e27f MB |
15041 | else |
15042 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
15043 | fi |
15044 | ||
21d1c967 | 15045 | fi |
90dd450c | 15046 | |
21d1c967 GD |
15047 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
15048 | # to get the SysV transport functions. | |
a0b9e27f | 15049 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
21d1c967 GD |
15050 | # needs -lnsl. |
15051 | # The nsl library prevents programs from opening the X display | |
a0b9e27f MB |
15052 | # on Irix 5.2, according to dickey@clark.net. |
15053 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
ac0c4cc3 | 15054 | echo "configure:15055: checking for gethostbyname" >&5 |
a0b9e27f MB |
15055 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
15056 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15057 | else | |
15058 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 15059 | #line 15060 "configure" |
21d1c967 GD |
15060 | #include "confdefs.h" |
15061 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 15062 | which can conflict with char gethostbyname(); below. */ |
21d1c967 GD |
15063 | #include <assert.h> |
15064 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15065 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15066 | builtin and then its argument prototype would still apply. */ |
15067 | char gethostbyname(); | |
15068 | ||
15069 | int main() { | |
15070 | ||
21d1c967 GD |
15071 | /* The GNU C library defines this for functions which it implements |
15072 | to always fail with ENOSYS. Some functions are actually named | |
15073 | something starting with __ and the normal name is an alias. */ | |
15074 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
15075 | choke me | |
15076 | #else | |
a0b9e27f | 15077 | gethostbyname(); |
21d1c967 | 15078 | #endif |
90dd450c | 15079 | |
a0b9e27f MB |
15080 | ; return 0; } |
15081 | EOF | |
ac0c4cc3 | 15082 | if { (eval echo configure:15083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15083 | rm -rf conftest* |
15084 | eval "ac_cv_func_gethostbyname=yes" | |
15085 | else | |
15086 | echo "configure: failed program was:" >&5 | |
15087 | cat conftest.$ac_ext >&5 | |
15088 | rm -rf conftest* | |
15089 | eval "ac_cv_func_gethostbyname=no" | |
15090 | fi | |
15091 | rm -f conftest* | |
15092 | fi | |
15093 | ||
15094 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
15095 | echo "$ac_t""yes" 1>&6 | |
15096 | : | |
15097 | else | |
15098 | echo "$ac_t""no" 1>&6 | |
15099 | fi | |
90dd450c | 15100 | |
21d1c967 | 15101 | if test $ac_cv_func_gethostbyname = no; then |
a0b9e27f | 15102 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
ac0c4cc3 | 15103 | echo "configure:15104: checking for gethostbyname in -lnsl" >&5 |
a0b9e27f MB |
15104 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
15105 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15106 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 15107 | else |
a0b9e27f | 15108 | ac_save_LIBS="$LIBS" |
21d1c967 | 15109 | LIBS="-lnsl $LIBS" |
a0b9e27f | 15110 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 15111 | #line 15112 "configure" |
21d1c967 GD |
15112 | #include "confdefs.h" |
15113 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15114 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15115 | builtin and then its argument prototype would still apply. */ |
15116 | char gethostbyname(); | |
5c6fa7d2 | 15117 | |
a0b9e27f MB |
15118 | int main() { |
15119 | gethostbyname() | |
15120 | ; return 0; } | |
15121 | EOF | |
ac0c4cc3 | 15122 | if { (eval echo configure:15123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15123 | rm -rf conftest* |
15124 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8284b0c5 | 15125 | else |
a0b9e27f MB |
15126 | echo "configure: failed program was:" >&5 |
15127 | cat conftest.$ac_ext >&5 | |
15128 | rm -rf conftest* | |
15129 | eval "ac_cv_lib_$ac_lib_var=no" | |
15130 | fi | |
15131 | rm -f conftest* | |
15132 | LIBS="$ac_save_LIBS" | |
247f5006 | 15133 | |
a0b9e27f MB |
15134 | fi |
15135 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15136 | echo "$ac_t""yes" 1>&6 | |
15137 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
15138 | else | |
15139 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 15140 | fi |
90dd450c | 15141 | |
90dd450c VZ |
15142 | fi |
15143 | ||
21d1c967 GD |
15144 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
15145 | # socket/setsockopt and other routines are undefined under SCO ODT | |
15146 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
a0b9e27f MB |
15147 | # on later versions), says simon@lia.di.epfl.ch: it contains |
15148 | # gethostby* variants that don't use the nameserver (or something). | |
15149 | # -lsocket must be given before -lnsl if both are needed. | |
15150 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
15151 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
ac0c4cc3 | 15152 | echo "configure:15153: checking for connect" >&5 |
a0b9e27f MB |
15153 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
15154 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15155 | else | |
15156 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 15157 | #line 15158 "configure" |
21d1c967 GD |
15158 | #include "confdefs.h" |
15159 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 15160 | which can conflict with char connect(); below. */ |
21d1c967 GD |
15161 | #include <assert.h> |
15162 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15163 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15164 | builtin and then its argument prototype would still apply. */ |
15165 | char connect(); | |
15166 | ||
15167 | int main() { | |
15168 | ||
21d1c967 GD |
15169 | /* The GNU C library defines this for functions which it implements |
15170 | to always fail with ENOSYS. Some functions are actually named | |
15171 | something starting with __ and the normal name is an alias. */ | |
15172 | #if defined (__stub_connect) || defined (__stub___connect) | |
15173 | choke me | |
15174 | #else | |
a0b9e27f | 15175 | connect(); |
21d1c967 | 15176 | #endif |
90dd450c | 15177 | |
a0b9e27f MB |
15178 | ; return 0; } |
15179 | EOF | |
ac0c4cc3 | 15180 | if { (eval echo configure:15181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15181 | rm -rf conftest* |
15182 | eval "ac_cv_func_connect=yes" | |
15183 | else | |
15184 | echo "configure: failed program was:" >&5 | |
15185 | cat conftest.$ac_ext >&5 | |
15186 | rm -rf conftest* | |
15187 | eval "ac_cv_func_connect=no" | |
15188 | fi | |
15189 | rm -f conftest* | |
15190 | fi | |
15191 | ||
15192 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
15193 | echo "$ac_t""yes" 1>&6 | |
15194 | : | |
15195 | else | |
15196 | echo "$ac_t""no" 1>&6 | |
15197 | fi | |
1f8ae82f | 15198 | |
21d1c967 | 15199 | if test $ac_cv_func_connect = no; then |
a0b9e27f | 15200 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
ac0c4cc3 | 15201 | echo "configure:15202: checking for connect in -lsocket" >&5 |
a0b9e27f MB |
15202 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
15203 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15204 | echo $ac_n "(cached) $ac_c" 1>&6 | |
0fbb762e | 15205 | else |
a0b9e27f | 15206 | ac_save_LIBS="$LIBS" |
21d1c967 | 15207 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 15208 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 15209 | #line 15210 "configure" |
0fbb762e | 15210 | #include "confdefs.h" |
21d1c967 GD |
15211 | /* Override any gcc2 internal prototype to avoid an error. */ |
15212 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15213 | builtin and then its argument prototype would still apply. */ |
15214 | char connect(); | |
15215 | ||
15216 | int main() { | |
15217 | connect() | |
15218 | ; return 0; } | |
15219 | EOF | |
ac0c4cc3 | 15220 | if { (eval echo configure:15221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15221 | rm -rf conftest* |
15222 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15223 | else | |
15224 | echo "configure: failed program was:" >&5 | |
15225 | cat conftest.$ac_ext >&5 | |
15226 | rm -rf conftest* | |
15227 | eval "ac_cv_lib_$ac_lib_var=no" | |
15228 | fi | |
15229 | rm -f conftest* | |
15230 | LIBS="$ac_save_LIBS" | |
15231 | ||
15232 | fi | |
15233 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15234 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 15235 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
a0b9e27f MB |
15236 | else |
15237 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 15238 | fi |
90dd450c | 15239 | |
21d1c967 | 15240 | fi |
90dd450c | 15241 | |
a0b9e27f MB |
15242 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
15243 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
ac0c4cc3 | 15244 | echo "configure:15245: checking for remove" >&5 |
a0b9e27f MB |
15245 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
15246 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 15247 | else |
a0b9e27f | 15248 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 15249 | #line 15250 "configure" |
21d1c967 GD |
15250 | #include "confdefs.h" |
15251 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 15252 | which can conflict with char remove(); below. */ |
21d1c967 GD |
15253 | #include <assert.h> |
15254 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15255 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15256 | builtin and then its argument prototype would still apply. */ |
15257 | char remove(); | |
15258 | ||
15259 | int main() { | |
15260 | ||
21d1c967 GD |
15261 | /* The GNU C library defines this for functions which it implements |
15262 | to always fail with ENOSYS. Some functions are actually named | |
15263 | something starting with __ and the normal name is an alias. */ | |
15264 | #if defined (__stub_remove) || defined (__stub___remove) | |
15265 | choke me | |
15266 | #else | |
a0b9e27f | 15267 | remove(); |
21d1c967 | 15268 | #endif |
90dd450c | 15269 | |
a0b9e27f MB |
15270 | ; return 0; } |
15271 | EOF | |
ac0c4cc3 | 15272 | if { (eval echo configure:15273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15273 | rm -rf conftest* |
15274 | eval "ac_cv_func_remove=yes" | |
15275 | else | |
15276 | echo "configure: failed program was:" >&5 | |
15277 | cat conftest.$ac_ext >&5 | |
15278 | rm -rf conftest* | |
15279 | eval "ac_cv_func_remove=no" | |
15280 | fi | |
15281 | rm -f conftest* | |
15282 | fi | |
15283 | ||
15284 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
15285 | echo "$ac_t""yes" 1>&6 | |
15286 | : | |
15287 | else | |
15288 | echo "$ac_t""no" 1>&6 | |
15289 | fi | |
90dd450c | 15290 | |
21d1c967 | 15291 | if test $ac_cv_func_remove = no; then |
a0b9e27f | 15292 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
ac0c4cc3 | 15293 | echo "configure:15294: checking for remove in -lposix" >&5 |
a0b9e27f MB |
15294 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
15295 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15296 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 15297 | else |
a0b9e27f | 15298 | ac_save_LIBS="$LIBS" |
21d1c967 | 15299 | LIBS="-lposix $LIBS" |
a0b9e27f | 15300 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 15301 | #line 15302 "configure" |
21d1c967 GD |
15302 | #include "confdefs.h" |
15303 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15304 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15305 | builtin and then its argument prototype would still apply. */ |
15306 | char remove(); | |
15307 | ||
15308 | int main() { | |
15309 | remove() | |
15310 | ; return 0; } | |
15311 | EOF | |
ac0c4cc3 | 15312 | if { (eval echo configure:15313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15313 | rm -rf conftest* |
15314 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15315 | else | |
15316 | echo "configure: failed program was:" >&5 | |
15317 | cat conftest.$ac_ext >&5 | |
15318 | rm -rf conftest* | |
15319 | eval "ac_cv_lib_$ac_lib_var=no" | |
15320 | fi | |
15321 | rm -f conftest* | |
15322 | LIBS="$ac_save_LIBS" | |
15323 | ||
15324 | fi | |
15325 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15326 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 15327 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
a0b9e27f MB |
15328 | else |
15329 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 15330 | fi |
19bc6aad | 15331 | |
90dd450c | 15332 | fi |
19bc6aad | 15333 | |
21d1c967 | 15334 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
a0b9e27f | 15335 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
ac0c4cc3 | 15336 | echo "configure:15337: checking for shmat" >&5 |
a0b9e27f MB |
15337 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
15338 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 15339 | else |
a0b9e27f | 15340 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 15341 | #line 15342 "configure" |
21d1c967 GD |
15342 | #include "confdefs.h" |
15343 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 15344 | which can conflict with char shmat(); below. */ |
21d1c967 GD |
15345 | #include <assert.h> |
15346 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15347 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15348 | builtin and then its argument prototype would still apply. */ |
15349 | char shmat(); | |
15350 | ||
15351 | int main() { | |
15352 | ||
21d1c967 GD |
15353 | /* The GNU C library defines this for functions which it implements |
15354 | to always fail with ENOSYS. Some functions are actually named | |
15355 | something starting with __ and the normal name is an alias. */ | |
15356 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
15357 | choke me | |
15358 | #else | |
a0b9e27f | 15359 | shmat(); |
21d1c967 | 15360 | #endif |
90dd450c | 15361 | |
a0b9e27f MB |
15362 | ; return 0; } |
15363 | EOF | |
ac0c4cc3 | 15364 | if { (eval echo configure:15365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15365 | rm -rf conftest* |
15366 | eval "ac_cv_func_shmat=yes" | |
15367 | else | |
15368 | echo "configure: failed program was:" >&5 | |
15369 | cat conftest.$ac_ext >&5 | |
15370 | rm -rf conftest* | |
15371 | eval "ac_cv_func_shmat=no" | |
15372 | fi | |
15373 | rm -f conftest* | |
15374 | fi | |
15375 | ||
15376 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
15377 | echo "$ac_t""yes" 1>&6 | |
15378 | : | |
15379 | else | |
15380 | echo "$ac_t""no" 1>&6 | |
15381 | fi | |
19bc6aad | 15382 | |
21d1c967 | 15383 | if test $ac_cv_func_shmat = no; then |
a0b9e27f | 15384 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
ac0c4cc3 | 15385 | echo "configure:15386: checking for shmat in -lipc" >&5 |
a0b9e27f MB |
15386 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
15387 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15388 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5c6fa7d2 | 15389 | else |
a0b9e27f | 15390 | ac_save_LIBS="$LIBS" |
5c6fa7d2 | 15391 | LIBS="-lipc $LIBS" |
a0b9e27f | 15392 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 15393 | #line 15394 "configure" |
5c6fa7d2 | 15394 | #include "confdefs.h" |
5c6fa7d2 | 15395 | /* Override any gcc2 internal prototype to avoid an error. */ |
5c6fa7d2 | 15396 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
15397 | builtin and then its argument prototype would still apply. */ |
15398 | char shmat(); | |
15399 | ||
15400 | int main() { | |
15401 | shmat() | |
15402 | ; return 0; } | |
15403 | EOF | |
ac0c4cc3 | 15404 | if { (eval echo configure:15405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15405 | rm -rf conftest* |
15406 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15407 | else | |
15408 | echo "configure: failed program was:" >&5 | |
15409 | cat conftest.$ac_ext >&5 | |
15410 | rm -rf conftest* | |
15411 | eval "ac_cv_lib_$ac_lib_var=no" | |
15412 | fi | |
15413 | rm -f conftest* | |
15414 | LIBS="$ac_save_LIBS" | |
15415 | ||
15416 | fi | |
15417 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15418 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 15419 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
a0b9e27f MB |
15420 | else |
15421 | echo "$ac_t""no" 1>&6 | |
9f8148b1 | 15422 | fi |
90dd450c | 15423 | |
90dd450c | 15424 | fi |
21d1c967 | 15425 | fi |
10f2d63a | 15426 | |
21d1c967 | 15427 | # Check for libraries that X11R6 Xt/Xaw programs need. |
a0b9e27f | 15428 | ac_save_LDFLAGS="$LDFLAGS" |
21d1c967 GD |
15429 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
15430 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
15431 | # check for ICE first), but we must link in the order -lSM -lICE or | |
15432 | # we get undefined symbols. So assume we have SM if we have ICE. | |
15433 | # These have to be linked with before -lX11, unlike the other | |
15434 | # libraries we check for below, so use a different variable. | |
a0b9e27f MB |
15435 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
15436 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
ac0c4cc3 | 15437 | echo "configure:15438: checking for IceConnectionNumber in -lICE" >&5 |
a0b9e27f MB |
15438 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
15439 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15440 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15441 | else | |
15442 | ac_save_LIBS="$LIBS" | |
f09359cf | 15443 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 15444 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 15445 | #line 15446 "configure" |
29fd3c0c | 15446 | #include "confdefs.h" |
21d1c967 GD |
15447 | /* Override any gcc2 internal prototype to avoid an error. */ |
15448 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15449 | builtin and then its argument prototype would still apply. */ |
15450 | char IceConnectionNumber(); | |
15451 | ||
15452 | int main() { | |
15453 | IceConnectionNumber() | |
15454 | ; return 0; } | |
15455 | EOF | |
ac0c4cc3 | 15456 | if { (eval echo configure:15457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15457 | rm -rf conftest* |
15458 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15459 | else | |
15460 | echo "configure: failed program was:" >&5 | |
15461 | cat conftest.$ac_ext >&5 | |
15462 | rm -rf conftest* | |
15463 | eval "ac_cv_lib_$ac_lib_var=no" | |
15464 | fi | |
15465 | rm -f conftest* | |
15466 | LIBS="$ac_save_LIBS" | |
15467 | ||
15468 | fi | |
15469 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15470 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 15471 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
a0b9e27f MB |
15472 | else |
15473 | echo "$ac_t""no" 1>&6 | |
29fd3c0c | 15474 | fi |
21d1c967 | 15475 | |
a0b9e27f | 15476 | LDFLAGS="$ac_save_LDFLAGS" |
29fd3c0c | 15477 | |
10f2d63a VZ |
15478 | fi |
15479 | ||
8284b0c5 | 15480 | |
21d1c967 | 15481 | if test "$no_x" = "yes"; then |
a0b9e27f | 15482 | { echo "configure: error: X11 not found" 1>&2; exit 1; } |
21d1c967 GD |
15483 | fi |
15484 | ||
2b5f62a0 VZ |
15485 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'` |
15486 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
21d1c967 GD |
15487 | AFMINSTALL=afminstall |
15488 | COMPILED_X_PROGRAM=0 | |
15489 | ||
a0b9e27f | 15490 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 |
ac0c4cc3 | 15491 | echo "configure:15492: checking for Motif/Lesstif headers" >&5 |
a0b9e27f | 15492 | |
21d1c967 | 15493 | ac_find_includes= |
2b5f62a0 | 15494 | for ac_dir in $SEARCH_INCLUDE /usr/include; |
21d1c967 GD |
15495 | do |
15496 | if test -f "$ac_dir/Xm/Xm.h"; then | |
15497 | ac_find_includes=$ac_dir | |
15498 | break | |
15499 | fi | |
15500 | done | |
15501 | ||
15502 | if test "$ac_find_includes" != "" ; then | |
a0b9e27f MB |
15503 | echo "$ac_t""found in $ac_find_includes" 1>&6 |
15504 | ||
2b5f62a0 | 15505 | if test "x$ac_find_includes" = "x/usr/include"; then |
dd0e4a90 VZ |
15506 | ac_path_to_include="" |
15507 | else | |
2b5f62a0 VZ |
15508 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null |
15509 | result=$? | |
15510 | if test $result = 0; then | |
15511 | ac_path_to_include="" | |
15512 | else | |
15513 | ac_path_to_include=" -I$ac_find_includes" | |
15514 | fi | |
dd0e4a90 VZ |
15515 | fi |
15516 | ||
15517 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
21d1c967 | 15518 | else |
a0b9e27f | 15519 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 15520 | #line 15521 "configure" |
10f2d63a | 15521 | #include "confdefs.h" |
21d1c967 GD |
15522 | |
15523 | #include <Xm/Xm.h> | |
a0b9e27f MB |
15524 | |
15525 | int main() { | |
21d1c967 GD |
15526 | |
15527 | int version; | |
15528 | version = xmUseVersion; | |
a0b9e27f MB |
15529 | |
15530 | ; return 0; } | |
15531 | EOF | |
ac0c4cc3 | 15532 | if { (eval echo configure:15533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
15533 | rm -rf conftest* |
15534 | ||
15535 | echo "$ac_t""found in default search path" 1>&6 | |
21d1c967 | 15536 | COMPILED_X_PROGRAM=1 |
a0b9e27f | 15537 | |
10f2d63a | 15538 | else |
a0b9e27f MB |
15539 | echo "configure: failed program was:" >&5 |
15540 | cat conftest.$ac_ext >&5 | |
15541 | rm -rf conftest* | |
15542 | ||
15543 | echo "$ac_t""no" 1>&6 | |
15544 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
15545 | ||
15546 | ||
10f2d63a | 15547 | fi |
a0b9e27f | 15548 | rm -f conftest* |
21d1c967 | 15549 | fi |
10f2d63a | 15550 | |
21d1c967 | 15551 | if test "$COMPILED_X_PROGRAM" = 0; then |
a0b9e27f | 15552 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 |
ac0c4cc3 | 15553 | echo "configure:15554: checking for Motif/Lesstif library" >&5 |
a0b9e27f | 15554 | |
21d1c967 | 15555 | ac_find_libraries= |
2b5f62a0 | 15556 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
15557 | do |
15558 | for ac_extension in a so sl dylib; do | |
15559 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
15560 | ac_find_libraries=$ac_dir | |
15561 | break 2 | |
15562 | fi | |
15563 | done | |
15564 | done | |
15565 | ||
15566 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 15567 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 15568 | |
a0b9e27f | 15569 | |
21d1c967 GD |
15570 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
15571 | result=$? | |
15572 | if test $result = 0; then | |
15573 | ac_path_to_link="" | |
15574 | else | |
15575 | ac_path_to_link=" -L$ac_find_libraries" | |
15576 | fi | |
15577 | ||
21d1c967 | 15578 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
21d1c967 | 15579 | else |
dd0e4a90 VZ |
15580 | save_CFLAGS=$CFLAGS |
15581 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
15582 | ||
a0b9e27f | 15583 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 15584 | #line 15585 "configure" |
d836ee96 | 15585 | #include "confdefs.h" |
21d1c967 GD |
15586 | |
15587 | #include <Xm/Xm.h> | |
a0b9e27f MB |
15588 | |
15589 | int main() { | |
21d1c967 GD |
15590 | |
15591 | int version; | |
15592 | version = xmUseVersion; | |
a0b9e27f MB |
15593 | |
15594 | ; return 0; } | |
15595 | EOF | |
ac0c4cc3 | 15596 | if { (eval echo configure:15597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
15597 | rm -rf conftest* |
15598 | ||
15599 | echo "$ac_t""found in default search path" 1>&6 | |
21d1c967 | 15600 | COMPILED_X_PROGRAM=1 |
a0b9e27f | 15601 | |
d836ee96 | 15602 | else |
a0b9e27f MB |
15603 | echo "configure: failed program was:" >&5 |
15604 | cat conftest.$ac_ext >&5 | |
15605 | rm -rf conftest* | |
15606 | ||
15607 | echo "$ac_t""no" 1>&6 | |
15608 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
15609 | ||
15610 | ||
d836ee96 | 15611 | fi |
a0b9e27f | 15612 | rm -f conftest* |
dd0e4a90 VZ |
15613 | |
15614 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
15615 | fi |
15616 | fi | |
15617 | ||
15618 | xpm_link= | |
a0b9e27f | 15619 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
ac0c4cc3 | 15620 | echo "configure:15621: checking for Xpm library" >&5 |
a0b9e27f | 15621 | |
21d1c967 | 15622 | ac_find_libraries= |
2b5f62a0 | 15623 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
15624 | do |
15625 | for ac_extension in a so sl dylib; do | |
15626 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
15627 | ac_find_libraries=$ac_dir | |
15628 | break 2 | |
15629 | fi | |
15630 | done | |
15631 | done | |
15632 | ||
15633 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 15634 | |
21d1c967 GD |
15635 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
15636 | result=$? | |
15637 | if test $result = 0; then | |
15638 | ac_path_to_link="" | |
15639 | else | |
15640 | ac_path_to_link=" -L$ac_find_libraries" | |
15641 | fi | |
15642 | ||
15643 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
dd0e4a90 | 15644 | |
21d1c967 | 15645 | xpm_link=" -lXpm" |
a0b9e27f | 15646 | cat >> confdefs.h <<\EOF |
21d1c967 | 15647 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 15648 | EOF |
90dd450c | 15649 | |
a0b9e27f | 15650 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 15651 | else |
dd0e4a90 VZ |
15652 | save_CFLAGS=$CFLAGS |
15653 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
15654 | ||
a0b9e27f | 15655 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 15656 | #line 15657 "configure" |
d836ee96 | 15657 | #include "confdefs.h" |
21d1c967 GD |
15658 | |
15659 | #include <X11/xpm.h> | |
a0b9e27f MB |
15660 | |
15661 | int main() { | |
21d1c967 GD |
15662 | |
15663 | int version; | |
15664 | version = XpmLibraryVersion(); | |
a0b9e27f MB |
15665 | |
15666 | ; return 0; } | |
15667 | EOF | |
ac0c4cc3 | 15668 | if { (eval echo configure:15669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
15669 | rm -rf conftest* |
15670 | ||
21d1c967 | 15671 | xpm_link=" -lXpm" |
a0b9e27f | 15672 | cat >> confdefs.h <<\EOF |
21d1c967 | 15673 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 15674 | EOF |
21d1c967 | 15675 | |
a0b9e27f | 15676 | echo "$ac_t""found in default search path" 1>&6 |
21d1c967 | 15677 | COMPILED_X_PROGRAM=0 |
a0b9e27f | 15678 | |
d836ee96 | 15679 | else |
a0b9e27f MB |
15680 | echo "configure: failed program was:" >&5 |
15681 | cat conftest.$ac_ext >&5 | |
15682 | rm -rf conftest* | |
15683 | ||
15684 | echo "$ac_t""no" 1>&6 | |
15685 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
15686 | ||
15687 | ||
d836ee96 | 15688 | fi |
a0b9e27f | 15689 | rm -f conftest* |
dd0e4a90 VZ |
15690 | |
15691 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
15692 | fi |
15693 | ||
a0b9e27f | 15694 | echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6 |
ac0c4cc3 | 15695 | echo "configure:15696: checking if we need -lXp and/or -lSM -lICE" >&5 |
6a30f1c8 MB |
15696 | libp_link="" |
15697 | libsm_ice_link="" | |
15698 | libs_found=0 | |
15699 | for libp in "" " -lXp"; do | |
15700 | if test "$libs_found" = "0"; then | |
15701 | for libsm_ice in " -lSM -lICE"; do | |
e26c13cf | 15702 | if test "$libs_found" = "0"; then |
6a30f1c8 MB |
15703 | save_LIBS="$LIBS" |
15704 | LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
dd0e4a90 VZ |
15705 | save_CFLAGS=$CFLAGS |
15706 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
15707 | ||
a0b9e27f | 15708 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 15709 | #line 15710 "configure" |
6a30f1c8 | 15710 | #include "confdefs.h" |
17234b26 | 15711 | |
6a30f1c8 MB |
15712 | #include <Xm/Xm.h> |
15713 | #include <Xm/List.h> | |
a0b9e27f MB |
15714 | |
15715 | int main() { | |
6a30f1c8 MB |
15716 | |
15717 | XmString string = NULL; | |
15718 | Widget w = NULL; | |
15719 | int position = 0; | |
15720 | XmListAddItem(w, string, position); | |
a0b9e27f MB |
15721 | |
15722 | ; return 0; } | |
15723 | EOF | |
ac0c4cc3 | 15724 | if { (eval echo configure:15725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15725 | rm -rf conftest* |
15726 | ||
6a30f1c8 MB |
15727 | libp_link="$libp" |
15728 | libsm_ice_link="$libsm_ice" | |
a0b9e27f | 15729 | echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6 |
6a30f1c8 | 15730 | libs_found=1 |
a0b9e27f | 15731 | |
6a30f1c8 | 15732 | else |
a0b9e27f MB |
15733 | echo "configure: failed program was:" >&5 |
15734 | cat conftest.$ac_ext >&5 | |
15735 | rm -rf conftest* | |
15736 | ||
15737 | ||
6a30f1c8 | 15738 | fi |
a0b9e27f | 15739 | rm -f conftest* |
dd0e4a90 | 15740 | |
6a30f1c8 | 15741 | LIBS="$save_LIBS" |
dd0e4a90 | 15742 | CFLAGS=$save_CFLAGS |
6a30f1c8 MB |
15743 | fi |
15744 | done | |
15745 | fi | |
15746 | done | |
15747 | ||
15748 | if test "$libs_found" = "0"; then | |
a0b9e27f MB |
15749 | echo "$ac_t""can't find the right libraries" 1>&6 |
15750 | { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; } | |
6a30f1c8 MB |
15751 | fi |
15752 | ||
da494b40 MB |
15753 | save_CFLAGS=$CFLAGS |
15754 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
15755 | echo $ac_n "checking for Motif 2""... $ac_c" 1>&6 | |
ac0c4cc3 | 15756 | echo "configure:15757: checking for Motif 2" >&5 |
da494b40 | 15757 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 15758 | #line 15759 "configure" |
da494b40 MB |
15759 | #include "confdefs.h" |
15760 | ||
15761 | #include <Xm/Xm.h> | |
15762 | ||
15763 | int main() { | |
15764 | ||
15765 | #if XmVersion < 2000 | |
15766 | #error "Not Motif 2" | |
15767 | #endif | |
15768 | ||
15769 | ; return 0; } | |
15770 | EOF | |
ac0c4cc3 | 15771 | if { (eval echo configure:15772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
da494b40 MB |
15772 | rm -rf conftest* |
15773 | ||
15774 | cat >> confdefs.h <<\EOF | |
15775 | #define __WXMOTIF20__ 1 | |
15776 | EOF | |
15777 | ||
15778 | echo "$ac_t""found" 1>&6 | |
15779 | ||
15780 | else | |
15781 | echo "configure: failed program was:" >&5 | |
15782 | cat conftest.$ac_ext >&5 | |
15783 | rm -rf conftest* | |
15784 | ||
15785 | cat >> confdefs.h <<\EOF | |
15786 | #define __WXMOTIF20__ 0 | |
15787 | EOF | |
15788 | ||
15789 | echo "$ac_t""not found" 1>&6 | |
15790 | ||
15791 | fi | |
15792 | rm -f conftest* | |
15793 | CFLAGS=$save_CFLAGS | |
15794 | ||
6a30f1c8 | 15795 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" |
69c44812 | 15796 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11" |
21d1c967 GD |
15797 | TOOLKIT=MOTIF |
15798 | GUIDIST=MOTIF_DIST | |
15799 | fi | |
15800 | ||
15801 | if test "$wxUSE_MAC" = 1; then | |
0c98a14e | 15802 | CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon" |
21d1c967 | 15803 | |
0c98a14e | 15804 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex" |
21d1c967 GD |
15805 | TOOLKIT=MAC |
15806 | GUIDIST=MACX_DIST | |
15807 | fi | |
15808 | ||
ac0c4cc3 DE |
15809 | if test "$wxUSE_COCOA" = 1; then |
15810 | TOOLKIT_VPATH="\${top_srcdir}/src/cocoa" | |
15811 | TOOLKIT=COCOA | |
15812 | GUIDIST=COCOA_DIST | |
15813 | fi | |
15814 | ||
21d1c967 GD |
15815 | if test "$wxUSE_PM" = 1; then |
15816 | TOOLKIT=PM | |
15817 | GUIDIST=GTK_DIST | |
2b5f62a0 | 15818 | echo "configure: warning: OS/2 PM requires old resource format, re-enabled" 1>&2 |
f657dbe7 MB |
15819 | wxUSE_PROLOGIO="yes" |
15820 | wxUSE_RESOURCES="yes" | |
2b5f62a0 | 15821 | echo "configure: warning: OS/2 threads are not yet supported... disabled" 1>&2 |
f657dbe7 | 15822 | wxUSE_THREADS="no" |
21d1c967 GD |
15823 | fi |
15824 | ||
15825 | if test "$TOOLKIT" = "PM" ; then | |
15826 | TOOLKIT_DIR="os2" | |
15827 | else | |
15828 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
15829 | fi | |
15830 | ||
15831 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
15832 | ||
15833 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
15834 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
15835 | ||
15836 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
15837 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
15838 | ||
15839 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
15840 | if test "$wxUSE_X11" = 1; then | |
15841 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
15842 | else | |
15843 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
15844 | fi | |
15845 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
15846 | WIDGET_SET=univ | |
15847 | else | |
15848 | ALL_OBJECTS="\$(GUIOBJS)" | |
15849 | ALL_SOURCES="\$(ALL_SOURCES)" | |
15850 | ALL_HEADERS="\$(ALL_HEADERS)" | |
15851 | fi | |
15852 | ||
15853 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
15854 | ||
15855 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then | |
15856 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
15857 | fi | |
15858 | ||
15859 | if test "$wxUSE_HTML" = "yes"; then | |
15860 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
15861 | fi | |
15862 | ||
15863 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
15864 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
15865 | fi | |
15866 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
15867 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
15868 | fi | |
15869 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
15870 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
15871 | fi | |
15872 | ||
15873 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
15874 | DISTDIR="wx\$(TOOLKIT)" | |
90dd450c | 15875 | else |
21d1c967 GD |
15876 | USE_GUI=0 |
15877 | ||
15878 | TOOLKIT_DIR="base" | |
15879 | ||
15880 | if test "$USE_WIN32" = 1 ; then | |
15881 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
15882 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
15883 | ||
15884 | TOOLKIT="MSW" | |
15885 | else | |
15886 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
15887 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
15888 | fi | |
15889 | ||
15890 | ALL_SOURCES="\$(ALL_SOURCES)" | |
15891 | ALL_HEADERS="\$(ALL_HEADERS)" | |
15892 | ||
15893 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
15894 | ||
15895 | GUIDIST="BASE_DIST" | |
15896 | DISTDIR="wxBase" | |
d836ee96 VZ |
15897 | fi |
15898 | ||
8284b0c5 | 15899 | |
21d1c967 GD |
15900 | if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then |
15901 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
6232543b | 15902 | fi |
21d1c967 GD |
15903 | |
15904 | if test "$wxUSE_REGEX" = "builtin" ; then | |
15905 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
1e487827 | 15906 | fi |
21d1c967 GD |
15907 | if test "$wxUSE_ZLIB" = "builtin" ; then |
15908 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
bd3277fe VZ |
15909 | fi |
15910 | ||
8284b0c5 | 15911 | |
21d1c967 | 15912 | if test "$wxUSE_OPENGL" = "yes"; then |
ac0c4cc3 | 15913 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then |
21d1c967 GD |
15914 | OPENGL_LIBS="-framework OpenGL -framework AGL" |
15915 | elif test "$wxUSE_MSW" = 1; then | |
15916 | OPENGL_LIBS="-lopengl32 -lglu32" | |
15917 | else | |
a0b9e27f MB |
15918 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` |
15919 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
ac0c4cc3 | 15920 | echo "configure:15921: checking for GL/gl.h" >&5 |
a0b9e27f MB |
15921 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15922 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15923 | else | |
15924 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 15925 | #line 15926 "configure" |
10f2d63a | 15926 | #include "confdefs.h" |
21d1c967 | 15927 | #include <GL/gl.h> |
a0b9e27f MB |
15928 | EOF |
15929 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ac0c4cc3 | 15930 | { (eval echo configure:15931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
15931 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15932 | if test -z "$ac_err"; then | |
15933 | rm -rf conftest* | |
15934 | eval "ac_cv_header_$ac_safe=yes" | |
15935 | else | |
15936 | echo "$ac_err" >&5 | |
15937 | echo "configure: failed program was:" >&5 | |
698dcdb6 | 15938 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
15939 | rm -rf conftest* |
15940 | eval "ac_cv_header_$ac_safe=no" | |
703e0a69 | 15941 | fi |
a0b9e27f | 15942 | rm -f conftest* |
698dcdb6 | 15943 | fi |
a0b9e27f MB |
15944 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15945 | echo "$ac_t""yes" 1>&6 | |
15946 | ||
15947 | echo $ac_n "checking for -lGL""... $ac_c" 1>&6 | |
ac0c4cc3 | 15948 | echo "configure:15949: checking for -lGL" >&5 |
a0b9e27f | 15949 | |
21d1c967 | 15950 | ac_find_libraries= |
2b5f62a0 | 15951 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
15952 | do |
15953 | for ac_extension in a so sl dylib; do | |
15954 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
15955 | ac_find_libraries=$ac_dir | |
15956 | break 2 | |
15957 | fi | |
15958 | done | |
15959 | done | |
15960 | ||
15961 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 15962 | |
21d1c967 GD |
15963 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
15964 | result=$? | |
15965 | if test $result = 0; then | |
15966 | ac_path_to_link="" | |
15967 | else | |
15968 | ac_path_to_link=" -L$ac_find_libraries" | |
15969 | fi | |
15970 | ||
15971 | if test "$ac_path_to_link" = " -L/usr/lib" ; then | |
15972 | LDFLAGS_GL="$LDFLAGS" | |
15973 | else | |
15974 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
15975 | fi | |
15976 | OPENGL_LIBS="-lGL -lGLU" | |
a0b9e27f | 15977 | echo "$ac_t""yes" 1>&6 |
21d1c967 | 15978 | else |
a0b9e27f MB |
15979 | echo "$ac_t""no" 1>&6 |
15980 | echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6 | |
ac0c4cc3 | 15981 | echo "configure:15982: checking for -lMesaGL" >&5 |
a0b9e27f | 15982 | |
21d1c967 | 15983 | ac_find_libraries= |
2b5f62a0 | 15984 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
15985 | do |
15986 | for ac_extension in a so sl dylib; do | |
15987 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
15988 | ac_find_libraries=$ac_dir | |
15989 | break 2 | |
15990 | fi | |
15991 | done | |
15992 | done | |
15993 | ||
15994 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 15995 | |
21d1c967 GD |
15996 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
15997 | result=$? | |
15998 | if test $result = 0; then | |
15999 | ac_path_to_link="" | |
16000 | else | |
16001 | ac_path_to_link=" -L$ac_find_libraries" | |
16002 | fi | |
16003 | ||
16004 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
16005 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
a0b9e27f | 16006 | echo "$ac_t""yes" 1>&6 |
21d1c967 | 16007 | else |
a0b9e27f | 16008 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
16009 | fi |
16010 | fi | |
a0b9e27f MB |
16011 | |
16012 | else | |
16013 | echo "$ac_t""no" 1>&6 | |
5c6fa7d2 | 16014 | fi |
52127426 | 16015 | |
8284b0c5 | 16016 | |
21d1c967 | 16017 | if test "x$OPENGL_LIBS" = "x"; then |
a0b9e27f | 16018 | { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; } |
21d1c967 GD |
16019 | fi |
16020 | fi | |
90dd450c | 16021 | |
21d1c967 | 16022 | if test "$wxUSE_OPENGL" = "yes"; then |
a0b9e27f | 16023 | cat >> confdefs.h <<\EOF |
21d1c967 | 16024 | #define wxUSE_OPENGL 1 |
a0b9e27f | 16025 | EOF |
21d1c967 | 16026 | |
a0b9e27f | 16027 | cat >> confdefs.h <<\EOF |
21d1c967 | 16028 | #define wxUSE_GLCANVAS 1 |
a0b9e27f | 16029 | EOF |
21d1c967 GD |
16030 | |
16031 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" | |
16032 | fi | |
10f2d63a | 16033 | fi |
21d1c967 GD |
16034 | |
16035 | if test -z "$TOOLKIT_VPATH" ; then | |
16036 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
10f2d63a | 16037 | fi |
21d1c967 GD |
16038 | |
16039 | if test -n "$TOOLKIT" ; then | |
16040 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
16041 | fi | |
16042 | ||
16043 | lib_unicode_suffix= | |
16044 | if test "$wxUSE_UNICODE" = "yes"; then | |
16045 | lib_unicode_suffix=u | |
90dd450c | 16046 | fi |
698dcdb6 | 16047 | |
21d1c967 GD |
16048 | lib_debug_suffix= |
16049 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
16050 | lib_debug_suffix=d | |
16051 | fi | |
698dcdb6 | 16052 | |
2b5f62a0 VZ |
16053 | WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
16054 | ||
16055 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" | |
16056 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
21d1c967 GD |
16057 | |
16058 | if test "$cross_compiling" = "yes"; then | |
16059 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
16060 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
16061 | fi | |
16062 | ||
16063 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
16064 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
2b5f62a0 | 16065 | WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}" |
21d1c967 GD |
16066 | |
16067 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
16068 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
16069 | ||
16070 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
16071 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
16072 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
16073 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
16074 | ||
16075 | case "${host}" in | |
16076 | *-*-cygwin* | *-*-mingw32* ) | |
16077 | ||
a0b9e27f MB |
16078 | |
16079 | ||
17234b26 | 16080 | if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then |
21d1c967 GD |
16081 | WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" |
16082 | WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
16083 | WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}" | |
16084 | WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
16085 | else | |
16086 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
16087 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
16088 | fi | |
16089 | ;; | |
16090 | ||
16091 | *-*-darwin* ) | |
0c98a14e | 16092 | |
05159a27 GD |
16093 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" |
16094 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" | |
16095 | ||
16096 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}" | |
16097 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
16098 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}" | |
16099 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
16100 | ||
21d1c967 | 16101 | if test "$wxUSE_MAC" = 1; then |
f346733b GD |
16102 | WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r" |
16103 | WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc" | |
21d1c967 GD |
16104 | fi |
16105 | ;; | |
16106 | esac | |
16107 | ||
16108 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
16109 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
16110 | ||
16111 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
16112 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" | |
16113 | ||
16114 | if test "$wxUSE_OPENGL" = "yes"; then | |
16115 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" | |
16116 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
16117 | fi | |
16118 | ||
8284b0c5 MB |
16119 | |
16120 | ||
21d1c967 GD |
16121 | if test "$wxUSE_SHARED" = "yes"; then |
16122 | case "${host}" in | |
16123 | *-pc-os2_emx | *-pc-os2-emx | \ | |
16124 | *-pc-msdosdjgpp ) | |
16125 | wxUSE_SHARED=no | |
a0b9e27f | 16126 | echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2 |
21d1c967 GD |
16127 | ;; |
16128 | esac | |
16129 | fi | |
16130 | ||
2b5f62a0 VZ |
16131 | if test "$wxUSE_SHARED" = "yes"; then |
16132 | ||
16133 | if test "$wxUSE_OPENGL" = "yes"; then | |
16134 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
16135 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}" | |
16136 | else | |
16137 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
16138 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}" | |
16139 | fi | |
16140 | ||
16141 | if test "$GCC" = "yes"; then | |
16142 | PIC_FLAG="-fPIC" | |
16143 | fi | |
16144 | ||
16145 | ||
16146 | ||
16147 | found_versioning=no | |
16148 | ||
b4eecb7e | 16149 | |
2b5f62a0 VZ |
16150 | if test $found_versioning = no ; then |
16151 | echo $ac_n "checking if the linker accepts --version-script""... $ac_c" 1>&6 | |
ac0c4cc3 | 16152 | echo "configure:16153: checking if the linker accepts --version-script" >&5 |
2b5f62a0 VZ |
16153 | if eval "test \"`echo '$''{'wx_cv_version_script'+set}'`\" = set"; then |
16154 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16155 | else | |
16156 | ||
16157 | echo "VER_1 { *; };" >conftest.sym | |
16158 | echo "int main() { return 0; }" >conftest.cpp | |
16159 | ||
16160 | if { ac_try=' | |
16161 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
ac0c4cc3 | 16162 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'; { (eval echo configure:16163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then |
2b5f62a0 VZ |
16163 | if test -s conftest.stderr ; then |
16164 | wx_cv_version_script=no | |
16165 | else | |
16166 | wx_cv_version_script=yes | |
16167 | fi | |
16168 | else | |
16169 | wx_cv_version_script=no | |
16170 | fi | |
16171 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp | |
16172 | ||
16173 | fi | |
16174 | ||
16175 | echo "$ac_t""$wx_cv_version_script" 1>&6 | |
16176 | if test $wx_cv_version_script = yes ; then | |
16177 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)/version-script" | |
16178 | fi | |
16179 | fi | |
21d1c967 | 16180 | |
21d1c967 GD |
16181 | |
16182 | SHARED_LD="${CXX} -shared -o" | |
16183 | ||
16184 | case "${host}" in | |
16185 | *-hp-hpux* ) | |
ad2622f1 | 16186 | if test "$GCC" = "yes"; then |
85d5e282 | 16187 | SHARED_LD="${CXX} -shared ${PIC_FLAG} -o" |
21d1c967 GD |
16188 | else |
16189 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
16190 | ||
16191 | SHARED_LD="${CXX} -b -o" | |
16192 | PIC_FLAG="+Z" | |
16193 | fi | |
16194 | ||
16195 | if test "$wxUSE_OPENGL" = "yes"; then | |
16196 | WX_ALL_INSTALLED="preinstall_gl" | |
16197 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
16198 | else | |
16199 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
16200 | fi | |
16201 | ;; | |
16202 | ||
16203 | *-*-linux* ) | |
16204 | if test "$GCC" != "yes"; then | |
a0b9e27f | 16205 | echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6 |
ac0c4cc3 | 16206 | echo "configure:16207: checking for Intel compiler" >&5 |
a0b9e27f MB |
16207 | if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then |
16208 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16209 | else | |
16210 | ||
16211 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 16212 | #line 16213 "configure" |
698dcdb6 | 16213 | #include "confdefs.h" |
90dd450c | 16214 | |
a0b9e27f | 16215 | int main() { |
90dd450c | 16216 | |
21d1c967 GD |
16217 | #ifndef __INTEL_COMPILER |
16218 | #error Not icc | |
16219 | #endif | |
a0b9e27f MB |
16220 | |
16221 | ; return 0; } | |
16222 | EOF | |
ac0c4cc3 | 16223 | if { (eval echo configure:16224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 16224 | rm -rf conftest* |
21d1c967 | 16225 | wx_cv_prog_icc=yes |
6232543b | 16226 | else |
a0b9e27f MB |
16227 | echo "configure: failed program was:" >&5 |
16228 | cat conftest.$ac_ext >&5 | |
16229 | rm -rf conftest* | |
16230 | wx_cv_prog_icc=no | |
16231 | ||
5c6fa7d2 | 16232 | fi |
a0b9e27f MB |
16233 | rm -f conftest* |
16234 | ||
247f5006 | 16235 | fi |
a0b9e27f MB |
16236 | |
16237 | echo "$ac_t""$wx_cv_prog_icc" 1>&6 | |
21d1c967 GD |
16238 | if test "$wx_cv_prog_icc" = "yes"; then |
16239 | PIC_FLAG="-KPIC" | |
16240 | fi | |
16241 | fi | |
16242 | ||
16243 | if test "$wxUSE_SONAME" = "yes" ; then | |
16244 | SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}" | |
16245 | SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" | |
16246 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" | |
16247 | fi | |
16248 | ;; | |
16249 | ||
16250 | *-*-solaris2* ) | |
16251 | if test "$GCC" = yes ; then | |
16252 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
16253 | else | |
16254 | SHARED_LD="${CXX} -G -o" | |
16255 | PIC_FLAG="-KPIC" | |
16256 | SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}" | |
16257 | SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}" | |
16258 | fi | |
16259 | ;; | |
16260 | ||
16261 | *-*-darwin* ) | |
b2fee376 GD |
16262 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL" |
16263 | CFLAGS="$CFLAGS -fno-common" | |
16264 | CXXFLAGS="$CXXFLAGS -fno-common" | |
21d1c967 GD |
16265 | SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o" |
16266 | PIC_FLAG="-dynamic -fPIC" | |
f346733b | 16267 | SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1}" |
05159a27 | 16268 | SONAME_FLAGS_GL="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1_GL}" |
21d1c967 GD |
16269 | ;; |
16270 | ||
16271 | *-*-aix* ) | |
2b5f62a0 VZ |
16272 | if test "$GCC" != "yes"; then |
16273 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
321d2b14 | 16274 | set dummy makeC++SharedLib; ac_word=$2 |
a0b9e27f | 16275 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
ac0c4cc3 | 16276 | echo "configure:16277: checking for $ac_word" >&5 |
a0b9e27f MB |
16277 | if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then |
16278 | echo $ac_n "(cached) $ac_c" 1>&6 | |
321d2b14 VZ |
16279 | else |
16280 | if test -n "$AIX_CXX_LD"; then | |
16281 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
16282 | else | |
a0b9e27f MB |
16283 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
16284 | ac_dummy="$PATH" | |
16285 | for ac_dir in $ac_dummy; do | |
16286 | test -z "$ac_dir" && ac_dir=. | |
16287 | if test -f $ac_dir/$ac_word; then | |
16288 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
16289 | break | |
16290 | fi | |
16291 | done | |
16292 | IFS="$ac_save_ifs" | |
321d2b14 VZ |
16293 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" |
16294 | fi | |
16295 | fi | |
a0b9e27f | 16296 | AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD" |
321d2b14 | 16297 | if test -n "$AIX_CXX_LD"; then |
a0b9e27f | 16298 | echo "$ac_t""$AIX_CXX_LD" 1>&6 |
321d2b14 | 16299 | else |
a0b9e27f | 16300 | echo "$ac_t""no" 1>&6 |
321d2b14 VZ |
16301 | fi |
16302 | ||
8284b0c5 | 16303 | |
2b5f62a0 VZ |
16304 | SHARED_LD="$(AIX_CXX_LD) -p 0 -o" |
16305 | fi | |
21d1c967 GD |
16306 | ;; |
16307 | ||
16308 | *-*-cygwin* | *-*-mingw32* ) | |
21d1c967 GD |
16309 | WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a" |
16310 | ||
16311 | SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o" | |
16312 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
16313 | ||
16314 | PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1" | |
16315 | ||
f657dbe7 MB |
16316 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" |
16317 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
16318 | ||
16319 | if test "$wxUSE_OPENGL" = "yes"; then | |
16320 | LIBS="${LIBS} ${OPENGL_LIBS}" | |
21d1c967 GD |
16321 | fi |
16322 | ;; | |
16323 | ||
16324 | *-*-beos* ) | |
16325 | SHARED_LD="${LD} -shared -o" | |
16326 | ;; | |
16327 | ||
2b5f62a0 VZ |
16328 | *-*-irix* ) |
16329 | if test "$GCC" != "yes"; then | |
16330 | PIC_FLAG="-KPIC" | |
16331 | fi | |
16332 | ;; | |
16333 | ||
21d1c967 GD |
16334 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ |
16335 | *-*-sunos4* | \ | |
21d1c967 GD |
16336 | *-*-osf* | \ |
16337 | *-*-dgux5* | \ | |
16338 | *-*-sysv5* ) | |
16339 | ;; | |
16340 | ||
16341 | *) | |
a0b9e27f | 16342 | { echo "configure: error: unknown system type $host." 1>&2; exit 1; } |
21d1c967 GD |
16343 | esac |
16344 | ||
16345 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
16346 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
16347 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
16348 | fi | |
16349 | ||
16350 | WX_TARGET_LIBRARY_TYPE="so" | |
16351 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' | |
90dd450c | 16352 | fi |
10f2d63a | 16353 | |
21d1c967 GD |
16354 | if test "$wxUSE_SHARED" = "no"; then |
16355 | ||
16356 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then | |
16357 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
16358 | fi | |
16359 | ||
ac0c4cc3 | 16360 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
21d1c967 GD |
16361 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" |
16362 | fi | |
16363 | ||
16364 | if test "$wxUSE_OPENGL" = "yes"; then | |
16365 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
16366 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
16367 | else | |
16368 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
16369 | fi | |
16370 | ||
16371 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
16372 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
16373 | ||
16374 | WX_TARGET_LIBRARY_TYPE="a" | |
16375 | INSTALL_LIBRARY='$(INSTALL_DATA)' | |
2bffed64 VZ |
16376 | |
16377 | STATIC_FLAG="yes" | |
16378 | else | |
16379 | STATIC_FLAG="no" | |
90dd450c | 16380 | fi |
1e487827 | 16381 | |
93fac604 VZ |
16382 | MACRESCOMP="@#" |
16383 | MACSETFILE="@#" | |
36825681 | 16384 | MACRESWXCONFIG="#" |
21d1c967 GD |
16385 | if test "$wxUSE_MAC" = 1; then |
16386 | LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}" | |
16387 | WX_ALL="${WX_ALL} ${LIBWXMACRES}" | |
16388 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
16389 | # Extract the first word of "Rez", so it can be a program name with args. | |
16390 | set dummy Rez; ac_word=$2 | |
a0b9e27f | 16391 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
ac0c4cc3 | 16392 | echo "configure:16393: checking for $ac_word" >&5 |
a0b9e27f MB |
16393 | if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then |
16394 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b93d0d08 | 16395 | else |
21d1c967 GD |
16396 | if test -n "$RESCOMP"; then |
16397 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
b93d0d08 | 16398 | else |
a0b9e27f MB |
16399 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
16400 | ac_dummy="$PATH" | |
16401 | for ac_dir in $ac_dummy; do | |
16402 | test -z "$ac_dir" && ac_dir=. | |
16403 | if test -f $ac_dir/$ac_word; then | |
16404 | ac_cv_prog_RESCOMP="Rez" | |
16405 | break | |
16406 | fi | |
16407 | done | |
16408 | IFS="$ac_save_ifs" | |
21d1c967 | 16409 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
b93d0d08 | 16410 | fi |
b93d0d08 | 16411 | fi |
a0b9e27f | 16412 | RESCOMP="$ac_cv_prog_RESCOMP" |
21d1c967 | 16413 | if test -n "$RESCOMP"; then |
a0b9e27f | 16414 | echo "$ac_t""$RESCOMP" 1>&6 |
90dd450c | 16415 | else |
a0b9e27f | 16416 | echo "$ac_t""no" 1>&6 |
90dd450c | 16417 | fi |
b93d0d08 | 16418 | |
21d1c967 GD |
16419 | # Extract the first word of "DeRez", so it can be a program name with args. |
16420 | set dummy DeRez; ac_word=$2 | |
a0b9e27f | 16421 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
ac0c4cc3 | 16422 | echo "configure:16423: checking for $ac_word" >&5 |
a0b9e27f MB |
16423 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
16424 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3a922bb4 | 16425 | else |
21d1c967 GD |
16426 | if test -n "$DEREZ"; then |
16427 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
4f14bcd8 | 16428 | else |
a0b9e27f MB |
16429 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
16430 | ac_dummy="$PATH" | |
16431 | for ac_dir in $ac_dummy; do | |
16432 | test -z "$ac_dir" && ac_dir=. | |
16433 | if test -f $ac_dir/$ac_word; then | |
16434 | ac_cv_prog_DEREZ="DeRez" | |
16435 | break | |
16436 | fi | |
16437 | done | |
16438 | IFS="$ac_save_ifs" | |
21d1c967 | 16439 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
3a922bb4 | 16440 | fi |
90dd450c | 16441 | fi |
a0b9e27f | 16442 | DEREZ="$ac_cv_prog_DEREZ" |
21d1c967 | 16443 | if test -n "$DEREZ"; then |
a0b9e27f | 16444 | echo "$ac_t""$DEREZ" 1>&6 |
90dd450c | 16445 | else |
a0b9e27f | 16446 | echo "$ac_t""no" 1>&6 |
3a922bb4 | 16447 | fi |
698dcdb6 | 16448 | |
36825681 GD |
16449 | # Extract the first word of "SetFile", so it can be a program name with args. |
16450 | set dummy SetFile; ac_word=$2 | |
16451 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
ac0c4cc3 | 16452 | echo "configure:16453: checking for $ac_word" >&5 |
36825681 GD |
16453 | if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then |
16454 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16455 | else | |
16456 | if test -n "$SETFILE"; then | |
16457 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
16458 | else | |
16459 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
16460 | ac_dummy="$PATH" | |
16461 | for ac_dir in $ac_dummy; do | |
16462 | test -z "$ac_dir" && ac_dir=. | |
16463 | if test -f $ac_dir/$ac_word; then | |
16464 | ac_cv_prog_SETFILE="SetFile" | |
16465 | break | |
16466 | fi | |
16467 | done | |
16468 | IFS="$ac_save_ifs" | |
16469 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
16470 | fi | |
16471 | fi | |
16472 | SETFILE="$ac_cv_prog_SETFILE" | |
16473 | if test -n "$SETFILE"; then | |
16474 | echo "$ac_t""$SETFILE" 1>&6 | |
16475 | else | |
16476 | echo "$ac_t""no" 1>&6 | |
16477 | fi | |
16478 | ||
21d1c967 | 16479 | MACOSX_BUNDLE="bundle" |
36825681 GD |
16480 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o" |
16481 | MACSETFILE="\$(SETFILE)" | |
16482 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}} -o" | |
21d1c967 GD |
16483 | else |
16484 | if test "$wxUSE_PM" = 1; then | |
36825681 | 16485 | MACRESCOMP="emxbind -ep" |
90dd450c | 16486 | fi |
4f14bcd8 | 16487 | fi |
10f2d63a | 16488 | |
8284b0c5 | 16489 | |
a0b9e27f | 16490 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
ac0c4cc3 | 16491 | echo "configure:16492: checking for ANSI C header files" >&5 |
a0b9e27f MB |
16492 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
16493 | echo $ac_n "(cached) $ac_c" 1>&6 | |
52127426 | 16494 | else |
a0b9e27f | 16495 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 16496 | #line 16497 "configure" |
52127426 | 16497 | #include "confdefs.h" |
a0b9e27f MB |
16498 | #include <stdlib.h> |
16499 | #include <stdarg.h> | |
16500 | #include <string.h> | |
16501 | #include <float.h> | |
16502 | EOF | |
16503 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ac0c4cc3 | 16504 | { (eval echo configure:16505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
16505 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
16506 | if test -z "$ac_err"; then | |
16507 | rm -rf conftest* | |
16508 | ac_cv_header_stdc=yes | |
16509 | else | |
16510 | echo "$ac_err" >&5 | |
16511 | echo "configure: failed program was:" >&5 | |
16512 | cat conftest.$ac_ext >&5 | |
16513 | rm -rf conftest* | |
16514 | ac_cv_header_stdc=no | |
16515 | fi | |
16516 | rm -f conftest* | |
16517 | ||
16518 | if test $ac_cv_header_stdc = yes; then | |
16519 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
16520 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 16521 | #line 16522 "configure" |
a0b9e27f MB |
16522 | #include "confdefs.h" |
16523 | #include <string.h> | |
16524 | EOF | |
16525 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16526 | egrep "memchr" >/dev/null 2>&1; then | |
16527 | : | |
16528 | else | |
16529 | rm -rf conftest* | |
16530 | ac_cv_header_stdc=no | |
16531 | fi | |
16532 | rm -f conftest* | |
16533 | ||
16534 | fi | |
16535 | ||
16536 | if test $ac_cv_header_stdc = yes; then | |
16537 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
16538 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 16539 | #line 16540 "configure" |
a0b9e27f MB |
16540 | #include "confdefs.h" |
16541 | #include <stdlib.h> | |
16542 | EOF | |
16543 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16544 | egrep "free" >/dev/null 2>&1; then | |
16545 | : | |
7b4a847f | 16546 | else |
a0b9e27f MB |
16547 | rm -rf conftest* |
16548 | ac_cv_header_stdc=no | |
52127426 | 16549 | fi |
a0b9e27f MB |
16550 | rm -f conftest* |
16551 | ||
52127426 | 16552 | fi |
a0b9e27f MB |
16553 | |
16554 | if test $ac_cv_header_stdc = yes; then | |
16555 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
16556 | if test "$cross_compiling" = yes; then | |
247f5006 VZ |
16557 | : |
16558 | else | |
a0b9e27f | 16559 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 16560 | #line 16561 "configure" |
a0b9e27f MB |
16561 | #include "confdefs.h" |
16562 | #include <ctype.h> | |
16563 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
16564 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
16565 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
16566 | int main () { int i; for (i = 0; i < 256; i++) | |
16567 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
16568 | exit (0); } | |
247f5006 | 16569 | |
a0b9e27f | 16570 | EOF |
ac0c4cc3 | 16571 | if { (eval echo configure:16572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
16572 | then |
16573 | : | |
16574 | else | |
16575 | echo "configure: failed program was:" >&5 | |
16576 | cat conftest.$ac_ext >&5 | |
16577 | rm -fr conftest* | |
16578 | ac_cv_header_stdc=no | |
16579 | fi | |
16580 | rm -fr conftest* | |
16581 | fi | |
16582 | ||
16583 | fi | |
16584 | fi | |
16585 | ||
16586 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
16587 | if test $ac_cv_header_stdc = yes; then | |
16588 | cat >> confdefs.h <<\EOF | |
16589 | #define STDC_HEADERS 1 | |
16590 | EOF | |
8284b0c5 MB |
16591 | |
16592 | fi | |
16593 | ||
a0b9e27f | 16594 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
ac0c4cc3 | 16595 | echo "configure:16596: checking for mode_t" >&5 |
a0b9e27f MB |
16596 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
16597 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 16598 | else |
a0b9e27f | 16599 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 16600 | #line 16601 "configure" |
8284b0c5 | 16601 | #include "confdefs.h" |
a0b9e27f MB |
16602 | #include <sys/types.h> |
16603 | #if STDC_HEADERS | |
16604 | #include <stdlib.h> | |
16605 | #include <stddef.h> | |
8284b0c5 | 16606 | #endif |
a0b9e27f MB |
16607 | EOF |
16608 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16609 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
16610 | rm -rf conftest* | |
16611 | ac_cv_type_mode_t=yes | |
5c6fa7d2 | 16612 | else |
a0b9e27f MB |
16613 | rm -rf conftest* |
16614 | ac_cv_type_mode_t=no | |
16615 | fi | |
16616 | rm -f conftest* | |
16617 | ||
8284b0c5 | 16618 | fi |
a0b9e27f MB |
16619 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 |
16620 | if test $ac_cv_type_mode_t = no; then | |
16621 | cat >> confdefs.h <<\EOF | |
16622 | #define mode_t int | |
16623 | EOF | |
16624 | ||
8284b0c5 | 16625 | fi |
a0b9e27f MB |
16626 | |
16627 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
ac0c4cc3 | 16628 | echo "configure:16629: checking for off_t" >&5 |
a0b9e27f MB |
16629 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
16630 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16631 | else | |
16632 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 16633 | #line 16634 "configure" |
a0b9e27f MB |
16634 | #include "confdefs.h" |
16635 | #include <sys/types.h> | |
16636 | #if STDC_HEADERS | |
16637 | #include <stdlib.h> | |
16638 | #include <stddef.h> | |
16639 | #endif | |
16640 | EOF | |
16641 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16642 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
16643 | rm -rf conftest* | |
16644 | ac_cv_type_off_t=yes | |
247f5006 | 16645 | else |
a0b9e27f MB |
16646 | rm -rf conftest* |
16647 | ac_cv_type_off_t=no | |
16648 | fi | |
16649 | rm -f conftest* | |
247f5006 | 16650 | |
a0b9e27f MB |
16651 | fi |
16652 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
16653 | if test $ac_cv_type_off_t = no; then | |
16654 | cat >> confdefs.h <<\EOF | |
90dd450c | 16655 | #define off_t long |
a0b9e27f | 16656 | EOF |
10f2d63a | 16657 | |
90dd450c | 16658 | fi |
10f2d63a | 16659 | |
a0b9e27f | 16660 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
ac0c4cc3 | 16661 | echo "configure:16662: checking for pid_t" >&5 |
a0b9e27f MB |
16662 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
16663 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 16664 | else |
a0b9e27f | 16665 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 16666 | #line 16667 "configure" |
10f2d63a | 16667 | #include "confdefs.h" |
a0b9e27f MB |
16668 | #include <sys/types.h> |
16669 | #if STDC_HEADERS | |
16670 | #include <stdlib.h> | |
16671 | #include <stddef.h> | |
8284b0c5 | 16672 | #endif |
a0b9e27f MB |
16673 | EOF |
16674 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16675 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
16676 | rm -rf conftest* | |
90dd450c | 16677 | ac_cv_type_pid_t=yes |
698dcdb6 | 16678 | else |
a0b9e27f MB |
16679 | rm -rf conftest* |
16680 | ac_cv_type_pid_t=no | |
8284b0c5 | 16681 | fi |
a0b9e27f | 16682 | rm -f conftest* |
247f5006 | 16683 | |
a0b9e27f MB |
16684 | fi |
16685 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
16686 | if test $ac_cv_type_pid_t = no; then | |
16687 | cat >> confdefs.h <<\EOF | |
90dd450c | 16688 | #define pid_t int |
a0b9e27f | 16689 | EOF |
10f2d63a | 16690 | |
7b4a847f RR |
16691 | fi |
16692 | ||
a0b9e27f | 16693 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
ac0c4cc3 | 16694 | echo "configure:16695: checking for size_t" >&5 |
a0b9e27f MB |
16695 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
16696 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7b4a847f | 16697 | else |
a0b9e27f | 16698 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 16699 | #line 16700 "configure" |
7b4a847f | 16700 | #include "confdefs.h" |
a0b9e27f MB |
16701 | #include <sys/types.h> |
16702 | #if STDC_HEADERS | |
16703 | #include <stdlib.h> | |
16704 | #include <stddef.h> | |
8284b0c5 | 16705 | #endif |
a0b9e27f MB |
16706 | EOF |
16707 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16708 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
16709 | rm -rf conftest* | |
90dd450c | 16710 | ac_cv_type_size_t=yes |
18dbb1f6 | 16711 | else |
a0b9e27f MB |
16712 | rm -rf conftest* |
16713 | ac_cv_type_size_t=no | |
52127426 | 16714 | fi |
a0b9e27f | 16715 | rm -f conftest* |
247f5006 | 16716 | |
a0b9e27f MB |
16717 | fi |
16718 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
16719 | if test $ac_cv_type_size_t = no; then | |
16720 | cat >> confdefs.h <<\EOF | |
90dd450c | 16721 | #define size_t unsigned |
a0b9e27f | 16722 | EOF |
90dd450c VZ |
16723 | |
16724 | fi | |
16725 | ||
a0b9e27f | 16726 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
ac0c4cc3 | 16727 | echo "configure:16728: checking for uid_t in sys/types.h" >&5 |
a0b9e27f MB |
16728 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
16729 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b3e8d00a | 16730 | else |
a0b9e27f | 16731 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 16732 | #line 16733 "configure" |
b3e8d00a | 16733 | #include "confdefs.h" |
90dd450c | 16734 | #include <sys/types.h> |
a0b9e27f | 16735 | EOF |
90dd450c VZ |
16736 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
16737 | egrep "uid_t" >/dev/null 2>&1; then | |
a0b9e27f | 16738 | rm -rf conftest* |
90dd450c | 16739 | ac_cv_type_uid_t=yes |
b3e8d00a | 16740 | else |
a0b9e27f | 16741 | rm -rf conftest* |
90dd450c | 16742 | ac_cv_type_uid_t=no |
b3e8d00a | 16743 | fi |
90dd450c | 16744 | rm -f conftest* |
b3e8d00a | 16745 | |
4f14bcd8 | 16746 | fi |
247f5006 | 16747 | |
a0b9e27f MB |
16748 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
16749 | if test $ac_cv_type_uid_t = no; then | |
16750 | cat >> confdefs.h <<\EOF | |
90dd450c | 16751 | #define uid_t int |
a0b9e27f | 16752 | EOF |
247f5006 | 16753 | |
a0b9e27f | 16754 | cat >> confdefs.h <<\EOF |
90dd450c | 16755 | #define gid_t int |
a0b9e27f | 16756 | EOF |
4f14bcd8 | 16757 | |
b3e8d00a | 16758 | fi |
b3e8d00a | 16759 | |
8284b0c5 MB |
16760 | |
16761 | ||
a0b9e27f MB |
16762 | ac_ext=C |
16763 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 16764 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
16765 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16766 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16767 | cross_compiling=$ac_cv_prog_cxx_cross | |
90dd450c | 16768 | |
a0b9e27f | 16769 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 |
ac0c4cc3 | 16770 | echo "configure:16771: checking if size_t is unsigned int" >&5 |
a0b9e27f MB |
16771 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
16772 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 16773 | else |
a0b9e27f | 16774 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 16775 | #line 16776 "configure" |
10f2d63a | 16776 | #include "confdefs.h" |
90dd450c | 16777 | #include <stddef.h> |
a0b9e27f | 16778 | int main() { |
90dd450c VZ |
16779 | |
16780 | return 0; } | |
16781 | ||
16782 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
16783 | ||
16784 | int bar() { | |
a0b9e27f MB |
16785 | |
16786 | ; return 0; } | |
16787 | EOF | |
ac0c4cc3 | 16788 | if { (eval echo configure:16789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 16789 | rm -rf conftest* |
90dd450c | 16790 | wx_cv_size_t_is_uint=no |
698dcdb6 | 16791 | else |
a0b9e27f MB |
16792 | echo "configure: failed program was:" >&5 |
16793 | cat conftest.$ac_ext >&5 | |
16794 | rm -rf conftest* | |
16795 | wx_cv_size_t_is_uint=yes | |
16796 | ||
5c6fa7d2 | 16797 | fi |
a0b9e27f | 16798 | rm -f conftest* |
8284b0c5 | 16799 | |
247f5006 | 16800 | fi |
a0b9e27f MB |
16801 | |
16802 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
4f14bcd8 | 16803 | |
90dd450c | 16804 | if test "$wx_cv_size_t_is_uint" = "yes"; then |
a0b9e27f | 16805 | cat >> confdefs.h <<\EOF |
90dd450c | 16806 | #define wxSIZE_T_IS_UINT 1 |
a0b9e27f | 16807 | EOF |
698dcdb6 | 16808 | |
90dd450c | 16809 | else |
a0b9e27f | 16810 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 |
ac0c4cc3 | 16811 | echo "configure:16812: checking if size_t is unsigned long" >&5 |
a0b9e27f MB |
16812 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
16813 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 16814 | else |
a0b9e27f | 16815 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 16816 | #line 16817 "configure" |
10f2d63a | 16817 | #include "confdefs.h" |
90dd450c | 16818 | #include <stddef.h> |
a0b9e27f | 16819 | int main() { |
90dd450c VZ |
16820 | |
16821 | return 0; } | |
16822 | ||
16823 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
16824 | ||
16825 | int bar() { | |
a0b9e27f MB |
16826 | |
16827 | ; return 0; } | |
16828 | EOF | |
ac0c4cc3 | 16829 | if { (eval echo configure:16830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 16830 | rm -rf conftest* |
90dd450c | 16831 | wx_cv_size_t_is_ulong=no |
698dcdb6 | 16832 | else |
a0b9e27f MB |
16833 | echo "configure: failed program was:" >&5 |
16834 | cat conftest.$ac_ext >&5 | |
16835 | rm -rf conftest* | |
16836 | wx_cv_size_t_is_ulong=yes | |
16837 | ||
5c6fa7d2 | 16838 | fi |
a0b9e27f MB |
16839 | rm -f conftest* |
16840 | ||
247f5006 | 16841 | fi |
a0b9e27f MB |
16842 | |
16843 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
10f2d63a | 16844 | |
90dd450c | 16845 | if test "$wx_cv_size_t_is_ulong" = "yes"; then |
a0b9e27f | 16846 | cat >> confdefs.h <<\EOF |
90dd450c | 16847 | #define wxSIZE_T_IS_ULONG 1 |
a0b9e27f | 16848 | EOF |
4f14bcd8 GD |
16849 | |
16850 | fi | |
90dd450c | 16851 | fi |
1e487827 | 16852 | |
90dd450c | 16853 | ac_ext=c |
a0b9e27f | 16854 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 16855 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
16856 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16857 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16858 | cross_compiling=$ac_cv_prog_cc_cross | |
698dcdb6 | 16859 | |
5c6fa7d2 | 16860 | |
8284b0c5 | 16861 | |
a0b9e27f | 16862 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
ac0c4cc3 | 16863 | echo "configure:16864: checking for pw_gecos in struct passwd" >&5 |
a0b9e27f MB |
16864 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
16865 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 16866 | else |
a0b9e27f MB |
16867 | |
16868 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 16869 | #line 16870 "configure" |
4f14bcd8 | 16870 | #include "confdefs.h" |
90dd450c | 16871 | #include <pwd.h> |
a0b9e27f | 16872 | int main() { |
f6bcfd97 | 16873 | |
90dd450c VZ |
16874 | char *p; |
16875 | struct passwd *pw; | |
16876 | p = pw->pw_gecos; | |
a0b9e27f MB |
16877 | |
16878 | ; return 0; } | |
16879 | EOF | |
ac0c4cc3 | 16880 | if { (eval echo configure:16881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
16881 | rm -rf conftest* |
16882 | ||
90dd450c | 16883 | wx_cv_struct_pw_gecos=yes |
a0b9e27f | 16884 | |
10f2d63a | 16885 | else |
a0b9e27f MB |
16886 | echo "configure: failed program was:" >&5 |
16887 | cat conftest.$ac_ext >&5 | |
16888 | rm -rf conftest* | |
16889 | ||
90dd450c | 16890 | wx_cv_struct_pw_gecos=no |
a0b9e27f MB |
16891 | |
16892 | ||
5c6fa7d2 | 16893 | fi |
a0b9e27f MB |
16894 | rm -f conftest* |
16895 | ||
247f5006 VZ |
16896 | |
16897 | fi | |
a0b9e27f MB |
16898 | |
16899 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
c521c494 | 16900 | |
90dd450c | 16901 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
a0b9e27f | 16902 | cat >> confdefs.h <<\EOF |
90dd450c | 16903 | #define HAVE_PW_GECOS 1 |
a0b9e27f | 16904 | EOF |
c521c494 | 16905 | |
90dd450c | 16906 | fi |
4f14bcd8 | 16907 | |
8284b0c5 | 16908 | |
d29b553b | 16909 | if test "$wx_cv_sizeof_wchar_t" != "0"; then |
a0b9e27f | 16910 | cat >> confdefs.h <<\EOF |
d74f4b5a | 16911 | #define wxUSE_WCHAR_T 1 |
a0b9e27f | 16912 | EOF |
d74f4b5a | 16913 | |
8284b0c5 | 16914 | |
d74f4b5a VZ |
16915 | WCSLEN_FOUND=0 |
16916 | WCHAR_LINK= | |
a0b9e27f | 16917 | for ac_func in wcslen |
7a30264c | 16918 | do |
a0b9e27f | 16919 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
ac0c4cc3 | 16920 | echo "configure:16921: checking for $ac_func" >&5 |
a0b9e27f MB |
16921 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16922 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16923 | else | |
16924 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 16925 | #line 16926 "configure" |
4f14bcd8 | 16926 | #include "confdefs.h" |
7a30264c | 16927 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 16928 | which can conflict with char $ac_func(); below. */ |
7a30264c | 16929 | #include <assert.h> |
4f14bcd8 GD |
16930 | /* Override any gcc2 internal prototype to avoid an error. */ |
16931 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16932 | builtin and then its argument prototype would still apply. */ |
16933 | char $ac_func(); | |
16934 | ||
16935 | int main() { | |
16936 | ||
7a30264c VZ |
16937 | /* The GNU C library defines this for functions which it implements |
16938 | to always fail with ENOSYS. Some functions are actually named | |
16939 | something starting with __ and the normal name is an alias. */ | |
16940 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16941 | choke me | |
16942 | #else | |
a0b9e27f | 16943 | $ac_func(); |
7a30264c VZ |
16944 | #endif |
16945 | ||
a0b9e27f MB |
16946 | ; return 0; } |
16947 | EOF | |
ac0c4cc3 | 16948 | if { (eval echo configure:16949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16949 | rm -rf conftest* |
16950 | eval "ac_cv_func_$ac_func=yes" | |
16951 | else | |
16952 | echo "configure: failed program was:" >&5 | |
16953 | cat conftest.$ac_ext >&5 | |
16954 | rm -rf conftest* | |
16955 | eval "ac_cv_func_$ac_func=no" | |
16956 | fi | |
16957 | rm -f conftest* | |
16958 | fi | |
16959 | ||
16960 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16961 | echo "$ac_t""yes" 1>&6 | |
16962 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16963 | cat >> confdefs.h <<EOF | |
16964 | #define $ac_tr_func 1 | |
16965 | EOF | |
d74f4b5a | 16966 | WCSLEN_FOUND=1 |
a0b9e27f MB |
16967 | else |
16968 | echo "$ac_t""no" 1>&6 | |
7a30264c VZ |
16969 | fi |
16970 | done | |
9d8deca0 | 16971 | |
8284b0c5 | 16972 | |
d74f4b5a | 16973 | if test "$WCSLEN_FOUND" = 0; then |
7a30264c | 16974 | if test "$TOOLKIT" = "MSW"; then |
a0b9e27f | 16975 | echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6 |
ac0c4cc3 | 16976 | echo "configure:16977: checking for wcslen in -lmsvcrt" >&5 |
a0b9e27f MB |
16977 | ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'` |
16978 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16979 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16980 | else |
a0b9e27f | 16981 | ac_save_LIBS="$LIBS" |
7a30264c | 16982 | LIBS="-lmsvcrt $LIBS" |
a0b9e27f | 16983 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 16984 | #line 16985 "configure" |
10f2d63a | 16985 | #include "confdefs.h" |
4f14bcd8 GD |
16986 | /* Override any gcc2 internal prototype to avoid an error. */ |
16987 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16988 | builtin and then its argument prototype would still apply. */ |
16989 | char wcslen(); | |
16990 | ||
16991 | int main() { | |
16992 | wcslen() | |
16993 | ; return 0; } | |
16994 | EOF | |
ac0c4cc3 | 16995 | if { (eval echo configure:16996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16996 | rm -rf conftest* |
16997 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16998 | else | |
16999 | echo "configure: failed program was:" >&5 | |
17000 | cat conftest.$ac_ext >&5 | |
17001 | rm -rf conftest* | |
17002 | eval "ac_cv_lib_$ac_lib_var=no" | |
17003 | fi | |
17004 | rm -f conftest* | |
17005 | LIBS="$ac_save_LIBS" | |
17006 | ||
17007 | fi | |
17008 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17009 | echo "$ac_t""yes" 1>&6 | |
d74f4b5a | 17010 | WCHAR_OK=1 |
a0b9e27f MB |
17011 | else |
17012 | echo "$ac_t""no" 1>&6 | |
d29b553b | 17013 | fi |
698dcdb6 | 17014 | |
7a30264c | 17015 | else |
a0b9e27f | 17016 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 |
ac0c4cc3 | 17017 | echo "configure:17018: checking for wcslen in -lw" >&5 |
a0b9e27f MB |
17018 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
17019 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17020 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 17021 | else |
a0b9e27f | 17022 | ac_save_LIBS="$LIBS" |
7a30264c | 17023 | LIBS="-lw $LIBS" |
a0b9e27f | 17024 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 17025 | #line 17026 "configure" |
95c8801c | 17026 | #include "confdefs.h" |
4f14bcd8 GD |
17027 | /* Override any gcc2 internal prototype to avoid an error. */ |
17028 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17029 | builtin and then its argument prototype would still apply. */ |
17030 | char wcslen(); | |
52127426 | 17031 | |
a0b9e27f MB |
17032 | int main() { |
17033 | wcslen() | |
17034 | ; return 0; } | |
17035 | EOF | |
ac0c4cc3 | 17036 | if { (eval echo configure:17037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17037 | rm -rf conftest* |
17038 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17039 | else | |
17040 | echo "configure: failed program was:" >&5 | |
17041 | cat conftest.$ac_ext >&5 | |
17042 | rm -rf conftest* | |
17043 | eval "ac_cv_lib_$ac_lib_var=no" | |
17044 | fi | |
17045 | rm -f conftest* | |
17046 | LIBS="$ac_save_LIBS" | |
17047 | ||
17048 | fi | |
17049 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17050 | echo "$ac_t""yes" 1>&6 | |
17051 | ||
7a30264c | 17052 | WCHAR_LINK=" -lw" |
d74f4b5a | 17053 | WCSLEN_FOUND=1 |
a0b9e27f MB |
17054 | |
17055 | else | |
17056 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 17057 | fi |
10f2d63a | 17058 | |
7a30264c | 17059 | fi |
d29b553b | 17060 | fi |
95c8801c | 17061 | |
d74f4b5a | 17062 | if test "$WCSLEN_FOUND" = 1; then |
a0b9e27f | 17063 | cat >> confdefs.h <<\EOF |
d74f4b5a | 17064 | #define HAVE_WCSLEN 1 |
a0b9e27f | 17065 | EOF |
10f2d63a | 17066 | |
d74f4b5a | 17067 | fi |
52127426 | 17068 | |
a0b9e27f | 17069 | for ac_func in wcsrtombs |
eb4efbdc | 17070 | do |
a0b9e27f | 17071 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
ac0c4cc3 | 17072 | echo "configure:17073: checking for $ac_func" >&5 |
a0b9e27f MB |
17073 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17074 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17075 | else | |
17076 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 17077 | #line 17078 "configure" |
eb4efbdc VZ |
17078 | #include "confdefs.h" |
17079 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17080 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
17081 | #include <assert.h> |
17082 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4f14bcd8 | 17083 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
17084 | builtin and then its argument prototype would still apply. */ |
17085 | char $ac_func(); | |
17086 | ||
17087 | int main() { | |
17088 | ||
10f2d63a VZ |
17089 | /* The GNU C library defines this for functions which it implements |
17090 | to always fail with ENOSYS. Some functions are actually named | |
17091 | something starting with __ and the normal name is an alias. */ | |
247f5006 | 17092 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
10f2d63a VZ |
17093 | choke me |
17094 | #else | |
a0b9e27f | 17095 | $ac_func(); |
10f2d63a VZ |
17096 | #endif |
17097 | ||
a0b9e27f MB |
17098 | ; return 0; } |
17099 | EOF | |
ac0c4cc3 | 17100 | if { (eval echo configure:17101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17101 | rm -rf conftest* |
17102 | eval "ac_cv_func_$ac_func=yes" | |
17103 | else | |
17104 | echo "configure: failed program was:" >&5 | |
17105 | cat conftest.$ac_ext >&5 | |
17106 | rm -rf conftest* | |
17107 | eval "ac_cv_func_$ac_func=no" | |
17108 | fi | |
17109 | rm -f conftest* | |
17110 | fi | |
270a909e | 17111 | |
a0b9e27f MB |
17112 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17113 | echo "$ac_t""yes" 1>&6 | |
17114 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17115 | cat >> confdefs.h <<EOF | |
17116 | #define $ac_tr_func 1 | |
17117 | EOF | |
17118 | ||
17119 | else | |
17120 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 17121 | fi |
247f5006 | 17122 | done |
1e487827 | 17123 | |
af15babd | 17124 | else |
a0b9e27f | 17125 | echo "configure: warning: Wide character support is unavailable" 1>&2 |
7b4a847f | 17126 | fi |
52127426 | 17127 | |
8284b0c5 | 17128 | |
a0b9e27f MB |
17129 | ac_ext=C |
17130 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
247f5006 | 17131 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
17132 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17133 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17134 | cross_compiling=$ac_cv_prog_cxx_cross | |
af15babd | 17135 | |
247f5006 VZ |
17136 | |
17137 | for ac_func in vsnprintf | |
17138 | do | |
a0b9e27f | 17139 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
ac0c4cc3 | 17140 | echo "configure:17141: checking for $ac_func" >&5 |
a0b9e27f MB |
17141 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17142 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17143 | else | |
17144 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 17145 | #line 17146 "configure" |
af15babd | 17146 | #include "confdefs.h" |
247f5006 | 17147 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 17148 | which can conflict with char $ac_func(); below. */ |
247f5006 VZ |
17149 | #include <assert.h> |
17150 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17151 | #ifdef __cplusplus | |
17152 | extern "C" | |
17153 | #endif | |
17154 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17155 | builtin and then its argument prototype would still apply. */ |
17156 | char $ac_func(); | |
17157 | ||
17158 | int main() { | |
17159 | ||
247f5006 VZ |
17160 | /* The GNU C library defines this for functions which it implements |
17161 | to always fail with ENOSYS. Some functions are actually named | |
17162 | something starting with __ and the normal name is an alias. */ | |
17163 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17164 | choke me | |
17165 | #else | |
a0b9e27f | 17166 | $ac_func(); |
247f5006 | 17167 | #endif |
af15babd | 17168 | |
a0b9e27f MB |
17169 | ; return 0; } |
17170 | EOF | |
ac0c4cc3 | 17171 | if { (eval echo configure:17172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17172 | rm -rf conftest* |
17173 | eval "ac_cv_func_$ac_func=yes" | |
17174 | else | |
17175 | echo "configure: failed program was:" >&5 | |
17176 | cat conftest.$ac_ext >&5 | |
17177 | rm -rf conftest* | |
17178 | eval "ac_cv_func_$ac_func=no" | |
17179 | fi | |
17180 | rm -f conftest* | |
17181 | fi | |
52127426 | 17182 | |
a0b9e27f MB |
17183 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17184 | echo "$ac_t""yes" 1>&6 | |
17185 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17186 | cat >> confdefs.h <<EOF | |
17187 | #define $ac_tr_func 1 | |
17188 | EOF | |
17189 | ||
17190 | else | |
17191 | echo "$ac_t""no" 1>&6 | |
5c6fa7d2 | 17192 | fi |
247f5006 | 17193 | done |
8284b0c5 | 17194 | |
4f14bcd8 | 17195 | |
8d90d2f2 VZ |
17196 | if test "$ac_cv_func_vsnprintf" = "yes"; then |
17197 | echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6 | |
ac0c4cc3 | 17198 | echo "configure:17199: checking for vsnprintf declaration" >&5 |
8d90d2f2 VZ |
17199 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf_decl'+set}'`\" = set"; then |
17200 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17201 | else | |
17202 | ||
17203 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 17204 | #line 17205 "configure" |
8d90d2f2 VZ |
17205 | #include "confdefs.h" |
17206 | ||
17207 | #include <stdio.h> | |
17208 | #include <stdarg.h> | |
17209 | ||
17210 | int main() { | |
17211 | ||
17212 | char *buf; | |
17213 | va_list ap; | |
17214 | vsnprintf(buf, 10u, "%s", ap); | |
17215 | ||
17216 | ; return 0; } | |
17217 | EOF | |
ac0c4cc3 | 17218 | if { (eval echo configure:17219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
8d90d2f2 VZ |
17219 | rm -rf conftest* |
17220 | wx_cv_func_vsnprintf_decl=yes | |
17221 | else | |
17222 | echo "configure: failed program was:" >&5 | |
17223 | cat conftest.$ac_ext >&5 | |
17224 | rm -rf conftest* | |
17225 | wx_cv_func_vsnprintf_decl=no | |
17226 | ||
17227 | fi | |
17228 | rm -f conftest* | |
17229 | ||
17230 | ||
17231 | fi | |
17232 | ||
17233 | echo "$ac_t""$wx_cv_func_vsnprintf_decl" 1>&6 | |
17234 | ||
17235 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
17236 | cat >> confdefs.h <<\EOF | |
17237 | #define HAVE_VSNPRINTF_DECL 1 | |
17238 | EOF | |
17239 | ||
17240 | fi | |
17241 | fi | |
17242 | ||
247f5006 | 17243 | if test "$wxUSE_UNICODE" = yes; then |
a0b9e27f | 17244 | for ac_func in fputwc wprintf vswprintf |
d74f4b5a | 17245 | do |
a0b9e27f | 17246 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
ac0c4cc3 | 17247 | echo "configure:17248: checking for $ac_func" >&5 |
a0b9e27f MB |
17248 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17249 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17250 | else | |
17251 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 17252 | #line 17253 "configure" |
d74f4b5a VZ |
17253 | #include "confdefs.h" |
17254 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17255 | which can conflict with char $ac_func(); below. */ |
d74f4b5a VZ |
17256 | #include <assert.h> |
17257 | /* Override any gcc2 internal prototype to avoid an error. */ | |
247f5006 VZ |
17258 | #ifdef __cplusplus |
17259 | extern "C" | |
17260 | #endif | |
d74f4b5a | 17261 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
17262 | builtin and then its argument prototype would still apply. */ |
17263 | char $ac_func(); | |
17264 | ||
17265 | int main() { | |
17266 | ||
d74f4b5a VZ |
17267 | /* The GNU C library defines this for functions which it implements |
17268 | to always fail with ENOSYS. Some functions are actually named | |
17269 | something starting with __ and the normal name is an alias. */ | |
17270 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17271 | choke me | |
17272 | #else | |
a0b9e27f | 17273 | $ac_func(); |
d74f4b5a VZ |
17274 | #endif |
17275 | ||
a0b9e27f MB |
17276 | ; return 0; } |
17277 | EOF | |
ac0c4cc3 | 17278 | if { (eval echo configure:17279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17279 | rm -rf conftest* |
17280 | eval "ac_cv_func_$ac_func=yes" | |
17281 | else | |
17282 | echo "configure: failed program was:" >&5 | |
17283 | cat conftest.$ac_ext >&5 | |
17284 | rm -rf conftest* | |
17285 | eval "ac_cv_func_$ac_func=no" | |
17286 | fi | |
17287 | rm -f conftest* | |
17288 | fi | |
d74f4b5a | 17289 | |
a0b9e27f MB |
17290 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17291 | echo "$ac_t""yes" 1>&6 | |
17292 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17293 | cat >> confdefs.h <<EOF | |
17294 | #define $ac_tr_func 1 | |
17295 | EOF | |
17296 | ||
17297 | else | |
17298 | echo "$ac_t""no" 1>&6 | |
d74f4b5a VZ |
17299 | fi |
17300 | done | |
17301 | ||
8d90d2f2 | 17302 | |
79668cae | 17303 | echo $ac_n "checking for _vsnwprintf""... $ac_c" 1>&6 |
ac0c4cc3 | 17304 | echo "configure:17305: checking for _vsnwprintf" >&5 |
79668cae | 17305 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 17306 | #line 17307 "configure" |
79668cae MB |
17307 | #include "confdefs.h" |
17308 | #include <wchar.h> | |
17309 | int main() { | |
17310 | &_vsnwprintf; | |
17311 | ; return 0; } | |
17312 | EOF | |
ac0c4cc3 | 17313 | if { (eval echo configure:17314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
79668cae MB |
17314 | rm -rf conftest* |
17315 | echo "$ac_t""yes" 1>&6 | |
17316 | cat >> confdefs.h <<\EOF | |
17317 | #define HAVE__VSNWPRINTF 1 | |
17318 | EOF | |
17319 | ||
17320 | else | |
17321 | echo "configure: failed program was:" >&5 | |
17322 | cat conftest.$ac_ext >&5 | |
17323 | rm -rf conftest* | |
17324 | echo "$ac_t""no" 1>&6 | |
17325 | fi | |
17326 | rm -f conftest*; | |
d74f4b5a VZ |
17327 | fi |
17328 | ||
247f5006 | 17329 | ac_ext=c |
a0b9e27f | 17330 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
247f5006 | 17331 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
17332 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17333 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17334 | cross_compiling=$ac_cv_prog_cc_cross | |
247f5006 VZ |
17335 | |
17336 | ||
17337 | ||
17338 | ||
4f14bcd8 | 17339 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 17340 | |
8284b0c5 MB |
17341 | |
17342 | ||
a0b9e27f MB |
17343 | ac_ext=C |
17344 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 17345 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
17346 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17347 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17348 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 17349 | |
52127426 | 17350 | |
a0b9e27f MB |
17351 | |
17352 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
b040e242 VS |
17353 | if test "${with_libiconv_prefix+set}" = set; then |
17354 | withval="$with_libiconv_prefix" | |
a0b9e27f | 17355 | |
b040e242 VS |
17356 | for dir in `echo "$withval" | tr : ' '`; do |
17357 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
17358 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
17359 | done | |
a0b9e27f MB |
17360 | |
17361 | fi | |
b040e242 VS |
17362 | |
17363 | ||
a0b9e27f | 17364 | echo $ac_n "checking for iconv""... $ac_c" 1>&6 |
ac0c4cc3 | 17365 | echo "configure:17366: checking for iconv" >&5 |
a0b9e27f MB |
17366 | if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then |
17367 | echo $ac_n "(cached) $ac_c" 1>&6 | |
af15babd | 17368 | else |
a0b9e27f | 17369 | |
b040e242 VS |
17370 | am_cv_func_iconv="no, consider installing GNU libiconv" |
17371 | am_cv_lib_iconv=no | |
a0b9e27f | 17372 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 17373 | #line 17374 "configure" |
af15babd | 17374 | #include "confdefs.h" |
b040e242 | 17375 | #include <stdlib.h> |
4f14bcd8 | 17376 | #include <iconv.h> |
a0b9e27f | 17377 | int main() { |
b040e242 VS |
17378 | iconv_t cd = iconv_open("",""); |
17379 | iconv(cd,NULL,NULL,NULL,NULL); | |
17380 | iconv_close(cd); | |
a0b9e27f MB |
17381 | ; return 0; } |
17382 | EOF | |
ac0c4cc3 | 17383 | if { (eval echo configure:17384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 17384 | rm -rf conftest* |
b040e242 | 17385 | am_cv_func_iconv=yes |
af15babd | 17386 | else |
a0b9e27f MB |
17387 | echo "configure: failed program was:" >&5 |
17388 | cat conftest.$ac_ext >&5 | |
b040e242 | 17389 | fi |
a0b9e27f | 17390 | rm -f conftest* |
b040e242 VS |
17391 | if test "$am_cv_func_iconv" != yes; then |
17392 | am_save_LIBS="$LIBS" | |
17393 | LIBS="$LIBS -liconv" | |
a0b9e27f | 17394 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 17395 | #line 17396 "configure" |
b040e242 VS |
17396 | #include "confdefs.h" |
17397 | #include <stdlib.h> | |
17398 | #include <iconv.h> | |
a0b9e27f | 17399 | int main() { |
b040e242 VS |
17400 | iconv_t cd = iconv_open("",""); |
17401 | iconv(cd,NULL,NULL,NULL,NULL); | |
17402 | iconv_close(cd); | |
a0b9e27f MB |
17403 | ; return 0; } |
17404 | EOF | |
ac0c4cc3 | 17405 | if { (eval echo configure:17406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 17406 | rm -rf conftest* |
b040e242 VS |
17407 | am_cv_lib_iconv=yes |
17408 | am_cv_func_iconv=yes | |
17409 | else | |
a0b9e27f MB |
17410 | echo "configure: failed program was:" >&5 |
17411 | cat conftest.$ac_ext >&5 | |
af15babd | 17412 | fi |
a0b9e27f | 17413 | rm -f conftest* |
b040e242 VS |
17414 | LIBS="$am_save_LIBS" |
17415 | fi | |
a0b9e27f | 17416 | |
247f5006 | 17417 | fi |
247f5006 | 17418 | |
a0b9e27f MB |
17419 | echo "$ac_t""$am_cv_func_iconv" 1>&6 |
17420 | if test "$am_cv_func_iconv" = yes; then | |
17421 | cat >> confdefs.h <<\EOF | |
b040e242 | 17422 | #define HAVE_ICONV 1 |
a0b9e27f | 17423 | EOF |
b040e242 | 17424 | |
a0b9e27f | 17425 | echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6 |
ac0c4cc3 | 17426 | echo "configure:17427: checking if iconv needs const" >&5 |
a0b9e27f MB |
17427 | if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then |
17428 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b040e242 | 17429 | else |
a0b9e27f | 17430 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 17431 | #line 17432 "configure" |
b040e242 VS |
17432 | #include "confdefs.h" |
17433 | ||
17434 | #include <stdlib.h> | |
17435 | #include <iconv.h> | |
17436 | extern | |
17437 | #ifdef __cplusplus | |
17438 | "C" | |
17439 | #endif | |
17440 | #if defined(__STDC__) || defined(__cplusplus) | |
17441 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
17442 | #else | |
17443 | size_t iconv(); | |
17444 | #endif | |
a0b9e27f MB |
17445 | |
17446 | int main() { | |
af15babd | 17447 | |
a0b9e27f MB |
17448 | ; return 0; } |
17449 | EOF | |
ac0c4cc3 | 17450 | if { (eval echo configure:17451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 17451 | rm -rf conftest* |
b7043674 | 17452 | wx_cv_func_iconv_const="no" |
b040e242 | 17453 | else |
a0b9e27f MB |
17454 | echo "configure: failed program was:" >&5 |
17455 | cat conftest.$ac_ext >&5 | |
17456 | rm -rf conftest* | |
17457 | wx_cv_func_iconv_const="yes" | |
17458 | ||
5c6fa7d2 | 17459 | fi |
a0b9e27f MB |
17460 | rm -f conftest* |
17461 | ||
247f5006 | 17462 | fi |
a0b9e27f MB |
17463 | |
17464 | echo "$ac_t""$wx_cv_func_iconv_const" 1>&6 | |
b7043674 VZ |
17465 | |
17466 | iconv_const= | |
1c405bb5 | 17467 | if test "x$wx_cv_func_iconv_const" = "xyes"; then |
b7043674 VZ |
17468 | iconv_const="const" |
17469 | fi | |
17470 | ||
a0b9e27f | 17471 | cat >> confdefs.h <<EOF |
f09359cf | 17472 | #define ICONV_CONST $iconv_const |
a0b9e27f | 17473 | EOF |
b040e242 VS |
17474 | |
17475 | fi | |
17476 | LIBICONV= | |
17477 | if test "$am_cv_lib_iconv" = yes; then | |
17478 | LIBICONV="-liconv" | |
17479 | fi | |
a0b9e27f | 17480 | |
b040e242 VS |
17481 | |
17482 | LIBS="$LIBICONV $LIBS" | |
4f14bcd8 | 17483 | ac_ext=c |
a0b9e27f | 17484 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 17485 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
17486 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17487 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17488 | cross_compiling=$ac_cv_prog_cc_cross | |
7b4a847f | 17489 | |
5c6fa7d2 | 17490 | |
8284b0c5 | 17491 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
a0b9e27f | 17492 | for ac_func in sigaction |
af15babd | 17493 | do |
a0b9e27f | 17494 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
ac0c4cc3 | 17495 | echo "configure:17496: checking for $ac_func" >&5 |
a0b9e27f MB |
17496 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17497 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17498 | else | |
17499 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 17500 | #line 17501 "configure" |
af15babd VZ |
17501 | #include "confdefs.h" |
17502 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17503 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17504 | #include <assert.h> |
17505 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17506 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17507 | builtin and then its argument prototype would still apply. */ |
17508 | char $ac_func(); | |
17509 | ||
17510 | int main() { | |
17511 | ||
af15babd VZ |
17512 | /* The GNU C library defines this for functions which it implements |
17513 | to always fail with ENOSYS. Some functions are actually named | |
17514 | something starting with __ and the normal name is an alias. */ | |
17515 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17516 | choke me | |
17517 | #else | |
a0b9e27f | 17518 | $ac_func(); |
af15babd VZ |
17519 | #endif |
17520 | ||
a0b9e27f MB |
17521 | ; return 0; } |
17522 | EOF | |
ac0c4cc3 | 17523 | if { (eval echo configure:17524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17524 | rm -rf conftest* |
17525 | eval "ac_cv_func_$ac_func=yes" | |
17526 | else | |
17527 | echo "configure: failed program was:" >&5 | |
17528 | cat conftest.$ac_ext >&5 | |
17529 | rm -rf conftest* | |
17530 | eval "ac_cv_func_$ac_func=no" | |
17531 | fi | |
17532 | rm -f conftest* | |
17533 | fi | |
7b4a847f | 17534 | |
a0b9e27f MB |
17535 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17536 | echo "$ac_t""yes" 1>&6 | |
17537 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17538 | cat >> confdefs.h <<EOF | |
17539 | #define $ac_tr_func 1 | |
17540 | EOF | |
17541 | ||
17542 | else | |
17543 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
17544 | fi |
17545 | done | |
17546 | ||
8284b0c5 | 17547 | |
4f14bcd8 | 17548 | if test "$ac_cv_func_sigaction" = "no"; then |
a0b9e27f | 17549 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 |
4f14bcd8 GD |
17550 | wxUSE_ON_FATAL_EXCEPTION=no |
17551 | fi | |
17552 | ||
17553 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
a0b9e27f MB |
17554 | |
17555 | ac_ext=C | |
17556 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 17557 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
17558 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17559 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17560 | cross_compiling=$ac_cv_prog_cxx_cross | |
7b4a847f | 17561 | |
5c6fa7d2 | 17562 | |
a0b9e27f | 17563 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 |
ac0c4cc3 | 17564 | echo "configure:17565: checking for sa_handler type" >&5 |
a0b9e27f MB |
17565 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
17566 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 17567 | else |
a0b9e27f MB |
17568 | |
17569 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 17570 | #line 17571 "configure" |
af15babd | 17571 | #include "confdefs.h" |
4f14bcd8 | 17572 | #include <signal.h> |
a0b9e27f | 17573 | int main() { |
4f14bcd8 GD |
17574 | |
17575 | extern void testSigHandler(int); | |
17576 | ||
17577 | struct sigaction sa; | |
17578 | sa.sa_handler = testSigHandler; | |
a0b9e27f MB |
17579 | |
17580 | ; return 0; } | |
17581 | EOF | |
ac0c4cc3 | 17582 | if { (eval echo configure:17583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
17583 | rm -rf conftest* |
17584 | ||
4f14bcd8 | 17585 | wx_cv_type_sa_handler=int |
a0b9e27f | 17586 | |
af15babd | 17587 | else |
a0b9e27f MB |
17588 | echo "configure: failed program was:" >&5 |
17589 | cat conftest.$ac_ext >&5 | |
17590 | rm -rf conftest* | |
17591 | ||
4f14bcd8 | 17592 | wx_cv_type_sa_handler=void |
a0b9e27f | 17593 | |
5c6fa7d2 | 17594 | fi |
a0b9e27f MB |
17595 | rm -f conftest* |
17596 | ||
247f5006 | 17597 | fi |
a0b9e27f MB |
17598 | |
17599 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
4f14bcd8 GD |
17600 | |
17601 | ac_ext=c | |
a0b9e27f | 17602 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 17603 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
17604 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17605 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17606 | cross_compiling=$ac_cv_prog_cc_cross | |
579d8138 | 17607 | |
8284b0c5 | 17608 | |
a0b9e27f | 17609 | cat >> confdefs.h <<EOF |
4f14bcd8 | 17610 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler |
a0b9e27f | 17611 | EOF |
af15babd | 17612 | |
4f14bcd8 GD |
17613 | fi |
17614 | fi | |
af15babd | 17615 | |
a1d22ad7 | 17616 | for ac_func in mkstemp mktemp |
af15babd | 17617 | do |
a0b9e27f | 17618 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
ac0c4cc3 | 17619 | echo "configure:17620: checking for $ac_func" >&5 |
a0b9e27f MB |
17620 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17621 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17622 | else | |
17623 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 17624 | #line 17625 "configure" |
af15babd VZ |
17625 | #include "confdefs.h" |
17626 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17627 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17628 | #include <assert.h> |
17629 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17630 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17631 | builtin and then its argument prototype would still apply. */ |
17632 | char $ac_func(); | |
17633 | ||
17634 | int main() { | |
17635 | ||
af15babd VZ |
17636 | /* The GNU C library defines this for functions which it implements |
17637 | to always fail with ENOSYS. Some functions are actually named | |
17638 | something starting with __ and the normal name is an alias. */ | |
17639 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17640 | choke me | |
17641 | #else | |
a0b9e27f | 17642 | $ac_func(); |
af15babd VZ |
17643 | #endif |
17644 | ||
a0b9e27f MB |
17645 | ; return 0; } |
17646 | EOF | |
ac0c4cc3 | 17647 | if { (eval echo configure:17648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17648 | rm -rf conftest* |
17649 | eval "ac_cv_func_$ac_func=yes" | |
17650 | else | |
17651 | echo "configure: failed program was:" >&5 | |
17652 | cat conftest.$ac_ext >&5 | |
17653 | rm -rf conftest* | |
17654 | eval "ac_cv_func_$ac_func=no" | |
17655 | fi | |
17656 | rm -f conftest* | |
17657 | fi | |
af15babd | 17658 | |
a0b9e27f MB |
17659 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17660 | echo "$ac_t""yes" 1>&6 | |
17661 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17662 | cat >> confdefs.h <<EOF | |
17663 | #define $ac_tr_func 1 | |
17664 | EOF | |
ade35f11 | 17665 | break |
a0b9e27f MB |
17666 | else |
17667 | echo "$ac_t""no" 1>&6 | |
ade35f11 VZ |
17668 | fi |
17669 | done | |
17670 | ||
8284b0c5 | 17671 | |
a0b9e27f | 17672 | echo $ac_n "checking for statfs""... $ac_c" 1>&6 |
ac0c4cc3 | 17673 | echo "configure:17674: checking for statfs" >&5 |
a0b9e27f MB |
17674 | if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then |
17675 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 17676 | else |
a0b9e27f | 17677 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 17678 | #line 17679 "configure" |
4f14bcd8 GD |
17679 | #include "confdefs.h" |
17680 | ||
17681 | #if defined(__BSD__) | |
17682 | #include <sys/param.h> | |
17683 | #include <sys/mount.h> | |
17684 | #else | |
17685 | #include <sys/vfs.h> | |
17686 | #endif | |
a0b9e27f MB |
17687 | |
17688 | int main() { | |
4f14bcd8 GD |
17689 | |
17690 | long l; | |
17691 | struct statfs fs; | |
17692 | statfs("/", &fs); | |
17693 | l = fs.f_bsize; | |
17694 | l += fs.f_blocks; | |
17695 | l += fs.f_bavail; | |
a0b9e27f MB |
17696 | |
17697 | ; return 0; } | |
17698 | EOF | |
ac0c4cc3 | 17699 | if { (eval echo configure:17700: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
17700 | rm -rf conftest* |
17701 | ||
4f14bcd8 | 17702 | wx_cv_func_statfs=yes |
a0b9e27f | 17703 | |
4f14bcd8 | 17704 | else |
a0b9e27f MB |
17705 | echo "configure: failed program was:" >&5 |
17706 | cat conftest.$ac_ext >&5 | |
17707 | rm -rf conftest* | |
17708 | ||
4f14bcd8 | 17709 | wx_cv_func_statfs=no |
a0b9e27f MB |
17710 | |
17711 | ||
5c6fa7d2 | 17712 | fi |
a0b9e27f | 17713 | rm -f conftest* |
8284b0c5 | 17714 | |
247f5006 | 17715 | fi |
a0b9e27f MB |
17716 | |
17717 | echo "$ac_t""$wx_cv_func_statfs" 1>&6 | |
4f14bcd8 GD |
17718 | |
17719 | if test "$wx_cv_func_statfs" = "yes"; then | |
54ab82b3 | 17720 | wx_cv_type_statvfs_t="struct statfs" |
a0b9e27f | 17721 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 17722 | #define HAVE_STATFS 1 |
a0b9e27f | 17723 | EOF |
4f14bcd8 GD |
17724 | |
17725 | else | |
a0b9e27f | 17726 | echo $ac_n "checking for statvfs""... $ac_c" 1>&6 |
ac0c4cc3 | 17727 | echo "configure:17728: checking for statvfs" >&5 |
a0b9e27f MB |
17728 | if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then |
17729 | echo $ac_n "(cached) $ac_c" 1>&6 | |
af15babd | 17730 | else |
a0b9e27f | 17731 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 17732 | #line 17733 "configure" |
af15babd | 17733 | #include "confdefs.h" |
af15babd | 17734 | |
54ab82b3 VZ |
17735 | #include <stddef.h> |
17736 | #include <sys/statvfs.h> | |
a0b9e27f MB |
17737 | |
17738 | int main() { | |
af15babd | 17739 | |
54ab82b3 | 17740 | statvfs("/", NULL); |
a0b9e27f MB |
17741 | |
17742 | ; return 0; } | |
17743 | EOF | |
ac0c4cc3 | 17744 | if { (eval echo configure:17745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 17745 | rm -rf conftest* |
54ab82b3 | 17746 | wx_cv_func_statvfs=yes |
af15babd | 17747 | else |
a0b9e27f MB |
17748 | echo "configure: failed program was:" >&5 |
17749 | cat conftest.$ac_ext >&5 | |
17750 | rm -rf conftest* | |
54ab82b3 | 17751 | wx_cv_func_statvfs=no |
a0b9e27f | 17752 | |
5c6fa7d2 | 17753 | fi |
a0b9e27f MB |
17754 | rm -f conftest* |
17755 | ||
247f5006 | 17756 | fi |
a0b9e27f MB |
17757 | |
17758 | echo "$ac_t""$wx_cv_func_statvfs" 1>&6 | |
af15babd | 17759 | |
4f14bcd8 | 17760 | if test "$wx_cv_func_statvfs" = "yes"; then |
54ab82b3 VZ |
17761 | |
17762 | ac_ext=C | |
17763 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
17764 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17765 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
17766 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17767 | cross_compiling=$ac_cv_prog_cxx_cross | |
17768 | ||
17769 | ||
17770 | echo $ac_n "checking for statvfs argument type""... $ac_c" 1>&6 | |
ac0c4cc3 | 17771 | echo "configure:17772: checking for statvfs argument type" >&5 |
54ab82b3 VZ |
17772 | if eval "test \"`echo '$''{'wx_cv_type_statvfs_t'+set}'`\" = set"; then |
17773 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17774 | else | |
17775 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 17776 | #line 17777 "configure" |
54ab82b3 VZ |
17777 | #include "confdefs.h" |
17778 | ||
17779 | #include <sys/statvfs.h> | |
17780 | ||
17781 | int main() { | |
17782 | ||
17783 | long l; | |
17784 | statvfs_t fs; | |
17785 | statvfs("/", &fs); | |
17786 | l = fs.f_bsize; | |
17787 | l += fs.f_blocks; | |
17788 | l += fs.f_bavail; | |
17789 | ||
17790 | ; return 0; } | |
17791 | EOF | |
ac0c4cc3 | 17792 | if { (eval echo configure:17793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
54ab82b3 VZ |
17793 | rm -rf conftest* |
17794 | wx_cv_type_statvfs_t=statvfs_t | |
17795 | else | |
17796 | echo "configure: failed program was:" >&5 | |
17797 | cat conftest.$ac_ext >&5 | |
17798 | rm -rf conftest* | |
17799 | ||
17800 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 17801 | #line 17802 "configure" |
54ab82b3 VZ |
17802 | #include "confdefs.h" |
17803 | ||
17804 | #include <sys/statvfs.h> | |
17805 | ||
17806 | int main() { | |
17807 | ||
17808 | long l; | |
65d8ef1e | 17809 | struct statvfs fs; |
54ab82b3 VZ |
17810 | statvfs("/", &fs); |
17811 | l = fs.f_bsize; | |
17812 | l += fs.f_blocks; | |
17813 | l += fs.f_bavail; | |
17814 | ||
17815 | ; return 0; } | |
17816 | EOF | |
ac0c4cc3 | 17817 | if { (eval echo configure:17818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
54ab82b3 VZ |
17818 | rm -rf conftest* |
17819 | wx_cv_type_statvfs_t="struct statvfs" | |
17820 | else | |
17821 | echo "configure: failed program was:" >&5 | |
17822 | cat conftest.$ac_ext >&5 | |
17823 | rm -rf conftest* | |
17824 | wx_cv_type_statvfs_t="unknown" | |
17825 | ||
17826 | fi | |
17827 | rm -f conftest* | |
17828 | ||
17829 | ||
17830 | fi | |
17831 | rm -f conftest* | |
17832 | ||
17833 | fi | |
17834 | ||
17835 | echo "$ac_t""$wx_cv_type_statvfs_t" 1>&6 | |
17836 | ||
17837 | ac_ext=c | |
17838 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
17839 | ac_cpp='$CPP $CPPFLAGS' | |
17840 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
17841 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17842 | cross_compiling=$ac_cv_prog_cc_cross | |
17843 | ||
17844 | ||
17845 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
17846 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17847 | #define HAVE_STATVFS 1 |
a0b9e27f | 17848 | EOF |
af15babd | 17849 | |
54ab82b3 | 17850 | fi |
4f14bcd8 | 17851 | else |
54ab82b3 | 17852 | wx_cv_type_statvfs_t="unknown" |
4f14bcd8 GD |
17853 | fi |
17854 | fi | |
af15babd | 17855 | |
54ab82b3 VZ |
17856 | if test "$wx_cv_type_statvfs_t" != "unknown"; then |
17857 | cat >> confdefs.h <<EOF | |
17858 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
17859 | EOF | |
17860 | ||
17861 | else | |
17862 | echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2 | |
17863 | fi | |
17864 | ||
4f14bcd8 | 17865 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
a0b9e27f | 17866 | for ac_func in fcntl flock |
af15babd | 17867 | do |
a0b9e27f | 17868 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
ac0c4cc3 | 17869 | echo "configure:17870: checking for $ac_func" >&5 |
a0b9e27f MB |
17870 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17871 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17872 | else | |
17873 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 17874 | #line 17875 "configure" |
af15babd VZ |
17875 | #include "confdefs.h" |
17876 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17877 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17878 | #include <assert.h> |
17879 | /* Override any gcc2 internal prototype to avoid an error. */ | |
af15babd | 17880 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
17881 | builtin and then its argument prototype would still apply. */ |
17882 | char $ac_func(); | |
17883 | ||
17884 | int main() { | |
17885 | ||
af15babd VZ |
17886 | /* The GNU C library defines this for functions which it implements |
17887 | to always fail with ENOSYS. Some functions are actually named | |
17888 | something starting with __ and the normal name is an alias. */ | |
17889 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17890 | choke me | |
17891 | #else | |
a0b9e27f | 17892 | $ac_func(); |
af15babd VZ |
17893 | #endif |
17894 | ||
a0b9e27f MB |
17895 | ; return 0; } |
17896 | EOF | |
ac0c4cc3 | 17897 | if { (eval echo configure:17898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17898 | rm -rf conftest* |
17899 | eval "ac_cv_func_$ac_func=yes" | |
17900 | else | |
17901 | echo "configure: failed program was:" >&5 | |
17902 | cat conftest.$ac_ext >&5 | |
17903 | rm -rf conftest* | |
17904 | eval "ac_cv_func_$ac_func=no" | |
17905 | fi | |
17906 | rm -f conftest* | |
17907 | fi | |
17908 | ||
17909 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17910 | echo "$ac_t""yes" 1>&6 | |
17911 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17912 | cat >> confdefs.h <<EOF | |
17913 | #define $ac_tr_func 1 | |
17914 | EOF | |
4f14bcd8 | 17915 | break |
a0b9e27f MB |
17916 | else |
17917 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
17918 | fi |
17919 | done | |
17920 | ||
8284b0c5 | 17921 | |
4f14bcd8 | 17922 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
a0b9e27f | 17923 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 |
4f14bcd8 GD |
17924 | wxUSE_SNGLINST_CHECKER=no |
17925 | fi | |
17926 | fi | |
af15babd | 17927 | |
4f14bcd8 | 17928 | for ac_func in timegm |
af15babd | 17929 | do |
a0b9e27f | 17930 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
ac0c4cc3 | 17931 | echo "configure:17932: checking for $ac_func" >&5 |
a0b9e27f MB |
17932 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17933 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17934 | else | |
17935 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 17936 | #line 17937 "configure" |
af15babd VZ |
17937 | #include "confdefs.h" |
17938 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17939 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17940 | #include <assert.h> |
17941 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17942 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17943 | builtin and then its argument prototype would still apply. */ |
17944 | char $ac_func(); | |
17945 | ||
17946 | int main() { | |
17947 | ||
af15babd VZ |
17948 | /* The GNU C library defines this for functions which it implements |
17949 | to always fail with ENOSYS. Some functions are actually named | |
17950 | something starting with __ and the normal name is an alias. */ | |
247f5006 VZ |
17951 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
17952 | choke me | |
17953 | #else | |
a0b9e27f | 17954 | $ac_func(); |
247f5006 VZ |
17955 | #endif |
17956 | ||
a0b9e27f MB |
17957 | ; return 0; } |
17958 | EOF | |
ac0c4cc3 | 17959 | if { (eval echo configure:17960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17960 | rm -rf conftest* |
17961 | eval "ac_cv_func_$ac_func=yes" | |
17962 | else | |
17963 | echo "configure: failed program was:" >&5 | |
17964 | cat conftest.$ac_ext >&5 | |
17965 | rm -rf conftest* | |
17966 | eval "ac_cv_func_$ac_func=no" | |
17967 | fi | |
17968 | rm -f conftest* | |
17969 | fi | |
703e0a69 | 17970 | |
a0b9e27f MB |
17971 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17972 | echo "$ac_t""yes" 1>&6 | |
17973 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17974 | cat >> confdefs.h <<EOF | |
17975 | #define $ac_tr_func 1 | |
17976 | EOF | |
17977 | ||
17978 | else | |
17979 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
17980 | fi |
17981 | done | |
17982 | ||
8284b0c5 | 17983 | |
4f14bcd8 | 17984 | for ac_func in putenv setenv |
10f2d63a | 17985 | do |
a0b9e27f | 17986 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
ac0c4cc3 | 17987 | echo "configure:17988: checking for $ac_func" >&5 |
a0b9e27f MB |
17988 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17989 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17990 | else | |
17991 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 17992 | #line 17993 "configure" |
af15babd VZ |
17993 | #include "confdefs.h" |
17994 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17995 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17996 | #include <assert.h> |
17997 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17998 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17999 | builtin and then its argument prototype would still apply. */ |
18000 | char $ac_func(); | |
18001 | ||
18002 | int main() { | |
18003 | ||
af15babd VZ |
18004 | /* The GNU C library defines this for functions which it implements |
18005 | to always fail with ENOSYS. Some functions are actually named | |
18006 | something starting with __ and the normal name is an alias. */ | |
18007 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18008 | choke me | |
18009 | #else | |
a0b9e27f | 18010 | $ac_func(); |
af15babd VZ |
18011 | #endif |
18012 | ||
a0b9e27f MB |
18013 | ; return 0; } |
18014 | EOF | |
ac0c4cc3 | 18015 | if { (eval echo configure:18016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18016 | rm -rf conftest* |
18017 | eval "ac_cv_func_$ac_func=yes" | |
18018 | else | |
18019 | echo "configure: failed program was:" >&5 | |
18020 | cat conftest.$ac_ext >&5 | |
18021 | rm -rf conftest* | |
18022 | eval "ac_cv_func_$ac_func=no" | |
18023 | fi | |
18024 | rm -f conftest* | |
18025 | fi | |
18026 | ||
18027 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18028 | echo "$ac_t""yes" 1>&6 | |
18029 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18030 | cat >> confdefs.h <<EOF | |
18031 | #define $ac_tr_func 1 | |
18032 | EOF | |
4f14bcd8 | 18033 | break |
a0b9e27f MB |
18034 | else |
18035 | echo "$ac_t""no" 1>&6 | |
af15babd | 18036 | fi |
af15babd VZ |
18037 | done |
18038 | ||
8284b0c5 | 18039 | |
4f14bcd8 GD |
18040 | HAVE_SOME_SLEEP_FUNC=0 |
18041 | if test "$USE_BEOS" = 1; then | |
a0b9e27f | 18042 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18043 | #define HAVE_SLEEP 1 |
a0b9e27f | 18044 | EOF |
af15babd | 18045 | |
4f14bcd8 | 18046 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
18047 | fi |
18048 | ||
4f14bcd8 | 18049 | if test "$USE_DARWIN" = 1; then |
a0b9e27f | 18050 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18051 | #define HAVE_USLEEP 1 |
a0b9e27f | 18052 | EOF |
10f2d63a | 18053 | |
4f14bcd8 | 18054 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
18055 | fi |
18056 | ||
4f14bcd8 GD |
18057 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
18058 | POSIX4_LINK= | |
a0b9e27f | 18059 | for ac_func in nanosleep |
4f14bcd8 | 18060 | do |
a0b9e27f | 18061 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
ac0c4cc3 | 18062 | echo "configure:18063: checking for $ac_func" >&5 |
a0b9e27f MB |
18063 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18064 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18065 | else | |
18066 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 18067 | #line 18068 "configure" |
10f2d63a | 18068 | #include "confdefs.h" |
4f14bcd8 | 18069 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18070 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 18071 | #include <assert.h> |
10f2d63a VZ |
18072 | /* Override any gcc2 internal prototype to avoid an error. */ |
18073 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18074 | builtin and then its argument prototype would still apply. */ |
18075 | char $ac_func(); | |
18076 | ||
18077 | int main() { | |
18078 | ||
4f14bcd8 GD |
18079 | /* The GNU C library defines this for functions which it implements |
18080 | to always fail with ENOSYS. Some functions are actually named | |
18081 | something starting with __ and the normal name is an alias. */ | |
18082 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18083 | choke me | |
18084 | #else | |
a0b9e27f | 18085 | $ac_func(); |
4f14bcd8 GD |
18086 | #endif |
18087 | ||
a0b9e27f MB |
18088 | ; return 0; } |
18089 | EOF | |
ac0c4cc3 | 18090 | if { (eval echo configure:18091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18091 | rm -rf conftest* |
18092 | eval "ac_cv_func_$ac_func=yes" | |
18093 | else | |
18094 | echo "configure: failed program was:" >&5 | |
18095 | cat conftest.$ac_ext >&5 | |
18096 | rm -rf conftest* | |
18097 | eval "ac_cv_func_$ac_func=no" | |
18098 | fi | |
18099 | rm -f conftest* | |
18100 | fi | |
18101 | ||
18102 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18103 | echo "$ac_t""yes" 1>&6 | |
18104 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18105 | cat >> confdefs.h <<EOF | |
18106 | #define $ac_tr_func 1 | |
18107 | EOF | |
18108 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18109 | #define HAVE_NANOSLEEP 1 |
a0b9e27f | 18110 | EOF |
4f14bcd8 | 18111 | |
10f2d63a | 18112 | else |
a0b9e27f MB |
18113 | echo "$ac_t""no" 1>&6 |
18114 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
ac0c4cc3 | 18115 | echo "configure:18116: checking for nanosleep in -lposix4" >&5 |
a0b9e27f MB |
18116 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
18117 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18118 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 18119 | else |
a0b9e27f | 18120 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18121 | LIBS="-lposix4 $LIBS" |
a0b9e27f | 18122 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 18123 | #line 18124 "configure" |
10f2d63a VZ |
18124 | #include "confdefs.h" |
18125 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18126 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18127 | builtin and then its argument prototype would still apply. */ |
18128 | char nanosleep(); | |
18129 | ||
18130 | int main() { | |
18131 | nanosleep() | |
18132 | ; return 0; } | |
18133 | EOF | |
ac0c4cc3 | 18134 | if { (eval echo configure:18135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18135 | rm -rf conftest* |
18136 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18137 | else | |
18138 | echo "configure: failed program was:" >&5 | |
18139 | cat conftest.$ac_ext >&5 | |
18140 | rm -rf conftest* | |
18141 | eval "ac_cv_lib_$ac_lib_var=no" | |
18142 | fi | |
18143 | rm -f conftest* | |
18144 | LIBS="$ac_save_LIBS" | |
18145 | ||
18146 | fi | |
18147 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18148 | echo "$ac_t""yes" 1>&6 | |
18149 | ||
18150 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18151 | #define HAVE_NANOSLEEP 1 |
a0b9e27f | 18152 | EOF |
4f14bcd8 | 18153 | |
3d63bc3a | 18154 | POSIX4_LINK=" -lposix4" |
a0b9e27f | 18155 | |
10f2d63a | 18156 | else |
a0b9e27f | 18157 | echo "$ac_t""no" 1>&6 |
10f2d63a | 18158 | |
a0b9e27f | 18159 | for ac_func in usleep |
4f14bcd8 | 18160 | do |
a0b9e27f | 18161 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
ac0c4cc3 | 18162 | echo "configure:18163: checking for $ac_func" >&5 |
a0b9e27f MB |
18163 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18164 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18165 | else | |
18166 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 18167 | #line 18168 "configure" |
10f2d63a | 18168 | #include "confdefs.h" |
4f14bcd8 | 18169 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18170 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
18171 | #include <assert.h> |
18172 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18173 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18174 | builtin and then its argument prototype would still apply. */ |
18175 | char $ac_func(); | |
18176 | ||
18177 | int main() { | |
18178 | ||
4f14bcd8 GD |
18179 | /* The GNU C library defines this for functions which it implements |
18180 | to always fail with ENOSYS. Some functions are actually named | |
18181 | something starting with __ and the normal name is an alias. */ | |
18182 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18183 | choke me | |
18184 | #else | |
a0b9e27f | 18185 | $ac_func(); |
4f14bcd8 GD |
18186 | #endif |
18187 | ||
a0b9e27f MB |
18188 | ; return 0; } |
18189 | EOF | |
ac0c4cc3 | 18190 | if { (eval echo configure:18191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18191 | rm -rf conftest* |
18192 | eval "ac_cv_func_$ac_func=yes" | |
18193 | else | |
18194 | echo "configure: failed program was:" >&5 | |
18195 | cat conftest.$ac_ext >&5 | |
18196 | rm -rf conftest* | |
18197 | eval "ac_cv_func_$ac_func=no" | |
18198 | fi | |
18199 | rm -f conftest* | |
18200 | fi | |
18201 | ||
18202 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18203 | echo "$ac_t""yes" 1>&6 | |
18204 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18205 | cat >> confdefs.h <<EOF | |
18206 | #define $ac_tr_func 1 | |
18207 | EOF | |
18208 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18209 | #define HAVE_USLEEP 1 |
a0b9e27f | 18210 | EOF |
4f14bcd8 | 18211 | |
698dcdb6 | 18212 | else |
a0b9e27f MB |
18213 | echo "$ac_t""no" 1>&6 |
18214 | echo "configure: warning: wxSleep() function will not work" 1>&2 | |
18215 | ||
10f2d63a | 18216 | fi |
4f14bcd8 | 18217 | done |
10f2d63a | 18218 | |
a0b9e27f MB |
18219 | |
18220 | ||
6232543b | 18221 | fi |
10f2d63a | 18222 | |
a0b9e27f MB |
18223 | |
18224 | ||
1e487827 | 18225 | fi |
4f14bcd8 | 18226 | done |
703e0a69 | 18227 | |
10f2d63a VZ |
18228 | fi |
18229 | ||
4f14bcd8 | 18230 | for ac_func in uname gethostname |
70846f0a | 18231 | do |
a0b9e27f | 18232 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
ac0c4cc3 | 18233 | echo "configure:18234: checking for $ac_func" >&5 |
a0b9e27f MB |
18234 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18235 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18236 | else | |
18237 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 18238 | #line 18239 "configure" |
70846f0a VZ |
18239 | #include "confdefs.h" |
18240 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 18241 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
18242 | #include <assert.h> |
18243 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18244 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18245 | builtin and then its argument prototype would still apply. */ |
18246 | char $ac_func(); | |
18247 | ||
18248 | int main() { | |
18249 | ||
70846f0a VZ |
18250 | /* The GNU C library defines this for functions which it implements |
18251 | to always fail with ENOSYS. Some functions are actually named | |
18252 | something starting with __ and the normal name is an alias. */ | |
18253 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18254 | choke me | |
18255 | #else | |
a0b9e27f | 18256 | $ac_func(); |
70846f0a VZ |
18257 | #endif |
18258 | ||
a0b9e27f MB |
18259 | ; return 0; } |
18260 | EOF | |
ac0c4cc3 | 18261 | if { (eval echo configure:18262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18262 | rm -rf conftest* |
18263 | eval "ac_cv_func_$ac_func=yes" | |
18264 | else | |
18265 | echo "configure: failed program was:" >&5 | |
18266 | cat conftest.$ac_ext >&5 | |
18267 | rm -rf conftest* | |
18268 | eval "ac_cv_func_$ac_func=no" | |
18269 | fi | |
18270 | rm -f conftest* | |
18271 | fi | |
18272 | ||
18273 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18274 | echo "$ac_t""yes" 1>&6 | |
18275 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18276 | cat >> confdefs.h <<EOF | |
18277 | #define $ac_tr_func 1 | |
18278 | EOF | |
4f14bcd8 | 18279 | break |
a0b9e27f MB |
18280 | else |
18281 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
18282 | fi |
18283 | done | |
18284 | ||
8284b0c5 MB |
18285 | |
18286 | ||
a0b9e27f MB |
18287 | ac_ext=C |
18288 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 18289 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
18290 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18291 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18292 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 18293 | |
4f14bcd8 GD |
18294 | |
18295 | for ac_func in strtok_r | |
10f2d63a | 18296 | do |
a0b9e27f | 18297 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
ac0c4cc3 | 18298 | echo "configure:18299: checking for $ac_func" >&5 |
a0b9e27f MB |
18299 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18300 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18301 | else | |
18302 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 18303 | #line 18304 "configure" |
10f2d63a | 18304 | #include "confdefs.h" |
4f14bcd8 | 18305 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18306 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
18307 | #include <assert.h> |
18308 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18309 | #ifdef __cplusplus | |
18310 | extern "C" | |
18311 | #endif | |
18312 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18313 | builtin and then its argument prototype would still apply. */ |
18314 | char $ac_func(); | |
18315 | ||
18316 | int main() { | |
18317 | ||
4f14bcd8 GD |
18318 | /* The GNU C library defines this for functions which it implements |
18319 | to always fail with ENOSYS. Some functions are actually named | |
18320 | something starting with __ and the normal name is an alias. */ | |
18321 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18322 | choke me | |
18323 | #else | |
a0b9e27f | 18324 | $ac_func(); |
4f14bcd8 GD |
18325 | #endif |
18326 | ||
a0b9e27f MB |
18327 | ; return 0; } |
18328 | EOF | |
ac0c4cc3 | 18329 | if { (eval echo configure:18330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18330 | rm -rf conftest* |
18331 | eval "ac_cv_func_$ac_func=yes" | |
18332 | else | |
18333 | echo "configure: failed program was:" >&5 | |
18334 | cat conftest.$ac_ext >&5 | |
18335 | rm -rf conftest* | |
18336 | eval "ac_cv_func_$ac_func=no" | |
18337 | fi | |
18338 | rm -f conftest* | |
18339 | fi | |
4f14bcd8 | 18340 | |
a0b9e27f MB |
18341 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18342 | echo "$ac_t""yes" 1>&6 | |
18343 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18344 | cat >> confdefs.h <<EOF | |
18345 | #define $ac_tr_func 1 | |
18346 | EOF | |
18347 | ||
18348 | else | |
18349 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
18350 | fi |
18351 | done | |
18352 | ||
8284b0c5 | 18353 | |
4f14bcd8 | 18354 | ac_ext=c |
a0b9e27f | 18355 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 18356 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
18357 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18358 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18359 | cross_compiling=$ac_cv_prog_cc_cross | |
7b4a847f | 18360 | |
5c6fa7d2 | 18361 | |
8284b0c5 | 18362 | INET_LINK= |
4f14bcd8 GD |
18363 | for ac_func in inet_addr |
18364 | do | |
a0b9e27f | 18365 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
ac0c4cc3 | 18366 | echo "configure:18367: checking for $ac_func" >&5 |
a0b9e27f MB |
18367 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18368 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18369 | else | |
18370 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 18371 | #line 18372 "configure" |
10f2d63a | 18372 | #include "confdefs.h" |
4f14bcd8 | 18373 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18374 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 18375 | #include <assert.h> |
10f2d63a VZ |
18376 | /* Override any gcc2 internal prototype to avoid an error. */ |
18377 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18378 | builtin and then its argument prototype would still apply. */ |
18379 | char $ac_func(); | |
18380 | ||
18381 | int main() { | |
18382 | ||
4f14bcd8 GD |
18383 | /* The GNU C library defines this for functions which it implements |
18384 | to always fail with ENOSYS. Some functions are actually named | |
18385 | something starting with __ and the normal name is an alias. */ | |
18386 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18387 | choke me | |
18388 | #else | |
a0b9e27f | 18389 | $ac_func(); |
4f14bcd8 GD |
18390 | #endif |
18391 | ||
a0b9e27f MB |
18392 | ; return 0; } |
18393 | EOF | |
ac0c4cc3 | 18394 | if { (eval echo configure:18395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18395 | rm -rf conftest* |
18396 | eval "ac_cv_func_$ac_func=yes" | |
18397 | else | |
18398 | echo "configure: failed program was:" >&5 | |
18399 | cat conftest.$ac_ext >&5 | |
18400 | rm -rf conftest* | |
18401 | eval "ac_cv_func_$ac_func=no" | |
18402 | fi | |
18403 | rm -f conftest* | |
18404 | fi | |
18405 | ||
18406 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18407 | echo "$ac_t""yes" 1>&6 | |
18408 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18409 | cat >> confdefs.h <<EOF | |
18410 | #define $ac_tr_func 1 | |
18411 | EOF | |
18412 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18413 | #define HAVE_INET_ADDR 1 |
a0b9e27f | 18414 | EOF |
10f2d63a VZ |
18415 | |
18416 | else | |
a0b9e27f MB |
18417 | echo "$ac_t""no" 1>&6 |
18418 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 | |
ac0c4cc3 | 18419 | echo "configure:18420: checking for inet_addr in -lnsl" >&5 |
a0b9e27f MB |
18420 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
18421 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18422 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 18423 | else |
a0b9e27f | 18424 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18425 | LIBS="-lnsl $LIBS" |
a0b9e27f | 18426 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 18427 | #line 18428 "configure" |
10f2d63a VZ |
18428 | #include "confdefs.h" |
18429 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18430 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18431 | builtin and then its argument prototype would still apply. */ |
18432 | char inet_addr(); | |
18433 | ||
18434 | int main() { | |
18435 | inet_addr() | |
18436 | ; return 0; } | |
18437 | EOF | |
ac0c4cc3 | 18438 | if { (eval echo configure:18439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18439 | rm -rf conftest* |
18440 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18441 | else | |
18442 | echo "configure: failed program was:" >&5 | |
18443 | cat conftest.$ac_ext >&5 | |
18444 | rm -rf conftest* | |
18445 | eval "ac_cv_lib_$ac_lib_var=no" | |
18446 | fi | |
18447 | rm -f conftest* | |
18448 | LIBS="$ac_save_LIBS" | |
18449 | ||
18450 | fi | |
18451 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18452 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 18453 | INET_LINK="nsl" |
10f2d63a | 18454 | else |
a0b9e27f MB |
18455 | echo "$ac_t""no" 1>&6 |
18456 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 | |
ac0c4cc3 | 18457 | echo "configure:18458: checking for inet_addr in -lresolv" >&5 |
a0b9e27f MB |
18458 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
18459 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18460 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 18461 | else |
a0b9e27f | 18462 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18463 | LIBS="-lresolv $LIBS" |
a0b9e27f | 18464 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 18465 | #line 18466 "configure" |
7b4a847f | 18466 | #include "confdefs.h" |
5c6fa7d2 | 18467 | /* Override any gcc2 internal prototype to avoid an error. */ |
5c6fa7d2 | 18468 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
18469 | builtin and then its argument prototype would still apply. */ |
18470 | char inet_addr(); | |
18471 | ||
18472 | int main() { | |
18473 | inet_addr() | |
18474 | ; return 0; } | |
18475 | EOF | |
ac0c4cc3 | 18476 | if { (eval echo configure:18477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18477 | rm -rf conftest* |
18478 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18479 | else | |
18480 | echo "configure: failed program was:" >&5 | |
18481 | cat conftest.$ac_ext >&5 | |
18482 | rm -rf conftest* | |
18483 | eval "ac_cv_lib_$ac_lib_var=no" | |
18484 | fi | |
18485 | rm -f conftest* | |
18486 | LIBS="$ac_save_LIBS" | |
18487 | ||
18488 | fi | |
18489 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18490 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 18491 | INET_LINK="resolv" |
698dcdb6 | 18492 | else |
a0b9e27f MB |
18493 | echo "$ac_t""no" 1>&6 |
18494 | echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6 | |
ac0c4cc3 | 18495 | echo "configure:18496: checking for inet_addr in -lsocket" >&5 |
a0b9e27f MB |
18496 | ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'` |
18497 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18498 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3c011993 | 18499 | else |
a0b9e27f | 18500 | ac_save_LIBS="$LIBS" |
3c011993 | 18501 | LIBS="-lsocket $LIBS" |
a0b9e27f | 18502 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 18503 | #line 18504 "configure" |
3c011993 VZ |
18504 | #include "confdefs.h" |
18505 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18506 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18507 | builtin and then its argument prototype would still apply. */ |
18508 | char inet_addr(); | |
4f14bcd8 | 18509 | |
a0b9e27f MB |
18510 | int main() { |
18511 | inet_addr() | |
18512 | ; return 0; } | |
18513 | EOF | |
ac0c4cc3 | 18514 | if { (eval echo configure:18515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18515 | rm -rf conftest* |
18516 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18517 | else | |
18518 | echo "configure: failed program was:" >&5 | |
18519 | cat conftest.$ac_ext >&5 | |
18520 | rm -rf conftest* | |
18521 | eval "ac_cv_lib_$ac_lib_var=no" | |
8284b0c5 | 18522 | fi |
a0b9e27f MB |
18523 | rm -f conftest* |
18524 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 18525 | |
7b4a847f | 18526 | fi |
a0b9e27f MB |
18527 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
18528 | echo "$ac_t""yes" 1>&6 | |
18529 | INET_LINK="socket" | |
18530 | ||
18531 | else | |
18532 | echo "$ac_t""no" 1>&6 | |
18533 | fi | |
579d8138 | 18534 | |
a0b9e27f | 18535 | |
5c6fa7d2 | 18536 | fi |
52127426 | 18537 | |
a0b9e27f MB |
18538 | |
18539 | fi | |
247f5006 | 18540 | |
a0b9e27f | 18541 | |
8284b0c5 | 18542 | |
698dcdb6 | 18543 | fi |
4f14bcd8 GD |
18544 | done |
18545 | ||
8284b0c5 | 18546 | |
4f14bcd8 GD |
18547 | for ac_func in inet_aton |
18548 | do | |
a0b9e27f | 18549 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
ac0c4cc3 | 18550 | echo "configure:18551: checking for $ac_func" >&5 |
a0b9e27f MB |
18551 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18552 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18553 | else | |
18554 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 18555 | #line 18556 "configure" |
f6bcfd97 | 18556 | #include "confdefs.h" |
4f14bcd8 | 18557 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18558 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 18559 | #include <assert.h> |
f6bcfd97 BP |
18560 | /* Override any gcc2 internal prototype to avoid an error. */ |
18561 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18562 | builtin and then its argument prototype would still apply. */ |
18563 | char $ac_func(); | |
18564 | ||
18565 | int main() { | |
18566 | ||
4f14bcd8 GD |
18567 | /* The GNU C library defines this for functions which it implements |
18568 | to always fail with ENOSYS. Some functions are actually named | |
18569 | something starting with __ and the normal name is an alias. */ | |
18570 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18571 | choke me | |
18572 | #else | |
a0b9e27f | 18573 | $ac_func(); |
4f14bcd8 GD |
18574 | #endif |
18575 | ||
a0b9e27f MB |
18576 | ; return 0; } |
18577 | EOF | |
ac0c4cc3 | 18578 | if { (eval echo configure:18579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18579 | rm -rf conftest* |
18580 | eval "ac_cv_func_$ac_func=yes" | |
18581 | else | |
18582 | echo "configure: failed program was:" >&5 | |
18583 | cat conftest.$ac_ext >&5 | |
18584 | rm -rf conftest* | |
18585 | eval "ac_cv_func_$ac_func=no" | |
18586 | fi | |
18587 | rm -f conftest* | |
18588 | fi | |
18589 | ||
18590 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18591 | echo "$ac_t""yes" 1>&6 | |
18592 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18593 | cat >> confdefs.h <<EOF | |
18594 | #define $ac_tr_func 1 | |
18595 | EOF | |
18596 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18597 | #define HAVE_INET_ATON 1 |
a0b9e27f | 18598 | EOF |
4f14bcd8 | 18599 | |
10f2d63a | 18600 | else |
a0b9e27f MB |
18601 | echo "$ac_t""no" 1>&6 |
18602 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 | |
ac0c4cc3 | 18603 | echo "configure:18604: checking for inet_aton in -l$INET_LINK" >&5 |
a0b9e27f MB |
18604 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
18605 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18606 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 18607 | else |
a0b9e27f | 18608 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18609 | LIBS="-l$INET_LINK $LIBS" |
a0b9e27f | 18610 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 18611 | #line 18612 "configure" |
10f2d63a | 18612 | #include "confdefs.h" |
6232543b | 18613 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 18614 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
18615 | builtin and then its argument prototype would still apply. */ |
18616 | char inet_aton(); | |
18617 | ||
18618 | int main() { | |
18619 | inet_aton() | |
18620 | ; return 0; } | |
18621 | EOF | |
ac0c4cc3 | 18622 | if { (eval echo configure:18623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18623 | rm -rf conftest* |
18624 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18625 | else | |
18626 | echo "configure: failed program was:" >&5 | |
18627 | cat conftest.$ac_ext >&5 | |
18628 | rm -rf conftest* | |
18629 | eval "ac_cv_lib_$ac_lib_var=no" | |
18630 | fi | |
18631 | rm -f conftest* | |
18632 | LIBS="$ac_save_LIBS" | |
4f14bcd8 | 18633 | |
10f2d63a | 18634 | fi |
a0b9e27f MB |
18635 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
18636 | echo "$ac_t""yes" 1>&6 | |
18637 | cat >> confdefs.h <<\EOF | |
18638 | #define HAVE_INET_ATON 1 | |
18639 | EOF | |
10f2d63a | 18640 | |
a0b9e27f MB |
18641 | else |
18642 | echo "$ac_t""no" 1>&6 | |
18643 | fi | |
247f5006 | 18644 | |
a0b9e27f | 18645 | |
10f2d63a | 18646 | fi |
4f14bcd8 | 18647 | done |
10f2d63a | 18648 | |
8284b0c5 | 18649 | |
4f14bcd8 | 18650 | if test "x$INET_LINK" != "x"; then |
a0b9e27f | 18651 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18652 | #define HAVE_INET_ADDR 1 |
a0b9e27f | 18653 | EOF |
4f14bcd8 | 18654 | |
3d63bc3a | 18655 | INET_LINK=" -l$INET_LINK" |
6232543b | 18656 | fi |
10f2d63a | 18657 | |
1e487827 | 18658 | fi |
703e0a69 | 18659 | |
8284b0c5 | 18660 | |
a0b9e27f | 18661 | cat > confcache <<\EOF |
4f14bcd8 GD |
18662 | # This file is a shell script that caches the results of configure |
18663 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
18664 | # scripts and configure runs. It is not useful on other systems. |
18665 | # If it contains results you don't want to keep, you may remove or edit it. | |
4f14bcd8 | 18666 | # |
a0b9e27f MB |
18667 | # By default, configure uses ./config.cache as the cache file, |
18668 | # creating it if it does not exist already. You can give configure | |
18669 | # the --cache-file=FILE option to use a different cache file; that is | |
18670 | # what configure does when it calls configure scripts in | |
18671 | # subdirectories, so they share the cache. | |
18672 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
18673 | # config.status only pays attention to the cache file if you give it the | |
18674 | # --recheck option to rerun configure. | |
4f14bcd8 | 18675 | # |
a0b9e27f | 18676 | EOF |
4f14bcd8 GD |
18677 | # The following way of writing the cache mishandles newlines in values, |
18678 | # but we know of no workaround that is simple, portable, and efficient. | |
18679 | # So, don't put newlines in cache variables' values. | |
18680 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
18681 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
18682 | (set) 2>&1 | |
18683 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
18684 | *ac_space=\ *) | |
18685 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
18686 | # turns \\\\ into \\, and sed turns \\ into \). | |
18687 | sed -n \ | |
18688 | -e "s/'/'\\\\''/g" \ | |
18689 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
18690 | ;; | |
18691 | *) | |
18692 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
18693 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
18694 | ;; | |
18695 | esac >> confcache | |
18696 | if cmp -s $cache_file confcache; then | |
18697 | : | |
18698 | else | |
4f14bcd8 | 18699 | if test -w $cache_file; then |
a0b9e27f MB |
18700 | echo "updating cache $cache_file" |
18701 | cat confcache > $cache_file | |
f6bcfd97 | 18702 | else |
4f14bcd8 | 18703 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 18704 | fi |
4f14bcd8 GD |
18705 | fi |
18706 | rm -f confcache | |
f6bcfd97 | 18707 | |
8284b0c5 | 18708 | |
a0b9e27f | 18709 | |
009fead0 | 18710 | CPP_MT_FLAG= |
4f14bcd8 GD |
18711 | if test "$TOOLKIT" != "MSW"; then |
18712 | ||
a0b9e27f | 18713 | |
7274f1c7 | 18714 | THREADS_LINK= |
009fead0 | 18715 | THREADS_CFLAGS= |
7274f1c7 RL |
18716 | |
18717 | if test "$wxUSE_THREADS" = "yes" ; then | |
89e6bf6d | 18718 | if test "$USE_BEOS" = 1; then |
a0b9e27f | 18719 | echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2 |
7274f1c7 RL |
18720 | wxUSE_THREADS="no" |
18721 | fi | |
4f14bcd8 | 18722 | fi |
4f14bcd8 | 18723 | |
7274f1c7 | 18724 | if test "$wxUSE_THREADS" = "yes" ; then |
a0b9e27f MB |
18725 | |
18726 | ||
009fead0 VZ |
18727 | THREAD_OPTS="-pthread" |
18728 | case "${host}" in | |
18729 | *-*-solaris2* | *-*-sunos4* ) | |
18730 | if test "x$GCC" = "xyes"; then | |
126be6b4 | 18731 | THREAD_OPTS="-pthreads $THREAD_OPTS" |
009fead0 VZ |
18732 | else |
18733 | THREAD_OPTS="-mt $THREAD_OPTS" | |
18734 | fi | |
18735 | ;; | |
18736 | *-*-freebsd*) | |
18737 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
18738 | ;; | |
17234b26 MB |
18739 | *-*-darwin* | *-*-cygwin* ) |
18740 | THREAD_OPTS="" | |
4101db81 | 18741 | ;; |
8f4a9a10 | 18742 | *-*-aix*) |
009fead0 VZ |
18743 | THREAD_OPTS="pthreads" |
18744 | ;; | |
4f5a7f74 VZ |
18745 | *-hp-hpux* ) |
18746 | if test "x$GCC" != "xyes"; then | |
18747 | THREAD_OPTS="" | |
18748 | fi | |
009fead0 | 18749 | esac |
4f14bcd8 | 18750 | |
02a1dfba | 18751 | THREAD_OPTS="$THREAD_OPTS pthread none" |
595e0e44 | 18752 | |
009fead0 VZ |
18753 | THREADS_OK=no |
18754 | for flag in $THREAD_OPTS; do | |
18755 | case $flag in | |
18756 | none) | |
a0b9e27f | 18757 | echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6 |
ac0c4cc3 | 18758 | echo "configure:18759: checking whether pthreads work without any flags" >&5 |
009fead0 | 18759 | ;; |
698dcdb6 | 18760 | |
009fead0 | 18761 | -*) |
a0b9e27f | 18762 | echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6 |
ac0c4cc3 | 18763 | echo "configure:18764: checking whether pthreads work with $flag" >&5 |
009fead0 VZ |
18764 | THREADS_CFLAGS="$flag" |
18765 | ;; | |
698dcdb6 | 18766 | |
009fead0 | 18767 | *) |
a0b9e27f | 18768 | echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6 |
ac0c4cc3 | 18769 | echo "configure:18770: checking for the pthreads library -l$flag" >&5 |
009fead0 VZ |
18770 | THREADS_LINK="-l$flag" |
18771 | ;; | |
18772 | esac | |
10f2d63a | 18773 | |
009fead0 VZ |
18774 | save_LIBS="$LIBS" |
18775 | save_CFLAGS="$CFLAGS" | |
18776 | LIBS="$THREADS_LINK $LIBS" | |
04727afd | 18777 | CFLAGS="$THREADS_CFLAGS $CFLAGS" |
10f2d63a | 18778 | |
a0b9e27f | 18779 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 18780 | #line 18781 "configure" |
009fead0 VZ |
18781 | #include "confdefs.h" |
18782 | #include <pthread.h> | |
a0b9e27f | 18783 | int main() { |
009fead0 | 18784 | pthread_create(0,0,0,0); |
a0b9e27f MB |
18785 | ; return 0; } |
18786 | EOF | |
ac0c4cc3 | 18787 | if { (eval echo configure:18788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 18788 | rm -rf conftest* |
009fead0 | 18789 | THREADS_OK=yes |
10f2d63a | 18790 | else |
a0b9e27f MB |
18791 | echo "configure: failed program was:" >&5 |
18792 | cat conftest.$ac_ext >&5 | |
6232543b | 18793 | fi |
a0b9e27f | 18794 | rm -f conftest* |
698dcdb6 | 18795 | |
009fead0 VZ |
18796 | LIBS="$save_LIBS" |
18797 | CFLAGS="$save_CFLAGS" | |
d9b9876f | 18798 | |
a0b9e27f | 18799 | echo "$ac_t""$THREADS_OK" 1>&6 |
009fead0 VZ |
18800 | if test "x$THREADS_OK" = "xyes"; then |
18801 | break; | |
18802 | fi | |
d9b9876f | 18803 | |
009fead0 VZ |
18804 | THREADS_LINK="" |
18805 | THREADS_CFLAGS="" | |
18806 | done | |
4f14bcd8 | 18807 | |
009fead0 VZ |
18808 | if test "x$THREADS_OK" != "xyes"; then |
18809 | wxUSE_THREADS=no | |
a0b9e27f | 18810 | echo "configure: warning: No thread support on this system... disabled" 1>&2 |
009fead0 | 18811 | else |
db82f09e VZ |
18812 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" |
18813 | LIBS="$THREADS_LINK $LIBS" | |
fe5a9cab | 18814 | |
a0b9e27f | 18815 | echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6 |
ac0c4cc3 | 18816 | echo "configure:18817: checking if more special flags are required for pthreads" >&5 |
009fead0 VZ |
18817 | flag=no |
18818 | case "${host}" in | |
2b5f62a0 VZ |
18819 | *-aix*) |
18820 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
18821 | flag="-D_THREAD_SAFE" | |
18822 | ;; | |
18823 | *-freebsd*) | |
009fead0 VZ |
18824 | flag="-D_THREAD_SAFE" |
18825 | ;; | |
06313569 GD |
18826 | *-hp-hpux* ) |
18827 | flag="-D_REENTRANT" | |
4f5a7f74 VZ |
18828 | if test "x$GCC" != "xyes"; then |
18829 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
18830 | fi | |
06313569 | 18831 | ;; |
009fead0 VZ |
18832 | *solaris* | alpha*-osf*) |
18833 | flag="-D_REENTRANT" | |
18834 | ;; | |
18835 | esac | |
a0b9e27f | 18836 | echo "$ac_t""${flag}" 1>&6 |
009fead0 | 18837 | if test "x$flag" != xno; then |
04727afd | 18838 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" |
009fead0 VZ |
18839 | fi |
18840 | ||
009fead0 | 18841 | if test "x$THREADS_CFLAGS" != "x"; then |
04727afd | 18842 | CFLAGS="$CFLAGS $THREADS_CFLAGS" |
009fead0 VZ |
18843 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" |
18844 | fi | |
18845 | fi | |
4f14bcd8 | 18846 | fi |
4f14bcd8 | 18847 | |
7274f1c7 | 18848 | if test "$wxUSE_THREADS" = "yes" ; then |
a0b9e27f | 18849 | for ac_func in thr_setconcurrency |
4f14bcd8 | 18850 | do |
a0b9e27f | 18851 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
ac0c4cc3 | 18852 | echo "configure:18853: checking for $ac_func" >&5 |
a0b9e27f MB |
18853 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18854 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18855 | else | |
18856 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 18857 | #line 18858 "configure" |
d9b9876f | 18858 | #include "confdefs.h" |
4f14bcd8 | 18859 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18860 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
18861 | #include <assert.h> |
18862 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18863 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18864 | builtin and then its argument prototype would still apply. */ |
18865 | char $ac_func(); | |
18866 | ||
18867 | int main() { | |
18868 | ||
4f14bcd8 GD |
18869 | /* The GNU C library defines this for functions which it implements |
18870 | to always fail with ENOSYS. Some functions are actually named | |
18871 | something starting with __ and the normal name is an alias. */ | |
18872 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18873 | choke me | |
18874 | #else | |
a0b9e27f | 18875 | $ac_func(); |
4f14bcd8 GD |
18876 | #endif |
18877 | ||
a0b9e27f MB |
18878 | ; return 0; } |
18879 | EOF | |
ac0c4cc3 | 18880 | if { (eval echo configure:18881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18881 | rm -rf conftest* |
18882 | eval "ac_cv_func_$ac_func=yes" | |
18883 | else | |
18884 | echo "configure: failed program was:" >&5 | |
18885 | cat conftest.$ac_ext >&5 | |
18886 | rm -rf conftest* | |
18887 | eval "ac_cv_func_$ac_func=no" | |
18888 | fi | |
18889 | rm -f conftest* | |
18890 | fi | |
698dcdb6 | 18891 | |
a0b9e27f MB |
18892 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18893 | echo "$ac_t""yes" 1>&6 | |
18894 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18895 | cat >> confdefs.h <<EOF | |
18896 | #define $ac_tr_func 1 | |
18897 | EOF | |
18898 | ||
18899 | else | |
18900 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 18901 | fi |
4f14bcd8 | 18902 | done |
10f2d63a | 18903 | |
8284b0c5 | 18904 | |
a0b9e27f | 18905 | for ac_hdr in sched.h |
4f14bcd8 | 18906 | do |
a0b9e27f MB |
18907 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
18908 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
ac0c4cc3 | 18909 | echo "configure:18910: checking for $ac_hdr" >&5 |
a0b9e27f MB |
18910 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
18911 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18912 | else | |
18913 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 18914 | #line 18915 "configure" |
247f5006 | 18915 | #include "confdefs.h" |
a0b9e27f MB |
18916 | #include <$ac_hdr> |
18917 | EOF | |
18918 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ac0c4cc3 | 18919 | { (eval echo configure:18920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
18920 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
18921 | if test -z "$ac_err"; then | |
18922 | rm -rf conftest* | |
18923 | eval "ac_cv_header_$ac_safe=yes" | |
18924 | else | |
18925 | echo "$ac_err" >&5 | |
18926 | echo "configure: failed program was:" >&5 | |
4f14bcd8 | 18927 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
18928 | rm -rf conftest* |
18929 | eval "ac_cv_header_$ac_safe=no" | |
13111b2a | 18930 | fi |
a0b9e27f | 18931 | rm -f conftest* |
10f2d63a | 18932 | fi |
a0b9e27f MB |
18933 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
18934 | echo "$ac_t""yes" 1>&6 | |
18935 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
18936 | cat >> confdefs.h <<EOF | |
18937 | #define $ac_tr_hdr 1 | |
18938 | EOF | |
18939 | ||
18940 | else | |
18941 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 | 18942 | fi |
4f14bcd8 | 18943 | done |
f6bcfd97 | 18944 | |
009fead0 | 18945 | if test "$ac_cv_header_sched_h" = "yes"; then |
a0b9e27f | 18946 | echo $ac_n "checking for sched_yield""... $ac_c" 1>&6 |
ac0c4cc3 | 18947 | echo "configure:18948: checking for sched_yield" >&5 |
a0b9e27f MB |
18948 | if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then |
18949 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 18950 | else |
a0b9e27f | 18951 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 18952 | #line 18953 "configure" |
4f14bcd8 | 18953 | #include "confdefs.h" |
009fead0 | 18954 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18955 | which can conflict with char sched_yield(); below. */ |
009fead0 | 18956 | #include <assert.h> |
4f14bcd8 GD |
18957 | /* Override any gcc2 internal prototype to avoid an error. */ |
18958 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18959 | builtin and then its argument prototype would still apply. */ |
18960 | char sched_yield(); | |
18961 | ||
18962 | int main() { | |
18963 | ||
009fead0 VZ |
18964 | /* The GNU C library defines this for functions which it implements |
18965 | to always fail with ENOSYS. Some functions are actually named | |
18966 | something starting with __ and the normal name is an alias. */ | |
18967 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
18968 | choke me | |
18969 | #else | |
a0b9e27f | 18970 | sched_yield(); |
009fead0 VZ |
18971 | #endif |
18972 | ||
a0b9e27f MB |
18973 | ; return 0; } |
18974 | EOF | |
ac0c4cc3 | 18975 | if { (eval echo configure:18976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18976 | rm -rf conftest* |
18977 | eval "ac_cv_func_sched_yield=yes" | |
18978 | else | |
18979 | echo "configure: failed program was:" >&5 | |
18980 | cat conftest.$ac_ext >&5 | |
18981 | rm -rf conftest* | |
18982 | eval "ac_cv_func_sched_yield=no" | |
18983 | fi | |
18984 | rm -f conftest* | |
18985 | fi | |
18986 | ||
18987 | if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then | |
18988 | echo "$ac_t""yes" 1>&6 | |
18989 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18990 | #define HAVE_SCHED_YIELD 1 |
a0b9e27f | 18991 | EOF |
10f2d63a | 18992 | |
4f14bcd8 | 18993 | else |
a0b9e27f | 18994 | echo "$ac_t""no" 1>&6 |
009fead0 | 18995 | |
a0b9e27f | 18996 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 |
ac0c4cc3 | 18997 | echo "configure:18998: checking for sched_yield in -lposix4" >&5 |
a0b9e27f MB |
18998 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
18999 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19000 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 19001 | else |
a0b9e27f | 19002 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 19003 | LIBS="-lposix4 $LIBS" |
a0b9e27f | 19004 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 19005 | #line 19006 "configure" |
4f14bcd8 GD |
19006 | #include "confdefs.h" |
19007 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19008 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19009 | builtin and then its argument prototype would still apply. */ |
19010 | char sched_yield(); | |
19011 | ||
19012 | int main() { | |
19013 | sched_yield() | |
19014 | ; return 0; } | |
19015 | EOF | |
ac0c4cc3 | 19016 | if { (eval echo configure:19017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19017 | rm -rf conftest* |
19018 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19019 | else | |
19020 | echo "configure: failed program was:" >&5 | |
19021 | cat conftest.$ac_ext >&5 | |
19022 | rm -rf conftest* | |
19023 | eval "ac_cv_lib_$ac_lib_var=no" | |
19024 | fi | |
19025 | rm -f conftest* | |
19026 | LIBS="$ac_save_LIBS" | |
19027 | ||
19028 | fi | |
19029 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19030 | echo "$ac_t""yes" 1>&6 | |
19031 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 19032 | #define HAVE_SCHED_YIELD 1 |
a0b9e27f | 19033 | EOF |
3d63bc3a | 19034 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 19035 | else |
a0b9e27f MB |
19036 | echo "$ac_t""no" 1>&6 |
19037 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
19038 | ||
54276ccf VZ |
19039 | fi |
19040 | ||
a0b9e27f MB |
19041 | |
19042 | ||
4f14bcd8 | 19043 | fi |
698dcdb6 | 19044 | |
009fead0 | 19045 | fi |
10f2d63a | 19046 | |
7274f1c7 | 19047 | HAVE_PRIOR_FUNCS=0 |
a0b9e27f | 19048 | echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6 |
ac0c4cc3 | 19049 | echo "configure:19050: checking for pthread_attr_getschedpolicy" >&5 |
a0b9e27f MB |
19050 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then |
19051 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 19052 | else |
a0b9e27f | 19053 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 19054 | #line 19055 "configure" |
422107f9 | 19055 | #include "confdefs.h" |
009fead0 | 19056 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 19057 | which can conflict with char pthread_attr_getschedpolicy(); below. */ |
009fead0 | 19058 | #include <assert.h> |
4f14bcd8 GD |
19059 | /* Override any gcc2 internal prototype to avoid an error. */ |
19060 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19061 | builtin and then its argument prototype would still apply. */ |
19062 | char pthread_attr_getschedpolicy(); | |
19063 | ||
19064 | int main() { | |
19065 | ||
009fead0 VZ |
19066 | /* The GNU C library defines this for functions which it implements |
19067 | to always fail with ENOSYS. Some functions are actually named | |
19068 | something starting with __ and the normal name is an alias. */ | |
19069 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
19070 | choke me | |
19071 | #else | |
a0b9e27f | 19072 | pthread_attr_getschedpolicy(); |
009fead0 VZ |
19073 | #endif |
19074 | ||
a0b9e27f MB |
19075 | ; return 0; } |
19076 | EOF | |
ac0c4cc3 | 19077 | if { (eval echo configure:19078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19078 | rm -rf conftest* |
19079 | eval "ac_cv_func_pthread_attr_getschedpolicy=yes" | |
19080 | else | |
19081 | echo "configure: failed program was:" >&5 | |
19082 | cat conftest.$ac_ext >&5 | |
19083 | rm -rf conftest* | |
19084 | eval "ac_cv_func_pthread_attr_getschedpolicy=no" | |
19085 | fi | |
19086 | rm -f conftest* | |
19087 | fi | |
19088 | ||
19089 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then | |
19090 | echo "$ac_t""yes" 1>&6 | |
19091 | echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6 | |
ac0c4cc3 | 19092 | echo "configure:19093: checking for pthread_attr_setschedparam" >&5 |
a0b9e27f MB |
19093 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then |
19094 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 19095 | else |
a0b9e27f | 19096 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 19097 | #line 19098 "configure" |
a0b9e27f MB |
19098 | #include "confdefs.h" |
19099 | /* System header to define __stub macros and hopefully few prototypes, | |
19100 | which can conflict with char pthread_attr_setschedparam(); below. */ | |
009fead0 | 19101 | #include <assert.h> |
422107f9 VZ |
19102 | /* Override any gcc2 internal prototype to avoid an error. */ |
19103 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19104 | builtin and then its argument prototype would still apply. */ |
19105 | char pthread_attr_setschedparam(); | |
19106 | ||
19107 | int main() { | |
19108 | ||
009fead0 VZ |
19109 | /* The GNU C library defines this for functions which it implements |
19110 | to always fail with ENOSYS. Some functions are actually named | |
19111 | something starting with __ and the normal name is an alias. */ | |
19112 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
19113 | choke me | |
19114 | #else | |
a0b9e27f | 19115 | pthread_attr_setschedparam(); |
009fead0 VZ |
19116 | #endif |
19117 | ||
a0b9e27f MB |
19118 | ; return 0; } |
19119 | EOF | |
ac0c4cc3 | 19120 | if { (eval echo configure:19121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19121 | rm -rf conftest* |
19122 | eval "ac_cv_func_pthread_attr_setschedparam=yes" | |
19123 | else | |
19124 | echo "configure: failed program was:" >&5 | |
19125 | cat conftest.$ac_ext >&5 | |
19126 | rm -rf conftest* | |
19127 | eval "ac_cv_func_pthread_attr_setschedparam=no" | |
19128 | fi | |
19129 | rm -f conftest* | |
19130 | fi | |
19131 | ||
19132 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then | |
19133 | echo "$ac_t""yes" 1>&6 | |
19134 | echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6 | |
ac0c4cc3 | 19135 | echo "configure:19136: checking for sched_get_priority_max" >&5 |
a0b9e27f MB |
19136 | if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then |
19137 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19138 | else | |
19139 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 19140 | #line 19141 "configure" |
422107f9 | 19141 | #include "confdefs.h" |
009fead0 VZ |
19142 | /* System header to define __stub macros and hopefully few prototypes |
19143 | else | |
a0b9e27f MB |
19144 | echo "$ac_t""no" 1>&6 |
19145 | which can conflict with char sched_get_priority_max(); below. */ | |
009fead0 | 19146 | #include <assert.h> |
4f14bcd8 GD |
19147 | /* Override any gcc2 internal prototype to avoid an error. */ |
19148 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19149 | builtin and then its argument prototype would still apply. */ |
19150 | char sched_get_priority_max(); | |
19151 | ||
19152 | int main() { | |
19153 | ||
009fead0 VZ |
19154 | /* The GNU C library defines this for functions which it implements |
19155 | to always fail with ENOSYS. Some functions are actually named | |
19156 | something starting with __ and the normal name is an alias. */ | |
19157 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
19158 | choke me | |
19159 | #else | |
a0b9e27f | 19160 | sched_get_priority_max(); |
009fead0 VZ |
19161 | #endif |
19162 | ||
a0b9e27f MB |
19163 | ; return 0; } |
19164 | EOF | |
ac0c4cc3 | 19165 | if { (eval echo configure:19166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19166 | rm -rf conftest* |
19167 | eval "ac_cv_func_sched_get_priority_max=yes" | |
19168 | else | |
19169 | echo "configure: failed program was:" >&5 | |
19170 | cat conftest.$ac_ext >&5 | |
19171 | rm -rf conftest* | |
19172 | eval "ac_cv_func_sched_get_priority_max=no" | |
19173 | fi | |
19174 | rm -f conftest* | |
19175 | fi | |
19176 | ||
19177 | if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then | |
19178 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
19179 | HAVE_PRIOR_FUNCS=1 |
19180 | else | |
a0b9e27f MB |
19181 | echo "$ac_t""no" 1>&6 |
19182 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
ac0c4cc3 | 19183 | echo "configure:19184: checking for sched_get_priority_max in -lposix4" >&5 |
a0b9e27f MB |
19184 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
19185 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19186 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 19187 | else |
a0b9e27f | 19188 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 19189 | LIBS="-lposix4 $LIBS" |
a0b9e27f | 19190 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 19191 | #line 19192 "configure" |
422107f9 VZ |
19192 | #include "confdefs.h" |
19193 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19194 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19195 | builtin and then its argument prototype would still apply. */ |
19196 | char sched_get_priority_max(); | |
19197 | ||
19198 | int main() { | |
19199 | sched_get_priority_max() | |
19200 | ; return 0; } | |
19201 | EOF | |
ac0c4cc3 | 19202 | if { (eval echo configure:19203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19203 | rm -rf conftest* |
19204 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19205 | else | |
19206 | echo "configure: failed program was:" >&5 | |
19207 | cat conftest.$ac_ext >&5 | |
19208 | rm -rf conftest* | |
19209 | eval "ac_cv_lib_$ac_lib_var=no" | |
19210 | fi | |
19211 | rm -f conftest* | |
19212 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 19213 | |
a0b9e27f MB |
19214 | fi |
19215 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19216 | echo "$ac_t""yes" 1>&6 | |
19217 | ||
7274f1c7 RL |
19218 | HAVE_PRIOR_FUNCS=1 |
19219 | POSIX4_LINK=" -lposix4" | |
a0b9e27f MB |
19220 | |
19221 | else | |
19222 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 19223 | fi |
463abc64 | 19224 | |
a0b9e27f | 19225 | |
328a083c | 19226 | fi |
463abc64 | 19227 | |
a0b9e27f MB |
19228 | |
19229 | else | |
19230 | echo "$ac_t""no" 1>&6 | |
7b4a847f | 19231 | fi |
579d8138 | 19232 | |
a0b9e27f | 19233 | |
5c6fa7d2 | 19234 | fi |
52127426 | 19235 | |
8284b0c5 | 19236 | |
7274f1c7 | 19237 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
a0b9e27f | 19238 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19239 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
a0b9e27f | 19240 | EOF |
463abc64 | 19241 | |
7274f1c7 | 19242 | else |
a0b9e27f | 19243 | echo "configure: warning: Setting thread priority will not work" 1>&2 |
7274f1c7 | 19244 | fi |
463abc64 | 19245 | |
a0b9e27f | 19246 | echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6 |
ac0c4cc3 | 19247 | echo "configure:19248: checking for pthread_cancel" >&5 |
a0b9e27f MB |
19248 | if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then |
19249 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 19250 | else |
a0b9e27f | 19251 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 19252 | #line 19253 "configure" |
422107f9 | 19253 | #include "confdefs.h" |
009fead0 | 19254 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 19255 | which can conflict with char pthread_cancel(); below. */ |
009fead0 | 19256 | #include <assert.h> |
422107f9 VZ |
19257 | /* Override any gcc2 internal prototype to avoid an error. */ |
19258 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19259 | builtin and then its argument prototype would still apply. */ |
19260 | char pthread_cancel(); | |
19261 | ||
19262 | int main() { | |
19263 | ||
009fead0 VZ |
19264 | /* The GNU C library defines this for functions which it implements |
19265 | to always fail with ENOSYS. Some functions are actually named | |
19266 | something starting with __ and the normal name is an alias. */ | |
19267 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
19268 | choke me | |
19269 | #else | |
a0b9e27f | 19270 | pthread_cancel(); |
009fead0 VZ |
19271 | #endif |
19272 | ||
a0b9e27f MB |
19273 | ; return 0; } |
19274 | EOF | |
ac0c4cc3 | 19275 | if { (eval echo configure:19276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19276 | rm -rf conftest* |
19277 | eval "ac_cv_func_pthread_cancel=yes" | |
19278 | else | |
19279 | echo "configure: failed program was:" >&5 | |
19280 | cat conftest.$ac_ext >&5 | |
19281 | rm -rf conftest* | |
19282 | eval "ac_cv_func_pthread_cancel=no" | |
19283 | fi | |
19284 | rm -f conftest* | |
19285 | fi | |
19286 | ||
19287 | if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then | |
19288 | echo "$ac_t""yes" 1>&6 | |
19289 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 19290 | #define HAVE_PTHREAD_CANCEL 1 |
a0b9e27f | 19291 | EOF |
4f14bcd8 | 19292 | |
698dcdb6 | 19293 | else |
a0b9e27f MB |
19294 | echo "$ac_t""no" 1>&6 |
19295 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
422107f9 VZ |
19296 | fi |
19297 | ||
5c6fa7d2 | 19298 | |
a0b9e27f | 19299 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
ac0c4cc3 | 19300 | echo "configure:19301: checking for pthread_cleanup_push/pop" >&5 |
a0b9e27f MB |
19301 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
19302 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 19303 | else |
a0b9e27f MB |
19304 | |
19305 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 19306 | #line 19307 "configure" |
4f14bcd8 GD |
19307 | #include "confdefs.h" |
19308 | #include <pthread.h> | |
a0b9e27f | 19309 | int main() { |
4f14bcd8 | 19310 | |
7274f1c7 RL |
19311 | pthread_cleanup_push(NULL, NULL); |
19312 | pthread_cleanup_pop(0); | |
a0b9e27f MB |
19313 | |
19314 | ; return 0; } | |
19315 | EOF | |
ac0c4cc3 | 19316 | if { (eval echo configure:19317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19317 | rm -rf conftest* |
19318 | ||
7274f1c7 | 19319 | wx_cv_func_pthread_cleanup_push=yes |
a0b9e27f | 19320 | |
4f14bcd8 | 19321 | else |
a0b9e27f MB |
19322 | echo "configure: failed program was:" >&5 |
19323 | cat conftest.$ac_ext >&5 | |
19324 | rm -rf conftest* | |
19325 | ||
7274f1c7 | 19326 | wx_cv_func_pthread_cleanup_push=no |
a0b9e27f | 19327 | |
5c6fa7d2 | 19328 | fi |
a0b9e27f MB |
19329 | rm -f conftest* |
19330 | ||
247f5006 | 19331 | fi |
a0b9e27f MB |
19332 | |
19333 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
4f14bcd8 | 19334 | |
7274f1c7 | 19335 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
a0b9e27f | 19336 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19337 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
a0b9e27f | 19338 | EOF |
c7a2bf27 | 19339 | |
7274f1c7 | 19340 | fi |
4f14bcd8 | 19341 | |
a0b9e27f MB |
19342 | |
19343 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 | |
ac0c4cc3 | 19344 | echo "configure:19345: checking for pthread_mutexattr_t" >&5 |
a0b9e27f MB |
19345 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
19346 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 19347 | else |
a0b9e27f MB |
19348 | |
19349 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 19350 | #line 19351 "configure" |
0dcf9893 | 19351 | #include "confdefs.h" |
4f14bcd8 | 19352 | #include <pthread.h> |
a0b9e27f | 19353 | int main() { |
4f14bcd8 | 19354 | |
7274f1c7 RL |
19355 | pthread_mutexattr_t attr; |
19356 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
a0b9e27f MB |
19357 | |
19358 | ; return 0; } | |
19359 | EOF | |
ac0c4cc3 | 19360 | if { (eval echo configure:19361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19361 | rm -rf conftest* |
19362 | ||
7274f1c7 | 19363 | wx_cv_type_pthread_mutexattr_t=yes |
a0b9e27f | 19364 | |
3fed1840 | 19365 | else |
a0b9e27f MB |
19366 | echo "configure: failed program was:" >&5 |
19367 | cat conftest.$ac_ext >&5 | |
19368 | rm -rf conftest* | |
19369 | ||
7274f1c7 | 19370 | wx_cv_type_pthread_mutexattr_t=no |
a0b9e27f MB |
19371 | |
19372 | ||
5c6fa7d2 | 19373 | fi |
a0b9e27f MB |
19374 | rm -f conftest* |
19375 | ||
247f5006 | 19376 | fi |
a0b9e27f MB |
19377 | |
19378 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
4f14bcd8 | 19379 | |
7274f1c7 | 19380 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
a0b9e27f | 19381 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19382 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
a0b9e27f | 19383 | EOF |
4f14bcd8 | 19384 | |
7274f1c7 | 19385 | else |
a0b9e27f | 19386 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 |
ac0c4cc3 | 19387 | echo "configure:19388: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
a0b9e27f MB |
19388 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
19389 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19390 | else | |
19391 | ||
19392 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 19393 | #line 19394 "configure" |
3fed1840 | 19394 | #include "confdefs.h" |
4f14bcd8 | 19395 | #include <pthread.h> |
a0b9e27f | 19396 | int main() { |
4f14bcd8 | 19397 | |
7274f1c7 | 19398 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
a0b9e27f MB |
19399 | |
19400 | ; return 0; } | |
19401 | EOF | |
ac0c4cc3 | 19402 | if { (eval echo configure:19403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19403 | rm -rf conftest* |
19404 | ||
7274f1c7 | 19405 | wx_cv_type_pthread_rec_mutex_init=yes |
a0b9e27f | 19406 | |
698dcdb6 | 19407 | else |
a0b9e27f MB |
19408 | echo "configure: failed program was:" >&5 |
19409 | cat conftest.$ac_ext >&5 | |
19410 | rm -rf conftest* | |
19411 | ||
7274f1c7 | 19412 | wx_cv_type_pthread_rec_mutex_init=no |
a0b9e27f MB |
19413 | |
19414 | ||
5c6fa7d2 | 19415 | fi |
a0b9e27f MB |
19416 | rm -f conftest* |
19417 | ||
247f5006 | 19418 | fi |
a0b9e27f MB |
19419 | |
19420 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 | |
7274f1c7 | 19421 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
a0b9e27f | 19422 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19423 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
a0b9e27f | 19424 | EOF |
3fed1840 | 19425 | |
7274f1c7 | 19426 | else |
a0b9e27f | 19427 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 |
7274f1c7 RL |
19428 | fi |
19429 | fi | |
7274f1c7 | 19430 | fi |
3fed1840 | 19431 | |
a0b9e27f MB |
19432 | else |
19433 | if test "$wxUSE_THREADS" = "yes" ; then | |
19434 | case "${host}" in | |
19435 | *-*-mingw32* ) | |
ca8e52b3 | 19436 | echo $ac_n "checking if compiler supports -mthreads""... $ac_c" 1>&6 |
ac0c4cc3 | 19437 | echo "configure:19438: checking if compiler supports -mthreads" >&5 |
ca8e52b3 VZ |
19438 | if eval "test \"`echo '$''{'wx_cv_cflags_mthread'+set}'`\" = set"; then |
19439 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19440 | else | |
19441 | ||
19442 | CFLAGS_OLD="$CFLAGS" | |
19443 | CFLAGS="$CFLAGS -mthreads" | |
19444 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 19445 | #line 19446 "configure" |
ca8e52b3 VZ |
19446 | #include "confdefs.h" |
19447 | ||
19448 | int main() { | |
19449 | ||
19450 | ; return 0; } | |
19451 | EOF | |
ac0c4cc3 | 19452 | if { (eval echo configure:19453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
ca8e52b3 VZ |
19453 | rm -rf conftest* |
19454 | wx_cv_cflags_mthread=yes | |
19455 | else | |
19456 | echo "configure: failed program was:" >&5 | |
19457 | cat conftest.$ac_ext >&5 | |
19458 | rm -rf conftest* | |
19459 | wx_cv_cflags_mthread=no | |
19460 | ||
19461 | fi | |
19462 | rm -f conftest* | |
19463 | ||
19464 | ||
19465 | fi | |
19466 | ||
19467 | echo "$ac_t""$wx_cv_cflags_mthread" 1>&6 | |
19468 | ||
19469 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
19470 | CXXFLAGS="$CXXFLAGS -mthreads" | |
19471 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
19472 | LDFLAGS="$LDFLAGS -mthreads" | |
19473 | else | |
19474 | CFLAGS="$CFLAGS_OLD" | |
19475 | fi | |
a0b9e27f MB |
19476 | ;; |
19477 | esac | |
19478 | fi | |
4f14bcd8 GD |
19479 | fi |
19480 | ||
19481 | if test "$wxUSE_THREADS" = "yes"; then | |
a0b9e27f | 19482 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19483 | #define wxUSE_THREADS 1 |
a0b9e27f | 19484 | EOF |
7b6058cd | 19485 | |
8284b0c5 | 19486 | |
4f14bcd8 | 19487 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" |
698dcdb6 | 19488 | else |
4f14bcd8 | 19489 | if test "$ac_cv_func_strtok_r" = "yes"; then |
a0b9e27f | 19490 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 |
ac0c4cc3 | 19491 | echo "configure:19492: checking if -D_REENTRANT is needed" >&5 |
4f14bcd8 GD |
19492 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
19493 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
a0b9e27f | 19494 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 19495 | else |
a0b9e27f | 19496 | echo "$ac_t""no" 1>&6 |
4f14bcd8 GD |
19497 | fi |
19498 | fi | |
19499 | fi | |
19500 | ||
19501 | if test "$WXGTK20" = 1 ; then | |
a0b9e27f | 19502 | cat >> confdefs.h <<EOF |
4f14bcd8 | 19503 | #define __WXGTK20__ $WXGTK20 |
a0b9e27f | 19504 | EOF |
4f14bcd8 GD |
19505 | |
19506 | WXGTK12=1 | |
10f2d63a | 19507 | fi |
4f14bcd8 GD |
19508 | |
19509 | if test "$WXGTK12" = 1 ; then | |
a0b9e27f | 19510 | cat >> confdefs.h <<EOF |
4f14bcd8 | 19511 | #define __WXGTK12__ $WXGTK12 |
a0b9e27f | 19512 | EOF |
4f14bcd8 | 19513 | |
10f2d63a | 19514 | fi |
698dcdb6 | 19515 | |
4f14bcd8 | 19516 | if test "$WXGTK127" = 1 ; then |
a0b9e27f | 19517 | cat >> confdefs.h <<EOF |
4f14bcd8 | 19518 | #define __WXGTK127__ $WXGTK127 |
a0b9e27f | 19519 | EOF |
4f14bcd8 | 19520 | |
698dcdb6 | 19521 | fi |
10f2d63a | 19522 | |
4f14bcd8 GD |
19523 | WXDEBUG= |
19524 | ||
19525 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
19526 | WXDEBUG="-g" | |
19527 | wxUSE_OPTIMISE=no | |
698dcdb6 | 19528 | fi |
4f14bcd8 GD |
19529 | |
19530 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
19531 | wxUSE_DEBUG_INFO=yes | |
19532 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
19533 | fi |
19534 | ||
4f14bcd8 | 19535 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
a0b9e27f | 19536 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19537 | #define WXDEBUG 1 |
a0b9e27f | 19538 | EOF |
4f14bcd8 GD |
19539 | |
19540 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 19541 | else |
4f14bcd8 GD |
19542 | if test "$wxUSE_GTK" = 1 ; then |
19543 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
19544 | fi | |
19545 | fi | |
19546 | ||
19547 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
a0b9e27f | 19548 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19549 | #define wxUSE_MEMORY_TRACING 1 |
a0b9e27f | 19550 | EOF |
4f14bcd8 | 19551 | |
a0b9e27f | 19552 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19553 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 |
a0b9e27f | 19554 | EOF |
4f14bcd8 | 19555 | |
a0b9e27f | 19556 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19557 | #define wxUSE_DEBUG_NEW_ALWAYS 1 |
a0b9e27f | 19558 | EOF |
4f14bcd8 GD |
19559 | |
19560 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
19561 | fi | |
19562 | ||
19563 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 19564 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
19565 | fi |
19566 | ||
19567 | PROFILE= | |
19568 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 19569 | PROFILE=" -pg" |
10f2d63a VZ |
19570 | fi |
19571 | ||
009fead0 VZ |
19572 | CODE_GEN_FLAGS= |
19573 | CODE_GEN_FLAGS_CXX= | |
88e30f2b | 19574 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
19575 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
19576 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 19577 | fi |
4f14bcd8 GD |
19578 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
19579 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
19580 | fi | |
19581 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
19582 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
19583 | fi | |
4f14bcd8 GD |
19584 | if test "$USE_WIN32" = 1 ; then |
19585 | # I'm not even really sure what this was ever added to solve, | |
19586 | # but someone added it for mingw native builds, so I guess | |
19587 | # they had a reason, right?? | |
19588 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return" | |
19589 | fi | |
1d1b75ac | 19590 | |
2b5f62a0 | 19591 | case "${host}" in |
1d1b75ac VZ |
19592 | powerpc*-*-aix* ) |
19593 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
19594 | ;; | |
2b5f62a0 VZ |
19595 | *-hppa* ) |
19596 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
19597 | ;; | |
1d1b75ac | 19598 | esac |
4f14bcd8 GD |
19599 | fi |
19600 | ||
af7b5345 | 19601 | OPTIMISE= |
4f14bcd8 | 19602 | if test "$wxUSE_OPTIMISE" = "no" ; then |
af7b5345 VZ |
19603 | if test "$GCC" = yes ; then |
19604 | OPTIMISE="-O0" | |
19605 | fi | |
4f14bcd8 GD |
19606 | else |
19607 | if test "$GCC" = yes ; then | |
19608 | OPTIMISE="-O2" | |
af7b5345 VZ |
19609 | |
19610 | case "${host}" in | |
4f14bcd8 GD |
19611 | i586-*-*|i686-*-* ) |
19612 | OPTIMISE="${OPTIMISE} " | |
19613 | ;; | |
19614 | esac | |
19615 | else | |
19616 | OPTIMISE="-O" | |
19617 | fi | |
19618 | fi | |
19619 | ||
8d90d2f2 | 19620 | |
4f14bcd8 | 19621 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then |
a0b9e27f | 19622 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19623 | #define WXWIN_COMPATIBILITY_2 1 |
a0b9e27f | 19624 | EOF |
4f14bcd8 | 19625 | |
8284b0c5 | 19626 | |
4f14bcd8 GD |
19627 | WXWIN_COMPATIBILITY_2_2="yes" |
19628 | fi | |
19629 | ||
65d8ef1e | 19630 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then |
a0b9e27f | 19631 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19632 | #define WXWIN_COMPATIBILITY_2_2 1 |
a0b9e27f | 19633 | EOF |
4f14bcd8 | 19634 | |
8d90d2f2 VZ |
19635 | |
19636 | WXWIN_COMPATIBILITY_2_4="yes" | |
10f2d63a VZ |
19637 | fi |
19638 | ||
65d8ef1e VS |
19639 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then |
19640 | cat >> confdefs.h <<\EOF | |
19641 | #define WXWIN_COMPATIBILITY_2_4 1 | |
19642 | EOF | |
19643 | ||
19644 | fi | |
19645 | ||
8284b0c5 | 19646 | |
10f2d63a | 19647 | if test "$wxUSE_GUI" = "yes"; then |
a0b9e27f | 19648 | cat >> confdefs.h <<\EOF |
10f2d63a | 19649 | #define wxUSE_GUI 1 |
a0b9e27f | 19650 | EOF |
10f2d63a | 19651 | |
8284b0c5 | 19652 | |
10f2d63a | 19653 | else |
a0b9e27f | 19654 | cat >> confdefs.h <<\EOF |
10f2d63a | 19655 | #define wxUSE_NOGUI 1 |
a0b9e27f | 19656 | EOF |
10f2d63a VZ |
19657 | |
19658 | fi | |
19659 | ||
8284b0c5 | 19660 | |
10f2d63a | 19661 | if test "$wxUSE_UNIX" = "yes"; then |
a0b9e27f | 19662 | cat >> confdefs.h <<\EOF |
10f2d63a | 19663 | #define wxUSE_UNIX 1 |
a0b9e27f | 19664 | EOF |
10f2d63a VZ |
19665 | |
19666 | fi | |
19667 | ||
8284b0c5 | 19668 | |
10f2d63a | 19669 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
a0b9e27f | 19670 | cat >> confdefs.h <<\EOF |
10f2d63a | 19671 | #define wxUSE_APPLE_IEEE 1 |
a0b9e27f | 19672 | EOF |
10f2d63a VZ |
19673 | |
19674 | fi | |
19675 | ||
1e6feb95 | 19676 | if test "$wxUSE_TIMER" = "yes"; then |
a0b9e27f | 19677 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19678 | #define wxUSE_TIMER 1 |
a0b9e27f | 19679 | EOF |
1e6feb95 VZ |
19680 | |
19681 | fi | |
19682 | ||
10f2d63a | 19683 | if test "$wxUSE_WAVE" = "yes"; then |
a0b9e27f | 19684 | cat >> confdefs.h <<\EOF |
10f2d63a | 19685 | #define wxUSE_WAVE 1 |
a0b9e27f | 19686 | EOF |
10f2d63a VZ |
19687 | |
19688 | fi | |
19689 | ||
1e6feb95 | 19690 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
a0b9e27f | 19691 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19692 | #define wxUSE_CMDLINE_PARSER 1 |
a0b9e27f | 19693 | EOF |
1e6feb95 VZ |
19694 | |
19695 | fi | |
19696 | ||
19697 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
a0b9e27f | 19698 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19699 | #define wxUSE_STOPWATCH 1 |
a0b9e27f | 19700 | EOF |
1e6feb95 VZ |
19701 | |
19702 | fi | |
19703 | ||
19704 | if test "$wxUSE_DATETIME" = "yes"; then | |
a0b9e27f | 19705 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19706 | #define wxUSE_DATETIME 1 |
a0b9e27f | 19707 | EOF |
1e6feb95 VZ |
19708 | |
19709 | fi | |
19710 | ||
19711 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
a0b9e27f | 19712 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19713 | #define wxUSE_TIMEDATE 1 |
a0b9e27f | 19714 | EOF |
1e6feb95 VZ |
19715 | |
19716 | fi | |
19717 | ||
10f2d63a | 19718 | if test "$wxUSE_FILE" = "yes"; then |
a0b9e27f | 19719 | cat >> confdefs.h <<\EOF |
10f2d63a | 19720 | #define wxUSE_FILE 1 |
a0b9e27f | 19721 | EOF |
10f2d63a VZ |
19722 | |
19723 | fi | |
19724 | ||
1e6feb95 | 19725 | if test "$wxUSE_FFILE" = "yes"; then |
a0b9e27f | 19726 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19727 | #define wxUSE_FFILE 1 |
a0b9e27f | 19728 | EOF |
1e6feb95 VZ |
19729 | |
19730 | fi | |
19731 | ||
24528b0c | 19732 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
a0b9e27f | 19733 | cat >> confdefs.h <<\EOF |
24528b0c | 19734 | #define wxUSE_FILESYSTEM 1 |
a0b9e27f | 19735 | EOF |
24528b0c VS |
19736 | |
19737 | fi | |
19738 | ||
10f2d63a | 19739 | if test "$wxUSE_FS_INET" = "yes"; then |
a0b9e27f | 19740 | cat >> confdefs.h <<\EOF |
10f2d63a | 19741 | #define wxUSE_FS_INET 1 |
a0b9e27f | 19742 | EOF |
10f2d63a VZ |
19743 | |
19744 | fi | |
19745 | ||
19746 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
a0b9e27f | 19747 | cat >> confdefs.h <<\EOF |
10f2d63a | 19748 | #define wxUSE_FS_ZIP 1 |
a0b9e27f | 19749 | EOF |
10f2d63a VZ |
19750 | |
19751 | fi | |
19752 | ||
19753 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
a0b9e27f | 19754 | cat >> confdefs.h <<\EOF |
10f2d63a | 19755 | #define wxUSE_ZIPSTREAM 1 |
a0b9e27f | 19756 | EOF |
10f2d63a VZ |
19757 | |
19758 | fi | |
19759 | ||
eb4efbdc | 19760 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
a0b9e27f | 19761 | cat >> confdefs.h <<\EOF |
eb4efbdc | 19762 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
a0b9e27f | 19763 | EOF |
eb4efbdc VZ |
19764 | |
19765 | fi | |
19766 | ||
4f3c5f06 | 19767 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
a0b9e27f | 19768 | cat >> confdefs.h <<\EOF |
4f3c5f06 | 19769 | #define wxUSE_SNGLINST_CHECKER 1 |
a0b9e27f | 19770 | EOF |
4f3c5f06 VZ |
19771 | |
19772 | fi | |
19773 | ||
10f2d63a | 19774 | if test "$wxUSE_BUSYINFO" = "yes"; then |
a0b9e27f | 19775 | cat >> confdefs.h <<\EOF |
10f2d63a | 19776 | #define wxUSE_BUSYINFO 1 |
a0b9e27f | 19777 | EOF |
10f2d63a VZ |
19778 | |
19779 | fi | |
19780 | ||
19781 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
a0b9e27f | 19782 | cat >> confdefs.h <<\EOF |
10f2d63a | 19783 | #define wxUSE_STD_IOSTREAM 1 |
a0b9e27f | 19784 | EOF |
10f2d63a VZ |
19785 | |
19786 | fi | |
19787 | ||
a3a584a7 | 19788 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
a0b9e27f | 19789 | cat >> confdefs.h <<\EOF |
a3a584a7 | 19790 | #define wxUSE_TEXTBUFFER 1 |
a0b9e27f | 19791 | EOF |
a3a584a7 VZ |
19792 | |
19793 | fi | |
19794 | ||
10f2d63a | 19795 | if test "$wxUSE_TEXTFILE" = "yes"; then |
a3a584a7 | 19796 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then |
a0b9e27f | 19797 | echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2 |
10f2d63a | 19798 | else |
a0b9e27f | 19799 | cat >> confdefs.h <<\EOF |
10f2d63a | 19800 | #define wxUSE_TEXTFILE 1 |
a0b9e27f | 19801 | EOF |
10f2d63a VZ |
19802 | |
19803 | fi | |
19804 | fi | |
19805 | ||
19806 | if test "$wxUSE_CONFIG" = "yes" ; then | |
19807 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
a0b9e27f | 19808 | echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2 |
10f2d63a | 19809 | else |
a0b9e27f | 19810 | cat >> confdefs.h <<\EOF |
10f2d63a | 19811 | #define wxUSE_CONFIG 1 |
a0b9e27f | 19812 | EOF |
10f2d63a VZ |
19813 | |
19814 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
19815 | fi | |
19816 | fi | |
19817 | ||
19818 | if test "$wxUSE_INTL" = "yes" ; then | |
19819 | if test "$wxUSE_FILE" != "yes"; then | |
a0b9e27f | 19820 | echo "configure: warning: I18n code requires wxFile... disabled" 1>&2 |
10f2d63a | 19821 | else |
a0b9e27f | 19822 | cat >> confdefs.h <<\EOF |
10f2d63a | 19823 | #define wxUSE_INTL 1 |
a0b9e27f | 19824 | EOF |
10f2d63a VZ |
19825 | |
19826 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 19827 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
19828 | fi |
19829 | fi | |
19830 | ||
19831 | if test "$wxUSE_LOG" = "yes"; then | |
a0b9e27f | 19832 | cat >> confdefs.h <<\EOF |
10f2d63a | 19833 | #define wxUSE_LOG 1 |
a0b9e27f | 19834 | EOF |
10f2d63a | 19835 | |
8284b0c5 | 19836 | |
d73be714 | 19837 | if test "$wxUSE_LOGGUI" = "yes"; then |
a0b9e27f | 19838 | cat >> confdefs.h <<\EOF |
d73be714 | 19839 | #define wxUSE_LOGGUI 1 |
a0b9e27f | 19840 | EOF |
d73be714 VZ |
19841 | |
19842 | fi | |
19843 | ||
19844 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
a0b9e27f | 19845 | cat >> confdefs.h <<\EOF |
d73be714 | 19846 | #define wxUSE_LOGWINDOW 1 |
a0b9e27f | 19847 | EOF |
69d27ff7 MB |
19848 | |
19849 | fi | |
19850 | ||
19851 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
a0b9e27f | 19852 | cat >> confdefs.h <<\EOF |
69d27ff7 | 19853 | #define wxUSE_LOG_DIALOG 1 |
a0b9e27f | 19854 | EOF |
d73be714 VZ |
19855 | |
19856 | fi | |
10f2d63a VZ |
19857 | fi |
19858 | ||
19859 | if test "$wxUSE_LONGLONG" = "yes"; then | |
a0b9e27f | 19860 | cat >> confdefs.h <<\EOF |
10f2d63a | 19861 | #define wxUSE_LONGLONG 1 |
a0b9e27f | 19862 | EOF |
10f2d63a VZ |
19863 | |
19864 | fi | |
19865 | ||
e8f65ba6 | 19866 | if test "$wxUSE_GEOMETRY" = "yes"; then |
a0b9e27f | 19867 | cat >> confdefs.h <<\EOF |
e8f65ba6 | 19868 | #define wxUSE_GEOMETRY 1 |
a0b9e27f | 19869 | EOF |
e8f65ba6 RR |
19870 | |
19871 | fi | |
19872 | ||
10f2d63a | 19873 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
a0b9e27f | 19874 | cat >> confdefs.h <<\EOF |
10f2d63a | 19875 | #define wxUSE_DIALUP_MANAGER 1 |
a0b9e27f | 19876 | EOF |
10f2d63a | 19877 | |
70f7a477 | 19878 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
19879 | fi |
19880 | ||
19881 | if test "$wxUSE_STREAMS" = "yes" ; then | |
a0b9e27f | 19882 | cat >> confdefs.h <<\EOF |
10f2d63a | 19883 | #define wxUSE_STREAMS 1 |
a0b9e27f | 19884 | EOF |
10f2d63a VZ |
19885 | |
19886 | fi | |
19887 | ||
5c6fa7d2 | 19888 | |
8284b0c5 | 19889 | if test "$wxUSE_DATETIME" = "yes"; then |
a0b9e27f | 19890 | for ac_func in strptime |
83307f33 | 19891 | do |
a0b9e27f | 19892 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
ac0c4cc3 | 19893 | echo "configure:19894: checking for $ac_func" >&5 |
a0b9e27f MB |
19894 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19895 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19896 | else | |
19897 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 19898 | #line 19899 "configure" |
83307f33 VZ |
19899 | #include "confdefs.h" |
19900 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 19901 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
19902 | #include <assert.h> |
19903 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19904 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19905 | builtin and then its argument prototype would still apply. */ |
19906 | char $ac_func(); | |
19907 | ||
19908 | int main() { | |
19909 | ||
83307f33 VZ |
19910 | /* The GNU C library defines this for functions which it implements |
19911 | to always fail with ENOSYS. Some functions are actually named | |
19912 | something starting with __ and the normal name is an alias. */ | |
19913 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19914 | choke me | |
19915 | #else | |
a0b9e27f | 19916 | $ac_func(); |
83307f33 VZ |
19917 | #endif |
19918 | ||
a0b9e27f MB |
19919 | ; return 0; } |
19920 | EOF | |
ac0c4cc3 | 19921 | if { (eval echo configure:19922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19922 | rm -rf conftest* |
19923 | eval "ac_cv_func_$ac_func=yes" | |
19924 | else | |
19925 | echo "configure: failed program was:" >&5 | |
19926 | cat conftest.$ac_ext >&5 | |
19927 | rm -rf conftest* | |
19928 | eval "ac_cv_func_$ac_func=no" | |
19929 | fi | |
19930 | rm -f conftest* | |
19931 | fi | |
83307f33 | 19932 | |
a0b9e27f MB |
19933 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
19934 | echo "$ac_t""yes" 1>&6 | |
19935 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19936 | cat >> confdefs.h <<EOF | |
19937 | #define $ac_tr_func 1 | |
19938 | EOF | |
19939 | ||
19940 | else | |
19941 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
19942 | fi |
19943 | done | |
19944 | ||
5c6fa7d2 | 19945 | |
a0b9e27f | 19946 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
ac0c4cc3 | 19947 | echo "configure:19948: checking for timezone variable in <time.h>" >&5 |
a0b9e27f MB |
19948 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
19949 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 19950 | else |
a0b9e27f MB |
19951 | |
19952 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 19953 | #line 19954 "configure" |
360d6699 VZ |
19954 | #include "confdefs.h" |
19955 | ||
b4085ce6 | 19956 | #include <time.h> |
a0b9e27f MB |
19957 | |
19958 | int main() { | |
360d6699 VZ |
19959 | |
19960 | int tz; | |
4f11a343 | 19961 | tz = timezone; |
a0b9e27f MB |
19962 | |
19963 | ; return 0; } | |
19964 | EOF | |
ac0c4cc3 | 19965 | if { (eval echo configure:19966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19966 | rm -rf conftest* |
19967 | ||
4f11a343 | 19968 | wx_cv_var_timezone=timezone |
a0b9e27f | 19969 | |
360d6699 | 19970 | else |
a0b9e27f MB |
19971 | echo "configure: failed program was:" >&5 |
19972 | cat conftest.$ac_ext >&5 | |
19973 | rm -rf conftest* | |
19974 | ||
19975 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 19976 | #line 19977 "configure" |
360d6699 VZ |
19977 | #include "confdefs.h" |
19978 | ||
b4085ce6 | 19979 | #include <time.h> |
a0b9e27f MB |
19980 | |
19981 | int main() { | |
360d6699 VZ |
19982 | |
19983 | int tz; | |
19984 | tz = _timezone; | |
a0b9e27f MB |
19985 | |
19986 | ; return 0; } | |
19987 | EOF | |
ac0c4cc3 | 19988 | if { (eval echo configure:19989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19989 | rm -rf conftest* |
19990 | ||
360d6699 | 19991 | wx_cv_var_timezone=_timezone |
a0b9e27f | 19992 | |
5357c8e8 | 19993 | else |
a0b9e27f MB |
19994 | echo "configure: failed program was:" >&5 |
19995 | cat conftest.$ac_ext >&5 | |
19996 | rm -rf conftest* | |
19997 | ||
19998 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 19999 | #line 20000 "configure" |
5357c8e8 VZ |
20000 | #include "confdefs.h" |
20001 | ||
b4085ce6 | 20002 | #include <time.h> |
a0b9e27f MB |
20003 | |
20004 | int main() { | |
5357c8e8 VZ |
20005 | |
20006 | int tz; | |
4f11a343 | 20007 | tz = __timezone; |
a0b9e27f MB |
20008 | |
20009 | ; return 0; } | |
20010 | EOF | |
ac0c4cc3 | 20011 | if { (eval echo configure:20012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
20012 | rm -rf conftest* |
20013 | ||
4f11a343 | 20014 | wx_cv_var_timezone=__timezone |
a0b9e27f | 20015 | |
360d6699 | 20016 | else |
a0b9e27f MB |
20017 | echo "configure: failed program was:" >&5 |
20018 | cat conftest.$ac_ext >&5 | |
20019 | rm -rf conftest* | |
20020 | ||
f9bc1684 | 20021 | if test "$USE_DOS" = 0 ; then |
a0b9e27f | 20022 | echo "configure: warning: no timezone variable" 1>&2 |
f9bc1684 | 20023 | fi |
a0b9e27f MB |
20024 | |
20025 | ||
328a083c | 20026 | fi |
a0b9e27f MB |
20027 | rm -f conftest* |
20028 | ||
20029 | ||
7b4a847f | 20030 | fi |
a0b9e27f MB |
20031 | rm -f conftest* |
20032 | ||
20033 | ||
5c6fa7d2 | 20034 | fi |
a0b9e27f MB |
20035 | rm -f conftest* |
20036 | ||
20037 | ||
247f5006 | 20038 | fi |
a0b9e27f MB |
20039 | |
20040 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 | |
698dcdb6 | 20041 | |
f9bc1684 | 20042 | if test "x$wx_cv_var_timezone" != x ; then |
a0b9e27f | 20043 | cat >> confdefs.h <<EOF |
360d6699 | 20044 | #define WX_TIMEZONE $wx_cv_var_timezone |
a0b9e27f | 20045 | EOF |
360d6699 | 20046 | |
f9bc1684 | 20047 | fi |
698dcdb6 | 20048 | |
a0b9e27f | 20049 | for ac_func in localtime |
afc31813 | 20050 | do |
a0b9e27f | 20051 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
ac0c4cc3 | 20052 | echo "configure:20053: checking for $ac_func" >&5 |
a0b9e27f MB |
20053 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
20054 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20055 | else | |
20056 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 20057 | #line 20058 "configure" |
10f2d63a | 20058 | #include "confdefs.h" |
afc31813 | 20059 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 20060 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
20061 | #include <assert.h> |
20062 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20063 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20064 | builtin and then its argument prototype would still apply. */ |
20065 | char $ac_func(); | |
20066 | ||
20067 | int main() { | |
20068 | ||
afc31813 VZ |
20069 | /* The GNU C library defines this for functions which it implements |
20070 | to always fail with ENOSYS. Some functions are actually named | |
20071 | something starting with __ and the normal name is an alias. */ | |
20072 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20073 | choke me | |
20074 | #else | |
a0b9e27f | 20075 | $ac_func(); |
afc31813 VZ |
20076 | #endif |
20077 | ||
a0b9e27f MB |
20078 | ; return 0; } |
20079 | EOF | |
ac0c4cc3 | 20080 | if { (eval echo configure:20081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20081 | rm -rf conftest* |
20082 | eval "ac_cv_func_$ac_func=yes" | |
20083 | else | |
20084 | echo "configure: failed program was:" >&5 | |
20085 | cat conftest.$ac_ext >&5 | |
20086 | rm -rf conftest* | |
20087 | eval "ac_cv_func_$ac_func=no" | |
20088 | fi | |
20089 | rm -f conftest* | |
20090 | fi | |
afc31813 | 20091 | |
a0b9e27f MB |
20092 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
20093 | echo "$ac_t""yes" 1>&6 | |
20094 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20095 | cat >> confdefs.h <<EOF | |
20096 | #define $ac_tr_func 1 | |
20097 | EOF | |
20098 | ||
20099 | else | |
20100 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
20101 | fi |
20102 | done | |
20103 | ||
5c6fa7d2 | 20104 | |
8284b0c5 | 20105 | if test "$ac_cv_func_localtime" = "yes"; then |
a0b9e27f | 20106 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 |
ac0c4cc3 | 20107 | echo "configure:20108: checking for tm_gmtoff in struct tm" >&5 |
a0b9e27f MB |
20108 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
20109 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20110 | else | |
20111 | ||
20112 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 20113 | #line 20114 "configure" |
0470b1e6 VZ |
20114 | #include "confdefs.h" |
20115 | ||
b4085ce6 | 20116 | #include <time.h> |
a0b9e27f MB |
20117 | |
20118 | int main() { | |
0470b1e6 VZ |
20119 | |
20120 | struct tm tm; | |
20121 | tm.tm_gmtoff++; | |
a0b9e27f MB |
20122 | |
20123 | ; return 0; } | |
20124 | EOF | |
ac0c4cc3 | 20125 | if { (eval echo configure:20126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
20126 | rm -rf conftest* |
20127 | ||
f03a98d8 | 20128 | wx_cv_struct_tm_has_gmtoff=yes |
a0b9e27f | 20129 | |
0470b1e6 | 20130 | else |
a0b9e27f MB |
20131 | echo "configure: failed program was:" >&5 |
20132 | cat conftest.$ac_ext >&5 | |
20133 | rm -rf conftest* | |
20134 | wx_cv_struct_tm_has_gmtoff=no | |
20135 | ||
5c6fa7d2 | 20136 | fi |
a0b9e27f MB |
20137 | rm -f conftest* |
20138 | ||
247f5006 | 20139 | fi |
a0b9e27f MB |
20140 | |
20141 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
20142 | fi |
20143 | ||
20144 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
a0b9e27f | 20145 | cat >> confdefs.h <<\EOF |
6232543b | 20146 | #define WX_GMTOFF_IN_TM 1 |
a0b9e27f | 20147 | EOF |
0470b1e6 | 20148 | |
3fcdd07b VZ |
20149 | fi |
20150 | ||
a0b9e27f | 20151 | for ac_func in gettimeofday ftime |
3fcdd07b | 20152 | do |
a0b9e27f | 20153 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
ac0c4cc3 | 20154 | echo "configure:20155: checking for $ac_func" >&5 |
a0b9e27f MB |
20155 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
20156 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20157 | else | |
20158 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 20159 | #line 20160 "configure" |
3fcdd07b VZ |
20160 | #include "confdefs.h" |
20161 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 20162 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
20163 | #include <assert.h> |
20164 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20165 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20166 | builtin and then its argument prototype would still apply. */ |
20167 | char $ac_func(); | |
20168 | ||
20169 | int main() { | |
20170 | ||
3fcdd07b VZ |
20171 | /* The GNU C library defines this for functions which it implements |
20172 | to always fail with ENOSYS. Some functions are actually named | |
20173 | something starting with __ and the normal name is an alias. */ | |
20174 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20175 | choke me | |
20176 | #else | |
a0b9e27f | 20177 | $ac_func(); |
3fcdd07b VZ |
20178 | #endif |
20179 | ||
a0b9e27f MB |
20180 | ; return 0; } |
20181 | EOF | |
ac0c4cc3 | 20182 | if { (eval echo configure:20183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20183 | rm -rf conftest* |
20184 | eval "ac_cv_func_$ac_func=yes" | |
20185 | else | |
20186 | echo "configure: failed program was:" >&5 | |
20187 | cat conftest.$ac_ext >&5 | |
20188 | rm -rf conftest* | |
20189 | eval "ac_cv_func_$ac_func=no" | |
20190 | fi | |
20191 | rm -f conftest* | |
20192 | fi | |
20193 | ||
20194 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
20195 | echo "$ac_t""yes" 1>&6 | |
20196 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20197 | cat >> confdefs.h <<EOF | |
20198 | #define $ac_tr_func 1 | |
20199 | EOF | |
3fcdd07b | 20200 | break |
a0b9e27f MB |
20201 | else |
20202 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
20203 | fi |
20204 | done | |
20205 | ||
698dcdb6 | 20206 | |
8284b0c5 | 20207 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
a0b9e27f | 20208 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 |
ac0c4cc3 | 20209 | echo "configure:20210: checking whether gettimeofday takes two arguments" >&5 |
a0b9e27f MB |
20210 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
20211 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20212 | else | |
20213 | ||
20214 | ||
20215 | ac_ext=C | |
20216 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 20217 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
20218 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20219 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20220 | cross_compiling=$ac_cv_prog_cxx_cross | |
52127426 | 20221 | |
8284b0c5 | 20222 | |
a0b9e27f | 20223 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 20224 | #line 20225 "configure" |
10f2d63a | 20225 | #include "confdefs.h" |
afc31813 VZ |
20226 | |
20227 | #include <sys/time.h> | |
20228 | #include <unistd.h> | |
a0b9e27f MB |
20229 | |
20230 | int main() { | |
afc31813 VZ |
20231 | |
20232 | struct timeval tv; | |
776862b4 | 20233 | gettimeofday(&tv, NULL); |
a0b9e27f MB |
20234 | |
20235 | ; return 0; } | |
20236 | EOF | |
ac0c4cc3 | 20237 | if { (eval echo configure:20238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 20238 | rm -rf conftest* |
afc31813 | 20239 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 20240 | else |
a0b9e27f MB |
20241 | echo "configure: failed program was:" >&5 |
20242 | cat conftest.$ac_ext >&5 | |
20243 | rm -rf conftest* | |
20244 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 20245 | #line 20246 "configure" |
10f2d63a | 20246 | #include "confdefs.h" |
afc31813 VZ |
20247 | |
20248 | #include <sys/time.h> | |
20249 | #include <unistd.h> | |
a0b9e27f MB |
20250 | |
20251 | int main() { | |
afc31813 VZ |
20252 | |
20253 | struct timeval tv; | |
20254 | gettimeofday(&tv); | |
a0b9e27f MB |
20255 | |
20256 | ; return 0; } | |
20257 | EOF | |
ac0c4cc3 | 20258 | if { (eval echo configure:20259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 20259 | rm -rf conftest* |
afc31813 | 20260 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 20261 | else |
a0b9e27f MB |
20262 | echo "configure: failed program was:" >&5 |
20263 | cat conftest.$ac_ext >&5 | |
20264 | rm -rf conftest* | |
20265 | ||
20266 | echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2 | |
776862b4 | 20267 | wx_cv_func_gettimeofday_has_2_args=unknown |
a0b9e27f MB |
20268 | |
20269 | ||
10f2d63a | 20270 | fi |
a0b9e27f MB |
20271 | rm -f conftest* |
20272 | ||
10f2d63a | 20273 | fi |
a0b9e27f | 20274 | rm -f conftest* |
afc31813 | 20275 | ac_ext=c |
a0b9e27f | 20276 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 20277 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
20278 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20279 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20280 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 20281 | |
a0b9e27f | 20282 | |
247f5006 | 20283 | fi |
a0b9e27f MB |
20284 | |
20285 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 20286 | |
afc31813 | 20287 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
a0b9e27f | 20288 | cat >> confdefs.h <<\EOF |
afc31813 | 20289 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
a0b9e27f | 20290 | EOF |
afc31813 VZ |
20291 | |
20292 | fi | |
20293 | fi | |
20294 | ||
a0b9e27f | 20295 | cat >> confdefs.h <<\EOF |
afc31813 | 20296 | #define wxUSE_TIMEDATE 1 |
a0b9e27f | 20297 | EOF |
afc31813 VZ |
20298 | |
20299 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
20300 | fi | |
20301 | ||
8284b0c5 | 20302 | |
52127426 | 20303 | if test "$wxUSE_SOCKETS" = "yes"; then |
6c657b52 | 20304 | if test "$wxUSE_MGL" = "1"; then |
a0b9e27f | 20305 | echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
20306 | wxUSE_SOCKETS="no" |
20307 | fi | |
0feee163 | 20308 | fi |
b089607b | 20309 | |
0feee163 VZ |
20310 | if test "$wxUSE_SOCKETS" = "yes"; then |
20311 | if test "$TOOLKIT" != "MSW"; then | |
a0b9e27f | 20312 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
ac0c4cc3 | 20313 | echo "configure:20314: checking for socket" >&5 |
a0b9e27f MB |
20314 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
20315 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 20316 | else |
a0b9e27f | 20317 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 20318 | #line 20319 "configure" |
c63c7106 VZ |
20319 | #include "confdefs.h" |
20320 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 20321 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
20322 | #include <assert.h> |
20323 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20324 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20325 | builtin and then its argument prototype would still apply. */ |
20326 | char socket(); | |
20327 | ||
20328 | int main() { | |
20329 | ||
c63c7106 VZ |
20330 | /* The GNU C library defines this for functions which it implements |
20331 | to always fail with ENOSYS. Some functions are actually named | |
20332 | something starting with __ and the normal name is an alias. */ | |
20333 | #if defined (__stub_socket) || defined (__stub___socket) | |
20334 | choke me | |
20335 | #else | |
a0b9e27f | 20336 | socket(); |
c63c7106 VZ |
20337 | #endif |
20338 | ||
a0b9e27f MB |
20339 | ; return 0; } |
20340 | EOF | |
ac0c4cc3 | 20341 | if { (eval echo configure:20342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20342 | rm -rf conftest* |
20343 | eval "ac_cv_func_socket=yes" | |
20344 | else | |
20345 | echo "configure: failed program was:" >&5 | |
20346 | cat conftest.$ac_ext >&5 | |
20347 | rm -rf conftest* | |
20348 | eval "ac_cv_func_socket=no" | |
20349 | fi | |
20350 | rm -f conftest* | |
20351 | fi | |
20352 | ||
20353 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
20354 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
20355 | : |
20356 | else | |
a0b9e27f MB |
20357 | echo "$ac_t""no" 1>&6 |
20358 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
ac0c4cc3 | 20359 | echo "configure:20360: checking for socket in -lsocket" >&5 |
a0b9e27f MB |
20360 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
20361 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20362 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 20363 | else |
a0b9e27f | 20364 | ac_save_LIBS="$LIBS" |
c63c7106 | 20365 | LIBS="-lsocket $LIBS" |
a0b9e27f | 20366 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 20367 | #line 20368 "configure" |
c63c7106 VZ |
20368 | #include "confdefs.h" |
20369 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20370 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20371 | builtin and then its argument prototype would still apply. */ |
20372 | char socket(); | |
20373 | ||
20374 | int main() { | |
20375 | socket() | |
20376 | ; return 0; } | |
20377 | EOF | |
ac0c4cc3 | 20378 | if { (eval echo configure:20379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20379 | rm -rf conftest* |
20380 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20381 | else | |
20382 | echo "configure: failed program was:" >&5 | |
20383 | cat conftest.$ac_ext >&5 | |
20384 | rm -rf conftest* | |
20385 | eval "ac_cv_lib_$ac_lib_var=no" | |
20386 | fi | |
20387 | rm -f conftest* | |
20388 | LIBS="$ac_save_LIBS" | |
20389 | ||
20390 | fi | |
20391 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20392 | echo "$ac_t""yes" 1>&6 | |
d558c907 VS |
20393 | if test "$INET_LINK" != " -lsocket"; then |
20394 | INET_LINK="$INET_LINK -lsocket" | |
20395 | fi | |
c63c7106 | 20396 | else |
a0b9e27f | 20397 | echo "$ac_t""no" 1>&6 |
afc31813 | 20398 | |
a0b9e27f | 20399 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
3a922bb4 | 20400 | wxUSE_SOCKETS=no |
a0b9e27f MB |
20401 | |
20402 | ||
6232543b | 20403 | fi |
b089607b | 20404 | |
a0b9e27f | 20405 | |
1e487827 | 20406 | fi |
afc31813 | 20407 | |
3a922bb4 | 20408 | fi |
0feee163 | 20409 | fi |
51a9faba | 20410 | |
0feee163 VZ |
20411 | if test "$wxUSE_SOCKETS" = "yes" ; then |
20412 | if test "$TOOLKIT" != "MSW"; then | |
a0b9e27f | 20413 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 |
ac0c4cc3 | 20414 | echo "configure:20415: checking what is the type of the third argument of getsockname" >&5 |
a0b9e27f MB |
20415 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
20416 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20417 | else | |
20418 | ||
20419 | ||
20420 | ac_ext=C | |
20421 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 20422 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
20423 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20424 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20425 | cross_compiling=$ac_cv_prog_cxx_cross | |
698dcdb6 | 20426 | |
8284b0c5 | 20427 | |
a0b9e27f | 20428 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 20429 | #line 20430 "configure" |
afc31813 | 20430 | #include "confdefs.h" |
51a9faba | 20431 | |
3a922bb4 RL |
20432 | #include <sys/types.h> |
20433 | #include <sys/socket.h> | |
a0b9e27f MB |
20434 | |
20435 | int main() { | |
51a9faba | 20436 | |
3a922bb4 RL |
20437 | socklen_t len; |
20438 | getsockname(0, 0, &len); | |
a0b9e27f MB |
20439 | |
20440 | ; return 0; } | |
20441 | EOF | |
ac0c4cc3 | 20442 | if { (eval echo configure:20443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 20443 | rm -rf conftest* |
51a9faba | 20444 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 20445 | else |
a0b9e27f MB |
20446 | echo "configure: failed program was:" >&5 |
20447 | cat conftest.$ac_ext >&5 | |
20448 | rm -rf conftest* | |
20449 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 20450 | #line 20451 "configure" |
afc31813 | 20451 | #include "confdefs.h" |
51a9faba | 20452 | |
3a922bb4 RL |
20453 | #include <sys/types.h> |
20454 | #include <sys/socket.h> | |
a0b9e27f MB |
20455 | |
20456 | int main() { | |
51a9faba | 20457 | |
3a922bb4 RL |
20458 | size_t len; |
20459 | getsockname(0, 0, &len); | |
a0b9e27f MB |
20460 | |
20461 | ; return 0; } | |
20462 | EOF | |
ac0c4cc3 | 20463 | if { (eval echo configure:20464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 20464 | rm -rf conftest* |
51a9faba | 20465 | wx_cv_type_getsockname3=size_t |
afc31813 | 20466 | else |
a0b9e27f MB |
20467 | echo "configure: failed program was:" >&5 |
20468 | cat conftest.$ac_ext >&5 | |
20469 | rm -rf conftest* | |
20470 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 20471 | #line 20472 "configure" |
afc31813 | 20472 | #include "confdefs.h" |
51a9faba | 20473 | |
3a922bb4 RL |
20474 | #include <sys/types.h> |
20475 | #include <sys/socket.h> | |
a0b9e27f MB |
20476 | |
20477 | int main() { | |
51a9faba | 20478 | |
3a922bb4 RL |
20479 | int len; |
20480 | getsockname(0, 0, &len); | |
a0b9e27f MB |
20481 | |
20482 | ; return 0; } | |
20483 | EOF | |
ac0c4cc3 | 20484 | if { (eval echo configure:20485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 20485 | rm -rf conftest* |
51a9faba | 20486 | wx_cv_type_getsockname3=int |
afc31813 | 20487 | else |
a0b9e27f MB |
20488 | echo "configure: failed program was:" >&5 |
20489 | cat conftest.$ac_ext >&5 | |
20490 | rm -rf conftest* | |
20491 | wx_cv_type_getsockname3=unknown | |
20492 | ||
afc31813 | 20493 | fi |
a0b9e27f MB |
20494 | rm -f conftest* |
20495 | ||
afc31813 | 20496 | fi |
a0b9e27f MB |
20497 | rm -f conftest* |
20498 | ||
afc31813 | 20499 | fi |
a0b9e27f | 20500 | rm -f conftest* |
51a9faba | 20501 | |
3a922bb4 | 20502 | ac_ext=c |
a0b9e27f | 20503 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 20504 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
20505 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20506 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20507 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 20508 | |
a0b9e27f | 20509 | |
247f5006 | 20510 | fi |
a0b9e27f MB |
20511 | |
20512 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba | 20513 | |
3a922bb4 RL |
20514 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
20515 | wxUSE_SOCKETS=no | |
a0b9e27f | 20516 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 |
3a922bb4 | 20517 | else |
a0b9e27f | 20518 | cat >> confdefs.h <<EOF |
51a9faba | 20519 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
a0b9e27f | 20520 | EOF |
51a9faba | 20521 | |
3a922bb4 | 20522 | fi |
51a9faba VZ |
20523 | fi |
20524 | fi | |
afc31813 | 20525 | |
51a9faba | 20526 | if test "$wxUSE_SOCKETS" = "yes" ; then |
a0b9e27f | 20527 | cat >> confdefs.h <<\EOF |
afc31813 | 20528 | #define wxUSE_SOCKETS 1 |
a0b9e27f | 20529 | EOF |
afc31813 | 20530 | |
70f7a477 | 20531 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
20532 | fi |
20533 | ||
8284b0c5 | 20534 | |
dc3d889d VZ |
20535 | if test "$wxUSE_GUI" = "yes"; then |
20536 | ||
ac0c4cc3 | 20537 | if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then |
a0b9e27f | 20538 | echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2 |
156b2523 GD |
20539 | wxUSE_JOYSTICK=no |
20540 | fi | |
20541 | if test "$TOOLKIT" = "MOTIF"; then | |
a0b9e27f | 20542 | echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2 |
156b2523 | 20543 | wxUSE_JOYSTICK=no |
f79bd02d JS |
20544 | fi |
20545 | if test "$TOOLKIT" = "X11"; then | |
a0b9e27f | 20546 | echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2 |
f79bd02d | 20547 | wxUSE_JOYSTICK=no |
156b2523 GD |
20548 | fi |
20549 | ||
3a922bb4 RL |
20550 | if test "$TOOLKIT" != "MSW"; then |
20551 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
a0b9e27f | 20552 | for ac_hdr in linux/joystick.h |
10f2d63a | 20553 | do |
a0b9e27f MB |
20554 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
20555 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
ac0c4cc3 | 20556 | echo "configure:20557: checking for $ac_hdr" >&5 |
a0b9e27f MB |
20557 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
20558 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20559 | else | |
20560 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 20561 | #line 20562 "configure" |
247f5006 | 20562 | #include "confdefs.h" |
a0b9e27f MB |
20563 | #include <$ac_hdr> |
20564 | EOF | |
20565 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ac0c4cc3 | 20566 | { (eval echo configure:20567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
20567 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
20568 | if test -z "$ac_err"; then | |
20569 | rm -rf conftest* | |
20570 | eval "ac_cv_header_$ac_safe=yes" | |
20571 | else | |
20572 | echo "$ac_err" >&5 | |
20573 | echo "configure: failed program was:" >&5 | |
247f5006 | 20574 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
20575 | rm -rf conftest* |
20576 | eval "ac_cv_header_$ac_safe=no" | |
247f5006 | 20577 | fi |
a0b9e27f | 20578 | rm -f conftest* |
10f2d63a | 20579 | fi |
a0b9e27f MB |
20580 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
20581 | echo "$ac_t""yes" 1>&6 | |
20582 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
20583 | cat >> confdefs.h <<EOF | |
20584 | #define $ac_tr_hdr 1 | |
20585 | EOF | |
20586 | ||
20587 | else | |
20588 | echo "$ac_t""no" 1>&6 | |
247f5006 | 20589 | fi |
10f2d63a VZ |
20590 | done |
20591 | ||
3a922bb4 RL |
20592 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
20593 | wxUSE_JOYSTICK=no | |
a0b9e27f | 20594 | echo "configure: warning: Joystick not supported by this system... disabled" 1>&2 |
3a922bb4 RL |
20595 | fi |
20596 | fi | |
20597 | fi | |
b089607b | 20598 | |
3a922bb4 | 20599 | if test "$wxUSE_JOYSTICK" = "yes"; then |
a0b9e27f | 20600 | cat >> confdefs.h <<\EOF |
10f2d63a | 20601 | #define wxUSE_JOYSTICK 1 |
a0b9e27f | 20602 | EOF |
10f2d63a | 20603 | |
3a922bb4 RL |
20604 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
20605 | fi | |
dc3d889d VZ |
20606 | fi |
20607 | ||
8284b0c5 | 20608 | |
b089607b VZ |
20609 | if test "$TOOLKIT" != "MSW"; then |
20610 | ||
3a922bb4 RL |
20611 | HAVE_DL_FUNCS=0 |
20612 | HAVE_SHL_FUNCS=0 | |
0b9ab0bd | 20613 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
3a922bb4 RL |
20614 | if test "$USE_DARWIN" = 1; then |
20615 | HAVE_DL_FUNCS=1 | |
20616 | else | |
a0b9e27f | 20617 | for ac_func in dlopen |
10f2d63a | 20618 | do |
a0b9e27f | 20619 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
ac0c4cc3 | 20620 | echo "configure:20621: checking for $ac_func" >&5 |
a0b9e27f MB |
20621 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
20622 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20623 | else | |
20624 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 20625 | #line 20626 "configure" |
10f2d63a VZ |
20626 | #include "confdefs.h" |
20627 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 20628 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
20629 | #include <assert.h> |
20630 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20631 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20632 | builtin and then its argument prototype would still apply. */ |
20633 | char $ac_func(); | |
20634 | ||
20635 | int main() { | |
20636 | ||
10f2d63a VZ |
20637 | /* The GNU C library defines this for functions which it implements |
20638 | to always fail with ENOSYS. Some functions are actually named | |
20639 | something starting with __ and the normal name is an alias. */ | |
20640 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20641 | choke me | |
20642 | #else | |
a0b9e27f | 20643 | $ac_func(); |
10f2d63a VZ |
20644 | #endif |
20645 | ||
a0b9e27f MB |
20646 | ; return 0; } |
20647 | EOF | |
ac0c4cc3 | 20648 | if { (eval echo configure:20649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20649 | rm -rf conftest* |
20650 | eval "ac_cv_func_$ac_func=yes" | |
20651 | else | |
20652 | echo "configure: failed program was:" >&5 | |
20653 | cat conftest.$ac_ext >&5 | |
20654 | rm -rf conftest* | |
20655 | eval "ac_cv_func_$ac_func=no" | |
20656 | fi | |
20657 | rm -f conftest* | |
20658 | fi | |
20659 | ||
20660 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
20661 | echo "$ac_t""yes" 1>&6 | |
20662 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20663 | cat >> confdefs.h <<EOF | |
20664 | #define $ac_tr_func 1 | |
20665 | EOF | |
20666 | ||
20667 | cat >> confdefs.h <<\EOF | |
10f2d63a | 20668 | #define HAVE_DLOPEN 1 |
a0b9e27f | 20669 | EOF |
10f2d63a | 20670 | |
3a922bb4 | 20671 | HAVE_DL_FUNCS=1 |
a0b9e27f | 20672 | |
10f2d63a | 20673 | else |
a0b9e27f MB |
20674 | echo "$ac_t""no" 1>&6 |
20675 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
ac0c4cc3 | 20676 | echo "configure:20677: checking for dlopen in -ldl" >&5 |
a0b9e27f MB |
20677 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
20678 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20679 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 20680 | else |
a0b9e27f | 20681 | ac_save_LIBS="$LIBS" |
10f2d63a | 20682 | LIBS="-ldl $LIBS" |
a0b9e27f | 20683 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 20684 | #line 20685 "configure" |
10f2d63a VZ |
20685 | #include "confdefs.h" |
20686 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20687 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20688 | builtin and then its argument prototype would still apply. */ |
20689 | char dlopen(); | |
20690 | ||
20691 | int main() { | |
20692 | dlopen() | |
20693 | ; return 0; } | |
20694 | EOF | |
ac0c4cc3 | 20695 | if { (eval echo configure:20696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20696 | rm -rf conftest* |
20697 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20698 | else | |
20699 | echo "configure: failed program was:" >&5 | |
20700 | cat conftest.$ac_ext >&5 | |
20701 | rm -rf conftest* | |
20702 | eval "ac_cv_lib_$ac_lib_var=no" | |
20703 | fi | |
20704 | rm -f conftest* | |
20705 | LIBS="$ac_save_LIBS" | |
20706 | ||
20707 | fi | |
20708 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20709 | echo "$ac_t""yes" 1>&6 | |
20710 | ||
20711 | cat >> confdefs.h <<\EOF | |
10f2d63a | 20712 | #define HAVE_DLOPEN 1 |
a0b9e27f | 20713 | EOF |
10f2d63a | 20714 | |
3a922bb4 | 20715 | HAVE_DL_FUNCS=1 |
3d63bc3a | 20716 | DL_LINK=" -ldl$DL_LINK" |
a0b9e27f | 20717 | |
10f2d63a | 20718 | else |
a0b9e27f | 20719 | echo "$ac_t""no" 1>&6 |
10f2d63a | 20720 | |
a0b9e27f | 20721 | for ac_func in shl_load |
10f2d63a | 20722 | do |
a0b9e27f | 20723 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
ac0c4cc3 | 20724 | echo "configure:20725: checking for $ac_func" >&5 |
a0b9e27f MB |
20725 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
20726 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20727 | else | |
20728 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 20729 | #line 20730 "configure" |
10f2d63a VZ |
20730 | #include "confdefs.h" |
20731 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 20732 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
20733 | #include <assert.h> |
20734 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20735 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20736 | builtin and then its argument prototype would still apply. */ |
20737 | char $ac_func(); | |
20738 | ||
20739 | int main() { | |
20740 | ||
10f2d63a VZ |
20741 | /* The GNU C library defines this for functions which it implements |
20742 | to always fail with ENOSYS. Some functions are actually named | |
20743 | something starting with __ and the normal name is an alias. */ | |
20744 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20745 | choke me | |
20746 | #else | |
a0b9e27f | 20747 | $ac_func(); |
10f2d63a VZ |
20748 | #endif |
20749 | ||
a0b9e27f MB |
20750 | ; return 0; } |
20751 | EOF | |
ac0c4cc3 | 20752 | if { (eval echo configure:20753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20753 | rm -rf conftest* |
20754 | eval "ac_cv_func_$ac_func=yes" | |
20755 | else | |
20756 | echo "configure: failed program was:" >&5 | |
20757 | cat conftest.$ac_ext >&5 | |
20758 | rm -rf conftest* | |
20759 | eval "ac_cv_func_$ac_func=no" | |
20760 | fi | |
20761 | rm -f conftest* | |
20762 | fi | |
20763 | ||
20764 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
20765 | echo "$ac_t""yes" 1>&6 | |
20766 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20767 | cat >> confdefs.h <<EOF | |
20768 | #define $ac_tr_func 1 | |
20769 | EOF | |
20770 | ||
20771 | cat >> confdefs.h <<\EOF | |
10f2d63a | 20772 | #define HAVE_SHL_LOAD 1 |
a0b9e27f | 20773 | EOF |
10f2d63a | 20774 | |
3a922bb4 | 20775 | HAVE_SHL_FUNCS=1 |
a0b9e27f | 20776 | |
10f2d63a | 20777 | else |
a0b9e27f MB |
20778 | echo "$ac_t""no" 1>&6 |
20779 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
ac0c4cc3 | 20780 | echo "configure:20781: checking for dld in -lshl_load" >&5 |
a0b9e27f MB |
20781 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
20782 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20783 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 20784 | else |
a0b9e27f | 20785 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 20786 | LIBS="-lshl_load $LIBS" |
a0b9e27f | 20787 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 20788 | #line 20789 "configure" |
f6bcfd97 | 20789 | #include "confdefs.h" |
8284b0c5 | 20790 | /* Override any gcc2 internal prototype to avoid an error. */ |
f6bcfd97 | 20791 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
20792 | builtin and then its argument prototype would still apply. */ |
20793 | char dld(); | |
20794 | ||
20795 | int main() { | |
20796 | dld() | |
20797 | ; return 0; } | |
20798 | EOF | |
ac0c4cc3 | 20799 | if { (eval echo configure:20800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20800 | rm -rf conftest* |
20801 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20802 | else | |
20803 | echo "configure: failed program was:" >&5 | |
20804 | cat conftest.$ac_ext >&5 | |
20805 | rm -rf conftest* | |
20806 | eval "ac_cv_lib_$ac_lib_var=no" | |
20807 | fi | |
20808 | rm -f conftest* | |
20809 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 20810 | |
a0b9e27f MB |
20811 | fi |
20812 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20813 | echo "$ac_t""yes" 1>&6 | |
20814 | ||
3a922bb4 | 20815 | HAVE_SHL_FUNCS=1 |
3d63bc3a | 20816 | DL_LINK=" -ldld$DL_LINK" |
a0b9e27f MB |
20817 | |
20818 | else | |
20819 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
20820 | fi |
20821 | ||
a0b9e27f | 20822 | |
10f2d63a VZ |
20823 | fi |
20824 | done | |
20825 | ||
a0b9e27f | 20826 | |
10f2d63a VZ |
20827 | fi |
20828 | ||
a0b9e27f | 20829 | |
10f2d63a VZ |
20830 | fi |
20831 | done | |
20832 | ||
5c6fa7d2 | 20833 | |
8284b0c5 | 20834 | if test "$HAVE_DL_FUNCS" = 1; then |
a0b9e27f | 20835 | for ac_func in dlerror |
f6bcfd97 | 20836 | do |
a0b9e27f | 20837 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
ac0c4cc3 | 20838 | echo "configure:20839: checking for $ac_func" >&5 |
a0b9e27f MB |
20839 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
20840 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20841 | else | |
20842 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 20843 | #line 20844 "configure" |
f6bcfd97 BP |
20844 | #include "confdefs.h" |
20845 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 20846 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
20847 | #include <assert.h> |
20848 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20849 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20850 | builtin and then its argument prototype would still apply. */ |
20851 | char $ac_func(); | |
20852 | ||
20853 | int main() { | |
20854 | ||
f6bcfd97 BP |
20855 | /* The GNU C library defines this for functions which it implements |
20856 | to always fail with ENOSYS. Some functions are actually named | |
20857 | something starting with __ and the normal name is an alias. */ | |
20858 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20859 | choke me | |
20860 | #else | |
a0b9e27f | 20861 | $ac_func(); |
f6bcfd97 BP |
20862 | #endif |
20863 | ||
a0b9e27f MB |
20864 | ; return 0; } |
20865 | EOF | |
ac0c4cc3 | 20866 | if { (eval echo configure:20867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20867 | rm -rf conftest* |
20868 | eval "ac_cv_func_$ac_func=yes" | |
20869 | else | |
20870 | echo "configure: failed program was:" >&5 | |
20871 | cat conftest.$ac_ext >&5 | |
20872 | rm -rf conftest* | |
20873 | eval "ac_cv_func_$ac_func=no" | |
20874 | fi | |
20875 | rm -f conftest* | |
20876 | fi | |
20877 | ||
20878 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
20879 | echo "$ac_t""yes" 1>&6 | |
20880 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20881 | cat >> confdefs.h <<EOF | |
20882 | #define $ac_tr_func 1 | |
20883 | EOF | |
20884 | cat >> confdefs.h <<\EOF | |
f6bcfd97 | 20885 | #define HAVE_DLERROR 1 |
a0b9e27f | 20886 | EOF |
f6bcfd97 BP |
20887 | |
20888 | else | |
a0b9e27f MB |
20889 | echo "$ac_t""no" 1>&6 |
20890 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
ac0c4cc3 | 20891 | echo "configure:20892: checking for dlerror in -ldl" >&5 |
a0b9e27f MB |
20892 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
20893 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20894 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 20895 | else |
a0b9e27f | 20896 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 20897 | LIBS="-ldl $LIBS" |
a0b9e27f | 20898 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 20899 | #line 20900 "configure" |
f6bcfd97 BP |
20900 | #include "confdefs.h" |
20901 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20902 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20903 | builtin and then its argument prototype would still apply. */ |
20904 | char dlerror(); | |
20905 | ||
20906 | int main() { | |
20907 | dlerror() | |
20908 | ; return 0; } | |
20909 | EOF | |
ac0c4cc3 | 20910 | if { (eval echo configure:20911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20911 | rm -rf conftest* |
20912 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20913 | else | |
20914 | echo "configure: failed program was:" >&5 | |
20915 | cat conftest.$ac_ext >&5 | |
20916 | rm -rf conftest* | |
20917 | eval "ac_cv_lib_$ac_lib_var=no" | |
20918 | fi | |
20919 | rm -f conftest* | |
20920 | LIBS="$ac_save_LIBS" | |
20921 | ||
20922 | fi | |
20923 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20924 | echo "$ac_t""yes" 1>&6 | |
20925 | cat >> confdefs.h <<\EOF | |
f6bcfd97 | 20926 | #define HAVE_DLERROR 1 |
a0b9e27f | 20927 | EOF |
f6bcfd97 | 20928 | |
a0b9e27f MB |
20929 | else |
20930 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
20931 | fi |
20932 | ||
20933 | fi | |
20934 | done | |
20935 | ||
3a922bb4 RL |
20936 | fi |
20937 | fi | |
f6bcfd97 | 20938 | |
3a922bb4 RL |
20939 | if test "$HAVE_DL_FUNCS" = 0; then |
20940 | if test "$HAVE_SHL_FUNCS" = 0; then | |
20941 | if test "$USE_UNIX" = 1; then | |
a0b9e27f | 20942 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 |
0b9ab0bd | 20943 | wxUSE_DYNAMIC_LOADER=no |
3a922bb4 RL |
20944 | wxUSE_DYNLIB_CLASS=no |
20945 | else | |
a0b9e27f | 20946 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 |
3a922bb4 RL |
20947 | fi |
20948 | fi | |
10f2d63a VZ |
20949 | fi |
20950 | fi | |
20951 | fi | |
20952 | ||
0b9ab0bd | 20953 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then |
a0b9e27f | 20954 | cat >> confdefs.h <<\EOF |
0b9ab0bd | 20955 | #define wxUSE_DYNAMIC_LOADER 1 |
a0b9e27f | 20956 | EOF |
0b9ab0bd RL |
20957 | |
20958 | elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
a0b9e27f | 20959 | cat >> confdefs.h <<\EOF |
10f2d63a | 20960 | #define wxUSE_DYNLIB_CLASS 1 |
a0b9e27f | 20961 | EOF |
10f2d63a VZ |
20962 | |
20963 | fi | |
20964 | ||
8284b0c5 | 20965 | |
1e6feb95 | 20966 | if test "$wxUSE_FONTMAP" = "yes" ; then |
a0b9e27f | 20967 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20968 | #define wxUSE_FONTMAP 1 |
a0b9e27f | 20969 | EOF |
1e6feb95 VZ |
20970 | |
20971 | fi | |
20972 | ||
10f2d63a | 20973 | if test "$wxUSE_UNICODE" = "yes" ; then |
a0b9e27f | 20974 | cat >> confdefs.h <<\EOF |
10f2d63a | 20975 | #define wxUSE_UNICODE 1 |
a0b9e27f | 20976 | EOF |
10f2d63a | 20977 | |
8284b0c5 | 20978 | |
bbc3925a VS |
20979 | if test "$wxUSE_MSW" != 1; then |
20980 | wxUSE_UNICODE_MSLU=no | |
20981 | fi | |
a72a4bfa VS |
20982 | |
20983 | if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
a0b9e27f | 20984 | echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6 |
ac0c4cc3 | 20985 | echo "configure:20986: checking for main in -lunicows" >&5 |
a0b9e27f MB |
20986 | ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'` |
20987 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20988 | echo $ac_n "(cached) $ac_c" 1>&6 | |
a72a4bfa | 20989 | else |
a0b9e27f | 20990 | ac_save_LIBS="$LIBS" |
a72a4bfa | 20991 | LIBS="-lunicows $LIBS" |
a0b9e27f | 20992 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 20993 | #line 20994 "configure" |
a72a4bfa VS |
20994 | #include "confdefs.h" |
20995 | ||
a0b9e27f MB |
20996 | int main() { |
20997 | main() | |
20998 | ; return 0; } | |
20999 | EOF | |
ac0c4cc3 | 21000 | if { (eval echo configure:21001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
21001 | rm -rf conftest* |
21002 | eval "ac_cv_lib_$ac_lib_var=yes" | |
21003 | else | |
21004 | echo "configure: failed program was:" >&5 | |
21005 | cat conftest.$ac_ext >&5 | |
21006 | rm -rf conftest* | |
21007 | eval "ac_cv_lib_$ac_lib_var=no" | |
21008 | fi | |
21009 | rm -f conftest* | |
21010 | LIBS="$ac_save_LIBS" | |
8284b0c5 | 21011 | |
a0b9e27f MB |
21012 | fi |
21013 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
21014 | echo "$ac_t""yes" 1>&6 | |
21015 | ||
21016 | cat >> confdefs.h <<\EOF | |
a72a4bfa | 21017 | #define wxUSE_UNICODE_MSLU 1 |
a0b9e27f | 21018 | EOF |
a72a4bfa | 21019 | |
a0b9e27f | 21020 | |
a72a4bfa | 21021 | else |
a0b9e27f | 21022 | echo "$ac_t""no" 1>&6 |
a72a4bfa | 21023 | |
a0b9e27f MB |
21024 | echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled. |
21025 | Applications will only run on Windows NT/2000/XP!" 1>&2 | |
a72a4bfa | 21026 | wxUSE_UNICODE_MSLU=no |
a0b9e27f | 21027 | |
a72a4bfa VS |
21028 | fi |
21029 | ||
21030 | fi | |
10f2d63a VZ |
21031 | fi |
21032 | ||
10f2d63a | 21033 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
a0b9e27f | 21034 | cat >> confdefs.h <<\EOF |
10f2d63a | 21035 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
a0b9e27f | 21036 | EOF |
10f2d63a VZ |
21037 | |
21038 | fi | |
21039 | ||
8284b0c5 MB |
21040 | |
21041 | ||
10f2d63a VZ |
21042 | IODBC_C_SRC="" |
21043 | if test "$wxUSE_ODBC" = "yes" ; then | |
a0b9e27f | 21044 | cat >> confdefs.h <<\EOF |
10f2d63a | 21045 | #define wxUSE_ODBC 1 |
a0b9e27f | 21046 | EOF |
10f2d63a VZ |
21047 | |
21048 | WXODBCFLAG="-D_IODBC_" | |
21049 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
21050 | fi |
21051 | ||
8284b0c5 | 21052 | |
10f2d63a | 21053 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
a0b9e27f | 21054 | cat >> confdefs.h <<\EOF |
10f2d63a | 21055 | #define wxUSE_POSTSCRIPT 1 |
a0b9e27f | 21056 | EOF |
10f2d63a VZ |
21057 | |
21058 | fi | |
21059 | ||
a0b9e27f | 21060 | cat >> confdefs.h <<\EOF |
10f2d63a | 21061 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
a0b9e27f | 21062 | EOF |
10f2d63a | 21063 | |
8284b0c5 | 21064 | |
a0b9e27f | 21065 | cat >> confdefs.h <<\EOF |
10f2d63a | 21066 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
a0b9e27f | 21067 | EOF |
10f2d63a | 21068 | |
8284b0c5 MB |
21069 | |
21070 | ||
10f2d63a | 21071 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
a0b9e27f | 21072 | cat >> confdefs.h <<\EOF |
10f2d63a | 21073 | #define wxUSE_CONSTRAINTS 1 |
a0b9e27f | 21074 | EOF |
10f2d63a VZ |
21075 | |
21076 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
21077 | fi | |
21078 | ||
21079 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
fc26f4ab | 21080 | |
8284b0c5 | 21081 | |
bb811f17 | 21082 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then |
a0b9e27f | 21083 | cat >> confdefs.h <<\EOF |
10f2d63a | 21084 | #define wxUSE_MDI_ARCHITECTURE 1 |
a0b9e27f | 21085 | EOF |
10f2d63a | 21086 | |
bb811f17 JS |
21087 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
21088 | fi | |
10f2d63a VZ |
21089 | fi |
21090 | ||
21091 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
a0b9e27f | 21092 | cat >> confdefs.h <<\EOF |
10f2d63a | 21093 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
a0b9e27f | 21094 | EOF |
10f2d63a VZ |
21095 | |
21096 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
21097 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
21098 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
21099 | fi | |
21100 | fi | |
21101 | ||
21102 | if test "$wxUSE_HELP" = "yes"; then | |
a0b9e27f | 21103 | cat >> confdefs.h <<\EOF |
10f2d63a | 21104 | #define wxUSE_HELP 1 |
a0b9e27f | 21105 | EOF |
10f2d63a VZ |
21106 | |
21107 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 21108 | |
77e13408 | 21109 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 21110 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
a0b9e27f | 21111 | cat >> confdefs.h <<\EOF |
29fd3c0c | 21112 | #define wxUSE_MS_HTML_HELP 1 |
a0b9e27f | 21113 | EOF |
29fd3c0c | 21114 | |
3e44f09d | 21115 | fi |
3379ed37 | 21116 | fi |
031d8228 VS |
21117 | |
21118 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
21119 | if test "$wxUSE_HTML" = "yes"; then | |
a0b9e27f | 21120 | cat >> confdefs.h <<\EOF |
031d8228 | 21121 | #define wxUSE_WXHTML_HELP 1 |
a0b9e27f | 21122 | EOF |
031d8228 VS |
21123 | |
21124 | else | |
a0b9e27f | 21125 | echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2 |
031d8228 VS |
21126 | wxUSE_WXHTML_HELP=no |
21127 | fi | |
21128 | fi | |
10f2d63a VZ |
21129 | fi |
21130 | ||
21131 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
21132 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
a0b9e27f | 21133 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 21134 | else |
a0b9e27f | 21135 | cat >> confdefs.h <<\EOF |
10f2d63a | 21136 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
a0b9e27f | 21137 | EOF |
10f2d63a VZ |
21138 | |
21139 | fi | |
21140 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
21141 | fi | |
21142 | ||
21143 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
a0b9e27f | 21144 | cat >> confdefs.h <<\EOF |
10f2d63a | 21145 | #define wxUSE_PROLOGIO 1 |
a0b9e27f | 21146 | EOF |
10f2d63a | 21147 | |
2b5f62a0 | 21148 | ALL_OBJECTS="$ALL_OBJECTS parser.o" |
10f2d63a VZ |
21149 | fi |
21150 | ||
21151 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
e334d0ea | 21152 | if test "$wxUSE_NANOX" = "yes"; then |
a0b9e27f | 21153 | echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2 |
2b5f62a0 VZ |
21154 | else |
21155 | cat >> confdefs.h <<\EOF | |
10f2d63a | 21156 | #define wxUSE_RESOURCES 1 |
a0b9e27f | 21157 | EOF |
10f2d63a | 21158 | |
2b5f62a0 VZ |
21159 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" |
21160 | fi | |
21161 | if test "$wxUSE_PROLOGIO" != "yes" ; then | |
21162 | ALL_OBJECTS="$ALL_OBJECTS parser.o" | |
e334d0ea | 21163 | fi |
10f2d63a VZ |
21164 | fi |
21165 | ||
21166 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
a0b9e27f | 21167 | cat >> confdefs.h <<\EOF |
10f2d63a | 21168 | #define wxUSE_X_RESOURCES 1 |
a0b9e27f | 21169 | EOF |
10f2d63a VZ |
21170 | |
21171 | fi | |
21172 | ||
8284b0c5 | 21173 | |
77e13408 RL |
21174 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
21175 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
3bce6687 | 21176 | -o "$wxUSE_OLE" = "yes" \ |
77e13408 | 21177 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then |
a0b9e27f | 21178 | for ac_hdr in ole2.h |
10f2d63a | 21179 | do |
a0b9e27f MB |
21180 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
21181 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
ac0c4cc3 | 21182 | echo "configure:21183: checking for $ac_hdr" >&5 |
a0b9e27f MB |
21183 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
21184 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21185 | else | |
21186 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 21187 | #line 21188 "configure" |
10f2d63a | 21188 | #include "confdefs.h" |
a0b9e27f MB |
21189 | #include <$ac_hdr> |
21190 | EOF | |
21191 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
ac0c4cc3 | 21192 | { (eval echo configure:21193: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
21193 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
21194 | if test -z "$ac_err"; then | |
21195 | rm -rf conftest* | |
21196 | eval "ac_cv_header_$ac_safe=yes" | |
21197 | else | |
21198 | echo "$ac_err" >&5 | |
21199 | echo "configure: failed program was:" >&5 | |
10f2d63a | 21200 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
21201 | rm -rf conftest* |
21202 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 21203 | fi |
a0b9e27f | 21204 | rm -f conftest* |
10f2d63a | 21205 | fi |
a0b9e27f MB |
21206 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
21207 | echo "$ac_t""yes" 1>&6 | |
21208 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
21209 | cat >> confdefs.h <<EOF | |
21210 | #define $ac_tr_hdr 1 | |
21211 | EOF | |
21212 | ||
21213 | else | |
21214 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
21215 | fi |
21216 | done | |
21217 | ||
8284b0c5 | 21218 | |
2b9bdf71 VZ |
21219 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
21220 | if test "$GCC" = yes ; then | |
a0b9e27f MB |
21221 | |
21222 | ac_ext=C | |
21223 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8284b0c5 | 21224 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
21225 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
21226 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
21227 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 MB |
21228 | |
21229 | ||
a0b9e27f | 21230 | echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6 |
ac0c4cc3 | 21231 | echo "configure:21232: checking if g++ requires -fvtable-thunks" >&5 |
a0b9e27f | 21232 | cat > conftest.$ac_ext <<EOF |
ac0c4cc3 | 21233 | #line 21234 "configure" |
8284b0c5 MB |
21234 | #include "confdefs.h" |
21235 | #include <windows.h> | |
21236 | #include <ole2.h> | |
a0b9e27f | 21237 | int main() { |
8284b0c5 | 21238 | |
a0b9e27f MB |
21239 | ; return 0; } |
21240 | EOF | |
ac0c4cc3 | 21241 | if { (eval echo configure:21242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
21242 | rm -rf conftest* |
21243 | echo "$ac_t""no" 1>&6 | |
21244 | else | |
21245 | echo "configure: failed program was:" >&5 | |
21246 | cat conftest.$ac_ext >&5 | |
21247 | rm -rf conftest* | |
21248 | echo "$ac_t""yes" 1>&6 | |
8284b0c5 MB |
21249 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
21250 | fi | |
a0b9e27f | 21251 | rm -f conftest* |
8284b0c5 | 21252 | ac_ext=c |
a0b9e27f | 21253 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
8284b0c5 | 21254 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
21255 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
21256 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
21257 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 21258 | |
2b9bdf71 | 21259 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" |
3d63bc3a | 21260 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
a0b9e27f | 21261 | cat >> confdefs.h <<\EOF |
4f11a343 | 21262 | #define wxUSE_OLE 1 |
a0b9e27f | 21263 | EOF |
4f11a343 | 21264 | |
8284b0c5 | 21265 | |
2b9bdf71 VZ |
21266 | fi |
21267 | ||
a0b9e27f | 21268 | cat >> confdefs.h <<\EOF |
2b9bdf71 | 21269 | #define wxUSE_DATAOBJ 1 |
a0b9e27f | 21270 | EOF |
2b9bdf71 VZ |
21271 | |
21272 | else | |
a0b9e27f | 21273 | echo "configure: warning: Some features disabled because OLE headers not found" 1>&2 |
2b9bdf71 VZ |
21274 | |
21275 | wxUSE_CLIPBOARD=no | |
21276 | wxUSE_DRAG_AND_DROP=no | |
21277 | wxUSE_DATAOBJ=no | |
3bce6687 JS |
21278 | wxUSE_OLE=no |
21279 | fi | |
21280 | ||
21281 | if test "$wxUSE_METAFILE" = "yes"; then | |
21282 | cat >> confdefs.h <<\EOF | |
21283 | #define wxUSE_METAFILE 1 | |
21284 | EOF | |
21285 | ||
21286 | ||
21287 | cat >> confdefs.h <<\EOF | |
21288 | #define wxUSE_ENH_METAFILE 1 | |
21289 | EOF | |
21290 | ||
21291 | fi | |
21292 | fi | |
21293 | ||
2b9bdf71 VZ |
21294 | if test "$wxUSE_IPC" = "yes"; then |
21295 | if test "$wxUSE_SOCKETS" != "yes"; then | |
a0b9e27f | 21296 | echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2 |
2b9bdf71 VZ |
21297 | fi |
21298 | ||
a0b9e27f | 21299 | cat >> confdefs.h <<\EOF |
2b9bdf71 | 21300 | #define wxUSE_IPC 1 |
a0b9e27f | 21301 | EOF |
2b9bdf71 VZ |
21302 | |
21303 | fi | |
21304 | ||
21305 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
6c657b52 | 21306 | if test "$wxUSE_MGL" = 1; then |
a0b9e27f | 21307 | echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
21308 | wxUSE_CLIPBOARD=no |
21309 | fi | |
21310 | ||
21311 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
a0b9e27f | 21312 | cat >> confdefs.h <<\EOF |
2b9bdf71 | 21313 | #define wxUSE_CLIPBOARD 1 |
a0b9e27f | 21314 | EOF |
2b9bdf71 | 21315 | |
8284b0c5 | 21316 | |
a0b9e27f | 21317 | cat >> confdefs.h <<\EOF |
673f4220 | 21318 | #define wxUSE_DATAOBJ 1 |
a0b9e27f | 21319 | EOF |
673f4220 | 21320 | |
6c657b52 | 21321 | fi |
2b9bdf71 VZ |
21322 | fi |
21323 | ||
21324 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
21325 | if test "$wxUSE_GTK" = 1; then | |
21326 | if test "$WXGTK12" != 1; then | |
a0b9e27f | 21327 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2 |
10f2d63a VZ |
21328 | wxUSE_DRAG_AND_DROP=no |
21329 | fi | |
21330 | fi | |
21331 | ||
2b9bdf71 | 21332 | if test "$wxUSE_MOTIF" = 1; then |
a0b9e27f | 21333 | echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2 |
2b9bdf71 VZ |
21334 | wxUSE_DRAG_AND_DROP=no |
21335 | fi | |
21336 | ||
f79bd02d | 21337 | if test "$wxUSE_X11" = 1; then |
a0b9e27f | 21338 | echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2 |
f79bd02d JS |
21339 | wxUSE_DRAG_AND_DROP=no |
21340 | fi | |
21341 | ||
6c657b52 | 21342 | if test "$wxUSE_MGL" = 1; then |
a0b9e27f | 21343 | echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
21344 | wxUSE_DRAG_AND_DROP=no |
21345 | fi | |
21346 | ||
10f2d63a | 21347 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
a0b9e27f | 21348 | cat >> confdefs.h <<\EOF |
10f2d63a | 21349 | #define wxUSE_DRAG_AND_DROP 1 |
a0b9e27f | 21350 | EOF |
10f2d63a VZ |
21351 | |
21352 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
21353 | fi | |
21354 | ||
21355 | fi | |
21356 | ||
21357 | if test "$wxUSE_SPLINES" = "yes" ; then | |
a0b9e27f | 21358 | cat >> confdefs.h <<\EOF |
10f2d63a | 21359 | #define wxUSE_SPLINES 1 |
a0b9e27f | 21360 | EOF |
10f2d63a VZ |
21361 | |
21362 | fi | |
21363 | ||
8284b0c5 | 21364 | |
1e6feb95 VZ |
21365 | USES_CONTROLS=0 |
21366 | if test "$wxUSE_CONTROLS" = "yes"; then | |
21367 | USES_CONTROLS=1 | |
21368 | fi | |
21369 | ||
10f2d63a | 21370 | if test "$wxUSE_ACCEL" = "yes"; then |
a0b9e27f | 21371 | cat >> confdefs.h <<\EOF |
10f2d63a | 21372 | #define wxUSE_ACCEL 1 |
a0b9e27f | 21373 | EOF |
10f2d63a | 21374 | |
1e6feb95 VZ |
21375 | USES_CONTROLS=1 |
21376 | fi | |
21377 | ||
21378 | if test "$wxUSE_BUTTON" = "yes"; then | |
a0b9e27f | 21379 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21380 | #define wxUSE_BUTTON 1 |
a0b9e27f | 21381 | EOF |
1e6feb95 VZ |
21382 | |
21383 | USES_CONTROLS=1 | |
21384 | fi | |
21385 | ||
21386 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
a0b9e27f | 21387 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21388 | #define wxUSE_BMPBUTTON 1 |
a0b9e27f | 21389 | EOF |
1e6feb95 VZ |
21390 | |
21391 | USES_CONTROLS=1 | |
21392 | fi | |
21393 | ||
21394 | if test "$wxUSE_CALCTRL" = "yes"; then | |
a0b9e27f | 21395 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21396 | #define wxUSE_CALENDARCTRL 1 |
a0b9e27f | 21397 | EOF |
1e6feb95 VZ |
21398 | |
21399 | USES_CONTROLS=1 | |
21400 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
21401 | fi |
21402 | ||
21403 | if test "$wxUSE_CARET" = "yes"; then | |
a0b9e27f | 21404 | cat >> confdefs.h <<\EOF |
10f2d63a | 21405 | #define wxUSE_CARET 1 |
a0b9e27f | 21406 | EOF |
10f2d63a | 21407 | |
1e6feb95 | 21408 | USES_CONTROLS=1 |
10f2d63a VZ |
21409 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
21410 | fi | |
21411 | ||
21412 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
a0b9e27f | 21413 | cat >> confdefs.h <<\EOF |
10f2d63a | 21414 | #define wxUSE_COMBOBOX 1 |
a0b9e27f | 21415 | EOF |
10f2d63a | 21416 | |
1e6feb95 | 21417 | USES_CONTROLS=1 |
10f2d63a VZ |
21418 | fi |
21419 | ||
21420 | if test "$wxUSE_CHOICE" = "yes"; then | |
a0b9e27f | 21421 | cat >> confdefs.h <<\EOF |
10f2d63a | 21422 | #define wxUSE_CHOICE 1 |
a0b9e27f | 21423 | EOF |
10f2d63a | 21424 | |
1e6feb95 | 21425 | USES_CONTROLS=1 |
10f2d63a VZ |
21426 | fi |
21427 | ||
21428 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
a0b9e27f | 21429 | cat >> confdefs.h <<\EOF |
10f2d63a | 21430 | #define wxUSE_CHECKBOX 1 |
a0b9e27f | 21431 | EOF |
10f2d63a | 21432 | |
1e6feb95 | 21433 | USES_CONTROLS=1 |
10f2d63a VZ |
21434 | fi |
21435 | ||
21436 | if test "$wxUSE_CHECKLST" = "yes"; then | |
a0b9e27f | 21437 | cat >> confdefs.h <<\EOF |
10f2d63a | 21438 | #define wxUSE_CHECKLISTBOX 1 |
a0b9e27f | 21439 | EOF |
10f2d63a | 21440 | |
1e6feb95 | 21441 | USES_CONTROLS=1 |
10f2d63a VZ |
21442 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
21443 | fi | |
21444 | ||
da494b40 MB |
21445 | if test "$wxUSE_DISPLAY" = "yes"; then |
21446 | cat >> confdefs.h <<\EOF | |
21447 | #define wxUSE_DISPLAY 1 | |
21448 | EOF | |
21449 | ||
21450 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display" | |
21451 | fi | |
21452 | ||
10f2d63a | 21453 | if test "$wxUSE_GAUGE" = "yes"; then |
a0b9e27f | 21454 | cat >> confdefs.h <<\EOF |
10f2d63a | 21455 | #define wxUSE_GAUGE 1 |
a0b9e27f | 21456 | EOF |
10f2d63a | 21457 | |
1e6feb95 | 21458 | USES_CONTROLS=1 |
10f2d63a VZ |
21459 | fi |
21460 | ||
d6a55c4b VZ |
21461 | if test "$wxUSE_NEW_GRID" = "yes"; then |
21462 | wxUSE_GRID="yes" | |
a0b9e27f | 21463 | cat >> confdefs.h <<\EOF |
d6a55c4b | 21464 | #define wxUSE_NEW_GRID 1 |
a0b9e27f | 21465 | EOF |
10f2d63a | 21466 | |
1e6feb95 | 21467 | USES_CONTROLS=1 |
d6a55c4b | 21468 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
21469 | fi |
21470 | ||
d6a55c4b | 21471 | if test "$wxUSE_GRID" = "yes"; then |
a0b9e27f | 21472 | cat >> confdefs.h <<\EOF |
d6a55c4b | 21473 | #define wxUSE_GRID 1 |
a0b9e27f | 21474 | EOF |
10f2d63a | 21475 | |
1e6feb95 | 21476 | USES_CONTROLS=1 |
d6a55c4b | 21477 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
21478 | fi |
21479 | ||
21480 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
a0b9e27f | 21481 | cat >> confdefs.h <<\EOF |
10f2d63a | 21482 | #define wxUSE_IMAGLIST 1 |
a0b9e27f | 21483 | EOF |
10f2d63a VZ |
21484 | |
21485 | fi | |
21486 | ||
21487 | if test "$wxUSE_LISTBOX" = "yes"; then | |
a0b9e27f | 21488 | cat >> confdefs.h <<\EOF |
10f2d63a | 21489 | #define wxUSE_LISTBOX 1 |
a0b9e27f | 21490 | EOF |
10f2d63a | 21491 | |
1e6feb95 | 21492 | USES_CONTROLS=1 |
10f2d63a VZ |
21493 | fi |
21494 | ||
21495 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
21496 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
a0b9e27f | 21497 | cat >> confdefs.h <<\EOF |
10f2d63a | 21498 | #define wxUSE_LISTCTRL 1 |
a0b9e27f | 21499 | EOF |
10f2d63a | 21500 | |
1e6feb95 | 21501 | USES_CONTROLS=1 |
10f2d63a VZ |
21502 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
21503 | else | |
a0b9e27f | 21504 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
21505 | fi |
21506 | fi | |
21507 | ||
21508 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
a0b9e27f | 21509 | cat >> confdefs.h <<\EOF |
10f2d63a | 21510 | #define wxUSE_NOTEBOOK 1 |
a0b9e27f | 21511 | EOF |
10f2d63a | 21512 | |
1e6feb95 | 21513 | USES_CONTROLS=1 |
10f2d63a VZ |
21514 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
21515 | fi | |
21516 | ||
24176f2c | 21517 | if test "$wxUSE_PROPSHEET" = "yes"; then |
a0b9e27f | 21518 | cat >> confdefs.h <<\EOF |
24176f2c | 21519 | #define wxUSE_PROPSHEET 1 |
a0b9e27f | 21520 | EOF |
24176f2c GD |
21521 | |
21522 | USES_CONTROLS=1 | |
21523 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist" | |
21524 | fi | |
21525 | ||
10f2d63a | 21526 | if test "$wxUSE_RADIOBOX" = "yes"; then |
a0b9e27f | 21527 | cat >> confdefs.h <<\EOF |
10f2d63a | 21528 | #define wxUSE_RADIOBOX 1 |
a0b9e27f | 21529 | EOF |
10f2d63a | 21530 | |
1e6feb95 | 21531 | USES_CONTROLS=1 |
10f2d63a VZ |
21532 | fi |
21533 | ||
21534 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
a0b9e27f | 21535 | cat >> confdefs.h <<\EOF |
10f2d63a | 21536 | #define wxUSE_RADIOBTN 1 |
a0b9e27f | 21537 | EOF |
10f2d63a | 21538 | |
1e6feb95 | 21539 | USES_CONTROLS=1 |
10f2d63a VZ |
21540 | fi |
21541 | ||
21542 | if test "$wxUSE_SASH" = "yes"; then | |
a0b9e27f | 21543 | cat >> confdefs.h <<\EOF |
10f2d63a | 21544 | #define wxUSE_SASH 1 |
a0b9e27f | 21545 | EOF |
10f2d63a VZ |
21546 | |
21547 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
21548 | fi | |
21549 | ||
21550 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
a0b9e27f | 21551 | cat >> confdefs.h <<\EOF |
10f2d63a | 21552 | #define wxUSE_SCROLLBAR 1 |
a0b9e27f | 21553 | EOF |
10f2d63a | 21554 | |
1e6feb95 | 21555 | USES_CONTROLS=1 |
741a9306 | 21556 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
21557 | fi |
21558 | ||
21559 | if test "$wxUSE_SLIDER" = "yes"; then | |
a0b9e27f | 21560 | cat >> confdefs.h <<\EOF |
10f2d63a | 21561 | #define wxUSE_SLIDER 1 |
a0b9e27f | 21562 | EOF |
10f2d63a | 21563 | |
1e6feb95 | 21564 | USES_CONTROLS=1 |
10f2d63a VZ |
21565 | fi |
21566 | ||
21567 | if test "$wxUSE_SPINBTN" = "yes"; then | |
a0b9e27f | 21568 | cat >> confdefs.h <<\EOF |
10f2d63a | 21569 | #define wxUSE_SPINBTN 1 |
a0b9e27f | 21570 | EOF |
10f2d63a | 21571 | |
1e6feb95 | 21572 | USES_CONTROLS=1 |
10f2d63a VZ |
21573 | fi |
21574 | ||
56cfaa52 | 21575 | if test "$wxUSE_SPINCTRL" = "yes"; then |
a0b9e27f | 21576 | cat >> confdefs.h <<\EOF |
56cfaa52 | 21577 | #define wxUSE_SPINCTRL 1 |
a0b9e27f | 21578 | EOF |
56cfaa52 | 21579 | |
1e6feb95 | 21580 | USES_CONTROLS=1 |
56cfaa52 RR |
21581 | fi |
21582 | ||
10f2d63a | 21583 | if test "$wxUSE_SPLITTER" = "yes"; then |
a0b9e27f | 21584 | cat >> confdefs.h <<\EOF |
10f2d63a | 21585 | #define wxUSE_SPLITTER 1 |
a0b9e27f | 21586 | EOF |
10f2d63a VZ |
21587 | |
21588 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
21589 | fi | |
21590 | ||
21591 | if test "$wxUSE_STATBMP" = "yes"; then | |
a0b9e27f | 21592 | cat >> confdefs.h <<\EOF |
10f2d63a | 21593 | #define wxUSE_STATBMP 1 |
a0b9e27f | 21594 | EOF |
10f2d63a | 21595 | |
1e6feb95 | 21596 | USES_CONTROLS=1 |
10f2d63a VZ |
21597 | fi |
21598 | ||
21599 | if test "$wxUSE_STATBOX" = "yes"; then | |
a0b9e27f | 21600 | cat >> confdefs.h <<\EOF |
10f2d63a | 21601 | #define wxUSE_STATBOX 1 |
a0b9e27f | 21602 | EOF |
10f2d63a | 21603 | |
1e6feb95 VZ |
21604 | USES_CONTROLS=1 |
21605 | fi | |
21606 | ||
21607 | if test "$wxUSE_STATTEXT" = "yes"; then | |
a0b9e27f | 21608 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21609 | #define wxUSE_STATTEXT 1 |
a0b9e27f | 21610 | EOF |
1e6feb95 VZ |
21611 | |
21612 | USES_CONTROLS=1 | |
10f2d63a VZ |
21613 | fi |
21614 | ||
21615 | if test "$wxUSE_STATLINE" = "yes"; then | |
89e6bf6d | 21616 | cat >> confdefs.h <<\EOF |
10f2d63a | 21617 | #define wxUSE_STATLINE 1 |
a0b9e27f | 21618 | EOF |
10f2d63a | 21619 | |
89e6bf6d | 21620 | USES_CONTROLS=1 |
10f2d63a VZ |
21621 | fi |
21622 | ||
21623 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
a0b9e27f | 21624 | cat >> confdefs.h <<\EOF |
10f2d63a | 21625 | #define wxUSE_STATUSBAR 1 |
a0b9e27f | 21626 | EOF |
10f2d63a | 21627 | |
1e6feb95 | 21628 | USES_CONTROLS=1 |
698dcdb6 | 21629 | |
2286341c | 21630 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
21631 | fi |
21632 | ||
21633 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
a0b9e27f | 21634 | cat >> confdefs.h <<\EOF |
10f2d63a | 21635 | #define wxUSE_TAB_DIALOG 1 |
a0b9e27f | 21636 | EOF |
10f2d63a VZ |
21637 | |
21638 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
21639 | fi | |
21640 | ||
1e6feb95 | 21641 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
a0b9e27f | 21642 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21643 | #define wxUSE_TEXTCTRL 1 |
a0b9e27f | 21644 | EOF |
1e6feb95 VZ |
21645 | |
21646 | USES_CONTROLS=1 | |
21647 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
21648 | fi | |
21649 | ||
1db8dc4a | 21650 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
ac0c4cc3 | 21651 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
a0b9e27f | 21652 | echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2 |
156b2523 GD |
21653 | wxUSE_TOGGLEBTN=no |
21654 | fi | |
21655 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
a0b9e27f | 21656 | echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2 |
a45d7ab7 GD |
21657 | wxUSE_TOGGLEBTN=no |
21658 | fi | |
21659 | ||
21660 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
a0b9e27f | 21661 | cat >> confdefs.h <<\EOF |
1db8dc4a | 21662 | #define wxUSE_TOGGLEBTN 1 |
a0b9e27f | 21663 | EOF |
1db8dc4a | 21664 | |
1e6feb95 | 21665 | USES_CONTROLS=1 |
a45d7ab7 | 21666 | fi |
1db8dc4a VZ |
21667 | fi |
21668 | ||
360d6699 | 21669 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
a0b9e27f | 21670 | cat >> confdefs.h <<\EOF |
360d6699 | 21671 | #define wxUSE_TOOLBAR_SIMPLE 1 |
a0b9e27f | 21672 | EOF |
360d6699 VZ |
21673 | |
21674 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 21675 | USES_CONTROLS=1 |
360d6699 VZ |
21676 | fi |
21677 | ||
10f2d63a | 21678 | if test "$wxUSE_TOOLBAR" = "yes"; then |
a0b9e27f | 21679 | cat >> confdefs.h <<\EOF |
10f2d63a | 21680 | #define wxUSE_TOOLBAR 1 |
a0b9e27f | 21681 | EOF |
10f2d63a | 21682 | |
1e6feb95 | 21683 | USES_CONTROLS=1 |
698dcdb6 | 21684 | |
360d6699 VZ |
21685 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
21686 | wxUSE_TOOLBAR_NATIVE="yes" | |
21687 | fi | |
21688 | ||
1e6feb95 | 21689 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
a0b9e27f | 21690 | cat >> confdefs.h <<\EOF |
360d6699 | 21691 | #define wxUSE_TOOLBAR_NATIVE 1 |
a0b9e27f | 21692 | EOF |
360d6699 | 21693 | |
1e6feb95 VZ |
21694 | USES_CONTROLS=1 |
21695 | fi | |
21696 | ||
21697 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
21698 | fi |
21699 | ||
10f2d63a VZ |
21700 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
21701 | if test "$wxUSE_MOTIF" = 1; then | |
a0b9e27f | 21702 | echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2 |
10f2d63a | 21703 | else |
89e6bf6d VZ |
21704 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
21705 | echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2 | |
10f2d63a | 21706 | else |
89e6bf6d | 21707 | cat >> confdefs.h <<\EOF |
10f2d63a | 21708 | #define wxUSE_TOOLTIPS 1 |
a0b9e27f | 21709 | EOF |
10f2d63a VZ |
21710 | |
21711 | fi | |
21712 | fi | |
21713 | fi | |
21714 | ||
21715 | if test "$wxUSE_TREECTRL" = "yes"; then | |
21716 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
a0b9e27f | 21717 | cat >> confdefs.h <<\EOF |
10f2d63a | 21718 | #define wxUSE_TREECTRL 1 |
a0b9e27f | 21719 | EOF |
10f2d63a | 21720 | |
1e6feb95 | 21721 | USES_CONTROLS=1 |
10f2d63a VZ |
21722 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
21723 | else | |
a0b9e27f | 21724 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
21725 | fi |
21726 | fi | |
21727 | ||
9f41d601 | 21728 | if test "$wxUSE_POPUPWIN" = "yes"; then |
ac0c4cc3 | 21729 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
a0b9e27f | 21730 | echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2 |
6abe4b65 | 21731 | else |
485cf710 | 21732 | if test "$wxUSE_MOTIF" = 1; then |
a0b9e27f | 21733 | echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2 |
485cf710 | 21734 | else |
3c011993 | 21735 | if test "$wxUSE_PM" = 1; then |
a0b9e27f | 21736 | echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2 |
3bd8fb5f | 21737 | else |
a0b9e27f | 21738 | cat >> confdefs.h <<\EOF |
9f41d601 | 21739 | #define wxUSE_POPUPWIN 1 |
a0b9e27f | 21740 | EOF |
9f41d601 | 21741 | |
8284b0c5 | 21742 | |
3c011993 VZ |
21743 | USES_CONTROLS=1 |
21744 | fi | |
485cf710 | 21745 | fi |
6abe4b65 | 21746 | fi |
9f41d601 RR |
21747 | fi |
21748 | ||
dd964dcc | 21749 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
3c011993 | 21750 | if test "$wxUSE_PM" = 1; then |
a0b9e27f | 21751 | echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2 |
3bd8fb5f | 21752 | else |
a0b9e27f | 21753 | cat >> confdefs.h <<\EOF |
dd964dcc | 21754 | #define wxUSE_TIPWINDOW 1 |
a0b9e27f | 21755 | EOF |
dd964dcc | 21756 | |
3c011993 | 21757 | fi |
dd964dcc VZ |
21758 | fi |
21759 | ||
1e6feb95 | 21760 | if test "$USES_CONTROLS" = 1; then |
a0b9e27f | 21761 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21762 | #define wxUSE_CONTROLS 1 |
a0b9e27f | 21763 | EOF |
10f2d63a | 21764 | |
10f2d63a VZ |
21765 | fi |
21766 | ||
8284b0c5 | 21767 | |
24176f2c | 21768 | if test "$wxUSE_TREELAYOUT" = "yes"; then |
a0b9e27f | 21769 | cat >> confdefs.h <<\EOF |
24176f2c | 21770 | #define wxUSE_TREELAYOUT 1 |
a0b9e27f | 21771 | EOF |
24176f2c GD |
21772 | |
21773 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay" | |
21774 | fi | |
1e6feb95 | 21775 | |
24fd6d87 | 21776 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
a0b9e27f | 21777 | cat >> confdefs.h <<\EOF |
24fd6d87 | 21778 | #define wxUSE_DRAGIMAGE 1 |
a0b9e27f | 21779 | EOF |
24fd6d87 VZ |
21780 | |
21781 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
21782 | fi | |
21783 | ||
1e6feb95 | 21784 | if test "$wxUSE_MENUS" = "yes"; then |
a0b9e27f | 21785 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21786 | #define wxUSE_MENUS 1 |
a0b9e27f | 21787 | EOF |
10f2d63a | 21788 | |
1e6feb95 | 21789 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
21790 | fi |
21791 | ||
1e6feb95 | 21792 | if test "$wxUSE_METAFILE" = "yes"; then |
a0b9e27f | 21793 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21794 | #define wxUSE_METAFILE 1 |
a0b9e27f | 21795 | EOF |
10f2d63a | 21796 | |
10f2d63a VZ |
21797 | fi |
21798 | ||
1e6feb95 | 21799 | if test "$wxUSE_MIMETYPE" = "yes"; then |
a0b9e27f | 21800 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21801 | #define wxUSE_MIMETYPE 1 |
a0b9e27f | 21802 | EOF |
10f2d63a | 21803 | |
10f2d63a VZ |
21804 | fi |
21805 | ||
3e44f09d | 21806 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
a0b9e27f | 21807 | cat >> confdefs.h <<\EOF |
3e44f09d | 21808 | #define wxUSE_SYSTEM_OPTIONS 1 |
a0b9e27f | 21809 | EOF |
3e44f09d | 21810 | |
321d2b14 VZ |
21811 | if test "$TOOLKIT" = "MSW"; then |
21812 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" | |
21813 | fi | |
21814 | ||
3e44f09d VZ |
21815 | fi |
21816 | ||
4cdb0ab0 | 21817 | if test "$wxUSE_PROTOCOL" = "yes"; then |
3954f9ca | 21818 | if test "$wxUSE_SOCKETS" != "yes"; then |
a0b9e27f | 21819 | echo "configure: warning: Protocol classes require sockets... disabled" 1>&2 |
3954f9ca VS |
21820 | wxUSE_PROTOCOL=no |
21821 | fi | |
21822 | ||
21823 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
a0b9e27f | 21824 | cat >> confdefs.h <<\EOF |
4cdb0ab0 | 21825 | #define wxUSE_PROTOCOL 1 |
a0b9e27f | 21826 | EOF |
4cdb0ab0 | 21827 | |
8284b0c5 | 21828 | |
3954f9ca | 21829 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then |
a0b9e27f | 21830 | cat >> confdefs.h <<\EOF |
4cdb0ab0 | 21831 | #define wxUSE_PROTOCOL_HTTP 1 |
a0b9e27f | 21832 | EOF |
4cdb0ab0 | 21833 | |
3954f9ca VS |
21834 | fi |
21835 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
a0b9e27f | 21836 | cat >> confdefs.h <<\EOF |
4cdb0ab0 | 21837 | #define wxUSE_PROTOCOL_FTP 1 |
a0b9e27f | 21838 | EOF |
4cdb0ab0 | 21839 | |
3954f9ca VS |
21840 | fi |
21841 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
a0b9e27f | 21842 | cat >> confdefs.h <<\EOF |
3954f9ca | 21843 | #define wxUSE_PROTOCOL_FILE 1 |
a0b9e27f | 21844 | EOF |
3954f9ca VS |
21845 | |
21846 | fi | |
4cdb0ab0 | 21847 | fi |
3954f9ca VS |
21848 | fi |
21849 | ||
21850 | if test "$wxUSE_URL" = "yes"; then | |
21851 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
a0b9e27f | 21852 | echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2 |
3954f9ca VS |
21853 | wxUSE_URL=no |
21854 | fi | |
21855 | if test "$wxUSE_URL" = "yes"; then | |
a0b9e27f | 21856 | cat >> confdefs.h <<\EOF |
3954f9ca | 21857 | #define wxUSE_URL 1 |
a0b9e27f | 21858 | EOF |
4cdb0ab0 VS |
21859 | |
21860 | fi | |
21861 | fi | |
21862 | ||
10f2d63a | 21863 | if test "$wxUSE_MINIFRAME" = "yes"; then |
a0b9e27f | 21864 | cat >> confdefs.h <<\EOF |
10f2d63a | 21865 | #define wxUSE_MINIFRAME 1 |
a0b9e27f | 21866 | EOF |
10f2d63a VZ |
21867 | |
21868 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
21869 | fi | |
21870 | ||
21871 | if test "$wxUSE_HTML" = "yes"; then | |
a0b9e27f | 21872 | cat >> confdefs.h <<\EOF |
10f2d63a | 21873 | #define wxUSE_HTML 1 |
a0b9e27f | 21874 | EOF |
10f2d63a VZ |
21875 | |
21876 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
10f2d63a VZ |
21877 | fi |
21878 | ||
21879 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
a0b9e27f | 21880 | cat >> confdefs.h <<\EOF |
1e487827 | 21881 | #define wxUSE_VALIDATORS 1 |
a0b9e27f | 21882 | EOF |
703e0a69 | 21883 | |
698dcdb6 VZ |
21884 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
21885 | fi | |
21886 | ||
edae8572 | 21887 | if test "$wxUSE_PALETTE" = "yes" ; then |
a0b9e27f | 21888 | cat >> confdefs.h <<\EOF |
edae8572 | 21889 | #define wxUSE_PALETTE 1 |
a0b9e27f | 21890 | EOF |
edae8572 VZ |
21891 | |
21892 | fi | |
21893 | ||
698dcdb6 | 21894 | if test "$wxUSE_IMAGE" = "yes" ; then |
a0b9e27f | 21895 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21896 | #define wxUSE_IMAGE 1 |
a0b9e27f | 21897 | EOF |
698dcdb6 VZ |
21898 | |
21899 | fi | |
21900 | ||
21901 | if test "$wxUSE_GIF" = "yes" ; then | |
a0b9e27f | 21902 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21903 | #define wxUSE_GIF 1 |
a0b9e27f | 21904 | EOF |
698dcdb6 VZ |
21905 | |
21906 | fi | |
21907 | ||
21908 | if test "$wxUSE_PCX" = "yes" ; then | |
a0b9e27f | 21909 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21910 | #define wxUSE_PCX 1 |
a0b9e27f | 21911 | EOF |
698dcdb6 VZ |
21912 | |
21913 | fi | |
21914 | ||
4b6b4dfc | 21915 | if test "$wxUSE_IFF" = "yes" ; then |
a0b9e27f | 21916 | cat >> confdefs.h <<\EOF |
4b6b4dfc | 21917 | #define wxUSE_IFF 1 |
a0b9e27f | 21918 | EOF |
4b6b4dfc RR |
21919 | |
21920 | fi | |
21921 | ||
698dcdb6 | 21922 | if test "$wxUSE_PNM" = "yes" ; then |
a0b9e27f | 21923 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21924 | #define wxUSE_PNM 1 |
a0b9e27f | 21925 | EOF |
698dcdb6 VZ |
21926 | |
21927 | fi | |
21928 | ||
21929 | if test "$wxUSE_XPM" = "yes" ; then | |
a0b9e27f | 21930 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21931 | #define wxUSE_XPM 1 |
a0b9e27f | 21932 | EOF |
698dcdb6 VZ |
21933 | |
21934 | fi | |
21935 | ||
658974ae | 21936 | if test "$wxUSE_ICO_CUR" = "yes" ; then |
a0b9e27f | 21937 | cat >> confdefs.h <<\EOF |
658974ae | 21938 | #define wxUSE_ICO_CUR 1 |
a0b9e27f | 21939 | EOF |
658974ae VS |
21940 | |
21941 | fi | |
21942 | ||
a72a4bfa VS |
21943 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then |
21944 | LIBS=" -lunicows $LIBS" | |
21945 | fi | |
21946 | ||
8284b0c5 | 21947 | |
1e6feb95 | 21948 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
a0b9e27f | 21949 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21950 | #define wxUSE_CHOICEDLG 1 |
a0b9e27f | 21951 | EOF |
1e6feb95 VZ |
21952 | |
21953 | fi | |
21954 | ||
21955 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
a0b9e27f | 21956 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21957 | #define wxUSE_COLOURDLG 1 |
a0b9e27f | 21958 | EOF |
1e6feb95 VZ |
21959 | |
21960 | fi | |
21961 | ||
21962 | if test "$wxUSE_FILEDLG" = "yes"; then | |
a0b9e27f | 21963 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21964 | #define wxUSE_FILEDLG 1 |
a0b9e27f | 21965 | EOF |
1e6feb95 VZ |
21966 | |
21967 | fi | |
21968 | ||
8db37e06 | 21969 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
a0b9e27f | 21970 | cat >> confdefs.h <<\EOF |
8db37e06 | 21971 | #define wxUSE_FINDREPLDLG 1 |
a0b9e27f | 21972 | EOF |
8db37e06 VZ |
21973 | |
21974 | fi | |
21975 | ||
1e6feb95 | 21976 | if test "$wxUSE_FONTDLG" = "yes"; then |
a0b9e27f | 21977 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21978 | #define wxUSE_FONTDLG 1 |
a0b9e27f | 21979 | EOF |
1e6feb95 VZ |
21980 | |
21981 | fi | |
21982 | ||
21983 | if test "$wxUSE_DIRDLG" = "yes"; then | |
ae1daed0 | 21984 | if test "$wxUSE_TREECTRL" != "yes"; then |
a0b9e27f | 21985 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 |
1e6feb95 | 21986 | else |
a0b9e27f | 21987 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21988 | #define wxUSE_DIRDLG 1 |
a0b9e27f | 21989 | EOF |
1e6feb95 | 21990 | |
1e6feb95 VZ |
21991 | fi |
21992 | fi | |
21993 | ||
21994 | if test "$wxUSE_MSGDLG" = "yes"; then | |
a0b9e27f | 21995 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21996 | #define wxUSE_MSGDLG 1 |
a0b9e27f | 21997 | EOF |
1e6feb95 VZ |
21998 | |
21999 | fi | |
22000 | ||
22001 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
a0b9e27f | 22002 | cat >> confdefs.h <<\EOF |
1e6feb95 | 22003 | #define wxUSE_NUMBERDLG 1 |
a0b9e27f | 22004 | EOF |
1e6feb95 VZ |
22005 | |
22006 | fi | |
22007 | ||
22008 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
22009 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
a0b9e27f | 22010 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 |
1e6feb95 | 22011 | else |
a0b9e27f | 22012 | cat >> confdefs.h <<\EOF |
1e6feb95 | 22013 | #define wxUSE_PROGRESSDLG 1 |
a0b9e27f | 22014 | EOF |
1e6feb95 VZ |
22015 | |
22016 | fi | |
22017 | fi | |
22018 | ||
cbca9943 | 22019 | if test "$wxUSE_SPLASH" = "yes"; then |
a0b9e27f | 22020 | cat >> confdefs.h <<\EOF |
cbca9943 | 22021 | #define wxUSE_SPLASH 1 |
a0b9e27f | 22022 | EOF |
cbca9943 VZ |
22023 | |
22024 | fi | |
22025 | ||
1e6feb95 VZ |
22026 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
22027 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
a0b9e27f | 22028 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 |
1e6feb95 | 22029 | else |
a0b9e27f | 22030 | cat >> confdefs.h <<\EOF |
1e6feb95 | 22031 | #define wxUSE_STARTUP_TIPS 1 |
a0b9e27f | 22032 | EOF |
1e6feb95 | 22033 | |
7b4a847f RR |
22034 | fi |
22035 | fi | |
579d8138 | 22036 | |
8284b0c5 | 22037 | if test "$wxUSE_TEXTDLG" = "yes"; then |
a0b9e27f | 22038 | cat >> confdefs.h <<\EOF |
8284b0c5 | 22039 | #define wxUSE_TEXTDLG 1 |
a0b9e27f | 22040 | EOF |
8284b0c5 MB |
22041 | |
22042 | fi | |
22043 | ||
22044 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
a0b9e27f | 22045 | cat >> confdefs.h <<\EOF |
8284b0c5 | 22046 | #define wxUSE_WIZARDDLG 1 |
a0b9e27f | 22047 | EOF |
8284b0c5 MB |
22048 | |
22049 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
22050 | fi | |
22051 | ||
22052 | ||
22053 | if test "$cross_compiling" = "yes"; then | |
22054 | OSINFO="\"$host\"" | |
22055 | else | |
22056 | OSINFO=`uname -s -r -m` | |
22057 | OSINFO="\"$OSINFO\"" | |
22058 | fi | |
22059 | ||
a0b9e27f | 22060 | cat >> confdefs.h <<EOF |
8284b0c5 | 22061 | #define WXWIN_OS_DESCRIPTION $OSINFO |
a0b9e27f | 22062 | EOF |
8284b0c5 MB |
22063 | |
22064 | ||
22065 | ||
22066 | if test "x$prefix" != "xNONE"; then | |
22067 | wxPREFIX=$prefix | |
22068 | else | |
22069 | wxPREFIX=$ac_default_prefix | |
22070 | fi | |
22071 | ||
a0b9e27f | 22072 | cat >> confdefs.h <<EOF |
8284b0c5 | 22073 | #define wxINSTALL_PREFIX "$wxPREFIX" |
a0b9e27f | 22074 | EOF |
8284b0c5 MB |
22075 | |
22076 | ||
52c71b80 VZ |
22077 | top_builddir=`pwd` |
22078 | ||
8284b0c5 MB |
22079 | |
22080 | ||
22081 | ||
22082 | if test "$wxUSE_MAC" = 1 ; then | |
22083 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" | |
22084 | fi | |
ac0c4cc3 DE |
22085 | if test "$wxUSE_COCOA" = 1 ; then |
22086 | LDFLAGS="$LDFLAGS -framework Cocoa -framework System" | |
22087 | fi | |
8284b0c5 MB |
22088 | |
22089 | ||
2b5f62a0 VZ |
22090 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" |
22091 | ||
22092 | have_cos=0 | |
22093 | have_floor=0 | |
22094 | for ac_func in cos | |
22095 | do | |
22096 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
ac0c4cc3 | 22097 | echo "configure:22098: checking for $ac_func" >&5 |
2b5f62a0 VZ |
22098 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
22099 | echo $ac_n "(cached) $ac_c" 1>&6 | |
22100 | else | |
22101 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 22102 | #line 22103 "configure" |
2b5f62a0 VZ |
22103 | #include "confdefs.h" |
22104 | /* System header to define __stub macros and hopefully few prototypes, | |
22105 | which can conflict with char $ac_func(); below. */ | |
22106 | #include <assert.h> | |
22107 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22108 | /* We use char because int might match the return type of a gcc2 | |
22109 | builtin and then its argument prototype would still apply. */ | |
22110 | char $ac_func(); | |
22111 | ||
22112 | int main() { | |
22113 | ||
22114 | /* The GNU C library defines this for functions which it implements | |
22115 | to always fail with ENOSYS. Some functions are actually named | |
22116 | something starting with __ and the normal name is an alias. */ | |
22117 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
22118 | choke me | |
22119 | #else | |
22120 | $ac_func(); | |
22121 | #endif | |
22122 | ||
22123 | ; return 0; } | |
22124 | EOF | |
ac0c4cc3 | 22125 | if { (eval echo configure:22126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
22126 | rm -rf conftest* |
22127 | eval "ac_cv_func_$ac_func=yes" | |
22128 | else | |
22129 | echo "configure: failed program was:" >&5 | |
22130 | cat conftest.$ac_ext >&5 | |
22131 | rm -rf conftest* | |
22132 | eval "ac_cv_func_$ac_func=no" | |
22133 | fi | |
22134 | rm -f conftest* | |
22135 | fi | |
22136 | ||
22137 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
22138 | echo "$ac_t""yes" 1>&6 | |
22139 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
22140 | cat >> confdefs.h <<EOF | |
22141 | #define $ac_tr_func 1 | |
22142 | EOF | |
22143 | have_cos=1 | |
22144 | else | |
22145 | echo "$ac_t""no" 1>&6 | |
22146 | fi | |
22147 | done | |
22148 | ||
22149 | for ac_func in floor | |
22150 | do | |
22151 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
ac0c4cc3 | 22152 | echo "configure:22153: checking for $ac_func" >&5 |
2b5f62a0 VZ |
22153 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
22154 | echo $ac_n "(cached) $ac_c" 1>&6 | |
22155 | else | |
22156 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 22157 | #line 22158 "configure" |
2b5f62a0 VZ |
22158 | #include "confdefs.h" |
22159 | /* System header to define __stub macros and hopefully few prototypes, | |
22160 | which can conflict with char $ac_func(); below. */ | |
22161 | #include <assert.h> | |
22162 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22163 | /* We use char because int might match the return type of a gcc2 | |
22164 | builtin and then its argument prototype would still apply. */ | |
22165 | char $ac_func(); | |
22166 | ||
22167 | int main() { | |
22168 | ||
22169 | /* The GNU C library defines this for functions which it implements | |
22170 | to always fail with ENOSYS. Some functions are actually named | |
22171 | something starting with __ and the normal name is an alias. */ | |
22172 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
22173 | choke me | |
22174 | #else | |
22175 | $ac_func(); | |
22176 | #endif | |
22177 | ||
22178 | ; return 0; } | |
22179 | EOF | |
ac0c4cc3 | 22180 | if { (eval echo configure:22181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
22181 | rm -rf conftest* |
22182 | eval "ac_cv_func_$ac_func=yes" | |
22183 | else | |
22184 | echo "configure: failed program was:" >&5 | |
22185 | cat conftest.$ac_ext >&5 | |
22186 | rm -rf conftest* | |
22187 | eval "ac_cv_func_$ac_func=no" | |
22188 | fi | |
22189 | rm -f conftest* | |
22190 | fi | |
22191 | ||
22192 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
22193 | echo "$ac_t""yes" 1>&6 | |
22194 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
22195 | cat >> confdefs.h <<EOF | |
22196 | #define $ac_tr_func 1 | |
22197 | EOF | |
22198 | have_floor=1 | |
22199 | else | |
22200 | echo "$ac_t""no" 1>&6 | |
22201 | fi | |
22202 | done | |
22203 | ||
22204 | echo $ac_n "checking if floating point functions link without -lm""... $ac_c" 1>&6 | |
ac0c4cc3 | 22205 | echo "configure:22206: checking if floating point functions link without -lm" >&5 |
2b5f62a0 VZ |
22206 | if test "$have_cos" = 1 -a "$have_floor" = 1; then |
22207 | echo "$ac_t""yes" 1>&6 | |
22208 | else | |
22209 | echo "$ac_t""no" 1>&6 | |
22210 | LIBS="$LIBS -lm" | |
22211 | # use different functions to avoid configure caching | |
22212 | have_sin=0 | |
22213 | have_ceil=0 | |
22214 | for ac_func in sin | |
22215 | do | |
22216 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
ac0c4cc3 | 22217 | echo "configure:22218: checking for $ac_func" >&5 |
2b5f62a0 VZ |
22218 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
22219 | echo $ac_n "(cached) $ac_c" 1>&6 | |
22220 | else | |
22221 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 22222 | #line 22223 "configure" |
2b5f62a0 VZ |
22223 | #include "confdefs.h" |
22224 | /* System header to define __stub macros and hopefully few prototypes, | |
22225 | which can conflict with char $ac_func(); below. */ | |
22226 | #include <assert.h> | |
22227 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22228 | /* We use char because int might match the return type of a gcc2 | |
22229 | builtin and then its argument prototype would still apply. */ | |
22230 | char $ac_func(); | |
22231 | ||
22232 | int main() { | |
22233 | ||
22234 | /* The GNU C library defines this for functions which it implements | |
22235 | to always fail with ENOSYS. Some functions are actually named | |
22236 | something starting with __ and the normal name is an alias. */ | |
22237 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
22238 | choke me | |
22239 | #else | |
22240 | $ac_func(); | |
22241 | #endif | |
22242 | ||
22243 | ; return 0; } | |
22244 | EOF | |
ac0c4cc3 | 22245 | if { (eval echo configure:22246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
22246 | rm -rf conftest* |
22247 | eval "ac_cv_func_$ac_func=yes" | |
22248 | else | |
22249 | echo "configure: failed program was:" >&5 | |
22250 | cat conftest.$ac_ext >&5 | |
22251 | rm -rf conftest* | |
22252 | eval "ac_cv_func_$ac_func=no" | |
22253 | fi | |
22254 | rm -f conftest* | |
22255 | fi | |
22256 | ||
22257 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
22258 | echo "$ac_t""yes" 1>&6 | |
22259 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
22260 | cat >> confdefs.h <<EOF | |
22261 | #define $ac_tr_func 1 | |
22262 | EOF | |
22263 | have_sin=1 | |
22264 | else | |
22265 | echo "$ac_t""no" 1>&6 | |
22266 | fi | |
22267 | done | |
22268 | ||
22269 | for ac_func in ceil | |
22270 | do | |
22271 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
ac0c4cc3 | 22272 | echo "configure:22273: checking for $ac_func" >&5 |
2b5f62a0 VZ |
22273 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
22274 | echo $ac_n "(cached) $ac_c" 1>&6 | |
22275 | else | |
22276 | cat > conftest.$ac_ext <<EOF | |
ac0c4cc3 | 22277 | #line 22278 "configure" |
2b5f62a0 VZ |
22278 | #include "confdefs.h" |
22279 | /* System header to define __stub macros and hopefully few prototypes, | |
22280 | which can conflict with char $ac_func(); below. */ | |
22281 | #include <assert.h> | |
22282 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22283 | /* We use char because int might match the return type of a gcc2 | |
22284 | builtin and then its argument prototype would still apply. */ | |
22285 | char $ac_func(); | |
22286 | ||
22287 | int main() { | |
22288 | ||
22289 | /* The GNU C library defines this for functions which it implements | |
22290 | to always fail with ENOSYS. Some functions are actually named | |
22291 | something starting with __ and the normal name is an alias. */ | |
22292 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
22293 | choke me | |
22294 | #else | |
22295 | $ac_func(); | |
22296 | #endif | |
22297 | ||
22298 | ; return 0; } | |
22299 | EOF | |
ac0c4cc3 | 22300 | if { (eval echo configure:22301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
22301 | rm -rf conftest* |
22302 | eval "ac_cv_func_$ac_func=yes" | |
22303 | else | |
22304 | echo "configure: failed program was:" >&5 | |
22305 | cat conftest.$ac_ext >&5 | |
22306 | rm -rf conftest* | |
22307 | eval "ac_cv_func_$ac_func=no" | |
22308 | fi | |
22309 | rm -f conftest* | |
22310 | fi | |
22311 | ||
22312 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
22313 | echo "$ac_t""yes" 1>&6 | |
22314 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
22315 | cat >> confdefs.h <<EOF | |
22316 | #define $ac_tr_func 1 | |
22317 | EOF | |
22318 | have_ceil=1 | |
22319 | else | |
22320 | echo "$ac_t""no" 1>&6 | |
22321 | fi | |
22322 | done | |
22323 | ||
22324 | echo $ac_n "checking if floating point functions link with -lm""... $ac_c" 1>&6 | |
ac0c4cc3 | 22325 | echo "configure:22326: checking if floating point functions link with -lm" >&5 |
2b5f62a0 VZ |
22326 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then |
22327 | echo "$ac_t""yes" 1>&6 | |
22328 | else | |
22329 | echo "$ac_t""no" 1>&6 | |
22330 | # not sure we should warn the user, crash, etc. | |
22331 | fi | |
22332 | fi | |
8284b0c5 MB |
22333 | |
22334 | if test "$wxUSE_GUI" = "yes"; then | |
22335 | ||
22336 | LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS" | |
22337 | ||
a0b9e27f | 22338 | |
8284b0c5 MB |
22339 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ |
22340 | drawing dynamic erase event exec font image \ | |
22341 | minimal propsize rotate widgets" | |
22342 | ||
22343 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" | |
22344 | else | |
22345 | SAMPLES_SUBDIRS="console" | |
22346 | fi | |
22347 | ||
22348 | ||
22349 | INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \ | |
22350 | -I\${top_srcdir}/include \ | |
22351 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ | |
22352 | $TOOLKIT_INCLUDE" | |
22353 | ||
22354 | if test "$wxUSE_GTK" = 1; then | |
22355 | WXCONFIG_INCLUDE= | |
22356 | else | |
22357 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
22358 | fi | |
22359 | ||
22360 | if test "$GXX" = yes ; then | |
22361 | CXXWARNINGS="-Wall" | |
a0b9e27f | 22362 | |
8284b0c5 MB |
22363 | if test "$wxUSE_NO_DEPS" = "no" ; then |
22364 | CFLAGS="-MMD $CFLAGS" | |
22365 | CXXFLAGS="-MMD $CXXFLAGS" | |
22366 | fi | |
22367 | fi | |
22368 | ||
b2fee376 | 22369 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" |
8284b0c5 | 22370 | |
b2fee376 | 22371 | CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'` |
8284b0c5 MB |
22372 | CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` |
22373 | CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
22374 | LIBS=`echo $LIBS | sed 's/ \+/ /g'` | |
22375 | ||
22376 | LDFLAGS="$LDFLAGS $PROFILE" | |
22377 | ||
22378 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
22379 | ||
22380 | ||
22381 | ||
22382 | ||
22383 | ||
22384 | ||
22385 | ||
22386 | ||
22387 | ||
22388 | ||
22389 | ||
22390 | ||
22391 | ||
22392 | ||
22393 | ||
22394 | ||
22395 | ||
22396 | ||
22397 | ||
22398 | ||
22399 | ||
22400 | ||
22401 | ||
22402 | ||
22403 | ||
22404 | ||
22405 | ||
22406 | ||
22407 | ||
22408 | ||
22409 | ||
22410 | ||
22411 | ||
22412 | ||
22413 | ||
22414 | ||
22415 | ||
22416 | ||
22417 | ||
22418 | ||
22419 | ||
22420 | ||
22421 | ||
22422 | ||
22423 | ||
22424 | ||
22425 | ||
22426 | ||
22427 | ||
22428 | ||
22429 | ||
22430 | ||
22431 | ||
22432 | ||
22433 | ||
22434 | ||
22435 | ||
22436 | ||
22437 | ||
22438 | ||
22439 | ||
22440 | ||
22441 | ||
22442 | ||
22443 | ||
22444 | ||
22445 | ||
22446 | ||
2f51a9ec GD |
22447 | |
22448 | ||
22449 | ||
22450 | ||
f6bcfd97 | 22451 | |
dad6c0ea | 22452 | |
caa2c79b | 22453 | |
3711412e | 22454 | |
1e6feb95 VZ |
22455 | |
22456 | ||
885d4bf5 VS |
22457 | |
22458 | ||
22459 | ||
22460 | ||
9b695262 VZ |
22461 | |
22462 | ||
62d0491b | 22463 | |
ef7f2189 | 22464 | |
40f7145c | 22465 | |
2b5f62a0 VZ |
22466 | |
22467 | ||
22468 | ||
22469 | ||
22470 | ||
2bffed64 VZ |
22471 | |
22472 | ||
3bd8fb5f | 22473 | |
e26c13cf | 22474 | |
52c71b80 | 22475 | |
36825681 | 22476 | |
4f5a7f74 | 22477 | |
10f2d63a | 22478 | |
a0b9e27f MB |
22479 | |
22480 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
ac0c4cc3 | 22481 | echo "configure:22482: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
a0b9e27f MB |
22482 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
22483 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
22484 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 22485 | else |
a0b9e27f | 22486 | cat > conftestmake <<\EOF |
10f2d63a VZ |
22487 | all: |
22488 | @echo 'ac_maketemp="${MAKE}"' | |
a0b9e27f | 22489 | EOF |
10f2d63a | 22490 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
a0b9e27f | 22491 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
22492 | if test -n "$ac_maketemp"; then |
22493 | eval ac_cv_prog_make_${ac_make}_set=yes | |
22494 | else | |
22495 | eval ac_cv_prog_make_${ac_make}_set=no | |
22496 | fi | |
a0b9e27f | 22497 | rm -f conftestmake |
10f2d63a VZ |
22498 | fi |
22499 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
a0b9e27f | 22500 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
22501 | SET_MAKE= |
22502 | else | |
a0b9e27f | 22503 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
22504 | SET_MAKE="MAKE=${MAKE-make}" |
22505 | fi | |
22506 | ||
8284b0c5 | 22507 | |
3a922bb4 RL |
22508 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then |
22509 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
00cf1208 | 22510 | fi |
665bbe97 | 22511 | |
8284b0c5 | 22512 | |
10f2d63a | 22513 | |
57973b9c VZ |
22514 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
22515 | wx_cv_if_gnu_make=$IF_GNU_MAKE | |
22516 | wx_cv_path_ifs=$PATH_IFS | |
22517 | wx_cv_program_ext=$PROGRAM_EXT | |
22518 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
22519 | wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL | |
22520 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE | |
2b5f62a0 VZ |
22521 | wx_cv_library_basename=${WX_LIBRARY_BASENAME} |
22522 | wx_cv_release=${WX_RELEASE} | |
22523 | wx_cv_current=${WX_CURRENT} | |
22524 | wx_cv_revision=${WX_REVISION} | |
22525 | wx_cv_age=${WX_AGE} | |
27635a90 | 22526 | wx_cv_use_gui=${USE_GUI} |
5e66eee1 | 22527 | wx_cv_use_resources=${wxUSE_RESOURCES} |
57973b9c VZ |
22528 | export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \ |
22529 | wx_cv_path_ifs wx_cv_program_ext \ | |
2b5f62a0 | 22530 | wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype \ |
27635a90 | 22531 | wx_cv_library_basename wx_cv_release wx_cv_current wx_cv_revision wx_cv_age \ |
5e66eee1 | 22532 | wx_cv_use_gui wx_cv_use_resources |
57973b9c | 22533 | |
a0b9e27f | 22534 | subdirs="demos samples utils contrib" |
8284b0c5 | 22535 | |
10f2d63a | 22536 | |
a0b9e27f MB |
22537 | trap '' 1 2 15 |
22538 | cat > confcache <<\EOF | |
10f2d63a VZ |
22539 | # This file is a shell script that caches the results of configure |
22540 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
22541 | # scripts and configure runs. It is not useful on other systems. |
22542 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 22543 | # |
a0b9e27f MB |
22544 | # By default, configure uses ./config.cache as the cache file, |
22545 | # creating it if it does not exist already. You can give configure | |
22546 | # the --cache-file=FILE option to use a different cache file; that is | |
22547 | # what configure does when it calls configure scripts in | |
22548 | # subdirectories, so they share the cache. | |
22549 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
22550 | # config.status only pays attention to the cache file if you give it the | |
22551 | # --recheck option to rerun configure. | |
10f2d63a | 22552 | # |
a0b9e27f | 22553 | EOF |
10f2d63a VZ |
22554 | # The following way of writing the cache mishandles newlines in values, |
22555 | # but we know of no workaround that is simple, portable, and efficient. | |
22556 | # So, don't put newlines in cache variables' values. | |
22557 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
22558 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
22559 | (set) 2>&1 | |
22560 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
22561 | *ac_space=\ *) | |
22562 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
22563 | # turns \\\\ into \\, and sed turns \\ into \). | |
22564 | sed -n \ | |
22565 | -e "s/'/'\\\\''/g" \ | |
22566 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
22567 | ;; | |
22568 | *) | |
22569 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
22570 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
22571 | ;; | |
22572 | esac >> confcache | |
22573 | if cmp -s $cache_file confcache; then | |
22574 | : | |
22575 | else | |
10f2d63a | 22576 | if test -w $cache_file; then |
a0b9e27f MB |
22577 | echo "updating cache $cache_file" |
22578 | cat confcache > $cache_file | |
10f2d63a VZ |
22579 | else |
22580 | echo "not updating unwritable cache $cache_file" | |
22581 | fi | |
22582 | fi | |
22583 | rm -f confcache | |
22584 | ||
a0b9e27f MB |
22585 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
22586 | ||
10f2d63a VZ |
22587 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
22588 | # Let make expand exec_prefix. | |
22589 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
22590 | ||
a0b9e27f MB |
22591 | # Any assignment to VPATH causes Sun make to only execute |
22592 | # the first set of double-colon rules, so remove it if not needed. | |
22593 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 22594 | if test "x$srcdir" = x.; then |
a0b9e27f | 22595 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
22596 | fi |
22597 | ||
a0b9e27f | 22598 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
10f2d63a | 22599 | |
a0b9e27f | 22600 | DEFS=-DHAVE_CONFIG_H |
8284b0c5 | 22601 | |
a0b9e27f | 22602 | # Without the "./", some shells look in PATH for config.status. |
247f5006 | 22603 | : ${CONFIG_STATUS=./config.status} |
52127426 | 22604 | |
a0b9e27f MB |
22605 | echo creating $CONFIG_STATUS |
22606 | rm -f $CONFIG_STATUS | |
22607 | cat > $CONFIG_STATUS <<EOF | |
22608 | #! /bin/sh | |
22609 | # Generated automatically by configure. | |
22610 | # Run this file to recreate the current configuration. | |
22611 | # This directory was configured as follows, | |
22612 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
247f5006 | 22613 | # |
a0b9e27f | 22614 | # $0 $ac_configure_args |
247f5006 | 22615 | # |
a0b9e27f MB |
22616 | # Compiler output produced by configure, useful for debugging |
22617 | # configure, is in ./config.log if it exists. | |
247f5006 | 22618 | |
a0b9e27f MB |
22619 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
22620 | for ac_option | |
247f5006 | 22621 | do |
a0b9e27f MB |
22622 | case "\$ac_option" in |
22623 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
22624 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
22625 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
22626 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
22627 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
22628 | exit 0 ;; | |
22629 | -help | --help | --hel | --he | --h) | |
22630 | echo "\$ac_cs_usage"; exit 0 ;; | |
22631 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
247f5006 VZ |
22632 | esac |
22633 | done | |
22634 | ||
a0b9e27f MB |
22635 | ac_given_srcdir=$srcdir |
22636 | ac_given_INSTALL="$INSTALL" | |
247f5006 | 22637 | |
a0b9e27f MB |
22638 | trap 'rm -fr `echo " |
22639 | wx-config | |
2b5f62a0 | 22640 | version-script |
a0b9e27f MB |
22641 | src/make.env |
22642 | src/makeprog.env | |
22643 | src/makelib.env | |
22644 | Makefile | |
22645 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
22646 | EOF | |
22647 | cat >> $CONFIG_STATUS <<EOF | |
247f5006 | 22648 | |
a0b9e27f MB |
22649 | # Protect against being on the right side of a sed subst in config.status. |
22650 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
22651 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
22652 | $ac_vpsub | |
22653 | $extrasub | |
22654 | s%@SHELL@%$SHELL%g | |
22655 | s%@CFLAGS@%$CFLAGS%g | |
22656 | s%@CPPFLAGS@%$CPPFLAGS%g | |
22657 | s%@CXXFLAGS@%$CXXFLAGS%g | |
22658 | s%@FFLAGS@%$FFLAGS%g | |
22659 | s%@DEFS@%$DEFS%g | |
22660 | s%@LDFLAGS@%$LDFLAGS%g | |
22661 | s%@LIBS@%$LIBS%g | |
22662 | s%@exec_prefix@%$exec_prefix%g | |
22663 | s%@prefix@%$prefix%g | |
22664 | s%@program_transform_name@%$program_transform_name%g | |
22665 | s%@bindir@%$bindir%g | |
22666 | s%@sbindir@%$sbindir%g | |
22667 | s%@libexecdir@%$libexecdir%g | |
22668 | s%@datadir@%$datadir%g | |
22669 | s%@sysconfdir@%$sysconfdir%g | |
22670 | s%@sharedstatedir@%$sharedstatedir%g | |
22671 | s%@localstatedir@%$localstatedir%g | |
22672 | s%@libdir@%$libdir%g | |
22673 | s%@includedir@%$includedir%g | |
22674 | s%@oldincludedir@%$oldincludedir%g | |
22675 | s%@infodir@%$infodir%g | |
22676 | s%@mandir@%$mandir%g | |
22677 | s%@host@%$host%g | |
22678 | s%@host_alias@%$host_alias%g | |
22679 | s%@host_cpu@%$host_cpu%g | |
22680 | s%@host_vendor@%$host_vendor%g | |
22681 | s%@host_os@%$host_os%g | |
22682 | s%@target@%$target%g | |
22683 | s%@target_alias@%$target_alias%g | |
22684 | s%@target_cpu@%$target_cpu%g | |
22685 | s%@target_vendor@%$target_vendor%g | |
22686 | s%@target_os@%$target_os%g | |
22687 | s%@build@%$build%g | |
22688 | s%@build_alias@%$build_alias%g | |
22689 | s%@build_cpu@%$build_cpu%g | |
22690 | s%@build_vendor@%$build_vendor%g | |
22691 | s%@build_os@%$build_os%g | |
22692 | s%@CC@%$CC%g | |
22693 | s%@CPP@%$CPP%g | |
22694 | s%@CXX@%$CXX%g | |
22695 | s%@RANLIB@%$RANLIB%g | |
22696 | s%@AR@%$AR%g | |
22697 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
22698 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
22699 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
22700 | s%@STRIP@%$STRIP%g | |
22701 | s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g | |
22702 | s%@YACC@%$YACC%g | |
22703 | s%@LEX@%$LEX%g | |
22704 | s%@LEXLIB@%$LEXLIB%g | |
22705 | s%@LN_S@%$LN_S%g | |
22706 | s%@CXXCPP@%$CXXCPP%g | |
22707 | s%@PKG_CONFIG@%$PKG_CONFIG%g | |
22708 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g | |
22709 | s%@GTK_LIBS@%$GTK_LIBS%g | |
22710 | s%@GTK_CONFIG@%$GTK_CONFIG%g | |
22711 | s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g | |
22712 | s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g | |
22713 | s%@X_CFLAGS@%$X_CFLAGS%g | |
22714 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
22715 | s%@X_LIBS@%$X_LIBS%g | |
22716 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
2b5f62a0 VZ |
22717 | s%@PANGOX_CFLAGS@%$PANGOX_CFLAGS%g |
22718 | s%@PANGOX_LIBS@%$PANGOX_LIBS%g | |
22719 | s%@PANGOXFT_CFLAGS@%$PANGOXFT_CFLAGS%g | |
22720 | s%@PANGOXFT_LIBS@%$PANGOXFT_LIBS%g | |
a0b9e27f MB |
22721 | s%@AIX_CXX_LD@%$AIX_CXX_LD%g |
22722 | s%@RESCOMP@%$RESCOMP%g | |
22723 | s%@DEREZ@%$DEREZ%g | |
36825681 | 22724 | s%@SETFILE@%$SETFILE%g |
a0b9e27f MB |
22725 | s%@LIBICONV@%$LIBICONV%g |
22726 | s%@LEX_STEM@%$LEX_STEM%g | |
22727 | s%@PATH_IFS@%$PATH_IFS%g | |
22728 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
22729 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
22730 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
22731 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
22732 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
2b5f62a0 | 22733 | s%@WX_LIBRARY_BASENAME@%$WX_LIBRARY_BASENAME%g |
a0b9e27f MB |
22734 | s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g |
22735 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
22736 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
22737 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
22738 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g | |
22739 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g | |
22740 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
22741 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g | |
22742 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
22743 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
22744 | s%@WX_ALL@%$WX_ALL%g | |
22745 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
22746 | s%@SHARED_LD@%$SHARED_LD%g | |
22747 | s%@PIC_FLAG@%$PIC_FLAG%g | |
22748 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g | |
22749 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
22750 | s%@SONAME_FLAGS@%$SONAME_FLAGS%g | |
22751 | s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g | |
22752 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g | |
22753 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
2bffed64 | 22754 | s%@STATIC_FLAG@%$STATIC_FLAG%g |
a0b9e27f MB |
22755 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g |
22756 | s%@USE_GUI@%$USE_GUI%g | |
22757 | s%@AFMINSTALL@%$AFMINSTALL%g | |
2b5f62a0 | 22758 | s%@WIN32INSTALL@%$WIN32INSTALL%g |
a0b9e27f MB |
22759 | s%@TOOLKIT@%$TOOLKIT%g |
22760 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
22761 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g | |
22762 | s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g | |
22763 | s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g | |
22764 | s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g | |
52c71b80 | 22765 | s%@top_builddir@%$top_builddir%g |
a0b9e27f MB |
22766 | s%@cross_compiling@%$cross_compiling%g |
22767 | s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g | |
22768 | s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g | |
22769 | s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g | |
22770 | s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g | |
22771 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g | |
22772 | s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g | |
e26c13cf | 22773 | s%@WX_LARGEFILE_FLAGS@%$WX_LARGEFILE_FLAGS%g |
a0b9e27f MB |
22774 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g |
22775 | s%@ALL_HEADERS@%$ALL_HEADERS%g | |
22776 | s%@ALL_SOURCES@%$ALL_SOURCES%g | |
22777 | s%@GUIDIST@%$GUIDIST%g | |
22778 | s%@PORT_FILES@%$PORT_FILES%g | |
22779 | s%@DISTDIR@%$DISTDIR%g | |
a0b9e27f MB |
22780 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g |
22781 | s%@LDFLAGS_GL@%$LDFLAGS_GL%g | |
2b5f62a0 | 22782 | s%@LDFLAGS_VERSIONING@%$LDFLAGS_VERSIONING%g |
a0b9e27f MB |
22783 | s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g |
22784 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g | |
22785 | s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g | |
22786 | s%@EXTRADEFS@%$EXTRADEFS%g | |
2b5f62a0 | 22787 | s%@WX_VERSION_TAG@%$WX_VERSION_TAG%g |
a0b9e27f MB |
22788 | s%@RESFLAGS@%$RESFLAGS%g |
22789 | s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g | |
22790 | s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g | |
22791 | s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g | |
22792 | s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g | |
22793 | s%@LIBWXMACRES@%$LIBWXMACRES%g | |
36825681 GD |
22794 | s%@MACRESCOMP@%$MACRESCOMP%g |
22795 | s%@MACSETFILE@%$MACSETFILE%g | |
22796 | s%@MACRESWXCONFIG@%$MACRESWXCONFIG%g | |
2b5f62a0 | 22797 | s%@GCC@%$GCC%g |
a0b9e27f MB |
22798 | s%@DLLTOOL@%$DLLTOOL%g |
22799 | s%@AS@%$AS%g | |
22800 | s%@NM@%$NM%g | |
22801 | s%@LD@%$LD%g | |
22802 | s%@MAKEINFO@%$MAKEINFO%g | |
22803 | s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g | |
4f5a7f74 | 22804 | s%@INSTALL_DIR@%$INSTALL_DIR%g |
a0b9e27f MB |
22805 | s%@SET_MAKE@%$SET_MAKE%g |
22806 | s%@subdirs@%$subdirs%g | |
247f5006 | 22807 | |
247f5006 | 22808 | CEOF |
a0b9e27f | 22809 | EOF |
247f5006 | 22810 | |
a0b9e27f MB |
22811 | cat >> $CONFIG_STATUS <<\EOF |
22812 | ||
22813 | # Split the substitutions into bite-sized pieces for seds with | |
22814 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
22815 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
22816 | ac_file=1 # Number of current file. | |
22817 | ac_beg=1 # First line for current file. | |
22818 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
22819 | ac_more_lines=: | |
22820 | ac_sed_cmds="" | |
22821 | while $ac_more_lines; do | |
22822 | if test $ac_beg -gt 1; then | |
22823 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
22824 | else | |
22825 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
22826 | fi | |
22827 | if test ! -s conftest.s$ac_file; then | |
22828 | ac_more_lines=false | |
22829 | rm -f conftest.s$ac_file | |
22830 | else | |
22831 | if test -z "$ac_sed_cmds"; then | |
22832 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
247f5006 | 22833 | else |
a0b9e27f | 22834 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
247f5006 | 22835 | fi |
a0b9e27f MB |
22836 | ac_file=`expr $ac_file + 1` |
22837 | ac_beg=$ac_end | |
22838 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
10f2d63a | 22839 | fi |
a0b9e27f MB |
22840 | done |
22841 | if test -z "$ac_sed_cmds"; then | |
22842 | ac_sed_cmds=cat | |
22843 | fi | |
22844 | EOF | |
10f2d63a | 22845 | |
a0b9e27f | 22846 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 22847 | |
a0b9e27f | 22848 | CONFIG_FILES=\${CONFIG_FILES-"wx-config |
2b5f62a0 | 22849 | version-script |
a0b9e27f MB |
22850 | src/make.env |
22851 | src/makeprog.env | |
22852 | src/makelib.env | |
22853 | Makefile | |
22854 | "} | |
22855 | EOF | |
22856 | cat >> $CONFIG_STATUS <<\EOF | |
22857 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
22858 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
22859 | case "$ac_file" in | |
22860 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
22861 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
22862 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a | 22863 | esac |
247f5006 | 22864 | |
a0b9e27f | 22865 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
247f5006 | 22866 | |
a0b9e27f MB |
22867 | # Remove last slash and all that follows it. Not all systems have dirname. |
22868 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
22869 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
22870 | # The file is in a subdirectory. | |
22871 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
22872 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
22873 | # A "../" for each directory in $ac_dir_suffix. | |
22874 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
22875 | else | |
22876 | ac_dir_suffix= ac_dots= | |
22877 | fi | |
247f5006 | 22878 | |
a0b9e27f MB |
22879 | case "$ac_given_srcdir" in |
22880 | .) srcdir=. | |
22881 | if test -z "$ac_dots"; then top_srcdir=. | |
22882 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
22883 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
247f5006 | 22884 | *) # Relative path. |
a0b9e27f MB |
22885 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
22886 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
8284b0c5 | 22887 | esac |
10f2d63a | 22888 | |
a0b9e27f MB |
22889 | case "$ac_given_INSTALL" in |
22890 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
22891 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
22892 | esac | |
247f5006 | 22893 | |
a0b9e27f MB |
22894 | echo creating "$ac_file" |
22895 | rm -f "$ac_file" | |
22896 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
22897 | case "$ac_file" in | |
22898 | *Makefile*) ac_comsub="1i\\ | |
22899 | # $configure_input" ;; | |
22900 | *) ac_comsub= ;; | |
22901 | esac | |
247f5006 | 22902 | |
a0b9e27f MB |
22903 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
22904 | sed -e "$ac_comsub | |
22905 | s%@configure_input@%$configure_input%g | |
22906 | s%@srcdir@%$srcdir%g | |
22907 | s%@top_srcdir@%$top_srcdir%g | |
22908 | s%@INSTALL@%$INSTALL%g | |
22909 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
22910 | fi; done | |
22911 | rm -f conftest.s* | |
10f2d63a VZ |
22912 | |
22913 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
22914 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
22915 | # | |
22916 | # ac_d sets the value in "#define NAME VALUE" lines. | |
a0b9e27f MB |
22917 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
22918 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
22919 | ac_dC='\3' | |
22920 | ac_dD='%g' | |
22921 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
22922 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
22923 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 22924 | ac_uC=' ' |
a0b9e27f MB |
22925 | ac_uD='\4%g' |
22926 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
22927 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
22928 | ac_eB='$%\1#\2define\3' | |
22929 | ac_eC=' ' | |
22930 | ac_eD='%g' | |
22931 | ||
22932 | if test "${CONFIG_HEADERS+set}" != set; then | |
22933 | EOF | |
22934 | cat >> $CONFIG_STATUS <<EOF | |
22935 | CONFIG_HEADERS="setup.h:setup.h.in" | |
22936 | EOF | |
22937 | cat >> $CONFIG_STATUS <<\EOF | |
22938 | fi | |
22939 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 22940 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
a0b9e27f MB |
22941 | case "$ac_file" in |
22942 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
22943 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
22944 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
22945 | esac |
22946 | ||
a0b9e27f MB |
22947 | echo creating $ac_file |
22948 | ||
22949 | rm -f conftest.frag conftest.in conftest.out | |
22950 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
22951 | cat $ac_file_inputs > conftest.in | |
22952 | ||
22953 | EOF | |
22954 | ||
22955 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
22956 | # the proper values into config.h.in to produce config.h. And first: | |
22957 | # Protect against being on the right side of a sed subst in config.status. | |
22958 | # Protect against being in an unquoted here document in config.status. | |
22959 | rm -f conftest.vals | |
22960 | cat > conftest.hdr <<\EOF | |
22961 | s/[\\&%]/\\&/g | |
22962 | s%[\\$`]%\\&%g | |
22963 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
22964 | s%ac_d%ac_u%gp | |
22965 | s%ac_u%ac_e%gp | |
22966 | EOF | |
22967 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
22968 | rm -f conftest.hdr | |
10f2d63a VZ |
22969 | |
22970 | # This sed command replaces #undef with comments. This is necessary, for | |
22971 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
22972 | # on some systems where configure will not decide to define it. | |
a0b9e27f MB |
22973 | cat >> conftest.vals <<\EOF |
22974 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
22975 | EOF | |
22976 | ||
22977 | # Break up conftest.vals because some shells have a limit on | |
22978 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
22979 | |
22980 | rm -f conftest.tail | |
a0b9e27f | 22981 | while : |
10f2d63a | 22982 | do |
a0b9e27f MB |
22983 | ac_lines=`grep -c . conftest.vals` |
22984 | # grep -c gives empty output for an empty file on some AIX systems. | |
22985 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
22986 | # Write a limited-size here document to conftest.frag. | |
22987 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
22988 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 22989 | echo 'CEOF |
a0b9e27f MB |
22990 | sed -f conftest.frag conftest.in > conftest.out |
22991 | rm -f conftest.in | |
22992 | mv conftest.out conftest.in | |
22993 | ' >> $CONFIG_STATUS | |
22994 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
22995 | rm -f conftest.vals | |
22996 | mv conftest.tail conftest.vals | |
10f2d63a | 22997 | done |
a0b9e27f MB |
22998 | rm -f conftest.vals |
22999 | ||
23000 | cat >> $CONFIG_STATUS <<\EOF | |
23001 | rm -f conftest.frag conftest.h | |
23002 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
23003 | cat conftest.in >> conftest.h | |
23004 | rm -f conftest.in | |
23005 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
23006 | echo "$ac_file is unchanged" | |
23007 | rm -f conftest.h | |
10f2d63a | 23008 | else |
a0b9e27f MB |
23009 | # Remove last slash and all that follows it. Not all systems have dirname. |
23010 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
23011 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
23012 | # The file is in a subdirectory. | |
23013 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
247f5006 | 23014 | fi |
a0b9e27f MB |
23015 | rm -f $ac_file |
23016 | mv conftest.h $ac_file | |
247f5006 | 23017 | fi |
a0b9e27f MB |
23018 | fi; done |
23019 | ||
23020 | EOF | |
23021 | cat >> $CONFIG_STATUS <<EOF | |
23022 | ||
23023 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" | |
23024 | LN_S="${LN_S}" | |
23025 | ||
23026 | ||
23027 | EOF | |
23028 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 23029 | |
652d930d | 23030 | if test ! -h wx-config; then |
991a5759 | 23031 | chmod +x wx-config |
3a922bb4 RL |
23032 | mv wx-config wx${TOOLCHAIN_NAME}-config |
23033 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 23034 | fi |
665bbe97 | 23035 | |
00cf1208 RR |
23036 | if test ! -d lib; then |
23037 | mkdir lib | |
23038 | fi | |
23039 | if test ! -d lib/wx; then | |
23040 | mkdir lib/wx | |
23041 | fi | |
23042 | if test ! -d lib/wx/include; then | |
23043 | mkdir lib/wx/include | |
23044 | fi | |
3a922bb4 RL |
23045 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
23046 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 23047 | fi |
3a922bb4 RL |
23048 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
23049 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
23050 | fi |
23051 | if test -f setup.h; then | |
3a922bb4 | 23052 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 23053 | fi |
a0b9e27f MB |
23054 | |
23055 | exit 0 | |
23056 | EOF | |
10f2d63a | 23057 | chmod +x $CONFIG_STATUS |
a0b9e27f MB |
23058 | rm -fr confdefs* $ac_clean_files |
23059 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 23060 | |
2224580a VZ |
23061 | if test "$no_recursion" != yes; then |
23062 | ||
23063 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
23064 | ac_sub_configure_args= | |
23065 | ac_prev= | |
23066 | for ac_arg in $ac_configure_args; do | |
23067 | if test -n "$ac_prev"; then | |
23068 | ac_prev= | |
23069 | continue | |
23070 | fi | |
a0b9e27f | 23071 | case "$ac_arg" in |
2224580a VZ |
23072 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
23073 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
23074 | ac_prev=cache_file ;; | |
23075 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
a0b9e27f | 23076 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
23077 | ;; |
23078 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
23079 | ac_prev=srcdir ;; | |
23080 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
23081 | ;; | |
23082 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
23083 | esac | |
23084 | done | |
23085 | ||
a0b9e27f | 23086 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
23087 | |
23088 | # Do not complain, so a configure script can configure whichever | |
23089 | # parts of a large source tree are present. | |
a0b9e27f MB |
23090 | if test ! -d $srcdir/$ac_config_dir; then |
23091 | continue | |
23092 | fi | |
2224580a | 23093 | |
a0b9e27f | 23094 | echo configuring in $ac_config_dir |
2224580a | 23095 | |
a0b9e27f MB |
23096 | case "$srcdir" in |
23097 | .) ;; | |
23098 | *) | |
23099 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; | |
23100 | else | |
23101 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
23102 | fi | |
23103 | ;; | |
23104 | esac | |
2224580a | 23105 | |
a0b9e27f MB |
23106 | ac_popdir=`pwd` |
23107 | cd $ac_config_dir | |
247f5006 | 23108 | |
a0b9e27f MB |
23109 | # A "../" for each directory in /$ac_config_dir. |
23110 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
247f5006 | 23111 | |
a0b9e27f MB |
23112 | case "$srcdir" in |
23113 | .) # No --srcdir option. We are building in place. | |
23114 | ac_sub_srcdir=$srcdir ;; | |
23115 | /*) # Absolute path. | |
23116 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
23117 | *) # Relative path. | |
23118 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; | |
23119 | esac | |
2224580a VZ |
23120 | |
23121 | # Check for guested configure; otherwise get Cygnus style configure. | |
a0b9e27f MB |
23122 | if test -f $ac_sub_srcdir/configure; then |
23123 | ac_sub_configure=$ac_sub_srcdir/configure | |
23124 | elif test -f $ac_sub_srcdir/configure.in; then | |
2224580a VZ |
23125 | ac_sub_configure=$ac_configure |
23126 | else | |
a0b9e27f | 23127 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
23128 | ac_sub_configure= |
23129 | fi | |
23130 | ||
23131 | # The recursion is here. | |
23132 | if test -n "$ac_sub_configure"; then | |
a0b9e27f | 23133 | |
2224580a | 23134 | # Make the cache file name correct relative to the subdirectory. |
a0b9e27f MB |
23135 | case "$cache_file" in |
23136 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 23137 | *) # Relative path. |
a0b9e27f | 23138 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 23139 | esac |
a0b9e27f MB |
23140 | case "$ac_given_INSTALL" in |
23141 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
23142 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
23143 | esac | |
2224580a | 23144 | |
a0b9e27f | 23145 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 23146 | # The eval makes quoting arguments work. |
a0b9e27f MB |
23147 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
23148 | then : | |
23149 | else | |
23150 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
23151 | fi | |
2224580a VZ |
23152 | fi |
23153 | ||
23154 | cd $ac_popdir | |
23155 | done | |
23156 | fi | |
23157 | ||
8284b0c5 | 23158 | |
2b5f62a0 VZ |
23159 | echo |
23160 | echo "Configured wxWindows ${WX_VERSION} for \`${host}'" | |
23161 | echo "" | |
23162 | echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}" | |
23163 | ||
23164 | echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}" | |
23165 | echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}" | |
23166 | echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
23167 | ||
0c98a14e GD |
23168 | echo " What level of wxWindows compatibility should be enabled?" |
23169 | echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}" | |
65d8ef1e VS |
23170 | echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" |
23171 | echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
0c98a14e | 23172 | |
2b5f62a0 VZ |
23173 | echo " Which libraries should wxWindows use?" |
23174 | echo " jpeg ${wxUSE_LIBJPEG-none}" | |
23175 | echo " png ${wxUSE_LIBPNG-none}" | |
23176 | echo " regex ${wxUSE_REGEX}" | |
23177 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
23178 | echo " zlib ${wxUSE_ZLIB}" | |
23179 | ||
23180 | echo "" | |
23181 |