]>
Commit | Line | Data |
---|---|---|
1 | #! /bin/sh | |
2 | ||
3 | # From configure.in Id: configure.in | |
4 | ||
5 | ||
6 | ||
7 | ||
8 | ||
9 | ||
10 | ||
11 | ||
12 | ||
13 | ||
14 | ||
15 | ||
16 | ||
17 | ||
18 | ||
19 | ||
20 | ||
21 | ||
22 | ||
23 | ||
24 | ||
25 | ||
26 | ||
27 | ||
28 | ||
29 | ||
30 | ||
31 | ||
32 | ||
33 | ||
34 | ||
35 | ||
36 | ||
37 | ||
38 | ||
39 | # Configure paths for GTK+ | |
40 | # Owen Taylor 97-11-3 | |
41 | ||
42 | ||
43 | ||
44 | ||
45 | ||
46 | ||
47 | # Guess values for system-dependent variables and create Makefiles. | |
48 | # Generated automatically using autoconf version 2.13 | |
49 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
50 | # | |
51 | # This configure script is free software; the Free Software Foundation | |
52 | # gives unlimited permission to copy, distribute and modify it. | |
53 | ||
54 | # Defaults: | |
55 | ac_help= | |
56 | ac_default_prefix=/usr/local | |
57 | # Any additions from configure.in: | |
58 | ac_help="$ac_help | |
59 | --enable-gui use GUI classes" | |
60 | ac_help="$ac_help | |
61 | --enable-universal use wxWindows GUI controls instead of native ones" | |
62 | ac_help="$ac_help | |
63 | --with-gtk use GTK+" | |
64 | ac_help="$ac_help | |
65 | --with-motif use Motif/Lesstif" | |
66 | ac_help="$ac_help | |
67 | --with-mac use Mac OS X" | |
68 | ac_help="$ac_help | |
69 | --with-wine use WINE" | |
70 | ac_help="$ac_help | |
71 | --with-msw use MS-Windows" | |
72 | ac_help="$ac_help | |
73 | --with-pm use OS/2 Presentation Manager" | |
74 | ac_help="$ac_help | |
75 | --with-mgl use SciTech MGL" | |
76 | ac_help="$ac_help | |
77 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)" | |
78 | ac_help="$ac_help | |
79 | --with-libpng use libpng (PNG image format)" | |
80 | ac_help="$ac_help | |
81 | --with-libjpeg use libjpeg (JPEG file format)" | |
82 | ac_help="$ac_help | |
83 | --with-libtiff use libtiff (TIFF file format)" | |
84 | ac_help="$ac_help | |
85 | --with-freetype use freetype (font rasterizer)" | |
86 | ac_help="$ac_help | |
87 | --with-opengl use OpenGL (or Mesa)" | |
88 | ac_help="$ac_help | |
89 | --with-dmalloc use dmalloc library (www.letters.com/dmalloc)" | |
90 | ac_help="$ac_help | |
91 | --with-regex enable support for wxRegEx class" | |
92 | ac_help="$ac_help | |
93 | --with-zlib use zlib for LZW compression" | |
94 | ac_help="$ac_help | |
95 | --with-odbc use the IODBC and wxODBC classes" | |
96 | ac_help="$ac_help | |
97 | --enable-shared create shared library code" | |
98 | ac_help="$ac_help | |
99 | --enable-soname set the DT_SONAME field in ELF shared libraries" | |
100 | ac_help="$ac_help | |
101 | --enable-optimise create optimised code" | |
102 | ac_help="$ac_help | |
103 | --enable-debug same as debug_flag and debug_info" | |
104 | ac_help="$ac_help | |
105 | --enable-precomp enable use of precompiled headers (Mac OS X)" | |
106 | ac_help="$ac_help | |
107 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" | |
108 | ac_help="$ac_help | |
109 | --enable-debug_info create code with debugging information" | |
110 | ac_help="$ac_help | |
111 | --enable-debug_gdb create code with extra GDB debugging information" | |
112 | ac_help="$ac_help | |
113 | --enable-debug_cntxt use wxDebugContext" | |
114 | ac_help="$ac_help | |
115 | --enable-mem_tracing create code with memory tracing" | |
116 | ac_help="$ac_help | |
117 | --enable-profile create code with profiling information" | |
118 | ac_help="$ac_help | |
119 | --enable-no_rtti create code without RTTI information" | |
120 | ac_help="$ac_help | |
121 | --enable-no_exceptions create code without C++ exceptions handling" | |
122 | ac_help="$ac_help | |
123 | --enable-permissive compile code disregarding strict ANSI" | |
124 | ac_help="$ac_help | |
125 | --enable-no_deps create code without dependency information" | |
126 | ac_help="$ac_help | |
127 | --enable-compat20 enable wxWindows 2.0 compatibility" | |
128 | ac_help="$ac_help | |
129 | --enable-compat22 enable wxWindows 2.2 compatibility" | |
130 | ac_help="$ac_help | |
131 | --enable-intl use internationalization system" | |
132 | ac_help="$ac_help | |
133 | --enable-config use wxConfig (and derived) classes" | |
134 | ac_help="$ac_help | |
135 | --enable-sockets use socket/network classes" | |
136 | ac_help="$ac_help | |
137 | --enable-ipc use interprocess communication (wxSocket etc.)" | |
138 | ac_help="$ac_help | |
139 | --enable-cmdline use wxCmdLineParser class" | |
140 | ac_help="$ac_help | |
141 | --enable-datetime use wxDateTime class" | |
142 | ac_help="$ac_help | |
143 | --enable-timedate use obsolete wxDate/wxTime classes" | |
144 | ac_help="$ac_help | |
145 | --enable-stopwatch use wxStopWatch class" | |
146 | ac_help="$ac_help | |
147 | --enable-dialupman use dialup network classes" | |
148 | ac_help="$ac_help | |
149 | --enable-apple_ieee use the Apple IEEE codec" | |
150 | ac_help="$ac_help | |
151 | --enable-timer use wxTimer class" | |
152 | ac_help="$ac_help | |
153 | --enable-wave use wxWave class" | |
154 | ac_help="$ac_help | |
155 | --enable-fraction use wxFraction class" | |
156 | ac_help="$ac_help | |
157 | --enable-dynlib use wxLibrary class for DLL loading" | |
158 | ac_help="$ac_help | |
159 | --enable-longlong use wxLongLong class" | |
160 | ac_help="$ac_help | |
161 | --enable-geometry use geometry class" | |
162 | ac_help="$ac_help | |
163 | --enable-log use logging system" | |
164 | ac_help="$ac_help | |
165 | --enable-streams use wxStream etc classes" | |
166 | ac_help="$ac_help | |
167 | --enable-file use wxFile classes" | |
168 | ac_help="$ac_help | |
169 | --enable-ffile use wxFFile classes" | |
170 | ac_help="$ac_help | |
171 | --enable-textfile use wxTextFile classes" | |
172 | ac_help="$ac_help | |
173 | --enable-fontmap use font encodings conversion classes" | |
174 | ac_help="$ac_help | |
175 | --enable-unicode compile wxString with Unicode support" | |
176 | ac_help="$ac_help | |
177 | --enable-wxprintfv use wxWindows implementation of vprintf()" | |
178 | ac_help="$ac_help | |
179 | --enable-std_iostreams use standard C++ stream classes" | |
180 | ac_help="$ac_help | |
181 | --enable-filesystem use virtual file systems classes" | |
182 | ac_help="$ac_help | |
183 | --enable-fs_inet use virtual HTTP/FTP filesystems" | |
184 | ac_help="$ac_help | |
185 | --enable-fs_zip use virtual ZIP filesystems" | |
186 | ac_help="$ac_help | |
187 | --enable-zipstream use wxZipInputStream" | |
188 | ac_help="$ac_help | |
189 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException" | |
190 | ac_help="$ac_help | |
191 | --enable-snglinst use wxSingleInstanceChecker class" | |
192 | ac_help="$ac_help | |
193 | --enable-mimetypes use wxMimeTypesManager" | |
194 | ac_help="$ac_help | |
195 | --enable-sysoptions use wxSystemOptions" | |
196 | ac_help="$ac_help | |
197 | --enable-threads use threads" | |
198 | ac_help="$ac_help | |
199 | --enable-serial use class serialization" | |
200 | ac_help="$ac_help | |
201 | --enable-docview use document view architecture" | |
202 | ac_help="$ac_help | |
203 | --enable-help use help subsystem" | |
204 | ac_help="$ac_help | |
205 | --enable-mshtmlhelp use MS HTML Help (win32)" | |
206 | ac_help="$ac_help | |
207 | --enable-html use wxHTML sub-library" | |
208 | ac_help="$ac_help | |
209 | --enable-htmlhelp use wxHTML-based help" | |
210 | ac_help="$ac_help | |
211 | --enable-constraints use layout-constraints system" | |
212 | ac_help="$ac_help | |
213 | --enable-printarch use printing architecture" | |
214 | ac_help="$ac_help | |
215 | --enable-mdi use multiple document interface architecture" | |
216 | ac_help="$ac_help | |
217 | --enable-loggui use standard GUI logger" | |
218 | ac_help="$ac_help | |
219 | --enable-logwin use wxLogWindow" | |
220 | ac_help="$ac_help | |
221 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" | |
222 | ac_help="$ac_help | |
223 | --enable-prologio use Prolog IO library" | |
224 | ac_help="$ac_help | |
225 | --enable-resources use wxWindows resources" | |
226 | ac_help="$ac_help | |
227 | --enable-xresources use X resources for save (default for gtk+)" | |
228 | ac_help="$ac_help | |
229 | --enable-clipboard use wxClipboard classes" | |
230 | ac_help="$ac_help | |
231 | --enable-dnd use Drag'n'Drop classes" | |
232 | ac_help="$ac_help | |
233 | --enable-metafile use win32 metafiles" | |
234 | ac_help="$ac_help | |
235 | --enable-treelayout use wxTreeLayout classes" | |
236 | ac_help="$ac_help | |
237 | --enable-controls use all usual controls" | |
238 | ac_help="$ac_help | |
239 | --enable-accel use accelerators" | |
240 | ac_help="$ac_help | |
241 | --enable-button use wxButton class" | |
242 | ac_help="$ac_help | |
243 | --enable-bmpbutton use wxBitmapButton class" | |
244 | ac_help="$ac_help | |
245 | --enable-calendar use wxCalendarCtrl class" | |
246 | ac_help="$ac_help | |
247 | --enable-caret use wxCaret class" | |
248 | ac_help="$ac_help | |
249 | --enable-checkbox use wxCheckBox class" | |
250 | ac_help="$ac_help | |
251 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" | |
252 | ac_help="$ac_help | |
253 | --enable-choice use wxChoice class" | |
254 | ac_help="$ac_help | |
255 | --enable-combobox use wxComboBox classes" | |
256 | ac_help="$ac_help | |
257 | --enable-gauge use wxGauge class" | |
258 | ac_help="$ac_help | |
259 | --enable-grid use wxGrid class" | |
260 | ac_help="$ac_help | |
261 | --enable-newgrid use new wxGrid class" | |
262 | ac_help="$ac_help | |
263 | --enable-imaglist use wxImageList class" | |
264 | ac_help="$ac_help | |
265 | --enable-listbox use wxListBox class" | |
266 | ac_help="$ac_help | |
267 | --enable-listctrl use wxListCtrl class" | |
268 | ac_help="$ac_help | |
269 | --enable-notebook use wxNotebook class" | |
270 | ac_help="$ac_help | |
271 | --enable-propsheet use wxPropertySheet class" | |
272 | ac_help="$ac_help | |
273 | --enable-radiobox use wxRadioBox class" | |
274 | ac_help="$ac_help | |
275 | --enable-radiobtn use wxRadioButton class" | |
276 | ac_help="$ac_help | |
277 | --enable-sash use wxSashWindow class" | |
278 | ac_help="$ac_help | |
279 | --enable-scrollbar use wxScrollBar class and scrollable windows" | |
280 | ac_help="$ac_help | |
281 | --enable-slider use wxSlider class" | |
282 | ac_help="$ac_help | |
283 | --enable-spinbtn use wxSpinButton class" | |
284 | ac_help="$ac_help | |
285 | --enable-spinctrl use wxSpinCtrl class" | |
286 | ac_help="$ac_help | |
287 | --enable-splitter use wxSplitterWindow class" | |
288 | ac_help="$ac_help | |
289 | --enable-statbmp use wxStaticBitmap class" | |
290 | ac_help="$ac_help | |
291 | --enable-statbox use wxStaticBox class" | |
292 | ac_help="$ac_help | |
293 | --enable-statline use wxStaticLine class" | |
294 | ac_help="$ac_help | |
295 | --enable-stattext use wxStaticText class" | |
296 | ac_help="$ac_help | |
297 | --enable-statusbar use wxStatusBar class" | |
298 | ac_help="$ac_help | |
299 | --enable-tabdialog use wxTabControl class" | |
300 | ac_help="$ac_help | |
301 | --enable-textctrl use wxTextCtrl class" | |
302 | ac_help="$ac_help | |
303 | --enable-togglebtn use wxToggleButton class" | |
304 | ac_help="$ac_help | |
305 | --enable-toolbar use wxToolBar class" | |
306 | ac_help="$ac_help | |
307 | --enable-tbarnative use native wxToolBar class" | |
308 | ac_help="$ac_help | |
309 | --enable-tbarsmpl use wxToolBarSimple class" | |
310 | ac_help="$ac_help | |
311 | --enable-treectrl use wxTreeCtrl class" | |
312 | ac_help="$ac_help | |
313 | --enable-popupwin use wxPopUpWindow class" | |
314 | ac_help="$ac_help | |
315 | --enable-commondlg use all common dialogs" | |
316 | ac_help="$ac_help | |
317 | --enable-choicedlg use wxChoiceDialog" | |
318 | ac_help="$ac_help | |
319 | --enable-coldlg use wxColourDialog" | |
320 | ac_help="$ac_help | |
321 | --enable-filedlg use wxFileDialog" | |
322 | ac_help="$ac_help | |
323 | --enable-finddlg use wxFindReplaceDialog" | |
324 | ac_help="$ac_help | |
325 | --enable-fontdlg use wxFontDialog" | |
326 | ac_help="$ac_help | |
327 | --enable-dirdlg use wxDirDialog" | |
328 | ac_help="$ac_help | |
329 | --enable-msgdlg use wxMessageDialog" | |
330 | ac_help="$ac_help | |
331 | --enable-numberdlg use wxNumberEntryDialog" | |
332 | ac_help="$ac_help | |
333 | --enable-splash use wxSplashScreen" | |
334 | ac_help="$ac_help | |
335 | --enable-textdlg use wxTextDialog" | |
336 | ac_help="$ac_help | |
337 | --enable-tipdlg use startup tips" | |
338 | ac_help="$ac_help | |
339 | --enable-progressdlg use wxProgressDialog" | |
340 | ac_help="$ac_help | |
341 | --enable-wizarddlg use wxWizard" | |
342 | ac_help="$ac_help | |
343 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" | |
344 | ac_help="$ac_help | |
345 | --enable-miniframe use wxMiniFrame class" | |
346 | ac_help="$ac_help | |
347 | --enable-tooltips use wxToolTip class" | |
348 | ac_help="$ac_help | |
349 | --enable-splines use spline drawing code" | |
350 | ac_help="$ac_help | |
351 | --enable-validators use wxValidator and derived classes" | |
352 | ac_help="$ac_help | |
353 | --enable-busyinfo use wxBusyInfo" | |
354 | ac_help="$ac_help | |
355 | --enable-joystick use wxJoystick (Linux only)" | |
356 | ac_help="$ac_help | |
357 | --enable-metafiles use wxMetaFile (Windows only)" | |
358 | ac_help="$ac_help | |
359 | --enable-dragimage use wxDragImage" | |
360 | ac_help="$ac_help | |
361 | --enable-palette use wxPalette class" | |
362 | ac_help="$ac_help | |
363 | --enable-image use wxImage class" | |
364 | ac_help="$ac_help | |
365 | --enable-gif use gif images (GIF file format)" | |
366 | ac_help="$ac_help | |
367 | --enable-pcx use pcx images (PCX file format)" | |
368 | ac_help="$ac_help | |
369 | --enable-pnm use pnm images (PNM file format)" | |
370 | ac_help="$ac_help | |
371 | --enable-xpm use xpm images (XPM file format)" | |
372 | ac_help="$ac_help | |
373 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
374 | ac_help="$ac_help | |
375 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
376 | ac_help="$ac_help | |
377 | --disable-gtktest Do not try to compile and run a test GTK program" | |
378 | ac_help="$ac_help | |
379 | --with-x use the X Window System" | |
380 | ||
381 | # Initialize some variables set by options. | |
382 | # The variables have the same names as the options, with | |
383 | # dashes changed to underlines. | |
384 | build=NONE | |
385 | cache_file=./config.cache | |
386 | exec_prefix=NONE | |
387 | host=NONE | |
388 | no_create= | |
389 | nonopt=NONE | |
390 | no_recursion= | |
391 | prefix=NONE | |
392 | program_prefix=NONE | |
393 | program_suffix=NONE | |
394 | program_transform_name=s,x,x, | |
395 | silent= | |
396 | site= | |
397 | srcdir= | |
398 | target=NONE | |
399 | verbose= | |
400 | x_includes=NONE | |
401 | x_libraries=NONE | |
402 | bindir='${exec_prefix}/bin' | |
403 | sbindir='${exec_prefix}/sbin' | |
404 | libexecdir='${exec_prefix}/libexec' | |
405 | datadir='${prefix}/share' | |
406 | sysconfdir='${prefix}/etc' | |
407 | sharedstatedir='${prefix}/com' | |
408 | localstatedir='${prefix}/var' | |
409 | libdir='${exec_prefix}/lib' | |
410 | includedir='${prefix}/include' | |
411 | oldincludedir='/usr/include' | |
412 | infodir='${prefix}/info' | |
413 | mandir='${prefix}/man' | |
414 | ||
415 | # Initialize some other variables. | |
416 | subdirs= | |
417 | MFLAGS= MAKEFLAGS= | |
418 | SHELL=${CONFIG_SHELL-/bin/sh} | |
419 | # Maximum number of lines to put in a shell here document. | |
420 | ac_max_here_lines=12 | |
421 | ||
422 | ac_prev= | |
423 | for ac_option | |
424 | do | |
425 | ||
426 | # If the previous option needs an argument, assign it. | |
427 | if test -n "$ac_prev"; then | |
428 | eval "$ac_prev=\$ac_option" | |
429 | ac_prev= | |
430 | continue | |
431 | fi | |
432 | ||
433 | case "$ac_option" in | |
434 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
435 | *) ac_optarg= ;; | |
436 | esac | |
437 | ||
438 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
439 | ||
440 | case "$ac_option" in | |
441 | ||
442 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
443 | ac_prev=bindir ;; | |
444 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
445 | bindir="$ac_optarg" ;; | |
446 | ||
447 | -build | --build | --buil | --bui | --bu) | |
448 | ac_prev=build ;; | |
449 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
450 | build="$ac_optarg" ;; | |
451 | ||
452 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
453 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
454 | ac_prev=cache_file ;; | |
455 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
456 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
457 | cache_file="$ac_optarg" ;; | |
458 | ||
459 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
460 | ac_prev=datadir ;; | |
461 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
462 | | --da=*) | |
463 | datadir="$ac_optarg" ;; | |
464 | ||
465 | -disable-* | --disable-*) | |
466 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
467 | # Reject names that are not valid shell variable names. | |
468 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
469 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
470 | fi | |
471 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
472 | eval "enable_${ac_feature}=no" ;; | |
473 | ||
474 | -enable-* | --enable-*) | |
475 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
476 | # Reject names that are not valid shell variable names. | |
477 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
478 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
479 | fi | |
480 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
481 | case "$ac_option" in | |
482 | *=*) ;; | |
483 | *) ac_optarg=yes ;; | |
484 | esac | |
485 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
486 | ||
487 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
488 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
489 | | --exec | --exe | --ex) | |
490 | ac_prev=exec_prefix ;; | |
491 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
492 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
493 | | --exec=* | --exe=* | --ex=*) | |
494 | exec_prefix="$ac_optarg" ;; | |
495 | ||
496 | -gas | --gas | --ga | --g) | |
497 | # Obsolete; use --with-gas. | |
498 | with_gas=yes ;; | |
499 | ||
500 | -help | --help | --hel | --he) | |
501 | # Omit some internal or obsolete options to make the list less imposing. | |
502 | # This message is too long to be a string in the A/UX 3.1 sh. | |
503 | cat << EOF | |
504 | Usage: configure [options] [host] | |
505 | Options: [defaults in brackets after descriptions] | |
506 | Configuration: | |
507 | --cache-file=FILE cache test results in FILE | |
508 | --help print this message | |
509 | --no-create do not create output files | |
510 | --quiet, --silent do not print \`checking...' messages | |
511 | --version print the version of autoconf that created configure | |
512 | Directory and file names: | |
513 | --prefix=PREFIX install architecture-independent files in PREFIX | |
514 | [$ac_default_prefix] | |
515 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
516 | [same as prefix] | |
517 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
518 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
519 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
520 | --datadir=DIR read-only architecture-independent data in DIR | |
521 | [PREFIX/share] | |
522 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
523 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
524 | [PREFIX/com] | |
525 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
526 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
527 | --includedir=DIR C header files in DIR [PREFIX/include] | |
528 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
529 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
530 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
531 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
532 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
533 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
534 | --program-transform-name=PROGRAM | |
535 | run sed PROGRAM on installed program names | |
536 | EOF | |
537 | cat << EOF | |
538 | Host type: | |
539 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
540 | --host=HOST configure for HOST [guessed] | |
541 | --target=TARGET configure for TARGET [TARGET=HOST] | |
542 | Features and packages: | |
543 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
544 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
545 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
546 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
547 | --x-includes=DIR X include files are in DIR | |
548 | --x-libraries=DIR X library files are in DIR | |
549 | EOF | |
550 | if test -n "$ac_help"; then | |
551 | echo "--enable and --with options recognized:$ac_help" | |
552 | fi | |
553 | exit 0 ;; | |
554 | ||
555 | -host | --host | --hos | --ho) | |
556 | ac_prev=host ;; | |
557 | -host=* | --host=* | --hos=* | --ho=*) | |
558 | host="$ac_optarg" ;; | |
559 | ||
560 | -includedir | --includedir | --includedi | --included | --include \ | |
561 | | --includ | --inclu | --incl | --inc) | |
562 | ac_prev=includedir ;; | |
563 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
564 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
565 | includedir="$ac_optarg" ;; | |
566 | ||
567 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
568 | ac_prev=infodir ;; | |
569 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
570 | infodir="$ac_optarg" ;; | |
571 | ||
572 | -libdir | --libdir | --libdi | --libd) | |
573 | ac_prev=libdir ;; | |
574 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
575 | libdir="$ac_optarg" ;; | |
576 | ||
577 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
578 | | --libexe | --libex | --libe) | |
579 | ac_prev=libexecdir ;; | |
580 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
581 | | --libexe=* | --libex=* | --libe=*) | |
582 | libexecdir="$ac_optarg" ;; | |
583 | ||
584 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
585 | | --localstate | --localstat | --localsta | --localst \ | |
586 | | --locals | --local | --loca | --loc | --lo) | |
587 | ac_prev=localstatedir ;; | |
588 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
589 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
590 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
591 | localstatedir="$ac_optarg" ;; | |
592 | ||
593 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
594 | ac_prev=mandir ;; | |
595 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
596 | mandir="$ac_optarg" ;; | |
597 | ||
598 | -nfp | --nfp | --nf) | |
599 | # Obsolete; use --without-fp. | |
600 | with_fp=no ;; | |
601 | ||
602 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
603 | | --no-cr | --no-c) | |
604 | no_create=yes ;; | |
605 | ||
606 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
607 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
608 | no_recursion=yes ;; | |
609 | ||
610 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
611 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
612 | | --oldin | --oldi | --old | --ol | --o) | |
613 | ac_prev=oldincludedir ;; | |
614 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
615 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
616 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
617 | oldincludedir="$ac_optarg" ;; | |
618 | ||
619 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
620 | ac_prev=prefix ;; | |
621 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
622 | prefix="$ac_optarg" ;; | |
623 | ||
624 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
625 | | --program-pre | --program-pr | --program-p) | |
626 | ac_prev=program_prefix ;; | |
627 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
628 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
629 | program_prefix="$ac_optarg" ;; | |
630 | ||
631 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
632 | | --program-suf | --program-su | --program-s) | |
633 | ac_prev=program_suffix ;; | |
634 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
635 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
636 | program_suffix="$ac_optarg" ;; | |
637 | ||
638 | -program-transform-name | --program-transform-name \ | |
639 | | --program-transform-nam | --program-transform-na \ | |
640 | | --program-transform-n | --program-transform- \ | |
641 | | --program-transform | --program-transfor \ | |
642 | | --program-transfo | --program-transf \ | |
643 | | --program-trans | --program-tran \ | |
644 | | --progr-tra | --program-tr | --program-t) | |
645 | ac_prev=program_transform_name ;; | |
646 | -program-transform-name=* | --program-transform-name=* \ | |
647 | | --program-transform-nam=* | --program-transform-na=* \ | |
648 | | --program-transform-n=* | --program-transform-=* \ | |
649 | | --program-transform=* | --program-transfor=* \ | |
650 | | --program-transfo=* | --program-transf=* \ | |
651 | | --program-trans=* | --program-tran=* \ | |
652 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
653 | program_transform_name="$ac_optarg" ;; | |
654 | ||
655 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
656 | | -silent | --silent | --silen | --sile | --sil) | |
657 | silent=yes ;; | |
658 | ||
659 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
660 | ac_prev=sbindir ;; | |
661 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
662 | | --sbi=* | --sb=*) | |
663 | sbindir="$ac_optarg" ;; | |
664 | ||
665 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
666 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
667 | | --sharedst | --shareds | --shared | --share | --shar \ | |
668 | | --sha | --sh) | |
669 | ac_prev=sharedstatedir ;; | |
670 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
671 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
672 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
673 | | --sha=* | --sh=*) | |
674 | sharedstatedir="$ac_optarg" ;; | |
675 | ||
676 | -site | --site | --sit) | |
677 | ac_prev=site ;; | |
678 | -site=* | --site=* | --sit=*) | |
679 | site="$ac_optarg" ;; | |
680 | ||
681 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
682 | ac_prev=srcdir ;; | |
683 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
684 | srcdir="$ac_optarg" ;; | |
685 | ||
686 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
687 | | --syscon | --sysco | --sysc | --sys | --sy) | |
688 | ac_prev=sysconfdir ;; | |
689 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
690 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
691 | sysconfdir="$ac_optarg" ;; | |
692 | ||
693 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
694 | ac_prev=target ;; | |
695 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
696 | target="$ac_optarg" ;; | |
697 | ||
698 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
699 | verbose=yes ;; | |
700 | ||
701 | -version | --version | --versio | --versi | --vers) | |
702 | echo "configure generated by autoconf version 2.13" | |
703 | exit 0 ;; | |
704 | ||
705 | -with-* | --with-*) | |
706 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
707 | # Reject names that are not valid shell variable names. | |
708 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
709 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
710 | fi | |
711 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
712 | case "$ac_option" in | |
713 | *=*) ;; | |
714 | *) ac_optarg=yes ;; | |
715 | esac | |
716 | eval "with_${ac_package}='$ac_optarg'" ;; | |
717 | ||
718 | -without-* | --without-*) | |
719 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
720 | # Reject names that are not valid shell variable names. | |
721 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
722 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
723 | fi | |
724 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
725 | eval "with_${ac_package}=no" ;; | |
726 | ||
727 | --x) | |
728 | # Obsolete; use --with-x. | |
729 | with_x=yes ;; | |
730 | ||
731 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
732 | | --x-incl | --x-inc | --x-in | --x-i) | |
733 | ac_prev=x_includes ;; | |
734 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
735 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
736 | x_includes="$ac_optarg" ;; | |
737 | ||
738 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
739 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
740 | ac_prev=x_libraries ;; | |
741 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
742 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
743 | x_libraries="$ac_optarg" ;; | |
744 | ||
745 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
746 | ;; | |
747 | ||
748 | *) | |
749 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
750 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
751 | fi | |
752 | if test "x$nonopt" != xNONE; then | |
753 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
754 | fi | |
755 | nonopt="$ac_option" | |
756 | ;; | |
757 | ||
758 | esac | |
759 | done | |
760 | ||
761 | if test -n "$ac_prev"; then | |
762 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
763 | fi | |
764 | ||
765 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
766 | ||
767 | # File descriptor usage: | |
768 | # 0 standard input | |
769 | # 1 file creation | |
770 | # 2 errors and warnings | |
771 | # 3 some systems may open it to /dev/tty | |
772 | # 4 used on the Kubota Titan | |
773 | # 6 checking for... messages and results | |
774 | # 5 compiler messages saved in config.log | |
775 | if test "$silent" = yes; then | |
776 | exec 6>/dev/null | |
777 | else | |
778 | exec 6>&1 | |
779 | fi | |
780 | exec 5>./config.log | |
781 | ||
782 | echo "\ | |
783 | This file contains any messages produced by compilers while | |
784 | running configure, to aid debugging if configure makes a mistake. | |
785 | " 1>&5 | |
786 | ||
787 | # Strip out --no-create and --no-recursion so they do not pile up. | |
788 | # Also quote any args containing shell metacharacters. | |
789 | ac_configure_args= | |
790 | for ac_arg | |
791 | do | |
792 | case "$ac_arg" in | |
793 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
794 | | --no-cr | --no-c) ;; | |
795 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
796 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
797 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
798 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
799 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
800 | esac | |
801 | done | |
802 | ||
803 | # NLS nuisances. | |
804 | # Only set these to C if already set. These must not be set unconditionally | |
805 | # because not all systems understand e.g. LANG=C (notably SCO). | |
806 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
807 | # Non-C LC_CTYPE values break the ctype check. | |
808 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
809 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
810 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
811 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
812 | ||
813 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
814 | rm -rf conftest* confdefs.h | |
815 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
816 | echo > confdefs.h | |
817 | ||
818 | # A filename unique to this package, relative to the directory that | |
819 | # configure is in, which we can look for to find out if srcdir is correct. | |
820 | ac_unique_file=wx-config.in | |
821 | ||
822 | # Find the source files, if location was not specified. | |
823 | if test -z "$srcdir"; then | |
824 | ac_srcdir_defaulted=yes | |
825 | # Try the directory containing this script, then its parent. | |
826 | ac_prog=$0 | |
827 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
828 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
829 | srcdir=$ac_confdir | |
830 | if test ! -r $srcdir/$ac_unique_file; then | |
831 | srcdir=.. | |
832 | fi | |
833 | else | |
834 | ac_srcdir_defaulted=no | |
835 | fi | |
836 | if test ! -r $srcdir/$ac_unique_file; then | |
837 | if test "$ac_srcdir_defaulted" = yes; then | |
838 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
839 | else | |
840 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
841 | fi | |
842 | fi | |
843 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
844 | ||
845 | # Prefer explicitly selected file to automatically selected ones. | |
846 | if test -z "$CONFIG_SITE"; then | |
847 | if test "x$prefix" != xNONE; then | |
848 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
849 | else | |
850 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
851 | fi | |
852 | fi | |
853 | for ac_site_file in $CONFIG_SITE; do | |
854 | if test -r "$ac_site_file"; then | |
855 | echo "loading site script $ac_site_file" | |
856 | . "$ac_site_file" | |
857 | fi | |
858 | done | |
859 | ||
860 | if test -r "$cache_file"; then | |
861 | echo "loading cache $cache_file" | |
862 | . $cache_file | |
863 | else | |
864 | echo "creating cache $cache_file" | |
865 | > $cache_file | |
866 | fi | |
867 | ||
868 | ac_ext=c | |
869 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
870 | ac_cpp='$CPP $CPPFLAGS' | |
871 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
872 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
873 | cross_compiling=$ac_cv_prog_cc_cross | |
874 | ||
875 | ac_exeext= | |
876 | ac_objext=o | |
877 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
878 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
879 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
880 | ac_n= ac_c=' | |
881 | ' ac_t=' ' | |
882 | else | |
883 | ac_n=-n ac_c= ac_t= | |
884 | fi | |
885 | else | |
886 | ac_n= ac_c='\c' ac_t= | |
887 | fi | |
888 | ||
889 | ||
890 | ||
891 | ac_aux_dir= | |
892 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
893 | if test -f $ac_dir/install-sh; then | |
894 | ac_aux_dir=$ac_dir | |
895 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
896 | break | |
897 | elif test -f $ac_dir/install.sh; then | |
898 | ac_aux_dir=$ac_dir | |
899 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
900 | break | |
901 | fi | |
902 | done | |
903 | if test -z "$ac_aux_dir"; then | |
904 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
905 | fi | |
906 | ac_config_guess=$ac_aux_dir/config.guess | |
907 | ac_config_sub=$ac_aux_dir/config.sub | |
908 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
909 | ||
910 | ||
911 | # Do some error checking and defaulting for the host and target type. | |
912 | # The inputs are: | |
913 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
914 | # | |
915 | # The rules are: | |
916 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
917 | # same time. | |
918 | # 2. Host defaults to nonopt. | |
919 | # 3. If nonopt is not specified, then host defaults to the current host, | |
920 | # as determined by config.guess. | |
921 | # 4. Target and build default to nonopt. | |
922 | # 5. If nonopt is not specified, then target and build default to host. | |
923 | ||
924 | # The aliases save the names the user supplied, while $host etc. | |
925 | # will get canonicalized. | |
926 | case $host---$target---$nonopt in | |
927 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
928 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
929 | esac | |
930 | ||
931 | ||
932 | # Make sure we can run config.sub. | |
933 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
934 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
935 | fi | |
936 | ||
937 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
938 | echo "configure:939: checking host system type" >&5 | |
939 | ||
940 | host_alias=$host | |
941 | case "$host_alias" in | |
942 | NONE) | |
943 | case $nonopt in | |
944 | NONE) | |
945 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
946 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
947 | fi ;; | |
948 | *) host_alias=$nonopt ;; | |
949 | esac ;; | |
950 | esac | |
951 | ||
952 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
953 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
954 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
955 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
956 | echo "$ac_t""$host" 1>&6 | |
957 | ||
958 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
959 | echo "configure:960: checking target system type" >&5 | |
960 | ||
961 | target_alias=$target | |
962 | case "$target_alias" in | |
963 | NONE) | |
964 | case $nonopt in | |
965 | NONE) target_alias=$host_alias ;; | |
966 | *) target_alias=$nonopt ;; | |
967 | esac ;; | |
968 | esac | |
969 | ||
970 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
971 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
972 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
973 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
974 | echo "$ac_t""$target" 1>&6 | |
975 | ||
976 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
977 | echo "configure:978: checking build system type" >&5 | |
978 | ||
979 | build_alias=$build | |
980 | case "$build_alias" in | |
981 | NONE) | |
982 | case $nonopt in | |
983 | NONE) build_alias=$host_alias ;; | |
984 | *) build_alias=$nonopt ;; | |
985 | esac ;; | |
986 | esac | |
987 | ||
988 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
989 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
990 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
991 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
992 | echo "$ac_t""$build" 1>&6 | |
993 | ||
994 | test "$host_alias" != "$target_alias" && | |
995 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
996 | NONENONEs,x,x, && | |
997 | program_prefix=${target_alias}- | |
998 | ||
999 | ||
1000 | ||
1001 | WX_MAJOR_VERSION_NUMBER=2 | |
1002 | WX_MINOR_VERSION_NUMBER=3 | |
1003 | WX_RELEASE_NUMBER=2 | |
1004 | ||
1005 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER | |
1006 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER | |
1007 | ||
1008 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER | |
1009 | ||
1010 | WX_CURRENT=1 | |
1011 | WX_REVISION=0 | |
1012 | WX_AGE=0 | |
1013 | ||
1014 | ||
1015 | ||
1016 | USE_UNIX=1 | |
1017 | USE_WIN32=0 | |
1018 | USE_BEOS=0 | |
1019 | USE_MAC=0 | |
1020 | ||
1021 | USE_LINUX= | |
1022 | USE_SGI= | |
1023 | USE_HPUX= | |
1024 | USE_SYSV= | |
1025 | USE_SVR4= | |
1026 | USE_AIX= | |
1027 | USE_SUN= | |
1028 | USE_SOLARIS= | |
1029 | USE_SUNOS= | |
1030 | USE_ALPHA= | |
1031 | USE_IA64= | |
1032 | USE_OSF= | |
1033 | USE_BSD= | |
1034 | USE_DARWIN= | |
1035 | USE_FREEBSD= | |
1036 | USE_OPENBSD= | |
1037 | USE_NETBSD= | |
1038 | USE_VMS= | |
1039 | USE_ULTRIX= | |
1040 | USE_DATA_GENERAL= | |
1041 | ||
1042 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 | |
1043 | ||
1044 | ALL_TOOLKITS="GTK MAC MGL MOTIF MSW PM WINE" | |
1045 | ||
1046 | DEFAULT_wxUSE_GTK=0 | |
1047 | DEFAULT_wxUSE_MAC=0 | |
1048 | DEFAULT_wxUSE_MGL=0 | |
1049 | DEFAULT_wxUSE_MOTIF=0 | |
1050 | DEFAULT_wxUSE_MSW=0 | |
1051 | DEFAULT_wxUSE_PM=0 | |
1052 | DEFAULT_wxUSE_WINE=0 | |
1053 | ||
1054 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1055 | DEFAULT_DEFAULT_wxUSE_MAC=0 | |
1056 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1057 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
1058 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
1059 | DEFAULT_DEFAULT_wxUSE_PM=0 | |
1060 | DEFAULT_DEFAULT_wxUSE_WINE=0 | |
1061 | ||
1062 | PROGRAM_EXT= | |
1063 | SO_SUFFIX=so | |
1064 | ||
1065 | case "${host}" in | |
1066 | *-hp-hpux* ) | |
1067 | USE_HPUX=1 | |
1068 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1069 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1070 | SO_SUFFIX=sl | |
1071 | cat >> confdefs.h <<\EOF | |
1072 | #define __HPUX__ 1 | |
1073 | EOF | |
1074 | ||
1075 | ;; | |
1076 | *-*-linux* ) | |
1077 | USE_LINUX=1 | |
1078 | cat >> confdefs.h <<\EOF | |
1079 | #define __LINUX__ 1 | |
1080 | EOF | |
1081 | ||
1082 | TMP=`uname -m` | |
1083 | if test "x$TMP" = "xalpha"; then | |
1084 | USE_ALPHA=1 | |
1085 | cat >> confdefs.h <<\EOF | |
1086 | #define __ALPHA__ 1 | |
1087 | EOF | |
1088 | ||
1089 | fi | |
1090 | if test "x$TMP" = "xia64"; then | |
1091 | USE_IA64=1 | |
1092 | cat >> confdefs.h <<\EOF | |
1093 | #define __IA64__ 1 | |
1094 | EOF | |
1095 | ||
1096 | fi | |
1097 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1098 | ;; | |
1099 | *-*-irix5* | *-*-irix6* ) | |
1100 | USE_SGI=1 | |
1101 | USE_SVR4=1 | |
1102 | cat >> confdefs.h <<\EOF | |
1103 | #define __SGI__ 1 | |
1104 | EOF | |
1105 | ||
1106 | cat >> confdefs.h <<\EOF | |
1107 | #define __SVR4__ 1 | |
1108 | EOF | |
1109 | ||
1110 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1111 | ;; | |
1112 | *-*-solaris2* ) | |
1113 | USE_SUN=1 | |
1114 | USE_SOLARIS=1 | |
1115 | USE_SVR4=1 | |
1116 | cat >> confdefs.h <<\EOF | |
1117 | #define __SUN__ 1 | |
1118 | EOF | |
1119 | ||
1120 | cat >> confdefs.h <<\EOF | |
1121 | #define __SOLARIS__ 1 | |
1122 | EOF | |
1123 | ||
1124 | cat >> confdefs.h <<\EOF | |
1125 | #define __SVR4__ 1 | |
1126 | EOF | |
1127 | ||
1128 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1129 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1130 | ;; | |
1131 | *-*-sunos4* ) | |
1132 | USE_SUN=1 | |
1133 | USE_SUNOS=1 | |
1134 | USE_BSD=1 | |
1135 | cat >> confdefs.h <<\EOF | |
1136 | #define __SUN__ 1 | |
1137 | EOF | |
1138 | ||
1139 | cat >> confdefs.h <<\EOF | |
1140 | #define __SUNOS__ 1 | |
1141 | EOF | |
1142 | ||
1143 | cat >> confdefs.h <<\EOF | |
1144 | #define __BSD__ 1 | |
1145 | EOF | |
1146 | ||
1147 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1148 | ;; | |
1149 | *-*-freebsd*) | |
1150 | USE_BSD=1 | |
1151 | USE_FREEBSD=1 | |
1152 | cat >> confdefs.h <<\EOF | |
1153 | #define __FREEBSD__ 1 | |
1154 | EOF | |
1155 | ||
1156 | cat >> confdefs.h <<\EOF | |
1157 | #define __BSD__ 1 | |
1158 | EOF | |
1159 | ||
1160 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1161 | ;; | |
1162 | *-*-openbsd*) | |
1163 | USE_BSD=1 | |
1164 | USE_OPENBSD=1 | |
1165 | cat >> confdefs.h <<\EOF | |
1166 | #define __FREEBSD__ 1 | |
1167 | EOF | |
1168 | ||
1169 | cat >> confdefs.h <<\EOF | |
1170 | #define __OPENBSD__ 1 | |
1171 | EOF | |
1172 | ||
1173 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1174 | ;; | |
1175 | *-*-netbsd*) | |
1176 | USE_BSD=1 | |
1177 | USE_NETBSD=1 | |
1178 | cat >> confdefs.h <<\EOF | |
1179 | #define __FREEBSD__ 1 | |
1180 | EOF | |
1181 | ||
1182 | cat >> confdefs.h <<\EOF | |
1183 | #define __NETBSD__ 1 | |
1184 | EOF | |
1185 | ||
1186 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1187 | ;; | |
1188 | *-*-osf* ) | |
1189 | USE_ALPHA=1 | |
1190 | USE_OSF=1 | |
1191 | cat >> confdefs.h <<\EOF | |
1192 | #define __ALPHA__ 1 | |
1193 | EOF | |
1194 | ||
1195 | cat >> confdefs.h <<\EOF | |
1196 | #define __OSF__ 1 | |
1197 | EOF | |
1198 | ||
1199 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1200 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1201 | ;; | |
1202 | *-*-dgux5* ) | |
1203 | USE_ALPHA=1 | |
1204 | USE_SVR4=1 | |
1205 | cat >> confdefs.h <<\EOF | |
1206 | #define __ALPHA__ 1 | |
1207 | EOF | |
1208 | ||
1209 | cat >> confdefs.h <<\EOF | |
1210 | #define __SVR4__ 1 | |
1211 | EOF | |
1212 | ||
1213 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1214 | ;; | |
1215 | *-*-sysv5* ) | |
1216 | USE_SYSV=1 | |
1217 | USE_SVR4=1 | |
1218 | cat >> confdefs.h <<\EOF | |
1219 | #define __SYSV__ 1 | |
1220 | EOF | |
1221 | ||
1222 | cat >> confdefs.h <<\EOF | |
1223 | #define __SVR4__ 1 | |
1224 | EOF | |
1225 | ||
1226 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1227 | ;; | |
1228 | *-*-aix* ) | |
1229 | USE_AIX=1 | |
1230 | USE_SYSV=1 | |
1231 | USE_SVR4=1 | |
1232 | cat >> confdefs.h <<\EOF | |
1233 | #define __AIX__ 1 | |
1234 | EOF | |
1235 | ||
1236 | cat >> confdefs.h <<\EOF | |
1237 | #define __SYSV__ 1 | |
1238 | EOF | |
1239 | ||
1240 | cat >> confdefs.h <<\EOF | |
1241 | #define __SVR4__ 1 | |
1242 | EOF | |
1243 | ||
1244 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1245 | ;; | |
1246 | ||
1247 | *-*-cygwin* | *-*-mingw32* ) | |
1248 | USE_UNIX=0 | |
1249 | USE_WIN32=1 | |
1250 | SO_SUFFIX=dll | |
1251 | cat >> confdefs.h <<\EOF | |
1252 | #define __WIN32__ 1 | |
1253 | EOF | |
1254 | ||
1255 | cat >> confdefs.h <<\EOF | |
1256 | #define __WIN95__ 1 | |
1257 | EOF | |
1258 | ||
1259 | cat >> confdefs.h <<\EOF | |
1260 | #define __WINDOWS__ 1 | |
1261 | EOF | |
1262 | ||
1263 | cat >> confdefs.h <<\EOF | |
1264 | #define __GNUWIN32__ 1 | |
1265 | EOF | |
1266 | ||
1267 | cat >> confdefs.h <<\EOF | |
1268 | #define STRICT 1 | |
1269 | EOF | |
1270 | ||
1271 | cat >> confdefs.h <<\EOF | |
1272 | #define WINVER 0x0400 | |
1273 | EOF | |
1274 | ||
1275 | PROGRAM_EXT=".exe" | |
1276 | RESCOMP=windres | |
1277 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
1278 | ;; | |
1279 | ||
1280 | *-pc-os2_emx | *-pc-os2-emx ) | |
1281 | cat >> confdefs.h <<\EOF | |
1282 | #define __EMX__ 1 | |
1283 | EOF | |
1284 | ||
1285 | PROGRAM_EXT=".exe" | |
1286 | DEFAULT_DEFAULT_wxUSE_PM=1 | |
1287 | ;; | |
1288 | ||
1289 | powerpc-*-darwin* ) | |
1290 | USE_BSD=1 | |
1291 | USE_DARWIN=1 | |
1292 | SO_SUFFIX=dylib | |
1293 | cat >> confdefs.h <<\EOF | |
1294 | #define __BSD__ 1 | |
1295 | EOF | |
1296 | ||
1297 | cat >> confdefs.h <<\EOF | |
1298 | #define __DARWIN__ 1 | |
1299 | EOF | |
1300 | ||
1301 | cat >> confdefs.h <<\EOF | |
1302 | #define __POWERPC__ 1 | |
1303 | EOF | |
1304 | ||
1305 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1306 | ;; | |
1307 | ||
1308 | *-*-beos* ) | |
1309 | USE_BEOS=1 | |
1310 | cat >> confdefs.h <<\EOF | |
1311 | #define __BEOS__ 1 | |
1312 | EOF | |
1313 | ||
1314 | ;; | |
1315 | ||
1316 | *) | |
1317 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } | |
1318 | esac | |
1319 | ||
1320 | if test "$USE_UNIX" = 1 ; then | |
1321 | wxUSE_UNIX=yes | |
1322 | cat >> confdefs.h <<\EOF | |
1323 | #define __UNIX__ 1 | |
1324 | EOF | |
1325 | ||
1326 | fi | |
1327 | ||
1328 | if test "$USE_LINUX" = 1; then | |
1329 | echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6 | |
1330 | echo "configure:1331: checking for glibc 2.1 or later" >&5 | |
1331 | if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then | |
1332 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1333 | else | |
1334 | cat > conftest.$ac_ext <<EOF | |
1335 | #line 1336 "configure" | |
1336 | #include "confdefs.h" | |
1337 | #include <features.h> | |
1338 | int main() { | |
1339 | ||
1340 | #if !__GLIBC_PREREQ(2, 1) | |
1341 | #error not glibc2.1 | |
1342 | #endif | |
1343 | ||
1344 | ; return 0; } | |
1345 | EOF | |
1346 | if { (eval echo configure:1347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
1347 | rm -rf conftest* | |
1348 | ||
1349 | wx_lib_glibc21=yes | |
1350 | ||
1351 | else | |
1352 | echo "configure: failed program was:" >&5 | |
1353 | cat conftest.$ac_ext >&5 | |
1354 | rm -rf conftest* | |
1355 | ||
1356 | wx_lib_glibc21=no | |
1357 | ||
1358 | ||
1359 | fi | |
1360 | rm -f conftest* | |
1361 | ||
1362 | fi | |
1363 | ||
1364 | echo "$ac_t""$wx_lib_glibc21" 1>&6 | |
1365 | if test "$wx_lib_glibc21" = "yes"; then | |
1366 | cat >> confdefs.h <<\EOF | |
1367 | #define wxHAVE_GLIBC2 1 | |
1368 | EOF | |
1369 | ||
1370 | fi | |
1371 | fi | |
1372 | ||
1373 | ||
1374 | ||
1375 | ||
1376 | wx_arg_cache_file="configarg.cache" | |
1377 | echo "loading argument cache $wx_arg_cache_file" | |
1378 | rm -f ${wx_arg_cache_file}.tmp | |
1379 | touch ${wx_arg_cache_file}.tmp | |
1380 | touch ${wx_arg_cache_file} | |
1381 | ||
1382 | ||
1383 | DEBUG_CONFIGURE=0 | |
1384 | if test $DEBUG_CONFIGURE = 1; then | |
1385 | DEFAULT_wxUSE_UNIVERSAL=no | |
1386 | ||
1387 | DEFAULT_wxUSE_THREADS=yes | |
1388 | ||
1389 | DEFAULT_wxUSE_SHARED=yes | |
1390 | DEFAULT_wxUSE_SONAME=no | |
1391 | DEFAULT_wxUSE_OPTIMISE=no | |
1392 | DEFAULT_wxUSE_PROFILE=no | |
1393 | DEFAULT_wxUSE_NO_DEPS=no | |
1394 | DEFAULT_wxUSE_NO_RTTI=yes | |
1395 | DEFAULT_wxUSE_NO_EXCEPTIONS=yes | |
1396 | DEFAULT_wxUSE_PERMISSIVE=no | |
1397 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1398 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1399 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1400 | DEFAULT_wxUSE_MEM_TRACING=no | |
1401 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1402 | DEFAULT_wxUSE_DMALLOC=no | |
1403 | DEFAULT_wxUSE_PRECOMP=yes | |
1404 | DEFAULT_wxUSE_APPLE_IEEE=no | |
1405 | ||
1406 | DEFAULT_wxUSE_LOG=yes | |
1407 | DEFAULT_wxUSE_LOGWINDOW=no | |
1408 | DEFAULT_wxUSE_LOGGUI=no | |
1409 | ||
1410 | DEFAULT_wxUSE_GUI=yes | |
1411 | DEFAULT_wxUSE_CONTROLS=no | |
1412 | ||
1413 | DEFAULT_wxUSE_REGEX=no | |
1414 | DEFAULT_wxUSE_ZLIB=no | |
1415 | DEFAULT_wxUSE_LIBPNG=no | |
1416 | DEFAULT_wxUSE_LIBJPEG=no | |
1417 | DEFAULT_wxUSE_LIBTIFF=no | |
1418 | DEFAULT_wxUSE_ODBC=no | |
1419 | DEFAULT_wxUSE_FREETYPE=no | |
1420 | DEFAULT_wxUSE_OPENGL=no | |
1421 | ||
1422 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no | |
1423 | DEFAULT_wxUSE_SNGLINST_CHECKER=no | |
1424 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
1425 | DEFAULT_wxUSE_CMDLINE_PARSER=no | |
1426 | DEFAULT_wxUSE_DATETIME=no | |
1427 | DEFAULT_wxUSE_TIMEDATE=no | |
1428 | DEFAULT_wxUSE_TIMER=no | |
1429 | DEFAULT_wxUSE_STOPWATCH=no | |
1430 | DEFAULT_wxUSE_FILE=no | |
1431 | DEFAULT_wxUSE_FFILE=no | |
1432 | DEFAULT_wxUSE_TEXTFILE=no | |
1433 | DEFAULT_wxUSE_WAVE=no | |
1434 | DEFAULT_wxUSE_INTL=no | |
1435 | DEFAULT_wxUSE_CONFIG=no | |
1436 | DEFAULT_wxUSE_FONTMAP=no | |
1437 | DEFAULT_wxUSE_STREAMS=no | |
1438 | DEFAULT_wxUSE_SOCKETS=no | |
1439 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
1440 | DEFAULT_wxUSE_SERIAL=no | |
1441 | DEFAULT_wxUSE_JOYSTICK=no | |
1442 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
1443 | DEFAULT_wxUSE_LONGLONG=no | |
1444 | DEFAULT_wxUSE_GEOMETRY=no | |
1445 | ||
1446 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1447 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1448 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1449 | ||
1450 | DEFAULT_wxUSE_X_RESOURCES=no | |
1451 | DEFAULT_wxUSE_CLIPBOARD=no | |
1452 | DEFAULT_wxUSE_TOOLTIPS=no | |
1453 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
1454 | DEFAULT_wxUSE_DRAGIMAGE=no | |
1455 | DEFAULT_wxUSE_SPLINES=no | |
1456 | ||
1457 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1458 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1459 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1460 | ||
1461 | DEFAULT_wxUSE_PROLOGIO=no | |
1462 | DEFAULT_wxUSE_RESOURCES=no | |
1463 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1464 | DEFAULT_wxUSE_IPC=no | |
1465 | DEFAULT_wxUSE_HELP=no | |
1466 | DEFAULT_wxUSE_MS_HTML_HELP=no | |
1467 | DEFAULT_wxUSE_WXHTML_HELP=no | |
1468 | DEFAULT_wxUSE_TREELAYOUT=no | |
1469 | DEFAULT_wxUSE_METAFILE=no | |
1470 | DEFAULT_wxUSE_MIMETYPE=no | |
1471 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes | |
1472 | ||
1473 | DEFAULT_wxUSE_COMMONDLGS=no | |
1474 | DEFAULT_wxUSE_CHOICEDLG=no | |
1475 | DEFAULT_wxUSE_COLOURDLG=no | |
1476 | DEFAULT_wxUSE_DIRDLG=no | |
1477 | DEFAULT_wxUSE_FILEDLG=no | |
1478 | DEFAULT_wxUSE_FINDREPLDLG=no | |
1479 | DEFAULT_wxUSE_FONTDLG=no | |
1480 | DEFAULT_wxUSE_MSGDLG=no | |
1481 | DEFAULT_wxUSE_NUMBERDLG=no | |
1482 | DEFAULT_wxUSE_TEXTDLG=no | |
1483 | DEFAULT_wxUSE_SPLASH=no | |
1484 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
1485 | DEFAULT_wxUSE_PROGRESSDLG=no | |
1486 | DEFAULT_wxUSE_WIZARDDLG=no | |
1487 | ||
1488 | DEFAULT_wxUSE_MENUS=no | |
1489 | DEFAULT_wxUSE_MINIFRAME=no | |
1490 | DEFAULT_wxUSE_HTML=no | |
1491 | DEFAULT_wxUSE_FILESYSTEM=no | |
1492 | DEFAULT_wxUSE_FS_INET=no | |
1493 | DEFAULT_wxUSE_FS_ZIP=no | |
1494 | DEFAULT_wxUSE_BUSYINFO=no | |
1495 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1496 | DEFAULT_wxUSE_VALIDATORS=no | |
1497 | ||
1498 | DEFAULT_wxUSE_ACCEL=no | |
1499 | DEFAULT_wxUSE_BUTTON=no | |
1500 | DEFAULT_wxUSE_BMPBUTTON=no | |
1501 | DEFAULT_wxUSE_CALCTRL=no | |
1502 | DEFAULT_wxUSE_CARET=no | |
1503 | DEFAULT_wxUSE_CHECKBOX=no | |
1504 | DEFAULT_wxUSE_CHECKLST=no | |
1505 | DEFAULT_wxUSE_CHOICE=no | |
1506 | DEFAULT_wxUSE_COMBOBOX=no | |
1507 | DEFAULT_wxUSE_GAUGE=no | |
1508 | DEFAULT_wxUSE_GRID=no | |
1509 | DEFAULT_wxUSE_NEW_GRID=no | |
1510 | DEFAULT_wxUSE_IMAGLIST=no | |
1511 | DEFAULT_wxUSE_LISTBOX=no | |
1512 | DEFAULT_wxUSE_LISTCTRL=no | |
1513 | DEFAULT_wxUSE_NOTEBOOK=no | |
1514 | DEFAULT_wxUSE_PROPSHEET=no | |
1515 | DEFAULT_wxUSE_RADIOBOX=no | |
1516 | DEFAULT_wxUSE_RADIOBTN=no | |
1517 | DEFAULT_wxUSE_SASH=no | |
1518 | DEFAULT_wxUSE_SCROLLBAR=no | |
1519 | DEFAULT_wxUSE_SLIDER=no | |
1520 | DEFAULT_wxUSE_SPINBTN=no | |
1521 | DEFAULT_wxUSE_SPINCTRL=no | |
1522 | DEFAULT_wxUSE_SPLITTER=no | |
1523 | DEFAULT_wxUSE_STATBMP=no | |
1524 | DEFAULT_wxUSE_STATBOX=no | |
1525 | DEFAULT_wxUSE_STATLINE=no | |
1526 | DEFAULT_wxUSE_STATTEXT=no | |
1527 | DEFAULT_wxUSE_STATUSBAR=yes | |
1528 | DEFAULT_wxUSE_TABDIALOG=no | |
1529 | DEFAULT_wxUSE_TEXTCTRL=no | |
1530 | DEFAULT_wxUSE_TOGGLEBTN=no | |
1531 | DEFAULT_wxUSE_TOOLBAR=no | |
1532 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
1533 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
1534 | DEFAULT_wxUSE_TREECTRL=no | |
1535 | DEFAULT_wxUSE_POPUPWIN=no | |
1536 | ||
1537 | DEFAULT_wxUSE_UNICODE=no | |
1538 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1539 | ||
1540 | DEFAULT_wxUSE_PALETTE=no | |
1541 | DEFAULT_wxUSE_IMAGE=no | |
1542 | DEFAULT_wxUSE_GIF=no | |
1543 | DEFAULT_wxUSE_PCX=no | |
1544 | DEFAULT_wxUSE_PNM=no | |
1545 | DEFAULT_wxUSE_XPM=no | |
1546 | else | |
1547 | DEFAULT_wxUSE_UNIVERSAL=no | |
1548 | ||
1549 | DEFAULT_wxUSE_THREADS=yes | |
1550 | ||
1551 | DEFAULT_wxUSE_SHARED=yes | |
1552 | DEFAULT_wxUSE_SONAME=no | |
1553 | DEFAULT_wxUSE_OPTIMISE=yes | |
1554 | DEFAULT_wxUSE_PROFILE=no | |
1555 | DEFAULT_wxUSE_NO_DEPS=no | |
1556 | DEFAULT_wxUSE_NO_RTTI=yes | |
1557 | DEFAULT_wxUSE_NO_EXCEPTIONS=yes | |
1558 | DEFAULT_wxUSE_PERMISSIVE=no | |
1559 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1560 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1561 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1562 | DEFAULT_wxUSE_MEM_TRACING=no | |
1563 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1564 | DEFAULT_wxUSE_DMALLOC=no | |
1565 | DEFAULT_wxUSE_PRECOMP=yes | |
1566 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
1567 | ||
1568 | DEFAULT_wxUSE_LOG=yes | |
1569 | DEFAULT_wxUSE_LOGWINDOW=yes | |
1570 | DEFAULT_wxUSE_LOGGUI=yes | |
1571 | ||
1572 | DEFAULT_wxUSE_GUI=yes | |
1573 | ||
1574 | DEFAULT_wxUSE_REGEX=yes | |
1575 | DEFAULT_wxUSE_ZLIB=yes | |
1576 | DEFAULT_wxUSE_LIBPNG=yes | |
1577 | DEFAULT_wxUSE_LIBJPEG=yes | |
1578 | DEFAULT_wxUSE_LIBTIFF=yes | |
1579 | DEFAULT_wxUSE_ODBC=no | |
1580 | DEFAULT_wxUSE_FREETYPE=no | |
1581 | DEFAULT_wxUSE_OPENGL=no | |
1582 | ||
1583 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes | |
1584 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes | |
1585 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
1586 | DEFAULT_wxUSE_CMDLINE_PARSER=yes | |
1587 | DEFAULT_wxUSE_DATETIME=yes | |
1588 | DEFAULT_wxUSE_TIMEDATE=no | |
1589 | DEFAULT_wxUSE_TIMER=yes | |
1590 | DEFAULT_wxUSE_STOPWATCH=yes | |
1591 | DEFAULT_wxUSE_FILE=yes | |
1592 | DEFAULT_wxUSE_FFILE=yes | |
1593 | DEFAULT_wxUSE_TEXTFILE=yes | |
1594 | DEFAULT_wxUSE_WAVE=no | |
1595 | DEFAULT_wxUSE_INTL=yes | |
1596 | DEFAULT_wxUSE_CONFIG=yes | |
1597 | DEFAULT_wxUSE_FONTMAP=yes | |
1598 | DEFAULT_wxUSE_STREAMS=yes | |
1599 | DEFAULT_wxUSE_SOCKETS=yes | |
1600 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
1601 | DEFAULT_wxUSE_SERIAL=yes | |
1602 | DEFAULT_wxUSE_JOYSTICK=yes | |
1603 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
1604 | DEFAULT_wxUSE_LONGLONG=yes | |
1605 | DEFAULT_wxUSE_GEOMETRY=yes | |
1606 | ||
1607 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1608 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1609 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1610 | ||
1611 | DEFAULT_wxUSE_X_RESOURCES=no | |
1612 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1613 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1614 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
1615 | DEFAULT_wxUSE_DRAGIMAGE=yes | |
1616 | DEFAULT_wxUSE_SPLINES=yes | |
1617 | ||
1618 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1619 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1620 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1621 | ||
1622 | DEFAULT_wxUSE_PROLOGIO=yes | |
1623 | DEFAULT_wxUSE_RESOURCES=yes | |
1624 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1625 | DEFAULT_wxUSE_IPC=yes | |
1626 | DEFAULT_wxUSE_HELP=yes | |
1627 | DEFAULT_wxUSE_MS_HTML_HELP=yes | |
1628 | DEFAULT_wxUSE_WXHTML_HELP=yes | |
1629 | DEFAULT_wxUSE_TREELAYOUT=yes | |
1630 | DEFAULT_wxUSE_METAFILE=yes | |
1631 | DEFAULT_wxUSE_MIMETYPE=yes | |
1632 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes | |
1633 | ||
1634 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1635 | DEFAULT_wxUSE_CHOICEDLG=yes | |
1636 | DEFAULT_wxUSE_COLOURDLG=yes | |
1637 | DEFAULT_wxUSE_DIRDLG=yes | |
1638 | DEFAULT_wxUSE_FILEDLG=yes | |
1639 | DEFAULT_wxUSE_FINDREPLDLG=yes | |
1640 | DEFAULT_wxUSE_FONTDLG=yes | |
1641 | DEFAULT_wxUSE_MSGDLG=yes | |
1642 | DEFAULT_wxUSE_NUMBERDLG=yes | |
1643 | DEFAULT_wxUSE_TEXTDLG=yes | |
1644 | DEFAULT_wxUSE_SPLASH=yes | |
1645 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
1646 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
1647 | DEFAULT_wxUSE_WIZARDDLG=yes | |
1648 | ||
1649 | DEFAULT_wxUSE_MENUS=yes | |
1650 | DEFAULT_wxUSE_MINIFRAME=yes | |
1651 | DEFAULT_wxUSE_HTML=yes | |
1652 | DEFAULT_wxUSE_FILESYSTEM=yes | |
1653 | DEFAULT_wxUSE_FS_INET=yes | |
1654 | DEFAULT_wxUSE_FS_ZIP=yes | |
1655 | DEFAULT_wxUSE_BUSYINFO=yes | |
1656 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1657 | DEFAULT_wxUSE_VALIDATORS=yes | |
1658 | ||
1659 | DEFAULT_wxUSE_ACCEL=yes | |
1660 | DEFAULT_wxUSE_BUTTON=yes | |
1661 | DEFAULT_wxUSE_BMPBUTTON=yes | |
1662 | DEFAULT_wxUSE_CALCTRL=yes | |
1663 | DEFAULT_wxUSE_CARET=yes | |
1664 | DEFAULT_wxUSE_CHECKBOX=yes | |
1665 | DEFAULT_wxUSE_CHECKLST=yes | |
1666 | DEFAULT_wxUSE_CHOICE=yes | |
1667 | DEFAULT_wxUSE_COMBOBOX=yes | |
1668 | DEFAULT_wxUSE_GAUGE=yes | |
1669 | DEFAULT_wxUSE_GRID=yes | |
1670 | DEFAULT_wxUSE_NEW_GRID=yes | |
1671 | DEFAULT_wxUSE_IMAGLIST=yes | |
1672 | DEFAULT_wxUSE_LISTBOX=yes | |
1673 | DEFAULT_wxUSE_LISTCTRL=yes | |
1674 | DEFAULT_wxUSE_NOTEBOOK=yes | |
1675 | DEFAULT_wxUSE_PROPSHEET=yes | |
1676 | DEFAULT_wxUSE_RADIOBOX=yes | |
1677 | DEFAULT_wxUSE_RADIOBTN=yes | |
1678 | DEFAULT_wxUSE_SASH=yes | |
1679 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1680 | DEFAULT_wxUSE_SLIDER=yes | |
1681 | DEFAULT_wxUSE_SPINBTN=yes | |
1682 | DEFAULT_wxUSE_SPINCTRL=yes | |
1683 | DEFAULT_wxUSE_SPLITTER=yes | |
1684 | DEFAULT_wxUSE_STATBMP=yes | |
1685 | DEFAULT_wxUSE_STATBOX=yes | |
1686 | DEFAULT_wxUSE_STATLINE=yes | |
1687 | DEFAULT_wxUSE_STATTEXT=yes | |
1688 | DEFAULT_wxUSE_STATUSBAR=yes | |
1689 | DEFAULT_wxUSE_TABDIALOG=no | |
1690 | DEFAULT_wxUSE_TEXTCTRL=yes | |
1691 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
1692 | DEFAULT_wxUSE_TOOLBAR=yes | |
1693 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
1694 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
1695 | DEFAULT_wxUSE_TREECTRL=yes | |
1696 | DEFAULT_wxUSE_POPUPWIN=yes | |
1697 | ||
1698 | DEFAULT_wxUSE_UNICODE=no | |
1699 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1700 | ||
1701 | DEFAULT_wxUSE_PALETTE=yes | |
1702 | DEFAULT_wxUSE_IMAGE=yes | |
1703 | DEFAULT_wxUSE_GIF=yes | |
1704 | DEFAULT_wxUSE_PCX=yes | |
1705 | DEFAULT_wxUSE_PNM=yes | |
1706 | DEFAULT_wxUSE_XPM=yes | |
1707 | fi | |
1708 | ||
1709 | ||
1710 | ||
1711 | for toolkit in `echo $ALL_TOOLKITS`; do | |
1712 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1713 | if test "x$LINE" != x ; then | |
1714 | has_toolkit_in_cache=1 | |
1715 | eval "DEFAULT_$LINE" | |
1716 | eval "CACHE_$toolkit=1" | |
1717 | fi | |
1718 | done | |
1719 | ||
1720 | ||
1721 | ||
1722 | echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6 | |
1723 | echo "configure:1724: checking for --enable-gui" >&5 | |
1724 | no_cache=0 | |
1725 | # Check whether --enable-gui or --disable-gui was given. | |
1726 | if test "${enable_gui+set}" = set; then | |
1727 | enableval="$enable_gui" | |
1728 | ||
1729 | if test "$enableval" = yes; then | |
1730 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1731 | else | |
1732 | ac_cv_use_gui='wxUSE_GUI=no' | |
1733 | fi | |
1734 | ||
1735 | else | |
1736 | ||
1737 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
1738 | if test "x$LINE" != x ; then | |
1739 | eval "DEFAULT_$LINE" | |
1740 | else | |
1741 | no_cache=1 | |
1742 | fi | |
1743 | ||
1744 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
1745 | ||
1746 | fi | |
1747 | ||
1748 | ||
1749 | eval "$ac_cv_use_gui" | |
1750 | if test "$no_cache" != 1; then | |
1751 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1752 | fi | |
1753 | ||
1754 | if test "$wxUSE_GUI" = yes; then | |
1755 | echo "$ac_t""yes" 1>&6 | |
1756 | else | |
1757 | echo "$ac_t""no" 1>&6 | |
1758 | fi | |
1759 | ||
1760 | ||
1761 | if test "$wxUSE_GUI" = "yes"; then | |
1762 | ||
1763 | ||
1764 | echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6 | |
1765 | echo "configure:1766: checking for --enable-universal" >&5 | |
1766 | no_cache=0 | |
1767 | # Check whether --enable-universal or --disable-universal was given. | |
1768 | if test "${enable_universal+set}" = set; then | |
1769 | enableval="$enable_universal" | |
1770 | ||
1771 | if test "$enableval" = yes; then | |
1772 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1773 | else | |
1774 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1775 | fi | |
1776 | ||
1777 | else | |
1778 | ||
1779 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
1780 | if test "x$LINE" != x ; then | |
1781 | eval "DEFAULT_$LINE" | |
1782 | else | |
1783 | no_cache=1 | |
1784 | fi | |
1785 | ||
1786 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1787 | ||
1788 | fi | |
1789 | ||
1790 | ||
1791 | eval "$ac_cv_use_universal" | |
1792 | if test "$no_cache" != 1; then | |
1793 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1794 | fi | |
1795 | ||
1796 | if test "$wxUSE_UNIVERSAL" = yes; then | |
1797 | echo "$ac_t""yes" 1>&6 | |
1798 | else | |
1799 | echo "$ac_t""no" 1>&6 | |
1800 | fi | |
1801 | ||
1802 | # Check whether --with-gtk or --without-gtk was given. | |
1803 | if test "${with_gtk+set}" = set; then | |
1804 | withval="$with_gtk" | |
1805 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
1806 | fi | |
1807 | ||
1808 | # Check whether --with-motif or --without-motif was given. | |
1809 | if test "${with_motif+set}" = set; then | |
1810 | withval="$with_motif" | |
1811 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
1812 | fi | |
1813 | ||
1814 | # Check whether --with-mac or --without-mac was given. | |
1815 | if test "${with_mac+set}" = set; then | |
1816 | withval="$with_mac" | |
1817 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
1818 | fi | |
1819 | ||
1820 | # Check whether --with-wine or --without-wine was given. | |
1821 | if test "${with_wine+set}" = set; then | |
1822 | withval="$with_wine" | |
1823 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
1824 | fi | |
1825 | ||
1826 | # Check whether --with-msw or --without-msw was given. | |
1827 | if test "${with_msw+set}" = set; then | |
1828 | withval="$with_msw" | |
1829 | wxUSE_MSW="$withval" CACHE_MSW TOOLKIT_GIVEN=1 | |
1830 | fi | |
1831 | ||
1832 | # Check whether --with-pm or --without-pm was given. | |
1833 | if test "${with_pm+set}" = set; then | |
1834 | withval="$with_pm" | |
1835 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
1836 | fi | |
1837 | ||
1838 | # Check whether --with-mgl or --without-mgl was given. | |
1839 | if test "${with_mgl+set}" = set; then | |
1840 | withval="$with_mgl" | |
1841 | wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
1842 | fi | |
1843 | ||
1844 | ||
1845 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
1846 | if test "${enable_gtk2+set}" = set; then | |
1847 | enableval="$enable_gtk2" | |
1848 | wxUSE_GTK2=1 | |
1849 | else | |
1850 | wxUSE_GTK2=0 | |
1851 | fi | |
1852 | ||
1853 | ||
1854 | ||
1855 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 | |
1856 | echo "configure:1857: checking for --with-libpng" >&5 | |
1857 | no_cache=0 | |
1858 | # Check whether --with-libpng or --without-libpng was given. | |
1859 | if test "${with_libpng+set}" = set; then | |
1860 | withval="$with_libpng" | |
1861 | ||
1862 | if test "$withval" = yes; then | |
1863 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
1864 | elif test "$withval" = no; then | |
1865 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
1866 | elif test "$withval" = sys; then | |
1867 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
1868 | elif test "$withval" = builtin; then | |
1869 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
1870 | else | |
1871 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } | |
1872 | fi | |
1873 | ||
1874 | else | |
1875 | ||
1876 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
1877 | if test "x$LINE" != x ; then | |
1878 | eval "DEFAULT_$LINE" | |
1879 | else | |
1880 | no_cache=1 | |
1881 | fi | |
1882 | ||
1883 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
1884 | ||
1885 | fi | |
1886 | ||
1887 | ||
1888 | eval "$ac_cv_use_libpng" | |
1889 | if test "$no_cache" != 1; then | |
1890 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
1891 | fi | |
1892 | ||
1893 | if test "$wxUSE_LIBPNG" = yes; then | |
1894 | echo "$ac_t""yes" 1>&6 | |
1895 | elif test "$wxUSE_LIBPNG" = no; then | |
1896 | echo "$ac_t""no" 1>&6 | |
1897 | elif test "$wxUSE_LIBPNG" = sys; then | |
1898 | echo "$ac_t""system version" 1>&6 | |
1899 | elif test "$wxUSE_LIBPNG" = builtin; then | |
1900 | echo "$ac_t""builtin version" 1>&6 | |
1901 | else | |
1902 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } | |
1903 | fi | |
1904 | ||
1905 | ||
1906 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 | |
1907 | echo "configure:1908: checking for --with-libjpeg" >&5 | |
1908 | no_cache=0 | |
1909 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
1910 | if test "${with_libjpeg+set}" = set; then | |
1911 | withval="$with_libjpeg" | |
1912 | ||
1913 | if test "$withval" = yes; then | |
1914 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
1915 | elif test "$withval" = no; then | |
1916 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
1917 | elif test "$withval" = sys; then | |
1918 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
1919 | elif test "$withval" = builtin; then | |
1920 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
1921 | else | |
1922 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } | |
1923 | fi | |
1924 | ||
1925 | else | |
1926 | ||
1927 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
1928 | if test "x$LINE" != x ; then | |
1929 | eval "DEFAULT_$LINE" | |
1930 | else | |
1931 | no_cache=1 | |
1932 | fi | |
1933 | ||
1934 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
1935 | ||
1936 | fi | |
1937 | ||
1938 | ||
1939 | eval "$ac_cv_use_libjpeg" | |
1940 | if test "$no_cache" != 1; then | |
1941 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
1942 | fi | |
1943 | ||
1944 | if test "$wxUSE_LIBJPEG" = yes; then | |
1945 | echo "$ac_t""yes" 1>&6 | |
1946 | elif test "$wxUSE_LIBJPEG" = no; then | |
1947 | echo "$ac_t""no" 1>&6 | |
1948 | elif test "$wxUSE_LIBJPEG" = sys; then | |
1949 | echo "$ac_t""system version" 1>&6 | |
1950 | elif test "$wxUSE_LIBJPEG" = builtin; then | |
1951 | echo "$ac_t""builtin version" 1>&6 | |
1952 | else | |
1953 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } | |
1954 | fi | |
1955 | ||
1956 | ||
1957 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 | |
1958 | echo "configure:1959: checking for --with-libtiff" >&5 | |
1959 | no_cache=0 | |
1960 | # Check whether --with-libtiff or --without-libtiff was given. | |
1961 | if test "${with_libtiff+set}" = set; then | |
1962 | withval="$with_libtiff" | |
1963 | ||
1964 | if test "$withval" = yes; then | |
1965 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' | |
1966 | elif test "$withval" = no; then | |
1967 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' | |
1968 | elif test "$withval" = sys; then | |
1969 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
1970 | elif test "$withval" = builtin; then | |
1971 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
1972 | else | |
1973 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } | |
1974 | fi | |
1975 | ||
1976 | else | |
1977 | ||
1978 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` | |
1979 | if test "x$LINE" != x ; then | |
1980 | eval "DEFAULT_$LINE" | |
1981 | else | |
1982 | no_cache=1 | |
1983 | fi | |
1984 | ||
1985 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF | |
1986 | ||
1987 | fi | |
1988 | ||
1989 | ||
1990 | eval "$ac_cv_use_libtiff" | |
1991 | if test "$no_cache" != 1; then | |
1992 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp | |
1993 | fi | |
1994 | ||
1995 | if test "$wxUSE_LIBTIFF" = yes; then | |
1996 | echo "$ac_t""yes" 1>&6 | |
1997 | elif test "$wxUSE_LIBTIFF" = no; then | |
1998 | echo "$ac_t""no" 1>&6 | |
1999 | elif test "$wxUSE_LIBTIFF" = sys; then | |
2000 | echo "$ac_t""system version" 1>&6 | |
2001 | elif test "$wxUSE_LIBTIFF" = builtin; then | |
2002 | echo "$ac_t""builtin version" 1>&6 | |
2003 | else | |
2004 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } | |
2005 | fi | |
2006 | ||
2007 | ||
2008 | echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6 | |
2009 | echo "configure:2010: checking for --with-freetype" >&5 | |
2010 | no_cache=0 | |
2011 | # Check whether --with-freetype or --without-freetype was given. | |
2012 | if test "${with_freetype+set}" = set; then | |
2013 | withval="$with_freetype" | |
2014 | ||
2015 | if test "$withval" = yes; then | |
2016 | ac_cv_use_freetype='wxUSE_FREETYPE=yes' | |
2017 | elif test "$withval" = no; then | |
2018 | ac_cv_use_freetype='wxUSE_FREETYPE=no' | |
2019 | elif test "$withval" = sys; then | |
2020 | ac_cv_use_freetype='wxUSE_FREETYPE=sys' | |
2021 | elif test "$withval" = builtin; then | |
2022 | ac_cv_use_freetype='wxUSE_FREETYPE=builtin' | |
2023 | else | |
2024 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; } | |
2025 | fi | |
2026 | ||
2027 | else | |
2028 | ||
2029 | LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}` | |
2030 | if test "x$LINE" != x ; then | |
2031 | eval "DEFAULT_$LINE" | |
2032 | else | |
2033 | no_cache=1 | |
2034 | fi | |
2035 | ||
2036 | ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE | |
2037 | ||
2038 | fi | |
2039 | ||
2040 | ||
2041 | eval "$ac_cv_use_freetype" | |
2042 | if test "$no_cache" != 1; then | |
2043 | echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp | |
2044 | fi | |
2045 | ||
2046 | if test "$wxUSE_FREETYPE" = yes; then | |
2047 | echo "$ac_t""yes" 1>&6 | |
2048 | elif test "$wxUSE_FREETYPE" = no; then | |
2049 | echo "$ac_t""no" 1>&6 | |
2050 | elif test "$wxUSE_FREETYPE" = sys; then | |
2051 | echo "$ac_t""system version" 1>&6 | |
2052 | elif test "$wxUSE_FREETYPE" = builtin; then | |
2053 | echo "$ac_t""builtin version" 1>&6 | |
2054 | else | |
2055 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; } | |
2056 | fi | |
2057 | ||
2058 | ||
2059 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 | |
2060 | echo "configure:2061: checking for --with-opengl" >&5 | |
2061 | no_cache=0 | |
2062 | # Check whether --with-opengl or --without-opengl was given. | |
2063 | if test "${with_opengl+set}" = set; then | |
2064 | withval="$with_opengl" | |
2065 | ||
2066 | if test "$withval" = yes; then | |
2067 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
2068 | else | |
2069 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
2070 | fi | |
2071 | ||
2072 | else | |
2073 | ||
2074 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
2075 | if test "x$LINE" != x ; then | |
2076 | eval "DEFAULT_$LINE" | |
2077 | else | |
2078 | no_cache=1 | |
2079 | fi | |
2080 | ||
2081 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
2082 | ||
2083 | fi | |
2084 | ||
2085 | ||
2086 | eval "$ac_cv_use_opengl" | |
2087 | if test "$no_cache" != 1; then | |
2088 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
2089 | fi | |
2090 | ||
2091 | if test "$wxUSE_OPENGL" = yes; then | |
2092 | echo "$ac_t""yes" 1>&6 | |
2093 | else | |
2094 | echo "$ac_t""no" 1>&6 | |
2095 | fi | |
2096 | ||
2097 | ||
2098 | fi | |
2099 | ||
2100 | ||
2101 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 | |
2102 | echo "configure:2103: checking for --with-dmalloc" >&5 | |
2103 | no_cache=0 | |
2104 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
2105 | if test "${with_dmalloc+set}" = set; then | |
2106 | withval="$with_dmalloc" | |
2107 | ||
2108 | if test "$withval" = yes; then | |
2109 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
2110 | else | |
2111 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
2112 | fi | |
2113 | ||
2114 | else | |
2115 | ||
2116 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
2117 | if test "x$LINE" != x ; then | |
2118 | eval "DEFAULT_$LINE" | |
2119 | else | |
2120 | no_cache=1 | |
2121 | fi | |
2122 | ||
2123 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
2124 | ||
2125 | fi | |
2126 | ||
2127 | ||
2128 | eval "$ac_cv_use_dmalloc" | |
2129 | if test "$no_cache" != 1; then | |
2130 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
2131 | fi | |
2132 | ||
2133 | if test "$wxUSE_DMALLOC" = yes; then | |
2134 | echo "$ac_t""yes" 1>&6 | |
2135 | else | |
2136 | echo "$ac_t""no" 1>&6 | |
2137 | fi | |
2138 | ||
2139 | ||
2140 | echo $ac_n "checking for --with-regex""... $ac_c" 1>&6 | |
2141 | echo "configure:2142: checking for --with-regex" >&5 | |
2142 | no_cache=0 | |
2143 | # Check whether --with-regex or --without-regex was given. | |
2144 | if test "${with_regex+set}" = set; then | |
2145 | withval="$with_regex" | |
2146 | ||
2147 | if test "$withval" = yes; then | |
2148 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2149 | elif test "$withval" = no; then | |
2150 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2151 | elif test "$withval" = sys; then | |
2152 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
2153 | elif test "$withval" = builtin; then | |
2154 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
2155 | else | |
2156 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } | |
2157 | fi | |
2158 | ||
2159 | else | |
2160 | ||
2161 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
2162 | if test "x$LINE" != x ; then | |
2163 | eval "DEFAULT_$LINE" | |
2164 | else | |
2165 | no_cache=1 | |
2166 | fi | |
2167 | ||
2168 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
2169 | ||
2170 | fi | |
2171 | ||
2172 | ||
2173 | eval "$ac_cv_use_regex" | |
2174 | if test "$no_cache" != 1; then | |
2175 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2176 | fi | |
2177 | ||
2178 | if test "$wxUSE_REGEX" = yes; then | |
2179 | echo "$ac_t""yes" 1>&6 | |
2180 | elif test "$wxUSE_REGEX" = no; then | |
2181 | echo "$ac_t""no" 1>&6 | |
2182 | elif test "$wxUSE_REGEX" = sys; then | |
2183 | echo "$ac_t""system version" 1>&6 | |
2184 | elif test "$wxUSE_REGEX" = builtin; then | |
2185 | echo "$ac_t""builtin version" 1>&6 | |
2186 | else | |
2187 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } | |
2188 | fi | |
2189 | ||
2190 | ||
2191 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 | |
2192 | echo "configure:2193: checking for --with-zlib" >&5 | |
2193 | no_cache=0 | |
2194 | # Check whether --with-zlib or --without-zlib was given. | |
2195 | if test "${with_zlib+set}" = set; then | |
2196 | withval="$with_zlib" | |
2197 | ||
2198 | if test "$withval" = yes; then | |
2199 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
2200 | elif test "$withval" = no; then | |
2201 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
2202 | elif test "$withval" = sys; then | |
2203 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
2204 | elif test "$withval" = builtin; then | |
2205 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
2206 | else | |
2207 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } | |
2208 | fi | |
2209 | ||
2210 | else | |
2211 | ||
2212 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
2213 | if test "x$LINE" != x ; then | |
2214 | eval "DEFAULT_$LINE" | |
2215 | else | |
2216 | no_cache=1 | |
2217 | fi | |
2218 | ||
2219 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
2220 | ||
2221 | fi | |
2222 | ||
2223 | ||
2224 | eval "$ac_cv_use_zlib" | |
2225 | if test "$no_cache" != 1; then | |
2226 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
2227 | fi | |
2228 | ||
2229 | if test "$wxUSE_ZLIB" = yes; then | |
2230 | echo "$ac_t""yes" 1>&6 | |
2231 | elif test "$wxUSE_ZLIB" = no; then | |
2232 | echo "$ac_t""no" 1>&6 | |
2233 | elif test "$wxUSE_ZLIB" = sys; then | |
2234 | echo "$ac_t""system version" 1>&6 | |
2235 | elif test "$wxUSE_ZLIB" = builtin; then | |
2236 | echo "$ac_t""builtin version" 1>&6 | |
2237 | else | |
2238 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } | |
2239 | fi | |
2240 | ||
2241 | ||
2242 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 | |
2243 | echo "configure:2244: checking for --with-odbc" >&5 | |
2244 | no_cache=0 | |
2245 | # Check whether --with-odbc or --without-odbc was given. | |
2246 | if test "${with_odbc+set}" = set; then | |
2247 | withval="$with_odbc" | |
2248 | ||
2249 | if test "$withval" = yes; then | |
2250 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2251 | else | |
2252 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2253 | fi | |
2254 | ||
2255 | else | |
2256 | ||
2257 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
2258 | if test "x$LINE" != x ; then | |
2259 | eval "DEFAULT_$LINE" | |
2260 | else | |
2261 | no_cache=1 | |
2262 | fi | |
2263 | ||
2264 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
2265 | ||
2266 | fi | |
2267 | ||
2268 | ||
2269 | eval "$ac_cv_use_odbc" | |
2270 | if test "$no_cache" != 1; then | |
2271 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2272 | fi | |
2273 | ||
2274 | if test "$wxUSE_ODBC" = yes; then | |
2275 | echo "$ac_t""yes" 1>&6 | |
2276 | else | |
2277 | echo "$ac_t""no" 1>&6 | |
2278 | fi | |
2279 | ||
2280 | ||
2281 | ||
2282 | ||
2283 | echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6 | |
2284 | echo "configure:2285: checking for --enable-shared" >&5 | |
2285 | no_cache=0 | |
2286 | # Check whether --enable-shared or --disable-shared was given. | |
2287 | if test "${enable_shared+set}" = set; then | |
2288 | enableval="$enable_shared" | |
2289 | ||
2290 | if test "$enableval" = yes; then | |
2291 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2292 | else | |
2293 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2294 | fi | |
2295 | ||
2296 | else | |
2297 | ||
2298 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
2299 | if test "x$LINE" != x ; then | |
2300 | eval "DEFAULT_$LINE" | |
2301 | else | |
2302 | no_cache=1 | |
2303 | fi | |
2304 | ||
2305 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
2306 | ||
2307 | fi | |
2308 | ||
2309 | ||
2310 | eval "$ac_cv_use_shared" | |
2311 | if test "$no_cache" != 1; then | |
2312 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2313 | fi | |
2314 | ||
2315 | if test "$wxUSE_SHARED" = yes; then | |
2316 | echo "$ac_t""yes" 1>&6 | |
2317 | else | |
2318 | echo "$ac_t""no" 1>&6 | |
2319 | fi | |
2320 | ||
2321 | ||
2322 | echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6 | |
2323 | echo "configure:2324: checking for --enable-soname" >&5 | |
2324 | no_cache=0 | |
2325 | # Check whether --enable-soname or --disable-soname was given. | |
2326 | if test "${enable_soname+set}" = set; then | |
2327 | enableval="$enable_soname" | |
2328 | ||
2329 | if test "$enableval" = yes; then | |
2330 | ac_cv_use_soname='wxUSE_SONAME=yes' | |
2331 | else | |
2332 | ac_cv_use_soname='wxUSE_SONAME=no' | |
2333 | fi | |
2334 | ||
2335 | else | |
2336 | ||
2337 | LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}` | |
2338 | if test "x$LINE" != x ; then | |
2339 | eval "DEFAULT_$LINE" | |
2340 | else | |
2341 | no_cache=1 | |
2342 | fi | |
2343 | ||
2344 | ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME | |
2345 | ||
2346 | fi | |
2347 | ||
2348 | ||
2349 | eval "$ac_cv_use_soname" | |
2350 | if test "$no_cache" != 1; then | |
2351 | echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp | |
2352 | fi | |
2353 | ||
2354 | if test "$wxUSE_SONAME" = yes; then | |
2355 | echo "$ac_t""yes" 1>&6 | |
2356 | else | |
2357 | echo "$ac_t""no" 1>&6 | |
2358 | fi | |
2359 | ||
2360 | ||
2361 | echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6 | |
2362 | echo "configure:2363: checking for --enable-optimise" >&5 | |
2363 | no_cache=0 | |
2364 | # Check whether --enable-optimise or --disable-optimise was given. | |
2365 | if test "${enable_optimise+set}" = set; then | |
2366 | enableval="$enable_optimise" | |
2367 | ||
2368 | if test "$enableval" = yes; then | |
2369 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2370 | else | |
2371 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2372 | fi | |
2373 | ||
2374 | else | |
2375 | ||
2376 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
2377 | if test "x$LINE" != x ; then | |
2378 | eval "DEFAULT_$LINE" | |
2379 | else | |
2380 | no_cache=1 | |
2381 | fi | |
2382 | ||
2383 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
2384 | ||
2385 | fi | |
2386 | ||
2387 | ||
2388 | eval "$ac_cv_use_optimise" | |
2389 | if test "$no_cache" != 1; then | |
2390 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2391 | fi | |
2392 | ||
2393 | if test "$wxUSE_OPTIMISE" = yes; then | |
2394 | echo "$ac_t""yes" 1>&6 | |
2395 | else | |
2396 | echo "$ac_t""no" 1>&6 | |
2397 | fi | |
2398 | ||
2399 | ||
2400 | echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6 | |
2401 | echo "configure:2402: checking for --enable-debug" >&5 | |
2402 | no_cache=0 | |
2403 | # Check whether --enable-debug or --disable-debug was given. | |
2404 | if test "${enable_debug+set}" = set; then | |
2405 | enableval="$enable_debug" | |
2406 | ||
2407 | if test "$enableval" = yes; then | |
2408 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2409 | else | |
2410 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2411 | fi | |
2412 | ||
2413 | else | |
2414 | ||
2415 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
2416 | if test "x$LINE" != x ; then | |
2417 | eval "DEFAULT_$LINE" | |
2418 | else | |
2419 | no_cache=1 | |
2420 | fi | |
2421 | ||
2422 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
2423 | ||
2424 | fi | |
2425 | ||
2426 | ||
2427 | eval "$ac_cv_use_debug" | |
2428 | if test "$no_cache" != 1; then | |
2429 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2430 | fi | |
2431 | ||
2432 | if test "$wxUSE_DEBUG" = yes; then | |
2433 | echo "$ac_t""yes" 1>&6 | |
2434 | else | |
2435 | echo "$ac_t""no" 1>&6 | |
2436 | fi | |
2437 | ||
2438 | ||
2439 | ||
2440 | echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6 | |
2441 | echo "configure:2442: checking for --enable-precomp" >&5 | |
2442 | no_cache=0 | |
2443 | # Check whether --enable-precomp or --disable-precomp was given. | |
2444 | if test "${enable_precomp+set}" = set; then | |
2445 | enableval="$enable_precomp" | |
2446 | ||
2447 | if test "$enableval" = yes; then | |
2448 | ac_cv_use_precomp='wxUSE_PRECOMP=yes' | |
2449 | else | |
2450 | ac_cv_use_precomp='wxUSE_PRECOMP=no' | |
2451 | fi | |
2452 | ||
2453 | else | |
2454 | ||
2455 | LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}` | |
2456 | if test "x$LINE" != x ; then | |
2457 | eval "DEFAULT_$LINE" | |
2458 | else | |
2459 | no_cache=1 | |
2460 | fi | |
2461 | ||
2462 | ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP | |
2463 | ||
2464 | fi | |
2465 | ||
2466 | ||
2467 | eval "$ac_cv_use_precomp" | |
2468 | if test "$no_cache" != 1; then | |
2469 | echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp | |
2470 | fi | |
2471 | ||
2472 | if test "$wxUSE_PRECOMP" = yes; then | |
2473 | echo "$ac_t""yes" 1>&6 | |
2474 | else | |
2475 | echo "$ac_t""no" 1>&6 | |
2476 | fi | |
2477 | ||
2478 | ||
2479 | if test "$wxUSE_DEBUG" = "yes"; then | |
2480 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2481 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2482 | elif test "$wxUSE_DEBUG" = "no"; then | |
2483 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2484 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2485 | fi | |
2486 | ||
2487 | ||
2488 | echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6 | |
2489 | echo "configure:2490: checking for --enable-debug_flag" >&5 | |
2490 | no_cache=0 | |
2491 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2492 | if test "${enable_debug_flag+set}" = set; then | |
2493 | enableval="$enable_debug_flag" | |
2494 | ||
2495 | if test "$enableval" = yes; then | |
2496 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2497 | else | |
2498 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2499 | fi | |
2500 | ||
2501 | else | |
2502 | ||
2503 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
2504 | if test "x$LINE" != x ; then | |
2505 | eval "DEFAULT_$LINE" | |
2506 | else | |
2507 | no_cache=1 | |
2508 | fi | |
2509 | ||
2510 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
2511 | ||
2512 | fi | |
2513 | ||
2514 | ||
2515 | eval "$ac_cv_use_debug_flag" | |
2516 | if test "$no_cache" != 1; then | |
2517 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2518 | fi | |
2519 | ||
2520 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
2521 | echo "$ac_t""yes" 1>&6 | |
2522 | else | |
2523 | echo "$ac_t""no" 1>&6 | |
2524 | fi | |
2525 | ||
2526 | ||
2527 | echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6 | |
2528 | echo "configure:2529: checking for --enable-debug_info" >&5 | |
2529 | no_cache=0 | |
2530 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2531 | if test "${enable_debug_info+set}" = set; then | |
2532 | enableval="$enable_debug_info" | |
2533 | ||
2534 | if test "$enableval" = yes; then | |
2535 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2536 | else | |
2537 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2538 | fi | |
2539 | ||
2540 | else | |
2541 | ||
2542 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
2543 | if test "x$LINE" != x ; then | |
2544 | eval "DEFAULT_$LINE" | |
2545 | else | |
2546 | no_cache=1 | |
2547 | fi | |
2548 | ||
2549 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
2550 | ||
2551 | fi | |
2552 | ||
2553 | ||
2554 | eval "$ac_cv_use_debug_info" | |
2555 | if test "$no_cache" != 1; then | |
2556 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2557 | fi | |
2558 | ||
2559 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
2560 | echo "$ac_t""yes" 1>&6 | |
2561 | else | |
2562 | echo "$ac_t""no" 1>&6 | |
2563 | fi | |
2564 | ||
2565 | ||
2566 | echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6 | |
2567 | echo "configure:2568: checking for --enable-debug_gdb" >&5 | |
2568 | no_cache=0 | |
2569 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2570 | if test "${enable_debug_gdb+set}" = set; then | |
2571 | enableval="$enable_debug_gdb" | |
2572 | ||
2573 | if test "$enableval" = yes; then | |
2574 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2575 | else | |
2576 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2577 | fi | |
2578 | ||
2579 | else | |
2580 | ||
2581 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
2582 | if test "x$LINE" != x ; then | |
2583 | eval "DEFAULT_$LINE" | |
2584 | else | |
2585 | no_cache=1 | |
2586 | fi | |
2587 | ||
2588 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
2589 | ||
2590 | fi | |
2591 | ||
2592 | ||
2593 | eval "$ac_cv_use_debug_gdb" | |
2594 | if test "$no_cache" != 1; then | |
2595 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2596 | fi | |
2597 | ||
2598 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
2599 | echo "$ac_t""yes" 1>&6 | |
2600 | else | |
2601 | echo "$ac_t""no" 1>&6 | |
2602 | fi | |
2603 | ||
2604 | ||
2605 | echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6 | |
2606 | echo "configure:2607: checking for --enable-debug_cntxt" >&5 | |
2607 | no_cache=0 | |
2608 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2609 | if test "${enable_debug_cntxt+set}" = set; then | |
2610 | enableval="$enable_debug_cntxt" | |
2611 | ||
2612 | if test "$enableval" = yes; then | |
2613 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2614 | else | |
2615 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2616 | fi | |
2617 | ||
2618 | else | |
2619 | ||
2620 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
2621 | if test "x$LINE" != x ; then | |
2622 | eval "DEFAULT_$LINE" | |
2623 | else | |
2624 | no_cache=1 | |
2625 | fi | |
2626 | ||
2627 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
2628 | ||
2629 | fi | |
2630 | ||
2631 | ||
2632 | eval "$ac_cv_use_debug_cntxt" | |
2633 | if test "$no_cache" != 1; then | |
2634 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2635 | fi | |
2636 | ||
2637 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
2638 | echo "$ac_t""yes" 1>&6 | |
2639 | else | |
2640 | echo "$ac_t""no" 1>&6 | |
2641 | fi | |
2642 | ||
2643 | ||
2644 | echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6 | |
2645 | echo "configure:2646: checking for --enable-mem_tracing" >&5 | |
2646 | no_cache=0 | |
2647 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2648 | if test "${enable_mem_tracing+set}" = set; then | |
2649 | enableval="$enable_mem_tracing" | |
2650 | ||
2651 | if test "$enableval" = yes; then | |
2652 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2653 | else | |
2654 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2655 | fi | |
2656 | ||
2657 | else | |
2658 | ||
2659 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
2660 | if test "x$LINE" != x ; then | |
2661 | eval "DEFAULT_$LINE" | |
2662 | else | |
2663 | no_cache=1 | |
2664 | fi | |
2665 | ||
2666 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
2667 | ||
2668 | fi | |
2669 | ||
2670 | ||
2671 | eval "$ac_cv_use_mem_tracing" | |
2672 | if test "$no_cache" != 1; then | |
2673 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2674 | fi | |
2675 | ||
2676 | if test "$wxUSE_MEM_TRACING" = yes; then | |
2677 | echo "$ac_t""yes" 1>&6 | |
2678 | else | |
2679 | echo "$ac_t""no" 1>&6 | |
2680 | fi | |
2681 | ||
2682 | ||
2683 | echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6 | |
2684 | echo "configure:2685: checking for --enable-profile" >&5 | |
2685 | no_cache=0 | |
2686 | # Check whether --enable-profile or --disable-profile was given. | |
2687 | if test "${enable_profile+set}" = set; then | |
2688 | enableval="$enable_profile" | |
2689 | ||
2690 | if test "$enableval" = yes; then | |
2691 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2692 | else | |
2693 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2694 | fi | |
2695 | ||
2696 | else | |
2697 | ||
2698 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
2699 | if test "x$LINE" != x ; then | |
2700 | eval "DEFAULT_$LINE" | |
2701 | else | |
2702 | no_cache=1 | |
2703 | fi | |
2704 | ||
2705 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
2706 | ||
2707 | fi | |
2708 | ||
2709 | ||
2710 | eval "$ac_cv_use_profile" | |
2711 | if test "$no_cache" != 1; then | |
2712 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2713 | fi | |
2714 | ||
2715 | if test "$wxUSE_PROFILE" = yes; then | |
2716 | echo "$ac_t""yes" 1>&6 | |
2717 | else | |
2718 | echo "$ac_t""no" 1>&6 | |
2719 | fi | |
2720 | ||
2721 | ||
2722 | echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6 | |
2723 | echo "configure:2724: checking for --enable-no_rtti" >&5 | |
2724 | no_cache=0 | |
2725 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2726 | if test "${enable_no_rtti+set}" = set; then | |
2727 | enableval="$enable_no_rtti" | |
2728 | ||
2729 | if test "$enableval" = yes; then | |
2730 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2731 | else | |
2732 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2733 | fi | |
2734 | ||
2735 | else | |
2736 | ||
2737 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
2738 | if test "x$LINE" != x ; then | |
2739 | eval "DEFAULT_$LINE" | |
2740 | else | |
2741 | no_cache=1 | |
2742 | fi | |
2743 | ||
2744 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
2745 | ||
2746 | fi | |
2747 | ||
2748 | ||
2749 | eval "$ac_cv_use_no_rtti" | |
2750 | if test "$no_cache" != 1; then | |
2751 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2752 | fi | |
2753 | ||
2754 | if test "$wxUSE_NO_RTTI" = yes; then | |
2755 | echo "$ac_t""yes" 1>&6 | |
2756 | else | |
2757 | echo "$ac_t""no" 1>&6 | |
2758 | fi | |
2759 | ||
2760 | ||
2761 | echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6 | |
2762 | echo "configure:2763: checking for --enable-no_exceptions" >&5 | |
2763 | no_cache=0 | |
2764 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2765 | if test "${enable_no_exceptions+set}" = set; then | |
2766 | enableval="$enable_no_exceptions" | |
2767 | ||
2768 | if test "$enableval" = yes; then | |
2769 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2770 | else | |
2771 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2772 | fi | |
2773 | ||
2774 | else | |
2775 | ||
2776 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
2777 | if test "x$LINE" != x ; then | |
2778 | eval "DEFAULT_$LINE" | |
2779 | else | |
2780 | no_cache=1 | |
2781 | fi | |
2782 | ||
2783 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
2784 | ||
2785 | fi | |
2786 | ||
2787 | ||
2788 | eval "$ac_cv_use_no_exceptions" | |
2789 | if test "$no_cache" != 1; then | |
2790 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2791 | fi | |
2792 | ||
2793 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
2794 | echo "$ac_t""yes" 1>&6 | |
2795 | else | |
2796 | echo "$ac_t""no" 1>&6 | |
2797 | fi | |
2798 | ||
2799 | ||
2800 | echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6 | |
2801 | echo "configure:2802: checking for --enable-permissive" >&5 | |
2802 | no_cache=0 | |
2803 | # Check whether --enable-permissive or --disable-permissive was given. | |
2804 | if test "${enable_permissive+set}" = set; then | |
2805 | enableval="$enable_permissive" | |
2806 | ||
2807 | if test "$enableval" = yes; then | |
2808 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2809 | else | |
2810 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2811 | fi | |
2812 | ||
2813 | else | |
2814 | ||
2815 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
2816 | if test "x$LINE" != x ; then | |
2817 | eval "DEFAULT_$LINE" | |
2818 | else | |
2819 | no_cache=1 | |
2820 | fi | |
2821 | ||
2822 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
2823 | ||
2824 | fi | |
2825 | ||
2826 | ||
2827 | eval "$ac_cv_use_permissive" | |
2828 | if test "$no_cache" != 1; then | |
2829 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2830 | fi | |
2831 | ||
2832 | if test "$wxUSE_PERMISSIVE" = yes; then | |
2833 | echo "$ac_t""yes" 1>&6 | |
2834 | else | |
2835 | echo "$ac_t""no" 1>&6 | |
2836 | fi | |
2837 | ||
2838 | ||
2839 | echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6 | |
2840 | echo "configure:2841: checking for --enable-no_deps" >&5 | |
2841 | no_cache=0 | |
2842 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2843 | if test "${enable_no_deps+set}" = set; then | |
2844 | enableval="$enable_no_deps" | |
2845 | ||
2846 | if test "$enableval" = yes; then | |
2847 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2848 | else | |
2849 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2850 | fi | |
2851 | ||
2852 | else | |
2853 | ||
2854 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
2855 | if test "x$LINE" != x ; then | |
2856 | eval "DEFAULT_$LINE" | |
2857 | else | |
2858 | no_cache=1 | |
2859 | fi | |
2860 | ||
2861 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
2862 | ||
2863 | fi | |
2864 | ||
2865 | ||
2866 | eval "$ac_cv_use_no_deps" | |
2867 | if test "$no_cache" != 1; then | |
2868 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2869 | fi | |
2870 | ||
2871 | if test "$wxUSE_NO_DEPS" = yes; then | |
2872 | echo "$ac_t""yes" 1>&6 | |
2873 | else | |
2874 | echo "$ac_t""no" 1>&6 | |
2875 | fi | |
2876 | ||
2877 | ||
2878 | ||
2879 | echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6 | |
2880 | echo "configure:2881: checking for --enable-compat20" >&5 | |
2881 | no_cache=0 | |
2882 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2883 | if test "${enable_compat20+set}" = set; then | |
2884 | enableval="$enable_compat20" | |
2885 | ||
2886 | if test "$enableval" = yes; then | |
2887 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2888 | else | |
2889 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2890 | fi | |
2891 | ||
2892 | else | |
2893 | ||
2894 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` | |
2895 | if test "x$LINE" != x ; then | |
2896 | eval "DEFAULT_$LINE" | |
2897 | else | |
2898 | no_cache=1 | |
2899 | fi | |
2900 | ||
2901 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
2902 | ||
2903 | fi | |
2904 | ||
2905 | ||
2906 | eval "$ac_cv_use_compat20" | |
2907 | if test "$no_cache" != 1; then | |
2908 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
2909 | fi | |
2910 | ||
2911 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
2912 | echo "$ac_t""yes" 1>&6 | |
2913 | else | |
2914 | echo "$ac_t""no" 1>&6 | |
2915 | fi | |
2916 | ||
2917 | ||
2918 | echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6 | |
2919 | echo "configure:2920: checking for --enable-compat22" >&5 | |
2920 | no_cache=0 | |
2921 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
2922 | if test "${enable_compat22+set}" = set; then | |
2923 | enableval="$enable_compat22" | |
2924 | ||
2925 | if test "$enableval" = yes; then | |
2926 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
2927 | else | |
2928 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
2929 | fi | |
2930 | ||
2931 | else | |
2932 | ||
2933 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${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_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
2941 | ||
2942 | fi | |
2943 | ||
2944 | ||
2945 | eval "$ac_cv_use_compat22" | |
2946 | if test "$no_cache" != 1; then | |
2947 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
2948 | fi | |
2949 | ||
2950 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
2951 | echo "$ac_t""yes" 1>&6 | |
2952 | else | |
2953 | echo "$ac_t""no" 1>&6 | |
2954 | fi | |
2955 | ||
2956 | ||
2957 | ||
2958 | ||
2959 | echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6 | |
2960 | echo "configure:2961: checking for --enable-intl" >&5 | |
2961 | no_cache=0 | |
2962 | # Check whether --enable-intl or --disable-intl was given. | |
2963 | if test "${enable_intl+set}" = set; then | |
2964 | enableval="$enable_intl" | |
2965 | ||
2966 | if test "$enableval" = yes; then | |
2967 | ac_cv_use_intl='wxUSE_INTL=yes' | |
2968 | else | |
2969 | ac_cv_use_intl='wxUSE_INTL=no' | |
2970 | fi | |
2971 | ||
2972 | else | |
2973 | ||
2974 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
2975 | if test "x$LINE" != x ; then | |
2976 | eval "DEFAULT_$LINE" | |
2977 | else | |
2978 | no_cache=1 | |
2979 | fi | |
2980 | ||
2981 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
2982 | ||
2983 | fi | |
2984 | ||
2985 | ||
2986 | eval "$ac_cv_use_intl" | |
2987 | if test "$no_cache" != 1; then | |
2988 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
2989 | fi | |
2990 | ||
2991 | if test "$wxUSE_INTL" = yes; then | |
2992 | echo "$ac_t""yes" 1>&6 | |
2993 | else | |
2994 | echo "$ac_t""no" 1>&6 | |
2995 | fi | |
2996 | ||
2997 | ||
2998 | echo $ac_n "checking for --enable-config""... $ac_c" 1>&6 | |
2999 | echo "configure:3000: checking for --enable-config" >&5 | |
3000 | no_cache=0 | |
3001 | # Check whether --enable-config or --disable-config was given. | |
3002 | if test "${enable_config+set}" = set; then | |
3003 | enableval="$enable_config" | |
3004 | ||
3005 | if test "$enableval" = yes; then | |
3006 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3007 | else | |
3008 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3009 | fi | |
3010 | ||
3011 | else | |
3012 | ||
3013 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
3014 | if test "x$LINE" != x ; then | |
3015 | eval "DEFAULT_$LINE" | |
3016 | else | |
3017 | no_cache=1 | |
3018 | fi | |
3019 | ||
3020 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
3021 | ||
3022 | fi | |
3023 | ||
3024 | ||
3025 | eval "$ac_cv_use_config" | |
3026 | if test "$no_cache" != 1; then | |
3027 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3028 | fi | |
3029 | ||
3030 | if test "$wxUSE_CONFIG" = yes; then | |
3031 | echo "$ac_t""yes" 1>&6 | |
3032 | else | |
3033 | echo "$ac_t""no" 1>&6 | |
3034 | fi | |
3035 | ||
3036 | ||
3037 | ||
3038 | echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6 | |
3039 | echo "configure:3040: checking for --enable-sockets" >&5 | |
3040 | no_cache=0 | |
3041 | # Check whether --enable-sockets or --disable-sockets was given. | |
3042 | if test "${enable_sockets+set}" = set; then | |
3043 | enableval="$enable_sockets" | |
3044 | ||
3045 | if test "$enableval" = yes; then | |
3046 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
3047 | else | |
3048 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
3049 | fi | |
3050 | ||
3051 | else | |
3052 | ||
3053 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
3054 | if test "x$LINE" != x ; then | |
3055 | eval "DEFAULT_$LINE" | |
3056 | else | |
3057 | no_cache=1 | |
3058 | fi | |
3059 | ||
3060 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
3061 | ||
3062 | fi | |
3063 | ||
3064 | ||
3065 | eval "$ac_cv_use_sockets" | |
3066 | if test "$no_cache" != 1; then | |
3067 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
3068 | fi | |
3069 | ||
3070 | if test "$wxUSE_SOCKETS" = yes; then | |
3071 | echo "$ac_t""yes" 1>&6 | |
3072 | else | |
3073 | echo "$ac_t""no" 1>&6 | |
3074 | fi | |
3075 | ||
3076 | ||
3077 | ||
3078 | echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6 | |
3079 | echo "configure:3080: checking for --enable-ipc" >&5 | |
3080 | no_cache=0 | |
3081 | # Check whether --enable-ipc or --disable-ipc was given. | |
3082 | if test "${enable_ipc+set}" = set; then | |
3083 | enableval="$enable_ipc" | |
3084 | ||
3085 | if test "$enableval" = yes; then | |
3086 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
3087 | else | |
3088 | ac_cv_use_ipc='wxUSE_IPC=no' | |
3089 | fi | |
3090 | ||
3091 | else | |
3092 | ||
3093 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
3094 | if test "x$LINE" != x ; then | |
3095 | eval "DEFAULT_$LINE" | |
3096 | else | |
3097 | no_cache=1 | |
3098 | fi | |
3099 | ||
3100 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
3101 | ||
3102 | fi | |
3103 | ||
3104 | ||
3105 | eval "$ac_cv_use_ipc" | |
3106 | if test "$no_cache" != 1; then | |
3107 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
3108 | fi | |
3109 | ||
3110 | if test "$wxUSE_IPC" = yes; then | |
3111 | echo "$ac_t""yes" 1>&6 | |
3112 | else | |
3113 | echo "$ac_t""no" 1>&6 | |
3114 | fi | |
3115 | ||
3116 | ||
3117 | ||
3118 | echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6 | |
3119 | echo "configure:3120: checking for --enable-cmdline" >&5 | |
3120 | no_cache=0 | |
3121 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
3122 | if test "${enable_cmdline+set}" = set; then | |
3123 | enableval="$enable_cmdline" | |
3124 | ||
3125 | if test "$enableval" = yes; then | |
3126 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
3127 | else | |
3128 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
3129 | fi | |
3130 | ||
3131 | else | |
3132 | ||
3133 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
3134 | if test "x$LINE" != x ; then | |
3135 | eval "DEFAULT_$LINE" | |
3136 | else | |
3137 | no_cache=1 | |
3138 | fi | |
3139 | ||
3140 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
3141 | ||
3142 | fi | |
3143 | ||
3144 | ||
3145 | eval "$ac_cv_use_cmdline" | |
3146 | if test "$no_cache" != 1; then | |
3147 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3148 | fi | |
3149 | ||
3150 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
3151 | echo "$ac_t""yes" 1>&6 | |
3152 | else | |
3153 | echo "$ac_t""no" 1>&6 | |
3154 | fi | |
3155 | ||
3156 | ||
3157 | echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6 | |
3158 | echo "configure:3159: checking for --enable-datetime" >&5 | |
3159 | no_cache=0 | |
3160 | # Check whether --enable-datetime or --disable-datetime was given. | |
3161 | if test "${enable_datetime+set}" = set; then | |
3162 | enableval="$enable_datetime" | |
3163 | ||
3164 | if test "$enableval" = yes; then | |
3165 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3166 | else | |
3167 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3168 | fi | |
3169 | ||
3170 | else | |
3171 | ||
3172 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
3173 | if test "x$LINE" != x ; then | |
3174 | eval "DEFAULT_$LINE" | |
3175 | else | |
3176 | no_cache=1 | |
3177 | fi | |
3178 | ||
3179 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
3180 | ||
3181 | fi | |
3182 | ||
3183 | ||
3184 | eval "$ac_cv_use_datetime" | |
3185 | if test "$no_cache" != 1; then | |
3186 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3187 | fi | |
3188 | ||
3189 | if test "$wxUSE_DATETIME" = yes; then | |
3190 | echo "$ac_t""yes" 1>&6 | |
3191 | else | |
3192 | echo "$ac_t""no" 1>&6 | |
3193 | fi | |
3194 | ||
3195 | ||
3196 | echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6 | |
3197 | echo "configure:3198: checking for --enable-timedate" >&5 | |
3198 | no_cache=0 | |
3199 | # Check whether --enable-timedate or --disable-timedate was given. | |
3200 | if test "${enable_timedate+set}" = set; then | |
3201 | enableval="$enable_timedate" | |
3202 | ||
3203 | if test "$enableval" = yes; then | |
3204 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3205 | else | |
3206 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3207 | fi | |
3208 | ||
3209 | else | |
3210 | ||
3211 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
3212 | if test "x$LINE" != x ; then | |
3213 | eval "DEFAULT_$LINE" | |
3214 | else | |
3215 | no_cache=1 | |
3216 | fi | |
3217 | ||
3218 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
3219 | ||
3220 | fi | |
3221 | ||
3222 | ||
3223 | eval "$ac_cv_use_timedate" | |
3224 | if test "$no_cache" != 1; then | |
3225 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3226 | fi | |
3227 | ||
3228 | if test "$wxUSE_TIMEDATE" = yes; then | |
3229 | echo "$ac_t""yes" 1>&6 | |
3230 | else | |
3231 | echo "$ac_t""no" 1>&6 | |
3232 | fi | |
3233 | ||
3234 | ||
3235 | echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6 | |
3236 | echo "configure:3237: checking for --enable-stopwatch" >&5 | |
3237 | no_cache=0 | |
3238 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3239 | if test "${enable_stopwatch+set}" = set; then | |
3240 | enableval="$enable_stopwatch" | |
3241 | ||
3242 | if test "$enableval" = yes; then | |
3243 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3244 | else | |
3245 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3246 | fi | |
3247 | ||
3248 | else | |
3249 | ||
3250 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
3251 | if test "x$LINE" != x ; then | |
3252 | eval "DEFAULT_$LINE" | |
3253 | else | |
3254 | no_cache=1 | |
3255 | fi | |
3256 | ||
3257 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
3258 | ||
3259 | fi | |
3260 | ||
3261 | ||
3262 | eval "$ac_cv_use_stopwatch" | |
3263 | if test "$no_cache" != 1; then | |
3264 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3265 | fi | |
3266 | ||
3267 | if test "$wxUSE_STOPWATCH" = yes; then | |
3268 | echo "$ac_t""yes" 1>&6 | |
3269 | else | |
3270 | echo "$ac_t""no" 1>&6 | |
3271 | fi | |
3272 | ||
3273 | ||
3274 | echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6 | |
3275 | echo "configure:3276: checking for --enable-dialupman" >&5 | |
3276 | no_cache=0 | |
3277 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
3278 | if test "${enable_dialupman+set}" = set; then | |
3279 | enableval="$enable_dialupman" | |
3280 | ||
3281 | if test "$enableval" = yes; then | |
3282 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
3283 | else | |
3284 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
3285 | fi | |
3286 | ||
3287 | else | |
3288 | ||
3289 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
3290 | if test "x$LINE" != x ; then | |
3291 | eval "DEFAULT_$LINE" | |
3292 | else | |
3293 | no_cache=1 | |
3294 | fi | |
3295 | ||
3296 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
3297 | ||
3298 | fi | |
3299 | ||
3300 | ||
3301 | eval "$ac_cv_use_dialupman" | |
3302 | if test "$no_cache" != 1; then | |
3303 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
3304 | fi | |
3305 | ||
3306 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
3307 | echo "$ac_t""yes" 1>&6 | |
3308 | else | |
3309 | echo "$ac_t""no" 1>&6 | |
3310 | fi | |
3311 | ||
3312 | ||
3313 | echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6 | |
3314 | echo "configure:3315: checking for --enable-apple_ieee" >&5 | |
3315 | no_cache=0 | |
3316 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3317 | if test "${enable_apple_ieee+set}" = set; then | |
3318 | enableval="$enable_apple_ieee" | |
3319 | ||
3320 | if test "$enableval" = yes; then | |
3321 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3322 | else | |
3323 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3324 | fi | |
3325 | ||
3326 | else | |
3327 | ||
3328 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
3329 | if test "x$LINE" != x ; then | |
3330 | eval "DEFAULT_$LINE" | |
3331 | else | |
3332 | no_cache=1 | |
3333 | fi | |
3334 | ||
3335 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
3336 | ||
3337 | fi | |
3338 | ||
3339 | ||
3340 | eval "$ac_cv_use_apple_ieee" | |
3341 | if test "$no_cache" != 1; then | |
3342 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3343 | fi | |
3344 | ||
3345 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
3346 | echo "$ac_t""yes" 1>&6 | |
3347 | else | |
3348 | echo "$ac_t""no" 1>&6 | |
3349 | fi | |
3350 | ||
3351 | ||
3352 | echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6 | |
3353 | echo "configure:3354: checking for --enable-timer" >&5 | |
3354 | no_cache=0 | |
3355 | # Check whether --enable-timer or --disable-timer was given. | |
3356 | if test "${enable_timer+set}" = set; then | |
3357 | enableval="$enable_timer" | |
3358 | ||
3359 | if test "$enableval" = yes; then | |
3360 | ac_cv_use_timer='wxUSE_TIMER=yes' | |
3361 | else | |
3362 | ac_cv_use_timer='wxUSE_TIMER=no' | |
3363 | fi | |
3364 | ||
3365 | else | |
3366 | ||
3367 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` | |
3368 | if test "x$LINE" != x ; then | |
3369 | eval "DEFAULT_$LINE" | |
3370 | else | |
3371 | no_cache=1 | |
3372 | fi | |
3373 | ||
3374 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER | |
3375 | ||
3376 | fi | |
3377 | ||
3378 | ||
3379 | eval "$ac_cv_use_timer" | |
3380 | if test "$no_cache" != 1; then | |
3381 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp | |
3382 | fi | |
3383 | ||
3384 | if test "$wxUSE_TIMER" = yes; then | |
3385 | echo "$ac_t""yes" 1>&6 | |
3386 | else | |
3387 | echo "$ac_t""no" 1>&6 | |
3388 | fi | |
3389 | ||
3390 | ||
3391 | echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6 | |
3392 | echo "configure:3393: checking for --enable-wave" >&5 | |
3393 | no_cache=0 | |
3394 | # Check whether --enable-wave or --disable-wave was given. | |
3395 | if test "${enable_wave+set}" = set; then | |
3396 | enableval="$enable_wave" | |
3397 | ||
3398 | if test "$enableval" = yes; then | |
3399 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3400 | else | |
3401 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3402 | fi | |
3403 | ||
3404 | else | |
3405 | ||
3406 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` | |
3407 | if test "x$LINE" != x ; then | |
3408 | eval "DEFAULT_$LINE" | |
3409 | else | |
3410 | no_cache=1 | |
3411 | fi | |
3412 | ||
3413 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
3414 | ||
3415 | fi | |
3416 | ||
3417 | ||
3418 | eval "$ac_cv_use_wave" | |
3419 | if test "$no_cache" != 1; then | |
3420 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3421 | fi | |
3422 | ||
3423 | if test "$wxUSE_WAVE" = yes; then | |
3424 | echo "$ac_t""yes" 1>&6 | |
3425 | else | |
3426 | echo "$ac_t""no" 1>&6 | |
3427 | fi | |
3428 | ||
3429 | ||
3430 | echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6 | |
3431 | echo "configure:3432: checking for --enable-fraction" >&5 | |
3432 | no_cache=0 | |
3433 | # Check whether --enable-fraction or --disable-fraction was given. | |
3434 | if test "${enable_fraction+set}" = set; then | |
3435 | enableval="$enable_fraction" | |
3436 | ||
3437 | if test "$enableval" = yes; then | |
3438 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3439 | else | |
3440 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3441 | fi | |
3442 | ||
3443 | else | |
3444 | ||
3445 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` | |
3446 | if test "x$LINE" != x ; then | |
3447 | eval "DEFAULT_$LINE" | |
3448 | else | |
3449 | no_cache=1 | |
3450 | fi | |
3451 | ||
3452 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
3453 | ||
3454 | fi | |
3455 | ||
3456 | ||
3457 | eval "$ac_cv_use_fraction" | |
3458 | if test "$no_cache" != 1; then | |
3459 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3460 | fi | |
3461 | ||
3462 | if test "$wxUSE_FRACTION" = yes; then | |
3463 | echo "$ac_t""yes" 1>&6 | |
3464 | else | |
3465 | echo "$ac_t""no" 1>&6 | |
3466 | fi | |
3467 | ||
3468 | ||
3469 | echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6 | |
3470 | echo "configure:3471: checking for --enable-dynlib" >&5 | |
3471 | no_cache=0 | |
3472 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3473 | if test "${enable_dynlib+set}" = set; then | |
3474 | enableval="$enable_dynlib" | |
3475 | ||
3476 | if test "$enableval" = yes; then | |
3477 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3478 | else | |
3479 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3480 | fi | |
3481 | ||
3482 | else | |
3483 | ||
3484 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
3485 | if test "x$LINE" != x ; then | |
3486 | eval "DEFAULT_$LINE" | |
3487 | else | |
3488 | no_cache=1 | |
3489 | fi | |
3490 | ||
3491 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
3492 | ||
3493 | fi | |
3494 | ||
3495 | ||
3496 | eval "$ac_cv_use_dynlib" | |
3497 | if test "$no_cache" != 1; then | |
3498 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3499 | fi | |
3500 | ||
3501 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
3502 | echo "$ac_t""yes" 1>&6 | |
3503 | else | |
3504 | echo "$ac_t""no" 1>&6 | |
3505 | fi | |
3506 | ||
3507 | ||
3508 | echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6 | |
3509 | echo "configure:3510: checking for --enable-longlong" >&5 | |
3510 | no_cache=0 | |
3511 | # Check whether --enable-longlong or --disable-longlong was given. | |
3512 | if test "${enable_longlong+set}" = set; then | |
3513 | enableval="$enable_longlong" | |
3514 | ||
3515 | if test "$enableval" = yes; then | |
3516 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3517 | else | |
3518 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3519 | fi | |
3520 | ||
3521 | else | |
3522 | ||
3523 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
3524 | if test "x$LINE" != x ; then | |
3525 | eval "DEFAULT_$LINE" | |
3526 | else | |
3527 | no_cache=1 | |
3528 | fi | |
3529 | ||
3530 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
3531 | ||
3532 | fi | |
3533 | ||
3534 | ||
3535 | eval "$ac_cv_use_longlong" | |
3536 | if test "$no_cache" != 1; then | |
3537 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3538 | fi | |
3539 | ||
3540 | if test "$wxUSE_LONGLONG" = yes; then | |
3541 | echo "$ac_t""yes" 1>&6 | |
3542 | else | |
3543 | echo "$ac_t""no" 1>&6 | |
3544 | fi | |
3545 | ||
3546 | ||
3547 | echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6 | |
3548 | echo "configure:3549: checking for --enable-geometry" >&5 | |
3549 | no_cache=0 | |
3550 | # Check whether --enable-geometry or --disable-geometry was given. | |
3551 | if test "${enable_geometry+set}" = set; then | |
3552 | enableval="$enable_geometry" | |
3553 | ||
3554 | if test "$enableval" = yes; then | |
3555 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3556 | else | |
3557 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3558 | fi | |
3559 | ||
3560 | else | |
3561 | ||
3562 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` | |
3563 | if test "x$LINE" != x ; then | |
3564 | eval "DEFAULT_$LINE" | |
3565 | else | |
3566 | no_cache=1 | |
3567 | fi | |
3568 | ||
3569 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
3570 | ||
3571 | fi | |
3572 | ||
3573 | ||
3574 | eval "$ac_cv_use_geometry" | |
3575 | if test "$no_cache" != 1; then | |
3576 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3577 | fi | |
3578 | ||
3579 | if test "$wxUSE_GEOMETRY" = yes; then | |
3580 | echo "$ac_t""yes" 1>&6 | |
3581 | else | |
3582 | echo "$ac_t""no" 1>&6 | |
3583 | fi | |
3584 | ||
3585 | ||
3586 | echo $ac_n "checking for --enable-log""... $ac_c" 1>&6 | |
3587 | echo "configure:3588: checking for --enable-log" >&5 | |
3588 | no_cache=0 | |
3589 | # Check whether --enable-log or --disable-log was given. | |
3590 | if test "${enable_log+set}" = set; then | |
3591 | enableval="$enable_log" | |
3592 | ||
3593 | if test "$enableval" = yes; then | |
3594 | ac_cv_use_log='wxUSE_LOG=yes' | |
3595 | else | |
3596 | ac_cv_use_log='wxUSE_LOG=no' | |
3597 | fi | |
3598 | ||
3599 | else | |
3600 | ||
3601 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
3602 | if test "x$LINE" != x ; then | |
3603 | eval "DEFAULT_$LINE" | |
3604 | else | |
3605 | no_cache=1 | |
3606 | fi | |
3607 | ||
3608 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
3609 | ||
3610 | fi | |
3611 | ||
3612 | ||
3613 | eval "$ac_cv_use_log" | |
3614 | if test "$no_cache" != 1; then | |
3615 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
3616 | fi | |
3617 | ||
3618 | if test "$wxUSE_LOG" = yes; then | |
3619 | echo "$ac_t""yes" 1>&6 | |
3620 | else | |
3621 | echo "$ac_t""no" 1>&6 | |
3622 | fi | |
3623 | ||
3624 | ||
3625 | echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6 | |
3626 | echo "configure:3627: checking for --enable-streams" >&5 | |
3627 | no_cache=0 | |
3628 | # Check whether --enable-streams or --disable-streams was given. | |
3629 | if test "${enable_streams+set}" = set; then | |
3630 | enableval="$enable_streams" | |
3631 | ||
3632 | if test "$enableval" = yes; then | |
3633 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
3634 | else | |
3635 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
3636 | fi | |
3637 | ||
3638 | else | |
3639 | ||
3640 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
3641 | if test "x$LINE" != x ; then | |
3642 | eval "DEFAULT_$LINE" | |
3643 | else | |
3644 | no_cache=1 | |
3645 | fi | |
3646 | ||
3647 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
3648 | ||
3649 | fi | |
3650 | ||
3651 | ||
3652 | eval "$ac_cv_use_streams" | |
3653 | if test "$no_cache" != 1; then | |
3654 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
3655 | fi | |
3656 | ||
3657 | if test "$wxUSE_STREAMS" = yes; then | |
3658 | echo "$ac_t""yes" 1>&6 | |
3659 | else | |
3660 | echo "$ac_t""no" 1>&6 | |
3661 | fi | |
3662 | ||
3663 | ||
3664 | echo $ac_n "checking for --enable-file""... $ac_c" 1>&6 | |
3665 | echo "configure:3666: checking for --enable-file" >&5 | |
3666 | no_cache=0 | |
3667 | # Check whether --enable-file or --disable-file was given. | |
3668 | if test "${enable_file+set}" = set; then | |
3669 | enableval="$enable_file" | |
3670 | ||
3671 | if test "$enableval" = yes; then | |
3672 | ac_cv_use_file='wxUSE_FILE=yes' | |
3673 | else | |
3674 | ac_cv_use_file='wxUSE_FILE=no' | |
3675 | fi | |
3676 | ||
3677 | else | |
3678 | ||
3679 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
3680 | if test "x$LINE" != x ; then | |
3681 | eval "DEFAULT_$LINE" | |
3682 | else | |
3683 | no_cache=1 | |
3684 | fi | |
3685 | ||
3686 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
3687 | ||
3688 | fi | |
3689 | ||
3690 | ||
3691 | eval "$ac_cv_use_file" | |
3692 | if test "$no_cache" != 1; then | |
3693 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
3694 | fi | |
3695 | ||
3696 | if test "$wxUSE_FILE" = yes; then | |
3697 | echo "$ac_t""yes" 1>&6 | |
3698 | else | |
3699 | echo "$ac_t""no" 1>&6 | |
3700 | fi | |
3701 | ||
3702 | ||
3703 | echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6 | |
3704 | echo "configure:3705: checking for --enable-ffile" >&5 | |
3705 | no_cache=0 | |
3706 | # Check whether --enable-ffile or --disable-ffile was given. | |
3707 | if test "${enable_ffile+set}" = set; then | |
3708 | enableval="$enable_ffile" | |
3709 | ||
3710 | if test "$enableval" = yes; then | |
3711 | ac_cv_use_ffile='wxUSE_FFILE=yes' | |
3712 | else | |
3713 | ac_cv_use_ffile='wxUSE_FFILE=no' | |
3714 | fi | |
3715 | ||
3716 | else | |
3717 | ||
3718 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` | |
3719 | if test "x$LINE" != x ; then | |
3720 | eval "DEFAULT_$LINE" | |
3721 | else | |
3722 | no_cache=1 | |
3723 | fi | |
3724 | ||
3725 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE | |
3726 | ||
3727 | fi | |
3728 | ||
3729 | ||
3730 | eval "$ac_cv_use_ffile" | |
3731 | if test "$no_cache" != 1; then | |
3732 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp | |
3733 | fi | |
3734 | ||
3735 | if test "$wxUSE_FFILE" = yes; then | |
3736 | echo "$ac_t""yes" 1>&6 | |
3737 | else | |
3738 | echo "$ac_t""no" 1>&6 | |
3739 | fi | |
3740 | ||
3741 | ||
3742 | echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6 | |
3743 | echo "configure:3744: checking for --enable-textfile" >&5 | |
3744 | no_cache=0 | |
3745 | # Check whether --enable-textfile or --disable-textfile was given. | |
3746 | if test "${enable_textfile+set}" = set; then | |
3747 | enableval="$enable_textfile" | |
3748 | ||
3749 | if test "$enableval" = yes; then | |
3750 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
3751 | else | |
3752 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
3753 | fi | |
3754 | ||
3755 | else | |
3756 | ||
3757 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
3758 | if test "x$LINE" != x ; then | |
3759 | eval "DEFAULT_$LINE" | |
3760 | else | |
3761 | no_cache=1 | |
3762 | fi | |
3763 | ||
3764 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
3765 | ||
3766 | fi | |
3767 | ||
3768 | ||
3769 | eval "$ac_cv_use_textfile" | |
3770 | if test "$no_cache" != 1; then | |
3771 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
3772 | fi | |
3773 | ||
3774 | if test "$wxUSE_TEXTFILE" = yes; then | |
3775 | echo "$ac_t""yes" 1>&6 | |
3776 | else | |
3777 | echo "$ac_t""no" 1>&6 | |
3778 | fi | |
3779 | ||
3780 | ||
3781 | echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6 | |
3782 | echo "configure:3783: checking for --enable-fontmap" >&5 | |
3783 | no_cache=0 | |
3784 | # Check whether --enable-fontmap or --disable-fontmap was given. | |
3785 | if test "${enable_fontmap+set}" = set; then | |
3786 | enableval="$enable_fontmap" | |
3787 | ||
3788 | if test "$enableval" = yes; then | |
3789 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' | |
3790 | else | |
3791 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' | |
3792 | fi | |
3793 | ||
3794 | else | |
3795 | ||
3796 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` | |
3797 | if test "x$LINE" != x ; then | |
3798 | eval "DEFAULT_$LINE" | |
3799 | else | |
3800 | no_cache=1 | |
3801 | fi | |
3802 | ||
3803 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP | |
3804 | ||
3805 | fi | |
3806 | ||
3807 | ||
3808 | eval "$ac_cv_use_fontmap" | |
3809 | if test "$no_cache" != 1; then | |
3810 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp | |
3811 | fi | |
3812 | ||
3813 | if test "$wxUSE_FONTMAP" = yes; then | |
3814 | echo "$ac_t""yes" 1>&6 | |
3815 | else | |
3816 | echo "$ac_t""no" 1>&6 | |
3817 | fi | |
3818 | ||
3819 | ||
3820 | echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6 | |
3821 | echo "configure:3822: checking for --enable-unicode" >&5 | |
3822 | no_cache=0 | |
3823 | # Check whether --enable-unicode or --disable-unicode was given. | |
3824 | if test "${enable_unicode+set}" = set; then | |
3825 | enableval="$enable_unicode" | |
3826 | ||
3827 | if test "$enableval" = yes; then | |
3828 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
3829 | else | |
3830 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
3831 | fi | |
3832 | ||
3833 | else | |
3834 | ||
3835 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
3836 | if test "x$LINE" != x ; then | |
3837 | eval "DEFAULT_$LINE" | |
3838 | else | |
3839 | no_cache=1 | |
3840 | fi | |
3841 | ||
3842 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
3843 | ||
3844 | fi | |
3845 | ||
3846 | ||
3847 | eval "$ac_cv_use_unicode" | |
3848 | if test "$no_cache" != 1; then | |
3849 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
3850 | fi | |
3851 | ||
3852 | if test "$wxUSE_UNICODE" = yes; then | |
3853 | echo "$ac_t""yes" 1>&6 | |
3854 | else | |
3855 | echo "$ac_t""no" 1>&6 | |
3856 | fi | |
3857 | ||
3858 | ||
3859 | echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6 | |
3860 | echo "configure:3861: checking for --enable-wxprintfv" >&5 | |
3861 | no_cache=0 | |
3862 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
3863 | if test "${enable_wxprintfv+set}" = set; then | |
3864 | enableval="$enable_wxprintfv" | |
3865 | ||
3866 | if test "$enableval" = yes; then | |
3867 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
3868 | else | |
3869 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
3870 | fi | |
3871 | ||
3872 | else | |
3873 | ||
3874 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
3875 | if test "x$LINE" != x ; then | |
3876 | eval "DEFAULT_$LINE" | |
3877 | else | |
3878 | no_cache=1 | |
3879 | fi | |
3880 | ||
3881 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
3882 | ||
3883 | fi | |
3884 | ||
3885 | ||
3886 | eval "$ac_cv_use_wxprintfv" | |
3887 | if test "$no_cache" != 1; then | |
3888 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
3889 | fi | |
3890 | ||
3891 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
3892 | echo "$ac_t""yes" 1>&6 | |
3893 | else | |
3894 | echo "$ac_t""no" 1>&6 | |
3895 | fi | |
3896 | ||
3897 | ||
3898 | echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6 | |
3899 | echo "configure:3900: checking for --enable-std_iostreams" >&5 | |
3900 | no_cache=0 | |
3901 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
3902 | if test "${enable_std_iostreams+set}" = set; then | |
3903 | enableval="$enable_std_iostreams" | |
3904 | ||
3905 | if test "$enableval" = yes; then | |
3906 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
3907 | else | |
3908 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
3909 | fi | |
3910 | ||
3911 | else | |
3912 | ||
3913 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` | |
3914 | if test "x$LINE" != x ; then | |
3915 | eval "DEFAULT_$LINE" | |
3916 | else | |
3917 | no_cache=1 | |
3918 | fi | |
3919 | ||
3920 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
3921 | ||
3922 | fi | |
3923 | ||
3924 | ||
3925 | eval "$ac_cv_use_std_iostreams" | |
3926 | if test "$no_cache" != 1; then | |
3927 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
3928 | fi | |
3929 | ||
3930 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
3931 | echo "$ac_t""yes" 1>&6 | |
3932 | else | |
3933 | echo "$ac_t""no" 1>&6 | |
3934 | fi | |
3935 | ||
3936 | ||
3937 | echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6 | |
3938 | echo "configure:3939: checking for --enable-filesystem" >&5 | |
3939 | no_cache=0 | |
3940 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
3941 | if test "${enable_filesystem+set}" = set; then | |
3942 | enableval="$enable_filesystem" | |
3943 | ||
3944 | if test "$enableval" = yes; then | |
3945 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
3946 | else | |
3947 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
3948 | fi | |
3949 | ||
3950 | else | |
3951 | ||
3952 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
3953 | if test "x$LINE" != x ; then | |
3954 | eval "DEFAULT_$LINE" | |
3955 | else | |
3956 | no_cache=1 | |
3957 | fi | |
3958 | ||
3959 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
3960 | ||
3961 | fi | |
3962 | ||
3963 | ||
3964 | eval "$ac_cv_use_filesystem" | |
3965 | if test "$no_cache" != 1; then | |
3966 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
3967 | fi | |
3968 | ||
3969 | if test "$wxUSE_FILESYSTEM" = yes; then | |
3970 | echo "$ac_t""yes" 1>&6 | |
3971 | else | |
3972 | echo "$ac_t""no" 1>&6 | |
3973 | fi | |
3974 | ||
3975 | ||
3976 | echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6 | |
3977 | echo "configure:3978: checking for --enable-fs_inet" >&5 | |
3978 | no_cache=0 | |
3979 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
3980 | if test "${enable_fs_inet+set}" = set; then | |
3981 | enableval="$enable_fs_inet" | |
3982 | ||
3983 | if test "$enableval" = yes; then | |
3984 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
3985 | else | |
3986 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
3987 | fi | |
3988 | ||
3989 | else | |
3990 | ||
3991 | LINE=`grep "wxUSE_FS_INET" ${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_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
3999 | ||
4000 | fi | |
4001 | ||
4002 | ||
4003 | eval "$ac_cv_use_fs_inet" | |
4004 | if test "$no_cache" != 1; then | |
4005 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
4006 | fi | |
4007 | ||
4008 | if test "$wxUSE_FS_INET" = yes; then | |
4009 | echo "$ac_t""yes" 1>&6 | |
4010 | else | |
4011 | echo "$ac_t""no" 1>&6 | |
4012 | fi | |
4013 | ||
4014 | ||
4015 | echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6 | |
4016 | echo "configure:4017: checking for --enable-fs_zip" >&5 | |
4017 | no_cache=0 | |
4018 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
4019 | if test "${enable_fs_zip+set}" = set; then | |
4020 | enableval="$enable_fs_zip" | |
4021 | ||
4022 | if test "$enableval" = yes; then | |
4023 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
4024 | else | |
4025 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
4026 | fi | |
4027 | ||
4028 | else | |
4029 | ||
4030 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
4031 | if test "x$LINE" != x ; then | |
4032 | eval "DEFAULT_$LINE" | |
4033 | else | |
4034 | no_cache=1 | |
4035 | fi | |
4036 | ||
4037 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
4038 | ||
4039 | fi | |
4040 | ||
4041 | ||
4042 | eval "$ac_cv_use_fs_zip" | |
4043 | if test "$no_cache" != 1; then | |
4044 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
4045 | fi | |
4046 | ||
4047 | if test "$wxUSE_FS_ZIP" = yes; then | |
4048 | echo "$ac_t""yes" 1>&6 | |
4049 | else | |
4050 | echo "$ac_t""no" 1>&6 | |
4051 | fi | |
4052 | ||
4053 | ||
4054 | echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6 | |
4055 | echo "configure:4056: checking for --enable-zipstream" >&5 | |
4056 | no_cache=0 | |
4057 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
4058 | if test "${enable_zipstream+set}" = set; then | |
4059 | enableval="$enable_zipstream" | |
4060 | ||
4061 | if test "$enableval" = yes; then | |
4062 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
4063 | else | |
4064 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
4065 | fi | |
4066 | ||
4067 | else | |
4068 | ||
4069 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
4070 | if test "x$LINE" != x ; then | |
4071 | eval "DEFAULT_$LINE" | |
4072 | else | |
4073 | no_cache=1 | |
4074 | fi | |
4075 | ||
4076 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
4077 | ||
4078 | fi | |
4079 | ||
4080 | ||
4081 | eval "$ac_cv_use_zipstream" | |
4082 | if test "$no_cache" != 1; then | |
4083 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4084 | fi | |
4085 | ||
4086 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
4087 | echo "$ac_t""yes" 1>&6 | |
4088 | else | |
4089 | echo "$ac_t""no" 1>&6 | |
4090 | fi | |
4091 | ||
4092 | ||
4093 | ||
4094 | echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6 | |
4095 | echo "configure:4096: checking for --enable-catch_segvs" >&5 | |
4096 | no_cache=0 | |
4097 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4098 | if test "${enable_catch_segvs+set}" = set; then | |
4099 | enableval="$enable_catch_segvs" | |
4100 | ||
4101 | if test "$enableval" = yes; then | |
4102 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4103 | else | |
4104 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4105 | fi | |
4106 | ||
4107 | else | |
4108 | ||
4109 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` | |
4110 | if test "x$LINE" != x ; then | |
4111 | eval "DEFAULT_$LINE" | |
4112 | else | |
4113 | no_cache=1 | |
4114 | fi | |
4115 | ||
4116 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
4117 | ||
4118 | fi | |
4119 | ||
4120 | ||
4121 | eval "$ac_cv_use_catch_segvs" | |
4122 | if test "$no_cache" != 1; then | |
4123 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4124 | fi | |
4125 | ||
4126 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
4127 | echo "$ac_t""yes" 1>&6 | |
4128 | else | |
4129 | echo "$ac_t""no" 1>&6 | |
4130 | fi | |
4131 | ||
4132 | ||
4133 | echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6 | |
4134 | echo "configure:4135: checking for --enable-snglinst" >&5 | |
4135 | no_cache=0 | |
4136 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4137 | if test "${enable_snglinst+set}" = set; then | |
4138 | enableval="$enable_snglinst" | |
4139 | ||
4140 | if test "$enableval" = yes; then | |
4141 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4142 | else | |
4143 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4144 | fi | |
4145 | ||
4146 | else | |
4147 | ||
4148 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` | |
4149 | if test "x$LINE" != x ; then | |
4150 | eval "DEFAULT_$LINE" | |
4151 | else | |
4152 | no_cache=1 | |
4153 | fi | |
4154 | ||
4155 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
4156 | ||
4157 | fi | |
4158 | ||
4159 | ||
4160 | eval "$ac_cv_use_snglinst" | |
4161 | if test "$no_cache" != 1; then | |
4162 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4163 | fi | |
4164 | ||
4165 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
4166 | echo "$ac_t""yes" 1>&6 | |
4167 | else | |
4168 | echo "$ac_t""no" 1>&6 | |
4169 | fi | |
4170 | ||
4171 | ||
4172 | ||
4173 | echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6 | |
4174 | echo "configure:4175: checking for --enable-mimetype" >&5 | |
4175 | no_cache=0 | |
4176 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4177 | if test "${enable_mimetype+set}" = set; then | |
4178 | enableval="$enable_mimetype" | |
4179 | ||
4180 | if test "$enableval" = yes; then | |
4181 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4182 | else | |
4183 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4184 | fi | |
4185 | ||
4186 | else | |
4187 | ||
4188 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
4189 | if test "x$LINE" != x ; then | |
4190 | eval "DEFAULT_$LINE" | |
4191 | else | |
4192 | no_cache=1 | |
4193 | fi | |
4194 | ||
4195 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
4196 | ||
4197 | fi | |
4198 | ||
4199 | ||
4200 | eval "$ac_cv_use_mimetype" | |
4201 | if test "$no_cache" != 1; then | |
4202 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4203 | fi | |
4204 | ||
4205 | if test "$wxUSE_MIMETYPE" = yes; then | |
4206 | echo "$ac_t""yes" 1>&6 | |
4207 | else | |
4208 | echo "$ac_t""no" 1>&6 | |
4209 | fi | |
4210 | ||
4211 | ||
4212 | echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6 | |
4213 | echo "configure:4214: checking for --enable-system_options" >&5 | |
4214 | no_cache=0 | |
4215 | # Check whether --enable-system_options or --disable-system_options was given. | |
4216 | if test "${enable_system_options+set}" = set; then | |
4217 | enableval="$enable_system_options" | |
4218 | ||
4219 | if test "$enableval" = yes; then | |
4220 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
4221 | else | |
4222 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
4223 | fi | |
4224 | ||
4225 | else | |
4226 | ||
4227 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
4228 | if test "x$LINE" != x ; then | |
4229 | eval "DEFAULT_$LINE" | |
4230 | else | |
4231 | no_cache=1 | |
4232 | fi | |
4233 | ||
4234 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
4235 | ||
4236 | fi | |
4237 | ||
4238 | ||
4239 | eval "$ac_cv_use_system_options" | |
4240 | if test "$no_cache" != 1; then | |
4241 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
4242 | fi | |
4243 | ||
4244 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
4245 | echo "$ac_t""yes" 1>&6 | |
4246 | else | |
4247 | echo "$ac_t""no" 1>&6 | |
4248 | fi | |
4249 | ||
4250 | ||
4251 | ||
4252 | ||
4253 | echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6 | |
4254 | echo "configure:4255: checking for --enable-threads" >&5 | |
4255 | no_cache=0 | |
4256 | # Check whether --enable-threads or --disable-threads was given. | |
4257 | if test "${enable_threads+set}" = set; then | |
4258 | enableval="$enable_threads" | |
4259 | ||
4260 | if test "$enableval" = yes; then | |
4261 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4262 | else | |
4263 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4264 | fi | |
4265 | ||
4266 | else | |
4267 | ||
4268 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
4269 | if test "x$LINE" != x ; then | |
4270 | eval "DEFAULT_$LINE" | |
4271 | else | |
4272 | no_cache=1 | |
4273 | fi | |
4274 | ||
4275 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
4276 | ||
4277 | fi | |
4278 | ||
4279 | ||
4280 | eval "$ac_cv_use_threads" | |
4281 | if test "$no_cache" != 1; then | |
4282 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4283 | fi | |
4284 | ||
4285 | if test "$wxUSE_THREADS" = yes; then | |
4286 | echo "$ac_t""yes" 1>&6 | |
4287 | else | |
4288 | echo "$ac_t""no" 1>&6 | |
4289 | fi | |
4290 | ||
4291 | ||
4292 | echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6 | |
4293 | echo "configure:4294: checking for --enable-serial" >&5 | |
4294 | no_cache=0 | |
4295 | # Check whether --enable-serial or --disable-serial was given. | |
4296 | if test "${enable_serial+set}" = set; then | |
4297 | enableval="$enable_serial" | |
4298 | ||
4299 | if test "$enableval" = yes; then | |
4300 | ac_cv_use_serial='wxUSE_SERIAL=yes' | |
4301 | else | |
4302 | ac_cv_use_serial='wxUSE_SERIAL=no' | |
4303 | fi | |
4304 | ||
4305 | else | |
4306 | ||
4307 | LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}` | |
4308 | if test "x$LINE" != x ; then | |
4309 | eval "DEFAULT_$LINE" | |
4310 | else | |
4311 | no_cache=1 | |
4312 | fi | |
4313 | ||
4314 | ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL | |
4315 | ||
4316 | fi | |
4317 | ||
4318 | ||
4319 | eval "$ac_cv_use_serial" | |
4320 | if test "$no_cache" != 1; then | |
4321 | echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp | |
4322 | fi | |
4323 | ||
4324 | if test "$wxUSE_SERIAL" = yes; then | |
4325 | echo "$ac_t""yes" 1>&6 | |
4326 | else | |
4327 | echo "$ac_t""no" 1>&6 | |
4328 | fi | |
4329 | ||
4330 | ||
4331 | if test "$wxUSE_GUI" = "yes"; then | |
4332 | ||
4333 | ||
4334 | ||
4335 | echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6 | |
4336 | echo "configure:4337: checking for --enable-docview" >&5 | |
4337 | no_cache=0 | |
4338 | # Check whether --enable-docview or --disable-docview was given. | |
4339 | if test "${enable_docview+set}" = set; then | |
4340 | enableval="$enable_docview" | |
4341 | ||
4342 | if test "$enableval" = yes; then | |
4343 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
4344 | else | |
4345 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
4346 | fi | |
4347 | ||
4348 | else | |
4349 | ||
4350 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
4351 | if test "x$LINE" != x ; then | |
4352 | eval "DEFAULT_$LINE" | |
4353 | else | |
4354 | no_cache=1 | |
4355 | fi | |
4356 | ||
4357 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
4358 | ||
4359 | fi | |
4360 | ||
4361 | ||
4362 | eval "$ac_cv_use_docview" | |
4363 | if test "$no_cache" != 1; then | |
4364 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
4365 | fi | |
4366 | ||
4367 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
4368 | echo "$ac_t""yes" 1>&6 | |
4369 | else | |
4370 | echo "$ac_t""no" 1>&6 | |
4371 | fi | |
4372 | ||
4373 | ||
4374 | echo $ac_n "checking for --enable-help""... $ac_c" 1>&6 | |
4375 | echo "configure:4376: checking for --enable-help" >&5 | |
4376 | no_cache=0 | |
4377 | # Check whether --enable-help or --disable-help was given. | |
4378 | if test "${enable_help+set}" = set; then | |
4379 | enableval="$enable_help" | |
4380 | ||
4381 | if test "$enableval" = yes; then | |
4382 | ac_cv_use_help='wxUSE_HELP=yes' | |
4383 | else | |
4384 | ac_cv_use_help='wxUSE_HELP=no' | |
4385 | fi | |
4386 | ||
4387 | else | |
4388 | ||
4389 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
4390 | if test "x$LINE" != x ; then | |
4391 | eval "DEFAULT_$LINE" | |
4392 | else | |
4393 | no_cache=1 | |
4394 | fi | |
4395 | ||
4396 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
4397 | ||
4398 | fi | |
4399 | ||
4400 | ||
4401 | eval "$ac_cv_use_help" | |
4402 | if test "$no_cache" != 1; then | |
4403 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
4404 | fi | |
4405 | ||
4406 | if test "$wxUSE_HELP" = yes; then | |
4407 | echo "$ac_t""yes" 1>&6 | |
4408 | else | |
4409 | echo "$ac_t""no" 1>&6 | |
4410 | fi | |
4411 | ||
4412 | ||
4413 | echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6 | |
4414 | echo "configure:4415: checking for --enable-mshtmlhelp" >&5 | |
4415 | no_cache=0 | |
4416 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
4417 | if test "${enable_mshtmlhelp+set}" = set; then | |
4418 | enableval="$enable_mshtmlhelp" | |
4419 | ||
4420 | if test "$enableval" = yes; then | |
4421 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
4422 | else | |
4423 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
4424 | fi | |
4425 | ||
4426 | else | |
4427 | ||
4428 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
4429 | if test "x$LINE" != x ; then | |
4430 | eval "DEFAULT_$LINE" | |
4431 | else | |
4432 | no_cache=1 | |
4433 | fi | |
4434 | ||
4435 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
4436 | ||
4437 | fi | |
4438 | ||
4439 | ||
4440 | eval "$ac_cv_use_mshtmlhelp" | |
4441 | if test "$no_cache" != 1; then | |
4442 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
4443 | fi | |
4444 | ||
4445 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
4446 | echo "$ac_t""yes" 1>&6 | |
4447 | else | |
4448 | echo "$ac_t""no" 1>&6 | |
4449 | fi | |
4450 | ||
4451 | ||
4452 | echo $ac_n "checking for --enable-html""... $ac_c" 1>&6 | |
4453 | echo "configure:4454: checking for --enable-html" >&5 | |
4454 | no_cache=0 | |
4455 | # Check whether --enable-html or --disable-html was given. | |
4456 | if test "${enable_html+set}" = set; then | |
4457 | enableval="$enable_html" | |
4458 | ||
4459 | if test "$enableval" = yes; then | |
4460 | ac_cv_use_html='wxUSE_HTML=yes' | |
4461 | else | |
4462 | ac_cv_use_html='wxUSE_HTML=no' | |
4463 | fi | |
4464 | ||
4465 | else | |
4466 | ||
4467 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
4468 | if test "x$LINE" != x ; then | |
4469 | eval "DEFAULT_$LINE" | |
4470 | else | |
4471 | no_cache=1 | |
4472 | fi | |
4473 | ||
4474 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
4475 | ||
4476 | fi | |
4477 | ||
4478 | ||
4479 | eval "$ac_cv_use_html" | |
4480 | if test "$no_cache" != 1; then | |
4481 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
4482 | fi | |
4483 | ||
4484 | if test "$wxUSE_HTML" = yes; then | |
4485 | echo "$ac_t""yes" 1>&6 | |
4486 | else | |
4487 | echo "$ac_t""no" 1>&6 | |
4488 | fi | |
4489 | ||
4490 | ||
4491 | echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6 | |
4492 | echo "configure:4493: checking for --enable-htmlhelp" >&5 | |
4493 | no_cache=0 | |
4494 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
4495 | if test "${enable_htmlhelp+set}" = set; then | |
4496 | enableval="$enable_htmlhelp" | |
4497 | ||
4498 | if test "$enableval" = yes; then | |
4499 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
4500 | else | |
4501 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
4502 | fi | |
4503 | ||
4504 | else | |
4505 | ||
4506 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
4507 | if test "x$LINE" != x ; then | |
4508 | eval "DEFAULT_$LINE" | |
4509 | else | |
4510 | no_cache=1 | |
4511 | fi | |
4512 | ||
4513 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
4514 | ||
4515 | fi | |
4516 | ||
4517 | ||
4518 | eval "$ac_cv_use_htmlhelp" | |
4519 | if test "$no_cache" != 1; then | |
4520 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
4521 | fi | |
4522 | ||
4523 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
4524 | echo "$ac_t""yes" 1>&6 | |
4525 | else | |
4526 | echo "$ac_t""no" 1>&6 | |
4527 | fi | |
4528 | ||
4529 | ||
4530 | echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6 | |
4531 | echo "configure:4532: checking for --enable-constraints" >&5 | |
4532 | no_cache=0 | |
4533 | # Check whether --enable-constraints or --disable-constraints was given. | |
4534 | if test "${enable_constraints+set}" = set; then | |
4535 | enableval="$enable_constraints" | |
4536 | ||
4537 | if test "$enableval" = yes; then | |
4538 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
4539 | else | |
4540 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
4541 | fi | |
4542 | ||
4543 | else | |
4544 | ||
4545 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
4546 | if test "x$LINE" != x ; then | |
4547 | eval "DEFAULT_$LINE" | |
4548 | else | |
4549 | no_cache=1 | |
4550 | fi | |
4551 | ||
4552 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
4553 | ||
4554 | fi | |
4555 | ||
4556 | ||
4557 | eval "$ac_cv_use_constraints" | |
4558 | if test "$no_cache" != 1; then | |
4559 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
4560 | fi | |
4561 | ||
4562 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
4563 | echo "$ac_t""yes" 1>&6 | |
4564 | else | |
4565 | echo "$ac_t""no" 1>&6 | |
4566 | fi | |
4567 | ||
4568 | ||
4569 | echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6 | |
4570 | echo "configure:4571: checking for --enable-printarch" >&5 | |
4571 | no_cache=0 | |
4572 | # Check whether --enable-printarch or --disable-printarch was given. | |
4573 | if test "${enable_printarch+set}" = set; then | |
4574 | enableval="$enable_printarch" | |
4575 | ||
4576 | if test "$enableval" = yes; then | |
4577 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
4578 | else | |
4579 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
4580 | fi | |
4581 | ||
4582 | else | |
4583 | ||
4584 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
4585 | if test "x$LINE" != x ; then | |
4586 | eval "DEFAULT_$LINE" | |
4587 | else | |
4588 | no_cache=1 | |
4589 | fi | |
4590 | ||
4591 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
4592 | ||
4593 | fi | |
4594 | ||
4595 | ||
4596 | eval "$ac_cv_use_printarch" | |
4597 | if test "$no_cache" != 1; then | |
4598 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
4599 | fi | |
4600 | ||
4601 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
4602 | echo "$ac_t""yes" 1>&6 | |
4603 | else | |
4604 | echo "$ac_t""no" 1>&6 | |
4605 | fi | |
4606 | ||
4607 | ||
4608 | echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6 | |
4609 | echo "configure:4610: checking for --enable-mdi" >&5 | |
4610 | no_cache=0 | |
4611 | # Check whether --enable-mdi or --disable-mdi was given. | |
4612 | if test "${enable_mdi+set}" = set; then | |
4613 | enableval="$enable_mdi" | |
4614 | ||
4615 | if test "$enableval" = yes; then | |
4616 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
4617 | else | |
4618 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
4619 | fi | |
4620 | ||
4621 | else | |
4622 | ||
4623 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
4624 | if test "x$LINE" != x ; then | |
4625 | eval "DEFAULT_$LINE" | |
4626 | else | |
4627 | no_cache=1 | |
4628 | fi | |
4629 | ||
4630 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
4631 | ||
4632 | fi | |
4633 | ||
4634 | ||
4635 | eval "$ac_cv_use_mdi" | |
4636 | if test "$no_cache" != 1; then | |
4637 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
4638 | fi | |
4639 | ||
4640 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
4641 | echo "$ac_t""yes" 1>&6 | |
4642 | else | |
4643 | echo "$ac_t""no" 1>&6 | |
4644 | fi | |
4645 | ||
4646 | ||
4647 | echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6 | |
4648 | echo "configure:4649: checking for --enable-loggui" >&5 | |
4649 | no_cache=0 | |
4650 | # Check whether --enable-loggui or --disable-loggui was given. | |
4651 | if test "${enable_loggui+set}" = set; then | |
4652 | enableval="$enable_loggui" | |
4653 | ||
4654 | if test "$enableval" = yes; then | |
4655 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
4656 | else | |
4657 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
4658 | fi | |
4659 | ||
4660 | else | |
4661 | ||
4662 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
4663 | if test "x$LINE" != x ; then | |
4664 | eval "DEFAULT_$LINE" | |
4665 | else | |
4666 | no_cache=1 | |
4667 | fi | |
4668 | ||
4669 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
4670 | ||
4671 | fi | |
4672 | ||
4673 | ||
4674 | eval "$ac_cv_use_loggui" | |
4675 | if test "$no_cache" != 1; then | |
4676 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
4677 | fi | |
4678 | ||
4679 | if test "$wxUSE_LOGGUI" = yes; then | |
4680 | echo "$ac_t""yes" 1>&6 | |
4681 | else | |
4682 | echo "$ac_t""no" 1>&6 | |
4683 | fi | |
4684 | ||
4685 | ||
4686 | echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6 | |
4687 | echo "configure:4688: checking for --enable-logwin" >&5 | |
4688 | no_cache=0 | |
4689 | # Check whether --enable-logwin or --disable-logwin was given. | |
4690 | if test "${enable_logwin+set}" = set; then | |
4691 | enableval="$enable_logwin" | |
4692 | ||
4693 | if test "$enableval" = yes; then | |
4694 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
4695 | else | |
4696 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
4697 | fi | |
4698 | ||
4699 | else | |
4700 | ||
4701 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
4702 | if test "x$LINE" != x ; then | |
4703 | eval "DEFAULT_$LINE" | |
4704 | else | |
4705 | no_cache=1 | |
4706 | fi | |
4707 | ||
4708 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
4709 | ||
4710 | fi | |
4711 | ||
4712 | ||
4713 | eval "$ac_cv_use_logwin" | |
4714 | if test "$no_cache" != 1; then | |
4715 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
4716 | fi | |
4717 | ||
4718 | if test "$wxUSE_LOGWINDOW" = yes; then | |
4719 | echo "$ac_t""yes" 1>&6 | |
4720 | else | |
4721 | echo "$ac_t""no" 1>&6 | |
4722 | fi | |
4723 | ||
4724 | ||
4725 | ||
4726 | echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6 | |
4727 | echo "configure:4728: checking for --enable-postscript" >&5 | |
4728 | no_cache=0 | |
4729 | # Check whether --enable-postscript or --disable-postscript was given. | |
4730 | if test "${enable_postscript+set}" = set; then | |
4731 | enableval="$enable_postscript" | |
4732 | ||
4733 | if test "$enableval" = yes; then | |
4734 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
4735 | else | |
4736 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
4737 | fi | |
4738 | ||
4739 | else | |
4740 | ||
4741 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
4742 | if test "x$LINE" != x ; then | |
4743 | eval "DEFAULT_$LINE" | |
4744 | else | |
4745 | no_cache=1 | |
4746 | fi | |
4747 | ||
4748 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
4749 | ||
4750 | fi | |
4751 | ||
4752 | ||
4753 | eval "$ac_cv_use_postscript" | |
4754 | if test "$no_cache" != 1; then | |
4755 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
4756 | fi | |
4757 | ||
4758 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
4759 | echo "$ac_t""yes" 1>&6 | |
4760 | else | |
4761 | echo "$ac_t""no" 1>&6 | |
4762 | fi | |
4763 | ||
4764 | ||
4765 | ||
4766 | ||
4767 | ||
4768 | echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6 | |
4769 | echo "configure:4770: checking for --enable-prologio" >&5 | |
4770 | no_cache=0 | |
4771 | # Check whether --enable-prologio or --disable-prologio was given. | |
4772 | if test "${enable_prologio+set}" = set; then | |
4773 | enableval="$enable_prologio" | |
4774 | ||
4775 | if test "$enableval" = yes; then | |
4776 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
4777 | else | |
4778 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
4779 | fi | |
4780 | ||
4781 | else | |
4782 | ||
4783 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
4784 | if test "x$LINE" != x ; then | |
4785 | eval "DEFAULT_$LINE" | |
4786 | else | |
4787 | no_cache=1 | |
4788 | fi | |
4789 | ||
4790 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
4791 | ||
4792 | fi | |
4793 | ||
4794 | ||
4795 | eval "$ac_cv_use_prologio" | |
4796 | if test "$no_cache" != 1; then | |
4797 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
4798 | fi | |
4799 | ||
4800 | if test "$wxUSE_PROLOGIO" = yes; then | |
4801 | echo "$ac_t""yes" 1>&6 | |
4802 | else | |
4803 | echo "$ac_t""no" 1>&6 | |
4804 | fi | |
4805 | ||
4806 | ||
4807 | echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6 | |
4808 | echo "configure:4809: checking for --enable-resources" >&5 | |
4809 | no_cache=0 | |
4810 | # Check whether --enable-resources or --disable-resources was given. | |
4811 | if test "${enable_resources+set}" = set; then | |
4812 | enableval="$enable_resources" | |
4813 | ||
4814 | if test "$enableval" = yes; then | |
4815 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
4816 | else | |
4817 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
4818 | fi | |
4819 | ||
4820 | else | |
4821 | ||
4822 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
4823 | if test "x$LINE" != x ; then | |
4824 | eval "DEFAULT_$LINE" | |
4825 | else | |
4826 | no_cache=1 | |
4827 | fi | |
4828 | ||
4829 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
4830 | ||
4831 | fi | |
4832 | ||
4833 | ||
4834 | eval "$ac_cv_use_resources" | |
4835 | if test "$no_cache" != 1; then | |
4836 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
4837 | fi | |
4838 | ||
4839 | if test "$wxUSE_RESOURCES" = yes; then | |
4840 | echo "$ac_t""yes" 1>&6 | |
4841 | else | |
4842 | echo "$ac_t""no" 1>&6 | |
4843 | fi | |
4844 | ||
4845 | ||
4846 | ||
4847 | echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6 | |
4848 | echo "configure:4849: checking for --enable-xresources" >&5 | |
4849 | no_cache=0 | |
4850 | # Check whether --enable-xresources or --disable-xresources was given. | |
4851 | if test "${enable_xresources+set}" = set; then | |
4852 | enableval="$enable_xresources" | |
4853 | ||
4854 | if test "$enableval" = yes; then | |
4855 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
4856 | else | |
4857 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
4858 | fi | |
4859 | ||
4860 | else | |
4861 | ||
4862 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` | |
4863 | if test "x$LINE" != x ; then | |
4864 | eval "DEFAULT_$LINE" | |
4865 | else | |
4866 | no_cache=1 | |
4867 | fi | |
4868 | ||
4869 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
4870 | ||
4871 | fi | |
4872 | ||
4873 | ||
4874 | eval "$ac_cv_use_xresources" | |
4875 | if test "$no_cache" != 1; then | |
4876 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
4877 | fi | |
4878 | ||
4879 | if test "$wxUSE_X_RESOURCES" = yes; then | |
4880 | echo "$ac_t""yes" 1>&6 | |
4881 | else | |
4882 | echo "$ac_t""no" 1>&6 | |
4883 | fi | |
4884 | ||
4885 | ||
4886 | ||
4887 | ||
4888 | echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6 | |
4889 | echo "configure:4890: checking for --enable-clipboard" >&5 | |
4890 | no_cache=0 | |
4891 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
4892 | if test "${enable_clipboard+set}" = set; then | |
4893 | enableval="$enable_clipboard" | |
4894 | ||
4895 | if test "$enableval" = yes; then | |
4896 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
4897 | else | |
4898 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
4899 | fi | |
4900 | ||
4901 | else | |
4902 | ||
4903 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
4904 | if test "x$LINE" != x ; then | |
4905 | eval "DEFAULT_$LINE" | |
4906 | else | |
4907 | no_cache=1 | |
4908 | fi | |
4909 | ||
4910 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
4911 | ||
4912 | fi | |
4913 | ||
4914 | ||
4915 | eval "$ac_cv_use_clipboard" | |
4916 | if test "$no_cache" != 1; then | |
4917 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
4918 | fi | |
4919 | ||
4920 | if test "$wxUSE_CLIPBOARD" = yes; then | |
4921 | echo "$ac_t""yes" 1>&6 | |
4922 | else | |
4923 | echo "$ac_t""no" 1>&6 | |
4924 | fi | |
4925 | ||
4926 | ||
4927 | echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6 | |
4928 | echo "configure:4929: checking for --enable-dnd" >&5 | |
4929 | no_cache=0 | |
4930 | # Check whether --enable-dnd or --disable-dnd was given. | |
4931 | if test "${enable_dnd+set}" = set; then | |
4932 | enableval="$enable_dnd" | |
4933 | ||
4934 | if test "$enableval" = yes; then | |
4935 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
4936 | else | |
4937 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
4938 | fi | |
4939 | ||
4940 | else | |
4941 | ||
4942 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
4943 | if test "x$LINE" != x ; then | |
4944 | eval "DEFAULT_$LINE" | |
4945 | else | |
4946 | no_cache=1 | |
4947 | fi | |
4948 | ||
4949 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
4950 | ||
4951 | fi | |
4952 | ||
4953 | ||
4954 | eval "$ac_cv_use_dnd" | |
4955 | if test "$no_cache" != 1; then | |
4956 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
4957 | fi | |
4958 | ||
4959 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
4960 | echo "$ac_t""yes" 1>&6 | |
4961 | else | |
4962 | echo "$ac_t""no" 1>&6 | |
4963 | fi | |
4964 | ||
4965 | ||
4966 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 | |
4967 | echo "configure:4968: checking for --enable-metafile" >&5 | |
4968 | no_cache=0 | |
4969 | # Check whether --enable-metafile or --disable-metafile was given. | |
4970 | if test "${enable_metafile+set}" = set; then | |
4971 | enableval="$enable_metafile" | |
4972 | ||
4973 | if test "$enableval" = yes; then | |
4974 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
4975 | else | |
4976 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
4977 | fi | |
4978 | ||
4979 | else | |
4980 | ||
4981 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
4982 | if test "x$LINE" != x ; then | |
4983 | eval "DEFAULT_$LINE" | |
4984 | else | |
4985 | no_cache=1 | |
4986 | fi | |
4987 | ||
4988 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
4989 | ||
4990 | fi | |
4991 | ||
4992 | ||
4993 | eval "$ac_cv_use_metafile" | |
4994 | if test "$no_cache" != 1; then | |
4995 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
4996 | fi | |
4997 | ||
4998 | if test "$wxUSE_METAFILE" = yes; then | |
4999 | echo "$ac_t""yes" 1>&6 | |
5000 | else | |
5001 | echo "$ac_t""no" 1>&6 | |
5002 | fi | |
5003 | ||
5004 | ||
5005 | ||
5006 | echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6 | |
5007 | echo "configure:5008: checking for --enable-treelayout" >&5 | |
5008 | no_cache=0 | |
5009 | # Check whether --enable-treelayout or --disable-treelayout was given. | |
5010 | if test "${enable_treelayout+set}" = set; then | |
5011 | enableval="$enable_treelayout" | |
5012 | ||
5013 | if test "$enableval" = yes; then | |
5014 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes' | |
5015 | else | |
5016 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=no' | |
5017 | fi | |
5018 | ||
5019 | else | |
5020 | ||
5021 | LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}` | |
5022 | if test "x$LINE" != x ; then | |
5023 | eval "DEFAULT_$LINE" | |
5024 | else | |
5025 | no_cache=1 | |
5026 | fi | |
5027 | ||
5028 | ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT | |
5029 | ||
5030 | fi | |
5031 | ||
5032 | ||
5033 | eval "$ac_cv_use_treelayout" | |
5034 | if test "$no_cache" != 1; then | |
5035 | echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp | |
5036 | fi | |
5037 | ||
5038 | if test "$wxUSE_TREELAYOUT" = yes; then | |
5039 | echo "$ac_t""yes" 1>&6 | |
5040 | else | |
5041 | echo "$ac_t""no" 1>&6 | |
5042 | fi | |
5043 | ||
5044 | ||
5045 | ||
5046 | ||
5047 | echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6 | |
5048 | echo "configure:5049: checking for --enable-controls" >&5 | |
5049 | no_cache=0 | |
5050 | # Check whether --enable-controls or --disable-controls was given. | |
5051 | if test "${enable_controls+set}" = set; then | |
5052 | enableval="$enable_controls" | |
5053 | ||
5054 | if test "$enableval" = yes; then | |
5055 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
5056 | else | |
5057 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
5058 | fi | |
5059 | ||
5060 | else | |
5061 | ||
5062 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
5063 | if test "x$LINE" != x ; then | |
5064 | eval "DEFAULT_$LINE" | |
5065 | else | |
5066 | no_cache=1 | |
5067 | fi | |
5068 | ||
5069 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
5070 | ||
5071 | fi | |
5072 | ||
5073 | ||
5074 | eval "$ac_cv_use_controls" | |
5075 | if test "$no_cache" != 1; then | |
5076 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
5077 | fi | |
5078 | ||
5079 | if test "$wxUSE_CONTROLS" = yes; then | |
5080 | echo "$ac_t""yes" 1>&6 | |
5081 | else | |
5082 | echo "$ac_t""no" 1>&6 | |
5083 | fi | |
5084 | ||
5085 | ||
5086 | if test "$wxUSE_CONTROLS" = "yes"; then | |
5087 | DEFAULT_wxUSE_ACCEL=yes | |
5088 | DEFAULT_wxUSE_BMPBUTTON=yes | |
5089 | DEFAULT_wxUSE_BUTTON=yes | |
5090 | DEFAULT_wxUSE_CALCTRL=no | |
5091 | DEFAULT_wxUSE_CARET=yes | |
5092 | DEFAULT_wxUSE_COMBOBOX=yes | |
5093 | DEFAULT_wxUSE_CHECKBOX=yes | |
5094 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
5095 | DEFAULT_wxUSE_CHOICE=yes | |
5096 | DEFAULT_wxUSE_GAUGE=yes | |
5097 | DEFAULT_wxUSE_GRID=yes | |
5098 | DEFAULT_wxUSE_NEW_GRID=yes | |
5099 | DEFAULT_wxUSE_IMAGLIST=yes | |
5100 | DEFAULT_wxUSE_LISTBOX=yes | |
5101 | DEFAULT_wxUSE_LISTCTRL=yes | |
5102 | DEFAULT_wxUSE_NOTEBOOK=yes | |
5103 | DEFAULT_wxUSE_PROPSHEET=yes | |
5104 | DEFAULT_wxUSE_RADIOBOX=yes | |
5105 | DEFAULT_wxUSE_RADIOBTN=yes | |
5106 | DEFAULT_wxUSE_SASH=yes | |
5107 | DEFAULT_wxUSE_SCROLLBAR=yes | |
5108 | DEFAULT_wxUSE_SLIDER=yes | |
5109 | DEFAULT_wxUSE_SPINBTN=yes | |
5110 | DEFAULT_wxUSE_SPINCTRL=yes | |
5111 | DEFAULT_wxUSE_SPLITTER=yes | |
5112 | DEFAULT_wxUSE_STATBMP=yes | |
5113 | DEFAULT_wxUSE_STATBOX=yes | |
5114 | DEFAULT_wxUSE_STATLINE=yes | |
5115 | DEFAULT_wxUSE_STATUSBAR=yes | |
5116 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
5117 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
5118 | DEFAULT_wxUSE_TOOLBAR=yes | |
5119 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
5120 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
5121 | DEFAULT_wxUSE_TOOLTIPS=yes | |
5122 | DEFAULT_wxUSE_TREECTRL=yes | |
5123 | DEFAULT_wxUSE_POPUPWIN=yes | |
5124 | elif test "$wxUSE_CONTROLS" = "no"; then | |
5125 | DEFAULT_wxUSE_ACCEL=no | |
5126 | DEFAULT_wxUSE_BMPBUTTON=no | |
5127 | DEFAULT_wxUSE_BUTTON=no | |
5128 | DEFAULT_wxUSE_CALCTRL=no | |
5129 | DEFAULT_wxUSE_CARET=no | |
5130 | DEFAULT_wxUSE_COMBOBOX=no | |
5131 | DEFAULT_wxUSE_CHECKBOX=no | |
5132 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5133 | DEFAULT_wxUSE_CHOICE=no | |
5134 | DEFAULT_wxUSE_GAUGE=no | |
5135 | DEFAULT_wxUSE_GRID=no | |
5136 | DEFAULT_wxUSE_NEW_GRID=no | |
5137 | DEFAULT_wxUSE_IMAGLIST=no | |
5138 | DEFAULT_wxUSE_LISTBOX=no | |
5139 | DEFAULT_wxUSE_LISTCTRL=no | |
5140 | DEFAULT_wxUSE_NOTEBOOK=no | |
5141 | DEFAULT_wxUSE_PROPSHEET=no | |
5142 | DEFAULT_wxUSE_RADIOBOX=no | |
5143 | DEFAULT_wxUSE_RADIOBTN=no | |
5144 | DEFAULT_wxUSE_SASH=no | |
5145 | DEFAULT_wxUSE_SCROLLBAR=no | |
5146 | DEFAULT_wxUSE_SLIDER=no | |
5147 | DEFAULT_wxUSE_SPINBTN=no | |
5148 | DEFAULT_wxUSE_SPINCTRL=no | |
5149 | DEFAULT_wxUSE_SPLITTER=no | |
5150 | DEFAULT_wxUSE_STATBMP=no | |
5151 | DEFAULT_wxUSE_STATBOX=no | |
5152 | DEFAULT_wxUSE_STATLINE=no | |
5153 | DEFAULT_wxUSE_STATUSBAR=no | |
5154 | DEFAULT_wxUSE_TAB_DIALOG=no | |
5155 | DEFAULT_wxUSE_TOGGLEBTN=no | |
5156 | DEFAULT_wxUSE_TOOLBAR=no | |
5157 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
5158 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
5159 | DEFAULT_wxUSE_TOOLTIPS=no | |
5160 | DEFAULT_wxUSE_TREECTRL=no | |
5161 | DEFAULT_wxUSE_POPUPWIN=no | |
5162 | fi | |
5163 | ||
5164 | ||
5165 | echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6 | |
5166 | echo "configure:5167: checking for --enable-accel" >&5 | |
5167 | no_cache=0 | |
5168 | # Check whether --enable-accel or --disable-accel was given. | |
5169 | if test "${enable_accel+set}" = set; then | |
5170 | enableval="$enable_accel" | |
5171 | ||
5172 | if test "$enableval" = yes; then | |
5173 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5174 | else | |
5175 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5176 | fi | |
5177 | ||
5178 | else | |
5179 | ||
5180 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
5181 | if test "x$LINE" != x ; then | |
5182 | eval "DEFAULT_$LINE" | |
5183 | else | |
5184 | no_cache=1 | |
5185 | fi | |
5186 | ||
5187 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
5188 | ||
5189 | fi | |
5190 | ||
5191 | ||
5192 | eval "$ac_cv_use_accel" | |
5193 | if test "$no_cache" != 1; then | |
5194 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5195 | fi | |
5196 | ||
5197 | if test "$wxUSE_ACCEL" = yes; then | |
5198 | echo "$ac_t""yes" 1>&6 | |
5199 | else | |
5200 | echo "$ac_t""no" 1>&6 | |
5201 | fi | |
5202 | ||
5203 | ||
5204 | echo $ac_n "checking for --enable-button""... $ac_c" 1>&6 | |
5205 | echo "configure:5206: checking for --enable-button" >&5 | |
5206 | no_cache=0 | |
5207 | # Check whether --enable-button or --disable-button was given. | |
5208 | if test "${enable_button+set}" = set; then | |
5209 | enableval="$enable_button" | |
5210 | ||
5211 | if test "$enableval" = yes; then | |
5212 | ac_cv_use_button='wxUSE_BUTTON=yes' | |
5213 | else | |
5214 | ac_cv_use_button='wxUSE_BUTTON=no' | |
5215 | fi | |
5216 | ||
5217 | else | |
5218 | ||
5219 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` | |
5220 | if test "x$LINE" != x ; then | |
5221 | eval "DEFAULT_$LINE" | |
5222 | else | |
5223 | no_cache=1 | |
5224 | fi | |
5225 | ||
5226 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON | |
5227 | ||
5228 | fi | |
5229 | ||
5230 | ||
5231 | eval "$ac_cv_use_button" | |
5232 | if test "$no_cache" != 1; then | |
5233 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp | |
5234 | fi | |
5235 | ||
5236 | if test "$wxUSE_BUTTON" = yes; then | |
5237 | echo "$ac_t""yes" 1>&6 | |
5238 | else | |
5239 | echo "$ac_t""no" 1>&6 | |
5240 | fi | |
5241 | ||
5242 | ||
5243 | echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6 | |
5244 | echo "configure:5245: checking for --enable-bmpbutton" >&5 | |
5245 | no_cache=0 | |
5246 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
5247 | if test "${enable_bmpbutton+set}" = set; then | |
5248 | enableval="$enable_bmpbutton" | |
5249 | ||
5250 | if test "$enableval" = yes; then | |
5251 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
5252 | else | |
5253 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
5254 | fi | |
5255 | ||
5256 | else | |
5257 | ||
5258 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
5259 | if test "x$LINE" != x ; then | |
5260 | eval "DEFAULT_$LINE" | |
5261 | else | |
5262 | no_cache=1 | |
5263 | fi | |
5264 | ||
5265 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
5266 | ||
5267 | fi | |
5268 | ||
5269 | ||
5270 | eval "$ac_cv_use_bmpbutton" | |
5271 | if test "$no_cache" != 1; then | |
5272 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5273 | fi | |
5274 | ||
5275 | if test "$wxUSE_BMPBUTTON" = yes; then | |
5276 | echo "$ac_t""yes" 1>&6 | |
5277 | else | |
5278 | echo "$ac_t""no" 1>&6 | |
5279 | fi | |
5280 | ||
5281 | ||
5282 | echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6 | |
5283 | echo "configure:5284: checking for --enable-calendar" >&5 | |
5284 | no_cache=0 | |
5285 | # Check whether --enable-calendar or --disable-calendar was given. | |
5286 | if test "${enable_calendar+set}" = set; then | |
5287 | enableval="$enable_calendar" | |
5288 | ||
5289 | if test "$enableval" = yes; then | |
5290 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
5291 | else | |
5292 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
5293 | fi | |
5294 | ||
5295 | else | |
5296 | ||
5297 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
5298 | if test "x$LINE" != x ; then | |
5299 | eval "DEFAULT_$LINE" | |
5300 | else | |
5301 | no_cache=1 | |
5302 | fi | |
5303 | ||
5304 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
5305 | ||
5306 | fi | |
5307 | ||
5308 | ||
5309 | eval "$ac_cv_use_calendar" | |
5310 | if test "$no_cache" != 1; then | |
5311 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
5312 | fi | |
5313 | ||
5314 | if test "$wxUSE_CALCTRL" = yes; then | |
5315 | echo "$ac_t""yes" 1>&6 | |
5316 | else | |
5317 | echo "$ac_t""no" 1>&6 | |
5318 | fi | |
5319 | ||
5320 | ||
5321 | echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6 | |
5322 | echo "configure:5323: checking for --enable-caret" >&5 | |
5323 | no_cache=0 | |
5324 | # Check whether --enable-caret or --disable-caret was given. | |
5325 | if test "${enable_caret+set}" = set; then | |
5326 | enableval="$enable_caret" | |
5327 | ||
5328 | if test "$enableval" = yes; then | |
5329 | ac_cv_use_caret='wxUSE_CARET=yes' | |
5330 | else | |
5331 | ac_cv_use_caret='wxUSE_CARET=no' | |
5332 | fi | |
5333 | ||
5334 | else | |
5335 | ||
5336 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
5337 | if test "x$LINE" != x ; then | |
5338 | eval "DEFAULT_$LINE" | |
5339 | else | |
5340 | no_cache=1 | |
5341 | fi | |
5342 | ||
5343 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
5344 | ||
5345 | fi | |
5346 | ||
5347 | ||
5348 | eval "$ac_cv_use_caret" | |
5349 | if test "$no_cache" != 1; then | |
5350 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
5351 | fi | |
5352 | ||
5353 | if test "$wxUSE_CARET" = yes; then | |
5354 | echo "$ac_t""yes" 1>&6 | |
5355 | else | |
5356 | echo "$ac_t""no" 1>&6 | |
5357 | fi | |
5358 | ||
5359 | ||
5360 | echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6 | |
5361 | echo "configure:5362: checking for --enable-checkbox" >&5 | |
5362 | no_cache=0 | |
5363 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
5364 | if test "${enable_checkbox+set}" = set; then | |
5365 | enableval="$enable_checkbox" | |
5366 | ||
5367 | if test "$enableval" = yes; then | |
5368 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
5369 | else | |
5370 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
5371 | fi | |
5372 | ||
5373 | else | |
5374 | ||
5375 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
5376 | if test "x$LINE" != x ; then | |
5377 | eval "DEFAULT_$LINE" | |
5378 | else | |
5379 | no_cache=1 | |
5380 | fi | |
5381 | ||
5382 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
5383 | ||
5384 | fi | |
5385 | ||
5386 | ||
5387 | eval "$ac_cv_use_checkbox" | |
5388 | if test "$no_cache" != 1; then | |
5389 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
5390 | fi | |
5391 | ||
5392 | if test "$wxUSE_CHECKBOX" = yes; then | |
5393 | echo "$ac_t""yes" 1>&6 | |
5394 | else | |
5395 | echo "$ac_t""no" 1>&6 | |
5396 | fi | |
5397 | ||
5398 | ||
5399 | echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6 | |
5400 | echo "configure:5401: checking for --enable-checklst" >&5 | |
5401 | no_cache=0 | |
5402 | # Check whether --enable-checklst or --disable-checklst was given. | |
5403 | if test "${enable_checklst+set}" = set; then | |
5404 | enableval="$enable_checklst" | |
5405 | ||
5406 | if test "$enableval" = yes; then | |
5407 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
5408 | else | |
5409 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
5410 | fi | |
5411 | ||
5412 | else | |
5413 | ||
5414 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
5415 | if test "x$LINE" != x ; then | |
5416 | eval "DEFAULT_$LINE" | |
5417 | else | |
5418 | no_cache=1 | |
5419 | fi | |
5420 | ||
5421 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
5422 | ||
5423 | fi | |
5424 | ||
5425 | ||
5426 | eval "$ac_cv_use_checklst" | |
5427 | if test "$no_cache" != 1; then | |
5428 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
5429 | fi | |
5430 | ||
5431 | if test "$wxUSE_CHECKLST" = yes; then | |
5432 | echo "$ac_t""yes" 1>&6 | |
5433 | else | |
5434 | echo "$ac_t""no" 1>&6 | |
5435 | fi | |
5436 | ||
5437 | ||
5438 | echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6 | |
5439 | echo "configure:5440: checking for --enable-choice" >&5 | |
5440 | no_cache=0 | |
5441 | # Check whether --enable-choice or --disable-choice was given. | |
5442 | if test "${enable_choice+set}" = set; then | |
5443 | enableval="$enable_choice" | |
5444 | ||
5445 | if test "$enableval" = yes; then | |
5446 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
5447 | else | |
5448 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
5449 | fi | |
5450 | ||
5451 | else | |
5452 | ||
5453 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
5454 | if test "x$LINE" != x ; then | |
5455 | eval "DEFAULT_$LINE" | |
5456 | else | |
5457 | no_cache=1 | |
5458 | fi | |
5459 | ||
5460 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
5461 | ||
5462 | fi | |
5463 | ||
5464 | ||
5465 | eval "$ac_cv_use_choice" | |
5466 | if test "$no_cache" != 1; then | |
5467 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
5468 | fi | |
5469 | ||
5470 | if test "$wxUSE_CHOICE" = yes; then | |
5471 | echo "$ac_t""yes" 1>&6 | |
5472 | else | |
5473 | echo "$ac_t""no" 1>&6 | |
5474 | fi | |
5475 | ||
5476 | ||
5477 | echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6 | |
5478 | echo "configure:5479: checking for --enable-combobox" >&5 | |
5479 | no_cache=0 | |
5480 | # Check whether --enable-combobox or --disable-combobox was given. | |
5481 | if test "${enable_combobox+set}" = set; then | |
5482 | enableval="$enable_combobox" | |
5483 | ||
5484 | if test "$enableval" = yes; then | |
5485 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
5486 | else | |
5487 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
5488 | fi | |
5489 | ||
5490 | else | |
5491 | ||
5492 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
5493 | if test "x$LINE" != x ; then | |
5494 | eval "DEFAULT_$LINE" | |
5495 | else | |
5496 | no_cache=1 | |
5497 | fi | |
5498 | ||
5499 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
5500 | ||
5501 | fi | |
5502 | ||
5503 | ||
5504 | eval "$ac_cv_use_combobox" | |
5505 | if test "$no_cache" != 1; then | |
5506 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
5507 | fi | |
5508 | ||
5509 | if test "$wxUSE_COMBOBOX" = yes; then | |
5510 | echo "$ac_t""yes" 1>&6 | |
5511 | else | |
5512 | echo "$ac_t""no" 1>&6 | |
5513 | fi | |
5514 | ||
5515 | ||
5516 | echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6 | |
5517 | echo "configure:5518: checking for --enable-gauge" >&5 | |
5518 | no_cache=0 | |
5519 | # Check whether --enable-gauge or --disable-gauge was given. | |
5520 | if test "${enable_gauge+set}" = set; then | |
5521 | enableval="$enable_gauge" | |
5522 | ||
5523 | if test "$enableval" = yes; then | |
5524 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
5525 | else | |
5526 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
5527 | fi | |
5528 | ||
5529 | else | |
5530 | ||
5531 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
5532 | if test "x$LINE" != x ; then | |
5533 | eval "DEFAULT_$LINE" | |
5534 | else | |
5535 | no_cache=1 | |
5536 | fi | |
5537 | ||
5538 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
5539 | ||
5540 | fi | |
5541 | ||
5542 | ||
5543 | eval "$ac_cv_use_gauge" | |
5544 | if test "$no_cache" != 1; then | |
5545 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
5546 | fi | |
5547 | ||
5548 | if test "$wxUSE_GAUGE" = yes; then | |
5549 | echo "$ac_t""yes" 1>&6 | |
5550 | else | |
5551 | echo "$ac_t""no" 1>&6 | |
5552 | fi | |
5553 | ||
5554 | ||
5555 | echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6 | |
5556 | echo "configure:5557: checking for --enable-grid" >&5 | |
5557 | no_cache=0 | |
5558 | # Check whether --enable-grid or --disable-grid was given. | |
5559 | if test "${enable_grid+set}" = set; then | |
5560 | enableval="$enable_grid" | |
5561 | ||
5562 | if test "$enableval" = yes; then | |
5563 | ac_cv_use_grid='wxUSE_GRID=yes' | |
5564 | else | |
5565 | ac_cv_use_grid='wxUSE_GRID=no' | |
5566 | fi | |
5567 | ||
5568 | else | |
5569 | ||
5570 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
5571 | if test "x$LINE" != x ; then | |
5572 | eval "DEFAULT_$LINE" | |
5573 | else | |
5574 | no_cache=1 | |
5575 | fi | |
5576 | ||
5577 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
5578 | ||
5579 | fi | |
5580 | ||
5581 | ||
5582 | eval "$ac_cv_use_grid" | |
5583 | if test "$no_cache" != 1; then | |
5584 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
5585 | fi | |
5586 | ||
5587 | if test "$wxUSE_GRID" = yes; then | |
5588 | echo "$ac_t""yes" 1>&6 | |
5589 | else | |
5590 | echo "$ac_t""no" 1>&6 | |
5591 | fi | |
5592 | ||
5593 | ||
5594 | echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6 | |
5595 | echo "configure:5596: checking for --enable-newgrid" >&5 | |
5596 | no_cache=0 | |
5597 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
5598 | if test "${enable_newgrid+set}" = set; then | |
5599 | enableval="$enable_newgrid" | |
5600 | ||
5601 | if test "$enableval" = yes; then | |
5602 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
5603 | else | |
5604 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
5605 | fi | |
5606 | ||
5607 | else | |
5608 | ||
5609 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` | |
5610 | if test "x$LINE" != x ; then | |
5611 | eval "DEFAULT_$LINE" | |
5612 | else | |
5613 | no_cache=1 | |
5614 | fi | |
5615 | ||
5616 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
5617 | ||
5618 | fi | |
5619 | ||
5620 | ||
5621 | eval "$ac_cv_use_newgrid" | |
5622 | if test "$no_cache" != 1; then | |
5623 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
5624 | fi | |
5625 | ||
5626 | if test "$wxUSE_NEW_GRID" = yes; then | |
5627 | echo "$ac_t""yes" 1>&6 | |
5628 | else | |
5629 | echo "$ac_t""no" 1>&6 | |
5630 | fi | |
5631 | ||
5632 | ||
5633 | echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6 | |
5634 | echo "configure:5635: checking for --enable-imaglist" >&5 | |
5635 | no_cache=0 | |
5636 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
5637 | if test "${enable_imaglist+set}" = set; then | |
5638 | enableval="$enable_imaglist" | |
5639 | ||
5640 | if test "$enableval" = yes; then | |
5641 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
5642 | else | |
5643 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
5644 | fi | |
5645 | ||
5646 | else | |
5647 | ||
5648 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
5649 | if test "x$LINE" != x ; then | |
5650 | eval "DEFAULT_$LINE" | |
5651 | else | |
5652 | no_cache=1 | |
5653 | fi | |
5654 | ||
5655 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
5656 | ||
5657 | fi | |
5658 | ||
5659 | ||
5660 | eval "$ac_cv_use_imaglist" | |
5661 | if test "$no_cache" != 1; then | |
5662 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
5663 | fi | |
5664 | ||
5665 | if test "$wxUSE_IMAGLIST" = yes; then | |
5666 | echo "$ac_t""yes" 1>&6 | |
5667 | else | |
5668 | echo "$ac_t""no" 1>&6 | |
5669 | fi | |
5670 | ||
5671 | ||
5672 | echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6 | |
5673 | echo "configure:5674: checking for --enable-listbox" >&5 | |
5674 | no_cache=0 | |
5675 | # Check whether --enable-listbox or --disable-listbox was given. | |
5676 | if test "${enable_listbox+set}" = set; then | |
5677 | enableval="$enable_listbox" | |
5678 | ||
5679 | if test "$enableval" = yes; then | |
5680 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
5681 | else | |
5682 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
5683 | fi | |
5684 | ||
5685 | else | |
5686 | ||
5687 | LINE=`grep "wxUSE_LISTBOX" ${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_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
5695 | ||
5696 | fi | |
5697 | ||
5698 | ||
5699 | eval "$ac_cv_use_listbox" | |
5700 | if test "$no_cache" != 1; then | |
5701 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
5702 | fi | |
5703 | ||
5704 | if test "$wxUSE_LISTBOX" = yes; then | |
5705 | echo "$ac_t""yes" 1>&6 | |
5706 | else | |
5707 | echo "$ac_t""no" 1>&6 | |
5708 | fi | |
5709 | ||
5710 | ||
5711 | echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6 | |
5712 | echo "configure:5713: checking for --enable-listctrl" >&5 | |
5713 | no_cache=0 | |
5714 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
5715 | if test "${enable_listctrl+set}" = set; then | |
5716 | enableval="$enable_listctrl" | |
5717 | ||
5718 | if test "$enableval" = yes; then | |
5719 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
5720 | else | |
5721 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
5722 | fi | |
5723 | ||
5724 | else | |
5725 | ||
5726 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
5727 | if test "x$LINE" != x ; then | |
5728 | eval "DEFAULT_$LINE" | |
5729 | else | |
5730 | no_cache=1 | |
5731 | fi | |
5732 | ||
5733 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
5734 | ||
5735 | fi | |
5736 | ||
5737 | ||
5738 | eval "$ac_cv_use_listctrl" | |
5739 | if test "$no_cache" != 1; then | |
5740 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
5741 | fi | |
5742 | ||
5743 | if test "$wxUSE_LISTCTRL" = yes; then | |
5744 | echo "$ac_t""yes" 1>&6 | |
5745 | else | |
5746 | echo "$ac_t""no" 1>&6 | |
5747 | fi | |
5748 | ||
5749 | ||
5750 | echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6 | |
5751 | echo "configure:5752: checking for --enable-notebook" >&5 | |
5752 | no_cache=0 | |
5753 | # Check whether --enable-notebook or --disable-notebook was given. | |
5754 | if test "${enable_notebook+set}" = set; then | |
5755 | enableval="$enable_notebook" | |
5756 | ||
5757 | if test "$enableval" = yes; then | |
5758 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
5759 | else | |
5760 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
5761 | fi | |
5762 | ||
5763 | else | |
5764 | ||
5765 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
5766 | if test "x$LINE" != x ; then | |
5767 | eval "DEFAULT_$LINE" | |
5768 | else | |
5769 | no_cache=1 | |
5770 | fi | |
5771 | ||
5772 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
5773 | ||
5774 | fi | |
5775 | ||
5776 | ||
5777 | eval "$ac_cv_use_notebook" | |
5778 | if test "$no_cache" != 1; then | |
5779 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
5780 | fi | |
5781 | ||
5782 | if test "$wxUSE_NOTEBOOK" = yes; then | |
5783 | echo "$ac_t""yes" 1>&6 | |
5784 | else | |
5785 | echo "$ac_t""no" 1>&6 | |
5786 | fi | |
5787 | ||
5788 | ||
5789 | echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6 | |
5790 | echo "configure:5791: checking for --enable-propsheet" >&5 | |
5791 | no_cache=0 | |
5792 | # Check whether --enable-propsheet or --disable-propsheet was given. | |
5793 | if test "${enable_propsheet+set}" = set; then | |
5794 | enableval="$enable_propsheet" | |
5795 | ||
5796 | if test "$enableval" = yes; then | |
5797 | ac_cv_use_propsheet='wxUSE_PROPSHEET=yes' | |
5798 | else | |
5799 | ac_cv_use_propsheet='wxUSE_PROPSHEET=no' | |
5800 | fi | |
5801 | ||
5802 | else | |
5803 | ||
5804 | LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}` | |
5805 | if test "x$LINE" != x ; then | |
5806 | eval "DEFAULT_$LINE" | |
5807 | else | |
5808 | no_cache=1 | |
5809 | fi | |
5810 | ||
5811 | ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET | |
5812 | ||
5813 | fi | |
5814 | ||
5815 | ||
5816 | eval "$ac_cv_use_propsheet" | |
5817 | if test "$no_cache" != 1; then | |
5818 | echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp | |
5819 | fi | |
5820 | ||
5821 | if test "$wxUSE_PROPSHEET" = yes; then | |
5822 | echo "$ac_t""yes" 1>&6 | |
5823 | else | |
5824 | echo "$ac_t""no" 1>&6 | |
5825 | fi | |
5826 | ||
5827 | ||
5828 | echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6 | |
5829 | echo "configure:5830: checking for --enable-radiobox" >&5 | |
5830 | no_cache=0 | |
5831 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
5832 | if test "${enable_radiobox+set}" = set; then | |
5833 | enableval="$enable_radiobox" | |
5834 | ||
5835 | if test "$enableval" = yes; then | |
5836 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
5837 | else | |
5838 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
5839 | fi | |
5840 | ||
5841 | else | |
5842 | ||
5843 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
5844 | if test "x$LINE" != x ; then | |
5845 | eval "DEFAULT_$LINE" | |
5846 | else | |
5847 | no_cache=1 | |
5848 | fi | |
5849 | ||
5850 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
5851 | ||
5852 | fi | |
5853 | ||
5854 | ||
5855 | eval "$ac_cv_use_radiobox" | |
5856 | if test "$no_cache" != 1; then | |
5857 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
5858 | fi | |
5859 | ||
5860 | if test "$wxUSE_RADIOBOX" = yes; then | |
5861 | echo "$ac_t""yes" 1>&6 | |
5862 | else | |
5863 | echo "$ac_t""no" 1>&6 | |
5864 | fi | |
5865 | ||
5866 | ||
5867 | echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6 | |
5868 | echo "configure:5869: checking for --enable-radiobtn" >&5 | |
5869 | no_cache=0 | |
5870 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
5871 | if test "${enable_radiobtn+set}" = set; then | |
5872 | enableval="$enable_radiobtn" | |
5873 | ||
5874 | if test "$enableval" = yes; then | |
5875 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
5876 | else | |
5877 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
5878 | fi | |
5879 | ||
5880 | else | |
5881 | ||
5882 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
5883 | if test "x$LINE" != x ; then | |
5884 | eval "DEFAULT_$LINE" | |
5885 | else | |
5886 | no_cache=1 | |
5887 | fi | |
5888 | ||
5889 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
5890 | ||
5891 | fi | |
5892 | ||
5893 | ||
5894 | eval "$ac_cv_use_radiobtn" | |
5895 | if test "$no_cache" != 1; then | |
5896 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
5897 | fi | |
5898 | ||
5899 | if test "$wxUSE_RADIOBTN" = yes; then | |
5900 | echo "$ac_t""yes" 1>&6 | |
5901 | else | |
5902 | echo "$ac_t""no" 1>&6 | |
5903 | fi | |
5904 | ||
5905 | ||
5906 | echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6 | |
5907 | echo "configure:5908: checking for --enable-sash" >&5 | |
5908 | no_cache=0 | |
5909 | # Check whether --enable-sash or --disable-sash was given. | |
5910 | if test "${enable_sash+set}" = set; then | |
5911 | enableval="$enable_sash" | |
5912 | ||
5913 | if test "$enableval" = yes; then | |
5914 | ac_cv_use_sash='wxUSE_SASH=yes' | |
5915 | else | |
5916 | ac_cv_use_sash='wxUSE_SASH=no' | |
5917 | fi | |
5918 | ||
5919 | else | |
5920 | ||
5921 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
5922 | if test "x$LINE" != x ; then | |
5923 | eval "DEFAULT_$LINE" | |
5924 | else | |
5925 | no_cache=1 | |
5926 | fi | |
5927 | ||
5928 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
5929 | ||
5930 | fi | |
5931 | ||
5932 | ||
5933 | eval "$ac_cv_use_sash" | |
5934 | if test "$no_cache" != 1; then | |
5935 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
5936 | fi | |
5937 | ||
5938 | if test "$wxUSE_SASH" = yes; then | |
5939 | echo "$ac_t""yes" 1>&6 | |
5940 | else | |
5941 | echo "$ac_t""no" 1>&6 | |
5942 | fi | |
5943 | ||
5944 | ||
5945 | echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6 | |
5946 | echo "configure:5947: checking for --enable-scrollbar" >&5 | |
5947 | no_cache=0 | |
5948 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
5949 | if test "${enable_scrollbar+set}" = set; then | |
5950 | enableval="$enable_scrollbar" | |
5951 | ||
5952 | if test "$enableval" = yes; then | |
5953 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
5954 | else | |
5955 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
5956 | fi | |
5957 | ||
5958 | else | |
5959 | ||
5960 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
5961 | if test "x$LINE" != x ; then | |
5962 | eval "DEFAULT_$LINE" | |
5963 | else | |
5964 | no_cache=1 | |
5965 | fi | |
5966 | ||
5967 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
5968 | ||
5969 | fi | |
5970 | ||
5971 | ||
5972 | eval "$ac_cv_use_scrollbar" | |
5973 | if test "$no_cache" != 1; then | |
5974 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
5975 | fi | |
5976 | ||
5977 | if test "$wxUSE_SCROLLBAR" = yes; then | |
5978 | echo "$ac_t""yes" 1>&6 | |
5979 | else | |
5980 | echo "$ac_t""no" 1>&6 | |
5981 | fi | |
5982 | ||
5983 | ||
5984 | echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6 | |
5985 | echo "configure:5986: checking for --enable-slider" >&5 | |
5986 | no_cache=0 | |
5987 | # Check whether --enable-slider or --disable-slider was given. | |
5988 | if test "${enable_slider+set}" = set; then | |
5989 | enableval="$enable_slider" | |
5990 | ||
5991 | if test "$enableval" = yes; then | |
5992 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
5993 | else | |
5994 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
5995 | fi | |
5996 | ||
5997 | else | |
5998 | ||
5999 | LINE=`grep "wxUSE_SLIDER" ${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_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
6007 | ||
6008 | fi | |
6009 | ||
6010 | ||
6011 | eval "$ac_cv_use_slider" | |
6012 | if test "$no_cache" != 1; then | |
6013 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
6014 | fi | |
6015 | ||
6016 | if test "$wxUSE_SLIDER" = yes; then | |
6017 | echo "$ac_t""yes" 1>&6 | |
6018 | else | |
6019 | echo "$ac_t""no" 1>&6 | |
6020 | fi | |
6021 | ||
6022 | ||
6023 | echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6 | |
6024 | echo "configure:6025: checking for --enable-spinbtn" >&5 | |
6025 | no_cache=0 | |
6026 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
6027 | if test "${enable_spinbtn+set}" = set; then | |
6028 | enableval="$enable_spinbtn" | |
6029 | ||
6030 | if test "$enableval" = yes; then | |
6031 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
6032 | else | |
6033 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
6034 | fi | |
6035 | ||
6036 | else | |
6037 | ||
6038 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
6039 | if test "x$LINE" != x ; then | |
6040 | eval "DEFAULT_$LINE" | |
6041 | else | |
6042 | no_cache=1 | |
6043 | fi | |
6044 | ||
6045 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
6046 | ||
6047 | fi | |
6048 | ||
6049 | ||
6050 | eval "$ac_cv_use_spinbtn" | |
6051 | if test "$no_cache" != 1; then | |
6052 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
6053 | fi | |
6054 | ||
6055 | if test "$wxUSE_SPINBTN" = yes; then | |
6056 | echo "$ac_t""yes" 1>&6 | |
6057 | else | |
6058 | echo "$ac_t""no" 1>&6 | |
6059 | fi | |
6060 | ||
6061 | ||
6062 | echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6 | |
6063 | echo "configure:6064: checking for --enable-spinctrl" >&5 | |
6064 | no_cache=0 | |
6065 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
6066 | if test "${enable_spinctrl+set}" = set; then | |
6067 | enableval="$enable_spinctrl" | |
6068 | ||
6069 | if test "$enableval" = yes; then | |
6070 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
6071 | else | |
6072 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
6073 | fi | |
6074 | ||
6075 | else | |
6076 | ||
6077 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
6078 | if test "x$LINE" != x ; then | |
6079 | eval "DEFAULT_$LINE" | |
6080 | else | |
6081 | no_cache=1 | |
6082 | fi | |
6083 | ||
6084 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
6085 | ||
6086 | fi | |
6087 | ||
6088 | ||
6089 | eval "$ac_cv_use_spinctrl" | |
6090 | if test "$no_cache" != 1; then | |
6091 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
6092 | fi | |
6093 | ||
6094 | if test "$wxUSE_SPINCTRL" = yes; then | |
6095 | echo "$ac_t""yes" 1>&6 | |
6096 | else | |
6097 | echo "$ac_t""no" 1>&6 | |
6098 | fi | |
6099 | ||
6100 | ||
6101 | echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6 | |
6102 | echo "configure:6103: checking for --enable-splitter" >&5 | |
6103 | no_cache=0 | |
6104 | # Check whether --enable-splitter or --disable-splitter was given. | |
6105 | if test "${enable_splitter+set}" = set; then | |
6106 | enableval="$enable_splitter" | |
6107 | ||
6108 | if test "$enableval" = yes; then | |
6109 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
6110 | else | |
6111 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
6112 | fi | |
6113 | ||
6114 | else | |
6115 | ||
6116 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
6117 | if test "x$LINE" != x ; then | |
6118 | eval "DEFAULT_$LINE" | |
6119 | else | |
6120 | no_cache=1 | |
6121 | fi | |
6122 | ||
6123 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
6124 | ||
6125 | fi | |
6126 | ||
6127 | ||
6128 | eval "$ac_cv_use_splitter" | |
6129 | if test "$no_cache" != 1; then | |
6130 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
6131 | fi | |
6132 | ||
6133 | if test "$wxUSE_SPLITTER" = yes; then | |
6134 | echo "$ac_t""yes" 1>&6 | |
6135 | else | |
6136 | echo "$ac_t""no" 1>&6 | |
6137 | fi | |
6138 | ||
6139 | ||
6140 | echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6 | |
6141 | echo "configure:6142: checking for --enable-statbmp" >&5 | |
6142 | no_cache=0 | |
6143 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
6144 | if test "${enable_statbmp+set}" = set; then | |
6145 | enableval="$enable_statbmp" | |
6146 | ||
6147 | if test "$enableval" = yes; then | |
6148 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
6149 | else | |
6150 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
6151 | fi | |
6152 | ||
6153 | else | |
6154 | ||
6155 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
6156 | if test "x$LINE" != x ; then | |
6157 | eval "DEFAULT_$LINE" | |
6158 | else | |
6159 | no_cache=1 | |
6160 | fi | |
6161 | ||
6162 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
6163 | ||
6164 | fi | |
6165 | ||
6166 | ||
6167 | eval "$ac_cv_use_statbmp" | |
6168 | if test "$no_cache" != 1; then | |
6169 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
6170 | fi | |
6171 | ||
6172 | if test "$wxUSE_STATBMP" = yes; then | |
6173 | echo "$ac_t""yes" 1>&6 | |
6174 | else | |
6175 | echo "$ac_t""no" 1>&6 | |
6176 | fi | |
6177 | ||
6178 | ||
6179 | echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6 | |
6180 | echo "configure:6181: checking for --enable-statbox" >&5 | |
6181 | no_cache=0 | |
6182 | # Check whether --enable-statbox or --disable-statbox was given. | |
6183 | if test "${enable_statbox+set}" = set; then | |
6184 | enableval="$enable_statbox" | |
6185 | ||
6186 | if test "$enableval" = yes; then | |
6187 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
6188 | else | |
6189 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
6190 | fi | |
6191 | ||
6192 | else | |
6193 | ||
6194 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
6195 | if test "x$LINE" != x ; then | |
6196 | eval "DEFAULT_$LINE" | |
6197 | else | |
6198 | no_cache=1 | |
6199 | fi | |
6200 | ||
6201 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
6202 | ||
6203 | fi | |
6204 | ||
6205 | ||
6206 | eval "$ac_cv_use_statbox" | |
6207 | if test "$no_cache" != 1; then | |
6208 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
6209 | fi | |
6210 | ||
6211 | if test "$wxUSE_STATBOX" = yes; then | |
6212 | echo "$ac_t""yes" 1>&6 | |
6213 | else | |
6214 | echo "$ac_t""no" 1>&6 | |
6215 | fi | |
6216 | ||
6217 | ||
6218 | echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6 | |
6219 | echo "configure:6220: checking for --enable-statline" >&5 | |
6220 | no_cache=0 | |
6221 | # Check whether --enable-statline or --disable-statline was given. | |
6222 | if test "${enable_statline+set}" = set; then | |
6223 | enableval="$enable_statline" | |
6224 | ||
6225 | if test "$enableval" = yes; then | |
6226 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
6227 | else | |
6228 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
6229 | fi | |
6230 | ||
6231 | else | |
6232 | ||
6233 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
6234 | if test "x$LINE" != x ; then | |
6235 | eval "DEFAULT_$LINE" | |
6236 | else | |
6237 | no_cache=1 | |
6238 | fi | |
6239 | ||
6240 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
6241 | ||
6242 | fi | |
6243 | ||
6244 | ||
6245 | eval "$ac_cv_use_statline" | |
6246 | if test "$no_cache" != 1; then | |
6247 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
6248 | fi | |
6249 | ||
6250 | if test "$wxUSE_STATLINE" = yes; then | |
6251 | echo "$ac_t""yes" 1>&6 | |
6252 | else | |
6253 | echo "$ac_t""no" 1>&6 | |
6254 | fi | |
6255 | ||
6256 | ||
6257 | echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6 | |
6258 | echo "configure:6259: checking for --enable-stattext" >&5 | |
6259 | no_cache=0 | |
6260 | # Check whether --enable-stattext or --disable-stattext was given. | |
6261 | if test "${enable_stattext+set}" = set; then | |
6262 | enableval="$enable_stattext" | |
6263 | ||
6264 | if test "$enableval" = yes; then | |
6265 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
6266 | else | |
6267 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
6268 | fi | |
6269 | ||
6270 | else | |
6271 | ||
6272 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
6273 | if test "x$LINE" != x ; then | |
6274 | eval "DEFAULT_$LINE" | |
6275 | else | |
6276 | no_cache=1 | |
6277 | fi | |
6278 | ||
6279 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
6280 | ||
6281 | fi | |
6282 | ||
6283 | ||
6284 | eval "$ac_cv_use_stattext" | |
6285 | if test "$no_cache" != 1; then | |
6286 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
6287 | fi | |
6288 | ||
6289 | if test "$wxUSE_STATTEXT" = yes; then | |
6290 | echo "$ac_t""yes" 1>&6 | |
6291 | else | |
6292 | echo "$ac_t""no" 1>&6 | |
6293 | fi | |
6294 | ||
6295 | ||
6296 | echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6 | |
6297 | echo "configure:6298: checking for --enable-statusbar" >&5 | |
6298 | no_cache=0 | |
6299 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
6300 | if test "${enable_statusbar+set}" = set; then | |
6301 | enableval="$enable_statusbar" | |
6302 | ||
6303 | if test "$enableval" = yes; then | |
6304 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
6305 | else | |
6306 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
6307 | fi | |
6308 | ||
6309 | else | |
6310 | ||
6311 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
6312 | if test "x$LINE" != x ; then | |
6313 | eval "DEFAULT_$LINE" | |
6314 | else | |
6315 | no_cache=1 | |
6316 | fi | |
6317 | ||
6318 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
6319 | ||
6320 | fi | |
6321 | ||
6322 | ||
6323 | eval "$ac_cv_use_statusbar" | |
6324 | if test "$no_cache" != 1; then | |
6325 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
6326 | fi | |
6327 | ||
6328 | if test "$wxUSE_STATUSBAR" = yes; then | |
6329 | echo "$ac_t""yes" 1>&6 | |
6330 | else | |
6331 | echo "$ac_t""no" 1>&6 | |
6332 | fi | |
6333 | ||
6334 | ||
6335 | echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6 | |
6336 | echo "configure:6337: checking for --enable-tabdialog" >&5 | |
6337 | no_cache=0 | |
6338 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
6339 | if test "${enable_tabdialog+set}" = set; then | |
6340 | enableval="$enable_tabdialog" | |
6341 | ||
6342 | if test "$enableval" = yes; then | |
6343 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
6344 | else | |
6345 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
6346 | fi | |
6347 | ||
6348 | else | |
6349 | ||
6350 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
6351 | if test "x$LINE" != x ; then | |
6352 | eval "DEFAULT_$LINE" | |
6353 | else | |
6354 | no_cache=1 | |
6355 | fi | |
6356 | ||
6357 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
6358 | ||
6359 | fi | |
6360 | ||
6361 | ||
6362 | eval "$ac_cv_use_tabdialog" | |
6363 | if test "$no_cache" != 1; then | |
6364 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
6365 | fi | |
6366 | ||
6367 | if test "$wxUSE_TABDIALOG" = yes; then | |
6368 | echo "$ac_t""yes" 1>&6 | |
6369 | else | |
6370 | echo "$ac_t""no" 1>&6 | |
6371 | fi | |
6372 | ||
6373 | ||
6374 | echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6 | |
6375 | echo "configure:6376: checking for --enable-textctrl" >&5 | |
6376 | no_cache=0 | |
6377 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
6378 | if test "${enable_textctrl+set}" = set; then | |
6379 | enableval="$enable_textctrl" | |
6380 | ||
6381 | if test "$enableval" = yes; then | |
6382 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
6383 | else | |
6384 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
6385 | fi | |
6386 | ||
6387 | else | |
6388 | ||
6389 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
6390 | if test "x$LINE" != x ; then | |
6391 | eval "DEFAULT_$LINE" | |
6392 | else | |
6393 | no_cache=1 | |
6394 | fi | |
6395 | ||
6396 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
6397 | ||
6398 | fi | |
6399 | ||
6400 | ||
6401 | eval "$ac_cv_use_textctrl" | |
6402 | if test "$no_cache" != 1; then | |
6403 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
6404 | fi | |
6405 | ||
6406 | if test "$wxUSE_TEXTCTRL" = yes; then | |
6407 | echo "$ac_t""yes" 1>&6 | |
6408 | else | |
6409 | echo "$ac_t""no" 1>&6 | |
6410 | fi | |
6411 | ||
6412 | ||
6413 | echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6 | |
6414 | echo "configure:6415: checking for --enable-togglebtn" >&5 | |
6415 | no_cache=0 | |
6416 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
6417 | if test "${enable_togglebtn+set}" = set; then | |
6418 | enableval="$enable_togglebtn" | |
6419 | ||
6420 | if test "$enableval" = yes; then | |
6421 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
6422 | else | |
6423 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
6424 | fi | |
6425 | ||
6426 | else | |
6427 | ||
6428 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` | |
6429 | if test "x$LINE" != x ; then | |
6430 | eval "DEFAULT_$LINE" | |
6431 | else | |
6432 | no_cache=1 | |
6433 | fi | |
6434 | ||
6435 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
6436 | ||
6437 | fi | |
6438 | ||
6439 | ||
6440 | eval "$ac_cv_use_togglebtn" | |
6441 | if test "$no_cache" != 1; then | |
6442 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
6443 | fi | |
6444 | ||
6445 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
6446 | echo "$ac_t""yes" 1>&6 | |
6447 | else | |
6448 | echo "$ac_t""no" 1>&6 | |
6449 | fi | |
6450 | ||
6451 | ||
6452 | echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6 | |
6453 | echo "configure:6454: checking for --enable-toolbar" >&5 | |
6454 | no_cache=0 | |
6455 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
6456 | if test "${enable_toolbar+set}" = set; then | |
6457 | enableval="$enable_toolbar" | |
6458 | ||
6459 | if test "$enableval" = yes; then | |
6460 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
6461 | else | |
6462 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
6463 | fi | |
6464 | ||
6465 | else | |
6466 | ||
6467 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
6468 | if test "x$LINE" != x ; then | |
6469 | eval "DEFAULT_$LINE" | |
6470 | else | |
6471 | no_cache=1 | |
6472 | fi | |
6473 | ||
6474 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
6475 | ||
6476 | fi | |
6477 | ||
6478 | ||
6479 | eval "$ac_cv_use_toolbar" | |
6480 | if test "$no_cache" != 1; then | |
6481 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
6482 | fi | |
6483 | ||
6484 | if test "$wxUSE_TOOLBAR" = yes; then | |
6485 | echo "$ac_t""yes" 1>&6 | |
6486 | else | |
6487 | echo "$ac_t""no" 1>&6 | |
6488 | fi | |
6489 | ||
6490 | ||
6491 | echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6 | |
6492 | echo "configure:6493: checking for --enable-tbarnative" >&5 | |
6493 | no_cache=0 | |
6494 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
6495 | if test "${enable_tbarnative+set}" = set; then | |
6496 | enableval="$enable_tbarnative" | |
6497 | ||
6498 | if test "$enableval" = yes; then | |
6499 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
6500 | else | |
6501 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
6502 | fi | |
6503 | ||
6504 | else | |
6505 | ||
6506 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
6507 | if test "x$LINE" != x ; then | |
6508 | eval "DEFAULT_$LINE" | |
6509 | else | |
6510 | no_cache=1 | |
6511 | fi | |
6512 | ||
6513 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
6514 | ||
6515 | fi | |
6516 | ||
6517 | ||
6518 | eval "$ac_cv_use_tbarnative" | |
6519 | if test "$no_cache" != 1; then | |
6520 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
6521 | fi | |
6522 | ||
6523 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
6524 | echo "$ac_t""yes" 1>&6 | |
6525 | else | |
6526 | echo "$ac_t""no" 1>&6 | |
6527 | fi | |
6528 | ||
6529 | ||
6530 | echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6 | |
6531 | echo "configure:6532: checking for --enable-tbarsmpl" >&5 | |
6532 | no_cache=0 | |
6533 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
6534 | if test "${enable_tbarsmpl+set}" = set; then | |
6535 | enableval="$enable_tbarsmpl" | |
6536 | ||
6537 | if test "$enableval" = yes; then | |
6538 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
6539 | else | |
6540 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
6541 | fi | |
6542 | ||
6543 | else | |
6544 | ||
6545 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
6546 | if test "x$LINE" != x ; then | |
6547 | eval "DEFAULT_$LINE" | |
6548 | else | |
6549 | no_cache=1 | |
6550 | fi | |
6551 | ||
6552 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
6553 | ||
6554 | fi | |
6555 | ||
6556 | ||
6557 | eval "$ac_cv_use_tbarsmpl" | |
6558 | if test "$no_cache" != 1; then | |
6559 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
6560 | fi | |
6561 | ||
6562 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
6563 | echo "$ac_t""yes" 1>&6 | |
6564 | else | |
6565 | echo "$ac_t""no" 1>&6 | |
6566 | fi | |
6567 | ||
6568 | ||
6569 | echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6 | |
6570 | echo "configure:6571: checking for --enable-treectrl" >&5 | |
6571 | no_cache=0 | |
6572 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
6573 | if test "${enable_treectrl+set}" = set; then | |
6574 | enableval="$enable_treectrl" | |
6575 | ||
6576 | if test "$enableval" = yes; then | |
6577 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
6578 | else | |
6579 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
6580 | fi | |
6581 | ||
6582 | else | |
6583 | ||
6584 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
6585 | if test "x$LINE" != x ; then | |
6586 | eval "DEFAULT_$LINE" | |
6587 | else | |
6588 | no_cache=1 | |
6589 | fi | |
6590 | ||
6591 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
6592 | ||
6593 | fi | |
6594 | ||
6595 | ||
6596 | eval "$ac_cv_use_treectrl" | |
6597 | if test "$no_cache" != 1; then | |
6598 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
6599 | fi | |
6600 | ||
6601 | if test "$wxUSE_TREECTRL" = yes; then | |
6602 | echo "$ac_t""yes" 1>&6 | |
6603 | else | |
6604 | echo "$ac_t""no" 1>&6 | |
6605 | fi | |
6606 | ||
6607 | ||
6608 | echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6 | |
6609 | echo "configure:6610: checking for --enable-popupwin" >&5 | |
6610 | no_cache=0 | |
6611 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
6612 | if test "${enable_popupwin+set}" = set; then | |
6613 | enableval="$enable_popupwin" | |
6614 | ||
6615 | if test "$enableval" = yes; then | |
6616 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
6617 | else | |
6618 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
6619 | fi | |
6620 | ||
6621 | else | |
6622 | ||
6623 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
6624 | if test "x$LINE" != x ; then | |
6625 | eval "DEFAULT_$LINE" | |
6626 | else | |
6627 | no_cache=1 | |
6628 | fi | |
6629 | ||
6630 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
6631 | ||
6632 | fi | |
6633 | ||
6634 | ||
6635 | eval "$ac_cv_use_popupwin" | |
6636 | if test "$no_cache" != 1; then | |
6637 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
6638 | fi | |
6639 | ||
6640 | if test "$wxUSE_POPUPWIN" = yes; then | |
6641 | echo "$ac_t""yes" 1>&6 | |
6642 | else | |
6643 | echo "$ac_t""no" 1>&6 | |
6644 | fi | |
6645 | ||
6646 | ||
6647 | ||
6648 | ||
6649 | echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6 | |
6650 | echo "configure:6651: checking for --enable-commondlg" >&5 | |
6651 | no_cache=0 | |
6652 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
6653 | if test "${enable_commondlg+set}" = set; then | |
6654 | enableval="$enable_commondlg" | |
6655 | ||
6656 | if test "$enableval" = yes; then | |
6657 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
6658 | else | |
6659 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
6660 | fi | |
6661 | ||
6662 | else | |
6663 | ||
6664 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
6665 | if test "x$LINE" != x ; then | |
6666 | eval "DEFAULT_$LINE" | |
6667 | else | |
6668 | no_cache=1 | |
6669 | fi | |
6670 | ||
6671 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
6672 | ||
6673 | fi | |
6674 | ||
6675 | ||
6676 | eval "$ac_cv_use_commondlg" | |
6677 | if test "$no_cache" != 1; then | |
6678 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
6679 | fi | |
6680 | ||
6681 | if test "$wxUSE_COMMONDLGS" = yes; then | |
6682 | echo "$ac_t""yes" 1>&6 | |
6683 | else | |
6684 | echo "$ac_t""no" 1>&6 | |
6685 | fi | |
6686 | ||
6687 | ||
6688 | echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6 | |
6689 | echo "configure:6690: checking for --enable-choicedlg" >&5 | |
6690 | no_cache=0 | |
6691 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
6692 | if test "${enable_choicedlg+set}" = set; then | |
6693 | enableval="$enable_choicedlg" | |
6694 | ||
6695 | if test "$enableval" = yes; then | |
6696 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
6697 | else | |
6698 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
6699 | fi | |
6700 | ||
6701 | else | |
6702 | ||
6703 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
6704 | if test "x$LINE" != x ; then | |
6705 | eval "DEFAULT_$LINE" | |
6706 | else | |
6707 | no_cache=1 | |
6708 | fi | |
6709 | ||
6710 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
6711 | ||
6712 | fi | |
6713 | ||
6714 | ||
6715 | eval "$ac_cv_use_choicedlg" | |
6716 | if test "$no_cache" != 1; then | |
6717 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
6718 | fi | |
6719 | ||
6720 | if test "$wxUSE_CHOICEDLG" = yes; then | |
6721 | echo "$ac_t""yes" 1>&6 | |
6722 | else | |
6723 | echo "$ac_t""no" 1>&6 | |
6724 | fi | |
6725 | ||
6726 | ||
6727 | echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6 | |
6728 | echo "configure:6729: checking for --enable-coldlg" >&5 | |
6729 | no_cache=0 | |
6730 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
6731 | if test "${enable_coldlg+set}" = set; then | |
6732 | enableval="$enable_coldlg" | |
6733 | ||
6734 | if test "$enableval" = yes; then | |
6735 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
6736 | else | |
6737 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
6738 | fi | |
6739 | ||
6740 | else | |
6741 | ||
6742 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
6743 | if test "x$LINE" != x ; then | |
6744 | eval "DEFAULT_$LINE" | |
6745 | else | |
6746 | no_cache=1 | |
6747 | fi | |
6748 | ||
6749 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
6750 | ||
6751 | fi | |
6752 | ||
6753 | ||
6754 | eval "$ac_cv_use_coldlg" | |
6755 | if test "$no_cache" != 1; then | |
6756 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
6757 | fi | |
6758 | ||
6759 | if test "$wxUSE_COLOURDLG" = yes; then | |
6760 | echo "$ac_t""yes" 1>&6 | |
6761 | else | |
6762 | echo "$ac_t""no" 1>&6 | |
6763 | fi | |
6764 | ||
6765 | ||
6766 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 | |
6767 | echo "configure:6768: checking for --enable-filedlg" >&5 | |
6768 | no_cache=0 | |
6769 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
6770 | if test "${enable_filedlg+set}" = set; then | |
6771 | enableval="$enable_filedlg" | |
6772 | ||
6773 | if test "$enableval" = yes; then | |
6774 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
6775 | else | |
6776 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
6777 | fi | |
6778 | ||
6779 | else | |
6780 | ||
6781 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
6782 | if test "x$LINE" != x ; then | |
6783 | eval "DEFAULT_$LINE" | |
6784 | else | |
6785 | no_cache=1 | |
6786 | fi | |
6787 | ||
6788 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
6789 | ||
6790 | fi | |
6791 | ||
6792 | ||
6793 | eval "$ac_cv_use_filedlg" | |
6794 | if test "$no_cache" != 1; then | |
6795 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
6796 | fi | |
6797 | ||
6798 | if test "$wxUSE_FILEDLG" = yes; then | |
6799 | echo "$ac_t""yes" 1>&6 | |
6800 | else | |
6801 | echo "$ac_t""no" 1>&6 | |
6802 | fi | |
6803 | ||
6804 | ||
6805 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 | |
6806 | echo "configure:6807: checking for --enable-filedlg" >&5 | |
6807 | no_cache=0 | |
6808 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
6809 | if test "${enable_filedlg+set}" = set; then | |
6810 | enableval="$enable_filedlg" | |
6811 | ||
6812 | if test "$enableval" = yes; then | |
6813 | ac_cv_use_filedlg='wxUSE_FINDREPLDLG=yes' | |
6814 | else | |
6815 | ac_cv_use_filedlg='wxUSE_FINDREPLDLG=no' | |
6816 | fi | |
6817 | ||
6818 | else | |
6819 | ||
6820 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
6821 | if test "x$LINE" != x ; then | |
6822 | eval "DEFAULT_$LINE" | |
6823 | else | |
6824 | no_cache=1 | |
6825 | fi | |
6826 | ||
6827 | ac_cv_use_filedlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
6828 | ||
6829 | fi | |
6830 | ||
6831 | ||
6832 | eval "$ac_cv_use_filedlg" | |
6833 | if test "$no_cache" != 1; then | |
6834 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
6835 | fi | |
6836 | ||
6837 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
6838 | echo "$ac_t""yes" 1>&6 | |
6839 | else | |
6840 | echo "$ac_t""no" 1>&6 | |
6841 | fi | |
6842 | ||
6843 | ||
6844 | echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6 | |
6845 | echo "configure:6846: checking for --enable-fontdlg" >&5 | |
6846 | no_cache=0 | |
6847 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
6848 | if test "${enable_fontdlg+set}" = set; then | |
6849 | enableval="$enable_fontdlg" | |
6850 | ||
6851 | if test "$enableval" = yes; then | |
6852 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
6853 | else | |
6854 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
6855 | fi | |
6856 | ||
6857 | else | |
6858 | ||
6859 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
6860 | if test "x$LINE" != x ; then | |
6861 | eval "DEFAULT_$LINE" | |
6862 | else | |
6863 | no_cache=1 | |
6864 | fi | |
6865 | ||
6866 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
6867 | ||
6868 | fi | |
6869 | ||
6870 | ||
6871 | eval "$ac_cv_use_fontdlg" | |
6872 | if test "$no_cache" != 1; then | |
6873 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
6874 | fi | |
6875 | ||
6876 | if test "$wxUSE_FONTDLG" = yes; then | |
6877 | echo "$ac_t""yes" 1>&6 | |
6878 | else | |
6879 | echo "$ac_t""no" 1>&6 | |
6880 | fi | |
6881 | ||
6882 | ||
6883 | echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6 | |
6884 | echo "configure:6885: checking for --enable-dirdlg" >&5 | |
6885 | no_cache=0 | |
6886 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
6887 | if test "${enable_dirdlg+set}" = set; then | |
6888 | enableval="$enable_dirdlg" | |
6889 | ||
6890 | if test "$enableval" = yes; then | |
6891 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
6892 | else | |
6893 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
6894 | fi | |
6895 | ||
6896 | else | |
6897 | ||
6898 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
6899 | if test "x$LINE" != x ; then | |
6900 | eval "DEFAULT_$LINE" | |
6901 | else | |
6902 | no_cache=1 | |
6903 | fi | |
6904 | ||
6905 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
6906 | ||
6907 | fi | |
6908 | ||
6909 | ||
6910 | eval "$ac_cv_use_dirdlg" | |
6911 | if test "$no_cache" != 1; then | |
6912 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
6913 | fi | |
6914 | ||
6915 | if test "$wxUSE_DIRDLG" = yes; then | |
6916 | echo "$ac_t""yes" 1>&6 | |
6917 | else | |
6918 | echo "$ac_t""no" 1>&6 | |
6919 | fi | |
6920 | ||
6921 | ||
6922 | echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6 | |
6923 | echo "configure:6924: checking for --enable-msgdlg" >&5 | |
6924 | no_cache=0 | |
6925 | # Check whether --enable-msgdlg or --disable-msgdlg was given. | |
6926 | if test "${enable_msgdlg+set}" = set; then | |
6927 | enableval="$enable_msgdlg" | |
6928 | ||
6929 | if test "$enableval" = yes; then | |
6930 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' | |
6931 | else | |
6932 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' | |
6933 | fi | |
6934 | ||
6935 | else | |
6936 | ||
6937 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` | |
6938 | if test "x$LINE" != x ; then | |
6939 | eval "DEFAULT_$LINE" | |
6940 | else | |
6941 | no_cache=1 | |
6942 | fi | |
6943 | ||
6944 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG | |
6945 | ||
6946 | fi | |
6947 | ||
6948 | ||
6949 | eval "$ac_cv_use_msgdlg" | |
6950 | if test "$no_cache" != 1; then | |
6951 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp | |
6952 | fi | |
6953 | ||
6954 | if test "$wxUSE_MSGDLG" = yes; then | |
6955 | echo "$ac_t""yes" 1>&6 | |
6956 | else | |
6957 | echo "$ac_t""no" 1>&6 | |
6958 | fi | |
6959 | ||
6960 | ||
6961 | echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6 | |
6962 | echo "configure:6963: checking for --enable-numberdlg" >&5 | |
6963 | no_cache=0 | |
6964 | # Check whether --enable-numberdlg or --disable-numberdlg was given. | |
6965 | if test "${enable_numberdlg+set}" = set; then | |
6966 | enableval="$enable_numberdlg" | |
6967 | ||
6968 | if test "$enableval" = yes; then | |
6969 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' | |
6970 | else | |
6971 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' | |
6972 | fi | |
6973 | ||
6974 | else | |
6975 | ||
6976 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` | |
6977 | if test "x$LINE" != x ; then | |
6978 | eval "DEFAULT_$LINE" | |
6979 | else | |
6980 | no_cache=1 | |
6981 | fi | |
6982 | ||
6983 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG | |
6984 | ||
6985 | fi | |
6986 | ||
6987 | ||
6988 | eval "$ac_cv_use_numberdlg" | |
6989 | if test "$no_cache" != 1; then | |
6990 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp | |
6991 | fi | |
6992 | ||
6993 | if test "$wxUSE_NUMBERDLG" = yes; then | |
6994 | echo "$ac_t""yes" 1>&6 | |
6995 | else | |
6996 | echo "$ac_t""no" 1>&6 | |
6997 | fi | |
6998 | ||
6999 | ||
7000 | echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6 | |
7001 | echo "configure:7002: checking for --enable-splash" >&5 | |
7002 | no_cache=0 | |
7003 | # Check whether --enable-splash or --disable-splash was given. | |
7004 | if test "${enable_splash+set}" = set; then | |
7005 | enableval="$enable_splash" | |
7006 | ||
7007 | if test "$enableval" = yes; then | |
7008 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
7009 | else | |
7010 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
7011 | fi | |
7012 | ||
7013 | else | |
7014 | ||
7015 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
7016 | if test "x$LINE" != x ; then | |
7017 | eval "DEFAULT_$LINE" | |
7018 | else | |
7019 | no_cache=1 | |
7020 | fi | |
7021 | ||
7022 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
7023 | ||
7024 | fi | |
7025 | ||
7026 | ||
7027 | eval "$ac_cv_use_splash" | |
7028 | if test "$no_cache" != 1; then | |
7029 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
7030 | fi | |
7031 | ||
7032 | if test "$wxUSE_SPLASH" = yes; then | |
7033 | echo "$ac_t""yes" 1>&6 | |
7034 | else | |
7035 | echo "$ac_t""no" 1>&6 | |
7036 | fi | |
7037 | ||
7038 | ||
7039 | echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6 | |
7040 | echo "configure:7041: checking for --enable-textdlg" >&5 | |
7041 | no_cache=0 | |
7042 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
7043 | if test "${enable_textdlg+set}" = set; then | |
7044 | enableval="$enable_textdlg" | |
7045 | ||
7046 | if test "$enableval" = yes; then | |
7047 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
7048 | else | |
7049 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
7050 | fi | |
7051 | ||
7052 | else | |
7053 | ||
7054 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
7055 | if test "x$LINE" != x ; then | |
7056 | eval "DEFAULT_$LINE" | |
7057 | else | |
7058 | no_cache=1 | |
7059 | fi | |
7060 | ||
7061 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
7062 | ||
7063 | fi | |
7064 | ||
7065 | ||
7066 | eval "$ac_cv_use_textdlg" | |
7067 | if test "$no_cache" != 1; then | |
7068 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
7069 | fi | |
7070 | ||
7071 | if test "$wxUSE_TEXTDLG" = yes; then | |
7072 | echo "$ac_t""yes" 1>&6 | |
7073 | else | |
7074 | echo "$ac_t""no" 1>&6 | |
7075 | fi | |
7076 | ||
7077 | ||
7078 | echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6 | |
7079 | echo "configure:7080: checking for --enable-tipdlg" >&5 | |
7080 | no_cache=0 | |
7081 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
7082 | if test "${enable_tipdlg+set}" = set; then | |
7083 | enableval="$enable_tipdlg" | |
7084 | ||
7085 | if test "$enableval" = yes; then | |
7086 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
7087 | else | |
7088 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
7089 | fi | |
7090 | ||
7091 | else | |
7092 | ||
7093 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
7094 | if test "x$LINE" != x ; then | |
7095 | eval "DEFAULT_$LINE" | |
7096 | else | |
7097 | no_cache=1 | |
7098 | fi | |
7099 | ||
7100 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
7101 | ||
7102 | fi | |
7103 | ||
7104 | ||
7105 | eval "$ac_cv_use_tipdlg" | |
7106 | if test "$no_cache" != 1; then | |
7107 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
7108 | fi | |
7109 | ||
7110 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
7111 | echo "$ac_t""yes" 1>&6 | |
7112 | else | |
7113 | echo "$ac_t""no" 1>&6 | |
7114 | fi | |
7115 | ||
7116 | ||
7117 | echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6 | |
7118 | echo "configure:7119: checking for --enable-progressdlg" >&5 | |
7119 | no_cache=0 | |
7120 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
7121 | if test "${enable_progressdlg+set}" = set; then | |
7122 | enableval="$enable_progressdlg" | |
7123 | ||
7124 | if test "$enableval" = yes; then | |
7125 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
7126 | else | |
7127 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
7128 | fi | |
7129 | ||
7130 | else | |
7131 | ||
7132 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
7133 | if test "x$LINE" != x ; then | |
7134 | eval "DEFAULT_$LINE" | |
7135 | else | |
7136 | no_cache=1 | |
7137 | fi | |
7138 | ||
7139 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
7140 | ||
7141 | fi | |
7142 | ||
7143 | ||
7144 | eval "$ac_cv_use_progressdlg" | |
7145 | if test "$no_cache" != 1; then | |
7146 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
7147 | fi | |
7148 | ||
7149 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
7150 | echo "$ac_t""yes" 1>&6 | |
7151 | else | |
7152 | echo "$ac_t""no" 1>&6 | |
7153 | fi | |
7154 | ||
7155 | ||
7156 | echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6 | |
7157 | echo "configure:7158: checking for --enable-wizarddlg" >&5 | |
7158 | no_cache=0 | |
7159 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
7160 | if test "${enable_wizarddlg+set}" = set; then | |
7161 | enableval="$enable_wizarddlg" | |
7162 | ||
7163 | if test "$enableval" = yes; then | |
7164 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
7165 | else | |
7166 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
7167 | fi | |
7168 | ||
7169 | else | |
7170 | ||
7171 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
7172 | if test "x$LINE" != x ; then | |
7173 | eval "DEFAULT_$LINE" | |
7174 | else | |
7175 | no_cache=1 | |
7176 | fi | |
7177 | ||
7178 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
7179 | ||
7180 | fi | |
7181 | ||
7182 | ||
7183 | eval "$ac_cv_use_wizarddlg" | |
7184 | if test "$no_cache" != 1; then | |
7185 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
7186 | fi | |
7187 | ||
7188 | if test "$wxUSE_WIZARDDLG" = yes; then | |
7189 | echo "$ac_t""yes" 1>&6 | |
7190 | else | |
7191 | echo "$ac_t""no" 1>&6 | |
7192 | fi | |
7193 | ||
7194 | ||
7195 | ||
7196 | ||
7197 | echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6 | |
7198 | echo "configure:7199: checking for --enable-menus" >&5 | |
7199 | no_cache=0 | |
7200 | # Check whether --enable-menus or --disable-menus was given. | |
7201 | if test "${enable_menus+set}" = set; then | |
7202 | enableval="$enable_menus" | |
7203 | ||
7204 | if test "$enableval" = yes; then | |
7205 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
7206 | else | |
7207 | ac_cv_use_menus='wxUSE_MENUS=no' | |
7208 | fi | |
7209 | ||
7210 | else | |
7211 | ||
7212 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
7213 | if test "x$LINE" != x ; then | |
7214 | eval "DEFAULT_$LINE" | |
7215 | else | |
7216 | no_cache=1 | |
7217 | fi | |
7218 | ||
7219 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
7220 | ||
7221 | fi | |
7222 | ||
7223 | ||
7224 | eval "$ac_cv_use_menus" | |
7225 | if test "$no_cache" != 1; then | |
7226 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
7227 | fi | |
7228 | ||
7229 | if test "$wxUSE_MENUS" = yes; then | |
7230 | echo "$ac_t""yes" 1>&6 | |
7231 | else | |
7232 | echo "$ac_t""no" 1>&6 | |
7233 | fi | |
7234 | ||
7235 | ||
7236 | echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6 | |
7237 | echo "configure:7238: checking for --enable-miniframe" >&5 | |
7238 | no_cache=0 | |
7239 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
7240 | if test "${enable_miniframe+set}" = set; then | |
7241 | enableval="$enable_miniframe" | |
7242 | ||
7243 | if test "$enableval" = yes; then | |
7244 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
7245 | else | |
7246 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
7247 | fi | |
7248 | ||
7249 | else | |
7250 | ||
7251 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
7252 | if test "x$LINE" != x ; then | |
7253 | eval "DEFAULT_$LINE" | |
7254 | else | |
7255 | no_cache=1 | |
7256 | fi | |
7257 | ||
7258 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
7259 | ||
7260 | fi | |
7261 | ||
7262 | ||
7263 | eval "$ac_cv_use_miniframe" | |
7264 | if test "$no_cache" != 1; then | |
7265 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
7266 | fi | |
7267 | ||
7268 | if test "$wxUSE_MINIFRAME" = yes; then | |
7269 | echo "$ac_t""yes" 1>&6 | |
7270 | else | |
7271 | echo "$ac_t""no" 1>&6 | |
7272 | fi | |
7273 | ||
7274 | ||
7275 | echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6 | |
7276 | echo "configure:7277: checking for --enable-tooltips" >&5 | |
7277 | no_cache=0 | |
7278 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
7279 | if test "${enable_tooltips+set}" = set; then | |
7280 | enableval="$enable_tooltips" | |
7281 | ||
7282 | if test "$enableval" = yes; then | |
7283 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
7284 | else | |
7285 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
7286 | fi | |
7287 | ||
7288 | else | |
7289 | ||
7290 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
7291 | if test "x$LINE" != x ; then | |
7292 | eval "DEFAULT_$LINE" | |
7293 | else | |
7294 | no_cache=1 | |
7295 | fi | |
7296 | ||
7297 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
7298 | ||
7299 | fi | |
7300 | ||
7301 | ||
7302 | eval "$ac_cv_use_tooltips" | |
7303 | if test "$no_cache" != 1; then | |
7304 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
7305 | fi | |
7306 | ||
7307 | if test "$wxUSE_TOOLTIPS" = yes; then | |
7308 | echo "$ac_t""yes" 1>&6 | |
7309 | else | |
7310 | echo "$ac_t""no" 1>&6 | |
7311 | fi | |
7312 | ||
7313 | ||
7314 | echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6 | |
7315 | echo "configure:7316: checking for --enable-splines" >&5 | |
7316 | no_cache=0 | |
7317 | # Check whether --enable-splines or --disable-splines was given. | |
7318 | if test "${enable_splines+set}" = set; then | |
7319 | enableval="$enable_splines" | |
7320 | ||
7321 | if test "$enableval" = yes; then | |
7322 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
7323 | else | |
7324 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
7325 | fi | |
7326 | ||
7327 | else | |
7328 | ||
7329 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
7330 | if test "x$LINE" != x ; then | |
7331 | eval "DEFAULT_$LINE" | |
7332 | else | |
7333 | no_cache=1 | |
7334 | fi | |
7335 | ||
7336 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
7337 | ||
7338 | fi | |
7339 | ||
7340 | ||
7341 | eval "$ac_cv_use_splines" | |
7342 | if test "$no_cache" != 1; then | |
7343 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
7344 | fi | |
7345 | ||
7346 | if test "$wxUSE_SPLINES" = yes; then | |
7347 | echo "$ac_t""yes" 1>&6 | |
7348 | else | |
7349 | echo "$ac_t""no" 1>&6 | |
7350 | fi | |
7351 | ||
7352 | ||
7353 | echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6 | |
7354 | echo "configure:7355: checking for --enable-validators" >&5 | |
7355 | no_cache=0 | |
7356 | # Check whether --enable-validators or --disable-validators was given. | |
7357 | if test "${enable_validators+set}" = set; then | |
7358 | enableval="$enable_validators" | |
7359 | ||
7360 | if test "$enableval" = yes; then | |
7361 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
7362 | else | |
7363 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
7364 | fi | |
7365 | ||
7366 | else | |
7367 | ||
7368 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
7369 | if test "x$LINE" != x ; then | |
7370 | eval "DEFAULT_$LINE" | |
7371 | else | |
7372 | no_cache=1 | |
7373 | fi | |
7374 | ||
7375 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
7376 | ||
7377 | fi | |
7378 | ||
7379 | ||
7380 | eval "$ac_cv_use_validators" | |
7381 | if test "$no_cache" != 1; then | |
7382 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
7383 | fi | |
7384 | ||
7385 | if test "$wxUSE_VALIDATORS" = yes; then | |
7386 | echo "$ac_t""yes" 1>&6 | |
7387 | else | |
7388 | echo "$ac_t""no" 1>&6 | |
7389 | fi | |
7390 | ||
7391 | ||
7392 | echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6 | |
7393 | echo "configure:7394: checking for --enable-busyinfo" >&5 | |
7394 | no_cache=0 | |
7395 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
7396 | if test "${enable_busyinfo+set}" = set; then | |
7397 | enableval="$enable_busyinfo" | |
7398 | ||
7399 | if test "$enableval" = yes; then | |
7400 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
7401 | else | |
7402 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
7403 | fi | |
7404 | ||
7405 | else | |
7406 | ||
7407 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
7408 | if test "x$LINE" != x ; then | |
7409 | eval "DEFAULT_$LINE" | |
7410 | else | |
7411 | no_cache=1 | |
7412 | fi | |
7413 | ||
7414 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
7415 | ||
7416 | fi | |
7417 | ||
7418 | ||
7419 | eval "$ac_cv_use_busyinfo" | |
7420 | if test "$no_cache" != 1; then | |
7421 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
7422 | fi | |
7423 | ||
7424 | if test "$wxUSE_BUSYINFO" = yes; then | |
7425 | echo "$ac_t""yes" 1>&6 | |
7426 | else | |
7427 | echo "$ac_t""no" 1>&6 | |
7428 | fi | |
7429 | ||
7430 | ||
7431 | echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6 | |
7432 | echo "configure:7433: checking for --enable-joystick" >&5 | |
7433 | no_cache=0 | |
7434 | # Check whether --enable-joystick or --disable-joystick was given. | |
7435 | if test "${enable_joystick+set}" = set; then | |
7436 | enableval="$enable_joystick" | |
7437 | ||
7438 | if test "$enableval" = yes; then | |
7439 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
7440 | else | |
7441 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
7442 | fi | |
7443 | ||
7444 | else | |
7445 | ||
7446 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
7447 | if test "x$LINE" != x ; then | |
7448 | eval "DEFAULT_$LINE" | |
7449 | else | |
7450 | no_cache=1 | |
7451 | fi | |
7452 | ||
7453 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
7454 | ||
7455 | fi | |
7456 | ||
7457 | ||
7458 | eval "$ac_cv_use_joystick" | |
7459 | if test "$no_cache" != 1; then | |
7460 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
7461 | fi | |
7462 | ||
7463 | if test "$wxUSE_JOYSTICK" = yes; then | |
7464 | echo "$ac_t""yes" 1>&6 | |
7465 | else | |
7466 | echo "$ac_t""no" 1>&6 | |
7467 | fi | |
7468 | ||
7469 | ||
7470 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 | |
7471 | echo "configure:7472: checking for --enable-metafile" >&5 | |
7472 | no_cache=0 | |
7473 | # Check whether --enable-metafile or --disable-metafile was given. | |
7474 | if test "${enable_metafile+set}" = set; then | |
7475 | enableval="$enable_metafile" | |
7476 | ||
7477 | if test "$enableval" = yes; then | |
7478 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
7479 | else | |
7480 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
7481 | fi | |
7482 | ||
7483 | else | |
7484 | ||
7485 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
7486 | if test "x$LINE" != x ; then | |
7487 | eval "DEFAULT_$LINE" | |
7488 | else | |
7489 | no_cache=1 | |
7490 | fi | |
7491 | ||
7492 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7493 | ||
7494 | fi | |
7495 | ||
7496 | ||
7497 | eval "$ac_cv_use_metafile" | |
7498 | if test "$no_cache" != 1; then | |
7499 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7500 | fi | |
7501 | ||
7502 | if test "$wxUSE_METAFILE" = yes; then | |
7503 | echo "$ac_t""yes" 1>&6 | |
7504 | else | |
7505 | echo "$ac_t""no" 1>&6 | |
7506 | fi | |
7507 | ||
7508 | ||
7509 | echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6 | |
7510 | echo "configure:7511: checking for --enable-dragimage" >&5 | |
7511 | no_cache=0 | |
7512 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
7513 | if test "${enable_dragimage+set}" = set; then | |
7514 | enableval="$enable_dragimage" | |
7515 | ||
7516 | if test "$enableval" = yes; then | |
7517 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
7518 | else | |
7519 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
7520 | fi | |
7521 | ||
7522 | else | |
7523 | ||
7524 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
7525 | if test "x$LINE" != x ; then | |
7526 | eval "DEFAULT_$LINE" | |
7527 | else | |
7528 | no_cache=1 | |
7529 | fi | |
7530 | ||
7531 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
7532 | ||
7533 | fi | |
7534 | ||
7535 | ||
7536 | eval "$ac_cv_use_dragimage" | |
7537 | if test "$no_cache" != 1; then | |
7538 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
7539 | fi | |
7540 | ||
7541 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
7542 | echo "$ac_t""yes" 1>&6 | |
7543 | else | |
7544 | echo "$ac_t""no" 1>&6 | |
7545 | fi | |
7546 | ||
7547 | ||
7548 | ||
7549 | ||
7550 | echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6 | |
7551 | echo "configure:7552: checking for --enable-palette" >&5 | |
7552 | no_cache=0 | |
7553 | # Check whether --enable-palette or --disable-palette was given. | |
7554 | if test "${enable_palette+set}" = set; then | |
7555 | enableval="$enable_palette" | |
7556 | ||
7557 | if test "$enableval" = yes; then | |
7558 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
7559 | else | |
7560 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
7561 | fi | |
7562 | ||
7563 | else | |
7564 | ||
7565 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
7566 | if test "x$LINE" != x ; then | |
7567 | eval "DEFAULT_$LINE" | |
7568 | else | |
7569 | no_cache=1 | |
7570 | fi | |
7571 | ||
7572 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
7573 | ||
7574 | fi | |
7575 | ||
7576 | ||
7577 | eval "$ac_cv_use_palette" | |
7578 | if test "$no_cache" != 1; then | |
7579 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
7580 | fi | |
7581 | ||
7582 | if test "$wxUSE_PALETTE" = yes; then | |
7583 | echo "$ac_t""yes" 1>&6 | |
7584 | else | |
7585 | echo "$ac_t""no" 1>&6 | |
7586 | fi | |
7587 | ||
7588 | ||
7589 | echo $ac_n "checking for --enable-image""... $ac_c" 1>&6 | |
7590 | echo "configure:7591: checking for --enable-image" >&5 | |
7591 | no_cache=0 | |
7592 | # Check whether --enable-image or --disable-image was given. | |
7593 | if test "${enable_image+set}" = set; then | |
7594 | enableval="$enable_image" | |
7595 | ||
7596 | if test "$enableval" = yes; then | |
7597 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
7598 | else | |
7599 | ac_cv_use_image='wxUSE_IMAGE=no' | |
7600 | fi | |
7601 | ||
7602 | else | |
7603 | ||
7604 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` | |
7605 | if test "x$LINE" != x ; then | |
7606 | eval "DEFAULT_$LINE" | |
7607 | else | |
7608 | no_cache=1 | |
7609 | fi | |
7610 | ||
7611 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
7612 | ||
7613 | fi | |
7614 | ||
7615 | ||
7616 | eval "$ac_cv_use_image" | |
7617 | if test "$no_cache" != 1; then | |
7618 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
7619 | fi | |
7620 | ||
7621 | if test "$wxUSE_IMAGE" = yes; then | |
7622 | echo "$ac_t""yes" 1>&6 | |
7623 | else | |
7624 | echo "$ac_t""no" 1>&6 | |
7625 | fi | |
7626 | ||
7627 | ||
7628 | echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6 | |
7629 | echo "configure:7630: checking for --enable-gif" >&5 | |
7630 | no_cache=0 | |
7631 | # Check whether --enable-gif or --disable-gif was given. | |
7632 | if test "${enable_gif+set}" = set; then | |
7633 | enableval="$enable_gif" | |
7634 | ||
7635 | if test "$enableval" = yes; then | |
7636 | ac_cv_use_gif='wxUSE_GIF=yes' | |
7637 | else | |
7638 | ac_cv_use_gif='wxUSE_GIF=no' | |
7639 | fi | |
7640 | ||
7641 | else | |
7642 | ||
7643 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
7644 | if test "x$LINE" != x ; then | |
7645 | eval "DEFAULT_$LINE" | |
7646 | else | |
7647 | no_cache=1 | |
7648 | fi | |
7649 | ||
7650 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
7651 | ||
7652 | fi | |
7653 | ||
7654 | ||
7655 | eval "$ac_cv_use_gif" | |
7656 | if test "$no_cache" != 1; then | |
7657 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
7658 | fi | |
7659 | ||
7660 | if test "$wxUSE_GIF" = yes; then | |
7661 | echo "$ac_t""yes" 1>&6 | |
7662 | else | |
7663 | echo "$ac_t""no" 1>&6 | |
7664 | fi | |
7665 | ||
7666 | ||
7667 | echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6 | |
7668 | echo "configure:7669: checking for --enable-pcx" >&5 | |
7669 | no_cache=0 | |
7670 | # Check whether --enable-pcx or --disable-pcx was given. | |
7671 | if test "${enable_pcx+set}" = set; then | |
7672 | enableval="$enable_pcx" | |
7673 | ||
7674 | if test "$enableval" = yes; then | |
7675 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
7676 | else | |
7677 | ac_cv_use_pcx='wxUSE_PCX=no' | |
7678 | fi | |
7679 | ||
7680 | else | |
7681 | ||
7682 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
7683 | if test "x$LINE" != x ; then | |
7684 | eval "DEFAULT_$LINE" | |
7685 | else | |
7686 | no_cache=1 | |
7687 | fi | |
7688 | ||
7689 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
7690 | ||
7691 | fi | |
7692 | ||
7693 | ||
7694 | eval "$ac_cv_use_pcx" | |
7695 | if test "$no_cache" != 1; then | |
7696 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
7697 | fi | |
7698 | ||
7699 | if test "$wxUSE_PCX" = yes; then | |
7700 | echo "$ac_t""yes" 1>&6 | |
7701 | else | |
7702 | echo "$ac_t""no" 1>&6 | |
7703 | fi | |
7704 | ||
7705 | ||
7706 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 | |
7707 | echo "configure:7708: checking for --enable-pnm" >&5 | |
7708 | no_cache=0 | |
7709 | # Check whether --enable-pnm or --disable-pnm was given. | |
7710 | if test "${enable_pnm+set}" = set; then | |
7711 | enableval="$enable_pnm" | |
7712 | ||
7713 | if test "$enableval" = yes; then | |
7714 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
7715 | else | |
7716 | ac_cv_use_pnm='wxUSE_PNM=no' | |
7717 | fi | |
7718 | ||
7719 | else | |
7720 | ||
7721 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
7722 | if test "x$LINE" != x ; then | |
7723 | eval "DEFAULT_$LINE" | |
7724 | else | |
7725 | no_cache=1 | |
7726 | fi | |
7727 | ||
7728 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
7729 | ||
7730 | fi | |
7731 | ||
7732 | ||
7733 | eval "$ac_cv_use_pnm" | |
7734 | if test "$no_cache" != 1; then | |
7735 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
7736 | fi | |
7737 | ||
7738 | if test "$wxUSE_PNM" = yes; then | |
7739 | echo "$ac_t""yes" 1>&6 | |
7740 | else | |
7741 | echo "$ac_t""no" 1>&6 | |
7742 | fi | |
7743 | ||
7744 | ||
7745 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 | |
7746 | echo "configure:7747: checking for --enable-pnm" >&5 | |
7747 | no_cache=0 | |
7748 | # Check whether --enable-pnm or --disable-pnm was given. | |
7749 | if test "${enable_pnm+set}" = set; then | |
7750 | enableval="$enable_pnm" | |
7751 | ||
7752 | if test "$enableval" = yes; then | |
7753 | ac_cv_use_pnm='wxUSE_XPM=yes' | |
7754 | else | |
7755 | ac_cv_use_pnm='wxUSE_XPM=no' | |
7756 | fi | |
7757 | ||
7758 | else | |
7759 | ||
7760 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` | |
7761 | if test "x$LINE" != x ; then | |
7762 | eval "DEFAULT_$LINE" | |
7763 | else | |
7764 | no_cache=1 | |
7765 | fi | |
7766 | ||
7767 | ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
7768 | ||
7769 | fi | |
7770 | ||
7771 | ||
7772 | eval "$ac_cv_use_pnm" | |
7773 | if test "$no_cache" != 1; then | |
7774 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
7775 | fi | |
7776 | ||
7777 | if test "$wxUSE_XPM" = yes; then | |
7778 | echo "$ac_t""yes" 1>&6 | |
7779 | else | |
7780 | echo "$ac_t""no" 1>&6 | |
7781 | fi | |
7782 | ||
7783 | ||
7784 | fi | |
7785 | ||
7786 | ||
7787 | echo "saving argument cache $wx_arg_cache_file" | |
7788 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
7789 | ||
7790 | ||
7791 | ||
7792 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
7793 | echo "configure:7794: checking for toolkit" >&5 | |
7794 | ||
7795 | if test "$wxUSE_GUI" = "yes"; then | |
7796 | ||
7797 | if test "$USE_BEOS" = 1; then | |
7798 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } | |
7799 | fi | |
7800 | ||
7801 | if test "$TOOLKIT_GIVEN" = 1; then | |
7802 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7803 | var=wxUSE_$toolkit | |
7804 | eval "value=\$${var}" | |
7805 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
7806 | done | |
7807 | else | |
7808 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7809 | if test "$has_toolkit_in_cache" != 1; then | |
7810 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
7811 | else | |
7812 | var=DEFAULT_wxUSE_$toolkit | |
7813 | fi | |
7814 | eval "wxUSE_$toolkit=\$${var}" | |
7815 | done | |
7816 | fi | |
7817 | ||
7818 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \ | |
7819 | + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0}` | |
7820 | ||
7821 | case "${host}" in | |
7822 | *-pc-os2_emx | *-pc-os2-emx ) | |
7823 | # PATH_IFS is autodetected by OS/2's configure (usually ';') | |
7824 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
7825 | LEX_STEM="lexyy" | |
7826 | ;; | |
7827 | *) | |
7828 | PATH_IFS=':' | |
7829 | LEX_STEM="lex.yy" | |
7830 | ;; | |
7831 | esac | |
7832 | ||
7833 | case "$NUM_TOOLKITS" in | |
7834 | 1) | |
7835 | ;; | |
7836 | 0) | |
7837 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } | |
7838 | ;; | |
7839 | *) | |
7840 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } | |
7841 | esac | |
7842 | ||
7843 | for toolkit in `echo $ALL_TOOLKITS`; do | |
7844 | var=wxUSE_$toolkit | |
7845 | eval "value=\$${var}" | |
7846 | if test "x$value" != x; then | |
7847 | cache_var=CACHE_$toolkit | |
7848 | eval "cache=\$${cache_var}" | |
7849 | if test "$cache" = 1; then | |
7850 | echo "$var=$value" >> ${wx_arg_cache_file} | |
7851 | fi | |
7852 | if test "$value" = 1; then | |
7853 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
7854 | echo "$ac_t""$toolkit_echo" 1>&6 | |
7855 | fi | |
7856 | fi | |
7857 | done | |
7858 | else | |
7859 | PATH_IFS=':' | |
7860 | echo "$ac_t""base ($host_alias hosted) only" 1>&6 | |
7861 | fi | |
7862 | ||
7863 | ||
7864 | cat > confcache <<\EOF | |
7865 | # This file is a shell script that caches the results of configure | |
7866 | # tests run on this system so they can be shared between configure | |
7867 | # scripts and configure runs. It is not useful on other systems. | |
7868 | # If it contains results you don't want to keep, you may remove or edit it. | |
7869 | # | |
7870 | # By default, configure uses ./config.cache as the cache file, | |
7871 | # creating it if it does not exist already. You can give configure | |
7872 | # the --cache-file=FILE option to use a different cache file; that is | |
7873 | # what configure does when it calls configure scripts in | |
7874 | # subdirectories, so they share the cache. | |
7875 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
7876 | # config.status only pays attention to the cache file if you give it the | |
7877 | # --recheck option to rerun configure. | |
7878 | # | |
7879 | EOF | |
7880 | # The following way of writing the cache mishandles newlines in values, | |
7881 | # but we know of no workaround that is simple, portable, and efficient. | |
7882 | # So, don't put newlines in cache variables' values. | |
7883 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
7884 | # and sets the high bit in the cache file unless we assign to the vars. | |
7885 | (set) 2>&1 | | |
7886 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
7887 | *ac_space=\ *) | |
7888 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
7889 | # turns \\\\ into \\, and sed turns \\ into \). | |
7890 | sed -n \ | |
7891 | -e "s/'/'\\\\''/g" \ | |
7892 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
7893 | ;; | |
7894 | *) | |
7895 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7896 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
7897 | ;; | |
7898 | esac >> confcache | |
7899 | if cmp -s $cache_file confcache; then | |
7900 | : | |
7901 | else | |
7902 | if test -w $cache_file; then | |
7903 | echo "updating cache $cache_file" | |
7904 | cat confcache > $cache_file | |
7905 | else | |
7906 | echo "not updating unwritable cache $cache_file" | |
7907 | fi | |
7908 | fi | |
7909 | rm -f confcache | |
7910 | ||
7911 | ||
7912 | if test "$build" != "$host" ; then | |
7913 | if test "$USE_WIN32" = 1 ; then | |
7914 | CC=$host_alias-gcc | |
7915 | CXX=$host_alias-c++ | |
7916 | AR=$host_alias-ar | |
7917 | RANLIB=$host_alias-ranlib | |
7918 | DLLTOOL=$host_alias-dlltool | |
7919 | RESCOMP=$host_alias-windres | |
7920 | LD=$host_alias-ld | |
7921 | NM=$host_alias-nm | |
7922 | STRIP=$host_alias-strip | |
7923 | else | |
7924 | { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; } | |
7925 | fi | |
7926 | fi | |
7927 | ||
7928 | # Extract the first word of "gcc", so it can be a program name with args. | |
7929 | set dummy gcc; ac_word=$2 | |
7930 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
7931 | echo "configure:7932: checking for $ac_word" >&5 | |
7932 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
7933 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7934 | else | |
7935 | if test -n "$CC"; then | |
7936 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
7937 | else | |
7938 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
7939 | ac_dummy="$PATH" | |
7940 | for ac_dir in $ac_dummy; do | |
7941 | test -z "$ac_dir" && ac_dir=. | |
7942 | if test -f $ac_dir/$ac_word; then | |
7943 | ac_cv_prog_CC="gcc" | |
7944 | break | |
7945 | fi | |
7946 | done | |
7947 | IFS="$ac_save_ifs" | |
7948 | fi | |
7949 | fi | |
7950 | CC="$ac_cv_prog_CC" | |
7951 | if test -n "$CC"; then | |
7952 | echo "$ac_t""$CC" 1>&6 | |
7953 | else | |
7954 | echo "$ac_t""no" 1>&6 | |
7955 | fi | |
7956 | ||
7957 | if test -z "$CC"; then | |
7958 | # Extract the first word of "cc", so it can be a program name with args. | |
7959 | set dummy cc; ac_word=$2 | |
7960 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
7961 | echo "configure:7962: checking for $ac_word" >&5 | |
7962 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
7963 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7964 | else | |
7965 | if test -n "$CC"; then | |
7966 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
7967 | else | |
7968 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
7969 | ac_prog_rejected=no | |
7970 | ac_dummy="$PATH" | |
7971 | for ac_dir in $ac_dummy; do | |
7972 | test -z "$ac_dir" && ac_dir=. | |
7973 | if test -f $ac_dir/$ac_word; then | |
7974 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
7975 | ac_prog_rejected=yes | |
7976 | continue | |
7977 | fi | |
7978 | ac_cv_prog_CC="cc" | |
7979 | break | |
7980 | fi | |
7981 | done | |
7982 | IFS="$ac_save_ifs" | |
7983 | if test $ac_prog_rejected = yes; then | |
7984 | # We found a bogon in the path, so make sure we never use it. | |
7985 | set dummy $ac_cv_prog_CC | |
7986 | shift | |
7987 | if test $# -gt 0; then | |
7988 | # We chose a different compiler from the bogus one. | |
7989 | # However, it has the same basename, so the bogon will be chosen | |
7990 | # first if we set CC to just the basename; use the full file name. | |
7991 | shift | |
7992 | set dummy "$ac_dir/$ac_word" "$@" | |
7993 | shift | |
7994 | ac_cv_prog_CC="$@" | |
7995 | fi | |
7996 | fi | |
7997 | fi | |
7998 | fi | |
7999 | CC="$ac_cv_prog_CC" | |
8000 | if test -n "$CC"; then | |
8001 | echo "$ac_t""$CC" 1>&6 | |
8002 | else | |
8003 | echo "$ac_t""no" 1>&6 | |
8004 | fi | |
8005 | ||
8006 | if test -z "$CC"; then | |
8007 | case "`uname -s`" in | |
8008 | *win32* | *WIN32*) | |
8009 | # Extract the first word of "cl", so it can be a program name with args. | |
8010 | set dummy cl; ac_word=$2 | |
8011 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
8012 | echo "configure:8013: checking for $ac_word" >&5 | |
8013 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
8014 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8015 | else | |
8016 | if test -n "$CC"; then | |
8017 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
8018 | else | |
8019 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
8020 | ac_dummy="$PATH" | |
8021 | for ac_dir in $ac_dummy; do | |
8022 | test -z "$ac_dir" && ac_dir=. | |
8023 | if test -f $ac_dir/$ac_word; then | |
8024 | ac_cv_prog_CC="cl" | |
8025 | break | |
8026 | fi | |
8027 | done | |
8028 | IFS="$ac_save_ifs" | |
8029 | fi | |
8030 | fi | |
8031 | CC="$ac_cv_prog_CC" | |
8032 | if test -n "$CC"; then | |
8033 | echo "$ac_t""$CC" 1>&6 | |
8034 | else | |
8035 | echo "$ac_t""no" 1>&6 | |
8036 | fi | |
8037 | ;; | |
8038 | esac | |
8039 | fi | |
8040 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
8041 | fi | |
8042 | ||
8043 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
8044 | echo "configure:8045: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | |
8045 | ||
8046 | ac_ext=c | |
8047 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8048 | ac_cpp='$CPP $CPPFLAGS' | |
8049 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8050 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8051 | cross_compiling=$ac_cv_prog_cc_cross | |
8052 | ||
8053 | cat > conftest.$ac_ext << EOF | |
8054 | ||
8055 | #line 8056 "configure" | |
8056 | #include "confdefs.h" | |
8057 | ||
8058 | main(){return(0);} | |
8059 | EOF | |
8060 | if { (eval echo configure:8061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
8061 | ac_cv_prog_cc_works=yes | |
8062 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8063 | if (./conftest; exit) 2>/dev/null; then | |
8064 | ac_cv_prog_cc_cross=no | |
8065 | else | |
8066 | ac_cv_prog_cc_cross=yes | |
8067 | fi | |
8068 | else | |
8069 | echo "configure: failed program was:" >&5 | |
8070 | cat conftest.$ac_ext >&5 | |
8071 | ac_cv_prog_cc_works=no | |
8072 | fi | |
8073 | rm -fr conftest* | |
8074 | ac_ext=c | |
8075 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8076 | ac_cpp='$CPP $CPPFLAGS' | |
8077 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8078 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8079 | cross_compiling=$ac_cv_prog_cc_cross | |
8080 | ||
8081 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
8082 | if test $ac_cv_prog_cc_works = no; then | |
8083 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
8084 | fi | |
8085 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
8086 | echo "configure:8087: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | |
8087 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | |
8088 | cross_compiling=$ac_cv_prog_cc_cross | |
8089 | ||
8090 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
8091 | echo "configure:8092: checking whether we are using GNU C" >&5 | |
8092 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then | |
8093 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8094 | else | |
8095 | cat > conftest.c <<EOF | |
8096 | #ifdef __GNUC__ | |
8097 | yes; | |
8098 | #endif | |
8099 | EOF | |
8100 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | |
8101 | ac_cv_prog_gcc=yes | |
8102 | else | |
8103 | ac_cv_prog_gcc=no | |
8104 | fi | |
8105 | fi | |
8106 | ||
8107 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
8108 | ||
8109 | if test $ac_cv_prog_gcc = yes; then | |
8110 | GCC=yes | |
8111 | else | |
8112 | GCC= | |
8113 | fi | |
8114 | ||
8115 | ac_test_CFLAGS="${CFLAGS+set}" | |
8116 | ac_save_CFLAGS="$CFLAGS" | |
8117 | CFLAGS= | |
8118 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
8119 | echo "configure:8120: checking whether ${CC-cc} accepts -g" >&5 | |
8120 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then | |
8121 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8122 | else | |
8123 | echo 'void f(){}' > conftest.c | |
8124 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
8125 | ac_cv_prog_cc_g=yes | |
8126 | else | |
8127 | ac_cv_prog_cc_g=no | |
8128 | fi | |
8129 | rm -f conftest* | |
8130 | ||
8131 | fi | |
8132 | ||
8133 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
8134 | if test "$ac_test_CFLAGS" = set; then | |
8135 | CFLAGS="$ac_save_CFLAGS" | |
8136 | elif test $ac_cv_prog_cc_g = yes; then | |
8137 | if test "$GCC" = yes; then | |
8138 | CFLAGS="-g -O2" | |
8139 | else | |
8140 | CFLAGS="-g" | |
8141 | fi | |
8142 | else | |
8143 | if test "$GCC" = yes; then | |
8144 | CFLAGS="-O2" | |
8145 | else | |
8146 | CFLAGS= | |
8147 | fi | |
8148 | fi | |
8149 | ||
8150 | ||
8151 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
8152 | ||
8153 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
8154 | echo "configure:8155: checking how to run the C preprocessor" >&5 | |
8155 | # On Suns, sometimes $CPP names a directory. | |
8156 | if test -n "$CPP" && test -d "$CPP"; then | |
8157 | CPP= | |
8158 | fi | |
8159 | if test -z "$CPP"; then | |
8160 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
8161 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8162 | else | |
8163 | # This must be in double quotes, not single quotes, because CPP may get | |
8164 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
8165 | CPP="${CC-cc} -E" | |
8166 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
8167 | # not just through cpp. | |
8168 | cat > conftest.$ac_ext <<EOF | |
8169 | #line 8170 "configure" | |
8170 | #include "confdefs.h" | |
8171 | #include <assert.h> | |
8172 | Syntax Error | |
8173 | EOF | |
8174 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8175 | { (eval echo configure:8176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
8176 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
8177 | if test -z "$ac_err"; then | |
8178 | : | |
8179 | else | |
8180 | echo "$ac_err" >&5 | |
8181 | echo "configure: failed program was:" >&5 | |
8182 | cat conftest.$ac_ext >&5 | |
8183 | rm -rf conftest* | |
8184 | CPP="${CC-cc} -E -traditional-cpp" | |
8185 | cat > conftest.$ac_ext <<EOF | |
8186 | #line 8187 "configure" | |
8187 | #include "confdefs.h" | |
8188 | #include <assert.h> | |
8189 | Syntax Error | |
8190 | EOF | |
8191 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8192 | { (eval echo configure:8193: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
8193 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
8194 | if test -z "$ac_err"; then | |
8195 | : | |
8196 | else | |
8197 | echo "$ac_err" >&5 | |
8198 | echo "configure: failed program was:" >&5 | |
8199 | cat conftest.$ac_ext >&5 | |
8200 | rm -rf conftest* | |
8201 | CPP="${CC-cc} -nologo -E" | |
8202 | cat > conftest.$ac_ext <<EOF | |
8203 | #line 8204 "configure" | |
8204 | #include "confdefs.h" | |
8205 | #include <assert.h> | |
8206 | Syntax Error | |
8207 | EOF | |
8208 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8209 | { (eval echo configure:8210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
8210 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
8211 | if test -z "$ac_err"; then | |
8212 | : | |
8213 | else | |
8214 | echo "$ac_err" >&5 | |
8215 | echo "configure: failed program was:" >&5 | |
8216 | cat conftest.$ac_ext >&5 | |
8217 | rm -rf conftest* | |
8218 | CPP=/lib/cpp | |
8219 | fi | |
8220 | rm -f conftest* | |
8221 | fi | |
8222 | rm -f conftest* | |
8223 | fi | |
8224 | rm -f conftest* | |
8225 | ac_cv_prog_CPP="$CPP" | |
8226 | fi | |
8227 | CPP="$ac_cv_prog_CPP" | |
8228 | else | |
8229 | ac_cv_prog_CPP="$CPP" | |
8230 | fi | |
8231 | echo "$ac_t""$CPP" 1>&6 | |
8232 | ||
8233 | if test $ac_cv_prog_gcc = yes; then | |
8234 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
8235 | echo "configure:8236: checking whether ${CC-cc} needs -traditional" >&5 | |
8236 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then | |
8237 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8238 | else | |
8239 | ac_pattern="Autoconf.*'x'" | |
8240 | cat > conftest.$ac_ext <<EOF | |
8241 | #line 8242 "configure" | |
8242 | #include "confdefs.h" | |
8243 | #include <sgtty.h> | |
8244 | Autoconf TIOCGETP | |
8245 | EOF | |
8246 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8247 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
8248 | rm -rf conftest* | |
8249 | ac_cv_prog_gcc_traditional=yes | |
8250 | else | |
8251 | rm -rf conftest* | |
8252 | ac_cv_prog_gcc_traditional=no | |
8253 | fi | |
8254 | rm -f conftest* | |
8255 | ||
8256 | ||
8257 | if test $ac_cv_prog_gcc_traditional = no; then | |
8258 | cat > conftest.$ac_ext <<EOF | |
8259 | #line 8260 "configure" | |
8260 | #include "confdefs.h" | |
8261 | #include <termio.h> | |
8262 | Autoconf TCGETA | |
8263 | EOF | |
8264 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8265 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
8266 | rm -rf conftest* | |
8267 | ac_cv_prog_gcc_traditional=yes | |
8268 | fi | |
8269 | rm -f conftest* | |
8270 | ||
8271 | fi | |
8272 | fi | |
8273 | ||
8274 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
8275 | if test $ac_cv_prog_gcc_traditional = yes; then | |
8276 | CC="$CC -traditional" | |
8277 | fi | |
8278 | fi | |
8279 | ||
8280 | ||
8281 | ||
8282 | ac_ext=C | |
8283 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8284 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8285 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8286 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8287 | cross_compiling=$ac_cv_prog_cxx_cross | |
8288 | ||
8289 | ||
8290 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
8291 | do | |
8292 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8293 | set dummy $ac_prog; ac_word=$2 | |
8294 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
8295 | echo "configure:8296: checking for $ac_word" >&5 | |
8296 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then | |
8297 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8298 | else | |
8299 | if test -n "$CXX"; then | |
8300 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
8301 | else | |
8302 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
8303 | ac_dummy="$PATH" | |
8304 | for ac_dir in $ac_dummy; do | |
8305 | test -z "$ac_dir" && ac_dir=. | |
8306 | if test -f $ac_dir/$ac_word; then | |
8307 | ac_cv_prog_CXX="$ac_prog" | |
8308 | break | |
8309 | fi | |
8310 | done | |
8311 | IFS="$ac_save_ifs" | |
8312 | fi | |
8313 | fi | |
8314 | CXX="$ac_cv_prog_CXX" | |
8315 | if test -n "$CXX"; then | |
8316 | echo "$ac_t""$CXX" 1>&6 | |
8317 | else | |
8318 | echo "$ac_t""no" 1>&6 | |
8319 | fi | |
8320 | ||
8321 | test -n "$CXX" && break | |
8322 | done | |
8323 | test -n "$CXX" || CXX="gcc" | |
8324 | ||
8325 | ||
8326 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
8327 | echo "configure:8328: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 | |
8328 | ||
8329 | ac_ext=C | |
8330 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8331 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8332 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8333 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8334 | cross_compiling=$ac_cv_prog_cxx_cross | |
8335 | ||
8336 | cat > conftest.$ac_ext << EOF | |
8337 | ||
8338 | #line 8339 "configure" | |
8339 | #include "confdefs.h" | |
8340 | ||
8341 | int main(){return(0);} | |
8342 | EOF | |
8343 | if { (eval echo configure:8344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
8344 | ac_cv_prog_cxx_works=yes | |
8345 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8346 | if (./conftest; exit) 2>/dev/null; then | |
8347 | ac_cv_prog_cxx_cross=no | |
8348 | else | |
8349 | ac_cv_prog_cxx_cross=yes | |
8350 | fi | |
8351 | else | |
8352 | echo "configure: failed program was:" >&5 | |
8353 | cat conftest.$ac_ext >&5 | |
8354 | ac_cv_prog_cxx_works=no | |
8355 | fi | |
8356 | rm -fr conftest* | |
8357 | ac_ext=C | |
8358 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8359 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8360 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8361 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8362 | cross_compiling=$ac_cv_prog_cxx_cross | |
8363 | ||
8364 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
8365 | if test $ac_cv_prog_cxx_works = no; then | |
8366 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
8367 | fi | |
8368 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
8369 | echo "configure:8370: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 | |
8370 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 | |
8371 | cross_compiling=$ac_cv_prog_cxx_cross | |
8372 | ||
8373 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
8374 | echo "configure:8375: checking whether we are using GNU C++" >&5 | |
8375 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then | |
8376 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8377 | else | |
8378 | cat > conftest.C <<EOF | |
8379 | #ifdef __GNUC__ | |
8380 | yes; | |
8381 | #endif | |
8382 | EOF | |
8383 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | |
8384 | ac_cv_prog_gxx=yes | |
8385 | else | |
8386 | ac_cv_prog_gxx=no | |
8387 | fi | |
8388 | fi | |
8389 | ||
8390 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 | |
8391 | ||
8392 | if test $ac_cv_prog_gxx = yes; then | |
8393 | GXX=yes | |
8394 | else | |
8395 | GXX= | |
8396 | fi | |
8397 | ||
8398 | ac_test_CXXFLAGS="${CXXFLAGS+set}" | |
8399 | ac_save_CXXFLAGS="$CXXFLAGS" | |
8400 | CXXFLAGS= | |
8401 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
8402 | echo "configure:8403: checking whether ${CXX-g++} accepts -g" >&5 | |
8403 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then | |
8404 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8405 | else | |
8406 | echo 'void f(){}' > conftest.cc | |
8407 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
8408 | ac_cv_prog_cxx_g=yes | |
8409 | else | |
8410 | ac_cv_prog_cxx_g=no | |
8411 | fi | |
8412 | rm -f conftest* | |
8413 | ||
8414 | fi | |
8415 | ||
8416 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
8417 | if test "$ac_test_CXXFLAGS" = set; then | |
8418 | CXXFLAGS="$ac_save_CXXFLAGS" | |
8419 | elif test $ac_cv_prog_cxx_g = yes; then | |
8420 | if test "$GXX" = yes; then | |
8421 | CXXFLAGS="-g -O2" | |
8422 | else | |
8423 | CXXFLAGS="-g" | |
8424 | fi | |
8425 | else | |
8426 | if test "$GXX" = yes; then | |
8427 | CXXFLAGS="-O2" | |
8428 | else | |
8429 | CXXFLAGS= | |
8430 | fi | |
8431 | fi | |
8432 | ||
8433 | ||
8434 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` | |
8435 | ||
8436 | ac_ext=c | |
8437 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8438 | ac_cpp='$CPP $CPPFLAGS' | |
8439 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8440 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8441 | cross_compiling=$ac_cv_prog_cc_cross | |
8442 | ||
8443 | ||
8444 | # Extract the first word of "ranlib", so it can be a program name with args. | |
8445 | set dummy ranlib; ac_word=$2 | |
8446 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
8447 | echo "configure:8448: checking for $ac_word" >&5 | |
8448 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | |
8449 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8450 | else | |
8451 | if test -n "$RANLIB"; then | |
8452 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8453 | else | |
8454 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
8455 | ac_dummy="$PATH" | |
8456 | for ac_dir in $ac_dummy; do | |
8457 | test -z "$ac_dir" && ac_dir=. | |
8458 | if test -f $ac_dir/$ac_word; then | |
8459 | ac_cv_prog_RANLIB="ranlib" | |
8460 | break | |
8461 | fi | |
8462 | done | |
8463 | IFS="$ac_save_ifs" | |
8464 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
8465 | fi | |
8466 | fi | |
8467 | RANLIB="$ac_cv_prog_RANLIB" | |
8468 | if test -n "$RANLIB"; then | |
8469 | echo "$ac_t""$RANLIB" 1>&6 | |
8470 | else | |
8471 | echo "$ac_t""no" 1>&6 | |
8472 | fi | |
8473 | ||
8474 | ||
8475 | # Extract the first word of "ar", so it can be a program name with args. | |
8476 | set dummy ar; ac_word=$2 | |
8477 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
8478 | echo "configure:8479: checking for $ac_word" >&5 | |
8479 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then | |
8480 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8481 | else | |
8482 | if test -n "$AR"; then | |
8483 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8484 | else | |
8485 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
8486 | ac_dummy="$PATH" | |
8487 | for ac_dir in $ac_dummy; do | |
8488 | test -z "$ac_dir" && ac_dir=. | |
8489 | if test -f $ac_dir/$ac_word; then | |
8490 | ac_cv_prog_AR="ar" | |
8491 | break | |
8492 | fi | |
8493 | done | |
8494 | IFS="$ac_save_ifs" | |
8495 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
8496 | fi | |
8497 | fi | |
8498 | AR="$ac_cv_prog_AR" | |
8499 | if test -n "$AR"; then | |
8500 | echo "$ac_t""$AR" 1>&6 | |
8501 | else | |
8502 | echo "$ac_t""no" 1>&6 | |
8503 | fi | |
8504 | ||
8505 | ||
8506 | # Find a good install program. We prefer a C program (faster), | |
8507 | # so one script is as good as another. But avoid the broken or | |
8508 | # incompatible versions: | |
8509 | # SysV /etc/install, /usr/sbin/install | |
8510 | # SunOS /usr/etc/install | |
8511 | # IRIX /sbin/install | |
8512 | # AIX /bin/install | |
8513 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
8514 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
8515 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
8516 | # ./install, which can be erroneously created by make from ./install.sh. | |
8517 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
8518 | echo "configure:8519: checking for a BSD compatible install" >&5 | |
8519 | if test -z "$INSTALL"; then | |
8520 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
8521 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8522 | else | |
8523 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
8524 | for ac_dir in $PATH; do | |
8525 | # Account for people who put trailing slashes in PATH elements. | |
8526 | case "$ac_dir/" in | |
8527 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
8528 | *) | |
8529 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
8530 | # Don't use installbsd from OSF since it installs stuff as root | |
8531 | # by default. | |
8532 | for ac_prog in ginstall scoinst install; do | |
8533 | if test -f $ac_dir/$ac_prog; then | |
8534 | if test $ac_prog = install && | |
8535 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
8536 | # AIX install. It has an incompatible calling convention. | |
8537 | : | |
8538 | else | |
8539 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
8540 | break 2 | |
8541 | fi | |
8542 | fi | |
8543 | done | |
8544 | ;; | |
8545 | esac | |
8546 | done | |
8547 | IFS="$ac_save_IFS" | |
8548 | ||
8549 | fi | |
8550 | if test "${ac_cv_path_install+set}" = set; then | |
8551 | INSTALL="$ac_cv_path_install" | |
8552 | else | |
8553 | # As a last resort, use the slow shell script. We don't cache a | |
8554 | # path for INSTALL within a source directory, because that will | |
8555 | # break other packages using the cache if that directory is | |
8556 | # removed, or if the path is relative. | |
8557 | INSTALL="$ac_install_sh" | |
8558 | fi | |
8559 | fi | |
8560 | echo "$ac_t""$INSTALL" 1>&6 | |
8561 | ||
8562 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
8563 | # It thinks the first close brace ends the variable substitution. | |
8564 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
8565 | ||
8566 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
8567 | ||
8568 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
8569 | ||
8570 | case "${host}" in | |
8571 | ||
8572 | powerpc-*-darwin* ) | |
8573 | INSTALL_PROGRAM="cp -fp" | |
8574 | INSTALL_DATA="cp -fp" | |
8575 | ;; | |
8576 | *) | |
8577 | ;; | |
8578 | esac | |
8579 | ||
8580 | # Extract the first word of "strip", so it can be a program name with args. | |
8581 | set dummy strip; ac_word=$2 | |
8582 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
8583 | echo "configure:8584: checking for $ac_word" >&5 | |
8584 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then | |
8585 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8586 | else | |
8587 | if test -n "$STRIP"; then | |
8588 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8589 | else | |
8590 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
8591 | ac_dummy="$PATH" | |
8592 | for ac_dir in $ac_dummy; do | |
8593 | test -z "$ac_dir" && ac_dir=. | |
8594 | if test -f $ac_dir/$ac_word; then | |
8595 | ac_cv_prog_STRIP="strip" | |
8596 | break | |
8597 | fi | |
8598 | done | |
8599 | IFS="$ac_save_ifs" | |
8600 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" | |
8601 | fi | |
8602 | fi | |
8603 | STRIP="$ac_cv_prog_STRIP" | |
8604 | if test -n "$STRIP"; then | |
8605 | echo "$ac_t""$STRIP" 1>&6 | |
8606 | else | |
8607 | echo "$ac_t""no" 1>&6 | |
8608 | fi | |
8609 | ||
8610 | ||
8611 | echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6 | |
8612 | echo "configure:8613: checking make for VPATH support" >&5 | |
8613 | cat - << EOF > confMake | |
8614 | check : file | |
8615 | cp \$? \$@ | |
8616 | cp \$? final_file | |
8617 | EOF | |
8618 | ||
8619 | if test ! -d sub ; then | |
8620 | mkdir sub | |
8621 | fi | |
8622 | echo dummy > sub/file | |
8623 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null | |
8624 | RESULT=$? | |
8625 | rm -f sub/file check final_file confMake | |
8626 | rmdir sub | |
8627 | if test "$RESULT" = 0; then | |
8628 | echo "$ac_t""yes" 1>&6 | |
8629 | else | |
8630 | echo "$ac_t""no" 1>&6 | |
8631 | { echo "configure: error: | |
8632 | You need a make-utility that is able to use the variable | |
8633 | VPATH correctly. | |
8634 | If your version of make does not support VPATH correctly, | |
8635 | please install GNU-make (possibly as gmake), and start | |
8636 | configure with the following command: | |
8637 | export MAKE=gmake; ./configure for sh-type shells | |
8638 | setenv MAKE gmake; ./configure for csh-type shells | |
8639 | Also please do remember to use gmake in this case every time | |
8640 | you are trying to compile. | |
8641 | " 1>&2; exit 1; } | |
8642 | fi | |
8643 | ||
8644 | for ac_prog in 'bison -y' byacc | |
8645 | do | |
8646 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8647 | set dummy $ac_prog; ac_word=$2 | |
8648 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
8649 | echo "configure:8650: checking for $ac_word" >&5 | |
8650 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then | |
8651 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8652 | else | |
8653 | if test -n "$YACC"; then | |
8654 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
8655 | else | |
8656 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
8657 | ac_dummy="$PATH" | |
8658 | for ac_dir in $ac_dummy; do | |
8659 | test -z "$ac_dir" && ac_dir=. | |
8660 | if test -f $ac_dir/$ac_word; then | |
8661 | ac_cv_prog_YACC="$ac_prog" | |
8662 | break | |
8663 | fi | |
8664 | done | |
8665 | IFS="$ac_save_ifs" | |
8666 | fi | |
8667 | fi | |
8668 | YACC="$ac_cv_prog_YACC" | |
8669 | if test -n "$YACC"; then | |
8670 | echo "$ac_t""$YACC" 1>&6 | |
8671 | else | |
8672 | echo "$ac_t""no" 1>&6 | |
8673 | fi | |
8674 | ||
8675 | test -n "$YACC" && break | |
8676 | done | |
8677 | test -n "$YACC" || YACC="yacc" | |
8678 | ||
8679 | ||
8680 | # Extract the first word of "flex", so it can be a program name with args. | |
8681 | set dummy flex; ac_word=$2 | |
8682 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
8683 | echo "configure:8684: checking for $ac_word" >&5 | |
8684 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then | |
8685 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8686 | else | |
8687 | if test -n "$LEX"; then | |
8688 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
8689 | else | |
8690 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
8691 | ac_dummy="$PATH" | |
8692 | for ac_dir in $ac_dummy; do | |
8693 | test -z "$ac_dir" && ac_dir=. | |
8694 | if test -f $ac_dir/$ac_word; then | |
8695 | ac_cv_prog_LEX="flex" | |
8696 | break | |
8697 | fi | |
8698 | done | |
8699 | IFS="$ac_save_ifs" | |
8700 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
8701 | fi | |
8702 | fi | |
8703 | LEX="$ac_cv_prog_LEX" | |
8704 | if test -n "$LEX"; then | |
8705 | echo "$ac_t""$LEX" 1>&6 | |
8706 | else | |
8707 | echo "$ac_t""no" 1>&6 | |
8708 | fi | |
8709 | ||
8710 | if test -z "$LEXLIB" | |
8711 | then | |
8712 | case "$LEX" in | |
8713 | flex*) ac_lib=fl ;; | |
8714 | *) ac_lib=l ;; | |
8715 | esac | |
8716 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
8717 | echo "configure:8718: checking for yywrap in -l$ac_lib" >&5 | |
8718 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` | |
8719 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8720 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8721 | else | |
8722 | ac_save_LIBS="$LIBS" | |
8723 | LIBS="-l$ac_lib $LIBS" | |
8724 | cat > conftest.$ac_ext <<EOF | |
8725 | #line 8726 "configure" | |
8726 | #include "confdefs.h" | |
8727 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8728 | /* We use char because int might match the return type of a gcc2 | |
8729 | builtin and then its argument prototype would still apply. */ | |
8730 | char yywrap(); | |
8731 | ||
8732 | int main() { | |
8733 | yywrap() | |
8734 | ; return 0; } | |
8735 | EOF | |
8736 | if { (eval echo configure:8737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
8737 | rm -rf conftest* | |
8738 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8739 | else | |
8740 | echo "configure: failed program was:" >&5 | |
8741 | cat conftest.$ac_ext >&5 | |
8742 | rm -rf conftest* | |
8743 | eval "ac_cv_lib_$ac_lib_var=no" | |
8744 | fi | |
8745 | rm -f conftest* | |
8746 | LIBS="$ac_save_LIBS" | |
8747 | ||
8748 | fi | |
8749 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8750 | echo "$ac_t""yes" 1>&6 | |
8751 | LEXLIB="-l$ac_lib" | |
8752 | else | |
8753 | echo "$ac_t""no" 1>&6 | |
8754 | fi | |
8755 | ||
8756 | fi | |
8757 | ||
8758 | ||
8759 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
8760 | echo "configure:8761: checking whether ln -s works" >&5 | |
8761 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then | |
8762 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8763 | else | |
8764 | rm -f conftestdata | |
8765 | if ln -s X conftestdata 2>/dev/null | |
8766 | then | |
8767 | rm -f conftestdata | |
8768 | ac_cv_prog_LN_S="ln -s" | |
8769 | else | |
8770 | ac_cv_prog_LN_S=ln | |
8771 | fi | |
8772 | fi | |
8773 | LN_S="$ac_cv_prog_LN_S" | |
8774 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
8775 | echo "$ac_t""yes" 1>&6 | |
8776 | else | |
8777 | echo "$ac_t""no" 1>&6 | |
8778 | fi | |
8779 | ||
8780 | ||
8781 | ||
8782 | SEARCH_INCLUDE="\ | |
8783 | /usr/local/include \ | |
8784 | \ | |
8785 | /usr/Motif-1.2/include \ | |
8786 | /usr/Motif-2.1/include \ | |
8787 | \ | |
8788 | /usr/include/Motif1.2 \ | |
8789 | /opt/xpm/include/X11 \ | |
8790 | /opt/GBxpm/include/ \ | |
8791 | /opt/GBxpm/X11/include/ \ | |
8792 | \ | |
8793 | /usr/Motif1.2/include \ | |
8794 | /usr/dt/include \ | |
8795 | /usr/openwin/include \ | |
8796 | \ | |
8797 | /usr/include/Xm \ | |
8798 | \ | |
8799 | /usr/X11R6/include \ | |
8800 | /usr/X11R6.4/include \ | |
8801 | /usr/X11R5/include \ | |
8802 | /usr/X11R4/include \ | |
8803 | \ | |
8804 | /usr/include/X11R6 \ | |
8805 | /usr/include/X11R5 \ | |
8806 | /usr/include/X11R4 \ | |
8807 | \ | |
8808 | /usr/local/X11R6/include \ | |
8809 | /usr/local/X11R5/include \ | |
8810 | /usr/local/X11R4/include \ | |
8811 | \ | |
8812 | /usr/local/include/X11R6 \ | |
8813 | /usr/local/include/X11R5 \ | |
8814 | /usr/local/include/X11R4 \ | |
8815 | \ | |
8816 | /usr/X11/include \ | |
8817 | /usr/include/X11 \ | |
8818 | /usr/local/X11/include \ | |
8819 | /usr/local/include/X11 \ | |
8820 | \ | |
8821 | /usr/X386/include \ | |
8822 | /usr/x386/include \ | |
8823 | /usr/XFree86/include/X11 \ | |
8824 | \ | |
8825 | X:/XFree86/include \ | |
8826 | X:/XFree86/include/X11 \ | |
8827 | \ | |
8828 | /usr/include/gtk \ | |
8829 | /usr/local/include/gtk \ | |
8830 | /usr/include/glib \ | |
8831 | /usr/local/include/glib \ | |
8832 | \ | |
8833 | /usr/include/qt \ | |
8834 | /usr/local/include/qt \ | |
8835 | \ | |
8836 | /usr/include/windows \ | |
8837 | /usr/include/wine \ | |
8838 | /usr/local/include/wine \ | |
8839 | \ | |
8840 | /usr/unsupported/include \ | |
8841 | /usr/athena/include \ | |
8842 | /usr/local/x11r5/include \ | |
8843 | /usr/lpp/Xamples/include \ | |
8844 | \ | |
8845 | /usr/openwin/share/include \ | |
8846 | \ | |
8847 | /usr/include" | |
8848 | ||
8849 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
8850 | ||
8851 | ||
8852 | cat > confcache <<\EOF | |
8853 | # This file is a shell script that caches the results of configure | |
8854 | # tests run on this system so they can be shared between configure | |
8855 | # scripts and configure runs. It is not useful on other systems. | |
8856 | # If it contains results you don't want to keep, you may remove or edit it. | |
8857 | # | |
8858 | # By default, configure uses ./config.cache as the cache file, | |
8859 | # creating it if it does not exist already. You can give configure | |
8860 | # the --cache-file=FILE option to use a different cache file; that is | |
8861 | # what configure does when it calls configure scripts in | |
8862 | # subdirectories, so they share the cache. | |
8863 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8864 | # config.status only pays attention to the cache file if you give it the | |
8865 | # --recheck option to rerun configure. | |
8866 | # | |
8867 | EOF | |
8868 | # The following way of writing the cache mishandles newlines in values, | |
8869 | # but we know of no workaround that is simple, portable, and efficient. | |
8870 | # So, don't put newlines in cache variables' values. | |
8871 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8872 | # and sets the high bit in the cache file unless we assign to the vars. | |
8873 | (set) 2>&1 | | |
8874 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8875 | *ac_space=\ *) | |
8876 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8877 | # turns \\\\ into \\, and sed turns \\ into \). | |
8878 | sed -n \ | |
8879 | -e "s/'/'\\\\''/g" \ | |
8880 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8881 | ;; | |
8882 | *) | |
8883 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8884 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8885 | ;; | |
8886 | esac >> confcache | |
8887 | if cmp -s $cache_file confcache; then | |
8888 | : | |
8889 | else | |
8890 | if test -w $cache_file; then | |
8891 | echo "updating cache $cache_file" | |
8892 | cat confcache > $cache_file | |
8893 | else | |
8894 | echo "not updating unwritable cache $cache_file" | |
8895 | fi | |
8896 | fi | |
8897 | rm -f confcache | |
8898 | ||
8899 | ||
8900 | ||
8901 | ||
8902 | REGEX_INCLUDE= | |
8903 | if test "$wxUSE_REGEX" != "no"; then | |
8904 | cat >> confdefs.h <<\EOF | |
8905 | #define wxUSE_REGEX 1 | |
8906 | EOF | |
8907 | ||
8908 | ||
8909 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
8910 | ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'` | |
8911 | echo $ac_n "checking for regex.h""... $ac_c" 1>&6 | |
8912 | echo "configure:8913: checking for regex.h" >&5 | |
8913 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
8914 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8915 | else | |
8916 | cat > conftest.$ac_ext <<EOF | |
8917 | #line 8918 "configure" | |
8918 | #include "confdefs.h" | |
8919 | #include <regex.h> | |
8920 | EOF | |
8921 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8922 | { (eval echo configure:8923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
8923 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
8924 | if test -z "$ac_err"; then | |
8925 | rm -rf conftest* | |
8926 | eval "ac_cv_header_$ac_safe=yes" | |
8927 | else | |
8928 | echo "$ac_err" >&5 | |
8929 | echo "configure: failed program was:" >&5 | |
8930 | cat conftest.$ac_ext >&5 | |
8931 | rm -rf conftest* | |
8932 | eval "ac_cv_header_$ac_safe=no" | |
8933 | fi | |
8934 | rm -f conftest* | |
8935 | fi | |
8936 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8937 | echo "$ac_t""yes" 1>&6 | |
8938 | for ac_func in regcomp | |
8939 | do | |
8940 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
8941 | echo "configure:8942: checking for $ac_func" >&5 | |
8942 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
8943 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8944 | else | |
8945 | cat > conftest.$ac_ext <<EOF | |
8946 | #line 8947 "configure" | |
8947 | #include "confdefs.h" | |
8948 | /* System header to define __stub macros and hopefully few prototypes, | |
8949 | which can conflict with char $ac_func(); below. */ | |
8950 | #include <assert.h> | |
8951 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8952 | /* We use char because int might match the return type of a gcc2 | |
8953 | builtin and then its argument prototype would still apply. */ | |
8954 | char $ac_func(); | |
8955 | ||
8956 | int main() { | |
8957 | ||
8958 | /* The GNU C library defines this for functions which it implements | |
8959 | to always fail with ENOSYS. Some functions are actually named | |
8960 | something starting with __ and the normal name is an alias. */ | |
8961 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8962 | choke me | |
8963 | #else | |
8964 | $ac_func(); | |
8965 | #endif | |
8966 | ||
8967 | ; return 0; } | |
8968 | EOF | |
8969 | if { (eval echo configure:8970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
8970 | rm -rf conftest* | |
8971 | eval "ac_cv_func_$ac_func=yes" | |
8972 | else | |
8973 | echo "configure: failed program was:" >&5 | |
8974 | cat conftest.$ac_ext >&5 | |
8975 | rm -rf conftest* | |
8976 | eval "ac_cv_func_$ac_func=no" | |
8977 | fi | |
8978 | rm -f conftest* | |
8979 | fi | |
8980 | ||
8981 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
8982 | echo "$ac_t""yes" 1>&6 | |
8983 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
8984 | cat >> confdefs.h <<EOF | |
8985 | #define $ac_tr_func 1 | |
8986 | EOF | |
8987 | ||
8988 | else | |
8989 | echo "$ac_t""no" 1>&6 | |
8990 | fi | |
8991 | done | |
8992 | ||
8993 | else | |
8994 | echo "$ac_t""no" 1>&6 | |
8995 | fi | |
8996 | ||
8997 | ||
8998 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
8999 | if test "$wxUSE_REGEX" = "sys" ; then | |
9000 | { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; } | |
9001 | else | |
9002 | echo "configure: warning: system regex library not found, will use built-in instead" 1>&2 | |
9003 | wxUSE_REGEX=builtin | |
9004 | fi | |
9005 | else | |
9006 | wxUSE_REGEX=sys | |
9007 | fi | |
9008 | fi | |
9009 | ||
9010 | if test "$wxUSE_REGEX" = "builtin" ; then | |
9011 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
9012 | fi | |
9013 | fi | |
9014 | ||
9015 | ||
9016 | ZLIB_INCLUDE= | |
9017 | ZLIB_LINK= | |
9018 | if test "$wxUSE_ZLIB" != "no" ; then | |
9019 | cat >> confdefs.h <<\EOF | |
9020 | #define wxUSE_ZLIB 1 | |
9021 | EOF | |
9022 | ||
9023 | ||
9024 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
9025 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` | |
9026 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
9027 | echo "configure:9028: checking for zlib.h" >&5 | |
9028 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9029 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9030 | else | |
9031 | cat > conftest.$ac_ext <<EOF | |
9032 | #line 9033 "configure" | |
9033 | #include "confdefs.h" | |
9034 | #include <zlib.h> | |
9035 | EOF | |
9036 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9037 | { (eval echo configure:9038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9038 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9039 | if test -z "$ac_err"; then | |
9040 | rm -rf conftest* | |
9041 | eval "ac_cv_header_$ac_safe=yes" | |
9042 | else | |
9043 | echo "$ac_err" >&5 | |
9044 | echo "configure: failed program was:" >&5 | |
9045 | cat conftest.$ac_ext >&5 | |
9046 | rm -rf conftest* | |
9047 | eval "ac_cv_header_$ac_safe=no" | |
9048 | fi | |
9049 | rm -f conftest* | |
9050 | fi | |
9051 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9052 | echo "$ac_t""yes" 1>&6 | |
9053 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 | |
9054 | echo "configure:9055: checking for deflate in -lz" >&5 | |
9055 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` | |
9056 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9057 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9058 | else | |
9059 | ac_save_LIBS="$LIBS" | |
9060 | LIBS="-lz $LIBS" | |
9061 | cat > conftest.$ac_ext <<EOF | |
9062 | #line 9063 "configure" | |
9063 | #include "confdefs.h" | |
9064 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9065 | /* We use char because int might match the return type of a gcc2 | |
9066 | builtin and then its argument prototype would still apply. */ | |
9067 | char deflate(); | |
9068 | ||
9069 | int main() { | |
9070 | deflate() | |
9071 | ; return 0; } | |
9072 | EOF | |
9073 | if { (eval echo configure:9074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9074 | rm -rf conftest* | |
9075 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9076 | else | |
9077 | echo "configure: failed program was:" >&5 | |
9078 | cat conftest.$ac_ext >&5 | |
9079 | rm -rf conftest* | |
9080 | eval "ac_cv_lib_$ac_lib_var=no" | |
9081 | fi | |
9082 | rm -f conftest* | |
9083 | LIBS="$ac_save_LIBS" | |
9084 | ||
9085 | fi | |
9086 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9087 | echo "$ac_t""yes" 1>&6 | |
9088 | ZLIB_LINK=" -lz" | |
9089 | else | |
9090 | echo "$ac_t""no" 1>&6 | |
9091 | fi | |
9092 | ||
9093 | else | |
9094 | echo "$ac_t""no" 1>&6 | |
9095 | fi | |
9096 | ||
9097 | ||
9098 | if test "x$ZLIB_LINK" = "x" ; then | |
9099 | if test "$wxUSE_ZLIB" = "sys" ; then | |
9100 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; } | |
9101 | else | |
9102 | echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2 | |
9103 | wxUSE_ZLIB=builtin | |
9104 | fi | |
9105 | else | |
9106 | wxUSE_ZLIB=sys | |
9107 | fi | |
9108 | fi | |
9109 | ||
9110 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
9111 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
9112 | fi | |
9113 | fi | |
9114 | ||
9115 | ||
9116 | PNG_INCLUDE= | |
9117 | PNG_LINK= | |
9118 | if test "$wxUSE_LIBPNG" != "no" ; then | |
9119 | cat >> confdefs.h <<\EOF | |
9120 | #define wxUSE_LIBPNG 1 | |
9121 | EOF | |
9122 | ||
9123 | ||
9124 | if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
9125 | echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2 | |
9126 | wxUSE_LIBPNG=builtin | |
9127 | fi | |
9128 | ||
9129 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
9130 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | |
9131 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
9132 | echo "configure:9133: checking for png.h" >&5 | |
9133 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9134 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9135 | else | |
9136 | cat > conftest.$ac_ext <<EOF | |
9137 | #line 9138 "configure" | |
9138 | #include "confdefs.h" | |
9139 | #include <png.h> | |
9140 | EOF | |
9141 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9142 | { (eval echo configure:9143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9143 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9144 | if test -z "$ac_err"; then | |
9145 | rm -rf conftest* | |
9146 | eval "ac_cv_header_$ac_safe=yes" | |
9147 | else | |
9148 | echo "$ac_err" >&5 | |
9149 | echo "configure: failed program was:" >&5 | |
9150 | cat conftest.$ac_ext >&5 | |
9151 | rm -rf conftest* | |
9152 | eval "ac_cv_header_$ac_safe=no" | |
9153 | fi | |
9154 | rm -f conftest* | |
9155 | fi | |
9156 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9157 | echo "$ac_t""yes" 1>&6 | |
9158 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 | |
9159 | echo "configure:9160: checking for png_check_sig in -lpng" >&5 | |
9160 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` | |
9161 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9162 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9163 | else | |
9164 | ac_save_LIBS="$LIBS" | |
9165 | LIBS="-lpng -lz -lm $LIBS" | |
9166 | cat > conftest.$ac_ext <<EOF | |
9167 | #line 9168 "configure" | |
9168 | #include "confdefs.h" | |
9169 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9170 | /* We use char because int might match the return type of a gcc2 | |
9171 | builtin and then its argument prototype would still apply. */ | |
9172 | char png_check_sig(); | |
9173 | ||
9174 | int main() { | |
9175 | png_check_sig() | |
9176 | ; return 0; } | |
9177 | EOF | |
9178 | if { (eval echo configure:9179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9179 | rm -rf conftest* | |
9180 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9181 | else | |
9182 | echo "configure: failed program was:" >&5 | |
9183 | cat conftest.$ac_ext >&5 | |
9184 | rm -rf conftest* | |
9185 | eval "ac_cv_lib_$ac_lib_var=no" | |
9186 | fi | |
9187 | rm -f conftest* | |
9188 | LIBS="$ac_save_LIBS" | |
9189 | ||
9190 | fi | |
9191 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9192 | echo "$ac_t""yes" 1>&6 | |
9193 | PNG_LINK=" -lpng" | |
9194 | else | |
9195 | echo "$ac_t""no" 1>&6 | |
9196 | fi | |
9197 | ||
9198 | ||
9199 | else | |
9200 | echo "$ac_t""no" 1>&6 | |
9201 | fi | |
9202 | ||
9203 | ||
9204 | if test "x$PNG_LINK" = "x" ; then | |
9205 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
9206 | { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; } | |
9207 | else | |
9208 | echo "configure: warning: system png library not found, will use built-in instead" 1>&2 | |
9209 | wxUSE_LIBPNG=builtin | |
9210 | fi | |
9211 | else | |
9212 | wxUSE_LIBPNG=yes | |
9213 | fi | |
9214 | fi | |
9215 | ||
9216 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
9217 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
9218 | fi | |
9219 | ||
9220 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
9221 | fi | |
9222 | ||
9223 | ||
9224 | JPEG_INCLUDE= | |
9225 | JPEG_LINK= | |
9226 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
9227 | cat >> confdefs.h <<\EOF | |
9228 | #define wxUSE_LIBJPEG 1 | |
9229 | EOF | |
9230 | ||
9231 | ||
9232 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
9233 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 | |
9234 | echo "configure:9235: checking for jpeglib.h" >&5 | |
9235 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then | |
9236 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9237 | else | |
9238 | cat > conftest.$ac_ext <<EOF | |
9239 | #line 9240 "configure" | |
9240 | #include "confdefs.h" | |
9241 | ||
9242 | #undef HAVE_STDLIB_H | |
9243 | #include <stdio.h> | |
9244 | #include <jpeglib.h> | |
9245 | ||
9246 | int main() { | |
9247 | ||
9248 | ||
9249 | ; return 0; } | |
9250 | EOF | |
9251 | if { (eval echo configure:9252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
9252 | rm -rf conftest* | |
9253 | ac_cv_header_jpeglib_h=yes | |
9254 | else | |
9255 | echo "configure: failed program was:" >&5 | |
9256 | cat conftest.$ac_ext >&5 | |
9257 | rm -rf conftest* | |
9258 | ac_cv_header_jpeglib_h=no | |
9259 | ||
9260 | fi | |
9261 | rm -f conftest* | |
9262 | ||
9263 | fi | |
9264 | ||
9265 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 | |
9266 | ||
9267 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
9268 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 | |
9269 | echo "configure:9270: checking for jpeg_read_header in -ljpeg" >&5 | |
9270 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` | |
9271 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9272 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9273 | else | |
9274 | ac_save_LIBS="$LIBS" | |
9275 | LIBS="-ljpeg $LIBS" | |
9276 | cat > conftest.$ac_ext <<EOF | |
9277 | #line 9278 "configure" | |
9278 | #include "confdefs.h" | |
9279 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9280 | /* We use char because int might match the return type of a gcc2 | |
9281 | builtin and then its argument prototype would still apply. */ | |
9282 | char jpeg_read_header(); | |
9283 | ||
9284 | int main() { | |
9285 | jpeg_read_header() | |
9286 | ; return 0; } | |
9287 | EOF | |
9288 | if { (eval echo configure:9289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9289 | rm -rf conftest* | |
9290 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9291 | else | |
9292 | echo "configure: failed program was:" >&5 | |
9293 | cat conftest.$ac_ext >&5 | |
9294 | rm -rf conftest* | |
9295 | eval "ac_cv_lib_$ac_lib_var=no" | |
9296 | fi | |
9297 | rm -f conftest* | |
9298 | LIBS="$ac_save_LIBS" | |
9299 | ||
9300 | fi | |
9301 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9302 | echo "$ac_t""yes" 1>&6 | |
9303 | JPEG_LINK=" -ljpeg" | |
9304 | else | |
9305 | echo "$ac_t""no" 1>&6 | |
9306 | fi | |
9307 | ||
9308 | fi | |
9309 | ||
9310 | if test "x$JPEG_LINK" = "x" ; then | |
9311 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
9312 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; } | |
9313 | else | |
9314 | echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2 | |
9315 | wxUSE_LIBJPEG=builtin | |
9316 | fi | |
9317 | else | |
9318 | wxUSE_LIBJPEG=sys | |
9319 | fi | |
9320 | fi | |
9321 | ||
9322 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
9323 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
9324 | fi | |
9325 | fi | |
9326 | ||
9327 | ||
9328 | TIFF_INCLUDE= | |
9329 | TIFF_LINK= | |
9330 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
9331 | cat >> confdefs.h <<\EOF | |
9332 | #define wxUSE_LIBTIFF 1 | |
9333 | EOF | |
9334 | ||
9335 | ||
9336 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
9337 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` | |
9338 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
9339 | echo "configure:9340: checking for tiffio.h" >&5 | |
9340 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9341 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9342 | else | |
9343 | cat > conftest.$ac_ext <<EOF | |
9344 | #line 9345 "configure" | |
9345 | #include "confdefs.h" | |
9346 | #include <tiffio.h> | |
9347 | EOF | |
9348 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9349 | { (eval echo configure:9350: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9350 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9351 | if test -z "$ac_err"; then | |
9352 | rm -rf conftest* | |
9353 | eval "ac_cv_header_$ac_safe=yes" | |
9354 | else | |
9355 | echo "$ac_err" >&5 | |
9356 | echo "configure: failed program was:" >&5 | |
9357 | cat conftest.$ac_ext >&5 | |
9358 | rm -rf conftest* | |
9359 | eval "ac_cv_header_$ac_safe=no" | |
9360 | fi | |
9361 | rm -f conftest* | |
9362 | fi | |
9363 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9364 | echo "$ac_t""yes" 1>&6 | |
9365 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
9366 | echo "configure:9367: checking for TIFFError in -ltiff" >&5 | |
9367 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` | |
9368 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9369 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9370 | else | |
9371 | ac_save_LIBS="$LIBS" | |
9372 | LIBS="-ltiff -lm $LIBS" | |
9373 | cat > conftest.$ac_ext <<EOF | |
9374 | #line 9375 "configure" | |
9375 | #include "confdefs.h" | |
9376 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9377 | /* We use char because int might match the return type of a gcc2 | |
9378 | builtin and then its argument prototype would still apply. */ | |
9379 | char TIFFError(); | |
9380 | ||
9381 | int main() { | |
9382 | TIFFError() | |
9383 | ; return 0; } | |
9384 | EOF | |
9385 | if { (eval echo configure:9386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9386 | rm -rf conftest* | |
9387 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9388 | else | |
9389 | echo "configure: failed program was:" >&5 | |
9390 | cat conftest.$ac_ext >&5 | |
9391 | rm -rf conftest* | |
9392 | eval "ac_cv_lib_$ac_lib_var=no" | |
9393 | fi | |
9394 | rm -f conftest* | |
9395 | LIBS="$ac_save_LIBS" | |
9396 | ||
9397 | fi | |
9398 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9399 | echo "$ac_t""yes" 1>&6 | |
9400 | TIFF_LINK=" -ltiff" | |
9401 | else | |
9402 | echo "$ac_t""no" 1>&6 | |
9403 | fi | |
9404 | ||
9405 | ||
9406 | else | |
9407 | echo "$ac_t""no" 1>&6 | |
9408 | fi | |
9409 | ||
9410 | ||
9411 | if test "x$TIFF_LINK" = "x" ; then | |
9412 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
9413 | { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; } | |
9414 | else | |
9415 | echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2 | |
9416 | wxUSE_LIBTIFF=builtin | |
9417 | fi | |
9418 | else | |
9419 | wxUSE_LIBTIFF=sys | |
9420 | fi | |
9421 | fi | |
9422 | ||
9423 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
9424 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
9425 | fi | |
9426 | fi | |
9427 | ||
9428 | ||
9429 | FREETYPE_INCLUDE= | |
9430 | FREETYPE_LINK= | |
9431 | if test "$wxUSE_FREETYPE" != "no" ; then | |
9432 | cat >> confdefs.h <<\EOF | |
9433 | #define wxUSE_FREETYPE 1 | |
9434 | EOF | |
9435 | ||
9436 | ||
9437 | if test "$wxUSE_FREETYPE" = "sys" -o "$wxUSE_FREETYPE" = "yes" ; then | |
9438 | ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'` | |
9439 | echo $ac_n "checking for freetype.h""... $ac_c" 1>&6 | |
9440 | echo "configure:9441: checking for freetype.h" >&5 | |
9441 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9442 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9443 | else | |
9444 | cat > conftest.$ac_ext <<EOF | |
9445 | #line 9446 "configure" | |
9446 | #include "confdefs.h" | |
9447 | #include <freetype.h> | |
9448 | EOF | |
9449 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9450 | { (eval echo configure:9451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9451 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9452 | if test -z "$ac_err"; then | |
9453 | rm -rf conftest* | |
9454 | eval "ac_cv_header_$ac_safe=yes" | |
9455 | else | |
9456 | echo "$ac_err" >&5 | |
9457 | echo "configure: failed program was:" >&5 | |
9458 | cat conftest.$ac_ext >&5 | |
9459 | rm -rf conftest* | |
9460 | eval "ac_cv_header_$ac_safe=no" | |
9461 | fi | |
9462 | rm -f conftest* | |
9463 | fi | |
9464 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9465 | echo "$ac_t""yes" 1>&6 | |
9466 | echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6 | |
9467 | echo "configure:9468: checking for FT_Render_Glyph in -lfreetype" >&5 | |
9468 | ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'` | |
9469 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9470 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9471 | else | |
9472 | ac_save_LIBS="$LIBS" | |
9473 | LIBS="-lfreetype -lm $LIBS" | |
9474 | cat > conftest.$ac_ext <<EOF | |
9475 | #line 9476 "configure" | |
9476 | #include "confdefs.h" | |
9477 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9478 | /* We use char because int might match the return type of a gcc2 | |
9479 | builtin and then its argument prototype would still apply. */ | |
9480 | char FT_Render_Glyph(); | |
9481 | ||
9482 | int main() { | |
9483 | FT_Render_Glyph() | |
9484 | ; return 0; } | |
9485 | EOF | |
9486 | if { (eval echo configure:9487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9487 | rm -rf conftest* | |
9488 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9489 | else | |
9490 | echo "configure: failed program was:" >&5 | |
9491 | cat conftest.$ac_ext >&5 | |
9492 | rm -rf conftest* | |
9493 | eval "ac_cv_lib_$ac_lib_var=no" | |
9494 | fi | |
9495 | rm -f conftest* | |
9496 | LIBS="$ac_save_LIBS" | |
9497 | ||
9498 | fi | |
9499 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9500 | echo "$ac_t""yes" 1>&6 | |
9501 | FREETYPE_LINK=" -lfreetype" | |
9502 | else | |
9503 | echo "$ac_t""no" 1>&6 | |
9504 | fi | |
9505 | ||
9506 | ||
9507 | else | |
9508 | echo "$ac_t""no" 1>&6 | |
9509 | fi | |
9510 | ||
9511 | ||
9512 | if test "x$FREETYPE_LINK" = "x" ; then | |
9513 | if test "$wxUSE_FREETYPE" = "sys" ; then | |
9514 | { echo "configure: error: system freetype library not found! Use --with-freetype=builtin to use built-in version" 1>&2; exit 1; } | |
9515 | else | |
9516 | echo "configure: warning: system freetype library not found, will use built-in instead" 1>&2 | |
9517 | wxUSE_FREETYPE=builtin | |
9518 | fi | |
9519 | else | |
9520 | wxUSE_FREETYPE=sys | |
9521 | fi | |
9522 | fi | |
9523 | ||
9524 | if test "$wxUSE_FREETYPE" = "builtin" ; then | |
9525 | FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype" | |
9526 | fi | |
9527 | fi | |
9528 | ||
9529 | ||
9530 | AFMINSTALL= | |
9531 | ||
9532 | TOOLKIT= | |
9533 | TOOLKIT_INCLUDE= | |
9534 | WIDGET_SET= | |
9535 | ||
9536 | if test "$USE_WIN32" = 1 ; then | |
9537 | for ac_hdr in w32api.h | |
9538 | do | |
9539 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9540 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9541 | echo "configure:9542: checking for $ac_hdr" >&5 | |
9542 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9543 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9544 | else | |
9545 | cat > conftest.$ac_ext <<EOF | |
9546 | #line 9547 "configure" | |
9547 | #include "confdefs.h" | |
9548 | #include <$ac_hdr> | |
9549 | EOF | |
9550 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9551 | { (eval echo configure:9552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9552 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9553 | if test -z "$ac_err"; then | |
9554 | rm -rf conftest* | |
9555 | eval "ac_cv_header_$ac_safe=yes" | |
9556 | else | |
9557 | echo "$ac_err" >&5 | |
9558 | echo "configure: failed program was:" >&5 | |
9559 | cat conftest.$ac_ext >&5 | |
9560 | rm -rf conftest* | |
9561 | eval "ac_cv_header_$ac_safe=no" | |
9562 | fi | |
9563 | rm -f conftest* | |
9564 | fi | |
9565 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9566 | echo "$ac_t""yes" 1>&6 | |
9567 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9568 | cat >> confdefs.h <<EOF | |
9569 | #define $ac_tr_hdr 1 | |
9570 | EOF | |
9571 | ||
9572 | else | |
9573 | echo "$ac_t""no" 1>&6 | |
9574 | fi | |
9575 | done | |
9576 | ||
9577 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` | |
9578 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
9579 | echo "configure:9580: checking for windows.h" >&5 | |
9580 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9581 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9582 | else | |
9583 | cat > conftest.$ac_ext <<EOF | |
9584 | #line 9585 "configure" | |
9585 | #include "confdefs.h" | |
9586 | #include <windows.h> | |
9587 | EOF | |
9588 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9589 | { (eval echo configure:9590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9590 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9591 | if test -z "$ac_err"; then | |
9592 | rm -rf conftest* | |
9593 | eval "ac_cv_header_$ac_safe=yes" | |
9594 | else | |
9595 | echo "$ac_err" >&5 | |
9596 | echo "configure: failed program was:" >&5 | |
9597 | cat conftest.$ac_ext >&5 | |
9598 | rm -rf conftest* | |
9599 | eval "ac_cv_header_$ac_safe=no" | |
9600 | fi | |
9601 | rm -f conftest* | |
9602 | fi | |
9603 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9604 | echo "$ac_t""yes" 1>&6 | |
9605 | : | |
9606 | else | |
9607 | echo "$ac_t""no" 1>&6 | |
9608 | ||
9609 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
9610 | ||
9611 | fi | |
9612 | ||
9613 | ||
9614 | echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6 | |
9615 | echo "configure:9616: checking if w32api has good enough MSIE support" >&5 | |
9616 | if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then | |
9617 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9618 | else | |
9619 | ||
9620 | cat > conftest.$ac_ext <<EOF | |
9621 | #line 9622 "configure" | |
9622 | #include "confdefs.h" | |
9623 | #include <w32api.h> | |
9624 | int main() { | |
9625 | ||
9626 | #define wxCHECK_W32API_VERSION( major, minor ) \ | |
9627 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
9628 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
9629 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
9630 | ||
9631 | #if !wxCHECK_W32API_VERSION(1,1) | |
9632 | #error You need w32api 1.1 or newer | |
9633 | #endif | |
9634 | ||
9635 | ; return 0; } | |
9636 | EOF | |
9637 | if { (eval echo configure:9638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
9638 | rm -rf conftest* | |
9639 | ||
9640 | wx_cv_w32api_win32_ie=yes | |
9641 | ||
9642 | else | |
9643 | echo "configure: failed program was:" >&5 | |
9644 | cat conftest.$ac_ext >&5 | |
9645 | rm -rf conftest* | |
9646 | ||
9647 | wx_cv_w32api_win32_ie=no | |
9648 | ||
9649 | fi | |
9650 | rm -f conftest* | |
9651 | ||
9652 | fi | |
9653 | ||
9654 | echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6 | |
9655 | if test "$wx_cv_w32api_win32_ie" = "yes" ; then | |
9656 | CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400" | |
9657 | fi | |
9658 | ||
9659 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" | |
9660 | ||
9661 | case "${host}" in | |
9662 | *-*-cygwin* ) | |
9663 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32" | |
9664 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
9665 | esac | |
9666 | ||
9667 | if test "$wxUSE_ODBC" = "yes" ; then | |
9668 | LIBS=" -lodbc32 -lole32 -loleaut32$LIBS" | |
9669 | fi | |
9670 | ||
9671 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" | |
9672 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
9673 | fi | |
9674 | ||
9675 | if test "$wxUSE_GUI" = "yes"; then | |
9676 | USE_GUI=1 | |
9677 | ||
9678 | GUI_TK_LIBRARY= | |
9679 | ||
9680 | WXGTK12= | |
9681 | WXGTK127= | |
9682 | WXGTK20= | |
9683 | ||
9684 | if test "$wxUSE_MSW" = 1 ; then | |
9685 | TOOLKIT=MSW | |
9686 | GUIDIST=MSW_DIST | |
9687 | ||
9688 | case "${host}" in | |
9689 | *-*-mingw32* ) | |
9690 | LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
9691 | esac | |
9692 | fi | |
9693 | ||
9694 | if test "$wxUSE_GTK" = 1; then | |
9695 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 | |
9696 | echo "configure:9697: checking for GTK+ version" >&5 | |
9697 | ||
9698 | gtk_version_cached=1 | |
9699 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then | |
9700 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9701 | else | |
9702 | ||
9703 | gtk_version_cached=0 | |
9704 | echo "$ac_t""" 1>&6 | |
9705 | ||
9706 | wx_cv_lib_gtk= | |
9707 | if test "x$wxUSE_GTK2" = "xyes"; then | |
9708 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
9709 | if test "${with_gtk_prefix+set}" = set; then | |
9710 | withval="$with_gtk_prefix" | |
9711 | gtk_config_prefix="$withval" | |
9712 | else | |
9713 | gtk_config_prefix="" | |
9714 | fi | |
9715 | ||
9716 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
9717 | if test "${with_gtk_exec_prefix+set}" = set; then | |
9718 | withval="$with_gtk_exec_prefix" | |
9719 | gtk_config_exec_prefix="$withval" | |
9720 | else | |
9721 | gtk_config_exec_prefix="" | |
9722 | fi | |
9723 | ||
9724 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
9725 | if test "${enable_gtktest+set}" = set; then | |
9726 | enableval="$enable_gtktest" | |
9727 | : | |
9728 | else | |
9729 | enable_gtktest=yes | |
9730 | fi | |
9731 | ||
9732 | ||
9733 | for module in . | |
9734 | do | |
9735 | case "$module" in | |
9736 | gthread) | |
9737 | gtk_config_args="$gtk_config_args gthread" | |
9738 | ;; | |
9739 | esac | |
9740 | done | |
9741 | ||
9742 | if test x$gtk_config_exec_prefix != x ; then | |
9743 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
9744 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
9745 | GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0 | |
9746 | fi | |
9747 | fi | |
9748 | if test x$gtk_config_prefix != x ; then | |
9749 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
9750 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
9751 | GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0 | |
9752 | fi | |
9753 | fi | |
9754 | ||
9755 | # Extract the first word of "gtk-config-2.0", so it can be a program name with args. | |
9756 | set dummy gtk-config-2.0; ac_word=$2 | |
9757 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9758 | echo "configure:9759: checking for $ac_word" >&5 | |
9759 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then | |
9760 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9761 | else | |
9762 | case "$GTK_CONFIG_2_0" in | |
9763 | /*) | |
9764 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path. | |
9765 | ;; | |
9766 | ?:/*) | |
9767 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path. | |
9768 | ;; | |
9769 | *) | |
9770 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
9771 | ac_dummy="$PATH" | |
9772 | for ac_dir in $ac_dummy; do | |
9773 | test -z "$ac_dir" && ac_dir=. | |
9774 | if test -f $ac_dir/$ac_word; then | |
9775 | ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word" | |
9776 | break | |
9777 | fi | |
9778 | done | |
9779 | IFS="$ac_save_ifs" | |
9780 | test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no" | |
9781 | ;; | |
9782 | esac | |
9783 | fi | |
9784 | GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0" | |
9785 | if test -n "$GTK_CONFIG_2_0"; then | |
9786 | echo "$ac_t""$GTK_CONFIG_2_0" 1>&6 | |
9787 | else | |
9788 | echo "$ac_t""no" 1>&6 | |
9789 | fi | |
9790 | ||
9791 | min_gtk_version=1.3.1 | |
9792 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 | |
9793 | echo "configure:9794: checking for GTK - version >= $min_gtk_version" >&5 | |
9794 | no_gtk="" | |
9795 | if test "$GTK_CONFIG_2_0" = "no" ; then | |
9796 | no_gtk=yes | |
9797 | else | |
9798 | GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags` | |
9799 | GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs` | |
9800 | gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
9801 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
9802 | gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
9803 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
9804 | gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
9805 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
9806 | if test "x$enable_gtktest" = "xyes" ; then | |
9807 | ac_save_CFLAGS="$CFLAGS" | |
9808 | ac_save_LIBS="$LIBS" | |
9809 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
9810 | LIBS="$GTK_LIBS $LIBS" | |
9811 | rm -f conf.gtktest | |
9812 | if test "$cross_compiling" = yes; then | |
9813 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
9814 | else | |
9815 | cat > conftest.$ac_ext <<EOF | |
9816 | #line 9817 "configure" | |
9817 | #include "confdefs.h" | |
9818 | ||
9819 | #include <gtk/gtk.h> | |
9820 | #include <stdio.h> | |
9821 | #include <stdlib.h> | |
9822 | ||
9823 | int | |
9824 | main () | |
9825 | { | |
9826 | int major, minor, micro; | |
9827 | char *tmp_version; | |
9828 | ||
9829 | system ("touch conf.gtktest"); | |
9830 | ||
9831 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
9832 | tmp_version = g_strdup("$min_gtk_version"); | |
9833 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
9834 | printf("%s, bad version string\n", "$min_gtk_version"); | |
9835 | exit(1); | |
9836 | } | |
9837 | ||
9838 | if ((gtk_major_version != $gtk_config_major_version) || | |
9839 | (gtk_minor_version != $gtk_config_minor_version) || | |
9840 | (gtk_micro_version != $gtk_config_micro_version)) | |
9841 | { | |
9842 | printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
9843 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
9844 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
9845 | printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n"); | |
9846 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
9847 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
9848 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
9849 | printf("*** required on your system.\n"); | |
9850 | printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n"); | |
9851 | printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n"); | |
9852 | printf("*** before re-running configure\n"); | |
9853 | } | |
9854 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
9855 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
9856 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
9857 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
9858 | { | |
9859 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
9860 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
9861 | printf("*** library (version %d.%d.%d)\n", | |
9862 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
9863 | } | |
9864 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
9865 | else | |
9866 | { | |
9867 | if ((gtk_major_version > major) || | |
9868 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
9869 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
9870 | { | |
9871 | return 0; | |
9872 | } | |
9873 | else | |
9874 | { | |
9875 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
9876 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
9877 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
9878 | major, minor, micro); | |
9879 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
9880 | printf("***\n"); | |
9881 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
9882 | printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n"); | |
9883 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
9884 | printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n"); | |
9885 | printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n"); | |
9886 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
9887 | printf("*** so that the correct libraries are found at run-time))\n"); | |
9888 | } | |
9889 | } | |
9890 | return 1; | |
9891 | } | |
9892 | ||
9893 | EOF | |
9894 | if { (eval echo configure:9895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
9895 | then | |
9896 | : | |
9897 | else | |
9898 | echo "configure: failed program was:" >&5 | |
9899 | cat conftest.$ac_ext >&5 | |
9900 | rm -fr conftest* | |
9901 | no_gtk=yes | |
9902 | fi | |
9903 | rm -fr conftest* | |
9904 | fi | |
9905 | ||
9906 | CFLAGS="$ac_save_CFLAGS" | |
9907 | LIBS="$ac_save_LIBS" | |
9908 | fi | |
9909 | fi | |
9910 | if test "x$no_gtk" = x ; then | |
9911 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 | |
9912 | wx_cv_lib_gtk=2.0 | |
9913 | else | |
9914 | echo "$ac_t""no" 1>&6 | |
9915 | if test "$GTK_CONFIG_2_0" = "no" ; then | |
9916 | echo "*** The gtk-config-2.0 script installed by GTK could not be found" | |
9917 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
9918 | echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the" | |
9919 | echo "*** full path to gtk-config-2.0." | |
9920 | else | |
9921 | if test -f conf.gtktest ; then | |
9922 | : | |
9923 | else | |
9924 | echo "*** Could not run GTK test program, checking why..." | |
9925 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
9926 | LIBS="$LIBS $GTK_LIBS" | |
9927 | cat > conftest.$ac_ext <<EOF | |
9928 | #line 9929 "configure" | |
9929 | #include "confdefs.h" | |
9930 | ||
9931 | #include <gtk/gtk.h> | |
9932 | #include <stdio.h> | |
9933 | ||
9934 | int main() { | |
9935 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
9936 | ; return 0; } | |
9937 | EOF | |
9938 | if { (eval echo configure:9939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9939 | rm -rf conftest* | |
9940 | echo "*** The test program compiled, but did not run. This usually means" | |
9941 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
9942 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
9943 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
9944 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
9945 | echo "*** is required on your system" | |
9946 | echo "***" | |
9947 | echo "*** If you have an old version installed, it is best to remove it, although" | |
9948 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
9949 | echo "***" | |
9950 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
9951 | echo "*** came with the system with the command" | |
9952 | echo "***" | |
9953 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
9954 | else | |
9955 | echo "configure: failed program was:" >&5 | |
9956 | cat conftest.$ac_ext >&5 | |
9957 | rm -rf conftest* | |
9958 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
9959 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
9960 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
9961 | echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0" | |
9962 | fi | |
9963 | rm -f conftest* | |
9964 | CFLAGS="$ac_save_CFLAGS" | |
9965 | LIBS="$ac_save_LIBS" | |
9966 | fi | |
9967 | fi | |
9968 | GTK_CFLAGS="" | |
9969 | GTK_LIBS="" | |
9970 | gthread | |
9971 | fi | |
9972 | ||
9973 | ||
9974 | rm -f conf.gtktest | |
9975 | ||
9976 | fi | |
9977 | ||
9978 | if test -z "$wx_cv_lib_gtk"; then | |
9979 | ||
9980 | if test x$gtk_config_exec_prefix != x ; then | |
9981 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
9982 | if test x${GTK_CONFIG+set} != xset ; then | |
9983 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
9984 | fi | |
9985 | fi | |
9986 | if test x$gtk_config_prefix != x ; then | |
9987 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
9988 | if test x${GTK_CONFIG+set} != xset ; then | |
9989 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
9990 | fi | |
9991 | fi | |
9992 | ||
9993 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
9994 | set dummy gtk-config; ac_word=$2 | |
9995 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
9996 | echo "configure:9997: checking for $ac_word" >&5 | |
9997 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then | |
9998 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9999 | else | |
10000 | case "$GTK_CONFIG" in | |
10001 | /*) | |
10002 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
10003 | ;; | |
10004 | ?:/*) | |
10005 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
10006 | ;; | |
10007 | *) | |
10008 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
10009 | ac_dummy="$PATH" | |
10010 | for ac_dir in $ac_dummy; do | |
10011 | test -z "$ac_dir" && ac_dir=. | |
10012 | if test -f $ac_dir/$ac_word; then | |
10013 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
10014 | break | |
10015 | fi | |
10016 | done | |
10017 | IFS="$ac_save_ifs" | |
10018 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
10019 | ;; | |
10020 | esac | |
10021 | fi | |
10022 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
10023 | if test -n "$GTK_CONFIG"; then | |
10024 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
10025 | else | |
10026 | echo "$ac_t""no" 1>&6 | |
10027 | fi | |
10028 | ||
10029 | min_gtk_version=1.2.7 | |
10030 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 | |
10031 | echo "configure:10032: checking for GTK - version >= $min_gtk_version" >&5 | |
10032 | no_gtk="" | |
10033 | if test "$GTK_CONFIG" != "no" ; then | |
10034 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
10035 | GTK_LIBS=`$GTK_CONFIG --libs gthread` | |
10036 | ac_save_CFLAGS="$CFLAGS" | |
10037 | ac_save_LIBS="$LIBS" | |
10038 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10039 | LIBS="$LIBS $GTK_LIBS" | |
10040 | if test "$cross_compiling" = yes; then | |
10041 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
10042 | else | |
10043 | cat > conftest.$ac_ext <<EOF | |
10044 | #line 10045 "configure" | |
10045 | #include "confdefs.h" | |
10046 | ||
10047 | #include <gtk/gtk.h> | |
10048 | #include <gtk/gtkfeatures.h> | |
10049 | #include <stdio.h> | |
10050 | #include <stdlib.h> | |
10051 | ||
10052 | int | |
10053 | main () | |
10054 | { | |
10055 | int major, minor, micro; | |
10056 | ||
10057 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
10058 | printf("%s, bad version string\n", "$min_gtk_version"); | |
10059 | exit(1); | |
10060 | } | |
10061 | ||
10062 | if ((GTK_MAJOR_VERSION != gtk_major_version) || | |
10063 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
10064 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
10065 | printf("Headers vs. library version mismatch!\n"); | |
10066 | exit(1); | |
10067 | } | |
10068 | ||
10069 | if (gtk_minor_version == 1) return FALSE; | |
10070 | ||
10071 | return !((gtk_major_version > major) || | |
10072 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
10073 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
10074 | } | |
10075 | ||
10076 | EOF | |
10077 | if { (eval echo configure:10078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
10078 | then | |
10079 | : | |
10080 | else | |
10081 | echo "configure: failed program was:" >&5 | |
10082 | cat conftest.$ac_ext >&5 | |
10083 | rm -fr conftest* | |
10084 | no_gtk=yes | |
10085 | fi | |
10086 | rm -fr conftest* | |
10087 | fi | |
10088 | ||
10089 | CFLAGS="$ac_save_CFLAGS" | |
10090 | LIBS="$ac_save_LIBS" | |
10091 | else | |
10092 | no_gtk=yes | |
10093 | fi | |
10094 | if test "x$no_gtk" = x ; then | |
10095 | echo "$ac_t""yes" 1>&6 | |
10096 | wx_cv_lib_gtk=1.2.7 | |
10097 | else | |
10098 | echo "$ac_t""no" 1>&6 | |
10099 | GTK_CFLAGS="" | |
10100 | GTK_LIBS="" | |
10101 | : | |
10102 | fi | |
10103 | ||
10104 | ||
10105 | ||
10106 | fi | |
10107 | ||
10108 | if test -z "$wx_cv_lib_gtk"; then | |
10109 | ||
10110 | if test x$gtk_config_exec_prefix != x ; then | |
10111 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
10112 | if test x${GTK_CONFIG+set} != xset ; then | |
10113 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
10114 | fi | |
10115 | fi | |
10116 | if test x$gtk_config_prefix != x ; then | |
10117 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
10118 | if test x${GTK_CONFIG+set} != xset ; then | |
10119 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
10120 | fi | |
10121 | fi | |
10122 | ||
10123 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
10124 | set dummy gtk-config; ac_word=$2 | |
10125 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
10126 | echo "configure:10127: checking for $ac_word" >&5 | |
10127 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then | |
10128 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10129 | else | |
10130 | case "$GTK_CONFIG" in | |
10131 | /*) | |
10132 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
10133 | ;; | |
10134 | ?:/*) | |
10135 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
10136 | ;; | |
10137 | *) | |
10138 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
10139 | ac_dummy="$PATH" | |
10140 | for ac_dir in $ac_dummy; do | |
10141 | test -z "$ac_dir" && ac_dir=. | |
10142 | if test -f $ac_dir/$ac_word; then | |
10143 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
10144 | break | |
10145 | fi | |
10146 | done | |
10147 | IFS="$ac_save_ifs" | |
10148 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
10149 | ;; | |
10150 | esac | |
10151 | fi | |
10152 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
10153 | if test -n "$GTK_CONFIG"; then | |
10154 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
10155 | else | |
10156 | echo "$ac_t""no" 1>&6 | |
10157 | fi | |
10158 | ||
10159 | min_gtk_version=1.2.3 | |
10160 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 | |
10161 | echo "configure:10162: checking for GTK - version >= $min_gtk_version" >&5 | |
10162 | no_gtk="" | |
10163 | if test "$GTK_CONFIG" != "no" ; then | |
10164 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
10165 | GTK_LIBS=`$GTK_CONFIG --libs gthread` | |
10166 | ac_save_CFLAGS="$CFLAGS" | |
10167 | ac_save_LIBS="$LIBS" | |
10168 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
10169 | LIBS="$LIBS $GTK_LIBS" | |
10170 | if test "$cross_compiling" = yes; then | |
10171 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
10172 | else | |
10173 | cat > conftest.$ac_ext <<EOF | |
10174 | #line 10175 "configure" | |
10175 | #include "confdefs.h" | |
10176 | ||
10177 | #include <gtk/gtk.h> | |
10178 | #include <gtk/gtkfeatures.h> | |
10179 | #include <stdio.h> | |
10180 | #include <stdlib.h> | |
10181 | ||
10182 | int | |
10183 | main () | |
10184 | { | |
10185 | int major, minor, micro; | |
10186 | ||
10187 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
10188 | printf("%s, bad version string\n", "$min_gtk_version"); | |
10189 | exit(1); | |
10190 | } | |
10191 | ||
10192 | if ((GTK_MAJOR_VERSION != gtk_major_version) || | |
10193 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
10194 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
10195 | printf("Headers vs. library version mismatch!\n"); | |
10196 | exit(1); | |
10197 | } | |
10198 | ||
10199 | if (gtk_minor_version == 1) return FALSE; | |
10200 | ||
10201 | return !((gtk_major_version > major) || | |
10202 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
10203 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
10204 | } | |
10205 | ||
10206 | EOF | |
10207 | if { (eval echo configure:10208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
10208 | then | |
10209 | : | |
10210 | else | |
10211 | echo "configure: failed program was:" >&5 | |
10212 | cat conftest.$ac_ext >&5 | |
10213 | rm -fr conftest* | |
10214 | no_gtk=yes | |
10215 | fi | |
10216 | rm -fr conftest* | |
10217 | fi | |
10218 | ||
10219 | CFLAGS="$ac_save_CFLAGS" | |
10220 | LIBS="$ac_save_LIBS" | |
10221 | else | |
10222 | no_gtk=yes | |
10223 | fi | |
10224 | if test "x$no_gtk" = x ; then | |
10225 | echo "$ac_t""yes" 1>&6 | |
10226 | wx_cv_lib_gtk=1.2.3 | |
10227 | else | |
10228 | echo "$ac_t""no" 1>&6 | |
10229 | GTK_CFLAGS="" | |
10230 | GTK_LIBS="" | |
10231 | : | |
10232 | fi | |
10233 | ||
10234 | ||
10235 | ||
10236 | fi | |
10237 | ||
10238 | if test -z "$wx_cv_lib_gtk"; then | |
10239 | wx_cv_lib_gtk=none | |
10240 | else | |
10241 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
10242 | wx_cv_libs_gtk=$GTK_LIBS | |
10243 | fi | |
10244 | ||
10245 | ||
10246 | fi | |
10247 | ||
10248 | ||
10249 | if test "$gtk_version_cached" = 1; then | |
10250 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 | |
10251 | fi | |
10252 | ||
10253 | case "$wx_cv_lib_gtk" in | |
10254 | 2.0) WXGTK20=1 | |
10255 | ;; | |
10256 | 1.2.7) WXGTK127=1 | |
10257 | WXGTK12=1 | |
10258 | ;; | |
10259 | 1.2.3) WXGTK12=1 | |
10260 | ;; | |
10261 | *) { echo "configure: error: | |
10262 | Please check that gtk-config is in path, the directory | |
10263 | where GTK+ libraries are installed (returned by | |
10264 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
10265 | equivalent variable and GTK+ is version 1.2.3 or above. | |
10266 | " 1>&2; exit 1; } | |
10267 | ;; | |
10268 | esac | |
10269 | ||
10270 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
10271 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" | |
10272 | ||
10273 | AFMINSTALL=afminstall | |
10274 | TOOLKIT=GTK | |
10275 | GUIDIST=GTK_DIST | |
10276 | ||
10277 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 | |
10278 | echo "configure:10279: checking for gdk_im_open in -lgdk" >&5 | |
10279 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` | |
10280 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10281 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10282 | else | |
10283 | ac_save_LIBS="$LIBS" | |
10284 | LIBS="-lgdk $LIBS" | |
10285 | cat > conftest.$ac_ext <<EOF | |
10286 | #line 10287 "configure" | |
10287 | #include "confdefs.h" | |
10288 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10289 | /* We use char because int might match the return type of a gcc2 | |
10290 | builtin and then its argument prototype would still apply. */ | |
10291 | char gdk_im_open(); | |
10292 | ||
10293 | int main() { | |
10294 | gdk_im_open() | |
10295 | ; return 0; } | |
10296 | EOF | |
10297 | if { (eval echo configure:10298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10298 | rm -rf conftest* | |
10299 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10300 | else | |
10301 | echo "configure: failed program was:" >&5 | |
10302 | cat conftest.$ac_ext >&5 | |
10303 | rm -rf conftest* | |
10304 | eval "ac_cv_lib_$ac_lib_var=no" | |
10305 | fi | |
10306 | rm -f conftest* | |
10307 | LIBS="$ac_save_LIBS" | |
10308 | ||
10309 | fi | |
10310 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10311 | echo "$ac_t""yes" 1>&6 | |
10312 | cat >> confdefs.h <<\EOF | |
10313 | #define HAVE_XIM 1 | |
10314 | EOF | |
10315 | ||
10316 | else | |
10317 | echo "$ac_t""no" 1>&6 | |
10318 | fi | |
10319 | ||
10320 | fi | |
10321 | ||
10322 | if test "$wxUSE_MGL" = 1; then | |
10323 | ||
10324 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 | |
10325 | echo "configure:10326: checking for SciTech MGL library" >&5 | |
10326 | if test "x$MGL_ROOT" = x ; then | |
10327 | echo "$ac_t""not found" 1>&6 | |
10328 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
10329 | else | |
10330 | echo "$ac_t""$MGL_ROOT" 1>&6 | |
10331 | fi | |
10332 | ||
10333 | mgl_os=linux/gcc/glibc | |
10334 | mgl_lib_type="" | |
10335 | ||
10336 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
10337 | if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \ | |
10338 | -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then | |
10339 | mgl_lib_type=debug | |
10340 | fi | |
10341 | fi | |
10342 | if test "x$mgl_lib_type" = x ; then | |
10343 | if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \ | |
10344 | -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then | |
10345 | mgl_lib_type=release | |
10346 | else | |
10347 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } | |
10348 | fi | |
10349 | fi | |
10350 | ||
10351 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
10352 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
10353 | ||
10354 | AFMINSTALL=afminstall | |
10355 | TOOLKIT=MGL | |
10356 | GUIDIST=MGL_DIST | |
10357 | fi | |
10358 | ||
10359 | if test "$wxUSE_WINE" = 1; then | |
10360 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` | |
10361 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
10362 | echo "configure:10363: checking for windows.h" >&5 | |
10363 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
10364 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10365 | else | |
10366 | cat > conftest.$ac_ext <<EOF | |
10367 | #line 10368 "configure" | |
10368 | #include "confdefs.h" | |
10369 | #include <windows.h> | |
10370 | EOF | |
10371 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
10372 | { (eval echo configure:10373: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
10373 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
10374 | if test -z "$ac_err"; then | |
10375 | rm -rf conftest* | |
10376 | eval "ac_cv_header_$ac_safe=yes" | |
10377 | else | |
10378 | echo "$ac_err" >&5 | |
10379 | echo "configure: failed program was:" >&5 | |
10380 | cat conftest.$ac_ext >&5 | |
10381 | rm -rf conftest* | |
10382 | eval "ac_cv_header_$ac_safe=no" | |
10383 | fi | |
10384 | rm -f conftest* | |
10385 | fi | |
10386 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10387 | echo "$ac_t""yes" 1>&6 | |
10388 | : | |
10389 | else | |
10390 | echo "$ac_t""no" 1>&6 | |
10391 | ||
10392 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
10393 | ||
10394 | fi | |
10395 | ||
10396 | ||
10397 | xpm_link= | |
10398 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
10399 | echo "configure:10400: checking for Xpm library" >&5 | |
10400 | ||
10401 | ac_find_libraries= | |
10402 | for ac_dir in $SEARCH_LIB; | |
10403 | do | |
10404 | for ac_extension in a so sl dylib; do | |
10405 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
10406 | ac_find_libraries=$ac_dir | |
10407 | break 2 | |
10408 | fi | |
10409 | done | |
10410 | done | |
10411 | ||
10412 | if test "$ac_find_libraries" != "" ; then | |
10413 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
10414 | xpm_link=" -lXpm" | |
10415 | cat >> confdefs.h <<\EOF | |
10416 | #define wxHAVE_LIB_XPM 1 | |
10417 | EOF | |
10418 | ||
10419 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
10420 | else | |
10421 | echo "$ac_t""no" 1>&6 | |
10422 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
10423 | fi | |
10424 | ||
10425 | mesa_link= | |
10426 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 | |
10427 | echo "configure:10428: checking for Mesa library" >&5 | |
10428 | ||
10429 | ac_find_libraries= | |
10430 | for ac_dir in $SEARCH_LIB; | |
10431 | do | |
10432 | for ac_extension in a so sl dylib; do | |
10433 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
10434 | ac_find_libraries=$ac_dir | |
10435 | break 2 | |
10436 | fi | |
10437 | done | |
10438 | done | |
10439 | ||
10440 | if test "$ac_find_libraries" != "" ; then | |
10441 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
10442 | mesa_link=" -lMesaGL" | |
10443 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
10444 | else | |
10445 | { echo "configure: error: no" 1>&2; exit 1; } | |
10446 | fi | |
10447 | ||
10448 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" | |
10449 | TOOLKIT=MSW | |
10450 | GUIDIST=MSW_DIST | |
10451 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__" | |
10452 | fi | |
10453 | ||
10454 | if test "$wxUSE_MOTIF" = 1; then | |
10455 | # If we find X, set shell vars x_includes and x_libraries to the | |
10456 | # paths, otherwise set no_x=yes. | |
10457 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
10458 | # --without-x overrides everything else, but does not touch the cache. | |
10459 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
10460 | echo "configure:10461: checking for X" >&5 | |
10461 | ||
10462 | # Check whether --with-x or --without-x was given. | |
10463 | if test "${with_x+set}" = set; then | |
10464 | withval="$with_x" | |
10465 | : | |
10466 | fi | |
10467 | ||
10468 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
10469 | if test "x$with_x" = xno; then | |
10470 | # The user explicitly disabled X. | |
10471 | have_x=disabled | |
10472 | else | |
10473 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
10474 | # Both variables are already set. | |
10475 | have_x=yes | |
10476 | else | |
10477 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then | |
10478 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10479 | else | |
10480 | # One or both of the vars are not set, and there is no cached value. | |
10481 | ac_x_includes=NO ac_x_libraries=NO | |
10482 | rm -fr conftestdir | |
10483 | if mkdir conftestdir; then | |
10484 | cd conftestdir | |
10485 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
10486 | cat > Imakefile <<'EOF' | |
10487 | acfindx: | |
10488 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
10489 | EOF | |
10490 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
10491 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
10492 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
10493 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
10494 | for ac_extension in a so sl; do | |
10495 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
10496 | test -f $ac_im_libdir/libX11.$ac_extension; then | |
10497 | ac_im_usrlibdir=$ac_im_libdir; break | |
10498 | fi | |
10499 | done | |
10500 | # Screen out bogus values from the imake configuration. They are | |
10501 | # bogus both because they are the default anyway, and because | |
10502 | # using them would break gcc on systems where it needs fixed includes. | |
10503 | case "$ac_im_incroot" in | |
10504 | /usr/include) ;; | |
10505 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; | |
10506 | esac | |
10507 | case "$ac_im_usrlibdir" in | |
10508 | /usr/lib | /lib) ;; | |
10509 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; | |
10510 | esac | |
10511 | fi | |
10512 | cd .. | |
10513 | rm -fr conftestdir | |
10514 | fi | |
10515 | ||
10516 | if test "$ac_x_includes" = NO; then | |
10517 | # Guess where to find include files, by looking for this one X11 .h file. | |
10518 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
10519 | ||
10520 | # First, try using that file with no special directory specified. | |
10521 | cat > conftest.$ac_ext <<EOF | |
10522 | #line 10523 "configure" | |
10523 | #include "confdefs.h" | |
10524 | #include <$x_direct_test_include> | |
10525 | EOF | |
10526 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
10527 | { (eval echo configure:10528: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
10528 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
10529 | if test -z "$ac_err"; then | |
10530 | rm -rf conftest* | |
10531 | # We can compile using X headers with no special include directory. | |
10532 | ac_x_includes= | |
10533 | else | |
10534 | echo "$ac_err" >&5 | |
10535 | echo "configure: failed program was:" >&5 | |
10536 | cat conftest.$ac_ext >&5 | |
10537 | rm -rf conftest* | |
10538 | # Look for the header file in a standard set of common directories. | |
10539 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
10540 | for ac_dir in \ | |
10541 | /usr/X11/include \ | |
10542 | /usr/X11R6/include \ | |
10543 | /usr/X11R5/include \ | |
10544 | /usr/X11R4/include \ | |
10545 | \ | |
10546 | /usr/include/X11 \ | |
10547 | /usr/include/X11R6 \ | |
10548 | /usr/include/X11R5 \ | |
10549 | /usr/include/X11R4 \ | |
10550 | \ | |
10551 | /usr/local/X11/include \ | |
10552 | /usr/local/X11R6/include \ | |
10553 | /usr/local/X11R5/include \ | |
10554 | /usr/local/X11R4/include \ | |
10555 | \ | |
10556 | /usr/local/include/X11 \ | |
10557 | /usr/local/include/X11R6 \ | |
10558 | /usr/local/include/X11R5 \ | |
10559 | /usr/local/include/X11R4 \ | |
10560 | \ | |
10561 | /usr/X386/include \ | |
10562 | /usr/x386/include \ | |
10563 | /usr/XFree86/include/X11 \ | |
10564 | \ | |
10565 | /usr/include \ | |
10566 | /usr/local/include \ | |
10567 | /usr/unsupported/include \ | |
10568 | /usr/athena/include \ | |
10569 | /usr/local/x11r5/include \ | |
10570 | /usr/lpp/Xamples/include \ | |
10571 | \ | |
10572 | /usr/openwin/include \ | |
10573 | /usr/openwin/share/include \ | |
10574 | ; \ | |
10575 | do | |
10576 | if test -r "$ac_dir/$x_direct_test_include"; then | |
10577 | ac_x_includes=$ac_dir | |
10578 | break | |
10579 | fi | |
10580 | done | |
10581 | fi | |
10582 | rm -f conftest* | |
10583 | fi # $ac_x_includes = NO | |
10584 | ||
10585 | if test "$ac_x_libraries" = NO; then | |
10586 | # Check for the libraries. | |
10587 | ||
10588 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
10589 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
10590 | ||
10591 | # See if we find them without any special options. | |
10592 | # Don't add to $LIBS permanently. | |
10593 | ac_save_LIBS="$LIBS" | |
10594 | LIBS="-l$x_direct_test_library $LIBS" | |
10595 | cat > conftest.$ac_ext <<EOF | |
10596 | #line 10597 "configure" | |
10597 | #include "confdefs.h" | |
10598 | ||
10599 | int main() { | |
10600 | ${x_direct_test_function}() | |
10601 | ; return 0; } | |
10602 | EOF | |
10603 | if { (eval echo configure:10604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10604 | rm -rf conftest* | |
10605 | LIBS="$ac_save_LIBS" | |
10606 | # We can link X programs with no special library path. | |
10607 | ac_x_libraries= | |
10608 | else | |
10609 | echo "configure: failed program was:" >&5 | |
10610 | cat conftest.$ac_ext >&5 | |
10611 | rm -rf conftest* | |
10612 | LIBS="$ac_save_LIBS" | |
10613 | # First see if replacing the include by lib works. | |
10614 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
10615 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
10616 | /usr/X11/lib \ | |
10617 | /usr/X11R6/lib \ | |
10618 | /usr/X11R5/lib \ | |
10619 | /usr/X11R4/lib \ | |
10620 | \ | |
10621 | /usr/lib/X11 \ | |
10622 | /usr/lib/X11R6 \ | |
10623 | /usr/lib/X11R5 \ | |
10624 | /usr/lib/X11R4 \ | |
10625 | \ | |
10626 | /usr/local/X11/lib \ | |
10627 | /usr/local/X11R6/lib \ | |
10628 | /usr/local/X11R5/lib \ | |
10629 | /usr/local/X11R4/lib \ | |
10630 | \ | |
10631 | /usr/local/lib/X11 \ | |
10632 | /usr/local/lib/X11R6 \ | |
10633 | /usr/local/lib/X11R5 \ | |
10634 | /usr/local/lib/X11R4 \ | |
10635 | \ | |
10636 | /usr/X386/lib \ | |
10637 | /usr/x386/lib \ | |
10638 | /usr/XFree86/lib/X11 \ | |
10639 | \ | |
10640 | /usr/lib \ | |
10641 | /usr/local/lib \ | |
10642 | /usr/unsupported/lib \ | |
10643 | /usr/athena/lib \ | |
10644 | /usr/local/x11r5/lib \ | |
10645 | /usr/lpp/Xamples/lib \ | |
10646 | /lib/usr/lib/X11 \ | |
10647 | \ | |
10648 | /usr/openwin/lib \ | |
10649 | /usr/openwin/share/lib \ | |
10650 | ; \ | |
10651 | do | |
10652 | for ac_extension in a so sl; do | |
10653 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then | |
10654 | ac_x_libraries=$ac_dir | |
10655 | break 2 | |
10656 | fi | |
10657 | done | |
10658 | done | |
10659 | fi | |
10660 | rm -f conftest* | |
10661 | fi # $ac_x_libraries = NO | |
10662 | ||
10663 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then | |
10664 | # Didn't find X anywhere. Cache the known absence of X. | |
10665 | ac_cv_have_x="have_x=no" | |
10666 | else | |
10667 | # Record where we found X for the cache. | |
10668 | ac_cv_have_x="have_x=yes \ | |
10669 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
10670 | fi | |
10671 | fi | |
10672 | fi | |
10673 | eval "$ac_cv_have_x" | |
10674 | fi # $with_x != no | |
10675 | ||
10676 | if test "$have_x" != yes; then | |
10677 | echo "$ac_t""$have_x" 1>&6 | |
10678 | no_x=yes | |
10679 | else | |
10680 | # If each of the values was on the command line, it overrides each guess. | |
10681 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
10682 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
10683 | # Update the cache value to reflect the command line values. | |
10684 | ac_cv_have_x="have_x=yes \ | |
10685 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
10686 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 | |
10687 | fi | |
10688 | ||
10689 | if test "$no_x" = yes; then | |
10690 | # Not all programs may use this symbol, but it does not hurt to define it. | |
10691 | cat >> confdefs.h <<\EOF | |
10692 | #define X_DISPLAY_MISSING 1 | |
10693 | EOF | |
10694 | ||
10695 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
10696 | else | |
10697 | if test -n "$x_includes"; then | |
10698 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
10699 | fi | |
10700 | ||
10701 | # It would also be nice to do this for all -L options, not just this one. | |
10702 | if test -n "$x_libraries"; then | |
10703 | X_LIBS="$X_LIBS -L$x_libraries" | |
10704 | # For Solaris; some versions of Sun CC require a space after -R and | |
10705 | # others require no space. Words are not sufficient . . . . | |
10706 | case "`(uname -sr) 2>/dev/null`" in | |
10707 | "SunOS 5"*) | |
10708 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | |
10709 | echo "configure:10710: checking whether -R must be followed by a space" >&5 | |
10710 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" | |
10711 | cat > conftest.$ac_ext <<EOF | |
10712 | #line 10713 "configure" | |
10713 | #include "confdefs.h" | |
10714 | ||
10715 | int main() { | |
10716 | ||
10717 | ; return 0; } | |
10718 | EOF | |
10719 | if { (eval echo configure:10720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10720 | rm -rf conftest* | |
10721 | ac_R_nospace=yes | |
10722 | else | |
10723 | echo "configure: failed program was:" >&5 | |
10724 | cat conftest.$ac_ext >&5 | |
10725 | rm -rf conftest* | |
10726 | ac_R_nospace=no | |
10727 | fi | |
10728 | rm -f conftest* | |
10729 | if test $ac_R_nospace = yes; then | |
10730 | echo "$ac_t""no" 1>&6 | |
10731 | X_LIBS="$X_LIBS -R$x_libraries" | |
10732 | else | |
10733 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
10734 | cat > conftest.$ac_ext <<EOF | |
10735 | #line 10736 "configure" | |
10736 | #include "confdefs.h" | |
10737 | ||
10738 | int main() { | |
10739 | ||
10740 | ; return 0; } | |
10741 | EOF | |
10742 | if { (eval echo configure:10743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10743 | rm -rf conftest* | |
10744 | ac_R_space=yes | |
10745 | else | |
10746 | echo "configure: failed program was:" >&5 | |
10747 | cat conftest.$ac_ext >&5 | |
10748 | rm -rf conftest* | |
10749 | ac_R_space=no | |
10750 | fi | |
10751 | rm -f conftest* | |
10752 | if test $ac_R_space = yes; then | |
10753 | echo "$ac_t""yes" 1>&6 | |
10754 | X_LIBS="$X_LIBS -R $x_libraries" | |
10755 | else | |
10756 | echo "$ac_t""neither works" 1>&6 | |
10757 | fi | |
10758 | fi | |
10759 | LIBS="$ac_xsave_LIBS" | |
10760 | esac | |
10761 | fi | |
10762 | ||
10763 | # Check for system-dependent libraries X programs must link with. | |
10764 | # Do this before checking for the system-independent R6 libraries | |
10765 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
10766 | ||
10767 | if test "$ISC" = yes; then | |
10768 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
10769 | else | |
10770 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | |
10771 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
10772 | # the Alpha needs dnet_stub (dnet does not exist). | |
10773 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
10774 | echo "configure:10775: checking for dnet_ntoa in -ldnet" >&5 | |
10775 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` | |
10776 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10777 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10778 | else | |
10779 | ac_save_LIBS="$LIBS" | |
10780 | LIBS="-ldnet $LIBS" | |
10781 | cat > conftest.$ac_ext <<EOF | |
10782 | #line 10783 "configure" | |
10783 | #include "confdefs.h" | |
10784 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10785 | /* We use char because int might match the return type of a gcc2 | |
10786 | builtin and then its argument prototype would still apply. */ | |
10787 | char dnet_ntoa(); | |
10788 | ||
10789 | int main() { | |
10790 | dnet_ntoa() | |
10791 | ; return 0; } | |
10792 | EOF | |
10793 | if { (eval echo configure:10794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10794 | rm -rf conftest* | |
10795 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10796 | else | |
10797 | echo "configure: failed program was:" >&5 | |
10798 | cat conftest.$ac_ext >&5 | |
10799 | rm -rf conftest* | |
10800 | eval "ac_cv_lib_$ac_lib_var=no" | |
10801 | fi | |
10802 | rm -f conftest* | |
10803 | LIBS="$ac_save_LIBS" | |
10804 | ||
10805 | fi | |
10806 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10807 | echo "$ac_t""yes" 1>&6 | |
10808 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
10809 | else | |
10810 | echo "$ac_t""no" 1>&6 | |
10811 | fi | |
10812 | ||
10813 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
10814 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | |
10815 | echo "configure:10816: checking for dnet_ntoa in -ldnet_stub" >&5 | |
10816 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` | |
10817 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10818 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10819 | else | |
10820 | ac_save_LIBS="$LIBS" | |
10821 | LIBS="-ldnet_stub $LIBS" | |
10822 | cat > conftest.$ac_ext <<EOF | |
10823 | #line 10824 "configure" | |
10824 | #include "confdefs.h" | |
10825 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10826 | /* We use char because int might match the return type of a gcc2 | |
10827 | builtin and then its argument prototype would still apply. */ | |
10828 | char dnet_ntoa(); | |
10829 | ||
10830 | int main() { | |
10831 | dnet_ntoa() | |
10832 | ; return 0; } | |
10833 | EOF | |
10834 | if { (eval echo configure:10835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10835 | rm -rf conftest* | |
10836 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10837 | else | |
10838 | echo "configure: failed program was:" >&5 | |
10839 | cat conftest.$ac_ext >&5 | |
10840 | rm -rf conftest* | |
10841 | eval "ac_cv_lib_$ac_lib_var=no" | |
10842 | fi | |
10843 | rm -f conftest* | |
10844 | LIBS="$ac_save_LIBS" | |
10845 | ||
10846 | fi | |
10847 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10848 | echo "$ac_t""yes" 1>&6 | |
10849 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
10850 | else | |
10851 | echo "$ac_t""no" 1>&6 | |
10852 | fi | |
10853 | ||
10854 | fi | |
10855 | ||
10856 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
10857 | # to get the SysV transport functions. | |
10858 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | |
10859 | # needs -lnsl. | |
10860 | # The nsl library prevents programs from opening the X display | |
10861 | # on Irix 5.2, according to dickey@clark.net. | |
10862 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
10863 | echo "configure:10864: checking for gethostbyname" >&5 | |
10864 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then | |
10865 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10866 | else | |
10867 | cat > conftest.$ac_ext <<EOF | |
10868 | #line 10869 "configure" | |
10869 | #include "confdefs.h" | |
10870 | /* System header to define __stub macros and hopefully few prototypes, | |
10871 | which can conflict with char gethostbyname(); below. */ | |
10872 | #include <assert.h> | |
10873 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10874 | /* We use char because int might match the return type of a gcc2 | |
10875 | builtin and then its argument prototype would still apply. */ | |
10876 | char gethostbyname(); | |
10877 | ||
10878 | int main() { | |
10879 | ||
10880 | /* The GNU C library defines this for functions which it implements | |
10881 | to always fail with ENOSYS. Some functions are actually named | |
10882 | something starting with __ and the normal name is an alias. */ | |
10883 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
10884 | choke me | |
10885 | #else | |
10886 | gethostbyname(); | |
10887 | #endif | |
10888 | ||
10889 | ; return 0; } | |
10890 | EOF | |
10891 | if { (eval echo configure:10892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10892 | rm -rf conftest* | |
10893 | eval "ac_cv_func_gethostbyname=yes" | |
10894 | else | |
10895 | echo "configure: failed program was:" >&5 | |
10896 | cat conftest.$ac_ext >&5 | |
10897 | rm -rf conftest* | |
10898 | eval "ac_cv_func_gethostbyname=no" | |
10899 | fi | |
10900 | rm -f conftest* | |
10901 | fi | |
10902 | ||
10903 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
10904 | echo "$ac_t""yes" 1>&6 | |
10905 | : | |
10906 | else | |
10907 | echo "$ac_t""no" 1>&6 | |
10908 | fi | |
10909 | ||
10910 | if test $ac_cv_func_gethostbyname = no; then | |
10911 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
10912 | echo "configure:10913: checking for gethostbyname in -lnsl" >&5 | |
10913 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` | |
10914 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10915 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10916 | else | |
10917 | ac_save_LIBS="$LIBS" | |
10918 | LIBS="-lnsl $LIBS" | |
10919 | cat > conftest.$ac_ext <<EOF | |
10920 | #line 10921 "configure" | |
10921 | #include "confdefs.h" | |
10922 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10923 | /* We use char because int might match the return type of a gcc2 | |
10924 | builtin and then its argument prototype would still apply. */ | |
10925 | char gethostbyname(); | |
10926 | ||
10927 | int main() { | |
10928 | gethostbyname() | |
10929 | ; return 0; } | |
10930 | EOF | |
10931 | if { (eval echo configure:10932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10932 | rm -rf conftest* | |
10933 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10934 | else | |
10935 | echo "configure: failed program was:" >&5 | |
10936 | cat conftest.$ac_ext >&5 | |
10937 | rm -rf conftest* | |
10938 | eval "ac_cv_lib_$ac_lib_var=no" | |
10939 | fi | |
10940 | rm -f conftest* | |
10941 | LIBS="$ac_save_LIBS" | |
10942 | ||
10943 | fi | |
10944 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10945 | echo "$ac_t""yes" 1>&6 | |
10946 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
10947 | else | |
10948 | echo "$ac_t""no" 1>&6 | |
10949 | fi | |
10950 | ||
10951 | fi | |
10952 | ||
10953 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
10954 | # socket/setsockopt and other routines are undefined under SCO ODT | |
10955 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
10956 | # on later versions), says simon@lia.di.epfl.ch: it contains | |
10957 | # gethostby* variants that don't use the nameserver (or something). | |
10958 | # -lsocket must be given before -lnsl if both are needed. | |
10959 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
10960 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
10961 | echo "configure:10962: checking for connect" >&5 | |
10962 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then | |
10963 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10964 | else | |
10965 | cat > conftest.$ac_ext <<EOF | |
10966 | #line 10967 "configure" | |
10967 | #include "confdefs.h" | |
10968 | /* System header to define __stub macros and hopefully few prototypes, | |
10969 | which can conflict with char connect(); below. */ | |
10970 | #include <assert.h> | |
10971 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10972 | /* We use char because int might match the return type of a gcc2 | |
10973 | builtin and then its argument prototype would still apply. */ | |
10974 | char connect(); | |
10975 | ||
10976 | int main() { | |
10977 | ||
10978 | /* The GNU C library defines this for functions which it implements | |
10979 | to always fail with ENOSYS. Some functions are actually named | |
10980 | something starting with __ and the normal name is an alias. */ | |
10981 | #if defined (__stub_connect) || defined (__stub___connect) | |
10982 | choke me | |
10983 | #else | |
10984 | connect(); | |
10985 | #endif | |
10986 | ||
10987 | ; return 0; } | |
10988 | EOF | |
10989 | if { (eval echo configure:10990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10990 | rm -rf conftest* | |
10991 | eval "ac_cv_func_connect=yes" | |
10992 | else | |
10993 | echo "configure: failed program was:" >&5 | |
10994 | cat conftest.$ac_ext >&5 | |
10995 | rm -rf conftest* | |
10996 | eval "ac_cv_func_connect=no" | |
10997 | fi | |
10998 | rm -f conftest* | |
10999 | fi | |
11000 | ||
11001 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
11002 | echo "$ac_t""yes" 1>&6 | |
11003 | : | |
11004 | else | |
11005 | echo "$ac_t""no" 1>&6 | |
11006 | fi | |
11007 | ||
11008 | if test $ac_cv_func_connect = no; then | |
11009 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 | |
11010 | echo "configure:11011: checking for connect in -lsocket" >&5 | |
11011 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` | |
11012 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11013 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11014 | else | |
11015 | ac_save_LIBS="$LIBS" | |
11016 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
11017 | cat > conftest.$ac_ext <<EOF | |
11018 | #line 11019 "configure" | |
11019 | #include "confdefs.h" | |
11020 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11021 | /* We use char because int might match the return type of a gcc2 | |
11022 | builtin and then its argument prototype would still apply. */ | |
11023 | char connect(); | |
11024 | ||
11025 | int main() { | |
11026 | connect() | |
11027 | ; return 0; } | |
11028 | EOF | |
11029 | if { (eval echo configure:11030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11030 | rm -rf conftest* | |
11031 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11032 | else | |
11033 | echo "configure: failed program was:" >&5 | |
11034 | cat conftest.$ac_ext >&5 | |
11035 | rm -rf conftest* | |
11036 | eval "ac_cv_lib_$ac_lib_var=no" | |
11037 | fi | |
11038 | rm -f conftest* | |
11039 | LIBS="$ac_save_LIBS" | |
11040 | ||
11041 | fi | |
11042 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11043 | echo "$ac_t""yes" 1>&6 | |
11044 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
11045 | else | |
11046 | echo "$ac_t""no" 1>&6 | |
11047 | fi | |
11048 | ||
11049 | fi | |
11050 | ||
11051 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. | |
11052 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
11053 | echo "configure:11054: checking for remove" >&5 | |
11054 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then | |
11055 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11056 | else | |
11057 | cat > conftest.$ac_ext <<EOF | |
11058 | #line 11059 "configure" | |
11059 | #include "confdefs.h" | |
11060 | /* System header to define __stub macros and hopefully few prototypes, | |
11061 | which can conflict with char remove(); below. */ | |
11062 | #include <assert.h> | |
11063 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11064 | /* We use char because int might match the return type of a gcc2 | |
11065 | builtin and then its argument prototype would still apply. */ | |
11066 | char remove(); | |
11067 | ||
11068 | int main() { | |
11069 | ||
11070 | /* The GNU C library defines this for functions which it implements | |
11071 | to always fail with ENOSYS. Some functions are actually named | |
11072 | something starting with __ and the normal name is an alias. */ | |
11073 | #if defined (__stub_remove) || defined (__stub___remove) | |
11074 | choke me | |
11075 | #else | |
11076 | remove(); | |
11077 | #endif | |
11078 | ||
11079 | ; return 0; } | |
11080 | EOF | |
11081 | if { (eval echo configure:11082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11082 | rm -rf conftest* | |
11083 | eval "ac_cv_func_remove=yes" | |
11084 | else | |
11085 | echo "configure: failed program was:" >&5 | |
11086 | cat conftest.$ac_ext >&5 | |
11087 | rm -rf conftest* | |
11088 | eval "ac_cv_func_remove=no" | |
11089 | fi | |
11090 | rm -f conftest* | |
11091 | fi | |
11092 | ||
11093 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
11094 | echo "$ac_t""yes" 1>&6 | |
11095 | : | |
11096 | else | |
11097 | echo "$ac_t""no" 1>&6 | |
11098 | fi | |
11099 | ||
11100 | if test $ac_cv_func_remove = no; then | |
11101 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | |
11102 | echo "configure:11103: checking for remove in -lposix" >&5 | |
11103 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` | |
11104 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11105 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11106 | else | |
11107 | ac_save_LIBS="$LIBS" | |
11108 | LIBS="-lposix $LIBS" | |
11109 | cat > conftest.$ac_ext <<EOF | |
11110 | #line 11111 "configure" | |
11111 | #include "confdefs.h" | |
11112 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11113 | /* We use char because int might match the return type of a gcc2 | |
11114 | builtin and then its argument prototype would still apply. */ | |
11115 | char remove(); | |
11116 | ||
11117 | int main() { | |
11118 | remove() | |
11119 | ; return 0; } | |
11120 | EOF | |
11121 | if { (eval echo configure:11122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11122 | rm -rf conftest* | |
11123 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11124 | else | |
11125 | echo "configure: failed program was:" >&5 | |
11126 | cat conftest.$ac_ext >&5 | |
11127 | rm -rf conftest* | |
11128 | eval "ac_cv_lib_$ac_lib_var=no" | |
11129 | fi | |
11130 | rm -f conftest* | |
11131 | LIBS="$ac_save_LIBS" | |
11132 | ||
11133 | fi | |
11134 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11135 | echo "$ac_t""yes" 1>&6 | |
11136 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
11137 | else | |
11138 | echo "$ac_t""no" 1>&6 | |
11139 | fi | |
11140 | ||
11141 | fi | |
11142 | ||
11143 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
11144 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 | |
11145 | echo "configure:11146: checking for shmat" >&5 | |
11146 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then | |
11147 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11148 | else | |
11149 | cat > conftest.$ac_ext <<EOF | |
11150 | #line 11151 "configure" | |
11151 | #include "confdefs.h" | |
11152 | /* System header to define __stub macros and hopefully few prototypes, | |
11153 | which can conflict with char shmat(); below. */ | |
11154 | #include <assert.h> | |
11155 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11156 | /* We use char because int might match the return type of a gcc2 | |
11157 | builtin and then its argument prototype would still apply. */ | |
11158 | char shmat(); | |
11159 | ||
11160 | int main() { | |
11161 | ||
11162 | /* The GNU C library defines this for functions which it implements | |
11163 | to always fail with ENOSYS. Some functions are actually named | |
11164 | something starting with __ and the normal name is an alias. */ | |
11165 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
11166 | choke me | |
11167 | #else | |
11168 | shmat(); | |
11169 | #endif | |
11170 | ||
11171 | ; return 0; } | |
11172 | EOF | |
11173 | if { (eval echo configure:11174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11174 | rm -rf conftest* | |
11175 | eval "ac_cv_func_shmat=yes" | |
11176 | else | |
11177 | echo "configure: failed program was:" >&5 | |
11178 | cat conftest.$ac_ext >&5 | |
11179 | rm -rf conftest* | |
11180 | eval "ac_cv_func_shmat=no" | |
11181 | fi | |
11182 | rm -f conftest* | |
11183 | fi | |
11184 | ||
11185 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
11186 | echo "$ac_t""yes" 1>&6 | |
11187 | : | |
11188 | else | |
11189 | echo "$ac_t""no" 1>&6 | |
11190 | fi | |
11191 | ||
11192 | if test $ac_cv_func_shmat = no; then | |
11193 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | |
11194 | echo "configure:11195: checking for shmat in -lipc" >&5 | |
11195 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` | |
11196 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11197 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11198 | else | |
11199 | ac_save_LIBS="$LIBS" | |
11200 | LIBS="-lipc $LIBS" | |
11201 | cat > conftest.$ac_ext <<EOF | |
11202 | #line 11203 "configure" | |
11203 | #include "confdefs.h" | |
11204 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11205 | /* We use char because int might match the return type of a gcc2 | |
11206 | builtin and then its argument prototype would still apply. */ | |
11207 | char shmat(); | |
11208 | ||
11209 | int main() { | |
11210 | shmat() | |
11211 | ; return 0; } | |
11212 | EOF | |
11213 | if { (eval echo configure:11214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11214 | rm -rf conftest* | |
11215 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11216 | else | |
11217 | echo "configure: failed program was:" >&5 | |
11218 | cat conftest.$ac_ext >&5 | |
11219 | rm -rf conftest* | |
11220 | eval "ac_cv_lib_$ac_lib_var=no" | |
11221 | fi | |
11222 | rm -f conftest* | |
11223 | LIBS="$ac_save_LIBS" | |
11224 | ||
11225 | fi | |
11226 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11227 | echo "$ac_t""yes" 1>&6 | |
11228 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
11229 | else | |
11230 | echo "$ac_t""no" 1>&6 | |
11231 | fi | |
11232 | ||
11233 | fi | |
11234 | fi | |
11235 | ||
11236 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
11237 | ac_save_LDFLAGS="$LDFLAGS" | |
11238 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
11239 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
11240 | # check for ICE first), but we must link in the order -lSM -lICE or | |
11241 | # we get undefined symbols. So assume we have SM if we have ICE. | |
11242 | # These have to be linked with before -lX11, unlike the other | |
11243 | # libraries we check for below, so use a different variable. | |
11244 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | |
11245 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
11246 | echo "configure:11247: checking for IceConnectionNumber in -lICE" >&5 | |
11247 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` | |
11248 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11249 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11250 | else | |
11251 | ac_save_LIBS="$LIBS" | |
11252 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
11253 | cat > conftest.$ac_ext <<EOF | |
11254 | #line 11255 "configure" | |
11255 | #include "confdefs.h" | |
11256 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11257 | /* We use char because int might match the return type of a gcc2 | |
11258 | builtin and then its argument prototype would still apply. */ | |
11259 | char IceConnectionNumber(); | |
11260 | ||
11261 | int main() { | |
11262 | IceConnectionNumber() | |
11263 | ; return 0; } | |
11264 | EOF | |
11265 | if { (eval echo configure:11266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11266 | rm -rf conftest* | |
11267 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11268 | else | |
11269 | echo "configure: failed program was:" >&5 | |
11270 | cat conftest.$ac_ext >&5 | |
11271 | rm -rf conftest* | |
11272 | eval "ac_cv_lib_$ac_lib_var=no" | |
11273 | fi | |
11274 | rm -f conftest* | |
11275 | LIBS="$ac_save_LIBS" | |
11276 | ||
11277 | fi | |
11278 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11279 | echo "$ac_t""yes" 1>&6 | |
11280 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
11281 | else | |
11282 | echo "$ac_t""no" 1>&6 | |
11283 | fi | |
11284 | ||
11285 | LDFLAGS="$ac_save_LDFLAGS" | |
11286 | ||
11287 | fi | |
11288 | ||
11289 | ||
11290 | if test "$no_x" = "yes"; then | |
11291 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
11292 | fi | |
11293 | ||
11294 | GUI_TK_LIBRARY="$X_LIBS" | |
11295 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
11296 | AFMINSTALL=afminstall | |
11297 | COMPILED_X_PROGRAM=0 | |
11298 | ||
11299 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 | |
11300 | echo "configure:11301: checking for Motif/Lesstif headers" >&5 | |
11301 | ||
11302 | ac_find_includes= | |
11303 | for ac_dir in $SEARCH_INCLUDE; | |
11304 | do | |
11305 | if test -f "$ac_dir/Xm/Xm.h"; then | |
11306 | ac_find_includes=$ac_dir | |
11307 | break | |
11308 | fi | |
11309 | done | |
11310 | ||
11311 | if test "$ac_find_includes" != "" ; then | |
11312 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
11313 | else | |
11314 | cat > conftest.$ac_ext <<EOF | |
11315 | #line 11316 "configure" | |
11316 | #include "confdefs.h" | |
11317 | ||
11318 | #include <Xm/Xm.h> | |
11319 | ||
11320 | int main() { | |
11321 | ||
11322 | int version; | |
11323 | version = xmUseVersion; | |
11324 | ||
11325 | ; return 0; } | |
11326 | EOF | |
11327 | if { (eval echo configure:11328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
11328 | rm -rf conftest* | |
11329 | ||
11330 | echo "$ac_t""found in default search path" 1>&6 | |
11331 | COMPILED_X_PROGRAM=1 | |
11332 | ||
11333 | else | |
11334 | echo "configure: failed program was:" >&5 | |
11335 | cat conftest.$ac_ext >&5 | |
11336 | rm -rf conftest* | |
11337 | ||
11338 | echo "$ac_t""no" 1>&6 | |
11339 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
11340 | ||
11341 | ||
11342 | fi | |
11343 | rm -f conftest* | |
11344 | fi | |
11345 | ||
11346 | if test "$COMPILED_X_PROGRAM" = 0; then | |
11347 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
11348 | echo "configure:11349: checking for Motif/Lesstif library" >&5 | |
11349 | ||
11350 | ac_find_libraries= | |
11351 | for ac_dir in $SEARCH_LIB; | |
11352 | do | |
11353 | for ac_extension in a so sl dylib; do | |
11354 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
11355 | ac_find_libraries=$ac_dir | |
11356 | break 2 | |
11357 | fi | |
11358 | done | |
11359 | done | |
11360 | ||
11361 | if test "$ac_find_libraries" != "" ; then | |
11362 | ||
11363 | ac_path_to_include=$ac_find_includes | |
11364 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
11365 | result=$? | |
11366 | if test $result = 0; then | |
11367 | ac_path_to_include="" | |
11368 | else | |
11369 | ac_path_to_include="-I$ac_find_includes" | |
11370 | fi | |
11371 | ||
11372 | ||
11373 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
11374 | result=$? | |
11375 | if test $result = 0; then | |
11376 | ac_path_to_link="" | |
11377 | else | |
11378 | ac_path_to_link="-L$ac_find_libraries" | |
11379 | fi | |
11380 | ||
11381 | ||
11382 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" | |
11383 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include" | |
11384 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
11385 | else | |
11386 | cat > conftest.$ac_ext <<EOF | |
11387 | #line 11388 "configure" | |
11388 | #include "confdefs.h" | |
11389 | ||
11390 | #include <Xm/Xm.h> | |
11391 | ||
11392 | int main() { | |
11393 | ||
11394 | int version; | |
11395 | version = xmUseVersion; | |
11396 | ||
11397 | ; return 0; } | |
11398 | EOF | |
11399 | if { (eval echo configure:11400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
11400 | rm -rf conftest* | |
11401 | ||
11402 | echo "$ac_t""found in default search path" 1>&6 | |
11403 | COMPILED_X_PROGRAM=1 | |
11404 | ||
11405 | else | |
11406 | echo "configure: failed program was:" >&5 | |
11407 | cat conftest.$ac_ext >&5 | |
11408 | rm -rf conftest* | |
11409 | ||
11410 | echo "$ac_t""no" 1>&6 | |
11411 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
11412 | ||
11413 | ||
11414 | fi | |
11415 | rm -f conftest* | |
11416 | fi | |
11417 | fi | |
11418 | ||
11419 | xpm_link= | |
11420 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
11421 | echo "configure:11422: checking for Xpm library" >&5 | |
11422 | ||
11423 | ac_find_libraries= | |
11424 | for ac_dir in $SEARCH_LIB; | |
11425 | do | |
11426 | for ac_extension in a so sl dylib; do | |
11427 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
11428 | ac_find_libraries=$ac_dir | |
11429 | break 2 | |
11430 | fi | |
11431 | done | |
11432 | done | |
11433 | ||
11434 | if test "$ac_find_libraries" != "" ; then | |
11435 | ||
11436 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
11437 | result=$? | |
11438 | if test $result = 0; then | |
11439 | ac_path_to_link="" | |
11440 | else | |
11441 | ac_path_to_link="-L$ac_find_libraries" | |
11442 | fi | |
11443 | ||
11444 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" | |
11445 | xpm_link=" -lXpm" | |
11446 | cat >> confdefs.h <<\EOF | |
11447 | #define wxHAVE_LIB_XPM 1 | |
11448 | EOF | |
11449 | ||
11450 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
11451 | else | |
11452 | cat > conftest.$ac_ext <<EOF | |
11453 | #line 11454 "configure" | |
11454 | #include "confdefs.h" | |
11455 | ||
11456 | #include <X11/xpm.h> | |
11457 | ||
11458 | int main() { | |
11459 | ||
11460 | int version; | |
11461 | version = XpmLibraryVersion(); | |
11462 | ||
11463 | ; return 0; } | |
11464 | EOF | |
11465 | if { (eval echo configure:11466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
11466 | rm -rf conftest* | |
11467 | ||
11468 | xpm_link=" -lXpm" | |
11469 | cat >> confdefs.h <<\EOF | |
11470 | #define wxHAVE_LIB_XPM 1 | |
11471 | EOF | |
11472 | ||
11473 | echo "$ac_t""found in default search path" 1>&6 | |
11474 | COMPILED_X_PROGRAM=0 | |
11475 | ||
11476 | else | |
11477 | echo "configure: failed program was:" >&5 | |
11478 | cat conftest.$ac_ext >&5 | |
11479 | rm -rf conftest* | |
11480 | ||
11481 | echo "$ac_t""no" 1>&6 | |
11482 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
11483 | ||
11484 | ||
11485 | fi | |
11486 | rm -f conftest* | |
11487 | fi | |
11488 | ||
11489 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11" | |
11490 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" | |
11491 | TOOLKIT=MOTIF | |
11492 | GUIDIST=MOTIF_DIST | |
11493 | fi | |
11494 | ||
11495 | if test "$wxUSE_MAC" = 1; then | |
11496 | if test "$wxUSE_PRECOMP" = "yes"; then | |
11497 | CPPFLAGS="$CPPFLAGS -cpp-precomp" | |
11498 | fi | |
11499 | CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile" | |
11500 | CFLAGS="$CFLAGS -fpascal-strings" | |
11501 | CXXFLAGS="$CXXFLAGS -fpascal-strings" | |
11502 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -DTARGET_CARBON" | |
11503 | ||
11504 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile" | |
11505 | TOOLKIT=MAC | |
11506 | GUIDIST=MACX_DIST | |
11507 | fi | |
11508 | ||
11509 | if test "$wxUSE_PM" = 1; then | |
11510 | TOOLKIT=PM | |
11511 | GUIDIST=GTK_DIST | |
11512 | fi | |
11513 | ||
11514 | if test "$TOOLKIT" = "PM" ; then | |
11515 | TOOLKIT_DIR="os2" | |
11516 | else | |
11517 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
11518 | fi | |
11519 | ||
11520 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
11521 | ||
11522 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
11523 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
11524 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
11525 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
11526 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
11527 | WIDGET_SET=univ | |
11528 | else | |
11529 | ALL_OBJECTS="\$(GUIOBJS)" | |
11530 | fi | |
11531 | ||
11532 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
11533 | ||
11534 | if test "$TOOLKIT" != "MSW"; then | |
11535 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
11536 | fi | |
11537 | ||
11538 | if test "$wxUSE_HTML" = "yes"; then | |
11539 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
11540 | fi | |
11541 | ||
11542 | if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then | |
11543 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
11544 | fi | |
11545 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
11546 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
11547 | fi | |
11548 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
11549 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
11550 | fi | |
11551 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
11552 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
11553 | fi | |
11554 | if test "$wxUSE_FREETYPE" = "builtin" ; then | |
11555 | ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)" | |
11556 | fi | |
11557 | ||
11558 | RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst" | |
11559 | RPM_SPEC="wx\$(TOOLKIT).spec" | |
11560 | ||
11561 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
11562 | DISTDIR="wx\$(TOOLKIT)" | |
11563 | else | |
11564 | USE_GUI=0 | |
11565 | ||
11566 | TOOLKIT_DIR="base" | |
11567 | ||
11568 | if test "$USE_WIN32" = 1 ; then | |
11569 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
11570 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
11571 | ||
11572 | TOOLKIT="MSW" | |
11573 | else | |
11574 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
11575 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
11576 | fi | |
11577 | ||
11578 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
11579 | RPM_FILES="src/rpmfiles.lst" | |
11580 | RPM_SPEC="wxBase.spec" | |
11581 | ||
11582 | GUIDIST="BASE_DIST" | |
11583 | DISTDIR="wxBase" | |
11584 | fi | |
11585 | ||
11586 | if test "$wxUSE_REGEX" = "builtin" ; then | |
11587 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
11588 | fi | |
11589 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
11590 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
11591 | fi | |
11592 | ||
11593 | if test "$wxUSE_OPENGL" = "yes"; then | |
11594 | if test "$wxUSE_MAC" = 1; then | |
11595 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
11596 | else | |
11597 | ||
11598 | ||
11599 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` | |
11600 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
11601 | echo "configure:11602: checking for GL/gl.h" >&5 | |
11602 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
11603 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11604 | else | |
11605 | cat > conftest.$ac_ext <<EOF | |
11606 | #line 11607 "configure" | |
11607 | #include "confdefs.h" | |
11608 | #include <GL/gl.h> | |
11609 | EOF | |
11610 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
11611 | { (eval echo configure:11612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
11612 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
11613 | if test -z "$ac_err"; then | |
11614 | rm -rf conftest* | |
11615 | eval "ac_cv_header_$ac_safe=yes" | |
11616 | else | |
11617 | echo "$ac_err" >&5 | |
11618 | echo "configure: failed program was:" >&5 | |
11619 | cat conftest.$ac_ext >&5 | |
11620 | rm -rf conftest* | |
11621 | eval "ac_cv_header_$ac_safe=no" | |
11622 | fi | |
11623 | rm -f conftest* | |
11624 | fi | |
11625 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11626 | echo "$ac_t""yes" 1>&6 | |
11627 | ||
11628 | echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6 | |
11629 | echo "configure:11630: checking for glFlush in -lGL" >&5 | |
11630 | ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'` | |
11631 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11632 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11633 | else | |
11634 | ac_save_LIBS="$LIBS" | |
11635 | LIBS="-lGL -lm $LIBS" | |
11636 | cat > conftest.$ac_ext <<EOF | |
11637 | #line 11638 "configure" | |
11638 | #include "confdefs.h" | |
11639 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11640 | /* We use char because int might match the return type of a gcc2 | |
11641 | builtin and then its argument prototype would still apply. */ | |
11642 | char glFlush(); | |
11643 | ||
11644 | int main() { | |
11645 | glFlush() | |
11646 | ; return 0; } | |
11647 | EOF | |
11648 | if { (eval echo configure:11649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11649 | rm -rf conftest* | |
11650 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11651 | else | |
11652 | echo "configure: failed program was:" >&5 | |
11653 | cat conftest.$ac_ext >&5 | |
11654 | rm -rf conftest* | |
11655 | eval "ac_cv_lib_$ac_lib_var=no" | |
11656 | fi | |
11657 | rm -f conftest* | |
11658 | LIBS="$ac_save_LIBS" | |
11659 | ||
11660 | fi | |
11661 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11662 | echo "$ac_t""yes" 1>&6 | |
11663 | ||
11664 | OPENGL_LIBS="-lGL -lGLU" | |
11665 | ||
11666 | else | |
11667 | echo "$ac_t""no" 1>&6 | |
11668 | ||
11669 | echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6 | |
11670 | echo "configure:11671: checking for glFlush in -lMesaGL" >&5 | |
11671 | ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'` | |
11672 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11673 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11674 | else | |
11675 | ac_save_LIBS="$LIBS" | |
11676 | LIBS="-lMesaGL -lm $LIBS" | |
11677 | cat > conftest.$ac_ext <<EOF | |
11678 | #line 11679 "configure" | |
11679 | #include "confdefs.h" | |
11680 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11681 | /* We use char because int might match the return type of a gcc2 | |
11682 | builtin and then its argument prototype would still apply. */ | |
11683 | char glFlush(); | |
11684 | ||
11685 | int main() { | |
11686 | glFlush() | |
11687 | ; return 0; } | |
11688 | EOF | |
11689 | if { (eval echo configure:11690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11690 | rm -rf conftest* | |
11691 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11692 | else | |
11693 | echo "configure: failed program was:" >&5 | |
11694 | cat conftest.$ac_ext >&5 | |
11695 | rm -rf conftest* | |
11696 | eval "ac_cv_lib_$ac_lib_var=no" | |
11697 | fi | |
11698 | rm -f conftest* | |
11699 | LIBS="$ac_save_LIBS" | |
11700 | ||
11701 | fi | |
11702 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11703 | echo "$ac_t""yes" 1>&6 | |
11704 | ||
11705 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
11706 | ||
11707 | else | |
11708 | echo "$ac_t""no" 1>&6 | |
11709 | fi | |
11710 | ||
11711 | ||
11712 | fi | |
11713 | ||
11714 | ||
11715 | else | |
11716 | echo "$ac_t""no" 1>&6 | |
11717 | fi | |
11718 | ||
11719 | ||
11720 | if test "x$OPENGL_LIBS" = "x"; then | |
11721 | { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; } | |
11722 | fi | |
11723 | fi | |
11724 | ||
11725 | if test "$wxUSE_OPENGL" = "yes"; then | |
11726 | cat >> confdefs.h <<\EOF | |
11727 | #define wxUSE_OPENGL 1 | |
11728 | EOF | |
11729 | ||
11730 | cat >> confdefs.h <<\EOF | |
11731 | #define wxUSE_GLCANVAS 1 | |
11732 | EOF | |
11733 | ||
11734 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" | |
11735 | fi | |
11736 | fi | |
11737 | ||
11738 | if test -z "$TOOLKIT_VPATH" ; then | |
11739 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
11740 | fi | |
11741 | ||
11742 | if test -n "$TOOLKIT" ; then | |
11743 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
11744 | fi | |
11745 | ||
11746 | lib_unicode_suffix= | |
11747 | if test "$wxUSE_UNICODE" = "yes"; then | |
11748 | lib_unicode_suffix=u | |
11749 | fi | |
11750 | ||
11751 | lib_debug_suffix= | |
11752 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
11753 | lib_debug_suffix=d | |
11754 | fi | |
11755 | ||
11756 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" | |
11757 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
11758 | ||
11759 | if test "$cross_compiling" = "yes"; then | |
11760 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
11761 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
11762 | fi | |
11763 | ||
11764 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
11765 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
11766 | ||
11767 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
11768 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
11769 | ||
11770 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
11771 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
11772 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
11773 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
11774 | ||
11775 | WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc" | |
11776 | WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r" | |
11777 | ||
11778 | case "${host}" in | |
11779 | *-*-cygwin* | *-*-mingw32* ) | |
11780 | ||
11781 | ||
11782 | ||
11783 | if test "$cross_compiling" != "yes"; then | |
11784 | WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
11785 | WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
11786 | WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}" | |
11787 | WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
11788 | else | |
11789 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
11790 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
11791 | fi | |
11792 | ||
11793 | esac | |
11794 | ||
11795 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
11796 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
11797 | ||
11798 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
11799 | ||
11800 | if test "$wxUSE_OPENGL" = "yes"; then | |
11801 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} $OPENGL_LIBS" | |
11802 | fi | |
11803 | ||
11804 | ||
11805 | ||
11806 | if test "$wxUSE_SHARED" = "yes"; then | |
11807 | ||
11808 | if test "$wxUSE_OPENGL" = "yes"; then | |
11809 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
11810 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}" | |
11811 | else | |
11812 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
11813 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}" | |
11814 | fi | |
11815 | ||
11816 | if test "$GCC" = "yes"; then | |
11817 | PIC_FLAG="-fPIC" | |
11818 | fi | |
11819 | ||
11820 | SHARED_LD="${CXX} -shared -o" | |
11821 | ||
11822 | case "${host}" in | |
11823 | *-hp-hpux* ) | |
11824 | if test "$GCC" != "yes"; then | |
11825 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
11826 | ||
11827 | SHARED_LD="${CXX} -b -o" | |
11828 | PIC_FLAG="+Z" | |
11829 | fi | |
11830 | ||
11831 | if test "$wxUSE_OPENGL" = "yes"; then | |
11832 | WX_ALL_INSTALLED="preinstall_gl" | |
11833 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
11834 | else | |
11835 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
11836 | fi | |
11837 | ;; | |
11838 | ||
11839 | *-*-linux* ) | |
11840 | if test "$GCC" != "yes"; then | |
11841 | echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6 | |
11842 | echo "configure:11843: checking for Intel compiler" >&5 | |
11843 | if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then | |
11844 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11845 | else | |
11846 | ||
11847 | cat > conftest.$ac_ext <<EOF | |
11848 | #line 11849 "configure" | |
11849 | #include "confdefs.h" | |
11850 | ||
11851 | int main() { | |
11852 | ||
11853 | #ifndef __INTEL_COMPILER | |
11854 | #error Not icc | |
11855 | #endif | |
11856 | ||
11857 | ; return 0; } | |
11858 | EOF | |
11859 | if { (eval echo configure:11860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
11860 | rm -rf conftest* | |
11861 | wx_cv_prog_icc=yes | |
11862 | else | |
11863 | echo "configure: failed program was:" >&5 | |
11864 | cat conftest.$ac_ext >&5 | |
11865 | rm -rf conftest* | |
11866 | wx_cv_prog_icc=no | |
11867 | ||
11868 | fi | |
11869 | rm -f conftest* | |
11870 | ||
11871 | fi | |
11872 | ||
11873 | echo "$ac_t""$wx_cv_prog_icc" 1>&6 | |
11874 | if test "$wx_cv_prog_icc" = "yes"; then | |
11875 | PIC_FLAG="-KPIC" | |
11876 | fi | |
11877 | fi | |
11878 | ||
11879 | if test "$wxUSE_SONAME" = "yes" ; then | |
11880 | SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}" | |
11881 | SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" | |
11882 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" | |
11883 | fi | |
11884 | ;; | |
11885 | ||
11886 | *-*-solaris2* ) | |
11887 | if test "$GCC" = yes ; then | |
11888 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
11889 | else | |
11890 | SHARED_LD="${CXX} -G -o" | |
11891 | PIC_FLAG="-KPIC" | |
11892 | SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}" | |
11893 | SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED}" | |
11894 | fi | |
11895 | ;; | |
11896 | ||
11897 | *-*-darwin* ) | |
11898 | CFLAGS="$CFLAGS -fno-common" | |
11899 | CXXFLAGS="$CXXFLAGS -fno-common" | |
11900 | SHARED_LD="$CXX -dynamiclib -o" | |
11901 | PIC_FLAG="-dynamic -fPIC" | |
11902 | ;; | |
11903 | ||
11904 | *-*-aix* ) | |
11905 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
11906 | ;; | |
11907 | ||
11908 | *-*-cygwin* | *-*-mingw32* ) | |
11909 | ||
11910 | WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a" | |
11911 | ||
11912 | SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o" | |
11913 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
11914 | ||
11915 | PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1" | |
11916 | ||
11917 | if test "$wxUSE_OPENGL" = "yes"; then | |
11918 | WX_ALL_INSTALLED="preinstall_gl" | |
11919 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
11920 | else | |
11921 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
11922 | fi | |
11923 | ;; | |
11924 | ||
11925 | *-pc-os2_emx | *-pc-os2-emx ) | |
11926 | wxUSE_SHARED=no | |
11927 | ;; | |
11928 | ||
11929 | *-*-beos* ) | |
11930 | SHARED_LD="${LD} -shared -o" | |
11931 | ;; | |
11932 | ||
11933 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ | |
11934 | *-*-sunos4* | \ | |
11935 | *-*-irix5* | *-*-irix6* | \ | |
11936 | *-*-osf* | \ | |
11937 | *-*-dgux5* | \ | |
11938 | *-*-sysv5* ) | |
11939 | ;; | |
11940 | ||
11941 | *) | |
11942 | { echo "configure: error: unknown system type $host." 1>&2; exit 1; } | |
11943 | esac | |
11944 | ||
11945 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
11946 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
11947 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
11948 | fi | |
11949 | ||
11950 | WX_TARGET_LIBRARY_TYPE="so" | |
11951 | fi | |
11952 | ||
11953 | if test "$wxUSE_SHARED" = "no"; then | |
11954 | ||
11955 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then | |
11956 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
11957 | fi | |
11958 | ||
11959 | if test "$wxUSE_MAC" = 1; then | |
11960 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
11961 | fi | |
11962 | ||
11963 | if test "$wxUSE_OPENGL" = "yes"; then | |
11964 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
11965 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
11966 | else | |
11967 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
11968 | fi | |
11969 | ||
11970 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
11971 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
11972 | ||
11973 | WX_TARGET_LIBRARY_TYPE="a" | |
11974 | fi | |
11975 | ||
11976 | if test "$wxUSE_MAC" = 1; then | |
11977 | WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r" | |
11978 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
11979 | # Extract the first word of "Rez", so it can be a program name with args. | |
11980 | set dummy Rez; ac_word=$2 | |
11981 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
11982 | echo "configure:11983: checking for $ac_word" >&5 | |
11983 | if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then | |
11984 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11985 | else | |
11986 | if test -n "$RESCOMP"; then | |
11987 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
11988 | else | |
11989 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
11990 | ac_dummy="$PATH" | |
11991 | for ac_dir in $ac_dummy; do | |
11992 | test -z "$ac_dir" && ac_dir=. | |
11993 | if test -f $ac_dir/$ac_word; then | |
11994 | ac_cv_prog_RESCOMP="Rez" | |
11995 | break | |
11996 | fi | |
11997 | done | |
11998 | IFS="$ac_save_ifs" | |
11999 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
12000 | fi | |
12001 | fi | |
12002 | RESCOMP="$ac_cv_prog_RESCOMP" | |
12003 | if test -n "$RESCOMP"; then | |
12004 | echo "$ac_t""$RESCOMP" 1>&6 | |
12005 | else | |
12006 | echo "$ac_t""no" 1>&6 | |
12007 | fi | |
12008 | ||
12009 | # Extract the first word of "Derez", so it can be a program name with args. | |
12010 | set dummy Derez; ac_word=$2 | |
12011 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
12012 | echo "configure:12013: checking for $ac_word" >&5 | |
12013 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then | |
12014 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12015 | else | |
12016 | if test -n "$DEREZ"; then | |
12017 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
12018 | else | |
12019 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
12020 | ac_dummy="$PATH" | |
12021 | for ac_dir in $ac_dummy; do | |
12022 | test -z "$ac_dir" && ac_dir=. | |
12023 | if test -f $ac_dir/$ac_word; then | |
12024 | ac_cv_prog_DEREZ="Derez" | |
12025 | break | |
12026 | fi | |
12027 | done | |
12028 | IFS="$ac_save_ifs" | |
12029 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez" | |
12030 | fi | |
12031 | fi | |
12032 | DEREZ="$ac_cv_prog_DEREZ" | |
12033 | if test -n "$DEREZ"; then | |
12034 | echo "$ac_t""$DEREZ" 1>&6 | |
12035 | else | |
12036 | echo "$ac_t""no" 1>&6 | |
12037 | fi | |
12038 | ||
12039 | LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r" | |
12040 | LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)" | |
12041 | LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o" | |
12042 | fi | |
12043 | ||
12044 | ||
12045 | if test "$wxUSE_MAC" != 1; then | |
12046 | for ac_hdr in strings.h | |
12047 | do | |
12048 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
12049 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
12050 | echo "configure:12051: checking for $ac_hdr" >&5 | |
12051 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
12052 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12053 | else | |
12054 | cat > conftest.$ac_ext <<EOF | |
12055 | #line 12056 "configure" | |
12056 | #include "confdefs.h" | |
12057 | #include <$ac_hdr> | |
12058 | EOF | |
12059 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
12060 | { (eval echo configure:12061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
12061 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
12062 | if test -z "$ac_err"; then | |
12063 | rm -rf conftest* | |
12064 | eval "ac_cv_header_$ac_safe=yes" | |
12065 | else | |
12066 | echo "$ac_err" >&5 | |
12067 | echo "configure: failed program was:" >&5 | |
12068 | cat conftest.$ac_ext >&5 | |
12069 | rm -rf conftest* | |
12070 | eval "ac_cv_header_$ac_safe=no" | |
12071 | fi | |
12072 | rm -f conftest* | |
12073 | fi | |
12074 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12075 | echo "$ac_t""yes" 1>&6 | |
12076 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12077 | cat >> confdefs.h <<EOF | |
12078 | #define $ac_tr_hdr 1 | |
12079 | EOF | |
12080 | ||
12081 | else | |
12082 | echo "$ac_t""no" 1>&6 | |
12083 | fi | |
12084 | done | |
12085 | ||
12086 | fi | |
12087 | ||
12088 | for ac_hdr in stdlib.h | |
12089 | do | |
12090 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
12091 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
12092 | echo "configure:12093: checking for $ac_hdr" >&5 | |
12093 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
12094 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12095 | else | |
12096 | cat > conftest.$ac_ext <<EOF | |
12097 | #line 12098 "configure" | |
12098 | #include "confdefs.h" | |
12099 | #include <$ac_hdr> | |
12100 | EOF | |
12101 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
12102 | { (eval echo configure:12103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
12103 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
12104 | if test -z "$ac_err"; then | |
12105 | rm -rf conftest* | |
12106 | eval "ac_cv_header_$ac_safe=yes" | |
12107 | else | |
12108 | echo "$ac_err" >&5 | |
12109 | echo "configure: failed program was:" >&5 | |
12110 | cat conftest.$ac_ext >&5 | |
12111 | rm -rf conftest* | |
12112 | eval "ac_cv_header_$ac_safe=no" | |
12113 | fi | |
12114 | rm -f conftest* | |
12115 | fi | |
12116 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12117 | echo "$ac_t""yes" 1>&6 | |
12118 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12119 | cat >> confdefs.h <<EOF | |
12120 | #define $ac_tr_hdr 1 | |
12121 | EOF | |
12122 | ||
12123 | else | |
12124 | echo "$ac_t""no" 1>&6 | |
12125 | fi | |
12126 | done | |
12127 | ||
12128 | for ac_hdr in unistd.h | |
12129 | do | |
12130 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
12131 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
12132 | echo "configure:12133: checking for $ac_hdr" >&5 | |
12133 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
12134 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12135 | else | |
12136 | cat > conftest.$ac_ext <<EOF | |
12137 | #line 12138 "configure" | |
12138 | #include "confdefs.h" | |
12139 | #include <$ac_hdr> | |
12140 | EOF | |
12141 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
12142 | { (eval echo configure:12143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
12143 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
12144 | if test -z "$ac_err"; then | |
12145 | rm -rf conftest* | |
12146 | eval "ac_cv_header_$ac_safe=yes" | |
12147 | else | |
12148 | echo "$ac_err" >&5 | |
12149 | echo "configure: failed program was:" >&5 | |
12150 | cat conftest.$ac_ext >&5 | |
12151 | rm -rf conftest* | |
12152 | eval "ac_cv_header_$ac_safe=no" | |
12153 | fi | |
12154 | rm -f conftest* | |
12155 | fi | |
12156 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12157 | echo "$ac_t""yes" 1>&6 | |
12158 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12159 | cat >> confdefs.h <<EOF | |
12160 | #define $ac_tr_hdr 1 | |
12161 | EOF | |
12162 | ||
12163 | else | |
12164 | echo "$ac_t""no" 1>&6 | |
12165 | fi | |
12166 | done | |
12167 | ||
12168 | for ac_hdr in wchar.h | |
12169 | do | |
12170 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
12171 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
12172 | echo "configure:12173: checking for $ac_hdr" >&5 | |
12173 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
12174 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12175 | else | |
12176 | cat > conftest.$ac_ext <<EOF | |
12177 | #line 12178 "configure" | |
12178 | #include "confdefs.h" | |
12179 | #include <$ac_hdr> | |
12180 | EOF | |
12181 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
12182 | { (eval echo configure:12183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
12183 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
12184 | if test -z "$ac_err"; then | |
12185 | rm -rf conftest* | |
12186 | eval "ac_cv_header_$ac_safe=yes" | |
12187 | else | |
12188 | echo "$ac_err" >&5 | |
12189 | echo "configure: failed program was:" >&5 | |
12190 | cat conftest.$ac_ext >&5 | |
12191 | rm -rf conftest* | |
12192 | eval "ac_cv_header_$ac_safe=no" | |
12193 | fi | |
12194 | rm -f conftest* | |
12195 | fi | |
12196 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12197 | echo "$ac_t""yes" 1>&6 | |
12198 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12199 | cat >> confdefs.h <<EOF | |
12200 | #define $ac_tr_hdr 1 | |
12201 | EOF | |
12202 | ||
12203 | else | |
12204 | echo "$ac_t""no" 1>&6 | |
12205 | fi | |
12206 | done | |
12207 | ||
12208 | for ac_hdr in wcstr.h | |
12209 | do | |
12210 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
12211 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
12212 | echo "configure:12213: checking for $ac_hdr" >&5 | |
12213 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
12214 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12215 | else | |
12216 | cat > conftest.$ac_ext <<EOF | |
12217 | #line 12218 "configure" | |
12218 | #include "confdefs.h" | |
12219 | #include <$ac_hdr> | |
12220 | EOF | |
12221 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
12222 | { (eval echo configure:12223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
12223 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
12224 | if test -z "$ac_err"; then | |
12225 | rm -rf conftest* | |
12226 | eval "ac_cv_header_$ac_safe=yes" | |
12227 | else | |
12228 | echo "$ac_err" >&5 | |
12229 | echo "configure: failed program was:" >&5 | |
12230 | cat conftest.$ac_ext >&5 | |
12231 | rm -rf conftest* | |
12232 | eval "ac_cv_header_$ac_safe=no" | |
12233 | fi | |
12234 | rm -f conftest* | |
12235 | fi | |
12236 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12237 | echo "$ac_t""yes" 1>&6 | |
12238 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12239 | cat >> confdefs.h <<EOF | |
12240 | #define $ac_tr_hdr 1 | |
12241 | EOF | |
12242 | ||
12243 | else | |
12244 | echo "$ac_t""no" 1>&6 | |
12245 | fi | |
12246 | done | |
12247 | ||
12248 | for ac_hdr in fnmatch.h | |
12249 | do | |
12250 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
12251 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
12252 | echo "configure:12253: checking for $ac_hdr" >&5 | |
12253 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
12254 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12255 | else | |
12256 | cat > conftest.$ac_ext <<EOF | |
12257 | #line 12258 "configure" | |
12258 | #include "confdefs.h" | |
12259 | #include <$ac_hdr> | |
12260 | EOF | |
12261 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
12262 | { (eval echo configure:12263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
12263 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
12264 | if test -z "$ac_err"; then | |
12265 | rm -rf conftest* | |
12266 | eval "ac_cv_header_$ac_safe=yes" | |
12267 | else | |
12268 | echo "$ac_err" >&5 | |
12269 | echo "configure: failed program was:" >&5 | |
12270 | cat conftest.$ac_ext >&5 | |
12271 | rm -rf conftest* | |
12272 | eval "ac_cv_header_$ac_safe=no" | |
12273 | fi | |
12274 | rm -f conftest* | |
12275 | fi | |
12276 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12277 | echo "$ac_t""yes" 1>&6 | |
12278 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12279 | cat >> confdefs.h <<EOF | |
12280 | #define $ac_tr_hdr 1 | |
12281 | EOF | |
12282 | ||
12283 | else | |
12284 | echo "$ac_t""no" 1>&6 | |
12285 | fi | |
12286 | done | |
12287 | ||
12288 | for ac_hdr in iconv.h | |
12289 | do | |
12290 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
12291 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
12292 | echo "configure:12293: checking for $ac_hdr" >&5 | |
12293 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
12294 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12295 | else | |
12296 | cat > conftest.$ac_ext <<EOF | |
12297 | #line 12298 "configure" | |
12298 | #include "confdefs.h" | |
12299 | #include <$ac_hdr> | |
12300 | EOF | |
12301 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
12302 | { (eval echo configure:12303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
12303 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
12304 | if test -z "$ac_err"; then | |
12305 | rm -rf conftest* | |
12306 | eval "ac_cv_header_$ac_safe=yes" | |
12307 | else | |
12308 | echo "$ac_err" >&5 | |
12309 | echo "configure: failed program was:" >&5 | |
12310 | cat conftest.$ac_ext >&5 | |
12311 | rm -rf conftest* | |
12312 | eval "ac_cv_header_$ac_safe=no" | |
12313 | fi | |
12314 | rm -f conftest* | |
12315 | fi | |
12316 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12317 | echo "$ac_t""yes" 1>&6 | |
12318 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12319 | cat >> confdefs.h <<EOF | |
12320 | #define $ac_tr_hdr 1 | |
12321 | EOF | |
12322 | ||
12323 | else | |
12324 | echo "$ac_t""no" 1>&6 | |
12325 | fi | |
12326 | done | |
12327 | ||
12328 | for ac_hdr in langinfo.h | |
12329 | do | |
12330 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
12331 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
12332 | echo "configure:12333: checking for $ac_hdr" >&5 | |
12333 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
12334 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12335 | else | |
12336 | cat > conftest.$ac_ext <<EOF | |
12337 | #line 12338 "configure" | |
12338 | #include "confdefs.h" | |
12339 | #include <$ac_hdr> | |
12340 | EOF | |
12341 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
12342 | { (eval echo configure:12343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
12343 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
12344 | if test -z "$ac_err"; then | |
12345 | rm -rf conftest* | |
12346 | eval "ac_cv_header_$ac_safe=yes" | |
12347 | else | |
12348 | echo "$ac_err" >&5 | |
12349 | echo "configure: failed program was:" >&5 | |
12350 | cat conftest.$ac_ext >&5 | |
12351 | rm -rf conftest* | |
12352 | eval "ac_cv_header_$ac_safe=no" | |
12353 | fi | |
12354 | rm -f conftest* | |
12355 | fi | |
12356 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12357 | echo "$ac_t""yes" 1>&6 | |
12358 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12359 | cat >> confdefs.h <<EOF | |
12360 | #define $ac_tr_hdr 1 | |
12361 | EOF | |
12362 | ||
12363 | else | |
12364 | echo "$ac_t""no" 1>&6 | |
12365 | fi | |
12366 | done | |
12367 | ||
12368 | ||
12369 | if test "$wxUSE_GUI" = "yes"; then | |
12370 | if test "$wxUSE_UNIX" = "yes"; then | |
12371 | for ac_hdr in X11/XKBlib.h | |
12372 | do | |
12373 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
12374 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
12375 | echo "configure:12376: checking for $ac_hdr" >&5 | |
12376 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
12377 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12378 | else | |
12379 | cat > conftest.$ac_ext <<EOF | |
12380 | #line 12381 "configure" | |
12381 | #include "confdefs.h" | |
12382 | #include <$ac_hdr> | |
12383 | EOF | |
12384 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
12385 | { (eval echo configure:12386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
12386 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
12387 | if test -z "$ac_err"; then | |
12388 | rm -rf conftest* | |
12389 | eval "ac_cv_header_$ac_safe=yes" | |
12390 | else | |
12391 | echo "$ac_err" >&5 | |
12392 | echo "configure: failed program was:" >&5 | |
12393 | cat conftest.$ac_ext >&5 | |
12394 | rm -rf conftest* | |
12395 | eval "ac_cv_header_$ac_safe=no" | |
12396 | fi | |
12397 | rm -f conftest* | |
12398 | fi | |
12399 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12400 | echo "$ac_t""yes" 1>&6 | |
12401 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12402 | cat >> confdefs.h <<EOF | |
12403 | #define $ac_tr_hdr 1 | |
12404 | EOF | |
12405 | ||
12406 | else | |
12407 | echo "$ac_t""no" 1>&6 | |
12408 | fi | |
12409 | done | |
12410 | ||
12411 | fi | |
12412 | fi | |
12413 | ||
12414 | ||
12415 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
12416 | echo "configure:12417: checking for ANSI C header files" >&5 | |
12417 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then | |
12418 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12419 | else | |
12420 | cat > conftest.$ac_ext <<EOF | |
12421 | #line 12422 "configure" | |
12422 | #include "confdefs.h" | |
12423 | #include <stdlib.h> | |
12424 | #include <stdarg.h> | |
12425 | #include <string.h> | |
12426 | #include <float.h> | |
12427 | EOF | |
12428 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
12429 | { (eval echo configure:12430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
12430 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
12431 | if test -z "$ac_err"; then | |
12432 | rm -rf conftest* | |
12433 | ac_cv_header_stdc=yes | |
12434 | else | |
12435 | echo "$ac_err" >&5 | |
12436 | echo "configure: failed program was:" >&5 | |
12437 | cat conftest.$ac_ext >&5 | |
12438 | rm -rf conftest* | |
12439 | ac_cv_header_stdc=no | |
12440 | fi | |
12441 | rm -f conftest* | |
12442 | ||
12443 | if test $ac_cv_header_stdc = yes; then | |
12444 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
12445 | cat > conftest.$ac_ext <<EOF | |
12446 | #line 12447 "configure" | |
12447 | #include "confdefs.h" | |
12448 | #include <string.h> | |
12449 | EOF | |
12450 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12451 | egrep "memchr" >/dev/null 2>&1; then | |
12452 | : | |
12453 | else | |
12454 | rm -rf conftest* | |
12455 | ac_cv_header_stdc=no | |
12456 | fi | |
12457 | rm -f conftest* | |
12458 | ||
12459 | fi | |
12460 | ||
12461 | if test $ac_cv_header_stdc = yes; then | |
12462 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
12463 | cat > conftest.$ac_ext <<EOF | |
12464 | #line 12465 "configure" | |
12465 | #include "confdefs.h" | |
12466 | #include <stdlib.h> | |
12467 | EOF | |
12468 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12469 | egrep "free" >/dev/null 2>&1; then | |
12470 | : | |
12471 | else | |
12472 | rm -rf conftest* | |
12473 | ac_cv_header_stdc=no | |
12474 | fi | |
12475 | rm -f conftest* | |
12476 | ||
12477 | fi | |
12478 | ||
12479 | if test $ac_cv_header_stdc = yes; then | |
12480 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
12481 | if test "$cross_compiling" = yes; then | |
12482 | : | |
12483 | else | |
12484 | cat > conftest.$ac_ext <<EOF | |
12485 | #line 12486 "configure" | |
12486 | #include "confdefs.h" | |
12487 | #include <ctype.h> | |
12488 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
12489 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
12490 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
12491 | int main () { int i; for (i = 0; i < 256; i++) | |
12492 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
12493 | exit (0); } | |
12494 | ||
12495 | EOF | |
12496 | if { (eval echo configure:12497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
12497 | then | |
12498 | : | |
12499 | else | |
12500 | echo "configure: failed program was:" >&5 | |
12501 | cat conftest.$ac_ext >&5 | |
12502 | rm -fr conftest* | |
12503 | ac_cv_header_stdc=no | |
12504 | fi | |
12505 | rm -fr conftest* | |
12506 | fi | |
12507 | ||
12508 | fi | |
12509 | fi | |
12510 | ||
12511 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
12512 | if test $ac_cv_header_stdc = yes; then | |
12513 | cat >> confdefs.h <<\EOF | |
12514 | #define STDC_HEADERS 1 | |
12515 | EOF | |
12516 | ||
12517 | fi | |
12518 | ||
12519 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 | |
12520 | echo "configure:12521: checking for mode_t" >&5 | |
12521 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then | |
12522 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12523 | else | |
12524 | cat > conftest.$ac_ext <<EOF | |
12525 | #line 12526 "configure" | |
12526 | #include "confdefs.h" | |
12527 | #include <sys/types.h> | |
12528 | #if STDC_HEADERS | |
12529 | #include <stdlib.h> | |
12530 | #include <stddef.h> | |
12531 | #endif | |
12532 | EOF | |
12533 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12534 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
12535 | rm -rf conftest* | |
12536 | ac_cv_type_mode_t=yes | |
12537 | else | |
12538 | rm -rf conftest* | |
12539 | ac_cv_type_mode_t=no | |
12540 | fi | |
12541 | rm -f conftest* | |
12542 | ||
12543 | fi | |
12544 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
12545 | if test $ac_cv_type_mode_t = no; then | |
12546 | cat >> confdefs.h <<\EOF | |
12547 | #define mode_t int | |
12548 | EOF | |
12549 | ||
12550 | fi | |
12551 | ||
12552 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
12553 | echo "configure:12554: checking for off_t" >&5 | |
12554 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then | |
12555 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12556 | else | |
12557 | cat > conftest.$ac_ext <<EOF | |
12558 | #line 12559 "configure" | |
12559 | #include "confdefs.h" | |
12560 | #include <sys/types.h> | |
12561 | #if STDC_HEADERS | |
12562 | #include <stdlib.h> | |
12563 | #include <stddef.h> | |
12564 | #endif | |
12565 | EOF | |
12566 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12567 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
12568 | rm -rf conftest* | |
12569 | ac_cv_type_off_t=yes | |
12570 | else | |
12571 | rm -rf conftest* | |
12572 | ac_cv_type_off_t=no | |
12573 | fi | |
12574 | rm -f conftest* | |
12575 | ||
12576 | fi | |
12577 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
12578 | if test $ac_cv_type_off_t = no; then | |
12579 | cat >> confdefs.h <<\EOF | |
12580 | #define off_t long | |
12581 | EOF | |
12582 | ||
12583 | fi | |
12584 | ||
12585 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 | |
12586 | echo "configure:12587: checking for pid_t" >&5 | |
12587 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then | |
12588 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12589 | else | |
12590 | cat > conftest.$ac_ext <<EOF | |
12591 | #line 12592 "configure" | |
12592 | #include "confdefs.h" | |
12593 | #include <sys/types.h> | |
12594 | #if STDC_HEADERS | |
12595 | #include <stdlib.h> | |
12596 | #include <stddef.h> | |
12597 | #endif | |
12598 | EOF | |
12599 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12600 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
12601 | rm -rf conftest* | |
12602 | ac_cv_type_pid_t=yes | |
12603 | else | |
12604 | rm -rf conftest* | |
12605 | ac_cv_type_pid_t=no | |
12606 | fi | |
12607 | rm -f conftest* | |
12608 | ||
12609 | fi | |
12610 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
12611 | if test $ac_cv_type_pid_t = no; then | |
12612 | cat >> confdefs.h <<\EOF | |
12613 | #define pid_t int | |
12614 | EOF | |
12615 | ||
12616 | fi | |
12617 | ||
12618 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
12619 | echo "configure:12620: checking for size_t" >&5 | |
12620 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then | |
12621 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12622 | else | |
12623 | cat > conftest.$ac_ext <<EOF | |
12624 | #line 12625 "configure" | |
12625 | #include "confdefs.h" | |
12626 | #include <sys/types.h> | |
12627 | #if STDC_HEADERS | |
12628 | #include <stdlib.h> | |
12629 | #include <stddef.h> | |
12630 | #endif | |
12631 | EOF | |
12632 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12633 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
12634 | rm -rf conftest* | |
12635 | ac_cv_type_size_t=yes | |
12636 | else | |
12637 | rm -rf conftest* | |
12638 | ac_cv_type_size_t=no | |
12639 | fi | |
12640 | rm -f conftest* | |
12641 | ||
12642 | fi | |
12643 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
12644 | if test $ac_cv_type_size_t = no; then | |
12645 | cat >> confdefs.h <<\EOF | |
12646 | #define size_t unsigned | |
12647 | EOF | |
12648 | ||
12649 | fi | |
12650 | ||
12651 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 | |
12652 | echo "configure:12653: checking for uid_t in sys/types.h" >&5 | |
12653 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then | |
12654 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12655 | else | |
12656 | cat > conftest.$ac_ext <<EOF | |
12657 | #line 12658 "configure" | |
12658 | #include "confdefs.h" | |
12659 | #include <sys/types.h> | |
12660 | EOF | |
12661 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12662 | egrep "uid_t" >/dev/null 2>&1; then | |
12663 | rm -rf conftest* | |
12664 | ac_cv_type_uid_t=yes | |
12665 | else | |
12666 | rm -rf conftest* | |
12667 | ac_cv_type_uid_t=no | |
12668 | fi | |
12669 | rm -f conftest* | |
12670 | ||
12671 | fi | |
12672 | ||
12673 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 | |
12674 | if test $ac_cv_type_uid_t = no; then | |
12675 | cat >> confdefs.h <<\EOF | |
12676 | #define uid_t int | |
12677 | EOF | |
12678 | ||
12679 | cat >> confdefs.h <<\EOF | |
12680 | #define gid_t int | |
12681 | EOF | |
12682 | ||
12683 | fi | |
12684 | ||
12685 | ||
12686 | echo $ac_n "checking for wchar_t""... $ac_c" 1>&6 | |
12687 | echo "configure:12688: checking for wchar_t" >&5 | |
12688 | if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then | |
12689 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12690 | else | |
12691 | ||
12692 | cat > conftest.$ac_ext <<EOF | |
12693 | #line 12694 "configure" | |
12694 | #include "confdefs.h" | |
12695 | ||
12696 | #ifdef HAVE_WCHAR_H | |
12697 | # include <wchar.h> | |
12698 | #endif | |
12699 | #ifdef HAVE_STDLIB_H | |
12700 | # include <stdlib.h> | |
12701 | #endif | |
12702 | ||
12703 | int main() { | |
12704 | ||
12705 | wchar_t wc, *ws; | |
12706 | wc = L'a'; | |
12707 | ws = L"Hello, world!"; | |
12708 | ||
12709 | ; return 0; } | |
12710 | EOF | |
12711 | if { (eval echo configure:12712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
12712 | rm -rf conftest* | |
12713 | wx_cv_type_wchar_t=yes | |
12714 | else | |
12715 | echo "configure: failed program was:" >&5 | |
12716 | cat conftest.$ac_ext >&5 | |
12717 | rm -rf conftest* | |
12718 | wx_cv_type_wchar_t=no | |
12719 | ||
12720 | fi | |
12721 | rm -f conftest* | |
12722 | ||
12723 | fi | |
12724 | ||
12725 | echo "$ac_t""$wx_cv_type_wchar_t" 1>&6 | |
12726 | ||
12727 | if test "$wx_cv_type_wchar_t" = "yes"; then | |
12728 | cat >> confdefs.h <<\EOF | |
12729 | #define wxUSE_WCHAR_T 1 | |
12730 | EOF | |
12731 | ||
12732 | fi | |
12733 | ||
12734 | ||
12735 | ac_ext=C | |
12736 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
12737 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12738 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12739 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12740 | cross_compiling=$ac_cv_prog_cxx_cross | |
12741 | ||
12742 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 | |
12743 | echo "configure:12744: checking if size_t is unsigned int" >&5 | |
12744 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then | |
12745 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12746 | else | |
12747 | cat > conftest.$ac_ext <<EOF | |
12748 | #line 12749 "configure" | |
12749 | #include "confdefs.h" | |
12750 | #include <stddef.h> | |
12751 | int main() { | |
12752 | ||
12753 | return 0; } | |
12754 | ||
12755 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
12756 | ||
12757 | int bar() { | |
12758 | ||
12759 | ; return 0; } | |
12760 | EOF | |
12761 | if { (eval echo configure:12762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
12762 | rm -rf conftest* | |
12763 | wx_cv_size_t_is_uint=no | |
12764 | else | |
12765 | echo "configure: failed program was:" >&5 | |
12766 | cat conftest.$ac_ext >&5 | |
12767 | rm -rf conftest* | |
12768 | wx_cv_size_t_is_uint=yes | |
12769 | ||
12770 | fi | |
12771 | rm -f conftest* | |
12772 | ||
12773 | fi | |
12774 | ||
12775 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
12776 | ||
12777 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
12778 | cat >> confdefs.h <<\EOF | |
12779 | #define wxSIZE_T_IS_UINT 1 | |
12780 | EOF | |
12781 | ||
12782 | else | |
12783 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 | |
12784 | echo "configure:12785: checking if size_t is unsigned long" >&5 | |
12785 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then | |
12786 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12787 | else | |
12788 | cat > conftest.$ac_ext <<EOF | |
12789 | #line 12790 "configure" | |
12790 | #include "confdefs.h" | |
12791 | #include <stddef.h> | |
12792 | int main() { | |
12793 | ||
12794 | return 0; } | |
12795 | ||
12796 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
12797 | ||
12798 | int bar() { | |
12799 | ||
12800 | ; return 0; } | |
12801 | EOF | |
12802 | if { (eval echo configure:12803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
12803 | rm -rf conftest* | |
12804 | wx_cv_size_t_is_ulong=no | |
12805 | else | |
12806 | echo "configure: failed program was:" >&5 | |
12807 | cat conftest.$ac_ext >&5 | |
12808 | rm -rf conftest* | |
12809 | wx_cv_size_t_is_ulong=yes | |
12810 | ||
12811 | fi | |
12812 | rm -f conftest* | |
12813 | ||
12814 | fi | |
12815 | ||
12816 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
12817 | ||
12818 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
12819 | cat >> confdefs.h <<\EOF | |
12820 | #define wxSIZE_T_IS_ULONG 1 | |
12821 | EOF | |
12822 | ||
12823 | fi | |
12824 | fi | |
12825 | ||
12826 | ac_ext=c | |
12827 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
12828 | ac_cpp='$CPP $CPPFLAGS' | |
12829 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12830 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12831 | cross_compiling=$ac_cv_prog_cc_cross | |
12832 | ||
12833 | ||
12834 | ||
12835 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 | |
12836 | echo "configure:12837: checking for pw_gecos in struct passwd" >&5 | |
12837 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then | |
12838 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12839 | else | |
12840 | ||
12841 | cat > conftest.$ac_ext <<EOF | |
12842 | #line 12843 "configure" | |
12843 | #include "confdefs.h" | |
12844 | #include <pwd.h> | |
12845 | int main() { | |
12846 | ||
12847 | char *p; | |
12848 | struct passwd *pw; | |
12849 | p = pw->pw_gecos; | |
12850 | ||
12851 | ; return 0; } | |
12852 | EOF | |
12853 | if { (eval echo configure:12854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
12854 | rm -rf conftest* | |
12855 | ||
12856 | wx_cv_struct_pw_gecos=yes | |
12857 | ||
12858 | else | |
12859 | echo "configure: failed program was:" >&5 | |
12860 | cat conftest.$ac_ext >&5 | |
12861 | rm -rf conftest* | |
12862 | ||
12863 | wx_cv_struct_pw_gecos=no | |
12864 | ||
12865 | ||
12866 | fi | |
12867 | rm -f conftest* | |
12868 | ||
12869 | ||
12870 | fi | |
12871 | ||
12872 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
12873 | ||
12874 | if test "$wx_cv_struct_pw_gecos" = "yes"; then | |
12875 | cat >> confdefs.h <<\EOF | |
12876 | #define HAVE_PW_GECOS 1 | |
12877 | EOF | |
12878 | ||
12879 | fi | |
12880 | ||
12881 | ||
12882 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
12883 | echo "configure:12884: checking for working const" >&5 | |
12884 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then | |
12885 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12886 | else | |
12887 | cat > conftest.$ac_ext <<EOF | |
12888 | #line 12889 "configure" | |
12889 | #include "confdefs.h" | |
12890 | ||
12891 | int main() { | |
12892 | ||
12893 | /* Ultrix mips cc rejects this. */ | |
12894 | typedef int charset[2]; const charset x; | |
12895 | /* SunOS 4.1.1 cc rejects this. */ | |
12896 | char const *const *ccp; | |
12897 | char **p; | |
12898 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
12899 | struct point {int x, y;}; | |
12900 | static struct point const zero = {0,0}; | |
12901 | /* AIX XL C 1.02.0.0 rejects this. | |
12902 | It does not let you subtract one const X* pointer from another in an arm | |
12903 | of an if-expression whose if-part is not a constant expression */ | |
12904 | const char *g = "string"; | |
12905 | ccp = &g + (g ? g-g : 0); | |
12906 | /* HPUX 7.0 cc rejects these. */ | |
12907 | ++ccp; | |
12908 | p = (char**) ccp; | |
12909 | ccp = (char const *const *) p; | |
12910 | { /* SCO 3.2v4 cc rejects this. */ | |
12911 | char *t; | |
12912 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
12913 | ||
12914 | *t++ = 0; | |
12915 | } | |
12916 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
12917 | int x[] = {25, 17}; | |
12918 | const int *foo = &x[0]; | |
12919 | ++foo; | |
12920 | } | |
12921 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
12922 | typedef const int *iptr; | |
12923 | iptr p = 0; | |
12924 | ++p; | |
12925 | } | |
12926 | { /* AIX XL C 1.02.0.0 rejects this saying | |
12927 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
12928 | struct s { int j; const int *ap[3]; }; | |
12929 | struct s *b; b->j = 5; | |
12930 | } | |
12931 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
12932 | const int foo = 10; | |
12933 | } | |
12934 | ||
12935 | ; return 0; } | |
12936 | EOF | |
12937 | if { (eval echo configure:12938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
12938 | rm -rf conftest* | |
12939 | ac_cv_c_const=yes | |
12940 | else | |
12941 | echo "configure: failed program was:" >&5 | |
12942 | cat conftest.$ac_ext >&5 | |
12943 | rm -rf conftest* | |
12944 | ac_cv_c_const=no | |
12945 | fi | |
12946 | rm -f conftest* | |
12947 | fi | |
12948 | ||
12949 | echo "$ac_t""$ac_cv_c_const" 1>&6 | |
12950 | if test $ac_cv_c_const = no; then | |
12951 | cat >> confdefs.h <<\EOF | |
12952 | #define const | |
12953 | EOF | |
12954 | ||
12955 | fi | |
12956 | ||
12957 | echo $ac_n "checking for inline""... $ac_c" 1>&6 | |
12958 | echo "configure:12959: checking for inline" >&5 | |
12959 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then | |
12960 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12961 | else | |
12962 | ac_cv_c_inline=no | |
12963 | for ac_kw in inline __inline__ __inline; do | |
12964 | cat > conftest.$ac_ext <<EOF | |
12965 | #line 12966 "configure" | |
12966 | #include "confdefs.h" | |
12967 | ||
12968 | int main() { | |
12969 | } $ac_kw foo() { | |
12970 | ; return 0; } | |
12971 | EOF | |
12972 | if { (eval echo configure:12973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
12973 | rm -rf conftest* | |
12974 | ac_cv_c_inline=$ac_kw; break | |
12975 | else | |
12976 | echo "configure: failed program was:" >&5 | |
12977 | cat conftest.$ac_ext >&5 | |
12978 | fi | |
12979 | rm -f conftest* | |
12980 | done | |
12981 | ||
12982 | fi | |
12983 | ||
12984 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
12985 | case "$ac_cv_c_inline" in | |
12986 | inline | yes) ;; | |
12987 | no) cat >> confdefs.h <<\EOF | |
12988 | #define inline | |
12989 | EOF | |
12990 | ;; | |
12991 | *) cat >> confdefs.h <<EOF | |
12992 | #define inline $ac_cv_c_inline | |
12993 | EOF | |
12994 | ;; | |
12995 | esac | |
12996 | ||
12997 | ||
12998 | echo $ac_n "checking size of char""... $ac_c" 1>&6 | |
12999 | echo "configure:13000: checking size of char" >&5 | |
13000 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then | |
13001 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13002 | else | |
13003 | if test "$cross_compiling" = yes; then | |
13004 | ac_cv_sizeof_char=1 | |
13005 | else | |
13006 | cat > conftest.$ac_ext <<EOF | |
13007 | #line 13008 "configure" | |
13008 | #include "confdefs.h" | |
13009 | #include <stdio.h> | |
13010 | #include <sys/types.h> | |
13011 | main() | |
13012 | { | |
13013 | FILE *f=fopen("conftestval", "w"); | |
13014 | if (!f) exit(1); | |
13015 | fprintf(f, "%d\n", sizeof(char)); | |
13016 | exit(0); | |
13017 | } | |
13018 | EOF | |
13019 | if { (eval echo configure:13020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
13020 | then | |
13021 | ac_cv_sizeof_char=`cat conftestval` | |
13022 | else | |
13023 | echo "configure: failed program was:" >&5 | |
13024 | cat conftest.$ac_ext >&5 | |
13025 | rm -fr conftest* | |
13026 | ac_cv_sizeof_char=0 | |
13027 | fi | |
13028 | rm -fr conftest* | |
13029 | fi | |
13030 | ||
13031 | fi | |
13032 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 | |
13033 | cat >> confdefs.h <<EOF | |
13034 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
13035 | EOF | |
13036 | ||
13037 | ||
13038 | echo $ac_n "checking size of short""... $ac_c" 1>&6 | |
13039 | echo "configure:13040: checking size of short" >&5 | |
13040 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then | |
13041 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13042 | else | |
13043 | if test "$cross_compiling" = yes; then | |
13044 | ac_cv_sizeof_short=2 | |
13045 | else | |
13046 | cat > conftest.$ac_ext <<EOF | |
13047 | #line 13048 "configure" | |
13048 | #include "confdefs.h" | |
13049 | #include <stdio.h> | |
13050 | #include <sys/types.h> | |
13051 | main() | |
13052 | { | |
13053 | FILE *f=fopen("conftestval", "w"); | |
13054 | if (!f) exit(1); | |
13055 | fprintf(f, "%d\n", sizeof(short)); | |
13056 | exit(0); | |
13057 | } | |
13058 | EOF | |
13059 | if { (eval echo configure:13060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
13060 | then | |
13061 | ac_cv_sizeof_short=`cat conftestval` | |
13062 | else | |
13063 | echo "configure: failed program was:" >&5 | |
13064 | cat conftest.$ac_ext >&5 | |
13065 | rm -fr conftest* | |
13066 | ac_cv_sizeof_short=0 | |
13067 | fi | |
13068 | rm -fr conftest* | |
13069 | fi | |
13070 | ||
13071 | fi | |
13072 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 | |
13073 | cat >> confdefs.h <<EOF | |
13074 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
13075 | EOF | |
13076 | ||
13077 | ||
13078 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 | |
13079 | echo "configure:13080: checking size of int *" >&5 | |
13080 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then | |
13081 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13082 | else | |
13083 | if test "$cross_compiling" = yes; then | |
13084 | ac_cv_sizeof_int_p=4 | |
13085 | else | |
13086 | cat > conftest.$ac_ext <<EOF | |
13087 | #line 13088 "configure" | |
13088 | #include "confdefs.h" | |
13089 | #include <stdio.h> | |
13090 | #include <sys/types.h> | |
13091 | main() | |
13092 | { | |
13093 | FILE *f=fopen("conftestval", "w"); | |
13094 | if (!f) exit(1); | |
13095 | fprintf(f, "%d\n", sizeof(int *)); | |
13096 | exit(0); | |
13097 | } | |
13098 | EOF | |
13099 | if { (eval echo configure:13100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
13100 | then | |
13101 | ac_cv_sizeof_int_p=`cat conftestval` | |
13102 | else | |
13103 | echo "configure: failed program was:" >&5 | |
13104 | cat conftest.$ac_ext >&5 | |
13105 | rm -fr conftest* | |
13106 | ac_cv_sizeof_int_p=0 | |
13107 | fi | |
13108 | rm -fr conftest* | |
13109 | fi | |
13110 | ||
13111 | fi | |
13112 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 | |
13113 | cat >> confdefs.h <<EOF | |
13114 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
13115 | EOF | |
13116 | ||
13117 | ||
13118 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
13119 | echo "configure:13120: checking size of int" >&5 | |
13120 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then | |
13121 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13122 | else | |
13123 | if test "$cross_compiling" = yes; then | |
13124 | ac_cv_sizeof_int=4 | |
13125 | else | |
13126 | cat > conftest.$ac_ext <<EOF | |
13127 | #line 13128 "configure" | |
13128 | #include "confdefs.h" | |
13129 | #include <stdio.h> | |
13130 | #include <sys/types.h> | |
13131 | main() | |
13132 | { | |
13133 | FILE *f=fopen("conftestval", "w"); | |
13134 | if (!f) exit(1); | |
13135 | fprintf(f, "%d\n", sizeof(int)); | |
13136 | exit(0); | |
13137 | } | |
13138 | EOF | |
13139 | if { (eval echo configure:13140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
13140 | then | |
13141 | ac_cv_sizeof_int=`cat conftestval` | |
13142 | else | |
13143 | echo "configure: failed program was:" >&5 | |
13144 | cat conftest.$ac_ext >&5 | |
13145 | rm -fr conftest* | |
13146 | ac_cv_sizeof_int=0 | |
13147 | fi | |
13148 | rm -fr conftest* | |
13149 | fi | |
13150 | ||
13151 | fi | |
13152 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
13153 | cat >> confdefs.h <<EOF | |
13154 | #define SIZEOF_INT $ac_cv_sizeof_int | |
13155 | EOF | |
13156 | ||
13157 | ||
13158 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
13159 | echo "configure:13160: checking size of long" >&5 | |
13160 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then | |
13161 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13162 | else | |
13163 | if test "$cross_compiling" = yes; then | |
13164 | ac_cv_sizeof_long=4 | |
13165 | else | |
13166 | cat > conftest.$ac_ext <<EOF | |
13167 | #line 13168 "configure" | |
13168 | #include "confdefs.h" | |
13169 | #include <stdio.h> | |
13170 | #include <sys/types.h> | |
13171 | main() | |
13172 | { | |
13173 | FILE *f=fopen("conftestval", "w"); | |
13174 | if (!f) exit(1); | |
13175 | fprintf(f, "%d\n", sizeof(long)); | |
13176 | exit(0); | |
13177 | } | |
13178 | EOF | |
13179 | if { (eval echo configure:13180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
13180 | then | |
13181 | ac_cv_sizeof_long=`cat conftestval` | |
13182 | else | |
13183 | echo "configure: failed program was:" >&5 | |
13184 | cat conftest.$ac_ext >&5 | |
13185 | rm -fr conftest* | |
13186 | ac_cv_sizeof_long=0 | |
13187 | fi | |
13188 | rm -fr conftest* | |
13189 | fi | |
13190 | ||
13191 | fi | |
13192 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
13193 | cat >> confdefs.h <<EOF | |
13194 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
13195 | EOF | |
13196 | ||
13197 | ||
13198 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
13199 | echo "configure:13200: checking size of long long" >&5 | |
13200 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then | |
13201 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13202 | else | |
13203 | if test "$cross_compiling" = yes; then | |
13204 | ac_cv_sizeof_long_long=0 | |
13205 | else | |
13206 | cat > conftest.$ac_ext <<EOF | |
13207 | #line 13208 "configure" | |
13208 | #include "confdefs.h" | |
13209 | #include <stdio.h> | |
13210 | #include <sys/types.h> | |
13211 | main() | |
13212 | { | |
13213 | FILE *f=fopen("conftestval", "w"); | |
13214 | if (!f) exit(1); | |
13215 | fprintf(f, "%d\n", sizeof(long long)); | |
13216 | exit(0); | |
13217 | } | |
13218 | EOF | |
13219 | if { (eval echo configure:13220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
13220 | then | |
13221 | ac_cv_sizeof_long_long=`cat conftestval` | |
13222 | else | |
13223 | echo "configure: failed program was:" >&5 | |
13224 | cat conftest.$ac_ext >&5 | |
13225 | rm -fr conftest* | |
13226 | ac_cv_sizeof_long_long=0 | |
13227 | fi | |
13228 | rm -fr conftest* | |
13229 | fi | |
13230 | ||
13231 | fi | |
13232 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
13233 | cat >> confdefs.h <<EOF | |
13234 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
13235 | EOF | |
13236 | ||
13237 | ||
13238 | ||
13239 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 | |
13240 | echo "configure:13241: checking size of wchar_t" >&5 | |
13241 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then | |
13242 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13243 | else | |
13244 | ||
13245 | if test "$cross_compiling" = yes; then | |
13246 | wx_cv_sizeof_wchar_t=4 | |
13247 | ||
13248 | else | |
13249 | cat > conftest.$ac_ext <<EOF | |
13250 | #line 13251 "configure" | |
13251 | #include "confdefs.h" | |
13252 | ||
13253 | #ifdef HAVE_WCHAR_H | |
13254 | # include <wchar.h> | |
13255 | #endif | |
13256 | #ifdef HAVE_STDLIB_H | |
13257 | # include <stdlib.h> | |
13258 | #endif | |
13259 | #include <stdio.h> | |
13260 | int main() | |
13261 | { | |
13262 | FILE *f=fopen("conftestval", "w"); | |
13263 | if (!f) exit(1); | |
13264 | fprintf(f, "%i", sizeof(wchar_t)); | |
13265 | exit(0); | |
13266 | } | |
13267 | ||
13268 | EOF | |
13269 | if { (eval echo configure:13270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
13270 | then | |
13271 | wx_cv_sizeof_wchar_t=`cat conftestval` | |
13272 | else | |
13273 | echo "configure: failed program was:" >&5 | |
13274 | cat conftest.$ac_ext >&5 | |
13275 | rm -fr conftest* | |
13276 | wx_cv_sizeof_wchar_t=0 | |
13277 | fi | |
13278 | rm -fr conftest* | |
13279 | fi | |
13280 | ||
13281 | ||
13282 | fi | |
13283 | ||
13284 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 | |
13285 | ||
13286 | cat >> confdefs.h <<EOF | |
13287 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t | |
13288 | EOF | |
13289 | ||
13290 | ||
13291 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 | |
13292 | echo "configure:13293: checking whether byte ordering is bigendian" >&5 | |
13293 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then | |
13294 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13295 | else | |
13296 | ac_cv_c_bigendian=unknown | |
13297 | # See if sys/param.h defines the BYTE_ORDER macro. | |
13298 | cat > conftest.$ac_ext <<EOF | |
13299 | #line 13300 "configure" | |
13300 | #include "confdefs.h" | |
13301 | #include <sys/types.h> | |
13302 | #include <sys/param.h> | |
13303 | int main() { | |
13304 | ||
13305 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
13306 | bogus endian macros | |
13307 | #endif | |
13308 | ; return 0; } | |
13309 | EOF | |
13310 | if { (eval echo configure:13311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
13311 | rm -rf conftest* | |
13312 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
13313 | cat > conftest.$ac_ext <<EOF | |
13314 | #line 13315 "configure" | |
13315 | #include "confdefs.h" | |
13316 | #include <sys/types.h> | |
13317 | #include <sys/param.h> | |
13318 | int main() { | |
13319 | ||
13320 | #if BYTE_ORDER != BIG_ENDIAN | |
13321 | not big endian | |
13322 | #endif | |
13323 | ; return 0; } | |
13324 | EOF | |
13325 | if { (eval echo configure:13326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
13326 | rm -rf conftest* | |
13327 | ac_cv_c_bigendian=yes | |
13328 | else | |
13329 | echo "configure: failed program was:" >&5 | |
13330 | cat conftest.$ac_ext >&5 | |
13331 | rm -rf conftest* | |
13332 | ac_cv_c_bigendian=no | |
13333 | fi | |
13334 | rm -f conftest* | |
13335 | else | |
13336 | echo "configure: failed program was:" >&5 | |
13337 | cat conftest.$ac_ext >&5 | |
13338 | fi | |
13339 | rm -f conftest* | |
13340 | if test $ac_cv_c_bigendian = unknown; then | |
13341 | if test "$cross_compiling" = yes; then | |
13342 | ac_cv_c_bigendian=unknown | |
13343 | else | |
13344 | cat > conftest.$ac_ext <<EOF | |
13345 | #line 13346 "configure" | |
13346 | #include "confdefs.h" | |
13347 | main () { | |
13348 | /* Are we little or big endian? From Harbison&Steele. */ | |
13349 | union | |
13350 | { | |
13351 | long l; | |
13352 | char c[sizeof (long)]; | |
13353 | } u; | |
13354 | u.l = 1; | |
13355 | exit (u.c[sizeof (long) - 1] == 1); | |
13356 | } | |
13357 | EOF | |
13358 | if { (eval echo configure:13359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
13359 | then | |
13360 | ac_cv_c_bigendian=no | |
13361 | else | |
13362 | echo "configure: failed program was:" >&5 | |
13363 | cat conftest.$ac_ext >&5 | |
13364 | rm -fr conftest* | |
13365 | ac_cv_c_bigendian=yes | |
13366 | fi | |
13367 | rm -fr conftest* | |
13368 | fi | |
13369 | ||
13370 | fi | |
13371 | fi | |
13372 | ||
13373 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
13374 | if test $ac_cv_c_bigendian = unknown; then | |
13375 | 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 | |
13376 | fi | |
13377 | if test $ac_cv_c_bigendian = yes; then | |
13378 | cat >> confdefs.h <<\EOF | |
13379 | #define WORDS_BIGENDIAN 1 | |
13380 | EOF | |
13381 | ||
13382 | fi | |
13383 | ||
13384 | ||
13385 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 | |
13386 | echo "configure:13387: checking how to run the C++ preprocessor" >&5 | |
13387 | if test -z "$CXXCPP"; then | |
13388 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
13389 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13390 | else | |
13391 | ac_ext=C | |
13392 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13393 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13394 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13395 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13396 | cross_compiling=$ac_cv_prog_cxx_cross | |
13397 | CXXCPP="${CXX-g++} -E" | |
13398 | cat > conftest.$ac_ext <<EOF | |
13399 | #line 13400 "configure" | |
13400 | #include "confdefs.h" | |
13401 | #include <stdlib.h> | |
13402 | EOF | |
13403 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
13404 | { (eval echo configure:13405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
13405 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
13406 | if test -z "$ac_err"; then | |
13407 | : | |
13408 | else | |
13409 | echo "$ac_err" >&5 | |
13410 | echo "configure: failed program was:" >&5 | |
13411 | cat conftest.$ac_ext >&5 | |
13412 | rm -rf conftest* | |
13413 | CXXCPP=/lib/cpp | |
13414 | fi | |
13415 | rm -f conftest* | |
13416 | ac_cv_prog_CXXCPP="$CXXCPP" | |
13417 | ac_ext=C | |
13418 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13419 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13420 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13421 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13422 | cross_compiling=$ac_cv_prog_cxx_cross | |
13423 | fi | |
13424 | fi | |
13425 | CXXCPP="$ac_cv_prog_CXXCPP" | |
13426 | echo "$ac_t""$CXXCPP" 1>&6 | |
13427 | ||
13428 | ||
13429 | if test "$cross_compiling" = "yes"; then | |
13430 | cat >> confdefs.h <<\EOF | |
13431 | #define wxUSE_IOSTREAMH 1 | |
13432 | EOF | |
13433 | ||
13434 | else | |
13435 | ||
13436 | ac_ext=C | |
13437 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13438 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13439 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13440 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13441 | cross_compiling=$ac_cv_prog_cxx_cross | |
13442 | ||
13443 | ||
13444 | for ac_hdr in iostream | |
13445 | do | |
13446 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
13447 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
13448 | echo "configure:13449: checking for $ac_hdr" >&5 | |
13449 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
13450 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13451 | else | |
13452 | cat > conftest.$ac_ext <<EOF | |
13453 | #line 13454 "configure" | |
13454 | #include "confdefs.h" | |
13455 | #include <$ac_hdr> | |
13456 | EOF | |
13457 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
13458 | { (eval echo configure:13459: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
13459 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
13460 | if test -z "$ac_err"; then | |
13461 | rm -rf conftest* | |
13462 | eval "ac_cv_header_$ac_safe=yes" | |
13463 | else | |
13464 | echo "$ac_err" >&5 | |
13465 | echo "configure: failed program was:" >&5 | |
13466 | cat conftest.$ac_ext >&5 | |
13467 | rm -rf conftest* | |
13468 | eval "ac_cv_header_$ac_safe=no" | |
13469 | fi | |
13470 | rm -f conftest* | |
13471 | fi | |
13472 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13473 | echo "$ac_t""yes" 1>&6 | |
13474 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13475 | cat >> confdefs.h <<EOF | |
13476 | #define $ac_tr_hdr 1 | |
13477 | EOF | |
13478 | ||
13479 | else | |
13480 | echo "$ac_t""no" 1>&6 | |
13481 | fi | |
13482 | done | |
13483 | ||
13484 | ||
13485 | if test "$ac_cv_header_iostream" = "yes" ; then | |
13486 | : | |
13487 | else | |
13488 | cat >> confdefs.h <<\EOF | |
13489 | #define wxUSE_IOSTREAMH 1 | |
13490 | EOF | |
13491 | ||
13492 | fi | |
13493 | ||
13494 | ac_ext=c | |
13495 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13496 | ac_cpp='$CPP $CPPFLAGS' | |
13497 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13498 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13499 | cross_compiling=$ac_cv_prog_cc_cross | |
13500 | ||
13501 | fi | |
13502 | ||
13503 | ||
13504 | ||
13505 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 | |
13506 | echo "configure:13507: checking if C++ compiler supports bool" >&5 | |
13507 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then | |
13508 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13509 | else | |
13510 | ||
13511 | ||
13512 | ac_ext=C | |
13513 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13514 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13515 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13516 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13517 | cross_compiling=$ac_cv_prog_cxx_cross | |
13518 | ||
13519 | ||
13520 | cat > conftest.$ac_ext <<EOF | |
13521 | #line 13522 "configure" | |
13522 | #include "confdefs.h" | |
13523 | ||
13524 | ||
13525 | int main() { | |
13526 | ||
13527 | bool b = true; | |
13528 | ||
13529 | return 0; | |
13530 | ||
13531 | ; return 0; } | |
13532 | EOF | |
13533 | if { (eval echo configure:13534: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
13534 | rm -rf conftest* | |
13535 | ||
13536 | wx_cv_cpp_bool=yes | |
13537 | ||
13538 | else | |
13539 | echo "configure: failed program was:" >&5 | |
13540 | cat conftest.$ac_ext >&5 | |
13541 | rm -rf conftest* | |
13542 | ||
13543 | wx_cv_cpp_bool=no | |
13544 | ||
13545 | ||
13546 | fi | |
13547 | rm -f conftest* | |
13548 | ||
13549 | ac_ext=c | |
13550 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13551 | ac_cpp='$CPP $CPPFLAGS' | |
13552 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13553 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13554 | cross_compiling=$ac_cv_prog_cc_cross | |
13555 | ||
13556 | ||
13557 | fi | |
13558 | ||
13559 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
13560 | ||
13561 | if test "$wx_cv_cpp_bool" = "yes"; then | |
13562 | cat >> confdefs.h <<\EOF | |
13563 | #define HAVE_BOOL 1 | |
13564 | EOF | |
13565 | ||
13566 | fi | |
13567 | ||
13568 | ||
13569 | ||
13570 | echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6 | |
13571 | echo "configure:13572: checking for wcslen in -lc" >&5 | |
13572 | ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'` | |
13573 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13574 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13575 | else | |
13576 | ac_save_LIBS="$LIBS" | |
13577 | LIBS="-lc $LIBS" | |
13578 | cat > conftest.$ac_ext <<EOF | |
13579 | #line 13580 "configure" | |
13580 | #include "confdefs.h" | |
13581 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13582 | /* We use char because int might match the return type of a gcc2 | |
13583 | builtin and then its argument prototype would still apply. */ | |
13584 | char wcslen(); | |
13585 | ||
13586 | int main() { | |
13587 | wcslen() | |
13588 | ; return 0; } | |
13589 | EOF | |
13590 | if { (eval echo configure:13591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13591 | rm -rf conftest* | |
13592 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13593 | else | |
13594 | echo "configure: failed program was:" >&5 | |
13595 | cat conftest.$ac_ext >&5 | |
13596 | rm -rf conftest* | |
13597 | eval "ac_cv_lib_$ac_lib_var=no" | |
13598 | fi | |
13599 | rm -f conftest* | |
13600 | LIBS="$ac_save_LIBS" | |
13601 | ||
13602 | fi | |
13603 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13604 | echo "$ac_t""yes" 1>&6 | |
13605 | ||
13606 | cat >> confdefs.h <<\EOF | |
13607 | #define HAVE_WCSLEN 1 | |
13608 | EOF | |
13609 | ||
13610 | WCHAR_LINK= | |
13611 | ||
13612 | else | |
13613 | echo "$ac_t""no" 1>&6 | |
13614 | ||
13615 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 | |
13616 | echo "configure:13617: checking for wcslen in -lw" >&5 | |
13617 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` | |
13618 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13619 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13620 | else | |
13621 | ac_save_LIBS="$LIBS" | |
13622 | LIBS="-lw $LIBS" | |
13623 | cat > conftest.$ac_ext <<EOF | |
13624 | #line 13625 "configure" | |
13625 | #include "confdefs.h" | |
13626 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13627 | /* We use char because int might match the return type of a gcc2 | |
13628 | builtin and then its argument prototype would still apply. */ | |
13629 | char wcslen(); | |
13630 | ||
13631 | int main() { | |
13632 | wcslen() | |
13633 | ; return 0; } | |
13634 | EOF | |
13635 | if { (eval echo configure:13636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13636 | rm -rf conftest* | |
13637 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13638 | else | |
13639 | echo "configure: failed program was:" >&5 | |
13640 | cat conftest.$ac_ext >&5 | |
13641 | rm -rf conftest* | |
13642 | eval "ac_cv_lib_$ac_lib_var=no" | |
13643 | fi | |
13644 | rm -f conftest* | |
13645 | LIBS="$ac_save_LIBS" | |
13646 | ||
13647 | fi | |
13648 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13649 | echo "$ac_t""yes" 1>&6 | |
13650 | ||
13651 | cat >> confdefs.h <<\EOF | |
13652 | #define HAVE_WCSLEN 1 | |
13653 | EOF | |
13654 | ||
13655 | WCHAR_LINK=" -lw" | |
13656 | ||
13657 | else | |
13658 | echo "$ac_t""no" 1>&6 | |
13659 | ||
13660 | echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6 | |
13661 | echo "configure:13662: checking for wcslen in -lmsvcrt" >&5 | |
13662 | ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'` | |
13663 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13664 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13665 | else | |
13666 | ac_save_LIBS="$LIBS" | |
13667 | LIBS="-lmsvcrt $LIBS" | |
13668 | cat > conftest.$ac_ext <<EOF | |
13669 | #line 13670 "configure" | |
13670 | #include "confdefs.h" | |
13671 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13672 | /* We use char because int might match the return type of a gcc2 | |
13673 | builtin and then its argument prototype would still apply. */ | |
13674 | char wcslen(); | |
13675 | ||
13676 | int main() { | |
13677 | wcslen() | |
13678 | ; return 0; } | |
13679 | EOF | |
13680 | if { (eval echo configure:13681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13681 | rm -rf conftest* | |
13682 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13683 | else | |
13684 | echo "configure: failed program was:" >&5 | |
13685 | cat conftest.$ac_ext >&5 | |
13686 | rm -rf conftest* | |
13687 | eval "ac_cv_lib_$ac_lib_var=no" | |
13688 | fi | |
13689 | rm -f conftest* | |
13690 | LIBS="$ac_save_LIBS" | |
13691 | ||
13692 | fi | |
13693 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13694 | echo "$ac_t""yes" 1>&6 | |
13695 | ||
13696 | cat >> confdefs.h <<\EOF | |
13697 | #define HAVE_WCSLEN 1 | |
13698 | EOF | |
13699 | ||
13700 | WCHAR_LINK= | |
13701 | ||
13702 | else | |
13703 | echo "$ac_t""no" 1>&6 | |
13704 | fi | |
13705 | ||
13706 | ||
13707 | fi | |
13708 | ||
13709 | ||
13710 | fi | |
13711 | ||
13712 | ||
13713 | for ac_func in wcsrtombs | |
13714 | do | |
13715 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
13716 | echo "configure:13717: checking for $ac_func" >&5 | |
13717 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
13718 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13719 | else | |
13720 | cat > conftest.$ac_ext <<EOF | |
13721 | #line 13722 "configure" | |
13722 | #include "confdefs.h" | |
13723 | /* System header to define __stub macros and hopefully few prototypes, | |
13724 | which can conflict with char $ac_func(); below. */ | |
13725 | #include <assert.h> | |
13726 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13727 | /* We use char because int might match the return type of a gcc2 | |
13728 | builtin and then its argument prototype would still apply. */ | |
13729 | char $ac_func(); | |
13730 | ||
13731 | int main() { | |
13732 | ||
13733 | /* The GNU C library defines this for functions which it implements | |
13734 | to always fail with ENOSYS. Some functions are actually named | |
13735 | something starting with __ and the normal name is an alias. */ | |
13736 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13737 | choke me | |
13738 | #else | |
13739 | $ac_func(); | |
13740 | #endif | |
13741 | ||
13742 | ; return 0; } | |
13743 | EOF | |
13744 | if { (eval echo configure:13745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13745 | rm -rf conftest* | |
13746 | eval "ac_cv_func_$ac_func=yes" | |
13747 | else | |
13748 | echo "configure: failed program was:" >&5 | |
13749 | cat conftest.$ac_ext >&5 | |
13750 | rm -rf conftest* | |
13751 | eval "ac_cv_func_$ac_func=no" | |
13752 | fi | |
13753 | rm -f conftest* | |
13754 | fi | |
13755 | ||
13756 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13757 | echo "$ac_t""yes" 1>&6 | |
13758 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13759 | cat >> confdefs.h <<EOF | |
13760 | #define $ac_tr_func 1 | |
13761 | EOF | |
13762 | ||
13763 | else | |
13764 | echo "$ac_t""no" 1>&6 | |
13765 | fi | |
13766 | done | |
13767 | ||
13768 | ||
13769 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 | |
13770 | echo "configure:13771: checking for vprintf" >&5 | |
13771 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then | |
13772 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13773 | else | |
13774 | cat > conftest.$ac_ext <<EOF | |
13775 | #line 13776 "configure" | |
13776 | #include "confdefs.h" | |
13777 | /* System header to define __stub macros and hopefully few prototypes, | |
13778 | which can conflict with char vprintf(); below. */ | |
13779 | #include <assert.h> | |
13780 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13781 | /* We use char because int might match the return type of a gcc2 | |
13782 | builtin and then its argument prototype would still apply. */ | |
13783 | char vprintf(); | |
13784 | ||
13785 | int main() { | |
13786 | ||
13787 | /* The GNU C library defines this for functions which it implements | |
13788 | to always fail with ENOSYS. Some functions are actually named | |
13789 | something starting with __ and the normal name is an alias. */ | |
13790 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
13791 | choke me | |
13792 | #else | |
13793 | vprintf(); | |
13794 | #endif | |
13795 | ||
13796 | ; return 0; } | |
13797 | EOF | |
13798 | if { (eval echo configure:13799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13799 | rm -rf conftest* | |
13800 | eval "ac_cv_func_vprintf=yes" | |
13801 | else | |
13802 | echo "configure: failed program was:" >&5 | |
13803 | cat conftest.$ac_ext >&5 | |
13804 | rm -rf conftest* | |
13805 | eval "ac_cv_func_vprintf=no" | |
13806 | fi | |
13807 | rm -f conftest* | |
13808 | fi | |
13809 | ||
13810 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
13811 | echo "$ac_t""yes" 1>&6 | |
13812 | cat >> confdefs.h <<\EOF | |
13813 | #define HAVE_VPRINTF 1 | |
13814 | EOF | |
13815 | ||
13816 | else | |
13817 | echo "$ac_t""no" 1>&6 | |
13818 | fi | |
13819 | ||
13820 | if test "$ac_cv_func_vprintf" != yes; then | |
13821 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
13822 | echo "configure:13823: checking for _doprnt" >&5 | |
13823 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then | |
13824 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13825 | else | |
13826 | cat > conftest.$ac_ext <<EOF | |
13827 | #line 13828 "configure" | |
13828 | #include "confdefs.h" | |
13829 | /* System header to define __stub macros and hopefully few prototypes, | |
13830 | which can conflict with char _doprnt(); below. */ | |
13831 | #include <assert.h> | |
13832 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13833 | /* We use char because int might match the return type of a gcc2 | |
13834 | builtin and then its argument prototype would still apply. */ | |
13835 | char _doprnt(); | |
13836 | ||
13837 | int main() { | |
13838 | ||
13839 | /* The GNU C library defines this for functions which it implements | |
13840 | to always fail with ENOSYS. Some functions are actually named | |
13841 | something starting with __ and the normal name is an alias. */ | |
13842 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
13843 | choke me | |
13844 | #else | |
13845 | _doprnt(); | |
13846 | #endif | |
13847 | ||
13848 | ; return 0; } | |
13849 | EOF | |
13850 | if { (eval echo configure:13851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13851 | rm -rf conftest* | |
13852 | eval "ac_cv_func__doprnt=yes" | |
13853 | else | |
13854 | echo "configure: failed program was:" >&5 | |
13855 | cat conftest.$ac_ext >&5 | |
13856 | rm -rf conftest* | |
13857 | eval "ac_cv_func__doprnt=no" | |
13858 | fi | |
13859 | rm -f conftest* | |
13860 | fi | |
13861 | ||
13862 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
13863 | echo "$ac_t""yes" 1>&6 | |
13864 | cat >> confdefs.h <<\EOF | |
13865 | #define HAVE_DOPRNT 1 | |
13866 | EOF | |
13867 | ||
13868 | else | |
13869 | echo "$ac_t""no" 1>&6 | |
13870 | fi | |
13871 | ||
13872 | fi | |
13873 | ||
13874 | ||
13875 | ||
13876 | ||
13877 | ||
13878 | ||
13879 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 | |
13880 | echo "configure:13881: checking for vsnprintf" >&5 | |
13881 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then | |
13882 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13883 | else | |
13884 | ||
13885 | cat > conftest.$ac_ext <<EOF | |
13886 | #line 13887 "configure" | |
13887 | #include "confdefs.h" | |
13888 | ||
13889 | #include <stdio.h> | |
13890 | #include <stdarg.h> | |
13891 | ||
13892 | int main() { | |
13893 | ||
13894 | int wx_test_vsnprintf(const char *, ...); | |
13895 | ||
13896 | wx_test_vsnprintf("%s"); | |
13897 | return 0; | |
13898 | } | |
13899 | ||
13900 | int wx_test_vsnprintf(const char *fmt, ...) | |
13901 | { | |
13902 | char *s; | |
13903 | ||
13904 | va_list argp; | |
13905 | va_start(argp, fmt); | |
13906 | vsnprintf(s, 42, fmt, argp); | |
13907 | va_end(argp); | |
13908 | ||
13909 | ; return 0; } | |
13910 | EOF | |
13911 | if { (eval echo configure:13912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
13912 | rm -rf conftest* | |
13913 | ||
13914 | wx_cv_func_vsnprintf=yes | |
13915 | ||
13916 | else | |
13917 | echo "configure: failed program was:" >&5 | |
13918 | cat conftest.$ac_ext >&5 | |
13919 | rm -rf conftest* | |
13920 | ||
13921 | cat > conftest.$ac_ext <<EOF | |
13922 | #line 13923 "configure" | |
13923 | #include "confdefs.h" | |
13924 | ||
13925 | #include <stdio.h> | |
13926 | #include <stdarg.h> | |
13927 | ||
13928 | int main() { | |
13929 | ||
13930 | int wx_test_vsnprintf(const char *, ...); | |
13931 | ||
13932 | wx_test_vsnprintf("%s"); | |
13933 | return 0; | |
13934 | } | |
13935 | ||
13936 | int wx_test_vsnprintf(const char *fmt, ...) | |
13937 | { | |
13938 | char *s; | |
13939 | ||
13940 | va_list argp; | |
13941 | va_start(argp, fmt); | |
13942 | _vsnprintf(s, 42, fmt, argp); | |
13943 | va_end(argp); | |
13944 | ||
13945 | ; return 0; } | |
13946 | EOF | |
13947 | if { (eval echo configure:13948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
13948 | rm -rf conftest* | |
13949 | ||
13950 | wx_cv_func_vsnprintf=yes | |
13951 | ||
13952 | else | |
13953 | echo "configure: failed program was:" >&5 | |
13954 | cat conftest.$ac_ext >&5 | |
13955 | rm -rf conftest* | |
13956 | ||
13957 | wx_cv_func_vsnprintf=no | |
13958 | ||
13959 | fi | |
13960 | rm -f conftest* | |
13961 | ||
13962 | fi | |
13963 | rm -f conftest* | |
13964 | ||
13965 | fi | |
13966 | ||
13967 | echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6 | |
13968 | ||
13969 | if test "$wx_cv_func_vsnprintf" = yes; then | |
13970 | cat >> confdefs.h <<\EOF | |
13971 | #define HAVE_VSNPRINTF 1 | |
13972 | EOF | |
13973 | ||
13974 | else | |
13975 | echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2 | |
13976 | fi | |
13977 | ||
13978 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 | |
13979 | echo "configure:13980: checking for vsscanf" >&5 | |
13980 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then | |
13981 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13982 | else | |
13983 | ||
13984 | cat > conftest.$ac_ext <<EOF | |
13985 | #line 13986 "configure" | |
13986 | #include "confdefs.h" | |
13987 | ||
13988 | #include <stdio.h> | |
13989 | #include <stdarg.h> | |
13990 | ||
13991 | int main() { | |
13992 | ||
13993 | int wx_test_vsscanf(const char *, ...); | |
13994 | ||
13995 | wx_test_vsscanf("%d"); | |
13996 | return 0; | |
13997 | } | |
13998 | ||
13999 | int wx_test_vsscanf(const char *fmt, ...) | |
14000 | { | |
14001 | va_list argp; | |
14002 | va_start(argp, fmt); | |
14003 | vsscanf("42", fmt, argp); | |
14004 | va_end(argp); | |
14005 | ||
14006 | ; return 0; } | |
14007 | EOF | |
14008 | if { (eval echo configure:14009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
14009 | rm -rf conftest* | |
14010 | ||
14011 | wx_cv_func_vsscanf=yes | |
14012 | ||
14013 | else | |
14014 | echo "configure: failed program was:" >&5 | |
14015 | cat conftest.$ac_ext >&5 | |
14016 | rm -rf conftest* | |
14017 | ||
14018 | wx_cv_func_vsscanf=no | |
14019 | ||
14020 | fi | |
14021 | rm -f conftest* | |
14022 | ||
14023 | fi | |
14024 | ||
14025 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 | |
14026 | ||
14027 | if test "$wx_cv_func_vsscanf" = yes; then | |
14028 | cat >> confdefs.h <<\EOF | |
14029 | #define HAVE_VSSCANF 1 | |
14030 | EOF | |
14031 | ||
14032 | fi | |
14033 | ||
14034 | if test "$TOOLKIT" != "MSW"; then | |
14035 | ||
14036 | ||
14037 | ||
14038 | ac_ext=C | |
14039 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14040 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14041 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14042 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14043 | cross_compiling=$ac_cv_prog_cxx_cross | |
14044 | ||
14045 | echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6 | |
14046 | echo "configure:14047: checking if iconv() takes char**" >&5 | |
14047 | if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then | |
14048 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14049 | else | |
14050 | ||
14051 | cat > conftest.$ac_ext <<EOF | |
14052 | #line 14053 "configure" | |
14053 | #include "confdefs.h" | |
14054 | #include <iconv.h> | |
14055 | int main() { | |
14056 | ||
14057 | char **inbuf, **outbuf; | |
14058 | iconv_t cd; | |
14059 | size_t insz, outsz; | |
14060 | iconv(cd, inbuf, &insz, outbuf, &outsz); | |
14061 | ||
14062 | ; return 0; } | |
14063 | EOF | |
14064 | if { (eval echo configure:14065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
14065 | rm -rf conftest* | |
14066 | wx_cv_iconv_takes_char=yes | |
14067 | else | |
14068 | echo "configure: failed program was:" >&5 | |
14069 | cat conftest.$ac_ext >&5 | |
14070 | rm -rf conftest* | |
14071 | wx_cv_iconv_takes_char=no | |
14072 | fi | |
14073 | rm -f conftest* | |
14074 | ||
14075 | fi | |
14076 | ||
14077 | echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6 | |
14078 | ac_ext=c | |
14079 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14080 | ac_cpp='$CPP $CPPFLAGS' | |
14081 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14082 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14083 | cross_compiling=$ac_cv_prog_cc_cross | |
14084 | ||
14085 | if test "$wx_cv_iconv_takes_char" = yes ; then | |
14086 | cat >> confdefs.h <<\EOF | |
14087 | #define WX_ICONV_TAKES_CHAR 1 | |
14088 | EOF | |
14089 | ||
14090 | fi | |
14091 | ||
14092 | ||
14093 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then | |
14094 | for ac_func in sigaction | |
14095 | do | |
14096 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
14097 | echo "configure:14098: checking for $ac_func" >&5 | |
14098 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
14099 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14100 | else | |
14101 | cat > conftest.$ac_ext <<EOF | |
14102 | #line 14103 "configure" | |
14103 | #include "confdefs.h" | |
14104 | /* System header to define __stub macros and hopefully few prototypes, | |
14105 | which can conflict with char $ac_func(); below. */ | |
14106 | #include <assert.h> | |
14107 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14108 | /* We use char because int might match the return type of a gcc2 | |
14109 | builtin and then its argument prototype would still apply. */ | |
14110 | char $ac_func(); | |
14111 | ||
14112 | int main() { | |
14113 | ||
14114 | /* The GNU C library defines this for functions which it implements | |
14115 | to always fail with ENOSYS. Some functions are actually named | |
14116 | something starting with __ and the normal name is an alias. */ | |
14117 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14118 | choke me | |
14119 | #else | |
14120 | $ac_func(); | |
14121 | #endif | |
14122 | ||
14123 | ; return 0; } | |
14124 | EOF | |
14125 | if { (eval echo configure:14126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14126 | rm -rf conftest* | |
14127 | eval "ac_cv_func_$ac_func=yes" | |
14128 | else | |
14129 | echo "configure: failed program was:" >&5 | |
14130 | cat conftest.$ac_ext >&5 | |
14131 | rm -rf conftest* | |
14132 | eval "ac_cv_func_$ac_func=no" | |
14133 | fi | |
14134 | rm -f conftest* | |
14135 | fi | |
14136 | ||
14137 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14138 | echo "$ac_t""yes" 1>&6 | |
14139 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14140 | cat >> confdefs.h <<EOF | |
14141 | #define $ac_tr_func 1 | |
14142 | EOF | |
14143 | ||
14144 | else | |
14145 | echo "$ac_t""no" 1>&6 | |
14146 | fi | |
14147 | done | |
14148 | ||
14149 | ||
14150 | if test "$ac_cv_func_sigaction" = "no"; then | |
14151 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 | |
14152 | wxUSE_ON_FATAL_EXCEPTION=no | |
14153 | fi | |
14154 | ||
14155 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
14156 | ||
14157 | ac_ext=C | |
14158 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14159 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14160 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14161 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14162 | cross_compiling=$ac_cv_prog_cxx_cross | |
14163 | ||
14164 | ||
14165 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 | |
14166 | echo "configure:14167: checking for sa_handler type" >&5 | |
14167 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then | |
14168 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14169 | else | |
14170 | ||
14171 | cat > conftest.$ac_ext <<EOF | |
14172 | #line 14173 "configure" | |
14173 | #include "confdefs.h" | |
14174 | #include <signal.h> | |
14175 | int main() { | |
14176 | ||
14177 | extern void testSigHandler(int); | |
14178 | ||
14179 | struct sigaction sa; | |
14180 | sa.sa_handler = testSigHandler; | |
14181 | ||
14182 | ; return 0; } | |
14183 | EOF | |
14184 | if { (eval echo configure:14185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
14185 | rm -rf conftest* | |
14186 | ||
14187 | wx_cv_type_sa_handler=int | |
14188 | ||
14189 | else | |
14190 | echo "configure: failed program was:" >&5 | |
14191 | cat conftest.$ac_ext >&5 | |
14192 | rm -rf conftest* | |
14193 | ||
14194 | wx_cv_type_sa_handler=void | |
14195 | ||
14196 | fi | |
14197 | rm -f conftest* | |
14198 | ||
14199 | fi | |
14200 | ||
14201 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
14202 | ||
14203 | ac_ext=c | |
14204 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14205 | ac_cpp='$CPP $CPPFLAGS' | |
14206 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14207 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14208 | cross_compiling=$ac_cv_prog_cc_cross | |
14209 | ||
14210 | ||
14211 | cat >> confdefs.h <<EOF | |
14212 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
14213 | EOF | |
14214 | ||
14215 | fi | |
14216 | fi | |
14217 | ||
14218 | for ac_func in vfork | |
14219 | do | |
14220 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
14221 | echo "configure:14222: checking for $ac_func" >&5 | |
14222 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
14223 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14224 | else | |
14225 | cat > conftest.$ac_ext <<EOF | |
14226 | #line 14227 "configure" | |
14227 | #include "confdefs.h" | |
14228 | /* System header to define __stub macros and hopefully few prototypes, | |
14229 | which can conflict with char $ac_func(); below. */ | |
14230 | #include <assert.h> | |
14231 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14232 | /* We use char because int might match the return type of a gcc2 | |
14233 | builtin and then its argument prototype would still apply. */ | |
14234 | char $ac_func(); | |
14235 | ||
14236 | int main() { | |
14237 | ||
14238 | /* The GNU C library defines this for functions which it implements | |
14239 | to always fail with ENOSYS. Some functions are actually named | |
14240 | something starting with __ and the normal name is an alias. */ | |
14241 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14242 | choke me | |
14243 | #else | |
14244 | $ac_func(); | |
14245 | #endif | |
14246 | ||
14247 | ; return 0; } | |
14248 | EOF | |
14249 | if { (eval echo configure:14250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14250 | rm -rf conftest* | |
14251 | eval "ac_cv_func_$ac_func=yes" | |
14252 | else | |
14253 | echo "configure: failed program was:" >&5 | |
14254 | cat conftest.$ac_ext >&5 | |
14255 | rm -rf conftest* | |
14256 | eval "ac_cv_func_$ac_func=no" | |
14257 | fi | |
14258 | rm -f conftest* | |
14259 | fi | |
14260 | ||
14261 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14262 | echo "$ac_t""yes" 1>&6 | |
14263 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14264 | cat >> confdefs.h <<EOF | |
14265 | #define $ac_tr_func 1 | |
14266 | EOF | |
14267 | ||
14268 | else | |
14269 | echo "$ac_t""no" 1>&6 | |
14270 | fi | |
14271 | done | |
14272 | ||
14273 | ||
14274 | echo $ac_n "checking for statfs""... $ac_c" 1>&6 | |
14275 | echo "configure:14276: checking for statfs" >&5 | |
14276 | if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then | |
14277 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14278 | else | |
14279 | cat > conftest.$ac_ext <<EOF | |
14280 | #line 14281 "configure" | |
14281 | #include "confdefs.h" | |
14282 | ||
14283 | #if defined(__BSD__) | |
14284 | #include <sys/param.h> | |
14285 | #include <sys/mount.h> | |
14286 | #else | |
14287 | #include <sys/vfs.h> | |
14288 | #endif | |
14289 | ||
14290 | int main() { | |
14291 | ||
14292 | long l; | |
14293 | struct statfs fs; | |
14294 | statfs("/", &fs); | |
14295 | l = fs.f_bsize; | |
14296 | l += fs.f_blocks; | |
14297 | l += fs.f_bavail; | |
14298 | ||
14299 | ; return 0; } | |
14300 | EOF | |
14301 | if { (eval echo configure:14302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
14302 | rm -rf conftest* | |
14303 | ||
14304 | wx_cv_func_statfs=yes | |
14305 | ||
14306 | else | |
14307 | echo "configure: failed program was:" >&5 | |
14308 | cat conftest.$ac_ext >&5 | |
14309 | rm -rf conftest* | |
14310 | ||
14311 | wx_cv_func_statfs=no | |
14312 | ||
14313 | ||
14314 | fi | |
14315 | rm -f conftest* | |
14316 | ||
14317 | fi | |
14318 | ||
14319 | echo "$ac_t""$wx_cv_func_statfs" 1>&6 | |
14320 | ||
14321 | if test "$wx_cv_func_statfs" = "yes"; then | |
14322 | cat >> confdefs.h <<\EOF | |
14323 | #define HAVE_STATFS 1 | |
14324 | EOF | |
14325 | ||
14326 | else | |
14327 | echo $ac_n "checking for statvfs""... $ac_c" 1>&6 | |
14328 | echo "configure:14329: checking for statvfs" >&5 | |
14329 | if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then | |
14330 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14331 | else | |
14332 | cat > conftest.$ac_ext <<EOF | |
14333 | #line 14334 "configure" | |
14334 | #include "confdefs.h" | |
14335 | ||
14336 | #include <sys/statvfs.h> | |
14337 | ||
14338 | int main() { | |
14339 | ||
14340 | long l; | |
14341 | struct statvfs fs; | |
14342 | statvfs("/", &fs); | |
14343 | l = fs.f_bsize; | |
14344 | l += fs.f_blocks; | |
14345 | l += fs.f_bavail; | |
14346 | ||
14347 | ; return 0; } | |
14348 | EOF | |
14349 | if { (eval echo configure:14350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
14350 | rm -rf conftest* | |
14351 | ||
14352 | wx_cv_func_statvfs=yes | |
14353 | ||
14354 | else | |
14355 | echo "configure: failed program was:" >&5 | |
14356 | cat conftest.$ac_ext >&5 | |
14357 | rm -rf conftest* | |
14358 | ||
14359 | wx_cv_func_statvfs=no | |
14360 | ||
14361 | ||
14362 | fi | |
14363 | rm -f conftest* | |
14364 | ||
14365 | fi | |
14366 | ||
14367 | echo "$ac_t""$wx_cv_func_statvfs" 1>&6 | |
14368 | ||
14369 | if test "$wx_cv_func_statvfs" = "yes"; then | |
14370 | cat >> confdefs.h <<\EOF | |
14371 | #define HAVE_STATVFS 1 | |
14372 | EOF | |
14373 | ||
14374 | else | |
14375 | echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2 | |
14376 | fi | |
14377 | fi | |
14378 | ||
14379 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
14380 | for ac_func in fcntl flock | |
14381 | do | |
14382 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
14383 | echo "configure:14384: checking for $ac_func" >&5 | |
14384 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
14385 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14386 | else | |
14387 | cat > conftest.$ac_ext <<EOF | |
14388 | #line 14389 "configure" | |
14389 | #include "confdefs.h" | |
14390 | /* System header to define __stub macros and hopefully few prototypes, | |
14391 | which can conflict with char $ac_func(); below. */ | |
14392 | #include <assert.h> | |
14393 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14394 | /* We use char because int might match the return type of a gcc2 | |
14395 | builtin and then its argument prototype would still apply. */ | |
14396 | char $ac_func(); | |
14397 | ||
14398 | int main() { | |
14399 | ||
14400 | /* The GNU C library defines this for functions which it implements | |
14401 | to always fail with ENOSYS. Some functions are actually named | |
14402 | something starting with __ and the normal name is an alias. */ | |
14403 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14404 | choke me | |
14405 | #else | |
14406 | $ac_func(); | |
14407 | #endif | |
14408 | ||
14409 | ; return 0; } | |
14410 | EOF | |
14411 | if { (eval echo configure:14412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14412 | rm -rf conftest* | |
14413 | eval "ac_cv_func_$ac_func=yes" | |
14414 | else | |
14415 | echo "configure: failed program was:" >&5 | |
14416 | cat conftest.$ac_ext >&5 | |
14417 | rm -rf conftest* | |
14418 | eval "ac_cv_func_$ac_func=no" | |
14419 | fi | |
14420 | rm -f conftest* | |
14421 | fi | |
14422 | ||
14423 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14424 | echo "$ac_t""yes" 1>&6 | |
14425 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14426 | cat >> confdefs.h <<EOF | |
14427 | #define $ac_tr_func 1 | |
14428 | EOF | |
14429 | break | |
14430 | else | |
14431 | echo "$ac_t""no" 1>&6 | |
14432 | fi | |
14433 | done | |
14434 | ||
14435 | ||
14436 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
14437 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 | |
14438 | wxUSE_SNGLINST_CHECKER=no | |
14439 | fi | |
14440 | fi | |
14441 | ||
14442 | for ac_func in timegm | |
14443 | do | |
14444 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
14445 | echo "configure:14446: checking for $ac_func" >&5 | |
14446 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
14447 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14448 | else | |
14449 | cat > conftest.$ac_ext <<EOF | |
14450 | #line 14451 "configure" | |
14451 | #include "confdefs.h" | |
14452 | /* System header to define __stub macros and hopefully few prototypes, | |
14453 | which can conflict with char $ac_func(); below. */ | |
14454 | #include <assert.h> | |
14455 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14456 | /* We use char because int might match the return type of a gcc2 | |
14457 | builtin and then its argument prototype would still apply. */ | |
14458 | char $ac_func(); | |
14459 | ||
14460 | int main() { | |
14461 | ||
14462 | /* The GNU C library defines this for functions which it implements | |
14463 | to always fail with ENOSYS. Some functions are actually named | |
14464 | something starting with __ and the normal name is an alias. */ | |
14465 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14466 | choke me | |
14467 | #else | |
14468 | $ac_func(); | |
14469 | #endif | |
14470 | ||
14471 | ; return 0; } | |
14472 | EOF | |
14473 | if { (eval echo configure:14474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14474 | rm -rf conftest* | |
14475 | eval "ac_cv_func_$ac_func=yes" | |
14476 | else | |
14477 | echo "configure: failed program was:" >&5 | |
14478 | cat conftest.$ac_ext >&5 | |
14479 | rm -rf conftest* | |
14480 | eval "ac_cv_func_$ac_func=no" | |
14481 | fi | |
14482 | rm -f conftest* | |
14483 | fi | |
14484 | ||
14485 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14486 | echo "$ac_t""yes" 1>&6 | |
14487 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14488 | cat >> confdefs.h <<EOF | |
14489 | #define $ac_tr_func 1 | |
14490 | EOF | |
14491 | ||
14492 | else | |
14493 | echo "$ac_t""no" 1>&6 | |
14494 | fi | |
14495 | done | |
14496 | ||
14497 | ||
14498 | for ac_func in putenv setenv | |
14499 | do | |
14500 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
14501 | echo "configure:14502: checking for $ac_func" >&5 | |
14502 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
14503 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14504 | else | |
14505 | cat > conftest.$ac_ext <<EOF | |
14506 | #line 14507 "configure" | |
14507 | #include "confdefs.h" | |
14508 | /* System header to define __stub macros and hopefully few prototypes, | |
14509 | which can conflict with char $ac_func(); below. */ | |
14510 | #include <assert.h> | |
14511 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14512 | /* We use char because int might match the return type of a gcc2 | |
14513 | builtin and then its argument prototype would still apply. */ | |
14514 | char $ac_func(); | |
14515 | ||
14516 | int main() { | |
14517 | ||
14518 | /* The GNU C library defines this for functions which it implements | |
14519 | to always fail with ENOSYS. Some functions are actually named | |
14520 | something starting with __ and the normal name is an alias. */ | |
14521 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14522 | choke me | |
14523 | #else | |
14524 | $ac_func(); | |
14525 | #endif | |
14526 | ||
14527 | ; return 0; } | |
14528 | EOF | |
14529 | if { (eval echo configure:14530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14530 | rm -rf conftest* | |
14531 | eval "ac_cv_func_$ac_func=yes" | |
14532 | else | |
14533 | echo "configure: failed program was:" >&5 | |
14534 | cat conftest.$ac_ext >&5 | |
14535 | rm -rf conftest* | |
14536 | eval "ac_cv_func_$ac_func=no" | |
14537 | fi | |
14538 | rm -f conftest* | |
14539 | fi | |
14540 | ||
14541 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14542 | echo "$ac_t""yes" 1>&6 | |
14543 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14544 | cat >> confdefs.h <<EOF | |
14545 | #define $ac_tr_func 1 | |
14546 | EOF | |
14547 | break | |
14548 | else | |
14549 | echo "$ac_t""no" 1>&6 | |
14550 | fi | |
14551 | done | |
14552 | ||
14553 | ||
14554 | HAVE_SOME_SLEEP_FUNC=0 | |
14555 | if test "$USE_BEOS" = 1; then | |
14556 | cat >> confdefs.h <<\EOF | |
14557 | #define HAVE_SLEEP 1 | |
14558 | EOF | |
14559 | ||
14560 | HAVE_SOME_SLEEP_FUNC=1 | |
14561 | fi | |
14562 | ||
14563 | if test "$USE_DARWIN" = 1; then | |
14564 | cat >> confdefs.h <<\EOF | |
14565 | #define HAVE_USLEEP 1 | |
14566 | EOF | |
14567 | ||
14568 | HAVE_SOME_SLEEP_FUNC=1 | |
14569 | fi | |
14570 | ||
14571 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
14572 | POSIX4_LINK= | |
14573 | for ac_func in nanosleep | |
14574 | do | |
14575 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
14576 | echo "configure:14577: checking for $ac_func" >&5 | |
14577 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
14578 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14579 | else | |
14580 | cat > conftest.$ac_ext <<EOF | |
14581 | #line 14582 "configure" | |
14582 | #include "confdefs.h" | |
14583 | /* System header to define __stub macros and hopefully few prototypes, | |
14584 | which can conflict with char $ac_func(); below. */ | |
14585 | #include <assert.h> | |
14586 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14587 | /* We use char because int might match the return type of a gcc2 | |
14588 | builtin and then its argument prototype would still apply. */ | |
14589 | char $ac_func(); | |
14590 | ||
14591 | int main() { | |
14592 | ||
14593 | /* The GNU C library defines this for functions which it implements | |
14594 | to always fail with ENOSYS. Some functions are actually named | |
14595 | something starting with __ and the normal name is an alias. */ | |
14596 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14597 | choke me | |
14598 | #else | |
14599 | $ac_func(); | |
14600 | #endif | |
14601 | ||
14602 | ; return 0; } | |
14603 | EOF | |
14604 | if { (eval echo configure:14605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14605 | rm -rf conftest* | |
14606 | eval "ac_cv_func_$ac_func=yes" | |
14607 | else | |
14608 | echo "configure: failed program was:" >&5 | |
14609 | cat conftest.$ac_ext >&5 | |
14610 | rm -rf conftest* | |
14611 | eval "ac_cv_func_$ac_func=no" | |
14612 | fi | |
14613 | rm -f conftest* | |
14614 | fi | |
14615 | ||
14616 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14617 | echo "$ac_t""yes" 1>&6 | |
14618 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14619 | cat >> confdefs.h <<EOF | |
14620 | #define $ac_tr_func 1 | |
14621 | EOF | |
14622 | cat >> confdefs.h <<\EOF | |
14623 | #define HAVE_NANOSLEEP 1 | |
14624 | EOF | |
14625 | ||
14626 | else | |
14627 | echo "$ac_t""no" 1>&6 | |
14628 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
14629 | echo "configure:14630: checking for nanosleep in -lposix4" >&5 | |
14630 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` | |
14631 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14632 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14633 | else | |
14634 | ac_save_LIBS="$LIBS" | |
14635 | LIBS="-lposix4 $LIBS" | |
14636 | cat > conftest.$ac_ext <<EOF | |
14637 | #line 14638 "configure" | |
14638 | #include "confdefs.h" | |
14639 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14640 | /* We use char because int might match the return type of a gcc2 | |
14641 | builtin and then its argument prototype would still apply. */ | |
14642 | char nanosleep(); | |
14643 | ||
14644 | int main() { | |
14645 | nanosleep() | |
14646 | ; return 0; } | |
14647 | EOF | |
14648 | if { (eval echo configure:14649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14649 | rm -rf conftest* | |
14650 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14651 | else | |
14652 | echo "configure: failed program was:" >&5 | |
14653 | cat conftest.$ac_ext >&5 | |
14654 | rm -rf conftest* | |
14655 | eval "ac_cv_lib_$ac_lib_var=no" | |
14656 | fi | |
14657 | rm -f conftest* | |
14658 | LIBS="$ac_save_LIBS" | |
14659 | ||
14660 | fi | |
14661 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14662 | echo "$ac_t""yes" 1>&6 | |
14663 | ||
14664 | cat >> confdefs.h <<\EOF | |
14665 | #define HAVE_NANOSLEEP 1 | |
14666 | EOF | |
14667 | ||
14668 | POSIX4_LINK=" -lposix4" | |
14669 | ||
14670 | else | |
14671 | echo "$ac_t""no" 1>&6 | |
14672 | ||
14673 | for ac_func in usleep | |
14674 | do | |
14675 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
14676 | echo "configure:14677: checking for $ac_func" >&5 | |
14677 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
14678 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14679 | else | |
14680 | cat > conftest.$ac_ext <<EOF | |
14681 | #line 14682 "configure" | |
14682 | #include "confdefs.h" | |
14683 | /* System header to define __stub macros and hopefully few prototypes, | |
14684 | which can conflict with char $ac_func(); below. */ | |
14685 | #include <assert.h> | |
14686 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14687 | /* We use char because int might match the return type of a gcc2 | |
14688 | builtin and then its argument prototype would still apply. */ | |
14689 | char $ac_func(); | |
14690 | ||
14691 | int main() { | |
14692 | ||
14693 | /* The GNU C library defines this for functions which it implements | |
14694 | to always fail with ENOSYS. Some functions are actually named | |
14695 | something starting with __ and the normal name is an alias. */ | |
14696 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14697 | choke me | |
14698 | #else | |
14699 | $ac_func(); | |
14700 | #endif | |
14701 | ||
14702 | ; return 0; } | |
14703 | EOF | |
14704 | if { (eval echo configure:14705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14705 | rm -rf conftest* | |
14706 | eval "ac_cv_func_$ac_func=yes" | |
14707 | else | |
14708 | echo "configure: failed program was:" >&5 | |
14709 | cat conftest.$ac_ext >&5 | |
14710 | rm -rf conftest* | |
14711 | eval "ac_cv_func_$ac_func=no" | |
14712 | fi | |
14713 | rm -f conftest* | |
14714 | fi | |
14715 | ||
14716 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14717 | echo "$ac_t""yes" 1>&6 | |
14718 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14719 | cat >> confdefs.h <<EOF | |
14720 | #define $ac_tr_func 1 | |
14721 | EOF | |
14722 | cat >> confdefs.h <<\EOF | |
14723 | #define HAVE_USLEEP 1 | |
14724 | EOF | |
14725 | ||
14726 | else | |
14727 | echo "$ac_t""no" 1>&6 | |
14728 | echo "configure: warning: wxSleep() function will not work" 1>&2 | |
14729 | ||
14730 | fi | |
14731 | done | |
14732 | ||
14733 | ||
14734 | ||
14735 | fi | |
14736 | ||
14737 | ||
14738 | ||
14739 | fi | |
14740 | done | |
14741 | ||
14742 | fi | |
14743 | ||
14744 | for ac_func in uname gethostname | |
14745 | do | |
14746 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
14747 | echo "configure:14748: checking for $ac_func" >&5 | |
14748 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
14749 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14750 | else | |
14751 | cat > conftest.$ac_ext <<EOF | |
14752 | #line 14753 "configure" | |
14753 | #include "confdefs.h" | |
14754 | /* System header to define __stub macros and hopefully few prototypes, | |
14755 | which can conflict with char $ac_func(); below. */ | |
14756 | #include <assert.h> | |
14757 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14758 | /* We use char because int might match the return type of a gcc2 | |
14759 | builtin and then its argument prototype would still apply. */ | |
14760 | char $ac_func(); | |
14761 | ||
14762 | int main() { | |
14763 | ||
14764 | /* The GNU C library defines this for functions which it implements | |
14765 | to always fail with ENOSYS. Some functions are actually named | |
14766 | something starting with __ and the normal name is an alias. */ | |
14767 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14768 | choke me | |
14769 | #else | |
14770 | $ac_func(); | |
14771 | #endif | |
14772 | ||
14773 | ; return 0; } | |
14774 | EOF | |
14775 | if { (eval echo configure:14776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14776 | rm -rf conftest* | |
14777 | eval "ac_cv_func_$ac_func=yes" | |
14778 | else | |
14779 | echo "configure: failed program was:" >&5 | |
14780 | cat conftest.$ac_ext >&5 | |
14781 | rm -rf conftest* | |
14782 | eval "ac_cv_func_$ac_func=no" | |
14783 | fi | |
14784 | rm -f conftest* | |
14785 | fi | |
14786 | ||
14787 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14788 | echo "$ac_t""yes" 1>&6 | |
14789 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14790 | cat >> confdefs.h <<EOF | |
14791 | #define $ac_tr_func 1 | |
14792 | EOF | |
14793 | break | |
14794 | else | |
14795 | echo "$ac_t""no" 1>&6 | |
14796 | fi | |
14797 | done | |
14798 | ||
14799 | ||
14800 | ||
14801 | ac_ext=C | |
14802 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14803 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14804 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14805 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14806 | cross_compiling=$ac_cv_prog_cxx_cross | |
14807 | ||
14808 | ||
14809 | for ac_func in strtok_r | |
14810 | do | |
14811 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
14812 | echo "configure:14813: checking for $ac_func" >&5 | |
14813 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
14814 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14815 | else | |
14816 | cat > conftest.$ac_ext <<EOF | |
14817 | #line 14818 "configure" | |
14818 | #include "confdefs.h" | |
14819 | /* System header to define __stub macros and hopefully few prototypes, | |
14820 | which can conflict with char $ac_func(); below. */ | |
14821 | #include <assert.h> | |
14822 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14823 | #ifdef __cplusplus | |
14824 | extern "C" | |
14825 | #endif | |
14826 | /* We use char because int might match the return type of a gcc2 | |
14827 | builtin and then its argument prototype would still apply. */ | |
14828 | char $ac_func(); | |
14829 | ||
14830 | int main() { | |
14831 | ||
14832 | /* The GNU C library defines this for functions which it implements | |
14833 | to always fail with ENOSYS. Some functions are actually named | |
14834 | something starting with __ and the normal name is an alias. */ | |
14835 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14836 | choke me | |
14837 | #else | |
14838 | $ac_func(); | |
14839 | #endif | |
14840 | ||
14841 | ; return 0; } | |
14842 | EOF | |
14843 | if { (eval echo configure:14844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14844 | rm -rf conftest* | |
14845 | eval "ac_cv_func_$ac_func=yes" | |
14846 | else | |
14847 | echo "configure: failed program was:" >&5 | |
14848 | cat conftest.$ac_ext >&5 | |
14849 | rm -rf conftest* | |
14850 | eval "ac_cv_func_$ac_func=no" | |
14851 | fi | |
14852 | rm -f conftest* | |
14853 | fi | |
14854 | ||
14855 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14856 | echo "$ac_t""yes" 1>&6 | |
14857 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14858 | cat >> confdefs.h <<EOF | |
14859 | #define $ac_tr_func 1 | |
14860 | EOF | |
14861 | ||
14862 | else | |
14863 | echo "$ac_t""no" 1>&6 | |
14864 | fi | |
14865 | done | |
14866 | ||
14867 | ||
14868 | ac_ext=c | |
14869 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14870 | ac_cpp='$CPP $CPPFLAGS' | |
14871 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14872 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14873 | cross_compiling=$ac_cv_prog_cc_cross | |
14874 | ||
14875 | ||
14876 | INET_LINK= | |
14877 | for ac_func in inet_addr | |
14878 | do | |
14879 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
14880 | echo "configure:14881: checking for $ac_func" >&5 | |
14881 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
14882 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14883 | else | |
14884 | cat > conftest.$ac_ext <<EOF | |
14885 | #line 14886 "configure" | |
14886 | #include "confdefs.h" | |
14887 | /* System header to define __stub macros and hopefully few prototypes, | |
14888 | which can conflict with char $ac_func(); below. */ | |
14889 | #include <assert.h> | |
14890 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14891 | /* We use char because int might match the return type of a gcc2 | |
14892 | builtin and then its argument prototype would still apply. */ | |
14893 | char $ac_func(); | |
14894 | ||
14895 | int main() { | |
14896 | ||
14897 | /* The GNU C library defines this for functions which it implements | |
14898 | to always fail with ENOSYS. Some functions are actually named | |
14899 | something starting with __ and the normal name is an alias. */ | |
14900 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14901 | choke me | |
14902 | #else | |
14903 | $ac_func(); | |
14904 | #endif | |
14905 | ||
14906 | ; return 0; } | |
14907 | EOF | |
14908 | if { (eval echo configure:14909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14909 | rm -rf conftest* | |
14910 | eval "ac_cv_func_$ac_func=yes" | |
14911 | else | |
14912 | echo "configure: failed program was:" >&5 | |
14913 | cat conftest.$ac_ext >&5 | |
14914 | rm -rf conftest* | |
14915 | eval "ac_cv_func_$ac_func=no" | |
14916 | fi | |
14917 | rm -f conftest* | |
14918 | fi | |
14919 | ||
14920 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14921 | echo "$ac_t""yes" 1>&6 | |
14922 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14923 | cat >> confdefs.h <<EOF | |
14924 | #define $ac_tr_func 1 | |
14925 | EOF | |
14926 | cat >> confdefs.h <<\EOF | |
14927 | #define HAVE_INET_ADDR 1 | |
14928 | EOF | |
14929 | ||
14930 | else | |
14931 | echo "$ac_t""no" 1>&6 | |
14932 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 | |
14933 | echo "configure:14934: checking for inet_addr in -lnsl" >&5 | |
14934 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` | |
14935 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14936 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14937 | else | |
14938 | ac_save_LIBS="$LIBS" | |
14939 | LIBS="-lnsl $LIBS" | |
14940 | cat > conftest.$ac_ext <<EOF | |
14941 | #line 14942 "configure" | |
14942 | #include "confdefs.h" | |
14943 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14944 | /* We use char because int might match the return type of a gcc2 | |
14945 | builtin and then its argument prototype would still apply. */ | |
14946 | char inet_addr(); | |
14947 | ||
14948 | int main() { | |
14949 | inet_addr() | |
14950 | ; return 0; } | |
14951 | EOF | |
14952 | if { (eval echo configure:14953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14953 | rm -rf conftest* | |
14954 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14955 | else | |
14956 | echo "configure: failed program was:" >&5 | |
14957 | cat conftest.$ac_ext >&5 | |
14958 | rm -rf conftest* | |
14959 | eval "ac_cv_lib_$ac_lib_var=no" | |
14960 | fi | |
14961 | rm -f conftest* | |
14962 | LIBS="$ac_save_LIBS" | |
14963 | ||
14964 | fi | |
14965 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14966 | echo "$ac_t""yes" 1>&6 | |
14967 | INET_LINK="nsl" | |
14968 | else | |
14969 | echo "$ac_t""no" 1>&6 | |
14970 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 | |
14971 | echo "configure:14972: checking for inet_addr in -lresolv" >&5 | |
14972 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` | |
14973 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14974 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14975 | else | |
14976 | ac_save_LIBS="$LIBS" | |
14977 | LIBS="-lresolv $LIBS" | |
14978 | cat > conftest.$ac_ext <<EOF | |
14979 | #line 14980 "configure" | |
14980 | #include "confdefs.h" | |
14981 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14982 | /* We use char because int might match the return type of a gcc2 | |
14983 | builtin and then its argument prototype would still apply. */ | |
14984 | char inet_addr(); | |
14985 | ||
14986 | int main() { | |
14987 | inet_addr() | |
14988 | ; return 0; } | |
14989 | EOF | |
14990 | if { (eval echo configure:14991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
14991 | rm -rf conftest* | |
14992 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14993 | else | |
14994 | echo "configure: failed program was:" >&5 | |
14995 | cat conftest.$ac_ext >&5 | |
14996 | rm -rf conftest* | |
14997 | eval "ac_cv_lib_$ac_lib_var=no" | |
14998 | fi | |
14999 | rm -f conftest* | |
15000 | LIBS="$ac_save_LIBS" | |
15001 | ||
15002 | fi | |
15003 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15004 | echo "$ac_t""yes" 1>&6 | |
15005 | INET_LINK="resolv" | |
15006 | ||
15007 | else | |
15008 | echo "$ac_t""no" 1>&6 | |
15009 | fi | |
15010 | ||
15011 | ||
15012 | fi | |
15013 | ||
15014 | ||
15015 | ||
15016 | fi | |
15017 | done | |
15018 | ||
15019 | ||
15020 | for ac_func in inet_aton | |
15021 | do | |
15022 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
15023 | echo "configure:15024: checking for $ac_func" >&5 | |
15024 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
15025 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15026 | else | |
15027 | cat > conftest.$ac_ext <<EOF | |
15028 | #line 15029 "configure" | |
15029 | #include "confdefs.h" | |
15030 | /* System header to define __stub macros and hopefully few prototypes, | |
15031 | which can conflict with char $ac_func(); below. */ | |
15032 | #include <assert.h> | |
15033 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15034 | /* We use char because int might match the return type of a gcc2 | |
15035 | builtin and then its argument prototype would still apply. */ | |
15036 | char $ac_func(); | |
15037 | ||
15038 | int main() { | |
15039 | ||
15040 | /* The GNU C library defines this for functions which it implements | |
15041 | to always fail with ENOSYS. Some functions are actually named | |
15042 | something starting with __ and the normal name is an alias. */ | |
15043 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15044 | choke me | |
15045 | #else | |
15046 | $ac_func(); | |
15047 | #endif | |
15048 | ||
15049 | ; return 0; } | |
15050 | EOF | |
15051 | if { (eval echo configure:15052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15052 | rm -rf conftest* | |
15053 | eval "ac_cv_func_$ac_func=yes" | |
15054 | else | |
15055 | echo "configure: failed program was:" >&5 | |
15056 | cat conftest.$ac_ext >&5 | |
15057 | rm -rf conftest* | |
15058 | eval "ac_cv_func_$ac_func=no" | |
15059 | fi | |
15060 | rm -f conftest* | |
15061 | fi | |
15062 | ||
15063 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15064 | echo "$ac_t""yes" 1>&6 | |
15065 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15066 | cat >> confdefs.h <<EOF | |
15067 | #define $ac_tr_func 1 | |
15068 | EOF | |
15069 | cat >> confdefs.h <<\EOF | |
15070 | #define HAVE_INET_ATON 1 | |
15071 | EOF | |
15072 | ||
15073 | else | |
15074 | echo "$ac_t""no" 1>&6 | |
15075 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 | |
15076 | echo "configure:15077: checking for inet_aton in -l$INET_LINK" >&5 | |
15077 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` | |
15078 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15079 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15080 | else | |
15081 | ac_save_LIBS="$LIBS" | |
15082 | LIBS="-l$INET_LINK $LIBS" | |
15083 | cat > conftest.$ac_ext <<EOF | |
15084 | #line 15085 "configure" | |
15085 | #include "confdefs.h" | |
15086 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15087 | /* We use char because int might match the return type of a gcc2 | |
15088 | builtin and then its argument prototype would still apply. */ | |
15089 | char inet_aton(); | |
15090 | ||
15091 | int main() { | |
15092 | inet_aton() | |
15093 | ; return 0; } | |
15094 | EOF | |
15095 | if { (eval echo configure:15096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15096 | rm -rf conftest* | |
15097 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15098 | else | |
15099 | echo "configure: failed program was:" >&5 | |
15100 | cat conftest.$ac_ext >&5 | |
15101 | rm -rf conftest* | |
15102 | eval "ac_cv_lib_$ac_lib_var=no" | |
15103 | fi | |
15104 | rm -f conftest* | |
15105 | LIBS="$ac_save_LIBS" | |
15106 | ||
15107 | fi | |
15108 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15109 | echo "$ac_t""yes" 1>&6 | |
15110 | cat >> confdefs.h <<\EOF | |
15111 | #define HAVE_INET_ATON 1 | |
15112 | EOF | |
15113 | ||
15114 | else | |
15115 | echo "$ac_t""no" 1>&6 | |
15116 | fi | |
15117 | ||
15118 | ||
15119 | fi | |
15120 | done | |
15121 | ||
15122 | ||
15123 | if test "x$INET_LINK" != "x"; then | |
15124 | cat >> confdefs.h <<\EOF | |
15125 | #define HAVE_INET_ADDR 1 | |
15126 | EOF | |
15127 | ||
15128 | INET_LINK=" -l$INET_LINK" | |
15129 | fi | |
15130 | ||
15131 | fi | |
15132 | ||
15133 | ||
15134 | cat > confcache <<\EOF | |
15135 | # This file is a shell script that caches the results of configure | |
15136 | # tests run on this system so they can be shared between configure | |
15137 | # scripts and configure runs. It is not useful on other systems. | |
15138 | # If it contains results you don't want to keep, you may remove or edit it. | |
15139 | # | |
15140 | # By default, configure uses ./config.cache as the cache file, | |
15141 | # creating it if it does not exist already. You can give configure | |
15142 | # the --cache-file=FILE option to use a different cache file; that is | |
15143 | # what configure does when it calls configure scripts in | |
15144 | # subdirectories, so they share the cache. | |
15145 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
15146 | # config.status only pays attention to the cache file if you give it the | |
15147 | # --recheck option to rerun configure. | |
15148 | # | |
15149 | EOF | |
15150 | # The following way of writing the cache mishandles newlines in values, | |
15151 | # but we know of no workaround that is simple, portable, and efficient. | |
15152 | # So, don't put newlines in cache variables' values. | |
15153 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
15154 | # and sets the high bit in the cache file unless we assign to the vars. | |
15155 | (set) 2>&1 | | |
15156 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
15157 | *ac_space=\ *) | |
15158 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
15159 | # turns \\\\ into \\, and sed turns \\ into \). | |
15160 | sed -n \ | |
15161 | -e "s/'/'\\\\''/g" \ | |
15162 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
15163 | ;; | |
15164 | *) | |
15165 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
15166 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
15167 | ;; | |
15168 | esac >> confcache | |
15169 | if cmp -s $cache_file confcache; then | |
15170 | : | |
15171 | else | |
15172 | if test -w $cache_file; then | |
15173 | echo "updating cache $cache_file" | |
15174 | cat confcache > $cache_file | |
15175 | else | |
15176 | echo "not updating unwritable cache $cache_file" | |
15177 | fi | |
15178 | fi | |
15179 | rm -f confcache | |
15180 | ||
15181 | ||
15182 | ||
15183 | if test "$TOOLKIT" != "MSW"; then | |
15184 | ||
15185 | ||
15186 | THREADS_LINK= | |
15187 | THREADS_OBJ= | |
15188 | CODE_GEN_FLAGS= | |
15189 | CODE_GEN_FLAGS_CXX= | |
15190 | ||
15191 | if test "$wxUSE_THREADS" = "yes" ; then | |
15192 | if test "$wxUSE_WINE" = 1 ; then | |
15193 | echo "configure: warning: Threads are not supported under WINE" 1>&2 | |
15194 | wxUSE_THREADS="no" | |
15195 | elif test "$USE_BEOS" = 1; then | |
15196 | echo "configure: warning: BeOS threads are not yet supported" 1>&2 | |
15197 | wxUSE_THREADS="no" | |
15198 | fi | |
15199 | fi | |
15200 | ||
15201 | if test "$wxUSE_THREADS" = "yes" ; then | |
15202 | ||
15203 | if test "$USE_AIX" = 1; then | |
15204 | THREADS_LIB=pthreads | |
15205 | else | |
15206 | THREADS_LIB=pthread | |
15207 | fi | |
15208 | ||
15209 | echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6 | |
15210 | echo "configure:15211: checking for pthread_create in -l$THREADS_LIB" >&5 | |
15211 | ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'` | |
15212 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15213 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15214 | else | |
15215 | ac_save_LIBS="$LIBS" | |
15216 | LIBS="-l$THREADS_LIB $LIBS" | |
15217 | cat > conftest.$ac_ext <<EOF | |
15218 | #line 15219 "configure" | |
15219 | #include "confdefs.h" | |
15220 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15221 | /* We use char because int might match the return type of a gcc2 | |
15222 | builtin and then its argument prototype would still apply. */ | |
15223 | char pthread_create(); | |
15224 | ||
15225 | int main() { | |
15226 | pthread_create() | |
15227 | ; return 0; } | |
15228 | EOF | |
15229 | if { (eval echo configure:15230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15230 | rm -rf conftest* | |
15231 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15232 | else | |
15233 | echo "configure: failed program was:" >&5 | |
15234 | cat conftest.$ac_ext >&5 | |
15235 | rm -rf conftest* | |
15236 | eval "ac_cv_lib_$ac_lib_var=no" | |
15237 | fi | |
15238 | rm -f conftest* | |
15239 | LIBS="$ac_save_LIBS" | |
15240 | ||
15241 | fi | |
15242 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15243 | echo "$ac_t""yes" 1>&6 | |
15244 | ||
15245 | THREADS_OBJ="threadpsx.lo" | |
15246 | THREADS_LINK=$THREADS_LIB | |
15247 | ||
15248 | else | |
15249 | echo "$ac_t""no" 1>&6 | |
15250 | ||
15251 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 | |
15252 | echo "configure:15253: checking for pthread_create in -lc_r" >&5 | |
15253 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` | |
15254 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15255 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15256 | else | |
15257 | ac_save_LIBS="$LIBS" | |
15258 | LIBS="-lc_r $LIBS" | |
15259 | cat > conftest.$ac_ext <<EOF | |
15260 | #line 15261 "configure" | |
15261 | #include "confdefs.h" | |
15262 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15263 | /* We use char because int might match the return type of a gcc2 | |
15264 | builtin and then its argument prototype would still apply. */ | |
15265 | char pthread_create(); | |
15266 | ||
15267 | int main() { | |
15268 | pthread_create() | |
15269 | ; return 0; } | |
15270 | EOF | |
15271 | if { (eval echo configure:15272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15272 | rm -rf conftest* | |
15273 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15274 | else | |
15275 | echo "configure: failed program was:" >&5 | |
15276 | cat conftest.$ac_ext >&5 | |
15277 | rm -rf conftest* | |
15278 | eval "ac_cv_lib_$ac_lib_var=no" | |
15279 | fi | |
15280 | rm -f conftest* | |
15281 | LIBS="$ac_save_LIBS" | |
15282 | ||
15283 | fi | |
15284 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15285 | echo "$ac_t""yes" 1>&6 | |
15286 | ||
15287 | THREADS_OBJ="threadpsx.lo" | |
15288 | THREADS_LINK="c_r" | |
15289 | ||
15290 | else | |
15291 | echo "$ac_t""no" 1>&6 | |
15292 | ||
15293 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` | |
15294 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 | |
15295 | echo "configure:15296: checking for sys/prctl.h" >&5 | |
15296 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
15297 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15298 | else | |
15299 | cat > conftest.$ac_ext <<EOF | |
15300 | #line 15301 "configure" | |
15301 | #include "confdefs.h" | |
15302 | #include <sys/prctl.h> | |
15303 | EOF | |
15304 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
15305 | { (eval echo configure:15306: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
15306 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
15307 | if test -z "$ac_err"; then | |
15308 | rm -rf conftest* | |
15309 | eval "ac_cv_header_$ac_safe=yes" | |
15310 | else | |
15311 | echo "$ac_err" >&5 | |
15312 | echo "configure: failed program was:" >&5 | |
15313 | cat conftest.$ac_ext >&5 | |
15314 | rm -rf conftest* | |
15315 | eval "ac_cv_header_$ac_safe=no" | |
15316 | fi | |
15317 | rm -f conftest* | |
15318 | fi | |
15319 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
15320 | echo "$ac_t""yes" 1>&6 | |
15321 | ||
15322 | THREADS_OBJ="threadsgi.lo" | |
15323 | ||
15324 | else | |
15325 | echo "$ac_t""no" 1>&6 | |
15326 | fi | |
15327 | ||
15328 | ||
15329 | fi | |
15330 | ||
15331 | ||
15332 | fi | |
15333 | ||
15334 | ||
15335 | if test -z "$THREADS_OBJ" ; then | |
15336 | wxUSE_THREADS=no | |
15337 | echo "configure: warning: No thread support on this system" 1>&2 | |
15338 | fi | |
15339 | fi | |
15340 | ||
15341 | if test "$wxUSE_THREADS" = "yes" ; then | |
15342 | for ac_func in thr_setconcurrency | |
15343 | do | |
15344 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
15345 | echo "configure:15346: checking for $ac_func" >&5 | |
15346 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
15347 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15348 | else | |
15349 | cat > conftest.$ac_ext <<EOF | |
15350 | #line 15351 "configure" | |
15351 | #include "confdefs.h" | |
15352 | /* System header to define __stub macros and hopefully few prototypes, | |
15353 | which can conflict with char $ac_func(); below. */ | |
15354 | #include <assert.h> | |
15355 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15356 | /* We use char because int might match the return type of a gcc2 | |
15357 | builtin and then its argument prototype would still apply. */ | |
15358 | char $ac_func(); | |
15359 | ||
15360 | int main() { | |
15361 | ||
15362 | /* The GNU C library defines this for functions which it implements | |
15363 | to always fail with ENOSYS. Some functions are actually named | |
15364 | something starting with __ and the normal name is an alias. */ | |
15365 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15366 | choke me | |
15367 | #else | |
15368 | $ac_func(); | |
15369 | #endif | |
15370 | ||
15371 | ; return 0; } | |
15372 | EOF | |
15373 | if { (eval echo configure:15374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15374 | rm -rf conftest* | |
15375 | eval "ac_cv_func_$ac_func=yes" | |
15376 | else | |
15377 | echo "configure: failed program was:" >&5 | |
15378 | cat conftest.$ac_ext >&5 | |
15379 | rm -rf conftest* | |
15380 | eval "ac_cv_func_$ac_func=no" | |
15381 | fi | |
15382 | rm -f conftest* | |
15383 | fi | |
15384 | ||
15385 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15386 | echo "$ac_t""yes" 1>&6 | |
15387 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15388 | cat >> confdefs.h <<EOF | |
15389 | #define $ac_tr_func 1 | |
15390 | EOF | |
15391 | ||
15392 | else | |
15393 | echo "$ac_t""no" 1>&6 | |
15394 | fi | |
15395 | done | |
15396 | ||
15397 | ||
15398 | ||
15399 | for ac_hdr in sched.h | |
15400 | do | |
15401 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
15402 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
15403 | echo "configure:15404: checking for $ac_hdr" >&5 | |
15404 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
15405 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15406 | else | |
15407 | cat > conftest.$ac_ext <<EOF | |
15408 | #line 15409 "configure" | |
15409 | #include "confdefs.h" | |
15410 | #include <$ac_hdr> | |
15411 | EOF | |
15412 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
15413 | { (eval echo configure:15414: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
15414 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
15415 | if test -z "$ac_err"; then | |
15416 | rm -rf conftest* | |
15417 | eval "ac_cv_header_$ac_safe=yes" | |
15418 | else | |
15419 | echo "$ac_err" >&5 | |
15420 | echo "configure: failed program was:" >&5 | |
15421 | cat conftest.$ac_ext >&5 | |
15422 | rm -rf conftest* | |
15423 | eval "ac_cv_header_$ac_safe=no" | |
15424 | fi | |
15425 | rm -f conftest* | |
15426 | fi | |
15427 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
15428 | echo "$ac_t""yes" 1>&6 | |
15429 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
15430 | cat >> confdefs.h <<EOF | |
15431 | #define $ac_tr_hdr 1 | |
15432 | EOF | |
15433 | ||
15434 | else | |
15435 | echo "$ac_t""no" 1>&6 | |
15436 | fi | |
15437 | done | |
15438 | ||
15439 | ||
15440 | echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6 | |
15441 | echo "configure:15442: checking for sched_yield in -l$THREADS_LINK" >&5 | |
15442 | ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'` | |
15443 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15444 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15445 | else | |
15446 | ac_save_LIBS="$LIBS" | |
15447 | LIBS="-l$THREADS_LINK $LIBS" | |
15448 | cat > conftest.$ac_ext <<EOF | |
15449 | #line 15450 "configure" | |
15450 | #include "confdefs.h" | |
15451 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15452 | /* We use char because int might match the return type of a gcc2 | |
15453 | builtin and then its argument prototype would still apply. */ | |
15454 | char sched_yield(); | |
15455 | ||
15456 | int main() { | |
15457 | sched_yield() | |
15458 | ; return 0; } | |
15459 | EOF | |
15460 | if { (eval echo configure:15461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15461 | rm -rf conftest* | |
15462 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15463 | else | |
15464 | echo "configure: failed program was:" >&5 | |
15465 | cat conftest.$ac_ext >&5 | |
15466 | rm -rf conftest* | |
15467 | eval "ac_cv_lib_$ac_lib_var=no" | |
15468 | fi | |
15469 | rm -f conftest* | |
15470 | LIBS="$ac_save_LIBS" | |
15471 | ||
15472 | fi | |
15473 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15474 | echo "$ac_t""yes" 1>&6 | |
15475 | cat >> confdefs.h <<\EOF | |
15476 | #define HAVE_SCHED_YIELD 1 | |
15477 | EOF | |
15478 | ||
15479 | else | |
15480 | echo "$ac_t""no" 1>&6 | |
15481 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 | |
15482 | echo "configure:15483: checking for sched_yield in -lposix4" >&5 | |
15483 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` | |
15484 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15485 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15486 | else | |
15487 | ac_save_LIBS="$LIBS" | |
15488 | LIBS="-lposix4 $LIBS" | |
15489 | cat > conftest.$ac_ext <<EOF | |
15490 | #line 15491 "configure" | |
15491 | #include "confdefs.h" | |
15492 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15493 | /* We use char because int might match the return type of a gcc2 | |
15494 | builtin and then its argument prototype would still apply. */ | |
15495 | char sched_yield(); | |
15496 | ||
15497 | int main() { | |
15498 | sched_yield() | |
15499 | ; return 0; } | |
15500 | EOF | |
15501 | if { (eval echo configure:15502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15502 | rm -rf conftest* | |
15503 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15504 | else | |
15505 | echo "configure: failed program was:" >&5 | |
15506 | cat conftest.$ac_ext >&5 | |
15507 | rm -rf conftest* | |
15508 | eval "ac_cv_lib_$ac_lib_var=no" | |
15509 | fi | |
15510 | rm -f conftest* | |
15511 | LIBS="$ac_save_LIBS" | |
15512 | ||
15513 | fi | |
15514 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15515 | echo "$ac_t""yes" 1>&6 | |
15516 | cat >> confdefs.h <<\EOF | |
15517 | #define HAVE_SCHED_YIELD 1 | |
15518 | EOF | |
15519 | POSIX4_LINK=" -lposix4" | |
15520 | else | |
15521 | echo "$ac_t""no" 1>&6 | |
15522 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
15523 | ||
15524 | fi | |
15525 | ||
15526 | ||
15527 | fi | |
15528 | ||
15529 | ||
15530 | HAVE_PRIOR_FUNCS=0 | |
15531 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6 | |
15532 | echo "configure:15533: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5 | |
15533 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` | |
15534 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15535 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15536 | else | |
15537 | ac_save_LIBS="$LIBS" | |
15538 | LIBS="-l$THREADS_LINK $LIBS" | |
15539 | cat > conftest.$ac_ext <<EOF | |
15540 | #line 15541 "configure" | |
15541 | #include "confdefs.h" | |
15542 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15543 | /* We use char because int might match the return type of a gcc2 | |
15544 | builtin and then its argument prototype would still apply. */ | |
15545 | char pthread_attr_getschedpolicy(); | |
15546 | ||
15547 | int main() { | |
15548 | pthread_attr_getschedpolicy() | |
15549 | ; return 0; } | |
15550 | EOF | |
15551 | if { (eval echo configure:15552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15552 | rm -rf conftest* | |
15553 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15554 | else | |
15555 | echo "configure: failed program was:" >&5 | |
15556 | cat conftest.$ac_ext >&5 | |
15557 | rm -rf conftest* | |
15558 | eval "ac_cv_lib_$ac_lib_var=no" | |
15559 | fi | |
15560 | rm -f conftest* | |
15561 | LIBS="$ac_save_LIBS" | |
15562 | ||
15563 | fi | |
15564 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15565 | echo "$ac_t""yes" 1>&6 | |
15566 | echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6 | |
15567 | echo "configure:15568: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5 | |
15568 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'` | |
15569 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15570 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15571 | else | |
15572 | ac_save_LIBS="$LIBS" | |
15573 | LIBS="-l$THREADS_LINK $LIBS" | |
15574 | cat > conftest.$ac_ext <<EOF | |
15575 | #line 15576 "configure" | |
15576 | #include "confdefs.h" | |
15577 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15578 | /* We use char because int might match the return type of a gcc2 | |
15579 | builtin and then its argument prototype would still apply. */ | |
15580 | char pthread_attr_setschedparam(); | |
15581 | ||
15582 | int main() { | |
15583 | pthread_attr_setschedparam() | |
15584 | ; return 0; } | |
15585 | EOF | |
15586 | if { (eval echo configure:15587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15587 | rm -rf conftest* | |
15588 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15589 | else | |
15590 | echo "configure: failed program was:" >&5 | |
15591 | cat conftest.$ac_ext >&5 | |
15592 | rm -rf conftest* | |
15593 | eval "ac_cv_lib_$ac_lib_var=no" | |
15594 | fi | |
15595 | rm -f conftest* | |
15596 | LIBS="$ac_save_LIBS" | |
15597 | ||
15598 | fi | |
15599 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15600 | echo "$ac_t""yes" 1>&6 | |
15601 | echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6 | |
15602 | echo "configure:15603: checking for sched_get_priority_max in -l$THREADS_LINK" >&5 | |
15603 | ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'` | |
15604 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15605 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15606 | else | |
15607 | ac_save_LIBS="$LIBS" | |
15608 | LIBS="-l$THREADS_LINK $LIBS" | |
15609 | cat > conftest.$ac_ext <<EOF | |
15610 | #line 15611 "configure" | |
15611 | #include "confdefs.h" | |
15612 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15613 | /* We use char because int might match the return type of a gcc2 | |
15614 | builtin and then its argument prototype would still apply. */ | |
15615 | char sched_get_priority_max(); | |
15616 | ||
15617 | int main() { | |
15618 | sched_get_priority_max() | |
15619 | ; return 0; } | |
15620 | EOF | |
15621 | if { (eval echo configure:15622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15622 | rm -rf conftest* | |
15623 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15624 | else | |
15625 | echo "configure: failed program was:" >&5 | |
15626 | cat conftest.$ac_ext >&5 | |
15627 | rm -rf conftest* | |
15628 | eval "ac_cv_lib_$ac_lib_var=no" | |
15629 | fi | |
15630 | rm -f conftest* | |
15631 | LIBS="$ac_save_LIBS" | |
15632 | ||
15633 | fi | |
15634 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15635 | echo "$ac_t""yes" 1>&6 | |
15636 | HAVE_PRIOR_FUNCS=1 | |
15637 | else | |
15638 | echo "$ac_t""no" 1>&6 | |
15639 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
15640 | echo "configure:15641: checking for sched_get_priority_max in -lposix4" >&5 | |
15641 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` | |
15642 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15643 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15644 | else | |
15645 | ac_save_LIBS="$LIBS" | |
15646 | LIBS="-lposix4 $LIBS" | |
15647 | cat > conftest.$ac_ext <<EOF | |
15648 | #line 15649 "configure" | |
15649 | #include "confdefs.h" | |
15650 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15651 | /* We use char because int might match the return type of a gcc2 | |
15652 | builtin and then its argument prototype would still apply. */ | |
15653 | char sched_get_priority_max(); | |
15654 | ||
15655 | int main() { | |
15656 | sched_get_priority_max() | |
15657 | ; return 0; } | |
15658 | EOF | |
15659 | if { (eval echo configure:15660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15660 | rm -rf conftest* | |
15661 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15662 | else | |
15663 | echo "configure: failed program was:" >&5 | |
15664 | cat conftest.$ac_ext >&5 | |
15665 | rm -rf conftest* | |
15666 | eval "ac_cv_lib_$ac_lib_var=no" | |
15667 | fi | |
15668 | rm -f conftest* | |
15669 | LIBS="$ac_save_LIBS" | |
15670 | ||
15671 | fi | |
15672 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15673 | echo "$ac_t""yes" 1>&6 | |
15674 | ||
15675 | HAVE_PRIOR_FUNCS=1 | |
15676 | POSIX4_LINK=" -lposix4" | |
15677 | ||
15678 | else | |
15679 | echo "$ac_t""no" 1>&6 | |
15680 | fi | |
15681 | ||
15682 | ||
15683 | fi | |
15684 | ||
15685 | ||
15686 | else | |
15687 | echo "$ac_t""no" 1>&6 | |
15688 | fi | |
15689 | ||
15690 | ||
15691 | else | |
15692 | echo "$ac_t""no" 1>&6 | |
15693 | fi | |
15694 | ||
15695 | ||
15696 | if test "$HAVE_PRIOR_FUNCS" = 1; then | |
15697 | cat >> confdefs.h <<\EOF | |
15698 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
15699 | EOF | |
15700 | ||
15701 | else | |
15702 | echo "configure: warning: Setting thread priority will not work" 1>&2 | |
15703 | fi | |
15704 | ||
15705 | echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6 | |
15706 | echo "configure:15707: checking for pthread_cancel in -l$THREADS_LINK" >&5 | |
15707 | ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'` | |
15708 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15709 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15710 | else | |
15711 | ac_save_LIBS="$LIBS" | |
15712 | LIBS="-l$THREADS_LINK $LIBS" | |
15713 | cat > conftest.$ac_ext <<EOF | |
15714 | #line 15715 "configure" | |
15715 | #include "confdefs.h" | |
15716 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15717 | /* We use char because int might match the return type of a gcc2 | |
15718 | builtin and then its argument prototype would still apply. */ | |
15719 | char pthread_cancel(); | |
15720 | ||
15721 | int main() { | |
15722 | pthread_cancel() | |
15723 | ; return 0; } | |
15724 | EOF | |
15725 | if { (eval echo configure:15726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
15726 | rm -rf conftest* | |
15727 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15728 | else | |
15729 | echo "configure: failed program was:" >&5 | |
15730 | cat conftest.$ac_ext >&5 | |
15731 | rm -rf conftest* | |
15732 | eval "ac_cv_lib_$ac_lib_var=no" | |
15733 | fi | |
15734 | rm -f conftest* | |
15735 | LIBS="$ac_save_LIBS" | |
15736 | ||
15737 | fi | |
15738 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15739 | echo "$ac_t""yes" 1>&6 | |
15740 | cat >> confdefs.h <<\EOF | |
15741 | #define HAVE_PTHREAD_CANCEL 1 | |
15742 | EOF | |
15743 | ||
15744 | else | |
15745 | echo "$ac_t""no" 1>&6 | |
15746 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
15747 | fi | |
15748 | ||
15749 | ||
15750 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 | |
15751 | echo "configure:15752: checking for pthread_cleanup_push/pop" >&5 | |
15752 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then | |
15753 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15754 | else | |
15755 | ||
15756 | cat > conftest.$ac_ext <<EOF | |
15757 | #line 15758 "configure" | |
15758 | #include "confdefs.h" | |
15759 | #include <pthread.h> | |
15760 | int main() { | |
15761 | ||
15762 | pthread_cleanup_push(NULL, NULL); | |
15763 | pthread_cleanup_pop(0); | |
15764 | ||
15765 | ; return 0; } | |
15766 | EOF | |
15767 | if { (eval echo configure:15768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
15768 | rm -rf conftest* | |
15769 | ||
15770 | wx_cv_func_pthread_cleanup_push=yes | |
15771 | ||
15772 | else | |
15773 | echo "configure: failed program was:" >&5 | |
15774 | cat conftest.$ac_ext >&5 | |
15775 | rm -rf conftest* | |
15776 | ||
15777 | wx_cv_func_pthread_cleanup_push=no | |
15778 | ||
15779 | fi | |
15780 | rm -f conftest* | |
15781 | ||
15782 | fi | |
15783 | ||
15784 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
15785 | ||
15786 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then | |
15787 | cat >> confdefs.h <<\EOF | |
15788 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 | |
15789 | EOF | |
15790 | ||
15791 | fi | |
15792 | ||
15793 | ||
15794 | if test "x$wx_lib_glibc21" = "xyes"; then | |
15795 | CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" | |
15796 | fi | |
15797 | ||
15798 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 | |
15799 | echo "configure:15800: checking for pthread_mutexattr_t" >&5 | |
15800 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then | |
15801 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15802 | else | |
15803 | ||
15804 | cat > conftest.$ac_ext <<EOF | |
15805 | #line 15806 "configure" | |
15806 | #include "confdefs.h" | |
15807 | #include <pthread.h> | |
15808 | int main() { | |
15809 | ||
15810 | pthread_mutexattr_t attr; | |
15811 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
15812 | ||
15813 | ; return 0; } | |
15814 | EOF | |
15815 | if { (eval echo configure:15816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
15816 | rm -rf conftest* | |
15817 | ||
15818 | wx_cv_type_pthread_mutexattr_t=yes | |
15819 | ||
15820 | else | |
15821 | echo "configure: failed program was:" >&5 | |
15822 | cat conftest.$ac_ext >&5 | |
15823 | rm -rf conftest* | |
15824 | ||
15825 | wx_cv_type_pthread_mutexattr_t=no | |
15826 | ||
15827 | ||
15828 | fi | |
15829 | rm -f conftest* | |
15830 | ||
15831 | fi | |
15832 | ||
15833 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
15834 | ||
15835 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
15836 | cat >> confdefs.h <<\EOF | |
15837 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
15838 | EOF | |
15839 | ||
15840 | else | |
15841 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 | |
15842 | echo "configure:15843: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 | |
15843 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then | |
15844 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15845 | else | |
15846 | ||
15847 | cat > conftest.$ac_ext <<EOF | |
15848 | #line 15849 "configure" | |
15849 | #include "confdefs.h" | |
15850 | #include <pthread.h> | |
15851 | int main() { | |
15852 | ||
15853 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
15854 | ||
15855 | ; return 0; } | |
15856 | EOF | |
15857 | if { (eval echo configure:15858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
15858 | rm -rf conftest* | |
15859 | ||
15860 | wx_cv_type_pthread_rec_mutex_init=yes | |
15861 | ||
15862 | else | |
15863 | echo "configure: failed program was:" >&5 | |
15864 | cat conftest.$ac_ext >&5 | |
15865 | rm -rf conftest* | |
15866 | ||
15867 | wx_cv_type_pthread_rec_mutex_init=no | |
15868 | ||
15869 | ||
15870 | fi | |
15871 | rm -f conftest* | |
15872 | ||
15873 | fi | |
15874 | ||
15875 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 | |
15876 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
15877 | cat >> confdefs.h <<\EOF | |
15878 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
15879 | EOF | |
15880 | ||
15881 | else | |
15882 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 | |
15883 | fi | |
15884 | fi | |
15885 | ||
15886 | THREADS_LINK=" -l$THREADS_LINK" | |
15887 | ||
15888 | if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then | |
15889 | CPPFLAGS="$CFLAGS -mt" | |
15890 | CXXFLAGS="$CXXFLAGS -mt" | |
15891 | LDFLAGS="$LDFLAGS -mt" | |
15892 | fi | |
15893 | fi | |
15894 | ||
15895 | fi | |
15896 | ||
15897 | if test "$wxUSE_THREADS" = "yes"; then | |
15898 | cat >> confdefs.h <<\EOF | |
15899 | #define wxUSE_THREADS 1 | |
15900 | EOF | |
15901 | ||
15902 | ||
15903 | if test "$USE_DARWIN" != 1; then | |
15904 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -D_REENTRANT" | |
15905 | fi | |
15906 | ||
15907 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
15908 | else | |
15909 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
15910 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 | |
15911 | echo "configure:15912: checking if -D_REENTRANT is needed" >&5 | |
15912 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
15913 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
15914 | echo "$ac_t""yes" 1>&6 | |
15915 | else | |
15916 | echo "$ac_t""no" 1>&6 | |
15917 | fi | |
15918 | fi | |
15919 | fi | |
15920 | ||
15921 | if test "$WXGTK20" = 1 ; then | |
15922 | cat >> confdefs.h <<EOF | |
15923 | #define __WXGTK20__ $WXGTK20 | |
15924 | EOF | |
15925 | ||
15926 | WXGTK12=1 | |
15927 | fi | |
15928 | ||
15929 | if test "$WXGTK12" = 1 ; then | |
15930 | cat >> confdefs.h <<EOF | |
15931 | #define __WXGTK12__ $WXGTK12 | |
15932 | EOF | |
15933 | ||
15934 | fi | |
15935 | ||
15936 | if test "$WXGTK127" = 1 ; then | |
15937 | cat >> confdefs.h <<EOF | |
15938 | #define __WXGTK127__ $WXGTK127 | |
15939 | EOF | |
15940 | ||
15941 | fi | |
15942 | ||
15943 | WXDEBUG= | |
15944 | ||
15945 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
15946 | WXDEBUG="-g" | |
15947 | wxUSE_OPTIMISE=no | |
15948 | fi | |
15949 | ||
15950 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
15951 | wxUSE_DEBUG_INFO=yes | |
15952 | WXDEBUG="-ggdb" | |
15953 | fi | |
15954 | ||
15955 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
15956 | cat >> confdefs.h <<\EOF | |
15957 | #define WXDEBUG 1 | |
15958 | EOF | |
15959 | ||
15960 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
15961 | else | |
15962 | if test "$wxUSE_GTK" = 1 ; then | |
15963 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
15964 | fi | |
15965 | fi | |
15966 | ||
15967 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
15968 | cat >> confdefs.h <<\EOF | |
15969 | #define wxUSE_MEMORY_TRACING 1 | |
15970 | EOF | |
15971 | ||
15972 | cat >> confdefs.h <<\EOF | |
15973 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
15974 | EOF | |
15975 | ||
15976 | cat >> confdefs.h <<\EOF | |
15977 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
15978 | EOF | |
15979 | ||
15980 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
15981 | fi | |
15982 | ||
15983 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
15984 | DMALLOC_LIBS="-ldmalloc" | |
15985 | fi | |
15986 | ||
15987 | PROFILE= | |
15988 | if test "$wxUSE_PROFILE" = "yes" ; then | |
15989 | PROFILE=" -pg" | |
15990 | fi | |
15991 | ||
15992 | if test "$GCC" = yes ; then | |
15993 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
15994 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
15995 | fi | |
15996 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
15997 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
15998 | fi | |
15999 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
16000 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
16001 | fi | |
16002 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
16003 | CFLAGS="-MMD $CFLAGS" | |
16004 | CXXFLAGS="-MMD $CXXFLAGS" | |
16005 | fi | |
16006 | if test "$USE_WIN32" = 1 ; then | |
16007 | # I'm not even really sure what this was ever added to solve, | |
16008 | # but someone added it for mingw native builds, so I guess | |
16009 | # they had a reason, right?? | |
16010 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return" | |
16011 | fi | |
16012 | fi | |
16013 | ||
16014 | ||
16015 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` | |
16016 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
16017 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
16018 | OPTIMISE= | |
16019 | else | |
16020 | if test "$GCC" = yes ; then | |
16021 | OPTIMISE="-O2" | |
16022 | case "${host}" in | |
16023 | i586-*-*|i686-*-* ) | |
16024 | OPTIMISE="${OPTIMISE} " | |
16025 | ;; | |
16026 | esac | |
16027 | else | |
16028 | OPTIMISE="-O" | |
16029 | fi | |
16030 | fi | |
16031 | ||
16032 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then | |
16033 | cat >> confdefs.h <<\EOF | |
16034 | #define WXWIN_COMPATIBILITY_2 1 | |
16035 | EOF | |
16036 | ||
16037 | ||
16038 | WXWIN_COMPATIBILITY_2_2="yes" | |
16039 | fi | |
16040 | ||
16041 | if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then | |
16042 | cat >> confdefs.h <<\EOF | |
16043 | #define WXWIN_COMPATIBILITY_2_2 1 | |
16044 | EOF | |
16045 | ||
16046 | fi | |
16047 | ||
16048 | ||
16049 | if test "$wxUSE_GUI" = "yes"; then | |
16050 | cat >> confdefs.h <<\EOF | |
16051 | #define wxUSE_GUI 1 | |
16052 | EOF | |
16053 | ||
16054 | ||
16055 | else | |
16056 | cat >> confdefs.h <<\EOF | |
16057 | #define wxUSE_NOGUI 1 | |
16058 | EOF | |
16059 | ||
16060 | fi | |
16061 | ||
16062 | ||
16063 | if test "$wxUSE_UNIX" = "yes"; then | |
16064 | cat >> confdefs.h <<\EOF | |
16065 | #define wxUSE_UNIX 1 | |
16066 | EOF | |
16067 | ||
16068 | fi | |
16069 | ||
16070 | ||
16071 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
16072 | cat >> confdefs.h <<\EOF | |
16073 | #define wxUSE_APPLE_IEEE 1 | |
16074 | EOF | |
16075 | ||
16076 | fi | |
16077 | ||
16078 | if test "$wxUSE_TIMER" = "yes"; then | |
16079 | cat >> confdefs.h <<\EOF | |
16080 | #define wxUSE_TIMER 1 | |
16081 | EOF | |
16082 | ||
16083 | fi | |
16084 | ||
16085 | if test "$wxUSE_WAVE" = "yes"; then | |
16086 | cat >> confdefs.h <<\EOF | |
16087 | #define wxUSE_WAVE 1 | |
16088 | EOF | |
16089 | ||
16090 | fi | |
16091 | ||
16092 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then | |
16093 | cat >> confdefs.h <<\EOF | |
16094 | #define wxUSE_CMDLINE_PARSER 1 | |
16095 | EOF | |
16096 | ||
16097 | fi | |
16098 | ||
16099 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
16100 | cat >> confdefs.h <<\EOF | |
16101 | #define wxUSE_STOPWATCH 1 | |
16102 | EOF | |
16103 | ||
16104 | fi | |
16105 | ||
16106 | if test "$wxUSE_DATETIME" = "yes"; then | |
16107 | cat >> confdefs.h <<\EOF | |
16108 | #define wxUSE_DATETIME 1 | |
16109 | EOF | |
16110 | ||
16111 | fi | |
16112 | ||
16113 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
16114 | cat >> confdefs.h <<\EOF | |
16115 | #define wxUSE_TIMEDATE 1 | |
16116 | EOF | |
16117 | ||
16118 | fi | |
16119 | ||
16120 | if test "$wxUSE_FILE" = "yes"; then | |
16121 | cat >> confdefs.h <<\EOF | |
16122 | #define wxUSE_FILE 1 | |
16123 | EOF | |
16124 | ||
16125 | fi | |
16126 | ||
16127 | if test "$wxUSE_FFILE" = "yes"; then | |
16128 | cat >> confdefs.h <<\EOF | |
16129 | #define wxUSE_FFILE 1 | |
16130 | EOF | |
16131 | ||
16132 | fi | |
16133 | ||
16134 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
16135 | cat >> confdefs.h <<\EOF | |
16136 | #define wxUSE_FILESYSTEM 1 | |
16137 | EOF | |
16138 | ||
16139 | fi | |
16140 | ||
16141 | if test "$wxUSE_FS_INET" = "yes"; then | |
16142 | cat >> confdefs.h <<\EOF | |
16143 | #define wxUSE_FS_INET 1 | |
16144 | EOF | |
16145 | ||
16146 | fi | |
16147 | ||
16148 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
16149 | cat >> confdefs.h <<\EOF | |
16150 | #define wxUSE_FS_ZIP 1 | |
16151 | EOF | |
16152 | ||
16153 | fi | |
16154 | ||
16155 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
16156 | cat >> confdefs.h <<\EOF | |
16157 | #define wxUSE_ZIPSTREAM 1 | |
16158 | EOF | |
16159 | ||
16160 | fi | |
16161 | ||
16162 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
16163 | cat >> confdefs.h <<\EOF | |
16164 | #define wxUSE_ON_FATAL_EXCEPTION 1 | |
16165 | EOF | |
16166 | ||
16167 | fi | |
16168 | ||
16169 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
16170 | cat >> confdefs.h <<\EOF | |
16171 | #define wxUSE_SNGLINST_CHECKER 1 | |
16172 | EOF | |
16173 | ||
16174 | fi | |
16175 | ||
16176 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
16177 | cat >> confdefs.h <<\EOF | |
16178 | #define wxUSE_BUSYINFO 1 | |
16179 | EOF | |
16180 | ||
16181 | fi | |
16182 | ||
16183 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
16184 | cat >> confdefs.h <<\EOF | |
16185 | #define wxUSE_STD_IOSTREAM 1 | |
16186 | EOF | |
16187 | ||
16188 | fi | |
16189 | ||
16190 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
16191 | if test "$wxUSE_FILE" != "yes"; then | |
16192 | echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2 | |
16193 | else | |
16194 | cat >> confdefs.h <<\EOF | |
16195 | #define wxUSE_TEXTFILE 1 | |
16196 | EOF | |
16197 | ||
16198 | fi | |
16199 | fi | |
16200 | ||
16201 | if test "$wxUSE_CONFIG" = "yes" ; then | |
16202 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
16203 | echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2 | |
16204 | else | |
16205 | cat >> confdefs.h <<\EOF | |
16206 | #define wxUSE_CONFIG 1 | |
16207 | EOF | |
16208 | ||
16209 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
16210 | fi | |
16211 | fi | |
16212 | ||
16213 | if test "$wxUSE_INTL" = "yes" ; then | |
16214 | if test "$wxUSE_FILE" != "yes"; then | |
16215 | echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2 | |
16216 | else | |
16217 | cat >> confdefs.h <<\EOF | |
16218 | #define wxUSE_INTL 1 | |
16219 | EOF | |
16220 | ||
16221 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
16222 | GUIDIST="$GUIDIST INTL_DIST" | |
16223 | fi | |
16224 | fi | |
16225 | ||
16226 | if test "$wxUSE_LOG" = "yes"; then | |
16227 | cat >> confdefs.h <<\EOF | |
16228 | #define wxUSE_LOG 1 | |
16229 | EOF | |
16230 | ||
16231 | ||
16232 | if test "$wxUSE_LOGGUI" = "yes"; then | |
16233 | cat >> confdefs.h <<\EOF | |
16234 | #define wxUSE_LOGGUI 1 | |
16235 | EOF | |
16236 | ||
16237 | fi | |
16238 | ||
16239 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
16240 | cat >> confdefs.h <<\EOF | |
16241 | #define wxUSE_LOGWINDOW 1 | |
16242 | EOF | |
16243 | ||
16244 | fi | |
16245 | fi | |
16246 | ||
16247 | if test "$wxUSE_LONGLONG" = "yes"; then | |
16248 | cat >> confdefs.h <<\EOF | |
16249 | #define wxUSE_LONGLONG 1 | |
16250 | EOF | |
16251 | ||
16252 | fi | |
16253 | ||
16254 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
16255 | cat >> confdefs.h <<\EOF | |
16256 | #define wxUSE_GEOMETRY 1 | |
16257 | EOF | |
16258 | ||
16259 | fi | |
16260 | ||
16261 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then | |
16262 | cat >> confdefs.h <<\EOF | |
16263 | #define wxUSE_DIALUP_MANAGER 1 | |
16264 | EOF | |
16265 | ||
16266 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" | |
16267 | fi | |
16268 | ||
16269 | if test "$wxUSE_STREAMS" = "yes" ; then | |
16270 | cat >> confdefs.h <<\EOF | |
16271 | #define wxUSE_STREAMS 1 | |
16272 | EOF | |
16273 | ||
16274 | fi | |
16275 | ||
16276 | ||
16277 | if test "$wxUSE_DATETIME" = "yes"; then | |
16278 | for ac_func in strptime | |
16279 | do | |
16280 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
16281 | echo "configure:16282: checking for $ac_func" >&5 | |
16282 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
16283 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16284 | else | |
16285 | cat > conftest.$ac_ext <<EOF | |
16286 | #line 16287 "configure" | |
16287 | #include "confdefs.h" | |
16288 | /* System header to define __stub macros and hopefully few prototypes, | |
16289 | which can conflict with char $ac_func(); below. */ | |
16290 | #include <assert.h> | |
16291 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16292 | /* We use char because int might match the return type of a gcc2 | |
16293 | builtin and then its argument prototype would still apply. */ | |
16294 | char $ac_func(); | |
16295 | ||
16296 | int main() { | |
16297 | ||
16298 | /* The GNU C library defines this for functions which it implements | |
16299 | to always fail with ENOSYS. Some functions are actually named | |
16300 | something starting with __ and the normal name is an alias. */ | |
16301 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16302 | choke me | |
16303 | #else | |
16304 | $ac_func(); | |
16305 | #endif | |
16306 | ||
16307 | ; return 0; } | |
16308 | EOF | |
16309 | if { (eval echo configure:16310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16310 | rm -rf conftest* | |
16311 | eval "ac_cv_func_$ac_func=yes" | |
16312 | else | |
16313 | echo "configure: failed program was:" >&5 | |
16314 | cat conftest.$ac_ext >&5 | |
16315 | rm -rf conftest* | |
16316 | eval "ac_cv_func_$ac_func=no" | |
16317 | fi | |
16318 | rm -f conftest* | |
16319 | fi | |
16320 | ||
16321 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16322 | echo "$ac_t""yes" 1>&6 | |
16323 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16324 | cat >> confdefs.h <<EOF | |
16325 | #define $ac_tr_func 1 | |
16326 | EOF | |
16327 | ||
16328 | else | |
16329 | echo "$ac_t""no" 1>&6 | |
16330 | fi | |
16331 | done | |
16332 | ||
16333 | ||
16334 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 | |
16335 | echo "configure:16336: checking for timezone variable in <time.h>" >&5 | |
16336 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then | |
16337 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16338 | else | |
16339 | ||
16340 | cat > conftest.$ac_ext <<EOF | |
16341 | #line 16342 "configure" | |
16342 | #include "confdefs.h" | |
16343 | ||
16344 | #include <time.h> | |
16345 | ||
16346 | int main() { | |
16347 | ||
16348 | int tz; | |
16349 | tz = timezone; | |
16350 | ||
16351 | ; return 0; } | |
16352 | EOF | |
16353 | if { (eval echo configure:16354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
16354 | rm -rf conftest* | |
16355 | ||
16356 | wx_cv_var_timezone=timezone | |
16357 | ||
16358 | else | |
16359 | echo "configure: failed program was:" >&5 | |
16360 | cat conftest.$ac_ext >&5 | |
16361 | rm -rf conftest* | |
16362 | ||
16363 | cat > conftest.$ac_ext <<EOF | |
16364 | #line 16365 "configure" | |
16365 | #include "confdefs.h" | |
16366 | ||
16367 | #include <time.h> | |
16368 | ||
16369 | int main() { | |
16370 | ||
16371 | int tz; | |
16372 | tz = _timezone; | |
16373 | ||
16374 | ; return 0; } | |
16375 | EOF | |
16376 | if { (eval echo configure:16377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
16377 | rm -rf conftest* | |
16378 | ||
16379 | wx_cv_var_timezone=_timezone | |
16380 | ||
16381 | else | |
16382 | echo "configure: failed program was:" >&5 | |
16383 | cat conftest.$ac_ext >&5 | |
16384 | rm -rf conftest* | |
16385 | ||
16386 | cat > conftest.$ac_ext <<EOF | |
16387 | #line 16388 "configure" | |
16388 | #include "confdefs.h" | |
16389 | ||
16390 | #include <time.h> | |
16391 | ||
16392 | int main() { | |
16393 | ||
16394 | int tz; | |
16395 | tz = __timezone; | |
16396 | ||
16397 | ; return 0; } | |
16398 | EOF | |
16399 | if { (eval echo configure:16400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
16400 | rm -rf conftest* | |
16401 | ||
16402 | wx_cv_var_timezone=__timezone | |
16403 | ||
16404 | else | |
16405 | echo "configure: failed program was:" >&5 | |
16406 | cat conftest.$ac_ext >&5 | |
16407 | rm -rf conftest* | |
16408 | { echo "configure: error: no timezone variable" 1>&2; exit 1; } | |
16409 | ||
16410 | fi | |
16411 | rm -f conftest* | |
16412 | ||
16413 | ||
16414 | fi | |
16415 | rm -f conftest* | |
16416 | ||
16417 | ||
16418 | fi | |
16419 | rm -f conftest* | |
16420 | ||
16421 | ||
16422 | fi | |
16423 | ||
16424 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 | |
16425 | ||
16426 | cat >> confdefs.h <<EOF | |
16427 | #define WX_TIMEZONE $wx_cv_var_timezone | |
16428 | EOF | |
16429 | ||
16430 | ||
16431 | for ac_func in localtime | |
16432 | do | |
16433 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
16434 | echo "configure:16435: checking for $ac_func" >&5 | |
16435 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
16436 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16437 | else | |
16438 | cat > conftest.$ac_ext <<EOF | |
16439 | #line 16440 "configure" | |
16440 | #include "confdefs.h" | |
16441 | /* System header to define __stub macros and hopefully few prototypes, | |
16442 | which can conflict with char $ac_func(); below. */ | |
16443 | #include <assert.h> | |
16444 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16445 | /* We use char because int might match the return type of a gcc2 | |
16446 | builtin and then its argument prototype would still apply. */ | |
16447 | char $ac_func(); | |
16448 | ||
16449 | int main() { | |
16450 | ||
16451 | /* The GNU C library defines this for functions which it implements | |
16452 | to always fail with ENOSYS. Some functions are actually named | |
16453 | something starting with __ and the normal name is an alias. */ | |
16454 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16455 | choke me | |
16456 | #else | |
16457 | $ac_func(); | |
16458 | #endif | |
16459 | ||
16460 | ; return 0; } | |
16461 | EOF | |
16462 | if { (eval echo configure:16463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16463 | rm -rf conftest* | |
16464 | eval "ac_cv_func_$ac_func=yes" | |
16465 | else | |
16466 | echo "configure: failed program was:" >&5 | |
16467 | cat conftest.$ac_ext >&5 | |
16468 | rm -rf conftest* | |
16469 | eval "ac_cv_func_$ac_func=no" | |
16470 | fi | |
16471 | rm -f conftest* | |
16472 | fi | |
16473 | ||
16474 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16475 | echo "$ac_t""yes" 1>&6 | |
16476 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16477 | cat >> confdefs.h <<EOF | |
16478 | #define $ac_tr_func 1 | |
16479 | EOF | |
16480 | ||
16481 | else | |
16482 | echo "$ac_t""no" 1>&6 | |
16483 | fi | |
16484 | done | |
16485 | ||
16486 | ||
16487 | if test "$ac_cv_func_localtime" = "yes"; then | |
16488 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
16489 | echo "configure:16490: checking for tm_gmtoff in struct tm" >&5 | |
16490 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then | |
16491 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16492 | else | |
16493 | ||
16494 | cat > conftest.$ac_ext <<EOF | |
16495 | #line 16496 "configure" | |
16496 | #include "confdefs.h" | |
16497 | ||
16498 | #include <time.h> | |
16499 | ||
16500 | int main() { | |
16501 | ||
16502 | struct tm tm; | |
16503 | tm.tm_gmtoff++; | |
16504 | ||
16505 | ; return 0; } | |
16506 | EOF | |
16507 | if { (eval echo configure:16508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
16508 | rm -rf conftest* | |
16509 | ||
16510 | wx_cv_struct_tm_has_gmtoff=yes | |
16511 | ||
16512 | else | |
16513 | echo "configure: failed program was:" >&5 | |
16514 | cat conftest.$ac_ext >&5 | |
16515 | rm -rf conftest* | |
16516 | wx_cv_struct_tm_has_gmtoff=no | |
16517 | ||
16518 | fi | |
16519 | rm -f conftest* | |
16520 | ||
16521 | fi | |
16522 | ||
16523 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
16524 | fi | |
16525 | ||
16526 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
16527 | cat >> confdefs.h <<\EOF | |
16528 | #define WX_GMTOFF_IN_TM 1 | |
16529 | EOF | |
16530 | ||
16531 | fi | |
16532 | ||
16533 | for ac_func in gettimeofday ftime | |
16534 | do | |
16535 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
16536 | echo "configure:16537: checking for $ac_func" >&5 | |
16537 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
16538 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16539 | else | |
16540 | cat > conftest.$ac_ext <<EOF | |
16541 | #line 16542 "configure" | |
16542 | #include "confdefs.h" | |
16543 | /* System header to define __stub macros and hopefully few prototypes, | |
16544 | which can conflict with char $ac_func(); below. */ | |
16545 | #include <assert.h> | |
16546 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16547 | /* We use char because int might match the return type of a gcc2 | |
16548 | builtin and then its argument prototype would still apply. */ | |
16549 | char $ac_func(); | |
16550 | ||
16551 | int main() { | |
16552 | ||
16553 | /* The GNU C library defines this for functions which it implements | |
16554 | to always fail with ENOSYS. Some functions are actually named | |
16555 | something starting with __ and the normal name is an alias. */ | |
16556 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16557 | choke me | |
16558 | #else | |
16559 | $ac_func(); | |
16560 | #endif | |
16561 | ||
16562 | ; return 0; } | |
16563 | EOF | |
16564 | if { (eval echo configure:16565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16565 | rm -rf conftest* | |
16566 | eval "ac_cv_func_$ac_func=yes" | |
16567 | else | |
16568 | echo "configure: failed program was:" >&5 | |
16569 | cat conftest.$ac_ext >&5 | |
16570 | rm -rf conftest* | |
16571 | eval "ac_cv_func_$ac_func=no" | |
16572 | fi | |
16573 | rm -f conftest* | |
16574 | fi | |
16575 | ||
16576 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16577 | echo "$ac_t""yes" 1>&6 | |
16578 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16579 | cat >> confdefs.h <<EOF | |
16580 | #define $ac_tr_func 1 | |
16581 | EOF | |
16582 | break | |
16583 | else | |
16584 | echo "$ac_t""no" 1>&6 | |
16585 | fi | |
16586 | done | |
16587 | ||
16588 | ||
16589 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
16590 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 | |
16591 | echo "configure:16592: checking whether gettimeofday takes two arguments" >&5 | |
16592 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then | |
16593 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16594 | else | |
16595 | ||
16596 | ||
16597 | ac_ext=C | |
16598 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16599 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16600 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16601 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16602 | cross_compiling=$ac_cv_prog_cxx_cross | |
16603 | ||
16604 | ||
16605 | cat > conftest.$ac_ext <<EOF | |
16606 | #line 16607 "configure" | |
16607 | #include "confdefs.h" | |
16608 | ||
16609 | #include <sys/time.h> | |
16610 | #include <unistd.h> | |
16611 | ||
16612 | int main() { | |
16613 | ||
16614 | struct timeval tv; | |
16615 | gettimeofday(&tv, NULL); | |
16616 | ||
16617 | ; return 0; } | |
16618 | EOF | |
16619 | if { (eval echo configure:16620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
16620 | rm -rf conftest* | |
16621 | wx_cv_func_gettimeofday_has_2_args=yes | |
16622 | else | |
16623 | echo "configure: failed program was:" >&5 | |
16624 | cat conftest.$ac_ext >&5 | |
16625 | rm -rf conftest* | |
16626 | cat > conftest.$ac_ext <<EOF | |
16627 | #line 16628 "configure" | |
16628 | #include "confdefs.h" | |
16629 | ||
16630 | #include <sys/time.h> | |
16631 | #include <unistd.h> | |
16632 | ||
16633 | int main() { | |
16634 | ||
16635 | struct timeval tv; | |
16636 | gettimeofday(&tv); | |
16637 | ||
16638 | ; return 0; } | |
16639 | EOF | |
16640 | if { (eval echo configure:16641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
16641 | rm -rf conftest* | |
16642 | wx_cv_func_gettimeofday_has_2_args=no | |
16643 | else | |
16644 | echo "configure: failed program was:" >&5 | |
16645 | cat conftest.$ac_ext >&5 | |
16646 | rm -rf conftest* | |
16647 | ||
16648 | echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2 | |
16649 | wx_cv_func_gettimeofday_has_2_args=unknown | |
16650 | ||
16651 | ||
16652 | fi | |
16653 | rm -f conftest* | |
16654 | ||
16655 | fi | |
16656 | rm -f conftest* | |
16657 | ac_ext=c | |
16658 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16659 | ac_cpp='$CPP $CPPFLAGS' | |
16660 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16661 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16662 | cross_compiling=$ac_cv_prog_cc_cross | |
16663 | ||
16664 | ||
16665 | fi | |
16666 | ||
16667 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
16668 | ||
16669 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
16670 | cat >> confdefs.h <<\EOF | |
16671 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
16672 | EOF | |
16673 | ||
16674 | fi | |
16675 | fi | |
16676 | ||
16677 | cat >> confdefs.h <<\EOF | |
16678 | #define wxUSE_TIMEDATE 1 | |
16679 | EOF | |
16680 | ||
16681 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
16682 | fi | |
16683 | ||
16684 | ||
16685 | if test "$TOOLKIT" != "MSW"; then | |
16686 | ||
16687 | if test "$wxUSE_SOCKETS" = "yes"; then | |
16688 | echo $ac_n "checking for socket""... $ac_c" 1>&6 | |
16689 | echo "configure:16690: checking for socket" >&5 | |
16690 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then | |
16691 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16692 | else | |
16693 | cat > conftest.$ac_ext <<EOF | |
16694 | #line 16695 "configure" | |
16695 | #include "confdefs.h" | |
16696 | /* System header to define __stub macros and hopefully few prototypes, | |
16697 | which can conflict with char socket(); below. */ | |
16698 | #include <assert.h> | |
16699 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16700 | /* We use char because int might match the return type of a gcc2 | |
16701 | builtin and then its argument prototype would still apply. */ | |
16702 | char socket(); | |
16703 | ||
16704 | int main() { | |
16705 | ||
16706 | /* The GNU C library defines this for functions which it implements | |
16707 | to always fail with ENOSYS. Some functions are actually named | |
16708 | something starting with __ and the normal name is an alias. */ | |
16709 | #if defined (__stub_socket) || defined (__stub___socket) | |
16710 | choke me | |
16711 | #else | |
16712 | socket(); | |
16713 | #endif | |
16714 | ||
16715 | ; return 0; } | |
16716 | EOF | |
16717 | if { (eval echo configure:16718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16718 | rm -rf conftest* | |
16719 | eval "ac_cv_func_socket=yes" | |
16720 | else | |
16721 | echo "configure: failed program was:" >&5 | |
16722 | cat conftest.$ac_ext >&5 | |
16723 | rm -rf conftest* | |
16724 | eval "ac_cv_func_socket=no" | |
16725 | fi | |
16726 | rm -f conftest* | |
16727 | fi | |
16728 | ||
16729 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
16730 | echo "$ac_t""yes" 1>&6 | |
16731 | : | |
16732 | else | |
16733 | echo "$ac_t""no" 1>&6 | |
16734 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
16735 | echo "configure:16736: checking for socket in -lsocket" >&5 | |
16736 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` | |
16737 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16738 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16739 | else | |
16740 | ac_save_LIBS="$LIBS" | |
16741 | LIBS="-lsocket $LIBS" | |
16742 | cat > conftest.$ac_ext <<EOF | |
16743 | #line 16744 "configure" | |
16744 | #include "confdefs.h" | |
16745 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16746 | /* We use char because int might match the return type of a gcc2 | |
16747 | builtin and then its argument prototype would still apply. */ | |
16748 | char socket(); | |
16749 | ||
16750 | int main() { | |
16751 | socket() | |
16752 | ; return 0; } | |
16753 | EOF | |
16754 | if { (eval echo configure:16755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
16755 | rm -rf conftest* | |
16756 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16757 | else | |
16758 | echo "configure: failed program was:" >&5 | |
16759 | cat conftest.$ac_ext >&5 | |
16760 | rm -rf conftest* | |
16761 | eval "ac_cv_lib_$ac_lib_var=no" | |
16762 | fi | |
16763 | rm -f conftest* | |
16764 | LIBS="$ac_save_LIBS" | |
16765 | ||
16766 | fi | |
16767 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16768 | echo "$ac_t""yes" 1>&6 | |
16769 | INET_LINK="$INET_LINK -lsocket" | |
16770 | else | |
16771 | echo "$ac_t""no" 1>&6 | |
16772 | ||
16773 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 | |
16774 | wxUSE_SOCKETS=no | |
16775 | ||
16776 | ||
16777 | fi | |
16778 | ||
16779 | ||
16780 | fi | |
16781 | ||
16782 | fi | |
16783 | ||
16784 | ||
16785 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
16786 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 | |
16787 | echo "configure:16788: checking what is the type of the third argument of getsockname" >&5 | |
16788 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then | |
16789 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16790 | else | |
16791 | ||
16792 | ||
16793 | ac_ext=C | |
16794 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16795 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16796 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16797 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16798 | cross_compiling=$ac_cv_prog_cxx_cross | |
16799 | ||
16800 | ||
16801 | cat > conftest.$ac_ext <<EOF | |
16802 | #line 16803 "configure" | |
16803 | #include "confdefs.h" | |
16804 | ||
16805 | #include <sys/types.h> | |
16806 | #include <sys/socket.h> | |
16807 | ||
16808 | int main() { | |
16809 | ||
16810 | socklen_t len; | |
16811 | getsockname(0, 0, &len); | |
16812 | ||
16813 | ; return 0; } | |
16814 | EOF | |
16815 | if { (eval echo configure:16816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
16816 | rm -rf conftest* | |
16817 | wx_cv_type_getsockname3=socklen_t | |
16818 | else | |
16819 | echo "configure: failed program was:" >&5 | |
16820 | cat conftest.$ac_ext >&5 | |
16821 | rm -rf conftest* | |
16822 | cat > conftest.$ac_ext <<EOF | |
16823 | #line 16824 "configure" | |
16824 | #include "confdefs.h" | |
16825 | ||
16826 | #include <sys/types.h> | |
16827 | #include <sys/socket.h> | |
16828 | ||
16829 | int main() { | |
16830 | ||
16831 | size_t len; | |
16832 | getsockname(0, 0, &len); | |
16833 | ||
16834 | ; return 0; } | |
16835 | EOF | |
16836 | if { (eval echo configure:16837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
16837 | rm -rf conftest* | |
16838 | wx_cv_type_getsockname3=size_t | |
16839 | else | |
16840 | echo "configure: failed program was:" >&5 | |
16841 | cat conftest.$ac_ext >&5 | |
16842 | rm -rf conftest* | |
16843 | cat > conftest.$ac_ext <<EOF | |
16844 | #line 16845 "configure" | |
16845 | #include "confdefs.h" | |
16846 | ||
16847 | #include <sys/types.h> | |
16848 | #include <sys/socket.h> | |
16849 | ||
16850 | int main() { | |
16851 | ||
16852 | int len; | |
16853 | getsockname(0, 0, &len); | |
16854 | ||
16855 | ; return 0; } | |
16856 | EOF | |
16857 | if { (eval echo configure:16858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
16858 | rm -rf conftest* | |
16859 | wx_cv_type_getsockname3=int | |
16860 | else | |
16861 | echo "configure: failed program was:" >&5 | |
16862 | cat conftest.$ac_ext >&5 | |
16863 | rm -rf conftest* | |
16864 | wx_cv_type_getsockname3=unknown | |
16865 | ||
16866 | fi | |
16867 | rm -f conftest* | |
16868 | ||
16869 | fi | |
16870 | rm -f conftest* | |
16871 | ||
16872 | fi | |
16873 | rm -f conftest* | |
16874 | ||
16875 | ac_ext=c | |
16876 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
16877 | ac_cpp='$CPP $CPPFLAGS' | |
16878 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
16879 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16880 | cross_compiling=$ac_cv_prog_cc_cross | |
16881 | ||
16882 | ||
16883 | fi | |
16884 | ||
16885 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
16886 | ||
16887 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
16888 | wxUSE_SOCKETS=no | |
16889 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 | |
16890 | else | |
16891 | cat >> confdefs.h <<EOF | |
16892 | #define SOCKLEN_T $wx_cv_type_getsockname3 | |
16893 | EOF | |
16894 | ||
16895 | fi | |
16896 | fi | |
16897 | fi | |
16898 | ||
16899 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
16900 | cat >> confdefs.h <<\EOF | |
16901 | #define wxUSE_SOCKETS 1 | |
16902 | EOF | |
16903 | ||
16904 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
16905 | fi | |
16906 | ||
16907 | ||
16908 | if test "$wxUSE_GUI" = "yes"; then | |
16909 | ||
16910 | if test "$TOOLKIT" != "MSW"; then | |
16911 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
16912 | for ac_hdr in linux/joystick.h | |
16913 | do | |
16914 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
16915 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
16916 | echo "configure:16917: checking for $ac_hdr" >&5 | |
16917 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
16918 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16919 | else | |
16920 | cat > conftest.$ac_ext <<EOF | |
16921 | #line 16922 "configure" | |
16922 | #include "confdefs.h" | |
16923 | #include <$ac_hdr> | |
16924 | EOF | |
16925 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
16926 | { (eval echo configure:16927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
16927 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
16928 | if test -z "$ac_err"; then | |
16929 | rm -rf conftest* | |
16930 | eval "ac_cv_header_$ac_safe=yes" | |
16931 | else | |
16932 | echo "$ac_err" >&5 | |
16933 | echo "configure: failed program was:" >&5 | |
16934 | cat conftest.$ac_ext >&5 | |
16935 | rm -rf conftest* | |
16936 | eval "ac_cv_header_$ac_safe=no" | |
16937 | fi | |
16938 | rm -f conftest* | |
16939 | fi | |
16940 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
16941 | echo "$ac_t""yes" 1>&6 | |
16942 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
16943 | cat >> confdefs.h <<EOF | |
16944 | #define $ac_tr_hdr 1 | |
16945 | EOF | |
16946 | ||
16947 | else | |
16948 | echo "$ac_t""no" 1>&6 | |
16949 | fi | |
16950 | done | |
16951 | ||
16952 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then | |
16953 | wxUSE_JOYSTICK=no | |
16954 | echo "configure: warning: Joystick not supported by this system" 1>&2 | |
16955 | fi | |
16956 | fi | |
16957 | fi | |
16958 | ||
16959 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
16960 | cat >> confdefs.h <<\EOF | |
16961 | #define wxUSE_JOYSTICK 1 | |
16962 | EOF | |
16963 | ||
16964 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
16965 | fi | |
16966 | fi | |
16967 | ||
16968 | ||
16969 | if test "$TOOLKIT" != "MSW"; then | |
16970 | ||
16971 | HAVE_DL_FUNCS=0 | |
16972 | HAVE_SHL_FUNCS=0 | |
16973 | if test "$wxUSE_DYNLIB_CLASS" = "yes"; then | |
16974 | if test "$USE_DARWIN" = 1; then | |
16975 | HAVE_DL_FUNCS=1 | |
16976 | else | |
16977 | for ac_func in dlopen | |
16978 | do | |
16979 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
16980 | echo "configure:16981: checking for $ac_func" >&5 | |
16981 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
16982 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16983 | else | |
16984 | cat > conftest.$ac_ext <<EOF | |
16985 | #line 16986 "configure" | |
16986 | #include "confdefs.h" | |
16987 | /* System header to define __stub macros and hopefully few prototypes, | |
16988 | which can conflict with char $ac_func(); below. */ | |
16989 | #include <assert.h> | |
16990 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16991 | /* We use char because int might match the return type of a gcc2 | |
16992 | builtin and then its argument prototype would still apply. */ | |
16993 | char $ac_func(); | |
16994 | ||
16995 | int main() { | |
16996 | ||
16997 | /* The GNU C library defines this for functions which it implements | |
16998 | to always fail with ENOSYS. Some functions are actually named | |
16999 | something starting with __ and the normal name is an alias. */ | |
17000 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17001 | choke me | |
17002 | #else | |
17003 | $ac_func(); | |
17004 | #endif | |
17005 | ||
17006 | ; return 0; } | |
17007 | EOF | |
17008 | if { (eval echo configure:17009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17009 | rm -rf conftest* | |
17010 | eval "ac_cv_func_$ac_func=yes" | |
17011 | else | |
17012 | echo "configure: failed program was:" >&5 | |
17013 | cat conftest.$ac_ext >&5 | |
17014 | rm -rf conftest* | |
17015 | eval "ac_cv_func_$ac_func=no" | |
17016 | fi | |
17017 | rm -f conftest* | |
17018 | fi | |
17019 | ||
17020 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17021 | echo "$ac_t""yes" 1>&6 | |
17022 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17023 | cat >> confdefs.h <<EOF | |
17024 | #define $ac_tr_func 1 | |
17025 | EOF | |
17026 | ||
17027 | cat >> confdefs.h <<\EOF | |
17028 | #define HAVE_DLOPEN 1 | |
17029 | EOF | |
17030 | ||
17031 | HAVE_DL_FUNCS=1 | |
17032 | ||
17033 | else | |
17034 | echo "$ac_t""no" 1>&6 | |
17035 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
17036 | echo "configure:17037: checking for dlopen in -ldl" >&5 | |
17037 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` | |
17038 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17039 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17040 | else | |
17041 | ac_save_LIBS="$LIBS" | |
17042 | LIBS="-ldl $LIBS" | |
17043 | cat > conftest.$ac_ext <<EOF | |
17044 | #line 17045 "configure" | |
17045 | #include "confdefs.h" | |
17046 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17047 | /* We use char because int might match the return type of a gcc2 | |
17048 | builtin and then its argument prototype would still apply. */ | |
17049 | char dlopen(); | |
17050 | ||
17051 | int main() { | |
17052 | dlopen() | |
17053 | ; return 0; } | |
17054 | EOF | |
17055 | if { (eval echo configure:17056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17056 | rm -rf conftest* | |
17057 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17058 | else | |
17059 | echo "configure: failed program was:" >&5 | |
17060 | cat conftest.$ac_ext >&5 | |
17061 | rm -rf conftest* | |
17062 | eval "ac_cv_lib_$ac_lib_var=no" | |
17063 | fi | |
17064 | rm -f conftest* | |
17065 | LIBS="$ac_save_LIBS" | |
17066 | ||
17067 | fi | |
17068 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17069 | echo "$ac_t""yes" 1>&6 | |
17070 | ||
17071 | cat >> confdefs.h <<\EOF | |
17072 | #define HAVE_DLOPEN 1 | |
17073 | EOF | |
17074 | ||
17075 | HAVE_DL_FUNCS=1 | |
17076 | DL_LINK=" -ldl$DL_LINK" | |
17077 | ||
17078 | else | |
17079 | echo "$ac_t""no" 1>&6 | |
17080 | ||
17081 | for ac_func in shl_load | |
17082 | do | |
17083 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
17084 | echo "configure:17085: checking for $ac_func" >&5 | |
17085 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
17086 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17087 | else | |
17088 | cat > conftest.$ac_ext <<EOF | |
17089 | #line 17090 "configure" | |
17090 | #include "confdefs.h" | |
17091 | /* System header to define __stub macros and hopefully few prototypes, | |
17092 | which can conflict with char $ac_func(); below. */ | |
17093 | #include <assert.h> | |
17094 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17095 | /* We use char because int might match the return type of a gcc2 | |
17096 | builtin and then its argument prototype would still apply. */ | |
17097 | char $ac_func(); | |
17098 | ||
17099 | int main() { | |
17100 | ||
17101 | /* The GNU C library defines this for functions which it implements | |
17102 | to always fail with ENOSYS. Some functions are actually named | |
17103 | something starting with __ and the normal name is an alias. */ | |
17104 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17105 | choke me | |
17106 | #else | |
17107 | $ac_func(); | |
17108 | #endif | |
17109 | ||
17110 | ; return 0; } | |
17111 | EOF | |
17112 | if { (eval echo configure:17113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17113 | rm -rf conftest* | |
17114 | eval "ac_cv_func_$ac_func=yes" | |
17115 | else | |
17116 | echo "configure: failed program was:" >&5 | |
17117 | cat conftest.$ac_ext >&5 | |
17118 | rm -rf conftest* | |
17119 | eval "ac_cv_func_$ac_func=no" | |
17120 | fi | |
17121 | rm -f conftest* | |
17122 | fi | |
17123 | ||
17124 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17125 | echo "$ac_t""yes" 1>&6 | |
17126 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17127 | cat >> confdefs.h <<EOF | |
17128 | #define $ac_tr_func 1 | |
17129 | EOF | |
17130 | ||
17131 | cat >> confdefs.h <<\EOF | |
17132 | #define HAVE_SHL_LOAD 1 | |
17133 | EOF | |
17134 | ||
17135 | HAVE_SHL_FUNCS=1 | |
17136 | ||
17137 | else | |
17138 | echo "$ac_t""no" 1>&6 | |
17139 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
17140 | echo "configure:17141: checking for dld in -lshl_load" >&5 | |
17141 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` | |
17142 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17143 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17144 | else | |
17145 | ac_save_LIBS="$LIBS" | |
17146 | LIBS="-lshl_load $LIBS" | |
17147 | cat > conftest.$ac_ext <<EOF | |
17148 | #line 17149 "configure" | |
17149 | #include "confdefs.h" | |
17150 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17151 | /* We use char because int might match the return type of a gcc2 | |
17152 | builtin and then its argument prototype would still apply. */ | |
17153 | char dld(); | |
17154 | ||
17155 | int main() { | |
17156 | dld() | |
17157 | ; return 0; } | |
17158 | EOF | |
17159 | if { (eval echo configure:17160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17160 | rm -rf conftest* | |
17161 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17162 | else | |
17163 | echo "configure: failed program was:" >&5 | |
17164 | cat conftest.$ac_ext >&5 | |
17165 | rm -rf conftest* | |
17166 | eval "ac_cv_lib_$ac_lib_var=no" | |
17167 | fi | |
17168 | rm -f conftest* | |
17169 | LIBS="$ac_save_LIBS" | |
17170 | ||
17171 | fi | |
17172 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17173 | echo "$ac_t""yes" 1>&6 | |
17174 | ||
17175 | HAVE_SHL_FUNCS=1 | |
17176 | DL_LINK=" -ldld$DL_LINK" | |
17177 | ||
17178 | else | |
17179 | echo "$ac_t""no" 1>&6 | |
17180 | fi | |
17181 | ||
17182 | ||
17183 | fi | |
17184 | done | |
17185 | ||
17186 | ||
17187 | fi | |
17188 | ||
17189 | ||
17190 | fi | |
17191 | done | |
17192 | ||
17193 | ||
17194 | if test "$HAVE_DL_FUNCS" = 1; then | |
17195 | for ac_func in dlerror | |
17196 | do | |
17197 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
17198 | echo "configure:17199: checking for $ac_func" >&5 | |
17199 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
17200 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17201 | else | |
17202 | cat > conftest.$ac_ext <<EOF | |
17203 | #line 17204 "configure" | |
17204 | #include "confdefs.h" | |
17205 | /* System header to define __stub macros and hopefully few prototypes, | |
17206 | which can conflict with char $ac_func(); below. */ | |
17207 | #include <assert.h> | |
17208 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17209 | /* We use char because int might match the return type of a gcc2 | |
17210 | builtin and then its argument prototype would still apply. */ | |
17211 | char $ac_func(); | |
17212 | ||
17213 | int main() { | |
17214 | ||
17215 | /* The GNU C library defines this for functions which it implements | |
17216 | to always fail with ENOSYS. Some functions are actually named | |
17217 | something starting with __ and the normal name is an alias. */ | |
17218 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17219 | choke me | |
17220 | #else | |
17221 | $ac_func(); | |
17222 | #endif | |
17223 | ||
17224 | ; return 0; } | |
17225 | EOF | |
17226 | if { (eval echo configure:17227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17227 | rm -rf conftest* | |
17228 | eval "ac_cv_func_$ac_func=yes" | |
17229 | else | |
17230 | echo "configure: failed program was:" >&5 | |
17231 | cat conftest.$ac_ext >&5 | |
17232 | rm -rf conftest* | |
17233 | eval "ac_cv_func_$ac_func=no" | |
17234 | fi | |
17235 | rm -f conftest* | |
17236 | fi | |
17237 | ||
17238 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17239 | echo "$ac_t""yes" 1>&6 | |
17240 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17241 | cat >> confdefs.h <<EOF | |
17242 | #define $ac_tr_func 1 | |
17243 | EOF | |
17244 | cat >> confdefs.h <<\EOF | |
17245 | #define HAVE_DLERROR 1 | |
17246 | EOF | |
17247 | ||
17248 | else | |
17249 | echo "$ac_t""no" 1>&6 | |
17250 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
17251 | echo "configure:17252: checking for dlerror in -ldl" >&5 | |
17252 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` | |
17253 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17254 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17255 | else | |
17256 | ac_save_LIBS="$LIBS" | |
17257 | LIBS="-ldl $LIBS" | |
17258 | cat > conftest.$ac_ext <<EOF | |
17259 | #line 17260 "configure" | |
17260 | #include "confdefs.h" | |
17261 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17262 | /* We use char because int might match the return type of a gcc2 | |
17263 | builtin and then its argument prototype would still apply. */ | |
17264 | char dlerror(); | |
17265 | ||
17266 | int main() { | |
17267 | dlerror() | |
17268 | ; return 0; } | |
17269 | EOF | |
17270 | if { (eval echo configure:17271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
17271 | rm -rf conftest* | |
17272 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17273 | else | |
17274 | echo "configure: failed program was:" >&5 | |
17275 | cat conftest.$ac_ext >&5 | |
17276 | rm -rf conftest* | |
17277 | eval "ac_cv_lib_$ac_lib_var=no" | |
17278 | fi | |
17279 | rm -f conftest* | |
17280 | LIBS="$ac_save_LIBS" | |
17281 | ||
17282 | fi | |
17283 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17284 | echo "$ac_t""yes" 1>&6 | |
17285 | cat >> confdefs.h <<\EOF | |
17286 | #define HAVE_DLERROR 1 | |
17287 | EOF | |
17288 | ||
17289 | else | |
17290 | echo "$ac_t""no" 1>&6 | |
17291 | fi | |
17292 | ||
17293 | fi | |
17294 | done | |
17295 | ||
17296 | fi | |
17297 | fi | |
17298 | ||
17299 | if test "$HAVE_DL_FUNCS" = 0; then | |
17300 | if test "$HAVE_SHL_FUNCS" = 0; then | |
17301 | if test "$USE_UNIX" = 1; then | |
17302 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 | |
17303 | wxUSE_DYNLIB_CLASS=no | |
17304 | else | |
17305 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 | |
17306 | fi | |
17307 | fi | |
17308 | fi | |
17309 | fi | |
17310 | fi | |
17311 | ||
17312 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
17313 | cat >> confdefs.h <<\EOF | |
17314 | #define wxUSE_DYNLIB_CLASS 1 | |
17315 | EOF | |
17316 | ||
17317 | else | |
17318 | wxUSE_ODBC=no | |
17319 | wxUSE_SERIAL=no | |
17320 | fi | |
17321 | ||
17322 | ||
17323 | if test "$wxUSE_FONTMAP" = "yes" ; then | |
17324 | cat >> confdefs.h <<\EOF | |
17325 | #define wxUSE_FONTMAP 1 | |
17326 | EOF | |
17327 | ||
17328 | fi | |
17329 | ||
17330 | if test "$wxUSE_UNICODE" = "yes" ; then | |
17331 | cat >> confdefs.h <<\EOF | |
17332 | #define wxUSE_UNICODE 1 | |
17333 | EOF | |
17334 | ||
17335 | fi | |
17336 | ||
17337 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
17338 | cat >> confdefs.h <<\EOF | |
17339 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
17340 | EOF | |
17341 | ||
17342 | fi | |
17343 | ||
17344 | ||
17345 | if test "$wxUSE_SERIAL" = "yes" ; then | |
17346 | cat >> confdefs.h <<\EOF | |
17347 | #define wxUSE_SERIAL 1 | |
17348 | EOF | |
17349 | ||
17350 | fi | |
17351 | ||
17352 | ||
17353 | IODBC_C_SRC="" | |
17354 | if test "$wxUSE_ODBC" = "yes" ; then | |
17355 | cat >> confdefs.h <<\EOF | |
17356 | #define wxUSE_ODBC 1 | |
17357 | EOF | |
17358 | ||
17359 | WXODBCFLAG="-D_IODBC_" | |
17360 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
17361 | fi | |
17362 | ||
17363 | ||
17364 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
17365 | cat >> confdefs.h <<\EOF | |
17366 | #define wxUSE_POSTSCRIPT 1 | |
17367 | EOF | |
17368 | ||
17369 | fi | |
17370 | ||
17371 | cat >> confdefs.h <<\EOF | |
17372 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
17373 | EOF | |
17374 | ||
17375 | ||
17376 | cat >> confdefs.h <<\EOF | |
17377 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
17378 | EOF | |
17379 | ||
17380 | ||
17381 | ||
17382 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
17383 | cat >> confdefs.h <<\EOF | |
17384 | #define wxUSE_CONSTRAINTS 1 | |
17385 | EOF | |
17386 | ||
17387 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
17388 | fi | |
17389 | ||
17390 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
17391 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
17392 | echo "configure: warning: MDI is not supported for wxUNIVERSAL yet... disabled" 1>&2 | |
17393 | wxUSE_MDI_ARCHITECTURE=no | |
17394 | fi | |
17395 | ||
17396 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
17397 | cat >> confdefs.h <<\EOF | |
17398 | #define wxUSE_MDI_ARCHITECTURE 1 | |
17399 | EOF | |
17400 | ||
17401 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" | |
17402 | fi | |
17403 | fi | |
17404 | ||
17405 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
17406 | cat >> confdefs.h <<\EOF | |
17407 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
17408 | EOF | |
17409 | ||
17410 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
17411 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
17412 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
17413 | fi | |
17414 | fi | |
17415 | ||
17416 | if test "$wxUSE_HELP" = "yes"; then | |
17417 | cat >> confdefs.h <<\EOF | |
17418 | #define wxUSE_HELP 1 | |
17419 | EOF | |
17420 | ||
17421 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
17422 | ||
17423 | if test "$wxUSE_MSW" = 1; then | |
17424 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then | |
17425 | ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'` | |
17426 | echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6 | |
17427 | echo "configure:17428: checking for htmlhelp.h" >&5 | |
17428 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
17429 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17430 | else | |
17431 | cat > conftest.$ac_ext <<EOF | |
17432 | #line 17433 "configure" | |
17433 | #include "confdefs.h" | |
17434 | #include <htmlhelp.h> | |
17435 | EOF | |
17436 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
17437 | { (eval echo configure:17438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
17438 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
17439 | if test -z "$ac_err"; then | |
17440 | rm -rf conftest* | |
17441 | eval "ac_cv_header_$ac_safe=yes" | |
17442 | else | |
17443 | echo "$ac_err" >&5 | |
17444 | echo "configure: failed program was:" >&5 | |
17445 | cat conftest.$ac_ext >&5 | |
17446 | rm -rf conftest* | |
17447 | eval "ac_cv_header_$ac_safe=no" | |
17448 | fi | |
17449 | rm -f conftest* | |
17450 | fi | |
17451 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
17452 | echo "$ac_t""yes" 1>&6 | |
17453 | ||
17454 | cat >> confdefs.h <<\EOF | |
17455 | #define wxUSE_MS_HTML_HELP 1 | |
17456 | EOF | |
17457 | ||
17458 | ||
17459 | else | |
17460 | echo "$ac_t""no" 1>&6 | |
17461 | ||
17462 | echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2 | |
17463 | wxUSE_MS_HTML_HELP=no | |
17464 | ||
17465 | fi | |
17466 | ||
17467 | fi | |
17468 | fi | |
17469 | ||
17470 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
17471 | if test "$wxUSE_HTML" = "yes"; then | |
17472 | cat >> confdefs.h <<\EOF | |
17473 | #define wxUSE_WXHTML_HELP 1 | |
17474 | EOF | |
17475 | ||
17476 | else | |
17477 | echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2 | |
17478 | wxUSE_WXHTML_HELP=no | |
17479 | fi | |
17480 | fi | |
17481 | fi | |
17482 | ||
17483 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
17484 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
17485 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 | |
17486 | else | |
17487 | cat >> confdefs.h <<\EOF | |
17488 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
17489 | EOF | |
17490 | ||
17491 | fi | |
17492 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
17493 | fi | |
17494 | ||
17495 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
17496 | cat >> confdefs.h <<\EOF | |
17497 | #define wxUSE_PROLOGIO 1 | |
17498 | EOF | |
17499 | ||
17500 | fi | |
17501 | ||
17502 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
17503 | cat >> confdefs.h <<\EOF | |
17504 | #define wxUSE_RESOURCES 1 | |
17505 | EOF | |
17506 | ||
17507 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" | |
17508 | fi | |
17509 | ||
17510 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
17511 | cat >> confdefs.h <<\EOF | |
17512 | #define wxUSE_X_RESOURCES 1 | |
17513 | EOF | |
17514 | ||
17515 | fi | |
17516 | ||
17517 | ||
17518 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ | |
17519 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
17520 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
17521 | for ac_hdr in ole2.h | |
17522 | do | |
17523 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
17524 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
17525 | echo "configure:17526: checking for $ac_hdr" >&5 | |
17526 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
17527 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17528 | else | |
17529 | cat > conftest.$ac_ext <<EOF | |
17530 | #line 17531 "configure" | |
17531 | #include "confdefs.h" | |
17532 | #include <$ac_hdr> | |
17533 | EOF | |
17534 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
17535 | { (eval echo configure:17536: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
17536 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
17537 | if test -z "$ac_err"; then | |
17538 | rm -rf conftest* | |
17539 | eval "ac_cv_header_$ac_safe=yes" | |
17540 | else | |
17541 | echo "$ac_err" >&5 | |
17542 | echo "configure: failed program was:" >&5 | |
17543 | cat conftest.$ac_ext >&5 | |
17544 | rm -rf conftest* | |
17545 | eval "ac_cv_header_$ac_safe=no" | |
17546 | fi | |
17547 | rm -f conftest* | |
17548 | fi | |
17549 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
17550 | echo "$ac_t""yes" 1>&6 | |
17551 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
17552 | cat >> confdefs.h <<EOF | |
17553 | #define $ac_tr_hdr 1 | |
17554 | EOF | |
17555 | ||
17556 | else | |
17557 | echo "$ac_t""no" 1>&6 | |
17558 | fi | |
17559 | done | |
17560 | ||
17561 | ||
17562 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
17563 | if test "$GCC" = yes ; then | |
17564 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" | |
17565 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" | |
17566 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" | |
17567 | cat >> confdefs.h <<\EOF | |
17568 | #define wxUSE_OLE 1 | |
17569 | EOF | |
17570 | ||
17571 | ||
17572 | fi | |
17573 | ||
17574 | cat >> confdefs.h <<\EOF | |
17575 | #define wxUSE_DATAOBJ 1 | |
17576 | EOF | |
17577 | ||
17578 | else | |
17579 | echo "configure: warning: Some features disabled because OLE headers not found" 1>&2 | |
17580 | ||
17581 | wxUSE_CLIPBOARD=no | |
17582 | wxUSE_DRAG_AND_DROP=no | |
17583 | wxUSE_DATAOBJ=no | |
17584 | fi | |
17585 | ||
17586 | if test "$wxUSE_METAFILE" = "yes"; then | |
17587 | cat >> confdefs.h <<\EOF | |
17588 | #define wxUSE_METAFILE 1 | |
17589 | EOF | |
17590 | ||
17591 | ||
17592 | cat >> confdefs.h <<\EOF | |
17593 | #define wxUSE_ENH_METAFILE 1 | |
17594 | EOF | |
17595 | ||
17596 | fi | |
17597 | fi | |
17598 | ||
17599 | if test "$wxUSE_IPC" = "yes"; then | |
17600 | if test "$wxUSE_SOCKETS" != "yes"; then | |
17601 | echo "configure: warning: wxWindows IPC classes require sockets" 1>&2 | |
17602 | fi | |
17603 | ||
17604 | cat >> confdefs.h <<\EOF | |
17605 | #define wxUSE_IPC 1 | |
17606 | EOF | |
17607 | ||
17608 | fi | |
17609 | ||
17610 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
17611 | cat >> confdefs.h <<\EOF | |
17612 | #define wxUSE_CLIPBOARD 1 | |
17613 | EOF | |
17614 | ||
17615 | ||
17616 | cat >> confdefs.h <<\EOF | |
17617 | #define wxUSE_DATAOBJ 1 | |
17618 | EOF | |
17619 | ||
17620 | fi | |
17621 | ||
17622 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
17623 | if test "$wxUSE_GTK" = 1; then | |
17624 | if test "$WXGTK12" != 1; then | |
17625 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2 | |
17626 | wxUSE_DRAG_AND_DROP=no | |
17627 | fi | |
17628 | fi | |
17629 | ||
17630 | if test "$wxUSE_MOTIF" = 1; then | |
17631 | echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2 | |
17632 | wxUSE_DRAG_AND_DROP=no | |
17633 | fi | |
17634 | ||
17635 | if test "$wxUSE_MAC" = 1; then | |
17636 | echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2 | |
17637 | wxUSE_DRAG_AND_DROP=no | |
17638 | fi | |
17639 | ||
17640 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
17641 | cat >> confdefs.h <<\EOF | |
17642 | #define wxUSE_DRAG_AND_DROP 1 | |
17643 | EOF | |
17644 | ||
17645 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
17646 | fi | |
17647 | ||
17648 | fi | |
17649 | ||
17650 | if test "$wxUSE_SPLINES" = "yes" ; then | |
17651 | cat >> confdefs.h <<\EOF | |
17652 | #define wxUSE_SPLINES 1 | |
17653 | EOF | |
17654 | ||
17655 | fi | |
17656 | ||
17657 | ||
17658 | USES_CONTROLS=0 | |
17659 | if test "$wxUSE_CONTROLS" = "yes"; then | |
17660 | USES_CONTROLS=1 | |
17661 | fi | |
17662 | ||
17663 | if test "$wxUSE_ACCEL" = "yes"; then | |
17664 | cat >> confdefs.h <<\EOF | |
17665 | #define wxUSE_ACCEL 1 | |
17666 | EOF | |
17667 | ||
17668 | USES_CONTROLS=1 | |
17669 | fi | |
17670 | ||
17671 | if test "$wxUSE_BUTTON" = "yes"; then | |
17672 | cat >> confdefs.h <<\EOF | |
17673 | #define wxUSE_BUTTON 1 | |
17674 | EOF | |
17675 | ||
17676 | USES_CONTROLS=1 | |
17677 | fi | |
17678 | ||
17679 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
17680 | cat >> confdefs.h <<\EOF | |
17681 | #define wxUSE_BMPBUTTON 1 | |
17682 | EOF | |
17683 | ||
17684 | USES_CONTROLS=1 | |
17685 | fi | |
17686 | ||
17687 | if test "$wxUSE_CALCTRL" = "yes"; then | |
17688 | cat >> confdefs.h <<\EOF | |
17689 | #define wxUSE_CALENDARCTRL 1 | |
17690 | EOF | |
17691 | ||
17692 | USES_CONTROLS=1 | |
17693 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
17694 | fi | |
17695 | ||
17696 | if test "$wxUSE_CARET" = "yes"; then | |
17697 | cat >> confdefs.h <<\EOF | |
17698 | #define wxUSE_CARET 1 | |
17699 | EOF | |
17700 | ||
17701 | USES_CONTROLS=1 | |
17702 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
17703 | fi | |
17704 | ||
17705 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
17706 | cat >> confdefs.h <<\EOF | |
17707 | #define wxUSE_COMBOBOX 1 | |
17708 | EOF | |
17709 | ||
17710 | USES_CONTROLS=1 | |
17711 | fi | |
17712 | ||
17713 | if test "$wxUSE_CHOICE" = "yes"; then | |
17714 | cat >> confdefs.h <<\EOF | |
17715 | #define wxUSE_CHOICE 1 | |
17716 | EOF | |
17717 | ||
17718 | USES_CONTROLS=1 | |
17719 | fi | |
17720 | ||
17721 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
17722 | cat >> confdefs.h <<\EOF | |
17723 | #define wxUSE_CHECKBOX 1 | |
17724 | EOF | |
17725 | ||
17726 | USES_CONTROLS=1 | |
17727 | fi | |
17728 | ||
17729 | if test "$wxUSE_CHECKLST" = "yes"; then | |
17730 | cat >> confdefs.h <<\EOF | |
17731 | #define wxUSE_CHECKLISTBOX 1 | |
17732 | EOF | |
17733 | ||
17734 | USES_CONTROLS=1 | |
17735 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
17736 | fi | |
17737 | ||
17738 | if test "$wxUSE_GAUGE" = "yes"; then | |
17739 | cat >> confdefs.h <<\EOF | |
17740 | #define wxUSE_GAUGE 1 | |
17741 | EOF | |
17742 | ||
17743 | USES_CONTROLS=1 | |
17744 | fi | |
17745 | ||
17746 | if test "$wxUSE_NEW_GRID" = "yes"; then | |
17747 | wxUSE_GRID="yes" | |
17748 | cat >> confdefs.h <<\EOF | |
17749 | #define wxUSE_NEW_GRID 1 | |
17750 | EOF | |
17751 | ||
17752 | USES_CONTROLS=1 | |
17753 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" | |
17754 | fi | |
17755 | ||
17756 | if test "$wxUSE_GRID" = "yes"; then | |
17757 | cat >> confdefs.h <<\EOF | |
17758 | #define wxUSE_GRID 1 | |
17759 | EOF | |
17760 | ||
17761 | USES_CONTROLS=1 | |
17762 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
17763 | fi | |
17764 | ||
17765 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
17766 | cat >> confdefs.h <<\EOF | |
17767 | #define wxUSE_IMAGLIST 1 | |
17768 | EOF | |
17769 | ||
17770 | fi | |
17771 | ||
17772 | if test "$wxUSE_LISTBOX" = "yes"; then | |
17773 | cat >> confdefs.h <<\EOF | |
17774 | #define wxUSE_LISTBOX 1 | |
17775 | EOF | |
17776 | ||
17777 | USES_CONTROLS=1 | |
17778 | fi | |
17779 | ||
17780 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
17781 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
17782 | cat >> confdefs.h <<\EOF | |
17783 | #define wxUSE_LISTCTRL 1 | |
17784 | EOF | |
17785 | ||
17786 | USES_CONTROLS=1 | |
17787 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
17788 | else | |
17789 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 | |
17790 | fi | |
17791 | fi | |
17792 | ||
17793 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
17794 | cat >> confdefs.h <<\EOF | |
17795 | #define wxUSE_NOTEBOOK 1 | |
17796 | EOF | |
17797 | ||
17798 | USES_CONTROLS=1 | |
17799 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
17800 | fi | |
17801 | ||
17802 | if test "$wxUSE_PROPSHEET" = "yes"; then | |
17803 | cat >> confdefs.h <<\EOF | |
17804 | #define wxUSE_PROPSHEET 1 | |
17805 | EOF | |
17806 | ||
17807 | USES_CONTROLS=1 | |
17808 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist" | |
17809 | fi | |
17810 | ||
17811 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
17812 | cat >> confdefs.h <<\EOF | |
17813 | #define wxUSE_RADIOBOX 1 | |
17814 | EOF | |
17815 | ||
17816 | USES_CONTROLS=1 | |
17817 | fi | |
17818 | ||
17819 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
17820 | cat >> confdefs.h <<\EOF | |
17821 | #define wxUSE_RADIOBTN 1 | |
17822 | EOF | |
17823 | ||
17824 | USES_CONTROLS=1 | |
17825 | fi | |
17826 | ||
17827 | if test "$wxUSE_SASH" = "yes"; then | |
17828 | cat >> confdefs.h <<\EOF | |
17829 | #define wxUSE_SASH 1 | |
17830 | EOF | |
17831 | ||
17832 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
17833 | fi | |
17834 | ||
17835 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
17836 | cat >> confdefs.h <<\EOF | |
17837 | #define wxUSE_SCROLLBAR 1 | |
17838 | EOF | |
17839 | ||
17840 | USES_CONTROLS=1 | |
17841 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" | |
17842 | fi | |
17843 | ||
17844 | if test "$wxUSE_SLIDER" = "yes"; then | |
17845 | cat >> confdefs.h <<\EOF | |
17846 | #define wxUSE_SLIDER 1 | |
17847 | EOF | |
17848 | ||
17849 | USES_CONTROLS=1 | |
17850 | fi | |
17851 | ||
17852 | if test "$wxUSE_SPINBTN" = "yes"; then | |
17853 | cat >> confdefs.h <<\EOF | |
17854 | #define wxUSE_SPINBTN 1 | |
17855 | EOF | |
17856 | ||
17857 | USES_CONTROLS=1 | |
17858 | fi | |
17859 | ||
17860 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
17861 | cat >> confdefs.h <<\EOF | |
17862 | #define wxUSE_SPINCTRL 1 | |
17863 | EOF | |
17864 | ||
17865 | USES_CONTROLS=1 | |
17866 | fi | |
17867 | ||
17868 | if test "$wxUSE_SPLITTER" = "yes"; then | |
17869 | cat >> confdefs.h <<\EOF | |
17870 | #define wxUSE_SPLITTER 1 | |
17871 | EOF | |
17872 | ||
17873 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
17874 | fi | |
17875 | ||
17876 | if test "$wxUSE_STATBMP" = "yes"; then | |
17877 | cat >> confdefs.h <<\EOF | |
17878 | #define wxUSE_STATBMP 1 | |
17879 | EOF | |
17880 | ||
17881 | USES_CONTROLS=1 | |
17882 | fi | |
17883 | ||
17884 | if test "$wxUSE_STATBOX" = "yes"; then | |
17885 | cat >> confdefs.h <<\EOF | |
17886 | #define wxUSE_STATBOX 1 | |
17887 | EOF | |
17888 | ||
17889 | USES_CONTROLS=1 | |
17890 | fi | |
17891 | ||
17892 | if test "$wxUSE_STATTEXT" = "yes"; then | |
17893 | cat >> confdefs.h <<\EOF | |
17894 | #define wxUSE_STATTEXT 1 | |
17895 | EOF | |
17896 | ||
17897 | USES_CONTROLS=1 | |
17898 | fi | |
17899 | ||
17900 | if test "$wxUSE_STATLINE" = "yes"; then | |
17901 | if test "$wxUSE_WINE" = 1 ; then | |
17902 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 | |
17903 | else | |
17904 | cat >> confdefs.h <<\EOF | |
17905 | #define wxUSE_STATLINE 1 | |
17906 | EOF | |
17907 | ||
17908 | USES_CONTROLS=1 | |
17909 | fi | |
17910 | fi | |
17911 | ||
17912 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
17913 | cat >> confdefs.h <<\EOF | |
17914 | #define wxUSE_STATUSBAR 1 | |
17915 | EOF | |
17916 | ||
17917 | USES_CONTROLS=1 | |
17918 | ||
17919 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
17920 | fi | |
17921 | ||
17922 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
17923 | cat >> confdefs.h <<\EOF | |
17924 | #define wxUSE_TAB_DIALOG 1 | |
17925 | EOF | |
17926 | ||
17927 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
17928 | fi | |
17929 | ||
17930 | if test "$wxUSE_TEXTCTRL" = "yes"; then | |
17931 | cat >> confdefs.h <<\EOF | |
17932 | #define wxUSE_TEXTCTRL 1 | |
17933 | EOF | |
17934 | ||
17935 | USES_CONTROLS=1 | |
17936 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
17937 | fi | |
17938 | ||
17939 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
17940 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_UNIVERSAL" = "yes"; then | |
17941 | echo "configure: warning: Toggle button not yet supported under Mac OS X or wxUNIVERSAL... disabled" 1>&2 | |
17942 | wxUSE_TOGGLEBTN=no | |
17943 | fi | |
17944 | ||
17945 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
17946 | cat >> confdefs.h <<\EOF | |
17947 | #define wxUSE_TOGGLEBTN 1 | |
17948 | EOF | |
17949 | ||
17950 | USES_CONTROLS=1 | |
17951 | fi | |
17952 | fi | |
17953 | ||
17954 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then | |
17955 | cat >> confdefs.h <<\EOF | |
17956 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
17957 | EOF | |
17958 | ||
17959 | wxUSE_TOOLBAR="yes" | |
17960 | USES_CONTROLS=1 | |
17961 | fi | |
17962 | ||
17963 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
17964 | cat >> confdefs.h <<\EOF | |
17965 | #define wxUSE_TOOLBAR 1 | |
17966 | EOF | |
17967 | ||
17968 | USES_CONTROLS=1 | |
17969 | ||
17970 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
17971 | wxUSE_TOOLBAR_NATIVE="yes" | |
17972 | fi | |
17973 | ||
17974 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then | |
17975 | cat >> confdefs.h <<\EOF | |
17976 | #define wxUSE_TOOLBAR_NATIVE 1 | |
17977 | EOF | |
17978 | ||
17979 | USES_CONTROLS=1 | |
17980 | fi | |
17981 | ||
17982 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
17983 | fi | |
17984 | ||
17985 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
17986 | if test "$wxUSE_MOTIF" = 1; then | |
17987 | echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2 | |
17988 | else | |
17989 | if test "$wxUSE_WINE" = 1; then | |
17990 | echo "configure: warning: wxTooltip not supported under WINE" 1>&2 | |
17991 | else | |
17992 | cat >> confdefs.h <<\EOF | |
17993 | #define wxUSE_TOOLTIPS 1 | |
17994 | EOF | |
17995 | ||
17996 | fi | |
17997 | fi | |
17998 | fi | |
17999 | ||
18000 | if test "$wxUSE_TREECTRL" = "yes"; then | |
18001 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
18002 | cat >> confdefs.h <<\EOF | |
18003 | #define wxUSE_TREECTRL 1 | |
18004 | EOF | |
18005 | ||
18006 | USES_CONTROLS=1 | |
18007 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
18008 | else | |
18009 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 | |
18010 | fi | |
18011 | fi | |
18012 | ||
18013 | if test "$wxUSE_POPUPWIN" = "yes"; then | |
18014 | if test "$wxUSE_MAC" = 1; then | |
18015 | echo "configure: warning: Popup window is not yet supported under Mac OS" 1>&2 | |
18016 | else | |
18017 | cat >> confdefs.h <<\EOF | |
18018 | #define wxUSE_POPUPWIN 1 | |
18019 | EOF | |
18020 | ||
18021 | USES_CONTROLS=1 | |
18022 | fi | |
18023 | fi | |
18024 | ||
18025 | if test "$USES_CONTROLS" = 1; then | |
18026 | cat >> confdefs.h <<\EOF | |
18027 | #define wxUSE_CONTROLS 1 | |
18028 | EOF | |
18029 | ||
18030 | fi | |
18031 | ||
18032 | ||
18033 | if test "$wxUSE_TREELAYOUT" = "yes"; then | |
18034 | cat >> confdefs.h <<\EOF | |
18035 | #define wxUSE_TREELAYOUT 1 | |
18036 | EOF | |
18037 | ||
18038 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay" | |
18039 | fi | |
18040 | ||
18041 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
18042 | cat >> confdefs.h <<\EOF | |
18043 | #define wxUSE_DRAGIMAGE 1 | |
18044 | EOF | |
18045 | ||
18046 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
18047 | fi | |
18048 | ||
18049 | if test "$wxUSE_MENUS" = "yes"; then | |
18050 | cat >> confdefs.h <<\EOF | |
18051 | #define wxUSE_MENUS 1 | |
18052 | EOF | |
18053 | ||
18054 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" | |
18055 | fi | |
18056 | ||
18057 | if test "$wxUSE_METAFILE" = "yes"; then | |
18058 | cat >> confdefs.h <<\EOF | |
18059 | #define wxUSE_METAFILE 1 | |
18060 | EOF | |
18061 | ||
18062 | fi | |
18063 | ||
18064 | if test "$wxUSE_MIMETYPE" = "yes"; then | |
18065 | cat >> confdefs.h <<\EOF | |
18066 | #define wxUSE_MIMETYPE 1 | |
18067 | EOF | |
18068 | ||
18069 | fi | |
18070 | ||
18071 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then | |
18072 | cat >> confdefs.h <<\EOF | |
18073 | #define wxUSE_SYSTEM_OPTIONS 1 | |
18074 | EOF | |
18075 | ||
18076 | fi | |
18077 | ||
18078 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
18079 | cat >> confdefs.h <<\EOF | |
18080 | #define wxUSE_MINIFRAME 1 | |
18081 | EOF | |
18082 | ||
18083 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
18084 | fi | |
18085 | ||
18086 | if test "$wxUSE_HTML" = "yes"; then | |
18087 | cat >> confdefs.h <<\EOF | |
18088 | #define wxUSE_HTML 1 | |
18089 | EOF | |
18090 | ||
18091 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
18092 | fi | |
18093 | ||
18094 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
18095 | cat >> confdefs.h <<\EOF | |
18096 | #define wxUSE_VALIDATORS 1 | |
18097 | EOF | |
18098 | ||
18099 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
18100 | fi | |
18101 | ||
18102 | if test "$wxUSE_PALETTE" = "yes" ; then | |
18103 | cat >> confdefs.h <<\EOF | |
18104 | #define wxUSE_PALETTE 1 | |
18105 | EOF | |
18106 | ||
18107 | fi | |
18108 | ||
18109 | if test "$wxUSE_IMAGE" = "yes" ; then | |
18110 | cat >> confdefs.h <<\EOF | |
18111 | #define wxUSE_IMAGE 1 | |
18112 | EOF | |
18113 | ||
18114 | fi | |
18115 | ||
18116 | if test "$wxUSE_GIF" = "yes" ; then | |
18117 | cat >> confdefs.h <<\EOF | |
18118 | #define wxUSE_GIF 1 | |
18119 | EOF | |
18120 | ||
18121 | fi | |
18122 | ||
18123 | if test "$wxUSE_PCX" = "yes" ; then | |
18124 | cat >> confdefs.h <<\EOF | |
18125 | #define wxUSE_PCX 1 | |
18126 | EOF | |
18127 | ||
18128 | fi | |
18129 | ||
18130 | if test "$wxUSE_PNM" = "yes" ; then | |
18131 | cat >> confdefs.h <<\EOF | |
18132 | #define wxUSE_PNM 1 | |
18133 | EOF | |
18134 | ||
18135 | fi | |
18136 | ||
18137 | if test "$wxUSE_XPM" = "yes" ; then | |
18138 | cat >> confdefs.h <<\EOF | |
18139 | #define wxUSE_XPM 1 | |
18140 | EOF | |
18141 | ||
18142 | fi | |
18143 | ||
18144 | ||
18145 | if test "$wxUSE_CHOICEDLG" = "yes"; then | |
18146 | cat >> confdefs.h <<\EOF | |
18147 | #define wxUSE_CHOICEDLG 1 | |
18148 | EOF | |
18149 | ||
18150 | fi | |
18151 | ||
18152 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
18153 | cat >> confdefs.h <<\EOF | |
18154 | #define wxUSE_COLOURDLG 1 | |
18155 | EOF | |
18156 | ||
18157 | fi | |
18158 | ||
18159 | if test "$wxUSE_FILEDLG" = "yes"; then | |
18160 | cat >> confdefs.h <<\EOF | |
18161 | #define wxUSE_FILEDLG 1 | |
18162 | EOF | |
18163 | ||
18164 | fi | |
18165 | ||
18166 | if test "$wxUSE_FINDREPLDLG" = "yes"; then | |
18167 | cat >> confdefs.h <<\EOF | |
18168 | #define wxUSE_FINDREPLDLG 1 | |
18169 | EOF | |
18170 | ||
18171 | fi | |
18172 | ||
18173 | if test "$wxUSE_FONTDLG" = "yes"; then | |
18174 | cat >> confdefs.h <<\EOF | |
18175 | #define wxUSE_FONTDLG 1 | |
18176 | EOF | |
18177 | ||
18178 | fi | |
18179 | ||
18180 | if test "$wxUSE_DIRDLG" = "yes"; then | |
18181 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
18182 | echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2 | |
18183 | else | |
18184 | if test "$wxUSE_TREECTRL" != "yes"; then | |
18185 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
18186 | else | |
18187 | cat >> confdefs.h <<\EOF | |
18188 | #define wxUSE_DIRDLG 1 | |
18189 | EOF | |
18190 | ||
18191 | fi | |
18192 | fi | |
18193 | fi | |
18194 | ||
18195 | if test "$wxUSE_MSGDLG" = "yes"; then | |
18196 | cat >> confdefs.h <<\EOF | |
18197 | #define wxUSE_MSGDLG 1 | |
18198 | EOF | |
18199 | ||
18200 | fi | |
18201 | ||
18202 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
18203 | cat >> confdefs.h <<\EOF | |
18204 | #define wxUSE_NUMBERDLG 1 | |
18205 | EOF | |
18206 | ||
18207 | fi | |
18208 | ||
18209 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
18210 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
18211 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
18212 | else | |
18213 | cat >> confdefs.h <<\EOF | |
18214 | #define wxUSE_PROGRESSDLG 1 | |
18215 | EOF | |
18216 | ||
18217 | fi | |
18218 | fi | |
18219 | ||
18220 | if test "$wxUSE_SPLASH" = "yes"; then | |
18221 | cat >> confdefs.h <<\EOF | |
18222 | #define wxUSE_SPLASH 1 | |
18223 | EOF | |
18224 | ||
18225 | fi | |
18226 | ||
18227 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
18228 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
18229 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
18230 | else | |
18231 | cat >> confdefs.h <<\EOF | |
18232 | #define wxUSE_STARTUP_TIPS 1 | |
18233 | EOF | |
18234 | ||
18235 | fi | |
18236 | fi | |
18237 | ||
18238 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
18239 | cat >> confdefs.h <<\EOF | |
18240 | #define wxUSE_TEXTDLG 1 | |
18241 | EOF | |
18242 | ||
18243 | fi | |
18244 | ||
18245 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
18246 | cat >> confdefs.h <<\EOF | |
18247 | #define wxUSE_WIZARDDLG 1 | |
18248 | EOF | |
18249 | ||
18250 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
18251 | fi | |
18252 | ||
18253 | ||
18254 | if test "$cross_compiling" = "yes"; then | |
18255 | OSINFO="\"$host\"" | |
18256 | else | |
18257 | OSINFO=`uname -s -r -m` | |
18258 | OSINFO="\"$OSINFO\"" | |
18259 | fi | |
18260 | ||
18261 | cat >> confdefs.h <<EOF | |
18262 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
18263 | EOF | |
18264 | ||
18265 | ||
18266 | ||
18267 | if test "x$prefix" != "xNONE"; then | |
18268 | wxPREFIX=$prefix | |
18269 | else | |
18270 | wxPREFIX=$ac_default_prefix | |
18271 | fi | |
18272 | ||
18273 | cat >> confdefs.h <<EOF | |
18274 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
18275 | EOF | |
18276 | ||
18277 | ||
18278 | ||
18279 | ||
18280 | ||
18281 | if test "$wxUSE_MAC" = 1 ; then | |
18282 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" | |
18283 | fi | |
18284 | ||
18285 | ||
18286 | LIBS="$ZLIB_LINK$POSIX4_LINK$INET_LINK$WCHAR_LINK$THREADS_LINK$DL_LINK -lm$LIBS" | |
18287 | ||
18288 | if test "$wxUSE_GUI" = "yes"; then | |
18289 | ||
18290 | LIBS=" $GUI_TK_LIBRARY$PNG_LINK$JPEG_LINK$TIFF_LINK$FREETYPE_LINK$LIBS" | |
18291 | ||
18292 | ||
18293 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \ | |
18294 | drawing dynamic erase event exec font image \ | |
18295 | minimal richedit rotate widgets" | |
18296 | ||
18297 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" | |
18298 | else | |
18299 | SAMPLES_SUBDIRS="console" | |
18300 | fi | |
18301 | ||
18302 | ||
18303 | INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \ | |
18304 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ | |
18305 | $FREETYPE_INCLUDE $TOOLKIT_INCLUDE" | |
18306 | ||
18307 | if test "$wxUSE_GTK" = 1; then | |
18308 | WXCONFIG_INCLUDE= | |
18309 | else | |
18310 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
18311 | fi | |
18312 | ||
18313 | if test "$GXX" = yes ; then | |
18314 | CXXWARNINGS="-Wall" | |
18315 | fi | |
18316 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG$PROFILE $OPTIMISE $INCLUDES" | |
18317 | ||
18318 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
18319 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
18320 | ||
18321 | LDFLAGS="$LDFLAGS$PROFILE" | |
18322 | ||
18323 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
18324 | ||
18325 | ||
18326 | ||
18327 | ||
18328 | ||
18329 | ||
18330 | ||
18331 | ||
18332 | ||
18333 | ||
18334 | ||
18335 | ||
18336 | ||
18337 | ||
18338 | ||
18339 | ||
18340 | ||
18341 | ||
18342 | ||
18343 | ||
18344 | ||
18345 | ||
18346 | ||
18347 | ||
18348 | ||
18349 | ||
18350 | ||
18351 | ||
18352 | ||
18353 | ||
18354 | ||
18355 | ||
18356 | ||
18357 | ||
18358 | ||
18359 | ||
18360 | ||
18361 | ||
18362 | ||
18363 | ||
18364 | ||
18365 | ||
18366 | ||
18367 | ||
18368 | ||
18369 | ||
18370 | ||
18371 | ||
18372 | ||
18373 | ||
18374 | ||
18375 | ||
18376 | ||
18377 | ||
18378 | ||
18379 | ||
18380 | ||
18381 | ||
18382 | ||
18383 | ||
18384 | ||
18385 | ||
18386 | ||
18387 | ||
18388 | ||
18389 | ||
18390 | ||
18391 | ||
18392 | ||
18393 | ||
18394 | ||
18395 | ||
18396 | ||
18397 | ||
18398 | ||
18399 | ||
18400 | ||
18401 | ||
18402 | ||
18403 | ||
18404 | ||
18405 | ||
18406 | ||
18407 | ||
18408 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
18409 | echo "configure:18410: checking whether ${MAKE-make} sets \${MAKE}" >&5 | |
18410 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` | |
18411 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
18412 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18413 | else | |
18414 | cat > conftestmake <<\EOF | |
18415 | all: | |
18416 | @echo 'ac_maketemp="${MAKE}"' | |
18417 | EOF | |
18418 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
18419 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
18420 | if test -n "$ac_maketemp"; then | |
18421 | eval ac_cv_prog_make_${ac_make}_set=yes | |
18422 | else | |
18423 | eval ac_cv_prog_make_${ac_make}_set=no | |
18424 | fi | |
18425 | rm -f conftestmake | |
18426 | fi | |
18427 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
18428 | echo "$ac_t""yes" 1>&6 | |
18429 | SET_MAKE= | |
18430 | else | |
18431 | echo "$ac_t""no" 1>&6 | |
18432 | SET_MAKE="MAKE=${MAKE-make}" | |
18433 | fi | |
18434 | ||
18435 | ||
18436 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then | |
18437 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
18438 | fi | |
18439 | ||
18440 | ||
18441 | ||
18442 | if test "$wxUSE_GUI" = "yes"; then | |
18443 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS | |
18444 | wx_cv_path_ifs=$PATH_IFS | |
18445 | wx_cv_program_ext=$PROGRAM_EXT | |
18446 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
18447 | wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL | |
18448 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE | |
18449 | export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \ | |
18450 | wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype | |
18451 | subdirs="demos samples utils contrib" | |
18452 | ||
18453 | fi | |
18454 | ||
18455 | trap '' 1 2 15 | |
18456 | cat > confcache <<\EOF | |
18457 | # This file is a shell script that caches the results of configure | |
18458 | # tests run on this system so they can be shared between configure | |
18459 | # scripts and configure runs. It is not useful on other systems. | |
18460 | # If it contains results you don't want to keep, you may remove or edit it. | |
18461 | # | |
18462 | # By default, configure uses ./config.cache as the cache file, | |
18463 | # creating it if it does not exist already. You can give configure | |
18464 | # the --cache-file=FILE option to use a different cache file; that is | |
18465 | # what configure does when it calls configure scripts in | |
18466 | # subdirectories, so they share the cache. | |
18467 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
18468 | # config.status only pays attention to the cache file if you give it the | |
18469 | # --recheck option to rerun configure. | |
18470 | # | |
18471 | EOF | |
18472 | # The following way of writing the cache mishandles newlines in values, | |
18473 | # but we know of no workaround that is simple, portable, and efficient. | |
18474 | # So, don't put newlines in cache variables' values. | |
18475 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
18476 | # and sets the high bit in the cache file unless we assign to the vars. | |
18477 | (set) 2>&1 | | |
18478 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
18479 | *ac_space=\ *) | |
18480 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
18481 | # turns \\\\ into \\, and sed turns \\ into \). | |
18482 | sed -n \ | |
18483 | -e "s/'/'\\\\''/g" \ | |
18484 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
18485 | ;; | |
18486 | *) | |
18487 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
18488 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
18489 | ;; | |
18490 | esac >> confcache | |
18491 | if cmp -s $cache_file confcache; then | |
18492 | : | |
18493 | else | |
18494 | if test -w $cache_file; then | |
18495 | echo "updating cache $cache_file" | |
18496 | cat confcache > $cache_file | |
18497 | else | |
18498 | echo "not updating unwritable cache $cache_file" | |
18499 | fi | |
18500 | fi | |
18501 | rm -f confcache | |
18502 | ||
18503 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
18504 | ||
18505 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
18506 | # Let make expand exec_prefix. | |
18507 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
18508 | ||
18509 | # Any assignment to VPATH causes Sun make to only execute | |
18510 | # the first set of double-colon rules, so remove it if not needed. | |
18511 | # If there is a colon in the path, we need to keep it. | |
18512 | if test "x$srcdir" = x.; then | |
18513 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
18514 | fi | |
18515 | ||
18516 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
18517 | ||
18518 | DEFS=-DHAVE_CONFIG_H | |
18519 | ||
18520 | # Without the "./", some shells look in PATH for config.status. | |
18521 | : ${CONFIG_STATUS=./config.status} | |
18522 | ||
18523 | echo creating $CONFIG_STATUS | |
18524 | rm -f $CONFIG_STATUS | |
18525 | cat > $CONFIG_STATUS <<EOF | |
18526 | #! /bin/sh | |
18527 | # Generated automatically by configure. | |
18528 | # Run this file to recreate the current configuration. | |
18529 | # This directory was configured as follows, | |
18530 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
18531 | # | |
18532 | # $0 $ac_configure_args | |
18533 | # | |
18534 | # Compiler output produced by configure, useful for debugging | |
18535 | # configure, is in ./config.log if it exists. | |
18536 | ||
18537 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
18538 | for ac_option | |
18539 | do | |
18540 | case "\$ac_option" in | |
18541 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
18542 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
18543 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
18544 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
18545 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
18546 | exit 0 ;; | |
18547 | -help | --help | --hel | --he | --h) | |
18548 | echo "\$ac_cs_usage"; exit 0 ;; | |
18549 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
18550 | esac | |
18551 | done | |
18552 | ||
18553 | ac_given_srcdir=$srcdir | |
18554 | ac_given_INSTALL="$INSTALL" | |
18555 | ||
18556 | trap 'rm -fr `echo " | |
18557 | wx-config | |
18558 | src/make.env | |
18559 | src/makeprog.env | |
18560 | src/makelib.env | |
18561 | Makefile | |
18562 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
18563 | EOF | |
18564 | cat >> $CONFIG_STATUS <<EOF | |
18565 | ||
18566 | # Protect against being on the right side of a sed subst in config.status. | |
18567 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
18568 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
18569 | $ac_vpsub | |
18570 | $extrasub | |
18571 | s%@SHELL@%$SHELL%g | |
18572 | s%@CFLAGS@%$CFLAGS%g | |
18573 | s%@CPPFLAGS@%$CPPFLAGS%g | |
18574 | s%@CXXFLAGS@%$CXXFLAGS%g | |
18575 | s%@FFLAGS@%$FFLAGS%g | |
18576 | s%@DEFS@%$DEFS%g | |
18577 | s%@LDFLAGS@%$LDFLAGS%g | |
18578 | s%@LIBS@%$LIBS%g | |
18579 | s%@exec_prefix@%$exec_prefix%g | |
18580 | s%@prefix@%$prefix%g | |
18581 | s%@program_transform_name@%$program_transform_name%g | |
18582 | s%@bindir@%$bindir%g | |
18583 | s%@sbindir@%$sbindir%g | |
18584 | s%@libexecdir@%$libexecdir%g | |
18585 | s%@datadir@%$datadir%g | |
18586 | s%@sysconfdir@%$sysconfdir%g | |
18587 | s%@sharedstatedir@%$sharedstatedir%g | |
18588 | s%@localstatedir@%$localstatedir%g | |
18589 | s%@libdir@%$libdir%g | |
18590 | s%@includedir@%$includedir%g | |
18591 | s%@oldincludedir@%$oldincludedir%g | |
18592 | s%@infodir@%$infodir%g | |
18593 | s%@mandir@%$mandir%g | |
18594 | s%@host@%$host%g | |
18595 | s%@host_alias@%$host_alias%g | |
18596 | s%@host_cpu@%$host_cpu%g | |
18597 | s%@host_vendor@%$host_vendor%g | |
18598 | s%@host_os@%$host_os%g | |
18599 | s%@target@%$target%g | |
18600 | s%@target_alias@%$target_alias%g | |
18601 | s%@target_cpu@%$target_cpu%g | |
18602 | s%@target_vendor@%$target_vendor%g | |
18603 | s%@target_os@%$target_os%g | |
18604 | s%@build@%$build%g | |
18605 | s%@build_alias@%$build_alias%g | |
18606 | s%@build_cpu@%$build_cpu%g | |
18607 | s%@build_vendor@%$build_vendor%g | |
18608 | s%@build_os@%$build_os%g | |
18609 | s%@CC@%$CC%g | |
18610 | s%@CPP@%$CPP%g | |
18611 | s%@CXX@%$CXX%g | |
18612 | s%@RANLIB@%$RANLIB%g | |
18613 | s%@AR@%$AR%g | |
18614 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
18615 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
18616 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
18617 | s%@STRIP@%$STRIP%g | |
18618 | s%@YACC@%$YACC%g | |
18619 | s%@LEX@%$LEX%g | |
18620 | s%@LEXLIB@%$LEXLIB%g | |
18621 | s%@LN_S@%$LN_S%g | |
18622 | s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g | |
18623 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g | |
18624 | s%@GTK_LIBS@%$GTK_LIBS%g | |
18625 | s%@GTK_CONFIG@%$GTK_CONFIG%g | |
18626 | s%@X_CFLAGS@%$X_CFLAGS%g | |
18627 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
18628 | s%@X_LIBS@%$X_LIBS%g | |
18629 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
18630 | s%@RESCOMP@%$RESCOMP%g | |
18631 | s%@DEREZ@%$DEREZ%g | |
18632 | s%@CXXCPP@%$CXXCPP%g | |
18633 | s%@LEX_STEM@%$LEX_STEM%g | |
18634 | s%@PATH_IFS@%$PATH_IFS%g | |
18635 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
18636 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
18637 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
18638 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
18639 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
18640 | s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g | |
18641 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
18642 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
18643 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
18644 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g | |
18645 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g | |
18646 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
18647 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g | |
18648 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
18649 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
18650 | s%@WX_ALL@%$WX_ALL%g | |
18651 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
18652 | s%@SHARED_LD@%$SHARED_LD%g | |
18653 | s%@PIC_FLAG@%$PIC_FLAG%g | |
18654 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g | |
18655 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
18656 | s%@SONAME_FLAGS@%$SONAME_FLAGS%g | |
18657 | s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g | |
18658 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g | |
18659 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
18660 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
18661 | s%@USE_GUI@%$USE_GUI%g | |
18662 | s%@AFMINSTALL@%$AFMINSTALL%g | |
18663 | s%@TOOLKIT@%$TOOLKIT%g | |
18664 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
18665 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g | |
18666 | s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g | |
18667 | s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g | |
18668 | s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g | |
18669 | s%@cross_compiling@%$cross_compiling%g | |
18670 | s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g | |
18671 | s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g | |
18672 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g | |
18673 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
18674 | s%@GUIDIST@%$GUIDIST%g | |
18675 | s%@PORT_FILES@%$PORT_FILES%g | |
18676 | s%@DISTDIR@%$DISTDIR%g | |
18677 | s%@RPM_SPEC@%$RPM_SPEC%g | |
18678 | s%@RPM_FILES@%$RPM_FILES%g | |
18679 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g | |
18680 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g | |
18681 | s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g | |
18682 | s%@EXTRADEFS@%$EXTRADEFS%g | |
18683 | s%@RESFLAGS@%$RESFLAGS%g | |
18684 | s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g | |
18685 | s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g | |
18686 | s%@WX_RESOURCES_MACOSX_COMPILED@%$WX_RESOURCES_MACOSX_COMPILED%g | |
18687 | s%@LIBWXMACRES@%$LIBWXMACRES%g | |
18688 | s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g | |
18689 | s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g | |
18690 | s%@DLLTOOL@%$DLLTOOL%g | |
18691 | s%@AS@%$AS%g | |
18692 | s%@NM@%$NM%g | |
18693 | s%@LD@%$LD%g | |
18694 | s%@MAKEINFO@%$MAKEINFO%g | |
18695 | s%@SET_MAKE@%$SET_MAKE%g | |
18696 | s%@subdirs@%$subdirs%g | |
18697 | ||
18698 | CEOF | |
18699 | EOF | |
18700 | ||
18701 | cat >> $CONFIG_STATUS <<\EOF | |
18702 | ||
18703 | # Split the substitutions into bite-sized pieces for seds with | |
18704 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
18705 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
18706 | ac_file=1 # Number of current file. | |
18707 | ac_beg=1 # First line for current file. | |
18708 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
18709 | ac_more_lines=: | |
18710 | ac_sed_cmds="" | |
18711 | while $ac_more_lines; do | |
18712 | if test $ac_beg -gt 1; then | |
18713 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
18714 | else | |
18715 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
18716 | fi | |
18717 | if test ! -s conftest.s$ac_file; then | |
18718 | ac_more_lines=false | |
18719 | rm -f conftest.s$ac_file | |
18720 | else | |
18721 | if test -z "$ac_sed_cmds"; then | |
18722 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
18723 | else | |
18724 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
18725 | fi | |
18726 | ac_file=`expr $ac_file + 1` | |
18727 | ac_beg=$ac_end | |
18728 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
18729 | fi | |
18730 | done | |
18731 | if test -z "$ac_sed_cmds"; then | |
18732 | ac_sed_cmds=cat | |
18733 | fi | |
18734 | EOF | |
18735 | ||
18736 | cat >> $CONFIG_STATUS <<EOF | |
18737 | ||
18738 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
18739 | src/make.env | |
18740 | src/makeprog.env | |
18741 | src/makelib.env | |
18742 | Makefile | |
18743 | "} | |
18744 | EOF | |
18745 | cat >> $CONFIG_STATUS <<\EOF | |
18746 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
18747 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
18748 | case "$ac_file" in | |
18749 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
18750 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
18751 | *) ac_file_in="${ac_file}.in" ;; | |
18752 | esac | |
18753 | ||
18754 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
18755 | ||
18756 | # Remove last slash and all that follows it. Not all systems have dirname. | |
18757 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
18758 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
18759 | # The file is in a subdirectory. | |
18760 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
18761 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
18762 | # A "../" for each directory in $ac_dir_suffix. | |
18763 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
18764 | else | |
18765 | ac_dir_suffix= ac_dots= | |
18766 | fi | |
18767 | ||
18768 | case "$ac_given_srcdir" in | |
18769 | .) srcdir=. | |
18770 | if test -z "$ac_dots"; then top_srcdir=. | |
18771 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
18772 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
18773 | *) # Relative path. | |
18774 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
18775 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
18776 | esac | |
18777 | ||
18778 | case "$ac_given_INSTALL" in | |
18779 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
18780 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
18781 | esac | |
18782 | ||
18783 | echo creating "$ac_file" | |
18784 | rm -f "$ac_file" | |
18785 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
18786 | case "$ac_file" in | |
18787 | *Makefile*) ac_comsub="1i\\ | |
18788 | # $configure_input" ;; | |
18789 | *) ac_comsub= ;; | |
18790 | esac | |
18791 | ||
18792 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
18793 | sed -e "$ac_comsub | |
18794 | s%@configure_input@%$configure_input%g | |
18795 | s%@srcdir@%$srcdir%g | |
18796 | s%@top_srcdir@%$top_srcdir%g | |
18797 | s%@INSTALL@%$INSTALL%g | |
18798 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
18799 | fi; done | |
18800 | rm -f conftest.s* | |
18801 | ||
18802 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
18803 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
18804 | # | |
18805 | # ac_d sets the value in "#define NAME VALUE" lines. | |
18806 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
18807 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
18808 | ac_dC='\3' | |
18809 | ac_dD='%g' | |
18810 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
18811 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
18812 | ac_uB='\([ ]\)%\1#\2define\3' | |
18813 | ac_uC=' ' | |
18814 | ac_uD='\4%g' | |
18815 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
18816 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
18817 | ac_eB='$%\1#\2define\3' | |
18818 | ac_eC=' ' | |
18819 | ac_eD='%g' | |
18820 | ||
18821 | if test "${CONFIG_HEADERS+set}" != set; then | |
18822 | EOF | |
18823 | cat >> $CONFIG_STATUS <<EOF | |
18824 | CONFIG_HEADERS="setup.h:setup.h.in" | |
18825 | EOF | |
18826 | cat >> $CONFIG_STATUS <<\EOF | |
18827 | fi | |
18828 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
18829 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
18830 | case "$ac_file" in | |
18831 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
18832 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
18833 | *) ac_file_in="${ac_file}.in" ;; | |
18834 | esac | |
18835 | ||
18836 | echo creating $ac_file | |
18837 | ||
18838 | rm -f conftest.frag conftest.in conftest.out | |
18839 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
18840 | cat $ac_file_inputs > conftest.in | |
18841 | ||
18842 | EOF | |
18843 | ||
18844 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
18845 | # the proper values into config.h.in to produce config.h. And first: | |
18846 | # Protect against being on the right side of a sed subst in config.status. | |
18847 | # Protect against being in an unquoted here document in config.status. | |
18848 | rm -f conftest.vals | |
18849 | cat > conftest.hdr <<\EOF | |
18850 | s/[\\&%]/\\&/g | |
18851 | s%[\\$`]%\\&%g | |
18852 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
18853 | s%ac_d%ac_u%gp | |
18854 | s%ac_u%ac_e%gp | |
18855 | EOF | |
18856 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
18857 | rm -f conftest.hdr | |
18858 | ||
18859 | # This sed command replaces #undef with comments. This is necessary, for | |
18860 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
18861 | # on some systems where configure will not decide to define it. | |
18862 | cat >> conftest.vals <<\EOF | |
18863 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
18864 | EOF | |
18865 | ||
18866 | # Break up conftest.vals because some shells have a limit on | |
18867 | # the size of here documents, and old seds have small limits too. | |
18868 | ||
18869 | rm -f conftest.tail | |
18870 | while : | |
18871 | do | |
18872 | ac_lines=`grep -c . conftest.vals` | |
18873 | # grep -c gives empty output for an empty file on some AIX systems. | |
18874 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
18875 | # Write a limited-size here document to conftest.frag. | |
18876 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
18877 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
18878 | echo 'CEOF | |
18879 | sed -f conftest.frag conftest.in > conftest.out | |
18880 | rm -f conftest.in | |
18881 | mv conftest.out conftest.in | |
18882 | ' >> $CONFIG_STATUS | |
18883 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
18884 | rm -f conftest.vals | |
18885 | mv conftest.tail conftest.vals | |
18886 | done | |
18887 | rm -f conftest.vals | |
18888 | ||
18889 | cat >> $CONFIG_STATUS <<\EOF | |
18890 | rm -f conftest.frag conftest.h | |
18891 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
18892 | cat conftest.in >> conftest.h | |
18893 | rm -f conftest.in | |
18894 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
18895 | echo "$ac_file is unchanged" | |
18896 | rm -f conftest.h | |
18897 | else | |
18898 | # Remove last slash and all that follows it. Not all systems have dirname. | |
18899 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
18900 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
18901 | # The file is in a subdirectory. | |
18902 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
18903 | fi | |
18904 | rm -f $ac_file | |
18905 | mv conftest.h $ac_file | |
18906 | fi | |
18907 | fi; done | |
18908 | ||
18909 | EOF | |
18910 | cat >> $CONFIG_STATUS <<EOF | |
18911 | ||
18912 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" | |
18913 | LN_S="${LN_S}" | |
18914 | ||
18915 | ||
18916 | EOF | |
18917 | cat >> $CONFIG_STATUS <<\EOF | |
18918 | ||
18919 | if test ! -h wx-config; then | |
18920 | chmod +x wx-config | |
18921 | mv wx-config wx${TOOLCHAIN_NAME}-config | |
18922 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
18923 | fi | |
18924 | ||
18925 | if test ! -d lib; then | |
18926 | mkdir lib | |
18927 | fi | |
18928 | if test ! -d lib/wx; then | |
18929 | mkdir lib/wx | |
18930 | fi | |
18931 | if test ! -d lib/wx/include; then | |
18932 | mkdir lib/wx/include | |
18933 | fi | |
18934 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then | |
18935 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
18936 | fi | |
18937 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then | |
18938 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
18939 | fi | |
18940 | if test -f setup.h; then | |
18941 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h | |
18942 | fi | |
18943 | ||
18944 | exit 0 | |
18945 | EOF | |
18946 | chmod +x $CONFIG_STATUS | |
18947 | rm -fr confdefs* $ac_clean_files | |
18948 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
18949 | ||
18950 | if test "$no_recursion" != yes; then | |
18951 | ||
18952 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
18953 | ac_sub_configure_args= | |
18954 | ac_prev= | |
18955 | for ac_arg in $ac_configure_args; do | |
18956 | if test -n "$ac_prev"; then | |
18957 | ac_prev= | |
18958 | continue | |
18959 | fi | |
18960 | case "$ac_arg" in | |
18961 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
18962 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
18963 | ac_prev=cache_file ;; | |
18964 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
18965 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
18966 | ;; | |
18967 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
18968 | ac_prev=srcdir ;; | |
18969 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
18970 | ;; | |
18971 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
18972 | esac | |
18973 | done | |
18974 | ||
18975 | for ac_config_dir in demos samples utils contrib; do | |
18976 | ||
18977 | # Do not complain, so a configure script can configure whichever | |
18978 | # parts of a large source tree are present. | |
18979 | if test ! -d $srcdir/$ac_config_dir; then | |
18980 | continue | |
18981 | fi | |
18982 | ||
18983 | echo configuring in $ac_config_dir | |
18984 | ||
18985 | case "$srcdir" in | |
18986 | .) ;; | |
18987 | *) | |
18988 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; | |
18989 | else | |
18990 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
18991 | fi | |
18992 | ;; | |
18993 | esac | |
18994 | ||
18995 | ac_popdir=`pwd` | |
18996 | cd $ac_config_dir | |
18997 | ||
18998 | # A "../" for each directory in /$ac_config_dir. | |
18999 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
19000 | ||
19001 | case "$srcdir" in | |
19002 | .) # No --srcdir option. We are building in place. | |
19003 | ac_sub_srcdir=$srcdir ;; | |
19004 | /*) # Absolute path. | |
19005 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
19006 | *) # Relative path. | |
19007 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; | |
19008 | esac | |
19009 | ||
19010 | # Check for guested configure; otherwise get Cygnus style configure. | |
19011 | if test -f $ac_sub_srcdir/configure; then | |
19012 | ac_sub_configure=$ac_sub_srcdir/configure | |
19013 | elif test -f $ac_sub_srcdir/configure.in; then | |
19014 | ac_sub_configure=$ac_configure | |
19015 | else | |
19016 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 | |
19017 | ac_sub_configure= | |
19018 | fi | |
19019 | ||
19020 | # The recursion is here. | |
19021 | if test -n "$ac_sub_configure"; then | |
19022 | ||
19023 | # Make the cache file name correct relative to the subdirectory. | |
19024 | case "$cache_file" in | |
19025 | /*) ac_sub_cache_file=$cache_file ;; | |
19026 | *) # Relative path. | |
19027 | ac_sub_cache_file="$ac_dots$cache_file" ;; | |
19028 | esac | |
19029 | case "$ac_given_INSTALL" in | |
19030 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
19031 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
19032 | esac | |
19033 | ||
19034 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" | |
19035 | # The eval makes quoting arguments work. | |
19036 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir | |
19037 | then : | |
19038 | else | |
19039 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
19040 | fi | |
19041 | fi | |
19042 | ||
19043 | cd $ac_popdir | |
19044 | done | |
19045 | fi | |
19046 | ||
19047 |