]>
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" | |
a0b9e27f MB |
197 | ac_help="$ac_help |
198 | --enable-stopwatch use wxStopWatch class" | |
199 | ac_help="$ac_help | |
200 | --enable-dialupman use dialup network classes" | |
201 | ac_help="$ac_help | |
202 | --enable-apple_ieee use the Apple IEEE codec" | |
203 | ac_help="$ac_help | |
204 | --enable-timer use wxTimer class" | |
205 | ac_help="$ac_help | |
206 | --enable-wave use wxWave class" | |
207 | ac_help="$ac_help | |
208 | --enable-fraction use wxFraction class" | |
209 | ac_help="$ac_help | |
210 | --enable-dynlib use wxLibrary class for DLL loading" | |
211 | ac_help="$ac_help | |
212 | --enable-dynamicloader use (new) wxDynamicLibrary class" | |
213 | ac_help="$ac_help | |
214 | --enable-longlong use wxLongLong class" | |
215 | ac_help="$ac_help | |
216 | --enable-geometry use geometry class" | |
217 | ac_help="$ac_help | |
218 | --enable-log use logging system" | |
219 | ac_help="$ac_help | |
220 | --enable-streams use wxStream etc classes" | |
221 | ac_help="$ac_help | |
222 | --enable-file use wxFile classes" | |
223 | ac_help="$ac_help | |
224 | --enable-ffile use wxFFile classes" | |
225 | ac_help="$ac_help | |
226 | --enable-textbuf use wxTextBuffer class" | |
227 | ac_help="$ac_help | |
228 | --enable-textfile use wxTextFile class" | |
229 | ac_help="$ac_help | |
230 | --enable-fontmap use font encodings conversion classes" | |
231 | ac_help="$ac_help | |
232 | --enable-unicode compile wxString with Unicode support" | |
233 | ac_help="$ac_help | |
234 | --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)" | |
235 | ac_help="$ac_help | |
236 | --enable-wxprintfv use wxWindows implementation of vprintf()" | |
237 | ac_help="$ac_help | |
238 | --enable-std_iostreams use standard C++ stream classes" | |
239 | ac_help="$ac_help | |
240 | --enable-filesystem use virtual file systems classes" | |
241 | ac_help="$ac_help | |
242 | --enable-fs_inet use virtual HTTP/FTP filesystems" | |
243 | ac_help="$ac_help | |
244 | --enable-fs_zip use virtual ZIP filesystems" | |
245 | ac_help="$ac_help | |
246 | --enable-zipstream use wxZipInputStream" | |
247 | ac_help="$ac_help | |
248 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException" | |
249 | ac_help="$ac_help | |
250 | --enable-snglinst use wxSingleInstanceChecker class" | |
251 | ac_help="$ac_help | |
252 | --enable-mimetype use wxMimeTypesManager" | |
253 | ac_help="$ac_help | |
254 | --enable-sysoptions use wxSystemOptions" | |
255 | ac_help="$ac_help | |
256 | --enable-url use wxURL class" | |
257 | ac_help="$ac_help | |
258 | --enable-protocol use wxProtocol class" | |
259 | ac_help="$ac_help | |
260 | --enable-protocol-http HTTP support in wxProtocol" | |
261 | ac_help="$ac_help | |
262 | --enable-protocol-ftp FTP support in wxProtocol" | |
263 | ac_help="$ac_help | |
264 | --enable-protocol-file FILE support in wxProtocol" | |
265 | ac_help="$ac_help | |
266 | --enable-threads use threads" | |
267 | ac_help="$ac_help | |
268 | --enable-docview use document view architecture" | |
269 | ac_help="$ac_help | |
270 | --enable-help use help subsystem" | |
271 | ac_help="$ac_help | |
272 | --enable-mshtmlhelp use MS HTML Help (win32)" | |
273 | ac_help="$ac_help | |
274 | --enable-html use wxHTML sub-library" | |
275 | ac_help="$ac_help | |
276 | --enable-htmlhelp use wxHTML-based help" | |
277 | ac_help="$ac_help | |
278 | --enable-constraints use layout-constraints system" | |
279 | ac_help="$ac_help | |
280 | --enable-printarch use printing architecture" | |
281 | ac_help="$ac_help | |
282 | --enable-mdi use multiple document interface architecture" | |
283 | ac_help="$ac_help | |
284 | --enable-loggui use standard GUI logger" | |
285 | ac_help="$ac_help | |
286 | --enable-logwin use wxLogWindow" | |
287 | ac_help="$ac_help | |
288 | --enable-logdialog use wxLogDialog" | |
289 | ac_help="$ac_help | |
290 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" | |
a0b9e27f | 291 | ac_help="$ac_help |
3c907f20 | 292 | --enable-prologio not available; see contrib" |
a0b9e27f | 293 | ac_help="$ac_help |
3c907f20 | 294 | --enable-resources not available; see contrib" |
a0b9e27f | 295 | ac_help="$ac_help |
da494b40 | 296 | --enable-clipboard use wxClipboard class" |
a0b9e27f MB |
297 | ac_help="$ac_help |
298 | --enable-dnd use Drag'n'Drop classes" | |
299 | ac_help="$ac_help | |
300 | --enable-metafile use win32 metafiles" | |
a0b9e27f MB |
301 | ac_help="$ac_help |
302 | --enable-controls use all usual controls" | |
303 | ac_help="$ac_help | |
304 | --enable-accel use accelerators" | |
305 | ac_help="$ac_help | |
306 | --enable-button use wxButton class" | |
307 | ac_help="$ac_help | |
308 | --enable-bmpbutton use wxBitmapButton class" | |
309 | ac_help="$ac_help | |
310 | --enable-calendar use wxCalendarCtrl class" | |
311 | ac_help="$ac_help | |
312 | --enable-caret use wxCaret class" | |
313 | ac_help="$ac_help | |
314 | --enable-checkbox use wxCheckBox class" | |
315 | ac_help="$ac_help | |
316 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" | |
317 | ac_help="$ac_help | |
318 | --enable-choice use wxChoice class" | |
319 | ac_help="$ac_help | |
da494b40 MB |
320 | --enable-combobox use wxComboBox class" |
321 | ac_help="$ac_help | |
322 | --enable-display use wxDisplay class" | |
a0b9e27f MB |
323 | ac_help="$ac_help |
324 | --enable-gauge use wxGauge class" | |
325 | ac_help="$ac_help | |
326 | --enable-grid use wxGrid class" | |
a0b9e27f MB |
327 | ac_help="$ac_help |
328 | --enable-imaglist use wxImageList class" | |
329 | ac_help="$ac_help | |
330 | --enable-listbox use wxListBox class" | |
331 | ac_help="$ac_help | |
332 | --enable-listctrl use wxListCtrl class" | |
333 | ac_help="$ac_help | |
334 | --enable-notebook use wxNotebook class" | |
a0b9e27f MB |
335 | ac_help="$ac_help |
336 | --enable-radiobox use wxRadioBox class" | |
337 | ac_help="$ac_help | |
338 | --enable-radiobtn use wxRadioButton class" | |
339 | ac_help="$ac_help | |
340 | --enable-sash use wxSashWindow class" | |
341 | ac_help="$ac_help | |
342 | --enable-scrollbar use wxScrollBar class and scrollable windows" | |
343 | ac_help="$ac_help | |
344 | --enable-slider use wxSlider class" | |
345 | ac_help="$ac_help | |
346 | --enable-spinbtn use wxSpinButton class" | |
347 | ac_help="$ac_help | |
348 | --enable-spinctrl use wxSpinCtrl class" | |
349 | ac_help="$ac_help | |
350 | --enable-splitter use wxSplitterWindow class" | |
351 | ac_help="$ac_help | |
352 | --enable-statbmp use wxStaticBitmap class" | |
353 | ac_help="$ac_help | |
354 | --enable-statbox use wxStaticBox class" | |
355 | ac_help="$ac_help | |
356 | --enable-statline use wxStaticLine class" | |
357 | ac_help="$ac_help | |
358 | --enable-stattext use wxStaticText class" | |
359 | ac_help="$ac_help | |
360 | --enable-statusbar use wxStatusBar class" | |
361 | ac_help="$ac_help | |
362 | --enable-tabdialog use wxTabControl class" | |
363 | ac_help="$ac_help | |
364 | --enable-textctrl use wxTextCtrl class" | |
365 | ac_help="$ac_help | |
366 | --enable-togglebtn use wxToggleButton class" | |
367 | ac_help="$ac_help | |
368 | --enable-toolbar use wxToolBar class" | |
369 | ac_help="$ac_help | |
370 | --enable-tbarnative use native wxToolBar class" | |
371 | ac_help="$ac_help | |
372 | --enable-tbarsmpl use wxToolBarSimple class" | |
373 | ac_help="$ac_help | |
374 | --enable-treectrl use wxTreeCtrl class" | |
375 | ac_help="$ac_help | |
376 | --enable-tipwindow use wxTipWindow class" | |
377 | ac_help="$ac_help | |
378 | --enable-popupwin use wxPopUpWindow class" | |
379 | ac_help="$ac_help | |
380 | --enable-commondlg use all common dialogs" | |
381 | ac_help="$ac_help | |
382 | --enable-choicedlg use wxChoiceDialog" | |
383 | ac_help="$ac_help | |
384 | --enable-coldlg use wxColourDialog" | |
385 | ac_help="$ac_help | |
386 | --enable-filedlg use wxFileDialog" | |
387 | ac_help="$ac_help | |
388 | --enable-finddlg use wxFindReplaceDialog" | |
389 | ac_help="$ac_help | |
390 | --enable-fontdlg use wxFontDialog" | |
391 | ac_help="$ac_help | |
392 | --enable-dirdlg use wxDirDialog" | |
393 | ac_help="$ac_help | |
394 | --enable-msgdlg use wxMessageDialog" | |
395 | ac_help="$ac_help | |
396 | --enable-numberdlg use wxNumberEntryDialog" | |
397 | ac_help="$ac_help | |
398 | --enable-splash use wxSplashScreen" | |
399 | ac_help="$ac_help | |
400 | --enable-textdlg use wxTextDialog" | |
401 | ac_help="$ac_help | |
402 | --enable-tipdlg use startup tips" | |
403 | ac_help="$ac_help | |
404 | --enable-progressdlg use wxProgressDialog" | |
405 | ac_help="$ac_help | |
406 | --enable-wizarddlg use wxWizard" | |
407 | ac_help="$ac_help | |
408 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" | |
409 | ac_help="$ac_help | |
410 | --enable-miniframe use wxMiniFrame class" | |
411 | ac_help="$ac_help | |
412 | --enable-tooltips use wxToolTip class" | |
413 | ac_help="$ac_help | |
414 | --enable-splines use spline drawing code" | |
415 | ac_help="$ac_help | |
416 | --enable-validators use wxValidator and derived classes" | |
417 | ac_help="$ac_help | |
418 | --enable-busyinfo use wxBusyInfo" | |
419 | ac_help="$ac_help | |
420 | --enable-joystick use wxJoystick (Linux only)" | |
421 | ac_help="$ac_help | |
422 | --enable-metafiles use wxMetaFile (Windows only)" | |
423 | ac_help="$ac_help | |
424 | --enable-dragimage use wxDragImage" | |
7bb2947d MB |
425 | ac_help="$ac_help |
426 | --enable-accessibility enable accessibility support" | |
a0b9e27f MB |
427 | ac_help="$ac_help |
428 | --enable-palette use wxPalette class" | |
429 | ac_help="$ac_help | |
430 | --enable-image use wxImage class" | |
431 | ac_help="$ac_help | |
432 | --enable-gif use gif images (GIF file format)" | |
433 | ac_help="$ac_help | |
434 | --enable-pcx use pcx images (PCX file format)" | |
435 | ac_help="$ac_help | |
436 | --enable-iff use iff images (IFF file format)" | |
437 | ac_help="$ac_help | |
438 | --enable-pnm use pnm images (PNM file format)" | |
439 | ac_help="$ac_help | |
440 | --enable-xpm use xpm images (XPM file format)" | |
441 | ac_help="$ac_help | |
442 | --enable-icocur use Windows ICO and CUR formats" | |
443 | ac_help="$ac_help | |
444 | --disable-largefile omit support for large files" | |
445 | ac_help="$ac_help | |
446 | --disable-gtktest do not try to compile and run a test GTK+ program" | |
447 | ac_help="$ac_help | |
448 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
449 | ac_help="$ac_help | |
450 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
451 | ac_help="$ac_help | |
452 | --disable-gtktest Do not try to compile and run a test GTK program" | |
453 | ac_help="$ac_help | |
454 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
455 | ac_help="$ac_help | |
456 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
457 | ac_help="$ac_help | |
458 | --disable-gtktest Do not try to compile and run a test GTK program" | |
459 | ac_help="$ac_help | |
460 | --with-x use the X Window System" | |
461 | ac_help="$ac_help | |
462 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib" | |
10f2d63a VZ |
463 | |
464 | # Initialize some variables set by options. | |
465 | # The variables have the same names as the options, with | |
466 | # dashes changed to underlines. | |
a0b9e27f MB |
467 | build=NONE |
468 | cache_file=./config.cache | |
10f2d63a | 469 | exec_prefix=NONE |
a0b9e27f | 470 | host=NONE |
10f2d63a | 471 | no_create= |
a0b9e27f | 472 | nonopt=NONE |
10f2d63a VZ |
473 | no_recursion= |
474 | prefix=NONE | |
475 | program_prefix=NONE | |
476 | program_suffix=NONE | |
477 | program_transform_name=s,x,x, | |
478 | silent= | |
479 | site= | |
480 | srcdir= | |
a0b9e27f | 481 | target=NONE |
10f2d63a VZ |
482 | verbose= |
483 | x_includes=NONE | |
484 | x_libraries=NONE | |
485 | bindir='${exec_prefix}/bin' | |
486 | sbindir='${exec_prefix}/sbin' | |
487 | libexecdir='${exec_prefix}/libexec' | |
488 | datadir='${prefix}/share' | |
489 | sysconfdir='${prefix}/etc' | |
490 | sharedstatedir='${prefix}/com' | |
491 | localstatedir='${prefix}/var' | |
492 | libdir='${exec_prefix}/lib' | |
493 | includedir='${prefix}/include' | |
494 | oldincludedir='/usr/include' | |
495 | infodir='${prefix}/info' | |
496 | mandir='${prefix}/man' | |
497 | ||
a0b9e27f MB |
498 | # Initialize some other variables. |
499 | subdirs= | |
500 | MFLAGS= MAKEFLAGS= | |
501 | SHELL=${CONFIG_SHELL-/bin/sh} | |
502 | # Maximum number of lines to put in a shell here document. | |
503 | ac_max_here_lines=12 | |
504 | ||
10f2d63a VZ |
505 | ac_prev= |
506 | for ac_option | |
507 | do | |
a0b9e27f | 508 | |
10f2d63a VZ |
509 | # If the previous option needs an argument, assign it. |
510 | if test -n "$ac_prev"; then | |
511 | eval "$ac_prev=\$ac_option" | |
512 | ac_prev= | |
513 | continue | |
514 | fi | |
515 | ||
a0b9e27f MB |
516 | case "$ac_option" in |
517 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
518 | *) ac_optarg= ;; | |
519 | esac | |
10f2d63a VZ |
520 | |
521 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
522 | ||
a0b9e27f | 523 | case "$ac_option" in |
10f2d63a VZ |
524 | |
525 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
526 | ac_prev=bindir ;; | |
527 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
a0b9e27f | 528 | bindir="$ac_optarg" ;; |
10f2d63a VZ |
529 | |
530 | -build | --build | --buil | --bui | --bu) | |
a0b9e27f | 531 | ac_prev=build ;; |
10f2d63a | 532 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
a0b9e27f | 533 | build="$ac_optarg" ;; |
10f2d63a VZ |
534 | |
535 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
536 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
537 | ac_prev=cache_file ;; | |
538 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
539 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
a0b9e27f | 540 | cache_file="$ac_optarg" ;; |
10f2d63a VZ |
541 | |
542 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
543 | ac_prev=datadir ;; | |
544 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
545 | | --da=*) | |
a0b9e27f | 546 | datadir="$ac_optarg" ;; |
10f2d63a VZ |
547 | |
548 | -disable-* | --disable-*) | |
a0b9e27f | 549 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
10f2d63a | 550 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
551 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
552 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
553 | fi | |
554 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
555 | eval "enable_${ac_feature}=no" ;; | |
10f2d63a VZ |
556 | |
557 | -enable-* | --enable-*) | |
a0b9e27f | 558 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
10f2d63a | 559 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
560 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
561 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
562 | fi | |
563 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
564 | case "$ac_option" in | |
565 | *=*) ;; | |
10f2d63a VZ |
566 | *) ac_optarg=yes ;; |
567 | esac | |
a0b9e27f | 568 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
10f2d63a VZ |
569 | |
570 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
571 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
572 | | --exec | --exe | --ex) | |
573 | ac_prev=exec_prefix ;; | |
574 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
575 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
576 | | --exec=* | --exe=* | --ex=*) | |
a0b9e27f | 577 | exec_prefix="$ac_optarg" ;; |
10f2d63a VZ |
578 | |
579 | -gas | --gas | --ga | --g) | |
580 | # Obsolete; use --with-gas. | |
581 | with_gas=yes ;; | |
582 | ||
a0b9e27f MB |
583 | -help | --help | --hel | --he) |
584 | # Omit some internal or obsolete options to make the list less imposing. | |
585 | # This message is too long to be a string in the A/UX 3.1 sh. | |
586 | cat << EOF | |
587 | Usage: configure [options] [host] | |
588 | Options: [defaults in brackets after descriptions] | |
589 | Configuration: | |
590 | --cache-file=FILE cache test results in FILE | |
591 | --help print this message | |
592 | --no-create do not create output files | |
593 | --quiet, --silent do not print \`checking...' messages | |
594 | --version print the version of autoconf that created configure | |
595 | Directory and file names: | |
596 | --prefix=PREFIX install architecture-independent files in PREFIX | |
597 | [$ac_default_prefix] | |
598 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
599 | [same as prefix] | |
600 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
601 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
602 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
603 | --datadir=DIR read-only architecture-independent data in DIR | |
604 | [PREFIX/share] | |
605 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
606 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
607 | [PREFIX/com] | |
608 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
609 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
610 | --includedir=DIR C header files in DIR [PREFIX/include] | |
611 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
612 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
613 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
614 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
615 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
616 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
617 | --program-transform-name=PROGRAM | |
618 | run sed PROGRAM on installed program names | |
619 | EOF | |
620 | cat << EOF | |
621 | Host type: | |
622 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
623 | --host=HOST configure for HOST [guessed] | |
624 | --target=TARGET configure for TARGET [TARGET=HOST] | |
625 | Features and packages: | |
626 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
627 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
628 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
629 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
630 | --x-includes=DIR X include files are in DIR | |
631 | --x-libraries=DIR X library files are in DIR | |
632 | EOF | |
633 | if test -n "$ac_help"; then | |
634 | echo "--enable and --with options recognized:$ac_help" | |
635 | fi | |
636 | exit 0 ;; | |
10f2d63a VZ |
637 | |
638 | -host | --host | --hos | --ho) | |
a0b9e27f | 639 | ac_prev=host ;; |
10f2d63a | 640 | -host=* | --host=* | --hos=* | --ho=*) |
a0b9e27f | 641 | host="$ac_optarg" ;; |
10f2d63a VZ |
642 | |
643 | -includedir | --includedir | --includedi | --included | --include \ | |
644 | | --includ | --inclu | --incl | --inc) | |
645 | ac_prev=includedir ;; | |
646 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
647 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
a0b9e27f | 648 | includedir="$ac_optarg" ;; |
10f2d63a VZ |
649 | |
650 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
651 | ac_prev=infodir ;; | |
652 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
a0b9e27f | 653 | infodir="$ac_optarg" ;; |
10f2d63a VZ |
654 | |
655 | -libdir | --libdir | --libdi | --libd) | |
656 | ac_prev=libdir ;; | |
657 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
a0b9e27f | 658 | libdir="$ac_optarg" ;; |
10f2d63a VZ |
659 | |
660 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
661 | | --libexe | --libex | --libe) | |
662 | ac_prev=libexecdir ;; | |
663 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
664 | | --libexe=* | --libex=* | --libe=*) | |
a0b9e27f | 665 | libexecdir="$ac_optarg" ;; |
10f2d63a VZ |
666 | |
667 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
668 | | --localstate | --localstat | --localsta | --localst \ | |
669 | | --locals | --local | --loca | --loc | --lo) | |
670 | ac_prev=localstatedir ;; | |
671 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
672 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
673 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
a0b9e27f | 674 | localstatedir="$ac_optarg" ;; |
10f2d63a VZ |
675 | |
676 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
677 | ac_prev=mandir ;; | |
678 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
a0b9e27f | 679 | mandir="$ac_optarg" ;; |
10f2d63a VZ |
680 | |
681 | -nfp | --nfp | --nf) | |
682 | # Obsolete; use --without-fp. | |
683 | with_fp=no ;; | |
684 | ||
685 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
a0b9e27f | 686 | | --no-cr | --no-c) |
10f2d63a VZ |
687 | no_create=yes ;; |
688 | ||
689 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
690 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
691 | no_recursion=yes ;; | |
692 | ||
693 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
694 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
695 | | --oldin | --oldi | --old | --ol | --o) | |
696 | ac_prev=oldincludedir ;; | |
697 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
698 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
699 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
a0b9e27f | 700 | oldincludedir="$ac_optarg" ;; |
10f2d63a VZ |
701 | |
702 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
703 | ac_prev=prefix ;; | |
704 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
a0b9e27f | 705 | prefix="$ac_optarg" ;; |
10f2d63a VZ |
706 | |
707 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
708 | | --program-pre | --program-pr | --program-p) | |
709 | ac_prev=program_prefix ;; | |
710 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
711 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
a0b9e27f | 712 | program_prefix="$ac_optarg" ;; |
10f2d63a VZ |
713 | |
714 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
715 | | --program-suf | --program-su | --program-s) | |
716 | ac_prev=program_suffix ;; | |
717 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
718 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
a0b9e27f | 719 | program_suffix="$ac_optarg" ;; |
10f2d63a VZ |
720 | |
721 | -program-transform-name | --program-transform-name \ | |
722 | | --program-transform-nam | --program-transform-na \ | |
723 | | --program-transform-n | --program-transform- \ | |
724 | | --program-transform | --program-transfor \ | |
725 | | --program-transfo | --program-transf \ | |
726 | | --program-trans | --program-tran \ | |
727 | | --progr-tra | --program-tr | --program-t) | |
728 | ac_prev=program_transform_name ;; | |
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=*) | |
a0b9e27f | 736 | program_transform_name="$ac_optarg" ;; |
10f2d63a VZ |
737 | |
738 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
739 | | -silent | --silent | --silen | --sile | --sil) | |
740 | silent=yes ;; | |
741 | ||
742 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
743 | ac_prev=sbindir ;; | |
744 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
745 | | --sbi=* | --sb=*) | |
a0b9e27f | 746 | sbindir="$ac_optarg" ;; |
10f2d63a VZ |
747 | |
748 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
749 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
750 | | --sharedst | --shareds | --shared | --share | --shar \ | |
751 | | --sha | --sh) | |
752 | ac_prev=sharedstatedir ;; | |
753 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
754 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
755 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
756 | | --sha=* | --sh=*) | |
a0b9e27f | 757 | sharedstatedir="$ac_optarg" ;; |
10f2d63a VZ |
758 | |
759 | -site | --site | --sit) | |
760 | ac_prev=site ;; | |
761 | -site=* | --site=* | --sit=*) | |
a0b9e27f | 762 | site="$ac_optarg" ;; |
10f2d63a VZ |
763 | |
764 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
765 | ac_prev=srcdir ;; | |
766 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
a0b9e27f | 767 | srcdir="$ac_optarg" ;; |
10f2d63a VZ |
768 | |
769 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
770 | | --syscon | --sysco | --sysc | --sys | --sy) | |
771 | ac_prev=sysconfdir ;; | |
772 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
773 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
a0b9e27f | 774 | sysconfdir="$ac_optarg" ;; |
10f2d63a VZ |
775 | |
776 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
a0b9e27f | 777 | ac_prev=target ;; |
10f2d63a | 778 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
a0b9e27f | 779 | target="$ac_optarg" ;; |
10f2d63a VZ |
780 | |
781 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
782 | verbose=yes ;; | |
783 | ||
a0b9e27f MB |
784 | -version | --version | --versio | --versi | --vers) |
785 | echo "configure generated by autoconf version 2.13" | |
786 | exit 0 ;; | |
10f2d63a VZ |
787 | |
788 | -with-* | --with-*) | |
a0b9e27f | 789 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
10f2d63a | 790 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
791 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
792 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
793 | fi | |
10f2d63a | 794 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
a0b9e27f MB |
795 | case "$ac_option" in |
796 | *=*) ;; | |
10f2d63a VZ |
797 | *) ac_optarg=yes ;; |
798 | esac | |
a0b9e27f | 799 | eval "with_${ac_package}='$ac_optarg'" ;; |
10f2d63a VZ |
800 | |
801 | -without-* | --without-*) | |
a0b9e27f | 802 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
10f2d63a | 803 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
804 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
805 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
806 | fi | |
807 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
808 | eval "with_${ac_package}=no" ;; | |
10f2d63a VZ |
809 | |
810 | --x) | |
811 | # Obsolete; use --with-x. | |
812 | with_x=yes ;; | |
813 | ||
814 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
815 | | --x-incl | --x-inc | --x-in | --x-i) | |
816 | ac_prev=x_includes ;; | |
817 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
818 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
a0b9e27f | 819 | x_includes="$ac_optarg" ;; |
10f2d63a VZ |
820 | |
821 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
822 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
823 | ac_prev=x_libraries ;; | |
824 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
825 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
a0b9e27f | 826 | x_libraries="$ac_optarg" ;; |
10f2d63a | 827 | |
a0b9e27f | 828 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
10f2d63a VZ |
829 | ;; |
830 | ||
831 | *) | |
a0b9e27f MB |
832 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
833 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
834 | fi | |
835 | if test "x$nonopt" != xNONE; then | |
836 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
837 | fi | |
838 | nonopt="$ac_option" | |
10f2d63a VZ |
839 | ;; |
840 | ||
841 | esac | |
842 | done | |
843 | ||
844 | if test -n "$ac_prev"; then | |
a0b9e27f | 845 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
8284b0c5 | 846 | fi |
8284b0c5 | 847 | |
a0b9e27f MB |
848 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
849 | ||
850 | # File descriptor usage: | |
851 | # 0 standard input | |
852 | # 1 file creation | |
853 | # 2 errors and warnings | |
854 | # 3 some systems may open it to /dev/tty | |
855 | # 4 used on the Kubota Titan | |
856 | # 6 checking for... messages and results | |
857 | # 5 compiler messages saved in config.log | |
858 | if test "$silent" = yes; then | |
859 | exec 6>/dev/null | |
860 | else | |
861 | exec 6>&1 | |
862 | fi | |
863 | exec 5>./config.log | |
864 | ||
865 | echo "\ | |
866 | This file contains any messages produced by compilers while | |
867 | running configure, to aid debugging if configure makes a mistake. | |
868 | " 1>&5 | |
8284b0c5 | 869 | |
a0b9e27f MB |
870 | # Strip out --no-create and --no-recursion so they do not pile up. |
871 | # Also quote any args containing shell metacharacters. | |
872 | ac_configure_args= | |
873 | for ac_arg | |
10f2d63a | 874 | do |
a0b9e27f MB |
875 | case "$ac_arg" in |
876 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
877 | | --no-cr | --no-c) ;; | |
878 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
879 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
880 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
881 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
882 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
10f2d63a VZ |
883 | esac |
884 | done | |
885 | ||
a0b9e27f MB |
886 | # NLS nuisances. |
887 | # Only set these to C if already set. These must not be set unconditionally | |
888 | # because not all systems understand e.g. LANG=C (notably SCO). | |
889 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
890 | # Non-C LC_CTYPE values break the ctype check. | |
891 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
892 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
893 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
894 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
247f5006 | 895 | |
a0b9e27f MB |
896 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
897 | rm -rf conftest* confdefs.h | |
898 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
899 | echo > confdefs.h | |
10f2d63a | 900 | |
a0b9e27f MB |
901 | # A filename unique to this package, relative to the directory that |
902 | # configure is in, which we can look for to find out if srcdir is correct. | |
903 | ac_unique_file=wx-config.in | |
10f2d63a VZ |
904 | |
905 | # Find the source files, if location was not specified. | |
906 | if test -z "$srcdir"; then | |
907 | ac_srcdir_defaulted=yes | |
908 | # Try the directory containing this script, then its parent. | |
a0b9e27f MB |
909 | ac_prog=$0 |
910 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
911 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
10f2d63a VZ |
912 | srcdir=$ac_confdir |
913 | if test ! -r $srcdir/$ac_unique_file; then | |
914 | srcdir=.. | |
915 | fi | |
916 | else | |
917 | ac_srcdir_defaulted=no | |
918 | fi | |
919 | if test ! -r $srcdir/$ac_unique_file; then | |
920 | if test "$ac_srcdir_defaulted" = yes; then | |
a0b9e27f | 921 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
10f2d63a | 922 | else |
a0b9e27f | 923 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
10f2d63a VZ |
924 | fi |
925 | fi | |
a0b9e27f | 926 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
328a083c | 927 | |
10f2d63a VZ |
928 | # Prefer explicitly selected file to automatically selected ones. |
929 | if test -z "$CONFIG_SITE"; then | |
930 | if test "x$prefix" != xNONE; then | |
931 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
932 | else | |
933 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
934 | fi | |
935 | fi | |
936 | for ac_site_file in $CONFIG_SITE; do | |
937 | if test -r "$ac_site_file"; then | |
a0b9e27f | 938 | echo "loading site script $ac_site_file" |
10f2d63a VZ |
939 | . "$ac_site_file" |
940 | fi | |
941 | done | |
942 | ||
943 | if test -r "$cache_file"; then | |
a0b9e27f MB |
944 | echo "loading cache $cache_file" |
945 | . $cache_file | |
10f2d63a | 946 | else |
a0b9e27f MB |
947 | echo "creating cache $cache_file" |
948 | > $cache_file | |
10f2d63a VZ |
949 | fi |
950 | ||
951 | ac_ext=c | |
a0b9e27f | 952 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 953 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
954 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
955 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
956 | cross_compiling=$ac_cv_prog_cc_cross | |
957 | ||
958 | ac_exeext= | |
959 | ac_objext=o | |
960 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
961 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
962 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
963 | ac_n= ac_c=' | |
964 | ' ac_t=' ' | |
965 | else | |
966 | ac_n=-n ac_c= ac_t= | |
967 | fi | |
968 | else | |
969 | ac_n= ac_c='\c' ac_t= | |
970 | fi | |
8284b0c5 MB |
971 | |
972 | ||
10f2d63a | 973 | |
7c66a493 VZ |
974 | ac_aux_dir= |
975 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
976 | if test -f $ac_dir/install-sh; then | |
977 | ac_aux_dir=$ac_dir | |
978 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
979 | break | |
980 | elif test -f $ac_dir/install.sh; then | |
981 | ac_aux_dir=$ac_dir | |
982 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
983 | break | |
247f5006 | 984 | fi |
7c66a493 VZ |
985 | done |
986 | if test -z "$ac_aux_dir"; then | |
a0b9e27f | 987 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
7c66a493 | 988 | fi |
a0b9e27f MB |
989 | ac_config_guess=$ac_aux_dir/config.guess |
990 | ac_config_sub=$ac_aux_dir/config.sub | |
991 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
698dcdb6 | 992 | |
8284b0c5 | 993 | |
a0b9e27f MB |
994 | # Do some error checking and defaulting for the host and target type. |
995 | # The inputs are: | |
996 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
997 | # | |
998 | # The rules are: | |
999 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
1000 | # same time. | |
1001 | # 2. Host defaults to nonopt. | |
1002 | # 3. If nonopt is not specified, then host defaults to the current host, | |
1003 | # as determined by config.guess. | |
1004 | # 4. Target and build default to nonopt. | |
1005 | # 5. If nonopt is not specified, then target and build default to host. | |
7c66a493 VZ |
1006 | |
1007 | # The aliases save the names the user supplied, while $host etc. | |
1008 | # will get canonicalized. | |
a0b9e27f MB |
1009 | case $host---$target---$nonopt in |
1010 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
1011 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
1012 | esac | |
1013 | ||
1014 | ||
1015 | # Make sure we can run config.sub. | |
1016 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
1017 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
1018 | fi | |
1019 | ||
1020 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
7bb2947d | 1021 | echo "configure:1022: checking host system type" >&5 |
a0b9e27f MB |
1022 | |
1023 | host_alias=$host | |
1024 | case "$host_alias" in | |
1025 | NONE) | |
1026 | case $nonopt in | |
1027 | NONE) | |
1028 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
1029 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
1030 | fi ;; | |
1031 | *) host_alias=$nonopt ;; | |
1032 | esac ;; | |
1033 | esac | |
1034 | ||
1035 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
1036 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1037 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1038 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1039 | echo "$ac_t""$host" 1>&6 | |
1040 | ||
1041 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
7bb2947d | 1042 | echo "configure:1043: checking target system type" >&5 |
a0b9e27f MB |
1043 | |
1044 | target_alias=$target | |
1045 | case "$target_alias" in | |
1046 | NONE) | |
1047 | case $nonopt in | |
1048 | NONE) target_alias=$host_alias ;; | |
1049 | *) target_alias=$nonopt ;; | |
1050 | esac ;; | |
1051 | esac | |
1052 | ||
1053 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
1054 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1055 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1056 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1057 | echo "$ac_t""$target" 1>&6 | |
1058 | ||
1059 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
7bb2947d | 1060 | echo "configure:1061: checking build system type" >&5 |
a0b9e27f MB |
1061 | |
1062 | build_alias=$build | |
1063 | case "$build_alias" in | |
1064 | NONE) | |
1065 | case $nonopt in | |
1066 | NONE) build_alias=$host_alias ;; | |
1067 | *) build_alias=$nonopt ;; | |
1068 | esac ;; | |
1069 | esac | |
1070 | ||
1071 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
1072 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1073 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1074 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1075 | echo "$ac_t""$build" 1>&6 | |
1076 | ||
1077 | test "$host_alias" != "$target_alias" && | |
7c66a493 VZ |
1078 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1079 | NONENONEs,x,x, && | |
1080 | program_prefix=${target_alias}- | |
8284b0c5 MB |
1081 | |
1082 | ||
a0b9e27f | 1083 | |
10f2d63a | 1084 | WX_MAJOR_VERSION_NUMBER=2 |
34bed6d9 VZ |
1085 | WX_MINOR_VERSION_NUMBER=5 |
1086 | WX_RELEASE_NUMBER=0 | |
10f2d63a | 1087 | |
10f2d63a | 1088 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1089 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1090 | |
978f1259 RL |
1091 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER |
1092 | ||
34bed6d9 | 1093 | WX_CURRENT=0 |
6426998c RL |
1094 | WX_REVISION=0 |
1095 | WX_AGE=0 | |
1096 | ||
8284b0c5 MB |
1097 | |
1098 | ||
10f2d63a VZ |
1099 | USE_UNIX=1 |
1100 | USE_WIN32=0 | |
f9bc1684 | 1101 | USE_DOS=0 |
b12915c1 | 1102 | USE_BEOS=0 |
1216f52d | 1103 | USE_MAC=0 |
b12915c1 | 1104 | |
10f2d63a | 1105 | USE_AIX= |
10f2d63a | 1106 | USE_BSD= |
f11bdd03 | 1107 | USE_DARWIN= |
10f2d63a | 1108 | USE_FREEBSD= |
89e3b3e4 VZ |
1109 | USE_HPUX= |
1110 | USE_LINUX= | |
f6bcfd97 | 1111 | USE_NETBSD= |
89e3b3e4 VZ |
1112 | USE_OPENBSD= |
1113 | USE_OSF= | |
1114 | USE_SGI= | |
1115 | USE_SOLARIS= | |
1116 | USE_SUN= | |
1117 | USE_SUNOS= | |
1118 | USE_SVR4= | |
1119 | USE_SYSV= | |
10f2d63a VZ |
1120 | USE_VMS= |
1121 | USE_ULTRIX= | |
89e3b3e4 VZ |
1122 | USE_UNIXWARE= |
1123 | ||
1124 | USE_ALPHA= | |
10f2d63a | 1125 | |
ab9b9eab VZ |
1126 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1127 | ||
ac0c4cc3 | 1128 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" |
10f2d63a | 1129 | |
ac0c4cc3 | 1130 | DEFAULT_wxUSE_COCOA=0 |
10f2d63a | 1131 | DEFAULT_wxUSE_GTK=0 |
1e6feb95 VZ |
1132 | DEFAULT_wxUSE_MAC=0 |
1133 | DEFAULT_wxUSE_MGL=0 | |
1725144d | 1134 | DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1135 | DEFAULT_wxUSE_MOTIF=0 |
1136 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1137 | DEFAULT_wxUSE_PM=0 |
f79bd02d | 1138 | DEFAULT_wxUSE_X11=0 |
10f2d63a | 1139 | |
ac0c4cc3 | 1140 | DEFAULT_DEFAULT_wxUSE_COCOA=0 |
10f2d63a | 1141 | DEFAULT_DEFAULT_wxUSE_GTK=0 |
1e6feb95 VZ |
1142 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1143 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1725144d | 1144 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1145 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1146 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1147 | DEFAULT_DEFAULT_wxUSE_PM=0 |
f79bd02d | 1148 | DEFAULT_DEFAULT_wxUSE_X11=0 |
10f2d63a | 1149 | |
d6a55c4b | 1150 | PROGRAM_EXT= |
3a922bb4 | 1151 | SO_SUFFIX=so |
d6a55c4b | 1152 | |
10f2d63a VZ |
1153 | case "${host}" in |
1154 | *-hp-hpux* ) | |
1155 | USE_HPUX=1 | |
1156 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1157 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1158 | SO_SUFFIX=sl |
a0b9e27f | 1159 | cat >> confdefs.h <<\EOF |
10f2d63a | 1160 | #define __HPUX__ 1 |
a0b9e27f | 1161 | EOF |
10f2d63a VZ |
1162 | |
1163 | ;; | |
1164 | *-*-linux* ) | |
1165 | USE_LINUX=1 | |
a0b9e27f | 1166 | cat >> confdefs.h <<\EOF |
10f2d63a | 1167 | #define __LINUX__ 1 |
a0b9e27f | 1168 | EOF |
10f2d63a VZ |
1169 | |
1170 | TMP=`uname -m` | |
1171 | if test "x$TMP" = "xalpha"; then | |
1172 | USE_ALPHA=1 | |
a0b9e27f | 1173 | cat >> confdefs.h <<\EOF |
10f2d63a | 1174 | #define __ALPHA__ 1 |
a0b9e27f | 1175 | EOF |
10f2d63a VZ |
1176 | |
1177 | fi | |
1178 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1179 | ;; | |
1180 | *-*-irix5* | *-*-irix6* ) | |
1181 | USE_SGI=1 | |
1182 | USE_SVR4=1 | |
a0b9e27f | 1183 | cat >> confdefs.h <<\EOF |
10f2d63a | 1184 | #define __SGI__ 1 |
a0b9e27f | 1185 | EOF |
10f2d63a | 1186 | |
a0b9e27f | 1187 | cat >> confdefs.h <<\EOF |
10f2d63a | 1188 | #define __SVR4__ 1 |
a0b9e27f | 1189 | EOF |
10f2d63a VZ |
1190 | |
1191 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1192 | ;; | |
1193 | *-*-solaris2* ) | |
1194 | USE_SUN=1 | |
1195 | USE_SOLARIS=1 | |
1196 | USE_SVR4=1 | |
a0b9e27f | 1197 | cat >> confdefs.h <<\EOF |
10f2d63a | 1198 | #define __SUN__ 1 |
a0b9e27f | 1199 | EOF |
10f2d63a | 1200 | |
a0b9e27f | 1201 | cat >> confdefs.h <<\EOF |
10f2d63a | 1202 | #define __SOLARIS__ 1 |
a0b9e27f | 1203 | EOF |
10f2d63a | 1204 | |
a0b9e27f | 1205 | cat >> confdefs.h <<\EOF |
10f2d63a | 1206 | #define __SVR4__ 1 |
a0b9e27f | 1207 | EOF |
10f2d63a VZ |
1208 | |
1209 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1210 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1211 | ;; |
1212 | *-*-sunos4* ) | |
1213 | USE_SUN=1 | |
1214 | USE_SUNOS=1 | |
1215 | USE_BSD=1 | |
a0b9e27f | 1216 | cat >> confdefs.h <<\EOF |
10f2d63a | 1217 | #define __SUN__ 1 |
a0b9e27f | 1218 | EOF |
10f2d63a | 1219 | |
a0b9e27f | 1220 | cat >> confdefs.h <<\EOF |
10f2d63a | 1221 | #define __SUNOS__ 1 |
a0b9e27f | 1222 | EOF |
10f2d63a | 1223 | |
a0b9e27f | 1224 | cat >> confdefs.h <<\EOF |
10f2d63a | 1225 | #define __BSD__ 1 |
a0b9e27f | 1226 | EOF |
10f2d63a VZ |
1227 | |
1228 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1229 | ;; | |
f6bcfd97 | 1230 | *-*-freebsd*) |
10f2d63a VZ |
1231 | USE_BSD=1 |
1232 | USE_FREEBSD=1 | |
a0b9e27f | 1233 | cat >> confdefs.h <<\EOF |
10f2d63a | 1234 | #define __FREEBSD__ 1 |
a0b9e27f | 1235 | EOF |
10f2d63a | 1236 | |
a0b9e27f | 1237 | cat >> confdefs.h <<\EOF |
10f2d63a | 1238 | #define __BSD__ 1 |
a0b9e27f | 1239 | EOF |
95c8801c VS |
1240 | |
1241 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1242 | ;; | |
1243 | *-*-openbsd*) | |
1244 | USE_BSD=1 | |
1245 | USE_OPENBSD=1 | |
a0b9e27f | 1246 | cat >> confdefs.h <<\EOF |
2b5f62a0 | 1247 | #define __OPENBSD__ 1 |
a0b9e27f | 1248 | EOF |
95c8801c | 1249 | |
a0b9e27f | 1250 | cat >> confdefs.h <<\EOF |
2b5f62a0 | 1251 | #define __BSD__ 1 |
a0b9e27f | 1252 | EOF |
f6bcfd97 BP |
1253 | |
1254 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1255 | ;; | |
1256 | *-*-netbsd*) | |
1257 | USE_BSD=1 | |
1258 | USE_NETBSD=1 | |
a0b9e27f | 1259 | cat >> confdefs.h <<\EOF |
2b5f62a0 | 1260 | #define __NETBSD__ 1 |
a0b9e27f | 1261 | EOF |
f6bcfd97 | 1262 | |
a0b9e27f | 1263 | cat >> confdefs.h <<\EOF |
2b5f62a0 | 1264 | #define __BSD__ 1 |
a0b9e27f | 1265 | EOF |
10f2d63a VZ |
1266 | |
1267 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1268 | ;; | |
1269 | *-*-osf* ) | |
1270 | USE_ALPHA=1 | |
1271 | USE_OSF=1 | |
a0b9e27f | 1272 | cat >> confdefs.h <<\EOF |
10f2d63a | 1273 | #define __ALPHA__ 1 |
a0b9e27f | 1274 | EOF |
10f2d63a | 1275 | |
a0b9e27f | 1276 | cat >> confdefs.h <<\EOF |
10f2d63a | 1277 | #define __OSF__ 1 |
a0b9e27f | 1278 | EOF |
10f2d63a VZ |
1279 | |
1280 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1281 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1282 | ;; |
1283 | *-*-dgux5* ) | |
1284 | USE_ALPHA=1 | |
1285 | USE_SVR4=1 | |
a0b9e27f | 1286 | cat >> confdefs.h <<\EOF |
10f2d63a | 1287 | #define __ALPHA__ 1 |
a0b9e27f | 1288 | EOF |
10f2d63a | 1289 | |
a0b9e27f | 1290 | cat >> confdefs.h <<\EOF |
10f2d63a | 1291 | #define __SVR4__ 1 |
a0b9e27f | 1292 | EOF |
10f2d63a VZ |
1293 | |
1294 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1295 | ;; | |
1296 | *-*-sysv5* ) | |
1297 | USE_SYSV=1 | |
1298 | USE_SVR4=1 | |
a0b9e27f | 1299 | cat >> confdefs.h <<\EOF |
10f2d63a | 1300 | #define __SYSV__ 1 |
a0b9e27f | 1301 | EOF |
10f2d63a | 1302 | |
a0b9e27f | 1303 | cat >> confdefs.h <<\EOF |
10f2d63a | 1304 | #define __SVR4__ 1 |
a0b9e27f | 1305 | EOF |
10f2d63a VZ |
1306 | |
1307 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1308 | ;; | |
1309 | *-*-aix* ) | |
1310 | USE_AIX=1 | |
1311 | USE_SYSV=1 | |
1312 | USE_SVR4=1 | |
2b5f62a0 | 1313 | SO_SUFFIX=a |
a0b9e27f | 1314 | cat >> confdefs.h <<\EOF |
10f2d63a | 1315 | #define __AIX__ 1 |
a0b9e27f | 1316 | EOF |
10f2d63a | 1317 | |
a0b9e27f | 1318 | cat >> confdefs.h <<\EOF |
10f2d63a | 1319 | #define __SYSV__ 1 |
a0b9e27f | 1320 | EOF |
10f2d63a | 1321 | |
a0b9e27f | 1322 | cat >> confdefs.h <<\EOF |
10f2d63a | 1323 | #define __SVR4__ 1 |
a0b9e27f | 1324 | EOF |
10f2d63a VZ |
1325 | |
1326 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1327 | ;; | |
1328 | ||
89e3b3e4 VZ |
1329 | *-*-*UnixWare*) |
1330 | USE_SYSV=1 | |
1331 | USE_SVR4=1 | |
1332 | USE_UNIXWARE=1 | |
1333 | cat >> confdefs.h <<\EOF | |
1334 | #define __UNIXWARE__ 1 | |
1335 | EOF | |
1336 | ||
1337 | ;; | |
1338 | ||
1c8183e2 | 1339 | *-*-cygwin* | *-*-mingw32* ) |
17234b26 | 1340 | SO_SUFFIX=dll |
cf27ef00 | 1341 | PROGRAM_EXT=".exe" |
7b7a7637 | 1342 | RESCOMP=windres |
10f2d63a VZ |
1343 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1344 | ;; | |
1345 | ||
f9bc1684 VS |
1346 | *-pc-msdosdjgpp ) |
1347 | USE_UNIX=0 | |
1348 | USE_DOS=1 | |
a0b9e27f | 1349 | cat >> confdefs.h <<\EOF |
f9bc1684 | 1350 | #define __DOS__ 1 |
a0b9e27f | 1351 | EOF |
f9bc1684 VS |
1352 | |
1353 | PROGRAM_EXT=".exe" | |
1354 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
24f5e003 | 1355 | LIBS="$LIBS -lstdc++" |
f9bc1684 VS |
1356 | ;; |
1357 | ||
6fa882bd | 1358 | *-pc-os2_emx | *-pc-os2-emx ) |
a0b9e27f | 1359 | cat >> confdefs.h <<\EOF |
10f2d63a | 1360 | #define __EMX__ 1 |
a0b9e27f | 1361 | EOF |
10f2d63a | 1362 | |
cf27ef00 | 1363 | PROGRAM_EXT=".exe" |
e07802fc | 1364 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1365 | ;; |
1366 | ||
d08b457b GD |
1367 | powerpc-*-darwin* ) |
1368 | USE_BSD=1 | |
f11bdd03 | 1369 | USE_DARWIN=1 |
3a922bb4 | 1370 | SO_SUFFIX=dylib |
a0b9e27f | 1371 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1372 | #define __BSD__ 1 |
a0b9e27f | 1373 | EOF |
b4085ce6 | 1374 | |
a0b9e27f | 1375 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1376 | #define __DARWIN__ 1 |
a0b9e27f | 1377 | EOF |
d08b457b | 1378 | |
a0b9e27f | 1379 | cat >> confdefs.h <<\EOF |
d08b457b | 1380 | #define __POWERPC__ 1 |
82d43113 GD |
1381 | EOF |
1382 | ||
1383 | cat >> confdefs.h <<\EOF | |
1384 | #define TARGET_CARBON 1 | |
a0b9e27f | 1385 | EOF |
b4085ce6 GD |
1386 | |
1387 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1388 | ;; | |
1389 | ||
b12915c1 VZ |
1390 | *-*-beos* ) |
1391 | USE_BEOS=1 | |
a0b9e27f | 1392 | cat >> confdefs.h <<\EOF |
b12915c1 | 1393 | #define __BEOS__ 1 |
a0b9e27f | 1394 | EOF |
b12915c1 VZ |
1395 | |
1396 | ;; | |
1397 | ||
10f2d63a | 1398 | *) |
a0b9e27f | 1399 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1400 | esac |
1401 | ||
8284b0c5 MB |
1402 | |
1403 | ||
1404 | ||
1405 | wx_arg_cache_file="configarg.cache" | |
1406 | echo "loading argument cache $wx_arg_cache_file" | |
10f2d63a VZ |
1407 | rm -f ${wx_arg_cache_file}.tmp |
1408 | touch ${wx_arg_cache_file}.tmp | |
1409 | touch ${wx_arg_cache_file} | |
a0b9e27f | 1410 | |
10f2d63a VZ |
1411 | |
1412 | DEBUG_CONFIGURE=0 | |
1413 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1414 | DEFAULT_wxUSE_UNIVERSAL=no |
1415 | ||
d8356fa3 VZ |
1416 | DEFAULT_wxUSE_NANOX=no |
1417 | ||
10f2d63a VZ |
1418 | DEFAULT_wxUSE_THREADS=yes |
1419 | ||
1420 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1421 | DEFAULT_wxUSE_SONAME=no |
1e6feb95 | 1422 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1423 | DEFAULT_wxUSE_PROFILE=no |
1424 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1425 | DEFAULT_wxUSE_NO_RTTI=no |
1426 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1427 | DEFAULT_wxUSE_PERMISSIVE=no |
1428 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1429 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1430 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1431 | DEFAULT_wxUSE_MEM_TRACING=no | |
1432 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1433 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1434 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1435 | DEFAULT_wxUSE_APPLE_IEEE=no |
1436 | ||
1437 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1438 | DEFAULT_wxUSE_LOGWINDOW=no |
1439 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 1440 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
1441 | |
1442 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1443 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1444 | |
3e44f09d | 1445 | DEFAULT_wxUSE_REGEX=no |
10f2d63a VZ |
1446 | DEFAULT_wxUSE_ZLIB=no |
1447 | DEFAULT_wxUSE_LIBPNG=no | |
1448 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1449 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1450 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1451 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1452 | |
eb4efbdc | 1453 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1454 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1455 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1456 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1457 | DEFAULT_wxUSE_DATETIME=no | |
1e6feb95 VZ |
1458 | DEFAULT_wxUSE_TIMER=no |
1459 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1460 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1461 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 1462 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 1463 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1464 | DEFAULT_wxUSE_WAVE=no |
1465 | DEFAULT_wxUSE_INTL=no | |
1466 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1467 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1468 | DEFAULT_wxUSE_STREAMS=no |
1469 | DEFAULT_wxUSE_SOCKETS=no | |
3bce6687 JS |
1470 | DEFAULT_wxUSE_OLE=no |
1471 | DEFAULT_wxUSE_DATAOBJ=no | |
10f2d63a | 1472 | DEFAULT_wxUSE_DIALUP_MANAGER=no |
10f2d63a | 1473 | DEFAULT_wxUSE_JOYSTICK=no |
6bff71f8 | 1474 | DEFAULT_wxUSE_DYNLIB_CLASS=no |
0b9ab0bd | 1475 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
10f2d63a | 1476 | DEFAULT_wxUSE_LONGLONG=no |
e8f65ba6 | 1477 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1478 | |
1479 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1480 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1481 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1482 | ||
10f2d63a VZ |
1483 | DEFAULT_wxUSE_CLIPBOARD=no |
1484 | DEFAULT_wxUSE_TOOLTIPS=no | |
1485 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1486 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1487 | DEFAULT_wxUSE_SPLINES=no |
1488 | ||
1489 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1490 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1491 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1492 | ||
10f2d63a VZ |
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 | |
10f2d63a VZ |
1546 | DEFAULT_wxUSE_IMAGLIST=no |
1547 | DEFAULT_wxUSE_LISTBOX=no | |
1548 | DEFAULT_wxUSE_LISTCTRL=no | |
1549 | DEFAULT_wxUSE_NOTEBOOK=no | |
1550 | DEFAULT_wxUSE_RADIOBOX=no | |
1551 | DEFAULT_wxUSE_RADIOBTN=no | |
1552 | DEFAULT_wxUSE_SASH=no | |
1553 | DEFAULT_wxUSE_SCROLLBAR=no | |
1554 | DEFAULT_wxUSE_SLIDER=no | |
1555 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1556 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1557 | DEFAULT_wxUSE_SPLITTER=no |
1558 | DEFAULT_wxUSE_STATBMP=no | |
1559 | DEFAULT_wxUSE_STATBOX=no | |
1560 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1561 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1562 | DEFAULT_wxUSE_STATUSBAR=yes |
1563 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1564 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1565 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1566 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1567 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1568 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 1569 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 1570 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 1571 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
1572 | |
1573 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1574 | DEFAULT_wxUSE_UNICODE_MSLU=no |
10f2d63a VZ |
1575 | DEFAULT_wxUSE_WCSRTOMBS=no |
1576 | ||
edae8572 | 1577 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 1578 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1579 | DEFAULT_wxUSE_GIF=no |
1580 | DEFAULT_wxUSE_PCX=no | |
1581 | DEFAULT_wxUSE_PNM=no | |
4b6b4dfc | 1582 | DEFAULT_wxUSE_IFF=no |
0046ff7c | 1583 | DEFAULT_wxUSE_XPM=no |
658974ae | 1584 | DEFAULT_wxUSE_ICO_CUR=no |
7bb2947d | 1585 | DEFAULT_wxUSE_ACCESSIBILITY=no |
10f2d63a | 1586 | else |
1e6feb95 VZ |
1587 | DEFAULT_wxUSE_UNIVERSAL=no |
1588 | ||
d8356fa3 VZ |
1589 | DEFAULT_wxUSE_NANOX=no |
1590 | ||
10f2d63a VZ |
1591 | DEFAULT_wxUSE_THREADS=yes |
1592 | ||
1593 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1594 | DEFAULT_wxUSE_SONAME=no |
10f2d63a VZ |
1595 | DEFAULT_wxUSE_OPTIMISE=yes |
1596 | DEFAULT_wxUSE_PROFILE=no | |
1597 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1598 | DEFAULT_wxUSE_NO_RTTI=no |
1599 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1600 | DEFAULT_wxUSE_PERMISSIVE=no |
1601 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1602 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1603 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1604 | DEFAULT_wxUSE_MEM_TRACING=no | |
1605 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1606 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1607 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1608 | DEFAULT_wxUSE_APPLE_IEEE=yes |
1609 | ||
1610 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1611 | DEFAULT_wxUSE_LOGWINDOW=yes |
1612 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 1613 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
1614 | |
1615 | DEFAULT_wxUSE_GUI=yes | |
1616 | ||
831b3152 | 1617 | DEFAULT_wxUSE_REGEX=yes |
10f2d63a VZ |
1618 | DEFAULT_wxUSE_ZLIB=yes |
1619 | DEFAULT_wxUSE_LIBPNG=yes | |
1620 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1621 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1622 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1623 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1624 | |
eb4efbdc | 1625 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1626 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1627 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1628 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1629 | DEFAULT_wxUSE_DATETIME=yes | |
1e6feb95 VZ |
1630 | DEFAULT_wxUSE_TIMER=yes |
1631 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1632 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1633 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 1634 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 1635 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1636 | DEFAULT_wxUSE_WAVE=no |
1637 | DEFAULT_wxUSE_INTL=yes | |
1638 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1639 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1640 | DEFAULT_wxUSE_STREAMS=yes |
1641 | DEFAULT_wxUSE_SOCKETS=yes | |
3bce6687 JS |
1642 | DEFAULT_wxUSE_OLE=yes |
1643 | DEFAULT_wxUSE_DATAOBJ=yes | |
10f2d63a | 1644 | DEFAULT_wxUSE_DIALUP_MANAGER=yes |
10f2d63a | 1645 | DEFAULT_wxUSE_JOYSTICK=yes |
6bff71f8 | 1646 | DEFAULT_wxUSE_DYNLIB_CLASS=yes |
9337b578 | 1647 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes |
b685cd9b | 1648 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1649 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1650 | |
1651 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1652 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1653 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1654 | ||
10f2d63a VZ |
1655 | DEFAULT_wxUSE_CLIPBOARD=yes |
1656 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1657 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1658 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1659 | DEFAULT_wxUSE_SPLINES=yes |
1660 | ||
1661 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1662 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1663 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1664 | ||
2b5f62a0 | 1665 | DEFAULT_wxUSE_RESOURCES=no |
10f2d63a VZ |
1666 | DEFAULT_wxUSE_CONSTRAINTS=yes |
1667 | DEFAULT_wxUSE_IPC=yes | |
1668 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 1669 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 1670 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 1671 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 1672 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 1673 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 1674 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
4cdb0ab0 VS |
1675 | DEFAULT_wxUSE_PROTOCOL=yes |
1676 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
1677 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
1678 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
1679 | DEFAULT_wxUSE_URL=yes | |
10f2d63a VZ |
1680 | |
1681 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1682 | DEFAULT_wxUSE_CHOICEDLG=yes |
1683 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1684 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 1685 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 1686 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
1687 | DEFAULT_wxUSE_FONTDLG=yes |
1688 | DEFAULT_wxUSE_MSGDLG=yes | |
1689 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 1690 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 1691 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
1692 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
1693 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
1694 | DEFAULT_wxUSE_WIZARDDLG=yes |
1695 | ||
1e6feb95 | 1696 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1697 | DEFAULT_wxUSE_MINIFRAME=yes |
1698 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1699 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1700 | DEFAULT_wxUSE_FS_INET=yes |
1701 | DEFAULT_wxUSE_FS_ZIP=yes | |
1702 | DEFAULT_wxUSE_BUSYINFO=yes | |
1703 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1704 | DEFAULT_wxUSE_VALIDATORS=yes | |
1705 | ||
1706 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1707 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1708 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1709 | DEFAULT_wxUSE_CALCTRL=yes |
1710 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1711 | DEFAULT_wxUSE_CHECKBOX=yes |
1712 | DEFAULT_wxUSE_CHECKLST=yes | |
1713 | DEFAULT_wxUSE_CHOICE=yes | |
1714 | DEFAULT_wxUSE_COMBOBOX=yes | |
da494b40 | 1715 | DEFAULT_wxUSE_DISPLAY=no |
10f2d63a VZ |
1716 | DEFAULT_wxUSE_GAUGE=yes |
1717 | DEFAULT_wxUSE_GRID=yes | |
10f2d63a VZ |
1718 | DEFAULT_wxUSE_IMAGLIST=yes |
1719 | DEFAULT_wxUSE_LISTBOX=yes | |
1720 | DEFAULT_wxUSE_LISTCTRL=yes | |
1721 | DEFAULT_wxUSE_NOTEBOOK=yes | |
1722 | DEFAULT_wxUSE_RADIOBOX=yes | |
1723 | DEFAULT_wxUSE_RADIOBTN=yes | |
1724 | DEFAULT_wxUSE_SASH=yes | |
1725 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1726 | DEFAULT_wxUSE_SLIDER=yes | |
1727 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1728 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1729 | DEFAULT_wxUSE_SPLITTER=yes |
1730 | DEFAULT_wxUSE_STATBMP=yes | |
1731 | DEFAULT_wxUSE_STATBOX=yes | |
1732 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1733 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1734 | DEFAULT_wxUSE_STATUSBAR=yes |
1735 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1736 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1737 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1738 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1739 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1740 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 1741 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 1742 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 1743 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
1744 | |
1745 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1746 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
10f2d63a VZ |
1747 | DEFAULT_wxUSE_WCSRTOMBS=no |
1748 | ||
edae8572 | 1749 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 1750 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1751 | DEFAULT_wxUSE_GIF=yes |
1752 | DEFAULT_wxUSE_PCX=yes | |
cc0e8480 | 1753 | DEFAULT_wxUSE_IFF=no |
10f2d63a | 1754 | DEFAULT_wxUSE_PNM=yes |
0046ff7c | 1755 | DEFAULT_wxUSE_XPM=yes |
658974ae | 1756 | DEFAULT_wxUSE_ICO_CUR=yes |
7bb2947d | 1757 | DEFAULT_wxUSE_ACCESSIBILITY=no |
10f2d63a VZ |
1758 | fi |
1759 | ||
8284b0c5 MB |
1760 | |
1761 | ||
10f2d63a | 1762 | for toolkit in `echo $ALL_TOOLKITS`; do |
d74f4b5a VZ |
1763 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` |
1764 | if test "x$LINE" != "x" ; then | |
10f2d63a VZ |
1765 | has_toolkit_in_cache=1 |
1766 | eval "DEFAULT_$LINE" | |
1767 | eval "CACHE_$toolkit=1" | |
1768 | fi | |
1769 | done | |
1770 | ||
8284b0c5 MB |
1771 | |
1772 | ||
5005acfe VZ |
1773 | enablestring= |
1774 | echo $ac_n "checking for --${enablestring:-enable}-gui""... $ac_c" 1>&6 | |
3c907f20 | 1775 | echo "configure:1776: checking for --${enablestring:-enable}-gui" >&5 |
10f2d63a VZ |
1776 | no_cache=0 |
1777 | # Check whether --enable-gui or --disable-gui was given. | |
1778 | if test "${enable_gui+set}" = set; then | |
1779 | enableval="$enable_gui" | |
a0b9e27f | 1780 | |
10f2d63a VZ |
1781 | if test "$enableval" = yes; then |
1782 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1783 | else | |
1784 | ac_cv_use_gui='wxUSE_GUI=no' | |
1785 | fi | |
a0b9e27f | 1786 | |
10f2d63a | 1787 | else |
a0b9e27f | 1788 | |
10f2d63a VZ |
1789 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1790 | if test "x$LINE" != x ; then | |
1791 | eval "DEFAULT_$LINE" | |
1792 | else | |
1793 | no_cache=1 | |
1794 | fi | |
1795 | ||
1796 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
a0b9e27f MB |
1797 | |
1798 | fi | |
10f2d63a VZ |
1799 | |
1800 | ||
1801 | eval "$ac_cv_use_gui" | |
1802 | if test "$no_cache" != 1; then | |
1803 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1804 | fi | |
1805 | ||
1806 | if test "$wxUSE_GUI" = yes; then | |
a0b9e27f | 1807 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1808 | else |
a0b9e27f | 1809 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1810 | fi |
a0b9e27f | 1811 | |
10f2d63a | 1812 | |
b12915c1 | 1813 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1814 | |
8284b0c5 | 1815 | |
5005acfe VZ |
1816 | enablestring= |
1817 | echo $ac_n "checking for --${enablestring:-enable}-universal""... $ac_c" 1>&6 | |
3c907f20 | 1818 | echo "configure:1819: checking for --${enablestring:-enable}-universal" >&5 |
1e6feb95 VZ |
1819 | no_cache=0 |
1820 | # Check whether --enable-universal or --disable-universal was given. | |
1821 | if test "${enable_universal+set}" = set; then | |
1822 | enableval="$enable_universal" | |
a0b9e27f | 1823 | |
1e6feb95 VZ |
1824 | if test "$enableval" = yes; then |
1825 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1826 | else | |
1827 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1828 | fi | |
a0b9e27f | 1829 | |
1e6feb95 | 1830 | else |
a0b9e27f | 1831 | |
1e6feb95 VZ |
1832 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` |
1833 | if test "x$LINE" != x ; then | |
1834 | eval "DEFAULT_$LINE" | |
1835 | else | |
1836 | no_cache=1 | |
1837 | fi | |
1838 | ||
1839 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
a0b9e27f MB |
1840 | |
1841 | fi | |
1e6feb95 VZ |
1842 | |
1843 | ||
1844 | eval "$ac_cv_use_universal" | |
1845 | if test "$no_cache" != 1; then | |
1846 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1847 | fi | |
1848 | ||
1849 | if test "$wxUSE_UNIVERSAL" = yes; then | |
a0b9e27f | 1850 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 1851 | else |
a0b9e27f | 1852 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 1853 | fi |
a0b9e27f | 1854 | |
10f2d63a VZ |
1855 | # Check whether --with-gtk or --without-gtk was given. |
1856 | if test "${with_gtk+set}" = set; then | |
1857 | withval="$with_gtk" | |
1858 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1859 | fi |
10f2d63a VZ |
1860 | |
1861 | # Check whether --with-motif or --without-motif was given. | |
1862 | if test "${with_motif+set}" = set; then | |
1863 | withval="$with_motif" | |
1864 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1865 | fi |
10f2d63a | 1866 | |
b4085ce6 GD |
1867 | # Check whether --with-mac or --without-mac was given. |
1868 | if test "${with_mac+set}" = set; then | |
1869 | withval="$with_mac" | |
1870 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
a0b9e27f | 1871 | fi |
b4085ce6 | 1872 | |
ac0c4cc3 DE |
1873 | # Check whether --with-cocoa or --without-cocoa was given. |
1874 | if test "${with_cocoa+set}" = set; then | |
1875 | withval="$with_cocoa" | |
1876 | wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1 | |
1877 | fi | |
1878 | ||
10f2d63a VZ |
1879 | # Check whether --with-wine or --without-wine was given. |
1880 | if test "${with_wine+set}" = set; then | |
1881 | withval="$with_wine" | |
89e6bf6d | 1882 | wxUSE_WINE="$withval" CACHE_WINE=1 |
a0b9e27f | 1883 | fi |
10f2d63a | 1884 | |
77e13408 RL |
1885 | # Check whether --with-msw or --without-msw was given. |
1886 | if test "${with_msw+set}" = set; then | |
1887 | withval="$with_msw" | |
b4efce5e | 1888 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 |
a0b9e27f | 1889 | fi |
10f2d63a | 1890 | |
e07802fc VZ |
1891 | # Check whether --with-pm or --without-pm was given. |
1892 | if test "${with_pm+set}" = set; then | |
1893 | withval="$with_pm" | |
1894 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1895 | fi |
698dcdb6 | 1896 | |
1e6feb95 VZ |
1897 | # Check whether --with-mgl or --without-mgl was given. |
1898 | if test "${with_mgl+set}" = set; then | |
1899 | withval="$with_mgl" | |
6c657b52 | 1900 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 |
a0b9e27f | 1901 | fi |
1e6feb95 | 1902 | |
1725144d RR |
1903 | # Check whether --with-microwin or --without-microwin was given. |
1904 | if test "${with_microwin+set}" = set; then | |
1905 | withval="$with_microwin" | |
1906 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1907 | fi |
1725144d | 1908 | |
f79bd02d JS |
1909 | # Check whether --with-x11 or --without-x11 was given. |
1910 | if test "${with_x11+set}" = set; then | |
1911 | withval="$with_x11" | |
3c011993 | 1912 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 |
a0b9e27f | 1913 | fi |
10f2d63a | 1914 | |
a0b9e27f | 1915 | |
5005acfe VZ |
1916 | enablestring= |
1917 | echo $ac_n "checking for --${enablestring:-enable}-nanox""... $ac_c" 1>&6 | |
3c907f20 | 1918 | echo "configure:1919: checking for --${enablestring:-enable}-nanox" >&5 |
d8356fa3 | 1919 | no_cache=0 |
ba875e66 VZ |
1920 | # Check whether --enable-nanox or --disable-nanox was given. |
1921 | if test "${enable_nanox+set}" = set; then | |
1922 | enableval="$enable_nanox" | |
a0b9e27f | 1923 | |
d8356fa3 | 1924 | if test "$enableval" = yes; then |
ba875e66 | 1925 | ac_cv_use_nanox='wxUSE_NANOX=yes' |
d8356fa3 | 1926 | else |
ba875e66 | 1927 | ac_cv_use_nanox='wxUSE_NANOX=no' |
d8356fa3 | 1928 | fi |
a0b9e27f | 1929 | |
d8356fa3 | 1930 | else |
a0b9e27f | 1931 | |
d8356fa3 VZ |
1932 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` |
1933 | if test "x$LINE" != x ; then | |
1934 | eval "DEFAULT_$LINE" | |
1935 | else | |
1936 | no_cache=1 | |
1937 | fi | |
1938 | ||
ba875e66 | 1939 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX |
a0b9e27f MB |
1940 | |
1941 | fi | |
d8356fa3 VZ |
1942 | |
1943 | ||
ba875e66 | 1944 | eval "$ac_cv_use_nanox" |
d8356fa3 | 1945 | if test "$no_cache" != 1; then |
ba875e66 | 1946 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp |
d8356fa3 VZ |
1947 | fi |
1948 | ||
1949 | if test "$wxUSE_NANOX" = yes; then | |
a0b9e27f | 1950 | echo "$ac_t""yes" 1>&6 |
d8356fa3 | 1951 | else |
a0b9e27f | 1952 | echo "$ac_t""no" 1>&6 |
d8356fa3 | 1953 | fi |
a0b9e27f | 1954 | |
8284b0c5 | 1955 | |
d74f4b5a | 1956 | |
5005acfe VZ |
1957 | enablestring= |
1958 | echo $ac_n "checking for --${enablestring:-enable}-gtk2""... $ac_c" 1>&6 | |
3c907f20 | 1959 | echo "configure:1960: checking for --${enablestring:-enable}-gtk2" >&5 |
d74f4b5a VZ |
1960 | no_cache=0 |
1961 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
8168de4c VZ |
1962 | if test "${enable_gtk2+set}" = set; then |
1963 | enableval="$enable_gtk2" | |
a0b9e27f | 1964 | |
d74f4b5a VZ |
1965 | if test "$enableval" = yes; then |
1966 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
1967 | else | |
1968 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
1969 | fi | |
a0b9e27f | 1970 | |
10f2d63a | 1971 | else |
a0b9e27f | 1972 | |
d74f4b5a VZ |
1973 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` |
1974 | if test "x$LINE" != x ; then | |
1975 | eval "DEFAULT_$LINE" | |
1976 | else | |
1977 | no_cache=1 | |
1978 | fi | |
1979 | ||
1980 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
a0b9e27f MB |
1981 | |
1982 | fi | |
52127426 | 1983 | |
328a083c | 1984 | |
d74f4b5a VZ |
1985 | eval "$ac_cv_use_gtk2" |
1986 | if test "$no_cache" != 1; then | |
1987 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
1988 | fi | |
1989 | ||
1990 | if test "$wxUSE_GTK2" = yes; then | |
a0b9e27f | 1991 | echo "$ac_t""yes" 1>&6 |
d74f4b5a | 1992 | else |
a0b9e27f | 1993 | echo "$ac_t""no" 1>&6 |
d74f4b5a | 1994 | fi |
a0b9e27f | 1995 | |
d74f4b5a | 1996 | |
5c6fa7d2 | 1997 | |
a0b9e27f | 1998 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
3c907f20 | 1999 | echo "configure:2000: checking for --with-libpng" >&5 |
8284b0c5 | 2000 | no_cache=0 |
a0b9e27f | 2001 | # Check whether --with-libpng or --without-libpng was given. |
b12915c1 VZ |
2002 | if test "${with_libpng+set}" = set; then |
2003 | withval="$with_libpng" | |
a0b9e27f | 2004 | |
10f2d63a | 2005 | if test "$withval" = yes; then |
b12915c1 | 2006 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 2007 | elif test "$withval" = no; then |
b12915c1 | 2008 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
2009 | elif test "$withval" = sys; then |
2010 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
2011 | elif test "$withval" = builtin; then |
2012 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 2013 | else |
a0b9e27f | 2014 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2015 | fi |
a0b9e27f | 2016 | |
10f2d63a | 2017 | else |
a0b9e27f | 2018 | |
b12915c1 | 2019 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2020 | if test "x$LINE" != x ; then |
2021 | eval "DEFAULT_$LINE" | |
2022 | else | |
2023 | no_cache=1 | |
2024 | fi | |
2025 | ||
b12915c1 | 2026 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
a0b9e27f MB |
2027 | |
2028 | fi | |
10f2d63a VZ |
2029 | |
2030 | ||
b12915c1 | 2031 | eval "$ac_cv_use_libpng" |
10f2d63a | 2032 | if test "$no_cache" != 1; then |
b12915c1 | 2033 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2034 | fi |
2035 | ||
b12915c1 | 2036 | if test "$wxUSE_LIBPNG" = yes; then |
a0b9e27f | 2037 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2038 | elif test "$wxUSE_LIBPNG" = no; then |
a0b9e27f | 2039 | echo "$ac_t""no" 1>&6 |
422107f9 | 2040 | elif test "$wxUSE_LIBPNG" = sys; then |
a0b9e27f | 2041 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2042 | elif test "$wxUSE_LIBPNG" = builtin; then |
a0b9e27f | 2043 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 2044 | else |
a0b9e27f | 2045 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2046 | fi |
a0b9e27f | 2047 | |
10f2d63a | 2048 | |
a0b9e27f | 2049 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
3c907f20 | 2050 | echo "configure:2051: checking for --with-libjpeg" >&5 |
10f2d63a | 2051 | no_cache=0 |
a0b9e27f | 2052 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
2053 | if test "${with_libjpeg+set}" = set; then |
2054 | withval="$with_libjpeg" | |
a0b9e27f | 2055 | |
10f2d63a | 2056 | if test "$withval" = yes; then |
b12915c1 | 2057 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 2058 | elif test "$withval" = no; then |
b12915c1 | 2059 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
2060 | elif test "$withval" = sys; then |
2061 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
2062 | elif test "$withval" = builtin; then |
2063 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 2064 | else |
a0b9e27f | 2065 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2066 | fi |
a0b9e27f | 2067 | |
10f2d63a | 2068 | else |
a0b9e27f | 2069 | |
b12915c1 | 2070 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2071 | if test "x$LINE" != x ; then |
2072 | eval "DEFAULT_$LINE" | |
2073 | else | |
2074 | no_cache=1 | |
2075 | fi | |
2076 | ||
b12915c1 | 2077 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
a0b9e27f MB |
2078 | |
2079 | fi | |
10f2d63a VZ |
2080 | |
2081 | ||
b12915c1 | 2082 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 2083 | if test "$no_cache" != 1; then |
b12915c1 | 2084 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2085 | fi |
2086 | ||
b12915c1 | 2087 | if test "$wxUSE_LIBJPEG" = yes; then |
a0b9e27f | 2088 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2089 | elif test "$wxUSE_LIBJPEG" = no; then |
a0b9e27f | 2090 | echo "$ac_t""no" 1>&6 |
422107f9 | 2091 | elif test "$wxUSE_LIBJPEG" = sys; then |
a0b9e27f | 2092 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2093 | elif test "$wxUSE_LIBJPEG" = builtin; then |
a0b9e27f | 2094 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 2095 | else |
a0b9e27f | 2096 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2097 | fi |
a0b9e27f | 2098 | |
10f2d63a | 2099 | |
a0b9e27f | 2100 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
3c907f20 | 2101 | echo "configure:2102: checking for --with-libtiff" >&5 |
10f2d63a | 2102 | no_cache=0 |
a0b9e27f | 2103 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
2104 | if test "${with_libtiff+set}" = set; then |
2105 | withval="$with_libtiff" | |
a0b9e27f | 2106 | |
10f2d63a | 2107 | if test "$withval" = yes; then |
b12915c1 | 2108 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2109 | elif test "$withval" = no; then |
b12915c1 | 2110 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2111 | elif test "$withval" = sys; then |
2112 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
2113 | elif test "$withval" = builtin; then |
2114 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 2115 | else |
a0b9e27f | 2116 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2117 | fi |
a0b9e27f | 2118 | |
10f2d63a | 2119 | else |
a0b9e27f | 2120 | |
b12915c1 | 2121 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2122 | if test "x$LINE" != x ; then |
2123 | eval "DEFAULT_$LINE" | |
2124 | else | |
2125 | no_cache=1 | |
2126 | fi | |
2127 | ||
b12915c1 | 2128 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
a0b9e27f MB |
2129 | |
2130 | fi | |
10f2d63a VZ |
2131 | |
2132 | ||
b12915c1 | 2133 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2134 | if test "$no_cache" != 1; then |
b12915c1 | 2135 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2136 | fi |
2137 | ||
b12915c1 | 2138 | if test "$wxUSE_LIBTIFF" = yes; then |
a0b9e27f | 2139 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 2140 | elif test "$wxUSE_LIBTIFF" = no; then |
a0b9e27f | 2141 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 2142 | elif test "$wxUSE_LIBTIFF" = sys; then |
a0b9e27f | 2143 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2144 | elif test "$wxUSE_LIBTIFF" = builtin; then |
a0b9e27f | 2145 | echo "$ac_t""builtin version" 1>&6 |
0dcf9893 | 2146 | else |
a0b9e27f | 2147 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2148 | fi |
a0b9e27f | 2149 | |
10f2d63a | 2150 | |
a0b9e27f | 2151 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
3c907f20 | 2152 | echo "configure:2153: checking for --with-opengl" >&5 |
10f2d63a | 2153 | no_cache=0 |
a0b9e27f | 2154 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2155 | if test "${with_opengl+set}" = set; then |
2156 | withval="$with_opengl" | |
a0b9e27f | 2157 | |
10f2d63a | 2158 | if test "$withval" = yes; then |
b12915c1 | 2159 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2160 | else |
b12915c1 | 2161 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2162 | fi |
a0b9e27f | 2163 | |
10f2d63a | 2164 | else |
a0b9e27f | 2165 | |
b12915c1 | 2166 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2167 | if test "x$LINE" != x ; then |
2168 | eval "DEFAULT_$LINE" | |
2169 | else | |
2170 | no_cache=1 | |
2171 | fi | |
2172 | ||
b12915c1 | 2173 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
a0b9e27f MB |
2174 | |
2175 | fi | |
10f2d63a VZ |
2176 | |
2177 | ||
b12915c1 | 2178 | eval "$ac_cv_use_opengl" |
10f2d63a | 2179 | if test "$no_cache" != 1; then |
b12915c1 | 2180 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2181 | fi |
2182 | ||
b12915c1 | 2183 | if test "$wxUSE_OPENGL" = yes; then |
a0b9e27f | 2184 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2185 | else |
a0b9e27f | 2186 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2187 | fi |
a0b9e27f | 2188 | |
10f2d63a | 2189 | |
b12915c1 VZ |
2190 | fi |
2191 | ||
5c6fa7d2 | 2192 | |
a0b9e27f | 2193 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
3c907f20 | 2194 | echo "configure:2195: checking for --with-dmalloc" >&5 |
8284b0c5 | 2195 | no_cache=0 |
a0b9e27f | 2196 | # Check whether --with-dmalloc or --without-dmalloc was given. |
b12915c1 VZ |
2197 | if test "${with_dmalloc+set}" = set; then |
2198 | withval="$with_dmalloc" | |
a0b9e27f | 2199 | |
c7a2bf27 | 2200 | if test "$withval" = yes; then |
b12915c1 | 2201 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2202 | else |
b12915c1 | 2203 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2204 | fi |
a0b9e27f | 2205 | |
c7a2bf27 | 2206 | else |
a0b9e27f | 2207 | |
b12915c1 | 2208 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2209 | if test "x$LINE" != x ; then |
2210 | eval "DEFAULT_$LINE" | |
2211 | else | |
2212 | no_cache=1 | |
2213 | fi | |
2214 | ||
b12915c1 | 2215 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
a0b9e27f MB |
2216 | |
2217 | fi | |
c7a2bf27 RR |
2218 | |
2219 | ||
b12915c1 | 2220 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2221 | if test "$no_cache" != 1; then |
b12915c1 | 2222 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2223 | fi |
2224 | ||
b12915c1 | 2225 | if test "$wxUSE_DMALLOC" = yes; then |
a0b9e27f | 2226 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2227 | else |
a0b9e27f | 2228 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2229 | fi |
a0b9e27f | 2230 | |
c7a2bf27 | 2231 | |
a0b9e27f | 2232 | echo $ac_n "checking for --with-regex""... $ac_c" 1>&6 |
3c907f20 | 2233 | echo "configure:2234: checking for --with-regex" >&5 |
3e44f09d | 2234 | no_cache=0 |
a0b9e27f | 2235 | # Check whether --with-regex or --without-regex was given. |
3e44f09d VZ |
2236 | if test "${with_regex+set}" = set; then |
2237 | withval="$with_regex" | |
a0b9e27f | 2238 | |
3e44f09d VZ |
2239 | if test "$withval" = yes; then |
2240 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2241 | elif test "$withval" = no; then | |
2242 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2243 | elif test "$withval" = sys; then | |
2244 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
2245 | elif test "$withval" = builtin; then |
2246 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 2247 | else |
a0b9e27f | 2248 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d | 2249 | fi |
a0b9e27f | 2250 | |
3e44f09d | 2251 | else |
a0b9e27f | 2252 | |
3e44f09d VZ |
2253 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` |
2254 | if test "x$LINE" != x ; then | |
2255 | eval "DEFAULT_$LINE" | |
2256 | else | |
2257 | no_cache=1 | |
2258 | fi | |
2259 | ||
2260 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
a0b9e27f MB |
2261 | |
2262 | fi | |
3e44f09d VZ |
2263 | |
2264 | ||
2265 | eval "$ac_cv_use_regex" | |
2266 | if test "$no_cache" != 1; then | |
2267 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2268 | fi | |
2269 | ||
2270 | if test "$wxUSE_REGEX" = yes; then | |
a0b9e27f | 2271 | echo "$ac_t""yes" 1>&6 |
3e44f09d | 2272 | elif test "$wxUSE_REGEX" = no; then |
a0b9e27f | 2273 | echo "$ac_t""no" 1>&6 |
3e44f09d | 2274 | elif test "$wxUSE_REGEX" = sys; then |
a0b9e27f | 2275 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2276 | elif test "$wxUSE_REGEX" = builtin; then |
a0b9e27f | 2277 | echo "$ac_t""builtin version" 1>&6 |
3e44f09d | 2278 | else |
a0b9e27f | 2279 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d | 2280 | fi |
a0b9e27f | 2281 | |
3e44f09d | 2282 | |
a0b9e27f | 2283 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
3c907f20 | 2284 | echo "configure:2285: checking for --with-zlib" >&5 |
10f2d63a | 2285 | no_cache=0 |
a0b9e27f | 2286 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2287 | if test "${with_zlib+set}" = set; then |
2288 | withval="$with_zlib" | |
a0b9e27f | 2289 | |
10f2d63a | 2290 | if test "$withval" = yes; then |
b12915c1 | 2291 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2292 | elif test "$withval" = no; then |
b12915c1 | 2293 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2294 | elif test "$withval" = sys; then |
2295 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
2296 | elif test "$withval" = builtin; then |
2297 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 2298 | else |
a0b9e27f | 2299 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2300 | fi |
a0b9e27f | 2301 | |
10f2d63a | 2302 | else |
a0b9e27f | 2303 | |
b12915c1 | 2304 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2305 | if test "x$LINE" != x ; then |
2306 | eval "DEFAULT_$LINE" | |
2307 | else | |
2308 | no_cache=1 | |
2309 | fi | |
2310 | ||
b12915c1 | 2311 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
a0b9e27f MB |
2312 | |
2313 | fi | |
10f2d63a VZ |
2314 | |
2315 | ||
b12915c1 | 2316 | eval "$ac_cv_use_zlib" |
10f2d63a | 2317 | if test "$no_cache" != 1; then |
b12915c1 | 2318 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2319 | fi |
2320 | ||
b12915c1 | 2321 | if test "$wxUSE_ZLIB" = yes; then |
a0b9e27f | 2322 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2323 | elif test "$wxUSE_ZLIB" = no; then |
a0b9e27f | 2324 | echo "$ac_t""no" 1>&6 |
422107f9 | 2325 | elif test "$wxUSE_ZLIB" = sys; then |
a0b9e27f | 2326 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2327 | elif test "$wxUSE_ZLIB" = builtin; then |
a0b9e27f | 2328 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 2329 | else |
a0b9e27f | 2330 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2331 | fi |
a0b9e27f | 2332 | |
10f2d63a | 2333 | |
a0b9e27f | 2334 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
3c907f20 | 2335 | echo "configure:2336: checking for --with-odbc" >&5 |
10f2d63a | 2336 | no_cache=0 |
a0b9e27f | 2337 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2338 | if test "${with_odbc+set}" = set; then |
2339 | withval="$with_odbc" | |
a0b9e27f | 2340 | |
10f2d63a VZ |
2341 | if test "$withval" = yes; then |
2342 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
8647bec6 | 2343 | elif test "$withval" = no; then |
10f2d63a | 2344 | ac_cv_use_odbc='wxUSE_ODBC=no' |
8647bec6 RG |
2345 | elif test "$withval" = sys; then |
2346 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
2347 | elif test "$withval" = builtin; then | |
2348 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
2349 | else | |
2350 | { echo "configure: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" 1>&2; exit 1; } | |
10f2d63a | 2351 | fi |
a0b9e27f | 2352 | |
10f2d63a | 2353 | else |
a0b9e27f | 2354 | |
10f2d63a VZ |
2355 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2356 | if test "x$LINE" != x ; then | |
2357 | eval "DEFAULT_$LINE" | |
2358 | else | |
2359 | no_cache=1 | |
2360 | fi | |
2361 | ||
2362 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
a0b9e27f MB |
2363 | |
2364 | fi | |
10f2d63a VZ |
2365 | |
2366 | ||
2367 | eval "$ac_cv_use_odbc" | |
2368 | if test "$no_cache" != 1; then | |
2369 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2370 | fi | |
2371 | ||
2372 | if test "$wxUSE_ODBC" = yes; then | |
a0b9e27f | 2373 | echo "$ac_t""yes" 1>&6 |
8647bec6 | 2374 | elif test "$wxUSE_ODBC" = no; then |
a0b9e27f | 2375 | echo "$ac_t""no" 1>&6 |
8647bec6 RG |
2376 | elif test "$wxUSE_ODBC" = sys; then |
2377 | echo "$ac_t""system version" 1>&6 | |
2378 | elif test "$wxUSE_ODBC" = builtin; then | |
2379 | echo "$ac_t""builtin version" 1>&6 | |
2380 | else | |
2381 | { echo "configure: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" 1>&2; exit 1; } | |
10f2d63a | 2382 | fi |
a0b9e27f | 2383 | |
52127426 | 2384 | |
8284b0c5 MB |
2385 | |
2386 | ||
5005acfe VZ |
2387 | enablestring= |
2388 | echo $ac_n "checking for --${enablestring:-enable}-shared""... $ac_c" 1>&6 | |
3c907f20 | 2389 | echo "configure:2390: checking for --${enablestring:-enable}-shared" >&5 |
10f2d63a VZ |
2390 | no_cache=0 |
2391 | # Check whether --enable-shared or --disable-shared was given. | |
2392 | if test "${enable_shared+set}" = set; then | |
2393 | enableval="$enable_shared" | |
a0b9e27f | 2394 | |
10f2d63a VZ |
2395 | if test "$enableval" = yes; then |
2396 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2397 | else | |
2398 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2399 | fi | |
a0b9e27f | 2400 | |
10f2d63a | 2401 | else |
a0b9e27f | 2402 | |
10f2d63a VZ |
2403 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2404 | if test "x$LINE" != x ; then | |
2405 | eval "DEFAULT_$LINE" | |
2406 | else | |
2407 | no_cache=1 | |
2408 | fi | |
2409 | ||
2410 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
a0b9e27f MB |
2411 | |
2412 | fi | |
10f2d63a VZ |
2413 | |
2414 | ||
2415 | eval "$ac_cv_use_shared" | |
2416 | if test "$no_cache" != 1; then | |
2417 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2418 | fi | |
2419 | ||
2420 | if test "$wxUSE_SHARED" = yes; then | |
a0b9e27f | 2421 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2422 | else |
a0b9e27f | 2423 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2424 | fi |
a0b9e27f | 2425 | |
10f2d63a | 2426 | |
5005acfe VZ |
2427 | enablestring= |
2428 | echo $ac_n "checking for --${enablestring:-enable}-soname""... $ac_c" 1>&6 | |
3c907f20 | 2429 | echo "configure:2430: checking for --${enablestring:-enable}-soname" >&5 |
00cf1208 | 2430 | no_cache=0 |
3a922bb4 RL |
2431 | # Check whether --enable-soname or --disable-soname was given. |
2432 | if test "${enable_soname+set}" = set; then | |
2433 | enableval="$enable_soname" | |
a0b9e27f | 2434 | |
00cf1208 | 2435 | if test "$enableval" = yes; then |
3a922bb4 | 2436 | ac_cv_use_soname='wxUSE_SONAME=yes' |
00cf1208 | 2437 | else |
3a922bb4 | 2438 | ac_cv_use_soname='wxUSE_SONAME=no' |
00cf1208 | 2439 | fi |
a0b9e27f | 2440 | |
00cf1208 | 2441 | else |
a0b9e27f | 2442 | |
3a922bb4 | 2443 | LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}` |
00cf1208 RR |
2444 | if test "x$LINE" != x ; then |
2445 | eval "DEFAULT_$LINE" | |
2446 | else | |
2447 | no_cache=1 | |
2448 | fi | |
2449 | ||
3a922bb4 | 2450 | ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME |
a0b9e27f MB |
2451 | |
2452 | fi | |
00cf1208 RR |
2453 | |
2454 | ||
3a922bb4 | 2455 | eval "$ac_cv_use_soname" |
00cf1208 | 2456 | if test "$no_cache" != 1; then |
3a922bb4 | 2457 | echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp |
00cf1208 RR |
2458 | fi |
2459 | ||
3a922bb4 | 2460 | if test "$wxUSE_SONAME" = yes; then |
a0b9e27f | 2461 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2462 | else |
a0b9e27f | 2463 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2464 | fi |
a0b9e27f | 2465 | |
00cf1208 | 2466 | |
5005acfe VZ |
2467 | enablestring= |
2468 | echo $ac_n "checking for --${enablestring:-enable}-optimise""... $ac_c" 1>&6 | |
3c907f20 | 2469 | echo "configure:2470: checking for --${enablestring:-enable}-optimise" >&5 |
10f2d63a VZ |
2470 | no_cache=0 |
2471 | # Check whether --enable-optimise or --disable-optimise was given. | |
2472 | if test "${enable_optimise+set}" = set; then | |
2473 | enableval="$enable_optimise" | |
a0b9e27f | 2474 | |
10f2d63a VZ |
2475 | if test "$enableval" = yes; then |
2476 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2477 | else | |
2478 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2479 | fi | |
a0b9e27f | 2480 | |
10f2d63a | 2481 | else |
a0b9e27f | 2482 | |
10f2d63a VZ |
2483 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2484 | if test "x$LINE" != x ; then | |
2485 | eval "DEFAULT_$LINE" | |
2486 | else | |
2487 | no_cache=1 | |
2488 | fi | |
2489 | ||
2490 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
a0b9e27f MB |
2491 | |
2492 | fi | |
10f2d63a VZ |
2493 | |
2494 | ||
2495 | eval "$ac_cv_use_optimise" | |
2496 | if test "$no_cache" != 1; then | |
2497 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2498 | fi | |
2499 | ||
2500 | if test "$wxUSE_OPTIMISE" = yes; then | |
a0b9e27f | 2501 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2502 | else |
a0b9e27f | 2503 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2504 | fi |
a0b9e27f | 2505 | |
10f2d63a | 2506 | |
5005acfe VZ |
2507 | enablestring= |
2508 | echo $ac_n "checking for --${enablestring:-enable}-debug""... $ac_c" 1>&6 | |
3c907f20 | 2509 | echo "configure:2510: checking for --${enablestring:-enable}-debug" >&5 |
10f2d63a VZ |
2510 | no_cache=0 |
2511 | # Check whether --enable-debug or --disable-debug was given. | |
2512 | if test "${enable_debug+set}" = set; then | |
2513 | enableval="$enable_debug" | |
a0b9e27f | 2514 | |
10f2d63a VZ |
2515 | if test "$enableval" = yes; then |
2516 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2517 | else | |
2518 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2519 | fi | |
a0b9e27f | 2520 | |
10f2d63a | 2521 | else |
a0b9e27f | 2522 | |
10f2d63a VZ |
2523 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2524 | if test "x$LINE" != x ; then | |
2525 | eval "DEFAULT_$LINE" | |
2526 | else | |
2527 | no_cache=1 | |
2528 | fi | |
2529 | ||
2530 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
a0b9e27f MB |
2531 | |
2532 | fi | |
10f2d63a VZ |
2533 | |
2534 | ||
2535 | eval "$ac_cv_use_debug" | |
2536 | if test "$no_cache" != 1; then | |
2537 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2538 | fi | |
2539 | ||
2540 | if test "$wxUSE_DEBUG" = yes; then | |
a0b9e27f | 2541 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2542 | else |
a0b9e27f | 2543 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2544 | fi |
a0b9e27f | 2545 | |
52127426 | 2546 | |
8284b0c5 | 2547 | |
5005acfe VZ |
2548 | enablestring= |
2549 | echo $ac_n "checking for --${enablestring:-enable}-precomp""... $ac_c" 1>&6 | |
3c907f20 | 2550 | echo "configure:2551: checking for --${enablestring:-enable}-precomp" >&5 |
683dccda GD |
2551 | no_cache=0 |
2552 | # Check whether --enable-precomp or --disable-precomp was given. | |
2553 | if test "${enable_precomp+set}" = set; then | |
2554 | enableval="$enable_precomp" | |
a0b9e27f | 2555 | |
683dccda GD |
2556 | if test "$enableval" = yes; then |
2557 | ac_cv_use_precomp='wxUSE_PRECOMP=yes' | |
2558 | else | |
2559 | ac_cv_use_precomp='wxUSE_PRECOMP=no' | |
2560 | fi | |
a0b9e27f | 2561 | |
683dccda | 2562 | else |
a0b9e27f | 2563 | |
683dccda GD |
2564 | LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}` |
2565 | if test "x$LINE" != x ; then | |
2566 | eval "DEFAULT_$LINE" | |
2567 | else | |
2568 | no_cache=1 | |
2569 | fi | |
2570 | ||
2571 | ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP | |
a0b9e27f MB |
2572 | |
2573 | fi | |
683dccda GD |
2574 | |
2575 | ||
2576 | eval "$ac_cv_use_precomp" | |
2577 | if test "$no_cache" != 1; then | |
2578 | echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp | |
2579 | fi | |
2580 | ||
2581 | if test "$wxUSE_PRECOMP" = yes; then | |
a0b9e27f | 2582 | echo "$ac_t""yes" 1>&6 |
683dccda | 2583 | else |
a0b9e27f | 2584 | echo "$ac_t""no" 1>&6 |
683dccda | 2585 | fi |
a0b9e27f | 2586 | |
683dccda | 2587 | |
10f2d63a VZ |
2588 | if test "$wxUSE_DEBUG" = "yes"; then |
2589 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2590 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2591 | elif test "$wxUSE_DEBUG" = "no"; then | |
2592 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2593 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2594 | fi | |
2595 | ||
8284b0c5 | 2596 | |
5005acfe VZ |
2597 | enablestring= |
2598 | echo $ac_n "checking for --${enablestring:-enable}-debug_flag""... $ac_c" 1>&6 | |
3c907f20 | 2599 | echo "configure:2600: checking for --${enablestring:-enable}-debug_flag" >&5 |
10f2d63a VZ |
2600 | no_cache=0 |
2601 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2602 | if test "${enable_debug_flag+set}" = set; then | |
2603 | enableval="$enable_debug_flag" | |
a0b9e27f | 2604 | |
10f2d63a VZ |
2605 | if test "$enableval" = yes; then |
2606 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2607 | else | |
2608 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2609 | fi | |
a0b9e27f | 2610 | |
10f2d63a | 2611 | else |
a0b9e27f | 2612 | |
10f2d63a VZ |
2613 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2614 | if test "x$LINE" != x ; then | |
2615 | eval "DEFAULT_$LINE" | |
2616 | else | |
2617 | no_cache=1 | |
2618 | fi | |
2619 | ||
2620 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
a0b9e27f MB |
2621 | |
2622 | fi | |
10f2d63a VZ |
2623 | |
2624 | ||
2625 | eval "$ac_cv_use_debug_flag" | |
2626 | if test "$no_cache" != 1; then | |
2627 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2628 | fi | |
2629 | ||
2630 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
a0b9e27f | 2631 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2632 | else |
a0b9e27f | 2633 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2634 | fi |
a0b9e27f | 2635 | |
10f2d63a | 2636 | |
5005acfe VZ |
2637 | enablestring= |
2638 | echo $ac_n "checking for --${enablestring:-enable}-debug_info""... $ac_c" 1>&6 | |
3c907f20 | 2639 | echo "configure:2640: checking for --${enablestring:-enable}-debug_info" >&5 |
10f2d63a VZ |
2640 | no_cache=0 |
2641 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2642 | if test "${enable_debug_info+set}" = set; then | |
2643 | enableval="$enable_debug_info" | |
a0b9e27f | 2644 | |
10f2d63a VZ |
2645 | if test "$enableval" = yes; then |
2646 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2647 | else | |
2648 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2649 | fi | |
a0b9e27f | 2650 | |
10f2d63a | 2651 | else |
a0b9e27f | 2652 | |
10f2d63a VZ |
2653 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2654 | if test "x$LINE" != x ; then | |
2655 | eval "DEFAULT_$LINE" | |
2656 | else | |
2657 | no_cache=1 | |
2658 | fi | |
2659 | ||
2660 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
a0b9e27f MB |
2661 | |
2662 | fi | |
10f2d63a VZ |
2663 | |
2664 | ||
2665 | eval "$ac_cv_use_debug_info" | |
2666 | if test "$no_cache" != 1; then | |
2667 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2668 | fi | |
2669 | ||
2670 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
a0b9e27f | 2671 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2672 | else |
a0b9e27f | 2673 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2674 | fi |
a0b9e27f | 2675 | |
10f2d63a | 2676 | |
5005acfe VZ |
2677 | enablestring= |
2678 | echo $ac_n "checking for --${enablestring:-enable}-debug_gdb""... $ac_c" 1>&6 | |
3c907f20 | 2679 | echo "configure:2680: checking for --${enablestring:-enable}-debug_gdb" >&5 |
10f2d63a VZ |
2680 | no_cache=0 |
2681 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2682 | if test "${enable_debug_gdb+set}" = set; then | |
2683 | enableval="$enable_debug_gdb" | |
a0b9e27f | 2684 | |
10f2d63a VZ |
2685 | if test "$enableval" = yes; then |
2686 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2687 | else | |
2688 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2689 | fi | |
a0b9e27f | 2690 | |
10f2d63a | 2691 | else |
a0b9e27f | 2692 | |
10f2d63a VZ |
2693 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2694 | if test "x$LINE" != x ; then | |
2695 | eval "DEFAULT_$LINE" | |
2696 | else | |
2697 | no_cache=1 | |
2698 | fi | |
2699 | ||
2700 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
a0b9e27f MB |
2701 | |
2702 | fi | |
10f2d63a VZ |
2703 | |
2704 | ||
2705 | eval "$ac_cv_use_debug_gdb" | |
2706 | if test "$no_cache" != 1; then | |
2707 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2708 | fi | |
2709 | ||
2710 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
a0b9e27f | 2711 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2712 | else |
a0b9e27f | 2713 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2714 | fi |
a0b9e27f | 2715 | |
10f2d63a | 2716 | |
5005acfe VZ |
2717 | enablestring= |
2718 | echo $ac_n "checking for --${enablestring:-enable}-debug_cntxt""... $ac_c" 1>&6 | |
3c907f20 | 2719 | echo "configure:2720: checking for --${enablestring:-enable}-debug_cntxt" >&5 |
10f2d63a VZ |
2720 | no_cache=0 |
2721 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2722 | if test "${enable_debug_cntxt+set}" = set; then | |
2723 | enableval="$enable_debug_cntxt" | |
a0b9e27f | 2724 | |
10f2d63a VZ |
2725 | if test "$enableval" = yes; then |
2726 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2727 | else | |
2728 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2729 | fi | |
a0b9e27f | 2730 | |
10f2d63a | 2731 | else |
a0b9e27f | 2732 | |
10f2d63a VZ |
2733 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2734 | if test "x$LINE" != x ; then | |
2735 | eval "DEFAULT_$LINE" | |
2736 | else | |
2737 | no_cache=1 | |
2738 | fi | |
2739 | ||
2740 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
a0b9e27f MB |
2741 | |
2742 | fi | |
10f2d63a VZ |
2743 | |
2744 | ||
2745 | eval "$ac_cv_use_debug_cntxt" | |
2746 | if test "$no_cache" != 1; then | |
2747 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2748 | fi | |
2749 | ||
2750 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
a0b9e27f | 2751 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2752 | else |
a0b9e27f | 2753 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2754 | fi |
a0b9e27f | 2755 | |
10f2d63a | 2756 | |
5005acfe VZ |
2757 | enablestring= |
2758 | echo $ac_n "checking for --${enablestring:-enable}-mem_tracing""... $ac_c" 1>&6 | |
3c907f20 | 2759 | echo "configure:2760: checking for --${enablestring:-enable}-mem_tracing" >&5 |
10f2d63a VZ |
2760 | no_cache=0 |
2761 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2762 | if test "${enable_mem_tracing+set}" = set; then | |
2763 | enableval="$enable_mem_tracing" | |
a0b9e27f | 2764 | |
10f2d63a VZ |
2765 | if test "$enableval" = yes; then |
2766 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2767 | else | |
2768 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2769 | fi | |
a0b9e27f | 2770 | |
10f2d63a | 2771 | else |
a0b9e27f | 2772 | |
10f2d63a VZ |
2773 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2774 | if test "x$LINE" != x ; then | |
2775 | eval "DEFAULT_$LINE" | |
2776 | else | |
2777 | no_cache=1 | |
2778 | fi | |
2779 | ||
2780 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
a0b9e27f MB |
2781 | |
2782 | fi | |
10f2d63a VZ |
2783 | |
2784 | ||
2785 | eval "$ac_cv_use_mem_tracing" | |
2786 | if test "$no_cache" != 1; then | |
2787 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2788 | fi | |
2789 | ||
2790 | if test "$wxUSE_MEM_TRACING" = yes; then | |
a0b9e27f | 2791 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2792 | else |
a0b9e27f | 2793 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2794 | fi |
a0b9e27f | 2795 | |
10f2d63a | 2796 | |
5005acfe VZ |
2797 | enablestring= |
2798 | echo $ac_n "checking for --${enablestring:-enable}-profile""... $ac_c" 1>&6 | |
3c907f20 | 2799 | echo "configure:2800: checking for --${enablestring:-enable}-profile" >&5 |
10f2d63a VZ |
2800 | no_cache=0 |
2801 | # Check whether --enable-profile or --disable-profile was given. | |
2802 | if test "${enable_profile+set}" = set; then | |
2803 | enableval="$enable_profile" | |
a0b9e27f | 2804 | |
10f2d63a VZ |
2805 | if test "$enableval" = yes; then |
2806 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2807 | else | |
2808 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2809 | fi | |
a0b9e27f | 2810 | |
10f2d63a | 2811 | else |
a0b9e27f | 2812 | |
10f2d63a VZ |
2813 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2814 | if test "x$LINE" != x ; then | |
2815 | eval "DEFAULT_$LINE" | |
2816 | else | |
2817 | no_cache=1 | |
2818 | fi | |
2819 | ||
2820 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
a0b9e27f MB |
2821 | |
2822 | fi | |
10f2d63a VZ |
2823 | |
2824 | ||
2825 | eval "$ac_cv_use_profile" | |
2826 | if test "$no_cache" != 1; then | |
2827 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2828 | fi | |
2829 | ||
2830 | if test "$wxUSE_PROFILE" = yes; then | |
a0b9e27f | 2831 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2832 | else |
a0b9e27f | 2833 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2834 | fi |
a0b9e27f | 2835 | |
10f2d63a | 2836 | |
5005acfe VZ |
2837 | enablestring= |
2838 | echo $ac_n "checking for --${enablestring:-enable}-no_rtti""... $ac_c" 1>&6 | |
3c907f20 | 2839 | echo "configure:2840: checking for --${enablestring:-enable}-no_rtti" >&5 |
10f2d63a VZ |
2840 | no_cache=0 |
2841 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2842 | if test "${enable_no_rtti+set}" = set; then | |
2843 | enableval="$enable_no_rtti" | |
a0b9e27f | 2844 | |
10f2d63a VZ |
2845 | if test "$enableval" = yes; then |
2846 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2847 | else | |
2848 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2849 | fi | |
a0b9e27f | 2850 | |
10f2d63a | 2851 | else |
a0b9e27f | 2852 | |
10f2d63a VZ |
2853 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2854 | if test "x$LINE" != x ; then | |
2855 | eval "DEFAULT_$LINE" | |
2856 | else | |
2857 | no_cache=1 | |
2858 | fi | |
2859 | ||
2860 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
a0b9e27f MB |
2861 | |
2862 | fi | |
10f2d63a VZ |
2863 | |
2864 | ||
2865 | eval "$ac_cv_use_no_rtti" | |
2866 | if test "$no_cache" != 1; then | |
2867 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2868 | fi | |
2869 | ||
2870 | if test "$wxUSE_NO_RTTI" = yes; then | |
a0b9e27f | 2871 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2872 | else |
a0b9e27f | 2873 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2874 | fi |
a0b9e27f | 2875 | |
10f2d63a | 2876 | |
5005acfe VZ |
2877 | enablestring= |
2878 | echo $ac_n "checking for --${enablestring:-enable}-no_exceptions""... $ac_c" 1>&6 | |
3c907f20 | 2879 | echo "configure:2880: checking for --${enablestring:-enable}-no_exceptions" >&5 |
10f2d63a VZ |
2880 | no_cache=0 |
2881 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2882 | if test "${enable_no_exceptions+set}" = set; then | |
2883 | enableval="$enable_no_exceptions" | |
a0b9e27f | 2884 | |
10f2d63a VZ |
2885 | if test "$enableval" = yes; then |
2886 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2887 | else | |
2888 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2889 | fi | |
a0b9e27f | 2890 | |
10f2d63a | 2891 | else |
a0b9e27f | 2892 | |
10f2d63a VZ |
2893 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2894 | if test "x$LINE" != x ; then | |
2895 | eval "DEFAULT_$LINE" | |
2896 | else | |
2897 | no_cache=1 | |
2898 | fi | |
2899 | ||
2900 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
a0b9e27f MB |
2901 | |
2902 | fi | |
10f2d63a VZ |
2903 | |
2904 | ||
2905 | eval "$ac_cv_use_no_exceptions" | |
2906 | if test "$no_cache" != 1; then | |
2907 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2908 | fi | |
2909 | ||
2910 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
a0b9e27f | 2911 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2912 | else |
a0b9e27f | 2913 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2914 | fi |
a0b9e27f | 2915 | |
10f2d63a | 2916 | |
5005acfe VZ |
2917 | enablestring= |
2918 | echo $ac_n "checking for --${enablestring:-enable}-permissive""... $ac_c" 1>&6 | |
3c907f20 | 2919 | echo "configure:2920: checking for --${enablestring:-enable}-permissive" >&5 |
10f2d63a VZ |
2920 | no_cache=0 |
2921 | # Check whether --enable-permissive or --disable-permissive was given. | |
2922 | if test "${enable_permissive+set}" = set; then | |
2923 | enableval="$enable_permissive" | |
a0b9e27f | 2924 | |
10f2d63a VZ |
2925 | if test "$enableval" = yes; then |
2926 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2927 | else | |
2928 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2929 | fi | |
a0b9e27f | 2930 | |
10f2d63a | 2931 | else |
a0b9e27f | 2932 | |
10f2d63a VZ |
2933 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2934 | if test "x$LINE" != x ; then | |
2935 | eval "DEFAULT_$LINE" | |
2936 | else | |
2937 | no_cache=1 | |
2938 | fi | |
2939 | ||
2940 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
a0b9e27f MB |
2941 | |
2942 | fi | |
10f2d63a VZ |
2943 | |
2944 | ||
2945 | eval "$ac_cv_use_permissive" | |
2946 | if test "$no_cache" != 1; then | |
2947 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2948 | fi | |
2949 | ||
2950 | if test "$wxUSE_PERMISSIVE" = yes; then | |
a0b9e27f | 2951 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2952 | else |
a0b9e27f | 2953 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2954 | fi |
a0b9e27f | 2955 | |
10f2d63a | 2956 | |
5005acfe VZ |
2957 | enablestring= |
2958 | echo $ac_n "checking for --${enablestring:-enable}-no_deps""... $ac_c" 1>&6 | |
3c907f20 | 2959 | echo "configure:2960: checking for --${enablestring:-enable}-no_deps" >&5 |
10f2d63a VZ |
2960 | no_cache=0 |
2961 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2962 | if test "${enable_no_deps+set}" = set; then | |
2963 | enableval="$enable_no_deps" | |
a0b9e27f | 2964 | |
10f2d63a VZ |
2965 | if test "$enableval" = yes; then |
2966 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2967 | else | |
2968 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2969 | fi | |
a0b9e27f | 2970 | |
10f2d63a | 2971 | else |
a0b9e27f | 2972 | |
10f2d63a VZ |
2973 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2974 | if test "x$LINE" != x ; then | |
2975 | eval "DEFAULT_$LINE" | |
2976 | else | |
2977 | no_cache=1 | |
2978 | fi | |
2979 | ||
2980 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
a0b9e27f MB |
2981 | |
2982 | fi | |
10f2d63a VZ |
2983 | |
2984 | ||
2985 | eval "$ac_cv_use_no_deps" | |
2986 | if test "$no_cache" != 1; then | |
2987 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2988 | fi | |
2989 | ||
2990 | if test "$wxUSE_NO_DEPS" = yes; then | |
a0b9e27f | 2991 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2992 | else |
a0b9e27f | 2993 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2994 | fi |
a0b9e27f | 2995 | |
52127426 | 2996 | |
8284b0c5 | 2997 | |
5005acfe VZ |
2998 | enablestring= |
2999 | echo $ac_n "checking for --${enablestring:-enable}-compat20""... $ac_c" 1>&6 | |
3c907f20 | 3000 | echo "configure:3001: checking for --${enablestring:-enable}-compat20" >&5 |
54276ccf VZ |
3001 | no_cache=0 |
3002 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
3003 | if test "${enable_compat20+set}" = set; then | |
3004 | enableval="$enable_compat20" | |
a0b9e27f | 3005 | |
54276ccf VZ |
3006 | if test "$enableval" = yes; then |
3007 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
3008 | else | |
3009 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
3010 | fi | |
a0b9e27f | 3011 | |
54276ccf | 3012 | else |
a0b9e27f | 3013 | |
54276ccf VZ |
3014 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` |
3015 | if test "x$LINE" != x ; then | |
3016 | eval "DEFAULT_$LINE" | |
3017 | else | |
3018 | no_cache=1 | |
3019 | fi | |
3020 | ||
3021 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
a0b9e27f MB |
3022 | |
3023 | fi | |
54276ccf VZ |
3024 | |
3025 | ||
3026 | eval "$ac_cv_use_compat20" | |
3027 | if test "$no_cache" != 1; then | |
3028 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
3029 | fi | |
3030 | ||
3031 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
a0b9e27f | 3032 | echo "$ac_t""yes" 1>&6 |
54276ccf | 3033 | else |
a0b9e27f | 3034 | echo "$ac_t""no" 1>&6 |
54276ccf | 3035 | fi |
a0b9e27f | 3036 | |
54276ccf | 3037 | |
65d8ef1e | 3038 | enablestring= |
5005acfe | 3039 | echo $ac_n "checking for --${enablestring:-enable}-compat22""... $ac_c" 1>&6 |
3c907f20 | 3040 | echo "configure:3041: checking for --${enablestring:-enable}-compat22" >&5 |
54276ccf VZ |
3041 | no_cache=0 |
3042 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
3043 | if test "${enable_compat22+set}" = set; then | |
3044 | enableval="$enable_compat22" | |
a0b9e27f | 3045 | |
54276ccf VZ |
3046 | if test "$enableval" = yes; then |
3047 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
3048 | else | |
3049 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
3050 | fi | |
a0b9e27f | 3051 | |
54276ccf | 3052 | else |
a0b9e27f | 3053 | |
54276ccf VZ |
3054 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` |
3055 | if test "x$LINE" != x ; then | |
3056 | eval "DEFAULT_$LINE" | |
3057 | else | |
3058 | no_cache=1 | |
3059 | fi | |
3060 | ||
3061 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
a0b9e27f MB |
3062 | |
3063 | fi | |
54276ccf VZ |
3064 | |
3065 | ||
3066 | eval "$ac_cv_use_compat22" | |
3067 | if test "$no_cache" != 1; then | |
3068 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
3069 | fi | |
3070 | ||
3071 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
a0b9e27f | 3072 | echo "$ac_t""yes" 1>&6 |
54276ccf | 3073 | else |
a0b9e27f | 3074 | echo "$ac_t""no" 1>&6 |
54276ccf | 3075 | fi |
a0b9e27f | 3076 | |
54276ccf | 3077 | |
65d8ef1e VS |
3078 | enablestring=disable |
3079 | echo $ac_n "checking for --${enablestring:-enable}-compat24""... $ac_c" 1>&6 | |
3c907f20 | 3080 | echo "configure:3081: checking for --${enablestring:-enable}-compat24" >&5 |
65d8ef1e VS |
3081 | no_cache=0 |
3082 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
3083 | if test "${enable_compat24+set}" = set; then | |
3084 | enableval="$enable_compat24" | |
3085 | ||
3086 | if test "$enableval" = yes; then | |
3087 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
3088 | else | |
3089 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
3090 | fi | |
3091 | ||
3092 | else | |
3093 | ||
3094 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` | |
3095 | if test "x$LINE" != x ; then | |
3096 | eval "DEFAULT_$LINE" | |
3097 | else | |
3098 | no_cache=1 | |
3099 | fi | |
3100 | ||
3101 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
3102 | ||
3103 | fi | |
3104 | ||
3105 | ||
3106 | eval "$ac_cv_use_compat24" | |
3107 | if test "$no_cache" != 1; then | |
3108 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
3109 | fi | |
3110 | ||
3111 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
3112 | echo "$ac_t""yes" 1>&6 | |
3113 | else | |
3114 | echo "$ac_t""no" 1>&6 | |
3115 | fi | |
3116 | ||
3117 | ||
3bd8fb5f RD |
3118 | # Check whether --enable-rpath or --disable-rpath was given. |
3119 | if test "${enable_rpath+set}" = set; then | |
3120 | enableval="$enable_rpath" | |
3121 | wxRPATH_DIR="$enableval" | |
a0b9e27f MB |
3122 | fi |
3123 | ||
3bd8fb5f RD |
3124 | |
3125 | if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then | |
3126 | WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR" | |
3127 | fi | |
3128 | ||
8284b0c5 MB |
3129 | |
3130 | ||
3131 | ||
5005acfe VZ |
3132 | enablestring= |
3133 | echo $ac_n "checking for --${enablestring:-enable}-intl""... $ac_c" 1>&6 | |
3c907f20 | 3134 | echo "configure:3135: checking for --${enablestring:-enable}-intl" >&5 |
10f2d63a VZ |
3135 | no_cache=0 |
3136 | # Check whether --enable-intl or --disable-intl was given. | |
3137 | if test "${enable_intl+set}" = set; then | |
3138 | enableval="$enable_intl" | |
a0b9e27f | 3139 | |
10f2d63a VZ |
3140 | if test "$enableval" = yes; then |
3141 | ac_cv_use_intl='wxUSE_INTL=yes' | |
3142 | else | |
3143 | ac_cv_use_intl='wxUSE_INTL=no' | |
3144 | fi | |
a0b9e27f | 3145 | |
10f2d63a | 3146 | else |
a0b9e27f | 3147 | |
10f2d63a VZ |
3148 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
3149 | if test "x$LINE" != x ; then | |
3150 | eval "DEFAULT_$LINE" | |
3151 | else | |
3152 | no_cache=1 | |
3153 | fi | |
3154 | ||
3155 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
a0b9e27f MB |
3156 | |
3157 | fi | |
10f2d63a VZ |
3158 | |
3159 | ||
3160 | eval "$ac_cv_use_intl" | |
3161 | if test "$no_cache" != 1; then | |
3162 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3163 | fi | |
3164 | ||
3165 | if test "$wxUSE_INTL" = yes; then | |
a0b9e27f | 3166 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3167 | else |
a0b9e27f | 3168 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3169 | fi |
a0b9e27f | 3170 | |
10f2d63a | 3171 | |
5005acfe VZ |
3172 | enablestring= |
3173 | echo $ac_n "checking for --${enablestring:-enable}-config""... $ac_c" 1>&6 | |
3c907f20 | 3174 | echo "configure:3175: checking for --${enablestring:-enable}-config" >&5 |
10f2d63a VZ |
3175 | no_cache=0 |
3176 | # Check whether --enable-config or --disable-config was given. | |
3177 | if test "${enable_config+set}" = set; then | |
3178 | enableval="$enable_config" | |
a0b9e27f | 3179 | |
10f2d63a VZ |
3180 | if test "$enableval" = yes; then |
3181 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3182 | else | |
3183 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3184 | fi | |
a0b9e27f | 3185 | |
10f2d63a | 3186 | else |
a0b9e27f | 3187 | |
10f2d63a VZ |
3188 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3189 | if test "x$LINE" != x ; then | |
3190 | eval "DEFAULT_$LINE" | |
3191 | else | |
3192 | no_cache=1 | |
3193 | fi | |
3194 | ||
3195 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
a0b9e27f MB |
3196 | |
3197 | fi | |
10f2d63a VZ |
3198 | |
3199 | ||
3200 | eval "$ac_cv_use_config" | |
3201 | if test "$no_cache" != 1; then | |
3202 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3203 | fi | |
3204 | ||
3205 | if test "$wxUSE_CONFIG" = yes; then | |
a0b9e27f | 3206 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3207 | else |
a0b9e27f | 3208 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3209 | fi |
a0b9e27f | 3210 | |
52127426 | 3211 | |
8284b0c5 | 3212 | |
5005acfe VZ |
3213 | enablestring= |
3214 | echo $ac_n "checking for --${enablestring:-enable}-protocols""... $ac_c" 1>&6 | |
3c907f20 | 3215 | echo "configure:3216: checking for --${enablestring:-enable}-protocols" >&5 |
a1622950 VZ |
3216 | no_cache=0 |
3217 | # Check whether --enable-protocols or --disable-protocols was given. | |
3218 | if test "${enable_protocols+set}" = set; then | |
3219 | enableval="$enable_protocols" | |
a0b9e27f | 3220 | |
a1622950 VZ |
3221 | if test "$enableval" = yes; then |
3222 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
3223 | else | |
3224 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
3225 | fi | |
a0b9e27f | 3226 | |
a1622950 | 3227 | else |
a0b9e27f | 3228 | |
a1622950 VZ |
3229 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
3230 | if test "x$LINE" != x ; then | |
3231 | eval "DEFAULT_$LINE" | |
3232 | else | |
3233 | no_cache=1 | |
3234 | fi | |
3235 | ||
3236 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
a0b9e27f MB |
3237 | |
3238 | fi | |
a1622950 VZ |
3239 | |
3240 | ||
3241 | eval "$ac_cv_use_protocols" | |
3242 | if test "$no_cache" != 1; then | |
3243 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
3244 | fi | |
3245 | ||
3246 | if test "$wxUSE_PROTOCOL" = yes; then | |
a0b9e27f | 3247 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3248 | else |
a0b9e27f | 3249 | echo "$ac_t""no" 1>&6 |
a1622950 | 3250 | fi |
a0b9e27f | 3251 | |
a1622950 | 3252 | |
5005acfe VZ |
3253 | enablestring= |
3254 | echo $ac_n "checking for --${enablestring:-enable}-ftp""... $ac_c" 1>&6 | |
3c907f20 | 3255 | echo "configure:3256: checking for --${enablestring:-enable}-ftp" >&5 |
a1622950 VZ |
3256 | no_cache=0 |
3257 | # Check whether --enable-ftp or --disable-ftp was given. | |
3258 | if test "${enable_ftp+set}" = set; then | |
3259 | enableval="$enable_ftp" | |
a0b9e27f | 3260 | |
a1622950 VZ |
3261 | if test "$enableval" = yes; then |
3262 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
3263 | else | |
3264 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
3265 | fi | |
a0b9e27f | 3266 | |
a1622950 | 3267 | else |
a0b9e27f | 3268 | |
a1622950 VZ |
3269 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
3270 | if test "x$LINE" != x ; then | |
3271 | eval "DEFAULT_$LINE" | |
3272 | else | |
3273 | no_cache=1 | |
3274 | fi | |
3275 | ||
3276 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
a0b9e27f MB |
3277 | |
3278 | fi | |
a1622950 VZ |
3279 | |
3280 | ||
3281 | eval "$ac_cv_use_ftp" | |
3282 | if test "$no_cache" != 1; then | |
3283 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
3284 | fi | |
3285 | ||
3286 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
a0b9e27f | 3287 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3288 | else |
a0b9e27f | 3289 | echo "$ac_t""no" 1>&6 |
a1622950 | 3290 | fi |
a0b9e27f | 3291 | |
a1622950 | 3292 | |
5005acfe VZ |
3293 | enablestring= |
3294 | echo $ac_n "checking for --${enablestring:-enable}-http""... $ac_c" 1>&6 | |
3c907f20 | 3295 | echo "configure:3296: checking for --${enablestring:-enable}-http" >&5 |
a1622950 VZ |
3296 | no_cache=0 |
3297 | # Check whether --enable-http or --disable-http was given. | |
3298 | if test "${enable_http+set}" = set; then | |
3299 | enableval="$enable_http" | |
a0b9e27f | 3300 | |
a1622950 VZ |
3301 | if test "$enableval" = yes; then |
3302 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
3303 | else | |
3304 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
3305 | fi | |
a0b9e27f | 3306 | |
a1622950 | 3307 | else |
a0b9e27f | 3308 | |
a1622950 VZ |
3309 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
3310 | if test "x$LINE" != x ; then | |
3311 | eval "DEFAULT_$LINE" | |
3312 | else | |
3313 | no_cache=1 | |
3314 | fi | |
3315 | ||
3316 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
a0b9e27f MB |
3317 | |
3318 | fi | |
a1622950 VZ |
3319 | |
3320 | ||
3321 | eval "$ac_cv_use_http" | |
3322 | if test "$no_cache" != 1; then | |
3323 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
3324 | fi | |
3325 | ||
3326 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
a0b9e27f | 3327 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3328 | else |
a0b9e27f | 3329 | echo "$ac_t""no" 1>&6 |
a1622950 | 3330 | fi |
a0b9e27f | 3331 | |
a1622950 | 3332 | |
5005acfe VZ |
3333 | enablestring= |
3334 | echo $ac_n "checking for --${enablestring:-enable}-fileproto""... $ac_c" 1>&6 | |
3c907f20 | 3335 | echo "configure:3336: checking for --${enablestring:-enable}-fileproto" >&5 |
a1622950 VZ |
3336 | no_cache=0 |
3337 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
3338 | if test "${enable_fileproto+set}" = set; then | |
3339 | enableval="$enable_fileproto" | |
a0b9e27f | 3340 | |
a1622950 VZ |
3341 | if test "$enableval" = yes; then |
3342 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
3343 | else | |
3344 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
3345 | fi | |
a0b9e27f | 3346 | |
a1622950 | 3347 | else |
a0b9e27f | 3348 | |
a1622950 VZ |
3349 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
3350 | if test "x$LINE" != x ; then | |
3351 | eval "DEFAULT_$LINE" | |
3352 | else | |
3353 | no_cache=1 | |
3354 | fi | |
3355 | ||
3356 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
a0b9e27f MB |
3357 | |
3358 | fi | |
a1622950 VZ |
3359 | |
3360 | ||
3361 | eval "$ac_cv_use_fileproto" | |
3362 | if test "$no_cache" != 1; then | |
3363 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
3364 | fi | |
3365 | ||
3366 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
a0b9e27f | 3367 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3368 | else |
a0b9e27f | 3369 | echo "$ac_t""no" 1>&6 |
a1622950 | 3370 | fi |
a0b9e27f | 3371 | |
a1622950 | 3372 | |
5005acfe VZ |
3373 | enablestring= |
3374 | echo $ac_n "checking for --${enablestring:-enable}-sockets""... $ac_c" 1>&6 | |
3c907f20 | 3375 | echo "configure:3376: checking for --${enablestring:-enable}-sockets" >&5 |
10f2d63a VZ |
3376 | no_cache=0 |
3377 | # Check whether --enable-sockets or --disable-sockets was given. | |
3378 | if test "${enable_sockets+set}" = set; then | |
3379 | enableval="$enable_sockets" | |
a0b9e27f | 3380 | |
10f2d63a VZ |
3381 | if test "$enableval" = yes; then |
3382 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
3383 | else | |
3384 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
3385 | fi | |
a0b9e27f | 3386 | |
10f2d63a | 3387 | else |
a0b9e27f | 3388 | |
10f2d63a VZ |
3389 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
3390 | if test "x$LINE" != x ; then | |
3391 | eval "DEFAULT_$LINE" | |
3392 | else | |
3393 | no_cache=1 | |
3394 | fi | |
3395 | ||
3396 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
a0b9e27f MB |
3397 | |
3398 | fi | |
10f2d63a VZ |
3399 | |
3400 | ||
3401 | eval "$ac_cv_use_sockets" | |
3402 | if test "$no_cache" != 1; then | |
3403 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
3404 | fi | |
3405 | ||
3406 | if test "$wxUSE_SOCKETS" = yes; then | |
a0b9e27f | 3407 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3408 | else |
a0b9e27f | 3409 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3410 | fi |
a0b9e27f | 3411 | |
8284b0c5 | 3412 | |
5005acfe VZ |
3413 | enablestring= |
3414 | echo $ac_n "checking for --${enablestring:-enable}-ole""... $ac_c" 1>&6 | |
3c907f20 | 3415 | echo "configure:3416: checking for --${enablestring:-enable}-ole" >&5 |
3bce6687 JS |
3416 | no_cache=0 |
3417 | # Check whether --enable-ole or --disable-ole was given. | |
3418 | if test "${enable_ole+set}" = set; then | |
3419 | enableval="$enable_ole" | |
3420 | ||
3421 | if test "$enableval" = yes; then | |
3422 | ac_cv_use_ole='wxUSE_OLE=yes' | |
3423 | else | |
3424 | ac_cv_use_ole='wxUSE_OLE=no' | |
3425 | fi | |
3426 | ||
3427 | else | |
3428 | ||
3429 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
3430 | if test "x$LINE" != x ; then | |
3431 | eval "DEFAULT_$LINE" | |
3432 | else | |
3433 | no_cache=1 | |
3434 | fi | |
3435 | ||
3436 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
3437 | ||
3438 | fi | |
3439 | ||
3440 | ||
3441 | eval "$ac_cv_use_ole" | |
3442 | if test "$no_cache" != 1; then | |
3443 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
3444 | fi | |
3445 | ||
3446 | if test "$wxUSE_OLE" = yes; then | |
3447 | echo "$ac_t""yes" 1>&6 | |
3448 | else | |
3449 | echo "$ac_t""no" 1>&6 | |
3450 | fi | |
3451 | ||
3452 | ||
5005acfe VZ |
3453 | enablestring= |
3454 | echo $ac_n "checking for --${enablestring:-enable}-dataobj""... $ac_c" 1>&6 | |
3c907f20 | 3455 | echo "configure:3456: checking for --${enablestring:-enable}-dataobj" >&5 |
3bce6687 JS |
3456 | no_cache=0 |
3457 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
3458 | if test "${enable_dataobj+set}" = set; then | |
3459 | enableval="$enable_dataobj" | |
3460 | ||
3461 | if test "$enableval" = yes; then | |
3462 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
3463 | else | |
3464 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
3465 | fi | |
3466 | ||
3467 | else | |
3468 | ||
3469 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
3470 | if test "x$LINE" != x ; then | |
3471 | eval "DEFAULT_$LINE" | |
3472 | else | |
3473 | no_cache=1 | |
3474 | fi | |
3475 | ||
3476 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
3477 | ||
3478 | fi | |
3479 | ||
3480 | ||
3481 | eval "$ac_cv_use_dataobj" | |
3482 | if test "$no_cache" != 1; then | |
3483 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
3484 | fi | |
3485 | ||
3486 | if test "$wxUSE_DATAOBJ" = yes; then | |
3487 | echo "$ac_t""yes" 1>&6 | |
3488 | else | |
3489 | echo "$ac_t""no" 1>&6 | |
3490 | fi | |
3491 | ||
3492 | ||
52127426 | 3493 | |
5005acfe VZ |
3494 | enablestring= |
3495 | echo $ac_n "checking for --${enablestring:-enable}-ipc""... $ac_c" 1>&6 | |
3c907f20 | 3496 | echo "configure:3497: checking for --${enablestring:-enable}-ipc" >&5 |
10f2d63a | 3497 | no_cache=0 |
eb4efbdc VZ |
3498 | # Check whether --enable-ipc or --disable-ipc was given. |
3499 | if test "${enable_ipc+set}" = set; then | |
3500 | enableval="$enable_ipc" | |
a0b9e27f | 3501 | |
10f2d63a | 3502 | if test "$enableval" = yes; then |
eb4efbdc | 3503 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 3504 | else |
eb4efbdc | 3505 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 3506 | fi |
a0b9e27f | 3507 | |
10f2d63a | 3508 | else |
a0b9e27f | 3509 | |
eb4efbdc | 3510 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
3511 | if test "x$LINE" != x ; then |
3512 | eval "DEFAULT_$LINE" | |
3513 | else | |
3514 | no_cache=1 | |
3515 | fi | |
3516 | ||
eb4efbdc | 3517 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
a0b9e27f MB |
3518 | |
3519 | fi | |
10f2d63a VZ |
3520 | |
3521 | ||
eb4efbdc | 3522 | eval "$ac_cv_use_ipc" |
10f2d63a | 3523 | if test "$no_cache" != 1; then |
eb4efbdc | 3524 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3525 | fi |
3526 | ||
eb4efbdc | 3527 | if test "$wxUSE_IPC" = yes; then |
a0b9e27f | 3528 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3529 | else |
a0b9e27f | 3530 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3531 | fi |
a0b9e27f | 3532 | |
52127426 | 3533 | |
8284b0c5 | 3534 | |
5005acfe VZ |
3535 | enablestring= |
3536 | echo $ac_n "checking for --${enablestring:-enable}-cmdline""... $ac_c" 1>&6 | |
3c907f20 | 3537 | echo "configure:3538: checking for --${enablestring:-enable}-cmdline" >&5 |
1e6feb95 VZ |
3538 | no_cache=0 |
3539 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
3540 | if test "${enable_cmdline+set}" = set; then | |
3541 | enableval="$enable_cmdline" | |
a0b9e27f | 3542 | |
1e6feb95 VZ |
3543 | if test "$enableval" = yes; then |
3544 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
3545 | else | |
3546 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
3547 | fi | |
a0b9e27f | 3548 | |
1e6feb95 | 3549 | else |
a0b9e27f | 3550 | |
1e6feb95 VZ |
3551 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` |
3552 | if test "x$LINE" != x ; then | |
3553 | eval "DEFAULT_$LINE" | |
3554 | else | |
3555 | no_cache=1 | |
3556 | fi | |
3557 | ||
3558 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
a0b9e27f MB |
3559 | |
3560 | fi | |
1e6feb95 VZ |
3561 | |
3562 | ||
3563 | eval "$ac_cv_use_cmdline" | |
3564 | if test "$no_cache" != 1; then | |
3565 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3566 | fi | |
3567 | ||
3568 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
a0b9e27f | 3569 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3570 | else |
a0b9e27f | 3571 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3572 | fi |
a0b9e27f | 3573 | |
1e6feb95 | 3574 | |
5005acfe VZ |
3575 | enablestring= |
3576 | echo $ac_n "checking for --${enablestring:-enable}-datetime""... $ac_c" 1>&6 | |
3c907f20 | 3577 | echo "configure:3578: checking for --${enablestring:-enable}-datetime" >&5 |
1e6feb95 VZ |
3578 | no_cache=0 |
3579 | # Check whether --enable-datetime or --disable-datetime was given. | |
3580 | if test "${enable_datetime+set}" = set; then | |
3581 | enableval="$enable_datetime" | |
a0b9e27f | 3582 | |
1e6feb95 VZ |
3583 | if test "$enableval" = yes; then |
3584 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3585 | else | |
3586 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3587 | fi | |
a0b9e27f | 3588 | |
1e6feb95 | 3589 | else |
a0b9e27f | 3590 | |
1e6feb95 VZ |
3591 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` |
3592 | if test "x$LINE" != x ; then | |
3593 | eval "DEFAULT_$LINE" | |
3594 | else | |
3595 | no_cache=1 | |
3596 | fi | |
3597 | ||
3598 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
a0b9e27f MB |
3599 | |
3600 | fi | |
1e6feb95 VZ |
3601 | |
3602 | ||
3603 | eval "$ac_cv_use_datetime" | |
3604 | if test "$no_cache" != 1; then | |
3605 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3606 | fi | |
3607 | ||
3608 | if test "$wxUSE_DATETIME" = yes; then | |
a0b9e27f | 3609 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3610 | else |
a0b9e27f | 3611 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3612 | fi |
a0b9e27f | 3613 | |
1e6feb95 | 3614 | |
5005acfe VZ |
3615 | enablestring= |
3616 | echo $ac_n "checking for --${enablestring:-enable}-stopwatch""... $ac_c" 1>&6 | |
3c907f20 | 3617 | echo "configure:3618: checking for --${enablestring:-enable}-stopwatch" >&5 |
1e6feb95 VZ |
3618 | no_cache=0 |
3619 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3620 | if test "${enable_stopwatch+set}" = set; then | |
3621 | enableval="$enable_stopwatch" | |
a0b9e27f | 3622 | |
1e6feb95 VZ |
3623 | if test "$enableval" = yes; then |
3624 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3625 | else | |
3626 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3627 | fi | |
a0b9e27f | 3628 | |
1e6feb95 | 3629 | else |
a0b9e27f | 3630 | |
1e6feb95 VZ |
3631 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` |
3632 | if test "x$LINE" != x ; then | |
3633 | eval "DEFAULT_$LINE" | |
3634 | else | |
3635 | no_cache=1 | |
3636 | fi | |
3637 | ||
3638 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
a0b9e27f MB |
3639 | |
3640 | fi | |
1e6feb95 VZ |
3641 | |
3642 | ||
3643 | eval "$ac_cv_use_stopwatch" | |
3644 | if test "$no_cache" != 1; then | |
3645 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3646 | fi | |
3647 | ||
3648 | if test "$wxUSE_STOPWATCH" = yes; then | |
a0b9e27f | 3649 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3650 | else |
a0b9e27f | 3651 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3652 | fi |
a0b9e27f | 3653 | |
1e6feb95 | 3654 | |
5005acfe VZ |
3655 | enablestring= |
3656 | echo $ac_n "checking for --${enablestring:-enable}-dialupman""... $ac_c" 1>&6 | |
3c907f20 | 3657 | echo "configure:3658: checking for --${enablestring:-enable}-dialupman" >&5 |
10f2d63a | 3658 | no_cache=0 |
eb4efbdc VZ |
3659 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3660 | if test "${enable_dialupman+set}" = set; then | |
3661 | enableval="$enable_dialupman" | |
a0b9e27f | 3662 | |
10f2d63a | 3663 | if test "$enableval" = yes; then |
eb4efbdc | 3664 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3665 | else |
eb4efbdc | 3666 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3667 | fi |
a0b9e27f | 3668 | |
10f2d63a | 3669 | else |
a0b9e27f | 3670 | |
eb4efbdc | 3671 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3672 | if test "x$LINE" != x ; then |
3673 | eval "DEFAULT_$LINE" | |
3674 | else | |
3675 | no_cache=1 | |
3676 | fi | |
3677 | ||
eb4efbdc | 3678 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
a0b9e27f MB |
3679 | |
3680 | fi | |
10f2d63a VZ |
3681 | |
3682 | ||
eb4efbdc | 3683 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3684 | if test "$no_cache" != 1; then |
eb4efbdc | 3685 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3686 | fi |
3687 | ||
eb4efbdc | 3688 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
a0b9e27f | 3689 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3690 | else |
a0b9e27f | 3691 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3692 | fi |
a0b9e27f | 3693 | |
10f2d63a | 3694 | |
5005acfe VZ |
3695 | enablestring= |
3696 | echo $ac_n "checking for --${enablestring:-enable}-apple_ieee""... $ac_c" 1>&6 | |
3c907f20 | 3697 | echo "configure:3698: checking for --${enablestring:-enable}-apple_ieee" >&5 |
10f2d63a VZ |
3698 | no_cache=0 |
3699 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3700 | if test "${enable_apple_ieee+set}" = set; then | |
3701 | enableval="$enable_apple_ieee" | |
a0b9e27f | 3702 | |
10f2d63a VZ |
3703 | if test "$enableval" = yes; then |
3704 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3705 | else | |
3706 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3707 | fi | |
a0b9e27f | 3708 | |
10f2d63a | 3709 | else |
a0b9e27f | 3710 | |
10f2d63a VZ |
3711 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3712 | if test "x$LINE" != x ; then | |
3713 | eval "DEFAULT_$LINE" | |
3714 | else | |
3715 | no_cache=1 | |
3716 | fi | |
3717 | ||
3718 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
a0b9e27f MB |
3719 | |
3720 | fi | |
10f2d63a VZ |
3721 | |
3722 | ||
3723 | eval "$ac_cv_use_apple_ieee" | |
3724 | if test "$no_cache" != 1; then | |
3725 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3726 | fi | |
3727 | ||
3728 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
a0b9e27f | 3729 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3730 | else |
a0b9e27f | 3731 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3732 | fi |
a0b9e27f | 3733 | |
10f2d63a | 3734 | |
5005acfe VZ |
3735 | enablestring= |
3736 | echo $ac_n "checking for --${enablestring:-enable}-timer""... $ac_c" 1>&6 | |
3c907f20 | 3737 | echo "configure:3738: checking for --${enablestring:-enable}-timer" >&5 |
10f2d63a | 3738 | no_cache=0 |
1e6feb95 VZ |
3739 | # Check whether --enable-timer or --disable-timer was given. |
3740 | if test "${enable_timer+set}" = set; then | |
3741 | enableval="$enable_timer" | |
a0b9e27f | 3742 | |
10f2d63a | 3743 | if test "$enableval" = yes; then |
1e6feb95 | 3744 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3745 | else |
1e6feb95 | 3746 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3747 | fi |
a0b9e27f | 3748 | |
10f2d63a | 3749 | else |
a0b9e27f | 3750 | |
1e6feb95 | 3751 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3752 | if test "x$LINE" != x ; then |
3753 | eval "DEFAULT_$LINE" | |
3754 | else | |
3755 | no_cache=1 | |
3756 | fi | |
3757 | ||
1e6feb95 | 3758 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
a0b9e27f MB |
3759 | |
3760 | fi | |
10f2d63a VZ |
3761 | |
3762 | ||
1e6feb95 | 3763 | eval "$ac_cv_use_timer" |
10f2d63a | 3764 | if test "$no_cache" != 1; then |
1e6feb95 | 3765 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3766 | fi |
3767 | ||
1e6feb95 | 3768 | if test "$wxUSE_TIMER" = yes; then |
a0b9e27f | 3769 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3770 | else |
a0b9e27f | 3771 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3772 | fi |
a0b9e27f | 3773 | |
10f2d63a | 3774 | |
5005acfe VZ |
3775 | enablestring= |
3776 | echo $ac_n "checking for --${enablestring:-enable}-wave""... $ac_c" 1>&6 | |
3c907f20 | 3777 | echo "configure:3778: checking for --${enablestring:-enable}-wave" >&5 |
10f2d63a VZ |
3778 | no_cache=0 |
3779 | # Check whether --enable-wave or --disable-wave was given. | |
3780 | if test "${enable_wave+set}" = set; then | |
3781 | enableval="$enable_wave" | |
a0b9e27f | 3782 | |
10f2d63a VZ |
3783 | if test "$enableval" = yes; then |
3784 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3785 | else | |
3786 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3787 | fi | |
a0b9e27f | 3788 | |
10f2d63a | 3789 | else |
a0b9e27f | 3790 | |
10f2d63a VZ |
3791 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3792 | if test "x$LINE" != x ; then | |
3793 | eval "DEFAULT_$LINE" | |
3794 | else | |
3795 | no_cache=1 | |
3796 | fi | |
3797 | ||
3798 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
a0b9e27f MB |
3799 | |
3800 | fi | |
10f2d63a VZ |
3801 | |
3802 | ||
3803 | eval "$ac_cv_use_wave" | |
3804 | if test "$no_cache" != 1; then | |
3805 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3806 | fi | |
3807 | ||
3808 | if test "$wxUSE_WAVE" = yes; then | |
a0b9e27f | 3809 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3810 | else |
a0b9e27f | 3811 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3812 | fi |
a0b9e27f | 3813 | |
10f2d63a | 3814 | |
5005acfe VZ |
3815 | enablestring= |
3816 | echo $ac_n "checking for --${enablestring:-enable}-fraction""... $ac_c" 1>&6 | |
3c907f20 | 3817 | echo "configure:3818: checking for --${enablestring:-enable}-fraction" >&5 |
10f2d63a VZ |
3818 | no_cache=0 |
3819 | # Check whether --enable-fraction or --disable-fraction was given. | |
3820 | if test "${enable_fraction+set}" = set; then | |
3821 | enableval="$enable_fraction" | |
a0b9e27f | 3822 | |
10f2d63a VZ |
3823 | if test "$enableval" = yes; then |
3824 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3825 | else | |
3826 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3827 | fi | |
a0b9e27f | 3828 | |
10f2d63a | 3829 | else |
a0b9e27f | 3830 | |
10f2d63a VZ |
3831 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3832 | if test "x$LINE" != x ; then | |
3833 | eval "DEFAULT_$LINE" | |
3834 | else | |
3835 | no_cache=1 | |
3836 | fi | |
3837 | ||
3838 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
a0b9e27f MB |
3839 | |
3840 | fi | |
10f2d63a VZ |
3841 | |
3842 | ||
3843 | eval "$ac_cv_use_fraction" | |
3844 | if test "$no_cache" != 1; then | |
3845 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3846 | fi | |
3847 | ||
3848 | if test "$wxUSE_FRACTION" = yes; then | |
a0b9e27f | 3849 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3850 | else |
a0b9e27f | 3851 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3852 | fi |
a0b9e27f | 3853 | |
10f2d63a | 3854 | |
5005acfe VZ |
3855 | enablestring= |
3856 | echo $ac_n "checking for --${enablestring:-enable}-dynlib""... $ac_c" 1>&6 | |
3c907f20 | 3857 | echo "configure:3858: checking for --${enablestring:-enable}-dynlib" >&5 |
10f2d63a VZ |
3858 | no_cache=0 |
3859 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3860 | if test "${enable_dynlib+set}" = set; then | |
3861 | enableval="$enable_dynlib" | |
a0b9e27f | 3862 | |
10f2d63a VZ |
3863 | if test "$enableval" = yes; then |
3864 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3865 | else | |
3866 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3867 | fi | |
a0b9e27f | 3868 | |
10f2d63a | 3869 | else |
a0b9e27f | 3870 | |
10f2d63a VZ |
3871 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3872 | if test "x$LINE" != x ; then | |
3873 | eval "DEFAULT_$LINE" | |
3874 | else | |
3875 | no_cache=1 | |
3876 | fi | |
3877 | ||
3878 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
a0b9e27f MB |
3879 | |
3880 | fi | |
10f2d63a VZ |
3881 | |
3882 | ||
3883 | eval "$ac_cv_use_dynlib" | |
3884 | if test "$no_cache" != 1; then | |
3885 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3886 | fi | |
3887 | ||
3888 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
a0b9e27f | 3889 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3890 | else |
a0b9e27f | 3891 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3892 | fi |
a0b9e27f | 3893 | |
10f2d63a | 3894 | |
5005acfe VZ |
3895 | enablestring= |
3896 | echo $ac_n "checking for --${enablestring:-enable}-dynamicloader""... $ac_c" 1>&6 | |
3c907f20 | 3897 | echo "configure:3898: checking for --${enablestring:-enable}-dynamicloader" >&5 |
0b9ab0bd RL |
3898 | no_cache=0 |
3899 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
3900 | if test "${enable_dynamicloader+set}" = set; then | |
3901 | enableval="$enable_dynamicloader" | |
a0b9e27f | 3902 | |
0b9ab0bd RL |
3903 | if test "$enableval" = yes; then |
3904 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
3905 | else | |
3906 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
3907 | fi | |
a0b9e27f | 3908 | |
0b9ab0bd | 3909 | else |
a0b9e27f | 3910 | |
0b9ab0bd RL |
3911 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` |
3912 | if test "x$LINE" != x ; then | |
3913 | eval "DEFAULT_$LINE" | |
3914 | else | |
3915 | no_cache=1 | |
3916 | fi | |
3917 | ||
3918 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
a0b9e27f MB |
3919 | |
3920 | fi | |
0b9ab0bd RL |
3921 | |
3922 | ||
3923 | eval "$ac_cv_use_dynamicloader" | |
3924 | if test "$no_cache" != 1; then | |
3925 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
3926 | fi | |
3927 | ||
3928 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
a0b9e27f | 3929 | echo "$ac_t""yes" 1>&6 |
0b9ab0bd | 3930 | else |
a0b9e27f | 3931 | echo "$ac_t""no" 1>&6 |
0b9ab0bd | 3932 | fi |
a0b9e27f | 3933 | |
0b9ab0bd | 3934 | |
5005acfe VZ |
3935 | enablestring= |
3936 | echo $ac_n "checking for --${enablestring:-enable}-longlong""... $ac_c" 1>&6 | |
3c907f20 | 3937 | echo "configure:3938: checking for --${enablestring:-enable}-longlong" >&5 |
10f2d63a VZ |
3938 | no_cache=0 |
3939 | # Check whether --enable-longlong or --disable-longlong was given. | |
3940 | if test "${enable_longlong+set}" = set; then | |
3941 | enableval="$enable_longlong" | |
a0b9e27f | 3942 | |
10f2d63a VZ |
3943 | if test "$enableval" = yes; then |
3944 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3945 | else | |
3946 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3947 | fi | |
a0b9e27f | 3948 | |
10f2d63a | 3949 | else |
a0b9e27f | 3950 | |
10f2d63a VZ |
3951 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3952 | if test "x$LINE" != x ; then | |
3953 | eval "DEFAULT_$LINE" | |
3954 | else | |
3955 | no_cache=1 | |
3956 | fi | |
3957 | ||
3958 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
a0b9e27f MB |
3959 | |
3960 | fi | |
10f2d63a VZ |
3961 | |
3962 | ||
3963 | eval "$ac_cv_use_longlong" | |
3964 | if test "$no_cache" != 1; then | |
3965 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3966 | fi | |
3967 | ||
3968 | if test "$wxUSE_LONGLONG" = yes; then | |
a0b9e27f | 3969 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3970 | else |
a0b9e27f | 3971 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3972 | fi |
a0b9e27f | 3973 | |
10f2d63a | 3974 | |
5005acfe VZ |
3975 | enablestring= |
3976 | echo $ac_n "checking for --${enablestring:-enable}-geometry""... $ac_c" 1>&6 | |
3c907f20 | 3977 | echo "configure:3978: checking for --${enablestring:-enable}-geometry" >&5 |
e8f65ba6 RR |
3978 | no_cache=0 |
3979 | # Check whether --enable-geometry or --disable-geometry was given. | |
3980 | if test "${enable_geometry+set}" = set; then | |
3981 | enableval="$enable_geometry" | |
a0b9e27f | 3982 | |
e8f65ba6 RR |
3983 | if test "$enableval" = yes; then |
3984 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3985 | else | |
3986 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3987 | fi | |
a0b9e27f | 3988 | |
e8f65ba6 | 3989 | else |
a0b9e27f | 3990 | |
e8f65ba6 RR |
3991 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
3992 | if test "x$LINE" != x ; then | |
3993 | eval "DEFAULT_$LINE" | |
3994 | else | |
3995 | no_cache=1 | |
3996 | fi | |
3997 | ||
3998 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
a0b9e27f MB |
3999 | |
4000 | fi | |
e8f65ba6 RR |
4001 | |
4002 | ||
4003 | eval "$ac_cv_use_geometry" | |
4004 | if test "$no_cache" != 1; then | |
4005 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
4006 | fi | |
4007 | ||
4008 | if test "$wxUSE_GEOMETRY" = yes; then | |
a0b9e27f | 4009 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 4010 | else |
a0b9e27f | 4011 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 4012 | fi |
a0b9e27f | 4013 | |
e8f65ba6 | 4014 | |
5005acfe VZ |
4015 | enablestring= |
4016 | echo $ac_n "checking for --${enablestring:-enable}-log""... $ac_c" 1>&6 | |
3c907f20 | 4017 | echo "configure:4018: checking for --${enablestring:-enable}-log" >&5 |
10f2d63a VZ |
4018 | no_cache=0 |
4019 | # Check whether --enable-log or --disable-log was given. | |
4020 | if test "${enable_log+set}" = set; then | |
4021 | enableval="$enable_log" | |
a0b9e27f | 4022 | |
10f2d63a VZ |
4023 | if test "$enableval" = yes; then |
4024 | ac_cv_use_log='wxUSE_LOG=yes' | |
4025 | else | |
4026 | ac_cv_use_log='wxUSE_LOG=no' | |
4027 | fi | |
a0b9e27f | 4028 | |
10f2d63a | 4029 | else |
a0b9e27f | 4030 | |
10f2d63a VZ |
4031 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
4032 | if test "x$LINE" != x ; then | |
4033 | eval "DEFAULT_$LINE" | |
4034 | else | |
4035 | no_cache=1 | |
4036 | fi | |
4037 | ||
4038 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
a0b9e27f MB |
4039 | |
4040 | fi | |
10f2d63a VZ |
4041 | |
4042 | ||
4043 | eval "$ac_cv_use_log" | |
4044 | if test "$no_cache" != 1; then | |
4045 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
4046 | fi | |
4047 | ||
4048 | if test "$wxUSE_LOG" = yes; then | |
a0b9e27f | 4049 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4050 | else |
a0b9e27f | 4051 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4052 | fi |
a0b9e27f | 4053 | |
10f2d63a | 4054 | |
5005acfe VZ |
4055 | enablestring= |
4056 | echo $ac_n "checking for --${enablestring:-enable}-streams""... $ac_c" 1>&6 | |
3c907f20 | 4057 | echo "configure:4058: checking for --${enablestring:-enable}-streams" >&5 |
10f2d63a VZ |
4058 | no_cache=0 |
4059 | # Check whether --enable-streams or --disable-streams was given. | |
4060 | if test "${enable_streams+set}" = set; then | |
4061 | enableval="$enable_streams" | |
a0b9e27f | 4062 | |
10f2d63a VZ |
4063 | if test "$enableval" = yes; then |
4064 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
4065 | else | |
4066 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
4067 | fi | |
a0b9e27f | 4068 | |
10f2d63a | 4069 | else |
a0b9e27f | 4070 | |
10f2d63a VZ |
4071 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
4072 | if test "x$LINE" != x ; then | |
4073 | eval "DEFAULT_$LINE" | |
4074 | else | |
4075 | no_cache=1 | |
4076 | fi | |
4077 | ||
4078 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
a0b9e27f MB |
4079 | |
4080 | fi | |
10f2d63a VZ |
4081 | |
4082 | ||
4083 | eval "$ac_cv_use_streams" | |
4084 | if test "$no_cache" != 1; then | |
4085 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
4086 | fi | |
4087 | ||
4088 | if test "$wxUSE_STREAMS" = yes; then | |
a0b9e27f | 4089 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4090 | else |
a0b9e27f | 4091 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4092 | fi |
a0b9e27f | 4093 | |
10f2d63a | 4094 | |
5005acfe VZ |
4095 | enablestring= |
4096 | echo $ac_n "checking for --${enablestring:-enable}-file""... $ac_c" 1>&6 | |
3c907f20 | 4097 | echo "configure:4098: checking for --${enablestring:-enable}-file" >&5 |
10f2d63a VZ |
4098 | no_cache=0 |
4099 | # Check whether --enable-file or --disable-file was given. | |
4100 | if test "${enable_file+set}" = set; then | |
4101 | enableval="$enable_file" | |
a0b9e27f | 4102 | |
10f2d63a VZ |
4103 | if test "$enableval" = yes; then |
4104 | ac_cv_use_file='wxUSE_FILE=yes' | |
4105 | else | |
4106 | ac_cv_use_file='wxUSE_FILE=no' | |
4107 | fi | |
a0b9e27f | 4108 | |
10f2d63a | 4109 | else |
a0b9e27f | 4110 | |
10f2d63a VZ |
4111 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
4112 | if test "x$LINE" != x ; then | |
4113 | eval "DEFAULT_$LINE" | |
4114 | else | |
4115 | no_cache=1 | |
4116 | fi | |
4117 | ||
4118 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
a0b9e27f MB |
4119 | |
4120 | fi | |
10f2d63a VZ |
4121 | |
4122 | ||
4123 | eval "$ac_cv_use_file" | |
4124 | if test "$no_cache" != 1; then | |
4125 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
4126 | fi | |
4127 | ||
4128 | if test "$wxUSE_FILE" = yes; then | |
a0b9e27f | 4129 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4130 | else |
a0b9e27f | 4131 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4132 | fi |
a0b9e27f | 4133 | |
10f2d63a | 4134 | |
5005acfe VZ |
4135 | enablestring= |
4136 | echo $ac_n "checking for --${enablestring:-enable}-ffile""... $ac_c" 1>&6 | |
3c907f20 | 4137 | echo "configure:4138: checking for --${enablestring:-enable}-ffile" >&5 |
10f2d63a | 4138 | no_cache=0 |
1e6feb95 VZ |
4139 | # Check whether --enable-ffile or --disable-ffile was given. |
4140 | if test "${enable_ffile+set}" = set; then | |
4141 | enableval="$enable_ffile" | |
a0b9e27f | 4142 | |
10f2d63a | 4143 | if test "$enableval" = yes; then |
1e6feb95 | 4144 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 4145 | else |
1e6feb95 | 4146 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 4147 | fi |
a0b9e27f | 4148 | |
10f2d63a | 4149 | else |
a0b9e27f | 4150 | |
1e6feb95 | 4151 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4152 | if test "x$LINE" != x ; then |
4153 | eval "DEFAULT_$LINE" | |
4154 | else | |
4155 | no_cache=1 | |
4156 | fi | |
4157 | ||
1e6feb95 | 4158 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
a0b9e27f MB |
4159 | |
4160 | fi | |
10f2d63a VZ |
4161 | |
4162 | ||
1e6feb95 | 4163 | eval "$ac_cv_use_ffile" |
10f2d63a | 4164 | if test "$no_cache" != 1; then |
1e6feb95 | 4165 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4166 | fi |
4167 | ||
1e6feb95 | 4168 | if test "$wxUSE_FFILE" = yes; then |
a0b9e27f | 4169 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4170 | else |
a0b9e27f | 4171 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4172 | fi |
a0b9e27f | 4173 | |
10f2d63a | 4174 | |
5005acfe VZ |
4175 | enablestring= |
4176 | echo $ac_n "checking for --${enablestring:-enable}-textbuf""... $ac_c" 1>&6 | |
3c907f20 | 4177 | echo "configure:4178: checking for --${enablestring:-enable}-textbuf" >&5 |
a3a584a7 VZ |
4178 | no_cache=0 |
4179 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
4180 | if test "${enable_textbuf+set}" = set; then | |
4181 | enableval="$enable_textbuf" | |
a0b9e27f | 4182 | |
a3a584a7 VZ |
4183 | if test "$enableval" = yes; then |
4184 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
4185 | else | |
4186 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
4187 | fi | |
a0b9e27f | 4188 | |
a3a584a7 | 4189 | else |
a0b9e27f | 4190 | |
a3a584a7 VZ |
4191 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` |
4192 | if test "x$LINE" != x ; then | |
4193 | eval "DEFAULT_$LINE" | |
4194 | else | |
4195 | no_cache=1 | |
4196 | fi | |
4197 | ||
4198 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
a0b9e27f MB |
4199 | |
4200 | fi | |
a3a584a7 VZ |
4201 | |
4202 | ||
4203 | eval "$ac_cv_use_textbuf" | |
4204 | if test "$no_cache" != 1; then | |
4205 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
4206 | fi | |
4207 | ||
4208 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
a0b9e27f | 4209 | echo "$ac_t""yes" 1>&6 |
a3a584a7 | 4210 | else |
a0b9e27f | 4211 | echo "$ac_t""no" 1>&6 |
a3a584a7 | 4212 | fi |
a0b9e27f | 4213 | |
a3a584a7 | 4214 | |
5005acfe VZ |
4215 | enablestring= |
4216 | echo $ac_n "checking for --${enablestring:-enable}-textfile""... $ac_c" 1>&6 | |
3c907f20 | 4217 | echo "configure:4218: checking for --${enablestring:-enable}-textfile" >&5 |
10f2d63a | 4218 | no_cache=0 |
1e6feb95 VZ |
4219 | # Check whether --enable-textfile or --disable-textfile was given. |
4220 | if test "${enable_textfile+set}" = set; then | |
4221 | enableval="$enable_textfile" | |
a0b9e27f | 4222 | |
10f2d63a | 4223 | if test "$enableval" = yes; then |
1e6feb95 | 4224 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 4225 | else |
1e6feb95 | 4226 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 4227 | fi |
a0b9e27f | 4228 | |
10f2d63a | 4229 | else |
a0b9e27f | 4230 | |
1e6feb95 | 4231 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4232 | if test "x$LINE" != x ; then |
4233 | eval "DEFAULT_$LINE" | |
4234 | else | |
4235 | no_cache=1 | |
4236 | fi | |
4237 | ||
1e6feb95 | 4238 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
a0b9e27f MB |
4239 | |
4240 | fi | |
10f2d63a VZ |
4241 | |
4242 | ||
1e6feb95 | 4243 | eval "$ac_cv_use_textfile" |
10f2d63a | 4244 | if test "$no_cache" != 1; then |
1e6feb95 | 4245 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4246 | fi |
4247 | ||
1e6feb95 | 4248 | if test "$wxUSE_TEXTFILE" = yes; then |
a0b9e27f | 4249 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4250 | else |
a0b9e27f | 4251 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4252 | fi |
a0b9e27f | 4253 | |
10f2d63a | 4254 | |
5005acfe VZ |
4255 | enablestring= |
4256 | echo $ac_n "checking for --${enablestring:-enable}-fontmap""... $ac_c" 1>&6 | |
3c907f20 | 4257 | echo "configure:4258: checking for --${enablestring:-enable}-fontmap" >&5 |
10f2d63a | 4258 | no_cache=0 |
1e6feb95 VZ |
4259 | # Check whether --enable-fontmap or --disable-fontmap was given. |
4260 | if test "${enable_fontmap+set}" = set; then | |
4261 | enableval="$enable_fontmap" | |
a0b9e27f | 4262 | |
10f2d63a | 4263 | if test "$enableval" = yes; then |
1e6feb95 | 4264 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 4265 | else |
1e6feb95 | 4266 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 4267 | fi |
a0b9e27f | 4268 | |
10f2d63a | 4269 | else |
a0b9e27f | 4270 | |
1e6feb95 | 4271 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
4272 | if test "x$LINE" != x ; then |
4273 | eval "DEFAULT_$LINE" | |
4274 | else | |
4275 | no_cache=1 | |
4276 | fi | |
4277 | ||
1e6feb95 | 4278 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
a0b9e27f MB |
4279 | |
4280 | fi | |
10f2d63a VZ |
4281 | |
4282 | ||
1e6feb95 | 4283 | eval "$ac_cv_use_fontmap" |
10f2d63a | 4284 | if test "$no_cache" != 1; then |
1e6feb95 | 4285 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4286 | fi |
4287 | ||
1e6feb95 | 4288 | if test "$wxUSE_FONTMAP" = yes; then |
a0b9e27f | 4289 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4290 | else |
a0b9e27f | 4291 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4292 | fi |
a0b9e27f | 4293 | |
10f2d63a | 4294 | |
5005acfe VZ |
4295 | enablestring= |
4296 | echo $ac_n "checking for --${enablestring:-enable}-unicode""... $ac_c" 1>&6 | |
3c907f20 | 4297 | echo "configure:4298: checking for --${enablestring:-enable}-unicode" >&5 |
10f2d63a | 4298 | no_cache=0 |
1e6feb95 VZ |
4299 | # Check whether --enable-unicode or --disable-unicode was given. |
4300 | if test "${enable_unicode+set}" = set; then | |
4301 | enableval="$enable_unicode" | |
a0b9e27f | 4302 | |
1e6feb95 VZ |
4303 | if test "$enableval" = yes; then |
4304 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
4305 | else | |
4306 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
4307 | fi | |
a0b9e27f | 4308 | |
1e6feb95 | 4309 | else |
a0b9e27f | 4310 | |
1e6feb95 VZ |
4311 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` |
4312 | if test "x$LINE" != x ; then | |
4313 | eval "DEFAULT_$LINE" | |
4314 | else | |
4315 | no_cache=1 | |
4316 | fi | |
4317 | ||
4318 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
a0b9e27f MB |
4319 | |
4320 | fi | |
1e6feb95 VZ |
4321 | |
4322 | ||
4323 | eval "$ac_cv_use_unicode" | |
4324 | if test "$no_cache" != 1; then | |
4325 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
4326 | fi | |
4327 | ||
4328 | if test "$wxUSE_UNICODE" = yes; then | |
a0b9e27f | 4329 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 4330 | else |
a0b9e27f | 4331 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 4332 | fi |
a0b9e27f | 4333 | |
1e6feb95 | 4334 | |
5005acfe VZ |
4335 | enablestring= |
4336 | echo $ac_n "checking for --${enablestring:-enable}-mslu""... $ac_c" 1>&6 | |
3c907f20 | 4337 | echo "configure:4338: checking for --${enablestring:-enable}-mslu" >&5 |
a72a4bfa VS |
4338 | no_cache=0 |
4339 | # Check whether --enable-mslu or --disable-mslu was given. | |
4340 | if test "${enable_mslu+set}" = set; then | |
4341 | enableval="$enable_mslu" | |
a0b9e27f | 4342 | |
a72a4bfa VS |
4343 | if test "$enableval" = yes; then |
4344 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
4345 | else | |
4346 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
4347 | fi | |
a0b9e27f | 4348 | |
a72a4bfa | 4349 | else |
a0b9e27f | 4350 | |
a72a4bfa VS |
4351 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` |
4352 | if test "x$LINE" != x ; then | |
4353 | eval "DEFAULT_$LINE" | |
4354 | else | |
4355 | no_cache=1 | |
4356 | fi | |
4357 | ||
4358 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
a0b9e27f MB |
4359 | |
4360 | fi | |
a72a4bfa VS |
4361 | |
4362 | ||
4363 | eval "$ac_cv_use_mslu" | |
4364 | if test "$no_cache" != 1; then | |
4365 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
4366 | fi | |
4367 | ||
4368 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
a0b9e27f | 4369 | echo "$ac_t""yes" 1>&6 |
a72a4bfa | 4370 | else |
a0b9e27f | 4371 | echo "$ac_t""no" 1>&6 |
a72a4bfa | 4372 | fi |
a0b9e27f | 4373 | |
a72a4bfa | 4374 | |
5005acfe VZ |
4375 | enablestring= |
4376 | echo $ac_n "checking for --${enablestring:-enable}-wxprintfv""... $ac_c" 1>&6 | |
3c907f20 | 4377 | echo "configure:4378: checking for --${enablestring:-enable}-wxprintfv" >&5 |
1e6feb95 VZ |
4378 | no_cache=0 |
4379 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
4380 | if test "${enable_wxprintfv+set}" = set; then | |
4381 | enableval="$enable_wxprintfv" | |
a0b9e27f | 4382 | |
1e6feb95 | 4383 | if test "$enableval" = yes; then |
10f2d63a VZ |
4384 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
4385 | else | |
4386 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
4387 | fi | |
a0b9e27f | 4388 | |
10f2d63a | 4389 | else |
a0b9e27f | 4390 | |
10f2d63a VZ |
4391 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
4392 | if test "x$LINE" != x ; then | |
4393 | eval "DEFAULT_$LINE" | |
4394 | else | |
4395 | no_cache=1 | |
4396 | fi | |
4397 | ||
4398 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
a0b9e27f MB |
4399 | |
4400 | fi | |
10f2d63a VZ |
4401 | |
4402 | ||
4403 | eval "$ac_cv_use_wxprintfv" | |
4404 | if test "$no_cache" != 1; then | |
4405 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
4406 | fi | |
4407 | ||
4408 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
a0b9e27f | 4409 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4410 | else |
a0b9e27f | 4411 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4412 | fi |
a0b9e27f | 4413 | |
10f2d63a | 4414 | |
5005acfe VZ |
4415 | enablestring= |
4416 | echo $ac_n "checking for --${enablestring:-enable}-std_iostreams""... $ac_c" 1>&6 | |
3c907f20 | 4417 | echo "configure:4418: checking for --${enablestring:-enable}-std_iostreams" >&5 |
10f2d63a VZ |
4418 | no_cache=0 |
4419 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
4420 | if test "${enable_std_iostreams+set}" = set; then | |
4421 | enableval="$enable_std_iostreams" | |
a0b9e27f | 4422 | |
10f2d63a VZ |
4423 | if test "$enableval" = yes; then |
4424 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
4425 | else | |
4426 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
4427 | fi | |
a0b9e27f | 4428 | |
10f2d63a | 4429 | else |
a0b9e27f | 4430 | |
10f2d63a VZ |
4431 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
4432 | if test "x$LINE" != x ; then | |
4433 | eval "DEFAULT_$LINE" | |
4434 | else | |
4435 | no_cache=1 | |
4436 | fi | |
4437 | ||
4438 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
a0b9e27f MB |
4439 | |
4440 | fi | |
10f2d63a VZ |
4441 | |
4442 | ||
4443 | eval "$ac_cv_use_std_iostreams" | |
4444 | if test "$no_cache" != 1; then | |
4445 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
4446 | fi | |
4447 | ||
4448 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
a0b9e27f | 4449 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4450 | else |
a0b9e27f | 4451 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4452 | fi |
a0b9e27f | 4453 | |
10f2d63a | 4454 | |
5005acfe VZ |
4455 | enablestring= |
4456 | echo $ac_n "checking for --${enablestring:-enable}-filesystem""... $ac_c" 1>&6 | |
3c907f20 | 4457 | echo "configure:4458: checking for --${enablestring:-enable}-filesystem" >&5 |
24528b0c VS |
4458 | no_cache=0 |
4459 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
4460 | if test "${enable_filesystem+set}" = set; then | |
4461 | enableval="$enable_filesystem" | |
a0b9e27f | 4462 | |
24528b0c VS |
4463 | if test "$enableval" = yes; then |
4464 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
4465 | else | |
4466 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
4467 | fi | |
a0b9e27f | 4468 | |
24528b0c | 4469 | else |
a0b9e27f | 4470 | |
24528b0c VS |
4471 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
4472 | if test "x$LINE" != x ; then | |
4473 | eval "DEFAULT_$LINE" | |
4474 | else | |
4475 | no_cache=1 | |
4476 | fi | |
4477 | ||
4478 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
a0b9e27f MB |
4479 | |
4480 | fi | |
24528b0c VS |
4481 | |
4482 | ||
4483 | eval "$ac_cv_use_filesystem" | |
4484 | if test "$no_cache" != 1; then | |
4485 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
4486 | fi | |
4487 | ||
4488 | if test "$wxUSE_FILESYSTEM" = yes; then | |
a0b9e27f | 4489 | echo "$ac_t""yes" 1>&6 |
24528b0c | 4490 | else |
a0b9e27f | 4491 | echo "$ac_t""no" 1>&6 |
24528b0c | 4492 | fi |
a0b9e27f | 4493 | |
24528b0c | 4494 | |
5005acfe VZ |
4495 | enablestring= |
4496 | echo $ac_n "checking for --${enablestring:-enable}-fs_inet""... $ac_c" 1>&6 | |
3c907f20 | 4497 | echo "configure:4498: checking for --${enablestring:-enable}-fs_inet" >&5 |
10f2d63a VZ |
4498 | no_cache=0 |
4499 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
4500 | if test "${enable_fs_inet+set}" = set; then | |
4501 | enableval="$enable_fs_inet" | |
a0b9e27f | 4502 | |
10f2d63a VZ |
4503 | if test "$enableval" = yes; then |
4504 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
4505 | else | |
4506 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
4507 | fi | |
a0b9e27f | 4508 | |
10f2d63a | 4509 | else |
a0b9e27f | 4510 | |
10f2d63a VZ |
4511 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
4512 | if test "x$LINE" != x ; then | |
4513 | eval "DEFAULT_$LINE" | |
4514 | else | |
4515 | no_cache=1 | |
4516 | fi | |
4517 | ||
4518 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
a0b9e27f MB |
4519 | |
4520 | fi | |
10f2d63a VZ |
4521 | |
4522 | ||
4523 | eval "$ac_cv_use_fs_inet" | |
4524 | if test "$no_cache" != 1; then | |
4525 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
4526 | fi | |
4527 | ||
4528 | if test "$wxUSE_FS_INET" = yes; then | |
a0b9e27f | 4529 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4530 | else |
a0b9e27f | 4531 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4532 | fi |
a0b9e27f | 4533 | |
10f2d63a | 4534 | |
5005acfe VZ |
4535 | enablestring= |
4536 | echo $ac_n "checking for --${enablestring:-enable}-fs_zip""... $ac_c" 1>&6 | |
3c907f20 | 4537 | echo "configure:4538: checking for --${enablestring:-enable}-fs_zip" >&5 |
10f2d63a VZ |
4538 | no_cache=0 |
4539 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
4540 | if test "${enable_fs_zip+set}" = set; then | |
4541 | enableval="$enable_fs_zip" | |
a0b9e27f | 4542 | |
10f2d63a VZ |
4543 | if test "$enableval" = yes; then |
4544 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
4545 | else | |
4546 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
4547 | fi | |
a0b9e27f | 4548 | |
10f2d63a | 4549 | else |
a0b9e27f | 4550 | |
10f2d63a VZ |
4551 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
4552 | if test "x$LINE" != x ; then | |
4553 | eval "DEFAULT_$LINE" | |
4554 | else | |
4555 | no_cache=1 | |
4556 | fi | |
4557 | ||
4558 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
a0b9e27f MB |
4559 | |
4560 | fi | |
10f2d63a VZ |
4561 | |
4562 | ||
4563 | eval "$ac_cv_use_fs_zip" | |
4564 | if test "$no_cache" != 1; then | |
4565 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
4566 | fi | |
4567 | ||
4568 | if test "$wxUSE_FS_ZIP" = yes; then | |
a0b9e27f | 4569 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4570 | else |
a0b9e27f | 4571 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4572 | fi |
a0b9e27f | 4573 | |
10f2d63a | 4574 | |
5005acfe VZ |
4575 | enablestring= |
4576 | echo $ac_n "checking for --${enablestring:-enable}-zipstream""... $ac_c" 1>&6 | |
3c907f20 | 4577 | echo "configure:4578: checking for --${enablestring:-enable}-zipstream" >&5 |
10f2d63a VZ |
4578 | no_cache=0 |
4579 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
4580 | if test "${enable_zipstream+set}" = set; then | |
4581 | enableval="$enable_zipstream" | |
a0b9e27f | 4582 | |
10f2d63a VZ |
4583 | if test "$enableval" = yes; then |
4584 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
4585 | else | |
4586 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
4587 | fi | |
a0b9e27f | 4588 | |
10f2d63a | 4589 | else |
a0b9e27f | 4590 | |
10f2d63a VZ |
4591 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
4592 | if test "x$LINE" != x ; then | |
4593 | eval "DEFAULT_$LINE" | |
4594 | else | |
4595 | no_cache=1 | |
4596 | fi | |
4597 | ||
4598 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
a0b9e27f MB |
4599 | |
4600 | fi | |
10f2d63a VZ |
4601 | |
4602 | ||
4603 | eval "$ac_cv_use_zipstream" | |
4604 | if test "$no_cache" != 1; then | |
4605 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4606 | fi | |
4607 | ||
4608 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
a0b9e27f | 4609 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4610 | else |
a0b9e27f | 4611 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4612 | fi |
a0b9e27f | 4613 | |
8284b0c5 | 4614 | |
52127426 | 4615 | |
5005acfe VZ |
4616 | enablestring= |
4617 | echo $ac_n "checking for --${enablestring:-enable}-catch_segvs""... $ac_c" 1>&6 | |
3c907f20 | 4618 | echo "configure:4619: checking for --${enablestring:-enable}-catch_segvs" >&5 |
eb4efbdc VZ |
4619 | no_cache=0 |
4620 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4621 | if test "${enable_catch_segvs+set}" = set; then | |
4622 | enableval="$enable_catch_segvs" | |
a0b9e27f | 4623 | |
eb4efbdc VZ |
4624 | if test "$enableval" = yes; then |
4625 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4626 | else | |
4627 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4628 | fi | |
a0b9e27f | 4629 | |
eb4efbdc | 4630 | else |
a0b9e27f | 4631 | |
eb4efbdc VZ |
4632 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4633 | if test "x$LINE" != x ; then | |
4634 | eval "DEFAULT_$LINE" | |
4635 | else | |
4636 | no_cache=1 | |
4637 | fi | |
4638 | ||
4639 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
a0b9e27f MB |
4640 | |
4641 | fi | |
eb4efbdc VZ |
4642 | |
4643 | ||
4644 | eval "$ac_cv_use_catch_segvs" | |
4645 | if test "$no_cache" != 1; then | |
4646 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4647 | fi | |
4648 | ||
4649 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
a0b9e27f | 4650 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4651 | else |
a0b9e27f | 4652 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4653 | fi |
a0b9e27f | 4654 | |
eb4efbdc | 4655 | |
5005acfe VZ |
4656 | enablestring= |
4657 | echo $ac_n "checking for --${enablestring:-enable}-snglinst""... $ac_c" 1>&6 | |
3c907f20 | 4658 | echo "configure:4659: checking for --${enablestring:-enable}-snglinst" >&5 |
4f3c5f06 VZ |
4659 | no_cache=0 |
4660 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4661 | if test "${enable_snglinst+set}" = set; then | |
4662 | enableval="$enable_snglinst" | |
a0b9e27f | 4663 | |
4f3c5f06 VZ |
4664 | if test "$enableval" = yes; then |
4665 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4666 | else | |
4667 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4668 | fi | |
a0b9e27f | 4669 | |
4f3c5f06 | 4670 | else |
a0b9e27f | 4671 | |
4f3c5f06 VZ |
4672 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4673 | if test "x$LINE" != x ; then | |
4674 | eval "DEFAULT_$LINE" | |
4675 | else | |
4676 | no_cache=1 | |
4677 | fi | |
4678 | ||
4679 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
a0b9e27f MB |
4680 | |
4681 | fi | |
4f3c5f06 VZ |
4682 | |
4683 | ||
4684 | eval "$ac_cv_use_snglinst" | |
4685 | if test "$no_cache" != 1; then | |
4686 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4687 | fi | |
4688 | ||
4689 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
a0b9e27f | 4690 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4691 | else |
a0b9e27f | 4692 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4693 | fi |
a0b9e27f | 4694 | |
52127426 | 4695 | |
8284b0c5 | 4696 | |
5005acfe VZ |
4697 | enablestring= |
4698 | echo $ac_n "checking for --${enablestring:-enable}-mimetype""... $ac_c" 1>&6 | |
3c907f20 | 4699 | echo "configure:4700: checking for --${enablestring:-enable}-mimetype" >&5 |
1e6feb95 VZ |
4700 | no_cache=0 |
4701 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4702 | if test "${enable_mimetype+set}" = set; then | |
4703 | enableval="$enable_mimetype" | |
a0b9e27f | 4704 | |
1e6feb95 VZ |
4705 | if test "$enableval" = yes; then |
4706 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4707 | else | |
4708 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4709 | fi | |
a0b9e27f | 4710 | |
1e6feb95 | 4711 | else |
a0b9e27f | 4712 | |
1e6feb95 VZ |
4713 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` |
4714 | if test "x$LINE" != x ; then | |
4715 | eval "DEFAULT_$LINE" | |
4716 | else | |
4717 | no_cache=1 | |
4718 | fi | |
4719 | ||
4720 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
a0b9e27f MB |
4721 | |
4722 | fi | |
1e6feb95 VZ |
4723 | |
4724 | ||
4725 | eval "$ac_cv_use_mimetype" | |
4726 | if test "$no_cache" != 1; then | |
4727 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4728 | fi | |
4729 | ||
4730 | if test "$wxUSE_MIMETYPE" = yes; then | |
a0b9e27f | 4731 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 4732 | else |
a0b9e27f | 4733 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 4734 | fi |
a0b9e27f | 4735 | |
1e6feb95 | 4736 | |
5005acfe VZ |
4737 | enablestring= |
4738 | echo $ac_n "checking for --${enablestring:-enable}-system_options""... $ac_c" 1>&6 | |
3c907f20 | 4739 | echo "configure:4740: checking for --${enablestring:-enable}-system_options" >&5 |
3e44f09d VZ |
4740 | no_cache=0 |
4741 | # Check whether --enable-system_options or --disable-system_options was given. | |
4742 | if test "${enable_system_options+set}" = set; then | |
4743 | enableval="$enable_system_options" | |
a0b9e27f | 4744 | |
3e44f09d VZ |
4745 | if test "$enableval" = yes; then |
4746 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
4747 | else | |
4748 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
4749 | fi | |
a0b9e27f | 4750 | |
3e44f09d | 4751 | else |
a0b9e27f | 4752 | |
3e44f09d VZ |
4753 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` |
4754 | if test "x$LINE" != x ; then | |
4755 | eval "DEFAULT_$LINE" | |
4756 | else | |
4757 | no_cache=1 | |
4758 | fi | |
4759 | ||
4760 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
a0b9e27f MB |
4761 | |
4762 | fi | |
3e44f09d VZ |
4763 | |
4764 | ||
4765 | eval "$ac_cv_use_system_options" | |
4766 | if test "$no_cache" != 1; then | |
4767 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
4768 | fi | |
4769 | ||
4770 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
a0b9e27f | 4771 | echo "$ac_t""yes" 1>&6 |
3e44f09d | 4772 | else |
a0b9e27f | 4773 | echo "$ac_t""no" 1>&6 |
3e44f09d | 4774 | fi |
a0b9e27f | 4775 | |
8284b0c5 | 4776 | |
52127426 | 4777 | |
5005acfe VZ |
4778 | enablestring= |
4779 | echo $ac_n "checking for --${enablestring:-enable}-url""... $ac_c" 1>&6 | |
3c907f20 | 4780 | echo "configure:4781: checking for --${enablestring:-enable}-url" >&5 |
4cdb0ab0 VS |
4781 | no_cache=0 |
4782 | # Check whether --enable-url or --disable-url was given. | |
4783 | if test "${enable_url+set}" = set; then | |
4784 | enableval="$enable_url" | |
a0b9e27f | 4785 | |
4cdb0ab0 VS |
4786 | if test "$enableval" = yes; then |
4787 | ac_cv_use_url='wxUSE_URL=yes' | |
4788 | else | |
4789 | ac_cv_use_url='wxUSE_URL=no' | |
4790 | fi | |
a0b9e27f | 4791 | |
4cdb0ab0 | 4792 | else |
a0b9e27f | 4793 | |
4cdb0ab0 VS |
4794 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` |
4795 | if test "x$LINE" != x ; then | |
4796 | eval "DEFAULT_$LINE" | |
4797 | else | |
4798 | no_cache=1 | |
4799 | fi | |
4800 | ||
4801 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
a0b9e27f MB |
4802 | |
4803 | fi | |
4cdb0ab0 VS |
4804 | |
4805 | ||
4806 | eval "$ac_cv_use_url" | |
4807 | if test "$no_cache" != 1; then | |
4808 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
4809 | fi | |
4810 | ||
4811 | if test "$wxUSE_URL" = yes; then | |
a0b9e27f | 4812 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4813 | else |
a0b9e27f | 4814 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4815 | fi |
a0b9e27f | 4816 | |
4cdb0ab0 | 4817 | |
5005acfe VZ |
4818 | enablestring= |
4819 | echo $ac_n "checking for --${enablestring:-enable}-protocol""... $ac_c" 1>&6 | |
3c907f20 | 4820 | echo "configure:4821: checking for --${enablestring:-enable}-protocol" >&5 |
4cdb0ab0 VS |
4821 | no_cache=0 |
4822 | # Check whether --enable-protocol or --disable-protocol was given. | |
4823 | if test "${enable_protocol+set}" = set; then | |
4824 | enableval="$enable_protocol" | |
a0b9e27f | 4825 | |
4cdb0ab0 VS |
4826 | if test "$enableval" = yes; then |
4827 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
4828 | else | |
4829 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
4830 | fi | |
a0b9e27f | 4831 | |
4cdb0ab0 | 4832 | else |
a0b9e27f | 4833 | |
4cdb0ab0 VS |
4834 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
4835 | if test "x$LINE" != x ; then | |
4836 | eval "DEFAULT_$LINE" | |
4837 | else | |
4838 | no_cache=1 | |
4839 | fi | |
4840 | ||
4841 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
a0b9e27f MB |
4842 | |
4843 | fi | |
4cdb0ab0 VS |
4844 | |
4845 | ||
4846 | eval "$ac_cv_use_protocol" | |
4847 | if test "$no_cache" != 1; then | |
4848 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
4849 | fi | |
4850 | ||
4851 | if test "$wxUSE_PROTOCOL" = yes; then | |
a0b9e27f | 4852 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4853 | else |
a0b9e27f | 4854 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4855 | fi |
a0b9e27f | 4856 | |
4cdb0ab0 | 4857 | |
5005acfe VZ |
4858 | enablestring= |
4859 | echo $ac_n "checking for --${enablestring:-enable}-protocol_http""... $ac_c" 1>&6 | |
3c907f20 | 4860 | echo "configure:4861: checking for --${enablestring:-enable}-protocol_http" >&5 |
4cdb0ab0 VS |
4861 | no_cache=0 |
4862 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
4863 | if test "${enable_protocol_http+set}" = set; then | |
4864 | enableval="$enable_protocol_http" | |
a0b9e27f | 4865 | |
4cdb0ab0 VS |
4866 | if test "$enableval" = yes; then |
4867 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
4868 | else | |
4869 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
4870 | fi | |
a0b9e27f | 4871 | |
4cdb0ab0 | 4872 | else |
a0b9e27f | 4873 | |
4cdb0ab0 VS |
4874 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
4875 | if test "x$LINE" != x ; then | |
4876 | eval "DEFAULT_$LINE" | |
4877 | else | |
4878 | no_cache=1 | |
4879 | fi | |
4880 | ||
4881 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
a0b9e27f MB |
4882 | |
4883 | fi | |
4cdb0ab0 VS |
4884 | |
4885 | ||
4886 | eval "$ac_cv_use_protocol_http" | |
4887 | if test "$no_cache" != 1; then | |
4888 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
4889 | fi | |
4890 | ||
4891 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
a0b9e27f | 4892 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4893 | else |
a0b9e27f | 4894 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4895 | fi |
a0b9e27f | 4896 | |
4cdb0ab0 | 4897 | |
5005acfe VZ |
4898 | enablestring= |
4899 | echo $ac_n "checking for --${enablestring:-enable}-protocol_ftp""... $ac_c" 1>&6 | |
3c907f20 | 4900 | echo "configure:4901: checking for --${enablestring:-enable}-protocol_ftp" >&5 |
4cdb0ab0 VS |
4901 | no_cache=0 |
4902 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
4903 | if test "${enable_protocol_ftp+set}" = set; then | |
4904 | enableval="$enable_protocol_ftp" | |
a0b9e27f | 4905 | |
4cdb0ab0 VS |
4906 | if test "$enableval" = yes; then |
4907 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4908 | else | |
4909 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
4910 | fi | |
a0b9e27f | 4911 | |
4cdb0ab0 | 4912 | else |
a0b9e27f | 4913 | |
4cdb0ab0 VS |
4914 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
4915 | if test "x$LINE" != x ; then | |
4916 | eval "DEFAULT_$LINE" | |
4917 | else | |
4918 | no_cache=1 | |
4919 | fi | |
4920 | ||
4921 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
a0b9e27f MB |
4922 | |
4923 | fi | |
4cdb0ab0 VS |
4924 | |
4925 | ||
4926 | eval "$ac_cv_use_protocol_ftp" | |
4927 | if test "$no_cache" != 1; then | |
4928 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
4929 | fi | |
4930 | ||
4931 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
a0b9e27f | 4932 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4933 | else |
a0b9e27f | 4934 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4935 | fi |
a0b9e27f | 4936 | |
4cdb0ab0 | 4937 | |
5005acfe VZ |
4938 | enablestring= |
4939 | echo $ac_n "checking for --${enablestring:-enable}-protocol_file""... $ac_c" 1>&6 | |
3c907f20 | 4940 | echo "configure:4941: checking for --${enablestring:-enable}-protocol_file" >&5 |
4cdb0ab0 VS |
4941 | no_cache=0 |
4942 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
4943 | if test "${enable_protocol_file+set}" = set; then | |
4944 | enableval="$enable_protocol_file" | |
a0b9e27f | 4945 | |
4cdb0ab0 VS |
4946 | if test "$enableval" = yes; then |
4947 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
4948 | else | |
4949 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
4950 | fi | |
a0b9e27f | 4951 | |
4cdb0ab0 | 4952 | else |
a0b9e27f | 4953 | |
4cdb0ab0 VS |
4954 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
4955 | if test "x$LINE" != x ; then | |
4956 | eval "DEFAULT_$LINE" | |
4957 | else | |
4958 | no_cache=1 | |
4959 | fi | |
4960 | ||
4961 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
a0b9e27f MB |
4962 | |
4963 | fi | |
4cdb0ab0 VS |
4964 | |
4965 | ||
4966 | eval "$ac_cv_use_protocol_file" | |
4967 | if test "$no_cache" != 1; then | |
4968 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
4969 | fi | |
4970 | ||
4971 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
a0b9e27f | 4972 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4973 | else |
a0b9e27f | 4974 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4975 | fi |
a0b9e27f | 4976 | |
52127426 | 4977 | |
8284b0c5 MB |
4978 | |
4979 | ||
4980 | ||
5005acfe VZ |
4981 | enablestring= |
4982 | echo $ac_n "checking for --${enablestring:-enable}-threads""... $ac_c" 1>&6 | |
3c907f20 | 4983 | echo "configure:4984: checking for --${enablestring:-enable}-threads" >&5 |
10f2d63a VZ |
4984 | no_cache=0 |
4985 | # Check whether --enable-threads or --disable-threads was given. | |
4986 | if test "${enable_threads+set}" = set; then | |
4987 | enableval="$enable_threads" | |
a0b9e27f | 4988 | |
10f2d63a VZ |
4989 | if test "$enableval" = yes; then |
4990 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4991 | else | |
4992 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4993 | fi | |
a0b9e27f | 4994 | |
10f2d63a | 4995 | else |
a0b9e27f | 4996 | |
10f2d63a VZ |
4997 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
4998 | if test "x$LINE" != x ; then | |
4999 | eval "DEFAULT_$LINE" | |
5000 | else | |
5001 | no_cache=1 | |
5002 | fi | |
5003 | ||
5004 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
a0b9e27f MB |
5005 | |
5006 | fi | |
10f2d63a VZ |
5007 | |
5008 | ||
5009 | eval "$ac_cv_use_threads" | |
5010 | if test "$no_cache" != 1; then | |
5011 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
5012 | fi | |
5013 | ||
5014 | if test "$wxUSE_THREADS" = yes; then | |
a0b9e27f | 5015 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5016 | else |
a0b9e27f | 5017 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5018 | fi |
a0b9e27f | 5019 | |
10f2d63a | 5020 | |
b12915c1 VZ |
5021 | if test "$wxUSE_GUI" = "yes"; then |
5022 | ||
8284b0c5 MB |
5023 | |
5024 | ||
5005acfe VZ |
5025 | enablestring= |
5026 | echo $ac_n "checking for --${enablestring:-enable}-docview""... $ac_c" 1>&6 | |
3c907f20 | 5027 | echo "configure:5028: checking for --${enablestring:-enable}-docview" >&5 |
10f2d63a VZ |
5028 | no_cache=0 |
5029 | # Check whether --enable-docview or --disable-docview was given. | |
5030 | if test "${enable_docview+set}" = set; then | |
5031 | enableval="$enable_docview" | |
a0b9e27f | 5032 | |
10f2d63a VZ |
5033 | if test "$enableval" = yes; then |
5034 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
5035 | else | |
5036 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
5037 | fi | |
a0b9e27f | 5038 | |
10f2d63a | 5039 | else |
a0b9e27f | 5040 | |
10f2d63a VZ |
5041 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
5042 | if test "x$LINE" != x ; then | |
5043 | eval "DEFAULT_$LINE" | |
5044 | else | |
5045 | no_cache=1 | |
5046 | fi | |
5047 | ||
5048 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
a0b9e27f MB |
5049 | |
5050 | fi | |
10f2d63a VZ |
5051 | |
5052 | ||
5053 | eval "$ac_cv_use_docview" | |
5054 | if test "$no_cache" != 1; then | |
5055 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
5056 | fi | |
5057 | ||
5058 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
a0b9e27f | 5059 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5060 | else |
a0b9e27f | 5061 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5062 | fi |
a0b9e27f | 5063 | |
10f2d63a | 5064 | |
5005acfe VZ |
5065 | enablestring= |
5066 | echo $ac_n "checking for --${enablestring:-enable}-help""... $ac_c" 1>&6 | |
3c907f20 | 5067 | echo "configure:5068: checking for --${enablestring:-enable}-help" >&5 |
10f2d63a VZ |
5068 | no_cache=0 |
5069 | # Check whether --enable-help or --disable-help was given. | |
5070 | if test "${enable_help+set}" = set; then | |
5071 | enableval="$enable_help" | |
a0b9e27f | 5072 | |
10f2d63a VZ |
5073 | if test "$enableval" = yes; then |
5074 | ac_cv_use_help='wxUSE_HELP=yes' | |
5075 | else | |
5076 | ac_cv_use_help='wxUSE_HELP=no' | |
5077 | fi | |
a0b9e27f | 5078 | |
10f2d63a | 5079 | else |
a0b9e27f | 5080 | |
10f2d63a VZ |
5081 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
5082 | if test "x$LINE" != x ; then | |
5083 | eval "DEFAULT_$LINE" | |
5084 | else | |
5085 | no_cache=1 | |
5086 | fi | |
5087 | ||
5088 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
a0b9e27f MB |
5089 | |
5090 | fi | |
10f2d63a VZ |
5091 | |
5092 | ||
5093 | eval "$ac_cv_use_help" | |
5094 | if test "$no_cache" != 1; then | |
5095 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
5096 | fi | |
5097 | ||
5098 | if test "$wxUSE_HELP" = yes; then | |
a0b9e27f | 5099 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5100 | else |
a0b9e27f | 5101 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5102 | fi |
a0b9e27f | 5103 | |
10f2d63a | 5104 | |
5005acfe VZ |
5105 | enablestring= |
5106 | echo $ac_n "checking for --${enablestring:-enable}-mshtmlhelp""... $ac_c" 1>&6 | |
3c907f20 | 5107 | echo "configure:5108: checking for --${enablestring:-enable}-mshtmlhelp" >&5 |
29fd3c0c VS |
5108 | no_cache=0 |
5109 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
5110 | if test "${enable_mshtmlhelp+set}" = set; then | |
5111 | enableval="$enable_mshtmlhelp" | |
a0b9e27f | 5112 | |
29fd3c0c VS |
5113 | if test "$enableval" = yes; then |
5114 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
5115 | else | |
5116 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
5117 | fi | |
a0b9e27f | 5118 | |
29fd3c0c | 5119 | else |
a0b9e27f | 5120 | |
29fd3c0c VS |
5121 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` |
5122 | if test "x$LINE" != x ; then | |
5123 | eval "DEFAULT_$LINE" | |
5124 | else | |
5125 | no_cache=1 | |
5126 | fi | |
5127 | ||
5128 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
a0b9e27f MB |
5129 | |
5130 | fi | |
29fd3c0c VS |
5131 | |
5132 | ||
5133 | eval "$ac_cv_use_mshtmlhelp" | |
5134 | if test "$no_cache" != 1; then | |
5135 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
5136 | fi | |
5137 | ||
5138 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
a0b9e27f | 5139 | echo "$ac_t""yes" 1>&6 |
29fd3c0c | 5140 | else |
a0b9e27f | 5141 | echo "$ac_t""no" 1>&6 |
29fd3c0c | 5142 | fi |
a0b9e27f | 5143 | |
29fd3c0c | 5144 | |
5005acfe VZ |
5145 | enablestring= |
5146 | echo $ac_n "checking for --${enablestring:-enable}-html""... $ac_c" 1>&6 | |
3c907f20 | 5147 | echo "configure:5148: checking for --${enablestring:-enable}-html" >&5 |
3379ed37 VZ |
5148 | no_cache=0 |
5149 | # Check whether --enable-html or --disable-html was given. | |
5150 | if test "${enable_html+set}" = set; then | |
5151 | enableval="$enable_html" | |
a0b9e27f | 5152 | |
3379ed37 VZ |
5153 | if test "$enableval" = yes; then |
5154 | ac_cv_use_html='wxUSE_HTML=yes' | |
5155 | else | |
5156 | ac_cv_use_html='wxUSE_HTML=no' | |
5157 | fi | |
a0b9e27f | 5158 | |
3379ed37 | 5159 | else |
a0b9e27f | 5160 | |
3379ed37 VZ |
5161 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` |
5162 | if test "x$LINE" != x ; then | |
5163 | eval "DEFAULT_$LINE" | |
5164 | else | |
5165 | no_cache=1 | |
5166 | fi | |
5167 | ||
5168 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
a0b9e27f MB |
5169 | |
5170 | fi | |
3379ed37 VZ |
5171 | |
5172 | ||
5173 | eval "$ac_cv_use_html" | |
5174 | if test "$no_cache" != 1; then | |
5175 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
5176 | fi | |
5177 | ||
5178 | if test "$wxUSE_HTML" = yes; then | |
a0b9e27f | 5179 | echo "$ac_t""yes" 1>&6 |
3379ed37 | 5180 | else |
a0b9e27f | 5181 | echo "$ac_t""no" 1>&6 |
3379ed37 | 5182 | fi |
a0b9e27f | 5183 | |
3379ed37 | 5184 | |
5005acfe VZ |
5185 | enablestring= |
5186 | echo $ac_n "checking for --${enablestring:-enable}-htmlhelp""... $ac_c" 1>&6 | |
3c907f20 | 5187 | echo "configure:5188: checking for --${enablestring:-enable}-htmlhelp" >&5 |
3379ed37 VZ |
5188 | no_cache=0 |
5189 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
5190 | if test "${enable_htmlhelp+set}" = set; then | |
5191 | enableval="$enable_htmlhelp" | |
a0b9e27f | 5192 | |
3379ed37 VZ |
5193 | if test "$enableval" = yes; then |
5194 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
5195 | else | |
5196 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
5197 | fi | |
a0b9e27f | 5198 | |
3379ed37 | 5199 | else |
a0b9e27f | 5200 | |
3379ed37 VZ |
5201 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` |
5202 | if test "x$LINE" != x ; then | |
5203 | eval "DEFAULT_$LINE" | |
5204 | else | |
5205 | no_cache=1 | |
5206 | fi | |
5207 | ||
5208 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
a0b9e27f MB |
5209 | |
5210 | fi | |
3379ed37 VZ |
5211 | |
5212 | ||
5213 | eval "$ac_cv_use_htmlhelp" | |
5214 | if test "$no_cache" != 1; then | |
5215 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
5216 | fi | |
5217 | ||
5218 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
a0b9e27f | 5219 | echo "$ac_t""yes" 1>&6 |
3379ed37 | 5220 | else |
a0b9e27f | 5221 | echo "$ac_t""no" 1>&6 |
3379ed37 | 5222 | fi |
a0b9e27f | 5223 | |
3379ed37 | 5224 | |
5005acfe VZ |
5225 | enablestring= |
5226 | echo $ac_n "checking for --${enablestring:-enable}-constraints""... $ac_c" 1>&6 | |
3c907f20 | 5227 | echo "configure:5228: checking for --${enablestring:-enable}-constraints" >&5 |
10f2d63a VZ |
5228 | no_cache=0 |
5229 | # Check whether --enable-constraints or --disable-constraints was given. | |
5230 | if test "${enable_constraints+set}" = set; then | |
5231 | enableval="$enable_constraints" | |
a0b9e27f | 5232 | |
10f2d63a VZ |
5233 | if test "$enableval" = yes; then |
5234 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
5235 | else | |
5236 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
5237 | fi | |
a0b9e27f | 5238 | |
10f2d63a | 5239 | else |
a0b9e27f | 5240 | |
10f2d63a VZ |
5241 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
5242 | if test "x$LINE" != x ; then | |
5243 | eval "DEFAULT_$LINE" | |
5244 | else | |
5245 | no_cache=1 | |
5246 | fi | |
5247 | ||
5248 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
a0b9e27f MB |
5249 | |
5250 | fi | |
10f2d63a VZ |
5251 | |
5252 | ||
5253 | eval "$ac_cv_use_constraints" | |
5254 | if test "$no_cache" != 1; then | |
5255 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
5256 | fi | |
5257 | ||
5258 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
a0b9e27f | 5259 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5260 | else |
a0b9e27f | 5261 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5262 | fi |
a0b9e27f | 5263 | |
10f2d63a | 5264 | |
5005acfe VZ |
5265 | enablestring= |
5266 | echo $ac_n "checking for --${enablestring:-enable}-printarch""... $ac_c" 1>&6 | |
3c907f20 | 5267 | echo "configure:5268: checking for --${enablestring:-enable}-printarch" >&5 |
10f2d63a VZ |
5268 | no_cache=0 |
5269 | # Check whether --enable-printarch or --disable-printarch was given. | |
5270 | if test "${enable_printarch+set}" = set; then | |
5271 | enableval="$enable_printarch" | |
a0b9e27f | 5272 | |
10f2d63a VZ |
5273 | if test "$enableval" = yes; then |
5274 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
5275 | else | |
5276 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
5277 | fi | |
a0b9e27f | 5278 | |
10f2d63a | 5279 | else |
a0b9e27f | 5280 | |
10f2d63a VZ |
5281 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
5282 | if test "x$LINE" != x ; then | |
5283 | eval "DEFAULT_$LINE" | |
5284 | else | |
5285 | no_cache=1 | |
5286 | fi | |
5287 | ||
5288 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
a0b9e27f MB |
5289 | |
5290 | fi | |
10f2d63a VZ |
5291 | |
5292 | ||
5293 | eval "$ac_cv_use_printarch" | |
5294 | if test "$no_cache" != 1; then | |
5295 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
5296 | fi | |
5297 | ||
5298 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
a0b9e27f | 5299 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5300 | else |
a0b9e27f | 5301 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5302 | fi |
a0b9e27f | 5303 | |
10f2d63a | 5304 | |
5005acfe VZ |
5305 | enablestring= |
5306 | echo $ac_n "checking for --${enablestring:-enable}-mdi""... $ac_c" 1>&6 | |
3c907f20 | 5307 | echo "configure:5308: checking for --${enablestring:-enable}-mdi" >&5 |
10f2d63a VZ |
5308 | no_cache=0 |
5309 | # Check whether --enable-mdi or --disable-mdi was given. | |
5310 | if test "${enable_mdi+set}" = set; then | |
5311 | enableval="$enable_mdi" | |
a0b9e27f | 5312 | |
10f2d63a VZ |
5313 | if test "$enableval" = yes; then |
5314 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
5315 | else | |
5316 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
5317 | fi | |
a0b9e27f | 5318 | |
10f2d63a | 5319 | else |
a0b9e27f | 5320 | |
10f2d63a VZ |
5321 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
5322 | if test "x$LINE" != x ; then | |
5323 | eval "DEFAULT_$LINE" | |
5324 | else | |
5325 | no_cache=1 | |
5326 | fi | |
5327 | ||
5328 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
a0b9e27f MB |
5329 | |
5330 | fi | |
10f2d63a VZ |
5331 | |
5332 | ||
5333 | eval "$ac_cv_use_mdi" | |
5334 | if test "$no_cache" != 1; then | |
5335 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
5336 | fi | |
5337 | ||
5338 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
a0b9e27f | 5339 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5340 | else |
a0b9e27f | 5341 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5342 | fi |
a0b9e27f | 5343 | |
698dcdb6 | 5344 | |
5005acfe VZ |
5345 | enablestring= |
5346 | echo $ac_n "checking for --${enablestring:-enable}-loggui""... $ac_c" 1>&6 | |
3c907f20 | 5347 | echo "configure:5348: checking for --${enablestring:-enable}-loggui" >&5 |
1e6feb95 VZ |
5348 | no_cache=0 |
5349 | # Check whether --enable-loggui or --disable-loggui was given. | |
5350 | if test "${enable_loggui+set}" = set; then | |
5351 | enableval="$enable_loggui" | |
a0b9e27f | 5352 | |
1e6feb95 VZ |
5353 | if test "$enableval" = yes; then |
5354 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
5355 | else | |
5356 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
5357 | fi | |
a0b9e27f | 5358 | |
1e6feb95 | 5359 | else |
a0b9e27f | 5360 | |
1e6feb95 VZ |
5361 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` |
5362 | if test "x$LINE" != x ; then | |
5363 | eval "DEFAULT_$LINE" | |
5364 | else | |
5365 | no_cache=1 | |
5366 | fi | |
5367 | ||
5368 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
a0b9e27f MB |
5369 | |
5370 | fi | |
1e6feb95 VZ |
5371 | |
5372 | ||
5373 | eval "$ac_cv_use_loggui" | |
5374 | if test "$no_cache" != 1; then | |
5375 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
5376 | fi | |
5377 | ||
5378 | if test "$wxUSE_LOGGUI" = yes; then | |
a0b9e27f | 5379 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 5380 | else |
a0b9e27f | 5381 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 5382 | fi |
a0b9e27f | 5383 | |
1e6feb95 | 5384 | |
5005acfe VZ |
5385 | enablestring= |
5386 | echo $ac_n "checking for --${enablestring:-enable}-logwin""... $ac_c" 1>&6 | |
3c907f20 | 5387 | echo "configure:5388: checking for --${enablestring:-enable}-logwin" >&5 |
1e6feb95 VZ |
5388 | no_cache=0 |
5389 | # Check whether --enable-logwin or --disable-logwin was given. | |
5390 | if test "${enable_logwin+set}" = set; then | |
5391 | enableval="$enable_logwin" | |
a0b9e27f | 5392 | |
1e6feb95 VZ |
5393 | if test "$enableval" = yes; then |
5394 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
5395 | else | |
5396 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
5397 | fi | |
a0b9e27f | 5398 | |
1e6feb95 | 5399 | else |
a0b9e27f | 5400 | |
1e6feb95 VZ |
5401 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` |
5402 | if test "x$LINE" != x ; then | |
5403 | eval "DEFAULT_$LINE" | |
5404 | else | |
5405 | no_cache=1 | |
5406 | fi | |
5407 | ||
5408 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
a0b9e27f MB |
5409 | |
5410 | fi | |
1e6feb95 VZ |
5411 | |
5412 | ||
5413 | eval "$ac_cv_use_logwin" | |
5414 | if test "$no_cache" != 1; then | |
5415 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
5416 | fi | |
5417 | ||
5418 | if test "$wxUSE_LOGWINDOW" = yes; then | |
a0b9e27f | 5419 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 5420 | else |
a0b9e27f | 5421 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 5422 | fi |
a0b9e27f | 5423 | |
1e6feb95 | 5424 | |
5005acfe VZ |
5425 | enablestring= |
5426 | echo $ac_n "checking for --${enablestring:-enable}-logdialog""... $ac_c" 1>&6 | |
3c907f20 | 5427 | echo "configure:5428: checking for --${enablestring:-enable}-logdialog" >&5 |
69d27ff7 MB |
5428 | no_cache=0 |
5429 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
5430 | if test "${enable_logdialog+set}" = set; then | |
5431 | enableval="$enable_logdialog" | |
a0b9e27f | 5432 | |
69d27ff7 MB |
5433 | if test "$enableval" = yes; then |
5434 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
5435 | else | |
5436 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
5437 | fi | |
a0b9e27f | 5438 | |
69d27ff7 | 5439 | else |
a0b9e27f | 5440 | |
69d27ff7 MB |
5441 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` |
5442 | if test "x$LINE" != x ; then | |
5443 | eval "DEFAULT_$LINE" | |
5444 | else | |
5445 | no_cache=1 | |
5446 | fi | |
5447 | ||
5448 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
a0b9e27f MB |
5449 | |
5450 | fi | |
69d27ff7 MB |
5451 | |
5452 | ||
5453 | eval "$ac_cv_use_logdialog" | |
5454 | if test "$no_cache" != 1; then | |
5455 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
5456 | fi | |
5457 | ||
5458 | if test "$wxUSE_LOGDIALOG" = yes; then | |
a0b9e27f | 5459 | echo "$ac_t""yes" 1>&6 |
69d27ff7 | 5460 | else |
a0b9e27f | 5461 | echo "$ac_t""no" 1>&6 |
69d27ff7 | 5462 | fi |
a0b9e27f | 5463 | |
8284b0c5 | 5464 | |
52127426 | 5465 | |
5005acfe VZ |
5466 | enablestring= |
5467 | echo $ac_n "checking for --${enablestring:-enable}-postscript""... $ac_c" 1>&6 | |
3c907f20 | 5468 | echo "configure:5469: checking for --${enablestring:-enable}-postscript" >&5 |
10f2d63a VZ |
5469 | no_cache=0 |
5470 | # Check whether --enable-postscript or --disable-postscript was given. | |
5471 | if test "${enable_postscript+set}" = set; then | |
5472 | enableval="$enable_postscript" | |
a0b9e27f | 5473 | |
10f2d63a VZ |
5474 | if test "$enableval" = yes; then |
5475 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
5476 | else | |
5477 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
5478 | fi | |
a0b9e27f | 5479 | |
10f2d63a | 5480 | else |
a0b9e27f | 5481 | |
10f2d63a VZ |
5482 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
5483 | if test "x$LINE" != x ; then | |
5484 | eval "DEFAULT_$LINE" | |
5485 | else | |
5486 | no_cache=1 | |
5487 | fi | |
5488 | ||
5489 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
a0b9e27f MB |
5490 | |
5491 | fi | |
10f2d63a VZ |
5492 | |
5493 | ||
5494 | eval "$ac_cv_use_postscript" | |
5495 | if test "$no_cache" != 1; then | |
5496 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
5497 | fi | |
5498 | ||
5499 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
a0b9e27f | 5500 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5501 | else |
a0b9e27f | 5502 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5503 | fi |
a0b9e27f | 5504 | |
8284b0c5 MB |
5505 | |
5506 | ||
52127426 | 5507 | |
8284b0c5 | 5508 | |
5005acfe | 5509 | enablestring= |
3c907f20 VZ |
5510 | echo $ac_n "checking for --${enablestring:-enable}-prologio""... $ac_c" 1>&6 |
5511 | echo "configure:5512: checking for --${enablestring:-enable}-prologio" >&5 | |
10f2d63a | 5512 | no_cache=0 |
3c907f20 VZ |
5513 | # Check whether --enable-prologio or --disable-prologio was given. |
5514 | if test "${enable_prologio+set}" = set; then | |
5515 | enableval="$enable_prologio" | |
a0b9e27f | 5516 | |
10f2d63a | 5517 | if test "$enableval" = yes; then |
3c907f20 | 5518 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' |
10f2d63a | 5519 | else |
3c907f20 | 5520 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' |
10f2d63a | 5521 | fi |
a0b9e27f | 5522 | |
10f2d63a | 5523 | else |
a0b9e27f | 5524 | |
3c907f20 | 5525 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
10f2d63a VZ |
5526 | if test "x$LINE" != x ; then |
5527 | eval "DEFAULT_$LINE" | |
5528 | else | |
5529 | no_cache=1 | |
5530 | fi | |
5531 | ||
3c907f20 | 5532 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO |
a0b9e27f MB |
5533 | |
5534 | fi | |
10f2d63a VZ |
5535 | |
5536 | ||
3c907f20 | 5537 | eval "$ac_cv_use_prologio" |
10f2d63a | 5538 | if test "$no_cache" != 1; then |
3c907f20 | 5539 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5540 | fi |
5541 | ||
3c907f20 | 5542 | if test "$wxUSE_PROLOGIO" = yes; then |
a0b9e27f | 5543 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5544 | else |
a0b9e27f | 5545 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5546 | fi |
a0b9e27f | 5547 | |
8284b0c5 | 5548 | |
5005acfe | 5549 | enablestring= |
3c907f20 VZ |
5550 | echo $ac_n "checking for --${enablestring:-enable}-resources""... $ac_c" 1>&6 |
5551 | echo "configure:5552: checking for --${enablestring:-enable}-resources" >&5 | |
10f2d63a | 5552 | no_cache=0 |
3c907f20 VZ |
5553 | # Check whether --enable-resources or --disable-resources was given. |
5554 | if test "${enable_resources+set}" = set; then | |
5555 | enableval="$enable_resources" | |
a0b9e27f | 5556 | |
10f2d63a | 5557 | if test "$enableval" = yes; then |
3c907f20 | 5558 | ac_cv_use_resources='wxUSE_RESOURCES=yes' |
10f2d63a | 5559 | else |
3c907f20 | 5560 | ac_cv_use_resources='wxUSE_RESOURCES=no' |
10f2d63a | 5561 | fi |
a0b9e27f | 5562 | |
10f2d63a | 5563 | else |
a0b9e27f | 5564 | |
3c907f20 | 5565 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
10f2d63a VZ |
5566 | if test "x$LINE" != x ; then |
5567 | eval "DEFAULT_$LINE" | |
5568 | else | |
5569 | no_cache=1 | |
5570 | fi | |
5571 | ||
3c907f20 | 5572 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES |
a0b9e27f MB |
5573 | |
5574 | fi | |
10f2d63a VZ |
5575 | |
5576 | ||
3c907f20 | 5577 | eval "$ac_cv_use_resources" |
10f2d63a | 5578 | if test "$no_cache" != 1; then |
3c907f20 | 5579 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5580 | fi |
5581 | ||
3c907f20 | 5582 | if test "$wxUSE_RESOURCES" = yes; then |
a0b9e27f | 5583 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5584 | else |
a0b9e27f | 5585 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5586 | fi |
a0b9e27f | 5587 | |
8284b0c5 MB |
5588 | |
5589 | ||
52127426 | 5590 | |
5005acfe VZ |
5591 | enablestring= |
5592 | echo $ac_n "checking for --${enablestring:-enable}-clipboard""... $ac_c" 1>&6 | |
3c907f20 | 5593 | echo "configure:5594: checking for --${enablestring:-enable}-clipboard" >&5 |
10f2d63a VZ |
5594 | no_cache=0 |
5595 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
5596 | if test "${enable_clipboard+set}" = set; then | |
5597 | enableval="$enable_clipboard" | |
a0b9e27f | 5598 | |
10f2d63a VZ |
5599 | if test "$enableval" = yes; then |
5600 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
5601 | else | |
5602 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
5603 | fi | |
a0b9e27f | 5604 | |
10f2d63a | 5605 | else |
a0b9e27f | 5606 | |
10f2d63a VZ |
5607 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
5608 | if test "x$LINE" != x ; then | |
5609 | eval "DEFAULT_$LINE" | |
5610 | else | |
5611 | no_cache=1 | |
5612 | fi | |
5613 | ||
5614 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
a0b9e27f MB |
5615 | |
5616 | fi | |
10f2d63a VZ |
5617 | |
5618 | ||
5619 | eval "$ac_cv_use_clipboard" | |
5620 | if test "$no_cache" != 1; then | |
5621 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
5622 | fi | |
5623 | ||
5624 | if test "$wxUSE_CLIPBOARD" = yes; then | |
a0b9e27f | 5625 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5626 | else |
a0b9e27f | 5627 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5628 | fi |
a0b9e27f | 5629 | |
10f2d63a | 5630 | |
5005acfe VZ |
5631 | enablestring= |
5632 | echo $ac_n "checking for --${enablestring:-enable}-dnd""... $ac_c" 1>&6 | |
3c907f20 | 5633 | echo "configure:5634: checking for --${enablestring:-enable}-dnd" >&5 |
10f2d63a VZ |
5634 | no_cache=0 |
5635 | # Check whether --enable-dnd or --disable-dnd was given. | |
5636 | if test "${enable_dnd+set}" = set; then | |
5637 | enableval="$enable_dnd" | |
a0b9e27f | 5638 | |
10f2d63a VZ |
5639 | if test "$enableval" = yes; then |
5640 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
5641 | else | |
5642 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
5643 | fi | |
a0b9e27f | 5644 | |
10f2d63a | 5645 | else |
a0b9e27f | 5646 | |
10f2d63a VZ |
5647 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
5648 | if test "x$LINE" != x ; then | |
5649 | eval "DEFAULT_$LINE" | |
5650 | else | |
5651 | no_cache=1 | |
5652 | fi | |
5653 | ||
5654 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
a0b9e27f MB |
5655 | |
5656 | fi | |
10f2d63a VZ |
5657 | |
5658 | ||
5659 | eval "$ac_cv_use_dnd" | |
5660 | if test "$no_cache" != 1; then | |
5661 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
5662 | fi | |
5663 | ||
5664 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
a0b9e27f | 5665 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5666 | else |
a0b9e27f | 5667 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5668 | fi |
a0b9e27f | 5669 | |
10f2d63a | 5670 | |
5005acfe VZ |
5671 | enablestring= |
5672 | echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6 | |
3c907f20 | 5673 | echo "configure:5674: checking for --${enablestring:-enable}-metafile" >&5 |
b64f0a5f RL |
5674 | no_cache=0 |
5675 | # Check whether --enable-metafile or --disable-metafile was given. | |
5676 | if test "${enable_metafile+set}" = set; then | |
5677 | enableval="$enable_metafile" | |
a0b9e27f | 5678 | |
b64f0a5f RL |
5679 | if test "$enableval" = yes; then |
5680 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
5681 | else | |
5682 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
5683 | fi | |
a0b9e27f | 5684 | |
b64f0a5f | 5685 | else |
a0b9e27f | 5686 | |
b64f0a5f RL |
5687 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
5688 | if test "x$LINE" != x ; then | |
5689 | eval "DEFAULT_$LINE" | |
5690 | else | |
5691 | no_cache=1 | |
5692 | fi | |
5693 | ||
5694 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
a0b9e27f MB |
5695 | |
5696 | fi | |
b64f0a5f RL |
5697 | |
5698 | ||
5699 | eval "$ac_cv_use_metafile" | |
5700 | if test "$no_cache" != 1; then | |
5701 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
5702 | fi | |
5703 | ||
5704 | if test "$wxUSE_METAFILE" = yes; then | |
a0b9e27f | 5705 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 5706 | else |
a0b9e27f | 5707 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 5708 | fi |
a0b9e27f | 5709 | |
52127426 | 5710 | |
8284b0c5 | 5711 | |
52127426 | 5712 | |
8284b0c5 | 5713 | |
5005acfe VZ |
5714 | enablestring= |
5715 | echo $ac_n "checking for --${enablestring:-enable}-controls""... $ac_c" 1>&6 | |
3c907f20 | 5716 | echo "configure:5717: checking for --${enablestring:-enable}-controls" >&5 |
10f2d63a VZ |
5717 | no_cache=0 |
5718 | # Check whether --enable-controls or --disable-controls was given. | |
5719 | if test "${enable_controls+set}" = set; then | |
5720 | enableval="$enable_controls" | |
a0b9e27f | 5721 | |
10f2d63a VZ |
5722 | if test "$enableval" = yes; then |
5723 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
5724 | else | |
5725 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
5726 | fi | |
a0b9e27f | 5727 | |
10f2d63a | 5728 | else |
a0b9e27f | 5729 | |
10f2d63a VZ |
5730 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
5731 | if test "x$LINE" != x ; then | |
5732 | eval "DEFAULT_$LINE" | |
5733 | else | |
5734 | no_cache=1 | |
5735 | fi | |
5736 | ||
5737 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
a0b9e27f MB |
5738 | |
5739 | fi | |
10f2d63a VZ |
5740 | |
5741 | ||
5742 | eval "$ac_cv_use_controls" | |
5743 | if test "$no_cache" != 1; then | |
5744 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
5745 | fi | |
5746 | ||
5747 | if test "$wxUSE_CONTROLS" = yes; then | |
a0b9e27f | 5748 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5749 | else |
a0b9e27f | 5750 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5751 | fi |
a0b9e27f | 5752 | |
10f2d63a VZ |
5753 | |
5754 | if test "$wxUSE_CONTROLS" = "yes"; then | |
5755 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
5756 | DEFAULT_wxUSE_BMPBUTTON=yes |
5757 | DEFAULT_wxUSE_BUTTON=yes | |
5758 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5759 | DEFAULT_wxUSE_CARET=yes |
5760 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
5761 | DEFAULT_wxUSE_CHECKBOX=yes |
5762 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
5763 | DEFAULT_wxUSE_CHOICE=yes | |
5764 | DEFAULT_wxUSE_GAUGE=yes | |
5765 | DEFAULT_wxUSE_GRID=yes | |
10f2d63a VZ |
5766 | DEFAULT_wxUSE_IMAGLIST=yes |
5767 | DEFAULT_wxUSE_LISTBOX=yes | |
5768 | DEFAULT_wxUSE_LISTCTRL=yes | |
5769 | DEFAULT_wxUSE_NOTEBOOK=yes | |
5770 | DEFAULT_wxUSE_RADIOBOX=yes | |
5771 | DEFAULT_wxUSE_RADIOBTN=yes | |
5772 | DEFAULT_wxUSE_SASH=yes | |
5773 | DEFAULT_wxUSE_SCROLLBAR=yes | |
5774 | DEFAULT_wxUSE_SLIDER=yes | |
5775 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 5776 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
5777 | DEFAULT_wxUSE_SPLITTER=yes |
5778 | DEFAULT_wxUSE_STATBMP=yes | |
5779 | DEFAULT_wxUSE_STATBOX=yes | |
5780 | DEFAULT_wxUSE_STATLINE=yes | |
5781 | DEFAULT_wxUSE_STATUSBAR=yes | |
5782 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 5783 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 5784 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
5785 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
5786 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
5787 | DEFAULT_wxUSE_TOOLTIPS=yes |
5788 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 5789 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 5790 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
5791 | elif test "$wxUSE_CONTROLS" = "no"; then |
5792 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
5793 | DEFAULT_wxUSE_BMPBUTTON=no |
5794 | DEFAULT_wxUSE_BUTTON=no | |
5795 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5796 | DEFAULT_wxUSE_CARET=no |
5797 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
5798 | DEFAULT_wxUSE_CHECKBOX=no |
5799 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5800 | DEFAULT_wxUSE_CHOICE=no | |
5801 | DEFAULT_wxUSE_GAUGE=no | |
5802 | DEFAULT_wxUSE_GRID=no | |
10f2d63a VZ |
5803 | DEFAULT_wxUSE_IMAGLIST=no |
5804 | DEFAULT_wxUSE_LISTBOX=no | |
5805 | DEFAULT_wxUSE_LISTCTRL=no | |
5806 | DEFAULT_wxUSE_NOTEBOOK=no | |
5807 | DEFAULT_wxUSE_RADIOBOX=no | |
5808 | DEFAULT_wxUSE_RADIOBTN=no | |
5809 | DEFAULT_wxUSE_SASH=no | |
5810 | DEFAULT_wxUSE_SCROLLBAR=no | |
5811 | DEFAULT_wxUSE_SLIDER=no | |
5812 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 5813 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
5814 | DEFAULT_wxUSE_SPLITTER=no |
5815 | DEFAULT_wxUSE_STATBMP=no | |
5816 | DEFAULT_wxUSE_STATBOX=no | |
5817 | DEFAULT_wxUSE_STATLINE=no | |
5818 | DEFAULT_wxUSE_STATUSBAR=no | |
5819 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 5820 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 5821 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
5822 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
5823 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
5824 | DEFAULT_wxUSE_TOOLTIPS=no |
5825 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 5826 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 5827 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
5828 | fi |
5829 | ||
ac0c4cc3 DE |
5830 | ## FIXME: This is a blatant hack |
5831 | if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then | |
5832 | wxUSE_PRINTING_ARCHITECTURE=no | |
5833 | wxUSE_HELP=no | |
5834 | wxUSE_CLIPBOARD=no | |
5835 | wxUSE_DRAG_AND_DROP=no | |
5836 | wxUSE_DATAOBJ=no | |
8b389fab DE |
5837 | # Generic notebook requires tab dialog |
5838 | DEFAULT_wxUSE_TABDIALOG=yes | |
ac0c4cc3 | 5839 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
ac0c4cc3 DE |
5840 | DEFAULT_wxUSE_GAUGE=no |
5841 | DEFAULT_wxUSE_SCROLLBAR=no | |
5842 | DEFAULT_wxUSE_SLIDER=no | |
5843 | DEFAULT_wxUSE_COMBOBOX=no | |
5844 | DEFAULT_wxUSE_CALCTRL=no | |
5845 | DEFAULT_wxUSE_SPINBTN=no | |
5846 | DEFAULT_wxUSE_SPINCTRL=no | |
5847 | DEFAULT_wxUSE_TOOLTIPS=no | |
ac0c4cc3 | 5848 | DEFAULT_wxUSE_COLOURDLG=no |
ac0c4cc3 DE |
5849 | DEFAULT_wxUSE_DRAGIMAGE=no |
5850 | DEFAULT_wxUSE_FINDREPLDLG=no | |
5851 | DEFAULT_wxUSE_FONTDLG=no | |
5852 | DEFAULT_wxUSE_GRID=no | |
ac0c4cc3 DE |
5853 | DEFAULT_wxUSE_NUMBERDLG=no |
5854 | DEFAULT_wxUSE_PROGRESSDLG=no | |
ac0c4cc3 DE |
5855 | DEFAULT_wxUSE_SASH=no |
5856 | DEFAULT_wxUSE_SPLITTER=no | |
5857 | DEFAULT_wxUSE_WIZARDDLG=no | |
5858 | DEFAULT_wxUSE_SPLITTER=no | |
5859 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
ac0c4cc3 DE |
5860 | fi |
5861 | ||
8284b0c5 | 5862 | |
5005acfe VZ |
5863 | enablestring= |
5864 | echo $ac_n "checking for --${enablestring:-enable}-accel""... $ac_c" 1>&6 | |
8b389fab | 5865 | echo "configure:5866: checking for --${enablestring:-enable}-accel" >&5 |
10f2d63a VZ |
5866 | no_cache=0 |
5867 | # Check whether --enable-accel or --disable-accel was given. | |
5868 | if test "${enable_accel+set}" = set; then | |
5869 | enableval="$enable_accel" | |
a0b9e27f | 5870 | |
10f2d63a VZ |
5871 | if test "$enableval" = yes; then |
5872 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5873 | else | |
5874 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5875 | fi | |
a0b9e27f | 5876 | |
10f2d63a | 5877 | else |
a0b9e27f | 5878 | |
10f2d63a VZ |
5879 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
5880 | if test "x$LINE" != x ; then | |
5881 | eval "DEFAULT_$LINE" | |
5882 | else | |
5883 | no_cache=1 | |
5884 | fi | |
5885 | ||
5886 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
a0b9e27f MB |
5887 | |
5888 | fi | |
10f2d63a VZ |
5889 | |
5890 | ||
5891 | eval "$ac_cv_use_accel" | |
5892 | if test "$no_cache" != 1; then | |
5893 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5894 | fi | |
5895 | ||
5896 | if test "$wxUSE_ACCEL" = yes; then | |
a0b9e27f | 5897 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5898 | else |
a0b9e27f | 5899 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5900 | fi |
a0b9e27f | 5901 | |
10f2d63a | 5902 | |
5005acfe VZ |
5903 | enablestring= |
5904 | echo $ac_n "checking for --${enablestring:-enable}-button""... $ac_c" 1>&6 | |
8b389fab | 5905 | echo "configure:5906: checking for --${enablestring:-enable}-button" >&5 |
10f2d63a | 5906 | no_cache=0 |
1e6feb95 VZ |
5907 | # Check whether --enable-button or --disable-button was given. |
5908 | if test "${enable_button+set}" = set; then | |
5909 | enableval="$enable_button" | |
a0b9e27f | 5910 | |
10f2d63a | 5911 | if test "$enableval" = yes; then |
1e6feb95 | 5912 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 5913 | else |
1e6feb95 | 5914 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 5915 | fi |
a0b9e27f | 5916 | |
10f2d63a | 5917 | else |
a0b9e27f | 5918 | |
1e6feb95 | 5919 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
5920 | if test "x$LINE" != x ; then |
5921 | eval "DEFAULT_$LINE" | |
5922 | else | |
5923 | no_cache=1 | |
5924 | fi | |
5925 | ||
1e6feb95 | 5926 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
a0b9e27f MB |
5927 | |
5928 | fi | |
10f2d63a VZ |
5929 | |
5930 | ||
1e6feb95 | 5931 | eval "$ac_cv_use_button" |
10f2d63a | 5932 | if test "$no_cache" != 1; then |
1e6feb95 | 5933 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5934 | fi |
5935 | ||
1e6feb95 | 5936 | if test "$wxUSE_BUTTON" = yes; then |
a0b9e27f | 5937 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5938 | else |
a0b9e27f | 5939 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5940 | fi |
a0b9e27f | 5941 | |
10f2d63a | 5942 | |
5005acfe VZ |
5943 | enablestring= |
5944 | echo $ac_n "checking for --${enablestring:-enable}-bmpbutton""... $ac_c" 1>&6 | |
8b389fab | 5945 | echo "configure:5946: checking for --${enablestring:-enable}-bmpbutton" >&5 |
10f2d63a VZ |
5946 | no_cache=0 |
5947 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
5948 | if test "${enable_bmpbutton+set}" = set; then | |
5949 | enableval="$enable_bmpbutton" | |
a0b9e27f | 5950 | |
10f2d63a VZ |
5951 | if test "$enableval" = yes; then |
5952 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
5953 | else | |
5954 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
5955 | fi | |
a0b9e27f | 5956 | |
10f2d63a | 5957 | else |
a0b9e27f | 5958 | |
10f2d63a VZ |
5959 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
5960 | if test "x$LINE" != x ; then | |
5961 | eval "DEFAULT_$LINE" | |
5962 | else | |
5963 | no_cache=1 | |
5964 | fi | |
5965 | ||
5966 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
a0b9e27f MB |
5967 | |
5968 | fi | |
10f2d63a VZ |
5969 | |
5970 | ||
5971 | eval "$ac_cv_use_bmpbutton" | |
5972 | if test "$no_cache" != 1; then | |
5973 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5974 | fi | |
5975 | ||
5976 | if test "$wxUSE_BMPBUTTON" = yes; then | |
a0b9e27f | 5977 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5978 | else |
a0b9e27f | 5979 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5980 | fi |
a0b9e27f | 5981 | |
10f2d63a | 5982 | |
5005acfe VZ |
5983 | enablestring= |
5984 | echo $ac_n "checking for --${enablestring:-enable}-calendar""... $ac_c" 1>&6 | |
8b389fab | 5985 | echo "configure:5986: checking for --${enablestring:-enable}-calendar" >&5 |
1e6feb95 VZ |
5986 | no_cache=0 |
5987 | # Check whether --enable-calendar or --disable-calendar was given. | |
5988 | if test "${enable_calendar+set}" = set; then | |
5989 | enableval="$enable_calendar" | |
a0b9e27f | 5990 | |
1e6feb95 VZ |
5991 | if test "$enableval" = yes; then |
5992 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
5993 | else | |
5994 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
5995 | fi | |
a0b9e27f | 5996 | |
1e6feb95 | 5997 | else |
a0b9e27f | 5998 | |
1e6feb95 VZ |
5999 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` |
6000 | if test "x$LINE" != x ; then | |
6001 | eval "DEFAULT_$LINE" | |
6002 | else | |
6003 | no_cache=1 | |
6004 | fi | |
6005 | ||
6006 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
a0b9e27f MB |
6007 | |
6008 | fi | |
1e6feb95 VZ |
6009 | |
6010 | ||
6011 | eval "$ac_cv_use_calendar" | |
6012 | if test "$no_cache" != 1; then | |
6013 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
6014 | fi | |
6015 | ||
6016 | if test "$wxUSE_CALCTRL" = yes; then | |
a0b9e27f | 6017 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 6018 | else |
a0b9e27f | 6019 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 6020 | fi |
a0b9e27f | 6021 | |
1e6feb95 | 6022 | |
5005acfe VZ |
6023 | enablestring= |
6024 | echo $ac_n "checking for --${enablestring:-enable}-caret""... $ac_c" 1>&6 | |
8b389fab | 6025 | echo "configure:6026: checking for --${enablestring:-enable}-caret" >&5 |
1e6feb95 VZ |
6026 | no_cache=0 |
6027 | # Check whether --enable-caret or --disable-caret was given. | |
6028 | if test "${enable_caret+set}" = set; then | |
6029 | enableval="$enable_caret" | |
a0b9e27f | 6030 | |
1e6feb95 VZ |
6031 | if test "$enableval" = yes; then |
6032 | ac_cv_use_caret='wxUSE_CARET=yes' | |
6033 | else | |
6034 | ac_cv_use_caret='wxUSE_CARET=no' | |
6035 | fi | |
a0b9e27f | 6036 | |
1e6feb95 | 6037 | else |
a0b9e27f | 6038 | |
1e6feb95 VZ |
6039 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` |
6040 | if test "x$LINE" != x ; then | |
6041 | eval "DEFAULT_$LINE" | |
6042 | else | |
6043 | no_cache=1 | |
6044 | fi | |
6045 | ||
6046 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
a0b9e27f MB |
6047 | |
6048 | fi | |
1e6feb95 VZ |
6049 | |
6050 | ||
6051 | eval "$ac_cv_use_caret" | |
6052 | if test "$no_cache" != 1; then | |
6053 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
6054 | fi | |
6055 | ||
6056 | if test "$wxUSE_CARET" = yes; then | |
a0b9e27f | 6057 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 6058 | else |
a0b9e27f | 6059 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 6060 | fi |
a0b9e27f | 6061 | |
1e6feb95 | 6062 | |
5005acfe VZ |
6063 | enablestring= |
6064 | echo $ac_n "checking for --${enablestring:-enable}-checkbox""... $ac_c" 1>&6 | |
8b389fab | 6065 | echo "configure:6066: checking for --${enablestring:-enable}-checkbox" >&5 |
10f2d63a VZ |
6066 | no_cache=0 |
6067 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
6068 | if test "${enable_checkbox+set}" = set; then | |
6069 | enableval="$enable_checkbox" | |
a0b9e27f | 6070 | |
10f2d63a VZ |
6071 | if test "$enableval" = yes; then |
6072 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
6073 | else | |
6074 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
6075 | fi | |
a0b9e27f | 6076 | |
10f2d63a | 6077 | else |
a0b9e27f | 6078 | |
10f2d63a VZ |
6079 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
6080 | if test "x$LINE" != x ; then | |
6081 | eval "DEFAULT_$LINE" | |
6082 | else | |
6083 | no_cache=1 | |
6084 | fi | |
6085 | ||
6086 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
a0b9e27f MB |
6087 | |
6088 | fi | |
10f2d63a VZ |
6089 | |
6090 | ||
6091 | eval "$ac_cv_use_checkbox" | |
6092 | if test "$no_cache" != 1; then | |
6093 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
6094 | fi | |
6095 | ||
6096 | if test "$wxUSE_CHECKBOX" = yes; then | |
a0b9e27f | 6097 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6098 | else |
a0b9e27f | 6099 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6100 | fi |
a0b9e27f | 6101 | |
10f2d63a | 6102 | |
5005acfe VZ |
6103 | enablestring= |
6104 | echo $ac_n "checking for --${enablestring:-enable}-checklst""... $ac_c" 1>&6 | |
8b389fab | 6105 | echo "configure:6106: checking for --${enablestring:-enable}-checklst" >&5 |
10f2d63a VZ |
6106 | no_cache=0 |
6107 | # Check whether --enable-checklst or --disable-checklst was given. | |
6108 | if test "${enable_checklst+set}" = set; then | |
6109 | enableval="$enable_checklst" | |
a0b9e27f | 6110 | |
10f2d63a VZ |
6111 | if test "$enableval" = yes; then |
6112 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
6113 | else | |
6114 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
6115 | fi | |
a0b9e27f | 6116 | |
10f2d63a | 6117 | else |
a0b9e27f | 6118 | |
10f2d63a VZ |
6119 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
6120 | if test "x$LINE" != x ; then | |
6121 | eval "DEFAULT_$LINE" | |
6122 | else | |
6123 | no_cache=1 | |
6124 | fi | |
6125 | ||
6126 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
a0b9e27f MB |
6127 | |
6128 | fi | |
10f2d63a VZ |
6129 | |
6130 | ||
6131 | eval "$ac_cv_use_checklst" | |
6132 | if test "$no_cache" != 1; then | |
6133 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
6134 | fi | |
6135 | ||
6136 | if test "$wxUSE_CHECKLST" = yes; then | |
a0b9e27f | 6137 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6138 | else |
a0b9e27f | 6139 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6140 | fi |
a0b9e27f | 6141 | |
10f2d63a | 6142 | |
5005acfe VZ |
6143 | enablestring= |
6144 | echo $ac_n "checking for --${enablestring:-enable}-choice""... $ac_c" 1>&6 | |
8b389fab | 6145 | echo "configure:6146: checking for --${enablestring:-enable}-choice" >&5 |
10f2d63a VZ |
6146 | no_cache=0 |
6147 | # Check whether --enable-choice or --disable-choice was given. | |
6148 | if test "${enable_choice+set}" = set; then | |
6149 | enableval="$enable_choice" | |
a0b9e27f | 6150 | |
10f2d63a VZ |
6151 | if test "$enableval" = yes; then |
6152 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
6153 | else | |
6154 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
6155 | fi | |
a0b9e27f | 6156 | |
10f2d63a | 6157 | else |
a0b9e27f | 6158 | |
10f2d63a VZ |
6159 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
6160 | if test "x$LINE" != x ; then | |
6161 | eval "DEFAULT_$LINE" | |
6162 | else | |
6163 | no_cache=1 | |
6164 | fi | |
6165 | ||
6166 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
a0b9e27f MB |
6167 | |
6168 | fi | |
10f2d63a VZ |
6169 | |
6170 | ||
6171 | eval "$ac_cv_use_choice" | |
6172 | if test "$no_cache" != 1; then | |
6173 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
6174 | fi | |
6175 | ||
6176 | if test "$wxUSE_CHOICE" = yes; then | |
a0b9e27f | 6177 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6178 | else |
a0b9e27f | 6179 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6180 | fi |
a0b9e27f | 6181 | |
10f2d63a | 6182 | |
5005acfe VZ |
6183 | enablestring= |
6184 | echo $ac_n "checking for --${enablestring:-enable}-combobox""... $ac_c" 1>&6 | |
8b389fab | 6185 | echo "configure:6186: checking for --${enablestring:-enable}-combobox" >&5 |
10f2d63a VZ |
6186 | no_cache=0 |
6187 | # Check whether --enable-combobox or --disable-combobox was given. | |
6188 | if test "${enable_combobox+set}" = set; then | |
6189 | enableval="$enable_combobox" | |
a0b9e27f | 6190 | |
10f2d63a VZ |
6191 | if test "$enableval" = yes; then |
6192 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
6193 | else | |
6194 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
6195 | fi | |
a0b9e27f | 6196 | |
10f2d63a | 6197 | else |
a0b9e27f | 6198 | |
10f2d63a VZ |
6199 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
6200 | if test "x$LINE" != x ; then | |
6201 | eval "DEFAULT_$LINE" | |
6202 | else | |
6203 | no_cache=1 | |
6204 | fi | |
6205 | ||
6206 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
a0b9e27f MB |
6207 | |
6208 | fi | |
10f2d63a VZ |
6209 | |
6210 | ||
6211 | eval "$ac_cv_use_combobox" | |
6212 | if test "$no_cache" != 1; then | |
6213 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
6214 | fi | |
6215 | ||
6216 | if test "$wxUSE_COMBOBOX" = yes; then | |
a0b9e27f | 6217 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6218 | else |
a0b9e27f | 6219 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6220 | fi |
a0b9e27f | 6221 | |
10f2d63a | 6222 | |
da494b40 MB |
6223 | enablestring= |
6224 | echo $ac_n "checking for --${enablestring:-enable}-display""... $ac_c" 1>&6 | |
8b389fab | 6225 | echo "configure:6226: checking for --${enablestring:-enable}-display" >&5 |
da494b40 MB |
6226 | no_cache=0 |
6227 | # Check whether --enable-display or --disable-display was given. | |
6228 | if test "${enable_display+set}" = set; then | |
6229 | enableval="$enable_display" | |
6230 | ||
6231 | if test "$enableval" = yes; then | |
6232 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
6233 | else | |
6234 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
6235 | fi | |
6236 | ||
6237 | else | |
6238 | ||
6239 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` | |
6240 | if test "x$LINE" != x ; then | |
6241 | eval "DEFAULT_$LINE" | |
6242 | else | |
6243 | no_cache=1 | |
6244 | fi | |
6245 | ||
6246 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
6247 | ||
6248 | fi | |
6249 | ||
6250 | ||
6251 | eval "$ac_cv_use_display" | |
6252 | if test "$no_cache" != 1; then | |
6253 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
6254 | fi | |
6255 | ||
6256 | if test "$wxUSE_DISPLAY" = yes; then | |
6257 | echo "$ac_t""yes" 1>&6 | |
6258 | else | |
6259 | echo "$ac_t""no" 1>&6 | |
6260 | fi | |
6261 | ||
6262 | ||
5005acfe VZ |
6263 | enablestring= |
6264 | echo $ac_n "checking for --${enablestring:-enable}-gauge""... $ac_c" 1>&6 | |
8b389fab | 6265 | echo "configure:6266: checking for --${enablestring:-enable}-gauge" >&5 |
10f2d63a VZ |
6266 | no_cache=0 |
6267 | # Check whether --enable-gauge or --disable-gauge was given. | |
6268 | if test "${enable_gauge+set}" = set; then | |
6269 | enableval="$enable_gauge" | |
a0b9e27f | 6270 | |
10f2d63a VZ |
6271 | if test "$enableval" = yes; then |
6272 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
6273 | else | |
6274 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
6275 | fi | |
a0b9e27f | 6276 | |
10f2d63a | 6277 | else |
a0b9e27f | 6278 | |
10f2d63a VZ |
6279 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
6280 | if test "x$LINE" != x ; then | |
6281 | eval "DEFAULT_$LINE" | |
6282 | else | |
6283 | no_cache=1 | |
6284 | fi | |
6285 | ||
6286 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
a0b9e27f MB |
6287 | |
6288 | fi | |
10f2d63a VZ |
6289 | |
6290 | ||
6291 | eval "$ac_cv_use_gauge" | |
6292 | if test "$no_cache" != 1; then | |
6293 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
6294 | fi | |
6295 | ||
6296 | if test "$wxUSE_GAUGE" = yes; then | |
a0b9e27f | 6297 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6298 | else |
a0b9e27f | 6299 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6300 | fi |
a0b9e27f | 6301 | |
10f2d63a | 6302 | |
5005acfe VZ |
6303 | enablestring= |
6304 | echo $ac_n "checking for --${enablestring:-enable}-grid""... $ac_c" 1>&6 | |
8b389fab | 6305 | echo "configure:6306: checking for --${enablestring:-enable}-grid" >&5 |
10f2d63a VZ |
6306 | no_cache=0 |
6307 | # Check whether --enable-grid or --disable-grid was given. | |
6308 | if test "${enable_grid+set}" = set; then | |
6309 | enableval="$enable_grid" | |
a0b9e27f | 6310 | |
10f2d63a VZ |
6311 | if test "$enableval" = yes; then |
6312 | ac_cv_use_grid='wxUSE_GRID=yes' | |
6313 | else | |
6314 | ac_cv_use_grid='wxUSE_GRID=no' | |
6315 | fi | |
a0b9e27f | 6316 | |
10f2d63a | 6317 | else |
a0b9e27f | 6318 | |
10f2d63a VZ |
6319 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
6320 | if test "x$LINE" != x ; then | |
6321 | eval "DEFAULT_$LINE" | |
6322 | else | |
6323 | no_cache=1 | |
6324 | fi | |
6325 | ||
6326 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
a0b9e27f MB |
6327 | |
6328 | fi | |
10f2d63a VZ |
6329 | |
6330 | ||
6331 | eval "$ac_cv_use_grid" | |
6332 | if test "$no_cache" != 1; then | |
6333 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
6334 | fi | |
6335 | ||
6336 | if test "$wxUSE_GRID" = yes; then | |
a0b9e27f | 6337 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6338 | else |
a0b9e27f | 6339 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6340 | fi |
a0b9e27f | 6341 | |
10f2d63a | 6342 | |
5005acfe VZ |
6343 | enablestring= |
6344 | echo $ac_n "checking for --${enablestring:-enable}-imaglist""... $ac_c" 1>&6 | |
8b389fab | 6345 | echo "configure:6346: checking for --${enablestring:-enable}-imaglist" >&5 |
10f2d63a VZ |
6346 | no_cache=0 |
6347 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
6348 | if test "${enable_imaglist+set}" = set; then | |
6349 | enableval="$enable_imaglist" | |
a0b9e27f | 6350 | |
10f2d63a VZ |
6351 | if test "$enableval" = yes; then |
6352 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
6353 | else | |
6354 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
6355 | fi | |
a0b9e27f | 6356 | |
10f2d63a | 6357 | else |
a0b9e27f | 6358 | |
10f2d63a VZ |
6359 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
6360 | if test "x$LINE" != x ; then | |
6361 | eval "DEFAULT_$LINE" | |
6362 | else | |
6363 | no_cache=1 | |
6364 | fi | |
6365 | ||
6366 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
a0b9e27f MB |
6367 | |
6368 | fi | |
10f2d63a VZ |
6369 | |
6370 | ||
6371 | eval "$ac_cv_use_imaglist" | |
6372 | if test "$no_cache" != 1; then | |
6373 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
6374 | fi | |
6375 | ||
6376 | if test "$wxUSE_IMAGLIST" = yes; then | |
a0b9e27f | 6377 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6378 | else |
a0b9e27f | 6379 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6380 | fi |
a0b9e27f | 6381 | |
10f2d63a | 6382 | |
5005acfe VZ |
6383 | enablestring= |
6384 | echo $ac_n "checking for --${enablestring:-enable}-listbox""... $ac_c" 1>&6 | |
8b389fab | 6385 | echo "configure:6386: checking for --${enablestring:-enable}-listbox" >&5 |
10f2d63a VZ |
6386 | no_cache=0 |
6387 | # Check whether --enable-listbox or --disable-listbox was given. | |
6388 | if test "${enable_listbox+set}" = set; then | |
6389 | enableval="$enable_listbox" | |
a0b9e27f | 6390 | |
10f2d63a VZ |
6391 | if test "$enableval" = yes; then |
6392 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
6393 | else | |
6394 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
6395 | fi | |
a0b9e27f | 6396 | |
10f2d63a | 6397 | else |
a0b9e27f | 6398 | |
10f2d63a VZ |
6399 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
6400 | if test "x$LINE" != x ; then | |
6401 | eval "DEFAULT_$LINE" | |
6402 | else | |
6403 | no_cache=1 | |
6404 | fi | |
6405 | ||
6406 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
a0b9e27f MB |
6407 | |
6408 | fi | |
10f2d63a VZ |
6409 | |
6410 | ||
6411 | eval "$ac_cv_use_listbox" | |
6412 | if test "$no_cache" != 1; then | |
6413 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
6414 | fi | |
6415 | ||
6416 | if test "$wxUSE_LISTBOX" = yes; then | |
a0b9e27f | 6417 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6418 | else |
a0b9e27f | 6419 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6420 | fi |
a0b9e27f | 6421 | |
10f2d63a | 6422 | |
5005acfe VZ |
6423 | enablestring= |
6424 | echo $ac_n "checking for --${enablestring:-enable}-listctrl""... $ac_c" 1>&6 | |
8b389fab | 6425 | echo "configure:6426: checking for --${enablestring:-enable}-listctrl" >&5 |
10f2d63a VZ |
6426 | no_cache=0 |
6427 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
6428 | if test "${enable_listctrl+set}" = set; then | |
6429 | enableval="$enable_listctrl" | |
a0b9e27f | 6430 | |
10f2d63a VZ |
6431 | if test "$enableval" = yes; then |
6432 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
6433 | else | |
6434 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
6435 | fi | |
a0b9e27f | 6436 | |
10f2d63a | 6437 | else |
a0b9e27f | 6438 | |
10f2d63a VZ |
6439 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
6440 | if test "x$LINE" != x ; then | |
6441 | eval "DEFAULT_$LINE" | |
6442 | else | |
6443 | no_cache=1 | |
6444 | fi | |
6445 | ||
6446 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
a0b9e27f MB |
6447 | |
6448 | fi | |
10f2d63a VZ |
6449 | |
6450 | ||
6451 | eval "$ac_cv_use_listctrl" | |
6452 | if test "$no_cache" != 1; then | |
6453 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
6454 | fi | |
6455 | ||
6456 | if test "$wxUSE_LISTCTRL" = yes; then | |
a0b9e27f | 6457 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6458 | else |
a0b9e27f | 6459 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6460 | fi |
a0b9e27f | 6461 | |
10f2d63a | 6462 | |
5005acfe VZ |
6463 | enablestring= |
6464 | echo $ac_n "checking for --${enablestring:-enable}-notebook""... $ac_c" 1>&6 | |
8b389fab | 6465 | echo "configure:6466: checking for --${enablestring:-enable}-notebook" >&5 |
10f2d63a VZ |
6466 | no_cache=0 |
6467 | # Check whether --enable-notebook or --disable-notebook was given. | |
6468 | if test "${enable_notebook+set}" = set; then | |
6469 | enableval="$enable_notebook" | |
a0b9e27f | 6470 | |
10f2d63a VZ |
6471 | if test "$enableval" = yes; then |
6472 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
6473 | else | |
6474 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
6475 | fi | |
a0b9e27f | 6476 | |
10f2d63a | 6477 | else |
a0b9e27f | 6478 | |
10f2d63a VZ |
6479 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
6480 | if test "x$LINE" != x ; then | |
6481 | eval "DEFAULT_$LINE" | |
6482 | else | |
6483 | no_cache=1 | |
6484 | fi | |
6485 | ||
6486 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
a0b9e27f MB |
6487 | |
6488 | fi | |
10f2d63a VZ |
6489 | |
6490 | ||
6491 | eval "$ac_cv_use_notebook" | |
6492 | if test "$no_cache" != 1; then | |
6493 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
6494 | fi | |
6495 | ||
6496 | if test "$wxUSE_NOTEBOOK" = yes; then | |
a0b9e27f | 6497 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6498 | else |
a0b9e27f | 6499 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6500 | fi |
a0b9e27f | 6501 | |
10f2d63a | 6502 | |
5005acfe VZ |
6503 | enablestring= |
6504 | echo $ac_n "checking for --${enablestring:-enable}-radiobox""... $ac_c" 1>&6 | |
8b389fab | 6505 | echo "configure:6506: checking for --${enablestring:-enable}-radiobox" >&5 |
10f2d63a VZ |
6506 | no_cache=0 |
6507 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
6508 | if test "${enable_radiobox+set}" = set; then | |
6509 | enableval="$enable_radiobox" | |
a0b9e27f | 6510 | |
10f2d63a VZ |
6511 | if test "$enableval" = yes; then |
6512 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
6513 | else | |
6514 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
6515 | fi | |
a0b9e27f | 6516 | |
10f2d63a | 6517 | else |
a0b9e27f | 6518 | |
10f2d63a VZ |
6519 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
6520 | if test "x$LINE" != x ; then | |
6521 | eval "DEFAULT_$LINE" | |
6522 | else | |
6523 | no_cache=1 | |
6524 | fi | |
6525 | ||
6526 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
a0b9e27f MB |
6527 | |
6528 | fi | |
10f2d63a VZ |
6529 | |
6530 | ||
6531 | eval "$ac_cv_use_radiobox" | |
6532 | if test "$no_cache" != 1; then | |
6533 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
6534 | fi | |
6535 | ||
6536 | if test "$wxUSE_RADIOBOX" = yes; then | |
a0b9e27f | 6537 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6538 | else |
a0b9e27f | 6539 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6540 | fi |
a0b9e27f | 6541 | |
10f2d63a | 6542 | |
5005acfe VZ |
6543 | enablestring= |
6544 | echo $ac_n "checking for --${enablestring:-enable}-radiobtn""... $ac_c" 1>&6 | |
8b389fab | 6545 | echo "configure:6546: checking for --${enablestring:-enable}-radiobtn" >&5 |
10f2d63a VZ |
6546 | no_cache=0 |
6547 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
6548 | if test "${enable_radiobtn+set}" = set; then | |
6549 | enableval="$enable_radiobtn" | |
a0b9e27f | 6550 | |
10f2d63a VZ |
6551 | if test "$enableval" = yes; then |
6552 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
6553 | else | |
6554 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
6555 | fi | |
a0b9e27f | 6556 | |
10f2d63a | 6557 | else |
a0b9e27f | 6558 | |
10f2d63a VZ |
6559 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
6560 | if test "x$LINE" != x ; then | |
6561 | eval "DEFAULT_$LINE" | |
6562 | else | |
6563 | no_cache=1 | |
6564 | fi | |
6565 | ||
6566 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
a0b9e27f MB |
6567 | |
6568 | fi | |
10f2d63a VZ |
6569 | |
6570 | ||
6571 | eval "$ac_cv_use_radiobtn" | |
6572 | if test "$no_cache" != 1; then | |
6573 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
6574 | fi | |
6575 | ||
6576 | if test "$wxUSE_RADIOBTN" = yes; then | |
a0b9e27f | 6577 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6578 | else |
a0b9e27f | 6579 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6580 | fi |
a0b9e27f | 6581 | |
10f2d63a | 6582 | |
5005acfe VZ |
6583 | enablestring= |
6584 | echo $ac_n "checking for --${enablestring:-enable}-sash""... $ac_c" 1>&6 | |
8b389fab | 6585 | echo "configure:6586: checking for --${enablestring:-enable}-sash" >&5 |
10f2d63a VZ |
6586 | no_cache=0 |
6587 | # Check whether --enable-sash or --disable-sash was given. | |
6588 | if test "${enable_sash+set}" = set; then | |
6589 | enableval="$enable_sash" | |
a0b9e27f | 6590 | |
10f2d63a VZ |
6591 | if test "$enableval" = yes; then |
6592 | ac_cv_use_sash='wxUSE_SASH=yes' | |
6593 | else | |
6594 | ac_cv_use_sash='wxUSE_SASH=no' | |
6595 | fi | |
a0b9e27f | 6596 | |
10f2d63a | 6597 | else |
a0b9e27f | 6598 | |
10f2d63a VZ |
6599 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
6600 | if test "x$LINE" != x ; then | |
6601 | eval "DEFAULT_$LINE" | |
6602 | else | |
6603 | no_cache=1 | |
6604 | fi | |
6605 | ||
6606 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
a0b9e27f MB |
6607 | |
6608 | fi | |
10f2d63a VZ |
6609 | |
6610 | ||
6611 | eval "$ac_cv_use_sash" | |
6612 | if test "$no_cache" != 1; then | |
6613 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
6614 | fi | |
6615 | ||
6616 | if test "$wxUSE_SASH" = yes; then | |
a0b9e27f | 6617 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6618 | else |
a0b9e27f | 6619 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6620 | fi |
a0b9e27f | 6621 | |
10f2d63a | 6622 | |
5005acfe VZ |
6623 | enablestring= |
6624 | echo $ac_n "checking for --${enablestring:-enable}-scrollbar""... $ac_c" 1>&6 | |
8b389fab | 6625 | echo "configure:6626: checking for --${enablestring:-enable}-scrollbar" >&5 |
10f2d63a VZ |
6626 | no_cache=0 |
6627 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
6628 | if test "${enable_scrollbar+set}" = set; then | |
6629 | enableval="$enable_scrollbar" | |
a0b9e27f | 6630 | |
10f2d63a VZ |
6631 | if test "$enableval" = yes; then |
6632 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
6633 | else | |
6634 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
6635 | fi | |
a0b9e27f | 6636 | |
10f2d63a | 6637 | else |
a0b9e27f | 6638 | |
10f2d63a VZ |
6639 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
6640 | if test "x$LINE" != x ; then | |
6641 | eval "DEFAULT_$LINE" | |
6642 | else | |
6643 | no_cache=1 | |
6644 | fi | |
6645 | ||
6646 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
a0b9e27f MB |
6647 | |
6648 | fi | |
10f2d63a VZ |
6649 | |
6650 | ||
6651 | eval "$ac_cv_use_scrollbar" | |
6652 | if test "$no_cache" != 1; then | |
6653 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
6654 | fi | |
6655 | ||
6656 | if test "$wxUSE_SCROLLBAR" = yes; then | |
a0b9e27f | 6657 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6658 | else |
a0b9e27f | 6659 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6660 | fi |
a0b9e27f | 6661 | |
10f2d63a | 6662 | |
5005acfe VZ |
6663 | enablestring= |
6664 | echo $ac_n "checking for --${enablestring:-enable}-slider""... $ac_c" 1>&6 | |
8b389fab | 6665 | echo "configure:6666: checking for --${enablestring:-enable}-slider" >&5 |
10f2d63a VZ |
6666 | no_cache=0 |
6667 | # Check whether --enable-slider or --disable-slider was given. | |
6668 | if test "${enable_slider+set}" = set; then | |
6669 | enableval="$enable_slider" | |
a0b9e27f | 6670 | |
10f2d63a VZ |
6671 | if test "$enableval" = yes; then |
6672 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
6673 | else | |
6674 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
6675 | fi | |
a0b9e27f | 6676 | |
10f2d63a | 6677 | else |
a0b9e27f | 6678 | |
10f2d63a VZ |
6679 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
6680 | if test "x$LINE" != x ; then | |
6681 | eval "DEFAULT_$LINE" | |
6682 | else | |
6683 | no_cache=1 | |
6684 | fi | |
6685 | ||
6686 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
a0b9e27f MB |
6687 | |
6688 | fi | |
10f2d63a VZ |
6689 | |
6690 | ||
6691 | eval "$ac_cv_use_slider" | |
6692 | if test "$no_cache" != 1; then | |
6693 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
6694 | fi | |
6695 | ||
6696 | if test "$wxUSE_SLIDER" = yes; then | |
a0b9e27f | 6697 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6698 | else |
a0b9e27f | 6699 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6700 | fi |
a0b9e27f | 6701 | |
10f2d63a | 6702 | |
5005acfe VZ |
6703 | enablestring= |
6704 | echo $ac_n "checking for --${enablestring:-enable}-spinbtn""... $ac_c" 1>&6 | |
8b389fab | 6705 | echo "configure:6706: checking for --${enablestring:-enable}-spinbtn" >&5 |
10f2d63a VZ |
6706 | no_cache=0 |
6707 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
6708 | if test "${enable_spinbtn+set}" = set; then | |
6709 | enableval="$enable_spinbtn" | |
a0b9e27f | 6710 | |
10f2d63a VZ |
6711 | if test "$enableval" = yes; then |
6712 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
6713 | else | |
6714 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
6715 | fi | |
a0b9e27f | 6716 | |
10f2d63a | 6717 | else |
a0b9e27f | 6718 | |
10f2d63a VZ |
6719 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
6720 | if test "x$LINE" != x ; then | |
6721 | eval "DEFAULT_$LINE" | |
6722 | else | |
6723 | no_cache=1 | |
6724 | fi | |
6725 | ||
6726 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
a0b9e27f MB |
6727 | |
6728 | fi | |
10f2d63a VZ |
6729 | |
6730 | ||
6731 | eval "$ac_cv_use_spinbtn" | |
6732 | if test "$no_cache" != 1; then | |
6733 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
6734 | fi | |
6735 | ||
6736 | if test "$wxUSE_SPINBTN" = yes; then | |
a0b9e27f | 6737 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6738 | else |
a0b9e27f | 6739 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6740 | fi |
a0b9e27f | 6741 | |
10f2d63a | 6742 | |
5005acfe VZ |
6743 | enablestring= |
6744 | echo $ac_n "checking for --${enablestring:-enable}-spinctrl""... $ac_c" 1>&6 | |
8b389fab | 6745 | echo "configure:6746: checking for --${enablestring:-enable}-spinctrl" >&5 |
56cfaa52 RR |
6746 | no_cache=0 |
6747 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
6748 | if test "${enable_spinctrl+set}" = set; then | |
6749 | enableval="$enable_spinctrl" | |
a0b9e27f | 6750 | |
56cfaa52 RR |
6751 | if test "$enableval" = yes; then |
6752 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
6753 | else | |
6754 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
6755 | fi | |
a0b9e27f | 6756 | |
56cfaa52 | 6757 | else |
a0b9e27f | 6758 | |
56cfaa52 RR |
6759 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
6760 | if test "x$LINE" != x ; then | |
6761 | eval "DEFAULT_$LINE" | |
6762 | else | |
6763 | no_cache=1 | |
6764 | fi | |
6765 | ||
6766 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
a0b9e27f MB |
6767 | |
6768 | fi | |
56cfaa52 RR |
6769 | |
6770 | ||
6771 | eval "$ac_cv_use_spinctrl" | |
6772 | if test "$no_cache" != 1; then | |
6773 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
6774 | fi | |
6775 | ||
6776 | if test "$wxUSE_SPINCTRL" = yes; then | |
a0b9e27f | 6777 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 6778 | else |
a0b9e27f | 6779 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 6780 | fi |
a0b9e27f | 6781 | |
56cfaa52 | 6782 | |
5005acfe VZ |
6783 | enablestring= |
6784 | echo $ac_n "checking for --${enablestring:-enable}-splitter""... $ac_c" 1>&6 | |
8b389fab | 6785 | echo "configure:6786: checking for --${enablestring:-enable}-splitter" >&5 |
10f2d63a VZ |
6786 | no_cache=0 |
6787 | # Check whether --enable-splitter or --disable-splitter was given. | |
6788 | if test "${enable_splitter+set}" = set; then | |
6789 | enableval="$enable_splitter" | |
a0b9e27f | 6790 | |
10f2d63a VZ |
6791 | if test "$enableval" = yes; then |
6792 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
6793 | else | |
6794 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
6795 | fi | |
a0b9e27f | 6796 | |
10f2d63a | 6797 | else |
a0b9e27f | 6798 | |
10f2d63a VZ |
6799 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
6800 | if test "x$LINE" != x ; then | |
6801 | eval "DEFAULT_$LINE" | |
6802 | else | |
6803 | no_cache=1 | |
6804 | fi | |
6805 | ||
6806 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
a0b9e27f MB |
6807 | |
6808 | fi | |
10f2d63a VZ |
6809 | |
6810 | ||
6811 | eval "$ac_cv_use_splitter" | |
6812 | if test "$no_cache" != 1; then | |
6813 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
6814 | fi | |
6815 | ||
6816 | if test "$wxUSE_SPLITTER" = yes; then | |
a0b9e27f | 6817 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6818 | else |
a0b9e27f | 6819 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6820 | fi |
a0b9e27f | 6821 | |
10f2d63a | 6822 | |
5005acfe VZ |
6823 | enablestring= |
6824 | echo $ac_n "checking for --${enablestring:-enable}-statbmp""... $ac_c" 1>&6 | |
8b389fab | 6825 | echo "configure:6826: checking for --${enablestring:-enable}-statbmp" >&5 |
10f2d63a VZ |
6826 | no_cache=0 |
6827 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
6828 | if test "${enable_statbmp+set}" = set; then | |
6829 | enableval="$enable_statbmp" | |
a0b9e27f | 6830 | |
10f2d63a VZ |
6831 | if test "$enableval" = yes; then |
6832 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
6833 | else | |
6834 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
6835 | fi | |
a0b9e27f | 6836 | |
10f2d63a | 6837 | else |
a0b9e27f | 6838 | |
10f2d63a VZ |
6839 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
6840 | if test "x$LINE" != x ; then | |
6841 | eval "DEFAULT_$LINE" | |
6842 | else | |
6843 | no_cache=1 | |
6844 | fi | |
6845 | ||
6846 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
a0b9e27f MB |
6847 | |
6848 | fi | |
10f2d63a VZ |
6849 | |
6850 | ||
6851 | eval "$ac_cv_use_statbmp" | |
6852 | if test "$no_cache" != 1; then | |
6853 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
6854 | fi | |
6855 | ||
6856 | if test "$wxUSE_STATBMP" = yes; then | |
a0b9e27f | 6857 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6858 | else |
a0b9e27f | 6859 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6860 | fi |
a0b9e27f | 6861 | |
10f2d63a | 6862 | |
5005acfe VZ |
6863 | enablestring= |
6864 | echo $ac_n "checking for --${enablestring:-enable}-statbox""... $ac_c" 1>&6 | |
8b389fab | 6865 | echo "configure:6866: checking for --${enablestring:-enable}-statbox" >&5 |
10f2d63a VZ |
6866 | no_cache=0 |
6867 | # Check whether --enable-statbox or --disable-statbox was given. | |
6868 | if test "${enable_statbox+set}" = set; then | |
6869 | enableval="$enable_statbox" | |
a0b9e27f | 6870 | |
10f2d63a VZ |
6871 | if test "$enableval" = yes; then |
6872 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
6873 | else | |
6874 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
6875 | fi | |
a0b9e27f | 6876 | |
10f2d63a | 6877 | else |
a0b9e27f | 6878 | |
10f2d63a VZ |
6879 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
6880 | if test "x$LINE" != x ; then | |
6881 | eval "DEFAULT_$LINE" | |
6882 | else | |
6883 | no_cache=1 | |
6884 | fi | |
6885 | ||
6886 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
a0b9e27f MB |
6887 | |
6888 | fi | |
10f2d63a VZ |
6889 | |
6890 | ||
6891 | eval "$ac_cv_use_statbox" | |
6892 | if test "$no_cache" != 1; then | |
6893 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
6894 | fi | |
6895 | ||
6896 | if test "$wxUSE_STATBOX" = yes; then | |
a0b9e27f | 6897 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6898 | else |
a0b9e27f | 6899 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6900 | fi |
a0b9e27f | 6901 | |
10f2d63a | 6902 | |
5005acfe VZ |
6903 | enablestring= |
6904 | echo $ac_n "checking for --${enablestring:-enable}-statline""... $ac_c" 1>&6 | |
8b389fab | 6905 | echo "configure:6906: checking for --${enablestring:-enable}-statline" >&5 |
10f2d63a VZ |
6906 | no_cache=0 |
6907 | # Check whether --enable-statline or --disable-statline was given. | |
6908 | if test "${enable_statline+set}" = set; then | |
6909 | enableval="$enable_statline" | |
a0b9e27f | 6910 | |
10f2d63a VZ |
6911 | if test "$enableval" = yes; then |
6912 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
6913 | else | |
6914 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
6915 | fi | |
a0b9e27f | 6916 | |
10f2d63a | 6917 | else |
a0b9e27f | 6918 | |
10f2d63a VZ |
6919 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
6920 | if test "x$LINE" != x ; then | |
6921 | eval "DEFAULT_$LINE" | |
6922 | else | |
6923 | no_cache=1 | |
6924 | fi | |
6925 | ||
6926 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
a0b9e27f MB |
6927 | |
6928 | fi | |
10f2d63a VZ |
6929 | |
6930 | ||
6931 | eval "$ac_cv_use_statline" | |
6932 | if test "$no_cache" != 1; then | |
6933 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
6934 | fi | |
6935 | ||
6936 | if test "$wxUSE_STATLINE" = yes; then | |
a0b9e27f | 6937 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6938 | else |
a0b9e27f | 6939 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6940 | fi |
a0b9e27f | 6941 | |
10f2d63a | 6942 | |
5005acfe VZ |
6943 | enablestring= |
6944 | echo $ac_n "checking for --${enablestring:-enable}-stattext""... $ac_c" 1>&6 | |
8b389fab | 6945 | echo "configure:6946: checking for --${enablestring:-enable}-stattext" >&5 |
1e6feb95 VZ |
6946 | no_cache=0 |
6947 | # Check whether --enable-stattext or --disable-stattext was given. | |
6948 | if test "${enable_stattext+set}" = set; then | |
6949 | enableval="$enable_stattext" | |
a0b9e27f | 6950 | |
1e6feb95 VZ |
6951 | if test "$enableval" = yes; then |
6952 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
6953 | else | |
6954 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
6955 | fi | |
a0b9e27f | 6956 | |
1e6feb95 | 6957 | else |
a0b9e27f | 6958 | |
1e6feb95 VZ |
6959 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` |
6960 | if test "x$LINE" != x ; then | |
6961 | eval "DEFAULT_$LINE" | |
6962 | else | |
6963 | no_cache=1 | |
6964 | fi | |
6965 | ||
6966 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
a0b9e27f MB |
6967 | |
6968 | fi | |
1e6feb95 VZ |
6969 | |
6970 | ||
6971 | eval "$ac_cv_use_stattext" | |
6972 | if test "$no_cache" != 1; then | |
6973 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
6974 | fi | |
6975 | ||
6976 | if test "$wxUSE_STATTEXT" = yes; then | |
a0b9e27f | 6977 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 6978 | else |
a0b9e27f | 6979 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 6980 | fi |
a0b9e27f | 6981 | |
1e6feb95 | 6982 | |
5005acfe VZ |
6983 | enablestring= |
6984 | echo $ac_n "checking for --${enablestring:-enable}-statusbar""... $ac_c" 1>&6 | |
8b389fab | 6985 | echo "configure:6986: checking for --${enablestring:-enable}-statusbar" >&5 |
10f2d63a VZ |
6986 | no_cache=0 |
6987 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
6988 | if test "${enable_statusbar+set}" = set; then | |
6989 | enableval="$enable_statusbar" | |
a0b9e27f | 6990 | |
10f2d63a VZ |
6991 | if test "$enableval" = yes; then |
6992 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
6993 | else | |
6994 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
6995 | fi | |
a0b9e27f | 6996 | |
10f2d63a | 6997 | else |
a0b9e27f | 6998 | |
10f2d63a VZ |
6999 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
7000 | if test "x$LINE" != x ; then | |
7001 | eval "DEFAULT_$LINE" | |
7002 | else | |
7003 | no_cache=1 | |
7004 | fi | |
7005 | ||
7006 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
a0b9e27f MB |
7007 | |
7008 | fi | |
10f2d63a VZ |
7009 | |
7010 | ||
7011 | eval "$ac_cv_use_statusbar" | |
7012 | if test "$no_cache" != 1; then | |
7013 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
7014 | fi | |
7015 | ||
7016 | if test "$wxUSE_STATUSBAR" = yes; then | |
a0b9e27f | 7017 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7018 | else |
a0b9e27f | 7019 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7020 | fi |
a0b9e27f | 7021 | |
10f2d63a | 7022 | |
5005acfe VZ |
7023 | enablestring= |
7024 | echo $ac_n "checking for --${enablestring:-enable}-tabdialog""... $ac_c" 1>&6 | |
8b389fab | 7025 | echo "configure:7026: checking for --${enablestring:-enable}-tabdialog" >&5 |
10f2d63a VZ |
7026 | no_cache=0 |
7027 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
7028 | if test "${enable_tabdialog+set}" = set; then | |
7029 | enableval="$enable_tabdialog" | |
a0b9e27f | 7030 | |
10f2d63a VZ |
7031 | if test "$enableval" = yes; then |
7032 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
7033 | else | |
7034 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
7035 | fi | |
a0b9e27f | 7036 | |
10f2d63a | 7037 | else |
a0b9e27f | 7038 | |
10f2d63a VZ |
7039 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
7040 | if test "x$LINE" != x ; then | |
7041 | eval "DEFAULT_$LINE" | |
7042 | else | |
7043 | no_cache=1 | |
7044 | fi | |
7045 | ||
7046 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
a0b9e27f MB |
7047 | |
7048 | fi | |
10f2d63a VZ |
7049 | |
7050 | ||
7051 | eval "$ac_cv_use_tabdialog" | |
7052 | if test "$no_cache" != 1; then | |
7053 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
7054 | fi | |
7055 | ||
7056 | if test "$wxUSE_TABDIALOG" = yes; then | |
a0b9e27f | 7057 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7058 | else |
a0b9e27f | 7059 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7060 | fi |
a0b9e27f | 7061 | |
10f2d63a | 7062 | |
5005acfe VZ |
7063 | enablestring= |
7064 | echo $ac_n "checking for --${enablestring:-enable}-textctrl""... $ac_c" 1>&6 | |
8b389fab | 7065 | echo "configure:7066: checking for --${enablestring:-enable}-textctrl" >&5 |
1e6feb95 VZ |
7066 | no_cache=0 |
7067 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
7068 | if test "${enable_textctrl+set}" = set; then | |
7069 | enableval="$enable_textctrl" | |
a0b9e27f | 7070 | |
1e6feb95 VZ |
7071 | if test "$enableval" = yes; then |
7072 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
7073 | else | |
7074 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
7075 | fi | |
a0b9e27f | 7076 | |
1e6feb95 | 7077 | else |
a0b9e27f | 7078 | |
1e6feb95 VZ |
7079 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` |
7080 | if test "x$LINE" != x ; then | |
7081 | eval "DEFAULT_$LINE" | |
7082 | else | |
7083 | no_cache=1 | |
7084 | fi | |
7085 | ||
7086 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
a0b9e27f MB |
7087 | |
7088 | fi | |
1e6feb95 VZ |
7089 | |
7090 | ||
7091 | eval "$ac_cv_use_textctrl" | |
7092 | if test "$no_cache" != 1; then | |
7093 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
7094 | fi | |
7095 | ||
7096 | if test "$wxUSE_TEXTCTRL" = yes; then | |
a0b9e27f | 7097 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7098 | else |
a0b9e27f | 7099 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7100 | fi |
a0b9e27f | 7101 | |
1e6feb95 | 7102 | |
5005acfe VZ |
7103 | enablestring= |
7104 | echo $ac_n "checking for --${enablestring:-enable}-togglebtn""... $ac_c" 1>&6 | |
8b389fab | 7105 | echo "configure:7106: checking for --${enablestring:-enable}-togglebtn" >&5 |
1db8dc4a VZ |
7106 | no_cache=0 |
7107 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
7108 | if test "${enable_togglebtn+set}" = set; then | |
7109 | enableval="$enable_togglebtn" | |
a0b9e27f | 7110 | |
1db8dc4a VZ |
7111 | if test "$enableval" = yes; then |
7112 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
7113 | else | |
7114 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
7115 | fi | |
a0b9e27f | 7116 | |
1db8dc4a | 7117 | else |
a0b9e27f | 7118 | |
1db8dc4a VZ |
7119 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
7120 | if test "x$LINE" != x ; then | |
7121 | eval "DEFAULT_$LINE" | |
7122 | else | |
7123 | no_cache=1 | |
7124 | fi | |
7125 | ||
7126 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
a0b9e27f MB |
7127 | |
7128 | fi | |
1db8dc4a VZ |
7129 | |
7130 | ||
7131 | eval "$ac_cv_use_togglebtn" | |
7132 | if test "$no_cache" != 1; then | |
7133 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
7134 | fi | |
7135 | ||
7136 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
a0b9e27f | 7137 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 7138 | else |
a0b9e27f | 7139 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 7140 | fi |
a0b9e27f | 7141 | |
1db8dc4a | 7142 | |
5005acfe VZ |
7143 | enablestring= |
7144 | echo $ac_n "checking for --${enablestring:-enable}-toolbar""... $ac_c" 1>&6 | |
8b389fab | 7145 | echo "configure:7146: checking for --${enablestring:-enable}-toolbar" >&5 |
10f2d63a VZ |
7146 | no_cache=0 |
7147 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
7148 | if test "${enable_toolbar+set}" = set; then | |
7149 | enableval="$enable_toolbar" | |
a0b9e27f | 7150 | |
10f2d63a VZ |
7151 | if test "$enableval" = yes; then |
7152 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
7153 | else | |
7154 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
7155 | fi | |
a0b9e27f | 7156 | |
10f2d63a | 7157 | else |
a0b9e27f | 7158 | |
10f2d63a VZ |
7159 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
7160 | if test "x$LINE" != x ; then | |
7161 | eval "DEFAULT_$LINE" | |
7162 | else | |
7163 | no_cache=1 | |
7164 | fi | |
7165 | ||
7166 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
a0b9e27f MB |
7167 | |
7168 | fi | |
10f2d63a VZ |
7169 | |
7170 | ||
7171 | eval "$ac_cv_use_toolbar" | |
7172 | if test "$no_cache" != 1; then | |
7173 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
7174 | fi | |
7175 | ||
7176 | if test "$wxUSE_TOOLBAR" = yes; then | |
a0b9e27f | 7177 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7178 | else |
a0b9e27f | 7179 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7180 | fi |
a0b9e27f | 7181 | |
10f2d63a | 7182 | |
5005acfe VZ |
7183 | enablestring= |
7184 | echo $ac_n "checking for --${enablestring:-enable}-tbarnative""... $ac_c" 1>&6 | |
8b389fab | 7185 | echo "configure:7186: checking for --${enablestring:-enable}-tbarnative" >&5 |
360d6699 VZ |
7186 | no_cache=0 |
7187 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
7188 | if test "${enable_tbarnative+set}" = set; then | |
7189 | enableval="$enable_tbarnative" | |
a0b9e27f | 7190 | |
360d6699 VZ |
7191 | if test "$enableval" = yes; then |
7192 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
7193 | else | |
7194 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
7195 | fi | |
a0b9e27f | 7196 | |
360d6699 | 7197 | else |
a0b9e27f | 7198 | |
360d6699 VZ |
7199 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
7200 | if test "x$LINE" != x ; then | |
7201 | eval "DEFAULT_$LINE" | |
7202 | else | |
7203 | no_cache=1 | |
7204 | fi | |
7205 | ||
7206 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
a0b9e27f MB |
7207 | |
7208 | fi | |
360d6699 VZ |
7209 | |
7210 | ||
7211 | eval "$ac_cv_use_tbarnative" | |
7212 | if test "$no_cache" != 1; then | |
7213 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
7214 | fi | |
7215 | ||
7216 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
a0b9e27f | 7217 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7218 | else |
a0b9e27f | 7219 | echo "$ac_t""no" 1>&6 |
360d6699 | 7220 | fi |
a0b9e27f | 7221 | |
360d6699 | 7222 | |
5005acfe VZ |
7223 | enablestring= |
7224 | echo $ac_n "checking for --${enablestring:-enable}-tbarsmpl""... $ac_c" 1>&6 | |
8b389fab | 7225 | echo "configure:7226: checking for --${enablestring:-enable}-tbarsmpl" >&5 |
360d6699 VZ |
7226 | no_cache=0 |
7227 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
7228 | if test "${enable_tbarsmpl+set}" = set; then | |
7229 | enableval="$enable_tbarsmpl" | |
a0b9e27f | 7230 | |
360d6699 VZ |
7231 | if test "$enableval" = yes; then |
7232 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
7233 | else | |
7234 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
7235 | fi | |
a0b9e27f | 7236 | |
360d6699 | 7237 | else |
a0b9e27f | 7238 | |
360d6699 VZ |
7239 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
7240 | if test "x$LINE" != x ; then | |
7241 | eval "DEFAULT_$LINE" | |
7242 | else | |
7243 | no_cache=1 | |
7244 | fi | |
7245 | ||
7246 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
a0b9e27f MB |
7247 | |
7248 | fi | |
360d6699 VZ |
7249 | |
7250 | ||
7251 | eval "$ac_cv_use_tbarsmpl" | |
7252 | if test "$no_cache" != 1; then | |
7253 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
7254 | fi | |
7255 | ||
7256 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
a0b9e27f | 7257 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7258 | else |
a0b9e27f | 7259 | echo "$ac_t""no" 1>&6 |
360d6699 | 7260 | fi |
a0b9e27f | 7261 | |
360d6699 | 7262 | |
5005acfe VZ |
7263 | enablestring= |
7264 | echo $ac_n "checking for --${enablestring:-enable}-treectrl""... $ac_c" 1>&6 | |
8b389fab | 7265 | echo "configure:7266: checking for --${enablestring:-enable}-treectrl" >&5 |
10f2d63a VZ |
7266 | no_cache=0 |
7267 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
7268 | if test "${enable_treectrl+set}" = set; then | |
7269 | enableval="$enable_treectrl" | |
a0b9e27f | 7270 | |
10f2d63a VZ |
7271 | if test "$enableval" = yes; then |
7272 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
7273 | else | |
7274 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
7275 | fi | |
a0b9e27f | 7276 | |
10f2d63a | 7277 | else |
a0b9e27f | 7278 | |
10f2d63a VZ |
7279 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
7280 | if test "x$LINE" != x ; then | |
7281 | eval "DEFAULT_$LINE" | |
7282 | else | |
7283 | no_cache=1 | |
7284 | fi | |
7285 | ||
7286 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
a0b9e27f MB |
7287 | |
7288 | fi | |
10f2d63a VZ |
7289 | |
7290 | ||
1e6feb95 VZ |
7291 | eval "$ac_cv_use_treectrl" |
7292 | if test "$no_cache" != 1; then | |
7293 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
7294 | fi | |
7295 | ||
7296 | if test "$wxUSE_TREECTRL" = yes; then | |
a0b9e27f | 7297 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7298 | else |
a0b9e27f | 7299 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7300 | fi |
a0b9e27f | 7301 | |
1e6feb95 | 7302 | |
5005acfe VZ |
7303 | enablestring= |
7304 | echo $ac_n "checking for --${enablestring:-enable}-tipwindow""... $ac_c" 1>&6 | |
8b389fab | 7305 | echo "configure:7306: checking for --${enablestring:-enable}-tipwindow" >&5 |
9926e4a4 VZ |
7306 | no_cache=0 |
7307 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
7308 | if test "${enable_tipwindow+set}" = set; then | |
7309 | enableval="$enable_tipwindow" | |
a0b9e27f | 7310 | |
9926e4a4 VZ |
7311 | if test "$enableval" = yes; then |
7312 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
7313 | else | |
7314 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
7315 | fi | |
a0b9e27f | 7316 | |
9926e4a4 | 7317 | else |
a0b9e27f | 7318 | |
9926e4a4 VZ |
7319 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` |
7320 | if test "x$LINE" != x ; then | |
7321 | eval "DEFAULT_$LINE" | |
7322 | else | |
7323 | no_cache=1 | |
7324 | fi | |
7325 | ||
7326 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
a0b9e27f MB |
7327 | |
7328 | fi | |
9926e4a4 VZ |
7329 | |
7330 | ||
7331 | eval "$ac_cv_use_tipwindow" | |
7332 | if test "$no_cache" != 1; then | |
7333 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
7334 | fi | |
7335 | ||
7336 | if test "$wxUSE_TIPWINDOW" = yes; then | |
a0b9e27f | 7337 | echo "$ac_t""yes" 1>&6 |
9926e4a4 | 7338 | else |
a0b9e27f | 7339 | echo "$ac_t""no" 1>&6 |
9926e4a4 | 7340 | fi |
a0b9e27f | 7341 | |
9926e4a4 | 7342 | |
5005acfe VZ |
7343 | enablestring= |
7344 | echo $ac_n "checking for --${enablestring:-enable}-popupwin""... $ac_c" 1>&6 | |
8b389fab | 7345 | echo "configure:7346: checking for --${enablestring:-enable}-popupwin" >&5 |
9f41d601 RR |
7346 | no_cache=0 |
7347 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
7348 | if test "${enable_popupwin+set}" = set; then | |
7349 | enableval="$enable_popupwin" | |
a0b9e27f | 7350 | |
9f41d601 RR |
7351 | if test "$enableval" = yes; then |
7352 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
7353 | else | |
7354 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
7355 | fi | |
a0b9e27f | 7356 | |
9f41d601 | 7357 | else |
a0b9e27f | 7358 | |
9f41d601 RR |
7359 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` |
7360 | if test "x$LINE" != x ; then | |
7361 | eval "DEFAULT_$LINE" | |
7362 | else | |
7363 | no_cache=1 | |
7364 | fi | |
7365 | ||
7366 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
a0b9e27f MB |
7367 | |
7368 | fi | |
9f41d601 RR |
7369 | |
7370 | ||
7371 | eval "$ac_cv_use_popupwin" | |
7372 | if test "$no_cache" != 1; then | |
7373 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
7374 | fi | |
7375 | ||
7376 | if test "$wxUSE_POPUPWIN" = yes; then | |
a0b9e27f | 7377 | echo "$ac_t""yes" 1>&6 |
9f41d601 | 7378 | else |
a0b9e27f | 7379 | echo "$ac_t""no" 1>&6 |
9f41d601 | 7380 | fi |
a0b9e27f | 7381 | |
52127426 | 7382 | |
8284b0c5 MB |
7383 | |
7384 | ||
5005acfe VZ |
7385 | enablestring= |
7386 | echo $ac_n "checking for --${enablestring:-enable}-commondlg""... $ac_c" 1>&6 | |
8b389fab | 7387 | echo "configure:7388: checking for --${enablestring:-enable}-commondlg" >&5 |
1e6feb95 VZ |
7388 | no_cache=0 |
7389 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
7390 | if test "${enable_commondlg+set}" = set; then | |
7391 | enableval="$enable_commondlg" | |
a0b9e27f | 7392 | |
1e6feb95 VZ |
7393 | if test "$enableval" = yes; then |
7394 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
7395 | else | |
7396 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
7397 | fi | |
a0b9e27f | 7398 | |
1e6feb95 | 7399 | else |
a0b9e27f | 7400 | |
1e6feb95 VZ |
7401 | LINE=`grep "wxUSE_COMMONDLGS" ${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_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
a0b9e27f MB |
7409 | |
7410 | fi | |
1e6feb95 VZ |
7411 | |
7412 | ||
7413 | eval "$ac_cv_use_commondlg" | |
7414 | if test "$no_cache" != 1; then | |
7415 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
7416 | fi | |
7417 | ||
7418 | if test "$wxUSE_COMMONDLGS" = yes; then | |
a0b9e27f | 7419 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7420 | else |
a0b9e27f | 7421 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7422 | fi |
a0b9e27f | 7423 | |
1e6feb95 | 7424 | |
5005acfe VZ |
7425 | enablestring= |
7426 | echo $ac_n "checking for --${enablestring:-enable}-choicedlg""... $ac_c" 1>&6 | |
8b389fab | 7427 | echo "configure:7428: checking for --${enablestring:-enable}-choicedlg" >&5 |
1e6feb95 VZ |
7428 | no_cache=0 |
7429 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
7430 | if test "${enable_choicedlg+set}" = set; then | |
7431 | enableval="$enable_choicedlg" | |
a0b9e27f | 7432 | |
1e6feb95 VZ |
7433 | if test "$enableval" = yes; then |
7434 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
7435 | else | |
7436 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
7437 | fi | |
a0b9e27f | 7438 | |
1e6feb95 | 7439 | else |
a0b9e27f | 7440 | |
1e6feb95 VZ |
7441 | LINE=`grep "wxUSE_CHOICEDLG" ${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_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
a0b9e27f MB |
7449 | |
7450 | fi | |
1e6feb95 VZ |
7451 | |
7452 | ||
7453 | eval "$ac_cv_use_choicedlg" | |
7454 | if test "$no_cache" != 1; then | |
7455 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
7456 | fi | |
7457 | ||
7458 | if test "$wxUSE_CHOICEDLG" = yes; then | |
a0b9e27f | 7459 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7460 | else |
a0b9e27f | 7461 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7462 | fi |
a0b9e27f | 7463 | |
1e6feb95 | 7464 | |
5005acfe VZ |
7465 | enablestring= |
7466 | echo $ac_n "checking for --${enablestring:-enable}-coldlg""... $ac_c" 1>&6 | |
8b389fab | 7467 | echo "configure:7468: checking for --${enablestring:-enable}-coldlg" >&5 |
1e6feb95 VZ |
7468 | no_cache=0 |
7469 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
7470 | if test "${enable_coldlg+set}" = set; then | |
7471 | enableval="$enable_coldlg" | |
a0b9e27f | 7472 | |
1e6feb95 VZ |
7473 | if test "$enableval" = yes; then |
7474 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
7475 | else | |
7476 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
7477 | fi | |
a0b9e27f | 7478 | |
1e6feb95 | 7479 | else |
a0b9e27f | 7480 | |
1e6feb95 VZ |
7481 | LINE=`grep "wxUSE_COLOURDLG" ${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_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
a0b9e27f MB |
7489 | |
7490 | fi | |
1e6feb95 VZ |
7491 | |
7492 | ||
7493 | eval "$ac_cv_use_coldlg" | |
7494 | if test "$no_cache" != 1; then | |
7495 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
7496 | fi | |
7497 | ||
7498 | if test "$wxUSE_COLOURDLG" = 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}-filedlg""... $ac_c" 1>&6 | |
8b389fab | 7507 | echo "configure:7508: checking for --${enablestring:-enable}-filedlg" >&5 |
1e6feb95 VZ |
7508 | no_cache=0 |
7509 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
7510 | if test "${enable_filedlg+set}" = set; then | |
7511 | enableval="$enable_filedlg" | |
a0b9e27f | 7512 | |
1e6feb95 VZ |
7513 | if test "$enableval" = yes; then |
7514 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
7515 | else | |
7516 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
7517 | fi | |
a0b9e27f | 7518 | |
1e6feb95 | 7519 | else |
a0b9e27f | 7520 | |
1e6feb95 VZ |
7521 | LINE=`grep "wxUSE_FILEDLG" ${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_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
a0b9e27f MB |
7529 | |
7530 | fi | |
1e6feb95 VZ |
7531 | |
7532 | ||
7533 | eval "$ac_cv_use_filedlg" | |
7534 | if test "$no_cache" != 1; then | |
7535 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
7536 | fi | |
7537 | ||
7538 | if test "$wxUSE_FILEDLG" = yes; then | |
a0b9e27f | 7539 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7540 | else |
a0b9e27f | 7541 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7542 | fi |
a0b9e27f | 7543 | |
1e6feb95 | 7544 | |
5005acfe VZ |
7545 | enablestring= |
7546 | echo $ac_n "checking for --${enablestring:-enable}-finddlg""... $ac_c" 1>&6 | |
8b389fab | 7547 | echo "configure:7548: checking for --${enablestring:-enable}-finddlg" >&5 |
8db37e06 | 7548 | no_cache=0 |
69d27ff7 MB |
7549 | # Check whether --enable-finddlg or --disable-finddlg was given. |
7550 | if test "${enable_finddlg+set}" = set; then | |
7551 | enableval="$enable_finddlg" | |
a0b9e27f | 7552 | |
8db37e06 | 7553 | if test "$enableval" = yes; then |
69d27ff7 | 7554 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 7555 | else |
69d27ff7 | 7556 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 | 7557 | fi |
a0b9e27f | 7558 | |
8db37e06 | 7559 | else |
a0b9e27f | 7560 | |
8db37e06 VZ |
7561 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` |
7562 | if test "x$LINE" != x ; then | |
7563 | eval "DEFAULT_$LINE" | |
7564 | else | |
7565 | no_cache=1 | |
7566 | fi | |
7567 | ||
69d27ff7 | 7568 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
a0b9e27f MB |
7569 | |
7570 | fi | |
8db37e06 VZ |
7571 | |
7572 | ||
69d27ff7 | 7573 | eval "$ac_cv_use_finddlg" |
8db37e06 | 7574 | if test "$no_cache" != 1; then |
69d27ff7 | 7575 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
7576 | fi |
7577 | ||
7578 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
a0b9e27f | 7579 | echo "$ac_t""yes" 1>&6 |
8db37e06 | 7580 | else |
a0b9e27f | 7581 | echo "$ac_t""no" 1>&6 |
8db37e06 | 7582 | fi |
a0b9e27f | 7583 | |
8db37e06 | 7584 | |
5005acfe VZ |
7585 | enablestring= |
7586 | echo $ac_n "checking for --${enablestring:-enable}-fontdlg""... $ac_c" 1>&6 | |
8b389fab | 7587 | echo "configure:7588: checking for --${enablestring:-enable}-fontdlg" >&5 |
1e6feb95 VZ |
7588 | no_cache=0 |
7589 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
7590 | if test "${enable_fontdlg+set}" = set; then | |
7591 | enableval="$enable_fontdlg" | |
a0b9e27f | 7592 | |
1e6feb95 VZ |
7593 | if test "$enableval" = yes; then |
7594 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
7595 | else | |
7596 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
7597 | fi | |
a0b9e27f | 7598 | |
1e6feb95 | 7599 | else |
a0b9e27f | 7600 | |
1e6feb95 VZ |
7601 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` |
7602 | if test "x$LINE" != x ; then | |
7603 | eval "DEFAULT_$LINE" | |
7604 | else | |
7605 | no_cache=1 | |
7606 | fi | |
7607 | ||
7608 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
a0b9e27f MB |
7609 | |
7610 | fi | |
1e6feb95 VZ |
7611 | |
7612 | ||
7613 | eval "$ac_cv_use_fontdlg" | |
7614 | if test "$no_cache" != 1; then | |
7615 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
7616 | fi | |
7617 | ||
7618 | if test "$wxUSE_FONTDLG" = yes; then | |
a0b9e27f | 7619 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7620 | else |
a0b9e27f | 7621 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7622 | fi |
a0b9e27f | 7623 | |
1e6feb95 | 7624 | |
5005acfe VZ |
7625 | enablestring= |
7626 | echo $ac_n "checking for --${enablestring:-enable}-dirdlg""... $ac_c" 1>&6 | |
8b389fab | 7627 | echo "configure:7628: checking for --${enablestring:-enable}-dirdlg" >&5 |
1e6feb95 VZ |
7628 | no_cache=0 |
7629 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
7630 | if test "${enable_dirdlg+set}" = set; then | |
7631 | enableval="$enable_dirdlg" | |
a0b9e27f | 7632 | |
1e6feb95 VZ |
7633 | if test "$enableval" = yes; then |
7634 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
7635 | else | |
7636 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
7637 | fi | |
a0b9e27f | 7638 | |
1e6feb95 | 7639 | else |
a0b9e27f | 7640 | |
1e6feb95 VZ |
7641 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` |
7642 | if test "x$LINE" != x ; then | |
7643 | eval "DEFAULT_$LINE" | |
7644 | else | |
7645 | no_cache=1 | |
7646 | fi | |
7647 | ||
7648 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
a0b9e27f MB |
7649 | |
7650 | fi | |
1e6feb95 VZ |
7651 | |
7652 | ||
7653 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 7654 | if test "$no_cache" != 1; then |
1e6feb95 | 7655 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7656 | fi |
7657 | ||
1e6feb95 | 7658 | if test "$wxUSE_DIRDLG" = yes; then |
a0b9e27f | 7659 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7660 | else |
a0b9e27f | 7661 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7662 | fi |
a0b9e27f | 7663 | |
698dcdb6 | 7664 | |
5005acfe VZ |
7665 | enablestring= |
7666 | echo $ac_n "checking for --${enablestring:-enable}-msgdlg""... $ac_c" 1>&6 | |
8b389fab | 7667 | echo "configure:7668: checking for --${enablestring:-enable}-msgdlg" >&5 |
10f2d63a | 7668 | no_cache=0 |
1e6feb95 VZ |
7669 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
7670 | if test "${enable_msgdlg+set}" = set; then | |
7671 | enableval="$enable_msgdlg" | |
a0b9e27f | 7672 | |
10f2d63a | 7673 | if test "$enableval" = yes; then |
1e6feb95 | 7674 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 7675 | else |
1e6feb95 | 7676 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 7677 | fi |
a0b9e27f | 7678 | |
10f2d63a | 7679 | else |
a0b9e27f | 7680 | |
1e6feb95 | 7681 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7682 | if test "x$LINE" != x ; then |
7683 | eval "DEFAULT_$LINE" | |
7684 | else | |
7685 | no_cache=1 | |
7686 | fi | |
7687 | ||
1e6feb95 | 7688 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
a0b9e27f MB |
7689 | |
7690 | fi | |
10f2d63a VZ |
7691 | |
7692 | ||
1e6feb95 | 7693 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 7694 | if test "$no_cache" != 1; then |
1e6feb95 | 7695 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7696 | fi |
7697 | ||
1e6feb95 | 7698 | if test "$wxUSE_MSGDLG" = yes; then |
a0b9e27f | 7699 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7700 | else |
a0b9e27f | 7701 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7702 | fi |
a0b9e27f | 7703 | |
10f2d63a | 7704 | |
5005acfe VZ |
7705 | enablestring= |
7706 | echo $ac_n "checking for --${enablestring:-enable}-numberdlg""... $ac_c" 1>&6 | |
8b389fab | 7707 | echo "configure:7708: checking for --${enablestring:-enable}-numberdlg" >&5 |
10f2d63a | 7708 | no_cache=0 |
1e6feb95 VZ |
7709 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
7710 | if test "${enable_numberdlg+set}" = set; then | |
7711 | enableval="$enable_numberdlg" | |
a0b9e27f | 7712 | |
10f2d63a | 7713 | if test "$enableval" = yes; then |
1e6feb95 | 7714 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 7715 | else |
1e6feb95 | 7716 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 7717 | fi |
a0b9e27f | 7718 | |
10f2d63a | 7719 | else |
a0b9e27f | 7720 | |
1e6feb95 | 7721 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7722 | if test "x$LINE" != x ; then |
7723 | eval "DEFAULT_$LINE" | |
7724 | else | |
7725 | no_cache=1 | |
7726 | fi | |
7727 | ||
1e6feb95 | 7728 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
a0b9e27f MB |
7729 | |
7730 | fi | |
10f2d63a VZ |
7731 | |
7732 | ||
1e6feb95 | 7733 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 7734 | if test "$no_cache" != 1; then |
1e6feb95 | 7735 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7736 | fi |
7737 | ||
1e6feb95 | 7738 | if test "$wxUSE_NUMBERDLG" = yes; then |
a0b9e27f | 7739 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7740 | else |
a0b9e27f | 7741 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7742 | fi |
a0b9e27f | 7743 | |
10f2d63a | 7744 | |
5005acfe VZ |
7745 | enablestring= |
7746 | echo $ac_n "checking for --${enablestring:-enable}-splash""... $ac_c" 1>&6 | |
8b389fab | 7747 | echo "configure:7748: checking for --${enablestring:-enable}-splash" >&5 |
cbca9943 VZ |
7748 | no_cache=0 |
7749 | # Check whether --enable-splash or --disable-splash was given. | |
7750 | if test "${enable_splash+set}" = set; then | |
7751 | enableval="$enable_splash" | |
a0b9e27f | 7752 | |
cbca9943 VZ |
7753 | if test "$enableval" = yes; then |
7754 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
7755 | else | |
7756 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
7757 | fi | |
a0b9e27f | 7758 | |
cbca9943 | 7759 | else |
a0b9e27f | 7760 | |
cbca9943 VZ |
7761 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` |
7762 | if test "x$LINE" != x ; then | |
7763 | eval "DEFAULT_$LINE" | |
7764 | else | |
7765 | no_cache=1 | |
7766 | fi | |
7767 | ||
7768 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
a0b9e27f MB |
7769 | |
7770 | fi | |
cbca9943 VZ |
7771 | |
7772 | ||
7773 | eval "$ac_cv_use_splash" | |
7774 | if test "$no_cache" != 1; then | |
7775 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
7776 | fi | |
7777 | ||
7778 | if test "$wxUSE_SPLASH" = yes; then | |
a0b9e27f | 7779 | echo "$ac_t""yes" 1>&6 |
cbca9943 | 7780 | else |
a0b9e27f | 7781 | echo "$ac_t""no" 1>&6 |
cbca9943 | 7782 | fi |
a0b9e27f | 7783 | |
cbca9943 | 7784 | |
5005acfe VZ |
7785 | enablestring= |
7786 | echo $ac_n "checking for --${enablestring:-enable}-textdlg""... $ac_c" 1>&6 | |
8b389fab | 7787 | echo "configure:7788: checking for --${enablestring:-enable}-textdlg" >&5 |
10f2d63a VZ |
7788 | no_cache=0 |
7789 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
7790 | if test "${enable_textdlg+set}" = set; then | |
7791 | enableval="$enable_textdlg" | |
a0b9e27f | 7792 | |
10f2d63a VZ |
7793 | if test "$enableval" = yes; then |
7794 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
7795 | else | |
7796 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
7797 | fi | |
a0b9e27f | 7798 | |
10f2d63a | 7799 | else |
a0b9e27f | 7800 | |
10f2d63a VZ |
7801 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
7802 | if test "x$LINE" != x ; then | |
7803 | eval "DEFAULT_$LINE" | |
7804 | else | |
7805 | no_cache=1 | |
7806 | fi | |
7807 | ||
7808 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
a0b9e27f MB |
7809 | |
7810 | fi | |
10f2d63a VZ |
7811 | |
7812 | ||
7813 | eval "$ac_cv_use_textdlg" | |
7814 | if test "$no_cache" != 1; then | |
7815 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
7816 | fi | |
7817 | ||
7818 | if test "$wxUSE_TEXTDLG" = yes; then | |
a0b9e27f | 7819 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7820 | else |
a0b9e27f | 7821 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7822 | fi |
a0b9e27f | 7823 | |
10f2d63a | 7824 | |
5005acfe VZ |
7825 | enablestring= |
7826 | echo $ac_n "checking for --${enablestring:-enable}-tipdlg""... $ac_c" 1>&6 | |
8b389fab | 7827 | echo "configure:7828: checking for --${enablestring:-enable}-tipdlg" >&5 |
10f2d63a VZ |
7828 | no_cache=0 |
7829 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
7830 | if test "${enable_tipdlg+set}" = set; then | |
7831 | enableval="$enable_tipdlg" | |
a0b9e27f | 7832 | |
10f2d63a VZ |
7833 | if test "$enableval" = yes; then |
7834 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
7835 | else | |
7836 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
7837 | fi | |
a0b9e27f | 7838 | |
10f2d63a | 7839 | else |
a0b9e27f | 7840 | |
10f2d63a VZ |
7841 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
7842 | if test "x$LINE" != x ; then | |
7843 | eval "DEFAULT_$LINE" | |
7844 | else | |
7845 | no_cache=1 | |
7846 | fi | |
7847 | ||
7848 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
a0b9e27f MB |
7849 | |
7850 | fi | |
10f2d63a VZ |
7851 | |
7852 | ||
7853 | eval "$ac_cv_use_tipdlg" | |
7854 | if test "$no_cache" != 1; then | |
7855 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
7856 | fi | |
7857 | ||
7858 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
a0b9e27f | 7859 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7860 | else |
a0b9e27f | 7861 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7862 | fi |
a0b9e27f | 7863 | |
10f2d63a | 7864 | |
5005acfe VZ |
7865 | enablestring= |
7866 | echo $ac_n "checking for --${enablestring:-enable}-progressdlg""... $ac_c" 1>&6 | |
8b389fab | 7867 | echo "configure:7868: checking for --${enablestring:-enable}-progressdlg" >&5 |
10f2d63a VZ |
7868 | no_cache=0 |
7869 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
7870 | if test "${enable_progressdlg+set}" = set; then | |
7871 | enableval="$enable_progressdlg" | |
a0b9e27f | 7872 | |
10f2d63a VZ |
7873 | if test "$enableval" = yes; then |
7874 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
7875 | else | |
7876 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
7877 | fi | |
a0b9e27f | 7878 | |
10f2d63a | 7879 | else |
a0b9e27f | 7880 | |
10f2d63a VZ |
7881 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
7882 | if test "x$LINE" != x ; then | |
7883 | eval "DEFAULT_$LINE" | |
7884 | else | |
7885 | no_cache=1 | |
7886 | fi | |
7887 | ||
7888 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
a0b9e27f MB |
7889 | |
7890 | fi | |
10f2d63a VZ |
7891 | |
7892 | ||
7893 | eval "$ac_cv_use_progressdlg" | |
7894 | if test "$no_cache" != 1; then | |
7895 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
7896 | fi | |
7897 | ||
7898 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
a0b9e27f | 7899 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7900 | else |
a0b9e27f | 7901 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7902 | fi |
a0b9e27f | 7903 | |
10f2d63a | 7904 | |
5005acfe VZ |
7905 | enablestring= |
7906 | echo $ac_n "checking for --${enablestring:-enable}-wizarddlg""... $ac_c" 1>&6 | |
8b389fab | 7907 | echo "configure:7908: checking for --${enablestring:-enable}-wizarddlg" >&5 |
b1f5d087 VZ |
7908 | no_cache=0 |
7909 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
7910 | if test "${enable_wizarddlg+set}" = set; then | |
7911 | enableval="$enable_wizarddlg" | |
a0b9e27f | 7912 | |
b1f5d087 VZ |
7913 | if test "$enableval" = yes; then |
7914 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
7915 | else | |
7916 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
7917 | fi | |
a0b9e27f | 7918 | |
b1f5d087 | 7919 | else |
a0b9e27f | 7920 | |
b1f5d087 VZ |
7921 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` |
7922 | if test "x$LINE" != x ; then | |
7923 | eval "DEFAULT_$LINE" | |
7924 | else | |
7925 | no_cache=1 | |
7926 | fi | |
7927 | ||
7928 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
a0b9e27f MB |
7929 | |
7930 | fi | |
b1f5d087 VZ |
7931 | |
7932 | ||
7933 | eval "$ac_cv_use_wizarddlg" | |
7934 | if test "$no_cache" != 1; then | |
7935 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
7936 | fi | |
7937 | ||
7938 | if test "$wxUSE_WIZARDDLG" = yes; then | |
a0b9e27f | 7939 | echo "$ac_t""yes" 1>&6 |
b1f5d087 | 7940 | else |
a0b9e27f | 7941 | echo "$ac_t""no" 1>&6 |
b1f5d087 | 7942 | fi |
a0b9e27f | 7943 | |
8284b0c5 MB |
7944 | |
7945 | ||
52127426 | 7946 | |
5005acfe VZ |
7947 | enablestring= |
7948 | echo $ac_n "checking for --${enablestring:-enable}-menus""... $ac_c" 1>&6 | |
8b389fab | 7949 | echo "configure:7950: checking for --${enablestring:-enable}-menus" >&5 |
1e6feb95 VZ |
7950 | no_cache=0 |
7951 | # Check whether --enable-menus or --disable-menus was given. | |
7952 | if test "${enable_menus+set}" = set; then | |
7953 | enableval="$enable_menus" | |
a0b9e27f | 7954 | |
1e6feb95 VZ |
7955 | if test "$enableval" = yes; then |
7956 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
7957 | else | |
7958 | ac_cv_use_menus='wxUSE_MENUS=no' | |
7959 | fi | |
a0b9e27f | 7960 | |
1e6feb95 | 7961 | else |
a0b9e27f | 7962 | |
1e6feb95 VZ |
7963 | LINE=`grep "wxUSE_MENUS" ${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_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
a0b9e27f MB |
7971 | |
7972 | fi | |
1e6feb95 VZ |
7973 | |
7974 | ||
7975 | eval "$ac_cv_use_menus" | |
7976 | if test "$no_cache" != 1; then | |
7977 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
7978 | fi | |
7979 | ||
7980 | if test "$wxUSE_MENUS" = yes; then | |
a0b9e27f | 7981 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7982 | else |
a0b9e27f | 7983 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7984 | fi |
a0b9e27f | 7985 | |
1e6feb95 | 7986 | |
5005acfe VZ |
7987 | enablestring= |
7988 | echo $ac_n "checking for --${enablestring:-enable}-miniframe""... $ac_c" 1>&6 | |
8b389fab | 7989 | echo "configure:7990: checking for --${enablestring:-enable}-miniframe" >&5 |
10f2d63a VZ |
7990 | no_cache=0 |
7991 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
7992 | if test "${enable_miniframe+set}" = set; then | |
7993 | enableval="$enable_miniframe" | |
a0b9e27f | 7994 | |
10f2d63a VZ |
7995 | if test "$enableval" = yes; then |
7996 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
7997 | else | |
7998 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
7999 | fi | |
a0b9e27f | 8000 | |
10f2d63a | 8001 | else |
a0b9e27f | 8002 | |
10f2d63a VZ |
8003 | LINE=`grep "wxUSE_MINIFRAME" ${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_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
a0b9e27f MB |
8011 | |
8012 | fi | |
10f2d63a VZ |
8013 | |
8014 | ||
8015 | eval "$ac_cv_use_miniframe" | |
8016 | if test "$no_cache" != 1; then | |
8017 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
8018 | fi | |
8019 | ||
8020 | if test "$wxUSE_MINIFRAME" = 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}-tooltips""... $ac_c" 1>&6 | |
8b389fab | 8029 | echo "configure:8030: checking for --${enablestring:-enable}-tooltips" >&5 |
10f2d63a VZ |
8030 | no_cache=0 |
8031 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
8032 | if test "${enable_tooltips+set}" = set; then | |
8033 | enableval="$enable_tooltips" | |
a0b9e27f | 8034 | |
10f2d63a VZ |
8035 | if test "$enableval" = yes; then |
8036 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
8037 | else | |
8038 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
8039 | fi | |
a0b9e27f | 8040 | |
10f2d63a | 8041 | else |
a0b9e27f | 8042 | |
10f2d63a VZ |
8043 | LINE=`grep "wxUSE_TOOLTIPS" ${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_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
a0b9e27f MB |
8051 | |
8052 | fi | |
10f2d63a VZ |
8053 | |
8054 | ||
8055 | eval "$ac_cv_use_tooltips" | |
8056 | if test "$no_cache" != 1; then | |
8057 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
8058 | fi | |
8059 | ||
8060 | if test "$wxUSE_TOOLTIPS" = 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}-splines""... $ac_c" 1>&6 | |
8b389fab | 8069 | echo "configure:8070: checking for --${enablestring:-enable}-splines" >&5 |
10f2d63a VZ |
8070 | no_cache=0 |
8071 | # Check whether --enable-splines or --disable-splines was given. | |
8072 | if test "${enable_splines+set}" = set; then | |
8073 | enableval="$enable_splines" | |
a0b9e27f | 8074 | |
10f2d63a VZ |
8075 | if test "$enableval" = yes; then |
8076 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
8077 | else | |
8078 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
8079 | fi | |
a0b9e27f | 8080 | |
10f2d63a | 8081 | else |
a0b9e27f | 8082 | |
10f2d63a VZ |
8083 | LINE=`grep "wxUSE_SPLINES" ${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_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
a0b9e27f MB |
8091 | |
8092 | fi | |
10f2d63a VZ |
8093 | |
8094 | ||
8095 | eval "$ac_cv_use_splines" | |
8096 | if test "$no_cache" != 1; then | |
8097 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
8098 | fi | |
8099 | ||
8100 | if test "$wxUSE_SPLINES" = 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}-validators""... $ac_c" 1>&6 | |
8b389fab | 8109 | echo "configure:8110: checking for --${enablestring:-enable}-validators" >&5 |
10f2d63a VZ |
8110 | no_cache=0 |
8111 | # Check whether --enable-validators or --disable-validators was given. | |
8112 | if test "${enable_validators+set}" = set; then | |
8113 | enableval="$enable_validators" | |
a0b9e27f | 8114 | |
10f2d63a VZ |
8115 | if test "$enableval" = yes; then |
8116 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
8117 | else | |
8118 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
8119 | fi | |
a0b9e27f | 8120 | |
10f2d63a | 8121 | else |
a0b9e27f | 8122 | |
10f2d63a VZ |
8123 | LINE=`grep "wxUSE_VALIDATORS" ${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_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
a0b9e27f MB |
8131 | |
8132 | fi | |
10f2d63a VZ |
8133 | |
8134 | ||
8135 | eval "$ac_cv_use_validators" | |
8136 | if test "$no_cache" != 1; then | |
8137 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
8138 | fi | |
8139 | ||
8140 | if test "$wxUSE_VALIDATORS" = yes; then | |
a0b9e27f | 8141 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8142 | else |
a0b9e27f | 8143 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8144 | fi |
a0b9e27f | 8145 | |
10f2d63a | 8146 | |
5005acfe VZ |
8147 | enablestring= |
8148 | echo $ac_n "checking for --${enablestring:-enable}-busyinfo""... $ac_c" 1>&6 | |
8b389fab | 8149 | echo "configure:8150: checking for --${enablestring:-enable}-busyinfo" >&5 |
10f2d63a VZ |
8150 | no_cache=0 |
8151 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
8152 | if test "${enable_busyinfo+set}" = set; then | |
8153 | enableval="$enable_busyinfo" | |
a0b9e27f | 8154 | |
10f2d63a VZ |
8155 | if test "$enableval" = yes; then |
8156 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
8157 | else | |
8158 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
8159 | fi | |
a0b9e27f | 8160 | |
10f2d63a | 8161 | else |
a0b9e27f | 8162 | |
10f2d63a VZ |
8163 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
8164 | if test "x$LINE" != x ; then | |
8165 | eval "DEFAULT_$LINE" | |
8166 | else | |
8167 | no_cache=1 | |
8168 | fi | |
8169 | ||
8170 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
a0b9e27f MB |
8171 | |
8172 | fi | |
10f2d63a VZ |
8173 | |
8174 | ||
8175 | eval "$ac_cv_use_busyinfo" | |
8176 | if test "$no_cache" != 1; then | |
8177 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
8178 | fi | |
8179 | ||
8180 | if test "$wxUSE_BUSYINFO" = yes; then | |
a0b9e27f | 8181 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8182 | else |
a0b9e27f | 8183 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8184 | fi |
a0b9e27f | 8185 | |
10f2d63a | 8186 | |
5005acfe VZ |
8187 | enablestring= |
8188 | echo $ac_n "checking for --${enablestring:-enable}-joystick""... $ac_c" 1>&6 | |
8b389fab | 8189 | echo "configure:8190: checking for --${enablestring:-enable}-joystick" >&5 |
f6bcfd97 BP |
8190 | no_cache=0 |
8191 | # Check whether --enable-joystick or --disable-joystick was given. | |
8192 | if test "${enable_joystick+set}" = set; then | |
8193 | enableval="$enable_joystick" | |
a0b9e27f | 8194 | |
f6bcfd97 BP |
8195 | if test "$enableval" = yes; then |
8196 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
8197 | else | |
8198 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
8199 | fi | |
a0b9e27f | 8200 | |
f6bcfd97 | 8201 | else |
a0b9e27f | 8202 | |
f6bcfd97 BP |
8203 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
8204 | if test "x$LINE" != x ; then | |
8205 | eval "DEFAULT_$LINE" | |
8206 | else | |
8207 | no_cache=1 | |
8208 | fi | |
8209 | ||
8210 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
a0b9e27f MB |
8211 | |
8212 | fi | |
f6bcfd97 BP |
8213 | |
8214 | ||
8215 | eval "$ac_cv_use_joystick" | |
8216 | if test "$no_cache" != 1; then | |
8217 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
8218 | fi | |
8219 | ||
8220 | if test "$wxUSE_JOYSTICK" = yes; then | |
a0b9e27f | 8221 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 8222 | else |
a0b9e27f | 8223 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 8224 | fi |
a0b9e27f | 8225 | |
698dcdb6 | 8226 | |
5005acfe VZ |
8227 | enablestring= |
8228 | echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6 | |
8b389fab | 8229 | echo "configure:8230: checking for --${enablestring:-enable}-metafile" >&5 |
1e6feb95 VZ |
8230 | no_cache=0 |
8231 | # Check whether --enable-metafile or --disable-metafile was given. | |
8232 | if test "${enable_metafile+set}" = set; then | |
8233 | enableval="$enable_metafile" | |
a0b9e27f | 8234 | |
1e6feb95 VZ |
8235 | if test "$enableval" = yes; then |
8236 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
8237 | else | |
8238 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
8239 | fi | |
a0b9e27f | 8240 | |
1e6feb95 | 8241 | else |
a0b9e27f | 8242 | |
1e6feb95 VZ |
8243 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
8244 | if test "x$LINE" != x ; then | |
8245 | eval "DEFAULT_$LINE" | |
8246 | else | |
8247 | no_cache=1 | |
8248 | fi | |
8249 | ||
8250 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
a0b9e27f MB |
8251 | |
8252 | fi | |
1e6feb95 VZ |
8253 | |
8254 | ||
8255 | eval "$ac_cv_use_metafile" | |
8256 | if test "$no_cache" != 1; then | |
8257 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
8258 | fi | |
8259 | ||
8260 | if test "$wxUSE_METAFILE" = yes; then | |
a0b9e27f | 8261 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 8262 | else |
a0b9e27f | 8263 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 8264 | fi |
a0b9e27f | 8265 | |
1e6feb95 | 8266 | |
5005acfe VZ |
8267 | enablestring= |
8268 | echo $ac_n "checking for --${enablestring:-enable}-dragimage""... $ac_c" 1>&6 | |
8b389fab | 8269 | echo "configure:8270: checking for --${enablestring:-enable}-dragimage" >&5 |
24fd6d87 VZ |
8270 | no_cache=0 |
8271 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
8272 | if test "${enable_dragimage+set}" = set; then | |
8273 | enableval="$enable_dragimage" | |
a0b9e27f | 8274 | |
24fd6d87 VZ |
8275 | if test "$enableval" = yes; then |
8276 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
8277 | else | |
8278 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
8279 | fi | |
a0b9e27f | 8280 | |
24fd6d87 | 8281 | else |
a0b9e27f | 8282 | |
24fd6d87 VZ |
8283 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` |
8284 | if test "x$LINE" != x ; then | |
8285 | eval "DEFAULT_$LINE" | |
8286 | else | |
8287 | no_cache=1 | |
8288 | fi | |
8289 | ||
8290 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
a0b9e27f MB |
8291 | |
8292 | fi | |
24fd6d87 VZ |
8293 | |
8294 | ||
8295 | eval "$ac_cv_use_dragimage" | |
8296 | if test "$no_cache" != 1; then | |
8297 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
8298 | fi | |
8299 | ||
8300 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
a0b9e27f | 8301 | echo "$ac_t""yes" 1>&6 |
24fd6d87 | 8302 | else |
a0b9e27f | 8303 | echo "$ac_t""no" 1>&6 |
24fd6d87 | 8304 | fi |
a0b9e27f | 8305 | |
52127426 | 8306 | |
7bb2947d MB |
8307 | enablestring= |
8308 | echo $ac_n "checking for --${enablestring:-enable}-accessibility""... $ac_c" 1>&6 | |
8b389fab | 8309 | echo "configure:8310: checking for --${enablestring:-enable}-accessibility" >&5 |
7bb2947d MB |
8310 | no_cache=0 |
8311 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
8312 | if test "${enable_accessibility+set}" = set; then | |
8313 | enableval="$enable_accessibility" | |
8314 | ||
8315 | if test "$enableval" = yes; then | |
8316 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
8317 | else | |
8318 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
8319 | fi | |
8320 | ||
8321 | else | |
8322 | ||
8323 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` | |
8324 | if test "x$LINE" != x ; then | |
8325 | eval "DEFAULT_$LINE" | |
8326 | else | |
8327 | no_cache=1 | |
8328 | fi | |
8329 | ||
8330 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
8331 | ||
8332 | fi | |
8333 | ||
8334 | ||
8335 | eval "$ac_cv_use_accessibility" | |
8336 | if test "$no_cache" != 1; then | |
8337 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
8338 | fi | |
8339 | ||
8340 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
8341 | echo "$ac_t""yes" 1>&6 | |
8342 | else | |
8343 | echo "$ac_t""no" 1>&6 | |
8344 | fi | |
8345 | ||
8346 | ||
8284b0c5 MB |
8347 | |
8348 | ||
5005acfe VZ |
8349 | enablestring= |
8350 | echo $ac_n "checking for --${enablestring:-enable}-palette""... $ac_c" 1>&6 | |
8b389fab | 8351 | echo "configure:8352: checking for --${enablestring:-enable}-palette" >&5 |
edae8572 VZ |
8352 | no_cache=0 |
8353 | # Check whether --enable-palette or --disable-palette was given. | |
8354 | if test "${enable_palette+set}" = set; then | |
8355 | enableval="$enable_palette" | |
a0b9e27f | 8356 | |
edae8572 VZ |
8357 | if test "$enableval" = yes; then |
8358 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
8359 | else | |
8360 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
8361 | fi | |
a0b9e27f | 8362 | |
edae8572 | 8363 | else |
a0b9e27f | 8364 | |
edae8572 VZ |
8365 | LINE=`grep "wxUSE_PALETTE" ${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_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
a0b9e27f MB |
8373 | |
8374 | fi | |
edae8572 VZ |
8375 | |
8376 | ||
8377 | eval "$ac_cv_use_palette" | |
8378 | if test "$no_cache" != 1; then | |
8379 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
8380 | fi | |
8381 | ||
8382 | if test "$wxUSE_PALETTE" = yes; then | |
a0b9e27f | 8383 | echo "$ac_t""yes" 1>&6 |
edae8572 | 8384 | else |
a0b9e27f | 8385 | echo "$ac_t""no" 1>&6 |
edae8572 | 8386 | fi |
a0b9e27f | 8387 | |
edae8572 | 8388 | |
5005acfe VZ |
8389 | enablestring= |
8390 | echo $ac_n "checking for --${enablestring:-enable}-image""... $ac_c" 1>&6 | |
8b389fab | 8391 | echo "configure:8392: checking for --${enablestring:-enable}-image" >&5 |
0046ff7c VS |
8392 | no_cache=0 |
8393 | # Check whether --enable-image or --disable-image was given. | |
8394 | if test "${enable_image+set}" = set; then | |
8395 | enableval="$enable_image" | |
a0b9e27f | 8396 | |
0046ff7c VS |
8397 | if test "$enableval" = yes; then |
8398 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
8399 | else | |
8400 | ac_cv_use_image='wxUSE_IMAGE=no' | |
8401 | fi | |
a0b9e27f | 8402 | |
0046ff7c | 8403 | else |
a0b9e27f | 8404 | |
0046ff7c VS |
8405 | LINE=`grep "wxUSE_IMAGE" ${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_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
a0b9e27f MB |
8413 | |
8414 | fi | |
0046ff7c VS |
8415 | |
8416 | ||
8417 | eval "$ac_cv_use_image" | |
8418 | if test "$no_cache" != 1; then | |
8419 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
8420 | fi | |
8421 | ||
8422 | if test "$wxUSE_IMAGE" = yes; then | |
a0b9e27f | 8423 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8424 | else |
a0b9e27f | 8425 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8426 | fi |
a0b9e27f | 8427 | |
0046ff7c | 8428 | |
5005acfe VZ |
8429 | enablestring= |
8430 | echo $ac_n "checking for --${enablestring:-enable}-gif""... $ac_c" 1>&6 | |
8b389fab | 8431 | echo "configure:8432: checking for --${enablestring:-enable}-gif" >&5 |
10f2d63a VZ |
8432 | no_cache=0 |
8433 | # Check whether --enable-gif or --disable-gif was given. | |
8434 | if test "${enable_gif+set}" = set; then | |
8435 | enableval="$enable_gif" | |
a0b9e27f | 8436 | |
10f2d63a VZ |
8437 | if test "$enableval" = yes; then |
8438 | ac_cv_use_gif='wxUSE_GIF=yes' | |
8439 | else | |
8440 | ac_cv_use_gif='wxUSE_GIF=no' | |
8441 | fi | |
a0b9e27f | 8442 | |
10f2d63a | 8443 | else |
a0b9e27f | 8444 | |
10f2d63a VZ |
8445 | LINE=`grep "wxUSE_GIF" ${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_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
a0b9e27f MB |
8453 | |
8454 | fi | |
10f2d63a VZ |
8455 | |
8456 | ||
8457 | eval "$ac_cv_use_gif" | |
8458 | if test "$no_cache" != 1; then | |
8459 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
8460 | fi | |
8461 | ||
8462 | if test "$wxUSE_GIF" = yes; then | |
a0b9e27f | 8463 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8464 | else |
a0b9e27f | 8465 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8466 | fi |
a0b9e27f | 8467 | |
10f2d63a | 8468 | |
5005acfe VZ |
8469 | enablestring= |
8470 | echo $ac_n "checking for --${enablestring:-enable}-pcx""... $ac_c" 1>&6 | |
8b389fab | 8471 | echo "configure:8472: checking for --${enablestring:-enable}-pcx" >&5 |
10f2d63a VZ |
8472 | no_cache=0 |
8473 | # Check whether --enable-pcx or --disable-pcx was given. | |
8474 | if test "${enable_pcx+set}" = set; then | |
8475 | enableval="$enable_pcx" | |
a0b9e27f | 8476 | |
10f2d63a VZ |
8477 | if test "$enableval" = yes; then |
8478 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
8479 | else | |
8480 | ac_cv_use_pcx='wxUSE_PCX=no' | |
8481 | fi | |
a0b9e27f | 8482 | |
10f2d63a | 8483 | else |
a0b9e27f | 8484 | |
10f2d63a VZ |
8485 | LINE=`grep "wxUSE_PCX" ${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_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
a0b9e27f MB |
8493 | |
8494 | fi | |
10f2d63a VZ |
8495 | |
8496 | ||
8497 | eval "$ac_cv_use_pcx" | |
8498 | if test "$no_cache" != 1; then | |
8499 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
8500 | fi | |
8501 | ||
8502 | if test "$wxUSE_PCX" = yes; then | |
a0b9e27f | 8503 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8504 | else |
a0b9e27f | 8505 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8506 | fi |
a0b9e27f | 8507 | |
10f2d63a | 8508 | |
5005acfe VZ |
8509 | enablestring= |
8510 | echo $ac_n "checking for --${enablestring:-enable}-iff""... $ac_c" 1>&6 | |
8b389fab | 8511 | echo "configure:8512: checking for --${enablestring:-enable}-iff" >&5 |
4b6b4dfc RR |
8512 | no_cache=0 |
8513 | # Check whether --enable-iff or --disable-iff was given. | |
8514 | if test "${enable_iff+set}" = set; then | |
8515 | enableval="$enable_iff" | |
a0b9e27f | 8516 | |
4b6b4dfc RR |
8517 | if test "$enableval" = yes; then |
8518 | ac_cv_use_iff='wxUSE_IFF=yes' | |
8519 | else | |
8520 | ac_cv_use_iff='wxUSE_IFF=no' | |
8521 | fi | |
a0b9e27f | 8522 | |
4b6b4dfc | 8523 | else |
a0b9e27f | 8524 | |
4b6b4dfc RR |
8525 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` |
8526 | if test "x$LINE" != x ; then | |
8527 | eval "DEFAULT_$LINE" | |
8528 | else | |
8529 | no_cache=1 | |
8530 | fi | |
8531 | ||
8532 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
a0b9e27f MB |
8533 | |
8534 | fi | |
4b6b4dfc RR |
8535 | |
8536 | ||
8537 | eval "$ac_cv_use_iff" | |
8538 | if test "$no_cache" != 1; then | |
8539 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
8540 | fi | |
8541 | ||
8542 | if test "$wxUSE_IFF" = yes; then | |
a0b9e27f | 8543 | echo "$ac_t""yes" 1>&6 |
4b6b4dfc | 8544 | else |
a0b9e27f | 8545 | echo "$ac_t""no" 1>&6 |
4b6b4dfc | 8546 | fi |
a0b9e27f | 8547 | |
4b6b4dfc | 8548 | |
5005acfe VZ |
8549 | enablestring= |
8550 | echo $ac_n "checking for --${enablestring:-enable}-pnm""... $ac_c" 1>&6 | |
8b389fab | 8551 | echo "configure:8552: checking for --${enablestring:-enable}-pnm" >&5 |
10f2d63a VZ |
8552 | no_cache=0 |
8553 | # Check whether --enable-pnm or --disable-pnm was given. | |
8554 | if test "${enable_pnm+set}" = set; then | |
8555 | enableval="$enable_pnm" | |
a0b9e27f | 8556 | |
10f2d63a VZ |
8557 | if test "$enableval" = yes; then |
8558 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
8559 | else | |
8560 | ac_cv_use_pnm='wxUSE_PNM=no' | |
8561 | fi | |
a0b9e27f | 8562 | |
10f2d63a | 8563 | else |
a0b9e27f | 8564 | |
10f2d63a VZ |
8565 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
8566 | if test "x$LINE" != x ; then | |
8567 | eval "DEFAULT_$LINE" | |
8568 | else | |
8569 | no_cache=1 | |
8570 | fi | |
8571 | ||
8572 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
a0b9e27f MB |
8573 | |
8574 | fi | |
10f2d63a VZ |
8575 | |
8576 | ||
8577 | eval "$ac_cv_use_pnm" | |
8578 | if test "$no_cache" != 1; then | |
8579 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
8580 | fi | |
8581 | ||
8582 | if test "$wxUSE_PNM" = yes; then | |
a0b9e27f | 8583 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8584 | else |
a0b9e27f | 8585 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8586 | fi |
a0b9e27f | 8587 | |
10f2d63a | 8588 | |
5005acfe VZ |
8589 | enablestring= |
8590 | echo $ac_n "checking for --${enablestring:-enable}-xpm""... $ac_c" 1>&6 | |
8b389fab | 8591 | echo "configure:8592: checking for --${enablestring:-enable}-xpm" >&5 |
0046ff7c | 8592 | no_cache=0 |
69d27ff7 MB |
8593 | # Check whether --enable-xpm or --disable-xpm was given. |
8594 | if test "${enable_xpm+set}" = set; then | |
8595 | enableval="$enable_xpm" | |
a0b9e27f | 8596 | |
0046ff7c | 8597 | if test "$enableval" = yes; then |
69d27ff7 | 8598 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 8599 | else |
69d27ff7 | 8600 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 8601 | fi |
a0b9e27f | 8602 | |
0046ff7c | 8603 | else |
a0b9e27f | 8604 | |
0046ff7c VS |
8605 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
8606 | if test "x$LINE" != x ; then | |
8607 | eval "DEFAULT_$LINE" | |
8608 | else | |
8609 | no_cache=1 | |
8610 | fi | |
8611 | ||
69d27ff7 | 8612 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
a0b9e27f MB |
8613 | |
8614 | fi | |
0046ff7c VS |
8615 | |
8616 | ||
69d27ff7 | 8617 | eval "$ac_cv_use_xpm" |
0046ff7c | 8618 | if test "$no_cache" != 1; then |
69d27ff7 | 8619 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
8620 | fi |
8621 | ||
8622 | if test "$wxUSE_XPM" = yes; then | |
a0b9e27f | 8623 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8624 | else |
a0b9e27f | 8625 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8626 | fi |
a0b9e27f | 8627 | |
0046ff7c | 8628 | |
5005acfe VZ |
8629 | enablestring= |
8630 | echo $ac_n "checking for --${enablestring:-enable}-ico_cur""... $ac_c" 1>&6 | |
8b389fab | 8631 | echo "configure:8632: checking for --${enablestring:-enable}-ico_cur" >&5 |
658974ae | 8632 | no_cache=0 |
c7206e64 VS |
8633 | # Check whether --enable-ico_cur or --disable-ico_cur was given. |
8634 | if test "${enable_ico_cur+set}" = set; then | |
8635 | enableval="$enable_ico_cur" | |
a0b9e27f | 8636 | |
658974ae | 8637 | if test "$enableval" = yes; then |
c7206e64 | 8638 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' |
658974ae | 8639 | else |
c7206e64 | 8640 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' |
658974ae | 8641 | fi |
a0b9e27f | 8642 | |
658974ae | 8643 | else |
a0b9e27f | 8644 | |
658974ae VS |
8645 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` |
8646 | if test "x$LINE" != x ; then | |
8647 | eval "DEFAULT_$LINE" | |
8648 | else | |
8649 | no_cache=1 | |
8650 | fi | |
8651 | ||
c7206e64 | 8652 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR |
a0b9e27f MB |
8653 | |
8654 | fi | |
658974ae VS |
8655 | |
8656 | ||
c7206e64 | 8657 | eval "$ac_cv_use_ico_cur" |
658974ae | 8658 | if test "$no_cache" != 1; then |
c7206e64 | 8659 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp |
658974ae VS |
8660 | fi |
8661 | ||
8662 | if test "$wxUSE_ICO_CUR" = yes; then | |
a0b9e27f | 8663 | echo "$ac_t""yes" 1>&6 |
658974ae | 8664 | else |
a0b9e27f | 8665 | echo "$ac_t""no" 1>&6 |
658974ae | 8666 | fi |
a0b9e27f | 8667 | |
658974ae | 8668 | |
b12915c1 VZ |
8669 | fi |
8670 | ||
d558c907 VS |
8671 | case "${host}" in |
8672 | *-pc-os2_emx | *-pc-os2-emx ) | |
6969f178 MB |
8673 | PATH_IFS=';' |
8674 | LEX_STEM="lexyy" | |
d558c907 VS |
8675 | ;; |
8676 | *) | |
8677 | PATH_IFS=':' | |
8678 | LEX_STEM="lex.yy" | |
8679 | ;; | |
8680 | esac | |
8681 | ||
8284b0c5 MB |
8682 | |
8683 | ||
10f2d63a VZ |
8684 | echo "saving argument cache $wx_arg_cache_file" |
8685 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
a0b9e27f | 8686 | |
52127426 | 8687 | |
8284b0c5 | 8688 | |
a0b9e27f | 8689 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 |
8b389fab | 8690 | echo "configure:8691: checking for toolkit" >&5 |
89e6bf6d VZ |
8691 | |
8692 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
8693 | if test "$wxUSE_WINE" = "yes"; then | |
8694 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
8695 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
8696 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
8697 | fi | |
10f2d63a VZ |
8698 | |
8699 | if test "$wxUSE_GUI" = "yes"; then | |
8700 | ||
3a922bb4 | 8701 | if test "$USE_BEOS" = 1; then |
a0b9e27f | 8702 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } |
3a922bb4 | 8703 | fi |
b12915c1 | 8704 | |
3a922bb4 RL |
8705 | if test "$TOOLKIT_GIVEN" = 1; then |
8706 | for toolkit in `echo $ALL_TOOLKITS`; do | |
8707 | var=wxUSE_$toolkit | |
8708 | eval "value=\$${var}" | |
8709 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
8710 | done | |
10f2d63a | 8711 | else |
3a922bb4 RL |
8712 | for toolkit in `echo $ALL_TOOLKITS`; do |
8713 | if test "$has_toolkit_in_cache" != 1; then | |
8714 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
8715 | else | |
8716 | var=DEFAULT_wxUSE_$toolkit | |
8717 | fi | |
8718 | eval "wxUSE_$toolkit=\$${var}" | |
8719 | done | |
10f2d63a | 8720 | fi |
10f2d63a | 8721 | |
ac0c4cc3 DE |
8722 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ |
8723 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
8724 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
10f2d63a | 8725 | |
d558c907 | 8726 | case "${host}" in |
6fa882bd | 8727 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 | 8728 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` |
3a922bb4 | 8729 | esac |
10f2d63a | 8730 | |
3a922bb4 RL |
8731 | case "$NUM_TOOLKITS" in |
8732 | 1) | |
8733 | ;; | |
8734 | 0) | |
a0b9e27f | 8735 | { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; } |
3a922bb4 RL |
8736 | ;; |
8737 | *) | |
a0b9e27f | 8738 | { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; } |
3a922bb4 | 8739 | esac |
10f2d63a | 8740 | |
3a922bb4 RL |
8741 | for toolkit in `echo $ALL_TOOLKITS`; do |
8742 | var=wxUSE_$toolkit | |
8743 | eval "value=\$${var}" | |
8744 | if test "x$value" != x; then | |
8745 | cache_var=CACHE_$toolkit | |
8746 | eval "cache=\$${cache_var}" | |
8747 | if test "$cache" = 1; then | |
8748 | echo "$var=$value" >> ${wx_arg_cache_file} | |
8749 | fi | |
8750 | if test "$value" = 1; then | |
8751 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
a0b9e27f | 8752 | echo "$ac_t""$toolkit_echo" 1>&6 |
3a922bb4 RL |
8753 | fi |
8754 | fi | |
8755 | done | |
10f2d63a | 8756 | else |
a0b9e27f | 8757 | echo "$ac_t""base ($host_alias hosted) only" 1>&6 |
10f2d63a VZ |
8758 | fi |
8759 | ||
43d99b6d VS |
8760 | wants_win32=0 |
8761 | doesnt_want_win32=0 | |
17234b26 MB |
8762 | case "${host}" in |
8763 | *-*-cygwin*) | |
8764 | if test "$wxUSE_MSW" = 1 ; then | |
43d99b6d VS |
8765 | wants_win32=1 |
8766 | else | |
8767 | doesnt_want_win32=1 | |
17234b26 MB |
8768 | fi |
8769 | ;; | |
8770 | *-*-mingw*) | |
43d99b6d | 8771 | wants_win32=1 |
17234b26 MB |
8772 | ;; |
8773 | esac | |
8774 | ||
89e6bf6d VZ |
8775 | if test "$wxUSE_WINE" = "yes"; then |
8776 | wants_win32=1 | |
8777 | CC=winegcc | |
8778 | CXX=wineg++ | |
8779 | RESCOMP=wrc | |
8780 | fi | |
8781 | ||
43d99b6d | 8782 | if test "$wants_win32" = 1 ; then |
17234b26 MB |
8783 | USE_UNIX=0 |
8784 | USE_WIN32=1 | |
a0b9e27f | 8785 | cat >> confdefs.h <<\EOF |
17234b26 | 8786 | #define __WIN32__ 1 |
a0b9e27f | 8787 | EOF |
17234b26 | 8788 | |
a0b9e27f | 8789 | cat >> confdefs.h <<\EOF |
17234b26 | 8790 | #define __WIN95__ 1 |
a0b9e27f | 8791 | EOF |
17234b26 | 8792 | |
a0b9e27f | 8793 | cat >> confdefs.h <<\EOF |
17234b26 | 8794 | #define __WINDOWS__ 1 |
a0b9e27f | 8795 | EOF |
17234b26 | 8796 | |
a0b9e27f | 8797 | cat >> confdefs.h <<\EOF |
17234b26 | 8798 | #define __GNUWIN32__ 1 |
a0b9e27f | 8799 | EOF |
17234b26 | 8800 | |
a0b9e27f | 8801 | cat >> confdefs.h <<\EOF |
17234b26 | 8802 | #define STRICT 1 |
a0b9e27f | 8803 | EOF |
17234b26 | 8804 | |
a0b9e27f | 8805 | cat >> confdefs.h <<\EOF |
17234b26 | 8806 | #define WINVER 0x0400 |
a0b9e27f | 8807 | EOF |
17234b26 | 8808 | |
43d99b6d VS |
8809 | fi |
8810 | if test "$doesnt_want_win32" = 1 ; then | |
17234b26 MB |
8811 | USE_UNIX=1 |
8812 | USE_WIN32=0 | |
8813 | fi | |
8814 | ||
8815 | if test "$USE_UNIX" = 1 ; then | |
8816 | wxUSE_UNIX=yes | |
a0b9e27f | 8817 | cat >> confdefs.h <<\EOF |
17234b26 | 8818 | #define __UNIX__ 1 |
a0b9e27f | 8819 | EOF |
17234b26 MB |
8820 | |
8821 | fi | |
8822 | ||
8284b0c5 | 8823 | |
a0b9e27f | 8824 | cat > confcache <<\EOF |
10f2d63a VZ |
8825 | # This file is a shell script that caches the results of configure |
8826 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
8827 | # scripts and configure runs. It is not useful on other systems. |
8828 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8829 | # |
a0b9e27f MB |
8830 | # By default, configure uses ./config.cache as the cache file, |
8831 | # creating it if it does not exist already. You can give configure | |
8832 | # the --cache-file=FILE option to use a different cache file; that is | |
8833 | # what configure does when it calls configure scripts in | |
8834 | # subdirectories, so they share the cache. | |
8835 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8836 | # config.status only pays attention to the cache file if you give it the | |
8837 | # --recheck option to rerun configure. | |
10f2d63a | 8838 | # |
a0b9e27f | 8839 | EOF |
10f2d63a VZ |
8840 | # The following way of writing the cache mishandles newlines in values, |
8841 | # but we know of no workaround that is simple, portable, and efficient. | |
8842 | # So, don't put newlines in cache variables' values. | |
8843 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8844 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
8845 | (set) 2>&1 | |
8846 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8847 | *ac_space=\ *) | |
8848 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8849 | # turns \\\\ into \\, and sed turns \\ into \). | |
8850 | sed -n \ | |
8851 | -e "s/'/'\\\\''/g" \ | |
8852 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8853 | ;; | |
8854 | *) | |
8855 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8856 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8857 | ;; | |
8858 | esac >> confcache | |
8859 | if cmp -s $cache_file confcache; then | |
8860 | : | |
8861 | else | |
10f2d63a | 8862 | if test -w $cache_file; then |
a0b9e27f MB |
8863 | echo "updating cache $cache_file" |
8864 | cat confcache > $cache_file | |
10f2d63a VZ |
8865 | else |
8866 | echo "not updating unwritable cache $cache_file" | |
8867 | fi | |
8868 | fi | |
8869 | rm -f confcache | |
8870 | ||
a0b9e27f | 8871 | |
e59890c3 | 8872 | if test "$build" != "$host" ; then |
9d353d4a | 8873 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then |
3a922bb4 RL |
8874 | CC=$host_alias-gcc |
8875 | CXX=$host_alias-c++ | |
8876 | AR=$host_alias-ar | |
8877 | RANLIB=$host_alias-ranlib | |
8878 | DLLTOOL=$host_alias-dlltool | |
8879 | RESCOMP=$host_alias-windres | |
8880 | LD=$host_alias-ld | |
8881 | NM=$host_alias-nm | |
8882 | STRIP=$host_alias-strip | |
8883 | else | |
a0b9e27f | 8884 | { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; } |
3a922bb4 | 8885 | fi |
10f2d63a VZ |
8886 | fi |
8887 | ||
ec603395 | 8888 | CFLAGS=${CFLAGS:=} |
a0b9e27f | 8889 | # Extract the first word of "gcc", so it can be a program name with args. |
8284b0c5 | 8890 | set dummy gcc; ac_word=$2 |
a0b9e27f | 8891 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
8b389fab | 8892 | echo "configure:8893: checking for $ac_word" >&5 |
a0b9e27f MB |
8893 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8894 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
8895 | else |
8896 | if test -n "$CC"; then | |
8897 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 8898 | else |
a0b9e27f MB |
8899 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8900 | ac_dummy="$PATH" | |
8901 | for ac_dir in $ac_dummy; do | |
8902 | test -z "$ac_dir" && ac_dir=. | |
8903 | if test -f $ac_dir/$ac_word; then | |
8904 | ac_cv_prog_CC="gcc" | |
8905 | break | |
8906 | fi | |
8907 | done | |
8908 | IFS="$ac_save_ifs" | |
10f2d63a | 8909 | fi |
6232543b | 8910 | fi |
a0b9e27f | 8911 | CC="$ac_cv_prog_CC" |
6232543b | 8912 | if test -n "$CC"; then |
a0b9e27f | 8913 | echo "$ac_t""$CC" 1>&6 |
247f5006 | 8914 | else |
a0b9e27f | 8915 | echo "$ac_t""no" 1>&6 |
247f5006 VZ |
8916 | fi |
8917 | ||
5c6fa7d2 RR |
8918 | if test -z "$CC"; then |
8919 | # Extract the first word of "cc", so it can be a program name with args. | |
8920 | set dummy cc; ac_word=$2 | |
a0b9e27f | 8921 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
8b389fab | 8922 | echo "configure:8923: checking for $ac_word" >&5 |
a0b9e27f MB |
8923 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8924 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5c6fa7d2 RR |
8925 | else |
8926 | if test -n "$CC"; then | |
8927 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
8928 | else | |
a0b9e27f | 8929 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
5c6fa7d2 | 8930 | ac_prog_rejected=no |
a0b9e27f MB |
8931 | ac_dummy="$PATH" |
8932 | for ac_dir in $ac_dummy; do | |
8933 | test -z "$ac_dir" && ac_dir=. | |
8934 | if test -f $ac_dir/$ac_word; then | |
8935 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
8936 | ac_prog_rejected=yes | |
8937 | continue | |
8938 | fi | |
8939 | ac_cv_prog_CC="cc" | |
8940 | break | |
8941 | fi | |
8942 | done | |
8943 | IFS="$ac_save_ifs" | |
328a083c RR |
8944 | if test $ac_prog_rejected = yes; then |
8945 | # We found a bogon in the path, so make sure we never use it. | |
8946 | set dummy $ac_cv_prog_CC | |
8947 | shift | |
a0b9e27f | 8948 | if test $# -gt 0; then |
328a083c | 8949 | # We chose a different compiler from the bogus one. |
1e487827 VS |
8950 | # However, it has the same basename, so the bogon will be chosen |
8951 | # first if we set CC to just the basename; use the full file name. | |
8952 | shift | |
a0b9e27f | 8953 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
8954 | shift |
8955 | ac_cv_prog_CC="$@" | |
703e0a69 | 8956 | fi |
1e487827 VS |
8957 | fi |
8958 | fi | |
8959 | fi | |
a0b9e27f | 8960 | CC="$ac_cv_prog_CC" |
1e487827 | 8961 | if test -n "$CC"; then |
a0b9e27f | 8962 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 8963 | else |
a0b9e27f | 8964 | echo "$ac_t""no" 1>&6 |
703e0a69 | 8965 | fi |
1e487827 | 8966 | |
a0b9e27f MB |
8967 | if test -z "$CC"; then |
8968 | case "`uname -s`" in | |
8969 | *win32* | *WIN32*) | |
8970 | # Extract the first word of "cl", so it can be a program name with args. | |
8971 | set dummy cl; ac_word=$2 | |
8972 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
8b389fab | 8973 | echo "configure:8974: checking for $ac_word" >&5 |
a0b9e27f MB |
8974 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8975 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f09359cf VS |
8976 | else |
8977 | if test -n "$CC"; then | |
8978 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
8979 | else | |
a0b9e27f MB |
8980 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8981 | ac_dummy="$PATH" | |
8982 | for ac_dir in $ac_dummy; do | |
8983 | test -z "$ac_dir" && ac_dir=. | |
8984 | if test -f $ac_dir/$ac_word; then | |
8985 | ac_cv_prog_CC="cl" | |
8986 | break | |
8987 | fi | |
8988 | done | |
8989 | IFS="$ac_save_ifs" | |
f09359cf VS |
8990 | fi |
8991 | fi | |
a0b9e27f | 8992 | CC="$ac_cv_prog_CC" |
f09359cf | 8993 | if test -n "$CC"; then |
a0b9e27f | 8994 | echo "$ac_t""$CC" 1>&6 |
f09359cf | 8995 | else |
a0b9e27f | 8996 | echo "$ac_t""no" 1>&6 |
247f5006 | 8997 | fi |
a0b9e27f MB |
8998 | ;; |
8999 | esac | |
8284b0c5 | 9000 | fi |
a0b9e27f | 9001 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
5c6fa7d2 | 9002 | fi |
1e487827 | 9003 | |
a0b9e27f | 9004 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
8b389fab | 9005 | echo "configure:9006: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
f09359cf | 9006 | |
a0b9e27f MB |
9007 | ac_ext=c |
9008 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9009 | ac_cpp='$CPP $CPPFLAGS' | |
9010 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9011 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9012 | cross_compiling=$ac_cv_prog_cc_cross | |
f09359cf | 9013 | |
a0b9e27f | 9014 | cat > conftest.$ac_ext << EOF |
247f5006 | 9015 | |
8b389fab | 9016 | #line 9017 "configure" |
a0b9e27f | 9017 | #include "confdefs.h" |
247f5006 | 9018 | |
a0b9e27f MB |
9019 | main(){return(0);} |
9020 | EOF | |
8b389fab | 9021 | if { (eval echo configure:9022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
9022 | ac_cv_prog_cc_works=yes |
9023 | # If we can't run a trivial program, we are probably using a cross compiler. | |
9024 | if (./conftest; exit) 2>/dev/null; then | |
9025 | ac_cv_prog_cc_cross=no | |
698dcdb6 | 9026 | else |
a0b9e27f | 9027 | ac_cv_prog_cc_cross=yes |
698dcdb6 | 9028 | fi |
7b4a847f | 9029 | else |
a0b9e27f MB |
9030 | echo "configure: failed program was:" >&5 |
9031 | cat conftest.$ac_ext >&5 | |
9032 | ac_cv_prog_cc_works=no | |
52127426 | 9033 | fi |
a0b9e27f MB |
9034 | rm -fr conftest* |
9035 | ac_ext=c | |
9036 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9037 | ac_cpp='$CPP $CPPFLAGS' | |
9038 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9039 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9040 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 9041 | |
a0b9e27f MB |
9042 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
9043 | if test $ac_cv_prog_cc_works = no; then | |
9044 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
9045 | fi | |
9046 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
8b389fab | 9047 | echo "configure:9048: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
a0b9e27f MB |
9048 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
9049 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 9050 | |
a0b9e27f | 9051 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
8b389fab | 9052 | echo "configure:9053: checking whether we are using GNU C" >&5 |
a0b9e27f MB |
9053 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
9054 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 9055 | else |
a0b9e27f MB |
9056 | cat > conftest.c <<EOF |
9057 | #ifdef __GNUC__ | |
9058 | yes; | |
8284b0c5 | 9059 | #endif |
a0b9e27f | 9060 | EOF |
8b389fab | 9061 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:9062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
a0b9e27f | 9062 | ac_cv_prog_gcc=yes |
5c6fa7d2 | 9063 | else |
a0b9e27f | 9064 | ac_cv_prog_gcc=no |
8284b0c5 MB |
9065 | fi |
9066 | fi | |
1e487827 | 9067 | |
a0b9e27f | 9068 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
f09359cf | 9069 | |
a0b9e27f MB |
9070 | if test $ac_cv_prog_gcc = yes; then |
9071 | GCC=yes | |
9072 | else | |
9073 | GCC= | |
9074 | fi | |
247f5006 | 9075 | |
a0b9e27f MB |
9076 | ac_test_CFLAGS="${CFLAGS+set}" |
9077 | ac_save_CFLAGS="$CFLAGS" | |
9078 | CFLAGS= | |
9079 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
8b389fab | 9080 | echo "configure:9081: checking whether ${CC-cc} accepts -g" >&5 |
a0b9e27f MB |
9081 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
9082 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9083 | else | |
9084 | echo 'void f(){}' > conftest.c | |
9085 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
9086 | ac_cv_prog_cc_g=yes |
9087 | else | |
a0b9e27f | 9088 | ac_cv_prog_cc_g=no |
10f2d63a | 9089 | fi |
a0b9e27f MB |
9090 | rm -f conftest* |
9091 | ||
10f2d63a | 9092 | fi |
a0b9e27f MB |
9093 | |
9094 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
f09359cf | 9095 | if test "$ac_test_CFLAGS" = set; then |
a0b9e27f | 9096 | CFLAGS="$ac_save_CFLAGS" |
f09359cf VS |
9097 | elif test $ac_cv_prog_cc_g = yes; then |
9098 | if test "$GCC" = yes; then | |
10f2d63a VZ |
9099 | CFLAGS="-g -O2" |
9100 | else | |
f09359cf | 9101 | CFLAGS="-g" |
10f2d63a | 9102 | fi |
5c0a20c3 | 9103 | else |
f09359cf VS |
9104 | if test "$GCC" = yes; then |
9105 | CFLAGS="-O2" | |
9106 | else | |
9107 | CFLAGS= | |
9108 | fi | |
10f2d63a VZ |
9109 | fi |
9110 | ||
9111 | ||
a0b9e27f | 9112 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
8b389fab | 9113 | echo "configure:9114: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
9114 | # On Suns, sometimes $CPP names a directory. |
9115 | if test -n "$CPP" && test -d "$CPP"; then | |
9116 | CPP= | |
9117 | fi | |
9118 | if test -z "$CPP"; then | |
a0b9e27f MB |
9119 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
9120 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9121 | else | |
9122 | # This must be in double quotes, not single quotes, because CPP may get | |
9123 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
9124 | CPP="${CC-cc} -E" | |
10f2d63a | 9125 | # On the NeXT, cc -E runs the code through the compiler's parser, |
a0b9e27f MB |
9126 | # not just through cpp. |
9127 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 9128 | #line 9129 "configure" |
10f2d63a VZ |
9129 | #include "confdefs.h" |
9130 | #include <assert.h> | |
a0b9e27f MB |
9131 | Syntax Error |
9132 | EOF | |
9133 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8b389fab | 9134 | { (eval echo configure:9135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9135 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9136 | if test -z "$ac_err"; then | |
10f2d63a VZ |
9137 | : |
9138 | else | |
a0b9e27f MB |
9139 | echo "$ac_err" >&5 |
9140 | echo "configure: failed program was:" >&5 | |
10f2d63a | 9141 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
9142 | rm -rf conftest* |
9143 | CPP="${CC-cc} -E -traditional-cpp" | |
9144 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 9145 | #line 9146 "configure" |
f09359cf | 9146 | #include "confdefs.h" |
a0b9e27f MB |
9147 | #include <assert.h> |
9148 | Syntax Error | |
9149 | EOF | |
9150 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8b389fab | 9151 | { (eval echo configure:9152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9152 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9153 | if test -z "$ac_err"; then | |
9154 | : | |
247f5006 | 9155 | else |
a0b9e27f MB |
9156 | echo "$ac_err" >&5 |
9157 | echo "configure: failed program was:" >&5 | |
f09359cf | 9158 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
9159 | rm -rf conftest* |
9160 | CPP="${CC-cc} -nologo -E" | |
9161 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 9162 | #line 9163 "configure" |
10f2d63a VZ |
9163 | #include "confdefs.h" |
9164 | #include <assert.h> | |
a0b9e27f MB |
9165 | Syntax Error |
9166 | EOF | |
9167 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8b389fab | 9168 | { (eval echo configure:9169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9169 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9170 | if test -z "$ac_err"; then | |
10f2d63a VZ |
9171 | : |
9172 | else | |
a0b9e27f MB |
9173 | echo "$ac_err" >&5 |
9174 | echo "configure: failed program was:" >&5 | |
10f2d63a | 9175 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
9176 | rm -rf conftest* |
9177 | CPP=/lib/cpp | |
579d8138 | 9178 | fi |
a0b9e27f | 9179 | rm -f conftest* |
52127426 | 9180 | fi |
a0b9e27f | 9181 | rm -f conftest* |
8284b0c5 | 9182 | fi |
a0b9e27f MB |
9183 | rm -f conftest* |
9184 | ac_cv_prog_CPP="$CPP" | |
9185 | fi | |
9186 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 9187 | else |
a0b9e27f | 9188 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 9189 | fi |
a0b9e27f | 9190 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a | 9191 | |
a0b9e27f MB |
9192 | if test $ac_cv_prog_gcc = yes; then |
9193 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
8b389fab | 9194 | echo "configure:9195: checking whether ${CC-cc} needs -traditional" >&5 |
a0b9e27f MB |
9195 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
9196 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9197 | else |
9198 | ac_pattern="Autoconf.*'x'" | |
a0b9e27f | 9199 | cat > conftest.$ac_ext <<EOF |
8b389fab | 9200 | #line 9201 "configure" |
10f2d63a VZ |
9201 | #include "confdefs.h" |
9202 | #include <sgtty.h> | |
9203 | Autoconf TIOCGETP | |
a0b9e27f | 9204 | EOF |
10f2d63a VZ |
9205 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
9206 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
a0b9e27f | 9207 | rm -rf conftest* |
10f2d63a VZ |
9208 | ac_cv_prog_gcc_traditional=yes |
9209 | else | |
a0b9e27f | 9210 | rm -rf conftest* |
10f2d63a VZ |
9211 | ac_cv_prog_gcc_traditional=no |
9212 | fi | |
9213 | rm -f conftest* | |
9214 | ||
8284b0c5 | 9215 | |
10f2d63a | 9216 | if test $ac_cv_prog_gcc_traditional = no; then |
a0b9e27f | 9217 | cat > conftest.$ac_ext <<EOF |
8b389fab | 9218 | #line 9219 "configure" |
10f2d63a VZ |
9219 | #include "confdefs.h" |
9220 | #include <termio.h> | |
9221 | Autoconf TCGETA | |
a0b9e27f | 9222 | EOF |
10f2d63a VZ |
9223 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
9224 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
a0b9e27f | 9225 | rm -rf conftest* |
10f2d63a VZ |
9226 | ac_cv_prog_gcc_traditional=yes |
9227 | fi | |
9228 | rm -f conftest* | |
9229 | ||
9230 | fi | |
9231 | fi | |
a0b9e27f MB |
9232 | |
9233 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
9234 | if test $ac_cv_prog_gcc_traditional = yes; then |
9235 | CC="$CC -traditional" | |
9236 | fi | |
9237 | fi | |
9238 | ||
8284b0c5 MB |
9239 | |
9240 | ||
a0b9e27f MB |
9241 | ac_ext=C |
9242 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 9243 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
9244 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
9245 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9246 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 9247 | |
698dcdb6 | 9248 | |
ec603395 | 9249 | CXXFLAGS=${CXXFLAGS:=} |
a0b9e27f MB |
9250 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
9251 | do | |
9252 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
9253 | set dummy $ac_prog; ac_word=$2 | |
9254 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
8b389fab | 9255 | echo "configure:9256: checking for $ac_word" >&5 |
a0b9e27f MB |
9256 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
9257 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9258 | else |
9259 | if test -n "$CXX"; then | |
9260 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
9261 | else | |
a0b9e27f MB |
9262 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9263 | ac_dummy="$PATH" | |
9264 | for ac_dir in $ac_dummy; do | |
9265 | test -z "$ac_dir" && ac_dir=. | |
9266 | if test -f $ac_dir/$ac_word; then | |
9267 | ac_cv_prog_CXX="$ac_prog" | |
9268 | break | |
9269 | fi | |
9270 | done | |
9271 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9272 | fi |
9273 | fi | |
a0b9e27f | 9274 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 9275 | if test -n "$CXX"; then |
a0b9e27f | 9276 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 9277 | else |
a0b9e27f | 9278 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9279 | fi |
9280 | ||
a0b9e27f | 9281 | test -n "$CXX" && break |
10f2d63a | 9282 | done |
a0b9e27f | 9283 | test -n "$CXX" || CXX="gcc" |
f09359cf | 9284 | |
a0b9e27f MB |
9285 | |
9286 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
8b389fab | 9287 | echo "configure:9288: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
a0b9e27f MB |
9288 | |
9289 | ac_ext=C | |
9290 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9291 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9292 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9293 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9294 | cross_compiling=$ac_cv_prog_cxx_cross | |
9295 | ||
9296 | cat > conftest.$ac_ext << EOF | |
9297 | ||
8b389fab | 9298 | #line 9299 "configure" |
a0b9e27f MB |
9299 | #include "confdefs.h" |
9300 | ||
9301 | int main(){return(0);} | |
9302 | EOF | |
8b389fab | 9303 | if { (eval echo configure:9304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
9304 | ac_cv_prog_cxx_works=yes |
9305 | # If we can't run a trivial program, we are probably using a cross compiler. | |
9306 | if (./conftest; exit) 2>/dev/null; then | |
9307 | ac_cv_prog_cxx_cross=no | |
9308 | else | |
9309 | ac_cv_prog_cxx_cross=yes | |
9310 | fi | |
8284b0c5 | 9311 | else |
a0b9e27f MB |
9312 | echo "configure: failed program was:" >&5 |
9313 | cat conftest.$ac_ext >&5 | |
9314 | ac_cv_prog_cxx_works=no | |
8284b0c5 | 9315 | fi |
a0b9e27f MB |
9316 | rm -fr conftest* |
9317 | ac_ext=C | |
9318 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9319 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9320 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9321 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9322 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 9323 | |
a0b9e27f MB |
9324 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 |
9325 | if test $ac_cv_prog_cxx_works = no; then | |
9326 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
9327 | fi | |
9328 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
8b389fab | 9329 | echo "configure:9330: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
a0b9e27f MB |
9330 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
9331 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 9332 | |
a0b9e27f | 9333 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 |
8b389fab | 9334 | echo "configure:9335: checking whether we are using GNU C++" >&5 |
a0b9e27f MB |
9335 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
9336 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9337 | else | |
9338 | cat > conftest.C <<EOF | |
9339 | #ifdef __GNUC__ | |
9340 | yes; | |
10f2d63a | 9341 | #endif |
a0b9e27f | 9342 | EOF |
8b389fab | 9343 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
a0b9e27f MB |
9344 | ac_cv_prog_gxx=yes |
9345 | else | |
9346 | ac_cv_prog_gxx=no | |
9347 | fi | |
9348 | fi | |
10f2d63a | 9349 | |
a0b9e27f | 9350 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 9351 | |
a0b9e27f MB |
9352 | if test $ac_cv_prog_gxx = yes; then |
9353 | GXX=yes | |
9354 | else | |
9355 | GXX= | |
9356 | fi | |
f09359cf | 9357 | |
a0b9e27f MB |
9358 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
9359 | ac_save_CXXFLAGS="$CXXFLAGS" | |
9360 | CXXFLAGS= | |
9361 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
8b389fab | 9362 | echo "configure:9363: checking whether ${CXX-g++} accepts -g" >&5 |
a0b9e27f MB |
9363 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
9364 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9365 | else | |
9366 | echo 'void f(){}' > conftest.cc | |
9367 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
9368 | ac_cv_prog_cxx_g=yes |
9369 | else | |
a0b9e27f | 9370 | ac_cv_prog_cxx_g=no |
10f2d63a | 9371 | fi |
a0b9e27f MB |
9372 | rm -f conftest* |
9373 | ||
10f2d63a | 9374 | fi |
a0b9e27f MB |
9375 | |
9376 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
f09359cf | 9377 | if test "$ac_test_CXXFLAGS" = set; then |
a0b9e27f | 9378 | CXXFLAGS="$ac_save_CXXFLAGS" |
f09359cf VS |
9379 | elif test $ac_cv_prog_cxx_g = yes; then |
9380 | if test "$GXX" = yes; then | |
10f2d63a VZ |
9381 | CXXFLAGS="-g -O2" |
9382 | else | |
f09359cf | 9383 | CXXFLAGS="-g" |
10f2d63a | 9384 | fi |
5c0a20c3 | 9385 | else |
f09359cf VS |
9386 | if test "$GXX" = yes; then |
9387 | CXXFLAGS="-O2" | |
9388 | else | |
9389 | CXXFLAGS= | |
9390 | fi | |
10f2d63a VZ |
9391 | fi |
9392 | ||
9393 | ||
10f2d63a | 9394 | ac_ext=c |
a0b9e27f | 9395 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 9396 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
9397 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
9398 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9399 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 MB |
9400 | |
9401 | ||
a0b9e27f MB |
9402 | # Extract the first word of "ranlib", so it can be a program name with args. |
9403 | set dummy ranlib; ac_word=$2 | |
9404 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
8b389fab | 9405 | echo "configure:9406: checking for $ac_word" >&5 |
a0b9e27f MB |
9406 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
9407 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9408 | else |
9409 | if test -n "$RANLIB"; then | |
9410 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9411 | else | |
a0b9e27f MB |
9412 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9413 | ac_dummy="$PATH" | |
9414 | for ac_dir in $ac_dummy; do | |
9415 | test -z "$ac_dir" && ac_dir=. | |
9416 | if test -f $ac_dir/$ac_word; then | |
9417 | ac_cv_prog_RANLIB="ranlib" | |
9418 | break | |
9419 | fi | |
9420 | done | |
9421 | IFS="$ac_save_ifs" | |
9422 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
9423 | fi |
9424 | fi | |
a0b9e27f | 9425 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 9426 | if test -n "$RANLIB"; then |
a0b9e27f | 9427 | echo "$ac_t""$RANLIB" 1>&6 |
328a083c | 9428 | else |
a0b9e27f | 9429 | echo "$ac_t""no" 1>&6 |
328a083c RR |
9430 | fi |
9431 | ||
10f2d63a VZ |
9432 | |
9433 | # Extract the first word of "ar", so it can be a program name with args. | |
9434 | set dummy ar; ac_word=$2 | |
a0b9e27f | 9435 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
8b389fab | 9436 | echo "configure:9437: checking for $ac_word" >&5 |
a0b9e27f MB |
9437 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
9438 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9439 | else |
9440 | if test -n "$AR"; then | |
9441 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
9442 | else | |
a0b9e27f MB |
9443 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9444 | ac_dummy="$PATH" | |
9445 | for ac_dir in $ac_dummy; do | |
9446 | test -z "$ac_dir" && ac_dir=. | |
9447 | if test -f $ac_dir/$ac_word; then | |
9448 | ac_cv_prog_AR="ar" | |
9449 | break | |
9450 | fi | |
9451 | done | |
9452 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9453 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
9454 | fi | |
9455 | fi | |
a0b9e27f | 9456 | AR="$ac_cv_prog_AR" |
10f2d63a | 9457 | if test -n "$AR"; then |
a0b9e27f | 9458 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 9459 | else |
a0b9e27f | 9460 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9461 | fi |
9462 | ||
8284b0c5 | 9463 | |
6054113a | 9464 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
9465 | # so one script is as good as another. But avoid the broken or |
9466 | # incompatible versions: | |
9467 | # SysV /etc/install, /usr/sbin/install | |
9468 | # SunOS /usr/etc/install | |
9469 | # IRIX /sbin/install | |
9470 | # AIX /bin/install | |
f09359cf | 9471 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
10f2d63a VZ |
9472 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
9473 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
9474 | # ./install, which can be erroneously created by make from ./install.sh. | |
a0b9e27f | 9475 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
8b389fab | 9476 | echo "configure:9477: checking for a BSD compatible install" >&5 |
10f2d63a | 9477 | if test -z "$INSTALL"; then |
a0b9e27f MB |
9478 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
9479 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9480 | else | |
9481 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
9482 | for ac_dir in $PATH; do | |
9483 | # Account for people who put trailing slashes in PATH elements. | |
9484 | case "$ac_dir/" in | |
9485 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
9486 | *) | |
9487 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
9488 | # Don't use installbsd from OSF since it installs stuff as root | |
9489 | # by default. | |
9490 | for ac_prog in ginstall scoinst install; do | |
9491 | if test -f $ac_dir/$ac_prog; then | |
9492 | if test $ac_prog = install && | |
9493 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
9494 | # AIX install. It has an incompatible calling convention. | |
9495 | : | |
9496 | else | |
9497 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
9498 | break 2 | |
9499 | fi | |
9500 | fi | |
10f2d63a | 9501 | done |
a0b9e27f MB |
9502 | ;; |
9503 | esac | |
9504 | done | |
9505 | IFS="$ac_save_IFS" | |
10f2d63a VZ |
9506 | |
9507 | fi | |
9508 | if test "${ac_cv_path_install+set}" = set; then | |
a0b9e27f | 9509 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
9510 | else |
9511 | # As a last resort, use the slow shell script. We don't cache a | |
9512 | # path for INSTALL within a source directory, because that will | |
9513 | # break other packages using the cache if that directory is | |
9514 | # removed, or if the path is relative. | |
a0b9e27f | 9515 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
9516 | fi |
9517 | fi | |
a0b9e27f | 9518 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
9519 | |
9520 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
9521 | # It thinks the first close brace ends the variable substitution. | |
9522 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
9523 | ||
a0b9e27f | 9524 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
f09359cf | 9525 | |
10f2d63a VZ |
9526 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
9527 | ||
8284b0c5 | 9528 | |
1d1b75ac VZ |
9529 | case ${INSTALL} in |
9530 | /* ) # Absolute | |
9531 | ;; | |
4f5a7f74 VZ |
9532 | ?:* ) # Drive letter, considered as absolute. |
9533 | ;; | |
3bd8fb5f | 9534 | *) |
1d1b75ac VZ |
9535 | INSTALL=`pwd`/${INSTALL} ;; |
9536 | esac | |
9537 | ||
4f5a7f74 VZ |
9538 | case ${host} in |
9539 | *-hp-hpux* ) | |
9540 | INSTALL_DIR="mkdir" | |
9541 | ;; | |
9542 | ||
9543 | *) INSTALL_DIR="$INSTALL -d" | |
9544 | ;; | |
9545 | esac | |
9546 | ||
8284b0c5 | 9547 | |
6054113a GD |
9548 | case "${host}" in |
9549 | ||
b5853384 | 9550 | powerpc-*-darwin* ) |
eb99ae0b GD |
9551 | INSTALL_PROGRAM="cp -fp" |
9552 | INSTALL_DATA="cp -fp" | |
6054113a GD |
9553 | ;; |
9554 | *) | |
9555 | ;; | |
d6853540 | 9556 | esac |
698dcdb6 | 9557 | |
10f2d63a VZ |
9558 | # Extract the first word of "strip", so it can be a program name with args. |
9559 | set dummy strip; ac_word=$2 | |
a0b9e27f | 9560 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
8b389fab | 9561 | echo "configure:9562: checking for $ac_word" >&5 |
a0b9e27f MB |
9562 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
9563 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9564 | else |
9565 | if test -n "$STRIP"; then | |
9566 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9567 | else | |
a0b9e27f MB |
9568 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9569 | ac_dummy="$PATH" | |
9570 | for ac_dir in $ac_dummy; do | |
9571 | test -z "$ac_dir" && ac_dir=. | |
9572 | if test -f $ac_dir/$ac_word; then | |
9573 | ac_cv_prog_STRIP="strip" | |
9574 | break | |
9575 | fi | |
9576 | done | |
9577 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9578 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
9579 | fi | |
9580 | fi | |
a0b9e27f | 9581 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 9582 | if test -n "$STRIP"; then |
a0b9e27f | 9583 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 9584 | else |
a0b9e27f | 9585 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9586 | fi |
9587 | ||
5c6fa7d2 | 9588 | |
a0b9e27f | 9589 | echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6 |
8b389fab | 9590 | echo "configure:9591: checking if make is GNU make" >&5 |
a0b9e27f MB |
9591 | if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then |
9592 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 9593 | else |
a0b9e27f | 9594 | |
414eab6d | 9595 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | |
d558c907 | 9596 | egrep -s GNU > /dev/null); then |
414eab6d VZ |
9597 | wx_cv_prog_makeisgnu="yes" |
9598 | else | |
9599 | wx_cv_prog_makeisgnu="no" | |
9600 | fi | |
9601 | ||
9602 | fi | |
a0b9e27f MB |
9603 | |
9604 | echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6 | |
414eab6d VZ |
9605 | |
9606 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
9607 | IF_GNU_MAKE="" | |
9608 | else | |
9609 | IF_GNU_MAKE="#" | |
9610 | fi | |
9611 | ||
8284b0c5 MB |
9612 | |
9613 | ||
414eab6d | 9614 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then |
a0b9e27f | 9615 | echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6 |
8b389fab | 9616 | echo "configure:9617: checking if make supports VPATH" >&5 |
a0b9e27f MB |
9617 | if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then |
9618 | echo $ac_n "(cached) $ac_c" 1>&6 | |
04e7a216 | 9619 | else |
a0b9e27f | 9620 | |
10f2d63a VZ |
9621 | cat - << EOF > confMake |
9622 | check : file | |
9623 | cp \$? \$@ | |
9624 | cp \$? final_file | |
9625 | EOF | |
9626 | ||
9627 | if test ! -d sub ; then | |
9628 | mkdir sub | |
9629 | fi | |
9630 | echo dummy > sub/file | |
f6bcfd97 | 9631 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
9632 | RESULT=$? |
9633 | rm -f sub/file check final_file confMake | |
9634 | rmdir sub | |
9635 | if test "$RESULT" = 0; then | |
04e7a216 | 9636 | wx_cv_prog_makevpath="yes" |
10f2d63a | 9637 | else |
04e7a216 VZ |
9638 | wx_cv_prog_makevpath="no" |
9639 | fi | |
9640 | ||
9641 | fi | |
a0b9e27f MB |
9642 | |
9643 | echo "$ac_t""$wx_cv_prog_makevpath" 1>&6 | |
04e7a216 VZ |
9644 | |
9645 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
a0b9e27f | 9646 | { echo "configure: error: |
5c6fa7d2 RR |
9647 | You need a make-utility that is able to use the variable |
9648 | VPATH correctly. | |
9649 | If your version of make does not support VPATH correctly, | |
9650 | please install GNU-make (possibly as gmake), and start | |
9651 | configure with the following command: | |
9652 | export MAKE=gmake; ./configure for sh-type shells | |
9653 | setenv MAKE gmake; ./configure for csh-type shells | |
9654 | Also please do remember to use gmake in this case every time | |
9655 | you are trying to compile. | |
a0b9e27f MB |
9656 | " 1>&2; exit 1; } |
9657 | fi fi | |
10f2d63a VZ |
9658 | for ac_prog in 'bison -y' byacc |
9659 | do | |
a0b9e27f | 9660 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 9661 | set dummy $ac_prog; ac_word=$2 |
a0b9e27f | 9662 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
8b389fab | 9663 | echo "configure:9664: checking for $ac_word" >&5 |
a0b9e27f MB |
9664 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
9665 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9666 | else |
9667 | if test -n "$YACC"; then | |
9668 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
9669 | else | |
a0b9e27f MB |
9670 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9671 | ac_dummy="$PATH" | |
9672 | for ac_dir in $ac_dummy; do | |
9673 | test -z "$ac_dir" && ac_dir=. | |
9674 | if test -f $ac_dir/$ac_word; then | |
9675 | ac_cv_prog_YACC="$ac_prog" | |
9676 | break | |
9677 | fi | |
9678 | done | |
9679 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9680 | fi |
9681 | fi | |
a0b9e27f | 9682 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 9683 | if test -n "$YACC"; then |
a0b9e27f | 9684 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 9685 | else |
a0b9e27f | 9686 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9687 | fi |
9688 | ||
a0b9e27f | 9689 | test -n "$YACC" && break |
10f2d63a VZ |
9690 | done |
9691 | test -n "$YACC" || YACC="yacc" | |
9692 | ||
8284b0c5 | 9693 | |
a0b9e27f MB |
9694 | # Extract the first word of "flex", so it can be a program name with args. |
9695 | set dummy flex; ac_word=$2 | |
9696 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
8b389fab | 9697 | echo "configure:9698: checking for $ac_word" >&5 |
a0b9e27f MB |
9698 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
9699 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9700 | else |
9701 | if test -n "$LEX"; then | |
9702 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
9703 | else | |
a0b9e27f MB |
9704 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9705 | ac_dummy="$PATH" | |
9706 | for ac_dir in $ac_dummy; do | |
9707 | test -z "$ac_dir" && ac_dir=. | |
9708 | if test -f $ac_dir/$ac_word; then | |
9709 | ac_cv_prog_LEX="flex" | |
9710 | break | |
9711 | fi | |
9712 | done | |
9713 | IFS="$ac_save_ifs" | |
9714 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
9715 | fi |
9716 | fi | |
a0b9e27f | 9717 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 9718 | if test -n "$LEX"; then |
a0b9e27f | 9719 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 9720 | else |
a0b9e27f | 9721 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9722 | fi |
9723 | ||
9724 | if test -z "$LEXLIB" | |
9725 | then | |
a0b9e27f MB |
9726 | case "$LEX" in |
9727 | flex*) ac_lib=fl ;; | |
9728 | *) ac_lib=l ;; | |
9729 | esac | |
9730 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
8b389fab | 9731 | echo "configure:9732: checking for yywrap in -l$ac_lib" >&5 |
a0b9e27f MB |
9732 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
9733 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9734 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9735 | else | |
9736 | ac_save_LIBS="$LIBS" | |
9737 | LIBS="-l$ac_lib $LIBS" | |
9738 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 9739 | #line 9740 "configure" |
247f5006 | 9740 | #include "confdefs.h" |
247f5006 | 9741 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 | 9742 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
9743 | builtin and then its argument prototype would still apply. */ |
9744 | char yywrap(); | |
10f2d63a | 9745 | |
a0b9e27f MB |
9746 | int main() { |
9747 | yywrap() | |
9748 | ; return 0; } | |
9749 | EOF | |
8b389fab | 9750 | if { (eval echo configure:9751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
9751 | rm -rf conftest* |
9752 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9753 | else | |
9754 | echo "configure: failed program was:" >&5 | |
9755 | cat conftest.$ac_ext >&5 | |
9756 | rm -rf conftest* | |
9757 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 9758 | fi |
a0b9e27f MB |
9759 | rm -f conftest* |
9760 | LIBS="$ac_save_LIBS" | |
8284b0c5 | 9761 | |
10f2d63a | 9762 | fi |
a0b9e27f MB |
9763 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
9764 | echo "$ac_t""yes" 1>&6 | |
9765 | LEXLIB="-l$ac_lib" | |
8284b0c5 | 9766 | else |
a0b9e27f | 9767 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9768 | fi |
9769 | ||
a0b9e27f | 9770 | fi |
10f2d63a VZ |
9771 | |
9772 | ||
a0b9e27f | 9773 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
8b389fab | 9774 | echo "configure:9775: checking whether ln -s works" >&5 |
a0b9e27f MB |
9775 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
9776 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9777 | else |
a0b9e27f MB |
9778 | rm -f conftestdata |
9779 | if ln -s X conftestdata 2>/dev/null | |
9780 | then | |
9781 | rm -f conftestdata | |
9782 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 9783 | else |
a0b9e27f | 9784 | ac_cv_prog_LN_S=ln |
10f2d63a | 9785 | fi |
a0b9e27f MB |
9786 | fi |
9787 | LN_S="$ac_cv_prog_LN_S" | |
9788 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
9789 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 9790 | else |
a0b9e27f | 9791 | echo "$ac_t""no" 1>&6 |
5c6fa7d2 | 9792 | fi |
5c6fa7d2 | 9793 | |
247f5006 | 9794 | |
2b5f62a0 VZ |
9795 | case "${host}" in |
9796 | *-pc-os2_emx | *-pc-os2-emx ) | |
9797 | LIBS="$LIBS -lstdcpp" | |
9798 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
9799 | echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6 | |
8b389fab | 9800 | echo "configure:9801: checking for drand48 in -lcExt" >&5 |
2b5f62a0 VZ |
9801 | ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'` |
9802 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9803 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9804 | else | |
9805 | ac_save_LIBS="$LIBS" | |
9806 | LIBS="-lcExt $LIBS" | |
9807 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 9808 | #line 9809 "configure" |
2b5f62a0 VZ |
9809 | #include "confdefs.h" |
9810 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9811 | /* We use char because int might match the return type of a gcc2 | |
9812 | builtin and then its argument prototype would still apply. */ | |
9813 | char drand48(); | |
9814 | ||
9815 | int main() { | |
9816 | drand48() | |
9817 | ; return 0; } | |
9818 | EOF | |
8b389fab | 9819 | if { (eval echo configure:9820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
9820 | rm -rf conftest* |
9821 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9822 | else | |
9823 | echo "configure: failed program was:" >&5 | |
9824 | cat conftest.$ac_ext >&5 | |
9825 | rm -rf conftest* | |
9826 | eval "ac_cv_lib_$ac_lib_var=no" | |
9827 | fi | |
9828 | rm -f conftest* | |
9829 | LIBS="$ac_save_LIBS" | |
9830 | ||
9831 | fi | |
9832 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9833 | echo "$ac_t""yes" 1>&6 | |
9834 | LIBS="$LIBS -lcExt" | |
9835 | else | |
9836 | echo "$ac_t""no" 1>&6 | |
9837 | fi | |
9838 | ||
9839 | else | |
9840 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
9841 | fi | |
9842 | ;; | |
9843 | esac | |
9844 | ||
a0b9e27f | 9845 | |
ac0c4cc3 | 9846 | if test "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then |
a0b9e27f MB |
9847 | for ac_hdr in strings.h |
9848 | do | |
9849 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9850 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
8b389fab | 9851 | echo "configure:9852: checking for $ac_hdr" >&5 |
a0b9e27f MB |
9852 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9853 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9854 | else | |
9855 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 9856 | #line 9857 "configure" |
a0b9e27f MB |
9857 | #include "confdefs.h" |
9858 | #include <$ac_hdr> | |
9859 | EOF | |
9860 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8b389fab | 9861 | { (eval echo configure:9862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9862 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9863 | if test -z "$ac_err"; then | |
9864 | rm -rf conftest* | |
9865 | eval "ac_cv_header_$ac_safe=yes" | |
9866 | else | |
9867 | echo "$ac_err" >&5 | |
9868 | echo "configure: failed program was:" >&5 | |
9869 | cat conftest.$ac_ext >&5 | |
9870 | rm -rf conftest* | |
9871 | eval "ac_cv_header_$ac_safe=no" | |
21d1c967 | 9872 | fi |
247f5006 | 9873 | rm -f conftest* |
19bc6aad | 9874 | fi |
a0b9e27f MB |
9875 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9876 | echo "$ac_t""yes" 1>&6 | |
9877 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9878 | cat >> confdefs.h <<EOF | |
9879 | #define $ac_tr_hdr 1 | |
9880 | EOF | |
9881 | ||
247f5006 | 9882 | else |
a0b9e27f | 9883 | echo "$ac_t""no" 1>&6 |
18dbb1f6 | 9884 | fi |
a0b9e27f | 9885 | done |
247f5006 | 9886 | |
90dd450c | 9887 | fi |
90dd450c | 9888 | |
a0b9e27f MB |
9889 | for ac_hdr in stdlib.h |
9890 | do | |
9891 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9892 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
8b389fab | 9893 | echo "configure:9894: checking for $ac_hdr" >&5 |
a0b9e27f MB |
9894 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9895 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9896 | else | |
9897 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 9898 | #line 9899 "configure" |
90dd450c | 9899 | #include "confdefs.h" |
a0b9e27f MB |
9900 | #include <$ac_hdr> |
9901 | EOF | |
9902 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8b389fab | 9903 | { (eval echo configure:9904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9904 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9905 | if test -z "$ac_err"; then | |
9906 | rm -rf conftest* | |
9907 | eval "ac_cv_header_$ac_safe=yes" | |
9908 | else | |
9909 | echo "$ac_err" >&5 | |
9910 | echo "configure: failed program was:" >&5 | |
9911 | cat conftest.$ac_ext >&5 | |
9912 | rm -rf conftest* | |
9913 | eval "ac_cv_header_$ac_safe=no" | |
9914 | fi | |
9915 | rm -f conftest* | |
9916 | fi | |
9917 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9918 | echo "$ac_t""yes" 1>&6 | |
9919 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9920 | cat >> confdefs.h <<EOF | |
9921 | #define $ac_tr_hdr 1 | |
9922 | EOF | |
9923 | ||
8284b0c5 | 9924 | else |
a0b9e27f | 9925 | echo "$ac_t""no" 1>&6 |
21d1c967 | 9926 | fi |
a0b9e27f MB |
9927 | done |
9928 | ||
9929 | for ac_hdr in malloc.h | |
9930 | do | |
9931 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9932 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
8b389fab | 9933 | echo "configure:9934: checking for $ac_hdr" >&5 |
a0b9e27f MB |
9934 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9935 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9936 | else | |
9937 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 9938 | #line 9939 "configure" |
a0b9e27f MB |
9939 | #include "confdefs.h" |
9940 | #include <$ac_hdr> | |
9941 | EOF | |
9942 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8b389fab | 9943 | { (eval echo configure:9944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9944 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9945 | if test -z "$ac_err"; then | |
9946 | rm -rf conftest* | |
9947 | eval "ac_cv_header_$ac_safe=yes" | |
9948 | else | |
9949 | echo "$ac_err" >&5 | |
9950 | echo "configure: failed program was:" >&5 | |
9951 | cat conftest.$ac_ext >&5 | |
9952 | rm -rf conftest* | |
9953 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 9954 | fi |
a0b9e27f | 9955 | rm -f conftest* |
90dd450c | 9956 | fi |
a0b9e27f MB |
9957 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9958 | echo "$ac_t""yes" 1>&6 | |
9959 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9960 | cat >> confdefs.h <<EOF | |
9961 | #define $ac_tr_hdr 1 | |
9962 | EOF | |
9963 | ||
9964 | else | |
9965 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 9966 | fi |
a0b9e27f | 9967 | done |
247f5006 | 9968 | |
a0b9e27f MB |
9969 | for ac_hdr in unistd.h |
9970 | do | |
9971 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9972 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
8b389fab | 9973 | echo "configure:9974: checking for $ac_hdr" >&5 |
a0b9e27f MB |
9974 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9975 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9976 | else | |
9977 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 9978 | #line 9979 "configure" |
a0b9e27f MB |
9979 | #include "confdefs.h" |
9980 | #include <$ac_hdr> | |
9981 | EOF | |
9982 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8b389fab | 9983 | { (eval echo configure:9984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9984 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9985 | if test -z "$ac_err"; then | |
9986 | rm -rf conftest* | |
9987 | eval "ac_cv_header_$ac_safe=yes" | |
9988 | else | |
9989 | echo "$ac_err" >&5 | |
9990 | echo "configure: failed program was:" >&5 | |
9991 | cat conftest.$ac_ext >&5 | |
9992 | rm -rf conftest* | |
9993 | eval "ac_cv_header_$ac_safe=no" | |
247f5006 | 9994 | fi |
a0b9e27f MB |
9995 | rm -f conftest* |
9996 | fi | |
9997 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9998 | echo "$ac_t""yes" 1>&6 | |
9999 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10000 | cat >> confdefs.h <<EOF | |
10001 | #define $ac_tr_hdr 1 | |
10002 | EOF | |
10003 | ||
10004 | else | |
10005 | echo "$ac_t""no" 1>&6 | |
10006 | fi | |
10007 | done | |
90dd450c | 10008 | |
a0b9e27f | 10009 | for ac_hdr in wchar.h |
21d1c967 | 10010 | do |
a0b9e27f MB |
10011 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10012 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
8b389fab | 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 | |
8b389fab | 10018 | #line 10019 "configure" |
4f14bcd8 | 10019 | #include "confdefs.h" |
a0b9e27f MB |
10020 | #include <$ac_hdr> |
10021 | EOF | |
10022 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8b389fab | 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" | |
10034 | fi | |
10035 | rm -f conftest* | |
10036 | fi | |
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 | ||
10044 | else | |
10045 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
10046 | fi |
10047 | done | |
4f14bcd8 | 10048 | |
5c6fa7d2 | 10049 | |
a0b9e27f MB |
10050 | if test "$ac_cv_header_wchar_h" != "yes"; then |
10051 | for ac_hdr in wcstr.h | |
21d1c967 | 10052 | do |
a0b9e27f MB |
10053 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10054 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
8b389fab | 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 | |
8b389fab | 10060 | #line 10061 "configure" |
d4158b5d | 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" | |
8b389fab | 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 | |
d4158b5d | 10073 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10074 | rm -rf conftest* |
10075 | eval "ac_cv_header_$ac_safe=no" | |
d4158b5d | 10076 | fi |
a0b9e27f | 10077 | rm -f conftest* |
21d1c967 | 10078 | fi |
a0b9e27f MB |
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 | ||
10086 | else | |
10087 | echo "$ac_t""no" 1>&6 | |
d4158b5d | 10088 | fi |
21d1c967 | 10089 | done |
f6bcfd97 | 10090 | |
90dd450c | 10091 | fi |
90dd450c | 10092 | |
a0b9e27f | 10093 | for ac_hdr in fnmatch.h |
21d1c967 | 10094 | do |
a0b9e27f MB |
10095 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10096 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
8b389fab | 10097 | echo "configure:10098: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10098 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10099 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10100 | else | |
10101 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 10102 | #line 10103 "configure" |
90dd450c | 10103 | #include "confdefs.h" |
a0b9e27f MB |
10104 | #include <$ac_hdr> |
10105 | EOF | |
10106 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8b389fab | 10107 | { (eval echo configure:10108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10108 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10109 | if test -z "$ac_err"; then | |
10110 | rm -rf conftest* | |
10111 | eval "ac_cv_header_$ac_safe=yes" | |
10112 | else | |
10113 | echo "$ac_err" >&5 | |
10114 | echo "configure: failed program was:" >&5 | |
3a922bb4 | 10115 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10116 | rm -rf conftest* |
10117 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 10118 | fi |
a0b9e27f | 10119 | rm -f conftest* |
4f14bcd8 | 10120 | fi |
a0b9e27f MB |
10121 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10122 | echo "$ac_t""yes" 1>&6 | |
10123 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10124 | cat >> confdefs.h <<EOF | |
10125 | #define $ac_tr_hdr 1 | |
10126 | EOF | |
10127 | ||
10128 | else | |
10129 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
10130 | fi |
10131 | done | |
90dd450c | 10132 | |
5c6fa7d2 | 10133 | |
a0b9e27f MB |
10134 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
10135 | for ac_func in fnmatch | |
21d1c967 | 10136 | do |
a0b9e27f | 10137 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8b389fab | 10138 | echo "configure:10139: checking for $ac_func" >&5 |
a0b9e27f MB |
10139 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10140 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10141 | else |
a0b9e27f | 10142 | cat > conftest.$ac_ext <<EOF |
8b389fab | 10143 | #line 10144 "configure" |
a0b9e27f MB |
10144 | #include "confdefs.h" |
10145 | /* System header to define __stub macros and hopefully few prototypes, | |
10146 | which can conflict with char $ac_func(); below. */ | |
10147 | #include <assert.h> | |
10148 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10149 | /* We use char because int might match the return type of a gcc2 | |
10150 | builtin and then its argument prototype would still apply. */ | |
10151 | char $ac_func(); | |
10152 | ||
10153 | int main() { | |
10154 | ||
10155 | /* The GNU C library defines this for functions which it implements | |
10156 | to always fail with ENOSYS. Some functions are actually named | |
10157 | something starting with __ and the normal name is an alias. */ | |
10158 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10159 | choke me | |
10160 | #else | |
10161 | $ac_func(); | |
10162 | #endif | |
10163 | ||
10164 | ; return 0; } | |
10165 | EOF | |
8b389fab | 10166 | if { (eval echo configure:10167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
10167 | rm -rf conftest* |
10168 | eval "ac_cv_func_$ac_func=yes" | |
8284b0c5 | 10169 | else |
a0b9e27f | 10170 | echo "configure: failed program was:" >&5 |
8284b0c5 | 10171 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10172 | rm -rf conftest* |
10173 | eval "ac_cv_func_$ac_func=no" | |
8284b0c5 | 10174 | fi |
a0b9e27f | 10175 | rm -f conftest* |
8284b0c5 | 10176 | fi |
32832908 | 10177 | |
a0b9e27f MB |
10178 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
10179 | echo "$ac_t""yes" 1>&6 | |
10180 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10181 | cat >> confdefs.h <<EOF | |
10182 | #define $ac_tr_func 1 | |
10183 | EOF | |
10184 | ||
10185 | else | |
10186 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
10187 | fi |
10188 | done | |
90dd450c | 10189 | |
a0b9e27f | 10190 | fi |
90dd450c | 10191 | |
a0b9e27f | 10192 | for ac_hdr in langinfo.h |
21d1c967 | 10193 | do |
a0b9e27f MB |
10194 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10195 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
8b389fab | 10196 | echo "configure:10197: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10197 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10198 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10199 | else | |
10200 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 10201 | #line 10202 "configure" |
247f5006 | 10202 | #include "confdefs.h" |
a0b9e27f MB |
10203 | #include <$ac_hdr> |
10204 | EOF | |
10205 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8b389fab | 10206 | { (eval echo configure:10207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10207 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10208 | if test -z "$ac_err"; then | |
10209 | rm -rf conftest* | |
10210 | eval "ac_cv_header_$ac_safe=yes" | |
10211 | else | |
10212 | echo "$ac_err" >&5 | |
10213 | echo "configure: failed program was:" >&5 | |
90dd450c | 10214 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10215 | rm -rf conftest* |
10216 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 10217 | fi |
a0b9e27f | 10218 | rm -f conftest* |
4f14bcd8 | 10219 | fi |
a0b9e27f MB |
10220 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10221 | echo "$ac_t""yes" 1>&6 | |
10222 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10223 | cat >> confdefs.h <<EOF | |
10224 | #define $ac_tr_hdr 1 | |
10225 | EOF | |
10226 | ||
10227 | else | |
10228 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
10229 | fi |
10230 | done | |
3a922bb4 | 10231 | |
8284b0c5 | 10232 | |
4f5a7f74 VZ |
10233 | case "${host}" in |
10234 | *-pc-os2_emx | *-pc-os2-emx ) | |
10235 | if test $ac_cv_header_langinfo_h = "yes"; then | |
10236 | LIBS="$LIBS -lintl" | |
10237 | fi | |
10238 | ;; | |
10239 | esac | |
1542ea39 | 10240 | |
a0b9e27f MB |
10241 | if test "$wxUSE_GUI" = "yes"; then |
10242 | if test "$wxUSE_UNIX" = "yes"; then | |
10243 | for ac_hdr in X11/XKBlib.h | |
21d1c967 | 10244 | do |
a0b9e27f MB |
10245 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10246 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
8b389fab | 10247 | echo "configure:10248: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10248 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10249 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10250 | else | |
10251 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 10252 | #line 10253 "configure" |
90dd450c | 10253 | #include "confdefs.h" |
a0b9e27f MB |
10254 | #include <$ac_hdr> |
10255 | EOF | |
10256 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8b389fab | 10257 | { (eval echo configure:10258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10258 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10259 | if test -z "$ac_err"; then | |
10260 | rm -rf conftest* | |
10261 | eval "ac_cv_header_$ac_safe=yes" | |
10262 | else | |
10263 | echo "$ac_err" >&5 | |
10264 | echo "configure: failed program was:" >&5 | |
90dd450c | 10265 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10266 | rm -rf conftest* |
10267 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 10268 | fi |
a0b9e27f | 10269 | rm -f conftest* |
90dd450c | 10270 | fi |
a0b9e27f MB |
10271 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10272 | echo "$ac_t""yes" 1>&6 | |
10273 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10274 | cat >> confdefs.h <<EOF | |
10275 | #define $ac_tr_hdr 1 | |
10276 | EOF | |
10277 | ||
10278 | else | |
10279 | echo "$ac_t""no" 1>&6 | |
247f5006 | 10280 | fi |
247f5006 VZ |
10281 | done |
10282 | ||
a0b9e27f MB |
10283 | fi |
10284 | fi | |
247f5006 | 10285 | |
247f5006 | 10286 | |
a0b9e27f | 10287 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
8b389fab | 10288 | echo "configure:10289: checking for working const" >&5 |
a0b9e27f MB |
10289 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
10290 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10291 | else |
a0b9e27f | 10292 | cat > conftest.$ac_ext <<EOF |
8b389fab | 10293 | #line 10294 "configure" |
a0b9e27f MB |
10294 | #include "confdefs.h" |
10295 | ||
10296 | int main() { | |
10297 | ||
10298 | /* Ultrix mips cc rejects this. */ | |
10299 | typedef int charset[2]; const charset x; | |
10300 | /* SunOS 4.1.1 cc rejects this. */ | |
10301 | char const *const *ccp; | |
10302 | char **p; | |
10303 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
10304 | struct point {int x, y;}; | |
10305 | static struct point const zero = {0,0}; | |
10306 | /* AIX XL C 1.02.0.0 rejects this. | |
10307 | It does not let you subtract one const X* pointer from another in an arm | |
10308 | of an if-expression whose if-part is not a constant expression */ | |
10309 | const char *g = "string"; | |
10310 | ccp = &g + (g ? g-g : 0); | |
10311 | /* HPUX 7.0 cc rejects these. */ | |
10312 | ++ccp; | |
10313 | p = (char**) ccp; | |
10314 | ccp = (char const *const *) p; | |
10315 | { /* SCO 3.2v4 cc rejects this. */ | |
10316 | char *t; | |
10317 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
10318 | ||
10319 | *t++ = 0; | |
10320 | } | |
10321 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
10322 | int x[] = {25, 17}; | |
10323 | const int *foo = &x[0]; | |
10324 | ++foo; | |
10325 | } | |
10326 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
10327 | typedef const int *iptr; | |
10328 | iptr p = 0; | |
10329 | ++p; | |
10330 | } | |
10331 | { /* AIX XL C 1.02.0.0 rejects this saying | |
10332 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
10333 | struct s { int j; const int *ap[3]; }; | |
10334 | struct s *b; b->j = 5; | |
10335 | } | |
10336 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
10337 | const int foo = 10; | |
10338 | } | |
10339 | ||
10340 | ; return 0; } | |
10341 | EOF | |
8b389fab | 10342 | if { (eval echo configure:10343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
10343 | rm -rf conftest* |
10344 | ac_cv_c_const=yes | |
247f5006 | 10345 | else |
a0b9e27f | 10346 | echo "configure: failed program was:" >&5 |
247f5006 | 10347 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10348 | rm -rf conftest* |
10349 | ac_cv_c_const=no | |
247f5006 | 10350 | fi |
a0b9e27f | 10351 | rm -f conftest* |
21d1c967 | 10352 | fi |
247f5006 | 10353 | |
a0b9e27f MB |
10354 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
10355 | if test $ac_cv_c_const = no; then | |
10356 | cat >> confdefs.h <<\EOF | |
10357 | #define const | |
10358 | EOF | |
10f2d63a | 10359 | |
90dd450c | 10360 | fi |
81809c07 | 10361 | |
a0b9e27f | 10362 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
8b389fab | 10363 | echo "configure:10364: checking for inline" >&5 |
a0b9e27f MB |
10364 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
10365 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8168de4c | 10366 | else |
a0b9e27f MB |
10367 | ac_cv_c_inline=no |
10368 | for ac_kw in inline __inline__ __inline; do | |
10369 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 10370 | #line 10371 "configure" |
a0b9e27f MB |
10371 | #include "confdefs.h" |
10372 | ||
10373 | int main() { | |
10374 | } $ac_kw foo() { | |
10375 | ; return 0; } | |
10376 | EOF | |
8b389fab | 10377 | if { (eval echo configure:10378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
10378 | rm -rf conftest* |
10379 | ac_cv_c_inline=$ac_kw; break | |
247f5006 | 10380 | else |
a0b9e27f | 10381 | echo "configure: failed program was:" >&5 |
247f5006 | 10382 | cat conftest.$ac_ext >&5 |
247f5006 | 10383 | fi |
a0b9e27f MB |
10384 | rm -f conftest* |
10385 | done | |
247f5006 VZ |
10386 | |
10387 | fi | |
10388 | ||
a0b9e27f MB |
10389 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
10390 | case "$ac_cv_c_inline" in | |
10391 | inline | yes) ;; | |
10392 | no) cat >> confdefs.h <<\EOF | |
10393 | #define inline | |
10394 | EOF | |
10395 | ;; | |
10396 | *) cat >> confdefs.h <<EOF | |
10397 | #define inline $ac_cv_c_inline | |
10398 | EOF | |
10399 | ;; | |
10400 | esac | |
247f5006 | 10401 | |
247f5006 | 10402 | |
a0b9e27f | 10403 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
8b389fab | 10404 | echo "configure:10405: checking size of char" >&5 |
a0b9e27f MB |
10405 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
10406 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10407 | else | |
10408 | if test "$cross_compiling" = yes; then | |
10409 | ac_cv_sizeof_char=1 | |
10410 | else | |
10411 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 10412 | #line 10413 "configure" |
4f14bcd8 | 10413 | #include "confdefs.h" |
a0b9e27f | 10414 | #include <stdio.h> |
a0b9e27f | 10415 | main() |
247f5006 | 10416 | { |
a0b9e27f MB |
10417 | FILE *f=fopen("conftestval", "w"); |
10418 | if (!f) exit(1); | |
10419 | fprintf(f, "%d\n", sizeof(char)); | |
10420 | exit(0); | |
52127426 | 10421 | } |
a0b9e27f | 10422 | EOF |
8b389fab | 10423 | if { (eval echo configure:10424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10424 | then |
10425 | ac_cv_sizeof_char=`cat conftestval` | |
247f5006 | 10426 | else |
a0b9e27f | 10427 | echo "configure: failed program was:" >&5 |
247f5006 | 10428 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10429 | rm -fr conftest* |
10430 | ac_cv_sizeof_char=0 | |
247f5006 | 10431 | fi |
a0b9e27f | 10432 | rm -fr conftest* |
247f5006 | 10433 | fi |
247f5006 VZ |
10434 | |
10435 | fi | |
a0b9e27f MB |
10436 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
10437 | cat >> confdefs.h <<EOF | |
10438 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
10439 | EOF | |
247f5006 | 10440 | |
247f5006 | 10441 | |
a0b9e27f | 10442 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
8b389fab | 10443 | echo "configure:10444: checking size of short" >&5 |
a0b9e27f MB |
10444 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
10445 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10446 | else |
a0b9e27f MB |
10447 | if test "$cross_compiling" = yes; then |
10448 | ac_cv_sizeof_short=2 | |
247f5006 | 10449 | else |
a0b9e27f | 10450 | cat > conftest.$ac_ext <<EOF |
8b389fab | 10451 | #line 10452 "configure" |
a0b9e27f MB |
10452 | #include "confdefs.h" |
10453 | #include <stdio.h> | |
a0b9e27f MB |
10454 | main() |
10455 | { | |
10456 | FILE *f=fopen("conftestval", "w"); | |
10457 | if (!f) exit(1); | |
10458 | fprintf(f, "%d\n", sizeof(short)); | |
10459 | exit(0); | |
10460 | } | |
10461 | EOF | |
8b389fab | 10462 | if { (eval echo configure:10463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10463 | then |
10464 | ac_cv_sizeof_short=`cat conftestval` | |
247f5006 | 10465 | else |
a0b9e27f MB |
10466 | echo "configure: failed program was:" >&5 |
10467 | cat conftest.$ac_ext >&5 | |
10468 | rm -fr conftest* | |
10469 | ac_cv_sizeof_short=0 | |
247f5006 | 10470 | fi |
a0b9e27f | 10471 | rm -fr conftest* |
247f5006 VZ |
10472 | fi |
10473 | ||
247f5006 | 10474 | fi |
a0b9e27f MB |
10475 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
10476 | cat >> confdefs.h <<EOF | |
10477 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
10478 | EOF | |
247f5006 VZ |
10479 | |
10480 | ||
a0b9e27f | 10481 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 |
8b389fab | 10482 | echo "configure:10483: checking size of void *" >&5 |
a0b9e27f MB |
10483 | if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then |
10484 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10485 | else | |
10486 | if test "$cross_compiling" = yes; then | |
10487 | ac_cv_sizeof_void_p=4 | |
247f5006 | 10488 | else |
a0b9e27f | 10489 | cat > conftest.$ac_ext <<EOF |
8b389fab | 10490 | #line 10491 "configure" |
247f5006 | 10491 | #include "confdefs.h" |
247f5006 | 10492 | #include <stdio.h> |
a0b9e27f | 10493 | main() |
247f5006 | 10494 | { |
a0b9e27f MB |
10495 | FILE *f=fopen("conftestval", "w"); |
10496 | if (!f) exit(1); | |
10497 | fprintf(f, "%d\n", sizeof(void *)); | |
10498 | exit(0); | |
5c6fa7d2 | 10499 | } |
a0b9e27f | 10500 | EOF |
8b389fab | 10501 | if { (eval echo configure:10502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10502 | then |
10503 | ac_cv_sizeof_void_p=`cat conftestval` | |
10504 | else | |
10505 | echo "configure: failed program was:" >&5 | |
10506 | cat conftest.$ac_ext >&5 | |
10507 | rm -fr conftest* | |
10508 | ac_cv_sizeof_void_p=0 | |
10509 | fi | |
10510 | rm -fr conftest* | |
10511 | fi | |
8284b0c5 | 10512 | |
247f5006 | 10513 | fi |
a0b9e27f MB |
10514 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 |
10515 | cat >> confdefs.h <<EOF | |
10516 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
10517 | EOF | |
247f5006 | 10518 | |
247f5006 | 10519 | |
a0b9e27f | 10520 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
8b389fab | 10521 | echo "configure:10522: checking size of int" >&5 |
a0b9e27f MB |
10522 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
10523 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10524 | else |
a0b9e27f MB |
10525 | if test "$cross_compiling" = yes; then |
10526 | ac_cv_sizeof_int=4 | |
10527 | else | |
10528 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 10529 | #line 10530 "configure" |
247f5006 | 10530 | #include "confdefs.h" |
a0b9e27f | 10531 | #include <stdio.h> |
a0b9e27f | 10532 | main() |
247f5006 | 10533 | { |
a0b9e27f MB |
10534 | FILE *f=fopen("conftestval", "w"); |
10535 | if (!f) exit(1); | |
10536 | fprintf(f, "%d\n", sizeof(int)); | |
10537 | exit(0); | |
247f5006 | 10538 | } |
a0b9e27f | 10539 | EOF |
8b389fab | 10540 | if { (eval echo configure:10541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10541 | then |
10542 | ac_cv_sizeof_int=`cat conftestval` | |
6f72b082 | 10543 | else |
a0b9e27f MB |
10544 | echo "configure: failed program was:" >&5 |
10545 | cat conftest.$ac_ext >&5 | |
10546 | rm -fr conftest* | |
10547 | ac_cv_sizeof_int=0 | |
21d1c967 | 10548 | fi |
a0b9e27f | 10549 | rm -fr conftest* |
698dcdb6 | 10550 | fi |
4f14bcd8 | 10551 | |
21d1c967 | 10552 | fi |
a0b9e27f MB |
10553 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
10554 | cat >> confdefs.h <<EOF | |
10555 | #define SIZEOF_INT $ac_cv_sizeof_int | |
10556 | EOF | |
4f14bcd8 | 10557 | |
5c6fa7d2 | 10558 | |
a0b9e27f | 10559 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
8b389fab | 10560 | echo "configure:10561: checking size of long" >&5 |
a0b9e27f MB |
10561 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
10562 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10563 | else |
247f5006 | 10564 | if test "$cross_compiling" = yes; then |
a0b9e27f | 10565 | ac_cv_sizeof_long=4 |
247f5006 | 10566 | else |
a0b9e27f | 10567 | cat > conftest.$ac_ext <<EOF |
8b389fab | 10568 | #line 10569 "configure" |
247f5006 | 10569 | #include "confdefs.h" |
a0b9e27f | 10570 | #include <stdio.h> |
a0b9e27f | 10571 | main() |
247f5006 | 10572 | { |
a0b9e27f MB |
10573 | FILE *f=fopen("conftestval", "w"); |
10574 | if (!f) exit(1); | |
10575 | fprintf(f, "%d\n", sizeof(long)); | |
10576 | exit(0); | |
247f5006 | 10577 | } |
a0b9e27f | 10578 | EOF |
8b389fab | 10579 | if { (eval echo configure:10580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10580 | then |
10581 | ac_cv_sizeof_long=`cat conftestval` | |
247f5006 | 10582 | else |
a0b9e27f MB |
10583 | echo "configure: failed program was:" >&5 |
10584 | cat conftest.$ac_ext >&5 | |
10585 | rm -fr conftest* | |
10586 | ac_cv_sizeof_long=0 | |
247f5006 | 10587 | fi |
a0b9e27f | 10588 | rm -fr conftest* |
247f5006 | 10589 | fi |
247f5006 | 10590 | |
5c6fa7d2 | 10591 | fi |
a0b9e27f MB |
10592 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
10593 | cat >> confdefs.h <<EOF | |
10594 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
10595 | EOF | |
247f5006 | 10596 | |
a0b9e27f MB |
10597 | |
10598 | ||
10599 | case "${host}" in | |
10600 | arm-*-linux* ) | |
10601 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
8b389fab | 10602 | echo "configure:10603: checking size of long long" >&5 |
a0b9e27f MB |
10603 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10604 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10605 | else | |
10606 | if test "$cross_compiling" = yes; then | |
10607 | ac_cv_sizeof_long_long=8 | |
10608 | else | |
10609 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 10610 | #line 10611 "configure" |
247f5006 | 10611 | #include "confdefs.h" |
a0b9e27f | 10612 | #include <stdio.h> |
a0b9e27f | 10613 | main() |
247f5006 | 10614 | { |
a0b9e27f MB |
10615 | FILE *f=fopen("conftestval", "w"); |
10616 | if (!f) exit(1); | |
10617 | fprintf(f, "%d\n", sizeof(long long)); | |
10618 | exit(0); | |
247f5006 | 10619 | } |
a0b9e27f | 10620 | EOF |
8b389fab | 10621 | if { (eval echo configure:10622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10622 | then |
10623 | ac_cv_sizeof_long_long=`cat conftestval` | |
7b4a847f | 10624 | else |
a0b9e27f MB |
10625 | echo "configure: failed program was:" >&5 |
10626 | cat conftest.$ac_ext >&5 | |
10627 | rm -fr conftest* | |
10628 | ac_cv_sizeof_long_long=0 | |
5c6fa7d2 | 10629 | fi |
a0b9e27f | 10630 | rm -fr conftest* |
5c6fa7d2 | 10631 | fi |
8284b0c5 | 10632 | |
a0b9e27f MB |
10633 | fi |
10634 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
10635 | cat >> confdefs.h <<EOF | |
10636 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10637 | EOF | |
10638 | ||
10639 | ||
10640 | ;; | |
4f57cf11 | 10641 | *-hp-hpux* ) |
a0b9e27f | 10642 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
8b389fab | 10643 | echo "configure:10644: checking size of long long" >&5 |
a0b9e27f MB |
10644 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10645 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 MB |
10646 | else |
10647 | if test "$cross_compiling" = yes; then | |
a0b9e27f | 10648 | ac_cv_sizeof_long_long=0 |
8284b0c5 | 10649 | else |
a0b9e27f | 10650 | cat > conftest.$ac_ext <<EOF |
8b389fab | 10651 | #line 10652 "configure" |
8284b0c5 MB |
10652 | #include "confdefs.h" |
10653 | #include <stdio.h> | |
a0b9e27f | 10654 | main() |
8284b0c5 | 10655 | { |
a0b9e27f MB |
10656 | FILE *f=fopen("conftestval", "w"); |
10657 | if (!f) exit(1); | |
10658 | fprintf(f, "%d\n", sizeof(long long)); | |
10659 | exit(0); | |
8284b0c5 | 10660 | } |
a0b9e27f | 10661 | EOF |
8b389fab | 10662 | if { (eval echo configure:10663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10663 | then |
10664 | ac_cv_sizeof_long_long=`cat conftestval` | |
5c6fa7d2 | 10665 | else |
a0b9e27f MB |
10666 | echo "configure: failed program was:" >&5 |
10667 | cat conftest.$ac_ext >&5 | |
10668 | rm -fr conftest* | |
5c6fa7d2 | 10669 | ac_cv_sizeof_long_long=0 |
52127426 | 10670 | fi |
a0b9e27f MB |
10671 | rm -fr conftest* |
10672 | fi | |
10673 | ||
4f57cf11 GD |
10674 | fi |
10675 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
10676 | cat >> confdefs.h <<EOF | |
10677 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10678 | EOF | |
10679 | ||
10680 | ||
10681 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
10682 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
10683 | fi | |
10684 | ;; | |
10685 | * ) | |
10686 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
8b389fab | 10687 | echo "configure:10688: checking size of long long" >&5 |
4f57cf11 GD |
10688 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10689 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10690 | else | |
10691 | if test "$cross_compiling" = yes; then | |
10692 | ac_cv_sizeof_long_long=0 | |
10693 | else | |
10694 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 10695 | #line 10696 "configure" |
4f57cf11 GD |
10696 | #include "confdefs.h" |
10697 | #include <stdio.h> | |
10698 | main() | |
10699 | { | |
10700 | FILE *f=fopen("conftestval", "w"); | |
10701 | if (!f) exit(1); | |
10702 | fprintf(f, "%d\n", sizeof(long long)); | |
10703 | exit(0); | |
10704 | } | |
10705 | EOF | |
8b389fab | 10706 | if { (eval echo configure:10707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f57cf11 GD |
10707 | then |
10708 | ac_cv_sizeof_long_long=`cat conftestval` | |
10709 | else | |
10710 | echo "configure: failed program was:" >&5 | |
10711 | cat conftest.$ac_ext >&5 | |
10712 | rm -fr conftest* | |
10713 | ac_cv_sizeof_long_long=0 | |
10714 | fi | |
10715 | rm -fr conftest* | |
10716 | fi | |
10717 | ||
7b4a847f | 10718 | fi |
a0b9e27f MB |
10719 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
10720 | cat >> confdefs.h <<EOF | |
21d1c967 | 10721 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
a0b9e27f | 10722 | EOF |
9e691f46 | 10723 | |
8284b0c5 | 10724 | |
21d1c967 GD |
10725 | esac |
10726 | ||
a0b9e27f | 10727 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 |
8b389fab | 10728 | echo "configure:10729: checking size of wchar_t" >&5 |
a0b9e27f MB |
10729 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then |
10730 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 10731 | else |
a0b9e27f | 10732 | |
21d1c967 | 10733 | if test "$cross_compiling" = yes; then |
2b5f62a0 VZ |
10734 | |
10735 | case "${host}" in | |
10736 | *-pc-msdosdjgpp ) | |
10737 | wx_cv_sizeof_wchar_t=0 | |
10738 | ;; | |
10739 | * ) | |
10740 | wx_cv_sizeof_wchar_t=4 | |
10741 | ;; | |
10742 | esac | |
10743 | ||
a0b9e27f | 10744 | |
6f72b082 | 10745 | else |
a0b9e27f | 10746 | cat > conftest.$ac_ext <<EOF |
8b389fab | 10747 | #line 10748 "configure" |
6f72b082 | 10748 | #include "confdefs.h" |
21d1c967 | 10749 | |
2b5f62a0 VZ |
10750 | /* DJGPP only has fake wchar_t: */ |
10751 | #ifdef __DJGPP__ | |
10752 | # error "fake wchar_t" | |
10753 | #endif | |
21d1c967 GD |
10754 | #ifdef HAVE_WCHAR_H |
10755 | # ifdef __CYGWIN__ | |
10756 | # include <stddef.h> | |
10757 | # endif | |
10758 | # include <wchar.h> | |
10759 | #endif | |
10760 | #ifdef HAVE_STDLIB_H | |
10761 | # include <stdlib.h> | |
10762 | #endif | |
10763 | #include <stdio.h> | |
10764 | int main() | |
10765 | { | |
10766 | FILE *f=fopen("conftestval", "w"); | |
10767 | if (!f) exit(1); | |
10768 | fprintf(f, "%i", sizeof(wchar_t)); | |
10769 | exit(0); | |
10770 | } | |
a0b9e27f MB |
10771 | |
10772 | EOF | |
8b389fab | 10773 | if { (eval echo configure:10774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 10774 | then |
21d1c967 | 10775 | wx_cv_sizeof_wchar_t=`cat conftestval` |
6f72b082 | 10776 | else |
a0b9e27f MB |
10777 | echo "configure: failed program was:" >&5 |
10778 | cat conftest.$ac_ext >&5 | |
10779 | rm -fr conftest* | |
10780 | wx_cv_sizeof_wchar_t=0 | |
6f72b082 | 10781 | fi |
a0b9e27f | 10782 | rm -fr conftest* |
6f72b082 | 10783 | fi |
6f72b082 | 10784 | |
a0b9e27f | 10785 | |
3f345b47 VZ |
10786 | fi |
10787 | ||
a0b9e27f MB |
10788 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 |
10789 | ||
10790 | cat >> confdefs.h <<EOF | |
21d1c967 | 10791 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t |
a0b9e27f | 10792 | EOF |
90dd450c | 10793 | |
8284b0c5 | 10794 | |
21d1c967 GD |
10795 | # Check whether --enable-largefile or --disable-largefile was given. |
10796 | if test "${enable_largefile+set}" = set; then | |
10797 | enableval="$enable_largefile" | |
a0b9e27f MB |
10798 | : |
10799 | fi | |
3f345b47 | 10800 | |
21d1c967 GD |
10801 | if test "$enable_largefile" != no; then |
10802 | wx_largefile=no | |
a0b9e27f MB |
10803 | |
10804 | echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 | |
8b389fab | 10805 | echo "configure:10806: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
a0b9e27f MB |
10806 | if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then |
10807 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10808 | else | |
10809 | ||
10810 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 10811 | #line 10812 "configure" |
90dd450c | 10812 | #include "confdefs.h" |
21d1c967 GD |
10813 | #define _FILE_OFFSET_BITS 64 |
10814 | #include <sys/types.h> | |
a0b9e27f | 10815 | int main() { |
21d1c967 GD |
10816 | typedef struct { |
10817 | unsigned int field: sizeof(off_t) == 8; | |
10818 | } wxlf; | |
10819 | ||
a0b9e27f MB |
10820 | ; return 0; } |
10821 | EOF | |
8b389fab | 10822 | if { (eval echo configure:10823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 10823 | rm -rf conftest* |
21d1c967 | 10824 | ac_cv_sys_file_offset_bits=64 |
f6bcfd97 | 10825 | else |
a0b9e27f MB |
10826 | echo "configure: failed program was:" >&5 |
10827 | cat conftest.$ac_ext >&5 | |
10828 | rm -rf conftest* | |
10829 | ac_cv_sys_file_offset_bits=no | |
5c6fa7d2 | 10830 | fi |
a0b9e27f MB |
10831 | rm -f conftest* |
10832 | ||
10833 | ||
247f5006 | 10834 | fi |
a0b9e27f MB |
10835 | |
10836 | echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6 | |
21d1c967 GD |
10837 | |
10838 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
10839 | wx_largefile=yes | |
a0b9e27f | 10840 | cat >> confdefs.h <<EOF |
21d1c967 | 10841 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
a0b9e27f | 10842 | EOF |
21d1c967 GD |
10843 | |
10844 | fi | |
10845 | ||
10846 | if test "x$wx_largefile" != "xyes"; then | |
a0b9e27f MB |
10847 | |
10848 | echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6 | |
8b389fab | 10849 | echo "configure:10850: checking for _LARGE_FILES value needed for large files" >&5 |
a0b9e27f MB |
10850 | if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then |
10851 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10852 | else | |
10853 | ||
10854 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 10855 | #line 10856 "configure" |
f6bcfd97 | 10856 | #include "confdefs.h" |
21d1c967 GD |
10857 | #define _LARGE_FILES 1 |
10858 | #include <sys/types.h> | |
a0b9e27f | 10859 | int main() { |
21d1c967 GD |
10860 | typedef struct { |
10861 | unsigned int field: sizeof(off_t) == 8; | |
10862 | } wxlf; | |
10863 | ||
a0b9e27f MB |
10864 | ; return 0; } |
10865 | EOF | |
8b389fab | 10866 | if { (eval echo configure:10867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 10867 | rm -rf conftest* |
21d1c967 | 10868 | ac_cv_sys_large_files=1 |
f6bcfd97 | 10869 | else |
a0b9e27f MB |
10870 | echo "configure: failed program was:" >&5 |
10871 | cat conftest.$ac_ext >&5 | |
10872 | rm -rf conftest* | |
10873 | ac_cv_sys_large_files=no | |
5c6fa7d2 | 10874 | fi |
a0b9e27f MB |
10875 | rm -f conftest* |
10876 | ||
10877 | ||
247f5006 | 10878 | fi |
a0b9e27f MB |
10879 | |
10880 | echo "$ac_t""$ac_cv_sys_large_files" 1>&6 | |
3f345b47 | 10881 | |
21d1c967 GD |
10882 | if test "$ac_cv_sys_large_files" != no; then |
10883 | wx_largefile=yes | |
a0b9e27f | 10884 | cat >> confdefs.h <<EOF |
21d1c967 | 10885 | #define _LARGE_FILES $ac_cv_sys_large_files |
a0b9e27f | 10886 | EOF |
90dd450c | 10887 | |
90dd450c VZ |
10888 | fi |
10889 | ||
90dd450c | 10890 | fi |
90dd450c | 10891 | |
a0b9e27f | 10892 | echo $ac_n "checking if large file support is available""... $ac_c" 1>&6 |
8b389fab | 10893 | echo "configure:10894: checking if large file support is available" >&5 |
21d1c967 | 10894 | if test "x$wx_largefile" = "xyes"; then |
a0b9e27f | 10895 | cat >> confdefs.h <<\EOF |
21d1c967 | 10896 | #define HAVE_LARGEFILE_SUPPORT 1 |
a0b9e27f | 10897 | EOF |
90dd450c | 10898 | |
90dd450c | 10899 | fi |
a0b9e27f | 10900 | echo "$ac_t""$wx_largefile" 1>&6 |
21d1c967 | 10901 | fi |
90dd450c | 10902 | |
8284b0c5 | 10903 | |
f02444d0 | 10904 | if test "x$wx_largefile" = "xyes"; then |
e26c13cf RD |
10905 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then |
10906 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
f02444d0 | 10907 | else |
e26c13cf | 10908 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" |
f02444d0 | 10909 | fi |
e26c13cf | 10910 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" |
f02444d0 VZ |
10911 | fi |
10912 | ||
a0b9e27f | 10913 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
8b389fab | 10914 | echo "configure:10915: checking whether byte ordering is bigendian" >&5 |
a0b9e27f MB |
10915 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
10916 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 10917 | else |
21d1c967 GD |
10918 | ac_cv_c_bigendian=unknown |
10919 | # See if sys/param.h defines the BYTE_ORDER macro. | |
a0b9e27f | 10920 | cat > conftest.$ac_ext <<EOF |
8b389fab | 10921 | #line 10922 "configure" |
90dd450c | 10922 | #include "confdefs.h" |
21d1c967 GD |
10923 | #include <sys/types.h> |
10924 | #include <sys/param.h> | |
a0b9e27f | 10925 | int main() { |
21d1c967 GD |
10926 | |
10927 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
10928 | bogus endian macros | |
10929 | #endif | |
a0b9e27f MB |
10930 | ; return 0; } |
10931 | EOF | |
8b389fab | 10932 | if { (eval echo configure:10933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 10933 | rm -rf conftest* |
21d1c967 | 10934 | # It does; now see whether it defined to BIG_ENDIAN or not. |
a0b9e27f | 10935 | cat > conftest.$ac_ext <<EOF |
8b389fab | 10936 | #line 10937 "configure" |
90dd450c | 10937 | #include "confdefs.h" |
21d1c967 GD |
10938 | #include <sys/types.h> |
10939 | #include <sys/param.h> | |
a0b9e27f | 10940 | int main() { |
21d1c967 GD |
10941 | |
10942 | #if BYTE_ORDER != BIG_ENDIAN | |
10943 | not big endian | |
10944 | #endif | |
a0b9e27f MB |
10945 | ; return 0; } |
10946 | EOF | |
8b389fab | 10947 | if { (eval echo configure:10948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 10948 | rm -rf conftest* |
21d1c967 | 10949 | ac_cv_c_bigendian=yes |
3f345b47 | 10950 | else |
a0b9e27f MB |
10951 | echo "configure: failed program was:" >&5 |
10952 | cat conftest.$ac_ext >&5 | |
10953 | rm -rf conftest* | |
10954 | ac_cv_c_bigendian=no | |
3f345b47 | 10955 | fi |
a0b9e27f | 10956 | rm -f conftest* |
3f345b47 | 10957 | else |
a0b9e27f MB |
10958 | echo "configure: failed program was:" >&5 |
10959 | cat conftest.$ac_ext >&5 | |
3f345b47 | 10960 | fi |
a0b9e27f | 10961 | rm -f conftest* |
21d1c967 GD |
10962 | if test $ac_cv_c_bigendian = unknown; then |
10963 | if test "$cross_compiling" = yes; then | |
10964 | ac_cv_c_bigendian=unknown | |
10f2d63a | 10965 | else |
a0b9e27f | 10966 | cat > conftest.$ac_ext <<EOF |
8b389fab | 10967 | #line 10968 "configure" |
90dd450c | 10968 | #include "confdefs.h" |
21d1c967 GD |
10969 | main () { |
10970 | /* Are we little or big endian? From Harbison&Steele. */ | |
10971 | union | |
10972 | { | |
10973 | long l; | |
10974 | char c[sizeof (long)]; | |
10975 | } u; | |
10976 | u.l = 1; | |
10977 | exit (u.c[sizeof (long) - 1] == 1); | |
10978 | } | |
a0b9e27f | 10979 | EOF |
8b389fab | 10980 | if { (eval echo configure:10981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 10981 | then |
21d1c967 | 10982 | ac_cv_c_bigendian=no |
3f345b47 | 10983 | else |
a0b9e27f MB |
10984 | echo "configure: failed program was:" >&5 |
10985 | cat conftest.$ac_ext >&5 | |
10986 | rm -fr conftest* | |
10987 | ac_cv_c_bigendian=yes | |
247f5006 | 10988 | fi |
a0b9e27f | 10989 | rm -fr conftest* |
247f5006 | 10990 | fi |
a0b9e27f | 10991 | |
3f345b47 | 10992 | fi |
8168de4c | 10993 | fi |
a0b9e27f MB |
10994 | |
10995 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
247f5006 | 10996 | if test $ac_cv_c_bigendian = unknown; then |
a0b9e27f | 10997 | 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 |
10998 | fi |
10999 | if test $ac_cv_c_bigendian = yes; then | |
a0b9e27f | 11000 | cat >> confdefs.h <<\EOF |
247f5006 | 11001 | #define WORDS_BIGENDIAN 1 |
a0b9e27f | 11002 | EOF |
247f5006 VZ |
11003 | |
11004 | fi | |
11005 | ||
11006 | ||
a0b9e27f | 11007 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
8b389fab | 11008 | echo "configure:11009: checking how to run the C++ preprocessor" >&5 |
247f5006 | 11009 | if test -z "$CXXCPP"; then |
a0b9e27f MB |
11010 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then |
11011 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 11012 | else |
a0b9e27f MB |
11013 | ac_ext=C |
11014 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11015 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11016 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11017 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11018 | cross_compiling=$ac_cv_prog_cxx_cross | |
11019 | CXXCPP="${CXX-g++} -E" | |
11020 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 11021 | #line 11022 "configure" |
5c6fa7d2 | 11022 | #include "confdefs.h" |
a0b9e27f MB |
11023 | #include <stdlib.h> |
11024 | EOF | |
11025 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8b389fab | 11026 | { (eval echo configure:11027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11027 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11028 | if test -z "$ac_err"; then | |
21d1c967 | 11029 | : |
698dcdb6 | 11030 | else |
a0b9e27f MB |
11031 | echo "$ac_err" >&5 |
11032 | echo "configure: failed program was:" >&5 | |
698dcdb6 | 11033 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11034 | rm -rf conftest* |
11035 | CXXCPP=/lib/cpp | |
247f5006 | 11036 | fi |
a0b9e27f MB |
11037 | rm -f conftest* |
11038 | ac_cv_prog_CXXCPP="$CXXCPP" | |
11039 | ac_ext=C | |
11040 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11041 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11042 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11043 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11044 | cross_compiling=$ac_cv_prog_cxx_cross | |
328a083c | 11045 | fi |
90dd450c | 11046 | fi |
a0b9e27f MB |
11047 | CXXCPP="$ac_cv_prog_CXXCPP" |
11048 | echo "$ac_t""$CXXCPP" 1>&6 | |
1e6feb95 | 11049 | |
1725144d | 11050 | |
21d1c967 | 11051 | if test "$cross_compiling" = "yes"; then |
a0b9e27f | 11052 | cat >> confdefs.h <<\EOF |
21d1c967 | 11053 | #define wxUSE_IOSTREAMH 1 |
a0b9e27f | 11054 | EOF |
ab9b9eab | 11055 | |
21d1c967 | 11056 | else |
a0b9e27f MB |
11057 | |
11058 | ac_ext=C | |
11059 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 11060 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
11061 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11062 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11063 | cross_compiling=$ac_cv_prog_cxx_cross | |
52127426 | 11064 | |
247f5006 | 11065 | |
a0b9e27f | 11066 | for ac_hdr in iostream |
21d1c967 | 11067 | do |
a0b9e27f MB |
11068 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11069 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
8b389fab | 11070 | echo "configure:11071: checking for $ac_hdr" >&5 |
a0b9e27f MB |
11071 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11072 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11073 | else | |
11074 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 11075 | #line 11076 "configure" |
ab9b9eab | 11076 | #include "confdefs.h" |
a0b9e27f MB |
11077 | #include <$ac_hdr> |
11078 | EOF | |
11079 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8b389fab | 11080 | { (eval echo configure:11081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11081 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11082 | if test -z "$ac_err"; then | |
11083 | rm -rf conftest* | |
11084 | eval "ac_cv_header_$ac_safe=yes" | |
11085 | else | |
11086 | echo "$ac_err" >&5 | |
11087 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 11088 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11089 | rm -rf conftest* |
11090 | eval "ac_cv_header_$ac_safe=no" | |
ab9b9eab | 11091 | fi |
a0b9e27f | 11092 | rm -f conftest* |
90dd450c | 11093 | fi |
a0b9e27f MB |
11094 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11095 | echo "$ac_t""yes" 1>&6 | |
11096 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11097 | cat >> confdefs.h <<EOF | |
11098 | #define $ac_tr_hdr 1 | |
11099 | EOF | |
11100 | ||
11101 | else | |
11102 | echo "$ac_t""no" 1>&6 | |
90dd450c | 11103 | fi |
21d1c967 | 11104 | done |
10f2d63a | 11105 | |
8284b0c5 | 11106 | |
21d1c967 GD |
11107 | if test "$ac_cv_header_iostream" = "yes" ; then |
11108 | : | |
11109 | else | |
a0b9e27f | 11110 | cat >> confdefs.h <<\EOF |
21d1c967 | 11111 | #define wxUSE_IOSTREAMH 1 |
a0b9e27f | 11112 | EOF |
788deba1 | 11113 | |
90dd450c | 11114 | fi |
ab9b9eab | 11115 | |
21d1c967 | 11116 | ac_ext=c |
a0b9e27f | 11117 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
21d1c967 | 11118 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
11119 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11120 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11121 | cross_compiling=$ac_cv_prog_cc_cross | |
ab9b9eab | 11122 | |
21d1c967 | 11123 | fi |
ab9b9eab | 11124 | |
52127426 | 11125 | |
8284b0c5 | 11126 | |
a0b9e27f | 11127 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 |
8b389fab | 11128 | echo "configure:11129: checking if C++ compiler supports bool" >&5 |
a0b9e27f MB |
11129 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
11130 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 11131 | else |
a0b9e27f MB |
11132 | |
11133 | ||
11134 | ac_ext=C | |
11135 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 11136 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
11137 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11138 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11139 | cross_compiling=$ac_cv_prog_cxx_cross | |
21d1c967 | 11140 | |
8284b0c5 | 11141 | |
a0b9e27f | 11142 | cat > conftest.$ac_ext <<EOF |
8b389fab | 11143 | #line 11144 "configure" |
ab9b9eab | 11144 | #include "confdefs.h" |
21d1c967 | 11145 | |
a0b9e27f MB |
11146 | |
11147 | int main() { | |
21d1c967 GD |
11148 | |
11149 | bool b = true; | |
11150 | ||
11151 | return 0; | |
a0b9e27f MB |
11152 | |
11153 | ; return 0; } | |
11154 | EOF | |
8b389fab | 11155 | if { (eval echo configure:11156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
11156 | rm -rf conftest* |
11157 | ||
21d1c967 | 11158 | wx_cv_cpp_bool=yes |
a0b9e27f | 11159 | |
698dcdb6 | 11160 | else |
a0b9e27f MB |
11161 | echo "configure: failed program was:" >&5 |
11162 | cat conftest.$ac_ext >&5 | |
11163 | rm -rf conftest* | |
11164 | ||
21d1c967 | 11165 | wx_cv_cpp_bool=no |
a0b9e27f MB |
11166 | |
11167 | ||
698dcdb6 | 11168 | fi |
a0b9e27f | 11169 | rm -f conftest* |
21d1c967 GD |
11170 | |
11171 | ac_ext=c | |
a0b9e27f | 11172 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
21d1c967 | 11173 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
11174 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11175 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11176 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 11177 | |
a0b9e27f | 11178 | |
247f5006 | 11179 | fi |
a0b9e27f MB |
11180 | |
11181 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
21d1c967 GD |
11182 | |
11183 | if test "$wx_cv_cpp_bool" = "yes"; then | |
a0b9e27f | 11184 | cat >> confdefs.h <<\EOF |
21d1c967 | 11185 | #define HAVE_BOOL 1 |
a0b9e27f | 11186 | EOF |
ab9b9eab | 11187 | |
21d1c967 GD |
11188 | fi |
11189 | ||
52127426 | 11190 | |
8284b0c5 | 11191 | |
a0b9e27f | 11192 | echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6 |
8b389fab | 11193 | echo "configure:11194: checking if C++ compiler supports the explicit keyword" >&5 |
a0b9e27f MB |
11194 | if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then |
11195 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 11196 | else |
a0b9e27f MB |
11197 | |
11198 | ||
11199 | ac_ext=C | |
11200 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 11201 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
11202 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11203 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11204 | cross_compiling=$ac_cv_prog_cxx_cross | |
986ecc86 | 11205 | |
8284b0c5 | 11206 | |
a0b9e27f | 11207 | cat > conftest.$ac_ext <<EOF |
8b389fab | 11208 | #line 11209 "configure" |
986ecc86 VZ |
11209 | #include "confdefs.h" |
11210 | ||
11211 | class Foo { public: explicit Foo(int) {} }; | |
a0b9e27f MB |
11212 | |
11213 | int main() { | |
986ecc86 VZ |
11214 | |
11215 | return 0; | |
a0b9e27f MB |
11216 | |
11217 | ; return 0; } | |
11218 | EOF | |
8b389fab | 11219 | if { (eval echo configure:11220: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
11220 | rm -rf conftest* |
11221 | ||
11222 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 11223 | #line 11224 "configure" |
986ecc86 VZ |
11224 | #include "confdefs.h" |
11225 | ||
11226 | class Foo { public: explicit Foo(int) {} }; | |
11227 | static void TakeFoo(const Foo& foo) { } | |
a0b9e27f MB |
11228 | |
11229 | int main() { | |
986ecc86 VZ |
11230 | |
11231 | TakeFoo(17); | |
11232 | return 0; | |
a0b9e27f MB |
11233 | |
11234 | ; return 0; } | |
11235 | EOF | |
8b389fab | 11236 | if { (eval echo configure:11237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 11237 | rm -rf conftest* |
986ecc86 VZ |
11238 | wx_cv_explicit=no |
11239 | else | |
a0b9e27f MB |
11240 | echo "configure: failed program was:" >&5 |
11241 | cat conftest.$ac_ext >&5 | |
11242 | rm -rf conftest* | |
11243 | wx_cv_explicit=yes | |
11244 | ||
986ecc86 | 11245 | fi |
a0b9e27f MB |
11246 | rm -f conftest* |
11247 | ||
986ecc86 | 11248 | else |
a0b9e27f MB |
11249 | echo "configure: failed program was:" >&5 |
11250 | cat conftest.$ac_ext >&5 | |
11251 | rm -rf conftest* | |
11252 | wx_cv_explicit=no | |
11253 | ||
986ecc86 | 11254 | fi |
a0b9e27f | 11255 | rm -f conftest* |
986ecc86 VZ |
11256 | |
11257 | ac_ext=c | |
a0b9e27f | 11258 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
986ecc86 | 11259 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
11260 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11261 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11262 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 11263 | |
a0b9e27f | 11264 | |
247f5006 | 11265 | fi |
a0b9e27f MB |
11266 | |
11267 | echo "$ac_t""$wx_cv_explicit" 1>&6 | |
986ecc86 VZ |
11268 | |
11269 | if test "$wx_cv_explicit" = "yes"; then | |
a0b9e27f | 11270 | cat >> confdefs.h <<\EOF |
986ecc86 | 11271 | #define HAVE_EXPLICIT 1 |
a0b9e27f | 11272 | EOF |
986ecc86 VZ |
11273 | |
11274 | fi | |
11275 | ||
8284b0c5 | 11276 | |
521196a2 | 11277 | echo $ac_n "checking whether the compiler supports const_cast<>""... $ac_c" 1>&6 |
8b389fab | 11278 | echo "configure:11279: checking whether the compiler supports const_cast<>" >&5 |
521196a2 MB |
11279 | if eval "test \"`echo '$''{'ac_cv_cxx_const_cast'+set}'`\" = set"; then |
11280 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11281 | else | |
11282 | ||
11283 | ac_ext=C | |
11284 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11285 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11286 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11287 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11288 | cross_compiling=$ac_cv_prog_cxx_cross | |
11289 | ||
11290 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 11291 | #line 11292 "configure" |
521196a2 MB |
11292 | #include "confdefs.h" |
11293 | ||
11294 | int main() { | |
11295 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; | |
11296 | ; return 0; } | |
11297 | EOF | |
8b389fab | 11298 | if { (eval echo configure:11299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
521196a2 MB |
11299 | rm -rf conftest* |
11300 | ac_cv_cxx_const_cast=yes | |
11301 | else | |
11302 | echo "configure: failed program was:" >&5 | |
11303 | cat conftest.$ac_ext >&5 | |
11304 | rm -rf conftest* | |
11305 | ac_cv_cxx_const_cast=no | |
11306 | fi | |
11307 | rm -f conftest* | |
11308 | ac_ext=c | |
11309 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11310 | ac_cpp='$CPP $CPPFLAGS' | |
11311 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11312 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11313 | cross_compiling=$ac_cv_prog_cc_cross | |
11314 | ||
11315 | ||
11316 | fi | |
11317 | ||
11318 | echo "$ac_t""$ac_cv_cxx_const_cast" 1>&6 | |
11319 | if test "$ac_cv_cxx_const_cast" = yes; then | |
11320 | cat >> confdefs.h <<\EOF | |
11321 | #define HAVE_CONST_CAST | |
11322 | EOF | |
11323 | ||
11324 | fi | |
11325 | ||
11326 | ||
8284b0c5 | 11327 | |
21d1c967 GD |
11328 | SEARCH_INCLUDE="\ |
11329 | /usr/local/include \ | |
11330 | \ | |
11331 | /usr/Motif-1.2/include \ | |
11332 | /usr/Motif-2.1/include \ | |
11333 | \ | |
11334 | /usr/include/Motif1.2 \ | |
11335 | /opt/xpm/include/X11 \ | |
11336 | /opt/GBxpm/include/ \ | |
11337 | /opt/GBxpm/X11/include/ \ | |
11338 | \ | |
11339 | /usr/Motif1.2/include \ | |
11340 | /usr/dt/include \ | |
11341 | /usr/openwin/include \ | |
11342 | \ | |
11343 | /usr/include/Xm \ | |
11344 | \ | |
11345 | /usr/X11R6/include \ | |
11346 | /usr/X11R6.4/include \ | |
11347 | /usr/X11R5/include \ | |
11348 | /usr/X11R4/include \ | |
11349 | \ | |
11350 | /usr/include/X11R6 \ | |
11351 | /usr/include/X11R5 \ | |
11352 | /usr/include/X11R4 \ | |
11353 | \ | |
11354 | /usr/local/X11R6/include \ | |
11355 | /usr/local/X11R5/include \ | |
11356 | /usr/local/X11R4/include \ | |
11357 | \ | |
11358 | /usr/local/include/X11R6 \ | |
11359 | /usr/local/include/X11R5 \ | |
11360 | /usr/local/include/X11R4 \ | |
11361 | \ | |
11362 | /usr/X11/include \ | |
11363 | /usr/include/X11 \ | |
11364 | /usr/local/X11/include \ | |
11365 | /usr/local/include/X11 \ | |
11366 | \ | |
11367 | /usr/X386/include \ | |
11368 | /usr/x386/include \ | |
11369 | /usr/XFree86/include/X11 \ | |
11370 | \ | |
11371 | X:/XFree86/include \ | |
11372 | X:/XFree86/include/X11 \ | |
11373 | \ | |
11374 | /usr/include/gtk \ | |
11375 | /usr/local/include/gtk \ | |
11376 | /usr/include/glib \ | |
11377 | /usr/local/include/glib \ | |
11378 | \ | |
11379 | /usr/include/qt \ | |
11380 | /usr/local/include/qt \ | |
11381 | \ | |
11382 | /usr/include/windows \ | |
11383 | /usr/include/wine \ | |
11384 | /usr/local/include/wine \ | |
11385 | \ | |
11386 | /usr/unsupported/include \ | |
11387 | /usr/athena/include \ | |
11388 | /usr/local/x11r5/include \ | |
11389 | /usr/lpp/Xamples/include \ | |
11390 | \ | |
2b5f62a0 | 11391 | /usr/openwin/share/include" |
21d1c967 GD |
11392 | |
11393 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
11394 | ||
8284b0c5 | 11395 | |
a0b9e27f | 11396 | cat > confcache <<\EOF |
21d1c967 GD |
11397 | # This file is a shell script that caches the results of configure |
11398 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
11399 | # scripts and configure runs. It is not useful on other systems. |
11400 | # If it contains results you don't want to keep, you may remove or edit it. | |
21d1c967 | 11401 | # |
a0b9e27f MB |
11402 | # By default, configure uses ./config.cache as the cache file, |
11403 | # creating it if it does not exist already. You can give configure | |
11404 | # the --cache-file=FILE option to use a different cache file; that is | |
11405 | # what configure does when it calls configure scripts in | |
11406 | # subdirectories, so they share the cache. | |
11407 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
11408 | # config.status only pays attention to the cache file if you give it the | |
11409 | # --recheck option to rerun configure. | |
21d1c967 | 11410 | # |
a0b9e27f | 11411 | EOF |
21d1c967 GD |
11412 | # The following way of writing the cache mishandles newlines in values, |
11413 | # but we know of no workaround that is simple, portable, and efficient. | |
11414 | # So, don't put newlines in cache variables' values. | |
11415 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
11416 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
11417 | (set) 2>&1 | |
11418 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
11419 | *ac_space=\ *) | |
11420 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
11421 | # turns \\\\ into \\, and sed turns \\ into \). | |
11422 | sed -n \ | |
11423 | -e "s/'/'\\\\''/g" \ | |
11424 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
11425 | ;; | |
11426 | *) | |
11427 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
11428 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
11429 | ;; | |
11430 | esac >> confcache | |
11431 | if cmp -s $cache_file confcache; then | |
11432 | : | |
11433 | else | |
21d1c967 | 11434 | if test -w $cache_file; then |
a0b9e27f MB |
11435 | echo "updating cache $cache_file" |
11436 | cat confcache > $cache_file | |
21d1c967 GD |
11437 | else |
11438 | echo "not updating unwritable cache $cache_file" | |
11439 | fi | |
ab9b9eab | 11440 | fi |
21d1c967 | 11441 | rm -f confcache |
ab9b9eab | 11442 | |
247f5006 | 11443 | |
a0b9e27f MB |
11444 | if test "$USE_LINUX" = 1; then |
11445 | echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6 | |
8b389fab | 11446 | echo "configure:11447: checking for glibc 2.1 or later" >&5 |
a0b9e27f MB |
11447 | if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then |
11448 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11449 | else | |
11450 | ||
11451 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 11452 | #line 11453 "configure" |
ab9b9eab | 11453 | #include "confdefs.h" |
21d1c967 | 11454 | #include <features.h> |
a0b9e27f | 11455 | int main() { |
ab9b9eab | 11456 | |
21d1c967 GD |
11457 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) |
11458 | #error not glibc2.1 | |
11459 | #endif | |
a0b9e27f MB |
11460 | |
11461 | ; return 0; } | |
11462 | EOF | |
8b389fab | 11463 | if { (eval echo configure:11464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
11464 | rm -rf conftest* |
11465 | ||
21d1c967 | 11466 | wx_cv_lib_glibc21=yes |
a0b9e27f | 11467 | |
698dcdb6 | 11468 | else |
a0b9e27f MB |
11469 | echo "configure: failed program was:" >&5 |
11470 | cat conftest.$ac_ext >&5 | |
11471 | rm -rf conftest* | |
11472 | ||
21d1c967 | 11473 | wx_cv_lib_glibc21=no |
a0b9e27f MB |
11474 | |
11475 | ||
5c6fa7d2 | 11476 | fi |
a0b9e27f MB |
11477 | rm -f conftest* |
11478 | ||
247f5006 | 11479 | fi |
a0b9e27f MB |
11480 | |
11481 | echo "$ac_t""$wx_cv_lib_glibc21" 1>&6 | |
21d1c967 | 11482 | if test "$wx_cv_lib_glibc21" = "yes"; then |
a0b9e27f | 11483 | cat >> confdefs.h <<\EOF |
21d1c967 | 11484 | #define wxHAVE_GLIBC2 1 |
a0b9e27f | 11485 | EOF |
1e487827 | 11486 | |
90dd450c | 11487 | fi |
ab9b9eab VZ |
11488 | fi |
11489 | ||
5c0a20c3 VZ |
11490 | if test "x$wx_cv_lib_glibc21" = "xyes"; then |
11491 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
a0b9e27f | 11492 | cat >> confdefs.h <<\EOF |
5c0a20c3 | 11493 | #define _GNU_SOURCE 1 |
a0b9e27f | 11494 | EOF |
5c0a20c3 VZ |
11495 | |
11496 | fi | |
11497 | fi | |
11498 | ||
8284b0c5 MB |
11499 | |
11500 | ||
21d1c967 GD |
11501 | REGEX_INCLUDE= |
11502 | if test "$wxUSE_REGEX" != "no"; then | |
a0b9e27f | 11503 | cat >> confdefs.h <<\EOF |
21d1c967 | 11504 | #define wxUSE_REGEX 1 |
a0b9e27f | 11505 | EOF |
698dcdb6 | 11506 | |
8284b0c5 | 11507 | |
21d1c967 | 11508 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then |
a0b9e27f MB |
11509 | ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'` |
11510 | echo $ac_n "checking for regex.h""... $ac_c" 1>&6 | |
8b389fab | 11511 | echo "configure:11512: checking for regex.h" >&5 |
a0b9e27f MB |
11512 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11513 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11514 | else | |
11515 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 11516 | #line 11517 "configure" |
247f5006 VZ |
11517 | #include "confdefs.h" |
11518 | #include <regex.h> | |
a0b9e27f MB |
11519 | EOF |
11520 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8b389fab | 11521 | { (eval echo configure:11522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11522 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11523 | if test -z "$ac_err"; then | |
11524 | rm -rf conftest* | |
11525 | eval "ac_cv_header_$ac_safe=yes" | |
11526 | else | |
11527 | echo "$ac_err" >&5 | |
11528 | echo "configure: failed program was:" >&5 | |
21d1c967 | 11529 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11530 | rm -rf conftest* |
11531 | eval "ac_cv_header_$ac_safe=no" | |
21d1c967 | 11532 | fi |
a0b9e27f | 11533 | rm -f conftest* |
698dcdb6 | 11534 | fi |
a0b9e27f MB |
11535 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11536 | echo "$ac_t""yes" 1>&6 | |
11537 | for ac_func in regcomp | |
21d1c967 | 11538 | do |
a0b9e27f | 11539 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8b389fab | 11540 | echo "configure:11541: checking for $ac_func" >&5 |
a0b9e27f MB |
11541 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11542 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 11543 | else |
a0b9e27f | 11544 | cat > conftest.$ac_ext <<EOF |
8b389fab | 11545 | #line 11546 "configure" |
a0b9e27f MB |
11546 | #include "confdefs.h" |
11547 | /* System header to define __stub macros and hopefully few prototypes, | |
11548 | which can conflict with char $ac_func(); below. */ | |
21d1c967 GD |
11549 | #include <assert.h> |
11550 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11551 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11552 | builtin and then its argument prototype would still apply. */ |
11553 | char $ac_func(); | |
11554 | ||
11555 | int main() { | |
11556 | ||
21d1c967 GD |
11557 | /* The GNU C library defines this for functions which it implements |
11558 | to always fail with ENOSYS. Some functions are actually named | |
11559 | something starting with __ and the normal name is an alias. */ | |
11560 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11561 | choke me | |
11562 | #else | |
a0b9e27f | 11563 | $ac_func(); |
21d1c967 | 11564 | #endif |
90dd450c | 11565 | |
a0b9e27f MB |
11566 | ; return 0; } |
11567 | EOF | |
8b389fab | 11568 | if { (eval echo configure:11569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
11569 | rm -rf conftest* |
11570 | eval "ac_cv_func_$ac_func=yes" | |
11571 | else | |
11572 | echo "configure: failed program was:" >&5 | |
11573 | cat conftest.$ac_ext >&5 | |
11574 | rm -rf conftest* | |
11575 | eval "ac_cv_func_$ac_func=no" | |
11576 | fi | |
11577 | rm -f conftest* | |
11578 | fi | |
5c6fa7d2 | 11579 | |
a0b9e27f MB |
11580 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
11581 | echo "$ac_t""yes" 1>&6 | |
11582 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11583 | cat >> confdefs.h <<EOF | |
11584 | #define $ac_tr_func 1 | |
11585 | EOF | |
11586 | ||
11587 | else | |
11588 | echo "$ac_t""no" 1>&6 | |
698dcdb6 | 11589 | fi |
21d1c967 GD |
11590 | done |
11591 | ||
a0b9e27f MB |
11592 | else |
11593 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11594 | fi |
11595 | ||
8284b0c5 | 11596 | |
21d1c967 GD |
11597 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
11598 | if test "$wxUSE_REGEX" = "sys" ; then | |
a0b9e27f | 11599 | { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11600 | else |
a0b9e27f | 11601 | echo "configure: warning: system regex library not found, will use built-in instead" 1>&2 |
21d1c967 GD |
11602 | wxUSE_REGEX=builtin |
11603 | fi | |
11604 | else | |
11605 | wxUSE_REGEX=sys | |
11606 | fi | |
ab9b9eab | 11607 | fi |
90dd450c | 11608 | |
21d1c967 GD |
11609 | if test "$wxUSE_REGEX" = "builtin" ; then |
11610 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
90dd450c | 11611 | fi |
21d1c967 | 11612 | fi |
90dd450c | 11613 | |
8284b0c5 | 11614 | |
21d1c967 GD |
11615 | ZLIB_INCLUDE= |
11616 | ZLIB_LINK= | |
11617 | if test "$wxUSE_ZLIB" != "no" ; then | |
a0b9e27f | 11618 | cat >> confdefs.h <<\EOF |
21d1c967 | 11619 | #define wxUSE_ZLIB 1 |
a0b9e27f | 11620 | EOF |
21d1c967 | 11621 | |
8284b0c5 | 11622 | |
21d1c967 | 11623 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then |
d775acfa VZ |
11624 | if test "$USE_DARWIN" = 1; then |
11625 | system_zlib_h_ok="yes" | |
11626 | else | |
11627 | echo $ac_n "checking for zlib.h >= 1.1.4""... $ac_c" 1>&6 | |
8b389fab | 11628 | echo "configure:11629: checking for zlib.h >= 1.1.4" >&5 |
d643b80e VZ |
11629 | if eval "test \"`echo '$''{'ac_cv_header_zlib_h'+set}'`\" = set"; then |
11630 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11631 | else | |
11632 | if test "$cross_compiling" = yes; then | |
89e6bf6d | 11633 | unset ac_cv_header_zlib_h |
d775acfa | 11634 | |
d643b80e VZ |
11635 | else |
11636 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 11637 | #line 11638 "configure" |
d643b80e | 11638 | #include "confdefs.h" |
ef33c576 VZ |
11639 | |
11640 | #include <zlib.h> | |
d775acfa | 11641 | #include <stdio.h> |
d643b80e | 11642 | |
d775acfa VZ |
11643 | int main() |
11644 | { | |
11645 | FILE *f=fopen("conftestval", "w"); | |
11646 | if (!f) exit(1); | |
11647 | fprintf(f, "%s", | |
11648 | ZLIB_VERSION[0] == '1' && | |
11649 | (ZLIB_VERSION[2] > '1' || | |
11650 | (ZLIB_VERSION[2] == '1' && | |
11651 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
11652 | exit(0); | |
11653 | } | |
d643b80e | 11654 | |
d643b80e | 11655 | EOF |
8b389fab | 11656 | if { (eval echo configure:11657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
d643b80e VZ |
11657 | then |
11658 | ac_cv_header_zlib_h=`cat conftestval` | |
11659 | else | |
11660 | echo "configure: failed program was:" >&5 | |
11661 | cat conftest.$ac_ext >&5 | |
11662 | rm -fr conftest* | |
11663 | ac_cv_header_zlib_h=no | |
11664 | fi | |
11665 | rm -fr conftest* | |
11666 | fi | |
11667 | ||
d775acfa | 11668 | |
d643b80e VZ |
11669 | fi |
11670 | ||
11671 | echo "$ac_t""$ac_cv_header_zlib_h" 1>&6 | |
89e6bf6d VZ |
11672 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` |
11673 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
8b389fab | 11674 | echo "configure:11675: checking for zlib.h" >&5 |
89e6bf6d VZ |
11675 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11676 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11677 | else | |
11678 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 11679 | #line 11680 "configure" |
89e6bf6d VZ |
11680 | #include "confdefs.h" |
11681 | #include <zlib.h> | |
11682 | EOF | |
11683 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8b389fab | 11684 | { (eval echo configure:11685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
89e6bf6d VZ |
11685 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11686 | if test -z "$ac_err"; then | |
11687 | rm -rf conftest* | |
11688 | eval "ac_cv_header_$ac_safe=yes" | |
11689 | else | |
11690 | echo "$ac_err" >&5 | |
11691 | echo "configure: failed program was:" >&5 | |
11692 | cat conftest.$ac_ext >&5 | |
11693 | rm -rf conftest* | |
11694 | eval "ac_cv_header_$ac_safe=no" | |
11695 | fi | |
11696 | rm -f conftest* | |
11697 | fi | |
11698 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11699 | echo "$ac_t""yes" 1>&6 | |
11700 | : | |
11701 | else | |
11702 | echo "$ac_t""no" 1>&6 | |
11703 | fi | |
11704 | ||
d643b80e | 11705 | |
d775acfa VZ |
11706 | system_zlib_h_ok=$ac_cv_header_zlib_h |
11707 | fi | |
11708 | ||
11709 | if test "$system_zlib_h_ok" = "yes"; then | |
d643b80e | 11710 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 |
8b389fab | 11711 | echo "configure:11712: checking for deflate in -lz" >&5 |
a0b9e27f MB |
11712 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
11713 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11714 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11715 | else |
a0b9e27f | 11716 | ac_save_LIBS="$LIBS" |
21d1c967 | 11717 | LIBS="-lz $LIBS" |
a0b9e27f | 11718 | cat > conftest.$ac_ext <<EOF |
8b389fab | 11719 | #line 11720 "configure" |
ab9b9eab | 11720 | #include "confdefs.h" |
21d1c967 GD |
11721 | /* Override any gcc2 internal prototype to avoid an error. */ |
11722 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11723 | builtin and then its argument prototype would still apply. */ |
11724 | char deflate(); | |
11725 | ||
11726 | int main() { | |
11727 | deflate() | |
11728 | ; return 0; } | |
11729 | EOF | |
8b389fab | 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_lib_$ac_lib_var=yes" | |
11733 | else | |
11734 | echo "configure: failed program was:" >&5 | |
11735 | cat conftest.$ac_ext >&5 | |
11736 | rm -rf conftest* | |
11737 | eval "ac_cv_lib_$ac_lib_var=no" | |
90dd450c | 11738 | fi |
a0b9e27f MB |
11739 | rm -f conftest* |
11740 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 11741 | |
698dcdb6 | 11742 | fi |
a0b9e27f MB |
11743 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
11744 | echo "$ac_t""yes" 1>&6 | |
11745 | ZLIB_LINK=" -lz" | |
11746 | else | |
11747 | echo "$ac_t""no" 1>&6 | |
11748 | fi | |
698dcdb6 | 11749 | |
d643b80e | 11750 | fi |
247f5006 | 11751 | |
21d1c967 GD |
11752 | if test "x$ZLIB_LINK" = "x" ; then |
11753 | if test "$wxUSE_ZLIB" = "sys" ; then | |
d643b80e | 11754 | { echo "configure: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11755 | else |
d643b80e | 11756 | echo "configure: warning: zlib library not found or too old, will use built-in instead" 1>&2 |
21d1c967 GD |
11757 | wxUSE_ZLIB=builtin |
11758 | fi | |
11759 | else | |
11760 | wxUSE_ZLIB=sys | |
11761 | fi | |
11762 | fi | |
11763 | ||
11764 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
11765 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
11766 | fi | |
ab9b9eab VZ |
11767 | fi |
11768 | ||
8284b0c5 | 11769 | |
21d1c967 GD |
11770 | PNG_INCLUDE= |
11771 | PNG_LINK= | |
11772 | if test "$wxUSE_LIBPNG" != "no" ; then | |
a0b9e27f | 11773 | cat >> confdefs.h <<\EOF |
21d1c967 | 11774 | #define wxUSE_LIBPNG 1 |
a0b9e27f | 11775 | EOF |
90dd450c | 11776 | |
8284b0c5 | 11777 | |
21d1c967 | 11778 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then |
a0b9e27f | 11779 | echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2 |
21d1c967 GD |
11780 | wxUSE_LIBPNG=sys |
11781 | fi | |
90dd450c | 11782 | |
21d1c967 | 11783 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
a0b9e27f | 11784 | echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2 |
21d1c967 GD |
11785 | wxUSE_LIBPNG=builtin |
11786 | fi | |
11787 | ||
11788 | if test "$wxUSE_MGL" != 1 ; then | |
11789 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
5d3f766d | 11790 | echo $ac_n "checking for png.h > 0.90""... $ac_c" 1>&6 |
8b389fab | 11791 | echo "configure:11792: checking for png.h > 0.90" >&5 |
5d3f766d VZ |
11792 | if eval "test \"`echo '$''{'ac_cv_header_png_h'+set}'`\" = set"; then |
11793 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11794 | else | |
11795 | if test "$cross_compiling" = yes; then | |
89e6bf6d | 11796 | unset ac_cv_header_png_h |
5d3f766d VZ |
11797 | |
11798 | else | |
11799 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 11800 | #line 11801 "configure" |
5d3f766d | 11801 | #include "confdefs.h" |
ef33c576 VZ |
11802 | |
11803 | #include <png.h> | |
5d3f766d VZ |
11804 | #include <stdio.h> |
11805 | ||
11806 | int main() | |
11807 | { | |
11808 | FILE *f=fopen("conftestval", "w"); | |
11809 | if (!f) exit(1); | |
11810 | fprintf(f, "%s", | |
11811 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
11812 | exit(0); | |
11813 | } | |
11814 | ||
11815 | EOF | |
8b389fab | 11816 | if { (eval echo configure:11817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
5d3f766d VZ |
11817 | then |
11818 | ac_cv_header_png_h=`cat conftestval` | |
11819 | else | |
11820 | echo "configure: failed program was:" >&5 | |
11821 | cat conftest.$ac_ext >&5 | |
11822 | rm -fr conftest* | |
11823 | ac_cv_header_png_h=no | |
11824 | fi | |
11825 | rm -fr conftest* | |
11826 | fi | |
11827 | ||
11828 | ||
11829 | fi | |
11830 | ||
11831 | echo "$ac_t""$ac_cv_header_png_h" 1>&6 | |
89e6bf6d VZ |
11832 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` |
11833 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
8b389fab | 11834 | echo "configure:11835: checking for png.h" >&5 |
89e6bf6d VZ |
11835 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11836 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11837 | else | |
11838 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 11839 | #line 11840 "configure" |
89e6bf6d VZ |
11840 | #include "confdefs.h" |
11841 | #include <png.h> | |
11842 | EOF | |
11843 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8b389fab | 11844 | { (eval echo configure:11845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
89e6bf6d VZ |
11845 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11846 | if test -z "$ac_err"; then | |
11847 | rm -rf conftest* | |
11848 | eval "ac_cv_header_$ac_safe=yes" | |
11849 | else | |
11850 | echo "$ac_err" >&5 | |
11851 | echo "configure: failed program was:" >&5 | |
11852 | cat conftest.$ac_ext >&5 | |
11853 | rm -rf conftest* | |
11854 | eval "ac_cv_header_$ac_safe=no" | |
11855 | fi | |
11856 | rm -f conftest* | |
11857 | fi | |
11858 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11859 | echo "$ac_t""yes" 1>&6 | |
11860 | : | |
11861 | else | |
11862 | echo "$ac_t""no" 1>&6 | |
11863 | fi | |
11864 | ||
5d3f766d VZ |
11865 | |
11866 | if test "$ac_cv_header_png_h" = "yes"; then | |
11867 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 | |
8b389fab | 11868 | echo "configure:11869: checking for png_check_sig in -lpng" >&5 |
a0b9e27f MB |
11869 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
11870 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11871 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11872 | else |
a0b9e27f | 11873 | ac_save_LIBS="$LIBS" |
21d1c967 | 11874 | LIBS="-lpng -lz -lm $LIBS" |
a0b9e27f | 11875 | cat > conftest.$ac_ext <<EOF |
8b389fab | 11876 | #line 11877 "configure" |
90dd450c | 11877 | #include "confdefs.h" |
21d1c967 GD |
11878 | /* Override any gcc2 internal prototype to avoid an error. */ |
11879 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11880 | builtin and then its argument prototype would still apply. */ |
11881 | char png_check_sig(); | |
90dd450c | 11882 | |
a0b9e27f MB |
11883 | int main() { |
11884 | png_check_sig() | |
11885 | ; return 0; } | |
11886 | EOF | |
8b389fab | 11887 | if { (eval echo configure:11888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
11888 | rm -rf conftest* |
11889 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11890 | else | |
11891 | echo "configure: failed program was:" >&5 | |
11892 | cat conftest.$ac_ext >&5 | |
11893 | rm -rf conftest* | |
11894 | eval "ac_cv_lib_$ac_lib_var=no" | |
11895 | fi | |
11896 | rm -f conftest* | |
11897 | LIBS="$ac_save_LIBS" | |
247f5006 | 11898 | |
90dd450c | 11899 | fi |
a0b9e27f MB |
11900 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
11901 | echo "$ac_t""yes" 1>&6 | |
11902 | PNG_LINK=" -lpng" | |
11903 | else | |
11904 | echo "$ac_t""no" 1>&6 | |
11905 | fi | |
90dd450c | 11906 | |
5d3f766d | 11907 | fi |
247f5006 | 11908 | |
21d1c967 GD |
11909 | if test "x$PNG_LINK" = "x" ; then |
11910 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
0c98a14e | 11911 | { 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 | 11912 | else |
0c98a14e | 11913 | echo "configure: warning: system png library not found or too old, will use built-in instead" 1>&2 |
21d1c967 GD |
11914 | wxUSE_LIBPNG=builtin |
11915 | fi | |
11916 | else | |
2b5f62a0 | 11917 | wxUSE_LIBPNG=sys |
21d1c967 GD |
11918 | fi |
11919 | fi | |
11920 | fi | |
90dd450c | 11921 | |
21d1c967 GD |
11922 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
11923 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
11924 | fi | |
90dd450c | 11925 | |
21d1c967 | 11926 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
90dd450c VZ |
11927 | fi |
11928 | ||
8284b0c5 | 11929 | |
21d1c967 GD |
11930 | JPEG_INCLUDE= |
11931 | JPEG_LINK= | |
11932 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
a0b9e27f | 11933 | cat >> confdefs.h <<\EOF |
21d1c967 | 11934 | #define wxUSE_LIBJPEG 1 |
a0b9e27f | 11935 | EOF |
90dd450c | 11936 | |
8284b0c5 | 11937 | |
21d1c967 | 11938 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then |
a0b9e27f | 11939 | echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2 |
21d1c967 GD |
11940 | wxUSE_LIBJPEG=sys |
11941 | fi | |
90dd450c | 11942 | |
21d1c967 GD |
11943 | if test "$wxUSE_MGL" != 1 ; then |
11944 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
a0b9e27f | 11945 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 |
8b389fab | 11946 | echo "configure:11947: checking for jpeglib.h" >&5 |
a0b9e27f MB |
11947 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then |
11948 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11949 | else |
a0b9e27f | 11950 | cat > conftest.$ac_ext <<EOF |
8b389fab | 11951 | #line 11952 "configure" |
21d1c967 | 11952 | #include "confdefs.h" |
90dd450c | 11953 | |
21d1c967 GD |
11954 | #undef HAVE_STDLIB_H |
11955 | #include <stdio.h> | |
11956 | #include <jpeglib.h> | |
a0b9e27f MB |
11957 | |
11958 | int main() { | |
90dd450c | 11959 | |
a0b9e27f MB |
11960 | |
11961 | ; return 0; } | |
11962 | EOF | |
8b389fab | 11963 | if { (eval echo configure:11964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 11964 | rm -rf conftest* |
21d1c967 | 11965 | ac_cv_header_jpeglib_h=yes |
90dd450c | 11966 | else |
a0b9e27f MB |
11967 | echo "configure: failed program was:" >&5 |
11968 | cat conftest.$ac_ext >&5 | |
11969 | rm -rf conftest* | |
11970 | ac_cv_header_jpeglib_h=no | |
11971 | ||
90dd450c | 11972 | fi |
a0b9e27f MB |
11973 | rm -f conftest* |
11974 | ||
90dd450c VZ |
11975 | fi |
11976 | ||
a0b9e27f | 11977 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 |
90dd450c | 11978 | |
21d1c967 | 11979 | if test "$ac_cv_header_jpeglib_h" = "yes"; then |
a0b9e27f | 11980 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 |
8b389fab | 11981 | echo "configure:11982: checking for jpeg_read_header in -ljpeg" >&5 |
a0b9e27f MB |
11982 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
11983 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11984 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11985 | else |
a0b9e27f | 11986 | ac_save_LIBS="$LIBS" |
21d1c967 | 11987 | LIBS="-ljpeg $LIBS" |
a0b9e27f | 11988 | cat > conftest.$ac_ext <<EOF |
8b389fab | 11989 | #line 11990 "configure" |
21d1c967 GD |
11990 | #include "confdefs.h" |
11991 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11992 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11993 | builtin and then its argument prototype would still apply. */ |
11994 | char jpeg_read_header(); | |
11995 | ||
11996 | int main() { | |
11997 | jpeg_read_header() | |
11998 | ; return 0; } | |
11999 | EOF | |
8b389fab | 12000 | if { (eval echo configure:12001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
12001 | rm -rf conftest* |
12002 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12003 | else | |
12004 | echo "configure: failed program was:" >&5 | |
12005 | cat conftest.$ac_ext >&5 | |
12006 | rm -rf conftest* | |
12007 | eval "ac_cv_lib_$ac_lib_var=no" | |
12008 | fi | |
12009 | rm -f conftest* | |
12010 | LIBS="$ac_save_LIBS" | |
12011 | ||
12012 | fi | |
12013 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12014 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 12015 | JPEG_LINK=" -ljpeg" |
a0b9e27f MB |
12016 | else |
12017 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
12018 | fi |
12019 | ||
21d1c967 | 12020 | fi |
90dd450c | 12021 | |
21d1c967 GD |
12022 | if test "x$JPEG_LINK" = "x" ; then |
12023 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
a0b9e27f | 12024 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; } |
21d1c967 | 12025 | else |
a0b9e27f | 12026 | echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2 |
21d1c967 GD |
12027 | wxUSE_LIBJPEG=builtin |
12028 | fi | |
12029 | else | |
12030 | wxUSE_LIBJPEG=sys | |
12031 | fi | |
12032 | fi | |
12033 | fi | |
90dd450c | 12034 | |
21d1c967 GD |
12035 | if test "$wxUSE_LIBJPEG" = "builtin" ; then |
12036 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
12037 | fi | |
12038 | fi | |
90dd450c | 12039 | |
8284b0c5 | 12040 | |
21d1c967 GD |
12041 | TIFF_INCLUDE= |
12042 | TIFF_LINK= | |
2b5f62a0 | 12043 | TIFF_PREREQ_LINKS=-lm |
21d1c967 | 12044 | if test "$wxUSE_LIBTIFF" != "no" ; then |
a0b9e27f | 12045 | cat >> confdefs.h <<\EOF |
21d1c967 | 12046 | #define wxUSE_LIBTIFF 1 |
a0b9e27f | 12047 | EOF |
21d1c967 | 12048 | |
8284b0c5 | 12049 | |
21d1c967 | 12050 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then |
2b5f62a0 VZ |
12051 | if test "$wxUSE_LIBJPEG" = "sys"; then |
12052 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
12053 | fi | |
12054 | if test "$wxUSE_ZLIB" = "sys"; then | |
12055 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
12056 | fi | |
a0b9e27f MB |
12057 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` |
12058 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
8b389fab | 12059 | echo "configure:12060: checking for tiffio.h" >&5 |
a0b9e27f MB |
12060 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12061 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12062 | else | |
12063 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 12064 | #line 12065 "configure" |
247f5006 VZ |
12065 | #include "confdefs.h" |
12066 | #include <tiffio.h> | |
a0b9e27f MB |
12067 | EOF |
12068 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8b389fab | 12069 | { (eval echo configure:12070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
12070 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12071 | if test -z "$ac_err"; then | |
12072 | rm -rf conftest* | |
12073 | eval "ac_cv_header_$ac_safe=yes" | |
12074 | else | |
12075 | echo "$ac_err" >&5 | |
12076 | echo "configure: failed program was:" >&5 | |
21d1c967 | 12077 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
12078 | rm -rf conftest* |
12079 | eval "ac_cv_header_$ac_safe=no" | |
21d1c967 | 12080 | fi |
a0b9e27f | 12081 | rm -f conftest* |
21d1c967 | 12082 | fi |
a0b9e27f MB |
12083 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12084 | echo "$ac_t""yes" 1>&6 | |
12085 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
8b389fab | 12086 | echo "configure:12087: checking for TIFFError in -ltiff" >&5 |
a0b9e27f MB |
12087 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
12088 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12089 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 12090 | else |
a0b9e27f | 12091 | ac_save_LIBS="$LIBS" |
2b5f62a0 | 12092 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" |
a0b9e27f | 12093 | cat > conftest.$ac_ext <<EOF |
8b389fab | 12094 | #line 12095 "configure" |
ab9b9eab VZ |
12095 | #include "confdefs.h" |
12096 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12097 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
12098 | builtin and then its argument prototype would still apply. */ |
12099 | char TIFFError(); | |
ab9b9eab | 12100 | |
a0b9e27f MB |
12101 | int main() { |
12102 | TIFFError() | |
12103 | ; return 0; } | |
12104 | EOF | |
8b389fab | 12105 | if { (eval echo configure:12106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
12106 | rm -rf conftest* |
12107 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12108 | else | |
12109 | echo "configure: failed program was:" >&5 | |
12110 | cat conftest.$ac_ext >&5 | |
12111 | rm -rf conftest* | |
12112 | eval "ac_cv_lib_$ac_lib_var=no" | |
12113 | fi | |
12114 | rm -f conftest* | |
12115 | LIBS="$ac_save_LIBS" | |
247f5006 | 12116 | |
21d1c967 | 12117 | fi |
a0b9e27f MB |
12118 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
12119 | echo "$ac_t""yes" 1>&6 | |
12120 | TIFF_LINK=" -ltiff" | |
12121 | else | |
12122 | echo "$ac_t""no" 1>&6 | |
12123 | fi | |
cd6d6d5b | 12124 | |
a0b9e27f MB |
12125 | |
12126 | else | |
12127 | echo "$ac_t""no" 1>&6 | |
12128 | fi | |
8284b0c5 | 12129 | |
247f5006 | 12130 | |
21d1c967 GD |
12131 | if test "x$TIFF_LINK" = "x" ; then |
12132 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
a0b9e27f | 12133 | { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; } |
90dd450c | 12134 | else |
a0b9e27f | 12135 | echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2 |
21d1c967 | 12136 | wxUSE_LIBTIFF=builtin |
d8356fa3 | 12137 | fi |
d8356fa3 | 12138 | else |
21d1c967 | 12139 | wxUSE_LIBTIFF=sys |
d8356fa3 | 12140 | fi |
21d1c967 | 12141 | fi |
d8356fa3 | 12142 | |
21d1c967 GD |
12143 | if test "$wxUSE_LIBTIFF" = "builtin" ; then |
12144 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
1e6feb95 | 12145 | fi |
21d1c967 | 12146 | fi |
10f2d63a | 12147 | |
8284b0c5 | 12148 | |
21d1c967 | 12149 | AFMINSTALL= |
2b5f62a0 | 12150 | WIN32INSTALL= |
90dd450c | 12151 | |
21d1c967 GD |
12152 | TOOLKIT= |
12153 | TOOLKIT_INCLUDE= | |
12154 | WIDGET_SET= | |
12155 | ||
12156 | if test "$USE_WIN32" = 1 ; then | |
a0b9e27f | 12157 | for ac_hdr in w32api.h |
21d1c967 | 12158 | do |
a0b9e27f MB |
12159 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12160 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
8b389fab | 12161 | echo "configure:12162: checking for $ac_hdr" >&5 |
a0b9e27f MB |
12162 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12163 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12164 | else | |
12165 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 12166 | #line 12167 "configure" |
247f5006 | 12167 | #include "confdefs.h" |
a0b9e27f MB |
12168 | #include <$ac_hdr> |
12169 | EOF | |
12170 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8b389fab | 12171 | { (eval echo configure:12172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
12172 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12173 | if test -z "$ac_err"; then | |
12174 | rm -rf conftest* | |
12175 | eval "ac_cv_header_$ac_safe=yes" | |
12176 | else | |
12177 | echo "$ac_err" >&5 | |
12178 | echo "configure: failed program was:" >&5 | |
f79bd02d | 12179 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
12180 | rm -rf conftest* |
12181 | eval "ac_cv_header_$ac_safe=no" | |
f79bd02d | 12182 | fi |
a0b9e27f | 12183 | rm -f conftest* |
21d1c967 | 12184 | fi |
a0b9e27f MB |
12185 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12186 | echo "$ac_t""yes" 1>&6 | |
12187 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12188 | cat >> confdefs.h <<EOF | |
12189 | #define $ac_tr_hdr 1 | |
12190 | EOF | |
12191 | ||
12192 | else | |
12193 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
12194 | fi |
12195 | done | |
f79bd02d | 12196 | |
a0b9e27f MB |
12197 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` |
12198 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
8b389fab | 12199 | echo "configure:12200: checking for windows.h" >&5 |
a0b9e27f MB |
12200 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12201 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12202 | else |
a0b9e27f | 12203 | cat > conftest.$ac_ext <<EOF |
8b389fab | 12204 | #line 12205 "configure" |
247f5006 VZ |
12205 | #include "confdefs.h" |
12206 | #include <windows.h> | |
a0b9e27f MB |
12207 | EOF |
12208 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8b389fab | 12209 | { (eval echo configure:12210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
12210 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12211 | if test -z "$ac_err"; then | |
12212 | rm -rf conftest* | |
12213 | eval "ac_cv_header_$ac_safe=yes" | |
12214 | else | |
12215 | echo "$ac_err" >&5 | |
12216 | echo "configure: failed program was:" >&5 | |
90dd450c | 12217 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
12218 | rm -rf conftest* |
12219 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 12220 | fi |
a0b9e27f | 12221 | rm -f conftest* |
90dd450c | 12222 | fi |
a0b9e27f MB |
12223 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12224 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 12225 | : |
90dd450c | 12226 | else |
a0b9e27f | 12227 | echo "$ac_t""no" 1>&6 |
21d1c967 | 12228 | |
a0b9e27f MB |
12229 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } |
12230 | ||
5c6fa7d2 | 12231 | fi |
7b4a847f | 12232 | |
5c6fa7d2 | 12233 | |
a0b9e27f | 12234 | echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6 |
8b389fab | 12235 | echo "configure:12236: checking if w32api has good enough MSIE support" >&5 |
a0b9e27f MB |
12236 | if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then |
12237 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 12238 | else |
a0b9e27f MB |
12239 | |
12240 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 12241 | #line 12242 "configure" |
f79bd02d | 12242 | #include "confdefs.h" |
21d1c967 | 12243 | #include <w32api.h> |
a0b9e27f | 12244 | int main() { |
f79bd02d | 12245 | |
21d1c967 GD |
12246 | #define wxCHECK_W32API_VERSION( major, minor ) \ |
12247 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
12248 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
12249 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
12250 | ||
12251 | #if !wxCHECK_W32API_VERSION(1,1) | |
12252 | #error You need w32api 1.1 or newer | |
12253 | #endif | |
a0b9e27f MB |
12254 | |
12255 | ; return 0; } | |
12256 | EOF | |
8b389fab | 12257 | if { (eval echo configure:12258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
12258 | rm -rf conftest* |
12259 | ||
21d1c967 | 12260 | wx_cv_w32api_win32_ie=yes |
a0b9e27f | 12261 | |
f79bd02d | 12262 | else |
a0b9e27f MB |
12263 | echo "configure: failed program was:" >&5 |
12264 | cat conftest.$ac_ext >&5 | |
12265 | rm -rf conftest* | |
12266 | ||
21d1c967 | 12267 | wx_cv_w32api_win32_ie=no |
a0b9e27f | 12268 | |
5c6fa7d2 | 12269 | fi |
a0b9e27f MB |
12270 | rm -f conftest* |
12271 | ||
247f5006 | 12272 | fi |
a0b9e27f MB |
12273 | |
12274 | echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6 | |
21d1c967 GD |
12275 | if test "$wx_cv_w32api_win32_ie" = "yes" ; then |
12276 | CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400" | |
12277 | fi | |
f79bd02d | 12278 | |
21d1c967 GD |
12279 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" |
12280 | ||
7bb2947d MB |
12281 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then |
12282 | LIBS="$LIBS -loleacc" | |
12283 | fi | |
12284 | ||
21d1c967 GD |
12285 | case "${host}" in |
12286 | *-*-cygwin* ) | |
12287 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32" | |
12288 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
f79bd02d | 12289 | esac |
f79bd02d | 12290 | |
8647bec6 RG |
12291 | if test "$wxUSE_ODBC" = "sys" ; then |
12292 | wxUSE_ODBC = "yes" | |
21d1c967 | 12293 | fi |
8647bec6 RG |
12294 | if test "$wxUSE_ODBC" = "yes" ; then |
12295 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
12296 | cat >> confdefs.h <<\EOF | |
12297 | #define wxUSE_ODBC 1 | |
12298 | EOF | |
f79bd02d | 12299 | |
8647bec6 RG |
12300 | fi |
12301 | ||
21d1c967 GD |
12302 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
12303 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
2b5f62a0 VZ |
12304 | |
12305 | WIN32INSTALL=win32install | |
f79bd02d | 12306 | fi |
f79bd02d | 12307 | |
b2fee376 | 12308 | if test "$USE_DARWIN" = 1; then |
50bcbd3d | 12309 | if test "$wxUSE_PRECOMP" = "yes"; then |
b2fee376 GD |
12310 | CPPFLAGS="$CPPFLAGS -cpp-precomp" |
12311 | else | |
12312 | CPPFLAGS="$CPPFLAGS -no-cpp-precomp" | |
12313 | fi | |
12314 | fi | |
12315 | ||
21d1c967 GD |
12316 | if test "$wxUSE_GUI" = "yes"; then |
12317 | USE_GUI=1 | |
f79bd02d | 12318 | |
21d1c967 | 12319 | GUI_TK_LIBRARY= |
f79bd02d | 12320 | |
21d1c967 GD |
12321 | WXGTK12= |
12322 | WXGTK127= | |
12323 | WXGTK20= | |
f79bd02d | 12324 | |
21d1c967 GD |
12325 | if test "$wxUSE_MSW" = 1 ; then |
12326 | TOOLKIT=MSW | |
12327 | GUIDIST=MSW_DIST | |
f79bd02d | 12328 | |
89e6bf6d | 12329 | LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows" |
f79bd02d JS |
12330 | fi |
12331 | ||
21d1c967 | 12332 | if test "$wxUSE_GTK" = 1; then |
a0b9e27f | 12333 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 |
8b389fab | 12334 | echo "configure:12335: checking for GTK+ version" >&5 |
21d1c967 GD |
12335 | |
12336 | gtk_version_cached=1 | |
a0b9e27f MB |
12337 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then |
12338 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f79bd02d | 12339 | else |
a0b9e27f | 12340 | |
21d1c967 | 12341 | gtk_version_cached=0 |
a0b9e27f | 12342 | echo "$ac_t""" 1>&6 |
f79bd02d | 12343 | |
21d1c967 GD |
12344 | GTK_MODULES= |
12345 | if test "$wxUSE_THREADS" = "yes"; then | |
12346 | GTK_MODULES=gthread | |
12347 | fi | |
f79bd02d | 12348 | |
2b5f62a0 | 12349 | wx_cv_lib_gtk= |
21d1c967 GD |
12350 | if test "x$wxUSE_GTK2" = "xyes"; then |
12351 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
12352 | if test "${enable_gtktest+set}" = set; then | |
12353 | enableval="$enable_gtktest" | |
a0b9e27f | 12354 | : |
f79bd02d | 12355 | else |
21d1c967 | 12356 | enable_gtktest=yes |
a0b9e27f MB |
12357 | fi |
12358 | ||
f79bd02d | 12359 | |
21d1c967 GD |
12360 | pkg_config_args=gtk+-2.0 |
12361 | for module in . $GTK_MODULES | |
12362 | do | |
12363 | case "$module" in | |
a0b9e27f | 12364 | gthread) |
21d1c967 GD |
12365 | pkg_config_args="$pkg_config_args gthread-2.0" |
12366 | ;; | |
12367 | esac | |
12368 | done | |
12369 | ||
12370 | no_gtk="" | |
f79bd02d | 12371 | |
21d1c967 GD |
12372 | # Extract the first word of "pkg-config", so it can be a program name with args. |
12373 | set dummy pkg-config; ac_word=$2 | |
a0b9e27f | 12374 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
8b389fab | 12375 | echo "configure:12376: checking for $ac_word" >&5 |
a0b9e27f MB |
12376 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
12377 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12378 | else |
a0b9e27f MB |
12379 | case "$PKG_CONFIG" in |
12380 | /*) | |
21d1c967 GD |
12381 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
12382 | ;; | |
a0b9e27f MB |
12383 | ?:/*) |
12384 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
12385 | ;; | |
21d1c967 | 12386 | *) |
a0b9e27f MB |
12387 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
12388 | ac_dummy="$PATH" | |
12389 | for ac_dir in $ac_dummy; do | |
12390 | test -z "$ac_dir" && ac_dir=. | |
12391 | if test -f $ac_dir/$ac_word; then | |
12392 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
12393 | break | |
12394 | fi | |
12395 | done | |
12396 | IFS="$ac_save_ifs" | |
21d1c967 GD |
12397 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
12398 | ;; | |
12399 | esac | |
f79bd02d | 12400 | fi |
a0b9e27f | 12401 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
21d1c967 | 12402 | if test -n "$PKG_CONFIG"; then |
a0b9e27f | 12403 | echo "$ac_t""$PKG_CONFIG" 1>&6 |
f79bd02d | 12404 | else |
a0b9e27f | 12405 | echo "$ac_t""no" 1>&6 |
f79bd02d JS |
12406 | fi |
12407 | ||
8284b0c5 | 12408 | |
21d1c967 GD |
12409 | if test x$PKG_CONFIG != xno ; then |
12410 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
12411 | : | |
12412 | else | |
12413 | echo *** pkg-config too old; version 0.7 or better required. | |
12414 | no_gtk=yes | |
12415 | PKG_CONFIG=no | |
12416 | fi | |
12417 | else | |
12418 | no_gtk=yes | |
12419 | fi | |
f79bd02d | 12420 | |
21d1c967 | 12421 | min_gtk_version=2.0.0 |
a0b9e27f | 12422 | echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6 |
8b389fab | 12423 | echo "configure:12424: checking for GTK+ - version >= $min_gtk_version" >&5 |
f79bd02d | 12424 | |
21d1c967 GD |
12425 | if test x$PKG_CONFIG != xno ; then |
12426 | ## don't try to run the test against uninstalled libtool libs | |
12427 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
12428 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
12429 | enable_gtktest=no | |
12430 | fi | |
f79bd02d | 12431 | |
21d1c967 GD |
12432 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then |
12433 | : | |
12434 | else | |
12435 | no_gtk=yes | |
12436 | fi | |
12437 | fi | |
f79bd02d | 12438 | |
21d1c967 GD |
12439 | if test x"$no_gtk" = x ; then |
12440 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
12441 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
12442 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
12443 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12444 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
12445 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12446 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
12447 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12448 | if test "x$enable_gtktest" = "xyes" ; then | |
12449 | ac_save_CFLAGS="$CFLAGS" | |
12450 | ac_save_LIBS="$LIBS" | |
12451 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12452 | LIBS="$GTK_LIBS $LIBS" | |
12453 | rm -f conf.gtktest | |
12454 | if test "$cross_compiling" = yes; then | |
12455 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 12456 | else |
a0b9e27f | 12457 | cat > conftest.$ac_ext <<EOF |
8b389fab | 12458 | #line 12459 "configure" |
f79bd02d | 12459 | #include "confdefs.h" |
f79bd02d | 12460 | |
21d1c967 GD |
12461 | #include <gtk/gtk.h> |
12462 | #include <stdio.h> | |
12463 | #include <stdlib.h> | |
f79bd02d | 12464 | |
a0b9e27f | 12465 | int |
21d1c967 GD |
12466 | main () |
12467 | { | |
12468 | int major, minor, micro; | |
12469 | char *tmp_version; | |
f79bd02d | 12470 | |
21d1c967 | 12471 | system ("touch conf.gtktest"); |
f79bd02d | 12472 | |
21d1c967 GD |
12473 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
12474 | tmp_version = g_strdup("$min_gtk_version"); | |
12475 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12476 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12477 | exit(1); | |
12478 | } | |
f79bd02d | 12479 | |
21d1c967 GD |
12480 | if ((gtk_major_version != $gtk_config_major_version) || |
12481 | (gtk_minor_version != $gtk_config_minor_version) || | |
12482 | (gtk_micro_version != $gtk_config_micro_version)) | |
12483 | { | |
a0b9e27f | 12484 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
12485 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
12486 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12487 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
12488 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12489 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12490 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12491 | printf("*** required on your system.\n"); | |
12492 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
12493 | printf("*** to point to the correct configuration files\n"); | |
a0b9e27f | 12494 | } |
21d1c967 GD |
12495 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || |
12496 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12497 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12498 | { | |
12499 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12500 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12501 | printf("*** library (version %d.%d.%d)\n", | |
12502 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12503 | } | |
12504 | else | |
12505 | { | |
12506 | if ((gtk_major_version > major) || | |
12507 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12508 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12509 | { | |
12510 | return 0; | |
12511 | } | |
12512 | else | |
12513 | { | |
12514 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12515 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12516 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12517 | major, minor, micro); | |
12518 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12519 | printf("***\n"); | |
12520 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12521 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
12522 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12523 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
12524 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
12525 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12526 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12527 | } | |
12528 | } | |
12529 | return 1; | |
12530 | } | |
f79bd02d | 12531 | |
a0b9e27f | 12532 | EOF |
8b389fab | 12533 | if { (eval echo configure:12534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 12534 | then |
21d1c967 | 12535 | : |
f79bd02d | 12536 | else |
a0b9e27f MB |
12537 | echo "configure: failed program was:" >&5 |
12538 | cat conftest.$ac_ext >&5 | |
12539 | rm -fr conftest* | |
12540 | no_gtk=yes | |
f79bd02d | 12541 | fi |
a0b9e27f | 12542 | rm -fr conftest* |
f79bd02d | 12543 | fi |
a0b9e27f | 12544 | |
21d1c967 GD |
12545 | CFLAGS="$ac_save_CFLAGS" |
12546 | LIBS="$ac_save_LIBS" | |
12547 | fi | |
12548 | fi | |
12549 | if test "x$no_gtk" = x ; then | |
a0b9e27f MB |
12550 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 |
12551 | wx_cv_lib_gtk=2.0 | |
21d1c967 | 12552 | else |
a0b9e27f | 12553 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12554 | if test "$PKG_CONFIG" = "no" ; then |
12555 | echo "*** A new enough version of pkg-config was not found." | |
12556 | echo "*** See http://pkgconfig.sourceforge.net" | |
12557 | else | |
12558 | if test -f conf.gtktest ; then | |
12559 | : | |
12560 | else | |
12561 | echo "*** Could not run GTK+ test program, checking why..." | |
579d8138 VS |
12562 | ac_save_CFLAGS="$CFLAGS" |
12563 | ac_save_LIBS="$LIBS" | |
21d1c967 GD |
12564 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
12565 | LIBS="$LIBS $GTK_LIBS" | |
a0b9e27f | 12566 | cat > conftest.$ac_ext <<EOF |
8b389fab | 12567 | #line 12568 "configure" |
f79bd02d | 12568 | #include "confdefs.h" |
21d1c967 GD |
12569 | |
12570 | #include <gtk/gtk.h> | |
12571 | #include <stdio.h> | |
f79bd02d | 12572 | |
a0b9e27f MB |
12573 | int main() { |
12574 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
12575 | ; return 0; } | |
12576 | EOF | |
8b389fab | 12577 | if { (eval echo configure:12578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 12578 | rm -rf conftest* |
21d1c967 GD |
12579 | echo "*** The test program compiled, but did not run. This usually means" |
12580 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
12581 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
12582 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12583 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12584 | echo "*** is required on your system" | |
12585 | echo "***" | |
12586 | echo "*** If you have an old version installed, it is best to remove it, although" | |
a0b9e27f | 12587 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
f79bd02d | 12588 | else |
a0b9e27f MB |
12589 | echo "configure: failed program was:" >&5 |
12590 | cat conftest.$ac_ext >&5 | |
12591 | rm -rf conftest* | |
12592 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
579d8138 | 12593 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." |
f79bd02d | 12594 | fi |
a0b9e27f | 12595 | rm -f conftest* |
21d1c967 GD |
12596 | CFLAGS="$ac_save_CFLAGS" |
12597 | LIBS="$ac_save_LIBS" | |
12598 | fi | |
12599 | fi | |
12600 | GTK_CFLAGS="" | |
12601 | GTK_LIBS="" | |
12602 | : | |
12603 | fi | |
a0b9e27f MB |
12604 | |
12605 | ||
21d1c967 | 12606 | rm -f conf.gtktest |
f79bd02d | 12607 | |
2b5f62a0 | 12608 | else |
a0b9e27f | 12609 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
21d1c967 GD |
12610 | if test "${with_gtk_prefix+set}" = set; then |
12611 | withval="$with_gtk_prefix" | |
12612 | gtk_config_prefix="$withval" | |
12613 | else | |
12614 | gtk_config_prefix="" | |
a0b9e27f | 12615 | fi |
f79bd02d | 12616 | |
21d1c967 GD |
12617 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
12618 | if test "${with_gtk_exec_prefix+set}" = set; then | |
12619 | withval="$with_gtk_exec_prefix" | |
12620 | gtk_config_exec_prefix="$withval" | |
12621 | else | |
12622 | gtk_config_exec_prefix="" | |
a0b9e27f MB |
12623 | fi |
12624 | ||
21d1c967 GD |
12625 | # Check whether --enable-gtktest or --disable-gtktest was given. |
12626 | if test "${enable_gtktest+set}" = set; then | |
12627 | enableval="$enable_gtktest" | |
a0b9e27f | 12628 | : |
21d1c967 GD |
12629 | else |
12630 | enable_gtktest=yes | |
a0b9e27f MB |
12631 | fi |
12632 | ||
21d1c967 GD |
12633 | |
12634 | for module in . $GTK_MODULES | |
12635 | do | |
12636 | case "$module" in | |
a0b9e27f | 12637 | gthread) |
21d1c967 GD |
12638 | gtk_config_args="$gtk_config_args gthread" |
12639 | ;; | |
12640 | esac | |
12641 | done | |
12642 | ||
12643 | if test x$gtk_config_exec_prefix != x ; then | |
12644 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
12645 | if test x${GTK_CONFIG+set} != xset ; then | |
12646 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
12647 | fi | |
12648 | fi | |
12649 | if test x$gtk_config_prefix != x ; then | |
12650 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
12651 | if test x${GTK_CONFIG+set} != xset ; then | |
12652 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
12653 | fi | |
12654 | fi | |
12655 | ||
12656 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
12657 | set dummy gtk-config; ac_word=$2 | |
a0b9e27f | 12658 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
8b389fab | 12659 | echo "configure:12660: checking for $ac_word" >&5 |
a0b9e27f MB |
12660 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
12661 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12662 | else |
a0b9e27f MB |
12663 | case "$GTK_CONFIG" in |
12664 | /*) | |
21d1c967 GD |
12665 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
12666 | ;; | |
a0b9e27f MB |
12667 | ?:/*) |
12668 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
12669 | ;; | |
21d1c967 | 12670 | *) |
a0b9e27f MB |
12671 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
12672 | ac_dummy="$PATH" | |
12673 | for ac_dir in $ac_dummy; do | |
12674 | test -z "$ac_dir" && ac_dir=. | |
12675 | if test -f $ac_dir/$ac_word; then | |
12676 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
12677 | break | |
12678 | fi | |
12679 | done | |
12680 | IFS="$ac_save_ifs" | |
21d1c967 GD |
12681 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
12682 | ;; | |
12683 | esac | |
12684 | fi | |
a0b9e27f | 12685 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
21d1c967 | 12686 | if test -n "$GTK_CONFIG"; then |
a0b9e27f | 12687 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
21d1c967 | 12688 | else |
a0b9e27f | 12689 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12690 | fi |
12691 | ||
12692 | min_gtk_version=1.2.7 | |
a0b9e27f | 12693 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
8b389fab | 12694 | echo "configure:12695: checking for GTK - version >= $min_gtk_version" >&5 |
21d1c967 GD |
12695 | no_gtk="" |
12696 | if test "$GTK_CONFIG" = "no" ; then | |
12697 | no_gtk=yes | |
12698 | else | |
12699 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
12700 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
12701 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12702 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12703 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12704 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12705 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12706 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12707 | if test "x$enable_gtktest" = "xyes" ; then | |
12708 | ac_save_CFLAGS="$CFLAGS" | |
12709 | ac_save_LIBS="$LIBS" | |
12710 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12711 | LIBS="$GTK_LIBS $LIBS" | |
12712 | rm -f conf.gtktest | |
12713 | if test "$cross_compiling" = yes; then | |
12714 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 12715 | else |
a0b9e27f | 12716 | cat > conftest.$ac_ext <<EOF |
8b389fab | 12717 | #line 12718 "configure" |
f79bd02d JS |
12718 | #include "confdefs.h" |
12719 | ||
21d1c967 GD |
12720 | #include <gtk/gtk.h> |
12721 | #include <stdio.h> | |
12722 | #include <stdlib.h> | |
f79bd02d | 12723 | |
a0b9e27f | 12724 | int |
21d1c967 GD |
12725 | main () |
12726 | { | |
12727 | int major, minor, micro; | |
12728 | char *tmp_version; | |
12729 | ||
12730 | system ("touch conf.gtktest"); | |
12731 | ||
12732 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
12733 | tmp_version = g_strdup("$min_gtk_version"); | |
12734 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12735 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12736 | exit(1); | |
12737 | } | |
90dd450c | 12738 | |
21d1c967 GD |
12739 | if ((gtk_major_version != $gtk_config_major_version) || |
12740 | (gtk_minor_version != $gtk_config_minor_version) || | |
12741 | (gtk_micro_version != $gtk_config_micro_version)) | |
12742 | { | |
a0b9e27f | 12743 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
12744 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
12745 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12746 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
12747 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12748 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12749 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12750 | printf("*** required on your system.\n"); | |
12751 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
12752 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
12753 | printf("*** before re-running configure\n"); | |
a0b9e27f | 12754 | } |
21d1c967 GD |
12755 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
12756 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
12757 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12758 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12759 | { | |
12760 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12761 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12762 | printf("*** library (version %d.%d.%d)\n", | |
12763 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12764 | } | |
12765 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
12766 | else | |
12767 | { | |
12768 | if ((gtk_major_version > major) || | |
12769 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12770 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12771 | { | |
12772 | return 0; | |
12773 | } | |
12774 | else | |
12775 | { | |
12776 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12777 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12778 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12779 | major, minor, micro); | |
12780 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12781 | printf("***\n"); | |
12782 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12783 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
12784 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12785 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
12786 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
12787 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12788 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12789 | } | |
12790 | } | |
12791 | return 1; | |
12792 | } | |
12793 | ||
a0b9e27f | 12794 | EOF |
8b389fab | 12795 | if { (eval echo configure:12796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 12796 | then |
21d1c967 GD |
12797 | : |
12798 | else | |
a0b9e27f MB |
12799 | echo "configure: failed program was:" >&5 |
12800 | cat conftest.$ac_ext >&5 | |
12801 | rm -fr conftest* | |
12802 | no_gtk=yes | |
21d1c967 | 12803 | fi |
a0b9e27f | 12804 | rm -fr conftest* |
21d1c967 | 12805 | fi |
a0b9e27f | 12806 | |
21d1c967 GD |
12807 | CFLAGS="$ac_save_CFLAGS" |
12808 | LIBS="$ac_save_LIBS" | |
12809 | fi | |
12810 | fi | |
12811 | if test "x$no_gtk" = x ; then | |
a0b9e27f MB |
12812 | echo "$ac_t""yes" 1>&6 |
12813 | wx_cv_lib_gtk=1.2.7 | |
21d1c967 | 12814 | else |
a0b9e27f | 12815 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12816 | if test "$GTK_CONFIG" = "no" ; then |
12817 | echo "*** The gtk-config script installed by GTK could not be found" | |
12818 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
12819 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
12820 | echo "*** full path to gtk-config." | |
12821 | else | |
12822 | if test -f conf.gtktest ; then | |
12823 | : | |
12824 | else | |
12825 | echo "*** Could not run GTK test program, checking why..." | |
12826 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12827 | LIBS="$LIBS $GTK_LIBS" | |
a0b9e27f | 12828 | cat > conftest.$ac_ext <<EOF |
8b389fab | 12829 | #line 12830 "configure" |
21d1c967 GD |
12830 | #include "confdefs.h" |
12831 | ||
12832 | #include <gtk/gtk.h> | |
12833 | #include <stdio.h> | |
12834 | ||
a0b9e27f MB |
12835 | int main() { |
12836 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
12837 | ; return 0; } | |
12838 | EOF | |
8b389fab | 12839 | if { (eval echo configure:12840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 12840 | rm -rf conftest* |
21d1c967 GD |
12841 | echo "*** The test program compiled, but did not run. This usually means" |
12842 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
12843 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
12844 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12845 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12846 | echo "*** is required on your system" | |
12847 | echo "***" | |
12848 | echo "*** If you have an old version installed, it is best to remove it, although" | |
12849 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
12850 | echo "***" | |
12851 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
12852 | echo "*** came with the system with the command" | |
12853 | echo "***" | |
a0b9e27f | 12854 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 12855 | else |
a0b9e27f MB |
12856 | echo "configure: failed program was:" >&5 |
12857 | cat conftest.$ac_ext >&5 | |
12858 | rm -rf conftest* | |
12859 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
12860 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
12861 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
a0b9e27f | 12862 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 12863 | fi |
a0b9e27f | 12864 | rm -f conftest* |
21d1c967 GD |
12865 | CFLAGS="$ac_save_CFLAGS" |
12866 | LIBS="$ac_save_LIBS" | |
12867 | fi | |
12868 | fi | |
12869 | GTK_CFLAGS="" | |
12870 | GTK_LIBS="" | |
12871 | : | |
12872 | fi | |
a0b9e27f MB |
12873 | |
12874 | ||
21d1c967 GD |
12875 | rm -f conf.gtktest |
12876 | ||
21d1c967 | 12877 | |
2b5f62a0 VZ |
12878 | if test -z "$wx_cv_lib_gtk"; then |
12879 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
21d1c967 GD |
12880 | if test "${with_gtk_prefix+set}" = set; then |
12881 | withval="$with_gtk_prefix" | |
12882 | gtk_config_prefix="$withval" | |
12883 | else | |
12884 | gtk_config_prefix="" | |
a0b9e27f | 12885 | fi |
f79bd02d | 12886 | |
21d1c967 GD |
12887 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
12888 | if test "${with_gtk_exec_prefix+set}" = set; then | |
12889 | withval="$with_gtk_exec_prefix" | |
12890 | gtk_config_exec_prefix="$withval" | |
12891 | else | |
12892 | gtk_config_exec_prefix="" | |
a0b9e27f MB |
12893 | fi |
12894 | ||
21d1c967 GD |
12895 | # Check whether --enable-gtktest or --disable-gtktest was given. |
12896 | if test "${enable_gtktest+set}" = set; then | |
12897 | enableval="$enable_gtktest" | |
a0b9e27f | 12898 | : |
90dd450c | 12899 | else |
21d1c967 | 12900 | enable_gtktest=yes |
a0b9e27f MB |
12901 | fi |
12902 | ||
21d1c967 GD |
12903 | |
12904 | for module in . $GTK_MODULES | |
12905 | do | |
12906 | case "$module" in | |
a0b9e27f | 12907 | gthread) |
21d1c967 GD |
12908 | gtk_config_args="$gtk_config_args gthread" |
12909 | ;; | |
12910 | esac | |
12911 | done | |
12912 | ||
12913 | if test x$gtk_config_exec_prefix != x ; then | |
12914 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
12915 | if test x${GTK_CONFIG+set} != xset ; then | |
12916 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
12917 | fi | |
12918 | fi | |
12919 | if test x$gtk_config_prefix != x ; then | |
12920 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
12921 | if test x${GTK_CONFIG+set} != xset ; then | |
12922 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
12923 | fi | |
12924 | fi | |
12925 | ||
12926 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
12927 | set dummy gtk-config; ac_word=$2 | |
a0b9e27f | 12928 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
8b389fab | 12929 | echo "configure:12930: checking for $ac_word" >&5 |
a0b9e27f MB |
12930 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
12931 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 12932 | else |
a0b9e27f MB |
12933 | case "$GTK_CONFIG" in |
12934 | /*) | |
21d1c967 GD |
12935 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
12936 | ;; | |
a0b9e27f MB |
12937 | ?:/*) |
12938 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
12939 | ;; | |
21d1c967 | 12940 | *) |
a0b9e27f MB |
12941 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
12942 | ac_dummy="$PATH" | |
12943 | for ac_dir in $ac_dummy; do | |
12944 | test -z "$ac_dir" && ac_dir=. | |
12945 | if test -f $ac_dir/$ac_word; then | |
12946 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
12947 | break | |
12948 | fi | |
12949 | done | |
12950 | IFS="$ac_save_ifs" | |
21d1c967 GD |
12951 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
12952 | ;; | |
12953 | esac | |
12954 | fi | |
a0b9e27f | 12955 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
21d1c967 | 12956 | if test -n "$GTK_CONFIG"; then |
a0b9e27f | 12957 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
21d1c967 | 12958 | else |
a0b9e27f | 12959 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12960 | fi |
12961 | ||
12962 | min_gtk_version=1.2.3 | |
a0b9e27f | 12963 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
8b389fab | 12964 | echo "configure:12965: checking for GTK - version >= $min_gtk_version" >&5 |
21d1c967 GD |
12965 | no_gtk="" |
12966 | if test "$GTK_CONFIG" = "no" ; then | |
12967 | no_gtk=yes | |
12968 | else | |
12969 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
12970 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
12971 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12972 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12973 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12974 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12975 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12976 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12977 | if test "x$enable_gtktest" = "xyes" ; then | |
12978 | ac_save_CFLAGS="$CFLAGS" | |
12979 | ac_save_LIBS="$LIBS" | |
12980 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12981 | LIBS="$GTK_LIBS $LIBS" | |
12982 | rm -f conf.gtktest | |
12983 | if test "$cross_compiling" = yes; then | |
12984 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
12985 | else | |
a0b9e27f | 12986 | cat > conftest.$ac_ext <<EOF |
8b389fab | 12987 | #line 12988 "configure" |
f79bd02d | 12988 | #include "confdefs.h" |
21d1c967 GD |
12989 | |
12990 | #include <gtk/gtk.h> | |
12991 | #include <stdio.h> | |
12992 | #include <stdlib.h> | |
12993 | ||
a0b9e27f | 12994 | int |
21d1c967 GD |
12995 | main () |
12996 | { | |
12997 | int major, minor, micro; | |
12998 | char *tmp_version; | |
12999 | ||
13000 | system ("touch conf.gtktest"); | |
13001 | ||
13002 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
13003 | tmp_version = g_strdup("$min_gtk_version"); | |
13004 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
13005 | printf("%s, bad version string\n", "$min_gtk_version"); | |
13006 | exit(1); | |
13007 | } | |
13008 | ||
13009 | if ((gtk_major_version != $gtk_config_major_version) || | |
13010 | (gtk_minor_version != $gtk_config_minor_version) || | |
13011 | (gtk_micro_version != $gtk_config_micro_version)) | |
13012 | { | |
a0b9e27f | 13013 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
13014 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
13015 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
13016 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
13017 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
13018 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
13019 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
13020 | printf("*** required on your system.\n"); | |
13021 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
13022 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
13023 | printf("*** before re-running configure\n"); | |
a0b9e27f | 13024 | } |
21d1c967 GD |
13025 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
13026 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
13027 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
13028 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
13029 | { | |
13030 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
13031 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
13032 | printf("*** library (version %d.%d.%d)\n", | |
13033 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
13034 | } | |
13035 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
13036 | else | |
13037 | { | |
13038 | if ((gtk_major_version > major) || | |
13039 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
13040 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
13041 | { | |
13042 | return 0; | |
13043 | } | |
13044 | else | |
13045 | { | |
13046 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
13047 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
13048 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
13049 | major, minor, micro); | |
13050 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
13051 | printf("***\n"); | |
13052 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
13053 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
13054 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
13055 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
13056 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
13057 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
13058 | printf("*** so that the correct libraries are found at run-time))\n"); | |
13059 | } | |
13060 | } | |
13061 | return 1; | |
13062 | } | |
13063 | ||
a0b9e27f | 13064 | EOF |
8b389fab | 13065 | if { (eval echo configure:13066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 13066 | then |
21d1c967 GD |
13067 | : |
13068 | else | |
a0b9e27f MB |
13069 | echo "configure: failed program was:" >&5 |
13070 | cat conftest.$ac_ext >&5 | |
13071 | rm -fr conftest* | |
13072 | no_gtk=yes | |
21d1c967 | 13073 | fi |
a0b9e27f | 13074 | rm -fr conftest* |
21d1c967 | 13075 | fi |
a0b9e27f | 13076 | |
21d1c967 GD |
13077 | CFLAGS="$ac_save_CFLAGS" |
13078 | LIBS="$ac_save_LIBS" | |
13079 | fi | |
13080 | fi | |
13081 | if test "x$no_gtk" = x ; then | |
a0b9e27f MB |
13082 | echo "$ac_t""yes" 1>&6 |
13083 | wx_cv_lib_gtk=1.2.3 | |
21d1c967 | 13084 | else |
a0b9e27f | 13085 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
13086 | if test "$GTK_CONFIG" = "no" ; then |
13087 | echo "*** The gtk-config script installed by GTK could not be found" | |
13088 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
13089 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
13090 | echo "*** full path to gtk-config." | |
13091 | else | |
13092 | if test -f conf.gtktest ; then | |
13093 | : | |
13094 | else | |
13095 | echo "*** Could not run GTK test program, checking why..." | |
13096 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
13097 | LIBS="$LIBS $GTK_LIBS" | |
a0b9e27f | 13098 | cat > conftest.$ac_ext <<EOF |
8b389fab | 13099 | #line 13100 "configure" |
21d1c967 GD |
13100 | #include "confdefs.h" |
13101 | ||
13102 | #include <gtk/gtk.h> | |
13103 | #include <stdio.h> | |
f79bd02d | 13104 | |
a0b9e27f MB |
13105 | int main() { |
13106 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
13107 | ; return 0; } | |
13108 | EOF | |
8b389fab | 13109 | if { (eval echo configure:13110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 13110 | rm -rf conftest* |
21d1c967 GD |
13111 | echo "*** The test program compiled, but did not run. This usually means" |
13112 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
13113 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
13114 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
13115 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
13116 | echo "*** is required on your system" | |
13117 | echo "***" | |
13118 | echo "*** If you have an old version installed, it is best to remove it, although" | |
13119 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
13120 | echo "***" | |
13121 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
13122 | echo "*** came with the system with the command" | |
13123 | echo "***" | |
a0b9e27f | 13124 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 13125 | else |
a0b9e27f MB |
13126 | echo "configure: failed program was:" >&5 |
13127 | cat conftest.$ac_ext >&5 | |
13128 | rm -rf conftest* | |
13129 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
13130 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
13131 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
a0b9e27f | 13132 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 13133 | fi |
a0b9e27f | 13134 | rm -f conftest* |
21d1c967 GD |
13135 | CFLAGS="$ac_save_CFLAGS" |
13136 | LIBS="$ac_save_LIBS" | |
13137 | fi | |
13138 | fi | |
13139 | GTK_CFLAGS="" | |
13140 | GTK_LIBS="" | |
13141 | : | |
13142 | fi | |
a0b9e27f MB |
13143 | |
13144 | ||
21d1c967 | 13145 | rm -f conf.gtktest |
f79bd02d | 13146 | |
2b5f62a0 | 13147 | fi |
21d1c967 GD |
13148 | fi |
13149 | ||
13150 | if test -z "$wx_cv_lib_gtk"; then | |
13151 | wx_cv_lib_gtk=none | |
13152 | else | |
13153 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
13154 | wx_cv_libs_gtk=$GTK_LIBS | |
13155 | fi | |
a0b9e27f MB |
13156 | |
13157 | ||
5c6fa7d2 | 13158 | fi |
52127426 | 13159 | |
8284b0c5 | 13160 | |
21d1c967 | 13161 | if test "$gtk_version_cached" = 1; then |
a0b9e27f | 13162 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 |
21d1c967 GD |
13163 | fi |
13164 | ||
13165 | case "$wx_cv_lib_gtk" in | |
13166 | 2.0) WXGTK20=1 | |
2b5f62a0 | 13167 | TOOLKIT_VERSION=2 |
21d1c967 GD |
13168 | ;; |
13169 | 1.2.7) WXGTK127=1 | |
13170 | WXGTK12=1 | |
13171 | ;; | |
13172 | 1.2.3) WXGTK12=1 | |
13173 | ;; | |
a0b9e27f | 13174 | *) { echo "configure: error: |
247f5006 VZ |
13175 | Please check that gtk-config is in path, the directory |
13176 | where GTK+ libraries are installed (returned by | |
13177 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
13178 | equivalent variable and GTK+ is version 1.2.3 or above. | |
a0b9e27f | 13179 | " 1>&2; exit 1; } |
21d1c967 GD |
13180 | ;; |
13181 | esac | |
13182 | ||
b13cd66e VZ |
13183 | if test "$WXGTK20" = 1; then |
13184 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
a0b9e27f | 13185 | |
f09359cf VS |
13186 | succeeded=no |
13187 | ||
13188 | if test -z "$PKG_CONFIG"; then | |
13189 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
13190 | set dummy pkg-config; ac_word=$2 | |
a0b9e27f | 13191 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
8b389fab | 13192 | echo "configure:13193: checking for $ac_word" >&5 |
a0b9e27f MB |
13193 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
13194 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f09359cf | 13195 | else |
a0b9e27f MB |
13196 | case "$PKG_CONFIG" in |
13197 | /*) | |
f09359cf VS |
13198 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
13199 | ;; | |
a0b9e27f MB |
13200 | ?:/*) |
13201 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
13202 | ;; | |
f09359cf | 13203 | *) |
a0b9e27f MB |
13204 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
13205 | ac_dummy="$PATH" | |
13206 | for ac_dir in $ac_dummy; do | |
13207 | test -z "$ac_dir" && ac_dir=. | |
13208 | if test -f $ac_dir/$ac_word; then | |
13209 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
13210 | break | |
13211 | fi | |
13212 | done | |
13213 | IFS="$ac_save_ifs" | |
f09359cf VS |
13214 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
13215 | ;; | |
13216 | esac | |
13217 | fi | |
a0b9e27f | 13218 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
f09359cf | 13219 | if test -n "$PKG_CONFIG"; then |
a0b9e27f | 13220 | echo "$ac_t""$PKG_CONFIG" 1>&6 |
f09359cf | 13221 | else |
a0b9e27f | 13222 | echo "$ac_t""no" 1>&6 |
f09359cf VS |
13223 | fi |
13224 | ||
13225 | fi | |
13226 | ||
13227 | if test "$PKG_CONFIG" = "no" ; then | |
13228 | echo "*** The pkg-config script could not be found. Make sure it is" | |
13229 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
13230 | echo "*** to the full path to pkg-config." | |
13231 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
13232 | else | |
13233 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
13234 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
a0b9e27f | 13235 | echo $ac_n "checking for pangoft2""... $ac_c" 1>&6 |
8b389fab | 13236 | echo "configure:13237: checking for pangoft2" >&5 |
f09359cf VS |
13237 | |
13238 | if $PKG_CONFIG --exists "pangoft2" ; then | |
a0b9e27f | 13239 | echo "$ac_t""yes" 1>&6 |
f09359cf VS |
13240 | succeeded=yes |
13241 | ||
a0b9e27f | 13242 | echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6 |
8b389fab | 13243 | echo "configure:13244: checking PANGOFT2_CFLAGS" >&5 |
f09359cf | 13244 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
a0b9e27f | 13245 | echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6 |
f09359cf | 13246 | |
a0b9e27f | 13247 | echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6 |
8b389fab | 13248 | echo "configure:13249: checking PANGOFT2_LIBS" >&5 |
f09359cf | 13249 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
a0b9e27f | 13250 | echo "$ac_t""$PANGOFT2_LIBS" 1>&6 |
f09359cf VS |
13251 | else |
13252 | PANGOFT2_CFLAGS="" | |
13253 | PANGOFT2_LIBS="" | |
a0b9e27f | 13254 | ## If we have a custom action on failure, don't print errors, but |
f09359cf VS |
13255 | ## do set a variable so people can do so. |
13256 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
a0b9e27f | 13257 | |
f09359cf VS |
13258 | fi |
13259 | ||
a0b9e27f MB |
13260 | |
13261 | ||
f09359cf VS |
13262 | else |
13263 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
13264 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
13265 | fi | |
13266 | fi | |
13267 | ||
13268 | if test $succeeded = yes; then | |
a0b9e27f | 13269 | |
b13cd66e VZ |
13270 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" |
13271 | LIBS="$LIBS $PANGOFT2_LIBS" | |
a0b9e27f | 13272 | |
f09359cf | 13273 | else |
a0b9e27f MB |
13274 | |
13275 | echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2 | |
b13cd66e | 13276 | wxUSE_PRINTING_ARCHITECTURE="no" |
a0b9e27f MB |
13277 | |
13278 | ||
f09359cf VS |
13279 | fi |
13280 | ||
b13cd66e | 13281 | fi |
2b5f62a0 VZ |
13282 | else |
13283 | if test "$wxUSE_UNICODE" = "yes"; then | |
13284 | echo "configure: warning: Unicode configuration not supported with GTK+ 1.x" 1>&2 | |
13285 | wxUSE_UNICODE=no | |
13286 | fi | |
13287 | fi | |
13288 | ||
13289 | if test "$USE_DARWIN" != 1; then | |
13290 | for ac_func in poll | |
13291 | do | |
13292 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
8b389fab | 13293 | echo "configure:13294: checking for $ac_func" >&5 |
2b5f62a0 VZ |
13294 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13295 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13296 | else | |
13297 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 13298 | #line 13299 "configure" |
2b5f62a0 VZ |
13299 | #include "confdefs.h" |
13300 | /* System header to define __stub macros and hopefully few prototypes, | |
13301 | which can conflict with char $ac_func(); below. */ | |
13302 | #include <assert.h> | |
13303 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13304 | /* We use char because int might match the return type of a gcc2 | |
13305 | builtin and then its argument prototype would still apply. */ | |
13306 | char $ac_func(); | |
13307 | ||
13308 | int main() { | |
13309 | ||
13310 | /* The GNU C library defines this for functions which it implements | |
13311 | to always fail with ENOSYS. Some functions are actually named | |
13312 | something starting with __ and the normal name is an alias. */ | |
13313 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13314 | choke me | |
13315 | #else | |
13316 | $ac_func(); | |
13317 | #endif | |
13318 | ||
13319 | ; return 0; } | |
13320 | EOF | |
8b389fab | 13321 | if { (eval echo configure:13322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
13322 | rm -rf conftest* |
13323 | eval "ac_cv_func_$ac_func=yes" | |
13324 | else | |
13325 | echo "configure: failed program was:" >&5 | |
13326 | cat conftest.$ac_ext >&5 | |
13327 | rm -rf conftest* | |
13328 | eval "ac_cv_func_$ac_func=no" | |
13329 | fi | |
13330 | rm -f conftest* | |
13331 | fi | |
13332 | ||
13333 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13334 | echo "$ac_t""yes" 1>&6 | |
13335 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13336 | cat >> confdefs.h <<EOF | |
13337 | #define $ac_tr_func 1 | |
13338 | EOF | |
13339 | ||
13340 | else | |
13341 | echo "$ac_t""no" 1>&6 | |
13342 | fi | |
13343 | done | |
13344 | ||
f09359cf VS |
13345 | fi |
13346 | ||
21d1c967 GD |
13347 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
13348 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" | |
13349 | ||
13350 | AFMINSTALL=afminstall | |
13351 | TOOLKIT=GTK | |
13352 | GUIDIST=GTK_DIST | |
13353 | ||
a0b9e27f | 13354 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
8b389fab | 13355 | echo "configure:13356: checking for gdk_im_open in -lgdk" >&5 |
a0b9e27f MB |
13356 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
13357 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13358 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13359 | else |
a0b9e27f | 13360 | ac_save_LIBS="$LIBS" |
21d1c967 | 13361 | LIBS="-lgdk $LIBS" |
a0b9e27f | 13362 | cat > conftest.$ac_ext <<EOF |
8b389fab | 13363 | #line 13364 "configure" |
90dd450c | 13364 | #include "confdefs.h" |
5c6fa7d2 | 13365 | /* Override any gcc2 internal prototype to avoid an error. */ |
5c6fa7d2 | 13366 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
13367 | builtin and then its argument prototype would still apply. */ |
13368 | char gdk_im_open(); | |
13369 | ||
13370 | int main() { | |
13371 | gdk_im_open() | |
13372 | ; return 0; } | |
13373 | EOF | |
8b389fab | 13374 | if { (eval echo configure:13375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13375 | rm -rf conftest* |
13376 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13377 | else | |
13378 | echo "configure: failed program was:" >&5 | |
13379 | cat conftest.$ac_ext >&5 | |
13380 | rm -rf conftest* | |
13381 | eval "ac_cv_lib_$ac_lib_var=no" | |
13382 | fi | |
13383 | rm -f conftest* | |
13384 | LIBS="$ac_save_LIBS" | |
13385 | ||
13386 | fi | |
13387 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13388 | echo "$ac_t""yes" 1>&6 | |
13389 | cat >> confdefs.h <<\EOF | |
21d1c967 | 13390 | #define HAVE_XIM 1 |
a0b9e27f | 13391 | EOF |
21d1c967 | 13392 | |
a0b9e27f MB |
13393 | else |
13394 | echo "$ac_t""no" 1>&6 | |
90dd450c | 13395 | fi |
1e6feb95 | 13396 | |
21d1c967 | 13397 | fi |
1e6feb95 | 13398 | |
21d1c967 | 13399 | if test "$wxUSE_MGL" = 1; then |
63a76696 | 13400 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 |
8b389fab | 13401 | echo "configure:13402: checking for SciTech MGL library" >&5 |
21d1c967 | 13402 | if test "x$MGL_ROOT" = x ; then |
a0b9e27f MB |
13403 | echo "$ac_t""not found" 1>&6 |
13404 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
21d1c967 | 13405 | else |
a0b9e27f | 13406 | echo "$ac_t""$MGL_ROOT" 1>&6 |
21d1c967 GD |
13407 | fi |
13408 | ||
63a76696 | 13409 | echo $ac_n "checking for libmgl location""... $ac_c" 1>&6 |
8b389fab | 13410 | echo "configure:13411: checking for libmgl location" >&5 |
21d1c967 GD |
13411 | case "${host}" in |
13412 | *-*-linux* ) | |
63a76696 VS |
13413 | if test "x$wxUSE_SHARED" = xyes ; then |
13414 | mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc" | |
13415 | else | |
13416 | mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so" | |
13417 | fi | |
21d1c967 GD |
13418 | ;; |
13419 | *-pc-msdosdjgpp ) | |
63a76696 | 13420 | mgl_os_candidates="dos32/dj2" |
21d1c967 GD |
13421 | ;; |
13422 | *) | |
a0b9e27f | 13423 | { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; } |
21d1c967 | 13424 | esac |
1e6feb95 | 13425 | |
21d1c967 | 13426 | mgl_lib_type="" |
63a76696 VS |
13427 | mgl_os="" |
13428 | ||
13429 | for mgl_os_i in $mgl_os_candidates ; do | |
13430 | if test "x$mgl_os" = x ; then | |
13431 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
13432 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
13433 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
13434 | mgl_lib_type=debug | |
13435 | mgl_os=$mgl_os_i | |
13436 | fi | |
13437 | fi | |
13438 | if test "x$mgl_lib_type" = x ; then | |
13439 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
13440 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
13441 | mgl_lib_type=release | |
13442 | mgl_os=$mgl_os_i | |
13443 | fi | |
13444 | fi | |
21d1c967 | 13445 | fi |
63a76696 | 13446 | done |
2224580a | 13447 | |
63a76696 VS |
13448 | if test "x$mgl_os" = x ; then |
13449 | echo "$ac_t""not found" 1>&6 | |
13450 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } | |
13451 | fi | |
13452 | echo "$ac_t"""$MGL_ROOT/lib/$mgl_lib_type/$mgl_os"" 1>&6 | |
1542ea39 | 13453 | |
1d1b75ac VZ |
13454 | wxUSE_UNIVERSAL="yes" |
13455 | ||
21d1c967 GD |
13456 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" |
13457 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
13458 | ||
90dd450c | 13459 | AFMINSTALL=afminstall |
21d1c967 GD |
13460 | TOOLKIT=MGL |
13461 | GUIDIST=MGL_DIST | |
13462 | fi | |
dad6c0ea | 13463 | |
21d1c967 | 13464 | if test "$wxUSE_MICROWIN" = 1; then |
a0b9e27f | 13465 | echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6 |
8b389fab | 13466 | echo "configure:13467: checking for MicroWindows" >&5 |
21d1c967 | 13467 | if test "x$MICROWINDOWS" = x ; then |
a0b9e27f MB |
13468 | echo "$ac_t""not found" 1>&6 |
13469 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; } | |
21d1c967 | 13470 | else |
a0b9e27f | 13471 | echo "$ac_t""$MICROWINDOWS" 1>&6 |
21d1c967 | 13472 | fi |
f6bcfd97 | 13473 | |
21d1c967 | 13474 | if test -f $MICROWINDOWS/lib/libmwin.a; then |
a0b9e27f | 13475 | echo "$ac_t""MicroWindows' libraries found." 1>&6 |
21d1c967 | 13476 | else |
a0b9e27f | 13477 | { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; } |
90dd450c | 13478 | fi |
0b2effe9 | 13479 | |
21d1c967 GD |
13480 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" |
13481 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
13482 | ||
1d1b75ac VZ |
13483 | wxUSE_UNIVERSAL="yes" |
13484 | ||
21d1c967 GD |
13485 | AFMINSTALL=afminstall |
13486 | TOOLKIT=MICROWIN | |
13487 | GUIDIST=MICROWIN_DIST | |
1d1b75ac VZ |
13488 | |
13489 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
21d1c967 | 13490 | fi |
f6bcfd97 | 13491 | |
21d1c967 | 13492 | if test "$wxUSE_X11" = 1; then |
a0b9e27f MB |
13493 | # If we find X, set shell vars x_includes and x_libraries to the |
13494 | # paths, otherwise set no_x=yes. | |
13495 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
13496 | # --without-x overrides everything else, but does not touch the cache. | |
13497 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
8b389fab | 13498 | echo "configure:13499: checking for X" >&5 |
d8356fa3 | 13499 | |
21d1c967 GD |
13500 | # Check whether --with-x or --without-x was given. |
13501 | if test "${with_x+set}" = set; then | |
13502 | withval="$with_x" | |
a0b9e27f MB |
13503 | : |
13504 | fi | |
2224580a | 13505 | |
21d1c967 GD |
13506 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
13507 | if test "x$with_x" = xno; then | |
13508 | # The user explicitly disabled X. | |
13509 | have_x=disabled | |
13510 | else | |
13511 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
13512 | # Both variables are already set. | |
13513 | have_x=yes | |
13514 | else | |
a0b9e27f MB |
13515 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
13516 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 GD |
13517 | else |
13518 | # One or both of the vars are not set, and there is no cached value. | |
a0b9e27f MB |
13519 | ac_x_includes=NO ac_x_libraries=NO |
13520 | rm -fr conftestdir | |
13521 | if mkdir conftestdir; then | |
13522 | cd conftestdir | |
21d1c967 | 13523 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
a0b9e27f | 13524 | cat > Imakefile <<'EOF' |
21d1c967 GD |
13525 | acfindx: |
13526 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
a0b9e27f | 13527 | EOF |
21d1c967 GD |
13528 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
13529 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
13530 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
13531 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
13532 | for ac_extension in a so sl; do | |
13533 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
a0b9e27f | 13534 | test -f $ac_im_libdir/libX11.$ac_extension; then |
21d1c967 GD |
13535 | ac_im_usrlibdir=$ac_im_libdir; break |
13536 | fi | |
13537 | done | |
13538 | # Screen out bogus values from the imake configuration. They are | |
13539 | # bogus both because they are the default anyway, and because | |
13540 | # using them would break gcc on systems where it needs fixed includes. | |
a0b9e27f | 13541 | case "$ac_im_incroot" in |
21d1c967 | 13542 | /usr/include) ;; |
a0b9e27f | 13543 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
21d1c967 | 13544 | esac |
a0b9e27f | 13545 | case "$ac_im_usrlibdir" in |
21d1c967 | 13546 | /usr/lib | /lib) ;; |
a0b9e27f | 13547 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
21d1c967 GD |
13548 | esac |
13549 | fi | |
13550 | cd .. | |
a0b9e27f | 13551 | rm -fr conftestdir |
21d1c967 | 13552 | fi |
10f2d63a | 13553 | |
a0b9e27f MB |
13554 | if test "$ac_x_includes" = NO; then |
13555 | # Guess where to find include files, by looking for this one X11 .h file. | |
13556 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
13557 | ||
21d1c967 | 13558 | # First, try using that file with no special directory specified. |
a0b9e27f | 13559 | cat > conftest.$ac_ext <<EOF |
8b389fab | 13560 | #line 13561 "configure" |
21d1c967 | 13561 | #include "confdefs.h" |
a0b9e27f MB |
13562 | #include <$x_direct_test_include> |
13563 | EOF | |
13564 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8b389fab | 13565 | { (eval echo configure:13566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
13566 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13567 | if test -z "$ac_err"; then | |
13568 | rm -rf conftest* | |
21d1c967 GD |
13569 | # We can compile using X headers with no special include directory. |
13570 | ac_x_includes= | |
90dd450c | 13571 | else |
a0b9e27f MB |
13572 | echo "$ac_err" >&5 |
13573 | echo "configure: failed program was:" >&5 | |
90dd450c | 13574 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
13575 | rm -rf conftest* |
13576 | # Look for the header file in a standard set of common directories. | |
13577 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
13578 | for ac_dir in \ | |
13579 | /usr/X11/include \ | |
13580 | /usr/X11R6/include \ | |
13581 | /usr/X11R5/include \ | |
13582 | /usr/X11R4/include \ | |
13583 | \ | |
13584 | /usr/include/X11 \ | |
13585 | /usr/include/X11R6 \ | |
13586 | /usr/include/X11R5 \ | |
13587 | /usr/include/X11R4 \ | |
13588 | \ | |
13589 | /usr/local/X11/include \ | |
13590 | /usr/local/X11R6/include \ | |
13591 | /usr/local/X11R5/include \ | |
13592 | /usr/local/X11R4/include \ | |
13593 | \ | |
13594 | /usr/local/include/X11 \ | |
13595 | /usr/local/include/X11R6 \ | |
13596 | /usr/local/include/X11R5 \ | |
13597 | /usr/local/include/X11R4 \ | |
13598 | \ | |
13599 | /usr/X386/include \ | |
13600 | /usr/x386/include \ | |
13601 | /usr/XFree86/include/X11 \ | |
13602 | \ | |
13603 | /usr/include \ | |
13604 | /usr/local/include \ | |
13605 | /usr/unsupported/include \ | |
13606 | /usr/athena/include \ | |
13607 | /usr/local/x11r5/include \ | |
13608 | /usr/lpp/Xamples/include \ | |
13609 | \ | |
13610 | /usr/openwin/include \ | |
13611 | /usr/openwin/share/include \ | |
13612 | ; \ | |
13613 | do | |
13614 | if test -r "$ac_dir/$x_direct_test_include"; then | |
13615 | ac_x_includes=$ac_dir | |
13616 | break | |
13617 | fi | |
13618 | done | |
3a922bb4 | 13619 | fi |
a0b9e27f MB |
13620 | rm -f conftest* |
13621 | fi # $ac_x_includes = NO | |
10f2d63a | 13622 | |
a0b9e27f | 13623 | if test "$ac_x_libraries" = NO; then |
21d1c967 | 13624 | # Check for the libraries. |
a0b9e27f MB |
13625 | |
13626 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
13627 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
13628 | ||
21d1c967 GD |
13629 | # See if we find them without any special options. |
13630 | # Don't add to $LIBS permanently. | |
a0b9e27f MB |
13631 | ac_save_LIBS="$LIBS" |
13632 | LIBS="-l$x_direct_test_library $LIBS" | |
13633 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 13634 | #line 13635 "configure" |
3a922bb4 | 13635 | #include "confdefs.h" |
a0b9e27f MB |
13636 | |
13637 | int main() { | |
13638 | ${x_direct_test_function}() | |
13639 | ; return 0; } | |
13640 | EOF | |
8b389fab | 13641 | if { (eval echo configure:13642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13642 | rm -rf conftest* |
13643 | LIBS="$ac_save_LIBS" | |
21d1c967 GD |
13644 | # We can link X programs with no special library path. |
13645 | ac_x_libraries= | |
3a922bb4 | 13646 | else |
a0b9e27f MB |
13647 | echo "configure: failed program was:" >&5 |
13648 | cat conftest.$ac_ext >&5 | |
13649 | rm -rf conftest* | |
13650 | LIBS="$ac_save_LIBS" | |
13651 | # First see if replacing the include by lib works. | |
13652 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
13653 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
13654 | /usr/X11/lib \ | |
13655 | /usr/X11R6/lib \ | |
13656 | /usr/X11R5/lib \ | |
13657 | /usr/X11R4/lib \ | |
13658 | \ | |
13659 | /usr/lib/X11 \ | |
13660 | /usr/lib/X11R6 \ | |
13661 | /usr/lib/X11R5 \ | |
13662 | /usr/lib/X11R4 \ | |
13663 | \ | |
13664 | /usr/local/X11/lib \ | |
13665 | /usr/local/X11R6/lib \ | |
13666 | /usr/local/X11R5/lib \ | |
13667 | /usr/local/X11R4/lib \ | |
13668 | \ | |
13669 | /usr/local/lib/X11 \ | |
13670 | /usr/local/lib/X11R6 \ | |
13671 | /usr/local/lib/X11R5 \ | |
13672 | /usr/local/lib/X11R4 \ | |
13673 | \ | |
13674 | /usr/X386/lib \ | |
13675 | /usr/x386/lib \ | |
13676 | /usr/XFree86/lib/X11 \ | |
13677 | \ | |
13678 | /usr/lib \ | |
13679 | /usr/local/lib \ | |
13680 | /usr/unsupported/lib \ | |
13681 | /usr/athena/lib \ | |
13682 | /usr/local/x11r5/lib \ | |
13683 | /usr/lpp/Xamples/lib \ | |
13684 | /lib/usr/lib/X11 \ | |
13685 | \ | |
13686 | /usr/openwin/lib \ | |
13687 | /usr/openwin/share/lib \ | |
13688 | ; \ | |
21d1c967 GD |
13689 | do |
13690 | for ac_extension in a so sl; do | |
a0b9e27f | 13691 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
21d1c967 GD |
13692 | ac_x_libraries=$ac_dir |
13693 | break 2 | |
13694 | fi | |
13695 | done | |
13696 | done | |
3a922bb4 | 13697 | fi |
a0b9e27f MB |
13698 | rm -f conftest* |
13699 | fi # $ac_x_libraries = NO | |
90dd450c | 13700 | |
a0b9e27f | 13701 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
21d1c967 GD |
13702 | # Didn't find X anywhere. Cache the known absence of X. |
13703 | ac_cv_have_x="have_x=no" | |
13704 | else | |
13705 | # Record where we found X for the cache. | |
13706 | ac_cv_have_x="have_x=yes \ | |
13707 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
90dd450c | 13708 | fi |
21d1c967 GD |
13709 | fi |
13710 | fi | |
13711 | eval "$ac_cv_have_x" | |
13712 | fi # $with_x != no | |
90dd450c | 13713 | |
21d1c967 | 13714 | if test "$have_x" != yes; then |
a0b9e27f | 13715 | echo "$ac_t""$have_x" 1>&6 |
21d1c967 GD |
13716 | no_x=yes |
13717 | else | |
13718 | # If each of the values was on the command line, it overrides each guess. | |
13719 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
13720 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
13721 | # Update the cache value to reflect the command line values. | |
13722 | ac_cv_have_x="have_x=yes \ | |
13723 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
a0b9e27f | 13724 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
21d1c967 | 13725 | fi |
90dd450c | 13726 | |
21d1c967 | 13727 | if test "$no_x" = yes; then |
90dd450c | 13728 | # Not all programs may use this symbol, but it does not hurt to define it. |
a0b9e27f | 13729 | cat >> confdefs.h <<\EOF |
90dd450c | 13730 | #define X_DISPLAY_MISSING 1 |
a0b9e27f | 13731 | EOF |
90dd450c VZ |
13732 | |
13733 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
13734 | else | |
13735 | if test -n "$x_includes"; then | |
13736 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
62d0491b | 13737 | fi |
3a922bb4 | 13738 | |
90dd450c VZ |
13739 | # It would also be nice to do this for all -L options, not just this one. |
13740 | if test -n "$x_libraries"; then | |
13741 | X_LIBS="$X_LIBS -L$x_libraries" | |
13742 | # For Solaris; some versions of Sun CC require a space after -R and | |
13743 | # others require no space. Words are not sufficient . . . . | |
a0b9e27f | 13744 | case "`(uname -sr) 2>/dev/null`" in |
90dd450c | 13745 | "SunOS 5"*) |
a0b9e27f | 13746 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
8b389fab | 13747 | echo "configure:13748: checking whether -R must be followed by a space" >&5 |
a0b9e27f MB |
13748 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
13749 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 13750 | #line 13751 "configure" |
90dd450c VZ |
13751 | #include "confdefs.h" |
13752 | ||
a0b9e27f | 13753 | int main() { |
90dd450c | 13754 | |
a0b9e27f MB |
13755 | ; return 0; } |
13756 | EOF | |
8b389fab | 13757 | if { (eval echo configure:13758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 13758 | rm -rf conftest* |
90dd450c | 13759 | ac_R_nospace=yes |
3a922bb4 | 13760 | else |
a0b9e27f MB |
13761 | echo "configure: failed program was:" >&5 |
13762 | cat conftest.$ac_ext >&5 | |
13763 | rm -rf conftest* | |
13764 | ac_R_nospace=no | |
3a922bb4 | 13765 | fi |
a0b9e27f | 13766 | rm -f conftest* |
90dd450c | 13767 | if test $ac_R_nospace = yes; then |
a0b9e27f | 13768 | echo "$ac_t""no" 1>&6 |
90dd450c VZ |
13769 | X_LIBS="$X_LIBS -R$x_libraries" |
13770 | else | |
13771 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
a0b9e27f | 13772 | cat > conftest.$ac_ext <<EOF |
8b389fab | 13773 | #line 13774 "configure" |
90dd450c | 13774 | #include "confdefs.h" |
3a922bb4 | 13775 | |
a0b9e27f | 13776 | int main() { |
6f754473 | 13777 | |
a0b9e27f MB |
13778 | ; return 0; } |
13779 | EOF | |
8b389fab | 13780 | if { (eval echo configure:13781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 13781 | rm -rf conftest* |
90dd450c VZ |
13782 | ac_R_space=yes |
13783 | else | |
a0b9e27f MB |
13784 | echo "configure: failed program was:" >&5 |
13785 | cat conftest.$ac_ext >&5 | |
13786 | rm -rf conftest* | |
13787 | ac_R_space=no | |
90dd450c | 13788 | fi |
a0b9e27f | 13789 | rm -f conftest* |
90dd450c | 13790 | if test $ac_R_space = yes; then |
a0b9e27f | 13791 | echo "$ac_t""yes" 1>&6 |
90dd450c VZ |
13792 | X_LIBS="$X_LIBS -R $x_libraries" |
13793 | else | |
a0b9e27f | 13794 | echo "$ac_t""neither works" 1>&6 |
90dd450c VZ |
13795 | fi |
13796 | fi | |
a0b9e27f | 13797 | LIBS="$ac_xsave_LIBS" |
90dd450c VZ |
13798 | esac |
13799 | fi | |
13800 | ||
13801 | # Check for system-dependent libraries X programs must link with. | |
13802 | # Do this before checking for the system-independent R6 libraries | |
13803 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
6f754473 | 13804 | |
90dd450c VZ |
13805 | if test "$ISC" = yes; then |
13806 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
13807 | else | |
a0b9e27f MB |
13808 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
13809 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
90dd450c | 13810 | # the Alpha needs dnet_stub (dnet does not exist). |
a0b9e27f | 13811 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
8b389fab | 13812 | echo "configure:13813: checking for dnet_ntoa in -ldnet" >&5 |
a0b9e27f MB |
13813 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13814 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13815 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 13816 | else |
a0b9e27f | 13817 | ac_save_LIBS="$LIBS" |
247f5006 | 13818 | LIBS="-ldnet $LIBS" |
a0b9e27f | 13819 | cat > conftest.$ac_ext <<EOF |
8b389fab | 13820 | #line 13821 "configure" |
247f5006 | 13821 | #include "confdefs.h" |
247f5006 | 13822 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 | 13823 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
13824 | builtin and then its argument prototype would still apply. */ |
13825 | char dnet_ntoa(); | |
13826 | ||
13827 | int main() { | |
13828 | dnet_ntoa() | |
13829 | ; return 0; } | |
13830 | EOF | |
8b389fab | 13831 | if { (eval echo configure:13832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13832 | rm -rf conftest* |
13833 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13834 | else | |
13835 | echo "configure: failed program was:" >&5 | |
13836 | cat conftest.$ac_ext >&5 | |
13837 | rm -rf conftest* | |
13838 | eval "ac_cv_lib_$ac_lib_var=no" | |
13839 | fi | |
13840 | rm -f conftest* | |
13841 | LIBS="$ac_save_LIBS" | |
13842 | ||
13843 | fi | |
13844 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13845 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13846 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
a0b9e27f MB |
13847 | else |
13848 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
13849 | fi |
13850 | ||
90dd450c | 13851 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
a0b9e27f | 13852 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
8b389fab | 13853 | echo "configure:13854: checking for dnet_ntoa in -ldnet_stub" >&5 |
a0b9e27f MB |
13854 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13855 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13856 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13857 | else |
a0b9e27f | 13858 | ac_save_LIBS="$LIBS" |
90dd450c | 13859 | LIBS="-ldnet_stub $LIBS" |
a0b9e27f | 13860 | cat > conftest.$ac_ext <<EOF |
8b389fab | 13861 | #line 13862 "configure" |
90dd450c VZ |
13862 | #include "confdefs.h" |
13863 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13864 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13865 | builtin and then its argument prototype would still apply. */ |
13866 | char dnet_ntoa(); | |
13867 | ||
13868 | int main() { | |
13869 | dnet_ntoa() | |
13870 | ; return 0; } | |
13871 | EOF | |
8b389fab | 13872 | if { (eval echo configure:13873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13873 | rm -rf conftest* |
13874 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13875 | else | |
13876 | echo "configure: failed program was:" >&5 | |
13877 | cat conftest.$ac_ext >&5 | |
13878 | rm -rf conftest* | |
13879 | eval "ac_cv_lib_$ac_lib_var=no" | |
13880 | fi | |
13881 | rm -f conftest* | |
13882 | LIBS="$ac_save_LIBS" | |
13883 | ||
13884 | fi | |
13885 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13886 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13887 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
a0b9e27f MB |
13888 | else |
13889 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
13890 | fi |
13891 | ||
90dd450c | 13892 | fi |
978f1259 | 13893 | |
90dd450c VZ |
13894 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
13895 | # to get the SysV transport functions. | |
a0b9e27f | 13896 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
90dd450c VZ |
13897 | # needs -lnsl. |
13898 | # The nsl library prevents programs from opening the X display | |
a0b9e27f MB |
13899 | # on Irix 5.2, according to dickey@clark.net. |
13900 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
8b389fab | 13901 | echo "configure:13902: checking for gethostbyname" >&5 |
a0b9e27f MB |
13902 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
13903 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13904 | else | |
13905 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 13906 | #line 13907 "configure" |
90dd450c VZ |
13907 | #include "confdefs.h" |
13908 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 13909 | which can conflict with char gethostbyname(); below. */ |
90dd450c VZ |
13910 | #include <assert.h> |
13911 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13912 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13913 | builtin and then its argument prototype would still apply. */ |
13914 | char gethostbyname(); | |
13915 | ||
13916 | int main() { | |
13917 | ||
90dd450c VZ |
13918 | /* The GNU C library defines this for functions which it implements |
13919 | to always fail with ENOSYS. Some functions are actually named | |
13920 | something starting with __ and the normal name is an alias. */ | |
13921 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
13922 | choke me | |
13923 | #else | |
a0b9e27f | 13924 | gethostbyname(); |
90dd450c | 13925 | #endif |
978f1259 | 13926 | |
a0b9e27f MB |
13927 | ; return 0; } |
13928 | EOF | |
8b389fab | 13929 | if { (eval echo configure:13930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13930 | rm -rf conftest* |
13931 | eval "ac_cv_func_gethostbyname=yes" | |
13932 | else | |
13933 | echo "configure: failed program was:" >&5 | |
13934 | cat conftest.$ac_ext >&5 | |
13935 | rm -rf conftest* | |
13936 | eval "ac_cv_func_gethostbyname=no" | |
13937 | fi | |
13938 | rm -f conftest* | |
13939 | fi | |
13940 | ||
13941 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
13942 | echo "$ac_t""yes" 1>&6 | |
13943 | : | |
13944 | else | |
13945 | echo "$ac_t""no" 1>&6 | |
13946 | fi | |
698dcdb6 | 13947 | |
90dd450c | 13948 | if test $ac_cv_func_gethostbyname = no; then |
a0b9e27f | 13949 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
8b389fab | 13950 | echo "configure:13951: checking for gethostbyname in -lnsl" >&5 |
a0b9e27f MB |
13951 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
13952 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13953 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13954 | else |
a0b9e27f | 13955 | ac_save_LIBS="$LIBS" |
90dd450c | 13956 | LIBS="-lnsl $LIBS" |
a0b9e27f | 13957 | cat > conftest.$ac_ext <<EOF |
8b389fab | 13958 | #line 13959 "configure" |
90dd450c VZ |
13959 | #include "confdefs.h" |
13960 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13961 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13962 | builtin and then its argument prototype would still apply. */ |
13963 | char gethostbyname(); | |
5c6fa7d2 | 13964 | |
a0b9e27f MB |
13965 | int main() { |
13966 | gethostbyname() | |
13967 | ; return 0; } | |
13968 | EOF | |
8b389fab | 13969 | if { (eval echo configure:13970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13970 | rm -rf conftest* |
13971 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8284b0c5 | 13972 | else |
a0b9e27f MB |
13973 | echo "configure: failed program was:" >&5 |
13974 | cat conftest.$ac_ext >&5 | |
13975 | rm -rf conftest* | |
13976 | eval "ac_cv_lib_$ac_lib_var=no" | |
13977 | fi | |
13978 | rm -f conftest* | |
13979 | LIBS="$ac_save_LIBS" | |
247f5006 | 13980 | |
a0b9e27f MB |
13981 | fi |
13982 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13983 | echo "$ac_t""yes" 1>&6 | |
13984 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
13985 | else | |
13986 | echo "$ac_t""no" 1>&6 | |
90dd450c | 13987 | fi |
b12915c1 | 13988 | |
90dd450c VZ |
13989 | fi |
13990 | ||
13991 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
13992 | # socket/setsockopt and other routines are undefined under SCO ODT | |
13993 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
a0b9e27f MB |
13994 | # on later versions), says simon@lia.di.epfl.ch: it contains |
13995 | # gethostby* variants that don't use the nameserver (or something). | |
13996 | # -lsocket must be given before -lnsl if both are needed. | |
13997 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
13998 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
8b389fab | 13999 | echo "configure:14000: checking for connect" >&5 |
a0b9e27f MB |
14000 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
14001 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14002 | else | |
14003 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 14004 | #line 14005 "configure" |
55e80573 | 14005 | #include "confdefs.h" |
90dd450c | 14006 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 14007 | which can conflict with char connect(); below. */ |
90dd450c VZ |
14008 | #include <assert.h> |
14009 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14010 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14011 | builtin and then its argument prototype would still apply. */ |
14012 | char connect(); | |
14013 | ||
14014 | int main() { | |
14015 | ||
90dd450c VZ |
14016 | /* The GNU C library defines this for functions which it implements |
14017 | to always fail with ENOSYS. Some functions are actually named | |
14018 | something starting with __ and the normal name is an alias. */ | |
14019 | #if defined (__stub_connect) || defined (__stub___connect) | |
14020 | choke me | |
14021 | #else | |
a0b9e27f | 14022 | connect(); |
90dd450c VZ |
14023 | #endif |
14024 | ||
a0b9e27f MB |
14025 | ; return 0; } |
14026 | EOF | |
8b389fab | 14027 | if { (eval echo configure:14028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14028 | rm -rf conftest* |
14029 | eval "ac_cv_func_connect=yes" | |
14030 | else | |
14031 | echo "configure: failed program was:" >&5 | |
14032 | cat conftest.$ac_ext >&5 | |
14033 | rm -rf conftest* | |
14034 | eval "ac_cv_func_connect=no" | |
14035 | fi | |
14036 | rm -f conftest* | |
14037 | fi | |
14038 | ||
14039 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
14040 | echo "$ac_t""yes" 1>&6 | |
14041 | : | |
14042 | else | |
14043 | echo "$ac_t""no" 1>&6 | |
14044 | fi | |
55e80573 | 14045 | |
90dd450c | 14046 | if test $ac_cv_func_connect = no; then |
a0b9e27f | 14047 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
8b389fab | 14048 | echo "configure:14049: checking for connect in -lsocket" >&5 |
a0b9e27f MB |
14049 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
14050 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14051 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 14052 | else |
a0b9e27f | 14053 | ac_save_LIBS="$LIBS" |
90dd450c | 14054 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 14055 | cat > conftest.$ac_ext <<EOF |
8b389fab | 14056 | #line 14057 "configure" |
90dd450c VZ |
14057 | #include "confdefs.h" |
14058 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14059 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14060 | builtin and then its argument prototype would still apply. */ |
14061 | char connect(); | |
14062 | ||
14063 | int main() { | |
14064 | connect() | |
14065 | ; return 0; } | |
14066 | EOF | |
8b389fab | 14067 | if { (eval echo configure:14068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14068 | rm -rf conftest* |
14069 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14070 | else | |
14071 | echo "configure: failed program was:" >&5 | |
14072 | cat conftest.$ac_ext >&5 | |
14073 | rm -rf conftest* | |
14074 | eval "ac_cv_lib_$ac_lib_var=no" | |
14075 | fi | |
14076 | rm -f conftest* | |
14077 | LIBS="$ac_save_LIBS" | |
14078 | ||
14079 | fi | |
14080 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14081 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 14082 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
a0b9e27f MB |
14083 | else |
14084 | echo "$ac_t""no" 1>&6 | |
90dd450c | 14085 | fi |
77e13408 | 14086 | |
90dd450c | 14087 | fi |
25d0687a | 14088 | |
a0b9e27f MB |
14089 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
14090 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
8b389fab | 14091 | echo "configure:14092: checking for remove" >&5 |
a0b9e27f MB |
14092 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
14093 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 14094 | else |
a0b9e27f | 14095 | cat > conftest.$ac_ext <<EOF |
8b389fab | 14096 | #line 14097 "configure" |
90dd450c VZ |
14097 | #include "confdefs.h" |
14098 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 14099 | which can conflict with char remove(); below. */ |
90dd450c VZ |
14100 | #include <assert.h> |
14101 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14102 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14103 | builtin and then its argument prototype would still apply. */ |
14104 | char remove(); | |
14105 | ||
14106 | int main() { | |
14107 | ||
90dd450c VZ |
14108 | /* The GNU C library defines this for functions which it implements |
14109 | to always fail with ENOSYS. Some functions are actually named | |
14110 | something starting with __ and the normal name is an alias. */ | |
14111 | #if defined (__stub_remove) || defined (__stub___remove) | |
14112 | choke me | |
14113 | #else | |
a0b9e27f | 14114 | remove(); |
90dd450c | 14115 | #endif |
55e80573 | 14116 | |
a0b9e27f MB |
14117 | ; return 0; } |
14118 | EOF | |
8b389fab | 14119 | if { (eval echo configure:14120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14120 | rm -rf conftest* |
14121 | eval "ac_cv_func_remove=yes" | |
14122 | else | |
14123 | echo "configure: failed program was:" >&5 | |
14124 | cat conftest.$ac_ext >&5 | |
14125 | rm -rf conftest* | |
14126 | eval "ac_cv_func_remove=no" | |
14127 | fi | |
14128 | rm -f conftest* | |
14129 | fi | |
14130 | ||
14131 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
14132 | echo "$ac_t""yes" 1>&6 | |
14133 | : | |
14134 | else | |
14135 | echo "$ac_t""no" 1>&6 | |
14136 | fi | |
10f2d63a | 14137 | |
90dd450c | 14138 | if test $ac_cv_func_remove = no; then |
a0b9e27f | 14139 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
8b389fab | 14140 | echo "configure:14141: checking for remove in -lposix" >&5 |
a0b9e27f MB |
14141 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
14142 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14143 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 14144 | else |
a0b9e27f | 14145 | ac_save_LIBS="$LIBS" |
90dd450c | 14146 | LIBS="-lposix $LIBS" |
a0b9e27f | 14147 | cat > conftest.$ac_ext <<EOF |
8b389fab | 14148 | #line 14149 "configure" |
90dd450c VZ |
14149 | #include "confdefs.h" |
14150 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14151 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14152 | builtin and then its argument prototype would still apply. */ |
14153 | char remove(); | |
14154 | ||
14155 | int main() { | |
14156 | remove() | |
14157 | ; return 0; } | |
14158 | EOF | |
8b389fab | 14159 | if { (eval echo configure:14160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14160 | rm -rf conftest* |
14161 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14162 | else | |
14163 | echo "configure: failed program was:" >&5 | |
14164 | cat conftest.$ac_ext >&5 | |
14165 | rm -rf conftest* | |
14166 | eval "ac_cv_lib_$ac_lib_var=no" | |
14167 | fi | |
14168 | rm -f conftest* | |
14169 | LIBS="$ac_save_LIBS" | |
14170 | ||
14171 | fi | |
14172 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14173 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 14174 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
a0b9e27f MB |
14175 | else |
14176 | echo "$ac_t""no" 1>&6 | |
90dd450c | 14177 | fi |
f6bcfd97 | 14178 | |
6fa882bd RR |
14179 | fi |
14180 | ||
90dd450c | 14181 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
a0b9e27f | 14182 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
8b389fab | 14183 | echo "configure:14184: checking for shmat" >&5 |
a0b9e27f MB |
14184 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
14185 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 14186 | else |
a0b9e27f | 14187 | cat > conftest.$ac_ext <<EOF |
8b389fab | 14188 | #line 14189 "configure" |
90dd450c VZ |
14189 | #include "confdefs.h" |
14190 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 14191 | which can conflict with char shmat(); below. */ |
90dd450c VZ |
14192 | #include <assert.h> |
14193 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14194 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14195 | builtin and then its argument prototype would still apply. */ |
14196 | char shmat(); | |
14197 | ||
14198 | int main() { | |
14199 | ||
90dd450c VZ |
14200 | /* The GNU C library defines this for functions which it implements |
14201 | to always fail with ENOSYS. Some functions are actually named | |
14202 | something starting with __ and the normal name is an alias. */ | |
14203 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
14204 | choke me | |
14205 | #else | |
a0b9e27f | 14206 | shmat(); |
90dd450c | 14207 | #endif |
10f2d63a | 14208 | |
a0b9e27f MB |
14209 | ; return 0; } |
14210 | EOF | |
8b389fab | 14211 | if { (eval echo configure:14212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14212 | rm -rf conftest* |
14213 | eval "ac_cv_func_shmat=yes" | |
14214 | else | |
14215 | echo "configure: failed program was:" >&5 | |
14216 | cat conftest.$ac_ext >&5 | |
14217 | rm -rf conftest* | |
14218 | eval "ac_cv_func_shmat=no" | |
14219 | fi | |
14220 | rm -f conftest* | |
14221 | fi | |
14222 | ||
14223 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
14224 | echo "$ac_t""yes" 1>&6 | |
14225 | : | |
14226 | else | |
14227 | echo "$ac_t""no" 1>&6 | |
14228 | fi | |
d08b457b | 14229 | |
90dd450c | 14230 | if test $ac_cv_func_shmat = no; then |
a0b9e27f | 14231 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
8b389fab | 14232 | echo "configure:14233: checking for shmat in -lipc" >&5 |
a0b9e27f MB |
14233 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
14234 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14235 | echo $ac_n "(cached) $ac_c" 1>&6 | |
d08b457b | 14236 | else |
a0b9e27f | 14237 | ac_save_LIBS="$LIBS" |
90dd450c | 14238 | LIBS="-lipc $LIBS" |
a0b9e27f | 14239 | cat > conftest.$ac_ext <<EOF |
8b389fab | 14240 | #line 14241 "configure" |
90dd450c | 14241 | #include "confdefs.h" |
8284b0c5 | 14242 | /* Override any gcc2 internal prototype to avoid an error. */ |
90dd450c | 14243 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
14244 | builtin and then its argument prototype would still apply. */ |
14245 | char shmat(); | |
14246 | ||
14247 | int main() { | |
14248 | shmat() | |
14249 | ; return 0; } | |
14250 | EOF | |
8b389fab | 14251 | if { (eval echo configure:14252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14252 | rm -rf conftest* |
14253 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14254 | else | |
14255 | echo "configure: failed program was:" >&5 | |
14256 | cat conftest.$ac_ext >&5 | |
14257 | rm -rf conftest* | |
14258 | eval "ac_cv_lib_$ac_lib_var=no" | |
14259 | fi | |
14260 | rm -f conftest* | |
14261 | LIBS="$ac_save_LIBS" | |
14262 | ||
14263 | fi | |
14264 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14265 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 14266 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
a0b9e27f MB |
14267 | else |
14268 | echo "$ac_t""no" 1>&6 | |
d08b457b GD |
14269 | fi |
14270 | ||
d558c907 | 14271 | fi |
90dd450c | 14272 | fi |
3a922bb4 | 14273 | |
90dd450c | 14274 | # Check for libraries that X11R6 Xt/Xaw programs need. |
a0b9e27f | 14275 | ac_save_LDFLAGS="$LDFLAGS" |
90dd450c VZ |
14276 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
14277 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
14278 | # check for ICE first), but we must link in the order -lSM -lICE or | |
14279 | # we get undefined symbols. So assume we have SM if we have ICE. | |
14280 | # These have to be linked with before -lX11, unlike the other | |
14281 | # libraries we check for below, so use a different variable. | |
a0b9e27f MB |
14282 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
14283 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
8b389fab | 14284 | echo "configure:14285: checking for IceConnectionNumber in -lICE" >&5 |
a0b9e27f MB |
14285 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
14286 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14287 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14288 | else | |
14289 | ac_save_LIBS="$LIBS" | |
f09359cf | 14290 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 14291 | cat > conftest.$ac_ext <<EOF |
8b389fab | 14292 | #line 14293 "configure" |
9cfadba2 | 14293 | #include "confdefs.h" |
90dd450c VZ |
14294 | /* Override any gcc2 internal prototype to avoid an error. */ |
14295 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14296 | builtin and then its argument prototype would still apply. */ |
14297 | char IceConnectionNumber(); | |
14298 | ||
14299 | int main() { | |
14300 | IceConnectionNumber() | |
14301 | ; return 0; } | |
14302 | EOF | |
8b389fab | 14303 | if { (eval echo configure:14304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14304 | rm -rf conftest* |
14305 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14306 | else | |
14307 | echo "configure: failed program was:" >&5 | |
14308 | cat conftest.$ac_ext >&5 | |
14309 | rm -rf conftest* | |
14310 | eval "ac_cv_lib_$ac_lib_var=no" | |
14311 | fi | |
14312 | rm -f conftest* | |
14313 | LIBS="$ac_save_LIBS" | |
14314 | ||
14315 | fi | |
14316 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14317 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 14318 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
a0b9e27f MB |
14319 | else |
14320 | echo "$ac_t""no" 1>&6 | |
9cfadba2 | 14321 | fi |
10f2d63a | 14322 | |
a0b9e27f | 14323 | LDFLAGS="$ac_save_LDFLAGS" |
90dd450c VZ |
14324 | |
14325 | fi | |
14326 | ||
8284b0c5 | 14327 | |
90dd450c | 14328 | if test "$no_x" = "yes"; then |
a0b9e27f | 14329 | { echo "configure: error: X11 not found" 1>&2; exit 1; } |
90dd450c VZ |
14330 | fi |
14331 | ||
14332 | GUI_TK_LIBRARY="$X_LIBS" | |
14333 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
14334 | AFMINSTALL=afminstall | |
14335 | COMPILED_X_PROGRAM=0 | |
14336 | ||
21d1c967 | 14337 | if test "$wxUSE_NANOX" = "yes"; then |
a0b9e27f | 14338 | echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6 |
8b389fab | 14339 | echo "configure:14340: checking for MicroWindows/NanoX distribution" >&5 |
21d1c967 | 14340 | if test "x$MICROWIN" = x ; then |
a0b9e27f MB |
14341 | echo "$ac_t""not found" 1>&6 |
14342 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; } | |
90dd450c | 14343 | else |
a0b9e27f MB |
14344 | echo "$ac_t""$MICROWIN" 1>&6 |
14345 | cat >> confdefs.h <<\EOF | |
21d1c967 | 14346 | #define wxUSE_NANOX 1 |
a0b9e27f | 14347 | EOF |
21d1c967 | 14348 | |
90dd450c VZ |
14349 | fi |
14350 | fi | |
14351 | ||
14352 | xpm_link= | |
a0b9e27f | 14353 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
8b389fab | 14354 | echo "configure:14355: checking for Xpm library" >&5 |
a0b9e27f | 14355 | |
90dd450c | 14356 | ac_find_libraries= |
2b5f62a0 | 14357 | for ac_dir in $SEARCH_LIB /usr/lib; |
90dd450c VZ |
14358 | do |
14359 | for ac_extension in a so sl dylib; do | |
14360 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
14361 | ac_find_libraries=$ac_dir | |
14362 | break 2 | |
14363 | fi | |
14364 | done | |
14365 | done | |
14366 | ||
14367 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 14368 | |
90dd450c VZ |
14369 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
14370 | result=$? | |
14371 | if test $result = 0; then | |
14372 | ac_path_to_link="" | |
14373 | else | |
14374 | ac_path_to_link=" -L$ac_find_libraries" | |
21d1c967 | 14375 | fi |
90dd450c | 14376 | |
21d1c967 GD |
14377 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
14378 | xpm_link=" -lXpm" | |
a0b9e27f | 14379 | cat >> confdefs.h <<\EOF |
21d1c967 | 14380 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 14381 | EOF |
90dd450c | 14382 | |
a0b9e27f | 14383 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 14384 | else |
a0b9e27f | 14385 | cat > conftest.$ac_ext <<EOF |
8b389fab | 14386 | #line 14387 "configure" |
21d1c967 | 14387 | #include "confdefs.h" |
90dd450c | 14388 | |
21d1c967 | 14389 | #include <X11/xpm.h> |
a0b9e27f MB |
14390 | |
14391 | int main() { | |
6f72b082 | 14392 | |
21d1c967 GD |
14393 | int version; |
14394 | version = XpmLibraryVersion(); | |
a0b9e27f MB |
14395 | |
14396 | ; return 0; } | |
14397 | EOF | |
8b389fab | 14398 | if { (eval echo configure:14399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
14399 | rm -rf conftest* |
14400 | ||
21d1c967 | 14401 | xpm_link=" -lXpm" |
a0b9e27f | 14402 | cat >> confdefs.h <<\EOF |
21d1c967 | 14403 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 14404 | EOF |
90dd450c | 14405 | |
a0b9e27f | 14406 | echo "$ac_t""found in default search path" 1>&6 |
21d1c967 | 14407 | COMPILED_X_PROGRAM=0 |
a0b9e27f | 14408 | |
21d1c967 | 14409 | else |
a0b9e27f MB |
14410 | echo "configure: failed program was:" >&5 |
14411 | cat conftest.$ac_ext >&5 | |
14412 | rm -rf conftest* | |
14413 | ||
14414 | echo "$ac_t""no" 1>&6 | |
14415 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
14416 | ||
14417 | ||
6f72b082 | 14418 | fi |
a0b9e27f | 14419 | rm -f conftest* |
21d1c967 | 14420 | fi |
90dd450c | 14421 | |
f7f78039 | 14422 | echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6 |
8b389fab | 14423 | echo "configure:14424: checking for XShapeQueryExtension in -lXext" >&5 |
f7f78039 MB |
14424 | ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'` |
14425 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14426 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14427 | else | |
14428 | ac_save_LIBS="$LIBS" | |
14429 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
14430 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 14431 | #line 14432 "configure" |
f7f78039 MB |
14432 | #include "confdefs.h" |
14433 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14434 | /* We use char because int might match the return type of a gcc2 | |
14435 | builtin and then its argument prototype would still apply. */ | |
14436 | char XShapeQueryExtension(); | |
14437 | ||
14438 | int main() { | |
14439 | XShapeQueryExtension() | |
14440 | ; return 0; } | |
14441 | EOF | |
8b389fab | 14442 | if { (eval echo configure:14443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f7f78039 MB |
14443 | rm -rf conftest* |
14444 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14445 | else | |
14446 | echo "configure: failed program was:" >&5 | |
14447 | cat conftest.$ac_ext >&5 | |
14448 | rm -rf conftest* | |
14449 | eval "ac_cv_lib_$ac_lib_var=no" | |
14450 | fi | |
14451 | rm -f conftest* | |
14452 | LIBS="$ac_save_LIBS" | |
14453 | ||
14454 | fi | |
14455 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14456 | echo "$ac_t""yes" 1>&6 | |
14457 | ||
14458 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
14459 | wxHAVE_XEXT_LIB=1 | |
14460 | ||
14461 | else | |
14462 | echo "$ac_t""no" 1>&6 | |
14463 | fi | |
14464 | ||
14465 | ||
2b5f62a0 VZ |
14466 | if test "$wxUSE_UNICODE" = "yes"; then |
14467 | ||
14468 | succeeded=no | |
90dd450c | 14469 | |
2b5f62a0 VZ |
14470 | if test -z "$PKG_CONFIG"; then |
14471 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
14472 | set dummy pkg-config; ac_word=$2 | |
14473 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
8b389fab | 14474 | echo "configure:14475: checking for $ac_word" >&5 |
2b5f62a0 | 14475 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
a0b9e27f MB |
14476 | echo $ac_n "(cached) $ac_c" 1>&6 |
14477 | else | |
2b5f62a0 VZ |
14478 | case "$PKG_CONFIG" in |
14479 | /*) | |
14480 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
14481 | ;; | |
14482 | ?:/*) | |
14483 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
14484 | ;; | |
14485 | *) | |
14486 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
14487 | ac_dummy="$PATH" | |
14488 | for ac_dir in $ac_dummy; do | |
14489 | test -z "$ac_dir" && ac_dir=. | |
14490 | if test -f $ac_dir/$ac_word; then | |
14491 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
14492 | break | |
14493 | fi | |
14494 | done | |
14495 | IFS="$ac_save_ifs" | |
14496 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
14497 | ;; | |
14498 | esac | |
14499 | fi | |
14500 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
14501 | if test -n "$PKG_CONFIG"; then | |
14502 | echo "$ac_t""$PKG_CONFIG" 1>&6 | |
14503 | else | |
14504 | echo "$ac_t""no" 1>&6 | |
14505 | fi | |
14506 | ||
14507 | fi | |
14508 | ||
14509 | if test "$PKG_CONFIG" = "no" ; then | |
14510 | echo "*** The pkg-config script could not be found. Make sure it is" | |
14511 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
14512 | echo "*** to the full path to pkg-config." | |
14513 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
14514 | else | |
14515 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
14516 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
14517 | echo $ac_n "checking for pangox""... $ac_c" 1>&6 | |
8b389fab | 14518 | echo "configure:14519: checking for pangox" >&5 |
2b5f62a0 VZ |
14519 | |
14520 | if $PKG_CONFIG --exists "pangox" ; then | |
14521 | echo "$ac_t""yes" 1>&6 | |
14522 | succeeded=yes | |
14523 | ||
14524 | echo $ac_n "checking PANGOX_CFLAGS""... $ac_c" 1>&6 | |
8b389fab | 14525 | echo "configure:14526: checking PANGOX_CFLAGS" >&5 |
2b5f62a0 VZ |
14526 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` |
14527 | echo "$ac_t""$PANGOX_CFLAGS" 1>&6 | |
14528 | ||
14529 | echo $ac_n "checking PANGOX_LIBS""... $ac_c" 1>&6 | |
8b389fab | 14530 | echo "configure:14531: checking PANGOX_LIBS" >&5 |
2b5f62a0 VZ |
14531 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` |
14532 | echo "$ac_t""$PANGOX_LIBS" 1>&6 | |
14533 | else | |
14534 | PANGOX_CFLAGS="" | |
14535 | PANGOX_LIBS="" | |
14536 | ## If we have a custom action on failure, don't print errors, but | |
14537 | ## do set a variable so people can do so. | |
14538 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
14539 | ||
14540 | fi | |
14541 | ||
14542 | ||
14543 | ||
14544 | else | |
14545 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
14546 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
14547 | fi | |
14548 | fi | |
14549 | ||
14550 | if test $succeeded = yes; then | |
14551 | ||
14552 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" | |
14553 | LIBS="$LIBS $PANGOX_LIBS" | |
14554 | ||
14555 | else | |
14556 | ||
14557 | { echo "configure: error: pangox library not found, library cannot be compiled in Unicode mode" 1>&2; exit 1; } | |
14558 | ||
14559 | ||
14560 | fi | |
14561 | ||
14562 | ||
14563 | succeeded=no | |
14564 | ||
14565 | if test -z "$PKG_CONFIG"; then | |
14566 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
14567 | set dummy pkg-config; ac_word=$2 | |
14568 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
8b389fab | 14569 | echo "configure:14570: checking for $ac_word" >&5 |
2b5f62a0 VZ |
14570 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
14571 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14572 | else | |
14573 | case "$PKG_CONFIG" in | |
14574 | /*) | |
14575 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
14576 | ;; | |
14577 | ?:/*) | |
14578 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
14579 | ;; | |
14580 | *) | |
14581 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
14582 | ac_dummy="$PATH" | |
14583 | for ac_dir in $ac_dummy; do | |
14584 | test -z "$ac_dir" && ac_dir=. | |
14585 | if test -f $ac_dir/$ac_word; then | |
14586 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
14587 | break | |
14588 | fi | |
14589 | done | |
14590 | IFS="$ac_save_ifs" | |
14591 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
14592 | ;; | |
14593 | esac | |
14594 | fi | |
14595 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
14596 | if test -n "$PKG_CONFIG"; then | |
14597 | echo "$ac_t""$PKG_CONFIG" 1>&6 | |
14598 | else | |
14599 | echo "$ac_t""no" 1>&6 | |
14600 | fi | |
14601 | ||
14602 | fi | |
14603 | ||
14604 | if test "$PKG_CONFIG" = "no" ; then | |
14605 | echo "*** The pkg-config script could not be found. Make sure it is" | |
14606 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
14607 | echo "*** to the full path to pkg-config." | |
14608 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
14609 | else | |
14610 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
14611 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
14612 | echo $ac_n "checking for pangoft2""... $ac_c" 1>&6 | |
8b389fab | 14613 | echo "configure:14614: checking for pangoft2" >&5 |
2b5f62a0 VZ |
14614 | |
14615 | if $PKG_CONFIG --exists "pangoft2" ; then | |
14616 | echo "$ac_t""yes" 1>&6 | |
14617 | succeeded=yes | |
14618 | ||
14619 | echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6 | |
8b389fab | 14620 | echo "configure:14621: checking PANGOFT2_CFLAGS" >&5 |
2b5f62a0 VZ |
14621 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
14622 | echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6 | |
14623 | ||
14624 | echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6 | |
8b389fab | 14625 | echo "configure:14626: checking PANGOFT2_LIBS" >&5 |
2b5f62a0 VZ |
14626 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
14627 | echo "$ac_t""$PANGOFT2_LIBS" 1>&6 | |
14628 | else | |
14629 | PANGOFT2_CFLAGS="" | |
14630 | PANGOFT2_LIBS="" | |
14631 | ## If we have a custom action on failure, don't print errors, but | |
14632 | ## do set a variable so people can do so. | |
14633 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
14634 | ||
14635 | fi | |
14636 | ||
14637 | ||
14638 | ||
14639 | else | |
14640 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
14641 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
14642 | fi | |
14643 | fi | |
14644 | ||
14645 | if test $succeeded = yes; then | |
14646 | ||
14647 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
14648 | LIBS="$LIBS $PANGOFT2_LIBS" | |
14649 | ||
14650 | else | |
14651 | ||
14652 | echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2 | |
14653 | wxUSE_PRINTING_ARCHITECTURE="no" | |
14654 | ||
14655 | ||
14656 | fi | |
14657 | ||
14658 | ||
14659 | succeeded=no | |
14660 | ||
14661 | if test -z "$PKG_CONFIG"; then | |
14662 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
14663 | set dummy pkg-config; ac_word=$2 | |
14664 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
8b389fab | 14665 | echo "configure:14666: checking for $ac_word" >&5 |
2b5f62a0 VZ |
14666 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
14667 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14668 | else | |
14669 | case "$PKG_CONFIG" in | |
14670 | /*) | |
14671 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
14672 | ;; | |
14673 | ?:/*) | |
14674 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
14675 | ;; | |
14676 | *) | |
14677 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
14678 | ac_dummy="$PATH" | |
14679 | for ac_dir in $ac_dummy; do | |
14680 | test -z "$ac_dir" && ac_dir=. | |
14681 | if test -f $ac_dir/$ac_word; then | |
14682 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
14683 | break | |
14684 | fi | |
14685 | done | |
14686 | IFS="$ac_save_ifs" | |
14687 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
14688 | ;; | |
14689 | esac | |
14690 | fi | |
14691 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
14692 | if test -n "$PKG_CONFIG"; then | |
14693 | echo "$ac_t""$PKG_CONFIG" 1>&6 | |
14694 | else | |
14695 | echo "$ac_t""no" 1>&6 | |
14696 | fi | |
14697 | ||
14698 | fi | |
14699 | ||
14700 | if test "$PKG_CONFIG" = "no" ; then | |
14701 | echo "*** The pkg-config script could not be found. Make sure it is" | |
14702 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
14703 | echo "*** to the full path to pkg-config." | |
14704 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
14705 | else | |
14706 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
14707 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
14708 | echo $ac_n "checking for pangoxft""... $ac_c" 1>&6 | |
8b389fab | 14709 | echo "configure:14710: checking for pangoxft" >&5 |
2b5f62a0 VZ |
14710 | |
14711 | if $PKG_CONFIG --exists "pangoxft" ; then | |
14712 | echo "$ac_t""yes" 1>&6 | |
14713 | succeeded=yes | |
14714 | ||
14715 | echo $ac_n "checking PANGOXFT_CFLAGS""... $ac_c" 1>&6 | |
8b389fab | 14716 | echo "configure:14717: checking PANGOXFT_CFLAGS" >&5 |
2b5f62a0 VZ |
14717 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` |
14718 | echo "$ac_t""$PANGOXFT_CFLAGS" 1>&6 | |
14719 | ||
14720 | echo $ac_n "checking PANGOXFT_LIBS""... $ac_c" 1>&6 | |
8b389fab | 14721 | echo "configure:14722: checking PANGOXFT_LIBS" >&5 |
2b5f62a0 VZ |
14722 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` |
14723 | echo "$ac_t""$PANGOXFT_LIBS" 1>&6 | |
14724 | else | |
14725 | PANGOXFT_CFLAGS="" | |
14726 | PANGOXFT_LIBS="" | |
14727 | ## If we have a custom action on failure, don't print errors, but | |
14728 | ## do set a variable so people can do so. | |
14729 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
14730 | ||
14731 | fi | |
14732 | ||
14733 | ||
14734 | ||
14735 | else | |
14736 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
14737 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
14738 | fi | |
14739 | fi | |
14740 | ||
14741 | if test $succeeded = yes; then | |
14742 | ||
14743 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" | |
14744 | LIBS="$LIBS $PANGOXFT_LIBS" | |
14745 | ||
14746 | else | |
14747 | ||
14748 | echo "configure: warning: pangoxft library not found, library will be compiled without anti-aliasing support" 1>&2 | |
14749 | ||
14750 | ||
14751 | fi | |
14752 | ||
14753 | fi | |
14754 | ||
14755 | wxUSE_UNIVERSAL="yes" | |
14756 | ||
14757 | if test "$wxUSE_NANOX" = "yes"; then | |
14758 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
14759 | 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" | |
14760 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
14761 | else | |
14762 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link" | |
14763 | fi | |
14764 | ||
14765 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" | |
14766 | TOOLKIT=X11 | |
14767 | GUIDIST=X11_DIST | |
14768 | fi | |
14769 | ||
21d1c967 GD |
14770 | if test "$wxUSE_MOTIF" = 1; then |
14771 | if test "$no_x" = yes; then | |
14772 | # Not all programs may use this symbol, but it does not hurt to define it. | |
a0b9e27f | 14773 | cat >> confdefs.h <<\EOF |
21d1c967 | 14774 | #define X_DISPLAY_MISSING 1 |
a0b9e27f | 14775 | EOF |
21d1c967 GD |
14776 | |
14777 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
14778 | else | |
14779 | if test -n "$x_includes"; then | |
14780 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
90dd450c VZ |
14781 | fi |
14782 | ||
21d1c967 GD |
14783 | # It would also be nice to do this for all -L options, not just this one. |
14784 | if test -n "$x_libraries"; then | |
14785 | X_LIBS="$X_LIBS -L$x_libraries" | |
14786 | # For Solaris; some versions of Sun CC require a space after -R and | |
14787 | # others require no space. Words are not sufficient . . . . | |
a0b9e27f | 14788 | case "`(uname -sr) 2>/dev/null`" in |
21d1c967 | 14789 | "SunOS 5"*) |
a0b9e27f | 14790 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
8b389fab | 14791 | echo "configure:14792: checking whether -R must be followed by a space" >&5 |
a0b9e27f MB |
14792 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
14793 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 14794 | #line 14795 "configure" |
21d1c967 GD |
14795 | #include "confdefs.h" |
14796 | ||
a0b9e27f | 14797 | int main() { |
21d1c967 | 14798 | |
a0b9e27f MB |
14799 | ; return 0; } |
14800 | EOF | |
8b389fab | 14801 | if { (eval echo configure:14802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 14802 | rm -rf conftest* |
21d1c967 | 14803 | ac_R_nospace=yes |
698dcdb6 | 14804 | else |
a0b9e27f MB |
14805 | echo "configure: failed program was:" >&5 |
14806 | cat conftest.$ac_ext >&5 | |
14807 | rm -rf conftest* | |
14808 | ac_R_nospace=no | |
10f2d63a | 14809 | fi |
a0b9e27f | 14810 | rm -f conftest* |
21d1c967 | 14811 | if test $ac_R_nospace = yes; then |
a0b9e27f | 14812 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
14813 | X_LIBS="$X_LIBS -R$x_libraries" |
14814 | else | |
14815 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
a0b9e27f | 14816 | cat > conftest.$ac_ext <<EOF |
8b389fab | 14817 | #line 14818 "configure" |
21d1c967 | 14818 | #include "confdefs.h" |
10f2d63a | 14819 | |
a0b9e27f | 14820 | int main() { |
f0c87536 | 14821 | |
a0b9e27f MB |
14822 | ; return 0; } |
14823 | EOF | |
8b389fab | 14824 | if { (eval echo configure:14825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 14825 | rm -rf conftest* |
21d1c967 GD |
14826 | ac_R_space=yes |
14827 | else | |
a0b9e27f MB |
14828 | echo "configure: failed program was:" >&5 |
14829 | cat conftest.$ac_ext >&5 | |
14830 | rm -rf conftest* | |
14831 | ac_R_space=no | |
21d1c967 | 14832 | fi |
a0b9e27f | 14833 | rm -f conftest* |
21d1c967 | 14834 | if test $ac_R_space = yes; then |
a0b9e27f | 14835 | echo "$ac_t""yes" 1>&6 |
21d1c967 GD |
14836 | X_LIBS="$X_LIBS -R $x_libraries" |
14837 | else | |
a0b9e27f | 14838 | echo "$ac_t""neither works" 1>&6 |
21d1c967 GD |
14839 | fi |
14840 | fi | |
a0b9e27f | 14841 | LIBS="$ac_xsave_LIBS" |
21d1c967 GD |
14842 | esac |
14843 | fi | |
90dd450c | 14844 | |
21d1c967 GD |
14845 | # Check for system-dependent libraries X programs must link with. |
14846 | # Do this before checking for the system-independent R6 libraries | |
14847 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
14848 | ||
14849 | if test "$ISC" = yes; then | |
14850 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
14851 | else | |
a0b9e27f MB |
14852 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
14853 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
21d1c967 | 14854 | # the Alpha needs dnet_stub (dnet does not exist). |
a0b9e27f | 14855 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
8b389fab | 14856 | echo "configure:14857: checking for dnet_ntoa in -ldnet" >&5 |
a0b9e27f MB |
14857 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
14858 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14859 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 14860 | else |
a0b9e27f | 14861 | ac_save_LIBS="$LIBS" |
247f5006 | 14862 | LIBS="-ldnet $LIBS" |
a0b9e27f | 14863 | cat > conftest.$ac_ext <<EOF |
8b389fab | 14864 | #line 14865 "configure" |
247f5006 | 14865 | #include "confdefs.h" |
247f5006 | 14866 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 | 14867 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
14868 | builtin and then its argument prototype would still apply. */ |
14869 | char dnet_ntoa(); | |
14870 | ||
14871 | int main() { | |
14872 | dnet_ntoa() | |
14873 | ; return 0; } | |
14874 | EOF | |
8b389fab | 14875 | if { (eval echo configure:14876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14876 | rm -rf conftest* |
14877 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14878 | else | |
14879 | echo "configure: failed program was:" >&5 | |
14880 | cat conftest.$ac_ext >&5 | |
14881 | rm -rf conftest* | |
14882 | eval "ac_cv_lib_$ac_lib_var=no" | |
14883 | fi | |
14884 | rm -f conftest* | |
14885 | LIBS="$ac_save_LIBS" | |
14886 | ||
14887 | fi | |
14888 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14889 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14890 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
a0b9e27f MB |
14891 | else |
14892 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 | 14893 | fi |
0fb0dd83 | 14894 | |
21d1c967 | 14895 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
a0b9e27f | 14896 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
8b389fab | 14897 | echo "configure:14898: checking for dnet_ntoa in -ldnet_stub" >&5 |
a0b9e27f MB |
14898 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
14899 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14900 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 14901 | else |
a0b9e27f | 14902 | ac_save_LIBS="$LIBS" |
21d1c967 | 14903 | LIBS="-ldnet_stub $LIBS" |
a0b9e27f | 14904 | cat > conftest.$ac_ext <<EOF |
8b389fab | 14905 | #line 14906 "configure" |
21d1c967 GD |
14906 | #include "confdefs.h" |
14907 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14908 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14909 | builtin and then its argument prototype would still apply. */ |
14910 | char dnet_ntoa(); | |
14911 | ||
14912 | int main() { | |
14913 | dnet_ntoa() | |
14914 | ; return 0; } | |
14915 | EOF | |
8b389fab | 14916 | if { (eval echo configure:14917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14917 | rm -rf conftest* |
14918 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14919 | else | |
14920 | echo "configure: failed program was:" >&5 | |
14921 | cat conftest.$ac_ext >&5 | |
14922 | rm -rf conftest* | |
14923 | eval "ac_cv_lib_$ac_lib_var=no" | |
14924 | fi | |
14925 | rm -f conftest* | |
14926 | LIBS="$ac_save_LIBS" | |
14927 | ||
14928 | fi | |
14929 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14930 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14931 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
a0b9e27f MB |
14932 | else |
14933 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
14934 | fi |
14935 | ||
21d1c967 | 14936 | fi |
90dd450c | 14937 | |
21d1c967 GD |
14938 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
14939 | # to get the SysV transport functions. | |
a0b9e27f | 14940 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
21d1c967 GD |
14941 | # needs -lnsl. |
14942 | # The nsl library prevents programs from opening the X display | |
a0b9e27f MB |
14943 | # on Irix 5.2, according to dickey@clark.net. |
14944 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
8b389fab | 14945 | echo "configure:14946: checking for gethostbyname" >&5 |
a0b9e27f MB |
14946 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
14947 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14948 | else | |
14949 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 14950 | #line 14951 "configure" |
21d1c967 GD |
14951 | #include "confdefs.h" |
14952 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 14953 | which can conflict with char gethostbyname(); below. */ |
21d1c967 GD |
14954 | #include <assert.h> |
14955 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14956 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14957 | builtin and then its argument prototype would still apply. */ |
14958 | char gethostbyname(); | |
14959 | ||
14960 | int main() { | |
14961 | ||
21d1c967 GD |
14962 | /* The GNU C library defines this for functions which it implements |
14963 | to always fail with ENOSYS. Some functions are actually named | |
14964 | something starting with __ and the normal name is an alias. */ | |
14965 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
14966 | choke me | |
14967 | #else | |
a0b9e27f | 14968 | gethostbyname(); |
21d1c967 | 14969 | #endif |
90dd450c | 14970 | |
a0b9e27f MB |
14971 | ; return 0; } |
14972 | EOF | |
8b389fab | 14973 | if { (eval echo configure:14974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14974 | rm -rf conftest* |
14975 | eval "ac_cv_func_gethostbyname=yes" | |
14976 | else | |
14977 | echo "configure: failed program was:" >&5 | |
14978 | cat conftest.$ac_ext >&5 | |
14979 | rm -rf conftest* | |
14980 | eval "ac_cv_func_gethostbyname=no" | |
14981 | fi | |
14982 | rm -f conftest* | |
14983 | fi | |
14984 | ||
14985 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
14986 | echo "$ac_t""yes" 1>&6 | |
14987 | : | |
14988 | else | |
14989 | echo "$ac_t""no" 1>&6 | |
14990 | fi | |
90dd450c | 14991 | |
21d1c967 | 14992 | if test $ac_cv_func_gethostbyname = no; then |
a0b9e27f | 14993 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
8b389fab | 14994 | echo "configure:14995: checking for gethostbyname in -lnsl" >&5 |
a0b9e27f MB |
14995 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
14996 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14997 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 14998 | else |
a0b9e27f | 14999 | ac_save_LIBS="$LIBS" |
21d1c967 | 15000 | LIBS="-lnsl $LIBS" |
a0b9e27f | 15001 | cat > conftest.$ac_ext <<EOF |
8b389fab | 15002 | #line 15003 "configure" |
21d1c967 GD |
15003 | #include "confdefs.h" |
15004 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15005 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15006 | builtin and then its argument prototype would still apply. */ |
15007 | char gethostbyname(); | |
5c6fa7d2 | 15008 | |
a0b9e27f MB |
15009 | int main() { |
15010 | gethostbyname() | |
15011 | ; return 0; } | |
15012 | EOF | |
8b389fab | 15013 | if { (eval echo configure:15014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15014 | rm -rf conftest* |
15015 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8284b0c5 | 15016 | else |
a0b9e27f MB |
15017 | echo "configure: failed program was:" >&5 |
15018 | cat conftest.$ac_ext >&5 | |
15019 | rm -rf conftest* | |
15020 | eval "ac_cv_lib_$ac_lib_var=no" | |
15021 | fi | |
15022 | rm -f conftest* | |
15023 | LIBS="$ac_save_LIBS" | |
247f5006 | 15024 | |
a0b9e27f MB |
15025 | fi |
15026 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15027 | echo "$ac_t""yes" 1>&6 | |
15028 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
15029 | else | |
15030 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 15031 | fi |
90dd450c | 15032 | |
90dd450c VZ |
15033 | fi |
15034 | ||
21d1c967 GD |
15035 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
15036 | # socket/setsockopt and other routines are undefined under SCO ODT | |
15037 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
a0b9e27f MB |
15038 | # on later versions), says simon@lia.di.epfl.ch: it contains |
15039 | # gethostby* variants that don't use the nameserver (or something). | |
15040 | # -lsocket must be given before -lnsl if both are needed. | |
15041 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
15042 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
8b389fab | 15043 | echo "configure:15044: checking for connect" >&5 |
a0b9e27f MB |
15044 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
15045 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15046 | else | |
15047 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 15048 | #line 15049 "configure" |
21d1c967 GD |
15049 | #include "confdefs.h" |
15050 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 15051 | which can conflict with char connect(); below. */ |
21d1c967 GD |
15052 | #include <assert.h> |
15053 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15054 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15055 | builtin and then its argument prototype would still apply. */ |
15056 | char connect(); | |
15057 | ||
15058 | int main() { | |
15059 | ||
21d1c967 GD |
15060 | /* The GNU C library defines this for functions which it implements |
15061 | to always fail with ENOSYS. Some functions are actually named | |
15062 | something starting with __ and the normal name is an alias. */ | |
15063 | #if defined (__stub_connect) || defined (__stub___connect) | |
15064 | choke me | |
15065 | #else | |
a0b9e27f | 15066 | connect(); |
21d1c967 | 15067 | #endif |
90dd450c | 15068 | |
a0b9e27f MB |
15069 | ; return 0; } |
15070 | EOF | |
8b389fab | 15071 | if { (eval echo configure:15072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15072 | rm -rf conftest* |
15073 | eval "ac_cv_func_connect=yes" | |
15074 | else | |
15075 | echo "configure: failed program was:" >&5 | |
15076 | cat conftest.$ac_ext >&5 | |
15077 | rm -rf conftest* | |
15078 | eval "ac_cv_func_connect=no" | |
15079 | fi | |
15080 | rm -f conftest* | |
15081 | fi | |
15082 | ||
15083 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
15084 | echo "$ac_t""yes" 1>&6 | |
15085 | : | |
15086 | else | |
15087 | echo "$ac_t""no" 1>&6 | |
15088 | fi | |
1f8ae82f | 15089 | |
21d1c967 | 15090 | if test $ac_cv_func_connect = no; then |
a0b9e27f | 15091 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
8b389fab | 15092 | echo "configure:15093: checking for connect in -lsocket" >&5 |
a0b9e27f MB |
15093 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
15094 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15095 | echo $ac_n "(cached) $ac_c" 1>&6 | |
0fbb762e | 15096 | else |
a0b9e27f | 15097 | ac_save_LIBS="$LIBS" |
21d1c967 | 15098 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 15099 | cat > conftest.$ac_ext <<EOF |
8b389fab | 15100 | #line 15101 "configure" |
0fbb762e | 15101 | #include "confdefs.h" |
21d1c967 GD |
15102 | /* Override any gcc2 internal prototype to avoid an error. */ |
15103 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15104 | builtin and then its argument prototype would still apply. */ |
15105 | char connect(); | |
15106 | ||
15107 | int main() { | |
15108 | connect() | |
15109 | ; return 0; } | |
15110 | EOF | |
8b389fab | 15111 | if { (eval echo configure:15112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15112 | rm -rf conftest* |
15113 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15114 | else | |
15115 | echo "configure: failed program was:" >&5 | |
15116 | cat conftest.$ac_ext >&5 | |
15117 | rm -rf conftest* | |
15118 | eval "ac_cv_lib_$ac_lib_var=no" | |
15119 | fi | |
15120 | rm -f conftest* | |
15121 | LIBS="$ac_save_LIBS" | |
15122 | ||
15123 | fi | |
15124 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15125 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 15126 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
a0b9e27f MB |
15127 | else |
15128 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 15129 | fi |
90dd450c | 15130 | |
21d1c967 | 15131 | fi |
90dd450c | 15132 | |
a0b9e27f MB |
15133 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
15134 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
8b389fab | 15135 | echo "configure:15136: checking for remove" >&5 |
a0b9e27f MB |
15136 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
15137 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 15138 | else |
a0b9e27f | 15139 | cat > conftest.$ac_ext <<EOF |
8b389fab | 15140 | #line 15141 "configure" |
21d1c967 GD |
15141 | #include "confdefs.h" |
15142 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 15143 | which can conflict with char remove(); below. */ |
21d1c967 GD |
15144 | #include <assert.h> |
15145 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15146 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15147 | builtin and then its argument prototype would still apply. */ |
15148 | char remove(); | |
15149 | ||
15150 | int main() { | |
15151 | ||
21d1c967 GD |
15152 | /* The GNU C library defines this for functions which it implements |
15153 | to always fail with ENOSYS. Some functions are actually named | |
15154 | something starting with __ and the normal name is an alias. */ | |
15155 | #if defined (__stub_remove) || defined (__stub___remove) | |
15156 | choke me | |
15157 | #else | |
a0b9e27f | 15158 | remove(); |
21d1c967 | 15159 | #endif |
90dd450c | 15160 | |
a0b9e27f MB |
15161 | ; return 0; } |
15162 | EOF | |
8b389fab | 15163 | if { (eval echo configure:15164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15164 | rm -rf conftest* |
15165 | eval "ac_cv_func_remove=yes" | |
15166 | else | |
15167 | echo "configure: failed program was:" >&5 | |
15168 | cat conftest.$ac_ext >&5 | |
15169 | rm -rf conftest* | |
15170 | eval "ac_cv_func_remove=no" | |
15171 | fi | |
15172 | rm -f conftest* | |
15173 | fi | |
15174 | ||
15175 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
15176 | echo "$ac_t""yes" 1>&6 | |
15177 | : | |
15178 | else | |
15179 | echo "$ac_t""no" 1>&6 | |
15180 | fi | |
90dd450c | 15181 | |
21d1c967 | 15182 | if test $ac_cv_func_remove = no; then |
a0b9e27f | 15183 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
8b389fab | 15184 | echo "configure:15185: checking for remove in -lposix" >&5 |
a0b9e27f MB |
15185 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
15186 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15187 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 15188 | else |
a0b9e27f | 15189 | ac_save_LIBS="$LIBS" |
21d1c967 | 15190 | LIBS="-lposix $LIBS" |
a0b9e27f | 15191 | cat > conftest.$ac_ext <<EOF |
8b389fab | 15192 | #line 15193 "configure" |
21d1c967 GD |
15193 | #include "confdefs.h" |
15194 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15195 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15196 | builtin and then its argument prototype would still apply. */ |
15197 | char remove(); | |
15198 | ||
15199 | int main() { | |
15200 | remove() | |
15201 | ; return 0; } | |
15202 | EOF | |
8b389fab | 15203 | if { (eval echo configure:15204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15204 | rm -rf conftest* |
15205 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15206 | else | |
15207 | echo "configure: failed program was:" >&5 | |
15208 | cat conftest.$ac_ext >&5 | |
15209 | rm -rf conftest* | |
15210 | eval "ac_cv_lib_$ac_lib_var=no" | |
15211 | fi | |
15212 | rm -f conftest* | |
15213 | LIBS="$ac_save_LIBS" | |
15214 | ||
15215 | fi | |
15216 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15217 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 15218 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
a0b9e27f MB |
15219 | else |
15220 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 15221 | fi |
19bc6aad | 15222 | |
90dd450c | 15223 | fi |
19bc6aad | 15224 | |
21d1c967 | 15225 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
a0b9e27f | 15226 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
8b389fab | 15227 | echo "configure:15228: checking for shmat" >&5 |
a0b9e27f MB |
15228 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
15229 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 15230 | else |
a0b9e27f | 15231 | cat > conftest.$ac_ext <<EOF |
8b389fab | 15232 | #line 15233 "configure" |
21d1c967 GD |
15233 | #include "confdefs.h" |
15234 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 15235 | which can conflict with char shmat(); below. */ |
21d1c967 GD |
15236 | #include <assert.h> |
15237 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15238 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15239 | builtin and then its argument prototype would still apply. */ |
15240 | char shmat(); | |
15241 | ||
15242 | int main() { | |
15243 | ||
21d1c967 GD |
15244 | /* The GNU C library defines this for functions which it implements |
15245 | to always fail with ENOSYS. Some functions are actually named | |
15246 | something starting with __ and the normal name is an alias. */ | |
15247 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
15248 | choke me | |
15249 | #else | |
a0b9e27f | 15250 | shmat(); |
21d1c967 | 15251 | #endif |
90dd450c | 15252 | |
a0b9e27f MB |
15253 | ; return 0; } |
15254 | EOF | |
8b389fab | 15255 | if { (eval echo configure:15256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15256 | rm -rf conftest* |
15257 | eval "ac_cv_func_shmat=yes" | |
15258 | else | |
15259 | echo "configure: failed program was:" >&5 | |
15260 | cat conftest.$ac_ext >&5 | |
15261 | rm -rf conftest* | |
15262 | eval "ac_cv_func_shmat=no" | |
15263 | fi | |
15264 | rm -f conftest* | |
15265 | fi | |
15266 | ||
15267 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
15268 | echo "$ac_t""yes" 1>&6 | |
15269 | : | |
15270 | else | |
15271 | echo "$ac_t""no" 1>&6 | |
15272 | fi | |
19bc6aad | 15273 | |
21d1c967 | 15274 | if test $ac_cv_func_shmat = no; then |
a0b9e27f | 15275 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
8b389fab | 15276 | echo "configure:15277: checking for shmat in -lipc" >&5 |
a0b9e27f MB |
15277 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
15278 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15279 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5c6fa7d2 | 15280 | else |
a0b9e27f | 15281 | ac_save_LIBS="$LIBS" |
5c6fa7d2 | 15282 | LIBS="-lipc $LIBS" |
a0b9e27f | 15283 | cat > conftest.$ac_ext <<EOF |
8b389fab | 15284 | #line 15285 "configure" |
5c6fa7d2 | 15285 | #include "confdefs.h" |
5c6fa7d2 | 15286 | /* Override any gcc2 internal prototype to avoid an error. */ |
5c6fa7d2 | 15287 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
15288 | builtin and then its argument prototype would still apply. */ |
15289 | char shmat(); | |
15290 | ||
15291 | int main() { | |
15292 | shmat() | |
15293 | ; return 0; } | |
15294 | EOF | |
8b389fab | 15295 | if { (eval echo configure:15296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15296 | rm -rf conftest* |
15297 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15298 | else | |
15299 | echo "configure: failed program was:" >&5 | |
15300 | cat conftest.$ac_ext >&5 | |
15301 | rm -rf conftest* | |
15302 | eval "ac_cv_lib_$ac_lib_var=no" | |
15303 | fi | |
15304 | rm -f conftest* | |
15305 | LIBS="$ac_save_LIBS" | |
15306 | ||
15307 | fi | |
15308 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15309 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 15310 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
a0b9e27f MB |
15311 | else |
15312 | echo "$ac_t""no" 1>&6 | |
9f8148b1 | 15313 | fi |
90dd450c | 15314 | |
90dd450c | 15315 | fi |
21d1c967 | 15316 | fi |
10f2d63a | 15317 | |
21d1c967 | 15318 | # Check for libraries that X11R6 Xt/Xaw programs need. |
a0b9e27f | 15319 | ac_save_LDFLAGS="$LDFLAGS" |
21d1c967 GD |
15320 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
15321 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
15322 | # check for ICE first), but we must link in the order -lSM -lICE or | |
15323 | # we get undefined symbols. So assume we have SM if we have ICE. | |
15324 | # These have to be linked with before -lX11, unlike the other | |
15325 | # libraries we check for below, so use a different variable. | |
a0b9e27f MB |
15326 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
15327 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
8b389fab | 15328 | echo "configure:15329: checking for IceConnectionNumber in -lICE" >&5 |
a0b9e27f MB |
15329 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
15330 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15331 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15332 | else | |
15333 | ac_save_LIBS="$LIBS" | |
f09359cf | 15334 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 15335 | cat > conftest.$ac_ext <<EOF |
8b389fab | 15336 | #line 15337 "configure" |
29fd3c0c | 15337 | #include "confdefs.h" |
21d1c967 GD |
15338 | /* Override any gcc2 internal prototype to avoid an error. */ |
15339 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15340 | builtin and then its argument prototype would still apply. */ |
15341 | char IceConnectionNumber(); | |
15342 | ||
15343 | int main() { | |
15344 | IceConnectionNumber() | |
15345 | ; return 0; } | |
15346 | EOF | |
8b389fab | 15347 | if { (eval echo configure:15348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15348 | rm -rf conftest* |
15349 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15350 | else | |
15351 | echo "configure: failed program was:" >&5 | |
15352 | cat conftest.$ac_ext >&5 | |
15353 | rm -rf conftest* | |
15354 | eval "ac_cv_lib_$ac_lib_var=no" | |
15355 | fi | |
15356 | rm -f conftest* | |
15357 | LIBS="$ac_save_LIBS" | |
15358 | ||
15359 | fi | |
15360 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15361 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 15362 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
a0b9e27f MB |
15363 | else |
15364 | echo "$ac_t""no" 1>&6 | |
29fd3c0c | 15365 | fi |
21d1c967 | 15366 | |
a0b9e27f | 15367 | LDFLAGS="$ac_save_LDFLAGS" |
29fd3c0c | 15368 | |
10f2d63a VZ |
15369 | fi |
15370 | ||
8284b0c5 | 15371 | |
21d1c967 | 15372 | if test "$no_x" = "yes"; then |
a0b9e27f | 15373 | { echo "configure: error: X11 not found" 1>&2; exit 1; } |
21d1c967 GD |
15374 | fi |
15375 | ||
2b5f62a0 VZ |
15376 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'` |
15377 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
21d1c967 GD |
15378 | AFMINSTALL=afminstall |
15379 | COMPILED_X_PROGRAM=0 | |
15380 | ||
a0b9e27f | 15381 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 |
8b389fab | 15382 | echo "configure:15383: checking for Motif/Lesstif headers" >&5 |
a0b9e27f | 15383 | |
21d1c967 | 15384 | ac_find_includes= |
2b5f62a0 | 15385 | for ac_dir in $SEARCH_INCLUDE /usr/include; |
21d1c967 GD |
15386 | do |
15387 | if test -f "$ac_dir/Xm/Xm.h"; then | |
15388 | ac_find_includes=$ac_dir | |
15389 | break | |
15390 | fi | |
15391 | done | |
15392 | ||
15393 | if test "$ac_find_includes" != "" ; then | |
a0b9e27f MB |
15394 | echo "$ac_t""found in $ac_find_includes" 1>&6 |
15395 | ||
2b5f62a0 | 15396 | if test "x$ac_find_includes" = "x/usr/include"; then |
dd0e4a90 VZ |
15397 | ac_path_to_include="" |
15398 | else | |
2b5f62a0 VZ |
15399 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null |
15400 | result=$? | |
15401 | if test $result = 0; then | |
15402 | ac_path_to_include="" | |
15403 | else | |
15404 | ac_path_to_include=" -I$ac_find_includes" | |
15405 | fi | |
dd0e4a90 VZ |
15406 | fi |
15407 | ||
15408 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
21d1c967 | 15409 | else |
a0b9e27f | 15410 | cat > conftest.$ac_ext <<EOF |
8b389fab | 15411 | #line 15412 "configure" |
10f2d63a | 15412 | #include "confdefs.h" |
21d1c967 GD |
15413 | |
15414 | #include <Xm/Xm.h> | |
a0b9e27f MB |
15415 | |
15416 | int main() { | |
21d1c967 GD |
15417 | |
15418 | int version; | |
15419 | version = xmUseVersion; | |
a0b9e27f MB |
15420 | |
15421 | ; return 0; } | |
15422 | EOF | |
8b389fab | 15423 | if { (eval echo configure:15424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
15424 | rm -rf conftest* |
15425 | ||
15426 | echo "$ac_t""found in default search path" 1>&6 | |
21d1c967 | 15427 | COMPILED_X_PROGRAM=1 |
a0b9e27f | 15428 | |
10f2d63a | 15429 | else |
a0b9e27f MB |
15430 | echo "configure: failed program was:" >&5 |
15431 | cat conftest.$ac_ext >&5 | |
15432 | rm -rf conftest* | |
15433 | ||
15434 | echo "$ac_t""no" 1>&6 | |
15435 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
15436 | ||
15437 | ||
10f2d63a | 15438 | fi |
a0b9e27f | 15439 | rm -f conftest* |
21d1c967 | 15440 | fi |
10f2d63a | 15441 | |
21d1c967 | 15442 | if test "$COMPILED_X_PROGRAM" = 0; then |
a0b9e27f | 15443 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 |
8b389fab | 15444 | echo "configure:15445: checking for Motif/Lesstif library" >&5 |
a0b9e27f | 15445 | |
21d1c967 | 15446 | ac_find_libraries= |
2b5f62a0 | 15447 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
15448 | do |
15449 | for ac_extension in a so sl dylib; do | |
15450 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
15451 | ac_find_libraries=$ac_dir | |
15452 | break 2 | |
15453 | fi | |
15454 | done | |
15455 | done | |
15456 | ||
15457 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 15458 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 15459 | |
a0b9e27f | 15460 | |
21d1c967 GD |
15461 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
15462 | result=$? | |
15463 | if test $result = 0; then | |
15464 | ac_path_to_link="" | |
15465 | else | |
15466 | ac_path_to_link=" -L$ac_find_libraries" | |
15467 | fi | |
15468 | ||
21d1c967 | 15469 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
21d1c967 | 15470 | else |
dd0e4a90 VZ |
15471 | save_CFLAGS=$CFLAGS |
15472 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
15473 | ||
a0b9e27f | 15474 | cat > conftest.$ac_ext <<EOF |
8b389fab | 15475 | #line 15476 "configure" |
d836ee96 | 15476 | #include "confdefs.h" |
21d1c967 GD |
15477 | |
15478 | #include <Xm/Xm.h> | |
a0b9e27f MB |
15479 | |
15480 | int main() { | |
21d1c967 GD |
15481 | |
15482 | int version; | |
15483 | version = xmUseVersion; | |
a0b9e27f MB |
15484 | |
15485 | ; return 0; } | |
15486 | EOF | |
8b389fab | 15487 | if { (eval echo configure:15488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
15488 | rm -rf conftest* |
15489 | ||
15490 | echo "$ac_t""found in default search path" 1>&6 | |
21d1c967 | 15491 | COMPILED_X_PROGRAM=1 |
a0b9e27f | 15492 | |
d836ee96 | 15493 | else |
a0b9e27f MB |
15494 | echo "configure: failed program was:" >&5 |
15495 | cat conftest.$ac_ext >&5 | |
15496 | rm -rf conftest* | |
15497 | ||
15498 | echo "$ac_t""no" 1>&6 | |
15499 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
15500 | ||
15501 | ||
d836ee96 | 15502 | fi |
a0b9e27f | 15503 | rm -f conftest* |
dd0e4a90 VZ |
15504 | |
15505 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
15506 | fi |
15507 | fi | |
15508 | ||
15509 | xpm_link= | |
a0b9e27f | 15510 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
8b389fab | 15511 | echo "configure:15512: checking for Xpm library" >&5 |
a0b9e27f | 15512 | |
21d1c967 | 15513 | ac_find_libraries= |
2b5f62a0 | 15514 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
15515 | do |
15516 | for ac_extension in a so sl dylib; do | |
15517 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
15518 | ac_find_libraries=$ac_dir | |
15519 | break 2 | |
15520 | fi | |
15521 | done | |
15522 | done | |
15523 | ||
15524 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 15525 | |
21d1c967 GD |
15526 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
15527 | result=$? | |
15528 | if test $result = 0; then | |
15529 | ac_path_to_link="" | |
15530 | else | |
15531 | ac_path_to_link=" -L$ac_find_libraries" | |
15532 | fi | |
15533 | ||
15534 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
dd0e4a90 | 15535 | |
21d1c967 | 15536 | xpm_link=" -lXpm" |
a0b9e27f | 15537 | cat >> confdefs.h <<\EOF |
21d1c967 | 15538 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 15539 | EOF |
90dd450c | 15540 | |
a0b9e27f | 15541 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 15542 | else |
dd0e4a90 VZ |
15543 | save_CFLAGS=$CFLAGS |
15544 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
15545 | ||
a0b9e27f | 15546 | cat > conftest.$ac_ext <<EOF |
8b389fab | 15547 | #line 15548 "configure" |
d836ee96 | 15548 | #include "confdefs.h" |
21d1c967 GD |
15549 | |
15550 | #include <X11/xpm.h> | |
a0b9e27f MB |
15551 | |
15552 | int main() { | |
21d1c967 GD |
15553 | |
15554 | int version; | |
15555 | version = XpmLibraryVersion(); | |
a0b9e27f MB |
15556 | |
15557 | ; return 0; } | |
15558 | EOF | |
8b389fab | 15559 | if { (eval echo configure:15560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
15560 | rm -rf conftest* |
15561 | ||
21d1c967 | 15562 | xpm_link=" -lXpm" |
a0b9e27f | 15563 | cat >> confdefs.h <<\EOF |
21d1c967 | 15564 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 15565 | EOF |
21d1c967 | 15566 | |
a0b9e27f | 15567 | echo "$ac_t""found in default search path" 1>&6 |
21d1c967 | 15568 | COMPILED_X_PROGRAM=0 |
a0b9e27f | 15569 | |
d836ee96 | 15570 | else |
a0b9e27f MB |
15571 | echo "configure: failed program was:" >&5 |
15572 | cat conftest.$ac_ext >&5 | |
15573 | rm -rf conftest* | |
15574 | ||
15575 | echo "$ac_t""no" 1>&6 | |
15576 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
15577 | ||
15578 | ||
d836ee96 | 15579 | fi |
a0b9e27f | 15580 | rm -f conftest* |
dd0e4a90 VZ |
15581 | |
15582 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
15583 | fi |
15584 | ||
a0b9e27f | 15585 | echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6 |
8b389fab | 15586 | echo "configure:15587: checking if we need -lXp and/or -lSM -lICE" >&5 |
6a30f1c8 MB |
15587 | libp_link="" |
15588 | libsm_ice_link="" | |
15589 | libs_found=0 | |
15590 | for libp in "" " -lXp"; do | |
15591 | if test "$libs_found" = "0"; then | |
15592 | for libsm_ice in " -lSM -lICE"; do | |
e26c13cf | 15593 | if test "$libs_found" = "0"; then |
6a30f1c8 MB |
15594 | save_LIBS="$LIBS" |
15595 | LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
dd0e4a90 VZ |
15596 | save_CFLAGS=$CFLAGS |
15597 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
15598 | ||
a0b9e27f | 15599 | cat > conftest.$ac_ext <<EOF |
8b389fab | 15600 | #line 15601 "configure" |
6a30f1c8 | 15601 | #include "confdefs.h" |
17234b26 | 15602 | |
6a30f1c8 MB |
15603 | #include <Xm/Xm.h> |
15604 | #include <Xm/List.h> | |
a0b9e27f MB |
15605 | |
15606 | int main() { | |
6a30f1c8 MB |
15607 | |
15608 | XmString string = NULL; | |
15609 | Widget w = NULL; | |
15610 | int position = 0; | |
15611 | XmListAddItem(w, string, position); | |
a0b9e27f MB |
15612 | |
15613 | ; return 0; } | |
15614 | EOF | |
8b389fab | 15615 | if { (eval echo configure:15616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15616 | rm -rf conftest* |
15617 | ||
6a30f1c8 MB |
15618 | libp_link="$libp" |
15619 | libsm_ice_link="$libsm_ice" | |
a0b9e27f | 15620 | echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6 |
6a30f1c8 | 15621 | libs_found=1 |
a0b9e27f | 15622 | |
6a30f1c8 | 15623 | else |
a0b9e27f MB |
15624 | echo "configure: failed program was:" >&5 |
15625 | cat conftest.$ac_ext >&5 | |
15626 | rm -rf conftest* | |
15627 | ||
15628 | ||
6a30f1c8 | 15629 | fi |
a0b9e27f | 15630 | rm -f conftest* |
dd0e4a90 | 15631 | |
6a30f1c8 | 15632 | LIBS="$save_LIBS" |
dd0e4a90 | 15633 | CFLAGS=$save_CFLAGS |
6a30f1c8 MB |
15634 | fi |
15635 | done | |
15636 | fi | |
15637 | done | |
15638 | ||
15639 | if test "$libs_found" = "0"; then | |
a0b9e27f MB |
15640 | echo "$ac_t""can't find the right libraries" 1>&6 |
15641 | { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; } | |
6a30f1c8 MB |
15642 | fi |
15643 | ||
da494b40 MB |
15644 | save_CFLAGS=$CFLAGS |
15645 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
15646 | echo $ac_n "checking for Motif 2""... $ac_c" 1>&6 | |
8b389fab | 15647 | echo "configure:15648: checking for Motif 2" >&5 |
da494b40 | 15648 | cat > conftest.$ac_ext <<EOF |
8b389fab | 15649 | #line 15650 "configure" |
da494b40 MB |
15650 | #include "confdefs.h" |
15651 | ||
15652 | #include <Xm/Xm.h> | |
15653 | ||
15654 | int main() { | |
15655 | ||
15656 | #if XmVersion < 2000 | |
15657 | #error "Not Motif 2" | |
15658 | #endif | |
15659 | ||
15660 | ; return 0; } | |
15661 | EOF | |
8b389fab | 15662 | if { (eval echo configure:15663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
da494b40 MB |
15663 | rm -rf conftest* |
15664 | ||
15665 | cat >> confdefs.h <<\EOF | |
15666 | #define __WXMOTIF20__ 1 | |
15667 | EOF | |
15668 | ||
15669 | echo "$ac_t""found" 1>&6 | |
15670 | ||
15671 | else | |
15672 | echo "configure: failed program was:" >&5 | |
15673 | cat conftest.$ac_ext >&5 | |
15674 | rm -rf conftest* | |
15675 | ||
15676 | cat >> confdefs.h <<\EOF | |
15677 | #define __WXMOTIF20__ 0 | |
15678 | EOF | |
15679 | ||
15680 | echo "$ac_t""not found" 1>&6 | |
15681 | ||
15682 | fi | |
15683 | rm -f conftest* | |
15684 | CFLAGS=$save_CFLAGS | |
15685 | ||
6a30f1c8 | 15686 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" |
69c44812 | 15687 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11" |
21d1c967 GD |
15688 | TOOLKIT=MOTIF |
15689 | GUIDIST=MOTIF_DIST | |
f7f78039 MB |
15690 | wxHAVE_XEXT_LIB=1 |
15691 | fi | |
15692 | ||
15693 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 && | |
15694 | test "$wxHAVE_XEXT_LIB" = 1; then | |
15695 | save_CFLAGS="$CFLAGS" | |
15696 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
15697 | ||
15698 | echo $ac_n "checking for X11/extensions/shape.h""... $ac_c" 1>&6 | |
8b389fab | 15699 | echo "configure:15700: checking for X11/extensions/shape.h" >&5 |
f7f78039 | 15700 | cat > conftest.$ac_ext <<EOF |
8b389fab | 15701 | #line 15702 "configure" |
f7f78039 MB |
15702 | #include "confdefs.h" |
15703 | ||
15704 | #include <X11/Xlib.h> | |
15705 | #include <X11/extensions/shape.h> | |
15706 | ||
15707 | int main() { | |
15708 | ||
15709 | int dummy1, dummy2; | |
15710 | XShapeQueryExtension((Display*)NULL, | |
15711 | (int*)NULL, (int*)NULL); | |
15712 | ||
15713 | ; return 0; } | |
15714 | EOF | |
8b389fab | 15715 | if { (eval echo configure:15716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
f7f78039 MB |
15716 | rm -rf conftest* |
15717 | ||
15718 | cat >> confdefs.h <<\EOF | |
15719 | #define HAVE_XSHAPE 1 | |
15720 | EOF | |
15721 | ||
15722 | echo "$ac_t""found" 1>&6 | |
15723 | ||
15724 | else | |
15725 | echo "configure: failed program was:" >&5 | |
15726 | cat conftest.$ac_ext >&5 | |
15727 | rm -rf conftest* | |
15728 | ||
15729 | echo "$ac_t""not found" 1>&6 | |
15730 | ||
15731 | fi | |
15732 | rm -f conftest* | |
15733 | CFLAGS="$save_CFLAGS" | |
21d1c967 GD |
15734 | fi |
15735 | ||
15736 | if test "$wxUSE_MAC" = 1; then | |
0c98a14e | 15737 | CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon" |
21d1c967 | 15738 | |
0c98a14e | 15739 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex" |
21d1c967 GD |
15740 | TOOLKIT=MAC |
15741 | GUIDIST=MACX_DIST | |
15742 | fi | |
15743 | ||
ac0c4cc3 DE |
15744 | if test "$wxUSE_COCOA" = 1; then |
15745 | TOOLKIT_VPATH="\${top_srcdir}/src/cocoa" | |
15746 | TOOLKIT=COCOA | |
15747 | GUIDIST=COCOA_DIST | |
15748 | fi | |
15749 | ||
21d1c967 GD |
15750 | if test "$wxUSE_PM" = 1; then |
15751 | TOOLKIT=PM | |
15752 | GUIDIST=GTK_DIST | |
2b5f62a0 | 15753 | echo "configure: warning: OS/2 threads are not yet supported... disabled" 1>&2 |
f657dbe7 | 15754 | wxUSE_THREADS="no" |
21d1c967 GD |
15755 | fi |
15756 | ||
15757 | if test "$TOOLKIT" = "PM" ; then | |
15758 | TOOLKIT_DIR="os2" | |
15759 | else | |
15760 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
15761 | fi | |
15762 | ||
15763 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
15764 | ||
15765 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
15766 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
15767 | ||
15768 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
15769 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
15770 | ||
15771 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
15772 | if test "$wxUSE_X11" = 1; then | |
15773 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
15774 | else | |
15775 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
15776 | fi | |
15777 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
15778 | WIDGET_SET=univ | |
15779 | else | |
15780 | ALL_OBJECTS="\$(GUIOBJS)" | |
15781 | ALL_SOURCES="\$(ALL_SOURCES)" | |
15782 | ALL_HEADERS="\$(ALL_HEADERS)" | |
15783 | fi | |
15784 | ||
15785 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
15786 | ||
15787 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then | |
15788 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
15789 | fi | |
15790 | ||
15791 | if test "$wxUSE_HTML" = "yes"; then | |
15792 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
15793 | fi | |
15794 | ||
15795 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
15796 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
15797 | fi | |
15798 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
15799 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
15800 | fi | |
15801 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
15802 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
15803 | fi | |
15804 | ||
15805 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
15806 | DISTDIR="wx\$(TOOLKIT)" | |
90dd450c | 15807 | else |
21d1c967 GD |
15808 | USE_GUI=0 |
15809 | ||
15810 | TOOLKIT_DIR="base" | |
15811 | ||
15812 | if test "$USE_WIN32" = 1 ; then | |
15813 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
15814 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
15815 | ||
15816 | TOOLKIT="MSW" | |
15817 | else | |
15818 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
15819 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
15820 | fi | |
15821 | ||
15822 | ALL_SOURCES="\$(ALL_SOURCES)" | |
15823 | ALL_HEADERS="\$(ALL_HEADERS)" | |
15824 | ||
15825 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
15826 | ||
15827 | GUIDIST="BASE_DIST" | |
15828 | DISTDIR="wxBase" | |
d836ee96 VZ |
15829 | fi |
15830 | ||
8284b0c5 | 15831 | |
8647bec6 RG |
15832 | |
15833 | ||
15834 | IODBC_C_SRC="" | |
15835 | ||
15836 | ||
15837 | if test "$TOOLKIT" != "MSW" ; then | |
15838 | ||
15839 | if test "$wxUSE_ODBC" != "no" ; then | |
15840 | cat >> confdefs.h <<\EOF | |
15841 | #define wxUSE_ODBC 1 | |
15842 | EOF | |
15843 | ||
15844 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
15845 | ||
15846 | WXODBCFLAG="-D_IODBC_" | |
15847 | ||
15848 | ||
15849 | if test "$wxUSE_ODBC" = "sys" ; then | |
15850 | ||
15851 | ac_safe=`echo "sql.h" | sed 'y%./+-%__p_%'` | |
15852 | echo $ac_n "checking for sql.h""... $ac_c" 1>&6 | |
8b389fab | 15853 | echo "configure:15854: checking for sql.h" >&5 |
8647bec6 RG |
15854 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15855 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15856 | else | |
15857 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 15858 | #line 15859 "configure" |
8647bec6 RG |
15859 | #include "confdefs.h" |
15860 | #include <sql.h> | |
15861 | EOF | |
15862 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8b389fab | 15863 | { (eval echo configure:15864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
8647bec6 RG |
15864 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15865 | if test -z "$ac_err"; then | |
15866 | rm -rf conftest* | |
15867 | eval "ac_cv_header_$ac_safe=yes" | |
15868 | else | |
15869 | echo "$ac_err" >&5 | |
15870 | echo "configure: failed program was:" >&5 | |
15871 | cat conftest.$ac_ext >&5 | |
15872 | rm -rf conftest* | |
15873 | eval "ac_cv_header_$ac_safe=no" | |
15874 | fi | |
15875 | rm -f conftest* | |
15876 | fi | |
15877 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
15878 | echo "$ac_t""yes" 1>&6 | |
15879 | : | |
15880 | else | |
15881 | echo "$ac_t""no" 1>&6 | |
15882 | fi | |
15883 | ||
15884 | ||
15885 | echo $ac_n "checking for library containing SQLAllocEnv""... $ac_c" 1>&6 | |
8b389fab | 15886 | echo "configure:15887: checking for library containing SQLAllocEnv" >&5 |
8647bec6 RG |
15887 | if eval "test \"`echo '$''{'ac_cv_search_SQLAllocEnv'+set}'`\" = set"; then |
15888 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15889 | else | |
15890 | ac_func_search_save_LIBS="$LIBS" | |
15891 | ac_cv_search_SQLAllocEnv="no" | |
15892 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 15893 | #line 15894 "configure" |
8647bec6 RG |
15894 | #include "confdefs.h" |
15895 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15896 | /* We use char because int might match the return type of a gcc2 | |
15897 | builtin and then its argument prototype would still apply. */ | |
15898 | char SQLAllocEnv(); | |
15899 | ||
15900 | int main() { | |
15901 | SQLAllocEnv() | |
15902 | ; return 0; } | |
15903 | EOF | |
8b389fab | 15904 | if { (eval echo configure:15905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
8647bec6 RG |
15905 | rm -rf conftest* |
15906 | ac_cv_search_SQLAllocEnv="none required" | |
15907 | else | |
15908 | echo "configure: failed program was:" >&5 | |
15909 | cat conftest.$ac_ext >&5 | |
15910 | fi | |
15911 | rm -f conftest* | |
15912 | test "$ac_cv_search_SQLAllocEnv" = "no" && for i in iodbc unixodbc odbc ; do | |
15913 | LIBS="-l$i $ac_func_search_save_LIBS" | |
15914 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 15915 | #line 15916 "configure" |
8647bec6 RG |
15916 | #include "confdefs.h" |
15917 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15918 | /* We use char because int might match the return type of a gcc2 | |
15919 | builtin and then its argument prototype would still apply. */ | |
15920 | char SQLAllocEnv(); | |
15921 | ||
15922 | int main() { | |
15923 | SQLAllocEnv() | |
15924 | ; return 0; } | |
15925 | EOF | |
8b389fab | 15926 | if { (eval echo configure:15927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
8647bec6 RG |
15927 | rm -rf conftest* |
15928 | ac_cv_search_SQLAllocEnv="-l$i" | |
15929 | break | |
15930 | else | |
15931 | echo "configure: failed program was:" >&5 | |
15932 | cat conftest.$ac_ext >&5 | |
15933 | fi | |
15934 | rm -f conftest* | |
15935 | done | |
15936 | LIBS="$ac_func_search_save_LIBS" | |
15937 | fi | |
15938 | ||
15939 | echo "$ac_t""$ac_cv_search_SQLAllocEnv" 1>&6 | |
15940 | if test "$ac_cv_search_SQLAllocEnv" != "no"; then | |
15941 | test "$ac_cv_search_SQLAllocEnv" = "none required" || LIBS="$ac_cv_search_SQLAllocEnv $LIBS" | |
15942 | ||
15943 | else : | |
fd3d7534 RG |
15944 | |
15945 | wxUSE_ODBC=builtin; | |
15946 | echo "configure: warning: can't find system Odbc library falling back to builtin " 1>&2 | |
15947 | ||
8647bec6 | 15948 | fi |
fd3d7534 RG |
15949 | fi |
15950 | if test "$wxUSE_ODBC" != "sys" ; then | |
15951 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
8647bec6 RG |
15952 | fi |
15953 | ||
15954 | fi | |
15955 | ||
6232543b | 15956 | fi |
21d1c967 GD |
15957 | |
15958 | if test "$wxUSE_REGEX" = "builtin" ; then | |
15959 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
1e487827 | 15960 | fi |
21d1c967 GD |
15961 | if test "$wxUSE_ZLIB" = "builtin" ; then |
15962 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
bd3277fe VZ |
15963 | fi |
15964 | ||
8284b0c5 | 15965 | |
21d1c967 | 15966 | if test "$wxUSE_OPENGL" = "yes"; then |
ac0c4cc3 | 15967 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then |
21d1c967 GD |
15968 | OPENGL_LIBS="-framework OpenGL -framework AGL" |
15969 | elif test "$wxUSE_MSW" = 1; then | |
15970 | OPENGL_LIBS="-lopengl32 -lglu32" | |
15971 | else | |
a0b9e27f MB |
15972 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` |
15973 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
8b389fab | 15974 | echo "configure:15975: checking for GL/gl.h" >&5 |
a0b9e27f MB |
15975 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15976 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15977 | else | |
15978 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 15979 | #line 15980 "configure" |
10f2d63a | 15980 | #include "confdefs.h" |
21d1c967 | 15981 | #include <GL/gl.h> |
a0b9e27f MB |
15982 | EOF |
15983 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8b389fab | 15984 | { (eval echo configure:15985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
15985 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15986 | if test -z "$ac_err"; then | |
15987 | rm -rf conftest* | |
15988 | eval "ac_cv_header_$ac_safe=yes" | |
15989 | else | |
15990 | echo "$ac_err" >&5 | |
15991 | echo "configure: failed program was:" >&5 | |
698dcdb6 | 15992 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
15993 | rm -rf conftest* |
15994 | eval "ac_cv_header_$ac_safe=no" | |
703e0a69 | 15995 | fi |
a0b9e27f | 15996 | rm -f conftest* |
698dcdb6 | 15997 | fi |
a0b9e27f MB |
15998 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15999 | echo "$ac_t""yes" 1>&6 | |
16000 | ||
89e3b3e4 VZ |
16001 | found_gl=0 |
16002 | ||
a0b9e27f | 16003 | echo $ac_n "checking for -lGL""... $ac_c" 1>&6 |
8b389fab | 16004 | echo "configure:16005: checking for -lGL" >&5 |
a0b9e27f | 16005 | |
21d1c967 | 16006 | ac_find_libraries= |
2b5f62a0 | 16007 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
16008 | do |
16009 | for ac_extension in a so sl dylib; do | |
16010 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
16011 | ac_find_libraries=$ac_dir | |
16012 | break 2 | |
16013 | fi | |
16014 | done | |
16015 | done | |
16016 | ||
16017 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 16018 | |
21d1c967 GD |
16019 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
16020 | result=$? | |
16021 | if test $result = 0; then | |
16022 | ac_path_to_link="" | |
16023 | else | |
16024 | ac_path_to_link=" -L$ac_find_libraries" | |
16025 | fi | |
16026 | ||
89e3b3e4 VZ |
16027 | if test "$ac_path_to_link" != " -L/usr/lib" ; then |
16028 | LDFLAGS_GL="$ac_path_to_link" | |
21d1c967 | 16029 | fi |
89e3b3e4 VZ |
16030 | |
16031 | ||
16032 | ac_find_libraries= | |
16033 | for ac_dir in $SEARCH_LIB /usr/lib; | |
16034 | do | |
16035 | for ac_extension in a so sl dylib; do | |
16036 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
16037 | ac_find_libraries=$ac_dir | |
16038 | break 2 | |
16039 | fi | |
16040 | done | |
16041 | done | |
16042 | ||
16043 | if test "$ac_find_libraries" != "" ; then | |
16044 | ||
16045 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
16046 | result=$? | |
16047 | if test $result = 0; then | |
16048 | ac_path_to_link="" | |
16049 | else | |
16050 | ac_path_to_link=" -L$ac_find_libraries" | |
16051 | fi | |
16052 | ||
16053 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
16054 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
16055 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
16056 | fi | |
16057 | ||
16058 | found_gl=1 | |
16059 | OPENGL_LIBS="-lGL -lGLU" | |
16060 | echo "$ac_t""yes" 1>&6 | |
16061 | fi | |
16062 | fi | |
16063 | ||
16064 | if "$found_gl" != 1; then | |
a0b9e27f MB |
16065 | echo "$ac_t""no" 1>&6 |
16066 | echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6 | |
8b389fab | 16067 | echo "configure:16068: checking for -lMesaGL" >&5 |
a0b9e27f | 16068 | |
21d1c967 | 16069 | ac_find_libraries= |
2b5f62a0 | 16070 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
16071 | do |
16072 | for ac_extension in a so sl dylib; do | |
16073 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
16074 | ac_find_libraries=$ac_dir | |
16075 | break 2 | |
16076 | fi | |
16077 | done | |
16078 | done | |
16079 | ||
16080 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 16081 | |
21d1c967 GD |
16082 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
16083 | result=$? | |
16084 | if test $result = 0; then | |
16085 | ac_path_to_link="" | |
16086 | else | |
16087 | ac_path_to_link=" -L$ac_find_libraries" | |
16088 | fi | |
16089 | ||
16090 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
16091 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
a0b9e27f | 16092 | echo "$ac_t""yes" 1>&6 |
21d1c967 | 16093 | else |
a0b9e27f | 16094 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
16095 | fi |
16096 | fi | |
a0b9e27f MB |
16097 | |
16098 | else | |
16099 | echo "$ac_t""no" 1>&6 | |
5c6fa7d2 | 16100 | fi |
52127426 | 16101 | |
8284b0c5 | 16102 | |
21d1c967 | 16103 | if test "x$OPENGL_LIBS" = "x"; then |
a0b9e27f | 16104 | { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; } |
21d1c967 GD |
16105 | fi |
16106 | fi | |
90dd450c | 16107 | |
21d1c967 | 16108 | if test "$wxUSE_OPENGL" = "yes"; then |
a0b9e27f | 16109 | cat >> confdefs.h <<\EOF |
21d1c967 | 16110 | #define wxUSE_OPENGL 1 |
a0b9e27f | 16111 | EOF |
21d1c967 | 16112 | |
a0b9e27f | 16113 | cat >> confdefs.h <<\EOF |
21d1c967 | 16114 | #define wxUSE_GLCANVAS 1 |
a0b9e27f | 16115 | EOF |
21d1c967 GD |
16116 | |
16117 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" | |
16118 | fi | |
10f2d63a | 16119 | fi |
21d1c967 GD |
16120 | |
16121 | if test -z "$TOOLKIT_VPATH" ; then | |
16122 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
10f2d63a | 16123 | fi |
21d1c967 GD |
16124 | |
16125 | if test -n "$TOOLKIT" ; then | |
16126 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
16127 | fi | |
16128 | ||
16129 | lib_unicode_suffix= | |
16130 | if test "$wxUSE_UNICODE" = "yes"; then | |
16131 | lib_unicode_suffix=u | |
90dd450c | 16132 | fi |
698dcdb6 | 16133 | |
21d1c967 GD |
16134 | lib_debug_suffix= |
16135 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
16136 | lib_debug_suffix=d | |
16137 | fi | |
698dcdb6 | 16138 | |
2b5f62a0 VZ |
16139 | WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
16140 | ||
16141 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" | |
16142 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
21d1c967 GD |
16143 | |
16144 | if test "$cross_compiling" = "yes"; then | |
16145 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
16146 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
16147 | fi | |
16148 | ||
16149 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
16150 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
2b5f62a0 | 16151 | WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}" |
21d1c967 GD |
16152 | |
16153 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
16154 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
16155 | ||
16156 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
16157 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
16158 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
16159 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
16160 | ||
16161 | case "${host}" in | |
16162 | *-*-cygwin* | *-*-mingw32* ) | |
16163 | ||
a0b9e27f MB |
16164 | |
16165 | ||
17234b26 | 16166 | if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then |
21d1c967 GD |
16167 | WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" |
16168 | WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
16169 | WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}" | |
16170 | WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
16171 | else | |
16172 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
16173 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
16174 | fi | |
16175 | ;; | |
16176 | ||
16177 | *-*-darwin* ) | |
1542ea39 | 16178 | |
05159a27 GD |
16179 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" |
16180 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" | |
16181 | ||
16182 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}" | |
16183 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
16184 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}" | |
16185 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
16186 | ||
21d1c967 | 16187 | if test "$wxUSE_MAC" = 1; then |
f346733b GD |
16188 | WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r" |
16189 | WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc" | |
21d1c967 GD |
16190 | fi |
16191 | ;; | |
16192 | esac | |
16193 | ||
16194 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
16195 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
16196 | ||
16197 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
16198 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" | |
16199 | ||
16200 | if test "$wxUSE_OPENGL" = "yes"; then | |
16201 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" | |
16202 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
16203 | fi | |
16204 | ||
8284b0c5 MB |
16205 | |
16206 | ||
21d1c967 GD |
16207 | if test "$wxUSE_SHARED" = "yes"; then |
16208 | case "${host}" in | |
16209 | *-pc-os2_emx | *-pc-os2-emx | \ | |
16210 | *-pc-msdosdjgpp ) | |
16211 | wxUSE_SHARED=no | |
a0b9e27f | 16212 | echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2 |
21d1c967 GD |
16213 | ;; |
16214 | esac | |
16215 | fi | |
16216 | ||
2b5f62a0 VZ |
16217 | if test "$wxUSE_SHARED" = "yes"; then |
16218 | ||
16219 | if test "$wxUSE_OPENGL" = "yes"; then | |
16220 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
16221 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}" | |
16222 | else | |
16223 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
16224 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}" | |
16225 | fi | |
16226 | ||
16227 | if test "$GCC" = "yes"; then | |
16228 | PIC_FLAG="-fPIC" | |
16229 | fi | |
16230 | ||
16231 | ||
16232 | ||
16233 | found_versioning=no | |
16234 | ||
b4eecb7e | 16235 | |
2b5f62a0 VZ |
16236 | if test $found_versioning = no ; then |
16237 | echo $ac_n "checking if the linker accepts --version-script""... $ac_c" 1>&6 | |
8b389fab | 16238 | echo "configure:16239: checking if the linker accepts --version-script" >&5 |
2b5f62a0 VZ |
16239 | if eval "test \"`echo '$''{'wx_cv_version_script'+set}'`\" = set"; then |
16240 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16241 | else | |
16242 | ||
16243 | echo "VER_1 { *; };" >conftest.sym | |
16244 | echo "int main() { return 0; }" >conftest.cpp | |
16245 | ||
16246 | if { ac_try=' | |
16247 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
8b389fab | 16248 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'; { (eval echo configure:16249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then |
2b5f62a0 VZ |
16249 | if test -s conftest.stderr ; then |
16250 | wx_cv_version_script=no | |
16251 | else | |
16252 | wx_cv_version_script=yes | |
16253 | fi | |
16254 | else | |
16255 | wx_cv_version_script=no | |
16256 | fi | |
16257 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp | |
16258 | ||
16259 | fi | |
16260 | ||
16261 | echo "$ac_t""$wx_cv_version_script" 1>&6 | |
16262 | if test $wx_cv_version_script = yes ; then | |
16263 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)/version-script" | |
16264 | fi | |
16265 | fi | |
21d1c967 | 16266 | |
21d1c967 GD |
16267 | |
16268 | SHARED_LD="${CXX} -shared -o" | |
16269 | ||
16270 | case "${host}" in | |
16271 | *-hp-hpux* ) | |
ad2622f1 | 16272 | if test "$GCC" = "yes"; then |
85d5e282 | 16273 | SHARED_LD="${CXX} -shared ${PIC_FLAG} -o" |
21d1c967 GD |
16274 | else |
16275 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
16276 | ||
16277 | SHARED_LD="${CXX} -b -o" | |
16278 | PIC_FLAG="+Z" | |
16279 | fi | |
16280 | ||
16281 | if test "$wxUSE_OPENGL" = "yes"; then | |
16282 | WX_ALL_INSTALLED="preinstall_gl" | |
16283 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
16284 | else | |
16285 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
16286 | fi | |
16287 | ;; | |
16288 | ||
16289 | *-*-linux* ) | |
16290 | if test "$GCC" != "yes"; then | |
a0b9e27f | 16291 | echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6 |
8b389fab | 16292 | echo "configure:16293: checking for Intel compiler" >&5 |
a0b9e27f MB |
16293 | if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then |
16294 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16295 | else | |
16296 | ||
16297 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 16298 | #line 16299 "configure" |
698dcdb6 | 16299 | #include "confdefs.h" |
90dd450c | 16300 | |
a0b9e27f | 16301 | int main() { |
90dd450c | 16302 | |
21d1c967 GD |
16303 | #ifndef __INTEL_COMPILER |
16304 | #error Not icc | |
16305 | #endif | |
a0b9e27f MB |
16306 | |
16307 | ; return 0; } | |
16308 | EOF | |
8b389fab | 16309 | if { (eval echo configure:16310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 16310 | rm -rf conftest* |
21d1c967 | 16311 | wx_cv_prog_icc=yes |
6232543b | 16312 | else |
a0b9e27f MB |
16313 | echo "configure: failed program was:" >&5 |
16314 | cat conftest.$ac_ext >&5 | |
16315 | rm -rf conftest* | |
16316 | wx_cv_prog_icc=no | |
16317 | ||
5c6fa7d2 | 16318 | fi |
a0b9e27f MB |
16319 | rm -f conftest* |
16320 | ||
247f5006 | 16321 | fi |
a0b9e27f MB |
16322 | |
16323 | echo "$ac_t""$wx_cv_prog_icc" 1>&6 | |
21d1c967 GD |
16324 | if test "$wx_cv_prog_icc" = "yes"; then |
16325 | PIC_FLAG="-KPIC" | |
16326 | fi | |
16327 | fi | |
16328 | ||
16329 | if test "$wxUSE_SONAME" = "yes" ; then | |
16330 | SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}" | |
16331 | SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" | |
16332 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" | |
16333 | fi | |
16334 | ;; | |
16335 | ||
16336 | *-*-solaris2* ) | |
16337 | if test "$GCC" = yes ; then | |
16338 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
16339 | else | |
16340 | SHARED_LD="${CXX} -G -o" | |
16341 | PIC_FLAG="-KPIC" | |
16342 | SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}" | |
16343 | SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}" | |
16344 | fi | |
16345 | ;; | |
16346 | ||
16347 | *-*-darwin* ) | |
b2fee376 GD |
16348 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL" |
16349 | CFLAGS="$CFLAGS -fno-common" | |
16350 | CXXFLAGS="$CXXFLAGS -fno-common" | |
21d1c967 GD |
16351 | SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o" |
16352 | PIC_FLAG="-dynamic -fPIC" | |
f346733b | 16353 | SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1}" |
05159a27 | 16354 | SONAME_FLAGS_GL="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION} -install_name \$(libdir)/${WX_LIBRARY_LINK1_GL}" |
21d1c967 GD |
16355 | ;; |
16356 | ||
16357 | *-*-aix* ) | |
2b5f62a0 VZ |
16358 | if test "$GCC" != "yes"; then |
16359 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
321d2b14 | 16360 | set dummy makeC++SharedLib; ac_word=$2 |
a0b9e27f | 16361 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
8b389fab | 16362 | echo "configure:16363: checking for $ac_word" >&5 |
a0b9e27f MB |
16363 | if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then |
16364 | echo $ac_n "(cached) $ac_c" 1>&6 | |
321d2b14 VZ |
16365 | else |
16366 | if test -n "$AIX_CXX_LD"; then | |
16367 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
16368 | else | |
a0b9e27f MB |
16369 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
16370 | ac_dummy="$PATH" | |
16371 | for ac_dir in $ac_dummy; do | |
16372 | test -z "$ac_dir" && ac_dir=. | |
16373 | if test -f $ac_dir/$ac_word; then | |
16374 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
16375 | break | |
16376 | fi | |
16377 | done | |
16378 | IFS="$ac_save_ifs" | |
321d2b14 VZ |
16379 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" |
16380 | fi | |
16381 | fi | |
a0b9e27f | 16382 | AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD" |
321d2b14 | 16383 | if test -n "$AIX_CXX_LD"; then |
a0b9e27f | 16384 | echo "$ac_t""$AIX_CXX_LD" 1>&6 |
321d2b14 | 16385 | else |
a0b9e27f | 16386 | echo "$ac_t""no" 1>&6 |
321d2b14 VZ |
16387 | fi |
16388 | ||
8284b0c5 | 16389 | |
2b5f62a0 VZ |
16390 | SHARED_LD="$(AIX_CXX_LD) -p 0 -o" |
16391 | fi | |
21d1c967 GD |
16392 | ;; |
16393 | ||
16394 | *-*-cygwin* | *-*-mingw32* ) | |
21d1c967 GD |
16395 | WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a" |
16396 | ||
16397 | SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o" | |
16398 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
16399 | ||
16400 | PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1" | |
16401 | ||
f657dbe7 MB |
16402 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" |
16403 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
16404 | ||
16405 | if test "$wxUSE_OPENGL" = "yes"; then | |
16406 | LIBS="${LIBS} ${OPENGL_LIBS}" | |
21d1c967 GD |
16407 | fi |
16408 | ;; | |
16409 | ||
16410 | *-*-beos* ) | |
16411 | SHARED_LD="${LD} -shared -o" | |
16412 | ;; | |
16413 | ||
2b5f62a0 VZ |
16414 | *-*-irix* ) |
16415 | if test "$GCC" != "yes"; then | |
16416 | PIC_FLAG="-KPIC" | |
16417 | fi | |
16418 | ;; | |
16419 | ||
21d1c967 GD |
16420 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ |
16421 | *-*-sunos4* | \ | |
21d1c967 GD |
16422 | *-*-osf* | \ |
16423 | *-*-dgux5* | \ | |
16424 | *-*-sysv5* ) | |
16425 | ;; | |
16426 | ||
16427 | *) | |
a0b9e27f | 16428 | { echo "configure: error: unknown system type $host." 1>&2; exit 1; } |
21d1c967 GD |
16429 | esac |
16430 | ||
16431 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
16432 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
16433 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
16434 | fi | |
16435 | ||
16436 | WX_TARGET_LIBRARY_TYPE="so" | |
16437 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' | |
90dd450c | 16438 | fi |
10f2d63a | 16439 | |
21d1c967 GD |
16440 | if test "$wxUSE_SHARED" = "no"; then |
16441 | ||
16442 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then | |
16443 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
16444 | fi | |
16445 | ||
ac0c4cc3 | 16446 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
21d1c967 GD |
16447 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" |
16448 | fi | |
16449 | ||
16450 | if test "$wxUSE_OPENGL" = "yes"; then | |
16451 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
16452 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
16453 | else | |
16454 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
16455 | fi | |
16456 | ||
16457 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
16458 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
16459 | ||
16460 | WX_TARGET_LIBRARY_TYPE="a" | |
16461 | INSTALL_LIBRARY='$(INSTALL_DATA)' | |
2bffed64 VZ |
16462 | |
16463 | STATIC_FLAG="yes" | |
16464 | else | |
16465 | STATIC_FLAG="no" | |
90dd450c | 16466 | fi |
1e487827 | 16467 | |
93fac604 VZ |
16468 | MACRESCOMP="@#" |
16469 | MACSETFILE="@#" | |
36825681 | 16470 | MACRESWXCONFIG="#" |
21d1c967 GD |
16471 | if test "$wxUSE_MAC" = 1; then |
16472 | LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}" | |
16473 | WX_ALL="${WX_ALL} ${LIBWXMACRES}" | |
16474 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
16475 | # Extract the first word of "Rez", so it can be a program name with args. | |
16476 | set dummy Rez; ac_word=$2 | |
a0b9e27f | 16477 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
8b389fab | 16478 | echo "configure:16479: checking for $ac_word" >&5 |
a0b9e27f MB |
16479 | if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then |
16480 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b93d0d08 | 16481 | else |
21d1c967 GD |
16482 | if test -n "$RESCOMP"; then |
16483 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
b93d0d08 | 16484 | else |
a0b9e27f MB |
16485 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
16486 | ac_dummy="$PATH" | |
16487 | for ac_dir in $ac_dummy; do | |
16488 | test -z "$ac_dir" && ac_dir=. | |
16489 | if test -f $ac_dir/$ac_word; then | |
16490 | ac_cv_prog_RESCOMP="Rez" | |
16491 | break | |
16492 | fi | |
16493 | done | |
16494 | IFS="$ac_save_ifs" | |
21d1c967 | 16495 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
b93d0d08 | 16496 | fi |
b93d0d08 | 16497 | fi |
a0b9e27f | 16498 | RESCOMP="$ac_cv_prog_RESCOMP" |
21d1c967 | 16499 | if test -n "$RESCOMP"; then |
a0b9e27f | 16500 | echo "$ac_t""$RESCOMP" 1>&6 |
90dd450c | 16501 | else |
a0b9e27f | 16502 | echo "$ac_t""no" 1>&6 |
90dd450c | 16503 | fi |
b93d0d08 | 16504 | |
21d1c967 GD |
16505 | # Extract the first word of "DeRez", so it can be a program name with args. |
16506 | set dummy DeRez; ac_word=$2 | |
a0b9e27f | 16507 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
8b389fab | 16508 | echo "configure:16509: checking for $ac_word" >&5 |
a0b9e27f MB |
16509 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
16510 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3a922bb4 | 16511 | else |
21d1c967 GD |
16512 | if test -n "$DEREZ"; then |
16513 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
4f14bcd8 | 16514 | else |
a0b9e27f MB |
16515 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
16516 | ac_dummy="$PATH" | |
16517 | for ac_dir in $ac_dummy; do | |
16518 | test -z "$ac_dir" && ac_dir=. | |
16519 | if test -f $ac_dir/$ac_word; then | |
16520 | ac_cv_prog_DEREZ="DeRez" | |
16521 | break | |
16522 | fi | |
16523 | done | |
16524 | IFS="$ac_save_ifs" | |
21d1c967 | 16525 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
3a922bb4 | 16526 | fi |
90dd450c | 16527 | fi |
a0b9e27f | 16528 | DEREZ="$ac_cv_prog_DEREZ" |
21d1c967 | 16529 | if test -n "$DEREZ"; then |
a0b9e27f | 16530 | echo "$ac_t""$DEREZ" 1>&6 |
90dd450c | 16531 | else |
a0b9e27f | 16532 | echo "$ac_t""no" 1>&6 |
3a922bb4 | 16533 | fi |
698dcdb6 | 16534 | |
36825681 GD |
16535 | # Extract the first word of "SetFile", so it can be a program name with args. |
16536 | set dummy SetFile; ac_word=$2 | |
16537 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
8b389fab | 16538 | echo "configure:16539: checking for $ac_word" >&5 |
36825681 GD |
16539 | if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then |
16540 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16541 | else | |
16542 | if test -n "$SETFILE"; then | |
16543 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
16544 | else | |
16545 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
16546 | ac_dummy="$PATH" | |
16547 | for ac_dir in $ac_dummy; do | |
16548 | test -z "$ac_dir" && ac_dir=. | |
16549 | if test -f $ac_dir/$ac_word; then | |
16550 | ac_cv_prog_SETFILE="SetFile" | |
16551 | break | |
16552 | fi | |
16553 | done | |
16554 | IFS="$ac_save_ifs" | |
16555 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
16556 | fi | |
16557 | fi | |
16558 | SETFILE="$ac_cv_prog_SETFILE" | |
16559 | if test -n "$SETFILE"; then | |
16560 | echo "$ac_t""$SETFILE" 1>&6 | |
16561 | else | |
16562 | echo "$ac_t""no" 1>&6 | |
16563 | fi | |
16564 | ||
21d1c967 | 16565 | MACOSX_BUNDLE="bundle" |
36825681 GD |
16566 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o" |
16567 | MACSETFILE="\$(SETFILE)" | |
9711d31e | 16568 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" |
64440d77 DE |
16569 | elif test "$wxUSE_COCOA" = 1; then |
16570 | # Extract the first word of "Rez", so it can be a program name with args. | |
16571 | set dummy Rez; ac_word=$2 | |
16572 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
8b389fab | 16573 | echo "configure:16574: checking for $ac_word" >&5 |
64440d77 DE |
16574 | if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then |
16575 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16576 | else | |
16577 | if test -n "$RESCOMP"; then | |
16578 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
16579 | else | |
16580 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
16581 | ac_dummy="$PATH" | |
16582 | for ac_dir in $ac_dummy; do | |
16583 | test -z "$ac_dir" && ac_dir=. | |
16584 | if test -f $ac_dir/$ac_word; then | |
16585 | ac_cv_prog_RESCOMP="Rez" | |
16586 | break | |
16587 | fi | |
16588 | done | |
16589 | IFS="$ac_save_ifs" | |
16590 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
16591 | fi | |
16592 | fi | |
16593 | RESCOMP="$ac_cv_prog_RESCOMP" | |
16594 | if test -n "$RESCOMP"; then | |
16595 | echo "$ac_t""$RESCOMP" 1>&6 | |
16596 | else | |
16597 | echo "$ac_t""no" 1>&6 | |
16598 | fi | |
16599 | ||
16600 | # Extract the first word of "DeRez", so it can be a program name with args. | |
16601 | set dummy DeRez; ac_word=$2 | |
16602 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
8b389fab | 16603 | echo "configure:16604: checking for $ac_word" >&5 |
64440d77 DE |
16604 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
16605 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16606 | else | |
16607 | if test -n "$DEREZ"; then | |
16608 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
16609 | else | |
16610 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
16611 | ac_dummy="$PATH" | |
16612 | for ac_dir in $ac_dummy; do | |
16613 | test -z "$ac_dir" && ac_dir=. | |
16614 | if test -f $ac_dir/$ac_word; then | |
16615 | ac_cv_prog_DEREZ="DeRez" | |
16616 | break | |
16617 | fi | |
16618 | done | |
16619 | IFS="$ac_save_ifs" | |
16620 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
16621 | fi | |
16622 | fi | |
16623 | DEREZ="$ac_cv_prog_DEREZ" | |
16624 | if test -n "$DEREZ"; then | |
16625 | echo "$ac_t""$DEREZ" 1>&6 | |
16626 | else | |
16627 | echo "$ac_t""no" 1>&6 | |
16628 | fi | |
16629 | ||
16630 | # Extract the first word of "SetFile", so it can be a program name with args. | |
16631 | set dummy SetFile; ac_word=$2 | |
16632 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
8b389fab | 16633 | echo "configure:16634: checking for $ac_word" >&5 |
64440d77 DE |
16634 | if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then |
16635 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16636 | else | |
16637 | if test -n "$SETFILE"; then | |
16638 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
16639 | else | |
16640 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
16641 | ac_dummy="$PATH" | |
16642 | for ac_dir in $ac_dummy; do | |
16643 | test -z "$ac_dir" && ac_dir=. | |
16644 | if test -f $ac_dir/$ac_word; then | |
16645 | ac_cv_prog_SETFILE="SetFile" | |
16646 | break | |
16647 | fi | |
16648 | done | |
16649 | IFS="$ac_save_ifs" | |
16650 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
16651 | fi | |
16652 | fi | |
16653 | SETFILE="$ac_cv_prog_SETFILE" | |
16654 | if test -n "$SETFILE"; then | |
16655 | echo "$ac_t""$SETFILE" 1>&6 | |
16656 | else | |
16657 | echo "$ac_t""no" 1>&6 | |
16658 | fi | |
16659 | ||
16660 | MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o" | |
16661 | MACSETFILE="\$(SETFILE)" | |
9711d31e | 16662 | MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" |
21d1c967 GD |
16663 | else |
16664 | if test "$wxUSE_PM" = 1; then | |
36825681 | 16665 | MACRESCOMP="emxbind -ep" |
90dd450c | 16666 | fi |
4f14bcd8 | 16667 | fi |
10f2d63a | 16668 | |
8284b0c5 | 16669 | |
a0b9e27f | 16670 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
8b389fab | 16671 | echo "configure:16672: checking for ANSI C header files" >&5 |
a0b9e27f MB |
16672 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
16673 | echo $ac_n "(cached) $ac_c" 1>&6 | |
52127426 | 16674 | else |
a0b9e27f | 16675 | cat > conftest.$ac_ext <<EOF |
8b389fab | 16676 | #line 16677 "configure" |
52127426 | 16677 | #include "confdefs.h" |
a0b9e27f MB |
16678 | #include <stdlib.h> |
16679 | #include <stdarg.h> | |
16680 | #include <string.h> | |
16681 | #include <float.h> | |
16682 | EOF | |
16683 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8b389fab | 16684 | { (eval echo configure:16685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
16685 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
16686 | if test -z "$ac_err"; then | |
16687 | rm -rf conftest* | |
16688 | ac_cv_header_stdc=yes | |
16689 | else | |
16690 | echo "$ac_err" >&5 | |
16691 | echo "configure: failed program was:" >&5 | |
16692 | cat conftest.$ac_ext >&5 | |
16693 | rm -rf conftest* | |
16694 | ac_cv_header_stdc=no | |
16695 | fi | |
16696 | rm -f conftest* | |
16697 | ||
16698 | if test $ac_cv_header_stdc = yes; then | |
16699 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
16700 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 16701 | #line 16702 "configure" |
a0b9e27f MB |
16702 | #include "confdefs.h" |
16703 | #include <string.h> | |
16704 | EOF | |
16705 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16706 | egrep "memchr" >/dev/null 2>&1; then | |
16707 | : | |
16708 | else | |
16709 | rm -rf conftest* | |
16710 | ac_cv_header_stdc=no | |
16711 | fi | |
16712 | rm -f conftest* | |
16713 | ||
16714 | fi | |
16715 | ||
16716 | if test $ac_cv_header_stdc = yes; then | |
16717 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
16718 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 16719 | #line 16720 "configure" |
a0b9e27f MB |
16720 | #include "confdefs.h" |
16721 | #include <stdlib.h> | |
16722 | EOF | |
16723 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16724 | egrep "free" >/dev/null 2>&1; then | |
16725 | : | |
7b4a847f | 16726 | else |
a0b9e27f MB |
16727 | rm -rf conftest* |
16728 | ac_cv_header_stdc=no | |
52127426 | 16729 | fi |
a0b9e27f MB |
16730 | rm -f conftest* |
16731 | ||
52127426 | 16732 | fi |
a0b9e27f MB |
16733 | |
16734 | if test $ac_cv_header_stdc = yes; then | |
16735 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
16736 | if test "$cross_compiling" = yes; then | |
247f5006 VZ |
16737 | : |
16738 | else | |
a0b9e27f | 16739 | cat > conftest.$ac_ext <<EOF |
8b389fab | 16740 | #line 16741 "configure" |
a0b9e27f MB |
16741 | #include "confdefs.h" |
16742 | #include <ctype.h> | |
16743 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
16744 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
16745 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
16746 | int main () { int i; for (i = 0; i < 256; i++) | |
16747 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
16748 | exit (0); } | |
247f5006 | 16749 | |
a0b9e27f | 16750 | EOF |
8b389fab | 16751 | if { (eval echo configure:16752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
16752 | then |
16753 | : | |
16754 | else | |
16755 | echo "configure: failed program was:" >&5 | |
16756 | cat conftest.$ac_ext >&5 | |
16757 | rm -fr conftest* | |
16758 | ac_cv_header_stdc=no | |
16759 | fi | |
16760 | rm -fr conftest* | |
16761 | fi | |
16762 | ||
16763 | fi | |
16764 | fi | |
16765 | ||
16766 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
16767 | if test $ac_cv_header_stdc = yes; then | |
16768 | cat >> confdefs.h <<\EOF | |
16769 | #define STDC_HEADERS 1 | |
16770 | EOF | |
8284b0c5 MB |
16771 | |
16772 | fi | |
16773 | ||
a0b9e27f | 16774 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
8b389fab | 16775 | echo "configure:16776: checking for mode_t" >&5 |
a0b9e27f MB |
16776 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
16777 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 16778 | else |
a0b9e27f | 16779 | cat > conftest.$ac_ext <<EOF |
8b389fab | 16780 | #line 16781 "configure" |
8284b0c5 | 16781 | #include "confdefs.h" |
a0b9e27f MB |
16782 | #include <sys/types.h> |
16783 | #if STDC_HEADERS | |
16784 | #include <stdlib.h> | |
16785 | #include <stddef.h> | |
8284b0c5 | 16786 | #endif |
a0b9e27f MB |
16787 | EOF |
16788 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16789 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
16790 | rm -rf conftest* | |
16791 | ac_cv_type_mode_t=yes | |
5c6fa7d2 | 16792 | else |
a0b9e27f MB |
16793 | rm -rf conftest* |
16794 | ac_cv_type_mode_t=no | |
16795 | fi | |
16796 | rm -f conftest* | |
16797 | ||
8284b0c5 | 16798 | fi |
a0b9e27f MB |
16799 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 |
16800 | if test $ac_cv_type_mode_t = no; then | |
16801 | cat >> confdefs.h <<\EOF | |
16802 | #define mode_t int | |
16803 | EOF | |
16804 | ||
8284b0c5 | 16805 | fi |
a0b9e27f MB |
16806 | |
16807 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
8b389fab | 16808 | echo "configure:16809: checking for off_t" >&5 |
a0b9e27f MB |
16809 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
16810 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16811 | else | |
16812 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 16813 | #line 16814 "configure" |
a0b9e27f MB |
16814 | #include "confdefs.h" |
16815 | #include <sys/types.h> | |
16816 | #if STDC_HEADERS | |
16817 | #include <stdlib.h> | |
16818 | #include <stddef.h> | |
16819 | #endif | |
16820 | EOF | |
16821 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16822 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
16823 | rm -rf conftest* | |
16824 | ac_cv_type_off_t=yes | |
247f5006 | 16825 | else |
a0b9e27f MB |
16826 | rm -rf conftest* |
16827 | ac_cv_type_off_t=no | |
16828 | fi | |
16829 | rm -f conftest* | |
247f5006 | 16830 | |
a0b9e27f MB |
16831 | fi |
16832 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
16833 | if test $ac_cv_type_off_t = no; then | |
16834 | cat >> confdefs.h <<\EOF | |
90dd450c | 16835 | #define off_t long |
a0b9e27f | 16836 | EOF |
10f2d63a | 16837 | |
90dd450c | 16838 | fi |
10f2d63a | 16839 | |
a0b9e27f | 16840 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
8b389fab | 16841 | echo "configure:16842: checking for pid_t" >&5 |
a0b9e27f MB |
16842 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
16843 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 16844 | else |
a0b9e27f | 16845 | cat > conftest.$ac_ext <<EOF |
8b389fab | 16846 | #line 16847 "configure" |
10f2d63a | 16847 | #include "confdefs.h" |
a0b9e27f MB |
16848 | #include <sys/types.h> |
16849 | #if STDC_HEADERS | |
16850 | #include <stdlib.h> | |
16851 | #include <stddef.h> | |
8284b0c5 | 16852 | #endif |
a0b9e27f MB |
16853 | EOF |
16854 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16855 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
16856 | rm -rf conftest* | |
90dd450c | 16857 | ac_cv_type_pid_t=yes |
698dcdb6 | 16858 | else |
a0b9e27f MB |
16859 | rm -rf conftest* |
16860 | ac_cv_type_pid_t=no | |
8284b0c5 | 16861 | fi |
a0b9e27f | 16862 | rm -f conftest* |
247f5006 | 16863 | |
a0b9e27f MB |
16864 | fi |
16865 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
16866 | if test $ac_cv_type_pid_t = no; then | |
16867 | cat >> confdefs.h <<\EOF | |
90dd450c | 16868 | #define pid_t int |
a0b9e27f | 16869 | EOF |
10f2d63a | 16870 | |
7b4a847f RR |
16871 | fi |
16872 | ||
a0b9e27f | 16873 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
8b389fab | 16874 | echo "configure:16875: checking for size_t" >&5 |
a0b9e27f MB |
16875 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
16876 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7b4a847f | 16877 | else |
a0b9e27f | 16878 | cat > conftest.$ac_ext <<EOF |
8b389fab | 16879 | #line 16880 "configure" |
7b4a847f | 16880 | #include "confdefs.h" |
a0b9e27f MB |
16881 | #include <sys/types.h> |
16882 | #if STDC_HEADERS | |
16883 | #include <stdlib.h> | |
16884 | #include <stddef.h> | |
8284b0c5 | 16885 | #endif |
a0b9e27f MB |
16886 | EOF |
16887 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16888 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
16889 | rm -rf conftest* | |
90dd450c | 16890 | ac_cv_type_size_t=yes |
18dbb1f6 | 16891 | else |
a0b9e27f MB |
16892 | rm -rf conftest* |
16893 | ac_cv_type_size_t=no | |
52127426 | 16894 | fi |
a0b9e27f | 16895 | rm -f conftest* |
247f5006 | 16896 | |
a0b9e27f MB |
16897 | fi |
16898 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
16899 | if test $ac_cv_type_size_t = no; then | |
16900 | cat >> confdefs.h <<\EOF | |
90dd450c | 16901 | #define size_t unsigned |
a0b9e27f | 16902 | EOF |
90dd450c VZ |
16903 | |
16904 | fi | |
16905 | ||
a0b9e27f | 16906 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
8b389fab | 16907 | echo "configure:16908: checking for uid_t in sys/types.h" >&5 |
a0b9e27f MB |
16908 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
16909 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b3e8d00a | 16910 | else |
a0b9e27f | 16911 | cat > conftest.$ac_ext <<EOF |
8b389fab | 16912 | #line 16913 "configure" |
b3e8d00a | 16913 | #include "confdefs.h" |
90dd450c | 16914 | #include <sys/types.h> |
a0b9e27f | 16915 | EOF |
90dd450c VZ |
16916 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
16917 | egrep "uid_t" >/dev/null 2>&1; then | |
a0b9e27f | 16918 | rm -rf conftest* |
90dd450c | 16919 | ac_cv_type_uid_t=yes |
b3e8d00a | 16920 | else |
a0b9e27f | 16921 | rm -rf conftest* |
90dd450c | 16922 | ac_cv_type_uid_t=no |
b3e8d00a | 16923 | fi |
90dd450c | 16924 | rm -f conftest* |
b3e8d00a | 16925 | |
4f14bcd8 | 16926 | fi |
247f5006 | 16927 | |
a0b9e27f MB |
16928 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
16929 | if test $ac_cv_type_uid_t = no; then | |
16930 | cat >> confdefs.h <<\EOF | |
90dd450c | 16931 | #define uid_t int |
a0b9e27f | 16932 | EOF |
247f5006 | 16933 | |
a0b9e27f | 16934 | cat >> confdefs.h <<\EOF |
90dd450c | 16935 | #define gid_t int |
a0b9e27f | 16936 | EOF |
4f14bcd8 | 16937 | |
b3e8d00a | 16938 | fi |
b3e8d00a | 16939 | |
8284b0c5 MB |
16940 | |
16941 | ||
a0b9e27f MB |
16942 | ac_ext=C |
16943 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 16944 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
16945 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16946 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16947 | cross_compiling=$ac_cv_prog_cxx_cross | |
90dd450c | 16948 | |
a0b9e27f | 16949 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 |
8b389fab | 16950 | echo "configure:16951: checking if size_t is unsigned int" >&5 |
a0b9e27f MB |
16951 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
16952 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 16953 | else |
ef33c576 VZ |
16954 | |
16955 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 16956 | #line 16957 "configure" |
10f2d63a | 16957 | #include "confdefs.h" |
90dd450c | 16958 | #include <stddef.h> |
a0b9e27f | 16959 | int main() { |
90dd450c VZ |
16960 | |
16961 | return 0; } | |
16962 | ||
16963 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
16964 | ||
16965 | int bar() { | |
a0b9e27f MB |
16966 | |
16967 | ; return 0; } | |
16968 | EOF | |
8b389fab | 16969 | if { (eval echo configure:16970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 16970 | rm -rf conftest* |
90dd450c | 16971 | wx_cv_size_t_is_uint=no |
698dcdb6 | 16972 | else |
a0b9e27f MB |
16973 | echo "configure: failed program was:" >&5 |
16974 | cat conftest.$ac_ext >&5 | |
16975 | rm -rf conftest* | |
16976 | wx_cv_size_t_is_uint=yes | |
16977 | ||
5c6fa7d2 | 16978 | fi |
a0b9e27f | 16979 | rm -f conftest* |
ef33c576 | 16980 | |
8284b0c5 | 16981 | |
247f5006 | 16982 | fi |
a0b9e27f MB |
16983 | |
16984 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
4f14bcd8 | 16985 | |
90dd450c | 16986 | if test "$wx_cv_size_t_is_uint" = "yes"; then |
a0b9e27f | 16987 | cat >> confdefs.h <<\EOF |
90dd450c | 16988 | #define wxSIZE_T_IS_UINT 1 |
a0b9e27f | 16989 | EOF |
698dcdb6 | 16990 | |
90dd450c | 16991 | else |
a0b9e27f | 16992 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 |
8b389fab | 16993 | echo "configure:16994: checking if size_t is unsigned long" >&5 |
a0b9e27f MB |
16994 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
16995 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 16996 | else |
a0b9e27f | 16997 | cat > conftest.$ac_ext <<EOF |
8b389fab | 16998 | #line 16999 "configure" |
10f2d63a | 16999 | #include "confdefs.h" |
90dd450c | 17000 | #include <stddef.h> |
a0b9e27f | 17001 | int main() { |
90dd450c VZ |
17002 | |
17003 | return 0; } | |
17004 | ||
17005 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
17006 | ||
17007 | int bar() { | |
a0b9e27f MB |
17008 | |
17009 | ; return 0; } | |
17010 | EOF | |
8b389fab | 17011 | if { (eval echo configure:17012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 17012 | rm -rf conftest* |
90dd450c | 17013 | wx_cv_size_t_is_ulong=no |
698dcdb6 | 17014 | else |
a0b9e27f MB |
17015 | echo "configure: failed program was:" >&5 |
17016 | cat conftest.$ac_ext >&5 | |
17017 | rm -rf conftest* | |
17018 | wx_cv_size_t_is_ulong=yes | |
17019 | ||
5c6fa7d2 | 17020 | fi |
a0b9e27f MB |
17021 | rm -f conftest* |
17022 | ||
247f5006 | 17023 | fi |
a0b9e27f MB |
17024 | |
17025 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
10f2d63a | 17026 | |
90dd450c | 17027 | if test "$wx_cv_size_t_is_ulong" = "yes"; then |
a0b9e27f | 17028 | cat >> confdefs.h <<\EOF |
90dd450c | 17029 | #define wxSIZE_T_IS_ULONG 1 |
a0b9e27f | 17030 | EOF |
4f14bcd8 GD |
17031 | |
17032 | fi | |
90dd450c | 17033 | fi |
1e487827 | 17034 | |
90dd450c | 17035 | ac_ext=c |
a0b9e27f | 17036 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 17037 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
17038 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17039 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17040 | cross_compiling=$ac_cv_prog_cc_cross | |
698dcdb6 | 17041 | |
5c6fa7d2 | 17042 | |
8284b0c5 | 17043 | |
a0b9e27f | 17044 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
8b389fab | 17045 | echo "configure:17046: checking for pw_gecos in struct passwd" >&5 |
a0b9e27f MB |
17046 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
17047 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 17048 | else |
a0b9e27f MB |
17049 | |
17050 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 17051 | #line 17052 "configure" |
4f14bcd8 | 17052 | #include "confdefs.h" |
90dd450c | 17053 | #include <pwd.h> |
a0b9e27f | 17054 | int main() { |
f6bcfd97 | 17055 | |
90dd450c VZ |
17056 | char *p; |
17057 | struct passwd *pw; | |
17058 | p = pw->pw_gecos; | |
a0b9e27f MB |
17059 | |
17060 | ; return 0; } | |
17061 | EOF | |
8b389fab | 17062 | if { (eval echo configure:17063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
17063 | rm -rf conftest* |
17064 | ||
90dd450c | 17065 | wx_cv_struct_pw_gecos=yes |
a0b9e27f | 17066 | |
10f2d63a | 17067 | else |
a0b9e27f MB |
17068 | echo "configure: failed program was:" >&5 |
17069 | cat conftest.$ac_ext >&5 | |
17070 | rm -rf conftest* | |
17071 | ||
90dd450c | 17072 | wx_cv_struct_pw_gecos=no |
a0b9e27f MB |
17073 | |
17074 | ||
5c6fa7d2 | 17075 | fi |
a0b9e27f MB |
17076 | rm -f conftest* |
17077 | ||
247f5006 VZ |
17078 | |
17079 | fi | |
a0b9e27f MB |
17080 | |
17081 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
c521c494 | 17082 | |
90dd450c | 17083 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
a0b9e27f | 17084 | cat >> confdefs.h <<\EOF |
90dd450c | 17085 | #define HAVE_PW_GECOS 1 |
a0b9e27f | 17086 | EOF |
c521c494 | 17087 | |
90dd450c | 17088 | fi |
4f14bcd8 | 17089 | |
8284b0c5 | 17090 | |
d29b553b | 17091 | if test "$wx_cv_sizeof_wchar_t" != "0"; then |
a0b9e27f | 17092 | cat >> confdefs.h <<\EOF |
d74f4b5a | 17093 | #define wxUSE_WCHAR_T 1 |
a0b9e27f | 17094 | EOF |
d74f4b5a | 17095 | |
8284b0c5 | 17096 | |
d74f4b5a VZ |
17097 | WCSLEN_FOUND=0 |
17098 | WCHAR_LINK= | |
a0b9e27f | 17099 | for ac_func in wcslen |
7a30264c | 17100 | do |
a0b9e27f | 17101 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8b389fab | 17102 | echo "configure:17103: checking for $ac_func" >&5 |
a0b9e27f MB |
17103 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17104 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17105 | else | |
17106 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 17107 | #line 17108 "configure" |
4f14bcd8 | 17108 | #include "confdefs.h" |
7a30264c | 17109 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 17110 | which can conflict with char $ac_func(); below. */ |
7a30264c | 17111 | #include <assert.h> |
4f14bcd8 GD |
17112 | /* Override any gcc2 internal prototype to avoid an error. */ |
17113 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17114 | builtin and then its argument prototype would still apply. */ |
17115 | char $ac_func(); | |
17116 | ||
17117 | int main() { | |
17118 | ||
7a30264c VZ |
17119 | /* The GNU C library defines this for functions which it implements |
17120 | to always fail with ENOSYS. Some functions are actually named | |
17121 | something starting with __ and the normal name is an alias. */ | |
17122 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17123 | choke me | |
17124 | #else | |
a0b9e27f | 17125 | $ac_func(); |
7a30264c VZ |
17126 | #endif |
17127 | ||
a0b9e27f MB |
17128 | ; return 0; } |
17129 | EOF | |
8b389fab | 17130 | if { (eval echo configure:17131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17131 | rm -rf conftest* |
17132 | eval "ac_cv_func_$ac_func=yes" | |
17133 | else | |
17134 | echo "configure: failed program was:" >&5 | |
17135 | cat conftest.$ac_ext >&5 | |
17136 | rm -rf conftest* | |
17137 | eval "ac_cv_func_$ac_func=no" | |
17138 | fi | |
17139 | rm -f conftest* | |
17140 | fi | |
17141 | ||
17142 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17143 | echo "$ac_t""yes" 1>&6 | |
17144 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17145 | cat >> confdefs.h <<EOF | |
17146 | #define $ac_tr_func 1 | |
17147 | EOF | |
d74f4b5a | 17148 | WCSLEN_FOUND=1 |
a0b9e27f MB |
17149 | else |
17150 | echo "$ac_t""no" 1>&6 | |
7a30264c VZ |
17151 | fi |
17152 | done | |
9d8deca0 | 17153 | |
8284b0c5 | 17154 | |
d74f4b5a | 17155 | if test "$WCSLEN_FOUND" = 0; then |
7a30264c | 17156 | if test "$TOOLKIT" = "MSW"; then |
a0b9e27f | 17157 | echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6 |
8b389fab | 17158 | echo "configure:17159: checking for wcslen in -lmsvcrt" >&5 |
a0b9e27f MB |
17159 | ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'` |
17160 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17161 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17162 | else |
a0b9e27f | 17163 | ac_save_LIBS="$LIBS" |
7a30264c | 17164 | LIBS="-lmsvcrt $LIBS" |
a0b9e27f | 17165 | cat > conftest.$ac_ext <<EOF |
8b389fab | 17166 | #line 17167 "configure" |
10f2d63a | 17167 | #include "confdefs.h" |
4f14bcd8 GD |
17168 | /* Override any gcc2 internal prototype to avoid an error. */ |
17169 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17170 | builtin and then its argument prototype would still apply. */ |
17171 | char wcslen(); | |
17172 | ||
17173 | int main() { | |
17174 | wcslen() | |
17175 | ; return 0; } | |
17176 | EOF | |
8b389fab | 17177 | if { (eval echo configure:17178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17178 | rm -rf conftest* |
17179 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17180 | else | |
17181 | echo "configure: failed program was:" >&5 | |
17182 | cat conftest.$ac_ext >&5 | |
17183 | rm -rf conftest* | |
17184 | eval "ac_cv_lib_$ac_lib_var=no" | |
17185 | fi | |
17186 | rm -f conftest* | |
17187 | LIBS="$ac_save_LIBS" | |
17188 | ||
17189 | fi | |
17190 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17191 | echo "$ac_t""yes" 1>&6 | |
d74f4b5a | 17192 | WCHAR_OK=1 |
a0b9e27f MB |
17193 | else |
17194 | echo "$ac_t""no" 1>&6 | |
d29b553b | 17195 | fi |
698dcdb6 | 17196 | |
7a30264c | 17197 | else |
a0b9e27f | 17198 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 |
8b389fab | 17199 | echo "configure:17200: checking for wcslen in -lw" >&5 |
a0b9e27f MB |
17200 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
17201 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17202 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 17203 | else |
a0b9e27f | 17204 | ac_save_LIBS="$LIBS" |
7a30264c | 17205 | LIBS="-lw $LIBS" |
a0b9e27f | 17206 | cat > conftest.$ac_ext <<EOF |
8b389fab | 17207 | #line 17208 "configure" |
95c8801c | 17208 | #include "confdefs.h" |
4f14bcd8 GD |
17209 | /* Override any gcc2 internal prototype to avoid an error. */ |
17210 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17211 | builtin and then its argument prototype would still apply. */ |
17212 | char wcslen(); | |
52127426 | 17213 | |
a0b9e27f MB |
17214 | int main() { |
17215 | wcslen() | |
17216 | ; return 0; } | |
17217 | EOF | |
8b389fab | 17218 | if { (eval echo configure:17219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17219 | rm -rf conftest* |
17220 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17221 | else | |
17222 | echo "configure: failed program was:" >&5 | |
17223 | cat conftest.$ac_ext >&5 | |
17224 | rm -rf conftest* | |
17225 | eval "ac_cv_lib_$ac_lib_var=no" | |
17226 | fi | |
17227 | rm -f conftest* | |
17228 | LIBS="$ac_save_LIBS" | |
17229 | ||
17230 | fi | |
17231 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17232 | echo "$ac_t""yes" 1>&6 | |
17233 | ||
7a30264c | 17234 | WCHAR_LINK=" -lw" |
d74f4b5a | 17235 | WCSLEN_FOUND=1 |
a0b9e27f MB |
17236 | |
17237 | else | |
17238 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 17239 | fi |
10f2d63a | 17240 | |
7a30264c | 17241 | fi |
d29b553b | 17242 | fi |
95c8801c | 17243 | |
d74f4b5a | 17244 | if test "$WCSLEN_FOUND" = 1; then |
a0b9e27f | 17245 | cat >> confdefs.h <<\EOF |
d74f4b5a | 17246 | #define HAVE_WCSLEN 1 |
a0b9e27f | 17247 | EOF |
10f2d63a | 17248 | |
d74f4b5a | 17249 | fi |
52127426 | 17250 | |
a0b9e27f | 17251 | for ac_func in wcsrtombs |
eb4efbdc | 17252 | do |
a0b9e27f | 17253 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8b389fab | 17254 | echo "configure:17255: checking for $ac_func" >&5 |
a0b9e27f MB |
17255 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17256 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17257 | else | |
17258 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 17259 | #line 17260 "configure" |
eb4efbdc VZ |
17260 | #include "confdefs.h" |
17261 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17262 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
17263 | #include <assert.h> |
17264 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4f14bcd8 | 17265 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
17266 | builtin and then its argument prototype would still apply. */ |
17267 | char $ac_func(); | |
17268 | ||
17269 | int main() { | |
17270 | ||
10f2d63a VZ |
17271 | /* The GNU C library defines this for functions which it implements |
17272 | to always fail with ENOSYS. Some functions are actually named | |
17273 | something starting with __ and the normal name is an alias. */ | |
247f5006 | 17274 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
10f2d63a VZ |
17275 | choke me |
17276 | #else | |
a0b9e27f | 17277 | $ac_func(); |
10f2d63a VZ |
17278 | #endif |
17279 | ||
a0b9e27f MB |
17280 | ; return 0; } |
17281 | EOF | |
8b389fab | 17282 | if { (eval echo configure:17283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17283 | rm -rf conftest* |
17284 | eval "ac_cv_func_$ac_func=yes" | |
17285 | else | |
17286 | echo "configure: failed program was:" >&5 | |
17287 | cat conftest.$ac_ext >&5 | |
17288 | rm -rf conftest* | |
17289 | eval "ac_cv_func_$ac_func=no" | |
17290 | fi | |
17291 | rm -f conftest* | |
17292 | fi | |
270a909e | 17293 | |
a0b9e27f MB |
17294 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17295 | echo "$ac_t""yes" 1>&6 | |
17296 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17297 | cat >> confdefs.h <<EOF | |
17298 | #define $ac_tr_func 1 | |
17299 | EOF | |
17300 | ||
17301 | else | |
17302 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 17303 | fi |
247f5006 | 17304 | done |
1e487827 | 17305 | |
af15babd | 17306 | else |
a0b9e27f | 17307 | echo "configure: warning: Wide character support is unavailable" 1>&2 |
7b4a847f | 17308 | fi |
52127426 | 17309 | |
8284b0c5 | 17310 | |
a0b9e27f MB |
17311 | ac_ext=C |
17312 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
247f5006 | 17313 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
17314 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17315 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17316 | cross_compiling=$ac_cv_prog_cxx_cross | |
af15babd | 17317 | |
247f5006 VZ |
17318 | |
17319 | for ac_func in vsnprintf | |
17320 | do | |
a0b9e27f | 17321 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8b389fab | 17322 | echo "configure:17323: checking for $ac_func" >&5 |
a0b9e27f MB |
17323 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17324 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17325 | else | |
17326 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 17327 | #line 17328 "configure" |
af15babd | 17328 | #include "confdefs.h" |
247f5006 | 17329 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 17330 | which can conflict with char $ac_func(); below. */ |
247f5006 VZ |
17331 | #include <assert.h> |
17332 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17333 | #ifdef __cplusplus | |
17334 | extern "C" | |
17335 | #endif | |
17336 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17337 | builtin and then its argument prototype would still apply. */ |
17338 | char $ac_func(); | |
17339 | ||
17340 | int main() { | |
17341 | ||
247f5006 VZ |
17342 | /* The GNU C library defines this for functions which it implements |
17343 | to always fail with ENOSYS. Some functions are actually named | |
17344 | something starting with __ and the normal name is an alias. */ | |
17345 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17346 | choke me | |
17347 | #else | |
a0b9e27f | 17348 | $ac_func(); |
247f5006 | 17349 | #endif |
af15babd | 17350 | |
a0b9e27f MB |
17351 | ; return 0; } |
17352 | EOF | |
8b389fab | 17353 | if { (eval echo configure:17354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17354 | rm -rf conftest* |
17355 | eval "ac_cv_func_$ac_func=yes" | |
17356 | else | |
17357 | echo "configure: failed program was:" >&5 | |
17358 | cat conftest.$ac_ext >&5 | |
17359 | rm -rf conftest* | |
17360 | eval "ac_cv_func_$ac_func=no" | |
17361 | fi | |
17362 | rm -f conftest* | |
17363 | fi | |
52127426 | 17364 | |
a0b9e27f MB |
17365 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17366 | echo "$ac_t""yes" 1>&6 | |
17367 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17368 | cat >> confdefs.h <<EOF | |
17369 | #define $ac_tr_func 1 | |
17370 | EOF | |
17371 | ||
17372 | else | |
17373 | echo "$ac_t""no" 1>&6 | |
5c6fa7d2 | 17374 | fi |
247f5006 | 17375 | done |
8284b0c5 | 17376 | |
4f14bcd8 | 17377 | |
8d90d2f2 VZ |
17378 | if test "$ac_cv_func_vsnprintf" = "yes"; then |
17379 | echo $ac_n "checking for vsnprintf declaration""... $ac_c" 1>&6 | |
8b389fab | 17380 | echo "configure:17381: checking for vsnprintf declaration" >&5 |
8d90d2f2 VZ |
17381 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf_decl'+set}'`\" = set"; then |
17382 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17383 | else | |
17384 | ||
17385 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 17386 | #line 17387 "configure" |
8d90d2f2 VZ |
17387 | #include "confdefs.h" |
17388 | ||
17389 | #include <stdio.h> | |
17390 | #include <stdarg.h> | |
17391 | ||
17392 | int main() { | |
17393 | ||
17394 | char *buf; | |
17395 | va_list ap; | |
17396 | vsnprintf(buf, 10u, "%s", ap); | |
17397 | ||
17398 | ; return 0; } | |
17399 | EOF | |
8b389fab | 17400 | if { (eval echo configure:17401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
8d90d2f2 VZ |
17401 | rm -rf conftest* |
17402 | wx_cv_func_vsnprintf_decl=yes | |
17403 | else | |
17404 | echo "configure: failed program was:" >&5 | |
17405 | cat conftest.$ac_ext >&5 | |
17406 | rm -rf conftest* | |
17407 | wx_cv_func_vsnprintf_decl=no | |
17408 | ||
17409 | fi | |
17410 | rm -f conftest* | |
17411 | ||
17412 | ||
17413 | fi | |
17414 | ||
17415 | echo "$ac_t""$wx_cv_func_vsnprintf_decl" 1>&6 | |
17416 | ||
17417 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
17418 | cat >> confdefs.h <<\EOF | |
17419 | #define HAVE_VSNPRINTF_DECL 1 | |
17420 | EOF | |
17421 | ||
17422 | fi | |
17423 | fi | |
17424 | ||
247f5006 | 17425 | if test "$wxUSE_UNICODE" = yes; then |
a0b9e27f | 17426 | for ac_func in fputwc wprintf vswprintf |
d74f4b5a | 17427 | do |
a0b9e27f | 17428 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8b389fab | 17429 | echo "configure:17430: checking for $ac_func" >&5 |
a0b9e27f MB |
17430 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17431 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17432 | else | |
17433 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 17434 | #line 17435 "configure" |
d74f4b5a VZ |
17435 | #include "confdefs.h" |
17436 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17437 | which can conflict with char $ac_func(); below. */ |
d74f4b5a VZ |
17438 | #include <assert.h> |
17439 | /* Override any gcc2 internal prototype to avoid an error. */ | |
247f5006 VZ |
17440 | #ifdef __cplusplus |
17441 | extern "C" | |
17442 | #endif | |
d74f4b5a | 17443 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
17444 | builtin and then its argument prototype would still apply. */ |
17445 | char $ac_func(); | |
17446 | ||
17447 | int main() { | |
17448 | ||
d74f4b5a VZ |
17449 | /* The GNU C library defines this for functions which it implements |
17450 | to always fail with ENOSYS. Some functions are actually named | |
17451 | something starting with __ and the normal name is an alias. */ | |
17452 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17453 | choke me | |
17454 | #else | |
a0b9e27f | 17455 | $ac_func(); |
d74f4b5a VZ |
17456 | #endif |
17457 | ||
a0b9e27f MB |
17458 | ; return 0; } |
17459 | EOF | |
8b389fab | 17460 | if { (eval echo configure:17461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17461 | rm -rf conftest* |
17462 | eval "ac_cv_func_$ac_func=yes" | |
17463 | else | |
17464 | echo "configure: failed program was:" >&5 | |
17465 | cat conftest.$ac_ext >&5 | |
17466 | rm -rf conftest* | |
17467 | eval "ac_cv_func_$ac_func=no" | |
17468 | fi | |
17469 | rm -f conftest* | |
17470 | fi | |
d74f4b5a | 17471 | |
a0b9e27f MB |
17472 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17473 | echo "$ac_t""yes" 1>&6 | |
17474 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17475 | cat >> confdefs.h <<EOF | |
17476 | #define $ac_tr_func 1 | |
17477 | EOF | |
17478 | ||
17479 | else | |
17480 | echo "$ac_t""no" 1>&6 | |
d74f4b5a VZ |
17481 | fi |
17482 | done | |
17483 | ||
8d90d2f2 | 17484 | |
79668cae | 17485 | echo $ac_n "checking for _vsnwprintf""... $ac_c" 1>&6 |
8b389fab | 17486 | echo "configure:17487: checking for _vsnwprintf" >&5 |
79668cae | 17487 | cat > conftest.$ac_ext <<EOF |
8b389fab | 17488 | #line 17489 "configure" |
79668cae MB |
17489 | #include "confdefs.h" |
17490 | #include <wchar.h> | |
17491 | int main() { | |
17492 | &_vsnwprintf; | |
17493 | ; return 0; } | |
17494 | EOF | |
8b389fab | 17495 | if { (eval echo configure:17496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
79668cae MB |
17496 | rm -rf conftest* |
17497 | echo "$ac_t""yes" 1>&6 | |
17498 | cat >> confdefs.h <<\EOF | |
17499 | #define HAVE__VSNWPRINTF 1 | |
17500 | EOF | |
17501 | ||
17502 | else | |
17503 | echo "configure: failed program was:" >&5 | |
17504 | cat conftest.$ac_ext >&5 | |
17505 | rm -rf conftest* | |
17506 | echo "$ac_t""no" 1>&6 | |
17507 | fi | |
17508 | rm -f conftest*; | |
d74f4b5a VZ |
17509 | fi |
17510 | ||
247f5006 | 17511 | ac_ext=c |
a0b9e27f | 17512 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
247f5006 | 17513 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
17514 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17515 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17516 | cross_compiling=$ac_cv_prog_cc_cross | |
247f5006 VZ |
17517 | |
17518 | ||
17519 | ||
17520 | ||
4f14bcd8 | 17521 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 17522 | |
8284b0c5 MB |
17523 | |
17524 | ||
a0b9e27f MB |
17525 | ac_ext=C |
17526 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 17527 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
17528 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17529 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17530 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 17531 | |
52127426 | 17532 | |
a0b9e27f MB |
17533 | |
17534 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
b040e242 VS |
17535 | if test "${with_libiconv_prefix+set}" = set; then |
17536 | withval="$with_libiconv_prefix" | |
a0b9e27f | 17537 | |
b040e242 VS |
17538 | for dir in `echo "$withval" | tr : ' '`; do |
17539 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
17540 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
17541 | done | |
a0b9e27f MB |
17542 | |
17543 | fi | |
b040e242 VS |
17544 | |
17545 | ||
a0b9e27f | 17546 | echo $ac_n "checking for iconv""... $ac_c" 1>&6 |
8b389fab | 17547 | echo "configure:17548: checking for iconv" >&5 |
a0b9e27f MB |
17548 | if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then |
17549 | echo $ac_n "(cached) $ac_c" 1>&6 | |
af15babd | 17550 | else |
a0b9e27f | 17551 | |
b040e242 VS |
17552 | am_cv_func_iconv="no, consider installing GNU libiconv" |
17553 | am_cv_lib_iconv=no | |
a0b9e27f | 17554 | cat > conftest.$ac_ext <<EOF |
8b389fab | 17555 | #line 17556 "configure" |
af15babd | 17556 | #include "confdefs.h" |
b040e242 | 17557 | #include <stdlib.h> |
4f14bcd8 | 17558 | #include <iconv.h> |
a0b9e27f | 17559 | int main() { |
b040e242 VS |
17560 | iconv_t cd = iconv_open("",""); |
17561 | iconv(cd,NULL,NULL,NULL,NULL); | |
17562 | iconv_close(cd); | |
a0b9e27f MB |
17563 | ; return 0; } |
17564 | EOF | |
8b389fab | 17565 | if { (eval echo configure:17566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 17566 | rm -rf conftest* |
b040e242 | 17567 | am_cv_func_iconv=yes |
af15babd | 17568 | else |
a0b9e27f MB |
17569 | echo "configure: failed program was:" >&5 |
17570 | cat conftest.$ac_ext >&5 | |
b040e242 | 17571 | fi |
a0b9e27f | 17572 | rm -f conftest* |
b040e242 VS |
17573 | if test "$am_cv_func_iconv" != yes; then |
17574 | am_save_LIBS="$LIBS" | |
17575 | LIBS="$LIBS -liconv" | |
a0b9e27f | 17576 | cat > conftest.$ac_ext <<EOF |
8b389fab | 17577 | #line 17578 "configure" |
b040e242 VS |
17578 | #include "confdefs.h" |
17579 | #include <stdlib.h> | |
17580 | #include <iconv.h> | |
a0b9e27f | 17581 | int main() { |
b040e242 VS |
17582 | iconv_t cd = iconv_open("",""); |
17583 | iconv(cd,NULL,NULL,NULL,NULL); | |
17584 | iconv_close(cd); | |
a0b9e27f MB |
17585 | ; return 0; } |
17586 | EOF | |
8b389fab | 17587 | if { (eval echo configure:17588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 17588 | rm -rf conftest* |
b040e242 VS |
17589 | am_cv_lib_iconv=yes |
17590 | am_cv_func_iconv=yes | |
17591 | else | |
a0b9e27f MB |
17592 | echo "configure: failed program was:" >&5 |
17593 | cat conftest.$ac_ext >&5 | |
af15babd | 17594 | fi |
a0b9e27f | 17595 | rm -f conftest* |
b040e242 VS |
17596 | LIBS="$am_save_LIBS" |
17597 | fi | |
a0b9e27f | 17598 | |
247f5006 | 17599 | fi |
247f5006 | 17600 | |
a0b9e27f MB |
17601 | echo "$ac_t""$am_cv_func_iconv" 1>&6 |
17602 | if test "$am_cv_func_iconv" = yes; then | |
17603 | cat >> confdefs.h <<\EOF | |
b040e242 | 17604 | #define HAVE_ICONV 1 |
a0b9e27f | 17605 | EOF |
b040e242 | 17606 | |
a0b9e27f | 17607 | echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6 |
8b389fab | 17608 | echo "configure:17609: checking if iconv needs const" >&5 |
a0b9e27f MB |
17609 | if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then |
17610 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b040e242 | 17611 | else |
a0b9e27f | 17612 | cat > conftest.$ac_ext <<EOF |
8b389fab | 17613 | #line 17614 "configure" |
b040e242 VS |
17614 | #include "confdefs.h" |
17615 | ||
17616 | #include <stdlib.h> | |
17617 | #include <iconv.h> | |
17618 | extern | |
17619 | #ifdef __cplusplus | |
17620 | "C" | |
17621 | #endif | |
17622 | #if defined(__STDC__) || defined(__cplusplus) | |
17623 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
17624 | #else | |
17625 | size_t iconv(); | |
17626 | #endif | |
a0b9e27f MB |
17627 | |
17628 | int main() { | |
af15babd | 17629 | |
a0b9e27f MB |
17630 | ; return 0; } |
17631 | EOF | |
8b389fab | 17632 | if { (eval echo configure:17633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 17633 | rm -rf conftest* |
b7043674 | 17634 | wx_cv_func_iconv_const="no" |
b040e242 | 17635 | else |
a0b9e27f MB |
17636 | echo "configure: failed program was:" >&5 |
17637 | cat conftest.$ac_ext >&5 | |
17638 | rm -rf conftest* | |
17639 | wx_cv_func_iconv_const="yes" | |
17640 | ||
5c6fa7d2 | 17641 | fi |
a0b9e27f MB |
17642 | rm -f conftest* |
17643 | ||
247f5006 | 17644 | fi |
a0b9e27f MB |
17645 | |
17646 | echo "$ac_t""$wx_cv_func_iconv_const" 1>&6 | |
b7043674 VZ |
17647 | |
17648 | iconv_const= | |
1c405bb5 | 17649 | if test "x$wx_cv_func_iconv_const" = "xyes"; then |
b7043674 VZ |
17650 | iconv_const="const" |
17651 | fi | |
17652 | ||
a0b9e27f | 17653 | cat >> confdefs.h <<EOF |
f09359cf | 17654 | #define ICONV_CONST $iconv_const |
a0b9e27f | 17655 | EOF |
b040e242 VS |
17656 | |
17657 | fi | |
17658 | LIBICONV= | |
17659 | if test "$am_cv_lib_iconv" = yes; then | |
17660 | LIBICONV="-liconv" | |
17661 | fi | |
a0b9e27f | 17662 | |
b040e242 VS |
17663 | |
17664 | LIBS="$LIBICONV $LIBS" | |
4f14bcd8 | 17665 | ac_ext=c |
a0b9e27f | 17666 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 17667 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
17668 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17669 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17670 | cross_compiling=$ac_cv_prog_cc_cross | |
7b4a847f | 17671 | |
5c6fa7d2 | 17672 | |
8284b0c5 | 17673 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
a0b9e27f | 17674 | for ac_func in sigaction |
af15babd | 17675 | do |
a0b9e27f | 17676 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8b389fab | 17677 | echo "configure:17678: checking for $ac_func" >&5 |
a0b9e27f MB |
17678 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17679 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17680 | else | |
17681 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 17682 | #line 17683 "configure" |
af15babd VZ |
17683 | #include "confdefs.h" |
17684 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17685 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17686 | #include <assert.h> |
17687 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17688 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17689 | builtin and then its argument prototype would still apply. */ |
17690 | char $ac_func(); | |
17691 | ||
17692 | int main() { | |
17693 | ||
af15babd VZ |
17694 | /* The GNU C library defines this for functions which it implements |
17695 | to always fail with ENOSYS. Some functions are actually named | |
17696 | something starting with __ and the normal name is an alias. */ | |
17697 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17698 | choke me | |
17699 | #else | |
a0b9e27f | 17700 | $ac_func(); |
af15babd VZ |
17701 | #endif |
17702 | ||
a0b9e27f MB |
17703 | ; return 0; } |
17704 | EOF | |
8b389fab | 17705 | if { (eval echo configure:17706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17706 | rm -rf conftest* |
17707 | eval "ac_cv_func_$ac_func=yes" | |
17708 | else | |
17709 | echo "configure: failed program was:" >&5 | |
17710 | cat conftest.$ac_ext >&5 | |
17711 | rm -rf conftest* | |
17712 | eval "ac_cv_func_$ac_func=no" | |
17713 | fi | |
17714 | rm -f conftest* | |
17715 | fi | |
7b4a847f | 17716 | |
a0b9e27f MB |
17717 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17718 | echo "$ac_t""yes" 1>&6 | |
17719 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17720 | cat >> confdefs.h <<EOF | |
17721 | #define $ac_tr_func 1 | |
17722 | EOF | |
17723 | ||
17724 | else | |
17725 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
17726 | fi |
17727 | done | |
17728 | ||
8284b0c5 | 17729 | |
4f14bcd8 | 17730 | if test "$ac_cv_func_sigaction" = "no"; then |
a0b9e27f | 17731 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 |
4f14bcd8 GD |
17732 | wxUSE_ON_FATAL_EXCEPTION=no |
17733 | fi | |
17734 | ||
17735 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
a0b9e27f MB |
17736 | |
17737 | ac_ext=C | |
17738 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 17739 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
17740 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17741 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17742 | cross_compiling=$ac_cv_prog_cxx_cross | |
7b4a847f | 17743 | |
5c6fa7d2 | 17744 | |
a0b9e27f | 17745 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 |
8b389fab | 17746 | echo "configure:17747: checking for sa_handler type" >&5 |
a0b9e27f MB |
17747 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
17748 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 17749 | else |
a0b9e27f MB |
17750 | |
17751 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 17752 | #line 17753 "configure" |
af15babd | 17753 | #include "confdefs.h" |
4f14bcd8 | 17754 | #include <signal.h> |
a0b9e27f | 17755 | int main() { |
4f14bcd8 GD |
17756 | |
17757 | extern void testSigHandler(int); | |
17758 | ||
17759 | struct sigaction sa; | |
17760 | sa.sa_handler = testSigHandler; | |
a0b9e27f MB |
17761 | |
17762 | ; return 0; } | |
17763 | EOF | |
8b389fab | 17764 | if { (eval echo configure:17765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
17765 | rm -rf conftest* |
17766 | ||
4f14bcd8 | 17767 | wx_cv_type_sa_handler=int |
a0b9e27f | 17768 | |
af15babd | 17769 | else |
a0b9e27f MB |
17770 | echo "configure: failed program was:" >&5 |
17771 | cat conftest.$ac_ext >&5 | |
17772 | rm -rf conftest* | |
17773 | ||
4f14bcd8 | 17774 | wx_cv_type_sa_handler=void |
a0b9e27f | 17775 | |
5c6fa7d2 | 17776 | fi |
a0b9e27f MB |
17777 | rm -f conftest* |
17778 | ||
247f5006 | 17779 | fi |
a0b9e27f MB |
17780 | |
17781 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
4f14bcd8 GD |
17782 | |
17783 | ac_ext=c | |
a0b9e27f | 17784 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 17785 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
17786 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17787 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17788 | cross_compiling=$ac_cv_prog_cc_cross | |
579d8138 | 17789 | |
8284b0c5 | 17790 | |
a0b9e27f | 17791 | cat >> confdefs.h <<EOF |
4f14bcd8 | 17792 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler |
a0b9e27f | 17793 | EOF |
af15babd | 17794 | |
4f14bcd8 GD |
17795 | fi |
17796 | fi | |
af15babd | 17797 | |
a1d22ad7 | 17798 | for ac_func in mkstemp mktemp |
af15babd | 17799 | do |
a0b9e27f | 17800 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8b389fab | 17801 | echo "configure:17802: checking for $ac_func" >&5 |
a0b9e27f MB |
17802 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17803 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17804 | else | |
17805 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 17806 | #line 17807 "configure" |
af15babd VZ |
17807 | #include "confdefs.h" |
17808 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17809 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17810 | #include <assert.h> |
17811 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17812 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17813 | builtin and then its argument prototype would still apply. */ |
17814 | char $ac_func(); | |
17815 | ||
17816 | int main() { | |
17817 | ||
af15babd VZ |
17818 | /* The GNU C library defines this for functions which it implements |
17819 | to always fail with ENOSYS. Some functions are actually named | |
17820 | something starting with __ and the normal name is an alias. */ | |
17821 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17822 | choke me | |
17823 | #else | |
a0b9e27f | 17824 | $ac_func(); |
af15babd VZ |
17825 | #endif |
17826 | ||
a0b9e27f MB |
17827 | ; return 0; } |
17828 | EOF | |
8b389fab | 17829 | if { (eval echo configure:17830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17830 | rm -rf conftest* |
17831 | eval "ac_cv_func_$ac_func=yes" | |
17832 | else | |
17833 | echo "configure: failed program was:" >&5 | |
17834 | cat conftest.$ac_ext >&5 | |
17835 | rm -rf conftest* | |
17836 | eval "ac_cv_func_$ac_func=no" | |
17837 | fi | |
17838 | rm -f conftest* | |
17839 | fi | |
af15babd | 17840 | |
a0b9e27f MB |
17841 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17842 | echo "$ac_t""yes" 1>&6 | |
17843 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17844 | cat >> confdefs.h <<EOF | |
17845 | #define $ac_tr_func 1 | |
17846 | EOF | |
ade35f11 | 17847 | break |
a0b9e27f MB |
17848 | else |
17849 | echo "$ac_t""no" 1>&6 | |
ade35f11 VZ |
17850 | fi |
17851 | done | |
17852 | ||
8284b0c5 | 17853 | |
a0b9e27f | 17854 | echo $ac_n "checking for statfs""... $ac_c" 1>&6 |
8b389fab | 17855 | echo "configure:17856: checking for statfs" >&5 |
a0b9e27f MB |
17856 | if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then |
17857 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 17858 | else |
a0b9e27f | 17859 | cat > conftest.$ac_ext <<EOF |
8b389fab | 17860 | #line 17861 "configure" |
4f14bcd8 GD |
17861 | #include "confdefs.h" |
17862 | ||
17863 | #if defined(__BSD__) | |
17864 | #include <sys/param.h> | |
17865 | #include <sys/mount.h> | |
17866 | #else | |
17867 | #include <sys/vfs.h> | |
17868 | #endif | |
a0b9e27f MB |
17869 | |
17870 | int main() { | |
4f14bcd8 GD |
17871 | |
17872 | long l; | |
17873 | struct statfs fs; | |
17874 | statfs("/", &fs); | |
17875 | l = fs.f_bsize; | |
17876 | l += fs.f_blocks; | |
17877 | l += fs.f_bavail; | |
a0b9e27f MB |
17878 | |
17879 | ; return 0; } | |
17880 | EOF | |
8b389fab | 17881 | if { (eval echo configure:17882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
17882 | rm -rf conftest* |
17883 | ||
4f14bcd8 | 17884 | wx_cv_func_statfs=yes |
a0b9e27f | 17885 | |
4f14bcd8 | 17886 | else |
a0b9e27f MB |
17887 | echo "configure: failed program was:" >&5 |
17888 | cat conftest.$ac_ext >&5 | |
17889 | rm -rf conftest* | |
17890 | ||
4f14bcd8 | 17891 | wx_cv_func_statfs=no |
a0b9e27f MB |
17892 | |
17893 | ||
5c6fa7d2 | 17894 | fi |
a0b9e27f | 17895 | rm -f conftest* |
8284b0c5 | 17896 | |
247f5006 | 17897 | fi |
a0b9e27f MB |
17898 | |
17899 | echo "$ac_t""$wx_cv_func_statfs" 1>&6 | |
4f14bcd8 GD |
17900 | |
17901 | if test "$wx_cv_func_statfs" = "yes"; then | |
54ab82b3 | 17902 | wx_cv_type_statvfs_t="struct statfs" |
a0b9e27f | 17903 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 17904 | #define HAVE_STATFS 1 |
a0b9e27f | 17905 | EOF |
4f14bcd8 GD |
17906 | |
17907 | else | |
a0b9e27f | 17908 | echo $ac_n "checking for statvfs""... $ac_c" 1>&6 |
8b389fab | 17909 | echo "configure:17910: checking for statvfs" >&5 |
a0b9e27f MB |
17910 | if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then |
17911 | echo $ac_n "(cached) $ac_c" 1>&6 | |
af15babd | 17912 | else |
a0b9e27f | 17913 | cat > conftest.$ac_ext <<EOF |
8b389fab | 17914 | #line 17915 "configure" |
af15babd | 17915 | #include "confdefs.h" |
af15babd | 17916 | |
54ab82b3 VZ |
17917 | #include <stddef.h> |
17918 | #include <sys/statvfs.h> | |
a0b9e27f MB |
17919 | |
17920 | int main() { | |
af15babd | 17921 | |
54ab82b3 | 17922 | statvfs("/", NULL); |
a0b9e27f MB |
17923 | |
17924 | ; return 0; } | |
17925 | EOF | |
8b389fab | 17926 | if { (eval echo configure:17927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 17927 | rm -rf conftest* |
54ab82b3 | 17928 | wx_cv_func_statvfs=yes |
af15babd | 17929 | else |
a0b9e27f MB |
17930 | echo "configure: failed program was:" >&5 |
17931 | cat conftest.$ac_ext >&5 | |
17932 | rm -rf conftest* | |
54ab82b3 | 17933 | wx_cv_func_statvfs=no |
a0b9e27f | 17934 | |
5c6fa7d2 | 17935 | fi |
a0b9e27f MB |
17936 | rm -f conftest* |
17937 | ||
247f5006 | 17938 | fi |
a0b9e27f MB |
17939 | |
17940 | echo "$ac_t""$wx_cv_func_statvfs" 1>&6 | |
af15babd | 17941 | |
4f14bcd8 | 17942 | if test "$wx_cv_func_statvfs" = "yes"; then |
54ab82b3 VZ |
17943 | |
17944 | ac_ext=C | |
17945 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
17946 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17947 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
17948 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17949 | cross_compiling=$ac_cv_prog_cxx_cross | |
17950 | ||
17951 | ||
17952 | echo $ac_n "checking for statvfs argument type""... $ac_c" 1>&6 | |
8b389fab | 17953 | echo "configure:17954: checking for statvfs argument type" >&5 |
54ab82b3 VZ |
17954 | if eval "test \"`echo '$''{'wx_cv_type_statvfs_t'+set}'`\" = set"; then |
17955 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17956 | else | |
17957 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 17958 | #line 17959 "configure" |
54ab82b3 VZ |
17959 | #include "confdefs.h" |
17960 | ||
17961 | #include <sys/statvfs.h> | |
17962 | ||
17963 | int main() { | |
17964 | ||
17965 | long l; | |
17966 | statvfs_t fs; | |
17967 | statvfs("/", &fs); | |
17968 | l = fs.f_bsize; | |
17969 | l += fs.f_blocks; | |
17970 | l += fs.f_bavail; | |
17971 | ||
17972 | ; return 0; } | |
17973 | EOF | |
8b389fab | 17974 | if { (eval echo configure:17975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
54ab82b3 VZ |
17975 | rm -rf conftest* |
17976 | wx_cv_type_statvfs_t=statvfs_t | |
17977 | else | |
17978 | echo "configure: failed program was:" >&5 | |
17979 | cat conftest.$ac_ext >&5 | |
17980 | rm -rf conftest* | |
17981 | ||
17982 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 17983 | #line 17984 "configure" |
54ab82b3 VZ |
17984 | #include "confdefs.h" |
17985 | ||
17986 | #include <sys/statvfs.h> | |
17987 | ||
17988 | int main() { | |
17989 | ||
17990 | long l; | |
65d8ef1e | 17991 | struct statvfs fs; |
54ab82b3 VZ |
17992 | statvfs("/", &fs); |
17993 | l = fs.f_bsize; | |
17994 | l += fs.f_blocks; | |
17995 | l += fs.f_bavail; | |
17996 | ||
17997 | ; return 0; } | |
17998 | EOF | |
8b389fab | 17999 | if { (eval echo configure:18000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
54ab82b3 VZ |
18000 | rm -rf conftest* |
18001 | wx_cv_type_statvfs_t="struct statvfs" | |
18002 | else | |
18003 | echo "configure: failed program was:" >&5 | |
18004 | cat conftest.$ac_ext >&5 | |
18005 | rm -rf conftest* | |
18006 | wx_cv_type_statvfs_t="unknown" | |
18007 | ||
18008 | fi | |
18009 | rm -f conftest* | |
18010 | ||
18011 | ||
18012 | fi | |
18013 | rm -f conftest* | |
18014 | ||
18015 | fi | |
18016 | ||
18017 | echo "$ac_t""$wx_cv_type_statvfs_t" 1>&6 | |
18018 | ||
18019 | ac_ext=c | |
18020 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
18021 | ac_cpp='$CPP $CPPFLAGS' | |
18022 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
18023 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18024 | cross_compiling=$ac_cv_prog_cc_cross | |
18025 | ||
18026 | ||
18027 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
18028 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18029 | #define HAVE_STATVFS 1 |
a0b9e27f | 18030 | EOF |
af15babd | 18031 | |
54ab82b3 | 18032 | fi |
4f14bcd8 | 18033 | else |
54ab82b3 | 18034 | wx_cv_type_statvfs_t="unknown" |
4f14bcd8 GD |
18035 | fi |
18036 | fi | |
af15babd | 18037 | |
54ab82b3 VZ |
18038 | if test "$wx_cv_type_statvfs_t" != "unknown"; then |
18039 | cat >> confdefs.h <<EOF | |
18040 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
18041 | EOF | |
18042 | ||
18043 | else | |
18044 | echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2 | |
18045 | fi | |
18046 | ||
4f14bcd8 | 18047 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
a0b9e27f | 18048 | for ac_func in fcntl flock |
af15babd | 18049 | do |
a0b9e27f | 18050 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8b389fab | 18051 | echo "configure:18052: checking for $ac_func" >&5 |
a0b9e27f MB |
18052 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18053 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18054 | else | |
18055 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 18056 | #line 18057 "configure" |
af15babd VZ |
18057 | #include "confdefs.h" |
18058 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 18059 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
18060 | #include <assert.h> |
18061 | /* Override any gcc2 internal prototype to avoid an error. */ | |
af15babd | 18062 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
18063 | builtin and then its argument prototype would still apply. */ |
18064 | char $ac_func(); | |
18065 | ||
18066 | int main() { | |
18067 | ||
af15babd VZ |
18068 | /* The GNU C library defines this for functions which it implements |
18069 | to always fail with ENOSYS. Some functions are actually named | |
18070 | something starting with __ and the normal name is an alias. */ | |
18071 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18072 | choke me | |
18073 | #else | |
a0b9e27f | 18074 | $ac_func(); |
af15babd VZ |
18075 | #endif |
18076 | ||
a0b9e27f MB |
18077 | ; return 0; } |
18078 | EOF | |
8b389fab | 18079 | if { (eval echo configure:18080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18080 | rm -rf conftest* |
18081 | eval "ac_cv_func_$ac_func=yes" | |
18082 | else | |
18083 | echo "configure: failed program was:" >&5 | |
18084 | cat conftest.$ac_ext >&5 | |
18085 | rm -rf conftest* | |
18086 | eval "ac_cv_func_$ac_func=no" | |
18087 | fi | |
18088 | rm -f conftest* | |
18089 | fi | |
18090 | ||
18091 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18092 | echo "$ac_t""yes" 1>&6 | |
18093 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18094 | cat >> confdefs.h <<EOF | |
18095 | #define $ac_tr_func 1 | |
18096 | EOF | |
4f14bcd8 | 18097 | break |
a0b9e27f MB |
18098 | else |
18099 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
18100 | fi |
18101 | done | |
18102 | ||
8284b0c5 | 18103 | |
4f14bcd8 | 18104 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
a0b9e27f | 18105 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 |
4f14bcd8 GD |
18106 | wxUSE_SNGLINST_CHECKER=no |
18107 | fi | |
18108 | fi | |
af15babd | 18109 | |
4f14bcd8 | 18110 | for ac_func in timegm |
af15babd | 18111 | do |
a0b9e27f | 18112 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8b389fab | 18113 | echo "configure:18114: checking for $ac_func" >&5 |
a0b9e27f MB |
18114 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18115 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18116 | else | |
18117 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 18118 | #line 18119 "configure" |
af15babd VZ |
18119 | #include "confdefs.h" |
18120 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 18121 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
18122 | #include <assert.h> |
18123 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18124 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18125 | builtin and then its argument prototype would still apply. */ |
18126 | char $ac_func(); | |
18127 | ||
18128 | int main() { | |
18129 | ||
af15babd VZ |
18130 | /* The GNU C library defines this for functions which it implements |
18131 | to always fail with ENOSYS. Some functions are actually named | |
18132 | something starting with __ and the normal name is an alias. */ | |
247f5006 VZ |
18133 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
18134 | choke me | |
18135 | #else | |
a0b9e27f | 18136 | $ac_func(); |
247f5006 VZ |
18137 | #endif |
18138 | ||
a0b9e27f MB |
18139 | ; return 0; } |
18140 | EOF | |
8b389fab | 18141 | if { (eval echo configure:18142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18142 | rm -rf conftest* |
18143 | eval "ac_cv_func_$ac_func=yes" | |
18144 | else | |
18145 | echo "configure: failed program was:" >&5 | |
18146 | cat conftest.$ac_ext >&5 | |
18147 | rm -rf conftest* | |
18148 | eval "ac_cv_func_$ac_func=no" | |
18149 | fi | |
18150 | rm -f conftest* | |
18151 | fi | |
703e0a69 | 18152 | |
a0b9e27f MB |
18153 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18154 | echo "$ac_t""yes" 1>&6 | |
18155 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18156 | cat >> confdefs.h <<EOF | |
18157 | #define $ac_tr_func 1 | |
18158 | EOF | |
18159 | ||
18160 | else | |
18161 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
18162 | fi |
18163 | done | |
18164 | ||
8284b0c5 | 18165 | |
4f14bcd8 | 18166 | for ac_func in putenv setenv |
10f2d63a | 18167 | do |
a0b9e27f | 18168 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8b389fab | 18169 | echo "configure:18170: checking for $ac_func" >&5 |
a0b9e27f MB |
18170 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18171 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18172 | else | |
18173 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 18174 | #line 18175 "configure" |
af15babd VZ |
18175 | #include "confdefs.h" |
18176 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 18177 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
18178 | #include <assert.h> |
18179 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18180 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18181 | builtin and then its argument prototype would still apply. */ |
18182 | char $ac_func(); | |
18183 | ||
18184 | int main() { | |
18185 | ||
af15babd VZ |
18186 | /* The GNU C library defines this for functions which it implements |
18187 | to always fail with ENOSYS. Some functions are actually named | |
18188 | something starting with __ and the normal name is an alias. */ | |
18189 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18190 | choke me | |
18191 | #else | |
a0b9e27f | 18192 | $ac_func(); |
af15babd VZ |
18193 | #endif |
18194 | ||
a0b9e27f MB |
18195 | ; return 0; } |
18196 | EOF | |
8b389fab | 18197 | if { (eval echo configure:18198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18198 | rm -rf conftest* |
18199 | eval "ac_cv_func_$ac_func=yes" | |
18200 | else | |
18201 | echo "configure: failed program was:" >&5 | |
18202 | cat conftest.$ac_ext >&5 | |
18203 | rm -rf conftest* | |
18204 | eval "ac_cv_func_$ac_func=no" | |
18205 | fi | |
18206 | rm -f conftest* | |
18207 | fi | |
18208 | ||
18209 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18210 | echo "$ac_t""yes" 1>&6 | |
18211 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18212 | cat >> confdefs.h <<EOF | |
18213 | #define $ac_tr_func 1 | |
18214 | EOF | |
4f14bcd8 | 18215 | break |
a0b9e27f MB |
18216 | else |
18217 | echo "$ac_t""no" 1>&6 | |
af15babd | 18218 | fi |
af15babd VZ |
18219 | done |
18220 | ||
8284b0c5 | 18221 | |
4f14bcd8 GD |
18222 | HAVE_SOME_SLEEP_FUNC=0 |
18223 | if test "$USE_BEOS" = 1; then | |
a0b9e27f | 18224 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18225 | #define HAVE_SLEEP 1 |
a0b9e27f | 18226 | EOF |
af15babd | 18227 | |
4f14bcd8 | 18228 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
18229 | fi |
18230 | ||
4f14bcd8 | 18231 | if test "$USE_DARWIN" = 1; then |
a0b9e27f | 18232 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18233 | #define HAVE_USLEEP 1 |
a0b9e27f | 18234 | EOF |
10f2d63a | 18235 | |
4f14bcd8 | 18236 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
18237 | fi |
18238 | ||
4f14bcd8 GD |
18239 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
18240 | POSIX4_LINK= | |
a0b9e27f | 18241 | for ac_func in nanosleep |
4f14bcd8 | 18242 | do |
a0b9e27f | 18243 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8b389fab | 18244 | echo "configure:18245: checking for $ac_func" >&5 |
a0b9e27f MB |
18245 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18246 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18247 | else | |
18248 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 18249 | #line 18250 "configure" |
10f2d63a | 18250 | #include "confdefs.h" |
4f14bcd8 | 18251 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18252 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 18253 | #include <assert.h> |
10f2d63a VZ |
18254 | /* Override any gcc2 internal prototype to avoid an error. */ |
18255 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18256 | builtin and then its argument prototype would still apply. */ |
18257 | char $ac_func(); | |
18258 | ||
18259 | int main() { | |
18260 | ||
4f14bcd8 GD |
18261 | /* The GNU C library defines this for functions which it implements |
18262 | to always fail with ENOSYS. Some functions are actually named | |
18263 | something starting with __ and the normal name is an alias. */ | |
18264 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18265 | choke me | |
18266 | #else | |
a0b9e27f | 18267 | $ac_func(); |
4f14bcd8 GD |
18268 | #endif |
18269 | ||
a0b9e27f MB |
18270 | ; return 0; } |
18271 | EOF | |
8b389fab | 18272 | if { (eval echo configure:18273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18273 | rm -rf conftest* |
18274 | eval "ac_cv_func_$ac_func=yes" | |
18275 | else | |
18276 | echo "configure: failed program was:" >&5 | |
18277 | cat conftest.$ac_ext >&5 | |
18278 | rm -rf conftest* | |
18279 | eval "ac_cv_func_$ac_func=no" | |
18280 | fi | |
18281 | rm -f conftest* | |
18282 | fi | |
18283 | ||
18284 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18285 | echo "$ac_t""yes" 1>&6 | |
18286 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18287 | cat >> confdefs.h <<EOF | |
18288 | #define $ac_tr_func 1 | |
18289 | EOF | |
18290 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18291 | #define HAVE_NANOSLEEP 1 |
a0b9e27f | 18292 | EOF |
4f14bcd8 | 18293 | |
10f2d63a | 18294 | else |
a0b9e27f MB |
18295 | echo "$ac_t""no" 1>&6 |
18296 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
8b389fab | 18297 | echo "configure:18298: checking for nanosleep in -lposix4" >&5 |
a0b9e27f MB |
18298 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
18299 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18300 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 18301 | else |
a0b9e27f | 18302 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18303 | LIBS="-lposix4 $LIBS" |
a0b9e27f | 18304 | cat > conftest.$ac_ext <<EOF |
8b389fab | 18305 | #line 18306 "configure" |
10f2d63a VZ |
18306 | #include "confdefs.h" |
18307 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18308 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18309 | builtin and then its argument prototype would still apply. */ |
18310 | char nanosleep(); | |
18311 | ||
18312 | int main() { | |
18313 | nanosleep() | |
18314 | ; return 0; } | |
18315 | EOF | |
8b389fab | 18316 | if { (eval echo configure:18317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18317 | rm -rf conftest* |
18318 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18319 | else | |
18320 | echo "configure: failed program was:" >&5 | |
18321 | cat conftest.$ac_ext >&5 | |
18322 | rm -rf conftest* | |
18323 | eval "ac_cv_lib_$ac_lib_var=no" | |
18324 | fi | |
18325 | rm -f conftest* | |
18326 | LIBS="$ac_save_LIBS" | |
18327 | ||
18328 | fi | |
18329 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18330 | echo "$ac_t""yes" 1>&6 | |
18331 | ||
18332 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18333 | #define HAVE_NANOSLEEP 1 |
a0b9e27f | 18334 | EOF |
4f14bcd8 | 18335 | |
3d63bc3a | 18336 | POSIX4_LINK=" -lposix4" |
a0b9e27f | 18337 | |
10f2d63a | 18338 | else |
a0b9e27f | 18339 | echo "$ac_t""no" 1>&6 |
10f2d63a | 18340 | |
a0b9e27f | 18341 | for ac_func in usleep |
4f14bcd8 | 18342 | do |
a0b9e27f | 18343 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8b389fab | 18344 | echo "configure:18345: checking for $ac_func" >&5 |
a0b9e27f MB |
18345 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18346 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18347 | else | |
18348 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 18349 | #line 18350 "configure" |
10f2d63a | 18350 | #include "confdefs.h" |
4f14bcd8 | 18351 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18352 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
18353 | #include <assert.h> |
18354 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18355 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18356 | builtin and then its argument prototype would still apply. */ |
18357 | char $ac_func(); | |
18358 | ||
18359 | int main() { | |
18360 | ||
4f14bcd8 GD |
18361 | /* The GNU C library defines this for functions which it implements |
18362 | to always fail with ENOSYS. Some functions are actually named | |
18363 | something starting with __ and the normal name is an alias. */ | |
18364 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18365 | choke me | |
18366 | #else | |
a0b9e27f | 18367 | $ac_func(); |
4f14bcd8 GD |
18368 | #endif |
18369 | ||
a0b9e27f MB |
18370 | ; return 0; } |
18371 | EOF | |
8b389fab | 18372 | if { (eval echo configure:18373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18373 | rm -rf conftest* |
18374 | eval "ac_cv_func_$ac_func=yes" | |
18375 | else | |
18376 | echo "configure: failed program was:" >&5 | |
18377 | cat conftest.$ac_ext >&5 | |
18378 | rm -rf conftest* | |
18379 | eval "ac_cv_func_$ac_func=no" | |
18380 | fi | |
18381 | rm -f conftest* | |
18382 | fi | |
18383 | ||
18384 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18385 | echo "$ac_t""yes" 1>&6 | |
18386 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18387 | cat >> confdefs.h <<EOF | |
18388 | #define $ac_tr_func 1 | |
18389 | EOF | |
18390 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18391 | #define HAVE_USLEEP 1 |
a0b9e27f | 18392 | EOF |
4f14bcd8 | 18393 | |
698dcdb6 | 18394 | else |
a0b9e27f MB |
18395 | echo "$ac_t""no" 1>&6 |
18396 | echo "configure: warning: wxSleep() function will not work" 1>&2 | |
18397 | ||
10f2d63a | 18398 | fi |
4f14bcd8 | 18399 | done |
10f2d63a | 18400 | |
a0b9e27f MB |
18401 | |
18402 | ||
6232543b | 18403 | fi |
10f2d63a | 18404 | |
a0b9e27f MB |
18405 | |
18406 | ||
1e487827 | 18407 | fi |
4f14bcd8 | 18408 | done |
703e0a69 | 18409 | |
10f2d63a VZ |
18410 | fi |
18411 | ||
4f14bcd8 | 18412 | for ac_func in uname gethostname |
70846f0a | 18413 | do |
a0b9e27f | 18414 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8b389fab | 18415 | echo "configure:18416: checking for $ac_func" >&5 |
a0b9e27f MB |
18416 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18417 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18418 | else | |
18419 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 18420 | #line 18421 "configure" |
70846f0a VZ |
18421 | #include "confdefs.h" |
18422 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 18423 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
18424 | #include <assert.h> |
18425 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18426 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18427 | builtin and then its argument prototype would still apply. */ |
18428 | char $ac_func(); | |
18429 | ||
18430 | int main() { | |
18431 | ||
70846f0a VZ |
18432 | /* The GNU C library defines this for functions which it implements |
18433 | to always fail with ENOSYS. Some functions are actually named | |
18434 | something starting with __ and the normal name is an alias. */ | |
18435 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18436 | choke me | |
18437 | #else | |
a0b9e27f | 18438 | $ac_func(); |
70846f0a VZ |
18439 | #endif |
18440 | ||
a0b9e27f MB |
18441 | ; return 0; } |
18442 | EOF | |
8b389fab | 18443 | if { (eval echo configure:18444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18444 | rm -rf conftest* |
18445 | eval "ac_cv_func_$ac_func=yes" | |
18446 | else | |
18447 | echo "configure: failed program was:" >&5 | |
18448 | cat conftest.$ac_ext >&5 | |
18449 | rm -rf conftest* | |
18450 | eval "ac_cv_func_$ac_func=no" | |
18451 | fi | |
18452 | rm -f conftest* | |
18453 | fi | |
18454 | ||
18455 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18456 | echo "$ac_t""yes" 1>&6 | |
18457 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18458 | cat >> confdefs.h <<EOF | |
18459 | #define $ac_tr_func 1 | |
18460 | EOF | |
4f14bcd8 | 18461 | break |
a0b9e27f MB |
18462 | else |
18463 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
18464 | fi |
18465 | done | |
18466 | ||
8284b0c5 MB |
18467 | |
18468 | ||
a0b9e27f MB |
18469 | ac_ext=C |
18470 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 18471 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
18472 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18473 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18474 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 18475 | |
4f14bcd8 GD |
18476 | |
18477 | for ac_func in strtok_r | |
10f2d63a | 18478 | do |
a0b9e27f | 18479 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8b389fab | 18480 | echo "configure:18481: checking for $ac_func" >&5 |
a0b9e27f MB |
18481 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18482 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18483 | else | |
18484 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 18485 | #line 18486 "configure" |
10f2d63a | 18486 | #include "confdefs.h" |
4f14bcd8 | 18487 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18488 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
18489 | #include <assert.h> |
18490 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18491 | #ifdef __cplusplus | |
18492 | extern "C" | |
18493 | #endif | |
18494 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18495 | builtin and then its argument prototype would still apply. */ |
18496 | char $ac_func(); | |
18497 | ||
18498 | int main() { | |
18499 | ||
4f14bcd8 GD |
18500 | /* The GNU C library defines this for functions which it implements |
18501 | to always fail with ENOSYS. Some functions are actually named | |
18502 | something starting with __ and the normal name is an alias. */ | |
18503 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18504 | choke me | |
18505 | #else | |
a0b9e27f | 18506 | $ac_func(); |
4f14bcd8 GD |
18507 | #endif |
18508 | ||
a0b9e27f MB |
18509 | ; return 0; } |
18510 | EOF | |
8b389fab | 18511 | if { (eval echo configure:18512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18512 | rm -rf conftest* |
18513 | eval "ac_cv_func_$ac_func=yes" | |
18514 | else | |
18515 | echo "configure: failed program was:" >&5 | |
18516 | cat conftest.$ac_ext >&5 | |
18517 | rm -rf conftest* | |
18518 | eval "ac_cv_func_$ac_func=no" | |
18519 | fi | |
18520 | rm -f conftest* | |
18521 | fi | |
4f14bcd8 | 18522 | |
a0b9e27f MB |
18523 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18524 | echo "$ac_t""yes" 1>&6 | |
18525 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18526 | cat >> confdefs.h <<EOF | |
18527 | #define $ac_tr_func 1 | |
18528 | EOF | |
18529 | ||
18530 | else | |
18531 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
18532 | fi |
18533 | done | |
18534 | ||
8284b0c5 | 18535 | |
4f14bcd8 | 18536 | ac_ext=c |
a0b9e27f | 18537 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 18538 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
18539 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
18540 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
18541 | cross_compiling=$ac_cv_prog_cc_cross | |
7b4a847f | 18542 | |
5c6fa7d2 | 18543 | |
8284b0c5 | 18544 | INET_LINK= |
4f14bcd8 GD |
18545 | for ac_func in inet_addr |
18546 | do | |
a0b9e27f | 18547 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8b389fab | 18548 | echo "configure:18549: checking for $ac_func" >&5 |
a0b9e27f MB |
18549 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18550 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18551 | else | |
18552 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 18553 | #line 18554 "configure" |
10f2d63a | 18554 | #include "confdefs.h" |
4f14bcd8 | 18555 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18556 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 18557 | #include <assert.h> |
10f2d63a VZ |
18558 | /* Override any gcc2 internal prototype to avoid an error. */ |
18559 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18560 | builtin and then its argument prototype would still apply. */ |
18561 | char $ac_func(); | |
18562 | ||
18563 | int main() { | |
18564 | ||
4f14bcd8 GD |
18565 | /* The GNU C library defines this for functions which it implements |
18566 | to always fail with ENOSYS. Some functions are actually named | |
18567 | something starting with __ and the normal name is an alias. */ | |
18568 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18569 | choke me | |
18570 | #else | |
a0b9e27f | 18571 | $ac_func(); |
4f14bcd8 GD |
18572 | #endif |
18573 | ||
a0b9e27f MB |
18574 | ; return 0; } |
18575 | EOF | |
8b389fab | 18576 | if { (eval echo configure:18577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18577 | rm -rf conftest* |
18578 | eval "ac_cv_func_$ac_func=yes" | |
18579 | else | |
18580 | echo "configure: failed program was:" >&5 | |
18581 | cat conftest.$ac_ext >&5 | |
18582 | rm -rf conftest* | |
18583 | eval "ac_cv_func_$ac_func=no" | |
18584 | fi | |
18585 | rm -f conftest* | |
18586 | fi | |
18587 | ||
18588 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18589 | echo "$ac_t""yes" 1>&6 | |
18590 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18591 | cat >> confdefs.h <<EOF | |
18592 | #define $ac_tr_func 1 | |
18593 | EOF | |
18594 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18595 | #define HAVE_INET_ADDR 1 |
a0b9e27f | 18596 | EOF |
10f2d63a VZ |
18597 | |
18598 | else | |
a0b9e27f MB |
18599 | echo "$ac_t""no" 1>&6 |
18600 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 | |
8b389fab | 18601 | echo "configure:18602: checking for inet_addr in -lnsl" >&5 |
a0b9e27f MB |
18602 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
18603 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18604 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 18605 | else |
a0b9e27f | 18606 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18607 | LIBS="-lnsl $LIBS" |
a0b9e27f | 18608 | cat > conftest.$ac_ext <<EOF |
8b389fab | 18609 | #line 18610 "configure" |
10f2d63a VZ |
18610 | #include "confdefs.h" |
18611 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18612 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18613 | builtin and then its argument prototype would still apply. */ |
18614 | char inet_addr(); | |
18615 | ||
18616 | int main() { | |
18617 | inet_addr() | |
18618 | ; return 0; } | |
18619 | EOF | |
8b389fab | 18620 | if { (eval echo configure:18621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18621 | rm -rf conftest* |
18622 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18623 | else | |
18624 | echo "configure: failed program was:" >&5 | |
18625 | cat conftest.$ac_ext >&5 | |
18626 | rm -rf conftest* | |
18627 | eval "ac_cv_lib_$ac_lib_var=no" | |
18628 | fi | |
18629 | rm -f conftest* | |
18630 | LIBS="$ac_save_LIBS" | |
18631 | ||
18632 | fi | |
18633 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18634 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 18635 | INET_LINK="nsl" |
10f2d63a | 18636 | else |
a0b9e27f MB |
18637 | echo "$ac_t""no" 1>&6 |
18638 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 | |
8b389fab | 18639 | echo "configure:18640: checking for inet_addr in -lresolv" >&5 |
a0b9e27f MB |
18640 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
18641 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18642 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 18643 | else |
a0b9e27f | 18644 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18645 | LIBS="-lresolv $LIBS" |
a0b9e27f | 18646 | cat > conftest.$ac_ext <<EOF |
8b389fab | 18647 | #line 18648 "configure" |
7b4a847f | 18648 | #include "confdefs.h" |
5c6fa7d2 | 18649 | /* Override any gcc2 internal prototype to avoid an error. */ |
5c6fa7d2 | 18650 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
18651 | builtin and then its argument prototype would still apply. */ |
18652 | char inet_addr(); | |
18653 | ||
18654 | int main() { | |
18655 | inet_addr() | |
18656 | ; return 0; } | |
18657 | EOF | |
8b389fab | 18658 | if { (eval echo configure:18659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18659 | rm -rf conftest* |
18660 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18661 | else | |
18662 | echo "configure: failed program was:" >&5 | |
18663 | cat conftest.$ac_ext >&5 | |
18664 | rm -rf conftest* | |
18665 | eval "ac_cv_lib_$ac_lib_var=no" | |
18666 | fi | |
18667 | rm -f conftest* | |
18668 | LIBS="$ac_save_LIBS" | |
18669 | ||
18670 | fi | |
18671 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18672 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 18673 | INET_LINK="resolv" |
698dcdb6 | 18674 | else |
a0b9e27f MB |
18675 | echo "$ac_t""no" 1>&6 |
18676 | echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6 | |
8b389fab | 18677 | echo "configure:18678: checking for inet_addr in -lsocket" >&5 |
a0b9e27f MB |
18678 | ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'` |
18679 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18680 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3c011993 | 18681 | else |
a0b9e27f | 18682 | ac_save_LIBS="$LIBS" |
3c011993 | 18683 | LIBS="-lsocket $LIBS" |
a0b9e27f | 18684 | cat > conftest.$ac_ext <<EOF |
8b389fab | 18685 | #line 18686 "configure" |
3c011993 VZ |
18686 | #include "confdefs.h" |
18687 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18688 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18689 | builtin and then its argument prototype would still apply. */ |
18690 | char inet_addr(); | |
4f14bcd8 | 18691 | |
a0b9e27f MB |
18692 | int main() { |
18693 | inet_addr() | |
18694 | ; return 0; } | |
18695 | EOF | |
8b389fab | 18696 | if { (eval echo configure:18697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18697 | rm -rf conftest* |
18698 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18699 | else | |
18700 | echo "configure: failed program was:" >&5 | |
18701 | cat conftest.$ac_ext >&5 | |
18702 | rm -rf conftest* | |
18703 | eval "ac_cv_lib_$ac_lib_var=no" | |
8284b0c5 | 18704 | fi |
a0b9e27f MB |
18705 | rm -f conftest* |
18706 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 18707 | |
7b4a847f | 18708 | fi |
a0b9e27f MB |
18709 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
18710 | echo "$ac_t""yes" 1>&6 | |
18711 | INET_LINK="socket" | |
18712 | ||
18713 | else | |
18714 | echo "$ac_t""no" 1>&6 | |
18715 | fi | |
579d8138 | 18716 | |
a0b9e27f | 18717 | |
5c6fa7d2 | 18718 | fi |
52127426 | 18719 | |
a0b9e27f MB |
18720 | |
18721 | fi | |
247f5006 | 18722 | |
a0b9e27f | 18723 | |
8284b0c5 | 18724 | |
698dcdb6 | 18725 | fi |
4f14bcd8 GD |
18726 | done |
18727 | ||
8284b0c5 | 18728 | |
4f14bcd8 GD |
18729 | for ac_func in inet_aton |
18730 | do | |
a0b9e27f | 18731 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8b389fab | 18732 | echo "configure:18733: checking for $ac_func" >&5 |
a0b9e27f MB |
18733 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18734 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18735 | else | |
18736 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 18737 | #line 18738 "configure" |
f6bcfd97 | 18738 | #include "confdefs.h" |
4f14bcd8 | 18739 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18740 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 18741 | #include <assert.h> |
f6bcfd97 BP |
18742 | /* Override any gcc2 internal prototype to avoid an error. */ |
18743 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18744 | builtin and then its argument prototype would still apply. */ |
18745 | char $ac_func(); | |
18746 | ||
18747 | int main() { | |
18748 | ||
4f14bcd8 GD |
18749 | /* The GNU C library defines this for functions which it implements |
18750 | to always fail with ENOSYS. Some functions are actually named | |
18751 | something starting with __ and the normal name is an alias. */ | |
18752 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18753 | choke me | |
18754 | #else | |
a0b9e27f | 18755 | $ac_func(); |
4f14bcd8 GD |
18756 | #endif |
18757 | ||
a0b9e27f MB |
18758 | ; return 0; } |
18759 | EOF | |
8b389fab | 18760 | if { (eval echo configure:18761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18761 | rm -rf conftest* |
18762 | eval "ac_cv_func_$ac_func=yes" | |
18763 | else | |
18764 | echo "configure: failed program was:" >&5 | |
18765 | cat conftest.$ac_ext >&5 | |
18766 | rm -rf conftest* | |
18767 | eval "ac_cv_func_$ac_func=no" | |
18768 | fi | |
18769 | rm -f conftest* | |
18770 | fi | |
18771 | ||
18772 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18773 | echo "$ac_t""yes" 1>&6 | |
18774 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18775 | cat >> confdefs.h <<EOF | |
18776 | #define $ac_tr_func 1 | |
18777 | EOF | |
18778 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18779 | #define HAVE_INET_ATON 1 |
a0b9e27f | 18780 | EOF |
4f14bcd8 | 18781 | |
10f2d63a | 18782 | else |
a0b9e27f MB |
18783 | echo "$ac_t""no" 1>&6 |
18784 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 | |
8b389fab | 18785 | echo "configure:18786: checking for inet_aton in -l$INET_LINK" >&5 |
a0b9e27f MB |
18786 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
18787 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18788 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 18789 | else |
a0b9e27f | 18790 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18791 | LIBS="-l$INET_LINK $LIBS" |
a0b9e27f | 18792 | cat > conftest.$ac_ext <<EOF |
8b389fab | 18793 | #line 18794 "configure" |
10f2d63a | 18794 | #include "confdefs.h" |
6232543b | 18795 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 18796 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
18797 | builtin and then its argument prototype would still apply. */ |
18798 | char inet_aton(); | |
18799 | ||
18800 | int main() { | |
18801 | inet_aton() | |
18802 | ; return 0; } | |
18803 | EOF | |
8b389fab | 18804 | if { (eval echo configure:18805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18805 | rm -rf conftest* |
18806 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18807 | else | |
18808 | echo "configure: failed program was:" >&5 | |
18809 | cat conftest.$ac_ext >&5 | |
18810 | rm -rf conftest* | |
18811 | eval "ac_cv_lib_$ac_lib_var=no" | |
18812 | fi | |
18813 | rm -f conftest* | |
18814 | LIBS="$ac_save_LIBS" | |
4f14bcd8 | 18815 | |
10f2d63a | 18816 | fi |
a0b9e27f MB |
18817 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
18818 | echo "$ac_t""yes" 1>&6 | |
18819 | cat >> confdefs.h <<\EOF | |
18820 | #define HAVE_INET_ATON 1 | |
18821 | EOF | |
10f2d63a | 18822 | |
a0b9e27f MB |
18823 | else |
18824 | echo "$ac_t""no" 1>&6 | |
18825 | fi | |
247f5006 | 18826 | |
a0b9e27f | 18827 | |
10f2d63a | 18828 | fi |
4f14bcd8 | 18829 | done |
10f2d63a | 18830 | |
8284b0c5 | 18831 | |
4f14bcd8 | 18832 | if test "x$INET_LINK" != "x"; then |
a0b9e27f | 18833 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18834 | #define HAVE_INET_ADDR 1 |
a0b9e27f | 18835 | EOF |
4f14bcd8 | 18836 | |
3d63bc3a | 18837 | INET_LINK=" -l$INET_LINK" |
6232543b | 18838 | fi |
10f2d63a | 18839 | |
1e487827 | 18840 | fi |
703e0a69 | 18841 | |
8284b0c5 | 18842 | |
a0b9e27f | 18843 | cat > confcache <<\EOF |
4f14bcd8 GD |
18844 | # This file is a shell script that caches the results of configure |
18845 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
18846 | # scripts and configure runs. It is not useful on other systems. |
18847 | # If it contains results you don't want to keep, you may remove or edit it. | |
4f14bcd8 | 18848 | # |
a0b9e27f MB |
18849 | # By default, configure uses ./config.cache as the cache file, |
18850 | # creating it if it does not exist already. You can give configure | |
18851 | # the --cache-file=FILE option to use a different cache file; that is | |
18852 | # what configure does when it calls configure scripts in | |
18853 | # subdirectories, so they share the cache. | |
18854 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
18855 | # config.status only pays attention to the cache file if you give it the | |
18856 | # --recheck option to rerun configure. | |
4f14bcd8 | 18857 | # |
a0b9e27f | 18858 | EOF |
4f14bcd8 GD |
18859 | # The following way of writing the cache mishandles newlines in values, |
18860 | # but we know of no workaround that is simple, portable, and efficient. | |
18861 | # So, don't put newlines in cache variables' values. | |
18862 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
18863 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
18864 | (set) 2>&1 | |
18865 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
18866 | *ac_space=\ *) | |
18867 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
18868 | # turns \\\\ into \\, and sed turns \\ into \). | |
18869 | sed -n \ | |
18870 | -e "s/'/'\\\\''/g" \ | |
18871 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
18872 | ;; | |
18873 | *) | |
18874 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
18875 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
18876 | ;; | |
18877 | esac >> confcache | |
18878 | if cmp -s $cache_file confcache; then | |
18879 | : | |
18880 | else | |
4f14bcd8 | 18881 | if test -w $cache_file; then |
a0b9e27f MB |
18882 | echo "updating cache $cache_file" |
18883 | cat confcache > $cache_file | |
f6bcfd97 | 18884 | else |
4f14bcd8 | 18885 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 18886 | fi |
4f14bcd8 GD |
18887 | fi |
18888 | rm -f confcache | |
f6bcfd97 | 18889 | |
8284b0c5 | 18890 | |
a0b9e27f | 18891 | |
009fead0 | 18892 | CPP_MT_FLAG= |
4f14bcd8 GD |
18893 | if test "$TOOLKIT" != "MSW"; then |
18894 | ||
a0b9e27f | 18895 | |
7274f1c7 | 18896 | THREADS_LINK= |
009fead0 | 18897 | THREADS_CFLAGS= |
7274f1c7 RL |
18898 | |
18899 | if test "$wxUSE_THREADS" = "yes" ; then | |
89e6bf6d | 18900 | if test "$USE_BEOS" = 1; then |
a0b9e27f | 18901 | echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2 |
7274f1c7 RL |
18902 | wxUSE_THREADS="no" |
18903 | fi | |
4f14bcd8 | 18904 | fi |
4f14bcd8 | 18905 | |
7274f1c7 | 18906 | if test "$wxUSE_THREADS" = "yes" ; then |
a0b9e27f MB |
18907 | |
18908 | ||
009fead0 VZ |
18909 | THREAD_OPTS="-pthread" |
18910 | case "${host}" in | |
18911 | *-*-solaris2* | *-*-sunos4* ) | |
18912 | if test "x$GCC" = "xyes"; then | |
126be6b4 | 18913 | THREAD_OPTS="-pthreads $THREAD_OPTS" |
009fead0 VZ |
18914 | else |
18915 | THREAD_OPTS="-mt $THREAD_OPTS" | |
18916 | fi | |
18917 | ;; | |
18918 | *-*-freebsd*) | |
18919 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
18920 | ;; | |
17234b26 MB |
18921 | *-*-darwin* | *-*-cygwin* ) |
18922 | THREAD_OPTS="" | |
4101db81 | 18923 | ;; |
8f4a9a10 | 18924 | *-*-aix*) |
009fead0 VZ |
18925 | THREAD_OPTS="pthreads" |
18926 | ;; | |
4f5a7f74 VZ |
18927 | *-hp-hpux* ) |
18928 | if test "x$GCC" != "xyes"; then | |
18929 | THREAD_OPTS="" | |
18930 | fi | |
89e3b3e4 VZ |
18931 | ;; |
18932 | ||
18933 | *-*-irix* ) | |
18934 | if test "x$GCC" = "xyes"; then | |
18935 | THREAD_OPTS="" | |
18936 | fi | |
18937 | ;; | |
18938 | ||
18939 | *-*-*UnixWare*) | |
18940 | if test "x$GCC" != "xyes"; then | |
18941 | THREAD_OPTS="-Ethread" | |
18942 | fi | |
18943 | ;; | |
009fead0 | 18944 | esac |
4f14bcd8 | 18945 | |
02a1dfba | 18946 | THREAD_OPTS="$THREAD_OPTS pthread none" |
595e0e44 | 18947 | |
009fead0 VZ |
18948 | THREADS_OK=no |
18949 | for flag in $THREAD_OPTS; do | |
18950 | case $flag in | |
18951 | none) | |
a0b9e27f | 18952 | echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6 |
8b389fab | 18953 | echo "configure:18954: checking whether pthreads work without any flags" >&5 |
009fead0 | 18954 | ;; |
698dcdb6 | 18955 | |
009fead0 | 18956 | -*) |
a0b9e27f | 18957 | echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6 |
8b389fab | 18958 | echo "configure:18959: checking whether pthreads work with $flag" >&5 |
009fead0 VZ |
18959 | THREADS_CFLAGS="$flag" |
18960 | ;; | |
698dcdb6 | 18961 | |
009fead0 | 18962 | *) |
a0b9e27f | 18963 | echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6 |
8b389fab | 18964 | echo "configure:18965: checking for the pthreads library -l$flag" >&5 |
009fead0 VZ |
18965 | THREADS_LINK="-l$flag" |
18966 | ;; | |
18967 | esac | |
10f2d63a | 18968 | |
009fead0 VZ |
18969 | save_LIBS="$LIBS" |
18970 | save_CFLAGS="$CFLAGS" | |
18971 | LIBS="$THREADS_LINK $LIBS" | |
04727afd | 18972 | CFLAGS="$THREADS_CFLAGS $CFLAGS" |
10f2d63a | 18973 | |
a0b9e27f | 18974 | cat > conftest.$ac_ext <<EOF |
8b389fab | 18975 | #line 18976 "configure" |
009fead0 VZ |
18976 | #include "confdefs.h" |
18977 | #include <pthread.h> | |
a0b9e27f | 18978 | int main() { |
009fead0 | 18979 | pthread_create(0,0,0,0); |
a0b9e27f MB |
18980 | ; return 0; } |
18981 | EOF | |
8b389fab | 18982 | if { (eval echo configure:18983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 18983 | rm -rf conftest* |
009fead0 | 18984 | THREADS_OK=yes |
10f2d63a | 18985 | else |
a0b9e27f MB |
18986 | echo "configure: failed program was:" >&5 |
18987 | cat conftest.$ac_ext >&5 | |
6232543b | 18988 | fi |
a0b9e27f | 18989 | rm -f conftest* |
698dcdb6 | 18990 | |
009fead0 VZ |
18991 | LIBS="$save_LIBS" |
18992 | CFLAGS="$save_CFLAGS" | |
d9b9876f | 18993 | |
a0b9e27f | 18994 | echo "$ac_t""$THREADS_OK" 1>&6 |
009fead0 VZ |
18995 | if test "x$THREADS_OK" = "xyes"; then |
18996 | break; | |
18997 | fi | |
d9b9876f | 18998 | |
009fead0 VZ |
18999 | THREADS_LINK="" |
19000 | THREADS_CFLAGS="" | |
19001 | done | |
4f14bcd8 | 19002 | |
009fead0 VZ |
19003 | if test "x$THREADS_OK" != "xyes"; then |
19004 | wxUSE_THREADS=no | |
a0b9e27f | 19005 | echo "configure: warning: No thread support on this system... disabled" 1>&2 |
009fead0 | 19006 | else |
db82f09e VZ |
19007 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" |
19008 | LIBS="$THREADS_LINK $LIBS" | |
fe5a9cab | 19009 | |
a0b9e27f | 19010 | echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6 |
8b389fab | 19011 | echo "configure:19012: checking if more special flags are required for pthreads" >&5 |
009fead0 VZ |
19012 | flag=no |
19013 | case "${host}" in | |
2b5f62a0 VZ |
19014 | *-aix*) |
19015 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
19016 | flag="-D_THREAD_SAFE" | |
19017 | ;; | |
19018 | *-freebsd*) | |
009fead0 VZ |
19019 | flag="-D_THREAD_SAFE" |
19020 | ;; | |
06313569 GD |
19021 | *-hp-hpux* ) |
19022 | flag="-D_REENTRANT" | |
4f5a7f74 VZ |
19023 | if test "x$GCC" != "xyes"; then |
19024 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
19025 | fi | |
06313569 | 19026 | ;; |
009fead0 VZ |
19027 | *solaris* | alpha*-osf*) |
19028 | flag="-D_REENTRANT" | |
19029 | ;; | |
19030 | esac | |
a0b9e27f | 19031 | echo "$ac_t""${flag}" 1>&6 |
009fead0 | 19032 | if test "x$flag" != xno; then |
04727afd | 19033 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" |
009fead0 VZ |
19034 | fi |
19035 | ||
009fead0 | 19036 | if test "x$THREADS_CFLAGS" != "x"; then |
04727afd | 19037 | CFLAGS="$CFLAGS $THREADS_CFLAGS" |
009fead0 VZ |
19038 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" |
19039 | fi | |
19040 | fi | |
4f14bcd8 | 19041 | fi |
4f14bcd8 | 19042 | |
7274f1c7 | 19043 | if test "$wxUSE_THREADS" = "yes" ; then |
a0b9e27f | 19044 | for ac_func in thr_setconcurrency |
4f14bcd8 | 19045 | do |
a0b9e27f | 19046 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8b389fab | 19047 | echo "configure:19048: checking for $ac_func" >&5 |
a0b9e27f MB |
19048 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19049 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19050 | else | |
19051 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 19052 | #line 19053 "configure" |
d9b9876f | 19053 | #include "confdefs.h" |
4f14bcd8 | 19054 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 19055 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
19056 | #include <assert.h> |
19057 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19058 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19059 | builtin and then its argument prototype would still apply. */ |
19060 | char $ac_func(); | |
19061 | ||
19062 | int main() { | |
19063 | ||
4f14bcd8 GD |
19064 | /* The GNU C library defines this for functions which it implements |
19065 | to always fail with ENOSYS. Some functions are actually named | |
19066 | something starting with __ and the normal name is an alias. */ | |
19067 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19068 | choke me | |
19069 | #else | |
a0b9e27f | 19070 | $ac_func(); |
4f14bcd8 GD |
19071 | #endif |
19072 | ||
a0b9e27f MB |
19073 | ; return 0; } |
19074 | EOF | |
8b389fab | 19075 | if { (eval echo configure:19076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19076 | rm -rf conftest* |
19077 | eval "ac_cv_func_$ac_func=yes" | |
19078 | else | |
19079 | echo "configure: failed program was:" >&5 | |
19080 | cat conftest.$ac_ext >&5 | |
19081 | rm -rf conftest* | |
19082 | eval "ac_cv_func_$ac_func=no" | |
19083 | fi | |
19084 | rm -f conftest* | |
19085 | fi | |
698dcdb6 | 19086 | |
a0b9e27f MB |
19087 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
19088 | echo "$ac_t""yes" 1>&6 | |
19089 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19090 | cat >> confdefs.h <<EOF | |
19091 | #define $ac_tr_func 1 | |
19092 | EOF | |
19093 | ||
19094 | else | |
19095 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 19096 | fi |
4f14bcd8 | 19097 | done |
10f2d63a | 19098 | |
8284b0c5 | 19099 | |
a0b9e27f | 19100 | for ac_hdr in sched.h |
4f14bcd8 | 19101 | do |
a0b9e27f MB |
19102 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
19103 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
8b389fab | 19104 | echo "configure:19105: checking for $ac_hdr" >&5 |
a0b9e27f MB |
19105 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
19106 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19107 | else | |
19108 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 19109 | #line 19110 "configure" |
247f5006 | 19110 | #include "confdefs.h" |
a0b9e27f MB |
19111 | #include <$ac_hdr> |
19112 | EOF | |
19113 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8b389fab | 19114 | { (eval echo configure:19115: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
19115 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
19116 | if test -z "$ac_err"; then | |
19117 | rm -rf conftest* | |
19118 | eval "ac_cv_header_$ac_safe=yes" | |
19119 | else | |
19120 | echo "$ac_err" >&5 | |
19121 | echo "configure: failed program was:" >&5 | |
4f14bcd8 | 19122 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
19123 | rm -rf conftest* |
19124 | eval "ac_cv_header_$ac_safe=no" | |
13111b2a | 19125 | fi |
a0b9e27f | 19126 | rm -f conftest* |
10f2d63a | 19127 | fi |
a0b9e27f MB |
19128 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
19129 | echo "$ac_t""yes" 1>&6 | |
19130 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
19131 | cat >> confdefs.h <<EOF | |
19132 | #define $ac_tr_hdr 1 | |
19133 | EOF | |
19134 | ||
19135 | else | |
19136 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 | 19137 | fi |
4f14bcd8 | 19138 | done |
f6bcfd97 | 19139 | |
009fead0 | 19140 | if test "$ac_cv_header_sched_h" = "yes"; then |
a0b9e27f | 19141 | echo $ac_n "checking for sched_yield""... $ac_c" 1>&6 |
8b389fab | 19142 | echo "configure:19143: checking for sched_yield" >&5 |
a0b9e27f MB |
19143 | if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then |
19144 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 19145 | else |
a0b9e27f | 19146 | cat > conftest.$ac_ext <<EOF |
8b389fab | 19147 | #line 19148 "configure" |
4f14bcd8 | 19148 | #include "confdefs.h" |
009fead0 | 19149 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 19150 | which can conflict with char sched_yield(); below. */ |
009fead0 | 19151 | #include <assert.h> |
4f14bcd8 GD |
19152 | /* Override any gcc2 internal prototype to avoid an error. */ |
19153 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19154 | builtin and then its argument prototype would still apply. */ |
19155 | char sched_yield(); | |
19156 | ||
19157 | int main() { | |
19158 | ||
009fead0 VZ |
19159 | /* The GNU C library defines this for functions which it implements |
19160 | to always fail with ENOSYS. Some functions are actually named | |
19161 | something starting with __ and the normal name is an alias. */ | |
19162 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
19163 | choke me | |
19164 | #else | |
a0b9e27f | 19165 | sched_yield(); |
009fead0 VZ |
19166 | #endif |
19167 | ||
a0b9e27f MB |
19168 | ; return 0; } |
19169 | EOF | |
8b389fab | 19170 | if { (eval echo configure:19171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19171 | rm -rf conftest* |
19172 | eval "ac_cv_func_sched_yield=yes" | |
19173 | else | |
19174 | echo "configure: failed program was:" >&5 | |
19175 | cat conftest.$ac_ext >&5 | |
19176 | rm -rf conftest* | |
19177 | eval "ac_cv_func_sched_yield=no" | |
19178 | fi | |
19179 | rm -f conftest* | |
19180 | fi | |
19181 | ||
19182 | if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then | |
19183 | echo "$ac_t""yes" 1>&6 | |
19184 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 19185 | #define HAVE_SCHED_YIELD 1 |
a0b9e27f | 19186 | EOF |
10f2d63a | 19187 | |
4f14bcd8 | 19188 | else |
a0b9e27f | 19189 | echo "$ac_t""no" 1>&6 |
009fead0 | 19190 | |
a0b9e27f | 19191 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 |
8b389fab | 19192 | echo "configure:19193: checking for sched_yield in -lposix4" >&5 |
a0b9e27f MB |
19193 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
19194 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19195 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 19196 | else |
a0b9e27f | 19197 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 19198 | LIBS="-lposix4 $LIBS" |
a0b9e27f | 19199 | cat > conftest.$ac_ext <<EOF |
8b389fab | 19200 | #line 19201 "configure" |
4f14bcd8 GD |
19201 | #include "confdefs.h" |
19202 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19203 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19204 | builtin and then its argument prototype would still apply. */ |
19205 | char sched_yield(); | |
19206 | ||
19207 | int main() { | |
19208 | sched_yield() | |
19209 | ; return 0; } | |
19210 | EOF | |
8b389fab | 19211 | if { (eval echo configure:19212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19212 | rm -rf conftest* |
19213 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19214 | else | |
19215 | echo "configure: failed program was:" >&5 | |
19216 | cat conftest.$ac_ext >&5 | |
19217 | rm -rf conftest* | |
19218 | eval "ac_cv_lib_$ac_lib_var=no" | |
19219 | fi | |
19220 | rm -f conftest* | |
19221 | LIBS="$ac_save_LIBS" | |
19222 | ||
19223 | fi | |
19224 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19225 | echo "$ac_t""yes" 1>&6 | |
19226 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 19227 | #define HAVE_SCHED_YIELD 1 |
a0b9e27f | 19228 | EOF |
3d63bc3a | 19229 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 19230 | else |
a0b9e27f MB |
19231 | echo "$ac_t""no" 1>&6 |
19232 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
19233 | ||
54276ccf VZ |
19234 | fi |
19235 | ||
a0b9e27f MB |
19236 | |
19237 | ||
4f14bcd8 | 19238 | fi |
698dcdb6 | 19239 | |
009fead0 | 19240 | fi |
10f2d63a | 19241 | |
7274f1c7 | 19242 | HAVE_PRIOR_FUNCS=0 |
a0b9e27f | 19243 | echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6 |
8b389fab | 19244 | echo "configure:19245: checking for pthread_attr_getschedpolicy" >&5 |
a0b9e27f MB |
19245 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then |
19246 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 19247 | else |
a0b9e27f | 19248 | cat > conftest.$ac_ext <<EOF |
8b389fab | 19249 | #line 19250 "configure" |
422107f9 | 19250 | #include "confdefs.h" |
009fead0 | 19251 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 19252 | which can conflict with char pthread_attr_getschedpolicy(); below. */ |
009fead0 | 19253 | #include <assert.h> |
4f14bcd8 GD |
19254 | /* Override any gcc2 internal prototype to avoid an error. */ |
19255 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19256 | builtin and then its argument prototype would still apply. */ |
19257 | char pthread_attr_getschedpolicy(); | |
19258 | ||
19259 | int main() { | |
19260 | ||
009fead0 VZ |
19261 | /* The GNU C library defines this for functions which it implements |
19262 | to always fail with ENOSYS. Some functions are actually named | |
19263 | something starting with __ and the normal name is an alias. */ | |
19264 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
19265 | choke me | |
19266 | #else | |
a0b9e27f | 19267 | pthread_attr_getschedpolicy(); |
009fead0 VZ |
19268 | #endif |
19269 | ||
a0b9e27f MB |
19270 | ; return 0; } |
19271 | EOF | |
8b389fab | 19272 | if { (eval echo configure:19273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19273 | rm -rf conftest* |
19274 | eval "ac_cv_func_pthread_attr_getschedpolicy=yes" | |
19275 | else | |
19276 | echo "configure: failed program was:" >&5 | |
19277 | cat conftest.$ac_ext >&5 | |
19278 | rm -rf conftest* | |
19279 | eval "ac_cv_func_pthread_attr_getschedpolicy=no" | |
19280 | fi | |
19281 | rm -f conftest* | |
19282 | fi | |
19283 | ||
19284 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then | |
19285 | echo "$ac_t""yes" 1>&6 | |
19286 | echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6 | |
8b389fab | 19287 | echo "configure:19288: checking for pthread_attr_setschedparam" >&5 |
a0b9e27f MB |
19288 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then |
19289 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 19290 | else |
a0b9e27f | 19291 | cat > conftest.$ac_ext <<EOF |
8b389fab | 19292 | #line 19293 "configure" |
a0b9e27f MB |
19293 | #include "confdefs.h" |
19294 | /* System header to define __stub macros and hopefully few prototypes, | |
19295 | which can conflict with char pthread_attr_setschedparam(); below. */ | |
009fead0 | 19296 | #include <assert.h> |
422107f9 VZ |
19297 | /* Override any gcc2 internal prototype to avoid an error. */ |
19298 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19299 | builtin and then its argument prototype would still apply. */ |
19300 | char pthread_attr_setschedparam(); | |
19301 | ||
19302 | int main() { | |
19303 | ||
009fead0 VZ |
19304 | /* The GNU C library defines this for functions which it implements |
19305 | to always fail with ENOSYS. Some functions are actually named | |
19306 | something starting with __ and the normal name is an alias. */ | |
19307 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
19308 | choke me | |
19309 | #else | |
a0b9e27f | 19310 | pthread_attr_setschedparam(); |
009fead0 VZ |
19311 | #endif |
19312 | ||
a0b9e27f MB |
19313 | ; return 0; } |
19314 | EOF | |
8b389fab | 19315 | if { (eval echo configure:19316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19316 | rm -rf conftest* |
19317 | eval "ac_cv_func_pthread_attr_setschedparam=yes" | |
19318 | else | |
19319 | echo "configure: failed program was:" >&5 | |
19320 | cat conftest.$ac_ext >&5 | |
19321 | rm -rf conftest* | |
19322 | eval "ac_cv_func_pthread_attr_setschedparam=no" | |
19323 | fi | |
19324 | rm -f conftest* | |
19325 | fi | |
19326 | ||
19327 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then | |
19328 | echo "$ac_t""yes" 1>&6 | |
19329 | echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6 | |
8b389fab | 19330 | echo "configure:19331: checking for sched_get_priority_max" >&5 |
a0b9e27f MB |
19331 | if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then |
19332 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19333 | else | |
19334 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 19335 | #line 19336 "configure" |
422107f9 | 19336 | #include "confdefs.h" |
ef33c576 VZ |
19337 | /* System header to define __stub macros and hopefully few prototypes, |
19338 | which can conflict with char sched_get_priority_max(); below. */ | |
009fead0 | 19339 | #include <assert.h> |
4f14bcd8 GD |
19340 | /* Override any gcc2 internal prototype to avoid an error. */ |
19341 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19342 | builtin and then its argument prototype would still apply. */ |
19343 | char sched_get_priority_max(); | |
19344 | ||
19345 | int main() { | |
19346 | ||
009fead0 VZ |
19347 | /* The GNU C library defines this for functions which it implements |
19348 | to always fail with ENOSYS. Some functions are actually named | |
19349 | something starting with __ and the normal name is an alias. */ | |
19350 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
19351 | choke me | |
19352 | #else | |
a0b9e27f | 19353 | sched_get_priority_max(); |
009fead0 VZ |
19354 | #endif |
19355 | ||
a0b9e27f MB |
19356 | ; return 0; } |
19357 | EOF | |
8b389fab | 19358 | if { (eval echo configure:19359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19359 | rm -rf conftest* |
19360 | eval "ac_cv_func_sched_get_priority_max=yes" | |
19361 | else | |
19362 | echo "configure: failed program was:" >&5 | |
19363 | cat conftest.$ac_ext >&5 | |
19364 | rm -rf conftest* | |
19365 | eval "ac_cv_func_sched_get_priority_max=no" | |
19366 | fi | |
19367 | rm -f conftest* | |
19368 | fi | |
19369 | ||
19370 | if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then | |
19371 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
19372 | HAVE_PRIOR_FUNCS=1 |
19373 | else | |
a0b9e27f MB |
19374 | echo "$ac_t""no" 1>&6 |
19375 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
8b389fab | 19376 | echo "configure:19377: checking for sched_get_priority_max in -lposix4" >&5 |
a0b9e27f MB |
19377 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
19378 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19379 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 19380 | else |
a0b9e27f | 19381 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 19382 | LIBS="-lposix4 $LIBS" |
a0b9e27f | 19383 | cat > conftest.$ac_ext <<EOF |
8b389fab | 19384 | #line 19385 "configure" |
422107f9 VZ |
19385 | #include "confdefs.h" |
19386 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19387 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19388 | builtin and then its argument prototype would still apply. */ |
19389 | char sched_get_priority_max(); | |
19390 | ||
19391 | int main() { | |
19392 | sched_get_priority_max() | |
19393 | ; return 0; } | |
19394 | EOF | |
8b389fab | 19395 | if { (eval echo configure:19396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19396 | rm -rf conftest* |
19397 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19398 | else | |
19399 | echo "configure: failed program was:" >&5 | |
19400 | cat conftest.$ac_ext >&5 | |
19401 | rm -rf conftest* | |
19402 | eval "ac_cv_lib_$ac_lib_var=no" | |
19403 | fi | |
19404 | rm -f conftest* | |
19405 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 19406 | |
a0b9e27f MB |
19407 | fi |
19408 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19409 | echo "$ac_t""yes" 1>&6 | |
19410 | ||
7274f1c7 RL |
19411 | HAVE_PRIOR_FUNCS=1 |
19412 | POSIX4_LINK=" -lposix4" | |
a0b9e27f MB |
19413 | |
19414 | else | |
19415 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 19416 | fi |
463abc64 | 19417 | |
a0b9e27f | 19418 | |
328a083c | 19419 | fi |
463abc64 | 19420 | |
a0b9e27f MB |
19421 | |
19422 | else | |
19423 | echo "$ac_t""no" 1>&6 | |
7b4a847f | 19424 | fi |
579d8138 | 19425 | |
a0b9e27f | 19426 | |
ef33c576 VZ |
19427 | else |
19428 | echo "$ac_t""no" 1>&6 | |
5c6fa7d2 | 19429 | fi |
52127426 | 19430 | |
8284b0c5 | 19431 | |
7274f1c7 | 19432 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
a0b9e27f | 19433 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19434 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
a0b9e27f | 19435 | EOF |
463abc64 | 19436 | |
7274f1c7 | 19437 | else |
a0b9e27f | 19438 | echo "configure: warning: Setting thread priority will not work" 1>&2 |
7274f1c7 | 19439 | fi |
463abc64 | 19440 | |
a0b9e27f | 19441 | echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6 |
8b389fab | 19442 | echo "configure:19443: checking for pthread_cancel" >&5 |
a0b9e27f MB |
19443 | if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then |
19444 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 19445 | else |
a0b9e27f | 19446 | cat > conftest.$ac_ext <<EOF |
8b389fab | 19447 | #line 19448 "configure" |
422107f9 | 19448 | #include "confdefs.h" |
009fead0 | 19449 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 19450 | which can conflict with char pthread_cancel(); below. */ |
009fead0 | 19451 | #include <assert.h> |
422107f9 VZ |
19452 | /* Override any gcc2 internal prototype to avoid an error. */ |
19453 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19454 | builtin and then its argument prototype would still apply. */ |
19455 | char pthread_cancel(); | |
19456 | ||
19457 | int main() { | |
19458 | ||
009fead0 VZ |
19459 | /* The GNU C library defines this for functions which it implements |
19460 | to always fail with ENOSYS. Some functions are actually named | |
19461 | something starting with __ and the normal name is an alias. */ | |
19462 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
19463 | choke me | |
19464 | #else | |
a0b9e27f | 19465 | pthread_cancel(); |
009fead0 VZ |
19466 | #endif |
19467 | ||
a0b9e27f MB |
19468 | ; return 0; } |
19469 | EOF | |
8b389fab | 19470 | if { (eval echo configure:19471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19471 | rm -rf conftest* |
19472 | eval "ac_cv_func_pthread_cancel=yes" | |
19473 | else | |
19474 | echo "configure: failed program was:" >&5 | |
19475 | cat conftest.$ac_ext >&5 | |
19476 | rm -rf conftest* | |
19477 | eval "ac_cv_func_pthread_cancel=no" | |
19478 | fi | |
19479 | rm -f conftest* | |
19480 | fi | |
19481 | ||
19482 | if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then | |
19483 | echo "$ac_t""yes" 1>&6 | |
19484 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 19485 | #define HAVE_PTHREAD_CANCEL 1 |
a0b9e27f | 19486 | EOF |
4f14bcd8 | 19487 | |
698dcdb6 | 19488 | else |
a0b9e27f MB |
19489 | echo "$ac_t""no" 1>&6 |
19490 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
422107f9 VZ |
19491 | fi |
19492 | ||
5c6fa7d2 | 19493 | |
a0b9e27f | 19494 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
8b389fab | 19495 | echo "configure:19496: checking for pthread_cleanup_push/pop" >&5 |
a0b9e27f MB |
19496 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
19497 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 19498 | else |
a0b9e27f MB |
19499 | |
19500 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 19501 | #line 19502 "configure" |
4f14bcd8 GD |
19502 | #include "confdefs.h" |
19503 | #include <pthread.h> | |
a0b9e27f | 19504 | int main() { |
4f14bcd8 | 19505 | |
7274f1c7 RL |
19506 | pthread_cleanup_push(NULL, NULL); |
19507 | pthread_cleanup_pop(0); | |
a0b9e27f MB |
19508 | |
19509 | ; return 0; } | |
19510 | EOF | |
8b389fab | 19511 | if { (eval echo configure:19512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19512 | rm -rf conftest* |
19513 | ||
7274f1c7 | 19514 | wx_cv_func_pthread_cleanup_push=yes |
a0b9e27f | 19515 | |
4f14bcd8 | 19516 | else |
a0b9e27f MB |
19517 | echo "configure: failed program was:" >&5 |
19518 | cat conftest.$ac_ext >&5 | |
19519 | rm -rf conftest* | |
19520 | ||
7274f1c7 | 19521 | wx_cv_func_pthread_cleanup_push=no |
a0b9e27f | 19522 | |
5c6fa7d2 | 19523 | fi |
a0b9e27f MB |
19524 | rm -f conftest* |
19525 | ||
247f5006 | 19526 | fi |
a0b9e27f MB |
19527 | |
19528 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
4f14bcd8 | 19529 | |
7274f1c7 | 19530 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
a0b9e27f | 19531 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19532 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
a0b9e27f | 19533 | EOF |
c7a2bf27 | 19534 | |
7274f1c7 | 19535 | fi |
4f14bcd8 | 19536 | |
a0b9e27f MB |
19537 | |
19538 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 | |
8b389fab | 19539 | echo "configure:19540: checking for pthread_mutexattr_t" >&5 |
a0b9e27f MB |
19540 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
19541 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 19542 | else |
a0b9e27f MB |
19543 | |
19544 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 19545 | #line 19546 "configure" |
0dcf9893 | 19546 | #include "confdefs.h" |
4f14bcd8 | 19547 | #include <pthread.h> |
a0b9e27f | 19548 | int main() { |
4f14bcd8 | 19549 | |
7274f1c7 RL |
19550 | pthread_mutexattr_t attr; |
19551 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
a0b9e27f MB |
19552 | |
19553 | ; return 0; } | |
19554 | EOF | |
8b389fab | 19555 | if { (eval echo configure:19556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19556 | rm -rf conftest* |
19557 | ||
7274f1c7 | 19558 | wx_cv_type_pthread_mutexattr_t=yes |
a0b9e27f | 19559 | |
3fed1840 | 19560 | else |
a0b9e27f MB |
19561 | echo "configure: failed program was:" >&5 |
19562 | cat conftest.$ac_ext >&5 | |
19563 | rm -rf conftest* | |
19564 | ||
7274f1c7 | 19565 | wx_cv_type_pthread_mutexattr_t=no |
a0b9e27f MB |
19566 | |
19567 | ||
5c6fa7d2 | 19568 | fi |
a0b9e27f MB |
19569 | rm -f conftest* |
19570 | ||
247f5006 | 19571 | fi |
a0b9e27f MB |
19572 | |
19573 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
4f14bcd8 | 19574 | |
7274f1c7 | 19575 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
a0b9e27f | 19576 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19577 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
a0b9e27f | 19578 | EOF |
4f14bcd8 | 19579 | |
7274f1c7 | 19580 | else |
a0b9e27f | 19581 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 |
8b389fab | 19582 | echo "configure:19583: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
a0b9e27f MB |
19583 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
19584 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19585 | else | |
19586 | ||
19587 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 19588 | #line 19589 "configure" |
3fed1840 | 19589 | #include "confdefs.h" |
4f14bcd8 | 19590 | #include <pthread.h> |
a0b9e27f | 19591 | int main() { |
4f14bcd8 | 19592 | |
7274f1c7 | 19593 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
a0b9e27f MB |
19594 | |
19595 | ; return 0; } | |
19596 | EOF | |
8b389fab | 19597 | if { (eval echo configure:19598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19598 | rm -rf conftest* |
19599 | ||
7274f1c7 | 19600 | wx_cv_type_pthread_rec_mutex_init=yes |
a0b9e27f | 19601 | |
698dcdb6 | 19602 | else |
a0b9e27f MB |
19603 | echo "configure: failed program was:" >&5 |
19604 | cat conftest.$ac_ext >&5 | |
19605 | rm -rf conftest* | |
19606 | ||
7274f1c7 | 19607 | wx_cv_type_pthread_rec_mutex_init=no |
a0b9e27f MB |
19608 | |
19609 | ||
5c6fa7d2 | 19610 | fi |
a0b9e27f MB |
19611 | rm -f conftest* |
19612 | ||
247f5006 | 19613 | fi |
a0b9e27f MB |
19614 | |
19615 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 | |
7274f1c7 | 19616 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
a0b9e27f | 19617 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19618 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
a0b9e27f | 19619 | EOF |
3fed1840 | 19620 | |
7274f1c7 | 19621 | else |
a0b9e27f | 19622 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 |
7274f1c7 RL |
19623 | fi |
19624 | fi | |
7274f1c7 | 19625 | fi |
3fed1840 | 19626 | |
a0b9e27f MB |
19627 | else |
19628 | if test "$wxUSE_THREADS" = "yes" ; then | |
19629 | case "${host}" in | |
19630 | *-*-mingw32* ) | |
ca8e52b3 | 19631 | echo $ac_n "checking if compiler supports -mthreads""... $ac_c" 1>&6 |
8b389fab | 19632 | echo "configure:19633: checking if compiler supports -mthreads" >&5 |
ca8e52b3 VZ |
19633 | if eval "test \"`echo '$''{'wx_cv_cflags_mthread'+set}'`\" = set"; then |
19634 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19635 | else | |
19636 | ||
19637 | CFLAGS_OLD="$CFLAGS" | |
19638 | CFLAGS="$CFLAGS -mthreads" | |
19639 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 19640 | #line 19641 "configure" |
ca8e52b3 VZ |
19641 | #include "confdefs.h" |
19642 | ||
19643 | int main() { | |
19644 | ||
19645 | ; return 0; } | |
19646 | EOF | |
8b389fab | 19647 | if { (eval echo configure:19648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
ca8e52b3 VZ |
19648 | rm -rf conftest* |
19649 | wx_cv_cflags_mthread=yes | |
19650 | else | |
19651 | echo "configure: failed program was:" >&5 | |
19652 | cat conftest.$ac_ext >&5 | |
19653 | rm -rf conftest* | |
19654 | wx_cv_cflags_mthread=no | |
19655 | ||
19656 | fi | |
19657 | rm -f conftest* | |
19658 | ||
19659 | ||
19660 | fi | |
19661 | ||
19662 | echo "$ac_t""$wx_cv_cflags_mthread" 1>&6 | |
19663 | ||
19664 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
19665 | CXXFLAGS="$CXXFLAGS -mthreads" | |
19666 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
19667 | LDFLAGS="$LDFLAGS -mthreads" | |
19668 | else | |
19669 | CFLAGS="$CFLAGS_OLD" | |
19670 | fi | |
a0b9e27f MB |
19671 | ;; |
19672 | esac | |
19673 | fi | |
4f14bcd8 GD |
19674 | fi |
19675 | ||
19676 | if test "$wxUSE_THREADS" = "yes"; then | |
a0b9e27f | 19677 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19678 | #define wxUSE_THREADS 1 |
a0b9e27f | 19679 | EOF |
7b6058cd | 19680 | |
8284b0c5 | 19681 | |
4f14bcd8 | 19682 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" |
698dcdb6 | 19683 | else |
4f14bcd8 | 19684 | if test "$ac_cv_func_strtok_r" = "yes"; then |
a0b9e27f | 19685 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 |
8b389fab | 19686 | echo "configure:19687: checking if -D_REENTRANT is needed" >&5 |
4f14bcd8 GD |
19687 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
19688 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
a0b9e27f | 19689 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 19690 | else |
a0b9e27f | 19691 | echo "$ac_t""no" 1>&6 |
4f14bcd8 GD |
19692 | fi |
19693 | fi | |
19694 | fi | |
19695 | ||
19696 | if test "$WXGTK20" = 1 ; then | |
a0b9e27f | 19697 | cat >> confdefs.h <<EOF |
4f14bcd8 | 19698 | #define __WXGTK20__ $WXGTK20 |
a0b9e27f | 19699 | EOF |
4f14bcd8 GD |
19700 | |
19701 | WXGTK12=1 | |
10f2d63a | 19702 | fi |
4f14bcd8 GD |
19703 | |
19704 | if test "$WXGTK12" = 1 ; then | |
a0b9e27f | 19705 | cat >> confdefs.h <<EOF |
4f14bcd8 | 19706 | #define __WXGTK12__ $WXGTK12 |
a0b9e27f | 19707 | EOF |
4f14bcd8 | 19708 | |
10f2d63a | 19709 | fi |
698dcdb6 | 19710 | |
4f14bcd8 | 19711 | if test "$WXGTK127" = 1 ; then |
a0b9e27f | 19712 | cat >> confdefs.h <<EOF |
4f14bcd8 | 19713 | #define __WXGTK127__ $WXGTK127 |
a0b9e27f | 19714 | EOF |
4f14bcd8 | 19715 | |
698dcdb6 | 19716 | fi |
10f2d63a | 19717 | |
4f14bcd8 GD |
19718 | WXDEBUG= |
19719 | ||
19720 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
19721 | WXDEBUG="-g" | |
19722 | wxUSE_OPTIMISE=no | |
698dcdb6 | 19723 | fi |
4f14bcd8 GD |
19724 | |
19725 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
19726 | wxUSE_DEBUG_INFO=yes | |
19727 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
19728 | fi |
19729 | ||
4f14bcd8 | 19730 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
a0b9e27f | 19731 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19732 | #define WXDEBUG 1 |
a0b9e27f | 19733 | EOF |
4f14bcd8 GD |
19734 | |
19735 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 19736 | else |
4f14bcd8 GD |
19737 | if test "$wxUSE_GTK" = 1 ; then |
19738 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
19739 | fi | |
19740 | fi | |
19741 | ||
19742 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
a0b9e27f | 19743 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19744 | #define wxUSE_MEMORY_TRACING 1 |
a0b9e27f | 19745 | EOF |
4f14bcd8 | 19746 | |
a0b9e27f | 19747 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19748 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 |
a0b9e27f | 19749 | EOF |
4f14bcd8 | 19750 | |
a0b9e27f | 19751 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19752 | #define wxUSE_DEBUG_NEW_ALWAYS 1 |
a0b9e27f | 19753 | EOF |
4f14bcd8 GD |
19754 | |
19755 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
19756 | fi | |
19757 | ||
19758 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 19759 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
19760 | fi |
19761 | ||
19762 | PROFILE= | |
19763 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 19764 | PROFILE=" -pg" |
10f2d63a VZ |
19765 | fi |
19766 | ||
009fead0 VZ |
19767 | CODE_GEN_FLAGS= |
19768 | CODE_GEN_FLAGS_CXX= | |
88e30f2b | 19769 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
19770 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
19771 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 19772 | fi |
4f14bcd8 GD |
19773 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
19774 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
19775 | fi | |
19776 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
19777 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
19778 | fi | |
4f14bcd8 GD |
19779 | if test "$USE_WIN32" = 1 ; then |
19780 | # I'm not even really sure what this was ever added to solve, | |
19781 | # but someone added it for mingw native builds, so I guess | |
19782 | # they had a reason, right?? | |
19783 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return" | |
19784 | fi | |
1d1b75ac | 19785 | |
2b5f62a0 | 19786 | case "${host}" in |
1d1b75ac VZ |
19787 | powerpc*-*-aix* ) |
19788 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
19789 | ;; | |
2b5f62a0 VZ |
19790 | *-hppa* ) |
19791 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
19792 | ;; | |
1d1b75ac | 19793 | esac |
4f14bcd8 GD |
19794 | fi |
19795 | ||
af7b5345 | 19796 | OPTIMISE= |
4f14bcd8 | 19797 | if test "$wxUSE_OPTIMISE" = "no" ; then |
af7b5345 VZ |
19798 | if test "$GCC" = yes ; then |
19799 | OPTIMISE="-O0" | |
19800 | fi | |
4f14bcd8 GD |
19801 | else |
19802 | if test "$GCC" = yes ; then | |
19803 | OPTIMISE="-O2" | |
af7b5345 VZ |
19804 | |
19805 | case "${host}" in | |
4f14bcd8 GD |
19806 | i586-*-*|i686-*-* ) |
19807 | OPTIMISE="${OPTIMISE} " | |
19808 | ;; | |
19809 | esac | |
19810 | else | |
19811 | OPTIMISE="-O" | |
19812 | fi | |
19813 | fi | |
19814 | ||
8d90d2f2 | 19815 | |
4f14bcd8 | 19816 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then |
a0b9e27f | 19817 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19818 | #define WXWIN_COMPATIBILITY_2 1 |
a0b9e27f | 19819 | EOF |
4f14bcd8 | 19820 | |
8284b0c5 | 19821 | |
4f14bcd8 GD |
19822 | WXWIN_COMPATIBILITY_2_2="yes" |
19823 | fi | |
19824 | ||
65d8ef1e | 19825 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then |
a0b9e27f | 19826 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19827 | #define WXWIN_COMPATIBILITY_2_2 1 |
a0b9e27f | 19828 | EOF |
4f14bcd8 | 19829 | |
8d90d2f2 VZ |
19830 | |
19831 | WXWIN_COMPATIBILITY_2_4="yes" | |
10f2d63a VZ |
19832 | fi |
19833 | ||
65d8ef1e VS |
19834 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then |
19835 | cat >> confdefs.h <<\EOF | |
19836 | #define WXWIN_COMPATIBILITY_2_4 1 | |
19837 | EOF | |
19838 | ||
19839 | fi | |
19840 | ||
8284b0c5 | 19841 | |
10f2d63a | 19842 | if test "$wxUSE_GUI" = "yes"; then |
a0b9e27f | 19843 | cat >> confdefs.h <<\EOF |
10f2d63a | 19844 | #define wxUSE_GUI 1 |
a0b9e27f | 19845 | EOF |
10f2d63a | 19846 | |
8284b0c5 | 19847 | |
10f2d63a | 19848 | else |
a0b9e27f | 19849 | cat >> confdefs.h <<\EOF |
10f2d63a | 19850 | #define wxUSE_NOGUI 1 |
a0b9e27f | 19851 | EOF |
10f2d63a VZ |
19852 | |
19853 | fi | |
19854 | ||
8284b0c5 | 19855 | |
10f2d63a | 19856 | if test "$wxUSE_UNIX" = "yes"; then |
a0b9e27f | 19857 | cat >> confdefs.h <<\EOF |
10f2d63a | 19858 | #define wxUSE_UNIX 1 |
a0b9e27f | 19859 | EOF |
10f2d63a VZ |
19860 | |
19861 | fi | |
19862 | ||
8284b0c5 | 19863 | |
10f2d63a | 19864 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
a0b9e27f | 19865 | cat >> confdefs.h <<\EOF |
10f2d63a | 19866 | #define wxUSE_APPLE_IEEE 1 |
a0b9e27f | 19867 | EOF |
10f2d63a VZ |
19868 | |
19869 | fi | |
19870 | ||
1e6feb95 | 19871 | if test "$wxUSE_TIMER" = "yes"; then |
a0b9e27f | 19872 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19873 | #define wxUSE_TIMER 1 |
a0b9e27f | 19874 | EOF |
1e6feb95 VZ |
19875 | |
19876 | fi | |
19877 | ||
10f2d63a | 19878 | if test "$wxUSE_WAVE" = "yes"; then |
a0b9e27f | 19879 | cat >> confdefs.h <<\EOF |
10f2d63a | 19880 | #define wxUSE_WAVE 1 |
a0b9e27f | 19881 | EOF |
10f2d63a VZ |
19882 | |
19883 | fi | |
19884 | ||
1e6feb95 | 19885 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
a0b9e27f | 19886 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19887 | #define wxUSE_CMDLINE_PARSER 1 |
a0b9e27f | 19888 | EOF |
1e6feb95 VZ |
19889 | |
19890 | fi | |
19891 | ||
19892 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
a0b9e27f | 19893 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19894 | #define wxUSE_STOPWATCH 1 |
a0b9e27f | 19895 | EOF |
1e6feb95 VZ |
19896 | |
19897 | fi | |
19898 | ||
19899 | if test "$wxUSE_DATETIME" = "yes"; then | |
a0b9e27f | 19900 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19901 | #define wxUSE_DATETIME 1 |
a0b9e27f | 19902 | EOF |
1e6feb95 VZ |
19903 | |
19904 | fi | |
19905 | ||
10f2d63a | 19906 | if test "$wxUSE_FILE" = "yes"; then |
a0b9e27f | 19907 | cat >> confdefs.h <<\EOF |
10f2d63a | 19908 | #define wxUSE_FILE 1 |
a0b9e27f | 19909 | EOF |
10f2d63a VZ |
19910 | |
19911 | fi | |
19912 | ||
1e6feb95 | 19913 | if test "$wxUSE_FFILE" = "yes"; then |
a0b9e27f | 19914 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19915 | #define wxUSE_FFILE 1 |
a0b9e27f | 19916 | EOF |
1e6feb95 VZ |
19917 | |
19918 | fi | |
19919 | ||
24528b0c | 19920 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
a0b9e27f | 19921 | cat >> confdefs.h <<\EOF |
24528b0c | 19922 | #define wxUSE_FILESYSTEM 1 |
a0b9e27f | 19923 | EOF |
24528b0c VS |
19924 | |
19925 | fi | |
19926 | ||
10f2d63a | 19927 | if test "$wxUSE_FS_INET" = "yes"; then |
a0b9e27f | 19928 | cat >> confdefs.h <<\EOF |
10f2d63a | 19929 | #define wxUSE_FS_INET 1 |
a0b9e27f | 19930 | EOF |
10f2d63a VZ |
19931 | |
19932 | fi | |
19933 | ||
19934 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
a0b9e27f | 19935 | cat >> confdefs.h <<\EOF |
10f2d63a | 19936 | #define wxUSE_FS_ZIP 1 |
a0b9e27f | 19937 | EOF |
10f2d63a VZ |
19938 | |
19939 | fi | |
19940 | ||
19941 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
a0b9e27f | 19942 | cat >> confdefs.h <<\EOF |
10f2d63a | 19943 | #define wxUSE_ZIPSTREAM 1 |
a0b9e27f | 19944 | EOF |
10f2d63a VZ |
19945 | |
19946 | fi | |
19947 | ||
eb4efbdc | 19948 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
a0b9e27f | 19949 | cat >> confdefs.h <<\EOF |
eb4efbdc | 19950 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
a0b9e27f | 19951 | EOF |
eb4efbdc VZ |
19952 | |
19953 | fi | |
19954 | ||
4f3c5f06 | 19955 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
a0b9e27f | 19956 | cat >> confdefs.h <<\EOF |
4f3c5f06 | 19957 | #define wxUSE_SNGLINST_CHECKER 1 |
a0b9e27f | 19958 | EOF |
4f3c5f06 VZ |
19959 | |
19960 | fi | |
19961 | ||
10f2d63a | 19962 | if test "$wxUSE_BUSYINFO" = "yes"; then |
a0b9e27f | 19963 | cat >> confdefs.h <<\EOF |
10f2d63a | 19964 | #define wxUSE_BUSYINFO 1 |
a0b9e27f | 19965 | EOF |
10f2d63a VZ |
19966 | |
19967 | fi | |
19968 | ||
19969 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
a0b9e27f | 19970 | cat >> confdefs.h <<\EOF |
10f2d63a | 19971 | #define wxUSE_STD_IOSTREAM 1 |
a0b9e27f | 19972 | EOF |
10f2d63a VZ |
19973 | |
19974 | fi | |
19975 | ||
a3a584a7 | 19976 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
a0b9e27f | 19977 | cat >> confdefs.h <<\EOF |
a3a584a7 | 19978 | #define wxUSE_TEXTBUFFER 1 |
a0b9e27f | 19979 | EOF |
a3a584a7 VZ |
19980 | |
19981 | fi | |
19982 | ||
10f2d63a | 19983 | if test "$wxUSE_TEXTFILE" = "yes"; then |
a3a584a7 | 19984 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then |
a0b9e27f | 19985 | echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2 |
10f2d63a | 19986 | else |
a0b9e27f | 19987 | cat >> confdefs.h <<\EOF |
10f2d63a | 19988 | #define wxUSE_TEXTFILE 1 |
a0b9e27f | 19989 | EOF |
10f2d63a VZ |
19990 | |
19991 | fi | |
19992 | fi | |
19993 | ||
19994 | if test "$wxUSE_CONFIG" = "yes" ; then | |
19995 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
a0b9e27f | 19996 | echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2 |
10f2d63a | 19997 | else |
a0b9e27f | 19998 | cat >> confdefs.h <<\EOF |
10f2d63a | 19999 | #define wxUSE_CONFIG 1 |
a0b9e27f | 20000 | EOF |
10f2d63a VZ |
20001 | |
20002 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
20003 | fi | |
20004 | fi | |
20005 | ||
20006 | if test "$wxUSE_INTL" = "yes" ; then | |
20007 | if test "$wxUSE_FILE" != "yes"; then | |
a0b9e27f | 20008 | echo "configure: warning: I18n code requires wxFile... disabled" 1>&2 |
10f2d63a | 20009 | else |
a0b9e27f | 20010 | cat >> confdefs.h <<\EOF |
10f2d63a | 20011 | #define wxUSE_INTL 1 |
a0b9e27f | 20012 | EOF |
10f2d63a VZ |
20013 | |
20014 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 20015 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
20016 | fi |
20017 | fi | |
20018 | ||
20019 | if test "$wxUSE_LOG" = "yes"; then | |
a0b9e27f | 20020 | cat >> confdefs.h <<\EOF |
10f2d63a | 20021 | #define wxUSE_LOG 1 |
a0b9e27f | 20022 | EOF |
10f2d63a | 20023 | |
8284b0c5 | 20024 | |
d73be714 | 20025 | if test "$wxUSE_LOGGUI" = "yes"; then |
a0b9e27f | 20026 | cat >> confdefs.h <<\EOF |
d73be714 | 20027 | #define wxUSE_LOGGUI 1 |
a0b9e27f | 20028 | EOF |
d73be714 VZ |
20029 | |
20030 | fi | |
20031 | ||
20032 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
a0b9e27f | 20033 | cat >> confdefs.h <<\EOF |
d73be714 | 20034 | #define wxUSE_LOGWINDOW 1 |
a0b9e27f | 20035 | EOF |
69d27ff7 MB |
20036 | |
20037 | fi | |
20038 | ||
20039 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
a0b9e27f | 20040 | cat >> confdefs.h <<\EOF |
69d27ff7 | 20041 | #define wxUSE_LOG_DIALOG 1 |
a0b9e27f | 20042 | EOF |
d73be714 VZ |
20043 | |
20044 | fi | |
10f2d63a VZ |
20045 | fi |
20046 | ||
20047 | if test "$wxUSE_LONGLONG" = "yes"; then | |
a0b9e27f | 20048 | cat >> confdefs.h <<\EOF |
10f2d63a | 20049 | #define wxUSE_LONGLONG 1 |
a0b9e27f | 20050 | EOF |
10f2d63a VZ |
20051 | |
20052 | fi | |
20053 | ||
e8f65ba6 | 20054 | if test "$wxUSE_GEOMETRY" = "yes"; then |
a0b9e27f | 20055 | cat >> confdefs.h <<\EOF |
e8f65ba6 | 20056 | #define wxUSE_GEOMETRY 1 |
a0b9e27f | 20057 | EOF |
e8f65ba6 RR |
20058 | |
20059 | fi | |
20060 | ||
10f2d63a | 20061 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
a0b9e27f | 20062 | cat >> confdefs.h <<\EOF |
10f2d63a | 20063 | #define wxUSE_DIALUP_MANAGER 1 |
a0b9e27f | 20064 | EOF |
10f2d63a | 20065 | |
70f7a477 | 20066 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
20067 | fi |
20068 | ||
20069 | if test "$wxUSE_STREAMS" = "yes" ; then | |
a0b9e27f | 20070 | cat >> confdefs.h <<\EOF |
10f2d63a | 20071 | #define wxUSE_STREAMS 1 |
a0b9e27f | 20072 | EOF |
10f2d63a VZ |
20073 | |
20074 | fi | |
20075 | ||
5c6fa7d2 | 20076 | |
8284b0c5 | 20077 | if test "$wxUSE_DATETIME" = "yes"; then |
a0b9e27f | 20078 | for ac_func in strptime |
83307f33 | 20079 | do |
a0b9e27f | 20080 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8b389fab | 20081 | echo "configure:20082: checking for $ac_func" >&5 |
a0b9e27f MB |
20082 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
20083 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20084 | else | |
20085 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 20086 | #line 20087 "configure" |
83307f33 VZ |
20087 | #include "confdefs.h" |
20088 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 20089 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
20090 | #include <assert.h> |
20091 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20092 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20093 | builtin and then its argument prototype would still apply. */ |
20094 | char $ac_func(); | |
20095 | ||
20096 | int main() { | |
20097 | ||
83307f33 VZ |
20098 | /* The GNU C library defines this for functions which it implements |
20099 | to always fail with ENOSYS. Some functions are actually named | |
20100 | something starting with __ and the normal name is an alias. */ | |
20101 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20102 | choke me | |
20103 | #else | |
a0b9e27f | 20104 | $ac_func(); |
83307f33 VZ |
20105 | #endif |
20106 | ||
a0b9e27f MB |
20107 | ; return 0; } |
20108 | EOF | |
8b389fab | 20109 | if { (eval echo configure:20110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20110 | rm -rf conftest* |
20111 | eval "ac_cv_func_$ac_func=yes" | |
20112 | else | |
20113 | echo "configure: failed program was:" >&5 | |
20114 | cat conftest.$ac_ext >&5 | |
20115 | rm -rf conftest* | |
20116 | eval "ac_cv_func_$ac_func=no" | |
20117 | fi | |
20118 | rm -f conftest* | |
20119 | fi | |
83307f33 | 20120 | |
a0b9e27f MB |
20121 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
20122 | echo "$ac_t""yes" 1>&6 | |
20123 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20124 | cat >> confdefs.h <<EOF | |
20125 | #define $ac_tr_func 1 | |
20126 | EOF | |
20127 | ||
20128 | else | |
20129 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
20130 | fi |
20131 | done | |
20132 | ||
5c6fa7d2 | 20133 | |
a0b9e27f | 20134 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
8b389fab | 20135 | echo "configure:20136: checking for timezone variable in <time.h>" >&5 |
a0b9e27f MB |
20136 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
20137 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 20138 | else |
a0b9e27f MB |
20139 | |
20140 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 20141 | #line 20142 "configure" |
360d6699 VZ |
20142 | #include "confdefs.h" |
20143 | ||
b4085ce6 | 20144 | #include <time.h> |
a0b9e27f MB |
20145 | |
20146 | int main() { | |
360d6699 VZ |
20147 | |
20148 | int tz; | |
4f11a343 | 20149 | tz = timezone; |
a0b9e27f MB |
20150 | |
20151 | ; return 0; } | |
20152 | EOF | |
8b389fab | 20153 | if { (eval echo configure:20154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
20154 | rm -rf conftest* |
20155 | ||
4f11a343 | 20156 | wx_cv_var_timezone=timezone |
a0b9e27f | 20157 | |
360d6699 | 20158 | else |
a0b9e27f MB |
20159 | echo "configure: failed program was:" >&5 |
20160 | cat conftest.$ac_ext >&5 | |
20161 | rm -rf conftest* | |
20162 | ||
20163 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 20164 | #line 20165 "configure" |
360d6699 VZ |
20165 | #include "confdefs.h" |
20166 | ||
b4085ce6 | 20167 | #include <time.h> |
a0b9e27f MB |
20168 | |
20169 | int main() { | |
360d6699 VZ |
20170 | |
20171 | int tz; | |
20172 | tz = _timezone; | |
a0b9e27f MB |
20173 | |
20174 | ; return 0; } | |
20175 | EOF | |
8b389fab | 20176 | if { (eval echo configure:20177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
20177 | rm -rf conftest* |
20178 | ||
360d6699 | 20179 | wx_cv_var_timezone=_timezone |
a0b9e27f | 20180 | |
5357c8e8 | 20181 | else |
a0b9e27f MB |
20182 | echo "configure: failed program was:" >&5 |
20183 | cat conftest.$ac_ext >&5 | |
20184 | rm -rf conftest* | |
20185 | ||
20186 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 20187 | #line 20188 "configure" |
5357c8e8 VZ |
20188 | #include "confdefs.h" |
20189 | ||
b4085ce6 | 20190 | #include <time.h> |
a0b9e27f MB |
20191 | |
20192 | int main() { | |
5357c8e8 VZ |
20193 | |
20194 | int tz; | |
4f11a343 | 20195 | tz = __timezone; |
a0b9e27f MB |
20196 | |
20197 | ; return 0; } | |
20198 | EOF | |
8b389fab | 20199 | if { (eval echo configure:20200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
20200 | rm -rf conftest* |
20201 | ||
4f11a343 | 20202 | wx_cv_var_timezone=__timezone |
a0b9e27f | 20203 | |
360d6699 | 20204 | else |
a0b9e27f MB |
20205 | echo "configure: failed program was:" >&5 |
20206 | cat conftest.$ac_ext >&5 | |
20207 | rm -rf conftest* | |
20208 | ||
f9bc1684 | 20209 | if test "$USE_DOS" = 0 ; then |
a0b9e27f | 20210 | echo "configure: warning: no timezone variable" 1>&2 |
f9bc1684 | 20211 | fi |
a0b9e27f MB |
20212 | |
20213 | ||
328a083c | 20214 | fi |
a0b9e27f MB |
20215 | rm -f conftest* |
20216 | ||
20217 | ||
7b4a847f | 20218 | fi |
a0b9e27f MB |
20219 | rm -f conftest* |
20220 | ||
20221 | ||
5c6fa7d2 | 20222 | fi |
a0b9e27f MB |
20223 | rm -f conftest* |
20224 | ||
20225 | ||
247f5006 | 20226 | fi |
a0b9e27f MB |
20227 | |
20228 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 | |
698dcdb6 | 20229 | |
f9bc1684 | 20230 | if test "x$wx_cv_var_timezone" != x ; then |
a0b9e27f | 20231 | cat >> confdefs.h <<EOF |
360d6699 | 20232 | #define WX_TIMEZONE $wx_cv_var_timezone |
a0b9e27f | 20233 | EOF |
360d6699 | 20234 | |
f9bc1684 | 20235 | fi |
698dcdb6 | 20236 | |
a0b9e27f | 20237 | for ac_func in localtime |
afc31813 | 20238 | do |
a0b9e27f | 20239 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8b389fab | 20240 | echo "configure:20241: checking for $ac_func" >&5 |
a0b9e27f MB |
20241 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
20242 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20243 | else | |
20244 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 20245 | #line 20246 "configure" |
10f2d63a | 20246 | #include "confdefs.h" |
afc31813 | 20247 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 20248 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
20249 | #include <assert.h> |
20250 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20251 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20252 | builtin and then its argument prototype would still apply. */ |
20253 | char $ac_func(); | |
20254 | ||
20255 | int main() { | |
20256 | ||
afc31813 VZ |
20257 | /* The GNU C library defines this for functions which it implements |
20258 | to always fail with ENOSYS. Some functions are actually named | |
20259 | something starting with __ and the normal name is an alias. */ | |
20260 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20261 | choke me | |
20262 | #else | |
a0b9e27f | 20263 | $ac_func(); |
afc31813 VZ |
20264 | #endif |
20265 | ||
a0b9e27f MB |
20266 | ; return 0; } |
20267 | EOF | |
8b389fab | 20268 | if { (eval echo configure:20269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20269 | rm -rf conftest* |
20270 | eval "ac_cv_func_$ac_func=yes" | |
20271 | else | |
20272 | echo "configure: failed program was:" >&5 | |
20273 | cat conftest.$ac_ext >&5 | |
20274 | rm -rf conftest* | |
20275 | eval "ac_cv_func_$ac_func=no" | |
20276 | fi | |
20277 | rm -f conftest* | |
20278 | fi | |
afc31813 | 20279 | |
a0b9e27f MB |
20280 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
20281 | echo "$ac_t""yes" 1>&6 | |
20282 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20283 | cat >> confdefs.h <<EOF | |
20284 | #define $ac_tr_func 1 | |
20285 | EOF | |
20286 | ||
20287 | else | |
20288 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
20289 | fi |
20290 | done | |
20291 | ||
5c6fa7d2 | 20292 | |
8284b0c5 | 20293 | if test "$ac_cv_func_localtime" = "yes"; then |
a0b9e27f | 20294 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 |
8b389fab | 20295 | echo "configure:20296: checking for tm_gmtoff in struct tm" >&5 |
a0b9e27f MB |
20296 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
20297 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20298 | else | |
20299 | ||
20300 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 20301 | #line 20302 "configure" |
0470b1e6 VZ |
20302 | #include "confdefs.h" |
20303 | ||
b4085ce6 | 20304 | #include <time.h> |
a0b9e27f MB |
20305 | |
20306 | int main() { | |
0470b1e6 VZ |
20307 | |
20308 | struct tm tm; | |
20309 | tm.tm_gmtoff++; | |
a0b9e27f MB |
20310 | |
20311 | ; return 0; } | |
20312 | EOF | |
8b389fab | 20313 | if { (eval echo configure:20314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
20314 | rm -rf conftest* |
20315 | ||
f03a98d8 | 20316 | wx_cv_struct_tm_has_gmtoff=yes |
a0b9e27f | 20317 | |
0470b1e6 | 20318 | else |
a0b9e27f MB |
20319 | echo "configure: failed program was:" >&5 |
20320 | cat conftest.$ac_ext >&5 | |
20321 | rm -rf conftest* | |
20322 | wx_cv_struct_tm_has_gmtoff=no | |
20323 | ||
5c6fa7d2 | 20324 | fi |
a0b9e27f MB |
20325 | rm -f conftest* |
20326 | ||
247f5006 | 20327 | fi |
a0b9e27f MB |
20328 | |
20329 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
20330 | fi |
20331 | ||
20332 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
a0b9e27f | 20333 | cat >> confdefs.h <<\EOF |
6232543b | 20334 | #define WX_GMTOFF_IN_TM 1 |
a0b9e27f | 20335 | EOF |
0470b1e6 | 20336 | |
3fcdd07b VZ |
20337 | fi |
20338 | ||
a0b9e27f | 20339 | for ac_func in gettimeofday ftime |
3fcdd07b | 20340 | do |
a0b9e27f | 20341 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8b389fab | 20342 | echo "configure:20343: checking for $ac_func" >&5 |
a0b9e27f MB |
20343 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
20344 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20345 | else | |
20346 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 20347 | #line 20348 "configure" |
3fcdd07b VZ |
20348 | #include "confdefs.h" |
20349 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 20350 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
20351 | #include <assert.h> |
20352 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20353 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20354 | builtin and then its argument prototype would still apply. */ |
20355 | char $ac_func(); | |
20356 | ||
20357 | int main() { | |
20358 | ||
3fcdd07b VZ |
20359 | /* The GNU C library defines this for functions which it implements |
20360 | to always fail with ENOSYS. Some functions are actually named | |
20361 | something starting with __ and the normal name is an alias. */ | |
20362 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20363 | choke me | |
20364 | #else | |
a0b9e27f | 20365 | $ac_func(); |
3fcdd07b VZ |
20366 | #endif |
20367 | ||
a0b9e27f MB |
20368 | ; return 0; } |
20369 | EOF | |
8b389fab | 20370 | if { (eval echo configure:20371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20371 | rm -rf conftest* |
20372 | eval "ac_cv_func_$ac_func=yes" | |
20373 | else | |
20374 | echo "configure: failed program was:" >&5 | |
20375 | cat conftest.$ac_ext >&5 | |
20376 | rm -rf conftest* | |
20377 | eval "ac_cv_func_$ac_func=no" | |
20378 | fi | |
20379 | rm -f conftest* | |
20380 | fi | |
20381 | ||
20382 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
20383 | echo "$ac_t""yes" 1>&6 | |
20384 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20385 | cat >> confdefs.h <<EOF | |
20386 | #define $ac_tr_func 1 | |
20387 | EOF | |
3fcdd07b | 20388 | break |
a0b9e27f MB |
20389 | else |
20390 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
20391 | fi |
20392 | done | |
20393 | ||
698dcdb6 | 20394 | |
8284b0c5 | 20395 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
a0b9e27f | 20396 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 |
8b389fab | 20397 | echo "configure:20398: checking whether gettimeofday takes two arguments" >&5 |
a0b9e27f MB |
20398 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
20399 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20400 | else | |
20401 | ||
20402 | ||
20403 | ac_ext=C | |
20404 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 20405 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
20406 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20407 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20408 | cross_compiling=$ac_cv_prog_cxx_cross | |
52127426 | 20409 | |
8284b0c5 | 20410 | |
a0b9e27f | 20411 | cat > conftest.$ac_ext <<EOF |
8b389fab | 20412 | #line 20413 "configure" |
10f2d63a | 20413 | #include "confdefs.h" |
afc31813 VZ |
20414 | |
20415 | #include <sys/time.h> | |
20416 | #include <unistd.h> | |
a0b9e27f MB |
20417 | |
20418 | int main() { | |
afc31813 VZ |
20419 | |
20420 | struct timeval tv; | |
776862b4 | 20421 | gettimeofday(&tv, NULL); |
a0b9e27f MB |
20422 | |
20423 | ; return 0; } | |
20424 | EOF | |
8b389fab | 20425 | if { (eval echo configure:20426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 20426 | rm -rf conftest* |
afc31813 | 20427 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 20428 | else |
a0b9e27f MB |
20429 | echo "configure: failed program was:" >&5 |
20430 | cat conftest.$ac_ext >&5 | |
20431 | rm -rf conftest* | |
20432 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 20433 | #line 20434 "configure" |
10f2d63a | 20434 | #include "confdefs.h" |
afc31813 VZ |
20435 | |
20436 | #include <sys/time.h> | |
20437 | #include <unistd.h> | |
a0b9e27f MB |
20438 | |
20439 | int main() { | |
afc31813 VZ |
20440 | |
20441 | struct timeval tv; | |
20442 | gettimeofday(&tv); | |
a0b9e27f MB |
20443 | |
20444 | ; return 0; } | |
20445 | EOF | |
8b389fab | 20446 | if { (eval echo configure:20447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 20447 | rm -rf conftest* |
afc31813 | 20448 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 20449 | else |
a0b9e27f MB |
20450 | echo "configure: failed program was:" >&5 |
20451 | cat conftest.$ac_ext >&5 | |
20452 | rm -rf conftest* | |
20453 | ||
20454 | echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2 | |
776862b4 | 20455 | wx_cv_func_gettimeofday_has_2_args=unknown |
a0b9e27f MB |
20456 | |
20457 | ||
10f2d63a | 20458 | fi |
a0b9e27f MB |
20459 | rm -f conftest* |
20460 | ||
10f2d63a | 20461 | fi |
a0b9e27f | 20462 | rm -f conftest* |
afc31813 | 20463 | ac_ext=c |
a0b9e27f | 20464 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 20465 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
20466 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20467 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20468 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 20469 | |
a0b9e27f | 20470 | |
247f5006 | 20471 | fi |
a0b9e27f MB |
20472 | |
20473 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 20474 | |
afc31813 | 20475 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
a0b9e27f | 20476 | cat >> confdefs.h <<\EOF |
afc31813 | 20477 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
a0b9e27f | 20478 | EOF |
afc31813 VZ |
20479 | |
20480 | fi | |
20481 | fi | |
20482 | ||
afc31813 VZ |
20483 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" |
20484 | fi | |
20485 | ||
8284b0c5 | 20486 | |
52127426 | 20487 | if test "$wxUSE_SOCKETS" = "yes"; then |
6c657b52 | 20488 | if test "$wxUSE_MGL" = "1"; then |
a0b9e27f | 20489 | echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
20490 | wxUSE_SOCKETS="no" |
20491 | fi | |
0feee163 | 20492 | fi |
b089607b | 20493 | |
0feee163 VZ |
20494 | if test "$wxUSE_SOCKETS" = "yes"; then |
20495 | if test "$TOOLKIT" != "MSW"; then | |
a0b9e27f | 20496 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
8b389fab | 20497 | echo "configure:20498: checking for socket" >&5 |
a0b9e27f MB |
20498 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
20499 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 20500 | else |
a0b9e27f | 20501 | cat > conftest.$ac_ext <<EOF |
8b389fab | 20502 | #line 20503 "configure" |
c63c7106 VZ |
20503 | #include "confdefs.h" |
20504 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 20505 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
20506 | #include <assert.h> |
20507 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20508 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20509 | builtin and then its argument prototype would still apply. */ |
20510 | char socket(); | |
20511 | ||
20512 | int main() { | |
20513 | ||
c63c7106 VZ |
20514 | /* The GNU C library defines this for functions which it implements |
20515 | to always fail with ENOSYS. Some functions are actually named | |
20516 | something starting with __ and the normal name is an alias. */ | |
20517 | #if defined (__stub_socket) || defined (__stub___socket) | |
20518 | choke me | |
20519 | #else | |
a0b9e27f | 20520 | socket(); |
c63c7106 VZ |
20521 | #endif |
20522 | ||
a0b9e27f MB |
20523 | ; return 0; } |
20524 | EOF | |
8b389fab | 20525 | if { (eval echo configure:20526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20526 | rm -rf conftest* |
20527 | eval "ac_cv_func_socket=yes" | |
20528 | else | |
20529 | echo "configure: failed program was:" >&5 | |
20530 | cat conftest.$ac_ext >&5 | |
20531 | rm -rf conftest* | |
20532 | eval "ac_cv_func_socket=no" | |
20533 | fi | |
20534 | rm -f conftest* | |
20535 | fi | |
20536 | ||
20537 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
20538 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
20539 | : |
20540 | else | |
a0b9e27f MB |
20541 | echo "$ac_t""no" 1>&6 |
20542 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
8b389fab | 20543 | echo "configure:20544: checking for socket in -lsocket" >&5 |
a0b9e27f MB |
20544 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
20545 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20546 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 20547 | else |
a0b9e27f | 20548 | ac_save_LIBS="$LIBS" |
c63c7106 | 20549 | LIBS="-lsocket $LIBS" |
a0b9e27f | 20550 | cat > conftest.$ac_ext <<EOF |
8b389fab | 20551 | #line 20552 "configure" |
c63c7106 VZ |
20552 | #include "confdefs.h" |
20553 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20554 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20555 | builtin and then its argument prototype would still apply. */ |
20556 | char socket(); | |
20557 | ||
20558 | int main() { | |
20559 | socket() | |
20560 | ; return 0; } | |
20561 | EOF | |
8b389fab | 20562 | if { (eval echo configure:20563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20563 | rm -rf conftest* |
20564 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20565 | else | |
20566 | echo "configure: failed program was:" >&5 | |
20567 | cat conftest.$ac_ext >&5 | |
20568 | rm -rf conftest* | |
20569 | eval "ac_cv_lib_$ac_lib_var=no" | |
20570 | fi | |
20571 | rm -f conftest* | |
20572 | LIBS="$ac_save_LIBS" | |
20573 | ||
20574 | fi | |
20575 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20576 | echo "$ac_t""yes" 1>&6 | |
d558c907 VS |
20577 | if test "$INET_LINK" != " -lsocket"; then |
20578 | INET_LINK="$INET_LINK -lsocket" | |
20579 | fi | |
c63c7106 | 20580 | else |
a0b9e27f | 20581 | echo "$ac_t""no" 1>&6 |
afc31813 | 20582 | |
a0b9e27f | 20583 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
3a922bb4 | 20584 | wxUSE_SOCKETS=no |
a0b9e27f MB |
20585 | |
20586 | ||
6232543b | 20587 | fi |
b089607b | 20588 | |
a0b9e27f | 20589 | |
1e487827 | 20590 | fi |
afc31813 | 20591 | |
3a922bb4 | 20592 | fi |
0feee163 | 20593 | fi |
51a9faba | 20594 | |
0feee163 VZ |
20595 | if test "$wxUSE_SOCKETS" = "yes" ; then |
20596 | if test "$TOOLKIT" != "MSW"; then | |
a0b9e27f | 20597 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 |
8b389fab | 20598 | echo "configure:20599: checking what is the type of the third argument of getsockname" >&5 |
a0b9e27f MB |
20599 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
20600 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20601 | else | |
20602 | ||
a0b9e27f | 20603 | cat > conftest.$ac_ext <<EOF |
8b389fab | 20604 | #line 20605 "configure" |
afc31813 | 20605 | #include "confdefs.h" |
51a9faba | 20606 | |
3a922bb4 RL |
20607 | #include <sys/types.h> |
20608 | #include <sys/socket.h> | |
a0b9e27f MB |
20609 | |
20610 | int main() { | |
51a9faba | 20611 | |
3a922bb4 RL |
20612 | socklen_t len; |
20613 | getsockname(0, 0, &len); | |
a0b9e27f MB |
20614 | |
20615 | ; return 0; } | |
20616 | EOF | |
8b389fab | 20617 | if { (eval echo configure:20618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 20618 | rm -rf conftest* |
51a9faba | 20619 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 20620 | else |
a0b9e27f MB |
20621 | echo "configure: failed program was:" >&5 |
20622 | cat conftest.$ac_ext >&5 | |
20623 | rm -rf conftest* | |
9711d31e GD |
20624 | |
20625 | CFLAGS_OLD="$CFLAGS" | |
20626 | if test "$GCC" = yes ; then | |
20627 | CFLAGS="$CFLAGS -Werror" | |
20628 | fi | |
20629 | ||
20630 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 20631 | #line 20632 "configure" |
afc31813 | 20632 | #include "confdefs.h" |
51a9faba | 20633 | |
9711d31e GD |
20634 | #include <sys/types.h> |
20635 | #include <sys/socket.h> | |
20636 | ||
a0b9e27f | 20637 | int main() { |
51a9faba | 20638 | |
9711d31e GD |
20639 | size_t len; |
20640 | getsockname(0, 0, &len); | |
20641 | ||
a0b9e27f MB |
20642 | ; return 0; } |
20643 | EOF | |
8b389fab | 20644 | if { (eval echo configure:20645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 20645 | rm -rf conftest* |
51a9faba | 20646 | wx_cv_type_getsockname3=size_t |
afc31813 | 20647 | else |
a0b9e27f MB |
20648 | echo "configure: failed program was:" >&5 |
20649 | cat conftest.$ac_ext >&5 | |
20650 | rm -rf conftest* | |
20651 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 20652 | #line 20653 "configure" |
afc31813 | 20653 | #include "confdefs.h" |
51a9faba | 20654 | |
9711d31e GD |
20655 | #include <sys/types.h> |
20656 | #include <sys/socket.h> | |
20657 | ||
a0b9e27f | 20658 | int main() { |
51a9faba | 20659 | |
9711d31e GD |
20660 | int len; |
20661 | getsockname(0, 0, &len); | |
20662 | ||
a0b9e27f MB |
20663 | ; return 0; } |
20664 | EOF | |
8b389fab | 20665 | if { (eval echo configure:20666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 20666 | rm -rf conftest* |
51a9faba | 20667 | wx_cv_type_getsockname3=int |
afc31813 | 20668 | else |
a0b9e27f MB |
20669 | echo "configure: failed program was:" >&5 |
20670 | cat conftest.$ac_ext >&5 | |
20671 | rm -rf conftest* | |
20672 | wx_cv_type_getsockname3=unknown | |
9711d31e | 20673 | |
afc31813 | 20674 | fi |
a0b9e27f | 20675 | rm -f conftest* |
9711d31e | 20676 | |
afc31813 | 20677 | fi |
a0b9e27f | 20678 | rm -f conftest* |
9711d31e GD |
20679 | |
20680 | CFLAGS="$CFLAGS_OLD" | |
20681 | ||
a0b9e27f | 20682 | |
afc31813 | 20683 | fi |
a0b9e27f | 20684 | rm -f conftest* |
a0b9e27f | 20685 | |
247f5006 | 20686 | fi |
a0b9e27f MB |
20687 | |
20688 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba | 20689 | |
3a922bb4 RL |
20690 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
20691 | wxUSE_SOCKETS=no | |
a0b9e27f | 20692 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 |
3a922bb4 | 20693 | else |
a0b9e27f | 20694 | cat >> confdefs.h <<EOF |
51a9faba | 20695 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
a0b9e27f | 20696 | EOF |
51a9faba | 20697 | |
3a922bb4 | 20698 | fi |
51a9faba VZ |
20699 | fi |
20700 | fi | |
afc31813 | 20701 | |
51a9faba | 20702 | if test "$wxUSE_SOCKETS" = "yes" ; then |
a0b9e27f | 20703 | cat >> confdefs.h <<\EOF |
afc31813 | 20704 | #define wxUSE_SOCKETS 1 |
a0b9e27f | 20705 | EOF |
afc31813 | 20706 | |
70f7a477 | 20707 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
20708 | fi |
20709 | ||
8284b0c5 | 20710 | |
dc3d889d VZ |
20711 | if test "$wxUSE_GUI" = "yes"; then |
20712 | ||
ac0c4cc3 | 20713 | if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then |
a0b9e27f | 20714 | echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2 |
156b2523 GD |
20715 | wxUSE_JOYSTICK=no |
20716 | fi | |
20717 | if test "$TOOLKIT" = "MOTIF"; then | |
a0b9e27f | 20718 | echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2 |
156b2523 | 20719 | wxUSE_JOYSTICK=no |
f79bd02d JS |
20720 | fi |
20721 | if test "$TOOLKIT" = "X11"; then | |
a0b9e27f | 20722 | echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2 |
f79bd02d | 20723 | wxUSE_JOYSTICK=no |
156b2523 GD |
20724 | fi |
20725 | ||
3a922bb4 RL |
20726 | if test "$TOOLKIT" != "MSW"; then |
20727 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
a0b9e27f | 20728 | for ac_hdr in linux/joystick.h |
10f2d63a | 20729 | do |
a0b9e27f MB |
20730 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
20731 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
8b389fab | 20732 | echo "configure:20733: checking for $ac_hdr" >&5 |
a0b9e27f MB |
20733 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
20734 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20735 | else | |
20736 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 20737 | #line 20738 "configure" |
247f5006 | 20738 | #include "confdefs.h" |
a0b9e27f MB |
20739 | #include <$ac_hdr> |
20740 | EOF | |
20741 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8b389fab | 20742 | { (eval echo configure:20743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
20743 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
20744 | if test -z "$ac_err"; then | |
20745 | rm -rf conftest* | |
20746 | eval "ac_cv_header_$ac_safe=yes" | |
20747 | else | |
20748 | echo "$ac_err" >&5 | |
20749 | echo "configure: failed program was:" >&5 | |
247f5006 | 20750 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
20751 | rm -rf conftest* |
20752 | eval "ac_cv_header_$ac_safe=no" | |
247f5006 | 20753 | fi |
a0b9e27f | 20754 | rm -f conftest* |
10f2d63a | 20755 | fi |
a0b9e27f MB |
20756 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
20757 | echo "$ac_t""yes" 1>&6 | |
20758 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
20759 | cat >> confdefs.h <<EOF | |
20760 | #define $ac_tr_hdr 1 | |
20761 | EOF | |
20762 | ||
20763 | else | |
20764 | echo "$ac_t""no" 1>&6 | |
247f5006 | 20765 | fi |
10f2d63a VZ |
20766 | done |
20767 | ||
3a922bb4 RL |
20768 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
20769 | wxUSE_JOYSTICK=no | |
a0b9e27f | 20770 | echo "configure: warning: Joystick not supported by this system... disabled" 1>&2 |
3a922bb4 RL |
20771 | fi |
20772 | fi | |
20773 | fi | |
b089607b | 20774 | |
3a922bb4 | 20775 | if test "$wxUSE_JOYSTICK" = "yes"; then |
a0b9e27f | 20776 | cat >> confdefs.h <<\EOF |
10f2d63a | 20777 | #define wxUSE_JOYSTICK 1 |
a0b9e27f | 20778 | EOF |
10f2d63a | 20779 | |
3a922bb4 RL |
20780 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
20781 | fi | |
dc3d889d VZ |
20782 | fi |
20783 | ||
8284b0c5 | 20784 | |
b089607b VZ |
20785 | if test "$TOOLKIT" != "MSW"; then |
20786 | ||
3a922bb4 RL |
20787 | HAVE_DL_FUNCS=0 |
20788 | HAVE_SHL_FUNCS=0 | |
0b9ab0bd | 20789 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
3a922bb4 RL |
20790 | if test "$USE_DARWIN" = 1; then |
20791 | HAVE_DL_FUNCS=1 | |
20792 | else | |
a0b9e27f | 20793 | for ac_func in dlopen |
10f2d63a | 20794 | do |
a0b9e27f | 20795 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8b389fab | 20796 | echo "configure:20797: checking for $ac_func" >&5 |
a0b9e27f MB |
20797 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
20798 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20799 | else | |
20800 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 20801 | #line 20802 "configure" |
10f2d63a VZ |
20802 | #include "confdefs.h" |
20803 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 20804 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
20805 | #include <assert.h> |
20806 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20807 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20808 | builtin and then its argument prototype would still apply. */ |
20809 | char $ac_func(); | |
20810 | ||
20811 | int main() { | |
20812 | ||
10f2d63a VZ |
20813 | /* The GNU C library defines this for functions which it implements |
20814 | to always fail with ENOSYS. Some functions are actually named | |
20815 | something starting with __ and the normal name is an alias. */ | |
20816 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20817 | choke me | |
20818 | #else | |
a0b9e27f | 20819 | $ac_func(); |
10f2d63a VZ |
20820 | #endif |
20821 | ||
a0b9e27f MB |
20822 | ; return 0; } |
20823 | EOF | |
8b389fab | 20824 | if { (eval echo configure:20825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20825 | rm -rf conftest* |
20826 | eval "ac_cv_func_$ac_func=yes" | |
20827 | else | |
20828 | echo "configure: failed program was:" >&5 | |
20829 | cat conftest.$ac_ext >&5 | |
20830 | rm -rf conftest* | |
20831 | eval "ac_cv_func_$ac_func=no" | |
20832 | fi | |
20833 | rm -f conftest* | |
20834 | fi | |
20835 | ||
20836 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
20837 | echo "$ac_t""yes" 1>&6 | |
20838 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20839 | cat >> confdefs.h <<EOF | |
20840 | #define $ac_tr_func 1 | |
20841 | EOF | |
20842 | ||
20843 | cat >> confdefs.h <<\EOF | |
10f2d63a | 20844 | #define HAVE_DLOPEN 1 |
a0b9e27f | 20845 | EOF |
10f2d63a | 20846 | |
3a922bb4 | 20847 | HAVE_DL_FUNCS=1 |
a0b9e27f | 20848 | |
10f2d63a | 20849 | else |
a0b9e27f MB |
20850 | echo "$ac_t""no" 1>&6 |
20851 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
8b389fab | 20852 | echo "configure:20853: checking for dlopen in -ldl" >&5 |
a0b9e27f MB |
20853 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
20854 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20855 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 20856 | else |
a0b9e27f | 20857 | ac_save_LIBS="$LIBS" |
10f2d63a | 20858 | LIBS="-ldl $LIBS" |
a0b9e27f | 20859 | cat > conftest.$ac_ext <<EOF |
8b389fab | 20860 | #line 20861 "configure" |
10f2d63a VZ |
20861 | #include "confdefs.h" |
20862 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20863 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20864 | builtin and then its argument prototype would still apply. */ |
20865 | char dlopen(); | |
20866 | ||
20867 | int main() { | |
20868 | dlopen() | |
20869 | ; return 0; } | |
20870 | EOF | |
8b389fab | 20871 | if { (eval echo configure:20872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20872 | rm -rf conftest* |
20873 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20874 | else | |
20875 | echo "configure: failed program was:" >&5 | |
20876 | cat conftest.$ac_ext >&5 | |
20877 | rm -rf conftest* | |
20878 | eval "ac_cv_lib_$ac_lib_var=no" | |
20879 | fi | |
20880 | rm -f conftest* | |
20881 | LIBS="$ac_save_LIBS" | |
20882 | ||
20883 | fi | |
20884 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20885 | echo "$ac_t""yes" 1>&6 | |
20886 | ||
20887 | cat >> confdefs.h <<\EOF | |
10f2d63a | 20888 | #define HAVE_DLOPEN 1 |
a0b9e27f | 20889 | EOF |
10f2d63a | 20890 | |
3a922bb4 | 20891 | HAVE_DL_FUNCS=1 |
3d63bc3a | 20892 | DL_LINK=" -ldl$DL_LINK" |
a0b9e27f | 20893 | |
10f2d63a | 20894 | else |
a0b9e27f | 20895 | echo "$ac_t""no" 1>&6 |
10f2d63a | 20896 | |
a0b9e27f | 20897 | for ac_func in shl_load |
10f2d63a | 20898 | do |
a0b9e27f | 20899 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8b389fab | 20900 | echo "configure:20901: checking for $ac_func" >&5 |
a0b9e27f MB |
20901 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
20902 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20903 | else | |
20904 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 20905 | #line 20906 "configure" |
10f2d63a VZ |
20906 | #include "confdefs.h" |
20907 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 20908 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
20909 | #include <assert.h> |
20910 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20911 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20912 | builtin and then its argument prototype would still apply. */ |
20913 | char $ac_func(); | |
20914 | ||
20915 | int main() { | |
20916 | ||
10f2d63a VZ |
20917 | /* The GNU C library defines this for functions which it implements |
20918 | to always fail with ENOSYS. Some functions are actually named | |
20919 | something starting with __ and the normal name is an alias. */ | |
20920 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20921 | choke me | |
20922 | #else | |
a0b9e27f | 20923 | $ac_func(); |
10f2d63a VZ |
20924 | #endif |
20925 | ||
a0b9e27f MB |
20926 | ; return 0; } |
20927 | EOF | |
8b389fab | 20928 | if { (eval echo configure:20929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20929 | rm -rf conftest* |
20930 | eval "ac_cv_func_$ac_func=yes" | |
20931 | else | |
20932 | echo "configure: failed program was:" >&5 | |
20933 | cat conftest.$ac_ext >&5 | |
20934 | rm -rf conftest* | |
20935 | eval "ac_cv_func_$ac_func=no" | |
20936 | fi | |
20937 | rm -f conftest* | |
20938 | fi | |
20939 | ||
20940 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
20941 | echo "$ac_t""yes" 1>&6 | |
20942 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20943 | cat >> confdefs.h <<EOF | |
20944 | #define $ac_tr_func 1 | |
20945 | EOF | |
20946 | ||
20947 | cat >> confdefs.h <<\EOF | |
10f2d63a | 20948 | #define HAVE_SHL_LOAD 1 |
a0b9e27f | 20949 | EOF |
10f2d63a | 20950 | |
3a922bb4 | 20951 | HAVE_SHL_FUNCS=1 |
a0b9e27f | 20952 | |
10f2d63a | 20953 | else |
a0b9e27f MB |
20954 | echo "$ac_t""no" 1>&6 |
20955 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
8b389fab | 20956 | echo "configure:20957: checking for dld in -lshl_load" >&5 |
a0b9e27f MB |
20957 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
20958 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20959 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 20960 | else |
a0b9e27f | 20961 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 20962 | LIBS="-lshl_load $LIBS" |
a0b9e27f | 20963 | cat > conftest.$ac_ext <<EOF |
8b389fab | 20964 | #line 20965 "configure" |
f6bcfd97 | 20965 | #include "confdefs.h" |
8284b0c5 | 20966 | /* Override any gcc2 internal prototype to avoid an error. */ |
f6bcfd97 | 20967 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
20968 | builtin and then its argument prototype would still apply. */ |
20969 | char dld(); | |
20970 | ||
20971 | int main() { | |
20972 | dld() | |
20973 | ; return 0; } | |
20974 | EOF | |
8b389fab | 20975 | if { (eval echo configure:20976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20976 | rm -rf conftest* |
20977 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20978 | else | |
20979 | echo "configure: failed program was:" >&5 | |
20980 | cat conftest.$ac_ext >&5 | |
20981 | rm -rf conftest* | |
20982 | eval "ac_cv_lib_$ac_lib_var=no" | |
20983 | fi | |
20984 | rm -f conftest* | |
20985 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 20986 | |
a0b9e27f MB |
20987 | fi |
20988 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20989 | echo "$ac_t""yes" 1>&6 | |
20990 | ||
3a922bb4 | 20991 | HAVE_SHL_FUNCS=1 |
3d63bc3a | 20992 | DL_LINK=" -ldld$DL_LINK" |
a0b9e27f MB |
20993 | |
20994 | else | |
20995 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
20996 | fi |
20997 | ||
a0b9e27f | 20998 | |
10f2d63a VZ |
20999 | fi |
21000 | done | |
21001 | ||
a0b9e27f | 21002 | |
10f2d63a VZ |
21003 | fi |
21004 | ||
a0b9e27f | 21005 | |
10f2d63a VZ |
21006 | fi |
21007 | done | |
21008 | ||
5c6fa7d2 | 21009 | |
8284b0c5 | 21010 | if test "$HAVE_DL_FUNCS" = 1; then |
a0b9e27f | 21011 | for ac_func in dlerror |
f6bcfd97 | 21012 | do |
a0b9e27f | 21013 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8b389fab | 21014 | echo "configure:21015: checking for $ac_func" >&5 |
a0b9e27f MB |
21015 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
21016 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21017 | else | |
21018 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 21019 | #line 21020 "configure" |
f6bcfd97 BP |
21020 | #include "confdefs.h" |
21021 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 21022 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
21023 | #include <assert.h> |
21024 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21025 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
21026 | builtin and then its argument prototype would still apply. */ |
21027 | char $ac_func(); | |
21028 | ||
21029 | int main() { | |
21030 | ||
f6bcfd97 BP |
21031 | /* The GNU C library defines this for functions which it implements |
21032 | to always fail with ENOSYS. Some functions are actually named | |
21033 | something starting with __ and the normal name is an alias. */ | |
21034 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
21035 | choke me | |
21036 | #else | |
a0b9e27f | 21037 | $ac_func(); |
f6bcfd97 BP |
21038 | #endif |
21039 | ||
a0b9e27f MB |
21040 | ; return 0; } |
21041 | EOF | |
8b389fab | 21042 | if { (eval echo configure:21043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
21043 | rm -rf conftest* |
21044 | eval "ac_cv_func_$ac_func=yes" | |
21045 | else | |
21046 | echo "configure: failed program was:" >&5 | |
21047 | cat conftest.$ac_ext >&5 | |
21048 | rm -rf conftest* | |
21049 | eval "ac_cv_func_$ac_func=no" | |
21050 | fi | |
21051 | rm -f conftest* | |
21052 | fi | |
21053 | ||
21054 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
21055 | echo "$ac_t""yes" 1>&6 | |
21056 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
21057 | cat >> confdefs.h <<EOF | |
21058 | #define $ac_tr_func 1 | |
21059 | EOF | |
21060 | cat >> confdefs.h <<\EOF | |
f6bcfd97 | 21061 | #define HAVE_DLERROR 1 |
a0b9e27f | 21062 | EOF |
f6bcfd97 BP |
21063 | |
21064 | else | |
a0b9e27f MB |
21065 | echo "$ac_t""no" 1>&6 |
21066 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
8b389fab | 21067 | echo "configure:21068: checking for dlerror in -ldl" >&5 |
a0b9e27f MB |
21068 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
21069 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
21070 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 21071 | else |
a0b9e27f | 21072 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 21073 | LIBS="-ldl $LIBS" |
a0b9e27f | 21074 | cat > conftest.$ac_ext <<EOF |
8b389fab | 21075 | #line 21076 "configure" |
f6bcfd97 BP |
21076 | #include "confdefs.h" |
21077 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21078 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
21079 | builtin and then its argument prototype would still apply. */ |
21080 | char dlerror(); | |
21081 | ||
21082 | int main() { | |
21083 | dlerror() | |
21084 | ; return 0; } | |
21085 | EOF | |
8b389fab | 21086 | if { (eval echo configure:21087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
21087 | rm -rf conftest* |
21088 | eval "ac_cv_lib_$ac_lib_var=yes" | |
21089 | else | |
21090 | echo "configure: failed program was:" >&5 | |
21091 | cat conftest.$ac_ext >&5 | |
21092 | rm -rf conftest* | |
21093 | eval "ac_cv_lib_$ac_lib_var=no" | |
21094 | fi | |
21095 | rm -f conftest* | |
21096 | LIBS="$ac_save_LIBS" | |
21097 | ||
21098 | fi | |
21099 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
21100 | echo "$ac_t""yes" 1>&6 | |
21101 | cat >> confdefs.h <<\EOF | |
f6bcfd97 | 21102 | #define HAVE_DLERROR 1 |
a0b9e27f | 21103 | EOF |
f6bcfd97 | 21104 | |
a0b9e27f MB |
21105 | else |
21106 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
21107 | fi |
21108 | ||
21109 | fi | |
21110 | done | |
21111 | ||
3a922bb4 RL |
21112 | fi |
21113 | fi | |
f6bcfd97 | 21114 | |
3a922bb4 RL |
21115 | if test "$HAVE_DL_FUNCS" = 0; then |
21116 | if test "$HAVE_SHL_FUNCS" = 0; then | |
21117 | if test "$USE_UNIX" = 1; then | |
a0b9e27f | 21118 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 |
0b9ab0bd | 21119 | wxUSE_DYNAMIC_LOADER=no |
3a922bb4 RL |
21120 | wxUSE_DYNLIB_CLASS=no |
21121 | else | |
a0b9e27f | 21122 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 |
3a922bb4 RL |
21123 | fi |
21124 | fi | |
10f2d63a VZ |
21125 | fi |
21126 | fi | |
21127 | fi | |
21128 | ||
0b9ab0bd | 21129 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then |
a0b9e27f | 21130 | cat >> confdefs.h <<\EOF |
0b9ab0bd | 21131 | #define wxUSE_DYNAMIC_LOADER 1 |
a0b9e27f | 21132 | EOF |
0b9ab0bd RL |
21133 | |
21134 | elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
a0b9e27f | 21135 | cat >> confdefs.h <<\EOF |
10f2d63a | 21136 | #define wxUSE_DYNLIB_CLASS 1 |
a0b9e27f | 21137 | EOF |
10f2d63a VZ |
21138 | |
21139 | fi | |
21140 | ||
8284b0c5 | 21141 | |
1e6feb95 | 21142 | if test "$wxUSE_FONTMAP" = "yes" ; then |
a0b9e27f | 21143 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21144 | #define wxUSE_FONTMAP 1 |
a0b9e27f | 21145 | EOF |
1e6feb95 VZ |
21146 | |
21147 | fi | |
21148 | ||
10f2d63a | 21149 | if test "$wxUSE_UNICODE" = "yes" ; then |
a0b9e27f | 21150 | cat >> confdefs.h <<\EOF |
10f2d63a | 21151 | #define wxUSE_UNICODE 1 |
a0b9e27f | 21152 | EOF |
10f2d63a | 21153 | |
8284b0c5 | 21154 | |
bbc3925a VS |
21155 | if test "$wxUSE_MSW" != 1; then |
21156 | wxUSE_UNICODE_MSLU=no | |
21157 | fi | |
a72a4bfa VS |
21158 | |
21159 | if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
a0b9e27f | 21160 | echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6 |
8b389fab | 21161 | echo "configure:21162: checking for main in -lunicows" >&5 |
a0b9e27f MB |
21162 | ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'` |
21163 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
21164 | echo $ac_n "(cached) $ac_c" 1>&6 | |
a72a4bfa | 21165 | else |
a0b9e27f | 21166 | ac_save_LIBS="$LIBS" |
a72a4bfa | 21167 | LIBS="-lunicows $LIBS" |
a0b9e27f | 21168 | cat > conftest.$ac_ext <<EOF |
8b389fab | 21169 | #line 21170 "configure" |
a72a4bfa VS |
21170 | #include "confdefs.h" |
21171 | ||
a0b9e27f MB |
21172 | int main() { |
21173 | main() | |
21174 | ; return 0; } | |
21175 | EOF | |
8b389fab | 21176 | if { (eval echo configure:21177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
21177 | rm -rf conftest* |
21178 | eval "ac_cv_lib_$ac_lib_var=yes" | |
21179 | else | |
21180 | echo "configure: failed program was:" >&5 | |
21181 | cat conftest.$ac_ext >&5 | |
21182 | rm -rf conftest* | |
21183 | eval "ac_cv_lib_$ac_lib_var=no" | |
21184 | fi | |
21185 | rm -f conftest* | |
21186 | LIBS="$ac_save_LIBS" | |
8284b0c5 | 21187 | |
a0b9e27f MB |
21188 | fi |
21189 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
21190 | echo "$ac_t""yes" 1>&6 | |
21191 | ||
21192 | cat >> confdefs.h <<\EOF | |
a72a4bfa | 21193 | #define wxUSE_UNICODE_MSLU 1 |
a0b9e27f | 21194 | EOF |
a72a4bfa | 21195 | |
a0b9e27f | 21196 | |
a72a4bfa | 21197 | else |
a0b9e27f | 21198 | echo "$ac_t""no" 1>&6 |
a72a4bfa | 21199 | |
a0b9e27f MB |
21200 | echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled. |
21201 | Applications will only run on Windows NT/2000/XP!" 1>&2 | |
a72a4bfa | 21202 | wxUSE_UNICODE_MSLU=no |
a0b9e27f | 21203 | |
a72a4bfa VS |
21204 | fi |
21205 | ||
21206 | fi | |
10f2d63a VZ |
21207 | fi |
21208 | ||
10f2d63a | 21209 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
a0b9e27f | 21210 | cat >> confdefs.h <<\EOF |
10f2d63a | 21211 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
a0b9e27f | 21212 | EOF |
10f2d63a VZ |
21213 | |
21214 | fi | |
21215 | ||
8284b0c5 | 21216 | |
10f2d63a | 21217 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
a0b9e27f | 21218 | cat >> confdefs.h <<\EOF |
10f2d63a | 21219 | #define wxUSE_POSTSCRIPT 1 |
a0b9e27f | 21220 | EOF |
10f2d63a VZ |
21221 | |
21222 | fi | |
21223 | ||
a0b9e27f | 21224 | cat >> confdefs.h <<\EOF |
10f2d63a | 21225 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
a0b9e27f | 21226 | EOF |
10f2d63a | 21227 | |
8284b0c5 | 21228 | |
a0b9e27f | 21229 | cat >> confdefs.h <<\EOF |
10f2d63a | 21230 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
a0b9e27f | 21231 | EOF |
10f2d63a | 21232 | |
8284b0c5 MB |
21233 | |
21234 | ||
10f2d63a | 21235 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
a0b9e27f | 21236 | cat >> confdefs.h <<\EOF |
10f2d63a | 21237 | #define wxUSE_CONSTRAINTS 1 |
a0b9e27f | 21238 | EOF |
10f2d63a VZ |
21239 | |
21240 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
21241 | fi | |
21242 | ||
21243 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
fc26f4ab | 21244 | |
8284b0c5 | 21245 | |
bb811f17 | 21246 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then |
a0b9e27f | 21247 | cat >> confdefs.h <<\EOF |
10f2d63a | 21248 | #define wxUSE_MDI_ARCHITECTURE 1 |
a0b9e27f | 21249 | EOF |
10f2d63a | 21250 | |
bb811f17 JS |
21251 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
21252 | fi | |
10f2d63a VZ |
21253 | fi |
21254 | ||
21255 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
a0b9e27f | 21256 | cat >> confdefs.h <<\EOF |
10f2d63a | 21257 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
a0b9e27f | 21258 | EOF |
10f2d63a VZ |
21259 | |
21260 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
21261 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
21262 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
21263 | fi | |
21264 | fi | |
21265 | ||
21266 | if test "$wxUSE_HELP" = "yes"; then | |
a0b9e27f | 21267 | cat >> confdefs.h <<\EOF |
10f2d63a | 21268 | #define wxUSE_HELP 1 |
a0b9e27f | 21269 | EOF |
10f2d63a VZ |
21270 | |
21271 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 21272 | |
77e13408 | 21273 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 21274 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
a0b9e27f | 21275 | cat >> confdefs.h <<\EOF |
29fd3c0c | 21276 | #define wxUSE_MS_HTML_HELP 1 |
a0b9e27f | 21277 | EOF |
29fd3c0c | 21278 | |
3e44f09d | 21279 | fi |
3379ed37 | 21280 | fi |
031d8228 VS |
21281 | |
21282 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
21283 | if test "$wxUSE_HTML" = "yes"; then | |
a0b9e27f | 21284 | cat >> confdefs.h <<\EOF |
031d8228 | 21285 | #define wxUSE_WXHTML_HELP 1 |
a0b9e27f | 21286 | EOF |
031d8228 VS |
21287 | |
21288 | else | |
a0b9e27f | 21289 | echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2 |
031d8228 VS |
21290 | wxUSE_WXHTML_HELP=no |
21291 | fi | |
21292 | fi | |
10f2d63a VZ |
21293 | fi |
21294 | ||
21295 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
21296 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
a0b9e27f | 21297 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 21298 | else |
a0b9e27f | 21299 | cat >> confdefs.h <<\EOF |
10f2d63a | 21300 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
a0b9e27f | 21301 | EOF |
10f2d63a VZ |
21302 | |
21303 | fi | |
21304 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
21305 | fi | |
21306 | ||
fd3d7534 | 21307 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then |
3c907f20 | 21308 | { echo "configure: error: wxExpr and old-style resources are now available in contrib only" 1>&2; exit 1; } |
10f2d63a VZ |
21309 | fi |
21310 | ||
8284b0c5 | 21311 | |
77e13408 RL |
21312 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
21313 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
3bce6687 | 21314 | -o "$wxUSE_OLE" = "yes" \ |
77e13408 | 21315 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then |
a0b9e27f | 21316 | for ac_hdr in ole2.h |
10f2d63a | 21317 | do |
a0b9e27f MB |
21318 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
21319 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
8b389fab | 21320 | echo "configure:21321: checking for $ac_hdr" >&5 |
a0b9e27f MB |
21321 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
21322 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21323 | else | |
21324 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 21325 | #line 21326 "configure" |
10f2d63a | 21326 | #include "confdefs.h" |
a0b9e27f MB |
21327 | #include <$ac_hdr> |
21328 | EOF | |
21329 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8b389fab | 21330 | { (eval echo configure:21331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
21331 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
21332 | if test -z "$ac_err"; then | |
21333 | rm -rf conftest* | |
21334 | eval "ac_cv_header_$ac_safe=yes" | |
21335 | else | |
21336 | echo "$ac_err" >&5 | |
21337 | echo "configure: failed program was:" >&5 | |
10f2d63a | 21338 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
21339 | rm -rf conftest* |
21340 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 21341 | fi |
a0b9e27f | 21342 | rm -f conftest* |
10f2d63a | 21343 | fi |
a0b9e27f MB |
21344 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
21345 | echo "$ac_t""yes" 1>&6 | |
21346 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
21347 | cat >> confdefs.h <<EOF | |
21348 | #define $ac_tr_hdr 1 | |
21349 | EOF | |
21350 | ||
21351 | else | |
21352 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
21353 | fi |
21354 | done | |
21355 | ||
8284b0c5 | 21356 | |
2b9bdf71 VZ |
21357 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
21358 | if test "$GCC" = yes ; then | |
a0b9e27f MB |
21359 | |
21360 | ac_ext=C | |
21361 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8284b0c5 | 21362 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
21363 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
21364 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
21365 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 MB |
21366 | |
21367 | ||
a0b9e27f | 21368 | echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6 |
8b389fab | 21369 | echo "configure:21370: checking if g++ requires -fvtable-thunks" >&5 |
a0b9e27f | 21370 | cat > conftest.$ac_ext <<EOF |
8b389fab | 21371 | #line 21372 "configure" |
8284b0c5 MB |
21372 | #include "confdefs.h" |
21373 | #include <windows.h> | |
21374 | #include <ole2.h> | |
a0b9e27f | 21375 | int main() { |
8284b0c5 | 21376 | |
a0b9e27f MB |
21377 | ; return 0; } |
21378 | EOF | |
8b389fab | 21379 | if { (eval echo configure:21380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
21380 | rm -rf conftest* |
21381 | echo "$ac_t""no" 1>&6 | |
21382 | else | |
21383 | echo "configure: failed program was:" >&5 | |
21384 | cat conftest.$ac_ext >&5 | |
21385 | rm -rf conftest* | |
21386 | echo "$ac_t""yes" 1>&6 | |
8284b0c5 MB |
21387 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
21388 | fi | |
a0b9e27f | 21389 | rm -f conftest* |
8284b0c5 | 21390 | ac_ext=c |
a0b9e27f | 21391 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
8284b0c5 | 21392 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
21393 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
21394 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
21395 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 21396 | |
2b9bdf71 | 21397 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" |
3d63bc3a | 21398 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
a0b9e27f | 21399 | cat >> confdefs.h <<\EOF |
4f11a343 | 21400 | #define wxUSE_OLE 1 |
a0b9e27f | 21401 | EOF |
4f11a343 | 21402 | |
8284b0c5 | 21403 | |
2b9bdf71 VZ |
21404 | fi |
21405 | ||
a0b9e27f | 21406 | cat >> confdefs.h <<\EOF |
2b9bdf71 | 21407 | #define wxUSE_DATAOBJ 1 |
a0b9e27f | 21408 | EOF |
2b9bdf71 VZ |
21409 | |
21410 | else | |
a0b9e27f | 21411 | echo "configure: warning: Some features disabled because OLE headers not found" 1>&2 |
2b9bdf71 VZ |
21412 | |
21413 | wxUSE_CLIPBOARD=no | |
21414 | wxUSE_DRAG_AND_DROP=no | |
21415 | wxUSE_DATAOBJ=no | |
3bce6687 JS |
21416 | wxUSE_OLE=no |
21417 | fi | |
21418 | ||
21419 | if test "$wxUSE_METAFILE" = "yes"; then | |
21420 | cat >> confdefs.h <<\EOF | |
21421 | #define wxUSE_METAFILE 1 | |
21422 | EOF | |
21423 | ||
21424 | ||
21425 | cat >> confdefs.h <<\EOF | |
21426 | #define wxUSE_ENH_METAFILE 1 | |
21427 | EOF | |
21428 | ||
21429 | fi | |
21430 | fi | |
21431 | ||
2b9bdf71 VZ |
21432 | if test "$wxUSE_IPC" = "yes"; then |
21433 | if test "$wxUSE_SOCKETS" != "yes"; then | |
a0b9e27f | 21434 | echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2 |
2b9bdf71 VZ |
21435 | fi |
21436 | ||
a0b9e27f | 21437 | cat >> confdefs.h <<\EOF |
2b9bdf71 | 21438 | #define wxUSE_IPC 1 |
a0b9e27f | 21439 | EOF |
2b9bdf71 VZ |
21440 | |
21441 | fi | |
21442 | ||
21443 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
6c657b52 | 21444 | if test "$wxUSE_MGL" = 1; then |
a0b9e27f | 21445 | echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
21446 | wxUSE_CLIPBOARD=no |
21447 | fi | |
21448 | ||
21449 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
a0b9e27f | 21450 | cat >> confdefs.h <<\EOF |
2b9bdf71 | 21451 | #define wxUSE_CLIPBOARD 1 |
a0b9e27f | 21452 | EOF |
2b9bdf71 | 21453 | |
8284b0c5 | 21454 | |
a0b9e27f | 21455 | cat >> confdefs.h <<\EOF |
673f4220 | 21456 | #define wxUSE_DATAOBJ 1 |
a0b9e27f | 21457 | EOF |
673f4220 | 21458 | |
6c657b52 | 21459 | fi |
2b9bdf71 VZ |
21460 | fi |
21461 | ||
21462 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
21463 | if test "$wxUSE_GTK" = 1; then | |
21464 | if test "$WXGTK12" != 1; then | |
a0b9e27f | 21465 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2 |
10f2d63a VZ |
21466 | wxUSE_DRAG_AND_DROP=no |
21467 | fi | |
21468 | fi | |
21469 | ||
2b9bdf71 | 21470 | if test "$wxUSE_MOTIF" = 1; then |
a0b9e27f | 21471 | echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2 |
2b9bdf71 VZ |
21472 | wxUSE_DRAG_AND_DROP=no |
21473 | fi | |
21474 | ||
f79bd02d | 21475 | if test "$wxUSE_X11" = 1; then |
a0b9e27f | 21476 | echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2 |
f79bd02d JS |
21477 | wxUSE_DRAG_AND_DROP=no |
21478 | fi | |
21479 | ||
6c657b52 | 21480 | if test "$wxUSE_MGL" = 1; then |
a0b9e27f | 21481 | echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
21482 | wxUSE_DRAG_AND_DROP=no |
21483 | fi | |
21484 | ||
10f2d63a | 21485 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
a0b9e27f | 21486 | cat >> confdefs.h <<\EOF |
10f2d63a | 21487 | #define wxUSE_DRAG_AND_DROP 1 |
a0b9e27f | 21488 | EOF |
10f2d63a VZ |
21489 | |
21490 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
21491 | fi | |
21492 | ||
21493 | fi | |
21494 | ||
21495 | if test "$wxUSE_SPLINES" = "yes" ; then | |
a0b9e27f | 21496 | cat >> confdefs.h <<\EOF |
10f2d63a | 21497 | #define wxUSE_SPLINES 1 |
a0b9e27f | 21498 | EOF |
10f2d63a VZ |
21499 | |
21500 | fi | |
21501 | ||
8284b0c5 | 21502 | |
1e6feb95 VZ |
21503 | USES_CONTROLS=0 |
21504 | if test "$wxUSE_CONTROLS" = "yes"; then | |
21505 | USES_CONTROLS=1 | |
21506 | fi | |
21507 | ||
10f2d63a | 21508 | if test "$wxUSE_ACCEL" = "yes"; then |
a0b9e27f | 21509 | cat >> confdefs.h <<\EOF |
10f2d63a | 21510 | #define wxUSE_ACCEL 1 |
a0b9e27f | 21511 | EOF |
10f2d63a | 21512 | |
1e6feb95 VZ |
21513 | USES_CONTROLS=1 |
21514 | fi | |
21515 | ||
21516 | if test "$wxUSE_BUTTON" = "yes"; then | |
a0b9e27f | 21517 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21518 | #define wxUSE_BUTTON 1 |
a0b9e27f | 21519 | EOF |
1e6feb95 VZ |
21520 | |
21521 | USES_CONTROLS=1 | |
21522 | fi | |
21523 | ||
21524 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
a0b9e27f | 21525 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21526 | #define wxUSE_BMPBUTTON 1 |
a0b9e27f | 21527 | EOF |
1e6feb95 VZ |
21528 | |
21529 | USES_CONTROLS=1 | |
21530 | fi | |
21531 | ||
21532 | if test "$wxUSE_CALCTRL" = "yes"; then | |
a0b9e27f | 21533 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21534 | #define wxUSE_CALENDARCTRL 1 |
a0b9e27f | 21535 | EOF |
1e6feb95 VZ |
21536 | |
21537 | USES_CONTROLS=1 | |
21538 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
21539 | fi |
21540 | ||
21541 | if test "$wxUSE_CARET" = "yes"; then | |
a0b9e27f | 21542 | cat >> confdefs.h <<\EOF |
10f2d63a | 21543 | #define wxUSE_CARET 1 |
a0b9e27f | 21544 | EOF |
10f2d63a | 21545 | |
1e6feb95 | 21546 | USES_CONTROLS=1 |
10f2d63a VZ |
21547 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
21548 | fi | |
21549 | ||
21550 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
a0b9e27f | 21551 | cat >> confdefs.h <<\EOF |
10f2d63a | 21552 | #define wxUSE_COMBOBOX 1 |
a0b9e27f | 21553 | EOF |
10f2d63a | 21554 | |
1e6feb95 | 21555 | USES_CONTROLS=1 |
10f2d63a VZ |
21556 | fi |
21557 | ||
21558 | if test "$wxUSE_CHOICE" = "yes"; then | |
a0b9e27f | 21559 | cat >> confdefs.h <<\EOF |
10f2d63a | 21560 | #define wxUSE_CHOICE 1 |
a0b9e27f | 21561 | EOF |
10f2d63a | 21562 | |
1e6feb95 | 21563 | USES_CONTROLS=1 |
10f2d63a VZ |
21564 | fi |
21565 | ||
21566 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
a0b9e27f | 21567 | cat >> confdefs.h <<\EOF |
10f2d63a | 21568 | #define wxUSE_CHECKBOX 1 |
a0b9e27f | 21569 | EOF |
10f2d63a | 21570 | |
1e6feb95 | 21571 | USES_CONTROLS=1 |
10f2d63a VZ |
21572 | fi |
21573 | ||
21574 | if test "$wxUSE_CHECKLST" = "yes"; then | |
a0b9e27f | 21575 | cat >> confdefs.h <<\EOF |
10f2d63a | 21576 | #define wxUSE_CHECKLISTBOX 1 |
a0b9e27f | 21577 | EOF |
10f2d63a | 21578 | |
1e6feb95 | 21579 | USES_CONTROLS=1 |
10f2d63a VZ |
21580 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
21581 | fi | |
21582 | ||
da494b40 MB |
21583 | if test "$wxUSE_DISPLAY" = "yes"; then |
21584 | cat >> confdefs.h <<\EOF | |
21585 | #define wxUSE_DISPLAY 1 | |
21586 | EOF | |
21587 | ||
21588 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display" | |
21589 | fi | |
21590 | ||
10f2d63a | 21591 | if test "$wxUSE_GAUGE" = "yes"; then |
a0b9e27f | 21592 | cat >> confdefs.h <<\EOF |
10f2d63a | 21593 | #define wxUSE_GAUGE 1 |
a0b9e27f | 21594 | EOF |
10f2d63a | 21595 | |
1e6feb95 | 21596 | USES_CONTROLS=1 |
10f2d63a VZ |
21597 | fi |
21598 | ||
d6a55c4b | 21599 | if test "$wxUSE_GRID" = "yes"; then |
a0b9e27f | 21600 | cat >> confdefs.h <<\EOF |
d6a55c4b | 21601 | #define wxUSE_GRID 1 |
a0b9e27f | 21602 | EOF |
10f2d63a | 21603 | |
1e6feb95 | 21604 | USES_CONTROLS=1 |
d6a55c4b | 21605 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
21606 | fi |
21607 | ||
21608 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
a0b9e27f | 21609 | cat >> confdefs.h <<\EOF |
10f2d63a | 21610 | #define wxUSE_IMAGLIST 1 |
a0b9e27f | 21611 | EOF |
10f2d63a VZ |
21612 | |
21613 | fi | |
21614 | ||
21615 | if test "$wxUSE_LISTBOX" = "yes"; then | |
a0b9e27f | 21616 | cat >> confdefs.h <<\EOF |
10f2d63a | 21617 | #define wxUSE_LISTBOX 1 |
a0b9e27f | 21618 | EOF |
10f2d63a | 21619 | |
1e6feb95 | 21620 | USES_CONTROLS=1 |
10f2d63a VZ |
21621 | fi |
21622 | ||
21623 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
21624 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
a0b9e27f | 21625 | cat >> confdefs.h <<\EOF |
10f2d63a | 21626 | #define wxUSE_LISTCTRL 1 |
a0b9e27f | 21627 | EOF |
10f2d63a | 21628 | |
1e6feb95 | 21629 | USES_CONTROLS=1 |
10f2d63a VZ |
21630 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
21631 | else | |
a0b9e27f | 21632 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
21633 | fi |
21634 | fi | |
21635 | ||
21636 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
a0b9e27f | 21637 | cat >> confdefs.h <<\EOF |
10f2d63a | 21638 | #define wxUSE_NOTEBOOK 1 |
a0b9e27f | 21639 | EOF |
10f2d63a | 21640 | |
1e6feb95 | 21641 | USES_CONTROLS=1 |
10f2d63a VZ |
21642 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
21643 | fi | |
21644 | ||
24176f2c | 21645 | |
10f2d63a | 21646 | if test "$wxUSE_RADIOBOX" = "yes"; then |
a0b9e27f | 21647 | cat >> confdefs.h <<\EOF |
10f2d63a | 21648 | #define wxUSE_RADIOBOX 1 |
a0b9e27f | 21649 | EOF |
10f2d63a | 21650 | |
1e6feb95 | 21651 | USES_CONTROLS=1 |
10f2d63a VZ |
21652 | fi |
21653 | ||
21654 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
a0b9e27f | 21655 | cat >> confdefs.h <<\EOF |
10f2d63a | 21656 | #define wxUSE_RADIOBTN 1 |
a0b9e27f | 21657 | EOF |
10f2d63a | 21658 | |
1e6feb95 | 21659 | USES_CONTROLS=1 |
10f2d63a VZ |
21660 | fi |
21661 | ||
21662 | if test "$wxUSE_SASH" = "yes"; then | |
a0b9e27f | 21663 | cat >> confdefs.h <<\EOF |
10f2d63a | 21664 | #define wxUSE_SASH 1 |
a0b9e27f | 21665 | EOF |
10f2d63a VZ |
21666 | |
21667 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
21668 | fi | |
21669 | ||
21670 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
a0b9e27f | 21671 | cat >> confdefs.h <<\EOF |
10f2d63a | 21672 | #define wxUSE_SCROLLBAR 1 |
a0b9e27f | 21673 | EOF |
10f2d63a | 21674 | |
1e6feb95 | 21675 | USES_CONTROLS=1 |
741a9306 | 21676 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
21677 | fi |
21678 | ||
21679 | if test "$wxUSE_SLIDER" = "yes"; then | |
a0b9e27f | 21680 | cat >> confdefs.h <<\EOF |
10f2d63a | 21681 | #define wxUSE_SLIDER 1 |
a0b9e27f | 21682 | EOF |
10f2d63a | 21683 | |
1e6feb95 | 21684 | USES_CONTROLS=1 |
10f2d63a VZ |
21685 | fi |
21686 | ||
21687 | if test "$wxUSE_SPINBTN" = "yes"; then | |
a0b9e27f | 21688 | cat >> confdefs.h <<\EOF |
10f2d63a | 21689 | #define wxUSE_SPINBTN 1 |
a0b9e27f | 21690 | EOF |
10f2d63a | 21691 | |
1e6feb95 | 21692 | USES_CONTROLS=1 |
10f2d63a VZ |
21693 | fi |
21694 | ||
56cfaa52 | 21695 | if test "$wxUSE_SPINCTRL" = "yes"; then |
a0b9e27f | 21696 | cat >> confdefs.h <<\EOF |
56cfaa52 | 21697 | #define wxUSE_SPINCTRL 1 |
a0b9e27f | 21698 | EOF |
56cfaa52 | 21699 | |
1e6feb95 | 21700 | USES_CONTROLS=1 |
56cfaa52 RR |
21701 | fi |
21702 | ||
10f2d63a | 21703 | if test "$wxUSE_SPLITTER" = "yes"; then |
a0b9e27f | 21704 | cat >> confdefs.h <<\EOF |
10f2d63a | 21705 | #define wxUSE_SPLITTER 1 |
a0b9e27f | 21706 | EOF |
10f2d63a VZ |
21707 | |
21708 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
21709 | fi | |
21710 | ||
21711 | if test "$wxUSE_STATBMP" = "yes"; then | |
a0b9e27f | 21712 | cat >> confdefs.h <<\EOF |
10f2d63a | 21713 | #define wxUSE_STATBMP 1 |
a0b9e27f | 21714 | EOF |
10f2d63a | 21715 | |
1e6feb95 | 21716 | USES_CONTROLS=1 |
10f2d63a VZ |
21717 | fi |
21718 | ||
21719 | if test "$wxUSE_STATBOX" = "yes"; then | |
a0b9e27f | 21720 | cat >> confdefs.h <<\EOF |
10f2d63a | 21721 | #define wxUSE_STATBOX 1 |
a0b9e27f | 21722 | EOF |
10f2d63a | 21723 | |
1e6feb95 VZ |
21724 | USES_CONTROLS=1 |
21725 | fi | |
21726 | ||
21727 | if test "$wxUSE_STATTEXT" = "yes"; then | |
a0b9e27f | 21728 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21729 | #define wxUSE_STATTEXT 1 |
a0b9e27f | 21730 | EOF |
1e6feb95 VZ |
21731 | |
21732 | USES_CONTROLS=1 | |
10f2d63a VZ |
21733 | fi |
21734 | ||
21735 | if test "$wxUSE_STATLINE" = "yes"; then | |
89e6bf6d | 21736 | cat >> confdefs.h <<\EOF |
10f2d63a | 21737 | #define wxUSE_STATLINE 1 |
a0b9e27f | 21738 | EOF |
10f2d63a | 21739 | |
89e6bf6d | 21740 | USES_CONTROLS=1 |
10f2d63a VZ |
21741 | fi |
21742 | ||
21743 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
a0b9e27f | 21744 | cat >> confdefs.h <<\EOF |
10f2d63a | 21745 | #define wxUSE_STATUSBAR 1 |
a0b9e27f | 21746 | EOF |
10f2d63a | 21747 | |
1e6feb95 | 21748 | USES_CONTROLS=1 |
698dcdb6 | 21749 | |
2286341c | 21750 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
21751 | fi |
21752 | ||
21753 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
a0b9e27f | 21754 | cat >> confdefs.h <<\EOF |
10f2d63a | 21755 | #define wxUSE_TAB_DIALOG 1 |
a0b9e27f | 21756 | EOF |
10f2d63a VZ |
21757 | |
21758 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
21759 | fi | |
21760 | ||
1e6feb95 | 21761 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
a0b9e27f | 21762 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21763 | #define wxUSE_TEXTCTRL 1 |
a0b9e27f | 21764 | EOF |
1e6feb95 VZ |
21765 | |
21766 | USES_CONTROLS=1 | |
21767 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
21768 | fi | |
21769 | ||
1db8dc4a | 21770 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
ac0c4cc3 | 21771 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
a0b9e27f | 21772 | echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2 |
156b2523 GD |
21773 | wxUSE_TOGGLEBTN=no |
21774 | fi | |
21775 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
a0b9e27f | 21776 | echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2 |
a45d7ab7 GD |
21777 | wxUSE_TOGGLEBTN=no |
21778 | fi | |
21779 | ||
21780 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
a0b9e27f | 21781 | cat >> confdefs.h <<\EOF |
1db8dc4a | 21782 | #define wxUSE_TOGGLEBTN 1 |
a0b9e27f | 21783 | EOF |
1db8dc4a | 21784 | |
1e6feb95 | 21785 | USES_CONTROLS=1 |
a45d7ab7 | 21786 | fi |
1db8dc4a VZ |
21787 | fi |
21788 | ||
360d6699 | 21789 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
a0b9e27f | 21790 | cat >> confdefs.h <<\EOF |
360d6699 | 21791 | #define wxUSE_TOOLBAR_SIMPLE 1 |
a0b9e27f | 21792 | EOF |
360d6699 VZ |
21793 | |
21794 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 21795 | USES_CONTROLS=1 |
360d6699 VZ |
21796 | fi |
21797 | ||
10f2d63a | 21798 | if test "$wxUSE_TOOLBAR" = "yes"; then |
a0b9e27f | 21799 | cat >> confdefs.h <<\EOF |
10f2d63a | 21800 | #define wxUSE_TOOLBAR 1 |
a0b9e27f | 21801 | EOF |
10f2d63a | 21802 | |
1e6feb95 | 21803 | USES_CONTROLS=1 |
698dcdb6 | 21804 | |
360d6699 VZ |
21805 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
21806 | wxUSE_TOOLBAR_NATIVE="yes" | |
21807 | fi | |
21808 | ||
1e6feb95 | 21809 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
a0b9e27f | 21810 | cat >> confdefs.h <<\EOF |
360d6699 | 21811 | #define wxUSE_TOOLBAR_NATIVE 1 |
a0b9e27f | 21812 | EOF |
360d6699 | 21813 | |
1e6feb95 VZ |
21814 | USES_CONTROLS=1 |
21815 | fi | |
21816 | ||
21817 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
21818 | fi |
21819 | ||
10f2d63a VZ |
21820 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
21821 | if test "$wxUSE_MOTIF" = 1; then | |
a0b9e27f | 21822 | echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2 |
10f2d63a | 21823 | else |
89e6bf6d VZ |
21824 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
21825 | echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2 | |
10f2d63a | 21826 | else |
89e6bf6d | 21827 | cat >> confdefs.h <<\EOF |
10f2d63a | 21828 | #define wxUSE_TOOLTIPS 1 |
a0b9e27f | 21829 | EOF |
10f2d63a VZ |
21830 | |
21831 | fi | |
21832 | fi | |
21833 | fi | |
21834 | ||
21835 | if test "$wxUSE_TREECTRL" = "yes"; then | |
21836 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
a0b9e27f | 21837 | cat >> confdefs.h <<\EOF |
10f2d63a | 21838 | #define wxUSE_TREECTRL 1 |
a0b9e27f | 21839 | EOF |
10f2d63a | 21840 | |
1e6feb95 | 21841 | USES_CONTROLS=1 |
10f2d63a VZ |
21842 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
21843 | else | |
a0b9e27f | 21844 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
21845 | fi |
21846 | fi | |
21847 | ||
9f41d601 | 21848 | if test "$wxUSE_POPUPWIN" = "yes"; then |
ac0c4cc3 | 21849 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
a0b9e27f | 21850 | echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2 |
6abe4b65 | 21851 | else |
485cf710 | 21852 | if test "$wxUSE_MOTIF" = 1; then |
a0b9e27f | 21853 | echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2 |
485cf710 | 21854 | else |
3c011993 | 21855 | if test "$wxUSE_PM" = 1; then |
a0b9e27f | 21856 | echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2 |
3bd8fb5f | 21857 | else |
a0b9e27f | 21858 | cat >> confdefs.h <<\EOF |
9f41d601 | 21859 | #define wxUSE_POPUPWIN 1 |
a0b9e27f | 21860 | EOF |
9f41d601 | 21861 | |
8284b0c5 | 21862 | |
3c011993 VZ |
21863 | USES_CONTROLS=1 |
21864 | fi | |
485cf710 | 21865 | fi |
6abe4b65 | 21866 | fi |
9f41d601 RR |
21867 | fi |
21868 | ||
dd964dcc | 21869 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
3c011993 | 21870 | if test "$wxUSE_PM" = 1; then |
a0b9e27f | 21871 | echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2 |
3bd8fb5f | 21872 | else |
a0b9e27f | 21873 | cat >> confdefs.h <<\EOF |
dd964dcc | 21874 | #define wxUSE_TIPWINDOW 1 |
a0b9e27f | 21875 | EOF |
dd964dcc | 21876 | |
3c011993 | 21877 | fi |
dd964dcc VZ |
21878 | fi |
21879 | ||
1e6feb95 | 21880 | if test "$USES_CONTROLS" = 1; then |
a0b9e27f | 21881 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21882 | #define wxUSE_CONTROLS 1 |
a0b9e27f | 21883 | EOF |
10f2d63a | 21884 | |
10f2d63a VZ |
21885 | fi |
21886 | ||
8284b0c5 | 21887 | |
1e6feb95 | 21888 | |
24fd6d87 | 21889 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
a0b9e27f | 21890 | cat >> confdefs.h <<\EOF |
24fd6d87 | 21891 | #define wxUSE_DRAGIMAGE 1 |
a0b9e27f | 21892 | EOF |
24fd6d87 VZ |
21893 | |
21894 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
21895 | fi | |
21896 | ||
7bb2947d MB |
21897 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then |
21898 | cat >> confdefs.h <<\EOF | |
21899 | #define wxUSE_ACCESSIBILITY 1 | |
21900 | EOF | |
21901 | ||
21902 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
21903 | fi | |
21904 | ||
1e6feb95 | 21905 | if test "$wxUSE_MENUS" = "yes"; then |
a0b9e27f | 21906 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21907 | #define wxUSE_MENUS 1 |
a0b9e27f | 21908 | EOF |
10f2d63a | 21909 | |
1e6feb95 | 21910 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
21911 | fi |
21912 | ||
1e6feb95 | 21913 | if test "$wxUSE_METAFILE" = "yes"; then |
a0b9e27f | 21914 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21915 | #define wxUSE_METAFILE 1 |
a0b9e27f | 21916 | EOF |
10f2d63a | 21917 | |
10f2d63a VZ |
21918 | fi |
21919 | ||
1e6feb95 | 21920 | if test "$wxUSE_MIMETYPE" = "yes"; then |
a0b9e27f | 21921 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21922 | #define wxUSE_MIMETYPE 1 |
a0b9e27f | 21923 | EOF |
10f2d63a | 21924 | |
10f2d63a VZ |
21925 | fi |
21926 | ||
3e44f09d | 21927 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
a0b9e27f | 21928 | cat >> confdefs.h <<\EOF |
3e44f09d | 21929 | #define wxUSE_SYSTEM_OPTIONS 1 |
a0b9e27f | 21930 | EOF |
3e44f09d | 21931 | |
321d2b14 VZ |
21932 | if test "$TOOLKIT" = "MSW"; then |
21933 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" | |
21934 | fi | |
21935 | ||
3e44f09d VZ |
21936 | fi |
21937 | ||
4cdb0ab0 | 21938 | if test "$wxUSE_PROTOCOL" = "yes"; then |
3954f9ca | 21939 | if test "$wxUSE_SOCKETS" != "yes"; then |
a0b9e27f | 21940 | echo "configure: warning: Protocol classes require sockets... disabled" 1>&2 |
3954f9ca VS |
21941 | wxUSE_PROTOCOL=no |
21942 | fi | |
21943 | ||
21944 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
a0b9e27f | 21945 | cat >> confdefs.h <<\EOF |
4cdb0ab0 | 21946 | #define wxUSE_PROTOCOL 1 |
a0b9e27f | 21947 | EOF |
4cdb0ab0 | 21948 | |
8284b0c5 | 21949 | |
3954f9ca | 21950 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then |
a0b9e27f | 21951 | cat >> confdefs.h <<\EOF |
4cdb0ab0 | 21952 | #define wxUSE_PROTOCOL_HTTP 1 |
a0b9e27f | 21953 | EOF |
4cdb0ab0 | 21954 | |
3954f9ca VS |
21955 | fi |
21956 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
a0b9e27f | 21957 | cat >> confdefs.h <<\EOF |
4cdb0ab0 | 21958 | #define wxUSE_PROTOCOL_FTP 1 |
a0b9e27f | 21959 | EOF |
4cdb0ab0 | 21960 | |
3954f9ca VS |
21961 | fi |
21962 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
a0b9e27f | 21963 | cat >> confdefs.h <<\EOF |
3954f9ca | 21964 | #define wxUSE_PROTOCOL_FILE 1 |
a0b9e27f | 21965 | EOF |
3954f9ca VS |
21966 | |
21967 | fi | |
4cdb0ab0 | 21968 | fi |
3954f9ca VS |
21969 | fi |
21970 | ||
21971 | if test "$wxUSE_URL" = "yes"; then | |
21972 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
a0b9e27f | 21973 | echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2 |
3954f9ca VS |
21974 | wxUSE_URL=no |
21975 | fi | |
21976 | if test "$wxUSE_URL" = "yes"; then | |
a0b9e27f | 21977 | cat >> confdefs.h <<\EOF |
3954f9ca | 21978 | #define wxUSE_URL 1 |
a0b9e27f | 21979 | EOF |
4cdb0ab0 VS |
21980 | |
21981 | fi | |
21982 | fi | |
21983 | ||
10f2d63a | 21984 | if test "$wxUSE_MINIFRAME" = "yes"; then |
a0b9e27f | 21985 | cat >> confdefs.h <<\EOF |
10f2d63a | 21986 | #define wxUSE_MINIFRAME 1 |
a0b9e27f | 21987 | EOF |
10f2d63a VZ |
21988 | |
21989 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
21990 | fi | |
21991 | ||
21992 | if test "$wxUSE_HTML" = "yes"; then | |
a0b9e27f | 21993 | cat >> confdefs.h <<\EOF |
10f2d63a | 21994 | #define wxUSE_HTML 1 |
a0b9e27f | 21995 | EOF |
10f2d63a | 21996 | |
d2739ea6 | 21997 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html htlbox" |
10f2d63a VZ |
21998 | fi |
21999 | ||
22000 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
a0b9e27f | 22001 | cat >> confdefs.h <<\EOF |
1e487827 | 22002 | #define wxUSE_VALIDATORS 1 |
a0b9e27f | 22003 | EOF |
703e0a69 | 22004 | |
698dcdb6 VZ |
22005 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
22006 | fi | |
22007 | ||
edae8572 | 22008 | if test "$wxUSE_PALETTE" = "yes" ; then |
a0b9e27f | 22009 | cat >> confdefs.h <<\EOF |
edae8572 | 22010 | #define wxUSE_PALETTE 1 |
a0b9e27f | 22011 | EOF |
edae8572 VZ |
22012 | |
22013 | fi | |
22014 | ||
698dcdb6 | 22015 | if test "$wxUSE_IMAGE" = "yes" ; then |
a0b9e27f | 22016 | cat >> confdefs.h <<\EOF |
698dcdb6 | 22017 | #define wxUSE_IMAGE 1 |
a0b9e27f | 22018 | EOF |
698dcdb6 VZ |
22019 | |
22020 | fi | |
22021 | ||
22022 | if test "$wxUSE_GIF" = "yes" ; then | |
a0b9e27f | 22023 | cat >> confdefs.h <<\EOF |
698dcdb6 | 22024 | #define wxUSE_GIF 1 |
a0b9e27f | 22025 | EOF |
698dcdb6 VZ |
22026 | |
22027 | fi | |
22028 | ||
22029 | if test "$wxUSE_PCX" = "yes" ; then | |
a0b9e27f | 22030 | cat >> confdefs.h <<\EOF |
698dcdb6 | 22031 | #define wxUSE_PCX 1 |
a0b9e27f | 22032 | EOF |
698dcdb6 VZ |
22033 | |
22034 | fi | |
22035 | ||
4b6b4dfc | 22036 | if test "$wxUSE_IFF" = "yes" ; then |
a0b9e27f | 22037 | cat >> confdefs.h <<\EOF |
4b6b4dfc | 22038 | #define wxUSE_IFF 1 |
a0b9e27f | 22039 | EOF |
4b6b4dfc RR |
22040 | |
22041 | fi | |
22042 | ||
698dcdb6 | 22043 | if test "$wxUSE_PNM" = "yes" ; then |
a0b9e27f | 22044 | cat >> confdefs.h <<\EOF |
698dcdb6 | 22045 | #define wxUSE_PNM 1 |
a0b9e27f | 22046 | EOF |
698dcdb6 VZ |
22047 | |
22048 | fi | |
22049 | ||
22050 | if test "$wxUSE_XPM" = "yes" ; then | |
a0b9e27f | 22051 | cat >> confdefs.h <<\EOF |
698dcdb6 | 22052 | #define wxUSE_XPM 1 |
a0b9e27f | 22053 | EOF |
698dcdb6 VZ |
22054 | |
22055 | fi | |
22056 | ||
658974ae | 22057 | if test "$wxUSE_ICO_CUR" = "yes" ; then |
a0b9e27f | 22058 | cat >> confdefs.h <<\EOF |
658974ae | 22059 | #define wxUSE_ICO_CUR 1 |
a0b9e27f | 22060 | EOF |
658974ae VS |
22061 | |
22062 | fi | |
22063 | ||
a72a4bfa VS |
22064 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then |
22065 | LIBS=" -lunicows $LIBS" | |
22066 | fi | |
22067 | ||
8284b0c5 | 22068 | |
1e6feb95 | 22069 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
a0b9e27f | 22070 | cat >> confdefs.h <<\EOF |
1e6feb95 | 22071 | #define wxUSE_CHOICEDLG 1 |
a0b9e27f | 22072 | EOF |
1e6feb95 VZ |
22073 | |
22074 | fi | |
22075 | ||
22076 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
a0b9e27f | 22077 | cat >> confdefs.h <<\EOF |
1e6feb95 | 22078 | #define wxUSE_COLOURDLG 1 |
a0b9e27f | 22079 | EOF |
1e6feb95 VZ |
22080 | |
22081 | fi | |
22082 | ||
22083 | if test "$wxUSE_FILEDLG" = "yes"; then | |
a0b9e27f | 22084 | cat >> confdefs.h <<\EOF |
1e6feb95 | 22085 | #define wxUSE_FILEDLG 1 |
a0b9e27f | 22086 | EOF |
1e6feb95 VZ |
22087 | |
22088 | fi | |
22089 | ||
8db37e06 | 22090 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
a0b9e27f | 22091 | cat >> confdefs.h <<\EOF |
8db37e06 | 22092 | #define wxUSE_FINDREPLDLG 1 |
a0b9e27f | 22093 | EOF |
8db37e06 VZ |
22094 | |
22095 | fi | |
22096 | ||
1e6feb95 | 22097 | if test "$wxUSE_FONTDLG" = "yes"; then |
a0b9e27f | 22098 | cat >> confdefs.h <<\EOF |
1e6feb95 | 22099 | #define wxUSE_FONTDLG 1 |
a0b9e27f | 22100 | EOF |
1e6feb95 VZ |
22101 | |
22102 | fi | |
22103 | ||
22104 | if test "$wxUSE_DIRDLG" = "yes"; then | |
ae1daed0 | 22105 | if test "$wxUSE_TREECTRL" != "yes"; then |
a0b9e27f | 22106 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 |
1e6feb95 | 22107 | else |
a0b9e27f | 22108 | cat >> confdefs.h <<\EOF |
1e6feb95 | 22109 | #define wxUSE_DIRDLG 1 |
a0b9e27f | 22110 | EOF |
1e6feb95 | 22111 | |
1e6feb95 VZ |
22112 | fi |
22113 | fi | |
22114 | ||
22115 | if test "$wxUSE_MSGDLG" = "yes"; then | |
a0b9e27f | 22116 | cat >> confdefs.h <<\EOF |
1e6feb95 | 22117 | #define wxUSE_MSGDLG 1 |
a0b9e27f | 22118 | EOF |
1e6feb95 VZ |
22119 | |
22120 | fi | |
22121 | ||
22122 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
a0b9e27f | 22123 | cat >> confdefs.h <<\EOF |
1e6feb95 | 22124 | #define wxUSE_NUMBERDLG 1 |
a0b9e27f | 22125 | EOF |
1e6feb95 VZ |
22126 | |
22127 | fi | |
22128 | ||
22129 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
22130 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
a0b9e27f | 22131 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 |
1e6feb95 | 22132 | else |
a0b9e27f | 22133 | cat >> confdefs.h <<\EOF |
1e6feb95 | 22134 | #define wxUSE_PROGRESSDLG 1 |
a0b9e27f | 22135 | EOF |
1e6feb95 VZ |
22136 | |
22137 | fi | |
22138 | fi | |
22139 | ||
cbca9943 | 22140 | if test "$wxUSE_SPLASH" = "yes"; then |
a0b9e27f | 22141 | cat >> confdefs.h <<\EOF |
cbca9943 | 22142 | #define wxUSE_SPLASH 1 |
a0b9e27f | 22143 | EOF |
cbca9943 VZ |
22144 | |
22145 | fi | |
22146 | ||
1e6feb95 VZ |
22147 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
22148 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
a0b9e27f | 22149 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 |
1e6feb95 | 22150 | else |
a0b9e27f | 22151 | cat >> confdefs.h <<\EOF |
1e6feb95 | 22152 | #define wxUSE_STARTUP_TIPS 1 |
a0b9e27f | 22153 | EOF |
1e6feb95 | 22154 | |
7b4a847f RR |
22155 | fi |
22156 | fi | |
579d8138 | 22157 | |
8284b0c5 | 22158 | if test "$wxUSE_TEXTDLG" = "yes"; then |
a0b9e27f | 22159 | cat >> confdefs.h <<\EOF |
8284b0c5 | 22160 | #define wxUSE_TEXTDLG 1 |
a0b9e27f | 22161 | EOF |
8284b0c5 MB |
22162 | |
22163 | fi | |
22164 | ||
22165 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
a0b9e27f | 22166 | cat >> confdefs.h <<\EOF |
8284b0c5 | 22167 | #define wxUSE_WIZARDDLG 1 |
a0b9e27f | 22168 | EOF |
8284b0c5 MB |
22169 | |
22170 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
22171 | fi | |
22172 | ||
22173 | ||
22174 | if test "$cross_compiling" = "yes"; then | |
22175 | OSINFO="\"$host\"" | |
22176 | else | |
22177 | OSINFO=`uname -s -r -m` | |
22178 | OSINFO="\"$OSINFO\"" | |
22179 | fi | |
22180 | ||
a0b9e27f | 22181 | cat >> confdefs.h <<EOF |
8284b0c5 | 22182 | #define WXWIN_OS_DESCRIPTION $OSINFO |
a0b9e27f | 22183 | EOF |
8284b0c5 MB |
22184 | |
22185 | ||
22186 | ||
22187 | if test "x$prefix" != "xNONE"; then | |
22188 | wxPREFIX=$prefix | |
22189 | else | |
22190 | wxPREFIX=$ac_default_prefix | |
22191 | fi | |
22192 | ||
a0b9e27f | 22193 | cat >> confdefs.h <<EOF |
8284b0c5 | 22194 | #define wxINSTALL_PREFIX "$wxPREFIX" |
a0b9e27f | 22195 | EOF |
8284b0c5 MB |
22196 | |
22197 | ||
52c71b80 VZ |
22198 | top_builddir=`pwd` |
22199 | ||
8284b0c5 MB |
22200 | |
22201 | ||
22202 | ||
22203 | if test "$wxUSE_MAC" = 1 ; then | |
22204 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" | |
22205 | fi | |
ac0c4cc3 DE |
22206 | if test "$wxUSE_COCOA" = 1 ; then |
22207 | LDFLAGS="$LDFLAGS -framework Cocoa -framework System" | |
22208 | fi | |
8284b0c5 MB |
22209 | |
22210 | ||
2b5f62a0 VZ |
22211 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" |
22212 | ||
22213 | have_cos=0 | |
22214 | have_floor=0 | |
22215 | for ac_func in cos | |
22216 | do | |
22217 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
8b389fab | 22218 | echo "configure:22219: checking for $ac_func" >&5 |
2b5f62a0 VZ |
22219 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
22220 | echo $ac_n "(cached) $ac_c" 1>&6 | |
22221 | else | |
22222 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 22223 | #line 22224 "configure" |
2b5f62a0 VZ |
22224 | #include "confdefs.h" |
22225 | /* System header to define __stub macros and hopefully few prototypes, | |
22226 | which can conflict with char $ac_func(); below. */ | |
22227 | #include <assert.h> | |
22228 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22229 | /* We use char because int might match the return type of a gcc2 | |
22230 | builtin and then its argument prototype would still apply. */ | |
22231 | char $ac_func(); | |
22232 | ||
22233 | int main() { | |
22234 | ||
22235 | /* The GNU C library defines this for functions which it implements | |
22236 | to always fail with ENOSYS. Some functions are actually named | |
22237 | something starting with __ and the normal name is an alias. */ | |
22238 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
22239 | choke me | |
22240 | #else | |
22241 | $ac_func(); | |
22242 | #endif | |
22243 | ||
22244 | ; return 0; } | |
22245 | EOF | |
8b389fab | 22246 | if { (eval echo configure:22247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
22247 | rm -rf conftest* |
22248 | eval "ac_cv_func_$ac_func=yes" | |
22249 | else | |
22250 | echo "configure: failed program was:" >&5 | |
22251 | cat conftest.$ac_ext >&5 | |
22252 | rm -rf conftest* | |
22253 | eval "ac_cv_func_$ac_func=no" | |
22254 | fi | |
22255 | rm -f conftest* | |
22256 | fi | |
22257 | ||
22258 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
22259 | echo "$ac_t""yes" 1>&6 | |
22260 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
22261 | cat >> confdefs.h <<EOF | |
22262 | #define $ac_tr_func 1 | |
22263 | EOF | |
22264 | have_cos=1 | |
22265 | else | |
22266 | echo "$ac_t""no" 1>&6 | |
22267 | fi | |
22268 | done | |
22269 | ||
22270 | for ac_func in floor | |
22271 | do | |
22272 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
8b389fab | 22273 | echo "configure:22274: checking for $ac_func" >&5 |
2b5f62a0 VZ |
22274 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
22275 | echo $ac_n "(cached) $ac_c" 1>&6 | |
22276 | else | |
22277 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 22278 | #line 22279 "configure" |
2b5f62a0 VZ |
22279 | #include "confdefs.h" |
22280 | /* System header to define __stub macros and hopefully few prototypes, | |
22281 | which can conflict with char $ac_func(); below. */ | |
22282 | #include <assert.h> | |
22283 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22284 | /* We use char because int might match the return type of a gcc2 | |
22285 | builtin and then its argument prototype would still apply. */ | |
22286 | char $ac_func(); | |
22287 | ||
22288 | int main() { | |
22289 | ||
22290 | /* The GNU C library defines this for functions which it implements | |
22291 | to always fail with ENOSYS. Some functions are actually named | |
22292 | something starting with __ and the normal name is an alias. */ | |
22293 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
22294 | choke me | |
22295 | #else | |
22296 | $ac_func(); | |
22297 | #endif | |
22298 | ||
22299 | ; return 0; } | |
22300 | EOF | |
8b389fab | 22301 | if { (eval echo configure:22302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
22302 | rm -rf conftest* |
22303 | eval "ac_cv_func_$ac_func=yes" | |
22304 | else | |
22305 | echo "configure: failed program was:" >&5 | |
22306 | cat conftest.$ac_ext >&5 | |
22307 | rm -rf conftest* | |
22308 | eval "ac_cv_func_$ac_func=no" | |
22309 | fi | |
22310 | rm -f conftest* | |
22311 | fi | |
22312 | ||
22313 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
22314 | echo "$ac_t""yes" 1>&6 | |
22315 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
22316 | cat >> confdefs.h <<EOF | |
22317 | #define $ac_tr_func 1 | |
22318 | EOF | |
22319 | have_floor=1 | |
22320 | else | |
22321 | echo "$ac_t""no" 1>&6 | |
22322 | fi | |
22323 | done | |
22324 | ||
22325 | echo $ac_n "checking if floating point functions link without -lm""... $ac_c" 1>&6 | |
8b389fab | 22326 | echo "configure:22327: checking if floating point functions link without -lm" >&5 |
2b5f62a0 VZ |
22327 | if test "$have_cos" = 1 -a "$have_floor" = 1; then |
22328 | echo "$ac_t""yes" 1>&6 | |
22329 | else | |
22330 | echo "$ac_t""no" 1>&6 | |
22331 | LIBS="$LIBS -lm" | |
22332 | # use different functions to avoid configure caching | |
22333 | have_sin=0 | |
22334 | have_ceil=0 | |
22335 | for ac_func in sin | |
22336 | do | |
22337 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
8b389fab | 22338 | echo "configure:22339: checking for $ac_func" >&5 |
2b5f62a0 VZ |
22339 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
22340 | echo $ac_n "(cached) $ac_c" 1>&6 | |
22341 | else | |
22342 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 22343 | #line 22344 "configure" |
2b5f62a0 VZ |
22344 | #include "confdefs.h" |
22345 | /* System header to define __stub macros and hopefully few prototypes, | |
22346 | which can conflict with char $ac_func(); below. */ | |
22347 | #include <assert.h> | |
22348 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22349 | /* We use char because int might match the return type of a gcc2 | |
22350 | builtin and then its argument prototype would still apply. */ | |
22351 | char $ac_func(); | |
22352 | ||
22353 | int main() { | |
22354 | ||
22355 | /* The GNU C library defines this for functions which it implements | |
22356 | to always fail with ENOSYS. Some functions are actually named | |
22357 | something starting with __ and the normal name is an alias. */ | |
22358 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
22359 | choke me | |
22360 | #else | |
22361 | $ac_func(); | |
22362 | #endif | |
22363 | ||
22364 | ; return 0; } | |
22365 | EOF | |
8b389fab | 22366 | if { (eval echo configure:22367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
22367 | rm -rf conftest* |
22368 | eval "ac_cv_func_$ac_func=yes" | |
22369 | else | |
22370 | echo "configure: failed program was:" >&5 | |
22371 | cat conftest.$ac_ext >&5 | |
22372 | rm -rf conftest* | |
22373 | eval "ac_cv_func_$ac_func=no" | |
22374 | fi | |
22375 | rm -f conftest* | |
22376 | fi | |
22377 | ||
22378 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
22379 | echo "$ac_t""yes" 1>&6 | |
22380 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
22381 | cat >> confdefs.h <<EOF | |
22382 | #define $ac_tr_func 1 | |
22383 | EOF | |
22384 | have_sin=1 | |
22385 | else | |
22386 | echo "$ac_t""no" 1>&6 | |
22387 | fi | |
22388 | done | |
22389 | ||
22390 | for ac_func in ceil | |
22391 | do | |
22392 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
8b389fab | 22393 | echo "configure:22394: checking for $ac_func" >&5 |
2b5f62a0 VZ |
22394 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
22395 | echo $ac_n "(cached) $ac_c" 1>&6 | |
22396 | else | |
22397 | cat > conftest.$ac_ext <<EOF | |
8b389fab | 22398 | #line 22399 "configure" |
2b5f62a0 VZ |
22399 | #include "confdefs.h" |
22400 | /* System header to define __stub macros and hopefully few prototypes, | |
22401 | which can conflict with char $ac_func(); below. */ | |
22402 | #include <assert.h> | |
22403 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22404 | /* We use char because int might match the return type of a gcc2 | |
22405 | builtin and then its argument prototype would still apply. */ | |
22406 | char $ac_func(); | |
22407 | ||
22408 | int main() { | |
22409 | ||
22410 | /* The GNU C library defines this for functions which it implements | |
22411 | to always fail with ENOSYS. Some functions are actually named | |
22412 | something starting with __ and the normal name is an alias. */ | |
22413 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
22414 | choke me | |
22415 | #else | |
22416 | $ac_func(); | |
22417 | #endif | |
22418 | ||
22419 | ; return 0; } | |
22420 | EOF | |
8b389fab | 22421 | if { (eval echo configure:22422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
22422 | rm -rf conftest* |
22423 | eval "ac_cv_func_$ac_func=yes" | |
22424 | else | |
22425 | echo "configure: failed program was:" >&5 | |
22426 | cat conftest.$ac_ext >&5 | |
22427 | rm -rf conftest* | |
22428 | eval "ac_cv_func_$ac_func=no" | |
22429 | fi | |
22430 | rm -f conftest* | |
22431 | fi | |
22432 | ||
22433 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
22434 | echo "$ac_t""yes" 1>&6 | |
22435 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
22436 | cat >> confdefs.h <<EOF | |
22437 | #define $ac_tr_func 1 | |
22438 | EOF | |
22439 | have_ceil=1 | |
22440 | else | |
22441 | echo "$ac_t""no" 1>&6 | |
22442 | fi | |
22443 | done | |
22444 | ||
22445 | echo $ac_n "checking if floating point functions link with -lm""... $ac_c" 1>&6 | |
8b389fab | 22446 | echo "configure:22447: checking if floating point functions link with -lm" >&5 |
2b5f62a0 VZ |
22447 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then |
22448 | echo "$ac_t""yes" 1>&6 | |
22449 | else | |
22450 | echo "$ac_t""no" 1>&6 | |
22451 | # not sure we should warn the user, crash, etc. | |
22452 | fi | |
22453 | fi | |
8284b0c5 MB |
22454 | |
22455 | if test "$wxUSE_GUI" = "yes"; then | |
22456 | ||
22457 | LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS" | |
22458 | ||
a0b9e27f | 22459 | |
8284b0c5 MB |
22460 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ |
22461 | drawing dynamic erase event exec font image \ | |
1542ea39 | 22462 | minimal propsize rotate shaped widgets" |
8284b0c5 MB |
22463 | |
22464 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" | |
22465 | else | |
22466 | SAMPLES_SUBDIRS="console" | |
22467 | fi | |
22468 | ||
22469 | ||
22470 | INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \ | |
22471 | -I\${top_srcdir}/include \ | |
22472 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ | |
22473 | $TOOLKIT_INCLUDE" | |
22474 | ||
22475 | if test "$wxUSE_GTK" = 1; then | |
22476 | WXCONFIG_INCLUDE= | |
22477 | else | |
22478 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
22479 | fi | |
22480 | ||
22481 | if test "$GXX" = yes ; then | |
22482 | CXXWARNINGS="-Wall" | |
a0b9e27f | 22483 | |
8284b0c5 MB |
22484 | if test "$wxUSE_NO_DEPS" = "no" ; then |
22485 | CFLAGS="-MMD $CFLAGS" | |
22486 | CXXFLAGS="-MMD $CXXFLAGS" | |
22487 | fi | |
22488 | fi | |
22489 | ||
b2fee376 | 22490 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" |
8284b0c5 | 22491 | |
b2fee376 | 22492 | CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'` |
8284b0c5 MB |
22493 | CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` |
22494 | CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
22495 | LIBS=`echo $LIBS | sed 's/ \+/ /g'` | |
22496 | ||
22497 | LDFLAGS="$LDFLAGS $PROFILE" | |
22498 | ||
22499 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
22500 | ||
22501 | ||
22502 | ||
22503 | ||
22504 | ||
22505 | ||
22506 | ||
22507 | ||
22508 | ||
22509 | ||
22510 | ||
22511 | ||
22512 | ||
22513 | ||
22514 | ||
22515 | ||
22516 | ||
22517 | ||
22518 | ||
22519 | ||
22520 | ||
22521 | ||
22522 | ||
22523 | ||
22524 | ||
22525 | ||
22526 | ||
22527 | ||
22528 | ||
22529 | ||
22530 | ||
22531 | ||
22532 | ||
22533 | ||
22534 | ||
22535 | ||
22536 | ||
22537 | ||
22538 | ||
22539 | ||
22540 | ||
22541 | ||
22542 | ||
22543 | ||
22544 | ||
22545 | ||
22546 | ||
22547 | ||
22548 | ||
22549 | ||
22550 | ||
22551 | ||
22552 | ||
22553 | ||
22554 | ||
22555 | ||
22556 | ||
22557 | ||
22558 | ||
22559 | ||
22560 | ||
22561 | ||
22562 | ||
22563 | ||
22564 | ||
22565 | ||
22566 | ||
22567 | ||
2f51a9ec GD |
22568 | |
22569 | ||
22570 | ||
22571 | ||
f6bcfd97 | 22572 | |
dad6c0ea | 22573 | |
caa2c79b | 22574 | |
3711412e | 22575 | |
1e6feb95 VZ |
22576 | |
22577 | ||
885d4bf5 VS |
22578 | |
22579 | ||
22580 | ||
22581 | ||
9b695262 VZ |
22582 | |
22583 | ||
62d0491b | 22584 | |
ef7f2189 | 22585 | |
40f7145c | 22586 | |
2b5f62a0 VZ |
22587 | |
22588 | ||
22589 | ||
22590 | ||
22591 | ||
2bffed64 VZ |
22592 | |
22593 | ||
3bd8fb5f | 22594 | |
e26c13cf | 22595 | |
52c71b80 | 22596 | |
36825681 | 22597 | |
4f5a7f74 | 22598 | |
10f2d63a | 22599 | |
a0b9e27f MB |
22600 | |
22601 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
8b389fab | 22602 | echo "configure:22603: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
a0b9e27f MB |
22603 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
22604 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
22605 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 22606 | else |
a0b9e27f | 22607 | cat > conftestmake <<\EOF |
10f2d63a VZ |
22608 | all: |
22609 | @echo 'ac_maketemp="${MAKE}"' | |
a0b9e27f | 22610 | EOF |
10f2d63a | 22611 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
a0b9e27f | 22612 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
22613 | if test -n "$ac_maketemp"; then |
22614 | eval ac_cv_prog_make_${ac_make}_set=yes | |
22615 | else | |
22616 | eval ac_cv_prog_make_${ac_make}_set=no | |
22617 | fi | |
a0b9e27f | 22618 | rm -f conftestmake |
10f2d63a VZ |
22619 | fi |
22620 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
a0b9e27f | 22621 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
22622 | SET_MAKE= |
22623 | else | |
a0b9e27f | 22624 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
22625 | SET_MAKE="MAKE=${MAKE-make}" |
22626 | fi | |
22627 | ||
8284b0c5 | 22628 | |
3a922bb4 RL |
22629 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then |
22630 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
00cf1208 | 22631 | fi |
665bbe97 | 22632 | |
8284b0c5 | 22633 | |
10f2d63a | 22634 | |
57973b9c VZ |
22635 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
22636 | wx_cv_if_gnu_make=$IF_GNU_MAKE | |
22637 | wx_cv_path_ifs=$PATH_IFS | |
22638 | wx_cv_program_ext=$PROGRAM_EXT | |
22639 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
22640 | wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL | |
22641 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE | |
2b5f62a0 VZ |
22642 | wx_cv_library_basename=${WX_LIBRARY_BASENAME} |
22643 | wx_cv_release=${WX_RELEASE} | |
22644 | wx_cv_current=${WX_CURRENT} | |
22645 | wx_cv_revision=${WX_REVISION} | |
22646 | wx_cv_age=${WX_AGE} | |
27635a90 | 22647 | wx_cv_use_gui=${USE_GUI} |
5e66eee1 | 22648 | wx_cv_use_resources=${wxUSE_RESOURCES} |
57973b9c VZ |
22649 | export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \ |
22650 | wx_cv_path_ifs wx_cv_program_ext \ | |
2b5f62a0 | 22651 | wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype \ |
27635a90 | 22652 | wx_cv_library_basename wx_cv_release wx_cv_current wx_cv_revision wx_cv_age \ |
5e66eee1 | 22653 | wx_cv_use_gui wx_cv_use_resources |
57973b9c | 22654 | |
a0b9e27f | 22655 | subdirs="demos samples utils contrib" |
8284b0c5 | 22656 | |
10f2d63a | 22657 | |
a0b9e27f MB |
22658 | trap '' 1 2 15 |
22659 | cat > confcache <<\EOF | |
10f2d63a VZ |
22660 | # This file is a shell script that caches the results of configure |
22661 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
22662 | # scripts and configure runs. It is not useful on other systems. |
22663 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 22664 | # |
a0b9e27f MB |
22665 | # By default, configure uses ./config.cache as the cache file, |
22666 | # creating it if it does not exist already. You can give configure | |
22667 | # the --cache-file=FILE option to use a different cache file; that is | |
22668 | # what configure does when it calls configure scripts in | |
22669 | # subdirectories, so they share the cache. | |
22670 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
22671 | # config.status only pays attention to the cache file if you give it the | |
22672 | # --recheck option to rerun configure. | |
10f2d63a | 22673 | # |
a0b9e27f | 22674 | EOF |
10f2d63a VZ |
22675 | # The following way of writing the cache mishandles newlines in values, |
22676 | # but we know of no workaround that is simple, portable, and efficient. | |
22677 | # So, don't put newlines in cache variables' values. | |
22678 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
22679 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
22680 | (set) 2>&1 | |
22681 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
22682 | *ac_space=\ *) | |
22683 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
22684 | # turns \\\\ into \\, and sed turns \\ into \). | |
22685 | sed -n \ | |
22686 | -e "s/'/'\\\\''/g" \ | |
22687 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
22688 | ;; | |
22689 | *) | |
22690 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
22691 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
22692 | ;; | |
22693 | esac >> confcache | |
22694 | if cmp -s $cache_file confcache; then | |
22695 | : | |
22696 | else | |
10f2d63a | 22697 | if test -w $cache_file; then |
a0b9e27f MB |
22698 | echo "updating cache $cache_file" |
22699 | cat confcache > $cache_file | |
10f2d63a VZ |
22700 | else |
22701 | echo "not updating unwritable cache $cache_file" | |
22702 | fi | |
22703 | fi | |
22704 | rm -f confcache | |
22705 | ||
a0b9e27f MB |
22706 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
22707 | ||
10f2d63a VZ |
22708 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
22709 | # Let make expand exec_prefix. | |
22710 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
22711 | ||
a0b9e27f MB |
22712 | # Any assignment to VPATH causes Sun make to only execute |
22713 | # the first set of double-colon rules, so remove it if not needed. | |
22714 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 22715 | if test "x$srcdir" = x.; then |
a0b9e27f | 22716 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
22717 | fi |
22718 | ||
a0b9e27f | 22719 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
10f2d63a | 22720 | |
a0b9e27f | 22721 | DEFS=-DHAVE_CONFIG_H |
8284b0c5 | 22722 | |
a0b9e27f | 22723 | # Without the "./", some shells look in PATH for config.status. |
247f5006 | 22724 | : ${CONFIG_STATUS=./config.status} |
52127426 | 22725 | |
a0b9e27f MB |
22726 | echo creating $CONFIG_STATUS |
22727 | rm -f $CONFIG_STATUS | |
22728 | cat > $CONFIG_STATUS <<EOF | |
22729 | #! /bin/sh | |
22730 | # Generated automatically by configure. | |
22731 | # Run this file to recreate the current configuration. | |
22732 | # This directory was configured as follows, | |
22733 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
247f5006 | 22734 | # |
a0b9e27f | 22735 | # $0 $ac_configure_args |
247f5006 | 22736 | # |
a0b9e27f MB |
22737 | # Compiler output produced by configure, useful for debugging |
22738 | # configure, is in ./config.log if it exists. | |
247f5006 | 22739 | |
a0b9e27f MB |
22740 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
22741 | for ac_option | |
247f5006 | 22742 | do |
a0b9e27f MB |
22743 | case "\$ac_option" in |
22744 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
22745 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
22746 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
22747 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
22748 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
22749 | exit 0 ;; | |
22750 | -help | --help | --hel | --he | --h) | |
22751 | echo "\$ac_cs_usage"; exit 0 ;; | |
22752 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
247f5006 VZ |
22753 | esac |
22754 | done | |
22755 | ||
a0b9e27f MB |
22756 | ac_given_srcdir=$srcdir |
22757 | ac_given_INSTALL="$INSTALL" | |
247f5006 | 22758 | |
a0b9e27f MB |
22759 | trap 'rm -fr `echo " |
22760 | wx-config | |
2b5f62a0 | 22761 | version-script |
a0b9e27f MB |
22762 | src/make.env |
22763 | src/makeprog.env | |
22764 | src/makelib.env | |
22765 | Makefile | |
22766 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
22767 | EOF | |
22768 | cat >> $CONFIG_STATUS <<EOF | |
247f5006 | 22769 | |
a0b9e27f MB |
22770 | # Protect against being on the right side of a sed subst in config.status. |
22771 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
22772 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
22773 | $ac_vpsub | |
22774 | $extrasub | |
22775 | s%@SHELL@%$SHELL%g | |
22776 | s%@CFLAGS@%$CFLAGS%g | |
22777 | s%@CPPFLAGS@%$CPPFLAGS%g | |
22778 | s%@CXXFLAGS@%$CXXFLAGS%g | |
22779 | s%@FFLAGS@%$FFLAGS%g | |
22780 | s%@DEFS@%$DEFS%g | |
22781 | s%@LDFLAGS@%$LDFLAGS%g | |
22782 | s%@LIBS@%$LIBS%g | |
22783 | s%@exec_prefix@%$exec_prefix%g | |
22784 | s%@prefix@%$prefix%g | |
22785 | s%@program_transform_name@%$program_transform_name%g | |
22786 | s%@bindir@%$bindir%g | |
22787 | s%@sbindir@%$sbindir%g | |
22788 | s%@libexecdir@%$libexecdir%g | |
22789 | s%@datadir@%$datadir%g | |
22790 | s%@sysconfdir@%$sysconfdir%g | |
22791 | s%@sharedstatedir@%$sharedstatedir%g | |
22792 | s%@localstatedir@%$localstatedir%g | |
22793 | s%@libdir@%$libdir%g | |
22794 | s%@includedir@%$includedir%g | |
22795 | s%@oldincludedir@%$oldincludedir%g | |
22796 | s%@infodir@%$infodir%g | |
22797 | s%@mandir@%$mandir%g | |
22798 | s%@host@%$host%g | |
22799 | s%@host_alias@%$host_alias%g | |
22800 | s%@host_cpu@%$host_cpu%g | |
22801 | s%@host_vendor@%$host_vendor%g | |
22802 | s%@host_os@%$host_os%g | |
22803 | s%@target@%$target%g | |
22804 | s%@target_alias@%$target_alias%g | |
22805 | s%@target_cpu@%$target_cpu%g | |
22806 | s%@target_vendor@%$target_vendor%g | |
22807 | s%@target_os@%$target_os%g | |
22808 | s%@build@%$build%g | |
22809 | s%@build_alias@%$build_alias%g | |
22810 | s%@build_cpu@%$build_cpu%g | |
22811 | s%@build_vendor@%$build_vendor%g | |
22812 | s%@build_os@%$build_os%g | |
22813 | s%@CC@%$CC%g | |
22814 | s%@CPP@%$CPP%g | |
22815 | s%@CXX@%$CXX%g | |
22816 | s%@RANLIB@%$RANLIB%g | |
22817 | s%@AR@%$AR%g | |
22818 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
22819 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
22820 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
22821 | s%@STRIP@%$STRIP%g | |
22822 | s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g | |
22823 | s%@YACC@%$YACC%g | |
22824 | s%@LEX@%$LEX%g | |
22825 | s%@LEXLIB@%$LEXLIB%g | |
22826 | s%@LN_S@%$LN_S%g | |
22827 | s%@CXXCPP@%$CXXCPP%g | |
22828 | s%@PKG_CONFIG@%$PKG_CONFIG%g | |
22829 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g | |
22830 | s%@GTK_LIBS@%$GTK_LIBS%g | |
22831 | s%@GTK_CONFIG@%$GTK_CONFIG%g | |
22832 | s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g | |
22833 | s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g | |
22834 | s%@X_CFLAGS@%$X_CFLAGS%g | |
22835 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
22836 | s%@X_LIBS@%$X_LIBS%g | |
22837 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
2b5f62a0 VZ |
22838 | s%@PANGOX_CFLAGS@%$PANGOX_CFLAGS%g |
22839 | s%@PANGOX_LIBS@%$PANGOX_LIBS%g | |
22840 | s%@PANGOXFT_CFLAGS@%$PANGOXFT_CFLAGS%g | |
22841 | s%@PANGOXFT_LIBS@%$PANGOXFT_LIBS%g | |
a0b9e27f MB |
22842 | s%@AIX_CXX_LD@%$AIX_CXX_LD%g |
22843 | s%@RESCOMP@%$RESCOMP%g | |
22844 | s%@DEREZ@%$DEREZ%g | |
36825681 | 22845 | s%@SETFILE@%$SETFILE%g |
a0b9e27f MB |
22846 | s%@LIBICONV@%$LIBICONV%g |
22847 | s%@LEX_STEM@%$LEX_STEM%g | |
22848 | s%@PATH_IFS@%$PATH_IFS%g | |
22849 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
22850 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
22851 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
22852 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
22853 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
2b5f62a0 | 22854 | s%@WX_LIBRARY_BASENAME@%$WX_LIBRARY_BASENAME%g |
a0b9e27f MB |
22855 | s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g |
22856 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
22857 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
22858 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
22859 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g | |
22860 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g | |
22861 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
22862 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g | |
22863 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
22864 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
22865 | s%@WX_ALL@%$WX_ALL%g | |
22866 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
22867 | s%@SHARED_LD@%$SHARED_LD%g | |
22868 | s%@PIC_FLAG@%$PIC_FLAG%g | |
22869 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g | |
22870 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
22871 | s%@SONAME_FLAGS@%$SONAME_FLAGS%g | |
22872 | s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g | |
22873 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g | |
22874 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
2bffed64 | 22875 | s%@STATIC_FLAG@%$STATIC_FLAG%g |
a0b9e27f MB |
22876 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g |
22877 | s%@USE_GUI@%$USE_GUI%g | |
22878 | s%@AFMINSTALL@%$AFMINSTALL%g | |
2b5f62a0 | 22879 | s%@WIN32INSTALL@%$WIN32INSTALL%g |
a0b9e27f MB |
22880 | s%@TOOLKIT@%$TOOLKIT%g |
22881 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
22882 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g | |
22883 | s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g | |
22884 | s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g | |
22885 | s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g | |
52c71b80 | 22886 | s%@top_builddir@%$top_builddir%g |
a0b9e27f MB |
22887 | s%@cross_compiling@%$cross_compiling%g |
22888 | s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g | |
22889 | s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g | |
22890 | s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g | |
22891 | s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g | |
22892 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g | |
22893 | s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g | |
e26c13cf | 22894 | s%@WX_LARGEFILE_FLAGS@%$WX_LARGEFILE_FLAGS%g |
a0b9e27f MB |
22895 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g |
22896 | s%@ALL_HEADERS@%$ALL_HEADERS%g | |
22897 | s%@ALL_SOURCES@%$ALL_SOURCES%g | |
22898 | s%@GUIDIST@%$GUIDIST%g | |
22899 | s%@PORT_FILES@%$PORT_FILES%g | |
22900 | s%@DISTDIR@%$DISTDIR%g | |
a0b9e27f MB |
22901 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g |
22902 | s%@LDFLAGS_GL@%$LDFLAGS_GL%g | |
2b5f62a0 | 22903 | s%@LDFLAGS_VERSIONING@%$LDFLAGS_VERSIONING%g |
a0b9e27f MB |
22904 | s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g |
22905 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g | |
22906 | s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g | |
22907 | s%@EXTRADEFS@%$EXTRADEFS%g | |
2b5f62a0 | 22908 | s%@WX_VERSION_TAG@%$WX_VERSION_TAG%g |
a0b9e27f MB |
22909 | s%@RESFLAGS@%$RESFLAGS%g |
22910 | s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g | |
22911 | s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g | |
22912 | s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g | |
22913 | s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g | |
22914 | s%@LIBWXMACRES@%$LIBWXMACRES%g | |
36825681 GD |
22915 | s%@MACRESCOMP@%$MACRESCOMP%g |
22916 | s%@MACSETFILE@%$MACSETFILE%g | |
22917 | s%@MACRESWXCONFIG@%$MACRESWXCONFIG%g | |
2b5f62a0 | 22918 | s%@GCC@%$GCC%g |
a0b9e27f MB |
22919 | s%@DLLTOOL@%$DLLTOOL%g |
22920 | s%@AS@%$AS%g | |
22921 | s%@NM@%$NM%g | |
22922 | s%@LD@%$LD%g | |
22923 | s%@MAKEINFO@%$MAKEINFO%g | |
22924 | s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g | |
4f5a7f74 | 22925 | s%@INSTALL_DIR@%$INSTALL_DIR%g |
a0b9e27f MB |
22926 | s%@SET_MAKE@%$SET_MAKE%g |
22927 | s%@subdirs@%$subdirs%g | |
247f5006 | 22928 | |
247f5006 | 22929 | CEOF |
a0b9e27f | 22930 | EOF |
247f5006 | 22931 | |
a0b9e27f MB |
22932 | cat >> $CONFIG_STATUS <<\EOF |
22933 | ||
22934 | # Split the substitutions into bite-sized pieces for seds with | |
22935 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
22936 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
22937 | ac_file=1 # Number of current file. | |
22938 | ac_beg=1 # First line for current file. | |
22939 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
22940 | ac_more_lines=: | |
22941 | ac_sed_cmds="" | |
22942 | while $ac_more_lines; do | |
22943 | if test $ac_beg -gt 1; then | |
22944 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
22945 | else | |
22946 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
22947 | fi | |
22948 | if test ! -s conftest.s$ac_file; then | |
22949 | ac_more_lines=false | |
22950 | rm -f conftest.s$ac_file | |
22951 | else | |
22952 | if test -z "$ac_sed_cmds"; then | |
22953 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
247f5006 | 22954 | else |
a0b9e27f | 22955 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
247f5006 | 22956 | fi |
a0b9e27f MB |
22957 | ac_file=`expr $ac_file + 1` |
22958 | ac_beg=$ac_end | |
22959 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
10f2d63a | 22960 | fi |
a0b9e27f MB |
22961 | done |
22962 | if test -z "$ac_sed_cmds"; then | |
22963 | ac_sed_cmds=cat | |
22964 | fi | |
22965 | EOF | |
10f2d63a | 22966 | |
a0b9e27f | 22967 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 22968 | |
a0b9e27f | 22969 | CONFIG_FILES=\${CONFIG_FILES-"wx-config |
2b5f62a0 | 22970 | version-script |
a0b9e27f MB |
22971 | src/make.env |
22972 | src/makeprog.env | |
22973 | src/makelib.env | |
22974 | Makefile | |
22975 | "} | |
22976 | EOF | |
22977 | cat >> $CONFIG_STATUS <<\EOF | |
22978 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
22979 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
22980 | case "$ac_file" in | |
22981 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
22982 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
22983 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a | 22984 | esac |
247f5006 | 22985 | |
a0b9e27f | 22986 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
247f5006 | 22987 | |
a0b9e27f MB |
22988 | # Remove last slash and all that follows it. Not all systems have dirname. |
22989 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
22990 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
22991 | # The file is in a subdirectory. | |
22992 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
22993 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
22994 | # A "../" for each directory in $ac_dir_suffix. | |
22995 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
22996 | else | |
22997 | ac_dir_suffix= ac_dots= | |
22998 | fi | |
247f5006 | 22999 | |
a0b9e27f MB |
23000 | case "$ac_given_srcdir" in |
23001 | .) srcdir=. | |
23002 | if test -z "$ac_dots"; then top_srcdir=. | |
23003 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
23004 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
247f5006 | 23005 | *) # Relative path. |
a0b9e27f MB |
23006 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
23007 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
8284b0c5 | 23008 | esac |
10f2d63a | 23009 | |
a0b9e27f MB |
23010 | case "$ac_given_INSTALL" in |
23011 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
23012 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
23013 | esac | |
247f5006 | 23014 | |
a0b9e27f MB |
23015 | echo creating "$ac_file" |
23016 | rm -f "$ac_file" | |
23017 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
23018 | case "$ac_file" in | |
23019 | *Makefile*) ac_comsub="1i\\ | |
23020 | # $configure_input" ;; | |
23021 | *) ac_comsub= ;; | |
23022 | esac | |
247f5006 | 23023 | |
a0b9e27f MB |
23024 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
23025 | sed -e "$ac_comsub | |
23026 | s%@configure_input@%$configure_input%g | |
23027 | s%@srcdir@%$srcdir%g | |
23028 | s%@top_srcdir@%$top_srcdir%g | |
23029 | s%@INSTALL@%$INSTALL%g | |
23030 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
23031 | fi; done | |
23032 | rm -f conftest.s* | |
10f2d63a VZ |
23033 | |
23034 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
23035 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
23036 | # | |
23037 | # ac_d sets the value in "#define NAME VALUE" lines. | |
a0b9e27f MB |
23038 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
23039 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
23040 | ac_dC='\3' | |
23041 | ac_dD='%g' | |
23042 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
23043 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
23044 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 23045 | ac_uC=' ' |
a0b9e27f MB |
23046 | ac_uD='\4%g' |
23047 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
23048 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
23049 | ac_eB='$%\1#\2define\3' | |
23050 | ac_eC=' ' | |
23051 | ac_eD='%g' | |
23052 | ||
23053 | if test "${CONFIG_HEADERS+set}" != set; then | |
23054 | EOF | |
23055 | cat >> $CONFIG_STATUS <<EOF | |
23056 | CONFIG_HEADERS="setup.h:setup.h.in" | |
23057 | EOF | |
23058 | cat >> $CONFIG_STATUS <<\EOF | |
23059 | fi | |
23060 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 23061 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
a0b9e27f MB |
23062 | case "$ac_file" in |
23063 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
23064 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
23065 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
23066 | esac |
23067 | ||
a0b9e27f MB |
23068 | echo creating $ac_file |
23069 | ||
23070 | rm -f conftest.frag conftest.in conftest.out | |
23071 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
23072 | cat $ac_file_inputs > conftest.in | |
23073 | ||
23074 | EOF | |
23075 | ||
23076 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
23077 | # the proper values into config.h.in to produce config.h. And first: | |
23078 | # Protect against being on the right side of a sed subst in config.status. | |
23079 | # Protect against being in an unquoted here document in config.status. | |
23080 | rm -f conftest.vals | |
23081 | cat > conftest.hdr <<\EOF | |
23082 | s/[\\&%]/\\&/g | |
23083 | s%[\\$`]%\\&%g | |
23084 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
23085 | s%ac_d%ac_u%gp | |
23086 | s%ac_u%ac_e%gp | |
23087 | EOF | |
23088 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
23089 | rm -f conftest.hdr | |
10f2d63a VZ |
23090 | |
23091 | # This sed command replaces #undef with comments. This is necessary, for | |
23092 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
23093 | # on some systems where configure will not decide to define it. | |
a0b9e27f MB |
23094 | cat >> conftest.vals <<\EOF |
23095 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
23096 | EOF | |
23097 | ||
23098 | # Break up conftest.vals because some shells have a limit on | |
23099 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
23100 | |
23101 | rm -f conftest.tail | |
a0b9e27f | 23102 | while : |
10f2d63a | 23103 | do |
a0b9e27f MB |
23104 | ac_lines=`grep -c . conftest.vals` |
23105 | # grep -c gives empty output for an empty file on some AIX systems. | |
23106 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
23107 | # Write a limited-size here document to conftest.frag. | |
23108 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
23109 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 23110 | echo 'CEOF |
a0b9e27f MB |
23111 | sed -f conftest.frag conftest.in > conftest.out |
23112 | rm -f conftest.in | |
23113 | mv conftest.out conftest.in | |
23114 | ' >> $CONFIG_STATUS | |
23115 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
23116 | rm -f conftest.vals | |
23117 | mv conftest.tail conftest.vals | |
10f2d63a | 23118 | done |
a0b9e27f MB |
23119 | rm -f conftest.vals |
23120 | ||
23121 | cat >> $CONFIG_STATUS <<\EOF | |
23122 | rm -f conftest.frag conftest.h | |
23123 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
23124 | cat conftest.in >> conftest.h | |
23125 | rm -f conftest.in | |
23126 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
23127 | echo "$ac_file is unchanged" | |
23128 | rm -f conftest.h | |
10f2d63a | 23129 | else |
a0b9e27f MB |
23130 | # Remove last slash and all that follows it. Not all systems have dirname. |
23131 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
23132 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
23133 | # The file is in a subdirectory. | |
23134 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
247f5006 | 23135 | fi |
a0b9e27f MB |
23136 | rm -f $ac_file |
23137 | mv conftest.h $ac_file | |
247f5006 | 23138 | fi |
a0b9e27f MB |
23139 | fi; done |
23140 | ||
23141 | EOF | |
23142 | cat >> $CONFIG_STATUS <<EOF | |
23143 | ||
23144 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" | |
23145 | LN_S="${LN_S}" | |
23146 | ||
23147 | ||
23148 | EOF | |
23149 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 23150 | |
652d930d | 23151 | if test ! -h wx-config; then |
991a5759 | 23152 | chmod +x wx-config |
3a922bb4 RL |
23153 | mv wx-config wx${TOOLCHAIN_NAME}-config |
23154 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 23155 | fi |
665bbe97 | 23156 | |
00cf1208 RR |
23157 | if test ! -d lib; then |
23158 | mkdir lib | |
23159 | fi | |
23160 | if test ! -d lib/wx; then | |
23161 | mkdir lib/wx | |
23162 | fi | |
23163 | if test ! -d lib/wx/include; then | |
23164 | mkdir lib/wx/include | |
23165 | fi | |
3a922bb4 RL |
23166 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
23167 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 23168 | fi |
3a922bb4 RL |
23169 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
23170 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
23171 | fi |
23172 | if test -f setup.h; then | |
3a922bb4 | 23173 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 23174 | fi |
a0b9e27f MB |
23175 | |
23176 | exit 0 | |
23177 | EOF | |
10f2d63a | 23178 | chmod +x $CONFIG_STATUS |
a0b9e27f MB |
23179 | rm -fr confdefs* $ac_clean_files |
23180 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 23181 | |
2224580a VZ |
23182 | if test "$no_recursion" != yes; then |
23183 | ||
23184 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
23185 | ac_sub_configure_args= | |
23186 | ac_prev= | |
23187 | for ac_arg in $ac_configure_args; do | |
23188 | if test -n "$ac_prev"; then | |
23189 | ac_prev= | |
23190 | continue | |
23191 | fi | |
a0b9e27f | 23192 | case "$ac_arg" in |
2224580a VZ |
23193 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
23194 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
23195 | ac_prev=cache_file ;; | |
23196 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
a0b9e27f | 23197 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
23198 | ;; |
23199 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
23200 | ac_prev=srcdir ;; | |
23201 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
23202 | ;; | |
23203 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
23204 | esac | |
23205 | done | |
23206 | ||
a0b9e27f | 23207 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
23208 | |
23209 | # Do not complain, so a configure script can configure whichever | |
23210 | # parts of a large source tree are present. | |
a0b9e27f MB |
23211 | if test ! -d $srcdir/$ac_config_dir; then |
23212 | continue | |
23213 | fi | |
2224580a | 23214 | |
a0b9e27f | 23215 | echo configuring in $ac_config_dir |
2224580a | 23216 | |
a0b9e27f MB |
23217 | case "$srcdir" in |
23218 | .) ;; | |
23219 | *) | |
23220 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; | |
23221 | else | |
23222 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
23223 | fi | |
23224 | ;; | |
23225 | esac | |
2224580a | 23226 | |
a0b9e27f MB |
23227 | ac_popdir=`pwd` |
23228 | cd $ac_config_dir | |
247f5006 | 23229 | |
a0b9e27f MB |
23230 | # A "../" for each directory in /$ac_config_dir. |
23231 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
247f5006 | 23232 | |
a0b9e27f MB |
23233 | case "$srcdir" in |
23234 | .) # No --srcdir option. We are building in place. | |
23235 | ac_sub_srcdir=$srcdir ;; | |
23236 | /*) # Absolute path. | |
23237 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
23238 | *) # Relative path. | |
23239 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; | |
23240 | esac | |
2224580a VZ |
23241 | |
23242 | # Check for guested configure; otherwise get Cygnus style configure. | |
a0b9e27f MB |
23243 | if test -f $ac_sub_srcdir/configure; then |
23244 | ac_sub_configure=$ac_sub_srcdir/configure | |
23245 | elif test -f $ac_sub_srcdir/configure.in; then | |
2224580a VZ |
23246 | ac_sub_configure=$ac_configure |
23247 | else | |
a0b9e27f | 23248 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
23249 | ac_sub_configure= |
23250 | fi | |
23251 | ||
23252 | # The recursion is here. | |
23253 | if test -n "$ac_sub_configure"; then | |
a0b9e27f | 23254 | |
2224580a | 23255 | # Make the cache file name correct relative to the subdirectory. |
a0b9e27f MB |
23256 | case "$cache_file" in |
23257 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 23258 | *) # Relative path. |
a0b9e27f | 23259 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 23260 | esac |
a0b9e27f MB |
23261 | case "$ac_given_INSTALL" in |
23262 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
23263 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
23264 | esac | |
2224580a | 23265 | |
a0b9e27f | 23266 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 23267 | # The eval makes quoting arguments work. |
a0b9e27f MB |
23268 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
23269 | then : | |
23270 | else | |
23271 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
23272 | fi | |
2224580a VZ |
23273 | fi |
23274 | ||
23275 | cd $ac_popdir | |
23276 | done | |
23277 | fi | |
23278 | ||
8284b0c5 | 23279 | |
2b5f62a0 VZ |
23280 | echo |
23281 | echo "Configured wxWindows ${WX_VERSION} for \`${host}'" | |
23282 | echo "" | |
23283 | echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}" | |
23284 | ||
23285 | echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}" | |
23286 | echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}" | |
23287 | echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
23288 | ||
0c98a14e GD |
23289 | echo " What level of wxWindows compatibility should be enabled?" |
23290 | echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}" | |
65d8ef1e VS |
23291 | echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" |
23292 | echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
0c98a14e | 23293 | |
2b5f62a0 VZ |
23294 | echo " Which libraries should wxWindows use?" |
23295 | echo " jpeg ${wxUSE_LIBJPEG-none}" | |
23296 | echo " png ${wxUSE_LIBPNG-none}" | |
23297 | echo " regex ${wxUSE_REGEX}" | |
23298 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
23299 | echo " zlib ${wxUSE_ZLIB}" | |
fd3d7534 | 23300 | echo " odbc ${wxUSE_ODBC}" |
2b5f62a0 VZ |
23301 | |
23302 | echo "" | |
23303 |