]>
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 | |
0046ff7c VS |
292 | --enable-image use wxImage class" |
293 | ac_help="$ac_help | |
10f2d63a VZ |
294 | --enable-gif use gif images (GIF file format)" |
295 | ac_help="$ac_help | |
296 | --enable-pcx use pcx images (PCX file format)" | |
297 | ac_help="$ac_help | |
298 | --enable-pnm use pnm images (PNM file format)" | |
0046ff7c VS |
299 | ac_help="$ac_help |
300 | --enable-xpm use xpm images (XPM file format)" | |
6f72b082 OK |
301 | ac_help="$ac_help |
302 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
303 | ac_help="$ac_help | |
304 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
305 | ac_help="$ac_help | |
306 | --disable-gtktest Do not try to compile and run a test GTK program" | |
ab9b9eab VZ |
307 | ac_help="$ac_help |
308 | --with-x use the X Window System" | |
10f2d63a VZ |
309 | |
310 | # Initialize some variables set by options. | |
311 | # The variables have the same names as the options, with | |
312 | # dashes changed to underlines. | |
313 | build=NONE | |
314 | cache_file=./config.cache | |
315 | exec_prefix=NONE | |
316 | host=NONE | |
317 | no_create= | |
318 | nonopt=NONE | |
319 | no_recursion= | |
320 | prefix=NONE | |
321 | program_prefix=NONE | |
322 | program_suffix=NONE | |
323 | program_transform_name=s,x,x, | |
324 | silent= | |
325 | site= | |
326 | srcdir= | |
327 | target=NONE | |
328 | verbose= | |
329 | x_includes=NONE | |
330 | x_libraries=NONE | |
331 | bindir='${exec_prefix}/bin' | |
332 | sbindir='${exec_prefix}/sbin' | |
333 | libexecdir='${exec_prefix}/libexec' | |
334 | datadir='${prefix}/share' | |
335 | sysconfdir='${prefix}/etc' | |
336 | sharedstatedir='${prefix}/com' | |
337 | localstatedir='${prefix}/var' | |
338 | libdir='${exec_prefix}/lib' | |
339 | includedir='${prefix}/include' | |
340 | oldincludedir='/usr/include' | |
341 | infodir='${prefix}/info' | |
342 | mandir='${prefix}/man' | |
343 | ||
344 | # Initialize some other variables. | |
345 | subdirs= | |
346 | MFLAGS= MAKEFLAGS= | |
347 | SHELL=${CONFIG_SHELL-/bin/sh} | |
348 | # Maximum number of lines to put in a shell here document. | |
349 | ac_max_here_lines=12 | |
350 | ||
351 | ac_prev= | |
352 | for ac_option | |
353 | do | |
354 | ||
355 | # If the previous option needs an argument, assign it. | |
356 | if test -n "$ac_prev"; then | |
357 | eval "$ac_prev=\$ac_option" | |
358 | ac_prev= | |
359 | continue | |
360 | fi | |
361 | ||
362 | case "$ac_option" in | |
363 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
364 | *) ac_optarg= ;; | |
365 | esac | |
366 | ||
367 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
368 | ||
369 | case "$ac_option" in | |
370 | ||
371 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
372 | ac_prev=bindir ;; | |
373 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
374 | bindir="$ac_optarg" ;; | |
375 | ||
376 | -build | --build | --buil | --bui | --bu) | |
377 | ac_prev=build ;; | |
378 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
379 | build="$ac_optarg" ;; | |
380 | ||
381 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
382 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
383 | ac_prev=cache_file ;; | |
384 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
385 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
386 | cache_file="$ac_optarg" ;; | |
387 | ||
388 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
389 | ac_prev=datadir ;; | |
390 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
391 | | --da=*) | |
392 | datadir="$ac_optarg" ;; | |
393 | ||
394 | -disable-* | --disable-*) | |
395 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
396 | # Reject names that are not valid shell variable names. | |
397 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
398 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
399 | fi | |
400 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
401 | eval "enable_${ac_feature}=no" ;; | |
402 | ||
403 | -enable-* | --enable-*) | |
404 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
405 | # Reject names that are not valid shell variable names. | |
406 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
407 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
408 | fi | |
409 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
410 | case "$ac_option" in | |
411 | *=*) ;; | |
412 | *) ac_optarg=yes ;; | |
413 | esac | |
414 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
415 | ||
416 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
417 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
418 | | --exec | --exe | --ex) | |
419 | ac_prev=exec_prefix ;; | |
420 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
421 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
422 | | --exec=* | --exe=* | --ex=*) | |
423 | exec_prefix="$ac_optarg" ;; | |
424 | ||
425 | -gas | --gas | --ga | --g) | |
426 | # Obsolete; use --with-gas. | |
427 | with_gas=yes ;; | |
428 | ||
429 | -help | --help | --hel | --he) | |
430 | # Omit some internal or obsolete options to make the list less imposing. | |
431 | # This message is too long to be a string in the A/UX 3.1 sh. | |
432 | cat << EOF | |
433 | Usage: configure [options] [host] | |
434 | Options: [defaults in brackets after descriptions] | |
435 | Configuration: | |
436 | --cache-file=FILE cache test results in FILE | |
437 | --help print this message | |
438 | --no-create do not create output files | |
439 | --quiet, --silent do not print \`checking...' messages | |
440 | --version print the version of autoconf that created configure | |
441 | Directory and file names: | |
442 | --prefix=PREFIX install architecture-independent files in PREFIX | |
443 | [$ac_default_prefix] | |
444 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
445 | [same as prefix] | |
446 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
447 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
448 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
449 | --datadir=DIR read-only architecture-independent data in DIR | |
450 | [PREFIX/share] | |
451 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
452 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
453 | [PREFIX/com] | |
454 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
455 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
456 | --includedir=DIR C header files in DIR [PREFIX/include] | |
457 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
458 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
459 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
460 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
461 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
462 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
463 | --program-transform-name=PROGRAM | |
464 | run sed PROGRAM on installed program names | |
465 | EOF | |
466 | cat << EOF | |
467 | Host type: | |
468 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
469 | --host=HOST configure for HOST [guessed] | |
470 | --target=TARGET configure for TARGET [TARGET=HOST] | |
471 | Features and packages: | |
472 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
473 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
474 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
475 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
476 | --x-includes=DIR X include files are in DIR | |
477 | --x-libraries=DIR X library files are in DIR | |
478 | EOF | |
479 | if test -n "$ac_help"; then | |
480 | echo "--enable and --with options recognized:$ac_help" | |
481 | fi | |
482 | exit 0 ;; | |
483 | ||
484 | -host | --host | --hos | --ho) | |
485 | ac_prev=host ;; | |
486 | -host=* | --host=* | --hos=* | --ho=*) | |
487 | host="$ac_optarg" ;; | |
488 | ||
489 | -includedir | --includedir | --includedi | --included | --include \ | |
490 | | --includ | --inclu | --incl | --inc) | |
491 | ac_prev=includedir ;; | |
492 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
493 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
494 | includedir="$ac_optarg" ;; | |
495 | ||
496 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
497 | ac_prev=infodir ;; | |
498 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
499 | infodir="$ac_optarg" ;; | |
500 | ||
501 | -libdir | --libdir | --libdi | --libd) | |
502 | ac_prev=libdir ;; | |
503 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
504 | libdir="$ac_optarg" ;; | |
505 | ||
506 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
507 | | --libexe | --libex | --libe) | |
508 | ac_prev=libexecdir ;; | |
509 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
510 | | --libexe=* | --libex=* | --libe=*) | |
511 | libexecdir="$ac_optarg" ;; | |
512 | ||
513 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
514 | | --localstate | --localstat | --localsta | --localst \ | |
515 | | --locals | --local | --loca | --loc | --lo) | |
516 | ac_prev=localstatedir ;; | |
517 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
518 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
519 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
520 | localstatedir="$ac_optarg" ;; | |
521 | ||
522 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
523 | ac_prev=mandir ;; | |
524 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
525 | mandir="$ac_optarg" ;; | |
526 | ||
527 | -nfp | --nfp | --nf) | |
528 | # Obsolete; use --without-fp. | |
529 | with_fp=no ;; | |
530 | ||
531 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
532 | | --no-cr | --no-c) | |
533 | no_create=yes ;; | |
534 | ||
535 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
536 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
537 | no_recursion=yes ;; | |
538 | ||
539 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
540 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
541 | | --oldin | --oldi | --old | --ol | --o) | |
542 | ac_prev=oldincludedir ;; | |
543 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
544 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
545 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
546 | oldincludedir="$ac_optarg" ;; | |
547 | ||
548 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
549 | ac_prev=prefix ;; | |
550 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
551 | prefix="$ac_optarg" ;; | |
552 | ||
553 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
554 | | --program-pre | --program-pr | --program-p) | |
555 | ac_prev=program_prefix ;; | |
556 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
557 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
558 | program_prefix="$ac_optarg" ;; | |
559 | ||
560 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
561 | | --program-suf | --program-su | --program-s) | |
562 | ac_prev=program_suffix ;; | |
563 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
564 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
565 | program_suffix="$ac_optarg" ;; | |
566 | ||
567 | -program-transform-name | --program-transform-name \ | |
568 | | --program-transform-nam | --program-transform-na \ | |
569 | | --program-transform-n | --program-transform- \ | |
570 | | --program-transform | --program-transfor \ | |
571 | | --program-transfo | --program-transf \ | |
572 | | --program-trans | --program-tran \ | |
573 | | --progr-tra | --program-tr | --program-t) | |
574 | ac_prev=program_transform_name ;; | |
575 | -program-transform-name=* | --program-transform-name=* \ | |
576 | | --program-transform-nam=* | --program-transform-na=* \ | |
577 | | --program-transform-n=* | --program-transform-=* \ | |
578 | | --program-transform=* | --program-transfor=* \ | |
579 | | --program-transfo=* | --program-transf=* \ | |
580 | | --program-trans=* | --program-tran=* \ | |
581 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
582 | program_transform_name="$ac_optarg" ;; | |
583 | ||
584 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
585 | | -silent | --silent | --silen | --sile | --sil) | |
586 | silent=yes ;; | |
587 | ||
588 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
589 | ac_prev=sbindir ;; | |
590 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
591 | | --sbi=* | --sb=*) | |
592 | sbindir="$ac_optarg" ;; | |
593 | ||
594 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
595 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
596 | | --sharedst | --shareds | --shared | --share | --shar \ | |
597 | | --sha | --sh) | |
598 | ac_prev=sharedstatedir ;; | |
599 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
600 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
601 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
602 | | --sha=* | --sh=*) | |
603 | sharedstatedir="$ac_optarg" ;; | |
604 | ||
605 | -site | --site | --sit) | |
606 | ac_prev=site ;; | |
607 | -site=* | --site=* | --sit=*) | |
608 | site="$ac_optarg" ;; | |
609 | ||
610 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
611 | ac_prev=srcdir ;; | |
612 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
613 | srcdir="$ac_optarg" ;; | |
614 | ||
615 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
616 | | --syscon | --sysco | --sysc | --sys | --sy) | |
617 | ac_prev=sysconfdir ;; | |
618 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
619 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
620 | sysconfdir="$ac_optarg" ;; | |
621 | ||
622 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
623 | ac_prev=target ;; | |
624 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
625 | target="$ac_optarg" ;; | |
626 | ||
627 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
628 | verbose=yes ;; | |
629 | ||
630 | -version | --version | --versio | --versi | --vers) | |
e8482f24 | 631 | echo "configure generated by autoconf version 2.13" |
10f2d63a VZ |
632 | exit 0 ;; |
633 | ||
634 | -with-* | --with-*) | |
635 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
636 | # Reject names that are not valid shell variable names. | |
637 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
638 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
639 | fi | |
640 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
641 | case "$ac_option" in | |
642 | *=*) ;; | |
643 | *) ac_optarg=yes ;; | |
644 | esac | |
645 | eval "with_${ac_package}='$ac_optarg'" ;; | |
646 | ||
647 | -without-* | --without-*) | |
648 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
649 | # Reject names that are not valid shell variable names. | |
650 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
651 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
652 | fi | |
653 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
654 | eval "with_${ac_package}=no" ;; | |
655 | ||
656 | --x) | |
657 | # Obsolete; use --with-x. | |
658 | with_x=yes ;; | |
659 | ||
660 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
661 | | --x-incl | --x-inc | --x-in | --x-i) | |
662 | ac_prev=x_includes ;; | |
663 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
664 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
665 | x_includes="$ac_optarg" ;; | |
666 | ||
667 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
668 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
669 | ac_prev=x_libraries ;; | |
670 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
671 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
672 | x_libraries="$ac_optarg" ;; | |
673 | ||
674 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
675 | ;; | |
676 | ||
677 | *) | |
678 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
679 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
680 | fi | |
681 | if test "x$nonopt" != xNONE; then | |
682 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
683 | fi | |
684 | nonopt="$ac_option" | |
685 | ;; | |
686 | ||
687 | esac | |
688 | done | |
689 | ||
690 | if test -n "$ac_prev"; then | |
691 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
692 | fi | |
693 | ||
694 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
695 | ||
696 | # File descriptor usage: | |
697 | # 0 standard input | |
698 | # 1 file creation | |
699 | # 2 errors and warnings | |
700 | # 3 some systems may open it to /dev/tty | |
701 | # 4 used on the Kubota Titan | |
702 | # 6 checking for... messages and results | |
703 | # 5 compiler messages saved in config.log | |
704 | if test "$silent" = yes; then | |
705 | exec 6>/dev/null | |
706 | else | |
707 | exec 6>&1 | |
708 | fi | |
709 | exec 5>./config.log | |
710 | ||
711 | echo "\ | |
712 | This file contains any messages produced by compilers while | |
713 | running configure, to aid debugging if configure makes a mistake. | |
714 | " 1>&5 | |
715 | ||
716 | # Strip out --no-create and --no-recursion so they do not pile up. | |
717 | # Also quote any args containing shell metacharacters. | |
718 | ac_configure_args= | |
719 | for ac_arg | |
720 | do | |
721 | case "$ac_arg" in | |
722 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
723 | | --no-cr | --no-c) ;; | |
724 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
725 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
726 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
727 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
728 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
729 | esac | |
730 | done | |
731 | ||
732 | # NLS nuisances. | |
733 | # Only set these to C if already set. These must not be set unconditionally | |
734 | # because not all systems understand e.g. LANG=C (notably SCO). | |
735 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
736 | # Non-C LC_CTYPE values break the ctype check. | |
737 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
738 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
739 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
740 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
741 | ||
742 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
743 | rm -rf conftest* confdefs.h | |
744 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
745 | echo > confdefs.h | |
746 | ||
747 | # A filename unique to this package, relative to the directory that | |
748 | # configure is in, which we can look for to find out if srcdir is correct. | |
749 | ac_unique_file=wx-config.in | |
750 | ||
751 | # Find the source files, if location was not specified. | |
752 | if test -z "$srcdir"; then | |
753 | ac_srcdir_defaulted=yes | |
754 | # Try the directory containing this script, then its parent. | |
755 | ac_prog=$0 | |
756 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
757 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
758 | srcdir=$ac_confdir | |
759 | if test ! -r $srcdir/$ac_unique_file; then | |
760 | srcdir=.. | |
761 | fi | |
762 | else | |
763 | ac_srcdir_defaulted=no | |
764 | fi | |
765 | if test ! -r $srcdir/$ac_unique_file; then | |
766 | if test "$ac_srcdir_defaulted" = yes; then | |
767 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
768 | else | |
769 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
770 | fi | |
771 | fi | |
772 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
773 | ||
774 | # Prefer explicitly selected file to automatically selected ones. | |
775 | if test -z "$CONFIG_SITE"; then | |
776 | if test "x$prefix" != xNONE; then | |
777 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
778 | else | |
779 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
780 | fi | |
781 | fi | |
782 | for ac_site_file in $CONFIG_SITE; do | |
783 | if test -r "$ac_site_file"; then | |
784 | echo "loading site script $ac_site_file" | |
785 | . "$ac_site_file" | |
786 | fi | |
787 | done | |
788 | ||
789 | if test -r "$cache_file"; then | |
790 | echo "loading cache $cache_file" | |
791 | . $cache_file | |
792 | else | |
793 | echo "creating cache $cache_file" | |
794 | > $cache_file | |
795 | fi | |
796 | ||
797 | ac_ext=c | |
798 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
799 | ac_cpp='$CPP $CPPFLAGS' | |
800 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
801 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
802 | cross_compiling=$ac_cv_prog_cc_cross | |
803 | ||
804 | ac_exeext= | |
805 | ac_objext=o | |
806 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
807 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
808 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
809 | ac_n= ac_c=' | |
810 | ' ac_t=' ' | |
811 | else | |
812 | ac_n=-n ac_c= ac_t= | |
813 | fi | |
814 | else | |
815 | ac_n= ac_c='\c' ac_t= | |
816 | fi | |
817 | ||
818 | ||
819 | ||
7c66a493 VZ |
820 | ac_aux_dir= |
821 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
822 | if 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 | elif test -f $ac_dir/install.sh; then | |
827 | ac_aux_dir=$ac_dir | |
828 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
829 | break | |
830 | fi | |
831 | done | |
832 | if test -z "$ac_aux_dir"; then | |
833 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
834 | fi | |
835 | ac_config_guess=$ac_aux_dir/config.guess | |
836 | ac_config_sub=$ac_aux_dir/config.sub | |
837 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
838 | ||
839 | ||
840 | # Do some error checking and defaulting for the host and target type. | |
841 | # The inputs are: | |
842 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
843 | # | |
844 | # The rules are: | |
845 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
846 | # same time. | |
847 | # 2. Host defaults to nonopt. | |
848 | # 3. If nonopt is not specified, then host defaults to the current host, | |
849 | # as determined by config.guess. | |
850 | # 4. Target and build default to nonopt. | |
851 | # 5. If nonopt is not specified, then target and build default to host. | |
852 | ||
853 | # The aliases save the names the user supplied, while $host etc. | |
854 | # will get canonicalized. | |
855 | case $host---$target---$nonopt in | |
856 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
857 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
858 | esac | |
859 | ||
860 | ||
861 | # Make sure we can run config.sub. | |
862 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
863 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
864 | fi | |
865 | ||
866 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
0046ff7c | 867 | echo "configure:868: checking host system type" >&5 |
7c66a493 VZ |
868 | |
869 | host_alias=$host | |
870 | case "$host_alias" in | |
871 | NONE) | |
872 | case $nonopt in | |
873 | NONE) | |
874 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
875 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
876 | fi ;; | |
877 | *) host_alias=$nonopt ;; | |
878 | esac ;; | |
879 | esac | |
880 | ||
881 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
882 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
883 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
884 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
885 | echo "$ac_t""$host" 1>&6 | |
886 | ||
887 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
0046ff7c | 888 | echo "configure:889: checking target system type" >&5 |
7c66a493 VZ |
889 | |
890 | target_alias=$target | |
891 | case "$target_alias" in | |
892 | NONE) | |
893 | case $nonopt in | |
894 | NONE) target_alias=$host_alias ;; | |
895 | *) target_alias=$nonopt ;; | |
896 | esac ;; | |
897 | esac | |
898 | ||
899 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
900 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
901 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
902 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
903 | echo "$ac_t""$target" 1>&6 | |
904 | ||
905 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
0046ff7c | 906 | echo "configure:907: checking build system type" >&5 |
7c66a493 VZ |
907 | |
908 | build_alias=$build | |
909 | case "$build_alias" in | |
910 | NONE) | |
911 | case $nonopt in | |
912 | NONE) build_alias=$host_alias ;; | |
913 | *) build_alias=$nonopt ;; | |
914 | esac ;; | |
915 | esac | |
916 | ||
917 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
918 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
919 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
920 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
921 | echo "$ac_t""$build" 1>&6 | |
922 | ||
923 | test "$host_alias" != "$target_alias" && | |
924 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
925 | NONENONEs,x,x, && | |
926 | program_prefix=${target_alias}- | |
927 | ||
928 | ||
10f2d63a VZ |
929 | |
930 | WX_MAJOR_VERSION_NUMBER=2 | |
37d403aa | 931 | WX_MINOR_VERSION_NUMBER=3 |
f6bcfd97 | 932 | WX_RELEASE_NUMBER=0 |
10f2d63a | 933 | |
10f2d63a | 934 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 935 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c RL |
936 | |
937 | WX_CURRENT=0 | |
938 | WX_REVISION=0 | |
939 | WX_AGE=0 | |
940 | ||
10f2d63a VZ |
941 | |
942 | ||
943 | USE_UNIX=1 | |
944 | USE_WIN32=0 | |
b12915c1 VZ |
945 | USE_BEOS=0 |
946 | ||
10f2d63a VZ |
947 | USE_LINUX= |
948 | USE_SGI= | |
949 | USE_HPUX= | |
950 | USE_SYSV= | |
951 | USE_SVR4= | |
952 | USE_AIX= | |
953 | USE_SUN= | |
954 | USE_SOLARIS= | |
955 | USE_SUNOS= | |
956 | USE_ALPHA= | |
957 | USE_OSF= | |
958 | USE_BSD= | |
959 | USE_FREEBSD= | |
95c8801c | 960 | USE_OPENBSD= |
f6bcfd97 | 961 | USE_NETBSD= |
10f2d63a VZ |
962 | USE_VMS= |
963 | USE_ULTRIX= | |
964 | USE_CYGWIN= | |
965 | USE_MINGW= | |
966 | USE_DATA_GENERAL= | |
967 | ||
ab9b9eab VZ |
968 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
969 | ||
b4085ce6 | 970 | ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF MAC WINE PM" |
10f2d63a VZ |
971 | |
972 | DEFAULT_wxUSE_GTK=0 | |
973 | DEFAULT_wxUSE_MOTIF=0 | |
974 | DEFAULT_wxUSE_MSW=0 | |
b4085ce6 | 975 | DEFAULT_wxUSE_MAC=0 |
10f2d63a | 976 | DEFAULT_wxUSE_WINE=0 |
e07802fc | 977 | DEFAULT_wxUSE_PM=0 |
10f2d63a VZ |
978 | |
979 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
980 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
981 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
b4085ce6 | 982 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
10f2d63a | 983 | DEFAULT_DEFAULT_wxUSE_WINE=0 |
e07802fc | 984 | DEFAULT_DEFAULT_wxUSE_PM=0 |
10f2d63a | 985 | |
d6a55c4b VZ |
986 | PROGRAM_EXT= |
987 | ||
10f2d63a VZ |
988 | case "${host}" in |
989 | *-hp-hpux* ) | |
990 | USE_HPUX=1 | |
991 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 992 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
993 | cat >> confdefs.h <<\EOF |
994 | #define __HPUX__ 1 | |
995 | EOF | |
996 | ||
997 | ;; | |
998 | *-*-linux* ) | |
999 | USE_LINUX=1 | |
1000 | cat >> confdefs.h <<\EOF | |
1001 | #define __LINUX__ 1 | |
1002 | EOF | |
1003 | ||
1004 | TMP=`uname -m` | |
1005 | if test "x$TMP" = "xalpha"; then | |
1006 | USE_ALPHA=1 | |
1007 | cat >> confdefs.h <<\EOF | |
1008 | #define __ALPHA__ 1 | |
1009 | EOF | |
1010 | ||
1011 | fi | |
1012 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1013 | ;; | |
1014 | *-*-irix5* | *-*-irix6* ) | |
1015 | USE_SGI=1 | |
1016 | USE_SVR4=1 | |
1017 | cat >> confdefs.h <<\EOF | |
1018 | #define __SGI__ 1 | |
1019 | EOF | |
1020 | ||
1021 | cat >> confdefs.h <<\EOF | |
1022 | #define __SVR4__ 1 | |
1023 | EOF | |
1024 | ||
1025 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1026 | ;; | |
1027 | *-*-solaris2* ) | |
1028 | USE_SUN=1 | |
1029 | USE_SOLARIS=1 | |
1030 | USE_SVR4=1 | |
1031 | cat >> confdefs.h <<\EOF | |
1032 | #define __SUN__ 1 | |
1033 | EOF | |
1034 | ||
1035 | cat >> confdefs.h <<\EOF | |
1036 | #define __SOLARIS__ 1 | |
1037 | EOF | |
1038 | ||
1039 | cat >> confdefs.h <<\EOF | |
1040 | #define __SVR4__ 1 | |
1041 | EOF | |
1042 | ||
1043 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1044 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1045 | ;; |
1046 | *-*-sunos4* ) | |
1047 | USE_SUN=1 | |
1048 | USE_SUNOS=1 | |
1049 | USE_BSD=1 | |
1050 | cat >> confdefs.h <<\EOF | |
1051 | #define __SUN__ 1 | |
1052 | EOF | |
1053 | ||
1054 | cat >> confdefs.h <<\EOF | |
1055 | #define __SUNOS__ 1 | |
1056 | EOF | |
1057 | ||
1058 | cat >> confdefs.h <<\EOF | |
1059 | #define __BSD__ 1 | |
1060 | EOF | |
1061 | ||
1062 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1063 | ;; | |
f6bcfd97 | 1064 | *-*-freebsd*) |
10f2d63a VZ |
1065 | USE_BSD=1 |
1066 | USE_FREEBSD=1 | |
1067 | cat >> confdefs.h <<\EOF | |
1068 | #define __FREEBSD__ 1 | |
1069 | EOF | |
1070 | ||
1071 | cat >> confdefs.h <<\EOF | |
1072 | #define __BSD__ 1 | |
95c8801c VS |
1073 | EOF |
1074 | ||
1075 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1076 | ;; | |
1077 | *-*-openbsd*) | |
1078 | USE_BSD=1 | |
1079 | USE_OPENBSD=1 | |
1080 | cat >> confdefs.h <<\EOF | |
1081 | #define __FREEBSD__ 1 | |
1082 | EOF | |
1083 | ||
1084 | cat >> confdefs.h <<\EOF | |
1085 | #define __OPENBSD__ 1 | |
f6bcfd97 BP |
1086 | EOF |
1087 | ||
1088 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1089 | ;; | |
1090 | *-*-netbsd*) | |
1091 | USE_BSD=1 | |
1092 | USE_NETBSD=1 | |
1093 | cat >> confdefs.h <<\EOF | |
1094 | #define __FREEBSD__ 1 | |
1095 | EOF | |
1096 | ||
1097 | cat >> confdefs.h <<\EOF | |
1098 | #define __NETBSD__ 1 | |
10f2d63a VZ |
1099 | EOF |
1100 | ||
1101 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1102 | ;; | |
1103 | *-*-osf* ) | |
1104 | USE_ALPHA=1 | |
1105 | USE_OSF=1 | |
1106 | cat >> confdefs.h <<\EOF | |
1107 | #define __ALPHA__ 1 | |
1108 | EOF | |
1109 | ||
1110 | cat >> confdefs.h <<\EOF | |
1111 | #define __OSF__ 1 | |
1112 | EOF | |
1113 | ||
1114 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1115 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1116 | ;; |
1117 | *-*-dgux5* ) | |
1118 | USE_ALPHA=1 | |
1119 | USE_SVR4=1 | |
1120 | cat >> confdefs.h <<\EOF | |
1121 | #define __ALPHA__ 1 | |
1122 | EOF | |
1123 | ||
1124 | cat >> confdefs.h <<\EOF | |
1125 | #define __SVR4__ 1 | |
1126 | EOF | |
1127 | ||
1128 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1129 | ;; | |
1130 | *-*-sysv5* ) | |
1131 | USE_SYSV=1 | |
1132 | USE_SVR4=1 | |
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 | *-*-aix* ) | |
1144 | USE_AIX=1 | |
1145 | USE_SYSV=1 | |
1146 | USE_SVR4=1 | |
1147 | cat >> confdefs.h <<\EOF | |
1148 | #define __AIX__ 1 | |
1149 | EOF | |
1150 | ||
1151 | cat >> confdefs.h <<\EOF | |
1152 | #define __SYSV__ 1 | |
1153 | EOF | |
1154 | ||
1155 | cat >> confdefs.h <<\EOF | |
1156 | #define __SVR4__ 1 | |
1157 | EOF | |
1158 | ||
1159 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1160 | ;; | |
1161 | ||
7eef8db2 | 1162 | *-*-cygwin32* | *-*-mingw32* ) |
10f2d63a VZ |
1163 | USE_UNIX=0 |
1164 | USE_WIN32=1 | |
1165 | cat >> confdefs.h <<\EOF | |
1166 | #define __WIN32__ 1 | |
1167 | EOF | |
1168 | ||
1169 | cat >> confdefs.h <<\EOF | |
1170 | #define __WIN95__ 1 | |
1171 | EOF | |
1172 | ||
1173 | cat >> confdefs.h <<\EOF | |
1174 | #define __WINDOWS__ 1 | |
1175 | EOF | |
1176 | ||
1177 | cat >> confdefs.h <<\EOF | |
1178 | #define __GNUWIN32__ 1 | |
1179 | EOF | |
1180 | ||
1181 | cat >> confdefs.h <<\EOF | |
1182 | #define STRICT 1 | |
1183 | EOF | |
1184 | ||
1185 | cat >> confdefs.h <<\EOF | |
1186 | #define WINVER 0x0400 | |
1187 | EOF | |
1188 | ||
cf27ef00 | 1189 | PROGRAM_EXT=".exe" |
10f2d63a VZ |
1190 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1191 | ;; | |
1192 | ||
1193 | *-pc-os2_emx ) | |
1194 | cat >> confdefs.h <<\EOF | |
1195 | #define __EMX__ 1 | |
1196 | EOF | |
1197 | ||
cf27ef00 | 1198 | PROGRAM_EXT=".exe" |
e07802fc | 1199 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1200 | ;; |
1201 | ||
b4085ce6 GD |
1202 | *-*-darwin* ) |
1203 | USE_BSD=1 | |
1204 | USE_MAC=1 | |
1205 | cat >> confdefs.h <<\EOF | |
1206 | #define __MAC__ 1 | |
1207 | EOF | |
1208 | ||
1209 | cat >> confdefs.h <<\EOF | |
1210 | #define __BSD__ 1 | |
1211 | EOF | |
1212 | ||
1213 | cat >> confdefs.h <<\EOF | |
1214 | #define __UNIX__ 1 | |
1215 | EOF | |
1216 | ||
1217 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1218 | ;; | |
1219 | ||
b12915c1 VZ |
1220 | *-*-beos* ) |
1221 | USE_BEOS=1 | |
1222 | cat >> confdefs.h <<\EOF | |
1223 | #define __BEOS__ 1 | |
1224 | EOF | |
1225 | ||
1226 | ;; | |
1227 | ||
10f2d63a VZ |
1228 | *) |
1229 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } | |
1230 | esac | |
1231 | ||
1232 | if test "$USE_UNIX" = 1 ; then | |
b12915c1 VZ |
1233 | wxUSE_UNIX=yes |
1234 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
1235 | #define __UNIX__ 1 |
1236 | EOF | |
1237 | ||
b12915c1 VZ |
1238 | |
1239 | SRC_SUBDIRS="$SRC_SUBDIRS unix" | |
1240 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix" | |
1241 | fi | |
1242 | ||
1243 | if test "$USE_BEOS" = 1; then | |
1244 | SRC_SUBDIRS="$SRC_SUBDIRS be" | |
1245 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be" | |
10f2d63a VZ |
1246 | fi |
1247 | ||
1248 | if test "$USE_LINUX" = 1; then | |
1249 | echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6 | |
95c8801c | 1250 | echo "configure:1251: checking for gettext in -lc" >&5 |
10f2d63a VZ |
1251 | ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'` |
1252 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1253 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1254 | else | |
1255 | ac_save_LIBS="$LIBS" | |
1256 | LIBS="-lc $LIBS" | |
1257 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 1258 | #line 1259 "configure" |
10f2d63a VZ |
1259 | #include "confdefs.h" |
1260 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1261 | /* We use char because int might match the return type of a gcc2 | |
1262 | builtin and then its argument prototype would still apply. */ | |
1263 | char gettext(); | |
1264 | ||
1265 | int main() { | |
1266 | gettext() | |
1267 | ; return 0; } | |
1268 | EOF | |
95c8801c | 1269 | if { (eval echo configure:1270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
1270 | rm -rf conftest* |
1271 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1272 | else | |
1273 | echo "configure: failed program was:" >&5 | |
1274 | cat conftest.$ac_ext >&5 | |
1275 | rm -rf conftest* | |
1276 | eval "ac_cv_lib_$ac_lib_var=no" | |
1277 | fi | |
1278 | rm -f conftest* | |
1279 | LIBS="$ac_save_LIBS" | |
1280 | ||
1281 | fi | |
1282 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1283 | echo "$ac_t""yes" 1>&6 | |
1284 | cat >> confdefs.h <<\EOF | |
1285 | #define wxHAVE_GLIBC2 1 | |
1286 | EOF | |
1287 | ||
1288 | else | |
1289 | echo "$ac_t""no" 1>&6 | |
1290 | fi | |
1291 | ||
1292 | fi | |
1293 | ||
1294 | ||
1295 | ||
1296 | ||
1297 | wx_arg_cache_file="configarg.cache" | |
1298 | echo "loading argument cache $wx_arg_cache_file" | |
1299 | rm -f ${wx_arg_cache_file}.tmp | |
1300 | touch ${wx_arg_cache_file}.tmp | |
1301 | touch ${wx_arg_cache_file} | |
1302 | ||
1303 | ||
1304 | DEBUG_CONFIGURE=0 | |
1305 | if test $DEBUG_CONFIGURE = 1; then | |
1306 | DEFAULT_wxUSE_THREADS=yes | |
1307 | ||
1308 | DEFAULT_wxUSE_SHARED=yes | |
00cf1208 | 1309 | DEFAULT_wxUSE_BURNT_NAME=no |
10f2d63a VZ |
1310 | DEFAULT_wxUSE_OPTIMISE=yes |
1311 | DEFAULT_wxUSE_PROFILE=no | |
1312 | DEFAULT_wxUSE_NO_DEPS=no | |
1313 | DEFAULT_wxUSE_NO_RTTI=no | |
1314 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1315 | DEFAULT_wxUSE_PERMISSIVE=no | |
1316 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1317 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1318 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1319 | DEFAULT_wxUSE_MEM_TRACING=no | |
1320 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1321 | DEFAULT_wxUSE_DMALLOC=no | |
1322 | DEFAULT_wxUSE_APPLE_IEEE=no | |
1323 | ||
1324 | DEFAULT_wxUSE_LOG=yes | |
1325 | ||
1326 | DEFAULT_wxUSE_GUI=yes | |
1327 | ||
1328 | DEFAULT_wxUSE_ZLIB=no | |
1329 | DEFAULT_wxUSE_LIBPNG=no | |
1330 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1331 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1332 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1333 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1334 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1335 | |
eb4efbdc | 1336 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
10f2d63a VZ |
1337 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1338 | DEFAULT_wxUSE_FILE=no | |
1339 | DEFAULT_wxUSE_TEXTFILE=no | |
1340 | DEFAULT_wxUSE_TIMEDATE=no | |
1341 | DEFAULT_wxUSE_WAVE=no | |
1342 | DEFAULT_wxUSE_INTL=no | |
1343 | DEFAULT_wxUSE_CONFIG=no | |
1344 | DEFAULT_wxUSE_STREAMS=no | |
1345 | DEFAULT_wxUSE_SOCKETS=no | |
1346 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
1347 | DEFAULT_wxUSE_SERIAL=no | |
1348 | DEFAULT_wxUSE_JOYSTICK=no | |
1349 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
1350 | DEFAULT_wxUSE_LONGLONG=no | |
e8f65ba6 | 1351 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1352 | |
1353 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1354 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1355 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1356 | ||
1357 | DEFAULT_wxUSE_X_RESOURCES=no | |
1358 | DEFAULT_wxUSE_CLIPBOARD=no | |
1359 | DEFAULT_wxUSE_TOOLTIPS=no | |
1360 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
1361 | DEFAULT_wxUSE_SPLINES=no | |
1362 | ||
1363 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1364 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1365 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1366 | ||
1367 | DEFAULT_wxUSE_PROLOGIO=no | |
1368 | DEFAULT_wxUSE_RESOURCES=no | |
1369 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1370 | DEFAULT_wxUSE_IPC=no | |
1371 | DEFAULT_wxUSE_HELP=no | |
1372 | DEFAULT_wxUSE_WXTREE=no | |
1373 | DEFAULT_wxUSE_METAFILE=no | |
1374 | ||
1375 | DEFAULT_wxUSE_COMMONDLGS=no | |
1376 | DEFAULT_wxUSE_DIRDLG=no | |
1377 | DEFAULT_wxUSE_TEXTDLG=no | |
1378 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
1379 | DEFAULT_wxUSE_PROGRESSDLG=no | |
1380 | DEFAULT_wxUSE_MINIFRAME=no | |
1381 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1382 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1383 | DEFAULT_wxUSE_FS_INET=no |
1384 | DEFAULT_wxUSE_FS_ZIP=no | |
1385 | DEFAULT_wxUSE_BUSYINFO=no | |
1386 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1387 | DEFAULT_wxUSE_VALIDATORS=yes | |
1388 | ||
1389 | DEFAULT_wxUSE_ACCEL=no | |
1390 | DEFAULT_wxUSE_CARET=no | |
1391 | DEFAULT_wxUSE_BMPBUTTON=no | |
1392 | DEFAULT_wxUSE_CHECKBOX=no | |
1393 | DEFAULT_wxUSE_CHECKLST=no | |
1394 | DEFAULT_wxUSE_CHOICE=yes | |
1395 | DEFAULT_wxUSE_COMBOBOX=no | |
1396 | DEFAULT_wxUSE_GAUGE=no | |
1397 | DEFAULT_wxUSE_GRID=no | |
1398 | DEFAULT_wxUSE_NEW_GRID=no | |
1399 | DEFAULT_wxUSE_IMAGLIST=no | |
1400 | DEFAULT_wxUSE_LISTBOX=no | |
1401 | DEFAULT_wxUSE_LISTCTRL=no | |
1402 | DEFAULT_wxUSE_NOTEBOOK=no | |
1403 | DEFAULT_wxUSE_RADIOBOX=no | |
1404 | DEFAULT_wxUSE_RADIOBTN=no | |
1405 | DEFAULT_wxUSE_SASH=no | |
1406 | DEFAULT_wxUSE_SCROLLBAR=no | |
1407 | DEFAULT_wxUSE_SLIDER=no | |
1408 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1409 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1410 | DEFAULT_wxUSE_SPLITTER=no |
1411 | DEFAULT_wxUSE_STATBMP=no | |
1412 | DEFAULT_wxUSE_STATBOX=no | |
1413 | DEFAULT_wxUSE_STATLINE=no | |
1414 | DEFAULT_wxUSE_STATUSBAR=yes | |
1415 | DEFAULT_wxUSE_TABDIALOG=no | |
1db8dc4a | 1416 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1417 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1418 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1419 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
1420 | DEFAULT_wxUSE_TREECTRL=no |
1421 | ||
1422 | DEFAULT_wxUSE_UNICODE=no | |
1423 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1424 | ||
0046ff7c | 1425 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1426 | DEFAULT_wxUSE_GIF=no |
1427 | DEFAULT_wxUSE_PCX=no | |
1428 | DEFAULT_wxUSE_PNM=no | |
0046ff7c | 1429 | DEFAULT_wxUSE_XPM=no |
10f2d63a VZ |
1430 | else |
1431 | DEFAULT_wxUSE_THREADS=yes | |
1432 | ||
1433 | DEFAULT_wxUSE_SHARED=yes | |
00cf1208 | 1434 | DEFAULT_wxUSE_BURNT_NAME=no |
10f2d63a VZ |
1435 | DEFAULT_wxUSE_OPTIMISE=yes |
1436 | DEFAULT_wxUSE_PROFILE=no | |
1437 | DEFAULT_wxUSE_NO_DEPS=no | |
1438 | DEFAULT_wxUSE_NO_RTTI=no | |
1439 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1440 | DEFAULT_wxUSE_PERMISSIVE=no | |
1441 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1442 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1443 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1444 | DEFAULT_wxUSE_MEM_TRACING=no | |
1445 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1446 | DEFAULT_wxUSE_DMALLOC=no | |
1447 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
1448 | ||
1449 | DEFAULT_wxUSE_LOG=yes | |
1450 | ||
1451 | DEFAULT_wxUSE_GUI=yes | |
1452 | ||
1453 | DEFAULT_wxUSE_ZLIB=yes | |
1454 | DEFAULT_wxUSE_LIBPNG=yes | |
1455 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1456 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1457 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1458 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1459 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1460 | |
eb4efbdc | 1461 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
10f2d63a VZ |
1462 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1463 | DEFAULT_wxUSE_FILE=yes | |
1464 | DEFAULT_wxUSE_TEXTFILE=yes | |
1465 | DEFAULT_wxUSE_TIMEDATE=yes | |
1466 | DEFAULT_wxUSE_WAVE=no | |
1467 | DEFAULT_wxUSE_INTL=yes | |
1468 | DEFAULT_wxUSE_CONFIG=yes | |
1469 | DEFAULT_wxUSE_STREAMS=yes | |
1470 | DEFAULT_wxUSE_SOCKETS=yes | |
1471 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
1472 | DEFAULT_wxUSE_SERIAL=yes | |
1473 | DEFAULT_wxUSE_JOYSTICK=yes | |
1474 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
b685cd9b | 1475 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1476 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1477 | |
1478 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1479 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1480 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1481 | ||
1482 | DEFAULT_wxUSE_X_RESOURCES=no | |
1483 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1484 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1485 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
1486 | DEFAULT_wxUSE_SPLINES=yes | |
1487 | ||
1488 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1489 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1490 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1491 | ||
1492 | DEFAULT_wxUSE_PROLOGIO=yes | |
1493 | DEFAULT_wxUSE_RESOURCES=yes | |
1494 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1495 | DEFAULT_wxUSE_IPC=yes | |
1496 | DEFAULT_wxUSE_HELP=yes | |
1497 | DEFAULT_wxUSE_WXTREE=yes | |
1498 | DEFAULT_wxUSE_METAFILE=yes | |
1499 | ||
1500 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1501 | DEFAULT_wxUSE_DIRDLG=yes | |
1502 | DEFAULT_wxUSE_TEXTDLG=yes | |
1503 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
1504 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
1505 | DEFAULT_wxUSE_MINIFRAME=yes | |
1506 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1507 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1508 | DEFAULT_wxUSE_FS_INET=yes |
1509 | DEFAULT_wxUSE_FS_ZIP=yes | |
1510 | DEFAULT_wxUSE_BUSYINFO=yes | |
1511 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1512 | DEFAULT_wxUSE_VALIDATORS=yes | |
1513 | ||
1514 | DEFAULT_wxUSE_ACCEL=yes | |
1515 | DEFAULT_wxUSE_CARET=yes | |
1516 | DEFAULT_wxUSE_BMPBUTTON=yes | |
1517 | DEFAULT_wxUSE_CHECKBOX=yes | |
1518 | DEFAULT_wxUSE_CHECKLST=yes | |
1519 | DEFAULT_wxUSE_CHOICE=yes | |
1520 | DEFAULT_wxUSE_COMBOBOX=yes | |
1521 | DEFAULT_wxUSE_GAUGE=yes | |
1522 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1523 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1524 | DEFAULT_wxUSE_IMAGLIST=yes |
1525 | DEFAULT_wxUSE_LISTBOX=yes | |
1526 | DEFAULT_wxUSE_LISTCTRL=yes | |
1527 | DEFAULT_wxUSE_NOTEBOOK=yes | |
1528 | DEFAULT_wxUSE_RADIOBOX=yes | |
1529 | DEFAULT_wxUSE_RADIOBTN=yes | |
1530 | DEFAULT_wxUSE_SASH=yes | |
1531 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1532 | DEFAULT_wxUSE_SLIDER=yes | |
1533 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1534 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1535 | DEFAULT_wxUSE_SPLITTER=yes |
1536 | DEFAULT_wxUSE_STATBMP=yes | |
1537 | DEFAULT_wxUSE_STATBOX=yes | |
1538 | DEFAULT_wxUSE_STATLINE=yes | |
1539 | DEFAULT_wxUSE_STATUSBAR=yes | |
1540 | DEFAULT_wxUSE_TABDIALOG=no | |
1db8dc4a | 1541 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1542 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1543 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1544 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
1545 | DEFAULT_wxUSE_TREECTRL=yes |
1546 | ||
1547 | DEFAULT_wxUSE_UNICODE=no | |
1548 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1549 | ||
0046ff7c | 1550 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1551 | DEFAULT_wxUSE_GIF=yes |
1552 | DEFAULT_wxUSE_PCX=yes | |
1553 | DEFAULT_wxUSE_PNM=yes | |
0046ff7c | 1554 | DEFAULT_wxUSE_XPM=yes |
10f2d63a VZ |
1555 | fi |
1556 | ||
1557 | ||
1558 | ||
1559 | for toolkit in `echo $ALL_TOOLKITS`; do | |
1560 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1561 | if test "x$LINE" != x ; then | |
1562 | has_toolkit_in_cache=1 | |
1563 | eval "DEFAULT_$LINE" | |
1564 | eval "CACHE_$toolkit=1" | |
1565 | fi | |
1566 | done | |
1567 | ||
1568 | ||
1569 | ||
1570 | echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6 | |
95c8801c | 1571 | echo "configure:1572: checking "for --enable-gui"" >&5 |
10f2d63a VZ |
1572 | no_cache=0 |
1573 | # Check whether --enable-gui or --disable-gui was given. | |
1574 | if test "${enable_gui+set}" = set; then | |
1575 | enableval="$enable_gui" | |
1576 | ||
1577 | if test "$enableval" = yes; then | |
1578 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1579 | else | |
1580 | ac_cv_use_gui='wxUSE_GUI=no' | |
1581 | fi | |
1582 | ||
1583 | else | |
1584 | ||
1585 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
1586 | if test "x$LINE" != x ; then | |
1587 | eval "DEFAULT_$LINE" | |
1588 | else | |
1589 | no_cache=1 | |
1590 | fi | |
1591 | ||
1592 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
1593 | ||
1594 | fi | |
1595 | ||
1596 | ||
1597 | eval "$ac_cv_use_gui" | |
1598 | if test "$no_cache" != 1; then | |
1599 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1600 | fi | |
1601 | ||
1602 | if test "$wxUSE_GUI" = yes; then | |
1603 | echo "$ac_t""yes" 1>&6 | |
1604 | else | |
1605 | echo "$ac_t""no" 1>&6 | |
1606 | fi | |
1607 | ||
1608 | ||
b12915c1 | 1609 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a VZ |
1610 | |
1611 | # Check whether --with-gtk or --without-gtk was given. | |
1612 | if test "${with_gtk+set}" = set; then | |
1613 | withval="$with_gtk" | |
1614 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
1615 | fi | |
1616 | ||
1617 | # Check whether --with-motif or --without-motif was given. | |
1618 | if test "${with_motif+set}" = set; then | |
1619 | withval="$with_motif" | |
1620 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
1621 | fi | |
1622 | ||
b4085ce6 GD |
1623 | # Check whether --with-mac or --without-mac was given. |
1624 | if test "${with_mac+set}" = set; then | |
1625 | withval="$with_mac" | |
1626 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
1627 | fi | |
1628 | ||
10f2d63a VZ |
1629 | # Check whether --with-wine or --without-wine was given. |
1630 | if test "${with_wine+set}" = set; then | |
1631 | withval="$with_wine" | |
1632 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
1633 | fi | |
1634 | ||
1635 | # Check whether --with-cygwin or --without-cygwin was given. | |
1636 | if test "${with_cygwin+set}" = set; then | |
1637 | withval="$with_cygwin" | |
1638 | wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1 | |
1639 | fi | |
1640 | ||
1641 | # Check whether --with-mingw or --without-mingw was given. | |
1642 | if test "${with_mingw+set}" = set; then | |
1643 | withval="$with_mingw" | |
1644 | wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1 | |
1645 | fi | |
1646 | ||
e07802fc VZ |
1647 | # Check whether --with-pm or --without-pm was given. |
1648 | if test "${with_pm+set}" = set; then | |
1649 | withval="$with_pm" | |
1650 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
1651 | fi | |
1652 | ||
10f2d63a VZ |
1653 | |
1654 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
1655 | if test "${with_gtk_prefix+set}" = set; then | |
1656 | withval="$with_gtk_prefix" | |
1657 | gtk_config_prefix="$withval" | |
1658 | else | |
1659 | gtk_config_prefix="" | |
1660 | fi | |
1661 | ||
1662 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
1663 | if test "${with_gtk_exec_prefix+set}" = set; then | |
1664 | withval="$with_gtk_exec_prefix" | |
1665 | gtk_config_exec_prefix="$withval" | |
1666 | else | |
1667 | gtk_config_exec_prefix="" | |
1668 | fi | |
1669 | ||
1670 | ||
1671 | ||
b12915c1 | 1672 | echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6 |
95c8801c | 1673 | echo "configure:1674: checking "for --with-libpng"" >&5 |
10f2d63a | 1674 | no_cache=0 |
b12915c1 VZ |
1675 | # Check whether --with-libpng or --without-libpng was given. |
1676 | if test "${with_libpng+set}" = set; then | |
1677 | withval="$with_libpng" | |
10f2d63a VZ |
1678 | |
1679 | if test "$withval" = yes; then | |
b12915c1 | 1680 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1681 | elif test "$withval" = no; then |
b12915c1 | 1682 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
1683 | elif test "$withval" = sys; then |
1684 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
1685 | else | |
1686 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; } | |
10f2d63a VZ |
1687 | fi |
1688 | ||
1689 | else | |
1690 | ||
b12915c1 | 1691 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1692 | if test "x$LINE" != x ; then |
1693 | eval "DEFAULT_$LINE" | |
1694 | else | |
1695 | no_cache=1 | |
1696 | fi | |
1697 | ||
b12915c1 | 1698 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
10f2d63a VZ |
1699 | |
1700 | fi | |
1701 | ||
1702 | ||
b12915c1 | 1703 | eval "$ac_cv_use_libpng" |
10f2d63a | 1704 | if test "$no_cache" != 1; then |
b12915c1 | 1705 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1706 | fi |
1707 | ||
b12915c1 | 1708 | if test "$wxUSE_LIBPNG" = yes; then |
10f2d63a | 1709 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1710 | elif test "$wxUSE_LIBPNG" = no; then |
10f2d63a | 1711 | echo "$ac_t""no" 1>&6 |
422107f9 VZ |
1712 | elif test "$wxUSE_LIBPNG" = sys; then |
1713 | echo "$ac_t""system version" 1>&6 | |
1714 | else | |
1715 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; } | |
10f2d63a VZ |
1716 | fi |
1717 | ||
1718 | ||
b12915c1 | 1719 | echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6 |
95c8801c | 1720 | echo "configure:1721: checking "for --with-libjpeg"" >&5 |
10f2d63a | 1721 | no_cache=0 |
b12915c1 VZ |
1722 | # Check whether --with-libjpeg or --without-libjpeg was given. |
1723 | if test "${with_libjpeg+set}" = set; then | |
1724 | withval="$with_libjpeg" | |
10f2d63a VZ |
1725 | |
1726 | if test "$withval" = yes; then | |
b12915c1 | 1727 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 1728 | elif test "$withval" = no; then |
b12915c1 | 1729 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
1730 | elif test "$withval" = sys; then |
1731 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
1732 | else | |
1733 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; } | |
10f2d63a VZ |
1734 | fi |
1735 | ||
1736 | else | |
1737 | ||
b12915c1 | 1738 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1739 | if test "x$LINE" != x ; then |
1740 | eval "DEFAULT_$LINE" | |
1741 | else | |
1742 | no_cache=1 | |
1743 | fi | |
1744 | ||
b12915c1 | 1745 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
10f2d63a VZ |
1746 | |
1747 | fi | |
1748 | ||
1749 | ||
b12915c1 | 1750 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 1751 | if test "$no_cache" != 1; then |
b12915c1 | 1752 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1753 | fi |
1754 | ||
b12915c1 | 1755 | if test "$wxUSE_LIBJPEG" = yes; then |
10f2d63a | 1756 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1757 | elif test "$wxUSE_LIBJPEG" = no; then |
10f2d63a | 1758 | echo "$ac_t""no" 1>&6 |
422107f9 VZ |
1759 | elif test "$wxUSE_LIBJPEG" = sys; then |
1760 | echo "$ac_t""system version" 1>&6 | |
1761 | else | |
1762 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; } | |
10f2d63a VZ |
1763 | fi |
1764 | ||
1765 | ||
b12915c1 | 1766 | echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6 |
95c8801c | 1767 | echo "configure:1768: checking "for --with-libtiff"" >&5 |
10f2d63a | 1768 | no_cache=0 |
b12915c1 VZ |
1769 | # Check whether --with-libtiff or --without-libtiff was given. |
1770 | if test "${with_libtiff+set}" = set; then | |
1771 | withval="$with_libtiff" | |
10f2d63a VZ |
1772 | |
1773 | if test "$withval" = yes; then | |
b12915c1 | 1774 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 1775 | elif test "$withval" = no; then |
b12915c1 | 1776 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
1777 | elif test "$withval" = sys; then |
1778 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
1779 | else | |
1780 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; } | |
10f2d63a VZ |
1781 | fi |
1782 | ||
1783 | else | |
1784 | ||
b12915c1 | 1785 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
1786 | if test "x$LINE" != x ; then |
1787 | eval "DEFAULT_$LINE" | |
1788 | else | |
1789 | no_cache=1 | |
1790 | fi | |
1791 | ||
b12915c1 | 1792 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
10f2d63a VZ |
1793 | |
1794 | fi | |
1795 | ||
1796 | ||
b12915c1 | 1797 | eval "$ac_cv_use_libtiff" |
10f2d63a | 1798 | if test "$no_cache" != 1; then |
b12915c1 | 1799 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1800 | fi |
1801 | ||
b12915c1 | 1802 | if test "$wxUSE_LIBTIFF" = yes; then |
10f2d63a | 1803 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 1804 | elif test "$wxUSE_LIBTIFF" = no; then |
10f2d63a | 1805 | echo "$ac_t""no" 1>&6 |
0dcf9893 VZ |
1806 | elif test "$wxUSE_LIBTIFF" = sys; then |
1807 | echo "$ac_t""system version" 1>&6 | |
1808 | else | |
1809 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; } | |
10f2d63a VZ |
1810 | fi |
1811 | ||
1812 | ||
3fed1840 | 1813 | echo $ac_n "checking "for --with-freetype"""... $ac_c" 1>&6 |
95c8801c | 1814 | echo "configure:1815: checking "for --with-freetype"" >&5 |
3fed1840 RR |
1815 | no_cache=0 |
1816 | # Check whether --with-freetype or --without-freetype was given. | |
1817 | if test "${with_freetype+set}" = set; then | |
1818 | withval="$with_freetype" | |
1819 | ||
1820 | if test "$withval" = yes; then | |
1821 | ac_cv_use_freetype='wxUSE_FREETYPE=yes' | |
1822 | elif test "$withval" = no; then | |
1823 | ac_cv_use_freetype='wxUSE_FREETYPE=no' | |
1824 | elif test "$withval" = sys; then | |
1825 | ac_cv_use_freetype='wxUSE_FREETYPE=sys' | |
1826 | else | |
1827 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; } | |
1828 | fi | |
1829 | ||
1830 | else | |
1831 | ||
1832 | LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}` | |
1833 | if test "x$LINE" != x ; then | |
1834 | eval "DEFAULT_$LINE" | |
1835 | else | |
1836 | no_cache=1 | |
1837 | fi | |
1838 | ||
1839 | ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE | |
1840 | ||
1841 | fi | |
1842 | ||
1843 | ||
1844 | eval "$ac_cv_use_freetype" | |
1845 | if test "$no_cache" != 1; then | |
1846 | echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp | |
1847 | fi | |
1848 | ||
1849 | if test "$wxUSE_FREETYPE" = yes; then | |
1850 | echo "$ac_t""yes" 1>&6 | |
1851 | elif test "$wxUSE_FREETYPE" = no; then | |
1852 | echo "$ac_t""no" 1>&6 | |
1853 | elif test "$wxUSE_FREETYPE" = sys; then | |
1854 | echo "$ac_t""system version" 1>&6 | |
1855 | else | |
1856 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; } | |
1857 | fi | |
1858 | ||
1859 | ||
b12915c1 | 1860 | echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6 |
95c8801c | 1861 | echo "configure:1862: checking "for --with-opengl"" >&5 |
10f2d63a | 1862 | no_cache=0 |
b12915c1 VZ |
1863 | # Check whether --with-opengl or --without-opengl was given. |
1864 | if test "${with_opengl+set}" = set; then | |
1865 | withval="$with_opengl" | |
10f2d63a VZ |
1866 | |
1867 | if test "$withval" = yes; then | |
b12915c1 | 1868 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 1869 | else |
b12915c1 | 1870 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a VZ |
1871 | fi |
1872 | ||
1873 | else | |
1874 | ||
b12915c1 | 1875 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
1876 | if test "x$LINE" != x ; then |
1877 | eval "DEFAULT_$LINE" | |
1878 | else | |
1879 | no_cache=1 | |
1880 | fi | |
1881 | ||
b12915c1 | 1882 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
10f2d63a VZ |
1883 | |
1884 | fi | |
1885 | ||
1886 | ||
b12915c1 | 1887 | eval "$ac_cv_use_opengl" |
10f2d63a | 1888 | if test "$no_cache" != 1; then |
b12915c1 | 1889 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1890 | fi |
1891 | ||
b12915c1 | 1892 | if test "$wxUSE_OPENGL" = yes; then |
10f2d63a VZ |
1893 | echo "$ac_t""yes" 1>&6 |
1894 | else | |
1895 | echo "$ac_t""no" 1>&6 | |
1896 | fi | |
1897 | ||
1898 | ||
b12915c1 VZ |
1899 | fi |
1900 | ||
1901 | ||
1902 | echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6 | |
95c8801c | 1903 | echo "configure:1904: checking "for --with-dmalloc"" >&5 |
c7a2bf27 | 1904 | no_cache=0 |
b12915c1 VZ |
1905 | # Check whether --with-dmalloc or --without-dmalloc was given. |
1906 | if test "${with_dmalloc+set}" = set; then | |
1907 | withval="$with_dmalloc" | |
c7a2bf27 RR |
1908 | |
1909 | if test "$withval" = yes; then | |
b12915c1 | 1910 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 1911 | else |
b12915c1 | 1912 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 RR |
1913 | fi |
1914 | ||
1915 | else | |
1916 | ||
b12915c1 | 1917 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
1918 | if test "x$LINE" != x ; then |
1919 | eval "DEFAULT_$LINE" | |
1920 | else | |
1921 | no_cache=1 | |
1922 | fi | |
1923 | ||
b12915c1 | 1924 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
c7a2bf27 RR |
1925 | |
1926 | fi | |
1927 | ||
1928 | ||
b12915c1 | 1929 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 1930 | if test "$no_cache" != 1; then |
b12915c1 | 1931 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
1932 | fi |
1933 | ||
b12915c1 | 1934 | if test "$wxUSE_DMALLOC" = yes; then |
c7a2bf27 RR |
1935 | echo "$ac_t""yes" 1>&6 |
1936 | else | |
1937 | echo "$ac_t""no" 1>&6 | |
1938 | fi | |
1939 | ||
1940 | ||
b12915c1 | 1941 | echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6 |
95c8801c | 1942 | echo "configure:1943: checking "for --with-zlib"" >&5 |
10f2d63a | 1943 | no_cache=0 |
b12915c1 VZ |
1944 | # Check whether --with-zlib or --without-zlib was given. |
1945 | if test "${with_zlib+set}" = set; then | |
1946 | withval="$with_zlib" | |
10f2d63a VZ |
1947 | |
1948 | if test "$withval" = yes; then | |
b12915c1 | 1949 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 1950 | elif test "$withval" = no; then |
b12915c1 | 1951 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
1952 | elif test "$withval" = sys; then |
1953 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
1954 | else | |
1955 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; } | |
10f2d63a VZ |
1956 | fi |
1957 | ||
1958 | else | |
1959 | ||
b12915c1 | 1960 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
1961 | if test "x$LINE" != x ; then |
1962 | eval "DEFAULT_$LINE" | |
1963 | else | |
1964 | no_cache=1 | |
1965 | fi | |
1966 | ||
b12915c1 | 1967 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
10f2d63a VZ |
1968 | |
1969 | fi | |
1970 | ||
1971 | ||
b12915c1 | 1972 | eval "$ac_cv_use_zlib" |
10f2d63a | 1973 | if test "$no_cache" != 1; then |
b12915c1 | 1974 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1975 | fi |
1976 | ||
b12915c1 | 1977 | if test "$wxUSE_ZLIB" = yes; then |
10f2d63a | 1978 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1979 | elif test "$wxUSE_ZLIB" = no; then |
bdad4e7e | 1980 | echo "$ac_t""no" 1>&6 |
422107f9 VZ |
1981 | elif test "$wxUSE_ZLIB" = sys; then |
1982 | echo "$ac_t""system version" 1>&6 | |
1983 | else | |
1984 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; } | |
10f2d63a VZ |
1985 | fi |
1986 | ||
1987 | ||
1988 | echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6 | |
95c8801c | 1989 | echo "configure:1990: checking "for --with-odbc"" >&5 |
10f2d63a VZ |
1990 | no_cache=0 |
1991 | # Check whether --with-odbc or --without-odbc was given. | |
1992 | if test "${with_odbc+set}" = set; then | |
1993 | withval="$with_odbc" | |
1994 | ||
1995 | if test "$withval" = yes; then | |
1996 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
1997 | else | |
1998 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
1999 | fi | |
2000 | ||
2001 | else | |
2002 | ||
2003 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
2004 | if test "x$LINE" != x ; then | |
2005 | eval "DEFAULT_$LINE" | |
2006 | else | |
2007 | no_cache=1 | |
2008 | fi | |
2009 | ||
2010 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
2011 | ||
2012 | fi | |
2013 | ||
2014 | ||
2015 | eval "$ac_cv_use_odbc" | |
2016 | if test "$no_cache" != 1; then | |
2017 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2018 | fi | |
2019 | ||
2020 | if test "$wxUSE_ODBC" = yes; then | |
2021 | echo "$ac_t""yes" 1>&6 | |
2022 | else | |
2023 | echo "$ac_t""no" 1>&6 | |
2024 | fi | |
2025 | ||
2026 | ||
2027 | ||
2028 | ||
2029 | ||
2030 | echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6 | |
95c8801c | 2031 | echo "configure:2032: checking "for --enable-shared"" >&5 |
10f2d63a VZ |
2032 | no_cache=0 |
2033 | # Check whether --enable-shared or --disable-shared was given. | |
2034 | if test "${enable_shared+set}" = set; then | |
2035 | enableval="$enable_shared" | |
2036 | ||
2037 | if test "$enableval" = yes; then | |
2038 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2039 | else | |
2040 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2041 | fi | |
2042 | ||
2043 | else | |
2044 | ||
2045 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
2046 | if test "x$LINE" != x ; then | |
2047 | eval "DEFAULT_$LINE" | |
2048 | else | |
2049 | no_cache=1 | |
2050 | fi | |
2051 | ||
2052 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
2053 | ||
2054 | fi | |
2055 | ||
2056 | ||
2057 | eval "$ac_cv_use_shared" | |
2058 | if test "$no_cache" != 1; then | |
2059 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2060 | fi | |
2061 | ||
2062 | if test "$wxUSE_SHARED" = yes; then | |
2063 | echo "$ac_t""yes" 1>&6 | |
2064 | else | |
2065 | echo "$ac_t""no" 1>&6 | |
2066 | fi | |
2067 | ||
2068 | ||
00cf1208 | 2069 | echo $ac_n "checking "for --enable-burnt_name"""... $ac_c" 1>&6 |
95c8801c | 2070 | echo "configure:2071: checking "for --enable-burnt_name"" >&5 |
00cf1208 RR |
2071 | no_cache=0 |
2072 | # Check whether --enable-burnt_name or --disable-burnt_name was given. | |
2073 | if test "${enable_burnt_name+set}" = set; then | |
2074 | enableval="$enable_burnt_name" | |
2075 | ||
2076 | if test "$enableval" = yes; then | |
2077 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes' | |
2078 | else | |
2079 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no' | |
2080 | fi | |
2081 | ||
2082 | else | |
2083 | ||
2084 | LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}` | |
2085 | if test "x$LINE" != x ; then | |
2086 | eval "DEFAULT_$LINE" | |
2087 | else | |
2088 | no_cache=1 | |
2089 | fi | |
2090 | ||
2091 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME | |
2092 | ||
2093 | fi | |
2094 | ||
2095 | ||
2096 | eval "$ac_cv_use_burnt_name" | |
2097 | if test "$no_cache" != 1; then | |
2098 | echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp | |
2099 | fi | |
2100 | ||
2101 | if test "$wxUSE_BURNT_NAME" = yes; then | |
2102 | echo "$ac_t""yes" 1>&6 | |
2103 | else | |
2104 | echo "$ac_t""no" 1>&6 | |
2105 | fi | |
2106 | ||
2107 | ||
10f2d63a | 2108 | echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6 |
95c8801c | 2109 | echo "configure:2110: checking "for --enable-optimise"" >&5 |
10f2d63a VZ |
2110 | no_cache=0 |
2111 | # Check whether --enable-optimise or --disable-optimise was given. | |
2112 | if test "${enable_optimise+set}" = set; then | |
2113 | enableval="$enable_optimise" | |
2114 | ||
2115 | if test "$enableval" = yes; then | |
2116 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2117 | else | |
2118 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2119 | fi | |
2120 | ||
2121 | else | |
2122 | ||
2123 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
2124 | if test "x$LINE" != x ; then | |
2125 | eval "DEFAULT_$LINE" | |
2126 | else | |
2127 | no_cache=1 | |
2128 | fi | |
2129 | ||
2130 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
2131 | ||
2132 | fi | |
2133 | ||
2134 | ||
2135 | eval "$ac_cv_use_optimise" | |
2136 | if test "$no_cache" != 1; then | |
2137 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2138 | fi | |
2139 | ||
2140 | if test "$wxUSE_OPTIMISE" = yes; then | |
2141 | echo "$ac_t""yes" 1>&6 | |
2142 | else | |
2143 | echo "$ac_t""no" 1>&6 | |
2144 | fi | |
2145 | ||
2146 | ||
2147 | echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6 | |
95c8801c | 2148 | echo "configure:2149: checking "for --enable-debug"" >&5 |
10f2d63a VZ |
2149 | no_cache=0 |
2150 | # Check whether --enable-debug or --disable-debug was given. | |
2151 | if test "${enable_debug+set}" = set; then | |
2152 | enableval="$enable_debug" | |
2153 | ||
2154 | if test "$enableval" = yes; then | |
2155 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2156 | else | |
2157 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2158 | fi | |
2159 | ||
2160 | else | |
2161 | ||
2162 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
2163 | if test "x$LINE" != x ; then | |
2164 | eval "DEFAULT_$LINE" | |
2165 | else | |
2166 | no_cache=1 | |
2167 | fi | |
2168 | ||
2169 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
2170 | ||
2171 | fi | |
2172 | ||
2173 | ||
2174 | eval "$ac_cv_use_debug" | |
2175 | if test "$no_cache" != 1; then | |
2176 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2177 | fi | |
2178 | ||
2179 | if test "$wxUSE_DEBUG" = yes; then | |
2180 | echo "$ac_t""yes" 1>&6 | |
2181 | else | |
2182 | echo "$ac_t""no" 1>&6 | |
2183 | fi | |
2184 | ||
2185 | ||
2186 | if test "$wxUSE_DEBUG" = "yes"; then | |
2187 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2188 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2189 | elif test "$wxUSE_DEBUG" = "no"; then | |
2190 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2191 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2192 | fi | |
2193 | ||
2194 | ||
2195 | echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6 | |
95c8801c | 2196 | echo "configure:2197: checking "for --enable-debug_flag"" >&5 |
10f2d63a VZ |
2197 | no_cache=0 |
2198 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2199 | if test "${enable_debug_flag+set}" = set; then | |
2200 | enableval="$enable_debug_flag" | |
2201 | ||
2202 | if test "$enableval" = yes; then | |
2203 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2204 | else | |
2205 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2206 | fi | |
2207 | ||
2208 | else | |
2209 | ||
2210 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
2211 | if test "x$LINE" != x ; then | |
2212 | eval "DEFAULT_$LINE" | |
2213 | else | |
2214 | no_cache=1 | |
2215 | fi | |
2216 | ||
2217 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
2218 | ||
2219 | fi | |
2220 | ||
2221 | ||
2222 | eval "$ac_cv_use_debug_flag" | |
2223 | if test "$no_cache" != 1; then | |
2224 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2225 | fi | |
2226 | ||
2227 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
2228 | echo "$ac_t""yes" 1>&6 | |
2229 | else | |
2230 | echo "$ac_t""no" 1>&6 | |
2231 | fi | |
2232 | ||
2233 | ||
2234 | echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6 | |
95c8801c | 2235 | echo "configure:2236: checking "for --enable-debug_info"" >&5 |
10f2d63a VZ |
2236 | no_cache=0 |
2237 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2238 | if test "${enable_debug_info+set}" = set; then | |
2239 | enableval="$enable_debug_info" | |
2240 | ||
2241 | if test "$enableval" = yes; then | |
2242 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2243 | else | |
2244 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2245 | fi | |
2246 | ||
2247 | else | |
2248 | ||
2249 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
2250 | if test "x$LINE" != x ; then | |
2251 | eval "DEFAULT_$LINE" | |
2252 | else | |
2253 | no_cache=1 | |
2254 | fi | |
2255 | ||
2256 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
2257 | ||
2258 | fi | |
2259 | ||
2260 | ||
2261 | eval "$ac_cv_use_debug_info" | |
2262 | if test "$no_cache" != 1; then | |
2263 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2264 | fi | |
2265 | ||
2266 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
2267 | echo "$ac_t""yes" 1>&6 | |
2268 | else | |
2269 | echo "$ac_t""no" 1>&6 | |
2270 | fi | |
2271 | ||
2272 | ||
2273 | echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6 | |
95c8801c | 2274 | echo "configure:2275: checking "for --enable-debug_gdb"" >&5 |
10f2d63a VZ |
2275 | no_cache=0 |
2276 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2277 | if test "${enable_debug_gdb+set}" = set; then | |
2278 | enableval="$enable_debug_gdb" | |
2279 | ||
2280 | if test "$enableval" = yes; then | |
2281 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2282 | else | |
2283 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2284 | fi | |
2285 | ||
2286 | else | |
2287 | ||
2288 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
2289 | if test "x$LINE" != x ; then | |
2290 | eval "DEFAULT_$LINE" | |
2291 | else | |
2292 | no_cache=1 | |
2293 | fi | |
2294 | ||
2295 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
2296 | ||
2297 | fi | |
2298 | ||
2299 | ||
2300 | eval "$ac_cv_use_debug_gdb" | |
2301 | if test "$no_cache" != 1; then | |
2302 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2303 | fi | |
2304 | ||
2305 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
2306 | echo "$ac_t""yes" 1>&6 | |
2307 | else | |
2308 | echo "$ac_t""no" 1>&6 | |
2309 | fi | |
2310 | ||
2311 | ||
2312 | echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6 | |
95c8801c | 2313 | echo "configure:2314: checking "for --enable-debug_cntxt"" >&5 |
10f2d63a VZ |
2314 | no_cache=0 |
2315 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2316 | if test "${enable_debug_cntxt+set}" = set; then | |
2317 | enableval="$enable_debug_cntxt" | |
2318 | ||
2319 | if test "$enableval" = yes; then | |
2320 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2321 | else | |
2322 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2323 | fi | |
2324 | ||
2325 | else | |
2326 | ||
2327 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
2328 | if test "x$LINE" != x ; then | |
2329 | eval "DEFAULT_$LINE" | |
2330 | else | |
2331 | no_cache=1 | |
2332 | fi | |
2333 | ||
2334 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
2335 | ||
2336 | fi | |
2337 | ||
2338 | ||
2339 | eval "$ac_cv_use_debug_cntxt" | |
2340 | if test "$no_cache" != 1; then | |
2341 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2342 | fi | |
2343 | ||
2344 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
2345 | echo "$ac_t""yes" 1>&6 | |
2346 | else | |
2347 | echo "$ac_t""no" 1>&6 | |
2348 | fi | |
2349 | ||
2350 | ||
2351 | echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6 | |
95c8801c | 2352 | echo "configure:2353: checking "for --enable-mem_tracing"" >&5 |
10f2d63a VZ |
2353 | no_cache=0 |
2354 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2355 | if test "${enable_mem_tracing+set}" = set; then | |
2356 | enableval="$enable_mem_tracing" | |
2357 | ||
2358 | if test "$enableval" = yes; then | |
2359 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2360 | else | |
2361 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2362 | fi | |
2363 | ||
2364 | else | |
2365 | ||
2366 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
2367 | if test "x$LINE" != x ; then | |
2368 | eval "DEFAULT_$LINE" | |
2369 | else | |
2370 | no_cache=1 | |
2371 | fi | |
2372 | ||
2373 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
2374 | ||
2375 | fi | |
2376 | ||
2377 | ||
2378 | eval "$ac_cv_use_mem_tracing" | |
2379 | if test "$no_cache" != 1; then | |
2380 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2381 | fi | |
2382 | ||
2383 | if test "$wxUSE_MEM_TRACING" = yes; then | |
2384 | echo "$ac_t""yes" 1>&6 | |
2385 | else | |
2386 | echo "$ac_t""no" 1>&6 | |
2387 | fi | |
2388 | ||
2389 | ||
2390 | echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6 | |
95c8801c | 2391 | echo "configure:2392: checking "for --enable-profile"" >&5 |
10f2d63a VZ |
2392 | no_cache=0 |
2393 | # Check whether --enable-profile or --disable-profile was given. | |
2394 | if test "${enable_profile+set}" = set; then | |
2395 | enableval="$enable_profile" | |
2396 | ||
2397 | if test "$enableval" = yes; then | |
2398 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2399 | else | |
2400 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2401 | fi | |
2402 | ||
2403 | else | |
2404 | ||
2405 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
2406 | if test "x$LINE" != x ; then | |
2407 | eval "DEFAULT_$LINE" | |
2408 | else | |
2409 | no_cache=1 | |
2410 | fi | |
2411 | ||
2412 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
2413 | ||
2414 | fi | |
2415 | ||
2416 | ||
2417 | eval "$ac_cv_use_profile" | |
2418 | if test "$no_cache" != 1; then | |
2419 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2420 | fi | |
2421 | ||
2422 | if test "$wxUSE_PROFILE" = yes; then | |
2423 | echo "$ac_t""yes" 1>&6 | |
2424 | else | |
2425 | echo "$ac_t""no" 1>&6 | |
2426 | fi | |
2427 | ||
2428 | ||
2429 | echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6 | |
95c8801c | 2430 | echo "configure:2431: checking "for --enable-no_rtti"" >&5 |
10f2d63a VZ |
2431 | no_cache=0 |
2432 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2433 | if test "${enable_no_rtti+set}" = set; then | |
2434 | enableval="$enable_no_rtti" | |
2435 | ||
2436 | if test "$enableval" = yes; then | |
2437 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2438 | else | |
2439 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2440 | fi | |
2441 | ||
2442 | else | |
2443 | ||
2444 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
2445 | if test "x$LINE" != x ; then | |
2446 | eval "DEFAULT_$LINE" | |
2447 | else | |
2448 | no_cache=1 | |
2449 | fi | |
2450 | ||
2451 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
2452 | ||
2453 | fi | |
2454 | ||
2455 | ||
2456 | eval "$ac_cv_use_no_rtti" | |
2457 | if test "$no_cache" != 1; then | |
2458 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2459 | fi | |
2460 | ||
2461 | if test "$wxUSE_NO_RTTI" = yes; then | |
2462 | echo "$ac_t""yes" 1>&6 | |
2463 | else | |
2464 | echo "$ac_t""no" 1>&6 | |
2465 | fi | |
2466 | ||
2467 | ||
2468 | echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6 | |
95c8801c | 2469 | echo "configure:2470: checking "for --enable-no_exceptions"" >&5 |
10f2d63a VZ |
2470 | no_cache=0 |
2471 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2472 | if test "${enable_no_exceptions+set}" = set; then | |
2473 | enableval="$enable_no_exceptions" | |
2474 | ||
2475 | if test "$enableval" = yes; then | |
2476 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2477 | else | |
2478 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2479 | fi | |
2480 | ||
2481 | else | |
2482 | ||
2483 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
2484 | if test "x$LINE" != x ; then | |
2485 | eval "DEFAULT_$LINE" | |
2486 | else | |
2487 | no_cache=1 | |
2488 | fi | |
2489 | ||
2490 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
2491 | ||
2492 | fi | |
2493 | ||
2494 | ||
2495 | eval "$ac_cv_use_no_exceptions" | |
2496 | if test "$no_cache" != 1; then | |
2497 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2498 | fi | |
2499 | ||
2500 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
2501 | echo "$ac_t""yes" 1>&6 | |
2502 | else | |
2503 | echo "$ac_t""no" 1>&6 | |
2504 | fi | |
2505 | ||
2506 | ||
2507 | echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6 | |
95c8801c | 2508 | echo "configure:2509: checking "for --enable-permissive"" >&5 |
10f2d63a VZ |
2509 | no_cache=0 |
2510 | # Check whether --enable-permissive or --disable-permissive was given. | |
2511 | if test "${enable_permissive+set}" = set; then | |
2512 | enableval="$enable_permissive" | |
2513 | ||
2514 | if test "$enableval" = yes; then | |
2515 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2516 | else | |
2517 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2518 | fi | |
2519 | ||
2520 | else | |
2521 | ||
2522 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
2523 | if test "x$LINE" != x ; then | |
2524 | eval "DEFAULT_$LINE" | |
2525 | else | |
2526 | no_cache=1 | |
2527 | fi | |
2528 | ||
2529 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
2530 | ||
2531 | fi | |
2532 | ||
2533 | ||
2534 | eval "$ac_cv_use_permissive" | |
2535 | if test "$no_cache" != 1; then | |
2536 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2537 | fi | |
2538 | ||
2539 | if test "$wxUSE_PERMISSIVE" = yes; then | |
2540 | echo "$ac_t""yes" 1>&6 | |
2541 | else | |
2542 | echo "$ac_t""no" 1>&6 | |
2543 | fi | |
2544 | ||
2545 | ||
2546 | echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6 | |
95c8801c | 2547 | echo "configure:2548: checking "for --enable-no_deps"" >&5 |
10f2d63a VZ |
2548 | no_cache=0 |
2549 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2550 | if test "${enable_no_deps+set}" = set; then | |
2551 | enableval="$enable_no_deps" | |
2552 | ||
2553 | if test "$enableval" = yes; then | |
2554 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2555 | else | |
2556 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2557 | fi | |
2558 | ||
2559 | else | |
2560 | ||
2561 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
2562 | if test "x$LINE" != x ; then | |
2563 | eval "DEFAULT_$LINE" | |
2564 | else | |
2565 | no_cache=1 | |
2566 | fi | |
2567 | ||
2568 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
2569 | ||
2570 | fi | |
2571 | ||
2572 | ||
2573 | eval "$ac_cv_use_no_deps" | |
2574 | if test "$no_cache" != 1; then | |
2575 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2576 | fi | |
2577 | ||
2578 | if test "$wxUSE_NO_DEPS" = yes; then | |
2579 | echo "$ac_t""yes" 1>&6 | |
2580 | else | |
2581 | echo "$ac_t""no" 1>&6 | |
2582 | fi | |
2583 | ||
2584 | ||
2585 | ||
2586 | ||
2587 | echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6 | |
95c8801c | 2588 | echo "configure:2589: checking "for --enable-intl"" >&5 |
10f2d63a VZ |
2589 | no_cache=0 |
2590 | # Check whether --enable-intl or --disable-intl was given. | |
2591 | if test "${enable_intl+set}" = set; then | |
2592 | enableval="$enable_intl" | |
2593 | ||
2594 | if test "$enableval" = yes; then | |
2595 | ac_cv_use_intl='wxUSE_INTL=yes' | |
2596 | else | |
2597 | ac_cv_use_intl='wxUSE_INTL=no' | |
2598 | fi | |
2599 | ||
2600 | else | |
2601 | ||
2602 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
2603 | if test "x$LINE" != x ; then | |
2604 | eval "DEFAULT_$LINE" | |
2605 | else | |
2606 | no_cache=1 | |
2607 | fi | |
2608 | ||
2609 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
2610 | ||
2611 | fi | |
2612 | ||
2613 | ||
2614 | eval "$ac_cv_use_intl" | |
2615 | if test "$no_cache" != 1; then | |
2616 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
2617 | fi | |
2618 | ||
2619 | if test "$wxUSE_INTL" = yes; then | |
2620 | echo "$ac_t""yes" 1>&6 | |
2621 | else | |
2622 | echo "$ac_t""no" 1>&6 | |
2623 | fi | |
2624 | ||
2625 | ||
2626 | echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6 | |
95c8801c | 2627 | echo "configure:2628: checking "for --enable-config"" >&5 |
10f2d63a VZ |
2628 | no_cache=0 |
2629 | # Check whether --enable-config or --disable-config was given. | |
2630 | if test "${enable_config+set}" = set; then | |
2631 | enableval="$enable_config" | |
2632 | ||
2633 | if test "$enableval" = yes; then | |
2634 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
2635 | else | |
2636 | ac_cv_use_config='wxUSE_CONFIG=no' | |
2637 | fi | |
2638 | ||
2639 | else | |
2640 | ||
2641 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
2642 | if test "x$LINE" != x ; then | |
2643 | eval "DEFAULT_$LINE" | |
2644 | else | |
2645 | no_cache=1 | |
2646 | fi | |
2647 | ||
2648 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
2649 | ||
2650 | fi | |
2651 | ||
2652 | ||
2653 | eval "$ac_cv_use_config" | |
2654 | if test "$no_cache" != 1; then | |
2655 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
2656 | fi | |
2657 | ||
2658 | if test "$wxUSE_CONFIG" = yes; then | |
2659 | echo "$ac_t""yes" 1>&6 | |
2660 | else | |
2661 | echo "$ac_t""no" 1>&6 | |
2662 | fi | |
2663 | ||
2664 | ||
b12915c1 | 2665 | |
10f2d63a | 2666 | echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6 |
95c8801c | 2667 | echo "configure:2668: checking "for --enable-sockets"" >&5 |
10f2d63a VZ |
2668 | no_cache=0 |
2669 | # Check whether --enable-sockets or --disable-sockets was given. | |
2670 | if test "${enable_sockets+set}" = set; then | |
2671 | enableval="$enable_sockets" | |
2672 | ||
2673 | if test "$enableval" = yes; then | |
2674 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
2675 | else | |
2676 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
2677 | fi | |
2678 | ||
2679 | else | |
2680 | ||
2681 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
2682 | if test "x$LINE" != x ; then | |
2683 | eval "DEFAULT_$LINE" | |
2684 | else | |
2685 | no_cache=1 | |
2686 | fi | |
2687 | ||
2688 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
2689 | ||
2690 | fi | |
2691 | ||
2692 | ||
2693 | eval "$ac_cv_use_sockets" | |
2694 | if test "$no_cache" != 1; then | |
2695 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
2696 | fi | |
2697 | ||
2698 | if test "$wxUSE_SOCKETS" = yes; then | |
2699 | echo "$ac_t""yes" 1>&6 | |
2700 | else | |
2701 | echo "$ac_t""no" 1>&6 | |
2702 | fi | |
2703 | ||
b12915c1 | 2704 | |
10f2d63a | 2705 | |
eb4efbdc | 2706 | echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6 |
95c8801c | 2707 | echo "configure:2708: checking "for --enable-ipc"" >&5 |
10f2d63a | 2708 | no_cache=0 |
eb4efbdc VZ |
2709 | # Check whether --enable-ipc or --disable-ipc was given. |
2710 | if test "${enable_ipc+set}" = set; then | |
2711 | enableval="$enable_ipc" | |
10f2d63a VZ |
2712 | |
2713 | if test "$enableval" = yes; then | |
eb4efbdc | 2714 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 2715 | else |
eb4efbdc | 2716 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a VZ |
2717 | fi |
2718 | ||
2719 | else | |
2720 | ||
eb4efbdc | 2721 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
2722 | if test "x$LINE" != x ; then |
2723 | eval "DEFAULT_$LINE" | |
2724 | else | |
2725 | no_cache=1 | |
2726 | fi | |
2727 | ||
eb4efbdc | 2728 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
10f2d63a VZ |
2729 | |
2730 | fi | |
2731 | ||
2732 | ||
eb4efbdc | 2733 | eval "$ac_cv_use_ipc" |
10f2d63a | 2734 | if test "$no_cache" != 1; then |
eb4efbdc | 2735 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2736 | fi |
2737 | ||
eb4efbdc | 2738 | if test "$wxUSE_IPC" = yes; then |
10f2d63a VZ |
2739 | echo "$ac_t""yes" 1>&6 |
2740 | else | |
2741 | echo "$ac_t""no" 1>&6 | |
2742 | fi | |
2743 | ||
2744 | ||
eb4efbdc VZ |
2745 | |
2746 | echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6 | |
95c8801c | 2747 | echo "configure:2748: checking "for --enable-dialupman"" >&5 |
10f2d63a | 2748 | no_cache=0 |
eb4efbdc VZ |
2749 | # Check whether --enable-dialupman or --disable-dialupman was given. |
2750 | if test "${enable_dialupman+set}" = set; then | |
2751 | enableval="$enable_dialupman" | |
10f2d63a VZ |
2752 | |
2753 | if test "$enableval" = yes; then | |
eb4efbdc | 2754 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 2755 | else |
eb4efbdc | 2756 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a VZ |
2757 | fi |
2758 | ||
2759 | else | |
2760 | ||
eb4efbdc | 2761 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
2762 | if test "x$LINE" != x ; then |
2763 | eval "DEFAULT_$LINE" | |
2764 | else | |
2765 | no_cache=1 | |
2766 | fi | |
2767 | ||
eb4efbdc | 2768 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
10f2d63a VZ |
2769 | |
2770 | fi | |
2771 | ||
2772 | ||
eb4efbdc | 2773 | eval "$ac_cv_use_dialupman" |
10f2d63a | 2774 | if test "$no_cache" != 1; then |
eb4efbdc | 2775 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2776 | fi |
2777 | ||
eb4efbdc | 2778 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
10f2d63a VZ |
2779 | echo "$ac_t""yes" 1>&6 |
2780 | else | |
2781 | echo "$ac_t""no" 1>&6 | |
2782 | fi | |
2783 | ||
2784 | ||
2785 | echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6 | |
95c8801c | 2786 | echo "configure:2787: checking "for --enable-apple_ieee"" >&5 |
10f2d63a VZ |
2787 | no_cache=0 |
2788 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
2789 | if test "${enable_apple_ieee+set}" = set; then | |
2790 | enableval="$enable_apple_ieee" | |
2791 | ||
2792 | if test "$enableval" = yes; then | |
2793 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
2794 | else | |
2795 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
2796 | fi | |
2797 | ||
2798 | else | |
2799 | ||
2800 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
2801 | if test "x$LINE" != x ; then | |
2802 | eval "DEFAULT_$LINE" | |
2803 | else | |
2804 | no_cache=1 | |
2805 | fi | |
2806 | ||
2807 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
2808 | ||
2809 | fi | |
2810 | ||
2811 | ||
2812 | eval "$ac_cv_use_apple_ieee" | |
2813 | if test "$no_cache" != 1; then | |
2814 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
2815 | fi | |
2816 | ||
2817 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
2818 | echo "$ac_t""yes" 1>&6 | |
2819 | else | |
2820 | echo "$ac_t""no" 1>&6 | |
2821 | fi | |
2822 | ||
2823 | ||
2824 | echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6 | |
95c8801c | 2825 | echo "configure:2826: checking "for --enable-timedate"" >&5 |
10f2d63a VZ |
2826 | no_cache=0 |
2827 | # Check whether --enable-timedate or --disable-timedate was given. | |
2828 | if test "${enable_timedate+set}" = set; then | |
2829 | enableval="$enable_timedate" | |
2830 | ||
2831 | if test "$enableval" = yes; then | |
2832 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
2833 | else | |
2834 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
2835 | fi | |
2836 | ||
2837 | else | |
2838 | ||
2839 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
2840 | if test "x$LINE" != x ; then | |
2841 | eval "DEFAULT_$LINE" | |
2842 | else | |
2843 | no_cache=1 | |
2844 | fi | |
2845 | ||
2846 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
2847 | ||
2848 | fi | |
2849 | ||
2850 | ||
2851 | eval "$ac_cv_use_timedate" | |
2852 | if test "$no_cache" != 1; then | |
2853 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
2854 | fi | |
2855 | ||
2856 | if test "$wxUSE_TIMEDATE" = yes; then | |
2857 | echo "$ac_t""yes" 1>&6 | |
2858 | else | |
2859 | echo "$ac_t""no" 1>&6 | |
2860 | fi | |
2861 | ||
2862 | ||
2863 | echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6 | |
95c8801c | 2864 | echo "configure:2865: checking "for --enable-wave"" >&5 |
10f2d63a VZ |
2865 | no_cache=0 |
2866 | # Check whether --enable-wave or --disable-wave was given. | |
2867 | if test "${enable_wave+set}" = set; then | |
2868 | enableval="$enable_wave" | |
2869 | ||
2870 | if test "$enableval" = yes; then | |
2871 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
2872 | else | |
2873 | ac_cv_use_wave='wxUSE_WAVE=no' | |
2874 | fi | |
2875 | ||
2876 | else | |
2877 | ||
2878 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` | |
2879 | if test "x$LINE" != x ; then | |
2880 | eval "DEFAULT_$LINE" | |
2881 | else | |
2882 | no_cache=1 | |
2883 | fi | |
2884 | ||
2885 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
2886 | ||
2887 | fi | |
2888 | ||
2889 | ||
2890 | eval "$ac_cv_use_wave" | |
2891 | if test "$no_cache" != 1; then | |
2892 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
2893 | fi | |
2894 | ||
2895 | if test "$wxUSE_WAVE" = yes; then | |
2896 | echo "$ac_t""yes" 1>&6 | |
2897 | else | |
2898 | echo "$ac_t""no" 1>&6 | |
2899 | fi | |
2900 | ||
2901 | ||
2902 | echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6 | |
95c8801c | 2903 | echo "configure:2904: checking "for --enable-fraction"" >&5 |
10f2d63a VZ |
2904 | no_cache=0 |
2905 | # Check whether --enable-fraction or --disable-fraction was given. | |
2906 | if test "${enable_fraction+set}" = set; then | |
2907 | enableval="$enable_fraction" | |
2908 | ||
2909 | if test "$enableval" = yes; then | |
2910 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
2911 | else | |
2912 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
2913 | fi | |
2914 | ||
2915 | else | |
2916 | ||
2917 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` | |
2918 | if test "x$LINE" != x ; then | |
2919 | eval "DEFAULT_$LINE" | |
2920 | else | |
2921 | no_cache=1 | |
2922 | fi | |
2923 | ||
2924 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
2925 | ||
2926 | fi | |
2927 | ||
2928 | ||
2929 | eval "$ac_cv_use_fraction" | |
2930 | if test "$no_cache" != 1; then | |
2931 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
2932 | fi | |
2933 | ||
2934 | if test "$wxUSE_FRACTION" = yes; then | |
2935 | echo "$ac_t""yes" 1>&6 | |
2936 | else | |
2937 | echo "$ac_t""no" 1>&6 | |
2938 | fi | |
2939 | ||
2940 | ||
2941 | echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6 | |
95c8801c | 2942 | echo "configure:2943: checking "for --enable-dynlib"" >&5 |
10f2d63a VZ |
2943 | no_cache=0 |
2944 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
2945 | if test "${enable_dynlib+set}" = set; then | |
2946 | enableval="$enable_dynlib" | |
2947 | ||
2948 | if test "$enableval" = yes; then | |
2949 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
2950 | else | |
2951 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
2952 | fi | |
2953 | ||
2954 | else | |
2955 | ||
2956 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
2957 | if test "x$LINE" != x ; then | |
2958 | eval "DEFAULT_$LINE" | |
2959 | else | |
2960 | no_cache=1 | |
2961 | fi | |
2962 | ||
2963 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
2964 | ||
2965 | fi | |
2966 | ||
2967 | ||
2968 | eval "$ac_cv_use_dynlib" | |
2969 | if test "$no_cache" != 1; then | |
2970 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
2971 | fi | |
2972 | ||
2973 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
2974 | echo "$ac_t""yes" 1>&6 | |
2975 | else | |
2976 | echo "$ac_t""no" 1>&6 | |
2977 | fi | |
2978 | ||
2979 | ||
2980 | echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6 | |
95c8801c | 2981 | echo "configure:2982: checking "for --enable-longlong"" >&5 |
10f2d63a VZ |
2982 | no_cache=0 |
2983 | # Check whether --enable-longlong or --disable-longlong was given. | |
2984 | if test "${enable_longlong+set}" = set; then | |
2985 | enableval="$enable_longlong" | |
2986 | ||
2987 | if test "$enableval" = yes; then | |
2988 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
2989 | else | |
2990 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
2991 | fi | |
2992 | ||
2993 | else | |
2994 | ||
2995 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
2996 | if test "x$LINE" != x ; then | |
2997 | eval "DEFAULT_$LINE" | |
2998 | else | |
2999 | no_cache=1 | |
3000 | fi | |
3001 | ||
3002 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
3003 | ||
3004 | fi | |
3005 | ||
3006 | ||
3007 | eval "$ac_cv_use_longlong" | |
3008 | if test "$no_cache" != 1; then | |
3009 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3010 | fi | |
3011 | ||
3012 | if test "$wxUSE_LONGLONG" = yes; then | |
3013 | echo "$ac_t""yes" 1>&6 | |
3014 | else | |
3015 | echo "$ac_t""no" 1>&6 | |
3016 | fi | |
3017 | ||
3018 | ||
e8f65ba6 | 3019 | echo $ac_n "checking "for --enable-geometry"""... $ac_c" 1>&6 |
95c8801c | 3020 | echo "configure:3021: checking "for --enable-geometry"" >&5 |
e8f65ba6 RR |
3021 | no_cache=0 |
3022 | # Check whether --enable-geometry or --disable-geometry was given. | |
3023 | if test "${enable_geometry+set}" = set; then | |
3024 | enableval="$enable_geometry" | |
3025 | ||
3026 | if test "$enableval" = yes; then | |
3027 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3028 | else | |
3029 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3030 | fi | |
3031 | ||
3032 | else | |
3033 | ||
3034 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` | |
3035 | if test "x$LINE" != x ; then | |
3036 | eval "DEFAULT_$LINE" | |
3037 | else | |
3038 | no_cache=1 | |
3039 | fi | |
3040 | ||
3041 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
3042 | ||
3043 | fi | |
3044 | ||
3045 | ||
3046 | eval "$ac_cv_use_geometry" | |
3047 | if test "$no_cache" != 1; then | |
3048 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3049 | fi | |
3050 | ||
3051 | if test "$wxUSE_GEOMETRY" = yes; then | |
3052 | echo "$ac_t""yes" 1>&6 | |
3053 | else | |
3054 | echo "$ac_t""no" 1>&6 | |
3055 | fi | |
3056 | ||
3057 | ||
10f2d63a | 3058 | echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6 |
95c8801c | 3059 | echo "configure:3060: checking "for --enable-log"" >&5 |
10f2d63a VZ |
3060 | no_cache=0 |
3061 | # Check whether --enable-log or --disable-log was given. | |
3062 | if test "${enable_log+set}" = set; then | |
3063 | enableval="$enable_log" | |
3064 | ||
3065 | if test "$enableval" = yes; then | |
3066 | ac_cv_use_log='wxUSE_LOG=yes' | |
3067 | else | |
3068 | ac_cv_use_log='wxUSE_LOG=no' | |
3069 | fi | |
3070 | ||
3071 | else | |
3072 | ||
3073 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
3074 | if test "x$LINE" != x ; then | |
3075 | eval "DEFAULT_$LINE" | |
3076 | else | |
3077 | no_cache=1 | |
3078 | fi | |
3079 | ||
3080 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
3081 | ||
3082 | fi | |
3083 | ||
3084 | ||
3085 | eval "$ac_cv_use_log" | |
3086 | if test "$no_cache" != 1; then | |
3087 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
3088 | fi | |
3089 | ||
3090 | if test "$wxUSE_LOG" = yes; then | |
3091 | echo "$ac_t""yes" 1>&6 | |
3092 | else | |
3093 | echo "$ac_t""no" 1>&6 | |
3094 | fi | |
3095 | ||
3096 | ||
3097 | echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6 | |
95c8801c | 3098 | echo "configure:3099: checking "for --enable-streams"" >&5 |
10f2d63a VZ |
3099 | no_cache=0 |
3100 | # Check whether --enable-streams or --disable-streams was given. | |
3101 | if test "${enable_streams+set}" = set; then | |
3102 | enableval="$enable_streams" | |
3103 | ||
3104 | if test "$enableval" = yes; then | |
3105 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
3106 | else | |
3107 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
3108 | fi | |
3109 | ||
3110 | else | |
3111 | ||
3112 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
3113 | if test "x$LINE" != x ; then | |
3114 | eval "DEFAULT_$LINE" | |
3115 | else | |
3116 | no_cache=1 | |
3117 | fi | |
3118 | ||
3119 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
3120 | ||
3121 | fi | |
3122 | ||
3123 | ||
3124 | eval "$ac_cv_use_streams" | |
3125 | if test "$no_cache" != 1; then | |
3126 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
3127 | fi | |
3128 | ||
3129 | if test "$wxUSE_STREAMS" = yes; then | |
3130 | echo "$ac_t""yes" 1>&6 | |
3131 | else | |
3132 | echo "$ac_t""no" 1>&6 | |
3133 | fi | |
3134 | ||
3135 | ||
3136 | echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6 | |
95c8801c | 3137 | echo "configure:3138: checking "for --enable-file"" >&5 |
10f2d63a VZ |
3138 | no_cache=0 |
3139 | # Check whether --enable-file or --disable-file was given. | |
3140 | if test "${enable_file+set}" = set; then | |
3141 | enableval="$enable_file" | |
3142 | ||
3143 | if test "$enableval" = yes; then | |
3144 | ac_cv_use_file='wxUSE_FILE=yes' | |
3145 | else | |
3146 | ac_cv_use_file='wxUSE_FILE=no' | |
3147 | fi | |
3148 | ||
3149 | else | |
3150 | ||
3151 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
3152 | if test "x$LINE" != x ; then | |
3153 | eval "DEFAULT_$LINE" | |
3154 | else | |
3155 | no_cache=1 | |
3156 | fi | |
3157 | ||
3158 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
3159 | ||
3160 | fi | |
3161 | ||
3162 | ||
3163 | eval "$ac_cv_use_file" | |
3164 | if test "$no_cache" != 1; then | |
3165 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
3166 | fi | |
3167 | ||
3168 | if test "$wxUSE_FILE" = yes; then | |
3169 | echo "$ac_t""yes" 1>&6 | |
3170 | else | |
3171 | echo "$ac_t""no" 1>&6 | |
3172 | fi | |
3173 | ||
3174 | ||
3175 | echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6 | |
95c8801c | 3176 | echo "configure:3177: checking "for --enable-textfile"" >&5 |
10f2d63a VZ |
3177 | no_cache=0 |
3178 | # Check whether --enable-textfile or --disable-textfile was given. | |
3179 | if test "${enable_textfile+set}" = set; then | |
3180 | enableval="$enable_textfile" | |
3181 | ||
3182 | if test "$enableval" = yes; then | |
3183 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
3184 | else | |
3185 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
3186 | fi | |
3187 | ||
3188 | else | |
3189 | ||
3190 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
3191 | if test "x$LINE" != x ; then | |
3192 | eval "DEFAULT_$LINE" | |
3193 | else | |
3194 | no_cache=1 | |
3195 | fi | |
3196 | ||
3197 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
3198 | ||
3199 | fi | |
3200 | ||
3201 | ||
3202 | eval "$ac_cv_use_textfile" | |
3203 | if test "$no_cache" != 1; then | |
3204 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
3205 | fi | |
3206 | ||
3207 | if test "$wxUSE_TEXTFILE" = yes; then | |
3208 | echo "$ac_t""yes" 1>&6 | |
3209 | else | |
3210 | echo "$ac_t""no" 1>&6 | |
3211 | fi | |
3212 | ||
3213 | ||
3214 | echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6 | |
95c8801c | 3215 | echo "configure:3216: checking "for --enable-unicode"" >&5 |
10f2d63a VZ |
3216 | no_cache=0 |
3217 | # Check whether --enable-unicode or --disable-unicode was given. | |
3218 | if test "${enable_unicode+set}" = set; then | |
3219 | enableval="$enable_unicode" | |
3220 | ||
3221 | if test "$enableval" = yes; then | |
3222 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
3223 | else | |
3224 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
3225 | fi | |
3226 | ||
3227 | else | |
3228 | ||
3229 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
3230 | if test "x$LINE" != x ; then | |
3231 | eval "DEFAULT_$LINE" | |
3232 | else | |
3233 | no_cache=1 | |
3234 | fi | |
3235 | ||
3236 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
3237 | ||
3238 | fi | |
3239 | ||
3240 | ||
3241 | eval "$ac_cv_use_unicode" | |
3242 | if test "$no_cache" != 1; then | |
3243 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
3244 | fi | |
3245 | ||
3246 | if test "$wxUSE_UNICODE" = yes; then | |
3247 | echo "$ac_t""yes" 1>&6 | |
3248 | else | |
3249 | echo "$ac_t""no" 1>&6 | |
3250 | fi | |
3251 | ||
3252 | ||
3253 | echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6 | |
95c8801c | 3254 | echo "configure:3255: checking "for --enable-wcsrtombs"" >&5 |
10f2d63a VZ |
3255 | no_cache=0 |
3256 | # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given. | |
3257 | if test "${enable_wcsrtombs+set}" = set; then | |
3258 | enableval="$enable_wcsrtombs" | |
3259 | ||
3260 | if test "$enableval" = yes; then | |
3261 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes' | |
3262 | else | |
3263 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no' | |
3264 | fi | |
3265 | ||
3266 | else | |
3267 | ||
3268 | LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}` | |
3269 | if test "x$LINE" != x ; then | |
3270 | eval "DEFAULT_$LINE" | |
3271 | else | |
3272 | no_cache=1 | |
3273 | fi | |
3274 | ||
3275 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS | |
3276 | ||
3277 | fi | |
3278 | ||
3279 | ||
3280 | eval "$ac_cv_use_wcsrtombs" | |
3281 | if test "$no_cache" != 1; then | |
3282 | echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp | |
3283 | fi | |
3284 | ||
3285 | if test "$wxUSE_WCSRTOMBS" = yes; then | |
3286 | echo "$ac_t""yes" 1>&6 | |
3287 | else | |
3288 | echo "$ac_t""no" 1>&6 | |
3289 | fi | |
3290 | ||
3291 | ||
3292 | echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6 | |
95c8801c | 3293 | echo "configure:3294: checking "for --enable-wxprintfv"" >&5 |
10f2d63a VZ |
3294 | no_cache=0 |
3295 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
3296 | if test "${enable_wxprintfv+set}" = set; then | |
3297 | enableval="$enable_wxprintfv" | |
3298 | ||
3299 | if test "$enableval" = yes; then | |
3300 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
3301 | else | |
3302 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
3303 | fi | |
3304 | ||
3305 | else | |
3306 | ||
3307 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
3308 | if test "x$LINE" != x ; then | |
3309 | eval "DEFAULT_$LINE" | |
3310 | else | |
3311 | no_cache=1 | |
3312 | fi | |
3313 | ||
3314 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
3315 | ||
3316 | fi | |
3317 | ||
3318 | ||
3319 | eval "$ac_cv_use_wxprintfv" | |
3320 | if test "$no_cache" != 1; then | |
3321 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
3322 | fi | |
3323 | ||
3324 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
3325 | echo "$ac_t""yes" 1>&6 | |
3326 | else | |
3327 | echo "$ac_t""no" 1>&6 | |
3328 | fi | |
3329 | ||
3330 | ||
10f2d63a | 3331 | echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6 |
95c8801c | 3332 | echo "configure:3333: checking "for --enable-std_iostreams"" >&5 |
10f2d63a VZ |
3333 | no_cache=0 |
3334 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
3335 | if test "${enable_std_iostreams+set}" = set; then | |
3336 | enableval="$enable_std_iostreams" | |
3337 | ||
3338 | if test "$enableval" = yes; then | |
3339 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
3340 | else | |
3341 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
3342 | fi | |
3343 | ||
3344 | else | |
3345 | ||
3346 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` | |
3347 | if test "x$LINE" != x ; then | |
3348 | eval "DEFAULT_$LINE" | |
3349 | else | |
3350 | no_cache=1 | |
3351 | fi | |
3352 | ||
3353 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
3354 | ||
3355 | fi | |
3356 | ||
3357 | ||
3358 | eval "$ac_cv_use_std_iostreams" | |
3359 | if test "$no_cache" != 1; then | |
3360 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
3361 | fi | |
3362 | ||
3363 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
3364 | echo "$ac_t""yes" 1>&6 | |
3365 | else | |
3366 | echo "$ac_t""no" 1>&6 | |
3367 | fi | |
3368 | ||
3369 | ||
24528b0c | 3370 | echo $ac_n "checking "for --enable-filesystem"""... $ac_c" 1>&6 |
95c8801c | 3371 | echo "configure:3372: checking "for --enable-filesystem"" >&5 |
24528b0c VS |
3372 | no_cache=0 |
3373 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
3374 | if test "${enable_filesystem+set}" = set; then | |
3375 | enableval="$enable_filesystem" | |
3376 | ||
3377 | if test "$enableval" = yes; then | |
3378 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
3379 | else | |
3380 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
3381 | fi | |
3382 | ||
3383 | else | |
3384 | ||
3385 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
3386 | if test "x$LINE" != x ; then | |
3387 | eval "DEFAULT_$LINE" | |
3388 | else | |
3389 | no_cache=1 | |
3390 | fi | |
3391 | ||
3392 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
3393 | ||
3394 | fi | |
3395 | ||
3396 | ||
3397 | eval "$ac_cv_use_filesystem" | |
3398 | if test "$no_cache" != 1; then | |
3399 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
3400 | fi | |
3401 | ||
3402 | if test "$wxUSE_FILESYSTEM" = yes; then | |
3403 | echo "$ac_t""yes" 1>&6 | |
3404 | else | |
3405 | echo "$ac_t""no" 1>&6 | |
3406 | fi | |
3407 | ||
3408 | ||
10f2d63a | 3409 | echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6 |
95c8801c | 3410 | echo "configure:3411: checking "for --enable-fs_inet"" >&5 |
10f2d63a VZ |
3411 | no_cache=0 |
3412 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
3413 | if test "${enable_fs_inet+set}" = set; then | |
3414 | enableval="$enable_fs_inet" | |
3415 | ||
3416 | if test "$enableval" = yes; then | |
3417 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
3418 | else | |
3419 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
3420 | fi | |
3421 | ||
3422 | else | |
3423 | ||
3424 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
3425 | if test "x$LINE" != x ; then | |
3426 | eval "DEFAULT_$LINE" | |
3427 | else | |
3428 | no_cache=1 | |
3429 | fi | |
3430 | ||
3431 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
3432 | ||
3433 | fi | |
3434 | ||
3435 | ||
3436 | eval "$ac_cv_use_fs_inet" | |
3437 | if test "$no_cache" != 1; then | |
3438 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
3439 | fi | |
3440 | ||
3441 | if test "$wxUSE_FS_INET" = yes; then | |
3442 | echo "$ac_t""yes" 1>&6 | |
3443 | else | |
3444 | echo "$ac_t""no" 1>&6 | |
3445 | fi | |
3446 | ||
3447 | ||
3448 | echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6 | |
95c8801c | 3449 | echo "configure:3450: checking "for --enable-fs_zip"" >&5 |
10f2d63a VZ |
3450 | no_cache=0 |
3451 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
3452 | if test "${enable_fs_zip+set}" = set; then | |
3453 | enableval="$enable_fs_zip" | |
3454 | ||
3455 | if test "$enableval" = yes; then | |
3456 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
3457 | else | |
3458 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
3459 | fi | |
3460 | ||
3461 | else | |
3462 | ||
3463 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
3464 | if test "x$LINE" != x ; then | |
3465 | eval "DEFAULT_$LINE" | |
3466 | else | |
3467 | no_cache=1 | |
3468 | fi | |
3469 | ||
3470 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
3471 | ||
3472 | fi | |
3473 | ||
3474 | ||
3475 | eval "$ac_cv_use_fs_zip" | |
3476 | if test "$no_cache" != 1; then | |
3477 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
3478 | fi | |
3479 | ||
3480 | if test "$wxUSE_FS_ZIP" = yes; then | |
3481 | echo "$ac_t""yes" 1>&6 | |
3482 | else | |
3483 | echo "$ac_t""no" 1>&6 | |
3484 | fi | |
3485 | ||
3486 | ||
3487 | echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6 | |
95c8801c | 3488 | echo "configure:3489: checking "for --enable-zipstream"" >&5 |
10f2d63a VZ |
3489 | no_cache=0 |
3490 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
3491 | if test "${enable_zipstream+set}" = set; then | |
3492 | enableval="$enable_zipstream" | |
3493 | ||
3494 | if test "$enableval" = yes; then | |
3495 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
3496 | else | |
3497 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
3498 | fi | |
3499 | ||
3500 | else | |
3501 | ||
3502 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
3503 | if test "x$LINE" != x ; then | |
3504 | eval "DEFAULT_$LINE" | |
3505 | else | |
3506 | no_cache=1 | |
3507 | fi | |
3508 | ||
3509 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
3510 | ||
3511 | fi | |
3512 | ||
3513 | ||
3514 | eval "$ac_cv_use_zipstream" | |
3515 | if test "$no_cache" != 1; then | |
3516 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
3517 | fi | |
3518 | ||
3519 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
3520 | echo "$ac_t""yes" 1>&6 | |
3521 | else | |
3522 | echo "$ac_t""no" 1>&6 | |
3523 | fi | |
3524 | ||
3525 | ||
3526 | ||
eb4efbdc | 3527 | echo $ac_n "checking "for --enable-catch_segvs"""... $ac_c" 1>&6 |
95c8801c | 3528 | echo "configure:3529: checking "for --enable-catch_segvs"" >&5 |
eb4efbdc VZ |
3529 | no_cache=0 |
3530 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
3531 | if test "${enable_catch_segvs+set}" = set; then | |
3532 | enableval="$enable_catch_segvs" | |
3533 | ||
3534 | if test "$enableval" = yes; then | |
3535 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
3536 | else | |
3537 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
3538 | fi | |
3539 | ||
3540 | else | |
3541 | ||
3542 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` | |
3543 | if test "x$LINE" != x ; then | |
3544 | eval "DEFAULT_$LINE" | |
3545 | else | |
3546 | no_cache=1 | |
3547 | fi | |
3548 | ||
3549 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
3550 | ||
3551 | fi | |
3552 | ||
3553 | ||
3554 | eval "$ac_cv_use_catch_segvs" | |
3555 | if test "$no_cache" != 1; then | |
3556 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
3557 | fi | |
3558 | ||
3559 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
3560 | echo "$ac_t""yes" 1>&6 | |
3561 | else | |
3562 | echo "$ac_t""no" 1>&6 | |
3563 | fi | |
3564 | ||
3565 | ||
3566 | ||
10f2d63a VZ |
3567 | |
3568 | echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6 | |
95c8801c | 3569 | echo "configure:3570: checking "for --enable-threads"" >&5 |
10f2d63a VZ |
3570 | no_cache=0 |
3571 | # Check whether --enable-threads or --disable-threads was given. | |
3572 | if test "${enable_threads+set}" = set; then | |
3573 | enableval="$enable_threads" | |
3574 | ||
3575 | if test "$enableval" = yes; then | |
3576 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
3577 | else | |
3578 | ac_cv_use_threads='wxUSE_THREADS=no' | |
3579 | fi | |
3580 | ||
3581 | else | |
3582 | ||
3583 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
3584 | if test "x$LINE" != x ; then | |
3585 | eval "DEFAULT_$LINE" | |
3586 | else | |
3587 | no_cache=1 | |
3588 | fi | |
3589 | ||
3590 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
3591 | ||
3592 | fi | |
3593 | ||
3594 | ||
3595 | eval "$ac_cv_use_threads" | |
3596 | if test "$no_cache" != 1; then | |
3597 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
3598 | fi | |
3599 | ||
3600 | if test "$wxUSE_THREADS" = yes; then | |
3601 | echo "$ac_t""yes" 1>&6 | |
3602 | else | |
3603 | echo "$ac_t""no" 1>&6 | |
3604 | fi | |
3605 | ||
3606 | ||
3607 | echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6 | |
95c8801c | 3608 | echo "configure:3609: checking "for --enable-serial"" >&5 |
10f2d63a VZ |
3609 | no_cache=0 |
3610 | # Check whether --enable-serial or --disable-serial was given. | |
3611 | if test "${enable_serial+set}" = set; then | |
3612 | enableval="$enable_serial" | |
3613 | ||
3614 | if test "$enableval" = yes; then | |
3615 | ac_cv_use_serial='wxUSE_SERIAL=yes' | |
3616 | else | |
3617 | ac_cv_use_serial='wxUSE_SERIAL=no' | |
3618 | fi | |
3619 | ||
3620 | else | |
3621 | ||
3622 | LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}` | |
3623 | if test "x$LINE" != x ; then | |
3624 | eval "DEFAULT_$LINE" | |
3625 | else | |
3626 | no_cache=1 | |
3627 | fi | |
3628 | ||
3629 | ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL | |
3630 | ||
3631 | fi | |
3632 | ||
3633 | ||
3634 | eval "$ac_cv_use_serial" | |
3635 | if test "$no_cache" != 1; then | |
3636 | echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp | |
3637 | fi | |
3638 | ||
3639 | if test "$wxUSE_SERIAL" = yes; then | |
3640 | echo "$ac_t""yes" 1>&6 | |
3641 | else | |
3642 | echo "$ac_t""no" 1>&6 | |
3643 | fi | |
3644 | ||
3645 | ||
b12915c1 VZ |
3646 | if test "$wxUSE_GUI" = "yes"; then |
3647 | ||
10f2d63a VZ |
3648 | |
3649 | ||
3650 | echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6 | |
95c8801c | 3651 | echo "configure:3652: checking "for --enable-docview"" >&5 |
10f2d63a VZ |
3652 | no_cache=0 |
3653 | # Check whether --enable-docview or --disable-docview was given. | |
3654 | if test "${enable_docview+set}" = set; then | |
3655 | enableval="$enable_docview" | |
3656 | ||
3657 | if test "$enableval" = yes; then | |
3658 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
3659 | else | |
3660 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
3661 | fi | |
3662 | ||
3663 | else | |
3664 | ||
3665 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
3666 | if test "x$LINE" != x ; then | |
3667 | eval "DEFAULT_$LINE" | |
3668 | else | |
3669 | no_cache=1 | |
3670 | fi | |
3671 | ||
3672 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
3673 | ||
3674 | fi | |
3675 | ||
3676 | ||
3677 | eval "$ac_cv_use_docview" | |
3678 | if test "$no_cache" != 1; then | |
3679 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
3680 | fi | |
3681 | ||
3682 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
3683 | echo "$ac_t""yes" 1>&6 | |
3684 | else | |
3685 | echo "$ac_t""no" 1>&6 | |
3686 | fi | |
3687 | ||
3688 | ||
3689 | echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6 | |
95c8801c | 3690 | echo "configure:3691: checking "for --enable-help"" >&5 |
10f2d63a VZ |
3691 | no_cache=0 |
3692 | # Check whether --enable-help or --disable-help was given. | |
3693 | if test "${enable_help+set}" = set; then | |
3694 | enableval="$enable_help" | |
3695 | ||
3696 | if test "$enableval" = yes; then | |
3697 | ac_cv_use_help='wxUSE_HELP=yes' | |
3698 | else | |
3699 | ac_cv_use_help='wxUSE_HELP=no' | |
3700 | fi | |
3701 | ||
3702 | else | |
3703 | ||
3704 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
3705 | if test "x$LINE" != x ; then | |
3706 | eval "DEFAULT_$LINE" | |
3707 | else | |
3708 | no_cache=1 | |
3709 | fi | |
3710 | ||
3711 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
3712 | ||
3713 | fi | |
3714 | ||
3715 | ||
3716 | eval "$ac_cv_use_help" | |
3717 | if test "$no_cache" != 1; then | |
3718 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
3719 | fi | |
3720 | ||
3721 | if test "$wxUSE_HELP" = yes; then | |
3722 | echo "$ac_t""yes" 1>&6 | |
3723 | else | |
3724 | echo "$ac_t""no" 1>&6 | |
3725 | fi | |
3726 | ||
3727 | ||
3728 | echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6 | |
95c8801c | 3729 | echo "configure:3730: checking "for --enable-constraints"" >&5 |
10f2d63a VZ |
3730 | no_cache=0 |
3731 | # Check whether --enable-constraints or --disable-constraints was given. | |
3732 | if test "${enable_constraints+set}" = set; then | |
3733 | enableval="$enable_constraints" | |
3734 | ||
3735 | if test "$enableval" = yes; then | |
3736 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
3737 | else | |
3738 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
3739 | fi | |
3740 | ||
3741 | else | |
3742 | ||
3743 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
3744 | if test "x$LINE" != x ; then | |
3745 | eval "DEFAULT_$LINE" | |
3746 | else | |
3747 | no_cache=1 | |
3748 | fi | |
3749 | ||
3750 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
3751 | ||
3752 | fi | |
3753 | ||
3754 | ||
3755 | eval "$ac_cv_use_constraints" | |
3756 | if test "$no_cache" != 1; then | |
3757 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
3758 | fi | |
3759 | ||
3760 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
3761 | echo "$ac_t""yes" 1>&6 | |
3762 | else | |
3763 | echo "$ac_t""no" 1>&6 | |
3764 | fi | |
3765 | ||
3766 | ||
3767 | echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6 | |
95c8801c | 3768 | echo "configure:3769: checking "for --enable-printarch"" >&5 |
10f2d63a VZ |
3769 | no_cache=0 |
3770 | # Check whether --enable-printarch or --disable-printarch was given. | |
3771 | if test "${enable_printarch+set}" = set; then | |
3772 | enableval="$enable_printarch" | |
3773 | ||
3774 | if test "$enableval" = yes; then | |
3775 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
3776 | else | |
3777 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
3778 | fi | |
3779 | ||
3780 | else | |
3781 | ||
3782 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
3783 | if test "x$LINE" != x ; then | |
3784 | eval "DEFAULT_$LINE" | |
3785 | else | |
3786 | no_cache=1 | |
3787 | fi | |
3788 | ||
3789 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
3790 | ||
3791 | fi | |
3792 | ||
3793 | ||
3794 | eval "$ac_cv_use_printarch" | |
3795 | if test "$no_cache" != 1; then | |
3796 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
3797 | fi | |
3798 | ||
3799 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
3800 | echo "$ac_t""yes" 1>&6 | |
3801 | else | |
3802 | echo "$ac_t""no" 1>&6 | |
3803 | fi | |
3804 | ||
3805 | ||
3806 | echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6 | |
95c8801c | 3807 | echo "configure:3808: checking "for --enable-mdi"" >&5 |
10f2d63a VZ |
3808 | no_cache=0 |
3809 | # Check whether --enable-mdi or --disable-mdi was given. | |
3810 | if test "${enable_mdi+set}" = set; then | |
3811 | enableval="$enable_mdi" | |
3812 | ||
3813 | if test "$enableval" = yes; then | |
3814 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
3815 | else | |
3816 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
3817 | fi | |
3818 | ||
3819 | else | |
3820 | ||
3821 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
3822 | if test "x$LINE" != x ; then | |
3823 | eval "DEFAULT_$LINE" | |
3824 | else | |
3825 | no_cache=1 | |
3826 | fi | |
3827 | ||
3828 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
3829 | ||
3830 | fi | |
3831 | ||
3832 | ||
3833 | eval "$ac_cv_use_mdi" | |
3834 | if test "$no_cache" != 1; then | |
3835 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
3836 | fi | |
3837 | ||
3838 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
3839 | echo "$ac_t""yes" 1>&6 | |
3840 | else | |
3841 | echo "$ac_t""no" 1>&6 | |
3842 | fi | |
3843 | ||
3844 | ||
3845 | ||
3846 | echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6 | |
95c8801c | 3847 | echo "configure:3848: checking "for --enable-postscript"" >&5 |
10f2d63a VZ |
3848 | no_cache=0 |
3849 | # Check whether --enable-postscript or --disable-postscript was given. | |
3850 | if test "${enable_postscript+set}" = set; then | |
3851 | enableval="$enable_postscript" | |
3852 | ||
3853 | if test "$enableval" = yes; then | |
3854 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
3855 | else | |
3856 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
3857 | fi | |
3858 | ||
3859 | else | |
3860 | ||
3861 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
3862 | if test "x$LINE" != x ; then | |
3863 | eval "DEFAULT_$LINE" | |
3864 | else | |
3865 | no_cache=1 | |
3866 | fi | |
3867 | ||
3868 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
3869 | ||
3870 | fi | |
3871 | ||
3872 | ||
3873 | eval "$ac_cv_use_postscript" | |
3874 | if test "$no_cache" != 1; then | |
3875 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
3876 | fi | |
3877 | ||
3878 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
3879 | echo "$ac_t""yes" 1>&6 | |
3880 | else | |
3881 | echo "$ac_t""no" 1>&6 | |
3882 | fi | |
3883 | ||
3884 | ||
3885 | ||
3886 | ||
3887 | echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6 | |
95c8801c | 3888 | echo "configure:3889: checking "for --enable-prologio"" >&5 |
10f2d63a VZ |
3889 | no_cache=0 |
3890 | # Check whether --enable-prologio or --disable-prologio was given. | |
3891 | if test "${enable_prologio+set}" = set; then | |
3892 | enableval="$enable_prologio" | |
3893 | ||
3894 | if test "$enableval" = yes; then | |
3895 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
3896 | else | |
3897 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
3898 | fi | |
3899 | ||
3900 | else | |
3901 | ||
3902 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
3903 | if test "x$LINE" != x ; then | |
3904 | eval "DEFAULT_$LINE" | |
3905 | else | |
3906 | no_cache=1 | |
3907 | fi | |
3908 | ||
3909 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
3910 | ||
3911 | fi | |
3912 | ||
3913 | ||
3914 | eval "$ac_cv_use_prologio" | |
3915 | if test "$no_cache" != 1; then | |
3916 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
3917 | fi | |
3918 | ||
3919 | if test "$wxUSE_PROLOGIO" = yes; then | |
3920 | echo "$ac_t""yes" 1>&6 | |
3921 | else | |
3922 | echo "$ac_t""no" 1>&6 | |
3923 | fi | |
3924 | ||
3925 | ||
3926 | echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6 | |
95c8801c | 3927 | echo "configure:3928: checking "for --enable-resources"" >&5 |
10f2d63a VZ |
3928 | no_cache=0 |
3929 | # Check whether --enable-resources or --disable-resources was given. | |
3930 | if test "${enable_resources+set}" = set; then | |
3931 | enableval="$enable_resources" | |
3932 | ||
3933 | if test "$enableval" = yes; then | |
3934 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
3935 | else | |
3936 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
3937 | fi | |
3938 | ||
3939 | else | |
3940 | ||
3941 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
3942 | if test "x$LINE" != x ; then | |
3943 | eval "DEFAULT_$LINE" | |
3944 | else | |
3945 | no_cache=1 | |
3946 | fi | |
3947 | ||
3948 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
3949 | ||
3950 | fi | |
3951 | ||
3952 | ||
3953 | eval "$ac_cv_use_resources" | |
3954 | if test "$no_cache" != 1; then | |
3955 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
3956 | fi | |
3957 | ||
3958 | if test "$wxUSE_RESOURCES" = yes; then | |
3959 | echo "$ac_t""yes" 1>&6 | |
3960 | else | |
3961 | echo "$ac_t""no" 1>&6 | |
3962 | fi | |
3963 | ||
3964 | ||
3965 | ||
3966 | echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6 | |
95c8801c | 3967 | echo "configure:3968: checking "for --enable-xresources"" >&5 |
10f2d63a VZ |
3968 | no_cache=0 |
3969 | # Check whether --enable-xresources or --disable-xresources was given. | |
3970 | if test "${enable_xresources+set}" = set; then | |
3971 | enableval="$enable_xresources" | |
3972 | ||
3973 | if test "$enableval" = yes; then | |
3974 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
3975 | else | |
3976 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
3977 | fi | |
3978 | ||
3979 | else | |
3980 | ||
3981 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` | |
3982 | if test "x$LINE" != x ; then | |
3983 | eval "DEFAULT_$LINE" | |
3984 | else | |
3985 | no_cache=1 | |
3986 | fi | |
3987 | ||
3988 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
3989 | ||
3990 | fi | |
3991 | ||
3992 | ||
3993 | eval "$ac_cv_use_xresources" | |
3994 | if test "$no_cache" != 1; then | |
3995 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
3996 | fi | |
3997 | ||
3998 | if test "$wxUSE_X_RESOURCES" = yes; then | |
3999 | echo "$ac_t""yes" 1>&6 | |
4000 | else | |
4001 | echo "$ac_t""no" 1>&6 | |
4002 | fi | |
4003 | ||
4004 | ||
4005 | ||
4006 | ||
4007 | echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6 | |
95c8801c | 4008 | echo "configure:4009: checking "for --enable-clipboard"" >&5 |
10f2d63a VZ |
4009 | no_cache=0 |
4010 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
4011 | if test "${enable_clipboard+set}" = set; then | |
4012 | enableval="$enable_clipboard" | |
4013 | ||
4014 | if test "$enableval" = yes; then | |
4015 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
4016 | else | |
4017 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
4018 | fi | |
4019 | ||
4020 | else | |
4021 | ||
4022 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
4023 | if test "x$LINE" != x ; then | |
4024 | eval "DEFAULT_$LINE" | |
4025 | else | |
4026 | no_cache=1 | |
4027 | fi | |
4028 | ||
4029 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
4030 | ||
4031 | fi | |
4032 | ||
4033 | ||
4034 | eval "$ac_cv_use_clipboard" | |
4035 | if test "$no_cache" != 1; then | |
4036 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
4037 | fi | |
4038 | ||
4039 | if test "$wxUSE_CLIPBOARD" = yes; then | |
4040 | echo "$ac_t""yes" 1>&6 | |
4041 | else | |
4042 | echo "$ac_t""no" 1>&6 | |
4043 | fi | |
4044 | ||
4045 | ||
4046 | echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6 | |
95c8801c | 4047 | echo "configure:4048: checking "for --enable-dnd"" >&5 |
10f2d63a VZ |
4048 | no_cache=0 |
4049 | # Check whether --enable-dnd or --disable-dnd was given. | |
4050 | if test "${enable_dnd+set}" = set; then | |
4051 | enableval="$enable_dnd" | |
4052 | ||
4053 | if test "$enableval" = yes; then | |
4054 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
4055 | else | |
4056 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
4057 | fi | |
4058 | ||
4059 | else | |
4060 | ||
4061 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
4062 | if test "x$LINE" != x ; then | |
4063 | eval "DEFAULT_$LINE" | |
4064 | else | |
4065 | no_cache=1 | |
4066 | fi | |
4067 | ||
4068 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
4069 | ||
4070 | fi | |
4071 | ||
4072 | ||
4073 | eval "$ac_cv_use_dnd" | |
4074 | if test "$no_cache" != 1; then | |
4075 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
4076 | fi | |
4077 | ||
4078 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
4079 | echo "$ac_t""yes" 1>&6 | |
4080 | else | |
4081 | echo "$ac_t""no" 1>&6 | |
4082 | fi | |
4083 | ||
4084 | ||
b64f0a5f | 4085 | echo $ac_n "checking "for --enable-metafile"""... $ac_c" 1>&6 |
95c8801c | 4086 | echo "configure:4087: checking "for --enable-metafile"" >&5 |
b64f0a5f RL |
4087 | no_cache=0 |
4088 | # Check whether --enable-metafile or --disable-metafile was given. | |
4089 | if test "${enable_metafile+set}" = set; then | |
4090 | enableval="$enable_metafile" | |
4091 | ||
4092 | if test "$enableval" = yes; then | |
4093 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
4094 | else | |
4095 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
4096 | fi | |
4097 | ||
4098 | else | |
4099 | ||
4100 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
4101 | if test "x$LINE" != x ; then | |
4102 | eval "DEFAULT_$LINE" | |
4103 | else | |
4104 | no_cache=1 | |
4105 | fi | |
4106 | ||
4107 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
4108 | ||
4109 | fi | |
4110 | ||
4111 | ||
4112 | eval "$ac_cv_use_metafile" | |
4113 | if test "$no_cache" != 1; then | |
4114 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
4115 | fi | |
4116 | ||
4117 | if test "$wxUSE_METAFILE" = yes; then | |
4118 | echo "$ac_t""yes" 1>&6 | |
4119 | else | |
4120 | echo "$ac_t""no" 1>&6 | |
4121 | fi | |
4122 | ||
4123 | ||
10f2d63a VZ |
4124 | |
4125 | echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6 | |
95c8801c | 4126 | echo "configure:4127: checking "for --enable-wxtree"" >&5 |
10f2d63a VZ |
4127 | no_cache=0 |
4128 | # Check whether --enable-wxtree or --disable-wxtree was given. | |
4129 | if test "${enable_wxtree+set}" = set; then | |
4130 | enableval="$enable_wxtree" | |
4131 | ||
4132 | if test "$enableval" = yes; then | |
4133 | ac_cv_use_wxtree='wxUSE_WXTREE=yes' | |
4134 | else | |
4135 | ac_cv_use_wxtree='wxUSE_WXTREE=no' | |
4136 | fi | |
4137 | ||
4138 | else | |
4139 | ||
4140 | LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}` | |
4141 | if test "x$LINE" != x ; then | |
4142 | eval "DEFAULT_$LINE" | |
4143 | else | |
4144 | no_cache=1 | |
4145 | fi | |
4146 | ||
4147 | ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE | |
4148 | ||
4149 | fi | |
4150 | ||
4151 | ||
4152 | eval "$ac_cv_use_wxtree" | |
4153 | if test "$no_cache" != 1; then | |
4154 | echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp | |
4155 | fi | |
4156 | ||
4157 | if test "$wxUSE_WXTREE" = yes; then | |
4158 | echo "$ac_t""yes" 1>&6 | |
4159 | else | |
4160 | echo "$ac_t""no" 1>&6 | |
4161 | fi | |
4162 | ||
4163 | ||
4164 | ||
4165 | ||
4166 | echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6 | |
95c8801c | 4167 | echo "configure:4168: checking "for --enable-controls"" >&5 |
10f2d63a VZ |
4168 | no_cache=0 |
4169 | # Check whether --enable-controls or --disable-controls was given. | |
4170 | if test "${enable_controls+set}" = set; then | |
4171 | enableval="$enable_controls" | |
4172 | ||
4173 | if test "$enableval" = yes; then | |
4174 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
4175 | else | |
4176 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
4177 | fi | |
4178 | ||
4179 | else | |
4180 | ||
4181 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
4182 | if test "x$LINE" != x ; then | |
4183 | eval "DEFAULT_$LINE" | |
4184 | else | |
4185 | no_cache=1 | |
4186 | fi | |
4187 | ||
4188 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
4189 | ||
4190 | fi | |
4191 | ||
4192 | ||
4193 | eval "$ac_cv_use_controls" | |
4194 | if test "$no_cache" != 1; then | |
4195 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
4196 | fi | |
4197 | ||
4198 | if test "$wxUSE_CONTROLS" = yes; then | |
4199 | echo "$ac_t""yes" 1>&6 | |
4200 | else | |
4201 | echo "$ac_t""no" 1>&6 | |
4202 | fi | |
4203 | ||
4204 | ||
4205 | if test "$wxUSE_CONTROLS" = "yes"; then | |
4206 | DEFAULT_wxUSE_ACCEL=yes | |
4207 | DEFAULT_wxUSE_CARET=yes | |
4208 | DEFAULT_wxUSE_COMBOBOX=yes | |
4209 | DEFAULT_wxUSE_BMPBUTTON=yes | |
4210 | DEFAULT_wxUSE_CHECKBOX=yes | |
4211 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
4212 | DEFAULT_wxUSE_CHOICE=yes | |
4213 | DEFAULT_wxUSE_GAUGE=yes | |
4214 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 4215 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
4216 | DEFAULT_wxUSE_IMAGLIST=yes |
4217 | DEFAULT_wxUSE_LISTBOX=yes | |
4218 | DEFAULT_wxUSE_LISTCTRL=yes | |
4219 | DEFAULT_wxUSE_NOTEBOOK=yes | |
4220 | DEFAULT_wxUSE_RADIOBOX=yes | |
4221 | DEFAULT_wxUSE_RADIOBTN=yes | |
4222 | DEFAULT_wxUSE_SASH=yes | |
4223 | DEFAULT_wxUSE_SCROLLBAR=yes | |
4224 | DEFAULT_wxUSE_SLIDER=yes | |
4225 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 4226 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
4227 | DEFAULT_wxUSE_SPLITTER=yes |
4228 | DEFAULT_wxUSE_STATBMP=yes | |
4229 | DEFAULT_wxUSE_STATBOX=yes | |
4230 | DEFAULT_wxUSE_STATLINE=yes | |
4231 | DEFAULT_wxUSE_STATUSBAR=yes | |
4232 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 4233 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 4234 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
4235 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
4236 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
4237 | DEFAULT_wxUSE_TOOLTIPS=yes |
4238 | DEFAULT_wxUSE_TREECTRL=yes | |
4239 | elif test "$wxUSE_CONTROLS" = "no"; then | |
4240 | DEFAULT_wxUSE_ACCEL=no | |
4241 | DEFAULT_wxUSE_CARET=no | |
4242 | DEFAULT_wxUSE_COMBOBOX=no | |
4243 | DEFAULT_wxUSE_BMPBUTTON=no | |
4244 | DEFAULT_wxUSE_CHECKBOX=no | |
4245 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
4246 | DEFAULT_wxUSE_CHOICE=no | |
4247 | DEFAULT_wxUSE_GAUGE=no | |
4248 | DEFAULT_wxUSE_GRID=no | |
4249 | DEFAULT_wxUSE_NEW_GRID=no | |
4250 | DEFAULT_wxUSE_IMAGLIST=no | |
4251 | DEFAULT_wxUSE_LISTBOX=no | |
4252 | DEFAULT_wxUSE_LISTCTRL=no | |
4253 | DEFAULT_wxUSE_NOTEBOOK=no | |
4254 | DEFAULT_wxUSE_RADIOBOX=no | |
4255 | DEFAULT_wxUSE_RADIOBTN=no | |
4256 | DEFAULT_wxUSE_SASH=no | |
4257 | DEFAULT_wxUSE_SCROLLBAR=no | |
4258 | DEFAULT_wxUSE_SLIDER=no | |
4259 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 4260 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
4261 | DEFAULT_wxUSE_SPLITTER=no |
4262 | DEFAULT_wxUSE_STATBMP=no | |
4263 | DEFAULT_wxUSE_STATBOX=no | |
4264 | DEFAULT_wxUSE_STATLINE=no | |
4265 | DEFAULT_wxUSE_STATUSBAR=no | |
4266 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 4267 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 4268 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
4269 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
4270 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
4271 | DEFAULT_wxUSE_TOOLTIPS=no |
4272 | DEFAULT_wxUSE_TREECTRL=no | |
4273 | fi | |
4274 | ||
4275 | ||
4276 | echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6 | |
95c8801c | 4277 | echo "configure:4278: checking "for --enable-accel"" >&5 |
10f2d63a VZ |
4278 | no_cache=0 |
4279 | # Check whether --enable-accel or --disable-accel was given. | |
4280 | if test "${enable_accel+set}" = set; then | |
4281 | enableval="$enable_accel" | |
4282 | ||
4283 | if test "$enableval" = yes; then | |
4284 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
4285 | else | |
4286 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
4287 | fi | |
4288 | ||
4289 | else | |
4290 | ||
4291 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
4292 | if test "x$LINE" != x ; then | |
4293 | eval "DEFAULT_$LINE" | |
4294 | else | |
4295 | no_cache=1 | |
4296 | fi | |
4297 | ||
4298 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
4299 | ||
4300 | fi | |
4301 | ||
4302 | ||
4303 | eval "$ac_cv_use_accel" | |
4304 | if test "$no_cache" != 1; then | |
4305 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
4306 | fi | |
4307 | ||
4308 | if test "$wxUSE_ACCEL" = yes; then | |
4309 | echo "$ac_t""yes" 1>&6 | |
4310 | else | |
4311 | echo "$ac_t""no" 1>&6 | |
4312 | fi | |
4313 | ||
4314 | ||
4315 | echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6 | |
95c8801c | 4316 | echo "configure:4317: checking "for --enable-caret"" >&5 |
10f2d63a VZ |
4317 | no_cache=0 |
4318 | # Check whether --enable-caret or --disable-caret was given. | |
4319 | if test "${enable_caret+set}" = set; then | |
4320 | enableval="$enable_caret" | |
4321 | ||
4322 | if test "$enableval" = yes; then | |
4323 | ac_cv_use_caret='wxUSE_CARET=yes' | |
4324 | else | |
4325 | ac_cv_use_caret='wxUSE_CARET=no' | |
4326 | fi | |
4327 | ||
4328 | else | |
4329 | ||
4330 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
4331 | if test "x$LINE" != x ; then | |
4332 | eval "DEFAULT_$LINE" | |
4333 | else | |
4334 | no_cache=1 | |
4335 | fi | |
4336 | ||
4337 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
4338 | ||
4339 | fi | |
4340 | ||
4341 | ||
4342 | eval "$ac_cv_use_caret" | |
4343 | if test "$no_cache" != 1; then | |
4344 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
4345 | fi | |
4346 | ||
4347 | if test "$wxUSE_CARET" = yes; then | |
4348 | echo "$ac_t""yes" 1>&6 | |
4349 | else | |
4350 | echo "$ac_t""no" 1>&6 | |
4351 | fi | |
4352 | ||
4353 | ||
4354 | echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6 | |
95c8801c | 4355 | echo "configure:4356: checking "for --enable-bmpbutton"" >&5 |
10f2d63a VZ |
4356 | no_cache=0 |
4357 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
4358 | if test "${enable_bmpbutton+set}" = set; then | |
4359 | enableval="$enable_bmpbutton" | |
4360 | ||
4361 | if test "$enableval" = yes; then | |
4362 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
4363 | else | |
4364 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
4365 | fi | |
4366 | ||
4367 | else | |
4368 | ||
4369 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
4370 | if test "x$LINE" != x ; then | |
4371 | eval "DEFAULT_$LINE" | |
4372 | else | |
4373 | no_cache=1 | |
4374 | fi | |
4375 | ||
4376 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
4377 | ||
4378 | fi | |
4379 | ||
4380 | ||
4381 | eval "$ac_cv_use_bmpbutton" | |
4382 | if test "$no_cache" != 1; then | |
4383 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
4384 | fi | |
4385 | ||
4386 | if test "$wxUSE_BMPBUTTON" = yes; then | |
4387 | echo "$ac_t""yes" 1>&6 | |
4388 | else | |
4389 | echo "$ac_t""no" 1>&6 | |
4390 | fi | |
4391 | ||
4392 | ||
4393 | echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6 | |
95c8801c | 4394 | echo "configure:4395: checking "for --enable-checkbox"" >&5 |
10f2d63a VZ |
4395 | no_cache=0 |
4396 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
4397 | if test "${enable_checkbox+set}" = set; then | |
4398 | enableval="$enable_checkbox" | |
4399 | ||
4400 | if test "$enableval" = yes; then | |
4401 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
4402 | else | |
4403 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
4404 | fi | |
4405 | ||
4406 | else | |
4407 | ||
4408 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
4409 | if test "x$LINE" != x ; then | |
4410 | eval "DEFAULT_$LINE" | |
4411 | else | |
4412 | no_cache=1 | |
4413 | fi | |
4414 | ||
4415 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
4416 | ||
4417 | fi | |
4418 | ||
4419 | ||
4420 | eval "$ac_cv_use_checkbox" | |
4421 | if test "$no_cache" != 1; then | |
4422 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
4423 | fi | |
4424 | ||
4425 | if test "$wxUSE_CHECKBOX" = yes; then | |
4426 | echo "$ac_t""yes" 1>&6 | |
4427 | else | |
4428 | echo "$ac_t""no" 1>&6 | |
4429 | fi | |
4430 | ||
4431 | ||
4432 | echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6 | |
95c8801c | 4433 | echo "configure:4434: checking "for --enable-checklst"" >&5 |
10f2d63a VZ |
4434 | no_cache=0 |
4435 | # Check whether --enable-checklst or --disable-checklst was given. | |
4436 | if test "${enable_checklst+set}" = set; then | |
4437 | enableval="$enable_checklst" | |
4438 | ||
4439 | if test "$enableval" = yes; then | |
4440 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
4441 | else | |
4442 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
4443 | fi | |
4444 | ||
4445 | else | |
4446 | ||
4447 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
4448 | if test "x$LINE" != x ; then | |
4449 | eval "DEFAULT_$LINE" | |
4450 | else | |
4451 | no_cache=1 | |
4452 | fi | |
4453 | ||
4454 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
4455 | ||
4456 | fi | |
4457 | ||
4458 | ||
4459 | eval "$ac_cv_use_checklst" | |
4460 | if test "$no_cache" != 1; then | |
4461 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
4462 | fi | |
4463 | ||
4464 | if test "$wxUSE_CHECKLST" = yes; then | |
4465 | echo "$ac_t""yes" 1>&6 | |
4466 | else | |
4467 | echo "$ac_t""no" 1>&6 | |
4468 | fi | |
4469 | ||
4470 | ||
4471 | echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6 | |
95c8801c | 4472 | echo "configure:4473: checking "for --enable-choice"" >&5 |
10f2d63a VZ |
4473 | no_cache=0 |
4474 | # Check whether --enable-choice or --disable-choice was given. | |
4475 | if test "${enable_choice+set}" = set; then | |
4476 | enableval="$enable_choice" | |
4477 | ||
4478 | if test "$enableval" = yes; then | |
4479 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
4480 | else | |
4481 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
4482 | fi | |
4483 | ||
4484 | else | |
4485 | ||
4486 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
4487 | if test "x$LINE" != x ; then | |
4488 | eval "DEFAULT_$LINE" | |
4489 | else | |
4490 | no_cache=1 | |
4491 | fi | |
4492 | ||
4493 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
4494 | ||
4495 | fi | |
4496 | ||
4497 | ||
4498 | eval "$ac_cv_use_choice" | |
4499 | if test "$no_cache" != 1; then | |
4500 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
4501 | fi | |
4502 | ||
4503 | if test "$wxUSE_CHOICE" = yes; then | |
4504 | echo "$ac_t""yes" 1>&6 | |
4505 | else | |
4506 | echo "$ac_t""no" 1>&6 | |
4507 | fi | |
4508 | ||
4509 | ||
4510 | echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6 | |
95c8801c | 4511 | echo "configure:4512: checking "for --enable-combobox"" >&5 |
10f2d63a VZ |
4512 | no_cache=0 |
4513 | # Check whether --enable-combobox or --disable-combobox was given. | |
4514 | if test "${enable_combobox+set}" = set; then | |
4515 | enableval="$enable_combobox" | |
4516 | ||
4517 | if test "$enableval" = yes; then | |
4518 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
4519 | else | |
4520 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
4521 | fi | |
4522 | ||
4523 | else | |
4524 | ||
4525 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
4526 | if test "x$LINE" != x ; then | |
4527 | eval "DEFAULT_$LINE" | |
4528 | else | |
4529 | no_cache=1 | |
4530 | fi | |
4531 | ||
4532 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
4533 | ||
4534 | fi | |
4535 | ||
4536 | ||
4537 | eval "$ac_cv_use_combobox" | |
4538 | if test "$no_cache" != 1; then | |
4539 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
4540 | fi | |
4541 | ||
4542 | if test "$wxUSE_COMBOBOX" = yes; then | |
4543 | echo "$ac_t""yes" 1>&6 | |
4544 | else | |
4545 | echo "$ac_t""no" 1>&6 | |
4546 | fi | |
4547 | ||
4548 | ||
4549 | echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6 | |
95c8801c | 4550 | echo "configure:4551: checking "for --enable-gauge"" >&5 |
10f2d63a VZ |
4551 | no_cache=0 |
4552 | # Check whether --enable-gauge or --disable-gauge was given. | |
4553 | if test "${enable_gauge+set}" = set; then | |
4554 | enableval="$enable_gauge" | |
4555 | ||
4556 | if test "$enableval" = yes; then | |
4557 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
4558 | else | |
4559 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
4560 | fi | |
4561 | ||
4562 | else | |
4563 | ||
4564 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
4565 | if test "x$LINE" != x ; then | |
4566 | eval "DEFAULT_$LINE" | |
4567 | else | |
4568 | no_cache=1 | |
4569 | fi | |
4570 | ||
4571 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
4572 | ||
4573 | fi | |
4574 | ||
4575 | ||
4576 | eval "$ac_cv_use_gauge" | |
4577 | if test "$no_cache" != 1; then | |
4578 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
4579 | fi | |
4580 | ||
4581 | if test "$wxUSE_GAUGE" = yes; then | |
4582 | echo "$ac_t""yes" 1>&6 | |
4583 | else | |
4584 | echo "$ac_t""no" 1>&6 | |
4585 | fi | |
4586 | ||
4587 | ||
4588 | echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6 | |
95c8801c | 4589 | echo "configure:4590: checking "for --enable-grid"" >&5 |
10f2d63a VZ |
4590 | no_cache=0 |
4591 | # Check whether --enable-grid or --disable-grid was given. | |
4592 | if test "${enable_grid+set}" = set; then | |
4593 | enableval="$enable_grid" | |
4594 | ||
4595 | if test "$enableval" = yes; then | |
4596 | ac_cv_use_grid='wxUSE_GRID=yes' | |
4597 | else | |
4598 | ac_cv_use_grid='wxUSE_GRID=no' | |
4599 | fi | |
4600 | ||
4601 | else | |
4602 | ||
4603 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
4604 | if test "x$LINE" != x ; then | |
4605 | eval "DEFAULT_$LINE" | |
4606 | else | |
4607 | no_cache=1 | |
4608 | fi | |
4609 | ||
4610 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
4611 | ||
4612 | fi | |
4613 | ||
4614 | ||
4615 | eval "$ac_cv_use_grid" | |
4616 | if test "$no_cache" != 1; then | |
4617 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
4618 | fi | |
4619 | ||
4620 | if test "$wxUSE_GRID" = yes; then | |
4621 | echo "$ac_t""yes" 1>&6 | |
4622 | else | |
4623 | echo "$ac_t""no" 1>&6 | |
4624 | fi | |
4625 | ||
4626 | ||
4627 | echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6 | |
95c8801c | 4628 | echo "configure:4629: checking "for --enable-newgrid"" >&5 |
10f2d63a VZ |
4629 | no_cache=0 |
4630 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
4631 | if test "${enable_newgrid+set}" = set; then | |
4632 | enableval="$enable_newgrid" | |
4633 | ||
4634 | if test "$enableval" = yes; then | |
4635 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
4636 | else | |
4637 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
4638 | fi | |
4639 | ||
4640 | else | |
4641 | ||
4642 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` | |
4643 | if test "x$LINE" != x ; then | |
4644 | eval "DEFAULT_$LINE" | |
4645 | else | |
4646 | no_cache=1 | |
4647 | fi | |
4648 | ||
4649 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
4650 | ||
4651 | fi | |
4652 | ||
4653 | ||
4654 | eval "$ac_cv_use_newgrid" | |
4655 | if test "$no_cache" != 1; then | |
4656 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
4657 | fi | |
4658 | ||
4659 | if test "$wxUSE_NEW_GRID" = yes; then | |
4660 | echo "$ac_t""yes" 1>&6 | |
4661 | else | |
4662 | echo "$ac_t""no" 1>&6 | |
4663 | fi | |
4664 | ||
4665 | ||
4666 | echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6 | |
95c8801c | 4667 | echo "configure:4668: checking "for --enable-imaglist"" >&5 |
10f2d63a VZ |
4668 | no_cache=0 |
4669 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
4670 | if test "${enable_imaglist+set}" = set; then | |
4671 | enableval="$enable_imaglist" | |
4672 | ||
4673 | if test "$enableval" = yes; then | |
4674 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
4675 | else | |
4676 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
4677 | fi | |
4678 | ||
4679 | else | |
4680 | ||
4681 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
4682 | if test "x$LINE" != x ; then | |
4683 | eval "DEFAULT_$LINE" | |
4684 | else | |
4685 | no_cache=1 | |
4686 | fi | |
4687 | ||
4688 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
4689 | ||
4690 | fi | |
4691 | ||
4692 | ||
4693 | eval "$ac_cv_use_imaglist" | |
4694 | if test "$no_cache" != 1; then | |
4695 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
4696 | fi | |
4697 | ||
4698 | if test "$wxUSE_IMAGLIST" = yes; then | |
4699 | echo "$ac_t""yes" 1>&6 | |
4700 | else | |
4701 | echo "$ac_t""no" 1>&6 | |
4702 | fi | |
4703 | ||
4704 | ||
4705 | echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6 | |
95c8801c | 4706 | echo "configure:4707: checking "for --enable-listbox"" >&5 |
10f2d63a VZ |
4707 | no_cache=0 |
4708 | # Check whether --enable-listbox or --disable-listbox was given. | |
4709 | if test "${enable_listbox+set}" = set; then | |
4710 | enableval="$enable_listbox" | |
4711 | ||
4712 | if test "$enableval" = yes; then | |
4713 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
4714 | else | |
4715 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
4716 | fi | |
4717 | ||
4718 | else | |
4719 | ||
4720 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
4721 | if test "x$LINE" != x ; then | |
4722 | eval "DEFAULT_$LINE" | |
4723 | else | |
4724 | no_cache=1 | |
4725 | fi | |
4726 | ||
4727 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
4728 | ||
4729 | fi | |
4730 | ||
4731 | ||
4732 | eval "$ac_cv_use_listbox" | |
4733 | if test "$no_cache" != 1; then | |
4734 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
4735 | fi | |
4736 | ||
4737 | if test "$wxUSE_LISTBOX" = yes; then | |
4738 | echo "$ac_t""yes" 1>&6 | |
4739 | else | |
4740 | echo "$ac_t""no" 1>&6 | |
4741 | fi | |
4742 | ||
4743 | ||
4744 | echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6 | |
95c8801c | 4745 | echo "configure:4746: checking "for --enable-listctrl"" >&5 |
10f2d63a VZ |
4746 | no_cache=0 |
4747 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
4748 | if test "${enable_listctrl+set}" = set; then | |
4749 | enableval="$enable_listctrl" | |
4750 | ||
4751 | if test "$enableval" = yes; then | |
4752 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
4753 | else | |
4754 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
4755 | fi | |
4756 | ||
4757 | else | |
4758 | ||
4759 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
4760 | if test "x$LINE" != x ; then | |
4761 | eval "DEFAULT_$LINE" | |
4762 | else | |
4763 | no_cache=1 | |
4764 | fi | |
4765 | ||
4766 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
4767 | ||
4768 | fi | |
4769 | ||
4770 | ||
4771 | eval "$ac_cv_use_listctrl" | |
4772 | if test "$no_cache" != 1; then | |
4773 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
4774 | fi | |
4775 | ||
4776 | if test "$wxUSE_LISTCTRL" = yes; then | |
4777 | echo "$ac_t""yes" 1>&6 | |
4778 | else | |
4779 | echo "$ac_t""no" 1>&6 | |
4780 | fi | |
4781 | ||
4782 | ||
4783 | echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6 | |
95c8801c | 4784 | echo "configure:4785: checking "for --enable-notebook"" >&5 |
10f2d63a VZ |
4785 | no_cache=0 |
4786 | # Check whether --enable-notebook or --disable-notebook was given. | |
4787 | if test "${enable_notebook+set}" = set; then | |
4788 | enableval="$enable_notebook" | |
4789 | ||
4790 | if test "$enableval" = yes; then | |
4791 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
4792 | else | |
4793 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
4794 | fi | |
4795 | ||
4796 | else | |
4797 | ||
4798 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
4799 | if test "x$LINE" != x ; then | |
4800 | eval "DEFAULT_$LINE" | |
4801 | else | |
4802 | no_cache=1 | |
4803 | fi | |
4804 | ||
4805 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
4806 | ||
4807 | fi | |
4808 | ||
4809 | ||
4810 | eval "$ac_cv_use_notebook" | |
4811 | if test "$no_cache" != 1; then | |
4812 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
4813 | fi | |
4814 | ||
4815 | if test "$wxUSE_NOTEBOOK" = yes; then | |
4816 | echo "$ac_t""yes" 1>&6 | |
4817 | else | |
4818 | echo "$ac_t""no" 1>&6 | |
4819 | fi | |
4820 | ||
4821 | ||
4822 | echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6 | |
95c8801c | 4823 | echo "configure:4824: checking "for --enable-radiobox"" >&5 |
10f2d63a VZ |
4824 | no_cache=0 |
4825 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
4826 | if test "${enable_radiobox+set}" = set; then | |
4827 | enableval="$enable_radiobox" | |
4828 | ||
4829 | if test "$enableval" = yes; then | |
4830 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
4831 | else | |
4832 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
4833 | fi | |
4834 | ||
4835 | else | |
4836 | ||
4837 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
4838 | if test "x$LINE" != x ; then | |
4839 | eval "DEFAULT_$LINE" | |
4840 | else | |
4841 | no_cache=1 | |
4842 | fi | |
4843 | ||
4844 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
4845 | ||
4846 | fi | |
4847 | ||
4848 | ||
4849 | eval "$ac_cv_use_radiobox" | |
4850 | if test "$no_cache" != 1; then | |
4851 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
4852 | fi | |
4853 | ||
4854 | if test "$wxUSE_RADIOBOX" = yes; then | |
4855 | echo "$ac_t""yes" 1>&6 | |
4856 | else | |
4857 | echo "$ac_t""no" 1>&6 | |
4858 | fi | |
4859 | ||
4860 | ||
4861 | echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6 | |
95c8801c | 4862 | echo "configure:4863: checking "for --enable-radiobtn"" >&5 |
10f2d63a VZ |
4863 | no_cache=0 |
4864 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
4865 | if test "${enable_radiobtn+set}" = set; then | |
4866 | enableval="$enable_radiobtn" | |
4867 | ||
4868 | if test "$enableval" = yes; then | |
4869 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
4870 | else | |
4871 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
4872 | fi | |
4873 | ||
4874 | else | |
4875 | ||
4876 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
4877 | if test "x$LINE" != x ; then | |
4878 | eval "DEFAULT_$LINE" | |
4879 | else | |
4880 | no_cache=1 | |
4881 | fi | |
4882 | ||
4883 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
4884 | ||
4885 | fi | |
4886 | ||
4887 | ||
4888 | eval "$ac_cv_use_radiobtn" | |
4889 | if test "$no_cache" != 1; then | |
4890 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
4891 | fi | |
4892 | ||
4893 | if test "$wxUSE_RADIOBTN" = yes; then | |
4894 | echo "$ac_t""yes" 1>&6 | |
4895 | else | |
4896 | echo "$ac_t""no" 1>&6 | |
4897 | fi | |
4898 | ||
4899 | ||
4900 | echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6 | |
95c8801c | 4901 | echo "configure:4902: checking "for --enable-sash"" >&5 |
10f2d63a VZ |
4902 | no_cache=0 |
4903 | # Check whether --enable-sash or --disable-sash was given. | |
4904 | if test "${enable_sash+set}" = set; then | |
4905 | enableval="$enable_sash" | |
4906 | ||
4907 | if test "$enableval" = yes; then | |
4908 | ac_cv_use_sash='wxUSE_SASH=yes' | |
4909 | else | |
4910 | ac_cv_use_sash='wxUSE_SASH=no' | |
4911 | fi | |
4912 | ||
4913 | else | |
4914 | ||
4915 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
4916 | if test "x$LINE" != x ; then | |
4917 | eval "DEFAULT_$LINE" | |
4918 | else | |
4919 | no_cache=1 | |
4920 | fi | |
4921 | ||
4922 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
4923 | ||
4924 | fi | |
4925 | ||
4926 | ||
4927 | eval "$ac_cv_use_sash" | |
4928 | if test "$no_cache" != 1; then | |
4929 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
4930 | fi | |
4931 | ||
4932 | if test "$wxUSE_SASH" = yes; then | |
4933 | echo "$ac_t""yes" 1>&6 | |
4934 | else | |
4935 | echo "$ac_t""no" 1>&6 | |
4936 | fi | |
4937 | ||
4938 | ||
4939 | echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6 | |
95c8801c | 4940 | echo "configure:4941: checking "for --enable-scrollbar"" >&5 |
10f2d63a VZ |
4941 | no_cache=0 |
4942 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
4943 | if test "${enable_scrollbar+set}" = set; then | |
4944 | enableval="$enable_scrollbar" | |
4945 | ||
4946 | if test "$enableval" = yes; then | |
4947 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
4948 | else | |
4949 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
4950 | fi | |
4951 | ||
4952 | else | |
4953 | ||
4954 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
4955 | if test "x$LINE" != x ; then | |
4956 | eval "DEFAULT_$LINE" | |
4957 | else | |
4958 | no_cache=1 | |
4959 | fi | |
4960 | ||
4961 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
4962 | ||
4963 | fi | |
4964 | ||
4965 | ||
4966 | eval "$ac_cv_use_scrollbar" | |
4967 | if test "$no_cache" != 1; then | |
4968 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
4969 | fi | |
4970 | ||
4971 | if test "$wxUSE_SCROLLBAR" = yes; then | |
4972 | echo "$ac_t""yes" 1>&6 | |
4973 | else | |
4974 | echo "$ac_t""no" 1>&6 | |
4975 | fi | |
4976 | ||
4977 | ||
4978 | echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6 | |
95c8801c | 4979 | echo "configure:4980: checking "for --enable-slider"" >&5 |
10f2d63a VZ |
4980 | no_cache=0 |
4981 | # Check whether --enable-slider or --disable-slider was given. | |
4982 | if test "${enable_slider+set}" = set; then | |
4983 | enableval="$enable_slider" | |
4984 | ||
4985 | if test "$enableval" = yes; then | |
4986 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
4987 | else | |
4988 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
4989 | fi | |
4990 | ||
4991 | else | |
4992 | ||
4993 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
4994 | if test "x$LINE" != x ; then | |
4995 | eval "DEFAULT_$LINE" | |
4996 | else | |
4997 | no_cache=1 | |
4998 | fi | |
4999 | ||
5000 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
5001 | ||
5002 | fi | |
5003 | ||
5004 | ||
5005 | eval "$ac_cv_use_slider" | |
5006 | if test "$no_cache" != 1; then | |
5007 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
5008 | fi | |
5009 | ||
5010 | if test "$wxUSE_SLIDER" = yes; then | |
5011 | echo "$ac_t""yes" 1>&6 | |
5012 | else | |
5013 | echo "$ac_t""no" 1>&6 | |
5014 | fi | |
5015 | ||
5016 | ||
5017 | echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6 | |
95c8801c | 5018 | echo "configure:5019: checking "for --enable-spinbtn"" >&5 |
10f2d63a VZ |
5019 | no_cache=0 |
5020 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
5021 | if test "${enable_spinbtn+set}" = set; then | |
5022 | enableval="$enable_spinbtn" | |
5023 | ||
5024 | if test "$enableval" = yes; then | |
5025 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
5026 | else | |
5027 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
5028 | fi | |
5029 | ||
5030 | else | |
5031 | ||
5032 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
5033 | if test "x$LINE" != x ; then | |
5034 | eval "DEFAULT_$LINE" | |
5035 | else | |
5036 | no_cache=1 | |
5037 | fi | |
5038 | ||
5039 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
5040 | ||
5041 | fi | |
5042 | ||
5043 | ||
5044 | eval "$ac_cv_use_spinbtn" | |
5045 | if test "$no_cache" != 1; then | |
5046 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
5047 | fi | |
5048 | ||
5049 | if test "$wxUSE_SPINBTN" = yes; then | |
5050 | echo "$ac_t""yes" 1>&6 | |
5051 | else | |
5052 | echo "$ac_t""no" 1>&6 | |
5053 | fi | |
5054 | ||
5055 | ||
56cfaa52 | 5056 | echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6 |
95c8801c | 5057 | echo "configure:5058: checking "for --enable-spinctrl"" >&5 |
56cfaa52 RR |
5058 | no_cache=0 |
5059 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
5060 | if test "${enable_spinctrl+set}" = set; then | |
5061 | enableval="$enable_spinctrl" | |
5062 | ||
5063 | if test "$enableval" = yes; then | |
5064 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
5065 | else | |
5066 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
5067 | fi | |
5068 | ||
5069 | else | |
5070 | ||
5071 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
5072 | if test "x$LINE" != x ; then | |
5073 | eval "DEFAULT_$LINE" | |
5074 | else | |
5075 | no_cache=1 | |
5076 | fi | |
5077 | ||
5078 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
5079 | ||
5080 | fi | |
5081 | ||
5082 | ||
5083 | eval "$ac_cv_use_spinctrl" | |
5084 | if test "$no_cache" != 1; then | |
5085 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
5086 | fi | |
5087 | ||
5088 | if test "$wxUSE_SPINCTRL" = yes; then | |
5089 | echo "$ac_t""yes" 1>&6 | |
5090 | else | |
5091 | echo "$ac_t""no" 1>&6 | |
5092 | fi | |
5093 | ||
5094 | ||
10f2d63a | 5095 | echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6 |
95c8801c | 5096 | echo "configure:5097: checking "for --enable-splitter"" >&5 |
10f2d63a VZ |
5097 | no_cache=0 |
5098 | # Check whether --enable-splitter or --disable-splitter was given. | |
5099 | if test "${enable_splitter+set}" = set; then | |
5100 | enableval="$enable_splitter" | |
5101 | ||
5102 | if test "$enableval" = yes; then | |
5103 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
5104 | else | |
5105 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
5106 | fi | |
5107 | ||
5108 | else | |
5109 | ||
5110 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
5111 | if test "x$LINE" != x ; then | |
5112 | eval "DEFAULT_$LINE" | |
5113 | else | |
5114 | no_cache=1 | |
5115 | fi | |
5116 | ||
5117 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
5118 | ||
5119 | fi | |
5120 | ||
5121 | ||
5122 | eval "$ac_cv_use_splitter" | |
5123 | if test "$no_cache" != 1; then | |
5124 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
5125 | fi | |
5126 | ||
5127 | if test "$wxUSE_SPLITTER" = yes; then | |
5128 | echo "$ac_t""yes" 1>&6 | |
5129 | else | |
5130 | echo "$ac_t""no" 1>&6 | |
5131 | fi | |
5132 | ||
5133 | ||
5134 | echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6 | |
95c8801c | 5135 | echo "configure:5136: checking "for --enable-statbmp"" >&5 |
10f2d63a VZ |
5136 | no_cache=0 |
5137 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
5138 | if test "${enable_statbmp+set}" = set; then | |
5139 | enableval="$enable_statbmp" | |
5140 | ||
5141 | if test "$enableval" = yes; then | |
5142 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
5143 | else | |
5144 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
5145 | fi | |
5146 | ||
5147 | else | |
5148 | ||
5149 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
5150 | if test "x$LINE" != x ; then | |
5151 | eval "DEFAULT_$LINE" | |
5152 | else | |
5153 | no_cache=1 | |
5154 | fi | |
5155 | ||
5156 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
5157 | ||
5158 | fi | |
5159 | ||
5160 | ||
5161 | eval "$ac_cv_use_statbmp" | |
5162 | if test "$no_cache" != 1; then | |
5163 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
5164 | fi | |
5165 | ||
5166 | if test "$wxUSE_STATBMP" = yes; then | |
5167 | echo "$ac_t""yes" 1>&6 | |
5168 | else | |
5169 | echo "$ac_t""no" 1>&6 | |
5170 | fi | |
5171 | ||
5172 | ||
5173 | echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6 | |
95c8801c | 5174 | echo "configure:5175: checking "for --enable-statbox"" >&5 |
10f2d63a VZ |
5175 | no_cache=0 |
5176 | # Check whether --enable-statbox or --disable-statbox was given. | |
5177 | if test "${enable_statbox+set}" = set; then | |
5178 | enableval="$enable_statbox" | |
5179 | ||
5180 | if test "$enableval" = yes; then | |
5181 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
5182 | else | |
5183 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
5184 | fi | |
5185 | ||
5186 | else | |
5187 | ||
5188 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
5189 | if test "x$LINE" != x ; then | |
5190 | eval "DEFAULT_$LINE" | |
5191 | else | |
5192 | no_cache=1 | |
5193 | fi | |
5194 | ||
5195 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
5196 | ||
5197 | fi | |
5198 | ||
5199 | ||
5200 | eval "$ac_cv_use_statbox" | |
5201 | if test "$no_cache" != 1; then | |
5202 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
5203 | fi | |
5204 | ||
5205 | if test "$wxUSE_STATBOX" = yes; then | |
5206 | echo "$ac_t""yes" 1>&6 | |
5207 | else | |
5208 | echo "$ac_t""no" 1>&6 | |
5209 | fi | |
5210 | ||
5211 | ||
5212 | echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6 | |
95c8801c | 5213 | echo "configure:5214: checking "for --enable-statline"" >&5 |
10f2d63a VZ |
5214 | no_cache=0 |
5215 | # Check whether --enable-statline or --disable-statline was given. | |
5216 | if test "${enable_statline+set}" = set; then | |
5217 | enableval="$enable_statline" | |
5218 | ||
5219 | if test "$enableval" = yes; then | |
5220 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
5221 | else | |
5222 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
5223 | fi | |
5224 | ||
5225 | else | |
5226 | ||
5227 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
5228 | if test "x$LINE" != x ; then | |
5229 | eval "DEFAULT_$LINE" | |
5230 | else | |
5231 | no_cache=1 | |
5232 | fi | |
5233 | ||
5234 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
5235 | ||
5236 | fi | |
5237 | ||
5238 | ||
5239 | eval "$ac_cv_use_statline" | |
5240 | if test "$no_cache" != 1; then | |
5241 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
5242 | fi | |
5243 | ||
5244 | if test "$wxUSE_STATLINE" = yes; then | |
5245 | echo "$ac_t""yes" 1>&6 | |
5246 | else | |
5247 | echo "$ac_t""no" 1>&6 | |
5248 | fi | |
5249 | ||
5250 | ||
5251 | echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6 | |
95c8801c | 5252 | echo "configure:5253: checking "for --enable-statusbar"" >&5 |
10f2d63a VZ |
5253 | no_cache=0 |
5254 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
5255 | if test "${enable_statusbar+set}" = set; then | |
5256 | enableval="$enable_statusbar" | |
5257 | ||
5258 | if test "$enableval" = yes; then | |
5259 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
5260 | else | |
5261 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
5262 | fi | |
5263 | ||
5264 | else | |
5265 | ||
5266 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
5267 | if test "x$LINE" != x ; then | |
5268 | eval "DEFAULT_$LINE" | |
5269 | else | |
5270 | no_cache=1 | |
5271 | fi | |
5272 | ||
5273 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
5274 | ||
5275 | fi | |
5276 | ||
5277 | ||
5278 | eval "$ac_cv_use_statusbar" | |
5279 | if test "$no_cache" != 1; then | |
5280 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
5281 | fi | |
5282 | ||
5283 | if test "$wxUSE_STATUSBAR" = yes; then | |
5284 | echo "$ac_t""yes" 1>&6 | |
5285 | else | |
5286 | echo "$ac_t""no" 1>&6 | |
5287 | fi | |
5288 | ||
5289 | ||
5290 | echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6 | |
95c8801c | 5291 | echo "configure:5292: checking "for --enable-tabdialog"" >&5 |
10f2d63a VZ |
5292 | no_cache=0 |
5293 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
5294 | if test "${enable_tabdialog+set}" = set; then | |
5295 | enableval="$enable_tabdialog" | |
5296 | ||
5297 | if test "$enableval" = yes; then | |
5298 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
5299 | else | |
5300 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
5301 | fi | |
5302 | ||
5303 | else | |
5304 | ||
5305 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
5306 | if test "x$LINE" != x ; then | |
5307 | eval "DEFAULT_$LINE" | |
5308 | else | |
5309 | no_cache=1 | |
5310 | fi | |
5311 | ||
5312 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
5313 | ||
5314 | fi | |
5315 | ||
5316 | ||
5317 | eval "$ac_cv_use_tabdialog" | |
5318 | if test "$no_cache" != 1; then | |
5319 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
5320 | fi | |
5321 | ||
5322 | if test "$wxUSE_TABDIALOG" = yes; then | |
5323 | echo "$ac_t""yes" 1>&6 | |
5324 | else | |
5325 | echo "$ac_t""no" 1>&6 | |
5326 | fi | |
5327 | ||
5328 | ||
1db8dc4a | 5329 | echo $ac_n "checking "for --enable-togglebtn"""... $ac_c" 1>&6 |
95c8801c | 5330 | echo "configure:5331: checking "for --enable-togglebtn"" >&5 |
1db8dc4a VZ |
5331 | no_cache=0 |
5332 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
5333 | if test "${enable_togglebtn+set}" = set; then | |
5334 | enableval="$enable_togglebtn" | |
5335 | ||
5336 | if test "$enableval" = yes; then | |
5337 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
5338 | else | |
5339 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
5340 | fi | |
5341 | ||
5342 | else | |
5343 | ||
5344 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` | |
5345 | if test "x$LINE" != x ; then | |
5346 | eval "DEFAULT_$LINE" | |
5347 | else | |
5348 | no_cache=1 | |
5349 | fi | |
5350 | ||
5351 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
5352 | ||
5353 | fi | |
5354 | ||
5355 | ||
5356 | eval "$ac_cv_use_togglebtn" | |
5357 | if test "$no_cache" != 1; then | |
5358 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
5359 | fi | |
5360 | ||
5361 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
5362 | echo "$ac_t""yes" 1>&6 | |
5363 | else | |
5364 | echo "$ac_t""no" 1>&6 | |
5365 | fi | |
5366 | ||
5367 | ||
10f2d63a | 5368 | echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6 |
95c8801c | 5369 | echo "configure:5370: checking "for --enable-toolbar"" >&5 |
10f2d63a VZ |
5370 | no_cache=0 |
5371 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
5372 | if test "${enable_toolbar+set}" = set; then | |
5373 | enableval="$enable_toolbar" | |
5374 | ||
5375 | if test "$enableval" = yes; then | |
5376 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
5377 | else | |
5378 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
5379 | fi | |
5380 | ||
5381 | else | |
5382 | ||
5383 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
5384 | if test "x$LINE" != x ; then | |
5385 | eval "DEFAULT_$LINE" | |
5386 | else | |
5387 | no_cache=1 | |
5388 | fi | |
5389 | ||
5390 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
5391 | ||
5392 | fi | |
5393 | ||
5394 | ||
5395 | eval "$ac_cv_use_toolbar" | |
5396 | if test "$no_cache" != 1; then | |
5397 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
5398 | fi | |
5399 | ||
5400 | if test "$wxUSE_TOOLBAR" = yes; then | |
5401 | echo "$ac_t""yes" 1>&6 | |
5402 | else | |
5403 | echo "$ac_t""no" 1>&6 | |
5404 | fi | |
5405 | ||
5406 | ||
360d6699 | 5407 | echo $ac_n "checking "for --enable-tbarnative"""... $ac_c" 1>&6 |
95c8801c | 5408 | echo "configure:5409: checking "for --enable-tbarnative"" >&5 |
360d6699 VZ |
5409 | no_cache=0 |
5410 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
5411 | if test "${enable_tbarnative+set}" = set; then | |
5412 | enableval="$enable_tbarnative" | |
5413 | ||
5414 | if test "$enableval" = yes; then | |
5415 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
5416 | else | |
5417 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
5418 | fi | |
5419 | ||
5420 | else | |
5421 | ||
5422 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
5423 | if test "x$LINE" != x ; then | |
5424 | eval "DEFAULT_$LINE" | |
5425 | else | |
5426 | no_cache=1 | |
5427 | fi | |
5428 | ||
5429 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
5430 | ||
5431 | fi | |
5432 | ||
5433 | ||
5434 | eval "$ac_cv_use_tbarnative" | |
5435 | if test "$no_cache" != 1; then | |
5436 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
5437 | fi | |
5438 | ||
5439 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
5440 | echo "$ac_t""yes" 1>&6 | |
5441 | else | |
5442 | echo "$ac_t""no" 1>&6 | |
5443 | fi | |
5444 | ||
5445 | ||
5446 | echo $ac_n "checking "for --enable-tbarsmpl"""... $ac_c" 1>&6 | |
95c8801c | 5447 | echo "configure:5448: checking "for --enable-tbarsmpl"" >&5 |
360d6699 VZ |
5448 | no_cache=0 |
5449 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
5450 | if test "${enable_tbarsmpl+set}" = set; then | |
5451 | enableval="$enable_tbarsmpl" | |
5452 | ||
5453 | if test "$enableval" = yes; then | |
5454 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
5455 | else | |
5456 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
5457 | fi | |
5458 | ||
5459 | else | |
5460 | ||
5461 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
5462 | if test "x$LINE" != x ; then | |
5463 | eval "DEFAULT_$LINE" | |
5464 | else | |
5465 | no_cache=1 | |
5466 | fi | |
5467 | ||
5468 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
5469 | ||
5470 | fi | |
5471 | ||
5472 | ||
5473 | eval "$ac_cv_use_tbarsmpl" | |
5474 | if test "$no_cache" != 1; then | |
5475 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
5476 | fi | |
5477 | ||
5478 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
5479 | echo "$ac_t""yes" 1>&6 | |
5480 | else | |
5481 | echo "$ac_t""no" 1>&6 | |
5482 | fi | |
5483 | ||
5484 | ||
10f2d63a | 5485 | echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6 |
95c8801c | 5486 | echo "configure:5487: checking "for --enable-treectrl"" >&5 |
10f2d63a VZ |
5487 | no_cache=0 |
5488 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
5489 | if test "${enable_treectrl+set}" = set; then | |
5490 | enableval="$enable_treectrl" | |
5491 | ||
5492 | if test "$enableval" = yes; then | |
5493 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
5494 | else | |
5495 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
5496 | fi | |
5497 | ||
5498 | else | |
5499 | ||
5500 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
5501 | if test "x$LINE" != x ; then | |
5502 | eval "DEFAULT_$LINE" | |
5503 | else | |
5504 | no_cache=1 | |
5505 | fi | |
5506 | ||
5507 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
5508 | ||
5509 | fi | |
5510 | ||
5511 | ||
5512 | eval "$ac_cv_use_treectrl" | |
5513 | if test "$no_cache" != 1; then | |
5514 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
5515 | fi | |
5516 | ||
5517 | if test "$wxUSE_TREECTRL" = yes; then | |
5518 | echo "$ac_t""yes" 1>&6 | |
5519 | else | |
5520 | echo "$ac_t""no" 1>&6 | |
5521 | fi | |
5522 | ||
5523 | ||
5524 | ||
5525 | ||
5526 | echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6 | |
95c8801c | 5527 | echo "configure:5528: checking "for --enable-commondlg"" >&5 |
10f2d63a VZ |
5528 | no_cache=0 |
5529 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
5530 | if test "${enable_commondlg+set}" = set; then | |
5531 | enableval="$enable_commondlg" | |
5532 | ||
5533 | if test "$enableval" = yes; then | |
5534 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
5535 | else | |
5536 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
5537 | fi | |
5538 | ||
5539 | else | |
5540 | ||
5541 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
5542 | if test "x$LINE" != x ; then | |
5543 | eval "DEFAULT_$LINE" | |
5544 | else | |
5545 | no_cache=1 | |
5546 | fi | |
5547 | ||
5548 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
5549 | ||
5550 | fi | |
5551 | ||
5552 | ||
5553 | eval "$ac_cv_use_commondlg" | |
5554 | if test "$no_cache" != 1; then | |
5555 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
5556 | fi | |
5557 | ||
5558 | if test "$wxUSE_COMMONDLGS" = yes; then | |
5559 | echo "$ac_t""yes" 1>&6 | |
5560 | else | |
5561 | echo "$ac_t""no" 1>&6 | |
5562 | fi | |
5563 | ||
5564 | ||
5565 | echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6 | |
95c8801c | 5566 | echo "configure:5567: checking "for --enable-dirdlg"" >&5 |
10f2d63a VZ |
5567 | no_cache=0 |
5568 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
5569 | if test "${enable_dirdlg+set}" = set; then | |
5570 | enableval="$enable_dirdlg" | |
5571 | ||
5572 | if test "$enableval" = yes; then | |
5573 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
5574 | else | |
5575 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
5576 | fi | |
5577 | ||
5578 | else | |
5579 | ||
5580 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
5581 | if test "x$LINE" != x ; then | |
5582 | eval "DEFAULT_$LINE" | |
5583 | else | |
5584 | no_cache=1 | |
5585 | fi | |
5586 | ||
5587 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
5588 | ||
5589 | fi | |
5590 | ||
5591 | ||
5592 | eval "$ac_cv_use_dirdlg" | |
5593 | if test "$no_cache" != 1; then | |
5594 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
5595 | fi | |
5596 | ||
5597 | if test "$wxUSE_DIRDLG" = yes; then | |
5598 | echo "$ac_t""yes" 1>&6 | |
5599 | else | |
5600 | echo "$ac_t""no" 1>&6 | |
5601 | fi | |
5602 | ||
5603 | ||
5604 | echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6 | |
95c8801c | 5605 | echo "configure:5606: checking "for --enable-textdlg"" >&5 |
10f2d63a VZ |
5606 | no_cache=0 |
5607 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
5608 | if test "${enable_textdlg+set}" = set; then | |
5609 | enableval="$enable_textdlg" | |
5610 | ||
5611 | if test "$enableval" = yes; then | |
5612 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
5613 | else | |
5614 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
5615 | fi | |
5616 | ||
5617 | else | |
5618 | ||
5619 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
5620 | if test "x$LINE" != x ; then | |
5621 | eval "DEFAULT_$LINE" | |
5622 | else | |
5623 | no_cache=1 | |
5624 | fi | |
5625 | ||
5626 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
5627 | ||
5628 | fi | |
5629 | ||
5630 | ||
5631 | eval "$ac_cv_use_textdlg" | |
5632 | if test "$no_cache" != 1; then | |
5633 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
5634 | fi | |
5635 | ||
5636 | if test "$wxUSE_TEXTDLG" = yes; then | |
5637 | echo "$ac_t""yes" 1>&6 | |
5638 | else | |
5639 | echo "$ac_t""no" 1>&6 | |
5640 | fi | |
5641 | ||
5642 | ||
5643 | echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6 | |
95c8801c | 5644 | echo "configure:5645: checking "for --enable-tipdlg"" >&5 |
10f2d63a VZ |
5645 | no_cache=0 |
5646 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
5647 | if test "${enable_tipdlg+set}" = set; then | |
5648 | enableval="$enable_tipdlg" | |
5649 | ||
5650 | if test "$enableval" = yes; then | |
5651 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
5652 | else | |
5653 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
5654 | fi | |
5655 | ||
5656 | else | |
5657 | ||
5658 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
5659 | if test "x$LINE" != x ; then | |
5660 | eval "DEFAULT_$LINE" | |
5661 | else | |
5662 | no_cache=1 | |
5663 | fi | |
5664 | ||
5665 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
5666 | ||
5667 | fi | |
5668 | ||
5669 | ||
5670 | eval "$ac_cv_use_tipdlg" | |
5671 | if test "$no_cache" != 1; then | |
5672 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
5673 | fi | |
5674 | ||
5675 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
5676 | echo "$ac_t""yes" 1>&6 | |
5677 | else | |
5678 | echo "$ac_t""no" 1>&6 | |
5679 | fi | |
5680 | ||
5681 | ||
5682 | echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6 | |
95c8801c | 5683 | echo "configure:5684: checking "for --enable-progressdlg"" >&5 |
10f2d63a VZ |
5684 | no_cache=0 |
5685 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
5686 | if test "${enable_progressdlg+set}" = set; then | |
5687 | enableval="$enable_progressdlg" | |
5688 | ||
5689 | if test "$enableval" = yes; then | |
5690 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
5691 | else | |
5692 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
5693 | fi | |
5694 | ||
5695 | else | |
5696 | ||
5697 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
5698 | if test "x$LINE" != x ; then | |
5699 | eval "DEFAULT_$LINE" | |
5700 | else | |
5701 | no_cache=1 | |
5702 | fi | |
5703 | ||
5704 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
5705 | ||
5706 | fi | |
5707 | ||
5708 | ||
5709 | eval "$ac_cv_use_progressdlg" | |
5710 | if test "$no_cache" != 1; then | |
5711 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
5712 | fi | |
5713 | ||
5714 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
5715 | echo "$ac_t""yes" 1>&6 | |
5716 | else | |
5717 | echo "$ac_t""no" 1>&6 | |
5718 | fi | |
5719 | ||
5720 | ||
5721 | echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6 | |
95c8801c | 5722 | echo "configure:5723: checking "for --enable-miniframe"" >&5 |
10f2d63a VZ |
5723 | no_cache=0 |
5724 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
5725 | if test "${enable_miniframe+set}" = set; then | |
5726 | enableval="$enable_miniframe" | |
5727 | ||
5728 | if test "$enableval" = yes; then | |
5729 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
5730 | else | |
5731 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
5732 | fi | |
5733 | ||
5734 | else | |
5735 | ||
5736 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
5737 | if test "x$LINE" != x ; then | |
5738 | eval "DEFAULT_$LINE" | |
5739 | else | |
5740 | no_cache=1 | |
5741 | fi | |
5742 | ||
5743 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
5744 | ||
5745 | fi | |
5746 | ||
5747 | ||
5748 | eval "$ac_cv_use_miniframe" | |
5749 | if test "$no_cache" != 1; then | |
5750 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
5751 | fi | |
5752 | ||
5753 | if test "$wxUSE_MINIFRAME" = yes; then | |
5754 | echo "$ac_t""yes" 1>&6 | |
5755 | else | |
5756 | echo "$ac_t""no" 1>&6 | |
5757 | fi | |
5758 | ||
5759 | ||
5760 | echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6 | |
95c8801c | 5761 | echo "configure:5762: checking "for --enable-html"" >&5 |
10f2d63a VZ |
5762 | no_cache=0 |
5763 | # Check whether --enable-html or --disable-html was given. | |
5764 | if test "${enable_html+set}" = set; then | |
5765 | enableval="$enable_html" | |
5766 | ||
5767 | if test "$enableval" = yes; then | |
5768 | ac_cv_use_html='wxUSE_HTML=yes' | |
5769 | else | |
5770 | ac_cv_use_html='wxUSE_HTML=no' | |
5771 | fi | |
5772 | ||
5773 | else | |
5774 | ||
5775 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
5776 | if test "x$LINE" != x ; then | |
5777 | eval "DEFAULT_$LINE" | |
5778 | else | |
5779 | no_cache=1 | |
5780 | fi | |
5781 | ||
5782 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
5783 | ||
5784 | fi | |
5785 | ||
5786 | ||
5787 | eval "$ac_cv_use_html" | |
5788 | if test "$no_cache" != 1; then | |
5789 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
5790 | fi | |
5791 | ||
5792 | if test "$wxUSE_HTML" = yes; then | |
5793 | echo "$ac_t""yes" 1>&6 | |
5794 | else | |
5795 | echo "$ac_t""no" 1>&6 | |
5796 | fi | |
5797 | ||
5798 | ||
5799 | echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6 | |
95c8801c | 5800 | echo "configure:5801: checking "for --enable-tooltips"" >&5 |
10f2d63a VZ |
5801 | no_cache=0 |
5802 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
5803 | if test "${enable_tooltips+set}" = set; then | |
5804 | enableval="$enable_tooltips" | |
5805 | ||
5806 | if test "$enableval" = yes; then | |
5807 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
5808 | else | |
5809 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
5810 | fi | |
5811 | ||
5812 | else | |
5813 | ||
5814 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
5815 | if test "x$LINE" != x ; then | |
5816 | eval "DEFAULT_$LINE" | |
5817 | else | |
5818 | no_cache=1 | |
5819 | fi | |
5820 | ||
5821 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
5822 | ||
5823 | fi | |
5824 | ||
5825 | ||
5826 | eval "$ac_cv_use_tooltips" | |
5827 | if test "$no_cache" != 1; then | |
5828 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
5829 | fi | |
5830 | ||
5831 | if test "$wxUSE_TOOLTIPS" = yes; then | |
5832 | echo "$ac_t""yes" 1>&6 | |
5833 | else | |
5834 | echo "$ac_t""no" 1>&6 | |
5835 | fi | |
5836 | ||
5837 | ||
5838 | echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6 | |
95c8801c | 5839 | echo "configure:5840: checking "for --enable-splines"" >&5 |
10f2d63a VZ |
5840 | no_cache=0 |
5841 | # Check whether --enable-splines or --disable-splines was given. | |
5842 | if test "${enable_splines+set}" = set; then | |
5843 | enableval="$enable_splines" | |
5844 | ||
5845 | if test "$enableval" = yes; then | |
5846 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
5847 | else | |
5848 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
5849 | fi | |
5850 | ||
5851 | else | |
5852 | ||
5853 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
5854 | if test "x$LINE" != x ; then | |
5855 | eval "DEFAULT_$LINE" | |
5856 | else | |
5857 | no_cache=1 | |
5858 | fi | |
5859 | ||
5860 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
5861 | ||
5862 | fi | |
5863 | ||
5864 | ||
5865 | eval "$ac_cv_use_splines" | |
5866 | if test "$no_cache" != 1; then | |
5867 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
5868 | fi | |
5869 | ||
5870 | if test "$wxUSE_SPLINES" = yes; then | |
5871 | echo "$ac_t""yes" 1>&6 | |
5872 | else | |
5873 | echo "$ac_t""no" 1>&6 | |
5874 | fi | |
5875 | ||
5876 | ||
5877 | echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6 | |
95c8801c | 5878 | echo "configure:5879: checking "for --enable-validators"" >&5 |
10f2d63a VZ |
5879 | no_cache=0 |
5880 | # Check whether --enable-validators or --disable-validators was given. | |
5881 | if test "${enable_validators+set}" = set; then | |
5882 | enableval="$enable_validators" | |
5883 | ||
5884 | if test "$enableval" = yes; then | |
5885 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
5886 | else | |
5887 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
5888 | fi | |
5889 | ||
5890 | else | |
5891 | ||
5892 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
5893 | if test "x$LINE" != x ; then | |
5894 | eval "DEFAULT_$LINE" | |
5895 | else | |
5896 | no_cache=1 | |
5897 | fi | |
5898 | ||
5899 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
5900 | ||
5901 | fi | |
5902 | ||
5903 | ||
5904 | eval "$ac_cv_use_validators" | |
5905 | if test "$no_cache" != 1; then | |
5906 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
5907 | fi | |
5908 | ||
5909 | if test "$wxUSE_VALIDATORS" = yes; then | |
5910 | echo "$ac_t""yes" 1>&6 | |
5911 | else | |
5912 | echo "$ac_t""no" 1>&6 | |
5913 | fi | |
5914 | ||
5915 | ||
5916 | echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6 | |
95c8801c | 5917 | echo "configure:5918: checking "for --enable-busyinfo"" >&5 |
10f2d63a VZ |
5918 | no_cache=0 |
5919 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
5920 | if test "${enable_busyinfo+set}" = set; then | |
5921 | enableval="$enable_busyinfo" | |
5922 | ||
5923 | if test "$enableval" = yes; then | |
5924 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
5925 | else | |
5926 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
5927 | fi | |
5928 | ||
5929 | else | |
5930 | ||
5931 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
5932 | if test "x$LINE" != x ; then | |
5933 | eval "DEFAULT_$LINE" | |
5934 | else | |
5935 | no_cache=1 | |
5936 | fi | |
5937 | ||
5938 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
5939 | ||
5940 | fi | |
5941 | ||
5942 | ||
5943 | eval "$ac_cv_use_busyinfo" | |
5944 | if test "$no_cache" != 1; then | |
5945 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
5946 | fi | |
5947 | ||
5948 | if test "$wxUSE_BUSYINFO" = yes; then | |
5949 | echo "$ac_t""yes" 1>&6 | |
5950 | else | |
5951 | echo "$ac_t""no" 1>&6 | |
5952 | fi | |
5953 | ||
5954 | ||
f6bcfd97 | 5955 | echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6 |
95c8801c | 5956 | echo "configure:5957: checking "for --enable-joystick"" >&5 |
f6bcfd97 BP |
5957 | no_cache=0 |
5958 | # Check whether --enable-joystick or --disable-joystick was given. | |
5959 | if test "${enable_joystick+set}" = set; then | |
5960 | enableval="$enable_joystick" | |
5961 | ||
5962 | if test "$enableval" = yes; then | |
5963 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
5964 | else | |
5965 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
5966 | fi | |
5967 | ||
5968 | else | |
5969 | ||
5970 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
5971 | if test "x$LINE" != x ; then | |
5972 | eval "DEFAULT_$LINE" | |
5973 | else | |
5974 | no_cache=1 | |
5975 | fi | |
5976 | ||
5977 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
5978 | ||
5979 | fi | |
5980 | ||
5981 | ||
5982 | eval "$ac_cv_use_joystick" | |
5983 | if test "$no_cache" != 1; then | |
5984 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
5985 | fi | |
5986 | ||
5987 | if test "$wxUSE_JOYSTICK" = yes; then | |
5988 | echo "$ac_t""yes" 1>&6 | |
5989 | else | |
5990 | echo "$ac_t""no" 1>&6 | |
5991 | fi | |
5992 | ||
5993 | ||
10f2d63a VZ |
5994 | |
5995 | ||
0046ff7c | 5996 | echo $ac_n "checking "for --enable-image"""... $ac_c" 1>&6 |
95c8801c | 5997 | echo "configure:5998: checking "for --enable-image"" >&5 |
0046ff7c VS |
5998 | no_cache=0 |
5999 | # Check whether --enable-image or --disable-image was given. | |
6000 | if test "${enable_image+set}" = set; then | |
6001 | enableval="$enable_image" | |
6002 | ||
6003 | if test "$enableval" = yes; then | |
6004 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
6005 | else | |
6006 | ac_cv_use_image='wxUSE_IMAGE=no' | |
6007 | fi | |
6008 | ||
6009 | else | |
6010 | ||
6011 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` | |
6012 | if test "x$LINE" != x ; then | |
6013 | eval "DEFAULT_$LINE" | |
6014 | else | |
6015 | no_cache=1 | |
6016 | fi | |
6017 | ||
6018 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
6019 | ||
6020 | fi | |
6021 | ||
6022 | ||
6023 | eval "$ac_cv_use_image" | |
6024 | if test "$no_cache" != 1; then | |
6025 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
6026 | fi | |
6027 | ||
6028 | if test "$wxUSE_IMAGE" = yes; then | |
6029 | echo "$ac_t""yes" 1>&6 | |
6030 | else | |
6031 | echo "$ac_t""no" 1>&6 | |
6032 | fi | |
6033 | ||
6034 | ||
10f2d63a | 6035 | echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6 |
95c8801c | 6036 | echo "configure:6037: checking "for --enable-gif"" >&5 |
10f2d63a VZ |
6037 | no_cache=0 |
6038 | # Check whether --enable-gif or --disable-gif was given. | |
6039 | if test "${enable_gif+set}" = set; then | |
6040 | enableval="$enable_gif" | |
6041 | ||
6042 | if test "$enableval" = yes; then | |
6043 | ac_cv_use_gif='wxUSE_GIF=yes' | |
6044 | else | |
6045 | ac_cv_use_gif='wxUSE_GIF=no' | |
6046 | fi | |
6047 | ||
6048 | else | |
6049 | ||
6050 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
6051 | if test "x$LINE" != x ; then | |
6052 | eval "DEFAULT_$LINE" | |
6053 | else | |
6054 | no_cache=1 | |
6055 | fi | |
6056 | ||
6057 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
6058 | ||
6059 | fi | |
6060 | ||
6061 | ||
6062 | eval "$ac_cv_use_gif" | |
6063 | if test "$no_cache" != 1; then | |
6064 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
6065 | fi | |
6066 | ||
6067 | if test "$wxUSE_GIF" = yes; then | |
6068 | echo "$ac_t""yes" 1>&6 | |
6069 | else | |
6070 | echo "$ac_t""no" 1>&6 | |
6071 | fi | |
6072 | ||
6073 | ||
6074 | echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6 | |
95c8801c | 6075 | echo "configure:6076: checking "for --enable-pcx"" >&5 |
10f2d63a VZ |
6076 | no_cache=0 |
6077 | # Check whether --enable-pcx or --disable-pcx was given. | |
6078 | if test "${enable_pcx+set}" = set; then | |
6079 | enableval="$enable_pcx" | |
6080 | ||
6081 | if test "$enableval" = yes; then | |
6082 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
6083 | else | |
6084 | ac_cv_use_pcx='wxUSE_PCX=no' | |
6085 | fi | |
6086 | ||
6087 | else | |
6088 | ||
6089 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
6090 | if test "x$LINE" != x ; then | |
6091 | eval "DEFAULT_$LINE" | |
6092 | else | |
6093 | no_cache=1 | |
6094 | fi | |
6095 | ||
6096 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
6097 | ||
6098 | fi | |
6099 | ||
6100 | ||
6101 | eval "$ac_cv_use_pcx" | |
6102 | if test "$no_cache" != 1; then | |
6103 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
6104 | fi | |
6105 | ||
6106 | if test "$wxUSE_PCX" = yes; then | |
6107 | echo "$ac_t""yes" 1>&6 | |
6108 | else | |
6109 | echo "$ac_t""no" 1>&6 | |
6110 | fi | |
6111 | ||
6112 | ||
6113 | echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6 | |
95c8801c | 6114 | echo "configure:6115: checking "for --enable-pnm"" >&5 |
10f2d63a VZ |
6115 | no_cache=0 |
6116 | # Check whether --enable-pnm or --disable-pnm was given. | |
6117 | if test "${enable_pnm+set}" = set; then | |
6118 | enableval="$enable_pnm" | |
6119 | ||
6120 | if test "$enableval" = yes; then | |
6121 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
6122 | else | |
6123 | ac_cv_use_pnm='wxUSE_PNM=no' | |
6124 | fi | |
6125 | ||
6126 | else | |
6127 | ||
6128 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
6129 | if test "x$LINE" != x ; then | |
6130 | eval "DEFAULT_$LINE" | |
6131 | else | |
6132 | no_cache=1 | |
6133 | fi | |
6134 | ||
6135 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
6136 | ||
6137 | fi | |
6138 | ||
6139 | ||
6140 | eval "$ac_cv_use_pnm" | |
6141 | if test "$no_cache" != 1; then | |
6142 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
6143 | fi | |
6144 | ||
6145 | if test "$wxUSE_PNM" = yes; then | |
6146 | echo "$ac_t""yes" 1>&6 | |
6147 | else | |
6148 | echo "$ac_t""no" 1>&6 | |
6149 | fi | |
6150 | ||
6151 | ||
0046ff7c | 6152 | echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6 |
95c8801c | 6153 | echo "configure:6154: checking "for --enable-pnm"" >&5 |
0046ff7c VS |
6154 | no_cache=0 |
6155 | # Check whether --enable-pnm or --disable-pnm was given. | |
6156 | if test "${enable_pnm+set}" = set; then | |
6157 | enableval="$enable_pnm" | |
6158 | ||
6159 | if test "$enableval" = yes; then | |
6160 | ac_cv_use_pnm='wxUSE_XPM=yes' | |
6161 | else | |
6162 | ac_cv_use_pnm='wxUSE_XPM=no' | |
6163 | fi | |
6164 | ||
6165 | else | |
6166 | ||
6167 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` | |
6168 | if test "x$LINE" != x ; then | |
6169 | eval "DEFAULT_$LINE" | |
6170 | else | |
6171 | no_cache=1 | |
6172 | fi | |
6173 | ||
6174 | ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
6175 | ||
6176 | fi | |
6177 | ||
6178 | ||
6179 | eval "$ac_cv_use_pnm" | |
6180 | if test "$no_cache" != 1; then | |
6181 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
6182 | fi | |
6183 | ||
6184 | if test "$wxUSE_XPM" = yes; then | |
6185 | echo "$ac_t""yes" 1>&6 | |
6186 | else | |
6187 | echo "$ac_t""no" 1>&6 | |
6188 | fi | |
6189 | ||
6190 | ||
b12915c1 VZ |
6191 | fi |
6192 | ||
10f2d63a VZ |
6193 | |
6194 | echo "saving argument cache $wx_arg_cache_file" | |
6195 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
6196 | ||
6197 | ||
6198 | ||
6199 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
95c8801c | 6200 | echo "configure:6201: checking for toolkit" >&5 |
10f2d63a VZ |
6201 | |
6202 | if test "$wxUSE_GUI" = "yes"; then | |
6203 | ||
b12915c1 VZ |
6204 | if test "$USE_BEOS" = 1; then |
6205 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } | |
6206 | fi | |
6207 | ||
10f2d63a VZ |
6208 | if test "$TOOLKIT_GIVEN" = 1; then |
6209 | for toolkit in `echo $ALL_TOOLKITS`; do | |
6210 | var=wxUSE_$toolkit | |
6211 | eval "value=\$${var}" | |
6212 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
6213 | done | |
6214 | else | |
6215 | for toolkit in `echo $ALL_TOOLKITS`; do | |
6216 | if test "$has_toolkit_in_cache" != 1; then | |
6217 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
6218 | else | |
6219 | var=DEFAULT_wxUSE_$toolkit | |
6220 | fi | |
6221 | eval "wxUSE_$toolkit=\$${var}" | |
6222 | done | |
6223 | fi | |
6224 | ||
b4085ce6 | 6225 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}` |
cf27ef00 | 6226 | |
ec14dd32 VZ |
6227 | case "${host}" in |
6228 | *-pc-os2_emx ) | |
6229 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
6230 | # PATH_IFS is autodetected by OS/2's configure (usually ';') | |
6231 | LEX_STEM="lexyy" | |
6232 | ;; | |
6233 | *) | |
6234 | PATH_IFS=':' | |
6235 | LEX_STEM="lex.yy" | |
6236 | ;; | |
6237 | esac | |
10f2d63a VZ |
6238 | |
6239 | case "$NUM_TOOLKITS" in | |
6240 | 1) | |
6241 | ;; | |
6242 | 0) | |
6243 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } | |
6244 | ;; | |
6245 | *) | |
6246 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } | |
6247 | esac | |
6248 | ||
6249 | for toolkit in `echo $ALL_TOOLKITS`; do | |
6250 | var=wxUSE_$toolkit | |
6251 | eval "value=\$${var}" | |
6252 | if test "x$value" != x; then | |
6253 | cache_var=CACHE_$toolkit | |
6254 | eval "cache=\$${cache_var}" | |
6255 | if test "$cache" = 1; then | |
6256 | echo "$var=$value" >> ${wx_arg_cache_file} | |
6257 | fi | |
6258 | if test "$value" = 1; then | |
6259 | echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6 | |
6260 | fi | |
6261 | fi | |
6262 | done | |
6263 | ||
6264 | else | |
cf27ef00 | 6265 | PATH_IFS=':' |
10f2d63a VZ |
6266 | echo "$ac_t""base only" 1>&6 |
6267 | fi | |
6268 | ||
6269 | ||
6270 | cat > confcache <<\EOF | |
6271 | # This file is a shell script that caches the results of configure | |
6272 | # tests run on this system so they can be shared between configure | |
6273 | # scripts and configure runs. It is not useful on other systems. | |
6274 | # If it contains results you don't want to keep, you may remove or edit it. | |
6275 | # | |
6276 | # By default, configure uses ./config.cache as the cache file, | |
6277 | # creating it if it does not exist already. You can give configure | |
6278 | # the --cache-file=FILE option to use a different cache file; that is | |
6279 | # what configure does when it calls configure scripts in | |
6280 | # subdirectories, so they share the cache. | |
6281 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
6282 | # config.status only pays attention to the cache file if you give it the | |
6283 | # --recheck option to rerun configure. | |
6284 | # | |
6285 | EOF | |
6286 | # The following way of writing the cache mishandles newlines in values, | |
6287 | # but we know of no workaround that is simple, portable, and efficient. | |
6288 | # So, don't put newlines in cache variables' values. | |
6289 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
6290 | # and sets the high bit in the cache file unless we assign to the vars. | |
6291 | (set) 2>&1 | | |
6292 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
6293 | *ac_space=\ *) | |
6294 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
6295 | # turns \\\\ into \\, and sed turns \\ into \). | |
6296 | sed -n \ | |
6297 | -e "s/'/'\\\\''/g" \ | |
6298 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
6299 | ;; | |
6300 | *) | |
6301 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
6302 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
6303 | ;; | |
6304 | esac >> confcache | |
6305 | if cmp -s $cache_file confcache; then | |
6306 | : | |
6307 | else | |
6308 | if test -w $cache_file; then | |
6309 | echo "updating cache $cache_file" | |
6310 | cat confcache > $cache_file | |
6311 | else | |
6312 | echo "not updating unwritable cache $cache_file" | |
6313 | fi | |
6314 | fi | |
6315 | rm -f confcache | |
6316 | ||
6317 | ||
e59890c3 | 6318 | if test "$build" != "$host" ; then |
10f2d63a VZ |
6319 | CC=$host_alias-gcc |
6320 | CXX=$host_alias-c++ | |
6321 | AR=$host_alias-ar | |
6322 | RANLIB=$host_alias-ranlib | |
6323 | DLLTOOL=$host_alias-dlltool | |
32832908 | 6324 | RESCOMP=$host_alias-windres |
10f2d63a VZ |
6325 | LD=$host_alias-ld |
6326 | NM=$host_alias-nm | |
6327 | STRIP=$host_alias-strip | |
10f2d63a VZ |
6328 | fi |
6329 | ||
6330 | # Extract the first word of "gcc", so it can be a program name with args. | |
6331 | set dummy gcc; ac_word=$2 | |
6332 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
95c8801c | 6333 | echo "configure:6334: checking for $ac_word" >&5 |
10f2d63a VZ |
6334 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
6335 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6336 | else | |
6337 | if test -n "$CC"; then | |
6338 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6339 | else | |
6340 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6341 | ac_dummy="$PATH" | |
6342 | for ac_dir in $ac_dummy; do | |
6343 | test -z "$ac_dir" && ac_dir=. | |
6344 | if test -f $ac_dir/$ac_word; then | |
6345 | ac_cv_prog_CC="gcc" | |
6346 | break | |
6347 | fi | |
6348 | done | |
6349 | IFS="$ac_save_ifs" | |
6350 | fi | |
6351 | fi | |
6352 | CC="$ac_cv_prog_CC" | |
6353 | if test -n "$CC"; then | |
6354 | echo "$ac_t""$CC" 1>&6 | |
6355 | else | |
6356 | echo "$ac_t""no" 1>&6 | |
6357 | fi | |
6358 | ||
6359 | if test -z "$CC"; then | |
6360 | # Extract the first word of "cc", so it can be a program name with args. | |
6361 | set dummy cc; ac_word=$2 | |
6362 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
95c8801c | 6363 | echo "configure:6364: checking for $ac_word" >&5 |
10f2d63a VZ |
6364 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
6365 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6366 | else | |
6367 | if test -n "$CC"; then | |
6368 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6369 | else | |
6370 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6371 | ac_prog_rejected=no | |
6372 | ac_dummy="$PATH" | |
6373 | for ac_dir in $ac_dummy; do | |
6374 | test -z "$ac_dir" && ac_dir=. | |
6375 | if test -f $ac_dir/$ac_word; then | |
6376 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
6377 | ac_prog_rejected=yes | |
6378 | continue | |
6379 | fi | |
6380 | ac_cv_prog_CC="cc" | |
6381 | break | |
6382 | fi | |
6383 | done | |
6384 | IFS="$ac_save_ifs" | |
6385 | if test $ac_prog_rejected = yes; then | |
6386 | # We found a bogon in the path, so make sure we never use it. | |
6387 | set dummy $ac_cv_prog_CC | |
6388 | shift | |
6389 | if test $# -gt 0; then | |
6390 | # We chose a different compiler from the bogus one. | |
6391 | # However, it has the same basename, so the bogon will be chosen | |
6392 | # first if we set CC to just the basename; use the full file name. | |
6393 | shift | |
6394 | set dummy "$ac_dir/$ac_word" "$@" | |
6395 | shift | |
6396 | ac_cv_prog_CC="$@" | |
6397 | fi | |
6398 | fi | |
6399 | fi | |
6400 | fi | |
6401 | CC="$ac_cv_prog_CC" | |
6402 | if test -n "$CC"; then | |
6403 | echo "$ac_t""$CC" 1>&6 | |
6404 | else | |
6405 | echo "$ac_t""no" 1>&6 | |
6406 | fi | |
6407 | ||
6408 | if test -z "$CC"; then | |
6409 | case "`uname -s`" in | |
6410 | *win32* | *WIN32*) | |
6411 | # Extract the first word of "cl", so it can be a program name with args. | |
6412 | set dummy cl; ac_word=$2 | |
6413 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
95c8801c | 6414 | echo "configure:6415: checking for $ac_word" >&5 |
10f2d63a VZ |
6415 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
6416 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6417 | else | |
6418 | if test -n "$CC"; then | |
6419 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6420 | else | |
6421 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6422 | ac_dummy="$PATH" | |
6423 | for ac_dir in $ac_dummy; do | |
6424 | test -z "$ac_dir" && ac_dir=. | |
6425 | if test -f $ac_dir/$ac_word; then | |
6426 | ac_cv_prog_CC="cl" | |
6427 | break | |
6428 | fi | |
6429 | done | |
6430 | IFS="$ac_save_ifs" | |
6431 | fi | |
6432 | fi | |
6433 | CC="$ac_cv_prog_CC" | |
6434 | if test -n "$CC"; then | |
6435 | echo "$ac_t""$CC" 1>&6 | |
6436 | else | |
6437 | echo "$ac_t""no" 1>&6 | |
6438 | fi | |
6439 | ;; | |
6440 | esac | |
6441 | fi | |
6442 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
6443 | fi | |
6444 | ||
6445 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
95c8801c | 6446 | echo "configure:6447: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
10f2d63a VZ |
6447 | |
6448 | ac_ext=c | |
6449 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6450 | ac_cpp='$CPP $CPPFLAGS' | |
6451 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6452 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6453 | cross_compiling=$ac_cv_prog_cc_cross | |
6454 | ||
6455 | cat > conftest.$ac_ext << EOF | |
6456 | ||
95c8801c | 6457 | #line 6458 "configure" |
10f2d63a VZ |
6458 | #include "confdefs.h" |
6459 | ||
6460 | main(){return(0);} | |
6461 | EOF | |
95c8801c | 6462 | if { (eval echo configure:6463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
6463 | ac_cv_prog_cc_works=yes |
6464 | # If we can't run a trivial program, we are probably using a cross compiler. | |
6465 | if (./conftest; exit) 2>/dev/null; then | |
6466 | ac_cv_prog_cc_cross=no | |
6467 | else | |
6468 | ac_cv_prog_cc_cross=yes | |
6469 | fi | |
6470 | else | |
6471 | echo "configure: failed program was:" >&5 | |
6472 | cat conftest.$ac_ext >&5 | |
6473 | ac_cv_prog_cc_works=no | |
6474 | fi | |
6475 | rm -fr conftest* | |
6476 | ac_ext=c | |
6477 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6478 | ac_cpp='$CPP $CPPFLAGS' | |
6479 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6480 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6481 | cross_compiling=$ac_cv_prog_cc_cross | |
6482 | ||
6483 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
6484 | if test $ac_cv_prog_cc_works = no; then | |
6485 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
6486 | fi | |
6487 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
95c8801c | 6488 | echo "configure:6489: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
10f2d63a VZ |
6489 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
6490 | cross_compiling=$ac_cv_prog_cc_cross | |
6491 | ||
6492 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
95c8801c | 6493 | echo "configure:6494: checking whether we are using GNU C" >&5 |
10f2d63a VZ |
6494 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
6495 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6496 | else | |
6497 | cat > conftest.c <<EOF | |
6498 | #ifdef __GNUC__ | |
6499 | yes; | |
6500 | #endif | |
6501 | EOF | |
95c8801c | 6502 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:6503: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
10f2d63a VZ |
6503 | ac_cv_prog_gcc=yes |
6504 | else | |
6505 | ac_cv_prog_gcc=no | |
6506 | fi | |
6507 | fi | |
6508 | ||
6509 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
6510 | ||
6511 | if test $ac_cv_prog_gcc = yes; then | |
6512 | GCC=yes | |
6513 | else | |
6514 | GCC= | |
6515 | fi | |
6516 | ||
6517 | ac_test_CFLAGS="${CFLAGS+set}" | |
6518 | ac_save_CFLAGS="$CFLAGS" | |
6519 | CFLAGS= | |
6520 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
95c8801c | 6521 | echo "configure:6522: checking whether ${CC-cc} accepts -g" >&5 |
10f2d63a VZ |
6522 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
6523 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6524 | else | |
6525 | echo 'void f(){}' > conftest.c | |
6526 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
6527 | ac_cv_prog_cc_g=yes | |
6528 | else | |
6529 | ac_cv_prog_cc_g=no | |
6530 | fi | |
6531 | rm -f conftest* | |
6532 | ||
6533 | fi | |
6534 | ||
6535 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
6536 | if test "$ac_test_CFLAGS" = set; then | |
6537 | CFLAGS="$ac_save_CFLAGS" | |
6538 | elif test $ac_cv_prog_cc_g = yes; then | |
6539 | if test "$GCC" = yes; then | |
6540 | CFLAGS="-g -O2" | |
6541 | else | |
6542 | CFLAGS="-g" | |
6543 | fi | |
6544 | else | |
6545 | if test "$GCC" = yes; then | |
6546 | CFLAGS="-O2" | |
6547 | else | |
6548 | CFLAGS= | |
6549 | fi | |
6550 | fi | |
6551 | ||
6552 | ||
6553 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
6554 | ||
6555 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
95c8801c | 6556 | echo "configure:6557: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
6557 | # On Suns, sometimes $CPP names a directory. |
6558 | if test -n "$CPP" && test -d "$CPP"; then | |
6559 | CPP= | |
6560 | fi | |
6561 | if test -z "$CPP"; then | |
6562 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
6563 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6564 | else | |
6565 | # This must be in double quotes, not single quotes, because CPP may get | |
6566 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
6567 | CPP="${CC-cc} -E" | |
6568 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6569 | # not just through cpp. | |
6570 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 6571 | #line 6572 "configure" |
10f2d63a VZ |
6572 | #include "confdefs.h" |
6573 | #include <assert.h> | |
6574 | Syntax Error | |
6575 | EOF | |
6576 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
95c8801c | 6577 | { (eval echo configure:6578: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
6578 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6579 | if test -z "$ac_err"; then | |
6580 | : | |
6581 | else | |
6582 | echo "$ac_err" >&5 | |
6583 | echo "configure: failed program was:" >&5 | |
6584 | cat conftest.$ac_ext >&5 | |
6585 | rm -rf conftest* | |
6586 | CPP="${CC-cc} -E -traditional-cpp" | |
6587 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 6588 | #line 6589 "configure" |
10f2d63a VZ |
6589 | #include "confdefs.h" |
6590 | #include <assert.h> | |
6591 | Syntax Error | |
6592 | EOF | |
6593 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
95c8801c | 6594 | { (eval echo configure:6595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
6595 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6596 | if test -z "$ac_err"; then | |
6597 | : | |
6598 | else | |
6599 | echo "$ac_err" >&5 | |
6600 | echo "configure: failed program was:" >&5 | |
6601 | cat conftest.$ac_ext >&5 | |
6602 | rm -rf conftest* | |
6603 | CPP="${CC-cc} -nologo -E" | |
6604 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 6605 | #line 6606 "configure" |
10f2d63a VZ |
6606 | #include "confdefs.h" |
6607 | #include <assert.h> | |
6608 | Syntax Error | |
6609 | EOF | |
6610 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
95c8801c | 6611 | { (eval echo configure:6612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
6612 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6613 | if test -z "$ac_err"; then | |
6614 | : | |
6615 | else | |
6616 | echo "$ac_err" >&5 | |
6617 | echo "configure: failed program was:" >&5 | |
6618 | cat conftest.$ac_ext >&5 | |
6619 | rm -rf conftest* | |
6620 | CPP=/lib/cpp | |
6621 | fi | |
6622 | rm -f conftest* | |
6623 | fi | |
6624 | rm -f conftest* | |
6625 | fi | |
6626 | rm -f conftest* | |
6627 | ac_cv_prog_CPP="$CPP" | |
6628 | fi | |
6629 | CPP="$ac_cv_prog_CPP" | |
6630 | else | |
6631 | ac_cv_prog_CPP="$CPP" | |
6632 | fi | |
6633 | echo "$ac_t""$CPP" 1>&6 | |
6634 | ||
6635 | ||
6636 | if test $ac_cv_prog_gcc = yes; then | |
6637 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
95c8801c | 6638 | echo "configure:6639: checking whether ${CC-cc} needs -traditional" >&5 |
10f2d63a VZ |
6639 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
6640 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6641 | else | |
6642 | ac_pattern="Autoconf.*'x'" | |
6643 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 6644 | #line 6645 "configure" |
10f2d63a VZ |
6645 | #include "confdefs.h" |
6646 | #include <sgtty.h> | |
6647 | Autoconf TIOCGETP | |
6648 | EOF | |
6649 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6650 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
6651 | rm -rf conftest* | |
6652 | ac_cv_prog_gcc_traditional=yes | |
6653 | else | |
6654 | rm -rf conftest* | |
6655 | ac_cv_prog_gcc_traditional=no | |
6656 | fi | |
6657 | rm -f conftest* | |
6658 | ||
6659 | ||
6660 | if test $ac_cv_prog_gcc_traditional = no; then | |
6661 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 6662 | #line 6663 "configure" |
10f2d63a VZ |
6663 | #include "confdefs.h" |
6664 | #include <termio.h> | |
6665 | Autoconf TCGETA | |
6666 | EOF | |
6667 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6668 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
6669 | rm -rf conftest* | |
6670 | ac_cv_prog_gcc_traditional=yes | |
6671 | fi | |
6672 | rm -f conftest* | |
6673 | ||
6674 | fi | |
6675 | fi | |
6676 | ||
6677 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
6678 | if test $ac_cv_prog_gcc_traditional = yes; then | |
6679 | CC="$CC -traditional" | |
6680 | fi | |
6681 | fi | |
6682 | ||
6683 | ||
6684 | ||
6685 | ac_ext=C | |
6686 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6687 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6688 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6689 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6690 | cross_compiling=$ac_cv_prog_cxx_cross | |
6691 | ||
6692 | ||
6693 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
6694 | do | |
6695 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6696 | set dummy $ac_prog; ac_word=$2 | |
6697 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
95c8801c | 6698 | echo "configure:6699: checking for $ac_word" >&5 |
10f2d63a VZ |
6699 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
6700 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6701 | else | |
6702 | if test -n "$CXX"; then | |
6703 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
6704 | else | |
6705 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6706 | ac_dummy="$PATH" | |
6707 | for ac_dir in $ac_dummy; do | |
6708 | test -z "$ac_dir" && ac_dir=. | |
6709 | if test -f $ac_dir/$ac_word; then | |
6710 | ac_cv_prog_CXX="$ac_prog" | |
6711 | break | |
6712 | fi | |
6713 | done | |
6714 | IFS="$ac_save_ifs" | |
6715 | fi | |
6716 | fi | |
6717 | CXX="$ac_cv_prog_CXX" | |
6718 | if test -n "$CXX"; then | |
6719 | echo "$ac_t""$CXX" 1>&6 | |
6720 | else | |
6721 | echo "$ac_t""no" 1>&6 | |
6722 | fi | |
6723 | ||
6724 | test -n "$CXX" && break | |
6725 | done | |
6726 | test -n "$CXX" || CXX="gcc" | |
6727 | ||
6728 | ||
6729 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
95c8801c | 6730 | echo "configure:6731: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
10f2d63a VZ |
6731 | |
6732 | ac_ext=C | |
6733 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6734 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6735 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6736 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6737 | cross_compiling=$ac_cv_prog_cxx_cross | |
6738 | ||
6739 | cat > conftest.$ac_ext << EOF | |
6740 | ||
95c8801c | 6741 | #line 6742 "configure" |
10f2d63a VZ |
6742 | #include "confdefs.h" |
6743 | ||
6744 | int main(){return(0);} | |
6745 | EOF | |
95c8801c | 6746 | if { (eval echo configure:6747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
6747 | ac_cv_prog_cxx_works=yes |
6748 | # If we can't run a trivial program, we are probably using a cross compiler. | |
6749 | if (./conftest; exit) 2>/dev/null; then | |
6750 | ac_cv_prog_cxx_cross=no | |
6751 | else | |
6752 | ac_cv_prog_cxx_cross=yes | |
6753 | fi | |
6754 | else | |
6755 | echo "configure: failed program was:" >&5 | |
6756 | cat conftest.$ac_ext >&5 | |
6757 | ac_cv_prog_cxx_works=no | |
6758 | fi | |
6759 | rm -fr conftest* | |
6760 | ac_ext=C | |
6761 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6762 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6763 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6764 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6765 | cross_compiling=$ac_cv_prog_cxx_cross | |
6766 | ||
6767 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
6768 | if test $ac_cv_prog_cxx_works = no; then | |
6769 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
6770 | fi | |
6771 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
95c8801c | 6772 | echo "configure:6773: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
10f2d63a VZ |
6773 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
6774 | cross_compiling=$ac_cv_prog_cxx_cross | |
6775 | ||
6776 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
95c8801c | 6777 | echo "configure:6778: checking whether we are using GNU C++" >&5 |
10f2d63a VZ |
6778 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
6779 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6780 | else | |
6781 | cat > conftest.C <<EOF | |
6782 | #ifdef __GNUC__ | |
6783 | yes; | |
6784 | #endif | |
6785 | EOF | |
95c8801c | 6786 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
10f2d63a VZ |
6787 | ac_cv_prog_gxx=yes |
6788 | else | |
6789 | ac_cv_prog_gxx=no | |
6790 | fi | |
6791 | fi | |
6792 | ||
6793 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 | |
6794 | ||
6795 | if test $ac_cv_prog_gxx = yes; then | |
6796 | GXX=yes | |
6797 | else | |
6798 | GXX= | |
6799 | fi | |
6800 | ||
6801 | ac_test_CXXFLAGS="${CXXFLAGS+set}" | |
6802 | ac_save_CXXFLAGS="$CXXFLAGS" | |
6803 | CXXFLAGS= | |
6804 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
95c8801c | 6805 | echo "configure:6806: checking whether ${CXX-g++} accepts -g" >&5 |
10f2d63a VZ |
6806 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
6807 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6808 | else | |
6809 | echo 'void f(){}' > conftest.cc | |
6810 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
6811 | ac_cv_prog_cxx_g=yes | |
6812 | else | |
6813 | ac_cv_prog_cxx_g=no | |
6814 | fi | |
6815 | rm -f conftest* | |
6816 | ||
6817 | fi | |
6818 | ||
6819 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
6820 | if test "$ac_test_CXXFLAGS" = set; then | |
6821 | CXXFLAGS="$ac_save_CXXFLAGS" | |
6822 | elif test $ac_cv_prog_cxx_g = yes; then | |
6823 | if test "$GXX" = yes; then | |
6824 | CXXFLAGS="-g -O2" | |
6825 | else | |
6826 | CXXFLAGS="-g" | |
6827 | fi | |
6828 | else | |
6829 | if test "$GXX" = yes; then | |
6830 | CXXFLAGS="-O2" | |
6831 | else | |
6832 | CXXFLAGS= | |
6833 | fi | |
6834 | fi | |
6835 | ||
6836 | ||
6837 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 | |
95c8801c | 6838 | echo "configure:6839: checking how to run the C++ preprocessor" >&5 |
10f2d63a VZ |
6839 | if test -z "$CXXCPP"; then |
6840 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
6841 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6842 | else | |
6843 | ac_ext=C | |
6844 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6845 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6846 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6847 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6848 | cross_compiling=$ac_cv_prog_cxx_cross | |
6849 | CXXCPP="${CXX-g++} -E" | |
6850 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 6851 | #line 6852 "configure" |
10f2d63a VZ |
6852 | #include "confdefs.h" |
6853 | #include <stdlib.h> | |
6854 | EOF | |
6855 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
95c8801c | 6856 | { (eval echo configure:6857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
6857 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6858 | if test -z "$ac_err"; then | |
6859 | : | |
6860 | else | |
6861 | echo "$ac_err" >&5 | |
6862 | echo "configure: failed program was:" >&5 | |
6863 | cat conftest.$ac_ext >&5 | |
6864 | rm -rf conftest* | |
6865 | CXXCPP=/lib/cpp | |
6866 | fi | |
6867 | rm -f conftest* | |
6868 | ac_cv_prog_CXXCPP="$CXXCPP" | |
6869 | ac_ext=C | |
6870 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6871 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6872 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6873 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6874 | cross_compiling=$ac_cv_prog_cxx_cross | |
6875 | fi | |
6876 | fi | |
6877 | CXXCPP="$ac_cv_prog_CXXCPP" | |
6878 | echo "$ac_t""$CXXCPP" 1>&6 | |
6879 | ||
6880 | ||
6881 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` | |
6882 | ||
6883 | ac_ext=c | |
6884 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6885 | ac_cpp='$CPP $CPPFLAGS' | |
6886 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6887 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6888 | cross_compiling=$ac_cv_prog_cc_cross | |
6889 | ||
6890 | ||
6891 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6892 | set dummy ranlib; ac_word=$2 | |
6893 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
95c8801c | 6894 | echo "configure:6895: checking for $ac_word" >&5 |
10f2d63a VZ |
6895 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
6896 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6897 | else | |
6898 | if test -n "$RANLIB"; then | |
6899 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6900 | else | |
6901 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6902 | ac_dummy="$PATH" | |
6903 | for ac_dir in $ac_dummy; do | |
6904 | test -z "$ac_dir" && ac_dir=. | |
6905 | if test -f $ac_dir/$ac_word; then | |
6906 | ac_cv_prog_RANLIB="ranlib" | |
6907 | break | |
6908 | fi | |
6909 | done | |
6910 | IFS="$ac_save_ifs" | |
6911 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
6912 | fi | |
6913 | fi | |
6914 | RANLIB="$ac_cv_prog_RANLIB" | |
6915 | if test -n "$RANLIB"; then | |
6916 | echo "$ac_t""$RANLIB" 1>&6 | |
6917 | else | |
6918 | echo "$ac_t""no" 1>&6 | |
6919 | fi | |
6920 | ||
6921 | ||
6922 | # Extract the first word of "ar", so it can be a program name with args. | |
6923 | set dummy ar; ac_word=$2 | |
6924 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
95c8801c | 6925 | echo "configure:6926: checking for $ac_word" >&5 |
10f2d63a VZ |
6926 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
6927 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6928 | else | |
6929 | if test -n "$AR"; then | |
6930 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6931 | else | |
6932 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6933 | ac_dummy="$PATH" | |
6934 | for ac_dir in $ac_dummy; do | |
6935 | test -z "$ac_dir" && ac_dir=. | |
6936 | if test -f $ac_dir/$ac_word; then | |
6937 | ac_cv_prog_AR="ar" | |
6938 | break | |
6939 | fi | |
6940 | done | |
6941 | IFS="$ac_save_ifs" | |
6942 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
6943 | fi | |
6944 | fi | |
6945 | AR="$ac_cv_prog_AR" | |
6946 | if test -n "$AR"; then | |
6947 | echo "$ac_t""$AR" 1>&6 | |
6948 | else | |
6949 | echo "$ac_t""no" 1>&6 | |
6950 | fi | |
6951 | ||
6952 | ||
6953 | # Find a good install program. We prefer a C program (faster), | |
6954 | # so one script is as good as another. But avoid the broken or | |
6955 | # incompatible versions: | |
6956 | # SysV /etc/install, /usr/sbin/install | |
6957 | # SunOS /usr/etc/install | |
6958 | # IRIX /sbin/install | |
6959 | # AIX /bin/install | |
6960 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
6961 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
6962 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
6963 | # ./install, which can be erroneously created by make from ./install.sh. | |
6964 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
95c8801c | 6965 | echo "configure:6966: checking for a BSD compatible install" >&5 |
10f2d63a VZ |
6966 | if test -z "$INSTALL"; then |
6967 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
6968 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6969 | else | |
6970 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
6971 | for ac_dir in $PATH; do | |
6972 | # Account for people who put trailing slashes in PATH elements. | |
6973 | case "$ac_dir/" in | |
6974 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
6975 | *) | |
6976 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
6977 | # Don't use installbsd from OSF since it installs stuff as root | |
6978 | # by default. | |
6979 | for ac_prog in ginstall scoinst install; do | |
6980 | if test -f $ac_dir/$ac_prog; then | |
6981 | if test $ac_prog = install && | |
6982 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
6983 | # AIX install. It has an incompatible calling convention. | |
6984 | : | |
6985 | else | |
6986 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
6987 | break 2 | |
6988 | fi | |
6989 | fi | |
6990 | done | |
6991 | ;; | |
6992 | esac | |
6993 | done | |
6994 | IFS="$ac_save_IFS" | |
6995 | ||
6996 | fi | |
6997 | if test "${ac_cv_path_install+set}" = set; then | |
6998 | INSTALL="$ac_cv_path_install" | |
6999 | else | |
7000 | # As a last resort, use the slow shell script. We don't cache a | |
7001 | # path for INSTALL within a source directory, because that will | |
7002 | # break other packages using the cache if that directory is | |
7003 | # removed, or if the path is relative. | |
7004 | INSTALL="$ac_install_sh" | |
7005 | fi | |
7006 | fi | |
7007 | echo "$ac_t""$INSTALL" 1>&6 | |
7008 | ||
7009 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
7010 | # It thinks the first close brace ends the variable substitution. | |
7011 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
7012 | ||
7013 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
7014 | ||
7015 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
7016 | ||
7017 | ||
7018 | # Extract the first word of "strip", so it can be a program name with args. | |
7019 | set dummy strip; ac_word=$2 | |
7020 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
95c8801c | 7021 | echo "configure:7022: checking for $ac_word" >&5 |
10f2d63a VZ |
7022 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
7023 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7024 | else | |
7025 | if test -n "$STRIP"; then | |
7026 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
7027 | else | |
7028 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
7029 | ac_dummy="$PATH" | |
7030 | for ac_dir in $ac_dummy; do | |
7031 | test -z "$ac_dir" && ac_dir=. | |
7032 | if test -f $ac_dir/$ac_word; then | |
7033 | ac_cv_prog_STRIP="strip" | |
7034 | break | |
7035 | fi | |
7036 | done | |
7037 | IFS="$ac_save_ifs" | |
7038 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" | |
7039 | fi | |
7040 | fi | |
7041 | STRIP="$ac_cv_prog_STRIP" | |
7042 | if test -n "$STRIP"; then | |
7043 | echo "$ac_t""$STRIP" 1>&6 | |
7044 | else | |
7045 | echo "$ac_t""no" 1>&6 | |
7046 | fi | |
7047 | ||
7048 | ||
7049 | echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6 | |
95c8801c | 7050 | echo "configure:7051: checking "make for VPATH support"" >&5 |
10f2d63a VZ |
7051 | cat - << EOF > confMake |
7052 | check : file | |
7053 | cp \$? \$@ | |
7054 | cp \$? final_file | |
7055 | EOF | |
7056 | ||
7057 | if test ! -d sub ; then | |
7058 | mkdir sub | |
7059 | fi | |
7060 | echo dummy > sub/file | |
f6bcfd97 | 7061 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
7062 | RESULT=$? |
7063 | rm -f sub/file check final_file confMake | |
7064 | rmdir sub | |
7065 | if test "$RESULT" = 0; then | |
7066 | echo "$ac_t""yes" 1>&6 | |
7067 | else | |
7068 | echo "$ac_t""no" 1>&6 | |
7069 | { echo "configure: error: You need a make-utility that is able to use the variable | |
7070 | VPATH correctly. | |
7071 | If your version of make does not support VPATH correctly" 1>&2; exit 1; } | |
7072 | fi | |
7073 | ||
7074 | for ac_prog in 'bison -y' byacc | |
7075 | do | |
7076 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7077 | set dummy $ac_prog; ac_word=$2 | |
7078 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
95c8801c | 7079 | echo "configure:7080: checking for $ac_word" >&5 |
10f2d63a VZ |
7080 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
7081 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7082 | else | |
7083 | if test -n "$YACC"; then | |
7084 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
7085 | else | |
7086 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
7087 | ac_dummy="$PATH" | |
7088 | for ac_dir in $ac_dummy; do | |
7089 | test -z "$ac_dir" && ac_dir=. | |
7090 | if test -f $ac_dir/$ac_word; then | |
7091 | ac_cv_prog_YACC="$ac_prog" | |
7092 | break | |
7093 | fi | |
7094 | done | |
7095 | IFS="$ac_save_ifs" | |
7096 | fi | |
7097 | fi | |
7098 | YACC="$ac_cv_prog_YACC" | |
7099 | if test -n "$YACC"; then | |
7100 | echo "$ac_t""$YACC" 1>&6 | |
7101 | else | |
7102 | echo "$ac_t""no" 1>&6 | |
7103 | fi | |
7104 | ||
7105 | test -n "$YACC" && break | |
7106 | done | |
7107 | test -n "$YACC" || YACC="yacc" | |
7108 | ||
7109 | ||
7110 | # Extract the first word of "flex", so it can be a program name with args. | |
7111 | set dummy flex; ac_word=$2 | |
7112 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
95c8801c | 7113 | echo "configure:7114: checking for $ac_word" >&5 |
10f2d63a VZ |
7114 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
7115 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7116 | else | |
7117 | if test -n "$LEX"; then | |
7118 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
7119 | else | |
7120 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
7121 | ac_dummy="$PATH" | |
7122 | for ac_dir in $ac_dummy; do | |
7123 | test -z "$ac_dir" && ac_dir=. | |
7124 | if test -f $ac_dir/$ac_word; then | |
7125 | ac_cv_prog_LEX="flex" | |
7126 | break | |
7127 | fi | |
7128 | done | |
7129 | IFS="$ac_save_ifs" | |
7130 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
7131 | fi | |
7132 | fi | |
7133 | LEX="$ac_cv_prog_LEX" | |
7134 | if test -n "$LEX"; then | |
7135 | echo "$ac_t""$LEX" 1>&6 | |
7136 | else | |
7137 | echo "$ac_t""no" 1>&6 | |
7138 | fi | |
7139 | ||
7140 | if test -z "$LEXLIB" | |
7141 | then | |
7142 | case "$LEX" in | |
7143 | flex*) ac_lib=fl ;; | |
7144 | *) ac_lib=l ;; | |
7145 | esac | |
7146 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
95c8801c | 7147 | echo "configure:7148: checking for yywrap in -l$ac_lib" >&5 |
10f2d63a VZ |
7148 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
7149 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7150 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7151 | else | |
7152 | ac_save_LIBS="$LIBS" | |
7153 | LIBS="-l$ac_lib $LIBS" | |
7154 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 7155 | #line 7156 "configure" |
10f2d63a VZ |
7156 | #include "confdefs.h" |
7157 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7158 | /* We use char because int might match the return type of a gcc2 | |
7159 | builtin and then its argument prototype would still apply. */ | |
7160 | char yywrap(); | |
7161 | ||
7162 | int main() { | |
7163 | yywrap() | |
7164 | ; return 0; } | |
7165 | EOF | |
95c8801c | 7166 | if { (eval echo configure:7167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
7167 | rm -rf conftest* |
7168 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7169 | else | |
7170 | echo "configure: failed program was:" >&5 | |
7171 | cat conftest.$ac_ext >&5 | |
7172 | rm -rf conftest* | |
7173 | eval "ac_cv_lib_$ac_lib_var=no" | |
7174 | fi | |
7175 | rm -f conftest* | |
7176 | LIBS="$ac_save_LIBS" | |
7177 | ||
7178 | fi | |
7179 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7180 | echo "$ac_t""yes" 1>&6 | |
7181 | LEXLIB="-l$ac_lib" | |
7182 | else | |
7183 | echo "$ac_t""no" 1>&6 | |
7184 | fi | |
7185 | ||
7186 | fi | |
7187 | ||
7188 | ||
7189 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
95c8801c | 7190 | echo "configure:7191: checking whether ln -s works" >&5 |
10f2d63a VZ |
7191 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
7192 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7193 | else | |
7194 | rm -f conftestdata | |
7195 | if ln -s X conftestdata 2>/dev/null | |
7196 | then | |
7197 | rm -f conftestdata | |
7198 | ac_cv_prog_LN_S="ln -s" | |
7199 | else | |
7200 | ac_cv_prog_LN_S=ln | |
7201 | fi | |
7202 | fi | |
7203 | LN_S="$ac_cv_prog_LN_S" | |
7204 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
7205 | echo "$ac_t""yes" 1>&6 | |
7206 | else | |
7207 | echo "$ac_t""no" 1>&6 | |
7208 | fi | |
7209 | ||
7210 | ||
7211 | ||
7212 | SEARCH_INCLUDE="\ | |
7213 | /usr/local/include \ | |
7214 | \ | |
7215 | /usr/Motif-1.2/include \ | |
7216 | /usr/Motif-2.1/include \ | |
7217 | \ | |
7218 | /usr/include/Motif1.2 \ | |
7219 | /opt/xpm/include/X11 \ | |
7220 | /opt/GBxpm/include/ \ | |
7221 | /opt/GBxpm/X11/include/ \ | |
7222 | \ | |
7223 | /usr/Motif1.2/include \ | |
7224 | /usr/dt/include \ | |
afc31813 VZ |
7225 | /usr/openwin/include \ |
7226 | \ | |
10f2d63a VZ |
7227 | /usr/include/Xm \ |
7228 | \ | |
7229 | /usr/X11R6/include \ | |
afc31813 | 7230 | /usr/X11R6.4/include \ |
10f2d63a VZ |
7231 | /usr/X11R5/include \ |
7232 | /usr/X11R4/include \ | |
7233 | \ | |
10f2d63a VZ |
7234 | /usr/include/X11R6 \ |
7235 | /usr/include/X11R5 \ | |
7236 | /usr/include/X11R4 \ | |
7237 | \ | |
7238 | /usr/local/X11R6/include \ | |
7239 | /usr/local/X11R5/include \ | |
7240 | /usr/local/X11R4/include \ | |
7241 | \ | |
7242 | /usr/local/include/X11R6 \ | |
7243 | /usr/local/include/X11R5 \ | |
7244 | /usr/local/include/X11R4 \ | |
7245 | \ | |
7246 | /usr/X11/include \ | |
7247 | /usr/include/X11 \ | |
7248 | /usr/local/X11/include \ | |
7249 | /usr/local/include/X11 \ | |
7250 | \ | |
7251 | /usr/X386/include \ | |
7252 | /usr/x386/include \ | |
7253 | /usr/XFree86/include/X11 \ | |
7254 | \ | |
cf27ef00 | 7255 | X:/XFree86/include \ |
ec14dd32 VZ |
7256 | X:/XFree86/include/X11 \ |
7257 | \ | |
10f2d63a VZ |
7258 | /usr/include/gtk \ |
7259 | /usr/local/include/gtk \ | |
7260 | /usr/include/glib \ | |
7261 | /usr/local/include/glib \ | |
7262 | \ | |
7263 | /usr/include/qt \ | |
7264 | /usr/local/include/qt \ | |
7265 | \ | |
7266 | /usr/include/windows \ | |
7267 | /usr/include/wine \ | |
7268 | /usr/local/include/wine \ | |
7269 | \ | |
7270 | /usr/unsupported/include \ | |
7271 | /usr/athena/include \ | |
7272 | /usr/local/x11r5/include \ | |
7273 | /usr/lpp/Xamples/include \ | |
7274 | \ | |
10f2d63a | 7275 | /usr/openwin/share/include \ |
928b5c08 VZ |
7276 | \ |
7277 | /usr/include" | |
10f2d63a VZ |
7278 | |
7279 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
7280 | ||
7281 | ||
7282 | cat > confcache <<\EOF | |
7283 | # This file is a shell script that caches the results of configure | |
7284 | # tests run on this system so they can be shared between configure | |
7285 | # scripts and configure runs. It is not useful on other systems. | |
7286 | # If it contains results you don't want to keep, you may remove or edit it. | |
7287 | # | |
7288 | # By default, configure uses ./config.cache as the cache file, | |
7289 | # creating it if it does not exist already. You can give configure | |
7290 | # the --cache-file=FILE option to use a different cache file; that is | |
7291 | # what configure does when it calls configure scripts in | |
7292 | # subdirectories, so they share the cache. | |
7293 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
7294 | # config.status only pays attention to the cache file if you give it the | |
7295 | # --recheck option to rerun configure. | |
7296 | # | |
7297 | EOF | |
7298 | # The following way of writing the cache mishandles newlines in values, | |
7299 | # but we know of no workaround that is simple, portable, and efficient. | |
7300 | # So, don't put newlines in cache variables' values. | |
7301 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
7302 | # and sets the high bit in the cache file unless we assign to the vars. | |
7303 | (set) 2>&1 | | |
7304 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
7305 | *ac_space=\ *) | |
7306 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
7307 | # turns \\\\ into \\, and sed turns \\ into \). | |
7308 | sed -n \ | |
7309 | -e "s/'/'\\\\''/g" \ | |
7310 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
7311 | ;; | |
7312 | *) | |
7313 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7314 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
7315 | ;; | |
7316 | esac >> confcache | |
7317 | if cmp -s $cache_file confcache; then | |
7318 | : | |
7319 | else | |
7320 | if test -w $cache_file; then | |
7321 | echo "updating cache $cache_file" | |
7322 | cat confcache > $cache_file | |
7323 | else | |
7324 | echo "not updating unwritable cache $cache_file" | |
7325 | fi | |
7326 | fi | |
7327 | rm -f confcache | |
7328 | ||
7329 | ||
7330 | ||
dad6c0ea VZ |
7331 | AFMINSTALL= |
7332 | ||
10f2d63a VZ |
7333 | if test "$wxUSE_GUI" = "yes"; then |
7334 | ||
dad6c0ea VZ |
7335 | USE_GUI=1 |
7336 | ||
10f2d63a VZ |
7337 | TOOLKIT= |
7338 | TOOLKIT_INCLUDE= | |
7339 | ||
10f2d63a VZ |
7340 | GUI_TK_LIBRARY= |
7341 | GUI_TK_LINK= | |
7342 | ||
7343 | WXGTK12= | |
f6bcfd97 | 7344 | WXGTK127= |
6f72b082 | 7345 | WXGTK20= |
10f2d63a VZ |
7346 | |
7347 | WXWINE= | |
7348 | ||
10f2d63a VZ |
7349 | if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then |
7350 | if test "$cross_compiling" = "yes" ; then | |
e59890c3 | 7351 | echo "configure: warning: skipping windows.h check for cross-compilation" 1>&2 |
10f2d63a VZ |
7352 | else |
7353 | echo $ac_n "checking for Windows headers""... $ac_c" 1>&6 | |
95c8801c | 7354 | echo "configure:7355: checking for Windows headers" >&5 |
10f2d63a VZ |
7355 | |
7356 | ac_find_includes= | |
7357 | for ac_dir in $SEARCH_INCLUDE; | |
7358 | do | |
7359 | if test -f "$ac_dir/windows.h"; then | |
7360 | ac_find_includes=$ac_dir | |
7361 | break | |
7362 | fi | |
7363 | done | |
7364 | ||
7365 | if test "$ac_find_includes" != "" ; then | |
7366 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
7367 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
7368 | else | |
7369 | echo "$ac_t""no" 1>&6 | |
7370 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
7371 | fi | |
7372 | fi | |
7373 | ||
7374 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw" | |
7375 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32" | |
7376 | ||
f6bcfd97 BP |
7377 | if test "$wxUSE_ODBC" = "yes" ; then |
7378 | LIBS="$LIBS -lodbc32 -lole32 -loleaut32" | |
7379 | fi | |
7380 | ||
10f2d63a VZ |
7381 | if test "$wxUSE_MINGW" = 1; then |
7382 | LDFLAGS="$LDFLAGS -mwindows" | |
7383 | fi | |
7384 | ||
7385 | TOOLKIT=MSW | |
10f2d63a | 7386 | GUIDIST=MSW_DIST |
32832908 VZ |
7387 | |
7388 | RCINCSWITCH="--include-dir" | |
7389 | RCDEFSWITCH="--define" | |
7390 | RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\"" | |
7391 | RCINPUTSWITCH="-i" | |
7392 | RCOUTPUTSWITCH="-o" | |
7393 | RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__" | |
7394 | ||
7395 | RESPROGRAM="\$(RES_PROGRAM)" | |
7396 | ||
10f2d63a VZ |
7397 | fi |
7398 | ||
7399 | if test "$wxUSE_GTK" = 1; then | |
6f72b082 OK |
7400 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
7401 | if test "${with_gtk_prefix+set}" = set; then | |
7402 | withval="$with_gtk_prefix" | |
7403 | gtk_config_prefix="$withval" | |
7404 | else | |
7405 | gtk_config_prefix="" | |
7406 | fi | |
7407 | ||
7408 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
7409 | if test "${with_gtk_exec_prefix+set}" = set; then | |
7410 | withval="$with_gtk_exec_prefix" | |
7411 | gtk_config_exec_prefix="$withval" | |
7412 | else | |
7413 | gtk_config_exec_prefix="" | |
7414 | fi | |
7415 | ||
7416 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
7417 | if test "${enable_gtktest+set}" = set; then | |
7418 | enableval="$enable_gtktest" | |
7419 | : | |
7420 | else | |
7421 | enable_gtktest=yes | |
7422 | fi | |
7423 | ||
7424 | ||
7425 | for module in . gthread | |
7426 | do | |
7427 | case "$module" in | |
7428 | gthread) | |
7429 | gtk_config_args="$gtk_config_args gthread" | |
7430 | ;; | |
7431 | esac | |
7432 | done | |
7433 | ||
7434 | if test x$gtk_config_exec_prefix != x ; then | |
7435 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
7436 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
7437 | GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0 | |
7438 | fi | |
7439 | fi | |
7440 | if test x$gtk_config_prefix != x ; then | |
7441 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
7442 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
7443 | GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0 | |
7444 | fi | |
7445 | fi | |
7446 | ||
7447 | # Extract the first word of "gtk-config-2.0", so it can be a program name with args. | |
7448 | set dummy gtk-config-2.0; ac_word=$2 | |
7449 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
95c8801c | 7450 | echo "configure:7451: checking for $ac_word" >&5 |
6f72b082 OK |
7451 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then |
7452 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7453 | else | |
7454 | case "$GTK_CONFIG_2_0" in | |
7455 | /*) | |
7456 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path. | |
7457 | ;; | |
7458 | ?:/*) | |
7459 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path. | |
7460 | ;; | |
7461 | *) | |
7462 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
7463 | ac_dummy="$PATH" | |
7464 | for ac_dir in $ac_dummy; do | |
7465 | test -z "$ac_dir" && ac_dir=. | |
7466 | if test -f $ac_dir/$ac_word; then | |
7467 | ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word" | |
7468 | break | |
7469 | fi | |
7470 | done | |
7471 | IFS="$ac_save_ifs" | |
7472 | test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no" | |
7473 | ;; | |
7474 | esac | |
7475 | fi | |
7476 | GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0" | |
7477 | if test -n "$GTK_CONFIG_2_0"; then | |
7478 | echo "$ac_t""$GTK_CONFIG_2_0" 1>&6 | |
7479 | else | |
7480 | echo "$ac_t""no" 1>&6 | |
7481 | fi | |
7482 | ||
7483 | min_gtk_version=1.3.1 | |
7484 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 | |
95c8801c | 7485 | echo "configure:7486: checking for GTK - version >= $min_gtk_version" >&5 |
6f72b082 OK |
7486 | no_gtk="" |
7487 | if test "$GTK_CONFIG_2_0" = "no" ; then | |
7488 | no_gtk=yes | |
7489 | else | |
7490 | GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags` | |
7491 | GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs` | |
7492 | gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
7493 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
7494 | gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
7495 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
7496 | gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
7497 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
7498 | if test "x$enable_gtktest" = "xyes" ; then | |
7499 | ac_save_CFLAGS="$CFLAGS" | |
7500 | ac_save_LIBS="$LIBS" | |
7501 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
7502 | LIBS="$GTK_LIBS $LIBS" | |
7503 | rm -f conf.gtktest | |
7504 | if test "$cross_compiling" = yes; then | |
7505 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
7506 | else | |
7507 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 7508 | #line 7509 "configure" |
6f72b082 OK |
7509 | #include "confdefs.h" |
7510 | ||
7511 | #include <gtk/gtk.h> | |
7512 | #include <stdio.h> | |
7513 | #include <stdlib.h> | |
7514 | ||
7515 | int | |
7516 | main () | |
7517 | { | |
7518 | int major, minor, micro; | |
7519 | char *tmp_version; | |
7520 | ||
7521 | system ("touch conf.gtktest"); | |
7522 | ||
7523 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
7524 | tmp_version = g_strdup("$min_gtk_version"); | |
7525 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
7526 | printf("%s, bad version string\n", "$min_gtk_version"); | |
7527 | exit(1); | |
7528 | } | |
7529 | ||
7530 | if ((gtk_major_version != $gtk_config_major_version) || | |
7531 | (gtk_minor_version != $gtk_config_minor_version) || | |
7532 | (gtk_micro_version != $gtk_config_micro_version)) | |
7533 | { | |
7534 | printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
7535 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
7536 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
7537 | printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n"); | |
7538 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
7539 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
7540 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
7541 | printf("*** required on your system.\n"); | |
7542 | printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n"); | |
7543 | printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n"); | |
7544 | printf("*** before re-running configure\n"); | |
7545 | } | |
7546 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
7547 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
7548 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
7549 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
7550 | { | |
7551 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
7552 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
7553 | printf("*** library (version %d.%d.%d)\n", | |
7554 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
7555 | } | |
7556 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
7557 | else | |
7558 | { | |
7559 | if ((gtk_major_version > major) || | |
7560 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
7561 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
7562 | { | |
7563 | return 0; | |
7564 | } | |
7565 | else | |
7566 | { | |
7567 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
7568 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
7569 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
7570 | major, minor, micro); | |
7571 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
7572 | printf("***\n"); | |
7573 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
7574 | printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n"); | |
7575 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
7576 | printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n"); | |
7577 | printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n"); | |
7578 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
7579 | printf("*** so that the correct libraries are found at run-time))\n"); | |
7580 | } | |
7581 | } | |
7582 | return 1; | |
7583 | } | |
7584 | ||
7585 | EOF | |
95c8801c | 7586 | if { (eval echo configure:7587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
6f72b082 OK |
7587 | then |
7588 | : | |
7589 | else | |
7590 | echo "configure: failed program was:" >&5 | |
7591 | cat conftest.$ac_ext >&5 | |
7592 | rm -fr conftest* | |
7593 | no_gtk=yes | |
7594 | fi | |
7595 | rm -fr conftest* | |
7596 | fi | |
7597 | ||
7598 | CFLAGS="$ac_save_CFLAGS" | |
7599 | LIBS="$ac_save_LIBS" | |
7600 | fi | |
7601 | fi | |
7602 | if test "x$no_gtk" = x ; then | |
7603 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 | |
7604 | WXGTK20=1 | |
7605 | else | |
7606 | echo "$ac_t""no" 1>&6 | |
7607 | if test "$GTK_CONFIG_2_0" = "no" ; then | |
7608 | echo "*** The gtk-config-2.0 script installed by GTK could not be found" | |
7609 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
7610 | echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the" | |
7611 | echo "*** full path to gtk-config-2.0." | |
7612 | else | |
7613 | if test -f conf.gtktest ; then | |
7614 | : | |
7615 | else | |
7616 | echo "*** Could not run GTK test program, checking why..." | |
7617 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
7618 | LIBS="$LIBS $GTK_LIBS" | |
7619 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 7620 | #line 7621 "configure" |
6f72b082 OK |
7621 | #include "confdefs.h" |
7622 | ||
7623 | #include <gtk/gtk.h> | |
7624 | #include <stdio.h> | |
7625 | ||
7626 | int main() { | |
7627 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
7628 | ; return 0; } | |
7629 | EOF | |
95c8801c | 7630 | if { (eval echo configure:7631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6f72b082 OK |
7631 | rm -rf conftest* |
7632 | echo "*** The test program compiled, but did not run. This usually means" | |
7633 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
7634 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
7635 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
7636 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
7637 | echo "*** is required on your system" | |
7638 | echo "***" | |
7639 | echo "*** If you have an old version installed, it is best to remove it, although" | |
7640 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
7641 | echo "***" | |
7642 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
7643 | echo "*** came with the system with the command" | |
7644 | echo "***" | |
7645 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
7646 | else | |
7647 | echo "configure: failed program was:" >&5 | |
7648 | cat conftest.$ac_ext >&5 | |
7649 | rm -rf conftest* | |
7650 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
7651 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
7652 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
7653 | echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0" | |
7654 | fi | |
7655 | rm -f conftest* | |
7656 | CFLAGS="$ac_save_CFLAGS" | |
7657 | LIBS="$ac_save_LIBS" | |
7658 | fi | |
7659 | fi | |
7660 | GTK_CFLAGS="" | |
7661 | GTK_LIBS="" | |
7662 | ||
7663 | ||
10f2d63a VZ |
7664 | if test x$gtk_config_exec_prefix != x ; then |
7665 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
7666 | if test x${GTK_CONFIG+set} != xset ; then | |
7667 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
7668 | fi | |
7669 | fi | |
7670 | if test x$gtk_config_prefix != x ; then | |
7671 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
7672 | if test x${GTK_CONFIG+set} != xset ; then | |
7673 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
7674 | fi | |
7675 | fi | |
7676 | ||
7677 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
7678 | set dummy gtk-config; ac_word=$2 | |
7679 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
95c8801c | 7680 | echo "configure:7681: checking for $ac_word" >&5 |
f6bcfd97 BP |
7681 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
7682 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7683 | else | |
7684 | case "$GTK_CONFIG" in | |
7685 | /*) | |
7686 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
7687 | ;; | |
7688 | ?:/*) | |
7689 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
7690 | ;; | |
7691 | *) | |
7692 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
7693 | ac_dummy="$PATH" | |
7694 | for ac_dir in $ac_dummy; do | |
7695 | test -z "$ac_dir" && ac_dir=. | |
7696 | if test -f $ac_dir/$ac_word; then | |
7697 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
7698 | break | |
7699 | fi | |
7700 | done | |
7701 | IFS="$ac_save_ifs" | |
7702 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
7703 | ;; | |
7704 | esac | |
7705 | fi | |
7706 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
7707 | if test -n "$GTK_CONFIG"; then | |
7708 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
7709 | else | |
7710 | echo "$ac_t""no" 1>&6 | |
7711 | fi | |
7712 | ||
7713 | min_gtk_version=1.2.7 | |
7714 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 | |
95c8801c | 7715 | echo "configure:7716: checking for GTK - version >= $min_gtk_version" >&5 |
f6bcfd97 BP |
7716 | no_gtk="" |
7717 | if test "$GTK_CONFIG" != "no" ; then | |
7718 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
7719 | GTK_LIBS=`$GTK_CONFIG --libs gthread` | |
7720 | ac_save_CFLAGS="$CFLAGS" | |
7721 | ac_save_LIBS="$LIBS" | |
7722 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
7723 | LIBS="$LIBS $GTK_LIBS" | |
7724 | if test "$cross_compiling" = yes; then | |
7725 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
7726 | else | |
7727 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 7728 | #line 7729 "configure" |
f6bcfd97 BP |
7729 | #include "confdefs.h" |
7730 | ||
7731 | #include <gtk/gtk.h> | |
7732 | #include <gtk/gtkfeatures.h> | |
7733 | #include <stdio.h> | |
7734 | #include <stdlib.h> | |
7735 | ||
7736 | int | |
7737 | main () | |
7738 | { | |
7739 | int major, minor, micro; | |
7740 | ||
7741 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
7742 | printf("%s, bad version string\n", "$min_gtk_version"); | |
7743 | exit(1); | |
7744 | } | |
7745 | ||
7746 | if ((GTK_MAJOR_VERSION != gtk_major_version) || | |
7747 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
7748 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
7749 | printf("Headers vs. library version mismatch!\n"); | |
7750 | exit(1); | |
7751 | } | |
7752 | ||
7753 | if (gtk_minor_version == 1) return FALSE; | |
7754 | ||
7755 | return !((gtk_major_version > major) || | |
7756 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
7757 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
7758 | } | |
7759 | ||
7760 | EOF | |
95c8801c | 7761 | if { (eval echo configure:7762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
f6bcfd97 BP |
7762 | then |
7763 | : | |
7764 | else | |
7765 | echo "configure: failed program was:" >&5 | |
7766 | cat conftest.$ac_ext >&5 | |
7767 | rm -fr conftest* | |
7768 | no_gtk=yes | |
7769 | fi | |
7770 | rm -fr conftest* | |
7771 | fi | |
7772 | ||
7773 | CFLAGS="$ac_save_CFLAGS" | |
7774 | LIBS="$ac_save_LIBS" | |
7775 | else | |
7776 | no_gtk=yes | |
7777 | fi | |
7778 | if test "x$no_gtk" = x ; then | |
7779 | echo "$ac_t""yes" 1>&6 | |
7780 | WXGTK127=1 | |
7781 | else | |
7782 | echo "$ac_t""no" 1>&6 | |
7783 | GTK_CFLAGS="" | |
7784 | GTK_LIBS="" | |
7785 | : | |
7786 | fi | |
7787 | ||
7788 | ||
7789 | ||
6f72b082 | 7790 | |
f6bcfd97 BP |
7791 | if test x$gtk_config_exec_prefix != x ; then |
7792 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
7793 | if test x${GTK_CONFIG+set} != xset ; then | |
7794 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
7795 | fi | |
7796 | fi | |
7797 | if test x$gtk_config_prefix != x ; then | |
7798 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
7799 | if test x${GTK_CONFIG+set} != xset ; then | |
7800 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
7801 | fi | |
7802 | fi | |
7803 | ||
7804 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
7805 | set dummy gtk-config; ac_word=$2 | |
7806 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
95c8801c | 7807 | echo "configure:7808: checking for $ac_word" >&5 |
10f2d63a VZ |
7808 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
7809 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7810 | else | |
7811 | case "$GTK_CONFIG" in | |
7812 | /*) | |
7813 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
7814 | ;; | |
7815 | ?:/*) | |
7816 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
7817 | ;; | |
7818 | *) | |
7819 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
7820 | ac_dummy="$PATH" | |
7821 | for ac_dir in $ac_dummy; do | |
7822 | test -z "$ac_dir" && ac_dir=. | |
7823 | if test -f $ac_dir/$ac_word; then | |
7824 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
7825 | break | |
7826 | fi | |
7827 | done | |
7828 | IFS="$ac_save_ifs" | |
7829 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
7830 | ;; | |
7831 | esac | |
7832 | fi | |
7833 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
7834 | if test -n "$GTK_CONFIG"; then | |
7835 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
7836 | else | |
7837 | echo "$ac_t""no" 1>&6 | |
7838 | fi | |
7839 | ||
04165bec | 7840 | min_gtk_version=1.2.3 |
10f2d63a | 7841 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
95c8801c | 7842 | echo "configure:7843: checking for GTK - version >= $min_gtk_version" >&5 |
10f2d63a VZ |
7843 | no_gtk="" |
7844 | if test "$GTK_CONFIG" != "no" ; then | |
7845 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
2224580a | 7846 | GTK_LIBS=`$GTK_CONFIG --libs gthread` |
10f2d63a VZ |
7847 | ac_save_CFLAGS="$CFLAGS" |
7848 | ac_save_LIBS="$LIBS" | |
7849 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
7850 | LIBS="$LIBS $GTK_LIBS" | |
7851 | if test "$cross_compiling" = yes; then | |
7852 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
7853 | else | |
7854 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 7855 | #line 7856 "configure" |
10f2d63a VZ |
7856 | #include "confdefs.h" |
7857 | ||
7858 | #include <gtk/gtk.h> | |
f49f2b0c | 7859 | #include <gtk/gtkfeatures.h> |
10f2d63a | 7860 | #include <stdio.h> |
32832908 | 7861 | #include <stdlib.h> |
10f2d63a VZ |
7862 | |
7863 | int | |
7864 | main () | |
7865 | { | |
7866 | int major, minor, micro; | |
7867 | ||
7868 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
7869 | printf("%s, bad version string\n", "$min_gtk_version"); | |
7870 | exit(1); | |
7871 | } | |
7872 | ||
f49f2b0c RR |
7873 | if ((GTK_MAJOR_VERSION != gtk_major_version) || |
7874 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
7875 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
7876 | printf("Headers vs. library version mismatch!\n"); | |
7877 | exit(1); | |
7878 | } | |
7879 | ||
10f2d63a VZ |
7880 | if (gtk_minor_version == 1) return FALSE; |
7881 | ||
7882 | return !((gtk_major_version > major) || | |
7883 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
7884 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
7885 | } | |
7886 | ||
7887 | EOF | |
95c8801c | 7888 | if { (eval echo configure:7889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
7889 | then |
7890 | : | |
7891 | else | |
7892 | echo "configure: failed program was:" >&5 | |
7893 | cat conftest.$ac_ext >&5 | |
7894 | rm -fr conftest* | |
7895 | no_gtk=yes | |
7896 | fi | |
7897 | rm -fr conftest* | |
7898 | fi | |
7899 | ||
7900 | CFLAGS="$ac_save_CFLAGS" | |
7901 | LIBS="$ac_save_LIBS" | |
7902 | else | |
7903 | no_gtk=yes | |
7904 | fi | |
7905 | if test "x$no_gtk" = x ; then | |
7906 | echo "$ac_t""yes" 1>&6 | |
7907 | WXGTK12=1 | |
7908 | else | |
7909 | echo "$ac_t""no" 1>&6 | |
7910 | GTK_CFLAGS="" | |
7911 | GTK_LIBS="" | |
7e99ad86 | 7912 | : |
10f2d63a VZ |
7913 | fi |
7914 | ||
7915 | ||
7916 | ||
6f72b082 OK |
7917 | |
7918 | fi | |
7919 | ||
7920 | ||
7921 | rm -f conf.gtktest | |
7922 | ||
10f2d63a | 7923 | |
6f72b082 | 7924 | if test "$WXGTK12" != 1 -a "$WXGTK20" != 1; then |
7e99ad86 VZ |
7925 | { echo "configure: error: |
7926 | Please check that gtk-config is in path, the directory | |
7927 | where GTK+ libraries are installed (returned by | |
7928 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
7929 | equivalent variable and GTK+ is version 1.2.3 or above. | |
7930 | " 1>&2; exit 1; } | |
7931 | fi | |
7932 | ||
10f2d63a | 7933 | TOOLKIT_INCLUDE="$GTK_CFLAGS" |
2224580a VZ |
7934 | |
7935 | ||
7936 | GUI_TK_LIBRARY="$GTK_LIBS" | |
7937 | ||
10f2d63a | 7938 | |
dad6c0ea | 7939 | AFMINSTALL=afminstall |
9ad43c8b | 7940 | TOOLKIT=GTK |
10f2d63a | 7941 | GUIDIST=GTK_DIST |
7ec2881a | 7942 | |
2224580a | 7943 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
95c8801c | 7944 | echo "configure:7945: checking for gdk_im_open in -lgdk" >&5 |
7ec2881a RR |
7945 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
7946 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7947 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7948 | else | |
7949 | ac_save_LIBS="$LIBS" | |
7950 | LIBS="-lgdk $LIBS" | |
7951 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 7952 | #line 7953 "configure" |
7ec2881a RR |
7953 | #include "confdefs.h" |
7954 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7955 | /* We use char because int might match the return type of a gcc2 | |
7956 | builtin and then its argument prototype would still apply. */ | |
7957 | char gdk_im_open(); | |
7958 | ||
7959 | int main() { | |
7960 | gdk_im_open() | |
7961 | ; return 0; } | |
7962 | EOF | |
95c8801c | 7963 | if { (eval echo configure:7964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7ec2881a RR |
7964 | rm -rf conftest* |
7965 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7966 | else | |
7967 | echo "configure: failed program was:" >&5 | |
7968 | cat conftest.$ac_ext >&5 | |
7969 | rm -rf conftest* | |
7970 | eval "ac_cv_lib_$ac_lib_var=no" | |
7971 | fi | |
7972 | rm -f conftest* | |
7973 | LIBS="$ac_save_LIBS" | |
7974 | ||
7975 | fi | |
7976 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7977 | echo "$ac_t""yes" 1>&6 | |
7978 | cat >> confdefs.h <<\EOF | |
7979 | #define HAVE_XIM 1 | |
7980 | EOF | |
7981 | ||
7982 | else | |
7983 | echo "$ac_t""no" 1>&6 | |
7984 | fi | |
7985 | ||
10f2d63a VZ |
7986 | fi |
7987 | ||
7988 | if test "$wxUSE_WINE" = 1; then | |
7989 | echo $ac_n "checking for WINE includes""... $ac_c" 1>&6 | |
95c8801c | 7990 | echo "configure:7991: checking for WINE includes" >&5 |
10f2d63a VZ |
7991 | |
7992 | ac_find_includes= | |
7993 | for ac_dir in $SEARCH_INCLUDE; | |
7994 | do | |
7995 | if test -f "$ac_dir/windows.h"; then | |
7996 | ac_find_includes=$ac_dir | |
7997 | break | |
7998 | fi | |
7999 | done | |
8000 | ||
8001 | if test "$ac_find_includes" != "" ; then | |
8002 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
8003 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
8004 | else | |
8005 | echo "$ac_t""no" 1>&6 | |
8006 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
8007 | fi | |
8008 | ||
8009 | XPM_LINK="" | |
8010 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
95c8801c | 8011 | echo "configure:8012: checking for Xpm library" >&5 |
10f2d63a VZ |
8012 | |
8013 | ac_find_libraries= | |
8014 | for ac_dir in $SEARCH_LIB; | |
8015 | do | |
8016 | for ac_extension in a so sl; do | |
8017 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
8018 | ac_find_libraries=$ac_dir | |
8019 | break 2 | |
8020 | fi | |
8021 | done | |
8022 | done | |
8023 | ||
8024 | if test "$ac_find_libraries" != "" ; then | |
8025 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
8026 | XPM_LINK="-lXpm" | |
8027 | cat >> confdefs.h <<\EOF | |
8028 | #define wxHAVE_LIB_XPM 1 | |
8029 | EOF | |
8030 | ||
8031 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
8032 | else | |
8033 | echo "$ac_t""no" 1>&6 | |
8034 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
8035 | fi | |
8036 | ||
8037 | MESA_LINK="" | |
8038 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 | |
95c8801c | 8039 | echo "configure:8040: checking for Mesa library" >&5 |
10f2d63a VZ |
8040 | |
8041 | ac_find_libraries= | |
8042 | for ac_dir in $SEARCH_LIB; | |
8043 | do | |
8044 | for ac_extension in a so sl; do | |
8045 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
8046 | ac_find_libraries=$ac_dir | |
8047 | break 2 | |
8048 | fi | |
8049 | done | |
8050 | done | |
8051 | ||
8052 | if test "$ac_find_libraries" != "" ; then | |
8053 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
8054 | MESA_LINK="-lMesaGL" | |
8055 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
8056 | else | |
8057 | { echo "configure: error: no" 1>&2; exit 1; } | |
8058 | fi | |
8059 | ||
8916026b | 8060 | GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" |
10f2d63a VZ |
8061 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" |
8062 | WXWINE=1 | |
8063 | TOOLKIT=MSW | |
10f2d63a VZ |
8064 | GUIDIST=MSW_DIST |
8065 | fi | |
8066 | ||
37d403aa JS |
8067 | |
8068 | # If we find X, set shell vars x_includes and x_libraries to the | |
ab9b9eab VZ |
8069 | # paths, otherwise set no_x=yes. |
8070 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
8071 | # --without-x overrides everything else, but does not touch the cache. | |
8072 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
95c8801c | 8073 | echo "configure:8074: checking for X" >&5 |
ab9b9eab VZ |
8074 | |
8075 | # Check whether --with-x or --without-x was given. | |
8076 | if test "${with_x+set}" = set; then | |
8077 | withval="$with_x" | |
8078 | : | |
8079 | fi | |
ba337fe7 | 8080 | |
ab9b9eab VZ |
8081 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
8082 | if test "x$with_x" = xno; then | |
8083 | # The user explicitly disabled X. | |
8084 | have_x=disabled | |
8085 | else | |
8086 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
8087 | # Both variables are already set. | |
8088 | have_x=yes | |
8089 | else | |
8090 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then | |
8091 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8092 | else | |
8093 | # One or both of the vars are not set, and there is no cached value. | |
8094 | ac_x_includes=NO ac_x_libraries=NO | |
8095 | rm -fr conftestdir | |
8096 | if mkdir conftestdir; then | |
8097 | cd conftestdir | |
8098 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
8099 | cat > Imakefile <<'EOF' | |
8100 | acfindx: | |
8101 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
8102 | EOF | |
8103 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
8104 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
8105 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
8106 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
10f2d63a | 8107 | for ac_extension in a so sl; do |
ab9b9eab VZ |
8108 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
8109 | test -f $ac_im_libdir/libX11.$ac_extension; then | |
8110 | ac_im_usrlibdir=$ac_im_libdir; break | |
10f2d63a VZ |
8111 | fi |
8112 | done | |
ab9b9eab VZ |
8113 | # Screen out bogus values from the imake configuration. They are |
8114 | # bogus both because they are the default anyway, and because | |
8115 | # using them would break gcc on systems where it needs fixed includes. | |
8116 | case "$ac_im_incroot" in | |
8117 | /usr/include) ;; | |
8118 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; | |
8119 | esac | |
8120 | case "$ac_im_usrlibdir" in | |
8121 | /usr/lib | /lib) ;; | |
8122 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; | |
8123 | esac | |
ba337fe7 | 8124 | fi |
ab9b9eab VZ |
8125 | cd .. |
8126 | rm -fr conftestdir | |
8127 | fi | |
10f2d63a | 8128 | |
ab9b9eab VZ |
8129 | if test "$ac_x_includes" = NO; then |
8130 | # Guess where to find include files, by looking for this one X11 .h file. | |
8131 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
ba337fe7 | 8132 | |
ab9b9eab VZ |
8133 | # First, try using that file with no special directory specified. |
8134 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 8135 | #line 8136 "configure" |
ab9b9eab VZ |
8136 | #include "confdefs.h" |
8137 | #include <$x_direct_test_include> | |
8138 | EOF | |
8139 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
95c8801c | 8140 | { (eval echo configure:8141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
ab9b9eab VZ |
8141 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8142 | if test -z "$ac_err"; then | |
8143 | rm -rf conftest* | |
8144 | # We can compile using X headers with no special include directory. | |
8145 | ac_x_includes= | |
8146 | else | |
8147 | echo "$ac_err" >&5 | |
8148 | echo "configure: failed program was:" >&5 | |
8149 | cat conftest.$ac_ext >&5 | |
8150 | rm -rf conftest* | |
8151 | # Look for the header file in a standard set of common directories. | |
8152 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
8153 | for ac_dir in \ | |
8154 | /usr/X11/include \ | |
8155 | /usr/X11R6/include \ | |
8156 | /usr/X11R5/include \ | |
8157 | /usr/X11R4/include \ | |
8158 | \ | |
8159 | /usr/include/X11 \ | |
8160 | /usr/include/X11R6 \ | |
8161 | /usr/include/X11R5 \ | |
8162 | /usr/include/X11R4 \ | |
8163 | \ | |
8164 | /usr/local/X11/include \ | |
8165 | /usr/local/X11R6/include \ | |
8166 | /usr/local/X11R5/include \ | |
8167 | /usr/local/X11R4/include \ | |
8168 | \ | |
8169 | /usr/local/include/X11 \ | |
8170 | /usr/local/include/X11R6 \ | |
8171 | /usr/local/include/X11R5 \ | |
8172 | /usr/local/include/X11R4 \ | |
8173 | \ | |
8174 | /usr/X386/include \ | |
8175 | /usr/x386/include \ | |
8176 | /usr/XFree86/include/X11 \ | |
8177 | \ | |
8178 | /usr/include \ | |
8179 | /usr/local/include \ | |
8180 | /usr/unsupported/include \ | |
8181 | /usr/athena/include \ | |
8182 | /usr/local/x11r5/include \ | |
8183 | /usr/lpp/Xamples/include \ | |
8184 | \ | |
8185 | /usr/openwin/include \ | |
8186 | /usr/openwin/share/include \ | |
8187 | ; \ | |
10f2d63a | 8188 | do |
ab9b9eab VZ |
8189 | if test -r "$ac_dir/$x_direct_test_include"; then |
8190 | ac_x_includes=$ac_dir | |
10f2d63a VZ |
8191 | break |
8192 | fi | |
8193 | done | |
ab9b9eab VZ |
8194 | fi |
8195 | rm -f conftest* | |
8196 | fi # $ac_x_includes = NO | |
10f2d63a | 8197 | |
ab9b9eab VZ |
8198 | if test "$ac_x_libraries" = NO; then |
8199 | # Check for the libraries. | |
10f2d63a | 8200 | |
ab9b9eab VZ |
8201 | test -z "$x_direct_test_library" && x_direct_test_library=Xt |
8202 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
10f2d63a | 8203 | |
ab9b9eab VZ |
8204 | # See if we find them without any special options. |
8205 | # Don't add to $LIBS permanently. | |
8206 | ac_save_LIBS="$LIBS" | |
8207 | LIBS="-l$x_direct_test_library $LIBS" | |
8208 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 8209 | #line 8210 "configure" |
ab9b9eab | 8210 | #include "confdefs.h" |
10f2d63a | 8211 | |
ab9b9eab VZ |
8212 | int main() { |
8213 | ${x_direct_test_function}() | |
8214 | ; return 0; } | |
8215 | EOF | |
95c8801c | 8216 | if { (eval echo configure:8217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8217 | rm -rf conftest* |
8218 | LIBS="$ac_save_LIBS" | |
8219 | # We can link X programs with no special library path. | |
8220 | ac_x_libraries= | |
8221 | else | |
8222 | echo "configure: failed program was:" >&5 | |
8223 | cat conftest.$ac_ext >&5 | |
8224 | rm -rf conftest* | |
8225 | LIBS="$ac_save_LIBS" | |
8226 | # First see if replacing the include by lib works. | |
8227 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
8228 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
8229 | /usr/X11/lib \ | |
8230 | /usr/X11R6/lib \ | |
8231 | /usr/X11R5/lib \ | |
8232 | /usr/X11R4/lib \ | |
8233 | \ | |
8234 | /usr/lib/X11 \ | |
8235 | /usr/lib/X11R6 \ | |
8236 | /usr/lib/X11R5 \ | |
8237 | /usr/lib/X11R4 \ | |
8238 | \ | |
8239 | /usr/local/X11/lib \ | |
8240 | /usr/local/X11R6/lib \ | |
8241 | /usr/local/X11R5/lib \ | |
8242 | /usr/local/X11R4/lib \ | |
8243 | \ | |
8244 | /usr/local/lib/X11 \ | |
8245 | /usr/local/lib/X11R6 \ | |
8246 | /usr/local/lib/X11R5 \ | |
8247 | /usr/local/lib/X11R4 \ | |
8248 | \ | |
8249 | /usr/X386/lib \ | |
8250 | /usr/x386/lib \ | |
8251 | /usr/XFree86/lib/X11 \ | |
8252 | \ | |
8253 | /usr/lib \ | |
8254 | /usr/local/lib \ | |
8255 | /usr/unsupported/lib \ | |
8256 | /usr/athena/lib \ | |
8257 | /usr/local/x11r5/lib \ | |
8258 | /usr/lpp/Xamples/lib \ | |
8259 | /lib/usr/lib/X11 \ | |
8260 | \ | |
8261 | /usr/openwin/lib \ | |
8262 | /usr/openwin/share/lib \ | |
8263 | ; \ | |
8264 | do | |
8265 | for ac_extension in a so sl; do | |
8266 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then | |
8267 | ac_x_libraries=$ac_dir | |
8268 | break 2 | |
10f2d63a | 8269 | fi |
10f2d63a | 8270 | done |
ab9b9eab VZ |
8271 | done |
8272 | fi | |
8273 | rm -f conftest* | |
8274 | fi # $ac_x_libraries = NO | |
10f2d63a | 8275 | |
ab9b9eab VZ |
8276 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
8277 | # Didn't find X anywhere. Cache the known absence of X. | |
8278 | ac_cv_have_x="have_x=no" | |
8279 | else | |
8280 | # Record where we found X for the cache. | |
8281 | ac_cv_have_x="have_x=yes \ | |
8282 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
8283 | fi | |
8284 | fi | |
10f2d63a | 8285 | fi |
ab9b9eab VZ |
8286 | eval "$ac_cv_have_x" |
8287 | fi # $with_x != no | |
10f2d63a | 8288 | |
ab9b9eab VZ |
8289 | if test "$have_x" != yes; then |
8290 | echo "$ac_t""$have_x" 1>&6 | |
8291 | no_x=yes | |
8292 | else | |
8293 | # If each of the values was on the command line, it overrides each guess. | |
8294 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
8295 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
8296 | # Update the cache value to reflect the command line values. | |
8297 | ac_cv_have_x="have_x=yes \ | |
8298 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
8299 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 | |
8300 | fi | |
10f2d63a | 8301 | |
ab9b9eab VZ |
8302 | if test "$no_x" = yes; then |
8303 | # Not all programs may use this symbol, but it does not hurt to define it. | |
8304 | cat >> confdefs.h <<\EOF | |
8305 | #define X_DISPLAY_MISSING 1 | |
8306 | EOF | |
10f2d63a | 8307 | |
ab9b9eab VZ |
8308 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
8309 | else | |
8310 | if test -n "$x_includes"; then | |
8311 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
10f2d63a VZ |
8312 | fi |
8313 | ||
ab9b9eab VZ |
8314 | # It would also be nice to do this for all -L options, not just this one. |
8315 | if test -n "$x_libraries"; then | |
8316 | X_LIBS="$X_LIBS -L$x_libraries" | |
8317 | # For Solaris; some versions of Sun CC require a space after -R and | |
8318 | # others require no space. Words are not sufficient . . . . | |
8319 | case "`(uname -sr) 2>/dev/null`" in | |
8320 | "SunOS 5"*) | |
8321 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | |
95c8801c | 8322 | echo "configure:8323: checking whether -R must be followed by a space" >&5 |
ab9b9eab VZ |
8323 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
8324 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 8325 | #line 8326 "configure" |
ab9b9eab | 8326 | #include "confdefs.h" |
10f2d63a | 8327 | |
ab9b9eab | 8328 | int main() { |
788deba1 | 8329 | |
ab9b9eab VZ |
8330 | ; return 0; } |
8331 | EOF | |
95c8801c | 8332 | if { (eval echo configure:8333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8333 | rm -rf conftest* |
8334 | ac_R_nospace=yes | |
8335 | else | |
8336 | echo "configure: failed program was:" >&5 | |
8337 | cat conftest.$ac_ext >&5 | |
8338 | rm -rf conftest* | |
8339 | ac_R_nospace=no | |
8340 | fi | |
8341 | rm -f conftest* | |
8342 | if test $ac_R_nospace = yes; then | |
8343 | echo "$ac_t""no" 1>&6 | |
8344 | X_LIBS="$X_LIBS -R$x_libraries" | |
8345 | else | |
8346 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
8347 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 8348 | #line 8349 "configure" |
ab9b9eab | 8349 | #include "confdefs.h" |
788deba1 | 8350 | |
ab9b9eab VZ |
8351 | int main() { |
8352 | ||
8353 | ; return 0; } | |
8354 | EOF | |
95c8801c | 8355 | if { (eval echo configure:8356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8356 | rm -rf conftest* |
8357 | ac_R_space=yes | |
8358 | else | |
8359 | echo "configure: failed program was:" >&5 | |
8360 | cat conftest.$ac_ext >&5 | |
8361 | rm -rf conftest* | |
8362 | ac_R_space=no | |
8363 | fi | |
8364 | rm -f conftest* | |
8365 | if test $ac_R_space = yes; then | |
8366 | echo "$ac_t""yes" 1>&6 | |
8367 | X_LIBS="$X_LIBS -R $x_libraries" | |
8368 | else | |
8369 | echo "$ac_t""neither works" 1>&6 | |
8370 | fi | |
8371 | fi | |
8372 | LIBS="$ac_xsave_LIBS" | |
8373 | esac | |
8374 | fi | |
8375 | ||
8376 | # Check for system-dependent libraries X programs must link with. | |
8377 | # Do this before checking for the system-independent R6 libraries | |
8378 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
8379 | ||
8380 | if test "$ISC" = yes; then | |
8381 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
8382 | else | |
8383 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | |
8384 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
8385 | # the Alpha needs dnet_stub (dnet does not exist). | |
8386 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
95c8801c | 8387 | echo "configure:8388: checking for dnet_ntoa in -ldnet" >&5 |
ab9b9eab VZ |
8388 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
8389 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8390 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8391 | else | |
8392 | ac_save_LIBS="$LIBS" | |
8393 | LIBS="-ldnet $LIBS" | |
8394 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 8395 | #line 8396 "configure" |
ab9b9eab VZ |
8396 | #include "confdefs.h" |
8397 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8398 | /* We use char because int might match the return type of a gcc2 | |
8399 | builtin and then its argument prototype would still apply. */ | |
8400 | char dnet_ntoa(); | |
8401 | ||
8402 | int main() { | |
8403 | dnet_ntoa() | |
8404 | ; return 0; } | |
8405 | EOF | |
95c8801c | 8406 | if { (eval echo configure:8407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8407 | rm -rf conftest* |
8408 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8409 | else | |
8410 | echo "configure: failed program was:" >&5 | |
8411 | cat conftest.$ac_ext >&5 | |
8412 | rm -rf conftest* | |
8413 | eval "ac_cv_lib_$ac_lib_var=no" | |
8414 | fi | |
8415 | rm -f conftest* | |
8416 | LIBS="$ac_save_LIBS" | |
8417 | ||
8418 | fi | |
8419 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8420 | echo "$ac_t""yes" 1>&6 | |
8421 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
8422 | else | |
8423 | echo "$ac_t""no" 1>&6 | |
8424 | fi | |
8425 | ||
8426 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
8427 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | |
95c8801c | 8428 | echo "configure:8429: checking for dnet_ntoa in -ldnet_stub" >&5 |
ab9b9eab VZ |
8429 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
8430 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8431 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8432 | else | |
8433 | ac_save_LIBS="$LIBS" | |
8434 | LIBS="-ldnet_stub $LIBS" | |
8435 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 8436 | #line 8437 "configure" |
ab9b9eab VZ |
8437 | #include "confdefs.h" |
8438 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8439 | /* We use char because int might match the return type of a gcc2 | |
8440 | builtin and then its argument prototype would still apply. */ | |
8441 | char dnet_ntoa(); | |
8442 | ||
8443 | int main() { | |
8444 | dnet_ntoa() | |
8445 | ; return 0; } | |
8446 | EOF | |
95c8801c | 8447 | if { (eval echo configure:8448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8448 | rm -rf conftest* |
8449 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8450 | else | |
8451 | echo "configure: failed program was:" >&5 | |
8452 | cat conftest.$ac_ext >&5 | |
8453 | rm -rf conftest* | |
8454 | eval "ac_cv_lib_$ac_lib_var=no" | |
8455 | fi | |
8456 | rm -f conftest* | |
8457 | LIBS="$ac_save_LIBS" | |
8458 | ||
8459 | fi | |
8460 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8461 | echo "$ac_t""yes" 1>&6 | |
8462 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
8463 | else | |
8464 | echo "$ac_t""no" 1>&6 | |
8465 | fi | |
8466 | ||
8467 | fi | |
8468 | ||
8469 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
8470 | # to get the SysV transport functions. | |
8471 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | |
8472 | # needs -lnsl. | |
8473 | # The nsl library prevents programs from opening the X display | |
8474 | # on Irix 5.2, according to dickey@clark.net. | |
8475 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
95c8801c | 8476 | echo "configure:8477: checking for gethostbyname" >&5 |
ab9b9eab VZ |
8477 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
8478 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8479 | else | |
8480 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 8481 | #line 8482 "configure" |
ab9b9eab VZ |
8482 | #include "confdefs.h" |
8483 | /* System header to define __stub macros and hopefully few prototypes, | |
8484 | which can conflict with char gethostbyname(); below. */ | |
8485 | #include <assert.h> | |
8486 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8487 | /* We use char because int might match the return type of a gcc2 | |
8488 | builtin and then its argument prototype would still apply. */ | |
8489 | char gethostbyname(); | |
8490 | ||
8491 | int main() { | |
8492 | ||
8493 | /* The GNU C library defines this for functions which it implements | |
8494 | to always fail with ENOSYS. Some functions are actually named | |
8495 | something starting with __ and the normal name is an alias. */ | |
8496 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
8497 | choke me | |
8498 | #else | |
e8482f24 | 8499 | gethostbyname(); |
ab9b9eab VZ |
8500 | #endif |
8501 | ||
8502 | ; return 0; } | |
8503 | EOF | |
95c8801c | 8504 | if { (eval echo configure:8505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8505 | rm -rf conftest* |
8506 | eval "ac_cv_func_gethostbyname=yes" | |
8507 | else | |
8508 | echo "configure: failed program was:" >&5 | |
8509 | cat conftest.$ac_ext >&5 | |
8510 | rm -rf conftest* | |
8511 | eval "ac_cv_func_gethostbyname=no" | |
8512 | fi | |
8513 | rm -f conftest* | |
8514 | fi | |
8515 | ||
8516 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
8517 | echo "$ac_t""yes" 1>&6 | |
8518 | : | |
8519 | else | |
8520 | echo "$ac_t""no" 1>&6 | |
8521 | fi | |
8522 | ||
8523 | if test $ac_cv_func_gethostbyname = no; then | |
8524 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
95c8801c | 8525 | echo "configure:8526: checking for gethostbyname in -lnsl" >&5 |
ab9b9eab VZ |
8526 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
8527 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8528 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8529 | else | |
8530 | ac_save_LIBS="$LIBS" | |
8531 | LIBS="-lnsl $LIBS" | |
8532 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 8533 | #line 8534 "configure" |
ab9b9eab VZ |
8534 | #include "confdefs.h" |
8535 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8536 | /* We use char because int might match the return type of a gcc2 | |
8537 | builtin and then its argument prototype would still apply. */ | |
8538 | char gethostbyname(); | |
8539 | ||
8540 | int main() { | |
8541 | gethostbyname() | |
8542 | ; return 0; } | |
8543 | EOF | |
95c8801c | 8544 | if { (eval echo configure:8545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8545 | rm -rf conftest* |
8546 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8547 | else | |
8548 | echo "configure: failed program was:" >&5 | |
8549 | cat conftest.$ac_ext >&5 | |
8550 | rm -rf conftest* | |
8551 | eval "ac_cv_lib_$ac_lib_var=no" | |
8552 | fi | |
8553 | rm -f conftest* | |
8554 | LIBS="$ac_save_LIBS" | |
8555 | ||
8556 | fi | |
8557 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8558 | echo "$ac_t""yes" 1>&6 | |
8559 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
8560 | else | |
8561 | echo "$ac_t""no" 1>&6 | |
8562 | fi | |
8563 | ||
8564 | fi | |
8565 | ||
8566 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
8567 | # socket/setsockopt and other routines are undefined under SCO ODT | |
8568 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
8569 | # on later versions), says simon@lia.di.epfl.ch: it contains | |
8570 | # gethostby* variants that don't use the nameserver (or something). | |
8571 | # -lsocket must be given before -lnsl if both are needed. | |
8572 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
8573 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
95c8801c | 8574 | echo "configure:8575: checking for connect" >&5 |
ab9b9eab VZ |
8575 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
8576 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8577 | else | |
8578 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 8579 | #line 8580 "configure" |
ab9b9eab VZ |
8580 | #include "confdefs.h" |
8581 | /* System header to define __stub macros and hopefully few prototypes, | |
8582 | which can conflict with char connect(); below. */ | |
8583 | #include <assert.h> | |
8584 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8585 | /* We use char because int might match the return type of a gcc2 | |
8586 | builtin and then its argument prototype would still apply. */ | |
8587 | char connect(); | |
8588 | ||
8589 | int main() { | |
8590 | ||
8591 | /* The GNU C library defines this for functions which it implements | |
8592 | to always fail with ENOSYS. Some functions are actually named | |
8593 | something starting with __ and the normal name is an alias. */ | |
8594 | #if defined (__stub_connect) || defined (__stub___connect) | |
8595 | choke me | |
8596 | #else | |
e8482f24 | 8597 | connect(); |
ab9b9eab VZ |
8598 | #endif |
8599 | ||
8600 | ; return 0; } | |
8601 | EOF | |
95c8801c | 8602 | if { (eval echo configure:8603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8603 | rm -rf conftest* |
8604 | eval "ac_cv_func_connect=yes" | |
8605 | else | |
8606 | echo "configure: failed program was:" >&5 | |
8607 | cat conftest.$ac_ext >&5 | |
8608 | rm -rf conftest* | |
8609 | eval "ac_cv_func_connect=no" | |
8610 | fi | |
8611 | rm -f conftest* | |
8612 | fi | |
8613 | ||
8614 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
8615 | echo "$ac_t""yes" 1>&6 | |
8616 | : | |
8617 | else | |
8618 | echo "$ac_t""no" 1>&6 | |
8619 | fi | |
8620 | ||
8621 | if test $ac_cv_func_connect = no; then | |
8622 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 | |
95c8801c | 8623 | echo "configure:8624: checking for connect in -lsocket" >&5 |
ab9b9eab VZ |
8624 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
8625 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8626 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8627 | else | |
8628 | ac_save_LIBS="$LIBS" | |
8629 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
8630 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 8631 | #line 8632 "configure" |
ab9b9eab VZ |
8632 | #include "confdefs.h" |
8633 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8634 | /* We use char because int might match the return type of a gcc2 | |
8635 | builtin and then its argument prototype would still apply. */ | |
8636 | char connect(); | |
8637 | ||
8638 | int main() { | |
8639 | connect() | |
8640 | ; return 0; } | |
8641 | EOF | |
95c8801c | 8642 | if { (eval echo configure:8643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8643 | rm -rf conftest* |
8644 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8645 | else | |
8646 | echo "configure: failed program was:" >&5 | |
8647 | cat conftest.$ac_ext >&5 | |
8648 | rm -rf conftest* | |
8649 | eval "ac_cv_lib_$ac_lib_var=no" | |
8650 | fi | |
8651 | rm -f conftest* | |
8652 | LIBS="$ac_save_LIBS" | |
8653 | ||
8654 | fi | |
8655 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8656 | echo "$ac_t""yes" 1>&6 | |
8657 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
8658 | else | |
8659 | echo "$ac_t""no" 1>&6 | |
8660 | fi | |
8661 | ||
8662 | fi | |
8663 | ||
8664 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. | |
8665 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
95c8801c | 8666 | echo "configure:8667: checking for remove" >&5 |
ab9b9eab VZ |
8667 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
8668 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8669 | else | |
8670 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 8671 | #line 8672 "configure" |
ab9b9eab VZ |
8672 | #include "confdefs.h" |
8673 | /* System header to define __stub macros and hopefully few prototypes, | |
8674 | which can conflict with char remove(); below. */ | |
8675 | #include <assert.h> | |
8676 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8677 | /* We use char because int might match the return type of a gcc2 | |
8678 | builtin and then its argument prototype would still apply. */ | |
8679 | char remove(); | |
8680 | ||
8681 | int main() { | |
8682 | ||
8683 | /* The GNU C library defines this for functions which it implements | |
8684 | to always fail with ENOSYS. Some functions are actually named | |
8685 | something starting with __ and the normal name is an alias. */ | |
8686 | #if defined (__stub_remove) || defined (__stub___remove) | |
8687 | choke me | |
8688 | #else | |
e8482f24 | 8689 | remove(); |
ab9b9eab VZ |
8690 | #endif |
8691 | ||
8692 | ; return 0; } | |
8693 | EOF | |
95c8801c | 8694 | if { (eval echo configure:8695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8695 | rm -rf conftest* |
8696 | eval "ac_cv_func_remove=yes" | |
8697 | else | |
8698 | echo "configure: failed program was:" >&5 | |
8699 | cat conftest.$ac_ext >&5 | |
8700 | rm -rf conftest* | |
8701 | eval "ac_cv_func_remove=no" | |
8702 | fi | |
8703 | rm -f conftest* | |
8704 | fi | |
8705 | ||
8706 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
8707 | echo "$ac_t""yes" 1>&6 | |
8708 | : | |
8709 | else | |
8710 | echo "$ac_t""no" 1>&6 | |
8711 | fi | |
8712 | ||
8713 | if test $ac_cv_func_remove = no; then | |
8714 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | |
95c8801c | 8715 | echo "configure:8716: checking for remove in -lposix" >&5 |
ab9b9eab VZ |
8716 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
8717 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8718 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8719 | else | |
8720 | ac_save_LIBS="$LIBS" | |
8721 | LIBS="-lposix $LIBS" | |
8722 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 8723 | #line 8724 "configure" |
ab9b9eab VZ |
8724 | #include "confdefs.h" |
8725 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8726 | /* We use char because int might match the return type of a gcc2 | |
8727 | builtin and then its argument prototype would still apply. */ | |
8728 | char remove(); | |
8729 | ||
8730 | int main() { | |
8731 | remove() | |
8732 | ; return 0; } | |
8733 | EOF | |
95c8801c | 8734 | if { (eval echo configure:8735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8735 | rm -rf conftest* |
8736 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8737 | else | |
8738 | echo "configure: failed program was:" >&5 | |
8739 | cat conftest.$ac_ext >&5 | |
8740 | rm -rf conftest* | |
8741 | eval "ac_cv_lib_$ac_lib_var=no" | |
8742 | fi | |
8743 | rm -f conftest* | |
8744 | LIBS="$ac_save_LIBS" | |
8745 | ||
8746 | fi | |
8747 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8748 | echo "$ac_t""yes" 1>&6 | |
8749 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
8750 | else | |
8751 | echo "$ac_t""no" 1>&6 | |
8752 | fi | |
8753 | ||
8754 | fi | |
8755 | ||
8756 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
8757 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 | |
95c8801c | 8758 | echo "configure:8759: checking for shmat" >&5 |
ab9b9eab VZ |
8759 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
8760 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8761 | else | |
8762 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 8763 | #line 8764 "configure" |
ab9b9eab VZ |
8764 | #include "confdefs.h" |
8765 | /* System header to define __stub macros and hopefully few prototypes, | |
8766 | which can conflict with char shmat(); below. */ | |
8767 | #include <assert.h> | |
8768 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8769 | /* We use char because int might match the return type of a gcc2 | |
8770 | builtin and then its argument prototype would still apply. */ | |
8771 | char shmat(); | |
8772 | ||
8773 | int main() { | |
8774 | ||
8775 | /* The GNU C library defines this for functions which it implements | |
8776 | to always fail with ENOSYS. Some functions are actually named | |
8777 | something starting with __ and the normal name is an alias. */ | |
8778 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
8779 | choke me | |
8780 | #else | |
e8482f24 | 8781 | shmat(); |
ab9b9eab VZ |
8782 | #endif |
8783 | ||
8784 | ; return 0; } | |
8785 | EOF | |
95c8801c | 8786 | if { (eval echo configure:8787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8787 | rm -rf conftest* |
8788 | eval "ac_cv_func_shmat=yes" | |
8789 | else | |
8790 | echo "configure: failed program was:" >&5 | |
8791 | cat conftest.$ac_ext >&5 | |
8792 | rm -rf conftest* | |
8793 | eval "ac_cv_func_shmat=no" | |
8794 | fi | |
8795 | rm -f conftest* | |
8796 | fi | |
8797 | ||
8798 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
8799 | echo "$ac_t""yes" 1>&6 | |
8800 | : | |
8801 | else | |
8802 | echo "$ac_t""no" 1>&6 | |
8803 | fi | |
8804 | ||
8805 | if test $ac_cv_func_shmat = no; then | |
8806 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | |
95c8801c | 8807 | echo "configure:8808: checking for shmat in -lipc" >&5 |
ab9b9eab VZ |
8808 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
8809 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8810 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8811 | else | |
8812 | ac_save_LIBS="$LIBS" | |
8813 | LIBS="-lipc $LIBS" | |
8814 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 8815 | #line 8816 "configure" |
ab9b9eab VZ |
8816 | #include "confdefs.h" |
8817 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8818 | /* We use char because int might match the return type of a gcc2 | |
8819 | builtin and then its argument prototype would still apply. */ | |
8820 | char shmat(); | |
8821 | ||
8822 | int main() { | |
8823 | shmat() | |
8824 | ; return 0; } | |
8825 | EOF | |
95c8801c | 8826 | if { (eval echo configure:8827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8827 | rm -rf conftest* |
8828 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8829 | else | |
8830 | echo "configure: failed program was:" >&5 | |
8831 | cat conftest.$ac_ext >&5 | |
8832 | rm -rf conftest* | |
8833 | eval "ac_cv_lib_$ac_lib_var=no" | |
8834 | fi | |
8835 | rm -f conftest* | |
8836 | LIBS="$ac_save_LIBS" | |
8837 | ||
8838 | fi | |
8839 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8840 | echo "$ac_t""yes" 1>&6 | |
8841 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
8842 | else | |
8843 | echo "$ac_t""no" 1>&6 | |
8844 | fi | |
8845 | ||
8846 | fi | |
8847 | fi | |
8848 | ||
8849 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
8850 | ac_save_LDFLAGS="$LDFLAGS" | |
8851 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
8852 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
8853 | # check for ICE first), but we must link in the order -lSM -lICE or | |
8854 | # we get undefined symbols. So assume we have SM if we have ICE. | |
8855 | # These have to be linked with before -lX11, unlike the other | |
8856 | # libraries we check for below, so use a different variable. | |
8857 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | |
8858 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
95c8801c | 8859 | echo "configure:8860: checking for IceConnectionNumber in -lICE" >&5 |
ab9b9eab VZ |
8860 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
8861 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8862 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8863 | else | |
8864 | ac_save_LIBS="$LIBS" | |
8865 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
8866 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 8867 | #line 8868 "configure" |
ab9b9eab VZ |
8868 | #include "confdefs.h" |
8869 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8870 | /* We use char because int might match the return type of a gcc2 | |
8871 | builtin and then its argument prototype would still apply. */ | |
8872 | char IceConnectionNumber(); | |
8873 | ||
8874 | int main() { | |
8875 | IceConnectionNumber() | |
8876 | ; return 0; } | |
8877 | EOF | |
95c8801c | 8878 | if { (eval echo configure:8879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8879 | rm -rf conftest* |
8880 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8881 | else | |
8882 | echo "configure: failed program was:" >&5 | |
8883 | cat conftest.$ac_ext >&5 | |
8884 | rm -rf conftest* | |
8885 | eval "ac_cv_lib_$ac_lib_var=no" | |
8886 | fi | |
8887 | rm -f conftest* | |
8888 | LIBS="$ac_save_LIBS" | |
8889 | ||
8890 | fi | |
8891 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8892 | echo "$ac_t""yes" 1>&6 | |
8893 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
8894 | else | |
8895 | echo "$ac_t""no" 1>&6 | |
8896 | fi | |
8897 | ||
8898 | LDFLAGS="$ac_save_LDFLAGS" | |
8899 | ||
8900 | fi | |
8901 | ||
37d403aa JS |
8902 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
8903 | LDFLAGS="$LDFLAGS $X_LIBS" | |
ab9b9eab | 8904 | |
37d403aa | 8905 | if test "$wxUSE_MOTIF" = 1; then |
ab9b9eab | 8906 | if test "$no_x" = "yes"; then |
37d403aa | 8907 | { echo "configure: error: X11 not found" 1>&2; exit 1; } |
ab9b9eab VZ |
8908 | fi |
8909 | ||
8910 | GUI_TK_LIBRARY="$X_LIBS" | |
8911 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
8912 | ||
dad6c0ea VZ |
8913 | AFMINSTALL=afminstall |
8914 | ||
ab9b9eab | 8915 | |
cd6d6d5b VZ |
8916 | COMPILED_X_PROGRAM=0 |
8917 | ||
ab9b9eab | 8918 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 |
95c8801c | 8919 | echo "configure:8920: checking for Motif/Lesstif headers" >&5 |
ab9b9eab VZ |
8920 | |
8921 | ac_find_includes= | |
8922 | for ac_dir in $SEARCH_INCLUDE; | |
8923 | do | |
8924 | if test -f "$ac_dir/Xm/Xm.h"; then | |
8925 | ac_find_includes=$ac_dir | |
8926 | break | |
8927 | fi | |
8928 | done | |
8929 | ||
8930 | if test "$ac_find_includes" != "" ; then | |
8931 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
8932 | else | |
cd6d6d5b | 8933 | cat > conftest.$ac_ext <<EOF |
95c8801c | 8934 | #line 8935 "configure" |
cd6d6d5b VZ |
8935 | #include "confdefs.h" |
8936 | ||
8937 | #include <Xm/Xm.h> | |
8938 | ||
8939 | int main() { | |
8940 | ||
8941 | int version; | |
8942 | ||
8943 | version = xmUseVersion; | |
8944 | ||
8945 | ; return 0; } | |
8946 | EOF | |
95c8801c | 8947 | if { (eval echo configure:8948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
cd6d6d5b VZ |
8948 | rm -rf conftest* |
8949 | ||
8950 | echo "$ac_t""found in default search path" 1>&6 | |
8951 | COMPILED_X_PROGRAM=1 | |
8952 | ||
8953 | else | |
8954 | echo "configure: failed program was:" >&5 | |
8955 | cat conftest.$ac_ext >&5 | |
8956 | rm -rf conftest* | |
8957 | ||
8958 | echo "$ac_t""no" 1>&6 | |
8959 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
8960 | ||
8961 | ||
8962 | fi | |
8963 | rm -f conftest* | |
ab9b9eab VZ |
8964 | fi |
8965 | ||
cd6d6d5b VZ |
8966 | if test "$COMPILED_X_PROGRAM" = 0; then |
8967 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
95c8801c | 8968 | echo "configure:8969: checking for Motif/Lesstif library" >&5 |
cd6d6d5b | 8969 | |
ab9b9eab VZ |
8970 | ac_find_libraries= |
8971 | for ac_dir in $SEARCH_LIB; | |
8972 | do | |
8973 | for ac_extension in a so sl; do | |
8974 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
8975 | ac_find_libraries=$ac_dir | |
8976 | break 2 | |
8977 | fi | |
8978 | done | |
8979 | done | |
8980 | ||
cd6d6d5b VZ |
8981 | if test "$ac_find_libraries" != "" ; then |
8982 | ||
ab9b9eab VZ |
8983 | ac_path_to_include=$ac_find_includes |
8984 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
8985 | result=$? | |
8986 | if test $result = 0; then | |
8987 | ac_path_to_include="" | |
8988 | else | |
8989 | ac_path_to_include="-I$ac_find_includes" | |
8990 | fi | |
8991 | ||
cd6d6d5b | 8992 | |
ab9b9eab VZ |
8993 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
8994 | result=$? | |
8995 | if test $result = 0; then | |
8996 | ac_path_to_link="" | |
8997 | else | |
8998 | ac_path_to_link="-L$ac_find_libraries" | |
8999 | fi | |
9000 | ||
9001 | ||
cd6d6d5b VZ |
9002 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" |
9003 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include" | |
9004 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
9005 | else | |
9006 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 9007 | #line 9008 "configure" |
cd6d6d5b | 9008 | #include "confdefs.h" |
ab9b9eab | 9009 | |
cd6d6d5b VZ |
9010 | #include <Xm/Xm.h> |
9011 | ||
9012 | int main() { | |
ab9b9eab | 9013 | |
cd6d6d5b | 9014 | int version; |
ab9b9eab | 9015 | |
cd6d6d5b VZ |
9016 | version = xmUseVersion; |
9017 | ||
9018 | ; return 0; } | |
9019 | EOF | |
95c8801c | 9020 | if { (eval echo configure:9021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
cd6d6d5b VZ |
9021 | rm -rf conftest* |
9022 | ||
9023 | echo "$ac_t""found in default search path" 1>&6 | |
9024 | COMPILED_X_PROGRAM=1 | |
9025 | ||
9026 | else | |
9027 | echo "configure: failed program was:" >&5 | |
9028 | cat conftest.$ac_ext >&5 | |
9029 | rm -rf conftest* | |
9030 | ||
9031 | echo "$ac_t""no" 1>&6 | |
9032 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
9033 | ||
9034 | ||
9035 | fi | |
9036 | rm -f conftest* | |
9037 | fi | |
ab9b9eab VZ |
9038 | fi |
9039 | ||
cd6d6d5b | 9040 | |
ab9b9eab VZ |
9041 | XPM_LINK="" |
9042 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
95c8801c | 9043 | echo "configure:9044: checking for Xpm library" >&5 |
ab9b9eab VZ |
9044 | |
9045 | ac_find_libraries= | |
9046 | for ac_dir in $SEARCH_LIB; | |
9047 | do | |
9048 | for ac_extension in a so sl; do | |
9049 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
9050 | ac_find_libraries=$ac_dir | |
9051 | break 2 | |
9052 | fi | |
9053 | done | |
9054 | done | |
9055 | ||
9056 | if test "$ac_find_libraries" != "" ; then | |
9057 | ||
9058 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
9059 | result=$? | |
9060 | if test $result = 0; then | |
9061 | ac_path_to_link="" | |
9062 | else | |
9063 | ac_path_to_link="-L$ac_find_libraries" | |
9064 | fi | |
9065 | ||
9066 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" | |
9067 | XPM_LINK="-lXpm " | |
9068 | cat >> confdefs.h <<\EOF | |
9069 | #define wxHAVE_LIB_XPM 1 | |
9070 | EOF | |
9071 | ||
9072 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
9073 | else | |
cd6d6d5b | 9074 | cat > conftest.$ac_ext <<EOF |
95c8801c | 9075 | #line 9076 "configure" |
cd6d6d5b VZ |
9076 | #include "confdefs.h" |
9077 | ||
9078 | #include <X11/xpm.h> | |
9079 | ||
9080 | int main() { | |
9081 | ||
9082 | int version; | |
9083 | ||
9084 | version = XpmLibraryVersion(); | |
9085 | ||
9086 | ; return 0; } | |
9087 | EOF | |
95c8801c | 9088 | if { (eval echo configure:9089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
cd6d6d5b VZ |
9089 | rm -rf conftest* |
9090 | ||
f6bcfd97 BP |
9091 | XPM_LINK="-lXpm " |
9092 | cat >> confdefs.h <<\EOF | |
3ace2e6d SN |
9093 | #define wxHAVE_LIB_XPM 1 |
9094 | EOF | |
9095 | ||
9096 | echo "$ac_t""found in default search path" 1>&6 | |
cd6d6d5b VZ |
9097 | COMPILED_X_PROGRAM=0 |
9098 | ||
9099 | else | |
9100 | echo "configure: failed program was:" >&5 | |
9101 | cat conftest.$ac_ext >&5 | |
9102 | rm -rf conftest* | |
9103 | ||
9104 | echo "$ac_t""no" 1>&6 | |
9105 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
9106 | ||
9107 | ||
9108 | fi | |
9109 | rm -f conftest* | |
ab9b9eab VZ |
9110 | fi |
9111 | ||
8916026b | 9112 | GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11" |
ab9b9eab VZ |
9113 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" |
9114 | TOOLKIT=MOTIF | |
10f2d63a VZ |
9115 | GUIDIST=MOTIF_DIST |
9116 | fi | |
9117 | ||
b4085ce6 GD |
9118 | if test "$wxUSE_MAC" = 1; then |
9119 | TOOLKIT=MAC | |
c521c494 | 9120 | GUIDIST=MACX_DIST |
b4085ce6 GD |
9121 | fi |
9122 | ||
e07802fc VZ |
9123 | if test "$wxUSE_PM" = 1; then |
9124 | TOOLKIT=PM | |
e07802fc VZ |
9125 | GUIDIST=GTK_DIST |
9126 | fi | |
9127 | ||
9128 | if test "$TOOLKIT" != "PM" ; then | |
ec14dd32 | 9129 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` |
e07802fc VZ |
9130 | else |
9131 | TOOLKIT_DIR="os2" | |
9132 | fi | |
10f2d63a | 9133 | |
f6bcfd97 BP |
9134 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then |
9135 | TOOLKIT_NAME="${TOOLKIT_DIR}d" | |
9136 | else | |
9137 | TOOLKIT_NAME="${TOOLKIT_DIR}" | |
9138 | fi | |
9139 | ||
2224580a | 9140 | TOOLKIT_DEF="-D__WX${TOOLKIT}__" |
10f2d63a | 9141 | |
f6bcfd97 | 9142 | WX_LIBRARY="wx_${TOOLKIT_NAME}" |
10f2d63a | 9143 | |
bdad4e7e | 9144 | ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(OGLOBJS)" |
3fcdd07b | 9145 | |
9ad43c8b RL |
9146 | if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then |
9147 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
3fcdd07b VZ |
9148 | fi |
9149 | ||
d9d8273d | 9150 | if test "$wxUSE_LIBJPEG" = "yes" ; then |
2224580a | 9151 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" |
d9d8273d RR |
9152 | fi |
9153 | if test "$wxUSE_LIBTIFF" = "yes" ; then | |
9154 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
9155 | fi | |
9156 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
9157 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
9158 | fi | |
9159 | if test "$wxUSE_ZLIB" = "yes" ; then | |
9160 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
9161 | fi | |
3fed1840 RR |
9162 | if test "$wxUSE_FREETYPE" = "yes" ; then |
9163 | ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)" | |
9164 | fi | |
bdad4e7e | 9165 | ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS) \$(OGLDEPS)" |
2224580a VZ |
9166 | |
9167 | PORT_FILES="src/\$(TOOLKITDIR)/files.lst" | |
9168 | RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst" | |
9169 | RPM_SPEC="wx\$(TOOLKIT).spec" | |
9170 | ||
9171 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
9172 | DISTDIR="wx\$(TOOLKIT)" | |
10f2d63a | 9173 | else |
dad6c0ea VZ |
9174 | USE_GUI=0 |
9175 | ||
f6bcfd97 BP |
9176 | TOOLKIT_DIR="base" |
9177 | ||
9178 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
9179 | TOOLKIT_NAME="${TOOLKIT_DIR}d" | |
9180 | else | |
9181 | TOOLKIT_NAME="${TOOLKIT_DIR}" | |
9182 | fi | |
9183 | ||
07eb77a6 RL |
9184 | TOOLKIT_DEF="-D__WXBASE__" |
9185 | ||
b4085ce6 GD |
9186 | ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)" |
9187 | ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)" | |
10f2d63a | 9188 | |
a20b6d3a VZ |
9189 | if test "$wxUSE_ZLIB" = "yes" ; then |
9190 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
9191 | fi | |
9192 | ||
f6bcfd97 | 9193 | WX_LIBRARY="wx_${TOOLKIT_NAME}" |
2224580a VZ |
9194 | |
9195 | PORT_FILES="src/files.lst" | |
9196 | RPM_FILES="src/rpmfiles.lst" | |
9197 | RPM_SPEC="wxBase.spec" | |
9198 | ||
9199 | GUIDIST="BASE_DIST" | |
9200 | DISTDIR="wxBase" | |
10f2d63a VZ |
9201 | fi |
9202 | ||
9203 | WX_LIBRARY_NAME="lib${WX_LIBRARY}.la" | |
bdad4e7e | 9204 | WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la" |
10f2d63a VZ |
9205 | |
9206 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
bdad4e7e | 9207 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a" |
10f2d63a VZ |
9208 | |
9209 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
bdad4e7e | 9210 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" |
10f2d63a VZ |
9211 | |
9212 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}" | |
9213 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so" | |
9214 | WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so" | |
bdad4e7e RR |
9215 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}" |
9216 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so" | |
9217 | WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so" | |
10f2d63a VZ |
9218 | |
9219 | SHARED_LD= | |
9220 | PIC_FLAG= | |
9221 | WX_ALL= | |
9222 | WX_ALL_INSTALLED= | |
1d62a8b4 | 9223 | BURNT_LIBRARY_NAME= |
f6bcfd97 | 9224 | WX_TARGET_LIBRARY_SONAME= |
10f2d63a | 9225 | |
b12915c1 | 9226 | |
10f2d63a VZ |
9227 | if test "$wxUSE_SHARED" = "yes"; then |
9228 | case "${host}" in | |
9229 | *-hp-hpux* ) | |
9230 | if test "$GCC" = yes ; then | |
69ffe1d2 | 9231 | SHARED_LD="${CC} -shared -fPIC -o" |
10f2d63a VZ |
9232 | PIC_FLAG="-fPIC" |
9233 | else | |
f6bcfd97 BP |
9234 | LDFLAGS="-L/usr/lib" |
9235 | ||
10f2d63a VZ |
9236 | SHARED_LD="${CXX} -b -o" |
9237 | PIC_FLAG="+Z" | |
9238 | fi | |
f6bcfd97 BP |
9239 | WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl" |
9240 | WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl" | |
c661ecca | 9241 | if test "$wxUSE_OPENGL" = "yes"; then |
f6bcfd97 | 9242 | WX_ALL_INSTALLED="preinstall_gl" |
c661ecca RR |
9243 | WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}" |
9244 | else | |
9245 | WX_ALL="${WX_LIBRARY_NAME_SHARED}" | |
9246 | fi | |
10f2d63a | 9247 | ;; |
b12915c1 VZ |
9248 | |
9249 | *-*-linux* ) | |
10f2d63a VZ |
9250 | SHARED_LD="${CC} -shared -o" |
9251 | PIC_FLAG="-fPIC" | |
00cf1208 | 9252 | if test "$wxUSE_BURNT_NAME" = "yes" ; then |
05cdfc6f | 9253 | BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}" |
bdad4e7e | 9254 | BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" |
f6bcfd97 | 9255 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" |
00cf1208 | 9256 | fi |
c661ecca RR |
9257 | if test "$wxUSE_OPENGL" = "yes"; then |
9258 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
9259 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
9260 | else | |
9261 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
9262 | WX_ALL="CREATE_LINKS" | |
422107f9 | 9263 | fi |
00cf1208 | 9264 | ;; |
10f2d63a VZ |
9265 | *-*-irix5* | *-*-irix6* ) |
9266 | if test "$GCC" = yes ; then | |
9267 | SHARED_LD="${CC} -shared -o" | |
9268 | PIC_FLAG="-fPIC" | |
9269 | else | |
9270 | SHARED_LD="${CXX} -shared -o" | |
9271 | fi | |
c661ecca RR |
9272 | if test "$wxUSE_OPENGL" = "yes"; then |
9273 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
9274 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
9275 | else | |
9276 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
9277 | WX_ALL="CREATE_LINKS" | |
422107f9 | 9278 | fi |
10f2d63a VZ |
9279 | ;; |
9280 | *-*-solaris2* ) | |
9281 | if test "$GCC" = yes ; then | |
9282 | SHARED_LD="${CC} -shared -o" | |
9283 | PIC_FLAG="-fPIC" | |
f6bcfd97 BP |
9284 | |
9285 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
10f2d63a VZ |
9286 | else |
9287 | SHARED_LD="${CXX} -G -o" | |
9288 | PIC_FLAG="-KPIC" | |
9289 | fi | |
c661ecca RR |
9290 | if test "$wxUSE_OPENGL" = "yes"; then |
9291 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
9292 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
9293 | else | |
9294 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
9295 | WX_ALL="CREATE_LINKS" | |
9296 | fi | |
10f2d63a VZ |
9297 | ;; |
9298 | *-*-sunos4* ) | |
9299 | SHARED_LD="${CC} -shared -o" | |
9300 | PIC_FLAG="-fPIC" | |
9301 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
9302 | WX_ALL="CREATE_LINKS" | |
9303 | ;; | |
95c8801c | 9304 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* ) |
10f2d63a VZ |
9305 | SHARED_LD="${CC} -shared -o" |
9306 | PIC_FLAG="-fPIC" | |
37d403aa JS |
9307 | if test "$wxUSE_OPENGL" = "yes"; then |
9308 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
9309 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
9310 | else | |
9311 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
9312 | WX_ALL="CREATE_LINKS" | |
9313 | fi | |
10f2d63a | 9314 | ;; |
b4085ce6 | 9315 | *-*-darwin* ) |
ea5999b9 GD |
9316 | SHARED_LD="${CXX} -dynamiclib -o" |
9317 | PIC_FLAG="-dynamic -fPIC" | |
b4085ce6 GD |
9318 | if test "$wxUSE_OPENGL" = "yes"; then |
9319 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
9320 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
9321 | else | |
9322 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
9323 | WX_ALL="CREATE_LINKS" | |
9324 | fi | |
f3c067d2 GD |
9325 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.dylib" |
9326 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.dylib" | |
9327 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.${WX_CURRENT}.dylib" | |
9328 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib" | |
9329 | WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib" | |
9330 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.${WX_CURRENT}.dylib" | |
9331 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib" | |
9332 | WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib" | |
b4085ce6 | 9333 | ;; |
10f2d63a VZ |
9334 | *-*-osf* ) |
9335 | SHARED_LD="${CXX} -shared -o" | |
9336 | PIC_FLAG="-fPIC" | |
9337 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
9338 | WX_ALL="CREATE_LINKS" | |
9339 | ;; | |
9340 | *-*-dgux5* ) | |
9341 | SHARED_LD="${CXX} -shared -o" | |
9342 | PIC_FLAG="-fPIC" | |
9343 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
9344 | WX_ALL="CREATE_LINKS" | |
9345 | ;; | |
9346 | *-*-sysv5* ) | |
9347 | SHARED_LD="${CC} -shared -o" | |
9348 | PIC_FLAG="-fPIC" | |
9349 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
9350 | WX_ALL="CREATE_LINKS" | |
9351 | ;; | |
9352 | *-*-aix* ) | |
9353 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
9354 | WX_ALL=${WX_LIBRARY_NAME_SHARED} | |
9355 | ;; | |
9356 | *-*-cygwin32* ) | |
9357 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
bdad4e7e | 9358 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
9359 | if test "$wxUSE_OPENGL" = "yes"; then |
9360 | WX_ALL_INSTALLED="preinstall_gl" | |
9361 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
9362 | else | |
9363 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
9364 | fi | |
10f2d63a | 9365 | ;; |
b12915c1 | 9366 | *-*-mingw32* ) |
10f2d63a | 9367 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
bdad4e7e | 9368 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
9369 | if test "$wxUSE_OPENGL" = "yes"; then |
9370 | WX_ALL_INSTALLED="preinstall_gl" | |
9371 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
9372 | else | |
9373 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
9374 | fi | |
10f2d63a VZ |
9375 | ;; |
9376 | *-pc-os2_emx ) | |
e07802fc VZ |
9377 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
9378 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10f2d63a | 9379 | ;; |
b12915c1 | 9380 | *-*-beos* ) |
e2b8b066 | 9381 | SHARED_LD="${LD} -shared -o" |
b12915c1 VZ |
9382 | PIC_FLAG="-fPIC" |
9383 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
9384 | WX_ALL="CREATE_LINKS" | |
9385 | ;; | |
10f2d63a VZ |
9386 | *) |
9387 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } | |
9388 | esac | |
9389 | ||
9390 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
9391 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
bdad4e7e | 9392 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" |
10f2d63a | 9393 | fi |
3711412e | 9394 | WX_TARGET_LIBRARY_TYPE="so" |
10f2d63a VZ |
9395 | else |
9396 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
bdad4e7e | 9397 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
9398 | |
9399 | if test "$wxUSE_OPENGL" = "yes"; then | |
9400 | WX_ALL_INSTALLED="preinstall_gl" | |
9401 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
9402 | else | |
9403 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
9404 | fi | |
9405 | ||
9406 | if test "$wxUSE_GUI" = "no"; then | |
9407 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
9408 | fi | |
9409 | ||
3711412e | 9410 | WX_TARGET_LIBRARY_TYPE="a" |
10f2d63a VZ |
9411 | fi |
9412 | ||
9413 | ||
9414 | for ac_hdr in strings.h | |
9415 | do | |
9416 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9417 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
95c8801c | 9418 | echo "configure:9419: checking for $ac_hdr" >&5 |
10f2d63a VZ |
9419 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9420 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9421 | else | |
9422 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 9423 | #line 9424 "configure" |
10f2d63a VZ |
9424 | #include "confdefs.h" |
9425 | #include <$ac_hdr> | |
9426 | EOF | |
9427 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
95c8801c | 9428 | { (eval echo configure:9429: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
9429 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9430 | if test -z "$ac_err"; then | |
9431 | rm -rf conftest* | |
9432 | eval "ac_cv_header_$ac_safe=yes" | |
9433 | else | |
9434 | echo "$ac_err" >&5 | |
9435 | echo "configure: failed program was:" >&5 | |
9436 | cat conftest.$ac_ext >&5 | |
9437 | rm -rf conftest* | |
9438 | eval "ac_cv_header_$ac_safe=no" | |
9439 | fi | |
9440 | rm -f conftest* | |
9441 | fi | |
9442 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9443 | echo "$ac_t""yes" 1>&6 | |
9444 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9445 | cat >> confdefs.h <<EOF | |
9446 | #define $ac_tr_hdr 1 | |
9447 | EOF | |
9448 | ||
9449 | else | |
9450 | echo "$ac_t""no" 1>&6 | |
9451 | fi | |
9452 | done | |
9453 | ||
9454 | for ac_hdr in unistd.h | |
9455 | do | |
9456 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9457 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
95c8801c | 9458 | echo "configure:9459: checking for $ac_hdr" >&5 |
10f2d63a VZ |
9459 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9460 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9461 | else | |
9462 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 9463 | #line 9464 "configure" |
10f2d63a VZ |
9464 | #include "confdefs.h" |
9465 | #include <$ac_hdr> | |
9466 | EOF | |
9467 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
95c8801c | 9468 | { (eval echo configure:9469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
9469 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9470 | if test -z "$ac_err"; then | |
9471 | rm -rf conftest* | |
9472 | eval "ac_cv_header_$ac_safe=yes" | |
9473 | else | |
9474 | echo "$ac_err" >&5 | |
9475 | echo "configure: failed program was:" >&5 | |
9476 | cat conftest.$ac_ext >&5 | |
9477 | rm -rf conftest* | |
9478 | eval "ac_cv_header_$ac_safe=no" | |
9479 | fi | |
9480 | rm -f conftest* | |
9481 | fi | |
9482 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9483 | echo "$ac_t""yes" 1>&6 | |
9484 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9485 | cat >> confdefs.h <<EOF | |
9486 | #define $ac_tr_hdr 1 | |
9487 | EOF | |
9488 | ||
9489 | else | |
9490 | echo "$ac_t""no" 1>&6 | |
9491 | fi | |
9492 | done | |
9493 | ||
0fb0dd83 | 9494 | for ac_hdr in fcntl.h |
10f2d63a VZ |
9495 | do |
9496 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9497 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
95c8801c | 9498 | echo "configure:9499: checking for $ac_hdr" >&5 |
10f2d63a VZ |
9499 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9500 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9501 | else | |
9502 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 9503 | #line 9504 "configure" |
10f2d63a VZ |
9504 | #include "confdefs.h" |
9505 | #include <$ac_hdr> | |
9506 | EOF | |
9507 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
95c8801c | 9508 | { (eval echo configure:9509: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
9509 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9510 | if test -z "$ac_err"; then | |
9511 | rm -rf conftest* | |
9512 | eval "ac_cv_header_$ac_safe=yes" | |
9513 | else | |
9514 | echo "$ac_err" >&5 | |
9515 | echo "configure: failed program was:" >&5 | |
9516 | cat conftest.$ac_ext >&5 | |
9517 | rm -rf conftest* | |
9518 | eval "ac_cv_header_$ac_safe=no" | |
9519 | fi | |
9520 | rm -f conftest* | |
9521 | fi | |
9522 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9523 | echo "$ac_t""yes" 1>&6 | |
9524 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9525 | cat >> confdefs.h <<EOF | |
9526 | #define $ac_tr_hdr 1 | |
9527 | EOF | |
9528 | ||
9529 | else | |
9530 | echo "$ac_t""no" 1>&6 | |
9531 | fi | |
9532 | done | |
9533 | ||
0fb0dd83 | 9534 | for ac_hdr in wchar.h |
10f2d63a VZ |
9535 | do |
9536 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9537 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
95c8801c | 9538 | echo "configure:9539: checking for $ac_hdr" >&5 |
10f2d63a VZ |
9539 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9540 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9541 | else | |
9542 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 9543 | #line 9544 "configure" |
10f2d63a VZ |
9544 | #include "confdefs.h" |
9545 | #include <$ac_hdr> | |
9546 | EOF | |
9547 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
95c8801c | 9548 | { (eval echo configure:9549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
9549 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9550 | if test -z "$ac_err"; then | |
9551 | rm -rf conftest* | |
9552 | eval "ac_cv_header_$ac_safe=yes" | |
9553 | else | |
9554 | echo "$ac_err" >&5 | |
9555 | echo "configure: failed program was:" >&5 | |
9556 | cat conftest.$ac_ext >&5 | |
9557 | rm -rf conftest* | |
9558 | eval "ac_cv_header_$ac_safe=no" | |
9559 | fi | |
9560 | rm -f conftest* | |
9561 | fi | |
9562 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9563 | echo "$ac_t""yes" 1>&6 | |
9564 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9565 | cat >> confdefs.h <<EOF | |
9566 | #define $ac_tr_hdr 1 | |
9567 | EOF | |
9568 | ||
9569 | else | |
9570 | echo "$ac_t""no" 1>&6 | |
9571 | fi | |
9572 | done | |
9573 | ||
0fb0dd83 | 9574 | for ac_hdr in wcstr.h |
10f2d63a VZ |
9575 | do |
9576 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9577 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
95c8801c | 9578 | echo "configure:9579: checking for $ac_hdr" >&5 |
10f2d63a VZ |
9579 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9580 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9581 | else | |
9582 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 9583 | #line 9584 "configure" |
10f2d63a VZ |
9584 | #include "confdefs.h" |
9585 | #include <$ac_hdr> | |
9586 | EOF | |
9587 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
95c8801c | 9588 | { (eval echo configure:9589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6f72b082 OK |
9589 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9590 | if test -z "$ac_err"; then | |
9591 | rm -rf conftest* | |
9592 | eval "ac_cv_header_$ac_safe=yes" | |
9593 | else | |
9594 | echo "$ac_err" >&5 | |
9595 | echo "configure: failed program was:" >&5 | |
9596 | cat conftest.$ac_ext >&5 | |
9597 | rm -rf conftest* | |
9598 | eval "ac_cv_header_$ac_safe=no" | |
9599 | fi | |
9600 | rm -f conftest* | |
9601 | fi | |
9602 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9603 | echo "$ac_t""yes" 1>&6 | |
9604 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9605 | cat >> confdefs.h <<EOF | |
9606 | #define $ac_tr_hdr 1 | |
9607 | EOF | |
9608 | ||
9609 | else | |
9610 | echo "$ac_t""no" 1>&6 | |
9611 | fi | |
9612 | done | |
9613 | ||
0fb0dd83 | 9614 | for ac_hdr in fnmatch.h |
6f72b082 OK |
9615 | do |
9616 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9617 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
95c8801c | 9618 | echo "configure:9619: checking for $ac_hdr" >&5 |
6f72b082 OK |
9619 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9620 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9621 | else | |
9622 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 9623 | #line 9624 "configure" |
6f72b082 OK |
9624 | #include "confdefs.h" |
9625 | #include <$ac_hdr> | |
9626 | EOF | |
9627 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
95c8801c | 9628 | { (eval echo configure:9629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6f72b082 OK |
9629 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9630 | if test -z "$ac_err"; then | |
9631 | rm -rf conftest* | |
9632 | eval "ac_cv_header_$ac_safe=yes" | |
9633 | else | |
9634 | echo "$ac_err" >&5 | |
9635 | echo "configure: failed program was:" >&5 | |
9636 | cat conftest.$ac_ext >&5 | |
9637 | rm -rf conftest* | |
9638 | eval "ac_cv_header_$ac_safe=no" | |
9639 | fi | |
9640 | rm -f conftest* | |
9641 | fi | |
9642 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9643 | echo "$ac_t""yes" 1>&6 | |
9644 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9645 | cat >> confdefs.h <<EOF | |
9646 | #define $ac_tr_hdr 1 | |
9647 | EOF | |
9648 | ||
9649 | else | |
9650 | echo "$ac_t""no" 1>&6 | |
9651 | fi | |
9652 | done | |
9653 | ||
0fb0dd83 | 9654 | for ac_hdr in iconv.h |
6f72b082 OK |
9655 | do |
9656 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9657 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
95c8801c | 9658 | echo "configure:9659: checking for $ac_hdr" >&5 |
6f72b082 OK |
9659 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9660 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9661 | else | |
9662 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 9663 | #line 9664 "configure" |
6f72b082 OK |
9664 | #include "confdefs.h" |
9665 | #include <$ac_hdr> | |
9666 | EOF | |
9667 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
95c8801c | 9668 | { (eval echo configure:9669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
9669 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9670 | if test -z "$ac_err"; then | |
9671 | rm -rf conftest* | |
9672 | eval "ac_cv_header_$ac_safe=yes" | |
9673 | else | |
9674 | echo "$ac_err" >&5 | |
9675 | echo "configure: failed program was:" >&5 | |
9676 | cat conftest.$ac_ext >&5 | |
9677 | rm -rf conftest* | |
9678 | eval "ac_cv_header_$ac_safe=no" | |
9679 | fi | |
9680 | rm -f conftest* | |
9681 | fi | |
9682 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9683 | echo "$ac_t""yes" 1>&6 | |
9684 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9685 | cat >> confdefs.h <<EOF | |
9686 | #define $ac_tr_hdr 1 | |
9687 | EOF | |
9688 | ||
9689 | else | |
9690 | echo "$ac_t""no" 1>&6 | |
9691 | fi | |
9692 | done | |
9693 | ||
0fb0dd83 RR |
9694 | for ac_hdr in langinfo.h |
9695 | do | |
9696 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9697 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
95c8801c | 9698 | echo "configure:9699: checking for $ac_hdr" >&5 |
0fb0dd83 RR |
9699 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9700 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9701 | else | |
9702 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 9703 | #line 9704 "configure" |
0fb0dd83 RR |
9704 | #include "confdefs.h" |
9705 | #include <$ac_hdr> | |
9706 | EOF | |
9707 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
95c8801c | 9708 | { (eval echo configure:9709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
0fb0dd83 RR |
9709 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9710 | if test -z "$ac_err"; then | |
9711 | rm -rf conftest* | |
9712 | eval "ac_cv_header_$ac_safe=yes" | |
9713 | else | |
9714 | echo "$ac_err" >&5 | |
9715 | echo "configure: failed program was:" >&5 | |
9716 | cat conftest.$ac_ext >&5 | |
9717 | rm -rf conftest* | |
9718 | eval "ac_cv_header_$ac_safe=no" | |
9719 | fi | |
9720 | rm -f conftest* | |
9721 | fi | |
9722 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9723 | echo "$ac_t""yes" 1>&6 | |
9724 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9725 | cat >> confdefs.h <<EOF | |
9726 | #define $ac_tr_hdr 1 | |
9727 | EOF | |
9728 | ||
9729 | else | |
9730 | echo "$ac_t""no" 1>&6 | |
9731 | fi | |
9732 | done | |
9733 | ||
10f2d63a | 9734 | |
73fd4a60 VZ |
9735 | if test "$wxUSE_GUI" = "yes"; then |
9736 | if test "$wxUSE_UNIX" = "yes"; then | |
9737 | for ac_hdr in X11/XKBlib.h | |
10f2d63a VZ |
9738 | do |
9739 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9740 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
95c8801c | 9741 | echo "configure:9742: checking for $ac_hdr" >&5 |
10f2d63a VZ |
9742 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9743 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9744 | else | |
9745 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 9746 | #line 9747 "configure" |
10f2d63a VZ |
9747 | #include "confdefs.h" |
9748 | #include <$ac_hdr> | |
9749 | EOF | |
9750 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
95c8801c | 9751 | { (eval echo configure:9752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
9752 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9753 | if test -z "$ac_err"; then | |
9754 | rm -rf conftest* | |
9755 | eval "ac_cv_header_$ac_safe=yes" | |
9756 | else | |
9757 | echo "$ac_err" >&5 | |
9758 | echo "configure: failed program was:" >&5 | |
9759 | cat conftest.$ac_ext >&5 | |
9760 | rm -rf conftest* | |
9761 | eval "ac_cv_header_$ac_safe=no" | |
9762 | fi | |
9763 | rm -f conftest* | |
9764 | fi | |
9765 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9766 | echo "$ac_t""yes" 1>&6 | |
9767 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9768 | cat >> confdefs.h <<EOF | |
9769 | #define $ac_tr_hdr 1 | |
9770 | EOF | |
9771 | ||
9772 | else | |
9773 | echo "$ac_t""no" 1>&6 | |
9774 | fi | |
9775 | done | |
9776 | ||
73fd4a60 | 9777 | fi |
10f2d63a VZ |
9778 | fi |
9779 | ||
9780 | ||
9781 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
95c8801c | 9782 | echo "configure:9783: checking for ANSI C header files" >&5 |
10f2d63a VZ |
9783 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
9784 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9785 | else | |
9786 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 9787 | #line 9788 "configure" |
10f2d63a VZ |
9788 | #include "confdefs.h" |
9789 | #include <stdlib.h> | |
9790 | #include <stdarg.h> | |
9791 | #include <string.h> | |
9792 | #include <float.h> | |
9793 | EOF | |
9794 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
95c8801c | 9795 | { (eval echo configure:9796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
9796 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9797 | if test -z "$ac_err"; then | |
9798 | rm -rf conftest* | |
9799 | ac_cv_header_stdc=yes | |
9800 | else | |
9801 | echo "$ac_err" >&5 | |
9802 | echo "configure: failed program was:" >&5 | |
9803 | cat conftest.$ac_ext >&5 | |
9804 | rm -rf conftest* | |
9805 | ac_cv_header_stdc=no | |
9806 | fi | |
9807 | rm -f conftest* | |
9808 | ||
9809 | if test $ac_cv_header_stdc = yes; then | |
9810 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
9811 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 9812 | #line 9813 "configure" |
10f2d63a VZ |
9813 | #include "confdefs.h" |
9814 | #include <string.h> | |
9815 | EOF | |
9816 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9817 | egrep "memchr" >/dev/null 2>&1; then | |
9818 | : | |
9819 | else | |
9820 | rm -rf conftest* | |
9821 | ac_cv_header_stdc=no | |
9822 | fi | |
9823 | rm -f conftest* | |
9824 | ||
9825 | fi | |
9826 | ||
9827 | if test $ac_cv_header_stdc = yes; then | |
9828 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
9829 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 9830 | #line 9831 "configure" |
10f2d63a VZ |
9831 | #include "confdefs.h" |
9832 | #include <stdlib.h> | |
9833 | EOF | |
9834 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9835 | egrep "free" >/dev/null 2>&1; then | |
9836 | : | |
9837 | else | |
9838 | rm -rf conftest* | |
9839 | ac_cv_header_stdc=no | |
9840 | fi | |
9841 | rm -f conftest* | |
9842 | ||
9843 | fi | |
9844 | ||
9845 | if test $ac_cv_header_stdc = yes; then | |
9846 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
9847 | if test "$cross_compiling" = yes; then | |
9848 | : | |
9849 | else | |
9850 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 9851 | #line 9852 "configure" |
10f2d63a VZ |
9852 | #include "confdefs.h" |
9853 | #include <ctype.h> | |
9854 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
9855 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
9856 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
9857 | int main () { int i; for (i = 0; i < 256; i++) | |
9858 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
9859 | exit (0); } | |
9860 | ||
9861 | EOF | |
95c8801c | 9862 | if { (eval echo configure:9863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
9863 | then |
9864 | : | |
9865 | else | |
9866 | echo "configure: failed program was:" >&5 | |
9867 | cat conftest.$ac_ext >&5 | |
9868 | rm -fr conftest* | |
9869 | ac_cv_header_stdc=no | |
9870 | fi | |
9871 | rm -fr conftest* | |
9872 | fi | |
9873 | ||
9874 | fi | |
9875 | fi | |
9876 | ||
9877 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
9878 | if test $ac_cv_header_stdc = yes; then | |
9879 | cat >> confdefs.h <<\EOF | |
9880 | #define STDC_HEADERS 1 | |
9881 | EOF | |
9882 | ||
9883 | fi | |
9884 | ||
9885 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 | |
95c8801c | 9886 | echo "configure:9887: checking for mode_t" >&5 |
10f2d63a VZ |
9887 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
9888 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9889 | else | |
9890 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 9891 | #line 9892 "configure" |
10f2d63a VZ |
9892 | #include "confdefs.h" |
9893 | #include <sys/types.h> | |
9894 | #if STDC_HEADERS | |
9895 | #include <stdlib.h> | |
9896 | #include <stddef.h> | |
9897 | #endif | |
9898 | EOF | |
9899 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9900 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
9901 | rm -rf conftest* | |
9902 | ac_cv_type_mode_t=yes | |
9903 | else | |
9904 | rm -rf conftest* | |
9905 | ac_cv_type_mode_t=no | |
9906 | fi | |
9907 | rm -f conftest* | |
9908 | ||
9909 | fi | |
9910 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
9911 | if test $ac_cv_type_mode_t = no; then | |
9912 | cat >> confdefs.h <<\EOF | |
9913 | #define mode_t int | |
9914 | EOF | |
9915 | ||
9916 | fi | |
9917 | ||
9918 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
95c8801c | 9919 | echo "configure:9920: checking for off_t" >&5 |
10f2d63a VZ |
9920 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
9921 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9922 | else | |
9923 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 9924 | #line 9925 "configure" |
10f2d63a VZ |
9925 | #include "confdefs.h" |
9926 | #include <sys/types.h> | |
9927 | #if STDC_HEADERS | |
9928 | #include <stdlib.h> | |
9929 | #include <stddef.h> | |
9930 | #endif | |
9931 | EOF | |
9932 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9933 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
9934 | rm -rf conftest* | |
9935 | ac_cv_type_off_t=yes | |
9936 | else | |
9937 | rm -rf conftest* | |
9938 | ac_cv_type_off_t=no | |
9939 | fi | |
9940 | rm -f conftest* | |
9941 | ||
9942 | fi | |
9943 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
9944 | if test $ac_cv_type_off_t = no; then | |
9945 | cat >> confdefs.h <<\EOF | |
9946 | #define off_t long | |
9947 | EOF | |
9948 | ||
9949 | fi | |
9950 | ||
9951 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 | |
95c8801c | 9952 | echo "configure:9953: checking for pid_t" >&5 |
10f2d63a VZ |
9953 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
9954 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9955 | else | |
9956 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 9957 | #line 9958 "configure" |
10f2d63a VZ |
9958 | #include "confdefs.h" |
9959 | #include <sys/types.h> | |
9960 | #if STDC_HEADERS | |
9961 | #include <stdlib.h> | |
9962 | #include <stddef.h> | |
9963 | #endif | |
9964 | EOF | |
9965 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9966 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
9967 | rm -rf conftest* | |
9968 | ac_cv_type_pid_t=yes | |
9969 | else | |
9970 | rm -rf conftest* | |
9971 | ac_cv_type_pid_t=no | |
9972 | fi | |
9973 | rm -f conftest* | |
9974 | ||
9975 | fi | |
9976 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
9977 | if test $ac_cv_type_pid_t = no; then | |
9978 | cat >> confdefs.h <<\EOF | |
9979 | #define pid_t int | |
9980 | EOF | |
9981 | ||
9982 | fi | |
9983 | ||
9984 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
95c8801c | 9985 | echo "configure:9986: checking for size_t" >&5 |
10f2d63a VZ |
9986 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
9987 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9988 | else | |
9989 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 9990 | #line 9991 "configure" |
10f2d63a VZ |
9991 | #include "confdefs.h" |
9992 | #include <sys/types.h> | |
9993 | #if STDC_HEADERS | |
9994 | #include <stdlib.h> | |
9995 | #include <stddef.h> | |
9996 | #endif | |
9997 | EOF | |
9998 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9999 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
10000 | rm -rf conftest* | |
10001 | ac_cv_type_size_t=yes | |
10002 | else | |
10003 | rm -rf conftest* | |
10004 | ac_cv_type_size_t=no | |
10005 | fi | |
10006 | rm -f conftest* | |
10007 | ||
10008 | fi | |
10009 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
10010 | if test $ac_cv_type_size_t = no; then | |
10011 | cat >> confdefs.h <<\EOF | |
10012 | #define size_t unsigned | |
10013 | EOF | |
10014 | ||
10015 | fi | |
10016 | ||
10017 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 | |
95c8801c | 10018 | echo "configure:10019: checking for uid_t in sys/types.h" >&5 |
10f2d63a VZ |
10019 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
10020 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10021 | else | |
10022 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 10023 | #line 10024 "configure" |
10f2d63a VZ |
10024 | #include "confdefs.h" |
10025 | #include <sys/types.h> | |
10026 | EOF | |
10027 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
10028 | egrep "uid_t" >/dev/null 2>&1; then | |
10029 | rm -rf conftest* | |
10030 | ac_cv_type_uid_t=yes | |
10031 | else | |
10032 | rm -rf conftest* | |
10033 | ac_cv_type_uid_t=no | |
10034 | fi | |
10035 | rm -f conftest* | |
10036 | ||
10037 | fi | |
10038 | ||
10039 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 | |
10040 | if test $ac_cv_type_uid_t = no; then | |
10041 | cat >> confdefs.h <<\EOF | |
10042 | #define uid_t int | |
10043 | EOF | |
10044 | ||
10045 | cat >> confdefs.h <<\EOF | |
10046 | #define gid_t int | |
10047 | EOF | |
10048 | ||
10049 | fi | |
10050 | ||
10051 | ||
0046ff7c | 10052 | echo $ac_n "checking for wchar_t""... $ac_c" 1>&6 |
95c8801c | 10053 | echo "configure:10054: checking for wchar_t" >&5 |
0046ff7c VS |
10054 | if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then |
10055 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10056 | else | |
10057 | ||
10058 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 10059 | #line 10060 "configure" |
0046ff7c VS |
10060 | #include "confdefs.h" |
10061 | #include <wchar.h> | |
10062 | int main() { | |
10063 | ||
10064 | wchar_t wc, *ws; | |
10065 | wc = L'a'; | |
10066 | ws = L"Hello, world!"; | |
10067 | ||
10068 | ; return 0; } | |
10069 | EOF | |
95c8801c | 10070 | if { (eval echo configure:10071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0046ff7c VS |
10071 | rm -rf conftest* |
10072 | wx_cv_type_wchar_t=yes | |
10073 | else | |
10074 | echo "configure: failed program was:" >&5 | |
10075 | cat conftest.$ac_ext >&5 | |
10076 | rm -rf conftest* | |
10077 | wx_cv_type_wchar_t=no | |
10078 | fi | |
10079 | rm -f conftest* | |
10080 | ||
10081 | fi | |
10082 | ||
10083 | echo "$ac_t""$wx_cv_type_wchar_t" 1>&6 | |
10084 | if test "$wx_cv_type_wchar_t" = yes ; then | |
10085 | cat >> confdefs.h <<\EOF | |
10086 | #define wxUSE_WCHAR_T 1 | |
10087 | EOF | |
10088 | ||
10089 | fi | |
10090 | ||
10f2d63a | 10091 | |
b12915c1 | 10092 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
95c8801c | 10093 | echo "configure:10094: checking for pw_gecos in struct passwd" >&5 |
b12915c1 VZ |
10094 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
10095 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10096 | else | |
10097 | ||
10098 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 10099 | #line 10100 "configure" |
b12915c1 VZ |
10100 | #include "confdefs.h" |
10101 | #include <pwd.h> | |
10102 | int main() { | |
10103 | ||
10104 | char *p; | |
10105 | struct passwd *pw; | |
10106 | p = pw->pw_gecos; | |
10107 | ||
10108 | ; return 0; } | |
10109 | EOF | |
95c8801c | 10110 | if { (eval echo configure:10111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
b12915c1 VZ |
10111 | rm -rf conftest* |
10112 | ||
10113 | wx_cv_struct_pw_gecos=yes | |
b12915c1 VZ |
10114 | |
10115 | else | |
10116 | echo "configure: failed program was:" >&5 | |
10117 | cat conftest.$ac_ext >&5 | |
10118 | rm -rf conftest* | |
10119 | ||
10120 | wx_cv_struct_pw_gecos=no | |
10121 | ||
10122 | ||
10123 | fi | |
10124 | rm -f conftest* | |
10125 | ||
10126 | ||
10127 | fi | |
10128 | ||
10129 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
10130 | ||
bd3277fe VZ |
10131 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
10132 | cat >> confdefs.h <<\EOF | |
10133 | #define HAVE_PW_GECOS 1 | |
10134 | EOF | |
10135 | ||
10136 | fi | |
10137 | ||
10f2d63a VZ |
10138 | |
10139 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
95c8801c | 10140 | echo "configure:10141: checking for working const" >&5 |
10f2d63a VZ |
10141 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
10142 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10143 | else | |
10144 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 10145 | #line 10146 "configure" |
10f2d63a VZ |
10146 | #include "confdefs.h" |
10147 | ||
10148 | int main() { | |
10149 | ||
10150 | /* Ultrix mips cc rejects this. */ | |
186837b0 | 10151 | typedef int charset[2]; const charset x; |
10f2d63a VZ |
10152 | /* SunOS 4.1.1 cc rejects this. */ |
10153 | char const *const *ccp; | |
10154 | char **p; | |
10155 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
10156 | struct point {int x, y;}; | |
10157 | static struct point const zero = {0,0}; | |
10158 | /* AIX XL C 1.02.0.0 rejects this. | |
10159 | It does not let you subtract one const X* pointer from another in an arm | |
10160 | of an if-expression whose if-part is not a constant expression */ | |
10161 | const char *g = "string"; | |
10162 | ccp = &g + (g ? g-g : 0); | |
10163 | /* HPUX 7.0 cc rejects these. */ | |
10164 | ++ccp; | |
10165 | p = (char**) ccp; | |
10166 | ccp = (char const *const *) p; | |
10167 | { /* SCO 3.2v4 cc rejects this. */ | |
10168 | char *t; | |
10169 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
10170 | ||
10171 | *t++ = 0; | |
10172 | } | |
10173 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
10174 | int x[] = {25, 17}; | |
10175 | const int *foo = &x[0]; | |
10176 | ++foo; | |
10177 | } | |
10178 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
10179 | typedef const int *iptr; | |
10180 | iptr p = 0; | |
10181 | ++p; | |
10182 | } | |
10183 | { /* AIX XL C 1.02.0.0 rejects this saying | |
10184 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
10185 | struct s { int j; const int *ap[3]; }; | |
10186 | struct s *b; b->j = 5; | |
10187 | } | |
10188 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
10189 | const int foo = 10; | |
10190 | } | |
10191 | ||
10192 | ; return 0; } | |
10193 | EOF | |
95c8801c | 10194 | if { (eval echo configure:10195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
10195 | rm -rf conftest* |
10196 | ac_cv_c_const=yes | |
10197 | else | |
10198 | echo "configure: failed program was:" >&5 | |
10199 | cat conftest.$ac_ext >&5 | |
10200 | rm -rf conftest* | |
10201 | ac_cv_c_const=no | |
10202 | fi | |
10203 | rm -f conftest* | |
10204 | fi | |
10205 | ||
10206 | echo "$ac_t""$ac_cv_c_const" 1>&6 | |
10207 | if test $ac_cv_c_const = no; then | |
10208 | cat >> confdefs.h <<\EOF | |
10209 | #define const | |
10210 | EOF | |
10211 | ||
10212 | fi | |
10213 | ||
10214 | echo $ac_n "checking for inline""... $ac_c" 1>&6 | |
95c8801c | 10215 | echo "configure:10216: checking for inline" >&5 |
10f2d63a VZ |
10216 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
10217 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10218 | else | |
10219 | ac_cv_c_inline=no | |
10220 | for ac_kw in inline __inline__ __inline; do | |
10221 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 10222 | #line 10223 "configure" |
10f2d63a VZ |
10223 | #include "confdefs.h" |
10224 | ||
10225 | int main() { | |
186837b0 | 10226 | } $ac_kw foo() { |
10f2d63a VZ |
10227 | ; return 0; } |
10228 | EOF | |
95c8801c | 10229 | if { (eval echo configure:10230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
10230 | rm -rf conftest* |
10231 | ac_cv_c_inline=$ac_kw; break | |
10232 | else | |
10233 | echo "configure: failed program was:" >&5 | |
10234 | cat conftest.$ac_ext >&5 | |
10235 | fi | |
10236 | rm -f conftest* | |
10237 | done | |
10238 | ||
10239 | fi | |
10240 | ||
10241 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
10242 | case "$ac_cv_c_inline" in | |
10243 | inline | yes) ;; | |
10244 | no) cat >> confdefs.h <<\EOF | |
10245 | #define inline | |
10246 | EOF | |
10247 | ;; | |
10248 | *) cat >> confdefs.h <<EOF | |
10249 | #define inline $ac_cv_c_inline | |
10250 | EOF | |
10251 | ;; | |
10252 | esac | |
10253 | ||
10254 | ||
10255 | echo $ac_n "checking size of char""... $ac_c" 1>&6 | |
95c8801c | 10256 | echo "configure:10257: checking size of char" >&5 |
10f2d63a VZ |
10257 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
10258 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10259 | else | |
10260 | if test "$cross_compiling" = yes; then | |
10261 | ac_cv_sizeof_char=1 | |
10262 | else | |
10263 | cat > conftest.$ac_ext <<EOF | |
95c8801c | 10264 | #line 10265 "configure" |
10f2d63a VZ |
10265 | #include "confdefs.h" |
10266 | #include <stdio.h> | |
10267 | main() | |
10268 | { | |
10269 | FILE *f=fopen("conftestval", "w"); | |
10270 | if (!f) exit(1); | |
10271 | fprintf(f, "%d\n", sizeof(char)); | |
10272 | exit(0); | |
10273 | } | |
10274 | EOF | |
95c8801c | 10275 | if { (eval echo configure:10276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
10276 | then |
10277 | ac_cv_sizeof_char=`cat conftestval` | |
10278 | else | |
10279 | echo "configure: failed program was:" >&5 | |
10280 | cat conftest.$ac_ext >&5 | |
10281 | rm -fr conftest* | |
10282 | ac_cv_sizeof_char=0 | |
10283 | fi | |
10284 | rm -fr conftest* | |
10285 | fi | |
10286 | ||
10287 | fi | |
10288 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 | |
10289 | cat >> confdefs.h <<EOF | |
10290 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
10291 | EOF | |
10292 | ||
10293 | ||
10294 | echo $ac_n "checking size of short""... $ac_c" 1>&6 | |
b93d0d08 | 10295 | echo "configure:10296: checking size of short" >&5 |
10f2d63a VZ |
10296 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
10297 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10298 | else | |
10299 | if test "$cross_compiling" = yes; then | |
10300 | ac_cv_sizeof_short=2 | |
10301 | else | |
10302 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 10303 | #line 10304 "configure" |
10f2d63a VZ |
10304 | #include "confdefs.h" |
10305 | #include <stdio.h> | |
10306 | main() | |
10307 | { | |
10308 | FILE *f=fopen("conftestval", "w"); | |
10309 | if (!f) exit(1); | |
10310 | fprintf(f, "%d\n", sizeof(short)); | |
10311 | exit(0); | |
10312 | } | |
10313 | EOF | |
b93d0d08 | 10314 | if { (eval echo configure:10315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
10315 | then |
10316 | ac_cv_sizeof_short=`cat conftestval` | |
10317 | else | |
10318 | echo "configure: failed program was:" >&5 | |
10319 | cat conftest.$ac_ext >&5 | |
10320 | rm -fr conftest* | |
10321 | ac_cv_sizeof_short=0 | |
10322 | fi | |
10323 | rm -fr conftest* | |
10324 | fi | |
10325 | ||
10326 | fi | |
10327 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 | |
10328 | cat >> confdefs.h <<EOF | |
10329 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
10330 | EOF | |
10331 | ||
10332 | ||
10333 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 | |
b93d0d08 | 10334 | echo "configure:10335: checking size of int *" >&5 |
10f2d63a VZ |
10335 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then |
10336 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10337 | else | |
10338 | if test "$cross_compiling" = yes; then | |
10339 | ac_cv_sizeof_int_p=4 | |
10340 | else | |
10341 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 10342 | #line 10343 "configure" |
10f2d63a VZ |
10343 | #include "confdefs.h" |
10344 | #include <stdio.h> | |
10345 | main() | |
10346 | { | |
10347 | FILE *f=fopen("conftestval", "w"); | |
10348 | if (!f) exit(1); | |
10349 | fprintf(f, "%d\n", sizeof(int *)); | |
10350 | exit(0); | |
10351 | } | |
10352 | EOF | |
b93d0d08 | 10353 | if { (eval echo configure:10354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
10354 | then |
10355 | ac_cv_sizeof_int_p=`cat conftestval` | |
10356 | else | |
10357 | echo "configure: failed program was:" >&5 | |
10358 | cat conftest.$ac_ext >&5 | |
10359 | rm -fr conftest* | |
10360 | ac_cv_sizeof_int_p=0 | |
10361 | fi | |
10362 | rm -fr conftest* | |
10363 | fi | |
10364 | ||
10365 | fi | |
10366 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 | |
10367 | cat >> confdefs.h <<EOF | |
10368 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
10369 | EOF | |
10370 | ||
10371 | ||
10372 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
b93d0d08 | 10373 | echo "configure:10374: checking size of int" >&5 |
10f2d63a VZ |
10374 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
10375 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10376 | else | |
10377 | if test "$cross_compiling" = yes; then | |
10378 | ac_cv_sizeof_int=4 | |
10379 | else | |
10380 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 10381 | #line 10382 "configure" |
10f2d63a VZ |
10382 | #include "confdefs.h" |
10383 | #include <stdio.h> | |
10384 | main() | |
10385 | { | |
10386 | FILE *f=fopen("conftestval", "w"); | |
10387 | if (!f) exit(1); | |
10388 | fprintf(f, "%d\n", sizeof(int)); | |
10389 | exit(0); | |
10390 | } | |
10391 | EOF | |
b93d0d08 | 10392 | if { (eval echo configure:10393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
10393 | then |
10394 | ac_cv_sizeof_int=`cat conftestval` | |
10395 | else | |
10396 | echo "configure: failed program was:" >&5 | |
10397 | cat conftest.$ac_ext >&5 | |
10398 | rm -fr conftest* | |
10399 | ac_cv_sizeof_int=0 | |
10400 | fi | |
10401 | rm -fr conftest* | |
10402 | fi | |
10403 | ||
10404 | fi | |
10405 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
10406 | cat >> confdefs.h <<EOF | |
10407 | #define SIZEOF_INT $ac_cv_sizeof_int | |
10408 | EOF | |
10409 | ||
10410 | ||
10411 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
b93d0d08 | 10412 | echo "configure:10413: checking size of long" >&5 |
10f2d63a VZ |
10413 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
10414 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10415 | else | |
10416 | if test "$cross_compiling" = yes; then | |
10417 | ac_cv_sizeof_long=4 | |
10418 | else | |
10419 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 10420 | #line 10421 "configure" |
10f2d63a VZ |
10421 | #include "confdefs.h" |
10422 | #include <stdio.h> | |
10423 | main() | |
10424 | { | |
10425 | FILE *f=fopen("conftestval", "w"); | |
10426 | if (!f) exit(1); | |
10427 | fprintf(f, "%d\n", sizeof(long)); | |
10428 | exit(0); | |
10429 | } | |
10430 | EOF | |
b93d0d08 | 10431 | if { (eval echo configure:10432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
10432 | then |
10433 | ac_cv_sizeof_long=`cat conftestval` | |
10434 | else | |
10435 | echo "configure: failed program was:" >&5 | |
10436 | cat conftest.$ac_ext >&5 | |
10437 | rm -fr conftest* | |
10438 | ac_cv_sizeof_long=0 | |
10439 | fi | |
10440 | rm -fr conftest* | |
10441 | fi | |
10442 | ||
10443 | fi | |
10444 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
10445 | cat >> confdefs.h <<EOF | |
10446 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
10447 | EOF | |
10448 | ||
10449 | ||
10450 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
b93d0d08 | 10451 | echo "configure:10452: checking size of long long" >&5 |
10f2d63a VZ |
10452 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10453 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10454 | else | |
10455 | if test "$cross_compiling" = yes; then | |
10456 | ac_cv_sizeof_long_long=0 | |
10457 | else | |
10458 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 10459 | #line 10460 "configure" |
10f2d63a VZ |
10460 | #include "confdefs.h" |
10461 | #include <stdio.h> | |
10462 | main() | |
10463 | { | |
10464 | FILE *f=fopen("conftestval", "w"); | |
10465 | if (!f) exit(1); | |
10466 | fprintf(f, "%d\n", sizeof(long long)); | |
10467 | exit(0); | |
10468 | } | |
10469 | EOF | |
b93d0d08 | 10470 | if { (eval echo configure:10471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
10471 | then |
10472 | ac_cv_sizeof_long_long=`cat conftestval` | |
10473 | else | |
10474 | echo "configure: failed program was:" >&5 | |
10475 | cat conftest.$ac_ext >&5 | |
10476 | rm -fr conftest* | |
10477 | ac_cv_sizeof_long_long=0 | |
10478 | fi | |
10479 | rm -fr conftest* | |
10480 | fi | |
10481 | ||
10482 | fi | |
10483 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
10484 | cat >> confdefs.h <<EOF | |
10485 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10486 | EOF | |
10487 | ||
10488 | ||
10489 | ||
b93d0d08 VS |
10490 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 |
10491 | echo "configure:10492: checking size of wchar_t" >&5 | |
10492 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then | |
10493 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10494 | else | |
10495 | ||
10496 | if test "$cross_compiling" = yes; then | |
10497 | wx_cv_sizeof_wchar_t=4 | |
10498 | ||
10499 | else | |
10500 | cat > conftest.$ac_ext <<EOF | |
10501 | #line 10502 "configure" | |
10502 | #include "confdefs.h" | |
10503 | ||
10504 | #include <wchar.h> | |
10505 | #include <stdio.h> | |
10506 | int main() | |
10507 | { | |
10508 | FILE *f=fopen("conftestval", "w"); | |
10509 | if (!f) exit(1); | |
10510 | fprintf(f, "%i", sizeof(wchar_t)); | |
10511 | exit(0); | |
10512 | } | |
10513 | ||
10514 | EOF | |
10515 | if { (eval echo configure:10516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
10516 | then | |
10517 | wx_cv_sizeof_wchar_t=`cat conftestval` | |
10518 | else | |
10519 | echo "configure: failed program was:" >&5 | |
10520 | cat conftest.$ac_ext >&5 | |
10521 | rm -fr conftest* | |
10522 | wx_cv_sizeof_wchar_t=0 | |
10523 | fi | |
10524 | rm -fr conftest* | |
10525 | fi | |
10526 | ||
10527 | ||
10528 | fi | |
10529 | ||
10530 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 | |
10531 | ||
10532 | cat >> confdefs.h <<EOF | |
10533 | #define wxSIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t | |
10534 | EOF | |
10535 | ||
10536 | ||
10537 | ||
10f2d63a | 10538 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
b93d0d08 | 10539 | echo "configure:10540: checking whether byte ordering is bigendian" >&5 |
10f2d63a VZ |
10540 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
10541 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10542 | else | |
10543 | ac_cv_c_bigendian=unknown | |
10544 | # See if sys/param.h defines the BYTE_ORDER macro. | |
10545 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 10546 | #line 10547 "configure" |
10f2d63a VZ |
10547 | #include "confdefs.h" |
10548 | #include <sys/types.h> | |
10549 | #include <sys/param.h> | |
10550 | int main() { | |
10551 | ||
10552 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
10553 | bogus endian macros | |
10554 | #endif | |
10555 | ; return 0; } | |
10556 | EOF | |
b93d0d08 | 10557 | if { (eval echo configure:10558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
10558 | rm -rf conftest* |
10559 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
10560 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 10561 | #line 10562 "configure" |
10f2d63a VZ |
10562 | #include "confdefs.h" |
10563 | #include <sys/types.h> | |
10564 | #include <sys/param.h> | |
10565 | int main() { | |
10566 | ||
10567 | #if BYTE_ORDER != BIG_ENDIAN | |
10568 | not big endian | |
10569 | #endif | |
10570 | ; return 0; } | |
10571 | EOF | |
b93d0d08 | 10572 | if { (eval echo configure:10573: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
10573 | rm -rf conftest* |
10574 | ac_cv_c_bigendian=yes | |
10575 | else | |
10576 | echo "configure: failed program was:" >&5 | |
10577 | cat conftest.$ac_ext >&5 | |
10578 | rm -rf conftest* | |
10579 | ac_cv_c_bigendian=no | |
10580 | fi | |
10581 | rm -f conftest* | |
10582 | else | |
10583 | echo "configure: failed program was:" >&5 | |
10584 | cat conftest.$ac_ext >&5 | |
10585 | fi | |
10586 | rm -f conftest* | |
10587 | if test $ac_cv_c_bigendian = unknown; then | |
10588 | if test "$cross_compiling" = yes; then | |
10589 | ac_cv_c_bigendian=unknown | |
10590 | else | |
10591 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 10592 | #line 10593 "configure" |
10f2d63a VZ |
10593 | #include "confdefs.h" |
10594 | main () { | |
10595 | /* Are we little or big endian? From Harbison&Steele. */ | |
10596 | union | |
10597 | { | |
10598 | long l; | |
10599 | char c[sizeof (long)]; | |
10600 | } u; | |
10601 | u.l = 1; | |
10602 | exit (u.c[sizeof (long) - 1] == 1); | |
10603 | } | |
10604 | EOF | |
b93d0d08 | 10605 | if { (eval echo configure:10606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
10606 | then |
10607 | ac_cv_c_bigendian=no | |
10608 | else | |
10609 | echo "configure: failed program was:" >&5 | |
10610 | cat conftest.$ac_ext >&5 | |
10611 | rm -fr conftest* | |
10612 | ac_cv_c_bigendian=yes | |
10613 | fi | |
10614 | rm -fr conftest* | |
10615 | fi | |
10616 | ||
10617 | fi | |
10618 | fi | |
10619 | ||
10620 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
10621 | if test $ac_cv_c_bigendian = unknown; then | |
10622 | 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 | |
10623 | fi | |
10624 | if test $ac_cv_c_bigendian = yes; then | |
10625 | cat >> confdefs.h <<\EOF | |
10626 | #define WORDS_BIGENDIAN 1 | |
10627 | EOF | |
10628 | ||
10629 | fi | |
10630 | ||
10631 | ||
10632 | ||
10633 | if test "$cross_compiling" = "yes"; then | |
10634 | cat >> confdefs.h <<\EOF | |
10635 | #define wxUSE_IOSTREAMH 1 | |
10636 | EOF | |
10637 | ||
10638 | else | |
10639 | ||
10640 | ac_ext=C | |
10641 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10642 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10643 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10644 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10645 | cross_compiling=$ac_cv_prog_cxx_cross | |
10646 | ||
10647 | ||
10648 | for ac_hdr in iostream | |
10649 | do | |
10650 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10651 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b93d0d08 | 10652 | echo "configure:10653: checking for $ac_hdr" >&5 |
10f2d63a VZ |
10653 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10654 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10655 | else | |
10656 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 10657 | #line 10658 "configure" |
10f2d63a VZ |
10658 | #include "confdefs.h" |
10659 | #include <$ac_hdr> | |
10660 | EOF | |
10661 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b93d0d08 | 10662 | { (eval echo configure:10663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
10663 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10664 | if test -z "$ac_err"; then | |
10665 | rm -rf conftest* | |
10666 | eval "ac_cv_header_$ac_safe=yes" | |
10667 | else | |
10668 | echo "$ac_err" >&5 | |
10669 | echo "configure: failed program was:" >&5 | |
10670 | cat conftest.$ac_ext >&5 | |
10671 | rm -rf conftest* | |
10672 | eval "ac_cv_header_$ac_safe=no" | |
10673 | fi | |
10674 | rm -f conftest* | |
10675 | fi | |
10676 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10677 | echo "$ac_t""yes" 1>&6 | |
10678 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10679 | cat >> confdefs.h <<EOF | |
10680 | #define $ac_tr_hdr 1 | |
10681 | EOF | |
10682 | ||
10683 | else | |
10684 | echo "$ac_t""no" 1>&6 | |
10685 | fi | |
10686 | done | |
10687 | ||
10688 | ||
10689 | if test "x$HAVE_IOSTREAM" = x ; then | |
10690 | cat >> confdefs.h <<\EOF | |
10691 | #define wxUSE_IOSTREAMH 1 | |
10692 | EOF | |
10693 | ||
10694 | else | |
10695 | : | |
10696 | fi | |
10697 | ||
10698 | ac_ext=c | |
10699 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10700 | ac_cpp='$CPP $CPPFLAGS' | |
10701 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10702 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10703 | cross_compiling=$ac_cv_prog_cc_cross | |
10704 | ||
10705 | fi | |
10706 | ||
10707 | ||
10708 | ||
10709 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 | |
b93d0d08 | 10710 | echo "configure:10711: checking if C++ compiler supports bool" >&5 |
10f2d63a VZ |
10711 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
10712 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10713 | else | |
10714 | ||
10715 | ||
10716 | ac_ext=C | |
10717 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10718 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10719 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10720 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10721 | cross_compiling=$ac_cv_prog_cxx_cross | |
10722 | ||
10723 | ||
10724 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 10725 | #line 10726 "configure" |
10f2d63a VZ |
10726 | #include "confdefs.h" |
10727 | ||
10728 | ||
10729 | int main() { | |
10730 | ||
10731 | bool b = true; | |
10732 | ||
10733 | return 0; | |
10734 | ||
10735 | ; return 0; } | |
10736 | EOF | |
b93d0d08 | 10737 | if { (eval echo configure:10738: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
10738 | rm -rf conftest* |
10739 | ||
10740 | cat >> confdefs.h <<\EOF | |
10741 | #define HAVE_BOOL 1 | |
10742 | EOF | |
10743 | ||
10744 | wx_cv_cpp_bool=yes | |
10745 | ||
10746 | else | |
10747 | echo "configure: failed program was:" >&5 | |
10748 | cat conftest.$ac_ext >&5 | |
10749 | rm -rf conftest* | |
10750 | ||
10751 | wx_cv_cpp_bool=no | |
10752 | ||
10753 | ||
10754 | fi | |
10755 | rm -f conftest* | |
10756 | ||
10757 | ac_ext=c | |
10758 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10759 | ac_cpp='$CPP $CPPFLAGS' | |
10760 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10761 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10762 | cross_compiling=$ac_cv_prog_cc_cross | |
10763 | ||
10764 | ||
10765 | fi | |
10766 | ||
10767 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
10768 | ||
10769 | if test "$wx_cv_cpp_bool" = "yes"; then | |
10770 | cat >> confdefs.h <<\EOF | |
10771 | #define HAVE_BOOL 1 | |
10772 | EOF | |
10773 | ||
10774 | fi | |
10775 | ||
10776 | ||
10777 | ||
10f2d63a | 10778 | echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6 |
b93d0d08 | 10779 | echo "configure:10780: checking if you need GNU extensions" >&5 |
10f2d63a VZ |
10780 | if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then |
10781 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10782 | else | |
10783 | ||
10784 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 10785 | #line 10786 "configure" |
10f2d63a VZ |
10786 | #include "confdefs.h" |
10787 | #include <features.h> | |
10788 | int main() { | |
10789 | ||
10790 | ||
10791 | #ifndef __GNU_LIBRARY__ | |
10792 | Compile error wanted | |
10793 | #endif | |
10794 | ||
10795 | ||
10796 | ; return 0; } | |
10797 | EOF | |
b93d0d08 | 10798 | if { (eval echo configure:10799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
10799 | rm -rf conftest* |
10800 | wx_cv_gnu_extensions=yes | |
10801 | else | |
10802 | echo "configure: failed program was:" >&5 | |
10803 | cat conftest.$ac_ext >&5 | |
10804 | rm -rf conftest* | |
10805 | wx_cv_gnu_extensions=no | |
10806 | fi | |
10807 | rm -f conftest* | |
10808 | ||
10809 | fi | |
10810 | ||
10811 | ||
10812 | echo "$ac_t""$wx_cv_gnu_extensions" 1>&6 | |
10813 | if test "$wx_cv_gnu_extensions" = "yes"; then | |
10814 | cat >> confdefs.h <<EOF | |
10815 | #define _GNU_SOURCE 1 | |
10816 | EOF | |
10817 | ||
10818 | fi | |
10819 | ||
10820 | ||
10821 | ||
10822 | echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6 | |
b93d0d08 | 10823 | echo "configure:10824: checking for wcslen in -lc" >&5 |
10f2d63a VZ |
10824 | ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'` |
10825 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10826 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10827 | else | |
10828 | ac_save_LIBS="$LIBS" | |
10829 | LIBS="-lc $LIBS" | |
10830 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 10831 | #line 10832 "configure" |
10f2d63a VZ |
10832 | #include "confdefs.h" |
10833 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10834 | /* We use char because int might match the return type of a gcc2 | |
10835 | builtin and then its argument prototype would still apply. */ | |
10836 | char wcslen(); | |
10837 | ||
10838 | int main() { | |
10839 | wcslen() | |
10840 | ; return 0; } | |
10841 | EOF | |
b93d0d08 | 10842 | if { (eval echo configure:10843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10843 | rm -rf conftest* |
10844 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10845 | else | |
10846 | echo "configure: failed program was:" >&5 | |
10847 | cat conftest.$ac_ext >&5 | |
10848 | rm -rf conftest* | |
10849 | eval "ac_cv_lib_$ac_lib_var=no" | |
10850 | fi | |
10851 | rm -f conftest* | |
10852 | LIBS="$ac_save_LIBS" | |
10853 | ||
10854 | fi | |
10855 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10856 | echo "$ac_t""yes" 1>&6 | |
10857 | ||
10858 | cat >> confdefs.h <<\EOF | |
10859 | #define HAVE_WCSLEN 1 | |
10860 | EOF | |
10861 | ||
10862 | WCHAR_LINK="" | |
10863 | ||
10864 | else | |
10865 | echo "$ac_t""no" 1>&6 | |
10866 | ||
10867 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 | |
b93d0d08 | 10868 | echo "configure:10869: checking for wcslen in -lw" >&5 |
10f2d63a VZ |
10869 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
10870 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10871 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10872 | else | |
10873 | ac_save_LIBS="$LIBS" | |
10874 | LIBS="-lw $LIBS" | |
10875 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 10876 | #line 10877 "configure" |
10f2d63a VZ |
10877 | #include "confdefs.h" |
10878 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10879 | /* We use char because int might match the return type of a gcc2 | |
10880 | builtin and then its argument prototype would still apply. */ | |
10881 | char wcslen(); | |
10882 | ||
10883 | int main() { | |
10884 | wcslen() | |
10885 | ; return 0; } | |
10886 | EOF | |
b93d0d08 | 10887 | if { (eval echo configure:10888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10888 | rm -rf conftest* |
10889 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10890 | else | |
10891 | echo "configure: failed program was:" >&5 | |
10892 | cat conftest.$ac_ext >&5 | |
10893 | rm -rf conftest* | |
10894 | eval "ac_cv_lib_$ac_lib_var=no" | |
10895 | fi | |
10896 | rm -f conftest* | |
10897 | LIBS="$ac_save_LIBS" | |
10898 | ||
10899 | fi | |
10900 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10901 | echo "$ac_t""yes" 1>&6 | |
10902 | ||
10903 | cat >> confdefs.h <<\EOF | |
10904 | #define HAVE_WCSLEN 1 | |
10905 | EOF | |
10906 | ||
10907 | WCHAR_LINK="-lw" | |
10908 | ||
10909 | else | |
10910 | echo "$ac_t""no" 1>&6 | |
10911 | fi | |
10912 | ||
10913 | ||
10914 | fi | |
10915 | ||
10916 | ||
10917 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 | |
b93d0d08 | 10918 | echo "configure:10919: checking for vprintf" >&5 |
10f2d63a VZ |
10919 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
10920 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10921 | else | |
10922 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 10923 | #line 10924 "configure" |
10f2d63a VZ |
10924 | #include "confdefs.h" |
10925 | /* System header to define __stub macros and hopefully few prototypes, | |
10926 | which can conflict with char vprintf(); below. */ | |
10927 | #include <assert.h> | |
10928 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10929 | /* We use char because int might match the return type of a gcc2 | |
10930 | builtin and then its argument prototype would still apply. */ | |
10931 | char vprintf(); | |
10932 | ||
10933 | int main() { | |
10934 | ||
10935 | /* The GNU C library defines this for functions which it implements | |
10936 | to always fail with ENOSYS. Some functions are actually named | |
10937 | something starting with __ and the normal name is an alias. */ | |
10938 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
10939 | choke me | |
10940 | #else | |
e8482f24 | 10941 | vprintf(); |
10f2d63a VZ |
10942 | #endif |
10943 | ||
10944 | ; return 0; } | |
10945 | EOF | |
b93d0d08 | 10946 | if { (eval echo configure:10947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10947 | rm -rf conftest* |
10948 | eval "ac_cv_func_vprintf=yes" | |
10949 | else | |
10950 | echo "configure: failed program was:" >&5 | |
10951 | cat conftest.$ac_ext >&5 | |
10952 | rm -rf conftest* | |
10953 | eval "ac_cv_func_vprintf=no" | |
10954 | fi | |
10955 | rm -f conftest* | |
10956 | fi | |
10957 | ||
10958 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
10959 | echo "$ac_t""yes" 1>&6 | |
10960 | cat >> confdefs.h <<\EOF | |
10961 | #define HAVE_VPRINTF 1 | |
10962 | EOF | |
10963 | ||
10964 | else | |
10965 | echo "$ac_t""no" 1>&6 | |
10966 | fi | |
10967 | ||
10968 | if test "$ac_cv_func_vprintf" != yes; then | |
10969 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
b93d0d08 | 10970 | echo "configure:10971: checking for _doprnt" >&5 |
10f2d63a VZ |
10971 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
10972 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10973 | else | |
10974 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 10975 | #line 10976 "configure" |
10f2d63a VZ |
10976 | #include "confdefs.h" |
10977 | /* System header to define __stub macros and hopefully few prototypes, | |
10978 | which can conflict with char _doprnt(); below. */ | |
10979 | #include <assert.h> | |
10980 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10981 | /* We use char because int might match the return type of a gcc2 | |
10982 | builtin and then its argument prototype would still apply. */ | |
10983 | char _doprnt(); | |
10984 | ||
10985 | int main() { | |
10986 | ||
10987 | /* The GNU C library defines this for functions which it implements | |
10988 | to always fail with ENOSYS. Some functions are actually named | |
10989 | something starting with __ and the normal name is an alias. */ | |
10990 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
10991 | choke me | |
10992 | #else | |
e8482f24 | 10993 | _doprnt(); |
10f2d63a VZ |
10994 | #endif |
10995 | ||
10996 | ; return 0; } | |
10997 | EOF | |
b93d0d08 | 10998 | if { (eval echo configure:10999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10999 | rm -rf conftest* |
11000 | eval "ac_cv_func__doprnt=yes" | |
11001 | else | |
11002 | echo "configure: failed program was:" >&5 | |
11003 | cat conftest.$ac_ext >&5 | |
11004 | rm -rf conftest* | |
11005 | eval "ac_cv_func__doprnt=no" | |
11006 | fi | |
11007 | rm -f conftest* | |
11008 | fi | |
11009 | ||
11010 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
11011 | echo "$ac_t""yes" 1>&6 | |
11012 | cat >> confdefs.h <<\EOF | |
11013 | #define HAVE_DOPRNT 1 | |
11014 | EOF | |
11015 | ||
11016 | else | |
11017 | echo "$ac_t""no" 1>&6 | |
11018 | fi | |
11019 | ||
11020 | fi | |
11021 | ||
11022 | ||
10f2d63a | 11023 | |
f6bcfd97 BP |
11024 | |
11025 | ||
c521c494 | 11026 | |
9d8deca0 | 11027 | |
f6bcfd97 | 11028 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 |
b93d0d08 | 11029 | echo "configure:11030: checking for vsnprintf" >&5 |
f6bcfd97 BP |
11030 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then |
11031 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11032 | else | |
11033 | ||
11034 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 11035 | #line 11036 "configure" |
f6bcfd97 BP |
11036 | #include "confdefs.h" |
11037 | ||
11038 | #include <stdio.h> | |
11039 | #include <stdarg.h> | |
11040 | ||
10f2d63a VZ |
11041 | int main() { |
11042 | ||
f6bcfd97 | 11043 | int wx_test_vsnprintf(const char *, ...); |
10f2d63a | 11044 | |
f6bcfd97 BP |
11045 | wx_test_vsnprintf("%s"); |
11046 | return 0; | |
11047 | } | |
11048 | ||
11049 | int wx_test_vsnprintf(const char *fmt, ...) | |
11050 | { | |
11051 | char *s; | |
11052 | ||
11053 | va_list argp; | |
11054 | va_start(argp, fmt); | |
11055 | vsnprintf(s, 42, fmt, argp); | |
11056 | va_end(argp); | |
11057 | ||
10f2d63a VZ |
11058 | ; return 0; } |
11059 | EOF | |
b93d0d08 | 11060 | if { (eval echo configure:11061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a | 11061 | rm -rf conftest* |
f6bcfd97 | 11062 | |
f6bcfd97 BP |
11063 | wx_cv_func_vsnprintf=yes |
11064 | ||
10f2d63a VZ |
11065 | else |
11066 | echo "configure: failed program was:" >&5 | |
11067 | cat conftest.$ac_ext >&5 | |
11068 | rm -rf conftest* | |
f6bcfd97 | 11069 | |
c521c494 | 11070 | cat > conftest.$ac_ext <<EOF |
b93d0d08 | 11071 | #line 11072 "configure" |
c521c494 RL |
11072 | #include "confdefs.h" |
11073 | ||
11074 | #include <stdio.h> | |
11075 | #include <stdarg.h> | |
11076 | ||
11077 | int main() { | |
11078 | ||
11079 | int wx_test_vsnprintf(const char *, ...); | |
11080 | ||
11081 | wx_test_vsnprintf("%s"); | |
11082 | return 0; | |
11083 | } | |
11084 | ||
11085 | int wx_test_vsnprintf(const char *fmt, ...) | |
11086 | { | |
11087 | char *s; | |
11088 | ||
11089 | va_list argp; | |
11090 | va_start(argp, fmt); | |
11091 | _vsnprintf(s, 42, fmt, argp); | |
11092 | va_end(argp); | |
11093 | ||
11094 | ; return 0; } | |
11095 | EOF | |
b93d0d08 | 11096 | if { (eval echo configure:11097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
c521c494 RL |
11097 | rm -rf conftest* |
11098 | ||
c521c494 RL |
11099 | wx_cv_func_vsnprintf=yes |
11100 | ||
11101 | else | |
11102 | echo "configure: failed program was:" >&5 | |
11103 | cat conftest.$ac_ext >&5 | |
11104 | rm -rf conftest* | |
11105 | ||
c521c494 RL |
11106 | wx_cv_func_vsnprintf=no |
11107 | ||
11108 | fi | |
11109 | rm -f conftest* | |
f6bcfd97 | 11110 | |
10f2d63a VZ |
11111 | fi |
11112 | rm -f conftest* | |
10f2d63a | 11113 | |
10f2d63a | 11114 | fi |
10f2d63a | 11115 | |
f6bcfd97 | 11116 | echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6 |
10f2d63a | 11117 | |
9d8deca0 VZ |
11118 | if test "$wx_cv_func_vsnprintf" = yes; then |
11119 | cat >> confdefs.h <<\EOF | |
11120 | #define HAVE_VSNPRINTF 1 | |
11121 | EOF | |
11122 | ||
11123 | else | |
11124 | echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2 | |
11125 | fi | |
11126 | ||
10f2d63a | 11127 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 |
b93d0d08 | 11128 | echo "configure:11129: checking for vsscanf" >&5 |
10f2d63a VZ |
11129 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
11130 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11131 | else | |
11132 | ||
10f2d63a | 11133 | cat > conftest.$ac_ext <<EOF |
b93d0d08 | 11134 | #line 11135 "configure" |
10f2d63a | 11135 | #include "confdefs.h" |
10f2d63a | 11136 | |
f6bcfd97 BP |
11137 | #include <stdio.h> |
11138 | #include <stdarg.h> | |
11139 | ||
11140 | int main() { | |
10f2d63a | 11141 | |
f6bcfd97 | 11142 | int wx_test_vsscanf(const char *, ...); |
10f2d63a | 11143 | |
f6bcfd97 BP |
11144 | wx_test_vsscanf("%d"); |
11145 | return 0; | |
10f2d63a VZ |
11146 | } |
11147 | ||
f6bcfd97 | 11148 | int wx_test_vsscanf(const char *fmt, ...) |
10f2d63a | 11149 | { |
f6bcfd97 BP |
11150 | va_list argp; |
11151 | va_start(argp, fmt); | |
11152 | vsscanf("42", fmt, argp); | |
11153 | va_end(argp); | |
11154 | ||
11155 | ; return 0; } | |
10f2d63a | 11156 | EOF |
b93d0d08 | 11157 | if { (eval echo configure:11158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
f6bcfd97 | 11158 | rm -rf conftest* |
10f2d63a | 11159 | |
f6bcfd97 BP |
11160 | wx_cv_func_vsscanf=yes |
11161 | ||
10f2d63a VZ |
11162 | else |
11163 | echo "configure: failed program was:" >&5 | |
11164 | cat conftest.$ac_ext >&5 | |
f6bcfd97 BP |
11165 | rm -rf conftest* |
11166 | ||
11167 | wx_cv_func_vsscanf=no | |
11168 | ||
10f2d63a | 11169 | fi |
f6bcfd97 | 11170 | rm -f conftest* |
10f2d63a VZ |
11171 | |
11172 | fi | |
11173 | ||
11174 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 | |
11175 | ||
9d8deca0 VZ |
11176 | if test "$wx_cv_func_vsscanf" = yes; then |
11177 | cat >> confdefs.h <<\EOF | |
11178 | #define HAVE_VSSCANF 1 | |
11179 | EOF | |
11180 | ||
11181 | fi | |
11182 | ||
95c8801c VS |
11183 | |
11184 | ||
11185 | if test "$TOOLKIT" != "MSW"; then | |
11186 | ||
11187 | ||
11188 | ||
11189 | ac_ext=C | |
11190 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11191 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11192 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11193 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11194 | cross_compiling=$ac_cv_prog_cxx_cross | |
11195 | ||
11196 | echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6 | |
b93d0d08 | 11197 | echo "configure:11198: checking if iconv() takes char**" >&5 |
95c8801c VS |
11198 | if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then |
11199 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11200 | else | |
11201 | ||
11202 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 11203 | #line 11204 "configure" |
95c8801c VS |
11204 | #include "confdefs.h" |
11205 | #include <iconv.h> | |
11206 | int main() { | |
11207 | ||
11208 | char **inbuf, **outbuf; | |
11209 | iconv_t cd; | |
11210 | size_t insz, outsz; | |
11211 | iconv(cd, inbuf, &insz, outbuf, &outsz); | |
11212 | ||
11213 | ; return 0; } | |
11214 | EOF | |
b93d0d08 | 11215 | if { (eval echo configure:11216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
95c8801c VS |
11216 | rm -rf conftest* |
11217 | wx_cv_iconv_takes_char=yes | |
11218 | else | |
11219 | echo "configure: failed program was:" >&5 | |
11220 | cat conftest.$ac_ext >&5 | |
11221 | rm -rf conftest* | |
11222 | wx_cv_iconv_takes_char=no | |
11223 | fi | |
11224 | rm -f conftest* | |
11225 | ||
11226 | fi | |
11227 | ||
11228 | echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6 | |
10f2d63a VZ |
11229 | ac_ext=c |
11230 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11231 | ac_cpp='$CPP $CPPFLAGS' | |
11232 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11233 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11234 | cross_compiling=$ac_cv_prog_cc_cross | |
11235 | ||
95c8801c VS |
11236 | if test "$wx_cv_iconv_takes_char" = yes ; then |
11237 | cat >> confdefs.h <<\EOF | |
11238 | #define WX_ICONV_TAKES_CHAR 1 | |
11239 | EOF | |
11240 | ||
11241 | fi | |
10f2d63a | 11242 | |
10f2d63a | 11243 | |
eb4efbdc VZ |
11244 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
11245 | for ac_func in sigaction | |
11246 | do | |
11247 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
b93d0d08 | 11248 | echo "configure:11249: checking for $ac_func" >&5 |
eb4efbdc VZ |
11249 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11250 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11251 | else | |
11252 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 11253 | #line 11254 "configure" |
eb4efbdc VZ |
11254 | #include "confdefs.h" |
11255 | /* System header to define __stub macros and hopefully few prototypes, | |
11256 | which can conflict with char $ac_func(); below. */ | |
11257 | #include <assert.h> | |
11258 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11259 | /* We use char because int might match the return type of a gcc2 | |
11260 | builtin and then its argument prototype would still apply. */ | |
11261 | char $ac_func(); | |
11262 | ||
11263 | int main() { | |
11264 | ||
11265 | /* The GNU C library defines this for functions which it implements | |
11266 | to always fail with ENOSYS. Some functions are actually named | |
11267 | something starting with __ and the normal name is an alias. */ | |
11268 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11269 | choke me | |
11270 | #else | |
11271 | $ac_func(); | |
11272 | #endif | |
11273 | ||
11274 | ; return 0; } | |
11275 | EOF | |
b93d0d08 | 11276 | if { (eval echo configure:11277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
eb4efbdc VZ |
11277 | rm -rf conftest* |
11278 | eval "ac_cv_func_$ac_func=yes" | |
11279 | else | |
11280 | echo "configure: failed program was:" >&5 | |
11281 | cat conftest.$ac_ext >&5 | |
11282 | rm -rf conftest* | |
11283 | eval "ac_cv_func_$ac_func=no" | |
11284 | fi | |
11285 | rm -f conftest* | |
11286 | fi | |
11287 | ||
11288 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11289 | echo "$ac_t""yes" 1>&6 | |
11290 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11291 | cat >> confdefs.h <<EOF | |
11292 | #define $ac_tr_func 1 | |
11293 | EOF | |
11294 | ||
11295 | else | |
11296 | echo "$ac_t""no" 1>&6 | |
11297 | fi | |
11298 | done | |
11299 | ||
11300 | ||
11301 | if test "$ac_cv_func_sigaction" = "no"; then | |
11302 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 | |
11303 | wxUSE_ON_FATAL_EXCEPTION=no | |
11304 | fi | |
f6bcfd97 BP |
11305 | |
11306 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
11307 | ||
11308 | ac_ext=C | |
11309 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11310 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11311 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11312 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11313 | cross_compiling=$ac_cv_prog_cxx_cross | |
11314 | ||
11315 | ||
11316 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 | |
b93d0d08 | 11317 | echo "configure:11318: checking for sa_handler type" >&5 |
f6bcfd97 BP |
11318 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
11319 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11320 | else | |
11321 | ||
11322 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 11323 | #line 11324 "configure" |
f6bcfd97 BP |
11324 | #include "confdefs.h" |
11325 | #include <signal.h> | |
11326 | int main() { | |
11327 | ||
11328 | extern void testSigHandler(int); | |
11329 | ||
11330 | struct sigaction sa; | |
11331 | sa.sa_handler = testSigHandler; | |
11332 | ||
11333 | ; return 0; } | |
11334 | EOF | |
b93d0d08 | 11335 | if { (eval echo configure:11336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
f6bcfd97 BP |
11336 | rm -rf conftest* |
11337 | ||
11338 | wx_cv_type_sa_handler=int | |
11339 | ||
11340 | else | |
11341 | echo "configure: failed program was:" >&5 | |
11342 | cat conftest.$ac_ext >&5 | |
11343 | rm -rf conftest* | |
11344 | ||
11345 | wx_cv_type_sa_handler=void | |
11346 | ||
11347 | fi | |
11348 | rm -f conftest* | |
11349 | ||
11350 | fi | |
11351 | ||
11352 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
11353 | ||
11354 | ac_ext=c | |
11355 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11356 | ac_cpp='$CPP $CPPFLAGS' | |
11357 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11358 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11359 | cross_compiling=$ac_cv_prog_cc_cross | |
11360 | ||
11361 | ||
11362 | cat >> confdefs.h <<EOF | |
11363 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
11364 | EOF | |
11365 | ||
11366 | fi | |
eb4efbdc VZ |
11367 | fi |
11368 | ||
10f2d63a VZ |
11369 | for ac_func in vfork |
11370 | do | |
11371 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
b93d0d08 | 11372 | echo "configure:11373: checking for $ac_func" >&5 |
10f2d63a VZ |
11373 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11374 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11375 | else | |
11376 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 11377 | #line 11378 "configure" |
10f2d63a VZ |
11378 | #include "confdefs.h" |
11379 | /* System header to define __stub macros and hopefully few prototypes, | |
11380 | which can conflict with char $ac_func(); below. */ | |
11381 | #include <assert.h> | |
11382 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11383 | /* We use char because int might match the return type of a gcc2 | |
11384 | builtin and then its argument prototype would still apply. */ | |
11385 | char $ac_func(); | |
11386 | ||
11387 | int main() { | |
11388 | ||
11389 | /* The GNU C library defines this for functions which it implements | |
11390 | to always fail with ENOSYS. Some functions are actually named | |
11391 | something starting with __ and the normal name is an alias. */ | |
11392 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11393 | choke me | |
11394 | #else | |
e8482f24 | 11395 | $ac_func(); |
10f2d63a VZ |
11396 | #endif |
11397 | ||
11398 | ; return 0; } | |
11399 | EOF | |
b93d0d08 | 11400 | if { (eval echo configure:11401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
270a909e VZ |
11401 | rm -rf conftest* |
11402 | eval "ac_cv_func_$ac_func=yes" | |
11403 | else | |
11404 | echo "configure: failed program was:" >&5 | |
11405 | cat conftest.$ac_ext >&5 | |
11406 | rm -rf conftest* | |
11407 | eval "ac_cv_func_$ac_func=no" | |
11408 | fi | |
11409 | rm -f conftest* | |
11410 | fi | |
11411 | ||
11412 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11413 | echo "$ac_t""yes" 1>&6 | |
11414 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11415 | cat >> confdefs.h <<EOF | |
11416 | #define $ac_tr_func 1 | |
11417 | EOF | |
11418 | ||
11419 | else | |
11420 | echo "$ac_t""no" 1>&6 | |
11421 | fi | |
11422 | done | |
11423 | ||
11424 | ||
11425 | for ac_func in timegm | |
11426 | do | |
11427 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
b93d0d08 | 11428 | echo "configure:11429: checking for $ac_func" >&5 |
270a909e VZ |
11429 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11430 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11431 | else | |
11432 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 11433 | #line 11434 "configure" |
270a909e VZ |
11434 | #include "confdefs.h" |
11435 | /* System header to define __stub macros and hopefully few prototypes, | |
11436 | which can conflict with char $ac_func(); below. */ | |
11437 | #include <assert.h> | |
11438 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11439 | /* We use char because int might match the return type of a gcc2 | |
11440 | builtin and then its argument prototype would still apply. */ | |
11441 | char $ac_func(); | |
11442 | ||
11443 | int main() { | |
11444 | ||
11445 | /* The GNU C library defines this for functions which it implements | |
11446 | to always fail with ENOSYS. Some functions are actually named | |
11447 | something starting with __ and the normal name is an alias. */ | |
11448 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11449 | choke me | |
11450 | #else | |
e8482f24 | 11451 | $ac_func(); |
270a909e VZ |
11452 | #endif |
11453 | ||
11454 | ; return 0; } | |
11455 | EOF | |
b93d0d08 | 11456 | if { (eval echo configure:11457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11457 | rm -rf conftest* |
11458 | eval "ac_cv_func_$ac_func=yes" | |
11459 | else | |
11460 | echo "configure: failed program was:" >&5 | |
11461 | cat conftest.$ac_ext >&5 | |
11462 | rm -rf conftest* | |
11463 | eval "ac_cv_func_$ac_func=no" | |
11464 | fi | |
11465 | rm -f conftest* | |
11466 | fi | |
11467 | ||
11468 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11469 | echo "$ac_t""yes" 1>&6 | |
11470 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11471 | cat >> confdefs.h <<EOF | |
11472 | #define $ac_tr_func 1 | |
11473 | EOF | |
11474 | ||
11475 | else | |
11476 | echo "$ac_t""no" 1>&6 | |
11477 | fi | |
11478 | done | |
11479 | ||
11480 | ||
8fd0d89b VZ |
11481 | for ac_func in putenv setenv |
11482 | do | |
11483 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
b93d0d08 | 11484 | echo "configure:11485: checking for $ac_func" >&5 |
8fd0d89b VZ |
11485 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11486 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11487 | else | |
11488 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 11489 | #line 11490 "configure" |
8fd0d89b VZ |
11490 | #include "confdefs.h" |
11491 | /* System header to define __stub macros and hopefully few prototypes, | |
11492 | which can conflict with char $ac_func(); below. */ | |
11493 | #include <assert.h> | |
11494 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11495 | /* We use char because int might match the return type of a gcc2 | |
11496 | builtin and then its argument prototype would still apply. */ | |
11497 | char $ac_func(); | |
11498 | ||
11499 | int main() { | |
11500 | ||
11501 | /* The GNU C library defines this for functions which it implements | |
11502 | to always fail with ENOSYS. Some functions are actually named | |
11503 | something starting with __ and the normal name is an alias. */ | |
11504 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11505 | choke me | |
11506 | #else | |
11507 | $ac_func(); | |
11508 | #endif | |
11509 | ||
11510 | ; return 0; } | |
11511 | EOF | |
b93d0d08 | 11512 | if { (eval echo configure:11513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
8fd0d89b VZ |
11513 | rm -rf conftest* |
11514 | eval "ac_cv_func_$ac_func=yes" | |
11515 | else | |
11516 | echo "configure: failed program was:" >&5 | |
11517 | cat conftest.$ac_ext >&5 | |
11518 | rm -rf conftest* | |
11519 | eval "ac_cv_func_$ac_func=no" | |
11520 | fi | |
11521 | rm -f conftest* | |
11522 | fi | |
11523 | ||
11524 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11525 | echo "$ac_t""yes" 1>&6 | |
11526 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11527 | cat >> confdefs.h <<EOF | |
11528 | #define $ac_tr_func 1 | |
11529 | EOF | |
11530 | break | |
11531 | else | |
11532 | echo "$ac_t""no" 1>&6 | |
11533 | fi | |
11534 | done | |
11535 | ||
11536 | ||
b12915c1 VZ |
11537 | HAVE_SOME_SLEEP_FUNC=0 |
11538 | if test "$USE_BEOS" = 1; then | |
11539 | cat >> confdefs.h <<\EOF | |
11540 | #define HAVE_SLEEP 1 | |
11541 | EOF | |
11542 | ||
11543 | HAVE_SOME_SLEEP_FUNC=1 | |
11544 | fi | |
11545 | ||
b4085ce6 GD |
11546 | if test "$USE_MAC" = 1; then |
11547 | cat >> confdefs.h <<\EOF | |
11548 | #define HAVE_USLEEP 1 | |
11549 | EOF | |
11550 | ||
11551 | HAVE_SOME_SLEEP_FUNC=1 | |
11552 | fi | |
11553 | ||
b12915c1 VZ |
11554 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
11555 | POSIX4_LINK= | |
11556 | for ac_func in nanosleep | |
10f2d63a VZ |
11557 | do |
11558 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
b93d0d08 | 11559 | echo "configure:11560: checking for $ac_func" >&5 |
10f2d63a VZ |
11560 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11561 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11562 | else | |
11563 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 11564 | #line 11565 "configure" |
10f2d63a VZ |
11565 | #include "confdefs.h" |
11566 | /* System header to define __stub macros and hopefully few prototypes, | |
11567 | which can conflict with char $ac_func(); below. */ | |
11568 | #include <assert.h> | |
11569 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11570 | /* We use char because int might match the return type of a gcc2 | |
11571 | builtin and then its argument prototype would still apply. */ | |
11572 | char $ac_func(); | |
11573 | ||
11574 | int main() { | |
11575 | ||
11576 | /* The GNU C library defines this for functions which it implements | |
11577 | to always fail with ENOSYS. Some functions are actually named | |
11578 | something starting with __ and the normal name is an alias. */ | |
11579 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11580 | choke me | |
11581 | #else | |
e8482f24 | 11582 | $ac_func(); |
10f2d63a VZ |
11583 | #endif |
11584 | ||
11585 | ; return 0; } | |
11586 | EOF | |
b93d0d08 | 11587 | if { (eval echo configure:11588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11588 | rm -rf conftest* |
11589 | eval "ac_cv_func_$ac_func=yes" | |
11590 | else | |
11591 | echo "configure: failed program was:" >&5 | |
11592 | cat conftest.$ac_ext >&5 | |
11593 | rm -rf conftest* | |
11594 | eval "ac_cv_func_$ac_func=no" | |
11595 | fi | |
11596 | rm -f conftest* | |
11597 | fi | |
11598 | ||
11599 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11600 | echo "$ac_t""yes" 1>&6 | |
11601 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11602 | cat >> confdefs.h <<EOF | |
11603 | #define $ac_tr_func 1 | |
11604 | EOF | |
11605 | cat >> confdefs.h <<\EOF | |
11606 | #define HAVE_NANOSLEEP 1 | |
11607 | EOF | |
11608 | ||
11609 | else | |
11610 | echo "$ac_t""no" 1>&6 | |
11611 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
b93d0d08 | 11612 | echo "configure:11613: checking for nanosleep in -lposix4" >&5 |
10f2d63a VZ |
11613 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
11614 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11615 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11616 | else | |
11617 | ac_save_LIBS="$LIBS" | |
11618 | LIBS="-lposix4 $LIBS" | |
11619 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 11620 | #line 11621 "configure" |
10f2d63a VZ |
11621 | #include "confdefs.h" |
11622 | /* Override any gcc2 internal prototype to avoid an error. */ | |
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 nanosleep(); | |
11626 | ||
11627 | int main() { | |
11628 | nanosleep() | |
11629 | ; return 0; } | |
11630 | EOF | |
b93d0d08 | 11631 | if { (eval echo configure:11632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11632 | rm -rf conftest* |
11633 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11634 | else | |
11635 | echo "configure: failed program was:" >&5 | |
11636 | cat conftest.$ac_ext >&5 | |
11637 | rm -rf conftest* | |
11638 | eval "ac_cv_lib_$ac_lib_var=no" | |
11639 | fi | |
11640 | rm -f conftest* | |
11641 | LIBS="$ac_save_LIBS" | |
11642 | ||
11643 | fi | |
11644 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11645 | echo "$ac_t""yes" 1>&6 | |
11646 | ||
b12915c1 | 11647 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
11648 | #define HAVE_NANOSLEEP 1 |
11649 | EOF | |
11650 | ||
b12915c1 VZ |
11651 | POSIX4_LINK="-lposix4" |
11652 | ||
10f2d63a VZ |
11653 | else |
11654 | echo "$ac_t""no" 1>&6 | |
11655 | ||
b12915c1 | 11656 | for ac_func in usleep |
10f2d63a VZ |
11657 | do |
11658 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
b93d0d08 | 11659 | echo "configure:11660: checking for $ac_func" >&5 |
10f2d63a VZ |
11660 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11661 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11662 | else | |
11663 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 11664 | #line 11665 "configure" |
10f2d63a VZ |
11665 | #include "confdefs.h" |
11666 | /* System header to define __stub macros and hopefully few prototypes, | |
11667 | which can conflict with char $ac_func(); below. */ | |
11668 | #include <assert.h> | |
11669 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11670 | /* We use char because int might match the return type of a gcc2 | |
11671 | builtin and then its argument prototype would still apply. */ | |
11672 | char $ac_func(); | |
11673 | ||
11674 | int main() { | |
11675 | ||
11676 | /* The GNU C library defines this for functions which it implements | |
11677 | to always fail with ENOSYS. Some functions are actually named | |
11678 | something starting with __ and the normal name is an alias. */ | |
11679 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11680 | choke me | |
11681 | #else | |
e8482f24 | 11682 | $ac_func(); |
10f2d63a VZ |
11683 | #endif |
11684 | ||
11685 | ; return 0; } | |
11686 | EOF | |
b93d0d08 | 11687 | if { (eval echo configure:11688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11688 | rm -rf conftest* |
11689 | eval "ac_cv_func_$ac_func=yes" | |
11690 | else | |
11691 | echo "configure: failed program was:" >&5 | |
11692 | cat conftest.$ac_ext >&5 | |
11693 | rm -rf conftest* | |
11694 | eval "ac_cv_func_$ac_func=no" | |
11695 | fi | |
11696 | rm -f conftest* | |
11697 | fi | |
11698 | ||
11699 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11700 | echo "$ac_t""yes" 1>&6 | |
11701 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11702 | cat >> confdefs.h <<EOF | |
11703 | #define $ac_tr_func 1 | |
11704 | EOF | |
b4085ce6 GD |
11705 | cat >> confdefs.h <<\EOF |
11706 | #define HAVE_USLEEP 1 | |
11707 | EOF | |
11708 | ||
10f2d63a VZ |
11709 | else |
11710 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
11711 | fi |
11712 | done | |
11713 | ||
b12915c1 VZ |
11714 | echo "configure: warning: wxSleep() function will not work" 1>&2 |
11715 | ||
11716 | ||
10f2d63a VZ |
11717 | fi |
11718 | ||
b12915c1 VZ |
11719 | |
11720 | ||
10f2d63a VZ |
11721 | fi |
11722 | done | |
11723 | ||
b12915c1 | 11724 | fi |
10f2d63a VZ |
11725 | |
11726 | for ac_func in uname gethostname | |
11727 | do | |
11728 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
b93d0d08 | 11729 | echo "configure:11730: checking for $ac_func" >&5 |
10f2d63a VZ |
11730 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11731 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11732 | else | |
11733 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 11734 | #line 11735 "configure" |
10f2d63a VZ |
11735 | #include "confdefs.h" |
11736 | /* System header to define __stub macros and hopefully few prototypes, | |
11737 | which can conflict with char $ac_func(); below. */ | |
11738 | #include <assert.h> | |
11739 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11740 | /* We use char because int might match the return type of a gcc2 | |
11741 | builtin and then its argument prototype would still apply. */ | |
11742 | char $ac_func(); | |
11743 | ||
11744 | int main() { | |
11745 | ||
11746 | /* The GNU C library defines this for functions which it implements | |
11747 | to always fail with ENOSYS. Some functions are actually named | |
11748 | something starting with __ and the normal name is an alias. */ | |
11749 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11750 | choke me | |
11751 | #else | |
e8482f24 | 11752 | $ac_func(); |
10f2d63a VZ |
11753 | #endif |
11754 | ||
11755 | ; return 0; } | |
11756 | EOF | |
b93d0d08 | 11757 | if { (eval echo configure:11758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11758 | rm -rf conftest* |
11759 | eval "ac_cv_func_$ac_func=yes" | |
11760 | else | |
11761 | echo "configure: failed program was:" >&5 | |
11762 | cat conftest.$ac_ext >&5 | |
11763 | rm -rf conftest* | |
11764 | eval "ac_cv_func_$ac_func=no" | |
11765 | fi | |
11766 | rm -f conftest* | |
11767 | fi | |
11768 | ||
11769 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11770 | echo "$ac_t""yes" 1>&6 | |
11771 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11772 | cat >> confdefs.h <<EOF | |
11773 | #define $ac_tr_func 1 | |
11774 | EOF | |
11775 | break | |
11776 | else | |
11777 | echo "$ac_t""no" 1>&6 | |
11778 | fi | |
11779 | done | |
11780 | ||
11781 | ||
6098c7f9 VZ |
11782 | |
11783 | ac_ext=C | |
11784 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11785 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11786 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11787 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11788 | cross_compiling=$ac_cv_prog_cxx_cross | |
11789 | ||
11790 | ||
10f2d63a VZ |
11791 | for ac_func in strtok_r |
11792 | do | |
11793 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
b93d0d08 | 11794 | echo "configure:11795: checking for $ac_func" >&5 |
10f2d63a VZ |
11795 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11796 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11797 | else | |
11798 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 11799 | #line 11800 "configure" |
10f2d63a VZ |
11800 | #include "confdefs.h" |
11801 | /* System header to define __stub macros and hopefully few prototypes, | |
11802 | which can conflict with char $ac_func(); below. */ | |
11803 | #include <assert.h> | |
11804 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6098c7f9 VZ |
11805 | #ifdef __cplusplus |
11806 | extern "C" | |
11807 | #endif | |
10f2d63a VZ |
11808 | /* We use char because int might match the return type of a gcc2 |
11809 | builtin and then its argument prototype would still apply. */ | |
11810 | char $ac_func(); | |
11811 | ||
11812 | int main() { | |
11813 | ||
11814 | /* The GNU C library defines this for functions which it implements | |
11815 | to always fail with ENOSYS. Some functions are actually named | |
11816 | something starting with __ and the normal name is an alias. */ | |
11817 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11818 | choke me | |
11819 | #else | |
e8482f24 | 11820 | $ac_func(); |
10f2d63a VZ |
11821 | #endif |
11822 | ||
11823 | ; return 0; } | |
11824 | EOF | |
b93d0d08 | 11825 | if { (eval echo configure:11826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11826 | rm -rf conftest* |
11827 | eval "ac_cv_func_$ac_func=yes" | |
11828 | else | |
11829 | echo "configure: failed program was:" >&5 | |
11830 | cat conftest.$ac_ext >&5 | |
11831 | rm -rf conftest* | |
11832 | eval "ac_cv_func_$ac_func=no" | |
11833 | fi | |
11834 | rm -f conftest* | |
11835 | fi | |
11836 | ||
11837 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11838 | echo "$ac_t""yes" 1>&6 | |
11839 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11840 | cat >> confdefs.h <<EOF | |
11841 | #define $ac_tr_func 1 | |
11842 | EOF | |
11843 | ||
11844 | else | |
11845 | echo "$ac_t""no" 1>&6 | |
11846 | fi | |
11847 | done | |
11848 | ||
11849 | ||
6098c7f9 VZ |
11850 | ac_ext=c |
11851 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11852 | ac_cpp='$CPP $CPPFLAGS' | |
11853 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11854 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11855 | cross_compiling=$ac_cv_prog_cc_cross | |
11856 | ||
11857 | ||
c63c7106 | 11858 | INET_LINK= |
10f2d63a VZ |
11859 | for ac_func in inet_addr |
11860 | do | |
11861 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
b93d0d08 | 11862 | echo "configure:11863: checking for $ac_func" >&5 |
10f2d63a VZ |
11863 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11864 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11865 | else | |
11866 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 11867 | #line 11868 "configure" |
10f2d63a VZ |
11868 | #include "confdefs.h" |
11869 | /* System header to define __stub macros and hopefully few prototypes, | |
11870 | which can conflict with char $ac_func(); below. */ | |
11871 | #include <assert.h> | |
11872 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11873 | /* We use char because int might match the return type of a gcc2 | |
11874 | builtin and then its argument prototype would still apply. */ | |
11875 | char $ac_func(); | |
11876 | ||
11877 | int main() { | |
11878 | ||
11879 | /* The GNU C library defines this for functions which it implements | |
11880 | to always fail with ENOSYS. Some functions are actually named | |
11881 | something starting with __ and the normal name is an alias. */ | |
11882 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11883 | choke me | |
11884 | #else | |
e8482f24 | 11885 | $ac_func(); |
10f2d63a VZ |
11886 | #endif |
11887 | ||
11888 | ; return 0; } | |
11889 | EOF | |
b93d0d08 | 11890 | if { (eval echo configure:11891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11891 | rm -rf conftest* |
11892 | eval "ac_cv_func_$ac_func=yes" | |
11893 | else | |
11894 | echo "configure: failed program was:" >&5 | |
11895 | cat conftest.$ac_ext >&5 | |
11896 | rm -rf conftest* | |
11897 | eval "ac_cv_func_$ac_func=no" | |
11898 | fi | |
11899 | rm -f conftest* | |
11900 | fi | |
11901 | ||
11902 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11903 | echo "$ac_t""yes" 1>&6 | |
11904 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11905 | cat >> confdefs.h <<EOF | |
11906 | #define $ac_tr_func 1 | |
11907 | EOF | |
c63c7106 VZ |
11908 | cat >> confdefs.h <<\EOF |
11909 | #define HAVE_INET_ADDR 1 | |
11910 | EOF | |
11911 | ||
10f2d63a VZ |
11912 | else |
11913 | echo "$ac_t""no" 1>&6 | |
c63c7106 | 11914 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 |
b93d0d08 | 11915 | echo "configure:11916: checking for inet_addr in -lnsl" >&5 |
c63c7106 VZ |
11916 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
11917 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11918 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11919 | else | |
11920 | ac_save_LIBS="$LIBS" | |
11921 | LIBS="-lnsl $LIBS" | |
11922 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 11923 | #line 11924 "configure" |
c63c7106 VZ |
11924 | #include "confdefs.h" |
11925 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11926 | /* We use char because int might match the return type of a gcc2 | |
11927 | builtin and then its argument prototype would still apply. */ | |
11928 | char inet_addr(); | |
11929 | ||
11930 | int main() { | |
11931 | inet_addr() | |
11932 | ; return 0; } | |
11933 | EOF | |
b93d0d08 | 11934 | if { (eval echo configure:11935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c63c7106 VZ |
11935 | rm -rf conftest* |
11936 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11937 | else | |
11938 | echo "configure: failed program was:" >&5 | |
11939 | cat conftest.$ac_ext >&5 | |
11940 | rm -rf conftest* | |
11941 | eval "ac_cv_lib_$ac_lib_var=no" | |
11942 | fi | |
11943 | rm -f conftest* | |
11944 | LIBS="$ac_save_LIBS" | |
11945 | ||
11946 | fi | |
11947 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11948 | echo "$ac_t""yes" 1>&6 | |
11949 | INET_LINK="nsl" | |
11950 | else | |
11951 | echo "$ac_t""no" 1>&6 | |
11952 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 | |
b93d0d08 | 11953 | echo "configure:11954: checking for inet_addr in -lresolv" >&5 |
c63c7106 VZ |
11954 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
11955 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11956 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11957 | else | |
11958 | ac_save_LIBS="$LIBS" | |
11959 | LIBS="-lresolv $LIBS" | |
11960 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 11961 | #line 11962 "configure" |
c63c7106 VZ |
11962 | #include "confdefs.h" |
11963 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11964 | /* We use char because int might match the return type of a gcc2 | |
11965 | builtin and then its argument prototype would still apply. */ | |
11966 | char inet_addr(); | |
11967 | ||
11968 | int main() { | |
11969 | inet_addr() | |
11970 | ; return 0; } | |
11971 | EOF | |
b93d0d08 | 11972 | if { (eval echo configure:11973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c63c7106 VZ |
11973 | rm -rf conftest* |
11974 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11975 | else | |
11976 | echo "configure: failed program was:" >&5 | |
11977 | cat conftest.$ac_ext >&5 | |
11978 | rm -rf conftest* | |
11979 | eval "ac_cv_lib_$ac_lib_var=no" | |
11980 | fi | |
11981 | rm -f conftest* | |
11982 | LIBS="$ac_save_LIBS" | |
11983 | ||
11984 | fi | |
11985 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11986 | echo "$ac_t""yes" 1>&6 | |
11987 | INET_LINK="resolv" | |
11988 | ||
11989 | else | |
11990 | echo "$ac_t""no" 1>&6 | |
11991 | fi | |
11992 | ||
11993 | ||
11994 | fi | |
11995 | ||
11996 | ||
11997 | ||
10f2d63a VZ |
11998 | fi |
11999 | done | |
12000 | ||
c63c7106 | 12001 | |
10f2d63a VZ |
12002 | for ac_func in inet_aton |
12003 | do | |
12004 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
b93d0d08 | 12005 | echo "configure:12006: checking for $ac_func" >&5 |
10f2d63a VZ |
12006 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12007 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12008 | else | |
12009 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 12010 | #line 12011 "configure" |
10f2d63a VZ |
12011 | #include "confdefs.h" |
12012 | /* System header to define __stub macros and hopefully few prototypes, | |
12013 | which can conflict with char $ac_func(); below. */ | |
12014 | #include <assert.h> | |
12015 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12016 | /* We use char because int might match the return type of a gcc2 | |
12017 | builtin and then its argument prototype would still apply. */ | |
12018 | char $ac_func(); | |
12019 | ||
12020 | int main() { | |
12021 | ||
12022 | /* The GNU C library defines this for functions which it implements | |
12023 | to always fail with ENOSYS. Some functions are actually named | |
12024 | something starting with __ and the normal name is an alias. */ | |
12025 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12026 | choke me | |
12027 | #else | |
e8482f24 | 12028 | $ac_func(); |
10f2d63a VZ |
12029 | #endif |
12030 | ||
12031 | ; return 0; } | |
12032 | EOF | |
b93d0d08 | 12033 | if { (eval echo configure:12034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
12034 | rm -rf conftest* |
12035 | eval "ac_cv_func_$ac_func=yes" | |
12036 | else | |
12037 | echo "configure: failed program was:" >&5 | |
12038 | cat conftest.$ac_ext >&5 | |
12039 | rm -rf conftest* | |
12040 | eval "ac_cv_func_$ac_func=no" | |
12041 | fi | |
12042 | rm -f conftest* | |
12043 | fi | |
12044 | ||
12045 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12046 | echo "$ac_t""yes" 1>&6 | |
12047 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12048 | cat >> confdefs.h <<EOF | |
12049 | #define $ac_tr_func 1 | |
12050 | EOF | |
c63c7106 VZ |
12051 | cat >> confdefs.h <<\EOF |
12052 | #define HAVE_INET_ATON 1 | |
12053 | EOF | |
12054 | ||
10f2d63a VZ |
12055 | else |
12056 | echo "$ac_t""no" 1>&6 | |
c63c7106 | 12057 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 |
b93d0d08 | 12058 | echo "configure:12059: checking for inet_aton in -l$INET_LINK" >&5 |
c63c7106 | 12059 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
10f2d63a VZ |
12060 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
12061 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12062 | else | |
12063 | ac_save_LIBS="$LIBS" | |
c63c7106 | 12064 | LIBS="-l$INET_LINK $LIBS" |
10f2d63a | 12065 | cat > conftest.$ac_ext <<EOF |
b93d0d08 | 12066 | #line 12067 "configure" |
10f2d63a VZ |
12067 | #include "confdefs.h" |
12068 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12069 | /* We use char because int might match the return type of a gcc2 | |
12070 | builtin and then its argument prototype would still apply. */ | |
12071 | char inet_aton(); | |
12072 | ||
12073 | int main() { | |
12074 | inet_aton() | |
12075 | ; return 0; } | |
12076 | EOF | |
b93d0d08 | 12077 | if { (eval echo configure:12078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
12078 | rm -rf conftest* |
12079 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12080 | else | |
12081 | echo "configure: failed program was:" >&5 | |
12082 | cat conftest.$ac_ext >&5 | |
12083 | rm -rf conftest* | |
12084 | eval "ac_cv_lib_$ac_lib_var=no" | |
12085 | fi | |
12086 | rm -f conftest* | |
12087 | LIBS="$ac_save_LIBS" | |
12088 | ||
12089 | fi | |
12090 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12091 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
12092 | cat >> confdefs.h <<\EOF |
12093 | #define HAVE_INET_ATON 1 | |
10f2d63a VZ |
12094 | EOF |
12095 | ||
10f2d63a VZ |
12096 | else |
12097 | echo "$ac_t""no" 1>&6 | |
12098 | fi | |
12099 | ||
c63c7106 VZ |
12100 | |
12101 | fi | |
12102 | done | |
12103 | ||
12104 | ||
12105 | if test "x$INET_LINK" != "x"; then | |
12106 | cat >> confdefs.h <<\EOF | |
12107 | #define HAVE_INET_ADDR 1 | |
12108 | EOF | |
12109 | ||
12110 | INET_LINK="-l$INET_LINK" | |
12111 | fi | |
10f2d63a VZ |
12112 | |
12113 | fi | |
12114 | ||
12115 | ||
12116 | cat > confcache <<\EOF | |
12117 | # This file is a shell script that caches the results of configure | |
12118 | # tests run on this system so they can be shared between configure | |
12119 | # scripts and configure runs. It is not useful on other systems. | |
12120 | # If it contains results you don't want to keep, you may remove or edit it. | |
12121 | # | |
12122 | # By default, configure uses ./config.cache as the cache file, | |
12123 | # creating it if it does not exist already. You can give configure | |
12124 | # the --cache-file=FILE option to use a different cache file; that is | |
12125 | # what configure does when it calls configure scripts in | |
12126 | # subdirectories, so they share the cache. | |
12127 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
12128 | # config.status only pays attention to the cache file if you give it the | |
12129 | # --recheck option to rerun configure. | |
12130 | # | |
12131 | EOF | |
12132 | # The following way of writing the cache mishandles newlines in values, | |
12133 | # but we know of no workaround that is simple, portable, and efficient. | |
12134 | # So, don't put newlines in cache variables' values. | |
12135 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
12136 | # and sets the high bit in the cache file unless we assign to the vars. | |
12137 | (set) 2>&1 | | |
12138 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
12139 | *ac_space=\ *) | |
12140 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
12141 | # turns \\\\ into \\, and sed turns \\ into \). | |
12142 | sed -n \ | |
12143 | -e "s/'/'\\\\''/g" \ | |
12144 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
12145 | ;; | |
12146 | *) | |
12147 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
12148 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
12149 | ;; | |
12150 | esac >> confcache | |
12151 | if cmp -s $cache_file confcache; then | |
12152 | : | |
12153 | else | |
12154 | if test -w $cache_file; then | |
12155 | echo "updating cache $cache_file" | |
12156 | cat confcache > $cache_file | |
12157 | else | |
12158 | echo "not updating unwritable cache $cache_file" | |
12159 | fi | |
12160 | fi | |
12161 | rm -f confcache | |
12162 | ||
12163 | ||
12164 | ||
b089607b | 12165 | if test "$TOOLKIT" != "MSW"; then |
10f2d63a VZ |
12166 | |
12167 | ||
12168 | THREADS_LINK="" | |
12169 | THREADS_OBJ="" | |
12170 | ||
12171 | if test "$wxUSE_THREADS" = "yes" ; then | |
12172 | if test "$wxUSE_WINE" = 1 ; then | |
12173 | echo "configure: warning: Threads are not supported under WINE" 1>&2 | |
12174 | wxUSE_THREADS="no" | |
b12915c1 VZ |
12175 | elif test "$USE_BEOS" = 1; then |
12176 | echo "configure: warning: BeOS threads are not yet supported" 1>&2 | |
12177 | wxUSE_THREADS="no" | |
10f2d63a VZ |
12178 | fi |
12179 | fi | |
12180 | ||
12181 | if test "$wxUSE_THREADS" = "yes" ; then | |
12182 | ||
186837b0 | 12183 | if test "$USE_AIX" = 1; then |
f6bcfd97 | 12184 | THREADS_LIB=pthreads |
f3c067d2 GD |
12185 | elif test "$USE_MAC" = 1; then |
12186 | THREADS_LIB=cc_dynamic | |
f6bcfd97 BP |
12187 | else |
12188 | THREADS_LIB=pthread | |
12189 | fi | |
12190 | ||
12191 | echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6 | |
b93d0d08 | 12192 | echo "configure:12193: checking for pthread_create in -l$THREADS_LIB" >&5 |
f6bcfd97 | 12193 | ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'` |
10f2d63a VZ |
12194 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
12195 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12196 | else | |
12197 | ac_save_LIBS="$LIBS" | |
f6bcfd97 | 12198 | LIBS="-l$THREADS_LIB $LIBS" |
10f2d63a | 12199 | cat > conftest.$ac_ext <<EOF |
b93d0d08 | 12200 | #line 12201 "configure" |
10f2d63a VZ |
12201 | #include "confdefs.h" |
12202 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12203 | /* We use char because int might match the return type of a gcc2 | |
12204 | builtin and then its argument prototype would still apply. */ | |
12205 | char pthread_create(); | |
12206 | ||
12207 | int main() { | |
12208 | pthread_create() | |
12209 | ; return 0; } | |
12210 | EOF | |
b93d0d08 | 12211 | if { (eval echo configure:12212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
12212 | rm -rf conftest* |
12213 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12214 | else | |
12215 | echo "configure: failed program was:" >&5 | |
12216 | cat conftest.$ac_ext >&5 | |
12217 | rm -rf conftest* | |
12218 | eval "ac_cv_lib_$ac_lib_var=no" | |
12219 | fi | |
12220 | rm -f conftest* | |
12221 | LIBS="$ac_save_LIBS" | |
12222 | ||
12223 | fi | |
12224 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12225 | echo "$ac_t""yes" 1>&6 | |
12226 | ||
12227 | THREADS_OBJ="threadpsx.lo" | |
f6bcfd97 | 12228 | THREADS_LINK=$THREADS_LIB |
10f2d63a VZ |
12229 | |
12230 | else | |
12231 | echo "$ac_t""no" 1>&6 | |
12232 | ||
12233 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 | |
b93d0d08 | 12234 | echo "configure:12235: checking for pthread_create in -lc_r" >&5 |
10f2d63a VZ |
12235 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
12236 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12237 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12238 | else | |
12239 | ac_save_LIBS="$LIBS" | |
12240 | LIBS="-lc_r $LIBS" | |
12241 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 12242 | #line 12243 "configure" |
10f2d63a VZ |
12243 | #include "confdefs.h" |
12244 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12245 | /* We use char because int might match the return type of a gcc2 | |
12246 | builtin and then its argument prototype would still apply. */ | |
12247 | char pthread_create(); | |
12248 | ||
12249 | int main() { | |
12250 | pthread_create() | |
12251 | ; return 0; } | |
12252 | EOF | |
b93d0d08 | 12253 | if { (eval echo configure:12254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
12254 | rm -rf conftest* |
12255 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12256 | else | |
12257 | echo "configure: failed program was:" >&5 | |
12258 | cat conftest.$ac_ext >&5 | |
12259 | rm -rf conftest* | |
12260 | eval "ac_cv_lib_$ac_lib_var=no" | |
12261 | fi | |
12262 | rm -f conftest* | |
12263 | LIBS="$ac_save_LIBS" | |
12264 | ||
12265 | fi | |
12266 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12267 | echo "$ac_t""yes" 1>&6 | |
12268 | ||
12269 | THREADS_OBJ="threadpsx.lo" | |
12270 | THREADS_LINK="c_r" | |
12271 | ||
12272 | else | |
12273 | echo "$ac_t""no" 1>&6 | |
12274 | ||
b4085ce6 | 12275 | echo $ac_n "checking for pthread_create in -lcc_dynamic""... $ac_c" 1>&6 |
b93d0d08 | 12276 | echo "configure:12277: checking for pthread_create in -lcc_dynamic" >&5 |
b4085ce6 GD |
12277 | ac_lib_var=`echo cc_dynamic'_'pthread_create | sed 'y%./+-%__p_%'` |
12278 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12279 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12280 | else | |
12281 | ac_save_LIBS="$LIBS" | |
12282 | LIBS="-lcc_dynamic $LIBS" | |
12283 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 12284 | #line 12285 "configure" |
b4085ce6 GD |
12285 | #include "confdefs.h" |
12286 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12287 | /* We use char because int might match the return type of a gcc2 | |
12288 | builtin and then its argument prototype would still apply. */ | |
12289 | char pthread_create(); | |
12290 | ||
12291 | int main() { | |
12292 | pthread_create() | |
12293 | ; return 0; } | |
12294 | EOF | |
b93d0d08 | 12295 | if { (eval echo configure:12296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
b4085ce6 GD |
12296 | rm -rf conftest* |
12297 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12298 | else | |
12299 | echo "configure: failed program was:" >&5 | |
12300 | cat conftest.$ac_ext >&5 | |
12301 | rm -rf conftest* | |
12302 | eval "ac_cv_lib_$ac_lib_var=no" | |
12303 | fi | |
12304 | rm -f conftest* | |
12305 | LIBS="$ac_save_LIBS" | |
12306 | ||
12307 | fi | |
12308 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12309 | echo "$ac_t""yes" 1>&6 | |
12310 | ||
12311 | THREADS_OBJ="threadpsx.lo" | |
12312 | THREADS_LINK="cc_dynamic" | |
12313 | ||
12314 | else | |
12315 | echo "$ac_t""no" 1>&6 | |
12316 | ||
12317 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` | |
10f2d63a | 12318 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 |
b93d0d08 | 12319 | echo "configure:12320: checking for sys/prctl.h" >&5 |
10f2d63a VZ |
12320 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12321 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12322 | else | |
12323 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 12324 | #line 12325 "configure" |
10f2d63a VZ |
12325 | #include "confdefs.h" |
12326 | #include <sys/prctl.h> | |
12327 | EOF | |
12328 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b93d0d08 | 12329 | { (eval echo configure:12330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
12330 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12331 | if test -z "$ac_err"; then | |
12332 | rm -rf conftest* | |
12333 | eval "ac_cv_header_$ac_safe=yes" | |
12334 | else | |
12335 | echo "$ac_err" >&5 | |
12336 | echo "configure: failed program was:" >&5 | |
12337 | cat conftest.$ac_ext >&5 | |
12338 | rm -rf conftest* | |
12339 | eval "ac_cv_header_$ac_safe=no" | |
12340 | fi | |
12341 | rm -f conftest* | |
12342 | fi | |
12343 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12344 | echo "$ac_t""yes" 1>&6 | |
12345 | ||
b4085ce6 GD |
12346 | THREADS_OBJ="threadsgi.lo" |
12347 | ||
10f2d63a VZ |
12348 | else |
12349 | echo "$ac_t""no" 1>&6 | |
12350 | fi | |
12351 | ||
b4085ce6 GD |
12352 | |
12353 | fi | |
12354 | ||
10f2d63a VZ |
12355 | |
12356 | fi | |
12357 | ||
12358 | ||
12359 | fi | |
12360 | ||
12361 | ||
12362 | if test -z "$THREADS_OBJ" ; then | |
12363 | wxUSE_THREADS=no | |
12364 | echo "configure: warning: No thread support on this system" 1>&2 | |
12365 | fi | |
12366 | fi | |
12367 | ||
12368 | if test "$wxUSE_THREADS" = "yes" ; then | |
70846f0a VZ |
12369 | for ac_func in thr_setconcurrency |
12370 | do | |
12371 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
b93d0d08 | 12372 | echo "configure:12373: checking for $ac_func" >&5 |
70846f0a VZ |
12373 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12374 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12375 | else | |
12376 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 12377 | #line 12378 "configure" |
70846f0a VZ |
12378 | #include "confdefs.h" |
12379 | /* System header to define __stub macros and hopefully few prototypes, | |
12380 | which can conflict with char $ac_func(); below. */ | |
12381 | #include <assert.h> | |
12382 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12383 | /* We use char because int might match the return type of a gcc2 | |
12384 | builtin and then its argument prototype would still apply. */ | |
12385 | char $ac_func(); | |
12386 | ||
12387 | int main() { | |
12388 | ||
12389 | /* The GNU C library defines this for functions which it implements | |
12390 | to always fail with ENOSYS. Some functions are actually named | |
12391 | something starting with __ and the normal name is an alias. */ | |
12392 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12393 | choke me | |
12394 | #else | |
e8482f24 | 12395 | $ac_func(); |
70846f0a VZ |
12396 | #endif |
12397 | ||
12398 | ; return 0; } | |
12399 | EOF | |
b93d0d08 | 12400 | if { (eval echo configure:12401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
70846f0a VZ |
12401 | rm -rf conftest* |
12402 | eval "ac_cv_func_$ac_func=yes" | |
12403 | else | |
12404 | echo "configure: failed program was:" >&5 | |
12405 | cat conftest.$ac_ext >&5 | |
12406 | rm -rf conftest* | |
12407 | eval "ac_cv_func_$ac_func=no" | |
12408 | fi | |
12409 | rm -f conftest* | |
12410 | fi | |
12411 | ||
12412 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12413 | echo "$ac_t""yes" 1>&6 | |
12414 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12415 | cat >> confdefs.h <<EOF | |
12416 | #define $ac_tr_func 1 | |
12417 | EOF | |
12418 | ||
12419 | else | |
12420 | echo "$ac_t""no" 1>&6 | |
12421 | fi | |
12422 | done | |
12423 | ||
12424 | ||
10f2d63a VZ |
12425 | |
12426 | for ac_hdr in sched.h | |
12427 | do | |
12428 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
12429 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b93d0d08 | 12430 | echo "configure:12431: checking for $ac_hdr" >&5 |
10f2d63a VZ |
12431 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12432 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12433 | else | |
12434 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 12435 | #line 12436 "configure" |
10f2d63a VZ |
12436 | #include "confdefs.h" |
12437 | #include <$ac_hdr> | |
12438 | EOF | |
12439 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b93d0d08 | 12440 | { (eval echo configure:12441: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
12441 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12442 | if test -z "$ac_err"; then | |
12443 | rm -rf conftest* | |
12444 | eval "ac_cv_header_$ac_safe=yes" | |
12445 | else | |
12446 | echo "$ac_err" >&5 | |
12447 | echo "configure: failed program was:" >&5 | |
12448 | cat conftest.$ac_ext >&5 | |
12449 | rm -rf conftest* | |
12450 | eval "ac_cv_header_$ac_safe=no" | |
12451 | fi | |
12452 | rm -f conftest* | |
12453 | fi | |
12454 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12455 | echo "$ac_t""yes" 1>&6 | |
12456 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12457 | cat >> confdefs.h <<EOF | |
12458 | #define $ac_tr_hdr 1 | |
12459 | EOF | |
12460 | ||
12461 | else | |
12462 | echo "$ac_t""no" 1>&6 | |
12463 | fi | |
12464 | done | |
12465 | ||
12466 | ||
12467 | echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6 | |
b93d0d08 | 12468 | echo "configure:12469: checking for sched_yield in -l$THREADS_LINK" >&5 |
10f2d63a VZ |
12469 | ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'` |
12470 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12471 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12472 | else | |
12473 | ac_save_LIBS="$LIBS" | |
12474 | LIBS="-l$THREADS_LINK $LIBS" | |
12475 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 12476 | #line 12477 "configure" |
10f2d63a VZ |
12477 | #include "confdefs.h" |
12478 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12479 | /* We use char because int might match the return type of a gcc2 | |
12480 | builtin and then its argument prototype would still apply. */ | |
12481 | char sched_yield(); | |
12482 | ||
12483 | int main() { | |
12484 | sched_yield() | |
12485 | ; return 0; } | |
12486 | EOF | |
b93d0d08 | 12487 | if { (eval echo configure:12488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
12488 | rm -rf conftest* |
12489 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12490 | else | |
12491 | echo "configure: failed program was:" >&5 | |
12492 | cat conftest.$ac_ext >&5 | |
12493 | rm -rf conftest* | |
12494 | eval "ac_cv_lib_$ac_lib_var=no" | |
12495 | fi | |
12496 | rm -f conftest* | |
12497 | LIBS="$ac_save_LIBS" | |
12498 | ||
12499 | fi | |
12500 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12501 | echo "$ac_t""yes" 1>&6 | |
12502 | cat >> confdefs.h <<\EOF | |
12503 | #define HAVE_SCHED_YIELD 1 | |
12504 | EOF | |
12505 | ||
12506 | else | |
12507 | echo "$ac_t""no" 1>&6 | |
12508 | echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6 | |
b93d0d08 | 12509 | echo "configure:12510: checking for sched_yield in -l"posix4"" >&5 |
10f2d63a VZ |
12510 | ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'` |
12511 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12512 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12513 | else | |
12514 | ac_save_LIBS="$LIBS" | |
12515 | LIBS="-l"posix4" $LIBS" | |
12516 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 12517 | #line 12518 "configure" |
10f2d63a VZ |
12518 | #include "confdefs.h" |
12519 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12520 | /* We use char because int might match the return type of a gcc2 | |
12521 | builtin and then its argument prototype would still apply. */ | |
12522 | char sched_yield(); | |
12523 | ||
12524 | int main() { | |
12525 | sched_yield() | |
12526 | ; return 0; } | |
12527 | EOF | |
b93d0d08 | 12528 | if { (eval echo configure:12529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
12529 | rm -rf conftest* |
12530 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12531 | else | |
12532 | echo "configure: failed program was:" >&5 | |
12533 | cat conftest.$ac_ext >&5 | |
12534 | rm -rf conftest* | |
12535 | eval "ac_cv_lib_$ac_lib_var=no" | |
12536 | fi | |
12537 | rm -f conftest* | |
12538 | LIBS="$ac_save_LIBS" | |
12539 | ||
12540 | fi | |
12541 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12542 | echo "$ac_t""yes" 1>&6 | |
12543 | cat >> confdefs.h <<\EOF | |
12544 | #define HAVE_SCHED_YIELD 1 | |
12545 | EOF | |
12546 | POSIX4_LINK="-lposix4" | |
12547 | else | |
12548 | echo "$ac_t""no" 1>&6 | |
12549 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
12550 | ||
12551 | fi | |
12552 | ||
12553 | ||
12554 | fi | |
12555 | ||
12556 | ||
f6bcfd97 BP |
12557 | HAVE_PRIOR_FUNCS=0 |
12558 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6 | |
b93d0d08 | 12559 | echo "configure:12560: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5 |
10f2d63a VZ |
12560 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
12561 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12562 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12563 | else | |
12564 | ac_save_LIBS="$LIBS" | |
12565 | LIBS="-l$THREADS_LINK $LIBS" | |
12566 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 12567 | #line 12568 "configure" |
10f2d63a VZ |
12568 | #include "confdefs.h" |
12569 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12570 | /* We use char because int might match the return type of a gcc2 | |
12571 | builtin and then its argument prototype would still apply. */ | |
12572 | char pthread_attr_getschedpolicy(); | |
12573 | ||
12574 | int main() { | |
12575 | pthread_attr_getschedpolicy() | |
12576 | ; return 0; } | |
12577 | EOF | |
b93d0d08 | 12578 | if { (eval echo configure:12579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
12579 | rm -rf conftest* |
12580 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12581 | else | |
12582 | echo "configure: failed program was:" >&5 | |
12583 | cat conftest.$ac_ext >&5 | |
12584 | rm -rf conftest* | |
12585 | eval "ac_cv_lib_$ac_lib_var=no" | |
12586 | fi | |
12587 | rm -f conftest* | |
12588 | LIBS="$ac_save_LIBS" | |
12589 | ||
12590 | fi | |
12591 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12592 | echo "$ac_t""yes" 1>&6 | |
f6bcfd97 | 12593 | echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6 |
b93d0d08 | 12594 | echo "configure:12595: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5 |
f6bcfd97 BP |
12595 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'` |
12596 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12597 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12598 | else | |
12599 | ac_save_LIBS="$LIBS" | |
12600 | LIBS="-l$THREADS_LINK $LIBS" | |
12601 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 12602 | #line 12603 "configure" |
f6bcfd97 BP |
12603 | #include "confdefs.h" |
12604 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12605 | /* We use char because int might match the return type of a gcc2 | |
12606 | builtin and then its argument prototype would still apply. */ | |
12607 | char pthread_attr_setschedparam(); | |
12608 | ||
12609 | int main() { | |
12610 | pthread_attr_setschedparam() | |
12611 | ; return 0; } | |
10f2d63a | 12612 | EOF |
b93d0d08 | 12613 | if { (eval echo configure:12614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f6bcfd97 BP |
12614 | rm -rf conftest* |
12615 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12616 | else | |
12617 | echo "configure: failed program was:" >&5 | |
12618 | cat conftest.$ac_ext >&5 | |
12619 | rm -rf conftest* | |
12620 | eval "ac_cv_lib_$ac_lib_var=no" | |
12621 | fi | |
12622 | rm -f conftest* | |
12623 | LIBS="$ac_save_LIBS" | |
10f2d63a | 12624 | |
f6bcfd97 BP |
12625 | fi |
12626 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12627 | echo "$ac_t""yes" 1>&6 | |
12628 | echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6 | |
b93d0d08 | 12629 | echo "configure:12630: checking for sched_get_priority_max in -l$THREADS_LINK" >&5 |
f6bcfd97 BP |
12630 | ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
12631 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12632 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12633 | else | |
12634 | ac_save_LIBS="$LIBS" | |
12635 | LIBS="-l$THREADS_LINK $LIBS" | |
12636 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 12637 | #line 12638 "configure" |
f6bcfd97 BP |
12638 | #include "confdefs.h" |
12639 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12640 | /* We use char because int might match the return type of a gcc2 | |
12641 | builtin and then its argument prototype would still apply. */ | |
12642 | char sched_get_priority_max(); | |
12643 | ||
12644 | int main() { | |
12645 | sched_get_priority_max() | |
12646 | ; return 0; } | |
12647 | EOF | |
b93d0d08 | 12648 | if { (eval echo configure:12649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f6bcfd97 BP |
12649 | rm -rf conftest* |
12650 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12651 | else | |
12652 | echo "configure: failed program was:" >&5 | |
12653 | cat conftest.$ac_ext >&5 | |
12654 | rm -rf conftest* | |
12655 | eval "ac_cv_lib_$ac_lib_var=no" | |
12656 | fi | |
12657 | rm -f conftest* | |
12658 | LIBS="$ac_save_LIBS" | |
12659 | ||
12660 | fi | |
12661 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12662 | echo "$ac_t""yes" 1>&6 | |
12663 | HAVE_PRIOR_FUNCS=1 | |
10f2d63a VZ |
12664 | else |
12665 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 | 12666 | echo $ac_n "checking for sched_get_priority_max in -l"posix4"""... $ac_c" 1>&6 |
b93d0d08 | 12667 | echo "configure:12668: checking for sched_get_priority_max in -l"posix4"" >&5 |
f6bcfd97 | 12668 | ac_lib_var=`echo "posix4"'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
10f2d63a VZ |
12669 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
12670 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12671 | else | |
12672 | ac_save_LIBS="$LIBS" | |
12673 | LIBS="-l"posix4" $LIBS" | |
12674 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 12675 | #line 12676 "configure" |
10f2d63a VZ |
12676 | #include "confdefs.h" |
12677 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12678 | /* We use char because int might match the return type of a gcc2 | |
12679 | builtin and then its argument prototype would still apply. */ | |
f6bcfd97 | 12680 | char sched_get_priority_max(); |
10f2d63a VZ |
12681 | |
12682 | int main() { | |
f6bcfd97 | 12683 | sched_get_priority_max() |
10f2d63a VZ |
12684 | ; return 0; } |
12685 | EOF | |
b93d0d08 | 12686 | if { (eval echo configure:12687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
12687 | rm -rf conftest* |
12688 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12689 | else | |
12690 | echo "configure: failed program was:" >&5 | |
12691 | cat conftest.$ac_ext >&5 | |
12692 | rm -rf conftest* | |
12693 | eval "ac_cv_lib_$ac_lib_var=no" | |
12694 | fi | |
12695 | rm -f conftest* | |
12696 | LIBS="$ac_save_LIBS" | |
12697 | ||
12698 | fi | |
12699 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12700 | echo "$ac_t""yes" 1>&6 | |
f6bcfd97 BP |
12701 | |
12702 | HAVE_PRIOR_FUNCS=1 | |
12703 | POSIX4_LINK="-lposix4" | |
12704 | ||
12705 | else | |
12706 | echo "$ac_t""no" 1>&6 | |
12707 | fi | |
12708 | ||
12709 | ||
12710 | fi | |
12711 | ||
12712 | ||
10f2d63a VZ |
12713 | else |
12714 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12715 | fi |
12716 | ||
12717 | ||
f6bcfd97 BP |
12718 | else |
12719 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12720 | fi |
12721 | ||
12722 | ||
f6bcfd97 BP |
12723 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
12724 | cat >> confdefs.h <<\EOF | |
12725 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
12726 | EOF | |
12727 | ||
12728 | else | |
12729 | echo "configure: warning: Setting thread priority will not work" 1>&2 | |
12730 | fi | |
12731 | ||
10f2d63a | 12732 | echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6 |
b93d0d08 | 12733 | echo "configure:12734: checking for pthread_cancel in -l$THREADS_LINK" >&5 |
10f2d63a VZ |
12734 | ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'` |
12735 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12736 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12737 | else | |
12738 | ac_save_LIBS="$LIBS" | |
12739 | LIBS="-l$THREADS_LINK $LIBS" | |
12740 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 12741 | #line 12742 "configure" |
10f2d63a VZ |
12742 | #include "confdefs.h" |
12743 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12744 | /* We use char because int might match the return type of a gcc2 | |
12745 | builtin and then its argument prototype would still apply. */ | |
12746 | char pthread_cancel(); | |
12747 | ||
12748 | int main() { | |
12749 | pthread_cancel() | |
12750 | ; return 0; } | |
12751 | EOF | |
b93d0d08 | 12752 | if { (eval echo configure:12753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
12753 | rm -rf conftest* |
12754 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12755 | else | |
12756 | echo "configure: failed program was:" >&5 | |
12757 | cat conftest.$ac_ext >&5 | |
12758 | rm -rf conftest* | |
12759 | eval "ac_cv_lib_$ac_lib_var=no" | |
12760 | fi | |
12761 | rm -f conftest* | |
12762 | LIBS="$ac_save_LIBS" | |
12763 | ||
12764 | fi | |
12765 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12766 | echo "$ac_t""yes" 1>&6 | |
12767 | cat >> confdefs.h <<\EOF | |
12768 | #define HAVE_PTHREAD_CANCEL 1 | |
12769 | EOF | |
12770 | ||
12771 | else | |
12772 | echo "$ac_t""no" 1>&6 | |
12773 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
12774 | fi | |
12775 | ||
12776 | ||
12777 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 | |
b93d0d08 | 12778 | echo "configure:12779: checking for pthread_cleanup_push/pop" >&5 |
10f2d63a VZ |
12779 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
12780 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12781 | else | |
12782 | ||
12783 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 12784 | #line 12785 "configure" |
10f2d63a VZ |
12785 | #include "confdefs.h" |
12786 | #include <pthread.h> | |
12787 | int main() { | |
12788 | ||
12789 | pthread_cleanup_push(NULL, NULL); | |
12790 | pthread_cleanup_pop(0); | |
12791 | ||
12792 | ; return 0; } | |
12793 | EOF | |
b93d0d08 | 12794 | if { (eval echo configure:12795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
12795 | rm -rf conftest* |
12796 | ||
12797 | wx_cv_func_pthread_cleanup_push=yes | |
10f2d63a VZ |
12798 | |
12799 | else | |
12800 | echo "configure: failed program was:" >&5 | |
12801 | cat conftest.$ac_ext >&5 | |
12802 | rm -rf conftest* | |
12803 | ||
12804 | wx_cv_func_pthread_cleanup_push=no | |
12805 | ||
12806 | fi | |
12807 | rm -f conftest* | |
12808 | ||
12809 | fi | |
12810 | ||
12811 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
12812 | ||
d9b9876f VZ |
12813 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
12814 | cat >> confdefs.h <<\EOF | |
12815 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 | |
12816 | EOF | |
12817 | ||
12818 | fi | |
12819 | ||
12820 | ||
d9b9876f | 12821 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 |
b93d0d08 | 12822 | echo "configure:12823: checking for pthread_mutexattr_t" >&5 |
d9b9876f VZ |
12823 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
12824 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12825 | else | |
12826 | ||
12827 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 12828 | #line 12829 "configure" |
d9b9876f VZ |
12829 | #include "confdefs.h" |
12830 | #include <pthread.h> | |
12831 | int main() { | |
12832 | ||
12833 | pthread_mutexattr_t attr; | |
12834 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
12835 | ||
12836 | ; return 0; } | |
12837 | EOF | |
b93d0d08 | 12838 | if { (eval echo configure:12839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d9b9876f VZ |
12839 | rm -rf conftest* |
12840 | ||
12841 | wx_cv_type_pthread_mutexattr_t=yes | |
12842 | ||
12843 | else | |
12844 | echo "configure: failed program was:" >&5 | |
12845 | cat conftest.$ac_ext >&5 | |
12846 | rm -rf conftest* | |
12847 | ||
12848 | wx_cv_type_pthread_mutexattr_t=no | |
12849 | ||
12850 | ||
12851 | fi | |
12852 | rm -f conftest* | |
12853 | ||
12854 | fi | |
12855 | ||
12856 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
12857 | ||
12858 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
12859 | cat >> confdefs.h <<\EOF | |
12860 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
12861 | EOF | |
12862 | ||
12863 | else | |
12864 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 | |
b93d0d08 | 12865 | echo "configure:12866: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
d9b9876f VZ |
12866 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
12867 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12868 | else | |
12869 | ||
12870 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 12871 | #line 12872 "configure" |
d9b9876f VZ |
12872 | #include "confdefs.h" |
12873 | #include <pthread.h> | |
12874 | int main() { | |
12875 | ||
12876 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
12877 | ||
12878 | ; return 0; } | |
12879 | EOF | |
b93d0d08 | 12880 | if { (eval echo configure:12881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d9b9876f VZ |
12881 | rm -rf conftest* |
12882 | ||
12883 | wx_cv_type_pthread_rec_mutex_init=yes | |
12884 | ||
12885 | else | |
12886 | echo "configure: failed program was:" >&5 | |
12887 | cat conftest.$ac_ext >&5 | |
12888 | rm -rf conftest* | |
12889 | ||
12890 | wx_cv_type_pthread_rec_mutex_init=no | |
12891 | ||
12892 | ||
12893 | fi | |
12894 | rm -f conftest* | |
12895 | ||
12896 | fi | |
12897 | ||
12898 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 | |
12899 | if test "$wx_cv_type_pthread_rec_mutex_init"="yes"; then | |
12900 | cat >> confdefs.h <<\EOF | |
12901 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
12902 | EOF | |
12903 | ||
12904 | else | |
12905 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 | |
12906 | fi | |
12907 | fi | |
12908 | ||
10f2d63a | 12909 | THREADS_LINK="-l$THREADS_LINK" |
186837b0 VZ |
12910 | |
12911 | if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then | |
12912 | CFLAGS="${CFLAGS} -mt" | |
12913 | CXXFLAGS="${CXXFLAGS} -mt" | |
12914 | LDFLAGS="${LDFLAGS} -mt" | |
12915 | fi | |
10f2d63a VZ |
12916 | fi |
12917 | ||
12918 | fi | |
12919 | ||
12920 | if test "$wxUSE_THREADS" = "yes"; then | |
12921 | cat >> confdefs.h <<\EOF | |
12922 | #define wxUSE_THREADS 1 | |
12923 | EOF | |
12924 | ||
12925 | ||
2c6025bc | 12926 | if test "$wxUSE_MAC" = "0"; then |
10f2d63a | 12927 | CFLAGS="${CFLAGS} -D_REENTRANT" |
2c6025bc GD |
12928 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" |
12929 | fi | |
10f2d63a VZ |
12930 | |
12931 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
12932 | else | |
12933 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
ab9b9eab | 12934 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 |
b93d0d08 | 12935 | echo "configure:12936: checking if -D_REENTRANT is needed" >&5 |
ab9b9eab VZ |
12936 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
12937 | CFLAGS="${CFLAGS} -D_REENTRANT" | |
12938 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" | |
12939 | echo "$ac_t""yes" 1>&6 | |
12940 | else | |
12941 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12942 | fi |
12943 | fi | |
12944 | fi | |
12945 | ||
6f72b082 | 12946 | if test "$WXGTK20" = 1 ; then |
13111b2a | 12947 | cat >> confdefs.h <<EOF |
6f72b082 | 12948 | #define __WXGTK20__ $WXGTK20 |
13111b2a VZ |
12949 | EOF |
12950 | ||
12951 | WXGTK12=1 | |
12952 | fi | |
12953 | ||
10f2d63a VZ |
12954 | if test "$WXGTK12" = 1 ; then |
12955 | cat >> confdefs.h <<EOF | |
12956 | #define __WXGTK12__ $WXGTK12 | |
12957 | EOF | |
12958 | ||
12959 | fi | |
12960 | ||
f6bcfd97 BP |
12961 | if test "$WXGTK127" = 1 ; then |
12962 | cat >> confdefs.h <<EOF | |
12963 | #define __WXGTK127__ $WXGTK127 | |
12964 | EOF | |
12965 | ||
12966 | fi | |
12967 | ||
10f2d63a VZ |
12968 | if test "$WXWINE" = 1 ; then |
12969 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__" | |
12970 | fi | |
12971 | ||
b4085ce6 | 12972 | if test "$wxUSE_MAC" = 1 ; then |
2c6025bc | 12973 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__POWERPC__ -DTARGET_CARBON" |
ea5999b9 GD |
12974 | CFLAGS="${CFLAGS} -fno-common -fpascal-strings" |
12975 | CPPFLAGS="${CPPFLAGS} -fno-common -fpascal-strings" | |
b4085ce6 GD |
12976 | fi |
12977 | ||
10f2d63a VZ |
12978 | if test "$wxUSE_CYGWIN" = 1 ; then |
12979 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__" | |
12980 | fi | |
12981 | ||
12982 | WXDEBUG= | |
12983 | ||
12984 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
12985 | WXDEBUG="-g" | |
12986 | wxUSE_OPTIMISE=no | |
12987 | fi | |
12988 | ||
12989 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
12990 | wxUSE_DEBUG_INFO=yes | |
12991 | WXDEBUG="-ggdb" | |
12992 | fi | |
12993 | ||
12994 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
12995 | cat >> confdefs.h <<\EOF | |
12996 | #define WXDEBUG 1 | |
12997 | EOF | |
12998 | ||
12999 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
13000 | else | |
13001 | if test "$wxUSE_GTK" = 1 ; then | |
13002 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
13003 | fi | |
13004 | fi | |
13005 | ||
13006 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
13007 | cat >> confdefs.h <<\EOF | |
13008 | #define wxUSE_MEMORY_TRACING 1 | |
13009 | EOF | |
13010 | ||
13011 | cat >> confdefs.h <<\EOF | |
13012 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
47c13eb7 VS |
13013 | EOF |
13014 | ||
13015 | cat >> confdefs.h <<\EOF | |
13016 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
10f2d63a VZ |
13017 | EOF |
13018 | ||
13019 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
13020 | fi | |
13021 | ||
13022 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
13023 | DMALLOC_LINK="-ldmalloc" | |
13024 | fi | |
13025 | ||
13026 | PROFILE= | |
13027 | if test "$wxUSE_PROFILE" = "yes" ; then | |
13028 | PROFILE="-pg" | |
13029 | fi | |
13030 | ||
13031 | DEP_INFO_FLAGS= | |
caa2c79b | 13032 | CODE_GEN_FLAGS= |
0f3f1cbc | 13033 | CODE_GEN_FLAGS_CXX= |
10f2d63a VZ |
13034 | if test "$GCC" = yes ; then |
13035 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
0f3f1cbc | 13036 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti" |
10f2d63a VZ |
13037 | fi |
13038 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
0f3f1cbc | 13039 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions" |
10f2d63a VZ |
13040 | fi |
13041 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
caa2c79b | 13042 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" |
10f2d63a VZ |
13043 | fi |
13044 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
13045 | DEP_INFO_FLAGS="-MMD" | |
13046 | fi | |
13047 | fi | |
13048 | ||
13049 | ||
13050 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` | |
13051 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
13052 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
13053 | OPTIMISE= | |
13054 | else | |
13055 | if test "$GCC" = yes ; then | |
13056 | OPTIMISE="-O2" | |
13057 | case "${host}" in | |
13058 | i586-*-*|i686-*-* ) | |
13059 | OPTIMISE="${OPTIMISE} " | |
13060 | ;; | |
13061 | esac | |
13062 | else | |
13063 | OPTIMISE="-O" | |
13064 | fi | |
13065 | fi | |
13066 | ||
13067 | ||
13068 | ZLIB_INCLUDE= | |
422107f9 | 13069 | if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then |
10f2d63a VZ |
13070 | cat >> confdefs.h <<\EOF |
13071 | #define wxUSE_ZLIB 1 | |
13072 | EOF | |
13073 | ||
422107f9 VZ |
13074 | if test "$wxUSE_ZLIB" = "yes" ; then |
13075 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
13076 | else | |
13077 | ZLIB_LINK= | |
13078 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` | |
13079 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
b93d0d08 | 13080 | echo "configure:13081: checking for zlib.h" >&5 |
422107f9 VZ |
13081 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13082 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13083 | else | |
13084 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 13085 | #line 13086 "configure" |
422107f9 VZ |
13086 | #include "confdefs.h" |
13087 | #include <zlib.h> | |
13088 | EOF | |
13089 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b93d0d08 | 13090 | { (eval echo configure:13091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
422107f9 VZ |
13091 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13092 | if test -z "$ac_err"; then | |
13093 | rm -rf conftest* | |
13094 | eval "ac_cv_header_$ac_safe=yes" | |
13095 | else | |
13096 | echo "$ac_err" >&5 | |
13097 | echo "configure: failed program was:" >&5 | |
13098 | cat conftest.$ac_ext >&5 | |
13099 | rm -rf conftest* | |
13100 | eval "ac_cv_header_$ac_safe=no" | |
13101 | fi | |
13102 | rm -f conftest* | |
13103 | fi | |
13104 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13105 | echo "$ac_t""yes" 1>&6 | |
13106 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 | |
b93d0d08 | 13107 | echo "configure:13108: checking for deflate in -lz" >&5 |
422107f9 VZ |
13108 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
13109 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13110 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13111 | else | |
13112 | ac_save_LIBS="$LIBS" | |
13113 | LIBS="-lz $LIBS" | |
13114 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 13115 | #line 13116 "configure" |
422107f9 VZ |
13116 | #include "confdefs.h" |
13117 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13118 | /* We use char because int might match the return type of a gcc2 | |
13119 | builtin and then its argument prototype would still apply. */ | |
13120 | char deflate(); | |
13121 | ||
13122 | int main() { | |
13123 | deflate() | |
13124 | ; return 0; } | |
13125 | EOF | |
b93d0d08 | 13126 | if { (eval echo configure:13127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
422107f9 VZ |
13127 | rm -rf conftest* |
13128 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13129 | else | |
13130 | echo "configure: failed program was:" >&5 | |
13131 | cat conftest.$ac_ext >&5 | |
13132 | rm -rf conftest* | |
13133 | eval "ac_cv_lib_$ac_lib_var=no" | |
13134 | fi | |
13135 | rm -f conftest* | |
13136 | LIBS="$ac_save_LIBS" | |
13137 | ||
13138 | fi | |
13139 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13140 | echo "$ac_t""yes" 1>&6 | |
13141 | ZLIB_LINK="-lz" | |
13142 | else | |
13143 | echo "$ac_t""no" 1>&6 | |
13144 | fi | |
13145 | ||
13146 | else | |
13147 | echo "$ac_t""no" 1>&6 | |
13148 | fi | |
13149 | ||
13150 | if test "x$ZLIB_LINK" = "x" ; then | |
13151 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; } | |
13152 | fi | |
13153 | fi | |
10f2d63a VZ |
13154 | fi |
13155 | ||
13156 | PNG_INCLUDE= | |
422107f9 | 13157 | if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then |
10f2d63a VZ |
13158 | cat >> confdefs.h <<\EOF |
13159 | #define wxUSE_LIBPNG 1 | |
13160 | EOF | |
13161 | ||
41fd4136 | 13162 | if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
422107f9 VZ |
13163 | echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2 |
13164 | wxUSE_LIBPNG=yes | |
13165 | fi | |
13166 | ||
13167 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
13168 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
13169 | else | |
13170 | PNG_LINK= | |
13171 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | |
13172 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
b93d0d08 | 13173 | echo "configure:13174: checking for png.h" >&5 |
422107f9 VZ |
13174 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13175 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13176 | else | |
13177 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 13178 | #line 13179 "configure" |
422107f9 VZ |
13179 | #include "confdefs.h" |
13180 | #include <png.h> | |
13181 | EOF | |
13182 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b93d0d08 | 13183 | { (eval echo configure:13184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
422107f9 VZ |
13184 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13185 | if test -z "$ac_err"; then | |
13186 | rm -rf conftest* | |
13187 | eval "ac_cv_header_$ac_safe=yes" | |
13188 | else | |
13189 | echo "$ac_err" >&5 | |
13190 | echo "configure: failed program was:" >&5 | |
13191 | cat conftest.$ac_ext >&5 | |
13192 | rm -rf conftest* | |
13193 | eval "ac_cv_header_$ac_safe=no" | |
13194 | fi | |
13195 | rm -f conftest* | |
13196 | fi | |
13197 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13198 | echo "$ac_t""yes" 1>&6 | |
13199 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 | |
b93d0d08 | 13200 | echo "configure:13201: checking for png_check_sig in -lpng" >&5 |
422107f9 VZ |
13201 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
13202 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13203 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13204 | else | |
13205 | ac_save_LIBS="$LIBS" | |
13206 | LIBS="-lpng -lz -lm $LIBS" | |
13207 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 13208 | #line 13209 "configure" |
422107f9 VZ |
13209 | #include "confdefs.h" |
13210 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13211 | /* We use char because int might match the return type of a gcc2 | |
13212 | builtin and then its argument prototype would still apply. */ | |
13213 | char png_check_sig(); | |
13214 | ||
13215 | int main() { | |
13216 | png_check_sig() | |
13217 | ; return 0; } | |
13218 | EOF | |
b93d0d08 | 13219 | if { (eval echo configure:13220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
422107f9 VZ |
13220 | rm -rf conftest* |
13221 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13222 | else | |
13223 | echo "configure: failed program was:" >&5 | |
13224 | cat conftest.$ac_ext >&5 | |
13225 | rm -rf conftest* | |
13226 | eval "ac_cv_lib_$ac_lib_var=no" | |
13227 | fi | |
13228 | rm -f conftest* | |
13229 | LIBS="$ac_save_LIBS" | |
13230 | ||
13231 | fi | |
13232 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13233 | echo "$ac_t""yes" 1>&6 | |
13234 | PNG_LINK="-lpng" | |
13235 | else | |
13236 | echo "$ac_t""no" 1>&6 | |
13237 | fi | |
13238 | ||
13239 | ||
13240 | else | |
13241 | echo "$ac_t""no" 1>&6 | |
13242 | fi | |
13243 | ||
13244 | if test "x$PNG_LINK" = "x" ; then | |
0dcf9893 | 13245 | { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; } |
422107f9 VZ |
13246 | fi |
13247 | fi | |
13248 | ||
10f2d63a VZ |
13249 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
13250 | fi | |
13251 | ||
13252 | JPEG_INCLUDE= | |
422107f9 | 13253 | if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then |
10f2d63a VZ |
13254 | cat >> confdefs.h <<\EOF |
13255 | #define wxUSE_LIBJPEG 1 | |
13256 | EOF | |
13257 | ||
422107f9 VZ |
13258 | if test "$wxUSE_LIBJPEG" = "yes" ; then |
13259 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
13260 | else | |
13261 | JPEG_LINK= | |
13262 | ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` | |
13263 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 | |
b93d0d08 | 13264 | echo "configure:13265: checking for jpeglib.h" >&5 |
422107f9 VZ |
13265 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13266 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13267 | else | |
13268 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 13269 | #line 13270 "configure" |
422107f9 VZ |
13270 | #include "confdefs.h" |
13271 | #include <jpeglib.h> | |
13272 | EOF | |
13273 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b93d0d08 | 13274 | { (eval echo configure:13275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
422107f9 VZ |
13275 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13276 | if test -z "$ac_err"; then | |
13277 | rm -rf conftest* | |
13278 | eval "ac_cv_header_$ac_safe=yes" | |
13279 | else | |
13280 | echo "$ac_err" >&5 | |
13281 | echo "configure: failed program was:" >&5 | |
13282 | cat conftest.$ac_ext >&5 | |
13283 | rm -rf conftest* | |
13284 | eval "ac_cv_header_$ac_safe=no" | |
13285 | fi | |
13286 | rm -f conftest* | |
13287 | fi | |
13288 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13289 | echo "$ac_t""yes" 1>&6 | |
13290 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 | |
b93d0d08 | 13291 | echo "configure:13292: checking for jpeg_read_header in -ljpeg" >&5 |
422107f9 VZ |
13292 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
13293 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13294 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13295 | else | |
13296 | ac_save_LIBS="$LIBS" | |
13297 | LIBS="-ljpeg $LIBS" | |
13298 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 13299 | #line 13300 "configure" |
422107f9 VZ |
13300 | #include "confdefs.h" |
13301 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13302 | /* We use char because int might match the return type of a gcc2 | |
13303 | builtin and then its argument prototype would still apply. */ | |
13304 | char jpeg_read_header(); | |
13305 | ||
13306 | int main() { | |
13307 | jpeg_read_header() | |
13308 | ; return 0; } | |
13309 | EOF | |
b93d0d08 | 13310 | if { (eval echo configure:13311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
422107f9 VZ |
13311 | rm -rf conftest* |
13312 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13313 | else | |
13314 | echo "configure: failed program was:" >&5 | |
13315 | cat conftest.$ac_ext >&5 | |
13316 | rm -rf conftest* | |
13317 | eval "ac_cv_lib_$ac_lib_var=no" | |
13318 | fi | |
13319 | rm -f conftest* | |
13320 | LIBS="$ac_save_LIBS" | |
13321 | ||
13322 | fi | |
13323 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13324 | echo "$ac_t""yes" 1>&6 | |
13325 | JPEG_LINK="-ljpeg" | |
13326 | else | |
13327 | echo "$ac_t""no" 1>&6 | |
13328 | fi | |
13329 | ||
13330 | else | |
13331 | echo "$ac_t""no" 1>&6 | |
13332 | fi | |
13333 | ||
13334 | if test "x$JPEG_LINK" = "x" ; then | |
0dcf9893 | 13335 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; } |
422107f9 VZ |
13336 | fi |
13337 | fi | |
10f2d63a VZ |
13338 | fi |
13339 | ||
c7a2bf27 | 13340 | TIFF_INCLUDE= |
0dcf9893 | 13341 | if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then |
c7a2bf27 RR |
13342 | cat >> confdefs.h <<\EOF |
13343 | #define wxUSE_LIBTIFF 1 | |
13344 | EOF | |
13345 | ||
0dcf9893 VZ |
13346 | if test "$wxUSE_LIBTIFF" = "yes" ; then |
13347 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
13348 | else | |
13349 | TIFF_LINK= | |
13350 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` | |
13351 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
b93d0d08 | 13352 | echo "configure:13353: checking for tiffio.h" >&5 |
0dcf9893 VZ |
13353 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13354 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13355 | else | |
13356 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 13357 | #line 13358 "configure" |
0dcf9893 VZ |
13358 | #include "confdefs.h" |
13359 | #include <tiffio.h> | |
13360 | EOF | |
13361 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b93d0d08 | 13362 | { (eval echo configure:13363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
0dcf9893 VZ |
13363 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13364 | if test -z "$ac_err"; then | |
13365 | rm -rf conftest* | |
13366 | eval "ac_cv_header_$ac_safe=yes" | |
13367 | else | |
13368 | echo "$ac_err" >&5 | |
13369 | echo "configure: failed program was:" >&5 | |
13370 | cat conftest.$ac_ext >&5 | |
13371 | rm -rf conftest* | |
13372 | eval "ac_cv_header_$ac_safe=no" | |
13373 | fi | |
13374 | rm -f conftest* | |
13375 | fi | |
13376 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13377 | echo "$ac_t""yes" 1>&6 | |
13378 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
b93d0d08 | 13379 | echo "configure:13380: checking for TIFFError in -ltiff" >&5 |
0dcf9893 VZ |
13380 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
13381 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13382 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13383 | else | |
13384 | ac_save_LIBS="$LIBS" | |
13385 | LIBS="-ltiff -lm $LIBS" | |
13386 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 13387 | #line 13388 "configure" |
0dcf9893 VZ |
13388 | #include "confdefs.h" |
13389 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13390 | /* We use char because int might match the return type of a gcc2 | |
13391 | builtin and then its argument prototype would still apply. */ | |
13392 | char TIFFError(); | |
13393 | ||
13394 | int main() { | |
13395 | TIFFError() | |
13396 | ; return 0; } | |
13397 | EOF | |
b93d0d08 | 13398 | if { (eval echo configure:13399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
0dcf9893 VZ |
13399 | rm -rf conftest* |
13400 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13401 | else | |
13402 | echo "configure: failed program was:" >&5 | |
13403 | cat conftest.$ac_ext >&5 | |
13404 | rm -rf conftest* | |
13405 | eval "ac_cv_lib_$ac_lib_var=no" | |
13406 | fi | |
13407 | rm -f conftest* | |
13408 | LIBS="$ac_save_LIBS" | |
13409 | ||
13410 | fi | |
13411 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13412 | echo "$ac_t""yes" 1>&6 | |
13413 | TIFF_LINK="-ltiff" | |
13414 | else | |
13415 | echo "$ac_t""no" 1>&6 | |
13416 | fi | |
13417 | ||
13418 | else | |
13419 | echo "$ac_t""no" 1>&6 | |
13420 | fi | |
13421 | ||
13422 | if test "x$TIFF_LINK" = "x" ; then | |
13423 | { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; } | |
13424 | fi | |
13425 | fi | |
c7a2bf27 RR |
13426 | fi |
13427 | ||
3fed1840 RR |
13428 | FREETYPE_INCLUDE= |
13429 | if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then | |
13430 | cat >> confdefs.h <<\EOF | |
13431 | #define wxUSE_FREETYPE 1 | |
13432 | EOF | |
13433 | ||
13434 | if test "$wxUSE_FREETYPE" = "yes" ; then | |
13435 | FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype" | |
13436 | else | |
13437 | FREETYPE_LINK= | |
13438 | ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'` | |
13439 | echo $ac_n "checking for freetype.h""... $ac_c" 1>&6 | |
b93d0d08 | 13440 | echo "configure:13441: checking for freetype.h" >&5 |
3fed1840 RR |
13441 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13442 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13443 | else | |
13444 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 13445 | #line 13446 "configure" |
3fed1840 RR |
13446 | #include "confdefs.h" |
13447 | #include <freetype.h> | |
13448 | EOF | |
13449 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b93d0d08 | 13450 | { (eval echo configure:13451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3fed1840 RR |
13451 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13452 | if test -z "$ac_err"; then | |
13453 | rm -rf conftest* | |
13454 | eval "ac_cv_header_$ac_safe=yes" | |
13455 | else | |
13456 | echo "$ac_err" >&5 | |
13457 | echo "configure: failed program was:" >&5 | |
13458 | cat conftest.$ac_ext >&5 | |
13459 | rm -rf conftest* | |
13460 | eval "ac_cv_header_$ac_safe=no" | |
13461 | fi | |
13462 | rm -f conftest* | |
13463 | fi | |
13464 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13465 | echo "$ac_t""yes" 1>&6 | |
13466 | echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6 | |
b93d0d08 | 13467 | echo "configure:13468: checking for FT_Render_Glyph in -lfreetype" >&5 |
3fed1840 RR |
13468 | ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'` |
13469 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13470 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13471 | else | |
13472 | ac_save_LIBS="$LIBS" | |
13473 | LIBS="-lfreetype -lm $LIBS" | |
13474 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 13475 | #line 13476 "configure" |
3fed1840 RR |
13476 | #include "confdefs.h" |
13477 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13478 | /* We use char because int might match the return type of a gcc2 | |
13479 | builtin and then its argument prototype would still apply. */ | |
13480 | char FT_Render_Glyph(); | |
13481 | ||
13482 | int main() { | |
13483 | FT_Render_Glyph() | |
13484 | ; return 0; } | |
13485 | EOF | |
b93d0d08 | 13486 | if { (eval echo configure:13487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3fed1840 RR |
13487 | rm -rf conftest* |
13488 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13489 | else | |
13490 | echo "configure: failed program was:" >&5 | |
13491 | cat conftest.$ac_ext >&5 | |
13492 | rm -rf conftest* | |
13493 | eval "ac_cv_lib_$ac_lib_var=no" | |
13494 | fi | |
13495 | rm -f conftest* | |
13496 | LIBS="$ac_save_LIBS" | |
13497 | ||
13498 | fi | |
13499 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13500 | echo "$ac_t""yes" 1>&6 | |
13501 | FREETYPE_LINK="-lfreetype" | |
13502 | else | |
13503 | echo "$ac_t""no" 1>&6 | |
13504 | fi | |
13505 | ||
13506 | ||
13507 | else | |
13508 | echo "$ac_t""no" 1>&6 | |
13509 | fi | |
13510 | ||
13511 | if test "x$FREETYPE_LINK" = "x" ; then | |
13512 | { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; } | |
13513 | fi | |
13514 | fi | |
13515 | fi | |
13516 | ||
10f2d63a VZ |
13517 | if test "$wxUSE_OPENGL" = "yes"; then |
13518 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` | |
13519 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
b93d0d08 | 13520 | echo "configure:13521: checking for GL/gl.h" >&5 |
10f2d63a VZ |
13521 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13522 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13523 | else | |
13524 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 13525 | #line 13526 "configure" |
10f2d63a VZ |
13526 | #include "confdefs.h" |
13527 | #include <GL/gl.h> | |
13528 | EOF | |
13529 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b93d0d08 | 13530 | { (eval echo configure:13531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
13531 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13532 | if test -z "$ac_err"; then | |
13533 | rm -rf conftest* | |
13534 | eval "ac_cv_header_$ac_safe=yes" | |
13535 | else | |
13536 | echo "$ac_err" >&5 | |
13537 | echo "configure: failed program was:" >&5 | |
13538 | cat conftest.$ac_ext >&5 | |
13539 | rm -rf conftest* | |
13540 | eval "ac_cv_header_$ac_safe=no" | |
13541 | fi | |
13542 | rm -f conftest* | |
13543 | fi | |
13544 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13545 | echo "$ac_t""yes" 1>&6 | |
13546 | ||
bdad4e7e RR |
13547 | cat >> confdefs.h <<\EOF |
13548 | #define wxUSE_OPENGL 1 | |
13549 | EOF | |
13550 | ||
13551 | cat >> confdefs.h <<\EOF | |
13552 | #define wxUSE_GLCANVAS 1 | |
13553 | EOF | |
13554 | ||
13555 | echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6 | |
b93d0d08 | 13556 | echo "configure:13557: checking for glFlush in -lGL" >&5 |
bdad4e7e | 13557 | ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'` |
10f2d63a VZ |
13558 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
13559 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13560 | else | |
13561 | ac_save_LIBS="$LIBS" | |
bdad4e7e | 13562 | LIBS="-lGL $LIBS" |
10f2d63a | 13563 | cat > conftest.$ac_ext <<EOF |
b93d0d08 | 13564 | #line 13565 "configure" |
10f2d63a VZ |
13565 | #include "confdefs.h" |
13566 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13567 | /* We use char because int might match the return type of a gcc2 | |
13568 | builtin and then its argument prototype would still apply. */ | |
bdad4e7e | 13569 | char glFlush(); |
10f2d63a VZ |
13570 | |
13571 | int main() { | |
bdad4e7e | 13572 | glFlush() |
10f2d63a VZ |
13573 | ; return 0; } |
13574 | EOF | |
b93d0d08 | 13575 | if { (eval echo configure:13576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
13576 | rm -rf conftest* |
13577 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13578 | else | |
13579 | echo "configure: failed program was:" >&5 | |
13580 | cat conftest.$ac_ext >&5 | |
13581 | rm -rf conftest* | |
13582 | eval "ac_cv_lib_$ac_lib_var=no" | |
13583 | fi | |
13584 | rm -f conftest* | |
13585 | LIBS="$ac_save_LIBS" | |
13586 | ||
13587 | fi | |
13588 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13589 | echo "$ac_t""yes" 1>&6 | |
13590 | ||
f6bcfd97 | 13591 | OPENGL_LINK="-lGL -lGLU" |
10f2d63a VZ |
13592 | |
13593 | else | |
13594 | echo "$ac_t""no" 1>&6 | |
13595 | ||
bdad4e7e | 13596 | echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6 |
b93d0d08 | 13597 | echo "configure:13598: checking for glFlush in -lMesaGL" >&5 |
bdad4e7e | 13598 | ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'` |
10f2d63a VZ |
13599 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
13600 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13601 | else | |
13602 | ac_save_LIBS="$LIBS" | |
13603 | LIBS="-lMesaGL $LIBS" | |
13604 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 13605 | #line 13606 "configure" |
10f2d63a VZ |
13606 | #include "confdefs.h" |
13607 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13608 | /* We use char because int might match the return type of a gcc2 | |
13609 | builtin and then its argument prototype would still apply. */ | |
bdad4e7e | 13610 | char glFlush(); |
10f2d63a VZ |
13611 | |
13612 | int main() { | |
bdad4e7e | 13613 | glFlush() |
10f2d63a VZ |
13614 | ; return 0; } |
13615 | EOF | |
b93d0d08 | 13616 | if { (eval echo configure:13617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
13617 | rm -rf conftest* |
13618 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13619 | else | |
13620 | echo "configure: failed program was:" >&5 | |
13621 | cat conftest.$ac_ext >&5 | |
13622 | rm -rf conftest* | |
13623 | eval "ac_cv_lib_$ac_lib_var=no" | |
13624 | fi | |
13625 | rm -f conftest* | |
13626 | LIBS="$ac_save_LIBS" | |
13627 | ||
13628 | fi | |
13629 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13630 | echo "$ac_t""yes" 1>&6 | |
13631 | ||
f6bcfd97 | 13632 | OPENGL_LINK="-lMesaGL -lMesaGLU" |
10f2d63a VZ |
13633 | |
13634 | else | |
13635 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13636 | fi |
13637 | ||
13638 | ||
13639 | fi | |
13640 | ||
13641 | ||
13642 | else | |
13643 | echo "$ac_t""no" 1>&6 | |
13644 | wxUSE_OPENGL=0 | |
13645 | fi | |
13646 | ||
13647 | fi | |
13648 | ||
13649 | ||
13650 | if test "$wxUSE_GUI" = "yes"; then | |
13651 | cat >> confdefs.h <<\EOF | |
13652 | #define wxUSE_GUI 1 | |
13653 | EOF | |
13654 | ||
13655 | ||
13656 | else | |
13657 | cat >> confdefs.h <<\EOF | |
13658 | #define wxUSE_NOGUI 1 | |
13659 | EOF | |
13660 | ||
13661 | fi | |
13662 | ||
13663 | ||
13664 | if test "$wxUSE_UNIX" = "yes"; then | |
13665 | cat >> confdefs.h <<\EOF | |
13666 | #define wxUSE_UNIX 1 | |
13667 | EOF | |
13668 | ||
13669 | fi | |
13670 | ||
13671 | ||
13672 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
13673 | cat >> confdefs.h <<\EOF | |
13674 | #define wxUSE_APPLE_IEEE 1 | |
13675 | EOF | |
13676 | ||
13677 | fi | |
13678 | ||
10f2d63a VZ |
13679 | if test "$wxUSE_WAVE" = "yes"; then |
13680 | cat >> confdefs.h <<\EOF | |
13681 | #define wxUSE_WAVE 1 | |
13682 | EOF | |
13683 | ||
13684 | fi | |
13685 | ||
13686 | if test "$wxUSE_FILE" = "yes"; then | |
13687 | cat >> confdefs.h <<\EOF | |
13688 | #define wxUSE_FILE 1 | |
13689 | EOF | |
13690 | ||
13691 | fi | |
13692 | ||
24528b0c VS |
13693 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
13694 | cat >> confdefs.h <<\EOF | |
13695 | #define wxUSE_FILESYSTEM 1 | |
13696 | EOF | |
13697 | ||
13698 | fi | |
13699 | ||
10f2d63a VZ |
13700 | if test "$wxUSE_FS_INET" = "yes"; then |
13701 | cat >> confdefs.h <<\EOF | |
13702 | #define wxUSE_FS_INET 1 | |
13703 | EOF | |
13704 | ||
13705 | fi | |
13706 | ||
13707 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
13708 | cat >> confdefs.h <<\EOF | |
13709 | #define wxUSE_FS_ZIP 1 | |
13710 | EOF | |
13711 | ||
13712 | fi | |
13713 | ||
13714 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
13715 | cat >> confdefs.h <<\EOF | |
13716 | #define wxUSE_ZIPSTREAM 1 | |
13717 | EOF | |
13718 | ||
13719 | fi | |
13720 | ||
eb4efbdc VZ |
13721 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
13722 | cat >> confdefs.h <<\EOF | |
13723 | #define wxUSE_ON_FATAL_EXCEPTION 1 | |
13724 | EOF | |
13725 | ||
13726 | fi | |
13727 | ||
10f2d63a VZ |
13728 | if test "$wxUSE_BUSYINFO" = "yes"; then |
13729 | cat >> confdefs.h <<\EOF | |
13730 | #define wxUSE_BUSYINFO 1 | |
13731 | EOF | |
13732 | ||
13733 | fi | |
13734 | ||
13735 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
13736 | cat >> confdefs.h <<\EOF | |
13737 | #define wxUSE_STD_IOSTREAM 1 | |
13738 | EOF | |
13739 | ||
13740 | fi | |
13741 | ||
13742 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
13743 | if test "$wxUSE_FILE" != "yes"; then | |
13744 | echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2 | |
13745 | else | |
13746 | cat >> confdefs.h <<\EOF | |
13747 | #define wxUSE_TEXTFILE 1 | |
13748 | EOF | |
13749 | ||
13750 | fi | |
13751 | fi | |
13752 | ||
13753 | if test "$wxUSE_CONFIG" = "yes" ; then | |
13754 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
13755 | echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2 | |
13756 | else | |
13757 | cat >> confdefs.h <<\EOF | |
13758 | #define wxUSE_CONFIG 1 | |
13759 | EOF | |
13760 | ||
13761 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
13762 | fi | |
13763 | fi | |
13764 | ||
13765 | if test "$wxUSE_INTL" = "yes" ; then | |
13766 | if test "$wxUSE_FILE" != "yes"; then | |
13767 | echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2 | |
13768 | else | |
13769 | cat >> confdefs.h <<\EOF | |
13770 | #define wxUSE_INTL 1 | |
13771 | EOF | |
13772 | ||
13773 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 13774 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
13775 | fi |
13776 | fi | |
13777 | ||
13778 | if test "$wxUSE_LOG" = "yes"; then | |
13779 | cat >> confdefs.h <<\EOF | |
13780 | #define wxUSE_LOG 1 | |
13781 | EOF | |
13782 | ||
13783 | fi | |
13784 | ||
13785 | if test "$wxUSE_LONGLONG" = "yes"; then | |
13786 | cat >> confdefs.h <<\EOF | |
13787 | #define wxUSE_LONGLONG 1 | |
13788 | EOF | |
13789 | ||
13790 | fi | |
13791 | ||
e8f65ba6 RR |
13792 | if test "$wxUSE_GEOMETRY" = "yes"; then |
13793 | cat >> confdefs.h <<\EOF | |
13794 | #define wxUSE_GEOMETRY 1 | |
13795 | EOF | |
13796 | ||
13797 | fi | |
13798 | ||
10f2d63a VZ |
13799 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
13800 | cat >> confdefs.h <<\EOF | |
13801 | #define wxUSE_DIALUP_MANAGER 1 | |
13802 | EOF | |
13803 | ||
70f7a477 | 13804 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
13805 | fi |
13806 | ||
13807 | if test "$wxUSE_STREAMS" = "yes" ; then | |
13808 | cat >> confdefs.h <<\EOF | |
13809 | #define wxUSE_STREAMS 1 | |
13810 | EOF | |
13811 | ||
13812 | fi | |
13813 | ||
10f2d63a | 13814 | |
afc31813 | 13815 | if test "$wxUSE_TIMEDATE" = "yes"; then |
83307f33 VZ |
13816 | for ac_func in strptime |
13817 | do | |
13818 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
b93d0d08 | 13819 | echo "configure:13820: checking for $ac_func" >&5 |
83307f33 VZ |
13820 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13821 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13822 | else | |
13823 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 13824 | #line 13825 "configure" |
83307f33 VZ |
13825 | #include "confdefs.h" |
13826 | /* System header to define __stub macros and hopefully few prototypes, | |
13827 | which can conflict with char $ac_func(); below. */ | |
13828 | #include <assert.h> | |
13829 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13830 | /* We use char because int might match the return type of a gcc2 | |
13831 | builtin and then its argument prototype would still apply. */ | |
13832 | char $ac_func(); | |
13833 | ||
13834 | int main() { | |
13835 | ||
13836 | /* The GNU C library defines this for functions which it implements | |
13837 | to always fail with ENOSYS. Some functions are actually named | |
13838 | something starting with __ and the normal name is an alias. */ | |
13839 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13840 | choke me | |
13841 | #else | |
e8482f24 | 13842 | $ac_func(); |
83307f33 VZ |
13843 | #endif |
13844 | ||
13845 | ; return 0; } | |
13846 | EOF | |
b93d0d08 | 13847 | if { (eval echo configure:13848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
83307f33 VZ |
13848 | rm -rf conftest* |
13849 | eval "ac_cv_func_$ac_func=yes" | |
13850 | else | |
13851 | echo "configure: failed program was:" >&5 | |
13852 | cat conftest.$ac_ext >&5 | |
13853 | rm -rf conftest* | |
13854 | eval "ac_cv_func_$ac_func=no" | |
13855 | fi | |
13856 | rm -f conftest* | |
13857 | fi | |
13858 | ||
13859 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13860 | echo "$ac_t""yes" 1>&6 | |
13861 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13862 | cat >> confdefs.h <<EOF | |
13863 | #define $ac_tr_func 1 | |
13864 | EOF | |
13865 | ||
13866 | else | |
13867 | echo "$ac_t""no" 1>&6 | |
13868 | fi | |
13869 | done | |
13870 | ||
13871 | ||
360d6699 | 13872 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
b93d0d08 | 13873 | echo "configure:13874: checking for timezone variable in <time.h>" >&5 |
360d6699 VZ |
13874 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
13875 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13876 | else | |
13877 | ||
13878 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 13879 | #line 13880 "configure" |
360d6699 VZ |
13880 | #include "confdefs.h" |
13881 | ||
b4085ce6 | 13882 | #include <time.h> |
360d6699 VZ |
13883 | |
13884 | int main() { | |
13885 | ||
13886 | int tz; | |
13887 | tz = __timezone; | |
13888 | ||
13889 | ; return 0; } | |
13890 | EOF | |
b93d0d08 | 13891 | if { (eval echo configure:13892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
360d6699 VZ |
13892 | rm -rf conftest* |
13893 | ||
13894 | wx_cv_var_timezone=__timezone | |
13895 | ||
13896 | else | |
13897 | echo "configure: failed program was:" >&5 | |
13898 | cat conftest.$ac_ext >&5 | |
13899 | rm -rf conftest* | |
13900 | ||
13901 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 13902 | #line 13903 "configure" |
360d6699 VZ |
13903 | #include "confdefs.h" |
13904 | ||
b4085ce6 | 13905 | #include <time.h> |
360d6699 VZ |
13906 | |
13907 | int main() { | |
13908 | ||
13909 | int tz; | |
13910 | tz = _timezone; | |
13911 | ||
13912 | ; return 0; } | |
13913 | EOF | |
b93d0d08 | 13914 | if { (eval echo configure:13915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
360d6699 VZ |
13915 | rm -rf conftest* |
13916 | ||
13917 | wx_cv_var_timezone=_timezone | |
13918 | ||
5357c8e8 VZ |
13919 | else |
13920 | echo "configure: failed program was:" >&5 | |
13921 | cat conftest.$ac_ext >&5 | |
13922 | rm -rf conftest* | |
13923 | ||
13924 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 13925 | #line 13926 "configure" |
5357c8e8 VZ |
13926 | #include "confdefs.h" |
13927 | ||
b4085ce6 | 13928 | #include <time.h> |
5357c8e8 VZ |
13929 | |
13930 | int main() { | |
13931 | ||
13932 | int tz; | |
13933 | tz = timezone; | |
13934 | ||
13935 | ; return 0; } | |
13936 | EOF | |
b93d0d08 | 13937 | if { (eval echo configure:13938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
5357c8e8 VZ |
13938 | rm -rf conftest* |
13939 | ||
13940 | wx_cv_var_timezone=timezone | |
13941 | ||
360d6699 VZ |
13942 | else |
13943 | echo "configure: failed program was:" >&5 | |
13944 | cat conftest.$ac_ext >&5 | |
13945 | rm -rf conftest* | |
13946 | { echo "configure: error: no timezone variable" 1>&2; exit 1; } | |
5357c8e8 VZ |
13947 | |
13948 | fi | |
13949 | rm -f conftest* | |
13950 | ||
360d6699 VZ |
13951 | |
13952 | fi | |
13953 | rm -f conftest* | |
13954 | ||
13955 | ||
13956 | fi | |
13957 | rm -f conftest* | |
13958 | ||
13959 | ||
13960 | fi | |
13961 | ||
13962 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 | |
13963 | ||
13964 | cat >> confdefs.h <<EOF | |
13965 | #define WX_TIMEZONE $wx_cv_var_timezone | |
13966 | EOF | |
13967 | ||
13968 | ||
3fcdd07b | 13969 | for ac_func in localtime |
afc31813 VZ |
13970 | do |
13971 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
b93d0d08 | 13972 | echo "configure:13973: checking for $ac_func" >&5 |
afc31813 VZ |
13973 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13974 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13975 | else | |
13976 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 13977 | #line 13978 "configure" |
10f2d63a | 13978 | #include "confdefs.h" |
afc31813 VZ |
13979 | /* System header to define __stub macros and hopefully few prototypes, |
13980 | which can conflict with char $ac_func(); below. */ | |
13981 | #include <assert.h> | |
13982 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13983 | /* We use char because int might match the return type of a gcc2 | |
13984 | builtin and then its argument prototype would still apply. */ | |
13985 | char $ac_func(); | |
13986 | ||
10f2d63a | 13987 | int main() { |
afc31813 VZ |
13988 | |
13989 | /* The GNU C library defines this for functions which it implements | |
13990 | to always fail with ENOSYS. Some functions are actually named | |
13991 | something starting with __ and the normal name is an alias. */ | |
13992 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13993 | choke me | |
13994 | #else | |
e8482f24 | 13995 | $ac_func(); |
afc31813 VZ |
13996 | #endif |
13997 | ||
10f2d63a VZ |
13998 | ; return 0; } |
13999 | EOF | |
b93d0d08 | 14000 | if { (eval echo configure:14001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a | 14001 | rm -rf conftest* |
afc31813 | 14002 | eval "ac_cv_func_$ac_func=yes" |
10f2d63a VZ |
14003 | else |
14004 | echo "configure: failed program was:" >&5 | |
14005 | cat conftest.$ac_ext >&5 | |
14006 | rm -rf conftest* | |
afc31813 VZ |
14007 | eval "ac_cv_func_$ac_func=no" |
14008 | fi | |
14009 | rm -f conftest* | |
14010 | fi | |
14011 | ||
14012 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14013 | echo "$ac_t""yes" 1>&6 | |
14014 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14015 | cat >> confdefs.h <<EOF | |
14016 | #define $ac_tr_func 1 | |
14017 | EOF | |
3fcdd07b | 14018 | |
afc31813 VZ |
14019 | else |
14020 | echo "$ac_t""no" 1>&6 | |
14021 | fi | |
14022 | done | |
14023 | ||
14024 | ||
0470b1e6 VZ |
14025 | if test "$ac_cv_func_localtime" = "yes"; then |
14026 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
b93d0d08 | 14027 | echo "configure:14028: checking for tm_gmtoff in struct tm" >&5 |
0470b1e6 VZ |
14028 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
14029 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14030 | else | |
14031 | ||
14032 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 14033 | #line 14034 "configure" |
0470b1e6 VZ |
14034 | #include "confdefs.h" |
14035 | ||
b4085ce6 | 14036 | #include <time.h> |
0470b1e6 VZ |
14037 | |
14038 | int main() { | |
14039 | ||
14040 | struct tm tm; | |
14041 | tm.tm_gmtoff++; | |
14042 | ||
14043 | ; return 0; } | |
14044 | EOF | |
b93d0d08 | 14045 | if { (eval echo configure:14046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0470b1e6 VZ |
14046 | rm -rf conftest* |
14047 | ||
f03a98d8 | 14048 | wx_cv_struct_tm_has_gmtoff=yes |
0470b1e6 VZ |
14049 | cat >> confdefs.h <<\EOF |
14050 | #define WX_GMTOFF_IN_TM 1 | |
14051 | EOF | |
14052 | ||
14053 | ||
14054 | else | |
14055 | echo "configure: failed program was:" >&5 | |
14056 | cat conftest.$ac_ext >&5 | |
14057 | rm -rf conftest* | |
14058 | wx_cv_struct_tm_has_gmtoff=no | |
14059 | ||
14060 | fi | |
14061 | rm -f conftest* | |
14062 | ||
14063 | fi | |
14064 | ||
14065 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
3fcdd07b VZ |
14066 | fi |
14067 | ||
14068 | for ac_func in gettimeofday ftime | |
14069 | do | |
14070 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
b93d0d08 | 14071 | echo "configure:14072: checking for $ac_func" >&5 |
3fcdd07b VZ |
14072 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14073 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14074 | else | |
14075 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 14076 | #line 14077 "configure" |
3fcdd07b VZ |
14077 | #include "confdefs.h" |
14078 | /* System header to define __stub macros and hopefully few prototypes, | |
14079 | which can conflict with char $ac_func(); below. */ | |
14080 | #include <assert.h> | |
14081 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14082 | /* We use char because int might match the return type of a gcc2 | |
14083 | builtin and then its argument prototype would still apply. */ | |
14084 | char $ac_func(); | |
14085 | ||
14086 | int main() { | |
14087 | ||
14088 | /* The GNU C library defines this for functions which it implements | |
14089 | to always fail with ENOSYS. Some functions are actually named | |
14090 | something starting with __ and the normal name is an alias. */ | |
14091 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14092 | choke me | |
14093 | #else | |
e8482f24 | 14094 | $ac_func(); |
3fcdd07b VZ |
14095 | #endif |
14096 | ||
14097 | ; return 0; } | |
14098 | EOF | |
b93d0d08 | 14099 | if { (eval echo configure:14100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3fcdd07b VZ |
14100 | rm -rf conftest* |
14101 | eval "ac_cv_func_$ac_func=yes" | |
14102 | else | |
14103 | echo "configure: failed program was:" >&5 | |
14104 | cat conftest.$ac_ext >&5 | |
14105 | rm -rf conftest* | |
14106 | eval "ac_cv_func_$ac_func=no" | |
14107 | fi | |
14108 | rm -f conftest* | |
14109 | fi | |
14110 | ||
14111 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14112 | echo "$ac_t""yes" 1>&6 | |
14113 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14114 | cat >> confdefs.h <<EOF | |
14115 | #define $ac_tr_func 1 | |
14116 | EOF | |
14117 | break | |
14118 | else | |
14119 | echo "$ac_t""no" 1>&6 | |
14120 | fi | |
14121 | done | |
14122 | ||
14123 | ||
14124 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
afc31813 | 14125 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 |
b93d0d08 | 14126 | echo "configure:14127: checking whether gettimeofday takes two arguments" >&5 |
afc31813 VZ |
14127 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
14128 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14129 | else | |
14130 | ||
14131 | ||
14132 | ac_ext=C | |
14133 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
14134 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14135 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14136 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14137 | cross_compiling=$ac_cv_prog_cxx_cross | |
14138 | ||
14139 | ||
14140 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 14141 | #line 14142 "configure" |
10f2d63a | 14142 | #include "confdefs.h" |
afc31813 VZ |
14143 | |
14144 | #include <sys/time.h> | |
14145 | #include <unistd.h> | |
14146 | ||
10f2d63a | 14147 | int main() { |
afc31813 VZ |
14148 | |
14149 | struct timeval tv; | |
14150 | struct timezone tz; | |
14151 | gettimeofday(&tv, &tz); | |
14152 | ||
10f2d63a VZ |
14153 | ; return 0; } |
14154 | EOF | |
b93d0d08 | 14155 | if { (eval echo configure:14156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a | 14156 | rm -rf conftest* |
afc31813 | 14157 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a VZ |
14158 | else |
14159 | echo "configure: failed program was:" >&5 | |
14160 | cat conftest.$ac_ext >&5 | |
14161 | rm -rf conftest* | |
14162 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 14163 | #line 14164 "configure" |
10f2d63a | 14164 | #include "confdefs.h" |
afc31813 VZ |
14165 | |
14166 | #include <sys/time.h> | |
14167 | #include <unistd.h> | |
14168 | ||
10f2d63a | 14169 | int main() { |
afc31813 VZ |
14170 | |
14171 | struct timeval tv; | |
14172 | gettimeofday(&tv); | |
14173 | ||
10f2d63a VZ |
14174 | ; return 0; } |
14175 | EOF | |
b93d0d08 | 14176 | if { (eval echo configure:14177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a | 14177 | rm -rf conftest* |
afc31813 | 14178 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a VZ |
14179 | else |
14180 | echo "configure: failed program was:" >&5 | |
14181 | cat conftest.$ac_ext >&5 | |
14182 | rm -rf conftest* | |
afc31813 VZ |
14183 | wx_cv_func_gettimeofday_has_2_args=unknown |
14184 | ||
10f2d63a VZ |
14185 | fi |
14186 | rm -f conftest* | |
afc31813 | 14187 | |
10f2d63a VZ |
14188 | fi |
14189 | rm -f conftest* | |
afc31813 | 14190 | ac_ext=c |
10f2d63a VZ |
14191 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
14192 | ac_cpp='$CPP $CPPFLAGS' | |
14193 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14194 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14195 | cross_compiling=$ac_cv_prog_cc_cross | |
14196 | ||
afc31813 VZ |
14197 | |
14198 | fi | |
14199 | ||
14200 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 14201 | |
afc31813 VZ |
14202 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
14203 | cat >> confdefs.h <<\EOF | |
14204 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
14205 | EOF | |
14206 | ||
14207 | fi | |
14208 | fi | |
14209 | ||
14210 | cat >> confdefs.h <<\EOF | |
14211 | #define wxUSE_TIMEDATE 1 | |
14212 | EOF | |
14213 | ||
14214 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
14215 | fi | |
14216 | ||
14217 | ||
b089607b VZ |
14218 | if test "$TOOLKIT" != "MSW"; then |
14219 | ||
afc31813 | 14220 | if test "$wxUSE_SOCKETS" = "yes"; then |
c63c7106 | 14221 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
b93d0d08 | 14222 | echo "configure:14223: checking for socket" >&5 |
c63c7106 VZ |
14223 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
14224 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14225 | else | |
14226 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 14227 | #line 14228 "configure" |
c63c7106 VZ |
14228 | #include "confdefs.h" |
14229 | /* System header to define __stub macros and hopefully few prototypes, | |
14230 | which can conflict with char socket(); below. */ | |
14231 | #include <assert.h> | |
14232 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14233 | /* We use char because int might match the return type of a gcc2 | |
14234 | builtin and then its argument prototype would still apply. */ | |
14235 | char socket(); | |
14236 | ||
14237 | int main() { | |
14238 | ||
14239 | /* The GNU C library defines this for functions which it implements | |
14240 | to always fail with ENOSYS. Some functions are actually named | |
14241 | something starting with __ and the normal name is an alias. */ | |
14242 | #if defined (__stub_socket) || defined (__stub___socket) | |
14243 | choke me | |
14244 | #else | |
e8482f24 | 14245 | socket(); |
c63c7106 VZ |
14246 | #endif |
14247 | ||
14248 | ; return 0; } | |
14249 | EOF | |
b93d0d08 | 14250 | if { (eval echo configure:14251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c63c7106 VZ |
14251 | rm -rf conftest* |
14252 | eval "ac_cv_func_socket=yes" | |
14253 | else | |
14254 | echo "configure: failed program was:" >&5 | |
14255 | cat conftest.$ac_ext >&5 | |
14256 | rm -rf conftest* | |
14257 | eval "ac_cv_func_socket=no" | |
14258 | fi | |
14259 | rm -f conftest* | |
14260 | fi | |
14261 | ||
14262 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
14263 | echo "$ac_t""yes" 1>&6 | |
14264 | : | |
14265 | else | |
14266 | echo "$ac_t""no" 1>&6 | |
14267 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
b93d0d08 | 14268 | echo "configure:14269: checking for socket in -lsocket" >&5 |
c63c7106 VZ |
14269 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
14270 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14271 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14272 | else | |
14273 | ac_save_LIBS="$LIBS" | |
14274 | LIBS="-lsocket $LIBS" | |
14275 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 14276 | #line 14277 "configure" |
c63c7106 VZ |
14277 | #include "confdefs.h" |
14278 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14279 | /* We use char because int might match the return type of a gcc2 | |
14280 | builtin and then its argument prototype would still apply. */ | |
14281 | char socket(); | |
14282 | ||
14283 | int main() { | |
14284 | socket() | |
14285 | ; return 0; } | |
14286 | EOF | |
b93d0d08 | 14287 | if { (eval echo configure:14288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c63c7106 VZ |
14288 | rm -rf conftest* |
14289 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14290 | else | |
14291 | echo "configure: failed program was:" >&5 | |
14292 | cat conftest.$ac_ext >&5 | |
14293 | rm -rf conftest* | |
14294 | eval "ac_cv_lib_$ac_lib_var=no" | |
14295 | fi | |
14296 | rm -f conftest* | |
14297 | LIBS="$ac_save_LIBS" | |
14298 | ||
14299 | fi | |
14300 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14301 | echo "$ac_t""yes" 1>&6 | |
14302 | INET_LINK="$INET_LINK -lsocket" | |
c63c7106 VZ |
14303 | else |
14304 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
14305 | |
14306 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 | |
14307 | wxUSE_SOCKETS=no | |
14308 | ||
14309 | ||
c63c7106 VZ |
14310 | fi |
14311 | ||
14312 | ||
14313 | fi | |
14314 | ||
10f2d63a VZ |
14315 | fi |
14316 | ||
b089607b | 14317 | |
afc31813 | 14318 | if test "$wxUSE_SOCKETS" = "yes" ; then |
51a9faba | 14319 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 |
b93d0d08 | 14320 | echo "configure:14321: checking what is the type of the third argument of getsockname" >&5 |
51a9faba VZ |
14321 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
14322 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14323 | else | |
14324 | ||
14325 | ||
14326 | ac_ext=C | |
afc31813 VZ |
14327 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
14328 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14329 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14330 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14331 | cross_compiling=$ac_cv_prog_cxx_cross | |
14332 | ||
51a9faba VZ |
14333 | |
14334 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 14335 | #line 14336 "configure" |
afc31813 | 14336 | #include "confdefs.h" |
51a9faba | 14337 | |
3ace2e6d | 14338 | #include <sys/types.h> |
51a9faba VZ |
14339 | #include <sys/socket.h> |
14340 | ||
afc31813 | 14341 | int main() { |
51a9faba VZ |
14342 | |
14343 | socklen_t len; | |
14344 | getsockname(0, 0, &len); | |
14345 | ||
afc31813 VZ |
14346 | ; return 0; } |
14347 | EOF | |
b93d0d08 | 14348 | if { (eval echo configure:14349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
afc31813 | 14349 | rm -rf conftest* |
51a9faba | 14350 | wx_cv_type_getsockname3=socklen_t |
afc31813 VZ |
14351 | else |
14352 | echo "configure: failed program was:" >&5 | |
14353 | cat conftest.$ac_ext >&5 | |
14354 | rm -rf conftest* | |
14355 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 14356 | #line 14357 "configure" |
afc31813 | 14357 | #include "confdefs.h" |
51a9faba | 14358 | |
3ace2e6d | 14359 | #include <sys/types.h> |
51a9faba VZ |
14360 | #include <sys/socket.h> |
14361 | ||
afc31813 | 14362 | int main() { |
51a9faba VZ |
14363 | |
14364 | size_t len; | |
14365 | getsockname(0, 0, &len); | |
14366 | ||
afc31813 VZ |
14367 | ; return 0; } |
14368 | EOF | |
b93d0d08 | 14369 | if { (eval echo configure:14370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
afc31813 | 14370 | rm -rf conftest* |
51a9faba | 14371 | wx_cv_type_getsockname3=size_t |
afc31813 VZ |
14372 | else |
14373 | echo "configure: failed program was:" >&5 | |
14374 | cat conftest.$ac_ext >&5 | |
14375 | rm -rf conftest* | |
14376 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 14377 | #line 14378 "configure" |
afc31813 | 14378 | #include "confdefs.h" |
51a9faba | 14379 | |
3ace2e6d | 14380 | #include <sys/types.h> |
51a9faba VZ |
14381 | #include <sys/socket.h> |
14382 | ||
afc31813 | 14383 | int main() { |
51a9faba VZ |
14384 | |
14385 | int len; | |
14386 | getsockname(0, 0, &len); | |
14387 | ||
afc31813 VZ |
14388 | ; return 0; } |
14389 | EOF | |
b93d0d08 | 14390 | if { (eval echo configure:14391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
afc31813 | 14391 | rm -rf conftest* |
51a9faba | 14392 | wx_cv_type_getsockname3=int |
afc31813 VZ |
14393 | else |
14394 | echo "configure: failed program was:" >&5 | |
14395 | cat conftest.$ac_ext >&5 | |
3ace2e6d SN |
14396 | rm -rf conftest* |
14397 | wx_cv_type_getsockname3=unknown | |
14398 | ||
afc31813 VZ |
14399 | fi |
14400 | rm -f conftest* | |
51a9faba | 14401 | |
afc31813 VZ |
14402 | fi |
14403 | rm -f conftest* | |
51a9faba | 14404 | |
afc31813 VZ |
14405 | fi |
14406 | rm -f conftest* | |
51a9faba VZ |
14407 | |
14408 | ac_ext=c | |
afc31813 VZ |
14409 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
14410 | ac_cpp='$CPP $CPPFLAGS' | |
14411 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
14412 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14413 | cross_compiling=$ac_cv_prog_cc_cross | |
14414 | ||
51a9faba VZ |
14415 | |
14416 | fi | |
14417 | ||
14418 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
14419 | ||
14420 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
14421 | wxUSE_SOCKETS=no | |
14422 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 | |
14423 | else | |
14424 | cat >> confdefs.h <<EOF | |
14425 | #define SOCKLEN_T $wx_cv_type_getsockname3 | |
14426 | EOF | |
14427 | ||
14428 | fi | |
14429 | fi | |
afc31813 | 14430 | |
c521c494 RL |
14431 | fi |
14432 | ||
51a9faba | 14433 | if test "$wxUSE_SOCKETS" = "yes" ; then |
afc31813 VZ |
14434 | cat >> confdefs.h <<\EOF |
14435 | #define wxUSE_SOCKETS 1 | |
14436 | EOF | |
14437 | ||
70f7a477 | 14438 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
14439 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol" |
14440 | fi | |
14441 | ||
10f2d63a | 14442 | |
dc3d889d VZ |
14443 | if test "$wxUSE_GUI" = "yes"; then |
14444 | ||
b089607b VZ |
14445 | if test "$TOOLKIT" != "MSW"; then |
14446 | ||
ceded8b9 | 14447 | if test "$wxUSE_JOYSTICK" = "yes"; then |
10f2d63a VZ |
14448 | for ac_hdr in linux/joystick.h |
14449 | do | |
14450 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
14451 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b93d0d08 | 14452 | echo "configure:14453: checking for $ac_hdr" >&5 |
10f2d63a VZ |
14453 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14454 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14455 | else | |
14456 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 14457 | #line 14458 "configure" |
10f2d63a VZ |
14458 | #include "confdefs.h" |
14459 | #include <$ac_hdr> | |
14460 | EOF | |
14461 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b93d0d08 | 14462 | { (eval echo configure:14463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
14463 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14464 | if test -z "$ac_err"; then | |
14465 | rm -rf conftest* | |
14466 | eval "ac_cv_header_$ac_safe=yes" | |
14467 | else | |
14468 | echo "$ac_err" >&5 | |
14469 | echo "configure: failed program was:" >&5 | |
14470 | cat conftest.$ac_ext >&5 | |
14471 | rm -rf conftest* | |
14472 | eval "ac_cv_header_$ac_safe=no" | |
14473 | fi | |
14474 | rm -f conftest* | |
14475 | fi | |
14476 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
14477 | echo "$ac_t""yes" 1>&6 | |
14478 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
14479 | cat >> confdefs.h <<EOF | |
14480 | #define $ac_tr_hdr 1 | |
14481 | EOF | |
14482 | ||
14483 | else | |
14484 | echo "$ac_t""no" 1>&6 | |
14485 | fi | |
14486 | done | |
14487 | ||
b089607b | 14488 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
ceded8b9 | 14489 | wxUSE_JOYSTICK=no |
dc3d889d | 14490 | echo "configure: warning: Joystick not supported by this system" 1>&2 |
b089607b VZ |
14491 | fi |
14492 | fi | |
14493 | ||
14494 | fi | |
14495 | ||
ceded8b9 | 14496 | if test "$wxUSE_JOYSTICK" = "yes"; then |
10f2d63a VZ |
14497 | cat >> confdefs.h <<\EOF |
14498 | #define wxUSE_JOYSTICK 1 | |
14499 | EOF | |
14500 | ||
14501 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
10f2d63a VZ |
14502 | fi |
14503 | ||
dc3d889d VZ |
14504 | fi |
14505 | ||
10f2d63a | 14506 | |
b089607b VZ |
14507 | if test "$TOOLKIT" != "MSW"; then |
14508 | ||
10f2d63a VZ |
14509 | HAVE_DL_FUNCS=0 |
14510 | HAVE_SHL_FUNCS=0 | |
14511 | if test "$wxUSE_DYNLIB_CLASS" = "yes"; then | |
b4085ce6 GD |
14512 | if test "$USE_MAC" = 1; then |
14513 | HAVE_DL_FUNCS=1 | |
14514 | else | |
14515 | for ac_func in dlopen | |
10f2d63a VZ |
14516 | do |
14517 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
b93d0d08 | 14518 | echo "configure:14519: checking for $ac_func" >&5 |
10f2d63a VZ |
14519 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14520 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14521 | else | |
14522 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 14523 | #line 14524 "configure" |
10f2d63a VZ |
14524 | #include "confdefs.h" |
14525 | /* System header to define __stub macros and hopefully few prototypes, | |
14526 | which can conflict with char $ac_func(); below. */ | |
14527 | #include <assert.h> | |
14528 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14529 | /* We use char because int might match the return type of a gcc2 | |
14530 | builtin and then its argument prototype would still apply. */ | |
14531 | char $ac_func(); | |
14532 | ||
14533 | int main() { | |
14534 | ||
14535 | /* The GNU C library defines this for functions which it implements | |
14536 | to always fail with ENOSYS. Some functions are actually named | |
14537 | something starting with __ and the normal name is an alias. */ | |
14538 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14539 | choke me | |
14540 | #else | |
e8482f24 | 14541 | $ac_func(); |
10f2d63a VZ |
14542 | #endif |
14543 | ||
14544 | ; return 0; } | |
14545 | EOF | |
b93d0d08 | 14546 | if { (eval echo configure:14547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
14547 | rm -rf conftest* |
14548 | eval "ac_cv_func_$ac_func=yes" | |
14549 | else | |
14550 | echo "configure: failed program was:" >&5 | |
14551 | cat conftest.$ac_ext >&5 | |
14552 | rm -rf conftest* | |
14553 | eval "ac_cv_func_$ac_func=no" | |
14554 | fi | |
14555 | rm -f conftest* | |
14556 | fi | |
14557 | ||
14558 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14559 | echo "$ac_t""yes" 1>&6 | |
14560 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14561 | cat >> confdefs.h <<EOF | |
14562 | #define $ac_tr_func 1 | |
14563 | EOF | |
14564 | ||
14565 | cat >> confdefs.h <<\EOF | |
14566 | #define HAVE_DLOPEN 1 | |
14567 | EOF | |
14568 | ||
14569 | HAVE_DL_FUNCS=1 | |
14570 | ||
14571 | else | |
14572 | echo "$ac_t""no" 1>&6 | |
14573 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
b93d0d08 | 14574 | echo "configure:14575: checking for dlopen in -ldl" >&5 |
10f2d63a VZ |
14575 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
14576 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14577 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14578 | else | |
14579 | ac_save_LIBS="$LIBS" | |
14580 | LIBS="-ldl $LIBS" | |
14581 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 14582 | #line 14583 "configure" |
10f2d63a VZ |
14583 | #include "confdefs.h" |
14584 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14585 | /* We use char because int might match the return type of a gcc2 | |
14586 | builtin and then its argument prototype would still apply. */ | |
14587 | char dlopen(); | |
14588 | ||
14589 | int main() { | |
14590 | dlopen() | |
14591 | ; return 0; } | |
14592 | EOF | |
b93d0d08 | 14593 | if { (eval echo configure:14594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
14594 | rm -rf conftest* |
14595 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14596 | else | |
14597 | echo "configure: failed program was:" >&5 | |
14598 | cat conftest.$ac_ext >&5 | |
14599 | rm -rf conftest* | |
14600 | eval "ac_cv_lib_$ac_lib_var=no" | |
14601 | fi | |
14602 | rm -f conftest* | |
14603 | LIBS="$ac_save_LIBS" | |
14604 | ||
14605 | fi | |
14606 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14607 | echo "$ac_t""yes" 1>&6 | |
14608 | ||
14609 | cat >> confdefs.h <<\EOF | |
14610 | #define HAVE_DLOPEN 1 | |
14611 | EOF | |
14612 | ||
14613 | HAVE_DL_FUNCS=1 | |
14614 | LIBS="$LIBS -ldl" | |
14615 | ||
14616 | else | |
14617 | echo "$ac_t""no" 1>&6 | |
14618 | ||
14619 | for ac_func in shl_load | |
14620 | do | |
14621 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
b93d0d08 | 14622 | echo "configure:14623: checking for $ac_func" >&5 |
10f2d63a VZ |
14623 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14624 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14625 | else | |
14626 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 14627 | #line 14628 "configure" |
10f2d63a VZ |
14628 | #include "confdefs.h" |
14629 | /* System header to define __stub macros and hopefully few prototypes, | |
14630 | which can conflict with char $ac_func(); below. */ | |
14631 | #include <assert.h> | |
14632 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14633 | /* We use char because int might match the return type of a gcc2 | |
14634 | builtin and then its argument prototype would still apply. */ | |
14635 | char $ac_func(); | |
14636 | ||
14637 | int main() { | |
14638 | ||
14639 | /* The GNU C library defines this for functions which it implements | |
14640 | to always fail with ENOSYS. Some functions are actually named | |
14641 | something starting with __ and the normal name is an alias. */ | |
14642 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14643 | choke me | |
14644 | #else | |
e8482f24 | 14645 | $ac_func(); |
10f2d63a VZ |
14646 | #endif |
14647 | ||
14648 | ; return 0; } | |
14649 | EOF | |
b93d0d08 | 14650 | if { (eval echo configure:14651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
14651 | rm -rf conftest* |
14652 | eval "ac_cv_func_$ac_func=yes" | |
14653 | else | |
14654 | echo "configure: failed program was:" >&5 | |
14655 | cat conftest.$ac_ext >&5 | |
14656 | rm -rf conftest* | |
14657 | eval "ac_cv_func_$ac_func=no" | |
14658 | fi | |
14659 | rm -f conftest* | |
14660 | fi | |
14661 | ||
14662 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14663 | echo "$ac_t""yes" 1>&6 | |
14664 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14665 | cat >> confdefs.h <<EOF | |
14666 | #define $ac_tr_func 1 | |
14667 | EOF | |
14668 | ||
14669 | cat >> confdefs.h <<\EOF | |
14670 | #define HAVE_SHL_LOAD 1 | |
14671 | EOF | |
14672 | ||
14673 | HAVE_SHL_FUNCS=1 | |
14674 | ||
14675 | else | |
14676 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 | 14677 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 |
b93d0d08 | 14678 | echo "configure:14679: checking for dld in -lshl_load" >&5 |
f6bcfd97 BP |
14679 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
14680 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14681 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14682 | else | |
14683 | ac_save_LIBS="$LIBS" | |
14684 | LIBS="-lshl_load $LIBS" | |
14685 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 14686 | #line 14687 "configure" |
f6bcfd97 BP |
14687 | #include "confdefs.h" |
14688 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14689 | /* We use char because int might match the return type of a gcc2 | |
14690 | builtin and then its argument prototype would still apply. */ | |
14691 | char dld(); | |
14692 | ||
14693 | int main() { | |
14694 | dld() | |
14695 | ; return 0; } | |
14696 | EOF | |
b93d0d08 | 14697 | if { (eval echo configure:14698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f6bcfd97 BP |
14698 | rm -rf conftest* |
14699 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14700 | else | |
14701 | echo "configure: failed program was:" >&5 | |
14702 | cat conftest.$ac_ext >&5 | |
14703 | rm -rf conftest* | |
14704 | eval "ac_cv_lib_$ac_lib_var=no" | |
14705 | fi | |
14706 | rm -f conftest* | |
14707 | LIBS="$ac_save_LIBS" | |
14708 | ||
14709 | fi | |
14710 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14711 | echo "$ac_t""yes" 1>&6 | |
14712 | ||
14713 | HAVE_SHL_FUNCS=1 | |
14714 | LIBS="$LIBS -ldld" | |
14715 | ||
14716 | else | |
14717 | echo "$ac_t""no" 1>&6 | |
14718 | fi | |
14719 | ||
14720 | ||
10f2d63a VZ |
14721 | fi |
14722 | done | |
14723 | ||
14724 | ||
14725 | fi | |
14726 | ||
14727 | ||
14728 | fi | |
14729 | done | |
14730 | ||
14731 | ||
f6bcfd97 BP |
14732 | if test "$HAVE_DL_FUNCS" = 1; then |
14733 | for ac_func in dlerror | |
14734 | do | |
14735 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
b93d0d08 | 14736 | echo "configure:14737: checking for $ac_func" >&5 |
f6bcfd97 BP |
14737 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14738 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14739 | else | |
14740 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 14741 | #line 14742 "configure" |
f6bcfd97 BP |
14742 | #include "confdefs.h" |
14743 | /* System header to define __stub macros and hopefully few prototypes, | |
14744 | which can conflict with char $ac_func(); below. */ | |
14745 | #include <assert.h> | |
14746 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14747 | /* We use char because int might match the return type of a gcc2 | |
14748 | builtin and then its argument prototype would still apply. */ | |
14749 | char $ac_func(); | |
14750 | ||
14751 | int main() { | |
14752 | ||
14753 | /* The GNU C library defines this for functions which it implements | |
14754 | to always fail with ENOSYS. Some functions are actually named | |
14755 | something starting with __ and the normal name is an alias. */ | |
14756 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14757 | choke me | |
14758 | #else | |
14759 | $ac_func(); | |
14760 | #endif | |
14761 | ||
14762 | ; return 0; } | |
14763 | EOF | |
b93d0d08 | 14764 | if { (eval echo configure:14765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f6bcfd97 BP |
14765 | rm -rf conftest* |
14766 | eval "ac_cv_func_$ac_func=yes" | |
14767 | else | |
14768 | echo "configure: failed program was:" >&5 | |
14769 | cat conftest.$ac_ext >&5 | |
14770 | rm -rf conftest* | |
14771 | eval "ac_cv_func_$ac_func=no" | |
14772 | fi | |
14773 | rm -f conftest* | |
14774 | fi | |
14775 | ||
14776 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14777 | echo "$ac_t""yes" 1>&6 | |
14778 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14779 | cat >> confdefs.h <<EOF | |
14780 | #define $ac_tr_func 1 | |
14781 | EOF | |
14782 | cat >> confdefs.h <<\EOF | |
14783 | #define HAVE_DLERROR 1 | |
14784 | EOF | |
14785 | ||
14786 | else | |
14787 | echo "$ac_t""no" 1>&6 | |
14788 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
b93d0d08 | 14789 | echo "configure:14790: checking for dlerror in -ldl" >&5 |
f6bcfd97 BP |
14790 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
14791 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14792 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14793 | else | |
14794 | ac_save_LIBS="$LIBS" | |
14795 | LIBS="-ldl $LIBS" | |
14796 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 14797 | #line 14798 "configure" |
f6bcfd97 BP |
14798 | #include "confdefs.h" |
14799 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14800 | /* We use char because int might match the return type of a gcc2 | |
14801 | builtin and then its argument prototype would still apply. */ | |
14802 | char dlerror(); | |
14803 | ||
14804 | int main() { | |
14805 | dlerror() | |
14806 | ; return 0; } | |
14807 | EOF | |
b93d0d08 | 14808 | if { (eval echo configure:14809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f6bcfd97 BP |
14809 | rm -rf conftest* |
14810 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14811 | else | |
14812 | echo "configure: failed program was:" >&5 | |
14813 | cat conftest.$ac_ext >&5 | |
14814 | rm -rf conftest* | |
14815 | eval "ac_cv_lib_$ac_lib_var=no" | |
14816 | fi | |
14817 | rm -f conftest* | |
14818 | LIBS="$ac_save_LIBS" | |
14819 | ||
14820 | fi | |
14821 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14822 | echo "$ac_t""yes" 1>&6 | |
14823 | cat >> confdefs.h <<\EOF | |
14824 | #define HAVE_DLERROR 1 | |
14825 | EOF | |
14826 | ||
14827 | else | |
14828 | echo "$ac_t""no" 1>&6 | |
14829 | fi | |
14830 | ||
14831 | fi | |
14832 | done | |
14833 | ||
14834 | fi | |
b4085ce6 | 14835 | fi |
f6bcfd97 | 14836 | |
10f2d63a VZ |
14837 | if test "$HAVE_DL_FUNCS" = 0; then |
14838 | if test "$HAVE_SHL_FUNCS" = 0; then | |
14839 | if test "$USE_UNIX" = 1; then | |
b12915c1 | 14840 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 |
10f2d63a VZ |
14841 | wxUSE_DYNLIB_CLASS=no |
14842 | else | |
b12915c1 | 14843 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 |
10f2d63a VZ |
14844 | fi |
14845 | fi | |
14846 | fi | |
14847 | fi | |
14848 | ||
b089607b VZ |
14849 | fi |
14850 | ||
10f2d63a | 14851 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
b12915c1 | 14852 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14853 | #define wxUSE_DYNLIB_CLASS 1 |
14854 | EOF | |
14855 | ||
b12915c1 VZ |
14856 | else |
14857 | wxUSE_ODBC=no | |
14858 | wxUSE_SERIAL=no | |
10f2d63a VZ |
14859 | fi |
14860 | ||
14861 | ||
14862 | if test "$wxUSE_UNICODE" = "yes" ; then | |
14863 | cat >> confdefs.h <<\EOF | |
14864 | #define wxUSE_UNICODE 1 | |
14865 | EOF | |
14866 | ||
14867 | fi | |
14868 | ||
14869 | if test "$wxUSE_WCSRTOMBS" = "yes" ; then | |
14870 | cat >> confdefs.h <<\EOF | |
14871 | #define wxUSE_WCSRTOMBS 1 | |
14872 | EOF | |
14873 | ||
14874 | fi | |
14875 | ||
14876 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
14877 | cat >> confdefs.h <<\EOF | |
14878 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
14879 | EOF | |
14880 | ||
14881 | fi | |
14882 | ||
14883 | ||
b12915c1 VZ |
14884 | if test "$wxUSE_SERIAL" = "yes" ; then |
14885 | cat >> confdefs.h <<\EOF | |
14886 | #define wxUSE_SERIAL 1 | |
14887 | EOF | |
14888 | ||
14889 | fi | |
14890 | ||
14891 | ||
10f2d63a VZ |
14892 | IODBC_C_SRC="" |
14893 | if test "$wxUSE_ODBC" = "yes" ; then | |
14894 | cat >> confdefs.h <<\EOF | |
14895 | #define wxUSE_ODBC 1 | |
14896 | EOF | |
14897 | ||
14898 | WXODBCFLAG="-D_IODBC_" | |
14899 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
14900 | fi |
14901 | ||
14902 | ||
14903 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
14904 | cat >> confdefs.h <<\EOF | |
14905 | #define wxUSE_POSTSCRIPT 1 | |
14906 | EOF | |
14907 | ||
14908 | fi | |
14909 | ||
14910 | cat >> confdefs.h <<\EOF | |
14911 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
14912 | EOF | |
14913 | ||
14914 | ||
14915 | cat >> confdefs.h <<\EOF | |
14916 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
14917 | EOF | |
14918 | ||
14919 | ||
14920 | ||
14921 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
14922 | cat >> confdefs.h <<\EOF | |
14923 | #define wxUSE_CONSTRAINTS 1 | |
14924 | EOF | |
14925 | ||
14926 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
14927 | fi | |
14928 | ||
14929 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
14930 | cat >> confdefs.h <<\EOF | |
14931 | #define wxUSE_MDI_ARCHITECTURE 1 | |
14932 | EOF | |
14933 | ||
14934 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" | |
14935 | fi | |
14936 | ||
14937 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
14938 | cat >> confdefs.h <<\EOF | |
14939 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
14940 | EOF | |
14941 | ||
14942 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
14943 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
14944 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
14945 | fi | |
14946 | fi | |
14947 | ||
14948 | if test "$wxUSE_HELP" = "yes"; then | |
14949 | cat >> confdefs.h <<\EOF | |
14950 | #define wxUSE_HELP 1 | |
14951 | EOF | |
14952 | ||
14953 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
14954 | fi | |
14955 | ||
14956 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
14957 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
14958 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 | |
14959 | else | |
14960 | cat >> confdefs.h <<\EOF | |
14961 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
14962 | EOF | |
14963 | ||
14964 | fi | |
14965 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
14966 | fi | |
14967 | ||
14968 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
14969 | cat >> confdefs.h <<\EOF | |
14970 | #define wxUSE_PROLOGIO 1 | |
14971 | EOF | |
14972 | ||
14973 | fi | |
14974 | ||
14975 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
14976 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
14977 | cat >> confdefs.h <<\EOF | |
14978 | #define wxUSE_RESOURCES 1 | |
14979 | EOF | |
14980 | ||
14981 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" | |
14982 | else | |
14983 | echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2 | |
14984 | fi | |
14985 | fi | |
14986 | ||
14987 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
14988 | cat >> confdefs.h <<\EOF | |
14989 | #define wxUSE_X_RESOURCES 1 | |
14990 | EOF | |
14991 | ||
14992 | fi | |
14993 | ||
14994 | ||
14995 | if test "$wxUSE_IPC" = "yes"; then | |
eb4efbdc VZ |
14996 | if test "$wxUSE_SOCKETS" != "yes"; then |
14997 | echo "configure: warning: wxWindows IPC classes require sockets" 1>&2 | |
14998 | fi | |
14999 | ||
10f2d63a VZ |
15000 | cat >> confdefs.h <<\EOF |
15001 | #define wxUSE_IPC 1 | |
15002 | EOF | |
15003 | ||
15004 | fi | |
15005 | ||
15006 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
15007 | cat >> confdefs.h <<\EOF | |
15008 | #define wxUSE_CLIPBOARD 1 | |
15009 | EOF | |
15010 | ||
15011 | fi | |
15012 | ||
15013 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
15014 | if test "$wxUSE_GTK" = 1; then | |
15015 | if test "$WXGTK12" != 1; then | |
15016 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2 | |
15017 | wxUSE_DRAG_AND_DROP=no | |
15018 | fi | |
15019 | fi | |
15020 | ||
15021 | if test "$wxUSE_MOTIF" = 1; then | |
15022 | echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2 | |
15023 | wxUSE_DRAG_AND_DROP=no | |
15024 | fi | |
15025 | ||
2c6025bc GD |
15026 | if test "$wxUSE_MAC" = 1; then |
15027 | echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2 | |
15028 | wxUSE_DRAG_AND_DROP=no | |
15029 | fi | |
15030 | ||
10f2d63a | 15031 | if test "$USE_WIN32" = 1; then |
c521c494 RL |
15032 | |
15033 | for ac_hdr in ole2.h | |
10f2d63a VZ |
15034 | do |
15035 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
15036 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b93d0d08 | 15037 | echo "configure:15038: checking for $ac_hdr" >&5 |
10f2d63a VZ |
15038 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15039 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15040 | else | |
15041 | cat > conftest.$ac_ext <<EOF | |
b93d0d08 | 15042 | #line 15043 "configure" |
10f2d63a VZ |
15043 | #include "confdefs.h" |
15044 | #include <$ac_hdr> | |
15045 | EOF | |
15046 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b93d0d08 | 15047 | { (eval echo configure:15048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
15048 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15049 | if test -z "$ac_err"; then | |
15050 | rm -rf conftest* | |
15051 | eval "ac_cv_header_$ac_safe=yes" | |
15052 | else | |
15053 | echo "$ac_err" >&5 | |
15054 | echo "configure: failed program was:" >&5 | |
15055 | cat conftest.$ac_ext >&5 | |
15056 | rm -rf conftest* | |
15057 | eval "ac_cv_header_$ac_safe=no" | |
15058 | fi | |
15059 | rm -f conftest* | |
15060 | fi | |
15061 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
15062 | echo "$ac_t""yes" 1>&6 | |
15063 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
15064 | cat >> confdefs.h <<EOF | |
15065 | #define $ac_tr_hdr 1 | |
15066 | EOF | |
15067 | ||
15068 | else | |
15069 | echo "$ac_t""no" 1>&6 | |
15070 | fi | |
15071 | done | |
15072 | ||
c521c494 RL |
15073 | |
15074 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
15075 | if test "$GCC" = yes ; then | |
b64f0a5f RL |
15076 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" |
15077 | ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)" | |
c521c494 | 15078 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
b64f0a5f RL |
15079 | LIBS="$LIBS -lole32 -luuid" |
15080 | ||
15081 | if test "$wxUSE_METAFILE" = "yes"; then | |
15082 | cat >> confdefs.h <<\EOF | |
15083 | #define wxUSE_METAFILE 1 | |
15084 | EOF | |
15085 | ||
15086 | cat >> confdefs.h <<\EOF | |
15087 | #define wxUSE_ENH_METAFILE 1 | |
15088 | EOF | |
15089 | ||
15090 | fi | |
c521c494 RL |
15091 | fi |
15092 | else | |
10f2d63a VZ |
15093 | echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2 |
15094 | wxUSE_DRAG_AND_DROP=no | |
15095 | fi | |
15096 | fi | |
15097 | ||
15098 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
15099 | cat >> confdefs.h <<\EOF | |
15100 | #define wxUSE_DRAG_AND_DROP 1 | |
15101 | EOF | |
15102 | ||
15103 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
15104 | fi | |
15105 | ||
15106 | fi | |
15107 | ||
15108 | if test "$wxUSE_SPLINES" = "yes" ; then | |
15109 | cat >> confdefs.h <<\EOF | |
15110 | #define wxUSE_SPLINES 1 | |
15111 | EOF | |
15112 | ||
15113 | fi | |
15114 | ||
15115 | ||
15116 | if test "$wxUSE_ACCEL" = "yes"; then | |
15117 | cat >> confdefs.h <<\EOF | |
15118 | #define wxUSE_ACCEL 1 | |
15119 | EOF | |
15120 | ||
15121 | fi | |
15122 | ||
15123 | if test "$wxUSE_CARET" = "yes"; then | |
15124 | cat >> confdefs.h <<\EOF | |
15125 | #define wxUSE_CARET 1 | |
15126 | EOF | |
15127 | ||
15128 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
15129 | fi | |
15130 | ||
15131 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
15132 | cat >> confdefs.h <<\EOF | |
15133 | #define wxUSE_COMBOBOX 1 | |
15134 | EOF | |
15135 | ||
15136 | fi | |
15137 | ||
15138 | if test "$wxUSE_CHOICE" = "yes"; then | |
15139 | cat >> confdefs.h <<\EOF | |
15140 | #define wxUSE_CHOICE 1 | |
15141 | EOF | |
15142 | ||
15143 | fi | |
15144 | ||
15145 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
15146 | cat >> confdefs.h <<\EOF | |
15147 | #define wxUSE_BMPBUTTON 1 | |
15148 | EOF | |
15149 | ||
15150 | fi | |
15151 | ||
15152 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
15153 | cat >> confdefs.h <<\EOF | |
15154 | #define wxUSE_CHECKBOX 1 | |
15155 | EOF | |
15156 | ||
15157 | fi | |
15158 | ||
15159 | if test "$wxUSE_CHECKLST" = "yes"; then | |
15160 | cat >> confdefs.h <<\EOF | |
15161 | #define wxUSE_CHECKLISTBOX 1 | |
15162 | EOF | |
15163 | ||
15164 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
15165 | fi | |
15166 | ||
15167 | if test "$wxUSE_GAUGE" = "yes"; then | |
15168 | cat >> confdefs.h <<\EOF | |
15169 | #define wxUSE_GAUGE 1 | |
15170 | EOF | |
15171 | ||
15172 | fi | |
15173 | ||
d6a55c4b VZ |
15174 | if test "$wxUSE_NEW_GRID" = "yes"; then |
15175 | wxUSE_GRID="yes" | |
10f2d63a | 15176 | cat >> confdefs.h <<\EOF |
d6a55c4b | 15177 | #define wxUSE_NEW_GRID 1 |
10f2d63a VZ |
15178 | EOF |
15179 | ||
d6a55c4b | 15180 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
15181 | fi |
15182 | ||
d6a55c4b | 15183 | if test "$wxUSE_GRID" = "yes"; then |
10f2d63a | 15184 | cat >> confdefs.h <<\EOF |
d6a55c4b | 15185 | #define wxUSE_GRID 1 |
10f2d63a VZ |
15186 | EOF |
15187 | ||
d6a55c4b | 15188 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
15189 | fi |
15190 | ||
15191 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
15192 | cat >> confdefs.h <<\EOF | |
15193 | #define wxUSE_IMAGLIST 1 | |
15194 | EOF | |
15195 | ||
15196 | fi | |
15197 | ||
15198 | if test "$wxUSE_LISTBOX" = "yes"; then | |
15199 | cat >> confdefs.h <<\EOF | |
15200 | #define wxUSE_LISTBOX 1 | |
15201 | EOF | |
15202 | ||
15203 | fi | |
15204 | ||
15205 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
15206 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
15207 | cat >> confdefs.h <<\EOF | |
15208 | #define wxUSE_LISTCTRL 1 | |
15209 | EOF | |
15210 | ||
15211 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
15212 | else | |
15213 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 | |
15214 | fi | |
15215 | fi | |
15216 | ||
15217 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
15218 | cat >> confdefs.h <<\EOF | |
15219 | #define wxUSE_NOTEBOOK 1 | |
15220 | EOF | |
15221 | ||
15222 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
15223 | fi | |
15224 | ||
15225 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
15226 | cat >> confdefs.h <<\EOF | |
15227 | #define wxUSE_RADIOBOX 1 | |
15228 | EOF | |
15229 | ||
15230 | fi | |
15231 | ||
15232 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
15233 | cat >> confdefs.h <<\EOF | |
15234 | #define wxUSE_RADIOBTN 1 | |
15235 | EOF | |
15236 | ||
15237 | fi | |
15238 | ||
15239 | if test "$wxUSE_SASH" = "yes"; then | |
15240 | cat >> confdefs.h <<\EOF | |
15241 | #define wxUSE_SASH 1 | |
15242 | EOF | |
15243 | ||
15244 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
15245 | fi | |
15246 | ||
15247 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
15248 | cat >> confdefs.h <<\EOF | |
15249 | #define wxUSE_SCROLLBAR 1 | |
15250 | EOF | |
15251 | ||
741a9306 | 15252 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
15253 | fi |
15254 | ||
15255 | if test "$wxUSE_SLIDER" = "yes"; then | |
15256 | cat >> confdefs.h <<\EOF | |
15257 | #define wxUSE_SLIDER 1 | |
15258 | EOF | |
15259 | ||
15260 | fi | |
15261 | ||
15262 | if test "$wxUSE_SPINBTN" = "yes"; then | |
15263 | cat >> confdefs.h <<\EOF | |
15264 | #define wxUSE_SPINBTN 1 | |
15265 | EOF | |
15266 | ||
15267 | fi | |
15268 | ||
56cfaa52 RR |
15269 | if test "$wxUSE_SPINCTRL" = "yes"; then |
15270 | cat >> confdefs.h <<\EOF | |
15271 | #define wxUSE_SPINCTRL 1 | |
15272 | EOF | |
15273 | ||
15274 | fi | |
15275 | ||
10f2d63a VZ |
15276 | if test "$wxUSE_SPLITTER" = "yes"; then |
15277 | cat >> confdefs.h <<\EOF | |
15278 | #define wxUSE_SPLITTER 1 | |
15279 | EOF | |
15280 | ||
15281 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
15282 | fi | |
15283 | ||
15284 | if test "$wxUSE_STATBMP" = "yes"; then | |
15285 | cat >> confdefs.h <<\EOF | |
15286 | #define wxUSE_STATBMP 1 | |
15287 | EOF | |
15288 | ||
15289 | fi | |
15290 | ||
15291 | if test "$wxUSE_STATBOX" = "yes"; then | |
15292 | cat >> confdefs.h <<\EOF | |
15293 | #define wxUSE_STATBOX 1 | |
15294 | EOF | |
15295 | ||
15296 | fi | |
15297 | ||
15298 | if test "$wxUSE_STATLINE" = "yes"; then | |
15299 | if test "$wxUSE_WINE" = 1 ; then | |
15300 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 | |
15301 | else | |
15302 | cat >> confdefs.h <<\EOF | |
15303 | #define wxUSE_STATLINE 1 | |
15304 | EOF | |
15305 | ||
15306 | fi | |
15307 | fi | |
15308 | ||
15309 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
15310 | cat >> confdefs.h <<\EOF | |
15311 | #define wxUSE_STATUSBAR 1 | |
15312 | EOF | |
15313 | ||
2286341c VZ |
15314 | |
15315 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
10f2d63a VZ |
15316 | fi |
15317 | ||
15318 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
15319 | cat >> confdefs.h <<\EOF | |
15320 | #define wxUSE_TAB_DIALOG 1 | |
15321 | EOF | |
15322 | ||
15323 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
15324 | fi | |
15325 | ||
1db8dc4a VZ |
15326 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
15327 | cat >> confdefs.h <<\EOF | |
15328 | #define wxUSE_TOGGLEBTN 1 | |
15329 | EOF | |
15330 | ||
15331 | fi | |
15332 | ||
360d6699 VZ |
15333 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
15334 | cat >> confdefs.h <<\EOF | |
15335 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
15336 | EOF | |
15337 | ||
15338 | wxUSE_TOOLBAR="yes" | |
15339 | fi | |
15340 | ||
10f2d63a VZ |
15341 | if test "$wxUSE_TOOLBAR" = "yes"; then |
15342 | cat >> confdefs.h <<\EOF | |
15343 | #define wxUSE_TOOLBAR 1 | |
15344 | EOF | |
15345 | ||
360d6699 VZ |
15346 | |
15347 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
15348 | wxUSE_TOOLBAR_NATIVE="yes" | |
15349 | fi | |
15350 | ||
10f2d63a VZ |
15351 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" |
15352 | fi | |
15353 | ||
360d6699 VZ |
15354 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
15355 | cat >> confdefs.h <<\EOF | |
15356 | #define wxUSE_TOOLBAR_NATIVE 1 | |
15357 | EOF | |
15358 | ||
15359 | fi | |
15360 | ||
10f2d63a VZ |
15361 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
15362 | if test "$wxUSE_MOTIF" = 1; then | |
15363 | echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2 | |
15364 | else | |
15365 | if test "$wxUSE_WINE" = 1; then | |
15366 | echo "configure: warning: wxTooltip not supported under WINE" 1>&2 | |
15367 | else | |
15368 | cat >> confdefs.h <<\EOF | |
15369 | #define wxUSE_TOOLTIPS 1 | |
15370 | EOF | |
15371 | ||
15372 | fi | |
15373 | fi | |
15374 | fi | |
15375 | ||
15376 | if test "$wxUSE_TREECTRL" = "yes"; then | |
15377 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
15378 | cat >> confdefs.h <<\EOF | |
15379 | #define wxUSE_TREECTRL 1 | |
15380 | EOF | |
15381 | ||
15382 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
15383 | else | |
15384 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 | |
15385 | fi | |
15386 | fi | |
15387 | ||
15388 | ||
15389 | ||
10f2d63a VZ |
15390 | if test "$wxUSE_DIRDLG" = "yes"; then |
15391 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
15392 | echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2 | |
15393 | else | |
15394 | if test "$wxUSE_TREECTRL" != "yes"; then | |
15395 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
15396 | else | |
15397 | cat >> confdefs.h <<\EOF | |
15398 | #define wxUSE_DIRDLG 1 | |
15399 | EOF | |
15400 | ||
15401 | fi | |
15402 | fi | |
15403 | fi | |
15404 | ||
15405 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
15406 | cat >> confdefs.h <<\EOF | |
15407 | #define wxUSE_TEXTDLG 1 | |
15408 | EOF | |
15409 | ||
15410 | fi | |
15411 | ||
15412 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
15413 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
15414 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
15415 | else | |
15416 | cat >> confdefs.h <<\EOF | |
15417 | #define wxUSE_STARTUP_TIPS 1 | |
15418 | EOF | |
15419 | ||
15420 | fi | |
15421 | fi | |
15422 | ||
15423 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
15424 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
15425 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
15426 | else | |
15427 | cat >> confdefs.h <<\EOF | |
15428 | #define wxUSE_PROGRESSDLG 1 | |
15429 | EOF | |
15430 | ||
15431 | fi | |
15432 | fi | |
15433 | ||
15434 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
15435 | cat >> confdefs.h <<\EOF | |
15436 | #define wxUSE_MINIFRAME 1 | |
15437 | EOF | |
15438 | ||
15439 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
15440 | fi | |
15441 | ||
15442 | if test "$wxUSE_HTML" = "yes"; then | |
15443 | cat >> confdefs.h <<\EOF | |
15444 | #define wxUSE_HTML 1 | |
15445 | EOF | |
15446 | ||
15447 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
15448 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html" | |
15449 | fi | |
15450 | ||
15451 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
15452 | cat >> confdefs.h <<\EOF | |
15453 | #define wxUSE_VALIDATORS 1 | |
15454 | EOF | |
15455 | ||
15456 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
15457 | fi | |
15458 | ||
0046ff7c VS |
15459 | if test "$wxUSE_IMAGE" = "yes" ; then |
15460 | cat >> confdefs.h <<\EOF | |
15461 | #define wxUSE_IMAGE 1 | |
15462 | EOF | |
15463 | ||
15464 | fi | |
15465 | ||
10f2d63a VZ |
15466 | if test "$wxUSE_GIF" = "yes" ; then |
15467 | cat >> confdefs.h <<\EOF | |
15468 | #define wxUSE_GIF 1 | |
15469 | EOF | |
15470 | ||
15471 | fi | |
15472 | ||
15473 | if test "$wxUSE_PCX" = "yes" ; then | |
15474 | cat >> confdefs.h <<\EOF | |
15475 | #define wxUSE_PCX 1 | |
15476 | EOF | |
15477 | ||
15478 | fi | |
15479 | ||
15480 | if test "$wxUSE_PNM" = "yes" ; then | |
15481 | cat >> confdefs.h <<\EOF | |
15482 | #define wxUSE_PNM 1 | |
15483 | EOF | |
15484 | ||
15485 | fi | |
15486 | ||
0046ff7c VS |
15487 | if test "$wxUSE_XPM" = "yes" ; then |
15488 | cat >> confdefs.h <<\EOF | |
15489 | #define wxUSE_XPM 1 | |
15490 | EOF | |
15491 | ||
15492 | fi | |
15493 | ||
10f2d63a | 15494 | |
32832908 VZ |
15495 | if test "$cross_compiling" = "yes"; then |
15496 | OSINFO="\"$host\"" | |
15497 | else | |
15498 | OSINFO=`uname -s -r -m` | |
15499 | OSINFO="\"$OSINFO\"" | |
15500 | fi | |
15501 | ||
aaa37c0d VZ |
15502 | cat >> confdefs.h <<EOF |
15503 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
15504 | EOF | |
15505 | ||
15506 | ||
15507 | ||
f6bcfd97 BP |
15508 | GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK" |
15509 | OPENGL_LIBS="$OPENGL_LINK" | |
10f2d63a | 15510 | |
ea5999b9 | 15511 | EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm" |
b4085ce6 | 15512 | if test "$USE_MAC" = 1 ; then |
ea5999b9 | 15513 | EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System" |
b4085ce6 | 15514 | fi |
10f2d63a | 15515 | if test "$wxUSE_GUI" = "yes"; then |
3fed1840 | 15516 | EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS" |
10f2d63a VZ |
15517 | fi |
15518 | ||
15519 | LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS" | |
15520 | ||
3fed1840 | 15521 | INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $FREETYPE_INCLUDE $TOOLKIT_INCLUDE" |
10f2d63a | 15522 | |
f6bcfd97 BP |
15523 | if test "$wxUSE_GTK" = 1; then |
15524 | WXCONFIG_INCLUDE="" | |
15525 | else | |
15526 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
15527 | fi | |
15528 | ||
10f2d63a VZ |
15529 | if test "$GXX" = yes ; then |
15530 | CXXWARNINGS="-Wall" | |
d6a55c4b | 15531 | fi |
10f2d63a VZ |
15532 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" |
15533 | ||
f6bcfd97 | 15534 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` |
10f2d63a VZ |
15535 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` |
15536 | ||
e694c22c VZ |
15537 | LDFLAGS="$LDFLAGS $PROFILE" |
15538 | ||
10f2d63a VZ |
15539 | if test "$wxUSE_GUI" = "yes"; then |
15540 | ||
6164f93c VZ |
15541 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs dragimag \ |
15542 | drawing dynamic event font fractal image menu \ | |
15543 | minimal richedit" | |
b12915c1 | 15544 | |
88d3a15c | 15545 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" |
10f2d63a VZ |
15546 | else |
15547 | SAMPLES_SUBDIRS="" | |
15548 | fi | |
15549 | ||
ec14dd32 VZ |
15550 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" |
15551 | ||
15552 | ||
15553 | ||
10f2d63a VZ |
15554 | |
15555 | ||
15556 | ||
15557 | ||
15558 | ||
15559 | ||
15560 | ||
15561 | ||
15562 | ||
15563 | ||
15564 | ||
15565 | ||
15566 | ||
15567 | ||
15568 | ||
15569 | ||
15570 | ||
15571 | ||
15572 | ||
15573 | ||
15574 | ||
15575 | ||
15576 | ||
15577 | ||
15578 | ||
15579 | ||
15580 | ||
15581 | ||
15582 | ||
15583 | ||
15584 | ||
15585 | ||
15586 | ||
15587 | ||
15588 | ||
15589 | ||
15590 | ||
15591 | ||
15592 | ||
15593 | ||
15594 | ||
15595 | ||
15596 | ||
15597 | ||
15598 | ||
15599 | ||
15600 | ||
15601 | ||
15602 | ||
15603 | ||
15604 | ||
15605 | ||
1d62a8b4 | 15606 | |
bdad4e7e RR |
15607 | |
15608 | ||
15609 | ||
15610 | ||
15611 | ||
15612 | ||
15613 | ||
32832908 VZ |
15614 | |
15615 | ||
15616 | ||
15617 | ||
15618 | ||
15619 | ||
15620 | ||
15621 | ||
15622 | ||
15623 | ||
15624 | ||
2224580a | 15625 | |
dad6c0ea | 15626 | |
f6bcfd97 BP |
15627 | |
15628 | ||
15629 | ||
15630 | ||
dad6c0ea | 15631 | |
caa2c79b | 15632 | |
3711412e | 15633 | |
0f3f1cbc | 15634 | |
10f2d63a VZ |
15635 | |
15636 | ||
15637 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
b93d0d08 | 15638 | echo "configure:15639: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
10f2d63a VZ |
15639 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
15640 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
15641 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15642 | else | |
15643 | cat > conftestmake <<\EOF | |
15644 | all: | |
15645 | @echo 'ac_maketemp="${MAKE}"' | |
15646 | EOF | |
15647 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
15648 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
15649 | if test -n "$ac_maketemp"; then | |
15650 | eval ac_cv_prog_make_${ac_make}_set=yes | |
15651 | else | |
15652 | eval ac_cv_prog_make_${ac_make}_set=no | |
15653 | fi | |
15654 | rm -f conftestmake | |
15655 | fi | |
15656 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
15657 | echo "$ac_t""yes" 1>&6 | |
15658 | SET_MAKE= | |
15659 | else | |
15660 | echo "$ac_t""no" 1>&6 | |
15661 | SET_MAKE="MAKE=${MAKE-make}" | |
15662 | fi | |
15663 | ||
15664 | ||
00cf1208 RR |
15665 | if test -d include; then |
15666 | if test -d include/wx; then | |
15667 | if test -d include/wx/${TOOLKIT_DIR}; then | |
15668 | if test -f include/wx/${TOOLKIT_DIR}/setup.h; then | |
15669 | mv -f include/wx/${TOOLKIT_DIR}/setup.h setup.h | |
15670 | fi | |
15671 | fi | |
15672 | fi | |
15673 | fi | |
15674 | ||
10f2d63a VZ |
15675 | |
15676 | ||
2224580a | 15677 | if test "$wxUSE_GUI" = "yes"; then |
ec90f5e5 | 15678 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
e8482f24 GL |
15679 | wx_cv_path_ifs=$PATH_IFS |
15680 | wx_cv_program_ext=$PROGRAM_EXT | |
15681 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
3711412e | 15682 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE |
e8482f24 | 15683 | subdirs="demos samples utils contrib" |
2224580a VZ |
15684 | |
15685 | fi | |
10f2d63a VZ |
15686 | |
15687 | trap '' 1 2 15 | |
15688 | cat > confcache <<\EOF | |
15689 | # This file is a shell script that caches the results of configure | |
15690 | # tests run on this system so they can be shared between configure | |
15691 | # scripts and configure runs. It is not useful on other systems. | |
15692 | # If it contains results you don't want to keep, you may remove or edit it. | |
15693 | # | |
15694 | # By default, configure uses ./config.cache as the cache file, | |
15695 | # creating it if it does not exist already. You can give configure | |
15696 | # the --cache-file=FILE option to use a different cache file; that is | |
15697 | # what configure does when it calls configure scripts in | |
15698 | # subdirectories, so they share the cache. | |
15699 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
15700 | # config.status only pays attention to the cache file if you give it the | |
15701 | # --recheck option to rerun configure. | |
15702 | # | |
15703 | EOF | |
15704 | # The following way of writing the cache mishandles newlines in values, | |
15705 | # but we know of no workaround that is simple, portable, and efficient. | |
15706 | # So, don't put newlines in cache variables' values. | |
15707 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
15708 | # and sets the high bit in the cache file unless we assign to the vars. | |
15709 | (set) 2>&1 | | |
15710 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
15711 | *ac_space=\ *) | |
15712 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
15713 | # turns \\\\ into \\, and sed turns \\ into \). | |
15714 | sed -n \ | |
15715 | -e "s/'/'\\\\''/g" \ | |
15716 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
15717 | ;; | |
15718 | *) | |
15719 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
15720 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
15721 | ;; | |
15722 | esac >> confcache | |
15723 | if cmp -s $cache_file confcache; then | |
15724 | : | |
15725 | else | |
15726 | if test -w $cache_file; then | |
15727 | echo "updating cache $cache_file" | |
15728 | cat confcache > $cache_file | |
15729 | else | |
15730 | echo "not updating unwritable cache $cache_file" | |
15731 | fi | |
15732 | fi | |
15733 | rm -f confcache | |
15734 | ||
15735 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
15736 | ||
15737 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
15738 | # Let make expand exec_prefix. | |
15739 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
15740 | ||
15741 | # Any assignment to VPATH causes Sun make to only execute | |
15742 | # the first set of double-colon rules, so remove it if not needed. | |
15743 | # If there is a colon in the path, we need to keep it. | |
15744 | if test "x$srcdir" = x.; then | |
15745 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
15746 | fi | |
15747 | ||
15748 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
15749 | ||
15750 | DEFS=-DHAVE_CONFIG_H | |
15751 | ||
15752 | # Without the "./", some shells look in PATH for config.status. | |
15753 | : ${CONFIG_STATUS=./config.status} | |
15754 | ||
15755 | echo creating $CONFIG_STATUS | |
15756 | rm -f $CONFIG_STATUS | |
15757 | cat > $CONFIG_STATUS <<EOF | |
15758 | #! /bin/sh | |
15759 | # Generated automatically by configure. | |
15760 | # Run this file to recreate the current configuration. | |
15761 | # This directory was configured as follows, | |
15762 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
15763 | # | |
15764 | # $0 $ac_configure_args | |
15765 | # | |
15766 | # Compiler output produced by configure, useful for debugging | |
15767 | # configure, is in ./config.log if it exists. | |
15768 | ||
15769 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
15770 | for ac_option | |
15771 | do | |
15772 | case "\$ac_option" in | |
15773 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
15774 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
15775 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
15776 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
e8482f24 | 15777 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
10f2d63a VZ |
15778 | exit 0 ;; |
15779 | -help | --help | --hel | --he | --h) | |
15780 | echo "\$ac_cs_usage"; exit 0 ;; | |
15781 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
15782 | esac | |
15783 | done | |
15784 | ||
15785 | ac_given_srcdir=$srcdir | |
15786 | ac_given_INSTALL="$INSTALL" | |
15787 | ||
15788 | trap 'rm -fr `echo " | |
15789 | wx-config | |
15790 | src/make.env | |
15791 | src/makeprog.env | |
15792 | src/makelib.env | |
15793 | Makefile | |
10f2d63a VZ |
15794 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
15795 | EOF | |
15796 | cat >> $CONFIG_STATUS <<EOF | |
15797 | ||
15798 | # Protect against being on the right side of a sed subst in config.status. | |
15799 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
15800 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
15801 | $ac_vpsub | |
15802 | $extrasub | |
15803 | s%@SHELL@%$SHELL%g | |
15804 | s%@CFLAGS@%$CFLAGS%g | |
15805 | s%@CPPFLAGS@%$CPPFLAGS%g | |
15806 | s%@CXXFLAGS@%$CXXFLAGS%g | |
15807 | s%@FFLAGS@%$FFLAGS%g | |
15808 | s%@DEFS@%$DEFS%g | |
15809 | s%@LDFLAGS@%$LDFLAGS%g | |
15810 | s%@LIBS@%$LIBS%g | |
15811 | s%@exec_prefix@%$exec_prefix%g | |
15812 | s%@prefix@%$prefix%g | |
15813 | s%@program_transform_name@%$program_transform_name%g | |
15814 | s%@bindir@%$bindir%g | |
15815 | s%@sbindir@%$sbindir%g | |
15816 | s%@libexecdir@%$libexecdir%g | |
15817 | s%@datadir@%$datadir%g | |
15818 | s%@sysconfdir@%$sysconfdir%g | |
15819 | s%@sharedstatedir@%$sharedstatedir%g | |
15820 | s%@localstatedir@%$localstatedir%g | |
15821 | s%@libdir@%$libdir%g | |
15822 | s%@includedir@%$includedir%g | |
15823 | s%@oldincludedir@%$oldincludedir%g | |
15824 | s%@infodir@%$infodir%g | |
15825 | s%@mandir@%$mandir%g | |
7c66a493 VZ |
15826 | s%@host@%$host%g |
15827 | s%@host_alias@%$host_alias%g | |
15828 | s%@host_cpu@%$host_cpu%g | |
15829 | s%@host_vendor@%$host_vendor%g | |
15830 | s%@host_os@%$host_os%g | |
15831 | s%@target@%$target%g | |
15832 | s%@target_alias@%$target_alias%g | |
15833 | s%@target_cpu@%$target_cpu%g | |
15834 | s%@target_vendor@%$target_vendor%g | |
15835 | s%@target_os@%$target_os%g | |
15836 | s%@build@%$build%g | |
15837 | s%@build_alias@%$build_alias%g | |
15838 | s%@build_cpu@%$build_cpu%g | |
15839 | s%@build_vendor@%$build_vendor%g | |
15840 | s%@build_os@%$build_os%g | |
10f2d63a VZ |
15841 | s%@CC@%$CC%g |
15842 | s%@CPP@%$CPP%g | |
15843 | s%@CXX@%$CXX%g | |
15844 | s%@CXXCPP@%$CXXCPP%g | |
15845 | s%@RANLIB@%$RANLIB%g | |
15846 | s%@AR@%$AR%g | |
15847 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
15848 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
15849 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
15850 | s%@STRIP@%$STRIP%g | |
15851 | s%@YACC@%$YACC%g | |
15852 | s%@LEX@%$LEX%g | |
15853 | s%@LEXLIB@%$LEXLIB%g | |
15854 | s%@LN_S@%$LN_S%g | |
6f72b082 | 15855 | s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g |
10f2d63a VZ |
15856 | s%@GTK_CONFIG@%$GTK_CONFIG%g |
15857 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g | |
15858 | s%@GTK_LIBS@%$GTK_LIBS%g | |
ab9b9eab VZ |
15859 | s%@X_CFLAGS@%$X_CFLAGS%g |
15860 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
15861 | s%@X_LIBS@%$X_LIBS%g | |
15862 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
ec14dd32 VZ |
15863 | s%@LEX_STEM@%$LEX_STEM%g |
15864 | s%@PATH_IFS@%$PATH_IFS%g | |
10f2d63a VZ |
15865 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g |
15866 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
15867 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
15868 | s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g | |
15869 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
15870 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
15871 | s%@WX_LIBRARY@%$WX_LIBRARY%g | |
15872 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
15873 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
15874 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
15875 | s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g | |
15876 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g | |
bdad4e7e RR |
15877 | s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g |
15878 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g | |
15879 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
15880 | s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g | |
15881 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g | |
15882 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
15883 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
15884 | s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g | |
10f2d63a VZ |
15885 | s%@WX_ALL@%$WX_ALL%g |
15886 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
15887 | s%@SHARED_LD@%$SHARED_LD%g | |
15888 | s%@PIC_FLAG@%$PIC_FLAG%g | |
15889 | s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g | |
caa2c79b | 15890 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g |
0f3f1cbc | 15891 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g |
1d62a8b4 | 15892 | s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g |
bdad4e7e | 15893 | s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g |
f6bcfd97 | 15894 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g |
3711412e | 15895 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g |
10f2d63a | 15896 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g |
dad6c0ea VZ |
15897 | s%@USE_GUI@%$USE_GUI%g |
15898 | s%@AFMINSTALL@%$AFMINSTALL%g | |
10f2d63a VZ |
15899 | s%@TOOLKIT@%$TOOLKIT%g |
15900 | s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g | |
15901 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
f6bcfd97 | 15902 | s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g |
10f2d63a | 15903 | s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g |
f6bcfd97 | 15904 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g |
10f2d63a VZ |
15905 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g |
15906 | s%@ALL_DEPFILES@%$ALL_DEPFILES%g | |
10f2d63a | 15907 | s%@GUIDIST@%$GUIDIST%g |
2224580a VZ |
15908 | s%@PORT_FILES@%$PORT_FILES%g |
15909 | s%@DISTDIR@%$DISTDIR%g | |
15910 | s%@RPM_SPEC@%$RPM_SPEC%g | |
15911 | s%@RPM_FILES@%$RPM_FILES%g | |
10f2d63a VZ |
15912 | s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g |
15913 | s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g | |
15914 | s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g | |
15915 | s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g | |
15916 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g | |
15917 | s%@USER_SUBDIRS@%$USER_SUBDIRS%g | |
15918 | s%@EXTRA_LIBS@%$EXTRA_LIBS%g | |
f6bcfd97 | 15919 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g |
b12915c1 | 15920 | s%@EXTRADEFS@%$EXTRADEFS%g |
10f2d63a | 15921 | s%@LD_LIBS@%$LD_LIBS%g |
32832908 VZ |
15922 | s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g |
15923 | s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g | |
15924 | s%@RESPROGRAM@%$RESPROGRAM%g | |
15925 | s%@RESCOMP@%$RESCOMP%g | |
15926 | s%@RESFLAGS@%$RESFLAGS%g | |
15927 | s%@DLLTOOL@%$DLLTOOL%g | |
15928 | s%@AS@%$AS%g | |
15929 | s%@NM@%$NM%g | |
15930 | s%@LD@%$LD%g | |
15931 | s%@MAKEINFO@%$MAKEINFO%g | |
10f2d63a | 15932 | s%@SET_MAKE@%$SET_MAKE%g |
2224580a | 15933 | s%@subdirs@%$subdirs%g |
10f2d63a VZ |
15934 | |
15935 | CEOF | |
15936 | EOF | |
15937 | ||
15938 | cat >> $CONFIG_STATUS <<\EOF | |
15939 | ||
15940 | # Split the substitutions into bite-sized pieces for seds with | |
15941 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
15942 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
15943 | ac_file=1 # Number of current file. | |
15944 | ac_beg=1 # First line for current file. | |
15945 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
15946 | ac_more_lines=: | |
15947 | ac_sed_cmds="" | |
15948 | while $ac_more_lines; do | |
15949 | if test $ac_beg -gt 1; then | |
15950 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
15951 | else | |
15952 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
15953 | fi | |
15954 | if test ! -s conftest.s$ac_file; then | |
15955 | ac_more_lines=false | |
15956 | rm -f conftest.s$ac_file | |
15957 | else | |
15958 | if test -z "$ac_sed_cmds"; then | |
15959 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
15960 | else | |
15961 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
15962 | fi | |
15963 | ac_file=`expr $ac_file + 1` | |
15964 | ac_beg=$ac_end | |
15965 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
15966 | fi | |
15967 | done | |
15968 | if test -z "$ac_sed_cmds"; then | |
15969 | ac_sed_cmds=cat | |
15970 | fi | |
15971 | EOF | |
15972 | ||
15973 | cat >> $CONFIG_STATUS <<EOF | |
15974 | ||
15975 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
15976 | src/make.env | |
15977 | src/makeprog.env | |
15978 | src/makelib.env | |
15979 | Makefile | |
10f2d63a VZ |
15980 | "} |
15981 | EOF | |
15982 | cat >> $CONFIG_STATUS <<\EOF | |
15983 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
15984 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
15985 | case "$ac_file" in | |
15986 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
15987 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
15988 | *) ac_file_in="${ac_file}.in" ;; | |
15989 | esac | |
15990 | ||
15991 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
15992 | ||
15993 | # Remove last slash and all that follows it. Not all systems have dirname. | |
15994 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
15995 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
15996 | # The file is in a subdirectory. | |
15997 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
15998 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
15999 | # A "../" for each directory in $ac_dir_suffix. | |
16000 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
16001 | else | |
16002 | ac_dir_suffix= ac_dots= | |
16003 | fi | |
16004 | ||
16005 | case "$ac_given_srcdir" in | |
16006 | .) srcdir=. | |
16007 | if test -z "$ac_dots"; then top_srcdir=. | |
16008 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
16009 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
16010 | *) # Relative path. | |
16011 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
16012 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
16013 | esac | |
16014 | ||
16015 | case "$ac_given_INSTALL" in | |
16016 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
16017 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
16018 | esac | |
16019 | ||
16020 | echo creating "$ac_file" | |
16021 | rm -f "$ac_file" | |
16022 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
16023 | case "$ac_file" in | |
16024 | *Makefile*) ac_comsub="1i\\ | |
16025 | # $configure_input" ;; | |
16026 | *) ac_comsub= ;; | |
16027 | esac | |
16028 | ||
16029 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
16030 | sed -e "$ac_comsub | |
16031 | s%@configure_input@%$configure_input%g | |
16032 | s%@srcdir@%$srcdir%g | |
16033 | s%@top_srcdir@%$top_srcdir%g | |
16034 | s%@INSTALL@%$INSTALL%g | |
16035 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
16036 | fi; done | |
16037 | rm -f conftest.s* | |
16038 | ||
16039 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
16040 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
16041 | # | |
16042 | # ac_d sets the value in "#define NAME VALUE" lines. | |
16043 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
16044 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
16045 | ac_dC='\3' | |
16046 | ac_dD='%g' | |
16047 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
16048 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
16049 | ac_uB='\([ ]\)%\1#\2define\3' | |
16050 | ac_uC=' ' | |
16051 | ac_uD='\4%g' | |
16052 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
16053 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
16054 | ac_eB='$%\1#\2define\3' | |
16055 | ac_eC=' ' | |
16056 | ac_eD='%g' | |
16057 | ||
16058 | if test "${CONFIG_HEADERS+set}" != set; then | |
16059 | EOF | |
16060 | cat >> $CONFIG_STATUS <<EOF | |
16061 | CONFIG_HEADERS="setup.h:setup.h.in" | |
16062 | EOF | |
16063 | cat >> $CONFIG_STATUS <<\EOF | |
16064 | fi | |
16065 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
16066 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
16067 | case "$ac_file" in | |
16068 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
16069 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
16070 | *) ac_file_in="${ac_file}.in" ;; | |
16071 | esac | |
16072 | ||
16073 | echo creating $ac_file | |
16074 | ||
16075 | rm -f conftest.frag conftest.in conftest.out | |
16076 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
16077 | cat $ac_file_inputs > conftest.in | |
16078 | ||
16079 | EOF | |
16080 | ||
16081 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
16082 | # the proper values into config.h.in to produce config.h. And first: | |
16083 | # Protect against being on the right side of a sed subst in config.status. | |
16084 | # Protect against being in an unquoted here document in config.status. | |
16085 | rm -f conftest.vals | |
16086 | cat > conftest.hdr <<\EOF | |
16087 | s/[\\&%]/\\&/g | |
16088 | s%[\\$`]%\\&%g | |
16089 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
16090 | s%ac_d%ac_u%gp | |
16091 | s%ac_u%ac_e%gp | |
16092 | EOF | |
16093 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
16094 | rm -f conftest.hdr | |
16095 | ||
16096 | # This sed command replaces #undef with comments. This is necessary, for | |
16097 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
16098 | # on some systems where configure will not decide to define it. | |
16099 | cat >> conftest.vals <<\EOF | |
16100 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
16101 | EOF | |
16102 | ||
16103 | # Break up conftest.vals because some shells have a limit on | |
16104 | # the size of here documents, and old seds have small limits too. | |
16105 | ||
16106 | rm -f conftest.tail | |
16107 | while : | |
16108 | do | |
16109 | ac_lines=`grep -c . conftest.vals` | |
16110 | # grep -c gives empty output for an empty file on some AIX systems. | |
16111 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
16112 | # Write a limited-size here document to conftest.frag. | |
16113 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
16114 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
16115 | echo 'CEOF | |
16116 | sed -f conftest.frag conftest.in > conftest.out | |
16117 | rm -f conftest.in | |
16118 | mv conftest.out conftest.in | |
16119 | ' >> $CONFIG_STATUS | |
16120 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
16121 | rm -f conftest.vals | |
16122 | mv conftest.tail conftest.vals | |
16123 | done | |
16124 | rm -f conftest.vals | |
16125 | ||
16126 | cat >> $CONFIG_STATUS <<\EOF | |
16127 | rm -f conftest.frag conftest.h | |
16128 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
16129 | cat conftest.in >> conftest.h | |
16130 | rm -f conftest.in | |
16131 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
16132 | echo "$ac_file is unchanged" | |
16133 | rm -f conftest.h | |
16134 | else | |
16135 | # Remove last slash and all that follows it. Not all systems have dirname. | |
16136 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
16137 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
16138 | # The file is in a subdirectory. | |
16139 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
16140 | fi | |
16141 | rm -f $ac_file | |
16142 | mv conftest.h $ac_file | |
16143 | fi | |
16144 | fi; done | |
16145 | ||
16146 | EOF | |
16147 | cat >> $CONFIG_STATUS <<EOF | |
16148 | ||
16149 | TOOLKIT_DIR="${TOOLKIT_DIR}" | |
f6bcfd97 | 16150 | TOOLKIT_NAME="${TOOLKIT_NAME}" |
07eb77a6 | 16151 | LN_S="${LN_S}" |
10f2d63a VZ |
16152 | |
16153 | ||
16154 | EOF | |
16155 | cat >> $CONFIG_STATUS <<\EOF | |
16156 | ||
16157 | chmod +x wx-config | |
f6bcfd97 BP |
16158 | mv wx-config wx${TOOLKIT_NAME}-config |
16159 | ${LN_S} wx${TOOLKIT_NAME}-config wx-config | |
00cf1208 | 16160 | |
f3c067d2 | 16161 | |
00cf1208 RR |
16162 | if test ! -d lib; then |
16163 | mkdir lib | |
16164 | fi | |
16165 | if test ! -d lib/wx; then | |
16166 | mkdir lib/wx | |
16167 | fi | |
16168 | if test ! -d lib/wx/include; then | |
16169 | mkdir lib/wx/include | |
16170 | fi | |
16171 | if test ! -d lib/wx/include/wx; then | |
16172 | mkdir lib/wx/include/wx | |
16173 | fi | |
f6bcfd97 BP |
16174 | if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then |
16175 | mkdir lib/wx/include/wx/${TOOLKIT_NAME} | |
00cf1208 RR |
16176 | fi |
16177 | if test -f setup.h; then | |
066b00aa | 16178 | cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h |
00cf1208 | 16179 | fi |
07eb77a6 | 16180 | |
00cf1208 | 16181 | |
10f2d63a VZ |
16182 | if test ! -d include; then |
16183 | mkdir include | |
16184 | fi | |
16185 | if test ! -d include/wx; then | |
16186 | mkdir include/wx | |
16187 | fi | |
16188 | if test ! -d include/wx/${TOOLKIT_DIR}; then | |
16189 | mkdir include/wx/${TOOLKIT_DIR} | |
16190 | fi | |
afc31813 | 16191 | if test -f setup.h; then |
066b00aa | 16192 | cp -fp setup.h include/wx/${TOOLKIT_DIR}/setup.h |
afc31813 | 16193 | fi |
00cf1208 | 16194 | |
10f2d63a VZ |
16195 | |
16196 | exit 0 | |
16197 | EOF | |
16198 | chmod +x $CONFIG_STATUS | |
16199 | rm -fr confdefs* $ac_clean_files | |
16200 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
16201 | ||
2224580a VZ |
16202 | if test "$no_recursion" != yes; then |
16203 | ||
16204 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
16205 | ac_sub_configure_args= | |
16206 | ac_prev= | |
16207 | for ac_arg in $ac_configure_args; do | |
16208 | if test -n "$ac_prev"; then | |
16209 | ac_prev= | |
16210 | continue | |
16211 | fi | |
16212 | case "$ac_arg" in | |
16213 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
16214 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
16215 | ac_prev=cache_file ;; | |
16216 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
16217 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
16218 | ;; | |
16219 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
16220 | ac_prev=srcdir ;; | |
16221 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
16222 | ;; | |
16223 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
16224 | esac | |
16225 | done | |
16226 | ||
e8482f24 | 16227 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
16228 | |
16229 | # Do not complain, so a configure script can configure whichever | |
16230 | # parts of a large source tree are present. | |
16231 | if test ! -d $srcdir/$ac_config_dir; then | |
16232 | continue | |
16233 | fi | |
16234 | ||
16235 | echo configuring in $ac_config_dir | |
16236 | ||
16237 | case "$srcdir" in | |
16238 | .) ;; | |
16239 | *) | |
16240 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; | |
16241 | else | |
16242 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
16243 | fi | |
16244 | ;; | |
16245 | esac | |
16246 | ||
16247 | ac_popdir=`pwd` | |
16248 | cd $ac_config_dir | |
16249 | ||
16250 | # A "../" for each directory in /$ac_config_dir. | |
16251 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
16252 | ||
16253 | case "$srcdir" in | |
16254 | .) # No --srcdir option. We are building in place. | |
16255 | ac_sub_srcdir=$srcdir ;; | |
16256 | /*) # Absolute path. | |
16257 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
16258 | *) # Relative path. | |
16259 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; | |
16260 | esac | |
16261 | ||
16262 | # Check for guested configure; otherwise get Cygnus style configure. | |
16263 | if test -f $ac_sub_srcdir/configure; then | |
16264 | ac_sub_configure=$ac_sub_srcdir/configure | |
16265 | elif test -f $ac_sub_srcdir/configure.in; then | |
16266 | ac_sub_configure=$ac_configure | |
16267 | else | |
16268 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 | |
16269 | ac_sub_configure= | |
16270 | fi | |
16271 | ||
16272 | # The recursion is here. | |
16273 | if test -n "$ac_sub_configure"; then | |
16274 | ||
16275 | # Make the cache file name correct relative to the subdirectory. | |
16276 | case "$cache_file" in | |
16277 | /*) ac_sub_cache_file=$cache_file ;; | |
16278 | *) # Relative path. | |
16279 | ac_sub_cache_file="$ac_dots$cache_file" ;; | |
16280 | esac | |
16281 | case "$ac_given_INSTALL" in | |
16282 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
16283 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
16284 | esac | |
16285 | ||
16286 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" | |
16287 | # The eval makes quoting arguments work. | |
16288 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir | |
16289 | then : | |
16290 | else | |
16291 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
16292 | fi | |
16293 | fi | |
16294 | ||
16295 | cd $ac_popdir | |
16296 | done | |
16297 | fi | |
16298 | ||
10f2d63a | 16299 |