]>
Commit | Line | Data |
---|---|---|
10f2d63a VZ |
1 | #! /bin/sh |
2 | ||
2c6025bc | 3 | # From configure.in Id: configure.in |
10f2d63a VZ |
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 | ||
10f2d63a | 36 | |
422107f9 VZ |
37 | |
38 | ||
10f2d63a | 39 | |
6f72b082 OK |
40 | |
41 | ||
42 | # Configure paths for GTK+ | |
43 | # Owen Taylor 97-11-3 | |
10f2d63a VZ |
44 | |
45 | ||
46 | # Guess values for system-dependent variables and create Makefiles. | |
e8482f24 | 47 | # Generated automatically using autoconf version 2.13 |
10f2d63a VZ |
48 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
49 | # | |
50 | # This configure script is free software; the Free Software Foundation | |
51 | # gives unlimited permission to copy, distribute and modify it. | |
52 | ||
53 | # Defaults: | |
54 | ac_help= | |
55 | ac_default_prefix=/usr/local | |
56 | # Any additions from configure.in: | |
57 | ac_help="$ac_help | |
58 | --enable-gui use GUI classes" | |
59 | ac_help="$ac_help | |
60 | --with-gtk use GTK+" | |
61 | ac_help="$ac_help | |
62 | --with-motif use Motif/Lesstif" | |
b4085ce6 GD |
63 | ac_help="$ac_help |
64 | --with-mac use Mac OS X" | |
10f2d63a VZ |
65 | ac_help="$ac_help |
66 | --with-wine use WINE" | |
67 | ac_help="$ac_help | |
68 | --with-cygwin use Cygwin for MS-Windows" | |
69 | ac_help="$ac_help | |
70 | --with-mingw use GCC Minimal MS-Windows" | |
e07802fc VZ |
71 | ac_help="$ac_help |
72 | --with-pm use OS/2 Presentation Manager" | |
10f2d63a VZ |
73 | ac_help="$ac_help |
74 | --with-gtk-prefix=PFX Prefix where GTK is installed" | |
75 | ac_help="$ac_help | |
76 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed" | |
77 | ac_help="$ac_help | |
10f2d63a VZ |
78 | --with-libpng use libpng (PNG image format)" |
79 | ac_help="$ac_help | |
80 | --with-libjpeg use libjpeg (JPEG file format)" | |
81 | ac_help="$ac_help | |
c7a2bf27 RR |
82 | --with-libtiff use libtiff (TIFF file format)" |
83 | ac_help="$ac_help | |
3fed1840 RR |
84 | --with-freetype use freetype (font rasterizer)" |
85 | ac_help="$ac_help | |
10f2d63a VZ |
86 | --with-opengl use OpenGL (or Mesa)" |
87 | ac_help="$ac_help | |
b12915c1 VZ |
88 | --with-dmalloc use dmalloc library (www.letters.com/dmalloc)" |
89 | ac_help="$ac_help | |
90 | --with-zlib use zlib for LZW compression" | |
91 | ac_help="$ac_help | |
10f2d63a VZ |
92 | --with-odbc use the IODBC and wxODBC classes" |
93 | ac_help="$ac_help | |
94 | --enable-shared create shared library code" | |
95 | ac_help="$ac_help | |
00cf1208 RR |
96 | --enable-burnt_name create set name in shared library " |
97 | ac_help="$ac_help | |
10f2d63a VZ |
98 | --enable-optimise create optimised code" |
99 | ac_help="$ac_help | |
100 | --enable-debug same as debug_flag and debug_info" | |
101 | ac_help="$ac_help | |
102 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" | |
103 | ac_help="$ac_help | |
104 | --enable-debug_info create code with debugging information" | |
105 | ac_help="$ac_help | |
106 | --enable-debug_gdb create code with extra GDB debugging information" | |
107 | ac_help="$ac_help | |
108 | --enable-debug_cntxt use wxDebugContext" | |
109 | ac_help="$ac_help | |
110 | --enable-mem_tracing create code with memory tracing" | |
111 | ac_help="$ac_help | |
112 | --enable-profile create code with profiling information" | |
113 | ac_help="$ac_help | |
114 | --enable-no_rtti create code without RTTI information" | |
115 | ac_help="$ac_help | |
116 | --enable-no_exceptions create code without exceptions information" | |
117 | ac_help="$ac_help | |
118 | --enable-permissive compile code disregarding strict ANSI" | |
119 | ac_help="$ac_help | |
120 | --enable-no_deps create code without dependency information" | |
121 | ac_help="$ac_help | |
122 | --enable-intl use internationalization system" | |
123 | ac_help="$ac_help | |
124 | --enable-config use wxConfig (and derived) classes" | |
125 | ac_help="$ac_help | |
126 | --enable-sockets use socket/network classes" | |
127 | ac_help="$ac_help | |
10f2d63a VZ |
128 | --enable-ipc use interprocess communication (wxSocket etc.)" |
129 | ac_help="$ac_help | |
eb4efbdc VZ |
130 | --enable-dialupman use dialup network classes" |
131 | ac_help="$ac_help | |
10f2d63a VZ |
132 | --enable-apple_ieee use the Apple IEEE codec" |
133 | ac_help="$ac_help | |
134 | --enable-timedate use date/time classes" | |
135 | ac_help="$ac_help | |
136 | --enable-wave use wxWave class" | |
137 | ac_help="$ac_help | |
138 | --enable-fraction use wxFraction class" | |
139 | ac_help="$ac_help | |
140 | --enable-dynlib use wxLibrary class for DLL loading" | |
141 | ac_help="$ac_help | |
142 | --enable-longlong use wxLongLong class" | |
143 | ac_help="$ac_help | |
e8f65ba6 RR |
144 | --enable-geometry use geometry class" |
145 | ac_help="$ac_help | |
10f2d63a VZ |
146 | --enable-log use logging system" |
147 | ac_help="$ac_help | |
148 | --enable-streams use wxStream etc classes" | |
149 | ac_help="$ac_help | |
150 | --enable-file use wxFile classes" | |
151 | ac_help="$ac_help | |
152 | --enable-textfile use wxTextFile classes" | |
153 | ac_help="$ac_help | |
154 | --enable-unicode compile wxString with Unicode support" | |
155 | ac_help="$ac_help | |
156 | --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs" | |
157 | ac_help="$ac_help | |
158 | --enable-wxprintfv use wxWindows implementation of vprintf()" | |
159 | ac_help="$ac_help | |
10f2d63a VZ |
160 | --enable-std_iostreams use standard C++ stream classes" |
161 | ac_help="$ac_help | |
24528b0c VS |
162 | --enable-filesystem use virtual file systems classes" |
163 | ac_help="$ac_help | |
10f2d63a VZ |
164 | --enable-fs_inet use virtual HTTP/FTP filesystems" |
165 | ac_help="$ac_help | |
166 | --enable-fs_zip use virtual ZIP filesystems" | |
167 | ac_help="$ac_help | |
168 | --enable-zipstream use wxZipInputStream" | |
169 | ac_help="$ac_help | |
eb4efbdc VZ |
170 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException" |
171 | ac_help="$ac_help | |
10f2d63a VZ |
172 | --enable-threads use threads" |
173 | ac_help="$ac_help | |
174 | --enable-serial use class serialization" | |
175 | ac_help="$ac_help | |
176 | --enable-docview use document view architecture" | |
177 | ac_help="$ac_help | |
178 | --enable-help use help (using external browser at present)" | |
179 | ac_help="$ac_help | |
180 | --enable-constraints use layout-constraints system" | |
181 | ac_help="$ac_help | |
182 | --enable-printarch use printing architecture" | |
183 | ac_help="$ac_help | |
184 | --enable-mdi use multiple document interface architecture" | |
185 | ac_help="$ac_help | |
186 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" | |
187 | ac_help="$ac_help | |
188 | --enable-prologio use Prolog IO library" | |
189 | ac_help="$ac_help | |
190 | --enable-resources use wxWindows resources" | |
191 | ac_help="$ac_help | |
192 | --enable-xresources use X resources for save (default for gtk+)" | |
193 | ac_help="$ac_help | |
194 | --enable-clipboard use wxClipboard classes" | |
195 | ac_help="$ac_help | |
196 | --enable-dnd use Drag'n'Drop classes" | |
197 | ac_help="$ac_help | |
b64f0a5f RL |
198 | --enable-metafile use win32 metafiles" |
199 | ac_help="$ac_help | |
10f2d63a VZ |
200 | --enable-wxtree make wxTree library" |
201 | ac_help="$ac_help | |
202 | --enable-controls use all usual controls" | |
203 | ac_help="$ac_help | |
204 | --enable-accel use accelerators" | |
205 | ac_help="$ac_help | |
206 | --enable-caret use wxCaret class" | |
207 | ac_help="$ac_help | |
208 | --enable-bmpbutton use wxBitmapButton class" | |
209 | ac_help="$ac_help | |
210 | --enable-checkbox use wxCheckBox class" | |
211 | ac_help="$ac_help | |
212 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" | |
213 | ac_help="$ac_help | |
214 | --enable-choice use wxChoice class" | |
215 | ac_help="$ac_help | |
216 | --enable-combobox use wxComboBox classes" | |
217 | ac_help="$ac_help | |
218 | --enable-gauge use wxGauge class" | |
219 | ac_help="$ac_help | |
220 | --enable-grid use wxGrid class" | |
221 | ac_help="$ac_help | |
222 | --enable-newgrid use new wxGrid class" | |
223 | ac_help="$ac_help | |
224 | --enable-imaglist use wxImageList class" | |
225 | ac_help="$ac_help | |
226 | --enable-listbox use wxListBox class" | |
227 | ac_help="$ac_help | |
228 | --enable-listctrl use wxListCtrl class" | |
229 | ac_help="$ac_help | |
230 | --enable-notebook use wxNotebook class" | |
231 | ac_help="$ac_help | |
232 | --enable-radiobox use wxRadioBox class" | |
233 | ac_help="$ac_help | |
234 | --enable-radiobtn use wxRadioButton class" | |
235 | ac_help="$ac_help | |
236 | --enable-sash use wxSashWindow class" | |
237 | ac_help="$ac_help | |
238 | --enable-scrollbar use wxScrollBar class and scrollable windows" | |
239 | ac_help="$ac_help | |
240 | --enable-slider use wxSlider class" | |
241 | ac_help="$ac_help | |
242 | --enable-spinbtn use wxSpinButton class" | |
243 | ac_help="$ac_help | |
56cfaa52 RR |
244 | --enable-spinctrl use wxSpinCtrl class" |
245 | ac_help="$ac_help | |
10f2d63a VZ |
246 | --enable-splitter use wxSplitterWindow class" |
247 | ac_help="$ac_help | |
248 | --enable-statbmp use wxStaticBitmap class" | |
249 | ac_help="$ac_help | |
250 | --enable-statbox use wxStaticBox class" | |
251 | ac_help="$ac_help | |
252 | --enable-statline use wxStaticLine class" | |
253 | ac_help="$ac_help | |
254 | --enable-statusbar use wxStatusBar class" | |
255 | ac_help="$ac_help | |
256 | --enable-tabdialog use wxTabControl class" | |
257 | ac_help="$ac_help | |
1db8dc4a VZ |
258 | --enable-togglebtn use wxToggleButton class" |
259 | ac_help="$ac_help | |
10f2d63a VZ |
260 | --enable-toolbar use wxToolBar class" |
261 | ac_help="$ac_help | |
360d6699 VZ |
262 | --enable-tbarnative use native wxToolBar class" |
263 | ac_help="$ac_help | |
264 | --enable-tbarsmpl use wxToolBarSimple class" | |
265 | ac_help="$ac_help | |
10f2d63a VZ |
266 | --enable-treectrl use wxTreeCtrl class" |
267 | ac_help="$ac_help | |
268 | --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)" | |
269 | ac_help="$ac_help | |
270 | --enable-dirdlg use wxDirDialog" | |
271 | ac_help="$ac_help | |
272 | --enable-textdlg use wxTextDialog" | |
273 | ac_help="$ac_help | |
274 | --enable-tipdlg use startup tips" | |
275 | ac_help="$ac_help | |
276 | --enable-progressdlg use wxProgressDialog" | |
277 | ac_help="$ac_help | |
278 | --enable-miniframe use wxMiniFrame class" | |
279 | ac_help="$ac_help | |
280 | --enable-html use wxHTML sub-library" | |
281 | ac_help="$ac_help | |
282 | --enable-tooltips use wxToolTip class" | |
283 | ac_help="$ac_help | |
284 | --enable-splines use spline drawing code" | |
285 | ac_help="$ac_help | |
286 | --enable-validators use wxValidator and derived classes" | |
287 | ac_help="$ac_help | |
288 | --enable-busyinfo use wxBusyInfo" | |
289 | ac_help="$ac_help | |
f6bcfd97 BP |
290 | --enable-joystick compile in joystick support (Linux only)" |
291 | ac_help="$ac_help | |
10f2d63a VZ |
292 | --enable-gif use gif images (GIF file format)" |
293 | ac_help="$ac_help | |
294 | --enable-pcx use pcx images (PCX file format)" | |
295 | ac_help="$ac_help | |
296 | --enable-pnm use pnm images (PNM file format)" | |
6f72b082 OK |
297 | ac_help="$ac_help |
298 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
299 | ac_help="$ac_help | |
300 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
301 | ac_help="$ac_help | |
302 | --disable-gtktest Do not try to compile and run a test GTK program" | |
ab9b9eab VZ |
303 | ac_help="$ac_help |
304 | --with-x use the X Window System" | |
10f2d63a VZ |
305 | |
306 | # Initialize some variables set by options. | |
307 | # The variables have the same names as the options, with | |
308 | # dashes changed to underlines. | |
309 | build=NONE | |
310 | cache_file=./config.cache | |
311 | exec_prefix=NONE | |
312 | host=NONE | |
313 | no_create= | |
314 | nonopt=NONE | |
315 | no_recursion= | |
316 | prefix=NONE | |
317 | program_prefix=NONE | |
318 | program_suffix=NONE | |
319 | program_transform_name=s,x,x, | |
320 | silent= | |
321 | site= | |
322 | srcdir= | |
323 | target=NONE | |
324 | verbose= | |
325 | x_includes=NONE | |
326 | x_libraries=NONE | |
327 | bindir='${exec_prefix}/bin' | |
328 | sbindir='${exec_prefix}/sbin' | |
329 | libexecdir='${exec_prefix}/libexec' | |
330 | datadir='${prefix}/share' | |
331 | sysconfdir='${prefix}/etc' | |
332 | sharedstatedir='${prefix}/com' | |
333 | localstatedir='${prefix}/var' | |
334 | libdir='${exec_prefix}/lib' | |
335 | includedir='${prefix}/include' | |
336 | oldincludedir='/usr/include' | |
337 | infodir='${prefix}/info' | |
338 | mandir='${prefix}/man' | |
339 | ||
340 | # Initialize some other variables. | |
341 | subdirs= | |
342 | MFLAGS= MAKEFLAGS= | |
343 | SHELL=${CONFIG_SHELL-/bin/sh} | |
344 | # Maximum number of lines to put in a shell here document. | |
345 | ac_max_here_lines=12 | |
346 | ||
347 | ac_prev= | |
348 | for ac_option | |
349 | do | |
350 | ||
351 | # If the previous option needs an argument, assign it. | |
352 | if test -n "$ac_prev"; then | |
353 | eval "$ac_prev=\$ac_option" | |
354 | ac_prev= | |
355 | continue | |
356 | fi | |
357 | ||
358 | case "$ac_option" in | |
359 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
360 | *) ac_optarg= ;; | |
361 | esac | |
362 | ||
363 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
364 | ||
365 | case "$ac_option" in | |
366 | ||
367 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
368 | ac_prev=bindir ;; | |
369 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
370 | bindir="$ac_optarg" ;; | |
371 | ||
372 | -build | --build | --buil | --bui | --bu) | |
373 | ac_prev=build ;; | |
374 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
375 | build="$ac_optarg" ;; | |
376 | ||
377 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
378 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
379 | ac_prev=cache_file ;; | |
380 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
381 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
382 | cache_file="$ac_optarg" ;; | |
383 | ||
384 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
385 | ac_prev=datadir ;; | |
386 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
387 | | --da=*) | |
388 | datadir="$ac_optarg" ;; | |
389 | ||
390 | -disable-* | --disable-*) | |
391 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
392 | # Reject names that are not valid shell variable names. | |
393 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
394 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
395 | fi | |
396 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
397 | eval "enable_${ac_feature}=no" ;; | |
398 | ||
399 | -enable-* | --enable-*) | |
400 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
401 | # Reject names that are not valid shell variable names. | |
402 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
403 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
404 | fi | |
405 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
406 | case "$ac_option" in | |
407 | *=*) ;; | |
408 | *) ac_optarg=yes ;; | |
409 | esac | |
410 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
411 | ||
412 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
413 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
414 | | --exec | --exe | --ex) | |
415 | ac_prev=exec_prefix ;; | |
416 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
417 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
418 | | --exec=* | --exe=* | --ex=*) | |
419 | exec_prefix="$ac_optarg" ;; | |
420 | ||
421 | -gas | --gas | --ga | --g) | |
422 | # Obsolete; use --with-gas. | |
423 | with_gas=yes ;; | |
424 | ||
425 | -help | --help | --hel | --he) | |
426 | # Omit some internal or obsolete options to make the list less imposing. | |
427 | # This message is too long to be a string in the A/UX 3.1 sh. | |
428 | cat << EOF | |
429 | Usage: configure [options] [host] | |
430 | Options: [defaults in brackets after descriptions] | |
431 | Configuration: | |
432 | --cache-file=FILE cache test results in FILE | |
433 | --help print this message | |
434 | --no-create do not create output files | |
435 | --quiet, --silent do not print \`checking...' messages | |
436 | --version print the version of autoconf that created configure | |
437 | Directory and file names: | |
438 | --prefix=PREFIX install architecture-independent files in PREFIX | |
439 | [$ac_default_prefix] | |
440 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
441 | [same as prefix] | |
442 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
443 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
444 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
445 | --datadir=DIR read-only architecture-independent data in DIR | |
446 | [PREFIX/share] | |
447 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
448 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
449 | [PREFIX/com] | |
450 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
451 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
452 | --includedir=DIR C header files in DIR [PREFIX/include] | |
453 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
454 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
455 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
456 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
457 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
458 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
459 | --program-transform-name=PROGRAM | |
460 | run sed PROGRAM on installed program names | |
461 | EOF | |
462 | cat << EOF | |
463 | Host type: | |
464 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
465 | --host=HOST configure for HOST [guessed] | |
466 | --target=TARGET configure for TARGET [TARGET=HOST] | |
467 | Features and packages: | |
468 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
469 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
470 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
471 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
472 | --x-includes=DIR X include files are in DIR | |
473 | --x-libraries=DIR X library files are in DIR | |
474 | EOF | |
475 | if test -n "$ac_help"; then | |
476 | echo "--enable and --with options recognized:$ac_help" | |
477 | fi | |
478 | exit 0 ;; | |
479 | ||
480 | -host | --host | --hos | --ho) | |
481 | ac_prev=host ;; | |
482 | -host=* | --host=* | --hos=* | --ho=*) | |
483 | host="$ac_optarg" ;; | |
484 | ||
485 | -includedir | --includedir | --includedi | --included | --include \ | |
486 | | --includ | --inclu | --incl | --inc) | |
487 | ac_prev=includedir ;; | |
488 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
489 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
490 | includedir="$ac_optarg" ;; | |
491 | ||
492 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
493 | ac_prev=infodir ;; | |
494 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
495 | infodir="$ac_optarg" ;; | |
496 | ||
497 | -libdir | --libdir | --libdi | --libd) | |
498 | ac_prev=libdir ;; | |
499 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
500 | libdir="$ac_optarg" ;; | |
501 | ||
502 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
503 | | --libexe | --libex | --libe) | |
504 | ac_prev=libexecdir ;; | |
505 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
506 | | --libexe=* | --libex=* | --libe=*) | |
507 | libexecdir="$ac_optarg" ;; | |
508 | ||
509 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
510 | | --localstate | --localstat | --localsta | --localst \ | |
511 | | --locals | --local | --loca | --loc | --lo) | |
512 | ac_prev=localstatedir ;; | |
513 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
514 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
515 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
516 | localstatedir="$ac_optarg" ;; | |
517 | ||
518 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
519 | ac_prev=mandir ;; | |
520 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
521 | mandir="$ac_optarg" ;; | |
522 | ||
523 | -nfp | --nfp | --nf) | |
524 | # Obsolete; use --without-fp. | |
525 | with_fp=no ;; | |
526 | ||
527 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
528 | | --no-cr | --no-c) | |
529 | no_create=yes ;; | |
530 | ||
531 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
532 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
533 | no_recursion=yes ;; | |
534 | ||
535 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
536 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
537 | | --oldin | --oldi | --old | --ol | --o) | |
538 | ac_prev=oldincludedir ;; | |
539 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
540 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
541 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
542 | oldincludedir="$ac_optarg" ;; | |
543 | ||
544 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
545 | ac_prev=prefix ;; | |
546 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
547 | prefix="$ac_optarg" ;; | |
548 | ||
549 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
550 | | --program-pre | --program-pr | --program-p) | |
551 | ac_prev=program_prefix ;; | |
552 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
553 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
554 | program_prefix="$ac_optarg" ;; | |
555 | ||
556 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
557 | | --program-suf | --program-su | --program-s) | |
558 | ac_prev=program_suffix ;; | |
559 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
560 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
561 | program_suffix="$ac_optarg" ;; | |
562 | ||
563 | -program-transform-name | --program-transform-name \ | |
564 | | --program-transform-nam | --program-transform-na \ | |
565 | | --program-transform-n | --program-transform- \ | |
566 | | --program-transform | --program-transfor \ | |
567 | | --program-transfo | --program-transf \ | |
568 | | --program-trans | --program-tran \ | |
569 | | --progr-tra | --program-tr | --program-t) | |
570 | ac_prev=program_transform_name ;; | |
571 | -program-transform-name=* | --program-transform-name=* \ | |
572 | | --program-transform-nam=* | --program-transform-na=* \ | |
573 | | --program-transform-n=* | --program-transform-=* \ | |
574 | | --program-transform=* | --program-transfor=* \ | |
575 | | --program-transfo=* | --program-transf=* \ | |
576 | | --program-trans=* | --program-tran=* \ | |
577 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
578 | program_transform_name="$ac_optarg" ;; | |
579 | ||
580 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
581 | | -silent | --silent | --silen | --sile | --sil) | |
582 | silent=yes ;; | |
583 | ||
584 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
585 | ac_prev=sbindir ;; | |
586 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
587 | | --sbi=* | --sb=*) | |
588 | sbindir="$ac_optarg" ;; | |
589 | ||
590 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
591 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
592 | | --sharedst | --shareds | --shared | --share | --shar \ | |
593 | | --sha | --sh) | |
594 | ac_prev=sharedstatedir ;; | |
595 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
596 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
597 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
598 | | --sha=* | --sh=*) | |
599 | sharedstatedir="$ac_optarg" ;; | |
600 | ||
601 | -site | --site | --sit) | |
602 | ac_prev=site ;; | |
603 | -site=* | --site=* | --sit=*) | |
604 | site="$ac_optarg" ;; | |
605 | ||
606 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
607 | ac_prev=srcdir ;; | |
608 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
609 | srcdir="$ac_optarg" ;; | |
610 | ||
611 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
612 | | --syscon | --sysco | --sysc | --sys | --sy) | |
613 | ac_prev=sysconfdir ;; | |
614 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
615 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
616 | sysconfdir="$ac_optarg" ;; | |
617 | ||
618 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
619 | ac_prev=target ;; | |
620 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
621 | target="$ac_optarg" ;; | |
622 | ||
623 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
624 | verbose=yes ;; | |
625 | ||
626 | -version | --version | --versio | --versi | --vers) | |
e8482f24 | 627 | echo "configure generated by autoconf version 2.13" |
10f2d63a VZ |
628 | exit 0 ;; |
629 | ||
630 | -with-* | --with-*) | |
631 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
632 | # Reject names that are not valid shell variable names. | |
633 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
634 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
635 | fi | |
636 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
637 | case "$ac_option" in | |
638 | *=*) ;; | |
639 | *) ac_optarg=yes ;; | |
640 | esac | |
641 | eval "with_${ac_package}='$ac_optarg'" ;; | |
642 | ||
643 | -without-* | --without-*) | |
644 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
645 | # Reject names that are not valid shell variable names. | |
646 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
647 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
648 | fi | |
649 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
650 | eval "with_${ac_package}=no" ;; | |
651 | ||
652 | --x) | |
653 | # Obsolete; use --with-x. | |
654 | with_x=yes ;; | |
655 | ||
656 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
657 | | --x-incl | --x-inc | --x-in | --x-i) | |
658 | ac_prev=x_includes ;; | |
659 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
660 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
661 | x_includes="$ac_optarg" ;; | |
662 | ||
663 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
664 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
665 | ac_prev=x_libraries ;; | |
666 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
667 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
668 | x_libraries="$ac_optarg" ;; | |
669 | ||
670 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
671 | ;; | |
672 | ||
673 | *) | |
674 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
675 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
676 | fi | |
677 | if test "x$nonopt" != xNONE; then | |
678 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
679 | fi | |
680 | nonopt="$ac_option" | |
681 | ;; | |
682 | ||
683 | esac | |
684 | done | |
685 | ||
686 | if test -n "$ac_prev"; then | |
687 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
688 | fi | |
689 | ||
690 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
691 | ||
692 | # File descriptor usage: | |
693 | # 0 standard input | |
694 | # 1 file creation | |
695 | # 2 errors and warnings | |
696 | # 3 some systems may open it to /dev/tty | |
697 | # 4 used on the Kubota Titan | |
698 | # 6 checking for... messages and results | |
699 | # 5 compiler messages saved in config.log | |
700 | if test "$silent" = yes; then | |
701 | exec 6>/dev/null | |
702 | else | |
703 | exec 6>&1 | |
704 | fi | |
705 | exec 5>./config.log | |
706 | ||
707 | echo "\ | |
708 | This file contains any messages produced by compilers while | |
709 | running configure, to aid debugging if configure makes a mistake. | |
710 | " 1>&5 | |
711 | ||
712 | # Strip out --no-create and --no-recursion so they do not pile up. | |
713 | # Also quote any args containing shell metacharacters. | |
714 | ac_configure_args= | |
715 | for ac_arg | |
716 | do | |
717 | case "$ac_arg" in | |
718 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
719 | | --no-cr | --no-c) ;; | |
720 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
721 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
722 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
723 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
724 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
725 | esac | |
726 | done | |
727 | ||
728 | # NLS nuisances. | |
729 | # Only set these to C if already set. These must not be set unconditionally | |
730 | # because not all systems understand e.g. LANG=C (notably SCO). | |
731 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
732 | # Non-C LC_CTYPE values break the ctype check. | |
733 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
734 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
735 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
736 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
737 | ||
738 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
739 | rm -rf conftest* confdefs.h | |
740 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
741 | echo > confdefs.h | |
742 | ||
743 | # A filename unique to this package, relative to the directory that | |
744 | # configure is in, which we can look for to find out if srcdir is correct. | |
745 | ac_unique_file=wx-config.in | |
746 | ||
747 | # Find the source files, if location was not specified. | |
748 | if test -z "$srcdir"; then | |
749 | ac_srcdir_defaulted=yes | |
750 | # Try the directory containing this script, then its parent. | |
751 | ac_prog=$0 | |
752 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
753 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
754 | srcdir=$ac_confdir | |
755 | if test ! -r $srcdir/$ac_unique_file; then | |
756 | srcdir=.. | |
757 | fi | |
758 | else | |
759 | ac_srcdir_defaulted=no | |
760 | fi | |
761 | if test ! -r $srcdir/$ac_unique_file; then | |
762 | if test "$ac_srcdir_defaulted" = yes; then | |
763 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
764 | else | |
765 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
766 | fi | |
767 | fi | |
768 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
769 | ||
770 | # Prefer explicitly selected file to automatically selected ones. | |
771 | if test -z "$CONFIG_SITE"; then | |
772 | if test "x$prefix" != xNONE; then | |
773 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
774 | else | |
775 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
776 | fi | |
777 | fi | |
778 | for ac_site_file in $CONFIG_SITE; do | |
779 | if test -r "$ac_site_file"; then | |
780 | echo "loading site script $ac_site_file" | |
781 | . "$ac_site_file" | |
782 | fi | |
783 | done | |
784 | ||
785 | if test -r "$cache_file"; then | |
786 | echo "loading cache $cache_file" | |
787 | . $cache_file | |
788 | else | |
789 | echo "creating cache $cache_file" | |
790 | > $cache_file | |
791 | fi | |
792 | ||
793 | ac_ext=c | |
794 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
795 | ac_cpp='$CPP $CPPFLAGS' | |
796 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
797 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
798 | cross_compiling=$ac_cv_prog_cc_cross | |
799 | ||
800 | ac_exeext= | |
801 | ac_objext=o | |
802 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
803 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
804 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
805 | ac_n= ac_c=' | |
806 | ' ac_t=' ' | |
807 | else | |
808 | ac_n=-n ac_c= ac_t= | |
809 | fi | |
810 | else | |
811 | ac_n= ac_c='\c' ac_t= | |
812 | fi | |
813 | ||
814 | ||
815 | ||
7c66a493 VZ |
816 | ac_aux_dir= |
817 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
818 | if test -f $ac_dir/install-sh; then | |
819 | ac_aux_dir=$ac_dir | |
820 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
821 | break | |
822 | elif test -f $ac_dir/install.sh; then | |
823 | ac_aux_dir=$ac_dir | |
824 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
825 | break | |
826 | fi | |
827 | done | |
828 | if test -z "$ac_aux_dir"; then | |
829 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
830 | fi | |
831 | ac_config_guess=$ac_aux_dir/config.guess | |
832 | ac_config_sub=$ac_aux_dir/config.sub | |
833 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
834 | ||
835 | ||
836 | # Do some error checking and defaulting for the host and target type. | |
837 | # The inputs are: | |
838 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
839 | # | |
840 | # The rules are: | |
841 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
842 | # same time. | |
843 | # 2. Host defaults to nonopt. | |
844 | # 3. If nonopt is not specified, then host defaults to the current host, | |
845 | # as determined by config.guess. | |
846 | # 4. Target and build default to nonopt. | |
847 | # 5. If nonopt is not specified, then target and build default to host. | |
848 | ||
849 | # The aliases save the names the user supplied, while $host etc. | |
850 | # will get canonicalized. | |
851 | case $host---$target---$nonopt in | |
852 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
853 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
854 | esac | |
855 | ||
856 | ||
857 | # Make sure we can run config.sub. | |
858 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
859 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
860 | fi | |
861 | ||
862 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
1db8dc4a | 863 | echo "configure:864: checking host system type" >&5 |
7c66a493 VZ |
864 | |
865 | host_alias=$host | |
866 | case "$host_alias" in | |
867 | NONE) | |
868 | case $nonopt in | |
869 | NONE) | |
870 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
871 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
872 | fi ;; | |
873 | *) host_alias=$nonopt ;; | |
874 | esac ;; | |
875 | esac | |
876 | ||
877 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
878 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
879 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
880 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
881 | echo "$ac_t""$host" 1>&6 | |
882 | ||
883 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
1db8dc4a | 884 | echo "configure:885: checking target system type" >&5 |
7c66a493 VZ |
885 | |
886 | target_alias=$target | |
887 | case "$target_alias" in | |
888 | NONE) | |
889 | case $nonopt in | |
890 | NONE) target_alias=$host_alias ;; | |
891 | *) target_alias=$nonopt ;; | |
892 | esac ;; | |
893 | esac | |
894 | ||
895 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
896 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
897 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
898 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
899 | echo "$ac_t""$target" 1>&6 | |
900 | ||
901 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
1db8dc4a | 902 | echo "configure:903: checking build system type" >&5 |
7c66a493 VZ |
903 | |
904 | build_alias=$build | |
905 | case "$build_alias" in | |
906 | NONE) | |
907 | case $nonopt in | |
908 | NONE) build_alias=$host_alias ;; | |
909 | *) build_alias=$nonopt ;; | |
910 | esac ;; | |
911 | esac | |
912 | ||
913 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
914 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
915 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
916 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
917 | echo "$ac_t""$build" 1>&6 | |
918 | ||
919 | test "$host_alias" != "$target_alias" && | |
920 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
921 | NONENONEs,x,x, && | |
922 | program_prefix=${target_alias}- | |
923 | ||
924 | ||
10f2d63a VZ |
925 | |
926 | WX_MAJOR_VERSION_NUMBER=2 | |
37d403aa | 927 | WX_MINOR_VERSION_NUMBER=3 |
f6bcfd97 | 928 | WX_RELEASE_NUMBER=0 |
10f2d63a | 929 | |
10f2d63a | 930 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 931 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c RL |
932 | |
933 | WX_CURRENT=0 | |
934 | WX_REVISION=0 | |
935 | WX_AGE=0 | |
936 | ||
10f2d63a VZ |
937 | |
938 | ||
939 | USE_UNIX=1 | |
940 | USE_WIN32=0 | |
b12915c1 VZ |
941 | USE_BEOS=0 |
942 | ||
10f2d63a VZ |
943 | USE_LINUX= |
944 | USE_SGI= | |
945 | USE_HPUX= | |
946 | USE_SYSV= | |
947 | USE_SVR4= | |
948 | USE_AIX= | |
949 | USE_SUN= | |
950 | USE_SOLARIS= | |
951 | USE_SUNOS= | |
952 | USE_ALPHA= | |
953 | USE_OSF= | |
954 | USE_BSD= | |
955 | USE_FREEBSD= | |
f6bcfd97 | 956 | USE_NETBSD= |
10f2d63a VZ |
957 | USE_VMS= |
958 | USE_ULTRIX= | |
959 | USE_CYGWIN= | |
960 | USE_MINGW= | |
961 | USE_DATA_GENERAL= | |
962 | ||
ab9b9eab VZ |
963 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
964 | ||
b4085ce6 | 965 | ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF MAC WINE PM" |
10f2d63a VZ |
966 | |
967 | DEFAULT_wxUSE_GTK=0 | |
968 | DEFAULT_wxUSE_MOTIF=0 | |
969 | DEFAULT_wxUSE_MSW=0 | |
b4085ce6 | 970 | DEFAULT_wxUSE_MAC=0 |
10f2d63a | 971 | DEFAULT_wxUSE_WINE=0 |
e07802fc | 972 | DEFAULT_wxUSE_PM=0 |
10f2d63a VZ |
973 | |
974 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
975 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
976 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
b4085ce6 | 977 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
10f2d63a | 978 | DEFAULT_DEFAULT_wxUSE_WINE=0 |
e07802fc | 979 | DEFAULT_DEFAULT_wxUSE_PM=0 |
10f2d63a | 980 | |
d6a55c4b VZ |
981 | PROGRAM_EXT= |
982 | ||
10f2d63a VZ |
983 | case "${host}" in |
984 | *-hp-hpux* ) | |
985 | USE_HPUX=1 | |
986 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 987 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
988 | cat >> confdefs.h <<\EOF |
989 | #define __HPUX__ 1 | |
990 | EOF | |
991 | ||
992 | ;; | |
993 | *-*-linux* ) | |
994 | USE_LINUX=1 | |
995 | cat >> confdefs.h <<\EOF | |
996 | #define __LINUX__ 1 | |
997 | EOF | |
998 | ||
999 | TMP=`uname -m` | |
1000 | if test "x$TMP" = "xalpha"; then | |
1001 | USE_ALPHA=1 | |
1002 | cat >> confdefs.h <<\EOF | |
1003 | #define __ALPHA__ 1 | |
1004 | EOF | |
1005 | ||
1006 | fi | |
1007 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1008 | ;; | |
1009 | *-*-irix5* | *-*-irix6* ) | |
1010 | USE_SGI=1 | |
1011 | USE_SVR4=1 | |
1012 | cat >> confdefs.h <<\EOF | |
1013 | #define __SGI__ 1 | |
1014 | EOF | |
1015 | ||
1016 | cat >> confdefs.h <<\EOF | |
1017 | #define __SVR4__ 1 | |
1018 | EOF | |
1019 | ||
1020 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1021 | ;; | |
1022 | *-*-solaris2* ) | |
1023 | USE_SUN=1 | |
1024 | USE_SOLARIS=1 | |
1025 | USE_SVR4=1 | |
1026 | cat >> confdefs.h <<\EOF | |
1027 | #define __SUN__ 1 | |
1028 | EOF | |
1029 | ||
1030 | cat >> confdefs.h <<\EOF | |
1031 | #define __SOLARIS__ 1 | |
1032 | EOF | |
1033 | ||
1034 | cat >> confdefs.h <<\EOF | |
1035 | #define __SVR4__ 1 | |
1036 | EOF | |
1037 | ||
1038 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1039 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1040 | ;; |
1041 | *-*-sunos4* ) | |
1042 | USE_SUN=1 | |
1043 | USE_SUNOS=1 | |
1044 | USE_BSD=1 | |
1045 | cat >> confdefs.h <<\EOF | |
1046 | #define __SUN__ 1 | |
1047 | EOF | |
1048 | ||
1049 | cat >> confdefs.h <<\EOF | |
1050 | #define __SUNOS__ 1 | |
1051 | EOF | |
1052 | ||
1053 | cat >> confdefs.h <<\EOF | |
1054 | #define __BSD__ 1 | |
1055 | EOF | |
1056 | ||
1057 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1058 | ;; | |
f6bcfd97 | 1059 | *-*-freebsd*) |
10f2d63a VZ |
1060 | USE_BSD=1 |
1061 | USE_FREEBSD=1 | |
1062 | cat >> confdefs.h <<\EOF | |
1063 | #define __FREEBSD__ 1 | |
1064 | EOF | |
1065 | ||
1066 | cat >> confdefs.h <<\EOF | |
1067 | #define __BSD__ 1 | |
f6bcfd97 BP |
1068 | EOF |
1069 | ||
1070 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1071 | ;; | |
1072 | *-*-netbsd*) | |
1073 | USE_BSD=1 | |
1074 | USE_NETBSD=1 | |
1075 | cat >> confdefs.h <<\EOF | |
1076 | #define __FREEBSD__ 1 | |
1077 | EOF | |
1078 | ||
1079 | cat >> confdefs.h <<\EOF | |
1080 | #define __NETBSD__ 1 | |
10f2d63a VZ |
1081 | EOF |
1082 | ||
1083 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1084 | ;; | |
1085 | *-*-osf* ) | |
1086 | USE_ALPHA=1 | |
1087 | USE_OSF=1 | |
1088 | cat >> confdefs.h <<\EOF | |
1089 | #define __ALPHA__ 1 | |
1090 | EOF | |
1091 | ||
1092 | cat >> confdefs.h <<\EOF | |
1093 | #define __OSF__ 1 | |
1094 | EOF | |
1095 | ||
1096 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1097 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1098 | ;; |
1099 | *-*-dgux5* ) | |
1100 | USE_ALPHA=1 | |
1101 | USE_SVR4=1 | |
1102 | cat >> confdefs.h <<\EOF | |
1103 | #define __ALPHA__ 1 | |
1104 | EOF | |
1105 | ||
1106 | cat >> confdefs.h <<\EOF | |
1107 | #define __SVR4__ 1 | |
1108 | EOF | |
1109 | ||
1110 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1111 | ;; | |
1112 | *-*-sysv5* ) | |
1113 | USE_SYSV=1 | |
1114 | USE_SVR4=1 | |
1115 | cat >> confdefs.h <<\EOF | |
1116 | #define __SYSV__ 1 | |
1117 | EOF | |
1118 | ||
1119 | cat >> confdefs.h <<\EOF | |
1120 | #define __SVR4__ 1 | |
1121 | EOF | |
1122 | ||
1123 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1124 | ;; | |
1125 | *-*-aix* ) | |
1126 | USE_AIX=1 | |
1127 | USE_SYSV=1 | |
1128 | USE_SVR4=1 | |
1129 | cat >> confdefs.h <<\EOF | |
1130 | #define __AIX__ 1 | |
1131 | EOF | |
1132 | ||
1133 | cat >> confdefs.h <<\EOF | |
1134 | #define __SYSV__ 1 | |
1135 | EOF | |
1136 | ||
1137 | cat >> confdefs.h <<\EOF | |
1138 | #define __SVR4__ 1 | |
1139 | EOF | |
1140 | ||
1141 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1142 | ;; | |
1143 | ||
7eef8db2 | 1144 | *-*-cygwin32* | *-*-mingw32* ) |
10f2d63a VZ |
1145 | USE_UNIX=0 |
1146 | USE_WIN32=1 | |
1147 | cat >> confdefs.h <<\EOF | |
1148 | #define __WIN32__ 1 | |
1149 | EOF | |
1150 | ||
1151 | cat >> confdefs.h <<\EOF | |
1152 | #define __WIN95__ 1 | |
1153 | EOF | |
1154 | ||
1155 | cat >> confdefs.h <<\EOF | |
1156 | #define __WINDOWS__ 1 | |
1157 | EOF | |
1158 | ||
1159 | cat >> confdefs.h <<\EOF | |
1160 | #define __GNUWIN32__ 1 | |
1161 | EOF | |
1162 | ||
1163 | cat >> confdefs.h <<\EOF | |
1164 | #define STRICT 1 | |
1165 | EOF | |
1166 | ||
1167 | cat >> confdefs.h <<\EOF | |
1168 | #define WINVER 0x0400 | |
1169 | EOF | |
1170 | ||
cf27ef00 | 1171 | PROGRAM_EXT=".exe" |
10f2d63a VZ |
1172 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1173 | ;; | |
1174 | ||
1175 | *-pc-os2_emx ) | |
1176 | cat >> confdefs.h <<\EOF | |
1177 | #define __EMX__ 1 | |
1178 | EOF | |
1179 | ||
cf27ef00 | 1180 | PROGRAM_EXT=".exe" |
e07802fc | 1181 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1182 | ;; |
1183 | ||
b4085ce6 GD |
1184 | *-*-darwin* ) |
1185 | USE_BSD=1 | |
1186 | USE_MAC=1 | |
1187 | cat >> confdefs.h <<\EOF | |
1188 | #define __MAC__ 1 | |
1189 | EOF | |
1190 | ||
1191 | cat >> confdefs.h <<\EOF | |
1192 | #define __BSD__ 1 | |
1193 | EOF | |
1194 | ||
1195 | cat >> confdefs.h <<\EOF | |
1196 | #define __UNIX__ 1 | |
1197 | EOF | |
1198 | ||
1199 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1200 | ;; | |
1201 | ||
b12915c1 VZ |
1202 | *-*-beos* ) |
1203 | USE_BEOS=1 | |
1204 | cat >> confdefs.h <<\EOF | |
1205 | #define __BEOS__ 1 | |
1206 | EOF | |
1207 | ||
1208 | ;; | |
1209 | ||
10f2d63a VZ |
1210 | *) |
1211 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } | |
1212 | esac | |
1213 | ||
1214 | if test "$USE_UNIX" = 1 ; then | |
b12915c1 VZ |
1215 | wxUSE_UNIX=yes |
1216 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
1217 | #define __UNIX__ 1 |
1218 | EOF | |
1219 | ||
b12915c1 VZ |
1220 | |
1221 | SRC_SUBDIRS="$SRC_SUBDIRS unix" | |
1222 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix" | |
1223 | fi | |
1224 | ||
1225 | if test "$USE_BEOS" = 1; then | |
1226 | SRC_SUBDIRS="$SRC_SUBDIRS be" | |
1227 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be" | |
10f2d63a VZ |
1228 | fi |
1229 | ||
1230 | if test "$USE_LINUX" = 1; then | |
1231 | echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6 | |
6426998c | 1232 | echo "configure:1233: checking for gettext in -lc" >&5 |
10f2d63a VZ |
1233 | ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'` |
1234 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1235 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1236 | else | |
1237 | ac_save_LIBS="$LIBS" | |
1238 | LIBS="-lc $LIBS" | |
1239 | cat > conftest.$ac_ext <<EOF | |
6426998c | 1240 | #line 1241 "configure" |
10f2d63a VZ |
1241 | #include "confdefs.h" |
1242 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1243 | /* We use char because int might match the return type of a gcc2 | |
1244 | builtin and then its argument prototype would still apply. */ | |
1245 | char gettext(); | |
1246 | ||
1247 | int main() { | |
1248 | gettext() | |
1249 | ; return 0; } | |
1250 | EOF | |
6426998c | 1251 | if { (eval echo configure:1252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
1252 | rm -rf conftest* |
1253 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1254 | else | |
1255 | echo "configure: failed program was:" >&5 | |
1256 | cat conftest.$ac_ext >&5 | |
1257 | rm -rf conftest* | |
1258 | eval "ac_cv_lib_$ac_lib_var=no" | |
1259 | fi | |
1260 | rm -f conftest* | |
1261 | LIBS="$ac_save_LIBS" | |
1262 | ||
1263 | fi | |
1264 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1265 | echo "$ac_t""yes" 1>&6 | |
1266 | cat >> confdefs.h <<\EOF | |
1267 | #define wxHAVE_GLIBC2 1 | |
1268 | EOF | |
1269 | ||
1270 | else | |
1271 | echo "$ac_t""no" 1>&6 | |
1272 | fi | |
1273 | ||
1274 | fi | |
1275 | ||
1276 | ||
1277 | ||
1278 | ||
1279 | wx_arg_cache_file="configarg.cache" | |
1280 | echo "loading argument cache $wx_arg_cache_file" | |
1281 | rm -f ${wx_arg_cache_file}.tmp | |
1282 | touch ${wx_arg_cache_file}.tmp | |
1283 | touch ${wx_arg_cache_file} | |
1284 | ||
1285 | ||
1286 | DEBUG_CONFIGURE=0 | |
1287 | if test $DEBUG_CONFIGURE = 1; then | |
1288 | DEFAULT_wxUSE_THREADS=yes | |
1289 | ||
1290 | DEFAULT_wxUSE_SHARED=yes | |
00cf1208 | 1291 | DEFAULT_wxUSE_BURNT_NAME=no |
10f2d63a VZ |
1292 | DEFAULT_wxUSE_OPTIMISE=yes |
1293 | DEFAULT_wxUSE_PROFILE=no | |
1294 | DEFAULT_wxUSE_NO_DEPS=no | |
1295 | DEFAULT_wxUSE_NO_RTTI=no | |
1296 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1297 | DEFAULT_wxUSE_PERMISSIVE=no | |
1298 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1299 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1300 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1301 | DEFAULT_wxUSE_MEM_TRACING=no | |
1302 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1303 | DEFAULT_wxUSE_DMALLOC=no | |
1304 | DEFAULT_wxUSE_APPLE_IEEE=no | |
1305 | ||
1306 | DEFAULT_wxUSE_LOG=yes | |
1307 | ||
1308 | DEFAULT_wxUSE_GUI=yes | |
1309 | ||
1310 | DEFAULT_wxUSE_ZLIB=no | |
1311 | DEFAULT_wxUSE_LIBPNG=no | |
1312 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1313 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1314 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1315 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1316 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1317 | |
eb4efbdc | 1318 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
10f2d63a VZ |
1319 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1320 | DEFAULT_wxUSE_FILE=no | |
1321 | DEFAULT_wxUSE_TEXTFILE=no | |
1322 | DEFAULT_wxUSE_TIMEDATE=no | |
1323 | DEFAULT_wxUSE_WAVE=no | |
1324 | DEFAULT_wxUSE_INTL=no | |
1325 | DEFAULT_wxUSE_CONFIG=no | |
1326 | DEFAULT_wxUSE_STREAMS=no | |
1327 | DEFAULT_wxUSE_SOCKETS=no | |
1328 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
1329 | DEFAULT_wxUSE_SERIAL=no | |
1330 | DEFAULT_wxUSE_JOYSTICK=no | |
1331 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
1332 | DEFAULT_wxUSE_LONGLONG=no | |
e8f65ba6 | 1333 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1334 | |
1335 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1336 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1337 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1338 | ||
1339 | DEFAULT_wxUSE_X_RESOURCES=no | |
1340 | DEFAULT_wxUSE_CLIPBOARD=no | |
1341 | DEFAULT_wxUSE_TOOLTIPS=no | |
1342 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
1343 | DEFAULT_wxUSE_SPLINES=no | |
1344 | ||
1345 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1346 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1347 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1348 | ||
1349 | DEFAULT_wxUSE_PROLOGIO=no | |
1350 | DEFAULT_wxUSE_RESOURCES=no | |
1351 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1352 | DEFAULT_wxUSE_IPC=no | |
1353 | DEFAULT_wxUSE_HELP=no | |
1354 | DEFAULT_wxUSE_WXTREE=no | |
1355 | DEFAULT_wxUSE_METAFILE=no | |
1356 | ||
1357 | DEFAULT_wxUSE_COMMONDLGS=no | |
1358 | DEFAULT_wxUSE_DIRDLG=no | |
1359 | DEFAULT_wxUSE_TEXTDLG=no | |
1360 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
1361 | DEFAULT_wxUSE_PROGRESSDLG=no | |
1362 | DEFAULT_wxUSE_MINIFRAME=no | |
1363 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1364 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1365 | DEFAULT_wxUSE_FS_INET=no |
1366 | DEFAULT_wxUSE_FS_ZIP=no | |
1367 | DEFAULT_wxUSE_BUSYINFO=no | |
1368 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1369 | DEFAULT_wxUSE_VALIDATORS=yes | |
1370 | ||
1371 | DEFAULT_wxUSE_ACCEL=no | |
1372 | DEFAULT_wxUSE_CARET=no | |
1373 | DEFAULT_wxUSE_BMPBUTTON=no | |
1374 | DEFAULT_wxUSE_CHECKBOX=no | |
1375 | DEFAULT_wxUSE_CHECKLST=no | |
1376 | DEFAULT_wxUSE_CHOICE=yes | |
1377 | DEFAULT_wxUSE_COMBOBOX=no | |
1378 | DEFAULT_wxUSE_GAUGE=no | |
1379 | DEFAULT_wxUSE_GRID=no | |
1380 | DEFAULT_wxUSE_NEW_GRID=no | |
1381 | DEFAULT_wxUSE_IMAGLIST=no | |
1382 | DEFAULT_wxUSE_LISTBOX=no | |
1383 | DEFAULT_wxUSE_LISTCTRL=no | |
1384 | DEFAULT_wxUSE_NOTEBOOK=no | |
1385 | DEFAULT_wxUSE_RADIOBOX=no | |
1386 | DEFAULT_wxUSE_RADIOBTN=no | |
1387 | DEFAULT_wxUSE_SASH=no | |
1388 | DEFAULT_wxUSE_SCROLLBAR=no | |
1389 | DEFAULT_wxUSE_SLIDER=no | |
1390 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1391 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1392 | DEFAULT_wxUSE_SPLITTER=no |
1393 | DEFAULT_wxUSE_STATBMP=no | |
1394 | DEFAULT_wxUSE_STATBOX=no | |
1395 | DEFAULT_wxUSE_STATLINE=no | |
1396 | DEFAULT_wxUSE_STATUSBAR=yes | |
1397 | DEFAULT_wxUSE_TABDIALOG=no | |
1db8dc4a | 1398 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1399 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1400 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1401 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
1402 | DEFAULT_wxUSE_TREECTRL=no |
1403 | ||
1404 | DEFAULT_wxUSE_UNICODE=no | |
1405 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1406 | ||
1407 | DEFAULT_wxUSE_GIF=no | |
1408 | DEFAULT_wxUSE_PCX=no | |
1409 | DEFAULT_wxUSE_PNM=no | |
1410 | else | |
1411 | DEFAULT_wxUSE_THREADS=yes | |
1412 | ||
1413 | DEFAULT_wxUSE_SHARED=yes | |
00cf1208 | 1414 | DEFAULT_wxUSE_BURNT_NAME=no |
10f2d63a VZ |
1415 | DEFAULT_wxUSE_OPTIMISE=yes |
1416 | DEFAULT_wxUSE_PROFILE=no | |
1417 | DEFAULT_wxUSE_NO_DEPS=no | |
1418 | DEFAULT_wxUSE_NO_RTTI=no | |
1419 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1420 | DEFAULT_wxUSE_PERMISSIVE=no | |
1421 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1422 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1423 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1424 | DEFAULT_wxUSE_MEM_TRACING=no | |
1425 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1426 | DEFAULT_wxUSE_DMALLOC=no | |
1427 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
1428 | ||
1429 | DEFAULT_wxUSE_LOG=yes | |
1430 | ||
1431 | DEFAULT_wxUSE_GUI=yes | |
1432 | ||
1433 | DEFAULT_wxUSE_ZLIB=yes | |
1434 | DEFAULT_wxUSE_LIBPNG=yes | |
1435 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1436 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1437 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1438 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1439 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1440 | |
eb4efbdc | 1441 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
10f2d63a VZ |
1442 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1443 | DEFAULT_wxUSE_FILE=yes | |
1444 | DEFAULT_wxUSE_TEXTFILE=yes | |
1445 | DEFAULT_wxUSE_TIMEDATE=yes | |
1446 | DEFAULT_wxUSE_WAVE=no | |
1447 | DEFAULT_wxUSE_INTL=yes | |
1448 | DEFAULT_wxUSE_CONFIG=yes | |
1449 | DEFAULT_wxUSE_STREAMS=yes | |
1450 | DEFAULT_wxUSE_SOCKETS=yes | |
1451 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
1452 | DEFAULT_wxUSE_SERIAL=yes | |
1453 | DEFAULT_wxUSE_JOYSTICK=yes | |
1454 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
b685cd9b | 1455 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1456 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1457 | |
1458 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1459 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1460 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1461 | ||
1462 | DEFAULT_wxUSE_X_RESOURCES=no | |
1463 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1464 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1465 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
1466 | DEFAULT_wxUSE_SPLINES=yes | |
1467 | ||
1468 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1469 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1470 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1471 | ||
1472 | DEFAULT_wxUSE_PROLOGIO=yes | |
1473 | DEFAULT_wxUSE_RESOURCES=yes | |
1474 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1475 | DEFAULT_wxUSE_IPC=yes | |
1476 | DEFAULT_wxUSE_HELP=yes | |
1477 | DEFAULT_wxUSE_WXTREE=yes | |
1478 | DEFAULT_wxUSE_METAFILE=yes | |
1479 | ||
1480 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1481 | DEFAULT_wxUSE_DIRDLG=yes | |
1482 | DEFAULT_wxUSE_TEXTDLG=yes | |
1483 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
1484 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
1485 | DEFAULT_wxUSE_MINIFRAME=yes | |
1486 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1487 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1488 | DEFAULT_wxUSE_FS_INET=yes |
1489 | DEFAULT_wxUSE_FS_ZIP=yes | |
1490 | DEFAULT_wxUSE_BUSYINFO=yes | |
1491 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1492 | DEFAULT_wxUSE_VALIDATORS=yes | |
1493 | ||
1494 | DEFAULT_wxUSE_ACCEL=yes | |
1495 | DEFAULT_wxUSE_CARET=yes | |
1496 | DEFAULT_wxUSE_BMPBUTTON=yes | |
1497 | DEFAULT_wxUSE_CHECKBOX=yes | |
1498 | DEFAULT_wxUSE_CHECKLST=yes | |
1499 | DEFAULT_wxUSE_CHOICE=yes | |
1500 | DEFAULT_wxUSE_COMBOBOX=yes | |
1501 | DEFAULT_wxUSE_GAUGE=yes | |
1502 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1503 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1504 | DEFAULT_wxUSE_IMAGLIST=yes |
1505 | DEFAULT_wxUSE_LISTBOX=yes | |
1506 | DEFAULT_wxUSE_LISTCTRL=yes | |
1507 | DEFAULT_wxUSE_NOTEBOOK=yes | |
1508 | DEFAULT_wxUSE_RADIOBOX=yes | |
1509 | DEFAULT_wxUSE_RADIOBTN=yes | |
1510 | DEFAULT_wxUSE_SASH=yes | |
1511 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1512 | DEFAULT_wxUSE_SLIDER=yes | |
1513 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1514 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1515 | DEFAULT_wxUSE_SPLITTER=yes |
1516 | DEFAULT_wxUSE_STATBMP=yes | |
1517 | DEFAULT_wxUSE_STATBOX=yes | |
1518 | DEFAULT_wxUSE_STATLINE=yes | |
1519 | DEFAULT_wxUSE_STATUSBAR=yes | |
1520 | DEFAULT_wxUSE_TABDIALOG=no | |
1db8dc4a | 1521 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1522 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1523 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1524 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
1525 | DEFAULT_wxUSE_TREECTRL=yes |
1526 | ||
1527 | DEFAULT_wxUSE_UNICODE=no | |
1528 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1529 | ||
1530 | DEFAULT_wxUSE_GIF=yes | |
1531 | DEFAULT_wxUSE_PCX=yes | |
1532 | DEFAULT_wxUSE_PNM=yes | |
1533 | fi | |
1534 | ||
1535 | ||
1536 | ||
1537 | for toolkit in `echo $ALL_TOOLKITS`; do | |
1538 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1539 | if test "x$LINE" != x ; then | |
1540 | has_toolkit_in_cache=1 | |
1541 | eval "DEFAULT_$LINE" | |
1542 | eval "CACHE_$toolkit=1" | |
1543 | fi | |
1544 | done | |
1545 | ||
1546 | ||
1547 | ||
1548 | echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6 | |
6426998c | 1549 | echo "configure:1550: checking "for --enable-gui"" >&5 |
10f2d63a VZ |
1550 | no_cache=0 |
1551 | # Check whether --enable-gui or --disable-gui was given. | |
1552 | if test "${enable_gui+set}" = set; then | |
1553 | enableval="$enable_gui" | |
1554 | ||
1555 | if test "$enableval" = yes; then | |
1556 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1557 | else | |
1558 | ac_cv_use_gui='wxUSE_GUI=no' | |
1559 | fi | |
1560 | ||
1561 | else | |
1562 | ||
1563 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
1564 | if test "x$LINE" != x ; then | |
1565 | eval "DEFAULT_$LINE" | |
1566 | else | |
1567 | no_cache=1 | |
1568 | fi | |
1569 | ||
1570 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
1571 | ||
1572 | fi | |
1573 | ||
1574 | ||
1575 | eval "$ac_cv_use_gui" | |
1576 | if test "$no_cache" != 1; then | |
1577 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1578 | fi | |
1579 | ||
1580 | if test "$wxUSE_GUI" = yes; then | |
1581 | echo "$ac_t""yes" 1>&6 | |
1582 | else | |
1583 | echo "$ac_t""no" 1>&6 | |
1584 | fi | |
1585 | ||
1586 | ||
b12915c1 | 1587 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a VZ |
1588 | |
1589 | # Check whether --with-gtk or --without-gtk was given. | |
1590 | if test "${with_gtk+set}" = set; then | |
1591 | withval="$with_gtk" | |
1592 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
1593 | fi | |
1594 | ||
1595 | # Check whether --with-motif or --without-motif was given. | |
1596 | if test "${with_motif+set}" = set; then | |
1597 | withval="$with_motif" | |
1598 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
1599 | fi | |
1600 | ||
b4085ce6 GD |
1601 | # Check whether --with-mac or --without-mac was given. |
1602 | if test "${with_mac+set}" = set; then | |
1603 | withval="$with_mac" | |
1604 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
1605 | fi | |
1606 | ||
10f2d63a VZ |
1607 | # Check whether --with-wine or --without-wine was given. |
1608 | if test "${with_wine+set}" = set; then | |
1609 | withval="$with_wine" | |
1610 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
1611 | fi | |
1612 | ||
1613 | # Check whether --with-cygwin or --without-cygwin was given. | |
1614 | if test "${with_cygwin+set}" = set; then | |
1615 | withval="$with_cygwin" | |
1616 | wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1 | |
1617 | fi | |
1618 | ||
1619 | # Check whether --with-mingw or --without-mingw was given. | |
1620 | if test "${with_mingw+set}" = set; then | |
1621 | withval="$with_mingw" | |
1622 | wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1 | |
1623 | fi | |
1624 | ||
e07802fc VZ |
1625 | # Check whether --with-pm or --without-pm was given. |
1626 | if test "${with_pm+set}" = set; then | |
1627 | withval="$with_pm" | |
1628 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
1629 | fi | |
1630 | ||
10f2d63a VZ |
1631 | |
1632 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
1633 | if test "${with_gtk_prefix+set}" = set; then | |
1634 | withval="$with_gtk_prefix" | |
1635 | gtk_config_prefix="$withval" | |
1636 | else | |
1637 | gtk_config_prefix="" | |
1638 | fi | |
1639 | ||
1640 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
1641 | if test "${with_gtk_exec_prefix+set}" = set; then | |
1642 | withval="$with_gtk_exec_prefix" | |
1643 | gtk_config_exec_prefix="$withval" | |
1644 | else | |
1645 | gtk_config_exec_prefix="" | |
1646 | fi | |
1647 | ||
1648 | ||
1649 | ||
b12915c1 | 1650 | echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6 |
6426998c | 1651 | echo "configure:1652: checking "for --with-libpng"" >&5 |
10f2d63a | 1652 | no_cache=0 |
b12915c1 VZ |
1653 | # Check whether --with-libpng or --without-libpng was given. |
1654 | if test "${with_libpng+set}" = set; then | |
1655 | withval="$with_libpng" | |
10f2d63a VZ |
1656 | |
1657 | if test "$withval" = yes; then | |
b12915c1 | 1658 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1659 | elif test "$withval" = no; then |
b12915c1 | 1660 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
1661 | elif test "$withval" = sys; then |
1662 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
1663 | else | |
1664 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; } | |
10f2d63a VZ |
1665 | fi |
1666 | ||
1667 | else | |
1668 | ||
b12915c1 | 1669 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1670 | if test "x$LINE" != x ; then |
1671 | eval "DEFAULT_$LINE" | |
1672 | else | |
1673 | no_cache=1 | |
1674 | fi | |
1675 | ||
b12915c1 | 1676 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
10f2d63a VZ |
1677 | |
1678 | fi | |
1679 | ||
1680 | ||
b12915c1 | 1681 | eval "$ac_cv_use_libpng" |
10f2d63a | 1682 | if test "$no_cache" != 1; then |
b12915c1 | 1683 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1684 | fi |
1685 | ||
b12915c1 | 1686 | if test "$wxUSE_LIBPNG" = yes; then |
10f2d63a | 1687 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1688 | elif test "$wxUSE_LIBPNG" = no; then |
10f2d63a | 1689 | echo "$ac_t""no" 1>&6 |
422107f9 VZ |
1690 | elif test "$wxUSE_LIBPNG" = sys; then |
1691 | echo "$ac_t""system version" 1>&6 | |
1692 | else | |
1693 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; } | |
10f2d63a VZ |
1694 | fi |
1695 | ||
1696 | ||
b12915c1 | 1697 | echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6 |
6426998c | 1698 | echo "configure:1699: checking "for --with-libjpeg"" >&5 |
10f2d63a | 1699 | no_cache=0 |
b12915c1 VZ |
1700 | # Check whether --with-libjpeg or --without-libjpeg was given. |
1701 | if test "${with_libjpeg+set}" = set; then | |
1702 | withval="$with_libjpeg" | |
10f2d63a VZ |
1703 | |
1704 | if test "$withval" = yes; then | |
b12915c1 | 1705 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 1706 | elif test "$withval" = no; then |
b12915c1 | 1707 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
1708 | elif test "$withval" = sys; then |
1709 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
1710 | else | |
1711 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; } | |
10f2d63a VZ |
1712 | fi |
1713 | ||
1714 | else | |
1715 | ||
b12915c1 | 1716 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1717 | if test "x$LINE" != x ; then |
1718 | eval "DEFAULT_$LINE" | |
1719 | else | |
1720 | no_cache=1 | |
1721 | fi | |
1722 | ||
b12915c1 | 1723 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
10f2d63a VZ |
1724 | |
1725 | fi | |
1726 | ||
1727 | ||
b12915c1 | 1728 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 1729 | if test "$no_cache" != 1; then |
b12915c1 | 1730 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1731 | fi |
1732 | ||
b12915c1 | 1733 | if test "$wxUSE_LIBJPEG" = yes; then |
10f2d63a | 1734 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1735 | elif test "$wxUSE_LIBJPEG" = no; then |
10f2d63a | 1736 | echo "$ac_t""no" 1>&6 |
422107f9 VZ |
1737 | elif test "$wxUSE_LIBJPEG" = sys; then |
1738 | echo "$ac_t""system version" 1>&6 | |
1739 | else | |
1740 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; } | |
10f2d63a VZ |
1741 | fi |
1742 | ||
1743 | ||
b12915c1 | 1744 | echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6 |
6426998c | 1745 | echo "configure:1746: checking "for --with-libtiff"" >&5 |
10f2d63a | 1746 | no_cache=0 |
b12915c1 VZ |
1747 | # Check whether --with-libtiff or --without-libtiff was given. |
1748 | if test "${with_libtiff+set}" = set; then | |
1749 | withval="$with_libtiff" | |
10f2d63a VZ |
1750 | |
1751 | if test "$withval" = yes; then | |
b12915c1 | 1752 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 1753 | elif test "$withval" = no; then |
b12915c1 | 1754 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
1755 | elif test "$withval" = sys; then |
1756 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
1757 | else | |
1758 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; } | |
10f2d63a VZ |
1759 | fi |
1760 | ||
1761 | else | |
1762 | ||
b12915c1 | 1763 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
1764 | if test "x$LINE" != x ; then |
1765 | eval "DEFAULT_$LINE" | |
1766 | else | |
1767 | no_cache=1 | |
1768 | fi | |
1769 | ||
b12915c1 | 1770 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
10f2d63a VZ |
1771 | |
1772 | fi | |
1773 | ||
1774 | ||
b12915c1 | 1775 | eval "$ac_cv_use_libtiff" |
10f2d63a | 1776 | if test "$no_cache" != 1; then |
b12915c1 | 1777 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1778 | fi |
1779 | ||
b12915c1 | 1780 | if test "$wxUSE_LIBTIFF" = yes; then |
10f2d63a | 1781 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 1782 | elif test "$wxUSE_LIBTIFF" = no; then |
10f2d63a | 1783 | echo "$ac_t""no" 1>&6 |
0dcf9893 VZ |
1784 | elif test "$wxUSE_LIBTIFF" = sys; then |
1785 | echo "$ac_t""system version" 1>&6 | |
1786 | else | |
1787 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; } | |
10f2d63a VZ |
1788 | fi |
1789 | ||
1790 | ||
3fed1840 | 1791 | echo $ac_n "checking "for --with-freetype"""... $ac_c" 1>&6 |
6426998c | 1792 | echo "configure:1793: checking "for --with-freetype"" >&5 |
3fed1840 RR |
1793 | no_cache=0 |
1794 | # Check whether --with-freetype or --without-freetype was given. | |
1795 | if test "${with_freetype+set}" = set; then | |
1796 | withval="$with_freetype" | |
1797 | ||
1798 | if test "$withval" = yes; then | |
1799 | ac_cv_use_freetype='wxUSE_FREETYPE=yes' | |
1800 | elif test "$withval" = no; then | |
1801 | ac_cv_use_freetype='wxUSE_FREETYPE=no' | |
1802 | elif test "$withval" = sys; then | |
1803 | ac_cv_use_freetype='wxUSE_FREETYPE=sys' | |
1804 | else | |
1805 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; } | |
1806 | fi | |
1807 | ||
1808 | else | |
1809 | ||
1810 | LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}` | |
1811 | if test "x$LINE" != x ; then | |
1812 | eval "DEFAULT_$LINE" | |
1813 | else | |
1814 | no_cache=1 | |
1815 | fi | |
1816 | ||
1817 | ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE | |
1818 | ||
1819 | fi | |
1820 | ||
1821 | ||
1822 | eval "$ac_cv_use_freetype" | |
1823 | if test "$no_cache" != 1; then | |
1824 | echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp | |
1825 | fi | |
1826 | ||
1827 | if test "$wxUSE_FREETYPE" = yes; then | |
1828 | echo "$ac_t""yes" 1>&6 | |
1829 | elif test "$wxUSE_FREETYPE" = no; then | |
1830 | echo "$ac_t""no" 1>&6 | |
1831 | elif test "$wxUSE_FREETYPE" = sys; then | |
1832 | echo "$ac_t""system version" 1>&6 | |
1833 | else | |
1834 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; } | |
1835 | fi | |
1836 | ||
1837 | ||
b12915c1 | 1838 | echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6 |
6426998c | 1839 | echo "configure:1840: checking "for --with-opengl"" >&5 |
10f2d63a | 1840 | no_cache=0 |
b12915c1 VZ |
1841 | # Check whether --with-opengl or --without-opengl was given. |
1842 | if test "${with_opengl+set}" = set; then | |
1843 | withval="$with_opengl" | |
10f2d63a VZ |
1844 | |
1845 | if test "$withval" = yes; then | |
b12915c1 | 1846 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 1847 | else |
b12915c1 | 1848 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a VZ |
1849 | fi |
1850 | ||
1851 | else | |
1852 | ||
b12915c1 | 1853 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
1854 | if test "x$LINE" != x ; then |
1855 | eval "DEFAULT_$LINE" | |
1856 | else | |
1857 | no_cache=1 | |
1858 | fi | |
1859 | ||
b12915c1 | 1860 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
10f2d63a VZ |
1861 | |
1862 | fi | |
1863 | ||
1864 | ||
b12915c1 | 1865 | eval "$ac_cv_use_opengl" |
10f2d63a | 1866 | if test "$no_cache" != 1; then |
b12915c1 | 1867 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1868 | fi |
1869 | ||
b12915c1 | 1870 | if test "$wxUSE_OPENGL" = yes; then |
10f2d63a VZ |
1871 | echo "$ac_t""yes" 1>&6 |
1872 | else | |
1873 | echo "$ac_t""no" 1>&6 | |
1874 | fi | |
1875 | ||
1876 | ||
b12915c1 VZ |
1877 | fi |
1878 | ||
1879 | ||
1880 | echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6 | |
6426998c | 1881 | echo "configure:1882: checking "for --with-dmalloc"" >&5 |
c7a2bf27 | 1882 | no_cache=0 |
b12915c1 VZ |
1883 | # Check whether --with-dmalloc or --without-dmalloc was given. |
1884 | if test "${with_dmalloc+set}" = set; then | |
1885 | withval="$with_dmalloc" | |
c7a2bf27 RR |
1886 | |
1887 | if test "$withval" = yes; then | |
b12915c1 | 1888 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 1889 | else |
b12915c1 | 1890 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 RR |
1891 | fi |
1892 | ||
1893 | else | |
1894 | ||
b12915c1 | 1895 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
1896 | if test "x$LINE" != x ; then |
1897 | eval "DEFAULT_$LINE" | |
1898 | else | |
1899 | no_cache=1 | |
1900 | fi | |
1901 | ||
b12915c1 | 1902 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
c7a2bf27 RR |
1903 | |
1904 | fi | |
1905 | ||
1906 | ||
b12915c1 | 1907 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 1908 | if test "$no_cache" != 1; then |
b12915c1 | 1909 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
1910 | fi |
1911 | ||
b12915c1 | 1912 | if test "$wxUSE_DMALLOC" = yes; then |
c7a2bf27 RR |
1913 | echo "$ac_t""yes" 1>&6 |
1914 | else | |
1915 | echo "$ac_t""no" 1>&6 | |
1916 | fi | |
1917 | ||
1918 | ||
b12915c1 | 1919 | echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6 |
6426998c | 1920 | echo "configure:1921: checking "for --with-zlib"" >&5 |
10f2d63a | 1921 | no_cache=0 |
b12915c1 VZ |
1922 | # Check whether --with-zlib or --without-zlib was given. |
1923 | if test "${with_zlib+set}" = set; then | |
1924 | withval="$with_zlib" | |
10f2d63a VZ |
1925 | |
1926 | if test "$withval" = yes; then | |
b12915c1 | 1927 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 1928 | elif test "$withval" = no; then |
b12915c1 | 1929 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
1930 | elif test "$withval" = sys; then |
1931 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
1932 | else | |
1933 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; } | |
10f2d63a VZ |
1934 | fi |
1935 | ||
1936 | else | |
1937 | ||
b12915c1 | 1938 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
1939 | if test "x$LINE" != x ; then |
1940 | eval "DEFAULT_$LINE" | |
1941 | else | |
1942 | no_cache=1 | |
1943 | fi | |
1944 | ||
b12915c1 | 1945 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
10f2d63a VZ |
1946 | |
1947 | fi | |
1948 | ||
1949 | ||
b12915c1 | 1950 | eval "$ac_cv_use_zlib" |
10f2d63a | 1951 | if test "$no_cache" != 1; then |
b12915c1 | 1952 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1953 | fi |
1954 | ||
b12915c1 | 1955 | if test "$wxUSE_ZLIB" = yes; then |
10f2d63a | 1956 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1957 | elif test "$wxUSE_ZLIB" = no; then |
bdad4e7e | 1958 | echo "$ac_t""no" 1>&6 |
422107f9 VZ |
1959 | elif test "$wxUSE_ZLIB" = sys; then |
1960 | echo "$ac_t""system version" 1>&6 | |
1961 | else | |
1962 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; } | |
10f2d63a VZ |
1963 | fi |
1964 | ||
1965 | ||
1966 | echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6 | |
6426998c | 1967 | echo "configure:1968: checking "for --with-odbc"" >&5 |
10f2d63a VZ |
1968 | no_cache=0 |
1969 | # Check whether --with-odbc or --without-odbc was given. | |
1970 | if test "${with_odbc+set}" = set; then | |
1971 | withval="$with_odbc" | |
1972 | ||
1973 | if test "$withval" = yes; then | |
1974 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
1975 | else | |
1976 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
1977 | fi | |
1978 | ||
1979 | else | |
1980 | ||
1981 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
1982 | if test "x$LINE" != x ; then | |
1983 | eval "DEFAULT_$LINE" | |
1984 | else | |
1985 | no_cache=1 | |
1986 | fi | |
1987 | ||
1988 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
1989 | ||
1990 | fi | |
1991 | ||
1992 | ||
1993 | eval "$ac_cv_use_odbc" | |
1994 | if test "$no_cache" != 1; then | |
1995 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
1996 | fi | |
1997 | ||
1998 | if test "$wxUSE_ODBC" = yes; then | |
1999 | echo "$ac_t""yes" 1>&6 | |
2000 | else | |
2001 | echo "$ac_t""no" 1>&6 | |
2002 | fi | |
2003 | ||
2004 | ||
2005 | ||
2006 | ||
2007 | ||
2008 | echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6 | |
6426998c | 2009 | echo "configure:2010: checking "for --enable-shared"" >&5 |
10f2d63a VZ |
2010 | no_cache=0 |
2011 | # Check whether --enable-shared or --disable-shared was given. | |
2012 | if test "${enable_shared+set}" = set; then | |
2013 | enableval="$enable_shared" | |
2014 | ||
2015 | if test "$enableval" = yes; then | |
2016 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2017 | else | |
2018 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2019 | fi | |
2020 | ||
2021 | else | |
2022 | ||
2023 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
2024 | if test "x$LINE" != x ; then | |
2025 | eval "DEFAULT_$LINE" | |
2026 | else | |
2027 | no_cache=1 | |
2028 | fi | |
2029 | ||
2030 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
2031 | ||
2032 | fi | |
2033 | ||
2034 | ||
2035 | eval "$ac_cv_use_shared" | |
2036 | if test "$no_cache" != 1; then | |
2037 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2038 | fi | |
2039 | ||
2040 | if test "$wxUSE_SHARED" = yes; then | |
2041 | echo "$ac_t""yes" 1>&6 | |
2042 | else | |
2043 | echo "$ac_t""no" 1>&6 | |
2044 | fi | |
2045 | ||
2046 | ||
00cf1208 | 2047 | echo $ac_n "checking "for --enable-burnt_name"""... $ac_c" 1>&6 |
6426998c | 2048 | echo "configure:2049: checking "for --enable-burnt_name"" >&5 |
00cf1208 RR |
2049 | no_cache=0 |
2050 | # Check whether --enable-burnt_name or --disable-burnt_name was given. | |
2051 | if test "${enable_burnt_name+set}" = set; then | |
2052 | enableval="$enable_burnt_name" | |
2053 | ||
2054 | if test "$enableval" = yes; then | |
2055 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes' | |
2056 | else | |
2057 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no' | |
2058 | fi | |
2059 | ||
2060 | else | |
2061 | ||
2062 | LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}` | |
2063 | if test "x$LINE" != x ; then | |
2064 | eval "DEFAULT_$LINE" | |
2065 | else | |
2066 | no_cache=1 | |
2067 | fi | |
2068 | ||
2069 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME | |
2070 | ||
2071 | fi | |
2072 | ||
2073 | ||
2074 | eval "$ac_cv_use_burnt_name" | |
2075 | if test "$no_cache" != 1; then | |
2076 | echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp | |
2077 | fi | |
2078 | ||
2079 | if test "$wxUSE_BURNT_NAME" = yes; then | |
2080 | echo "$ac_t""yes" 1>&6 | |
2081 | else | |
2082 | echo "$ac_t""no" 1>&6 | |
2083 | fi | |
2084 | ||
2085 | ||
10f2d63a | 2086 | echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6 |
6426998c | 2087 | echo "configure:2088: checking "for --enable-optimise"" >&5 |
10f2d63a VZ |
2088 | no_cache=0 |
2089 | # Check whether --enable-optimise or --disable-optimise was given. | |
2090 | if test "${enable_optimise+set}" = set; then | |
2091 | enableval="$enable_optimise" | |
2092 | ||
2093 | if test "$enableval" = yes; then | |
2094 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2095 | else | |
2096 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2097 | fi | |
2098 | ||
2099 | else | |
2100 | ||
2101 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
2102 | if test "x$LINE" != x ; then | |
2103 | eval "DEFAULT_$LINE" | |
2104 | else | |
2105 | no_cache=1 | |
2106 | fi | |
2107 | ||
2108 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
2109 | ||
2110 | fi | |
2111 | ||
2112 | ||
2113 | eval "$ac_cv_use_optimise" | |
2114 | if test "$no_cache" != 1; then | |
2115 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2116 | fi | |
2117 | ||
2118 | if test "$wxUSE_OPTIMISE" = yes; then | |
2119 | echo "$ac_t""yes" 1>&6 | |
2120 | else | |
2121 | echo "$ac_t""no" 1>&6 | |
2122 | fi | |
2123 | ||
2124 | ||
2125 | echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6 | |
6426998c | 2126 | echo "configure:2127: checking "for --enable-debug"" >&5 |
10f2d63a VZ |
2127 | no_cache=0 |
2128 | # Check whether --enable-debug or --disable-debug was given. | |
2129 | if test "${enable_debug+set}" = set; then | |
2130 | enableval="$enable_debug" | |
2131 | ||
2132 | if test "$enableval" = yes; then | |
2133 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2134 | else | |
2135 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2136 | fi | |
2137 | ||
2138 | else | |
2139 | ||
2140 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
2141 | if test "x$LINE" != x ; then | |
2142 | eval "DEFAULT_$LINE" | |
2143 | else | |
2144 | no_cache=1 | |
2145 | fi | |
2146 | ||
2147 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
2148 | ||
2149 | fi | |
2150 | ||
2151 | ||
2152 | eval "$ac_cv_use_debug" | |
2153 | if test "$no_cache" != 1; then | |
2154 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2155 | fi | |
2156 | ||
2157 | if test "$wxUSE_DEBUG" = yes; then | |
2158 | echo "$ac_t""yes" 1>&6 | |
2159 | else | |
2160 | echo "$ac_t""no" 1>&6 | |
2161 | fi | |
2162 | ||
2163 | ||
2164 | if test "$wxUSE_DEBUG" = "yes"; then | |
2165 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2166 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2167 | elif test "$wxUSE_DEBUG" = "no"; then | |
2168 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2169 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2170 | fi | |
2171 | ||
2172 | ||
2173 | echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6 | |
6426998c | 2174 | echo "configure:2175: checking "for --enable-debug_flag"" >&5 |
10f2d63a VZ |
2175 | no_cache=0 |
2176 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2177 | if test "${enable_debug_flag+set}" = set; then | |
2178 | enableval="$enable_debug_flag" | |
2179 | ||
2180 | if test "$enableval" = yes; then | |
2181 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2182 | else | |
2183 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2184 | fi | |
2185 | ||
2186 | else | |
2187 | ||
2188 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
2189 | if test "x$LINE" != x ; then | |
2190 | eval "DEFAULT_$LINE" | |
2191 | else | |
2192 | no_cache=1 | |
2193 | fi | |
2194 | ||
2195 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
2196 | ||
2197 | fi | |
2198 | ||
2199 | ||
2200 | eval "$ac_cv_use_debug_flag" | |
2201 | if test "$no_cache" != 1; then | |
2202 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2203 | fi | |
2204 | ||
2205 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
2206 | echo "$ac_t""yes" 1>&6 | |
2207 | else | |
2208 | echo "$ac_t""no" 1>&6 | |
2209 | fi | |
2210 | ||
2211 | ||
2212 | echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6 | |
6426998c | 2213 | echo "configure:2214: checking "for --enable-debug_info"" >&5 |
10f2d63a VZ |
2214 | no_cache=0 |
2215 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2216 | if test "${enable_debug_info+set}" = set; then | |
2217 | enableval="$enable_debug_info" | |
2218 | ||
2219 | if test "$enableval" = yes; then | |
2220 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2221 | else | |
2222 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2223 | fi | |
2224 | ||
2225 | else | |
2226 | ||
2227 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
2228 | if test "x$LINE" != x ; then | |
2229 | eval "DEFAULT_$LINE" | |
2230 | else | |
2231 | no_cache=1 | |
2232 | fi | |
2233 | ||
2234 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
2235 | ||
2236 | fi | |
2237 | ||
2238 | ||
2239 | eval "$ac_cv_use_debug_info" | |
2240 | if test "$no_cache" != 1; then | |
2241 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2242 | fi | |
2243 | ||
2244 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
2245 | echo "$ac_t""yes" 1>&6 | |
2246 | else | |
2247 | echo "$ac_t""no" 1>&6 | |
2248 | fi | |
2249 | ||
2250 | ||
2251 | echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6 | |
6426998c | 2252 | echo "configure:2253: checking "for --enable-debug_gdb"" >&5 |
10f2d63a VZ |
2253 | no_cache=0 |
2254 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2255 | if test "${enable_debug_gdb+set}" = set; then | |
2256 | enableval="$enable_debug_gdb" | |
2257 | ||
2258 | if test "$enableval" = yes; then | |
2259 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2260 | else | |
2261 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2262 | fi | |
2263 | ||
2264 | else | |
2265 | ||
2266 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
2267 | if test "x$LINE" != x ; then | |
2268 | eval "DEFAULT_$LINE" | |
2269 | else | |
2270 | no_cache=1 | |
2271 | fi | |
2272 | ||
2273 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
2274 | ||
2275 | fi | |
2276 | ||
2277 | ||
2278 | eval "$ac_cv_use_debug_gdb" | |
2279 | if test "$no_cache" != 1; then | |
2280 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2281 | fi | |
2282 | ||
2283 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
2284 | echo "$ac_t""yes" 1>&6 | |
2285 | else | |
2286 | echo "$ac_t""no" 1>&6 | |
2287 | fi | |
2288 | ||
2289 | ||
2290 | echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6 | |
6426998c | 2291 | echo "configure:2292: checking "for --enable-debug_cntxt"" >&5 |
10f2d63a VZ |
2292 | no_cache=0 |
2293 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2294 | if test "${enable_debug_cntxt+set}" = set; then | |
2295 | enableval="$enable_debug_cntxt" | |
2296 | ||
2297 | if test "$enableval" = yes; then | |
2298 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2299 | else | |
2300 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2301 | fi | |
2302 | ||
2303 | else | |
2304 | ||
2305 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
2306 | if test "x$LINE" != x ; then | |
2307 | eval "DEFAULT_$LINE" | |
2308 | else | |
2309 | no_cache=1 | |
2310 | fi | |
2311 | ||
2312 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
2313 | ||
2314 | fi | |
2315 | ||
2316 | ||
2317 | eval "$ac_cv_use_debug_cntxt" | |
2318 | if test "$no_cache" != 1; then | |
2319 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2320 | fi | |
2321 | ||
2322 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
2323 | echo "$ac_t""yes" 1>&6 | |
2324 | else | |
2325 | echo "$ac_t""no" 1>&6 | |
2326 | fi | |
2327 | ||
2328 | ||
2329 | echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6 | |
6426998c | 2330 | echo "configure:2331: checking "for --enable-mem_tracing"" >&5 |
10f2d63a VZ |
2331 | no_cache=0 |
2332 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2333 | if test "${enable_mem_tracing+set}" = set; then | |
2334 | enableval="$enable_mem_tracing" | |
2335 | ||
2336 | if test "$enableval" = yes; then | |
2337 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2338 | else | |
2339 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2340 | fi | |
2341 | ||
2342 | else | |
2343 | ||
2344 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
2345 | if test "x$LINE" != x ; then | |
2346 | eval "DEFAULT_$LINE" | |
2347 | else | |
2348 | no_cache=1 | |
2349 | fi | |
2350 | ||
2351 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
2352 | ||
2353 | fi | |
2354 | ||
2355 | ||
2356 | eval "$ac_cv_use_mem_tracing" | |
2357 | if test "$no_cache" != 1; then | |
2358 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2359 | fi | |
2360 | ||
2361 | if test "$wxUSE_MEM_TRACING" = yes; then | |
2362 | echo "$ac_t""yes" 1>&6 | |
2363 | else | |
2364 | echo "$ac_t""no" 1>&6 | |
2365 | fi | |
2366 | ||
2367 | ||
2368 | echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6 | |
6426998c | 2369 | echo "configure:2370: checking "for --enable-profile"" >&5 |
10f2d63a VZ |
2370 | no_cache=0 |
2371 | # Check whether --enable-profile or --disable-profile was given. | |
2372 | if test "${enable_profile+set}" = set; then | |
2373 | enableval="$enable_profile" | |
2374 | ||
2375 | if test "$enableval" = yes; then | |
2376 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2377 | else | |
2378 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2379 | fi | |
2380 | ||
2381 | else | |
2382 | ||
2383 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
2384 | if test "x$LINE" != x ; then | |
2385 | eval "DEFAULT_$LINE" | |
2386 | else | |
2387 | no_cache=1 | |
2388 | fi | |
2389 | ||
2390 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
2391 | ||
2392 | fi | |
2393 | ||
2394 | ||
2395 | eval "$ac_cv_use_profile" | |
2396 | if test "$no_cache" != 1; then | |
2397 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2398 | fi | |
2399 | ||
2400 | if test "$wxUSE_PROFILE" = yes; then | |
2401 | echo "$ac_t""yes" 1>&6 | |
2402 | else | |
2403 | echo "$ac_t""no" 1>&6 | |
2404 | fi | |
2405 | ||
2406 | ||
2407 | echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6 | |
6426998c | 2408 | echo "configure:2409: checking "for --enable-no_rtti"" >&5 |
10f2d63a VZ |
2409 | no_cache=0 |
2410 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2411 | if test "${enable_no_rtti+set}" = set; then | |
2412 | enableval="$enable_no_rtti" | |
2413 | ||
2414 | if test "$enableval" = yes; then | |
2415 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2416 | else | |
2417 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2418 | fi | |
2419 | ||
2420 | else | |
2421 | ||
2422 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
2423 | if test "x$LINE" != x ; then | |
2424 | eval "DEFAULT_$LINE" | |
2425 | else | |
2426 | no_cache=1 | |
2427 | fi | |
2428 | ||
2429 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
2430 | ||
2431 | fi | |
2432 | ||
2433 | ||
2434 | eval "$ac_cv_use_no_rtti" | |
2435 | if test "$no_cache" != 1; then | |
2436 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2437 | fi | |
2438 | ||
2439 | if test "$wxUSE_NO_RTTI" = yes; then | |
2440 | echo "$ac_t""yes" 1>&6 | |
2441 | else | |
2442 | echo "$ac_t""no" 1>&6 | |
2443 | fi | |
2444 | ||
2445 | ||
2446 | echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6 | |
6426998c | 2447 | echo "configure:2448: checking "for --enable-no_exceptions"" >&5 |
10f2d63a VZ |
2448 | no_cache=0 |
2449 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2450 | if test "${enable_no_exceptions+set}" = set; then | |
2451 | enableval="$enable_no_exceptions" | |
2452 | ||
2453 | if test "$enableval" = yes; then | |
2454 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2455 | else | |
2456 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2457 | fi | |
2458 | ||
2459 | else | |
2460 | ||
2461 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
2462 | if test "x$LINE" != x ; then | |
2463 | eval "DEFAULT_$LINE" | |
2464 | else | |
2465 | no_cache=1 | |
2466 | fi | |
2467 | ||
2468 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
2469 | ||
2470 | fi | |
2471 | ||
2472 | ||
2473 | eval "$ac_cv_use_no_exceptions" | |
2474 | if test "$no_cache" != 1; then | |
2475 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2476 | fi | |
2477 | ||
2478 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
2479 | echo "$ac_t""yes" 1>&6 | |
2480 | else | |
2481 | echo "$ac_t""no" 1>&6 | |
2482 | fi | |
2483 | ||
2484 | ||
2485 | echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6 | |
6426998c | 2486 | echo "configure:2487: checking "for --enable-permissive"" >&5 |
10f2d63a VZ |
2487 | no_cache=0 |
2488 | # Check whether --enable-permissive or --disable-permissive was given. | |
2489 | if test "${enable_permissive+set}" = set; then | |
2490 | enableval="$enable_permissive" | |
2491 | ||
2492 | if test "$enableval" = yes; then | |
2493 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2494 | else | |
2495 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2496 | fi | |
2497 | ||
2498 | else | |
2499 | ||
2500 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
2501 | if test "x$LINE" != x ; then | |
2502 | eval "DEFAULT_$LINE" | |
2503 | else | |
2504 | no_cache=1 | |
2505 | fi | |
2506 | ||
2507 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
2508 | ||
2509 | fi | |
2510 | ||
2511 | ||
2512 | eval "$ac_cv_use_permissive" | |
2513 | if test "$no_cache" != 1; then | |
2514 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2515 | fi | |
2516 | ||
2517 | if test "$wxUSE_PERMISSIVE" = yes; then | |
2518 | echo "$ac_t""yes" 1>&6 | |
2519 | else | |
2520 | echo "$ac_t""no" 1>&6 | |
2521 | fi | |
2522 | ||
2523 | ||
2524 | echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6 | |
6426998c | 2525 | echo "configure:2526: checking "for --enable-no_deps"" >&5 |
10f2d63a VZ |
2526 | no_cache=0 |
2527 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2528 | if test "${enable_no_deps+set}" = set; then | |
2529 | enableval="$enable_no_deps" | |
2530 | ||
2531 | if test "$enableval" = yes; then | |
2532 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2533 | else | |
2534 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2535 | fi | |
2536 | ||
2537 | else | |
2538 | ||
2539 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
2540 | if test "x$LINE" != x ; then | |
2541 | eval "DEFAULT_$LINE" | |
2542 | else | |
2543 | no_cache=1 | |
2544 | fi | |
2545 | ||
2546 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
2547 | ||
2548 | fi | |
2549 | ||
2550 | ||
2551 | eval "$ac_cv_use_no_deps" | |
2552 | if test "$no_cache" != 1; then | |
2553 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2554 | fi | |
2555 | ||
2556 | if test "$wxUSE_NO_DEPS" = yes; then | |
2557 | echo "$ac_t""yes" 1>&6 | |
2558 | else | |
2559 | echo "$ac_t""no" 1>&6 | |
2560 | fi | |
2561 | ||
2562 | ||
2563 | ||
2564 | ||
2565 | echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6 | |
6426998c | 2566 | echo "configure:2567: checking "for --enable-intl"" >&5 |
10f2d63a VZ |
2567 | no_cache=0 |
2568 | # Check whether --enable-intl or --disable-intl was given. | |
2569 | if test "${enable_intl+set}" = set; then | |
2570 | enableval="$enable_intl" | |
2571 | ||
2572 | if test "$enableval" = yes; then | |
2573 | ac_cv_use_intl='wxUSE_INTL=yes' | |
2574 | else | |
2575 | ac_cv_use_intl='wxUSE_INTL=no' | |
2576 | fi | |
2577 | ||
2578 | else | |
2579 | ||
2580 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
2581 | if test "x$LINE" != x ; then | |
2582 | eval "DEFAULT_$LINE" | |
2583 | else | |
2584 | no_cache=1 | |
2585 | fi | |
2586 | ||
2587 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
2588 | ||
2589 | fi | |
2590 | ||
2591 | ||
2592 | eval "$ac_cv_use_intl" | |
2593 | if test "$no_cache" != 1; then | |
2594 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
2595 | fi | |
2596 | ||
2597 | if test "$wxUSE_INTL" = yes; then | |
2598 | echo "$ac_t""yes" 1>&6 | |
2599 | else | |
2600 | echo "$ac_t""no" 1>&6 | |
2601 | fi | |
2602 | ||
2603 | ||
2604 | echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6 | |
6426998c | 2605 | echo "configure:2606: checking "for --enable-config"" >&5 |
10f2d63a VZ |
2606 | no_cache=0 |
2607 | # Check whether --enable-config or --disable-config was given. | |
2608 | if test "${enable_config+set}" = set; then | |
2609 | enableval="$enable_config" | |
2610 | ||
2611 | if test "$enableval" = yes; then | |
2612 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
2613 | else | |
2614 | ac_cv_use_config='wxUSE_CONFIG=no' | |
2615 | fi | |
2616 | ||
2617 | else | |
2618 | ||
2619 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
2620 | if test "x$LINE" != x ; then | |
2621 | eval "DEFAULT_$LINE" | |
2622 | else | |
2623 | no_cache=1 | |
2624 | fi | |
2625 | ||
2626 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
2627 | ||
2628 | fi | |
2629 | ||
2630 | ||
2631 | eval "$ac_cv_use_config" | |
2632 | if test "$no_cache" != 1; then | |
2633 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
2634 | fi | |
2635 | ||
2636 | if test "$wxUSE_CONFIG" = yes; then | |
2637 | echo "$ac_t""yes" 1>&6 | |
2638 | else | |
2639 | echo "$ac_t""no" 1>&6 | |
2640 | fi | |
2641 | ||
2642 | ||
b12915c1 | 2643 | |
10f2d63a | 2644 | echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6 |
6426998c | 2645 | echo "configure:2646: checking "for --enable-sockets"" >&5 |
10f2d63a VZ |
2646 | no_cache=0 |
2647 | # Check whether --enable-sockets or --disable-sockets was given. | |
2648 | if test "${enable_sockets+set}" = set; then | |
2649 | enableval="$enable_sockets" | |
2650 | ||
2651 | if test "$enableval" = yes; then | |
2652 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
2653 | else | |
2654 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
2655 | fi | |
2656 | ||
2657 | else | |
2658 | ||
2659 | LINE=`grep "wxUSE_SOCKETS" ${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_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
2667 | ||
2668 | fi | |
2669 | ||
2670 | ||
2671 | eval "$ac_cv_use_sockets" | |
2672 | if test "$no_cache" != 1; then | |
2673 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
2674 | fi | |
2675 | ||
2676 | if test "$wxUSE_SOCKETS" = yes; then | |
2677 | echo "$ac_t""yes" 1>&6 | |
2678 | else | |
2679 | echo "$ac_t""no" 1>&6 | |
2680 | fi | |
2681 | ||
b12915c1 | 2682 | |
10f2d63a | 2683 | |
eb4efbdc | 2684 | echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6 |
6426998c | 2685 | echo "configure:2686: checking "for --enable-ipc"" >&5 |
10f2d63a | 2686 | no_cache=0 |
eb4efbdc VZ |
2687 | # Check whether --enable-ipc or --disable-ipc was given. |
2688 | if test "${enable_ipc+set}" = set; then | |
2689 | enableval="$enable_ipc" | |
10f2d63a VZ |
2690 | |
2691 | if test "$enableval" = yes; then | |
eb4efbdc | 2692 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 2693 | else |
eb4efbdc | 2694 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a VZ |
2695 | fi |
2696 | ||
2697 | else | |
2698 | ||
eb4efbdc | 2699 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
2700 | if test "x$LINE" != x ; then |
2701 | eval "DEFAULT_$LINE" | |
2702 | else | |
2703 | no_cache=1 | |
2704 | fi | |
2705 | ||
eb4efbdc | 2706 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
10f2d63a VZ |
2707 | |
2708 | fi | |
2709 | ||
2710 | ||
eb4efbdc | 2711 | eval "$ac_cv_use_ipc" |
10f2d63a | 2712 | if test "$no_cache" != 1; then |
eb4efbdc | 2713 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2714 | fi |
2715 | ||
eb4efbdc | 2716 | if test "$wxUSE_IPC" = yes; then |
10f2d63a VZ |
2717 | echo "$ac_t""yes" 1>&6 |
2718 | else | |
2719 | echo "$ac_t""no" 1>&6 | |
2720 | fi | |
2721 | ||
2722 | ||
eb4efbdc VZ |
2723 | |
2724 | echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6 | |
6426998c | 2725 | echo "configure:2726: checking "for --enable-dialupman"" >&5 |
10f2d63a | 2726 | no_cache=0 |
eb4efbdc VZ |
2727 | # Check whether --enable-dialupman or --disable-dialupman was given. |
2728 | if test "${enable_dialupman+set}" = set; then | |
2729 | enableval="$enable_dialupman" | |
10f2d63a VZ |
2730 | |
2731 | if test "$enableval" = yes; then | |
eb4efbdc | 2732 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 2733 | else |
eb4efbdc | 2734 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a VZ |
2735 | fi |
2736 | ||
2737 | else | |
2738 | ||
eb4efbdc | 2739 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
2740 | if test "x$LINE" != x ; then |
2741 | eval "DEFAULT_$LINE" | |
2742 | else | |
2743 | no_cache=1 | |
2744 | fi | |
2745 | ||
eb4efbdc | 2746 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
10f2d63a VZ |
2747 | |
2748 | fi | |
2749 | ||
2750 | ||
eb4efbdc | 2751 | eval "$ac_cv_use_dialupman" |
10f2d63a | 2752 | if test "$no_cache" != 1; then |
eb4efbdc | 2753 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2754 | fi |
2755 | ||
eb4efbdc | 2756 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
10f2d63a VZ |
2757 | echo "$ac_t""yes" 1>&6 |
2758 | else | |
2759 | echo "$ac_t""no" 1>&6 | |
2760 | fi | |
2761 | ||
2762 | ||
2763 | echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6 | |
6426998c | 2764 | echo "configure:2765: checking "for --enable-apple_ieee"" >&5 |
10f2d63a VZ |
2765 | no_cache=0 |
2766 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
2767 | if test "${enable_apple_ieee+set}" = set; then | |
2768 | enableval="$enable_apple_ieee" | |
2769 | ||
2770 | if test "$enableval" = yes; then | |
2771 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
2772 | else | |
2773 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
2774 | fi | |
2775 | ||
2776 | else | |
2777 | ||
2778 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
2779 | if test "x$LINE" != x ; then | |
2780 | eval "DEFAULT_$LINE" | |
2781 | else | |
2782 | no_cache=1 | |
2783 | fi | |
2784 | ||
2785 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
2786 | ||
2787 | fi | |
2788 | ||
2789 | ||
2790 | eval "$ac_cv_use_apple_ieee" | |
2791 | if test "$no_cache" != 1; then | |
2792 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
2793 | fi | |
2794 | ||
2795 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
2796 | echo "$ac_t""yes" 1>&6 | |
2797 | else | |
2798 | echo "$ac_t""no" 1>&6 | |
2799 | fi | |
2800 | ||
2801 | ||
2802 | echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6 | |
6426998c | 2803 | echo "configure:2804: checking "for --enable-timedate"" >&5 |
10f2d63a VZ |
2804 | no_cache=0 |
2805 | # Check whether --enable-timedate or --disable-timedate was given. | |
2806 | if test "${enable_timedate+set}" = set; then | |
2807 | enableval="$enable_timedate" | |
2808 | ||
2809 | if test "$enableval" = yes; then | |
2810 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
2811 | else | |
2812 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
2813 | fi | |
2814 | ||
2815 | else | |
2816 | ||
2817 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
2818 | if test "x$LINE" != x ; then | |
2819 | eval "DEFAULT_$LINE" | |
2820 | else | |
2821 | no_cache=1 | |
2822 | fi | |
2823 | ||
2824 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
2825 | ||
2826 | fi | |
2827 | ||
2828 | ||
2829 | eval "$ac_cv_use_timedate" | |
2830 | if test "$no_cache" != 1; then | |
2831 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
2832 | fi | |
2833 | ||
2834 | if test "$wxUSE_TIMEDATE" = yes; then | |
2835 | echo "$ac_t""yes" 1>&6 | |
2836 | else | |
2837 | echo "$ac_t""no" 1>&6 | |
2838 | fi | |
2839 | ||
2840 | ||
2841 | echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6 | |
6426998c | 2842 | echo "configure:2843: checking "for --enable-wave"" >&5 |
10f2d63a VZ |
2843 | no_cache=0 |
2844 | # Check whether --enable-wave or --disable-wave was given. | |
2845 | if test "${enable_wave+set}" = set; then | |
2846 | enableval="$enable_wave" | |
2847 | ||
2848 | if test "$enableval" = yes; then | |
2849 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
2850 | else | |
2851 | ac_cv_use_wave='wxUSE_WAVE=no' | |
2852 | fi | |
2853 | ||
2854 | else | |
2855 | ||
2856 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` | |
2857 | if test "x$LINE" != x ; then | |
2858 | eval "DEFAULT_$LINE" | |
2859 | else | |
2860 | no_cache=1 | |
2861 | fi | |
2862 | ||
2863 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
2864 | ||
2865 | fi | |
2866 | ||
2867 | ||
2868 | eval "$ac_cv_use_wave" | |
2869 | if test "$no_cache" != 1; then | |
2870 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
2871 | fi | |
2872 | ||
2873 | if test "$wxUSE_WAVE" = yes; then | |
2874 | echo "$ac_t""yes" 1>&6 | |
2875 | else | |
2876 | echo "$ac_t""no" 1>&6 | |
2877 | fi | |
2878 | ||
2879 | ||
2880 | echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6 | |
6426998c | 2881 | echo "configure:2882: checking "for --enable-fraction"" >&5 |
10f2d63a VZ |
2882 | no_cache=0 |
2883 | # Check whether --enable-fraction or --disable-fraction was given. | |
2884 | if test "${enable_fraction+set}" = set; then | |
2885 | enableval="$enable_fraction" | |
2886 | ||
2887 | if test "$enableval" = yes; then | |
2888 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
2889 | else | |
2890 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
2891 | fi | |
2892 | ||
2893 | else | |
2894 | ||
2895 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` | |
2896 | if test "x$LINE" != x ; then | |
2897 | eval "DEFAULT_$LINE" | |
2898 | else | |
2899 | no_cache=1 | |
2900 | fi | |
2901 | ||
2902 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
2903 | ||
2904 | fi | |
2905 | ||
2906 | ||
2907 | eval "$ac_cv_use_fraction" | |
2908 | if test "$no_cache" != 1; then | |
2909 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
2910 | fi | |
2911 | ||
2912 | if test "$wxUSE_FRACTION" = yes; then | |
2913 | echo "$ac_t""yes" 1>&6 | |
2914 | else | |
2915 | echo "$ac_t""no" 1>&6 | |
2916 | fi | |
2917 | ||
2918 | ||
2919 | echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6 | |
6426998c | 2920 | echo "configure:2921: checking "for --enable-dynlib"" >&5 |
10f2d63a VZ |
2921 | no_cache=0 |
2922 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
2923 | if test "${enable_dynlib+set}" = set; then | |
2924 | enableval="$enable_dynlib" | |
2925 | ||
2926 | if test "$enableval" = yes; then | |
2927 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
2928 | else | |
2929 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
2930 | fi | |
2931 | ||
2932 | else | |
2933 | ||
2934 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
2935 | if test "x$LINE" != x ; then | |
2936 | eval "DEFAULT_$LINE" | |
2937 | else | |
2938 | no_cache=1 | |
2939 | fi | |
2940 | ||
2941 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
2942 | ||
2943 | fi | |
2944 | ||
2945 | ||
2946 | eval "$ac_cv_use_dynlib" | |
2947 | if test "$no_cache" != 1; then | |
2948 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
2949 | fi | |
2950 | ||
2951 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
2952 | echo "$ac_t""yes" 1>&6 | |
2953 | else | |
2954 | echo "$ac_t""no" 1>&6 | |
2955 | fi | |
2956 | ||
2957 | ||
2958 | echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6 | |
6426998c | 2959 | echo "configure:2960: checking "for --enable-longlong"" >&5 |
10f2d63a VZ |
2960 | no_cache=0 |
2961 | # Check whether --enable-longlong or --disable-longlong was given. | |
2962 | if test "${enable_longlong+set}" = set; then | |
2963 | enableval="$enable_longlong" | |
2964 | ||
2965 | if test "$enableval" = yes; then | |
2966 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
2967 | else | |
2968 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
2969 | fi | |
2970 | ||
2971 | else | |
2972 | ||
2973 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
2974 | if test "x$LINE" != x ; then | |
2975 | eval "DEFAULT_$LINE" | |
2976 | else | |
2977 | no_cache=1 | |
2978 | fi | |
2979 | ||
2980 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
2981 | ||
2982 | fi | |
2983 | ||
2984 | ||
2985 | eval "$ac_cv_use_longlong" | |
2986 | if test "$no_cache" != 1; then | |
2987 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
2988 | fi | |
2989 | ||
2990 | if test "$wxUSE_LONGLONG" = yes; then | |
2991 | echo "$ac_t""yes" 1>&6 | |
2992 | else | |
2993 | echo "$ac_t""no" 1>&6 | |
2994 | fi | |
2995 | ||
2996 | ||
e8f65ba6 | 2997 | echo $ac_n "checking "for --enable-geometry"""... $ac_c" 1>&6 |
6426998c | 2998 | echo "configure:2999: checking "for --enable-geometry"" >&5 |
e8f65ba6 RR |
2999 | no_cache=0 |
3000 | # Check whether --enable-geometry or --disable-geometry was given. | |
3001 | if test "${enable_geometry+set}" = set; then | |
3002 | enableval="$enable_geometry" | |
3003 | ||
3004 | if test "$enableval" = yes; then | |
3005 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3006 | else | |
3007 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3008 | fi | |
3009 | ||
3010 | else | |
3011 | ||
3012 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` | |
3013 | if test "x$LINE" != x ; then | |
3014 | eval "DEFAULT_$LINE" | |
3015 | else | |
3016 | no_cache=1 | |
3017 | fi | |
3018 | ||
3019 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
3020 | ||
3021 | fi | |
3022 | ||
3023 | ||
3024 | eval "$ac_cv_use_geometry" | |
3025 | if test "$no_cache" != 1; then | |
3026 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3027 | fi | |
3028 | ||
3029 | if test "$wxUSE_GEOMETRY" = yes; then | |
3030 | echo "$ac_t""yes" 1>&6 | |
3031 | else | |
3032 | echo "$ac_t""no" 1>&6 | |
3033 | fi | |
3034 | ||
3035 | ||
10f2d63a | 3036 | echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6 |
6426998c | 3037 | echo "configure:3038: checking "for --enable-log"" >&5 |
10f2d63a VZ |
3038 | no_cache=0 |
3039 | # Check whether --enable-log or --disable-log was given. | |
3040 | if test "${enable_log+set}" = set; then | |
3041 | enableval="$enable_log" | |
3042 | ||
3043 | if test "$enableval" = yes; then | |
3044 | ac_cv_use_log='wxUSE_LOG=yes' | |
3045 | else | |
3046 | ac_cv_use_log='wxUSE_LOG=no' | |
3047 | fi | |
3048 | ||
3049 | else | |
3050 | ||
3051 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
3052 | if test "x$LINE" != x ; then | |
3053 | eval "DEFAULT_$LINE" | |
3054 | else | |
3055 | no_cache=1 | |
3056 | fi | |
3057 | ||
3058 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
3059 | ||
3060 | fi | |
3061 | ||
3062 | ||
3063 | eval "$ac_cv_use_log" | |
3064 | if test "$no_cache" != 1; then | |
3065 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
3066 | fi | |
3067 | ||
3068 | if test "$wxUSE_LOG" = yes; then | |
3069 | echo "$ac_t""yes" 1>&6 | |
3070 | else | |
3071 | echo "$ac_t""no" 1>&6 | |
3072 | fi | |
3073 | ||
3074 | ||
3075 | echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6 | |
6426998c | 3076 | echo "configure:3077: checking "for --enable-streams"" >&5 |
10f2d63a VZ |
3077 | no_cache=0 |
3078 | # Check whether --enable-streams or --disable-streams was given. | |
3079 | if test "${enable_streams+set}" = set; then | |
3080 | enableval="$enable_streams" | |
3081 | ||
3082 | if test "$enableval" = yes; then | |
3083 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
3084 | else | |
3085 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
3086 | fi | |
3087 | ||
3088 | else | |
3089 | ||
3090 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
3091 | if test "x$LINE" != x ; then | |
3092 | eval "DEFAULT_$LINE" | |
3093 | else | |
3094 | no_cache=1 | |
3095 | fi | |
3096 | ||
3097 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
3098 | ||
3099 | fi | |
3100 | ||
3101 | ||
3102 | eval "$ac_cv_use_streams" | |
3103 | if test "$no_cache" != 1; then | |
3104 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
3105 | fi | |
3106 | ||
3107 | if test "$wxUSE_STREAMS" = yes; then | |
3108 | echo "$ac_t""yes" 1>&6 | |
3109 | else | |
3110 | echo "$ac_t""no" 1>&6 | |
3111 | fi | |
3112 | ||
3113 | ||
3114 | echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6 | |
6426998c | 3115 | echo "configure:3116: checking "for --enable-file"" >&5 |
10f2d63a VZ |
3116 | no_cache=0 |
3117 | # Check whether --enable-file or --disable-file was given. | |
3118 | if test "${enable_file+set}" = set; then | |
3119 | enableval="$enable_file" | |
3120 | ||
3121 | if test "$enableval" = yes; then | |
3122 | ac_cv_use_file='wxUSE_FILE=yes' | |
3123 | else | |
3124 | ac_cv_use_file='wxUSE_FILE=no' | |
3125 | fi | |
3126 | ||
3127 | else | |
3128 | ||
3129 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
3130 | if test "x$LINE" != x ; then | |
3131 | eval "DEFAULT_$LINE" | |
3132 | else | |
3133 | no_cache=1 | |
3134 | fi | |
3135 | ||
3136 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
3137 | ||
3138 | fi | |
3139 | ||
3140 | ||
3141 | eval "$ac_cv_use_file" | |
3142 | if test "$no_cache" != 1; then | |
3143 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
3144 | fi | |
3145 | ||
3146 | if test "$wxUSE_FILE" = yes; then | |
3147 | echo "$ac_t""yes" 1>&6 | |
3148 | else | |
3149 | echo "$ac_t""no" 1>&6 | |
3150 | fi | |
3151 | ||
3152 | ||
3153 | echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6 | |
6426998c | 3154 | echo "configure:3155: checking "for --enable-textfile"" >&5 |
10f2d63a VZ |
3155 | no_cache=0 |
3156 | # Check whether --enable-textfile or --disable-textfile was given. | |
3157 | if test "${enable_textfile+set}" = set; then | |
3158 | enableval="$enable_textfile" | |
3159 | ||
3160 | if test "$enableval" = yes; then | |
3161 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
3162 | else | |
3163 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
3164 | fi | |
3165 | ||
3166 | else | |
3167 | ||
3168 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
3169 | if test "x$LINE" != x ; then | |
3170 | eval "DEFAULT_$LINE" | |
3171 | else | |
3172 | no_cache=1 | |
3173 | fi | |
3174 | ||
3175 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
3176 | ||
3177 | fi | |
3178 | ||
3179 | ||
3180 | eval "$ac_cv_use_textfile" | |
3181 | if test "$no_cache" != 1; then | |
3182 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
3183 | fi | |
3184 | ||
3185 | if test "$wxUSE_TEXTFILE" = yes; then | |
3186 | echo "$ac_t""yes" 1>&6 | |
3187 | else | |
3188 | echo "$ac_t""no" 1>&6 | |
3189 | fi | |
3190 | ||
3191 | ||
3192 | echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6 | |
6426998c | 3193 | echo "configure:3194: checking "for --enable-unicode"" >&5 |
10f2d63a VZ |
3194 | no_cache=0 |
3195 | # Check whether --enable-unicode or --disable-unicode was given. | |
3196 | if test "${enable_unicode+set}" = set; then | |
3197 | enableval="$enable_unicode" | |
3198 | ||
3199 | if test "$enableval" = yes; then | |
3200 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
3201 | else | |
3202 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
3203 | fi | |
3204 | ||
3205 | else | |
3206 | ||
3207 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
3208 | if test "x$LINE" != x ; then | |
3209 | eval "DEFAULT_$LINE" | |
3210 | else | |
3211 | no_cache=1 | |
3212 | fi | |
3213 | ||
3214 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
3215 | ||
3216 | fi | |
3217 | ||
3218 | ||
3219 | eval "$ac_cv_use_unicode" | |
3220 | if test "$no_cache" != 1; then | |
3221 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
3222 | fi | |
3223 | ||
3224 | if test "$wxUSE_UNICODE" = yes; then | |
3225 | echo "$ac_t""yes" 1>&6 | |
3226 | else | |
3227 | echo "$ac_t""no" 1>&6 | |
3228 | fi | |
3229 | ||
3230 | ||
3231 | echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6 | |
6426998c | 3232 | echo "configure:3233: checking "for --enable-wcsrtombs"" >&5 |
10f2d63a VZ |
3233 | no_cache=0 |
3234 | # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given. | |
3235 | if test "${enable_wcsrtombs+set}" = set; then | |
3236 | enableval="$enable_wcsrtombs" | |
3237 | ||
3238 | if test "$enableval" = yes; then | |
3239 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes' | |
3240 | else | |
3241 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no' | |
3242 | fi | |
3243 | ||
3244 | else | |
3245 | ||
3246 | LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}` | |
3247 | if test "x$LINE" != x ; then | |
3248 | eval "DEFAULT_$LINE" | |
3249 | else | |
3250 | no_cache=1 | |
3251 | fi | |
3252 | ||
3253 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS | |
3254 | ||
3255 | fi | |
3256 | ||
3257 | ||
3258 | eval "$ac_cv_use_wcsrtombs" | |
3259 | if test "$no_cache" != 1; then | |
3260 | echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp | |
3261 | fi | |
3262 | ||
3263 | if test "$wxUSE_WCSRTOMBS" = yes; then | |
3264 | echo "$ac_t""yes" 1>&6 | |
3265 | else | |
3266 | echo "$ac_t""no" 1>&6 | |
3267 | fi | |
3268 | ||
3269 | ||
3270 | echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6 | |
6426998c | 3271 | echo "configure:3272: checking "for --enable-wxprintfv"" >&5 |
10f2d63a VZ |
3272 | no_cache=0 |
3273 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
3274 | if test "${enable_wxprintfv+set}" = set; then | |
3275 | enableval="$enable_wxprintfv" | |
3276 | ||
3277 | if test "$enableval" = yes; then | |
3278 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
3279 | else | |
3280 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
3281 | fi | |
3282 | ||
3283 | else | |
3284 | ||
3285 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
3286 | if test "x$LINE" != x ; then | |
3287 | eval "DEFAULT_$LINE" | |
3288 | else | |
3289 | no_cache=1 | |
3290 | fi | |
3291 | ||
3292 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
3293 | ||
3294 | fi | |
3295 | ||
3296 | ||
3297 | eval "$ac_cv_use_wxprintfv" | |
3298 | if test "$no_cache" != 1; then | |
3299 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
3300 | fi | |
3301 | ||
3302 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
3303 | echo "$ac_t""yes" 1>&6 | |
3304 | else | |
3305 | echo "$ac_t""no" 1>&6 | |
3306 | fi | |
3307 | ||
3308 | ||
10f2d63a | 3309 | echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6 |
6426998c | 3310 | echo "configure:3311: checking "for --enable-std_iostreams"" >&5 |
10f2d63a VZ |
3311 | no_cache=0 |
3312 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
3313 | if test "${enable_std_iostreams+set}" = set; then | |
3314 | enableval="$enable_std_iostreams" | |
3315 | ||
3316 | if test "$enableval" = yes; then | |
3317 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
3318 | else | |
3319 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
3320 | fi | |
3321 | ||
3322 | else | |
3323 | ||
3324 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` | |
3325 | if test "x$LINE" != x ; then | |
3326 | eval "DEFAULT_$LINE" | |
3327 | else | |
3328 | no_cache=1 | |
3329 | fi | |
3330 | ||
3331 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
3332 | ||
3333 | fi | |
3334 | ||
3335 | ||
3336 | eval "$ac_cv_use_std_iostreams" | |
3337 | if test "$no_cache" != 1; then | |
3338 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
3339 | fi | |
3340 | ||
3341 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
3342 | echo "$ac_t""yes" 1>&6 | |
3343 | else | |
3344 | echo "$ac_t""no" 1>&6 | |
3345 | fi | |
3346 | ||
3347 | ||
24528b0c | 3348 | echo $ac_n "checking "for --enable-filesystem"""... $ac_c" 1>&6 |
6426998c | 3349 | echo "configure:3350: checking "for --enable-filesystem"" >&5 |
24528b0c VS |
3350 | no_cache=0 |
3351 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
3352 | if test "${enable_filesystem+set}" = set; then | |
3353 | enableval="$enable_filesystem" | |
3354 | ||
3355 | if test "$enableval" = yes; then | |
3356 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
3357 | else | |
3358 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
3359 | fi | |
3360 | ||
3361 | else | |
3362 | ||
3363 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
3364 | if test "x$LINE" != x ; then | |
3365 | eval "DEFAULT_$LINE" | |
3366 | else | |
3367 | no_cache=1 | |
3368 | fi | |
3369 | ||
3370 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
3371 | ||
3372 | fi | |
3373 | ||
3374 | ||
3375 | eval "$ac_cv_use_filesystem" | |
3376 | if test "$no_cache" != 1; then | |
3377 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
3378 | fi | |
3379 | ||
3380 | if test "$wxUSE_FILESYSTEM" = yes; then | |
3381 | echo "$ac_t""yes" 1>&6 | |
3382 | else | |
3383 | echo "$ac_t""no" 1>&6 | |
3384 | fi | |
3385 | ||
3386 | ||
10f2d63a | 3387 | echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6 |
6426998c | 3388 | echo "configure:3389: checking "for --enable-fs_inet"" >&5 |
10f2d63a VZ |
3389 | no_cache=0 |
3390 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
3391 | if test "${enable_fs_inet+set}" = set; then | |
3392 | enableval="$enable_fs_inet" | |
3393 | ||
3394 | if test "$enableval" = yes; then | |
3395 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
3396 | else | |
3397 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
3398 | fi | |
3399 | ||
3400 | else | |
3401 | ||
3402 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
3403 | if test "x$LINE" != x ; then | |
3404 | eval "DEFAULT_$LINE" | |
3405 | else | |
3406 | no_cache=1 | |
3407 | fi | |
3408 | ||
3409 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
3410 | ||
3411 | fi | |
3412 | ||
3413 | ||
3414 | eval "$ac_cv_use_fs_inet" | |
3415 | if test "$no_cache" != 1; then | |
3416 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
3417 | fi | |
3418 | ||
3419 | if test "$wxUSE_FS_INET" = yes; then | |
3420 | echo "$ac_t""yes" 1>&6 | |
3421 | else | |
3422 | echo "$ac_t""no" 1>&6 | |
3423 | fi | |
3424 | ||
3425 | ||
3426 | echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6 | |
6426998c | 3427 | echo "configure:3428: checking "for --enable-fs_zip"" >&5 |
10f2d63a VZ |
3428 | no_cache=0 |
3429 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
3430 | if test "${enable_fs_zip+set}" = set; then | |
3431 | enableval="$enable_fs_zip" | |
3432 | ||
3433 | if test "$enableval" = yes; then | |
3434 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
3435 | else | |
3436 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
3437 | fi | |
3438 | ||
3439 | else | |
3440 | ||
3441 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
3442 | if test "x$LINE" != x ; then | |
3443 | eval "DEFAULT_$LINE" | |
3444 | else | |
3445 | no_cache=1 | |
3446 | fi | |
3447 | ||
3448 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
3449 | ||
3450 | fi | |
3451 | ||
3452 | ||
3453 | eval "$ac_cv_use_fs_zip" | |
3454 | if test "$no_cache" != 1; then | |
3455 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
3456 | fi | |
3457 | ||
3458 | if test "$wxUSE_FS_ZIP" = yes; then | |
3459 | echo "$ac_t""yes" 1>&6 | |
3460 | else | |
3461 | echo "$ac_t""no" 1>&6 | |
3462 | fi | |
3463 | ||
3464 | ||
3465 | echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6 | |
6426998c | 3466 | echo "configure:3467: checking "for --enable-zipstream"" >&5 |
10f2d63a VZ |
3467 | no_cache=0 |
3468 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
3469 | if test "${enable_zipstream+set}" = set; then | |
3470 | enableval="$enable_zipstream" | |
3471 | ||
3472 | if test "$enableval" = yes; then | |
3473 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
3474 | else | |
3475 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
3476 | fi | |
3477 | ||
3478 | else | |
3479 | ||
3480 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
3481 | if test "x$LINE" != x ; then | |
3482 | eval "DEFAULT_$LINE" | |
3483 | else | |
3484 | no_cache=1 | |
3485 | fi | |
3486 | ||
3487 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
3488 | ||
3489 | fi | |
3490 | ||
3491 | ||
3492 | eval "$ac_cv_use_zipstream" | |
3493 | if test "$no_cache" != 1; then | |
3494 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
3495 | fi | |
3496 | ||
3497 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
3498 | echo "$ac_t""yes" 1>&6 | |
3499 | else | |
3500 | echo "$ac_t""no" 1>&6 | |
3501 | fi | |
3502 | ||
3503 | ||
3504 | ||
eb4efbdc | 3505 | echo $ac_n "checking "for --enable-catch_segvs"""... $ac_c" 1>&6 |
6426998c | 3506 | echo "configure:3507: checking "for --enable-catch_segvs"" >&5 |
eb4efbdc VZ |
3507 | no_cache=0 |
3508 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
3509 | if test "${enable_catch_segvs+set}" = set; then | |
3510 | enableval="$enable_catch_segvs" | |
3511 | ||
3512 | if test "$enableval" = yes; then | |
3513 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
3514 | else | |
3515 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
3516 | fi | |
3517 | ||
3518 | else | |
3519 | ||
3520 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` | |
3521 | if test "x$LINE" != x ; then | |
3522 | eval "DEFAULT_$LINE" | |
3523 | else | |
3524 | no_cache=1 | |
3525 | fi | |
3526 | ||
3527 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
3528 | ||
3529 | fi | |
3530 | ||
3531 | ||
3532 | eval "$ac_cv_use_catch_segvs" | |
3533 | if test "$no_cache" != 1; then | |
3534 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
3535 | fi | |
3536 | ||
3537 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
3538 | echo "$ac_t""yes" 1>&6 | |
3539 | else | |
3540 | echo "$ac_t""no" 1>&6 | |
3541 | fi | |
3542 | ||
3543 | ||
3544 | ||
10f2d63a VZ |
3545 | |
3546 | echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6 | |
6426998c | 3547 | echo "configure:3548: checking "for --enable-threads"" >&5 |
10f2d63a VZ |
3548 | no_cache=0 |
3549 | # Check whether --enable-threads or --disable-threads was given. | |
3550 | if test "${enable_threads+set}" = set; then | |
3551 | enableval="$enable_threads" | |
3552 | ||
3553 | if test "$enableval" = yes; then | |
3554 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
3555 | else | |
3556 | ac_cv_use_threads='wxUSE_THREADS=no' | |
3557 | fi | |
3558 | ||
3559 | else | |
3560 | ||
3561 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
3562 | if test "x$LINE" != x ; then | |
3563 | eval "DEFAULT_$LINE" | |
3564 | else | |
3565 | no_cache=1 | |
3566 | fi | |
3567 | ||
3568 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
3569 | ||
3570 | fi | |
3571 | ||
3572 | ||
3573 | eval "$ac_cv_use_threads" | |
3574 | if test "$no_cache" != 1; then | |
3575 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
3576 | fi | |
3577 | ||
3578 | if test "$wxUSE_THREADS" = yes; then | |
3579 | echo "$ac_t""yes" 1>&6 | |
3580 | else | |
3581 | echo "$ac_t""no" 1>&6 | |
3582 | fi | |
3583 | ||
3584 | ||
3585 | echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6 | |
6426998c | 3586 | echo "configure:3587: checking "for --enable-serial"" >&5 |
10f2d63a VZ |
3587 | no_cache=0 |
3588 | # Check whether --enable-serial or --disable-serial was given. | |
3589 | if test "${enable_serial+set}" = set; then | |
3590 | enableval="$enable_serial" | |
3591 | ||
3592 | if test "$enableval" = yes; then | |
3593 | ac_cv_use_serial='wxUSE_SERIAL=yes' | |
3594 | else | |
3595 | ac_cv_use_serial='wxUSE_SERIAL=no' | |
3596 | fi | |
3597 | ||
3598 | else | |
3599 | ||
3600 | LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}` | |
3601 | if test "x$LINE" != x ; then | |
3602 | eval "DEFAULT_$LINE" | |
3603 | else | |
3604 | no_cache=1 | |
3605 | fi | |
3606 | ||
3607 | ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL | |
3608 | ||
3609 | fi | |
3610 | ||
3611 | ||
3612 | eval "$ac_cv_use_serial" | |
3613 | if test "$no_cache" != 1; then | |
3614 | echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp | |
3615 | fi | |
3616 | ||
3617 | if test "$wxUSE_SERIAL" = yes; then | |
3618 | echo "$ac_t""yes" 1>&6 | |
3619 | else | |
3620 | echo "$ac_t""no" 1>&6 | |
3621 | fi | |
3622 | ||
3623 | ||
b12915c1 VZ |
3624 | if test "$wxUSE_GUI" = "yes"; then |
3625 | ||
10f2d63a VZ |
3626 | |
3627 | ||
3628 | echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6 | |
6426998c | 3629 | echo "configure:3630: checking "for --enable-docview"" >&5 |
10f2d63a VZ |
3630 | no_cache=0 |
3631 | # Check whether --enable-docview or --disable-docview was given. | |
3632 | if test "${enable_docview+set}" = set; then | |
3633 | enableval="$enable_docview" | |
3634 | ||
3635 | if test "$enableval" = yes; then | |
3636 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
3637 | else | |
3638 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
3639 | fi | |
3640 | ||
3641 | else | |
3642 | ||
3643 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
3644 | if test "x$LINE" != x ; then | |
3645 | eval "DEFAULT_$LINE" | |
3646 | else | |
3647 | no_cache=1 | |
3648 | fi | |
3649 | ||
3650 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
3651 | ||
3652 | fi | |
3653 | ||
3654 | ||
3655 | eval "$ac_cv_use_docview" | |
3656 | if test "$no_cache" != 1; then | |
3657 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
3658 | fi | |
3659 | ||
3660 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
3661 | echo "$ac_t""yes" 1>&6 | |
3662 | else | |
3663 | echo "$ac_t""no" 1>&6 | |
3664 | fi | |
3665 | ||
3666 | ||
3667 | echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6 | |
6426998c | 3668 | echo "configure:3669: checking "for --enable-help"" >&5 |
10f2d63a VZ |
3669 | no_cache=0 |
3670 | # Check whether --enable-help or --disable-help was given. | |
3671 | if test "${enable_help+set}" = set; then | |
3672 | enableval="$enable_help" | |
3673 | ||
3674 | if test "$enableval" = yes; then | |
3675 | ac_cv_use_help='wxUSE_HELP=yes' | |
3676 | else | |
3677 | ac_cv_use_help='wxUSE_HELP=no' | |
3678 | fi | |
3679 | ||
3680 | else | |
3681 | ||
3682 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
3683 | if test "x$LINE" != x ; then | |
3684 | eval "DEFAULT_$LINE" | |
3685 | else | |
3686 | no_cache=1 | |
3687 | fi | |
3688 | ||
3689 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
3690 | ||
3691 | fi | |
3692 | ||
3693 | ||
3694 | eval "$ac_cv_use_help" | |
3695 | if test "$no_cache" != 1; then | |
3696 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
3697 | fi | |
3698 | ||
3699 | if test "$wxUSE_HELP" = yes; then | |
3700 | echo "$ac_t""yes" 1>&6 | |
3701 | else | |
3702 | echo "$ac_t""no" 1>&6 | |
3703 | fi | |
3704 | ||
3705 | ||
3706 | echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6 | |
6426998c | 3707 | echo "configure:3708: checking "for --enable-constraints"" >&5 |
10f2d63a VZ |
3708 | no_cache=0 |
3709 | # Check whether --enable-constraints or --disable-constraints was given. | |
3710 | if test "${enable_constraints+set}" = set; then | |
3711 | enableval="$enable_constraints" | |
3712 | ||
3713 | if test "$enableval" = yes; then | |
3714 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
3715 | else | |
3716 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
3717 | fi | |
3718 | ||
3719 | else | |
3720 | ||
3721 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
3722 | if test "x$LINE" != x ; then | |
3723 | eval "DEFAULT_$LINE" | |
3724 | else | |
3725 | no_cache=1 | |
3726 | fi | |
3727 | ||
3728 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
3729 | ||
3730 | fi | |
3731 | ||
3732 | ||
3733 | eval "$ac_cv_use_constraints" | |
3734 | if test "$no_cache" != 1; then | |
3735 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
3736 | fi | |
3737 | ||
3738 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
3739 | echo "$ac_t""yes" 1>&6 | |
3740 | else | |
3741 | echo "$ac_t""no" 1>&6 | |
3742 | fi | |
3743 | ||
3744 | ||
3745 | echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6 | |
6426998c | 3746 | echo "configure:3747: checking "for --enable-printarch"" >&5 |
10f2d63a VZ |
3747 | no_cache=0 |
3748 | # Check whether --enable-printarch or --disable-printarch was given. | |
3749 | if test "${enable_printarch+set}" = set; then | |
3750 | enableval="$enable_printarch" | |
3751 | ||
3752 | if test "$enableval" = yes; then | |
3753 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
3754 | else | |
3755 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
3756 | fi | |
3757 | ||
3758 | else | |
3759 | ||
3760 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
3761 | if test "x$LINE" != x ; then | |
3762 | eval "DEFAULT_$LINE" | |
3763 | else | |
3764 | no_cache=1 | |
3765 | fi | |
3766 | ||
3767 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
3768 | ||
3769 | fi | |
3770 | ||
3771 | ||
3772 | eval "$ac_cv_use_printarch" | |
3773 | if test "$no_cache" != 1; then | |
3774 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
3775 | fi | |
3776 | ||
3777 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
3778 | echo "$ac_t""yes" 1>&6 | |
3779 | else | |
3780 | echo "$ac_t""no" 1>&6 | |
3781 | fi | |
3782 | ||
3783 | ||
3784 | echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6 | |
6426998c | 3785 | echo "configure:3786: checking "for --enable-mdi"" >&5 |
10f2d63a VZ |
3786 | no_cache=0 |
3787 | # Check whether --enable-mdi or --disable-mdi was given. | |
3788 | if test "${enable_mdi+set}" = set; then | |
3789 | enableval="$enable_mdi" | |
3790 | ||
3791 | if test "$enableval" = yes; then | |
3792 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
3793 | else | |
3794 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
3795 | fi | |
3796 | ||
3797 | else | |
3798 | ||
3799 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
3800 | if test "x$LINE" != x ; then | |
3801 | eval "DEFAULT_$LINE" | |
3802 | else | |
3803 | no_cache=1 | |
3804 | fi | |
3805 | ||
3806 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
3807 | ||
3808 | fi | |
3809 | ||
3810 | ||
3811 | eval "$ac_cv_use_mdi" | |
3812 | if test "$no_cache" != 1; then | |
3813 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
3814 | fi | |
3815 | ||
3816 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
3817 | echo "$ac_t""yes" 1>&6 | |
3818 | else | |
3819 | echo "$ac_t""no" 1>&6 | |
3820 | fi | |
3821 | ||
3822 | ||
3823 | ||
3824 | echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6 | |
6426998c | 3825 | echo "configure:3826: checking "for --enable-postscript"" >&5 |
10f2d63a VZ |
3826 | no_cache=0 |
3827 | # Check whether --enable-postscript or --disable-postscript was given. | |
3828 | if test "${enable_postscript+set}" = set; then | |
3829 | enableval="$enable_postscript" | |
3830 | ||
3831 | if test "$enableval" = yes; then | |
3832 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
3833 | else | |
3834 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
3835 | fi | |
3836 | ||
3837 | else | |
3838 | ||
3839 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
3840 | if test "x$LINE" != x ; then | |
3841 | eval "DEFAULT_$LINE" | |
3842 | else | |
3843 | no_cache=1 | |
3844 | fi | |
3845 | ||
3846 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
3847 | ||
3848 | fi | |
3849 | ||
3850 | ||
3851 | eval "$ac_cv_use_postscript" | |
3852 | if test "$no_cache" != 1; then | |
3853 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
3854 | fi | |
3855 | ||
3856 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
3857 | echo "$ac_t""yes" 1>&6 | |
3858 | else | |
3859 | echo "$ac_t""no" 1>&6 | |
3860 | fi | |
3861 | ||
3862 | ||
3863 | ||
3864 | ||
3865 | echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6 | |
6426998c | 3866 | echo "configure:3867: checking "for --enable-prologio"" >&5 |
10f2d63a VZ |
3867 | no_cache=0 |
3868 | # Check whether --enable-prologio or --disable-prologio was given. | |
3869 | if test "${enable_prologio+set}" = set; then | |
3870 | enableval="$enable_prologio" | |
3871 | ||
3872 | if test "$enableval" = yes; then | |
3873 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
3874 | else | |
3875 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
3876 | fi | |
3877 | ||
3878 | else | |
3879 | ||
3880 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
3881 | if test "x$LINE" != x ; then | |
3882 | eval "DEFAULT_$LINE" | |
3883 | else | |
3884 | no_cache=1 | |
3885 | fi | |
3886 | ||
3887 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
3888 | ||
3889 | fi | |
3890 | ||
3891 | ||
3892 | eval "$ac_cv_use_prologio" | |
3893 | if test "$no_cache" != 1; then | |
3894 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
3895 | fi | |
3896 | ||
3897 | if test "$wxUSE_PROLOGIO" = yes; then | |
3898 | echo "$ac_t""yes" 1>&6 | |
3899 | else | |
3900 | echo "$ac_t""no" 1>&6 | |
3901 | fi | |
3902 | ||
3903 | ||
3904 | echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6 | |
6426998c | 3905 | echo "configure:3906: checking "for --enable-resources"" >&5 |
10f2d63a VZ |
3906 | no_cache=0 |
3907 | # Check whether --enable-resources or --disable-resources was given. | |
3908 | if test "${enable_resources+set}" = set; then | |
3909 | enableval="$enable_resources" | |
3910 | ||
3911 | if test "$enableval" = yes; then | |
3912 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
3913 | else | |
3914 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
3915 | fi | |
3916 | ||
3917 | else | |
3918 | ||
3919 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
3920 | if test "x$LINE" != x ; then | |
3921 | eval "DEFAULT_$LINE" | |
3922 | else | |
3923 | no_cache=1 | |
3924 | fi | |
3925 | ||
3926 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
3927 | ||
3928 | fi | |
3929 | ||
3930 | ||
3931 | eval "$ac_cv_use_resources" | |
3932 | if test "$no_cache" != 1; then | |
3933 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
3934 | fi | |
3935 | ||
3936 | if test "$wxUSE_RESOURCES" = yes; then | |
3937 | echo "$ac_t""yes" 1>&6 | |
3938 | else | |
3939 | echo "$ac_t""no" 1>&6 | |
3940 | fi | |
3941 | ||
3942 | ||
3943 | ||
3944 | echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6 | |
6426998c | 3945 | echo "configure:3946: checking "for --enable-xresources"" >&5 |
10f2d63a VZ |
3946 | no_cache=0 |
3947 | # Check whether --enable-xresources or --disable-xresources was given. | |
3948 | if test "${enable_xresources+set}" = set; then | |
3949 | enableval="$enable_xresources" | |
3950 | ||
3951 | if test "$enableval" = yes; then | |
3952 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
3953 | else | |
3954 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
3955 | fi | |
3956 | ||
3957 | else | |
3958 | ||
3959 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` | |
3960 | if test "x$LINE" != x ; then | |
3961 | eval "DEFAULT_$LINE" | |
3962 | else | |
3963 | no_cache=1 | |
3964 | fi | |
3965 | ||
3966 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
3967 | ||
3968 | fi | |
3969 | ||
3970 | ||
3971 | eval "$ac_cv_use_xresources" | |
3972 | if test "$no_cache" != 1; then | |
3973 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
3974 | fi | |
3975 | ||
3976 | if test "$wxUSE_X_RESOURCES" = yes; then | |
3977 | echo "$ac_t""yes" 1>&6 | |
3978 | else | |
3979 | echo "$ac_t""no" 1>&6 | |
3980 | fi | |
3981 | ||
3982 | ||
3983 | ||
3984 | ||
3985 | echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6 | |
6426998c | 3986 | echo "configure:3987: checking "for --enable-clipboard"" >&5 |
10f2d63a VZ |
3987 | no_cache=0 |
3988 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
3989 | if test "${enable_clipboard+set}" = set; then | |
3990 | enableval="$enable_clipboard" | |
3991 | ||
3992 | if test "$enableval" = yes; then | |
3993 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
3994 | else | |
3995 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
3996 | fi | |
3997 | ||
3998 | else | |
3999 | ||
4000 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
4001 | if test "x$LINE" != x ; then | |
4002 | eval "DEFAULT_$LINE" | |
4003 | else | |
4004 | no_cache=1 | |
4005 | fi | |
4006 | ||
4007 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
4008 | ||
4009 | fi | |
4010 | ||
4011 | ||
4012 | eval "$ac_cv_use_clipboard" | |
4013 | if test "$no_cache" != 1; then | |
4014 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
4015 | fi | |
4016 | ||
4017 | if test "$wxUSE_CLIPBOARD" = yes; then | |
4018 | echo "$ac_t""yes" 1>&6 | |
4019 | else | |
4020 | echo "$ac_t""no" 1>&6 | |
4021 | fi | |
4022 | ||
4023 | ||
4024 | echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6 | |
6426998c | 4025 | echo "configure:4026: checking "for --enable-dnd"" >&5 |
10f2d63a VZ |
4026 | no_cache=0 |
4027 | # Check whether --enable-dnd or --disable-dnd was given. | |
4028 | if test "${enable_dnd+set}" = set; then | |
4029 | enableval="$enable_dnd" | |
4030 | ||
4031 | if test "$enableval" = yes; then | |
4032 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
4033 | else | |
4034 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
4035 | fi | |
4036 | ||
4037 | else | |
4038 | ||
4039 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
4040 | if test "x$LINE" != x ; then | |
4041 | eval "DEFAULT_$LINE" | |
4042 | else | |
4043 | no_cache=1 | |
4044 | fi | |
4045 | ||
4046 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
4047 | ||
4048 | fi | |
4049 | ||
4050 | ||
4051 | eval "$ac_cv_use_dnd" | |
4052 | if test "$no_cache" != 1; then | |
4053 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
4054 | fi | |
4055 | ||
4056 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
4057 | echo "$ac_t""yes" 1>&6 | |
4058 | else | |
4059 | echo "$ac_t""no" 1>&6 | |
4060 | fi | |
4061 | ||
4062 | ||
b64f0a5f | 4063 | echo $ac_n "checking "for --enable-metafile"""... $ac_c" 1>&6 |
6426998c | 4064 | echo "configure:4065: checking "for --enable-metafile"" >&5 |
b64f0a5f RL |
4065 | no_cache=0 |
4066 | # Check whether --enable-metafile or --disable-metafile was given. | |
4067 | if test "${enable_metafile+set}" = set; then | |
4068 | enableval="$enable_metafile" | |
4069 | ||
4070 | if test "$enableval" = yes; then | |
4071 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
4072 | else | |
4073 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
4074 | fi | |
4075 | ||
4076 | else | |
4077 | ||
4078 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
4079 | if test "x$LINE" != x ; then | |
4080 | eval "DEFAULT_$LINE" | |
4081 | else | |
4082 | no_cache=1 | |
4083 | fi | |
4084 | ||
4085 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
4086 | ||
4087 | fi | |
4088 | ||
4089 | ||
4090 | eval "$ac_cv_use_metafile" | |
4091 | if test "$no_cache" != 1; then | |
4092 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
4093 | fi | |
4094 | ||
4095 | if test "$wxUSE_METAFILE" = yes; then | |
4096 | echo "$ac_t""yes" 1>&6 | |
4097 | else | |
4098 | echo "$ac_t""no" 1>&6 | |
4099 | fi | |
4100 | ||
4101 | ||
10f2d63a VZ |
4102 | |
4103 | echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6 | |
6426998c | 4104 | echo "configure:4105: checking "for --enable-wxtree"" >&5 |
10f2d63a VZ |
4105 | no_cache=0 |
4106 | # Check whether --enable-wxtree or --disable-wxtree was given. | |
4107 | if test "${enable_wxtree+set}" = set; then | |
4108 | enableval="$enable_wxtree" | |
4109 | ||
4110 | if test "$enableval" = yes; then | |
4111 | ac_cv_use_wxtree='wxUSE_WXTREE=yes' | |
4112 | else | |
4113 | ac_cv_use_wxtree='wxUSE_WXTREE=no' | |
4114 | fi | |
4115 | ||
4116 | else | |
4117 | ||
4118 | LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}` | |
4119 | if test "x$LINE" != x ; then | |
4120 | eval "DEFAULT_$LINE" | |
4121 | else | |
4122 | no_cache=1 | |
4123 | fi | |
4124 | ||
4125 | ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE | |
4126 | ||
4127 | fi | |
4128 | ||
4129 | ||
4130 | eval "$ac_cv_use_wxtree" | |
4131 | if test "$no_cache" != 1; then | |
4132 | echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp | |
4133 | fi | |
4134 | ||
4135 | if test "$wxUSE_WXTREE" = yes; then | |
4136 | echo "$ac_t""yes" 1>&6 | |
4137 | else | |
4138 | echo "$ac_t""no" 1>&6 | |
4139 | fi | |
4140 | ||
4141 | ||
4142 | ||
4143 | ||
4144 | echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6 | |
6426998c | 4145 | echo "configure:4146: checking "for --enable-controls"" >&5 |
10f2d63a VZ |
4146 | no_cache=0 |
4147 | # Check whether --enable-controls or --disable-controls was given. | |
4148 | if test "${enable_controls+set}" = set; then | |
4149 | enableval="$enable_controls" | |
4150 | ||
4151 | if test "$enableval" = yes; then | |
4152 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
4153 | else | |
4154 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
4155 | fi | |
4156 | ||
4157 | else | |
4158 | ||
4159 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
4160 | if test "x$LINE" != x ; then | |
4161 | eval "DEFAULT_$LINE" | |
4162 | else | |
4163 | no_cache=1 | |
4164 | fi | |
4165 | ||
4166 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
4167 | ||
4168 | fi | |
4169 | ||
4170 | ||
4171 | eval "$ac_cv_use_controls" | |
4172 | if test "$no_cache" != 1; then | |
4173 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
4174 | fi | |
4175 | ||
4176 | if test "$wxUSE_CONTROLS" = yes; then | |
4177 | echo "$ac_t""yes" 1>&6 | |
4178 | else | |
4179 | echo "$ac_t""no" 1>&6 | |
4180 | fi | |
4181 | ||
4182 | ||
4183 | if test "$wxUSE_CONTROLS" = "yes"; then | |
4184 | DEFAULT_wxUSE_ACCEL=yes | |
4185 | DEFAULT_wxUSE_CARET=yes | |
4186 | DEFAULT_wxUSE_COMBOBOX=yes | |
4187 | DEFAULT_wxUSE_BMPBUTTON=yes | |
4188 | DEFAULT_wxUSE_CHECKBOX=yes | |
4189 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
4190 | DEFAULT_wxUSE_CHOICE=yes | |
4191 | DEFAULT_wxUSE_GAUGE=yes | |
4192 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 4193 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
4194 | DEFAULT_wxUSE_IMAGLIST=yes |
4195 | DEFAULT_wxUSE_LISTBOX=yes | |
4196 | DEFAULT_wxUSE_LISTCTRL=yes | |
4197 | DEFAULT_wxUSE_NOTEBOOK=yes | |
4198 | DEFAULT_wxUSE_RADIOBOX=yes | |
4199 | DEFAULT_wxUSE_RADIOBTN=yes | |
4200 | DEFAULT_wxUSE_SASH=yes | |
4201 | DEFAULT_wxUSE_SCROLLBAR=yes | |
4202 | DEFAULT_wxUSE_SLIDER=yes | |
4203 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 4204 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
4205 | DEFAULT_wxUSE_SPLITTER=yes |
4206 | DEFAULT_wxUSE_STATBMP=yes | |
4207 | DEFAULT_wxUSE_STATBOX=yes | |
4208 | DEFAULT_wxUSE_STATLINE=yes | |
4209 | DEFAULT_wxUSE_STATUSBAR=yes | |
4210 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 4211 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 4212 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
4213 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
4214 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
4215 | DEFAULT_wxUSE_TOOLTIPS=yes |
4216 | DEFAULT_wxUSE_TREECTRL=yes | |
4217 | elif test "$wxUSE_CONTROLS" = "no"; then | |
4218 | DEFAULT_wxUSE_ACCEL=no | |
4219 | DEFAULT_wxUSE_CARET=no | |
4220 | DEFAULT_wxUSE_COMBOBOX=no | |
4221 | DEFAULT_wxUSE_BMPBUTTON=no | |
4222 | DEFAULT_wxUSE_CHECKBOX=no | |
4223 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
4224 | DEFAULT_wxUSE_CHOICE=no | |
4225 | DEFAULT_wxUSE_GAUGE=no | |
4226 | DEFAULT_wxUSE_GRID=no | |
4227 | DEFAULT_wxUSE_NEW_GRID=no | |
4228 | DEFAULT_wxUSE_IMAGLIST=no | |
4229 | DEFAULT_wxUSE_LISTBOX=no | |
4230 | DEFAULT_wxUSE_LISTCTRL=no | |
4231 | DEFAULT_wxUSE_NOTEBOOK=no | |
4232 | DEFAULT_wxUSE_RADIOBOX=no | |
4233 | DEFAULT_wxUSE_RADIOBTN=no | |
4234 | DEFAULT_wxUSE_SASH=no | |
4235 | DEFAULT_wxUSE_SCROLLBAR=no | |
4236 | DEFAULT_wxUSE_SLIDER=no | |
4237 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 4238 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
4239 | DEFAULT_wxUSE_SPLITTER=no |
4240 | DEFAULT_wxUSE_STATBMP=no | |
4241 | DEFAULT_wxUSE_STATBOX=no | |
4242 | DEFAULT_wxUSE_STATLINE=no | |
4243 | DEFAULT_wxUSE_STATUSBAR=no | |
4244 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 4245 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 4246 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
4247 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
4248 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
4249 | DEFAULT_wxUSE_TOOLTIPS=no |
4250 | DEFAULT_wxUSE_TREECTRL=no | |
4251 | fi | |
4252 | ||
4253 | ||
4254 | echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6 | |
6426998c | 4255 | echo "configure:4256: checking "for --enable-accel"" >&5 |
10f2d63a VZ |
4256 | no_cache=0 |
4257 | # Check whether --enable-accel or --disable-accel was given. | |
4258 | if test "${enable_accel+set}" = set; then | |
4259 | enableval="$enable_accel" | |
4260 | ||
4261 | if test "$enableval" = yes; then | |
4262 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
4263 | else | |
4264 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
4265 | fi | |
4266 | ||
4267 | else | |
4268 | ||
4269 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
4270 | if test "x$LINE" != x ; then | |
4271 | eval "DEFAULT_$LINE" | |
4272 | else | |
4273 | no_cache=1 | |
4274 | fi | |
4275 | ||
4276 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
4277 | ||
4278 | fi | |
4279 | ||
4280 | ||
4281 | eval "$ac_cv_use_accel" | |
4282 | if test "$no_cache" != 1; then | |
4283 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
4284 | fi | |
4285 | ||
4286 | if test "$wxUSE_ACCEL" = yes; then | |
4287 | echo "$ac_t""yes" 1>&6 | |
4288 | else | |
4289 | echo "$ac_t""no" 1>&6 | |
4290 | fi | |
4291 | ||
4292 | ||
4293 | echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6 | |
6426998c | 4294 | echo "configure:4295: checking "for --enable-caret"" >&5 |
10f2d63a VZ |
4295 | no_cache=0 |
4296 | # Check whether --enable-caret or --disable-caret was given. | |
4297 | if test "${enable_caret+set}" = set; then | |
4298 | enableval="$enable_caret" | |
4299 | ||
4300 | if test "$enableval" = yes; then | |
4301 | ac_cv_use_caret='wxUSE_CARET=yes' | |
4302 | else | |
4303 | ac_cv_use_caret='wxUSE_CARET=no' | |
4304 | fi | |
4305 | ||
4306 | else | |
4307 | ||
4308 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
4309 | if test "x$LINE" != x ; then | |
4310 | eval "DEFAULT_$LINE" | |
4311 | else | |
4312 | no_cache=1 | |
4313 | fi | |
4314 | ||
4315 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
4316 | ||
4317 | fi | |
4318 | ||
4319 | ||
4320 | eval "$ac_cv_use_caret" | |
4321 | if test "$no_cache" != 1; then | |
4322 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
4323 | fi | |
4324 | ||
4325 | if test "$wxUSE_CARET" = yes; then | |
4326 | echo "$ac_t""yes" 1>&6 | |
4327 | else | |
4328 | echo "$ac_t""no" 1>&6 | |
4329 | fi | |
4330 | ||
4331 | ||
4332 | echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6 | |
6426998c | 4333 | echo "configure:4334: checking "for --enable-bmpbutton"" >&5 |
10f2d63a VZ |
4334 | no_cache=0 |
4335 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
4336 | if test "${enable_bmpbutton+set}" = set; then | |
4337 | enableval="$enable_bmpbutton" | |
4338 | ||
4339 | if test "$enableval" = yes; then | |
4340 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
4341 | else | |
4342 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
4343 | fi | |
4344 | ||
4345 | else | |
4346 | ||
4347 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
4348 | if test "x$LINE" != x ; then | |
4349 | eval "DEFAULT_$LINE" | |
4350 | else | |
4351 | no_cache=1 | |
4352 | fi | |
4353 | ||
4354 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
4355 | ||
4356 | fi | |
4357 | ||
4358 | ||
4359 | eval "$ac_cv_use_bmpbutton" | |
4360 | if test "$no_cache" != 1; then | |
4361 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
4362 | fi | |
4363 | ||
4364 | if test "$wxUSE_BMPBUTTON" = yes; then | |
4365 | echo "$ac_t""yes" 1>&6 | |
4366 | else | |
4367 | echo "$ac_t""no" 1>&6 | |
4368 | fi | |
4369 | ||
4370 | ||
4371 | echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6 | |
6426998c | 4372 | echo "configure:4373: checking "for --enable-checkbox"" >&5 |
10f2d63a VZ |
4373 | no_cache=0 |
4374 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
4375 | if test "${enable_checkbox+set}" = set; then | |
4376 | enableval="$enable_checkbox" | |
4377 | ||
4378 | if test "$enableval" = yes; then | |
4379 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
4380 | else | |
4381 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
4382 | fi | |
4383 | ||
4384 | else | |
4385 | ||
4386 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
4387 | if test "x$LINE" != x ; then | |
4388 | eval "DEFAULT_$LINE" | |
4389 | else | |
4390 | no_cache=1 | |
4391 | fi | |
4392 | ||
4393 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
4394 | ||
4395 | fi | |
4396 | ||
4397 | ||
4398 | eval "$ac_cv_use_checkbox" | |
4399 | if test "$no_cache" != 1; then | |
4400 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
4401 | fi | |
4402 | ||
4403 | if test "$wxUSE_CHECKBOX" = yes; then | |
4404 | echo "$ac_t""yes" 1>&6 | |
4405 | else | |
4406 | echo "$ac_t""no" 1>&6 | |
4407 | fi | |
4408 | ||
4409 | ||
4410 | echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6 | |
6426998c | 4411 | echo "configure:4412: checking "for --enable-checklst"" >&5 |
10f2d63a VZ |
4412 | no_cache=0 |
4413 | # Check whether --enable-checklst or --disable-checklst was given. | |
4414 | if test "${enable_checklst+set}" = set; then | |
4415 | enableval="$enable_checklst" | |
4416 | ||
4417 | if test "$enableval" = yes; then | |
4418 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
4419 | else | |
4420 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
4421 | fi | |
4422 | ||
4423 | else | |
4424 | ||
4425 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
4426 | if test "x$LINE" != x ; then | |
4427 | eval "DEFAULT_$LINE" | |
4428 | else | |
4429 | no_cache=1 | |
4430 | fi | |
4431 | ||
4432 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
4433 | ||
4434 | fi | |
4435 | ||
4436 | ||
4437 | eval "$ac_cv_use_checklst" | |
4438 | if test "$no_cache" != 1; then | |
4439 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
4440 | fi | |
4441 | ||
4442 | if test "$wxUSE_CHECKLST" = yes; then | |
4443 | echo "$ac_t""yes" 1>&6 | |
4444 | else | |
4445 | echo "$ac_t""no" 1>&6 | |
4446 | fi | |
4447 | ||
4448 | ||
4449 | echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6 | |
6426998c | 4450 | echo "configure:4451: checking "for --enable-choice"" >&5 |
10f2d63a VZ |
4451 | no_cache=0 |
4452 | # Check whether --enable-choice or --disable-choice was given. | |
4453 | if test "${enable_choice+set}" = set; then | |
4454 | enableval="$enable_choice" | |
4455 | ||
4456 | if test "$enableval" = yes; then | |
4457 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
4458 | else | |
4459 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
4460 | fi | |
4461 | ||
4462 | else | |
4463 | ||
4464 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
4465 | if test "x$LINE" != x ; then | |
4466 | eval "DEFAULT_$LINE" | |
4467 | else | |
4468 | no_cache=1 | |
4469 | fi | |
4470 | ||
4471 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
4472 | ||
4473 | fi | |
4474 | ||
4475 | ||
4476 | eval "$ac_cv_use_choice" | |
4477 | if test "$no_cache" != 1; then | |
4478 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
4479 | fi | |
4480 | ||
4481 | if test "$wxUSE_CHOICE" = yes; then | |
4482 | echo "$ac_t""yes" 1>&6 | |
4483 | else | |
4484 | echo "$ac_t""no" 1>&6 | |
4485 | fi | |
4486 | ||
4487 | ||
4488 | echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6 | |
6426998c | 4489 | echo "configure:4490: checking "for --enable-combobox"" >&5 |
10f2d63a VZ |
4490 | no_cache=0 |
4491 | # Check whether --enable-combobox or --disable-combobox was given. | |
4492 | if test "${enable_combobox+set}" = set; then | |
4493 | enableval="$enable_combobox" | |
4494 | ||
4495 | if test "$enableval" = yes; then | |
4496 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
4497 | else | |
4498 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
4499 | fi | |
4500 | ||
4501 | else | |
4502 | ||
4503 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
4504 | if test "x$LINE" != x ; then | |
4505 | eval "DEFAULT_$LINE" | |
4506 | else | |
4507 | no_cache=1 | |
4508 | fi | |
4509 | ||
4510 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
4511 | ||
4512 | fi | |
4513 | ||
4514 | ||
4515 | eval "$ac_cv_use_combobox" | |
4516 | if test "$no_cache" != 1; then | |
4517 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
4518 | fi | |
4519 | ||
4520 | if test "$wxUSE_COMBOBOX" = yes; then | |
4521 | echo "$ac_t""yes" 1>&6 | |
4522 | else | |
4523 | echo "$ac_t""no" 1>&6 | |
4524 | fi | |
4525 | ||
4526 | ||
4527 | echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6 | |
6426998c | 4528 | echo "configure:4529: checking "for --enable-gauge"" >&5 |
10f2d63a VZ |
4529 | no_cache=0 |
4530 | # Check whether --enable-gauge or --disable-gauge was given. | |
4531 | if test "${enable_gauge+set}" = set; then | |
4532 | enableval="$enable_gauge" | |
4533 | ||
4534 | if test "$enableval" = yes; then | |
4535 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
4536 | else | |
4537 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
4538 | fi | |
4539 | ||
4540 | else | |
4541 | ||
4542 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
4543 | if test "x$LINE" != x ; then | |
4544 | eval "DEFAULT_$LINE" | |
4545 | else | |
4546 | no_cache=1 | |
4547 | fi | |
4548 | ||
4549 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
4550 | ||
4551 | fi | |
4552 | ||
4553 | ||
4554 | eval "$ac_cv_use_gauge" | |
4555 | if test "$no_cache" != 1; then | |
4556 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
4557 | fi | |
4558 | ||
4559 | if test "$wxUSE_GAUGE" = yes; then | |
4560 | echo "$ac_t""yes" 1>&6 | |
4561 | else | |
4562 | echo "$ac_t""no" 1>&6 | |
4563 | fi | |
4564 | ||
4565 | ||
4566 | echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6 | |
6426998c | 4567 | echo "configure:4568: checking "for --enable-grid"" >&5 |
10f2d63a VZ |
4568 | no_cache=0 |
4569 | # Check whether --enable-grid or --disable-grid was given. | |
4570 | if test "${enable_grid+set}" = set; then | |
4571 | enableval="$enable_grid" | |
4572 | ||
4573 | if test "$enableval" = yes; then | |
4574 | ac_cv_use_grid='wxUSE_GRID=yes' | |
4575 | else | |
4576 | ac_cv_use_grid='wxUSE_GRID=no' | |
4577 | fi | |
4578 | ||
4579 | else | |
4580 | ||
4581 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
4582 | if test "x$LINE" != x ; then | |
4583 | eval "DEFAULT_$LINE" | |
4584 | else | |
4585 | no_cache=1 | |
4586 | fi | |
4587 | ||
4588 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
4589 | ||
4590 | fi | |
4591 | ||
4592 | ||
4593 | eval "$ac_cv_use_grid" | |
4594 | if test "$no_cache" != 1; then | |
4595 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
4596 | fi | |
4597 | ||
4598 | if test "$wxUSE_GRID" = yes; then | |
4599 | echo "$ac_t""yes" 1>&6 | |
4600 | else | |
4601 | echo "$ac_t""no" 1>&6 | |
4602 | fi | |
4603 | ||
4604 | ||
4605 | echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6 | |
6426998c | 4606 | echo "configure:4607: checking "for --enable-newgrid"" >&5 |
10f2d63a VZ |
4607 | no_cache=0 |
4608 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
4609 | if test "${enable_newgrid+set}" = set; then | |
4610 | enableval="$enable_newgrid" | |
4611 | ||
4612 | if test "$enableval" = yes; then | |
4613 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
4614 | else | |
4615 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
4616 | fi | |
4617 | ||
4618 | else | |
4619 | ||
4620 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` | |
4621 | if test "x$LINE" != x ; then | |
4622 | eval "DEFAULT_$LINE" | |
4623 | else | |
4624 | no_cache=1 | |
4625 | fi | |
4626 | ||
4627 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
4628 | ||
4629 | fi | |
4630 | ||
4631 | ||
4632 | eval "$ac_cv_use_newgrid" | |
4633 | if test "$no_cache" != 1; then | |
4634 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
4635 | fi | |
4636 | ||
4637 | if test "$wxUSE_NEW_GRID" = yes; then | |
4638 | echo "$ac_t""yes" 1>&6 | |
4639 | else | |
4640 | echo "$ac_t""no" 1>&6 | |
4641 | fi | |
4642 | ||
4643 | ||
4644 | echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6 | |
6426998c | 4645 | echo "configure:4646: checking "for --enable-imaglist"" >&5 |
10f2d63a VZ |
4646 | no_cache=0 |
4647 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
4648 | if test "${enable_imaglist+set}" = set; then | |
4649 | enableval="$enable_imaglist" | |
4650 | ||
4651 | if test "$enableval" = yes; then | |
4652 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
4653 | else | |
4654 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
4655 | fi | |
4656 | ||
4657 | else | |
4658 | ||
4659 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
4660 | if test "x$LINE" != x ; then | |
4661 | eval "DEFAULT_$LINE" | |
4662 | else | |
4663 | no_cache=1 | |
4664 | fi | |
4665 | ||
4666 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
4667 | ||
4668 | fi | |
4669 | ||
4670 | ||
4671 | eval "$ac_cv_use_imaglist" | |
4672 | if test "$no_cache" != 1; then | |
4673 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
4674 | fi | |
4675 | ||
4676 | if test "$wxUSE_IMAGLIST" = yes; then | |
4677 | echo "$ac_t""yes" 1>&6 | |
4678 | else | |
4679 | echo "$ac_t""no" 1>&6 | |
4680 | fi | |
4681 | ||
4682 | ||
4683 | echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6 | |
6426998c | 4684 | echo "configure:4685: checking "for --enable-listbox"" >&5 |
10f2d63a VZ |
4685 | no_cache=0 |
4686 | # Check whether --enable-listbox or --disable-listbox was given. | |
4687 | if test "${enable_listbox+set}" = set; then | |
4688 | enableval="$enable_listbox" | |
4689 | ||
4690 | if test "$enableval" = yes; then | |
4691 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
4692 | else | |
4693 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
4694 | fi | |
4695 | ||
4696 | else | |
4697 | ||
4698 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
4699 | if test "x$LINE" != x ; then | |
4700 | eval "DEFAULT_$LINE" | |
4701 | else | |
4702 | no_cache=1 | |
4703 | fi | |
4704 | ||
4705 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
4706 | ||
4707 | fi | |
4708 | ||
4709 | ||
4710 | eval "$ac_cv_use_listbox" | |
4711 | if test "$no_cache" != 1; then | |
4712 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
4713 | fi | |
4714 | ||
4715 | if test "$wxUSE_LISTBOX" = yes; then | |
4716 | echo "$ac_t""yes" 1>&6 | |
4717 | else | |
4718 | echo "$ac_t""no" 1>&6 | |
4719 | fi | |
4720 | ||
4721 | ||
4722 | echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6 | |
6426998c | 4723 | echo "configure:4724: checking "for --enable-listctrl"" >&5 |
10f2d63a VZ |
4724 | no_cache=0 |
4725 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
4726 | if test "${enable_listctrl+set}" = set; then | |
4727 | enableval="$enable_listctrl" | |
4728 | ||
4729 | if test "$enableval" = yes; then | |
4730 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
4731 | else | |
4732 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
4733 | fi | |
4734 | ||
4735 | else | |
4736 | ||
4737 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
4738 | if test "x$LINE" != x ; then | |
4739 | eval "DEFAULT_$LINE" | |
4740 | else | |
4741 | no_cache=1 | |
4742 | fi | |
4743 | ||
4744 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
4745 | ||
4746 | fi | |
4747 | ||
4748 | ||
4749 | eval "$ac_cv_use_listctrl" | |
4750 | if test "$no_cache" != 1; then | |
4751 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
4752 | fi | |
4753 | ||
4754 | if test "$wxUSE_LISTCTRL" = yes; then | |
4755 | echo "$ac_t""yes" 1>&6 | |
4756 | else | |
4757 | echo "$ac_t""no" 1>&6 | |
4758 | fi | |
4759 | ||
4760 | ||
4761 | echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6 | |
6426998c | 4762 | echo "configure:4763: checking "for --enable-notebook"" >&5 |
10f2d63a VZ |
4763 | no_cache=0 |
4764 | # Check whether --enable-notebook or --disable-notebook was given. | |
4765 | if test "${enable_notebook+set}" = set; then | |
4766 | enableval="$enable_notebook" | |
4767 | ||
4768 | if test "$enableval" = yes; then | |
4769 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
4770 | else | |
4771 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
4772 | fi | |
4773 | ||
4774 | else | |
4775 | ||
4776 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
4777 | if test "x$LINE" != x ; then | |
4778 | eval "DEFAULT_$LINE" | |
4779 | else | |
4780 | no_cache=1 | |
4781 | fi | |
4782 | ||
4783 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
4784 | ||
4785 | fi | |
4786 | ||
4787 | ||
4788 | eval "$ac_cv_use_notebook" | |
4789 | if test "$no_cache" != 1; then | |
4790 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
4791 | fi | |
4792 | ||
4793 | if test "$wxUSE_NOTEBOOK" = yes; then | |
4794 | echo "$ac_t""yes" 1>&6 | |
4795 | else | |
4796 | echo "$ac_t""no" 1>&6 | |
4797 | fi | |
4798 | ||
4799 | ||
4800 | echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6 | |
6426998c | 4801 | echo "configure:4802: checking "for --enable-radiobox"" >&5 |
10f2d63a VZ |
4802 | no_cache=0 |
4803 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
4804 | if test "${enable_radiobox+set}" = set; then | |
4805 | enableval="$enable_radiobox" | |
4806 | ||
4807 | if test "$enableval" = yes; then | |
4808 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
4809 | else | |
4810 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
4811 | fi | |
4812 | ||
4813 | else | |
4814 | ||
4815 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
4816 | if test "x$LINE" != x ; then | |
4817 | eval "DEFAULT_$LINE" | |
4818 | else | |
4819 | no_cache=1 | |
4820 | fi | |
4821 | ||
4822 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
4823 | ||
4824 | fi | |
4825 | ||
4826 | ||
4827 | eval "$ac_cv_use_radiobox" | |
4828 | if test "$no_cache" != 1; then | |
4829 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
4830 | fi | |
4831 | ||
4832 | if test "$wxUSE_RADIOBOX" = yes; then | |
4833 | echo "$ac_t""yes" 1>&6 | |
4834 | else | |
4835 | echo "$ac_t""no" 1>&6 | |
4836 | fi | |
4837 | ||
4838 | ||
4839 | echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6 | |
6426998c | 4840 | echo "configure:4841: checking "for --enable-radiobtn"" >&5 |
10f2d63a VZ |
4841 | no_cache=0 |
4842 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
4843 | if test "${enable_radiobtn+set}" = set; then | |
4844 | enableval="$enable_radiobtn" | |
4845 | ||
4846 | if test "$enableval" = yes; then | |
4847 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
4848 | else | |
4849 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
4850 | fi | |
4851 | ||
4852 | else | |
4853 | ||
4854 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
4855 | if test "x$LINE" != x ; then | |
4856 | eval "DEFAULT_$LINE" | |
4857 | else | |
4858 | no_cache=1 | |
4859 | fi | |
4860 | ||
4861 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
4862 | ||
4863 | fi | |
4864 | ||
4865 | ||
4866 | eval "$ac_cv_use_radiobtn" | |
4867 | if test "$no_cache" != 1; then | |
4868 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
4869 | fi | |
4870 | ||
4871 | if test "$wxUSE_RADIOBTN" = yes; then | |
4872 | echo "$ac_t""yes" 1>&6 | |
4873 | else | |
4874 | echo "$ac_t""no" 1>&6 | |
4875 | fi | |
4876 | ||
4877 | ||
4878 | echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6 | |
6426998c | 4879 | echo "configure:4880: checking "for --enable-sash"" >&5 |
10f2d63a VZ |
4880 | no_cache=0 |
4881 | # Check whether --enable-sash or --disable-sash was given. | |
4882 | if test "${enable_sash+set}" = set; then | |
4883 | enableval="$enable_sash" | |
4884 | ||
4885 | if test "$enableval" = yes; then | |
4886 | ac_cv_use_sash='wxUSE_SASH=yes' | |
4887 | else | |
4888 | ac_cv_use_sash='wxUSE_SASH=no' | |
4889 | fi | |
4890 | ||
4891 | else | |
4892 | ||
4893 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
4894 | if test "x$LINE" != x ; then | |
4895 | eval "DEFAULT_$LINE" | |
4896 | else | |
4897 | no_cache=1 | |
4898 | fi | |
4899 | ||
4900 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
4901 | ||
4902 | fi | |
4903 | ||
4904 | ||
4905 | eval "$ac_cv_use_sash" | |
4906 | if test "$no_cache" != 1; then | |
4907 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
4908 | fi | |
4909 | ||
4910 | if test "$wxUSE_SASH" = yes; then | |
4911 | echo "$ac_t""yes" 1>&6 | |
4912 | else | |
4913 | echo "$ac_t""no" 1>&6 | |
4914 | fi | |
4915 | ||
4916 | ||
4917 | echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6 | |
6426998c | 4918 | echo "configure:4919: checking "for --enable-scrollbar"" >&5 |
10f2d63a VZ |
4919 | no_cache=0 |
4920 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
4921 | if test "${enable_scrollbar+set}" = set; then | |
4922 | enableval="$enable_scrollbar" | |
4923 | ||
4924 | if test "$enableval" = yes; then | |
4925 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
4926 | else | |
4927 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
4928 | fi | |
4929 | ||
4930 | else | |
4931 | ||
4932 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
4933 | if test "x$LINE" != x ; then | |
4934 | eval "DEFAULT_$LINE" | |
4935 | else | |
4936 | no_cache=1 | |
4937 | fi | |
4938 | ||
4939 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
4940 | ||
4941 | fi | |
4942 | ||
4943 | ||
4944 | eval "$ac_cv_use_scrollbar" | |
4945 | if test "$no_cache" != 1; then | |
4946 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
4947 | fi | |
4948 | ||
4949 | if test "$wxUSE_SCROLLBAR" = yes; then | |
4950 | echo "$ac_t""yes" 1>&6 | |
4951 | else | |
4952 | echo "$ac_t""no" 1>&6 | |
4953 | fi | |
4954 | ||
4955 | ||
4956 | echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6 | |
6426998c | 4957 | echo "configure:4958: checking "for --enable-slider"" >&5 |
10f2d63a VZ |
4958 | no_cache=0 |
4959 | # Check whether --enable-slider or --disable-slider was given. | |
4960 | if test "${enable_slider+set}" = set; then | |
4961 | enableval="$enable_slider" | |
4962 | ||
4963 | if test "$enableval" = yes; then | |
4964 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
4965 | else | |
4966 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
4967 | fi | |
4968 | ||
4969 | else | |
4970 | ||
4971 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
4972 | if test "x$LINE" != x ; then | |
4973 | eval "DEFAULT_$LINE" | |
4974 | else | |
4975 | no_cache=1 | |
4976 | fi | |
4977 | ||
4978 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
4979 | ||
4980 | fi | |
4981 | ||
4982 | ||
4983 | eval "$ac_cv_use_slider" | |
4984 | if test "$no_cache" != 1; then | |
4985 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
4986 | fi | |
4987 | ||
4988 | if test "$wxUSE_SLIDER" = yes; then | |
4989 | echo "$ac_t""yes" 1>&6 | |
4990 | else | |
4991 | echo "$ac_t""no" 1>&6 | |
4992 | fi | |
4993 | ||
4994 | ||
4995 | echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6 | |
6426998c | 4996 | echo "configure:4997: checking "for --enable-spinbtn"" >&5 |
10f2d63a VZ |
4997 | no_cache=0 |
4998 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
4999 | if test "${enable_spinbtn+set}" = set; then | |
5000 | enableval="$enable_spinbtn" | |
5001 | ||
5002 | if test "$enableval" = yes; then | |
5003 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
5004 | else | |
5005 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
5006 | fi | |
5007 | ||
5008 | else | |
5009 | ||
5010 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
5011 | if test "x$LINE" != x ; then | |
5012 | eval "DEFAULT_$LINE" | |
5013 | else | |
5014 | no_cache=1 | |
5015 | fi | |
5016 | ||
5017 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
5018 | ||
5019 | fi | |
5020 | ||
5021 | ||
5022 | eval "$ac_cv_use_spinbtn" | |
5023 | if test "$no_cache" != 1; then | |
5024 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
5025 | fi | |
5026 | ||
5027 | if test "$wxUSE_SPINBTN" = yes; then | |
5028 | echo "$ac_t""yes" 1>&6 | |
5029 | else | |
5030 | echo "$ac_t""no" 1>&6 | |
5031 | fi | |
5032 | ||
5033 | ||
56cfaa52 | 5034 | echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6 |
6426998c | 5035 | echo "configure:5036: checking "for --enable-spinctrl"" >&5 |
56cfaa52 RR |
5036 | no_cache=0 |
5037 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
5038 | if test "${enable_spinctrl+set}" = set; then | |
5039 | enableval="$enable_spinctrl" | |
5040 | ||
5041 | if test "$enableval" = yes; then | |
5042 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
5043 | else | |
5044 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
5045 | fi | |
5046 | ||
5047 | else | |
5048 | ||
5049 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
5050 | if test "x$LINE" != x ; then | |
5051 | eval "DEFAULT_$LINE" | |
5052 | else | |
5053 | no_cache=1 | |
5054 | fi | |
5055 | ||
5056 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
5057 | ||
5058 | fi | |
5059 | ||
5060 | ||
5061 | eval "$ac_cv_use_spinctrl" | |
5062 | if test "$no_cache" != 1; then | |
5063 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
5064 | fi | |
5065 | ||
5066 | if test "$wxUSE_SPINCTRL" = yes; then | |
5067 | echo "$ac_t""yes" 1>&6 | |
5068 | else | |
5069 | echo "$ac_t""no" 1>&6 | |
5070 | fi | |
5071 | ||
5072 | ||
10f2d63a | 5073 | echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6 |
6426998c | 5074 | echo "configure:5075: checking "for --enable-splitter"" >&5 |
10f2d63a VZ |
5075 | no_cache=0 |
5076 | # Check whether --enable-splitter or --disable-splitter was given. | |
5077 | if test "${enable_splitter+set}" = set; then | |
5078 | enableval="$enable_splitter" | |
5079 | ||
5080 | if test "$enableval" = yes; then | |
5081 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
5082 | else | |
5083 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
5084 | fi | |
5085 | ||
5086 | else | |
5087 | ||
5088 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
5089 | if test "x$LINE" != x ; then | |
5090 | eval "DEFAULT_$LINE" | |
5091 | else | |
5092 | no_cache=1 | |
5093 | fi | |
5094 | ||
5095 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
5096 | ||
5097 | fi | |
5098 | ||
5099 | ||
5100 | eval "$ac_cv_use_splitter" | |
5101 | if test "$no_cache" != 1; then | |
5102 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
5103 | fi | |
5104 | ||
5105 | if test "$wxUSE_SPLITTER" = yes; then | |
5106 | echo "$ac_t""yes" 1>&6 | |
5107 | else | |
5108 | echo "$ac_t""no" 1>&6 | |
5109 | fi | |
5110 | ||
5111 | ||
5112 | echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6 | |
6426998c | 5113 | echo "configure:5114: checking "for --enable-statbmp"" >&5 |
10f2d63a VZ |
5114 | no_cache=0 |
5115 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
5116 | if test "${enable_statbmp+set}" = set; then | |
5117 | enableval="$enable_statbmp" | |
5118 | ||
5119 | if test "$enableval" = yes; then | |
5120 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
5121 | else | |
5122 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
5123 | fi | |
5124 | ||
5125 | else | |
5126 | ||
5127 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
5128 | if test "x$LINE" != x ; then | |
5129 | eval "DEFAULT_$LINE" | |
5130 | else | |
5131 | no_cache=1 | |
5132 | fi | |
5133 | ||
5134 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
5135 | ||
5136 | fi | |
5137 | ||
5138 | ||
5139 | eval "$ac_cv_use_statbmp" | |
5140 | if test "$no_cache" != 1; then | |
5141 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
5142 | fi | |
5143 | ||
5144 | if test "$wxUSE_STATBMP" = yes; then | |
5145 | echo "$ac_t""yes" 1>&6 | |
5146 | else | |
5147 | echo "$ac_t""no" 1>&6 | |
5148 | fi | |
5149 | ||
5150 | ||
5151 | echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6 | |
6426998c | 5152 | echo "configure:5153: checking "for --enable-statbox"" >&5 |
10f2d63a VZ |
5153 | no_cache=0 |
5154 | # Check whether --enable-statbox or --disable-statbox was given. | |
5155 | if test "${enable_statbox+set}" = set; then | |
5156 | enableval="$enable_statbox" | |
5157 | ||
5158 | if test "$enableval" = yes; then | |
5159 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
5160 | else | |
5161 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
5162 | fi | |
5163 | ||
5164 | else | |
5165 | ||
5166 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
5167 | if test "x$LINE" != x ; then | |
5168 | eval "DEFAULT_$LINE" | |
5169 | else | |
5170 | no_cache=1 | |
5171 | fi | |
5172 | ||
5173 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
5174 | ||
5175 | fi | |
5176 | ||
5177 | ||
5178 | eval "$ac_cv_use_statbox" | |
5179 | if test "$no_cache" != 1; then | |
5180 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
5181 | fi | |
5182 | ||
5183 | if test "$wxUSE_STATBOX" = yes; then | |
5184 | echo "$ac_t""yes" 1>&6 | |
5185 | else | |
5186 | echo "$ac_t""no" 1>&6 | |
5187 | fi | |
5188 | ||
5189 | ||
5190 | echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6 | |
6426998c | 5191 | echo "configure:5192: checking "for --enable-statline"" >&5 |
10f2d63a VZ |
5192 | no_cache=0 |
5193 | # Check whether --enable-statline or --disable-statline was given. | |
5194 | if test "${enable_statline+set}" = set; then | |
5195 | enableval="$enable_statline" | |
5196 | ||
5197 | if test "$enableval" = yes; then | |
5198 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
5199 | else | |
5200 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
5201 | fi | |
5202 | ||
5203 | else | |
5204 | ||
5205 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
5206 | if test "x$LINE" != x ; then | |
5207 | eval "DEFAULT_$LINE" | |
5208 | else | |
5209 | no_cache=1 | |
5210 | fi | |
5211 | ||
5212 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
5213 | ||
5214 | fi | |
5215 | ||
5216 | ||
5217 | eval "$ac_cv_use_statline" | |
5218 | if test "$no_cache" != 1; then | |
5219 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
5220 | fi | |
5221 | ||
5222 | if test "$wxUSE_STATLINE" = yes; then | |
5223 | echo "$ac_t""yes" 1>&6 | |
5224 | else | |
5225 | echo "$ac_t""no" 1>&6 | |
5226 | fi | |
5227 | ||
5228 | ||
5229 | echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6 | |
6426998c | 5230 | echo "configure:5231: checking "for --enable-statusbar"" >&5 |
10f2d63a VZ |
5231 | no_cache=0 |
5232 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
5233 | if test "${enable_statusbar+set}" = set; then | |
5234 | enableval="$enable_statusbar" | |
5235 | ||
5236 | if test "$enableval" = yes; then | |
5237 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
5238 | else | |
5239 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
5240 | fi | |
5241 | ||
5242 | else | |
5243 | ||
5244 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
5245 | if test "x$LINE" != x ; then | |
5246 | eval "DEFAULT_$LINE" | |
5247 | else | |
5248 | no_cache=1 | |
5249 | fi | |
5250 | ||
5251 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
5252 | ||
5253 | fi | |
5254 | ||
5255 | ||
5256 | eval "$ac_cv_use_statusbar" | |
5257 | if test "$no_cache" != 1; then | |
5258 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
5259 | fi | |
5260 | ||
5261 | if test "$wxUSE_STATUSBAR" = yes; then | |
5262 | echo "$ac_t""yes" 1>&6 | |
5263 | else | |
5264 | echo "$ac_t""no" 1>&6 | |
5265 | fi | |
5266 | ||
5267 | ||
5268 | echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6 | |
6426998c | 5269 | echo "configure:5270: checking "for --enable-tabdialog"" >&5 |
10f2d63a VZ |
5270 | no_cache=0 |
5271 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
5272 | if test "${enable_tabdialog+set}" = set; then | |
5273 | enableval="$enable_tabdialog" | |
5274 | ||
5275 | if test "$enableval" = yes; then | |
5276 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
5277 | else | |
5278 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
5279 | fi | |
5280 | ||
5281 | else | |
5282 | ||
5283 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
5284 | if test "x$LINE" != x ; then | |
5285 | eval "DEFAULT_$LINE" | |
5286 | else | |
5287 | no_cache=1 | |
5288 | fi | |
5289 | ||
5290 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
5291 | ||
5292 | fi | |
5293 | ||
5294 | ||
5295 | eval "$ac_cv_use_tabdialog" | |
5296 | if test "$no_cache" != 1; then | |
5297 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
5298 | fi | |
5299 | ||
5300 | if test "$wxUSE_TABDIALOG" = yes; then | |
5301 | echo "$ac_t""yes" 1>&6 | |
5302 | else | |
5303 | echo "$ac_t""no" 1>&6 | |
5304 | fi | |
5305 | ||
5306 | ||
1db8dc4a | 5307 | echo $ac_n "checking "for --enable-togglebtn"""... $ac_c" 1>&6 |
6426998c | 5308 | echo "configure:5309: checking "for --enable-togglebtn"" >&5 |
1db8dc4a VZ |
5309 | no_cache=0 |
5310 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
5311 | if test "${enable_togglebtn+set}" = set; then | |
5312 | enableval="$enable_togglebtn" | |
5313 | ||
5314 | if test "$enableval" = yes; then | |
5315 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
5316 | else | |
5317 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
5318 | fi | |
5319 | ||
5320 | else | |
5321 | ||
5322 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` | |
5323 | if test "x$LINE" != x ; then | |
5324 | eval "DEFAULT_$LINE" | |
5325 | else | |
5326 | no_cache=1 | |
5327 | fi | |
5328 | ||
5329 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
5330 | ||
5331 | fi | |
5332 | ||
5333 | ||
5334 | eval "$ac_cv_use_togglebtn" | |
5335 | if test "$no_cache" != 1; then | |
5336 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
5337 | fi | |
5338 | ||
5339 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
5340 | echo "$ac_t""yes" 1>&6 | |
5341 | else | |
5342 | echo "$ac_t""no" 1>&6 | |
5343 | fi | |
5344 | ||
5345 | ||
10f2d63a | 5346 | echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6 |
6426998c | 5347 | echo "configure:5348: checking "for --enable-toolbar"" >&5 |
10f2d63a VZ |
5348 | no_cache=0 |
5349 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
5350 | if test "${enable_toolbar+set}" = set; then | |
5351 | enableval="$enable_toolbar" | |
5352 | ||
5353 | if test "$enableval" = yes; then | |
5354 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
5355 | else | |
5356 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
5357 | fi | |
5358 | ||
5359 | else | |
5360 | ||
5361 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
5362 | if test "x$LINE" != x ; then | |
5363 | eval "DEFAULT_$LINE" | |
5364 | else | |
5365 | no_cache=1 | |
5366 | fi | |
5367 | ||
5368 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
5369 | ||
5370 | fi | |
5371 | ||
5372 | ||
5373 | eval "$ac_cv_use_toolbar" | |
5374 | if test "$no_cache" != 1; then | |
5375 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
5376 | fi | |
5377 | ||
5378 | if test "$wxUSE_TOOLBAR" = yes; then | |
5379 | echo "$ac_t""yes" 1>&6 | |
5380 | else | |
5381 | echo "$ac_t""no" 1>&6 | |
5382 | fi | |
5383 | ||
5384 | ||
360d6699 | 5385 | echo $ac_n "checking "for --enable-tbarnative"""... $ac_c" 1>&6 |
6426998c | 5386 | echo "configure:5387: checking "for --enable-tbarnative"" >&5 |
360d6699 VZ |
5387 | no_cache=0 |
5388 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
5389 | if test "${enable_tbarnative+set}" = set; then | |
5390 | enableval="$enable_tbarnative" | |
5391 | ||
5392 | if test "$enableval" = yes; then | |
5393 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
5394 | else | |
5395 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
5396 | fi | |
5397 | ||
5398 | else | |
5399 | ||
5400 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
5401 | if test "x$LINE" != x ; then | |
5402 | eval "DEFAULT_$LINE" | |
5403 | else | |
5404 | no_cache=1 | |
5405 | fi | |
5406 | ||
5407 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
5408 | ||
5409 | fi | |
5410 | ||
5411 | ||
5412 | eval "$ac_cv_use_tbarnative" | |
5413 | if test "$no_cache" != 1; then | |
5414 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
5415 | fi | |
5416 | ||
5417 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
5418 | echo "$ac_t""yes" 1>&6 | |
5419 | else | |
5420 | echo "$ac_t""no" 1>&6 | |
5421 | fi | |
5422 | ||
5423 | ||
5424 | echo $ac_n "checking "for --enable-tbarsmpl"""... $ac_c" 1>&6 | |
6426998c | 5425 | echo "configure:5426: checking "for --enable-tbarsmpl"" >&5 |
360d6699 VZ |
5426 | no_cache=0 |
5427 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
5428 | if test "${enable_tbarsmpl+set}" = set; then | |
5429 | enableval="$enable_tbarsmpl" | |
5430 | ||
5431 | if test "$enableval" = yes; then | |
5432 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
5433 | else | |
5434 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
5435 | fi | |
5436 | ||
5437 | else | |
5438 | ||
5439 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
5440 | if test "x$LINE" != x ; then | |
5441 | eval "DEFAULT_$LINE" | |
5442 | else | |
5443 | no_cache=1 | |
5444 | fi | |
5445 | ||
5446 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
5447 | ||
5448 | fi | |
5449 | ||
5450 | ||
5451 | eval "$ac_cv_use_tbarsmpl" | |
5452 | if test "$no_cache" != 1; then | |
5453 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
5454 | fi | |
5455 | ||
5456 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
5457 | echo "$ac_t""yes" 1>&6 | |
5458 | else | |
5459 | echo "$ac_t""no" 1>&6 | |
5460 | fi | |
5461 | ||
5462 | ||
10f2d63a | 5463 | echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6 |
6426998c | 5464 | echo "configure:5465: checking "for --enable-treectrl"" >&5 |
10f2d63a VZ |
5465 | no_cache=0 |
5466 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
5467 | if test "${enable_treectrl+set}" = set; then | |
5468 | enableval="$enable_treectrl" | |
5469 | ||
5470 | if test "$enableval" = yes; then | |
5471 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
5472 | else | |
5473 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
5474 | fi | |
5475 | ||
5476 | else | |
5477 | ||
5478 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
5479 | if test "x$LINE" != x ; then | |
5480 | eval "DEFAULT_$LINE" | |
5481 | else | |
5482 | no_cache=1 | |
5483 | fi | |
5484 | ||
5485 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
5486 | ||
5487 | fi | |
5488 | ||
5489 | ||
5490 | eval "$ac_cv_use_treectrl" | |
5491 | if test "$no_cache" != 1; then | |
5492 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
5493 | fi | |
5494 | ||
5495 | if test "$wxUSE_TREECTRL" = yes; then | |
5496 | echo "$ac_t""yes" 1>&6 | |
5497 | else | |
5498 | echo "$ac_t""no" 1>&6 | |
5499 | fi | |
5500 | ||
5501 | ||
5502 | ||
5503 | ||
5504 | echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6 | |
6426998c | 5505 | echo "configure:5506: checking "for --enable-commondlg"" >&5 |
10f2d63a VZ |
5506 | no_cache=0 |
5507 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
5508 | if test "${enable_commondlg+set}" = set; then | |
5509 | enableval="$enable_commondlg" | |
5510 | ||
5511 | if test "$enableval" = yes; then | |
5512 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
5513 | else | |
5514 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
5515 | fi | |
5516 | ||
5517 | else | |
5518 | ||
5519 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
5520 | if test "x$LINE" != x ; then | |
5521 | eval "DEFAULT_$LINE" | |
5522 | else | |
5523 | no_cache=1 | |
5524 | fi | |
5525 | ||
5526 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
5527 | ||
5528 | fi | |
5529 | ||
5530 | ||
5531 | eval "$ac_cv_use_commondlg" | |
5532 | if test "$no_cache" != 1; then | |
5533 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
5534 | fi | |
5535 | ||
5536 | if test "$wxUSE_COMMONDLGS" = yes; then | |
5537 | echo "$ac_t""yes" 1>&6 | |
5538 | else | |
5539 | echo "$ac_t""no" 1>&6 | |
5540 | fi | |
5541 | ||
5542 | ||
5543 | echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6 | |
6426998c | 5544 | echo "configure:5545: checking "for --enable-dirdlg"" >&5 |
10f2d63a VZ |
5545 | no_cache=0 |
5546 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
5547 | if test "${enable_dirdlg+set}" = set; then | |
5548 | enableval="$enable_dirdlg" | |
5549 | ||
5550 | if test "$enableval" = yes; then | |
5551 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
5552 | else | |
5553 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
5554 | fi | |
5555 | ||
5556 | else | |
5557 | ||
5558 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
5559 | if test "x$LINE" != x ; then | |
5560 | eval "DEFAULT_$LINE" | |
5561 | else | |
5562 | no_cache=1 | |
5563 | fi | |
5564 | ||
5565 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
5566 | ||
5567 | fi | |
5568 | ||
5569 | ||
5570 | eval "$ac_cv_use_dirdlg" | |
5571 | if test "$no_cache" != 1; then | |
5572 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
5573 | fi | |
5574 | ||
5575 | if test "$wxUSE_DIRDLG" = yes; then | |
5576 | echo "$ac_t""yes" 1>&6 | |
5577 | else | |
5578 | echo "$ac_t""no" 1>&6 | |
5579 | fi | |
5580 | ||
5581 | ||
5582 | echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6 | |
6426998c | 5583 | echo "configure:5584: checking "for --enable-textdlg"" >&5 |
10f2d63a VZ |
5584 | no_cache=0 |
5585 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
5586 | if test "${enable_textdlg+set}" = set; then | |
5587 | enableval="$enable_textdlg" | |
5588 | ||
5589 | if test "$enableval" = yes; then | |
5590 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
5591 | else | |
5592 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
5593 | fi | |
5594 | ||
5595 | else | |
5596 | ||
5597 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
5598 | if test "x$LINE" != x ; then | |
5599 | eval "DEFAULT_$LINE" | |
5600 | else | |
5601 | no_cache=1 | |
5602 | fi | |
5603 | ||
5604 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
5605 | ||
5606 | fi | |
5607 | ||
5608 | ||
5609 | eval "$ac_cv_use_textdlg" | |
5610 | if test "$no_cache" != 1; then | |
5611 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
5612 | fi | |
5613 | ||
5614 | if test "$wxUSE_TEXTDLG" = yes; then | |
5615 | echo "$ac_t""yes" 1>&6 | |
5616 | else | |
5617 | echo "$ac_t""no" 1>&6 | |
5618 | fi | |
5619 | ||
5620 | ||
5621 | echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6 | |
6426998c | 5622 | echo "configure:5623: checking "for --enable-tipdlg"" >&5 |
10f2d63a VZ |
5623 | no_cache=0 |
5624 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
5625 | if test "${enable_tipdlg+set}" = set; then | |
5626 | enableval="$enable_tipdlg" | |
5627 | ||
5628 | if test "$enableval" = yes; then | |
5629 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
5630 | else | |
5631 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
5632 | fi | |
5633 | ||
5634 | else | |
5635 | ||
5636 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
5637 | if test "x$LINE" != x ; then | |
5638 | eval "DEFAULT_$LINE" | |
5639 | else | |
5640 | no_cache=1 | |
5641 | fi | |
5642 | ||
5643 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
5644 | ||
5645 | fi | |
5646 | ||
5647 | ||
5648 | eval "$ac_cv_use_tipdlg" | |
5649 | if test "$no_cache" != 1; then | |
5650 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
5651 | fi | |
5652 | ||
5653 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
5654 | echo "$ac_t""yes" 1>&6 | |
5655 | else | |
5656 | echo "$ac_t""no" 1>&6 | |
5657 | fi | |
5658 | ||
5659 | ||
5660 | echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6 | |
6426998c | 5661 | echo "configure:5662: checking "for --enable-progressdlg"" >&5 |
10f2d63a VZ |
5662 | no_cache=0 |
5663 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
5664 | if test "${enable_progressdlg+set}" = set; then | |
5665 | enableval="$enable_progressdlg" | |
5666 | ||
5667 | if test "$enableval" = yes; then | |
5668 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
5669 | else | |
5670 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
5671 | fi | |
5672 | ||
5673 | else | |
5674 | ||
5675 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
5676 | if test "x$LINE" != x ; then | |
5677 | eval "DEFAULT_$LINE" | |
5678 | else | |
5679 | no_cache=1 | |
5680 | fi | |
5681 | ||
5682 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
5683 | ||
5684 | fi | |
5685 | ||
5686 | ||
5687 | eval "$ac_cv_use_progressdlg" | |
5688 | if test "$no_cache" != 1; then | |
5689 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
5690 | fi | |
5691 | ||
5692 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
5693 | echo "$ac_t""yes" 1>&6 | |
5694 | else | |
5695 | echo "$ac_t""no" 1>&6 | |
5696 | fi | |
5697 | ||
5698 | ||
5699 | echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6 | |
6426998c | 5700 | echo "configure:5701: checking "for --enable-miniframe"" >&5 |
10f2d63a VZ |
5701 | no_cache=0 |
5702 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
5703 | if test "${enable_miniframe+set}" = set; then | |
5704 | enableval="$enable_miniframe" | |
5705 | ||
5706 | if test "$enableval" = yes; then | |
5707 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
5708 | else | |
5709 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
5710 | fi | |
5711 | ||
5712 | else | |
5713 | ||
5714 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
5715 | if test "x$LINE" != x ; then | |
5716 | eval "DEFAULT_$LINE" | |
5717 | else | |
5718 | no_cache=1 | |
5719 | fi | |
5720 | ||
5721 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
5722 | ||
5723 | fi | |
5724 | ||
5725 | ||
5726 | eval "$ac_cv_use_miniframe" | |
5727 | if test "$no_cache" != 1; then | |
5728 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
5729 | fi | |
5730 | ||
5731 | if test "$wxUSE_MINIFRAME" = yes; then | |
5732 | echo "$ac_t""yes" 1>&6 | |
5733 | else | |
5734 | echo "$ac_t""no" 1>&6 | |
5735 | fi | |
5736 | ||
5737 | ||
5738 | echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6 | |
6426998c | 5739 | echo "configure:5740: checking "for --enable-html"" >&5 |
10f2d63a VZ |
5740 | no_cache=0 |
5741 | # Check whether --enable-html or --disable-html was given. | |
5742 | if test "${enable_html+set}" = set; then | |
5743 | enableval="$enable_html" | |
5744 | ||
5745 | if test "$enableval" = yes; then | |
5746 | ac_cv_use_html='wxUSE_HTML=yes' | |
5747 | else | |
5748 | ac_cv_use_html='wxUSE_HTML=no' | |
5749 | fi | |
5750 | ||
5751 | else | |
5752 | ||
5753 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
5754 | if test "x$LINE" != x ; then | |
5755 | eval "DEFAULT_$LINE" | |
5756 | else | |
5757 | no_cache=1 | |
5758 | fi | |
5759 | ||
5760 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
5761 | ||
5762 | fi | |
5763 | ||
5764 | ||
5765 | eval "$ac_cv_use_html" | |
5766 | if test "$no_cache" != 1; then | |
5767 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
5768 | fi | |
5769 | ||
5770 | if test "$wxUSE_HTML" = yes; then | |
5771 | echo "$ac_t""yes" 1>&6 | |
5772 | else | |
5773 | echo "$ac_t""no" 1>&6 | |
5774 | fi | |
5775 | ||
5776 | ||
5777 | echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6 | |
6426998c | 5778 | echo "configure:5779: checking "for --enable-tooltips"" >&5 |
10f2d63a VZ |
5779 | no_cache=0 |
5780 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
5781 | if test "${enable_tooltips+set}" = set; then | |
5782 | enableval="$enable_tooltips" | |
5783 | ||
5784 | if test "$enableval" = yes; then | |
5785 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
5786 | else | |
5787 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
5788 | fi | |
5789 | ||
5790 | else | |
5791 | ||
5792 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
5793 | if test "x$LINE" != x ; then | |
5794 | eval "DEFAULT_$LINE" | |
5795 | else | |
5796 | no_cache=1 | |
5797 | fi | |
5798 | ||
5799 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
5800 | ||
5801 | fi | |
5802 | ||
5803 | ||
5804 | eval "$ac_cv_use_tooltips" | |
5805 | if test "$no_cache" != 1; then | |
5806 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
5807 | fi | |
5808 | ||
5809 | if test "$wxUSE_TOOLTIPS" = yes; then | |
5810 | echo "$ac_t""yes" 1>&6 | |
5811 | else | |
5812 | echo "$ac_t""no" 1>&6 | |
5813 | fi | |
5814 | ||
5815 | ||
5816 | echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6 | |
6426998c | 5817 | echo "configure:5818: checking "for --enable-splines"" >&5 |
10f2d63a VZ |
5818 | no_cache=0 |
5819 | # Check whether --enable-splines or --disable-splines was given. | |
5820 | if test "${enable_splines+set}" = set; then | |
5821 | enableval="$enable_splines" | |
5822 | ||
5823 | if test "$enableval" = yes; then | |
5824 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
5825 | else | |
5826 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
5827 | fi | |
5828 | ||
5829 | else | |
5830 | ||
5831 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
5832 | if test "x$LINE" != x ; then | |
5833 | eval "DEFAULT_$LINE" | |
5834 | else | |
5835 | no_cache=1 | |
5836 | fi | |
5837 | ||
5838 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
5839 | ||
5840 | fi | |
5841 | ||
5842 | ||
5843 | eval "$ac_cv_use_splines" | |
5844 | if test "$no_cache" != 1; then | |
5845 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
5846 | fi | |
5847 | ||
5848 | if test "$wxUSE_SPLINES" = yes; then | |
5849 | echo "$ac_t""yes" 1>&6 | |
5850 | else | |
5851 | echo "$ac_t""no" 1>&6 | |
5852 | fi | |
5853 | ||
5854 | ||
5855 | echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6 | |
6426998c | 5856 | echo "configure:5857: checking "for --enable-validators"" >&5 |
10f2d63a VZ |
5857 | no_cache=0 |
5858 | # Check whether --enable-validators or --disable-validators was given. | |
5859 | if test "${enable_validators+set}" = set; then | |
5860 | enableval="$enable_validators" | |
5861 | ||
5862 | if test "$enableval" = yes; then | |
5863 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
5864 | else | |
5865 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
5866 | fi | |
5867 | ||
5868 | else | |
5869 | ||
5870 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
5871 | if test "x$LINE" != x ; then | |
5872 | eval "DEFAULT_$LINE" | |
5873 | else | |
5874 | no_cache=1 | |
5875 | fi | |
5876 | ||
5877 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
5878 | ||
5879 | fi | |
5880 | ||
5881 | ||
5882 | eval "$ac_cv_use_validators" | |
5883 | if test "$no_cache" != 1; then | |
5884 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
5885 | fi | |
5886 | ||
5887 | if test "$wxUSE_VALIDATORS" = yes; then | |
5888 | echo "$ac_t""yes" 1>&6 | |
5889 | else | |
5890 | echo "$ac_t""no" 1>&6 | |
5891 | fi | |
5892 | ||
5893 | ||
5894 | echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6 | |
6426998c | 5895 | echo "configure:5896: checking "for --enable-busyinfo"" >&5 |
10f2d63a VZ |
5896 | no_cache=0 |
5897 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
5898 | if test "${enable_busyinfo+set}" = set; then | |
5899 | enableval="$enable_busyinfo" | |
5900 | ||
5901 | if test "$enableval" = yes; then | |
5902 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
5903 | else | |
5904 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
5905 | fi | |
5906 | ||
5907 | else | |
5908 | ||
5909 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
5910 | if test "x$LINE" != x ; then | |
5911 | eval "DEFAULT_$LINE" | |
5912 | else | |
5913 | no_cache=1 | |
5914 | fi | |
5915 | ||
5916 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
5917 | ||
5918 | fi | |
5919 | ||
5920 | ||
5921 | eval "$ac_cv_use_busyinfo" | |
5922 | if test "$no_cache" != 1; then | |
5923 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
5924 | fi | |
5925 | ||
5926 | if test "$wxUSE_BUSYINFO" = yes; then | |
5927 | echo "$ac_t""yes" 1>&6 | |
5928 | else | |
5929 | echo "$ac_t""no" 1>&6 | |
5930 | fi | |
5931 | ||
5932 | ||
f6bcfd97 | 5933 | echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6 |
6426998c | 5934 | echo "configure:5935: checking "for --enable-joystick"" >&5 |
f6bcfd97 BP |
5935 | no_cache=0 |
5936 | # Check whether --enable-joystick or --disable-joystick was given. | |
5937 | if test "${enable_joystick+set}" = set; then | |
5938 | enableval="$enable_joystick" | |
5939 | ||
5940 | if test "$enableval" = yes; then | |
5941 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
5942 | else | |
5943 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
5944 | fi | |
5945 | ||
5946 | else | |
5947 | ||
5948 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
5949 | if test "x$LINE" != x ; then | |
5950 | eval "DEFAULT_$LINE" | |
5951 | else | |
5952 | no_cache=1 | |
5953 | fi | |
5954 | ||
5955 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
5956 | ||
5957 | fi | |
5958 | ||
5959 | ||
5960 | eval "$ac_cv_use_joystick" | |
5961 | if test "$no_cache" != 1; then | |
5962 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
5963 | fi | |
5964 | ||
5965 | if test "$wxUSE_JOYSTICK" = yes; then | |
5966 | echo "$ac_t""yes" 1>&6 | |
5967 | else | |
5968 | echo "$ac_t""no" 1>&6 | |
5969 | fi | |
5970 | ||
5971 | ||
10f2d63a VZ |
5972 | |
5973 | ||
5974 | echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6 | |
6426998c | 5975 | echo "configure:5976: checking "for --enable-gif"" >&5 |
10f2d63a VZ |
5976 | no_cache=0 |
5977 | # Check whether --enable-gif or --disable-gif was given. | |
5978 | if test "${enable_gif+set}" = set; then | |
5979 | enableval="$enable_gif" | |
5980 | ||
5981 | if test "$enableval" = yes; then | |
5982 | ac_cv_use_gif='wxUSE_GIF=yes' | |
5983 | else | |
5984 | ac_cv_use_gif='wxUSE_GIF=no' | |
5985 | fi | |
5986 | ||
5987 | else | |
5988 | ||
5989 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
5990 | if test "x$LINE" != x ; then | |
5991 | eval "DEFAULT_$LINE" | |
5992 | else | |
5993 | no_cache=1 | |
5994 | fi | |
5995 | ||
5996 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
5997 | ||
5998 | fi | |
5999 | ||
6000 | ||
6001 | eval "$ac_cv_use_gif" | |
6002 | if test "$no_cache" != 1; then | |
6003 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
6004 | fi | |
6005 | ||
6006 | if test "$wxUSE_GIF" = yes; then | |
6007 | echo "$ac_t""yes" 1>&6 | |
6008 | else | |
6009 | echo "$ac_t""no" 1>&6 | |
6010 | fi | |
6011 | ||
6012 | ||
6013 | echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6 | |
6426998c | 6014 | echo "configure:6015: checking "for --enable-pcx"" >&5 |
10f2d63a VZ |
6015 | no_cache=0 |
6016 | # Check whether --enable-pcx or --disable-pcx was given. | |
6017 | if test "${enable_pcx+set}" = set; then | |
6018 | enableval="$enable_pcx" | |
6019 | ||
6020 | if test "$enableval" = yes; then | |
6021 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
6022 | else | |
6023 | ac_cv_use_pcx='wxUSE_PCX=no' | |
6024 | fi | |
6025 | ||
6026 | else | |
6027 | ||
6028 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
6029 | if test "x$LINE" != x ; then | |
6030 | eval "DEFAULT_$LINE" | |
6031 | else | |
6032 | no_cache=1 | |
6033 | fi | |
6034 | ||
6035 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
6036 | ||
6037 | fi | |
6038 | ||
6039 | ||
6040 | eval "$ac_cv_use_pcx" | |
6041 | if test "$no_cache" != 1; then | |
6042 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
6043 | fi | |
6044 | ||
6045 | if test "$wxUSE_PCX" = yes; then | |
6046 | echo "$ac_t""yes" 1>&6 | |
6047 | else | |
6048 | echo "$ac_t""no" 1>&6 | |
6049 | fi | |
6050 | ||
6051 | ||
6052 | echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6 | |
6426998c | 6053 | echo "configure:6054: checking "for --enable-pnm"" >&5 |
10f2d63a VZ |
6054 | no_cache=0 |
6055 | # Check whether --enable-pnm or --disable-pnm was given. | |
6056 | if test "${enable_pnm+set}" = set; then | |
6057 | enableval="$enable_pnm" | |
6058 | ||
6059 | if test "$enableval" = yes; then | |
6060 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
6061 | else | |
6062 | ac_cv_use_pnm='wxUSE_PNM=no' | |
6063 | fi | |
6064 | ||
6065 | else | |
6066 | ||
6067 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
6068 | if test "x$LINE" != x ; then | |
6069 | eval "DEFAULT_$LINE" | |
6070 | else | |
6071 | no_cache=1 | |
6072 | fi | |
6073 | ||
6074 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
6075 | ||
6076 | fi | |
6077 | ||
6078 | ||
6079 | eval "$ac_cv_use_pnm" | |
6080 | if test "$no_cache" != 1; then | |
6081 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
6082 | fi | |
6083 | ||
6084 | if test "$wxUSE_PNM" = yes; then | |
6085 | echo "$ac_t""yes" 1>&6 | |
6086 | else | |
6087 | echo "$ac_t""no" 1>&6 | |
6088 | fi | |
6089 | ||
6090 | ||
b12915c1 VZ |
6091 | fi |
6092 | ||
10f2d63a VZ |
6093 | |
6094 | echo "saving argument cache $wx_arg_cache_file" | |
6095 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
6096 | ||
6097 | ||
6098 | ||
6099 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
6426998c | 6100 | echo "configure:6101: checking for toolkit" >&5 |
10f2d63a VZ |
6101 | |
6102 | if test "$wxUSE_GUI" = "yes"; then | |
6103 | ||
b12915c1 VZ |
6104 | if test "$USE_BEOS" = 1; then |
6105 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } | |
6106 | fi | |
6107 | ||
10f2d63a VZ |
6108 | if test "$TOOLKIT_GIVEN" = 1; then |
6109 | for toolkit in `echo $ALL_TOOLKITS`; do | |
6110 | var=wxUSE_$toolkit | |
6111 | eval "value=\$${var}" | |
6112 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
6113 | done | |
6114 | else | |
6115 | for toolkit in `echo $ALL_TOOLKITS`; do | |
6116 | if test "$has_toolkit_in_cache" != 1; then | |
6117 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
6118 | else | |
6119 | var=DEFAULT_wxUSE_$toolkit | |
6120 | fi | |
6121 | eval "wxUSE_$toolkit=\$${var}" | |
6122 | done | |
6123 | fi | |
6124 | ||
b4085ce6 | 6125 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}` |
cf27ef00 | 6126 | |
ec14dd32 VZ |
6127 | case "${host}" in |
6128 | *-pc-os2_emx ) | |
6129 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
6130 | # PATH_IFS is autodetected by OS/2's configure (usually ';') | |
6131 | LEX_STEM="lexyy" | |
6132 | ;; | |
6133 | *) | |
6134 | PATH_IFS=':' | |
6135 | LEX_STEM="lex.yy" | |
6136 | ;; | |
6137 | esac | |
10f2d63a VZ |
6138 | |
6139 | case "$NUM_TOOLKITS" in | |
6140 | 1) | |
6141 | ;; | |
6142 | 0) | |
6143 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } | |
6144 | ;; | |
6145 | *) | |
6146 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } | |
6147 | esac | |
6148 | ||
6149 | for toolkit in `echo $ALL_TOOLKITS`; do | |
6150 | var=wxUSE_$toolkit | |
6151 | eval "value=\$${var}" | |
6152 | if test "x$value" != x; then | |
6153 | cache_var=CACHE_$toolkit | |
6154 | eval "cache=\$${cache_var}" | |
6155 | if test "$cache" = 1; then | |
6156 | echo "$var=$value" >> ${wx_arg_cache_file} | |
6157 | fi | |
6158 | if test "$value" = 1; then | |
6159 | echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6 | |
6160 | fi | |
6161 | fi | |
6162 | done | |
6163 | ||
6164 | else | |
cf27ef00 | 6165 | PATH_IFS=':' |
10f2d63a VZ |
6166 | echo "$ac_t""base only" 1>&6 |
6167 | fi | |
6168 | ||
6169 | ||
6170 | cat > confcache <<\EOF | |
6171 | # This file is a shell script that caches the results of configure | |
6172 | # tests run on this system so they can be shared between configure | |
6173 | # scripts and configure runs. It is not useful on other systems. | |
6174 | # If it contains results you don't want to keep, you may remove or edit it. | |
6175 | # | |
6176 | # By default, configure uses ./config.cache as the cache file, | |
6177 | # creating it if it does not exist already. You can give configure | |
6178 | # the --cache-file=FILE option to use a different cache file; that is | |
6179 | # what configure does when it calls configure scripts in | |
6180 | # subdirectories, so they share the cache. | |
6181 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
6182 | # config.status only pays attention to the cache file if you give it the | |
6183 | # --recheck option to rerun configure. | |
6184 | # | |
6185 | EOF | |
6186 | # The following way of writing the cache mishandles newlines in values, | |
6187 | # but we know of no workaround that is simple, portable, and efficient. | |
6188 | # So, don't put newlines in cache variables' values. | |
6189 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
6190 | # and sets the high bit in the cache file unless we assign to the vars. | |
6191 | (set) 2>&1 | | |
6192 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
6193 | *ac_space=\ *) | |
6194 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
6195 | # turns \\\\ into \\, and sed turns \\ into \). | |
6196 | sed -n \ | |
6197 | -e "s/'/'\\\\''/g" \ | |
6198 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
6199 | ;; | |
6200 | *) | |
6201 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
6202 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
6203 | ;; | |
6204 | esac >> confcache | |
6205 | if cmp -s $cache_file confcache; then | |
6206 | : | |
6207 | else | |
6208 | if test -w $cache_file; then | |
6209 | echo "updating cache $cache_file" | |
6210 | cat confcache > $cache_file | |
6211 | else | |
6212 | echo "not updating unwritable cache $cache_file" | |
6213 | fi | |
6214 | fi | |
6215 | rm -f confcache | |
6216 | ||
6217 | ||
e59890c3 | 6218 | if test "$build" != "$host" ; then |
10f2d63a VZ |
6219 | CC=$host_alias-gcc |
6220 | CXX=$host_alias-c++ | |
6221 | AR=$host_alias-ar | |
6222 | RANLIB=$host_alias-ranlib | |
6223 | DLLTOOL=$host_alias-dlltool | |
32832908 | 6224 | RESCOMP=$host_alias-windres |
10f2d63a VZ |
6225 | LD=$host_alias-ld |
6226 | NM=$host_alias-nm | |
6227 | STRIP=$host_alias-strip | |
10f2d63a VZ |
6228 | fi |
6229 | ||
6230 | # Extract the first word of "gcc", so it can be a program name with args. | |
6231 | set dummy gcc; ac_word=$2 | |
6232 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6426998c | 6233 | echo "configure:6234: checking for $ac_word" >&5 |
10f2d63a VZ |
6234 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
6235 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6236 | else | |
6237 | if test -n "$CC"; then | |
6238 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6239 | else | |
6240 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6241 | ac_dummy="$PATH" | |
6242 | for ac_dir in $ac_dummy; do | |
6243 | test -z "$ac_dir" && ac_dir=. | |
6244 | if test -f $ac_dir/$ac_word; then | |
6245 | ac_cv_prog_CC="gcc" | |
6246 | break | |
6247 | fi | |
6248 | done | |
6249 | IFS="$ac_save_ifs" | |
6250 | fi | |
6251 | fi | |
6252 | CC="$ac_cv_prog_CC" | |
6253 | if test -n "$CC"; then | |
6254 | echo "$ac_t""$CC" 1>&6 | |
6255 | else | |
6256 | echo "$ac_t""no" 1>&6 | |
6257 | fi | |
6258 | ||
6259 | if test -z "$CC"; then | |
6260 | # Extract the first word of "cc", so it can be a program name with args. | |
6261 | set dummy cc; ac_word=$2 | |
6262 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6426998c | 6263 | echo "configure:6264: checking for $ac_word" >&5 |
10f2d63a VZ |
6264 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
6265 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6266 | else | |
6267 | if test -n "$CC"; then | |
6268 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6269 | else | |
6270 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6271 | ac_prog_rejected=no | |
6272 | ac_dummy="$PATH" | |
6273 | for ac_dir in $ac_dummy; do | |
6274 | test -z "$ac_dir" && ac_dir=. | |
6275 | if test -f $ac_dir/$ac_word; then | |
6276 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
6277 | ac_prog_rejected=yes | |
6278 | continue | |
6279 | fi | |
6280 | ac_cv_prog_CC="cc" | |
6281 | break | |
6282 | fi | |
6283 | done | |
6284 | IFS="$ac_save_ifs" | |
6285 | if test $ac_prog_rejected = yes; then | |
6286 | # We found a bogon in the path, so make sure we never use it. | |
6287 | set dummy $ac_cv_prog_CC | |
6288 | shift | |
6289 | if test $# -gt 0; then | |
6290 | # We chose a different compiler from the bogus one. | |
6291 | # However, it has the same basename, so the bogon will be chosen | |
6292 | # first if we set CC to just the basename; use the full file name. | |
6293 | shift | |
6294 | set dummy "$ac_dir/$ac_word" "$@" | |
6295 | shift | |
6296 | ac_cv_prog_CC="$@" | |
6297 | fi | |
6298 | fi | |
6299 | fi | |
6300 | fi | |
6301 | CC="$ac_cv_prog_CC" | |
6302 | if test -n "$CC"; then | |
6303 | echo "$ac_t""$CC" 1>&6 | |
6304 | else | |
6305 | echo "$ac_t""no" 1>&6 | |
6306 | fi | |
6307 | ||
6308 | if test -z "$CC"; then | |
6309 | case "`uname -s`" in | |
6310 | *win32* | *WIN32*) | |
6311 | # Extract the first word of "cl", so it can be a program name with args. | |
6312 | set dummy cl; ac_word=$2 | |
6313 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6426998c | 6314 | echo "configure:6315: checking for $ac_word" >&5 |
10f2d63a VZ |
6315 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
6316 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6317 | else | |
6318 | if test -n "$CC"; then | |
6319 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6320 | else | |
6321 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6322 | ac_dummy="$PATH" | |
6323 | for ac_dir in $ac_dummy; do | |
6324 | test -z "$ac_dir" && ac_dir=. | |
6325 | if test -f $ac_dir/$ac_word; then | |
6326 | ac_cv_prog_CC="cl" | |
6327 | break | |
6328 | fi | |
6329 | done | |
6330 | IFS="$ac_save_ifs" | |
6331 | fi | |
6332 | fi | |
6333 | CC="$ac_cv_prog_CC" | |
6334 | if test -n "$CC"; then | |
6335 | echo "$ac_t""$CC" 1>&6 | |
6336 | else | |
6337 | echo "$ac_t""no" 1>&6 | |
6338 | fi | |
6339 | ;; | |
6340 | esac | |
6341 | fi | |
6342 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
6343 | fi | |
6344 | ||
6345 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
6426998c | 6346 | echo "configure:6347: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
10f2d63a VZ |
6347 | |
6348 | ac_ext=c | |
6349 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6350 | ac_cpp='$CPP $CPPFLAGS' | |
6351 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6352 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6353 | cross_compiling=$ac_cv_prog_cc_cross | |
6354 | ||
6355 | cat > conftest.$ac_ext << EOF | |
6356 | ||
6426998c | 6357 | #line 6358 "configure" |
10f2d63a VZ |
6358 | #include "confdefs.h" |
6359 | ||
6360 | main(){return(0);} | |
6361 | EOF | |
6426998c | 6362 | if { (eval echo configure:6363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
6363 | ac_cv_prog_cc_works=yes |
6364 | # If we can't run a trivial program, we are probably using a cross compiler. | |
6365 | if (./conftest; exit) 2>/dev/null; then | |
6366 | ac_cv_prog_cc_cross=no | |
6367 | else | |
6368 | ac_cv_prog_cc_cross=yes | |
6369 | fi | |
6370 | else | |
6371 | echo "configure: failed program was:" >&5 | |
6372 | cat conftest.$ac_ext >&5 | |
6373 | ac_cv_prog_cc_works=no | |
6374 | fi | |
6375 | rm -fr conftest* | |
6376 | ac_ext=c | |
6377 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6378 | ac_cpp='$CPP $CPPFLAGS' | |
6379 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6380 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6381 | cross_compiling=$ac_cv_prog_cc_cross | |
6382 | ||
6383 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
6384 | if test $ac_cv_prog_cc_works = no; then | |
6385 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
6386 | fi | |
6387 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
6426998c | 6388 | echo "configure:6389: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
10f2d63a VZ |
6389 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
6390 | cross_compiling=$ac_cv_prog_cc_cross | |
6391 | ||
6392 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
6426998c | 6393 | echo "configure:6394: checking whether we are using GNU C" >&5 |
10f2d63a VZ |
6394 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
6395 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6396 | else | |
6397 | cat > conftest.c <<EOF | |
6398 | #ifdef __GNUC__ | |
6399 | yes; | |
6400 | #endif | |
6401 | EOF | |
6426998c | 6402 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:6403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
10f2d63a VZ |
6403 | ac_cv_prog_gcc=yes |
6404 | else | |
6405 | ac_cv_prog_gcc=no | |
6406 | fi | |
6407 | fi | |
6408 | ||
6409 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
6410 | ||
6411 | if test $ac_cv_prog_gcc = yes; then | |
6412 | GCC=yes | |
6413 | else | |
6414 | GCC= | |
6415 | fi | |
6416 | ||
6417 | ac_test_CFLAGS="${CFLAGS+set}" | |
6418 | ac_save_CFLAGS="$CFLAGS" | |
6419 | CFLAGS= | |
6420 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
6426998c | 6421 | echo "configure:6422: checking whether ${CC-cc} accepts -g" >&5 |
10f2d63a VZ |
6422 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
6423 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6424 | else | |
6425 | echo 'void f(){}' > conftest.c | |
6426 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
6427 | ac_cv_prog_cc_g=yes | |
6428 | else | |
6429 | ac_cv_prog_cc_g=no | |
6430 | fi | |
6431 | rm -f conftest* | |
6432 | ||
6433 | fi | |
6434 | ||
6435 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
6436 | if test "$ac_test_CFLAGS" = set; then | |
6437 | CFLAGS="$ac_save_CFLAGS" | |
6438 | elif test $ac_cv_prog_cc_g = yes; then | |
6439 | if test "$GCC" = yes; then | |
6440 | CFLAGS="-g -O2" | |
6441 | else | |
6442 | CFLAGS="-g" | |
6443 | fi | |
6444 | else | |
6445 | if test "$GCC" = yes; then | |
6446 | CFLAGS="-O2" | |
6447 | else | |
6448 | CFLAGS= | |
6449 | fi | |
6450 | fi | |
6451 | ||
6452 | ||
6453 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
6454 | ||
6455 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
6426998c | 6456 | echo "configure:6457: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
6457 | # On Suns, sometimes $CPP names a directory. |
6458 | if test -n "$CPP" && test -d "$CPP"; then | |
6459 | CPP= | |
6460 | fi | |
6461 | if test -z "$CPP"; then | |
6462 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
6463 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6464 | else | |
6465 | # This must be in double quotes, not single quotes, because CPP may get | |
6466 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
6467 | CPP="${CC-cc} -E" | |
6468 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6469 | # not just through cpp. | |
6470 | cat > conftest.$ac_ext <<EOF | |
6426998c | 6471 | #line 6472 "configure" |
10f2d63a VZ |
6472 | #include "confdefs.h" |
6473 | #include <assert.h> | |
6474 | Syntax Error | |
6475 | EOF | |
6476 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6426998c | 6477 | { (eval echo configure:6478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
6478 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6479 | if test -z "$ac_err"; then | |
6480 | : | |
6481 | else | |
6482 | echo "$ac_err" >&5 | |
6483 | echo "configure: failed program was:" >&5 | |
6484 | cat conftest.$ac_ext >&5 | |
6485 | rm -rf conftest* | |
6486 | CPP="${CC-cc} -E -traditional-cpp" | |
6487 | cat > conftest.$ac_ext <<EOF | |
6426998c | 6488 | #line 6489 "configure" |
10f2d63a VZ |
6489 | #include "confdefs.h" |
6490 | #include <assert.h> | |
6491 | Syntax Error | |
6492 | EOF | |
6493 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6426998c | 6494 | { (eval echo configure:6495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
6495 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6496 | if test -z "$ac_err"; then | |
6497 | : | |
6498 | else | |
6499 | echo "$ac_err" >&5 | |
6500 | echo "configure: failed program was:" >&5 | |
6501 | cat conftest.$ac_ext >&5 | |
6502 | rm -rf conftest* | |
6503 | CPP="${CC-cc} -nologo -E" | |
6504 | cat > conftest.$ac_ext <<EOF | |
6426998c | 6505 | #line 6506 "configure" |
10f2d63a VZ |
6506 | #include "confdefs.h" |
6507 | #include <assert.h> | |
6508 | Syntax Error | |
6509 | EOF | |
6510 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6426998c | 6511 | { (eval echo configure:6512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
6512 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6513 | if test -z "$ac_err"; then | |
6514 | : | |
6515 | else | |
6516 | echo "$ac_err" >&5 | |
6517 | echo "configure: failed program was:" >&5 | |
6518 | cat conftest.$ac_ext >&5 | |
6519 | rm -rf conftest* | |
6520 | CPP=/lib/cpp | |
6521 | fi | |
6522 | rm -f conftest* | |
6523 | fi | |
6524 | rm -f conftest* | |
6525 | fi | |
6526 | rm -f conftest* | |
6527 | ac_cv_prog_CPP="$CPP" | |
6528 | fi | |
6529 | CPP="$ac_cv_prog_CPP" | |
6530 | else | |
6531 | ac_cv_prog_CPP="$CPP" | |
6532 | fi | |
6533 | echo "$ac_t""$CPP" 1>&6 | |
6534 | ||
6535 | ||
6536 | if test $ac_cv_prog_gcc = yes; then | |
6537 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
6426998c | 6538 | echo "configure:6539: checking whether ${CC-cc} needs -traditional" >&5 |
10f2d63a VZ |
6539 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
6540 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6541 | else | |
6542 | ac_pattern="Autoconf.*'x'" | |
6543 | cat > conftest.$ac_ext <<EOF | |
6426998c | 6544 | #line 6545 "configure" |
10f2d63a VZ |
6545 | #include "confdefs.h" |
6546 | #include <sgtty.h> | |
6547 | Autoconf TIOCGETP | |
6548 | EOF | |
6549 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6550 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
6551 | rm -rf conftest* | |
6552 | ac_cv_prog_gcc_traditional=yes | |
6553 | else | |
6554 | rm -rf conftest* | |
6555 | ac_cv_prog_gcc_traditional=no | |
6556 | fi | |
6557 | rm -f conftest* | |
6558 | ||
6559 | ||
6560 | if test $ac_cv_prog_gcc_traditional = no; then | |
6561 | cat > conftest.$ac_ext <<EOF | |
6426998c | 6562 | #line 6563 "configure" |
10f2d63a VZ |
6563 | #include "confdefs.h" |
6564 | #include <termio.h> | |
6565 | Autoconf TCGETA | |
6566 | EOF | |
6567 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6568 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
6569 | rm -rf conftest* | |
6570 | ac_cv_prog_gcc_traditional=yes | |
6571 | fi | |
6572 | rm -f conftest* | |
6573 | ||
6574 | fi | |
6575 | fi | |
6576 | ||
6577 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
6578 | if test $ac_cv_prog_gcc_traditional = yes; then | |
6579 | CC="$CC -traditional" | |
6580 | fi | |
6581 | fi | |
6582 | ||
6583 | ||
6584 | ||
6585 | ac_ext=C | |
6586 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6587 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6588 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6589 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6590 | cross_compiling=$ac_cv_prog_cxx_cross | |
6591 | ||
6592 | ||
6593 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
6594 | do | |
6595 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6596 | set dummy $ac_prog; ac_word=$2 | |
6597 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6426998c | 6598 | echo "configure:6599: checking for $ac_word" >&5 |
10f2d63a VZ |
6599 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
6600 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6601 | else | |
6602 | if test -n "$CXX"; then | |
6603 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
6604 | else | |
6605 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6606 | ac_dummy="$PATH" | |
6607 | for ac_dir in $ac_dummy; do | |
6608 | test -z "$ac_dir" && ac_dir=. | |
6609 | if test -f $ac_dir/$ac_word; then | |
6610 | ac_cv_prog_CXX="$ac_prog" | |
6611 | break | |
6612 | fi | |
6613 | done | |
6614 | IFS="$ac_save_ifs" | |
6615 | fi | |
6616 | fi | |
6617 | CXX="$ac_cv_prog_CXX" | |
6618 | if test -n "$CXX"; then | |
6619 | echo "$ac_t""$CXX" 1>&6 | |
6620 | else | |
6621 | echo "$ac_t""no" 1>&6 | |
6622 | fi | |
6623 | ||
6624 | test -n "$CXX" && break | |
6625 | done | |
6626 | test -n "$CXX" || CXX="gcc" | |
6627 | ||
6628 | ||
6629 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
6426998c | 6630 | echo "configure:6631: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
10f2d63a VZ |
6631 | |
6632 | ac_ext=C | |
6633 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6634 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6635 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6636 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6637 | cross_compiling=$ac_cv_prog_cxx_cross | |
6638 | ||
6639 | cat > conftest.$ac_ext << EOF | |
6640 | ||
6426998c | 6641 | #line 6642 "configure" |
10f2d63a VZ |
6642 | #include "confdefs.h" |
6643 | ||
6644 | int main(){return(0);} | |
6645 | EOF | |
6426998c | 6646 | if { (eval echo configure:6647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
6647 | ac_cv_prog_cxx_works=yes |
6648 | # If we can't run a trivial program, we are probably using a cross compiler. | |
6649 | if (./conftest; exit) 2>/dev/null; then | |
6650 | ac_cv_prog_cxx_cross=no | |
6651 | else | |
6652 | ac_cv_prog_cxx_cross=yes | |
6653 | fi | |
6654 | else | |
6655 | echo "configure: failed program was:" >&5 | |
6656 | cat conftest.$ac_ext >&5 | |
6657 | ac_cv_prog_cxx_works=no | |
6658 | fi | |
6659 | rm -fr conftest* | |
6660 | ac_ext=C | |
6661 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6662 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6663 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6664 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6665 | cross_compiling=$ac_cv_prog_cxx_cross | |
6666 | ||
6667 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
6668 | if test $ac_cv_prog_cxx_works = no; then | |
6669 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
6670 | fi | |
6671 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
6426998c | 6672 | echo "configure:6673: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
10f2d63a VZ |
6673 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
6674 | cross_compiling=$ac_cv_prog_cxx_cross | |
6675 | ||
6676 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
6426998c | 6677 | echo "configure:6678: checking whether we are using GNU C++" >&5 |
10f2d63a VZ |
6678 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
6679 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6680 | else | |
6681 | cat > conftest.C <<EOF | |
6682 | #ifdef __GNUC__ | |
6683 | yes; | |
6684 | #endif | |
6685 | EOF | |
6426998c | 6686 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
10f2d63a VZ |
6687 | ac_cv_prog_gxx=yes |
6688 | else | |
6689 | ac_cv_prog_gxx=no | |
6690 | fi | |
6691 | fi | |
6692 | ||
6693 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 | |
6694 | ||
6695 | if test $ac_cv_prog_gxx = yes; then | |
6696 | GXX=yes | |
6697 | else | |
6698 | GXX= | |
6699 | fi | |
6700 | ||
6701 | ac_test_CXXFLAGS="${CXXFLAGS+set}" | |
6702 | ac_save_CXXFLAGS="$CXXFLAGS" | |
6703 | CXXFLAGS= | |
6704 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
6426998c | 6705 | echo "configure:6706: checking whether ${CXX-g++} accepts -g" >&5 |
10f2d63a VZ |
6706 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
6707 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6708 | else | |
6709 | echo 'void f(){}' > conftest.cc | |
6710 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
6711 | ac_cv_prog_cxx_g=yes | |
6712 | else | |
6713 | ac_cv_prog_cxx_g=no | |
6714 | fi | |
6715 | rm -f conftest* | |
6716 | ||
6717 | fi | |
6718 | ||
6719 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
6720 | if test "$ac_test_CXXFLAGS" = set; then | |
6721 | CXXFLAGS="$ac_save_CXXFLAGS" | |
6722 | elif test $ac_cv_prog_cxx_g = yes; then | |
6723 | if test "$GXX" = yes; then | |
6724 | CXXFLAGS="-g -O2" | |
6725 | else | |
6726 | CXXFLAGS="-g" | |
6727 | fi | |
6728 | else | |
6729 | if test "$GXX" = yes; then | |
6730 | CXXFLAGS="-O2" | |
6731 | else | |
6732 | CXXFLAGS= | |
6733 | fi | |
6734 | fi | |
6735 | ||
6736 | ||
6737 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 | |
6426998c | 6738 | echo "configure:6739: checking how to run the C++ preprocessor" >&5 |
10f2d63a VZ |
6739 | if test -z "$CXXCPP"; then |
6740 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
6741 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6742 | else | |
6743 | ac_ext=C | |
6744 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6745 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6746 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6747 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6748 | cross_compiling=$ac_cv_prog_cxx_cross | |
6749 | CXXCPP="${CXX-g++} -E" | |
6750 | cat > conftest.$ac_ext <<EOF | |
6426998c | 6751 | #line 6752 "configure" |
10f2d63a VZ |
6752 | #include "confdefs.h" |
6753 | #include <stdlib.h> | |
6754 | EOF | |
6755 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6426998c | 6756 | { (eval echo configure:6757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
6757 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6758 | if test -z "$ac_err"; then | |
6759 | : | |
6760 | else | |
6761 | echo "$ac_err" >&5 | |
6762 | echo "configure: failed program was:" >&5 | |
6763 | cat conftest.$ac_ext >&5 | |
6764 | rm -rf conftest* | |
6765 | CXXCPP=/lib/cpp | |
6766 | fi | |
6767 | rm -f conftest* | |
6768 | ac_cv_prog_CXXCPP="$CXXCPP" | |
6769 | ac_ext=C | |
6770 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6771 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6772 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6773 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6774 | cross_compiling=$ac_cv_prog_cxx_cross | |
6775 | fi | |
6776 | fi | |
6777 | CXXCPP="$ac_cv_prog_CXXCPP" | |
6778 | echo "$ac_t""$CXXCPP" 1>&6 | |
6779 | ||
6780 | ||
6781 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` | |
6782 | ||
6783 | ac_ext=c | |
6784 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6785 | ac_cpp='$CPP $CPPFLAGS' | |
6786 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6787 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6788 | cross_compiling=$ac_cv_prog_cc_cross | |
6789 | ||
6790 | ||
6791 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6792 | set dummy ranlib; ac_word=$2 | |
6793 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6426998c | 6794 | echo "configure:6795: checking for $ac_word" >&5 |
10f2d63a VZ |
6795 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
6796 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6797 | else | |
6798 | if test -n "$RANLIB"; then | |
6799 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6800 | else | |
6801 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6802 | ac_dummy="$PATH" | |
6803 | for ac_dir in $ac_dummy; do | |
6804 | test -z "$ac_dir" && ac_dir=. | |
6805 | if test -f $ac_dir/$ac_word; then | |
6806 | ac_cv_prog_RANLIB="ranlib" | |
6807 | break | |
6808 | fi | |
6809 | done | |
6810 | IFS="$ac_save_ifs" | |
6811 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
6812 | fi | |
6813 | fi | |
6814 | RANLIB="$ac_cv_prog_RANLIB" | |
6815 | if test -n "$RANLIB"; then | |
6816 | echo "$ac_t""$RANLIB" 1>&6 | |
6817 | else | |
6818 | echo "$ac_t""no" 1>&6 | |
6819 | fi | |
6820 | ||
6821 | ||
6822 | # Extract the first word of "ar", so it can be a program name with args. | |
6823 | set dummy ar; ac_word=$2 | |
6824 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6426998c | 6825 | echo "configure:6826: checking for $ac_word" >&5 |
10f2d63a VZ |
6826 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
6827 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6828 | else | |
6829 | if test -n "$AR"; then | |
6830 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6831 | else | |
6832 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6833 | ac_dummy="$PATH" | |
6834 | for ac_dir in $ac_dummy; do | |
6835 | test -z "$ac_dir" && ac_dir=. | |
6836 | if test -f $ac_dir/$ac_word; then | |
6837 | ac_cv_prog_AR="ar" | |
6838 | break | |
6839 | fi | |
6840 | done | |
6841 | IFS="$ac_save_ifs" | |
6842 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
6843 | fi | |
6844 | fi | |
6845 | AR="$ac_cv_prog_AR" | |
6846 | if test -n "$AR"; then | |
6847 | echo "$ac_t""$AR" 1>&6 | |
6848 | else | |
6849 | echo "$ac_t""no" 1>&6 | |
6850 | fi | |
6851 | ||
6852 | ||
6853 | # Find a good install program. We prefer a C program (faster), | |
6854 | # so one script is as good as another. But avoid the broken or | |
6855 | # incompatible versions: | |
6856 | # SysV /etc/install, /usr/sbin/install | |
6857 | # SunOS /usr/etc/install | |
6858 | # IRIX /sbin/install | |
6859 | # AIX /bin/install | |
6860 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
6861 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
6862 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
6863 | # ./install, which can be erroneously created by make from ./install.sh. | |
6864 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
6426998c | 6865 | echo "configure:6866: checking for a BSD compatible install" >&5 |
10f2d63a VZ |
6866 | if test -z "$INSTALL"; then |
6867 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
6868 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6869 | else | |
6870 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
6871 | for ac_dir in $PATH; do | |
6872 | # Account for people who put trailing slashes in PATH elements. | |
6873 | case "$ac_dir/" in | |
6874 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
6875 | *) | |
6876 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
6877 | # Don't use installbsd from OSF since it installs stuff as root | |
6878 | # by default. | |
6879 | for ac_prog in ginstall scoinst install; do | |
6880 | if test -f $ac_dir/$ac_prog; then | |
6881 | if test $ac_prog = install && | |
6882 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
6883 | # AIX install. It has an incompatible calling convention. | |
6884 | : | |
6885 | else | |
6886 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
6887 | break 2 | |
6888 | fi | |
6889 | fi | |
6890 | done | |
6891 | ;; | |
6892 | esac | |
6893 | done | |
6894 | IFS="$ac_save_IFS" | |
6895 | ||
6896 | fi | |
6897 | if test "${ac_cv_path_install+set}" = set; then | |
6898 | INSTALL="$ac_cv_path_install" | |
6899 | else | |
6900 | # As a last resort, use the slow shell script. We don't cache a | |
6901 | # path for INSTALL within a source directory, because that will | |
6902 | # break other packages using the cache if that directory is | |
6903 | # removed, or if the path is relative. | |
6904 | INSTALL="$ac_install_sh" | |
6905 | fi | |
6906 | fi | |
6907 | echo "$ac_t""$INSTALL" 1>&6 | |
6908 | ||
6909 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
6910 | # It thinks the first close brace ends the variable substitution. | |
6911 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
6912 | ||
6913 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
6914 | ||
6915 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
6916 | ||
6917 | ||
6918 | # Extract the first word of "strip", so it can be a program name with args. | |
6919 | set dummy strip; ac_word=$2 | |
6920 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6426998c | 6921 | echo "configure:6922: checking for $ac_word" >&5 |
10f2d63a VZ |
6922 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
6923 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6924 | else | |
6925 | if test -n "$STRIP"; then | |
6926 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6927 | else | |
6928 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6929 | ac_dummy="$PATH" | |
6930 | for ac_dir in $ac_dummy; do | |
6931 | test -z "$ac_dir" && ac_dir=. | |
6932 | if test -f $ac_dir/$ac_word; then | |
6933 | ac_cv_prog_STRIP="strip" | |
6934 | break | |
6935 | fi | |
6936 | done | |
6937 | IFS="$ac_save_ifs" | |
6938 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" | |
6939 | fi | |
6940 | fi | |
6941 | STRIP="$ac_cv_prog_STRIP" | |
6942 | if test -n "$STRIP"; then | |
6943 | echo "$ac_t""$STRIP" 1>&6 | |
6944 | else | |
6945 | echo "$ac_t""no" 1>&6 | |
6946 | fi | |
6947 | ||
6948 | ||
6949 | echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6 | |
6426998c | 6950 | echo "configure:6951: checking "make for VPATH support"" >&5 |
10f2d63a VZ |
6951 | cat - << EOF > confMake |
6952 | check : file | |
6953 | cp \$? \$@ | |
6954 | cp \$? final_file | |
6955 | EOF | |
6956 | ||
6957 | if test ! -d sub ; then | |
6958 | mkdir sub | |
6959 | fi | |
6960 | echo dummy > sub/file | |
f6bcfd97 | 6961 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
6962 | RESULT=$? |
6963 | rm -f sub/file check final_file confMake | |
6964 | rmdir sub | |
6965 | if test "$RESULT" = 0; then | |
6966 | echo "$ac_t""yes" 1>&6 | |
6967 | else | |
6968 | echo "$ac_t""no" 1>&6 | |
6969 | { echo "configure: error: You need a make-utility that is able to use the variable | |
6970 | VPATH correctly. | |
6971 | If your version of make does not support VPATH correctly" 1>&2; exit 1; } | |
6972 | fi | |
6973 | ||
6974 | for ac_prog in 'bison -y' byacc | |
6975 | do | |
6976 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6977 | set dummy $ac_prog; ac_word=$2 | |
6978 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6426998c | 6979 | echo "configure:6980: checking for $ac_word" >&5 |
10f2d63a VZ |
6980 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
6981 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6982 | else | |
6983 | if test -n "$YACC"; then | |
6984 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
6985 | else | |
6986 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6987 | ac_dummy="$PATH" | |
6988 | for ac_dir in $ac_dummy; do | |
6989 | test -z "$ac_dir" && ac_dir=. | |
6990 | if test -f $ac_dir/$ac_word; then | |
6991 | ac_cv_prog_YACC="$ac_prog" | |
6992 | break | |
6993 | fi | |
6994 | done | |
6995 | IFS="$ac_save_ifs" | |
6996 | fi | |
6997 | fi | |
6998 | YACC="$ac_cv_prog_YACC" | |
6999 | if test -n "$YACC"; then | |
7000 | echo "$ac_t""$YACC" 1>&6 | |
7001 | else | |
7002 | echo "$ac_t""no" 1>&6 | |
7003 | fi | |
7004 | ||
7005 | test -n "$YACC" && break | |
7006 | done | |
7007 | test -n "$YACC" || YACC="yacc" | |
7008 | ||
7009 | ||
7010 | # Extract the first word of "flex", so it can be a program name with args. | |
7011 | set dummy flex; ac_word=$2 | |
7012 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6426998c | 7013 | echo "configure:7014: checking for $ac_word" >&5 |
10f2d63a VZ |
7014 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
7015 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7016 | else | |
7017 | if test -n "$LEX"; then | |
7018 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
7019 | else | |
7020 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
7021 | ac_dummy="$PATH" | |
7022 | for ac_dir in $ac_dummy; do | |
7023 | test -z "$ac_dir" && ac_dir=. | |
7024 | if test -f $ac_dir/$ac_word; then | |
7025 | ac_cv_prog_LEX="flex" | |
7026 | break | |
7027 | fi | |
7028 | done | |
7029 | IFS="$ac_save_ifs" | |
7030 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
7031 | fi | |
7032 | fi | |
7033 | LEX="$ac_cv_prog_LEX" | |
7034 | if test -n "$LEX"; then | |
7035 | echo "$ac_t""$LEX" 1>&6 | |
7036 | else | |
7037 | echo "$ac_t""no" 1>&6 | |
7038 | fi | |
7039 | ||
7040 | if test -z "$LEXLIB" | |
7041 | then | |
7042 | case "$LEX" in | |
7043 | flex*) ac_lib=fl ;; | |
7044 | *) ac_lib=l ;; | |
7045 | esac | |
7046 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
6426998c | 7047 | echo "configure:7048: checking for yywrap in -l$ac_lib" >&5 |
10f2d63a VZ |
7048 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
7049 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7050 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7051 | else | |
7052 | ac_save_LIBS="$LIBS" | |
7053 | LIBS="-l$ac_lib $LIBS" | |
7054 | cat > conftest.$ac_ext <<EOF | |
6426998c | 7055 | #line 7056 "configure" |
10f2d63a VZ |
7056 | #include "confdefs.h" |
7057 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7058 | /* We use char because int might match the return type of a gcc2 | |
7059 | builtin and then its argument prototype would still apply. */ | |
7060 | char yywrap(); | |
7061 | ||
7062 | int main() { | |
7063 | yywrap() | |
7064 | ; return 0; } | |
7065 | EOF | |
6426998c | 7066 | if { (eval echo configure:7067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
7067 | rm -rf conftest* |
7068 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7069 | else | |
7070 | echo "configure: failed program was:" >&5 | |
7071 | cat conftest.$ac_ext >&5 | |
7072 | rm -rf conftest* | |
7073 | eval "ac_cv_lib_$ac_lib_var=no" | |
7074 | fi | |
7075 | rm -f conftest* | |
7076 | LIBS="$ac_save_LIBS" | |
7077 | ||
7078 | fi | |
7079 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7080 | echo "$ac_t""yes" 1>&6 | |
7081 | LEXLIB="-l$ac_lib" | |
7082 | else | |
7083 | echo "$ac_t""no" 1>&6 | |
7084 | fi | |
7085 | ||
7086 | fi | |
7087 | ||
7088 | ||
7089 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
6426998c | 7090 | echo "configure:7091: checking whether ln -s works" >&5 |
10f2d63a VZ |
7091 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
7092 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7093 | else | |
7094 | rm -f conftestdata | |
7095 | if ln -s X conftestdata 2>/dev/null | |
7096 | then | |
7097 | rm -f conftestdata | |
7098 | ac_cv_prog_LN_S="ln -s" | |
7099 | else | |
7100 | ac_cv_prog_LN_S=ln | |
7101 | fi | |
7102 | fi | |
7103 | LN_S="$ac_cv_prog_LN_S" | |
7104 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
7105 | echo "$ac_t""yes" 1>&6 | |
7106 | else | |
7107 | echo "$ac_t""no" 1>&6 | |
7108 | fi | |
7109 | ||
7110 | ||
7111 | ||
7112 | SEARCH_INCLUDE="\ | |
7113 | /usr/local/include \ | |
7114 | \ | |
7115 | /usr/Motif-1.2/include \ | |
7116 | /usr/Motif-2.1/include \ | |
7117 | \ | |
7118 | /usr/include/Motif1.2 \ | |
7119 | /opt/xpm/include/X11 \ | |
7120 | /opt/GBxpm/include/ \ | |
7121 | /opt/GBxpm/X11/include/ \ | |
7122 | \ | |
7123 | /usr/Motif1.2/include \ | |
7124 | /usr/dt/include \ | |
afc31813 VZ |
7125 | /usr/openwin/include \ |
7126 | \ | |
10f2d63a VZ |
7127 | /usr/include/Xm \ |
7128 | \ | |
7129 | /usr/X11R6/include \ | |
afc31813 | 7130 | /usr/X11R6.4/include \ |
10f2d63a VZ |
7131 | /usr/X11R5/include \ |
7132 | /usr/X11R4/include \ | |
7133 | \ | |
10f2d63a VZ |
7134 | /usr/include/X11R6 \ |
7135 | /usr/include/X11R5 \ | |
7136 | /usr/include/X11R4 \ | |
7137 | \ | |
7138 | /usr/local/X11R6/include \ | |
7139 | /usr/local/X11R5/include \ | |
7140 | /usr/local/X11R4/include \ | |
7141 | \ | |
7142 | /usr/local/include/X11R6 \ | |
7143 | /usr/local/include/X11R5 \ | |
7144 | /usr/local/include/X11R4 \ | |
7145 | \ | |
7146 | /usr/X11/include \ | |
7147 | /usr/include/X11 \ | |
7148 | /usr/local/X11/include \ | |
7149 | /usr/local/include/X11 \ | |
7150 | \ | |
7151 | /usr/X386/include \ | |
7152 | /usr/x386/include \ | |
7153 | /usr/XFree86/include/X11 \ | |
7154 | \ | |
cf27ef00 | 7155 | X:/XFree86/include \ |
ec14dd32 VZ |
7156 | X:/XFree86/include/X11 \ |
7157 | \ | |
10f2d63a VZ |
7158 | /usr/include/gtk \ |
7159 | /usr/local/include/gtk \ | |
7160 | /usr/include/glib \ | |
7161 | /usr/local/include/glib \ | |
7162 | \ | |
7163 | /usr/include/qt \ | |
7164 | /usr/local/include/qt \ | |
7165 | \ | |
7166 | /usr/include/windows \ | |
7167 | /usr/include/wine \ | |
7168 | /usr/local/include/wine \ | |
7169 | \ | |
7170 | /usr/unsupported/include \ | |
7171 | /usr/athena/include \ | |
7172 | /usr/local/x11r5/include \ | |
7173 | /usr/lpp/Xamples/include \ | |
7174 | \ | |
10f2d63a | 7175 | /usr/openwin/share/include \ |
928b5c08 VZ |
7176 | \ |
7177 | /usr/include" | |
10f2d63a VZ |
7178 | |
7179 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
7180 | ||
7181 | ||
7182 | cat > confcache <<\EOF | |
7183 | # This file is a shell script that caches the results of configure | |
7184 | # tests run on this system so they can be shared between configure | |
7185 | # scripts and configure runs. It is not useful on other systems. | |
7186 | # If it contains results you don't want to keep, you may remove or edit it. | |
7187 | # | |
7188 | # By default, configure uses ./config.cache as the cache file, | |
7189 | # creating it if it does not exist already. You can give configure | |
7190 | # the --cache-file=FILE option to use a different cache file; that is | |
7191 | # what configure does when it calls configure scripts in | |
7192 | # subdirectories, so they share the cache. | |
7193 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
7194 | # config.status only pays attention to the cache file if you give it the | |
7195 | # --recheck option to rerun configure. | |
7196 | # | |
7197 | EOF | |
7198 | # The following way of writing the cache mishandles newlines in values, | |
7199 | # but we know of no workaround that is simple, portable, and efficient. | |
7200 | # So, don't put newlines in cache variables' values. | |
7201 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
7202 | # and sets the high bit in the cache file unless we assign to the vars. | |
7203 | (set) 2>&1 | | |
7204 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
7205 | *ac_space=\ *) | |
7206 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
7207 | # turns \\\\ into \\, and sed turns \\ into \). | |
7208 | sed -n \ | |
7209 | -e "s/'/'\\\\''/g" \ | |
7210 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
7211 | ;; | |
7212 | *) | |
7213 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7214 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
7215 | ;; | |
7216 | esac >> confcache | |
7217 | if cmp -s $cache_file confcache; then | |
7218 | : | |
7219 | else | |
7220 | if test -w $cache_file; then | |
7221 | echo "updating cache $cache_file" | |
7222 | cat confcache > $cache_file | |
7223 | else | |
7224 | echo "not updating unwritable cache $cache_file" | |
7225 | fi | |
7226 | fi | |
7227 | rm -f confcache | |
7228 | ||
7229 | ||
7230 | ||
dad6c0ea VZ |
7231 | AFMINSTALL= |
7232 | ||
10f2d63a VZ |
7233 | if test "$wxUSE_GUI" = "yes"; then |
7234 | ||
dad6c0ea VZ |
7235 | USE_GUI=1 |
7236 | ||
10f2d63a VZ |
7237 | TOOLKIT= |
7238 | TOOLKIT_INCLUDE= | |
7239 | ||
10f2d63a VZ |
7240 | GUI_TK_LIBRARY= |
7241 | GUI_TK_LINK= | |
7242 | ||
7243 | WXGTK12= | |
f6bcfd97 | 7244 | WXGTK127= |
6f72b082 | 7245 | WXGTK20= |
10f2d63a VZ |
7246 | |
7247 | WXWINE= | |
7248 | ||
10f2d63a VZ |
7249 | if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then |
7250 | if test "$cross_compiling" = "yes" ; then | |
e59890c3 | 7251 | echo "configure: warning: skipping windows.h check for cross-compilation" 1>&2 |
10f2d63a VZ |
7252 | else |
7253 | echo $ac_n "checking for Windows headers""... $ac_c" 1>&6 | |
6426998c | 7254 | echo "configure:7255: checking for Windows headers" >&5 |
10f2d63a VZ |
7255 | |
7256 | ac_find_includes= | |
7257 | for ac_dir in $SEARCH_INCLUDE; | |
7258 | do | |
7259 | if test -f "$ac_dir/windows.h"; then | |
7260 | ac_find_includes=$ac_dir | |
7261 | break | |
7262 | fi | |
7263 | done | |
7264 | ||
7265 | if test "$ac_find_includes" != "" ; then | |
7266 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
7267 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
7268 | else | |
7269 | echo "$ac_t""no" 1>&6 | |
7270 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
7271 | fi | |
7272 | fi | |
7273 | ||
7274 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw" | |
7275 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32" | |
7276 | ||
f6bcfd97 BP |
7277 | if test "$wxUSE_ODBC" = "yes" ; then |
7278 | LIBS="$LIBS -lodbc32 -lole32 -loleaut32" | |
7279 | fi | |
7280 | ||
10f2d63a VZ |
7281 | if test "$wxUSE_MINGW" = 1; then |
7282 | LDFLAGS="$LDFLAGS -mwindows" | |
7283 | fi | |
7284 | ||
7285 | TOOLKIT=MSW | |
10f2d63a | 7286 | GUIDIST=MSW_DIST |
32832908 VZ |
7287 | |
7288 | RCINCSWITCH="--include-dir" | |
7289 | RCDEFSWITCH="--define" | |
7290 | RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\"" | |
7291 | RCINPUTSWITCH="-i" | |
7292 | RCOUTPUTSWITCH="-o" | |
7293 | RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__" | |
7294 | ||
7295 | RESPROGRAM="\$(RES_PROGRAM)" | |
7296 | ||
10f2d63a VZ |
7297 | fi |
7298 | ||
7299 | if test "$wxUSE_GTK" = 1; then | |
6f72b082 OK |
7300 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
7301 | if test "${with_gtk_prefix+set}" = set; then | |
7302 | withval="$with_gtk_prefix" | |
7303 | gtk_config_prefix="$withval" | |
7304 | else | |
7305 | gtk_config_prefix="" | |
7306 | fi | |
7307 | ||
7308 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
7309 | if test "${with_gtk_exec_prefix+set}" = set; then | |
7310 | withval="$with_gtk_exec_prefix" | |
7311 | gtk_config_exec_prefix="$withval" | |
7312 | else | |
7313 | gtk_config_exec_prefix="" | |
7314 | fi | |
7315 | ||
7316 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
7317 | if test "${enable_gtktest+set}" = set; then | |
7318 | enableval="$enable_gtktest" | |
7319 | : | |
7320 | else | |
7321 | enable_gtktest=yes | |
7322 | fi | |
7323 | ||
7324 | ||
7325 | for module in . gthread | |
7326 | do | |
7327 | case "$module" in | |
7328 | gthread) | |
7329 | gtk_config_args="$gtk_config_args gthread" | |
7330 | ;; | |
7331 | esac | |
7332 | done | |
7333 | ||
7334 | if test x$gtk_config_exec_prefix != x ; then | |
7335 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
7336 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
7337 | GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0 | |
7338 | fi | |
7339 | fi | |
7340 | if test x$gtk_config_prefix != x ; then | |
7341 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
7342 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
7343 | GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0 | |
7344 | fi | |
7345 | fi | |
7346 | ||
7347 | # Extract the first word of "gtk-config-2.0", so it can be a program name with args. | |
7348 | set dummy gtk-config-2.0; ac_word=$2 | |
7349 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6426998c | 7350 | echo "configure:7351: checking for $ac_word" >&5 |
6f72b082 OK |
7351 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then |
7352 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7353 | else | |
7354 | case "$GTK_CONFIG_2_0" in | |
7355 | /*) | |
7356 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path. | |
7357 | ;; | |
7358 | ?:/*) | |
7359 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path. | |
7360 | ;; | |
7361 | *) | |
7362 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
7363 | ac_dummy="$PATH" | |
7364 | for ac_dir in $ac_dummy; do | |
7365 | test -z "$ac_dir" && ac_dir=. | |
7366 | if test -f $ac_dir/$ac_word; then | |
7367 | ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word" | |
7368 | break | |
7369 | fi | |
7370 | done | |
7371 | IFS="$ac_save_ifs" | |
7372 | test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no" | |
7373 | ;; | |
7374 | esac | |
7375 | fi | |
7376 | GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0" | |
7377 | if test -n "$GTK_CONFIG_2_0"; then | |
7378 | echo "$ac_t""$GTK_CONFIG_2_0" 1>&6 | |
7379 | else | |
7380 | echo "$ac_t""no" 1>&6 | |
7381 | fi | |
7382 | ||
7383 | min_gtk_version=1.3.1 | |
7384 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 | |
6426998c | 7385 | echo "configure:7386: checking for GTK - version >= $min_gtk_version" >&5 |
6f72b082 OK |
7386 | no_gtk="" |
7387 | if test "$GTK_CONFIG_2_0" = "no" ; then | |
7388 | no_gtk=yes | |
7389 | else | |
7390 | GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags` | |
7391 | GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs` | |
7392 | gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
7393 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
7394 | gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
7395 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
7396 | gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
7397 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
7398 | if test "x$enable_gtktest" = "xyes" ; then | |
7399 | ac_save_CFLAGS="$CFLAGS" | |
7400 | ac_save_LIBS="$LIBS" | |
7401 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
7402 | LIBS="$GTK_LIBS $LIBS" | |
7403 | rm -f conf.gtktest | |
7404 | if test "$cross_compiling" = yes; then | |
7405 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
7406 | else | |
7407 | cat > conftest.$ac_ext <<EOF | |
6426998c | 7408 | #line 7409 "configure" |
6f72b082 OK |
7409 | #include "confdefs.h" |
7410 | ||
7411 | #include <gtk/gtk.h> | |
7412 | #include <stdio.h> | |
7413 | #include <stdlib.h> | |
7414 | ||
7415 | int | |
7416 | main () | |
7417 | { | |
7418 | int major, minor, micro; | |
7419 | char *tmp_version; | |
7420 | ||
7421 | system ("touch conf.gtktest"); | |
7422 | ||
7423 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
7424 | tmp_version = g_strdup("$min_gtk_version"); | |
7425 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
7426 | printf("%s, bad version string\n", "$min_gtk_version"); | |
7427 | exit(1); | |
7428 | } | |
7429 | ||
7430 | if ((gtk_major_version != $gtk_config_major_version) || | |
7431 | (gtk_minor_version != $gtk_config_minor_version) || | |
7432 | (gtk_micro_version != $gtk_config_micro_version)) | |
7433 | { | |
7434 | printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
7435 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
7436 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
7437 | printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n"); | |
7438 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
7439 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
7440 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
7441 | printf("*** required on your system.\n"); | |
7442 | printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n"); | |
7443 | printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n"); | |
7444 | printf("*** before re-running configure\n"); | |
7445 | } | |
7446 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
7447 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
7448 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
7449 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
7450 | { | |
7451 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
7452 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
7453 | printf("*** library (version %d.%d.%d)\n", | |
7454 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
7455 | } | |
7456 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
7457 | else | |
7458 | { | |
7459 | if ((gtk_major_version > major) || | |
7460 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
7461 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
7462 | { | |
7463 | return 0; | |
7464 | } | |
7465 | else | |
7466 | { | |
7467 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
7468 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
7469 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
7470 | major, minor, micro); | |
7471 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
7472 | printf("***\n"); | |
7473 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
7474 | printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n"); | |
7475 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
7476 | printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n"); | |
7477 | printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n"); | |
7478 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
7479 | printf("*** so that the correct libraries are found at run-time))\n"); | |
7480 | } | |
7481 | } | |
7482 | return 1; | |
7483 | } | |
7484 | ||
7485 | EOF | |
6426998c | 7486 | if { (eval echo configure:7487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
6f72b082 OK |
7487 | then |
7488 | : | |
7489 | else | |
7490 | echo "configure: failed program was:" >&5 | |
7491 | cat conftest.$ac_ext >&5 | |
7492 | rm -fr conftest* | |
7493 | no_gtk=yes | |
7494 | fi | |
7495 | rm -fr conftest* | |
7496 | fi | |
7497 | ||
7498 | CFLAGS="$ac_save_CFLAGS" | |
7499 | LIBS="$ac_save_LIBS" | |
7500 | fi | |
7501 | fi | |
7502 | if test "x$no_gtk" = x ; then | |
7503 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 | |
7504 | WXGTK20=1 | |
7505 | else | |
7506 | echo "$ac_t""no" 1>&6 | |
7507 | if test "$GTK_CONFIG_2_0" = "no" ; then | |
7508 | echo "*** The gtk-config-2.0 script installed by GTK could not be found" | |
7509 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
7510 | echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the" | |
7511 | echo "*** full path to gtk-config-2.0." | |
7512 | else | |
7513 | if test -f conf.gtktest ; then | |
7514 | : | |
7515 | else | |
7516 | echo "*** Could not run GTK test program, checking why..." | |
7517 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
7518 | LIBS="$LIBS $GTK_LIBS" | |
7519 | cat > conftest.$ac_ext <<EOF | |
6426998c | 7520 | #line 7521 "configure" |
6f72b082 OK |
7521 | #include "confdefs.h" |
7522 | ||
7523 | #include <gtk/gtk.h> | |
7524 | #include <stdio.h> | |
7525 | ||
7526 | int main() { | |
7527 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
7528 | ; return 0; } | |
7529 | EOF | |
6426998c | 7530 | if { (eval echo configure:7531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6f72b082 OK |
7531 | rm -rf conftest* |
7532 | echo "*** The test program compiled, but did not run. This usually means" | |
7533 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
7534 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
7535 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
7536 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
7537 | echo "*** is required on your system" | |
7538 | echo "***" | |
7539 | echo "*** If you have an old version installed, it is best to remove it, although" | |
7540 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
7541 | echo "***" | |
7542 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
7543 | echo "*** came with the system with the command" | |
7544 | echo "***" | |
7545 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
7546 | else | |
7547 | echo "configure: failed program was:" >&5 | |
7548 | cat conftest.$ac_ext >&5 | |
7549 | rm -rf conftest* | |
7550 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
7551 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
7552 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
7553 | echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0" | |
7554 | fi | |
7555 | rm -f conftest* | |
7556 | CFLAGS="$ac_save_CFLAGS" | |
7557 | LIBS="$ac_save_LIBS" | |
7558 | fi | |
7559 | fi | |
7560 | GTK_CFLAGS="" | |
7561 | GTK_LIBS="" | |
7562 | ||
7563 | ||
10f2d63a VZ |
7564 | if test x$gtk_config_exec_prefix != x ; then |
7565 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
7566 | if test x${GTK_CONFIG+set} != xset ; then | |
7567 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
7568 | fi | |
7569 | fi | |
7570 | if test x$gtk_config_prefix != x ; then | |
7571 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
7572 | if test x${GTK_CONFIG+set} != xset ; then | |
7573 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
7574 | fi | |
7575 | fi | |
7576 | ||
7577 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
7578 | set dummy gtk-config; ac_word=$2 | |
7579 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6426998c | 7580 | echo "configure:7581: checking for $ac_word" >&5 |
f6bcfd97 BP |
7581 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
7582 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7583 | else | |
7584 | case "$GTK_CONFIG" in | |
7585 | /*) | |
7586 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
7587 | ;; | |
7588 | ?:/*) | |
7589 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
7590 | ;; | |
7591 | *) | |
7592 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
7593 | ac_dummy="$PATH" | |
7594 | for ac_dir in $ac_dummy; do | |
7595 | test -z "$ac_dir" && ac_dir=. | |
7596 | if test -f $ac_dir/$ac_word; then | |
7597 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
7598 | break | |
7599 | fi | |
7600 | done | |
7601 | IFS="$ac_save_ifs" | |
7602 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
7603 | ;; | |
7604 | esac | |
7605 | fi | |
7606 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
7607 | if test -n "$GTK_CONFIG"; then | |
7608 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
7609 | else | |
7610 | echo "$ac_t""no" 1>&6 | |
7611 | fi | |
7612 | ||
7613 | min_gtk_version=1.2.7 | |
7614 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 | |
6426998c | 7615 | echo "configure:7616: checking for GTK - version >= $min_gtk_version" >&5 |
f6bcfd97 BP |
7616 | no_gtk="" |
7617 | if test "$GTK_CONFIG" != "no" ; then | |
7618 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
7619 | GTK_LIBS=`$GTK_CONFIG --libs gthread` | |
7620 | ac_save_CFLAGS="$CFLAGS" | |
7621 | ac_save_LIBS="$LIBS" | |
7622 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
7623 | LIBS="$LIBS $GTK_LIBS" | |
7624 | if test "$cross_compiling" = yes; then | |
7625 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
7626 | else | |
7627 | cat > conftest.$ac_ext <<EOF | |
6426998c | 7628 | #line 7629 "configure" |
f6bcfd97 BP |
7629 | #include "confdefs.h" |
7630 | ||
7631 | #include <gtk/gtk.h> | |
7632 | #include <gtk/gtkfeatures.h> | |
7633 | #include <stdio.h> | |
7634 | #include <stdlib.h> | |
7635 | ||
7636 | int | |
7637 | main () | |
7638 | { | |
7639 | int major, minor, micro; | |
7640 | ||
7641 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
7642 | printf("%s, bad version string\n", "$min_gtk_version"); | |
7643 | exit(1); | |
7644 | } | |
7645 | ||
7646 | if ((GTK_MAJOR_VERSION != gtk_major_version) || | |
7647 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
7648 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
7649 | printf("Headers vs. library version mismatch!\n"); | |
7650 | exit(1); | |
7651 | } | |
7652 | ||
7653 | if (gtk_minor_version == 1) return FALSE; | |
7654 | ||
7655 | return !((gtk_major_version > major) || | |
7656 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
7657 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
7658 | } | |
7659 | ||
7660 | EOF | |
6426998c | 7661 | if { (eval echo configure:7662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
f6bcfd97 BP |
7662 | then |
7663 | : | |
7664 | else | |
7665 | echo "configure: failed program was:" >&5 | |
7666 | cat conftest.$ac_ext >&5 | |
7667 | rm -fr conftest* | |
7668 | no_gtk=yes | |
7669 | fi | |
7670 | rm -fr conftest* | |
7671 | fi | |
7672 | ||
7673 | CFLAGS="$ac_save_CFLAGS" | |
7674 | LIBS="$ac_save_LIBS" | |
7675 | else | |
7676 | no_gtk=yes | |
7677 | fi | |
7678 | if test "x$no_gtk" = x ; then | |
7679 | echo "$ac_t""yes" 1>&6 | |
7680 | WXGTK127=1 | |
7681 | else | |
7682 | echo "$ac_t""no" 1>&6 | |
7683 | GTK_CFLAGS="" | |
7684 | GTK_LIBS="" | |
7685 | : | |
7686 | fi | |
7687 | ||
7688 | ||
7689 | ||
6f72b082 | 7690 | |
f6bcfd97 BP |
7691 | if test x$gtk_config_exec_prefix != x ; then |
7692 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
7693 | if test x${GTK_CONFIG+set} != xset ; then | |
7694 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
7695 | fi | |
7696 | fi | |
7697 | if test x$gtk_config_prefix != x ; then | |
7698 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
7699 | if test x${GTK_CONFIG+set} != xset ; then | |
7700 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
7701 | fi | |
7702 | fi | |
7703 | ||
7704 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
7705 | set dummy gtk-config; ac_word=$2 | |
7706 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6426998c | 7707 | echo "configure:7708: checking for $ac_word" >&5 |
10f2d63a VZ |
7708 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
7709 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7710 | else | |
7711 | case "$GTK_CONFIG" in | |
7712 | /*) | |
7713 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
7714 | ;; | |
7715 | ?:/*) | |
7716 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
7717 | ;; | |
7718 | *) | |
7719 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
7720 | ac_dummy="$PATH" | |
7721 | for ac_dir in $ac_dummy; do | |
7722 | test -z "$ac_dir" && ac_dir=. | |
7723 | if test -f $ac_dir/$ac_word; then | |
7724 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
7725 | break | |
7726 | fi | |
7727 | done | |
7728 | IFS="$ac_save_ifs" | |
7729 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
7730 | ;; | |
7731 | esac | |
7732 | fi | |
7733 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
7734 | if test -n "$GTK_CONFIG"; then | |
7735 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
7736 | else | |
7737 | echo "$ac_t""no" 1>&6 | |
7738 | fi | |
7739 | ||
04165bec | 7740 | min_gtk_version=1.2.3 |
10f2d63a | 7741 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
6426998c | 7742 | echo "configure:7743: checking for GTK - version >= $min_gtk_version" >&5 |
10f2d63a VZ |
7743 | no_gtk="" |
7744 | if test "$GTK_CONFIG" != "no" ; then | |
7745 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
2224580a | 7746 | GTK_LIBS=`$GTK_CONFIG --libs gthread` |
10f2d63a VZ |
7747 | ac_save_CFLAGS="$CFLAGS" |
7748 | ac_save_LIBS="$LIBS" | |
7749 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
7750 | LIBS="$LIBS $GTK_LIBS" | |
7751 | if test "$cross_compiling" = yes; then | |
7752 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
7753 | else | |
7754 | cat > conftest.$ac_ext <<EOF | |
6426998c | 7755 | #line 7756 "configure" |
10f2d63a VZ |
7756 | #include "confdefs.h" |
7757 | ||
7758 | #include <gtk/gtk.h> | |
f49f2b0c | 7759 | #include <gtk/gtkfeatures.h> |
10f2d63a | 7760 | #include <stdio.h> |
32832908 | 7761 | #include <stdlib.h> |
10f2d63a VZ |
7762 | |
7763 | int | |
7764 | main () | |
7765 | { | |
7766 | int major, minor, micro; | |
7767 | ||
7768 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
7769 | printf("%s, bad version string\n", "$min_gtk_version"); | |
7770 | exit(1); | |
7771 | } | |
7772 | ||
f49f2b0c RR |
7773 | if ((GTK_MAJOR_VERSION != gtk_major_version) || |
7774 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
7775 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
7776 | printf("Headers vs. library version mismatch!\n"); | |
7777 | exit(1); | |
7778 | } | |
7779 | ||
10f2d63a VZ |
7780 | if (gtk_minor_version == 1) return FALSE; |
7781 | ||
7782 | return !((gtk_major_version > major) || | |
7783 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
7784 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
7785 | } | |
7786 | ||
7787 | EOF | |
6426998c | 7788 | if { (eval echo configure:7789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
7789 | then |
7790 | : | |
7791 | else | |
7792 | echo "configure: failed program was:" >&5 | |
7793 | cat conftest.$ac_ext >&5 | |
7794 | rm -fr conftest* | |
7795 | no_gtk=yes | |
7796 | fi | |
7797 | rm -fr conftest* | |
7798 | fi | |
7799 | ||
7800 | CFLAGS="$ac_save_CFLAGS" | |
7801 | LIBS="$ac_save_LIBS" | |
7802 | else | |
7803 | no_gtk=yes | |
7804 | fi | |
7805 | if test "x$no_gtk" = x ; then | |
7806 | echo "$ac_t""yes" 1>&6 | |
7807 | WXGTK12=1 | |
7808 | else | |
7809 | echo "$ac_t""no" 1>&6 | |
7810 | GTK_CFLAGS="" | |
7811 | GTK_LIBS="" | |
7e99ad86 | 7812 | : |
10f2d63a VZ |
7813 | fi |
7814 | ||
7815 | ||
7816 | ||
6f72b082 OK |
7817 | |
7818 | fi | |
7819 | ||
7820 | ||
7821 | rm -f conf.gtktest | |
7822 | ||
10f2d63a | 7823 | |
6f72b082 | 7824 | if test "$WXGTK12" != 1 -a "$WXGTK20" != 1; then |
7e99ad86 VZ |
7825 | { echo "configure: error: |
7826 | Please check that gtk-config is in path, the directory | |
7827 | where GTK+ libraries are installed (returned by | |
7828 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
7829 | equivalent variable and GTK+ is version 1.2.3 or above. | |
7830 | " 1>&2; exit 1; } | |
7831 | fi | |
7832 | ||
10f2d63a | 7833 | TOOLKIT_INCLUDE="$GTK_CFLAGS" |
2224580a VZ |
7834 | |
7835 | ||
7836 | GUI_TK_LIBRARY="$GTK_LIBS" | |
7837 | ||
10f2d63a | 7838 | |
dad6c0ea | 7839 | AFMINSTALL=afminstall |
9ad43c8b | 7840 | TOOLKIT=GTK |
10f2d63a | 7841 | GUIDIST=GTK_DIST |
7ec2881a | 7842 | |
2224580a | 7843 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
6426998c | 7844 | echo "configure:7845: checking for gdk_im_open in -lgdk" >&5 |
7ec2881a RR |
7845 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
7846 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7847 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7848 | else | |
7849 | ac_save_LIBS="$LIBS" | |
7850 | LIBS="-lgdk $LIBS" | |
7851 | cat > conftest.$ac_ext <<EOF | |
6426998c | 7852 | #line 7853 "configure" |
7ec2881a RR |
7853 | #include "confdefs.h" |
7854 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7855 | /* We use char because int might match the return type of a gcc2 | |
7856 | builtin and then its argument prototype would still apply. */ | |
7857 | char gdk_im_open(); | |
7858 | ||
7859 | int main() { | |
7860 | gdk_im_open() | |
7861 | ; return 0; } | |
7862 | EOF | |
6426998c | 7863 | if { (eval echo configure:7864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7ec2881a RR |
7864 | rm -rf conftest* |
7865 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7866 | else | |
7867 | echo "configure: failed program was:" >&5 | |
7868 | cat conftest.$ac_ext >&5 | |
7869 | rm -rf conftest* | |
7870 | eval "ac_cv_lib_$ac_lib_var=no" | |
7871 | fi | |
7872 | rm -f conftest* | |
7873 | LIBS="$ac_save_LIBS" | |
7874 | ||
7875 | fi | |
7876 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7877 | echo "$ac_t""yes" 1>&6 | |
7878 | cat >> confdefs.h <<\EOF | |
7879 | #define HAVE_XIM 1 | |
7880 | EOF | |
7881 | ||
7882 | else | |
7883 | echo "$ac_t""no" 1>&6 | |
7884 | fi | |
7885 | ||
10f2d63a VZ |
7886 | fi |
7887 | ||
7888 | if test "$wxUSE_WINE" = 1; then | |
7889 | echo $ac_n "checking for WINE includes""... $ac_c" 1>&6 | |
6426998c | 7890 | echo "configure:7891: checking for WINE includes" >&5 |
10f2d63a VZ |
7891 | |
7892 | ac_find_includes= | |
7893 | for ac_dir in $SEARCH_INCLUDE; | |
7894 | do | |
7895 | if test -f "$ac_dir/windows.h"; then | |
7896 | ac_find_includes=$ac_dir | |
7897 | break | |
7898 | fi | |
7899 | done | |
7900 | ||
7901 | if test "$ac_find_includes" != "" ; then | |
7902 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
7903 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
7904 | else | |
7905 | echo "$ac_t""no" 1>&6 | |
7906 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
7907 | fi | |
7908 | ||
7909 | XPM_LINK="" | |
7910 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
6426998c | 7911 | echo "configure:7912: checking for Xpm library" >&5 |
10f2d63a VZ |
7912 | |
7913 | ac_find_libraries= | |
7914 | for ac_dir in $SEARCH_LIB; | |
7915 | do | |
7916 | for ac_extension in a so sl; do | |
7917 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
7918 | ac_find_libraries=$ac_dir | |
7919 | break 2 | |
7920 | fi | |
7921 | done | |
7922 | done | |
7923 | ||
7924 | if test "$ac_find_libraries" != "" ; then | |
7925 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
7926 | XPM_LINK="-lXpm" | |
7927 | cat >> confdefs.h <<\EOF | |
7928 | #define wxHAVE_LIB_XPM 1 | |
7929 | EOF | |
7930 | ||
7931 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
7932 | else | |
7933 | echo "$ac_t""no" 1>&6 | |
7934 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
7935 | fi | |
7936 | ||
7937 | MESA_LINK="" | |
7938 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 | |
6426998c | 7939 | echo "configure:7940: checking for Mesa library" >&5 |
10f2d63a VZ |
7940 | |
7941 | ac_find_libraries= | |
7942 | for ac_dir in $SEARCH_LIB; | |
7943 | do | |
7944 | for ac_extension in a so sl; do | |
7945 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
7946 | ac_find_libraries=$ac_dir | |
7947 | break 2 | |
7948 | fi | |
7949 | done | |
7950 | done | |
7951 | ||
7952 | if test "$ac_find_libraries" != "" ; then | |
7953 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
7954 | MESA_LINK="-lMesaGL" | |
7955 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
7956 | else | |
7957 | { echo "configure: error: no" 1>&2; exit 1; } | |
7958 | fi | |
7959 | ||
8916026b | 7960 | GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" |
10f2d63a VZ |
7961 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" |
7962 | WXWINE=1 | |
7963 | TOOLKIT=MSW | |
10f2d63a VZ |
7964 | GUIDIST=MSW_DIST |
7965 | fi | |
7966 | ||
37d403aa JS |
7967 | |
7968 | # If we find X, set shell vars x_includes and x_libraries to the | |
ab9b9eab VZ |
7969 | # paths, otherwise set no_x=yes. |
7970 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
7971 | # --without-x overrides everything else, but does not touch the cache. | |
7972 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
6426998c | 7973 | echo "configure:7974: checking for X" >&5 |
ab9b9eab VZ |
7974 | |
7975 | # Check whether --with-x or --without-x was given. | |
7976 | if test "${with_x+set}" = set; then | |
7977 | withval="$with_x" | |
7978 | : | |
7979 | fi | |
ba337fe7 | 7980 | |
ab9b9eab VZ |
7981 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
7982 | if test "x$with_x" = xno; then | |
7983 | # The user explicitly disabled X. | |
7984 | have_x=disabled | |
7985 | else | |
7986 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
7987 | # Both variables are already set. | |
7988 | have_x=yes | |
7989 | else | |
7990 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then | |
7991 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7992 | else | |
7993 | # One or both of the vars are not set, and there is no cached value. | |
7994 | ac_x_includes=NO ac_x_libraries=NO | |
7995 | rm -fr conftestdir | |
7996 | if mkdir conftestdir; then | |
7997 | cd conftestdir | |
7998 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
7999 | cat > Imakefile <<'EOF' | |
8000 | acfindx: | |
8001 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
8002 | EOF | |
8003 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
8004 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
8005 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
8006 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
10f2d63a | 8007 | for ac_extension in a so sl; do |
ab9b9eab VZ |
8008 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
8009 | test -f $ac_im_libdir/libX11.$ac_extension; then | |
8010 | ac_im_usrlibdir=$ac_im_libdir; break | |
10f2d63a VZ |
8011 | fi |
8012 | done | |
ab9b9eab VZ |
8013 | # Screen out bogus values from the imake configuration. They are |
8014 | # bogus both because they are the default anyway, and because | |
8015 | # using them would break gcc on systems where it needs fixed includes. | |
8016 | case "$ac_im_incroot" in | |
8017 | /usr/include) ;; | |
8018 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; | |
8019 | esac | |
8020 | case "$ac_im_usrlibdir" in | |
8021 | /usr/lib | /lib) ;; | |
8022 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; | |
8023 | esac | |
ba337fe7 | 8024 | fi |
ab9b9eab VZ |
8025 | cd .. |
8026 | rm -fr conftestdir | |
8027 | fi | |
10f2d63a | 8028 | |
ab9b9eab VZ |
8029 | if test "$ac_x_includes" = NO; then |
8030 | # Guess where to find include files, by looking for this one X11 .h file. | |
8031 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
ba337fe7 | 8032 | |
ab9b9eab VZ |
8033 | # First, try using that file with no special directory specified. |
8034 | cat > conftest.$ac_ext <<EOF | |
6426998c | 8035 | #line 8036 "configure" |
ab9b9eab VZ |
8036 | #include "confdefs.h" |
8037 | #include <$x_direct_test_include> | |
8038 | EOF | |
8039 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6426998c | 8040 | { (eval echo configure:8041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
ab9b9eab VZ |
8041 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8042 | if test -z "$ac_err"; then | |
8043 | rm -rf conftest* | |
8044 | # We can compile using X headers with no special include directory. | |
8045 | ac_x_includes= | |
8046 | else | |
8047 | echo "$ac_err" >&5 | |
8048 | echo "configure: failed program was:" >&5 | |
8049 | cat conftest.$ac_ext >&5 | |
8050 | rm -rf conftest* | |
8051 | # Look for the header file in a standard set of common directories. | |
8052 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
8053 | for ac_dir in \ | |
8054 | /usr/X11/include \ | |
8055 | /usr/X11R6/include \ | |
8056 | /usr/X11R5/include \ | |
8057 | /usr/X11R4/include \ | |
8058 | \ | |
8059 | /usr/include/X11 \ | |
8060 | /usr/include/X11R6 \ | |
8061 | /usr/include/X11R5 \ | |
8062 | /usr/include/X11R4 \ | |
8063 | \ | |
8064 | /usr/local/X11/include \ | |
8065 | /usr/local/X11R6/include \ | |
8066 | /usr/local/X11R5/include \ | |
8067 | /usr/local/X11R4/include \ | |
8068 | \ | |
8069 | /usr/local/include/X11 \ | |
8070 | /usr/local/include/X11R6 \ | |
8071 | /usr/local/include/X11R5 \ | |
8072 | /usr/local/include/X11R4 \ | |
8073 | \ | |
8074 | /usr/X386/include \ | |
8075 | /usr/x386/include \ | |
8076 | /usr/XFree86/include/X11 \ | |
8077 | \ | |
8078 | /usr/include \ | |
8079 | /usr/local/include \ | |
8080 | /usr/unsupported/include \ | |
8081 | /usr/athena/include \ | |
8082 | /usr/local/x11r5/include \ | |
8083 | /usr/lpp/Xamples/include \ | |
8084 | \ | |
8085 | /usr/openwin/include \ | |
8086 | /usr/openwin/share/include \ | |
8087 | ; \ | |
10f2d63a | 8088 | do |
ab9b9eab VZ |
8089 | if test -r "$ac_dir/$x_direct_test_include"; then |
8090 | ac_x_includes=$ac_dir | |
10f2d63a VZ |
8091 | break |
8092 | fi | |
8093 | done | |
ab9b9eab VZ |
8094 | fi |
8095 | rm -f conftest* | |
8096 | fi # $ac_x_includes = NO | |
10f2d63a | 8097 | |
ab9b9eab VZ |
8098 | if test "$ac_x_libraries" = NO; then |
8099 | # Check for the libraries. | |
10f2d63a | 8100 | |
ab9b9eab VZ |
8101 | test -z "$x_direct_test_library" && x_direct_test_library=Xt |
8102 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
10f2d63a | 8103 | |
ab9b9eab VZ |
8104 | # See if we find them without any special options. |
8105 | # Don't add to $LIBS permanently. | |
8106 | ac_save_LIBS="$LIBS" | |
8107 | LIBS="-l$x_direct_test_library $LIBS" | |
8108 | cat > conftest.$ac_ext <<EOF | |
6426998c | 8109 | #line 8110 "configure" |
ab9b9eab | 8110 | #include "confdefs.h" |
10f2d63a | 8111 | |
ab9b9eab VZ |
8112 | int main() { |
8113 | ${x_direct_test_function}() | |
8114 | ; return 0; } | |
8115 | EOF | |
6426998c | 8116 | if { (eval echo configure:8117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8117 | rm -rf conftest* |
8118 | LIBS="$ac_save_LIBS" | |
8119 | # We can link X programs with no special library path. | |
8120 | ac_x_libraries= | |
8121 | else | |
8122 | echo "configure: failed program was:" >&5 | |
8123 | cat conftest.$ac_ext >&5 | |
8124 | rm -rf conftest* | |
8125 | LIBS="$ac_save_LIBS" | |
8126 | # First see if replacing the include by lib works. | |
8127 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
8128 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
8129 | /usr/X11/lib \ | |
8130 | /usr/X11R6/lib \ | |
8131 | /usr/X11R5/lib \ | |
8132 | /usr/X11R4/lib \ | |
8133 | \ | |
8134 | /usr/lib/X11 \ | |
8135 | /usr/lib/X11R6 \ | |
8136 | /usr/lib/X11R5 \ | |
8137 | /usr/lib/X11R4 \ | |
8138 | \ | |
8139 | /usr/local/X11/lib \ | |
8140 | /usr/local/X11R6/lib \ | |
8141 | /usr/local/X11R5/lib \ | |
8142 | /usr/local/X11R4/lib \ | |
8143 | \ | |
8144 | /usr/local/lib/X11 \ | |
8145 | /usr/local/lib/X11R6 \ | |
8146 | /usr/local/lib/X11R5 \ | |
8147 | /usr/local/lib/X11R4 \ | |
8148 | \ | |
8149 | /usr/X386/lib \ | |
8150 | /usr/x386/lib \ | |
8151 | /usr/XFree86/lib/X11 \ | |
8152 | \ | |
8153 | /usr/lib \ | |
8154 | /usr/local/lib \ | |
8155 | /usr/unsupported/lib \ | |
8156 | /usr/athena/lib \ | |
8157 | /usr/local/x11r5/lib \ | |
8158 | /usr/lpp/Xamples/lib \ | |
8159 | /lib/usr/lib/X11 \ | |
8160 | \ | |
8161 | /usr/openwin/lib \ | |
8162 | /usr/openwin/share/lib \ | |
8163 | ; \ | |
8164 | do | |
8165 | for ac_extension in a so sl; do | |
8166 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then | |
8167 | ac_x_libraries=$ac_dir | |
8168 | break 2 | |
10f2d63a | 8169 | fi |
10f2d63a | 8170 | done |
ab9b9eab VZ |
8171 | done |
8172 | fi | |
8173 | rm -f conftest* | |
8174 | fi # $ac_x_libraries = NO | |
10f2d63a | 8175 | |
ab9b9eab VZ |
8176 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
8177 | # Didn't find X anywhere. Cache the known absence of X. | |
8178 | ac_cv_have_x="have_x=no" | |
8179 | else | |
8180 | # Record where we found X for the cache. | |
8181 | ac_cv_have_x="have_x=yes \ | |
8182 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
8183 | fi | |
8184 | fi | |
10f2d63a | 8185 | fi |
ab9b9eab VZ |
8186 | eval "$ac_cv_have_x" |
8187 | fi # $with_x != no | |
10f2d63a | 8188 | |
ab9b9eab VZ |
8189 | if test "$have_x" != yes; then |
8190 | echo "$ac_t""$have_x" 1>&6 | |
8191 | no_x=yes | |
8192 | else | |
8193 | # If each of the values was on the command line, it overrides each guess. | |
8194 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
8195 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
8196 | # Update the cache value to reflect the command line values. | |
8197 | ac_cv_have_x="have_x=yes \ | |
8198 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
8199 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 | |
8200 | fi | |
10f2d63a | 8201 | |
ab9b9eab VZ |
8202 | if test "$no_x" = yes; then |
8203 | # Not all programs may use this symbol, but it does not hurt to define it. | |
8204 | cat >> confdefs.h <<\EOF | |
8205 | #define X_DISPLAY_MISSING 1 | |
8206 | EOF | |
10f2d63a | 8207 | |
ab9b9eab VZ |
8208 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
8209 | else | |
8210 | if test -n "$x_includes"; then | |
8211 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
10f2d63a VZ |
8212 | fi |
8213 | ||
ab9b9eab VZ |
8214 | # It would also be nice to do this for all -L options, not just this one. |
8215 | if test -n "$x_libraries"; then | |
8216 | X_LIBS="$X_LIBS -L$x_libraries" | |
8217 | # For Solaris; some versions of Sun CC require a space after -R and | |
8218 | # others require no space. Words are not sufficient . . . . | |
8219 | case "`(uname -sr) 2>/dev/null`" in | |
8220 | "SunOS 5"*) | |
8221 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | |
6426998c | 8222 | echo "configure:8223: checking whether -R must be followed by a space" >&5 |
ab9b9eab VZ |
8223 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
8224 | cat > conftest.$ac_ext <<EOF | |
6426998c | 8225 | #line 8226 "configure" |
ab9b9eab | 8226 | #include "confdefs.h" |
10f2d63a | 8227 | |
ab9b9eab | 8228 | int main() { |
788deba1 | 8229 | |
ab9b9eab VZ |
8230 | ; return 0; } |
8231 | EOF | |
6426998c | 8232 | if { (eval echo configure:8233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8233 | rm -rf conftest* |
8234 | ac_R_nospace=yes | |
8235 | else | |
8236 | echo "configure: failed program was:" >&5 | |
8237 | cat conftest.$ac_ext >&5 | |
8238 | rm -rf conftest* | |
8239 | ac_R_nospace=no | |
8240 | fi | |
8241 | rm -f conftest* | |
8242 | if test $ac_R_nospace = yes; then | |
8243 | echo "$ac_t""no" 1>&6 | |
8244 | X_LIBS="$X_LIBS -R$x_libraries" | |
8245 | else | |
8246 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
8247 | cat > conftest.$ac_ext <<EOF | |
6426998c | 8248 | #line 8249 "configure" |
ab9b9eab | 8249 | #include "confdefs.h" |
788deba1 | 8250 | |
ab9b9eab VZ |
8251 | int main() { |
8252 | ||
8253 | ; return 0; } | |
8254 | EOF | |
6426998c | 8255 | if { (eval echo configure:8256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8256 | rm -rf conftest* |
8257 | ac_R_space=yes | |
8258 | else | |
8259 | echo "configure: failed program was:" >&5 | |
8260 | cat conftest.$ac_ext >&5 | |
8261 | rm -rf conftest* | |
8262 | ac_R_space=no | |
8263 | fi | |
8264 | rm -f conftest* | |
8265 | if test $ac_R_space = yes; then | |
8266 | echo "$ac_t""yes" 1>&6 | |
8267 | X_LIBS="$X_LIBS -R $x_libraries" | |
8268 | else | |
8269 | echo "$ac_t""neither works" 1>&6 | |
8270 | fi | |
8271 | fi | |
8272 | LIBS="$ac_xsave_LIBS" | |
8273 | esac | |
8274 | fi | |
8275 | ||
8276 | # Check for system-dependent libraries X programs must link with. | |
8277 | # Do this before checking for the system-independent R6 libraries | |
8278 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
8279 | ||
8280 | if test "$ISC" = yes; then | |
8281 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
8282 | else | |
8283 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | |
8284 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
8285 | # the Alpha needs dnet_stub (dnet does not exist). | |
8286 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
6426998c | 8287 | echo "configure:8288: checking for dnet_ntoa in -ldnet" >&5 |
ab9b9eab VZ |
8288 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
8289 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8290 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8291 | else | |
8292 | ac_save_LIBS="$LIBS" | |
8293 | LIBS="-ldnet $LIBS" | |
8294 | cat > conftest.$ac_ext <<EOF | |
6426998c | 8295 | #line 8296 "configure" |
ab9b9eab VZ |
8296 | #include "confdefs.h" |
8297 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8298 | /* We use char because int might match the return type of a gcc2 | |
8299 | builtin and then its argument prototype would still apply. */ | |
8300 | char dnet_ntoa(); | |
8301 | ||
8302 | int main() { | |
8303 | dnet_ntoa() | |
8304 | ; return 0; } | |
8305 | EOF | |
6426998c | 8306 | if { (eval echo configure:8307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8307 | rm -rf conftest* |
8308 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8309 | else | |
8310 | echo "configure: failed program was:" >&5 | |
8311 | cat conftest.$ac_ext >&5 | |
8312 | rm -rf conftest* | |
8313 | eval "ac_cv_lib_$ac_lib_var=no" | |
8314 | fi | |
8315 | rm -f conftest* | |
8316 | LIBS="$ac_save_LIBS" | |
8317 | ||
8318 | fi | |
8319 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8320 | echo "$ac_t""yes" 1>&6 | |
8321 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
8322 | else | |
8323 | echo "$ac_t""no" 1>&6 | |
8324 | fi | |
8325 | ||
8326 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
8327 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | |
6426998c | 8328 | echo "configure:8329: checking for dnet_ntoa in -ldnet_stub" >&5 |
ab9b9eab VZ |
8329 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
8330 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8331 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8332 | else | |
8333 | ac_save_LIBS="$LIBS" | |
8334 | LIBS="-ldnet_stub $LIBS" | |
8335 | cat > conftest.$ac_ext <<EOF | |
6426998c | 8336 | #line 8337 "configure" |
ab9b9eab VZ |
8337 | #include "confdefs.h" |
8338 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8339 | /* We use char because int might match the return type of a gcc2 | |
8340 | builtin and then its argument prototype would still apply. */ | |
8341 | char dnet_ntoa(); | |
8342 | ||
8343 | int main() { | |
8344 | dnet_ntoa() | |
8345 | ; return 0; } | |
8346 | EOF | |
6426998c | 8347 | if { (eval echo configure:8348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8348 | rm -rf conftest* |
8349 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8350 | else | |
8351 | echo "configure: failed program was:" >&5 | |
8352 | cat conftest.$ac_ext >&5 | |
8353 | rm -rf conftest* | |
8354 | eval "ac_cv_lib_$ac_lib_var=no" | |
8355 | fi | |
8356 | rm -f conftest* | |
8357 | LIBS="$ac_save_LIBS" | |
8358 | ||
8359 | fi | |
8360 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8361 | echo "$ac_t""yes" 1>&6 | |
8362 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
8363 | else | |
8364 | echo "$ac_t""no" 1>&6 | |
8365 | fi | |
8366 | ||
8367 | fi | |
8368 | ||
8369 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
8370 | # to get the SysV transport functions. | |
8371 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | |
8372 | # needs -lnsl. | |
8373 | # The nsl library prevents programs from opening the X display | |
8374 | # on Irix 5.2, according to dickey@clark.net. | |
8375 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
6426998c | 8376 | echo "configure:8377: checking for gethostbyname" >&5 |
ab9b9eab VZ |
8377 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
8378 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8379 | else | |
8380 | cat > conftest.$ac_ext <<EOF | |
6426998c | 8381 | #line 8382 "configure" |
ab9b9eab VZ |
8382 | #include "confdefs.h" |
8383 | /* System header to define __stub macros and hopefully few prototypes, | |
8384 | which can conflict with char gethostbyname(); below. */ | |
8385 | #include <assert.h> | |
8386 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8387 | /* We use char because int might match the return type of a gcc2 | |
8388 | builtin and then its argument prototype would still apply. */ | |
8389 | char gethostbyname(); | |
8390 | ||
8391 | int main() { | |
8392 | ||
8393 | /* The GNU C library defines this for functions which it implements | |
8394 | to always fail with ENOSYS. Some functions are actually named | |
8395 | something starting with __ and the normal name is an alias. */ | |
8396 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
8397 | choke me | |
8398 | #else | |
e8482f24 | 8399 | gethostbyname(); |
ab9b9eab VZ |
8400 | #endif |
8401 | ||
8402 | ; return 0; } | |
8403 | EOF | |
6426998c | 8404 | if { (eval echo configure:8405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8405 | rm -rf conftest* |
8406 | eval "ac_cv_func_gethostbyname=yes" | |
8407 | else | |
8408 | echo "configure: failed program was:" >&5 | |
8409 | cat conftest.$ac_ext >&5 | |
8410 | rm -rf conftest* | |
8411 | eval "ac_cv_func_gethostbyname=no" | |
8412 | fi | |
8413 | rm -f conftest* | |
8414 | fi | |
8415 | ||
8416 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
8417 | echo "$ac_t""yes" 1>&6 | |
8418 | : | |
8419 | else | |
8420 | echo "$ac_t""no" 1>&6 | |
8421 | fi | |
8422 | ||
8423 | if test $ac_cv_func_gethostbyname = no; then | |
8424 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
6426998c | 8425 | echo "configure:8426: checking for gethostbyname in -lnsl" >&5 |
ab9b9eab VZ |
8426 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
8427 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8428 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8429 | else | |
8430 | ac_save_LIBS="$LIBS" | |
8431 | LIBS="-lnsl $LIBS" | |
8432 | cat > conftest.$ac_ext <<EOF | |
6426998c | 8433 | #line 8434 "configure" |
ab9b9eab VZ |
8434 | #include "confdefs.h" |
8435 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8436 | /* We use char because int might match the return type of a gcc2 | |
8437 | builtin and then its argument prototype would still apply. */ | |
8438 | char gethostbyname(); | |
8439 | ||
8440 | int main() { | |
8441 | gethostbyname() | |
8442 | ; return 0; } | |
8443 | EOF | |
6426998c | 8444 | if { (eval echo configure:8445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8445 | rm -rf conftest* |
8446 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8447 | else | |
8448 | echo "configure: failed program was:" >&5 | |
8449 | cat conftest.$ac_ext >&5 | |
8450 | rm -rf conftest* | |
8451 | eval "ac_cv_lib_$ac_lib_var=no" | |
8452 | fi | |
8453 | rm -f conftest* | |
8454 | LIBS="$ac_save_LIBS" | |
8455 | ||
8456 | fi | |
8457 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8458 | echo "$ac_t""yes" 1>&6 | |
8459 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
8460 | else | |
8461 | echo "$ac_t""no" 1>&6 | |
8462 | fi | |
8463 | ||
8464 | fi | |
8465 | ||
8466 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
8467 | # socket/setsockopt and other routines are undefined under SCO ODT | |
8468 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
8469 | # on later versions), says simon@lia.di.epfl.ch: it contains | |
8470 | # gethostby* variants that don't use the nameserver (or something). | |
8471 | # -lsocket must be given before -lnsl if both are needed. | |
8472 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
8473 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
6426998c | 8474 | echo "configure:8475: checking for connect" >&5 |
ab9b9eab VZ |
8475 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
8476 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8477 | else | |
8478 | cat > conftest.$ac_ext <<EOF | |
6426998c | 8479 | #line 8480 "configure" |
ab9b9eab VZ |
8480 | #include "confdefs.h" |
8481 | /* System header to define __stub macros and hopefully few prototypes, | |
8482 | which can conflict with char connect(); below. */ | |
8483 | #include <assert.h> | |
8484 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8485 | /* We use char because int might match the return type of a gcc2 | |
8486 | builtin and then its argument prototype would still apply. */ | |
8487 | char connect(); | |
8488 | ||
8489 | int main() { | |
8490 | ||
8491 | /* The GNU C library defines this for functions which it implements | |
8492 | to always fail with ENOSYS. Some functions are actually named | |
8493 | something starting with __ and the normal name is an alias. */ | |
8494 | #if defined (__stub_connect) || defined (__stub___connect) | |
8495 | choke me | |
8496 | #else | |
e8482f24 | 8497 | connect(); |
ab9b9eab VZ |
8498 | #endif |
8499 | ||
8500 | ; return 0; } | |
8501 | EOF | |
6426998c | 8502 | if { (eval echo configure:8503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8503 | rm -rf conftest* |
8504 | eval "ac_cv_func_connect=yes" | |
8505 | else | |
8506 | echo "configure: failed program was:" >&5 | |
8507 | cat conftest.$ac_ext >&5 | |
8508 | rm -rf conftest* | |
8509 | eval "ac_cv_func_connect=no" | |
8510 | fi | |
8511 | rm -f conftest* | |
8512 | fi | |
8513 | ||
8514 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
8515 | echo "$ac_t""yes" 1>&6 | |
8516 | : | |
8517 | else | |
8518 | echo "$ac_t""no" 1>&6 | |
8519 | fi | |
8520 | ||
8521 | if test $ac_cv_func_connect = no; then | |
8522 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 | |
6426998c | 8523 | echo "configure:8524: checking for connect in -lsocket" >&5 |
ab9b9eab VZ |
8524 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
8525 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8526 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8527 | else | |
8528 | ac_save_LIBS="$LIBS" | |
8529 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
8530 | cat > conftest.$ac_ext <<EOF | |
6426998c | 8531 | #line 8532 "configure" |
ab9b9eab VZ |
8532 | #include "confdefs.h" |
8533 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8534 | /* We use char because int might match the return type of a gcc2 | |
8535 | builtin and then its argument prototype would still apply. */ | |
8536 | char connect(); | |
8537 | ||
8538 | int main() { | |
8539 | connect() | |
8540 | ; return 0; } | |
8541 | EOF | |
6426998c | 8542 | if { (eval echo configure:8543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8543 | rm -rf conftest* |
8544 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8545 | else | |
8546 | echo "configure: failed program was:" >&5 | |
8547 | cat conftest.$ac_ext >&5 | |
8548 | rm -rf conftest* | |
8549 | eval "ac_cv_lib_$ac_lib_var=no" | |
8550 | fi | |
8551 | rm -f conftest* | |
8552 | LIBS="$ac_save_LIBS" | |
8553 | ||
8554 | fi | |
8555 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8556 | echo "$ac_t""yes" 1>&6 | |
8557 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
8558 | else | |
8559 | echo "$ac_t""no" 1>&6 | |
8560 | fi | |
8561 | ||
8562 | fi | |
8563 | ||
8564 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. | |
8565 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
6426998c | 8566 | echo "configure:8567: checking for remove" >&5 |
ab9b9eab VZ |
8567 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
8568 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8569 | else | |
8570 | cat > conftest.$ac_ext <<EOF | |
6426998c | 8571 | #line 8572 "configure" |
ab9b9eab VZ |
8572 | #include "confdefs.h" |
8573 | /* System header to define __stub macros and hopefully few prototypes, | |
8574 | which can conflict with char remove(); below. */ | |
8575 | #include <assert.h> | |
8576 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8577 | /* We use char because int might match the return type of a gcc2 | |
8578 | builtin and then its argument prototype would still apply. */ | |
8579 | char remove(); | |
8580 | ||
8581 | int main() { | |
8582 | ||
8583 | /* The GNU C library defines this for functions which it implements | |
8584 | to always fail with ENOSYS. Some functions are actually named | |
8585 | something starting with __ and the normal name is an alias. */ | |
8586 | #if defined (__stub_remove) || defined (__stub___remove) | |
8587 | choke me | |
8588 | #else | |
e8482f24 | 8589 | remove(); |
ab9b9eab VZ |
8590 | #endif |
8591 | ||
8592 | ; return 0; } | |
8593 | EOF | |
6426998c | 8594 | if { (eval echo configure:8595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8595 | rm -rf conftest* |
8596 | eval "ac_cv_func_remove=yes" | |
8597 | else | |
8598 | echo "configure: failed program was:" >&5 | |
8599 | cat conftest.$ac_ext >&5 | |
8600 | rm -rf conftest* | |
8601 | eval "ac_cv_func_remove=no" | |
8602 | fi | |
8603 | rm -f conftest* | |
8604 | fi | |
8605 | ||
8606 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
8607 | echo "$ac_t""yes" 1>&6 | |
8608 | : | |
8609 | else | |
8610 | echo "$ac_t""no" 1>&6 | |
8611 | fi | |
8612 | ||
8613 | if test $ac_cv_func_remove = no; then | |
8614 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | |
6426998c | 8615 | echo "configure:8616: checking for remove in -lposix" >&5 |
ab9b9eab VZ |
8616 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
8617 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8618 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8619 | else | |
8620 | ac_save_LIBS="$LIBS" | |
8621 | LIBS="-lposix $LIBS" | |
8622 | cat > conftest.$ac_ext <<EOF | |
6426998c | 8623 | #line 8624 "configure" |
ab9b9eab VZ |
8624 | #include "confdefs.h" |
8625 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8626 | /* We use char because int might match the return type of a gcc2 | |
8627 | builtin and then its argument prototype would still apply. */ | |
8628 | char remove(); | |
8629 | ||
8630 | int main() { | |
8631 | remove() | |
8632 | ; return 0; } | |
8633 | EOF | |
6426998c | 8634 | if { (eval echo configure:8635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8635 | rm -rf conftest* |
8636 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8637 | else | |
8638 | echo "configure: failed program was:" >&5 | |
8639 | cat conftest.$ac_ext >&5 | |
8640 | rm -rf conftest* | |
8641 | eval "ac_cv_lib_$ac_lib_var=no" | |
8642 | fi | |
8643 | rm -f conftest* | |
8644 | LIBS="$ac_save_LIBS" | |
8645 | ||
8646 | fi | |
8647 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8648 | echo "$ac_t""yes" 1>&6 | |
8649 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
8650 | else | |
8651 | echo "$ac_t""no" 1>&6 | |
8652 | fi | |
8653 | ||
8654 | fi | |
8655 | ||
8656 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
8657 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 | |
6426998c | 8658 | echo "configure:8659: checking for shmat" >&5 |
ab9b9eab VZ |
8659 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
8660 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8661 | else | |
8662 | cat > conftest.$ac_ext <<EOF | |
6426998c | 8663 | #line 8664 "configure" |
ab9b9eab VZ |
8664 | #include "confdefs.h" |
8665 | /* System header to define __stub macros and hopefully few prototypes, | |
8666 | which can conflict with char shmat(); below. */ | |
8667 | #include <assert.h> | |
8668 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8669 | /* We use char because int might match the return type of a gcc2 | |
8670 | builtin and then its argument prototype would still apply. */ | |
8671 | char shmat(); | |
8672 | ||
8673 | int main() { | |
8674 | ||
8675 | /* The GNU C library defines this for functions which it implements | |
8676 | to always fail with ENOSYS. Some functions are actually named | |
8677 | something starting with __ and the normal name is an alias. */ | |
8678 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
8679 | choke me | |
8680 | #else | |
e8482f24 | 8681 | shmat(); |
ab9b9eab VZ |
8682 | #endif |
8683 | ||
8684 | ; return 0; } | |
8685 | EOF | |
6426998c | 8686 | if { (eval echo configure:8687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8687 | rm -rf conftest* |
8688 | eval "ac_cv_func_shmat=yes" | |
8689 | else | |
8690 | echo "configure: failed program was:" >&5 | |
8691 | cat conftest.$ac_ext >&5 | |
8692 | rm -rf conftest* | |
8693 | eval "ac_cv_func_shmat=no" | |
8694 | fi | |
8695 | rm -f conftest* | |
8696 | fi | |
8697 | ||
8698 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
8699 | echo "$ac_t""yes" 1>&6 | |
8700 | : | |
8701 | else | |
8702 | echo "$ac_t""no" 1>&6 | |
8703 | fi | |
8704 | ||
8705 | if test $ac_cv_func_shmat = no; then | |
8706 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | |
6426998c | 8707 | echo "configure:8708: checking for shmat in -lipc" >&5 |
ab9b9eab VZ |
8708 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
8709 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8710 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8711 | else | |
8712 | ac_save_LIBS="$LIBS" | |
8713 | LIBS="-lipc $LIBS" | |
8714 | cat > conftest.$ac_ext <<EOF | |
6426998c | 8715 | #line 8716 "configure" |
ab9b9eab VZ |
8716 | #include "confdefs.h" |
8717 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8718 | /* We use char because int might match the return type of a gcc2 | |
8719 | builtin and then its argument prototype would still apply. */ | |
8720 | char shmat(); | |
8721 | ||
8722 | int main() { | |
8723 | shmat() | |
8724 | ; return 0; } | |
8725 | EOF | |
6426998c | 8726 | if { (eval echo configure:8727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8727 | rm -rf conftest* |
8728 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8729 | else | |
8730 | echo "configure: failed program was:" >&5 | |
8731 | cat conftest.$ac_ext >&5 | |
8732 | rm -rf conftest* | |
8733 | eval "ac_cv_lib_$ac_lib_var=no" | |
8734 | fi | |
8735 | rm -f conftest* | |
8736 | LIBS="$ac_save_LIBS" | |
8737 | ||
8738 | fi | |
8739 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8740 | echo "$ac_t""yes" 1>&6 | |
8741 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
8742 | else | |
8743 | echo "$ac_t""no" 1>&6 | |
8744 | fi | |
8745 | ||
8746 | fi | |
8747 | fi | |
8748 | ||
8749 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
8750 | ac_save_LDFLAGS="$LDFLAGS" | |
8751 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
8752 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
8753 | # check for ICE first), but we must link in the order -lSM -lICE or | |
8754 | # we get undefined symbols. So assume we have SM if we have ICE. | |
8755 | # These have to be linked with before -lX11, unlike the other | |
8756 | # libraries we check for below, so use a different variable. | |
8757 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | |
8758 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
6426998c | 8759 | echo "configure:8760: checking for IceConnectionNumber in -lICE" >&5 |
ab9b9eab VZ |
8760 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
8761 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8762 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8763 | else | |
8764 | ac_save_LIBS="$LIBS" | |
8765 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
8766 | cat > conftest.$ac_ext <<EOF | |
6426998c | 8767 | #line 8768 "configure" |
ab9b9eab VZ |
8768 | #include "confdefs.h" |
8769 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8770 | /* We use char because int might match the return type of a gcc2 | |
8771 | builtin and then its argument prototype would still apply. */ | |
8772 | char IceConnectionNumber(); | |
8773 | ||
8774 | int main() { | |
8775 | IceConnectionNumber() | |
8776 | ; return 0; } | |
8777 | EOF | |
6426998c | 8778 | if { (eval echo configure:8779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8779 | rm -rf conftest* |
8780 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8781 | else | |
8782 | echo "configure: failed program was:" >&5 | |
8783 | cat conftest.$ac_ext >&5 | |
8784 | rm -rf conftest* | |
8785 | eval "ac_cv_lib_$ac_lib_var=no" | |
8786 | fi | |
8787 | rm -f conftest* | |
8788 | LIBS="$ac_save_LIBS" | |
8789 | ||
8790 | fi | |
8791 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8792 | echo "$ac_t""yes" 1>&6 | |
8793 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
8794 | else | |
8795 | echo "$ac_t""no" 1>&6 | |
8796 | fi | |
8797 | ||
8798 | LDFLAGS="$ac_save_LDFLAGS" | |
8799 | ||
8800 | fi | |
8801 | ||
37d403aa JS |
8802 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
8803 | LDFLAGS="$LDFLAGS $X_LIBS" | |
ab9b9eab | 8804 | |
37d403aa | 8805 | if test "$wxUSE_MOTIF" = 1; then |
ab9b9eab | 8806 | if test "$no_x" = "yes"; then |
37d403aa | 8807 | { echo "configure: error: X11 not found" 1>&2; exit 1; } |
ab9b9eab VZ |
8808 | fi |
8809 | ||
8810 | GUI_TK_LIBRARY="$X_LIBS" | |
8811 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
8812 | ||
dad6c0ea VZ |
8813 | AFMINSTALL=afminstall |
8814 | ||
ab9b9eab | 8815 | |
cd6d6d5b VZ |
8816 | COMPILED_X_PROGRAM=0 |
8817 | ||
ab9b9eab | 8818 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 |
6426998c | 8819 | echo "configure:8820: checking for Motif/Lesstif headers" >&5 |
ab9b9eab VZ |
8820 | |
8821 | ac_find_includes= | |
8822 | for ac_dir in $SEARCH_INCLUDE; | |
8823 | do | |
8824 | if test -f "$ac_dir/Xm/Xm.h"; then | |
8825 | ac_find_includes=$ac_dir | |
8826 | break | |
8827 | fi | |
8828 | done | |
8829 | ||
8830 | if test "$ac_find_includes" != "" ; then | |
8831 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
8832 | else | |
cd6d6d5b | 8833 | cat > conftest.$ac_ext <<EOF |
6426998c | 8834 | #line 8835 "configure" |
cd6d6d5b VZ |
8835 | #include "confdefs.h" |
8836 | ||
8837 | #include <Xm/Xm.h> | |
8838 | ||
8839 | int main() { | |
8840 | ||
8841 | int version; | |
8842 | ||
8843 | version = xmUseVersion; | |
8844 | ||
8845 | ; return 0; } | |
8846 | EOF | |
6426998c | 8847 | if { (eval echo configure:8848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
cd6d6d5b VZ |
8848 | rm -rf conftest* |
8849 | ||
8850 | echo "$ac_t""found in default search path" 1>&6 | |
8851 | COMPILED_X_PROGRAM=1 | |
8852 | ||
8853 | else | |
8854 | echo "configure: failed program was:" >&5 | |
8855 | cat conftest.$ac_ext >&5 | |
8856 | rm -rf conftest* | |
8857 | ||
8858 | echo "$ac_t""no" 1>&6 | |
8859 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
8860 | ||
8861 | ||
8862 | fi | |
8863 | rm -f conftest* | |
ab9b9eab VZ |
8864 | fi |
8865 | ||
cd6d6d5b VZ |
8866 | if test "$COMPILED_X_PROGRAM" = 0; then |
8867 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
6426998c | 8868 | echo "configure:8869: checking for Motif/Lesstif library" >&5 |
cd6d6d5b | 8869 | |
ab9b9eab VZ |
8870 | ac_find_libraries= |
8871 | for ac_dir in $SEARCH_LIB; | |
8872 | do | |
8873 | for ac_extension in a so sl; do | |
8874 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
8875 | ac_find_libraries=$ac_dir | |
8876 | break 2 | |
8877 | fi | |
8878 | done | |
8879 | done | |
8880 | ||
cd6d6d5b VZ |
8881 | if test "$ac_find_libraries" != "" ; then |
8882 | ||
ab9b9eab VZ |
8883 | ac_path_to_include=$ac_find_includes |
8884 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
8885 | result=$? | |
8886 | if test $result = 0; then | |
8887 | ac_path_to_include="" | |
8888 | else | |
8889 | ac_path_to_include="-I$ac_find_includes" | |
8890 | fi | |
8891 | ||
cd6d6d5b | 8892 | |
ab9b9eab VZ |
8893 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
8894 | result=$? | |
8895 | if test $result = 0; then | |
8896 | ac_path_to_link="" | |
8897 | else | |
8898 | ac_path_to_link="-L$ac_find_libraries" | |
8899 | fi | |
8900 | ||
8901 | ||
cd6d6d5b VZ |
8902 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" |
8903 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include" | |
8904 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
8905 | else | |
8906 | cat > conftest.$ac_ext <<EOF | |
6426998c | 8907 | #line 8908 "configure" |
cd6d6d5b | 8908 | #include "confdefs.h" |
ab9b9eab | 8909 | |
cd6d6d5b VZ |
8910 | #include <Xm/Xm.h> |
8911 | ||
8912 | int main() { | |
ab9b9eab | 8913 | |
cd6d6d5b | 8914 | int version; |
ab9b9eab | 8915 | |
cd6d6d5b VZ |
8916 | version = xmUseVersion; |
8917 | ||
8918 | ; return 0; } | |
8919 | EOF | |
6426998c | 8920 | if { (eval echo configure:8921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
cd6d6d5b VZ |
8921 | rm -rf conftest* |
8922 | ||
8923 | echo "$ac_t""found in default search path" 1>&6 | |
8924 | COMPILED_X_PROGRAM=1 | |
8925 | ||
8926 | else | |
8927 | echo "configure: failed program was:" >&5 | |
8928 | cat conftest.$ac_ext >&5 | |
8929 | rm -rf conftest* | |
8930 | ||
8931 | echo "$ac_t""no" 1>&6 | |
8932 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
8933 | ||
8934 | ||
8935 | fi | |
8936 | rm -f conftest* | |
8937 | fi | |
ab9b9eab VZ |
8938 | fi |
8939 | ||
cd6d6d5b | 8940 | |
ab9b9eab VZ |
8941 | XPM_LINK="" |
8942 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
6426998c | 8943 | echo "configure:8944: checking for Xpm library" >&5 |
ab9b9eab VZ |
8944 | |
8945 | ac_find_libraries= | |
8946 | for ac_dir in $SEARCH_LIB; | |
8947 | do | |
8948 | for ac_extension in a so sl; do | |
8949 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
8950 | ac_find_libraries=$ac_dir | |
8951 | break 2 | |
8952 | fi | |
8953 | done | |
8954 | done | |
8955 | ||
8956 | if test "$ac_find_libraries" != "" ; then | |
8957 | ||
8958 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
8959 | result=$? | |
8960 | if test $result = 0; then | |
8961 | ac_path_to_link="" | |
8962 | else | |
8963 | ac_path_to_link="-L$ac_find_libraries" | |
8964 | fi | |
8965 | ||
8966 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" | |
8967 | XPM_LINK="-lXpm " | |
8968 | cat >> confdefs.h <<\EOF | |
8969 | #define wxHAVE_LIB_XPM 1 | |
8970 | EOF | |
8971 | ||
8972 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
8973 | else | |
cd6d6d5b | 8974 | cat > conftest.$ac_ext <<EOF |
6426998c | 8975 | #line 8976 "configure" |
cd6d6d5b VZ |
8976 | #include "confdefs.h" |
8977 | ||
8978 | #include <X11/xpm.h> | |
8979 | ||
8980 | int main() { | |
8981 | ||
8982 | int version; | |
8983 | ||
8984 | version = XpmLibraryVersion(); | |
8985 | ||
8986 | ; return 0; } | |
8987 | EOF | |
6426998c | 8988 | if { (eval echo configure:8989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
cd6d6d5b VZ |
8989 | rm -rf conftest* |
8990 | ||
f6bcfd97 BP |
8991 | XPM_LINK="-lXpm " |
8992 | cat >> confdefs.h <<\EOF | |
3ace2e6d SN |
8993 | #define wxHAVE_LIB_XPM 1 |
8994 | EOF | |
8995 | ||
8996 | echo "$ac_t""found in default search path" 1>&6 | |
cd6d6d5b VZ |
8997 | COMPILED_X_PROGRAM=0 |
8998 | ||
8999 | else | |
9000 | echo "configure: failed program was:" >&5 | |
9001 | cat conftest.$ac_ext >&5 | |
9002 | rm -rf conftest* | |
9003 | ||
9004 | echo "$ac_t""no" 1>&6 | |
9005 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
9006 | ||
9007 | ||
9008 | fi | |
9009 | rm -f conftest* | |
ab9b9eab VZ |
9010 | fi |
9011 | ||
8916026b | 9012 | GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11" |
ab9b9eab VZ |
9013 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" |
9014 | TOOLKIT=MOTIF | |
10f2d63a VZ |
9015 | GUIDIST=MOTIF_DIST |
9016 | fi | |
9017 | ||
b4085ce6 GD |
9018 | if test "$wxUSE_MAC" = 1; then |
9019 | TOOLKIT=MAC | |
c521c494 | 9020 | GUIDIST=MACX_DIST |
b4085ce6 GD |
9021 | fi |
9022 | ||
e07802fc VZ |
9023 | if test "$wxUSE_PM" = 1; then |
9024 | TOOLKIT=PM | |
e07802fc VZ |
9025 | GUIDIST=GTK_DIST |
9026 | fi | |
9027 | ||
9028 | if test "$TOOLKIT" != "PM" ; then | |
ec14dd32 | 9029 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` |
e07802fc VZ |
9030 | else |
9031 | TOOLKIT_DIR="os2" | |
9032 | fi | |
10f2d63a | 9033 | |
f6bcfd97 BP |
9034 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then |
9035 | TOOLKIT_NAME="${TOOLKIT_DIR}d" | |
9036 | else | |
9037 | TOOLKIT_NAME="${TOOLKIT_DIR}" | |
9038 | fi | |
9039 | ||
2224580a | 9040 | TOOLKIT_DEF="-D__WX${TOOLKIT}__" |
10f2d63a | 9041 | |
f6bcfd97 | 9042 | WX_LIBRARY="wx_${TOOLKIT_NAME}" |
10f2d63a | 9043 | |
bdad4e7e | 9044 | ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(OGLOBJS)" |
3fcdd07b | 9045 | |
9ad43c8b RL |
9046 | if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then |
9047 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
3fcdd07b VZ |
9048 | fi |
9049 | ||
d9d8273d | 9050 | if test "$wxUSE_LIBJPEG" = "yes" ; then |
2224580a | 9051 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" |
d9d8273d RR |
9052 | fi |
9053 | if test "$wxUSE_LIBTIFF" = "yes" ; then | |
9054 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
9055 | fi | |
9056 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
9057 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
9058 | fi | |
9059 | if test "$wxUSE_ZLIB" = "yes" ; then | |
9060 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
9061 | fi | |
3fed1840 RR |
9062 | if test "$wxUSE_FREETYPE" = "yes" ; then |
9063 | ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)" | |
9064 | fi | |
bdad4e7e | 9065 | ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS) \$(OGLDEPS)" |
2224580a VZ |
9066 | |
9067 | PORT_FILES="src/\$(TOOLKITDIR)/files.lst" | |
9068 | RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst" | |
9069 | RPM_SPEC="wx\$(TOOLKIT).spec" | |
9070 | ||
9071 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
9072 | DISTDIR="wx\$(TOOLKIT)" | |
10f2d63a | 9073 | else |
dad6c0ea VZ |
9074 | USE_GUI=0 |
9075 | ||
f6bcfd97 BP |
9076 | TOOLKIT_DIR="base" |
9077 | ||
9078 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
9079 | TOOLKIT_NAME="${TOOLKIT_DIR}d" | |
9080 | else | |
9081 | TOOLKIT_NAME="${TOOLKIT_DIR}" | |
9082 | fi | |
9083 | ||
07eb77a6 RL |
9084 | TOOLKIT_DEF="-D__WXBASE__" |
9085 | ||
b4085ce6 GD |
9086 | ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)" |
9087 | ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)" | |
10f2d63a | 9088 | |
a20b6d3a VZ |
9089 | if test "$wxUSE_ZLIB" = "yes" ; then |
9090 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
9091 | fi | |
9092 | ||
f6bcfd97 | 9093 | WX_LIBRARY="wx_${TOOLKIT_NAME}" |
2224580a VZ |
9094 | |
9095 | PORT_FILES="src/files.lst" | |
9096 | RPM_FILES="src/rpmfiles.lst" | |
9097 | RPM_SPEC="wxBase.spec" | |
9098 | ||
9099 | GUIDIST="BASE_DIST" | |
9100 | DISTDIR="wxBase" | |
10f2d63a VZ |
9101 | fi |
9102 | ||
9103 | WX_LIBRARY_NAME="lib${WX_LIBRARY}.la" | |
bdad4e7e | 9104 | WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la" |
10f2d63a VZ |
9105 | |
9106 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
bdad4e7e | 9107 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a" |
10f2d63a VZ |
9108 | |
9109 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
bdad4e7e | 9110 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" |
10f2d63a VZ |
9111 | |
9112 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}" | |
9113 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so" | |
9114 | WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so" | |
bdad4e7e RR |
9115 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}" |
9116 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so" | |
9117 | WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so" | |
10f2d63a VZ |
9118 | |
9119 | SHARED_LD= | |
9120 | PIC_FLAG= | |
9121 | WX_ALL= | |
9122 | WX_ALL_INSTALLED= | |
1d62a8b4 | 9123 | BURNT_LIBRARY_NAME= |
f6bcfd97 | 9124 | WX_TARGET_LIBRARY_SONAME= |
10f2d63a | 9125 | |
b12915c1 | 9126 | |
10f2d63a VZ |
9127 | if test "$wxUSE_SHARED" = "yes"; then |
9128 | case "${host}" in | |
9129 | *-hp-hpux* ) | |
9130 | if test "$GCC" = yes ; then | |
69ffe1d2 | 9131 | SHARED_LD="${CC} -shared -fPIC -o" |
10f2d63a VZ |
9132 | PIC_FLAG="-fPIC" |
9133 | else | |
f6bcfd97 BP |
9134 | LDFLAGS="-L/usr/lib" |
9135 | ||
10f2d63a VZ |
9136 | SHARED_LD="${CXX} -b -o" |
9137 | PIC_FLAG="+Z" | |
9138 | fi | |
f6bcfd97 BP |
9139 | WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl" |
9140 | WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl" | |
c661ecca | 9141 | if test "$wxUSE_OPENGL" = "yes"; then |
f6bcfd97 | 9142 | WX_ALL_INSTALLED="preinstall_gl" |
c661ecca RR |
9143 | WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}" |
9144 | else | |
9145 | WX_ALL="${WX_LIBRARY_NAME_SHARED}" | |
9146 | fi | |
10f2d63a | 9147 | ;; |
b12915c1 VZ |
9148 | |
9149 | *-*-linux* ) | |
10f2d63a VZ |
9150 | SHARED_LD="${CC} -shared -o" |
9151 | PIC_FLAG="-fPIC" | |
00cf1208 | 9152 | if test "$wxUSE_BURNT_NAME" = "yes" ; then |
05cdfc6f | 9153 | BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}" |
bdad4e7e | 9154 | BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" |
f6bcfd97 | 9155 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" |
00cf1208 | 9156 | fi |
c661ecca RR |
9157 | if test "$wxUSE_OPENGL" = "yes"; then |
9158 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
9159 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
9160 | else | |
9161 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
9162 | WX_ALL="CREATE_LINKS" | |
422107f9 | 9163 | fi |
00cf1208 | 9164 | ;; |
10f2d63a VZ |
9165 | *-*-irix5* | *-*-irix6* ) |
9166 | if test "$GCC" = yes ; then | |
9167 | SHARED_LD="${CC} -shared -o" | |
9168 | PIC_FLAG="-fPIC" | |
9169 | else | |
9170 | SHARED_LD="${CXX} -shared -o" | |
9171 | fi | |
c661ecca RR |
9172 | if test "$wxUSE_OPENGL" = "yes"; then |
9173 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
9174 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
9175 | else | |
9176 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
9177 | WX_ALL="CREATE_LINKS" | |
422107f9 | 9178 | fi |
10f2d63a VZ |
9179 | ;; |
9180 | *-*-solaris2* ) | |
9181 | if test "$GCC" = yes ; then | |
9182 | SHARED_LD="${CC} -shared -o" | |
9183 | PIC_FLAG="-fPIC" | |
f6bcfd97 BP |
9184 | |
9185 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
10f2d63a VZ |
9186 | else |
9187 | SHARED_LD="${CXX} -G -o" | |
9188 | PIC_FLAG="-KPIC" | |
9189 | fi | |
c661ecca RR |
9190 | if test "$wxUSE_OPENGL" = "yes"; then |
9191 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
9192 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
9193 | else | |
9194 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
9195 | WX_ALL="CREATE_LINKS" | |
9196 | fi | |
10f2d63a VZ |
9197 | ;; |
9198 | *-*-sunos4* ) | |
9199 | SHARED_LD="${CC} -shared -o" | |
9200 | PIC_FLAG="-fPIC" | |
9201 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
9202 | WX_ALL="CREATE_LINKS" | |
9203 | ;; | |
b4085ce6 | 9204 | *-*-freebsd* | *-*-netbsd* ) |
10f2d63a VZ |
9205 | SHARED_LD="${CC} -shared -o" |
9206 | PIC_FLAG="-fPIC" | |
37d403aa JS |
9207 | if test "$wxUSE_OPENGL" = "yes"; then |
9208 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
9209 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
9210 | else | |
9211 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
9212 | WX_ALL="CREATE_LINKS" | |
9213 | fi | |
10f2d63a | 9214 | ;; |
b4085ce6 | 9215 | *-*-darwin* ) |
ea5999b9 GD |
9216 | SHARED_LD="${CXX} -dynamiclib -o" |
9217 | PIC_FLAG="-dynamic -fPIC" | |
b4085ce6 GD |
9218 | if test "$wxUSE_OPENGL" = "yes"; then |
9219 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
9220 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
9221 | else | |
9222 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
9223 | WX_ALL="CREATE_LINKS" | |
9224 | fi | |
f3c067d2 GD |
9225 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.dylib" |
9226 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.dylib" | |
9227 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.${WX_CURRENT}.dylib" | |
9228 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib" | |
9229 | WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib" | |
9230 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.${WX_CURRENT}.dylib" | |
9231 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib" | |
9232 | WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib" | |
b4085ce6 | 9233 | ;; |
10f2d63a VZ |
9234 | *-*-osf* ) |
9235 | SHARED_LD="${CXX} -shared -o" | |
9236 | PIC_FLAG="-fPIC" | |
9237 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
9238 | WX_ALL="CREATE_LINKS" | |
9239 | ;; | |
9240 | *-*-dgux5* ) | |
9241 | SHARED_LD="${CXX} -shared -o" | |
9242 | PIC_FLAG="-fPIC" | |
9243 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
9244 | WX_ALL="CREATE_LINKS" | |
9245 | ;; | |
9246 | *-*-sysv5* ) | |
9247 | SHARED_LD="${CC} -shared -o" | |
9248 | PIC_FLAG="-fPIC" | |
9249 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
9250 | WX_ALL="CREATE_LINKS" | |
9251 | ;; | |
9252 | *-*-aix* ) | |
9253 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
9254 | WX_ALL=${WX_LIBRARY_NAME_SHARED} | |
9255 | ;; | |
9256 | *-*-cygwin32* ) | |
9257 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
bdad4e7e | 9258 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
9259 | if test "$wxUSE_OPENGL" = "yes"; then |
9260 | WX_ALL_INSTALLED="preinstall_gl" | |
9261 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
9262 | else | |
9263 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
9264 | fi | |
10f2d63a | 9265 | ;; |
b12915c1 | 9266 | *-*-mingw32* ) |
10f2d63a | 9267 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
bdad4e7e | 9268 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
9269 | if test "$wxUSE_OPENGL" = "yes"; then |
9270 | WX_ALL_INSTALLED="preinstall_gl" | |
9271 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
9272 | else | |
9273 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
9274 | fi | |
10f2d63a VZ |
9275 | ;; |
9276 | *-pc-os2_emx ) | |
e07802fc VZ |
9277 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
9278 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10f2d63a | 9279 | ;; |
b12915c1 | 9280 | *-*-beos* ) |
e2b8b066 | 9281 | SHARED_LD="${LD} -shared -o" |
b12915c1 VZ |
9282 | PIC_FLAG="-fPIC" |
9283 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
9284 | WX_ALL="CREATE_LINKS" | |
9285 | ;; | |
10f2d63a VZ |
9286 | *) |
9287 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } | |
9288 | esac | |
9289 | ||
9290 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
9291 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
bdad4e7e | 9292 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" |
10f2d63a | 9293 | fi |
3711412e | 9294 | WX_TARGET_LIBRARY_TYPE="so" |
10f2d63a VZ |
9295 | else |
9296 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
bdad4e7e | 9297 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
9298 | |
9299 | if test "$wxUSE_OPENGL" = "yes"; then | |
9300 | WX_ALL_INSTALLED="preinstall_gl" | |
9301 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
9302 | else | |
9303 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
9304 | fi | |
9305 | ||
9306 | if test "$wxUSE_GUI" = "no"; then | |
9307 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
9308 | fi | |
9309 | ||
3711412e | 9310 | WX_TARGET_LIBRARY_TYPE="a" |
10f2d63a VZ |
9311 | fi |
9312 | ||
9313 | ||
9314 | for ac_hdr in strings.h | |
9315 | do | |
9316 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9317 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
6426998c | 9318 | echo "configure:9319: checking for $ac_hdr" >&5 |
10f2d63a VZ |
9319 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9320 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9321 | else | |
9322 | cat > conftest.$ac_ext <<EOF | |
6426998c | 9323 | #line 9324 "configure" |
10f2d63a VZ |
9324 | #include "confdefs.h" |
9325 | #include <$ac_hdr> | |
9326 | EOF | |
9327 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6426998c | 9328 | { (eval echo configure:9329: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
9329 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9330 | if test -z "$ac_err"; then | |
9331 | rm -rf conftest* | |
9332 | eval "ac_cv_header_$ac_safe=yes" | |
9333 | else | |
9334 | echo "$ac_err" >&5 | |
9335 | echo "configure: failed program was:" >&5 | |
9336 | cat conftest.$ac_ext >&5 | |
9337 | rm -rf conftest* | |
9338 | eval "ac_cv_header_$ac_safe=no" | |
9339 | fi | |
9340 | rm -f conftest* | |
9341 | fi | |
9342 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9343 | echo "$ac_t""yes" 1>&6 | |
9344 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9345 | cat >> confdefs.h <<EOF | |
9346 | #define $ac_tr_hdr 1 | |
9347 | EOF | |
9348 | ||
9349 | else | |
9350 | echo "$ac_t""no" 1>&6 | |
9351 | fi | |
9352 | done | |
9353 | ||
9354 | for ac_hdr in unistd.h | |
9355 | do | |
9356 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9357 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
6426998c | 9358 | echo "configure:9359: checking for $ac_hdr" >&5 |
10f2d63a VZ |
9359 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9360 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9361 | else | |
9362 | cat > conftest.$ac_ext <<EOF | |
6426998c | 9363 | #line 9364 "configure" |
10f2d63a VZ |
9364 | #include "confdefs.h" |
9365 | #include <$ac_hdr> | |
9366 | EOF | |
9367 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6426998c | 9368 | { (eval echo configure:9369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
9369 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9370 | if test -z "$ac_err"; then | |
9371 | rm -rf conftest* | |
9372 | eval "ac_cv_header_$ac_safe=yes" | |
9373 | else | |
9374 | echo "$ac_err" >&5 | |
9375 | echo "configure: failed program was:" >&5 | |
9376 | cat conftest.$ac_ext >&5 | |
9377 | rm -rf conftest* | |
9378 | eval "ac_cv_header_$ac_safe=no" | |
9379 | fi | |
9380 | rm -f conftest* | |
9381 | fi | |
9382 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9383 | echo "$ac_t""yes" 1>&6 | |
9384 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9385 | cat >> confdefs.h <<EOF | |
9386 | #define $ac_tr_hdr 1 | |
9387 | EOF | |
9388 | ||
9389 | else | |
9390 | echo "$ac_t""no" 1>&6 | |
9391 | fi | |
9392 | done | |
9393 | ||
0fb0dd83 | 9394 | for ac_hdr in fcntl.h |
10f2d63a VZ |
9395 | do |
9396 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9397 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
6426998c | 9398 | echo "configure:9399: checking for $ac_hdr" >&5 |
10f2d63a VZ |
9399 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9400 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9401 | else | |
9402 | cat > conftest.$ac_ext <<EOF | |
6426998c | 9403 | #line 9404 "configure" |
10f2d63a VZ |
9404 | #include "confdefs.h" |
9405 | #include <$ac_hdr> | |
9406 | EOF | |
9407 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6426998c | 9408 | { (eval echo configure:9409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
9409 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9410 | if test -z "$ac_err"; then | |
9411 | rm -rf conftest* | |
9412 | eval "ac_cv_header_$ac_safe=yes" | |
9413 | else | |
9414 | echo "$ac_err" >&5 | |
9415 | echo "configure: failed program was:" >&5 | |
9416 | cat conftest.$ac_ext >&5 | |
9417 | rm -rf conftest* | |
9418 | eval "ac_cv_header_$ac_safe=no" | |
9419 | fi | |
9420 | rm -f conftest* | |
9421 | fi | |
9422 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9423 | echo "$ac_t""yes" 1>&6 | |
9424 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9425 | cat >> confdefs.h <<EOF | |
9426 | #define $ac_tr_hdr 1 | |
9427 | EOF | |
9428 | ||
9429 | else | |
9430 | echo "$ac_t""no" 1>&6 | |
9431 | fi | |
9432 | done | |
9433 | ||
0fb0dd83 | 9434 | for ac_hdr in wchar.h |
10f2d63a VZ |
9435 | do |
9436 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9437 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
6426998c | 9438 | echo "configure:9439: checking for $ac_hdr" >&5 |
10f2d63a VZ |
9439 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9440 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9441 | else | |
9442 | cat > conftest.$ac_ext <<EOF | |
6426998c | 9443 | #line 9444 "configure" |
10f2d63a VZ |
9444 | #include "confdefs.h" |
9445 | #include <$ac_hdr> | |
9446 | EOF | |
9447 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6426998c | 9448 | { (eval echo configure:9449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
9449 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9450 | if test -z "$ac_err"; then | |
9451 | rm -rf conftest* | |
9452 | eval "ac_cv_header_$ac_safe=yes" | |
9453 | else | |
9454 | echo "$ac_err" >&5 | |
9455 | echo "configure: failed program was:" >&5 | |
9456 | cat conftest.$ac_ext >&5 | |
9457 | rm -rf conftest* | |
9458 | eval "ac_cv_header_$ac_safe=no" | |
9459 | fi | |
9460 | rm -f conftest* | |
9461 | fi | |
9462 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9463 | echo "$ac_t""yes" 1>&6 | |
9464 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9465 | cat >> confdefs.h <<EOF | |
9466 | #define $ac_tr_hdr 1 | |
9467 | EOF | |
9468 | ||
17f7bb9e VS |
9469 | cat >> confdefs.h <<\EOF |
9470 | #define wxUSE_WCHAR_T 1 | |
9471 | EOF | |
9472 | ||
9473 | ||
10f2d63a VZ |
9474 | else |
9475 | echo "$ac_t""no" 1>&6 | |
9476 | fi | |
9477 | done | |
9478 | ||
17f7bb9e | 9479 | |
0fb0dd83 | 9480 | for ac_hdr in wcstr.h |
10f2d63a VZ |
9481 | do |
9482 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9483 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
17f7bb9e | 9484 | echo "configure:9485: checking for $ac_hdr" >&5 |
10f2d63a VZ |
9485 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9486 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9487 | else | |
9488 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 9489 | #line 9490 "configure" |
10f2d63a VZ |
9490 | #include "confdefs.h" |
9491 | #include <$ac_hdr> | |
9492 | EOF | |
9493 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
17f7bb9e | 9494 | { (eval echo configure:9495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6f72b082 OK |
9495 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9496 | if test -z "$ac_err"; then | |
9497 | rm -rf conftest* | |
9498 | eval "ac_cv_header_$ac_safe=yes" | |
9499 | else | |
9500 | echo "$ac_err" >&5 | |
9501 | echo "configure: failed program was:" >&5 | |
9502 | cat conftest.$ac_ext >&5 | |
9503 | rm -rf conftest* | |
9504 | eval "ac_cv_header_$ac_safe=no" | |
9505 | fi | |
9506 | rm -f conftest* | |
9507 | fi | |
9508 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9509 | echo "$ac_t""yes" 1>&6 | |
9510 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9511 | cat >> confdefs.h <<EOF | |
9512 | #define $ac_tr_hdr 1 | |
9513 | EOF | |
9514 | ||
9515 | else | |
9516 | echo "$ac_t""no" 1>&6 | |
9517 | fi | |
9518 | done | |
9519 | ||
0fb0dd83 | 9520 | for ac_hdr in fnmatch.h |
6f72b082 OK |
9521 | do |
9522 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9523 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
17f7bb9e | 9524 | echo "configure:9525: checking for $ac_hdr" >&5 |
6f72b082 OK |
9525 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9526 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9527 | else | |
9528 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 9529 | #line 9530 "configure" |
6f72b082 OK |
9530 | #include "confdefs.h" |
9531 | #include <$ac_hdr> | |
9532 | EOF | |
9533 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
17f7bb9e | 9534 | { (eval echo configure:9535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6f72b082 OK |
9535 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9536 | if test -z "$ac_err"; then | |
9537 | rm -rf conftest* | |
9538 | eval "ac_cv_header_$ac_safe=yes" | |
9539 | else | |
9540 | echo "$ac_err" >&5 | |
9541 | echo "configure: failed program was:" >&5 | |
9542 | cat conftest.$ac_ext >&5 | |
9543 | rm -rf conftest* | |
9544 | eval "ac_cv_header_$ac_safe=no" | |
9545 | fi | |
9546 | rm -f conftest* | |
9547 | fi | |
9548 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9549 | echo "$ac_t""yes" 1>&6 | |
9550 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9551 | cat >> confdefs.h <<EOF | |
9552 | #define $ac_tr_hdr 1 | |
9553 | EOF | |
9554 | ||
9555 | else | |
9556 | echo "$ac_t""no" 1>&6 | |
9557 | fi | |
9558 | done | |
9559 | ||
0fb0dd83 | 9560 | for ac_hdr in iconv.h |
6f72b082 OK |
9561 | do |
9562 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9563 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
17f7bb9e | 9564 | echo "configure:9565: checking for $ac_hdr" >&5 |
6f72b082 OK |
9565 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9566 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9567 | else | |
9568 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 9569 | #line 9570 "configure" |
6f72b082 OK |
9570 | #include "confdefs.h" |
9571 | #include <$ac_hdr> | |
9572 | EOF | |
9573 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
17f7bb9e | 9574 | { (eval echo configure:9575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
9575 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9576 | if test -z "$ac_err"; then | |
9577 | rm -rf conftest* | |
9578 | eval "ac_cv_header_$ac_safe=yes" | |
9579 | else | |
9580 | echo "$ac_err" >&5 | |
9581 | echo "configure: failed program was:" >&5 | |
9582 | cat conftest.$ac_ext >&5 | |
9583 | rm -rf conftest* | |
9584 | eval "ac_cv_header_$ac_safe=no" | |
9585 | fi | |
9586 | rm -f conftest* | |
9587 | fi | |
9588 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9589 | echo "$ac_t""yes" 1>&6 | |
9590 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9591 | cat >> confdefs.h <<EOF | |
9592 | #define $ac_tr_hdr 1 | |
9593 | EOF | |
9594 | ||
9595 | else | |
9596 | echo "$ac_t""no" 1>&6 | |
9597 | fi | |
9598 | done | |
9599 | ||
0fb0dd83 RR |
9600 | for ac_hdr in langinfo.h |
9601 | do | |
9602 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9603 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
17f7bb9e | 9604 | echo "configure:9605: checking for $ac_hdr" >&5 |
0fb0dd83 RR |
9605 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9606 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9607 | else | |
9608 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 9609 | #line 9610 "configure" |
0fb0dd83 RR |
9610 | #include "confdefs.h" |
9611 | #include <$ac_hdr> | |
9612 | EOF | |
9613 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
17f7bb9e | 9614 | { (eval echo configure:9615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
0fb0dd83 RR |
9615 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9616 | if test -z "$ac_err"; then | |
9617 | rm -rf conftest* | |
9618 | eval "ac_cv_header_$ac_safe=yes" | |
9619 | else | |
9620 | echo "$ac_err" >&5 | |
9621 | echo "configure: failed program was:" >&5 | |
9622 | cat conftest.$ac_ext >&5 | |
9623 | rm -rf conftest* | |
9624 | eval "ac_cv_header_$ac_safe=no" | |
9625 | fi | |
9626 | rm -f conftest* | |
9627 | fi | |
9628 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9629 | echo "$ac_t""yes" 1>&6 | |
9630 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9631 | cat >> confdefs.h <<EOF | |
9632 | #define $ac_tr_hdr 1 | |
9633 | EOF | |
9634 | ||
9635 | else | |
9636 | echo "$ac_t""no" 1>&6 | |
9637 | fi | |
9638 | done | |
9639 | ||
10f2d63a | 9640 | |
73fd4a60 VZ |
9641 | if test "$wxUSE_GUI" = "yes"; then |
9642 | if test "$wxUSE_UNIX" = "yes"; then | |
9643 | for ac_hdr in X11/XKBlib.h | |
10f2d63a VZ |
9644 | do |
9645 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9646 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
17f7bb9e | 9647 | echo "configure:9648: checking for $ac_hdr" >&5 |
10f2d63a VZ |
9648 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9649 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9650 | else | |
9651 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 9652 | #line 9653 "configure" |
10f2d63a VZ |
9653 | #include "confdefs.h" |
9654 | #include <$ac_hdr> | |
9655 | EOF | |
9656 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
17f7bb9e | 9657 | { (eval echo configure:9658: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
9658 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9659 | if test -z "$ac_err"; then | |
9660 | rm -rf conftest* | |
9661 | eval "ac_cv_header_$ac_safe=yes" | |
9662 | else | |
9663 | echo "$ac_err" >&5 | |
9664 | echo "configure: failed program was:" >&5 | |
9665 | cat conftest.$ac_ext >&5 | |
9666 | rm -rf conftest* | |
9667 | eval "ac_cv_header_$ac_safe=no" | |
9668 | fi | |
9669 | rm -f conftest* | |
9670 | fi | |
9671 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9672 | echo "$ac_t""yes" 1>&6 | |
9673 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9674 | cat >> confdefs.h <<EOF | |
9675 | #define $ac_tr_hdr 1 | |
9676 | EOF | |
9677 | ||
9678 | else | |
9679 | echo "$ac_t""no" 1>&6 | |
9680 | fi | |
9681 | done | |
9682 | ||
73fd4a60 | 9683 | fi |
10f2d63a VZ |
9684 | fi |
9685 | ||
9686 | ||
9687 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
17f7bb9e | 9688 | echo "configure:9689: checking for ANSI C header files" >&5 |
10f2d63a VZ |
9689 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
9690 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9691 | else | |
9692 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 9693 | #line 9694 "configure" |
10f2d63a VZ |
9694 | #include "confdefs.h" |
9695 | #include <stdlib.h> | |
9696 | #include <stdarg.h> | |
9697 | #include <string.h> | |
9698 | #include <float.h> | |
9699 | EOF | |
9700 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
17f7bb9e | 9701 | { (eval echo configure:9702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
9702 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9703 | if test -z "$ac_err"; then | |
9704 | rm -rf conftest* | |
9705 | ac_cv_header_stdc=yes | |
9706 | else | |
9707 | echo "$ac_err" >&5 | |
9708 | echo "configure: failed program was:" >&5 | |
9709 | cat conftest.$ac_ext >&5 | |
9710 | rm -rf conftest* | |
9711 | ac_cv_header_stdc=no | |
9712 | fi | |
9713 | rm -f conftest* | |
9714 | ||
9715 | if test $ac_cv_header_stdc = yes; then | |
9716 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
9717 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 9718 | #line 9719 "configure" |
10f2d63a VZ |
9719 | #include "confdefs.h" |
9720 | #include <string.h> | |
9721 | EOF | |
9722 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9723 | egrep "memchr" >/dev/null 2>&1; then | |
9724 | : | |
9725 | else | |
9726 | rm -rf conftest* | |
9727 | ac_cv_header_stdc=no | |
9728 | fi | |
9729 | rm -f conftest* | |
9730 | ||
9731 | fi | |
9732 | ||
9733 | if test $ac_cv_header_stdc = yes; then | |
9734 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
9735 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 9736 | #line 9737 "configure" |
10f2d63a VZ |
9737 | #include "confdefs.h" |
9738 | #include <stdlib.h> | |
9739 | EOF | |
9740 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9741 | egrep "free" >/dev/null 2>&1; then | |
9742 | : | |
9743 | else | |
9744 | rm -rf conftest* | |
9745 | ac_cv_header_stdc=no | |
9746 | fi | |
9747 | rm -f conftest* | |
9748 | ||
9749 | fi | |
9750 | ||
9751 | if test $ac_cv_header_stdc = yes; then | |
9752 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
9753 | if test "$cross_compiling" = yes; then | |
9754 | : | |
9755 | else | |
9756 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 9757 | #line 9758 "configure" |
10f2d63a VZ |
9758 | #include "confdefs.h" |
9759 | #include <ctype.h> | |
9760 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
9761 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
9762 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
9763 | int main () { int i; for (i = 0; i < 256; i++) | |
9764 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
9765 | exit (0); } | |
9766 | ||
9767 | EOF | |
17f7bb9e | 9768 | if { (eval echo configure:9769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
9769 | then |
9770 | : | |
9771 | else | |
9772 | echo "configure: failed program was:" >&5 | |
9773 | cat conftest.$ac_ext >&5 | |
9774 | rm -fr conftest* | |
9775 | ac_cv_header_stdc=no | |
9776 | fi | |
9777 | rm -fr conftest* | |
9778 | fi | |
9779 | ||
9780 | fi | |
9781 | fi | |
9782 | ||
9783 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
9784 | if test $ac_cv_header_stdc = yes; then | |
9785 | cat >> confdefs.h <<\EOF | |
9786 | #define STDC_HEADERS 1 | |
9787 | EOF | |
9788 | ||
9789 | fi | |
9790 | ||
9791 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 | |
17f7bb9e | 9792 | echo "configure:9793: checking for mode_t" >&5 |
10f2d63a VZ |
9793 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
9794 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9795 | else | |
9796 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 9797 | #line 9798 "configure" |
10f2d63a VZ |
9798 | #include "confdefs.h" |
9799 | #include <sys/types.h> | |
9800 | #if STDC_HEADERS | |
9801 | #include <stdlib.h> | |
9802 | #include <stddef.h> | |
9803 | #endif | |
9804 | EOF | |
9805 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9806 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
9807 | rm -rf conftest* | |
9808 | ac_cv_type_mode_t=yes | |
9809 | else | |
9810 | rm -rf conftest* | |
9811 | ac_cv_type_mode_t=no | |
9812 | fi | |
9813 | rm -f conftest* | |
9814 | ||
9815 | fi | |
9816 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
9817 | if test $ac_cv_type_mode_t = no; then | |
9818 | cat >> confdefs.h <<\EOF | |
9819 | #define mode_t int | |
9820 | EOF | |
9821 | ||
9822 | fi | |
9823 | ||
9824 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
17f7bb9e | 9825 | echo "configure:9826: checking for off_t" >&5 |
10f2d63a VZ |
9826 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
9827 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9828 | else | |
9829 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 9830 | #line 9831 "configure" |
10f2d63a VZ |
9831 | #include "confdefs.h" |
9832 | #include <sys/types.h> | |
9833 | #if STDC_HEADERS | |
9834 | #include <stdlib.h> | |
9835 | #include <stddef.h> | |
9836 | #endif | |
9837 | EOF | |
9838 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9839 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
9840 | rm -rf conftest* | |
9841 | ac_cv_type_off_t=yes | |
9842 | else | |
9843 | rm -rf conftest* | |
9844 | ac_cv_type_off_t=no | |
9845 | fi | |
9846 | rm -f conftest* | |
9847 | ||
9848 | fi | |
9849 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
9850 | if test $ac_cv_type_off_t = no; then | |
9851 | cat >> confdefs.h <<\EOF | |
9852 | #define off_t long | |
9853 | EOF | |
9854 | ||
9855 | fi | |
9856 | ||
9857 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 | |
17f7bb9e | 9858 | echo "configure:9859: checking for pid_t" >&5 |
10f2d63a VZ |
9859 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
9860 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9861 | else | |
9862 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 9863 | #line 9864 "configure" |
10f2d63a VZ |
9864 | #include "confdefs.h" |
9865 | #include <sys/types.h> | |
9866 | #if STDC_HEADERS | |
9867 | #include <stdlib.h> | |
9868 | #include <stddef.h> | |
9869 | #endif | |
9870 | EOF | |
9871 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9872 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
9873 | rm -rf conftest* | |
9874 | ac_cv_type_pid_t=yes | |
9875 | else | |
9876 | rm -rf conftest* | |
9877 | ac_cv_type_pid_t=no | |
9878 | fi | |
9879 | rm -f conftest* | |
9880 | ||
9881 | fi | |
9882 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
9883 | if test $ac_cv_type_pid_t = no; then | |
9884 | cat >> confdefs.h <<\EOF | |
9885 | #define pid_t int | |
9886 | EOF | |
9887 | ||
9888 | fi | |
9889 | ||
9890 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
17f7bb9e | 9891 | echo "configure:9892: checking for size_t" >&5 |
10f2d63a VZ |
9892 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
9893 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9894 | else | |
9895 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 9896 | #line 9897 "configure" |
10f2d63a VZ |
9897 | #include "confdefs.h" |
9898 | #include <sys/types.h> | |
9899 | #if STDC_HEADERS | |
9900 | #include <stdlib.h> | |
9901 | #include <stddef.h> | |
9902 | #endif | |
9903 | EOF | |
9904 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9905 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
9906 | rm -rf conftest* | |
9907 | ac_cv_type_size_t=yes | |
9908 | else | |
9909 | rm -rf conftest* | |
9910 | ac_cv_type_size_t=no | |
9911 | fi | |
9912 | rm -f conftest* | |
9913 | ||
9914 | fi | |
9915 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
9916 | if test $ac_cv_type_size_t = no; then | |
9917 | cat >> confdefs.h <<\EOF | |
9918 | #define size_t unsigned | |
9919 | EOF | |
9920 | ||
9921 | fi | |
9922 | ||
9923 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 | |
17f7bb9e | 9924 | echo "configure:9925: checking for uid_t in sys/types.h" >&5 |
10f2d63a VZ |
9925 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
9926 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9927 | else | |
9928 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 9929 | #line 9930 "configure" |
10f2d63a VZ |
9930 | #include "confdefs.h" |
9931 | #include <sys/types.h> | |
9932 | EOF | |
9933 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9934 | egrep "uid_t" >/dev/null 2>&1; then | |
9935 | rm -rf conftest* | |
9936 | ac_cv_type_uid_t=yes | |
9937 | else | |
9938 | rm -rf conftest* | |
9939 | ac_cv_type_uid_t=no | |
9940 | fi | |
9941 | rm -f conftest* | |
9942 | ||
9943 | fi | |
9944 | ||
9945 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 | |
9946 | if test $ac_cv_type_uid_t = no; then | |
9947 | cat >> confdefs.h <<\EOF | |
9948 | #define uid_t int | |
9949 | EOF | |
9950 | ||
9951 | cat >> confdefs.h <<\EOF | |
9952 | #define gid_t int | |
9953 | EOF | |
9954 | ||
9955 | fi | |
9956 | ||
9957 | ||
9958 | ||
b12915c1 | 9959 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
17f7bb9e | 9960 | echo "configure:9961: checking for pw_gecos in struct passwd" >&5 |
b12915c1 VZ |
9961 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
9962 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9963 | else | |
9964 | ||
9965 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 9966 | #line 9967 "configure" |
b12915c1 VZ |
9967 | #include "confdefs.h" |
9968 | #include <pwd.h> | |
9969 | int main() { | |
9970 | ||
9971 | char *p; | |
9972 | struct passwd *pw; | |
9973 | p = pw->pw_gecos; | |
9974 | ||
9975 | ; return 0; } | |
9976 | EOF | |
17f7bb9e | 9977 | if { (eval echo configure:9978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
b12915c1 VZ |
9978 | rm -rf conftest* |
9979 | ||
9980 | wx_cv_struct_pw_gecos=yes | |
b12915c1 VZ |
9981 | |
9982 | else | |
9983 | echo "configure: failed program was:" >&5 | |
9984 | cat conftest.$ac_ext >&5 | |
9985 | rm -rf conftest* | |
9986 | ||
9987 | wx_cv_struct_pw_gecos=no | |
9988 | ||
9989 | ||
9990 | fi | |
9991 | rm -f conftest* | |
9992 | ||
9993 | ||
9994 | fi | |
9995 | ||
9996 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
9997 | ||
bd3277fe VZ |
9998 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
9999 | cat >> confdefs.h <<\EOF | |
10000 | #define HAVE_PW_GECOS 1 | |
10001 | EOF | |
10002 | ||
10003 | fi | |
10004 | ||
10f2d63a VZ |
10005 | |
10006 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
17f7bb9e | 10007 | echo "configure:10008: checking for working const" >&5 |
10f2d63a VZ |
10008 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
10009 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10010 | else | |
10011 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 10012 | #line 10013 "configure" |
10f2d63a VZ |
10013 | #include "confdefs.h" |
10014 | ||
10015 | int main() { | |
10016 | ||
10017 | /* Ultrix mips cc rejects this. */ | |
186837b0 | 10018 | typedef int charset[2]; const charset x; |
10f2d63a VZ |
10019 | /* SunOS 4.1.1 cc rejects this. */ |
10020 | char const *const *ccp; | |
10021 | char **p; | |
10022 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
10023 | struct point {int x, y;}; | |
10024 | static struct point const zero = {0,0}; | |
10025 | /* AIX XL C 1.02.0.0 rejects this. | |
10026 | It does not let you subtract one const X* pointer from another in an arm | |
10027 | of an if-expression whose if-part is not a constant expression */ | |
10028 | const char *g = "string"; | |
10029 | ccp = &g + (g ? g-g : 0); | |
10030 | /* HPUX 7.0 cc rejects these. */ | |
10031 | ++ccp; | |
10032 | p = (char**) ccp; | |
10033 | ccp = (char const *const *) p; | |
10034 | { /* SCO 3.2v4 cc rejects this. */ | |
10035 | char *t; | |
10036 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
10037 | ||
10038 | *t++ = 0; | |
10039 | } | |
10040 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
10041 | int x[] = {25, 17}; | |
10042 | const int *foo = &x[0]; | |
10043 | ++foo; | |
10044 | } | |
10045 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
10046 | typedef const int *iptr; | |
10047 | iptr p = 0; | |
10048 | ++p; | |
10049 | } | |
10050 | { /* AIX XL C 1.02.0.0 rejects this saying | |
10051 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
10052 | struct s { int j; const int *ap[3]; }; | |
10053 | struct s *b; b->j = 5; | |
10054 | } | |
10055 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
10056 | const int foo = 10; | |
10057 | } | |
10058 | ||
10059 | ; return 0; } | |
10060 | EOF | |
17f7bb9e | 10061 | if { (eval echo configure:10062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
10062 | rm -rf conftest* |
10063 | ac_cv_c_const=yes | |
10064 | else | |
10065 | echo "configure: failed program was:" >&5 | |
10066 | cat conftest.$ac_ext >&5 | |
10067 | rm -rf conftest* | |
10068 | ac_cv_c_const=no | |
10069 | fi | |
10070 | rm -f conftest* | |
10071 | fi | |
10072 | ||
10073 | echo "$ac_t""$ac_cv_c_const" 1>&6 | |
10074 | if test $ac_cv_c_const = no; then | |
10075 | cat >> confdefs.h <<\EOF | |
10076 | #define const | |
10077 | EOF | |
10078 | ||
10079 | fi | |
10080 | ||
10081 | echo $ac_n "checking for inline""... $ac_c" 1>&6 | |
17f7bb9e | 10082 | echo "configure:10083: checking for inline" >&5 |
10f2d63a VZ |
10083 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
10084 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10085 | else | |
10086 | ac_cv_c_inline=no | |
10087 | for ac_kw in inline __inline__ __inline; do | |
10088 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 10089 | #line 10090 "configure" |
10f2d63a VZ |
10090 | #include "confdefs.h" |
10091 | ||
10092 | int main() { | |
186837b0 | 10093 | } $ac_kw foo() { |
10f2d63a VZ |
10094 | ; return 0; } |
10095 | EOF | |
17f7bb9e | 10096 | if { (eval echo configure:10097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
10097 | rm -rf conftest* |
10098 | ac_cv_c_inline=$ac_kw; break | |
10099 | else | |
10100 | echo "configure: failed program was:" >&5 | |
10101 | cat conftest.$ac_ext >&5 | |
10102 | fi | |
10103 | rm -f conftest* | |
10104 | done | |
10105 | ||
10106 | fi | |
10107 | ||
10108 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
10109 | case "$ac_cv_c_inline" in | |
10110 | inline | yes) ;; | |
10111 | no) cat >> confdefs.h <<\EOF | |
10112 | #define inline | |
10113 | EOF | |
10114 | ;; | |
10115 | *) cat >> confdefs.h <<EOF | |
10116 | #define inline $ac_cv_c_inline | |
10117 | EOF | |
10118 | ;; | |
10119 | esac | |
10120 | ||
10121 | ||
10122 | echo $ac_n "checking size of char""... $ac_c" 1>&6 | |
17f7bb9e | 10123 | echo "configure:10124: checking size of char" >&5 |
10f2d63a VZ |
10124 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
10125 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10126 | else | |
10127 | if test "$cross_compiling" = yes; then | |
10128 | ac_cv_sizeof_char=1 | |
10129 | else | |
10130 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 10131 | #line 10132 "configure" |
10f2d63a VZ |
10132 | #include "confdefs.h" |
10133 | #include <stdio.h> | |
10134 | main() | |
10135 | { | |
10136 | FILE *f=fopen("conftestval", "w"); | |
10137 | if (!f) exit(1); | |
10138 | fprintf(f, "%d\n", sizeof(char)); | |
10139 | exit(0); | |
10140 | } | |
10141 | EOF | |
17f7bb9e | 10142 | if { (eval echo configure:10143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
10143 | then |
10144 | ac_cv_sizeof_char=`cat conftestval` | |
10145 | else | |
10146 | echo "configure: failed program was:" >&5 | |
10147 | cat conftest.$ac_ext >&5 | |
10148 | rm -fr conftest* | |
10149 | ac_cv_sizeof_char=0 | |
10150 | fi | |
10151 | rm -fr conftest* | |
10152 | fi | |
10153 | ||
10154 | fi | |
10155 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 | |
10156 | cat >> confdefs.h <<EOF | |
10157 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
10158 | EOF | |
10159 | ||
10160 | ||
6f72b082 | 10161 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 |
17f7bb9e | 10162 | echo "configure:10163: checking size of wchar_t" >&5 |
6f72b082 OK |
10163 | if eval "test \"`echo '$''{'ac_cv_sizeof_wchar_t'+set}'`\" = set"; then |
10164 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10165 | else | |
10166 | if test "$cross_compiling" = yes; then | |
10167 | ac_cv_sizeof_wchar_t=4 | |
10168 | else | |
10169 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 10170 | #line 10171 "configure" |
6f72b082 OK |
10171 | #include "confdefs.h" |
10172 | #include <stdio.h> | |
10173 | main() | |
10174 | { | |
10175 | FILE *f=fopen("conftestval", "w"); | |
10176 | if (!f) exit(1); | |
10177 | fprintf(f, "%d\n", sizeof(wchar_t)); | |
10178 | exit(0); | |
10179 | } | |
10180 | EOF | |
17f7bb9e | 10181 | if { (eval echo configure:10182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
6f72b082 OK |
10182 | then |
10183 | ac_cv_sizeof_wchar_t=`cat conftestval` | |
10184 | else | |
10185 | echo "configure: failed program was:" >&5 | |
10186 | cat conftest.$ac_ext >&5 | |
10187 | rm -fr conftest* | |
10188 | ac_cv_sizeof_wchar_t=0 | |
10189 | fi | |
10190 | rm -fr conftest* | |
10191 | fi | |
10192 | ||
10193 | fi | |
10194 | echo "$ac_t""$ac_cv_sizeof_wchar_t" 1>&6 | |
10195 | cat >> confdefs.h <<EOF | |
10196 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t | |
10197 | EOF | |
10198 | ||
10199 | ||
10f2d63a | 10200 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
17f7bb9e | 10201 | echo "configure:10202: checking size of short" >&5 |
10f2d63a VZ |
10202 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
10203 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10204 | else | |
10205 | if test "$cross_compiling" = yes; then | |
10206 | ac_cv_sizeof_short=2 | |
10207 | else | |
10208 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 10209 | #line 10210 "configure" |
10f2d63a VZ |
10210 | #include "confdefs.h" |
10211 | #include <stdio.h> | |
10212 | main() | |
10213 | { | |
10214 | FILE *f=fopen("conftestval", "w"); | |
10215 | if (!f) exit(1); | |
10216 | fprintf(f, "%d\n", sizeof(short)); | |
10217 | exit(0); | |
10218 | } | |
10219 | EOF | |
17f7bb9e | 10220 | if { (eval echo configure:10221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
10221 | then |
10222 | ac_cv_sizeof_short=`cat conftestval` | |
10223 | else | |
10224 | echo "configure: failed program was:" >&5 | |
10225 | cat conftest.$ac_ext >&5 | |
10226 | rm -fr conftest* | |
10227 | ac_cv_sizeof_short=0 | |
10228 | fi | |
10229 | rm -fr conftest* | |
10230 | fi | |
10231 | ||
10232 | fi | |
10233 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 | |
10234 | cat >> confdefs.h <<EOF | |
10235 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
10236 | EOF | |
10237 | ||
10238 | ||
10239 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 | |
17f7bb9e | 10240 | echo "configure:10241: checking size of int *" >&5 |
10f2d63a VZ |
10241 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then |
10242 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10243 | else | |
10244 | if test "$cross_compiling" = yes; then | |
10245 | ac_cv_sizeof_int_p=4 | |
10246 | else | |
10247 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 10248 | #line 10249 "configure" |
10f2d63a VZ |
10249 | #include "confdefs.h" |
10250 | #include <stdio.h> | |
10251 | main() | |
10252 | { | |
10253 | FILE *f=fopen("conftestval", "w"); | |
10254 | if (!f) exit(1); | |
10255 | fprintf(f, "%d\n", sizeof(int *)); | |
10256 | exit(0); | |
10257 | } | |
10258 | EOF | |
17f7bb9e | 10259 | if { (eval echo configure:10260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
10260 | then |
10261 | ac_cv_sizeof_int_p=`cat conftestval` | |
10262 | else | |
10263 | echo "configure: failed program was:" >&5 | |
10264 | cat conftest.$ac_ext >&5 | |
10265 | rm -fr conftest* | |
10266 | ac_cv_sizeof_int_p=0 | |
10267 | fi | |
10268 | rm -fr conftest* | |
10269 | fi | |
10270 | ||
10271 | fi | |
10272 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 | |
10273 | cat >> confdefs.h <<EOF | |
10274 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
10275 | EOF | |
10276 | ||
10277 | ||
10278 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
17f7bb9e | 10279 | echo "configure:10280: checking size of int" >&5 |
10f2d63a VZ |
10280 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
10281 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10282 | else | |
10283 | if test "$cross_compiling" = yes; then | |
10284 | ac_cv_sizeof_int=4 | |
10285 | else | |
10286 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 10287 | #line 10288 "configure" |
10f2d63a VZ |
10288 | #include "confdefs.h" |
10289 | #include <stdio.h> | |
10290 | main() | |
10291 | { | |
10292 | FILE *f=fopen("conftestval", "w"); | |
10293 | if (!f) exit(1); | |
10294 | fprintf(f, "%d\n", sizeof(int)); | |
10295 | exit(0); | |
10296 | } | |
10297 | EOF | |
17f7bb9e | 10298 | if { (eval echo configure:10299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
10299 | then |
10300 | ac_cv_sizeof_int=`cat conftestval` | |
10301 | else | |
10302 | echo "configure: failed program was:" >&5 | |
10303 | cat conftest.$ac_ext >&5 | |
10304 | rm -fr conftest* | |
10305 | ac_cv_sizeof_int=0 | |
10306 | fi | |
10307 | rm -fr conftest* | |
10308 | fi | |
10309 | ||
10310 | fi | |
10311 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
10312 | cat >> confdefs.h <<EOF | |
10313 | #define SIZEOF_INT $ac_cv_sizeof_int | |
10314 | EOF | |
10315 | ||
10316 | ||
10317 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
17f7bb9e | 10318 | echo "configure:10319: checking size of long" >&5 |
10f2d63a VZ |
10319 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
10320 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10321 | else | |
10322 | if test "$cross_compiling" = yes; then | |
10323 | ac_cv_sizeof_long=4 | |
10324 | else | |
10325 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 10326 | #line 10327 "configure" |
10f2d63a VZ |
10327 | #include "confdefs.h" |
10328 | #include <stdio.h> | |
10329 | main() | |
10330 | { | |
10331 | FILE *f=fopen("conftestval", "w"); | |
10332 | if (!f) exit(1); | |
10333 | fprintf(f, "%d\n", sizeof(long)); | |
10334 | exit(0); | |
10335 | } | |
10336 | EOF | |
6426998c | 10337 | if { (eval echo configure:10338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
10338 | then |
10339 | ac_cv_sizeof_long=`cat conftestval` | |
10340 | else | |
10341 | echo "configure: failed program was:" >&5 | |
10342 | cat conftest.$ac_ext >&5 | |
10343 | rm -fr conftest* | |
10344 | ac_cv_sizeof_long=0 | |
10345 | fi | |
10346 | rm -fr conftest* | |
10347 | fi | |
10348 | ||
10349 | fi | |
10350 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
10351 | cat >> confdefs.h <<EOF | |
10352 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
10353 | EOF | |
10354 | ||
10355 | ||
10356 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
6426998c | 10357 | echo "configure:10358: checking size of long long" >&5 |
10f2d63a VZ |
10358 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10359 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10360 | else | |
10361 | if test "$cross_compiling" = yes; then | |
10362 | ac_cv_sizeof_long_long=0 | |
10363 | else | |
10364 | cat > conftest.$ac_ext <<EOF | |
6426998c | 10365 | #line 10366 "configure" |
10f2d63a VZ |
10366 | #include "confdefs.h" |
10367 | #include <stdio.h> | |
10368 | main() | |
10369 | { | |
10370 | FILE *f=fopen("conftestval", "w"); | |
10371 | if (!f) exit(1); | |
10372 | fprintf(f, "%d\n", sizeof(long long)); | |
10373 | exit(0); | |
10374 | } | |
10375 | EOF | |
17f7bb9e | 10376 | if { (eval echo configure:10377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
10377 | then |
10378 | ac_cv_sizeof_long_long=`cat conftestval` | |
10379 | else | |
10380 | echo "configure: failed program was:" >&5 | |
10381 | cat conftest.$ac_ext >&5 | |
10382 | rm -fr conftest* | |
10383 | ac_cv_sizeof_long_long=0 | |
10384 | fi | |
10385 | rm -fr conftest* | |
10386 | fi | |
10387 | ||
10388 | fi | |
10389 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
10390 | cat >> confdefs.h <<EOF | |
10391 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10392 | EOF | |
10393 | ||
10394 | ||
10395 | ||
10396 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 | |
17f7bb9e | 10397 | echo "configure:10398: checking whether byte ordering is bigendian" >&5 |
10f2d63a VZ |
10398 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
10399 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10400 | else | |
10401 | ac_cv_c_bigendian=unknown | |
10402 | # See if sys/param.h defines the BYTE_ORDER macro. | |
10403 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 10404 | #line 10405 "configure" |
10f2d63a VZ |
10405 | #include "confdefs.h" |
10406 | #include <sys/types.h> | |
10407 | #include <sys/param.h> | |
10408 | int main() { | |
10409 | ||
10410 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
10411 | bogus endian macros | |
10412 | #endif | |
10413 | ; return 0; } | |
10414 | EOF | |
17f7bb9e | 10415 | if { (eval echo configure:10416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
10416 | rm -rf conftest* |
10417 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
10418 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 10419 | #line 10420 "configure" |
10f2d63a VZ |
10420 | #include "confdefs.h" |
10421 | #include <sys/types.h> | |
10422 | #include <sys/param.h> | |
10423 | int main() { | |
10424 | ||
10425 | #if BYTE_ORDER != BIG_ENDIAN | |
10426 | not big endian | |
10427 | #endif | |
10428 | ; return 0; } | |
10429 | EOF | |
17f7bb9e | 10430 | if { (eval echo configure:10431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
10431 | rm -rf conftest* |
10432 | ac_cv_c_bigendian=yes | |
10433 | else | |
10434 | echo "configure: failed program was:" >&5 | |
10435 | cat conftest.$ac_ext >&5 | |
10436 | rm -rf conftest* | |
10437 | ac_cv_c_bigendian=no | |
10438 | fi | |
10439 | rm -f conftest* | |
10440 | else | |
10441 | echo "configure: failed program was:" >&5 | |
10442 | cat conftest.$ac_ext >&5 | |
10443 | fi | |
10444 | rm -f conftest* | |
10445 | if test $ac_cv_c_bigendian = unknown; then | |
10446 | if test "$cross_compiling" = yes; then | |
10447 | ac_cv_c_bigendian=unknown | |
10448 | else | |
10449 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 10450 | #line 10451 "configure" |
10f2d63a VZ |
10451 | #include "confdefs.h" |
10452 | main () { | |
10453 | /* Are we little or big endian? From Harbison&Steele. */ | |
10454 | union | |
10455 | { | |
10456 | long l; | |
10457 | char c[sizeof (long)]; | |
10458 | } u; | |
10459 | u.l = 1; | |
10460 | exit (u.c[sizeof (long) - 1] == 1); | |
10461 | } | |
10462 | EOF | |
17f7bb9e | 10463 | if { (eval echo configure:10464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
10464 | then |
10465 | ac_cv_c_bigendian=no | |
10466 | else | |
10467 | echo "configure: failed program was:" >&5 | |
10468 | cat conftest.$ac_ext >&5 | |
10469 | rm -fr conftest* | |
10470 | ac_cv_c_bigendian=yes | |
10471 | fi | |
10472 | rm -fr conftest* | |
10473 | fi | |
10474 | ||
10475 | fi | |
10476 | fi | |
10477 | ||
10478 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
10479 | if test $ac_cv_c_bigendian = unknown; then | |
10480 | 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 | |
10481 | fi | |
10482 | if test $ac_cv_c_bigendian = yes; then | |
10483 | cat >> confdefs.h <<\EOF | |
10484 | #define WORDS_BIGENDIAN 1 | |
10485 | EOF | |
10486 | ||
10487 | fi | |
10488 | ||
10489 | ||
10490 | ||
10491 | if test "$cross_compiling" = "yes"; then | |
10492 | cat >> confdefs.h <<\EOF | |
10493 | #define wxUSE_IOSTREAMH 1 | |
10494 | EOF | |
10495 | ||
10496 | else | |
10497 | ||
10498 | ac_ext=C | |
10499 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10500 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10501 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10502 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10503 | cross_compiling=$ac_cv_prog_cxx_cross | |
10504 | ||
10505 | ||
10506 | for ac_hdr in iostream | |
10507 | do | |
10508 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10509 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
17f7bb9e | 10510 | echo "configure:10511: checking for $ac_hdr" >&5 |
10f2d63a VZ |
10511 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10512 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10513 | else | |
10514 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 10515 | #line 10516 "configure" |
10f2d63a VZ |
10516 | #include "confdefs.h" |
10517 | #include <$ac_hdr> | |
10518 | EOF | |
10519 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
17f7bb9e | 10520 | { (eval echo configure:10521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
10521 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10522 | if test -z "$ac_err"; then | |
10523 | rm -rf conftest* | |
10524 | eval "ac_cv_header_$ac_safe=yes" | |
10525 | else | |
10526 | echo "$ac_err" >&5 | |
10527 | echo "configure: failed program was:" >&5 | |
10528 | cat conftest.$ac_ext >&5 | |
10529 | rm -rf conftest* | |
10530 | eval "ac_cv_header_$ac_safe=no" | |
10531 | fi | |
10532 | rm -f conftest* | |
10533 | fi | |
10534 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10535 | echo "$ac_t""yes" 1>&6 | |
10536 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10537 | cat >> confdefs.h <<EOF | |
10538 | #define $ac_tr_hdr 1 | |
10539 | EOF | |
10540 | ||
10541 | else | |
10542 | echo "$ac_t""no" 1>&6 | |
10543 | fi | |
10544 | done | |
10545 | ||
10546 | ||
10547 | if test "x$HAVE_IOSTREAM" = x ; then | |
10548 | cat >> confdefs.h <<\EOF | |
10549 | #define wxUSE_IOSTREAMH 1 | |
10550 | EOF | |
10551 | ||
10552 | else | |
10553 | : | |
10554 | fi | |
10555 | ||
10556 | ac_ext=c | |
10557 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10558 | ac_cpp='$CPP $CPPFLAGS' | |
10559 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10560 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10561 | cross_compiling=$ac_cv_prog_cc_cross | |
10562 | ||
10563 | fi | |
10564 | ||
10565 | ||
10566 | ||
10567 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 | |
17f7bb9e | 10568 | echo "configure:10569: checking if C++ compiler supports bool" >&5 |
10f2d63a VZ |
10569 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
10570 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10571 | else | |
10572 | ||
10573 | ||
10574 | ac_ext=C | |
10575 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10576 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10577 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10578 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10579 | cross_compiling=$ac_cv_prog_cxx_cross | |
10580 | ||
10581 | ||
10582 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 10583 | #line 10584 "configure" |
10f2d63a VZ |
10584 | #include "confdefs.h" |
10585 | ||
10586 | ||
10587 | int main() { | |
10588 | ||
10589 | bool b = true; | |
10590 | ||
10591 | return 0; | |
10592 | ||
10593 | ; return 0; } | |
10594 | EOF | |
17f7bb9e | 10595 | if { (eval echo configure:10596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
10596 | rm -rf conftest* |
10597 | ||
10598 | cat >> confdefs.h <<\EOF | |
10599 | #define HAVE_BOOL 1 | |
10600 | EOF | |
10601 | ||
10602 | wx_cv_cpp_bool=yes | |
10603 | ||
10604 | else | |
10605 | echo "configure: failed program was:" >&5 | |
10606 | cat conftest.$ac_ext >&5 | |
10607 | rm -rf conftest* | |
10608 | ||
10609 | wx_cv_cpp_bool=no | |
10610 | ||
10611 | ||
10612 | fi | |
10613 | rm -f conftest* | |
10614 | ||
10615 | ac_ext=c | |
10616 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10617 | ac_cpp='$CPP $CPPFLAGS' | |
10618 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10619 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10620 | cross_compiling=$ac_cv_prog_cc_cross | |
10621 | ||
10622 | ||
10623 | fi | |
10624 | ||
10625 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
10626 | ||
10627 | if test "$wx_cv_cpp_bool" = "yes"; then | |
10628 | cat >> confdefs.h <<\EOF | |
10629 | #define HAVE_BOOL 1 | |
10630 | EOF | |
10631 | ||
10632 | fi | |
10633 | ||
10634 | ||
10635 | ||
10f2d63a | 10636 | echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6 |
17f7bb9e | 10637 | echo "configure:10638: checking if you need GNU extensions" >&5 |
10f2d63a VZ |
10638 | if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then |
10639 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10640 | else | |
10641 | ||
10642 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 10643 | #line 10644 "configure" |
10f2d63a VZ |
10644 | #include "confdefs.h" |
10645 | #include <features.h> | |
10646 | int main() { | |
10647 | ||
10648 | ||
10649 | #ifndef __GNU_LIBRARY__ | |
10650 | Compile error wanted | |
10651 | #endif | |
10652 | ||
10653 | ||
10654 | ; return 0; } | |
10655 | EOF | |
17f7bb9e | 10656 | if { (eval echo configure:10657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
10657 | rm -rf conftest* |
10658 | wx_cv_gnu_extensions=yes | |
10659 | else | |
10660 | echo "configure: failed program was:" >&5 | |
10661 | cat conftest.$ac_ext >&5 | |
10662 | rm -rf conftest* | |
10663 | wx_cv_gnu_extensions=no | |
10664 | fi | |
10665 | rm -f conftest* | |
10666 | ||
10667 | fi | |
10668 | ||
10669 | ||
10670 | echo "$ac_t""$wx_cv_gnu_extensions" 1>&6 | |
10671 | if test "$wx_cv_gnu_extensions" = "yes"; then | |
10672 | cat >> confdefs.h <<EOF | |
10673 | #define _GNU_SOURCE 1 | |
10674 | EOF | |
10675 | ||
10676 | fi | |
10677 | ||
10678 | ||
10679 | ||
10680 | echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6 | |
17f7bb9e | 10681 | echo "configure:10682: checking for wcslen in -lc" >&5 |
10f2d63a VZ |
10682 | ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'` |
10683 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10684 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10685 | else | |
10686 | ac_save_LIBS="$LIBS" | |
10687 | LIBS="-lc $LIBS" | |
10688 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 10689 | #line 10690 "configure" |
10f2d63a VZ |
10690 | #include "confdefs.h" |
10691 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10692 | /* We use char because int might match the return type of a gcc2 | |
10693 | builtin and then its argument prototype would still apply. */ | |
10694 | char wcslen(); | |
10695 | ||
10696 | int main() { | |
10697 | wcslen() | |
10698 | ; return 0; } | |
10699 | EOF | |
17f7bb9e | 10700 | if { (eval echo configure:10701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10701 | rm -rf conftest* |
10702 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10703 | else | |
10704 | echo "configure: failed program was:" >&5 | |
10705 | cat conftest.$ac_ext >&5 | |
10706 | rm -rf conftest* | |
10707 | eval "ac_cv_lib_$ac_lib_var=no" | |
10708 | fi | |
10709 | rm -f conftest* | |
10710 | LIBS="$ac_save_LIBS" | |
10711 | ||
10712 | fi | |
10713 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10714 | echo "$ac_t""yes" 1>&6 | |
10715 | ||
10716 | cat >> confdefs.h <<\EOF | |
10717 | #define HAVE_WCSLEN 1 | |
10718 | EOF | |
10719 | ||
10720 | WCHAR_LINK="" | |
10721 | ||
10722 | else | |
10723 | echo "$ac_t""no" 1>&6 | |
10724 | ||
10725 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 | |
17f7bb9e | 10726 | echo "configure:10727: checking for wcslen in -lw" >&5 |
10f2d63a VZ |
10727 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
10728 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10729 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10730 | else | |
10731 | ac_save_LIBS="$LIBS" | |
10732 | LIBS="-lw $LIBS" | |
10733 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 10734 | #line 10735 "configure" |
10f2d63a VZ |
10735 | #include "confdefs.h" |
10736 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10737 | /* We use char because int might match the return type of a gcc2 | |
10738 | builtin and then its argument prototype would still apply. */ | |
10739 | char wcslen(); | |
10740 | ||
10741 | int main() { | |
10742 | wcslen() | |
10743 | ; return 0; } | |
10744 | EOF | |
17f7bb9e | 10745 | if { (eval echo configure:10746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10746 | rm -rf conftest* |
10747 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10748 | else | |
10749 | echo "configure: failed program was:" >&5 | |
10750 | cat conftest.$ac_ext >&5 | |
10751 | rm -rf conftest* | |
10752 | eval "ac_cv_lib_$ac_lib_var=no" | |
10753 | fi | |
10754 | rm -f conftest* | |
10755 | LIBS="$ac_save_LIBS" | |
10756 | ||
10757 | fi | |
10758 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10759 | echo "$ac_t""yes" 1>&6 | |
10760 | ||
10761 | cat >> confdefs.h <<\EOF | |
10762 | #define HAVE_WCSLEN 1 | |
10763 | EOF | |
10764 | ||
10765 | WCHAR_LINK="-lw" | |
10766 | ||
10767 | else | |
10768 | echo "$ac_t""no" 1>&6 | |
10769 | fi | |
10770 | ||
10771 | ||
10772 | fi | |
10773 | ||
10774 | ||
10775 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 | |
17f7bb9e | 10776 | echo "configure:10777: checking for vprintf" >&5 |
10f2d63a VZ |
10777 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
10778 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10779 | else | |
10780 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 10781 | #line 10782 "configure" |
10f2d63a VZ |
10782 | #include "confdefs.h" |
10783 | /* System header to define __stub macros and hopefully few prototypes, | |
10784 | which can conflict with char vprintf(); below. */ | |
10785 | #include <assert.h> | |
10786 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10787 | /* We use char because int might match the return type of a gcc2 | |
10788 | builtin and then its argument prototype would still apply. */ | |
10789 | char vprintf(); | |
10790 | ||
10791 | int main() { | |
10792 | ||
10793 | /* The GNU C library defines this for functions which it implements | |
10794 | to always fail with ENOSYS. Some functions are actually named | |
10795 | something starting with __ and the normal name is an alias. */ | |
10796 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
10797 | choke me | |
10798 | #else | |
e8482f24 | 10799 | vprintf(); |
10f2d63a VZ |
10800 | #endif |
10801 | ||
10802 | ; return 0; } | |
10803 | EOF | |
17f7bb9e | 10804 | if { (eval echo configure:10805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10805 | rm -rf conftest* |
10806 | eval "ac_cv_func_vprintf=yes" | |
10807 | else | |
10808 | echo "configure: failed program was:" >&5 | |
10809 | cat conftest.$ac_ext >&5 | |
10810 | rm -rf conftest* | |
10811 | eval "ac_cv_func_vprintf=no" | |
10812 | fi | |
10813 | rm -f conftest* | |
10814 | fi | |
10815 | ||
10816 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
10817 | echo "$ac_t""yes" 1>&6 | |
10818 | cat >> confdefs.h <<\EOF | |
10819 | #define HAVE_VPRINTF 1 | |
10820 | EOF | |
10821 | ||
10822 | else | |
10823 | echo "$ac_t""no" 1>&6 | |
10824 | fi | |
10825 | ||
10826 | if test "$ac_cv_func_vprintf" != yes; then | |
10827 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
17f7bb9e | 10828 | echo "configure:10829: checking for _doprnt" >&5 |
10f2d63a VZ |
10829 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
10830 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10831 | else | |
10832 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 10833 | #line 10834 "configure" |
10f2d63a VZ |
10834 | #include "confdefs.h" |
10835 | /* System header to define __stub macros and hopefully few prototypes, | |
10836 | which can conflict with char _doprnt(); below. */ | |
10837 | #include <assert.h> | |
10838 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10839 | /* We use char because int might match the return type of a gcc2 | |
10840 | builtin and then its argument prototype would still apply. */ | |
10841 | char _doprnt(); | |
10842 | ||
10843 | int main() { | |
10844 | ||
10845 | /* The GNU C library defines this for functions which it implements | |
10846 | to always fail with ENOSYS. Some functions are actually named | |
10847 | something starting with __ and the normal name is an alias. */ | |
10848 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
10849 | choke me | |
10850 | #else | |
e8482f24 | 10851 | _doprnt(); |
10f2d63a VZ |
10852 | #endif |
10853 | ||
10854 | ; return 0; } | |
10855 | EOF | |
17f7bb9e | 10856 | if { (eval echo configure:10857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10857 | rm -rf conftest* |
10858 | eval "ac_cv_func__doprnt=yes" | |
10859 | else | |
10860 | echo "configure: failed program was:" >&5 | |
10861 | cat conftest.$ac_ext >&5 | |
10862 | rm -rf conftest* | |
10863 | eval "ac_cv_func__doprnt=no" | |
10864 | fi | |
10865 | rm -f conftest* | |
10866 | fi | |
10867 | ||
10868 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
10869 | echo "$ac_t""yes" 1>&6 | |
10870 | cat >> confdefs.h <<\EOF | |
10871 | #define HAVE_DOPRNT 1 | |
10872 | EOF | |
10873 | ||
10874 | else | |
10875 | echo "$ac_t""no" 1>&6 | |
10876 | fi | |
10877 | ||
10878 | fi | |
10879 | ||
10880 | ||
10f2d63a | 10881 | |
f6bcfd97 BP |
10882 | ac_ext=C |
10883 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10884 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10885 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10886 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10887 | cross_compiling=$ac_cv_prog_cxx_cross | |
10888 | ||
10889 | ||
10890 | ||
10891 | ||
c521c494 | 10892 | |
9d8deca0 | 10893 | |
f6bcfd97 | 10894 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 |
17f7bb9e | 10895 | echo "configure:10896: checking for vsnprintf" >&5 |
f6bcfd97 BP |
10896 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then |
10897 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10898 | else | |
10899 | ||
10900 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 10901 | #line 10902 "configure" |
f6bcfd97 BP |
10902 | #include "confdefs.h" |
10903 | ||
10904 | #include <stdio.h> | |
10905 | #include <stdarg.h> | |
10906 | ||
10f2d63a VZ |
10907 | int main() { |
10908 | ||
f6bcfd97 | 10909 | int wx_test_vsnprintf(const char *, ...); |
10f2d63a | 10910 | |
f6bcfd97 BP |
10911 | wx_test_vsnprintf("%s"); |
10912 | return 0; | |
10913 | } | |
10914 | ||
10915 | int wx_test_vsnprintf(const char *fmt, ...) | |
10916 | { | |
10917 | char *s; | |
10918 | ||
10919 | va_list argp; | |
10920 | va_start(argp, fmt); | |
10921 | vsnprintf(s, 42, fmt, argp); | |
10922 | va_end(argp); | |
10923 | ||
10f2d63a VZ |
10924 | ; return 0; } |
10925 | EOF | |
17f7bb9e | 10926 | if { (eval echo configure:10927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a | 10927 | rm -rf conftest* |
f6bcfd97 | 10928 | |
f6bcfd97 BP |
10929 | wx_cv_func_vsnprintf=yes |
10930 | ||
10f2d63a VZ |
10931 | else |
10932 | echo "configure: failed program was:" >&5 | |
10933 | cat conftest.$ac_ext >&5 | |
10934 | rm -rf conftest* | |
f6bcfd97 | 10935 | |
c521c494 | 10936 | cat > conftest.$ac_ext <<EOF |
17f7bb9e | 10937 | #line 10938 "configure" |
c521c494 RL |
10938 | #include "confdefs.h" |
10939 | ||
10940 | #include <stdio.h> | |
10941 | #include <stdarg.h> | |
10942 | ||
10943 | int main() { | |
10944 | ||
10945 | int wx_test_vsnprintf(const char *, ...); | |
10946 | ||
10947 | wx_test_vsnprintf("%s"); | |
10948 | return 0; | |
10949 | } | |
10950 | ||
10951 | int wx_test_vsnprintf(const char *fmt, ...) | |
10952 | { | |
10953 | char *s; | |
10954 | ||
10955 | va_list argp; | |
10956 | va_start(argp, fmt); | |
10957 | _vsnprintf(s, 42, fmt, argp); | |
10958 | va_end(argp); | |
10959 | ||
10960 | ; return 0; } | |
10961 | EOF | |
17f7bb9e | 10962 | if { (eval echo configure:10963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c521c494 RL |
10963 | rm -rf conftest* |
10964 | ||
c521c494 RL |
10965 | wx_cv_func_vsnprintf=yes |
10966 | ||
10967 | else | |
10968 | echo "configure: failed program was:" >&5 | |
10969 | cat conftest.$ac_ext >&5 | |
10970 | rm -rf conftest* | |
10971 | ||
c521c494 RL |
10972 | wx_cv_func_vsnprintf=no |
10973 | ||
10974 | fi | |
10975 | rm -f conftest* | |
f6bcfd97 | 10976 | |
10f2d63a VZ |
10977 | fi |
10978 | rm -f conftest* | |
10f2d63a | 10979 | |
10f2d63a | 10980 | fi |
10f2d63a | 10981 | |
f6bcfd97 | 10982 | echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6 |
10f2d63a | 10983 | |
9d8deca0 VZ |
10984 | if test "$wx_cv_func_vsnprintf" = yes; then |
10985 | cat >> confdefs.h <<\EOF | |
10986 | #define HAVE_VSNPRINTF 1 | |
10987 | EOF | |
10988 | ||
10989 | else | |
10990 | echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2 | |
10991 | fi | |
10992 | ||
10f2d63a | 10993 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 |
17f7bb9e | 10994 | echo "configure:10995: checking for vsscanf" >&5 |
10f2d63a VZ |
10995 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
10996 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10997 | else | |
10998 | ||
10f2d63a | 10999 | cat > conftest.$ac_ext <<EOF |
17f7bb9e | 11000 | #line 11001 "configure" |
10f2d63a | 11001 | #include "confdefs.h" |
10f2d63a | 11002 | |
f6bcfd97 BP |
11003 | #include <stdio.h> |
11004 | #include <stdarg.h> | |
11005 | ||
11006 | int main() { | |
10f2d63a | 11007 | |
f6bcfd97 | 11008 | int wx_test_vsscanf(const char *, ...); |
10f2d63a | 11009 | |
f6bcfd97 BP |
11010 | wx_test_vsscanf("%d"); |
11011 | return 0; | |
10f2d63a VZ |
11012 | } |
11013 | ||
f6bcfd97 | 11014 | int wx_test_vsscanf(const char *fmt, ...) |
10f2d63a | 11015 | { |
f6bcfd97 BP |
11016 | va_list argp; |
11017 | va_start(argp, fmt); | |
11018 | vsscanf("42", fmt, argp); | |
11019 | va_end(argp); | |
11020 | ||
11021 | ; return 0; } | |
10f2d63a | 11022 | EOF |
17f7bb9e | 11023 | if { (eval echo configure:11024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
f6bcfd97 | 11024 | rm -rf conftest* |
10f2d63a | 11025 | |
f6bcfd97 BP |
11026 | wx_cv_func_vsscanf=yes |
11027 | ||
10f2d63a VZ |
11028 | else |
11029 | echo "configure: failed program was:" >&5 | |
11030 | cat conftest.$ac_ext >&5 | |
f6bcfd97 BP |
11031 | rm -rf conftest* |
11032 | ||
11033 | wx_cv_func_vsscanf=no | |
11034 | ||
10f2d63a | 11035 | fi |
f6bcfd97 | 11036 | rm -f conftest* |
10f2d63a VZ |
11037 | |
11038 | fi | |
11039 | ||
11040 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 | |
11041 | ||
9d8deca0 VZ |
11042 | if test "$wx_cv_func_vsscanf" = yes; then |
11043 | cat >> confdefs.h <<\EOF | |
11044 | #define HAVE_VSSCANF 1 | |
11045 | EOF | |
11046 | ||
11047 | fi | |
11048 | ||
10f2d63a VZ |
11049 | ac_ext=c |
11050 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11051 | ac_cpp='$CPP $CPPFLAGS' | |
11052 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11053 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11054 | cross_compiling=$ac_cv_prog_cc_cross | |
11055 | ||
11056 | ||
b089607b | 11057 | if test "$TOOLKIT" != "MSW"; then |
10f2d63a | 11058 | |
eb4efbdc VZ |
11059 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
11060 | for ac_func in sigaction | |
11061 | do | |
11062 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
17f7bb9e | 11063 | echo "configure:11064: checking for $ac_func" >&5 |
eb4efbdc VZ |
11064 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11065 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11066 | else | |
11067 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 11068 | #line 11069 "configure" |
eb4efbdc VZ |
11069 | #include "confdefs.h" |
11070 | /* System header to define __stub macros and hopefully few prototypes, | |
11071 | which can conflict with char $ac_func(); below. */ | |
11072 | #include <assert.h> | |
11073 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11074 | /* We use char because int might match the return type of a gcc2 | |
11075 | builtin and then its argument prototype would still apply. */ | |
11076 | char $ac_func(); | |
11077 | ||
11078 | int main() { | |
11079 | ||
11080 | /* The GNU C library defines this for functions which it implements | |
11081 | to always fail with ENOSYS. Some functions are actually named | |
11082 | something starting with __ and the normal name is an alias. */ | |
11083 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11084 | choke me | |
11085 | #else | |
11086 | $ac_func(); | |
11087 | #endif | |
11088 | ||
11089 | ; return 0; } | |
11090 | EOF | |
17f7bb9e | 11091 | if { (eval echo configure:11092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
eb4efbdc VZ |
11092 | rm -rf conftest* |
11093 | eval "ac_cv_func_$ac_func=yes" | |
11094 | else | |
11095 | echo "configure: failed program was:" >&5 | |
11096 | cat conftest.$ac_ext >&5 | |
11097 | rm -rf conftest* | |
11098 | eval "ac_cv_func_$ac_func=no" | |
11099 | fi | |
11100 | rm -f conftest* | |
11101 | fi | |
11102 | ||
11103 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11104 | echo "$ac_t""yes" 1>&6 | |
11105 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11106 | cat >> confdefs.h <<EOF | |
11107 | #define $ac_tr_func 1 | |
11108 | EOF | |
11109 | ||
11110 | else | |
11111 | echo "$ac_t""no" 1>&6 | |
11112 | fi | |
11113 | done | |
11114 | ||
11115 | ||
11116 | if test "$ac_cv_func_sigaction" = "no"; then | |
11117 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 | |
11118 | wxUSE_ON_FATAL_EXCEPTION=no | |
11119 | fi | |
f6bcfd97 BP |
11120 | |
11121 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
11122 | ||
11123 | ac_ext=C | |
11124 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11125 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11126 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11127 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11128 | cross_compiling=$ac_cv_prog_cxx_cross | |
11129 | ||
11130 | ||
11131 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 | |
17f7bb9e | 11132 | echo "configure:11133: checking for sa_handler type" >&5 |
f6bcfd97 BP |
11133 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
11134 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11135 | else | |
11136 | ||
11137 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 11138 | #line 11139 "configure" |
f6bcfd97 BP |
11139 | #include "confdefs.h" |
11140 | #include <signal.h> | |
11141 | int main() { | |
11142 | ||
11143 | extern void testSigHandler(int); | |
11144 | ||
11145 | struct sigaction sa; | |
11146 | sa.sa_handler = testSigHandler; | |
11147 | ||
11148 | ; return 0; } | |
11149 | EOF | |
17f7bb9e | 11150 | if { (eval echo configure:11151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
f6bcfd97 BP |
11151 | rm -rf conftest* |
11152 | ||
11153 | wx_cv_type_sa_handler=int | |
11154 | ||
11155 | else | |
11156 | echo "configure: failed program was:" >&5 | |
11157 | cat conftest.$ac_ext >&5 | |
11158 | rm -rf conftest* | |
11159 | ||
11160 | wx_cv_type_sa_handler=void | |
11161 | ||
11162 | fi | |
11163 | rm -f conftest* | |
11164 | ||
11165 | fi | |
11166 | ||
11167 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
11168 | ||
11169 | ac_ext=c | |
11170 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11171 | ac_cpp='$CPP $CPPFLAGS' | |
11172 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11173 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11174 | cross_compiling=$ac_cv_prog_cc_cross | |
11175 | ||
11176 | ||
11177 | cat >> confdefs.h <<EOF | |
11178 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
11179 | EOF | |
11180 | ||
11181 | fi | |
eb4efbdc VZ |
11182 | fi |
11183 | ||
10f2d63a VZ |
11184 | for ac_func in vfork |
11185 | do | |
11186 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
17f7bb9e | 11187 | echo "configure:11188: checking for $ac_func" >&5 |
10f2d63a VZ |
11188 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11189 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11190 | else | |
11191 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 11192 | #line 11193 "configure" |
10f2d63a VZ |
11193 | #include "confdefs.h" |
11194 | /* System header to define __stub macros and hopefully few prototypes, | |
11195 | which can conflict with char $ac_func(); below. */ | |
11196 | #include <assert.h> | |
11197 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11198 | /* We use char because int might match the return type of a gcc2 | |
11199 | builtin and then its argument prototype would still apply. */ | |
11200 | char $ac_func(); | |
11201 | ||
11202 | int main() { | |
11203 | ||
11204 | /* The GNU C library defines this for functions which it implements | |
11205 | to always fail with ENOSYS. Some functions are actually named | |
11206 | something starting with __ and the normal name is an alias. */ | |
11207 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11208 | choke me | |
11209 | #else | |
e8482f24 | 11210 | $ac_func(); |
10f2d63a VZ |
11211 | #endif |
11212 | ||
11213 | ; return 0; } | |
11214 | EOF | |
17f7bb9e | 11215 | if { (eval echo configure:11216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
270a909e VZ |
11216 | rm -rf conftest* |
11217 | eval "ac_cv_func_$ac_func=yes" | |
11218 | else | |
11219 | echo "configure: failed program was:" >&5 | |
11220 | cat conftest.$ac_ext >&5 | |
11221 | rm -rf conftest* | |
11222 | eval "ac_cv_func_$ac_func=no" | |
11223 | fi | |
11224 | rm -f conftest* | |
11225 | fi | |
11226 | ||
11227 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11228 | echo "$ac_t""yes" 1>&6 | |
11229 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11230 | cat >> confdefs.h <<EOF | |
11231 | #define $ac_tr_func 1 | |
11232 | EOF | |
11233 | ||
11234 | else | |
11235 | echo "$ac_t""no" 1>&6 | |
11236 | fi | |
11237 | done | |
11238 | ||
11239 | ||
11240 | for ac_func in timegm | |
11241 | do | |
11242 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
17f7bb9e | 11243 | echo "configure:11244: checking for $ac_func" >&5 |
270a909e VZ |
11244 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11245 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11246 | else | |
11247 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 11248 | #line 11249 "configure" |
270a909e VZ |
11249 | #include "confdefs.h" |
11250 | /* System header to define __stub macros and hopefully few prototypes, | |
11251 | which can conflict with char $ac_func(); below. */ | |
11252 | #include <assert.h> | |
11253 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11254 | /* We use char because int might match the return type of a gcc2 | |
11255 | builtin and then its argument prototype would still apply. */ | |
11256 | char $ac_func(); | |
11257 | ||
11258 | int main() { | |
11259 | ||
11260 | /* The GNU C library defines this for functions which it implements | |
11261 | to always fail with ENOSYS. Some functions are actually named | |
11262 | something starting with __ and the normal name is an alias. */ | |
11263 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11264 | choke me | |
11265 | #else | |
e8482f24 | 11266 | $ac_func(); |
270a909e VZ |
11267 | #endif |
11268 | ||
11269 | ; return 0; } | |
11270 | EOF | |
17f7bb9e | 11271 | if { (eval echo configure:11272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11272 | rm -rf conftest* |
11273 | eval "ac_cv_func_$ac_func=yes" | |
11274 | else | |
11275 | echo "configure: failed program was:" >&5 | |
11276 | cat conftest.$ac_ext >&5 | |
11277 | rm -rf conftest* | |
11278 | eval "ac_cv_func_$ac_func=no" | |
11279 | fi | |
11280 | rm -f conftest* | |
11281 | fi | |
11282 | ||
11283 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11284 | echo "$ac_t""yes" 1>&6 | |
11285 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11286 | cat >> confdefs.h <<EOF | |
11287 | #define $ac_tr_func 1 | |
11288 | EOF | |
11289 | ||
11290 | else | |
11291 | echo "$ac_t""no" 1>&6 | |
11292 | fi | |
11293 | done | |
11294 | ||
11295 | ||
8fd0d89b VZ |
11296 | for ac_func in putenv setenv |
11297 | do | |
11298 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
17f7bb9e | 11299 | echo "configure:11300: checking for $ac_func" >&5 |
8fd0d89b VZ |
11300 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11301 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11302 | else | |
11303 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 11304 | #line 11305 "configure" |
8fd0d89b VZ |
11305 | #include "confdefs.h" |
11306 | /* System header to define __stub macros and hopefully few prototypes, | |
11307 | which can conflict with char $ac_func(); below. */ | |
11308 | #include <assert.h> | |
11309 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11310 | /* We use char because int might match the return type of a gcc2 | |
11311 | builtin and then its argument prototype would still apply. */ | |
11312 | char $ac_func(); | |
11313 | ||
11314 | int main() { | |
11315 | ||
11316 | /* The GNU C library defines this for functions which it implements | |
11317 | to always fail with ENOSYS. Some functions are actually named | |
11318 | something starting with __ and the normal name is an alias. */ | |
11319 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11320 | choke me | |
11321 | #else | |
11322 | $ac_func(); | |
11323 | #endif | |
11324 | ||
11325 | ; return 0; } | |
11326 | EOF | |
17f7bb9e | 11327 | if { (eval echo configure:11328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
8fd0d89b VZ |
11328 | rm -rf conftest* |
11329 | eval "ac_cv_func_$ac_func=yes" | |
11330 | else | |
11331 | echo "configure: failed program was:" >&5 | |
11332 | cat conftest.$ac_ext >&5 | |
11333 | rm -rf conftest* | |
11334 | eval "ac_cv_func_$ac_func=no" | |
11335 | fi | |
11336 | rm -f conftest* | |
11337 | fi | |
11338 | ||
11339 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11340 | echo "$ac_t""yes" 1>&6 | |
11341 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11342 | cat >> confdefs.h <<EOF | |
11343 | #define $ac_tr_func 1 | |
11344 | EOF | |
11345 | break | |
11346 | else | |
11347 | echo "$ac_t""no" 1>&6 | |
11348 | fi | |
11349 | done | |
11350 | ||
11351 | ||
b12915c1 VZ |
11352 | HAVE_SOME_SLEEP_FUNC=0 |
11353 | if test "$USE_BEOS" = 1; then | |
11354 | cat >> confdefs.h <<\EOF | |
11355 | #define HAVE_SLEEP 1 | |
11356 | EOF | |
11357 | ||
11358 | HAVE_SOME_SLEEP_FUNC=1 | |
11359 | fi | |
11360 | ||
b4085ce6 GD |
11361 | if test "$USE_MAC" = 1; then |
11362 | cat >> confdefs.h <<\EOF | |
11363 | #define HAVE_USLEEP 1 | |
11364 | EOF | |
11365 | ||
11366 | HAVE_SOME_SLEEP_FUNC=1 | |
11367 | fi | |
11368 | ||
b12915c1 VZ |
11369 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
11370 | POSIX4_LINK= | |
11371 | for ac_func in nanosleep | |
10f2d63a VZ |
11372 | do |
11373 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
17f7bb9e | 11374 | echo "configure:11375: checking for $ac_func" >&5 |
10f2d63a VZ |
11375 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11376 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11377 | else | |
11378 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 11379 | #line 11380 "configure" |
10f2d63a VZ |
11380 | #include "confdefs.h" |
11381 | /* System header to define __stub macros and hopefully few prototypes, | |
11382 | which can conflict with char $ac_func(); below. */ | |
11383 | #include <assert.h> | |
11384 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11385 | /* We use char because int might match the return type of a gcc2 | |
11386 | builtin and then its argument prototype would still apply. */ | |
11387 | char $ac_func(); | |
11388 | ||
11389 | int main() { | |
11390 | ||
11391 | /* The GNU C library defines this for functions which it implements | |
11392 | to always fail with ENOSYS. Some functions are actually named | |
11393 | something starting with __ and the normal name is an alias. */ | |
11394 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11395 | choke me | |
11396 | #else | |
e8482f24 | 11397 | $ac_func(); |
10f2d63a VZ |
11398 | #endif |
11399 | ||
11400 | ; return 0; } | |
11401 | EOF | |
17f7bb9e | 11402 | if { (eval echo configure:11403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11403 | rm -rf conftest* |
11404 | eval "ac_cv_func_$ac_func=yes" | |
11405 | else | |
11406 | echo "configure: failed program was:" >&5 | |
11407 | cat conftest.$ac_ext >&5 | |
11408 | rm -rf conftest* | |
11409 | eval "ac_cv_func_$ac_func=no" | |
11410 | fi | |
11411 | rm -f conftest* | |
11412 | fi | |
11413 | ||
11414 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11415 | echo "$ac_t""yes" 1>&6 | |
11416 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11417 | cat >> confdefs.h <<EOF | |
11418 | #define $ac_tr_func 1 | |
11419 | EOF | |
11420 | cat >> confdefs.h <<\EOF | |
11421 | #define HAVE_NANOSLEEP 1 | |
11422 | EOF | |
11423 | ||
11424 | else | |
11425 | echo "$ac_t""no" 1>&6 | |
11426 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
17f7bb9e | 11427 | echo "configure:11428: checking for nanosleep in -lposix4" >&5 |
10f2d63a VZ |
11428 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
11429 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11430 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11431 | else | |
11432 | ac_save_LIBS="$LIBS" | |
11433 | LIBS="-lposix4 $LIBS" | |
11434 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 11435 | #line 11436 "configure" |
10f2d63a VZ |
11436 | #include "confdefs.h" |
11437 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11438 | /* We use char because int might match the return type of a gcc2 | |
11439 | builtin and then its argument prototype would still apply. */ | |
11440 | char nanosleep(); | |
11441 | ||
11442 | int main() { | |
11443 | nanosleep() | |
11444 | ; return 0; } | |
11445 | EOF | |
17f7bb9e | 11446 | if { (eval echo configure:11447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11447 | rm -rf conftest* |
11448 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11449 | else | |
11450 | echo "configure: failed program was:" >&5 | |
11451 | cat conftest.$ac_ext >&5 | |
11452 | rm -rf conftest* | |
11453 | eval "ac_cv_lib_$ac_lib_var=no" | |
11454 | fi | |
11455 | rm -f conftest* | |
11456 | LIBS="$ac_save_LIBS" | |
11457 | ||
11458 | fi | |
11459 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11460 | echo "$ac_t""yes" 1>&6 | |
11461 | ||
b12915c1 | 11462 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
11463 | #define HAVE_NANOSLEEP 1 |
11464 | EOF | |
11465 | ||
b12915c1 VZ |
11466 | POSIX4_LINK="-lposix4" |
11467 | ||
10f2d63a VZ |
11468 | else |
11469 | echo "$ac_t""no" 1>&6 | |
11470 | ||
b12915c1 | 11471 | for ac_func in usleep |
10f2d63a VZ |
11472 | do |
11473 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
17f7bb9e | 11474 | echo "configure:11475: checking for $ac_func" >&5 |
10f2d63a VZ |
11475 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11476 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11477 | else | |
11478 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 11479 | #line 11480 "configure" |
10f2d63a VZ |
11480 | #include "confdefs.h" |
11481 | /* System header to define __stub macros and hopefully few prototypes, | |
11482 | which can conflict with char $ac_func(); below. */ | |
11483 | #include <assert.h> | |
11484 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11485 | /* We use char because int might match the return type of a gcc2 | |
11486 | builtin and then its argument prototype would still apply. */ | |
11487 | char $ac_func(); | |
11488 | ||
11489 | int main() { | |
11490 | ||
11491 | /* The GNU C library defines this for functions which it implements | |
11492 | to always fail with ENOSYS. Some functions are actually named | |
11493 | something starting with __ and the normal name is an alias. */ | |
11494 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11495 | choke me | |
11496 | #else | |
e8482f24 | 11497 | $ac_func(); |
10f2d63a VZ |
11498 | #endif |
11499 | ||
11500 | ; return 0; } | |
11501 | EOF | |
17f7bb9e | 11502 | if { (eval echo configure:11503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11503 | rm -rf conftest* |
11504 | eval "ac_cv_func_$ac_func=yes" | |
11505 | else | |
11506 | echo "configure: failed program was:" >&5 | |
11507 | cat conftest.$ac_ext >&5 | |
11508 | rm -rf conftest* | |
11509 | eval "ac_cv_func_$ac_func=no" | |
11510 | fi | |
11511 | rm -f conftest* | |
11512 | fi | |
11513 | ||
11514 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11515 | echo "$ac_t""yes" 1>&6 | |
11516 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11517 | cat >> confdefs.h <<EOF | |
11518 | #define $ac_tr_func 1 | |
11519 | EOF | |
b4085ce6 GD |
11520 | cat >> confdefs.h <<\EOF |
11521 | #define HAVE_USLEEP 1 | |
11522 | EOF | |
11523 | ||
10f2d63a VZ |
11524 | else |
11525 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
11526 | fi |
11527 | done | |
11528 | ||
b12915c1 VZ |
11529 | echo "configure: warning: wxSleep() function will not work" 1>&2 |
11530 | ||
11531 | ||
10f2d63a VZ |
11532 | fi |
11533 | ||
b12915c1 VZ |
11534 | |
11535 | ||
10f2d63a VZ |
11536 | fi |
11537 | done | |
11538 | ||
b12915c1 | 11539 | fi |
10f2d63a VZ |
11540 | |
11541 | for ac_func in uname gethostname | |
11542 | do | |
11543 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
17f7bb9e | 11544 | echo "configure:11545: checking for $ac_func" >&5 |
10f2d63a VZ |
11545 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11546 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11547 | else | |
11548 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 11549 | #line 11550 "configure" |
10f2d63a VZ |
11550 | #include "confdefs.h" |
11551 | /* System header to define __stub macros and hopefully few prototypes, | |
11552 | which can conflict with char $ac_func(); below. */ | |
11553 | #include <assert.h> | |
11554 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11555 | /* We use char because int might match the return type of a gcc2 | |
11556 | builtin and then its argument prototype would still apply. */ | |
11557 | char $ac_func(); | |
11558 | ||
11559 | int main() { | |
11560 | ||
11561 | /* The GNU C library defines this for functions which it implements | |
11562 | to always fail with ENOSYS. Some functions are actually named | |
11563 | something starting with __ and the normal name is an alias. */ | |
11564 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11565 | choke me | |
11566 | #else | |
e8482f24 | 11567 | $ac_func(); |
10f2d63a VZ |
11568 | #endif |
11569 | ||
11570 | ; return 0; } | |
11571 | EOF | |
17f7bb9e | 11572 | if { (eval echo configure:11573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11573 | rm -rf conftest* |
11574 | eval "ac_cv_func_$ac_func=yes" | |
11575 | else | |
11576 | echo "configure: failed program was:" >&5 | |
11577 | cat conftest.$ac_ext >&5 | |
11578 | rm -rf conftest* | |
11579 | eval "ac_cv_func_$ac_func=no" | |
11580 | fi | |
11581 | rm -f conftest* | |
11582 | fi | |
11583 | ||
11584 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11585 | echo "$ac_t""yes" 1>&6 | |
11586 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11587 | cat >> confdefs.h <<EOF | |
11588 | #define $ac_tr_func 1 | |
11589 | EOF | |
11590 | break | |
11591 | else | |
11592 | echo "$ac_t""no" 1>&6 | |
11593 | fi | |
11594 | done | |
11595 | ||
11596 | ||
6098c7f9 VZ |
11597 | |
11598 | ac_ext=C | |
11599 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11600 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11601 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11602 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11603 | cross_compiling=$ac_cv_prog_cxx_cross | |
11604 | ||
11605 | ||
10f2d63a VZ |
11606 | for ac_func in strtok_r |
11607 | do | |
11608 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
17f7bb9e | 11609 | echo "configure:11610: checking for $ac_func" >&5 |
10f2d63a VZ |
11610 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11611 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11612 | else | |
11613 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 11614 | #line 11615 "configure" |
10f2d63a VZ |
11615 | #include "confdefs.h" |
11616 | /* System header to define __stub macros and hopefully few prototypes, | |
11617 | which can conflict with char $ac_func(); below. */ | |
11618 | #include <assert.h> | |
11619 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6098c7f9 VZ |
11620 | #ifdef __cplusplus |
11621 | extern "C" | |
11622 | #endif | |
10f2d63a VZ |
11623 | /* We use char because int might match the return type of a gcc2 |
11624 | builtin and then its argument prototype would still apply. */ | |
11625 | char $ac_func(); | |
11626 | ||
11627 | int main() { | |
11628 | ||
11629 | /* The GNU C library defines this for functions which it implements | |
11630 | to always fail with ENOSYS. Some functions are actually named | |
11631 | something starting with __ and the normal name is an alias. */ | |
11632 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11633 | choke me | |
11634 | #else | |
e8482f24 | 11635 | $ac_func(); |
10f2d63a VZ |
11636 | #endif |
11637 | ||
11638 | ; return 0; } | |
11639 | EOF | |
17f7bb9e | 11640 | if { (eval echo configure:11641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11641 | rm -rf conftest* |
11642 | eval "ac_cv_func_$ac_func=yes" | |
11643 | else | |
11644 | echo "configure: failed program was:" >&5 | |
11645 | cat conftest.$ac_ext >&5 | |
11646 | rm -rf conftest* | |
11647 | eval "ac_cv_func_$ac_func=no" | |
11648 | fi | |
11649 | rm -f conftest* | |
11650 | fi | |
11651 | ||
11652 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11653 | echo "$ac_t""yes" 1>&6 | |
11654 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11655 | cat >> confdefs.h <<EOF | |
11656 | #define $ac_tr_func 1 | |
11657 | EOF | |
11658 | ||
11659 | else | |
11660 | echo "$ac_t""no" 1>&6 | |
11661 | fi | |
11662 | done | |
11663 | ||
11664 | ||
6098c7f9 VZ |
11665 | ac_ext=c |
11666 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11667 | ac_cpp='$CPP $CPPFLAGS' | |
11668 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11669 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11670 | cross_compiling=$ac_cv_prog_cc_cross | |
11671 | ||
11672 | ||
c63c7106 | 11673 | INET_LINK= |
10f2d63a VZ |
11674 | for ac_func in inet_addr |
11675 | do | |
11676 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
17f7bb9e | 11677 | echo "configure:11678: checking for $ac_func" >&5 |
10f2d63a VZ |
11678 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11679 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11680 | else | |
11681 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 11682 | #line 11683 "configure" |
10f2d63a VZ |
11683 | #include "confdefs.h" |
11684 | /* System header to define __stub macros and hopefully few prototypes, | |
11685 | which can conflict with char $ac_func(); below. */ | |
11686 | #include <assert.h> | |
11687 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11688 | /* We use char because int might match the return type of a gcc2 | |
11689 | builtin and then its argument prototype would still apply. */ | |
11690 | char $ac_func(); | |
11691 | ||
11692 | int main() { | |
11693 | ||
11694 | /* The GNU C library defines this for functions which it implements | |
11695 | to always fail with ENOSYS. Some functions are actually named | |
11696 | something starting with __ and the normal name is an alias. */ | |
11697 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11698 | choke me | |
11699 | #else | |
e8482f24 | 11700 | $ac_func(); |
10f2d63a VZ |
11701 | #endif |
11702 | ||
11703 | ; return 0; } | |
11704 | EOF | |
17f7bb9e | 11705 | if { (eval echo configure:11706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11706 | rm -rf conftest* |
11707 | eval "ac_cv_func_$ac_func=yes" | |
11708 | else | |
11709 | echo "configure: failed program was:" >&5 | |
11710 | cat conftest.$ac_ext >&5 | |
11711 | rm -rf conftest* | |
11712 | eval "ac_cv_func_$ac_func=no" | |
11713 | fi | |
11714 | rm -f conftest* | |
11715 | fi | |
11716 | ||
11717 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11718 | echo "$ac_t""yes" 1>&6 | |
11719 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11720 | cat >> confdefs.h <<EOF | |
11721 | #define $ac_tr_func 1 | |
11722 | EOF | |
c63c7106 VZ |
11723 | cat >> confdefs.h <<\EOF |
11724 | #define HAVE_INET_ADDR 1 | |
11725 | EOF | |
11726 | ||
10f2d63a VZ |
11727 | else |
11728 | echo "$ac_t""no" 1>&6 | |
c63c7106 | 11729 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 |
17f7bb9e | 11730 | echo "configure:11731: checking for inet_addr in -lnsl" >&5 |
c63c7106 VZ |
11731 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
11732 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11733 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11734 | else | |
11735 | ac_save_LIBS="$LIBS" | |
11736 | LIBS="-lnsl $LIBS" | |
11737 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 11738 | #line 11739 "configure" |
c63c7106 VZ |
11739 | #include "confdefs.h" |
11740 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11741 | /* We use char because int might match the return type of a gcc2 | |
11742 | builtin and then its argument prototype would still apply. */ | |
11743 | char inet_addr(); | |
11744 | ||
11745 | int main() { | |
11746 | inet_addr() | |
11747 | ; return 0; } | |
11748 | EOF | |
17f7bb9e | 11749 | if { (eval echo configure:11750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c63c7106 VZ |
11750 | rm -rf conftest* |
11751 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11752 | else | |
11753 | echo "configure: failed program was:" >&5 | |
11754 | cat conftest.$ac_ext >&5 | |
11755 | rm -rf conftest* | |
11756 | eval "ac_cv_lib_$ac_lib_var=no" | |
11757 | fi | |
11758 | rm -f conftest* | |
11759 | LIBS="$ac_save_LIBS" | |
11760 | ||
11761 | fi | |
11762 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11763 | echo "$ac_t""yes" 1>&6 | |
11764 | INET_LINK="nsl" | |
11765 | else | |
11766 | echo "$ac_t""no" 1>&6 | |
11767 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 | |
17f7bb9e | 11768 | echo "configure:11769: checking for inet_addr in -lresolv" >&5 |
c63c7106 VZ |
11769 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
11770 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11771 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11772 | else | |
11773 | ac_save_LIBS="$LIBS" | |
11774 | LIBS="-lresolv $LIBS" | |
11775 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 11776 | #line 11777 "configure" |
c63c7106 VZ |
11777 | #include "confdefs.h" |
11778 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11779 | /* We use char because int might match the return type of a gcc2 | |
11780 | builtin and then its argument prototype would still apply. */ | |
11781 | char inet_addr(); | |
11782 | ||
11783 | int main() { | |
11784 | inet_addr() | |
11785 | ; return 0; } | |
11786 | EOF | |
17f7bb9e | 11787 | if { (eval echo configure:11788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c63c7106 VZ |
11788 | rm -rf conftest* |
11789 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11790 | else | |
11791 | echo "configure: failed program was:" >&5 | |
11792 | cat conftest.$ac_ext >&5 | |
11793 | rm -rf conftest* | |
11794 | eval "ac_cv_lib_$ac_lib_var=no" | |
11795 | fi | |
11796 | rm -f conftest* | |
11797 | LIBS="$ac_save_LIBS" | |
11798 | ||
11799 | fi | |
11800 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11801 | echo "$ac_t""yes" 1>&6 | |
11802 | INET_LINK="resolv" | |
11803 | ||
11804 | else | |
11805 | echo "$ac_t""no" 1>&6 | |
11806 | fi | |
11807 | ||
11808 | ||
11809 | fi | |
11810 | ||
11811 | ||
11812 | ||
10f2d63a VZ |
11813 | fi |
11814 | done | |
11815 | ||
c63c7106 | 11816 | |
10f2d63a VZ |
11817 | for ac_func in inet_aton |
11818 | do | |
11819 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
17f7bb9e | 11820 | echo "configure:11821: checking for $ac_func" >&5 |
10f2d63a VZ |
11821 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11822 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11823 | else | |
11824 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 11825 | #line 11826 "configure" |
10f2d63a VZ |
11826 | #include "confdefs.h" |
11827 | /* System header to define __stub macros and hopefully few prototypes, | |
11828 | which can conflict with char $ac_func(); below. */ | |
11829 | #include <assert.h> | |
11830 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11831 | /* We use char because int might match the return type of a gcc2 | |
11832 | builtin and then its argument prototype would still apply. */ | |
11833 | char $ac_func(); | |
11834 | ||
11835 | int main() { | |
11836 | ||
11837 | /* The GNU C library defines this for functions which it implements | |
11838 | to always fail with ENOSYS. Some functions are actually named | |
11839 | something starting with __ and the normal name is an alias. */ | |
11840 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11841 | choke me | |
11842 | #else | |
e8482f24 | 11843 | $ac_func(); |
10f2d63a VZ |
11844 | #endif |
11845 | ||
11846 | ; return 0; } | |
11847 | EOF | |
17f7bb9e | 11848 | if { (eval echo configure:11849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11849 | rm -rf conftest* |
11850 | eval "ac_cv_func_$ac_func=yes" | |
11851 | else | |
11852 | echo "configure: failed program was:" >&5 | |
11853 | cat conftest.$ac_ext >&5 | |
11854 | rm -rf conftest* | |
11855 | eval "ac_cv_func_$ac_func=no" | |
11856 | fi | |
11857 | rm -f conftest* | |
11858 | fi | |
11859 | ||
11860 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11861 | echo "$ac_t""yes" 1>&6 | |
11862 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11863 | cat >> confdefs.h <<EOF | |
11864 | #define $ac_tr_func 1 | |
11865 | EOF | |
c63c7106 VZ |
11866 | cat >> confdefs.h <<\EOF |
11867 | #define HAVE_INET_ATON 1 | |
11868 | EOF | |
11869 | ||
10f2d63a VZ |
11870 | else |
11871 | echo "$ac_t""no" 1>&6 | |
c63c7106 | 11872 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 |
17f7bb9e | 11873 | echo "configure:11874: checking for inet_aton in -l$INET_LINK" >&5 |
c63c7106 | 11874 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
10f2d63a VZ |
11875 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
11876 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11877 | else | |
11878 | ac_save_LIBS="$LIBS" | |
c63c7106 | 11879 | LIBS="-l$INET_LINK $LIBS" |
10f2d63a | 11880 | cat > conftest.$ac_ext <<EOF |
17f7bb9e | 11881 | #line 11882 "configure" |
10f2d63a VZ |
11882 | #include "confdefs.h" |
11883 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11884 | /* We use char because int might match the return type of a gcc2 | |
11885 | builtin and then its argument prototype would still apply. */ | |
11886 | char inet_aton(); | |
11887 | ||
11888 | int main() { | |
11889 | inet_aton() | |
11890 | ; return 0; } | |
11891 | EOF | |
17f7bb9e | 11892 | if { (eval echo configure:11893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11893 | rm -rf conftest* |
11894 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11895 | else | |
11896 | echo "configure: failed program was:" >&5 | |
11897 | cat conftest.$ac_ext >&5 | |
11898 | rm -rf conftest* | |
11899 | eval "ac_cv_lib_$ac_lib_var=no" | |
11900 | fi | |
11901 | rm -f conftest* | |
11902 | LIBS="$ac_save_LIBS" | |
11903 | ||
11904 | fi | |
11905 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11906 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
11907 | cat >> confdefs.h <<\EOF |
11908 | #define HAVE_INET_ATON 1 | |
10f2d63a VZ |
11909 | EOF |
11910 | ||
10f2d63a VZ |
11911 | else |
11912 | echo "$ac_t""no" 1>&6 | |
11913 | fi | |
11914 | ||
c63c7106 VZ |
11915 | |
11916 | fi | |
11917 | done | |
11918 | ||
11919 | ||
11920 | if test "x$INET_LINK" != "x"; then | |
11921 | cat >> confdefs.h <<\EOF | |
11922 | #define HAVE_INET_ADDR 1 | |
11923 | EOF | |
11924 | ||
11925 | INET_LINK="-l$INET_LINK" | |
11926 | fi | |
10f2d63a VZ |
11927 | |
11928 | fi | |
11929 | ||
11930 | ||
11931 | cat > confcache <<\EOF | |
11932 | # This file is a shell script that caches the results of configure | |
11933 | # tests run on this system so they can be shared between configure | |
11934 | # scripts and configure runs. It is not useful on other systems. | |
11935 | # If it contains results you don't want to keep, you may remove or edit it. | |
11936 | # | |
11937 | # By default, configure uses ./config.cache as the cache file, | |
11938 | # creating it if it does not exist already. You can give configure | |
11939 | # the --cache-file=FILE option to use a different cache file; that is | |
11940 | # what configure does when it calls configure scripts in | |
11941 | # subdirectories, so they share the cache. | |
11942 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
11943 | # config.status only pays attention to the cache file if you give it the | |
11944 | # --recheck option to rerun configure. | |
11945 | # | |
11946 | EOF | |
11947 | # The following way of writing the cache mishandles newlines in values, | |
11948 | # but we know of no workaround that is simple, portable, and efficient. | |
11949 | # So, don't put newlines in cache variables' values. | |
11950 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
11951 | # and sets the high bit in the cache file unless we assign to the vars. | |
11952 | (set) 2>&1 | | |
11953 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
11954 | *ac_space=\ *) | |
11955 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
11956 | # turns \\\\ into \\, and sed turns \\ into \). | |
11957 | sed -n \ | |
11958 | -e "s/'/'\\\\''/g" \ | |
11959 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
11960 | ;; | |
11961 | *) | |
11962 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
11963 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
11964 | ;; | |
11965 | esac >> confcache | |
11966 | if cmp -s $cache_file confcache; then | |
11967 | : | |
11968 | else | |
11969 | if test -w $cache_file; then | |
11970 | echo "updating cache $cache_file" | |
11971 | cat confcache > $cache_file | |
11972 | else | |
11973 | echo "not updating unwritable cache $cache_file" | |
11974 | fi | |
11975 | fi | |
11976 | rm -f confcache | |
11977 | ||
11978 | ||
11979 | ||
b089607b | 11980 | if test "$TOOLKIT" != "MSW"; then |
10f2d63a VZ |
11981 | |
11982 | ||
11983 | THREADS_LINK="" | |
11984 | THREADS_OBJ="" | |
11985 | ||
11986 | if test "$wxUSE_THREADS" = "yes" ; then | |
11987 | if test "$wxUSE_WINE" = 1 ; then | |
11988 | echo "configure: warning: Threads are not supported under WINE" 1>&2 | |
11989 | wxUSE_THREADS="no" | |
b12915c1 VZ |
11990 | elif test "$USE_BEOS" = 1; then |
11991 | echo "configure: warning: BeOS threads are not yet supported" 1>&2 | |
11992 | wxUSE_THREADS="no" | |
10f2d63a VZ |
11993 | fi |
11994 | fi | |
11995 | ||
11996 | if test "$wxUSE_THREADS" = "yes" ; then | |
11997 | ||
186837b0 | 11998 | if test "$USE_AIX" = 1; then |
f6bcfd97 | 11999 | THREADS_LIB=pthreads |
f3c067d2 GD |
12000 | elif test "$USE_MAC" = 1; then |
12001 | THREADS_LIB=cc_dynamic | |
f6bcfd97 BP |
12002 | else |
12003 | THREADS_LIB=pthread | |
12004 | fi | |
12005 | ||
12006 | echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6 | |
17f7bb9e | 12007 | echo "configure:12008: checking for pthread_create in -l$THREADS_LIB" >&5 |
f6bcfd97 | 12008 | ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'` |
10f2d63a VZ |
12009 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
12010 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12011 | else | |
12012 | ac_save_LIBS="$LIBS" | |
f6bcfd97 | 12013 | LIBS="-l$THREADS_LIB $LIBS" |
10f2d63a | 12014 | cat > conftest.$ac_ext <<EOF |
17f7bb9e | 12015 | #line 12016 "configure" |
10f2d63a VZ |
12016 | #include "confdefs.h" |
12017 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12018 | /* We use char because int might match the return type of a gcc2 | |
12019 | builtin and then its argument prototype would still apply. */ | |
12020 | char pthread_create(); | |
12021 | ||
12022 | int main() { | |
12023 | pthread_create() | |
12024 | ; return 0; } | |
12025 | EOF | |
17f7bb9e | 12026 | if { (eval echo configure:12027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
12027 | rm -rf conftest* |
12028 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12029 | else | |
12030 | echo "configure: failed program was:" >&5 | |
12031 | cat conftest.$ac_ext >&5 | |
12032 | rm -rf conftest* | |
12033 | eval "ac_cv_lib_$ac_lib_var=no" | |
12034 | fi | |
12035 | rm -f conftest* | |
12036 | LIBS="$ac_save_LIBS" | |
12037 | ||
12038 | fi | |
12039 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12040 | echo "$ac_t""yes" 1>&6 | |
12041 | ||
12042 | THREADS_OBJ="threadpsx.lo" | |
f6bcfd97 | 12043 | THREADS_LINK=$THREADS_LIB |
10f2d63a VZ |
12044 | |
12045 | else | |
12046 | echo "$ac_t""no" 1>&6 | |
12047 | ||
12048 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 | |
17f7bb9e | 12049 | echo "configure:12050: checking for pthread_create in -lc_r" >&5 |
10f2d63a VZ |
12050 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
12051 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12052 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12053 | else | |
12054 | ac_save_LIBS="$LIBS" | |
12055 | LIBS="-lc_r $LIBS" | |
12056 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 12057 | #line 12058 "configure" |
10f2d63a VZ |
12058 | #include "confdefs.h" |
12059 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12060 | /* We use char because int might match the return type of a gcc2 | |
12061 | builtin and then its argument prototype would still apply. */ | |
12062 | char pthread_create(); | |
12063 | ||
12064 | int main() { | |
12065 | pthread_create() | |
12066 | ; return 0; } | |
12067 | EOF | |
17f7bb9e | 12068 | if { (eval echo configure:12069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
12069 | rm -rf conftest* |
12070 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12071 | else | |
12072 | echo "configure: failed program was:" >&5 | |
12073 | cat conftest.$ac_ext >&5 | |
12074 | rm -rf conftest* | |
12075 | eval "ac_cv_lib_$ac_lib_var=no" | |
12076 | fi | |
12077 | rm -f conftest* | |
12078 | LIBS="$ac_save_LIBS" | |
12079 | ||
12080 | fi | |
12081 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12082 | echo "$ac_t""yes" 1>&6 | |
12083 | ||
12084 | THREADS_OBJ="threadpsx.lo" | |
12085 | THREADS_LINK="c_r" | |
12086 | ||
12087 | else | |
12088 | echo "$ac_t""no" 1>&6 | |
12089 | ||
b4085ce6 | 12090 | echo $ac_n "checking for pthread_create in -lcc_dynamic""... $ac_c" 1>&6 |
17f7bb9e | 12091 | echo "configure:12092: checking for pthread_create in -lcc_dynamic" >&5 |
b4085ce6 GD |
12092 | ac_lib_var=`echo cc_dynamic'_'pthread_create | sed 'y%./+-%__p_%'` |
12093 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12094 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12095 | else | |
12096 | ac_save_LIBS="$LIBS" | |
12097 | LIBS="-lcc_dynamic $LIBS" | |
12098 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 12099 | #line 12100 "configure" |
b4085ce6 GD |
12100 | #include "confdefs.h" |
12101 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12102 | /* We use char because int might match the return type of a gcc2 | |
12103 | builtin and then its argument prototype would still apply. */ | |
12104 | char pthread_create(); | |
12105 | ||
12106 | int main() { | |
12107 | pthread_create() | |
12108 | ; return 0; } | |
12109 | EOF | |
17f7bb9e | 12110 | if { (eval echo configure:12111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
b4085ce6 GD |
12111 | rm -rf conftest* |
12112 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12113 | else | |
12114 | echo "configure: failed program was:" >&5 | |
12115 | cat conftest.$ac_ext >&5 | |
12116 | rm -rf conftest* | |
12117 | eval "ac_cv_lib_$ac_lib_var=no" | |
12118 | fi | |
12119 | rm -f conftest* | |
12120 | LIBS="$ac_save_LIBS" | |
12121 | ||
12122 | fi | |
12123 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12124 | echo "$ac_t""yes" 1>&6 | |
12125 | ||
12126 | THREADS_OBJ="threadpsx.lo" | |
12127 | THREADS_LINK="cc_dynamic" | |
12128 | ||
12129 | else | |
12130 | echo "$ac_t""no" 1>&6 | |
12131 | ||
12132 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` | |
10f2d63a | 12133 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 |
17f7bb9e | 12134 | echo "configure:12135: checking for sys/prctl.h" >&5 |
10f2d63a VZ |
12135 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12136 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12137 | else | |
12138 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 12139 | #line 12140 "configure" |
10f2d63a VZ |
12140 | #include "confdefs.h" |
12141 | #include <sys/prctl.h> | |
12142 | EOF | |
12143 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
17f7bb9e | 12144 | { (eval echo configure:12145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
12145 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12146 | if test -z "$ac_err"; then | |
12147 | rm -rf conftest* | |
12148 | eval "ac_cv_header_$ac_safe=yes" | |
12149 | else | |
12150 | echo "$ac_err" >&5 | |
12151 | echo "configure: failed program was:" >&5 | |
12152 | cat conftest.$ac_ext >&5 | |
12153 | rm -rf conftest* | |
12154 | eval "ac_cv_header_$ac_safe=no" | |
12155 | fi | |
12156 | rm -f conftest* | |
12157 | fi | |
12158 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12159 | echo "$ac_t""yes" 1>&6 | |
12160 | ||
b4085ce6 GD |
12161 | THREADS_OBJ="threadsgi.lo" |
12162 | ||
10f2d63a VZ |
12163 | else |
12164 | echo "$ac_t""no" 1>&6 | |
12165 | fi | |
12166 | ||
b4085ce6 GD |
12167 | |
12168 | fi | |
12169 | ||
10f2d63a VZ |
12170 | |
12171 | fi | |
12172 | ||
12173 | ||
12174 | fi | |
12175 | ||
12176 | ||
12177 | if test -z "$THREADS_OBJ" ; then | |
12178 | wxUSE_THREADS=no | |
12179 | echo "configure: warning: No thread support on this system" 1>&2 | |
12180 | fi | |
12181 | fi | |
12182 | ||
12183 | if test "$wxUSE_THREADS" = "yes" ; then | |
70846f0a VZ |
12184 | for ac_func in thr_setconcurrency |
12185 | do | |
12186 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
17f7bb9e | 12187 | echo "configure:12188: checking for $ac_func" >&5 |
70846f0a VZ |
12188 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12189 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12190 | else | |
12191 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 12192 | #line 12193 "configure" |
70846f0a VZ |
12193 | #include "confdefs.h" |
12194 | /* System header to define __stub macros and hopefully few prototypes, | |
12195 | which can conflict with char $ac_func(); below. */ | |
12196 | #include <assert.h> | |
12197 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12198 | /* We use char because int might match the return type of a gcc2 | |
12199 | builtin and then its argument prototype would still apply. */ | |
12200 | char $ac_func(); | |
12201 | ||
12202 | int main() { | |
12203 | ||
12204 | /* The GNU C library defines this for functions which it implements | |
12205 | to always fail with ENOSYS. Some functions are actually named | |
12206 | something starting with __ and the normal name is an alias. */ | |
12207 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12208 | choke me | |
12209 | #else | |
e8482f24 | 12210 | $ac_func(); |
70846f0a VZ |
12211 | #endif |
12212 | ||
12213 | ; return 0; } | |
12214 | EOF | |
17f7bb9e | 12215 | if { (eval echo configure:12216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
70846f0a VZ |
12216 | rm -rf conftest* |
12217 | eval "ac_cv_func_$ac_func=yes" | |
12218 | else | |
12219 | echo "configure: failed program was:" >&5 | |
12220 | cat conftest.$ac_ext >&5 | |
12221 | rm -rf conftest* | |
12222 | eval "ac_cv_func_$ac_func=no" | |
12223 | fi | |
12224 | rm -f conftest* | |
12225 | fi | |
12226 | ||
12227 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12228 | echo "$ac_t""yes" 1>&6 | |
12229 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12230 | cat >> confdefs.h <<EOF | |
12231 | #define $ac_tr_func 1 | |
12232 | EOF | |
12233 | ||
12234 | else | |
12235 | echo "$ac_t""no" 1>&6 | |
12236 | fi | |
12237 | done | |
12238 | ||
12239 | ||
10f2d63a VZ |
12240 | |
12241 | for ac_hdr in sched.h | |
12242 | do | |
12243 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
12244 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
17f7bb9e | 12245 | echo "configure:12246: checking for $ac_hdr" >&5 |
10f2d63a VZ |
12246 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12247 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12248 | else | |
12249 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 12250 | #line 12251 "configure" |
10f2d63a VZ |
12251 | #include "confdefs.h" |
12252 | #include <$ac_hdr> | |
12253 | EOF | |
12254 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
17f7bb9e | 12255 | { (eval echo configure:12256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
12256 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12257 | if test -z "$ac_err"; then | |
12258 | rm -rf conftest* | |
12259 | eval "ac_cv_header_$ac_safe=yes" | |
12260 | else | |
12261 | echo "$ac_err" >&5 | |
12262 | echo "configure: failed program was:" >&5 | |
12263 | cat conftest.$ac_ext >&5 | |
12264 | rm -rf conftest* | |
12265 | eval "ac_cv_header_$ac_safe=no" | |
12266 | fi | |
12267 | rm -f conftest* | |
12268 | fi | |
12269 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12270 | echo "$ac_t""yes" 1>&6 | |
12271 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12272 | cat >> confdefs.h <<EOF | |
12273 | #define $ac_tr_hdr 1 | |
12274 | EOF | |
12275 | ||
12276 | else | |
12277 | echo "$ac_t""no" 1>&6 | |
12278 | fi | |
12279 | done | |
12280 | ||
12281 | ||
12282 | echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6 | |
17f7bb9e | 12283 | echo "configure:12284: checking for sched_yield in -l$THREADS_LINK" >&5 |
10f2d63a VZ |
12284 | ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'` |
12285 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12286 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12287 | else | |
12288 | ac_save_LIBS="$LIBS" | |
12289 | LIBS="-l$THREADS_LINK $LIBS" | |
12290 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 12291 | #line 12292 "configure" |
10f2d63a VZ |
12292 | #include "confdefs.h" |
12293 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12294 | /* We use char because int might match the return type of a gcc2 | |
12295 | builtin and then its argument prototype would still apply. */ | |
12296 | char sched_yield(); | |
12297 | ||
12298 | int main() { | |
12299 | sched_yield() | |
12300 | ; return 0; } | |
12301 | EOF | |
17f7bb9e | 12302 | if { (eval echo configure:12303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
12303 | rm -rf conftest* |
12304 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12305 | else | |
12306 | echo "configure: failed program was:" >&5 | |
12307 | cat conftest.$ac_ext >&5 | |
12308 | rm -rf conftest* | |
12309 | eval "ac_cv_lib_$ac_lib_var=no" | |
12310 | fi | |
12311 | rm -f conftest* | |
12312 | LIBS="$ac_save_LIBS" | |
12313 | ||
12314 | fi | |
12315 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12316 | echo "$ac_t""yes" 1>&6 | |
12317 | cat >> confdefs.h <<\EOF | |
12318 | #define HAVE_SCHED_YIELD 1 | |
12319 | EOF | |
12320 | ||
12321 | else | |
12322 | echo "$ac_t""no" 1>&6 | |
12323 | echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6 | |
17f7bb9e | 12324 | echo "configure:12325: checking for sched_yield in -l"posix4"" >&5 |
10f2d63a VZ |
12325 | ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'` |
12326 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12327 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12328 | else | |
12329 | ac_save_LIBS="$LIBS" | |
12330 | LIBS="-l"posix4" $LIBS" | |
12331 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 12332 | #line 12333 "configure" |
10f2d63a VZ |
12333 | #include "confdefs.h" |
12334 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12335 | /* We use char because int might match the return type of a gcc2 | |
12336 | builtin and then its argument prototype would still apply. */ | |
12337 | char sched_yield(); | |
12338 | ||
12339 | int main() { | |
12340 | sched_yield() | |
12341 | ; return 0; } | |
12342 | EOF | |
17f7bb9e | 12343 | if { (eval echo configure:12344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
12344 | rm -rf conftest* |
12345 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12346 | else | |
12347 | echo "configure: failed program was:" >&5 | |
12348 | cat conftest.$ac_ext >&5 | |
12349 | rm -rf conftest* | |
12350 | eval "ac_cv_lib_$ac_lib_var=no" | |
12351 | fi | |
12352 | rm -f conftest* | |
12353 | LIBS="$ac_save_LIBS" | |
12354 | ||
12355 | fi | |
12356 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12357 | echo "$ac_t""yes" 1>&6 | |
12358 | cat >> confdefs.h <<\EOF | |
12359 | #define HAVE_SCHED_YIELD 1 | |
12360 | EOF | |
12361 | POSIX4_LINK="-lposix4" | |
12362 | else | |
12363 | echo "$ac_t""no" 1>&6 | |
12364 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
12365 | ||
12366 | fi | |
12367 | ||
12368 | ||
12369 | fi | |
12370 | ||
12371 | ||
f6bcfd97 BP |
12372 | HAVE_PRIOR_FUNCS=0 |
12373 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6 | |
17f7bb9e | 12374 | echo "configure:12375: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5 |
10f2d63a VZ |
12375 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
12376 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12377 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12378 | else | |
12379 | ac_save_LIBS="$LIBS" | |
12380 | LIBS="-l$THREADS_LINK $LIBS" | |
12381 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 12382 | #line 12383 "configure" |
10f2d63a VZ |
12383 | #include "confdefs.h" |
12384 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12385 | /* We use char because int might match the return type of a gcc2 | |
12386 | builtin and then its argument prototype would still apply. */ | |
12387 | char pthread_attr_getschedpolicy(); | |
12388 | ||
12389 | int main() { | |
12390 | pthread_attr_getschedpolicy() | |
12391 | ; return 0; } | |
12392 | EOF | |
17f7bb9e | 12393 | if { (eval echo configure:12394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
12394 | rm -rf conftest* |
12395 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12396 | else | |
12397 | echo "configure: failed program was:" >&5 | |
12398 | cat conftest.$ac_ext >&5 | |
12399 | rm -rf conftest* | |
12400 | eval "ac_cv_lib_$ac_lib_var=no" | |
12401 | fi | |
12402 | rm -f conftest* | |
12403 | LIBS="$ac_save_LIBS" | |
12404 | ||
12405 | fi | |
12406 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12407 | echo "$ac_t""yes" 1>&6 | |
f6bcfd97 | 12408 | echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6 |
17f7bb9e | 12409 | echo "configure:12410: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5 |
f6bcfd97 BP |
12410 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'` |
12411 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12412 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12413 | else | |
12414 | ac_save_LIBS="$LIBS" | |
12415 | LIBS="-l$THREADS_LINK $LIBS" | |
12416 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 12417 | #line 12418 "configure" |
f6bcfd97 BP |
12418 | #include "confdefs.h" |
12419 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12420 | /* We use char because int might match the return type of a gcc2 | |
12421 | builtin and then its argument prototype would still apply. */ | |
12422 | char pthread_attr_setschedparam(); | |
12423 | ||
12424 | int main() { | |
12425 | pthread_attr_setschedparam() | |
12426 | ; return 0; } | |
10f2d63a | 12427 | EOF |
17f7bb9e | 12428 | if { (eval echo configure:12429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f6bcfd97 BP |
12429 | rm -rf conftest* |
12430 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12431 | else | |
12432 | echo "configure: failed program was:" >&5 | |
12433 | cat conftest.$ac_ext >&5 | |
12434 | rm -rf conftest* | |
12435 | eval "ac_cv_lib_$ac_lib_var=no" | |
12436 | fi | |
12437 | rm -f conftest* | |
12438 | LIBS="$ac_save_LIBS" | |
10f2d63a | 12439 | |
f6bcfd97 BP |
12440 | fi |
12441 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12442 | echo "$ac_t""yes" 1>&6 | |
12443 | echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6 | |
17f7bb9e | 12444 | echo "configure:12445: checking for sched_get_priority_max in -l$THREADS_LINK" >&5 |
f6bcfd97 BP |
12445 | ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
12446 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12447 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12448 | else | |
12449 | ac_save_LIBS="$LIBS" | |
12450 | LIBS="-l$THREADS_LINK $LIBS" | |
12451 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 12452 | #line 12453 "configure" |
f6bcfd97 BP |
12453 | #include "confdefs.h" |
12454 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12455 | /* We use char because int might match the return type of a gcc2 | |
12456 | builtin and then its argument prototype would still apply. */ | |
12457 | char sched_get_priority_max(); | |
12458 | ||
12459 | int main() { | |
12460 | sched_get_priority_max() | |
12461 | ; return 0; } | |
12462 | EOF | |
17f7bb9e | 12463 | if { (eval echo configure:12464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f6bcfd97 BP |
12464 | rm -rf conftest* |
12465 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12466 | else | |
12467 | echo "configure: failed program was:" >&5 | |
12468 | cat conftest.$ac_ext >&5 | |
12469 | rm -rf conftest* | |
12470 | eval "ac_cv_lib_$ac_lib_var=no" | |
12471 | fi | |
12472 | rm -f conftest* | |
12473 | LIBS="$ac_save_LIBS" | |
12474 | ||
12475 | fi | |
12476 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12477 | echo "$ac_t""yes" 1>&6 | |
12478 | HAVE_PRIOR_FUNCS=1 | |
10f2d63a VZ |
12479 | else |
12480 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 | 12481 | echo $ac_n "checking for sched_get_priority_max in -l"posix4"""... $ac_c" 1>&6 |
17f7bb9e | 12482 | echo "configure:12483: checking for sched_get_priority_max in -l"posix4"" >&5 |
f6bcfd97 | 12483 | ac_lib_var=`echo "posix4"'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
10f2d63a VZ |
12484 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
12485 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12486 | else | |
12487 | ac_save_LIBS="$LIBS" | |
12488 | LIBS="-l"posix4" $LIBS" | |
12489 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 12490 | #line 12491 "configure" |
10f2d63a VZ |
12491 | #include "confdefs.h" |
12492 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12493 | /* We use char because int might match the return type of a gcc2 | |
12494 | builtin and then its argument prototype would still apply. */ | |
f6bcfd97 | 12495 | char sched_get_priority_max(); |
10f2d63a VZ |
12496 | |
12497 | int main() { | |
f6bcfd97 | 12498 | sched_get_priority_max() |
10f2d63a VZ |
12499 | ; return 0; } |
12500 | EOF | |
17f7bb9e | 12501 | if { (eval echo configure:12502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
12502 | rm -rf conftest* |
12503 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12504 | else | |
12505 | echo "configure: failed program was:" >&5 | |
12506 | cat conftest.$ac_ext >&5 | |
12507 | rm -rf conftest* | |
12508 | eval "ac_cv_lib_$ac_lib_var=no" | |
12509 | fi | |
12510 | rm -f conftest* | |
12511 | LIBS="$ac_save_LIBS" | |
12512 | ||
12513 | fi | |
12514 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12515 | echo "$ac_t""yes" 1>&6 | |
f6bcfd97 BP |
12516 | |
12517 | HAVE_PRIOR_FUNCS=1 | |
12518 | POSIX4_LINK="-lposix4" | |
12519 | ||
12520 | else | |
12521 | echo "$ac_t""no" 1>&6 | |
12522 | fi | |
12523 | ||
12524 | ||
12525 | fi | |
12526 | ||
12527 | ||
10f2d63a VZ |
12528 | else |
12529 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12530 | fi |
12531 | ||
12532 | ||
f6bcfd97 BP |
12533 | else |
12534 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12535 | fi |
12536 | ||
12537 | ||
f6bcfd97 BP |
12538 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
12539 | cat >> confdefs.h <<\EOF | |
12540 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
12541 | EOF | |
12542 | ||
12543 | else | |
12544 | echo "configure: warning: Setting thread priority will not work" 1>&2 | |
12545 | fi | |
12546 | ||
10f2d63a | 12547 | echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6 |
17f7bb9e | 12548 | echo "configure:12549: checking for pthread_cancel in -l$THREADS_LINK" >&5 |
10f2d63a VZ |
12549 | ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'` |
12550 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12551 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12552 | else | |
12553 | ac_save_LIBS="$LIBS" | |
12554 | LIBS="-l$THREADS_LINK $LIBS" | |
12555 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 12556 | #line 12557 "configure" |
10f2d63a VZ |
12557 | #include "confdefs.h" |
12558 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12559 | /* We use char because int might match the return type of a gcc2 | |
12560 | builtin and then its argument prototype would still apply. */ | |
12561 | char pthread_cancel(); | |
12562 | ||
12563 | int main() { | |
12564 | pthread_cancel() | |
12565 | ; return 0; } | |
12566 | EOF | |
17f7bb9e | 12567 | if { (eval echo configure:12568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
12568 | rm -rf conftest* |
12569 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12570 | else | |
12571 | echo "configure: failed program was:" >&5 | |
12572 | cat conftest.$ac_ext >&5 | |
12573 | rm -rf conftest* | |
12574 | eval "ac_cv_lib_$ac_lib_var=no" | |
12575 | fi | |
12576 | rm -f conftest* | |
12577 | LIBS="$ac_save_LIBS" | |
12578 | ||
12579 | fi | |
12580 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12581 | echo "$ac_t""yes" 1>&6 | |
12582 | cat >> confdefs.h <<\EOF | |
12583 | #define HAVE_PTHREAD_CANCEL 1 | |
12584 | EOF | |
12585 | ||
12586 | else | |
12587 | echo "$ac_t""no" 1>&6 | |
12588 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
12589 | fi | |
12590 | ||
12591 | ||
12592 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 | |
17f7bb9e | 12593 | echo "configure:12594: checking for pthread_cleanup_push/pop" >&5 |
10f2d63a VZ |
12594 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
12595 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12596 | else | |
12597 | ||
12598 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 12599 | #line 12600 "configure" |
10f2d63a VZ |
12600 | #include "confdefs.h" |
12601 | #include <pthread.h> | |
12602 | int main() { | |
12603 | ||
12604 | pthread_cleanup_push(NULL, NULL); | |
12605 | pthread_cleanup_pop(0); | |
12606 | ||
12607 | ; return 0; } | |
12608 | EOF | |
17f7bb9e | 12609 | if { (eval echo configure:12610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
12610 | rm -rf conftest* |
12611 | ||
12612 | wx_cv_func_pthread_cleanup_push=yes | |
10f2d63a VZ |
12613 | |
12614 | else | |
12615 | echo "configure: failed program was:" >&5 | |
12616 | cat conftest.$ac_ext >&5 | |
12617 | rm -rf conftest* | |
12618 | ||
12619 | wx_cv_func_pthread_cleanup_push=no | |
12620 | ||
12621 | fi | |
12622 | rm -f conftest* | |
12623 | ||
12624 | fi | |
12625 | ||
12626 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
12627 | ||
d9b9876f VZ |
12628 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
12629 | cat >> confdefs.h <<\EOF | |
12630 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 | |
12631 | EOF | |
12632 | ||
12633 | fi | |
12634 | ||
12635 | ||
12636 | #ifdef HAVE_PTHREAD_MUTEXATTR_T | |
12637 | #elif defined(HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER) | |
12638 | ||
12639 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 | |
17f7bb9e | 12640 | echo "configure:12641: checking for pthread_mutexattr_t" >&5 |
d9b9876f VZ |
12641 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
12642 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12643 | else | |
12644 | ||
12645 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 12646 | #line 12647 "configure" |
d9b9876f VZ |
12647 | #include "confdefs.h" |
12648 | #include <pthread.h> | |
12649 | int main() { | |
12650 | ||
12651 | pthread_mutexattr_t attr; | |
12652 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
12653 | ||
12654 | ; return 0; } | |
12655 | EOF | |
17f7bb9e | 12656 | if { (eval echo configure:12657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d9b9876f VZ |
12657 | rm -rf conftest* |
12658 | ||
12659 | wx_cv_type_pthread_mutexattr_t=yes | |
12660 | ||
12661 | else | |
12662 | echo "configure: failed program was:" >&5 | |
12663 | cat conftest.$ac_ext >&5 | |
12664 | rm -rf conftest* | |
12665 | ||
12666 | wx_cv_type_pthread_mutexattr_t=no | |
12667 | ||
12668 | ||
12669 | fi | |
12670 | rm -f conftest* | |
12671 | ||
12672 | fi | |
12673 | ||
12674 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
12675 | ||
12676 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
12677 | cat >> confdefs.h <<\EOF | |
12678 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
12679 | EOF | |
12680 | ||
12681 | else | |
12682 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 | |
17f7bb9e | 12683 | echo "configure:12684: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
d9b9876f VZ |
12684 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
12685 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12686 | else | |
12687 | ||
12688 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 12689 | #line 12690 "configure" |
d9b9876f VZ |
12690 | #include "confdefs.h" |
12691 | #include <pthread.h> | |
12692 | int main() { | |
12693 | ||
12694 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
12695 | ||
12696 | ; return 0; } | |
12697 | EOF | |
17f7bb9e | 12698 | if { (eval echo configure:12699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d9b9876f VZ |
12699 | rm -rf conftest* |
12700 | ||
12701 | wx_cv_type_pthread_rec_mutex_init=yes | |
12702 | ||
12703 | else | |
12704 | echo "configure: failed program was:" >&5 | |
12705 | cat conftest.$ac_ext >&5 | |
12706 | rm -rf conftest* | |
12707 | ||
12708 | wx_cv_type_pthread_rec_mutex_init=no | |
12709 | ||
12710 | ||
12711 | fi | |
12712 | rm -f conftest* | |
12713 | ||
12714 | fi | |
12715 | ||
12716 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 | |
12717 | if test "$wx_cv_type_pthread_rec_mutex_init"="yes"; then | |
12718 | cat >> confdefs.h <<\EOF | |
12719 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
12720 | EOF | |
12721 | ||
12722 | else | |
12723 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 | |
12724 | fi | |
12725 | fi | |
12726 | ||
10f2d63a | 12727 | THREADS_LINK="-l$THREADS_LINK" |
186837b0 VZ |
12728 | |
12729 | if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then | |
12730 | CFLAGS="${CFLAGS} -mt" | |
12731 | CXXFLAGS="${CXXFLAGS} -mt" | |
12732 | LDFLAGS="${LDFLAGS} -mt" | |
12733 | fi | |
10f2d63a VZ |
12734 | fi |
12735 | ||
12736 | fi | |
12737 | ||
12738 | if test "$wxUSE_THREADS" = "yes"; then | |
12739 | cat >> confdefs.h <<\EOF | |
12740 | #define wxUSE_THREADS 1 | |
12741 | EOF | |
12742 | ||
12743 | ||
2c6025bc | 12744 | if test "$wxUSE_MAC" = "0"; then |
10f2d63a | 12745 | CFLAGS="${CFLAGS} -D_REENTRANT" |
2c6025bc GD |
12746 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" |
12747 | fi | |
10f2d63a VZ |
12748 | |
12749 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
12750 | else | |
12751 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
ab9b9eab | 12752 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 |
17f7bb9e | 12753 | echo "configure:12754: checking if -D_REENTRANT is needed" >&5 |
ab9b9eab VZ |
12754 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
12755 | CFLAGS="${CFLAGS} -D_REENTRANT" | |
12756 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" | |
12757 | echo "$ac_t""yes" 1>&6 | |
12758 | else | |
12759 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12760 | fi |
12761 | fi | |
12762 | fi | |
12763 | ||
6f72b082 | 12764 | if test "$WXGTK20" = 1 ; then |
13111b2a | 12765 | cat >> confdefs.h <<EOF |
6f72b082 | 12766 | #define __WXGTK20__ $WXGTK20 |
13111b2a VZ |
12767 | EOF |
12768 | ||
12769 | WXGTK12=1 | |
12770 | fi | |
12771 | ||
10f2d63a VZ |
12772 | if test "$WXGTK12" = 1 ; then |
12773 | cat >> confdefs.h <<EOF | |
12774 | #define __WXGTK12__ $WXGTK12 | |
12775 | EOF | |
12776 | ||
12777 | fi | |
12778 | ||
f6bcfd97 BP |
12779 | if test "$WXGTK127" = 1 ; then |
12780 | cat >> confdefs.h <<EOF | |
12781 | #define __WXGTK127__ $WXGTK127 | |
12782 | EOF | |
12783 | ||
12784 | fi | |
12785 | ||
10f2d63a VZ |
12786 | if test "$WXWINE" = 1 ; then |
12787 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__" | |
12788 | fi | |
12789 | ||
b4085ce6 | 12790 | if test "$wxUSE_MAC" = 1 ; then |
2c6025bc | 12791 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__POWERPC__ -DTARGET_CARBON" |
ea5999b9 GD |
12792 | CFLAGS="${CFLAGS} -fno-common -fpascal-strings" |
12793 | CPPFLAGS="${CPPFLAGS} -fno-common -fpascal-strings" | |
b4085ce6 GD |
12794 | fi |
12795 | ||
10f2d63a VZ |
12796 | if test "$wxUSE_CYGWIN" = 1 ; then |
12797 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__" | |
12798 | fi | |
12799 | ||
12800 | WXDEBUG= | |
12801 | ||
12802 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
12803 | WXDEBUG="-g" | |
12804 | wxUSE_OPTIMISE=no | |
12805 | fi | |
12806 | ||
12807 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
12808 | wxUSE_DEBUG_INFO=yes | |
12809 | WXDEBUG="-ggdb" | |
12810 | fi | |
12811 | ||
12812 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
12813 | cat >> confdefs.h <<\EOF | |
12814 | #define WXDEBUG 1 | |
12815 | EOF | |
12816 | ||
12817 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
12818 | else | |
12819 | if test "$wxUSE_GTK" = 1 ; then | |
12820 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
12821 | fi | |
12822 | fi | |
12823 | ||
12824 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
12825 | cat >> confdefs.h <<\EOF | |
12826 | #define wxUSE_MEMORY_TRACING 1 | |
12827 | EOF | |
12828 | ||
12829 | cat >> confdefs.h <<\EOF | |
12830 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
47c13eb7 VS |
12831 | EOF |
12832 | ||
12833 | cat >> confdefs.h <<\EOF | |
12834 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
10f2d63a VZ |
12835 | EOF |
12836 | ||
12837 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
12838 | fi | |
12839 | ||
12840 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
12841 | DMALLOC_LINK="-ldmalloc" | |
12842 | fi | |
12843 | ||
12844 | PROFILE= | |
12845 | if test "$wxUSE_PROFILE" = "yes" ; then | |
12846 | PROFILE="-pg" | |
12847 | fi | |
12848 | ||
12849 | DEP_INFO_FLAGS= | |
caa2c79b | 12850 | CODE_GEN_FLAGS= |
0f3f1cbc | 12851 | CODE_GEN_FLAGS_CXX= |
10f2d63a VZ |
12852 | if test "$GCC" = yes ; then |
12853 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
0f3f1cbc | 12854 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti" |
10f2d63a VZ |
12855 | fi |
12856 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
0f3f1cbc | 12857 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions" |
10f2d63a VZ |
12858 | fi |
12859 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
caa2c79b | 12860 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" |
10f2d63a VZ |
12861 | fi |
12862 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
12863 | DEP_INFO_FLAGS="-MMD" | |
12864 | fi | |
12865 | fi | |
12866 | ||
12867 | ||
12868 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` | |
12869 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
12870 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
12871 | OPTIMISE= | |
12872 | else | |
12873 | if test "$GCC" = yes ; then | |
12874 | OPTIMISE="-O2" | |
12875 | case "${host}" in | |
12876 | i586-*-*|i686-*-* ) | |
12877 | OPTIMISE="${OPTIMISE} " | |
12878 | ;; | |
12879 | esac | |
12880 | else | |
12881 | OPTIMISE="-O" | |
12882 | fi | |
12883 | fi | |
12884 | ||
12885 | ||
12886 | ZLIB_INCLUDE= | |
422107f9 | 12887 | if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then |
10f2d63a VZ |
12888 | cat >> confdefs.h <<\EOF |
12889 | #define wxUSE_ZLIB 1 | |
12890 | EOF | |
12891 | ||
422107f9 VZ |
12892 | if test "$wxUSE_ZLIB" = "yes" ; then |
12893 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
12894 | else | |
12895 | ZLIB_LINK= | |
12896 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` | |
12897 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
17f7bb9e | 12898 | echo "configure:12899: checking for zlib.h" >&5 |
422107f9 VZ |
12899 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12900 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12901 | else | |
12902 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 12903 | #line 12904 "configure" |
422107f9 VZ |
12904 | #include "confdefs.h" |
12905 | #include <zlib.h> | |
12906 | EOF | |
12907 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
17f7bb9e | 12908 | { (eval echo configure:12909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
422107f9 VZ |
12909 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12910 | if test -z "$ac_err"; then | |
12911 | rm -rf conftest* | |
12912 | eval "ac_cv_header_$ac_safe=yes" | |
12913 | else | |
12914 | echo "$ac_err" >&5 | |
12915 | echo "configure: failed program was:" >&5 | |
12916 | cat conftest.$ac_ext >&5 | |
12917 | rm -rf conftest* | |
12918 | eval "ac_cv_header_$ac_safe=no" | |
12919 | fi | |
12920 | rm -f conftest* | |
12921 | fi | |
12922 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12923 | echo "$ac_t""yes" 1>&6 | |
12924 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 | |
17f7bb9e | 12925 | echo "configure:12926: checking for deflate in -lz" >&5 |
422107f9 VZ |
12926 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
12927 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12928 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12929 | else | |
12930 | ac_save_LIBS="$LIBS" | |
12931 | LIBS="-lz $LIBS" | |
12932 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 12933 | #line 12934 "configure" |
422107f9 VZ |
12934 | #include "confdefs.h" |
12935 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12936 | /* We use char because int might match the return type of a gcc2 | |
12937 | builtin and then its argument prototype would still apply. */ | |
12938 | char deflate(); | |
12939 | ||
12940 | int main() { | |
12941 | deflate() | |
12942 | ; return 0; } | |
12943 | EOF | |
17f7bb9e | 12944 | if { (eval echo configure:12945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
422107f9 VZ |
12945 | rm -rf conftest* |
12946 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12947 | else | |
12948 | echo "configure: failed program was:" >&5 | |
12949 | cat conftest.$ac_ext >&5 | |
12950 | rm -rf conftest* | |
12951 | eval "ac_cv_lib_$ac_lib_var=no" | |
12952 | fi | |
12953 | rm -f conftest* | |
12954 | LIBS="$ac_save_LIBS" | |
12955 | ||
12956 | fi | |
12957 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12958 | echo "$ac_t""yes" 1>&6 | |
12959 | ZLIB_LINK="-lz" | |
12960 | else | |
12961 | echo "$ac_t""no" 1>&6 | |
12962 | fi | |
12963 | ||
12964 | else | |
12965 | echo "$ac_t""no" 1>&6 | |
12966 | fi | |
12967 | ||
12968 | if test "x$ZLIB_LINK" = "x" ; then | |
12969 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; } | |
12970 | fi | |
12971 | fi | |
10f2d63a VZ |
12972 | fi |
12973 | ||
12974 | PNG_INCLUDE= | |
422107f9 | 12975 | if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then |
10f2d63a VZ |
12976 | cat >> confdefs.h <<\EOF |
12977 | #define wxUSE_LIBPNG 1 | |
12978 | EOF | |
12979 | ||
41fd4136 | 12980 | if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
422107f9 VZ |
12981 | echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2 |
12982 | wxUSE_LIBPNG=yes | |
12983 | fi | |
12984 | ||
12985 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
12986 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
12987 | else | |
12988 | PNG_LINK= | |
12989 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | |
12990 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
17f7bb9e | 12991 | echo "configure:12992: checking for png.h" >&5 |
422107f9 VZ |
12992 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12993 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12994 | else | |
12995 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 12996 | #line 12997 "configure" |
422107f9 VZ |
12997 | #include "confdefs.h" |
12998 | #include <png.h> | |
12999 | EOF | |
13000 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
17f7bb9e | 13001 | { (eval echo configure:13002: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
422107f9 VZ |
13002 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13003 | if test -z "$ac_err"; then | |
13004 | rm -rf conftest* | |
13005 | eval "ac_cv_header_$ac_safe=yes" | |
13006 | else | |
13007 | echo "$ac_err" >&5 | |
13008 | echo "configure: failed program was:" >&5 | |
13009 | cat conftest.$ac_ext >&5 | |
13010 | rm -rf conftest* | |
13011 | eval "ac_cv_header_$ac_safe=no" | |
13012 | fi | |
13013 | rm -f conftest* | |
13014 | fi | |
13015 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13016 | echo "$ac_t""yes" 1>&6 | |
13017 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 | |
17f7bb9e | 13018 | echo "configure:13019: checking for png_check_sig in -lpng" >&5 |
422107f9 VZ |
13019 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
13020 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13021 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13022 | else | |
13023 | ac_save_LIBS="$LIBS" | |
13024 | LIBS="-lpng -lz -lm $LIBS" | |
13025 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 13026 | #line 13027 "configure" |
422107f9 VZ |
13027 | #include "confdefs.h" |
13028 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13029 | /* We use char because int might match the return type of a gcc2 | |
13030 | builtin and then its argument prototype would still apply. */ | |
13031 | char png_check_sig(); | |
13032 | ||
13033 | int main() { | |
13034 | png_check_sig() | |
13035 | ; return 0; } | |
13036 | EOF | |
17f7bb9e | 13037 | if { (eval echo configure:13038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
422107f9 VZ |
13038 | rm -rf conftest* |
13039 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13040 | else | |
13041 | echo "configure: failed program was:" >&5 | |
13042 | cat conftest.$ac_ext >&5 | |
13043 | rm -rf conftest* | |
13044 | eval "ac_cv_lib_$ac_lib_var=no" | |
13045 | fi | |
13046 | rm -f conftest* | |
13047 | LIBS="$ac_save_LIBS" | |
13048 | ||
13049 | fi | |
13050 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13051 | echo "$ac_t""yes" 1>&6 | |
13052 | PNG_LINK="-lpng" | |
13053 | else | |
13054 | echo "$ac_t""no" 1>&6 | |
13055 | fi | |
13056 | ||
13057 | ||
13058 | else | |
13059 | echo "$ac_t""no" 1>&6 | |
13060 | fi | |
13061 | ||
13062 | if test "x$PNG_LINK" = "x" ; then | |
0dcf9893 | 13063 | { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; } |
422107f9 VZ |
13064 | fi |
13065 | fi | |
13066 | ||
10f2d63a VZ |
13067 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
13068 | fi | |
13069 | ||
13070 | JPEG_INCLUDE= | |
422107f9 | 13071 | if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then |
10f2d63a VZ |
13072 | cat >> confdefs.h <<\EOF |
13073 | #define wxUSE_LIBJPEG 1 | |
13074 | EOF | |
13075 | ||
422107f9 VZ |
13076 | if test "$wxUSE_LIBJPEG" = "yes" ; then |
13077 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
13078 | else | |
13079 | JPEG_LINK= | |
13080 | ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` | |
13081 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 | |
17f7bb9e | 13082 | echo "configure:13083: checking for jpeglib.h" >&5 |
422107f9 VZ |
13083 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13084 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13085 | else | |
13086 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 13087 | #line 13088 "configure" |
422107f9 VZ |
13088 | #include "confdefs.h" |
13089 | #include <jpeglib.h> | |
13090 | EOF | |
13091 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
17f7bb9e | 13092 | { (eval echo configure:13093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
422107f9 VZ |
13093 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13094 | if test -z "$ac_err"; then | |
13095 | rm -rf conftest* | |
13096 | eval "ac_cv_header_$ac_safe=yes" | |
13097 | else | |
13098 | echo "$ac_err" >&5 | |
13099 | echo "configure: failed program was:" >&5 | |
13100 | cat conftest.$ac_ext >&5 | |
13101 | rm -rf conftest* | |
13102 | eval "ac_cv_header_$ac_safe=no" | |
13103 | fi | |
13104 | rm -f conftest* | |
13105 | fi | |
13106 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13107 | echo "$ac_t""yes" 1>&6 | |
13108 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 | |
17f7bb9e | 13109 | echo "configure:13110: checking for jpeg_read_header in -ljpeg" >&5 |
422107f9 VZ |
13110 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
13111 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13112 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13113 | else | |
13114 | ac_save_LIBS="$LIBS" | |
13115 | LIBS="-ljpeg $LIBS" | |
13116 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 13117 | #line 13118 "configure" |
422107f9 VZ |
13118 | #include "confdefs.h" |
13119 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13120 | /* We use char because int might match the return type of a gcc2 | |
13121 | builtin and then its argument prototype would still apply. */ | |
13122 | char jpeg_read_header(); | |
13123 | ||
13124 | int main() { | |
13125 | jpeg_read_header() | |
13126 | ; return 0; } | |
13127 | EOF | |
17f7bb9e | 13128 | if { (eval echo configure:13129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
422107f9 VZ |
13129 | rm -rf conftest* |
13130 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13131 | else | |
13132 | echo "configure: failed program was:" >&5 | |
13133 | cat conftest.$ac_ext >&5 | |
13134 | rm -rf conftest* | |
13135 | eval "ac_cv_lib_$ac_lib_var=no" | |
13136 | fi | |
13137 | rm -f conftest* | |
13138 | LIBS="$ac_save_LIBS" | |
13139 | ||
13140 | fi | |
13141 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13142 | echo "$ac_t""yes" 1>&6 | |
13143 | JPEG_LINK="-ljpeg" | |
13144 | else | |
13145 | echo "$ac_t""no" 1>&6 | |
13146 | fi | |
13147 | ||
13148 | else | |
13149 | echo "$ac_t""no" 1>&6 | |
13150 | fi | |
13151 | ||
13152 | if test "x$JPEG_LINK" = "x" ; then | |
0dcf9893 | 13153 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; } |
422107f9 VZ |
13154 | fi |
13155 | fi | |
10f2d63a VZ |
13156 | fi |
13157 | ||
c7a2bf27 | 13158 | TIFF_INCLUDE= |
0dcf9893 | 13159 | if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then |
c7a2bf27 RR |
13160 | cat >> confdefs.h <<\EOF |
13161 | #define wxUSE_LIBTIFF 1 | |
13162 | EOF | |
13163 | ||
0dcf9893 VZ |
13164 | if test "$wxUSE_LIBTIFF" = "yes" ; then |
13165 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
13166 | else | |
13167 | TIFF_LINK= | |
13168 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` | |
13169 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
17f7bb9e | 13170 | echo "configure:13171: checking for tiffio.h" >&5 |
0dcf9893 VZ |
13171 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13172 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13173 | else | |
13174 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 13175 | #line 13176 "configure" |
0dcf9893 VZ |
13176 | #include "confdefs.h" |
13177 | #include <tiffio.h> | |
13178 | EOF | |
13179 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
17f7bb9e | 13180 | { (eval echo configure:13181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
0dcf9893 VZ |
13181 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13182 | if test -z "$ac_err"; then | |
13183 | rm -rf conftest* | |
13184 | eval "ac_cv_header_$ac_safe=yes" | |
13185 | else | |
13186 | echo "$ac_err" >&5 | |
13187 | echo "configure: failed program was:" >&5 | |
13188 | cat conftest.$ac_ext >&5 | |
13189 | rm -rf conftest* | |
13190 | eval "ac_cv_header_$ac_safe=no" | |
13191 | fi | |
13192 | rm -f conftest* | |
13193 | fi | |
13194 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13195 | echo "$ac_t""yes" 1>&6 | |
13196 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
17f7bb9e | 13197 | echo "configure:13198: checking for TIFFError in -ltiff" >&5 |
0dcf9893 VZ |
13198 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
13199 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13200 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13201 | else | |
13202 | ac_save_LIBS="$LIBS" | |
13203 | LIBS="-ltiff -lm $LIBS" | |
13204 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 13205 | #line 13206 "configure" |
0dcf9893 VZ |
13206 | #include "confdefs.h" |
13207 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13208 | /* We use char because int might match the return type of a gcc2 | |
13209 | builtin and then its argument prototype would still apply. */ | |
13210 | char TIFFError(); | |
13211 | ||
13212 | int main() { | |
13213 | TIFFError() | |
13214 | ; return 0; } | |
13215 | EOF | |
17f7bb9e | 13216 | if { (eval echo configure:13217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
0dcf9893 VZ |
13217 | rm -rf conftest* |
13218 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13219 | else | |
13220 | echo "configure: failed program was:" >&5 | |
13221 | cat conftest.$ac_ext >&5 | |
13222 | rm -rf conftest* | |
13223 | eval "ac_cv_lib_$ac_lib_var=no" | |
13224 | fi | |
13225 | rm -f conftest* | |
13226 | LIBS="$ac_save_LIBS" | |
13227 | ||
13228 | fi | |
13229 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13230 | echo "$ac_t""yes" 1>&6 | |
13231 | TIFF_LINK="-ltiff" | |
13232 | else | |
13233 | echo "$ac_t""no" 1>&6 | |
13234 | fi | |
13235 | ||
13236 | else | |
13237 | echo "$ac_t""no" 1>&6 | |
13238 | fi | |
13239 | ||
13240 | if test "x$TIFF_LINK" = "x" ; then | |
13241 | { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; } | |
13242 | fi | |
13243 | fi | |
c7a2bf27 RR |
13244 | fi |
13245 | ||
3fed1840 RR |
13246 | FREETYPE_INCLUDE= |
13247 | if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then | |
13248 | cat >> confdefs.h <<\EOF | |
13249 | #define wxUSE_FREETYPE 1 | |
13250 | EOF | |
13251 | ||
13252 | if test "$wxUSE_FREETYPE" = "yes" ; then | |
13253 | FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype" | |
13254 | else | |
13255 | FREETYPE_LINK= | |
13256 | ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'` | |
13257 | echo $ac_n "checking for freetype.h""... $ac_c" 1>&6 | |
17f7bb9e | 13258 | echo "configure:13259: checking for freetype.h" >&5 |
3fed1840 RR |
13259 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13260 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13261 | else | |
13262 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 13263 | #line 13264 "configure" |
3fed1840 RR |
13264 | #include "confdefs.h" |
13265 | #include <freetype.h> | |
13266 | EOF | |
13267 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
17f7bb9e | 13268 | { (eval echo configure:13269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3fed1840 RR |
13269 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13270 | if test -z "$ac_err"; then | |
13271 | rm -rf conftest* | |
13272 | eval "ac_cv_header_$ac_safe=yes" | |
13273 | else | |
13274 | echo "$ac_err" >&5 | |
13275 | echo "configure: failed program was:" >&5 | |
13276 | cat conftest.$ac_ext >&5 | |
13277 | rm -rf conftest* | |
13278 | eval "ac_cv_header_$ac_safe=no" | |
13279 | fi | |
13280 | rm -f conftest* | |
13281 | fi | |
13282 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13283 | echo "$ac_t""yes" 1>&6 | |
13284 | echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6 | |
17f7bb9e | 13285 | echo "configure:13286: checking for FT_Render_Glyph in -lfreetype" >&5 |
3fed1840 RR |
13286 | ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'` |
13287 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13288 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13289 | else | |
13290 | ac_save_LIBS="$LIBS" | |
13291 | LIBS="-lfreetype -lm $LIBS" | |
13292 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 13293 | #line 13294 "configure" |
3fed1840 RR |
13294 | #include "confdefs.h" |
13295 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13296 | /* We use char because int might match the return type of a gcc2 | |
13297 | builtin and then its argument prototype would still apply. */ | |
13298 | char FT_Render_Glyph(); | |
13299 | ||
13300 | int main() { | |
13301 | FT_Render_Glyph() | |
13302 | ; return 0; } | |
13303 | EOF | |
17f7bb9e | 13304 | if { (eval echo configure:13305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3fed1840 RR |
13305 | rm -rf conftest* |
13306 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13307 | else | |
13308 | echo "configure: failed program was:" >&5 | |
13309 | cat conftest.$ac_ext >&5 | |
13310 | rm -rf conftest* | |
13311 | eval "ac_cv_lib_$ac_lib_var=no" | |
13312 | fi | |
13313 | rm -f conftest* | |
13314 | LIBS="$ac_save_LIBS" | |
13315 | ||
13316 | fi | |
13317 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13318 | echo "$ac_t""yes" 1>&6 | |
13319 | FREETYPE_LINK="-lfreetype" | |
13320 | else | |
13321 | echo "$ac_t""no" 1>&6 | |
13322 | fi | |
13323 | ||
13324 | ||
13325 | else | |
13326 | echo "$ac_t""no" 1>&6 | |
13327 | fi | |
13328 | ||
13329 | if test "x$FREETYPE_LINK" = "x" ; then | |
13330 | { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; } | |
13331 | fi | |
13332 | fi | |
13333 | fi | |
13334 | ||
10f2d63a VZ |
13335 | if test "$wxUSE_OPENGL" = "yes"; then |
13336 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` | |
13337 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
17f7bb9e | 13338 | echo "configure:13339: checking for GL/gl.h" >&5 |
10f2d63a VZ |
13339 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13340 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13341 | else | |
13342 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 13343 | #line 13344 "configure" |
10f2d63a VZ |
13344 | #include "confdefs.h" |
13345 | #include <GL/gl.h> | |
13346 | EOF | |
13347 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
17f7bb9e | 13348 | { (eval echo configure:13349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
13349 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13350 | if test -z "$ac_err"; then | |
13351 | rm -rf conftest* | |
13352 | eval "ac_cv_header_$ac_safe=yes" | |
13353 | else | |
13354 | echo "$ac_err" >&5 | |
13355 | echo "configure: failed program was:" >&5 | |
13356 | cat conftest.$ac_ext >&5 | |
13357 | rm -rf conftest* | |
13358 | eval "ac_cv_header_$ac_safe=no" | |
13359 | fi | |
13360 | rm -f conftest* | |
13361 | fi | |
13362 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13363 | echo "$ac_t""yes" 1>&6 | |
13364 | ||
bdad4e7e RR |
13365 | cat >> confdefs.h <<\EOF |
13366 | #define wxUSE_OPENGL 1 | |
13367 | EOF | |
13368 | ||
13369 | cat >> confdefs.h <<\EOF | |
13370 | #define wxUSE_GLCANVAS 1 | |
13371 | EOF | |
13372 | ||
13373 | echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6 | |
17f7bb9e | 13374 | echo "configure:13375: checking for glFlush in -lGL" >&5 |
bdad4e7e | 13375 | ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'` |
10f2d63a VZ |
13376 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
13377 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13378 | else | |
13379 | ac_save_LIBS="$LIBS" | |
bdad4e7e | 13380 | LIBS="-lGL $LIBS" |
10f2d63a | 13381 | cat > conftest.$ac_ext <<EOF |
17f7bb9e | 13382 | #line 13383 "configure" |
10f2d63a VZ |
13383 | #include "confdefs.h" |
13384 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13385 | /* We use char because int might match the return type of a gcc2 | |
13386 | builtin and then its argument prototype would still apply. */ | |
bdad4e7e | 13387 | char glFlush(); |
10f2d63a VZ |
13388 | |
13389 | int main() { | |
bdad4e7e | 13390 | glFlush() |
10f2d63a VZ |
13391 | ; return 0; } |
13392 | EOF | |
17f7bb9e | 13393 | if { (eval echo configure:13394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
13394 | rm -rf conftest* |
13395 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13396 | else | |
13397 | echo "configure: failed program was:" >&5 | |
13398 | cat conftest.$ac_ext >&5 | |
13399 | rm -rf conftest* | |
13400 | eval "ac_cv_lib_$ac_lib_var=no" | |
13401 | fi | |
13402 | rm -f conftest* | |
13403 | LIBS="$ac_save_LIBS" | |
13404 | ||
13405 | fi | |
13406 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13407 | echo "$ac_t""yes" 1>&6 | |
13408 | ||
f6bcfd97 | 13409 | OPENGL_LINK="-lGL -lGLU" |
10f2d63a VZ |
13410 | |
13411 | else | |
13412 | echo "$ac_t""no" 1>&6 | |
13413 | ||
bdad4e7e | 13414 | echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6 |
17f7bb9e | 13415 | echo "configure:13416: checking for glFlush in -lMesaGL" >&5 |
bdad4e7e | 13416 | ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'` |
10f2d63a VZ |
13417 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
13418 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13419 | else | |
13420 | ac_save_LIBS="$LIBS" | |
13421 | LIBS="-lMesaGL $LIBS" | |
13422 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 13423 | #line 13424 "configure" |
10f2d63a VZ |
13424 | #include "confdefs.h" |
13425 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13426 | /* We use char because int might match the return type of a gcc2 | |
13427 | builtin and then its argument prototype would still apply. */ | |
bdad4e7e | 13428 | char glFlush(); |
10f2d63a VZ |
13429 | |
13430 | int main() { | |
bdad4e7e | 13431 | glFlush() |
10f2d63a VZ |
13432 | ; return 0; } |
13433 | EOF | |
17f7bb9e | 13434 | if { (eval echo configure:13435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
13435 | rm -rf conftest* |
13436 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13437 | else | |
13438 | echo "configure: failed program was:" >&5 | |
13439 | cat conftest.$ac_ext >&5 | |
13440 | rm -rf conftest* | |
13441 | eval "ac_cv_lib_$ac_lib_var=no" | |
13442 | fi | |
13443 | rm -f conftest* | |
13444 | LIBS="$ac_save_LIBS" | |
13445 | ||
13446 | fi | |
13447 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13448 | echo "$ac_t""yes" 1>&6 | |
13449 | ||
f6bcfd97 | 13450 | OPENGL_LINK="-lMesaGL -lMesaGLU" |
10f2d63a VZ |
13451 | |
13452 | else | |
13453 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13454 | fi |
13455 | ||
13456 | ||
13457 | fi | |
13458 | ||
13459 | ||
13460 | else | |
13461 | echo "$ac_t""no" 1>&6 | |
13462 | wxUSE_OPENGL=0 | |
13463 | fi | |
13464 | ||
13465 | fi | |
13466 | ||
13467 | ||
13468 | if test "$wxUSE_GUI" = "yes"; then | |
13469 | cat >> confdefs.h <<\EOF | |
13470 | #define wxUSE_GUI 1 | |
13471 | EOF | |
13472 | ||
13473 | ||
13474 | else | |
13475 | cat >> confdefs.h <<\EOF | |
13476 | #define wxUSE_NOGUI 1 | |
13477 | EOF | |
13478 | ||
13479 | fi | |
13480 | ||
13481 | ||
13482 | if test "$wxUSE_UNIX" = "yes"; then | |
13483 | cat >> confdefs.h <<\EOF | |
13484 | #define wxUSE_UNIX 1 | |
13485 | EOF | |
13486 | ||
13487 | fi | |
13488 | ||
13489 | ||
13490 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
13491 | cat >> confdefs.h <<\EOF | |
13492 | #define wxUSE_APPLE_IEEE 1 | |
13493 | EOF | |
13494 | ||
13495 | fi | |
13496 | ||
10f2d63a VZ |
13497 | if test "$wxUSE_WAVE" = "yes"; then |
13498 | cat >> confdefs.h <<\EOF | |
13499 | #define wxUSE_WAVE 1 | |
13500 | EOF | |
13501 | ||
13502 | fi | |
13503 | ||
13504 | if test "$wxUSE_FILE" = "yes"; then | |
13505 | cat >> confdefs.h <<\EOF | |
13506 | #define wxUSE_FILE 1 | |
13507 | EOF | |
13508 | ||
13509 | fi | |
13510 | ||
24528b0c VS |
13511 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
13512 | cat >> confdefs.h <<\EOF | |
13513 | #define wxUSE_FILESYSTEM 1 | |
13514 | EOF | |
13515 | ||
13516 | fi | |
13517 | ||
10f2d63a VZ |
13518 | if test "$wxUSE_FS_INET" = "yes"; then |
13519 | cat >> confdefs.h <<\EOF | |
13520 | #define wxUSE_FS_INET 1 | |
13521 | EOF | |
13522 | ||
13523 | fi | |
13524 | ||
13525 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
13526 | cat >> confdefs.h <<\EOF | |
13527 | #define wxUSE_FS_ZIP 1 | |
13528 | EOF | |
13529 | ||
13530 | fi | |
13531 | ||
13532 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
13533 | cat >> confdefs.h <<\EOF | |
13534 | #define wxUSE_ZIPSTREAM 1 | |
13535 | EOF | |
13536 | ||
13537 | fi | |
13538 | ||
eb4efbdc VZ |
13539 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
13540 | cat >> confdefs.h <<\EOF | |
13541 | #define wxUSE_ON_FATAL_EXCEPTION 1 | |
13542 | EOF | |
13543 | ||
13544 | fi | |
13545 | ||
10f2d63a VZ |
13546 | if test "$wxUSE_BUSYINFO" = "yes"; then |
13547 | cat >> confdefs.h <<\EOF | |
13548 | #define wxUSE_BUSYINFO 1 | |
13549 | EOF | |
13550 | ||
13551 | fi | |
13552 | ||
13553 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
13554 | cat >> confdefs.h <<\EOF | |
13555 | #define wxUSE_STD_IOSTREAM 1 | |
13556 | EOF | |
13557 | ||
13558 | fi | |
13559 | ||
13560 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
13561 | if test "$wxUSE_FILE" != "yes"; then | |
13562 | echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2 | |
13563 | else | |
13564 | cat >> confdefs.h <<\EOF | |
13565 | #define wxUSE_TEXTFILE 1 | |
13566 | EOF | |
13567 | ||
13568 | fi | |
13569 | fi | |
13570 | ||
13571 | if test "$wxUSE_CONFIG" = "yes" ; then | |
13572 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
13573 | echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2 | |
13574 | else | |
13575 | cat >> confdefs.h <<\EOF | |
13576 | #define wxUSE_CONFIG 1 | |
13577 | EOF | |
13578 | ||
13579 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
13580 | fi | |
13581 | fi | |
13582 | ||
13583 | if test "$wxUSE_INTL" = "yes" ; then | |
13584 | if test "$wxUSE_FILE" != "yes"; then | |
13585 | echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2 | |
13586 | else | |
13587 | cat >> confdefs.h <<\EOF | |
13588 | #define wxUSE_INTL 1 | |
13589 | EOF | |
13590 | ||
13591 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 13592 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
13593 | fi |
13594 | fi | |
13595 | ||
13596 | if test "$wxUSE_LOG" = "yes"; then | |
13597 | cat >> confdefs.h <<\EOF | |
13598 | #define wxUSE_LOG 1 | |
13599 | EOF | |
13600 | ||
13601 | fi | |
13602 | ||
13603 | if test "$wxUSE_LONGLONG" = "yes"; then | |
13604 | cat >> confdefs.h <<\EOF | |
13605 | #define wxUSE_LONGLONG 1 | |
13606 | EOF | |
13607 | ||
13608 | fi | |
13609 | ||
e8f65ba6 RR |
13610 | if test "$wxUSE_GEOMETRY" = "yes"; then |
13611 | cat >> confdefs.h <<\EOF | |
13612 | #define wxUSE_GEOMETRY 1 | |
13613 | EOF | |
13614 | ||
13615 | fi | |
13616 | ||
10f2d63a VZ |
13617 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
13618 | cat >> confdefs.h <<\EOF | |
13619 | #define wxUSE_DIALUP_MANAGER 1 | |
13620 | EOF | |
13621 | ||
70f7a477 | 13622 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
13623 | fi |
13624 | ||
13625 | if test "$wxUSE_STREAMS" = "yes" ; then | |
13626 | cat >> confdefs.h <<\EOF | |
13627 | #define wxUSE_STREAMS 1 | |
13628 | EOF | |
13629 | ||
13630 | fi | |
13631 | ||
10f2d63a | 13632 | |
afc31813 | 13633 | if test "$wxUSE_TIMEDATE" = "yes"; then |
83307f33 VZ |
13634 | for ac_func in strptime |
13635 | do | |
13636 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
17f7bb9e | 13637 | echo "configure:13638: checking for $ac_func" >&5 |
83307f33 VZ |
13638 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13639 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13640 | else | |
13641 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 13642 | #line 13643 "configure" |
83307f33 VZ |
13643 | #include "confdefs.h" |
13644 | /* System header to define __stub macros and hopefully few prototypes, | |
13645 | which can conflict with char $ac_func(); below. */ | |
13646 | #include <assert.h> | |
13647 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13648 | /* We use char because int might match the return type of a gcc2 | |
13649 | builtin and then its argument prototype would still apply. */ | |
13650 | char $ac_func(); | |
13651 | ||
13652 | int main() { | |
13653 | ||
13654 | /* The GNU C library defines this for functions which it implements | |
13655 | to always fail with ENOSYS. Some functions are actually named | |
13656 | something starting with __ and the normal name is an alias. */ | |
13657 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13658 | choke me | |
13659 | #else | |
e8482f24 | 13660 | $ac_func(); |
83307f33 VZ |
13661 | #endif |
13662 | ||
13663 | ; return 0; } | |
13664 | EOF | |
17f7bb9e | 13665 | if { (eval echo configure:13666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
83307f33 VZ |
13666 | rm -rf conftest* |
13667 | eval "ac_cv_func_$ac_func=yes" | |
13668 | else | |
13669 | echo "configure: failed program was:" >&5 | |
13670 | cat conftest.$ac_ext >&5 | |
13671 | rm -rf conftest* | |
13672 | eval "ac_cv_func_$ac_func=no" | |
13673 | fi | |
13674 | rm -f conftest* | |
13675 | fi | |
13676 | ||
13677 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13678 | echo "$ac_t""yes" 1>&6 | |
13679 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13680 | cat >> confdefs.h <<EOF | |
13681 | #define $ac_tr_func 1 | |
13682 | EOF | |
13683 | ||
13684 | else | |
13685 | echo "$ac_t""no" 1>&6 | |
13686 | fi | |
13687 | done | |
13688 | ||
13689 | ||
360d6699 | 13690 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
17f7bb9e | 13691 | echo "configure:13692: checking for timezone variable in <time.h>" >&5 |
360d6699 VZ |
13692 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
13693 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13694 | else | |
13695 | ||
13696 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 13697 | #line 13698 "configure" |
360d6699 VZ |
13698 | #include "confdefs.h" |
13699 | ||
b4085ce6 | 13700 | #include <time.h> |
360d6699 VZ |
13701 | |
13702 | int main() { | |
13703 | ||
13704 | int tz; | |
13705 | tz = __timezone; | |
13706 | ||
13707 | ; return 0; } | |
13708 | EOF | |
17f7bb9e | 13709 | if { (eval echo configure:13710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
360d6699 VZ |
13710 | rm -rf conftest* |
13711 | ||
13712 | wx_cv_var_timezone=__timezone | |
13713 | ||
13714 | else | |
13715 | echo "configure: failed program was:" >&5 | |
13716 | cat conftest.$ac_ext >&5 | |
13717 | rm -rf conftest* | |
13718 | ||
13719 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 13720 | #line 13721 "configure" |
360d6699 VZ |
13721 | #include "confdefs.h" |
13722 | ||
b4085ce6 | 13723 | #include <time.h> |
360d6699 VZ |
13724 | |
13725 | int main() { | |
13726 | ||
13727 | int tz; | |
13728 | tz = _timezone; | |
13729 | ||
13730 | ; return 0; } | |
13731 | EOF | |
17f7bb9e | 13732 | if { (eval echo configure:13733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
360d6699 VZ |
13733 | rm -rf conftest* |
13734 | ||
13735 | wx_cv_var_timezone=_timezone | |
13736 | ||
5357c8e8 VZ |
13737 | else |
13738 | echo "configure: failed program was:" >&5 | |
13739 | cat conftest.$ac_ext >&5 | |
13740 | rm -rf conftest* | |
13741 | ||
13742 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 13743 | #line 13744 "configure" |
5357c8e8 VZ |
13744 | #include "confdefs.h" |
13745 | ||
b4085ce6 | 13746 | #include <time.h> |
5357c8e8 VZ |
13747 | |
13748 | int main() { | |
13749 | ||
13750 | int tz; | |
13751 | tz = timezone; | |
13752 | ||
13753 | ; return 0; } | |
13754 | EOF | |
17f7bb9e | 13755 | if { (eval echo configure:13756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
5357c8e8 VZ |
13756 | rm -rf conftest* |
13757 | ||
13758 | wx_cv_var_timezone=timezone | |
13759 | ||
360d6699 VZ |
13760 | else |
13761 | echo "configure: failed program was:" >&5 | |
13762 | cat conftest.$ac_ext >&5 | |
13763 | rm -rf conftest* | |
13764 | { echo "configure: error: no timezone variable" 1>&2; exit 1; } | |
5357c8e8 VZ |
13765 | |
13766 | fi | |
13767 | rm -f conftest* | |
13768 | ||
360d6699 VZ |
13769 | |
13770 | fi | |
13771 | rm -f conftest* | |
13772 | ||
13773 | ||
13774 | fi | |
13775 | rm -f conftest* | |
13776 | ||
13777 | ||
13778 | fi | |
13779 | ||
13780 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 | |
13781 | ||
13782 | cat >> confdefs.h <<EOF | |
13783 | #define WX_TIMEZONE $wx_cv_var_timezone | |
13784 | EOF | |
13785 | ||
13786 | ||
3fcdd07b | 13787 | for ac_func in localtime |
afc31813 VZ |
13788 | do |
13789 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
17f7bb9e | 13790 | echo "configure:13791: checking for $ac_func" >&5 |
afc31813 VZ |
13791 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13792 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13793 | else | |
13794 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 13795 | #line 13796 "configure" |
10f2d63a | 13796 | #include "confdefs.h" |
afc31813 VZ |
13797 | /* System header to define __stub macros and hopefully few prototypes, |
13798 | which can conflict with char $ac_func(); below. */ | |
13799 | #include <assert.h> | |
13800 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13801 | /* We use char because int might match the return type of a gcc2 | |
13802 | builtin and then its argument prototype would still apply. */ | |
13803 | char $ac_func(); | |
13804 | ||
10f2d63a | 13805 | int main() { |
afc31813 VZ |
13806 | |
13807 | /* The GNU C library defines this for functions which it implements | |
13808 | to always fail with ENOSYS. Some functions are actually named | |
13809 | something starting with __ and the normal name is an alias. */ | |
13810 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13811 | choke me | |
13812 | #else | |
e8482f24 | 13813 | $ac_func(); |
afc31813 VZ |
13814 | #endif |
13815 | ||
10f2d63a VZ |
13816 | ; return 0; } |
13817 | EOF | |
17f7bb9e | 13818 | if { (eval echo configure:13819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a | 13819 | rm -rf conftest* |
afc31813 | 13820 | eval "ac_cv_func_$ac_func=yes" |
10f2d63a VZ |
13821 | else |
13822 | echo "configure: failed program was:" >&5 | |
13823 | cat conftest.$ac_ext >&5 | |
13824 | rm -rf conftest* | |
afc31813 VZ |
13825 | eval "ac_cv_func_$ac_func=no" |
13826 | fi | |
13827 | rm -f conftest* | |
13828 | fi | |
13829 | ||
13830 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13831 | echo "$ac_t""yes" 1>&6 | |
13832 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13833 | cat >> confdefs.h <<EOF | |
13834 | #define $ac_tr_func 1 | |
13835 | EOF | |
3fcdd07b | 13836 | |
afc31813 VZ |
13837 | else |
13838 | echo "$ac_t""no" 1>&6 | |
13839 | fi | |
13840 | done | |
13841 | ||
13842 | ||
0470b1e6 VZ |
13843 | if test "$ac_cv_func_localtime" = "yes"; then |
13844 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
17f7bb9e | 13845 | echo "configure:13846: checking for tm_gmtoff in struct tm" >&5 |
0470b1e6 VZ |
13846 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
13847 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13848 | else | |
13849 | ||
13850 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 13851 | #line 13852 "configure" |
0470b1e6 VZ |
13852 | #include "confdefs.h" |
13853 | ||
b4085ce6 | 13854 | #include <time.h> |
0470b1e6 VZ |
13855 | |
13856 | int main() { | |
13857 | ||
13858 | struct tm tm; | |
13859 | tm.tm_gmtoff++; | |
13860 | ||
13861 | ; return 0; } | |
13862 | EOF | |
17f7bb9e | 13863 | if { (eval echo configure:13864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0470b1e6 VZ |
13864 | rm -rf conftest* |
13865 | ||
f03a98d8 | 13866 | wx_cv_struct_tm_has_gmtoff=yes |
0470b1e6 VZ |
13867 | cat >> confdefs.h <<\EOF |
13868 | #define WX_GMTOFF_IN_TM 1 | |
13869 | EOF | |
13870 | ||
13871 | ||
13872 | else | |
13873 | echo "configure: failed program was:" >&5 | |
13874 | cat conftest.$ac_ext >&5 | |
13875 | rm -rf conftest* | |
13876 | wx_cv_struct_tm_has_gmtoff=no | |
13877 | ||
13878 | fi | |
13879 | rm -f conftest* | |
13880 | ||
13881 | fi | |
13882 | ||
13883 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
3fcdd07b VZ |
13884 | fi |
13885 | ||
13886 | for ac_func in gettimeofday ftime | |
13887 | do | |
13888 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
17f7bb9e | 13889 | echo "configure:13890: checking for $ac_func" >&5 |
3fcdd07b VZ |
13890 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13891 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13892 | else | |
13893 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 13894 | #line 13895 "configure" |
3fcdd07b VZ |
13895 | #include "confdefs.h" |
13896 | /* System header to define __stub macros and hopefully few prototypes, | |
13897 | which can conflict with char $ac_func(); below. */ | |
13898 | #include <assert.h> | |
13899 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13900 | /* We use char because int might match the return type of a gcc2 | |
13901 | builtin and then its argument prototype would still apply. */ | |
13902 | char $ac_func(); | |
13903 | ||
13904 | int main() { | |
13905 | ||
13906 | /* The GNU C library defines this for functions which it implements | |
13907 | to always fail with ENOSYS. Some functions are actually named | |
13908 | something starting with __ and the normal name is an alias. */ | |
13909 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13910 | choke me | |
13911 | #else | |
e8482f24 | 13912 | $ac_func(); |
3fcdd07b VZ |
13913 | #endif |
13914 | ||
13915 | ; return 0; } | |
13916 | EOF | |
17f7bb9e | 13917 | if { (eval echo configure:13918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3fcdd07b VZ |
13918 | rm -rf conftest* |
13919 | eval "ac_cv_func_$ac_func=yes" | |
13920 | else | |
13921 | echo "configure: failed program was:" >&5 | |
13922 | cat conftest.$ac_ext >&5 | |
13923 | rm -rf conftest* | |
13924 | eval "ac_cv_func_$ac_func=no" | |
13925 | fi | |
13926 | rm -f conftest* | |
13927 | fi | |
13928 | ||
13929 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13930 | echo "$ac_t""yes" 1>&6 | |
13931 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13932 | cat >> confdefs.h <<EOF | |
13933 | #define $ac_tr_func 1 | |
13934 | EOF | |
13935 | break | |
13936 | else | |
13937 | echo "$ac_t""no" 1>&6 | |
13938 | fi | |
13939 | done | |
13940 | ||
13941 | ||
13942 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
afc31813 | 13943 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 |
17f7bb9e | 13944 | echo "configure:13945: checking whether gettimeofday takes two arguments" >&5 |
afc31813 VZ |
13945 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
13946 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13947 | else | |
13948 | ||
13949 | ||
13950 | ac_ext=C | |
13951 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13952 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13953 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13954 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13955 | cross_compiling=$ac_cv_prog_cxx_cross | |
13956 | ||
13957 | ||
13958 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 13959 | #line 13960 "configure" |
10f2d63a | 13960 | #include "confdefs.h" |
afc31813 VZ |
13961 | |
13962 | #include <sys/time.h> | |
13963 | #include <unistd.h> | |
13964 | ||
10f2d63a | 13965 | int main() { |
afc31813 VZ |
13966 | |
13967 | struct timeval tv; | |
13968 | struct timezone tz; | |
13969 | gettimeofday(&tv, &tz); | |
13970 | ||
10f2d63a VZ |
13971 | ; return 0; } |
13972 | EOF | |
17f7bb9e | 13973 | if { (eval echo configure:13974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a | 13974 | rm -rf conftest* |
afc31813 | 13975 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a VZ |
13976 | else |
13977 | echo "configure: failed program was:" >&5 | |
13978 | cat conftest.$ac_ext >&5 | |
13979 | rm -rf conftest* | |
13980 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 13981 | #line 13982 "configure" |
10f2d63a | 13982 | #include "confdefs.h" |
afc31813 VZ |
13983 | |
13984 | #include <sys/time.h> | |
13985 | #include <unistd.h> | |
13986 | ||
10f2d63a | 13987 | int main() { |
afc31813 VZ |
13988 | |
13989 | struct timeval tv; | |
13990 | gettimeofday(&tv); | |
13991 | ||
10f2d63a VZ |
13992 | ; return 0; } |
13993 | EOF | |
17f7bb9e | 13994 | if { (eval echo configure:13995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a | 13995 | rm -rf conftest* |
afc31813 | 13996 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a VZ |
13997 | else |
13998 | echo "configure: failed program was:" >&5 | |
13999 | cat conftest.$ac_ext >&5 | |
14000 | rm -rf conftest* | |
afc31813 VZ |
14001 | wx_cv_func_gettimeofday_has_2_args=unknown |
14002 | ||
10f2d63a VZ |
14003 | fi |
14004 | rm -f conftest* | |
afc31813 | 14005 | |
10f2d63a VZ |
14006 | fi |
14007 | rm -f conftest* | |
afc31813 | 14008 | ac_ext=c |
10f2d63a VZ |
14009 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
14010 | ac_cpp='$CPP $CPPFLAGS' | |
14011 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14012 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14013 | cross_compiling=$ac_cv_prog_cc_cross | |
14014 | ||
afc31813 VZ |
14015 | |
14016 | fi | |
14017 | ||
14018 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 14019 | |
afc31813 VZ |
14020 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
14021 | cat >> confdefs.h <<\EOF | |
14022 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
14023 | EOF | |
14024 | ||
14025 | fi | |
14026 | fi | |
14027 | ||
14028 | cat >> confdefs.h <<\EOF | |
14029 | #define wxUSE_TIMEDATE 1 | |
14030 | EOF | |
14031 | ||
14032 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
14033 | fi | |
14034 | ||
14035 | ||
b089607b VZ |
14036 | if test "$TOOLKIT" != "MSW"; then |
14037 | ||
afc31813 | 14038 | if test "$wxUSE_SOCKETS" = "yes"; then |
c63c7106 | 14039 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
17f7bb9e | 14040 | echo "configure:14041: checking for socket" >&5 |
c63c7106 VZ |
14041 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
14042 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14043 | else | |
14044 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 14045 | #line 14046 "configure" |
c63c7106 VZ |
14046 | #include "confdefs.h" |
14047 | /* System header to define __stub macros and hopefully few prototypes, | |
14048 | which can conflict with char socket(); below. */ | |
14049 | #include <assert.h> | |
14050 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14051 | /* We use char because int might match the return type of a gcc2 | |
14052 | builtin and then its argument prototype would still apply. */ | |
14053 | char socket(); | |
14054 | ||
14055 | int main() { | |
14056 | ||
14057 | /* The GNU C library defines this for functions which it implements | |
14058 | to always fail with ENOSYS. Some functions are actually named | |
14059 | something starting with __ and the normal name is an alias. */ | |
14060 | #if defined (__stub_socket) || defined (__stub___socket) | |
14061 | choke me | |
14062 | #else | |
e8482f24 | 14063 | socket(); |
c63c7106 VZ |
14064 | #endif |
14065 | ||
14066 | ; return 0; } | |
14067 | EOF | |
17f7bb9e | 14068 | if { (eval echo configure:14069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c63c7106 VZ |
14069 | rm -rf conftest* |
14070 | eval "ac_cv_func_socket=yes" | |
14071 | else | |
14072 | echo "configure: failed program was:" >&5 | |
14073 | cat conftest.$ac_ext >&5 | |
14074 | rm -rf conftest* | |
14075 | eval "ac_cv_func_socket=no" | |
14076 | fi | |
14077 | rm -f conftest* | |
14078 | fi | |
14079 | ||
14080 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
14081 | echo "$ac_t""yes" 1>&6 | |
14082 | : | |
14083 | else | |
14084 | echo "$ac_t""no" 1>&6 | |
14085 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
17f7bb9e | 14086 | echo "configure:14087: checking for socket in -lsocket" >&5 |
c63c7106 VZ |
14087 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
14088 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14089 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14090 | else | |
14091 | ac_save_LIBS="$LIBS" | |
14092 | LIBS="-lsocket $LIBS" | |
14093 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 14094 | #line 14095 "configure" |
c63c7106 VZ |
14095 | #include "confdefs.h" |
14096 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14097 | /* We use char because int might match the return type of a gcc2 | |
14098 | builtin and then its argument prototype would still apply. */ | |
14099 | char socket(); | |
14100 | ||
14101 | int main() { | |
14102 | socket() | |
14103 | ; return 0; } | |
14104 | EOF | |
17f7bb9e | 14105 | if { (eval echo configure:14106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c63c7106 VZ |
14106 | rm -rf conftest* |
14107 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14108 | else | |
14109 | echo "configure: failed program was:" >&5 | |
14110 | cat conftest.$ac_ext >&5 | |
14111 | rm -rf conftest* | |
14112 | eval "ac_cv_lib_$ac_lib_var=no" | |
14113 | fi | |
14114 | rm -f conftest* | |
14115 | LIBS="$ac_save_LIBS" | |
14116 | ||
14117 | fi | |
14118 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14119 | echo "$ac_t""yes" 1>&6 | |
14120 | INET_LINK="$INET_LINK -lsocket" | |
c63c7106 VZ |
14121 | else |
14122 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
14123 | |
14124 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 | |
14125 | wxUSE_SOCKETS=no | |
14126 | ||
14127 | ||
c63c7106 VZ |
14128 | fi |
14129 | ||
14130 | ||
14131 | fi | |
14132 | ||
10f2d63a VZ |
14133 | fi |
14134 | ||
b089607b | 14135 | |
afc31813 | 14136 | if test "$wxUSE_SOCKETS" = "yes" ; then |
51a9faba | 14137 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 |
17f7bb9e | 14138 | echo "configure:14139: checking what is the type of the third argument of getsockname" >&5 |
51a9faba VZ |
14139 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
14140 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14141 | else | |
14142 | ||
14143 | ||
14144 | ac_ext=C | |
afc31813 VZ |
14145 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
14146 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14147 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14148 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14149 | cross_compiling=$ac_cv_prog_cxx_cross | |
14150 | ||
51a9faba VZ |
14151 | |
14152 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 14153 | #line 14154 "configure" |
afc31813 | 14154 | #include "confdefs.h" |
51a9faba | 14155 | |
3ace2e6d | 14156 | #include <sys/types.h> |
51a9faba VZ |
14157 | #include <sys/socket.h> |
14158 | ||
afc31813 | 14159 | int main() { |
51a9faba VZ |
14160 | |
14161 | socklen_t len; | |
14162 | getsockname(0, 0, &len); | |
14163 | ||
afc31813 VZ |
14164 | ; return 0; } |
14165 | EOF | |
17f7bb9e | 14166 | if { (eval echo configure:14167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
afc31813 | 14167 | rm -rf conftest* |
51a9faba | 14168 | wx_cv_type_getsockname3=socklen_t |
afc31813 VZ |
14169 | else |
14170 | echo "configure: failed program was:" >&5 | |
14171 | cat conftest.$ac_ext >&5 | |
14172 | rm -rf conftest* | |
14173 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 14174 | #line 14175 "configure" |
afc31813 | 14175 | #include "confdefs.h" |
51a9faba | 14176 | |
3ace2e6d | 14177 | #include <sys/types.h> |
51a9faba VZ |
14178 | #include <sys/socket.h> |
14179 | ||
afc31813 | 14180 | int main() { |
51a9faba VZ |
14181 | |
14182 | size_t len; | |
14183 | getsockname(0, 0, &len); | |
14184 | ||
afc31813 VZ |
14185 | ; return 0; } |
14186 | EOF | |
17f7bb9e | 14187 | if { (eval echo configure:14188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
afc31813 | 14188 | rm -rf conftest* |
51a9faba | 14189 | wx_cv_type_getsockname3=size_t |
afc31813 VZ |
14190 | else |
14191 | echo "configure: failed program was:" >&5 | |
14192 | cat conftest.$ac_ext >&5 | |
14193 | rm -rf conftest* | |
14194 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 14195 | #line 14196 "configure" |
afc31813 | 14196 | #include "confdefs.h" |
51a9faba | 14197 | |
3ace2e6d | 14198 | #include <sys/types.h> |
51a9faba VZ |
14199 | #include <sys/socket.h> |
14200 | ||
afc31813 | 14201 | int main() { |
51a9faba VZ |
14202 | |
14203 | int len; | |
14204 | getsockname(0, 0, &len); | |
14205 | ||
afc31813 VZ |
14206 | ; return 0; } |
14207 | EOF | |
17f7bb9e | 14208 | if { (eval echo configure:14209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
afc31813 | 14209 | rm -rf conftest* |
51a9faba | 14210 | wx_cv_type_getsockname3=int |
afc31813 VZ |
14211 | else |
14212 | echo "configure: failed program was:" >&5 | |
14213 | cat conftest.$ac_ext >&5 | |
3ace2e6d SN |
14214 | rm -rf conftest* |
14215 | wx_cv_type_getsockname3=unknown | |
14216 | ||
afc31813 VZ |
14217 | fi |
14218 | rm -f conftest* | |
51a9faba | 14219 | |
afc31813 VZ |
14220 | fi |
14221 | rm -f conftest* | |
51a9faba | 14222 | |
afc31813 VZ |
14223 | fi |
14224 | rm -f conftest* | |
51a9faba VZ |
14225 | |
14226 | ac_ext=c | |
afc31813 VZ |
14227 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
14228 | ac_cpp='$CPP $CPPFLAGS' | |
14229 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14230 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14231 | cross_compiling=$ac_cv_prog_cc_cross | |
14232 | ||
51a9faba VZ |
14233 | |
14234 | fi | |
14235 | ||
14236 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
14237 | ||
14238 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
14239 | wxUSE_SOCKETS=no | |
14240 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 | |
14241 | else | |
14242 | cat >> confdefs.h <<EOF | |
14243 | #define SOCKLEN_T $wx_cv_type_getsockname3 | |
14244 | EOF | |
14245 | ||
14246 | fi | |
14247 | fi | |
afc31813 | 14248 | |
c521c494 RL |
14249 | fi |
14250 | ||
51a9faba | 14251 | if test "$wxUSE_SOCKETS" = "yes" ; then |
afc31813 VZ |
14252 | cat >> confdefs.h <<\EOF |
14253 | #define wxUSE_SOCKETS 1 | |
14254 | EOF | |
14255 | ||
70f7a477 | 14256 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
14257 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol" |
14258 | fi | |
14259 | ||
10f2d63a | 14260 | |
dc3d889d VZ |
14261 | if test "$wxUSE_GUI" = "yes"; then |
14262 | ||
b089607b VZ |
14263 | if test "$TOOLKIT" != "MSW"; then |
14264 | ||
ceded8b9 | 14265 | if test "$wxUSE_JOYSTICK" = "yes"; then |
10f2d63a VZ |
14266 | for ac_hdr in linux/joystick.h |
14267 | do | |
14268 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
14269 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
17f7bb9e | 14270 | echo "configure:14271: checking for $ac_hdr" >&5 |
10f2d63a VZ |
14271 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14272 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14273 | else | |
14274 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 14275 | #line 14276 "configure" |
10f2d63a VZ |
14276 | #include "confdefs.h" |
14277 | #include <$ac_hdr> | |
14278 | EOF | |
14279 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
17f7bb9e | 14280 | { (eval echo configure:14281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
14281 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14282 | if test -z "$ac_err"; then | |
14283 | rm -rf conftest* | |
14284 | eval "ac_cv_header_$ac_safe=yes" | |
14285 | else | |
14286 | echo "$ac_err" >&5 | |
14287 | echo "configure: failed program was:" >&5 | |
14288 | cat conftest.$ac_ext >&5 | |
14289 | rm -rf conftest* | |
14290 | eval "ac_cv_header_$ac_safe=no" | |
14291 | fi | |
14292 | rm -f conftest* | |
14293 | fi | |
14294 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
14295 | echo "$ac_t""yes" 1>&6 | |
14296 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
14297 | cat >> confdefs.h <<EOF | |
14298 | #define $ac_tr_hdr 1 | |
14299 | EOF | |
14300 | ||
14301 | else | |
14302 | echo "$ac_t""no" 1>&6 | |
14303 | fi | |
14304 | done | |
14305 | ||
b089607b | 14306 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
ceded8b9 | 14307 | wxUSE_JOYSTICK=no |
dc3d889d | 14308 | echo "configure: warning: Joystick not supported by this system" 1>&2 |
b089607b VZ |
14309 | fi |
14310 | fi | |
14311 | ||
14312 | fi | |
14313 | ||
ceded8b9 | 14314 | if test "$wxUSE_JOYSTICK" = "yes"; then |
10f2d63a VZ |
14315 | cat >> confdefs.h <<\EOF |
14316 | #define wxUSE_JOYSTICK 1 | |
14317 | EOF | |
14318 | ||
14319 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
10f2d63a VZ |
14320 | fi |
14321 | ||
dc3d889d VZ |
14322 | fi |
14323 | ||
10f2d63a | 14324 | |
b089607b VZ |
14325 | if test "$TOOLKIT" != "MSW"; then |
14326 | ||
10f2d63a VZ |
14327 | HAVE_DL_FUNCS=0 |
14328 | HAVE_SHL_FUNCS=0 | |
14329 | if test "$wxUSE_DYNLIB_CLASS" = "yes"; then | |
b4085ce6 GD |
14330 | if test "$USE_MAC" = 1; then |
14331 | HAVE_DL_FUNCS=1 | |
14332 | else | |
14333 | for ac_func in dlopen | |
10f2d63a VZ |
14334 | do |
14335 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
17f7bb9e | 14336 | echo "configure:14337: checking for $ac_func" >&5 |
10f2d63a VZ |
14337 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14338 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14339 | else | |
14340 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 14341 | #line 14342 "configure" |
10f2d63a VZ |
14342 | #include "confdefs.h" |
14343 | /* System header to define __stub macros and hopefully few prototypes, | |
14344 | which can conflict with char $ac_func(); below. */ | |
14345 | #include <assert.h> | |
14346 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14347 | /* We use char because int might match the return type of a gcc2 | |
14348 | builtin and then its argument prototype would still apply. */ | |
14349 | char $ac_func(); | |
14350 | ||
14351 | int main() { | |
14352 | ||
14353 | /* The GNU C library defines this for functions which it implements | |
14354 | to always fail with ENOSYS. Some functions are actually named | |
14355 | something starting with __ and the normal name is an alias. */ | |
14356 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14357 | choke me | |
14358 | #else | |
e8482f24 | 14359 | $ac_func(); |
10f2d63a VZ |
14360 | #endif |
14361 | ||
14362 | ; return 0; } | |
14363 | EOF | |
17f7bb9e | 14364 | if { (eval echo configure:14365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
14365 | rm -rf conftest* |
14366 | eval "ac_cv_func_$ac_func=yes" | |
14367 | else | |
14368 | echo "configure: failed program was:" >&5 | |
14369 | cat conftest.$ac_ext >&5 | |
14370 | rm -rf conftest* | |
14371 | eval "ac_cv_func_$ac_func=no" | |
14372 | fi | |
14373 | rm -f conftest* | |
14374 | fi | |
14375 | ||
14376 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14377 | echo "$ac_t""yes" 1>&6 | |
14378 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14379 | cat >> confdefs.h <<EOF | |
14380 | #define $ac_tr_func 1 | |
14381 | EOF | |
14382 | ||
14383 | cat >> confdefs.h <<\EOF | |
14384 | #define HAVE_DLOPEN 1 | |
14385 | EOF | |
14386 | ||
14387 | HAVE_DL_FUNCS=1 | |
14388 | ||
14389 | else | |
14390 | echo "$ac_t""no" 1>&6 | |
14391 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
17f7bb9e | 14392 | echo "configure:14393: checking for dlopen in -ldl" >&5 |
10f2d63a VZ |
14393 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
14394 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14395 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14396 | else | |
14397 | ac_save_LIBS="$LIBS" | |
14398 | LIBS="-ldl $LIBS" | |
14399 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 14400 | #line 14401 "configure" |
10f2d63a VZ |
14401 | #include "confdefs.h" |
14402 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14403 | /* We use char because int might match the return type of a gcc2 | |
14404 | builtin and then its argument prototype would still apply. */ | |
14405 | char dlopen(); | |
14406 | ||
14407 | int main() { | |
14408 | dlopen() | |
14409 | ; return 0; } | |
14410 | EOF | |
17f7bb9e | 14411 | if { (eval echo configure:14412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
14412 | rm -rf conftest* |
14413 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14414 | else | |
14415 | echo "configure: failed program was:" >&5 | |
14416 | cat conftest.$ac_ext >&5 | |
14417 | rm -rf conftest* | |
14418 | eval "ac_cv_lib_$ac_lib_var=no" | |
14419 | fi | |
14420 | rm -f conftest* | |
14421 | LIBS="$ac_save_LIBS" | |
14422 | ||
14423 | fi | |
14424 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14425 | echo "$ac_t""yes" 1>&6 | |
14426 | ||
14427 | cat >> confdefs.h <<\EOF | |
14428 | #define HAVE_DLOPEN 1 | |
14429 | EOF | |
14430 | ||
14431 | HAVE_DL_FUNCS=1 | |
14432 | LIBS="$LIBS -ldl" | |
14433 | ||
14434 | else | |
14435 | echo "$ac_t""no" 1>&6 | |
14436 | ||
14437 | for ac_func in shl_load | |
14438 | do | |
14439 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
17f7bb9e | 14440 | echo "configure:14441: checking for $ac_func" >&5 |
10f2d63a VZ |
14441 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14442 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14443 | else | |
14444 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 14445 | #line 14446 "configure" |
10f2d63a VZ |
14446 | #include "confdefs.h" |
14447 | /* System header to define __stub macros and hopefully few prototypes, | |
14448 | which can conflict with char $ac_func(); below. */ | |
14449 | #include <assert.h> | |
14450 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14451 | /* We use char because int might match the return type of a gcc2 | |
14452 | builtin and then its argument prototype would still apply. */ | |
14453 | char $ac_func(); | |
14454 | ||
14455 | int main() { | |
14456 | ||
14457 | /* The GNU C library defines this for functions which it implements | |
14458 | to always fail with ENOSYS. Some functions are actually named | |
14459 | something starting with __ and the normal name is an alias. */ | |
14460 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14461 | choke me | |
14462 | #else | |
e8482f24 | 14463 | $ac_func(); |
10f2d63a VZ |
14464 | #endif |
14465 | ||
14466 | ; return 0; } | |
14467 | EOF | |
17f7bb9e | 14468 | if { (eval echo configure:14469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
14469 | rm -rf conftest* |
14470 | eval "ac_cv_func_$ac_func=yes" | |
14471 | else | |
14472 | echo "configure: failed program was:" >&5 | |
14473 | cat conftest.$ac_ext >&5 | |
14474 | rm -rf conftest* | |
14475 | eval "ac_cv_func_$ac_func=no" | |
14476 | fi | |
14477 | rm -f conftest* | |
14478 | fi | |
14479 | ||
14480 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14481 | echo "$ac_t""yes" 1>&6 | |
14482 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14483 | cat >> confdefs.h <<EOF | |
14484 | #define $ac_tr_func 1 | |
14485 | EOF | |
14486 | ||
14487 | cat >> confdefs.h <<\EOF | |
14488 | #define HAVE_SHL_LOAD 1 | |
14489 | EOF | |
14490 | ||
14491 | HAVE_SHL_FUNCS=1 | |
14492 | ||
14493 | else | |
14494 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 | 14495 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 |
17f7bb9e | 14496 | echo "configure:14497: checking for dld in -lshl_load" >&5 |
f6bcfd97 BP |
14497 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
14498 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14499 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14500 | else | |
14501 | ac_save_LIBS="$LIBS" | |
14502 | LIBS="-lshl_load $LIBS" | |
14503 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 14504 | #line 14505 "configure" |
f6bcfd97 BP |
14505 | #include "confdefs.h" |
14506 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14507 | /* We use char because int might match the return type of a gcc2 | |
14508 | builtin and then its argument prototype would still apply. */ | |
14509 | char dld(); | |
14510 | ||
14511 | int main() { | |
14512 | dld() | |
14513 | ; return 0; } | |
14514 | EOF | |
17f7bb9e | 14515 | if { (eval echo configure:14516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f6bcfd97 BP |
14516 | rm -rf conftest* |
14517 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14518 | else | |
14519 | echo "configure: failed program was:" >&5 | |
14520 | cat conftest.$ac_ext >&5 | |
14521 | rm -rf conftest* | |
14522 | eval "ac_cv_lib_$ac_lib_var=no" | |
14523 | fi | |
14524 | rm -f conftest* | |
14525 | LIBS="$ac_save_LIBS" | |
14526 | ||
14527 | fi | |
14528 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14529 | echo "$ac_t""yes" 1>&6 | |
14530 | ||
14531 | HAVE_SHL_FUNCS=1 | |
14532 | LIBS="$LIBS -ldld" | |
14533 | ||
14534 | else | |
14535 | echo "$ac_t""no" 1>&6 | |
14536 | fi | |
14537 | ||
14538 | ||
10f2d63a VZ |
14539 | fi |
14540 | done | |
14541 | ||
14542 | ||
14543 | fi | |
14544 | ||
14545 | ||
14546 | fi | |
14547 | done | |
14548 | ||
14549 | ||
f6bcfd97 BP |
14550 | if test "$HAVE_DL_FUNCS" = 1; then |
14551 | for ac_func in dlerror | |
14552 | do | |
14553 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
17f7bb9e | 14554 | echo "configure:14555: checking for $ac_func" >&5 |
f6bcfd97 BP |
14555 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14556 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14557 | else | |
14558 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 14559 | #line 14560 "configure" |
f6bcfd97 BP |
14560 | #include "confdefs.h" |
14561 | /* System header to define __stub macros and hopefully few prototypes, | |
14562 | which can conflict with char $ac_func(); below. */ | |
14563 | #include <assert.h> | |
14564 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14565 | /* We use char because int might match the return type of a gcc2 | |
14566 | builtin and then its argument prototype would still apply. */ | |
14567 | char $ac_func(); | |
14568 | ||
14569 | int main() { | |
14570 | ||
14571 | /* The GNU C library defines this for functions which it implements | |
14572 | to always fail with ENOSYS. Some functions are actually named | |
14573 | something starting with __ and the normal name is an alias. */ | |
14574 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14575 | choke me | |
14576 | #else | |
14577 | $ac_func(); | |
14578 | #endif | |
14579 | ||
14580 | ; return 0; } | |
14581 | EOF | |
17f7bb9e | 14582 | if { (eval echo configure:14583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f6bcfd97 BP |
14583 | rm -rf conftest* |
14584 | eval "ac_cv_func_$ac_func=yes" | |
14585 | else | |
14586 | echo "configure: failed program was:" >&5 | |
14587 | cat conftest.$ac_ext >&5 | |
14588 | rm -rf conftest* | |
14589 | eval "ac_cv_func_$ac_func=no" | |
14590 | fi | |
14591 | rm -f conftest* | |
14592 | fi | |
14593 | ||
14594 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14595 | echo "$ac_t""yes" 1>&6 | |
14596 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14597 | cat >> confdefs.h <<EOF | |
14598 | #define $ac_tr_func 1 | |
14599 | EOF | |
14600 | cat >> confdefs.h <<\EOF | |
14601 | #define HAVE_DLERROR 1 | |
14602 | EOF | |
14603 | ||
14604 | else | |
14605 | echo "$ac_t""no" 1>&6 | |
14606 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
17f7bb9e | 14607 | echo "configure:14608: checking for dlerror in -ldl" >&5 |
f6bcfd97 BP |
14608 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
14609 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14610 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14611 | else | |
14612 | ac_save_LIBS="$LIBS" | |
14613 | LIBS="-ldl $LIBS" | |
14614 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 14615 | #line 14616 "configure" |
f6bcfd97 BP |
14616 | #include "confdefs.h" |
14617 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14618 | /* We use char because int might match the return type of a gcc2 | |
14619 | builtin and then its argument prototype would still apply. */ | |
14620 | char dlerror(); | |
14621 | ||
14622 | int main() { | |
14623 | dlerror() | |
14624 | ; return 0; } | |
14625 | EOF | |
17f7bb9e | 14626 | if { (eval echo configure:14627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f6bcfd97 BP |
14627 | rm -rf conftest* |
14628 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14629 | else | |
14630 | echo "configure: failed program was:" >&5 | |
14631 | cat conftest.$ac_ext >&5 | |
14632 | rm -rf conftest* | |
14633 | eval "ac_cv_lib_$ac_lib_var=no" | |
14634 | fi | |
14635 | rm -f conftest* | |
14636 | LIBS="$ac_save_LIBS" | |
14637 | ||
14638 | fi | |
14639 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14640 | echo "$ac_t""yes" 1>&6 | |
14641 | cat >> confdefs.h <<\EOF | |
14642 | #define HAVE_DLERROR 1 | |
14643 | EOF | |
14644 | ||
14645 | else | |
14646 | echo "$ac_t""no" 1>&6 | |
14647 | fi | |
14648 | ||
14649 | fi | |
14650 | done | |
14651 | ||
14652 | fi | |
b4085ce6 | 14653 | fi |
f6bcfd97 | 14654 | |
10f2d63a VZ |
14655 | if test "$HAVE_DL_FUNCS" = 0; then |
14656 | if test "$HAVE_SHL_FUNCS" = 0; then | |
14657 | if test "$USE_UNIX" = 1; then | |
b12915c1 | 14658 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 |
10f2d63a VZ |
14659 | wxUSE_DYNLIB_CLASS=no |
14660 | else | |
b12915c1 | 14661 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 |
10f2d63a VZ |
14662 | fi |
14663 | fi | |
14664 | fi | |
14665 | fi | |
14666 | ||
b089607b VZ |
14667 | fi |
14668 | ||
10f2d63a | 14669 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
b12915c1 | 14670 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14671 | #define wxUSE_DYNLIB_CLASS 1 |
14672 | EOF | |
14673 | ||
b12915c1 VZ |
14674 | else |
14675 | wxUSE_ODBC=no | |
14676 | wxUSE_SERIAL=no | |
10f2d63a VZ |
14677 | fi |
14678 | ||
14679 | ||
14680 | if test "$wxUSE_UNICODE" = "yes" ; then | |
14681 | cat >> confdefs.h <<\EOF | |
14682 | #define wxUSE_UNICODE 1 | |
14683 | EOF | |
14684 | ||
14685 | fi | |
14686 | ||
14687 | if test "$wxUSE_WCSRTOMBS" = "yes" ; then | |
14688 | cat >> confdefs.h <<\EOF | |
14689 | #define wxUSE_WCSRTOMBS 1 | |
14690 | EOF | |
14691 | ||
14692 | fi | |
14693 | ||
14694 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
14695 | cat >> confdefs.h <<\EOF | |
14696 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
14697 | EOF | |
14698 | ||
14699 | fi | |
14700 | ||
14701 | ||
b12915c1 VZ |
14702 | if test "$wxUSE_SERIAL" = "yes" ; then |
14703 | cat >> confdefs.h <<\EOF | |
14704 | #define wxUSE_SERIAL 1 | |
14705 | EOF | |
14706 | ||
14707 | fi | |
14708 | ||
14709 | ||
10f2d63a VZ |
14710 | IODBC_C_SRC="" |
14711 | if test "$wxUSE_ODBC" = "yes" ; then | |
14712 | cat >> confdefs.h <<\EOF | |
14713 | #define wxUSE_ODBC 1 | |
14714 | EOF | |
14715 | ||
14716 | WXODBCFLAG="-D_IODBC_" | |
14717 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
14718 | fi |
14719 | ||
14720 | ||
14721 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
14722 | cat >> confdefs.h <<\EOF | |
14723 | #define wxUSE_POSTSCRIPT 1 | |
14724 | EOF | |
14725 | ||
14726 | fi | |
14727 | ||
14728 | cat >> confdefs.h <<\EOF | |
14729 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
14730 | EOF | |
14731 | ||
14732 | ||
14733 | cat >> confdefs.h <<\EOF | |
14734 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
14735 | EOF | |
14736 | ||
14737 | ||
14738 | ||
14739 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
14740 | cat >> confdefs.h <<\EOF | |
14741 | #define wxUSE_CONSTRAINTS 1 | |
14742 | EOF | |
14743 | ||
14744 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
14745 | fi | |
14746 | ||
14747 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
14748 | cat >> confdefs.h <<\EOF | |
14749 | #define wxUSE_MDI_ARCHITECTURE 1 | |
14750 | EOF | |
14751 | ||
14752 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" | |
14753 | fi | |
14754 | ||
14755 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
14756 | cat >> confdefs.h <<\EOF | |
14757 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
14758 | EOF | |
14759 | ||
14760 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
14761 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
14762 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
14763 | fi | |
14764 | fi | |
14765 | ||
14766 | if test "$wxUSE_HELP" = "yes"; then | |
14767 | cat >> confdefs.h <<\EOF | |
14768 | #define wxUSE_HELP 1 | |
14769 | EOF | |
14770 | ||
14771 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
14772 | fi | |
14773 | ||
14774 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
14775 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
14776 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 | |
14777 | else | |
14778 | cat >> confdefs.h <<\EOF | |
14779 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
14780 | EOF | |
14781 | ||
14782 | fi | |
14783 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
14784 | fi | |
14785 | ||
14786 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
14787 | cat >> confdefs.h <<\EOF | |
14788 | #define wxUSE_PROLOGIO 1 | |
14789 | EOF | |
14790 | ||
14791 | fi | |
14792 | ||
14793 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
14794 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
14795 | cat >> confdefs.h <<\EOF | |
14796 | #define wxUSE_RESOURCES 1 | |
14797 | EOF | |
14798 | ||
14799 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" | |
14800 | else | |
14801 | echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2 | |
14802 | fi | |
14803 | fi | |
14804 | ||
14805 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
14806 | cat >> confdefs.h <<\EOF | |
14807 | #define wxUSE_X_RESOURCES 1 | |
14808 | EOF | |
14809 | ||
14810 | fi | |
14811 | ||
14812 | ||
14813 | if test "$wxUSE_IPC" = "yes"; then | |
eb4efbdc VZ |
14814 | if test "$wxUSE_SOCKETS" != "yes"; then |
14815 | echo "configure: warning: wxWindows IPC classes require sockets" 1>&2 | |
14816 | fi | |
14817 | ||
10f2d63a VZ |
14818 | cat >> confdefs.h <<\EOF |
14819 | #define wxUSE_IPC 1 | |
14820 | EOF | |
14821 | ||
14822 | fi | |
14823 | ||
14824 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
14825 | cat >> confdefs.h <<\EOF | |
14826 | #define wxUSE_CLIPBOARD 1 | |
14827 | EOF | |
14828 | ||
14829 | fi | |
14830 | ||
14831 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
14832 | if test "$wxUSE_GTK" = 1; then | |
14833 | if test "$WXGTK12" != 1; then | |
14834 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2 | |
14835 | wxUSE_DRAG_AND_DROP=no | |
14836 | fi | |
14837 | fi | |
14838 | ||
14839 | if test "$wxUSE_MOTIF" = 1; then | |
14840 | echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2 | |
14841 | wxUSE_DRAG_AND_DROP=no | |
14842 | fi | |
14843 | ||
2c6025bc GD |
14844 | if test "$wxUSE_MAC" = 1; then |
14845 | echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2 | |
14846 | wxUSE_DRAG_AND_DROP=no | |
14847 | fi | |
14848 | ||
10f2d63a | 14849 | if test "$USE_WIN32" = 1; then |
c521c494 RL |
14850 | |
14851 | for ac_hdr in ole2.h | |
10f2d63a VZ |
14852 | do |
14853 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
14854 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
17f7bb9e | 14855 | echo "configure:14856: checking for $ac_hdr" >&5 |
10f2d63a VZ |
14856 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14857 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14858 | else | |
14859 | cat > conftest.$ac_ext <<EOF | |
17f7bb9e | 14860 | #line 14861 "configure" |
10f2d63a VZ |
14861 | #include "confdefs.h" |
14862 | #include <$ac_hdr> | |
14863 | EOF | |
14864 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
17f7bb9e | 14865 | { (eval echo configure:14866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
14866 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14867 | if test -z "$ac_err"; then | |
14868 | rm -rf conftest* | |
14869 | eval "ac_cv_header_$ac_safe=yes" | |
14870 | else | |
14871 | echo "$ac_err" >&5 | |
14872 | echo "configure: failed program was:" >&5 | |
14873 | cat conftest.$ac_ext >&5 | |
14874 | rm -rf conftest* | |
14875 | eval "ac_cv_header_$ac_safe=no" | |
14876 | fi | |
14877 | rm -f conftest* | |
14878 | fi | |
14879 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
14880 | echo "$ac_t""yes" 1>&6 | |
14881 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
14882 | cat >> confdefs.h <<EOF | |
14883 | #define $ac_tr_hdr 1 | |
14884 | EOF | |
14885 | ||
14886 | else | |
14887 | echo "$ac_t""no" 1>&6 | |
14888 | fi | |
14889 | done | |
14890 | ||
c521c494 RL |
14891 | |
14892 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
14893 | if test "$GCC" = yes ; then | |
b64f0a5f RL |
14894 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" |
14895 | ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)" | |
c521c494 | 14896 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
b64f0a5f RL |
14897 | LIBS="$LIBS -lole32 -luuid" |
14898 | ||
14899 | if test "$wxUSE_METAFILE" = "yes"; then | |
14900 | cat >> confdefs.h <<\EOF | |
14901 | #define wxUSE_METAFILE 1 | |
14902 | EOF | |
14903 | ||
14904 | cat >> confdefs.h <<\EOF | |
14905 | #define wxUSE_ENH_METAFILE 1 | |
14906 | EOF | |
14907 | ||
14908 | fi | |
c521c494 RL |
14909 | fi |
14910 | else | |
10f2d63a VZ |
14911 | echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2 |
14912 | wxUSE_DRAG_AND_DROP=no | |
14913 | fi | |
14914 | fi | |
14915 | ||
14916 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
14917 | cat >> confdefs.h <<\EOF | |
14918 | #define wxUSE_DRAG_AND_DROP 1 | |
14919 | EOF | |
14920 | ||
14921 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
14922 | fi | |
14923 | ||
14924 | fi | |
14925 | ||
14926 | if test "$wxUSE_SPLINES" = "yes" ; then | |
14927 | cat >> confdefs.h <<\EOF | |
14928 | #define wxUSE_SPLINES 1 | |
14929 | EOF | |
14930 | ||
14931 | fi | |
14932 | ||
14933 | ||
14934 | if test "$wxUSE_ACCEL" = "yes"; then | |
14935 | cat >> confdefs.h <<\EOF | |
14936 | #define wxUSE_ACCEL 1 | |
14937 | EOF | |
14938 | ||
14939 | fi | |
14940 | ||
14941 | if test "$wxUSE_CARET" = "yes"; then | |
14942 | cat >> confdefs.h <<\EOF | |
14943 | #define wxUSE_CARET 1 | |
14944 | EOF | |
14945 | ||
14946 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
14947 | fi | |
14948 | ||
14949 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
14950 | cat >> confdefs.h <<\EOF | |
14951 | #define wxUSE_COMBOBOX 1 | |
14952 | EOF | |
14953 | ||
14954 | fi | |
14955 | ||
14956 | if test "$wxUSE_CHOICE" = "yes"; then | |
14957 | cat >> confdefs.h <<\EOF | |
14958 | #define wxUSE_CHOICE 1 | |
14959 | EOF | |
14960 | ||
14961 | fi | |
14962 | ||
14963 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
14964 | cat >> confdefs.h <<\EOF | |
14965 | #define wxUSE_BMPBUTTON 1 | |
14966 | EOF | |
14967 | ||
14968 | fi | |
14969 | ||
14970 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
14971 | cat >> confdefs.h <<\EOF | |
14972 | #define wxUSE_CHECKBOX 1 | |
14973 | EOF | |
14974 | ||
14975 | fi | |
14976 | ||
14977 | if test "$wxUSE_CHECKLST" = "yes"; then | |
14978 | cat >> confdefs.h <<\EOF | |
14979 | #define wxUSE_CHECKLISTBOX 1 | |
14980 | EOF | |
14981 | ||
14982 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
14983 | fi | |
14984 | ||
14985 | if test "$wxUSE_GAUGE" = "yes"; then | |
14986 | cat >> confdefs.h <<\EOF | |
14987 | #define wxUSE_GAUGE 1 | |
14988 | EOF | |
14989 | ||
14990 | fi | |
14991 | ||
d6a55c4b VZ |
14992 | if test "$wxUSE_NEW_GRID" = "yes"; then |
14993 | wxUSE_GRID="yes" | |
10f2d63a | 14994 | cat >> confdefs.h <<\EOF |
d6a55c4b | 14995 | #define wxUSE_NEW_GRID 1 |
10f2d63a VZ |
14996 | EOF |
14997 | ||
d6a55c4b | 14998 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
14999 | fi |
15000 | ||
d6a55c4b | 15001 | if test "$wxUSE_GRID" = "yes"; then |
10f2d63a | 15002 | cat >> confdefs.h <<\EOF |
d6a55c4b | 15003 | #define wxUSE_GRID 1 |
10f2d63a VZ |
15004 | EOF |
15005 | ||
d6a55c4b | 15006 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
15007 | fi |
15008 | ||
15009 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
15010 | cat >> confdefs.h <<\EOF | |
15011 | #define wxUSE_IMAGLIST 1 | |
15012 | EOF | |
15013 | ||
15014 | fi | |
15015 | ||
15016 | if test "$wxUSE_LISTBOX" = "yes"; then | |
15017 | cat >> confdefs.h <<\EOF | |
15018 | #define wxUSE_LISTBOX 1 | |
15019 | EOF | |
15020 | ||
15021 | fi | |
15022 | ||
15023 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
15024 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
15025 | cat >> confdefs.h <<\EOF | |
15026 | #define wxUSE_LISTCTRL 1 | |
15027 | EOF | |
15028 | ||
15029 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
15030 | else | |
15031 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 | |
15032 | fi | |
15033 | fi | |
15034 | ||
15035 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
15036 | cat >> confdefs.h <<\EOF | |
15037 | #define wxUSE_NOTEBOOK 1 | |
15038 | EOF | |
15039 | ||
15040 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
15041 | fi | |
15042 | ||
15043 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
15044 | cat >> confdefs.h <<\EOF | |
15045 | #define wxUSE_RADIOBOX 1 | |
15046 | EOF | |
15047 | ||
15048 | fi | |
15049 | ||
15050 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
15051 | cat >> confdefs.h <<\EOF | |
15052 | #define wxUSE_RADIOBTN 1 | |
15053 | EOF | |
15054 | ||
15055 | fi | |
15056 | ||
15057 | if test "$wxUSE_SASH" = "yes"; then | |
15058 | cat >> confdefs.h <<\EOF | |
15059 | #define wxUSE_SASH 1 | |
15060 | EOF | |
15061 | ||
15062 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
15063 | fi | |
15064 | ||
15065 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
15066 | cat >> confdefs.h <<\EOF | |
15067 | #define wxUSE_SCROLLBAR 1 | |
15068 | EOF | |
15069 | ||
741a9306 | 15070 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
15071 | fi |
15072 | ||
15073 | if test "$wxUSE_SLIDER" = "yes"; then | |
15074 | cat >> confdefs.h <<\EOF | |
15075 | #define wxUSE_SLIDER 1 | |
15076 | EOF | |
15077 | ||
15078 | fi | |
15079 | ||
15080 | if test "$wxUSE_SPINBTN" = "yes"; then | |
15081 | cat >> confdefs.h <<\EOF | |
15082 | #define wxUSE_SPINBTN 1 | |
15083 | EOF | |
15084 | ||
15085 | fi | |
15086 | ||
56cfaa52 RR |
15087 | if test "$wxUSE_SPINCTRL" = "yes"; then |
15088 | cat >> confdefs.h <<\EOF | |
15089 | #define wxUSE_SPINCTRL 1 | |
15090 | EOF | |
15091 | ||
15092 | fi | |
15093 | ||
10f2d63a VZ |
15094 | if test "$wxUSE_SPLITTER" = "yes"; then |
15095 | cat >> confdefs.h <<\EOF | |
15096 | #define wxUSE_SPLITTER 1 | |
15097 | EOF | |
15098 | ||
15099 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
15100 | fi | |
15101 | ||
15102 | if test "$wxUSE_STATBMP" = "yes"; then | |
15103 | cat >> confdefs.h <<\EOF | |
15104 | #define wxUSE_STATBMP 1 | |
15105 | EOF | |
15106 | ||
15107 | fi | |
15108 | ||
15109 | if test "$wxUSE_STATBOX" = "yes"; then | |
15110 | cat >> confdefs.h <<\EOF | |
15111 | #define wxUSE_STATBOX 1 | |
15112 | EOF | |
15113 | ||
15114 | fi | |
15115 | ||
15116 | if test "$wxUSE_STATLINE" = "yes"; then | |
15117 | if test "$wxUSE_WINE" = 1 ; then | |
15118 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 | |
15119 | else | |
15120 | cat >> confdefs.h <<\EOF | |
15121 | #define wxUSE_STATLINE 1 | |
15122 | EOF | |
15123 | ||
15124 | fi | |
15125 | fi | |
15126 | ||
15127 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
15128 | cat >> confdefs.h <<\EOF | |
15129 | #define wxUSE_STATUSBAR 1 | |
15130 | EOF | |
15131 | ||
2286341c VZ |
15132 | |
15133 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
10f2d63a VZ |
15134 | fi |
15135 | ||
15136 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
15137 | cat >> confdefs.h <<\EOF | |
15138 | #define wxUSE_TAB_DIALOG 1 | |
15139 | EOF | |
15140 | ||
15141 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
15142 | fi | |
15143 | ||
1db8dc4a VZ |
15144 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
15145 | cat >> confdefs.h <<\EOF | |
15146 | #define wxUSE_TOGGLEBTN 1 | |
15147 | EOF | |
15148 | ||
15149 | fi | |
15150 | ||
360d6699 VZ |
15151 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
15152 | cat >> confdefs.h <<\EOF | |
15153 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
15154 | EOF | |
15155 | ||
15156 | wxUSE_TOOLBAR="yes" | |
15157 | fi | |
15158 | ||
10f2d63a VZ |
15159 | if test "$wxUSE_TOOLBAR" = "yes"; then |
15160 | cat >> confdefs.h <<\EOF | |
15161 | #define wxUSE_TOOLBAR 1 | |
15162 | EOF | |
15163 | ||
360d6699 VZ |
15164 | |
15165 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
15166 | wxUSE_TOOLBAR_NATIVE="yes" | |
15167 | fi | |
15168 | ||
10f2d63a VZ |
15169 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" |
15170 | fi | |
15171 | ||
360d6699 VZ |
15172 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
15173 | cat >> confdefs.h <<\EOF | |
15174 | #define wxUSE_TOOLBAR_NATIVE 1 | |
15175 | EOF | |
15176 | ||
15177 | fi | |
15178 | ||
10f2d63a VZ |
15179 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
15180 | if test "$wxUSE_MOTIF" = 1; then | |
15181 | echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2 | |
15182 | else | |
15183 | if test "$wxUSE_WINE" = 1; then | |
15184 | echo "configure: warning: wxTooltip not supported under WINE" 1>&2 | |
15185 | else | |
15186 | cat >> confdefs.h <<\EOF | |
15187 | #define wxUSE_TOOLTIPS 1 | |
15188 | EOF | |
15189 | ||
15190 | fi | |
15191 | fi | |
15192 | fi | |
15193 | ||
15194 | if test "$wxUSE_TREECTRL" = "yes"; then | |
15195 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
15196 | cat >> confdefs.h <<\EOF | |
15197 | #define wxUSE_TREECTRL 1 | |
15198 | EOF | |
15199 | ||
15200 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
15201 | else | |
15202 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 | |
15203 | fi | |
15204 | fi | |
15205 | ||
15206 | ||
15207 | ||
10f2d63a VZ |
15208 | if test "$wxUSE_DIRDLG" = "yes"; then |
15209 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
15210 | echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2 | |
15211 | else | |
15212 | if test "$wxUSE_TREECTRL" != "yes"; then | |
15213 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
15214 | else | |
15215 | cat >> confdefs.h <<\EOF | |
15216 | #define wxUSE_DIRDLG 1 | |
15217 | EOF | |
15218 | ||
15219 | fi | |
15220 | fi | |
15221 | fi | |
15222 | ||
15223 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
15224 | cat >> confdefs.h <<\EOF | |
15225 | #define wxUSE_TEXTDLG 1 | |
15226 | EOF | |
15227 | ||
15228 | fi | |
15229 | ||
15230 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
15231 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
15232 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
15233 | else | |
15234 | cat >> confdefs.h <<\EOF | |
15235 | #define wxUSE_STARTUP_TIPS 1 | |
15236 | EOF | |
15237 | ||
15238 | fi | |
15239 | fi | |
15240 | ||
15241 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
15242 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
15243 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
15244 | else | |
15245 | cat >> confdefs.h <<\EOF | |
15246 | #define wxUSE_PROGRESSDLG 1 | |
15247 | EOF | |
15248 | ||
15249 | fi | |
15250 | fi | |
15251 | ||
15252 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
15253 | cat >> confdefs.h <<\EOF | |
15254 | #define wxUSE_MINIFRAME 1 | |
15255 | EOF | |
15256 | ||
15257 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
15258 | fi | |
15259 | ||
15260 | if test "$wxUSE_HTML" = "yes"; then | |
15261 | cat >> confdefs.h <<\EOF | |
15262 | #define wxUSE_HTML 1 | |
15263 | EOF | |
15264 | ||
15265 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
15266 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html" | |
15267 | fi | |
15268 | ||
15269 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
15270 | cat >> confdefs.h <<\EOF | |
15271 | #define wxUSE_VALIDATORS 1 | |
15272 | EOF | |
15273 | ||
15274 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
15275 | fi | |
15276 | ||
15277 | if test "$wxUSE_GIF" = "yes" ; then | |
15278 | cat >> confdefs.h <<\EOF | |
15279 | #define wxUSE_GIF 1 | |
15280 | EOF | |
15281 | ||
15282 | fi | |
15283 | ||
15284 | if test "$wxUSE_PCX" = "yes" ; then | |
15285 | cat >> confdefs.h <<\EOF | |
15286 | #define wxUSE_PCX 1 | |
15287 | EOF | |
15288 | ||
15289 | fi | |
15290 | ||
15291 | if test "$wxUSE_PNM" = "yes" ; then | |
15292 | cat >> confdefs.h <<\EOF | |
15293 | #define wxUSE_PNM 1 | |
15294 | EOF | |
15295 | ||
15296 | fi | |
15297 | ||
15298 | ||
32832908 VZ |
15299 | if test "$cross_compiling" = "yes"; then |
15300 | OSINFO="\"$host\"" | |
15301 | else | |
15302 | OSINFO=`uname -s -r -m` | |
15303 | OSINFO="\"$OSINFO\"" | |
15304 | fi | |
15305 | ||
aaa37c0d VZ |
15306 | cat >> confdefs.h <<EOF |
15307 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
15308 | EOF | |
15309 | ||
15310 | ||
15311 | ||
f6bcfd97 BP |
15312 | GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK" |
15313 | OPENGL_LIBS="$OPENGL_LINK" | |
10f2d63a | 15314 | |
ea5999b9 | 15315 | EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm" |
b4085ce6 | 15316 | if test "$USE_MAC" = 1 ; then |
ea5999b9 | 15317 | EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System" |
b4085ce6 | 15318 | fi |
10f2d63a | 15319 | if test "$wxUSE_GUI" = "yes"; then |
3fed1840 | 15320 | EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS" |
10f2d63a VZ |
15321 | fi |
15322 | ||
15323 | LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS" | |
15324 | ||
3fed1840 | 15325 | INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $FREETYPE_INCLUDE $TOOLKIT_INCLUDE" |
10f2d63a | 15326 | |
f6bcfd97 BP |
15327 | if test "$wxUSE_GTK" = 1; then |
15328 | WXCONFIG_INCLUDE="" | |
15329 | else | |
15330 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
15331 | fi | |
15332 | ||
10f2d63a VZ |
15333 | if test "$GXX" = yes ; then |
15334 | CXXWARNINGS="-Wall" | |
d6a55c4b | 15335 | fi |
10f2d63a VZ |
15336 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" |
15337 | ||
f6bcfd97 | 15338 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` |
10f2d63a VZ |
15339 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` |
15340 | ||
e694c22c VZ |
15341 | LDFLAGS="$LDFLAGS $PROFILE" |
15342 | ||
10f2d63a VZ |
15343 | if test "$wxUSE_GUI" = "yes"; then |
15344 | ||
6164f93c VZ |
15345 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs dragimag \ |
15346 | drawing dynamic event font fractal image menu \ | |
15347 | minimal richedit" | |
b12915c1 | 15348 | |
88d3a15c | 15349 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" |
10f2d63a VZ |
15350 | else |
15351 | SAMPLES_SUBDIRS="" | |
15352 | fi | |
15353 | ||
ec14dd32 VZ |
15354 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" |
15355 | ||
15356 | ||
15357 | ||
10f2d63a VZ |
15358 | |
15359 | ||
15360 | ||
15361 | ||
15362 | ||
15363 | ||
15364 | ||
15365 | ||
15366 | ||
15367 | ||
15368 | ||
15369 | ||
15370 | ||
15371 | ||
15372 | ||
15373 | ||
15374 | ||
15375 | ||
15376 | ||
15377 | ||
15378 | ||
15379 | ||
15380 | ||
15381 | ||
15382 | ||
15383 | ||
15384 | ||
15385 | ||
15386 | ||
15387 | ||
15388 | ||
15389 | ||
15390 | ||
15391 | ||
15392 | ||
15393 | ||
15394 | ||
15395 | ||
15396 | ||
15397 | ||
15398 | ||
15399 | ||
15400 | ||
15401 | ||
15402 | ||
15403 | ||
15404 | ||
15405 | ||
15406 | ||
15407 | ||
15408 | ||
15409 | ||
1d62a8b4 | 15410 | |
bdad4e7e RR |
15411 | |
15412 | ||
15413 | ||
15414 | ||
15415 | ||
15416 | ||
15417 | ||
32832908 VZ |
15418 | |
15419 | ||
15420 | ||
15421 | ||
15422 | ||
15423 | ||
15424 | ||
15425 | ||
15426 | ||
15427 | ||
15428 | ||
2224580a | 15429 | |
dad6c0ea | 15430 | |
f6bcfd97 BP |
15431 | |
15432 | ||
15433 | ||
15434 | ||
dad6c0ea | 15435 | |
caa2c79b | 15436 | |
3711412e | 15437 | |
0f3f1cbc | 15438 | |
10f2d63a VZ |
15439 | |
15440 | ||
15441 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
17f7bb9e | 15442 | echo "configure:15443: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
10f2d63a VZ |
15443 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
15444 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
15445 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15446 | else | |
15447 | cat > conftestmake <<\EOF | |
15448 | all: | |
15449 | @echo 'ac_maketemp="${MAKE}"' | |
15450 | EOF | |
15451 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
15452 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
15453 | if test -n "$ac_maketemp"; then | |
15454 | eval ac_cv_prog_make_${ac_make}_set=yes | |
15455 | else | |
15456 | eval ac_cv_prog_make_${ac_make}_set=no | |
15457 | fi | |
15458 | rm -f conftestmake | |
15459 | fi | |
15460 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
15461 | echo "$ac_t""yes" 1>&6 | |
15462 | SET_MAKE= | |
15463 | else | |
15464 | echo "$ac_t""no" 1>&6 | |
15465 | SET_MAKE="MAKE=${MAKE-make}" | |
15466 | fi | |
15467 | ||
15468 | ||
00cf1208 RR |
15469 | if test -d include; then |
15470 | if test -d include/wx; then | |
15471 | if test -d include/wx/${TOOLKIT_DIR}; then | |
15472 | if test -f include/wx/${TOOLKIT_DIR}/setup.h; then | |
15473 | mv -f include/wx/${TOOLKIT_DIR}/setup.h setup.h | |
15474 | fi | |
15475 | fi | |
15476 | fi | |
15477 | fi | |
15478 | ||
10f2d63a VZ |
15479 | |
15480 | ||
2224580a | 15481 | if test "$wxUSE_GUI" = "yes"; then |
ec90f5e5 | 15482 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
e8482f24 GL |
15483 | wx_cv_path_ifs=$PATH_IFS |
15484 | wx_cv_program_ext=$PROGRAM_EXT | |
15485 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
3711412e | 15486 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE |
e8482f24 | 15487 | subdirs="demos samples utils contrib" |
2224580a VZ |
15488 | |
15489 | fi | |
10f2d63a VZ |
15490 | |
15491 | trap '' 1 2 15 | |
15492 | cat > confcache <<\EOF | |
15493 | # This file is a shell script that caches the results of configure | |
15494 | # tests run on this system so they can be shared between configure | |
15495 | # scripts and configure runs. It is not useful on other systems. | |
15496 | # If it contains results you don't want to keep, you may remove or edit it. | |
15497 | # | |
15498 | # By default, configure uses ./config.cache as the cache file, | |
15499 | # creating it if it does not exist already. You can give configure | |
15500 | # the --cache-file=FILE option to use a different cache file; that is | |
15501 | # what configure does when it calls configure scripts in | |
15502 | # subdirectories, so they share the cache. | |
15503 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
15504 | # config.status only pays attention to the cache file if you give it the | |
15505 | # --recheck option to rerun configure. | |
15506 | # | |
15507 | EOF | |
15508 | # The following way of writing the cache mishandles newlines in values, | |
15509 | # but we know of no workaround that is simple, portable, and efficient. | |
15510 | # So, don't put newlines in cache variables' values. | |
15511 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
15512 | # and sets the high bit in the cache file unless we assign to the vars. | |
15513 | (set) 2>&1 | | |
15514 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
15515 | *ac_space=\ *) | |
15516 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
15517 | # turns \\\\ into \\, and sed turns \\ into \). | |
15518 | sed -n \ | |
15519 | -e "s/'/'\\\\''/g" \ | |
15520 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
15521 | ;; | |
15522 | *) | |
15523 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
15524 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
15525 | ;; | |
15526 | esac >> confcache | |
15527 | if cmp -s $cache_file confcache; then | |
15528 | : | |
15529 | else | |
15530 | if test -w $cache_file; then | |
15531 | echo "updating cache $cache_file" | |
15532 | cat confcache > $cache_file | |
15533 | else | |
15534 | echo "not updating unwritable cache $cache_file" | |
15535 | fi | |
15536 | fi | |
15537 | rm -f confcache | |
15538 | ||
15539 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
15540 | ||
15541 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
15542 | # Let make expand exec_prefix. | |
15543 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
15544 | ||
15545 | # Any assignment to VPATH causes Sun make to only execute | |
15546 | # the first set of double-colon rules, so remove it if not needed. | |
15547 | # If there is a colon in the path, we need to keep it. | |
15548 | if test "x$srcdir" = x.; then | |
15549 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
15550 | fi | |
15551 | ||
15552 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
15553 | ||
15554 | DEFS=-DHAVE_CONFIG_H | |
15555 | ||
15556 | # Without the "./", some shells look in PATH for config.status. | |
15557 | : ${CONFIG_STATUS=./config.status} | |
15558 | ||
15559 | echo creating $CONFIG_STATUS | |
15560 | rm -f $CONFIG_STATUS | |
15561 | cat > $CONFIG_STATUS <<EOF | |
15562 | #! /bin/sh | |
15563 | # Generated automatically by configure. | |
15564 | # Run this file to recreate the current configuration. | |
15565 | # This directory was configured as follows, | |
15566 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
15567 | # | |
15568 | # $0 $ac_configure_args | |
15569 | # | |
15570 | # Compiler output produced by configure, useful for debugging | |
15571 | # configure, is in ./config.log if it exists. | |
15572 | ||
15573 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
15574 | for ac_option | |
15575 | do | |
15576 | case "\$ac_option" in | |
15577 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
15578 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
15579 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
15580 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
e8482f24 | 15581 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
10f2d63a VZ |
15582 | exit 0 ;; |
15583 | -help | --help | --hel | --he | --h) | |
15584 | echo "\$ac_cs_usage"; exit 0 ;; | |
15585 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
15586 | esac | |
15587 | done | |
15588 | ||
15589 | ac_given_srcdir=$srcdir | |
15590 | ac_given_INSTALL="$INSTALL" | |
15591 | ||
15592 | trap 'rm -fr `echo " | |
15593 | wx-config | |
15594 | src/make.env | |
15595 | src/makeprog.env | |
15596 | src/makelib.env | |
15597 | Makefile | |
10f2d63a VZ |
15598 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
15599 | EOF | |
15600 | cat >> $CONFIG_STATUS <<EOF | |
15601 | ||
15602 | # Protect against being on the right side of a sed subst in config.status. | |
15603 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
15604 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
15605 | $ac_vpsub | |
15606 | $extrasub | |
15607 | s%@SHELL@%$SHELL%g | |
15608 | s%@CFLAGS@%$CFLAGS%g | |
15609 | s%@CPPFLAGS@%$CPPFLAGS%g | |
15610 | s%@CXXFLAGS@%$CXXFLAGS%g | |
15611 | s%@FFLAGS@%$FFLAGS%g | |
15612 | s%@DEFS@%$DEFS%g | |
15613 | s%@LDFLAGS@%$LDFLAGS%g | |
15614 | s%@LIBS@%$LIBS%g | |
15615 | s%@exec_prefix@%$exec_prefix%g | |
15616 | s%@prefix@%$prefix%g | |
15617 | s%@program_transform_name@%$program_transform_name%g | |
15618 | s%@bindir@%$bindir%g | |
15619 | s%@sbindir@%$sbindir%g | |
15620 | s%@libexecdir@%$libexecdir%g | |
15621 | s%@datadir@%$datadir%g | |
15622 | s%@sysconfdir@%$sysconfdir%g | |
15623 | s%@sharedstatedir@%$sharedstatedir%g | |
15624 | s%@localstatedir@%$localstatedir%g | |
15625 | s%@libdir@%$libdir%g | |
15626 | s%@includedir@%$includedir%g | |
15627 | s%@oldincludedir@%$oldincludedir%g | |
15628 | s%@infodir@%$infodir%g | |
15629 | s%@mandir@%$mandir%g | |
7c66a493 VZ |
15630 | s%@host@%$host%g |
15631 | s%@host_alias@%$host_alias%g | |
15632 | s%@host_cpu@%$host_cpu%g | |
15633 | s%@host_vendor@%$host_vendor%g | |
15634 | s%@host_os@%$host_os%g | |
15635 | s%@target@%$target%g | |
15636 | s%@target_alias@%$target_alias%g | |
15637 | s%@target_cpu@%$target_cpu%g | |
15638 | s%@target_vendor@%$target_vendor%g | |
15639 | s%@target_os@%$target_os%g | |
15640 | s%@build@%$build%g | |
15641 | s%@build_alias@%$build_alias%g | |
15642 | s%@build_cpu@%$build_cpu%g | |
15643 | s%@build_vendor@%$build_vendor%g | |
15644 | s%@build_os@%$build_os%g | |
10f2d63a VZ |
15645 | s%@CC@%$CC%g |
15646 | s%@CPP@%$CPP%g | |
15647 | s%@CXX@%$CXX%g | |
15648 | s%@CXXCPP@%$CXXCPP%g | |
15649 | s%@RANLIB@%$RANLIB%g | |
15650 | s%@AR@%$AR%g | |
15651 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
15652 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
15653 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
15654 | s%@STRIP@%$STRIP%g | |
15655 | s%@YACC@%$YACC%g | |
15656 | s%@LEX@%$LEX%g | |
15657 | s%@LEXLIB@%$LEXLIB%g | |
15658 | s%@LN_S@%$LN_S%g | |
6f72b082 | 15659 | s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g |
10f2d63a VZ |
15660 | s%@GTK_CONFIG@%$GTK_CONFIG%g |
15661 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g | |
15662 | s%@GTK_LIBS@%$GTK_LIBS%g | |
ab9b9eab VZ |
15663 | s%@X_CFLAGS@%$X_CFLAGS%g |
15664 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
15665 | s%@X_LIBS@%$X_LIBS%g | |
15666 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
ec14dd32 VZ |
15667 | s%@LEX_STEM@%$LEX_STEM%g |
15668 | s%@PATH_IFS@%$PATH_IFS%g | |
10f2d63a VZ |
15669 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g |
15670 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
15671 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
15672 | s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g | |
15673 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
15674 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
15675 | s%@WX_LIBRARY@%$WX_LIBRARY%g | |
15676 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
15677 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
15678 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
15679 | s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g | |
15680 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g | |
bdad4e7e RR |
15681 | s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g |
15682 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g | |
15683 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
15684 | s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g | |
15685 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g | |
15686 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
15687 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
15688 | s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g | |
10f2d63a VZ |
15689 | s%@WX_ALL@%$WX_ALL%g |
15690 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
15691 | s%@SHARED_LD@%$SHARED_LD%g | |
15692 | s%@PIC_FLAG@%$PIC_FLAG%g | |
15693 | s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g | |
caa2c79b | 15694 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g |
0f3f1cbc | 15695 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g |
1d62a8b4 | 15696 | s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g |
bdad4e7e | 15697 | s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g |
f6bcfd97 | 15698 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g |
3711412e | 15699 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g |
10f2d63a | 15700 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g |
dad6c0ea VZ |
15701 | s%@USE_GUI@%$USE_GUI%g |
15702 | s%@AFMINSTALL@%$AFMINSTALL%g | |
10f2d63a VZ |
15703 | s%@TOOLKIT@%$TOOLKIT%g |
15704 | s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g | |
15705 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
f6bcfd97 | 15706 | s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g |
10f2d63a | 15707 | s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g |
f6bcfd97 | 15708 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g |
10f2d63a VZ |
15709 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g |
15710 | s%@ALL_DEPFILES@%$ALL_DEPFILES%g | |
10f2d63a | 15711 | s%@GUIDIST@%$GUIDIST%g |
2224580a VZ |
15712 | s%@PORT_FILES@%$PORT_FILES%g |
15713 | s%@DISTDIR@%$DISTDIR%g | |
15714 | s%@RPM_SPEC@%$RPM_SPEC%g | |
15715 | s%@RPM_FILES@%$RPM_FILES%g | |
10f2d63a VZ |
15716 | s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g |
15717 | s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g | |
15718 | s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g | |
15719 | s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g | |
15720 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g | |
15721 | s%@USER_SUBDIRS@%$USER_SUBDIRS%g | |
15722 | s%@EXTRA_LIBS@%$EXTRA_LIBS%g | |
f6bcfd97 | 15723 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g |
b12915c1 | 15724 | s%@EXTRADEFS@%$EXTRADEFS%g |
10f2d63a | 15725 | s%@LD_LIBS@%$LD_LIBS%g |
32832908 VZ |
15726 | s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g |
15727 | s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g | |
15728 | s%@RESPROGRAM@%$RESPROGRAM%g | |
15729 | s%@RESCOMP@%$RESCOMP%g | |
15730 | s%@RESFLAGS@%$RESFLAGS%g | |
15731 | s%@DLLTOOL@%$DLLTOOL%g | |
15732 | s%@AS@%$AS%g | |
15733 | s%@NM@%$NM%g | |
15734 | s%@LD@%$LD%g | |
15735 | s%@MAKEINFO@%$MAKEINFO%g | |
10f2d63a | 15736 | s%@SET_MAKE@%$SET_MAKE%g |
2224580a | 15737 | s%@subdirs@%$subdirs%g |
10f2d63a VZ |
15738 | |
15739 | CEOF | |
15740 | EOF | |
15741 | ||
15742 | cat >> $CONFIG_STATUS <<\EOF | |
15743 | ||
15744 | # Split the substitutions into bite-sized pieces for seds with | |
15745 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
15746 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
15747 | ac_file=1 # Number of current file. | |
15748 | ac_beg=1 # First line for current file. | |
15749 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
15750 | ac_more_lines=: | |
15751 | ac_sed_cmds="" | |
15752 | while $ac_more_lines; do | |
15753 | if test $ac_beg -gt 1; then | |
15754 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
15755 | else | |
15756 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
15757 | fi | |
15758 | if test ! -s conftest.s$ac_file; then | |
15759 | ac_more_lines=false | |
15760 | rm -f conftest.s$ac_file | |
15761 | else | |
15762 | if test -z "$ac_sed_cmds"; then | |
15763 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
15764 | else | |
15765 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
15766 | fi | |
15767 | ac_file=`expr $ac_file + 1` | |
15768 | ac_beg=$ac_end | |
15769 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
15770 | fi | |
15771 | done | |
15772 | if test -z "$ac_sed_cmds"; then | |
15773 | ac_sed_cmds=cat | |
15774 | fi | |
15775 | EOF | |
15776 | ||
15777 | cat >> $CONFIG_STATUS <<EOF | |
15778 | ||
15779 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
15780 | src/make.env | |
15781 | src/makeprog.env | |
15782 | src/makelib.env | |
15783 | Makefile | |
10f2d63a VZ |
15784 | "} |
15785 | EOF | |
15786 | cat >> $CONFIG_STATUS <<\EOF | |
15787 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
15788 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
15789 | case "$ac_file" in | |
15790 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
15791 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
15792 | *) ac_file_in="${ac_file}.in" ;; | |
15793 | esac | |
15794 | ||
15795 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
15796 | ||
15797 | # Remove last slash and all that follows it. Not all systems have dirname. | |
15798 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
15799 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
15800 | # The file is in a subdirectory. | |
15801 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
15802 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
15803 | # A "../" for each directory in $ac_dir_suffix. | |
15804 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
15805 | else | |
15806 | ac_dir_suffix= ac_dots= | |
15807 | fi | |
15808 | ||
15809 | case "$ac_given_srcdir" in | |
15810 | .) srcdir=. | |
15811 | if test -z "$ac_dots"; then top_srcdir=. | |
15812 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
15813 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
15814 | *) # Relative path. | |
15815 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
15816 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
15817 | esac | |
15818 | ||
15819 | case "$ac_given_INSTALL" in | |
15820 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
15821 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
15822 | esac | |
15823 | ||
15824 | echo creating "$ac_file" | |
15825 | rm -f "$ac_file" | |
15826 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
15827 | case "$ac_file" in | |
15828 | *Makefile*) ac_comsub="1i\\ | |
15829 | # $configure_input" ;; | |
15830 | *) ac_comsub= ;; | |
15831 | esac | |
15832 | ||
15833 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
15834 | sed -e "$ac_comsub | |
15835 | s%@configure_input@%$configure_input%g | |
15836 | s%@srcdir@%$srcdir%g | |
15837 | s%@top_srcdir@%$top_srcdir%g | |
15838 | s%@INSTALL@%$INSTALL%g | |
15839 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
15840 | fi; done | |
15841 | rm -f conftest.s* | |
15842 | ||
15843 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
15844 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
15845 | # | |
15846 | # ac_d sets the value in "#define NAME VALUE" lines. | |
15847 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
15848 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
15849 | ac_dC='\3' | |
15850 | ac_dD='%g' | |
15851 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
15852 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
15853 | ac_uB='\([ ]\)%\1#\2define\3' | |
15854 | ac_uC=' ' | |
15855 | ac_uD='\4%g' | |
15856 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
15857 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
15858 | ac_eB='$%\1#\2define\3' | |
15859 | ac_eC=' ' | |
15860 | ac_eD='%g' | |
15861 | ||
15862 | if test "${CONFIG_HEADERS+set}" != set; then | |
15863 | EOF | |
15864 | cat >> $CONFIG_STATUS <<EOF | |
15865 | CONFIG_HEADERS="setup.h:setup.h.in" | |
15866 | EOF | |
15867 | cat >> $CONFIG_STATUS <<\EOF | |
15868 | fi | |
15869 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
15870 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
15871 | case "$ac_file" in | |
15872 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
15873 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
15874 | *) ac_file_in="${ac_file}.in" ;; | |
15875 | esac | |
15876 | ||
15877 | echo creating $ac_file | |
15878 | ||
15879 | rm -f conftest.frag conftest.in conftest.out | |
15880 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
15881 | cat $ac_file_inputs > conftest.in | |
15882 | ||
15883 | EOF | |
15884 | ||
15885 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
15886 | # the proper values into config.h.in to produce config.h. And first: | |
15887 | # Protect against being on the right side of a sed subst in config.status. | |
15888 | # Protect against being in an unquoted here document in config.status. | |
15889 | rm -f conftest.vals | |
15890 | cat > conftest.hdr <<\EOF | |
15891 | s/[\\&%]/\\&/g | |
15892 | s%[\\$`]%\\&%g | |
15893 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
15894 | s%ac_d%ac_u%gp | |
15895 | s%ac_u%ac_e%gp | |
15896 | EOF | |
15897 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
15898 | rm -f conftest.hdr | |
15899 | ||
15900 | # This sed command replaces #undef with comments. This is necessary, for | |
15901 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
15902 | # on some systems where configure will not decide to define it. | |
15903 | cat >> conftest.vals <<\EOF | |
15904 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
15905 | EOF | |
15906 | ||
15907 | # Break up conftest.vals because some shells have a limit on | |
15908 | # the size of here documents, and old seds have small limits too. | |
15909 | ||
15910 | rm -f conftest.tail | |
15911 | while : | |
15912 | do | |
15913 | ac_lines=`grep -c . conftest.vals` | |
15914 | # grep -c gives empty output for an empty file on some AIX systems. | |
15915 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
15916 | # Write a limited-size here document to conftest.frag. | |
15917 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
15918 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
15919 | echo 'CEOF | |
15920 | sed -f conftest.frag conftest.in > conftest.out | |
15921 | rm -f conftest.in | |
15922 | mv conftest.out conftest.in | |
15923 | ' >> $CONFIG_STATUS | |
15924 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
15925 | rm -f conftest.vals | |
15926 | mv conftest.tail conftest.vals | |
15927 | done | |
15928 | rm -f conftest.vals | |
15929 | ||
15930 | cat >> $CONFIG_STATUS <<\EOF | |
15931 | rm -f conftest.frag conftest.h | |
15932 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
15933 | cat conftest.in >> conftest.h | |
15934 | rm -f conftest.in | |
15935 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
15936 | echo "$ac_file is unchanged" | |
15937 | rm -f conftest.h | |
15938 | else | |
15939 | # Remove last slash and all that follows it. Not all systems have dirname. | |
15940 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
15941 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
15942 | # The file is in a subdirectory. | |
15943 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
15944 | fi | |
15945 | rm -f $ac_file | |
15946 | mv conftest.h $ac_file | |
15947 | fi | |
15948 | fi; done | |
15949 | ||
15950 | EOF | |
15951 | cat >> $CONFIG_STATUS <<EOF | |
15952 | ||
15953 | TOOLKIT_DIR="${TOOLKIT_DIR}" | |
f6bcfd97 | 15954 | TOOLKIT_NAME="${TOOLKIT_NAME}" |
07eb77a6 | 15955 | LN_S="${LN_S}" |
10f2d63a VZ |
15956 | |
15957 | ||
15958 | EOF | |
15959 | cat >> $CONFIG_STATUS <<\EOF | |
15960 | ||
15961 | chmod +x wx-config | |
f6bcfd97 BP |
15962 | mv wx-config wx${TOOLKIT_NAME}-config |
15963 | ${LN_S} wx${TOOLKIT_NAME}-config wx-config | |
00cf1208 | 15964 | |
f3c067d2 | 15965 | |
00cf1208 RR |
15966 | if test ! -d lib; then |
15967 | mkdir lib | |
15968 | fi | |
15969 | if test ! -d lib/wx; then | |
15970 | mkdir lib/wx | |
15971 | fi | |
15972 | if test ! -d lib/wx/include; then | |
15973 | mkdir lib/wx/include | |
15974 | fi | |
15975 | if test ! -d lib/wx/include/wx; then | |
15976 | mkdir lib/wx/include/wx | |
15977 | fi | |
f6bcfd97 BP |
15978 | if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then |
15979 | mkdir lib/wx/include/wx/${TOOLKIT_NAME} | |
00cf1208 RR |
15980 | fi |
15981 | if test -f setup.h; then | |
066b00aa | 15982 | cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h |
00cf1208 | 15983 | fi |
07eb77a6 | 15984 | |
00cf1208 | 15985 | |
10f2d63a VZ |
15986 | if test ! -d include; then |
15987 | mkdir include | |
15988 | fi | |
15989 | if test ! -d include/wx; then | |
15990 | mkdir include/wx | |
15991 | fi | |
15992 | if test ! -d include/wx/${TOOLKIT_DIR}; then | |
15993 | mkdir include/wx/${TOOLKIT_DIR} | |
15994 | fi | |
afc31813 | 15995 | if test -f setup.h; then |
066b00aa | 15996 | cp -fp setup.h include/wx/${TOOLKIT_DIR}/setup.h |
afc31813 | 15997 | fi |
00cf1208 | 15998 | |
10f2d63a VZ |
15999 | |
16000 | exit 0 | |
16001 | EOF | |
16002 | chmod +x $CONFIG_STATUS | |
16003 | rm -fr confdefs* $ac_clean_files | |
16004 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
16005 | ||
2224580a VZ |
16006 | if test "$no_recursion" != yes; then |
16007 | ||
16008 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
16009 | ac_sub_configure_args= | |
16010 | ac_prev= | |
16011 | for ac_arg in $ac_configure_args; do | |
16012 | if test -n "$ac_prev"; then | |
16013 | ac_prev= | |
16014 | continue | |
16015 | fi | |
16016 | case "$ac_arg" in | |
16017 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
16018 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
16019 | ac_prev=cache_file ;; | |
16020 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
16021 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
16022 | ;; | |
16023 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
16024 | ac_prev=srcdir ;; | |
16025 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
16026 | ;; | |
16027 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
16028 | esac | |
16029 | done | |
16030 | ||
e8482f24 | 16031 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
16032 | |
16033 | # Do not complain, so a configure script can configure whichever | |
16034 | # parts of a large source tree are present. | |
16035 | if test ! -d $srcdir/$ac_config_dir; then | |
16036 | continue | |
16037 | fi | |
16038 | ||
16039 | echo configuring in $ac_config_dir | |
16040 | ||
16041 | case "$srcdir" in | |
16042 | .) ;; | |
16043 | *) | |
16044 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; | |
16045 | else | |
16046 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
16047 | fi | |
16048 | ;; | |
16049 | esac | |
16050 | ||
16051 | ac_popdir=`pwd` | |
16052 | cd $ac_config_dir | |
16053 | ||
16054 | # A "../" for each directory in /$ac_config_dir. | |
16055 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
16056 | ||
16057 | case "$srcdir" in | |
16058 | .) # No --srcdir option. We are building in place. | |
16059 | ac_sub_srcdir=$srcdir ;; | |
16060 | /*) # Absolute path. | |
16061 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
16062 | *) # Relative path. | |
16063 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; | |
16064 | esac | |
16065 | ||
16066 | # Check for guested configure; otherwise get Cygnus style configure. | |
16067 | if test -f $ac_sub_srcdir/configure; then | |
16068 | ac_sub_configure=$ac_sub_srcdir/configure | |
16069 | elif test -f $ac_sub_srcdir/configure.in; then | |
16070 | ac_sub_configure=$ac_configure | |
16071 | else | |
16072 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 | |
16073 | ac_sub_configure= | |
16074 | fi | |
16075 | ||
16076 | # The recursion is here. | |
16077 | if test -n "$ac_sub_configure"; then | |
16078 | ||
16079 | # Make the cache file name correct relative to the subdirectory. | |
16080 | case "$cache_file" in | |
16081 | /*) ac_sub_cache_file=$cache_file ;; | |
16082 | *) # Relative path. | |
16083 | ac_sub_cache_file="$ac_dots$cache_file" ;; | |
16084 | esac | |
16085 | case "$ac_given_INSTALL" in | |
16086 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
16087 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
16088 | esac | |
16089 | ||
16090 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" | |
16091 | # The eval makes quoting arguments work. | |
16092 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir | |
16093 | then : | |
16094 | else | |
16095 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
16096 | fi | |
16097 | fi | |
16098 | ||
16099 | cd $ac_popdir | |
16100 | done | |
16101 | fi | |
16102 | ||
10f2d63a | 16103 |