]>
Commit | Line | Data |
---|---|---|
10f2d63a VZ |
1 | #! /bin/sh |
2 | ||
3 | # From configure.in Id: configure.in | |
4 | ||
5 | ||
6 | ||
7 | ||
8 | ||
9 | ||
10 | ||
11 | ||
12 | ||
13 | ||
14 | ||
15 | ||
16 | ||
17 | ||
18 | ||
19 | ||
20 | ||
21 | ||
22 | ||
23 | ||
24 | ||
25 | ||
26 | ||
27 | ||
28 | ||
29 | ||
30 | ||
31 | ||
32 | ||
33 | ||
34 | ||
35 | ||
10f2d63a VZ |
36 | |
37 | ||
38 | ||
39 | ||
40 | # Guess values for system-dependent variables and create Makefiles. | |
d6a55c4b | 41 | # Generated automatically using autoconf version 2.13 |
10f2d63a VZ |
42 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
43 | # | |
44 | # This configure script is free software; the Free Software Foundation | |
45 | # gives unlimited permission to copy, distribute and modify it. | |
46 | ||
47 | # Defaults: | |
48 | ac_help= | |
49 | ac_default_prefix=/usr/local | |
50 | # Any additions from configure.in: | |
51 | ac_help="$ac_help | |
52 | --enable-gui use GUI classes" | |
53 | ac_help="$ac_help | |
54 | --with-gtk use GTK+" | |
55 | ac_help="$ac_help | |
56 | --with-motif use Motif/Lesstif" | |
57 | ac_help="$ac_help | |
58 | --with-wine use WINE" | |
59 | ac_help="$ac_help | |
60 | --with-cygwin use Cygwin for MS-Windows" | |
61 | ac_help="$ac_help | |
62 | --with-mingw use GCC Minimal MS-Windows" | |
e07802fc VZ |
63 | ac_help="$ac_help |
64 | --with-pm use OS/2 Presentation Manager" | |
10f2d63a VZ |
65 | ac_help="$ac_help |
66 | --with-gtk-prefix=PFX Prefix where GTK is installed" | |
67 | ac_help="$ac_help | |
68 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed" | |
69 | ac_help="$ac_help | |
10f2d63a VZ |
70 | --with-libpng use libpng (PNG image format)" |
71 | ac_help="$ac_help | |
72 | --with-libjpeg use libjpeg (JPEG file format)" | |
73 | ac_help="$ac_help | |
c7a2bf27 RR |
74 | --with-libtiff use libtiff (TIFF file format)" |
75 | ac_help="$ac_help | |
10f2d63a VZ |
76 | --with-opengl use OpenGL (or Mesa)" |
77 | ac_help="$ac_help | |
b12915c1 VZ |
78 | --with-dmalloc use dmalloc library (www.letters.com/dmalloc)" |
79 | ac_help="$ac_help | |
80 | --with-zlib use zlib for LZW compression" | |
81 | ac_help="$ac_help | |
10f2d63a VZ |
82 | --with-odbc use the IODBC and wxODBC classes" |
83 | ac_help="$ac_help | |
84 | --enable-shared create shared library code" | |
85 | ac_help="$ac_help | |
00cf1208 RR |
86 | --enable-burnt_name create set name in shared library " |
87 | ac_help="$ac_help | |
10f2d63a VZ |
88 | --enable-optimise create optimised code" |
89 | ac_help="$ac_help | |
90 | --enable-debug same as debug_flag and debug_info" | |
91 | ac_help="$ac_help | |
92 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" | |
93 | ac_help="$ac_help | |
94 | --enable-debug_info create code with debugging information" | |
95 | ac_help="$ac_help | |
96 | --enable-debug_gdb create code with extra GDB debugging information" | |
97 | ac_help="$ac_help | |
98 | --enable-debug_cntxt use wxDebugContext" | |
99 | ac_help="$ac_help | |
100 | --enable-mem_tracing create code with memory tracing" | |
101 | ac_help="$ac_help | |
102 | --enable-profile create code with profiling information" | |
103 | ac_help="$ac_help | |
104 | --enable-no_rtti create code without RTTI information" | |
105 | ac_help="$ac_help | |
106 | --enable-no_exceptions create code without exceptions information" | |
107 | ac_help="$ac_help | |
108 | --enable-permissive compile code disregarding strict ANSI" | |
109 | ac_help="$ac_help | |
110 | --enable-no_deps create code without dependency information" | |
111 | ac_help="$ac_help | |
112 | --enable-intl use internationalization system" | |
113 | ac_help="$ac_help | |
114 | --enable-config use wxConfig (and derived) classes" | |
115 | ac_help="$ac_help | |
116 | --enable-sockets use socket/network classes" | |
117 | ac_help="$ac_help | |
118 | --enable-dialupman use dialup network classes" | |
119 | ac_help="$ac_help | |
120 | --enable-ipc use interprocess communication (wxSocket etc.)" | |
121 | ac_help="$ac_help | |
122 | --enable-apple_ieee use the Apple IEEE codec" | |
123 | ac_help="$ac_help | |
124 | --enable-timedate use date/time classes" | |
125 | ac_help="$ac_help | |
126 | --enable-wave use wxWave class" | |
127 | ac_help="$ac_help | |
128 | --enable-fraction use wxFraction class" | |
129 | ac_help="$ac_help | |
130 | --enable-dynlib use wxLibrary class for DLL loading" | |
131 | ac_help="$ac_help | |
132 | --enable-longlong use wxLongLong class" | |
133 | ac_help="$ac_help | |
134 | --enable-log use logging system" | |
135 | ac_help="$ac_help | |
136 | --enable-streams use wxStream etc classes" | |
137 | ac_help="$ac_help | |
138 | --enable-file use wxFile classes" | |
139 | ac_help="$ac_help | |
140 | --enable-textfile use wxTextFile classes" | |
141 | ac_help="$ac_help | |
142 | --enable-unicode compile wxString with Unicode support" | |
143 | ac_help="$ac_help | |
144 | --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs" | |
145 | ac_help="$ac_help | |
146 | --enable-wxprintfv use wxWindows implementation of vprintf()" | |
147 | ac_help="$ac_help | |
148 | --enable-joystick compile in joystick support (Linux only)" | |
149 | ac_help="$ac_help | |
150 | --enable-std_iostreams use standard C++ stream classes" | |
151 | ac_help="$ac_help | |
152 | --enable-fs_inet use virtual HTTP/FTP filesystems" | |
153 | ac_help="$ac_help | |
154 | --enable-fs_zip use virtual ZIP filesystems" | |
155 | ac_help="$ac_help | |
156 | --enable-zipstream use wxZipInputStream" | |
157 | ac_help="$ac_help | |
158 | --enable-threads use threads" | |
159 | ac_help="$ac_help | |
160 | --enable-serial use class serialization" | |
161 | ac_help="$ac_help | |
162 | --enable-docview use document view architecture" | |
163 | ac_help="$ac_help | |
164 | --enable-help use help (using external browser at present)" | |
165 | ac_help="$ac_help | |
166 | --enable-constraints use layout-constraints system" | |
167 | ac_help="$ac_help | |
168 | --enable-printarch use printing architecture" | |
169 | ac_help="$ac_help | |
170 | --enable-mdi use multiple document interface architecture" | |
171 | ac_help="$ac_help | |
172 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" | |
173 | ac_help="$ac_help | |
174 | --enable-prologio use Prolog IO library" | |
175 | ac_help="$ac_help | |
176 | --enable-resources use wxWindows resources" | |
177 | ac_help="$ac_help | |
178 | --enable-xresources use X resources for save (default for gtk+)" | |
179 | ac_help="$ac_help | |
180 | --enable-clipboard use wxClipboard classes" | |
181 | ac_help="$ac_help | |
182 | --enable-dnd use Drag'n'Drop classes" | |
183 | ac_help="$ac_help | |
184 | --enable-wxtree make wxTree library" | |
185 | ac_help="$ac_help | |
186 | --enable-controls use all usual controls" | |
187 | ac_help="$ac_help | |
188 | --enable-accel use accelerators" | |
189 | ac_help="$ac_help | |
190 | --enable-caret use wxCaret class" | |
191 | ac_help="$ac_help | |
192 | --enable-bmpbutton use wxBitmapButton class" | |
193 | ac_help="$ac_help | |
194 | --enable-checkbox use wxCheckBox class" | |
195 | ac_help="$ac_help | |
196 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" | |
197 | ac_help="$ac_help | |
198 | --enable-choice use wxChoice class" | |
199 | ac_help="$ac_help | |
200 | --enable-combobox use wxComboBox classes" | |
201 | ac_help="$ac_help | |
202 | --enable-gauge use wxGauge class" | |
203 | ac_help="$ac_help | |
204 | --enable-grid use wxGrid class" | |
205 | ac_help="$ac_help | |
206 | --enable-newgrid use new wxGrid class" | |
207 | ac_help="$ac_help | |
208 | --enable-imaglist use wxImageList class" | |
209 | ac_help="$ac_help | |
210 | --enable-listbox use wxListBox class" | |
211 | ac_help="$ac_help | |
212 | --enable-listctrl use wxListCtrl class" | |
213 | ac_help="$ac_help | |
214 | --enable-notebook use wxNotebook class" | |
215 | ac_help="$ac_help | |
216 | --enable-radiobox use wxRadioBox class" | |
217 | ac_help="$ac_help | |
218 | --enable-radiobtn use wxRadioButton class" | |
219 | ac_help="$ac_help | |
220 | --enable-sash use wxSashWindow class" | |
221 | ac_help="$ac_help | |
222 | --enable-scrollbar use wxScrollBar class and scrollable windows" | |
223 | ac_help="$ac_help | |
224 | --enable-slider use wxSlider class" | |
225 | ac_help="$ac_help | |
226 | --enable-spinbtn use wxSpinButton class" | |
227 | ac_help="$ac_help | |
56cfaa52 RR |
228 | --enable-spinctrl use wxSpinCtrl class" |
229 | ac_help="$ac_help | |
10f2d63a VZ |
230 | --enable-splitter use wxSplitterWindow class" |
231 | ac_help="$ac_help | |
232 | --enable-statbmp use wxStaticBitmap class" | |
233 | ac_help="$ac_help | |
234 | --enable-statbox use wxStaticBox class" | |
235 | ac_help="$ac_help | |
236 | --enable-statline use wxStaticLine class" | |
237 | ac_help="$ac_help | |
238 | --enable-statusbar use wxStatusBar class" | |
239 | ac_help="$ac_help | |
240 | --enable-tabdialog use wxTabControl class" | |
241 | ac_help="$ac_help | |
242 | --enable-toolbar use wxToolBar class" | |
243 | ac_help="$ac_help | |
360d6699 VZ |
244 | --enable-tbarnative use native wxToolBar class" |
245 | ac_help="$ac_help | |
246 | --enable-tbarsmpl use wxToolBarSimple class" | |
247 | ac_help="$ac_help | |
10f2d63a VZ |
248 | --enable-treectrl use wxTreeCtrl class" |
249 | ac_help="$ac_help | |
250 | --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)" | |
251 | ac_help="$ac_help | |
252 | --enable-dirdlg use wxDirDialog" | |
253 | ac_help="$ac_help | |
254 | --enable-textdlg use wxTextDialog" | |
255 | ac_help="$ac_help | |
256 | --enable-tipdlg use startup tips" | |
257 | ac_help="$ac_help | |
258 | --enable-progressdlg use wxProgressDialog" | |
259 | ac_help="$ac_help | |
260 | --enable-miniframe use wxMiniFrame class" | |
261 | ac_help="$ac_help | |
262 | --enable-html use wxHTML sub-library" | |
263 | ac_help="$ac_help | |
264 | --enable-tooltips use wxToolTip class" | |
265 | ac_help="$ac_help | |
266 | --enable-splines use spline drawing code" | |
267 | ac_help="$ac_help | |
268 | --enable-validators use wxValidator and derived classes" | |
269 | ac_help="$ac_help | |
270 | --enable-busyinfo use wxBusyInfo" | |
271 | ac_help="$ac_help | |
9b33fe02 VZ |
272 | --enable-plot use wxPlot" |
273 | ac_help="$ac_help | |
10f2d63a VZ |
274 | --enable-gif use gif images (GIF file format)" |
275 | ac_help="$ac_help | |
276 | --enable-pcx use pcx images (PCX file format)" | |
277 | ac_help="$ac_help | |
278 | --enable-pnm use pnm images (PNM file format)" | |
ab9b9eab VZ |
279 | ac_help="$ac_help |
280 | --with-x use the X Window System" | |
10f2d63a VZ |
281 | |
282 | # Initialize some variables set by options. | |
283 | # The variables have the same names as the options, with | |
284 | # dashes changed to underlines. | |
285 | build=NONE | |
286 | cache_file=./config.cache | |
287 | exec_prefix=NONE | |
288 | host=NONE | |
289 | no_create= | |
290 | nonopt=NONE | |
291 | no_recursion= | |
292 | prefix=NONE | |
293 | program_prefix=NONE | |
294 | program_suffix=NONE | |
295 | program_transform_name=s,x,x, | |
296 | silent= | |
297 | site= | |
298 | srcdir= | |
299 | target=NONE | |
300 | verbose= | |
301 | x_includes=NONE | |
302 | x_libraries=NONE | |
303 | bindir='${exec_prefix}/bin' | |
304 | sbindir='${exec_prefix}/sbin' | |
305 | libexecdir='${exec_prefix}/libexec' | |
306 | datadir='${prefix}/share' | |
307 | sysconfdir='${prefix}/etc' | |
308 | sharedstatedir='${prefix}/com' | |
309 | localstatedir='${prefix}/var' | |
310 | libdir='${exec_prefix}/lib' | |
311 | includedir='${prefix}/include' | |
312 | oldincludedir='/usr/include' | |
313 | infodir='${prefix}/info' | |
314 | mandir='${prefix}/man' | |
315 | ||
316 | # Initialize some other variables. | |
317 | subdirs= | |
318 | MFLAGS= MAKEFLAGS= | |
319 | SHELL=${CONFIG_SHELL-/bin/sh} | |
320 | # Maximum number of lines to put in a shell here document. | |
321 | ac_max_here_lines=12 | |
322 | ||
323 | ac_prev= | |
324 | for ac_option | |
325 | do | |
326 | ||
327 | # If the previous option needs an argument, assign it. | |
328 | if test -n "$ac_prev"; then | |
329 | eval "$ac_prev=\$ac_option" | |
330 | ac_prev= | |
331 | continue | |
332 | fi | |
333 | ||
334 | case "$ac_option" in | |
335 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
336 | *) ac_optarg= ;; | |
337 | esac | |
338 | ||
339 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
340 | ||
341 | case "$ac_option" in | |
342 | ||
343 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
344 | ac_prev=bindir ;; | |
345 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
346 | bindir="$ac_optarg" ;; | |
347 | ||
348 | -build | --build | --buil | --bui | --bu) | |
349 | ac_prev=build ;; | |
350 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
351 | build="$ac_optarg" ;; | |
352 | ||
353 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
354 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
355 | ac_prev=cache_file ;; | |
356 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
357 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
358 | cache_file="$ac_optarg" ;; | |
359 | ||
360 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
361 | ac_prev=datadir ;; | |
362 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
363 | | --da=*) | |
364 | datadir="$ac_optarg" ;; | |
365 | ||
366 | -disable-* | --disable-*) | |
367 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
368 | # Reject names that are not valid shell variable names. | |
369 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
370 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
371 | fi | |
372 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
373 | eval "enable_${ac_feature}=no" ;; | |
374 | ||
375 | -enable-* | --enable-*) | |
376 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
377 | # Reject names that are not valid shell variable names. | |
378 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
379 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
380 | fi | |
381 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
382 | case "$ac_option" in | |
383 | *=*) ;; | |
384 | *) ac_optarg=yes ;; | |
385 | esac | |
386 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
387 | ||
388 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
389 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
390 | | --exec | --exe | --ex) | |
391 | ac_prev=exec_prefix ;; | |
392 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
393 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
394 | | --exec=* | --exe=* | --ex=*) | |
395 | exec_prefix="$ac_optarg" ;; | |
396 | ||
397 | -gas | --gas | --ga | --g) | |
398 | # Obsolete; use --with-gas. | |
399 | with_gas=yes ;; | |
400 | ||
401 | -help | --help | --hel | --he) | |
402 | # Omit some internal or obsolete options to make the list less imposing. | |
403 | # This message is too long to be a string in the A/UX 3.1 sh. | |
404 | cat << EOF | |
405 | Usage: configure [options] [host] | |
406 | Options: [defaults in brackets after descriptions] | |
407 | Configuration: | |
408 | --cache-file=FILE cache test results in FILE | |
409 | --help print this message | |
410 | --no-create do not create output files | |
411 | --quiet, --silent do not print \`checking...' messages | |
412 | --version print the version of autoconf that created configure | |
413 | Directory and file names: | |
414 | --prefix=PREFIX install architecture-independent files in PREFIX | |
415 | [$ac_default_prefix] | |
416 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
417 | [same as prefix] | |
418 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
419 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
420 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
421 | --datadir=DIR read-only architecture-independent data in DIR | |
422 | [PREFIX/share] | |
423 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
424 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
425 | [PREFIX/com] | |
426 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
427 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
428 | --includedir=DIR C header files in DIR [PREFIX/include] | |
429 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
430 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
431 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
432 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
433 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
434 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
435 | --program-transform-name=PROGRAM | |
436 | run sed PROGRAM on installed program names | |
437 | EOF | |
438 | cat << EOF | |
439 | Host type: | |
440 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
441 | --host=HOST configure for HOST [guessed] | |
442 | --target=TARGET configure for TARGET [TARGET=HOST] | |
443 | Features and packages: | |
444 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
445 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
446 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
447 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
448 | --x-includes=DIR X include files are in DIR | |
449 | --x-libraries=DIR X library files are in DIR | |
450 | EOF | |
451 | if test -n "$ac_help"; then | |
452 | echo "--enable and --with options recognized:$ac_help" | |
453 | fi | |
454 | exit 0 ;; | |
455 | ||
456 | -host | --host | --hos | --ho) | |
457 | ac_prev=host ;; | |
458 | -host=* | --host=* | --hos=* | --ho=*) | |
459 | host="$ac_optarg" ;; | |
460 | ||
461 | -includedir | --includedir | --includedi | --included | --include \ | |
462 | | --includ | --inclu | --incl | --inc) | |
463 | ac_prev=includedir ;; | |
464 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
465 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
466 | includedir="$ac_optarg" ;; | |
467 | ||
468 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
469 | ac_prev=infodir ;; | |
470 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
471 | infodir="$ac_optarg" ;; | |
472 | ||
473 | -libdir | --libdir | --libdi | --libd) | |
474 | ac_prev=libdir ;; | |
475 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
476 | libdir="$ac_optarg" ;; | |
477 | ||
478 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
479 | | --libexe | --libex | --libe) | |
480 | ac_prev=libexecdir ;; | |
481 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
482 | | --libexe=* | --libex=* | --libe=*) | |
483 | libexecdir="$ac_optarg" ;; | |
484 | ||
485 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
486 | | --localstate | --localstat | --localsta | --localst \ | |
487 | | --locals | --local | --loca | --loc | --lo) | |
488 | ac_prev=localstatedir ;; | |
489 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
490 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
491 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
492 | localstatedir="$ac_optarg" ;; | |
493 | ||
494 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
495 | ac_prev=mandir ;; | |
496 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
497 | mandir="$ac_optarg" ;; | |
498 | ||
499 | -nfp | --nfp | --nf) | |
500 | # Obsolete; use --without-fp. | |
501 | with_fp=no ;; | |
502 | ||
503 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
504 | | --no-cr | --no-c) | |
505 | no_create=yes ;; | |
506 | ||
507 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
508 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
509 | no_recursion=yes ;; | |
510 | ||
511 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
512 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
513 | | --oldin | --oldi | --old | --ol | --o) | |
514 | ac_prev=oldincludedir ;; | |
515 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
516 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
517 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
518 | oldincludedir="$ac_optarg" ;; | |
519 | ||
520 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
521 | ac_prev=prefix ;; | |
522 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
523 | prefix="$ac_optarg" ;; | |
524 | ||
525 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
526 | | --program-pre | --program-pr | --program-p) | |
527 | ac_prev=program_prefix ;; | |
528 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
529 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
530 | program_prefix="$ac_optarg" ;; | |
531 | ||
532 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
533 | | --program-suf | --program-su | --program-s) | |
534 | ac_prev=program_suffix ;; | |
535 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
536 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
537 | program_suffix="$ac_optarg" ;; | |
538 | ||
539 | -program-transform-name | --program-transform-name \ | |
540 | | --program-transform-nam | --program-transform-na \ | |
541 | | --program-transform-n | --program-transform- \ | |
542 | | --program-transform | --program-transfor \ | |
543 | | --program-transfo | --program-transf \ | |
544 | | --program-trans | --program-tran \ | |
545 | | --progr-tra | --program-tr | --program-t) | |
546 | ac_prev=program_transform_name ;; | |
547 | -program-transform-name=* | --program-transform-name=* \ | |
548 | | --program-transform-nam=* | --program-transform-na=* \ | |
549 | | --program-transform-n=* | --program-transform-=* \ | |
550 | | --program-transform=* | --program-transfor=* \ | |
551 | | --program-transfo=* | --program-transf=* \ | |
552 | | --program-trans=* | --program-tran=* \ | |
553 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
554 | program_transform_name="$ac_optarg" ;; | |
555 | ||
556 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
557 | | -silent | --silent | --silen | --sile | --sil) | |
558 | silent=yes ;; | |
559 | ||
560 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
561 | ac_prev=sbindir ;; | |
562 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
563 | | --sbi=* | --sb=*) | |
564 | sbindir="$ac_optarg" ;; | |
565 | ||
566 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
567 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
568 | | --sharedst | --shareds | --shared | --share | --shar \ | |
569 | | --sha | --sh) | |
570 | ac_prev=sharedstatedir ;; | |
571 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
572 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
573 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
574 | | --sha=* | --sh=*) | |
575 | sharedstatedir="$ac_optarg" ;; | |
576 | ||
577 | -site | --site | --sit) | |
578 | ac_prev=site ;; | |
579 | -site=* | --site=* | --sit=*) | |
580 | site="$ac_optarg" ;; | |
581 | ||
582 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
583 | ac_prev=srcdir ;; | |
584 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
585 | srcdir="$ac_optarg" ;; | |
586 | ||
587 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
588 | | --syscon | --sysco | --sysc | --sys | --sy) | |
589 | ac_prev=sysconfdir ;; | |
590 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
591 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
592 | sysconfdir="$ac_optarg" ;; | |
593 | ||
594 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
595 | ac_prev=target ;; | |
596 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
597 | target="$ac_optarg" ;; | |
598 | ||
599 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
600 | verbose=yes ;; | |
601 | ||
602 | -version | --version | --versio | --versi | --vers) | |
d6a55c4b | 603 | echo "configure generated by autoconf version 2.13" |
10f2d63a VZ |
604 | exit 0 ;; |
605 | ||
606 | -with-* | --with-*) | |
607 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
608 | # Reject names that are not valid shell variable names. | |
609 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
610 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
611 | fi | |
612 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
613 | case "$ac_option" in | |
614 | *=*) ;; | |
615 | *) ac_optarg=yes ;; | |
616 | esac | |
617 | eval "with_${ac_package}='$ac_optarg'" ;; | |
618 | ||
619 | -without-* | --without-*) | |
620 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
621 | # Reject names that are not valid shell variable names. | |
622 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
623 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
624 | fi | |
625 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
626 | eval "with_${ac_package}=no" ;; | |
627 | ||
628 | --x) | |
629 | # Obsolete; use --with-x. | |
630 | with_x=yes ;; | |
631 | ||
632 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
633 | | --x-incl | --x-inc | --x-in | --x-i) | |
634 | ac_prev=x_includes ;; | |
635 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
636 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
637 | x_includes="$ac_optarg" ;; | |
638 | ||
639 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
640 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
641 | ac_prev=x_libraries ;; | |
642 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
643 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
644 | x_libraries="$ac_optarg" ;; | |
645 | ||
646 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
647 | ;; | |
648 | ||
649 | *) | |
650 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
651 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
652 | fi | |
653 | if test "x$nonopt" != xNONE; then | |
654 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
655 | fi | |
656 | nonopt="$ac_option" | |
657 | ;; | |
658 | ||
659 | esac | |
660 | done | |
661 | ||
662 | if test -n "$ac_prev"; then | |
663 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
664 | fi | |
665 | ||
666 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
667 | ||
668 | # File descriptor usage: | |
669 | # 0 standard input | |
670 | # 1 file creation | |
671 | # 2 errors and warnings | |
672 | # 3 some systems may open it to /dev/tty | |
673 | # 4 used on the Kubota Titan | |
674 | # 6 checking for... messages and results | |
675 | # 5 compiler messages saved in config.log | |
676 | if test "$silent" = yes; then | |
677 | exec 6>/dev/null | |
678 | else | |
679 | exec 6>&1 | |
680 | fi | |
681 | exec 5>./config.log | |
682 | ||
683 | echo "\ | |
684 | This file contains any messages produced by compilers while | |
685 | running configure, to aid debugging if configure makes a mistake. | |
686 | " 1>&5 | |
687 | ||
688 | # Strip out --no-create and --no-recursion so they do not pile up. | |
689 | # Also quote any args containing shell metacharacters. | |
690 | ac_configure_args= | |
691 | for ac_arg | |
692 | do | |
693 | case "$ac_arg" in | |
694 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
695 | | --no-cr | --no-c) ;; | |
696 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
697 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
698 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
699 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
700 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
701 | esac | |
702 | done | |
703 | ||
704 | # NLS nuisances. | |
705 | # Only set these to C if already set. These must not be set unconditionally | |
706 | # because not all systems understand e.g. LANG=C (notably SCO). | |
707 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
708 | # Non-C LC_CTYPE values break the ctype check. | |
709 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
710 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
711 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
712 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
713 | ||
714 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
715 | rm -rf conftest* confdefs.h | |
716 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
717 | echo > confdefs.h | |
718 | ||
719 | # A filename unique to this package, relative to the directory that | |
720 | # configure is in, which we can look for to find out if srcdir is correct. | |
721 | ac_unique_file=wx-config.in | |
722 | ||
723 | # Find the source files, if location was not specified. | |
724 | if test -z "$srcdir"; then | |
725 | ac_srcdir_defaulted=yes | |
726 | # Try the directory containing this script, then its parent. | |
727 | ac_prog=$0 | |
728 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
729 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
730 | srcdir=$ac_confdir | |
731 | if test ! -r $srcdir/$ac_unique_file; then | |
732 | srcdir=.. | |
733 | fi | |
734 | else | |
735 | ac_srcdir_defaulted=no | |
736 | fi | |
737 | if test ! -r $srcdir/$ac_unique_file; then | |
738 | if test "$ac_srcdir_defaulted" = yes; then | |
739 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
740 | else | |
741 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
742 | fi | |
743 | fi | |
744 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
745 | ||
746 | # Prefer explicitly selected file to automatically selected ones. | |
747 | if test -z "$CONFIG_SITE"; then | |
748 | if test "x$prefix" != xNONE; then | |
749 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
750 | else | |
751 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
752 | fi | |
753 | fi | |
754 | for ac_site_file in $CONFIG_SITE; do | |
755 | if test -r "$ac_site_file"; then | |
756 | echo "loading site script $ac_site_file" | |
757 | . "$ac_site_file" | |
758 | fi | |
759 | done | |
760 | ||
761 | if test -r "$cache_file"; then | |
762 | echo "loading cache $cache_file" | |
763 | . $cache_file | |
764 | else | |
765 | echo "creating cache $cache_file" | |
766 | > $cache_file | |
767 | fi | |
768 | ||
769 | ac_ext=c | |
770 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
771 | ac_cpp='$CPP $CPPFLAGS' | |
772 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
773 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
774 | cross_compiling=$ac_cv_prog_cc_cross | |
775 | ||
776 | ac_exeext= | |
777 | ac_objext=o | |
778 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
779 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
780 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
781 | ac_n= ac_c=' | |
782 | ' ac_t=' ' | |
783 | else | |
784 | ac_n=-n ac_c= ac_t= | |
785 | fi | |
786 | else | |
787 | ac_n= ac_c='\c' ac_t= | |
788 | fi | |
789 | ||
790 | ||
791 | ||
7c66a493 VZ |
792 | ac_aux_dir= |
793 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
794 | if test -f $ac_dir/install-sh; then | |
795 | ac_aux_dir=$ac_dir | |
796 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
797 | break | |
798 | elif test -f $ac_dir/install.sh; then | |
799 | ac_aux_dir=$ac_dir | |
800 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
801 | break | |
802 | fi | |
803 | done | |
804 | if test -z "$ac_aux_dir"; then | |
805 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
806 | fi | |
807 | ac_config_guess=$ac_aux_dir/config.guess | |
808 | ac_config_sub=$ac_aux_dir/config.sub | |
809 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
810 | ||
811 | ||
812 | # Do some error checking and defaulting for the host and target type. | |
813 | # The inputs are: | |
814 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
815 | # | |
816 | # The rules are: | |
817 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
818 | # same time. | |
819 | # 2. Host defaults to nonopt. | |
820 | # 3. If nonopt is not specified, then host defaults to the current host, | |
821 | # as determined by config.guess. | |
822 | # 4. Target and build default to nonopt. | |
823 | # 5. If nonopt is not specified, then target and build default to host. | |
824 | ||
825 | # The aliases save the names the user supplied, while $host etc. | |
826 | # will get canonicalized. | |
827 | case $host---$target---$nonopt in | |
828 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
829 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
830 | esac | |
831 | ||
832 | ||
833 | # Make sure we can run config.sub. | |
834 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
835 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
836 | fi | |
837 | ||
838 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
00cf1208 | 839 | echo "configure:840: checking host system type" >&5 |
7c66a493 VZ |
840 | |
841 | host_alias=$host | |
842 | case "$host_alias" in | |
843 | NONE) | |
844 | case $nonopt in | |
845 | NONE) | |
846 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
847 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
848 | fi ;; | |
849 | *) host_alias=$nonopt ;; | |
850 | esac ;; | |
851 | esac | |
852 | ||
853 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
854 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
855 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
856 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
857 | echo "$ac_t""$host" 1>&6 | |
858 | ||
859 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
00cf1208 | 860 | echo "configure:861: checking target system type" >&5 |
7c66a493 VZ |
861 | |
862 | target_alias=$target | |
863 | case "$target_alias" in | |
864 | NONE) | |
865 | case $nonopt in | |
866 | NONE) target_alias=$host_alias ;; | |
867 | *) target_alias=$nonopt ;; | |
868 | esac ;; | |
869 | esac | |
870 | ||
871 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
872 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
873 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
874 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
875 | echo "$ac_t""$target" 1>&6 | |
876 | ||
877 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
00cf1208 | 878 | echo "configure:879: checking build system type" >&5 |
7c66a493 VZ |
879 | |
880 | build_alias=$build | |
881 | case "$build_alias" in | |
882 | NONE) | |
883 | case $nonopt in | |
884 | NONE) build_alias=$host_alias ;; | |
885 | *) build_alias=$nonopt ;; | |
886 | esac ;; | |
887 | esac | |
888 | ||
889 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
890 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
891 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
892 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
893 | echo "$ac_t""$build" 1>&6 | |
894 | ||
895 | test "$host_alias" != "$target_alias" && | |
896 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
897 | NONENONEs,x,x, && | |
898 | program_prefix=${target_alias}- | |
899 | ||
900 | ||
10f2d63a VZ |
901 | |
902 | WX_MAJOR_VERSION_NUMBER=2 | |
903 | WX_MINOR_VERSION_NUMBER=1 | |
cc977e5f | 904 | WX_RELEASE_NUMBER=14 |
10f2d63a VZ |
905 | |
906 | WX_INTERFACE_AGE=0 | |
907 | WX_BINARY_AGE=0 | |
908 | ||
909 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER | |
910 | ||
911 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER | |
912 | WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE` | |
913 | WX_REVISION=$WX_INTERFACE_AGE | |
914 | WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE` | |
915 | ||
916 | ||
917 | USE_UNIX=1 | |
918 | USE_WIN32=0 | |
b12915c1 VZ |
919 | USE_BEOS=0 |
920 | ||
10f2d63a VZ |
921 | USE_LINUX= |
922 | USE_SGI= | |
923 | USE_HPUX= | |
924 | USE_SYSV= | |
925 | USE_SVR4= | |
926 | USE_AIX= | |
927 | USE_SUN= | |
928 | USE_SOLARIS= | |
929 | USE_SUNOS= | |
930 | USE_ALPHA= | |
931 | USE_OSF= | |
932 | USE_BSD= | |
933 | USE_FREEBSD= | |
934 | USE_VMS= | |
935 | USE_ULTRIX= | |
936 | USE_CYGWIN= | |
937 | USE_MINGW= | |
938 | USE_DATA_GENERAL= | |
939 | ||
ab9b9eab VZ |
940 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
941 | ||
e07802fc | 942 | ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE PM" |
10f2d63a VZ |
943 | |
944 | DEFAULT_wxUSE_GTK=0 | |
945 | DEFAULT_wxUSE_MOTIF=0 | |
946 | DEFAULT_wxUSE_MSW=0 | |
947 | DEFAULT_wxUSE_WINE=0 | |
e07802fc | 948 | DEFAULT_wxUSE_PM=0 |
10f2d63a VZ |
949 | |
950 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
951 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
952 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
953 | DEFAULT_DEFAULT_wxUSE_WINE=0 | |
e07802fc | 954 | DEFAULT_DEFAULT_wxUSE_PM=0 |
10f2d63a | 955 | |
d6a55c4b VZ |
956 | PROGRAM_EXT= |
957 | ||
10f2d63a VZ |
958 | case "${host}" in |
959 | *-hp-hpux* ) | |
960 | USE_HPUX=1 | |
961 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 962 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
963 | cat >> confdefs.h <<\EOF |
964 | #define __HPUX__ 1 | |
965 | EOF | |
966 | ||
967 | ;; | |
968 | *-*-linux* ) | |
969 | USE_LINUX=1 | |
970 | cat >> confdefs.h <<\EOF | |
971 | #define __LINUX__ 1 | |
972 | EOF | |
973 | ||
974 | TMP=`uname -m` | |
975 | if test "x$TMP" = "xalpha"; then | |
976 | USE_ALPHA=1 | |
977 | cat >> confdefs.h <<\EOF | |
978 | #define __ALPHA__ 1 | |
979 | EOF | |
980 | ||
981 | fi | |
982 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
983 | ;; | |
984 | *-*-irix5* | *-*-irix6* ) | |
985 | USE_SGI=1 | |
986 | USE_SVR4=1 | |
987 | cat >> confdefs.h <<\EOF | |
988 | #define __SGI__ 1 | |
989 | EOF | |
990 | ||
991 | cat >> confdefs.h <<\EOF | |
992 | #define __SVR4__ 1 | |
993 | EOF | |
994 | ||
995 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
996 | ;; | |
997 | *-*-solaris2* ) | |
998 | USE_SUN=1 | |
999 | USE_SOLARIS=1 | |
1000 | USE_SVR4=1 | |
1001 | cat >> confdefs.h <<\EOF | |
1002 | #define __SUN__ 1 | |
1003 | EOF | |
1004 | ||
1005 | cat >> confdefs.h <<\EOF | |
1006 | #define __SOLARIS__ 1 | |
1007 | EOF | |
1008 | ||
1009 | cat >> confdefs.h <<\EOF | |
1010 | #define __SVR4__ 1 | |
1011 | EOF | |
1012 | ||
1013 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1014 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1015 | ;; |
1016 | *-*-sunos4* ) | |
1017 | USE_SUN=1 | |
1018 | USE_SUNOS=1 | |
1019 | USE_BSD=1 | |
1020 | cat >> confdefs.h <<\EOF | |
1021 | #define __SUN__ 1 | |
1022 | EOF | |
1023 | ||
1024 | cat >> confdefs.h <<\EOF | |
1025 | #define __SUNOS__ 1 | |
1026 | EOF | |
1027 | ||
1028 | cat >> confdefs.h <<\EOF | |
1029 | #define __BSD__ 1 | |
1030 | EOF | |
1031 | ||
1032 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1033 | ;; | |
1034 | *-*-freebsd* | *-*-netbsd*) | |
1035 | USE_BSD=1 | |
1036 | USE_FREEBSD=1 | |
1037 | cat >> confdefs.h <<\EOF | |
1038 | #define __FREEBSD__ 1 | |
1039 | EOF | |
1040 | ||
1041 | cat >> confdefs.h <<\EOF | |
1042 | #define __BSD__ 1 | |
1043 | EOF | |
1044 | ||
1045 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1046 | ;; | |
1047 | *-*-osf* ) | |
1048 | USE_ALPHA=1 | |
1049 | USE_OSF=1 | |
1050 | cat >> confdefs.h <<\EOF | |
1051 | #define __ALPHA__ 1 | |
1052 | EOF | |
1053 | ||
1054 | cat >> confdefs.h <<\EOF | |
1055 | #define __OSF__ 1 | |
1056 | EOF | |
1057 | ||
1058 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1059 | ;; | |
1060 | *-*-dgux5* ) | |
1061 | USE_ALPHA=1 | |
1062 | USE_SVR4=1 | |
1063 | cat >> confdefs.h <<\EOF | |
1064 | #define __ALPHA__ 1 | |
1065 | EOF | |
1066 | ||
1067 | cat >> confdefs.h <<\EOF | |
1068 | #define __SVR4__ 1 | |
1069 | EOF | |
1070 | ||
1071 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1072 | ;; | |
1073 | *-*-sysv5* ) | |
1074 | USE_SYSV=1 | |
1075 | USE_SVR4=1 | |
1076 | cat >> confdefs.h <<\EOF | |
1077 | #define __SYSV__ 1 | |
1078 | EOF | |
1079 | ||
1080 | cat >> confdefs.h <<\EOF | |
1081 | #define __SVR4__ 1 | |
1082 | EOF | |
1083 | ||
1084 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1085 | ;; | |
1086 | *-*-aix* ) | |
1087 | USE_AIX=1 | |
1088 | USE_SYSV=1 | |
1089 | USE_SVR4=1 | |
1090 | cat >> confdefs.h <<\EOF | |
1091 | #define __AIX__ 1 | |
1092 | EOF | |
1093 | ||
1094 | cat >> confdefs.h <<\EOF | |
1095 | #define __SYSV__ 1 | |
1096 | EOF | |
1097 | ||
1098 | cat >> confdefs.h <<\EOF | |
1099 | #define __SVR4__ 1 | |
1100 | EOF | |
1101 | ||
1102 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1103 | ;; | |
1104 | ||
7eef8db2 | 1105 | *-*-cygwin32* | *-*-mingw32* ) |
10f2d63a VZ |
1106 | USE_UNIX=0 |
1107 | USE_WIN32=1 | |
1108 | cat >> confdefs.h <<\EOF | |
1109 | #define __WIN32__ 1 | |
1110 | EOF | |
1111 | ||
1112 | cat >> confdefs.h <<\EOF | |
1113 | #define __WIN95__ 1 | |
1114 | EOF | |
1115 | ||
1116 | cat >> confdefs.h <<\EOF | |
1117 | #define __WINDOWS__ 1 | |
1118 | EOF | |
1119 | ||
1120 | cat >> confdefs.h <<\EOF | |
1121 | #define __GNUWIN32__ 1 | |
1122 | EOF | |
1123 | ||
1124 | cat >> confdefs.h <<\EOF | |
1125 | #define STRICT 1 | |
1126 | EOF | |
1127 | ||
1128 | cat >> confdefs.h <<\EOF | |
1129 | #define WINVER 0x0400 | |
1130 | EOF | |
1131 | ||
cf27ef00 | 1132 | PROGRAM_EXT=".exe" |
10f2d63a VZ |
1133 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1134 | ;; | |
1135 | ||
1136 | *-pc-os2_emx ) | |
1137 | cat >> confdefs.h <<\EOF | |
1138 | #define __EMX__ 1 | |
1139 | EOF | |
1140 | ||
cf27ef00 | 1141 | PROGRAM_EXT=".exe" |
e07802fc | 1142 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1143 | ;; |
1144 | ||
b12915c1 VZ |
1145 | *-*-beos* ) |
1146 | USE_BEOS=1 | |
1147 | cat >> confdefs.h <<\EOF | |
1148 | #define __BEOS__ 1 | |
1149 | EOF | |
1150 | ||
1151 | ;; | |
1152 | ||
10f2d63a VZ |
1153 | *) |
1154 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } | |
1155 | esac | |
1156 | ||
1157 | if test "$USE_UNIX" = 1 ; then | |
b12915c1 VZ |
1158 | wxUSE_UNIX=yes |
1159 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
1160 | #define __UNIX__ 1 |
1161 | EOF | |
1162 | ||
b12915c1 VZ |
1163 | |
1164 | SRC_SUBDIRS="$SRC_SUBDIRS unix" | |
1165 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix" | |
1166 | fi | |
1167 | ||
1168 | if test "$USE_BEOS" = 1; then | |
1169 | SRC_SUBDIRS="$SRC_SUBDIRS be" | |
1170 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be" | |
10f2d63a VZ |
1171 | fi |
1172 | ||
1173 | if test "$USE_LINUX" = 1; then | |
1174 | echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6 | |
d6a55c4b | 1175 | echo "configure:1176: checking for gettext in -lc" >&5 |
10f2d63a VZ |
1176 | ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'` |
1177 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1178 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1179 | else | |
1180 | ac_save_LIBS="$LIBS" | |
1181 | LIBS="-lc $LIBS" | |
1182 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 1183 | #line 1184 "configure" |
10f2d63a VZ |
1184 | #include "confdefs.h" |
1185 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1186 | /* We use char because int might match the return type of a gcc2 | |
1187 | builtin and then its argument prototype would still apply. */ | |
1188 | char gettext(); | |
1189 | ||
1190 | int main() { | |
1191 | gettext() | |
1192 | ; return 0; } | |
1193 | EOF | |
d6a55c4b | 1194 | if { (eval echo configure:1195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
1195 | rm -rf conftest* |
1196 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1197 | else | |
1198 | echo "configure: failed program was:" >&5 | |
1199 | cat conftest.$ac_ext >&5 | |
1200 | rm -rf conftest* | |
1201 | eval "ac_cv_lib_$ac_lib_var=no" | |
1202 | fi | |
1203 | rm -f conftest* | |
1204 | LIBS="$ac_save_LIBS" | |
1205 | ||
1206 | fi | |
1207 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1208 | echo "$ac_t""yes" 1>&6 | |
1209 | cat >> confdefs.h <<\EOF | |
1210 | #define wxHAVE_GLIBC2 1 | |
1211 | EOF | |
1212 | ||
1213 | else | |
1214 | echo "$ac_t""no" 1>&6 | |
1215 | fi | |
1216 | ||
1217 | fi | |
1218 | ||
1219 | ||
1220 | ||
1221 | ||
1222 | wx_arg_cache_file="configarg.cache" | |
1223 | echo "loading argument cache $wx_arg_cache_file" | |
1224 | rm -f ${wx_arg_cache_file}.tmp | |
1225 | touch ${wx_arg_cache_file}.tmp | |
1226 | touch ${wx_arg_cache_file} | |
1227 | ||
1228 | ||
1229 | DEBUG_CONFIGURE=0 | |
1230 | if test $DEBUG_CONFIGURE = 1; then | |
1231 | DEFAULT_wxUSE_THREADS=yes | |
1232 | ||
1233 | DEFAULT_wxUSE_SHARED=yes | |
00cf1208 | 1234 | DEFAULT_wxUSE_BURNT_NAME=no |
10f2d63a VZ |
1235 | DEFAULT_wxUSE_OPTIMISE=yes |
1236 | DEFAULT_wxUSE_PROFILE=no | |
1237 | DEFAULT_wxUSE_NO_DEPS=no | |
1238 | DEFAULT_wxUSE_NO_RTTI=no | |
1239 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1240 | DEFAULT_wxUSE_PERMISSIVE=no | |
1241 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1242 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1243 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1244 | DEFAULT_wxUSE_MEM_TRACING=no | |
1245 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1246 | DEFAULT_wxUSE_DMALLOC=no | |
1247 | DEFAULT_wxUSE_APPLE_IEEE=no | |
1248 | ||
1249 | DEFAULT_wxUSE_LOG=yes | |
1250 | ||
1251 | DEFAULT_wxUSE_GUI=yes | |
1252 | ||
1253 | DEFAULT_wxUSE_ZLIB=no | |
1254 | DEFAULT_wxUSE_LIBPNG=no | |
1255 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1256 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a VZ |
1257 | DEFAULT_wxUSE_ODBC=no |
1258 | ||
1259 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
1260 | DEFAULT_wxUSE_FILE=no | |
1261 | DEFAULT_wxUSE_TEXTFILE=no | |
1262 | DEFAULT_wxUSE_TIMEDATE=no | |
1263 | DEFAULT_wxUSE_WAVE=no | |
1264 | DEFAULT_wxUSE_INTL=no | |
1265 | DEFAULT_wxUSE_CONFIG=no | |
1266 | DEFAULT_wxUSE_STREAMS=no | |
1267 | DEFAULT_wxUSE_SOCKETS=no | |
1268 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
1269 | DEFAULT_wxUSE_SERIAL=no | |
1270 | DEFAULT_wxUSE_JOYSTICK=no | |
1271 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
1272 | DEFAULT_wxUSE_LONGLONG=no | |
1273 | ||
1274 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1275 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1276 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1277 | ||
1278 | DEFAULT_wxUSE_X_RESOURCES=no | |
1279 | DEFAULT_wxUSE_CLIPBOARD=no | |
1280 | DEFAULT_wxUSE_TOOLTIPS=no | |
1281 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
1282 | DEFAULT_wxUSE_SPLINES=no | |
1283 | ||
1284 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1285 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1286 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1287 | ||
1288 | DEFAULT_wxUSE_PROLOGIO=no | |
1289 | DEFAULT_wxUSE_RESOURCES=no | |
1290 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1291 | DEFAULT_wxUSE_IPC=no | |
1292 | DEFAULT_wxUSE_HELP=no | |
1293 | DEFAULT_wxUSE_WXTREE=no | |
1294 | DEFAULT_wxUSE_METAFILE=no | |
1295 | ||
1296 | DEFAULT_wxUSE_COMMONDLGS=no | |
1297 | DEFAULT_wxUSE_DIRDLG=no | |
1298 | DEFAULT_wxUSE_TEXTDLG=no | |
1299 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
1300 | DEFAULT_wxUSE_PROGRESSDLG=no | |
1301 | DEFAULT_wxUSE_MINIFRAME=no | |
1302 | DEFAULT_wxUSE_HTML=no | |
1303 | DEFAULT_wxUSE_FS_INET=no | |
1304 | DEFAULT_wxUSE_FS_ZIP=no | |
1305 | DEFAULT_wxUSE_BUSYINFO=no | |
1306 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1307 | DEFAULT_wxUSE_VALIDATORS=yes | |
1308 | ||
1309 | DEFAULT_wxUSE_ACCEL=no | |
1310 | DEFAULT_wxUSE_CARET=no | |
1311 | DEFAULT_wxUSE_BMPBUTTON=no | |
1312 | DEFAULT_wxUSE_CHECKBOX=no | |
1313 | DEFAULT_wxUSE_CHECKLST=no | |
1314 | DEFAULT_wxUSE_CHOICE=yes | |
1315 | DEFAULT_wxUSE_COMBOBOX=no | |
1316 | DEFAULT_wxUSE_GAUGE=no | |
1317 | DEFAULT_wxUSE_GRID=no | |
1318 | DEFAULT_wxUSE_NEW_GRID=no | |
1319 | DEFAULT_wxUSE_IMAGLIST=no | |
1320 | DEFAULT_wxUSE_LISTBOX=no | |
1321 | DEFAULT_wxUSE_LISTCTRL=no | |
1322 | DEFAULT_wxUSE_NOTEBOOK=no | |
9b33fe02 | 1323 | DEFAULT_wxUSE_PLOT=no |
10f2d63a VZ |
1324 | DEFAULT_wxUSE_RADIOBOX=no |
1325 | DEFAULT_wxUSE_RADIOBTN=no | |
1326 | DEFAULT_wxUSE_SASH=no | |
1327 | DEFAULT_wxUSE_SCROLLBAR=no | |
1328 | DEFAULT_wxUSE_SLIDER=no | |
1329 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1330 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1331 | DEFAULT_wxUSE_SPLITTER=no |
1332 | DEFAULT_wxUSE_STATBMP=no | |
1333 | DEFAULT_wxUSE_STATBOX=no | |
1334 | DEFAULT_wxUSE_STATLINE=no | |
1335 | DEFAULT_wxUSE_STATUSBAR=yes | |
1336 | DEFAULT_wxUSE_TABDIALOG=no | |
1337 | DEFAULT_wxUSE_TOOLBAR=no | |
360d6699 VZ |
1338 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1339 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
1340 | DEFAULT_wxUSE_TREECTRL=no |
1341 | ||
1342 | DEFAULT_wxUSE_UNICODE=no | |
1343 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1344 | ||
1345 | DEFAULT_wxUSE_GIF=no | |
1346 | DEFAULT_wxUSE_PCX=no | |
1347 | DEFAULT_wxUSE_PNM=no | |
1348 | else | |
1349 | DEFAULT_wxUSE_THREADS=yes | |
1350 | ||
1351 | DEFAULT_wxUSE_SHARED=yes | |
00cf1208 | 1352 | DEFAULT_wxUSE_BURNT_NAME=no |
10f2d63a VZ |
1353 | DEFAULT_wxUSE_OPTIMISE=yes |
1354 | DEFAULT_wxUSE_PROFILE=no | |
1355 | DEFAULT_wxUSE_NO_DEPS=no | |
1356 | DEFAULT_wxUSE_NO_RTTI=no | |
1357 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1358 | DEFAULT_wxUSE_PERMISSIVE=no | |
1359 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1360 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1361 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1362 | DEFAULT_wxUSE_MEM_TRACING=no | |
1363 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1364 | DEFAULT_wxUSE_DMALLOC=no | |
1365 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
1366 | ||
1367 | DEFAULT_wxUSE_LOG=yes | |
1368 | ||
1369 | DEFAULT_wxUSE_GUI=yes | |
1370 | ||
1371 | DEFAULT_wxUSE_ZLIB=yes | |
1372 | DEFAULT_wxUSE_LIBPNG=yes | |
1373 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1374 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1375 | DEFAULT_wxUSE_ODBC=no |
10f2d63a VZ |
1376 | |
1377 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
1378 | DEFAULT_wxUSE_FILE=yes | |
1379 | DEFAULT_wxUSE_TEXTFILE=yes | |
1380 | DEFAULT_wxUSE_TIMEDATE=yes | |
1381 | DEFAULT_wxUSE_WAVE=no | |
1382 | DEFAULT_wxUSE_INTL=yes | |
1383 | DEFAULT_wxUSE_CONFIG=yes | |
1384 | DEFAULT_wxUSE_STREAMS=yes | |
1385 | DEFAULT_wxUSE_SOCKETS=yes | |
1386 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
1387 | DEFAULT_wxUSE_SERIAL=yes | |
1388 | DEFAULT_wxUSE_JOYSTICK=yes | |
1389 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
b685cd9b | 1390 | DEFAULT_wxUSE_LONGLONG=yes |
10f2d63a VZ |
1391 | |
1392 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1393 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1394 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1395 | ||
1396 | DEFAULT_wxUSE_X_RESOURCES=no | |
1397 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1398 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1399 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
1400 | DEFAULT_wxUSE_SPLINES=yes | |
1401 | ||
1402 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1403 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1404 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1405 | ||
1406 | DEFAULT_wxUSE_PROLOGIO=yes | |
1407 | DEFAULT_wxUSE_RESOURCES=yes | |
1408 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1409 | DEFAULT_wxUSE_IPC=yes | |
1410 | DEFAULT_wxUSE_HELP=yes | |
1411 | DEFAULT_wxUSE_WXTREE=yes | |
1412 | DEFAULT_wxUSE_METAFILE=yes | |
1413 | ||
1414 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1415 | DEFAULT_wxUSE_DIRDLG=yes | |
1416 | DEFAULT_wxUSE_TEXTDLG=yes | |
1417 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
1418 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
1419 | DEFAULT_wxUSE_MINIFRAME=yes | |
1420 | DEFAULT_wxUSE_HTML=yes | |
1421 | DEFAULT_wxUSE_FS_INET=yes | |
1422 | DEFAULT_wxUSE_FS_ZIP=yes | |
1423 | DEFAULT_wxUSE_BUSYINFO=yes | |
1424 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1425 | DEFAULT_wxUSE_VALIDATORS=yes | |
1426 | ||
1427 | DEFAULT_wxUSE_ACCEL=yes | |
1428 | DEFAULT_wxUSE_CARET=yes | |
1429 | DEFAULT_wxUSE_BMPBUTTON=yes | |
1430 | DEFAULT_wxUSE_CHECKBOX=yes | |
1431 | DEFAULT_wxUSE_CHECKLST=yes | |
1432 | DEFAULT_wxUSE_CHOICE=yes | |
1433 | DEFAULT_wxUSE_COMBOBOX=yes | |
1434 | DEFAULT_wxUSE_GAUGE=yes | |
1435 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1436 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1437 | DEFAULT_wxUSE_IMAGLIST=yes |
1438 | DEFAULT_wxUSE_LISTBOX=yes | |
1439 | DEFAULT_wxUSE_LISTCTRL=yes | |
1440 | DEFAULT_wxUSE_NOTEBOOK=yes | |
9b33fe02 | 1441 | DEFAULT_wxUSE_PLOT=yes |
10f2d63a VZ |
1442 | DEFAULT_wxUSE_RADIOBOX=yes |
1443 | DEFAULT_wxUSE_RADIOBTN=yes | |
1444 | DEFAULT_wxUSE_SASH=yes | |
1445 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1446 | DEFAULT_wxUSE_SLIDER=yes | |
1447 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1448 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1449 | DEFAULT_wxUSE_SPLITTER=yes |
1450 | DEFAULT_wxUSE_STATBMP=yes | |
1451 | DEFAULT_wxUSE_STATBOX=yes | |
1452 | DEFAULT_wxUSE_STATLINE=yes | |
1453 | DEFAULT_wxUSE_STATUSBAR=yes | |
1454 | DEFAULT_wxUSE_TABDIALOG=no | |
1455 | DEFAULT_wxUSE_TOOLBAR=yes | |
360d6699 VZ |
1456 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1457 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
1458 | DEFAULT_wxUSE_TREECTRL=yes |
1459 | ||
1460 | DEFAULT_wxUSE_UNICODE=no | |
1461 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1462 | ||
1463 | DEFAULT_wxUSE_GIF=yes | |
1464 | DEFAULT_wxUSE_PCX=yes | |
1465 | DEFAULT_wxUSE_PNM=yes | |
1466 | fi | |
1467 | ||
1468 | ||
1469 | ||
1470 | for toolkit in `echo $ALL_TOOLKITS`; do | |
1471 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1472 | if test "x$LINE" != x ; then | |
1473 | has_toolkit_in_cache=1 | |
1474 | eval "DEFAULT_$LINE" | |
1475 | eval "CACHE_$toolkit=1" | |
1476 | fi | |
1477 | done | |
1478 | ||
1479 | ||
1480 | ||
1481 | echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6 | |
d6a55c4b | 1482 | echo "configure:1483: checking "for --enable-gui"" >&5 |
10f2d63a VZ |
1483 | no_cache=0 |
1484 | # Check whether --enable-gui or --disable-gui was given. | |
1485 | if test "${enable_gui+set}" = set; then | |
1486 | enableval="$enable_gui" | |
1487 | ||
1488 | if test "$enableval" = yes; then | |
1489 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1490 | else | |
1491 | ac_cv_use_gui='wxUSE_GUI=no' | |
1492 | fi | |
1493 | ||
1494 | else | |
1495 | ||
1496 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
1497 | if test "x$LINE" != x ; then | |
1498 | eval "DEFAULT_$LINE" | |
1499 | else | |
1500 | no_cache=1 | |
1501 | fi | |
1502 | ||
1503 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
1504 | ||
1505 | fi | |
1506 | ||
1507 | ||
1508 | eval "$ac_cv_use_gui" | |
1509 | if test "$no_cache" != 1; then | |
1510 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1511 | fi | |
1512 | ||
1513 | if test "$wxUSE_GUI" = yes; then | |
1514 | echo "$ac_t""yes" 1>&6 | |
1515 | else | |
1516 | echo "$ac_t""no" 1>&6 | |
1517 | fi | |
1518 | ||
1519 | ||
b12915c1 | 1520 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a VZ |
1521 | |
1522 | # Check whether --with-gtk or --without-gtk was given. | |
1523 | if test "${with_gtk+set}" = set; then | |
1524 | withval="$with_gtk" | |
1525 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
1526 | fi | |
1527 | ||
1528 | # Check whether --with-motif or --without-motif was given. | |
1529 | if test "${with_motif+set}" = set; then | |
1530 | withval="$with_motif" | |
1531 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
1532 | fi | |
1533 | ||
1534 | # Check whether --with-wine or --without-wine was given. | |
1535 | if test "${with_wine+set}" = set; then | |
1536 | withval="$with_wine" | |
1537 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
1538 | fi | |
1539 | ||
1540 | # Check whether --with-cygwin or --without-cygwin was given. | |
1541 | if test "${with_cygwin+set}" = set; then | |
1542 | withval="$with_cygwin" | |
1543 | wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1 | |
1544 | fi | |
1545 | ||
1546 | # Check whether --with-mingw or --without-mingw was given. | |
1547 | if test "${with_mingw+set}" = set; then | |
1548 | withval="$with_mingw" | |
1549 | wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1 | |
1550 | fi | |
1551 | ||
e07802fc VZ |
1552 | # Check whether --with-pm or --without-pm was given. |
1553 | if test "${with_pm+set}" = set; then | |
1554 | withval="$with_pm" | |
1555 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
1556 | fi | |
1557 | ||
10f2d63a VZ |
1558 | |
1559 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
1560 | if test "${with_gtk_prefix+set}" = set; then | |
1561 | withval="$with_gtk_prefix" | |
1562 | gtk_config_prefix="$withval" | |
1563 | else | |
1564 | gtk_config_prefix="" | |
1565 | fi | |
1566 | ||
1567 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
1568 | if test "${with_gtk_exec_prefix+set}" = set; then | |
1569 | withval="$with_gtk_exec_prefix" | |
1570 | gtk_config_exec_prefix="$withval" | |
1571 | else | |
1572 | gtk_config_exec_prefix="" | |
1573 | fi | |
1574 | ||
1575 | ||
1576 | ||
b12915c1 | 1577 | echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6 |
d6a55c4b | 1578 | echo "configure:1579: checking "for --with-libpng"" >&5 |
10f2d63a | 1579 | no_cache=0 |
b12915c1 VZ |
1580 | # Check whether --with-libpng or --without-libpng was given. |
1581 | if test "${with_libpng+set}" = set; then | |
1582 | withval="$with_libpng" | |
10f2d63a VZ |
1583 | |
1584 | if test "$withval" = yes; then | |
b12915c1 | 1585 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
10f2d63a | 1586 | else |
b12915c1 | 1587 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
10f2d63a VZ |
1588 | fi |
1589 | ||
1590 | else | |
1591 | ||
b12915c1 | 1592 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1593 | if test "x$LINE" != x ; then |
1594 | eval "DEFAULT_$LINE" | |
1595 | else | |
1596 | no_cache=1 | |
1597 | fi | |
1598 | ||
b12915c1 | 1599 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
10f2d63a VZ |
1600 | |
1601 | fi | |
1602 | ||
1603 | ||
b12915c1 | 1604 | eval "$ac_cv_use_libpng" |
10f2d63a | 1605 | if test "$no_cache" != 1; then |
b12915c1 | 1606 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1607 | fi |
1608 | ||
b12915c1 | 1609 | if test "$wxUSE_LIBPNG" = yes; then |
10f2d63a VZ |
1610 | echo "$ac_t""yes" 1>&6 |
1611 | else | |
1612 | echo "$ac_t""no" 1>&6 | |
1613 | fi | |
1614 | ||
1615 | ||
b12915c1 | 1616 | echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6 |
d6a55c4b | 1617 | echo "configure:1618: checking "for --with-libjpeg"" >&5 |
10f2d63a | 1618 | no_cache=0 |
b12915c1 VZ |
1619 | # Check whether --with-libjpeg or --without-libjpeg was given. |
1620 | if test "${with_libjpeg+set}" = set; then | |
1621 | withval="$with_libjpeg" | |
10f2d63a VZ |
1622 | |
1623 | if test "$withval" = yes; then | |
b12915c1 | 1624 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
10f2d63a | 1625 | else |
b12915c1 | 1626 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
10f2d63a VZ |
1627 | fi |
1628 | ||
1629 | else | |
1630 | ||
b12915c1 | 1631 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1632 | if test "x$LINE" != x ; then |
1633 | eval "DEFAULT_$LINE" | |
1634 | else | |
1635 | no_cache=1 | |
1636 | fi | |
1637 | ||
b12915c1 | 1638 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
10f2d63a VZ |
1639 | |
1640 | fi | |
1641 | ||
1642 | ||
b12915c1 | 1643 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 1644 | if test "$no_cache" != 1; then |
b12915c1 | 1645 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1646 | fi |
1647 | ||
b12915c1 | 1648 | if test "$wxUSE_LIBJPEG" = yes; then |
10f2d63a VZ |
1649 | echo "$ac_t""yes" 1>&6 |
1650 | else | |
1651 | echo "$ac_t""no" 1>&6 | |
1652 | fi | |
1653 | ||
1654 | ||
b12915c1 | 1655 | echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6 |
d6a55c4b | 1656 | echo "configure:1657: checking "for --with-libtiff"" >&5 |
10f2d63a | 1657 | no_cache=0 |
b12915c1 VZ |
1658 | # Check whether --with-libtiff or --without-libtiff was given. |
1659 | if test "${with_libtiff+set}" = set; then | |
1660 | withval="$with_libtiff" | |
10f2d63a VZ |
1661 | |
1662 | if test "$withval" = yes; then | |
b12915c1 | 1663 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
10f2d63a | 1664 | else |
b12915c1 | 1665 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
10f2d63a VZ |
1666 | fi |
1667 | ||
1668 | else | |
1669 | ||
b12915c1 | 1670 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
1671 | if test "x$LINE" != x ; then |
1672 | eval "DEFAULT_$LINE" | |
1673 | else | |
1674 | no_cache=1 | |
1675 | fi | |
1676 | ||
b12915c1 | 1677 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
10f2d63a VZ |
1678 | |
1679 | fi | |
1680 | ||
1681 | ||
b12915c1 | 1682 | eval "$ac_cv_use_libtiff" |
10f2d63a | 1683 | if test "$no_cache" != 1; then |
b12915c1 | 1684 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1685 | fi |
1686 | ||
b12915c1 | 1687 | if test "$wxUSE_LIBTIFF" = yes; then |
10f2d63a VZ |
1688 | echo "$ac_t""yes" 1>&6 |
1689 | else | |
1690 | echo "$ac_t""no" 1>&6 | |
1691 | fi | |
1692 | ||
1693 | ||
b12915c1 | 1694 | echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6 |
d6a55c4b | 1695 | echo "configure:1696: checking "for --with-opengl"" >&5 |
10f2d63a | 1696 | no_cache=0 |
b12915c1 VZ |
1697 | # Check whether --with-opengl or --without-opengl was given. |
1698 | if test "${with_opengl+set}" = set; then | |
1699 | withval="$with_opengl" | |
10f2d63a VZ |
1700 | |
1701 | if test "$withval" = yes; then | |
b12915c1 | 1702 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 1703 | else |
b12915c1 | 1704 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a VZ |
1705 | fi |
1706 | ||
1707 | else | |
1708 | ||
b12915c1 | 1709 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
1710 | if test "x$LINE" != x ; then |
1711 | eval "DEFAULT_$LINE" | |
1712 | else | |
1713 | no_cache=1 | |
1714 | fi | |
1715 | ||
b12915c1 | 1716 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
10f2d63a VZ |
1717 | |
1718 | fi | |
1719 | ||
1720 | ||
b12915c1 | 1721 | eval "$ac_cv_use_opengl" |
10f2d63a | 1722 | if test "$no_cache" != 1; then |
b12915c1 | 1723 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1724 | fi |
1725 | ||
b12915c1 | 1726 | if test "$wxUSE_OPENGL" = yes; then |
10f2d63a VZ |
1727 | echo "$ac_t""yes" 1>&6 |
1728 | else | |
1729 | echo "$ac_t""no" 1>&6 | |
1730 | fi | |
1731 | ||
1732 | ||
b12915c1 VZ |
1733 | fi |
1734 | ||
1735 | ||
1736 | echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6 | |
d6a55c4b | 1737 | echo "configure:1738: checking "for --with-dmalloc"" >&5 |
c7a2bf27 | 1738 | no_cache=0 |
b12915c1 VZ |
1739 | # Check whether --with-dmalloc or --without-dmalloc was given. |
1740 | if test "${with_dmalloc+set}" = set; then | |
1741 | withval="$with_dmalloc" | |
c7a2bf27 RR |
1742 | |
1743 | if test "$withval" = yes; then | |
b12915c1 | 1744 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 1745 | else |
b12915c1 | 1746 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 RR |
1747 | fi |
1748 | ||
1749 | else | |
1750 | ||
b12915c1 | 1751 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
1752 | if test "x$LINE" != x ; then |
1753 | eval "DEFAULT_$LINE" | |
1754 | else | |
1755 | no_cache=1 | |
1756 | fi | |
1757 | ||
b12915c1 | 1758 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
c7a2bf27 RR |
1759 | |
1760 | fi | |
1761 | ||
1762 | ||
b12915c1 | 1763 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 1764 | if test "$no_cache" != 1; then |
b12915c1 | 1765 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
1766 | fi |
1767 | ||
b12915c1 | 1768 | if test "$wxUSE_DMALLOC" = yes; then |
c7a2bf27 RR |
1769 | echo "$ac_t""yes" 1>&6 |
1770 | else | |
1771 | echo "$ac_t""no" 1>&6 | |
1772 | fi | |
1773 | ||
1774 | ||
b12915c1 | 1775 | echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6 |
d6a55c4b | 1776 | echo "configure:1777: checking "for --with-zlib"" >&5 |
10f2d63a | 1777 | no_cache=0 |
b12915c1 VZ |
1778 | # Check whether --with-zlib or --without-zlib was given. |
1779 | if test "${with_zlib+set}" = set; then | |
1780 | withval="$with_zlib" | |
10f2d63a VZ |
1781 | |
1782 | if test "$withval" = yes; then | |
b12915c1 | 1783 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
10f2d63a | 1784 | else |
b12915c1 | 1785 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
10f2d63a VZ |
1786 | fi |
1787 | ||
1788 | else | |
1789 | ||
b12915c1 | 1790 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
1791 | if test "x$LINE" != x ; then |
1792 | eval "DEFAULT_$LINE" | |
1793 | else | |
1794 | no_cache=1 | |
1795 | fi | |
1796 | ||
b12915c1 | 1797 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
10f2d63a VZ |
1798 | |
1799 | fi | |
1800 | ||
1801 | ||
b12915c1 | 1802 | eval "$ac_cv_use_zlib" |
10f2d63a | 1803 | if test "$no_cache" != 1; then |
b12915c1 | 1804 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1805 | fi |
1806 | ||
b12915c1 | 1807 | if test "$wxUSE_ZLIB" = yes; then |
10f2d63a VZ |
1808 | echo "$ac_t""yes" 1>&6 |
1809 | else | |
1810 | echo "$ac_t""no" 1>&6 | |
1811 | fi | |
1812 | ||
1813 | ||
1814 | echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6 | |
d6a55c4b | 1815 | echo "configure:1816: checking "for --with-odbc"" >&5 |
10f2d63a VZ |
1816 | no_cache=0 |
1817 | # Check whether --with-odbc or --without-odbc was given. | |
1818 | if test "${with_odbc+set}" = set; then | |
1819 | withval="$with_odbc" | |
1820 | ||
1821 | if test "$withval" = yes; then | |
1822 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
1823 | else | |
1824 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
1825 | fi | |
1826 | ||
1827 | else | |
1828 | ||
1829 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
1830 | if test "x$LINE" != x ; then | |
1831 | eval "DEFAULT_$LINE" | |
1832 | else | |
1833 | no_cache=1 | |
1834 | fi | |
1835 | ||
1836 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
1837 | ||
1838 | fi | |
1839 | ||
1840 | ||
1841 | eval "$ac_cv_use_odbc" | |
1842 | if test "$no_cache" != 1; then | |
1843 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
1844 | fi | |
1845 | ||
1846 | if test "$wxUSE_ODBC" = yes; then | |
1847 | echo "$ac_t""yes" 1>&6 | |
1848 | else | |
1849 | echo "$ac_t""no" 1>&6 | |
1850 | fi | |
1851 | ||
1852 | ||
1853 | ||
1854 | ||
1855 | ||
1856 | echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6 | |
d6a55c4b | 1857 | echo "configure:1858: checking "for --enable-shared"" >&5 |
10f2d63a VZ |
1858 | no_cache=0 |
1859 | # Check whether --enable-shared or --disable-shared was given. | |
1860 | if test "${enable_shared+set}" = set; then | |
1861 | enableval="$enable_shared" | |
1862 | ||
1863 | if test "$enableval" = yes; then | |
1864 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
1865 | else | |
1866 | ac_cv_use_shared='wxUSE_SHARED=no' | |
1867 | fi | |
1868 | ||
1869 | else | |
1870 | ||
1871 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
1872 | if test "x$LINE" != x ; then | |
1873 | eval "DEFAULT_$LINE" | |
1874 | else | |
1875 | no_cache=1 | |
1876 | fi | |
1877 | ||
1878 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
1879 | ||
1880 | fi | |
1881 | ||
1882 | ||
1883 | eval "$ac_cv_use_shared" | |
1884 | if test "$no_cache" != 1; then | |
1885 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
1886 | fi | |
1887 | ||
1888 | if test "$wxUSE_SHARED" = yes; then | |
1889 | echo "$ac_t""yes" 1>&6 | |
1890 | else | |
1891 | echo "$ac_t""no" 1>&6 | |
1892 | fi | |
1893 | ||
1894 | ||
00cf1208 | 1895 | echo $ac_n "checking "for --enable-burnt_name"""... $ac_c" 1>&6 |
d6a55c4b | 1896 | echo "configure:1897: checking "for --enable-burnt_name"" >&5 |
00cf1208 RR |
1897 | no_cache=0 |
1898 | # Check whether --enable-burnt_name or --disable-burnt_name was given. | |
1899 | if test "${enable_burnt_name+set}" = set; then | |
1900 | enableval="$enable_burnt_name" | |
1901 | ||
1902 | if test "$enableval" = yes; then | |
1903 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes' | |
1904 | else | |
1905 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no' | |
1906 | fi | |
1907 | ||
1908 | else | |
1909 | ||
1910 | LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}` | |
1911 | if test "x$LINE" != x ; then | |
1912 | eval "DEFAULT_$LINE" | |
1913 | else | |
1914 | no_cache=1 | |
1915 | fi | |
1916 | ||
1917 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME | |
1918 | ||
1919 | fi | |
1920 | ||
1921 | ||
1922 | eval "$ac_cv_use_burnt_name" | |
1923 | if test "$no_cache" != 1; then | |
1924 | echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp | |
1925 | fi | |
1926 | ||
1927 | if test "$wxUSE_BURNT_NAME" = yes; then | |
1928 | echo "$ac_t""yes" 1>&6 | |
1929 | else | |
1930 | echo "$ac_t""no" 1>&6 | |
1931 | fi | |
1932 | ||
1933 | ||
10f2d63a | 1934 | echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6 |
d6a55c4b | 1935 | echo "configure:1936: checking "for --enable-optimise"" >&5 |
10f2d63a VZ |
1936 | no_cache=0 |
1937 | # Check whether --enable-optimise or --disable-optimise was given. | |
1938 | if test "${enable_optimise+set}" = set; then | |
1939 | enableval="$enable_optimise" | |
1940 | ||
1941 | if test "$enableval" = yes; then | |
1942 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
1943 | else | |
1944 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
1945 | fi | |
1946 | ||
1947 | else | |
1948 | ||
1949 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
1950 | if test "x$LINE" != x ; then | |
1951 | eval "DEFAULT_$LINE" | |
1952 | else | |
1953 | no_cache=1 | |
1954 | fi | |
1955 | ||
1956 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
1957 | ||
1958 | fi | |
1959 | ||
1960 | ||
1961 | eval "$ac_cv_use_optimise" | |
1962 | if test "$no_cache" != 1; then | |
1963 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
1964 | fi | |
1965 | ||
1966 | if test "$wxUSE_OPTIMISE" = yes; then | |
1967 | echo "$ac_t""yes" 1>&6 | |
1968 | else | |
1969 | echo "$ac_t""no" 1>&6 | |
1970 | fi | |
1971 | ||
1972 | ||
1973 | echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6 | |
d6a55c4b | 1974 | echo "configure:1975: checking "for --enable-debug"" >&5 |
10f2d63a VZ |
1975 | no_cache=0 |
1976 | # Check whether --enable-debug or --disable-debug was given. | |
1977 | if test "${enable_debug+set}" = set; then | |
1978 | enableval="$enable_debug" | |
1979 | ||
1980 | if test "$enableval" = yes; then | |
1981 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
1982 | else | |
1983 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
1984 | fi | |
1985 | ||
1986 | else | |
1987 | ||
1988 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
1989 | if test "x$LINE" != x ; then | |
1990 | eval "DEFAULT_$LINE" | |
1991 | else | |
1992 | no_cache=1 | |
1993 | fi | |
1994 | ||
1995 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
1996 | ||
1997 | fi | |
1998 | ||
1999 | ||
2000 | eval "$ac_cv_use_debug" | |
2001 | if test "$no_cache" != 1; then | |
2002 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2003 | fi | |
2004 | ||
2005 | if test "$wxUSE_DEBUG" = yes; then | |
2006 | echo "$ac_t""yes" 1>&6 | |
2007 | else | |
2008 | echo "$ac_t""no" 1>&6 | |
2009 | fi | |
2010 | ||
2011 | ||
2012 | if test "$wxUSE_DEBUG" = "yes"; then | |
2013 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2014 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2015 | elif test "$wxUSE_DEBUG" = "no"; then | |
2016 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2017 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2018 | fi | |
2019 | ||
2020 | ||
2021 | echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6 | |
d6a55c4b | 2022 | echo "configure:2023: checking "for --enable-debug_flag"" >&5 |
10f2d63a VZ |
2023 | no_cache=0 |
2024 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2025 | if test "${enable_debug_flag+set}" = set; then | |
2026 | enableval="$enable_debug_flag" | |
2027 | ||
2028 | if test "$enableval" = yes; then | |
2029 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2030 | else | |
2031 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2032 | fi | |
2033 | ||
2034 | else | |
2035 | ||
2036 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
2037 | if test "x$LINE" != x ; then | |
2038 | eval "DEFAULT_$LINE" | |
2039 | else | |
2040 | no_cache=1 | |
2041 | fi | |
2042 | ||
2043 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
2044 | ||
2045 | fi | |
2046 | ||
2047 | ||
2048 | eval "$ac_cv_use_debug_flag" | |
2049 | if test "$no_cache" != 1; then | |
2050 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2051 | fi | |
2052 | ||
2053 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
2054 | echo "$ac_t""yes" 1>&6 | |
2055 | else | |
2056 | echo "$ac_t""no" 1>&6 | |
2057 | fi | |
2058 | ||
2059 | ||
2060 | echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6 | |
d6a55c4b | 2061 | echo "configure:2062: checking "for --enable-debug_info"" >&5 |
10f2d63a VZ |
2062 | no_cache=0 |
2063 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2064 | if test "${enable_debug_info+set}" = set; then | |
2065 | enableval="$enable_debug_info" | |
2066 | ||
2067 | if test "$enableval" = yes; then | |
2068 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2069 | else | |
2070 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2071 | fi | |
2072 | ||
2073 | else | |
2074 | ||
2075 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
2076 | if test "x$LINE" != x ; then | |
2077 | eval "DEFAULT_$LINE" | |
2078 | else | |
2079 | no_cache=1 | |
2080 | fi | |
2081 | ||
2082 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
2083 | ||
2084 | fi | |
2085 | ||
2086 | ||
2087 | eval "$ac_cv_use_debug_info" | |
2088 | if test "$no_cache" != 1; then | |
2089 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2090 | fi | |
2091 | ||
2092 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
2093 | echo "$ac_t""yes" 1>&6 | |
2094 | else | |
2095 | echo "$ac_t""no" 1>&6 | |
2096 | fi | |
2097 | ||
2098 | ||
2099 | echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6 | |
d6a55c4b | 2100 | echo "configure:2101: checking "for --enable-debug_gdb"" >&5 |
10f2d63a VZ |
2101 | no_cache=0 |
2102 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2103 | if test "${enable_debug_gdb+set}" = set; then | |
2104 | enableval="$enable_debug_gdb" | |
2105 | ||
2106 | if test "$enableval" = yes; then | |
2107 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2108 | else | |
2109 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2110 | fi | |
2111 | ||
2112 | else | |
2113 | ||
2114 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
2115 | if test "x$LINE" != x ; then | |
2116 | eval "DEFAULT_$LINE" | |
2117 | else | |
2118 | no_cache=1 | |
2119 | fi | |
2120 | ||
2121 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
2122 | ||
2123 | fi | |
2124 | ||
2125 | ||
2126 | eval "$ac_cv_use_debug_gdb" | |
2127 | if test "$no_cache" != 1; then | |
2128 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2129 | fi | |
2130 | ||
2131 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
2132 | echo "$ac_t""yes" 1>&6 | |
2133 | else | |
2134 | echo "$ac_t""no" 1>&6 | |
2135 | fi | |
2136 | ||
2137 | ||
2138 | echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6 | |
d6a55c4b | 2139 | echo "configure:2140: checking "for --enable-debug_cntxt"" >&5 |
10f2d63a VZ |
2140 | no_cache=0 |
2141 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2142 | if test "${enable_debug_cntxt+set}" = set; then | |
2143 | enableval="$enable_debug_cntxt" | |
2144 | ||
2145 | if test "$enableval" = yes; then | |
2146 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2147 | else | |
2148 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2149 | fi | |
2150 | ||
2151 | else | |
2152 | ||
2153 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
2154 | if test "x$LINE" != x ; then | |
2155 | eval "DEFAULT_$LINE" | |
2156 | else | |
2157 | no_cache=1 | |
2158 | fi | |
2159 | ||
2160 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
2161 | ||
2162 | fi | |
2163 | ||
2164 | ||
2165 | eval "$ac_cv_use_debug_cntxt" | |
2166 | if test "$no_cache" != 1; then | |
2167 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2168 | fi | |
2169 | ||
2170 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
2171 | echo "$ac_t""yes" 1>&6 | |
2172 | else | |
2173 | echo "$ac_t""no" 1>&6 | |
2174 | fi | |
2175 | ||
2176 | ||
2177 | echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6 | |
d6a55c4b | 2178 | echo "configure:2179: checking "for --enable-mem_tracing"" >&5 |
10f2d63a VZ |
2179 | no_cache=0 |
2180 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2181 | if test "${enable_mem_tracing+set}" = set; then | |
2182 | enableval="$enable_mem_tracing" | |
2183 | ||
2184 | if test "$enableval" = yes; then | |
2185 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2186 | else | |
2187 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2188 | fi | |
2189 | ||
2190 | else | |
2191 | ||
2192 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
2193 | if test "x$LINE" != x ; then | |
2194 | eval "DEFAULT_$LINE" | |
2195 | else | |
2196 | no_cache=1 | |
2197 | fi | |
2198 | ||
2199 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
2200 | ||
2201 | fi | |
2202 | ||
2203 | ||
2204 | eval "$ac_cv_use_mem_tracing" | |
2205 | if test "$no_cache" != 1; then | |
2206 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2207 | fi | |
2208 | ||
2209 | if test "$wxUSE_MEM_TRACING" = yes; then | |
2210 | echo "$ac_t""yes" 1>&6 | |
2211 | else | |
2212 | echo "$ac_t""no" 1>&6 | |
2213 | fi | |
2214 | ||
2215 | ||
2216 | echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6 | |
d6a55c4b | 2217 | echo "configure:2218: checking "for --enable-profile"" >&5 |
10f2d63a VZ |
2218 | no_cache=0 |
2219 | # Check whether --enable-profile or --disable-profile was given. | |
2220 | if test "${enable_profile+set}" = set; then | |
2221 | enableval="$enable_profile" | |
2222 | ||
2223 | if test "$enableval" = yes; then | |
2224 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2225 | else | |
2226 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2227 | fi | |
2228 | ||
2229 | else | |
2230 | ||
2231 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
2232 | if test "x$LINE" != x ; then | |
2233 | eval "DEFAULT_$LINE" | |
2234 | else | |
2235 | no_cache=1 | |
2236 | fi | |
2237 | ||
2238 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
2239 | ||
2240 | fi | |
2241 | ||
2242 | ||
2243 | eval "$ac_cv_use_profile" | |
2244 | if test "$no_cache" != 1; then | |
2245 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2246 | fi | |
2247 | ||
2248 | if test "$wxUSE_PROFILE" = yes; then | |
2249 | echo "$ac_t""yes" 1>&6 | |
2250 | else | |
2251 | echo "$ac_t""no" 1>&6 | |
2252 | fi | |
2253 | ||
2254 | ||
2255 | echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6 | |
d6a55c4b | 2256 | echo "configure:2257: checking "for --enable-no_rtti"" >&5 |
10f2d63a VZ |
2257 | no_cache=0 |
2258 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2259 | if test "${enable_no_rtti+set}" = set; then | |
2260 | enableval="$enable_no_rtti" | |
2261 | ||
2262 | if test "$enableval" = yes; then | |
2263 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2264 | else | |
2265 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2266 | fi | |
2267 | ||
2268 | else | |
2269 | ||
2270 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
2271 | if test "x$LINE" != x ; then | |
2272 | eval "DEFAULT_$LINE" | |
2273 | else | |
2274 | no_cache=1 | |
2275 | fi | |
2276 | ||
2277 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
2278 | ||
2279 | fi | |
2280 | ||
2281 | ||
2282 | eval "$ac_cv_use_no_rtti" | |
2283 | if test "$no_cache" != 1; then | |
2284 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2285 | fi | |
2286 | ||
2287 | if test "$wxUSE_NO_RTTI" = yes; then | |
2288 | echo "$ac_t""yes" 1>&6 | |
2289 | else | |
2290 | echo "$ac_t""no" 1>&6 | |
2291 | fi | |
2292 | ||
2293 | ||
2294 | echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6 | |
d6a55c4b | 2295 | echo "configure:2296: checking "for --enable-no_exceptions"" >&5 |
10f2d63a VZ |
2296 | no_cache=0 |
2297 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2298 | if test "${enable_no_exceptions+set}" = set; then | |
2299 | enableval="$enable_no_exceptions" | |
2300 | ||
2301 | if test "$enableval" = yes; then | |
2302 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2303 | else | |
2304 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2305 | fi | |
2306 | ||
2307 | else | |
2308 | ||
2309 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
2310 | if test "x$LINE" != x ; then | |
2311 | eval "DEFAULT_$LINE" | |
2312 | else | |
2313 | no_cache=1 | |
2314 | fi | |
2315 | ||
2316 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
2317 | ||
2318 | fi | |
2319 | ||
2320 | ||
2321 | eval "$ac_cv_use_no_exceptions" | |
2322 | if test "$no_cache" != 1; then | |
2323 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2324 | fi | |
2325 | ||
2326 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
2327 | echo "$ac_t""yes" 1>&6 | |
2328 | else | |
2329 | echo "$ac_t""no" 1>&6 | |
2330 | fi | |
2331 | ||
2332 | ||
2333 | echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6 | |
d6a55c4b | 2334 | echo "configure:2335: checking "for --enable-permissive"" >&5 |
10f2d63a VZ |
2335 | no_cache=0 |
2336 | # Check whether --enable-permissive or --disable-permissive was given. | |
2337 | if test "${enable_permissive+set}" = set; then | |
2338 | enableval="$enable_permissive" | |
2339 | ||
2340 | if test "$enableval" = yes; then | |
2341 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2342 | else | |
2343 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2344 | fi | |
2345 | ||
2346 | else | |
2347 | ||
2348 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
2349 | if test "x$LINE" != x ; then | |
2350 | eval "DEFAULT_$LINE" | |
2351 | else | |
2352 | no_cache=1 | |
2353 | fi | |
2354 | ||
2355 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
2356 | ||
2357 | fi | |
2358 | ||
2359 | ||
2360 | eval "$ac_cv_use_permissive" | |
2361 | if test "$no_cache" != 1; then | |
2362 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2363 | fi | |
2364 | ||
2365 | if test "$wxUSE_PERMISSIVE" = yes; then | |
2366 | echo "$ac_t""yes" 1>&6 | |
2367 | else | |
2368 | echo "$ac_t""no" 1>&6 | |
2369 | fi | |
2370 | ||
2371 | ||
2372 | echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6 | |
d6a55c4b | 2373 | echo "configure:2374: checking "for --enable-no_deps"" >&5 |
10f2d63a VZ |
2374 | no_cache=0 |
2375 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2376 | if test "${enable_no_deps+set}" = set; then | |
2377 | enableval="$enable_no_deps" | |
2378 | ||
2379 | if test "$enableval" = yes; then | |
2380 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2381 | else | |
2382 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2383 | fi | |
2384 | ||
2385 | else | |
2386 | ||
2387 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
2388 | if test "x$LINE" != x ; then | |
2389 | eval "DEFAULT_$LINE" | |
2390 | else | |
2391 | no_cache=1 | |
2392 | fi | |
2393 | ||
2394 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
2395 | ||
2396 | fi | |
2397 | ||
2398 | ||
2399 | eval "$ac_cv_use_no_deps" | |
2400 | if test "$no_cache" != 1; then | |
2401 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2402 | fi | |
2403 | ||
2404 | if test "$wxUSE_NO_DEPS" = yes; then | |
2405 | echo "$ac_t""yes" 1>&6 | |
2406 | else | |
2407 | echo "$ac_t""no" 1>&6 | |
2408 | fi | |
2409 | ||
2410 | ||
2411 | ||
2412 | ||
2413 | echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6 | |
d6a55c4b | 2414 | echo "configure:2415: checking "for --enable-intl"" >&5 |
10f2d63a VZ |
2415 | no_cache=0 |
2416 | # Check whether --enable-intl or --disable-intl was given. | |
2417 | if test "${enable_intl+set}" = set; then | |
2418 | enableval="$enable_intl" | |
2419 | ||
2420 | if test "$enableval" = yes; then | |
2421 | ac_cv_use_intl='wxUSE_INTL=yes' | |
2422 | else | |
2423 | ac_cv_use_intl='wxUSE_INTL=no' | |
2424 | fi | |
2425 | ||
2426 | else | |
2427 | ||
2428 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
2429 | if test "x$LINE" != x ; then | |
2430 | eval "DEFAULT_$LINE" | |
2431 | else | |
2432 | no_cache=1 | |
2433 | fi | |
2434 | ||
2435 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
2436 | ||
2437 | fi | |
2438 | ||
2439 | ||
2440 | eval "$ac_cv_use_intl" | |
2441 | if test "$no_cache" != 1; then | |
2442 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
2443 | fi | |
2444 | ||
2445 | if test "$wxUSE_INTL" = yes; then | |
2446 | echo "$ac_t""yes" 1>&6 | |
2447 | else | |
2448 | echo "$ac_t""no" 1>&6 | |
2449 | fi | |
2450 | ||
2451 | ||
2452 | echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6 | |
d6a55c4b | 2453 | echo "configure:2454: checking "for --enable-config"" >&5 |
10f2d63a VZ |
2454 | no_cache=0 |
2455 | # Check whether --enable-config or --disable-config was given. | |
2456 | if test "${enable_config+set}" = set; then | |
2457 | enableval="$enable_config" | |
2458 | ||
2459 | if test "$enableval" = yes; then | |
2460 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
2461 | else | |
2462 | ac_cv_use_config='wxUSE_CONFIG=no' | |
2463 | fi | |
2464 | ||
2465 | else | |
2466 | ||
2467 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
2468 | if test "x$LINE" != x ; then | |
2469 | eval "DEFAULT_$LINE" | |
2470 | else | |
2471 | no_cache=1 | |
2472 | fi | |
2473 | ||
2474 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
2475 | ||
2476 | fi | |
2477 | ||
2478 | ||
2479 | eval "$ac_cv_use_config" | |
2480 | if test "$no_cache" != 1; then | |
2481 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
2482 | fi | |
2483 | ||
2484 | if test "$wxUSE_CONFIG" = yes; then | |
2485 | echo "$ac_t""yes" 1>&6 | |
2486 | else | |
2487 | echo "$ac_t""no" 1>&6 | |
2488 | fi | |
2489 | ||
2490 | ||
b12915c1 VZ |
2491 | if test "$wxUSE_GUI" = "yes"; then |
2492 | ||
10f2d63a | 2493 | echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6 |
d6a55c4b | 2494 | echo "configure:2495: checking "for --enable-sockets"" >&5 |
10f2d63a VZ |
2495 | no_cache=0 |
2496 | # Check whether --enable-sockets or --disable-sockets was given. | |
2497 | if test "${enable_sockets+set}" = set; then | |
2498 | enableval="$enable_sockets" | |
2499 | ||
2500 | if test "$enableval" = yes; then | |
2501 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
2502 | else | |
2503 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
2504 | fi | |
2505 | ||
2506 | else | |
2507 | ||
2508 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
2509 | if test "x$LINE" != x ; then | |
2510 | eval "DEFAULT_$LINE" | |
2511 | else | |
2512 | no_cache=1 | |
2513 | fi | |
2514 | ||
2515 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
2516 | ||
2517 | fi | |
2518 | ||
2519 | ||
2520 | eval "$ac_cv_use_sockets" | |
2521 | if test "$no_cache" != 1; then | |
2522 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
2523 | fi | |
2524 | ||
2525 | if test "$wxUSE_SOCKETS" = yes; then | |
2526 | echo "$ac_t""yes" 1>&6 | |
2527 | else | |
2528 | echo "$ac_t""no" 1>&6 | |
2529 | fi | |
2530 | ||
b12915c1 VZ |
2531 | else |
2532 | wxUSE_SOCKETS=no | |
2533 | fi | |
2534 | ||
10f2d63a VZ |
2535 | |
2536 | echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6 | |
d6a55c4b | 2537 | echo "configure:2538: checking "for --enable-dialupman"" >&5 |
10f2d63a VZ |
2538 | no_cache=0 |
2539 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
2540 | if test "${enable_dialupman+set}" = set; then | |
2541 | enableval="$enable_dialupman" | |
2542 | ||
2543 | if test "$enableval" = yes; then | |
2544 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
2545 | else | |
2546 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
2547 | fi | |
2548 | ||
2549 | else | |
2550 | ||
2551 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
2552 | if test "x$LINE" != x ; then | |
2553 | eval "DEFAULT_$LINE" | |
2554 | else | |
2555 | no_cache=1 | |
2556 | fi | |
2557 | ||
2558 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
2559 | ||
2560 | fi | |
2561 | ||
2562 | ||
2563 | eval "$ac_cv_use_dialupman" | |
2564 | if test "$no_cache" != 1; then | |
2565 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
2566 | fi | |
2567 | ||
2568 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
2569 | echo "$ac_t""yes" 1>&6 | |
2570 | else | |
2571 | echo "$ac_t""no" 1>&6 | |
2572 | fi | |
2573 | ||
2574 | ||
2575 | echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6 | |
d6a55c4b | 2576 | echo "configure:2577: checking "for --enable-ipc"" >&5 |
10f2d63a VZ |
2577 | no_cache=0 |
2578 | # Check whether --enable-ipc or --disable-ipc was given. | |
2579 | if test "${enable_ipc+set}" = set; then | |
2580 | enableval="$enable_ipc" | |
2581 | ||
2582 | if test "$enableval" = yes; then | |
2583 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
2584 | else | |
2585 | ac_cv_use_ipc='wxUSE_IPC=no' | |
2586 | fi | |
2587 | ||
2588 | else | |
2589 | ||
2590 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
2591 | if test "x$LINE" != x ; then | |
2592 | eval "DEFAULT_$LINE" | |
2593 | else | |
2594 | no_cache=1 | |
2595 | fi | |
2596 | ||
2597 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
2598 | ||
2599 | fi | |
2600 | ||
2601 | ||
2602 | eval "$ac_cv_use_ipc" | |
2603 | if test "$no_cache" != 1; then | |
2604 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
2605 | fi | |
2606 | ||
2607 | if test "$wxUSE_IPC" = yes; then | |
2608 | echo "$ac_t""yes" 1>&6 | |
2609 | else | |
2610 | echo "$ac_t""no" 1>&6 | |
2611 | fi | |
2612 | ||
2613 | ||
2614 | echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6 | |
d6a55c4b | 2615 | echo "configure:2616: checking "for --enable-apple_ieee"" >&5 |
10f2d63a VZ |
2616 | no_cache=0 |
2617 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
2618 | if test "${enable_apple_ieee+set}" = set; then | |
2619 | enableval="$enable_apple_ieee" | |
2620 | ||
2621 | if test "$enableval" = yes; then | |
2622 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
2623 | else | |
2624 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
2625 | fi | |
2626 | ||
2627 | else | |
2628 | ||
2629 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
2630 | if test "x$LINE" != x ; then | |
2631 | eval "DEFAULT_$LINE" | |
2632 | else | |
2633 | no_cache=1 | |
2634 | fi | |
2635 | ||
2636 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
2637 | ||
2638 | fi | |
2639 | ||
2640 | ||
2641 | eval "$ac_cv_use_apple_ieee" | |
2642 | if test "$no_cache" != 1; then | |
2643 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
2644 | fi | |
2645 | ||
2646 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
2647 | echo "$ac_t""yes" 1>&6 | |
2648 | else | |
2649 | echo "$ac_t""no" 1>&6 | |
2650 | fi | |
2651 | ||
2652 | ||
2653 | echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6 | |
d6a55c4b | 2654 | echo "configure:2655: checking "for --enable-timedate"" >&5 |
10f2d63a VZ |
2655 | no_cache=0 |
2656 | # Check whether --enable-timedate or --disable-timedate was given. | |
2657 | if test "${enable_timedate+set}" = set; then | |
2658 | enableval="$enable_timedate" | |
2659 | ||
2660 | if test "$enableval" = yes; then | |
2661 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
2662 | else | |
2663 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
2664 | fi | |
2665 | ||
2666 | else | |
2667 | ||
2668 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
2669 | if test "x$LINE" != x ; then | |
2670 | eval "DEFAULT_$LINE" | |
2671 | else | |
2672 | no_cache=1 | |
2673 | fi | |
2674 | ||
2675 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
2676 | ||
2677 | fi | |
2678 | ||
2679 | ||
2680 | eval "$ac_cv_use_timedate" | |
2681 | if test "$no_cache" != 1; then | |
2682 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
2683 | fi | |
2684 | ||
2685 | if test "$wxUSE_TIMEDATE" = yes; then | |
2686 | echo "$ac_t""yes" 1>&6 | |
2687 | else | |
2688 | echo "$ac_t""no" 1>&6 | |
2689 | fi | |
2690 | ||
2691 | ||
2692 | echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6 | |
d6a55c4b | 2693 | echo "configure:2694: checking "for --enable-wave"" >&5 |
10f2d63a VZ |
2694 | no_cache=0 |
2695 | # Check whether --enable-wave or --disable-wave was given. | |
2696 | if test "${enable_wave+set}" = set; then | |
2697 | enableval="$enable_wave" | |
2698 | ||
2699 | if test "$enableval" = yes; then | |
2700 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
2701 | else | |
2702 | ac_cv_use_wave='wxUSE_WAVE=no' | |
2703 | fi | |
2704 | ||
2705 | else | |
2706 | ||
2707 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` | |
2708 | if test "x$LINE" != x ; then | |
2709 | eval "DEFAULT_$LINE" | |
2710 | else | |
2711 | no_cache=1 | |
2712 | fi | |
2713 | ||
2714 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
2715 | ||
2716 | fi | |
2717 | ||
2718 | ||
2719 | eval "$ac_cv_use_wave" | |
2720 | if test "$no_cache" != 1; then | |
2721 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
2722 | fi | |
2723 | ||
2724 | if test "$wxUSE_WAVE" = yes; then | |
2725 | echo "$ac_t""yes" 1>&6 | |
2726 | else | |
2727 | echo "$ac_t""no" 1>&6 | |
2728 | fi | |
2729 | ||
2730 | ||
2731 | echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6 | |
d6a55c4b | 2732 | echo "configure:2733: checking "for --enable-fraction"" >&5 |
10f2d63a VZ |
2733 | no_cache=0 |
2734 | # Check whether --enable-fraction or --disable-fraction was given. | |
2735 | if test "${enable_fraction+set}" = set; then | |
2736 | enableval="$enable_fraction" | |
2737 | ||
2738 | if test "$enableval" = yes; then | |
2739 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
2740 | else | |
2741 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
2742 | fi | |
2743 | ||
2744 | else | |
2745 | ||
2746 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` | |
2747 | if test "x$LINE" != x ; then | |
2748 | eval "DEFAULT_$LINE" | |
2749 | else | |
2750 | no_cache=1 | |
2751 | fi | |
2752 | ||
2753 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
2754 | ||
2755 | fi | |
2756 | ||
2757 | ||
2758 | eval "$ac_cv_use_fraction" | |
2759 | if test "$no_cache" != 1; then | |
2760 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
2761 | fi | |
2762 | ||
2763 | if test "$wxUSE_FRACTION" = yes; then | |
2764 | echo "$ac_t""yes" 1>&6 | |
2765 | else | |
2766 | echo "$ac_t""no" 1>&6 | |
2767 | fi | |
2768 | ||
2769 | ||
2770 | echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6 | |
d6a55c4b | 2771 | echo "configure:2772: checking "for --enable-dynlib"" >&5 |
10f2d63a VZ |
2772 | no_cache=0 |
2773 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
2774 | if test "${enable_dynlib+set}" = set; then | |
2775 | enableval="$enable_dynlib" | |
2776 | ||
2777 | if test "$enableval" = yes; then | |
2778 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
2779 | else | |
2780 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
2781 | fi | |
2782 | ||
2783 | else | |
2784 | ||
2785 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
2786 | if test "x$LINE" != x ; then | |
2787 | eval "DEFAULT_$LINE" | |
2788 | else | |
2789 | no_cache=1 | |
2790 | fi | |
2791 | ||
2792 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
2793 | ||
2794 | fi | |
2795 | ||
2796 | ||
2797 | eval "$ac_cv_use_dynlib" | |
2798 | if test "$no_cache" != 1; then | |
2799 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
2800 | fi | |
2801 | ||
2802 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
2803 | echo "$ac_t""yes" 1>&6 | |
2804 | else | |
2805 | echo "$ac_t""no" 1>&6 | |
2806 | fi | |
2807 | ||
2808 | ||
2809 | echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6 | |
d6a55c4b | 2810 | echo "configure:2811: checking "for --enable-longlong"" >&5 |
10f2d63a VZ |
2811 | no_cache=0 |
2812 | # Check whether --enable-longlong or --disable-longlong was given. | |
2813 | if test "${enable_longlong+set}" = set; then | |
2814 | enableval="$enable_longlong" | |
2815 | ||
2816 | if test "$enableval" = yes; then | |
2817 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
2818 | else | |
2819 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
2820 | fi | |
2821 | ||
2822 | else | |
2823 | ||
2824 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
2825 | if test "x$LINE" != x ; then | |
2826 | eval "DEFAULT_$LINE" | |
2827 | else | |
2828 | no_cache=1 | |
2829 | fi | |
2830 | ||
2831 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
2832 | ||
2833 | fi | |
2834 | ||
2835 | ||
2836 | eval "$ac_cv_use_longlong" | |
2837 | if test "$no_cache" != 1; then | |
2838 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
2839 | fi | |
2840 | ||
2841 | if test "$wxUSE_LONGLONG" = yes; then | |
2842 | echo "$ac_t""yes" 1>&6 | |
2843 | else | |
2844 | echo "$ac_t""no" 1>&6 | |
2845 | fi | |
2846 | ||
2847 | ||
2848 | echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6 | |
d6a55c4b | 2849 | echo "configure:2850: checking "for --enable-log"" >&5 |
10f2d63a VZ |
2850 | no_cache=0 |
2851 | # Check whether --enable-log or --disable-log was given. | |
2852 | if test "${enable_log+set}" = set; then | |
2853 | enableval="$enable_log" | |
2854 | ||
2855 | if test "$enableval" = yes; then | |
2856 | ac_cv_use_log='wxUSE_LOG=yes' | |
2857 | else | |
2858 | ac_cv_use_log='wxUSE_LOG=no' | |
2859 | fi | |
2860 | ||
2861 | else | |
2862 | ||
2863 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
2864 | if test "x$LINE" != x ; then | |
2865 | eval "DEFAULT_$LINE" | |
2866 | else | |
2867 | no_cache=1 | |
2868 | fi | |
2869 | ||
2870 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
2871 | ||
2872 | fi | |
2873 | ||
2874 | ||
2875 | eval "$ac_cv_use_log" | |
2876 | if test "$no_cache" != 1; then | |
2877 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
2878 | fi | |
2879 | ||
2880 | if test "$wxUSE_LOG" = yes; then | |
2881 | echo "$ac_t""yes" 1>&6 | |
2882 | else | |
2883 | echo "$ac_t""no" 1>&6 | |
2884 | fi | |
2885 | ||
2886 | ||
2887 | echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6 | |
d6a55c4b | 2888 | echo "configure:2889: checking "for --enable-streams"" >&5 |
10f2d63a VZ |
2889 | no_cache=0 |
2890 | # Check whether --enable-streams or --disable-streams was given. | |
2891 | if test "${enable_streams+set}" = set; then | |
2892 | enableval="$enable_streams" | |
2893 | ||
2894 | if test "$enableval" = yes; then | |
2895 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
2896 | else | |
2897 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
2898 | fi | |
2899 | ||
2900 | else | |
2901 | ||
2902 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
2903 | if test "x$LINE" != x ; then | |
2904 | eval "DEFAULT_$LINE" | |
2905 | else | |
2906 | no_cache=1 | |
2907 | fi | |
2908 | ||
2909 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
2910 | ||
2911 | fi | |
2912 | ||
2913 | ||
2914 | eval "$ac_cv_use_streams" | |
2915 | if test "$no_cache" != 1; then | |
2916 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
2917 | fi | |
2918 | ||
2919 | if test "$wxUSE_STREAMS" = yes; then | |
2920 | echo "$ac_t""yes" 1>&6 | |
2921 | else | |
2922 | echo "$ac_t""no" 1>&6 | |
2923 | fi | |
2924 | ||
2925 | ||
2926 | echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6 | |
d6a55c4b | 2927 | echo "configure:2928: checking "for --enable-file"" >&5 |
10f2d63a VZ |
2928 | no_cache=0 |
2929 | # Check whether --enable-file or --disable-file was given. | |
2930 | if test "${enable_file+set}" = set; then | |
2931 | enableval="$enable_file" | |
2932 | ||
2933 | if test "$enableval" = yes; then | |
2934 | ac_cv_use_file='wxUSE_FILE=yes' | |
2935 | else | |
2936 | ac_cv_use_file='wxUSE_FILE=no' | |
2937 | fi | |
2938 | ||
2939 | else | |
2940 | ||
2941 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
2942 | if test "x$LINE" != x ; then | |
2943 | eval "DEFAULT_$LINE" | |
2944 | else | |
2945 | no_cache=1 | |
2946 | fi | |
2947 | ||
2948 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
2949 | ||
2950 | fi | |
2951 | ||
2952 | ||
2953 | eval "$ac_cv_use_file" | |
2954 | if test "$no_cache" != 1; then | |
2955 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
2956 | fi | |
2957 | ||
2958 | if test "$wxUSE_FILE" = yes; then | |
2959 | echo "$ac_t""yes" 1>&6 | |
2960 | else | |
2961 | echo "$ac_t""no" 1>&6 | |
2962 | fi | |
2963 | ||
2964 | ||
2965 | echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6 | |
d6a55c4b | 2966 | echo "configure:2967: checking "for --enable-textfile"" >&5 |
10f2d63a VZ |
2967 | no_cache=0 |
2968 | # Check whether --enable-textfile or --disable-textfile was given. | |
2969 | if test "${enable_textfile+set}" = set; then | |
2970 | enableval="$enable_textfile" | |
2971 | ||
2972 | if test "$enableval" = yes; then | |
2973 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
2974 | else | |
2975 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
2976 | fi | |
2977 | ||
2978 | else | |
2979 | ||
2980 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
2981 | if test "x$LINE" != x ; then | |
2982 | eval "DEFAULT_$LINE" | |
2983 | else | |
2984 | no_cache=1 | |
2985 | fi | |
2986 | ||
2987 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
2988 | ||
2989 | fi | |
2990 | ||
2991 | ||
2992 | eval "$ac_cv_use_textfile" | |
2993 | if test "$no_cache" != 1; then | |
2994 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
2995 | fi | |
2996 | ||
2997 | if test "$wxUSE_TEXTFILE" = yes; then | |
2998 | echo "$ac_t""yes" 1>&6 | |
2999 | else | |
3000 | echo "$ac_t""no" 1>&6 | |
3001 | fi | |
3002 | ||
3003 | ||
3004 | echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6 | |
d6a55c4b | 3005 | echo "configure:3006: checking "for --enable-unicode"" >&5 |
10f2d63a VZ |
3006 | no_cache=0 |
3007 | # Check whether --enable-unicode or --disable-unicode was given. | |
3008 | if test "${enable_unicode+set}" = set; then | |
3009 | enableval="$enable_unicode" | |
3010 | ||
3011 | if test "$enableval" = yes; then | |
3012 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
3013 | else | |
3014 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
3015 | fi | |
3016 | ||
3017 | else | |
3018 | ||
3019 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
3020 | if test "x$LINE" != x ; then | |
3021 | eval "DEFAULT_$LINE" | |
3022 | else | |
3023 | no_cache=1 | |
3024 | fi | |
3025 | ||
3026 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
3027 | ||
3028 | fi | |
3029 | ||
3030 | ||
3031 | eval "$ac_cv_use_unicode" | |
3032 | if test "$no_cache" != 1; then | |
3033 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
3034 | fi | |
3035 | ||
3036 | if test "$wxUSE_UNICODE" = yes; then | |
3037 | echo "$ac_t""yes" 1>&6 | |
3038 | else | |
3039 | echo "$ac_t""no" 1>&6 | |
3040 | fi | |
3041 | ||
3042 | ||
3043 | echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6 | |
d6a55c4b | 3044 | echo "configure:3045: checking "for --enable-wcsrtombs"" >&5 |
10f2d63a VZ |
3045 | no_cache=0 |
3046 | # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given. | |
3047 | if test "${enable_wcsrtombs+set}" = set; then | |
3048 | enableval="$enable_wcsrtombs" | |
3049 | ||
3050 | if test "$enableval" = yes; then | |
3051 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes' | |
3052 | else | |
3053 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no' | |
3054 | fi | |
3055 | ||
3056 | else | |
3057 | ||
3058 | LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}` | |
3059 | if test "x$LINE" != x ; then | |
3060 | eval "DEFAULT_$LINE" | |
3061 | else | |
3062 | no_cache=1 | |
3063 | fi | |
3064 | ||
3065 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS | |
3066 | ||
3067 | fi | |
3068 | ||
3069 | ||
3070 | eval "$ac_cv_use_wcsrtombs" | |
3071 | if test "$no_cache" != 1; then | |
3072 | echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp | |
3073 | fi | |
3074 | ||
3075 | if test "$wxUSE_WCSRTOMBS" = yes; then | |
3076 | echo "$ac_t""yes" 1>&6 | |
3077 | else | |
3078 | echo "$ac_t""no" 1>&6 | |
3079 | fi | |
3080 | ||
3081 | ||
3082 | echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6 | |
d6a55c4b | 3083 | echo "configure:3084: checking "for --enable-wxprintfv"" >&5 |
10f2d63a VZ |
3084 | no_cache=0 |
3085 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
3086 | if test "${enable_wxprintfv+set}" = set; then | |
3087 | enableval="$enable_wxprintfv" | |
3088 | ||
3089 | if test "$enableval" = yes; then | |
3090 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
3091 | else | |
3092 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
3093 | fi | |
3094 | ||
3095 | else | |
3096 | ||
3097 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
3098 | if test "x$LINE" != x ; then | |
3099 | eval "DEFAULT_$LINE" | |
3100 | else | |
3101 | no_cache=1 | |
3102 | fi | |
3103 | ||
3104 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
3105 | ||
3106 | fi | |
3107 | ||
3108 | ||
3109 | eval "$ac_cv_use_wxprintfv" | |
3110 | if test "$no_cache" != 1; then | |
3111 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
3112 | fi | |
3113 | ||
3114 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
3115 | echo "$ac_t""yes" 1>&6 | |
3116 | else | |
3117 | echo "$ac_t""no" 1>&6 | |
3118 | fi | |
3119 | ||
3120 | ||
3121 | echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6 | |
d6a55c4b | 3122 | echo "configure:3123: checking "for --enable-joystick"" >&5 |
10f2d63a VZ |
3123 | no_cache=0 |
3124 | # Check whether --enable-joystick or --disable-joystick was given. | |
3125 | if test "${enable_joystick+set}" = set; then | |
3126 | enableval="$enable_joystick" | |
3127 | ||
3128 | if test "$enableval" = yes; then | |
3129 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
3130 | else | |
3131 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
3132 | fi | |
3133 | ||
3134 | else | |
3135 | ||
3136 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
3137 | if test "x$LINE" != x ; then | |
3138 | eval "DEFAULT_$LINE" | |
3139 | else | |
3140 | no_cache=1 | |
3141 | fi | |
3142 | ||
3143 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
3144 | ||
3145 | fi | |
3146 | ||
3147 | ||
3148 | eval "$ac_cv_use_joystick" | |
3149 | if test "$no_cache" != 1; then | |
3150 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
3151 | fi | |
3152 | ||
3153 | if test "$wxUSE_JOYSTICK" = yes; then | |
3154 | echo "$ac_t""yes" 1>&6 | |
3155 | else | |
3156 | echo "$ac_t""no" 1>&6 | |
3157 | fi | |
3158 | ||
3159 | ||
3160 | echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6 | |
d6a55c4b | 3161 | echo "configure:3162: checking "for --enable-std_iostreams"" >&5 |
10f2d63a VZ |
3162 | no_cache=0 |
3163 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
3164 | if test "${enable_std_iostreams+set}" = set; then | |
3165 | enableval="$enable_std_iostreams" | |
3166 | ||
3167 | if test "$enableval" = yes; then | |
3168 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
3169 | else | |
3170 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
3171 | fi | |
3172 | ||
3173 | else | |
3174 | ||
3175 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` | |
3176 | if test "x$LINE" != x ; then | |
3177 | eval "DEFAULT_$LINE" | |
3178 | else | |
3179 | no_cache=1 | |
3180 | fi | |
3181 | ||
3182 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
3183 | ||
3184 | fi | |
3185 | ||
3186 | ||
3187 | eval "$ac_cv_use_std_iostreams" | |
3188 | if test "$no_cache" != 1; then | |
3189 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
3190 | fi | |
3191 | ||
3192 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
3193 | echo "$ac_t""yes" 1>&6 | |
3194 | else | |
3195 | echo "$ac_t""no" 1>&6 | |
3196 | fi | |
3197 | ||
3198 | ||
3199 | echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6 | |
d6a55c4b | 3200 | echo "configure:3201: checking "for --enable-fs_inet"" >&5 |
10f2d63a VZ |
3201 | no_cache=0 |
3202 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
3203 | if test "${enable_fs_inet+set}" = set; then | |
3204 | enableval="$enable_fs_inet" | |
3205 | ||
3206 | if test "$enableval" = yes; then | |
3207 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
3208 | else | |
3209 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
3210 | fi | |
3211 | ||
3212 | else | |
3213 | ||
3214 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
3215 | if test "x$LINE" != x ; then | |
3216 | eval "DEFAULT_$LINE" | |
3217 | else | |
3218 | no_cache=1 | |
3219 | fi | |
3220 | ||
3221 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
3222 | ||
3223 | fi | |
3224 | ||
3225 | ||
3226 | eval "$ac_cv_use_fs_inet" | |
3227 | if test "$no_cache" != 1; then | |
3228 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
3229 | fi | |
3230 | ||
3231 | if test "$wxUSE_FS_INET" = yes; then | |
3232 | echo "$ac_t""yes" 1>&6 | |
3233 | else | |
3234 | echo "$ac_t""no" 1>&6 | |
3235 | fi | |
3236 | ||
3237 | ||
3238 | echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6 | |
d6a55c4b | 3239 | echo "configure:3240: checking "for --enable-fs_zip"" >&5 |
10f2d63a VZ |
3240 | no_cache=0 |
3241 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
3242 | if test "${enable_fs_zip+set}" = set; then | |
3243 | enableval="$enable_fs_zip" | |
3244 | ||
3245 | if test "$enableval" = yes; then | |
3246 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
3247 | else | |
3248 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
3249 | fi | |
3250 | ||
3251 | else | |
3252 | ||
3253 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
3254 | if test "x$LINE" != x ; then | |
3255 | eval "DEFAULT_$LINE" | |
3256 | else | |
3257 | no_cache=1 | |
3258 | fi | |
3259 | ||
3260 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
3261 | ||
3262 | fi | |
3263 | ||
3264 | ||
3265 | eval "$ac_cv_use_fs_zip" | |
3266 | if test "$no_cache" != 1; then | |
3267 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
3268 | fi | |
3269 | ||
3270 | if test "$wxUSE_FS_ZIP" = yes; then | |
3271 | echo "$ac_t""yes" 1>&6 | |
3272 | else | |
3273 | echo "$ac_t""no" 1>&6 | |
3274 | fi | |
3275 | ||
3276 | ||
3277 | echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6 | |
d6a55c4b | 3278 | echo "configure:3279: checking "for --enable-zipstream"" >&5 |
10f2d63a VZ |
3279 | no_cache=0 |
3280 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
3281 | if test "${enable_zipstream+set}" = set; then | |
3282 | enableval="$enable_zipstream" | |
3283 | ||
3284 | if test "$enableval" = yes; then | |
3285 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
3286 | else | |
3287 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
3288 | fi | |
3289 | ||
3290 | else | |
3291 | ||
3292 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
3293 | if test "x$LINE" != x ; then | |
3294 | eval "DEFAULT_$LINE" | |
3295 | else | |
3296 | no_cache=1 | |
3297 | fi | |
3298 | ||
3299 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
3300 | ||
3301 | fi | |
3302 | ||
3303 | ||
3304 | eval "$ac_cv_use_zipstream" | |
3305 | if test "$no_cache" != 1; then | |
3306 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
3307 | fi | |
3308 | ||
3309 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
3310 | echo "$ac_t""yes" 1>&6 | |
3311 | else | |
3312 | echo "$ac_t""no" 1>&6 | |
3313 | fi | |
3314 | ||
3315 | ||
3316 | ||
3317 | ||
3318 | echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6 | |
d6a55c4b | 3319 | echo "configure:3320: checking "for --enable-threads"" >&5 |
10f2d63a VZ |
3320 | no_cache=0 |
3321 | # Check whether --enable-threads or --disable-threads was given. | |
3322 | if test "${enable_threads+set}" = set; then | |
3323 | enableval="$enable_threads" | |
3324 | ||
3325 | if test "$enableval" = yes; then | |
3326 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
3327 | else | |
3328 | ac_cv_use_threads='wxUSE_THREADS=no' | |
3329 | fi | |
3330 | ||
3331 | else | |
3332 | ||
3333 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
3334 | if test "x$LINE" != x ; then | |
3335 | eval "DEFAULT_$LINE" | |
3336 | else | |
3337 | no_cache=1 | |
3338 | fi | |
3339 | ||
3340 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
3341 | ||
3342 | fi | |
3343 | ||
3344 | ||
3345 | eval "$ac_cv_use_threads" | |
3346 | if test "$no_cache" != 1; then | |
3347 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
3348 | fi | |
3349 | ||
3350 | if test "$wxUSE_THREADS" = yes; then | |
3351 | echo "$ac_t""yes" 1>&6 | |
3352 | else | |
3353 | echo "$ac_t""no" 1>&6 | |
3354 | fi | |
3355 | ||
3356 | ||
3357 | echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6 | |
d6a55c4b | 3358 | echo "configure:3359: checking "for --enable-serial"" >&5 |
10f2d63a VZ |
3359 | no_cache=0 |
3360 | # Check whether --enable-serial or --disable-serial was given. | |
3361 | if test "${enable_serial+set}" = set; then | |
3362 | enableval="$enable_serial" | |
3363 | ||
3364 | if test "$enableval" = yes; then | |
3365 | ac_cv_use_serial='wxUSE_SERIAL=yes' | |
3366 | else | |
3367 | ac_cv_use_serial='wxUSE_SERIAL=no' | |
3368 | fi | |
3369 | ||
3370 | else | |
3371 | ||
3372 | LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}` | |
3373 | if test "x$LINE" != x ; then | |
3374 | eval "DEFAULT_$LINE" | |
3375 | else | |
3376 | no_cache=1 | |
3377 | fi | |
3378 | ||
3379 | ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL | |
3380 | ||
3381 | fi | |
3382 | ||
3383 | ||
3384 | eval "$ac_cv_use_serial" | |
3385 | if test "$no_cache" != 1; then | |
3386 | echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp | |
3387 | fi | |
3388 | ||
3389 | if test "$wxUSE_SERIAL" = yes; then | |
3390 | echo "$ac_t""yes" 1>&6 | |
3391 | else | |
3392 | echo "$ac_t""no" 1>&6 | |
3393 | fi | |
3394 | ||
3395 | ||
b12915c1 VZ |
3396 | if test "$wxUSE_GUI" = "yes"; then |
3397 | ||
10f2d63a VZ |
3398 | |
3399 | ||
3400 | echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6 | |
d6a55c4b | 3401 | echo "configure:3402: checking "for --enable-docview"" >&5 |
10f2d63a VZ |
3402 | no_cache=0 |
3403 | # Check whether --enable-docview or --disable-docview was given. | |
3404 | if test "${enable_docview+set}" = set; then | |
3405 | enableval="$enable_docview" | |
3406 | ||
3407 | if test "$enableval" = yes; then | |
3408 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
3409 | else | |
3410 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
3411 | fi | |
3412 | ||
3413 | else | |
3414 | ||
3415 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
3416 | if test "x$LINE" != x ; then | |
3417 | eval "DEFAULT_$LINE" | |
3418 | else | |
3419 | no_cache=1 | |
3420 | fi | |
3421 | ||
3422 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
3423 | ||
3424 | fi | |
3425 | ||
3426 | ||
3427 | eval "$ac_cv_use_docview" | |
3428 | if test "$no_cache" != 1; then | |
3429 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
3430 | fi | |
3431 | ||
3432 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
3433 | echo "$ac_t""yes" 1>&6 | |
3434 | else | |
3435 | echo "$ac_t""no" 1>&6 | |
3436 | fi | |
3437 | ||
3438 | ||
3439 | echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6 | |
d6a55c4b | 3440 | echo "configure:3441: checking "for --enable-help"" >&5 |
10f2d63a VZ |
3441 | no_cache=0 |
3442 | # Check whether --enable-help or --disable-help was given. | |
3443 | if test "${enable_help+set}" = set; then | |
3444 | enableval="$enable_help" | |
3445 | ||
3446 | if test "$enableval" = yes; then | |
3447 | ac_cv_use_help='wxUSE_HELP=yes' | |
3448 | else | |
3449 | ac_cv_use_help='wxUSE_HELP=no' | |
3450 | fi | |
3451 | ||
3452 | else | |
3453 | ||
3454 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
3455 | if test "x$LINE" != x ; then | |
3456 | eval "DEFAULT_$LINE" | |
3457 | else | |
3458 | no_cache=1 | |
3459 | fi | |
3460 | ||
3461 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
3462 | ||
3463 | fi | |
3464 | ||
3465 | ||
3466 | eval "$ac_cv_use_help" | |
3467 | if test "$no_cache" != 1; then | |
3468 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
3469 | fi | |
3470 | ||
3471 | if test "$wxUSE_HELP" = yes; then | |
3472 | echo "$ac_t""yes" 1>&6 | |
3473 | else | |
3474 | echo "$ac_t""no" 1>&6 | |
3475 | fi | |
3476 | ||
3477 | ||
3478 | echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6 | |
d6a55c4b | 3479 | echo "configure:3480: checking "for --enable-constraints"" >&5 |
10f2d63a VZ |
3480 | no_cache=0 |
3481 | # Check whether --enable-constraints or --disable-constraints was given. | |
3482 | if test "${enable_constraints+set}" = set; then | |
3483 | enableval="$enable_constraints" | |
3484 | ||
3485 | if test "$enableval" = yes; then | |
3486 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
3487 | else | |
3488 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
3489 | fi | |
3490 | ||
3491 | else | |
3492 | ||
3493 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
3494 | if test "x$LINE" != x ; then | |
3495 | eval "DEFAULT_$LINE" | |
3496 | else | |
3497 | no_cache=1 | |
3498 | fi | |
3499 | ||
3500 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
3501 | ||
3502 | fi | |
3503 | ||
3504 | ||
3505 | eval "$ac_cv_use_constraints" | |
3506 | if test "$no_cache" != 1; then | |
3507 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
3508 | fi | |
3509 | ||
3510 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
3511 | echo "$ac_t""yes" 1>&6 | |
3512 | else | |
3513 | echo "$ac_t""no" 1>&6 | |
3514 | fi | |
3515 | ||
3516 | ||
3517 | echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6 | |
d6a55c4b | 3518 | echo "configure:3519: checking "for --enable-printarch"" >&5 |
10f2d63a VZ |
3519 | no_cache=0 |
3520 | # Check whether --enable-printarch or --disable-printarch was given. | |
3521 | if test "${enable_printarch+set}" = set; then | |
3522 | enableval="$enable_printarch" | |
3523 | ||
3524 | if test "$enableval" = yes; then | |
3525 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
3526 | else | |
3527 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
3528 | fi | |
3529 | ||
3530 | else | |
3531 | ||
3532 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
3533 | if test "x$LINE" != x ; then | |
3534 | eval "DEFAULT_$LINE" | |
3535 | else | |
3536 | no_cache=1 | |
3537 | fi | |
3538 | ||
3539 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
3540 | ||
3541 | fi | |
3542 | ||
3543 | ||
3544 | eval "$ac_cv_use_printarch" | |
3545 | if test "$no_cache" != 1; then | |
3546 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
3547 | fi | |
3548 | ||
3549 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
3550 | echo "$ac_t""yes" 1>&6 | |
3551 | else | |
3552 | echo "$ac_t""no" 1>&6 | |
3553 | fi | |
3554 | ||
3555 | ||
3556 | echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6 | |
d6a55c4b | 3557 | echo "configure:3558: checking "for --enable-mdi"" >&5 |
10f2d63a VZ |
3558 | no_cache=0 |
3559 | # Check whether --enable-mdi or --disable-mdi was given. | |
3560 | if test "${enable_mdi+set}" = set; then | |
3561 | enableval="$enable_mdi" | |
3562 | ||
3563 | if test "$enableval" = yes; then | |
3564 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
3565 | else | |
3566 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
3567 | fi | |
3568 | ||
3569 | else | |
3570 | ||
3571 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
3572 | if test "x$LINE" != x ; then | |
3573 | eval "DEFAULT_$LINE" | |
3574 | else | |
3575 | no_cache=1 | |
3576 | fi | |
3577 | ||
3578 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
3579 | ||
3580 | fi | |
3581 | ||
3582 | ||
3583 | eval "$ac_cv_use_mdi" | |
3584 | if test "$no_cache" != 1; then | |
3585 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
3586 | fi | |
3587 | ||
3588 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
3589 | echo "$ac_t""yes" 1>&6 | |
3590 | else | |
3591 | echo "$ac_t""no" 1>&6 | |
3592 | fi | |
3593 | ||
3594 | ||
3595 | ||
3596 | echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6 | |
d6a55c4b | 3597 | echo "configure:3598: checking "for --enable-postscript"" >&5 |
10f2d63a VZ |
3598 | no_cache=0 |
3599 | # Check whether --enable-postscript or --disable-postscript was given. | |
3600 | if test "${enable_postscript+set}" = set; then | |
3601 | enableval="$enable_postscript" | |
3602 | ||
3603 | if test "$enableval" = yes; then | |
3604 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
3605 | else | |
3606 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
3607 | fi | |
3608 | ||
3609 | else | |
3610 | ||
3611 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
3612 | if test "x$LINE" != x ; then | |
3613 | eval "DEFAULT_$LINE" | |
3614 | else | |
3615 | no_cache=1 | |
3616 | fi | |
3617 | ||
3618 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
3619 | ||
3620 | fi | |
3621 | ||
3622 | ||
3623 | eval "$ac_cv_use_postscript" | |
3624 | if test "$no_cache" != 1; then | |
3625 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
3626 | fi | |
3627 | ||
3628 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
3629 | echo "$ac_t""yes" 1>&6 | |
3630 | else | |
3631 | echo "$ac_t""no" 1>&6 | |
3632 | fi | |
3633 | ||
3634 | ||
3635 | ||
3636 | ||
3637 | echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6 | |
d6a55c4b | 3638 | echo "configure:3639: checking "for --enable-prologio"" >&5 |
10f2d63a VZ |
3639 | no_cache=0 |
3640 | # Check whether --enable-prologio or --disable-prologio was given. | |
3641 | if test "${enable_prologio+set}" = set; then | |
3642 | enableval="$enable_prologio" | |
3643 | ||
3644 | if test "$enableval" = yes; then | |
3645 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
3646 | else | |
3647 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
3648 | fi | |
3649 | ||
3650 | else | |
3651 | ||
3652 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
3653 | if test "x$LINE" != x ; then | |
3654 | eval "DEFAULT_$LINE" | |
3655 | else | |
3656 | no_cache=1 | |
3657 | fi | |
3658 | ||
3659 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
3660 | ||
3661 | fi | |
3662 | ||
3663 | ||
3664 | eval "$ac_cv_use_prologio" | |
3665 | if test "$no_cache" != 1; then | |
3666 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
3667 | fi | |
3668 | ||
3669 | if test "$wxUSE_PROLOGIO" = yes; then | |
3670 | echo "$ac_t""yes" 1>&6 | |
3671 | else | |
3672 | echo "$ac_t""no" 1>&6 | |
3673 | fi | |
3674 | ||
3675 | ||
3676 | echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6 | |
d6a55c4b | 3677 | echo "configure:3678: checking "for --enable-resources"" >&5 |
10f2d63a VZ |
3678 | no_cache=0 |
3679 | # Check whether --enable-resources or --disable-resources was given. | |
3680 | if test "${enable_resources+set}" = set; then | |
3681 | enableval="$enable_resources" | |
3682 | ||
3683 | if test "$enableval" = yes; then | |
3684 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
3685 | else | |
3686 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
3687 | fi | |
3688 | ||
3689 | else | |
3690 | ||
3691 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
3692 | if test "x$LINE" != x ; then | |
3693 | eval "DEFAULT_$LINE" | |
3694 | else | |
3695 | no_cache=1 | |
3696 | fi | |
3697 | ||
3698 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
3699 | ||
3700 | fi | |
3701 | ||
3702 | ||
3703 | eval "$ac_cv_use_resources" | |
3704 | if test "$no_cache" != 1; then | |
3705 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
3706 | fi | |
3707 | ||
3708 | if test "$wxUSE_RESOURCES" = yes; then | |
3709 | echo "$ac_t""yes" 1>&6 | |
3710 | else | |
3711 | echo "$ac_t""no" 1>&6 | |
3712 | fi | |
3713 | ||
3714 | ||
3715 | ||
3716 | echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6 | |
d6a55c4b | 3717 | echo "configure:3718: checking "for --enable-xresources"" >&5 |
10f2d63a VZ |
3718 | no_cache=0 |
3719 | # Check whether --enable-xresources or --disable-xresources was given. | |
3720 | if test "${enable_xresources+set}" = set; then | |
3721 | enableval="$enable_xresources" | |
3722 | ||
3723 | if test "$enableval" = yes; then | |
3724 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
3725 | else | |
3726 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
3727 | fi | |
3728 | ||
3729 | else | |
3730 | ||
3731 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` | |
3732 | if test "x$LINE" != x ; then | |
3733 | eval "DEFAULT_$LINE" | |
3734 | else | |
3735 | no_cache=1 | |
3736 | fi | |
3737 | ||
3738 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
3739 | ||
3740 | fi | |
3741 | ||
3742 | ||
3743 | eval "$ac_cv_use_xresources" | |
3744 | if test "$no_cache" != 1; then | |
3745 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
3746 | fi | |
3747 | ||
3748 | if test "$wxUSE_X_RESOURCES" = yes; then | |
3749 | echo "$ac_t""yes" 1>&6 | |
3750 | else | |
3751 | echo "$ac_t""no" 1>&6 | |
3752 | fi | |
3753 | ||
3754 | ||
3755 | ||
3756 | ||
3757 | echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6 | |
d6a55c4b | 3758 | echo "configure:3759: checking "for --enable-clipboard"" >&5 |
10f2d63a VZ |
3759 | no_cache=0 |
3760 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
3761 | if test "${enable_clipboard+set}" = set; then | |
3762 | enableval="$enable_clipboard" | |
3763 | ||
3764 | if test "$enableval" = yes; then | |
3765 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
3766 | else | |
3767 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
3768 | fi | |
3769 | ||
3770 | else | |
3771 | ||
3772 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
3773 | if test "x$LINE" != x ; then | |
3774 | eval "DEFAULT_$LINE" | |
3775 | else | |
3776 | no_cache=1 | |
3777 | fi | |
3778 | ||
3779 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
3780 | ||
3781 | fi | |
3782 | ||
3783 | ||
3784 | eval "$ac_cv_use_clipboard" | |
3785 | if test "$no_cache" != 1; then | |
3786 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
3787 | fi | |
3788 | ||
3789 | if test "$wxUSE_CLIPBOARD" = yes; then | |
3790 | echo "$ac_t""yes" 1>&6 | |
3791 | else | |
3792 | echo "$ac_t""no" 1>&6 | |
3793 | fi | |
3794 | ||
3795 | ||
3796 | echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6 | |
d6a55c4b | 3797 | echo "configure:3798: checking "for --enable-dnd"" >&5 |
10f2d63a VZ |
3798 | no_cache=0 |
3799 | # Check whether --enable-dnd or --disable-dnd was given. | |
3800 | if test "${enable_dnd+set}" = set; then | |
3801 | enableval="$enable_dnd" | |
3802 | ||
3803 | if test "$enableval" = yes; then | |
3804 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
3805 | else | |
3806 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
3807 | fi | |
3808 | ||
3809 | else | |
3810 | ||
3811 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
3812 | if test "x$LINE" != x ; then | |
3813 | eval "DEFAULT_$LINE" | |
3814 | else | |
3815 | no_cache=1 | |
3816 | fi | |
3817 | ||
3818 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
3819 | ||
3820 | fi | |
3821 | ||
3822 | ||
3823 | eval "$ac_cv_use_dnd" | |
3824 | if test "$no_cache" != 1; then | |
3825 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
3826 | fi | |
3827 | ||
3828 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
3829 | echo "$ac_t""yes" 1>&6 | |
3830 | else | |
3831 | echo "$ac_t""no" 1>&6 | |
3832 | fi | |
3833 | ||
3834 | ||
3835 | ||
3836 | echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6 | |
d6a55c4b | 3837 | echo "configure:3838: checking "for --enable-wxtree"" >&5 |
10f2d63a VZ |
3838 | no_cache=0 |
3839 | # Check whether --enable-wxtree or --disable-wxtree was given. | |
3840 | if test "${enable_wxtree+set}" = set; then | |
3841 | enableval="$enable_wxtree" | |
3842 | ||
3843 | if test "$enableval" = yes; then | |
3844 | ac_cv_use_wxtree='wxUSE_WXTREE=yes' | |
3845 | else | |
3846 | ac_cv_use_wxtree='wxUSE_WXTREE=no' | |
3847 | fi | |
3848 | ||
3849 | else | |
3850 | ||
3851 | LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}` | |
3852 | if test "x$LINE" != x ; then | |
3853 | eval "DEFAULT_$LINE" | |
3854 | else | |
3855 | no_cache=1 | |
3856 | fi | |
3857 | ||
3858 | ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE | |
3859 | ||
3860 | fi | |
3861 | ||
3862 | ||
3863 | eval "$ac_cv_use_wxtree" | |
3864 | if test "$no_cache" != 1; then | |
3865 | echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp | |
3866 | fi | |
3867 | ||
3868 | if test "$wxUSE_WXTREE" = yes; then | |
3869 | echo "$ac_t""yes" 1>&6 | |
3870 | else | |
3871 | echo "$ac_t""no" 1>&6 | |
3872 | fi | |
3873 | ||
3874 | ||
3875 | ||
3876 | ||
3877 | echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6 | |
d6a55c4b | 3878 | echo "configure:3879: checking "for --enable-controls"" >&5 |
10f2d63a VZ |
3879 | no_cache=0 |
3880 | # Check whether --enable-controls or --disable-controls was given. | |
3881 | if test "${enable_controls+set}" = set; then | |
3882 | enableval="$enable_controls" | |
3883 | ||
3884 | if test "$enableval" = yes; then | |
3885 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
3886 | else | |
3887 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
3888 | fi | |
3889 | ||
3890 | else | |
3891 | ||
3892 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
3893 | if test "x$LINE" != x ; then | |
3894 | eval "DEFAULT_$LINE" | |
3895 | else | |
3896 | no_cache=1 | |
3897 | fi | |
3898 | ||
3899 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
3900 | ||
3901 | fi | |
3902 | ||
3903 | ||
3904 | eval "$ac_cv_use_controls" | |
3905 | if test "$no_cache" != 1; then | |
3906 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
3907 | fi | |
3908 | ||
3909 | if test "$wxUSE_CONTROLS" = yes; then | |
3910 | echo "$ac_t""yes" 1>&6 | |
3911 | else | |
3912 | echo "$ac_t""no" 1>&6 | |
3913 | fi | |
3914 | ||
3915 | ||
3916 | if test "$wxUSE_CONTROLS" = "yes"; then | |
3917 | DEFAULT_wxUSE_ACCEL=yes | |
3918 | DEFAULT_wxUSE_CARET=yes | |
3919 | DEFAULT_wxUSE_COMBOBOX=yes | |
3920 | DEFAULT_wxUSE_BMPBUTTON=yes | |
3921 | DEFAULT_wxUSE_CHECKBOX=yes | |
3922 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
3923 | DEFAULT_wxUSE_CHOICE=yes | |
3924 | DEFAULT_wxUSE_GAUGE=yes | |
3925 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 3926 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
3927 | DEFAULT_wxUSE_IMAGLIST=yes |
3928 | DEFAULT_wxUSE_LISTBOX=yes | |
3929 | DEFAULT_wxUSE_LISTCTRL=yes | |
3930 | DEFAULT_wxUSE_NOTEBOOK=yes | |
3931 | DEFAULT_wxUSE_RADIOBOX=yes | |
3932 | DEFAULT_wxUSE_RADIOBTN=yes | |
3933 | DEFAULT_wxUSE_SASH=yes | |
3934 | DEFAULT_wxUSE_SCROLLBAR=yes | |
3935 | DEFAULT_wxUSE_SLIDER=yes | |
3936 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 3937 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
3938 | DEFAULT_wxUSE_SPLITTER=yes |
3939 | DEFAULT_wxUSE_STATBMP=yes | |
3940 | DEFAULT_wxUSE_STATBOX=yes | |
3941 | DEFAULT_wxUSE_STATLINE=yes | |
3942 | DEFAULT_wxUSE_STATUSBAR=yes | |
3943 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
3944 | DEFAULT_wxUSE_TOOLBAR=yes | |
360d6699 VZ |
3945 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
3946 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
3947 | DEFAULT_wxUSE_TOOLTIPS=yes |
3948 | DEFAULT_wxUSE_TREECTRL=yes | |
3949 | elif test "$wxUSE_CONTROLS" = "no"; then | |
3950 | DEFAULT_wxUSE_ACCEL=no | |
3951 | DEFAULT_wxUSE_CARET=no | |
3952 | DEFAULT_wxUSE_COMBOBOX=no | |
3953 | DEFAULT_wxUSE_BMPBUTTON=no | |
3954 | DEFAULT_wxUSE_CHECKBOX=no | |
3955 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
3956 | DEFAULT_wxUSE_CHOICE=no | |
3957 | DEFAULT_wxUSE_GAUGE=no | |
3958 | DEFAULT_wxUSE_GRID=no | |
3959 | DEFAULT_wxUSE_NEW_GRID=no | |
3960 | DEFAULT_wxUSE_IMAGLIST=no | |
3961 | DEFAULT_wxUSE_LISTBOX=no | |
3962 | DEFAULT_wxUSE_LISTCTRL=no | |
3963 | DEFAULT_wxUSE_NOTEBOOK=no | |
3964 | DEFAULT_wxUSE_RADIOBOX=no | |
3965 | DEFAULT_wxUSE_RADIOBTN=no | |
3966 | DEFAULT_wxUSE_SASH=no | |
3967 | DEFAULT_wxUSE_SCROLLBAR=no | |
3968 | DEFAULT_wxUSE_SLIDER=no | |
3969 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 3970 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
3971 | DEFAULT_wxUSE_SPLITTER=no |
3972 | DEFAULT_wxUSE_STATBMP=no | |
3973 | DEFAULT_wxUSE_STATBOX=no | |
3974 | DEFAULT_wxUSE_STATLINE=no | |
3975 | DEFAULT_wxUSE_STATUSBAR=no | |
3976 | DEFAULT_wxUSE_TAB_DIALOG=no | |
3977 | DEFAULT_wxUSE_TOOLBAR=no | |
360d6699 VZ |
3978 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
3979 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
3980 | DEFAULT_wxUSE_TOOLTIPS=no |
3981 | DEFAULT_wxUSE_TREECTRL=no | |
3982 | fi | |
3983 | ||
3984 | ||
3985 | echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6 | |
d6a55c4b | 3986 | echo "configure:3987: checking "for --enable-accel"" >&5 |
10f2d63a VZ |
3987 | no_cache=0 |
3988 | # Check whether --enable-accel or --disable-accel was given. | |
3989 | if test "${enable_accel+set}" = set; then | |
3990 | enableval="$enable_accel" | |
3991 | ||
3992 | if test "$enableval" = yes; then | |
3993 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
3994 | else | |
3995 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
3996 | fi | |
3997 | ||
3998 | else | |
3999 | ||
4000 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
4001 | if test "x$LINE" != x ; then | |
4002 | eval "DEFAULT_$LINE" | |
4003 | else | |
4004 | no_cache=1 | |
4005 | fi | |
4006 | ||
4007 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
4008 | ||
4009 | fi | |
4010 | ||
4011 | ||
4012 | eval "$ac_cv_use_accel" | |
4013 | if test "$no_cache" != 1; then | |
4014 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
4015 | fi | |
4016 | ||
4017 | if test "$wxUSE_ACCEL" = yes; then | |
4018 | echo "$ac_t""yes" 1>&6 | |
4019 | else | |
4020 | echo "$ac_t""no" 1>&6 | |
4021 | fi | |
4022 | ||
4023 | ||
4024 | echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6 | |
d6a55c4b | 4025 | echo "configure:4026: checking "for --enable-caret"" >&5 |
10f2d63a VZ |
4026 | no_cache=0 |
4027 | # Check whether --enable-caret or --disable-caret was given. | |
4028 | if test "${enable_caret+set}" = set; then | |
4029 | enableval="$enable_caret" | |
4030 | ||
4031 | if test "$enableval" = yes; then | |
4032 | ac_cv_use_caret='wxUSE_CARET=yes' | |
4033 | else | |
4034 | ac_cv_use_caret='wxUSE_CARET=no' | |
4035 | fi | |
4036 | ||
4037 | else | |
4038 | ||
4039 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
4040 | if test "x$LINE" != x ; then | |
4041 | eval "DEFAULT_$LINE" | |
4042 | else | |
4043 | no_cache=1 | |
4044 | fi | |
4045 | ||
4046 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
4047 | ||
4048 | fi | |
4049 | ||
4050 | ||
4051 | eval "$ac_cv_use_caret" | |
4052 | if test "$no_cache" != 1; then | |
4053 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
4054 | fi | |
4055 | ||
4056 | if test "$wxUSE_CARET" = yes; then | |
4057 | echo "$ac_t""yes" 1>&6 | |
4058 | else | |
4059 | echo "$ac_t""no" 1>&6 | |
4060 | fi | |
4061 | ||
4062 | ||
4063 | echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6 | |
d6a55c4b | 4064 | echo "configure:4065: checking "for --enable-bmpbutton"" >&5 |
10f2d63a VZ |
4065 | no_cache=0 |
4066 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
4067 | if test "${enable_bmpbutton+set}" = set; then | |
4068 | enableval="$enable_bmpbutton" | |
4069 | ||
4070 | if test "$enableval" = yes; then | |
4071 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
4072 | else | |
4073 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
4074 | fi | |
4075 | ||
4076 | else | |
4077 | ||
4078 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
4079 | if test "x$LINE" != x ; then | |
4080 | eval "DEFAULT_$LINE" | |
4081 | else | |
4082 | no_cache=1 | |
4083 | fi | |
4084 | ||
4085 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
4086 | ||
4087 | fi | |
4088 | ||
4089 | ||
4090 | eval "$ac_cv_use_bmpbutton" | |
4091 | if test "$no_cache" != 1; then | |
4092 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
4093 | fi | |
4094 | ||
4095 | if test "$wxUSE_BMPBUTTON" = yes; then | |
4096 | echo "$ac_t""yes" 1>&6 | |
4097 | else | |
4098 | echo "$ac_t""no" 1>&6 | |
4099 | fi | |
4100 | ||
4101 | ||
4102 | echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6 | |
d6a55c4b | 4103 | echo "configure:4104: checking "for --enable-checkbox"" >&5 |
10f2d63a VZ |
4104 | no_cache=0 |
4105 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
4106 | if test "${enable_checkbox+set}" = set; then | |
4107 | enableval="$enable_checkbox" | |
4108 | ||
4109 | if test "$enableval" = yes; then | |
4110 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
4111 | else | |
4112 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
4113 | fi | |
4114 | ||
4115 | else | |
4116 | ||
4117 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
4118 | if test "x$LINE" != x ; then | |
4119 | eval "DEFAULT_$LINE" | |
4120 | else | |
4121 | no_cache=1 | |
4122 | fi | |
4123 | ||
4124 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
4125 | ||
4126 | fi | |
4127 | ||
4128 | ||
4129 | eval "$ac_cv_use_checkbox" | |
4130 | if test "$no_cache" != 1; then | |
4131 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
4132 | fi | |
4133 | ||
4134 | if test "$wxUSE_CHECKBOX" = yes; then | |
4135 | echo "$ac_t""yes" 1>&6 | |
4136 | else | |
4137 | echo "$ac_t""no" 1>&6 | |
4138 | fi | |
4139 | ||
4140 | ||
4141 | echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6 | |
d6a55c4b | 4142 | echo "configure:4143: checking "for --enable-checklst"" >&5 |
10f2d63a VZ |
4143 | no_cache=0 |
4144 | # Check whether --enable-checklst or --disable-checklst was given. | |
4145 | if test "${enable_checklst+set}" = set; then | |
4146 | enableval="$enable_checklst" | |
4147 | ||
4148 | if test "$enableval" = yes; then | |
4149 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
4150 | else | |
4151 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
4152 | fi | |
4153 | ||
4154 | else | |
4155 | ||
4156 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
4157 | if test "x$LINE" != x ; then | |
4158 | eval "DEFAULT_$LINE" | |
4159 | else | |
4160 | no_cache=1 | |
4161 | fi | |
4162 | ||
4163 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
4164 | ||
4165 | fi | |
4166 | ||
4167 | ||
4168 | eval "$ac_cv_use_checklst" | |
4169 | if test "$no_cache" != 1; then | |
4170 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
4171 | fi | |
4172 | ||
4173 | if test "$wxUSE_CHECKLST" = yes; then | |
4174 | echo "$ac_t""yes" 1>&6 | |
4175 | else | |
4176 | echo "$ac_t""no" 1>&6 | |
4177 | fi | |
4178 | ||
4179 | ||
4180 | echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6 | |
d6a55c4b | 4181 | echo "configure:4182: checking "for --enable-choice"" >&5 |
10f2d63a VZ |
4182 | no_cache=0 |
4183 | # Check whether --enable-choice or --disable-choice was given. | |
4184 | if test "${enable_choice+set}" = set; then | |
4185 | enableval="$enable_choice" | |
4186 | ||
4187 | if test "$enableval" = yes; then | |
4188 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
4189 | else | |
4190 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
4191 | fi | |
4192 | ||
4193 | else | |
4194 | ||
4195 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
4196 | if test "x$LINE" != x ; then | |
4197 | eval "DEFAULT_$LINE" | |
4198 | else | |
4199 | no_cache=1 | |
4200 | fi | |
4201 | ||
4202 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
4203 | ||
4204 | fi | |
4205 | ||
4206 | ||
4207 | eval "$ac_cv_use_choice" | |
4208 | if test "$no_cache" != 1; then | |
4209 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
4210 | fi | |
4211 | ||
4212 | if test "$wxUSE_CHOICE" = yes; then | |
4213 | echo "$ac_t""yes" 1>&6 | |
4214 | else | |
4215 | echo "$ac_t""no" 1>&6 | |
4216 | fi | |
4217 | ||
4218 | ||
4219 | echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6 | |
d6a55c4b | 4220 | echo "configure:4221: checking "for --enable-combobox"" >&5 |
10f2d63a VZ |
4221 | no_cache=0 |
4222 | # Check whether --enable-combobox or --disable-combobox was given. | |
4223 | if test "${enable_combobox+set}" = set; then | |
4224 | enableval="$enable_combobox" | |
4225 | ||
4226 | if test "$enableval" = yes; then | |
4227 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
4228 | else | |
4229 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
4230 | fi | |
4231 | ||
4232 | else | |
4233 | ||
4234 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
4235 | if test "x$LINE" != x ; then | |
4236 | eval "DEFAULT_$LINE" | |
4237 | else | |
4238 | no_cache=1 | |
4239 | fi | |
4240 | ||
4241 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
4242 | ||
4243 | fi | |
4244 | ||
4245 | ||
4246 | eval "$ac_cv_use_combobox" | |
4247 | if test "$no_cache" != 1; then | |
4248 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
4249 | fi | |
4250 | ||
4251 | if test "$wxUSE_COMBOBOX" = yes; then | |
4252 | echo "$ac_t""yes" 1>&6 | |
4253 | else | |
4254 | echo "$ac_t""no" 1>&6 | |
4255 | fi | |
4256 | ||
4257 | ||
4258 | echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6 | |
d6a55c4b | 4259 | echo "configure:4260: checking "for --enable-gauge"" >&5 |
10f2d63a VZ |
4260 | no_cache=0 |
4261 | # Check whether --enable-gauge or --disable-gauge was given. | |
4262 | if test "${enable_gauge+set}" = set; then | |
4263 | enableval="$enable_gauge" | |
4264 | ||
4265 | if test "$enableval" = yes; then | |
4266 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
4267 | else | |
4268 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
4269 | fi | |
4270 | ||
4271 | else | |
4272 | ||
4273 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
4274 | if test "x$LINE" != x ; then | |
4275 | eval "DEFAULT_$LINE" | |
4276 | else | |
4277 | no_cache=1 | |
4278 | fi | |
4279 | ||
4280 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
4281 | ||
4282 | fi | |
4283 | ||
4284 | ||
4285 | eval "$ac_cv_use_gauge" | |
4286 | if test "$no_cache" != 1; then | |
4287 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
4288 | fi | |
4289 | ||
4290 | if test "$wxUSE_GAUGE" = yes; then | |
4291 | echo "$ac_t""yes" 1>&6 | |
4292 | else | |
4293 | echo "$ac_t""no" 1>&6 | |
4294 | fi | |
4295 | ||
4296 | ||
4297 | echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6 | |
d6a55c4b | 4298 | echo "configure:4299: checking "for --enable-grid"" >&5 |
10f2d63a VZ |
4299 | no_cache=0 |
4300 | # Check whether --enable-grid or --disable-grid was given. | |
4301 | if test "${enable_grid+set}" = set; then | |
4302 | enableval="$enable_grid" | |
4303 | ||
4304 | if test "$enableval" = yes; then | |
4305 | ac_cv_use_grid='wxUSE_GRID=yes' | |
4306 | else | |
4307 | ac_cv_use_grid='wxUSE_GRID=no' | |
4308 | fi | |
4309 | ||
4310 | else | |
4311 | ||
4312 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
4313 | if test "x$LINE" != x ; then | |
4314 | eval "DEFAULT_$LINE" | |
4315 | else | |
4316 | no_cache=1 | |
4317 | fi | |
4318 | ||
4319 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
4320 | ||
4321 | fi | |
4322 | ||
4323 | ||
4324 | eval "$ac_cv_use_grid" | |
4325 | if test "$no_cache" != 1; then | |
4326 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
4327 | fi | |
4328 | ||
4329 | if test "$wxUSE_GRID" = yes; then | |
4330 | echo "$ac_t""yes" 1>&6 | |
4331 | else | |
4332 | echo "$ac_t""no" 1>&6 | |
4333 | fi | |
4334 | ||
4335 | ||
4336 | echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6 | |
d6a55c4b | 4337 | echo "configure:4338: checking "for --enable-newgrid"" >&5 |
10f2d63a VZ |
4338 | no_cache=0 |
4339 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
4340 | if test "${enable_newgrid+set}" = set; then | |
4341 | enableval="$enable_newgrid" | |
4342 | ||
4343 | if test "$enableval" = yes; then | |
4344 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
4345 | else | |
4346 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
4347 | fi | |
4348 | ||
4349 | else | |
4350 | ||
4351 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` | |
4352 | if test "x$LINE" != x ; then | |
4353 | eval "DEFAULT_$LINE" | |
4354 | else | |
4355 | no_cache=1 | |
4356 | fi | |
4357 | ||
4358 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
4359 | ||
4360 | fi | |
4361 | ||
4362 | ||
4363 | eval "$ac_cv_use_newgrid" | |
4364 | if test "$no_cache" != 1; then | |
4365 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
4366 | fi | |
4367 | ||
4368 | if test "$wxUSE_NEW_GRID" = yes; then | |
4369 | echo "$ac_t""yes" 1>&6 | |
4370 | else | |
4371 | echo "$ac_t""no" 1>&6 | |
4372 | fi | |
4373 | ||
4374 | ||
4375 | echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6 | |
d6a55c4b | 4376 | echo "configure:4377: checking "for --enable-imaglist"" >&5 |
10f2d63a VZ |
4377 | no_cache=0 |
4378 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
4379 | if test "${enable_imaglist+set}" = set; then | |
4380 | enableval="$enable_imaglist" | |
4381 | ||
4382 | if test "$enableval" = yes; then | |
4383 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
4384 | else | |
4385 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
4386 | fi | |
4387 | ||
4388 | else | |
4389 | ||
4390 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
4391 | if test "x$LINE" != x ; then | |
4392 | eval "DEFAULT_$LINE" | |
4393 | else | |
4394 | no_cache=1 | |
4395 | fi | |
4396 | ||
4397 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
4398 | ||
4399 | fi | |
4400 | ||
4401 | ||
4402 | eval "$ac_cv_use_imaglist" | |
4403 | if test "$no_cache" != 1; then | |
4404 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
4405 | fi | |
4406 | ||
4407 | if test "$wxUSE_IMAGLIST" = yes; then | |
4408 | echo "$ac_t""yes" 1>&6 | |
4409 | else | |
4410 | echo "$ac_t""no" 1>&6 | |
4411 | fi | |
4412 | ||
4413 | ||
4414 | echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6 | |
d6a55c4b | 4415 | echo "configure:4416: checking "for --enable-listbox"" >&5 |
10f2d63a VZ |
4416 | no_cache=0 |
4417 | # Check whether --enable-listbox or --disable-listbox was given. | |
4418 | if test "${enable_listbox+set}" = set; then | |
4419 | enableval="$enable_listbox" | |
4420 | ||
4421 | if test "$enableval" = yes; then | |
4422 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
4423 | else | |
4424 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
4425 | fi | |
4426 | ||
4427 | else | |
4428 | ||
4429 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
4430 | if test "x$LINE" != x ; then | |
4431 | eval "DEFAULT_$LINE" | |
4432 | else | |
4433 | no_cache=1 | |
4434 | fi | |
4435 | ||
4436 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
4437 | ||
4438 | fi | |
4439 | ||
4440 | ||
4441 | eval "$ac_cv_use_listbox" | |
4442 | if test "$no_cache" != 1; then | |
4443 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
4444 | fi | |
4445 | ||
4446 | if test "$wxUSE_LISTBOX" = yes; then | |
4447 | echo "$ac_t""yes" 1>&6 | |
4448 | else | |
4449 | echo "$ac_t""no" 1>&6 | |
4450 | fi | |
4451 | ||
4452 | ||
4453 | echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6 | |
d6a55c4b | 4454 | echo "configure:4455: checking "for --enable-listctrl"" >&5 |
10f2d63a VZ |
4455 | no_cache=0 |
4456 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
4457 | if test "${enable_listctrl+set}" = set; then | |
4458 | enableval="$enable_listctrl" | |
4459 | ||
4460 | if test "$enableval" = yes; then | |
4461 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
4462 | else | |
4463 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
4464 | fi | |
4465 | ||
4466 | else | |
4467 | ||
4468 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
4469 | if test "x$LINE" != x ; then | |
4470 | eval "DEFAULT_$LINE" | |
4471 | else | |
4472 | no_cache=1 | |
4473 | fi | |
4474 | ||
4475 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
4476 | ||
4477 | fi | |
4478 | ||
4479 | ||
4480 | eval "$ac_cv_use_listctrl" | |
4481 | if test "$no_cache" != 1; then | |
4482 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
4483 | fi | |
4484 | ||
4485 | if test "$wxUSE_LISTCTRL" = yes; then | |
4486 | echo "$ac_t""yes" 1>&6 | |
4487 | else | |
4488 | echo "$ac_t""no" 1>&6 | |
4489 | fi | |
4490 | ||
4491 | ||
4492 | echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6 | |
d6a55c4b | 4493 | echo "configure:4494: checking "for --enable-notebook"" >&5 |
10f2d63a VZ |
4494 | no_cache=0 |
4495 | # Check whether --enable-notebook or --disable-notebook was given. | |
4496 | if test "${enable_notebook+set}" = set; then | |
4497 | enableval="$enable_notebook" | |
4498 | ||
4499 | if test "$enableval" = yes; then | |
4500 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
4501 | else | |
4502 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
4503 | fi | |
4504 | ||
4505 | else | |
4506 | ||
4507 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
4508 | if test "x$LINE" != x ; then | |
4509 | eval "DEFAULT_$LINE" | |
4510 | else | |
4511 | no_cache=1 | |
4512 | fi | |
4513 | ||
4514 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
4515 | ||
4516 | fi | |
4517 | ||
4518 | ||
4519 | eval "$ac_cv_use_notebook" | |
4520 | if test "$no_cache" != 1; then | |
4521 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
4522 | fi | |
4523 | ||
4524 | if test "$wxUSE_NOTEBOOK" = yes; then | |
4525 | echo "$ac_t""yes" 1>&6 | |
4526 | else | |
4527 | echo "$ac_t""no" 1>&6 | |
4528 | fi | |
4529 | ||
4530 | ||
4531 | echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6 | |
d6a55c4b | 4532 | echo "configure:4533: checking "for --enable-radiobox"" >&5 |
10f2d63a VZ |
4533 | no_cache=0 |
4534 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
4535 | if test "${enable_radiobox+set}" = set; then | |
4536 | enableval="$enable_radiobox" | |
4537 | ||
4538 | if test "$enableval" = yes; then | |
4539 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
4540 | else | |
4541 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
4542 | fi | |
4543 | ||
4544 | else | |
4545 | ||
4546 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
4547 | if test "x$LINE" != x ; then | |
4548 | eval "DEFAULT_$LINE" | |
4549 | else | |
4550 | no_cache=1 | |
4551 | fi | |
4552 | ||
4553 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
4554 | ||
4555 | fi | |
4556 | ||
4557 | ||
4558 | eval "$ac_cv_use_radiobox" | |
4559 | if test "$no_cache" != 1; then | |
4560 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
4561 | fi | |
4562 | ||
4563 | if test "$wxUSE_RADIOBOX" = yes; then | |
4564 | echo "$ac_t""yes" 1>&6 | |
4565 | else | |
4566 | echo "$ac_t""no" 1>&6 | |
4567 | fi | |
4568 | ||
4569 | ||
4570 | echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6 | |
d6a55c4b | 4571 | echo "configure:4572: checking "for --enable-radiobtn"" >&5 |
10f2d63a VZ |
4572 | no_cache=0 |
4573 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
4574 | if test "${enable_radiobtn+set}" = set; then | |
4575 | enableval="$enable_radiobtn" | |
4576 | ||
4577 | if test "$enableval" = yes; then | |
4578 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
4579 | else | |
4580 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
4581 | fi | |
4582 | ||
4583 | else | |
4584 | ||
4585 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
4586 | if test "x$LINE" != x ; then | |
4587 | eval "DEFAULT_$LINE" | |
4588 | else | |
4589 | no_cache=1 | |
4590 | fi | |
4591 | ||
4592 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
4593 | ||
4594 | fi | |
4595 | ||
4596 | ||
4597 | eval "$ac_cv_use_radiobtn" | |
4598 | if test "$no_cache" != 1; then | |
4599 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
4600 | fi | |
4601 | ||
4602 | if test "$wxUSE_RADIOBTN" = yes; then | |
4603 | echo "$ac_t""yes" 1>&6 | |
4604 | else | |
4605 | echo "$ac_t""no" 1>&6 | |
4606 | fi | |
4607 | ||
4608 | ||
4609 | echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6 | |
d6a55c4b | 4610 | echo "configure:4611: checking "for --enable-sash"" >&5 |
10f2d63a VZ |
4611 | no_cache=0 |
4612 | # Check whether --enable-sash or --disable-sash was given. | |
4613 | if test "${enable_sash+set}" = set; then | |
4614 | enableval="$enable_sash" | |
4615 | ||
4616 | if test "$enableval" = yes; then | |
4617 | ac_cv_use_sash='wxUSE_SASH=yes' | |
4618 | else | |
4619 | ac_cv_use_sash='wxUSE_SASH=no' | |
4620 | fi | |
4621 | ||
4622 | else | |
4623 | ||
4624 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
4625 | if test "x$LINE" != x ; then | |
4626 | eval "DEFAULT_$LINE" | |
4627 | else | |
4628 | no_cache=1 | |
4629 | fi | |
4630 | ||
4631 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
4632 | ||
4633 | fi | |
4634 | ||
4635 | ||
4636 | eval "$ac_cv_use_sash" | |
4637 | if test "$no_cache" != 1; then | |
4638 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
4639 | fi | |
4640 | ||
4641 | if test "$wxUSE_SASH" = yes; then | |
4642 | echo "$ac_t""yes" 1>&6 | |
4643 | else | |
4644 | echo "$ac_t""no" 1>&6 | |
4645 | fi | |
4646 | ||
4647 | ||
4648 | echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6 | |
d6a55c4b | 4649 | echo "configure:4650: checking "for --enable-scrollbar"" >&5 |
10f2d63a VZ |
4650 | no_cache=0 |
4651 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
4652 | if test "${enable_scrollbar+set}" = set; then | |
4653 | enableval="$enable_scrollbar" | |
4654 | ||
4655 | if test "$enableval" = yes; then | |
4656 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
4657 | else | |
4658 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
4659 | fi | |
4660 | ||
4661 | else | |
4662 | ||
4663 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
4664 | if test "x$LINE" != x ; then | |
4665 | eval "DEFAULT_$LINE" | |
4666 | else | |
4667 | no_cache=1 | |
4668 | fi | |
4669 | ||
4670 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
4671 | ||
4672 | fi | |
4673 | ||
4674 | ||
4675 | eval "$ac_cv_use_scrollbar" | |
4676 | if test "$no_cache" != 1; then | |
4677 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
4678 | fi | |
4679 | ||
4680 | if test "$wxUSE_SCROLLBAR" = yes; then | |
4681 | echo "$ac_t""yes" 1>&6 | |
4682 | else | |
4683 | echo "$ac_t""no" 1>&6 | |
4684 | fi | |
4685 | ||
4686 | ||
4687 | echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6 | |
d6a55c4b | 4688 | echo "configure:4689: checking "for --enable-slider"" >&5 |
10f2d63a VZ |
4689 | no_cache=0 |
4690 | # Check whether --enable-slider or --disable-slider was given. | |
4691 | if test "${enable_slider+set}" = set; then | |
4692 | enableval="$enable_slider" | |
4693 | ||
4694 | if test "$enableval" = yes; then | |
4695 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
4696 | else | |
4697 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
4698 | fi | |
4699 | ||
4700 | else | |
4701 | ||
4702 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
4703 | if test "x$LINE" != x ; then | |
4704 | eval "DEFAULT_$LINE" | |
4705 | else | |
4706 | no_cache=1 | |
4707 | fi | |
4708 | ||
4709 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
4710 | ||
4711 | fi | |
4712 | ||
4713 | ||
4714 | eval "$ac_cv_use_slider" | |
4715 | if test "$no_cache" != 1; then | |
4716 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
4717 | fi | |
4718 | ||
4719 | if test "$wxUSE_SLIDER" = yes; then | |
4720 | echo "$ac_t""yes" 1>&6 | |
4721 | else | |
4722 | echo "$ac_t""no" 1>&6 | |
4723 | fi | |
4724 | ||
4725 | ||
4726 | echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6 | |
d6a55c4b | 4727 | echo "configure:4728: checking "for --enable-spinbtn"" >&5 |
10f2d63a VZ |
4728 | no_cache=0 |
4729 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
4730 | if test "${enable_spinbtn+set}" = set; then | |
4731 | enableval="$enable_spinbtn" | |
4732 | ||
4733 | if test "$enableval" = yes; then | |
4734 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
4735 | else | |
4736 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
4737 | fi | |
4738 | ||
4739 | else | |
4740 | ||
4741 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
4742 | if test "x$LINE" != x ; then | |
4743 | eval "DEFAULT_$LINE" | |
4744 | else | |
4745 | no_cache=1 | |
4746 | fi | |
4747 | ||
4748 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
4749 | ||
4750 | fi | |
4751 | ||
4752 | ||
4753 | eval "$ac_cv_use_spinbtn" | |
4754 | if test "$no_cache" != 1; then | |
4755 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
4756 | fi | |
4757 | ||
4758 | if test "$wxUSE_SPINBTN" = yes; then | |
4759 | echo "$ac_t""yes" 1>&6 | |
4760 | else | |
4761 | echo "$ac_t""no" 1>&6 | |
4762 | fi | |
4763 | ||
4764 | ||
56cfaa52 | 4765 | echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6 |
d6a55c4b | 4766 | echo "configure:4767: checking "for --enable-spinctrl"" >&5 |
56cfaa52 RR |
4767 | no_cache=0 |
4768 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
4769 | if test "${enable_spinctrl+set}" = set; then | |
4770 | enableval="$enable_spinctrl" | |
4771 | ||
4772 | if test "$enableval" = yes; then | |
4773 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
4774 | else | |
4775 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
4776 | fi | |
4777 | ||
4778 | else | |
4779 | ||
4780 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
4781 | if test "x$LINE" != x ; then | |
4782 | eval "DEFAULT_$LINE" | |
4783 | else | |
4784 | no_cache=1 | |
4785 | fi | |
4786 | ||
4787 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
4788 | ||
4789 | fi | |
4790 | ||
4791 | ||
4792 | eval "$ac_cv_use_spinctrl" | |
4793 | if test "$no_cache" != 1; then | |
4794 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
4795 | fi | |
4796 | ||
4797 | if test "$wxUSE_SPINCTRL" = yes; then | |
4798 | echo "$ac_t""yes" 1>&6 | |
4799 | else | |
4800 | echo "$ac_t""no" 1>&6 | |
4801 | fi | |
4802 | ||
4803 | ||
10f2d63a | 4804 | echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6 |
d6a55c4b | 4805 | echo "configure:4806: checking "for --enable-splitter"" >&5 |
10f2d63a VZ |
4806 | no_cache=0 |
4807 | # Check whether --enable-splitter or --disable-splitter was given. | |
4808 | if test "${enable_splitter+set}" = set; then | |
4809 | enableval="$enable_splitter" | |
4810 | ||
4811 | if test "$enableval" = yes; then | |
4812 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
4813 | else | |
4814 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
4815 | fi | |
4816 | ||
4817 | else | |
4818 | ||
4819 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
4820 | if test "x$LINE" != x ; then | |
4821 | eval "DEFAULT_$LINE" | |
4822 | else | |
4823 | no_cache=1 | |
4824 | fi | |
4825 | ||
4826 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
4827 | ||
4828 | fi | |
4829 | ||
4830 | ||
4831 | eval "$ac_cv_use_splitter" | |
4832 | if test "$no_cache" != 1; then | |
4833 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
4834 | fi | |
4835 | ||
4836 | if test "$wxUSE_SPLITTER" = yes; then | |
4837 | echo "$ac_t""yes" 1>&6 | |
4838 | else | |
4839 | echo "$ac_t""no" 1>&6 | |
4840 | fi | |
4841 | ||
4842 | ||
4843 | echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6 | |
d6a55c4b | 4844 | echo "configure:4845: checking "for --enable-statbmp"" >&5 |
10f2d63a VZ |
4845 | no_cache=0 |
4846 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
4847 | if test "${enable_statbmp+set}" = set; then | |
4848 | enableval="$enable_statbmp" | |
4849 | ||
4850 | if test "$enableval" = yes; then | |
4851 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
4852 | else | |
4853 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
4854 | fi | |
4855 | ||
4856 | else | |
4857 | ||
4858 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
4859 | if test "x$LINE" != x ; then | |
4860 | eval "DEFAULT_$LINE" | |
4861 | else | |
4862 | no_cache=1 | |
4863 | fi | |
4864 | ||
4865 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
4866 | ||
4867 | fi | |
4868 | ||
4869 | ||
4870 | eval "$ac_cv_use_statbmp" | |
4871 | if test "$no_cache" != 1; then | |
4872 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
4873 | fi | |
4874 | ||
4875 | if test "$wxUSE_STATBMP" = yes; then | |
4876 | echo "$ac_t""yes" 1>&6 | |
4877 | else | |
4878 | echo "$ac_t""no" 1>&6 | |
4879 | fi | |
4880 | ||
4881 | ||
4882 | echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6 | |
d6a55c4b | 4883 | echo "configure:4884: checking "for --enable-statbox"" >&5 |
10f2d63a VZ |
4884 | no_cache=0 |
4885 | # Check whether --enable-statbox or --disable-statbox was given. | |
4886 | if test "${enable_statbox+set}" = set; then | |
4887 | enableval="$enable_statbox" | |
4888 | ||
4889 | if test "$enableval" = yes; then | |
4890 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
4891 | else | |
4892 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
4893 | fi | |
4894 | ||
4895 | else | |
4896 | ||
4897 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
4898 | if test "x$LINE" != x ; then | |
4899 | eval "DEFAULT_$LINE" | |
4900 | else | |
4901 | no_cache=1 | |
4902 | fi | |
4903 | ||
4904 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
4905 | ||
4906 | fi | |
4907 | ||
4908 | ||
4909 | eval "$ac_cv_use_statbox" | |
4910 | if test "$no_cache" != 1; then | |
4911 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
4912 | fi | |
4913 | ||
4914 | if test "$wxUSE_STATBOX" = yes; then | |
4915 | echo "$ac_t""yes" 1>&6 | |
4916 | else | |
4917 | echo "$ac_t""no" 1>&6 | |
4918 | fi | |
4919 | ||
4920 | ||
4921 | echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6 | |
d6a55c4b | 4922 | echo "configure:4923: checking "for --enable-statline"" >&5 |
10f2d63a VZ |
4923 | no_cache=0 |
4924 | # Check whether --enable-statline or --disable-statline was given. | |
4925 | if test "${enable_statline+set}" = set; then | |
4926 | enableval="$enable_statline" | |
4927 | ||
4928 | if test "$enableval" = yes; then | |
4929 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
4930 | else | |
4931 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
4932 | fi | |
4933 | ||
4934 | else | |
4935 | ||
4936 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
4937 | if test "x$LINE" != x ; then | |
4938 | eval "DEFAULT_$LINE" | |
4939 | else | |
4940 | no_cache=1 | |
4941 | fi | |
4942 | ||
4943 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
4944 | ||
4945 | fi | |
4946 | ||
4947 | ||
4948 | eval "$ac_cv_use_statline" | |
4949 | if test "$no_cache" != 1; then | |
4950 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
4951 | fi | |
4952 | ||
4953 | if test "$wxUSE_STATLINE" = yes; then | |
4954 | echo "$ac_t""yes" 1>&6 | |
4955 | else | |
4956 | echo "$ac_t""no" 1>&6 | |
4957 | fi | |
4958 | ||
4959 | ||
4960 | echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6 | |
d6a55c4b | 4961 | echo "configure:4962: checking "for --enable-statusbar"" >&5 |
10f2d63a VZ |
4962 | no_cache=0 |
4963 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
4964 | if test "${enable_statusbar+set}" = set; then | |
4965 | enableval="$enable_statusbar" | |
4966 | ||
4967 | if test "$enableval" = yes; then | |
4968 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
4969 | else | |
4970 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
4971 | fi | |
4972 | ||
4973 | else | |
4974 | ||
4975 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
4976 | if test "x$LINE" != x ; then | |
4977 | eval "DEFAULT_$LINE" | |
4978 | else | |
4979 | no_cache=1 | |
4980 | fi | |
4981 | ||
4982 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
4983 | ||
4984 | fi | |
4985 | ||
4986 | ||
4987 | eval "$ac_cv_use_statusbar" | |
4988 | if test "$no_cache" != 1; then | |
4989 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
4990 | fi | |
4991 | ||
4992 | if test "$wxUSE_STATUSBAR" = yes; then | |
4993 | echo "$ac_t""yes" 1>&6 | |
4994 | else | |
4995 | echo "$ac_t""no" 1>&6 | |
4996 | fi | |
4997 | ||
4998 | ||
4999 | echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6 | |
d6a55c4b | 5000 | echo "configure:5001: checking "for --enable-tabdialog"" >&5 |
10f2d63a VZ |
5001 | no_cache=0 |
5002 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
5003 | if test "${enable_tabdialog+set}" = set; then | |
5004 | enableval="$enable_tabdialog" | |
5005 | ||
5006 | if test "$enableval" = yes; then | |
5007 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
5008 | else | |
5009 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
5010 | fi | |
5011 | ||
5012 | else | |
5013 | ||
5014 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
5015 | if test "x$LINE" != x ; then | |
5016 | eval "DEFAULT_$LINE" | |
5017 | else | |
5018 | no_cache=1 | |
5019 | fi | |
5020 | ||
5021 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
5022 | ||
5023 | fi | |
5024 | ||
5025 | ||
5026 | eval "$ac_cv_use_tabdialog" | |
5027 | if test "$no_cache" != 1; then | |
5028 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
5029 | fi | |
5030 | ||
5031 | if test "$wxUSE_TABDIALOG" = yes; then | |
5032 | echo "$ac_t""yes" 1>&6 | |
5033 | else | |
5034 | echo "$ac_t""no" 1>&6 | |
5035 | fi | |
5036 | ||
5037 | ||
5038 | echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6 | |
d6a55c4b | 5039 | echo "configure:5040: checking "for --enable-toolbar"" >&5 |
10f2d63a VZ |
5040 | no_cache=0 |
5041 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
5042 | if test "${enable_toolbar+set}" = set; then | |
5043 | enableval="$enable_toolbar" | |
5044 | ||
5045 | if test "$enableval" = yes; then | |
5046 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
5047 | else | |
5048 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
5049 | fi | |
5050 | ||
5051 | else | |
5052 | ||
5053 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
5054 | if test "x$LINE" != x ; then | |
5055 | eval "DEFAULT_$LINE" | |
5056 | else | |
5057 | no_cache=1 | |
5058 | fi | |
5059 | ||
5060 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
5061 | ||
5062 | fi | |
5063 | ||
5064 | ||
5065 | eval "$ac_cv_use_toolbar" | |
5066 | if test "$no_cache" != 1; then | |
5067 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
5068 | fi | |
5069 | ||
5070 | if test "$wxUSE_TOOLBAR" = yes; then | |
5071 | echo "$ac_t""yes" 1>&6 | |
5072 | else | |
5073 | echo "$ac_t""no" 1>&6 | |
5074 | fi | |
5075 | ||
5076 | ||
360d6699 | 5077 | echo $ac_n "checking "for --enable-tbarnative"""... $ac_c" 1>&6 |
d6a55c4b | 5078 | echo "configure:5079: checking "for --enable-tbarnative"" >&5 |
360d6699 VZ |
5079 | no_cache=0 |
5080 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
5081 | if test "${enable_tbarnative+set}" = set; then | |
5082 | enableval="$enable_tbarnative" | |
5083 | ||
5084 | if test "$enableval" = yes; then | |
5085 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
5086 | else | |
5087 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
5088 | fi | |
5089 | ||
5090 | else | |
5091 | ||
5092 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
5093 | if test "x$LINE" != x ; then | |
5094 | eval "DEFAULT_$LINE" | |
5095 | else | |
5096 | no_cache=1 | |
5097 | fi | |
5098 | ||
5099 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
5100 | ||
5101 | fi | |
5102 | ||
5103 | ||
5104 | eval "$ac_cv_use_tbarnative" | |
5105 | if test "$no_cache" != 1; then | |
5106 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
5107 | fi | |
5108 | ||
5109 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
5110 | echo "$ac_t""yes" 1>&6 | |
5111 | else | |
5112 | echo "$ac_t""no" 1>&6 | |
5113 | fi | |
5114 | ||
5115 | ||
5116 | echo $ac_n "checking "for --enable-tbarsmpl"""... $ac_c" 1>&6 | |
d6a55c4b | 5117 | echo "configure:5118: checking "for --enable-tbarsmpl"" >&5 |
360d6699 VZ |
5118 | no_cache=0 |
5119 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
5120 | if test "${enable_tbarsmpl+set}" = set; then | |
5121 | enableval="$enable_tbarsmpl" | |
5122 | ||
5123 | if test "$enableval" = yes; then | |
5124 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
5125 | else | |
5126 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
5127 | fi | |
5128 | ||
5129 | else | |
5130 | ||
5131 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
5132 | if test "x$LINE" != x ; then | |
5133 | eval "DEFAULT_$LINE" | |
5134 | else | |
5135 | no_cache=1 | |
5136 | fi | |
5137 | ||
5138 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
5139 | ||
5140 | fi | |
5141 | ||
5142 | ||
5143 | eval "$ac_cv_use_tbarsmpl" | |
5144 | if test "$no_cache" != 1; then | |
5145 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
5146 | fi | |
5147 | ||
5148 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
5149 | echo "$ac_t""yes" 1>&6 | |
5150 | else | |
5151 | echo "$ac_t""no" 1>&6 | |
5152 | fi | |
5153 | ||
5154 | ||
10f2d63a | 5155 | echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6 |
d6a55c4b | 5156 | echo "configure:5157: checking "for --enable-treectrl"" >&5 |
10f2d63a VZ |
5157 | no_cache=0 |
5158 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
5159 | if test "${enable_treectrl+set}" = set; then | |
5160 | enableval="$enable_treectrl" | |
5161 | ||
5162 | if test "$enableval" = yes; then | |
5163 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
5164 | else | |
5165 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
5166 | fi | |
5167 | ||
5168 | else | |
5169 | ||
5170 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
5171 | if test "x$LINE" != x ; then | |
5172 | eval "DEFAULT_$LINE" | |
5173 | else | |
5174 | no_cache=1 | |
5175 | fi | |
5176 | ||
5177 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
5178 | ||
5179 | fi | |
5180 | ||
5181 | ||
5182 | eval "$ac_cv_use_treectrl" | |
5183 | if test "$no_cache" != 1; then | |
5184 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
5185 | fi | |
5186 | ||
5187 | if test "$wxUSE_TREECTRL" = yes; then | |
5188 | echo "$ac_t""yes" 1>&6 | |
5189 | else | |
5190 | echo "$ac_t""no" 1>&6 | |
5191 | fi | |
5192 | ||
5193 | ||
5194 | ||
5195 | ||
5196 | echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6 | |
d6a55c4b | 5197 | echo "configure:5198: checking "for --enable-commondlg"" >&5 |
10f2d63a VZ |
5198 | no_cache=0 |
5199 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
5200 | if test "${enable_commondlg+set}" = set; then | |
5201 | enableval="$enable_commondlg" | |
5202 | ||
5203 | if test "$enableval" = yes; then | |
5204 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
5205 | else | |
5206 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
5207 | fi | |
5208 | ||
5209 | else | |
5210 | ||
5211 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
5212 | if test "x$LINE" != x ; then | |
5213 | eval "DEFAULT_$LINE" | |
5214 | else | |
5215 | no_cache=1 | |
5216 | fi | |
5217 | ||
5218 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
5219 | ||
5220 | fi | |
5221 | ||
5222 | ||
5223 | eval "$ac_cv_use_commondlg" | |
5224 | if test "$no_cache" != 1; then | |
5225 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
5226 | fi | |
5227 | ||
5228 | if test "$wxUSE_COMMONDLGS" = yes; then | |
5229 | echo "$ac_t""yes" 1>&6 | |
5230 | else | |
5231 | echo "$ac_t""no" 1>&6 | |
5232 | fi | |
5233 | ||
5234 | ||
5235 | echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6 | |
d6a55c4b | 5236 | echo "configure:5237: checking "for --enable-dirdlg"" >&5 |
10f2d63a VZ |
5237 | no_cache=0 |
5238 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
5239 | if test "${enable_dirdlg+set}" = set; then | |
5240 | enableval="$enable_dirdlg" | |
5241 | ||
5242 | if test "$enableval" = yes; then | |
5243 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
5244 | else | |
5245 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
5246 | fi | |
5247 | ||
5248 | else | |
5249 | ||
5250 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
5251 | if test "x$LINE" != x ; then | |
5252 | eval "DEFAULT_$LINE" | |
5253 | else | |
5254 | no_cache=1 | |
5255 | fi | |
5256 | ||
5257 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
5258 | ||
5259 | fi | |
5260 | ||
5261 | ||
5262 | eval "$ac_cv_use_dirdlg" | |
5263 | if test "$no_cache" != 1; then | |
5264 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
5265 | fi | |
5266 | ||
5267 | if test "$wxUSE_DIRDLG" = yes; then | |
5268 | echo "$ac_t""yes" 1>&6 | |
5269 | else | |
5270 | echo "$ac_t""no" 1>&6 | |
5271 | fi | |
5272 | ||
5273 | ||
5274 | echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6 | |
d6a55c4b | 5275 | echo "configure:5276: checking "for --enable-textdlg"" >&5 |
10f2d63a VZ |
5276 | no_cache=0 |
5277 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
5278 | if test "${enable_textdlg+set}" = set; then | |
5279 | enableval="$enable_textdlg" | |
5280 | ||
5281 | if test "$enableval" = yes; then | |
5282 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
5283 | else | |
5284 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
5285 | fi | |
5286 | ||
5287 | else | |
5288 | ||
5289 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
5290 | if test "x$LINE" != x ; then | |
5291 | eval "DEFAULT_$LINE" | |
5292 | else | |
5293 | no_cache=1 | |
5294 | fi | |
5295 | ||
5296 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
5297 | ||
5298 | fi | |
5299 | ||
5300 | ||
5301 | eval "$ac_cv_use_textdlg" | |
5302 | if test "$no_cache" != 1; then | |
5303 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
5304 | fi | |
5305 | ||
5306 | if test "$wxUSE_TEXTDLG" = yes; then | |
5307 | echo "$ac_t""yes" 1>&6 | |
5308 | else | |
5309 | echo "$ac_t""no" 1>&6 | |
5310 | fi | |
5311 | ||
5312 | ||
5313 | echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6 | |
d6a55c4b | 5314 | echo "configure:5315: checking "for --enable-tipdlg"" >&5 |
10f2d63a VZ |
5315 | no_cache=0 |
5316 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
5317 | if test "${enable_tipdlg+set}" = set; then | |
5318 | enableval="$enable_tipdlg" | |
5319 | ||
5320 | if test "$enableval" = yes; then | |
5321 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
5322 | else | |
5323 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
5324 | fi | |
5325 | ||
5326 | else | |
5327 | ||
5328 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
5329 | if test "x$LINE" != x ; then | |
5330 | eval "DEFAULT_$LINE" | |
5331 | else | |
5332 | no_cache=1 | |
5333 | fi | |
5334 | ||
5335 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
5336 | ||
5337 | fi | |
5338 | ||
5339 | ||
5340 | eval "$ac_cv_use_tipdlg" | |
5341 | if test "$no_cache" != 1; then | |
5342 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
5343 | fi | |
5344 | ||
5345 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
5346 | echo "$ac_t""yes" 1>&6 | |
5347 | else | |
5348 | echo "$ac_t""no" 1>&6 | |
5349 | fi | |
5350 | ||
5351 | ||
5352 | echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6 | |
d6a55c4b | 5353 | echo "configure:5354: checking "for --enable-progressdlg"" >&5 |
10f2d63a VZ |
5354 | no_cache=0 |
5355 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
5356 | if test "${enable_progressdlg+set}" = set; then | |
5357 | enableval="$enable_progressdlg" | |
5358 | ||
5359 | if test "$enableval" = yes; then | |
5360 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
5361 | else | |
5362 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
5363 | fi | |
5364 | ||
5365 | else | |
5366 | ||
5367 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
5368 | if test "x$LINE" != x ; then | |
5369 | eval "DEFAULT_$LINE" | |
5370 | else | |
5371 | no_cache=1 | |
5372 | fi | |
5373 | ||
5374 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
5375 | ||
5376 | fi | |
5377 | ||
5378 | ||
5379 | eval "$ac_cv_use_progressdlg" | |
5380 | if test "$no_cache" != 1; then | |
5381 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
5382 | fi | |
5383 | ||
5384 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
5385 | echo "$ac_t""yes" 1>&6 | |
5386 | else | |
5387 | echo "$ac_t""no" 1>&6 | |
5388 | fi | |
5389 | ||
5390 | ||
5391 | echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6 | |
d6a55c4b | 5392 | echo "configure:5393: checking "for --enable-miniframe"" >&5 |
10f2d63a VZ |
5393 | no_cache=0 |
5394 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
5395 | if test "${enable_miniframe+set}" = set; then | |
5396 | enableval="$enable_miniframe" | |
5397 | ||
5398 | if test "$enableval" = yes; then | |
5399 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
5400 | else | |
5401 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
5402 | fi | |
5403 | ||
5404 | else | |
5405 | ||
5406 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
5407 | if test "x$LINE" != x ; then | |
5408 | eval "DEFAULT_$LINE" | |
5409 | else | |
5410 | no_cache=1 | |
5411 | fi | |
5412 | ||
5413 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
5414 | ||
5415 | fi | |
5416 | ||
5417 | ||
5418 | eval "$ac_cv_use_miniframe" | |
5419 | if test "$no_cache" != 1; then | |
5420 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
5421 | fi | |
5422 | ||
5423 | if test "$wxUSE_MINIFRAME" = yes; then | |
5424 | echo "$ac_t""yes" 1>&6 | |
5425 | else | |
5426 | echo "$ac_t""no" 1>&6 | |
5427 | fi | |
5428 | ||
5429 | ||
5430 | echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6 | |
d6a55c4b | 5431 | echo "configure:5432: checking "for --enable-html"" >&5 |
10f2d63a VZ |
5432 | no_cache=0 |
5433 | # Check whether --enable-html or --disable-html was given. | |
5434 | if test "${enable_html+set}" = set; then | |
5435 | enableval="$enable_html" | |
5436 | ||
5437 | if test "$enableval" = yes; then | |
5438 | ac_cv_use_html='wxUSE_HTML=yes' | |
5439 | else | |
5440 | ac_cv_use_html='wxUSE_HTML=no' | |
5441 | fi | |
5442 | ||
5443 | else | |
5444 | ||
5445 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
5446 | if test "x$LINE" != x ; then | |
5447 | eval "DEFAULT_$LINE" | |
5448 | else | |
5449 | no_cache=1 | |
5450 | fi | |
5451 | ||
5452 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
5453 | ||
5454 | fi | |
5455 | ||
5456 | ||
5457 | eval "$ac_cv_use_html" | |
5458 | if test "$no_cache" != 1; then | |
5459 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
5460 | fi | |
5461 | ||
5462 | if test "$wxUSE_HTML" = yes; then | |
5463 | echo "$ac_t""yes" 1>&6 | |
5464 | else | |
5465 | echo "$ac_t""no" 1>&6 | |
5466 | fi | |
5467 | ||
5468 | ||
5469 | echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6 | |
d6a55c4b | 5470 | echo "configure:5471: checking "for --enable-tooltips"" >&5 |
10f2d63a VZ |
5471 | no_cache=0 |
5472 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
5473 | if test "${enable_tooltips+set}" = set; then | |
5474 | enableval="$enable_tooltips" | |
5475 | ||
5476 | if test "$enableval" = yes; then | |
5477 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
5478 | else | |
5479 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
5480 | fi | |
5481 | ||
5482 | else | |
5483 | ||
5484 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
5485 | if test "x$LINE" != x ; then | |
5486 | eval "DEFAULT_$LINE" | |
5487 | else | |
5488 | no_cache=1 | |
5489 | fi | |
5490 | ||
5491 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
5492 | ||
5493 | fi | |
5494 | ||
5495 | ||
5496 | eval "$ac_cv_use_tooltips" | |
5497 | if test "$no_cache" != 1; then | |
5498 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
5499 | fi | |
5500 | ||
5501 | if test "$wxUSE_TOOLTIPS" = yes; then | |
5502 | echo "$ac_t""yes" 1>&6 | |
5503 | else | |
5504 | echo "$ac_t""no" 1>&6 | |
5505 | fi | |
5506 | ||
5507 | ||
5508 | echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6 | |
d6a55c4b | 5509 | echo "configure:5510: checking "for --enable-splines"" >&5 |
10f2d63a VZ |
5510 | no_cache=0 |
5511 | # Check whether --enable-splines or --disable-splines was given. | |
5512 | if test "${enable_splines+set}" = set; then | |
5513 | enableval="$enable_splines" | |
5514 | ||
5515 | if test "$enableval" = yes; then | |
5516 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
5517 | else | |
5518 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
5519 | fi | |
5520 | ||
5521 | else | |
5522 | ||
5523 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
5524 | if test "x$LINE" != x ; then | |
5525 | eval "DEFAULT_$LINE" | |
5526 | else | |
5527 | no_cache=1 | |
5528 | fi | |
5529 | ||
5530 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
5531 | ||
5532 | fi | |
5533 | ||
5534 | ||
5535 | eval "$ac_cv_use_splines" | |
5536 | if test "$no_cache" != 1; then | |
5537 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
5538 | fi | |
5539 | ||
5540 | if test "$wxUSE_SPLINES" = yes; then | |
5541 | echo "$ac_t""yes" 1>&6 | |
5542 | else | |
5543 | echo "$ac_t""no" 1>&6 | |
5544 | fi | |
5545 | ||
5546 | ||
5547 | echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6 | |
d6a55c4b | 5548 | echo "configure:5549: checking "for --enable-validators"" >&5 |
10f2d63a VZ |
5549 | no_cache=0 |
5550 | # Check whether --enable-validators or --disable-validators was given. | |
5551 | if test "${enable_validators+set}" = set; then | |
5552 | enableval="$enable_validators" | |
5553 | ||
5554 | if test "$enableval" = yes; then | |
5555 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
5556 | else | |
5557 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
5558 | fi | |
5559 | ||
5560 | else | |
5561 | ||
5562 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
5563 | if test "x$LINE" != x ; then | |
5564 | eval "DEFAULT_$LINE" | |
5565 | else | |
5566 | no_cache=1 | |
5567 | fi | |
5568 | ||
5569 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
5570 | ||
5571 | fi | |
5572 | ||
5573 | ||
5574 | eval "$ac_cv_use_validators" | |
5575 | if test "$no_cache" != 1; then | |
5576 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
5577 | fi | |
5578 | ||
5579 | if test "$wxUSE_VALIDATORS" = yes; then | |
5580 | echo "$ac_t""yes" 1>&6 | |
5581 | else | |
5582 | echo "$ac_t""no" 1>&6 | |
5583 | fi | |
5584 | ||
5585 | ||
5586 | echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6 | |
d6a55c4b | 5587 | echo "configure:5588: checking "for --enable-busyinfo"" >&5 |
10f2d63a VZ |
5588 | no_cache=0 |
5589 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
5590 | if test "${enable_busyinfo+set}" = set; then | |
5591 | enableval="$enable_busyinfo" | |
5592 | ||
5593 | if test "$enableval" = yes; then | |
5594 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
5595 | else | |
5596 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
5597 | fi | |
5598 | ||
5599 | else | |
5600 | ||
5601 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
5602 | if test "x$LINE" != x ; then | |
5603 | eval "DEFAULT_$LINE" | |
5604 | else | |
5605 | no_cache=1 | |
5606 | fi | |
5607 | ||
5608 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
5609 | ||
5610 | fi | |
5611 | ||
5612 | ||
5613 | eval "$ac_cv_use_busyinfo" | |
5614 | if test "$no_cache" != 1; then | |
5615 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
5616 | fi | |
5617 | ||
5618 | if test "$wxUSE_BUSYINFO" = yes; then | |
5619 | echo "$ac_t""yes" 1>&6 | |
5620 | else | |
5621 | echo "$ac_t""no" 1>&6 | |
5622 | fi | |
5623 | ||
5624 | ||
9b33fe02 | 5625 | echo $ac_n "checking "for --enable-plot"""... $ac_c" 1>&6 |
d6a55c4b | 5626 | echo "configure:5627: checking "for --enable-plot"" >&5 |
9b33fe02 VZ |
5627 | no_cache=0 |
5628 | # Check whether --enable-plot or --disable-plot was given. | |
5629 | if test "${enable_plot+set}" = set; then | |
5630 | enableval="$enable_plot" | |
5631 | ||
5632 | if test "$enableval" = yes; then | |
5633 | ac_cv_use_plot='wxUSE_PLOT=yes' | |
5634 | else | |
5635 | ac_cv_use_plot='wxUSE_PLOT=no' | |
5636 | fi | |
5637 | ||
5638 | else | |
5639 | ||
5640 | LINE=`grep "wxUSE_PLOT" ${wx_arg_cache_file}` | |
5641 | if test "x$LINE" != x ; then | |
5642 | eval "DEFAULT_$LINE" | |
5643 | else | |
5644 | no_cache=1 | |
5645 | fi | |
5646 | ||
5647 | ac_cv_use_plot='wxUSE_PLOT='$DEFAULT_wxUSE_PLOT | |
5648 | ||
5649 | fi | |
5650 | ||
5651 | ||
5652 | eval "$ac_cv_use_plot" | |
5653 | if test "$no_cache" != 1; then | |
5654 | echo $ac_cv_use_plot >> ${wx_arg_cache_file}.tmp | |
5655 | fi | |
5656 | ||
5657 | if test "$wxUSE_PLOT" = yes; then | |
5658 | echo "$ac_t""yes" 1>&6 | |
5659 | else | |
5660 | echo "$ac_t""no" 1>&6 | |
5661 | fi | |
5662 | ||
5663 | ||
10f2d63a VZ |
5664 | |
5665 | ||
5666 | echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6 | |
d6a55c4b | 5667 | echo "configure:5668: checking "for --enable-gif"" >&5 |
10f2d63a VZ |
5668 | no_cache=0 |
5669 | # Check whether --enable-gif or --disable-gif was given. | |
5670 | if test "${enable_gif+set}" = set; then | |
5671 | enableval="$enable_gif" | |
5672 | ||
5673 | if test "$enableval" = yes; then | |
5674 | ac_cv_use_gif='wxUSE_GIF=yes' | |
5675 | else | |
5676 | ac_cv_use_gif='wxUSE_GIF=no' | |
5677 | fi | |
5678 | ||
5679 | else | |
5680 | ||
5681 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
5682 | if test "x$LINE" != x ; then | |
5683 | eval "DEFAULT_$LINE" | |
5684 | else | |
5685 | no_cache=1 | |
5686 | fi | |
5687 | ||
5688 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
5689 | ||
5690 | fi | |
5691 | ||
5692 | ||
5693 | eval "$ac_cv_use_gif" | |
5694 | if test "$no_cache" != 1; then | |
5695 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
5696 | fi | |
5697 | ||
5698 | if test "$wxUSE_GIF" = yes; then | |
5699 | echo "$ac_t""yes" 1>&6 | |
5700 | else | |
5701 | echo "$ac_t""no" 1>&6 | |
5702 | fi | |
5703 | ||
5704 | ||
5705 | echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6 | |
d6a55c4b | 5706 | echo "configure:5707: checking "for --enable-pcx"" >&5 |
10f2d63a VZ |
5707 | no_cache=0 |
5708 | # Check whether --enable-pcx or --disable-pcx was given. | |
5709 | if test "${enable_pcx+set}" = set; then | |
5710 | enableval="$enable_pcx" | |
5711 | ||
5712 | if test "$enableval" = yes; then | |
5713 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
5714 | else | |
5715 | ac_cv_use_pcx='wxUSE_PCX=no' | |
5716 | fi | |
5717 | ||
5718 | else | |
5719 | ||
5720 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
5721 | if test "x$LINE" != x ; then | |
5722 | eval "DEFAULT_$LINE" | |
5723 | else | |
5724 | no_cache=1 | |
5725 | fi | |
5726 | ||
5727 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
5728 | ||
5729 | fi | |
5730 | ||
5731 | ||
5732 | eval "$ac_cv_use_pcx" | |
5733 | if test "$no_cache" != 1; then | |
5734 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
5735 | fi | |
5736 | ||
5737 | if test "$wxUSE_PCX" = yes; then | |
5738 | echo "$ac_t""yes" 1>&6 | |
5739 | else | |
5740 | echo "$ac_t""no" 1>&6 | |
5741 | fi | |
5742 | ||
5743 | ||
5744 | echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6 | |
d6a55c4b | 5745 | echo "configure:5746: checking "for --enable-pnm"" >&5 |
10f2d63a VZ |
5746 | no_cache=0 |
5747 | # Check whether --enable-pnm or --disable-pnm was given. | |
5748 | if test "${enable_pnm+set}" = set; then | |
5749 | enableval="$enable_pnm" | |
5750 | ||
5751 | if test "$enableval" = yes; then | |
5752 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
5753 | else | |
5754 | ac_cv_use_pnm='wxUSE_PNM=no' | |
5755 | fi | |
5756 | ||
5757 | else | |
5758 | ||
5759 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
5760 | if test "x$LINE" != x ; then | |
5761 | eval "DEFAULT_$LINE" | |
5762 | else | |
5763 | no_cache=1 | |
5764 | fi | |
5765 | ||
5766 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
5767 | ||
5768 | fi | |
5769 | ||
5770 | ||
5771 | eval "$ac_cv_use_pnm" | |
5772 | if test "$no_cache" != 1; then | |
5773 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
5774 | fi | |
5775 | ||
5776 | if test "$wxUSE_PNM" = yes; then | |
5777 | echo "$ac_t""yes" 1>&6 | |
5778 | else | |
5779 | echo "$ac_t""no" 1>&6 | |
5780 | fi | |
5781 | ||
5782 | ||
b12915c1 VZ |
5783 | fi |
5784 | ||
10f2d63a VZ |
5785 | |
5786 | echo "saving argument cache $wx_arg_cache_file" | |
5787 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
5788 | ||
5789 | ||
5790 | ||
5791 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
d6a55c4b | 5792 | echo "configure:5793: checking for toolkit" >&5 |
10f2d63a VZ |
5793 | |
5794 | if test "$wxUSE_GUI" = "yes"; then | |
5795 | ||
b12915c1 VZ |
5796 | if test "$USE_BEOS" = 1; then |
5797 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } | |
5798 | fi | |
5799 | ||
10f2d63a VZ |
5800 | if test "$TOOLKIT_GIVEN" = 1; then |
5801 | for toolkit in `echo $ALL_TOOLKITS`; do | |
5802 | var=wxUSE_$toolkit | |
5803 | eval "value=\$${var}" | |
5804 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
5805 | done | |
5806 | else | |
5807 | for toolkit in `echo $ALL_TOOLKITS`; do | |
5808 | if test "$has_toolkit_in_cache" != 1; then | |
5809 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
5810 | else | |
5811 | var=DEFAULT_wxUSE_$toolkit | |
5812 | fi | |
5813 | eval "wxUSE_$toolkit=\$${var}" | |
5814 | done | |
5815 | fi | |
5816 | ||
ec14dd32 | 5817 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}` |
cf27ef00 | 5818 | |
ec14dd32 VZ |
5819 | case "${host}" in |
5820 | *-pc-os2_emx ) | |
5821 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
5822 | # PATH_IFS is autodetected by OS/2's configure (usually ';') | |
5823 | LEX_STEM="lexyy" | |
5824 | ;; | |
5825 | *) | |
5826 | PATH_IFS=':' | |
5827 | LEX_STEM="lex.yy" | |
5828 | ;; | |
5829 | esac | |
10f2d63a VZ |
5830 | |
5831 | case "$NUM_TOOLKITS" in | |
5832 | 1) | |
5833 | ;; | |
5834 | 0) | |
5835 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } | |
5836 | ;; | |
5837 | *) | |
5838 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } | |
5839 | esac | |
5840 | ||
5841 | for toolkit in `echo $ALL_TOOLKITS`; do | |
5842 | var=wxUSE_$toolkit | |
5843 | eval "value=\$${var}" | |
5844 | if test "x$value" != x; then | |
5845 | cache_var=CACHE_$toolkit | |
5846 | eval "cache=\$${cache_var}" | |
5847 | if test "$cache" = 1; then | |
5848 | echo "$var=$value" >> ${wx_arg_cache_file} | |
5849 | fi | |
5850 | if test "$value" = 1; then | |
5851 | echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6 | |
5852 | fi | |
5853 | fi | |
5854 | done | |
5855 | ||
5856 | else | |
cf27ef00 | 5857 | PATH_IFS=':' |
10f2d63a VZ |
5858 | echo "$ac_t""base only" 1>&6 |
5859 | fi | |
5860 | ||
5861 | ||
5862 | cat > confcache <<\EOF | |
5863 | # This file is a shell script that caches the results of configure | |
5864 | # tests run on this system so they can be shared between configure | |
5865 | # scripts and configure runs. It is not useful on other systems. | |
5866 | # If it contains results you don't want to keep, you may remove or edit it. | |
5867 | # | |
5868 | # By default, configure uses ./config.cache as the cache file, | |
5869 | # creating it if it does not exist already. You can give configure | |
5870 | # the --cache-file=FILE option to use a different cache file; that is | |
5871 | # what configure does when it calls configure scripts in | |
5872 | # subdirectories, so they share the cache. | |
5873 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
5874 | # config.status only pays attention to the cache file if you give it the | |
5875 | # --recheck option to rerun configure. | |
5876 | # | |
5877 | EOF | |
5878 | # The following way of writing the cache mishandles newlines in values, | |
5879 | # but we know of no workaround that is simple, portable, and efficient. | |
5880 | # So, don't put newlines in cache variables' values. | |
5881 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
5882 | # and sets the high bit in the cache file unless we assign to the vars. | |
5883 | (set) 2>&1 | | |
5884 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
5885 | *ac_space=\ *) | |
5886 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
5887 | # turns \\\\ into \\, and sed turns \\ into \). | |
5888 | sed -n \ | |
5889 | -e "s/'/'\\\\''/g" \ | |
5890 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
5891 | ;; | |
5892 | *) | |
5893 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5894 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
5895 | ;; | |
5896 | esac >> confcache | |
5897 | if cmp -s $cache_file confcache; then | |
5898 | : | |
5899 | else | |
5900 | if test -w $cache_file; then | |
5901 | echo "updating cache $cache_file" | |
5902 | cat confcache > $cache_file | |
5903 | else | |
5904 | echo "not updating unwritable cache $cache_file" | |
5905 | fi | |
5906 | fi | |
5907 | rm -f confcache | |
5908 | ||
5909 | ||
5910 | if eval "test $host != $build"; then | |
5911 | if eval "test $host_alias != NONE"; then | |
5912 | CC=$host_alias-gcc | |
5913 | CXX=$host_alias-c++ | |
5914 | AR=$host_alias-ar | |
5915 | RANLIB=$host_alias-ranlib | |
5916 | DLLTOOL=$host_alias-dlltool | |
5917 | LD=$host_alias-ld | |
5918 | NM=$host_alias-nm | |
5919 | STRIP=$host_alias-strip | |
5920 | fi | |
5921 | fi | |
5922 | ||
5923 | # Extract the first word of "gcc", so it can be a program name with args. | |
5924 | set dummy gcc; ac_word=$2 | |
5925 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d6a55c4b | 5926 | echo "configure:5927: checking for $ac_word" >&5 |
10f2d63a VZ |
5927 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
5928 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5929 | else | |
5930 | if test -n "$CC"; then | |
5931 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5932 | else | |
5933 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
5934 | ac_dummy="$PATH" | |
5935 | for ac_dir in $ac_dummy; do | |
5936 | test -z "$ac_dir" && ac_dir=. | |
5937 | if test -f $ac_dir/$ac_word; then | |
5938 | ac_cv_prog_CC="gcc" | |
5939 | break | |
5940 | fi | |
5941 | done | |
5942 | IFS="$ac_save_ifs" | |
5943 | fi | |
5944 | fi | |
5945 | CC="$ac_cv_prog_CC" | |
5946 | if test -n "$CC"; then | |
5947 | echo "$ac_t""$CC" 1>&6 | |
5948 | else | |
5949 | echo "$ac_t""no" 1>&6 | |
5950 | fi | |
5951 | ||
5952 | if test -z "$CC"; then | |
5953 | # Extract the first word of "cc", so it can be a program name with args. | |
5954 | set dummy cc; ac_word=$2 | |
5955 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d6a55c4b | 5956 | echo "configure:5957: checking for $ac_word" >&5 |
10f2d63a VZ |
5957 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
5958 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5959 | else | |
5960 | if test -n "$CC"; then | |
5961 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5962 | else | |
5963 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
5964 | ac_prog_rejected=no | |
5965 | ac_dummy="$PATH" | |
5966 | for ac_dir in $ac_dummy; do | |
5967 | test -z "$ac_dir" && ac_dir=. | |
5968 | if test -f $ac_dir/$ac_word; then | |
5969 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
5970 | ac_prog_rejected=yes | |
5971 | continue | |
5972 | fi | |
5973 | ac_cv_prog_CC="cc" | |
5974 | break | |
5975 | fi | |
5976 | done | |
5977 | IFS="$ac_save_ifs" | |
5978 | if test $ac_prog_rejected = yes; then | |
5979 | # We found a bogon in the path, so make sure we never use it. | |
5980 | set dummy $ac_cv_prog_CC | |
5981 | shift | |
5982 | if test $# -gt 0; then | |
5983 | # We chose a different compiler from the bogus one. | |
5984 | # However, it has the same basename, so the bogon will be chosen | |
5985 | # first if we set CC to just the basename; use the full file name. | |
5986 | shift | |
5987 | set dummy "$ac_dir/$ac_word" "$@" | |
5988 | shift | |
5989 | ac_cv_prog_CC="$@" | |
5990 | fi | |
5991 | fi | |
5992 | fi | |
5993 | fi | |
5994 | CC="$ac_cv_prog_CC" | |
5995 | if test -n "$CC"; then | |
5996 | echo "$ac_t""$CC" 1>&6 | |
5997 | else | |
5998 | echo "$ac_t""no" 1>&6 | |
5999 | fi | |
6000 | ||
6001 | if test -z "$CC"; then | |
6002 | case "`uname -s`" in | |
6003 | *win32* | *WIN32*) | |
6004 | # Extract the first word of "cl", so it can be a program name with args. | |
6005 | set dummy cl; ac_word=$2 | |
6006 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d6a55c4b | 6007 | echo "configure:6008: checking for $ac_word" >&5 |
10f2d63a VZ |
6008 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
6009 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6010 | else | |
6011 | if test -n "$CC"; then | |
6012 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6013 | else | |
6014 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6015 | ac_dummy="$PATH" | |
6016 | for ac_dir in $ac_dummy; do | |
6017 | test -z "$ac_dir" && ac_dir=. | |
6018 | if test -f $ac_dir/$ac_word; then | |
6019 | ac_cv_prog_CC="cl" | |
6020 | break | |
6021 | fi | |
6022 | done | |
6023 | IFS="$ac_save_ifs" | |
6024 | fi | |
6025 | fi | |
6026 | CC="$ac_cv_prog_CC" | |
6027 | if test -n "$CC"; then | |
6028 | echo "$ac_t""$CC" 1>&6 | |
6029 | else | |
6030 | echo "$ac_t""no" 1>&6 | |
6031 | fi | |
6032 | ;; | |
6033 | esac | |
6034 | fi | |
6035 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
6036 | fi | |
6037 | ||
6038 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
d6a55c4b | 6039 | echo "configure:6040: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
10f2d63a VZ |
6040 | |
6041 | ac_ext=c | |
6042 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6043 | ac_cpp='$CPP $CPPFLAGS' | |
6044 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6045 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6046 | cross_compiling=$ac_cv_prog_cc_cross | |
6047 | ||
6048 | cat > conftest.$ac_ext << EOF | |
6049 | ||
d6a55c4b | 6050 | #line 6051 "configure" |
10f2d63a VZ |
6051 | #include "confdefs.h" |
6052 | ||
6053 | main(){return(0);} | |
6054 | EOF | |
d6a55c4b | 6055 | if { (eval echo configure:6056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
6056 | ac_cv_prog_cc_works=yes |
6057 | # If we can't run a trivial program, we are probably using a cross compiler. | |
6058 | if (./conftest; exit) 2>/dev/null; then | |
6059 | ac_cv_prog_cc_cross=no | |
6060 | else | |
6061 | ac_cv_prog_cc_cross=yes | |
6062 | fi | |
6063 | else | |
6064 | echo "configure: failed program was:" >&5 | |
6065 | cat conftest.$ac_ext >&5 | |
6066 | ac_cv_prog_cc_works=no | |
6067 | fi | |
6068 | rm -fr conftest* | |
6069 | ac_ext=c | |
6070 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6071 | ac_cpp='$CPP $CPPFLAGS' | |
6072 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6073 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6074 | cross_compiling=$ac_cv_prog_cc_cross | |
6075 | ||
6076 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
6077 | if test $ac_cv_prog_cc_works = no; then | |
6078 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
6079 | fi | |
6080 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
d6a55c4b | 6081 | echo "configure:6082: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
10f2d63a VZ |
6082 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
6083 | cross_compiling=$ac_cv_prog_cc_cross | |
6084 | ||
6085 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
d6a55c4b | 6086 | echo "configure:6087: checking whether we are using GNU C" >&5 |
10f2d63a VZ |
6087 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
6088 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6089 | else | |
6090 | cat > conftest.c <<EOF | |
6091 | #ifdef __GNUC__ | |
6092 | yes; | |
6093 | #endif | |
6094 | EOF | |
d6a55c4b | 6095 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:6096: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
10f2d63a VZ |
6096 | ac_cv_prog_gcc=yes |
6097 | else | |
6098 | ac_cv_prog_gcc=no | |
6099 | fi | |
6100 | fi | |
6101 | ||
6102 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
6103 | ||
6104 | if test $ac_cv_prog_gcc = yes; then | |
6105 | GCC=yes | |
6106 | else | |
6107 | GCC= | |
6108 | fi | |
6109 | ||
6110 | ac_test_CFLAGS="${CFLAGS+set}" | |
6111 | ac_save_CFLAGS="$CFLAGS" | |
6112 | CFLAGS= | |
6113 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
d6a55c4b | 6114 | echo "configure:6115: checking whether ${CC-cc} accepts -g" >&5 |
10f2d63a VZ |
6115 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
6116 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6117 | else | |
6118 | echo 'void f(){}' > conftest.c | |
6119 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
6120 | ac_cv_prog_cc_g=yes | |
6121 | else | |
6122 | ac_cv_prog_cc_g=no | |
6123 | fi | |
6124 | rm -f conftest* | |
6125 | ||
6126 | fi | |
6127 | ||
6128 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
6129 | if test "$ac_test_CFLAGS" = set; then | |
6130 | CFLAGS="$ac_save_CFLAGS" | |
6131 | elif test $ac_cv_prog_cc_g = yes; then | |
6132 | if test "$GCC" = yes; then | |
6133 | CFLAGS="-g -O2" | |
6134 | else | |
6135 | CFLAGS="-g" | |
6136 | fi | |
6137 | else | |
6138 | if test "$GCC" = yes; then | |
6139 | CFLAGS="-O2" | |
6140 | else | |
6141 | CFLAGS= | |
6142 | fi | |
6143 | fi | |
6144 | ||
6145 | ||
6146 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
6147 | ||
6148 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
d6a55c4b | 6149 | echo "configure:6150: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
6150 | # On Suns, sometimes $CPP names a directory. |
6151 | if test -n "$CPP" && test -d "$CPP"; then | |
6152 | CPP= | |
6153 | fi | |
6154 | if test -z "$CPP"; then | |
6155 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
6156 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6157 | else | |
6158 | # This must be in double quotes, not single quotes, because CPP may get | |
6159 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
6160 | CPP="${CC-cc} -E" | |
6161 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6162 | # not just through cpp. | |
6163 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 6164 | #line 6165 "configure" |
10f2d63a VZ |
6165 | #include "confdefs.h" |
6166 | #include <assert.h> | |
6167 | Syntax Error | |
6168 | EOF | |
6169 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d6a55c4b | 6170 | { (eval echo configure:6171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
6171 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6172 | if test -z "$ac_err"; then | |
6173 | : | |
6174 | else | |
6175 | echo "$ac_err" >&5 | |
6176 | echo "configure: failed program was:" >&5 | |
6177 | cat conftest.$ac_ext >&5 | |
6178 | rm -rf conftest* | |
6179 | CPP="${CC-cc} -E -traditional-cpp" | |
6180 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 6181 | #line 6182 "configure" |
10f2d63a VZ |
6182 | #include "confdefs.h" |
6183 | #include <assert.h> | |
6184 | Syntax Error | |
6185 | EOF | |
6186 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d6a55c4b | 6187 | { (eval echo configure:6188: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
6188 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6189 | if test -z "$ac_err"; then | |
6190 | : | |
6191 | else | |
6192 | echo "$ac_err" >&5 | |
6193 | echo "configure: failed program was:" >&5 | |
6194 | cat conftest.$ac_ext >&5 | |
6195 | rm -rf conftest* | |
6196 | CPP="${CC-cc} -nologo -E" | |
6197 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 6198 | #line 6199 "configure" |
10f2d63a VZ |
6199 | #include "confdefs.h" |
6200 | #include <assert.h> | |
6201 | Syntax Error | |
6202 | EOF | |
6203 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d6a55c4b | 6204 | { (eval echo configure:6205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
6205 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6206 | if test -z "$ac_err"; then | |
6207 | : | |
6208 | else | |
6209 | echo "$ac_err" >&5 | |
6210 | echo "configure: failed program was:" >&5 | |
6211 | cat conftest.$ac_ext >&5 | |
6212 | rm -rf conftest* | |
6213 | CPP=/lib/cpp | |
6214 | fi | |
6215 | rm -f conftest* | |
6216 | fi | |
6217 | rm -f conftest* | |
6218 | fi | |
6219 | rm -f conftest* | |
6220 | ac_cv_prog_CPP="$CPP" | |
6221 | fi | |
6222 | CPP="$ac_cv_prog_CPP" | |
6223 | else | |
6224 | ac_cv_prog_CPP="$CPP" | |
6225 | fi | |
6226 | echo "$ac_t""$CPP" 1>&6 | |
6227 | ||
6228 | ||
6229 | if test $ac_cv_prog_gcc = yes; then | |
6230 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
d6a55c4b | 6231 | echo "configure:6232: checking whether ${CC-cc} needs -traditional" >&5 |
10f2d63a VZ |
6232 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
6233 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6234 | else | |
6235 | ac_pattern="Autoconf.*'x'" | |
6236 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 6237 | #line 6238 "configure" |
10f2d63a VZ |
6238 | #include "confdefs.h" |
6239 | #include <sgtty.h> | |
6240 | Autoconf TIOCGETP | |
6241 | EOF | |
6242 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6243 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
6244 | rm -rf conftest* | |
6245 | ac_cv_prog_gcc_traditional=yes | |
6246 | else | |
6247 | rm -rf conftest* | |
6248 | ac_cv_prog_gcc_traditional=no | |
6249 | fi | |
6250 | rm -f conftest* | |
6251 | ||
6252 | ||
6253 | if test $ac_cv_prog_gcc_traditional = no; then | |
6254 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 6255 | #line 6256 "configure" |
10f2d63a VZ |
6256 | #include "confdefs.h" |
6257 | #include <termio.h> | |
6258 | Autoconf TCGETA | |
6259 | EOF | |
6260 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6261 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
6262 | rm -rf conftest* | |
6263 | ac_cv_prog_gcc_traditional=yes | |
6264 | fi | |
6265 | rm -f conftest* | |
6266 | ||
6267 | fi | |
6268 | fi | |
6269 | ||
6270 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
6271 | if test $ac_cv_prog_gcc_traditional = yes; then | |
6272 | CC="$CC -traditional" | |
6273 | fi | |
6274 | fi | |
6275 | ||
6276 | ||
6277 | ||
6278 | ac_ext=C | |
6279 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6280 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6281 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6282 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6283 | cross_compiling=$ac_cv_prog_cxx_cross | |
6284 | ||
6285 | ||
6286 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
6287 | do | |
6288 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6289 | set dummy $ac_prog; ac_word=$2 | |
6290 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d6a55c4b | 6291 | echo "configure:6292: checking for $ac_word" >&5 |
10f2d63a VZ |
6292 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
6293 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6294 | else | |
6295 | if test -n "$CXX"; then | |
6296 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
6297 | else | |
6298 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6299 | ac_dummy="$PATH" | |
6300 | for ac_dir in $ac_dummy; do | |
6301 | test -z "$ac_dir" && ac_dir=. | |
6302 | if test -f $ac_dir/$ac_word; then | |
6303 | ac_cv_prog_CXX="$ac_prog" | |
6304 | break | |
6305 | fi | |
6306 | done | |
6307 | IFS="$ac_save_ifs" | |
6308 | fi | |
6309 | fi | |
6310 | CXX="$ac_cv_prog_CXX" | |
6311 | if test -n "$CXX"; then | |
6312 | echo "$ac_t""$CXX" 1>&6 | |
6313 | else | |
6314 | echo "$ac_t""no" 1>&6 | |
6315 | fi | |
6316 | ||
6317 | test -n "$CXX" && break | |
6318 | done | |
6319 | test -n "$CXX" || CXX="gcc" | |
6320 | ||
6321 | ||
6322 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
d6a55c4b | 6323 | echo "configure:6324: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
10f2d63a VZ |
6324 | |
6325 | ac_ext=C | |
6326 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6327 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6328 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6329 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6330 | cross_compiling=$ac_cv_prog_cxx_cross | |
6331 | ||
6332 | cat > conftest.$ac_ext << EOF | |
6333 | ||
d6a55c4b | 6334 | #line 6335 "configure" |
10f2d63a VZ |
6335 | #include "confdefs.h" |
6336 | ||
6337 | int main(){return(0);} | |
6338 | EOF | |
d6a55c4b | 6339 | if { (eval echo configure:6340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
6340 | ac_cv_prog_cxx_works=yes |
6341 | # If we can't run a trivial program, we are probably using a cross compiler. | |
6342 | if (./conftest; exit) 2>/dev/null; then | |
6343 | ac_cv_prog_cxx_cross=no | |
6344 | else | |
6345 | ac_cv_prog_cxx_cross=yes | |
6346 | fi | |
6347 | else | |
6348 | echo "configure: failed program was:" >&5 | |
6349 | cat conftest.$ac_ext >&5 | |
6350 | ac_cv_prog_cxx_works=no | |
6351 | fi | |
6352 | rm -fr conftest* | |
6353 | ac_ext=C | |
6354 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6355 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6356 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6357 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6358 | cross_compiling=$ac_cv_prog_cxx_cross | |
6359 | ||
6360 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
6361 | if test $ac_cv_prog_cxx_works = no; then | |
6362 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
6363 | fi | |
6364 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
d6a55c4b | 6365 | echo "configure:6366: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
10f2d63a VZ |
6366 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
6367 | cross_compiling=$ac_cv_prog_cxx_cross | |
6368 | ||
6369 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
d6a55c4b | 6370 | echo "configure:6371: checking whether we are using GNU C++" >&5 |
10f2d63a VZ |
6371 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
6372 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6373 | else | |
6374 | cat > conftest.C <<EOF | |
6375 | #ifdef __GNUC__ | |
6376 | yes; | |
6377 | #endif | |
6378 | EOF | |
d6a55c4b | 6379 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
10f2d63a VZ |
6380 | ac_cv_prog_gxx=yes |
6381 | else | |
6382 | ac_cv_prog_gxx=no | |
6383 | fi | |
6384 | fi | |
6385 | ||
6386 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 | |
6387 | ||
6388 | if test $ac_cv_prog_gxx = yes; then | |
6389 | GXX=yes | |
6390 | else | |
6391 | GXX= | |
6392 | fi | |
6393 | ||
6394 | ac_test_CXXFLAGS="${CXXFLAGS+set}" | |
6395 | ac_save_CXXFLAGS="$CXXFLAGS" | |
6396 | CXXFLAGS= | |
6397 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
d6a55c4b | 6398 | echo "configure:6399: checking whether ${CXX-g++} accepts -g" >&5 |
10f2d63a VZ |
6399 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
6400 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6401 | else | |
6402 | echo 'void f(){}' > conftest.cc | |
6403 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
6404 | ac_cv_prog_cxx_g=yes | |
6405 | else | |
6406 | ac_cv_prog_cxx_g=no | |
6407 | fi | |
6408 | rm -f conftest* | |
6409 | ||
6410 | fi | |
6411 | ||
6412 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
6413 | if test "$ac_test_CXXFLAGS" = set; then | |
6414 | CXXFLAGS="$ac_save_CXXFLAGS" | |
6415 | elif test $ac_cv_prog_cxx_g = yes; then | |
6416 | if test "$GXX" = yes; then | |
6417 | CXXFLAGS="-g -O2" | |
6418 | else | |
6419 | CXXFLAGS="-g" | |
6420 | fi | |
6421 | else | |
6422 | if test "$GXX" = yes; then | |
6423 | CXXFLAGS="-O2" | |
6424 | else | |
6425 | CXXFLAGS= | |
6426 | fi | |
6427 | fi | |
6428 | ||
6429 | ||
6430 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 | |
d6a55c4b | 6431 | echo "configure:6432: checking how to run the C++ preprocessor" >&5 |
10f2d63a VZ |
6432 | if test -z "$CXXCPP"; then |
6433 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
6434 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6435 | else | |
6436 | ac_ext=C | |
6437 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6438 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6439 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6440 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6441 | cross_compiling=$ac_cv_prog_cxx_cross | |
6442 | CXXCPP="${CXX-g++} -E" | |
6443 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 6444 | #line 6445 "configure" |
10f2d63a VZ |
6445 | #include "confdefs.h" |
6446 | #include <stdlib.h> | |
6447 | EOF | |
6448 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d6a55c4b | 6449 | { (eval echo configure:6450: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
6450 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6451 | if test -z "$ac_err"; then | |
6452 | : | |
6453 | else | |
6454 | echo "$ac_err" >&5 | |
6455 | echo "configure: failed program was:" >&5 | |
6456 | cat conftest.$ac_ext >&5 | |
6457 | rm -rf conftest* | |
6458 | CXXCPP=/lib/cpp | |
6459 | fi | |
6460 | rm -f conftest* | |
6461 | ac_cv_prog_CXXCPP="$CXXCPP" | |
6462 | ac_ext=C | |
6463 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6464 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6465 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6466 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6467 | cross_compiling=$ac_cv_prog_cxx_cross | |
6468 | fi | |
6469 | fi | |
6470 | CXXCPP="$ac_cv_prog_CXXCPP" | |
6471 | echo "$ac_t""$CXXCPP" 1>&6 | |
6472 | ||
6473 | ||
6474 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` | |
6475 | ||
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 | ||
6484 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6485 | set dummy ranlib; ac_word=$2 | |
6486 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d6a55c4b | 6487 | echo "configure:6488: checking for $ac_word" >&5 |
10f2d63a VZ |
6488 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
6489 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6490 | else | |
6491 | if test -n "$RANLIB"; then | |
6492 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6493 | else | |
6494 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6495 | ac_dummy="$PATH" | |
6496 | for ac_dir in $ac_dummy; do | |
6497 | test -z "$ac_dir" && ac_dir=. | |
6498 | if test -f $ac_dir/$ac_word; then | |
6499 | ac_cv_prog_RANLIB="ranlib" | |
6500 | break | |
6501 | fi | |
6502 | done | |
6503 | IFS="$ac_save_ifs" | |
6504 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
6505 | fi | |
6506 | fi | |
6507 | RANLIB="$ac_cv_prog_RANLIB" | |
6508 | if test -n "$RANLIB"; then | |
6509 | echo "$ac_t""$RANLIB" 1>&6 | |
6510 | else | |
6511 | echo "$ac_t""no" 1>&6 | |
6512 | fi | |
6513 | ||
6514 | ||
6515 | # Extract the first word of "ar", so it can be a program name with args. | |
6516 | set dummy ar; ac_word=$2 | |
6517 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d6a55c4b | 6518 | echo "configure:6519: checking for $ac_word" >&5 |
10f2d63a VZ |
6519 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
6520 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6521 | else | |
6522 | if test -n "$AR"; then | |
6523 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6524 | else | |
6525 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6526 | ac_dummy="$PATH" | |
6527 | for ac_dir in $ac_dummy; do | |
6528 | test -z "$ac_dir" && ac_dir=. | |
6529 | if test -f $ac_dir/$ac_word; then | |
6530 | ac_cv_prog_AR="ar" | |
6531 | break | |
6532 | fi | |
6533 | done | |
6534 | IFS="$ac_save_ifs" | |
6535 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
6536 | fi | |
6537 | fi | |
6538 | AR="$ac_cv_prog_AR" | |
6539 | if test -n "$AR"; then | |
6540 | echo "$ac_t""$AR" 1>&6 | |
6541 | else | |
6542 | echo "$ac_t""no" 1>&6 | |
6543 | fi | |
6544 | ||
6545 | ||
6546 | # Find a good install program. We prefer a C program (faster), | |
6547 | # so one script is as good as another. But avoid the broken or | |
6548 | # incompatible versions: | |
6549 | # SysV /etc/install, /usr/sbin/install | |
6550 | # SunOS /usr/etc/install | |
6551 | # IRIX /sbin/install | |
6552 | # AIX /bin/install | |
6553 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
6554 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
6555 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
6556 | # ./install, which can be erroneously created by make from ./install.sh. | |
6557 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
d6a55c4b | 6558 | echo "configure:6559: checking for a BSD compatible install" >&5 |
10f2d63a VZ |
6559 | if test -z "$INSTALL"; then |
6560 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
6561 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6562 | else | |
6563 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
6564 | for ac_dir in $PATH; do | |
6565 | # Account for people who put trailing slashes in PATH elements. | |
6566 | case "$ac_dir/" in | |
6567 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
6568 | *) | |
6569 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
6570 | # Don't use installbsd from OSF since it installs stuff as root | |
6571 | # by default. | |
6572 | for ac_prog in ginstall scoinst install; do | |
6573 | if test -f $ac_dir/$ac_prog; then | |
6574 | if test $ac_prog = install && | |
6575 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
6576 | # AIX install. It has an incompatible calling convention. | |
6577 | : | |
6578 | else | |
6579 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
6580 | break 2 | |
6581 | fi | |
6582 | fi | |
6583 | done | |
6584 | ;; | |
6585 | esac | |
6586 | done | |
6587 | IFS="$ac_save_IFS" | |
6588 | ||
6589 | fi | |
6590 | if test "${ac_cv_path_install+set}" = set; then | |
6591 | INSTALL="$ac_cv_path_install" | |
6592 | else | |
6593 | # As a last resort, use the slow shell script. We don't cache a | |
6594 | # path for INSTALL within a source directory, because that will | |
6595 | # break other packages using the cache if that directory is | |
6596 | # removed, or if the path is relative. | |
6597 | INSTALL="$ac_install_sh" | |
6598 | fi | |
6599 | fi | |
6600 | echo "$ac_t""$INSTALL" 1>&6 | |
6601 | ||
6602 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
6603 | # It thinks the first close brace ends the variable substitution. | |
6604 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
6605 | ||
6606 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
6607 | ||
6608 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
6609 | ||
6610 | ||
6611 | # Extract the first word of "strip", so it can be a program name with args. | |
6612 | set dummy strip; ac_word=$2 | |
6613 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d6a55c4b | 6614 | echo "configure:6615: checking for $ac_word" >&5 |
10f2d63a VZ |
6615 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
6616 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6617 | else | |
6618 | if test -n "$STRIP"; then | |
6619 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6620 | else | |
6621 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6622 | ac_dummy="$PATH" | |
6623 | for ac_dir in $ac_dummy; do | |
6624 | test -z "$ac_dir" && ac_dir=. | |
6625 | if test -f $ac_dir/$ac_word; then | |
6626 | ac_cv_prog_STRIP="strip" | |
6627 | break | |
6628 | fi | |
6629 | done | |
6630 | IFS="$ac_save_ifs" | |
6631 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" | |
6632 | fi | |
6633 | fi | |
6634 | STRIP="$ac_cv_prog_STRIP" | |
6635 | if test -n "$STRIP"; then | |
6636 | echo "$ac_t""$STRIP" 1>&6 | |
6637 | else | |
6638 | echo "$ac_t""no" 1>&6 | |
6639 | fi | |
6640 | ||
6641 | ||
6642 | echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6 | |
d6a55c4b | 6643 | echo "configure:6644: checking "make for VPATH support"" >&5 |
10f2d63a VZ |
6644 | cat - << EOF > confMake |
6645 | check : file | |
6646 | cp \$? \$@ | |
6647 | cp \$? final_file | |
6648 | EOF | |
6649 | ||
6650 | if test ! -d sub ; then | |
6651 | mkdir sub | |
6652 | fi | |
6653 | echo dummy > sub/file | |
6654 | ${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null | |
6655 | RESULT=$? | |
6656 | rm -f sub/file check final_file confMake | |
6657 | rmdir sub | |
6658 | if test "$RESULT" = 0; then | |
6659 | echo "$ac_t""yes" 1>&6 | |
6660 | else | |
6661 | echo "$ac_t""no" 1>&6 | |
6662 | { echo "configure: error: You need a make-utility that is able to use the variable | |
6663 | VPATH correctly. | |
6664 | If your version of make does not support VPATH correctly" 1>&2; exit 1; } | |
6665 | fi | |
6666 | ||
6667 | for ac_prog in 'bison -y' byacc | |
6668 | do | |
6669 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6670 | set dummy $ac_prog; ac_word=$2 | |
6671 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d6a55c4b | 6672 | echo "configure:6673: checking for $ac_word" >&5 |
10f2d63a VZ |
6673 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
6674 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6675 | else | |
6676 | if test -n "$YACC"; then | |
6677 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
6678 | else | |
6679 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6680 | ac_dummy="$PATH" | |
6681 | for ac_dir in $ac_dummy; do | |
6682 | test -z "$ac_dir" && ac_dir=. | |
6683 | if test -f $ac_dir/$ac_word; then | |
6684 | ac_cv_prog_YACC="$ac_prog" | |
6685 | break | |
6686 | fi | |
6687 | done | |
6688 | IFS="$ac_save_ifs" | |
6689 | fi | |
6690 | fi | |
6691 | YACC="$ac_cv_prog_YACC" | |
6692 | if test -n "$YACC"; then | |
6693 | echo "$ac_t""$YACC" 1>&6 | |
6694 | else | |
6695 | echo "$ac_t""no" 1>&6 | |
6696 | fi | |
6697 | ||
6698 | test -n "$YACC" && break | |
6699 | done | |
6700 | test -n "$YACC" || YACC="yacc" | |
6701 | ||
6702 | ||
6703 | # Extract the first word of "flex", so it can be a program name with args. | |
6704 | set dummy flex; ac_word=$2 | |
6705 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d6a55c4b | 6706 | echo "configure:6707: checking for $ac_word" >&5 |
10f2d63a VZ |
6707 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
6708 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6709 | else | |
6710 | if test -n "$LEX"; then | |
6711 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
6712 | else | |
6713 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6714 | ac_dummy="$PATH" | |
6715 | for ac_dir in $ac_dummy; do | |
6716 | test -z "$ac_dir" && ac_dir=. | |
6717 | if test -f $ac_dir/$ac_word; then | |
6718 | ac_cv_prog_LEX="flex" | |
6719 | break | |
6720 | fi | |
6721 | done | |
6722 | IFS="$ac_save_ifs" | |
6723 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
6724 | fi | |
6725 | fi | |
6726 | LEX="$ac_cv_prog_LEX" | |
6727 | if test -n "$LEX"; then | |
6728 | echo "$ac_t""$LEX" 1>&6 | |
6729 | else | |
6730 | echo "$ac_t""no" 1>&6 | |
6731 | fi | |
6732 | ||
6733 | if test -z "$LEXLIB" | |
6734 | then | |
6735 | case "$LEX" in | |
6736 | flex*) ac_lib=fl ;; | |
6737 | *) ac_lib=l ;; | |
6738 | esac | |
6739 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
d6a55c4b | 6740 | echo "configure:6741: checking for yywrap in -l$ac_lib" >&5 |
10f2d63a VZ |
6741 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
6742 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
6743 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6744 | else | |
6745 | ac_save_LIBS="$LIBS" | |
6746 | LIBS="-l$ac_lib $LIBS" | |
6747 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 6748 | #line 6749 "configure" |
10f2d63a VZ |
6749 | #include "confdefs.h" |
6750 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6751 | /* We use char because int might match the return type of a gcc2 | |
6752 | builtin and then its argument prototype would still apply. */ | |
6753 | char yywrap(); | |
6754 | ||
6755 | int main() { | |
6756 | yywrap() | |
6757 | ; return 0; } | |
6758 | EOF | |
d6a55c4b | 6759 | if { (eval echo configure:6760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
6760 | rm -rf conftest* |
6761 | eval "ac_cv_lib_$ac_lib_var=yes" | |
6762 | else | |
6763 | echo "configure: failed program was:" >&5 | |
6764 | cat conftest.$ac_ext >&5 | |
6765 | rm -rf conftest* | |
6766 | eval "ac_cv_lib_$ac_lib_var=no" | |
6767 | fi | |
6768 | rm -f conftest* | |
6769 | LIBS="$ac_save_LIBS" | |
6770 | ||
6771 | fi | |
6772 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
6773 | echo "$ac_t""yes" 1>&6 | |
6774 | LEXLIB="-l$ac_lib" | |
6775 | else | |
6776 | echo "$ac_t""no" 1>&6 | |
6777 | fi | |
6778 | ||
6779 | fi | |
6780 | ||
6781 | ||
6782 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
d6a55c4b | 6783 | echo "configure:6784: checking whether ln -s works" >&5 |
10f2d63a VZ |
6784 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
6785 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6786 | else | |
6787 | rm -f conftestdata | |
6788 | if ln -s X conftestdata 2>/dev/null | |
6789 | then | |
6790 | rm -f conftestdata | |
6791 | ac_cv_prog_LN_S="ln -s" | |
6792 | else | |
6793 | ac_cv_prog_LN_S=ln | |
6794 | fi | |
6795 | fi | |
6796 | LN_S="$ac_cv_prog_LN_S" | |
6797 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
6798 | echo "$ac_t""yes" 1>&6 | |
6799 | else | |
6800 | echo "$ac_t""no" 1>&6 | |
6801 | fi | |
6802 | ||
6803 | ||
6804 | ||
6805 | SEARCH_INCLUDE="\ | |
6806 | /usr/local/include \ | |
6807 | \ | |
6808 | /usr/Motif-1.2/include \ | |
6809 | /usr/Motif-2.1/include \ | |
6810 | \ | |
6811 | /usr/include/Motif1.2 \ | |
6812 | /opt/xpm/include/X11 \ | |
6813 | /opt/GBxpm/include/ \ | |
6814 | /opt/GBxpm/X11/include/ \ | |
6815 | \ | |
6816 | /usr/Motif1.2/include \ | |
6817 | /usr/dt/include \ | |
afc31813 VZ |
6818 | /usr/openwin/include \ |
6819 | \ | |
10f2d63a VZ |
6820 | /usr/include/Xm \ |
6821 | \ | |
6822 | /usr/X11R6/include \ | |
afc31813 | 6823 | /usr/X11R6.4/include \ |
10f2d63a VZ |
6824 | /usr/X11R5/include \ |
6825 | /usr/X11R4/include \ | |
6826 | \ | |
10f2d63a VZ |
6827 | /usr/include/X11R6 \ |
6828 | /usr/include/X11R5 \ | |
6829 | /usr/include/X11R4 \ | |
6830 | \ | |
6831 | /usr/local/X11R6/include \ | |
6832 | /usr/local/X11R5/include \ | |
6833 | /usr/local/X11R4/include \ | |
6834 | \ | |
6835 | /usr/local/include/X11R6 \ | |
6836 | /usr/local/include/X11R5 \ | |
6837 | /usr/local/include/X11R4 \ | |
6838 | \ | |
6839 | /usr/X11/include \ | |
6840 | /usr/include/X11 \ | |
6841 | /usr/local/X11/include \ | |
6842 | /usr/local/include/X11 \ | |
6843 | \ | |
6844 | /usr/X386/include \ | |
6845 | /usr/x386/include \ | |
6846 | /usr/XFree86/include/X11 \ | |
6847 | \ | |
cf27ef00 | 6848 | X:/XFree86/include \ |
ec14dd32 VZ |
6849 | X:/XFree86/include/X11 \ |
6850 | \ | |
10f2d63a VZ |
6851 | /usr/include/gtk \ |
6852 | /usr/local/include/gtk \ | |
6853 | /usr/include/glib \ | |
6854 | /usr/local/include/glib \ | |
6855 | \ | |
6856 | /usr/include/qt \ | |
6857 | /usr/local/include/qt \ | |
6858 | \ | |
6859 | /usr/include/windows \ | |
6860 | /usr/include/wine \ | |
6861 | /usr/local/include/wine \ | |
6862 | \ | |
6863 | /usr/unsupported/include \ | |
6864 | /usr/athena/include \ | |
6865 | /usr/local/x11r5/include \ | |
6866 | /usr/lpp/Xamples/include \ | |
6867 | \ | |
10f2d63a | 6868 | /usr/openwin/share/include \ |
928b5c08 VZ |
6869 | \ |
6870 | /usr/include" | |
10f2d63a VZ |
6871 | |
6872 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
6873 | ||
6874 | ||
6875 | cat > confcache <<\EOF | |
6876 | # This file is a shell script that caches the results of configure | |
6877 | # tests run on this system so they can be shared between configure | |
6878 | # scripts and configure runs. It is not useful on other systems. | |
6879 | # If it contains results you don't want to keep, you may remove or edit it. | |
6880 | # | |
6881 | # By default, configure uses ./config.cache as the cache file, | |
6882 | # creating it if it does not exist already. You can give configure | |
6883 | # the --cache-file=FILE option to use a different cache file; that is | |
6884 | # what configure does when it calls configure scripts in | |
6885 | # subdirectories, so they share the cache. | |
6886 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
6887 | # config.status only pays attention to the cache file if you give it the | |
6888 | # --recheck option to rerun configure. | |
6889 | # | |
6890 | EOF | |
6891 | # The following way of writing the cache mishandles newlines in values, | |
6892 | # but we know of no workaround that is simple, portable, and efficient. | |
6893 | # So, don't put newlines in cache variables' values. | |
6894 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
6895 | # and sets the high bit in the cache file unless we assign to the vars. | |
6896 | (set) 2>&1 | | |
6897 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
6898 | *ac_space=\ *) | |
6899 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
6900 | # turns \\\\ into \\, and sed turns \\ into \). | |
6901 | sed -n \ | |
6902 | -e "s/'/'\\\\''/g" \ | |
6903 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
6904 | ;; | |
6905 | *) | |
6906 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
6907 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
6908 | ;; | |
6909 | esac >> confcache | |
6910 | if cmp -s $cache_file confcache; then | |
6911 | : | |
6912 | else | |
6913 | if test -w $cache_file; then | |
6914 | echo "updating cache $cache_file" | |
6915 | cat confcache > $cache_file | |
6916 | else | |
6917 | echo "not updating unwritable cache $cache_file" | |
6918 | fi | |
6919 | fi | |
6920 | rm -f confcache | |
6921 | ||
6922 | ||
6923 | ||
dad6c0ea VZ |
6924 | AFMINSTALL= |
6925 | ||
10f2d63a VZ |
6926 | if test "$wxUSE_GUI" = "yes"; then |
6927 | ||
dad6c0ea VZ |
6928 | USE_GUI=1 |
6929 | ||
10f2d63a VZ |
6930 | TOOLKIT= |
6931 | TOOLKIT_INCLUDE= | |
6932 | ||
6933 | GUIOBJS= | |
6934 | COMMONOBJS= | |
6935 | GENERICOBJS= | |
6936 | ||
6937 | GUI_TK_LIBRARY= | |
6938 | GUI_TK_LINK= | |
6939 | ||
6940 | WXGTK12= | |
13111b2a | 6941 | WXGTK13= |
10f2d63a VZ |
6942 | |
6943 | WXWINE= | |
6944 | ||
10f2d63a VZ |
6945 | if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then |
6946 | if test "$cross_compiling" = "yes" ; then | |
6947 | echo "configure: warning: Cross compiling --- skipping windows.h check" 1>&2 | |
6948 | else | |
6949 | echo $ac_n "checking for Windows headers""... $ac_c" 1>&6 | |
d6a55c4b | 6950 | echo "configure:6951: checking for Windows headers" >&5 |
10f2d63a VZ |
6951 | |
6952 | ac_find_includes= | |
6953 | for ac_dir in $SEARCH_INCLUDE; | |
6954 | do | |
6955 | if test -f "$ac_dir/windows.h"; then | |
6956 | ac_find_includes=$ac_dir | |
6957 | break | |
6958 | fi | |
6959 | done | |
6960 | ||
6961 | if test "$ac_find_includes" != "" ; then | |
6962 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
6963 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
6964 | else | |
6965 | echo "$ac_t""no" 1>&6 | |
6966 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
6967 | fi | |
6968 | fi | |
6969 | ||
6970 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw" | |
6971 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32" | |
6972 | ||
6973 | if test "$wxUSE_MINGW" = 1; then | |
6974 | LDFLAGS="$LDFLAGS -mwindows" | |
6975 | fi | |
6976 | ||
6977 | TOOLKIT=MSW | |
6978 | ||
6979 | GUIOBJS="\$(MSW_GUIOBJS)" | |
6980 | GUIHEADERS="\$(MSW_HEADERS)" | |
6981 | COMMONOBJS="\$(MSW_COMMONOBJS)" | |
6982 | GENERICOBJS="\$(MSW_GENERICOBJS)" | |
6983 | UNIXOBJS= | |
6984 | GUIDIST=MSW_DIST | |
10f2d63a VZ |
6985 | fi |
6986 | ||
6987 | if test "$wxUSE_GTK" = 1; then | |
6988 | ||
6989 | if test x$gtk_config_exec_prefix != x ; then | |
6990 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
6991 | if test x${GTK_CONFIG+set} != xset ; then | |
6992 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
6993 | fi | |
6994 | fi | |
6995 | if test x$gtk_config_prefix != x ; then | |
6996 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
6997 | if test x${GTK_CONFIG+set} != xset ; then | |
6998 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
6999 | fi | |
7000 | fi | |
7001 | ||
7002 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
7003 | set dummy gtk-config; ac_word=$2 | |
7004 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
d6a55c4b | 7005 | echo "configure:7006: checking for $ac_word" >&5 |
10f2d63a VZ |
7006 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
7007 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7008 | else | |
7009 | case "$GTK_CONFIG" in | |
7010 | /*) | |
7011 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
7012 | ;; | |
7013 | ?:/*) | |
7014 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
7015 | ;; | |
7016 | *) | |
7017 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
7018 | ac_dummy="$PATH" | |
7019 | for ac_dir in $ac_dummy; do | |
7020 | test -z "$ac_dir" && ac_dir=. | |
7021 | if test -f $ac_dir/$ac_word; then | |
7022 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
7023 | break | |
7024 | fi | |
7025 | done | |
7026 | IFS="$ac_save_ifs" | |
7027 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
7028 | ;; | |
7029 | esac | |
7030 | fi | |
7031 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
7032 | if test -n "$GTK_CONFIG"; then | |
7033 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
7034 | else | |
7035 | echo "$ac_t""no" 1>&6 | |
7036 | fi | |
7037 | ||
04165bec | 7038 | min_gtk_version=1.2.3 |
10f2d63a | 7039 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
d6a55c4b | 7040 | echo "configure:7041: checking for GTK - version >= $min_gtk_version" >&5 |
10f2d63a VZ |
7041 | no_gtk="" |
7042 | if test "$GTK_CONFIG" != "no" ; then | |
7043 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
2224580a | 7044 | GTK_LIBS=`$GTK_CONFIG --libs gthread` |
10f2d63a VZ |
7045 | ac_save_CFLAGS="$CFLAGS" |
7046 | ac_save_LIBS="$LIBS" | |
7047 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
7048 | LIBS="$LIBS $GTK_LIBS" | |
7049 | if test "$cross_compiling" = yes; then | |
7050 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
7051 | else | |
7052 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 7053 | #line 7054 "configure" |
10f2d63a VZ |
7054 | #include "confdefs.h" |
7055 | ||
7056 | #include <gtk/gtk.h> | |
f49f2b0c | 7057 | #include <gtk/gtkfeatures.h> |
10f2d63a VZ |
7058 | #include <stdio.h> |
7059 | ||
7060 | int | |
7061 | main () | |
7062 | { | |
7063 | int major, minor, micro; | |
7064 | ||
7065 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
7066 | printf("%s, bad version string\n", "$min_gtk_version"); | |
7067 | exit(1); | |
7068 | } | |
7069 | ||
f49f2b0c RR |
7070 | if ((GTK_MAJOR_VERSION != gtk_major_version) || |
7071 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
7072 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
7073 | printf("Headers vs. library version mismatch!\n"); | |
7074 | exit(1); | |
7075 | } | |
7076 | ||
10f2d63a VZ |
7077 | if (gtk_minor_version == 1) return FALSE; |
7078 | ||
7079 | return !((gtk_major_version > major) || | |
7080 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
7081 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
7082 | } | |
7083 | ||
7084 | EOF | |
d6a55c4b | 7085 | if { (eval echo configure:7086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
7086 | then |
7087 | : | |
7088 | else | |
7089 | echo "configure: failed program was:" >&5 | |
7090 | cat conftest.$ac_ext >&5 | |
7091 | rm -fr conftest* | |
7092 | no_gtk=yes | |
7093 | fi | |
7094 | rm -fr conftest* | |
7095 | fi | |
7096 | ||
7097 | CFLAGS="$ac_save_CFLAGS" | |
7098 | LIBS="$ac_save_LIBS" | |
7099 | else | |
7100 | no_gtk=yes | |
7101 | fi | |
7102 | if test "x$no_gtk" = x ; then | |
7103 | echo "$ac_t""yes" 1>&6 | |
7104 | WXGTK12=1 | |
7105 | else | |
7106 | echo "$ac_t""no" 1>&6 | |
7107 | GTK_CFLAGS="" | |
7108 | GTK_LIBS="" | |
7e99ad86 | 7109 | : |
10f2d63a VZ |
7110 | fi |
7111 | ||
7112 | ||
7113 | ||
7114 | ||
7e99ad86 VZ |
7115 | if test "$WXGTK12" != 1; then |
7116 | { echo "configure: error: | |
7117 | Please check that gtk-config is in path, the directory | |
7118 | where GTK+ libraries are installed (returned by | |
7119 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
7120 | equivalent variable and GTK+ is version 1.2.3 or above. | |
7121 | " 1>&2; exit 1; } | |
7122 | fi | |
7123 | ||
7124 | ||
10f2d63a | 7125 | TOOLKIT_INCLUDE="$GTK_CFLAGS" |
2224580a VZ |
7126 | |
7127 | ||
7128 | GUI_TK_LIBRARY="$GTK_LIBS" | |
7129 | ||
10f2d63a VZ |
7130 | TOOLKIT=GTK |
7131 | ||
dad6c0ea VZ |
7132 | AFMINSTALL=afminstall |
7133 | ||
10f2d63a VZ |
7134 | GUIOBJS="\$(GTK_GUIOBJS)" |
7135 | GUIHEADERS="\$(GTK_HEADERS)" | |
7136 | COMMONOBJS="\$(GTK_COMMONOBJS)" | |
7137 | GENERICOBJS="\$(GTK_GENERICOBJS)" | |
7138 | GUIDEPS="\$(GTK_GUIDEPS)" | |
7139 | COMMONDEPS="\$(GTK_COMMONDEPS)" | |
7140 | GENERICDEPS="\$(GTK_GENERICDEPS)" | |
7141 | UNIXOBJS="\$(UNIX_OBJS)" | |
d9d8273d | 7142 | UNIXDEPS="\$(UNIX_DEPS)" |
10f2d63a | 7143 | GUIDIST=GTK_DIST |
7ec2881a | 7144 | |
2224580a | 7145 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
d6a55c4b | 7146 | echo "configure:7147: checking for gdk_im_open in -lgdk" >&5 |
7ec2881a RR |
7147 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
7148 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7149 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7150 | else | |
7151 | ac_save_LIBS="$LIBS" | |
7152 | LIBS="-lgdk $LIBS" | |
7153 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 7154 | #line 7155 "configure" |
7ec2881a RR |
7155 | #include "confdefs.h" |
7156 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7157 | /* We use char because int might match the return type of a gcc2 | |
7158 | builtin and then its argument prototype would still apply. */ | |
7159 | char gdk_im_open(); | |
7160 | ||
7161 | int main() { | |
7162 | gdk_im_open() | |
7163 | ; return 0; } | |
7164 | EOF | |
d6a55c4b | 7165 | if { (eval echo configure:7166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7ec2881a RR |
7166 | rm -rf conftest* |
7167 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7168 | else | |
7169 | echo "configure: failed program was:" >&5 | |
7170 | cat conftest.$ac_ext >&5 | |
7171 | rm -rf conftest* | |
7172 | eval "ac_cv_lib_$ac_lib_var=no" | |
7173 | fi | |
7174 | rm -f conftest* | |
7175 | LIBS="$ac_save_LIBS" | |
7176 | ||
7177 | fi | |
7178 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7179 | echo "$ac_t""yes" 1>&6 | |
7180 | cat >> confdefs.h <<\EOF | |
7181 | #define HAVE_XIM 1 | |
7182 | EOF | |
7183 | ||
7184 | else | |
7185 | echo "$ac_t""no" 1>&6 | |
7186 | fi | |
7187 | ||
10f2d63a VZ |
7188 | fi |
7189 | ||
7190 | if test "$wxUSE_WINE" = 1; then | |
7191 | echo $ac_n "checking for WINE includes""... $ac_c" 1>&6 | |
d6a55c4b | 7192 | echo "configure:7193: checking for WINE includes" >&5 |
10f2d63a VZ |
7193 | |
7194 | ac_find_includes= | |
7195 | for ac_dir in $SEARCH_INCLUDE; | |
7196 | do | |
7197 | if test -f "$ac_dir/windows.h"; then | |
7198 | ac_find_includes=$ac_dir | |
7199 | break | |
7200 | fi | |
7201 | done | |
7202 | ||
7203 | if test "$ac_find_includes" != "" ; then | |
7204 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
7205 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
7206 | else | |
7207 | echo "$ac_t""no" 1>&6 | |
7208 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
7209 | fi | |
7210 | ||
7211 | XPM_LINK="" | |
7212 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
d6a55c4b | 7213 | echo "configure:7214: checking for Xpm library" >&5 |
10f2d63a VZ |
7214 | |
7215 | ac_find_libraries= | |
7216 | for ac_dir in $SEARCH_LIB; | |
7217 | do | |
7218 | for ac_extension in a so sl; do | |
7219 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
7220 | ac_find_libraries=$ac_dir | |
7221 | break 2 | |
7222 | fi | |
7223 | done | |
7224 | done | |
7225 | ||
7226 | if test "$ac_find_libraries" != "" ; then | |
7227 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
7228 | XPM_LINK="-lXpm" | |
7229 | cat >> confdefs.h <<\EOF | |
7230 | #define wxHAVE_LIB_XPM 1 | |
7231 | EOF | |
7232 | ||
7233 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
7234 | else | |
7235 | echo "$ac_t""no" 1>&6 | |
7236 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
7237 | fi | |
7238 | ||
7239 | MESA_LINK="" | |
7240 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 | |
d6a55c4b | 7241 | echo "configure:7242: checking for Mesa library" >&5 |
10f2d63a VZ |
7242 | |
7243 | ac_find_libraries= | |
7244 | for ac_dir in $SEARCH_LIB; | |
7245 | do | |
7246 | for ac_extension in a so sl; do | |
7247 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
7248 | ac_find_libraries=$ac_dir | |
7249 | break 2 | |
7250 | fi | |
7251 | done | |
7252 | done | |
7253 | ||
7254 | if test "$ac_find_libraries" != "" ; then | |
7255 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
7256 | MESA_LINK="-lMesaGL" | |
7257 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
7258 | else | |
7259 | { echo "configure: error: no" 1>&2; exit 1; } | |
7260 | fi | |
7261 | ||
7262 | GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses -lm" | |
7263 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" | |
7264 | WXWINE=1 | |
7265 | TOOLKIT=MSW | |
7266 | ||
7267 | GUIHEADERS="\$(MSW_HEADERS)" | |
7268 | GUIOBJS="\$(MSW_GUIOBJS)" | |
7269 | COMMONOBJS="\$(MSW_COMMONOBJS)" | |
7270 | GENERICOBJS="\$(MSW_GENERICOBJS)" | |
7271 | GUIDEPS="\$(MSW_GUIDEPS)" | |
7272 | COMMONDEPS="\$(MSW_COMMONDEPS)" | |
7273 | GENERICDEPS="\$(MSW_GENERICDEPS)" | |
7274 | UNIXOBJS="\$(UNIX_OBJS)" | |
d9d8273d | 7275 | UNIXDEPS="\$(UNIX_DEPS)" |
10f2d63a VZ |
7276 | GUIDIST=MSW_DIST |
7277 | fi | |
7278 | ||
7279 | if test "$wxUSE_MOTIF" = 1; then | |
ab9b9eab VZ |
7280 | # If we find X, set shell vars x_includes and x_libraries to the |
7281 | # paths, otherwise set no_x=yes. | |
7282 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
7283 | # --without-x overrides everything else, but does not touch the cache. | |
7284 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
d6a55c4b | 7285 | echo "configure:7286: checking for X" >&5 |
ab9b9eab VZ |
7286 | |
7287 | # Check whether --with-x or --without-x was given. | |
7288 | if test "${with_x+set}" = set; then | |
7289 | withval="$with_x" | |
7290 | : | |
7291 | fi | |
ba337fe7 | 7292 | |
ab9b9eab VZ |
7293 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
7294 | if test "x$with_x" = xno; then | |
7295 | # The user explicitly disabled X. | |
7296 | have_x=disabled | |
7297 | else | |
7298 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
7299 | # Both variables are already set. | |
7300 | have_x=yes | |
7301 | else | |
7302 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then | |
7303 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7304 | else | |
7305 | # One or both of the vars are not set, and there is no cached value. | |
7306 | ac_x_includes=NO ac_x_libraries=NO | |
7307 | rm -fr conftestdir | |
7308 | if mkdir conftestdir; then | |
7309 | cd conftestdir | |
7310 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
7311 | cat > Imakefile <<'EOF' | |
7312 | acfindx: | |
7313 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
7314 | EOF | |
7315 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
7316 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
7317 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
7318 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
10f2d63a | 7319 | for ac_extension in a so sl; do |
ab9b9eab VZ |
7320 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
7321 | test -f $ac_im_libdir/libX11.$ac_extension; then | |
7322 | ac_im_usrlibdir=$ac_im_libdir; break | |
10f2d63a VZ |
7323 | fi |
7324 | done | |
ab9b9eab VZ |
7325 | # Screen out bogus values from the imake configuration. They are |
7326 | # bogus both because they are the default anyway, and because | |
7327 | # using them would break gcc on systems where it needs fixed includes. | |
7328 | case "$ac_im_incroot" in | |
7329 | /usr/include) ;; | |
7330 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; | |
7331 | esac | |
7332 | case "$ac_im_usrlibdir" in | |
7333 | /usr/lib | /lib) ;; | |
7334 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; | |
7335 | esac | |
ba337fe7 | 7336 | fi |
ab9b9eab VZ |
7337 | cd .. |
7338 | rm -fr conftestdir | |
7339 | fi | |
10f2d63a | 7340 | |
ab9b9eab VZ |
7341 | if test "$ac_x_includes" = NO; then |
7342 | # Guess where to find include files, by looking for this one X11 .h file. | |
7343 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
ba337fe7 | 7344 | |
ab9b9eab VZ |
7345 | # First, try using that file with no special directory specified. |
7346 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 7347 | #line 7348 "configure" |
ab9b9eab VZ |
7348 | #include "confdefs.h" |
7349 | #include <$x_direct_test_include> | |
7350 | EOF | |
7351 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d6a55c4b | 7352 | { (eval echo configure:7353: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
ab9b9eab VZ |
7353 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7354 | if test -z "$ac_err"; then | |
7355 | rm -rf conftest* | |
7356 | # We can compile using X headers with no special include directory. | |
7357 | ac_x_includes= | |
7358 | else | |
7359 | echo "$ac_err" >&5 | |
7360 | echo "configure: failed program was:" >&5 | |
7361 | cat conftest.$ac_ext >&5 | |
7362 | rm -rf conftest* | |
7363 | # Look for the header file in a standard set of common directories. | |
7364 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
7365 | for ac_dir in \ | |
7366 | /usr/X11/include \ | |
7367 | /usr/X11R6/include \ | |
7368 | /usr/X11R5/include \ | |
7369 | /usr/X11R4/include \ | |
7370 | \ | |
7371 | /usr/include/X11 \ | |
7372 | /usr/include/X11R6 \ | |
7373 | /usr/include/X11R5 \ | |
7374 | /usr/include/X11R4 \ | |
7375 | \ | |
7376 | /usr/local/X11/include \ | |
7377 | /usr/local/X11R6/include \ | |
7378 | /usr/local/X11R5/include \ | |
7379 | /usr/local/X11R4/include \ | |
7380 | \ | |
7381 | /usr/local/include/X11 \ | |
7382 | /usr/local/include/X11R6 \ | |
7383 | /usr/local/include/X11R5 \ | |
7384 | /usr/local/include/X11R4 \ | |
7385 | \ | |
7386 | /usr/X386/include \ | |
7387 | /usr/x386/include \ | |
7388 | /usr/XFree86/include/X11 \ | |
7389 | \ | |
7390 | /usr/include \ | |
7391 | /usr/local/include \ | |
7392 | /usr/unsupported/include \ | |
7393 | /usr/athena/include \ | |
7394 | /usr/local/x11r5/include \ | |
7395 | /usr/lpp/Xamples/include \ | |
7396 | \ | |
7397 | /usr/openwin/include \ | |
7398 | /usr/openwin/share/include \ | |
7399 | ; \ | |
10f2d63a | 7400 | do |
ab9b9eab VZ |
7401 | if test -r "$ac_dir/$x_direct_test_include"; then |
7402 | ac_x_includes=$ac_dir | |
10f2d63a VZ |
7403 | break |
7404 | fi | |
7405 | done | |
ab9b9eab VZ |
7406 | fi |
7407 | rm -f conftest* | |
7408 | fi # $ac_x_includes = NO | |
10f2d63a | 7409 | |
ab9b9eab VZ |
7410 | if test "$ac_x_libraries" = NO; then |
7411 | # Check for the libraries. | |
10f2d63a | 7412 | |
ab9b9eab VZ |
7413 | test -z "$x_direct_test_library" && x_direct_test_library=Xt |
7414 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
10f2d63a | 7415 | |
ab9b9eab VZ |
7416 | # See if we find them without any special options. |
7417 | # Don't add to $LIBS permanently. | |
7418 | ac_save_LIBS="$LIBS" | |
7419 | LIBS="-l$x_direct_test_library $LIBS" | |
7420 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 7421 | #line 7422 "configure" |
ab9b9eab | 7422 | #include "confdefs.h" |
10f2d63a | 7423 | |
ab9b9eab VZ |
7424 | int main() { |
7425 | ${x_direct_test_function}() | |
7426 | ; return 0; } | |
7427 | EOF | |
d6a55c4b | 7428 | if { (eval echo configure:7429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7429 | rm -rf conftest* |
7430 | LIBS="$ac_save_LIBS" | |
7431 | # We can link X programs with no special library path. | |
7432 | ac_x_libraries= | |
7433 | else | |
7434 | echo "configure: failed program was:" >&5 | |
7435 | cat conftest.$ac_ext >&5 | |
7436 | rm -rf conftest* | |
7437 | LIBS="$ac_save_LIBS" | |
7438 | # First see if replacing the include by lib works. | |
7439 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
7440 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
7441 | /usr/X11/lib \ | |
7442 | /usr/X11R6/lib \ | |
7443 | /usr/X11R5/lib \ | |
7444 | /usr/X11R4/lib \ | |
7445 | \ | |
7446 | /usr/lib/X11 \ | |
7447 | /usr/lib/X11R6 \ | |
7448 | /usr/lib/X11R5 \ | |
7449 | /usr/lib/X11R4 \ | |
7450 | \ | |
7451 | /usr/local/X11/lib \ | |
7452 | /usr/local/X11R6/lib \ | |
7453 | /usr/local/X11R5/lib \ | |
7454 | /usr/local/X11R4/lib \ | |
7455 | \ | |
7456 | /usr/local/lib/X11 \ | |
7457 | /usr/local/lib/X11R6 \ | |
7458 | /usr/local/lib/X11R5 \ | |
7459 | /usr/local/lib/X11R4 \ | |
7460 | \ | |
7461 | /usr/X386/lib \ | |
7462 | /usr/x386/lib \ | |
7463 | /usr/XFree86/lib/X11 \ | |
7464 | \ | |
7465 | /usr/lib \ | |
7466 | /usr/local/lib \ | |
7467 | /usr/unsupported/lib \ | |
7468 | /usr/athena/lib \ | |
7469 | /usr/local/x11r5/lib \ | |
7470 | /usr/lpp/Xamples/lib \ | |
7471 | /lib/usr/lib/X11 \ | |
7472 | \ | |
7473 | /usr/openwin/lib \ | |
7474 | /usr/openwin/share/lib \ | |
7475 | ; \ | |
7476 | do | |
7477 | for ac_extension in a so sl; do | |
7478 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then | |
7479 | ac_x_libraries=$ac_dir | |
7480 | break 2 | |
10f2d63a | 7481 | fi |
10f2d63a | 7482 | done |
ab9b9eab VZ |
7483 | done |
7484 | fi | |
7485 | rm -f conftest* | |
7486 | fi # $ac_x_libraries = NO | |
10f2d63a | 7487 | |
ab9b9eab VZ |
7488 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
7489 | # Didn't find X anywhere. Cache the known absence of X. | |
7490 | ac_cv_have_x="have_x=no" | |
7491 | else | |
7492 | # Record where we found X for the cache. | |
7493 | ac_cv_have_x="have_x=yes \ | |
7494 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
7495 | fi | |
7496 | fi | |
10f2d63a | 7497 | fi |
ab9b9eab VZ |
7498 | eval "$ac_cv_have_x" |
7499 | fi # $with_x != no | |
10f2d63a | 7500 | |
ab9b9eab VZ |
7501 | if test "$have_x" != yes; then |
7502 | echo "$ac_t""$have_x" 1>&6 | |
7503 | no_x=yes | |
7504 | else | |
7505 | # If each of the values was on the command line, it overrides each guess. | |
7506 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
7507 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
7508 | # Update the cache value to reflect the command line values. | |
7509 | ac_cv_have_x="have_x=yes \ | |
7510 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
7511 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 | |
7512 | fi | |
10f2d63a | 7513 | |
ab9b9eab VZ |
7514 | if test "$no_x" = yes; then |
7515 | # Not all programs may use this symbol, but it does not hurt to define it. | |
7516 | cat >> confdefs.h <<\EOF | |
7517 | #define X_DISPLAY_MISSING 1 | |
7518 | EOF | |
10f2d63a | 7519 | |
ab9b9eab VZ |
7520 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
7521 | else | |
7522 | if test -n "$x_includes"; then | |
7523 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
10f2d63a VZ |
7524 | fi |
7525 | ||
ab9b9eab VZ |
7526 | # It would also be nice to do this for all -L options, not just this one. |
7527 | if test -n "$x_libraries"; then | |
7528 | X_LIBS="$X_LIBS -L$x_libraries" | |
7529 | # For Solaris; some versions of Sun CC require a space after -R and | |
7530 | # others require no space. Words are not sufficient . . . . | |
7531 | case "`(uname -sr) 2>/dev/null`" in | |
7532 | "SunOS 5"*) | |
7533 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | |
d6a55c4b | 7534 | echo "configure:7535: checking whether -R must be followed by a space" >&5 |
ab9b9eab VZ |
7535 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
7536 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 7537 | #line 7538 "configure" |
ab9b9eab | 7538 | #include "confdefs.h" |
10f2d63a | 7539 | |
ab9b9eab | 7540 | int main() { |
788deba1 | 7541 | |
ab9b9eab VZ |
7542 | ; return 0; } |
7543 | EOF | |
d6a55c4b | 7544 | if { (eval echo configure:7545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7545 | rm -rf conftest* |
7546 | ac_R_nospace=yes | |
7547 | else | |
7548 | echo "configure: failed program was:" >&5 | |
7549 | cat conftest.$ac_ext >&5 | |
7550 | rm -rf conftest* | |
7551 | ac_R_nospace=no | |
7552 | fi | |
7553 | rm -f conftest* | |
7554 | if test $ac_R_nospace = yes; then | |
7555 | echo "$ac_t""no" 1>&6 | |
7556 | X_LIBS="$X_LIBS -R$x_libraries" | |
7557 | else | |
7558 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
7559 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 7560 | #line 7561 "configure" |
ab9b9eab | 7561 | #include "confdefs.h" |
788deba1 | 7562 | |
ab9b9eab VZ |
7563 | int main() { |
7564 | ||
7565 | ; return 0; } | |
7566 | EOF | |
d6a55c4b | 7567 | if { (eval echo configure:7568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7568 | rm -rf conftest* |
7569 | ac_R_space=yes | |
7570 | else | |
7571 | echo "configure: failed program was:" >&5 | |
7572 | cat conftest.$ac_ext >&5 | |
7573 | rm -rf conftest* | |
7574 | ac_R_space=no | |
7575 | fi | |
7576 | rm -f conftest* | |
7577 | if test $ac_R_space = yes; then | |
7578 | echo "$ac_t""yes" 1>&6 | |
7579 | X_LIBS="$X_LIBS -R $x_libraries" | |
7580 | else | |
7581 | echo "$ac_t""neither works" 1>&6 | |
7582 | fi | |
7583 | fi | |
7584 | LIBS="$ac_xsave_LIBS" | |
7585 | esac | |
7586 | fi | |
7587 | ||
7588 | # Check for system-dependent libraries X programs must link with. | |
7589 | # Do this before checking for the system-independent R6 libraries | |
7590 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
7591 | ||
7592 | if test "$ISC" = yes; then | |
7593 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
7594 | else | |
7595 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | |
7596 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
7597 | # the Alpha needs dnet_stub (dnet does not exist). | |
7598 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
d6a55c4b | 7599 | echo "configure:7600: checking for dnet_ntoa in -ldnet" >&5 |
ab9b9eab VZ |
7600 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
7601 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7602 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7603 | else | |
7604 | ac_save_LIBS="$LIBS" | |
7605 | LIBS="-ldnet $LIBS" | |
7606 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 7607 | #line 7608 "configure" |
ab9b9eab VZ |
7608 | #include "confdefs.h" |
7609 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7610 | /* We use char because int might match the return type of a gcc2 | |
7611 | builtin and then its argument prototype would still apply. */ | |
7612 | char dnet_ntoa(); | |
7613 | ||
7614 | int main() { | |
7615 | dnet_ntoa() | |
7616 | ; return 0; } | |
7617 | EOF | |
d6a55c4b | 7618 | if { (eval echo configure:7619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7619 | rm -rf conftest* |
7620 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7621 | else | |
7622 | echo "configure: failed program was:" >&5 | |
7623 | cat conftest.$ac_ext >&5 | |
7624 | rm -rf conftest* | |
7625 | eval "ac_cv_lib_$ac_lib_var=no" | |
7626 | fi | |
7627 | rm -f conftest* | |
7628 | LIBS="$ac_save_LIBS" | |
7629 | ||
7630 | fi | |
7631 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7632 | echo "$ac_t""yes" 1>&6 | |
7633 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
7634 | else | |
7635 | echo "$ac_t""no" 1>&6 | |
7636 | fi | |
7637 | ||
7638 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
7639 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | |
d6a55c4b | 7640 | echo "configure:7641: checking for dnet_ntoa in -ldnet_stub" >&5 |
ab9b9eab VZ |
7641 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
7642 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7643 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7644 | else | |
7645 | ac_save_LIBS="$LIBS" | |
7646 | LIBS="-ldnet_stub $LIBS" | |
7647 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 7648 | #line 7649 "configure" |
ab9b9eab VZ |
7649 | #include "confdefs.h" |
7650 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7651 | /* We use char because int might match the return type of a gcc2 | |
7652 | builtin and then its argument prototype would still apply. */ | |
7653 | char dnet_ntoa(); | |
7654 | ||
7655 | int main() { | |
7656 | dnet_ntoa() | |
7657 | ; return 0; } | |
7658 | EOF | |
d6a55c4b | 7659 | if { (eval echo configure:7660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7660 | rm -rf conftest* |
7661 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7662 | else | |
7663 | echo "configure: failed program was:" >&5 | |
7664 | cat conftest.$ac_ext >&5 | |
7665 | rm -rf conftest* | |
7666 | eval "ac_cv_lib_$ac_lib_var=no" | |
7667 | fi | |
7668 | rm -f conftest* | |
7669 | LIBS="$ac_save_LIBS" | |
7670 | ||
7671 | fi | |
7672 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7673 | echo "$ac_t""yes" 1>&6 | |
7674 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
7675 | else | |
7676 | echo "$ac_t""no" 1>&6 | |
7677 | fi | |
7678 | ||
7679 | fi | |
7680 | ||
7681 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
7682 | # to get the SysV transport functions. | |
7683 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | |
7684 | # needs -lnsl. | |
7685 | # The nsl library prevents programs from opening the X display | |
7686 | # on Irix 5.2, according to dickey@clark.net. | |
7687 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
d6a55c4b | 7688 | echo "configure:7689: checking for gethostbyname" >&5 |
ab9b9eab VZ |
7689 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
7690 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7691 | else | |
7692 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 7693 | #line 7694 "configure" |
ab9b9eab VZ |
7694 | #include "confdefs.h" |
7695 | /* System header to define __stub macros and hopefully few prototypes, | |
7696 | which can conflict with char gethostbyname(); below. */ | |
7697 | #include <assert.h> | |
7698 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7699 | /* We use char because int might match the return type of a gcc2 | |
7700 | builtin and then its argument prototype would still apply. */ | |
7701 | char gethostbyname(); | |
7702 | ||
7703 | int main() { | |
7704 | ||
7705 | /* The GNU C library defines this for functions which it implements | |
7706 | to always fail with ENOSYS. Some functions are actually named | |
7707 | something starting with __ and the normal name is an alias. */ | |
7708 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
7709 | choke me | |
7710 | #else | |
d6a55c4b | 7711 | gethostbyname(); |
ab9b9eab VZ |
7712 | #endif |
7713 | ||
7714 | ; return 0; } | |
7715 | EOF | |
00cf1208 | 7716 | if { (eval echo configure:7717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7717 | rm -rf conftest* |
7718 | eval "ac_cv_func_gethostbyname=yes" | |
7719 | else | |
7720 | echo "configure: failed program was:" >&5 | |
7721 | cat conftest.$ac_ext >&5 | |
7722 | rm -rf conftest* | |
7723 | eval "ac_cv_func_gethostbyname=no" | |
7724 | fi | |
7725 | rm -f conftest* | |
7726 | fi | |
7727 | ||
7728 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
7729 | echo "$ac_t""yes" 1>&6 | |
7730 | : | |
7731 | else | |
7732 | echo "$ac_t""no" 1>&6 | |
7733 | fi | |
7734 | ||
7735 | if test $ac_cv_func_gethostbyname = no; then | |
7736 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
00cf1208 | 7737 | echo "configure:7738: checking for gethostbyname in -lnsl" >&5 |
ab9b9eab VZ |
7738 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
7739 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7740 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7741 | else | |
7742 | ac_save_LIBS="$LIBS" | |
7743 | LIBS="-lnsl $LIBS" | |
7744 | cat > conftest.$ac_ext <<EOF | |
00cf1208 | 7745 | #line 7746 "configure" |
ab9b9eab VZ |
7746 | #include "confdefs.h" |
7747 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7748 | /* We use char because int might match the return type of a gcc2 | |
7749 | builtin and then its argument prototype would still apply. */ | |
7750 | char gethostbyname(); | |
7751 | ||
7752 | int main() { | |
7753 | gethostbyname() | |
7754 | ; return 0; } | |
7755 | EOF | |
00cf1208 | 7756 | if { (eval echo configure:7757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7757 | rm -rf conftest* |
7758 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7759 | else | |
7760 | echo "configure: failed program was:" >&5 | |
7761 | cat conftest.$ac_ext >&5 | |
7762 | rm -rf conftest* | |
7763 | eval "ac_cv_lib_$ac_lib_var=no" | |
7764 | fi | |
7765 | rm -f conftest* | |
7766 | LIBS="$ac_save_LIBS" | |
7767 | ||
7768 | fi | |
7769 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7770 | echo "$ac_t""yes" 1>&6 | |
7771 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
7772 | else | |
7773 | echo "$ac_t""no" 1>&6 | |
7774 | fi | |
7775 | ||
7776 | fi | |
7777 | ||
7778 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
7779 | # socket/setsockopt and other routines are undefined under SCO ODT | |
7780 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
7781 | # on later versions), says simon@lia.di.epfl.ch: it contains | |
7782 | # gethostby* variants that don't use the nameserver (or something). | |
7783 | # -lsocket must be given before -lnsl if both are needed. | |
7784 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
7785 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
00cf1208 | 7786 | echo "configure:7787: checking for connect" >&5 |
ab9b9eab VZ |
7787 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
7788 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7789 | else | |
7790 | cat > conftest.$ac_ext <<EOF | |
00cf1208 | 7791 | #line 7792 "configure" |
ab9b9eab VZ |
7792 | #include "confdefs.h" |
7793 | /* System header to define __stub macros and hopefully few prototypes, | |
7794 | which can conflict with char connect(); below. */ | |
7795 | #include <assert.h> | |
7796 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7797 | /* We use char because int might match the return type of a gcc2 | |
7798 | builtin and then its argument prototype would still apply. */ | |
7799 | char connect(); | |
7800 | ||
7801 | int main() { | |
7802 | ||
7803 | /* The GNU C library defines this for functions which it implements | |
7804 | to always fail with ENOSYS. Some functions are actually named | |
7805 | something starting with __ and the normal name is an alias. */ | |
7806 | #if defined (__stub_connect) || defined (__stub___connect) | |
7807 | choke me | |
7808 | #else | |
d6a55c4b | 7809 | connect(); |
ab9b9eab VZ |
7810 | #endif |
7811 | ||
7812 | ; return 0; } | |
7813 | EOF | |
d6a55c4b | 7814 | if { (eval echo configure:7815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7815 | rm -rf conftest* |
7816 | eval "ac_cv_func_connect=yes" | |
7817 | else | |
7818 | echo "configure: failed program was:" >&5 | |
7819 | cat conftest.$ac_ext >&5 | |
7820 | rm -rf conftest* | |
7821 | eval "ac_cv_func_connect=no" | |
7822 | fi | |
7823 | rm -f conftest* | |
7824 | fi | |
7825 | ||
7826 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
7827 | echo "$ac_t""yes" 1>&6 | |
7828 | : | |
7829 | else | |
7830 | echo "$ac_t""no" 1>&6 | |
7831 | fi | |
7832 | ||
7833 | if test $ac_cv_func_connect = no; then | |
7834 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 | |
d6a55c4b | 7835 | echo "configure:7836: checking for connect in -lsocket" >&5 |
ab9b9eab VZ |
7836 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
7837 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7838 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7839 | else | |
7840 | ac_save_LIBS="$LIBS" | |
7841 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
7842 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 7843 | #line 7844 "configure" |
ab9b9eab VZ |
7844 | #include "confdefs.h" |
7845 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7846 | /* We use char because int might match the return type of a gcc2 | |
7847 | builtin and then its argument prototype would still apply. */ | |
7848 | char connect(); | |
7849 | ||
7850 | int main() { | |
7851 | connect() | |
7852 | ; return 0; } | |
7853 | EOF | |
d6a55c4b | 7854 | if { (eval echo configure:7855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7855 | rm -rf conftest* |
7856 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7857 | else | |
7858 | echo "configure: failed program was:" >&5 | |
7859 | cat conftest.$ac_ext >&5 | |
7860 | rm -rf conftest* | |
7861 | eval "ac_cv_lib_$ac_lib_var=no" | |
7862 | fi | |
7863 | rm -f conftest* | |
7864 | LIBS="$ac_save_LIBS" | |
7865 | ||
7866 | fi | |
7867 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7868 | echo "$ac_t""yes" 1>&6 | |
7869 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
7870 | else | |
7871 | echo "$ac_t""no" 1>&6 | |
7872 | fi | |
7873 | ||
7874 | fi | |
7875 | ||
7876 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. | |
7877 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
d6a55c4b | 7878 | echo "configure:7879: checking for remove" >&5 |
ab9b9eab VZ |
7879 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
7880 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7881 | else | |
7882 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 7883 | #line 7884 "configure" |
ab9b9eab VZ |
7884 | #include "confdefs.h" |
7885 | /* System header to define __stub macros and hopefully few prototypes, | |
7886 | which can conflict with char remove(); below. */ | |
7887 | #include <assert.h> | |
7888 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7889 | /* We use char because int might match the return type of a gcc2 | |
7890 | builtin and then its argument prototype would still apply. */ | |
7891 | char remove(); | |
7892 | ||
7893 | int main() { | |
7894 | ||
7895 | /* The GNU C library defines this for functions which it implements | |
7896 | to always fail with ENOSYS. Some functions are actually named | |
7897 | something starting with __ and the normal name is an alias. */ | |
7898 | #if defined (__stub_remove) || defined (__stub___remove) | |
7899 | choke me | |
7900 | #else | |
d6a55c4b | 7901 | remove(); |
ab9b9eab VZ |
7902 | #endif |
7903 | ||
7904 | ; return 0; } | |
7905 | EOF | |
d6a55c4b | 7906 | if { (eval echo configure:7907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7907 | rm -rf conftest* |
7908 | eval "ac_cv_func_remove=yes" | |
7909 | else | |
7910 | echo "configure: failed program was:" >&5 | |
7911 | cat conftest.$ac_ext >&5 | |
7912 | rm -rf conftest* | |
7913 | eval "ac_cv_func_remove=no" | |
7914 | fi | |
7915 | rm -f conftest* | |
7916 | fi | |
7917 | ||
7918 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
7919 | echo "$ac_t""yes" 1>&6 | |
7920 | : | |
7921 | else | |
7922 | echo "$ac_t""no" 1>&6 | |
7923 | fi | |
7924 | ||
7925 | if test $ac_cv_func_remove = no; then | |
7926 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | |
d6a55c4b | 7927 | echo "configure:7928: checking for remove in -lposix" >&5 |
ab9b9eab VZ |
7928 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
7929 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7930 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7931 | else | |
7932 | ac_save_LIBS="$LIBS" | |
7933 | LIBS="-lposix $LIBS" | |
7934 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 7935 | #line 7936 "configure" |
ab9b9eab VZ |
7936 | #include "confdefs.h" |
7937 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7938 | /* We use char because int might match the return type of a gcc2 | |
7939 | builtin and then its argument prototype would still apply. */ | |
7940 | char remove(); | |
7941 | ||
7942 | int main() { | |
7943 | remove() | |
7944 | ; return 0; } | |
7945 | EOF | |
d6a55c4b | 7946 | if { (eval echo configure:7947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7947 | rm -rf conftest* |
7948 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7949 | else | |
7950 | echo "configure: failed program was:" >&5 | |
7951 | cat conftest.$ac_ext >&5 | |
7952 | rm -rf conftest* | |
7953 | eval "ac_cv_lib_$ac_lib_var=no" | |
7954 | fi | |
7955 | rm -f conftest* | |
7956 | LIBS="$ac_save_LIBS" | |
7957 | ||
7958 | fi | |
7959 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7960 | echo "$ac_t""yes" 1>&6 | |
7961 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
7962 | else | |
7963 | echo "$ac_t""no" 1>&6 | |
7964 | fi | |
7965 | ||
7966 | fi | |
7967 | ||
7968 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
7969 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 | |
d6a55c4b | 7970 | echo "configure:7971: checking for shmat" >&5 |
ab9b9eab VZ |
7971 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
7972 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7973 | else | |
7974 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 7975 | #line 7976 "configure" |
ab9b9eab VZ |
7976 | #include "confdefs.h" |
7977 | /* System header to define __stub macros and hopefully few prototypes, | |
7978 | which can conflict with char shmat(); below. */ | |
7979 | #include <assert.h> | |
7980 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7981 | /* We use char because int might match the return type of a gcc2 | |
7982 | builtin and then its argument prototype would still apply. */ | |
7983 | char shmat(); | |
7984 | ||
7985 | int main() { | |
7986 | ||
7987 | /* The GNU C library defines this for functions which it implements | |
7988 | to always fail with ENOSYS. Some functions are actually named | |
7989 | something starting with __ and the normal name is an alias. */ | |
7990 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
7991 | choke me | |
7992 | #else | |
d6a55c4b | 7993 | shmat(); |
ab9b9eab VZ |
7994 | #endif |
7995 | ||
7996 | ; return 0; } | |
7997 | EOF | |
d6a55c4b | 7998 | if { (eval echo configure:7999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7999 | rm -rf conftest* |
8000 | eval "ac_cv_func_shmat=yes" | |
8001 | else | |
8002 | echo "configure: failed program was:" >&5 | |
8003 | cat conftest.$ac_ext >&5 | |
8004 | rm -rf conftest* | |
8005 | eval "ac_cv_func_shmat=no" | |
8006 | fi | |
8007 | rm -f conftest* | |
8008 | fi | |
8009 | ||
8010 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
8011 | echo "$ac_t""yes" 1>&6 | |
8012 | : | |
8013 | else | |
8014 | echo "$ac_t""no" 1>&6 | |
8015 | fi | |
8016 | ||
8017 | if test $ac_cv_func_shmat = no; then | |
8018 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | |
d6a55c4b | 8019 | echo "configure:8020: checking for shmat in -lipc" >&5 |
ab9b9eab VZ |
8020 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
8021 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8022 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8023 | else | |
8024 | ac_save_LIBS="$LIBS" | |
8025 | LIBS="-lipc $LIBS" | |
8026 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 8027 | #line 8028 "configure" |
ab9b9eab VZ |
8028 | #include "confdefs.h" |
8029 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8030 | /* We use char because int might match the return type of a gcc2 | |
8031 | builtin and then its argument prototype would still apply. */ | |
8032 | char shmat(); | |
8033 | ||
8034 | int main() { | |
8035 | shmat() | |
8036 | ; return 0; } | |
8037 | EOF | |
d6a55c4b | 8038 | if { (eval echo configure:8039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8039 | rm -rf conftest* |
8040 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8041 | else | |
8042 | echo "configure: failed program was:" >&5 | |
8043 | cat conftest.$ac_ext >&5 | |
8044 | rm -rf conftest* | |
8045 | eval "ac_cv_lib_$ac_lib_var=no" | |
8046 | fi | |
8047 | rm -f conftest* | |
8048 | LIBS="$ac_save_LIBS" | |
8049 | ||
8050 | fi | |
8051 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8052 | echo "$ac_t""yes" 1>&6 | |
8053 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
8054 | else | |
8055 | echo "$ac_t""no" 1>&6 | |
8056 | fi | |
8057 | ||
8058 | fi | |
8059 | fi | |
8060 | ||
8061 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
8062 | ac_save_LDFLAGS="$LDFLAGS" | |
8063 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
8064 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
8065 | # check for ICE first), but we must link in the order -lSM -lICE or | |
8066 | # we get undefined symbols. So assume we have SM if we have ICE. | |
8067 | # These have to be linked with before -lX11, unlike the other | |
8068 | # libraries we check for below, so use a different variable. | |
8069 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | |
8070 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
d6a55c4b | 8071 | echo "configure:8072: checking for IceConnectionNumber in -lICE" >&5 |
ab9b9eab VZ |
8072 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
8073 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8074 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8075 | else | |
8076 | ac_save_LIBS="$LIBS" | |
8077 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
8078 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 8079 | #line 8080 "configure" |
ab9b9eab VZ |
8080 | #include "confdefs.h" |
8081 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8082 | /* We use char because int might match the return type of a gcc2 | |
8083 | builtin and then its argument prototype would still apply. */ | |
8084 | char IceConnectionNumber(); | |
8085 | ||
8086 | int main() { | |
8087 | IceConnectionNumber() | |
8088 | ; return 0; } | |
8089 | EOF | |
d6a55c4b | 8090 | if { (eval echo configure:8091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8091 | rm -rf conftest* |
8092 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8093 | else | |
8094 | echo "configure: failed program was:" >&5 | |
8095 | cat conftest.$ac_ext >&5 | |
8096 | rm -rf conftest* | |
8097 | eval "ac_cv_lib_$ac_lib_var=no" | |
8098 | fi | |
8099 | rm -f conftest* | |
8100 | LIBS="$ac_save_LIBS" | |
8101 | ||
8102 | fi | |
8103 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8104 | echo "$ac_t""yes" 1>&6 | |
8105 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
8106 | else | |
8107 | echo "$ac_t""no" 1>&6 | |
8108 | fi | |
8109 | ||
8110 | LDFLAGS="$ac_save_LDFLAGS" | |
8111 | ||
8112 | fi | |
8113 | ||
8114 | ||
8115 | if test "$no_x" = "yes"; then | |
8116 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
8117 | fi | |
8118 | ||
8119 | GUI_TK_LIBRARY="$X_LIBS" | |
8120 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
8121 | ||
dad6c0ea VZ |
8122 | AFMINSTALL=afminstall |
8123 | ||
ab9b9eab | 8124 | |
cd6d6d5b VZ |
8125 | COMPILED_X_PROGRAM=0 |
8126 | ||
ab9b9eab | 8127 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 |
d6a55c4b | 8128 | echo "configure:8129: checking for Motif/Lesstif headers" >&5 |
ab9b9eab VZ |
8129 | |
8130 | ac_find_includes= | |
8131 | for ac_dir in $SEARCH_INCLUDE; | |
8132 | do | |
8133 | if test -f "$ac_dir/Xm/Xm.h"; then | |
8134 | ac_find_includes=$ac_dir | |
8135 | break | |
8136 | fi | |
8137 | done | |
8138 | ||
8139 | if test "$ac_find_includes" != "" ; then | |
8140 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
8141 | else | |
cd6d6d5b | 8142 | cat > conftest.$ac_ext <<EOF |
d6a55c4b | 8143 | #line 8144 "configure" |
cd6d6d5b VZ |
8144 | #include "confdefs.h" |
8145 | ||
8146 | #include <Xm/Xm.h> | |
8147 | ||
8148 | int main() { | |
8149 | ||
8150 | int version; | |
8151 | ||
8152 | version = xmUseVersion; | |
8153 | ||
8154 | ; return 0; } | |
8155 | EOF | |
d6a55c4b | 8156 | if { (eval echo configure:8157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
cd6d6d5b VZ |
8157 | rm -rf conftest* |
8158 | ||
8159 | echo "$ac_t""found in default search path" 1>&6 | |
8160 | COMPILED_X_PROGRAM=1 | |
8161 | ||
8162 | else | |
8163 | echo "configure: failed program was:" >&5 | |
8164 | cat conftest.$ac_ext >&5 | |
8165 | rm -rf conftest* | |
8166 | ||
8167 | echo "$ac_t""no" 1>&6 | |
8168 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
8169 | ||
8170 | ||
8171 | fi | |
8172 | rm -f conftest* | |
ab9b9eab VZ |
8173 | fi |
8174 | ||
cd6d6d5b VZ |
8175 | if test "$COMPILED_X_PROGRAM" = 0; then |
8176 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
d6a55c4b | 8177 | echo "configure:8178: checking for Motif/Lesstif library" >&5 |
cd6d6d5b | 8178 | |
ab9b9eab VZ |
8179 | ac_find_libraries= |
8180 | for ac_dir in $SEARCH_LIB; | |
8181 | do | |
8182 | for ac_extension in a so sl; do | |
8183 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
8184 | ac_find_libraries=$ac_dir | |
8185 | break 2 | |
8186 | fi | |
8187 | done | |
8188 | done | |
8189 | ||
cd6d6d5b VZ |
8190 | if test "$ac_find_libraries" != "" ; then |
8191 | ||
ab9b9eab VZ |
8192 | ac_path_to_include=$ac_find_includes |
8193 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
8194 | result=$? | |
8195 | if test $result = 0; then | |
8196 | ac_path_to_include="" | |
8197 | else | |
8198 | ac_path_to_include="-I$ac_find_includes" | |
8199 | fi | |
8200 | ||
cd6d6d5b | 8201 | |
ab9b9eab VZ |
8202 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
8203 | result=$? | |
8204 | if test $result = 0; then | |
8205 | ac_path_to_link="" | |
8206 | else | |
8207 | ac_path_to_link="-L$ac_find_libraries" | |
8208 | fi | |
8209 | ||
8210 | ||
cd6d6d5b VZ |
8211 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" |
8212 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include" | |
8213 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
8214 | else | |
8215 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 8216 | #line 8217 "configure" |
cd6d6d5b | 8217 | #include "confdefs.h" |
ab9b9eab | 8218 | |
cd6d6d5b VZ |
8219 | #include <Xm/Xm.h> |
8220 | ||
8221 | int main() { | |
ab9b9eab | 8222 | |
cd6d6d5b | 8223 | int version; |
ab9b9eab | 8224 | |
cd6d6d5b VZ |
8225 | version = xmUseVersion; |
8226 | ||
8227 | ; return 0; } | |
8228 | EOF | |
d6a55c4b | 8229 | if { (eval echo configure:8230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
cd6d6d5b VZ |
8230 | rm -rf conftest* |
8231 | ||
8232 | echo "$ac_t""found in default search path" 1>&6 | |
8233 | COMPILED_X_PROGRAM=1 | |
8234 | ||
8235 | else | |
8236 | echo "configure: failed program was:" >&5 | |
8237 | cat conftest.$ac_ext >&5 | |
8238 | rm -rf conftest* | |
8239 | ||
8240 | echo "$ac_t""no" 1>&6 | |
8241 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
8242 | ||
8243 | ||
8244 | fi | |
8245 | rm -f conftest* | |
8246 | fi | |
ab9b9eab VZ |
8247 | fi |
8248 | ||
cd6d6d5b | 8249 | |
ab9b9eab VZ |
8250 | XPM_LINK="" |
8251 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
d6a55c4b | 8252 | echo "configure:8253: checking for Xpm library" >&5 |
ab9b9eab VZ |
8253 | |
8254 | ac_find_libraries= | |
8255 | for ac_dir in $SEARCH_LIB; | |
8256 | do | |
8257 | for ac_extension in a so sl; do | |
8258 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
8259 | ac_find_libraries=$ac_dir | |
8260 | break 2 | |
8261 | fi | |
8262 | done | |
8263 | done | |
8264 | ||
8265 | if test "$ac_find_libraries" != "" ; then | |
8266 | ||
8267 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
8268 | result=$? | |
8269 | if test $result = 0; then | |
8270 | ac_path_to_link="" | |
8271 | else | |
8272 | ac_path_to_link="-L$ac_find_libraries" | |
8273 | fi | |
8274 | ||
8275 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" | |
8276 | XPM_LINK="-lXpm " | |
8277 | cat >> confdefs.h <<\EOF | |
8278 | #define wxHAVE_LIB_XPM 1 | |
8279 | EOF | |
8280 | ||
8281 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
8282 | else | |
cd6d6d5b | 8283 | cat > conftest.$ac_ext <<EOF |
d6a55c4b | 8284 | #line 8285 "configure" |
cd6d6d5b VZ |
8285 | #include "confdefs.h" |
8286 | ||
8287 | #include <X11/xpm.h> | |
8288 | ||
8289 | int main() { | |
8290 | ||
8291 | int version; | |
8292 | ||
8293 | version = XpmLibraryVersion(); | |
8294 | ||
8295 | ; return 0; } | |
8296 | EOF | |
d6a55c4b | 8297 | if { (eval echo configure:8298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
cd6d6d5b VZ |
8298 | rm -rf conftest* |
8299 | ||
3ace2e6d SN |
8300 | XPM_LINK="-lXpm " |
8301 | cat >> confdefs.h <<\EOF | |
8302 | #define wxHAVE_LIB_XPM 1 | |
8303 | EOF | |
8304 | ||
8305 | echo "$ac_t""found in default search path" 1>&6 | |
cd6d6d5b VZ |
8306 | COMPILED_X_PROGRAM=0 |
8307 | ||
8308 | else | |
8309 | echo "configure: failed program was:" >&5 | |
8310 | cat conftest.$ac_ext >&5 | |
8311 | rm -rf conftest* | |
8312 | ||
8313 | echo "$ac_t""no" 1>&6 | |
8314 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
8315 | ||
8316 | ||
8317 | fi | |
8318 | rm -f conftest* | |
ab9b9eab VZ |
8319 | fi |
8320 | ||
8321 | GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11 -lm" | |
8322 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" | |
8323 | TOOLKIT=MOTIF | |
8324 | ||
8325 | GUIHEADERS="\$(MOTIF_HEADERS)" | |
8326 | GUIOBJS="\$(MOTIF_GUIOBJS)" | |
8327 | COMMONOBJS="\$(MOTIF_COMMONOBJS)" | |
788deba1 VZ |
8328 | GENERICOBJS="\$(MOTIF_GENERICOBJS)" |
8329 | GUIDEPS="\$(MOTIF_GUIDEPS)" | |
8330 | COMMONDEPS="\$(MOTIF_COMMONDEPS)" | |
10f2d63a VZ |
8331 | GENERICDEPS="\$(MOTIF_GENERICDEPS)" |
8332 | UNIXOBJS="\$(UNIX_OBJS)" | |
d9d8273d | 8333 | UNIXDEPS="\$(UNIX_DEPS)" |
10f2d63a VZ |
8334 | GUIDIST=MOTIF_DIST |
8335 | fi | |
8336 | ||
e07802fc VZ |
8337 | if test "$wxUSE_PM" = 1; then |
8338 | TOOLKIT=PM | |
8339 | ||
8340 | GUIOBJS="\$(PM_GUIOBJS)" | |
8341 | GUIHEADERS="\$(PM_HEADERS)" | |
8342 | COMMONOBJS="\$(PM_COMMONOBJS)" | |
8343 | GENERICOBJS="\$(PM_GENERICOBJS)" | |
8344 | GUIDEPS="\$(PM_GUIDEPS)" | |
8345 | COMMONDEPS="\$(PM_COMMONDEPS)" | |
8346 | GENERICDEPS="\$(PM_GENERICDEPS)" | |
8347 | UNIXOBJS= | |
8348 | UNIXDEPS= | |
8349 | GUIDIST=GTK_DIST | |
8350 | fi | |
8351 | ||
8352 | if test "$TOOLKIT" != "PM" ; then | |
ec14dd32 | 8353 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` |
e07802fc VZ |
8354 | else |
8355 | TOOLKIT_DIR="os2" | |
8356 | fi | |
10f2d63a | 8357 | |
2224580a | 8358 | TOOLKIT_DEF="-D__WX${TOOLKIT}__" |
10f2d63a | 8359 | |
2224580a | 8360 | WX_LIBRARY="wx_${TOOLKIT_DIR}" |
10f2d63a | 8361 | |
3fcdd07b VZ |
8362 | ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS)" |
8363 | ||
b089607b | 8364 | if test "$TOOLKIT" != "MSW"; then |
cc977e5f RR |
8365 | if test "$wxUSE_ODBC" = "yes" ; then |
8366 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
8367 | fi | |
3fcdd07b VZ |
8368 | fi |
8369 | ||
d9d8273d | 8370 | if test "$wxUSE_LIBJPEG" = "yes" ; then |
2224580a | 8371 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" |
d9d8273d RR |
8372 | fi |
8373 | if test "$wxUSE_LIBTIFF" = "yes" ; then | |
8374 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
8375 | fi | |
8376 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
8377 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
8378 | fi | |
8379 | if test "$wxUSE_ZLIB" = "yes" ; then | |
8380 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
8381 | fi | |
10f2d63a | 8382 | ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS)" |
2224580a VZ |
8383 | |
8384 | PORT_FILES="src/\$(TOOLKITDIR)/files.lst" | |
8385 | RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst" | |
8386 | RPM_SPEC="wx\$(TOOLKIT).spec" | |
8387 | ||
8388 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
8389 | DISTDIR="wx\$(TOOLKIT)" | |
10f2d63a VZ |
8390 | else |
8391 | ||
dad6c0ea VZ |
8392 | USE_GUI=0 |
8393 | ||
2224580a VZ |
8394 | ALL_OBJECTS="\$(BASE_OBJS) \${BASE_UNIX_OBJS}" |
8395 | ALL_DEPFILES="\${BASE_DEPS} \${BASE_UNIX_DEPS}" | |
10f2d63a VZ |
8396 | |
8397 | WX_LIBRARY="wxbase" | |
2224580a VZ |
8398 | |
8399 | PORT_FILES="src/files.lst" | |
8400 | RPM_FILES="src/rpmfiles.lst" | |
8401 | RPM_SPEC="wxBase.spec" | |
8402 | ||
8403 | GUIDIST="BASE_DIST" | |
8404 | DISTDIR="wxBase" | |
10f2d63a VZ |
8405 | fi |
8406 | ||
8407 | WX_LIBRARY_NAME="lib${WX_LIBRARY}.la" | |
8408 | ||
8409 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
8410 | ||
8411 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
8412 | ||
8413 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}" | |
8414 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so" | |
8415 | WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so" | |
8416 | ||
8417 | SHARED_LD= | |
8418 | PIC_FLAG= | |
8419 | WX_ALL= | |
8420 | WX_ALL_INSTALLED= | |
1d62a8b4 | 8421 | BURNT_LIBRARY_NAME= |
10f2d63a | 8422 | |
b12915c1 | 8423 | |
10f2d63a VZ |
8424 | if test "$wxUSE_SHARED" = "yes"; then |
8425 | case "${host}" in | |
8426 | *-hp-hpux* ) | |
8427 | if test "$GCC" = yes ; then | |
69ffe1d2 | 8428 | SHARED_LD="${CC} -shared -fPIC -o" |
10f2d63a VZ |
8429 | PIC_FLAG="-fPIC" |
8430 | else | |
8431 | SHARED_LD="${CXX} -b -o" | |
8432 | PIC_FLAG="+Z" | |
8433 | fi | |
8434 | WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl" | |
8435 | WX_ALL=${WX_LIBRARY_NAME_SHARED} | |
8436 | ;; | |
b12915c1 VZ |
8437 | |
8438 | *-*-linux* ) | |
10f2d63a VZ |
8439 | SHARED_LD="${CC} -shared -o" |
8440 | PIC_FLAG="-fPIC" | |
8441 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8442 | WX_ALL="CREATE_LINKS" | |
00cf1208 | 8443 | if test "$wxUSE_BURNT_NAME" = "yes" ; then |
05cdfc6f | 8444 | BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}" |
00cf1208 RR |
8445 | fi |
8446 | ;; | |
10f2d63a VZ |
8447 | *-*-irix5* | *-*-irix6* ) |
8448 | if test "$GCC" = yes ; then | |
8449 | SHARED_LD="${CC} -shared -o" | |
8450 | PIC_FLAG="-fPIC" | |
8451 | else | |
8452 | SHARED_LD="${CXX} -shared -o" | |
8453 | fi | |
8454 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8455 | WX_ALL="CREATE_LINKS" | |
8456 | ;; | |
8457 | *-*-solaris2* ) | |
8458 | if test "$GCC" = yes ; then | |
8459 | SHARED_LD="${CC} -shared -o" | |
8460 | PIC_FLAG="-fPIC" | |
8461 | else | |
8462 | SHARED_LD="${CXX} -G -o" | |
8463 | PIC_FLAG="-KPIC" | |
8464 | fi | |
8465 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8466 | WX_ALL="CREATE_LINKS" | |
8467 | ;; | |
8468 | *-*-sunos4* ) | |
8469 | SHARED_LD="${CC} -shared -o" | |
8470 | PIC_FLAG="-fPIC" | |
8471 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8472 | WX_ALL="CREATE_LINKS" | |
8473 | ;; | |
8474 | *-*-freebsd* | *-*-netbsd*) | |
8475 | SHARED_LD="${CC} -shared -o" | |
8476 | PIC_FLAG="-fPIC" | |
8477 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8478 | WX_ALL="CREATE_LINKS" | |
8479 | ;; | |
8480 | *-*-osf* ) | |
8481 | SHARED_LD="${CXX} -shared -o" | |
8482 | PIC_FLAG="-fPIC" | |
8483 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8484 | WX_ALL="CREATE_LINKS" | |
8485 | ;; | |
8486 | *-*-dgux5* ) | |
8487 | SHARED_LD="${CXX} -shared -o" | |
8488 | PIC_FLAG="-fPIC" | |
8489 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8490 | WX_ALL="CREATE_LINKS" | |
8491 | ;; | |
8492 | *-*-sysv5* ) | |
8493 | SHARED_LD="${CC} -shared -o" | |
8494 | PIC_FLAG="-fPIC" | |
8495 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8496 | WX_ALL="CREATE_LINKS" | |
8497 | ;; | |
8498 | *-*-aix* ) | |
8499 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
8500 | WX_ALL=${WX_LIBRARY_NAME_SHARED} | |
8501 | ;; | |
8502 | *-*-cygwin32* ) | |
8503 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
8504 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
8505 | ;; | |
b12915c1 | 8506 | *-*-mingw32* ) |
10f2d63a VZ |
8507 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
8508 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
8509 | ;; | |
8510 | *-pc-os2_emx ) | |
e07802fc VZ |
8511 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
8512 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10f2d63a | 8513 | ;; |
b12915c1 | 8514 | *-*-beos* ) |
e2b8b066 | 8515 | SHARED_LD="${LD} -shared -o" |
b12915c1 VZ |
8516 | PIC_FLAG="-fPIC" |
8517 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8518 | WX_ALL="CREATE_LINKS" | |
8519 | ;; | |
10f2d63a VZ |
8520 | *) |
8521 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } | |
8522 | esac | |
8523 | ||
8524 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
8525 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
8526 | fi | |
8527 | else | |
8528 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
8529 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
8530 | fi | |
8531 | ||
8532 | ||
8533 | for ac_hdr in strings.h | |
8534 | do | |
8535 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8536 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d6a55c4b | 8537 | echo "configure:8538: checking for $ac_hdr" >&5 |
10f2d63a VZ |
8538 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8539 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8540 | else | |
8541 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 8542 | #line 8543 "configure" |
10f2d63a VZ |
8543 | #include "confdefs.h" |
8544 | #include <$ac_hdr> | |
8545 | EOF | |
8546 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d6a55c4b | 8547 | { (eval echo configure:8548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
8548 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8549 | if test -z "$ac_err"; then | |
8550 | rm -rf conftest* | |
8551 | eval "ac_cv_header_$ac_safe=yes" | |
8552 | else | |
8553 | echo "$ac_err" >&5 | |
8554 | echo "configure: failed program was:" >&5 | |
8555 | cat conftest.$ac_ext >&5 | |
8556 | rm -rf conftest* | |
8557 | eval "ac_cv_header_$ac_safe=no" | |
8558 | fi | |
8559 | rm -f conftest* | |
8560 | fi | |
8561 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8562 | echo "$ac_t""yes" 1>&6 | |
8563 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8564 | cat >> confdefs.h <<EOF | |
8565 | #define $ac_tr_hdr 1 | |
8566 | EOF | |
8567 | ||
8568 | else | |
8569 | echo "$ac_t""no" 1>&6 | |
8570 | fi | |
8571 | done | |
8572 | ||
8573 | for ac_hdr in unistd.h | |
8574 | do | |
8575 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8576 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d6a55c4b | 8577 | echo "configure:8578: checking for $ac_hdr" >&5 |
10f2d63a VZ |
8578 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8579 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8580 | else | |
8581 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 8582 | #line 8583 "configure" |
10f2d63a VZ |
8583 | #include "confdefs.h" |
8584 | #include <$ac_hdr> | |
8585 | EOF | |
8586 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d6a55c4b | 8587 | { (eval echo configure:8588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
8588 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8589 | if test -z "$ac_err"; then | |
8590 | rm -rf conftest* | |
8591 | eval "ac_cv_header_$ac_safe=yes" | |
8592 | else | |
8593 | echo "$ac_err" >&5 | |
8594 | echo "configure: failed program was:" >&5 | |
8595 | cat conftest.$ac_ext >&5 | |
8596 | rm -rf conftest* | |
8597 | eval "ac_cv_header_$ac_safe=no" | |
8598 | fi | |
8599 | rm -f conftest* | |
8600 | fi | |
8601 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8602 | echo "$ac_t""yes" 1>&6 | |
8603 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8604 | cat >> confdefs.h <<EOF | |
8605 | #define $ac_tr_hdr 1 | |
8606 | EOF | |
8607 | ||
8608 | else | |
8609 | echo "$ac_t""no" 1>&6 | |
8610 | fi | |
8611 | done | |
8612 | ||
8613 | for ac_hdr in wchar.h | |
8614 | do | |
8615 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8616 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d6a55c4b | 8617 | echo "configure:8618: checking for $ac_hdr" >&5 |
10f2d63a VZ |
8618 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8619 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8620 | else | |
8621 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 8622 | #line 8623 "configure" |
10f2d63a VZ |
8623 | #include "confdefs.h" |
8624 | #include <$ac_hdr> | |
8625 | EOF | |
8626 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d6a55c4b | 8627 | { (eval echo configure:8628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
8628 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8629 | if test -z "$ac_err"; then | |
8630 | rm -rf conftest* | |
8631 | eval "ac_cv_header_$ac_safe=yes" | |
8632 | else | |
8633 | echo "$ac_err" >&5 | |
8634 | echo "configure: failed program was:" >&5 | |
8635 | cat conftest.$ac_ext >&5 | |
8636 | rm -rf conftest* | |
8637 | eval "ac_cv_header_$ac_safe=no" | |
8638 | fi | |
8639 | rm -f conftest* | |
8640 | fi | |
8641 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8642 | echo "$ac_t""yes" 1>&6 | |
8643 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8644 | cat >> confdefs.h <<EOF | |
8645 | #define $ac_tr_hdr 1 | |
8646 | EOF | |
8647 | ||
8648 | else | |
8649 | echo "$ac_t""no" 1>&6 | |
8650 | fi | |
8651 | done | |
8652 | ||
8653 | for ac_hdr in wcstr.h | |
8654 | do | |
8655 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8656 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d6a55c4b | 8657 | echo "configure:8658: checking for $ac_hdr" >&5 |
10f2d63a VZ |
8658 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8659 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8660 | else | |
8661 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 8662 | #line 8663 "configure" |
10f2d63a VZ |
8663 | #include "confdefs.h" |
8664 | #include <$ac_hdr> | |
8665 | EOF | |
8666 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d6a55c4b | 8667 | { (eval echo configure:8668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
8668 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8669 | if test -z "$ac_err"; then | |
8670 | rm -rf conftest* | |
8671 | eval "ac_cv_header_$ac_safe=yes" | |
8672 | else | |
8673 | echo "$ac_err" >&5 | |
8674 | echo "configure: failed program was:" >&5 | |
8675 | cat conftest.$ac_ext >&5 | |
8676 | rm -rf conftest* | |
8677 | eval "ac_cv_header_$ac_safe=no" | |
8678 | fi | |
8679 | rm -f conftest* | |
8680 | fi | |
8681 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8682 | echo "$ac_t""yes" 1>&6 | |
8683 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8684 | cat >> confdefs.h <<EOF | |
8685 | #define $ac_tr_hdr 1 | |
8686 | EOF | |
8687 | ||
8688 | else | |
8689 | echo "$ac_t""no" 1>&6 | |
8690 | fi | |
8691 | done | |
8692 | ||
8693 | for ac_hdr in fnmatch.h | |
8694 | do | |
8695 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8696 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d6a55c4b | 8697 | echo "configure:8698: checking for $ac_hdr" >&5 |
10f2d63a VZ |
8698 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8699 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8700 | else | |
8701 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 8702 | #line 8703 "configure" |
10f2d63a VZ |
8703 | #include "confdefs.h" |
8704 | #include <$ac_hdr> | |
8705 | EOF | |
8706 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d6a55c4b | 8707 | { (eval echo configure:8708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
8708 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8709 | if test -z "$ac_err"; then | |
8710 | rm -rf conftest* | |
8711 | eval "ac_cv_header_$ac_safe=yes" | |
8712 | else | |
8713 | echo "$ac_err" >&5 | |
8714 | echo "configure: failed program was:" >&5 | |
8715 | cat conftest.$ac_ext >&5 | |
8716 | rm -rf conftest* | |
8717 | eval "ac_cv_header_$ac_safe=no" | |
8718 | fi | |
8719 | rm -f conftest* | |
8720 | fi | |
8721 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8722 | echo "$ac_t""yes" 1>&6 | |
8723 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8724 | cat >> confdefs.h <<EOF | |
8725 | #define $ac_tr_hdr 1 | |
8726 | EOF | |
8727 | ||
8728 | else | |
8729 | echo "$ac_t""no" 1>&6 | |
8730 | fi | |
8731 | done | |
8732 | ||
8733 | ||
8734 | if test "$wxUSE_GUI" = "yes"; then | |
8735 | for ac_hdr in X11/XKBlib.h | |
8736 | do | |
8737 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8738 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d6a55c4b | 8739 | echo "configure:8740: checking for $ac_hdr" >&5 |
10f2d63a VZ |
8740 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8741 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8742 | else | |
8743 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 8744 | #line 8745 "configure" |
10f2d63a VZ |
8745 | #include "confdefs.h" |
8746 | #include <$ac_hdr> | |
8747 | EOF | |
8748 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d6a55c4b | 8749 | { (eval echo configure:8750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
8750 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8751 | if test -z "$ac_err"; then | |
8752 | rm -rf conftest* | |
8753 | eval "ac_cv_header_$ac_safe=yes" | |
8754 | else | |
8755 | echo "$ac_err" >&5 | |
8756 | echo "configure: failed program was:" >&5 | |
8757 | cat conftest.$ac_ext >&5 | |
8758 | rm -rf conftest* | |
8759 | eval "ac_cv_header_$ac_safe=no" | |
8760 | fi | |
8761 | rm -f conftest* | |
8762 | fi | |
8763 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8764 | echo "$ac_t""yes" 1>&6 | |
8765 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8766 | cat >> confdefs.h <<EOF | |
8767 | #define $ac_tr_hdr 1 | |
8768 | EOF | |
8769 | ||
8770 | else | |
8771 | echo "$ac_t""no" 1>&6 | |
8772 | fi | |
8773 | done | |
8774 | ||
8775 | fi | |
8776 | ||
8777 | ||
8778 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
d6a55c4b | 8779 | echo "configure:8780: checking for ANSI C header files" >&5 |
10f2d63a VZ |
8780 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
8781 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8782 | else | |
8783 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 8784 | #line 8785 "configure" |
10f2d63a VZ |
8785 | #include "confdefs.h" |
8786 | #include <stdlib.h> | |
8787 | #include <stdarg.h> | |
8788 | #include <string.h> | |
8789 | #include <float.h> | |
8790 | EOF | |
8791 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d6a55c4b | 8792 | { (eval echo configure:8793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
8793 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8794 | if test -z "$ac_err"; then | |
8795 | rm -rf conftest* | |
8796 | ac_cv_header_stdc=yes | |
8797 | else | |
8798 | echo "$ac_err" >&5 | |
8799 | echo "configure: failed program was:" >&5 | |
8800 | cat conftest.$ac_ext >&5 | |
8801 | rm -rf conftest* | |
8802 | ac_cv_header_stdc=no | |
8803 | fi | |
8804 | rm -f conftest* | |
8805 | ||
8806 | if test $ac_cv_header_stdc = yes; then | |
8807 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
8808 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 8809 | #line 8810 "configure" |
10f2d63a VZ |
8810 | #include "confdefs.h" |
8811 | #include <string.h> | |
8812 | EOF | |
8813 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8814 | egrep "memchr" >/dev/null 2>&1; then | |
8815 | : | |
8816 | else | |
8817 | rm -rf conftest* | |
8818 | ac_cv_header_stdc=no | |
8819 | fi | |
8820 | rm -f conftest* | |
8821 | ||
8822 | fi | |
8823 | ||
8824 | if test $ac_cv_header_stdc = yes; then | |
8825 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
8826 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 8827 | #line 8828 "configure" |
10f2d63a VZ |
8828 | #include "confdefs.h" |
8829 | #include <stdlib.h> | |
8830 | EOF | |
8831 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8832 | egrep "free" >/dev/null 2>&1; then | |
8833 | : | |
8834 | else | |
8835 | rm -rf conftest* | |
8836 | ac_cv_header_stdc=no | |
8837 | fi | |
8838 | rm -f conftest* | |
8839 | ||
8840 | fi | |
8841 | ||
8842 | if test $ac_cv_header_stdc = yes; then | |
8843 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
8844 | if test "$cross_compiling" = yes; then | |
8845 | : | |
8846 | else | |
8847 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 8848 | #line 8849 "configure" |
10f2d63a VZ |
8849 | #include "confdefs.h" |
8850 | #include <ctype.h> | |
8851 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
8852 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
8853 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
8854 | int main () { int i; for (i = 0; i < 256; i++) | |
8855 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
8856 | exit (0); } | |
8857 | ||
8858 | EOF | |
d6a55c4b | 8859 | if { (eval echo configure:8860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
8860 | then |
8861 | : | |
8862 | else | |
8863 | echo "configure: failed program was:" >&5 | |
8864 | cat conftest.$ac_ext >&5 | |
8865 | rm -fr conftest* | |
8866 | ac_cv_header_stdc=no | |
8867 | fi | |
8868 | rm -fr conftest* | |
8869 | fi | |
8870 | ||
8871 | fi | |
8872 | fi | |
8873 | ||
8874 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
8875 | if test $ac_cv_header_stdc = yes; then | |
8876 | cat >> confdefs.h <<\EOF | |
8877 | #define STDC_HEADERS 1 | |
8878 | EOF | |
8879 | ||
8880 | fi | |
8881 | ||
8882 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 | |
d6a55c4b | 8883 | echo "configure:8884: checking for mode_t" >&5 |
10f2d63a VZ |
8884 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
8885 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8886 | else | |
8887 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 8888 | #line 8889 "configure" |
10f2d63a VZ |
8889 | #include "confdefs.h" |
8890 | #include <sys/types.h> | |
8891 | #if STDC_HEADERS | |
8892 | #include <stdlib.h> | |
8893 | #include <stddef.h> | |
8894 | #endif | |
8895 | EOF | |
8896 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8897 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
8898 | rm -rf conftest* | |
8899 | ac_cv_type_mode_t=yes | |
8900 | else | |
8901 | rm -rf conftest* | |
8902 | ac_cv_type_mode_t=no | |
8903 | fi | |
8904 | rm -f conftest* | |
8905 | ||
8906 | fi | |
8907 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
8908 | if test $ac_cv_type_mode_t = no; then | |
8909 | cat >> confdefs.h <<\EOF | |
8910 | #define mode_t int | |
8911 | EOF | |
8912 | ||
8913 | fi | |
8914 | ||
8915 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
d6a55c4b | 8916 | echo "configure:8917: checking for off_t" >&5 |
10f2d63a VZ |
8917 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
8918 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8919 | else | |
8920 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 8921 | #line 8922 "configure" |
10f2d63a VZ |
8922 | #include "confdefs.h" |
8923 | #include <sys/types.h> | |
8924 | #if STDC_HEADERS | |
8925 | #include <stdlib.h> | |
8926 | #include <stddef.h> | |
8927 | #endif | |
8928 | EOF | |
8929 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8930 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
8931 | rm -rf conftest* | |
8932 | ac_cv_type_off_t=yes | |
8933 | else | |
8934 | rm -rf conftest* | |
8935 | ac_cv_type_off_t=no | |
8936 | fi | |
8937 | rm -f conftest* | |
8938 | ||
8939 | fi | |
8940 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
8941 | if test $ac_cv_type_off_t = no; then | |
8942 | cat >> confdefs.h <<\EOF | |
8943 | #define off_t long | |
8944 | EOF | |
8945 | ||
8946 | fi | |
8947 | ||
8948 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 | |
d6a55c4b | 8949 | echo "configure:8950: checking for pid_t" >&5 |
10f2d63a VZ |
8950 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
8951 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8952 | else | |
8953 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 8954 | #line 8955 "configure" |
10f2d63a VZ |
8955 | #include "confdefs.h" |
8956 | #include <sys/types.h> | |
8957 | #if STDC_HEADERS | |
8958 | #include <stdlib.h> | |
8959 | #include <stddef.h> | |
8960 | #endif | |
8961 | EOF | |
8962 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8963 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
8964 | rm -rf conftest* | |
8965 | ac_cv_type_pid_t=yes | |
8966 | else | |
8967 | rm -rf conftest* | |
8968 | ac_cv_type_pid_t=no | |
8969 | fi | |
8970 | rm -f conftest* | |
8971 | ||
8972 | fi | |
8973 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
8974 | if test $ac_cv_type_pid_t = no; then | |
8975 | cat >> confdefs.h <<\EOF | |
8976 | #define pid_t int | |
8977 | EOF | |
8978 | ||
8979 | fi | |
8980 | ||
8981 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
d6a55c4b | 8982 | echo "configure:8983: checking for size_t" >&5 |
10f2d63a VZ |
8983 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
8984 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8985 | else | |
8986 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 8987 | #line 8988 "configure" |
10f2d63a VZ |
8988 | #include "confdefs.h" |
8989 | #include <sys/types.h> | |
8990 | #if STDC_HEADERS | |
8991 | #include <stdlib.h> | |
8992 | #include <stddef.h> | |
8993 | #endif | |
8994 | EOF | |
8995 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8996 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
8997 | rm -rf conftest* | |
8998 | ac_cv_type_size_t=yes | |
8999 | else | |
9000 | rm -rf conftest* | |
9001 | ac_cv_type_size_t=no | |
9002 | fi | |
9003 | rm -f conftest* | |
9004 | ||
9005 | fi | |
9006 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
9007 | if test $ac_cv_type_size_t = no; then | |
9008 | cat >> confdefs.h <<\EOF | |
9009 | #define size_t unsigned | |
9010 | EOF | |
9011 | ||
9012 | fi | |
9013 | ||
9014 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 | |
d6a55c4b | 9015 | echo "configure:9016: checking for uid_t in sys/types.h" >&5 |
10f2d63a VZ |
9016 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
9017 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9018 | else | |
9019 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 9020 | #line 9021 "configure" |
10f2d63a VZ |
9021 | #include "confdefs.h" |
9022 | #include <sys/types.h> | |
9023 | EOF | |
9024 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9025 | egrep "uid_t" >/dev/null 2>&1; then | |
9026 | rm -rf conftest* | |
9027 | ac_cv_type_uid_t=yes | |
9028 | else | |
9029 | rm -rf conftest* | |
9030 | ac_cv_type_uid_t=no | |
9031 | fi | |
9032 | rm -f conftest* | |
9033 | ||
9034 | fi | |
9035 | ||
9036 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 | |
9037 | if test $ac_cv_type_uid_t = no; then | |
9038 | cat >> confdefs.h <<\EOF | |
9039 | #define uid_t int | |
9040 | EOF | |
9041 | ||
9042 | cat >> confdefs.h <<\EOF | |
9043 | #define gid_t int | |
9044 | EOF | |
9045 | ||
9046 | fi | |
9047 | ||
9048 | ||
9049 | ||
b12915c1 | 9050 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
d6a55c4b | 9051 | echo "configure:9052: checking for pw_gecos in struct passwd" >&5 |
b12915c1 VZ |
9052 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
9053 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9054 | else | |
9055 | ||
9056 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 9057 | #line 9058 "configure" |
b12915c1 VZ |
9058 | #include "confdefs.h" |
9059 | #include <pwd.h> | |
9060 | int main() { | |
9061 | ||
9062 | char *p; | |
9063 | struct passwd *pw; | |
9064 | p = pw->pw_gecos; | |
9065 | ||
9066 | ; return 0; } | |
9067 | EOF | |
d6a55c4b | 9068 | if { (eval echo configure:9069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
b12915c1 VZ |
9069 | rm -rf conftest* |
9070 | ||
9071 | wx_cv_struct_pw_gecos=yes | |
9072 | cat >> confdefs.h <<\EOF | |
9073 | #define HAVE_PW_GECOS 1 | |
9074 | EOF | |
9075 | ||
9076 | ||
9077 | else | |
9078 | echo "configure: failed program was:" >&5 | |
9079 | cat conftest.$ac_ext >&5 | |
9080 | rm -rf conftest* | |
9081 | ||
9082 | wx_cv_struct_pw_gecos=no | |
9083 | ||
9084 | ||
9085 | fi | |
9086 | rm -f conftest* | |
9087 | ||
9088 | ||
9089 | fi | |
9090 | ||
9091 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
9092 | ||
10f2d63a VZ |
9093 | |
9094 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
d6a55c4b | 9095 | echo "configure:9096: checking for working const" >&5 |
10f2d63a VZ |
9096 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
9097 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9098 | else | |
9099 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 9100 | #line 9101 "configure" |
10f2d63a VZ |
9101 | #include "confdefs.h" |
9102 | ||
9103 | int main() { | |
9104 | ||
9105 | /* Ultrix mips cc rejects this. */ | |
05cdfc6f | 9106 | typedef int charset[2]; const charset x = {0,0}; |
10f2d63a VZ |
9107 | /* SunOS 4.1.1 cc rejects this. */ |
9108 | char const *const *ccp; | |
9109 | char **p; | |
9110 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
9111 | struct point {int x, y;}; | |
9112 | static struct point const zero = {0,0}; | |
9113 | /* AIX XL C 1.02.0.0 rejects this. | |
9114 | It does not let you subtract one const X* pointer from another in an arm | |
9115 | of an if-expression whose if-part is not a constant expression */ | |
9116 | const char *g = "string"; | |
9117 | ccp = &g + (g ? g-g : 0); | |
9118 | /* HPUX 7.0 cc rejects these. */ | |
9119 | ++ccp; | |
9120 | p = (char**) ccp; | |
9121 | ccp = (char const *const *) p; | |
9122 | { /* SCO 3.2v4 cc rejects this. */ | |
9123 | char *t; | |
9124 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
9125 | ||
9126 | *t++ = 0; | |
9127 | } | |
9128 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
9129 | int x[] = {25, 17}; | |
9130 | const int *foo = &x[0]; | |
9131 | ++foo; | |
9132 | } | |
9133 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
9134 | typedef const int *iptr; | |
9135 | iptr p = 0; | |
9136 | ++p; | |
9137 | } | |
9138 | { /* AIX XL C 1.02.0.0 rejects this saying | |
9139 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
9140 | struct s { int j; const int *ap[3]; }; | |
9141 | struct s *b; b->j = 5; | |
9142 | } | |
9143 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
9144 | const int foo = 10; | |
9145 | } | |
9146 | ||
9147 | ; return 0; } | |
9148 | EOF | |
d6a55c4b | 9149 | if { (eval echo configure:9150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
9150 | rm -rf conftest* |
9151 | ac_cv_c_const=yes | |
9152 | else | |
9153 | echo "configure: failed program was:" >&5 | |
9154 | cat conftest.$ac_ext >&5 | |
9155 | rm -rf conftest* | |
9156 | ac_cv_c_const=no | |
9157 | fi | |
9158 | rm -f conftest* | |
9159 | fi | |
9160 | ||
9161 | echo "$ac_t""$ac_cv_c_const" 1>&6 | |
9162 | if test $ac_cv_c_const = no; then | |
9163 | cat >> confdefs.h <<\EOF | |
9164 | #define const | |
9165 | EOF | |
9166 | ||
9167 | fi | |
9168 | ||
9169 | echo $ac_n "checking for inline""... $ac_c" 1>&6 | |
d6a55c4b | 9170 | echo "configure:9171: checking for inline" >&5 |
10f2d63a VZ |
9171 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
9172 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9173 | else | |
9174 | ac_cv_c_inline=no | |
9175 | for ac_kw in inline __inline__ __inline; do | |
9176 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 9177 | #line 9178 "configure" |
10f2d63a VZ |
9178 | #include "confdefs.h" |
9179 | ||
9180 | int main() { | |
05cdfc6f | 9181 | } int $ac_kw foo() { |
10f2d63a VZ |
9182 | ; return 0; } |
9183 | EOF | |
d6a55c4b | 9184 | if { (eval echo configure:9185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
9185 | rm -rf conftest* |
9186 | ac_cv_c_inline=$ac_kw; break | |
9187 | else | |
9188 | echo "configure: failed program was:" >&5 | |
9189 | cat conftest.$ac_ext >&5 | |
9190 | fi | |
9191 | rm -f conftest* | |
9192 | done | |
9193 | ||
9194 | fi | |
9195 | ||
9196 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
9197 | case "$ac_cv_c_inline" in | |
9198 | inline | yes) ;; | |
9199 | no) cat >> confdefs.h <<\EOF | |
9200 | #define inline | |
9201 | EOF | |
9202 | ;; | |
9203 | *) cat >> confdefs.h <<EOF | |
9204 | #define inline $ac_cv_c_inline | |
9205 | EOF | |
9206 | ;; | |
9207 | esac | |
9208 | ||
9209 | ||
9210 | echo $ac_n "checking size of char""... $ac_c" 1>&6 | |
d6a55c4b | 9211 | echo "configure:9212: checking size of char" >&5 |
10f2d63a VZ |
9212 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
9213 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9214 | else | |
9215 | if test "$cross_compiling" = yes; then | |
9216 | ac_cv_sizeof_char=1 | |
9217 | else | |
9218 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 9219 | #line 9220 "configure" |
10f2d63a VZ |
9220 | #include "confdefs.h" |
9221 | #include <stdio.h> | |
9222 | main() | |
9223 | { | |
9224 | FILE *f=fopen("conftestval", "w"); | |
9225 | if (!f) exit(1); | |
9226 | fprintf(f, "%d\n", sizeof(char)); | |
9227 | exit(0); | |
9228 | } | |
9229 | EOF | |
d6a55c4b | 9230 | if { (eval echo configure:9231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
9231 | then |
9232 | ac_cv_sizeof_char=`cat conftestval` | |
9233 | else | |
9234 | echo "configure: failed program was:" >&5 | |
9235 | cat conftest.$ac_ext >&5 | |
9236 | rm -fr conftest* | |
9237 | ac_cv_sizeof_char=0 | |
9238 | fi | |
9239 | rm -fr conftest* | |
9240 | fi | |
9241 | ||
9242 | fi | |
9243 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 | |
9244 | cat >> confdefs.h <<EOF | |
9245 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
9246 | EOF | |
9247 | ||
9248 | ||
9249 | echo $ac_n "checking size of short""... $ac_c" 1>&6 | |
d6a55c4b | 9250 | echo "configure:9251: checking size of short" >&5 |
10f2d63a VZ |
9251 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
9252 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9253 | else | |
9254 | if test "$cross_compiling" = yes; then | |
9255 | ac_cv_sizeof_short=2 | |
9256 | else | |
9257 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 9258 | #line 9259 "configure" |
10f2d63a VZ |
9259 | #include "confdefs.h" |
9260 | #include <stdio.h> | |
9261 | main() | |
9262 | { | |
9263 | FILE *f=fopen("conftestval", "w"); | |
9264 | if (!f) exit(1); | |
9265 | fprintf(f, "%d\n", sizeof(short)); | |
9266 | exit(0); | |
9267 | } | |
9268 | EOF | |
d6a55c4b | 9269 | if { (eval echo configure:9270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
9270 | then |
9271 | ac_cv_sizeof_short=`cat conftestval` | |
9272 | else | |
9273 | echo "configure: failed program was:" >&5 | |
9274 | cat conftest.$ac_ext >&5 | |
9275 | rm -fr conftest* | |
9276 | ac_cv_sizeof_short=0 | |
9277 | fi | |
9278 | rm -fr conftest* | |
9279 | fi | |
9280 | ||
9281 | fi | |
9282 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 | |
9283 | cat >> confdefs.h <<EOF | |
9284 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
9285 | EOF | |
9286 | ||
9287 | ||
9288 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 | |
d6a55c4b | 9289 | echo "configure:9290: checking size of int *" >&5 |
10f2d63a VZ |
9290 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then |
9291 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9292 | else | |
9293 | if test "$cross_compiling" = yes; then | |
9294 | ac_cv_sizeof_int_p=4 | |
9295 | else | |
9296 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 9297 | #line 9298 "configure" |
10f2d63a VZ |
9298 | #include "confdefs.h" |
9299 | #include <stdio.h> | |
9300 | main() | |
9301 | { | |
9302 | FILE *f=fopen("conftestval", "w"); | |
9303 | if (!f) exit(1); | |
9304 | fprintf(f, "%d\n", sizeof(int *)); | |
9305 | exit(0); | |
9306 | } | |
9307 | EOF | |
d6a55c4b | 9308 | if { (eval echo configure:9309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
9309 | then |
9310 | ac_cv_sizeof_int_p=`cat conftestval` | |
9311 | else | |
9312 | echo "configure: failed program was:" >&5 | |
9313 | cat conftest.$ac_ext >&5 | |
9314 | rm -fr conftest* | |
9315 | ac_cv_sizeof_int_p=0 | |
9316 | fi | |
9317 | rm -fr conftest* | |
9318 | fi | |
9319 | ||
9320 | fi | |
9321 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 | |
9322 | cat >> confdefs.h <<EOF | |
9323 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
9324 | EOF | |
9325 | ||
9326 | ||
9327 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
d6a55c4b | 9328 | echo "configure:9329: checking size of int" >&5 |
10f2d63a VZ |
9329 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
9330 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9331 | else | |
9332 | if test "$cross_compiling" = yes; then | |
9333 | ac_cv_sizeof_int=4 | |
9334 | else | |
9335 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 9336 | #line 9337 "configure" |
10f2d63a VZ |
9337 | #include "confdefs.h" |
9338 | #include <stdio.h> | |
9339 | main() | |
9340 | { | |
9341 | FILE *f=fopen("conftestval", "w"); | |
9342 | if (!f) exit(1); | |
9343 | fprintf(f, "%d\n", sizeof(int)); | |
9344 | exit(0); | |
9345 | } | |
9346 | EOF | |
d6a55c4b | 9347 | if { (eval echo configure:9348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
9348 | then |
9349 | ac_cv_sizeof_int=`cat conftestval` | |
9350 | else | |
9351 | echo "configure: failed program was:" >&5 | |
9352 | cat conftest.$ac_ext >&5 | |
9353 | rm -fr conftest* | |
9354 | ac_cv_sizeof_int=0 | |
9355 | fi | |
9356 | rm -fr conftest* | |
9357 | fi | |
9358 | ||
9359 | fi | |
9360 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
9361 | cat >> confdefs.h <<EOF | |
9362 | #define SIZEOF_INT $ac_cv_sizeof_int | |
9363 | EOF | |
9364 | ||
9365 | ||
9366 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
d6a55c4b | 9367 | echo "configure:9368: checking size of long" >&5 |
10f2d63a VZ |
9368 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
9369 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9370 | else | |
9371 | if test "$cross_compiling" = yes; then | |
9372 | ac_cv_sizeof_long=4 | |
9373 | else | |
9374 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 9375 | #line 9376 "configure" |
10f2d63a VZ |
9376 | #include "confdefs.h" |
9377 | #include <stdio.h> | |
9378 | main() | |
9379 | { | |
9380 | FILE *f=fopen("conftestval", "w"); | |
9381 | if (!f) exit(1); | |
9382 | fprintf(f, "%d\n", sizeof(long)); | |
9383 | exit(0); | |
9384 | } | |
9385 | EOF | |
d6a55c4b | 9386 | if { (eval echo configure:9387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
9387 | then |
9388 | ac_cv_sizeof_long=`cat conftestval` | |
9389 | else | |
9390 | echo "configure: failed program was:" >&5 | |
9391 | cat conftest.$ac_ext >&5 | |
9392 | rm -fr conftest* | |
9393 | ac_cv_sizeof_long=0 | |
9394 | fi | |
9395 | rm -fr conftest* | |
9396 | fi | |
9397 | ||
9398 | fi | |
9399 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
9400 | cat >> confdefs.h <<EOF | |
9401 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
9402 | EOF | |
9403 | ||
9404 | ||
9405 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
d6a55c4b | 9406 | echo "configure:9407: checking size of long long" >&5 |
10f2d63a VZ |
9407 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
9408 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9409 | else | |
9410 | if test "$cross_compiling" = yes; then | |
9411 | ac_cv_sizeof_long_long=0 | |
9412 | else | |
9413 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 9414 | #line 9415 "configure" |
10f2d63a VZ |
9415 | #include "confdefs.h" |
9416 | #include <stdio.h> | |
9417 | main() | |
9418 | { | |
9419 | FILE *f=fopen("conftestval", "w"); | |
9420 | if (!f) exit(1); | |
9421 | fprintf(f, "%d\n", sizeof(long long)); | |
9422 | exit(0); | |
9423 | } | |
9424 | EOF | |
d6a55c4b | 9425 | if { (eval echo configure:9426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
9426 | then |
9427 | ac_cv_sizeof_long_long=`cat conftestval` | |
9428 | else | |
9429 | echo "configure: failed program was:" >&5 | |
9430 | cat conftest.$ac_ext >&5 | |
9431 | rm -fr conftest* | |
9432 | ac_cv_sizeof_long_long=0 | |
9433 | fi | |
9434 | rm -fr conftest* | |
9435 | fi | |
9436 | ||
9437 | fi | |
9438 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
9439 | cat >> confdefs.h <<EOF | |
9440 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
9441 | EOF | |
9442 | ||
9443 | ||
9444 | ||
9445 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 | |
d6a55c4b | 9446 | echo "configure:9447: checking whether byte ordering is bigendian" >&5 |
10f2d63a VZ |
9447 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
9448 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9449 | else | |
9450 | ac_cv_c_bigendian=unknown | |
9451 | # See if sys/param.h defines the BYTE_ORDER macro. | |
9452 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 9453 | #line 9454 "configure" |
10f2d63a VZ |
9454 | #include "confdefs.h" |
9455 | #include <sys/types.h> | |
9456 | #include <sys/param.h> | |
9457 | int main() { | |
9458 | ||
9459 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
9460 | bogus endian macros | |
9461 | #endif | |
9462 | ; return 0; } | |
9463 | EOF | |
d6a55c4b | 9464 | if { (eval echo configure:9465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
9465 | rm -rf conftest* |
9466 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
9467 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 9468 | #line 9469 "configure" |
10f2d63a VZ |
9469 | #include "confdefs.h" |
9470 | #include <sys/types.h> | |
9471 | #include <sys/param.h> | |
9472 | int main() { | |
9473 | ||
9474 | #if BYTE_ORDER != BIG_ENDIAN | |
9475 | not big endian | |
9476 | #endif | |
9477 | ; return 0; } | |
9478 | EOF | |
d6a55c4b | 9479 | if { (eval echo configure:9480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
9480 | rm -rf conftest* |
9481 | ac_cv_c_bigendian=yes | |
9482 | else | |
9483 | echo "configure: failed program was:" >&5 | |
9484 | cat conftest.$ac_ext >&5 | |
9485 | rm -rf conftest* | |
9486 | ac_cv_c_bigendian=no | |
9487 | fi | |
9488 | rm -f conftest* | |
9489 | else | |
9490 | echo "configure: failed program was:" >&5 | |
9491 | cat conftest.$ac_ext >&5 | |
9492 | fi | |
9493 | rm -f conftest* | |
9494 | if test $ac_cv_c_bigendian = unknown; then | |
9495 | if test "$cross_compiling" = yes; then | |
9496 | ac_cv_c_bigendian=unknown | |
9497 | else | |
9498 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 9499 | #line 9500 "configure" |
10f2d63a VZ |
9500 | #include "confdefs.h" |
9501 | main () { | |
9502 | /* Are we little or big endian? From Harbison&Steele. */ | |
9503 | union | |
9504 | { | |
9505 | long l; | |
9506 | char c[sizeof (long)]; | |
9507 | } u; | |
9508 | u.l = 1; | |
9509 | exit (u.c[sizeof (long) - 1] == 1); | |
9510 | } | |
9511 | EOF | |
d6a55c4b | 9512 | if { (eval echo configure:9513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
9513 | then |
9514 | ac_cv_c_bigendian=no | |
9515 | else | |
9516 | echo "configure: failed program was:" >&5 | |
9517 | cat conftest.$ac_ext >&5 | |
9518 | rm -fr conftest* | |
9519 | ac_cv_c_bigendian=yes | |
9520 | fi | |
9521 | rm -fr conftest* | |
9522 | fi | |
9523 | ||
9524 | fi | |
9525 | fi | |
9526 | ||
9527 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
9528 | if test $ac_cv_c_bigendian = unknown; then | |
9529 | 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 | |
9530 | fi | |
9531 | if test $ac_cv_c_bigendian = yes; then | |
9532 | cat >> confdefs.h <<\EOF | |
9533 | #define WORDS_BIGENDIAN 1 | |
9534 | EOF | |
9535 | ||
9536 | fi | |
9537 | ||
9538 | ||
9539 | ||
9540 | if test "$cross_compiling" = "yes"; then | |
9541 | cat >> confdefs.h <<\EOF | |
9542 | #define wxUSE_IOSTREAMH 1 | |
9543 | EOF | |
9544 | ||
9545 | else | |
9546 | ||
9547 | ac_ext=C | |
9548 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9549 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9550 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9551 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9552 | cross_compiling=$ac_cv_prog_cxx_cross | |
9553 | ||
9554 | ||
9555 | for ac_hdr in iostream | |
9556 | do | |
9557 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9558 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d6a55c4b | 9559 | echo "configure:9560: checking for $ac_hdr" >&5 |
10f2d63a VZ |
9560 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9561 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9562 | else | |
9563 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 9564 | #line 9565 "configure" |
10f2d63a VZ |
9565 | #include "confdefs.h" |
9566 | #include <$ac_hdr> | |
9567 | EOF | |
9568 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d6a55c4b | 9569 | { (eval echo configure:9570: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
9570 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9571 | if test -z "$ac_err"; then | |
9572 | rm -rf conftest* | |
9573 | eval "ac_cv_header_$ac_safe=yes" | |
9574 | else | |
9575 | echo "$ac_err" >&5 | |
9576 | echo "configure: failed program was:" >&5 | |
9577 | cat conftest.$ac_ext >&5 | |
9578 | rm -rf conftest* | |
9579 | eval "ac_cv_header_$ac_safe=no" | |
9580 | fi | |
9581 | rm -f conftest* | |
9582 | fi | |
9583 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9584 | echo "$ac_t""yes" 1>&6 | |
9585 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9586 | cat >> confdefs.h <<EOF | |
9587 | #define $ac_tr_hdr 1 | |
9588 | EOF | |
9589 | ||
9590 | else | |
9591 | echo "$ac_t""no" 1>&6 | |
9592 | fi | |
9593 | done | |
9594 | ||
9595 | ||
9596 | if test "x$HAVE_IOSTREAM" = x ; then | |
9597 | cat >> confdefs.h <<\EOF | |
9598 | #define wxUSE_IOSTREAMH 1 | |
9599 | EOF | |
9600 | ||
9601 | else | |
9602 | : | |
9603 | fi | |
9604 | ||
9605 | ac_ext=c | |
9606 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9607 | ac_cpp='$CPP $CPPFLAGS' | |
9608 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9609 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9610 | cross_compiling=$ac_cv_prog_cc_cross | |
9611 | ||
9612 | fi | |
9613 | ||
9614 | ||
9615 | ||
9616 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 | |
d6a55c4b | 9617 | echo "configure:9618: checking if C++ compiler supports bool" >&5 |
10f2d63a VZ |
9618 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
9619 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9620 | else | |
9621 | ||
9622 | ||
9623 | ac_ext=C | |
9624 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9625 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9626 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9627 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9628 | cross_compiling=$ac_cv_prog_cxx_cross | |
9629 | ||
9630 | ||
9631 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 9632 | #line 9633 "configure" |
10f2d63a VZ |
9633 | #include "confdefs.h" |
9634 | ||
9635 | ||
9636 | int main() { | |
9637 | ||
9638 | bool b = true; | |
9639 | ||
9640 | return 0; | |
9641 | ||
9642 | ; return 0; } | |
9643 | EOF | |
d6a55c4b | 9644 | if { (eval echo configure:9645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
9645 | rm -rf conftest* |
9646 | ||
9647 | cat >> confdefs.h <<\EOF | |
9648 | #define HAVE_BOOL 1 | |
9649 | EOF | |
9650 | ||
9651 | wx_cv_cpp_bool=yes | |
9652 | ||
9653 | else | |
9654 | echo "configure: failed program was:" >&5 | |
9655 | cat conftest.$ac_ext >&5 | |
9656 | rm -rf conftest* | |
9657 | ||
9658 | wx_cv_cpp_bool=no | |
9659 | ||
9660 | ||
9661 | fi | |
9662 | rm -f conftest* | |
9663 | ||
9664 | ac_ext=c | |
9665 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9666 | ac_cpp='$CPP $CPPFLAGS' | |
9667 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9668 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9669 | cross_compiling=$ac_cv_prog_cc_cross | |
9670 | ||
9671 | ||
9672 | fi | |
9673 | ||
9674 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
9675 | ||
9676 | if test "$wx_cv_cpp_bool" = "yes"; then | |
9677 | cat >> confdefs.h <<\EOF | |
9678 | #define HAVE_BOOL 1 | |
9679 | EOF | |
9680 | ||
9681 | fi | |
9682 | ||
9683 | ||
9684 | ||
10f2d63a | 9685 | echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6 |
d6a55c4b | 9686 | echo "configure:9687: checking if you need GNU extensions" >&5 |
10f2d63a VZ |
9687 | if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then |
9688 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9689 | else | |
9690 | ||
9691 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 9692 | #line 9693 "configure" |
10f2d63a VZ |
9693 | #include "confdefs.h" |
9694 | #include <features.h> | |
9695 | int main() { | |
9696 | ||
9697 | ||
9698 | #ifndef __GNU_LIBRARY__ | |
9699 | Compile error wanted | |
9700 | #endif | |
9701 | ||
9702 | ||
9703 | ; return 0; } | |
9704 | EOF | |
d6a55c4b | 9705 | if { (eval echo configure:9706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
9706 | rm -rf conftest* |
9707 | wx_cv_gnu_extensions=yes | |
9708 | else | |
9709 | echo "configure: failed program was:" >&5 | |
9710 | cat conftest.$ac_ext >&5 | |
9711 | rm -rf conftest* | |
9712 | wx_cv_gnu_extensions=no | |
9713 | fi | |
9714 | rm -f conftest* | |
9715 | ||
9716 | fi | |
9717 | ||
9718 | ||
9719 | echo "$ac_t""$wx_cv_gnu_extensions" 1>&6 | |
9720 | if test "$wx_cv_gnu_extensions" = "yes"; then | |
9721 | cat >> confdefs.h <<EOF | |
9722 | #define _GNU_SOURCE 1 | |
9723 | EOF | |
9724 | ||
9725 | fi | |
9726 | ||
9727 | ||
9728 | ||
9729 | echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6 | |
d6a55c4b | 9730 | echo "configure:9731: checking for wcslen in -lc" >&5 |
10f2d63a VZ |
9731 | ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'` |
9732 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9733 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9734 | else | |
9735 | ac_save_LIBS="$LIBS" | |
9736 | LIBS="-lc $LIBS" | |
9737 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 9738 | #line 9739 "configure" |
10f2d63a VZ |
9739 | #include "confdefs.h" |
9740 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9741 | /* We use char because int might match the return type of a gcc2 | |
9742 | builtin and then its argument prototype would still apply. */ | |
9743 | char wcslen(); | |
9744 | ||
9745 | int main() { | |
9746 | wcslen() | |
9747 | ; return 0; } | |
9748 | EOF | |
d6a55c4b | 9749 | if { (eval echo configure:9750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
9750 | rm -rf conftest* |
9751 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9752 | else | |
9753 | echo "configure: failed program was:" >&5 | |
9754 | cat conftest.$ac_ext >&5 | |
9755 | rm -rf conftest* | |
9756 | eval "ac_cv_lib_$ac_lib_var=no" | |
9757 | fi | |
9758 | rm -f conftest* | |
9759 | LIBS="$ac_save_LIBS" | |
9760 | ||
9761 | fi | |
9762 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9763 | echo "$ac_t""yes" 1>&6 | |
9764 | ||
9765 | cat >> confdefs.h <<\EOF | |
9766 | #define HAVE_WCSLEN 1 | |
9767 | EOF | |
9768 | ||
9769 | WCHAR_LINK="" | |
9770 | ||
9771 | else | |
9772 | echo "$ac_t""no" 1>&6 | |
9773 | ||
9774 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 | |
d6a55c4b | 9775 | echo "configure:9776: checking for wcslen in -lw" >&5 |
10f2d63a VZ |
9776 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
9777 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9778 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9779 | else | |
9780 | ac_save_LIBS="$LIBS" | |
9781 | LIBS="-lw $LIBS" | |
9782 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 9783 | #line 9784 "configure" |
10f2d63a VZ |
9784 | #include "confdefs.h" |
9785 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9786 | /* We use char because int might match the return type of a gcc2 | |
9787 | builtin and then its argument prototype would still apply. */ | |
9788 | char wcslen(); | |
9789 | ||
9790 | int main() { | |
9791 | wcslen() | |
9792 | ; return 0; } | |
9793 | EOF | |
d6a55c4b | 9794 | if { (eval echo configure:9795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
9795 | rm -rf conftest* |
9796 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9797 | else | |
9798 | echo "configure: failed program was:" >&5 | |
9799 | cat conftest.$ac_ext >&5 | |
9800 | rm -rf conftest* | |
9801 | eval "ac_cv_lib_$ac_lib_var=no" | |
9802 | fi | |
9803 | rm -f conftest* | |
9804 | LIBS="$ac_save_LIBS" | |
9805 | ||
9806 | fi | |
9807 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9808 | echo "$ac_t""yes" 1>&6 | |
9809 | ||
9810 | cat >> confdefs.h <<\EOF | |
9811 | #define HAVE_WCSLEN 1 | |
9812 | EOF | |
9813 | ||
9814 | WCHAR_LINK="-lw" | |
9815 | ||
9816 | else | |
9817 | echo "$ac_t""no" 1>&6 | |
9818 | fi | |
9819 | ||
9820 | ||
9821 | fi | |
9822 | ||
9823 | ||
9824 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 | |
d6a55c4b | 9825 | echo "configure:9826: checking for vprintf" >&5 |
10f2d63a VZ |
9826 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
9827 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9828 | else | |
9829 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 9830 | #line 9831 "configure" |
10f2d63a VZ |
9831 | #include "confdefs.h" |
9832 | /* System header to define __stub macros and hopefully few prototypes, | |
9833 | which can conflict with char vprintf(); below. */ | |
9834 | #include <assert.h> | |
9835 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9836 | /* We use char because int might match the return type of a gcc2 | |
9837 | builtin and then its argument prototype would still apply. */ | |
9838 | char vprintf(); | |
9839 | ||
9840 | int main() { | |
9841 | ||
9842 | /* The GNU C library defines this for functions which it implements | |
9843 | to always fail with ENOSYS. Some functions are actually named | |
9844 | something starting with __ and the normal name is an alias. */ | |
9845 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
9846 | choke me | |
9847 | #else | |
d6a55c4b | 9848 | vprintf(); |
10f2d63a VZ |
9849 | #endif |
9850 | ||
9851 | ; return 0; } | |
9852 | EOF | |
d6a55c4b | 9853 | if { (eval echo configure:9854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
9854 | rm -rf conftest* |
9855 | eval "ac_cv_func_vprintf=yes" | |
9856 | else | |
9857 | echo "configure: failed program was:" >&5 | |
9858 | cat conftest.$ac_ext >&5 | |
9859 | rm -rf conftest* | |
9860 | eval "ac_cv_func_vprintf=no" | |
9861 | fi | |
9862 | rm -f conftest* | |
9863 | fi | |
9864 | ||
9865 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
9866 | echo "$ac_t""yes" 1>&6 | |
9867 | cat >> confdefs.h <<\EOF | |
9868 | #define HAVE_VPRINTF 1 | |
9869 | EOF | |
9870 | ||
9871 | else | |
9872 | echo "$ac_t""no" 1>&6 | |
9873 | fi | |
9874 | ||
9875 | if test "$ac_cv_func_vprintf" != yes; then | |
9876 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
d6a55c4b | 9877 | echo "configure:9878: checking for _doprnt" >&5 |
10f2d63a VZ |
9878 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
9879 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9880 | else | |
9881 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 9882 | #line 9883 "configure" |
10f2d63a VZ |
9883 | #include "confdefs.h" |
9884 | /* System header to define __stub macros and hopefully few prototypes, | |
9885 | which can conflict with char _doprnt(); below. */ | |
9886 | #include <assert.h> | |
9887 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9888 | /* We use char because int might match the return type of a gcc2 | |
9889 | builtin and then its argument prototype would still apply. */ | |
9890 | char _doprnt(); | |
9891 | ||
9892 | int main() { | |
9893 | ||
9894 | /* The GNU C library defines this for functions which it implements | |
9895 | to always fail with ENOSYS. Some functions are actually named | |
9896 | something starting with __ and the normal name is an alias. */ | |
9897 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
9898 | choke me | |
9899 | #else | |
d6a55c4b | 9900 | _doprnt(); |
10f2d63a VZ |
9901 | #endif |
9902 | ||
9903 | ; return 0; } | |
9904 | EOF | |
d6a55c4b | 9905 | if { (eval echo configure:9906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
9906 | rm -rf conftest* |
9907 | eval "ac_cv_func__doprnt=yes" | |
9908 | else | |
9909 | echo "configure: failed program was:" >&5 | |
9910 | cat conftest.$ac_ext >&5 | |
9911 | rm -rf conftest* | |
9912 | eval "ac_cv_func__doprnt=no" | |
9913 | fi | |
9914 | rm -f conftest* | |
9915 | fi | |
9916 | ||
9917 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
9918 | echo "$ac_t""yes" 1>&6 | |
9919 | cat >> confdefs.h <<\EOF | |
9920 | #define HAVE_DOPRNT 1 | |
9921 | EOF | |
9922 | ||
9923 | else | |
9924 | echo "$ac_t""no" 1>&6 | |
9925 | fi | |
9926 | ||
9927 | fi | |
9928 | ||
9929 | ||
9930 | for ac_func in vsnprintf | |
9931 | do | |
9932 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d6a55c4b | 9933 | echo "configure:9934: checking for $ac_func" >&5 |
10f2d63a VZ |
9934 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9935 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9936 | else | |
9937 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 9938 | #line 9939 "configure" |
10f2d63a VZ |
9939 | #include "confdefs.h" |
9940 | /* System header to define __stub macros and hopefully few prototypes, | |
9941 | which can conflict with char $ac_func(); below. */ | |
9942 | #include <assert.h> | |
9943 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9944 | /* We use char because int might match the return type of a gcc2 | |
9945 | builtin and then its argument prototype would still apply. */ | |
9946 | char $ac_func(); | |
9947 | ||
9948 | int main() { | |
9949 | ||
9950 | /* The GNU C library defines this for functions which it implements | |
9951 | to always fail with ENOSYS. Some functions are actually named | |
9952 | something starting with __ and the normal name is an alias. */ | |
9953 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9954 | choke me | |
9955 | #else | |
d6a55c4b | 9956 | $ac_func(); |
10f2d63a VZ |
9957 | #endif |
9958 | ||
9959 | ; return 0; } | |
9960 | EOF | |
d6a55c4b | 9961 | if { (eval echo configure:9962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
9962 | rm -rf conftest* |
9963 | eval "ac_cv_func_$ac_func=yes" | |
9964 | else | |
9965 | echo "configure: failed program was:" >&5 | |
9966 | cat conftest.$ac_ext >&5 | |
9967 | rm -rf conftest* | |
9968 | eval "ac_cv_func_$ac_func=no" | |
9969 | fi | |
9970 | rm -f conftest* | |
9971 | fi | |
9972 | ||
9973 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9974 | echo "$ac_t""yes" 1>&6 | |
9975 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9976 | cat >> confdefs.h <<EOF | |
9977 | #define $ac_tr_func 1 | |
9978 | EOF | |
9979 | cat >> confdefs.h <<\EOF | |
9980 | #define HAVE_VSNPRINTF 1 | |
9981 | EOF | |
9982 | ||
9983 | else | |
9984 | echo "$ac_t""no" 1>&6 | |
9985 | echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2 | |
9986 | ||
9987 | fi | |
9988 | done | |
9989 | ||
9990 | ||
9991 | ||
9992 | ac_ext=C | |
9993 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9994 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9995 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9996 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9997 | cross_compiling=$ac_cv_prog_cxx_cross | |
9998 | ||
9999 | ||
10000 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 | |
d6a55c4b | 10001 | echo "configure:10002: checking for vsscanf" >&5 |
10f2d63a VZ |
10002 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
10003 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10004 | else | |
10005 | ||
10006 | if test "$cross_compiling" = yes; then | |
10007 | wx_cv_func_vsscanf=no | |
10008 | ||
10009 | else | |
10010 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 10011 | #line 10012 "configure" |
10f2d63a VZ |
10012 | #include "confdefs.h" |
10013 | #ifdef __cplusplus | |
10014 | extern "C" void exit(int); | |
10015 | #endif | |
10016 | ||
10017 | #include <stdio.h> | |
10018 | #include <stdarg.h> | |
10019 | ||
10020 | int try_vsscanf(const char *format, ...) | |
10021 | { | |
10022 | va_list ap; | |
10023 | va_start(ap, format); | |
10024 | ||
10025 | vsscanf("17", format, ap); | |
10026 | ||
10027 | va_end(ap); | |
10028 | } | |
10029 | ||
10030 | int main() | |
10031 | { | |
10032 | int i; | |
10033 | try_vsscanf("%d", &i); | |
10034 | return i == 17 ? 0 : 1; | |
10035 | } | |
10036 | ||
10037 | EOF | |
d6a55c4b | 10038 | if { (eval echo configure:10039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
10039 | then |
10040 | ||
10041 | cat >> confdefs.h <<\EOF | |
10042 | #define HAVE_VSSCANF 1 | |
10043 | EOF | |
10044 | ||
10045 | wx_cv_func_vsscanf=yes | |
10046 | ||
10047 | else | |
10048 | echo "configure: failed program was:" >&5 | |
10049 | cat conftest.$ac_ext >&5 | |
10050 | rm -fr conftest* | |
10051 | wx_cv_func_vsscanf=no | |
10052 | fi | |
10053 | rm -fr conftest* | |
10054 | fi | |
10055 | ||
10056 | ||
10057 | fi | |
10058 | ||
10059 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 | |
10060 | ||
10061 | ac_ext=c | |
10062 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10063 | ac_cpp='$CPP $CPPFLAGS' | |
10064 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10065 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10066 | cross_compiling=$ac_cv_prog_cc_cross | |
10067 | ||
10068 | ||
b089607b | 10069 | if test "$TOOLKIT" != "MSW"; then |
10f2d63a VZ |
10070 | |
10071 | for ac_func in vfork | |
10072 | do | |
10073 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d6a55c4b | 10074 | echo "configure:10075: checking for $ac_func" >&5 |
10f2d63a VZ |
10075 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10076 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10077 | else | |
10078 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 10079 | #line 10080 "configure" |
10f2d63a VZ |
10080 | #include "confdefs.h" |
10081 | /* System header to define __stub macros and hopefully few prototypes, | |
10082 | which can conflict with char $ac_func(); below. */ | |
10083 | #include <assert.h> | |
10084 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10085 | /* We use char because int might match the return type of a gcc2 | |
10086 | builtin and then its argument prototype would still apply. */ | |
10087 | char $ac_func(); | |
10088 | ||
10089 | int main() { | |
10090 | ||
10091 | /* The GNU C library defines this for functions which it implements | |
10092 | to always fail with ENOSYS. Some functions are actually named | |
10093 | something starting with __ and the normal name is an alias. */ | |
10094 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10095 | choke me | |
10096 | #else | |
d6a55c4b | 10097 | $ac_func(); |
10f2d63a VZ |
10098 | #endif |
10099 | ||
10100 | ; return 0; } | |
10101 | EOF | |
d6a55c4b | 10102 | if { (eval echo configure:10103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
270a909e VZ |
10103 | rm -rf conftest* |
10104 | eval "ac_cv_func_$ac_func=yes" | |
10105 | else | |
10106 | echo "configure: failed program was:" >&5 | |
10107 | cat conftest.$ac_ext >&5 | |
10108 | rm -rf conftest* | |
10109 | eval "ac_cv_func_$ac_func=no" | |
10110 | fi | |
10111 | rm -f conftest* | |
10112 | fi | |
10113 | ||
10114 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10115 | echo "$ac_t""yes" 1>&6 | |
10116 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10117 | cat >> confdefs.h <<EOF | |
10118 | #define $ac_tr_func 1 | |
10119 | EOF | |
10120 | ||
10121 | else | |
10122 | echo "$ac_t""no" 1>&6 | |
10123 | fi | |
10124 | done | |
10125 | ||
10126 | ||
10127 | for ac_func in timegm | |
10128 | do | |
10129 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d6a55c4b | 10130 | echo "configure:10131: checking for $ac_func" >&5 |
270a909e VZ |
10131 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10132 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10133 | else | |
10134 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 10135 | #line 10136 "configure" |
270a909e VZ |
10136 | #include "confdefs.h" |
10137 | /* System header to define __stub macros and hopefully few prototypes, | |
10138 | which can conflict with char $ac_func(); below. */ | |
10139 | #include <assert.h> | |
10140 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10141 | /* We use char because int might match the return type of a gcc2 | |
10142 | builtin and then its argument prototype would still apply. */ | |
10143 | char $ac_func(); | |
10144 | ||
10145 | int main() { | |
10146 | ||
10147 | /* The GNU C library defines this for functions which it implements | |
10148 | to always fail with ENOSYS. Some functions are actually named | |
10149 | something starting with __ and the normal name is an alias. */ | |
10150 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10151 | choke me | |
10152 | #else | |
d6a55c4b | 10153 | $ac_func(); |
270a909e VZ |
10154 | #endif |
10155 | ||
10156 | ; return 0; } | |
10157 | EOF | |
d6a55c4b | 10158 | if { (eval echo configure:10159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10159 | rm -rf conftest* |
10160 | eval "ac_cv_func_$ac_func=yes" | |
10161 | else | |
10162 | echo "configure: failed program was:" >&5 | |
10163 | cat conftest.$ac_ext >&5 | |
10164 | rm -rf conftest* | |
10165 | eval "ac_cv_func_$ac_func=no" | |
10166 | fi | |
10167 | rm -f conftest* | |
10168 | fi | |
10169 | ||
10170 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10171 | echo "$ac_t""yes" 1>&6 | |
10172 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10173 | cat >> confdefs.h <<EOF | |
10174 | #define $ac_tr_func 1 | |
10175 | EOF | |
10176 | ||
10177 | else | |
10178 | echo "$ac_t""no" 1>&6 | |
10179 | fi | |
10180 | done | |
10181 | ||
10182 | ||
b12915c1 VZ |
10183 | HAVE_SOME_SLEEP_FUNC=0 |
10184 | if test "$USE_BEOS" = 1; then | |
10185 | cat >> confdefs.h <<\EOF | |
10186 | #define HAVE_SLEEP 1 | |
10187 | EOF | |
10188 | ||
10189 | HAVE_SOME_SLEEP_FUNC=1 | |
10190 | fi | |
10191 | ||
10192 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
10193 | POSIX4_LINK= | |
10194 | for ac_func in nanosleep | |
10f2d63a VZ |
10195 | do |
10196 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d6a55c4b | 10197 | echo "configure:10198: checking for $ac_func" >&5 |
10f2d63a VZ |
10198 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10199 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10200 | else | |
10201 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 10202 | #line 10203 "configure" |
10f2d63a VZ |
10203 | #include "confdefs.h" |
10204 | /* System header to define __stub macros and hopefully few prototypes, | |
10205 | which can conflict with char $ac_func(); below. */ | |
10206 | #include <assert.h> | |
10207 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10208 | /* We use char because int might match the return type of a gcc2 | |
10209 | builtin and then its argument prototype would still apply. */ | |
10210 | char $ac_func(); | |
10211 | ||
10212 | int main() { | |
10213 | ||
10214 | /* The GNU C library defines this for functions which it implements | |
10215 | to always fail with ENOSYS. Some functions are actually named | |
10216 | something starting with __ and the normal name is an alias. */ | |
10217 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10218 | choke me | |
10219 | #else | |
d6a55c4b | 10220 | $ac_func(); |
10f2d63a VZ |
10221 | #endif |
10222 | ||
10223 | ; return 0; } | |
10224 | EOF | |
d6a55c4b | 10225 | if { (eval echo configure:10226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10226 | rm -rf conftest* |
10227 | eval "ac_cv_func_$ac_func=yes" | |
10228 | else | |
10229 | echo "configure: failed program was:" >&5 | |
10230 | cat conftest.$ac_ext >&5 | |
10231 | rm -rf conftest* | |
10232 | eval "ac_cv_func_$ac_func=no" | |
10233 | fi | |
10234 | rm -f conftest* | |
10235 | fi | |
10236 | ||
10237 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10238 | echo "$ac_t""yes" 1>&6 | |
10239 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10240 | cat >> confdefs.h <<EOF | |
10241 | #define $ac_tr_func 1 | |
10242 | EOF | |
10243 | cat >> confdefs.h <<\EOF | |
10244 | #define HAVE_NANOSLEEP 1 | |
10245 | EOF | |
10246 | ||
10247 | else | |
10248 | echo "$ac_t""no" 1>&6 | |
10249 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
d6a55c4b | 10250 | echo "configure:10251: checking for nanosleep in -lposix4" >&5 |
10f2d63a VZ |
10251 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
10252 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10253 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10254 | else | |
10255 | ac_save_LIBS="$LIBS" | |
10256 | LIBS="-lposix4 $LIBS" | |
10257 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 10258 | #line 10259 "configure" |
10f2d63a VZ |
10259 | #include "confdefs.h" |
10260 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10261 | /* We use char because int might match the return type of a gcc2 | |
10262 | builtin and then its argument prototype would still apply. */ | |
10263 | char nanosleep(); | |
10264 | ||
10265 | int main() { | |
10266 | nanosleep() | |
10267 | ; return 0; } | |
10268 | EOF | |
d6a55c4b | 10269 | if { (eval echo configure:10270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10270 | rm -rf conftest* |
10271 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10272 | else | |
10273 | echo "configure: failed program was:" >&5 | |
10274 | cat conftest.$ac_ext >&5 | |
10275 | rm -rf conftest* | |
10276 | eval "ac_cv_lib_$ac_lib_var=no" | |
10277 | fi | |
10278 | rm -f conftest* | |
10279 | LIBS="$ac_save_LIBS" | |
10280 | ||
10281 | fi | |
10282 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10283 | echo "$ac_t""yes" 1>&6 | |
10284 | ||
b12915c1 | 10285 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
10286 | #define HAVE_NANOSLEEP 1 |
10287 | EOF | |
10288 | ||
b12915c1 VZ |
10289 | POSIX4_LINK="-lposix4" |
10290 | ||
10f2d63a VZ |
10291 | else |
10292 | echo "$ac_t""no" 1>&6 | |
10293 | ||
b12915c1 | 10294 | for ac_func in usleep |
10f2d63a VZ |
10295 | do |
10296 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d6a55c4b | 10297 | echo "configure:10298: checking for $ac_func" >&5 |
10f2d63a VZ |
10298 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10299 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10300 | else | |
10301 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 10302 | #line 10303 "configure" |
10f2d63a VZ |
10303 | #include "confdefs.h" |
10304 | /* System header to define __stub macros and hopefully few prototypes, | |
10305 | which can conflict with char $ac_func(); below. */ | |
10306 | #include <assert.h> | |
10307 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10308 | /* We use char because int might match the return type of a gcc2 | |
10309 | builtin and then its argument prototype would still apply. */ | |
10310 | char $ac_func(); | |
10311 | ||
10312 | int main() { | |
10313 | ||
10314 | /* The GNU C library defines this for functions which it implements | |
10315 | to always fail with ENOSYS. Some functions are actually named | |
10316 | something starting with __ and the normal name is an alias. */ | |
10317 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10318 | choke me | |
10319 | #else | |
d6a55c4b | 10320 | $ac_func(); |
10f2d63a VZ |
10321 | #endif |
10322 | ||
10323 | ; return 0; } | |
10324 | EOF | |
d6a55c4b | 10325 | if { (eval echo configure:10326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10326 | rm -rf conftest* |
10327 | eval "ac_cv_func_$ac_func=yes" | |
10328 | else | |
10329 | echo "configure: failed program was:" >&5 | |
10330 | cat conftest.$ac_ext >&5 | |
10331 | rm -rf conftest* | |
10332 | eval "ac_cv_func_$ac_func=no" | |
10333 | fi | |
10334 | rm -f conftest* | |
10335 | fi | |
10336 | ||
10337 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10338 | echo "$ac_t""yes" 1>&6 | |
10339 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10340 | cat >> confdefs.h <<EOF | |
10341 | #define $ac_tr_func 1 | |
10342 | EOF | |
b12915c1 | 10343 | |
10f2d63a VZ |
10344 | else |
10345 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
10346 | fi |
10347 | done | |
10348 | ||
b12915c1 VZ |
10349 | echo "configure: warning: wxSleep() function will not work" 1>&2 |
10350 | ||
10351 | ||
10f2d63a VZ |
10352 | fi |
10353 | ||
b12915c1 VZ |
10354 | |
10355 | ||
10f2d63a VZ |
10356 | fi |
10357 | done | |
10358 | ||
b12915c1 | 10359 | fi |
10f2d63a VZ |
10360 | |
10361 | for ac_func in uname gethostname | |
10362 | do | |
10363 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d6a55c4b | 10364 | echo "configure:10365: checking for $ac_func" >&5 |
10f2d63a VZ |
10365 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10366 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10367 | else | |
10368 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 10369 | #line 10370 "configure" |
10f2d63a VZ |
10370 | #include "confdefs.h" |
10371 | /* System header to define __stub macros and hopefully few prototypes, | |
10372 | which can conflict with char $ac_func(); below. */ | |
10373 | #include <assert.h> | |
10374 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10375 | /* We use char because int might match the return type of a gcc2 | |
10376 | builtin and then its argument prototype would still apply. */ | |
10377 | char $ac_func(); | |
10378 | ||
10379 | int main() { | |
10380 | ||
10381 | /* The GNU C library defines this for functions which it implements | |
10382 | to always fail with ENOSYS. Some functions are actually named | |
10383 | something starting with __ and the normal name is an alias. */ | |
10384 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10385 | choke me | |
10386 | #else | |
d6a55c4b | 10387 | $ac_func(); |
10f2d63a VZ |
10388 | #endif |
10389 | ||
10390 | ; return 0; } | |
10391 | EOF | |
d6a55c4b | 10392 | if { (eval echo configure:10393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10393 | rm -rf conftest* |
10394 | eval "ac_cv_func_$ac_func=yes" | |
10395 | else | |
10396 | echo "configure: failed program was:" >&5 | |
10397 | cat conftest.$ac_ext >&5 | |
10398 | rm -rf conftest* | |
10399 | eval "ac_cv_func_$ac_func=no" | |
10400 | fi | |
10401 | rm -f conftest* | |
10402 | fi | |
10403 | ||
10404 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10405 | echo "$ac_t""yes" 1>&6 | |
10406 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10407 | cat >> confdefs.h <<EOF | |
10408 | #define $ac_tr_func 1 | |
10409 | EOF | |
10410 | break | |
10411 | else | |
10412 | echo "$ac_t""no" 1>&6 | |
10413 | fi | |
10414 | done | |
10415 | ||
10416 | ||
10417 | for ac_func in strtok_r | |
10418 | do | |
10419 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d6a55c4b | 10420 | echo "configure:10421: checking for $ac_func" >&5 |
10f2d63a VZ |
10421 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10422 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10423 | else | |
10424 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 10425 | #line 10426 "configure" |
10f2d63a VZ |
10426 | #include "confdefs.h" |
10427 | /* System header to define __stub macros and hopefully few prototypes, | |
10428 | which can conflict with char $ac_func(); below. */ | |
10429 | #include <assert.h> | |
10430 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10431 | /* We use char because int might match the return type of a gcc2 | |
10432 | builtin and then its argument prototype would still apply. */ | |
10433 | char $ac_func(); | |
10434 | ||
10435 | int main() { | |
10436 | ||
10437 | /* The GNU C library defines this for functions which it implements | |
10438 | to always fail with ENOSYS. Some functions are actually named | |
10439 | something starting with __ and the normal name is an alias. */ | |
10440 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10441 | choke me | |
10442 | #else | |
d6a55c4b | 10443 | $ac_func(); |
10f2d63a VZ |
10444 | #endif |
10445 | ||
10446 | ; return 0; } | |
10447 | EOF | |
d6a55c4b | 10448 | if { (eval echo configure:10449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10449 | rm -rf conftest* |
10450 | eval "ac_cv_func_$ac_func=yes" | |
10451 | else | |
10452 | echo "configure: failed program was:" >&5 | |
10453 | cat conftest.$ac_ext >&5 | |
10454 | rm -rf conftest* | |
10455 | eval "ac_cv_func_$ac_func=no" | |
10456 | fi | |
10457 | rm -f conftest* | |
10458 | fi | |
10459 | ||
10460 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10461 | echo "$ac_t""yes" 1>&6 | |
10462 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10463 | cat >> confdefs.h <<EOF | |
10464 | #define $ac_tr_func 1 | |
10465 | EOF | |
10466 | ||
10467 | else | |
10468 | echo "$ac_t""no" 1>&6 | |
10469 | fi | |
10470 | done | |
10471 | ||
10472 | ||
c63c7106 | 10473 | INET_LINK= |
10f2d63a VZ |
10474 | for ac_func in inet_addr |
10475 | do | |
10476 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d6a55c4b | 10477 | echo "configure:10478: checking for $ac_func" >&5 |
10f2d63a VZ |
10478 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10479 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10480 | else | |
10481 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 10482 | #line 10483 "configure" |
10f2d63a VZ |
10483 | #include "confdefs.h" |
10484 | /* System header to define __stub macros and hopefully few prototypes, | |
10485 | which can conflict with char $ac_func(); below. */ | |
10486 | #include <assert.h> | |
10487 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10488 | /* We use char because int might match the return type of a gcc2 | |
10489 | builtin and then its argument prototype would still apply. */ | |
10490 | char $ac_func(); | |
10491 | ||
10492 | int main() { | |
10493 | ||
10494 | /* The GNU C library defines this for functions which it implements | |
10495 | to always fail with ENOSYS. Some functions are actually named | |
10496 | something starting with __ and the normal name is an alias. */ | |
10497 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10498 | choke me | |
10499 | #else | |
d6a55c4b | 10500 | $ac_func(); |
10f2d63a VZ |
10501 | #endif |
10502 | ||
10503 | ; return 0; } | |
10504 | EOF | |
d6a55c4b | 10505 | if { (eval echo configure:10506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10506 | rm -rf conftest* |
10507 | eval "ac_cv_func_$ac_func=yes" | |
10508 | else | |
10509 | echo "configure: failed program was:" >&5 | |
10510 | cat conftest.$ac_ext >&5 | |
10511 | rm -rf conftest* | |
10512 | eval "ac_cv_func_$ac_func=no" | |
10513 | fi | |
10514 | rm -f conftest* | |
10515 | fi | |
10516 | ||
10517 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10518 | echo "$ac_t""yes" 1>&6 | |
10519 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10520 | cat >> confdefs.h <<EOF | |
10521 | #define $ac_tr_func 1 | |
10522 | EOF | |
c63c7106 VZ |
10523 | cat >> confdefs.h <<\EOF |
10524 | #define HAVE_INET_ADDR 1 | |
10525 | EOF | |
10526 | ||
10f2d63a VZ |
10527 | else |
10528 | echo "$ac_t""no" 1>&6 | |
c63c7106 | 10529 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 |
d6a55c4b | 10530 | echo "configure:10531: checking for inet_addr in -lnsl" >&5 |
c63c7106 VZ |
10531 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
10532 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10533 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10534 | else | |
10535 | ac_save_LIBS="$LIBS" | |
10536 | LIBS="-lnsl $LIBS" | |
10537 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 10538 | #line 10539 "configure" |
c63c7106 VZ |
10539 | #include "confdefs.h" |
10540 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10541 | /* We use char because int might match the return type of a gcc2 | |
10542 | builtin and then its argument prototype would still apply. */ | |
10543 | char inet_addr(); | |
10544 | ||
10545 | int main() { | |
10546 | inet_addr() | |
10547 | ; return 0; } | |
10548 | EOF | |
d6a55c4b | 10549 | if { (eval echo configure:10550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c63c7106 VZ |
10550 | rm -rf conftest* |
10551 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10552 | else | |
10553 | echo "configure: failed program was:" >&5 | |
10554 | cat conftest.$ac_ext >&5 | |
10555 | rm -rf conftest* | |
10556 | eval "ac_cv_lib_$ac_lib_var=no" | |
10557 | fi | |
10558 | rm -f conftest* | |
10559 | LIBS="$ac_save_LIBS" | |
10560 | ||
10561 | fi | |
10562 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10563 | echo "$ac_t""yes" 1>&6 | |
10564 | INET_LINK="nsl" | |
10565 | else | |
10566 | echo "$ac_t""no" 1>&6 | |
10567 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 | |
d6a55c4b | 10568 | echo "configure:10569: checking for inet_addr in -lresolv" >&5 |
c63c7106 VZ |
10569 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
10570 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10571 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10572 | else | |
10573 | ac_save_LIBS="$LIBS" | |
10574 | LIBS="-lresolv $LIBS" | |
10575 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 10576 | #line 10577 "configure" |
c63c7106 VZ |
10577 | #include "confdefs.h" |
10578 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10579 | /* We use char because int might match the return type of a gcc2 | |
10580 | builtin and then its argument prototype would still apply. */ | |
10581 | char inet_addr(); | |
10582 | ||
10583 | int main() { | |
10584 | inet_addr() | |
10585 | ; return 0; } | |
10586 | EOF | |
d6a55c4b | 10587 | if { (eval echo configure:10588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c63c7106 VZ |
10588 | rm -rf conftest* |
10589 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10590 | else | |
10591 | echo "configure: failed program was:" >&5 | |
10592 | cat conftest.$ac_ext >&5 | |
10593 | rm -rf conftest* | |
10594 | eval "ac_cv_lib_$ac_lib_var=no" | |
10595 | fi | |
10596 | rm -f conftest* | |
10597 | LIBS="$ac_save_LIBS" | |
10598 | ||
10599 | fi | |
10600 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10601 | echo "$ac_t""yes" 1>&6 | |
10602 | INET_LINK="resolv" | |
10603 | ||
10604 | else | |
10605 | echo "$ac_t""no" 1>&6 | |
10606 | fi | |
10607 | ||
10608 | ||
10609 | fi | |
10610 | ||
10611 | ||
10612 | ||
10f2d63a VZ |
10613 | fi |
10614 | done | |
10615 | ||
c63c7106 | 10616 | |
10f2d63a VZ |
10617 | for ac_func in inet_aton |
10618 | do | |
10619 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d6a55c4b | 10620 | echo "configure:10621: checking for $ac_func" >&5 |
10f2d63a VZ |
10621 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10622 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10623 | else | |
10624 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 10625 | #line 10626 "configure" |
10f2d63a VZ |
10626 | #include "confdefs.h" |
10627 | /* System header to define __stub macros and hopefully few prototypes, | |
10628 | which can conflict with char $ac_func(); below. */ | |
10629 | #include <assert.h> | |
10630 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10631 | /* We use char because int might match the return type of a gcc2 | |
10632 | builtin and then its argument prototype would still apply. */ | |
10633 | char $ac_func(); | |
10634 | ||
10635 | int main() { | |
10636 | ||
10637 | /* The GNU C library defines this for functions which it implements | |
10638 | to always fail with ENOSYS. Some functions are actually named | |
10639 | something starting with __ and the normal name is an alias. */ | |
10640 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10641 | choke me | |
10642 | #else | |
d6a55c4b | 10643 | $ac_func(); |
10f2d63a VZ |
10644 | #endif |
10645 | ||
10646 | ; return 0; } | |
10647 | EOF | |
d6a55c4b | 10648 | if { (eval echo configure:10649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10649 | rm -rf conftest* |
10650 | eval "ac_cv_func_$ac_func=yes" | |
10651 | else | |
10652 | echo "configure: failed program was:" >&5 | |
10653 | cat conftest.$ac_ext >&5 | |
10654 | rm -rf conftest* | |
10655 | eval "ac_cv_func_$ac_func=no" | |
10656 | fi | |
10657 | rm -f conftest* | |
10658 | fi | |
10659 | ||
10660 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10661 | echo "$ac_t""yes" 1>&6 | |
10662 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10663 | cat >> confdefs.h <<EOF | |
10664 | #define $ac_tr_func 1 | |
10665 | EOF | |
c63c7106 VZ |
10666 | cat >> confdefs.h <<\EOF |
10667 | #define HAVE_INET_ATON 1 | |
10668 | EOF | |
10669 | ||
10f2d63a VZ |
10670 | else |
10671 | echo "$ac_t""no" 1>&6 | |
c63c7106 | 10672 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 |
d6a55c4b | 10673 | echo "configure:10674: checking for inet_aton in -l$INET_LINK" >&5 |
c63c7106 | 10674 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
10f2d63a VZ |
10675 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
10676 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10677 | else | |
10678 | ac_save_LIBS="$LIBS" | |
c63c7106 | 10679 | LIBS="-l$INET_LINK $LIBS" |
10f2d63a | 10680 | cat > conftest.$ac_ext <<EOF |
d6a55c4b | 10681 | #line 10682 "configure" |
10f2d63a VZ |
10682 | #include "confdefs.h" |
10683 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10684 | /* We use char because int might match the return type of a gcc2 | |
10685 | builtin and then its argument prototype would still apply. */ | |
10686 | char inet_aton(); | |
10687 | ||
10688 | int main() { | |
10689 | inet_aton() | |
10690 | ; return 0; } | |
10691 | EOF | |
d6a55c4b | 10692 | if { (eval echo configure:10693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10693 | rm -rf conftest* |
10694 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10695 | else | |
10696 | echo "configure: failed program was:" >&5 | |
10697 | cat conftest.$ac_ext >&5 | |
10698 | rm -rf conftest* | |
10699 | eval "ac_cv_lib_$ac_lib_var=no" | |
10700 | fi | |
10701 | rm -f conftest* | |
10702 | LIBS="$ac_save_LIBS" | |
10703 | ||
10704 | fi | |
10705 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10706 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
10707 | cat >> confdefs.h <<\EOF |
10708 | #define HAVE_INET_ATON 1 | |
10f2d63a VZ |
10709 | EOF |
10710 | ||
10f2d63a VZ |
10711 | else |
10712 | echo "$ac_t""no" 1>&6 | |
10713 | fi | |
10714 | ||
c63c7106 VZ |
10715 | |
10716 | fi | |
10717 | done | |
10718 | ||
10719 | ||
10720 | if test "x$INET_LINK" != "x"; then | |
10721 | cat >> confdefs.h <<\EOF | |
10722 | #define HAVE_INET_ADDR 1 | |
10723 | EOF | |
10724 | ||
10725 | INET_LINK="-l$INET_LINK" | |
10726 | fi | |
10f2d63a VZ |
10727 | |
10728 | fi | |
10729 | ||
10730 | ||
10731 | cat > confcache <<\EOF | |
10732 | # This file is a shell script that caches the results of configure | |
10733 | # tests run on this system so they can be shared between configure | |
10734 | # scripts and configure runs. It is not useful on other systems. | |
10735 | # If it contains results you don't want to keep, you may remove or edit it. | |
10736 | # | |
10737 | # By default, configure uses ./config.cache as the cache file, | |
10738 | # creating it if it does not exist already. You can give configure | |
10739 | # the --cache-file=FILE option to use a different cache file; that is | |
10740 | # what configure does when it calls configure scripts in | |
10741 | # subdirectories, so they share the cache. | |
10742 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
10743 | # config.status only pays attention to the cache file if you give it the | |
10744 | # --recheck option to rerun configure. | |
10745 | # | |
10746 | EOF | |
10747 | # The following way of writing the cache mishandles newlines in values, | |
10748 | # but we know of no workaround that is simple, portable, and efficient. | |
10749 | # So, don't put newlines in cache variables' values. | |
10750 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10751 | # and sets the high bit in the cache file unless we assign to the vars. | |
10752 | (set) 2>&1 | | |
10753 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10754 | *ac_space=\ *) | |
10755 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
10756 | # turns \\\\ into \\, and sed turns \\ into \). | |
10757 | sed -n \ | |
10758 | -e "s/'/'\\\\''/g" \ | |
10759 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
10760 | ;; | |
10761 | *) | |
10762 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10763 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
10764 | ;; | |
10765 | esac >> confcache | |
10766 | if cmp -s $cache_file confcache; then | |
10767 | : | |
10768 | else | |
10769 | if test -w $cache_file; then | |
10770 | echo "updating cache $cache_file" | |
10771 | cat confcache > $cache_file | |
10772 | else | |
10773 | echo "not updating unwritable cache $cache_file" | |
10774 | fi | |
10775 | fi | |
10776 | rm -f confcache | |
10777 | ||
10778 | ||
10779 | ||
b089607b | 10780 | if test "$TOOLKIT" != "MSW"; then |
10f2d63a VZ |
10781 | |
10782 | ||
10783 | THREADS_LINK="" | |
10784 | THREADS_OBJ="" | |
10785 | ||
10786 | if test "$wxUSE_THREADS" = "yes" ; then | |
10787 | if test "$wxUSE_WINE" = 1 ; then | |
10788 | echo "configure: warning: Threads are not supported under WINE" 1>&2 | |
10789 | wxUSE_THREADS="no" | |
b12915c1 VZ |
10790 | elif test "$USE_BEOS" = 1; then |
10791 | echo "configure: warning: BeOS threads are not yet supported" 1>&2 | |
10792 | wxUSE_THREADS="no" | |
10f2d63a VZ |
10793 | fi |
10794 | fi | |
10795 | ||
10796 | if test "$wxUSE_THREADS" = "yes" ; then | |
10797 | ||
10798 | echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 | |
d6a55c4b | 10799 | echo "configure:10800: checking for pthread_create in -lpthread" >&5 |
10f2d63a VZ |
10800 | ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` |
10801 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10802 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10803 | else | |
10804 | ac_save_LIBS="$LIBS" | |
10805 | LIBS="-lpthread $LIBS" | |
10806 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 10807 | #line 10808 "configure" |
10f2d63a VZ |
10808 | #include "confdefs.h" |
10809 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10810 | /* We use char because int might match the return type of a gcc2 | |
10811 | builtin and then its argument prototype would still apply. */ | |
10812 | char pthread_create(); | |
10813 | ||
10814 | int main() { | |
10815 | pthread_create() | |
10816 | ; return 0; } | |
10817 | EOF | |
d6a55c4b | 10818 | if { (eval echo configure:10819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10819 | rm -rf conftest* |
10820 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10821 | else | |
10822 | echo "configure: failed program was:" >&5 | |
10823 | cat conftest.$ac_ext >&5 | |
10824 | rm -rf conftest* | |
10825 | eval "ac_cv_lib_$ac_lib_var=no" | |
10826 | fi | |
10827 | rm -f conftest* | |
10828 | LIBS="$ac_save_LIBS" | |
10829 | ||
10830 | fi | |
10831 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10832 | echo "$ac_t""yes" 1>&6 | |
10833 | ||
10834 | THREADS_OBJ="threadpsx.lo" | |
10835 | THREADS_LINK="pthread" | |
10836 | ||
10837 | else | |
10838 | echo "$ac_t""no" 1>&6 | |
10839 | ||
10840 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 | |
d6a55c4b | 10841 | echo "configure:10842: checking for pthread_create in -lc_r" >&5 |
10f2d63a VZ |
10842 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
10843 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10844 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10845 | else | |
10846 | ac_save_LIBS="$LIBS" | |
10847 | LIBS="-lc_r $LIBS" | |
10848 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 10849 | #line 10850 "configure" |
10f2d63a VZ |
10850 | #include "confdefs.h" |
10851 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10852 | /* We use char because int might match the return type of a gcc2 | |
10853 | builtin and then its argument prototype would still apply. */ | |
10854 | char pthread_create(); | |
10855 | ||
10856 | int main() { | |
10857 | pthread_create() | |
10858 | ; return 0; } | |
10859 | EOF | |
d6a55c4b | 10860 | if { (eval echo configure:10861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10861 | rm -rf conftest* |
10862 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10863 | else | |
10864 | echo "configure: failed program was:" >&5 | |
10865 | cat conftest.$ac_ext >&5 | |
10866 | rm -rf conftest* | |
10867 | eval "ac_cv_lib_$ac_lib_var=no" | |
10868 | fi | |
10869 | rm -f conftest* | |
10870 | LIBS="$ac_save_LIBS" | |
10871 | ||
10872 | fi | |
10873 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10874 | echo "$ac_t""yes" 1>&6 | |
10875 | ||
10876 | THREADS_OBJ="threadpsx.lo" | |
10877 | THREADS_LINK="c_r" | |
10878 | ||
10879 | else | |
10880 | echo "$ac_t""no" 1>&6 | |
10881 | ||
10882 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` | |
10883 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 | |
d6a55c4b | 10884 | echo "configure:10885: checking for sys/prctl.h" >&5 |
10f2d63a VZ |
10885 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10886 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10887 | else | |
10888 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 10889 | #line 10890 "configure" |
10f2d63a VZ |
10890 | #include "confdefs.h" |
10891 | #include <sys/prctl.h> | |
10892 | EOF | |
10893 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d6a55c4b | 10894 | { (eval echo configure:10895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
10895 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10896 | if test -z "$ac_err"; then | |
10897 | rm -rf conftest* | |
10898 | eval "ac_cv_header_$ac_safe=yes" | |
10899 | else | |
10900 | echo "$ac_err" >&5 | |
10901 | echo "configure: failed program was:" >&5 | |
10902 | cat conftest.$ac_ext >&5 | |
10903 | rm -rf conftest* | |
10904 | eval "ac_cv_header_$ac_safe=no" | |
10905 | fi | |
10906 | rm -f conftest* | |
10907 | fi | |
10908 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10909 | echo "$ac_t""yes" 1>&6 | |
10910 | ||
10911 | THREADS_OBJ="threadsgi.lo" | |
10912 | ||
10913 | else | |
10914 | echo "$ac_t""no" 1>&6 | |
10915 | fi | |
10916 | ||
10917 | ||
10918 | fi | |
10919 | ||
10920 | ||
10921 | fi | |
10922 | ||
10923 | ||
10924 | if test -z "$THREADS_OBJ" ; then | |
10925 | wxUSE_THREADS=no | |
10926 | echo "configure: warning: No thread support on this system" 1>&2 | |
10927 | fi | |
10928 | fi | |
10929 | ||
10930 | if test "$wxUSE_THREADS" = "yes" ; then | |
70846f0a VZ |
10931 | for ac_func in thr_setconcurrency |
10932 | do | |
10933 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d6a55c4b | 10934 | echo "configure:10935: checking for $ac_func" >&5 |
70846f0a VZ |
10935 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10936 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10937 | else | |
10938 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 10939 | #line 10940 "configure" |
70846f0a VZ |
10940 | #include "confdefs.h" |
10941 | /* System header to define __stub macros and hopefully few prototypes, | |
10942 | which can conflict with char $ac_func(); below. */ | |
10943 | #include <assert.h> | |
10944 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10945 | /* We use char because int might match the return type of a gcc2 | |
10946 | builtin and then its argument prototype would still apply. */ | |
10947 | char $ac_func(); | |
10948 | ||
10949 | int main() { | |
10950 | ||
10951 | /* The GNU C library defines this for functions which it implements | |
10952 | to always fail with ENOSYS. Some functions are actually named | |
10953 | something starting with __ and the normal name is an alias. */ | |
10954 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10955 | choke me | |
10956 | #else | |
d6a55c4b | 10957 | $ac_func(); |
70846f0a VZ |
10958 | #endif |
10959 | ||
10960 | ; return 0; } | |
10961 | EOF | |
d6a55c4b | 10962 | if { (eval echo configure:10963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
70846f0a VZ |
10963 | rm -rf conftest* |
10964 | eval "ac_cv_func_$ac_func=yes" | |
10965 | else | |
10966 | echo "configure: failed program was:" >&5 | |
10967 | cat conftest.$ac_ext >&5 | |
10968 | rm -rf conftest* | |
10969 | eval "ac_cv_func_$ac_func=no" | |
10970 | fi | |
10971 | rm -f conftest* | |
10972 | fi | |
10973 | ||
10974 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10975 | echo "$ac_t""yes" 1>&6 | |
10976 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10977 | cat >> confdefs.h <<EOF | |
10978 | #define $ac_tr_func 1 | |
10979 | EOF | |
10980 | ||
10981 | else | |
10982 | echo "$ac_t""no" 1>&6 | |
10983 | fi | |
10984 | done | |
10985 | ||
10986 | ||
10f2d63a VZ |
10987 | |
10988 | for ac_hdr in sched.h | |
10989 | do | |
10990 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10991 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d6a55c4b | 10992 | echo "configure:10993: checking for $ac_hdr" >&5 |
10f2d63a VZ |
10993 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10994 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10995 | else | |
10996 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 10997 | #line 10998 "configure" |
10f2d63a VZ |
10998 | #include "confdefs.h" |
10999 | #include <$ac_hdr> | |
11000 | EOF | |
11001 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d6a55c4b | 11002 | { (eval echo configure:11003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
11003 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11004 | if test -z "$ac_err"; then | |
11005 | rm -rf conftest* | |
11006 | eval "ac_cv_header_$ac_safe=yes" | |
11007 | else | |
11008 | echo "$ac_err" >&5 | |
11009 | echo "configure: failed program was:" >&5 | |
11010 | cat conftest.$ac_ext >&5 | |
11011 | rm -rf conftest* | |
11012 | eval "ac_cv_header_$ac_safe=no" | |
11013 | fi | |
11014 | rm -f conftest* | |
11015 | fi | |
11016 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11017 | echo "$ac_t""yes" 1>&6 | |
11018 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11019 | cat >> confdefs.h <<EOF | |
11020 | #define $ac_tr_hdr 1 | |
11021 | EOF | |
11022 | ||
11023 | else | |
11024 | echo "$ac_t""no" 1>&6 | |
11025 | fi | |
11026 | done | |
11027 | ||
11028 | ||
11029 | echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6 | |
d6a55c4b | 11030 | echo "configure:11031: checking for sched_yield in -l$THREADS_LINK" >&5 |
10f2d63a VZ |
11031 | ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'` |
11032 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11033 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11034 | else | |
11035 | ac_save_LIBS="$LIBS" | |
11036 | LIBS="-l$THREADS_LINK $LIBS" | |
11037 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 11038 | #line 11039 "configure" |
10f2d63a VZ |
11039 | #include "confdefs.h" |
11040 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11041 | /* We use char because int might match the return type of a gcc2 | |
11042 | builtin and then its argument prototype would still apply. */ | |
11043 | char sched_yield(); | |
11044 | ||
11045 | int main() { | |
11046 | sched_yield() | |
11047 | ; return 0; } | |
11048 | EOF | |
d6a55c4b | 11049 | if { (eval echo configure:11050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11050 | rm -rf conftest* |
11051 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11052 | else | |
11053 | echo "configure: failed program was:" >&5 | |
11054 | cat conftest.$ac_ext >&5 | |
11055 | rm -rf conftest* | |
11056 | eval "ac_cv_lib_$ac_lib_var=no" | |
11057 | fi | |
11058 | rm -f conftest* | |
11059 | LIBS="$ac_save_LIBS" | |
11060 | ||
11061 | fi | |
11062 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11063 | echo "$ac_t""yes" 1>&6 | |
11064 | cat >> confdefs.h <<\EOF | |
11065 | #define HAVE_SCHED_YIELD 1 | |
11066 | EOF | |
11067 | ||
11068 | else | |
11069 | echo "$ac_t""no" 1>&6 | |
11070 | echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6 | |
d6a55c4b | 11071 | echo "configure:11072: checking for sched_yield in -l"posix4"" >&5 |
10f2d63a VZ |
11072 | ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'` |
11073 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11074 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11075 | else | |
11076 | ac_save_LIBS="$LIBS" | |
11077 | LIBS="-l"posix4" $LIBS" | |
11078 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 11079 | #line 11080 "configure" |
10f2d63a VZ |
11080 | #include "confdefs.h" |
11081 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11082 | /* We use char because int might match the return type of a gcc2 | |
11083 | builtin and then its argument prototype would still apply. */ | |
11084 | char sched_yield(); | |
11085 | ||
11086 | int main() { | |
11087 | sched_yield() | |
11088 | ; return 0; } | |
11089 | EOF | |
d6a55c4b | 11090 | if { (eval echo configure:11091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11091 | rm -rf conftest* |
11092 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11093 | else | |
11094 | echo "configure: failed program was:" >&5 | |
11095 | cat conftest.$ac_ext >&5 | |
11096 | rm -rf conftest* | |
11097 | eval "ac_cv_lib_$ac_lib_var=no" | |
11098 | fi | |
11099 | rm -f conftest* | |
11100 | LIBS="$ac_save_LIBS" | |
11101 | ||
11102 | fi | |
11103 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11104 | echo "$ac_t""yes" 1>&6 | |
11105 | cat >> confdefs.h <<\EOF | |
11106 | #define HAVE_SCHED_YIELD 1 | |
11107 | EOF | |
11108 | POSIX4_LINK="-lposix4" | |
11109 | else | |
11110 | echo "$ac_t""no" 1>&6 | |
11111 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
11112 | ||
11113 | fi | |
11114 | ||
11115 | ||
11116 | fi | |
11117 | ||
11118 | ||
11119 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6 | |
d6a55c4b | 11120 | echo "configure:11121: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5 |
10f2d63a VZ |
11121 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
11122 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11123 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11124 | else | |
11125 | ac_save_LIBS="$LIBS" | |
11126 | LIBS="-l$THREADS_LINK $LIBS" | |
11127 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 11128 | #line 11129 "configure" |
10f2d63a VZ |
11129 | #include "confdefs.h" |
11130 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11131 | /* We use char because int might match the return type of a gcc2 | |
11132 | builtin and then its argument prototype would still apply. */ | |
11133 | char pthread_attr_getschedpolicy(); | |
11134 | ||
11135 | int main() { | |
11136 | pthread_attr_getschedpolicy() | |
11137 | ; return 0; } | |
11138 | EOF | |
d6a55c4b | 11139 | if { (eval echo configure:11140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11140 | rm -rf conftest* |
11141 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11142 | else | |
11143 | echo "configure: failed program was:" >&5 | |
11144 | cat conftest.$ac_ext >&5 | |
11145 | rm -rf conftest* | |
11146 | eval "ac_cv_lib_$ac_lib_var=no" | |
11147 | fi | |
11148 | rm -f conftest* | |
11149 | LIBS="$ac_save_LIBS" | |
11150 | ||
11151 | fi | |
11152 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11153 | echo "$ac_t""yes" 1>&6 | |
11154 | cat >> confdefs.h <<\EOF | |
11155 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
11156 | EOF | |
11157 | ||
11158 | else | |
11159 | echo "$ac_t""no" 1>&6 | |
11160 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4"""... $ac_c" 1>&6 | |
d6a55c4b | 11161 | echo "configure:11162: checking for pthread_attr_getschedpolicy in -l"posix4"" >&5 |
10f2d63a VZ |
11162 | ac_lib_var=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
11163 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11164 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11165 | else | |
11166 | ac_save_LIBS="$LIBS" | |
11167 | LIBS="-l"posix4" $LIBS" | |
11168 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 11169 | #line 11170 "configure" |
10f2d63a VZ |
11170 | #include "confdefs.h" |
11171 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11172 | /* We use char because int might match the return type of a gcc2 | |
11173 | builtin and then its argument prototype would still apply. */ | |
11174 | char pthread_attr_getschedpolicy(); | |
11175 | ||
11176 | int main() { | |
11177 | pthread_attr_getschedpolicy() | |
11178 | ; return 0; } | |
11179 | EOF | |
d6a55c4b | 11180 | if { (eval echo configure:11181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11181 | rm -rf conftest* |
11182 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11183 | else | |
11184 | echo "configure: failed program was:" >&5 | |
11185 | cat conftest.$ac_ext >&5 | |
11186 | rm -rf conftest* | |
11187 | eval "ac_cv_lib_$ac_lib_var=no" | |
11188 | fi | |
11189 | rm -f conftest* | |
11190 | LIBS="$ac_save_LIBS" | |
11191 | ||
11192 | fi | |
11193 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11194 | echo "$ac_t""yes" 1>&6 | |
11195 | cat >> confdefs.h <<\EOF | |
11196 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
11197 | EOF | |
11198 | POSIX4_LINK="-lposix4" | |
11199 | else | |
11200 | echo "$ac_t""no" 1>&6 | |
11201 | echo "configure: warning: Setting thread priority will not work" 1>&2 | |
11202 | ||
11203 | fi | |
11204 | ||
11205 | ||
11206 | fi | |
11207 | ||
11208 | ||
11209 | echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6 | |
d6a55c4b | 11210 | echo "configure:11211: checking for pthread_cancel in -l$THREADS_LINK" >&5 |
10f2d63a VZ |
11211 | ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'` |
11212 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11213 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11214 | else | |
11215 | ac_save_LIBS="$LIBS" | |
11216 | LIBS="-l$THREADS_LINK $LIBS" | |
11217 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 11218 | #line 11219 "configure" |
10f2d63a VZ |
11219 | #include "confdefs.h" |
11220 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11221 | /* We use char because int might match the return type of a gcc2 | |
11222 | builtin and then its argument prototype would still apply. */ | |
11223 | char pthread_cancel(); | |
11224 | ||
11225 | int main() { | |
11226 | pthread_cancel() | |
11227 | ; return 0; } | |
11228 | EOF | |
d6a55c4b | 11229 | if { (eval echo configure:11230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11230 | rm -rf conftest* |
11231 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11232 | else | |
11233 | echo "configure: failed program was:" >&5 | |
11234 | cat conftest.$ac_ext >&5 | |
11235 | rm -rf conftest* | |
11236 | eval "ac_cv_lib_$ac_lib_var=no" | |
11237 | fi | |
11238 | rm -f conftest* | |
11239 | LIBS="$ac_save_LIBS" | |
11240 | ||
11241 | fi | |
11242 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11243 | echo "$ac_t""yes" 1>&6 | |
11244 | cat >> confdefs.h <<\EOF | |
11245 | #define HAVE_PTHREAD_CANCEL 1 | |
11246 | EOF | |
11247 | ||
11248 | else | |
11249 | echo "$ac_t""no" 1>&6 | |
11250 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
11251 | fi | |
11252 | ||
11253 | ||
11254 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 | |
d6a55c4b | 11255 | echo "configure:11256: checking for pthread_cleanup_push/pop" >&5 |
10f2d63a VZ |
11256 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
11257 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11258 | else | |
11259 | ||
11260 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 11261 | #line 11262 "configure" |
10f2d63a VZ |
11262 | #include "confdefs.h" |
11263 | #include <pthread.h> | |
11264 | int main() { | |
11265 | ||
11266 | pthread_cleanup_push(NULL, NULL); | |
11267 | pthread_cleanup_pop(0); | |
11268 | ||
11269 | ; return 0; } | |
11270 | EOF | |
d6a55c4b | 11271 | if { (eval echo configure:11272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
11272 | rm -rf conftest* |
11273 | ||
11274 | wx_cv_func_pthread_cleanup_push=yes | |
11275 | cat >> confdefs.h <<\EOF | |
11276 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 | |
11277 | EOF | |
11278 | ||
11279 | ||
11280 | else | |
11281 | echo "configure: failed program was:" >&5 | |
11282 | cat conftest.$ac_ext >&5 | |
11283 | rm -rf conftest* | |
11284 | ||
11285 | wx_cv_func_pthread_cleanup_push=no | |
11286 | ||
11287 | fi | |
11288 | rm -f conftest* | |
11289 | ||
11290 | fi | |
11291 | ||
11292 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
11293 | ||
11294 | THREADS_LINK="-l$THREADS_LINK" | |
11295 | fi | |
11296 | ||
11297 | fi | |
11298 | ||
11299 | if test "$wxUSE_THREADS" = "yes"; then | |
11300 | cat >> confdefs.h <<\EOF | |
11301 | #define wxUSE_THREADS 1 | |
11302 | EOF | |
11303 | ||
11304 | ||
11305 | CFLAGS="${CFLAGS} -D_REENTRANT" | |
11306 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" | |
11307 | ||
11308 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
11309 | else | |
11310 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
ab9b9eab | 11311 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 |
d6a55c4b | 11312 | echo "configure:11313: checking if -D_REENTRANT is needed" >&5 |
ab9b9eab VZ |
11313 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
11314 | CFLAGS="${CFLAGS} -D_REENTRANT" | |
11315 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" | |
11316 | echo "$ac_t""yes" 1>&6 | |
11317 | else | |
11318 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
11319 | fi |
11320 | fi | |
11321 | fi | |
11322 | ||
13111b2a VZ |
11323 | if test "$WXGTK13" = 1 ; then |
11324 | cat >> confdefs.h <<EOF | |
11325 | #define __WXGTK13__ $WXGTK13 | |
11326 | EOF | |
11327 | ||
11328 | WXGTK12=1 | |
11329 | fi | |
11330 | ||
10f2d63a VZ |
11331 | if test "$WXGTK12" = 1 ; then |
11332 | cat >> confdefs.h <<EOF | |
11333 | #define __WXGTK12__ $WXGTK12 | |
11334 | EOF | |
11335 | ||
11336 | fi | |
11337 | ||
11338 | if test "$WXWINE" = 1 ; then | |
11339 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__" | |
11340 | fi | |
11341 | ||
11342 | if test "$wxUSE_CYGWIN" = 1 ; then | |
11343 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__" | |
11344 | fi | |
11345 | ||
11346 | WXDEBUG= | |
11347 | ||
11348 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
11349 | WXDEBUG="-g" | |
11350 | wxUSE_OPTIMISE=no | |
11351 | fi | |
11352 | ||
11353 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
11354 | wxUSE_DEBUG_INFO=yes | |
11355 | WXDEBUG="-ggdb" | |
11356 | fi | |
11357 | ||
11358 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
11359 | cat >> confdefs.h <<\EOF | |
11360 | #define WXDEBUG 1 | |
11361 | EOF | |
11362 | ||
11363 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
11364 | else | |
11365 | if test "$wxUSE_GTK" = 1 ; then | |
11366 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
11367 | fi | |
11368 | fi | |
11369 | ||
11370 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
11371 | cat >> confdefs.h <<\EOF | |
11372 | #define wxUSE_MEMORY_TRACING 1 | |
11373 | EOF | |
11374 | ||
11375 | cat >> confdefs.h <<\EOF | |
11376 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
47c13eb7 VS |
11377 | EOF |
11378 | ||
11379 | cat >> confdefs.h <<\EOF | |
11380 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
10f2d63a VZ |
11381 | EOF |
11382 | ||
11383 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
11384 | fi | |
11385 | ||
11386 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
11387 | DMALLOC_LINK="-ldmalloc" | |
11388 | fi | |
11389 | ||
11390 | PROFILE= | |
11391 | if test "$wxUSE_PROFILE" = "yes" ; then | |
11392 | PROFILE="-pg" | |
11393 | fi | |
11394 | ||
11395 | DEP_INFO_FLAGS= | |
caa2c79b | 11396 | CODE_GEN_FLAGS= |
10f2d63a VZ |
11397 | if test "$GCC" = yes ; then |
11398 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
caa2c79b | 11399 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-rtti" |
10f2d63a VZ |
11400 | fi |
11401 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
caa2c79b | 11402 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-exceptions" |
10f2d63a VZ |
11403 | fi |
11404 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
caa2c79b | 11405 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" |
10f2d63a VZ |
11406 | fi |
11407 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
11408 | DEP_INFO_FLAGS="-MMD" | |
11409 | fi | |
11410 | fi | |
11411 | ||
11412 | ||
11413 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` | |
11414 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
11415 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
11416 | OPTIMISE= | |
11417 | else | |
11418 | if test "$GCC" = yes ; then | |
11419 | OPTIMISE="-O2" | |
11420 | case "${host}" in | |
11421 | i586-*-*|i686-*-* ) | |
11422 | OPTIMISE="${OPTIMISE} " | |
11423 | ;; | |
11424 | esac | |
11425 | else | |
11426 | OPTIMISE="-O" | |
11427 | fi | |
11428 | fi | |
11429 | ||
11430 | ||
11431 | ZLIB_INCLUDE= | |
11432 | if test "$wxUSE_ZLIB" = "yes" ; then | |
11433 | cat >> confdefs.h <<\EOF | |
11434 | #define wxUSE_ZLIB 1 | |
11435 | EOF | |
11436 | ||
11437 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
11438 | fi | |
11439 | ||
11440 | PNG_INCLUDE= | |
11441 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
11442 | cat >> confdefs.h <<\EOF | |
11443 | #define wxUSE_LIBPNG 1 | |
11444 | EOF | |
11445 | ||
11446 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
11447 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
11448 | fi | |
11449 | ||
11450 | JPEG_INCLUDE= | |
11451 | if test "$wxUSE_LIBJPEG" = "yes" ; then | |
11452 | cat >> confdefs.h <<\EOF | |
11453 | #define wxUSE_LIBJPEG 1 | |
11454 | EOF | |
11455 | ||
11456 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
11457 | fi | |
11458 | ||
c7a2bf27 RR |
11459 | TIFF_INCLUDE= |
11460 | if test "$wxUSE_LIBTIFF" = "yes" ; then | |
11461 | cat >> confdefs.h <<\EOF | |
11462 | #define wxUSE_LIBTIFF 1 | |
11463 | EOF | |
11464 | ||
11465 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
11466 | fi | |
11467 | ||
10f2d63a VZ |
11468 | if test "$wxUSE_OPENGL" = "yes"; then |
11469 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` | |
11470 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
d6a55c4b | 11471 | echo "configure:11472: checking for GL/gl.h" >&5 |
10f2d63a VZ |
11472 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11473 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11474 | else | |
11475 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 11476 | #line 11477 "configure" |
10f2d63a VZ |
11477 | #include "confdefs.h" |
11478 | #include <GL/gl.h> | |
11479 | EOF | |
11480 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d6a55c4b | 11481 | { (eval echo configure:11482: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
11482 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11483 | if test -z "$ac_err"; then | |
11484 | rm -rf conftest* | |
11485 | eval "ac_cv_header_$ac_safe=yes" | |
11486 | else | |
11487 | echo "$ac_err" >&5 | |
11488 | echo "configure: failed program was:" >&5 | |
11489 | cat conftest.$ac_ext >&5 | |
11490 | rm -rf conftest* | |
11491 | eval "ac_cv_header_$ac_safe=no" | |
11492 | fi | |
11493 | rm -f conftest* | |
11494 | fi | |
11495 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11496 | echo "$ac_t""yes" 1>&6 | |
11497 | ||
11498 | echo $ac_n "checking for glInitNames in -lGL""... $ac_c" 1>&6 | |
d6a55c4b | 11499 | echo "configure:11500: checking for glInitNames in -lGL" >&5 |
10f2d63a VZ |
11500 | ac_lib_var=`echo GL'_'glInitNames | sed 'y%./+-%__p_%'` |
11501 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11502 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11503 | else | |
11504 | ac_save_LIBS="$LIBS" | |
11505 | LIBS="-lGL wxUSE_OPENGL=0 $LIBS" | |
11506 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 11507 | #line 11508 "configure" |
10f2d63a VZ |
11508 | #include "confdefs.h" |
11509 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11510 | /* We use char because int might match the return type of a gcc2 | |
11511 | builtin and then its argument prototype would still apply. */ | |
11512 | char glInitNames(); | |
11513 | ||
11514 | int main() { | |
11515 | glInitNames() | |
11516 | ; return 0; } | |
11517 | EOF | |
d6a55c4b | 11518 | if { (eval echo configure:11519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11519 | rm -rf conftest* |
11520 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11521 | else | |
11522 | echo "configure: failed program was:" >&5 | |
11523 | cat conftest.$ac_ext >&5 | |
11524 | rm -rf conftest* | |
11525 | eval "ac_cv_lib_$ac_lib_var=no" | |
11526 | fi | |
11527 | rm -f conftest* | |
11528 | LIBS="$ac_save_LIBS" | |
11529 | ||
11530 | fi | |
11531 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11532 | echo "$ac_t""yes" 1>&6 | |
11533 | ||
11534 | OPENGL_LINK="-lGL" | |
11535 | cat >> confdefs.h <<\EOF | |
11536 | #define wxUSE_OPENGL 1 | |
11537 | EOF | |
11538 | ||
11539 | UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src" | |
11540 | ||
11541 | else | |
11542 | echo "$ac_t""no" 1>&6 | |
11543 | ||
11544 | echo $ac_n "checking for glInitNames in -lMesaGL""... $ac_c" 1>&6 | |
d6a55c4b | 11545 | echo "configure:11546: checking for glInitNames in -lMesaGL" >&5 |
10f2d63a VZ |
11546 | ac_lib_var=`echo MesaGL'_'glInitNames | sed 'y%./+-%__p_%'` |
11547 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11548 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11549 | else | |
11550 | ac_save_LIBS="$LIBS" | |
11551 | LIBS="-lMesaGL $LIBS" | |
11552 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 11553 | #line 11554 "configure" |
10f2d63a VZ |
11554 | #include "confdefs.h" |
11555 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11556 | /* We use char because int might match the return type of a gcc2 | |
11557 | builtin and then its argument prototype would still apply. */ | |
11558 | char glInitNames(); | |
11559 | ||
11560 | int main() { | |
11561 | glInitNames() | |
11562 | ; return 0; } | |
11563 | EOF | |
d6a55c4b | 11564 | if { (eval echo configure:11565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11565 | rm -rf conftest* |
11566 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11567 | else | |
11568 | echo "configure: failed program was:" >&5 | |
11569 | cat conftest.$ac_ext >&5 | |
11570 | rm -rf conftest* | |
11571 | eval "ac_cv_lib_$ac_lib_var=no" | |
11572 | fi | |
11573 | rm -f conftest* | |
11574 | LIBS="$ac_save_LIBS" | |
11575 | ||
11576 | fi | |
11577 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11578 | echo "$ac_t""yes" 1>&6 | |
11579 | ||
11580 | OPENGL_LINK="-lMesaGL" | |
11581 | cat >> confdefs.h <<\EOF | |
11582 | #define wxUSE_OPENGL 1 | |
11583 | EOF | |
11584 | ||
11585 | UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src" | |
11586 | ||
11587 | else | |
11588 | echo "$ac_t""no" 1>&6 | |
11589 | wxUSE_OPENGL=0 | |
11590 | fi | |
11591 | ||
11592 | ||
11593 | fi | |
11594 | ||
11595 | ||
11596 | else | |
11597 | echo "$ac_t""no" 1>&6 | |
11598 | wxUSE_OPENGL=0 | |
11599 | fi | |
11600 | ||
11601 | fi | |
11602 | ||
11603 | ||
11604 | if test "$wxUSE_GUI" = "yes"; then | |
11605 | cat >> confdefs.h <<\EOF | |
11606 | #define wxUSE_GUI 1 | |
11607 | EOF | |
11608 | ||
11609 | ||
11610 | else | |
11611 | cat >> confdefs.h <<\EOF | |
11612 | #define wxUSE_NOGUI 1 | |
11613 | EOF | |
11614 | ||
11615 | fi | |
11616 | ||
11617 | ||
11618 | if test "$wxUSE_UNIX" = "yes"; then | |
11619 | cat >> confdefs.h <<\EOF | |
11620 | #define wxUSE_UNIX 1 | |
11621 | EOF | |
11622 | ||
11623 | fi | |
11624 | ||
11625 | ||
11626 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
11627 | cat >> confdefs.h <<\EOF | |
11628 | #define wxUSE_APPLE_IEEE 1 | |
11629 | EOF | |
11630 | ||
11631 | fi | |
11632 | ||
10f2d63a VZ |
11633 | if test "$wxUSE_WAVE" = "yes"; then |
11634 | cat >> confdefs.h <<\EOF | |
11635 | #define wxUSE_WAVE 1 | |
11636 | EOF | |
11637 | ||
11638 | fi | |
11639 | ||
11640 | if test "$wxUSE_FILE" = "yes"; then | |
11641 | cat >> confdefs.h <<\EOF | |
11642 | #define wxUSE_FILE 1 | |
11643 | EOF | |
11644 | ||
11645 | fi | |
11646 | ||
11647 | if test "$wxUSE_FS_INET" = "yes"; then | |
11648 | cat >> confdefs.h <<\EOF | |
11649 | #define wxUSE_FS_INET 1 | |
11650 | EOF | |
11651 | ||
11652 | fi | |
11653 | ||
11654 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
11655 | cat >> confdefs.h <<\EOF | |
11656 | #define wxUSE_FS_ZIP 1 | |
11657 | EOF | |
11658 | ||
11659 | fi | |
11660 | ||
11661 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
11662 | cat >> confdefs.h <<\EOF | |
11663 | #define wxUSE_ZIPSTREAM 1 | |
11664 | EOF | |
11665 | ||
11666 | fi | |
11667 | ||
11668 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
11669 | cat >> confdefs.h <<\EOF | |
11670 | #define wxUSE_BUSYINFO 1 | |
11671 | EOF | |
11672 | ||
11673 | fi | |
11674 | ||
11675 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
11676 | cat >> confdefs.h <<\EOF | |
11677 | #define wxUSE_STD_IOSTREAM 1 | |
11678 | EOF | |
11679 | ||
11680 | fi | |
11681 | ||
11682 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
11683 | if test "$wxUSE_FILE" != "yes"; then | |
11684 | echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2 | |
11685 | else | |
11686 | cat >> confdefs.h <<\EOF | |
11687 | #define wxUSE_TEXTFILE 1 | |
11688 | EOF | |
11689 | ||
11690 | fi | |
11691 | fi | |
11692 | ||
11693 | if test "$wxUSE_CONFIG" = "yes" ; then | |
11694 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
11695 | echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2 | |
11696 | else | |
11697 | cat >> confdefs.h <<\EOF | |
11698 | #define wxUSE_CONFIG 1 | |
11699 | EOF | |
11700 | ||
11701 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
11702 | fi | |
11703 | fi | |
11704 | ||
11705 | if test "$wxUSE_INTL" = "yes" ; then | |
11706 | if test "$wxUSE_FILE" != "yes"; then | |
11707 | echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2 | |
11708 | else | |
11709 | cat >> confdefs.h <<\EOF | |
11710 | #define wxUSE_INTL 1 | |
11711 | EOF | |
11712 | ||
11713 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
11714 | fi | |
11715 | fi | |
11716 | ||
11717 | if test "$wxUSE_LOG" = "yes"; then | |
11718 | cat >> confdefs.h <<\EOF | |
11719 | #define wxUSE_LOG 1 | |
11720 | EOF | |
11721 | ||
11722 | fi | |
11723 | ||
11724 | if test "$wxUSE_LONGLONG" = "yes"; then | |
11725 | cat >> confdefs.h <<\EOF | |
11726 | #define wxUSE_LONGLONG 1 | |
11727 | EOF | |
11728 | ||
11729 | fi | |
11730 | ||
9b33fe02 VZ |
11731 | if test "$wxUSE_PLOT" = "yes"; then |
11732 | cat >> confdefs.h <<\EOF | |
11733 | #define wxUSE_PLOT 1 | |
11734 | EOF | |
11735 | ||
11736 | fi | |
11737 | ||
10f2d63a VZ |
11738 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
11739 | cat >> confdefs.h <<\EOF | |
11740 | #define wxUSE_DIALUP_MANAGER 1 | |
11741 | EOF | |
11742 | ||
70f7a477 | 11743 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
11744 | fi |
11745 | ||
11746 | if test "$wxUSE_STREAMS" = "yes" ; then | |
11747 | cat >> confdefs.h <<\EOF | |
11748 | #define wxUSE_STREAMS 1 | |
11749 | EOF | |
11750 | ||
11751 | fi | |
11752 | ||
10f2d63a | 11753 | |
afc31813 | 11754 | if test "$wxUSE_TIMEDATE" = "yes"; then |
83307f33 VZ |
11755 | for ac_func in strptime |
11756 | do | |
11757 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d6a55c4b | 11758 | echo "configure:11759: checking for $ac_func" >&5 |
83307f33 VZ |
11759 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11760 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11761 | else | |
11762 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 11763 | #line 11764 "configure" |
83307f33 VZ |
11764 | #include "confdefs.h" |
11765 | /* System header to define __stub macros and hopefully few prototypes, | |
11766 | which can conflict with char $ac_func(); below. */ | |
11767 | #include <assert.h> | |
11768 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11769 | /* We use char because int might match the return type of a gcc2 | |
11770 | builtin and then its argument prototype would still apply. */ | |
11771 | char $ac_func(); | |
11772 | ||
11773 | int main() { | |
11774 | ||
11775 | /* The GNU C library defines this for functions which it implements | |
11776 | to always fail with ENOSYS. Some functions are actually named | |
11777 | something starting with __ and the normal name is an alias. */ | |
11778 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11779 | choke me | |
11780 | #else | |
d6a55c4b | 11781 | $ac_func(); |
83307f33 VZ |
11782 | #endif |
11783 | ||
11784 | ; return 0; } | |
11785 | EOF | |
d6a55c4b | 11786 | if { (eval echo configure:11787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
83307f33 VZ |
11787 | rm -rf conftest* |
11788 | eval "ac_cv_func_$ac_func=yes" | |
11789 | else | |
11790 | echo "configure: failed program was:" >&5 | |
11791 | cat conftest.$ac_ext >&5 | |
11792 | rm -rf conftest* | |
11793 | eval "ac_cv_func_$ac_func=no" | |
11794 | fi | |
11795 | rm -f conftest* | |
11796 | fi | |
11797 | ||
11798 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11799 | echo "$ac_t""yes" 1>&6 | |
11800 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11801 | cat >> confdefs.h <<EOF | |
11802 | #define $ac_tr_func 1 | |
11803 | EOF | |
11804 | ||
11805 | else | |
11806 | echo "$ac_t""no" 1>&6 | |
11807 | fi | |
11808 | done | |
11809 | ||
11810 | ||
360d6699 | 11811 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
d6a55c4b | 11812 | echo "configure:11813: checking for timezone variable in <time.h>" >&5 |
360d6699 VZ |
11813 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
11814 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11815 | else | |
11816 | ||
11817 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 11818 | #line 11819 "configure" |
360d6699 VZ |
11819 | #include "confdefs.h" |
11820 | ||
11821 | #include <time.h> | |
11822 | ||
11823 | int main() { | |
11824 | ||
11825 | int tz; | |
11826 | tz = __timezone; | |
11827 | ||
11828 | ; return 0; } | |
11829 | EOF | |
d6a55c4b | 11830 | if { (eval echo configure:11831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
360d6699 VZ |
11831 | rm -rf conftest* |
11832 | ||
11833 | wx_cv_var_timezone=__timezone | |
11834 | ||
11835 | else | |
11836 | echo "configure: failed program was:" >&5 | |
11837 | cat conftest.$ac_ext >&5 | |
11838 | rm -rf conftest* | |
11839 | ||
11840 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 11841 | #line 11842 "configure" |
360d6699 VZ |
11842 | #include "confdefs.h" |
11843 | ||
11844 | #include <time.h> | |
11845 | ||
11846 | int main() { | |
11847 | ||
11848 | int tz; | |
11849 | tz = _timezone; | |
11850 | ||
11851 | ; return 0; } | |
11852 | EOF | |
d6a55c4b | 11853 | if { (eval echo configure:11854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
360d6699 VZ |
11854 | rm -rf conftest* |
11855 | ||
11856 | wx_cv_var_timezone=_timezone | |
11857 | ||
5357c8e8 VZ |
11858 | else |
11859 | echo "configure: failed program was:" >&5 | |
11860 | cat conftest.$ac_ext >&5 | |
11861 | rm -rf conftest* | |
11862 | ||
11863 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 11864 | #line 11865 "configure" |
5357c8e8 VZ |
11865 | #include "confdefs.h" |
11866 | ||
11867 | #include <time.h> | |
11868 | ||
11869 | int main() { | |
11870 | ||
11871 | int tz; | |
11872 | tz = timezone; | |
11873 | ||
11874 | ; return 0; } | |
11875 | EOF | |
d6a55c4b | 11876 | if { (eval echo configure:11877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
5357c8e8 VZ |
11877 | rm -rf conftest* |
11878 | ||
11879 | wx_cv_var_timezone=timezone | |
11880 | ||
360d6699 VZ |
11881 | else |
11882 | echo "configure: failed program was:" >&5 | |
11883 | cat conftest.$ac_ext >&5 | |
11884 | rm -rf conftest* | |
11885 | { echo "configure: error: no timezone variable" 1>&2; exit 1; } | |
5357c8e8 VZ |
11886 | |
11887 | fi | |
11888 | rm -f conftest* | |
11889 | ||
360d6699 VZ |
11890 | |
11891 | fi | |
11892 | rm -f conftest* | |
11893 | ||
11894 | ||
11895 | fi | |
11896 | rm -f conftest* | |
11897 | ||
11898 | ||
11899 | fi | |
11900 | ||
11901 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 | |
11902 | ||
11903 | cat >> confdefs.h <<EOF | |
11904 | #define WX_TIMEZONE $wx_cv_var_timezone | |
11905 | EOF | |
11906 | ||
11907 | ||
3fcdd07b | 11908 | for ac_func in localtime |
afc31813 VZ |
11909 | do |
11910 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d6a55c4b | 11911 | echo "configure:11912: checking for $ac_func" >&5 |
afc31813 VZ |
11912 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11913 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11914 | else | |
11915 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 11916 | #line 11917 "configure" |
10f2d63a | 11917 | #include "confdefs.h" |
afc31813 VZ |
11918 | /* System header to define __stub macros and hopefully few prototypes, |
11919 | which can conflict with char $ac_func(); below. */ | |
11920 | #include <assert.h> | |
11921 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11922 | /* We use char because int might match the return type of a gcc2 | |
11923 | builtin and then its argument prototype would still apply. */ | |
11924 | char $ac_func(); | |
11925 | ||
10f2d63a | 11926 | int main() { |
afc31813 VZ |
11927 | |
11928 | /* The GNU C library defines this for functions which it implements | |
11929 | to always fail with ENOSYS. Some functions are actually named | |
11930 | something starting with __ and the normal name is an alias. */ | |
11931 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11932 | choke me | |
11933 | #else | |
d6a55c4b | 11934 | $ac_func(); |
afc31813 VZ |
11935 | #endif |
11936 | ||
10f2d63a VZ |
11937 | ; return 0; } |
11938 | EOF | |
d6a55c4b | 11939 | if { (eval echo configure:11940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a | 11940 | rm -rf conftest* |
afc31813 | 11941 | eval "ac_cv_func_$ac_func=yes" |
10f2d63a VZ |
11942 | else |
11943 | echo "configure: failed program was:" >&5 | |
11944 | cat conftest.$ac_ext >&5 | |
11945 | rm -rf conftest* | |
afc31813 VZ |
11946 | eval "ac_cv_func_$ac_func=no" |
11947 | fi | |
11948 | rm -f conftest* | |
11949 | fi | |
11950 | ||
11951 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11952 | echo "$ac_t""yes" 1>&6 | |
11953 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11954 | cat >> confdefs.h <<EOF | |
11955 | #define $ac_tr_func 1 | |
11956 | EOF | |
3fcdd07b | 11957 | |
afc31813 VZ |
11958 | else |
11959 | echo "$ac_t""no" 1>&6 | |
11960 | fi | |
11961 | done | |
11962 | ||
11963 | ||
0470b1e6 VZ |
11964 | if test "$ac_cv_func_localtime" = "yes"; then |
11965 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
d6a55c4b | 11966 | echo "configure:11967: checking for tm_gmtoff in struct tm" >&5 |
0470b1e6 VZ |
11967 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
11968 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11969 | else | |
11970 | ||
11971 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 11972 | #line 11973 "configure" |
0470b1e6 VZ |
11973 | #include "confdefs.h" |
11974 | ||
11975 | #include <time.h> | |
11976 | ||
11977 | int main() { | |
11978 | ||
11979 | struct tm tm; | |
11980 | tm.tm_gmtoff++; | |
11981 | ||
11982 | ; return 0; } | |
11983 | EOF | |
d6a55c4b | 11984 | if { (eval echo configure:11985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0470b1e6 VZ |
11985 | rm -rf conftest* |
11986 | ||
f03a98d8 | 11987 | wx_cv_struct_tm_has_gmtoff=yes |
0470b1e6 VZ |
11988 | cat >> confdefs.h <<\EOF |
11989 | #define WX_GMTOFF_IN_TM 1 | |
11990 | EOF | |
11991 | ||
11992 | ||
11993 | else | |
11994 | echo "configure: failed program was:" >&5 | |
11995 | cat conftest.$ac_ext >&5 | |
11996 | rm -rf conftest* | |
11997 | wx_cv_struct_tm_has_gmtoff=no | |
11998 | ||
11999 | fi | |
12000 | rm -f conftest* | |
12001 | ||
12002 | fi | |
12003 | ||
12004 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
3fcdd07b VZ |
12005 | fi |
12006 | ||
12007 | for ac_func in gettimeofday ftime | |
12008 | do | |
12009 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d6a55c4b | 12010 | echo "configure:12011: checking for $ac_func" >&5 |
3fcdd07b VZ |
12011 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12012 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12013 | else | |
12014 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 12015 | #line 12016 "configure" |
3fcdd07b VZ |
12016 | #include "confdefs.h" |
12017 | /* System header to define __stub macros and hopefully few prototypes, | |
12018 | which can conflict with char $ac_func(); below. */ | |
12019 | #include <assert.h> | |
12020 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12021 | /* We use char because int might match the return type of a gcc2 | |
12022 | builtin and then its argument prototype would still apply. */ | |
12023 | char $ac_func(); | |
12024 | ||
12025 | int main() { | |
12026 | ||
12027 | /* The GNU C library defines this for functions which it implements | |
12028 | to always fail with ENOSYS. Some functions are actually named | |
12029 | something starting with __ and the normal name is an alias. */ | |
12030 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12031 | choke me | |
12032 | #else | |
d6a55c4b | 12033 | $ac_func(); |
3fcdd07b VZ |
12034 | #endif |
12035 | ||
12036 | ; return 0; } | |
12037 | EOF | |
d6a55c4b | 12038 | if { (eval echo configure:12039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3fcdd07b VZ |
12039 | rm -rf conftest* |
12040 | eval "ac_cv_func_$ac_func=yes" | |
12041 | else | |
12042 | echo "configure: failed program was:" >&5 | |
12043 | cat conftest.$ac_ext >&5 | |
12044 | rm -rf conftest* | |
12045 | eval "ac_cv_func_$ac_func=no" | |
12046 | fi | |
12047 | rm -f conftest* | |
12048 | fi | |
12049 | ||
12050 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12051 | echo "$ac_t""yes" 1>&6 | |
12052 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12053 | cat >> confdefs.h <<EOF | |
12054 | #define $ac_tr_func 1 | |
12055 | EOF | |
12056 | break | |
12057 | else | |
12058 | echo "$ac_t""no" 1>&6 | |
12059 | fi | |
12060 | done | |
12061 | ||
12062 | ||
12063 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
afc31813 | 12064 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 |
d6a55c4b | 12065 | echo "configure:12066: checking whether gettimeofday takes two arguments" >&5 |
afc31813 VZ |
12066 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
12067 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12068 | else | |
12069 | ||
12070 | ||
12071 | ac_ext=C | |
12072 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
12073 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12074 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12075 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12076 | cross_compiling=$ac_cv_prog_cxx_cross | |
12077 | ||
12078 | ||
12079 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 12080 | #line 12081 "configure" |
10f2d63a | 12081 | #include "confdefs.h" |
afc31813 VZ |
12082 | |
12083 | #include <sys/time.h> | |
12084 | #include <unistd.h> | |
12085 | ||
10f2d63a | 12086 | int main() { |
afc31813 VZ |
12087 | |
12088 | struct timeval tv; | |
12089 | struct timezone tz; | |
12090 | gettimeofday(&tv, &tz); | |
12091 | ||
10f2d63a VZ |
12092 | ; return 0; } |
12093 | EOF | |
d6a55c4b | 12094 | if { (eval echo configure:12095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a | 12095 | rm -rf conftest* |
afc31813 | 12096 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a VZ |
12097 | else |
12098 | echo "configure: failed program was:" >&5 | |
12099 | cat conftest.$ac_ext >&5 | |
12100 | rm -rf conftest* | |
12101 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 12102 | #line 12103 "configure" |
10f2d63a | 12103 | #include "confdefs.h" |
afc31813 VZ |
12104 | |
12105 | #include <sys/time.h> | |
12106 | #include <unistd.h> | |
12107 | ||
10f2d63a | 12108 | int main() { |
afc31813 VZ |
12109 | |
12110 | struct timeval tv; | |
12111 | gettimeofday(&tv); | |
12112 | ||
10f2d63a VZ |
12113 | ; return 0; } |
12114 | EOF | |
d6a55c4b | 12115 | if { (eval echo configure:12116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a | 12116 | rm -rf conftest* |
afc31813 | 12117 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a VZ |
12118 | else |
12119 | echo "configure: failed program was:" >&5 | |
12120 | cat conftest.$ac_ext >&5 | |
12121 | rm -rf conftest* | |
afc31813 VZ |
12122 | wx_cv_func_gettimeofday_has_2_args=unknown |
12123 | ||
10f2d63a VZ |
12124 | fi |
12125 | rm -f conftest* | |
afc31813 | 12126 | |
10f2d63a VZ |
12127 | fi |
12128 | rm -f conftest* | |
afc31813 | 12129 | ac_ext=c |
10f2d63a VZ |
12130 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
12131 | ac_cpp='$CPP $CPPFLAGS' | |
12132 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12133 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12134 | cross_compiling=$ac_cv_prog_cc_cross | |
12135 | ||
afc31813 VZ |
12136 | |
12137 | fi | |
12138 | ||
12139 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 12140 | |
afc31813 VZ |
12141 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
12142 | cat >> confdefs.h <<\EOF | |
12143 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
12144 | EOF | |
12145 | ||
12146 | fi | |
12147 | fi | |
12148 | ||
12149 | cat >> confdefs.h <<\EOF | |
12150 | #define wxUSE_TIMEDATE 1 | |
12151 | EOF | |
12152 | ||
12153 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
12154 | fi | |
12155 | ||
12156 | ||
b089607b VZ |
12157 | if test "$TOOLKIT" != "MSW"; then |
12158 | ||
afc31813 | 12159 | if test "$wxUSE_SOCKETS" = "yes"; then |
c63c7106 | 12160 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
d6a55c4b | 12161 | echo "configure:12162: checking for socket" >&5 |
c63c7106 VZ |
12162 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
12163 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12164 | else | |
12165 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 12166 | #line 12167 "configure" |
c63c7106 VZ |
12167 | #include "confdefs.h" |
12168 | /* System header to define __stub macros and hopefully few prototypes, | |
12169 | which can conflict with char socket(); below. */ | |
12170 | #include <assert.h> | |
12171 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12172 | /* We use char because int might match the return type of a gcc2 | |
12173 | builtin and then its argument prototype would still apply. */ | |
12174 | char socket(); | |
12175 | ||
12176 | int main() { | |
12177 | ||
12178 | /* The GNU C library defines this for functions which it implements | |
12179 | to always fail with ENOSYS. Some functions are actually named | |
12180 | something starting with __ and the normal name is an alias. */ | |
12181 | #if defined (__stub_socket) || defined (__stub___socket) | |
12182 | choke me | |
12183 | #else | |
d6a55c4b | 12184 | socket(); |
c63c7106 VZ |
12185 | #endif |
12186 | ||
12187 | ; return 0; } | |
12188 | EOF | |
d6a55c4b | 12189 | if { (eval echo configure:12190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c63c7106 VZ |
12190 | rm -rf conftest* |
12191 | eval "ac_cv_func_socket=yes" | |
12192 | else | |
12193 | echo "configure: failed program was:" >&5 | |
12194 | cat conftest.$ac_ext >&5 | |
12195 | rm -rf conftest* | |
12196 | eval "ac_cv_func_socket=no" | |
12197 | fi | |
12198 | rm -f conftest* | |
12199 | fi | |
12200 | ||
12201 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
12202 | echo "$ac_t""yes" 1>&6 | |
12203 | : | |
12204 | else | |
12205 | echo "$ac_t""no" 1>&6 | |
12206 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
d6a55c4b | 12207 | echo "configure:12208: checking for socket in -lsocket" >&5 |
c63c7106 VZ |
12208 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
12209 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12210 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12211 | else | |
12212 | ac_save_LIBS="$LIBS" | |
12213 | LIBS="-lsocket $LIBS" | |
12214 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 12215 | #line 12216 "configure" |
c63c7106 VZ |
12216 | #include "confdefs.h" |
12217 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12218 | /* We use char because int might match the return type of a gcc2 | |
12219 | builtin and then its argument prototype would still apply. */ | |
12220 | char socket(); | |
12221 | ||
12222 | int main() { | |
12223 | socket() | |
12224 | ; return 0; } | |
12225 | EOF | |
d6a55c4b | 12226 | if { (eval echo configure:12227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c63c7106 VZ |
12227 | rm -rf conftest* |
12228 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12229 | else | |
12230 | echo "configure: failed program was:" >&5 | |
12231 | cat conftest.$ac_ext >&5 | |
12232 | rm -rf conftest* | |
12233 | eval "ac_cv_lib_$ac_lib_var=no" | |
12234 | fi | |
12235 | rm -f conftest* | |
12236 | LIBS="$ac_save_LIBS" | |
12237 | ||
12238 | fi | |
12239 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12240 | echo "$ac_t""yes" 1>&6 | |
12241 | INET_LINK="$INET_LINK -lsocket" | |
c63c7106 VZ |
12242 | else |
12243 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
12244 | |
12245 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 | |
12246 | wxUSE_SOCKETS=no | |
12247 | ||
12248 | ||
c63c7106 VZ |
12249 | fi |
12250 | ||
12251 | ||
12252 | fi | |
12253 | ||
10f2d63a VZ |
12254 | fi |
12255 | ||
b089607b VZ |
12256 | fi |
12257 | ||
afc31813 | 12258 | if test "$wxUSE_SOCKETS" = "yes" ; then |
51a9faba | 12259 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 |
d6a55c4b | 12260 | echo "configure:12261: checking what is the type of the third argument of getsockname" >&5 |
51a9faba VZ |
12261 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
12262 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12263 | else | |
12264 | ||
12265 | ||
12266 | ac_ext=C | |
afc31813 VZ |
12267 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
12268 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12269 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12270 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12271 | cross_compiling=$ac_cv_prog_cxx_cross | |
12272 | ||
51a9faba VZ |
12273 | |
12274 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 12275 | #line 12276 "configure" |
afc31813 | 12276 | #include "confdefs.h" |
51a9faba | 12277 | |
3ace2e6d | 12278 | #include <sys/types.h> |
51a9faba VZ |
12279 | #include <sys/socket.h> |
12280 | ||
afc31813 | 12281 | int main() { |
51a9faba VZ |
12282 | |
12283 | socklen_t len; | |
12284 | getsockname(0, 0, &len); | |
12285 | ||
afc31813 VZ |
12286 | ; return 0; } |
12287 | EOF | |
d6a55c4b | 12288 | if { (eval echo configure:12289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
afc31813 | 12289 | rm -rf conftest* |
51a9faba | 12290 | wx_cv_type_getsockname3=socklen_t |
afc31813 VZ |
12291 | else |
12292 | echo "configure: failed program was:" >&5 | |
12293 | cat conftest.$ac_ext >&5 | |
12294 | rm -rf conftest* | |
12295 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 12296 | #line 12297 "configure" |
afc31813 | 12297 | #include "confdefs.h" |
51a9faba | 12298 | |
3ace2e6d | 12299 | #include <sys/types.h> |
51a9faba VZ |
12300 | #include <sys/socket.h> |
12301 | ||
afc31813 | 12302 | int main() { |
51a9faba VZ |
12303 | |
12304 | size_t len; | |
12305 | getsockname(0, 0, &len); | |
12306 | ||
afc31813 VZ |
12307 | ; return 0; } |
12308 | EOF | |
d6a55c4b | 12309 | if { (eval echo configure:12310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
afc31813 | 12310 | rm -rf conftest* |
51a9faba | 12311 | wx_cv_type_getsockname3=size_t |
afc31813 VZ |
12312 | else |
12313 | echo "configure: failed program was:" >&5 | |
12314 | cat conftest.$ac_ext >&5 | |
12315 | rm -rf conftest* | |
12316 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 12317 | #line 12318 "configure" |
afc31813 | 12318 | #include "confdefs.h" |
51a9faba | 12319 | |
3ace2e6d | 12320 | #include <sys/types.h> |
51a9faba VZ |
12321 | #include <sys/socket.h> |
12322 | ||
afc31813 | 12323 | int main() { |
51a9faba VZ |
12324 | |
12325 | int len; | |
12326 | getsockname(0, 0, &len); | |
12327 | ||
afc31813 VZ |
12328 | ; return 0; } |
12329 | EOF | |
d6a55c4b | 12330 | if { (eval echo configure:12331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
afc31813 | 12331 | rm -rf conftest* |
51a9faba | 12332 | wx_cv_type_getsockname3=int |
afc31813 VZ |
12333 | else |
12334 | echo "configure: failed program was:" >&5 | |
12335 | cat conftest.$ac_ext >&5 | |
3ace2e6d SN |
12336 | rm -rf conftest* |
12337 | wx_cv_type_getsockname3=unknown | |
12338 | ||
afc31813 VZ |
12339 | fi |
12340 | rm -f conftest* | |
51a9faba | 12341 | |
afc31813 VZ |
12342 | fi |
12343 | rm -f conftest* | |
51a9faba | 12344 | |
afc31813 VZ |
12345 | fi |
12346 | rm -f conftest* | |
51a9faba VZ |
12347 | |
12348 | ac_ext=c | |
afc31813 VZ |
12349 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
12350 | ac_cpp='$CPP $CPPFLAGS' | |
12351 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12352 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12353 | cross_compiling=$ac_cv_prog_cc_cross | |
12354 | ||
51a9faba VZ |
12355 | |
12356 | fi | |
12357 | ||
12358 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
12359 | ||
12360 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
12361 | wxUSE_SOCKETS=no | |
12362 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 | |
12363 | else | |
12364 | cat >> confdefs.h <<EOF | |
12365 | #define SOCKLEN_T $wx_cv_type_getsockname3 | |
12366 | EOF | |
12367 | ||
12368 | fi | |
12369 | fi | |
afc31813 | 12370 | |
51a9faba | 12371 | if test "$wxUSE_SOCKETS" = "yes" ; then |
afc31813 VZ |
12372 | cat >> confdefs.h <<\EOF |
12373 | #define wxUSE_SOCKETS 1 | |
12374 | EOF | |
12375 | ||
70f7a477 | 12376 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
12377 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol" |
12378 | fi | |
12379 | ||
10f2d63a | 12380 | |
b089607b VZ |
12381 | if test "$TOOLKIT" != "MSW"; then |
12382 | ||
10f2d63a VZ |
12383 | if test "$wxUSE_JOYSTICK" = 1; then |
12384 | for ac_hdr in linux/joystick.h | |
12385 | do | |
12386 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
12387 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d6a55c4b | 12388 | echo "configure:12389: checking for $ac_hdr" >&5 |
10f2d63a VZ |
12389 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12390 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12391 | else | |
12392 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 12393 | #line 12394 "configure" |
10f2d63a VZ |
12394 | #include "confdefs.h" |
12395 | #include <$ac_hdr> | |
12396 | EOF | |
12397 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d6a55c4b | 12398 | { (eval echo configure:12399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
12399 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12400 | if test -z "$ac_err"; then | |
12401 | rm -rf conftest* | |
12402 | eval "ac_cv_header_$ac_safe=yes" | |
12403 | else | |
12404 | echo "$ac_err" >&5 | |
12405 | echo "configure: failed program was:" >&5 | |
12406 | cat conftest.$ac_ext >&5 | |
12407 | rm -rf conftest* | |
12408 | eval "ac_cv_header_$ac_safe=no" | |
12409 | fi | |
12410 | rm -f conftest* | |
12411 | fi | |
12412 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12413 | echo "$ac_t""yes" 1>&6 | |
12414 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12415 | cat >> confdefs.h <<EOF | |
12416 | #define $ac_tr_hdr 1 | |
12417 | EOF | |
12418 | ||
12419 | else | |
12420 | echo "$ac_t""no" 1>&6 | |
12421 | fi | |
12422 | done | |
12423 | ||
b089607b VZ |
12424 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
12425 | wxUSE_JOYSTICK=0 | |
12426 | echo "configure: warning: Joystick not supported yb this system" 1>&2 | |
12427 | fi | |
12428 | fi | |
12429 | ||
12430 | fi | |
12431 | ||
12432 | if test "$wxUSE_JOYSTICK" = 1; then | |
10f2d63a VZ |
12433 | cat >> confdefs.h <<\EOF |
12434 | #define wxUSE_JOYSTICK 1 | |
12435 | EOF | |
12436 | ||
12437 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
10f2d63a VZ |
12438 | fi |
12439 | ||
12440 | ||
b089607b VZ |
12441 | if test "$TOOLKIT" != "MSW"; then |
12442 | ||
10f2d63a VZ |
12443 | HAVE_DL_FUNCS=0 |
12444 | HAVE_SHL_FUNCS=0 | |
12445 | if test "$wxUSE_DYNLIB_CLASS" = "yes"; then | |
12446 | for ac_func in dlopen | |
12447 | do | |
12448 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d6a55c4b | 12449 | echo "configure:12450: checking for $ac_func" >&5 |
10f2d63a VZ |
12450 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12451 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12452 | else | |
12453 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 12454 | #line 12455 "configure" |
10f2d63a VZ |
12455 | #include "confdefs.h" |
12456 | /* System header to define __stub macros and hopefully few prototypes, | |
12457 | which can conflict with char $ac_func(); below. */ | |
12458 | #include <assert.h> | |
12459 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12460 | /* We use char because int might match the return type of a gcc2 | |
12461 | builtin and then its argument prototype would still apply. */ | |
12462 | char $ac_func(); | |
12463 | ||
12464 | int main() { | |
12465 | ||
12466 | /* The GNU C library defines this for functions which it implements | |
12467 | to always fail with ENOSYS. Some functions are actually named | |
12468 | something starting with __ and the normal name is an alias. */ | |
12469 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12470 | choke me | |
12471 | #else | |
d6a55c4b | 12472 | $ac_func(); |
10f2d63a VZ |
12473 | #endif |
12474 | ||
12475 | ; return 0; } | |
12476 | EOF | |
d6a55c4b | 12477 | if { (eval echo configure:12478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
12478 | rm -rf conftest* |
12479 | eval "ac_cv_func_$ac_func=yes" | |
12480 | else | |
12481 | echo "configure: failed program was:" >&5 | |
12482 | cat conftest.$ac_ext >&5 | |
12483 | rm -rf conftest* | |
12484 | eval "ac_cv_func_$ac_func=no" | |
12485 | fi | |
12486 | rm -f conftest* | |
12487 | fi | |
12488 | ||
12489 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12490 | echo "$ac_t""yes" 1>&6 | |
12491 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12492 | cat >> confdefs.h <<EOF | |
12493 | #define $ac_tr_func 1 | |
12494 | EOF | |
12495 | ||
12496 | cat >> confdefs.h <<\EOF | |
12497 | #define HAVE_DLOPEN 1 | |
12498 | EOF | |
12499 | ||
12500 | HAVE_DL_FUNCS=1 | |
12501 | ||
12502 | else | |
12503 | echo "$ac_t""no" 1>&6 | |
12504 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
d6a55c4b | 12505 | echo "configure:12506: checking for dlopen in -ldl" >&5 |
10f2d63a VZ |
12506 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
12507 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12508 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12509 | else | |
12510 | ac_save_LIBS="$LIBS" | |
12511 | LIBS="-ldl $LIBS" | |
12512 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 12513 | #line 12514 "configure" |
10f2d63a VZ |
12514 | #include "confdefs.h" |
12515 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12516 | /* We use char because int might match the return type of a gcc2 | |
12517 | builtin and then its argument prototype would still apply. */ | |
12518 | char dlopen(); | |
12519 | ||
12520 | int main() { | |
12521 | dlopen() | |
12522 | ; return 0; } | |
12523 | EOF | |
d6a55c4b | 12524 | if { (eval echo configure:12525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
12525 | rm -rf conftest* |
12526 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12527 | else | |
12528 | echo "configure: failed program was:" >&5 | |
12529 | cat conftest.$ac_ext >&5 | |
12530 | rm -rf conftest* | |
12531 | eval "ac_cv_lib_$ac_lib_var=no" | |
12532 | fi | |
12533 | rm -f conftest* | |
12534 | LIBS="$ac_save_LIBS" | |
12535 | ||
12536 | fi | |
12537 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12538 | echo "$ac_t""yes" 1>&6 | |
12539 | ||
12540 | cat >> confdefs.h <<\EOF | |
12541 | #define HAVE_DLOPEN 1 | |
12542 | EOF | |
12543 | ||
12544 | HAVE_DL_FUNCS=1 | |
12545 | LIBS="$LIBS -ldl" | |
12546 | ||
12547 | else | |
12548 | echo "$ac_t""no" 1>&6 | |
12549 | ||
12550 | for ac_func in shl_load | |
12551 | do | |
12552 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
d6a55c4b | 12553 | echo "configure:12554: checking for $ac_func" >&5 |
10f2d63a VZ |
12554 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12555 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12556 | else | |
12557 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 12558 | #line 12559 "configure" |
10f2d63a VZ |
12559 | #include "confdefs.h" |
12560 | /* System header to define __stub macros and hopefully few prototypes, | |
12561 | which can conflict with char $ac_func(); below. */ | |
12562 | #include <assert.h> | |
12563 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12564 | /* We use char because int might match the return type of a gcc2 | |
12565 | builtin and then its argument prototype would still apply. */ | |
12566 | char $ac_func(); | |
12567 | ||
12568 | int main() { | |
12569 | ||
12570 | /* The GNU C library defines this for functions which it implements | |
12571 | to always fail with ENOSYS. Some functions are actually named | |
12572 | something starting with __ and the normal name is an alias. */ | |
12573 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12574 | choke me | |
12575 | #else | |
d6a55c4b | 12576 | $ac_func(); |
10f2d63a VZ |
12577 | #endif |
12578 | ||
12579 | ; return 0; } | |
12580 | EOF | |
d6a55c4b | 12581 | if { (eval echo configure:12582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
12582 | rm -rf conftest* |
12583 | eval "ac_cv_func_$ac_func=yes" | |
12584 | else | |
12585 | echo "configure: failed program was:" >&5 | |
12586 | cat conftest.$ac_ext >&5 | |
12587 | rm -rf conftest* | |
12588 | eval "ac_cv_func_$ac_func=no" | |
12589 | fi | |
12590 | rm -f conftest* | |
12591 | fi | |
12592 | ||
12593 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12594 | echo "$ac_t""yes" 1>&6 | |
12595 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12596 | cat >> confdefs.h <<EOF | |
12597 | #define $ac_tr_func 1 | |
12598 | EOF | |
12599 | ||
12600 | cat >> confdefs.h <<\EOF | |
12601 | #define HAVE_SHL_LOAD 1 | |
12602 | EOF | |
12603 | ||
12604 | HAVE_SHL_FUNCS=1 | |
12605 | ||
12606 | else | |
12607 | echo "$ac_t""no" 1>&6 | |
12608 | fi | |
12609 | done | |
12610 | ||
12611 | ||
12612 | fi | |
12613 | ||
12614 | ||
12615 | fi | |
12616 | done | |
12617 | ||
12618 | ||
12619 | if test "$HAVE_DL_FUNCS" = 0; then | |
12620 | if test "$HAVE_SHL_FUNCS" = 0; then | |
12621 | if test "$USE_UNIX" = 1; then | |
b12915c1 | 12622 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 |
10f2d63a VZ |
12623 | wxUSE_DYNLIB_CLASS=no |
12624 | else | |
b12915c1 | 12625 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 |
10f2d63a VZ |
12626 | fi |
12627 | fi | |
12628 | fi | |
12629 | fi | |
12630 | ||
b089607b VZ |
12631 | fi |
12632 | ||
10f2d63a | 12633 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
b12915c1 | 12634 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12635 | #define wxUSE_DYNLIB_CLASS 1 |
12636 | EOF | |
12637 | ||
b12915c1 VZ |
12638 | else |
12639 | wxUSE_ODBC=no | |
12640 | wxUSE_SERIAL=no | |
10f2d63a VZ |
12641 | fi |
12642 | ||
12643 | ||
12644 | if test "$wxUSE_UNICODE" = "yes" ; then | |
12645 | cat >> confdefs.h <<\EOF | |
12646 | #define wxUSE_UNICODE 1 | |
12647 | EOF | |
12648 | ||
12649 | fi | |
12650 | ||
12651 | if test "$wxUSE_WCSRTOMBS" = "yes" ; then | |
12652 | cat >> confdefs.h <<\EOF | |
12653 | #define wxUSE_WCSRTOMBS 1 | |
12654 | EOF | |
12655 | ||
12656 | fi | |
12657 | ||
12658 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
12659 | cat >> confdefs.h <<\EOF | |
12660 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
12661 | EOF | |
12662 | ||
12663 | fi | |
12664 | ||
12665 | ||
b12915c1 VZ |
12666 | if test "$wxUSE_SERIAL" = "yes" ; then |
12667 | cat >> confdefs.h <<\EOF | |
12668 | #define wxUSE_SERIAL 1 | |
12669 | EOF | |
12670 | ||
12671 | fi | |
12672 | ||
12673 | ||
10f2d63a VZ |
12674 | IODBC_C_SRC="" |
12675 | if test "$wxUSE_ODBC" = "yes" ; then | |
12676 | cat >> confdefs.h <<\EOF | |
12677 | #define wxUSE_ODBC 1 | |
12678 | EOF | |
12679 | ||
12680 | WXODBCFLAG="-D_IODBC_" | |
12681 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
12682 | IODBCOBJS="\$(IODBC_OBJS)" | |
12683 | else | |
12684 | IODBCOBJS= | |
12685 | fi | |
12686 | ||
12687 | ||
12688 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
12689 | cat >> confdefs.h <<\EOF | |
12690 | #define wxUSE_POSTSCRIPT 1 | |
12691 | EOF | |
12692 | ||
12693 | fi | |
12694 | ||
12695 | cat >> confdefs.h <<\EOF | |
12696 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
12697 | EOF | |
12698 | ||
12699 | ||
12700 | cat >> confdefs.h <<\EOF | |
12701 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
12702 | EOF | |
12703 | ||
12704 | ||
12705 | ||
12706 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
12707 | cat >> confdefs.h <<\EOF | |
12708 | #define wxUSE_CONSTRAINTS 1 | |
12709 | EOF | |
12710 | ||
12711 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
12712 | fi | |
12713 | ||
12714 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
12715 | cat >> confdefs.h <<\EOF | |
12716 | #define wxUSE_MDI_ARCHITECTURE 1 | |
12717 | EOF | |
12718 | ||
12719 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" | |
12720 | fi | |
12721 | ||
12722 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
12723 | cat >> confdefs.h <<\EOF | |
12724 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
12725 | EOF | |
12726 | ||
12727 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
12728 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
12729 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
12730 | fi | |
12731 | fi | |
12732 | ||
12733 | if test "$wxUSE_HELP" = "yes"; then | |
12734 | cat >> confdefs.h <<\EOF | |
12735 | #define wxUSE_HELP 1 | |
12736 | EOF | |
12737 | ||
12738 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
12739 | fi | |
12740 | ||
12741 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
12742 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
12743 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 | |
12744 | else | |
12745 | cat >> confdefs.h <<\EOF | |
12746 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
12747 | EOF | |
12748 | ||
12749 | fi | |
12750 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
12751 | fi | |
12752 | ||
12753 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
12754 | cat >> confdefs.h <<\EOF | |
12755 | #define wxUSE_PROLOGIO 1 | |
12756 | EOF | |
12757 | ||
12758 | fi | |
12759 | ||
12760 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
12761 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
12762 | cat >> confdefs.h <<\EOF | |
12763 | #define wxUSE_RESOURCES 1 | |
12764 | EOF | |
12765 | ||
12766 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" | |
12767 | else | |
12768 | echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2 | |
12769 | fi | |
12770 | fi | |
12771 | ||
12772 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
12773 | cat >> confdefs.h <<\EOF | |
12774 | #define wxUSE_X_RESOURCES 1 | |
12775 | EOF | |
12776 | ||
12777 | fi | |
12778 | ||
12779 | ||
12780 | if test "$wxUSE_IPC" = "yes"; then | |
12781 | cat >> confdefs.h <<\EOF | |
12782 | #define wxUSE_IPC 1 | |
12783 | EOF | |
12784 | ||
12785 | fi | |
12786 | ||
12787 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
12788 | cat >> confdefs.h <<\EOF | |
12789 | #define wxUSE_CLIPBOARD 1 | |
12790 | EOF | |
12791 | ||
12792 | fi | |
12793 | ||
12794 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
12795 | if test "$wxUSE_GTK" = 1; then | |
12796 | if test "$WXGTK12" != 1; then | |
12797 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2 | |
12798 | wxUSE_DRAG_AND_DROP=no | |
12799 | fi | |
12800 | fi | |
12801 | ||
12802 | if test "$wxUSE_MOTIF" = 1; then | |
12803 | echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2 | |
12804 | wxUSE_DRAG_AND_DROP=no | |
12805 | fi | |
12806 | ||
12807 | if test "$USE_WIN32" = 1; then | |
12808 | for ac_hdr in ole2.h | |
12809 | do | |
12810 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
12811 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
d6a55c4b | 12812 | echo "configure:12813: checking for $ac_hdr" >&5 |
10f2d63a VZ |
12813 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12814 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12815 | else | |
12816 | cat > conftest.$ac_ext <<EOF | |
d6a55c4b | 12817 | #line 12818 "configure" |
10f2d63a VZ |
12818 | #include "confdefs.h" |
12819 | #include <$ac_hdr> | |
12820 | EOF | |
12821 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
d6a55c4b | 12822 | { (eval echo configure:12823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
12823 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12824 | if test -z "$ac_err"; then | |
12825 | rm -rf conftest* | |
12826 | eval "ac_cv_header_$ac_safe=yes" | |
12827 | else | |
12828 | echo "$ac_err" >&5 | |
12829 | echo "configure: failed program was:" >&5 | |
12830 | cat conftest.$ac_ext >&5 | |
12831 | rm -rf conftest* | |
12832 | eval "ac_cv_header_$ac_safe=no" | |
12833 | fi | |
12834 | rm -f conftest* | |
12835 | fi | |
12836 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12837 | echo "$ac_t""yes" 1>&6 | |
12838 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12839 | cat >> confdefs.h <<EOF | |
12840 | #define $ac_tr_hdr 1 | |
12841 | EOF | |
12842 | ||
12843 | else | |
12844 | echo "$ac_t""no" 1>&6 | |
12845 | fi | |
12846 | done | |
12847 | ||
12848 | if test "x$HAVE_OLE2_H" = x ; then | |
12849 | echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2 | |
12850 | wxUSE_DRAG_AND_DROP=no | |
12851 | fi | |
12852 | fi | |
12853 | ||
12854 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
12855 | cat >> confdefs.h <<\EOF | |
12856 | #define wxUSE_DRAG_AND_DROP 1 | |
12857 | EOF | |
12858 | ||
12859 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
12860 | fi | |
12861 | ||
12862 | fi | |
12863 | ||
12864 | if test "$wxUSE_SPLINES" = "yes" ; then | |
12865 | cat >> confdefs.h <<\EOF | |
12866 | #define wxUSE_SPLINES 1 | |
12867 | EOF | |
12868 | ||
12869 | fi | |
12870 | ||
12871 | ||
12872 | if test "$wxUSE_ACCEL" = "yes"; then | |
12873 | cat >> confdefs.h <<\EOF | |
12874 | #define wxUSE_ACCEL 1 | |
12875 | EOF | |
12876 | ||
12877 | fi | |
12878 | ||
12879 | if test "$wxUSE_CARET" = "yes"; then | |
12880 | cat >> confdefs.h <<\EOF | |
12881 | #define wxUSE_CARET 1 | |
12882 | EOF | |
12883 | ||
12884 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
12885 | fi | |
12886 | ||
12887 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
12888 | cat >> confdefs.h <<\EOF | |
12889 | #define wxUSE_COMBOBOX 1 | |
12890 | EOF | |
12891 | ||
12892 | fi | |
12893 | ||
12894 | if test "$wxUSE_CHOICE" = "yes"; then | |
12895 | cat >> confdefs.h <<\EOF | |
12896 | #define wxUSE_CHOICE 1 | |
12897 | EOF | |
12898 | ||
12899 | fi | |
12900 | ||
12901 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
12902 | cat >> confdefs.h <<\EOF | |
12903 | #define wxUSE_BMPBUTTON 1 | |
12904 | EOF | |
12905 | ||
12906 | fi | |
12907 | ||
12908 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
12909 | cat >> confdefs.h <<\EOF | |
12910 | #define wxUSE_CHECKBOX 1 | |
12911 | EOF | |
12912 | ||
12913 | fi | |
12914 | ||
12915 | if test "$wxUSE_CHECKLST" = "yes"; then | |
12916 | cat >> confdefs.h <<\EOF | |
12917 | #define wxUSE_CHECKLISTBOX 1 | |
12918 | EOF | |
12919 | ||
12920 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
12921 | fi | |
12922 | ||
12923 | if test "$wxUSE_GAUGE" = "yes"; then | |
12924 | cat >> confdefs.h <<\EOF | |
12925 | #define wxUSE_GAUGE 1 | |
12926 | EOF | |
12927 | ||
12928 | fi | |
12929 | ||
d6a55c4b VZ |
12930 | if test "$wxUSE_NEW_GRID" = "yes"; then |
12931 | wxUSE_GRID="yes" | |
10f2d63a | 12932 | cat >> confdefs.h <<\EOF |
d6a55c4b | 12933 | #define wxUSE_NEW_GRID 1 |
10f2d63a VZ |
12934 | EOF |
12935 | ||
d6a55c4b | 12936 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
12937 | fi |
12938 | ||
d6a55c4b | 12939 | if test "$wxUSE_GRID" = "yes"; then |
10f2d63a | 12940 | cat >> confdefs.h <<\EOF |
d6a55c4b | 12941 | #define wxUSE_GRID 1 |
10f2d63a VZ |
12942 | EOF |
12943 | ||
d6a55c4b | 12944 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
12945 | fi |
12946 | ||
12947 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
12948 | cat >> confdefs.h <<\EOF | |
12949 | #define wxUSE_IMAGLIST 1 | |
12950 | EOF | |
12951 | ||
12952 | fi | |
12953 | ||
12954 | if test "$wxUSE_LISTBOX" = "yes"; then | |
12955 | cat >> confdefs.h <<\EOF | |
12956 | #define wxUSE_LISTBOX 1 | |
12957 | EOF | |
12958 | ||
12959 | fi | |
12960 | ||
12961 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
12962 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
12963 | cat >> confdefs.h <<\EOF | |
12964 | #define wxUSE_LISTCTRL 1 | |
12965 | EOF | |
12966 | ||
12967 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
12968 | else | |
12969 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 | |
12970 | fi | |
12971 | fi | |
12972 | ||
12973 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
12974 | cat >> confdefs.h <<\EOF | |
12975 | #define wxUSE_NOTEBOOK 1 | |
12976 | EOF | |
12977 | ||
12978 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
12979 | fi | |
12980 | ||
12981 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
12982 | cat >> confdefs.h <<\EOF | |
12983 | #define wxUSE_RADIOBOX 1 | |
12984 | EOF | |
12985 | ||
12986 | fi | |
12987 | ||
12988 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
12989 | cat >> confdefs.h <<\EOF | |
12990 | #define wxUSE_RADIOBTN 1 | |
12991 | EOF | |
12992 | ||
12993 | fi | |
12994 | ||
12995 | if test "$wxUSE_SASH" = "yes"; then | |
12996 | cat >> confdefs.h <<\EOF | |
12997 | #define wxUSE_SASH 1 | |
12998 | EOF | |
12999 | ||
13000 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
13001 | fi | |
13002 | ||
13003 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
13004 | cat >> confdefs.h <<\EOF | |
13005 | #define wxUSE_SCROLLBAR 1 | |
13006 | EOF | |
13007 | ||
741a9306 | 13008 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
13009 | fi |
13010 | ||
13011 | if test "$wxUSE_SLIDER" = "yes"; then | |
13012 | cat >> confdefs.h <<\EOF | |
13013 | #define wxUSE_SLIDER 1 | |
13014 | EOF | |
13015 | ||
13016 | fi | |
13017 | ||
13018 | if test "$wxUSE_SPINBTN" = "yes"; then | |
13019 | cat >> confdefs.h <<\EOF | |
13020 | #define wxUSE_SPINBTN 1 | |
13021 | EOF | |
13022 | ||
13023 | fi | |
13024 | ||
56cfaa52 RR |
13025 | if test "$wxUSE_SPINCTRL" = "yes"; then |
13026 | cat >> confdefs.h <<\EOF | |
13027 | #define wxUSE_SPINCTRL 1 | |
13028 | EOF | |
13029 | ||
13030 | fi | |
13031 | ||
10f2d63a VZ |
13032 | if test "$wxUSE_SPLITTER" = "yes"; then |
13033 | cat >> confdefs.h <<\EOF | |
13034 | #define wxUSE_SPLITTER 1 | |
13035 | EOF | |
13036 | ||
13037 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
13038 | fi | |
13039 | ||
13040 | if test "$wxUSE_STATBMP" = "yes"; then | |
13041 | cat >> confdefs.h <<\EOF | |
13042 | #define wxUSE_STATBMP 1 | |
13043 | EOF | |
13044 | ||
13045 | fi | |
13046 | ||
13047 | if test "$wxUSE_STATBOX" = "yes"; then | |
13048 | cat >> confdefs.h <<\EOF | |
13049 | #define wxUSE_STATBOX 1 | |
13050 | EOF | |
13051 | ||
13052 | fi | |
13053 | ||
13054 | if test "$wxUSE_STATLINE" = "yes"; then | |
13055 | if test "$wxUSE_WINE" = 1 ; then | |
13056 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 | |
13057 | else | |
13058 | cat >> confdefs.h <<\EOF | |
13059 | #define wxUSE_STATLINE 1 | |
13060 | EOF | |
13061 | ||
13062 | fi | |
13063 | fi | |
13064 | ||
13065 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
13066 | cat >> confdefs.h <<\EOF | |
13067 | #define wxUSE_STATUSBAR 1 | |
13068 | EOF | |
13069 | ||
2286341c VZ |
13070 | |
13071 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
10f2d63a VZ |
13072 | fi |
13073 | ||
13074 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
13075 | cat >> confdefs.h <<\EOF | |
13076 | #define wxUSE_TAB_DIALOG 1 | |
13077 | EOF | |
13078 | ||
13079 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
13080 | fi | |
13081 | ||
360d6699 VZ |
13082 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
13083 | cat >> confdefs.h <<\EOF | |
13084 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
13085 | EOF | |
13086 | ||
13087 | wxUSE_TOOLBAR="yes" | |
13088 | fi | |
13089 | ||
10f2d63a VZ |
13090 | if test "$wxUSE_TOOLBAR" = "yes"; then |
13091 | cat >> confdefs.h <<\EOF | |
13092 | #define wxUSE_TOOLBAR 1 | |
13093 | EOF | |
13094 | ||
360d6699 VZ |
13095 | |
13096 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
13097 | wxUSE_TOOLBAR_NATIVE="yes" | |
13098 | fi | |
13099 | ||
10f2d63a VZ |
13100 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" |
13101 | fi | |
13102 | ||
360d6699 VZ |
13103 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
13104 | cat >> confdefs.h <<\EOF | |
13105 | #define wxUSE_TOOLBAR_NATIVE 1 | |
13106 | EOF | |
13107 | ||
13108 | fi | |
13109 | ||
10f2d63a VZ |
13110 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
13111 | if test "$wxUSE_MOTIF" = 1; then | |
13112 | echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2 | |
13113 | else | |
13114 | if test "$wxUSE_WINE" = 1; then | |
13115 | echo "configure: warning: wxTooltip not supported under WINE" 1>&2 | |
13116 | else | |
13117 | cat >> confdefs.h <<\EOF | |
13118 | #define wxUSE_TOOLTIPS 1 | |
13119 | EOF | |
13120 | ||
13121 | fi | |
13122 | fi | |
13123 | fi | |
13124 | ||
13125 | if test "$wxUSE_TREECTRL" = "yes"; then | |
13126 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
13127 | cat >> confdefs.h <<\EOF | |
13128 | #define wxUSE_TREECTRL 1 | |
13129 | EOF | |
13130 | ||
13131 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
13132 | else | |
13133 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 | |
13134 | fi | |
13135 | fi | |
13136 | ||
13137 | ||
13138 | ||
13139 | if test "$wxUSE_METAFILE" = "yes"; then | |
13140 | cat >> confdefs.h <<\EOF | |
13141 | #define wxUSE_METAFILE 1 | |
13142 | EOF | |
13143 | ||
13144 | fi | |
13145 | ||
13146 | if test "$wxUSE_DIRDLG" = "yes"; then | |
13147 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
13148 | echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2 | |
13149 | else | |
13150 | if test "$wxUSE_TREECTRL" != "yes"; then | |
13151 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
13152 | else | |
13153 | cat >> confdefs.h <<\EOF | |
13154 | #define wxUSE_DIRDLG 1 | |
13155 | EOF | |
13156 | ||
13157 | fi | |
13158 | fi | |
13159 | fi | |
13160 | ||
13161 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
13162 | cat >> confdefs.h <<\EOF | |
13163 | #define wxUSE_TEXTDLG 1 | |
13164 | EOF | |
13165 | ||
13166 | fi | |
13167 | ||
13168 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
13169 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
13170 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
13171 | else | |
13172 | cat >> confdefs.h <<\EOF | |
13173 | #define wxUSE_STARTUP_TIPS 1 | |
13174 | EOF | |
13175 | ||
13176 | fi | |
13177 | fi | |
13178 | ||
13179 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
13180 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
13181 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
13182 | else | |
13183 | cat >> confdefs.h <<\EOF | |
13184 | #define wxUSE_PROGRESSDLG 1 | |
13185 | EOF | |
13186 | ||
13187 | fi | |
13188 | fi | |
13189 | ||
13190 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
13191 | cat >> confdefs.h <<\EOF | |
13192 | #define wxUSE_MINIFRAME 1 | |
13193 | EOF | |
13194 | ||
13195 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
13196 | fi | |
13197 | ||
13198 | if test "$wxUSE_HTML" = "yes"; then | |
13199 | cat >> confdefs.h <<\EOF | |
13200 | #define wxUSE_HTML 1 | |
13201 | EOF | |
13202 | ||
13203 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
13204 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html" | |
13205 | fi | |
13206 | ||
13207 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
13208 | cat >> confdefs.h <<\EOF | |
13209 | #define wxUSE_VALIDATORS 1 | |
13210 | EOF | |
13211 | ||
13212 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
13213 | fi | |
13214 | ||
13215 | if test "$wxUSE_GIF" = "yes" ; then | |
13216 | cat >> confdefs.h <<\EOF | |
13217 | #define wxUSE_GIF 1 | |
13218 | EOF | |
13219 | ||
13220 | fi | |
13221 | ||
13222 | if test "$wxUSE_PCX" = "yes" ; then | |
13223 | cat >> confdefs.h <<\EOF | |
13224 | #define wxUSE_PCX 1 | |
13225 | EOF | |
13226 | ||
13227 | fi | |
13228 | ||
13229 | if test "$wxUSE_PNM" = "yes" ; then | |
13230 | cat >> confdefs.h <<\EOF | |
13231 | #define wxUSE_PNM 1 | |
13232 | EOF | |
13233 | ||
13234 | fi | |
13235 | ||
13236 | ||
aaa37c0d VZ |
13237 | OSINFO=`uname -s -r -m` |
13238 | OSINFO="\"$OSINFO\"" | |
13239 | cat >> confdefs.h <<EOF | |
13240 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
13241 | EOF | |
13242 | ||
13243 | ||
13244 | ||
10f2d63a VZ |
13245 | GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $LIBPNG_LINK $ZLIB_LINK $TOOLKIT_LINK" |
13246 | ||
c63c7106 | 13247 | EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK" |
10f2d63a VZ |
13248 | if test "$wxUSE_GUI" = "yes"; then |
13249 | EXTRA_LIBS="$EXTRA_LIBS $GUILIBS" | |
13250 | fi | |
13251 | ||
13252 | LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS" | |
13253 | ||
c7a2bf27 | 13254 | INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE" |
10f2d63a VZ |
13255 | |
13256 | if test "$GXX" = yes ; then | |
13257 | CXXWARNINGS="-Wall" | |
d6a55c4b | 13258 | fi |
10f2d63a VZ |
13259 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" |
13260 | ||
13261 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS | sed 's/ \\+/ /g'` | |
13262 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
13263 | ||
e694c22c VZ |
13264 | LDFLAGS="$LDFLAGS $PROFILE" |
13265 | ||
10f2d63a VZ |
13266 | if test "$wxUSE_GUI" = "yes"; then |
13267 | ||
70f7a477 VZ |
13268 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs drawing dynamic \ |
13269 | font fractal image minimal richedit" | |
b12915c1 | 13270 | |
88d3a15c | 13271 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" |
10f2d63a VZ |
13272 | else |
13273 | SAMPLES_SUBDIRS="" | |
13274 | fi | |
13275 | ||
ec14dd32 VZ |
13276 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" |
13277 | ||
13278 | ||
13279 | ||
10f2d63a VZ |
13280 | |
13281 | ||
13282 | ||
13283 | ||
13284 | ||
13285 | ||
13286 | ||
13287 | ||
13288 | ||
13289 | ||
13290 | ||
13291 | ||
13292 | ||
13293 | ||
13294 | ||
13295 | ||
13296 | ||
13297 | ||
13298 | ||
13299 | ||
13300 | ||
13301 | ||
13302 | ||
13303 | ||
13304 | ||
13305 | ||
13306 | ||
13307 | ||
13308 | ||
13309 | ||
13310 | ||
13311 | ||
13312 | ||
13313 | ||
13314 | ||
13315 | ||
13316 | ||
13317 | ||
13318 | ||
13319 | ||
13320 | ||
13321 | ||
13322 | ||
13323 | ||
13324 | ||
13325 | ||
13326 | ||
13327 | ||
13328 | ||
13329 | ||
13330 | ||
13331 | ||
1d62a8b4 | 13332 | |
e694c22c | 13333 | |
b12915c1 | 13334 | |
2224580a VZ |
13335 | |
13336 | ||
13337 | ||
13338 | ||
dad6c0ea VZ |
13339 | |
13340 | ||
caa2c79b | 13341 | |
10f2d63a VZ |
13342 | |
13343 | ||
13344 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
d6a55c4b | 13345 | echo "configure:13346: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
10f2d63a VZ |
13346 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
13347 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
13348 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13349 | else | |
13350 | cat > conftestmake <<\EOF | |
13351 | all: | |
13352 | @echo 'ac_maketemp="${MAKE}"' | |
13353 | EOF | |
13354 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
13355 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
13356 | if test -n "$ac_maketemp"; then | |
13357 | eval ac_cv_prog_make_${ac_make}_set=yes | |
13358 | else | |
13359 | eval ac_cv_prog_make_${ac_make}_set=no | |
13360 | fi | |
13361 | rm -f conftestmake | |
13362 | fi | |
13363 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
13364 | echo "$ac_t""yes" 1>&6 | |
13365 | SET_MAKE= | |
13366 | else | |
13367 | echo "$ac_t""no" 1>&6 | |
13368 | SET_MAKE="MAKE=${MAKE-make}" | |
13369 | fi | |
13370 | ||
13371 | ||
00cf1208 RR |
13372 | if test -d include; then |
13373 | if test -d include/wx; then | |
13374 | if test -d include/wx/${TOOLKIT_DIR}; then | |
13375 | if test -f include/wx/${TOOLKIT_DIR}/setup.h; then | |
13376 | mv -f include/wx/${TOOLKIT_DIR}/setup.h setup.h | |
13377 | fi | |
13378 | fi | |
13379 | fi | |
13380 | fi | |
13381 | ||
10f2d63a VZ |
13382 | |
13383 | ||
2224580a VZ |
13384 | if test "$wxUSE_GUI" = "yes"; then |
13385 | echo $ac_n "checking glcanvas subdirectory to use""... $ac_c" 1>&6 | |
d6a55c4b | 13386 | echo "configure:13387: checking glcanvas subdirectory to use" >&5 |
2224580a VZ |
13387 | if eval "test \"`echo '$''{'wx_cv_path_glcanvas'+set}'`\" = set"; then |
13388 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13389 | else |
2224580a VZ |
13390 | |
13391 | if test "${TOOLKIT_DIR}" = "msw" ; then | |
13392 | wx_cv_path_glcanvas="win" | |
13393 | else | |
13394 | wx_cv_path_glcanvas="${TOOLKIT_DIR}" | |
13395 | fi | |
13396 | ||
10f2d63a VZ |
13397 | fi |
13398 | ||
2224580a VZ |
13399 | echo "$ac_t""$wx_cv_path_glcanvas" 1>&6 |
13400 | ||
ec90f5e5 | 13401 | GL_TOOLKIT_DIR=$wx_cv_path_glcanvas |
2224580a VZ |
13402 | |
13403 | ||
ec90f5e5 | 13404 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
2224580a VZ |
13405 | subdirs="demos samples utils" |
13406 | ||
13407 | fi | |
10f2d63a VZ |
13408 | |
13409 | trap '' 1 2 15 | |
13410 | cat > confcache <<\EOF | |
13411 | # This file is a shell script that caches the results of configure | |
13412 | # tests run on this system so they can be shared between configure | |
13413 | # scripts and configure runs. It is not useful on other systems. | |
13414 | # If it contains results you don't want to keep, you may remove or edit it. | |
13415 | # | |
13416 | # By default, configure uses ./config.cache as the cache file, | |
13417 | # creating it if it does not exist already. You can give configure | |
13418 | # the --cache-file=FILE option to use a different cache file; that is | |
13419 | # what configure does when it calls configure scripts in | |
13420 | # subdirectories, so they share the cache. | |
13421 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
13422 | # config.status only pays attention to the cache file if you give it the | |
13423 | # --recheck option to rerun configure. | |
13424 | # | |
13425 | EOF | |
13426 | # The following way of writing the cache mishandles newlines in values, | |
13427 | # but we know of no workaround that is simple, portable, and efficient. | |
13428 | # So, don't put newlines in cache variables' values. | |
13429 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
13430 | # and sets the high bit in the cache file unless we assign to the vars. | |
13431 | (set) 2>&1 | | |
13432 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
13433 | *ac_space=\ *) | |
13434 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
13435 | # turns \\\\ into \\, and sed turns \\ into \). | |
13436 | sed -n \ | |
13437 | -e "s/'/'\\\\''/g" \ | |
13438 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
13439 | ;; | |
13440 | *) | |
13441 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
13442 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
13443 | ;; | |
13444 | esac >> confcache | |
13445 | if cmp -s $cache_file confcache; then | |
13446 | : | |
13447 | else | |
13448 | if test -w $cache_file; then | |
13449 | echo "updating cache $cache_file" | |
13450 | cat confcache > $cache_file | |
13451 | else | |
13452 | echo "not updating unwritable cache $cache_file" | |
13453 | fi | |
13454 | fi | |
13455 | rm -f confcache | |
13456 | ||
13457 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
13458 | ||
13459 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
13460 | # Let make expand exec_prefix. | |
13461 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
13462 | ||
13463 | # Any assignment to VPATH causes Sun make to only execute | |
13464 | # the first set of double-colon rules, so remove it if not needed. | |
13465 | # If there is a colon in the path, we need to keep it. | |
13466 | if test "x$srcdir" = x.; then | |
13467 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
13468 | fi | |
13469 | ||
13470 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
13471 | ||
13472 | DEFS=-DHAVE_CONFIG_H | |
13473 | ||
13474 | # Without the "./", some shells look in PATH for config.status. | |
13475 | : ${CONFIG_STATUS=./config.status} | |
13476 | ||
13477 | echo creating $CONFIG_STATUS | |
13478 | rm -f $CONFIG_STATUS | |
13479 | cat > $CONFIG_STATUS <<EOF | |
13480 | #! /bin/sh | |
13481 | # Generated automatically by configure. | |
13482 | # Run this file to recreate the current configuration. | |
13483 | # This directory was configured as follows, | |
13484 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
13485 | # | |
13486 | # $0 $ac_configure_args | |
13487 | # | |
13488 | # Compiler output produced by configure, useful for debugging | |
13489 | # configure, is in ./config.log if it exists. | |
13490 | ||
13491 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
13492 | for ac_option | |
13493 | do | |
13494 | case "\$ac_option" in | |
13495 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
13496 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
13497 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
13498 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
d6a55c4b | 13499 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
10f2d63a VZ |
13500 | exit 0 ;; |
13501 | -help | --help | --hel | --he | --h) | |
13502 | echo "\$ac_cs_usage"; exit 0 ;; | |
13503 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
13504 | esac | |
13505 | done | |
13506 | ||
13507 | ac_given_srcdir=$srcdir | |
13508 | ac_given_INSTALL="$INSTALL" | |
13509 | ||
13510 | trap 'rm -fr `echo " | |
13511 | wx-config | |
13512 | src/make.env | |
13513 | src/makeprog.env | |
13514 | src/makelib.env | |
13515 | Makefile | |
10f2d63a VZ |
13516 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
13517 | EOF | |
13518 | cat >> $CONFIG_STATUS <<EOF | |
13519 | ||
13520 | # Protect against being on the right side of a sed subst in config.status. | |
13521 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
13522 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
13523 | $ac_vpsub | |
13524 | $extrasub | |
13525 | s%@SHELL@%$SHELL%g | |
13526 | s%@CFLAGS@%$CFLAGS%g | |
13527 | s%@CPPFLAGS@%$CPPFLAGS%g | |
13528 | s%@CXXFLAGS@%$CXXFLAGS%g | |
13529 | s%@FFLAGS@%$FFLAGS%g | |
13530 | s%@DEFS@%$DEFS%g | |
13531 | s%@LDFLAGS@%$LDFLAGS%g | |
13532 | s%@LIBS@%$LIBS%g | |
13533 | s%@exec_prefix@%$exec_prefix%g | |
13534 | s%@prefix@%$prefix%g | |
13535 | s%@program_transform_name@%$program_transform_name%g | |
13536 | s%@bindir@%$bindir%g | |
13537 | s%@sbindir@%$sbindir%g | |
13538 | s%@libexecdir@%$libexecdir%g | |
13539 | s%@datadir@%$datadir%g | |
13540 | s%@sysconfdir@%$sysconfdir%g | |
13541 | s%@sharedstatedir@%$sharedstatedir%g | |
13542 | s%@localstatedir@%$localstatedir%g | |
13543 | s%@libdir@%$libdir%g | |
13544 | s%@includedir@%$includedir%g | |
13545 | s%@oldincludedir@%$oldincludedir%g | |
13546 | s%@infodir@%$infodir%g | |
13547 | s%@mandir@%$mandir%g | |
7c66a493 VZ |
13548 | s%@host@%$host%g |
13549 | s%@host_alias@%$host_alias%g | |
13550 | s%@host_cpu@%$host_cpu%g | |
13551 | s%@host_vendor@%$host_vendor%g | |
13552 | s%@host_os@%$host_os%g | |
13553 | s%@target@%$target%g | |
13554 | s%@target_alias@%$target_alias%g | |
13555 | s%@target_cpu@%$target_cpu%g | |
13556 | s%@target_vendor@%$target_vendor%g | |
13557 | s%@target_os@%$target_os%g | |
13558 | s%@build@%$build%g | |
13559 | s%@build_alias@%$build_alias%g | |
13560 | s%@build_cpu@%$build_cpu%g | |
13561 | s%@build_vendor@%$build_vendor%g | |
13562 | s%@build_os@%$build_os%g | |
10f2d63a VZ |
13563 | s%@CC@%$CC%g |
13564 | s%@CPP@%$CPP%g | |
13565 | s%@CXX@%$CXX%g | |
13566 | s%@CXXCPP@%$CXXCPP%g | |
13567 | s%@RANLIB@%$RANLIB%g | |
13568 | s%@AR@%$AR%g | |
13569 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
13570 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
13571 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
13572 | s%@STRIP@%$STRIP%g | |
13573 | s%@YACC@%$YACC%g | |
13574 | s%@LEX@%$LEX%g | |
13575 | s%@LEXLIB@%$LEXLIB%g | |
13576 | s%@LN_S@%$LN_S%g | |
13577 | s%@GTK_CONFIG@%$GTK_CONFIG%g | |
13578 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g | |
13579 | s%@GTK_LIBS@%$GTK_LIBS%g | |
ab9b9eab VZ |
13580 | s%@X_CFLAGS@%$X_CFLAGS%g |
13581 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
13582 | s%@X_LIBS@%$X_LIBS%g | |
13583 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
ec14dd32 VZ |
13584 | s%@LEX_STEM@%$LEX_STEM%g |
13585 | s%@PATH_IFS@%$PATH_IFS%g | |
10f2d63a VZ |
13586 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g |
13587 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
13588 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
13589 | s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g | |
13590 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
13591 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
13592 | s%@WX_LIBRARY@%$WX_LIBRARY%g | |
13593 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
13594 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
13595 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
13596 | s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g | |
13597 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g | |
13598 | s%@WX_ALL@%$WX_ALL%g | |
13599 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
13600 | s%@SHARED_LD@%$SHARED_LD%g | |
13601 | s%@PIC_FLAG@%$PIC_FLAG%g | |
13602 | s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g | |
caa2c79b | 13603 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g |
1d62a8b4 | 13604 | s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g |
10f2d63a | 13605 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g |
dad6c0ea VZ |
13606 | s%@USE_GUI@%$USE_GUI%g |
13607 | s%@AFMINSTALL@%$AFMINSTALL%g | |
10f2d63a VZ |
13608 | s%@TOOLKIT@%$TOOLKIT%g |
13609 | s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g | |
13610 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
13611 | s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g | |
13612 | s%@GUIHEADERS@%$GUIHEADERS%g | |
13613 | s%@GUIOBJS@%$GUIOBJS%g | |
13614 | s%@COMMONOBJS@%$COMMONOBJS%g | |
13615 | s%@GENERICOBJS@%$GENERICOBJS%g | |
13616 | s%@GUIDEPS@%$GUIDEPS%g | |
13617 | s%@COMMONDEPS@%$COMMONDEPS%g | |
13618 | s%@GENERICDEPS@%$GENERICDEPS%g | |
13619 | s%@IODBCOBJS@%$IODBCOBJS%g | |
13620 | s%@UNIXOBJS@%$UNIXOBJS%g | |
13621 | s%@UNIXDEPS@%$UNIXDEPS%g | |
13622 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
13623 | s%@ALL_DEPFILES@%$ALL_DEPFILES%g | |
10f2d63a | 13624 | s%@GUIDIST@%$GUIDIST%g |
2224580a VZ |
13625 | s%@PORT_FILES@%$PORT_FILES%g |
13626 | s%@DISTDIR@%$DISTDIR%g | |
13627 | s%@RPM_SPEC@%$RPM_SPEC%g | |
13628 | s%@RPM_FILES@%$RPM_FILES%g | |
10f2d63a VZ |
13629 | s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g |
13630 | s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g | |
13631 | s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g | |
13632 | s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g | |
13633 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g | |
13634 | s%@USER_SUBDIRS@%$USER_SUBDIRS%g | |
13635 | s%@EXTRA_LIBS@%$EXTRA_LIBS%g | |
b12915c1 | 13636 | s%@EXTRADEFS@%$EXTRADEFS%g |
10f2d63a VZ |
13637 | s%@LD_LIBS@%$LD_LIBS%g |
13638 | s%@SET_MAKE@%$SET_MAKE%g | |
13639 | s%@GL_TOOLKIT_DIR@%$GL_TOOLKIT_DIR%g | |
2224580a | 13640 | s%@subdirs@%$subdirs%g |
10f2d63a VZ |
13641 | |
13642 | CEOF | |
13643 | EOF | |
13644 | ||
13645 | cat >> $CONFIG_STATUS <<\EOF | |
13646 | ||
13647 | # Split the substitutions into bite-sized pieces for seds with | |
13648 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
13649 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
13650 | ac_file=1 # Number of current file. | |
13651 | ac_beg=1 # First line for current file. | |
13652 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
13653 | ac_more_lines=: | |
13654 | ac_sed_cmds="" | |
13655 | while $ac_more_lines; do | |
13656 | if test $ac_beg -gt 1; then | |
13657 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
13658 | else | |
13659 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
13660 | fi | |
13661 | if test ! -s conftest.s$ac_file; then | |
13662 | ac_more_lines=false | |
13663 | rm -f conftest.s$ac_file | |
13664 | else | |
13665 | if test -z "$ac_sed_cmds"; then | |
13666 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
13667 | else | |
13668 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
13669 | fi | |
13670 | ac_file=`expr $ac_file + 1` | |
13671 | ac_beg=$ac_end | |
13672 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
13673 | fi | |
13674 | done | |
13675 | if test -z "$ac_sed_cmds"; then | |
13676 | ac_sed_cmds=cat | |
13677 | fi | |
13678 | EOF | |
13679 | ||
13680 | cat >> $CONFIG_STATUS <<EOF | |
13681 | ||
13682 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
13683 | src/make.env | |
13684 | src/makeprog.env | |
13685 | src/makelib.env | |
13686 | Makefile | |
10f2d63a VZ |
13687 | "} |
13688 | EOF | |
13689 | cat >> $CONFIG_STATUS <<\EOF | |
13690 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
13691 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
13692 | case "$ac_file" in | |
13693 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
13694 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
13695 | *) ac_file_in="${ac_file}.in" ;; | |
13696 | esac | |
13697 | ||
13698 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
13699 | ||
13700 | # Remove last slash and all that follows it. Not all systems have dirname. | |
13701 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
13702 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
13703 | # The file is in a subdirectory. | |
13704 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
13705 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
13706 | # A "../" for each directory in $ac_dir_suffix. | |
13707 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
13708 | else | |
13709 | ac_dir_suffix= ac_dots= | |
13710 | fi | |
13711 | ||
13712 | case "$ac_given_srcdir" in | |
13713 | .) srcdir=. | |
13714 | if test -z "$ac_dots"; then top_srcdir=. | |
13715 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
13716 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
13717 | *) # Relative path. | |
13718 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
13719 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
13720 | esac | |
13721 | ||
13722 | case "$ac_given_INSTALL" in | |
13723 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
13724 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
13725 | esac | |
13726 | ||
13727 | echo creating "$ac_file" | |
13728 | rm -f "$ac_file" | |
13729 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
13730 | case "$ac_file" in | |
13731 | *Makefile*) ac_comsub="1i\\ | |
13732 | # $configure_input" ;; | |
13733 | *) ac_comsub= ;; | |
13734 | esac | |
13735 | ||
13736 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
13737 | sed -e "$ac_comsub | |
13738 | s%@configure_input@%$configure_input%g | |
13739 | s%@srcdir@%$srcdir%g | |
13740 | s%@top_srcdir@%$top_srcdir%g | |
13741 | s%@INSTALL@%$INSTALL%g | |
13742 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
13743 | fi; done | |
13744 | rm -f conftest.s* | |
13745 | ||
13746 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
13747 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
13748 | # | |
13749 | # ac_d sets the value in "#define NAME VALUE" lines. | |
13750 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
13751 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
13752 | ac_dC='\3' | |
13753 | ac_dD='%g' | |
13754 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
13755 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
13756 | ac_uB='\([ ]\)%\1#\2define\3' | |
13757 | ac_uC=' ' | |
13758 | ac_uD='\4%g' | |
13759 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
13760 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
13761 | ac_eB='$%\1#\2define\3' | |
13762 | ac_eC=' ' | |
13763 | ac_eD='%g' | |
13764 | ||
13765 | if test "${CONFIG_HEADERS+set}" != set; then | |
13766 | EOF | |
13767 | cat >> $CONFIG_STATUS <<EOF | |
13768 | CONFIG_HEADERS="setup.h:setup.h.in" | |
13769 | EOF | |
13770 | cat >> $CONFIG_STATUS <<\EOF | |
13771 | fi | |
13772 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
13773 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
13774 | case "$ac_file" in | |
13775 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
13776 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
13777 | *) ac_file_in="${ac_file}.in" ;; | |
13778 | esac | |
13779 | ||
13780 | echo creating $ac_file | |
13781 | ||
13782 | rm -f conftest.frag conftest.in conftest.out | |
13783 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
13784 | cat $ac_file_inputs > conftest.in | |
13785 | ||
13786 | EOF | |
13787 | ||
13788 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
13789 | # the proper values into config.h.in to produce config.h. And first: | |
13790 | # Protect against being on the right side of a sed subst in config.status. | |
13791 | # Protect against being in an unquoted here document in config.status. | |
13792 | rm -f conftest.vals | |
13793 | cat > conftest.hdr <<\EOF | |
13794 | s/[\\&%]/\\&/g | |
13795 | s%[\\$`]%\\&%g | |
13796 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
13797 | s%ac_d%ac_u%gp | |
13798 | s%ac_u%ac_e%gp | |
13799 | EOF | |
13800 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
13801 | rm -f conftest.hdr | |
13802 | ||
13803 | # This sed command replaces #undef with comments. This is necessary, for | |
13804 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
13805 | # on some systems where configure will not decide to define it. | |
13806 | cat >> conftest.vals <<\EOF | |
13807 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
13808 | EOF | |
13809 | ||
13810 | # Break up conftest.vals because some shells have a limit on | |
13811 | # the size of here documents, and old seds have small limits too. | |
13812 | ||
13813 | rm -f conftest.tail | |
13814 | while : | |
13815 | do | |
13816 | ac_lines=`grep -c . conftest.vals` | |
13817 | # grep -c gives empty output for an empty file on some AIX systems. | |
13818 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
13819 | # Write a limited-size here document to conftest.frag. | |
13820 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
13821 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
13822 | echo 'CEOF | |
13823 | sed -f conftest.frag conftest.in > conftest.out | |
13824 | rm -f conftest.in | |
13825 | mv conftest.out conftest.in | |
13826 | ' >> $CONFIG_STATUS | |
13827 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
13828 | rm -f conftest.vals | |
13829 | mv conftest.tail conftest.vals | |
13830 | done | |
13831 | rm -f conftest.vals | |
13832 | ||
13833 | cat >> $CONFIG_STATUS <<\EOF | |
13834 | rm -f conftest.frag conftest.h | |
13835 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
13836 | cat conftest.in >> conftest.h | |
13837 | rm -f conftest.in | |
13838 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
13839 | echo "$ac_file is unchanged" | |
13840 | rm -f conftest.h | |
13841 | else | |
13842 | # Remove last slash and all that follows it. Not all systems have dirname. | |
13843 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
13844 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
13845 | # The file is in a subdirectory. | |
13846 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
13847 | fi | |
13848 | rm -f $ac_file | |
13849 | mv conftest.h $ac_file | |
13850 | fi | |
13851 | fi; done | |
13852 | ||
13853 | EOF | |
13854 | cat >> $CONFIG_STATUS <<EOF | |
13855 | ||
13856 | TOOLKIT_DIR="${TOOLKIT_DIR}" | |
13857 | ||
13858 | ||
13859 | EOF | |
13860 | cat >> $CONFIG_STATUS <<\EOF | |
13861 | ||
13862 | chmod +x wx-config | |
00cf1208 RR |
13863 | |
13864 | ||
13865 | if test ! -d lib; then | |
13866 | mkdir lib | |
13867 | fi | |
13868 | if test ! -d lib/wx; then | |
13869 | mkdir lib/wx | |
13870 | fi | |
13871 | if test ! -d lib/wx/include; then | |
13872 | mkdir lib/wx/include | |
13873 | fi | |
13874 | if test ! -d lib/wx/include/wx; then | |
13875 | mkdir lib/wx/include/wx | |
13876 | fi | |
13877 | if test ! -d lib/wx/include/wx/${TOOLKIT_DIR}; then | |
13878 | mkdir lib/wx/include/wx/${TOOLKIT_DIR} | |
13879 | fi | |
13880 | if test -f setup.h; then | |
13881 | cp -f setup.h lib/wx/include/wx/${TOOLKIT_DIR}/setup.h | |
13882 | fi | |
13883 | ||
13884 | ||
10f2d63a VZ |
13885 | if test ! -d include; then |
13886 | mkdir include | |
13887 | fi | |
13888 | if test ! -d include/wx; then | |
13889 | mkdir include/wx | |
13890 | fi | |
13891 | if test ! -d include/wx/${TOOLKIT_DIR}; then | |
13892 | mkdir include/wx/${TOOLKIT_DIR} | |
13893 | fi | |
afc31813 VZ |
13894 | if test -f setup.h; then |
13895 | mv -f setup.h include/wx/${TOOLKIT_DIR}/setup.h | |
13896 | fi | |
00cf1208 | 13897 | |
10f2d63a VZ |
13898 | |
13899 | exit 0 | |
13900 | EOF | |
13901 | chmod +x $CONFIG_STATUS | |
13902 | rm -fr confdefs* $ac_clean_files | |
13903 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
13904 | ||
2224580a VZ |
13905 | if test "$no_recursion" != yes; then |
13906 | ||
13907 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
13908 | ac_sub_configure_args= | |
13909 | ac_prev= | |
13910 | for ac_arg in $ac_configure_args; do | |
13911 | if test -n "$ac_prev"; then | |
13912 | ac_prev= | |
13913 | continue | |
13914 | fi | |
13915 | case "$ac_arg" in | |
13916 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
13917 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
13918 | ac_prev=cache_file ;; | |
13919 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
13920 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
13921 | ;; | |
13922 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
13923 | ac_prev=srcdir ;; | |
13924 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
13925 | ;; | |
13926 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
13927 | esac | |
13928 | done | |
13929 | ||
13930 | for ac_config_dir in demos samples utils; do | |
13931 | ||
13932 | # Do not complain, so a configure script can configure whichever | |
13933 | # parts of a large source tree are present. | |
13934 | if test ! -d $srcdir/$ac_config_dir; then | |
13935 | continue | |
13936 | fi | |
13937 | ||
13938 | echo configuring in $ac_config_dir | |
13939 | ||
13940 | case "$srcdir" in | |
13941 | .) ;; | |
13942 | *) | |
13943 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; | |
13944 | else | |
13945 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
13946 | fi | |
13947 | ;; | |
13948 | esac | |
13949 | ||
13950 | ac_popdir=`pwd` | |
13951 | cd $ac_config_dir | |
13952 | ||
13953 | # A "../" for each directory in /$ac_config_dir. | |
13954 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
13955 | ||
13956 | case "$srcdir" in | |
13957 | .) # No --srcdir option. We are building in place. | |
13958 | ac_sub_srcdir=$srcdir ;; | |
13959 | /*) # Absolute path. | |
13960 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
13961 | *) # Relative path. | |
13962 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; | |
13963 | esac | |
13964 | ||
13965 | # Check for guested configure; otherwise get Cygnus style configure. | |
13966 | if test -f $ac_sub_srcdir/configure; then | |
13967 | ac_sub_configure=$ac_sub_srcdir/configure | |
13968 | elif test -f $ac_sub_srcdir/configure.in; then | |
13969 | ac_sub_configure=$ac_configure | |
13970 | else | |
13971 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 | |
13972 | ac_sub_configure= | |
13973 | fi | |
13974 | ||
13975 | # The recursion is here. | |
13976 | if test -n "$ac_sub_configure"; then | |
13977 | ||
13978 | # Make the cache file name correct relative to the subdirectory. | |
13979 | case "$cache_file" in | |
13980 | /*) ac_sub_cache_file=$cache_file ;; | |
13981 | *) # Relative path. | |
13982 | ac_sub_cache_file="$ac_dots$cache_file" ;; | |
13983 | esac | |
13984 | case "$ac_given_INSTALL" in | |
13985 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
13986 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
13987 | esac | |
13988 | ||
13989 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" | |
13990 | # The eval makes quoting arguments work. | |
13991 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir | |
13992 | then : | |
13993 | else | |
13994 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
13995 | fi | |
13996 | fi | |
13997 | ||
13998 | cd $ac_popdir | |
13999 | done | |
14000 | fi | |
14001 | ||
10f2d63a | 14002 |