]>
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. | |
e694c22c | 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" | |
63 | ac_help="$ac_help | |
64 | --with-gtk-prefix=PFX Prefix where GTK is installed" | |
65 | ac_help="$ac_help | |
66 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed" | |
67 | ac_help="$ac_help | |
10f2d63a VZ |
68 | --with-libpng use libpng (PNG image format)" |
69 | ac_help="$ac_help | |
70 | --with-libjpeg use libjpeg (JPEG file format)" | |
71 | ac_help="$ac_help | |
c7a2bf27 RR |
72 | --with-libtiff use libtiff (TIFF file format)" |
73 | ac_help="$ac_help | |
10f2d63a VZ |
74 | --with-opengl use OpenGL (or Mesa)" |
75 | ac_help="$ac_help | |
b12915c1 VZ |
76 | --with-dmalloc use dmalloc library (www.letters.com/dmalloc)" |
77 | ac_help="$ac_help | |
78 | --with-zlib use zlib for LZW compression" | |
79 | ac_help="$ac_help | |
10f2d63a VZ |
80 | --with-odbc use the IODBC and wxODBC classes" |
81 | ac_help="$ac_help | |
82 | --enable-shared create shared library code" | |
83 | ac_help="$ac_help | |
84 | --enable-optimise create optimised code" | |
85 | ac_help="$ac_help | |
86 | --enable-debug same as debug_flag and debug_info" | |
87 | ac_help="$ac_help | |
88 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" | |
89 | ac_help="$ac_help | |
90 | --enable-debug_info create code with debugging information" | |
91 | ac_help="$ac_help | |
92 | --enable-debug_gdb create code with extra GDB debugging information" | |
93 | ac_help="$ac_help | |
94 | --enable-debug_cntxt use wxDebugContext" | |
95 | ac_help="$ac_help | |
96 | --enable-mem_tracing create code with memory tracing" | |
97 | ac_help="$ac_help | |
98 | --enable-profile create code with profiling information" | |
99 | ac_help="$ac_help | |
100 | --enable-no_rtti create code without RTTI information" | |
101 | ac_help="$ac_help | |
102 | --enable-no_exceptions create code without exceptions information" | |
103 | ac_help="$ac_help | |
104 | --enable-permissive compile code disregarding strict ANSI" | |
105 | ac_help="$ac_help | |
106 | --enable-no_deps create code without dependency information" | |
107 | ac_help="$ac_help | |
108 | --enable-intl use internationalization system" | |
109 | ac_help="$ac_help | |
110 | --enable-config use wxConfig (and derived) classes" | |
111 | ac_help="$ac_help | |
112 | --enable-sockets use socket/network classes" | |
113 | ac_help="$ac_help | |
114 | --enable-dialupman use dialup network classes" | |
115 | ac_help="$ac_help | |
116 | --enable-ipc use interprocess communication (wxSocket etc.)" | |
117 | ac_help="$ac_help | |
118 | --enable-apple_ieee use the Apple IEEE codec" | |
119 | ac_help="$ac_help | |
120 | --enable-timedate use date/time classes" | |
121 | ac_help="$ac_help | |
122 | --enable-wave use wxWave class" | |
123 | ac_help="$ac_help | |
124 | --enable-fraction use wxFraction class" | |
125 | ac_help="$ac_help | |
126 | --enable-dynlib use wxLibrary class for DLL loading" | |
127 | ac_help="$ac_help | |
128 | --enable-longlong use wxLongLong class" | |
129 | ac_help="$ac_help | |
130 | --enable-log use logging system" | |
131 | ac_help="$ac_help | |
132 | --enable-streams use wxStream etc classes" | |
133 | ac_help="$ac_help | |
134 | --enable-file use wxFile classes" | |
135 | ac_help="$ac_help | |
136 | --enable-textfile use wxTextFile classes" | |
137 | ac_help="$ac_help | |
138 | --enable-unicode compile wxString with Unicode support" | |
139 | ac_help="$ac_help | |
140 | --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs" | |
141 | ac_help="$ac_help | |
142 | --enable-wxprintfv use wxWindows implementation of vprintf()" | |
143 | ac_help="$ac_help | |
144 | --enable-joystick compile in joystick support (Linux only)" | |
145 | ac_help="$ac_help | |
146 | --enable-std_iostreams use standard C++ stream classes" | |
147 | ac_help="$ac_help | |
148 | --enable-fs_inet use virtual HTTP/FTP filesystems" | |
149 | ac_help="$ac_help | |
150 | --enable-fs_zip use virtual ZIP filesystems" | |
151 | ac_help="$ac_help | |
152 | --enable-zipstream use wxZipInputStream" | |
153 | ac_help="$ac_help | |
154 | --enable-threads use threads" | |
155 | ac_help="$ac_help | |
156 | --enable-serial use class serialization" | |
157 | ac_help="$ac_help | |
158 | --enable-docview use document view architecture" | |
159 | ac_help="$ac_help | |
160 | --enable-help use help (using external browser at present)" | |
161 | ac_help="$ac_help | |
162 | --enable-constraints use layout-constraints system" | |
163 | ac_help="$ac_help | |
164 | --enable-printarch use printing architecture" | |
165 | ac_help="$ac_help | |
166 | --enable-mdi use multiple document interface architecture" | |
167 | ac_help="$ac_help | |
168 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" | |
169 | ac_help="$ac_help | |
170 | --enable-prologio use Prolog IO library" | |
171 | ac_help="$ac_help | |
172 | --enable-resources use wxWindows resources" | |
173 | ac_help="$ac_help | |
174 | --enable-xresources use X resources for save (default for gtk+)" | |
175 | ac_help="$ac_help | |
176 | --enable-clipboard use wxClipboard classes" | |
177 | ac_help="$ac_help | |
178 | --enable-dnd use Drag'n'Drop classes" | |
179 | ac_help="$ac_help | |
180 | --enable-wxtree make wxTree library" | |
181 | ac_help="$ac_help | |
182 | --enable-controls use all usual controls" | |
183 | ac_help="$ac_help | |
184 | --enable-accel use accelerators" | |
185 | ac_help="$ac_help | |
186 | --enable-caret use wxCaret class" | |
187 | ac_help="$ac_help | |
188 | --enable-bmpbutton use wxBitmapButton class" | |
189 | ac_help="$ac_help | |
190 | --enable-checkbox use wxCheckBox class" | |
191 | ac_help="$ac_help | |
192 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" | |
193 | ac_help="$ac_help | |
194 | --enable-choice use wxChoice class" | |
195 | ac_help="$ac_help | |
196 | --enable-combobox use wxComboBox classes" | |
197 | ac_help="$ac_help | |
198 | --enable-gauge use wxGauge class" | |
199 | ac_help="$ac_help | |
200 | --enable-grid use wxGrid class" | |
201 | ac_help="$ac_help | |
202 | --enable-newgrid use new wxGrid class" | |
203 | ac_help="$ac_help | |
204 | --enable-imaglist use wxImageList class" | |
205 | ac_help="$ac_help | |
206 | --enable-listbox use wxListBox class" | |
207 | ac_help="$ac_help | |
208 | --enable-listctrl use wxListCtrl class" | |
209 | ac_help="$ac_help | |
210 | --enable-notebook use wxNotebook class" | |
211 | ac_help="$ac_help | |
212 | --enable-radiobox use wxRadioBox class" | |
213 | ac_help="$ac_help | |
214 | --enable-radiobtn use wxRadioButton class" | |
215 | ac_help="$ac_help | |
216 | --enable-sash use wxSashWindow class" | |
217 | ac_help="$ac_help | |
218 | --enable-scrollbar use wxScrollBar class and scrollable windows" | |
219 | ac_help="$ac_help | |
220 | --enable-slider use wxSlider class" | |
221 | ac_help="$ac_help | |
222 | --enable-spinbtn use wxSpinButton class" | |
223 | ac_help="$ac_help | |
56cfaa52 RR |
224 | --enable-spinctrl use wxSpinCtrl class" |
225 | ac_help="$ac_help | |
10f2d63a VZ |
226 | --enable-splitter use wxSplitterWindow class" |
227 | ac_help="$ac_help | |
228 | --enable-statbmp use wxStaticBitmap class" | |
229 | ac_help="$ac_help | |
230 | --enable-statbox use wxStaticBox class" | |
231 | ac_help="$ac_help | |
232 | --enable-statline use wxStaticLine class" | |
233 | ac_help="$ac_help | |
234 | --enable-statusbar use wxStatusBar class" | |
235 | ac_help="$ac_help | |
236 | --enable-tabdialog use wxTabControl class" | |
237 | ac_help="$ac_help | |
238 | --enable-toolbar use wxToolBar class" | |
239 | ac_help="$ac_help | |
360d6699 VZ |
240 | --enable-tbarnative use native wxToolBar class" |
241 | ac_help="$ac_help | |
242 | --enable-tbarsmpl use wxToolBarSimple class" | |
243 | ac_help="$ac_help | |
10f2d63a VZ |
244 | --enable-treectrl use wxTreeCtrl class" |
245 | ac_help="$ac_help | |
246 | --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)" | |
247 | ac_help="$ac_help | |
248 | --enable-dirdlg use wxDirDialog" | |
249 | ac_help="$ac_help | |
250 | --enable-textdlg use wxTextDialog" | |
251 | ac_help="$ac_help | |
252 | --enable-tipdlg use startup tips" | |
253 | ac_help="$ac_help | |
254 | --enable-progressdlg use wxProgressDialog" | |
255 | ac_help="$ac_help | |
256 | --enable-miniframe use wxMiniFrame class" | |
257 | ac_help="$ac_help | |
258 | --enable-html use wxHTML sub-library" | |
259 | ac_help="$ac_help | |
260 | --enable-tooltips use wxToolTip class" | |
261 | ac_help="$ac_help | |
262 | --enable-splines use spline drawing code" | |
263 | ac_help="$ac_help | |
264 | --enable-validators use wxValidator and derived classes" | |
265 | ac_help="$ac_help | |
266 | --enable-busyinfo use wxBusyInfo" | |
267 | ac_help="$ac_help | |
268 | --enable-gif use gif images (GIF file format)" | |
269 | ac_help="$ac_help | |
270 | --enable-pcx use pcx images (PCX file format)" | |
271 | ac_help="$ac_help | |
272 | --enable-pnm use pnm images (PNM file format)" | |
ab9b9eab VZ |
273 | ac_help="$ac_help |
274 | --with-x use the X Window System" | |
10f2d63a VZ |
275 | |
276 | # Initialize some variables set by options. | |
277 | # The variables have the same names as the options, with | |
278 | # dashes changed to underlines. | |
279 | build=NONE | |
280 | cache_file=./config.cache | |
281 | exec_prefix=NONE | |
282 | host=NONE | |
283 | no_create= | |
284 | nonopt=NONE | |
285 | no_recursion= | |
286 | prefix=NONE | |
287 | program_prefix=NONE | |
288 | program_suffix=NONE | |
289 | program_transform_name=s,x,x, | |
290 | silent= | |
291 | site= | |
292 | srcdir= | |
293 | target=NONE | |
294 | verbose= | |
295 | x_includes=NONE | |
296 | x_libraries=NONE | |
297 | bindir='${exec_prefix}/bin' | |
298 | sbindir='${exec_prefix}/sbin' | |
299 | libexecdir='${exec_prefix}/libexec' | |
300 | datadir='${prefix}/share' | |
301 | sysconfdir='${prefix}/etc' | |
302 | sharedstatedir='${prefix}/com' | |
303 | localstatedir='${prefix}/var' | |
304 | libdir='${exec_prefix}/lib' | |
305 | includedir='${prefix}/include' | |
306 | oldincludedir='/usr/include' | |
307 | infodir='${prefix}/info' | |
308 | mandir='${prefix}/man' | |
309 | ||
310 | # Initialize some other variables. | |
311 | subdirs= | |
312 | MFLAGS= MAKEFLAGS= | |
313 | SHELL=${CONFIG_SHELL-/bin/sh} | |
314 | # Maximum number of lines to put in a shell here document. | |
315 | ac_max_here_lines=12 | |
316 | ||
317 | ac_prev= | |
318 | for ac_option | |
319 | do | |
320 | ||
321 | # If the previous option needs an argument, assign it. | |
322 | if test -n "$ac_prev"; then | |
323 | eval "$ac_prev=\$ac_option" | |
324 | ac_prev= | |
325 | continue | |
326 | fi | |
327 | ||
328 | case "$ac_option" in | |
329 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
330 | *) ac_optarg= ;; | |
331 | esac | |
332 | ||
333 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
334 | ||
335 | case "$ac_option" in | |
336 | ||
337 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
338 | ac_prev=bindir ;; | |
339 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
340 | bindir="$ac_optarg" ;; | |
341 | ||
342 | -build | --build | --buil | --bui | --bu) | |
343 | ac_prev=build ;; | |
344 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
345 | build="$ac_optarg" ;; | |
346 | ||
347 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
348 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
349 | ac_prev=cache_file ;; | |
350 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
351 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
352 | cache_file="$ac_optarg" ;; | |
353 | ||
354 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
355 | ac_prev=datadir ;; | |
356 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
357 | | --da=*) | |
358 | datadir="$ac_optarg" ;; | |
359 | ||
360 | -disable-* | --disable-*) | |
361 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
362 | # Reject names that are not valid shell variable names. | |
363 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
364 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
365 | fi | |
366 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
367 | eval "enable_${ac_feature}=no" ;; | |
368 | ||
369 | -enable-* | --enable-*) | |
370 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
371 | # Reject names that are not valid shell variable names. | |
372 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
373 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
374 | fi | |
375 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
376 | case "$ac_option" in | |
377 | *=*) ;; | |
378 | *) ac_optarg=yes ;; | |
379 | esac | |
380 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
381 | ||
382 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
383 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
384 | | --exec | --exe | --ex) | |
385 | ac_prev=exec_prefix ;; | |
386 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
387 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
388 | | --exec=* | --exe=* | --ex=*) | |
389 | exec_prefix="$ac_optarg" ;; | |
390 | ||
391 | -gas | --gas | --ga | --g) | |
392 | # Obsolete; use --with-gas. | |
393 | with_gas=yes ;; | |
394 | ||
395 | -help | --help | --hel | --he) | |
396 | # Omit some internal or obsolete options to make the list less imposing. | |
397 | # This message is too long to be a string in the A/UX 3.1 sh. | |
398 | cat << EOF | |
399 | Usage: configure [options] [host] | |
400 | Options: [defaults in brackets after descriptions] | |
401 | Configuration: | |
402 | --cache-file=FILE cache test results in FILE | |
403 | --help print this message | |
404 | --no-create do not create output files | |
405 | --quiet, --silent do not print \`checking...' messages | |
406 | --version print the version of autoconf that created configure | |
407 | Directory and file names: | |
408 | --prefix=PREFIX install architecture-independent files in PREFIX | |
409 | [$ac_default_prefix] | |
410 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
411 | [same as prefix] | |
412 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
413 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
414 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
415 | --datadir=DIR read-only architecture-independent data in DIR | |
416 | [PREFIX/share] | |
417 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
418 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
419 | [PREFIX/com] | |
420 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
421 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
422 | --includedir=DIR C header files in DIR [PREFIX/include] | |
423 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
424 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
425 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
426 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
427 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
428 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
429 | --program-transform-name=PROGRAM | |
430 | run sed PROGRAM on installed program names | |
431 | EOF | |
432 | cat << EOF | |
433 | Host type: | |
434 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
435 | --host=HOST configure for HOST [guessed] | |
436 | --target=TARGET configure for TARGET [TARGET=HOST] | |
437 | Features and packages: | |
438 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
439 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
440 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
441 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
442 | --x-includes=DIR X include files are in DIR | |
443 | --x-libraries=DIR X library files are in DIR | |
444 | EOF | |
445 | if test -n "$ac_help"; then | |
446 | echo "--enable and --with options recognized:$ac_help" | |
447 | fi | |
448 | exit 0 ;; | |
449 | ||
450 | -host | --host | --hos | --ho) | |
451 | ac_prev=host ;; | |
452 | -host=* | --host=* | --hos=* | --ho=*) | |
453 | host="$ac_optarg" ;; | |
454 | ||
455 | -includedir | --includedir | --includedi | --included | --include \ | |
456 | | --includ | --inclu | --incl | --inc) | |
457 | ac_prev=includedir ;; | |
458 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
459 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
460 | includedir="$ac_optarg" ;; | |
461 | ||
462 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
463 | ac_prev=infodir ;; | |
464 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
465 | infodir="$ac_optarg" ;; | |
466 | ||
467 | -libdir | --libdir | --libdi | --libd) | |
468 | ac_prev=libdir ;; | |
469 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
470 | libdir="$ac_optarg" ;; | |
471 | ||
472 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
473 | | --libexe | --libex | --libe) | |
474 | ac_prev=libexecdir ;; | |
475 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
476 | | --libexe=* | --libex=* | --libe=*) | |
477 | libexecdir="$ac_optarg" ;; | |
478 | ||
479 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
480 | | --localstate | --localstat | --localsta | --localst \ | |
481 | | --locals | --local | --loca | --loc | --lo) | |
482 | ac_prev=localstatedir ;; | |
483 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
484 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
485 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
486 | localstatedir="$ac_optarg" ;; | |
487 | ||
488 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
489 | ac_prev=mandir ;; | |
490 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
491 | mandir="$ac_optarg" ;; | |
492 | ||
493 | -nfp | --nfp | --nf) | |
494 | # Obsolete; use --without-fp. | |
495 | with_fp=no ;; | |
496 | ||
497 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
498 | | --no-cr | --no-c) | |
499 | no_create=yes ;; | |
500 | ||
501 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
502 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
503 | no_recursion=yes ;; | |
504 | ||
505 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
506 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
507 | | --oldin | --oldi | --old | --ol | --o) | |
508 | ac_prev=oldincludedir ;; | |
509 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
510 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
511 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
512 | oldincludedir="$ac_optarg" ;; | |
513 | ||
514 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
515 | ac_prev=prefix ;; | |
516 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
517 | prefix="$ac_optarg" ;; | |
518 | ||
519 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
520 | | --program-pre | --program-pr | --program-p) | |
521 | ac_prev=program_prefix ;; | |
522 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
523 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
524 | program_prefix="$ac_optarg" ;; | |
525 | ||
526 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
527 | | --program-suf | --program-su | --program-s) | |
528 | ac_prev=program_suffix ;; | |
529 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
530 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
531 | program_suffix="$ac_optarg" ;; | |
532 | ||
533 | -program-transform-name | --program-transform-name \ | |
534 | | --program-transform-nam | --program-transform-na \ | |
535 | | --program-transform-n | --program-transform- \ | |
536 | | --program-transform | --program-transfor \ | |
537 | | --program-transfo | --program-transf \ | |
538 | | --program-trans | --program-tran \ | |
539 | | --progr-tra | --program-tr | --program-t) | |
540 | ac_prev=program_transform_name ;; | |
541 | -program-transform-name=* | --program-transform-name=* \ | |
542 | | --program-transform-nam=* | --program-transform-na=* \ | |
543 | | --program-transform-n=* | --program-transform-=* \ | |
544 | | --program-transform=* | --program-transfor=* \ | |
545 | | --program-transfo=* | --program-transf=* \ | |
546 | | --program-trans=* | --program-tran=* \ | |
547 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
548 | program_transform_name="$ac_optarg" ;; | |
549 | ||
550 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
551 | | -silent | --silent | --silen | --sile | --sil) | |
552 | silent=yes ;; | |
553 | ||
554 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
555 | ac_prev=sbindir ;; | |
556 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
557 | | --sbi=* | --sb=*) | |
558 | sbindir="$ac_optarg" ;; | |
559 | ||
560 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
561 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
562 | | --sharedst | --shareds | --shared | --share | --shar \ | |
563 | | --sha | --sh) | |
564 | ac_prev=sharedstatedir ;; | |
565 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
566 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
567 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
568 | | --sha=* | --sh=*) | |
569 | sharedstatedir="$ac_optarg" ;; | |
570 | ||
571 | -site | --site | --sit) | |
572 | ac_prev=site ;; | |
573 | -site=* | --site=* | --sit=*) | |
574 | site="$ac_optarg" ;; | |
575 | ||
576 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
577 | ac_prev=srcdir ;; | |
578 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
579 | srcdir="$ac_optarg" ;; | |
580 | ||
581 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
582 | | --syscon | --sysco | --sysc | --sys | --sy) | |
583 | ac_prev=sysconfdir ;; | |
584 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
585 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
586 | sysconfdir="$ac_optarg" ;; | |
587 | ||
588 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
589 | ac_prev=target ;; | |
590 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
591 | target="$ac_optarg" ;; | |
592 | ||
593 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
594 | verbose=yes ;; | |
595 | ||
596 | -version | --version | --versio | --versi | --vers) | |
e694c22c | 597 | echo "configure generated by autoconf version 2.13" |
10f2d63a VZ |
598 | exit 0 ;; |
599 | ||
600 | -with-* | --with-*) | |
601 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
602 | # Reject names that are not valid shell variable names. | |
603 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
604 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
605 | fi | |
606 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
607 | case "$ac_option" in | |
608 | *=*) ;; | |
609 | *) ac_optarg=yes ;; | |
610 | esac | |
611 | eval "with_${ac_package}='$ac_optarg'" ;; | |
612 | ||
613 | -without-* | --without-*) | |
614 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
615 | # Reject names that are not valid shell variable names. | |
616 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
617 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
618 | fi | |
619 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
620 | eval "with_${ac_package}=no" ;; | |
621 | ||
622 | --x) | |
623 | # Obsolete; use --with-x. | |
624 | with_x=yes ;; | |
625 | ||
626 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
627 | | --x-incl | --x-inc | --x-in | --x-i) | |
628 | ac_prev=x_includes ;; | |
629 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
630 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
631 | x_includes="$ac_optarg" ;; | |
632 | ||
633 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
634 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
635 | ac_prev=x_libraries ;; | |
636 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
637 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
638 | x_libraries="$ac_optarg" ;; | |
639 | ||
640 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
641 | ;; | |
642 | ||
643 | *) | |
644 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
645 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
646 | fi | |
647 | if test "x$nonopt" != xNONE; then | |
648 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
649 | fi | |
650 | nonopt="$ac_option" | |
651 | ;; | |
652 | ||
653 | esac | |
654 | done | |
655 | ||
656 | if test -n "$ac_prev"; then | |
657 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
658 | fi | |
659 | ||
660 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
661 | ||
662 | # File descriptor usage: | |
663 | # 0 standard input | |
664 | # 1 file creation | |
665 | # 2 errors and warnings | |
666 | # 3 some systems may open it to /dev/tty | |
667 | # 4 used on the Kubota Titan | |
668 | # 6 checking for... messages and results | |
669 | # 5 compiler messages saved in config.log | |
670 | if test "$silent" = yes; then | |
671 | exec 6>/dev/null | |
672 | else | |
673 | exec 6>&1 | |
674 | fi | |
675 | exec 5>./config.log | |
676 | ||
677 | echo "\ | |
678 | This file contains any messages produced by compilers while | |
679 | running configure, to aid debugging if configure makes a mistake. | |
680 | " 1>&5 | |
681 | ||
682 | # Strip out --no-create and --no-recursion so they do not pile up. | |
683 | # Also quote any args containing shell metacharacters. | |
684 | ac_configure_args= | |
685 | for ac_arg | |
686 | do | |
687 | case "$ac_arg" in | |
688 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
689 | | --no-cr | --no-c) ;; | |
690 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
691 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
692 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
693 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
694 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
695 | esac | |
696 | done | |
697 | ||
698 | # NLS nuisances. | |
699 | # Only set these to C if already set. These must not be set unconditionally | |
700 | # because not all systems understand e.g. LANG=C (notably SCO). | |
701 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
702 | # Non-C LC_CTYPE values break the ctype check. | |
703 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
704 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
705 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
706 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
707 | ||
708 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
709 | rm -rf conftest* confdefs.h | |
710 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
711 | echo > confdefs.h | |
712 | ||
713 | # A filename unique to this package, relative to the directory that | |
714 | # configure is in, which we can look for to find out if srcdir is correct. | |
715 | ac_unique_file=wx-config.in | |
716 | ||
717 | # Find the source files, if location was not specified. | |
718 | if test -z "$srcdir"; then | |
719 | ac_srcdir_defaulted=yes | |
720 | # Try the directory containing this script, then its parent. | |
721 | ac_prog=$0 | |
722 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
723 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
724 | srcdir=$ac_confdir | |
725 | if test ! -r $srcdir/$ac_unique_file; then | |
726 | srcdir=.. | |
727 | fi | |
728 | else | |
729 | ac_srcdir_defaulted=no | |
730 | fi | |
731 | if test ! -r $srcdir/$ac_unique_file; then | |
732 | if test "$ac_srcdir_defaulted" = yes; then | |
733 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
734 | else | |
735 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
736 | fi | |
737 | fi | |
738 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
739 | ||
740 | # Prefer explicitly selected file to automatically selected ones. | |
741 | if test -z "$CONFIG_SITE"; then | |
742 | if test "x$prefix" != xNONE; then | |
743 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
744 | else | |
745 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
746 | fi | |
747 | fi | |
748 | for ac_site_file in $CONFIG_SITE; do | |
749 | if test -r "$ac_site_file"; then | |
750 | echo "loading site script $ac_site_file" | |
751 | . "$ac_site_file" | |
752 | fi | |
753 | done | |
754 | ||
755 | if test -r "$cache_file"; then | |
756 | echo "loading cache $cache_file" | |
757 | . $cache_file | |
758 | else | |
759 | echo "creating cache $cache_file" | |
760 | > $cache_file | |
761 | fi | |
762 | ||
763 | ac_ext=c | |
764 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
765 | ac_cpp='$CPP $CPPFLAGS' | |
766 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
767 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
768 | cross_compiling=$ac_cv_prog_cc_cross | |
769 | ||
770 | ac_exeext= | |
771 | ac_objext=o | |
772 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
773 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
774 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
775 | ac_n= ac_c=' | |
776 | ' ac_t=' ' | |
777 | else | |
778 | ac_n=-n ac_c= ac_t= | |
779 | fi | |
780 | else | |
781 | ac_n= ac_c='\c' ac_t= | |
782 | fi | |
783 | ||
784 | ||
785 | ||
786 | ac_aux_dir= | |
787 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
788 | if test -f $ac_dir/install-sh; then | |
789 | ac_aux_dir=$ac_dir | |
790 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
791 | break | |
792 | elif test -f $ac_dir/install.sh; then | |
793 | ac_aux_dir=$ac_dir | |
794 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
795 | break | |
796 | fi | |
797 | done | |
798 | if test -z "$ac_aux_dir"; then | |
799 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
800 | fi | |
801 | ac_config_guess=$ac_aux_dir/config.guess | |
802 | ac_config_sub=$ac_aux_dir/config.sub | |
803 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
804 | ||
805 | ||
806 | # Do some error checking and defaulting for the host and target type. | |
807 | # The inputs are: | |
808 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
809 | # | |
810 | # The rules are: | |
811 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
812 | # same time. | |
813 | # 2. Host defaults to nonopt. | |
814 | # 3. If nonopt is not specified, then host defaults to the current host, | |
815 | # as determined by config.guess. | |
816 | # 4. Target and build default to nonopt. | |
817 | # 5. If nonopt is not specified, then target and build default to host. | |
818 | ||
819 | # The aliases save the names the user supplied, while $host etc. | |
820 | # will get canonicalized. | |
821 | case $host---$target---$nonopt in | |
822 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
823 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
824 | esac | |
825 | ||
826 | ||
827 | # Make sure we can run config.sub. | |
828 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
829 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
830 | fi | |
831 | ||
832 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
360d6699 | 833 | echo "configure:834: checking host system type" >&5 |
10f2d63a VZ |
834 | |
835 | host_alias=$host | |
836 | case "$host_alias" in | |
837 | NONE) | |
838 | case $nonopt in | |
839 | NONE) | |
840 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
841 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
842 | fi ;; | |
843 | *) host_alias=$nonopt ;; | |
844 | esac ;; | |
845 | esac | |
846 | ||
847 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
848 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
849 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
850 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
851 | echo "$ac_t""$host" 1>&6 | |
852 | ||
853 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
360d6699 | 854 | echo "configure:855: checking target system type" >&5 |
10f2d63a VZ |
855 | |
856 | target_alias=$target | |
857 | case "$target_alias" in | |
858 | NONE) | |
859 | case $nonopt in | |
860 | NONE) target_alias=$host_alias ;; | |
861 | *) target_alias=$nonopt ;; | |
862 | esac ;; | |
863 | esac | |
864 | ||
865 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
866 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
867 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
868 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
869 | echo "$ac_t""$target" 1>&6 | |
870 | ||
871 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
360d6699 | 872 | echo "configure:873: checking build system type" >&5 |
10f2d63a VZ |
873 | |
874 | build_alias=$build | |
875 | case "$build_alias" in | |
876 | NONE) | |
877 | case $nonopt in | |
878 | NONE) build_alias=$host_alias ;; | |
879 | *) build_alias=$nonopt ;; | |
880 | esac ;; | |
881 | esac | |
882 | ||
883 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
884 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
885 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
886 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
887 | echo "$ac_t""$build" 1>&6 | |
888 | ||
889 | test "$host_alias" != "$target_alias" && | |
890 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
891 | NONENONEs,x,x, && | |
892 | program_prefix=${target_alias}- | |
893 | ||
894 | ||
895 | ||
896 | WX_MAJOR_VERSION_NUMBER=2 | |
897 | WX_MINOR_VERSION_NUMBER=1 | |
ba0e7d41 | 898 | WX_RELEASE_NUMBER=12 |
10f2d63a VZ |
899 | |
900 | WX_INTERFACE_AGE=0 | |
901 | WX_BINARY_AGE=0 | |
902 | ||
903 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER | |
904 | ||
905 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER | |
906 | WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE` | |
907 | WX_REVISION=$WX_INTERFACE_AGE | |
908 | WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE` | |
909 | ||
910 | ||
911 | USE_UNIX=1 | |
912 | USE_WIN32=0 | |
b12915c1 VZ |
913 | USE_BEOS=0 |
914 | ||
10f2d63a VZ |
915 | USE_LINUX= |
916 | USE_SGI= | |
917 | USE_HPUX= | |
918 | USE_SYSV= | |
919 | USE_SVR4= | |
920 | USE_AIX= | |
921 | USE_SUN= | |
922 | USE_SOLARIS= | |
923 | USE_SUNOS= | |
924 | USE_ALPHA= | |
925 | USE_OSF= | |
926 | USE_BSD= | |
927 | USE_FREEBSD= | |
928 | USE_VMS= | |
929 | USE_ULTRIX= | |
930 | USE_CYGWIN= | |
931 | USE_MINGW= | |
932 | USE_DATA_GENERAL= | |
933 | ||
ab9b9eab VZ |
934 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
935 | ||
10f2d63a VZ |
936 | ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE" |
937 | ||
938 | DEFAULT_wxUSE_GTK=0 | |
939 | DEFAULT_wxUSE_MOTIF=0 | |
940 | DEFAULT_wxUSE_MSW=0 | |
941 | DEFAULT_wxUSE_WINE=0 | |
942 | ||
943 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
944 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
945 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
946 | DEFAULT_DEFAULT_wxUSE_WINE=0 | |
947 | ||
948 | case "${host}" in | |
949 | *-hp-hpux* ) | |
950 | USE_HPUX=1 | |
951 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 952 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
953 | cat >> confdefs.h <<\EOF |
954 | #define __HPUX__ 1 | |
955 | EOF | |
956 | ||
957 | ;; | |
958 | *-*-linux* ) | |
959 | USE_LINUX=1 | |
960 | cat >> confdefs.h <<\EOF | |
961 | #define __LINUX__ 1 | |
962 | EOF | |
963 | ||
964 | TMP=`uname -m` | |
965 | if test "x$TMP" = "xalpha"; then | |
966 | USE_ALPHA=1 | |
967 | cat >> confdefs.h <<\EOF | |
968 | #define __ALPHA__ 1 | |
969 | EOF | |
970 | ||
971 | fi | |
972 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
973 | ;; | |
974 | *-*-irix5* | *-*-irix6* ) | |
975 | USE_SGI=1 | |
976 | USE_SVR4=1 | |
977 | cat >> confdefs.h <<\EOF | |
978 | #define __SGI__ 1 | |
979 | EOF | |
980 | ||
981 | cat >> confdefs.h <<\EOF | |
982 | #define __SVR4__ 1 | |
983 | EOF | |
984 | ||
985 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
986 | ;; | |
987 | *-*-solaris2* ) | |
988 | USE_SUN=1 | |
989 | USE_SOLARIS=1 | |
990 | USE_SVR4=1 | |
991 | cat >> confdefs.h <<\EOF | |
992 | #define __SUN__ 1 | |
993 | EOF | |
994 | ||
995 | cat >> confdefs.h <<\EOF | |
996 | #define __SOLARIS__ 1 | |
997 | EOF | |
998 | ||
999 | cat >> confdefs.h <<\EOF | |
1000 | #define __SVR4__ 1 | |
1001 | EOF | |
1002 | ||
1003 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1004 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1005 | ;; |
1006 | *-*-sunos4* ) | |
1007 | USE_SUN=1 | |
1008 | USE_SUNOS=1 | |
1009 | USE_BSD=1 | |
1010 | cat >> confdefs.h <<\EOF | |
1011 | #define __SUN__ 1 | |
1012 | EOF | |
1013 | ||
1014 | cat >> confdefs.h <<\EOF | |
1015 | #define __SUNOS__ 1 | |
1016 | EOF | |
1017 | ||
1018 | cat >> confdefs.h <<\EOF | |
1019 | #define __BSD__ 1 | |
1020 | EOF | |
1021 | ||
1022 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1023 | ;; | |
1024 | *-*-freebsd* | *-*-netbsd*) | |
1025 | USE_BSD=1 | |
1026 | USE_FREEBSD=1 | |
1027 | cat >> confdefs.h <<\EOF | |
1028 | #define __FREEBSD__ 1 | |
1029 | EOF | |
1030 | ||
1031 | cat >> confdefs.h <<\EOF | |
1032 | #define __BSD__ 1 | |
1033 | EOF | |
1034 | ||
1035 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1036 | ;; | |
1037 | *-*-osf* ) | |
1038 | USE_ALPHA=1 | |
1039 | USE_OSF=1 | |
1040 | cat >> confdefs.h <<\EOF | |
1041 | #define __ALPHA__ 1 | |
1042 | EOF | |
1043 | ||
1044 | cat >> confdefs.h <<\EOF | |
1045 | #define __OSF__ 1 | |
1046 | EOF | |
1047 | ||
1048 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1049 | ;; | |
1050 | *-*-dgux5* ) | |
1051 | USE_ALPHA=1 | |
1052 | USE_SVR4=1 | |
1053 | cat >> confdefs.h <<\EOF | |
1054 | #define __ALPHA__ 1 | |
1055 | EOF | |
1056 | ||
1057 | cat >> confdefs.h <<\EOF | |
1058 | #define __SVR4__ 1 | |
1059 | EOF | |
1060 | ||
1061 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1062 | ;; | |
1063 | *-*-sysv5* ) | |
1064 | USE_SYSV=1 | |
1065 | USE_SVR4=1 | |
1066 | cat >> confdefs.h <<\EOF | |
1067 | #define __SYSV__ 1 | |
1068 | EOF | |
1069 | ||
1070 | cat >> confdefs.h <<\EOF | |
1071 | #define __SVR4__ 1 | |
1072 | EOF | |
1073 | ||
1074 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1075 | ;; | |
1076 | *-*-aix* ) | |
1077 | USE_AIX=1 | |
1078 | USE_SYSV=1 | |
1079 | USE_SVR4=1 | |
1080 | cat >> confdefs.h <<\EOF | |
1081 | #define __AIX__ 1 | |
1082 | EOF | |
1083 | ||
1084 | cat >> confdefs.h <<\EOF | |
1085 | #define __SYSV__ 1 | |
1086 | EOF | |
1087 | ||
1088 | cat >> confdefs.h <<\EOF | |
1089 | #define __SVR4__ 1 | |
1090 | EOF | |
1091 | ||
1092 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1093 | ;; | |
1094 | ||
7eef8db2 | 1095 | *-*-cygwin32* | *-*-mingw32* ) |
10f2d63a VZ |
1096 | USE_UNIX=0 |
1097 | USE_WIN32=1 | |
1098 | cat >> confdefs.h <<\EOF | |
1099 | #define __WIN32__ 1 | |
1100 | EOF | |
1101 | ||
1102 | cat >> confdefs.h <<\EOF | |
1103 | #define __WIN95__ 1 | |
1104 | EOF | |
1105 | ||
1106 | cat >> confdefs.h <<\EOF | |
1107 | #define __WINDOWS__ 1 | |
1108 | EOF | |
1109 | ||
1110 | cat >> confdefs.h <<\EOF | |
1111 | #define __GNUWIN32__ 1 | |
1112 | EOF | |
1113 | ||
1114 | cat >> confdefs.h <<\EOF | |
1115 | #define STRICT 1 | |
1116 | EOF | |
1117 | ||
1118 | cat >> confdefs.h <<\EOF | |
1119 | #define WINVER 0x0400 | |
1120 | EOF | |
1121 | ||
1122 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
1123 | ;; | |
1124 | ||
1125 | *-pc-os2_emx ) | |
1126 | cat >> confdefs.h <<\EOF | |
1127 | #define __EMX__ 1 | |
1128 | EOF | |
1129 | ||
1130 | ;; | |
1131 | ||
b12915c1 VZ |
1132 | *-*-beos* ) |
1133 | USE_BEOS=1 | |
1134 | cat >> confdefs.h <<\EOF | |
1135 | #define __BEOS__ 1 | |
1136 | EOF | |
1137 | ||
1138 | ;; | |
1139 | ||
10f2d63a VZ |
1140 | *) |
1141 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } | |
1142 | esac | |
1143 | ||
1144 | if test "$USE_UNIX" = 1 ; then | |
b12915c1 VZ |
1145 | wxUSE_UNIX=yes |
1146 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
1147 | #define __UNIX__ 1 |
1148 | EOF | |
1149 | ||
b12915c1 VZ |
1150 | |
1151 | SRC_SUBDIRS="$SRC_SUBDIRS unix" | |
1152 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix" | |
1153 | fi | |
1154 | ||
1155 | if test "$USE_BEOS" = 1; then | |
1156 | SRC_SUBDIRS="$SRC_SUBDIRS be" | |
1157 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be" | |
10f2d63a VZ |
1158 | fi |
1159 | ||
1160 | if test "$USE_LINUX" = 1; then | |
1161 | echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6 | |
b12915c1 | 1162 | echo "configure:1163: checking for gettext in -lc" >&5 |
10f2d63a VZ |
1163 | ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'` |
1164 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1165 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1166 | else | |
1167 | ac_save_LIBS="$LIBS" | |
1168 | LIBS="-lc $LIBS" | |
1169 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 1170 | #line 1171 "configure" |
10f2d63a VZ |
1171 | #include "confdefs.h" |
1172 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1173 | /* We use char because int might match the return type of a gcc2 | |
1174 | builtin and then its argument prototype would still apply. */ | |
1175 | char gettext(); | |
1176 | ||
1177 | int main() { | |
1178 | gettext() | |
1179 | ; return 0; } | |
1180 | EOF | |
b12915c1 | 1181 | if { (eval echo configure:1182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
1182 | rm -rf conftest* |
1183 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1184 | else | |
1185 | echo "configure: failed program was:" >&5 | |
1186 | cat conftest.$ac_ext >&5 | |
1187 | rm -rf conftest* | |
1188 | eval "ac_cv_lib_$ac_lib_var=no" | |
1189 | fi | |
1190 | rm -f conftest* | |
1191 | LIBS="$ac_save_LIBS" | |
1192 | ||
1193 | fi | |
1194 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1195 | echo "$ac_t""yes" 1>&6 | |
1196 | cat >> confdefs.h <<\EOF | |
1197 | #define wxHAVE_GLIBC2 1 | |
1198 | EOF | |
1199 | ||
1200 | else | |
1201 | echo "$ac_t""no" 1>&6 | |
1202 | fi | |
1203 | ||
1204 | fi | |
1205 | ||
1206 | ||
1207 | ||
1208 | ||
1209 | wx_arg_cache_file="configarg.cache" | |
1210 | echo "loading argument cache $wx_arg_cache_file" | |
1211 | rm -f ${wx_arg_cache_file}.tmp | |
1212 | touch ${wx_arg_cache_file}.tmp | |
1213 | touch ${wx_arg_cache_file} | |
1214 | ||
1215 | ||
1216 | DEBUG_CONFIGURE=0 | |
1217 | if test $DEBUG_CONFIGURE = 1; then | |
1218 | DEFAULT_wxUSE_THREADS=yes | |
1219 | ||
1220 | DEFAULT_wxUSE_SHARED=yes | |
1221 | DEFAULT_wxUSE_OPTIMISE=yes | |
1222 | DEFAULT_wxUSE_PROFILE=no | |
1223 | DEFAULT_wxUSE_NO_DEPS=no | |
1224 | DEFAULT_wxUSE_NO_RTTI=no | |
1225 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1226 | DEFAULT_wxUSE_PERMISSIVE=no | |
1227 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1228 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1229 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1230 | DEFAULT_wxUSE_MEM_TRACING=no | |
1231 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1232 | DEFAULT_wxUSE_DMALLOC=no | |
1233 | DEFAULT_wxUSE_APPLE_IEEE=no | |
1234 | ||
1235 | DEFAULT_wxUSE_LOG=yes | |
1236 | ||
1237 | DEFAULT_wxUSE_GUI=yes | |
1238 | ||
1239 | DEFAULT_wxUSE_ZLIB=no | |
1240 | DEFAULT_wxUSE_LIBPNG=no | |
1241 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1242 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a VZ |
1243 | DEFAULT_wxUSE_ODBC=no |
1244 | ||
1245 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
1246 | DEFAULT_wxUSE_FILE=no | |
1247 | DEFAULT_wxUSE_TEXTFILE=no | |
1248 | DEFAULT_wxUSE_TIMEDATE=no | |
1249 | DEFAULT_wxUSE_WAVE=no | |
1250 | DEFAULT_wxUSE_INTL=no | |
1251 | DEFAULT_wxUSE_CONFIG=no | |
1252 | DEFAULT_wxUSE_STREAMS=no | |
1253 | DEFAULT_wxUSE_SOCKETS=no | |
1254 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
1255 | DEFAULT_wxUSE_SERIAL=no | |
1256 | DEFAULT_wxUSE_JOYSTICK=no | |
1257 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
1258 | DEFAULT_wxUSE_LONGLONG=no | |
1259 | ||
1260 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1261 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1262 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1263 | ||
1264 | DEFAULT_wxUSE_X_RESOURCES=no | |
1265 | DEFAULT_wxUSE_CLIPBOARD=no | |
1266 | DEFAULT_wxUSE_TOOLTIPS=no | |
1267 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
1268 | DEFAULT_wxUSE_SPLINES=no | |
1269 | ||
1270 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1271 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1272 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1273 | ||
1274 | DEFAULT_wxUSE_PROLOGIO=no | |
1275 | DEFAULT_wxUSE_RESOURCES=no | |
1276 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1277 | DEFAULT_wxUSE_IPC=no | |
1278 | DEFAULT_wxUSE_HELP=no | |
1279 | DEFAULT_wxUSE_WXTREE=no | |
1280 | DEFAULT_wxUSE_METAFILE=no | |
1281 | ||
1282 | DEFAULT_wxUSE_COMMONDLGS=no | |
1283 | DEFAULT_wxUSE_DIRDLG=no | |
1284 | DEFAULT_wxUSE_TEXTDLG=no | |
1285 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
1286 | DEFAULT_wxUSE_PROGRESSDLG=no | |
1287 | DEFAULT_wxUSE_MINIFRAME=no | |
1288 | DEFAULT_wxUSE_HTML=no | |
1289 | DEFAULT_wxUSE_FS_INET=no | |
1290 | DEFAULT_wxUSE_FS_ZIP=no | |
1291 | DEFAULT_wxUSE_BUSYINFO=no | |
1292 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1293 | DEFAULT_wxUSE_VALIDATORS=yes | |
1294 | ||
1295 | DEFAULT_wxUSE_ACCEL=no | |
1296 | DEFAULT_wxUSE_CARET=no | |
1297 | DEFAULT_wxUSE_BMPBUTTON=no | |
1298 | DEFAULT_wxUSE_CHECKBOX=no | |
1299 | DEFAULT_wxUSE_CHECKLST=no | |
1300 | DEFAULT_wxUSE_CHOICE=yes | |
1301 | DEFAULT_wxUSE_COMBOBOX=no | |
1302 | DEFAULT_wxUSE_GAUGE=no | |
1303 | DEFAULT_wxUSE_GRID=no | |
1304 | DEFAULT_wxUSE_NEW_GRID=no | |
1305 | DEFAULT_wxUSE_IMAGLIST=no | |
1306 | DEFAULT_wxUSE_LISTBOX=no | |
1307 | DEFAULT_wxUSE_LISTCTRL=no | |
1308 | DEFAULT_wxUSE_NOTEBOOK=no | |
1309 | DEFAULT_wxUSE_RADIOBOX=no | |
1310 | DEFAULT_wxUSE_RADIOBTN=no | |
1311 | DEFAULT_wxUSE_SASH=no | |
1312 | DEFAULT_wxUSE_SCROLLBAR=no | |
1313 | DEFAULT_wxUSE_SLIDER=no | |
1314 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1315 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1316 | DEFAULT_wxUSE_SPLITTER=no |
1317 | DEFAULT_wxUSE_STATBMP=no | |
1318 | DEFAULT_wxUSE_STATBOX=no | |
1319 | DEFAULT_wxUSE_STATLINE=no | |
1320 | DEFAULT_wxUSE_STATUSBAR=yes | |
1321 | DEFAULT_wxUSE_TABDIALOG=no | |
1322 | DEFAULT_wxUSE_TOOLBAR=no | |
360d6699 VZ |
1323 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1324 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
1325 | DEFAULT_wxUSE_TREECTRL=no |
1326 | ||
1327 | DEFAULT_wxUSE_UNICODE=no | |
1328 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1329 | ||
1330 | DEFAULT_wxUSE_GIF=no | |
1331 | DEFAULT_wxUSE_PCX=no | |
1332 | DEFAULT_wxUSE_PNM=no | |
1333 | else | |
1334 | DEFAULT_wxUSE_THREADS=yes | |
1335 | ||
1336 | DEFAULT_wxUSE_SHARED=yes | |
1337 | DEFAULT_wxUSE_OPTIMISE=yes | |
1338 | DEFAULT_wxUSE_PROFILE=no | |
1339 | DEFAULT_wxUSE_NO_DEPS=no | |
1340 | DEFAULT_wxUSE_NO_RTTI=no | |
1341 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1342 | DEFAULT_wxUSE_PERMISSIVE=no | |
1343 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1344 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1345 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1346 | DEFAULT_wxUSE_MEM_TRACING=no | |
1347 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1348 | DEFAULT_wxUSE_DMALLOC=no | |
1349 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
1350 | ||
1351 | DEFAULT_wxUSE_LOG=yes | |
1352 | ||
1353 | DEFAULT_wxUSE_GUI=yes | |
1354 | ||
1355 | DEFAULT_wxUSE_ZLIB=yes | |
1356 | DEFAULT_wxUSE_LIBPNG=yes | |
1357 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1358 | DEFAULT_wxUSE_LIBTIFF=yes |
10f2d63a VZ |
1359 | DEFAULT_wxUSE_ODBC=yes |
1360 | ||
1361 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
1362 | DEFAULT_wxUSE_FILE=yes | |
1363 | DEFAULT_wxUSE_TEXTFILE=yes | |
1364 | DEFAULT_wxUSE_TIMEDATE=yes | |
1365 | DEFAULT_wxUSE_WAVE=no | |
1366 | DEFAULT_wxUSE_INTL=yes | |
1367 | DEFAULT_wxUSE_CONFIG=yes | |
1368 | DEFAULT_wxUSE_STREAMS=yes | |
1369 | DEFAULT_wxUSE_SOCKETS=yes | |
1370 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
1371 | DEFAULT_wxUSE_SERIAL=yes | |
1372 | DEFAULT_wxUSE_JOYSTICK=yes | |
1373 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
b685cd9b | 1374 | DEFAULT_wxUSE_LONGLONG=yes |
10f2d63a VZ |
1375 | |
1376 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1377 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1378 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1379 | ||
1380 | DEFAULT_wxUSE_X_RESOURCES=no | |
1381 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1382 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1383 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
1384 | DEFAULT_wxUSE_SPLINES=yes | |
1385 | ||
1386 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1387 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1388 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1389 | ||
1390 | DEFAULT_wxUSE_PROLOGIO=yes | |
1391 | DEFAULT_wxUSE_RESOURCES=yes | |
1392 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1393 | DEFAULT_wxUSE_IPC=yes | |
1394 | DEFAULT_wxUSE_HELP=yes | |
1395 | DEFAULT_wxUSE_WXTREE=yes | |
1396 | DEFAULT_wxUSE_METAFILE=yes | |
1397 | ||
1398 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1399 | DEFAULT_wxUSE_DIRDLG=yes | |
1400 | DEFAULT_wxUSE_TEXTDLG=yes | |
1401 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
1402 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
1403 | DEFAULT_wxUSE_MINIFRAME=yes | |
1404 | DEFAULT_wxUSE_HTML=yes | |
1405 | DEFAULT_wxUSE_FS_INET=yes | |
1406 | DEFAULT_wxUSE_FS_ZIP=yes | |
1407 | DEFAULT_wxUSE_BUSYINFO=yes | |
1408 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1409 | DEFAULT_wxUSE_VALIDATORS=yes | |
1410 | ||
1411 | DEFAULT_wxUSE_ACCEL=yes | |
1412 | DEFAULT_wxUSE_CARET=yes | |
1413 | DEFAULT_wxUSE_BMPBUTTON=yes | |
1414 | DEFAULT_wxUSE_CHECKBOX=yes | |
1415 | DEFAULT_wxUSE_CHECKLST=yes | |
1416 | DEFAULT_wxUSE_CHOICE=yes | |
1417 | DEFAULT_wxUSE_COMBOBOX=yes | |
1418 | DEFAULT_wxUSE_GAUGE=yes | |
1419 | DEFAULT_wxUSE_GRID=yes | |
fc9c7c09 | 1420 | DEFAULT_wxUSE_NEW_GRID=no |
10f2d63a VZ |
1421 | DEFAULT_wxUSE_IMAGLIST=yes |
1422 | DEFAULT_wxUSE_LISTBOX=yes | |
1423 | DEFAULT_wxUSE_LISTCTRL=yes | |
1424 | DEFAULT_wxUSE_NOTEBOOK=yes | |
1425 | DEFAULT_wxUSE_RADIOBOX=yes | |
1426 | DEFAULT_wxUSE_RADIOBTN=yes | |
1427 | DEFAULT_wxUSE_SASH=yes | |
1428 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1429 | DEFAULT_wxUSE_SLIDER=yes | |
1430 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1431 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1432 | DEFAULT_wxUSE_SPLITTER=yes |
1433 | DEFAULT_wxUSE_STATBMP=yes | |
1434 | DEFAULT_wxUSE_STATBOX=yes | |
1435 | DEFAULT_wxUSE_STATLINE=yes | |
1436 | DEFAULT_wxUSE_STATUSBAR=yes | |
1437 | DEFAULT_wxUSE_TABDIALOG=no | |
1438 | DEFAULT_wxUSE_TOOLBAR=yes | |
360d6699 VZ |
1439 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1440 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
1441 | DEFAULT_wxUSE_TREECTRL=yes |
1442 | ||
1443 | DEFAULT_wxUSE_UNICODE=no | |
1444 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1445 | ||
1446 | DEFAULT_wxUSE_GIF=yes | |
1447 | DEFAULT_wxUSE_PCX=yes | |
1448 | DEFAULT_wxUSE_PNM=yes | |
1449 | fi | |
1450 | ||
1451 | ||
1452 | ||
1453 | for toolkit in `echo $ALL_TOOLKITS`; do | |
1454 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1455 | if test "x$LINE" != x ; then | |
1456 | has_toolkit_in_cache=1 | |
1457 | eval "DEFAULT_$LINE" | |
1458 | eval "CACHE_$toolkit=1" | |
1459 | fi | |
1460 | done | |
1461 | ||
1462 | ||
1463 | ||
1464 | echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6 | |
b12915c1 | 1465 | echo "configure:1466: checking "for --enable-gui"" >&5 |
10f2d63a VZ |
1466 | no_cache=0 |
1467 | # Check whether --enable-gui or --disable-gui was given. | |
1468 | if test "${enable_gui+set}" = set; then | |
1469 | enableval="$enable_gui" | |
1470 | ||
1471 | if test "$enableval" = yes; then | |
1472 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1473 | else | |
1474 | ac_cv_use_gui='wxUSE_GUI=no' | |
1475 | fi | |
1476 | ||
1477 | else | |
1478 | ||
1479 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
1480 | if test "x$LINE" != x ; then | |
1481 | eval "DEFAULT_$LINE" | |
1482 | else | |
1483 | no_cache=1 | |
1484 | fi | |
1485 | ||
1486 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
1487 | ||
1488 | fi | |
1489 | ||
1490 | ||
1491 | eval "$ac_cv_use_gui" | |
1492 | if test "$no_cache" != 1; then | |
1493 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1494 | fi | |
1495 | ||
1496 | if test "$wxUSE_GUI" = yes; then | |
1497 | echo "$ac_t""yes" 1>&6 | |
1498 | else | |
1499 | echo "$ac_t""no" 1>&6 | |
1500 | fi | |
1501 | ||
1502 | ||
b12915c1 | 1503 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a VZ |
1504 | |
1505 | # Check whether --with-gtk or --without-gtk was given. | |
1506 | if test "${with_gtk+set}" = set; then | |
1507 | withval="$with_gtk" | |
1508 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
1509 | fi | |
1510 | ||
1511 | # Check whether --with-motif or --without-motif was given. | |
1512 | if test "${with_motif+set}" = set; then | |
1513 | withval="$with_motif" | |
1514 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
1515 | fi | |
1516 | ||
1517 | # Check whether --with-wine or --without-wine was given. | |
1518 | if test "${with_wine+set}" = set; then | |
1519 | withval="$with_wine" | |
1520 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
1521 | fi | |
1522 | ||
1523 | # Check whether --with-cygwin or --without-cygwin was given. | |
1524 | if test "${with_cygwin+set}" = set; then | |
1525 | withval="$with_cygwin" | |
1526 | wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1 | |
1527 | fi | |
1528 | ||
1529 | # Check whether --with-mingw or --without-mingw was given. | |
1530 | if test "${with_mingw+set}" = set; then | |
1531 | withval="$with_mingw" | |
1532 | wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1 | |
1533 | fi | |
1534 | ||
1535 | ||
1536 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
1537 | if test "${with_gtk_prefix+set}" = set; then | |
1538 | withval="$with_gtk_prefix" | |
1539 | gtk_config_prefix="$withval" | |
1540 | else | |
1541 | gtk_config_prefix="" | |
1542 | fi | |
1543 | ||
1544 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
1545 | if test "${with_gtk_exec_prefix+set}" = set; then | |
1546 | withval="$with_gtk_exec_prefix" | |
1547 | gtk_config_exec_prefix="$withval" | |
1548 | else | |
1549 | gtk_config_exec_prefix="" | |
1550 | fi | |
1551 | ||
1552 | ||
1553 | ||
b12915c1 VZ |
1554 | echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6 |
1555 | echo "configure:1556: checking "for --with-libpng"" >&5 | |
10f2d63a | 1556 | no_cache=0 |
b12915c1 VZ |
1557 | # Check whether --with-libpng or --without-libpng was given. |
1558 | if test "${with_libpng+set}" = set; then | |
1559 | withval="$with_libpng" | |
10f2d63a VZ |
1560 | |
1561 | if test "$withval" = yes; then | |
b12915c1 | 1562 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
10f2d63a | 1563 | else |
b12915c1 | 1564 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
10f2d63a VZ |
1565 | fi |
1566 | ||
1567 | else | |
1568 | ||
b12915c1 | 1569 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1570 | if test "x$LINE" != x ; then |
1571 | eval "DEFAULT_$LINE" | |
1572 | else | |
1573 | no_cache=1 | |
1574 | fi | |
1575 | ||
b12915c1 | 1576 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
10f2d63a VZ |
1577 | |
1578 | fi | |
1579 | ||
1580 | ||
b12915c1 | 1581 | eval "$ac_cv_use_libpng" |
10f2d63a | 1582 | if test "$no_cache" != 1; then |
b12915c1 | 1583 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1584 | fi |
1585 | ||
b12915c1 | 1586 | if test "$wxUSE_LIBPNG" = yes; then |
10f2d63a VZ |
1587 | echo "$ac_t""yes" 1>&6 |
1588 | else | |
1589 | echo "$ac_t""no" 1>&6 | |
1590 | fi | |
1591 | ||
1592 | ||
b12915c1 VZ |
1593 | echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6 |
1594 | echo "configure:1595: checking "for --with-libjpeg"" >&5 | |
10f2d63a | 1595 | no_cache=0 |
b12915c1 VZ |
1596 | # Check whether --with-libjpeg or --without-libjpeg was given. |
1597 | if test "${with_libjpeg+set}" = set; then | |
1598 | withval="$with_libjpeg" | |
10f2d63a VZ |
1599 | |
1600 | if test "$withval" = yes; then | |
b12915c1 | 1601 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
10f2d63a | 1602 | else |
b12915c1 | 1603 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
10f2d63a VZ |
1604 | fi |
1605 | ||
1606 | else | |
1607 | ||
b12915c1 | 1608 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1609 | if test "x$LINE" != x ; then |
1610 | eval "DEFAULT_$LINE" | |
1611 | else | |
1612 | no_cache=1 | |
1613 | fi | |
1614 | ||
b12915c1 | 1615 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
10f2d63a VZ |
1616 | |
1617 | fi | |
1618 | ||
1619 | ||
b12915c1 | 1620 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 1621 | if test "$no_cache" != 1; then |
b12915c1 | 1622 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1623 | fi |
1624 | ||
b12915c1 | 1625 | if test "$wxUSE_LIBJPEG" = yes; then |
10f2d63a VZ |
1626 | echo "$ac_t""yes" 1>&6 |
1627 | else | |
1628 | echo "$ac_t""no" 1>&6 | |
1629 | fi | |
1630 | ||
1631 | ||
b12915c1 VZ |
1632 | echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6 |
1633 | echo "configure:1634: checking "for --with-libtiff"" >&5 | |
10f2d63a | 1634 | no_cache=0 |
b12915c1 VZ |
1635 | # Check whether --with-libtiff or --without-libtiff was given. |
1636 | if test "${with_libtiff+set}" = set; then | |
1637 | withval="$with_libtiff" | |
10f2d63a VZ |
1638 | |
1639 | if test "$withval" = yes; then | |
b12915c1 | 1640 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
10f2d63a | 1641 | else |
b12915c1 | 1642 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
10f2d63a VZ |
1643 | fi |
1644 | ||
1645 | else | |
1646 | ||
b12915c1 | 1647 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
1648 | if test "x$LINE" != x ; then |
1649 | eval "DEFAULT_$LINE" | |
1650 | else | |
1651 | no_cache=1 | |
1652 | fi | |
1653 | ||
b12915c1 | 1654 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
10f2d63a VZ |
1655 | |
1656 | fi | |
1657 | ||
1658 | ||
b12915c1 | 1659 | eval "$ac_cv_use_libtiff" |
10f2d63a | 1660 | if test "$no_cache" != 1; then |
b12915c1 | 1661 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1662 | fi |
1663 | ||
b12915c1 | 1664 | if test "$wxUSE_LIBTIFF" = yes; then |
10f2d63a VZ |
1665 | echo "$ac_t""yes" 1>&6 |
1666 | else | |
1667 | echo "$ac_t""no" 1>&6 | |
1668 | fi | |
1669 | ||
1670 | ||
b12915c1 VZ |
1671 | echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6 |
1672 | echo "configure:1673: checking "for --with-opengl"" >&5 | |
10f2d63a | 1673 | no_cache=0 |
b12915c1 VZ |
1674 | # Check whether --with-opengl or --without-opengl was given. |
1675 | if test "${with_opengl+set}" = set; then | |
1676 | withval="$with_opengl" | |
10f2d63a VZ |
1677 | |
1678 | if test "$withval" = yes; then | |
b12915c1 | 1679 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 1680 | else |
b12915c1 | 1681 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a VZ |
1682 | fi |
1683 | ||
1684 | else | |
1685 | ||
b12915c1 | 1686 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
1687 | if test "x$LINE" != x ; then |
1688 | eval "DEFAULT_$LINE" | |
1689 | else | |
1690 | no_cache=1 | |
1691 | fi | |
1692 | ||
b12915c1 | 1693 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
10f2d63a VZ |
1694 | |
1695 | fi | |
1696 | ||
1697 | ||
b12915c1 | 1698 | eval "$ac_cv_use_opengl" |
10f2d63a | 1699 | if test "$no_cache" != 1; then |
b12915c1 | 1700 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1701 | fi |
1702 | ||
b12915c1 | 1703 | if test "$wxUSE_OPENGL" = yes; then |
10f2d63a VZ |
1704 | echo "$ac_t""yes" 1>&6 |
1705 | else | |
1706 | echo "$ac_t""no" 1>&6 | |
1707 | fi | |
1708 | ||
1709 | ||
b12915c1 VZ |
1710 | fi |
1711 | ||
1712 | ||
1713 | echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6 | |
1714 | echo "configure:1715: checking "for --with-dmalloc"" >&5 | |
c7a2bf27 | 1715 | no_cache=0 |
b12915c1 VZ |
1716 | # Check whether --with-dmalloc or --without-dmalloc was given. |
1717 | if test "${with_dmalloc+set}" = set; then | |
1718 | withval="$with_dmalloc" | |
c7a2bf27 RR |
1719 | |
1720 | if test "$withval" = yes; then | |
b12915c1 | 1721 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 1722 | else |
b12915c1 | 1723 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 RR |
1724 | fi |
1725 | ||
1726 | else | |
1727 | ||
b12915c1 | 1728 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
1729 | if test "x$LINE" != x ; then |
1730 | eval "DEFAULT_$LINE" | |
1731 | else | |
1732 | no_cache=1 | |
1733 | fi | |
1734 | ||
b12915c1 | 1735 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
c7a2bf27 RR |
1736 | |
1737 | fi | |
1738 | ||
1739 | ||
b12915c1 | 1740 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 1741 | if test "$no_cache" != 1; then |
b12915c1 | 1742 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
1743 | fi |
1744 | ||
b12915c1 | 1745 | if test "$wxUSE_DMALLOC" = yes; then |
c7a2bf27 RR |
1746 | echo "$ac_t""yes" 1>&6 |
1747 | else | |
1748 | echo "$ac_t""no" 1>&6 | |
1749 | fi | |
1750 | ||
1751 | ||
b12915c1 VZ |
1752 | echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6 |
1753 | echo "configure:1754: checking "for --with-zlib"" >&5 | |
10f2d63a | 1754 | no_cache=0 |
b12915c1 VZ |
1755 | # Check whether --with-zlib or --without-zlib was given. |
1756 | if test "${with_zlib+set}" = set; then | |
1757 | withval="$with_zlib" | |
10f2d63a VZ |
1758 | |
1759 | if test "$withval" = yes; then | |
b12915c1 | 1760 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
10f2d63a | 1761 | else |
b12915c1 | 1762 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
10f2d63a VZ |
1763 | fi |
1764 | ||
1765 | else | |
1766 | ||
b12915c1 | 1767 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
1768 | if test "x$LINE" != x ; then |
1769 | eval "DEFAULT_$LINE" | |
1770 | else | |
1771 | no_cache=1 | |
1772 | fi | |
1773 | ||
b12915c1 | 1774 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
10f2d63a VZ |
1775 | |
1776 | fi | |
1777 | ||
1778 | ||
b12915c1 | 1779 | eval "$ac_cv_use_zlib" |
10f2d63a | 1780 | if test "$no_cache" != 1; then |
b12915c1 | 1781 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1782 | fi |
1783 | ||
b12915c1 | 1784 | if test "$wxUSE_ZLIB" = yes; then |
10f2d63a VZ |
1785 | echo "$ac_t""yes" 1>&6 |
1786 | else | |
1787 | echo "$ac_t""no" 1>&6 | |
1788 | fi | |
1789 | ||
1790 | ||
1791 | echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6 | |
b12915c1 | 1792 | echo "configure:1793: checking "for --with-odbc"" >&5 |
10f2d63a VZ |
1793 | no_cache=0 |
1794 | # Check whether --with-odbc or --without-odbc was given. | |
1795 | if test "${with_odbc+set}" = set; then | |
1796 | withval="$with_odbc" | |
1797 | ||
1798 | if test "$withval" = yes; then | |
1799 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
1800 | else | |
1801 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
1802 | fi | |
1803 | ||
1804 | else | |
1805 | ||
1806 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
1807 | if test "x$LINE" != x ; then | |
1808 | eval "DEFAULT_$LINE" | |
1809 | else | |
1810 | no_cache=1 | |
1811 | fi | |
1812 | ||
1813 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
1814 | ||
1815 | fi | |
1816 | ||
1817 | ||
1818 | eval "$ac_cv_use_odbc" | |
1819 | if test "$no_cache" != 1; then | |
1820 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
1821 | fi | |
1822 | ||
1823 | if test "$wxUSE_ODBC" = yes; then | |
1824 | echo "$ac_t""yes" 1>&6 | |
1825 | else | |
1826 | echo "$ac_t""no" 1>&6 | |
1827 | fi | |
1828 | ||
1829 | ||
1830 | ||
1831 | ||
1832 | ||
1833 | echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6 | |
b12915c1 | 1834 | echo "configure:1835: checking "for --enable-shared"" >&5 |
10f2d63a VZ |
1835 | no_cache=0 |
1836 | # Check whether --enable-shared or --disable-shared was given. | |
1837 | if test "${enable_shared+set}" = set; then | |
1838 | enableval="$enable_shared" | |
1839 | ||
1840 | if test "$enableval" = yes; then | |
1841 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
1842 | else | |
1843 | ac_cv_use_shared='wxUSE_SHARED=no' | |
1844 | fi | |
1845 | ||
1846 | else | |
1847 | ||
1848 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
1849 | if test "x$LINE" != x ; then | |
1850 | eval "DEFAULT_$LINE" | |
1851 | else | |
1852 | no_cache=1 | |
1853 | fi | |
1854 | ||
1855 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
1856 | ||
1857 | fi | |
1858 | ||
1859 | ||
1860 | eval "$ac_cv_use_shared" | |
1861 | if test "$no_cache" != 1; then | |
1862 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
1863 | fi | |
1864 | ||
1865 | if test "$wxUSE_SHARED" = yes; then | |
1866 | echo "$ac_t""yes" 1>&6 | |
1867 | else | |
1868 | echo "$ac_t""no" 1>&6 | |
1869 | fi | |
1870 | ||
1871 | ||
1872 | echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6 | |
b12915c1 | 1873 | echo "configure:1874: checking "for --enable-optimise"" >&5 |
10f2d63a VZ |
1874 | no_cache=0 |
1875 | # Check whether --enable-optimise or --disable-optimise was given. | |
1876 | if test "${enable_optimise+set}" = set; then | |
1877 | enableval="$enable_optimise" | |
1878 | ||
1879 | if test "$enableval" = yes; then | |
1880 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
1881 | else | |
1882 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
1883 | fi | |
1884 | ||
1885 | else | |
1886 | ||
1887 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
1888 | if test "x$LINE" != x ; then | |
1889 | eval "DEFAULT_$LINE" | |
1890 | else | |
1891 | no_cache=1 | |
1892 | fi | |
1893 | ||
1894 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
1895 | ||
1896 | fi | |
1897 | ||
1898 | ||
1899 | eval "$ac_cv_use_optimise" | |
1900 | if test "$no_cache" != 1; then | |
1901 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
1902 | fi | |
1903 | ||
1904 | if test "$wxUSE_OPTIMISE" = yes; then | |
1905 | echo "$ac_t""yes" 1>&6 | |
1906 | else | |
1907 | echo "$ac_t""no" 1>&6 | |
1908 | fi | |
1909 | ||
1910 | ||
1911 | echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6 | |
b12915c1 | 1912 | echo "configure:1913: checking "for --enable-debug"" >&5 |
10f2d63a VZ |
1913 | no_cache=0 |
1914 | # Check whether --enable-debug or --disable-debug was given. | |
1915 | if test "${enable_debug+set}" = set; then | |
1916 | enableval="$enable_debug" | |
1917 | ||
1918 | if test "$enableval" = yes; then | |
1919 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
1920 | else | |
1921 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
1922 | fi | |
1923 | ||
1924 | else | |
1925 | ||
1926 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
1927 | if test "x$LINE" != x ; then | |
1928 | eval "DEFAULT_$LINE" | |
1929 | else | |
1930 | no_cache=1 | |
1931 | fi | |
1932 | ||
1933 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
1934 | ||
1935 | fi | |
1936 | ||
1937 | ||
1938 | eval "$ac_cv_use_debug" | |
1939 | if test "$no_cache" != 1; then | |
1940 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
1941 | fi | |
1942 | ||
1943 | if test "$wxUSE_DEBUG" = yes; then | |
1944 | echo "$ac_t""yes" 1>&6 | |
1945 | else | |
1946 | echo "$ac_t""no" 1>&6 | |
1947 | fi | |
1948 | ||
1949 | ||
1950 | if test "$wxUSE_DEBUG" = "yes"; then | |
1951 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1952 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1953 | elif test "$wxUSE_DEBUG" = "no"; then | |
1954 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1955 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1956 | fi | |
1957 | ||
1958 | ||
1959 | echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6 | |
b12915c1 | 1960 | echo "configure:1961: checking "for --enable-debug_flag"" >&5 |
10f2d63a VZ |
1961 | no_cache=0 |
1962 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
1963 | if test "${enable_debug_flag+set}" = set; then | |
1964 | enableval="$enable_debug_flag" | |
1965 | ||
1966 | if test "$enableval" = yes; then | |
1967 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
1968 | else | |
1969 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
1970 | fi | |
1971 | ||
1972 | else | |
1973 | ||
1974 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
1975 | if test "x$LINE" != x ; then | |
1976 | eval "DEFAULT_$LINE" | |
1977 | else | |
1978 | no_cache=1 | |
1979 | fi | |
1980 | ||
1981 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
1982 | ||
1983 | fi | |
1984 | ||
1985 | ||
1986 | eval "$ac_cv_use_debug_flag" | |
1987 | if test "$no_cache" != 1; then | |
1988 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
1989 | fi | |
1990 | ||
1991 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
1992 | echo "$ac_t""yes" 1>&6 | |
1993 | else | |
1994 | echo "$ac_t""no" 1>&6 | |
1995 | fi | |
1996 | ||
1997 | ||
1998 | echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6 | |
b12915c1 | 1999 | echo "configure:2000: checking "for --enable-debug_info"" >&5 |
10f2d63a VZ |
2000 | no_cache=0 |
2001 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2002 | if test "${enable_debug_info+set}" = set; then | |
2003 | enableval="$enable_debug_info" | |
2004 | ||
2005 | if test "$enableval" = yes; then | |
2006 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2007 | else | |
2008 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2009 | fi | |
2010 | ||
2011 | else | |
2012 | ||
2013 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
2014 | if test "x$LINE" != x ; then | |
2015 | eval "DEFAULT_$LINE" | |
2016 | else | |
2017 | no_cache=1 | |
2018 | fi | |
2019 | ||
2020 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
2021 | ||
2022 | fi | |
2023 | ||
2024 | ||
2025 | eval "$ac_cv_use_debug_info" | |
2026 | if test "$no_cache" != 1; then | |
2027 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2028 | fi | |
2029 | ||
2030 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
2031 | echo "$ac_t""yes" 1>&6 | |
2032 | else | |
2033 | echo "$ac_t""no" 1>&6 | |
2034 | fi | |
2035 | ||
2036 | ||
2037 | echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6 | |
b12915c1 | 2038 | echo "configure:2039: checking "for --enable-debug_gdb"" >&5 |
10f2d63a VZ |
2039 | no_cache=0 |
2040 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2041 | if test "${enable_debug_gdb+set}" = set; then | |
2042 | enableval="$enable_debug_gdb" | |
2043 | ||
2044 | if test "$enableval" = yes; then | |
2045 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2046 | else | |
2047 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2048 | fi | |
2049 | ||
2050 | else | |
2051 | ||
2052 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
2053 | if test "x$LINE" != x ; then | |
2054 | eval "DEFAULT_$LINE" | |
2055 | else | |
2056 | no_cache=1 | |
2057 | fi | |
2058 | ||
2059 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
2060 | ||
2061 | fi | |
2062 | ||
2063 | ||
2064 | eval "$ac_cv_use_debug_gdb" | |
2065 | if test "$no_cache" != 1; then | |
2066 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2067 | fi | |
2068 | ||
2069 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
2070 | echo "$ac_t""yes" 1>&6 | |
2071 | else | |
2072 | echo "$ac_t""no" 1>&6 | |
2073 | fi | |
2074 | ||
2075 | ||
2076 | echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6 | |
b12915c1 | 2077 | echo "configure:2078: checking "for --enable-debug_cntxt"" >&5 |
10f2d63a VZ |
2078 | no_cache=0 |
2079 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2080 | if test "${enable_debug_cntxt+set}" = set; then | |
2081 | enableval="$enable_debug_cntxt" | |
2082 | ||
2083 | if test "$enableval" = yes; then | |
2084 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2085 | else | |
2086 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2087 | fi | |
2088 | ||
2089 | else | |
2090 | ||
2091 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
2092 | if test "x$LINE" != x ; then | |
2093 | eval "DEFAULT_$LINE" | |
2094 | else | |
2095 | no_cache=1 | |
2096 | fi | |
2097 | ||
2098 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
2099 | ||
2100 | fi | |
2101 | ||
2102 | ||
2103 | eval "$ac_cv_use_debug_cntxt" | |
2104 | if test "$no_cache" != 1; then | |
2105 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2106 | fi | |
2107 | ||
2108 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
2109 | echo "$ac_t""yes" 1>&6 | |
2110 | else | |
2111 | echo "$ac_t""no" 1>&6 | |
2112 | fi | |
2113 | ||
2114 | ||
2115 | echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6 | |
b12915c1 | 2116 | echo "configure:2117: checking "for --enable-mem_tracing"" >&5 |
10f2d63a VZ |
2117 | no_cache=0 |
2118 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2119 | if test "${enable_mem_tracing+set}" = set; then | |
2120 | enableval="$enable_mem_tracing" | |
2121 | ||
2122 | if test "$enableval" = yes; then | |
2123 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2124 | else | |
2125 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2126 | fi | |
2127 | ||
2128 | else | |
2129 | ||
2130 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
2131 | if test "x$LINE" != x ; then | |
2132 | eval "DEFAULT_$LINE" | |
2133 | else | |
2134 | no_cache=1 | |
2135 | fi | |
2136 | ||
2137 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
2138 | ||
2139 | fi | |
2140 | ||
2141 | ||
2142 | eval "$ac_cv_use_mem_tracing" | |
2143 | if test "$no_cache" != 1; then | |
2144 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2145 | fi | |
2146 | ||
2147 | if test "$wxUSE_MEM_TRACING" = yes; then | |
2148 | echo "$ac_t""yes" 1>&6 | |
2149 | else | |
2150 | echo "$ac_t""no" 1>&6 | |
2151 | fi | |
2152 | ||
2153 | ||
2154 | echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6 | |
b12915c1 | 2155 | echo "configure:2156: checking "for --enable-profile"" >&5 |
10f2d63a VZ |
2156 | no_cache=0 |
2157 | # Check whether --enable-profile or --disable-profile was given. | |
2158 | if test "${enable_profile+set}" = set; then | |
2159 | enableval="$enable_profile" | |
2160 | ||
2161 | if test "$enableval" = yes; then | |
2162 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2163 | else | |
2164 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2165 | fi | |
2166 | ||
2167 | else | |
2168 | ||
2169 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
2170 | if test "x$LINE" != x ; then | |
2171 | eval "DEFAULT_$LINE" | |
2172 | else | |
2173 | no_cache=1 | |
2174 | fi | |
2175 | ||
2176 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
2177 | ||
2178 | fi | |
2179 | ||
2180 | ||
2181 | eval "$ac_cv_use_profile" | |
2182 | if test "$no_cache" != 1; then | |
2183 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2184 | fi | |
2185 | ||
2186 | if test "$wxUSE_PROFILE" = yes; then | |
2187 | echo "$ac_t""yes" 1>&6 | |
2188 | else | |
2189 | echo "$ac_t""no" 1>&6 | |
2190 | fi | |
2191 | ||
2192 | ||
2193 | echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6 | |
b12915c1 | 2194 | echo "configure:2195: checking "for --enable-no_rtti"" >&5 |
10f2d63a VZ |
2195 | no_cache=0 |
2196 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2197 | if test "${enable_no_rtti+set}" = set; then | |
2198 | enableval="$enable_no_rtti" | |
2199 | ||
2200 | if test "$enableval" = yes; then | |
2201 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2202 | else | |
2203 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2204 | fi | |
2205 | ||
2206 | else | |
2207 | ||
2208 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
2209 | if test "x$LINE" != x ; then | |
2210 | eval "DEFAULT_$LINE" | |
2211 | else | |
2212 | no_cache=1 | |
2213 | fi | |
2214 | ||
2215 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
2216 | ||
2217 | fi | |
2218 | ||
2219 | ||
2220 | eval "$ac_cv_use_no_rtti" | |
2221 | if test "$no_cache" != 1; then | |
2222 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2223 | fi | |
2224 | ||
2225 | if test "$wxUSE_NO_RTTI" = yes; then | |
2226 | echo "$ac_t""yes" 1>&6 | |
2227 | else | |
2228 | echo "$ac_t""no" 1>&6 | |
2229 | fi | |
2230 | ||
2231 | ||
2232 | echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6 | |
b12915c1 | 2233 | echo "configure:2234: checking "for --enable-no_exceptions"" >&5 |
10f2d63a VZ |
2234 | no_cache=0 |
2235 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2236 | if test "${enable_no_exceptions+set}" = set; then | |
2237 | enableval="$enable_no_exceptions" | |
2238 | ||
2239 | if test "$enableval" = yes; then | |
2240 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2241 | else | |
2242 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2243 | fi | |
2244 | ||
2245 | else | |
2246 | ||
2247 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
2248 | if test "x$LINE" != x ; then | |
2249 | eval "DEFAULT_$LINE" | |
2250 | else | |
2251 | no_cache=1 | |
2252 | fi | |
2253 | ||
2254 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
2255 | ||
2256 | fi | |
2257 | ||
2258 | ||
2259 | eval "$ac_cv_use_no_exceptions" | |
2260 | if test "$no_cache" != 1; then | |
2261 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2262 | fi | |
2263 | ||
2264 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
2265 | echo "$ac_t""yes" 1>&6 | |
2266 | else | |
2267 | echo "$ac_t""no" 1>&6 | |
2268 | fi | |
2269 | ||
2270 | ||
2271 | echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6 | |
b12915c1 | 2272 | echo "configure:2273: checking "for --enable-permissive"" >&5 |
10f2d63a VZ |
2273 | no_cache=0 |
2274 | # Check whether --enable-permissive or --disable-permissive was given. | |
2275 | if test "${enable_permissive+set}" = set; then | |
2276 | enableval="$enable_permissive" | |
2277 | ||
2278 | if test "$enableval" = yes; then | |
2279 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2280 | else | |
2281 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2282 | fi | |
2283 | ||
2284 | else | |
2285 | ||
2286 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
2287 | if test "x$LINE" != x ; then | |
2288 | eval "DEFAULT_$LINE" | |
2289 | else | |
2290 | no_cache=1 | |
2291 | fi | |
2292 | ||
2293 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
2294 | ||
2295 | fi | |
2296 | ||
2297 | ||
2298 | eval "$ac_cv_use_permissive" | |
2299 | if test "$no_cache" != 1; then | |
2300 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2301 | fi | |
2302 | ||
2303 | if test "$wxUSE_PERMISSIVE" = yes; then | |
2304 | echo "$ac_t""yes" 1>&6 | |
2305 | else | |
2306 | echo "$ac_t""no" 1>&6 | |
2307 | fi | |
2308 | ||
2309 | ||
2310 | echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6 | |
b12915c1 | 2311 | echo "configure:2312: checking "for --enable-no_deps"" >&5 |
10f2d63a VZ |
2312 | no_cache=0 |
2313 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2314 | if test "${enable_no_deps+set}" = set; then | |
2315 | enableval="$enable_no_deps" | |
2316 | ||
2317 | if test "$enableval" = yes; then | |
2318 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2319 | else | |
2320 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2321 | fi | |
2322 | ||
2323 | else | |
2324 | ||
2325 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
2326 | if test "x$LINE" != x ; then | |
2327 | eval "DEFAULT_$LINE" | |
2328 | else | |
2329 | no_cache=1 | |
2330 | fi | |
2331 | ||
2332 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
2333 | ||
2334 | fi | |
2335 | ||
2336 | ||
2337 | eval "$ac_cv_use_no_deps" | |
2338 | if test "$no_cache" != 1; then | |
2339 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2340 | fi | |
2341 | ||
2342 | if test "$wxUSE_NO_DEPS" = yes; then | |
2343 | echo "$ac_t""yes" 1>&6 | |
2344 | else | |
2345 | echo "$ac_t""no" 1>&6 | |
2346 | fi | |
2347 | ||
2348 | ||
2349 | ||
2350 | ||
2351 | echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6 | |
b12915c1 | 2352 | echo "configure:2353: checking "for --enable-intl"" >&5 |
10f2d63a VZ |
2353 | no_cache=0 |
2354 | # Check whether --enable-intl or --disable-intl was given. | |
2355 | if test "${enable_intl+set}" = set; then | |
2356 | enableval="$enable_intl" | |
2357 | ||
2358 | if test "$enableval" = yes; then | |
2359 | ac_cv_use_intl='wxUSE_INTL=yes' | |
2360 | else | |
2361 | ac_cv_use_intl='wxUSE_INTL=no' | |
2362 | fi | |
2363 | ||
2364 | else | |
2365 | ||
2366 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
2367 | if test "x$LINE" != x ; then | |
2368 | eval "DEFAULT_$LINE" | |
2369 | else | |
2370 | no_cache=1 | |
2371 | fi | |
2372 | ||
2373 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
2374 | ||
2375 | fi | |
2376 | ||
2377 | ||
2378 | eval "$ac_cv_use_intl" | |
2379 | if test "$no_cache" != 1; then | |
2380 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
2381 | fi | |
2382 | ||
2383 | if test "$wxUSE_INTL" = yes; then | |
2384 | echo "$ac_t""yes" 1>&6 | |
2385 | else | |
2386 | echo "$ac_t""no" 1>&6 | |
2387 | fi | |
2388 | ||
2389 | ||
2390 | echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6 | |
b12915c1 | 2391 | echo "configure:2392: checking "for --enable-config"" >&5 |
10f2d63a VZ |
2392 | no_cache=0 |
2393 | # Check whether --enable-config or --disable-config was given. | |
2394 | if test "${enable_config+set}" = set; then | |
2395 | enableval="$enable_config" | |
2396 | ||
2397 | if test "$enableval" = yes; then | |
2398 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
2399 | else | |
2400 | ac_cv_use_config='wxUSE_CONFIG=no' | |
2401 | fi | |
2402 | ||
2403 | else | |
2404 | ||
2405 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
2406 | if test "x$LINE" != x ; then | |
2407 | eval "DEFAULT_$LINE" | |
2408 | else | |
2409 | no_cache=1 | |
2410 | fi | |
2411 | ||
2412 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
2413 | ||
2414 | fi | |
2415 | ||
2416 | ||
2417 | eval "$ac_cv_use_config" | |
2418 | if test "$no_cache" != 1; then | |
2419 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
2420 | fi | |
2421 | ||
2422 | if test "$wxUSE_CONFIG" = yes; then | |
2423 | echo "$ac_t""yes" 1>&6 | |
2424 | else | |
2425 | echo "$ac_t""no" 1>&6 | |
2426 | fi | |
2427 | ||
2428 | ||
b12915c1 VZ |
2429 | if test "$wxUSE_GUI" = "yes"; then |
2430 | ||
10f2d63a | 2431 | echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6 |
b12915c1 | 2432 | echo "configure:2433: checking "for --enable-sockets"" >&5 |
10f2d63a VZ |
2433 | no_cache=0 |
2434 | # Check whether --enable-sockets or --disable-sockets was given. | |
2435 | if test "${enable_sockets+set}" = set; then | |
2436 | enableval="$enable_sockets" | |
2437 | ||
2438 | if test "$enableval" = yes; then | |
2439 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
2440 | else | |
2441 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
2442 | fi | |
2443 | ||
2444 | else | |
2445 | ||
2446 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
2447 | if test "x$LINE" != x ; then | |
2448 | eval "DEFAULT_$LINE" | |
2449 | else | |
2450 | no_cache=1 | |
2451 | fi | |
2452 | ||
2453 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
2454 | ||
2455 | fi | |
2456 | ||
2457 | ||
2458 | eval "$ac_cv_use_sockets" | |
2459 | if test "$no_cache" != 1; then | |
2460 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
2461 | fi | |
2462 | ||
2463 | if test "$wxUSE_SOCKETS" = yes; then | |
2464 | echo "$ac_t""yes" 1>&6 | |
2465 | else | |
2466 | echo "$ac_t""no" 1>&6 | |
2467 | fi | |
2468 | ||
b12915c1 VZ |
2469 | else |
2470 | wxUSE_SOCKETS=no | |
2471 | fi | |
2472 | ||
10f2d63a VZ |
2473 | |
2474 | echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6 | |
b12915c1 | 2475 | echo "configure:2476: checking "for --enable-dialupman"" >&5 |
10f2d63a VZ |
2476 | no_cache=0 |
2477 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
2478 | if test "${enable_dialupman+set}" = set; then | |
2479 | enableval="$enable_dialupman" | |
2480 | ||
2481 | if test "$enableval" = yes; then | |
2482 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
2483 | else | |
2484 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
2485 | fi | |
2486 | ||
2487 | else | |
2488 | ||
2489 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
2490 | if test "x$LINE" != x ; then | |
2491 | eval "DEFAULT_$LINE" | |
2492 | else | |
2493 | no_cache=1 | |
2494 | fi | |
2495 | ||
2496 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
2497 | ||
2498 | fi | |
2499 | ||
2500 | ||
2501 | eval "$ac_cv_use_dialupman" | |
2502 | if test "$no_cache" != 1; then | |
2503 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
2504 | fi | |
2505 | ||
2506 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
2507 | echo "$ac_t""yes" 1>&6 | |
2508 | else | |
2509 | echo "$ac_t""no" 1>&6 | |
2510 | fi | |
2511 | ||
2512 | ||
2513 | echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6 | |
b12915c1 | 2514 | echo "configure:2515: checking "for --enable-ipc"" >&5 |
10f2d63a VZ |
2515 | no_cache=0 |
2516 | # Check whether --enable-ipc or --disable-ipc was given. | |
2517 | if test "${enable_ipc+set}" = set; then | |
2518 | enableval="$enable_ipc" | |
2519 | ||
2520 | if test "$enableval" = yes; then | |
2521 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
2522 | else | |
2523 | ac_cv_use_ipc='wxUSE_IPC=no' | |
2524 | fi | |
2525 | ||
2526 | else | |
2527 | ||
2528 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
2529 | if test "x$LINE" != x ; then | |
2530 | eval "DEFAULT_$LINE" | |
2531 | else | |
2532 | no_cache=1 | |
2533 | fi | |
2534 | ||
2535 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
2536 | ||
2537 | fi | |
2538 | ||
2539 | ||
2540 | eval "$ac_cv_use_ipc" | |
2541 | if test "$no_cache" != 1; then | |
2542 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
2543 | fi | |
2544 | ||
2545 | if test "$wxUSE_IPC" = yes; then | |
2546 | echo "$ac_t""yes" 1>&6 | |
2547 | else | |
2548 | echo "$ac_t""no" 1>&6 | |
2549 | fi | |
2550 | ||
2551 | ||
2552 | echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6 | |
b12915c1 | 2553 | echo "configure:2554: checking "for --enable-apple_ieee"" >&5 |
10f2d63a VZ |
2554 | no_cache=0 |
2555 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
2556 | if test "${enable_apple_ieee+set}" = set; then | |
2557 | enableval="$enable_apple_ieee" | |
2558 | ||
2559 | if test "$enableval" = yes; then | |
2560 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
2561 | else | |
2562 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
2563 | fi | |
2564 | ||
2565 | else | |
2566 | ||
2567 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
2568 | if test "x$LINE" != x ; then | |
2569 | eval "DEFAULT_$LINE" | |
2570 | else | |
2571 | no_cache=1 | |
2572 | fi | |
2573 | ||
2574 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
2575 | ||
2576 | fi | |
2577 | ||
2578 | ||
2579 | eval "$ac_cv_use_apple_ieee" | |
2580 | if test "$no_cache" != 1; then | |
2581 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
2582 | fi | |
2583 | ||
2584 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
2585 | echo "$ac_t""yes" 1>&6 | |
2586 | else | |
2587 | echo "$ac_t""no" 1>&6 | |
2588 | fi | |
2589 | ||
2590 | ||
2591 | echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6 | |
b12915c1 | 2592 | echo "configure:2593: checking "for --enable-timedate"" >&5 |
10f2d63a VZ |
2593 | no_cache=0 |
2594 | # Check whether --enable-timedate or --disable-timedate was given. | |
2595 | if test "${enable_timedate+set}" = set; then | |
2596 | enableval="$enable_timedate" | |
2597 | ||
2598 | if test "$enableval" = yes; then | |
2599 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
2600 | else | |
2601 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
2602 | fi | |
2603 | ||
2604 | else | |
2605 | ||
2606 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
2607 | if test "x$LINE" != x ; then | |
2608 | eval "DEFAULT_$LINE" | |
2609 | else | |
2610 | no_cache=1 | |
2611 | fi | |
2612 | ||
2613 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
2614 | ||
2615 | fi | |
2616 | ||
2617 | ||
2618 | eval "$ac_cv_use_timedate" | |
2619 | if test "$no_cache" != 1; then | |
2620 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
2621 | fi | |
2622 | ||
2623 | if test "$wxUSE_TIMEDATE" = yes; then | |
2624 | echo "$ac_t""yes" 1>&6 | |
2625 | else | |
2626 | echo "$ac_t""no" 1>&6 | |
2627 | fi | |
2628 | ||
2629 | ||
2630 | echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6 | |
b12915c1 | 2631 | echo "configure:2632: checking "for --enable-wave"" >&5 |
10f2d63a VZ |
2632 | no_cache=0 |
2633 | # Check whether --enable-wave or --disable-wave was given. | |
2634 | if test "${enable_wave+set}" = set; then | |
2635 | enableval="$enable_wave" | |
2636 | ||
2637 | if test "$enableval" = yes; then | |
2638 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
2639 | else | |
2640 | ac_cv_use_wave='wxUSE_WAVE=no' | |
2641 | fi | |
2642 | ||
2643 | else | |
2644 | ||
2645 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` | |
2646 | if test "x$LINE" != x ; then | |
2647 | eval "DEFAULT_$LINE" | |
2648 | else | |
2649 | no_cache=1 | |
2650 | fi | |
2651 | ||
2652 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
2653 | ||
2654 | fi | |
2655 | ||
2656 | ||
2657 | eval "$ac_cv_use_wave" | |
2658 | if test "$no_cache" != 1; then | |
2659 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
2660 | fi | |
2661 | ||
2662 | if test "$wxUSE_WAVE" = yes; then | |
2663 | echo "$ac_t""yes" 1>&6 | |
2664 | else | |
2665 | echo "$ac_t""no" 1>&6 | |
2666 | fi | |
2667 | ||
2668 | ||
2669 | echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6 | |
b12915c1 | 2670 | echo "configure:2671: checking "for --enable-fraction"" >&5 |
10f2d63a VZ |
2671 | no_cache=0 |
2672 | # Check whether --enable-fraction or --disable-fraction was given. | |
2673 | if test "${enable_fraction+set}" = set; then | |
2674 | enableval="$enable_fraction" | |
2675 | ||
2676 | if test "$enableval" = yes; then | |
2677 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
2678 | else | |
2679 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
2680 | fi | |
2681 | ||
2682 | else | |
2683 | ||
2684 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` | |
2685 | if test "x$LINE" != x ; then | |
2686 | eval "DEFAULT_$LINE" | |
2687 | else | |
2688 | no_cache=1 | |
2689 | fi | |
2690 | ||
2691 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
2692 | ||
2693 | fi | |
2694 | ||
2695 | ||
2696 | eval "$ac_cv_use_fraction" | |
2697 | if test "$no_cache" != 1; then | |
2698 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
2699 | fi | |
2700 | ||
2701 | if test "$wxUSE_FRACTION" = yes; then | |
2702 | echo "$ac_t""yes" 1>&6 | |
2703 | else | |
2704 | echo "$ac_t""no" 1>&6 | |
2705 | fi | |
2706 | ||
2707 | ||
2708 | echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6 | |
b12915c1 | 2709 | echo "configure:2710: checking "for --enable-dynlib"" >&5 |
10f2d63a VZ |
2710 | no_cache=0 |
2711 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
2712 | if test "${enable_dynlib+set}" = set; then | |
2713 | enableval="$enable_dynlib" | |
2714 | ||
2715 | if test "$enableval" = yes; then | |
2716 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
2717 | else | |
2718 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
2719 | fi | |
2720 | ||
2721 | else | |
2722 | ||
2723 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
2724 | if test "x$LINE" != x ; then | |
2725 | eval "DEFAULT_$LINE" | |
2726 | else | |
2727 | no_cache=1 | |
2728 | fi | |
2729 | ||
2730 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
2731 | ||
2732 | fi | |
2733 | ||
2734 | ||
2735 | eval "$ac_cv_use_dynlib" | |
2736 | if test "$no_cache" != 1; then | |
2737 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
2738 | fi | |
2739 | ||
2740 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
2741 | echo "$ac_t""yes" 1>&6 | |
2742 | else | |
2743 | echo "$ac_t""no" 1>&6 | |
2744 | fi | |
2745 | ||
2746 | ||
2747 | echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6 | |
b12915c1 | 2748 | echo "configure:2749: checking "for --enable-longlong"" >&5 |
10f2d63a VZ |
2749 | no_cache=0 |
2750 | # Check whether --enable-longlong or --disable-longlong was given. | |
2751 | if test "${enable_longlong+set}" = set; then | |
2752 | enableval="$enable_longlong" | |
2753 | ||
2754 | if test "$enableval" = yes; then | |
2755 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
2756 | else | |
2757 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
2758 | fi | |
2759 | ||
2760 | else | |
2761 | ||
2762 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
2763 | if test "x$LINE" != x ; then | |
2764 | eval "DEFAULT_$LINE" | |
2765 | else | |
2766 | no_cache=1 | |
2767 | fi | |
2768 | ||
2769 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
2770 | ||
2771 | fi | |
2772 | ||
2773 | ||
2774 | eval "$ac_cv_use_longlong" | |
2775 | if test "$no_cache" != 1; then | |
2776 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
2777 | fi | |
2778 | ||
2779 | if test "$wxUSE_LONGLONG" = yes; then | |
2780 | echo "$ac_t""yes" 1>&6 | |
2781 | else | |
2782 | echo "$ac_t""no" 1>&6 | |
2783 | fi | |
2784 | ||
2785 | ||
2786 | echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6 | |
b12915c1 | 2787 | echo "configure:2788: checking "for --enable-log"" >&5 |
10f2d63a VZ |
2788 | no_cache=0 |
2789 | # Check whether --enable-log or --disable-log was given. | |
2790 | if test "${enable_log+set}" = set; then | |
2791 | enableval="$enable_log" | |
2792 | ||
2793 | if test "$enableval" = yes; then | |
2794 | ac_cv_use_log='wxUSE_LOG=yes' | |
2795 | else | |
2796 | ac_cv_use_log='wxUSE_LOG=no' | |
2797 | fi | |
2798 | ||
2799 | else | |
2800 | ||
2801 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
2802 | if test "x$LINE" != x ; then | |
2803 | eval "DEFAULT_$LINE" | |
2804 | else | |
2805 | no_cache=1 | |
2806 | fi | |
2807 | ||
2808 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
2809 | ||
2810 | fi | |
2811 | ||
2812 | ||
2813 | eval "$ac_cv_use_log" | |
2814 | if test "$no_cache" != 1; then | |
2815 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
2816 | fi | |
2817 | ||
2818 | if test "$wxUSE_LOG" = yes; then | |
2819 | echo "$ac_t""yes" 1>&6 | |
2820 | else | |
2821 | echo "$ac_t""no" 1>&6 | |
2822 | fi | |
2823 | ||
2824 | ||
2825 | echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6 | |
b12915c1 | 2826 | echo "configure:2827: checking "for --enable-streams"" >&5 |
10f2d63a VZ |
2827 | no_cache=0 |
2828 | # Check whether --enable-streams or --disable-streams was given. | |
2829 | if test "${enable_streams+set}" = set; then | |
2830 | enableval="$enable_streams" | |
2831 | ||
2832 | if test "$enableval" = yes; then | |
2833 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
2834 | else | |
2835 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
2836 | fi | |
2837 | ||
2838 | else | |
2839 | ||
2840 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
2841 | if test "x$LINE" != x ; then | |
2842 | eval "DEFAULT_$LINE" | |
2843 | else | |
2844 | no_cache=1 | |
2845 | fi | |
2846 | ||
2847 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
2848 | ||
2849 | fi | |
2850 | ||
2851 | ||
2852 | eval "$ac_cv_use_streams" | |
2853 | if test "$no_cache" != 1; then | |
2854 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
2855 | fi | |
2856 | ||
2857 | if test "$wxUSE_STREAMS" = yes; then | |
2858 | echo "$ac_t""yes" 1>&6 | |
2859 | else | |
2860 | echo "$ac_t""no" 1>&6 | |
2861 | fi | |
2862 | ||
2863 | ||
2864 | echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6 | |
b12915c1 | 2865 | echo "configure:2866: checking "for --enable-file"" >&5 |
10f2d63a VZ |
2866 | no_cache=0 |
2867 | # Check whether --enable-file or --disable-file was given. | |
2868 | if test "${enable_file+set}" = set; then | |
2869 | enableval="$enable_file" | |
2870 | ||
2871 | if test "$enableval" = yes; then | |
2872 | ac_cv_use_file='wxUSE_FILE=yes' | |
2873 | else | |
2874 | ac_cv_use_file='wxUSE_FILE=no' | |
2875 | fi | |
2876 | ||
2877 | else | |
2878 | ||
2879 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
2880 | if test "x$LINE" != x ; then | |
2881 | eval "DEFAULT_$LINE" | |
2882 | else | |
2883 | no_cache=1 | |
2884 | fi | |
2885 | ||
2886 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
2887 | ||
2888 | fi | |
2889 | ||
2890 | ||
2891 | eval "$ac_cv_use_file" | |
2892 | if test "$no_cache" != 1; then | |
2893 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
2894 | fi | |
2895 | ||
2896 | if test "$wxUSE_FILE" = yes; then | |
2897 | echo "$ac_t""yes" 1>&6 | |
2898 | else | |
2899 | echo "$ac_t""no" 1>&6 | |
2900 | fi | |
2901 | ||
2902 | ||
2903 | echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6 | |
b12915c1 | 2904 | echo "configure:2905: checking "for --enable-textfile"" >&5 |
10f2d63a VZ |
2905 | no_cache=0 |
2906 | # Check whether --enable-textfile or --disable-textfile was given. | |
2907 | if test "${enable_textfile+set}" = set; then | |
2908 | enableval="$enable_textfile" | |
2909 | ||
2910 | if test "$enableval" = yes; then | |
2911 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
2912 | else | |
2913 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
2914 | fi | |
2915 | ||
2916 | else | |
2917 | ||
2918 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
2919 | if test "x$LINE" != x ; then | |
2920 | eval "DEFAULT_$LINE" | |
2921 | else | |
2922 | no_cache=1 | |
2923 | fi | |
2924 | ||
2925 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
2926 | ||
2927 | fi | |
2928 | ||
2929 | ||
2930 | eval "$ac_cv_use_textfile" | |
2931 | if test "$no_cache" != 1; then | |
2932 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
2933 | fi | |
2934 | ||
2935 | if test "$wxUSE_TEXTFILE" = yes; then | |
2936 | echo "$ac_t""yes" 1>&6 | |
2937 | else | |
2938 | echo "$ac_t""no" 1>&6 | |
2939 | fi | |
2940 | ||
2941 | ||
2942 | echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6 | |
b12915c1 | 2943 | echo "configure:2944: checking "for --enable-unicode"" >&5 |
10f2d63a VZ |
2944 | no_cache=0 |
2945 | # Check whether --enable-unicode or --disable-unicode was given. | |
2946 | if test "${enable_unicode+set}" = set; then | |
2947 | enableval="$enable_unicode" | |
2948 | ||
2949 | if test "$enableval" = yes; then | |
2950 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
2951 | else | |
2952 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
2953 | fi | |
2954 | ||
2955 | else | |
2956 | ||
2957 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
2958 | if test "x$LINE" != x ; then | |
2959 | eval "DEFAULT_$LINE" | |
2960 | else | |
2961 | no_cache=1 | |
2962 | fi | |
2963 | ||
2964 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
2965 | ||
2966 | fi | |
2967 | ||
2968 | ||
2969 | eval "$ac_cv_use_unicode" | |
2970 | if test "$no_cache" != 1; then | |
2971 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
2972 | fi | |
2973 | ||
2974 | if test "$wxUSE_UNICODE" = yes; then | |
2975 | echo "$ac_t""yes" 1>&6 | |
2976 | else | |
2977 | echo "$ac_t""no" 1>&6 | |
2978 | fi | |
2979 | ||
2980 | ||
2981 | echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6 | |
b12915c1 | 2982 | echo "configure:2983: checking "for --enable-wcsrtombs"" >&5 |
10f2d63a VZ |
2983 | no_cache=0 |
2984 | # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given. | |
2985 | if test "${enable_wcsrtombs+set}" = set; then | |
2986 | enableval="$enable_wcsrtombs" | |
2987 | ||
2988 | if test "$enableval" = yes; then | |
2989 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes' | |
2990 | else | |
2991 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no' | |
2992 | fi | |
2993 | ||
2994 | else | |
2995 | ||
2996 | LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}` | |
2997 | if test "x$LINE" != x ; then | |
2998 | eval "DEFAULT_$LINE" | |
2999 | else | |
3000 | no_cache=1 | |
3001 | fi | |
3002 | ||
3003 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS | |
3004 | ||
3005 | fi | |
3006 | ||
3007 | ||
3008 | eval "$ac_cv_use_wcsrtombs" | |
3009 | if test "$no_cache" != 1; then | |
3010 | echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp | |
3011 | fi | |
3012 | ||
3013 | if test "$wxUSE_WCSRTOMBS" = yes; then | |
3014 | echo "$ac_t""yes" 1>&6 | |
3015 | else | |
3016 | echo "$ac_t""no" 1>&6 | |
3017 | fi | |
3018 | ||
3019 | ||
3020 | echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6 | |
b12915c1 | 3021 | echo "configure:3022: checking "for --enable-wxprintfv"" >&5 |
10f2d63a VZ |
3022 | no_cache=0 |
3023 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
3024 | if test "${enable_wxprintfv+set}" = set; then | |
3025 | enableval="$enable_wxprintfv" | |
3026 | ||
3027 | if test "$enableval" = yes; then | |
3028 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
3029 | else | |
3030 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
3031 | fi | |
3032 | ||
3033 | else | |
3034 | ||
3035 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
3036 | if test "x$LINE" != x ; then | |
3037 | eval "DEFAULT_$LINE" | |
3038 | else | |
3039 | no_cache=1 | |
3040 | fi | |
3041 | ||
3042 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
3043 | ||
3044 | fi | |
3045 | ||
3046 | ||
3047 | eval "$ac_cv_use_wxprintfv" | |
3048 | if test "$no_cache" != 1; then | |
3049 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
3050 | fi | |
3051 | ||
3052 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
3053 | echo "$ac_t""yes" 1>&6 | |
3054 | else | |
3055 | echo "$ac_t""no" 1>&6 | |
3056 | fi | |
3057 | ||
3058 | ||
3059 | echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6 | |
b12915c1 | 3060 | echo "configure:3061: checking "for --enable-joystick"" >&5 |
10f2d63a VZ |
3061 | no_cache=0 |
3062 | # Check whether --enable-joystick or --disable-joystick was given. | |
3063 | if test "${enable_joystick+set}" = set; then | |
3064 | enableval="$enable_joystick" | |
3065 | ||
3066 | if test "$enableval" = yes; then | |
3067 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
3068 | else | |
3069 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
3070 | fi | |
3071 | ||
3072 | else | |
3073 | ||
3074 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
3075 | if test "x$LINE" != x ; then | |
3076 | eval "DEFAULT_$LINE" | |
3077 | else | |
3078 | no_cache=1 | |
3079 | fi | |
3080 | ||
3081 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
3082 | ||
3083 | fi | |
3084 | ||
3085 | ||
3086 | eval "$ac_cv_use_joystick" | |
3087 | if test "$no_cache" != 1; then | |
3088 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
3089 | fi | |
3090 | ||
3091 | if test "$wxUSE_JOYSTICK" = yes; then | |
3092 | echo "$ac_t""yes" 1>&6 | |
3093 | else | |
3094 | echo "$ac_t""no" 1>&6 | |
3095 | fi | |
3096 | ||
3097 | ||
3098 | echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6 | |
b12915c1 | 3099 | echo "configure:3100: checking "for --enable-std_iostreams"" >&5 |
10f2d63a VZ |
3100 | no_cache=0 |
3101 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
3102 | if test "${enable_std_iostreams+set}" = set; then | |
3103 | enableval="$enable_std_iostreams" | |
3104 | ||
3105 | if test "$enableval" = yes; then | |
3106 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
3107 | else | |
3108 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
3109 | fi | |
3110 | ||
3111 | else | |
3112 | ||
3113 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` | |
3114 | if test "x$LINE" != x ; then | |
3115 | eval "DEFAULT_$LINE" | |
3116 | else | |
3117 | no_cache=1 | |
3118 | fi | |
3119 | ||
3120 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
3121 | ||
3122 | fi | |
3123 | ||
3124 | ||
3125 | eval "$ac_cv_use_std_iostreams" | |
3126 | if test "$no_cache" != 1; then | |
3127 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
3128 | fi | |
3129 | ||
3130 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
3131 | echo "$ac_t""yes" 1>&6 | |
3132 | else | |
3133 | echo "$ac_t""no" 1>&6 | |
3134 | fi | |
3135 | ||
3136 | ||
3137 | echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6 | |
b12915c1 | 3138 | echo "configure:3139: checking "for --enable-fs_inet"" >&5 |
10f2d63a VZ |
3139 | no_cache=0 |
3140 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
3141 | if test "${enable_fs_inet+set}" = set; then | |
3142 | enableval="$enable_fs_inet" | |
3143 | ||
3144 | if test "$enableval" = yes; then | |
3145 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
3146 | else | |
3147 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
3148 | fi | |
3149 | ||
3150 | else | |
3151 | ||
3152 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
3153 | if test "x$LINE" != x ; then | |
3154 | eval "DEFAULT_$LINE" | |
3155 | else | |
3156 | no_cache=1 | |
3157 | fi | |
3158 | ||
3159 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
3160 | ||
3161 | fi | |
3162 | ||
3163 | ||
3164 | eval "$ac_cv_use_fs_inet" | |
3165 | if test "$no_cache" != 1; then | |
3166 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
3167 | fi | |
3168 | ||
3169 | if test "$wxUSE_FS_INET" = yes; then | |
3170 | echo "$ac_t""yes" 1>&6 | |
3171 | else | |
3172 | echo "$ac_t""no" 1>&6 | |
3173 | fi | |
3174 | ||
3175 | ||
3176 | echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6 | |
b12915c1 | 3177 | echo "configure:3178: checking "for --enable-fs_zip"" >&5 |
10f2d63a VZ |
3178 | no_cache=0 |
3179 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
3180 | if test "${enable_fs_zip+set}" = set; then | |
3181 | enableval="$enable_fs_zip" | |
3182 | ||
3183 | if test "$enableval" = yes; then | |
3184 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
3185 | else | |
3186 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
3187 | fi | |
3188 | ||
3189 | else | |
3190 | ||
3191 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
3192 | if test "x$LINE" != x ; then | |
3193 | eval "DEFAULT_$LINE" | |
3194 | else | |
3195 | no_cache=1 | |
3196 | fi | |
3197 | ||
3198 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
3199 | ||
3200 | fi | |
3201 | ||
3202 | ||
3203 | eval "$ac_cv_use_fs_zip" | |
3204 | if test "$no_cache" != 1; then | |
3205 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
3206 | fi | |
3207 | ||
3208 | if test "$wxUSE_FS_ZIP" = yes; then | |
3209 | echo "$ac_t""yes" 1>&6 | |
3210 | else | |
3211 | echo "$ac_t""no" 1>&6 | |
3212 | fi | |
3213 | ||
3214 | ||
3215 | echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6 | |
b12915c1 | 3216 | echo "configure:3217: checking "for --enable-zipstream"" >&5 |
10f2d63a VZ |
3217 | no_cache=0 |
3218 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
3219 | if test "${enable_zipstream+set}" = set; then | |
3220 | enableval="$enable_zipstream" | |
3221 | ||
3222 | if test "$enableval" = yes; then | |
3223 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
3224 | else | |
3225 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
3226 | fi | |
3227 | ||
3228 | else | |
3229 | ||
3230 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
3231 | if test "x$LINE" != x ; then | |
3232 | eval "DEFAULT_$LINE" | |
3233 | else | |
3234 | no_cache=1 | |
3235 | fi | |
3236 | ||
3237 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
3238 | ||
3239 | fi | |
3240 | ||
3241 | ||
3242 | eval "$ac_cv_use_zipstream" | |
3243 | if test "$no_cache" != 1; then | |
3244 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
3245 | fi | |
3246 | ||
3247 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
3248 | echo "$ac_t""yes" 1>&6 | |
3249 | else | |
3250 | echo "$ac_t""no" 1>&6 | |
3251 | fi | |
3252 | ||
3253 | ||
3254 | ||
3255 | ||
3256 | echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6 | |
b12915c1 | 3257 | echo "configure:3258: checking "for --enable-threads"" >&5 |
10f2d63a VZ |
3258 | no_cache=0 |
3259 | # Check whether --enable-threads or --disable-threads was given. | |
3260 | if test "${enable_threads+set}" = set; then | |
3261 | enableval="$enable_threads" | |
3262 | ||
3263 | if test "$enableval" = yes; then | |
3264 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
3265 | else | |
3266 | ac_cv_use_threads='wxUSE_THREADS=no' | |
3267 | fi | |
3268 | ||
3269 | else | |
3270 | ||
3271 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
3272 | if test "x$LINE" != x ; then | |
3273 | eval "DEFAULT_$LINE" | |
3274 | else | |
3275 | no_cache=1 | |
3276 | fi | |
3277 | ||
3278 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
3279 | ||
3280 | fi | |
3281 | ||
3282 | ||
3283 | eval "$ac_cv_use_threads" | |
3284 | if test "$no_cache" != 1; then | |
3285 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
3286 | fi | |
3287 | ||
3288 | if test "$wxUSE_THREADS" = yes; then | |
3289 | echo "$ac_t""yes" 1>&6 | |
3290 | else | |
3291 | echo "$ac_t""no" 1>&6 | |
3292 | fi | |
3293 | ||
3294 | ||
3295 | echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6 | |
b12915c1 | 3296 | echo "configure:3297: checking "for --enable-serial"" >&5 |
10f2d63a VZ |
3297 | no_cache=0 |
3298 | # Check whether --enable-serial or --disable-serial was given. | |
3299 | if test "${enable_serial+set}" = set; then | |
3300 | enableval="$enable_serial" | |
3301 | ||
3302 | if test "$enableval" = yes; then | |
3303 | ac_cv_use_serial='wxUSE_SERIAL=yes' | |
3304 | else | |
3305 | ac_cv_use_serial='wxUSE_SERIAL=no' | |
3306 | fi | |
3307 | ||
3308 | else | |
3309 | ||
3310 | LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}` | |
3311 | if test "x$LINE" != x ; then | |
3312 | eval "DEFAULT_$LINE" | |
3313 | else | |
3314 | no_cache=1 | |
3315 | fi | |
3316 | ||
3317 | ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL | |
3318 | ||
3319 | fi | |
3320 | ||
3321 | ||
3322 | eval "$ac_cv_use_serial" | |
3323 | if test "$no_cache" != 1; then | |
3324 | echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp | |
3325 | fi | |
3326 | ||
3327 | if test "$wxUSE_SERIAL" = yes; then | |
3328 | echo "$ac_t""yes" 1>&6 | |
3329 | else | |
3330 | echo "$ac_t""no" 1>&6 | |
3331 | fi | |
3332 | ||
3333 | ||
b12915c1 VZ |
3334 | if test "$wxUSE_GUI" = "yes"; then |
3335 | ||
10f2d63a VZ |
3336 | |
3337 | ||
3338 | echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6 | |
b12915c1 | 3339 | echo "configure:3340: checking "for --enable-docview"" >&5 |
10f2d63a VZ |
3340 | no_cache=0 |
3341 | # Check whether --enable-docview or --disable-docview was given. | |
3342 | if test "${enable_docview+set}" = set; then | |
3343 | enableval="$enable_docview" | |
3344 | ||
3345 | if test "$enableval" = yes; then | |
3346 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
3347 | else | |
3348 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
3349 | fi | |
3350 | ||
3351 | else | |
3352 | ||
3353 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
3354 | if test "x$LINE" != x ; then | |
3355 | eval "DEFAULT_$LINE" | |
3356 | else | |
3357 | no_cache=1 | |
3358 | fi | |
3359 | ||
3360 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
3361 | ||
3362 | fi | |
3363 | ||
3364 | ||
3365 | eval "$ac_cv_use_docview" | |
3366 | if test "$no_cache" != 1; then | |
3367 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
3368 | fi | |
3369 | ||
3370 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
3371 | echo "$ac_t""yes" 1>&6 | |
3372 | else | |
3373 | echo "$ac_t""no" 1>&6 | |
3374 | fi | |
3375 | ||
3376 | ||
3377 | echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6 | |
b12915c1 | 3378 | echo "configure:3379: checking "for --enable-help"" >&5 |
10f2d63a VZ |
3379 | no_cache=0 |
3380 | # Check whether --enable-help or --disable-help was given. | |
3381 | if test "${enable_help+set}" = set; then | |
3382 | enableval="$enable_help" | |
3383 | ||
3384 | if test "$enableval" = yes; then | |
3385 | ac_cv_use_help='wxUSE_HELP=yes' | |
3386 | else | |
3387 | ac_cv_use_help='wxUSE_HELP=no' | |
3388 | fi | |
3389 | ||
3390 | else | |
3391 | ||
3392 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
3393 | if test "x$LINE" != x ; then | |
3394 | eval "DEFAULT_$LINE" | |
3395 | else | |
3396 | no_cache=1 | |
3397 | fi | |
3398 | ||
3399 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
3400 | ||
3401 | fi | |
3402 | ||
3403 | ||
3404 | eval "$ac_cv_use_help" | |
3405 | if test "$no_cache" != 1; then | |
3406 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
3407 | fi | |
3408 | ||
3409 | if test "$wxUSE_HELP" = yes; then | |
3410 | echo "$ac_t""yes" 1>&6 | |
3411 | else | |
3412 | echo "$ac_t""no" 1>&6 | |
3413 | fi | |
3414 | ||
3415 | ||
3416 | echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6 | |
b12915c1 | 3417 | echo "configure:3418: checking "for --enable-constraints"" >&5 |
10f2d63a VZ |
3418 | no_cache=0 |
3419 | # Check whether --enable-constraints or --disable-constraints was given. | |
3420 | if test "${enable_constraints+set}" = set; then | |
3421 | enableval="$enable_constraints" | |
3422 | ||
3423 | if test "$enableval" = yes; then | |
3424 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
3425 | else | |
3426 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
3427 | fi | |
3428 | ||
3429 | else | |
3430 | ||
3431 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
3432 | if test "x$LINE" != x ; then | |
3433 | eval "DEFAULT_$LINE" | |
3434 | else | |
3435 | no_cache=1 | |
3436 | fi | |
3437 | ||
3438 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
3439 | ||
3440 | fi | |
3441 | ||
3442 | ||
3443 | eval "$ac_cv_use_constraints" | |
3444 | if test "$no_cache" != 1; then | |
3445 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
3446 | fi | |
3447 | ||
3448 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
3449 | echo "$ac_t""yes" 1>&6 | |
3450 | else | |
3451 | echo "$ac_t""no" 1>&6 | |
3452 | fi | |
3453 | ||
3454 | ||
3455 | echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6 | |
b12915c1 | 3456 | echo "configure:3457: checking "for --enable-printarch"" >&5 |
10f2d63a VZ |
3457 | no_cache=0 |
3458 | # Check whether --enable-printarch or --disable-printarch was given. | |
3459 | if test "${enable_printarch+set}" = set; then | |
3460 | enableval="$enable_printarch" | |
3461 | ||
3462 | if test "$enableval" = yes; then | |
3463 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
3464 | else | |
3465 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
3466 | fi | |
3467 | ||
3468 | else | |
3469 | ||
3470 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
3471 | if test "x$LINE" != x ; then | |
3472 | eval "DEFAULT_$LINE" | |
3473 | else | |
3474 | no_cache=1 | |
3475 | fi | |
3476 | ||
3477 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
3478 | ||
3479 | fi | |
3480 | ||
3481 | ||
3482 | eval "$ac_cv_use_printarch" | |
3483 | if test "$no_cache" != 1; then | |
3484 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
3485 | fi | |
3486 | ||
3487 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
3488 | echo "$ac_t""yes" 1>&6 | |
3489 | else | |
3490 | echo "$ac_t""no" 1>&6 | |
3491 | fi | |
3492 | ||
3493 | ||
3494 | echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6 | |
b12915c1 | 3495 | echo "configure:3496: checking "for --enable-mdi"" >&5 |
10f2d63a VZ |
3496 | no_cache=0 |
3497 | # Check whether --enable-mdi or --disable-mdi was given. | |
3498 | if test "${enable_mdi+set}" = set; then | |
3499 | enableval="$enable_mdi" | |
3500 | ||
3501 | if test "$enableval" = yes; then | |
3502 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
3503 | else | |
3504 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
3505 | fi | |
3506 | ||
3507 | else | |
3508 | ||
3509 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
3510 | if test "x$LINE" != x ; then | |
3511 | eval "DEFAULT_$LINE" | |
3512 | else | |
3513 | no_cache=1 | |
3514 | fi | |
3515 | ||
3516 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
3517 | ||
3518 | fi | |
3519 | ||
3520 | ||
3521 | eval "$ac_cv_use_mdi" | |
3522 | if test "$no_cache" != 1; then | |
3523 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
3524 | fi | |
3525 | ||
3526 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
3527 | echo "$ac_t""yes" 1>&6 | |
3528 | else | |
3529 | echo "$ac_t""no" 1>&6 | |
3530 | fi | |
3531 | ||
3532 | ||
3533 | ||
3534 | echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6 | |
b12915c1 | 3535 | echo "configure:3536: checking "for --enable-postscript"" >&5 |
10f2d63a VZ |
3536 | no_cache=0 |
3537 | # Check whether --enable-postscript or --disable-postscript was given. | |
3538 | if test "${enable_postscript+set}" = set; then | |
3539 | enableval="$enable_postscript" | |
3540 | ||
3541 | if test "$enableval" = yes; then | |
3542 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
3543 | else | |
3544 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
3545 | fi | |
3546 | ||
3547 | else | |
3548 | ||
3549 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
3550 | if test "x$LINE" != x ; then | |
3551 | eval "DEFAULT_$LINE" | |
3552 | else | |
3553 | no_cache=1 | |
3554 | fi | |
3555 | ||
3556 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
3557 | ||
3558 | fi | |
3559 | ||
3560 | ||
3561 | eval "$ac_cv_use_postscript" | |
3562 | if test "$no_cache" != 1; then | |
3563 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
3564 | fi | |
3565 | ||
3566 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
3567 | echo "$ac_t""yes" 1>&6 | |
3568 | else | |
3569 | echo "$ac_t""no" 1>&6 | |
3570 | fi | |
3571 | ||
3572 | ||
3573 | ||
3574 | ||
3575 | echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6 | |
b12915c1 | 3576 | echo "configure:3577: checking "for --enable-prologio"" >&5 |
10f2d63a VZ |
3577 | no_cache=0 |
3578 | # Check whether --enable-prologio or --disable-prologio was given. | |
3579 | if test "${enable_prologio+set}" = set; then | |
3580 | enableval="$enable_prologio" | |
3581 | ||
3582 | if test "$enableval" = yes; then | |
3583 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
3584 | else | |
3585 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
3586 | fi | |
3587 | ||
3588 | else | |
3589 | ||
3590 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
3591 | if test "x$LINE" != x ; then | |
3592 | eval "DEFAULT_$LINE" | |
3593 | else | |
3594 | no_cache=1 | |
3595 | fi | |
3596 | ||
3597 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
3598 | ||
3599 | fi | |
3600 | ||
3601 | ||
3602 | eval "$ac_cv_use_prologio" | |
3603 | if test "$no_cache" != 1; then | |
3604 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
3605 | fi | |
3606 | ||
3607 | if test "$wxUSE_PROLOGIO" = yes; then | |
3608 | echo "$ac_t""yes" 1>&6 | |
3609 | else | |
3610 | echo "$ac_t""no" 1>&6 | |
3611 | fi | |
3612 | ||
3613 | ||
3614 | echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6 | |
b12915c1 | 3615 | echo "configure:3616: checking "for --enable-resources"" >&5 |
10f2d63a VZ |
3616 | no_cache=0 |
3617 | # Check whether --enable-resources or --disable-resources was given. | |
3618 | if test "${enable_resources+set}" = set; then | |
3619 | enableval="$enable_resources" | |
3620 | ||
3621 | if test "$enableval" = yes; then | |
3622 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
3623 | else | |
3624 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
3625 | fi | |
3626 | ||
3627 | else | |
3628 | ||
3629 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
3630 | if test "x$LINE" != x ; then | |
3631 | eval "DEFAULT_$LINE" | |
3632 | else | |
3633 | no_cache=1 | |
3634 | fi | |
3635 | ||
3636 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
3637 | ||
3638 | fi | |
3639 | ||
3640 | ||
3641 | eval "$ac_cv_use_resources" | |
3642 | if test "$no_cache" != 1; then | |
3643 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
3644 | fi | |
3645 | ||
3646 | if test "$wxUSE_RESOURCES" = yes; then | |
3647 | echo "$ac_t""yes" 1>&6 | |
3648 | else | |
3649 | echo "$ac_t""no" 1>&6 | |
3650 | fi | |
3651 | ||
3652 | ||
3653 | ||
3654 | echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6 | |
b12915c1 | 3655 | echo "configure:3656: checking "for --enable-xresources"" >&5 |
10f2d63a VZ |
3656 | no_cache=0 |
3657 | # Check whether --enable-xresources or --disable-xresources was given. | |
3658 | if test "${enable_xresources+set}" = set; then | |
3659 | enableval="$enable_xresources" | |
3660 | ||
3661 | if test "$enableval" = yes; then | |
3662 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
3663 | else | |
3664 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
3665 | fi | |
3666 | ||
3667 | else | |
3668 | ||
3669 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` | |
3670 | if test "x$LINE" != x ; then | |
3671 | eval "DEFAULT_$LINE" | |
3672 | else | |
3673 | no_cache=1 | |
3674 | fi | |
3675 | ||
3676 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
3677 | ||
3678 | fi | |
3679 | ||
3680 | ||
3681 | eval "$ac_cv_use_xresources" | |
3682 | if test "$no_cache" != 1; then | |
3683 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
3684 | fi | |
3685 | ||
3686 | if test "$wxUSE_X_RESOURCES" = yes; then | |
3687 | echo "$ac_t""yes" 1>&6 | |
3688 | else | |
3689 | echo "$ac_t""no" 1>&6 | |
3690 | fi | |
3691 | ||
3692 | ||
3693 | ||
3694 | ||
3695 | echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6 | |
b12915c1 | 3696 | echo "configure:3697: checking "for --enable-clipboard"" >&5 |
10f2d63a VZ |
3697 | no_cache=0 |
3698 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
3699 | if test "${enable_clipboard+set}" = set; then | |
3700 | enableval="$enable_clipboard" | |
3701 | ||
3702 | if test "$enableval" = yes; then | |
3703 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
3704 | else | |
3705 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
3706 | fi | |
3707 | ||
3708 | else | |
3709 | ||
3710 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
3711 | if test "x$LINE" != x ; then | |
3712 | eval "DEFAULT_$LINE" | |
3713 | else | |
3714 | no_cache=1 | |
3715 | fi | |
3716 | ||
3717 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
3718 | ||
3719 | fi | |
3720 | ||
3721 | ||
3722 | eval "$ac_cv_use_clipboard" | |
3723 | if test "$no_cache" != 1; then | |
3724 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
3725 | fi | |
3726 | ||
3727 | if test "$wxUSE_CLIPBOARD" = yes; then | |
3728 | echo "$ac_t""yes" 1>&6 | |
3729 | else | |
3730 | echo "$ac_t""no" 1>&6 | |
3731 | fi | |
3732 | ||
3733 | ||
3734 | echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6 | |
b12915c1 | 3735 | echo "configure:3736: checking "for --enable-dnd"" >&5 |
10f2d63a VZ |
3736 | no_cache=0 |
3737 | # Check whether --enable-dnd or --disable-dnd was given. | |
3738 | if test "${enable_dnd+set}" = set; then | |
3739 | enableval="$enable_dnd" | |
3740 | ||
3741 | if test "$enableval" = yes; then | |
3742 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
3743 | else | |
3744 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
3745 | fi | |
3746 | ||
3747 | else | |
3748 | ||
3749 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
3750 | if test "x$LINE" != x ; then | |
3751 | eval "DEFAULT_$LINE" | |
3752 | else | |
3753 | no_cache=1 | |
3754 | fi | |
3755 | ||
3756 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
3757 | ||
3758 | fi | |
3759 | ||
3760 | ||
3761 | eval "$ac_cv_use_dnd" | |
3762 | if test "$no_cache" != 1; then | |
3763 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
3764 | fi | |
3765 | ||
3766 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
3767 | echo "$ac_t""yes" 1>&6 | |
3768 | else | |
3769 | echo "$ac_t""no" 1>&6 | |
3770 | fi | |
3771 | ||
3772 | ||
3773 | ||
3774 | echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6 | |
b12915c1 | 3775 | echo "configure:3776: checking "for --enable-wxtree"" >&5 |
10f2d63a VZ |
3776 | no_cache=0 |
3777 | # Check whether --enable-wxtree or --disable-wxtree was given. | |
3778 | if test "${enable_wxtree+set}" = set; then | |
3779 | enableval="$enable_wxtree" | |
3780 | ||
3781 | if test "$enableval" = yes; then | |
3782 | ac_cv_use_wxtree='wxUSE_WXTREE=yes' | |
3783 | else | |
3784 | ac_cv_use_wxtree='wxUSE_WXTREE=no' | |
3785 | fi | |
3786 | ||
3787 | else | |
3788 | ||
3789 | LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}` | |
3790 | if test "x$LINE" != x ; then | |
3791 | eval "DEFAULT_$LINE" | |
3792 | else | |
3793 | no_cache=1 | |
3794 | fi | |
3795 | ||
3796 | ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE | |
3797 | ||
3798 | fi | |
3799 | ||
3800 | ||
3801 | eval "$ac_cv_use_wxtree" | |
3802 | if test "$no_cache" != 1; then | |
3803 | echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp | |
3804 | fi | |
3805 | ||
3806 | if test "$wxUSE_WXTREE" = yes; then | |
3807 | echo "$ac_t""yes" 1>&6 | |
3808 | else | |
3809 | echo "$ac_t""no" 1>&6 | |
3810 | fi | |
3811 | ||
3812 | ||
3813 | ||
3814 | ||
3815 | echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6 | |
b12915c1 | 3816 | echo "configure:3817: checking "for --enable-controls"" >&5 |
10f2d63a VZ |
3817 | no_cache=0 |
3818 | # Check whether --enable-controls or --disable-controls was given. | |
3819 | if test "${enable_controls+set}" = set; then | |
3820 | enableval="$enable_controls" | |
3821 | ||
3822 | if test "$enableval" = yes; then | |
3823 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
3824 | else | |
3825 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
3826 | fi | |
3827 | ||
3828 | else | |
3829 | ||
3830 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
3831 | if test "x$LINE" != x ; then | |
3832 | eval "DEFAULT_$LINE" | |
3833 | else | |
3834 | no_cache=1 | |
3835 | fi | |
3836 | ||
3837 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
3838 | ||
3839 | fi | |
3840 | ||
3841 | ||
3842 | eval "$ac_cv_use_controls" | |
3843 | if test "$no_cache" != 1; then | |
3844 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
3845 | fi | |
3846 | ||
3847 | if test "$wxUSE_CONTROLS" = yes; then | |
3848 | echo "$ac_t""yes" 1>&6 | |
3849 | else | |
3850 | echo "$ac_t""no" 1>&6 | |
3851 | fi | |
3852 | ||
3853 | ||
3854 | if test "$wxUSE_CONTROLS" = "yes"; then | |
3855 | DEFAULT_wxUSE_ACCEL=yes | |
3856 | DEFAULT_wxUSE_CARET=yes | |
3857 | DEFAULT_wxUSE_COMBOBOX=yes | |
3858 | DEFAULT_wxUSE_BMPBUTTON=yes | |
3859 | DEFAULT_wxUSE_CHECKBOX=yes | |
3860 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
3861 | DEFAULT_wxUSE_CHOICE=yes | |
3862 | DEFAULT_wxUSE_GAUGE=yes | |
3863 | DEFAULT_wxUSE_GRID=yes | |
fc9c7c09 | 3864 | DEFAULT_wxUSE_NEW_GRID=no |
10f2d63a VZ |
3865 | DEFAULT_wxUSE_IMAGLIST=yes |
3866 | DEFAULT_wxUSE_LISTBOX=yes | |
3867 | DEFAULT_wxUSE_LISTCTRL=yes | |
3868 | DEFAULT_wxUSE_NOTEBOOK=yes | |
3869 | DEFAULT_wxUSE_RADIOBOX=yes | |
3870 | DEFAULT_wxUSE_RADIOBTN=yes | |
3871 | DEFAULT_wxUSE_SASH=yes | |
3872 | DEFAULT_wxUSE_SCROLLBAR=yes | |
3873 | DEFAULT_wxUSE_SLIDER=yes | |
3874 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 3875 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
3876 | DEFAULT_wxUSE_SPLITTER=yes |
3877 | DEFAULT_wxUSE_STATBMP=yes | |
3878 | DEFAULT_wxUSE_STATBOX=yes | |
3879 | DEFAULT_wxUSE_STATLINE=yes | |
3880 | DEFAULT_wxUSE_STATUSBAR=yes | |
3881 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
3882 | DEFAULT_wxUSE_TOOLBAR=yes | |
360d6699 VZ |
3883 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
3884 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
3885 | DEFAULT_wxUSE_TOOLTIPS=yes |
3886 | DEFAULT_wxUSE_TREECTRL=yes | |
3887 | elif test "$wxUSE_CONTROLS" = "no"; then | |
3888 | DEFAULT_wxUSE_ACCEL=no | |
3889 | DEFAULT_wxUSE_CARET=no | |
3890 | DEFAULT_wxUSE_COMBOBOX=no | |
3891 | DEFAULT_wxUSE_BMPBUTTON=no | |
3892 | DEFAULT_wxUSE_CHECKBOX=no | |
3893 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
3894 | DEFAULT_wxUSE_CHOICE=no | |
3895 | DEFAULT_wxUSE_GAUGE=no | |
3896 | DEFAULT_wxUSE_GRID=no | |
3897 | DEFAULT_wxUSE_NEW_GRID=no | |
3898 | DEFAULT_wxUSE_IMAGLIST=no | |
3899 | DEFAULT_wxUSE_LISTBOX=no | |
3900 | DEFAULT_wxUSE_LISTCTRL=no | |
3901 | DEFAULT_wxUSE_NOTEBOOK=no | |
3902 | DEFAULT_wxUSE_RADIOBOX=no | |
3903 | DEFAULT_wxUSE_RADIOBTN=no | |
3904 | DEFAULT_wxUSE_SASH=no | |
3905 | DEFAULT_wxUSE_SCROLLBAR=no | |
3906 | DEFAULT_wxUSE_SLIDER=no | |
3907 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 3908 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
3909 | DEFAULT_wxUSE_SPLITTER=no |
3910 | DEFAULT_wxUSE_STATBMP=no | |
3911 | DEFAULT_wxUSE_STATBOX=no | |
3912 | DEFAULT_wxUSE_STATLINE=no | |
3913 | DEFAULT_wxUSE_STATUSBAR=no | |
3914 | DEFAULT_wxUSE_TAB_DIALOG=no | |
3915 | DEFAULT_wxUSE_TOOLBAR=no | |
360d6699 VZ |
3916 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
3917 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
3918 | DEFAULT_wxUSE_TOOLTIPS=no |
3919 | DEFAULT_wxUSE_TREECTRL=no | |
3920 | fi | |
3921 | ||
3922 | ||
3923 | echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6 | |
b12915c1 | 3924 | echo "configure:3925: checking "for --enable-accel"" >&5 |
10f2d63a VZ |
3925 | no_cache=0 |
3926 | # Check whether --enable-accel or --disable-accel was given. | |
3927 | if test "${enable_accel+set}" = set; then | |
3928 | enableval="$enable_accel" | |
3929 | ||
3930 | if test "$enableval" = yes; then | |
3931 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
3932 | else | |
3933 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
3934 | fi | |
3935 | ||
3936 | else | |
3937 | ||
3938 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
3939 | if test "x$LINE" != x ; then | |
3940 | eval "DEFAULT_$LINE" | |
3941 | else | |
3942 | no_cache=1 | |
3943 | fi | |
3944 | ||
3945 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
3946 | ||
3947 | fi | |
3948 | ||
3949 | ||
3950 | eval "$ac_cv_use_accel" | |
3951 | if test "$no_cache" != 1; then | |
3952 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
3953 | fi | |
3954 | ||
3955 | if test "$wxUSE_ACCEL" = yes; then | |
3956 | echo "$ac_t""yes" 1>&6 | |
3957 | else | |
3958 | echo "$ac_t""no" 1>&6 | |
3959 | fi | |
3960 | ||
3961 | ||
3962 | echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6 | |
b12915c1 | 3963 | echo "configure:3964: checking "for --enable-caret"" >&5 |
10f2d63a VZ |
3964 | no_cache=0 |
3965 | # Check whether --enable-caret or --disable-caret was given. | |
3966 | if test "${enable_caret+set}" = set; then | |
3967 | enableval="$enable_caret" | |
3968 | ||
3969 | if test "$enableval" = yes; then | |
3970 | ac_cv_use_caret='wxUSE_CARET=yes' | |
3971 | else | |
3972 | ac_cv_use_caret='wxUSE_CARET=no' | |
3973 | fi | |
3974 | ||
3975 | else | |
3976 | ||
3977 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
3978 | if test "x$LINE" != x ; then | |
3979 | eval "DEFAULT_$LINE" | |
3980 | else | |
3981 | no_cache=1 | |
3982 | fi | |
3983 | ||
3984 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
3985 | ||
3986 | fi | |
3987 | ||
3988 | ||
3989 | eval "$ac_cv_use_caret" | |
3990 | if test "$no_cache" != 1; then | |
3991 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
3992 | fi | |
3993 | ||
3994 | if test "$wxUSE_CARET" = yes; then | |
3995 | echo "$ac_t""yes" 1>&6 | |
3996 | else | |
3997 | echo "$ac_t""no" 1>&6 | |
3998 | fi | |
3999 | ||
4000 | ||
4001 | echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6 | |
b12915c1 | 4002 | echo "configure:4003: checking "for --enable-bmpbutton"" >&5 |
10f2d63a VZ |
4003 | no_cache=0 |
4004 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
4005 | if test "${enable_bmpbutton+set}" = set; then | |
4006 | enableval="$enable_bmpbutton" | |
4007 | ||
4008 | if test "$enableval" = yes; then | |
4009 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
4010 | else | |
4011 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
4012 | fi | |
4013 | ||
4014 | else | |
4015 | ||
4016 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
4017 | if test "x$LINE" != x ; then | |
4018 | eval "DEFAULT_$LINE" | |
4019 | else | |
4020 | no_cache=1 | |
4021 | fi | |
4022 | ||
4023 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
4024 | ||
4025 | fi | |
4026 | ||
4027 | ||
4028 | eval "$ac_cv_use_bmpbutton" | |
4029 | if test "$no_cache" != 1; then | |
4030 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
4031 | fi | |
4032 | ||
4033 | if test "$wxUSE_BMPBUTTON" = yes; then | |
4034 | echo "$ac_t""yes" 1>&6 | |
4035 | else | |
4036 | echo "$ac_t""no" 1>&6 | |
4037 | fi | |
4038 | ||
4039 | ||
4040 | echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6 | |
b12915c1 | 4041 | echo "configure:4042: checking "for --enable-checkbox"" >&5 |
10f2d63a VZ |
4042 | no_cache=0 |
4043 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
4044 | if test "${enable_checkbox+set}" = set; then | |
4045 | enableval="$enable_checkbox" | |
4046 | ||
4047 | if test "$enableval" = yes; then | |
4048 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
4049 | else | |
4050 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
4051 | fi | |
4052 | ||
4053 | else | |
4054 | ||
4055 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
4056 | if test "x$LINE" != x ; then | |
4057 | eval "DEFAULT_$LINE" | |
4058 | else | |
4059 | no_cache=1 | |
4060 | fi | |
4061 | ||
4062 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
4063 | ||
4064 | fi | |
4065 | ||
4066 | ||
4067 | eval "$ac_cv_use_checkbox" | |
4068 | if test "$no_cache" != 1; then | |
4069 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
4070 | fi | |
4071 | ||
4072 | if test "$wxUSE_CHECKBOX" = yes; then | |
4073 | echo "$ac_t""yes" 1>&6 | |
4074 | else | |
4075 | echo "$ac_t""no" 1>&6 | |
4076 | fi | |
4077 | ||
4078 | ||
4079 | echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6 | |
b12915c1 | 4080 | echo "configure:4081: checking "for --enable-checklst"" >&5 |
10f2d63a VZ |
4081 | no_cache=0 |
4082 | # Check whether --enable-checklst or --disable-checklst was given. | |
4083 | if test "${enable_checklst+set}" = set; then | |
4084 | enableval="$enable_checklst" | |
4085 | ||
4086 | if test "$enableval" = yes; then | |
4087 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
4088 | else | |
4089 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
4090 | fi | |
4091 | ||
4092 | else | |
4093 | ||
4094 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
4095 | if test "x$LINE" != x ; then | |
4096 | eval "DEFAULT_$LINE" | |
4097 | else | |
4098 | no_cache=1 | |
4099 | fi | |
4100 | ||
4101 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
4102 | ||
4103 | fi | |
4104 | ||
4105 | ||
4106 | eval "$ac_cv_use_checklst" | |
4107 | if test "$no_cache" != 1; then | |
4108 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
4109 | fi | |
4110 | ||
4111 | if test "$wxUSE_CHECKLST" = yes; then | |
4112 | echo "$ac_t""yes" 1>&6 | |
4113 | else | |
4114 | echo "$ac_t""no" 1>&6 | |
4115 | fi | |
4116 | ||
4117 | ||
4118 | echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6 | |
b12915c1 | 4119 | echo "configure:4120: checking "for --enable-choice"" >&5 |
10f2d63a VZ |
4120 | no_cache=0 |
4121 | # Check whether --enable-choice or --disable-choice was given. | |
4122 | if test "${enable_choice+set}" = set; then | |
4123 | enableval="$enable_choice" | |
4124 | ||
4125 | if test "$enableval" = yes; then | |
4126 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
4127 | else | |
4128 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
4129 | fi | |
4130 | ||
4131 | else | |
4132 | ||
4133 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
4134 | if test "x$LINE" != x ; then | |
4135 | eval "DEFAULT_$LINE" | |
4136 | else | |
4137 | no_cache=1 | |
4138 | fi | |
4139 | ||
4140 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
4141 | ||
4142 | fi | |
4143 | ||
4144 | ||
4145 | eval "$ac_cv_use_choice" | |
4146 | if test "$no_cache" != 1; then | |
4147 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
4148 | fi | |
4149 | ||
4150 | if test "$wxUSE_CHOICE" = yes; then | |
4151 | echo "$ac_t""yes" 1>&6 | |
4152 | else | |
4153 | echo "$ac_t""no" 1>&6 | |
4154 | fi | |
4155 | ||
4156 | ||
4157 | echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6 | |
b12915c1 | 4158 | echo "configure:4159: checking "for --enable-combobox"" >&5 |
10f2d63a VZ |
4159 | no_cache=0 |
4160 | # Check whether --enable-combobox or --disable-combobox was given. | |
4161 | if test "${enable_combobox+set}" = set; then | |
4162 | enableval="$enable_combobox" | |
4163 | ||
4164 | if test "$enableval" = yes; then | |
4165 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
4166 | else | |
4167 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
4168 | fi | |
4169 | ||
4170 | else | |
4171 | ||
4172 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
4173 | if test "x$LINE" != x ; then | |
4174 | eval "DEFAULT_$LINE" | |
4175 | else | |
4176 | no_cache=1 | |
4177 | fi | |
4178 | ||
4179 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
4180 | ||
4181 | fi | |
4182 | ||
4183 | ||
4184 | eval "$ac_cv_use_combobox" | |
4185 | if test "$no_cache" != 1; then | |
4186 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
4187 | fi | |
4188 | ||
4189 | if test "$wxUSE_COMBOBOX" = yes; then | |
4190 | echo "$ac_t""yes" 1>&6 | |
4191 | else | |
4192 | echo "$ac_t""no" 1>&6 | |
4193 | fi | |
4194 | ||
4195 | ||
4196 | echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6 | |
b12915c1 | 4197 | echo "configure:4198: checking "for --enable-gauge"" >&5 |
10f2d63a VZ |
4198 | no_cache=0 |
4199 | # Check whether --enable-gauge or --disable-gauge was given. | |
4200 | if test "${enable_gauge+set}" = set; then | |
4201 | enableval="$enable_gauge" | |
4202 | ||
4203 | if test "$enableval" = yes; then | |
4204 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
4205 | else | |
4206 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
4207 | fi | |
4208 | ||
4209 | else | |
4210 | ||
4211 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
4212 | if test "x$LINE" != x ; then | |
4213 | eval "DEFAULT_$LINE" | |
4214 | else | |
4215 | no_cache=1 | |
4216 | fi | |
4217 | ||
4218 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
4219 | ||
4220 | fi | |
4221 | ||
4222 | ||
4223 | eval "$ac_cv_use_gauge" | |
4224 | if test "$no_cache" != 1; then | |
4225 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
4226 | fi | |
4227 | ||
4228 | if test "$wxUSE_GAUGE" = yes; then | |
4229 | echo "$ac_t""yes" 1>&6 | |
4230 | else | |
4231 | echo "$ac_t""no" 1>&6 | |
4232 | fi | |
4233 | ||
4234 | ||
4235 | echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6 | |
b12915c1 | 4236 | echo "configure:4237: checking "for --enable-grid"" >&5 |
10f2d63a VZ |
4237 | no_cache=0 |
4238 | # Check whether --enable-grid or --disable-grid was given. | |
4239 | if test "${enable_grid+set}" = set; then | |
4240 | enableval="$enable_grid" | |
4241 | ||
4242 | if test "$enableval" = yes; then | |
4243 | ac_cv_use_grid='wxUSE_GRID=yes' | |
4244 | else | |
4245 | ac_cv_use_grid='wxUSE_GRID=no' | |
4246 | fi | |
4247 | ||
4248 | else | |
4249 | ||
4250 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
4251 | if test "x$LINE" != x ; then | |
4252 | eval "DEFAULT_$LINE" | |
4253 | else | |
4254 | no_cache=1 | |
4255 | fi | |
4256 | ||
4257 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
4258 | ||
4259 | fi | |
4260 | ||
4261 | ||
4262 | eval "$ac_cv_use_grid" | |
4263 | if test "$no_cache" != 1; then | |
4264 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
4265 | fi | |
4266 | ||
4267 | if test "$wxUSE_GRID" = yes; then | |
4268 | echo "$ac_t""yes" 1>&6 | |
4269 | else | |
4270 | echo "$ac_t""no" 1>&6 | |
4271 | fi | |
4272 | ||
4273 | ||
4274 | echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6 | |
b12915c1 | 4275 | echo "configure:4276: checking "for --enable-newgrid"" >&5 |
10f2d63a VZ |
4276 | no_cache=0 |
4277 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
4278 | if test "${enable_newgrid+set}" = set; then | |
4279 | enableval="$enable_newgrid" | |
4280 | ||
4281 | if test "$enableval" = yes; then | |
4282 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
4283 | else | |
4284 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
4285 | fi | |
4286 | ||
4287 | else | |
4288 | ||
4289 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` | |
4290 | if test "x$LINE" != x ; then | |
4291 | eval "DEFAULT_$LINE" | |
4292 | else | |
4293 | no_cache=1 | |
4294 | fi | |
4295 | ||
4296 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
4297 | ||
4298 | fi | |
4299 | ||
4300 | ||
4301 | eval "$ac_cv_use_newgrid" | |
4302 | if test "$no_cache" != 1; then | |
4303 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
4304 | fi | |
4305 | ||
4306 | if test "$wxUSE_NEW_GRID" = yes; then | |
4307 | echo "$ac_t""yes" 1>&6 | |
4308 | else | |
4309 | echo "$ac_t""no" 1>&6 | |
4310 | fi | |
4311 | ||
4312 | ||
4313 | echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6 | |
b12915c1 | 4314 | echo "configure:4315: checking "for --enable-imaglist"" >&5 |
10f2d63a VZ |
4315 | no_cache=0 |
4316 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
4317 | if test "${enable_imaglist+set}" = set; then | |
4318 | enableval="$enable_imaglist" | |
4319 | ||
4320 | if test "$enableval" = yes; then | |
4321 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
4322 | else | |
4323 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
4324 | fi | |
4325 | ||
4326 | else | |
4327 | ||
4328 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
4329 | if test "x$LINE" != x ; then | |
4330 | eval "DEFAULT_$LINE" | |
4331 | else | |
4332 | no_cache=1 | |
4333 | fi | |
4334 | ||
4335 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
4336 | ||
4337 | fi | |
4338 | ||
4339 | ||
4340 | eval "$ac_cv_use_imaglist" | |
4341 | if test "$no_cache" != 1; then | |
4342 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
4343 | fi | |
4344 | ||
4345 | if test "$wxUSE_IMAGLIST" = yes; then | |
4346 | echo "$ac_t""yes" 1>&6 | |
4347 | else | |
4348 | echo "$ac_t""no" 1>&6 | |
4349 | fi | |
4350 | ||
4351 | ||
4352 | echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6 | |
b12915c1 | 4353 | echo "configure:4354: checking "for --enable-listbox"" >&5 |
10f2d63a VZ |
4354 | no_cache=0 |
4355 | # Check whether --enable-listbox or --disable-listbox was given. | |
4356 | if test "${enable_listbox+set}" = set; then | |
4357 | enableval="$enable_listbox" | |
4358 | ||
4359 | if test "$enableval" = yes; then | |
4360 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
4361 | else | |
4362 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
4363 | fi | |
4364 | ||
4365 | else | |
4366 | ||
4367 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
4368 | if test "x$LINE" != x ; then | |
4369 | eval "DEFAULT_$LINE" | |
4370 | else | |
4371 | no_cache=1 | |
4372 | fi | |
4373 | ||
4374 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
4375 | ||
4376 | fi | |
4377 | ||
4378 | ||
4379 | eval "$ac_cv_use_listbox" | |
4380 | if test "$no_cache" != 1; then | |
4381 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
4382 | fi | |
4383 | ||
4384 | if test "$wxUSE_LISTBOX" = yes; then | |
4385 | echo "$ac_t""yes" 1>&6 | |
4386 | else | |
4387 | echo "$ac_t""no" 1>&6 | |
4388 | fi | |
4389 | ||
4390 | ||
4391 | echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6 | |
b12915c1 | 4392 | echo "configure:4393: checking "for --enable-listctrl"" >&5 |
10f2d63a VZ |
4393 | no_cache=0 |
4394 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
4395 | if test "${enable_listctrl+set}" = set; then | |
4396 | enableval="$enable_listctrl" | |
4397 | ||
4398 | if test "$enableval" = yes; then | |
4399 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
4400 | else | |
4401 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
4402 | fi | |
4403 | ||
4404 | else | |
4405 | ||
4406 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
4407 | if test "x$LINE" != x ; then | |
4408 | eval "DEFAULT_$LINE" | |
4409 | else | |
4410 | no_cache=1 | |
4411 | fi | |
4412 | ||
4413 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
4414 | ||
4415 | fi | |
4416 | ||
4417 | ||
4418 | eval "$ac_cv_use_listctrl" | |
4419 | if test "$no_cache" != 1; then | |
4420 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
4421 | fi | |
4422 | ||
4423 | if test "$wxUSE_LISTCTRL" = yes; then | |
4424 | echo "$ac_t""yes" 1>&6 | |
4425 | else | |
4426 | echo "$ac_t""no" 1>&6 | |
4427 | fi | |
4428 | ||
4429 | ||
4430 | echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6 | |
b12915c1 | 4431 | echo "configure:4432: checking "for --enable-notebook"" >&5 |
10f2d63a VZ |
4432 | no_cache=0 |
4433 | # Check whether --enable-notebook or --disable-notebook was given. | |
4434 | if test "${enable_notebook+set}" = set; then | |
4435 | enableval="$enable_notebook" | |
4436 | ||
4437 | if test "$enableval" = yes; then | |
4438 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
4439 | else | |
4440 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
4441 | fi | |
4442 | ||
4443 | else | |
4444 | ||
4445 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
4446 | if test "x$LINE" != x ; then | |
4447 | eval "DEFAULT_$LINE" | |
4448 | else | |
4449 | no_cache=1 | |
4450 | fi | |
4451 | ||
4452 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
4453 | ||
4454 | fi | |
4455 | ||
4456 | ||
4457 | eval "$ac_cv_use_notebook" | |
4458 | if test "$no_cache" != 1; then | |
4459 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
4460 | fi | |
4461 | ||
4462 | if test "$wxUSE_NOTEBOOK" = yes; then | |
4463 | echo "$ac_t""yes" 1>&6 | |
4464 | else | |
4465 | echo "$ac_t""no" 1>&6 | |
4466 | fi | |
4467 | ||
4468 | ||
4469 | echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6 | |
b12915c1 | 4470 | echo "configure:4471: checking "for --enable-radiobox"" >&5 |
10f2d63a VZ |
4471 | no_cache=0 |
4472 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
4473 | if test "${enable_radiobox+set}" = set; then | |
4474 | enableval="$enable_radiobox" | |
4475 | ||
4476 | if test "$enableval" = yes; then | |
4477 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
4478 | else | |
4479 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
4480 | fi | |
4481 | ||
4482 | else | |
4483 | ||
4484 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
4485 | if test "x$LINE" != x ; then | |
4486 | eval "DEFAULT_$LINE" | |
4487 | else | |
4488 | no_cache=1 | |
4489 | fi | |
4490 | ||
4491 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
4492 | ||
4493 | fi | |
4494 | ||
4495 | ||
4496 | eval "$ac_cv_use_radiobox" | |
4497 | if test "$no_cache" != 1; then | |
4498 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
4499 | fi | |
4500 | ||
4501 | if test "$wxUSE_RADIOBOX" = yes; then | |
4502 | echo "$ac_t""yes" 1>&6 | |
4503 | else | |
4504 | echo "$ac_t""no" 1>&6 | |
4505 | fi | |
4506 | ||
4507 | ||
4508 | echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6 | |
b12915c1 | 4509 | echo "configure:4510: checking "for --enable-radiobtn"" >&5 |
10f2d63a VZ |
4510 | no_cache=0 |
4511 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
4512 | if test "${enable_radiobtn+set}" = set; then | |
4513 | enableval="$enable_radiobtn" | |
4514 | ||
4515 | if test "$enableval" = yes; then | |
4516 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
4517 | else | |
4518 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
4519 | fi | |
4520 | ||
4521 | else | |
4522 | ||
4523 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
4524 | if test "x$LINE" != x ; then | |
4525 | eval "DEFAULT_$LINE" | |
4526 | else | |
4527 | no_cache=1 | |
4528 | fi | |
4529 | ||
4530 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
4531 | ||
4532 | fi | |
4533 | ||
4534 | ||
4535 | eval "$ac_cv_use_radiobtn" | |
4536 | if test "$no_cache" != 1; then | |
4537 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
4538 | fi | |
4539 | ||
4540 | if test "$wxUSE_RADIOBTN" = yes; then | |
4541 | echo "$ac_t""yes" 1>&6 | |
4542 | else | |
4543 | echo "$ac_t""no" 1>&6 | |
4544 | fi | |
4545 | ||
4546 | ||
4547 | echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6 | |
b12915c1 | 4548 | echo "configure:4549: checking "for --enable-sash"" >&5 |
10f2d63a VZ |
4549 | no_cache=0 |
4550 | # Check whether --enable-sash or --disable-sash was given. | |
4551 | if test "${enable_sash+set}" = set; then | |
4552 | enableval="$enable_sash" | |
4553 | ||
4554 | if test "$enableval" = yes; then | |
4555 | ac_cv_use_sash='wxUSE_SASH=yes' | |
4556 | else | |
4557 | ac_cv_use_sash='wxUSE_SASH=no' | |
4558 | fi | |
4559 | ||
4560 | else | |
4561 | ||
4562 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
4563 | if test "x$LINE" != x ; then | |
4564 | eval "DEFAULT_$LINE" | |
4565 | else | |
4566 | no_cache=1 | |
4567 | fi | |
4568 | ||
4569 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
4570 | ||
4571 | fi | |
4572 | ||
4573 | ||
4574 | eval "$ac_cv_use_sash" | |
4575 | if test "$no_cache" != 1; then | |
4576 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
4577 | fi | |
4578 | ||
4579 | if test "$wxUSE_SASH" = yes; then | |
4580 | echo "$ac_t""yes" 1>&6 | |
4581 | else | |
4582 | echo "$ac_t""no" 1>&6 | |
4583 | fi | |
4584 | ||
4585 | ||
4586 | echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6 | |
b12915c1 | 4587 | echo "configure:4588: checking "for --enable-scrollbar"" >&5 |
10f2d63a VZ |
4588 | no_cache=0 |
4589 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
4590 | if test "${enable_scrollbar+set}" = set; then | |
4591 | enableval="$enable_scrollbar" | |
4592 | ||
4593 | if test "$enableval" = yes; then | |
4594 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
4595 | else | |
4596 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
4597 | fi | |
4598 | ||
4599 | else | |
4600 | ||
4601 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
4602 | if test "x$LINE" != x ; then | |
4603 | eval "DEFAULT_$LINE" | |
4604 | else | |
4605 | no_cache=1 | |
4606 | fi | |
4607 | ||
4608 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
4609 | ||
4610 | fi | |
4611 | ||
4612 | ||
4613 | eval "$ac_cv_use_scrollbar" | |
4614 | if test "$no_cache" != 1; then | |
4615 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
4616 | fi | |
4617 | ||
4618 | if test "$wxUSE_SCROLLBAR" = yes; then | |
4619 | echo "$ac_t""yes" 1>&6 | |
4620 | else | |
4621 | echo "$ac_t""no" 1>&6 | |
4622 | fi | |
4623 | ||
4624 | ||
4625 | echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6 | |
b12915c1 | 4626 | echo "configure:4627: checking "for --enable-slider"" >&5 |
10f2d63a VZ |
4627 | no_cache=0 |
4628 | # Check whether --enable-slider or --disable-slider was given. | |
4629 | if test "${enable_slider+set}" = set; then | |
4630 | enableval="$enable_slider" | |
4631 | ||
4632 | if test "$enableval" = yes; then | |
4633 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
4634 | else | |
4635 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
4636 | fi | |
4637 | ||
4638 | else | |
4639 | ||
4640 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
4641 | if test "x$LINE" != x ; then | |
4642 | eval "DEFAULT_$LINE" | |
4643 | else | |
4644 | no_cache=1 | |
4645 | fi | |
4646 | ||
4647 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
4648 | ||
4649 | fi | |
4650 | ||
4651 | ||
4652 | eval "$ac_cv_use_slider" | |
4653 | if test "$no_cache" != 1; then | |
4654 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
4655 | fi | |
4656 | ||
4657 | if test "$wxUSE_SLIDER" = yes; then | |
4658 | echo "$ac_t""yes" 1>&6 | |
4659 | else | |
4660 | echo "$ac_t""no" 1>&6 | |
4661 | fi | |
4662 | ||
4663 | ||
4664 | echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6 | |
b12915c1 | 4665 | echo "configure:4666: checking "for --enable-spinbtn"" >&5 |
10f2d63a VZ |
4666 | no_cache=0 |
4667 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
4668 | if test "${enable_spinbtn+set}" = set; then | |
4669 | enableval="$enable_spinbtn" | |
4670 | ||
4671 | if test "$enableval" = yes; then | |
4672 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
4673 | else | |
4674 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
4675 | fi | |
4676 | ||
4677 | else | |
4678 | ||
4679 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
4680 | if test "x$LINE" != x ; then | |
4681 | eval "DEFAULT_$LINE" | |
4682 | else | |
4683 | no_cache=1 | |
4684 | fi | |
4685 | ||
4686 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
4687 | ||
4688 | fi | |
4689 | ||
4690 | ||
4691 | eval "$ac_cv_use_spinbtn" | |
4692 | if test "$no_cache" != 1; then | |
4693 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
4694 | fi | |
4695 | ||
4696 | if test "$wxUSE_SPINBTN" = yes; then | |
4697 | echo "$ac_t""yes" 1>&6 | |
4698 | else | |
4699 | echo "$ac_t""no" 1>&6 | |
4700 | fi | |
4701 | ||
4702 | ||
56cfaa52 | 4703 | echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6 |
b12915c1 | 4704 | echo "configure:4705: checking "for --enable-spinctrl"" >&5 |
56cfaa52 RR |
4705 | no_cache=0 |
4706 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
4707 | if test "${enable_spinctrl+set}" = set; then | |
4708 | enableval="$enable_spinctrl" | |
4709 | ||
4710 | if test "$enableval" = yes; then | |
4711 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
4712 | else | |
4713 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
4714 | fi | |
4715 | ||
4716 | else | |
4717 | ||
4718 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
4719 | if test "x$LINE" != x ; then | |
4720 | eval "DEFAULT_$LINE" | |
4721 | else | |
4722 | no_cache=1 | |
4723 | fi | |
4724 | ||
4725 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
4726 | ||
4727 | fi | |
4728 | ||
4729 | ||
4730 | eval "$ac_cv_use_spinctrl" | |
4731 | if test "$no_cache" != 1; then | |
4732 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
4733 | fi | |
4734 | ||
4735 | if test "$wxUSE_SPINCTRL" = yes; then | |
4736 | echo "$ac_t""yes" 1>&6 | |
4737 | else | |
4738 | echo "$ac_t""no" 1>&6 | |
4739 | fi | |
4740 | ||
4741 | ||
10f2d63a | 4742 | echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6 |
b12915c1 | 4743 | echo "configure:4744: checking "for --enable-splitter"" >&5 |
10f2d63a VZ |
4744 | no_cache=0 |
4745 | # Check whether --enable-splitter or --disable-splitter was given. | |
4746 | if test "${enable_splitter+set}" = set; then | |
4747 | enableval="$enable_splitter" | |
4748 | ||
4749 | if test "$enableval" = yes; then | |
4750 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
4751 | else | |
4752 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
4753 | fi | |
4754 | ||
4755 | else | |
4756 | ||
4757 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
4758 | if test "x$LINE" != x ; then | |
4759 | eval "DEFAULT_$LINE" | |
4760 | else | |
4761 | no_cache=1 | |
4762 | fi | |
4763 | ||
4764 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
4765 | ||
4766 | fi | |
4767 | ||
4768 | ||
4769 | eval "$ac_cv_use_splitter" | |
4770 | if test "$no_cache" != 1; then | |
4771 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
4772 | fi | |
4773 | ||
4774 | if test "$wxUSE_SPLITTER" = yes; then | |
4775 | echo "$ac_t""yes" 1>&6 | |
4776 | else | |
4777 | echo "$ac_t""no" 1>&6 | |
4778 | fi | |
4779 | ||
4780 | ||
4781 | echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6 | |
b12915c1 | 4782 | echo "configure:4783: checking "for --enable-statbmp"" >&5 |
10f2d63a VZ |
4783 | no_cache=0 |
4784 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
4785 | if test "${enable_statbmp+set}" = set; then | |
4786 | enableval="$enable_statbmp" | |
4787 | ||
4788 | if test "$enableval" = yes; then | |
4789 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
4790 | else | |
4791 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
4792 | fi | |
4793 | ||
4794 | else | |
4795 | ||
4796 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
4797 | if test "x$LINE" != x ; then | |
4798 | eval "DEFAULT_$LINE" | |
4799 | else | |
4800 | no_cache=1 | |
4801 | fi | |
4802 | ||
4803 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
4804 | ||
4805 | fi | |
4806 | ||
4807 | ||
4808 | eval "$ac_cv_use_statbmp" | |
4809 | if test "$no_cache" != 1; then | |
4810 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
4811 | fi | |
4812 | ||
4813 | if test "$wxUSE_STATBMP" = yes; then | |
4814 | echo "$ac_t""yes" 1>&6 | |
4815 | else | |
4816 | echo "$ac_t""no" 1>&6 | |
4817 | fi | |
4818 | ||
4819 | ||
4820 | echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6 | |
b12915c1 | 4821 | echo "configure:4822: checking "for --enable-statbox"" >&5 |
10f2d63a VZ |
4822 | no_cache=0 |
4823 | # Check whether --enable-statbox or --disable-statbox was given. | |
4824 | if test "${enable_statbox+set}" = set; then | |
4825 | enableval="$enable_statbox" | |
4826 | ||
4827 | if test "$enableval" = yes; then | |
4828 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
4829 | else | |
4830 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
4831 | fi | |
4832 | ||
4833 | else | |
4834 | ||
4835 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
4836 | if test "x$LINE" != x ; then | |
4837 | eval "DEFAULT_$LINE" | |
4838 | else | |
4839 | no_cache=1 | |
4840 | fi | |
4841 | ||
4842 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
4843 | ||
4844 | fi | |
4845 | ||
4846 | ||
4847 | eval "$ac_cv_use_statbox" | |
4848 | if test "$no_cache" != 1; then | |
4849 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
4850 | fi | |
4851 | ||
4852 | if test "$wxUSE_STATBOX" = yes; then | |
4853 | echo "$ac_t""yes" 1>&6 | |
4854 | else | |
4855 | echo "$ac_t""no" 1>&6 | |
4856 | fi | |
4857 | ||
4858 | ||
4859 | echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6 | |
b12915c1 | 4860 | echo "configure:4861: checking "for --enable-statline"" >&5 |
10f2d63a VZ |
4861 | no_cache=0 |
4862 | # Check whether --enable-statline or --disable-statline was given. | |
4863 | if test "${enable_statline+set}" = set; then | |
4864 | enableval="$enable_statline" | |
4865 | ||
4866 | if test "$enableval" = yes; then | |
4867 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
4868 | else | |
4869 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
4870 | fi | |
4871 | ||
4872 | else | |
4873 | ||
4874 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
4875 | if test "x$LINE" != x ; then | |
4876 | eval "DEFAULT_$LINE" | |
4877 | else | |
4878 | no_cache=1 | |
4879 | fi | |
4880 | ||
4881 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
4882 | ||
4883 | fi | |
4884 | ||
4885 | ||
4886 | eval "$ac_cv_use_statline" | |
4887 | if test "$no_cache" != 1; then | |
4888 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
4889 | fi | |
4890 | ||
4891 | if test "$wxUSE_STATLINE" = yes; then | |
4892 | echo "$ac_t""yes" 1>&6 | |
4893 | else | |
4894 | echo "$ac_t""no" 1>&6 | |
4895 | fi | |
4896 | ||
4897 | ||
4898 | echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6 | |
b12915c1 | 4899 | echo "configure:4900: checking "for --enable-statusbar"" >&5 |
10f2d63a VZ |
4900 | no_cache=0 |
4901 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
4902 | if test "${enable_statusbar+set}" = set; then | |
4903 | enableval="$enable_statusbar" | |
4904 | ||
4905 | if test "$enableval" = yes; then | |
4906 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
4907 | else | |
4908 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
4909 | fi | |
4910 | ||
4911 | else | |
4912 | ||
4913 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
4914 | if test "x$LINE" != x ; then | |
4915 | eval "DEFAULT_$LINE" | |
4916 | else | |
4917 | no_cache=1 | |
4918 | fi | |
4919 | ||
4920 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
4921 | ||
4922 | fi | |
4923 | ||
4924 | ||
4925 | eval "$ac_cv_use_statusbar" | |
4926 | if test "$no_cache" != 1; then | |
4927 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
4928 | fi | |
4929 | ||
4930 | if test "$wxUSE_STATUSBAR" = yes; then | |
4931 | echo "$ac_t""yes" 1>&6 | |
4932 | else | |
4933 | echo "$ac_t""no" 1>&6 | |
4934 | fi | |
4935 | ||
4936 | ||
4937 | echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6 | |
b12915c1 | 4938 | echo "configure:4939: checking "for --enable-tabdialog"" >&5 |
10f2d63a VZ |
4939 | no_cache=0 |
4940 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
4941 | if test "${enable_tabdialog+set}" = set; then | |
4942 | enableval="$enable_tabdialog" | |
4943 | ||
4944 | if test "$enableval" = yes; then | |
4945 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
4946 | else | |
4947 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
4948 | fi | |
4949 | ||
4950 | else | |
4951 | ||
4952 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
4953 | if test "x$LINE" != x ; then | |
4954 | eval "DEFAULT_$LINE" | |
4955 | else | |
4956 | no_cache=1 | |
4957 | fi | |
4958 | ||
4959 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
4960 | ||
4961 | fi | |
4962 | ||
4963 | ||
4964 | eval "$ac_cv_use_tabdialog" | |
4965 | if test "$no_cache" != 1; then | |
4966 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
4967 | fi | |
4968 | ||
4969 | if test "$wxUSE_TABDIALOG" = yes; then | |
4970 | echo "$ac_t""yes" 1>&6 | |
4971 | else | |
4972 | echo "$ac_t""no" 1>&6 | |
4973 | fi | |
4974 | ||
4975 | ||
4976 | echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6 | |
b12915c1 | 4977 | echo "configure:4978: checking "for --enable-toolbar"" >&5 |
10f2d63a VZ |
4978 | no_cache=0 |
4979 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
4980 | if test "${enable_toolbar+set}" = set; then | |
4981 | enableval="$enable_toolbar" | |
4982 | ||
4983 | if test "$enableval" = yes; then | |
4984 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
4985 | else | |
4986 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
4987 | fi | |
4988 | ||
4989 | else | |
4990 | ||
4991 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
4992 | if test "x$LINE" != x ; then | |
4993 | eval "DEFAULT_$LINE" | |
4994 | else | |
4995 | no_cache=1 | |
4996 | fi | |
4997 | ||
4998 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
4999 | ||
5000 | fi | |
5001 | ||
5002 | ||
5003 | eval "$ac_cv_use_toolbar" | |
5004 | if test "$no_cache" != 1; then | |
5005 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
5006 | fi | |
5007 | ||
5008 | if test "$wxUSE_TOOLBAR" = yes; then | |
5009 | echo "$ac_t""yes" 1>&6 | |
5010 | else | |
5011 | echo "$ac_t""no" 1>&6 | |
5012 | fi | |
5013 | ||
5014 | ||
360d6699 | 5015 | echo $ac_n "checking "for --enable-tbarnative"""... $ac_c" 1>&6 |
b12915c1 | 5016 | echo "configure:5017: checking "for --enable-tbarnative"" >&5 |
360d6699 VZ |
5017 | no_cache=0 |
5018 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
5019 | if test "${enable_tbarnative+set}" = set; then | |
5020 | enableval="$enable_tbarnative" | |
5021 | ||
5022 | if test "$enableval" = yes; then | |
5023 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
5024 | else | |
5025 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
5026 | fi | |
5027 | ||
5028 | else | |
5029 | ||
5030 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
5031 | if test "x$LINE" != x ; then | |
5032 | eval "DEFAULT_$LINE" | |
5033 | else | |
5034 | no_cache=1 | |
5035 | fi | |
5036 | ||
5037 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
5038 | ||
5039 | fi | |
5040 | ||
5041 | ||
5042 | eval "$ac_cv_use_tbarnative" | |
5043 | if test "$no_cache" != 1; then | |
5044 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
5045 | fi | |
5046 | ||
5047 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
5048 | echo "$ac_t""yes" 1>&6 | |
5049 | else | |
5050 | echo "$ac_t""no" 1>&6 | |
5051 | fi | |
5052 | ||
5053 | ||
5054 | echo $ac_n "checking "for --enable-tbarsmpl"""... $ac_c" 1>&6 | |
b12915c1 | 5055 | echo "configure:5056: checking "for --enable-tbarsmpl"" >&5 |
360d6699 VZ |
5056 | no_cache=0 |
5057 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
5058 | if test "${enable_tbarsmpl+set}" = set; then | |
5059 | enableval="$enable_tbarsmpl" | |
5060 | ||
5061 | if test "$enableval" = yes; then | |
5062 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
5063 | else | |
5064 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
5065 | fi | |
5066 | ||
5067 | else | |
5068 | ||
5069 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
5070 | if test "x$LINE" != x ; then | |
5071 | eval "DEFAULT_$LINE" | |
5072 | else | |
5073 | no_cache=1 | |
5074 | fi | |
5075 | ||
5076 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
5077 | ||
5078 | fi | |
5079 | ||
5080 | ||
5081 | eval "$ac_cv_use_tbarsmpl" | |
5082 | if test "$no_cache" != 1; then | |
5083 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
5084 | fi | |
5085 | ||
5086 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
5087 | echo "$ac_t""yes" 1>&6 | |
5088 | else | |
5089 | echo "$ac_t""no" 1>&6 | |
5090 | fi | |
5091 | ||
5092 | ||
10f2d63a | 5093 | echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6 |
b12915c1 | 5094 | echo "configure:5095: checking "for --enable-treectrl"" >&5 |
10f2d63a VZ |
5095 | no_cache=0 |
5096 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
5097 | if test "${enable_treectrl+set}" = set; then | |
5098 | enableval="$enable_treectrl" | |
5099 | ||
5100 | if test "$enableval" = yes; then | |
5101 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
5102 | else | |
5103 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
5104 | fi | |
5105 | ||
5106 | else | |
5107 | ||
5108 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
5109 | if test "x$LINE" != x ; then | |
5110 | eval "DEFAULT_$LINE" | |
5111 | else | |
5112 | no_cache=1 | |
5113 | fi | |
5114 | ||
5115 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
5116 | ||
5117 | fi | |
5118 | ||
5119 | ||
5120 | eval "$ac_cv_use_treectrl" | |
5121 | if test "$no_cache" != 1; then | |
5122 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
5123 | fi | |
5124 | ||
5125 | if test "$wxUSE_TREECTRL" = yes; then | |
5126 | echo "$ac_t""yes" 1>&6 | |
5127 | else | |
5128 | echo "$ac_t""no" 1>&6 | |
5129 | fi | |
5130 | ||
5131 | ||
5132 | ||
5133 | ||
5134 | echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6 | |
b12915c1 | 5135 | echo "configure:5136: checking "for --enable-commondlg"" >&5 |
10f2d63a VZ |
5136 | no_cache=0 |
5137 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
5138 | if test "${enable_commondlg+set}" = set; then | |
5139 | enableval="$enable_commondlg" | |
5140 | ||
5141 | if test "$enableval" = yes; then | |
5142 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
5143 | else | |
5144 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
5145 | fi | |
5146 | ||
5147 | else | |
5148 | ||
5149 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
5150 | if test "x$LINE" != x ; then | |
5151 | eval "DEFAULT_$LINE" | |
5152 | else | |
5153 | no_cache=1 | |
5154 | fi | |
5155 | ||
5156 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
5157 | ||
5158 | fi | |
5159 | ||
5160 | ||
5161 | eval "$ac_cv_use_commondlg" | |
5162 | if test "$no_cache" != 1; then | |
5163 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
5164 | fi | |
5165 | ||
5166 | if test "$wxUSE_COMMONDLGS" = yes; then | |
5167 | echo "$ac_t""yes" 1>&6 | |
5168 | else | |
5169 | echo "$ac_t""no" 1>&6 | |
5170 | fi | |
5171 | ||
5172 | ||
5173 | echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6 | |
b12915c1 | 5174 | echo "configure:5175: checking "for --enable-dirdlg"" >&5 |
10f2d63a VZ |
5175 | no_cache=0 |
5176 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
5177 | if test "${enable_dirdlg+set}" = set; then | |
5178 | enableval="$enable_dirdlg" | |
5179 | ||
5180 | if test "$enableval" = yes; then | |
5181 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
5182 | else | |
5183 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
5184 | fi | |
5185 | ||
5186 | else | |
5187 | ||
5188 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
5189 | if test "x$LINE" != x ; then | |
5190 | eval "DEFAULT_$LINE" | |
5191 | else | |
5192 | no_cache=1 | |
5193 | fi | |
5194 | ||
5195 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
5196 | ||
5197 | fi | |
5198 | ||
5199 | ||
5200 | eval "$ac_cv_use_dirdlg" | |
5201 | if test "$no_cache" != 1; then | |
5202 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
5203 | fi | |
5204 | ||
5205 | if test "$wxUSE_DIRDLG" = yes; then | |
5206 | echo "$ac_t""yes" 1>&6 | |
5207 | else | |
5208 | echo "$ac_t""no" 1>&6 | |
5209 | fi | |
5210 | ||
5211 | ||
5212 | echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6 | |
b12915c1 | 5213 | echo "configure:5214: checking "for --enable-textdlg"" >&5 |
10f2d63a VZ |
5214 | no_cache=0 |
5215 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
5216 | if test "${enable_textdlg+set}" = set; then | |
5217 | enableval="$enable_textdlg" | |
5218 | ||
5219 | if test "$enableval" = yes; then | |
5220 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
5221 | else | |
5222 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
5223 | fi | |
5224 | ||
5225 | else | |
5226 | ||
5227 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
5228 | if test "x$LINE" != x ; then | |
5229 | eval "DEFAULT_$LINE" | |
5230 | else | |
5231 | no_cache=1 | |
5232 | fi | |
5233 | ||
5234 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
5235 | ||
5236 | fi | |
5237 | ||
5238 | ||
5239 | eval "$ac_cv_use_textdlg" | |
5240 | if test "$no_cache" != 1; then | |
5241 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
5242 | fi | |
5243 | ||
5244 | if test "$wxUSE_TEXTDLG" = yes; then | |
5245 | echo "$ac_t""yes" 1>&6 | |
5246 | else | |
5247 | echo "$ac_t""no" 1>&6 | |
5248 | fi | |
5249 | ||
5250 | ||
5251 | echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6 | |
b12915c1 | 5252 | echo "configure:5253: checking "for --enable-tipdlg"" >&5 |
10f2d63a VZ |
5253 | no_cache=0 |
5254 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
5255 | if test "${enable_tipdlg+set}" = set; then | |
5256 | enableval="$enable_tipdlg" | |
5257 | ||
5258 | if test "$enableval" = yes; then | |
5259 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
5260 | else | |
5261 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
5262 | fi | |
5263 | ||
5264 | else | |
5265 | ||
5266 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
5267 | if test "x$LINE" != x ; then | |
5268 | eval "DEFAULT_$LINE" | |
5269 | else | |
5270 | no_cache=1 | |
5271 | fi | |
5272 | ||
5273 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
5274 | ||
5275 | fi | |
5276 | ||
5277 | ||
5278 | eval "$ac_cv_use_tipdlg" | |
5279 | if test "$no_cache" != 1; then | |
5280 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
5281 | fi | |
5282 | ||
5283 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
5284 | echo "$ac_t""yes" 1>&6 | |
5285 | else | |
5286 | echo "$ac_t""no" 1>&6 | |
5287 | fi | |
5288 | ||
5289 | ||
5290 | echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6 | |
b12915c1 | 5291 | echo "configure:5292: checking "for --enable-progressdlg"" >&5 |
10f2d63a VZ |
5292 | no_cache=0 |
5293 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
5294 | if test "${enable_progressdlg+set}" = set; then | |
5295 | enableval="$enable_progressdlg" | |
5296 | ||
5297 | if test "$enableval" = yes; then | |
5298 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
5299 | else | |
5300 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
5301 | fi | |
5302 | ||
5303 | else | |
5304 | ||
5305 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
5306 | if test "x$LINE" != x ; then | |
5307 | eval "DEFAULT_$LINE" | |
5308 | else | |
5309 | no_cache=1 | |
5310 | fi | |
5311 | ||
5312 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
5313 | ||
5314 | fi | |
5315 | ||
5316 | ||
5317 | eval "$ac_cv_use_progressdlg" | |
5318 | if test "$no_cache" != 1; then | |
5319 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
5320 | fi | |
5321 | ||
5322 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
5323 | echo "$ac_t""yes" 1>&6 | |
5324 | else | |
5325 | echo "$ac_t""no" 1>&6 | |
5326 | fi | |
5327 | ||
5328 | ||
5329 | echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6 | |
b12915c1 | 5330 | echo "configure:5331: checking "for --enable-miniframe"" >&5 |
10f2d63a VZ |
5331 | no_cache=0 |
5332 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
5333 | if test "${enable_miniframe+set}" = set; then | |
5334 | enableval="$enable_miniframe" | |
5335 | ||
5336 | if test "$enableval" = yes; then | |
5337 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
5338 | else | |
5339 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
5340 | fi | |
5341 | ||
5342 | else | |
5343 | ||
5344 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
5345 | if test "x$LINE" != x ; then | |
5346 | eval "DEFAULT_$LINE" | |
5347 | else | |
5348 | no_cache=1 | |
5349 | fi | |
5350 | ||
5351 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
5352 | ||
5353 | fi | |
5354 | ||
5355 | ||
5356 | eval "$ac_cv_use_miniframe" | |
5357 | if test "$no_cache" != 1; then | |
5358 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
5359 | fi | |
5360 | ||
5361 | if test "$wxUSE_MINIFRAME" = yes; then | |
5362 | echo "$ac_t""yes" 1>&6 | |
5363 | else | |
5364 | echo "$ac_t""no" 1>&6 | |
5365 | fi | |
5366 | ||
5367 | ||
5368 | echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6 | |
b12915c1 | 5369 | echo "configure:5370: checking "for --enable-html"" >&5 |
10f2d63a VZ |
5370 | no_cache=0 |
5371 | # Check whether --enable-html or --disable-html was given. | |
5372 | if test "${enable_html+set}" = set; then | |
5373 | enableval="$enable_html" | |
5374 | ||
5375 | if test "$enableval" = yes; then | |
5376 | ac_cv_use_html='wxUSE_HTML=yes' | |
5377 | else | |
5378 | ac_cv_use_html='wxUSE_HTML=no' | |
5379 | fi | |
5380 | ||
5381 | else | |
5382 | ||
5383 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
5384 | if test "x$LINE" != x ; then | |
5385 | eval "DEFAULT_$LINE" | |
5386 | else | |
5387 | no_cache=1 | |
5388 | fi | |
5389 | ||
5390 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
5391 | ||
5392 | fi | |
5393 | ||
5394 | ||
5395 | eval "$ac_cv_use_html" | |
5396 | if test "$no_cache" != 1; then | |
5397 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
5398 | fi | |
5399 | ||
5400 | if test "$wxUSE_HTML" = yes; then | |
5401 | echo "$ac_t""yes" 1>&6 | |
5402 | else | |
5403 | echo "$ac_t""no" 1>&6 | |
5404 | fi | |
5405 | ||
5406 | ||
5407 | echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6 | |
b12915c1 | 5408 | echo "configure:5409: checking "for --enable-tooltips"" >&5 |
10f2d63a VZ |
5409 | no_cache=0 |
5410 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
5411 | if test "${enable_tooltips+set}" = set; then | |
5412 | enableval="$enable_tooltips" | |
5413 | ||
5414 | if test "$enableval" = yes; then | |
5415 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
5416 | else | |
5417 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
5418 | fi | |
5419 | ||
5420 | else | |
5421 | ||
5422 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
5423 | if test "x$LINE" != x ; then | |
5424 | eval "DEFAULT_$LINE" | |
5425 | else | |
5426 | no_cache=1 | |
5427 | fi | |
5428 | ||
5429 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
5430 | ||
5431 | fi | |
5432 | ||
5433 | ||
5434 | eval "$ac_cv_use_tooltips" | |
5435 | if test "$no_cache" != 1; then | |
5436 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
5437 | fi | |
5438 | ||
5439 | if test "$wxUSE_TOOLTIPS" = yes; then | |
5440 | echo "$ac_t""yes" 1>&6 | |
5441 | else | |
5442 | echo "$ac_t""no" 1>&6 | |
5443 | fi | |
5444 | ||
5445 | ||
5446 | echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6 | |
b12915c1 | 5447 | echo "configure:5448: checking "for --enable-splines"" >&5 |
10f2d63a VZ |
5448 | no_cache=0 |
5449 | # Check whether --enable-splines or --disable-splines was given. | |
5450 | if test "${enable_splines+set}" = set; then | |
5451 | enableval="$enable_splines" | |
5452 | ||
5453 | if test "$enableval" = yes; then | |
5454 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
5455 | else | |
5456 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
5457 | fi | |
5458 | ||
5459 | else | |
5460 | ||
5461 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
5462 | if test "x$LINE" != x ; then | |
5463 | eval "DEFAULT_$LINE" | |
5464 | else | |
5465 | no_cache=1 | |
5466 | fi | |
5467 | ||
5468 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
5469 | ||
5470 | fi | |
5471 | ||
5472 | ||
5473 | eval "$ac_cv_use_splines" | |
5474 | if test "$no_cache" != 1; then | |
5475 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
5476 | fi | |
5477 | ||
5478 | if test "$wxUSE_SPLINES" = yes; then | |
5479 | echo "$ac_t""yes" 1>&6 | |
5480 | else | |
5481 | echo "$ac_t""no" 1>&6 | |
5482 | fi | |
5483 | ||
5484 | ||
5485 | echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6 | |
b12915c1 | 5486 | echo "configure:5487: checking "for --enable-validators"" >&5 |
10f2d63a VZ |
5487 | no_cache=0 |
5488 | # Check whether --enable-validators or --disable-validators was given. | |
5489 | if test "${enable_validators+set}" = set; then | |
5490 | enableval="$enable_validators" | |
5491 | ||
5492 | if test "$enableval" = yes; then | |
5493 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
5494 | else | |
5495 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
5496 | fi | |
5497 | ||
5498 | else | |
5499 | ||
5500 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
5501 | if test "x$LINE" != x ; then | |
5502 | eval "DEFAULT_$LINE" | |
5503 | else | |
5504 | no_cache=1 | |
5505 | fi | |
5506 | ||
5507 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
5508 | ||
5509 | fi | |
5510 | ||
5511 | ||
5512 | eval "$ac_cv_use_validators" | |
5513 | if test "$no_cache" != 1; then | |
5514 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
5515 | fi | |
5516 | ||
5517 | if test "$wxUSE_VALIDATORS" = yes; then | |
5518 | echo "$ac_t""yes" 1>&6 | |
5519 | else | |
5520 | echo "$ac_t""no" 1>&6 | |
5521 | fi | |
5522 | ||
5523 | ||
5524 | echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6 | |
b12915c1 | 5525 | echo "configure:5526: checking "for --enable-busyinfo"" >&5 |
10f2d63a VZ |
5526 | no_cache=0 |
5527 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
5528 | if test "${enable_busyinfo+set}" = set; then | |
5529 | enableval="$enable_busyinfo" | |
5530 | ||
5531 | if test "$enableval" = yes; then | |
5532 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
5533 | else | |
5534 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
5535 | fi | |
5536 | ||
5537 | else | |
5538 | ||
5539 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
5540 | if test "x$LINE" != x ; then | |
5541 | eval "DEFAULT_$LINE" | |
5542 | else | |
5543 | no_cache=1 | |
5544 | fi | |
5545 | ||
5546 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
5547 | ||
5548 | fi | |
5549 | ||
5550 | ||
5551 | eval "$ac_cv_use_busyinfo" | |
5552 | if test "$no_cache" != 1; then | |
5553 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
5554 | fi | |
5555 | ||
5556 | if test "$wxUSE_BUSYINFO" = yes; then | |
5557 | echo "$ac_t""yes" 1>&6 | |
5558 | else | |
5559 | echo "$ac_t""no" 1>&6 | |
5560 | fi | |
5561 | ||
5562 | ||
5563 | ||
5564 | ||
5565 | echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6 | |
b12915c1 | 5566 | echo "configure:5567: checking "for --enable-gif"" >&5 |
10f2d63a VZ |
5567 | no_cache=0 |
5568 | # Check whether --enable-gif or --disable-gif was given. | |
5569 | if test "${enable_gif+set}" = set; then | |
5570 | enableval="$enable_gif" | |
5571 | ||
5572 | if test "$enableval" = yes; then | |
5573 | ac_cv_use_gif='wxUSE_GIF=yes' | |
5574 | else | |
5575 | ac_cv_use_gif='wxUSE_GIF=no' | |
5576 | fi | |
5577 | ||
5578 | else | |
5579 | ||
5580 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
5581 | if test "x$LINE" != x ; then | |
5582 | eval "DEFAULT_$LINE" | |
5583 | else | |
5584 | no_cache=1 | |
5585 | fi | |
5586 | ||
5587 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
5588 | ||
5589 | fi | |
5590 | ||
5591 | ||
5592 | eval "$ac_cv_use_gif" | |
5593 | if test "$no_cache" != 1; then | |
5594 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
5595 | fi | |
5596 | ||
5597 | if test "$wxUSE_GIF" = yes; then | |
5598 | echo "$ac_t""yes" 1>&6 | |
5599 | else | |
5600 | echo "$ac_t""no" 1>&6 | |
5601 | fi | |
5602 | ||
5603 | ||
5604 | echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6 | |
b12915c1 | 5605 | echo "configure:5606: checking "for --enable-pcx"" >&5 |
10f2d63a VZ |
5606 | no_cache=0 |
5607 | # Check whether --enable-pcx or --disable-pcx was given. | |
5608 | if test "${enable_pcx+set}" = set; then | |
5609 | enableval="$enable_pcx" | |
5610 | ||
5611 | if test "$enableval" = yes; then | |
5612 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
5613 | else | |
5614 | ac_cv_use_pcx='wxUSE_PCX=no' | |
5615 | fi | |
5616 | ||
5617 | else | |
5618 | ||
5619 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
5620 | if test "x$LINE" != x ; then | |
5621 | eval "DEFAULT_$LINE" | |
5622 | else | |
5623 | no_cache=1 | |
5624 | fi | |
5625 | ||
5626 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
5627 | ||
5628 | fi | |
5629 | ||
5630 | ||
5631 | eval "$ac_cv_use_pcx" | |
5632 | if test "$no_cache" != 1; then | |
5633 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
5634 | fi | |
5635 | ||
5636 | if test "$wxUSE_PCX" = yes; then | |
5637 | echo "$ac_t""yes" 1>&6 | |
5638 | else | |
5639 | echo "$ac_t""no" 1>&6 | |
5640 | fi | |
5641 | ||
5642 | ||
5643 | echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6 | |
b12915c1 | 5644 | echo "configure:5645: checking "for --enable-pnm"" >&5 |
10f2d63a VZ |
5645 | no_cache=0 |
5646 | # Check whether --enable-pnm or --disable-pnm was given. | |
5647 | if test "${enable_pnm+set}" = set; then | |
5648 | enableval="$enable_pnm" | |
5649 | ||
5650 | if test "$enableval" = yes; then | |
5651 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
5652 | else | |
5653 | ac_cv_use_pnm='wxUSE_PNM=no' | |
5654 | fi | |
5655 | ||
5656 | else | |
5657 | ||
5658 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
5659 | if test "x$LINE" != x ; then | |
5660 | eval "DEFAULT_$LINE" | |
5661 | else | |
5662 | no_cache=1 | |
5663 | fi | |
5664 | ||
5665 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
5666 | ||
5667 | fi | |
5668 | ||
5669 | ||
5670 | eval "$ac_cv_use_pnm" | |
5671 | if test "$no_cache" != 1; then | |
5672 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
5673 | fi | |
5674 | ||
5675 | if test "$wxUSE_PNM" = yes; then | |
5676 | echo "$ac_t""yes" 1>&6 | |
5677 | else | |
5678 | echo "$ac_t""no" 1>&6 | |
5679 | fi | |
5680 | ||
5681 | ||
b12915c1 VZ |
5682 | fi |
5683 | ||
10f2d63a VZ |
5684 | |
5685 | echo "saving argument cache $wx_arg_cache_file" | |
5686 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
5687 | ||
5688 | ||
5689 | ||
5690 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
b12915c1 | 5691 | echo "configure:5692: checking for toolkit" >&5 |
10f2d63a VZ |
5692 | |
5693 | if test "$wxUSE_GUI" = "yes"; then | |
5694 | ||
b12915c1 VZ |
5695 | if test "$USE_BEOS" = 1; then |
5696 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } | |
5697 | fi | |
5698 | ||
10f2d63a VZ |
5699 | if test "$TOOLKIT_GIVEN" = 1; then |
5700 | for toolkit in `echo $ALL_TOOLKITS`; do | |
5701 | var=wxUSE_$toolkit | |
5702 | eval "value=\$${var}" | |
5703 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
5704 | done | |
5705 | else | |
5706 | for toolkit in `echo $ALL_TOOLKITS`; do | |
5707 | if test "$has_toolkit_in_cache" != 1; then | |
5708 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
5709 | else | |
5710 | var=DEFAULT_wxUSE_$toolkit | |
5711 | fi | |
5712 | eval "wxUSE_$toolkit=\$${var}" | |
5713 | done | |
5714 | fi | |
5715 | ||
5716 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}` | |
5717 | ||
5718 | case "$NUM_TOOLKITS" in | |
5719 | 1) | |
5720 | ;; | |
5721 | 0) | |
5722 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } | |
5723 | ;; | |
5724 | *) | |
5725 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } | |
5726 | esac | |
5727 | ||
5728 | for toolkit in `echo $ALL_TOOLKITS`; do | |
5729 | var=wxUSE_$toolkit | |
5730 | eval "value=\$${var}" | |
5731 | if test "x$value" != x; then | |
5732 | cache_var=CACHE_$toolkit | |
5733 | eval "cache=\$${cache_var}" | |
5734 | if test "$cache" = 1; then | |
5735 | echo "$var=$value" >> ${wx_arg_cache_file} | |
5736 | fi | |
5737 | if test "$value" = 1; then | |
5738 | echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6 | |
5739 | fi | |
5740 | fi | |
5741 | done | |
5742 | ||
5743 | else | |
5744 | echo "$ac_t""base only" 1>&6 | |
5745 | fi | |
5746 | ||
5747 | ||
5748 | cat > confcache <<\EOF | |
5749 | # This file is a shell script that caches the results of configure | |
5750 | # tests run on this system so they can be shared between configure | |
5751 | # scripts and configure runs. It is not useful on other systems. | |
5752 | # If it contains results you don't want to keep, you may remove or edit it. | |
5753 | # | |
5754 | # By default, configure uses ./config.cache as the cache file, | |
5755 | # creating it if it does not exist already. You can give configure | |
5756 | # the --cache-file=FILE option to use a different cache file; that is | |
5757 | # what configure does when it calls configure scripts in | |
5758 | # subdirectories, so they share the cache. | |
5759 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
5760 | # config.status only pays attention to the cache file if you give it the | |
5761 | # --recheck option to rerun configure. | |
5762 | # | |
5763 | EOF | |
5764 | # The following way of writing the cache mishandles newlines in values, | |
5765 | # but we know of no workaround that is simple, portable, and efficient. | |
5766 | # So, don't put newlines in cache variables' values. | |
5767 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
5768 | # and sets the high bit in the cache file unless we assign to the vars. | |
5769 | (set) 2>&1 | | |
5770 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
5771 | *ac_space=\ *) | |
5772 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
5773 | # turns \\\\ into \\, and sed turns \\ into \). | |
5774 | sed -n \ | |
5775 | -e "s/'/'\\\\''/g" \ | |
5776 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
5777 | ;; | |
5778 | *) | |
5779 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5780 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
5781 | ;; | |
5782 | esac >> confcache | |
5783 | if cmp -s $cache_file confcache; then | |
5784 | : | |
5785 | else | |
5786 | if test -w $cache_file; then | |
5787 | echo "updating cache $cache_file" | |
5788 | cat confcache > $cache_file | |
5789 | else | |
5790 | echo "not updating unwritable cache $cache_file" | |
5791 | fi | |
5792 | fi | |
5793 | rm -f confcache | |
5794 | ||
5795 | ||
5796 | if eval "test $host != $build"; then | |
5797 | if eval "test $host_alias != NONE"; then | |
5798 | CC=$host_alias-gcc | |
5799 | CXX=$host_alias-c++ | |
5800 | AR=$host_alias-ar | |
5801 | RANLIB=$host_alias-ranlib | |
5802 | DLLTOOL=$host_alias-dlltool | |
5803 | LD=$host_alias-ld | |
5804 | NM=$host_alias-nm | |
5805 | STRIP=$host_alias-strip | |
5806 | fi | |
5807 | fi | |
5808 | ||
5809 | # Extract the first word of "gcc", so it can be a program name with args. | |
5810 | set dummy gcc; ac_word=$2 | |
5811 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b12915c1 | 5812 | echo "configure:5813: checking for $ac_word" >&5 |
10f2d63a VZ |
5813 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
5814 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5815 | else | |
5816 | if test -n "$CC"; then | |
5817 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5818 | else | |
5819 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
5820 | ac_dummy="$PATH" | |
5821 | for ac_dir in $ac_dummy; do | |
5822 | test -z "$ac_dir" && ac_dir=. | |
5823 | if test -f $ac_dir/$ac_word; then | |
5824 | ac_cv_prog_CC="gcc" | |
5825 | break | |
5826 | fi | |
5827 | done | |
5828 | IFS="$ac_save_ifs" | |
5829 | fi | |
5830 | fi | |
5831 | CC="$ac_cv_prog_CC" | |
5832 | if test -n "$CC"; then | |
5833 | echo "$ac_t""$CC" 1>&6 | |
5834 | else | |
5835 | echo "$ac_t""no" 1>&6 | |
5836 | fi | |
5837 | ||
5838 | if test -z "$CC"; then | |
5839 | # Extract the first word of "cc", so it can be a program name with args. | |
5840 | set dummy cc; ac_word=$2 | |
5841 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b12915c1 | 5842 | echo "configure:5843: checking for $ac_word" >&5 |
10f2d63a VZ |
5843 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
5844 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5845 | else | |
5846 | if test -n "$CC"; then | |
5847 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5848 | else | |
5849 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
5850 | ac_prog_rejected=no | |
5851 | ac_dummy="$PATH" | |
5852 | for ac_dir in $ac_dummy; do | |
5853 | test -z "$ac_dir" && ac_dir=. | |
5854 | if test -f $ac_dir/$ac_word; then | |
5855 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
5856 | ac_prog_rejected=yes | |
5857 | continue | |
5858 | fi | |
5859 | ac_cv_prog_CC="cc" | |
5860 | break | |
5861 | fi | |
5862 | done | |
5863 | IFS="$ac_save_ifs" | |
5864 | if test $ac_prog_rejected = yes; then | |
5865 | # We found a bogon in the path, so make sure we never use it. | |
5866 | set dummy $ac_cv_prog_CC | |
5867 | shift | |
5868 | if test $# -gt 0; then | |
5869 | # We chose a different compiler from the bogus one. | |
5870 | # However, it has the same basename, so the bogon will be chosen | |
5871 | # first if we set CC to just the basename; use the full file name. | |
5872 | shift | |
5873 | set dummy "$ac_dir/$ac_word" "$@" | |
5874 | shift | |
5875 | ac_cv_prog_CC="$@" | |
5876 | fi | |
5877 | fi | |
5878 | fi | |
5879 | fi | |
5880 | CC="$ac_cv_prog_CC" | |
5881 | if test -n "$CC"; then | |
5882 | echo "$ac_t""$CC" 1>&6 | |
5883 | else | |
5884 | echo "$ac_t""no" 1>&6 | |
5885 | fi | |
5886 | ||
5887 | if test -z "$CC"; then | |
5888 | case "`uname -s`" in | |
5889 | *win32* | *WIN32*) | |
5890 | # Extract the first word of "cl", so it can be a program name with args. | |
5891 | set dummy cl; ac_word=$2 | |
5892 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b12915c1 | 5893 | echo "configure:5894: checking for $ac_word" >&5 |
10f2d63a VZ |
5894 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
5895 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5896 | else | |
5897 | if test -n "$CC"; then | |
5898 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5899 | else | |
5900 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
5901 | ac_dummy="$PATH" | |
5902 | for ac_dir in $ac_dummy; do | |
5903 | test -z "$ac_dir" && ac_dir=. | |
5904 | if test -f $ac_dir/$ac_word; then | |
5905 | ac_cv_prog_CC="cl" | |
5906 | break | |
5907 | fi | |
5908 | done | |
5909 | IFS="$ac_save_ifs" | |
5910 | fi | |
5911 | fi | |
5912 | CC="$ac_cv_prog_CC" | |
5913 | if test -n "$CC"; then | |
5914 | echo "$ac_t""$CC" 1>&6 | |
5915 | else | |
5916 | echo "$ac_t""no" 1>&6 | |
5917 | fi | |
5918 | ;; | |
5919 | esac | |
5920 | fi | |
5921 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
5922 | fi | |
5923 | ||
5924 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
b12915c1 | 5925 | echo "configure:5926: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
10f2d63a VZ |
5926 | |
5927 | ac_ext=c | |
5928 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5929 | ac_cpp='$CPP $CPPFLAGS' | |
5930 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
5931 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
5932 | cross_compiling=$ac_cv_prog_cc_cross | |
5933 | ||
5934 | cat > conftest.$ac_ext << EOF | |
5935 | ||
b12915c1 | 5936 | #line 5937 "configure" |
10f2d63a VZ |
5937 | #include "confdefs.h" |
5938 | ||
5939 | main(){return(0);} | |
5940 | EOF | |
b12915c1 | 5941 | if { (eval echo configure:5942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
5942 | ac_cv_prog_cc_works=yes |
5943 | # If we can't run a trivial program, we are probably using a cross compiler. | |
5944 | if (./conftest; exit) 2>/dev/null; then | |
5945 | ac_cv_prog_cc_cross=no | |
5946 | else | |
5947 | ac_cv_prog_cc_cross=yes | |
5948 | fi | |
5949 | else | |
5950 | echo "configure: failed program was:" >&5 | |
5951 | cat conftest.$ac_ext >&5 | |
5952 | ac_cv_prog_cc_works=no | |
5953 | fi | |
5954 | rm -fr conftest* | |
5955 | ac_ext=c | |
5956 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5957 | ac_cpp='$CPP $CPPFLAGS' | |
5958 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
5959 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
5960 | cross_compiling=$ac_cv_prog_cc_cross | |
5961 | ||
5962 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
5963 | if test $ac_cv_prog_cc_works = no; then | |
5964 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
5965 | fi | |
5966 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
b12915c1 | 5967 | echo "configure:5968: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
10f2d63a VZ |
5968 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
5969 | cross_compiling=$ac_cv_prog_cc_cross | |
5970 | ||
5971 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
b12915c1 | 5972 | echo "configure:5973: checking whether we are using GNU C" >&5 |
10f2d63a VZ |
5973 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
5974 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5975 | else | |
5976 | cat > conftest.c <<EOF | |
5977 | #ifdef __GNUC__ | |
5978 | yes; | |
5979 | #endif | |
5980 | EOF | |
b12915c1 | 5981 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:5982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
10f2d63a VZ |
5982 | ac_cv_prog_gcc=yes |
5983 | else | |
5984 | ac_cv_prog_gcc=no | |
5985 | fi | |
5986 | fi | |
5987 | ||
5988 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
5989 | ||
5990 | if test $ac_cv_prog_gcc = yes; then | |
5991 | GCC=yes | |
5992 | else | |
5993 | GCC= | |
5994 | fi | |
5995 | ||
5996 | ac_test_CFLAGS="${CFLAGS+set}" | |
5997 | ac_save_CFLAGS="$CFLAGS" | |
5998 | CFLAGS= | |
5999 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
b12915c1 | 6000 | echo "configure:6001: checking whether ${CC-cc} accepts -g" >&5 |
10f2d63a VZ |
6001 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
6002 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6003 | else | |
6004 | echo 'void f(){}' > conftest.c | |
6005 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
6006 | ac_cv_prog_cc_g=yes | |
6007 | else | |
6008 | ac_cv_prog_cc_g=no | |
6009 | fi | |
6010 | rm -f conftest* | |
6011 | ||
6012 | fi | |
6013 | ||
6014 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
6015 | if test "$ac_test_CFLAGS" = set; then | |
6016 | CFLAGS="$ac_save_CFLAGS" | |
6017 | elif test $ac_cv_prog_cc_g = yes; then | |
6018 | if test "$GCC" = yes; then | |
6019 | CFLAGS="-g -O2" | |
6020 | else | |
6021 | CFLAGS="-g" | |
6022 | fi | |
6023 | else | |
6024 | if test "$GCC" = yes; then | |
6025 | CFLAGS="-O2" | |
6026 | else | |
6027 | CFLAGS= | |
6028 | fi | |
6029 | fi | |
6030 | ||
6031 | ||
6032 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
6033 | ||
6034 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
b12915c1 | 6035 | echo "configure:6036: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
6036 | # On Suns, sometimes $CPP names a directory. |
6037 | if test -n "$CPP" && test -d "$CPP"; then | |
6038 | CPP= | |
6039 | fi | |
6040 | if test -z "$CPP"; then | |
6041 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
6042 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6043 | else | |
6044 | # This must be in double quotes, not single quotes, because CPP may get | |
6045 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
6046 | CPP="${CC-cc} -E" | |
6047 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6048 | # not just through cpp. | |
6049 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 6050 | #line 6051 "configure" |
10f2d63a VZ |
6051 | #include "confdefs.h" |
6052 | #include <assert.h> | |
6053 | Syntax Error | |
6054 | EOF | |
6055 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b12915c1 | 6056 | { (eval echo configure:6057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
6057 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6058 | if test -z "$ac_err"; then | |
6059 | : | |
6060 | else | |
6061 | echo "$ac_err" >&5 | |
6062 | echo "configure: failed program was:" >&5 | |
6063 | cat conftest.$ac_ext >&5 | |
6064 | rm -rf conftest* | |
6065 | CPP="${CC-cc} -E -traditional-cpp" | |
6066 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 6067 | #line 6068 "configure" |
10f2d63a VZ |
6068 | #include "confdefs.h" |
6069 | #include <assert.h> | |
6070 | Syntax Error | |
6071 | EOF | |
6072 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b12915c1 | 6073 | { (eval echo configure:6074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
6074 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6075 | if test -z "$ac_err"; then | |
6076 | : | |
6077 | else | |
6078 | echo "$ac_err" >&5 | |
6079 | echo "configure: failed program was:" >&5 | |
6080 | cat conftest.$ac_ext >&5 | |
6081 | rm -rf conftest* | |
6082 | CPP="${CC-cc} -nologo -E" | |
6083 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 6084 | #line 6085 "configure" |
10f2d63a VZ |
6085 | #include "confdefs.h" |
6086 | #include <assert.h> | |
6087 | Syntax Error | |
6088 | EOF | |
6089 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b12915c1 | 6090 | { (eval echo configure:6091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
6091 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6092 | if test -z "$ac_err"; then | |
6093 | : | |
6094 | else | |
6095 | echo "$ac_err" >&5 | |
6096 | echo "configure: failed program was:" >&5 | |
6097 | cat conftest.$ac_ext >&5 | |
6098 | rm -rf conftest* | |
6099 | CPP=/lib/cpp | |
6100 | fi | |
6101 | rm -f conftest* | |
6102 | fi | |
6103 | rm -f conftest* | |
6104 | fi | |
6105 | rm -f conftest* | |
6106 | ac_cv_prog_CPP="$CPP" | |
6107 | fi | |
6108 | CPP="$ac_cv_prog_CPP" | |
6109 | else | |
6110 | ac_cv_prog_CPP="$CPP" | |
6111 | fi | |
6112 | echo "$ac_t""$CPP" 1>&6 | |
6113 | ||
6114 | ||
6115 | if test $ac_cv_prog_gcc = yes; then | |
6116 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
b12915c1 | 6117 | echo "configure:6118: checking whether ${CC-cc} needs -traditional" >&5 |
10f2d63a VZ |
6118 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
6119 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6120 | else | |
6121 | ac_pattern="Autoconf.*'x'" | |
6122 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 6123 | #line 6124 "configure" |
10f2d63a VZ |
6124 | #include "confdefs.h" |
6125 | #include <sgtty.h> | |
6126 | Autoconf TIOCGETP | |
6127 | EOF | |
6128 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6129 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
6130 | rm -rf conftest* | |
6131 | ac_cv_prog_gcc_traditional=yes | |
6132 | else | |
6133 | rm -rf conftest* | |
6134 | ac_cv_prog_gcc_traditional=no | |
6135 | fi | |
6136 | rm -f conftest* | |
6137 | ||
6138 | ||
6139 | if test $ac_cv_prog_gcc_traditional = no; then | |
6140 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 6141 | #line 6142 "configure" |
10f2d63a VZ |
6142 | #include "confdefs.h" |
6143 | #include <termio.h> | |
6144 | Autoconf TCGETA | |
6145 | EOF | |
6146 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6147 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
6148 | rm -rf conftest* | |
6149 | ac_cv_prog_gcc_traditional=yes | |
6150 | fi | |
6151 | rm -f conftest* | |
6152 | ||
6153 | fi | |
6154 | fi | |
6155 | ||
6156 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
6157 | if test $ac_cv_prog_gcc_traditional = yes; then | |
6158 | CC="$CC -traditional" | |
6159 | fi | |
6160 | fi | |
6161 | ||
6162 | ||
6163 | ||
6164 | ac_ext=C | |
6165 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6166 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6167 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6168 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6169 | cross_compiling=$ac_cv_prog_cxx_cross | |
6170 | ||
6171 | ||
6172 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
6173 | do | |
6174 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6175 | set dummy $ac_prog; ac_word=$2 | |
6176 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b12915c1 | 6177 | echo "configure:6178: checking for $ac_word" >&5 |
10f2d63a VZ |
6178 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
6179 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6180 | else | |
6181 | if test -n "$CXX"; then | |
6182 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
6183 | else | |
6184 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6185 | ac_dummy="$PATH" | |
6186 | for ac_dir in $ac_dummy; do | |
6187 | test -z "$ac_dir" && ac_dir=. | |
6188 | if test -f $ac_dir/$ac_word; then | |
6189 | ac_cv_prog_CXX="$ac_prog" | |
6190 | break | |
6191 | fi | |
6192 | done | |
6193 | IFS="$ac_save_ifs" | |
6194 | fi | |
6195 | fi | |
6196 | CXX="$ac_cv_prog_CXX" | |
6197 | if test -n "$CXX"; then | |
6198 | echo "$ac_t""$CXX" 1>&6 | |
6199 | else | |
6200 | echo "$ac_t""no" 1>&6 | |
6201 | fi | |
6202 | ||
6203 | test -n "$CXX" && break | |
6204 | done | |
6205 | test -n "$CXX" || CXX="gcc" | |
6206 | ||
6207 | ||
6208 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
b12915c1 | 6209 | echo "configure:6210: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
10f2d63a VZ |
6210 | |
6211 | ac_ext=C | |
6212 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6213 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6214 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6215 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6216 | cross_compiling=$ac_cv_prog_cxx_cross | |
6217 | ||
6218 | cat > conftest.$ac_ext << EOF | |
6219 | ||
b12915c1 | 6220 | #line 6221 "configure" |
10f2d63a VZ |
6221 | #include "confdefs.h" |
6222 | ||
6223 | int main(){return(0);} | |
6224 | EOF | |
b12915c1 | 6225 | if { (eval echo configure:6226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
6226 | ac_cv_prog_cxx_works=yes |
6227 | # If we can't run a trivial program, we are probably using a cross compiler. | |
6228 | if (./conftest; exit) 2>/dev/null; then | |
6229 | ac_cv_prog_cxx_cross=no | |
6230 | else | |
6231 | ac_cv_prog_cxx_cross=yes | |
6232 | fi | |
6233 | else | |
6234 | echo "configure: failed program was:" >&5 | |
6235 | cat conftest.$ac_ext >&5 | |
6236 | ac_cv_prog_cxx_works=no | |
6237 | fi | |
6238 | rm -fr conftest* | |
6239 | ac_ext=C | |
6240 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6241 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6242 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6243 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6244 | cross_compiling=$ac_cv_prog_cxx_cross | |
6245 | ||
6246 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
6247 | if test $ac_cv_prog_cxx_works = no; then | |
6248 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
6249 | fi | |
6250 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
b12915c1 | 6251 | echo "configure:6252: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
10f2d63a VZ |
6252 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
6253 | cross_compiling=$ac_cv_prog_cxx_cross | |
6254 | ||
6255 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
b12915c1 | 6256 | echo "configure:6257: checking whether we are using GNU C++" >&5 |
10f2d63a VZ |
6257 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
6258 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6259 | else | |
6260 | cat > conftest.C <<EOF | |
6261 | #ifdef __GNUC__ | |
6262 | yes; | |
6263 | #endif | |
6264 | EOF | |
b12915c1 | 6265 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
10f2d63a VZ |
6266 | ac_cv_prog_gxx=yes |
6267 | else | |
6268 | ac_cv_prog_gxx=no | |
6269 | fi | |
6270 | fi | |
6271 | ||
6272 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 | |
6273 | ||
6274 | if test $ac_cv_prog_gxx = yes; then | |
6275 | GXX=yes | |
6276 | else | |
6277 | GXX= | |
6278 | fi | |
6279 | ||
6280 | ac_test_CXXFLAGS="${CXXFLAGS+set}" | |
6281 | ac_save_CXXFLAGS="$CXXFLAGS" | |
6282 | CXXFLAGS= | |
6283 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
b12915c1 | 6284 | echo "configure:6285: checking whether ${CXX-g++} accepts -g" >&5 |
10f2d63a VZ |
6285 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
6286 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6287 | else | |
6288 | echo 'void f(){}' > conftest.cc | |
6289 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
6290 | ac_cv_prog_cxx_g=yes | |
6291 | else | |
6292 | ac_cv_prog_cxx_g=no | |
6293 | fi | |
6294 | rm -f conftest* | |
6295 | ||
6296 | fi | |
6297 | ||
6298 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
6299 | if test "$ac_test_CXXFLAGS" = set; then | |
6300 | CXXFLAGS="$ac_save_CXXFLAGS" | |
6301 | elif test $ac_cv_prog_cxx_g = yes; then | |
6302 | if test "$GXX" = yes; then | |
6303 | CXXFLAGS="-g -O2" | |
6304 | else | |
6305 | CXXFLAGS="-g" | |
6306 | fi | |
6307 | else | |
6308 | if test "$GXX" = yes; then | |
6309 | CXXFLAGS="-O2" | |
6310 | else | |
6311 | CXXFLAGS= | |
6312 | fi | |
6313 | fi | |
6314 | ||
6315 | ||
6316 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 | |
b12915c1 | 6317 | echo "configure:6318: checking how to run the C++ preprocessor" >&5 |
10f2d63a VZ |
6318 | if test -z "$CXXCPP"; then |
6319 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
6320 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6321 | else | |
6322 | ac_ext=C | |
6323 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6324 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6325 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6326 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6327 | cross_compiling=$ac_cv_prog_cxx_cross | |
6328 | CXXCPP="${CXX-g++} -E" | |
6329 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 6330 | #line 6331 "configure" |
10f2d63a VZ |
6331 | #include "confdefs.h" |
6332 | #include <stdlib.h> | |
6333 | EOF | |
6334 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b12915c1 | 6335 | { (eval echo configure:6336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
6336 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6337 | if test -z "$ac_err"; then | |
6338 | : | |
6339 | else | |
6340 | echo "$ac_err" >&5 | |
6341 | echo "configure: failed program was:" >&5 | |
6342 | cat conftest.$ac_ext >&5 | |
6343 | rm -rf conftest* | |
6344 | CXXCPP=/lib/cpp | |
6345 | fi | |
6346 | rm -f conftest* | |
6347 | ac_cv_prog_CXXCPP="$CXXCPP" | |
6348 | ac_ext=C | |
6349 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6350 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6351 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6352 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6353 | cross_compiling=$ac_cv_prog_cxx_cross | |
6354 | fi | |
6355 | fi | |
6356 | CXXCPP="$ac_cv_prog_CXXCPP" | |
6357 | echo "$ac_t""$CXXCPP" 1>&6 | |
6358 | ||
6359 | ||
6360 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` | |
6361 | ||
6362 | ac_ext=c | |
6363 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6364 | ac_cpp='$CPP $CPPFLAGS' | |
6365 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6366 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6367 | cross_compiling=$ac_cv_prog_cc_cross | |
6368 | ||
6369 | ||
6370 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6371 | set dummy ranlib; ac_word=$2 | |
6372 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b12915c1 | 6373 | echo "configure:6374: checking for $ac_word" >&5 |
10f2d63a VZ |
6374 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
6375 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6376 | else | |
6377 | if test -n "$RANLIB"; then | |
6378 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6379 | else | |
6380 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6381 | ac_dummy="$PATH" | |
6382 | for ac_dir in $ac_dummy; do | |
6383 | test -z "$ac_dir" && ac_dir=. | |
6384 | if test -f $ac_dir/$ac_word; then | |
6385 | ac_cv_prog_RANLIB="ranlib" | |
6386 | break | |
6387 | fi | |
6388 | done | |
6389 | IFS="$ac_save_ifs" | |
6390 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
6391 | fi | |
6392 | fi | |
6393 | RANLIB="$ac_cv_prog_RANLIB" | |
6394 | if test -n "$RANLIB"; then | |
6395 | echo "$ac_t""$RANLIB" 1>&6 | |
6396 | else | |
6397 | echo "$ac_t""no" 1>&6 | |
6398 | fi | |
6399 | ||
6400 | ||
6401 | # Extract the first word of "ar", so it can be a program name with args. | |
6402 | set dummy ar; ac_word=$2 | |
6403 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b12915c1 | 6404 | echo "configure:6405: checking for $ac_word" >&5 |
10f2d63a VZ |
6405 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
6406 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6407 | else | |
6408 | if test -n "$AR"; then | |
6409 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6410 | else | |
6411 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6412 | ac_dummy="$PATH" | |
6413 | for ac_dir in $ac_dummy; do | |
6414 | test -z "$ac_dir" && ac_dir=. | |
6415 | if test -f $ac_dir/$ac_word; then | |
6416 | ac_cv_prog_AR="ar" | |
6417 | break | |
6418 | fi | |
6419 | done | |
6420 | IFS="$ac_save_ifs" | |
6421 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
6422 | fi | |
6423 | fi | |
6424 | AR="$ac_cv_prog_AR" | |
6425 | if test -n "$AR"; then | |
6426 | echo "$ac_t""$AR" 1>&6 | |
6427 | else | |
6428 | echo "$ac_t""no" 1>&6 | |
6429 | fi | |
6430 | ||
6431 | ||
6432 | # Find a good install program. We prefer a C program (faster), | |
6433 | # so one script is as good as another. But avoid the broken or | |
6434 | # incompatible versions: | |
6435 | # SysV /etc/install, /usr/sbin/install | |
6436 | # SunOS /usr/etc/install | |
6437 | # IRIX /sbin/install | |
6438 | # AIX /bin/install | |
6439 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
6440 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
6441 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
6442 | # ./install, which can be erroneously created by make from ./install.sh. | |
6443 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
b12915c1 | 6444 | echo "configure:6445: checking for a BSD compatible install" >&5 |
10f2d63a VZ |
6445 | if test -z "$INSTALL"; then |
6446 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
6447 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6448 | else | |
6449 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
6450 | for ac_dir in $PATH; do | |
6451 | # Account for people who put trailing slashes in PATH elements. | |
6452 | case "$ac_dir/" in | |
6453 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
6454 | *) | |
6455 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
6456 | # Don't use installbsd from OSF since it installs stuff as root | |
6457 | # by default. | |
6458 | for ac_prog in ginstall scoinst install; do | |
6459 | if test -f $ac_dir/$ac_prog; then | |
6460 | if test $ac_prog = install && | |
6461 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
6462 | # AIX install. It has an incompatible calling convention. | |
6463 | : | |
6464 | else | |
6465 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
6466 | break 2 | |
6467 | fi | |
6468 | fi | |
6469 | done | |
6470 | ;; | |
6471 | esac | |
6472 | done | |
6473 | IFS="$ac_save_IFS" | |
6474 | ||
6475 | fi | |
6476 | if test "${ac_cv_path_install+set}" = set; then | |
6477 | INSTALL="$ac_cv_path_install" | |
6478 | else | |
6479 | # As a last resort, use the slow shell script. We don't cache a | |
6480 | # path for INSTALL within a source directory, because that will | |
6481 | # break other packages using the cache if that directory is | |
6482 | # removed, or if the path is relative. | |
6483 | INSTALL="$ac_install_sh" | |
6484 | fi | |
6485 | fi | |
6486 | echo "$ac_t""$INSTALL" 1>&6 | |
6487 | ||
6488 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
6489 | # It thinks the first close brace ends the variable substitution. | |
6490 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
6491 | ||
6492 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
6493 | ||
6494 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
6495 | ||
6496 | ||
6497 | # Extract the first word of "strip", so it can be a program name with args. | |
6498 | set dummy strip; ac_word=$2 | |
6499 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b12915c1 | 6500 | echo "configure:6501: checking for $ac_word" >&5 |
10f2d63a VZ |
6501 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
6502 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6503 | else | |
6504 | if test -n "$STRIP"; then | |
6505 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6506 | else | |
6507 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6508 | ac_dummy="$PATH" | |
6509 | for ac_dir in $ac_dummy; do | |
6510 | test -z "$ac_dir" && ac_dir=. | |
6511 | if test -f $ac_dir/$ac_word; then | |
6512 | ac_cv_prog_STRIP="strip" | |
6513 | break | |
6514 | fi | |
6515 | done | |
6516 | IFS="$ac_save_ifs" | |
6517 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" | |
6518 | fi | |
6519 | fi | |
6520 | STRIP="$ac_cv_prog_STRIP" | |
6521 | if test -n "$STRIP"; then | |
6522 | echo "$ac_t""$STRIP" 1>&6 | |
6523 | else | |
6524 | echo "$ac_t""no" 1>&6 | |
6525 | fi | |
6526 | ||
6527 | ||
6528 | echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6 | |
b12915c1 | 6529 | echo "configure:6530: checking "make for VPATH support"" >&5 |
10f2d63a VZ |
6530 | cat - << EOF > confMake |
6531 | check : file | |
6532 | cp \$? \$@ | |
6533 | cp \$? final_file | |
6534 | EOF | |
6535 | ||
6536 | if test ! -d sub ; then | |
6537 | mkdir sub | |
6538 | fi | |
6539 | echo dummy > sub/file | |
6540 | ${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null | |
6541 | RESULT=$? | |
6542 | rm -f sub/file check final_file confMake | |
6543 | rmdir sub | |
6544 | if test "$RESULT" = 0; then | |
6545 | echo "$ac_t""yes" 1>&6 | |
6546 | else | |
6547 | echo "$ac_t""no" 1>&6 | |
6548 | { echo "configure: error: You need a make-utility that is able to use the variable | |
6549 | VPATH correctly. | |
6550 | If your version of make does not support VPATH correctly" 1>&2; exit 1; } | |
6551 | fi | |
6552 | ||
6553 | for ac_prog in 'bison -y' byacc | |
6554 | do | |
6555 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6556 | set dummy $ac_prog; ac_word=$2 | |
6557 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b12915c1 | 6558 | echo "configure:6559: checking for $ac_word" >&5 |
10f2d63a VZ |
6559 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
6560 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6561 | else | |
6562 | if test -n "$YACC"; then | |
6563 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
6564 | else | |
6565 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6566 | ac_dummy="$PATH" | |
6567 | for ac_dir in $ac_dummy; do | |
6568 | test -z "$ac_dir" && ac_dir=. | |
6569 | if test -f $ac_dir/$ac_word; then | |
6570 | ac_cv_prog_YACC="$ac_prog" | |
6571 | break | |
6572 | fi | |
6573 | done | |
6574 | IFS="$ac_save_ifs" | |
6575 | fi | |
6576 | fi | |
6577 | YACC="$ac_cv_prog_YACC" | |
6578 | if test -n "$YACC"; then | |
6579 | echo "$ac_t""$YACC" 1>&6 | |
6580 | else | |
6581 | echo "$ac_t""no" 1>&6 | |
6582 | fi | |
6583 | ||
6584 | test -n "$YACC" && break | |
6585 | done | |
6586 | test -n "$YACC" || YACC="yacc" | |
6587 | ||
6588 | ||
6589 | # Extract the first word of "flex", so it can be a program name with args. | |
6590 | set dummy flex; ac_word=$2 | |
6591 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b12915c1 | 6592 | echo "configure:6593: checking for $ac_word" >&5 |
10f2d63a VZ |
6593 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
6594 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6595 | else | |
6596 | if test -n "$LEX"; then | |
6597 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
6598 | else | |
6599 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6600 | ac_dummy="$PATH" | |
6601 | for ac_dir in $ac_dummy; do | |
6602 | test -z "$ac_dir" && ac_dir=. | |
6603 | if test -f $ac_dir/$ac_word; then | |
6604 | ac_cv_prog_LEX="flex" | |
6605 | break | |
6606 | fi | |
6607 | done | |
6608 | IFS="$ac_save_ifs" | |
6609 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
6610 | fi | |
6611 | fi | |
6612 | LEX="$ac_cv_prog_LEX" | |
6613 | if test -n "$LEX"; then | |
6614 | echo "$ac_t""$LEX" 1>&6 | |
6615 | else | |
6616 | echo "$ac_t""no" 1>&6 | |
6617 | fi | |
6618 | ||
6619 | if test -z "$LEXLIB" | |
6620 | then | |
6621 | case "$LEX" in | |
6622 | flex*) ac_lib=fl ;; | |
6623 | *) ac_lib=l ;; | |
6624 | esac | |
6625 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
b12915c1 | 6626 | echo "configure:6627: checking for yywrap in -l$ac_lib" >&5 |
10f2d63a VZ |
6627 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
6628 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
6629 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6630 | else | |
6631 | ac_save_LIBS="$LIBS" | |
6632 | LIBS="-l$ac_lib $LIBS" | |
6633 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 6634 | #line 6635 "configure" |
10f2d63a VZ |
6635 | #include "confdefs.h" |
6636 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6637 | /* We use char because int might match the return type of a gcc2 | |
6638 | builtin and then its argument prototype would still apply. */ | |
6639 | char yywrap(); | |
6640 | ||
6641 | int main() { | |
6642 | yywrap() | |
6643 | ; return 0; } | |
6644 | EOF | |
b12915c1 | 6645 | if { (eval echo configure:6646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
6646 | rm -rf conftest* |
6647 | eval "ac_cv_lib_$ac_lib_var=yes" | |
6648 | else | |
6649 | echo "configure: failed program was:" >&5 | |
6650 | cat conftest.$ac_ext >&5 | |
6651 | rm -rf conftest* | |
6652 | eval "ac_cv_lib_$ac_lib_var=no" | |
6653 | fi | |
6654 | rm -f conftest* | |
6655 | LIBS="$ac_save_LIBS" | |
6656 | ||
6657 | fi | |
6658 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
6659 | echo "$ac_t""yes" 1>&6 | |
6660 | LEXLIB="-l$ac_lib" | |
6661 | else | |
6662 | echo "$ac_t""no" 1>&6 | |
6663 | fi | |
6664 | ||
6665 | fi | |
6666 | ||
6667 | ||
6668 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
b12915c1 | 6669 | echo "configure:6670: checking whether ln -s works" >&5 |
10f2d63a VZ |
6670 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
6671 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6672 | else | |
6673 | rm -f conftestdata | |
6674 | if ln -s X conftestdata 2>/dev/null | |
6675 | then | |
6676 | rm -f conftestdata | |
6677 | ac_cv_prog_LN_S="ln -s" | |
6678 | else | |
6679 | ac_cv_prog_LN_S=ln | |
6680 | fi | |
6681 | fi | |
6682 | LN_S="$ac_cv_prog_LN_S" | |
6683 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
6684 | echo "$ac_t""yes" 1>&6 | |
6685 | else | |
6686 | echo "$ac_t""no" 1>&6 | |
6687 | fi | |
6688 | ||
6689 | ||
6690 | ||
6691 | SEARCH_INCLUDE="\ | |
6692 | /usr/local/include \ | |
6693 | \ | |
6694 | /usr/Motif-1.2/include \ | |
6695 | /usr/Motif-2.1/include \ | |
6696 | \ | |
6697 | /usr/include/Motif1.2 \ | |
6698 | /opt/xpm/include/X11 \ | |
6699 | /opt/GBxpm/include/ \ | |
6700 | /opt/GBxpm/X11/include/ \ | |
6701 | \ | |
6702 | /usr/Motif1.2/include \ | |
6703 | /usr/dt/include \ | |
afc31813 VZ |
6704 | /usr/openwin/include \ |
6705 | \ | |
10f2d63a VZ |
6706 | /usr/include/Xm \ |
6707 | \ | |
6708 | /usr/X11R6/include \ | |
afc31813 | 6709 | /usr/X11R6.4/include \ |
10f2d63a VZ |
6710 | /usr/X11R5/include \ |
6711 | /usr/X11R4/include \ | |
6712 | \ | |
10f2d63a VZ |
6713 | /usr/include/X11R6 \ |
6714 | /usr/include/X11R5 \ | |
6715 | /usr/include/X11R4 \ | |
6716 | \ | |
6717 | /usr/local/X11R6/include \ | |
6718 | /usr/local/X11R5/include \ | |
6719 | /usr/local/X11R4/include \ | |
6720 | \ | |
6721 | /usr/local/include/X11R6 \ | |
6722 | /usr/local/include/X11R5 \ | |
6723 | /usr/local/include/X11R4 \ | |
6724 | \ | |
6725 | /usr/X11/include \ | |
6726 | /usr/include/X11 \ | |
6727 | /usr/local/X11/include \ | |
6728 | /usr/local/include/X11 \ | |
6729 | \ | |
6730 | /usr/X386/include \ | |
6731 | /usr/x386/include \ | |
6732 | /usr/XFree86/include/X11 \ | |
6733 | \ | |
6734 | /usr/include/gtk \ | |
6735 | /usr/local/include/gtk \ | |
6736 | /usr/include/glib \ | |
6737 | /usr/local/include/glib \ | |
6738 | \ | |
6739 | /usr/include/qt \ | |
6740 | /usr/local/include/qt \ | |
6741 | \ | |
6742 | /usr/include/windows \ | |
6743 | /usr/include/wine \ | |
6744 | /usr/local/include/wine \ | |
6745 | \ | |
6746 | /usr/unsupported/include \ | |
6747 | /usr/athena/include \ | |
6748 | /usr/local/x11r5/include \ | |
6749 | /usr/lpp/Xamples/include \ | |
6750 | \ | |
10f2d63a | 6751 | /usr/openwin/share/include \ |
928b5c08 VZ |
6752 | \ |
6753 | /usr/include" | |
10f2d63a VZ |
6754 | |
6755 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
6756 | ||
6757 | ||
6758 | cat > confcache <<\EOF | |
6759 | # This file is a shell script that caches the results of configure | |
6760 | # tests run on this system so they can be shared between configure | |
6761 | # scripts and configure runs. It is not useful on other systems. | |
6762 | # If it contains results you don't want to keep, you may remove or edit it. | |
6763 | # | |
6764 | # By default, configure uses ./config.cache as the cache file, | |
6765 | # creating it if it does not exist already. You can give configure | |
6766 | # the --cache-file=FILE option to use a different cache file; that is | |
6767 | # what configure does when it calls configure scripts in | |
6768 | # subdirectories, so they share the cache. | |
6769 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
6770 | # config.status only pays attention to the cache file if you give it the | |
6771 | # --recheck option to rerun configure. | |
6772 | # | |
6773 | EOF | |
6774 | # The following way of writing the cache mishandles newlines in values, | |
6775 | # but we know of no workaround that is simple, portable, and efficient. | |
6776 | # So, don't put newlines in cache variables' values. | |
6777 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
6778 | # and sets the high bit in the cache file unless we assign to the vars. | |
6779 | (set) 2>&1 | | |
6780 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
6781 | *ac_space=\ *) | |
6782 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
6783 | # turns \\\\ into \\, and sed turns \\ into \). | |
6784 | sed -n \ | |
6785 | -e "s/'/'\\\\''/g" \ | |
6786 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
6787 | ;; | |
6788 | *) | |
6789 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
6790 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
6791 | ;; | |
6792 | esac >> confcache | |
6793 | if cmp -s $cache_file confcache; then | |
6794 | : | |
6795 | else | |
6796 | if test -w $cache_file; then | |
6797 | echo "updating cache $cache_file" | |
6798 | cat confcache > $cache_file | |
6799 | else | |
6800 | echo "not updating unwritable cache $cache_file" | |
6801 | fi | |
6802 | fi | |
6803 | rm -f confcache | |
6804 | ||
6805 | ||
6806 | ||
6807 | if test "$wxUSE_GUI" = "yes"; then | |
6808 | ||
6809 | TOOLKIT= | |
6810 | TOOLKIT_INCLUDE= | |
6811 | ||
6812 | GUIOBJS= | |
6813 | COMMONOBJS= | |
6814 | GENERICOBJS= | |
6815 | ||
6816 | GUI_TK_LIBRARY= | |
6817 | GUI_TK_LINK= | |
6818 | ||
6819 | WXGTK12= | |
6820 | ||
6821 | WXWINE= | |
6822 | ||
6823 | PROGRAM_EXT= | |
6824 | ||
6825 | if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then | |
6826 | if test "$cross_compiling" = "yes" ; then | |
6827 | echo "configure: warning: Cross compiling --- skipping windows.h check" 1>&2 | |
6828 | else | |
6829 | echo $ac_n "checking for Windows headers""... $ac_c" 1>&6 | |
b12915c1 | 6830 | echo "configure:6831: checking for Windows headers" >&5 |
10f2d63a VZ |
6831 | |
6832 | ac_find_includes= | |
6833 | for ac_dir in $SEARCH_INCLUDE; | |
6834 | do | |
6835 | if test -f "$ac_dir/windows.h"; then | |
6836 | ac_find_includes=$ac_dir | |
6837 | break | |
6838 | fi | |
6839 | done | |
6840 | ||
6841 | if test "$ac_find_includes" != "" ; then | |
6842 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
6843 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
6844 | else | |
6845 | echo "$ac_t""no" 1>&6 | |
6846 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
6847 | fi | |
6848 | fi | |
6849 | ||
6850 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw" | |
6851 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32" | |
6852 | ||
6853 | if test "$wxUSE_MINGW" = 1; then | |
6854 | LDFLAGS="$LDFLAGS -mwindows" | |
6855 | fi | |
6856 | ||
6857 | TOOLKIT=MSW | |
6858 | ||
6859 | GUIOBJS="\$(MSW_GUIOBJS)" | |
6860 | GUIHEADERS="\$(MSW_HEADERS)" | |
6861 | COMMONOBJS="\$(MSW_COMMONOBJS)" | |
6862 | GENERICOBJS="\$(MSW_GENERICOBJS)" | |
6863 | UNIXOBJS= | |
6864 | GUIDIST=MSW_DIST | |
6865 | PROGRAM_EXT=.exe | |
6866 | fi | |
6867 | ||
6868 | if test "$wxUSE_GTK" = 1; then | |
6869 | ||
6870 | if test x$gtk_config_exec_prefix != x ; then | |
6871 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
6872 | if test x${GTK_CONFIG+set} != xset ; then | |
6873 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
6874 | fi | |
6875 | fi | |
6876 | if test x$gtk_config_prefix != x ; then | |
6877 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
6878 | if test x${GTK_CONFIG+set} != xset ; then | |
6879 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
6880 | fi | |
6881 | fi | |
6882 | ||
6883 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
6884 | set dummy gtk-config; ac_word=$2 | |
6885 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
b12915c1 | 6886 | echo "configure:6887: checking for $ac_word" >&5 |
10f2d63a VZ |
6887 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
6888 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6889 | else | |
6890 | case "$GTK_CONFIG" in | |
6891 | /*) | |
6892 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
6893 | ;; | |
6894 | ?:/*) | |
6895 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
6896 | ;; | |
6897 | *) | |
6898 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6899 | ac_dummy="$PATH" | |
6900 | for ac_dir in $ac_dummy; do | |
6901 | test -z "$ac_dir" && ac_dir=. | |
6902 | if test -f $ac_dir/$ac_word; then | |
6903 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
6904 | break | |
6905 | fi | |
6906 | done | |
6907 | IFS="$ac_save_ifs" | |
6908 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
6909 | ;; | |
6910 | esac | |
6911 | fi | |
6912 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
6913 | if test -n "$GTK_CONFIG"; then | |
6914 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
6915 | else | |
6916 | echo "$ac_t""no" 1>&6 | |
6917 | fi | |
6918 | ||
6919 | min_gtk_version=1.2.1 | |
6920 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 | |
b12915c1 | 6921 | echo "configure:6922: checking for GTK - version >= $min_gtk_version" >&5 |
10f2d63a VZ |
6922 | no_gtk="" |
6923 | if test "$GTK_CONFIG" != "no" ; then | |
6924 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
6925 | GTK_LIBS=`$GTK_CONFIG --libs` | |
6926 | ac_save_CFLAGS="$CFLAGS" | |
6927 | ac_save_LIBS="$LIBS" | |
6928 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
6929 | LIBS="$LIBS $GTK_LIBS" | |
6930 | if test "$cross_compiling" = yes; then | |
6931 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
6932 | else | |
6933 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 6934 | #line 6935 "configure" |
10f2d63a VZ |
6935 | #include "confdefs.h" |
6936 | ||
6937 | #include <gtk/gtk.h> | |
f49f2b0c | 6938 | #include <gtk/gtkfeatures.h> |
10f2d63a VZ |
6939 | #include <stdio.h> |
6940 | ||
6941 | int | |
6942 | main () | |
6943 | { | |
6944 | int major, minor, micro; | |
6945 | ||
6946 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
6947 | printf("%s, bad version string\n", "$min_gtk_version"); | |
6948 | exit(1); | |
6949 | } | |
6950 | ||
f49f2b0c RR |
6951 | if ((GTK_MAJOR_VERSION != gtk_major_version) || |
6952 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
6953 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
6954 | printf("Headers vs. library version mismatch!\n"); | |
6955 | exit(1); | |
6956 | } | |
6957 | ||
10f2d63a VZ |
6958 | if (gtk_minor_version == 1) return FALSE; |
6959 | ||
6960 | return !((gtk_major_version > major) || | |
6961 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
6962 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
6963 | } | |
6964 | ||
6965 | EOF | |
b12915c1 | 6966 | if { (eval echo configure:6967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
6967 | then |
6968 | : | |
6969 | else | |
6970 | echo "configure: failed program was:" >&5 | |
6971 | cat conftest.$ac_ext >&5 | |
6972 | rm -fr conftest* | |
6973 | no_gtk=yes | |
6974 | fi | |
6975 | rm -fr conftest* | |
6976 | fi | |
6977 | ||
6978 | CFLAGS="$ac_save_CFLAGS" | |
6979 | LIBS="$ac_save_LIBS" | |
6980 | else | |
6981 | no_gtk=yes | |
6982 | fi | |
6983 | if test "x$no_gtk" = x ; then | |
6984 | echo "$ac_t""yes" 1>&6 | |
6985 | WXGTK12=1 | |
6986 | else | |
6987 | echo "$ac_t""no" 1>&6 | |
6988 | GTK_CFLAGS="" | |
6989 | GTK_LIBS="" | |
6990 | { echo "configure: error: Is gtk-config in path and GTK+ is version 1.2.1 or above?" 1>&2; exit 1; } | |
6991 | fi | |
6992 | ||
6993 | ||
6994 | ||
6995 | ||
6996 | TOOLKIT_INCLUDE="$GTK_CFLAGS" | |
6997 | GUI_TK_LIBRARY="$GTK_LIBS" | |
6998 | TOOLKIT=GTK | |
6999 | ||
7000 | GUIOBJS="\$(GTK_GUIOBJS)" | |
7001 | GUIHEADERS="\$(GTK_HEADERS)" | |
7002 | COMMONOBJS="\$(GTK_COMMONOBJS)" | |
7003 | GENERICOBJS="\$(GTK_GENERICOBJS)" | |
7004 | GUIDEPS="\$(GTK_GUIDEPS)" | |
7005 | COMMONDEPS="\$(GTK_COMMONDEPS)" | |
7006 | GENERICDEPS="\$(GTK_GENERICDEPS)" | |
7007 | UNIXOBJS="\$(UNIX_OBJS)" | |
d9d8273d | 7008 | UNIXDEPS="\$(UNIX_DEPS)" |
10f2d63a | 7009 | GUIDIST=GTK_DIST |
7ec2881a RR |
7010 | |
7011 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 | |
b12915c1 | 7012 | echo "configure:7013: checking for gdk_im_open in -lgdk" >&5 |
7ec2881a RR |
7013 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
7014 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7015 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7016 | else | |
7017 | ac_save_LIBS="$LIBS" | |
7018 | LIBS="-lgdk $LIBS" | |
7019 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 7020 | #line 7021 "configure" |
7ec2881a RR |
7021 | #include "confdefs.h" |
7022 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7023 | /* We use char because int might match the return type of a gcc2 | |
7024 | builtin and then its argument prototype would still apply. */ | |
7025 | char gdk_im_open(); | |
7026 | ||
7027 | int main() { | |
7028 | gdk_im_open() | |
7029 | ; return 0; } | |
7030 | EOF | |
b12915c1 | 7031 | if { (eval echo configure:7032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7ec2881a RR |
7032 | rm -rf conftest* |
7033 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7034 | else | |
7035 | echo "configure: failed program was:" >&5 | |
7036 | cat conftest.$ac_ext >&5 | |
7037 | rm -rf conftest* | |
7038 | eval "ac_cv_lib_$ac_lib_var=no" | |
7039 | fi | |
7040 | rm -f conftest* | |
7041 | LIBS="$ac_save_LIBS" | |
7042 | ||
7043 | fi | |
7044 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7045 | echo "$ac_t""yes" 1>&6 | |
7046 | cat >> confdefs.h <<\EOF | |
7047 | #define HAVE_XIM 1 | |
7048 | EOF | |
7049 | ||
7050 | else | |
7051 | echo "$ac_t""no" 1>&6 | |
7052 | fi | |
7053 | ||
7054 | ||
10f2d63a VZ |
7055 | fi |
7056 | ||
7057 | if test "$wxUSE_WINE" = 1; then | |
7058 | echo $ac_n "checking for WINE includes""... $ac_c" 1>&6 | |
b12915c1 | 7059 | echo "configure:7060: checking for WINE includes" >&5 |
10f2d63a VZ |
7060 | |
7061 | ac_find_includes= | |
7062 | for ac_dir in $SEARCH_INCLUDE; | |
7063 | do | |
7064 | if test -f "$ac_dir/windows.h"; then | |
7065 | ac_find_includes=$ac_dir | |
7066 | break | |
7067 | fi | |
7068 | done | |
7069 | ||
7070 | if test "$ac_find_includes" != "" ; then | |
7071 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
7072 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
7073 | else | |
7074 | echo "$ac_t""no" 1>&6 | |
7075 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
7076 | fi | |
7077 | ||
7078 | XPM_LINK="" | |
7079 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
b12915c1 | 7080 | echo "configure:7081: checking for Xpm library" >&5 |
10f2d63a VZ |
7081 | |
7082 | ac_find_libraries= | |
7083 | for ac_dir in $SEARCH_LIB; | |
7084 | do | |
7085 | for ac_extension in a so sl; do | |
7086 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
7087 | ac_find_libraries=$ac_dir | |
7088 | break 2 | |
7089 | fi | |
7090 | done | |
7091 | done | |
7092 | ||
7093 | if test "$ac_find_libraries" != "" ; then | |
7094 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
7095 | XPM_LINK="-lXpm" | |
7096 | cat >> confdefs.h <<\EOF | |
7097 | #define wxHAVE_LIB_XPM 1 | |
7098 | EOF | |
7099 | ||
7100 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
7101 | else | |
7102 | echo "$ac_t""no" 1>&6 | |
7103 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
7104 | fi | |
7105 | ||
7106 | MESA_LINK="" | |
7107 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 | |
b12915c1 | 7108 | echo "configure:7109: checking for Mesa library" >&5 |
10f2d63a VZ |
7109 | |
7110 | ac_find_libraries= | |
7111 | for ac_dir in $SEARCH_LIB; | |
7112 | do | |
7113 | for ac_extension in a so sl; do | |
7114 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
7115 | ac_find_libraries=$ac_dir | |
7116 | break 2 | |
7117 | fi | |
7118 | done | |
7119 | done | |
7120 | ||
7121 | if test "$ac_find_libraries" != "" ; then | |
7122 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
7123 | MESA_LINK="-lMesaGL" | |
7124 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
7125 | else | |
7126 | { echo "configure: error: no" 1>&2; exit 1; } | |
7127 | fi | |
7128 | ||
7129 | GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses -lm" | |
7130 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" | |
7131 | WXWINE=1 | |
7132 | TOOLKIT=MSW | |
7133 | ||
7134 | GUIHEADERS="\$(MSW_HEADERS)" | |
7135 | GUIOBJS="\$(MSW_GUIOBJS)" | |
7136 | COMMONOBJS="\$(MSW_COMMONOBJS)" | |
7137 | GENERICOBJS="\$(MSW_GENERICOBJS)" | |
7138 | GUIDEPS="\$(MSW_GUIDEPS)" | |
7139 | COMMONDEPS="\$(MSW_COMMONDEPS)" | |
7140 | GENERICDEPS="\$(MSW_GENERICDEPS)" | |
7141 | UNIXOBJS="\$(UNIX_OBJS)" | |
d9d8273d | 7142 | UNIXDEPS="\$(UNIX_DEPS)" |
10f2d63a VZ |
7143 | GUIDIST=MSW_DIST |
7144 | fi | |
7145 | ||
7146 | if test "$wxUSE_MOTIF" = 1; then | |
ab9b9eab VZ |
7147 | # If we find X, set shell vars x_includes and x_libraries to the |
7148 | # paths, otherwise set no_x=yes. | |
7149 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
7150 | # --without-x overrides everything else, but does not touch the cache. | |
7151 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
b12915c1 | 7152 | echo "configure:7153: checking for X" >&5 |
ab9b9eab VZ |
7153 | |
7154 | # Check whether --with-x or --without-x was given. | |
7155 | if test "${with_x+set}" = set; then | |
7156 | withval="$with_x" | |
7157 | : | |
7158 | fi | |
ba337fe7 | 7159 | |
ab9b9eab VZ |
7160 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
7161 | if test "x$with_x" = xno; then | |
7162 | # The user explicitly disabled X. | |
7163 | have_x=disabled | |
7164 | else | |
7165 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
7166 | # Both variables are already set. | |
7167 | have_x=yes | |
7168 | else | |
7169 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then | |
7170 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7171 | else | |
7172 | # One or both of the vars are not set, and there is no cached value. | |
7173 | ac_x_includes=NO ac_x_libraries=NO | |
7174 | rm -fr conftestdir | |
7175 | if mkdir conftestdir; then | |
7176 | cd conftestdir | |
7177 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
7178 | cat > Imakefile <<'EOF' | |
7179 | acfindx: | |
7180 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
7181 | EOF | |
7182 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
7183 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
7184 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
7185 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
10f2d63a | 7186 | for ac_extension in a so sl; do |
ab9b9eab VZ |
7187 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
7188 | test -f $ac_im_libdir/libX11.$ac_extension; then | |
7189 | ac_im_usrlibdir=$ac_im_libdir; break | |
10f2d63a VZ |
7190 | fi |
7191 | done | |
ab9b9eab VZ |
7192 | # Screen out bogus values from the imake configuration. They are |
7193 | # bogus both because they are the default anyway, and because | |
7194 | # using them would break gcc on systems where it needs fixed includes. | |
7195 | case "$ac_im_incroot" in | |
7196 | /usr/include) ;; | |
7197 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; | |
7198 | esac | |
7199 | case "$ac_im_usrlibdir" in | |
7200 | /usr/lib | /lib) ;; | |
7201 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; | |
7202 | esac | |
ba337fe7 | 7203 | fi |
ab9b9eab VZ |
7204 | cd .. |
7205 | rm -fr conftestdir | |
7206 | fi | |
10f2d63a | 7207 | |
ab9b9eab VZ |
7208 | if test "$ac_x_includes" = NO; then |
7209 | # Guess where to find include files, by looking for this one X11 .h file. | |
7210 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
ba337fe7 | 7211 | |
ab9b9eab VZ |
7212 | # First, try using that file with no special directory specified. |
7213 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 7214 | #line 7215 "configure" |
ab9b9eab VZ |
7215 | #include "confdefs.h" |
7216 | #include <$x_direct_test_include> | |
7217 | EOF | |
7218 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b12915c1 | 7219 | { (eval echo configure:7220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
ab9b9eab VZ |
7220 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7221 | if test -z "$ac_err"; then | |
7222 | rm -rf conftest* | |
7223 | # We can compile using X headers with no special include directory. | |
7224 | ac_x_includes= | |
7225 | else | |
7226 | echo "$ac_err" >&5 | |
7227 | echo "configure: failed program was:" >&5 | |
7228 | cat conftest.$ac_ext >&5 | |
7229 | rm -rf conftest* | |
7230 | # Look for the header file in a standard set of common directories. | |
7231 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
7232 | for ac_dir in \ | |
7233 | /usr/X11/include \ | |
7234 | /usr/X11R6/include \ | |
7235 | /usr/X11R5/include \ | |
7236 | /usr/X11R4/include \ | |
7237 | \ | |
7238 | /usr/include/X11 \ | |
7239 | /usr/include/X11R6 \ | |
7240 | /usr/include/X11R5 \ | |
7241 | /usr/include/X11R4 \ | |
7242 | \ | |
7243 | /usr/local/X11/include \ | |
7244 | /usr/local/X11R6/include \ | |
7245 | /usr/local/X11R5/include \ | |
7246 | /usr/local/X11R4/include \ | |
7247 | \ | |
7248 | /usr/local/include/X11 \ | |
7249 | /usr/local/include/X11R6 \ | |
7250 | /usr/local/include/X11R5 \ | |
7251 | /usr/local/include/X11R4 \ | |
7252 | \ | |
7253 | /usr/X386/include \ | |
7254 | /usr/x386/include \ | |
7255 | /usr/XFree86/include/X11 \ | |
7256 | \ | |
7257 | /usr/include \ | |
7258 | /usr/local/include \ | |
7259 | /usr/unsupported/include \ | |
7260 | /usr/athena/include \ | |
7261 | /usr/local/x11r5/include \ | |
7262 | /usr/lpp/Xamples/include \ | |
7263 | \ | |
7264 | /usr/openwin/include \ | |
7265 | /usr/openwin/share/include \ | |
7266 | ; \ | |
10f2d63a | 7267 | do |
ab9b9eab VZ |
7268 | if test -r "$ac_dir/$x_direct_test_include"; then |
7269 | ac_x_includes=$ac_dir | |
10f2d63a VZ |
7270 | break |
7271 | fi | |
7272 | done | |
ab9b9eab VZ |
7273 | fi |
7274 | rm -f conftest* | |
7275 | fi # $ac_x_includes = NO | |
10f2d63a | 7276 | |
ab9b9eab VZ |
7277 | if test "$ac_x_libraries" = NO; then |
7278 | # Check for the libraries. | |
10f2d63a | 7279 | |
ab9b9eab VZ |
7280 | test -z "$x_direct_test_library" && x_direct_test_library=Xt |
7281 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
10f2d63a | 7282 | |
ab9b9eab VZ |
7283 | # See if we find them without any special options. |
7284 | # Don't add to $LIBS permanently. | |
7285 | ac_save_LIBS="$LIBS" | |
7286 | LIBS="-l$x_direct_test_library $LIBS" | |
7287 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 7288 | #line 7289 "configure" |
ab9b9eab | 7289 | #include "confdefs.h" |
10f2d63a | 7290 | |
ab9b9eab VZ |
7291 | int main() { |
7292 | ${x_direct_test_function}() | |
7293 | ; return 0; } | |
7294 | EOF | |
b12915c1 | 7295 | if { (eval echo configure:7296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7296 | rm -rf conftest* |
7297 | LIBS="$ac_save_LIBS" | |
7298 | # We can link X programs with no special library path. | |
7299 | ac_x_libraries= | |
7300 | else | |
7301 | echo "configure: failed program was:" >&5 | |
7302 | cat conftest.$ac_ext >&5 | |
7303 | rm -rf conftest* | |
7304 | LIBS="$ac_save_LIBS" | |
7305 | # First see if replacing the include by lib works. | |
7306 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
7307 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
7308 | /usr/X11/lib \ | |
7309 | /usr/X11R6/lib \ | |
7310 | /usr/X11R5/lib \ | |
7311 | /usr/X11R4/lib \ | |
7312 | \ | |
7313 | /usr/lib/X11 \ | |
7314 | /usr/lib/X11R6 \ | |
7315 | /usr/lib/X11R5 \ | |
7316 | /usr/lib/X11R4 \ | |
7317 | \ | |
7318 | /usr/local/X11/lib \ | |
7319 | /usr/local/X11R6/lib \ | |
7320 | /usr/local/X11R5/lib \ | |
7321 | /usr/local/X11R4/lib \ | |
7322 | \ | |
7323 | /usr/local/lib/X11 \ | |
7324 | /usr/local/lib/X11R6 \ | |
7325 | /usr/local/lib/X11R5 \ | |
7326 | /usr/local/lib/X11R4 \ | |
7327 | \ | |
7328 | /usr/X386/lib \ | |
7329 | /usr/x386/lib \ | |
7330 | /usr/XFree86/lib/X11 \ | |
7331 | \ | |
7332 | /usr/lib \ | |
7333 | /usr/local/lib \ | |
7334 | /usr/unsupported/lib \ | |
7335 | /usr/athena/lib \ | |
7336 | /usr/local/x11r5/lib \ | |
7337 | /usr/lpp/Xamples/lib \ | |
7338 | /lib/usr/lib/X11 \ | |
7339 | \ | |
7340 | /usr/openwin/lib \ | |
7341 | /usr/openwin/share/lib \ | |
7342 | ; \ | |
7343 | do | |
7344 | for ac_extension in a so sl; do | |
7345 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then | |
7346 | ac_x_libraries=$ac_dir | |
7347 | break 2 | |
10f2d63a | 7348 | fi |
10f2d63a | 7349 | done |
ab9b9eab VZ |
7350 | done |
7351 | fi | |
7352 | rm -f conftest* | |
7353 | fi # $ac_x_libraries = NO | |
10f2d63a | 7354 | |
ab9b9eab VZ |
7355 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
7356 | # Didn't find X anywhere. Cache the known absence of X. | |
7357 | ac_cv_have_x="have_x=no" | |
7358 | else | |
7359 | # Record where we found X for the cache. | |
7360 | ac_cv_have_x="have_x=yes \ | |
7361 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
7362 | fi | |
7363 | fi | |
10f2d63a | 7364 | fi |
ab9b9eab VZ |
7365 | eval "$ac_cv_have_x" |
7366 | fi # $with_x != no | |
10f2d63a | 7367 | |
ab9b9eab VZ |
7368 | if test "$have_x" != yes; then |
7369 | echo "$ac_t""$have_x" 1>&6 | |
7370 | no_x=yes | |
7371 | else | |
7372 | # If each of the values was on the command line, it overrides each guess. | |
7373 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
7374 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
7375 | # Update the cache value to reflect the command line values. | |
7376 | ac_cv_have_x="have_x=yes \ | |
7377 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
7378 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 | |
7379 | fi | |
10f2d63a | 7380 | |
ab9b9eab VZ |
7381 | if test "$no_x" = yes; then |
7382 | # Not all programs may use this symbol, but it does not hurt to define it. | |
7383 | cat >> confdefs.h <<\EOF | |
7384 | #define X_DISPLAY_MISSING 1 | |
7385 | EOF | |
10f2d63a | 7386 | |
ab9b9eab VZ |
7387 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
7388 | else | |
7389 | if test -n "$x_includes"; then | |
7390 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
10f2d63a VZ |
7391 | fi |
7392 | ||
ab9b9eab VZ |
7393 | # It would also be nice to do this for all -L options, not just this one. |
7394 | if test -n "$x_libraries"; then | |
7395 | X_LIBS="$X_LIBS -L$x_libraries" | |
7396 | # For Solaris; some versions of Sun CC require a space after -R and | |
7397 | # others require no space. Words are not sufficient . . . . | |
7398 | case "`(uname -sr) 2>/dev/null`" in | |
7399 | "SunOS 5"*) | |
7400 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | |
b12915c1 | 7401 | echo "configure:7402: checking whether -R must be followed by a space" >&5 |
ab9b9eab VZ |
7402 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
7403 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 7404 | #line 7405 "configure" |
ab9b9eab | 7405 | #include "confdefs.h" |
10f2d63a | 7406 | |
ab9b9eab | 7407 | int main() { |
788deba1 | 7408 | |
ab9b9eab VZ |
7409 | ; return 0; } |
7410 | EOF | |
b12915c1 | 7411 | if { (eval echo configure:7412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7412 | rm -rf conftest* |
7413 | ac_R_nospace=yes | |
7414 | else | |
7415 | echo "configure: failed program was:" >&5 | |
7416 | cat conftest.$ac_ext >&5 | |
7417 | rm -rf conftest* | |
7418 | ac_R_nospace=no | |
7419 | fi | |
7420 | rm -f conftest* | |
7421 | if test $ac_R_nospace = yes; then | |
7422 | echo "$ac_t""no" 1>&6 | |
7423 | X_LIBS="$X_LIBS -R$x_libraries" | |
7424 | else | |
7425 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
7426 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 7427 | #line 7428 "configure" |
ab9b9eab | 7428 | #include "confdefs.h" |
788deba1 | 7429 | |
ab9b9eab VZ |
7430 | int main() { |
7431 | ||
7432 | ; return 0; } | |
7433 | EOF | |
b12915c1 | 7434 | if { (eval echo configure:7435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7435 | rm -rf conftest* |
7436 | ac_R_space=yes | |
7437 | else | |
7438 | echo "configure: failed program was:" >&5 | |
7439 | cat conftest.$ac_ext >&5 | |
7440 | rm -rf conftest* | |
7441 | ac_R_space=no | |
7442 | fi | |
7443 | rm -f conftest* | |
7444 | if test $ac_R_space = yes; then | |
7445 | echo "$ac_t""yes" 1>&6 | |
7446 | X_LIBS="$X_LIBS -R $x_libraries" | |
7447 | else | |
7448 | echo "$ac_t""neither works" 1>&6 | |
7449 | fi | |
7450 | fi | |
7451 | LIBS="$ac_xsave_LIBS" | |
7452 | esac | |
7453 | fi | |
7454 | ||
7455 | # Check for system-dependent libraries X programs must link with. | |
7456 | # Do this before checking for the system-independent R6 libraries | |
7457 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
7458 | ||
7459 | if test "$ISC" = yes; then | |
7460 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
7461 | else | |
7462 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | |
7463 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
7464 | # the Alpha needs dnet_stub (dnet does not exist). | |
7465 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
b12915c1 | 7466 | echo "configure:7467: checking for dnet_ntoa in -ldnet" >&5 |
ab9b9eab VZ |
7467 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
7468 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7469 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7470 | else | |
7471 | ac_save_LIBS="$LIBS" | |
7472 | LIBS="-ldnet $LIBS" | |
7473 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 7474 | #line 7475 "configure" |
ab9b9eab VZ |
7475 | #include "confdefs.h" |
7476 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7477 | /* We use char because int might match the return type of a gcc2 | |
7478 | builtin and then its argument prototype would still apply. */ | |
7479 | char dnet_ntoa(); | |
7480 | ||
7481 | int main() { | |
7482 | dnet_ntoa() | |
7483 | ; return 0; } | |
7484 | EOF | |
b12915c1 | 7485 | if { (eval echo configure:7486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7486 | rm -rf conftest* |
7487 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7488 | else | |
7489 | echo "configure: failed program was:" >&5 | |
7490 | cat conftest.$ac_ext >&5 | |
7491 | rm -rf conftest* | |
7492 | eval "ac_cv_lib_$ac_lib_var=no" | |
7493 | fi | |
7494 | rm -f conftest* | |
7495 | LIBS="$ac_save_LIBS" | |
7496 | ||
7497 | fi | |
7498 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7499 | echo "$ac_t""yes" 1>&6 | |
7500 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
7501 | else | |
7502 | echo "$ac_t""no" 1>&6 | |
7503 | fi | |
7504 | ||
7505 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
7506 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | |
b12915c1 | 7507 | echo "configure:7508: checking for dnet_ntoa in -ldnet_stub" >&5 |
ab9b9eab VZ |
7508 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
7509 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7510 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7511 | else | |
7512 | ac_save_LIBS="$LIBS" | |
7513 | LIBS="-ldnet_stub $LIBS" | |
7514 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 7515 | #line 7516 "configure" |
ab9b9eab VZ |
7516 | #include "confdefs.h" |
7517 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7518 | /* We use char because int might match the return type of a gcc2 | |
7519 | builtin and then its argument prototype would still apply. */ | |
7520 | char dnet_ntoa(); | |
7521 | ||
7522 | int main() { | |
7523 | dnet_ntoa() | |
7524 | ; return 0; } | |
7525 | EOF | |
b12915c1 | 7526 | if { (eval echo configure:7527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7527 | rm -rf conftest* |
7528 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7529 | else | |
7530 | echo "configure: failed program was:" >&5 | |
7531 | cat conftest.$ac_ext >&5 | |
7532 | rm -rf conftest* | |
7533 | eval "ac_cv_lib_$ac_lib_var=no" | |
7534 | fi | |
7535 | rm -f conftest* | |
7536 | LIBS="$ac_save_LIBS" | |
7537 | ||
7538 | fi | |
7539 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7540 | echo "$ac_t""yes" 1>&6 | |
7541 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
7542 | else | |
7543 | echo "$ac_t""no" 1>&6 | |
7544 | fi | |
7545 | ||
7546 | fi | |
7547 | ||
7548 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
7549 | # to get the SysV transport functions. | |
7550 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | |
7551 | # needs -lnsl. | |
7552 | # The nsl library prevents programs from opening the X display | |
7553 | # on Irix 5.2, according to dickey@clark.net. | |
7554 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
b12915c1 | 7555 | echo "configure:7556: checking for gethostbyname" >&5 |
ab9b9eab VZ |
7556 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
7557 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7558 | else | |
7559 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 7560 | #line 7561 "configure" |
ab9b9eab VZ |
7561 | #include "confdefs.h" |
7562 | /* System header to define __stub macros and hopefully few prototypes, | |
7563 | which can conflict with char gethostbyname(); below. */ | |
7564 | #include <assert.h> | |
7565 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7566 | /* We use char because int might match the return type of a gcc2 | |
7567 | builtin and then its argument prototype would still apply. */ | |
7568 | char gethostbyname(); | |
7569 | ||
7570 | int main() { | |
7571 | ||
7572 | /* The GNU C library defines this for functions which it implements | |
7573 | to always fail with ENOSYS. Some functions are actually named | |
7574 | something starting with __ and the normal name is an alias. */ | |
7575 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
7576 | choke me | |
7577 | #else | |
e694c22c | 7578 | gethostbyname(); |
ab9b9eab VZ |
7579 | #endif |
7580 | ||
7581 | ; return 0; } | |
7582 | EOF | |
b12915c1 | 7583 | if { (eval echo configure:7584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7584 | rm -rf conftest* |
7585 | eval "ac_cv_func_gethostbyname=yes" | |
7586 | else | |
7587 | echo "configure: failed program was:" >&5 | |
7588 | cat conftest.$ac_ext >&5 | |
7589 | rm -rf conftest* | |
7590 | eval "ac_cv_func_gethostbyname=no" | |
7591 | fi | |
7592 | rm -f conftest* | |
7593 | fi | |
7594 | ||
7595 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
7596 | echo "$ac_t""yes" 1>&6 | |
7597 | : | |
7598 | else | |
7599 | echo "$ac_t""no" 1>&6 | |
7600 | fi | |
7601 | ||
7602 | if test $ac_cv_func_gethostbyname = no; then | |
7603 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
b12915c1 | 7604 | echo "configure:7605: checking for gethostbyname in -lnsl" >&5 |
ab9b9eab VZ |
7605 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
7606 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7607 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7608 | else | |
7609 | ac_save_LIBS="$LIBS" | |
7610 | LIBS="-lnsl $LIBS" | |
7611 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 7612 | #line 7613 "configure" |
ab9b9eab VZ |
7613 | #include "confdefs.h" |
7614 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7615 | /* We use char because int might match the return type of a gcc2 | |
7616 | builtin and then its argument prototype would still apply. */ | |
7617 | char gethostbyname(); | |
7618 | ||
7619 | int main() { | |
7620 | gethostbyname() | |
7621 | ; return 0; } | |
7622 | EOF | |
b12915c1 | 7623 | if { (eval echo configure:7624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7624 | rm -rf conftest* |
7625 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7626 | else | |
7627 | echo "configure: failed program was:" >&5 | |
7628 | cat conftest.$ac_ext >&5 | |
7629 | rm -rf conftest* | |
7630 | eval "ac_cv_lib_$ac_lib_var=no" | |
7631 | fi | |
7632 | rm -f conftest* | |
7633 | LIBS="$ac_save_LIBS" | |
7634 | ||
7635 | fi | |
7636 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7637 | echo "$ac_t""yes" 1>&6 | |
7638 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
7639 | else | |
7640 | echo "$ac_t""no" 1>&6 | |
7641 | fi | |
7642 | ||
7643 | fi | |
7644 | ||
7645 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
7646 | # socket/setsockopt and other routines are undefined under SCO ODT | |
7647 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
7648 | # on later versions), says simon@lia.di.epfl.ch: it contains | |
7649 | # gethostby* variants that don't use the nameserver (or something). | |
7650 | # -lsocket must be given before -lnsl if both are needed. | |
7651 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
7652 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
b12915c1 | 7653 | echo "configure:7654: checking for connect" >&5 |
ab9b9eab VZ |
7654 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
7655 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7656 | else | |
7657 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 7658 | #line 7659 "configure" |
ab9b9eab VZ |
7659 | #include "confdefs.h" |
7660 | /* System header to define __stub macros and hopefully few prototypes, | |
7661 | which can conflict with char connect(); below. */ | |
7662 | #include <assert.h> | |
7663 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7664 | /* We use char because int might match the return type of a gcc2 | |
7665 | builtin and then its argument prototype would still apply. */ | |
7666 | char connect(); | |
7667 | ||
7668 | int main() { | |
7669 | ||
7670 | /* The GNU C library defines this for functions which it implements | |
7671 | to always fail with ENOSYS. Some functions are actually named | |
7672 | something starting with __ and the normal name is an alias. */ | |
7673 | #if defined (__stub_connect) || defined (__stub___connect) | |
7674 | choke me | |
7675 | #else | |
e694c22c | 7676 | connect(); |
ab9b9eab VZ |
7677 | #endif |
7678 | ||
7679 | ; return 0; } | |
7680 | EOF | |
b12915c1 | 7681 | if { (eval echo configure:7682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7682 | rm -rf conftest* |
7683 | eval "ac_cv_func_connect=yes" | |
7684 | else | |
7685 | echo "configure: failed program was:" >&5 | |
7686 | cat conftest.$ac_ext >&5 | |
7687 | rm -rf conftest* | |
7688 | eval "ac_cv_func_connect=no" | |
7689 | fi | |
7690 | rm -f conftest* | |
7691 | fi | |
7692 | ||
7693 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
7694 | echo "$ac_t""yes" 1>&6 | |
7695 | : | |
7696 | else | |
7697 | echo "$ac_t""no" 1>&6 | |
7698 | fi | |
7699 | ||
7700 | if test $ac_cv_func_connect = no; then | |
7701 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 | |
b12915c1 | 7702 | echo "configure:7703: checking for connect in -lsocket" >&5 |
ab9b9eab VZ |
7703 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
7704 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7705 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7706 | else | |
7707 | ac_save_LIBS="$LIBS" | |
7708 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
7709 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 7710 | #line 7711 "configure" |
ab9b9eab VZ |
7711 | #include "confdefs.h" |
7712 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7713 | /* We use char because int might match the return type of a gcc2 | |
7714 | builtin and then its argument prototype would still apply. */ | |
7715 | char connect(); | |
7716 | ||
7717 | int main() { | |
7718 | connect() | |
7719 | ; return 0; } | |
7720 | EOF | |
b12915c1 | 7721 | if { (eval echo configure:7722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7722 | rm -rf conftest* |
7723 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7724 | else | |
7725 | echo "configure: failed program was:" >&5 | |
7726 | cat conftest.$ac_ext >&5 | |
7727 | rm -rf conftest* | |
7728 | eval "ac_cv_lib_$ac_lib_var=no" | |
7729 | fi | |
7730 | rm -f conftest* | |
7731 | LIBS="$ac_save_LIBS" | |
7732 | ||
7733 | fi | |
7734 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7735 | echo "$ac_t""yes" 1>&6 | |
7736 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
7737 | else | |
7738 | echo "$ac_t""no" 1>&6 | |
7739 | fi | |
7740 | ||
7741 | fi | |
7742 | ||
7743 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. | |
7744 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
b12915c1 | 7745 | echo "configure:7746: checking for remove" >&5 |
ab9b9eab VZ |
7746 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
7747 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7748 | else | |
7749 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 7750 | #line 7751 "configure" |
ab9b9eab VZ |
7751 | #include "confdefs.h" |
7752 | /* System header to define __stub macros and hopefully few prototypes, | |
7753 | which can conflict with char remove(); below. */ | |
7754 | #include <assert.h> | |
7755 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7756 | /* We use char because int might match the return type of a gcc2 | |
7757 | builtin and then its argument prototype would still apply. */ | |
7758 | char remove(); | |
7759 | ||
7760 | int main() { | |
7761 | ||
7762 | /* The GNU C library defines this for functions which it implements | |
7763 | to always fail with ENOSYS. Some functions are actually named | |
7764 | something starting with __ and the normal name is an alias. */ | |
7765 | #if defined (__stub_remove) || defined (__stub___remove) | |
7766 | choke me | |
7767 | #else | |
e694c22c | 7768 | remove(); |
ab9b9eab VZ |
7769 | #endif |
7770 | ||
7771 | ; return 0; } | |
7772 | EOF | |
b12915c1 | 7773 | if { (eval echo configure:7774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7774 | rm -rf conftest* |
7775 | eval "ac_cv_func_remove=yes" | |
7776 | else | |
7777 | echo "configure: failed program was:" >&5 | |
7778 | cat conftest.$ac_ext >&5 | |
7779 | rm -rf conftest* | |
7780 | eval "ac_cv_func_remove=no" | |
7781 | fi | |
7782 | rm -f conftest* | |
7783 | fi | |
7784 | ||
7785 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
7786 | echo "$ac_t""yes" 1>&6 | |
7787 | : | |
7788 | else | |
7789 | echo "$ac_t""no" 1>&6 | |
7790 | fi | |
7791 | ||
7792 | if test $ac_cv_func_remove = no; then | |
7793 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | |
b12915c1 | 7794 | echo "configure:7795: checking for remove in -lposix" >&5 |
ab9b9eab VZ |
7795 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
7796 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7797 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7798 | else | |
7799 | ac_save_LIBS="$LIBS" | |
7800 | LIBS="-lposix $LIBS" | |
7801 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 7802 | #line 7803 "configure" |
ab9b9eab VZ |
7803 | #include "confdefs.h" |
7804 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7805 | /* We use char because int might match the return type of a gcc2 | |
7806 | builtin and then its argument prototype would still apply. */ | |
7807 | char remove(); | |
7808 | ||
7809 | int main() { | |
7810 | remove() | |
7811 | ; return 0; } | |
7812 | EOF | |
b12915c1 | 7813 | if { (eval echo configure:7814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7814 | rm -rf conftest* |
7815 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7816 | else | |
7817 | echo "configure: failed program was:" >&5 | |
7818 | cat conftest.$ac_ext >&5 | |
7819 | rm -rf conftest* | |
7820 | eval "ac_cv_lib_$ac_lib_var=no" | |
7821 | fi | |
7822 | rm -f conftest* | |
7823 | LIBS="$ac_save_LIBS" | |
7824 | ||
7825 | fi | |
7826 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7827 | echo "$ac_t""yes" 1>&6 | |
7828 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
7829 | else | |
7830 | echo "$ac_t""no" 1>&6 | |
7831 | fi | |
7832 | ||
7833 | fi | |
7834 | ||
7835 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
7836 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 | |
b12915c1 | 7837 | echo "configure:7838: checking for shmat" >&5 |
ab9b9eab VZ |
7838 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
7839 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7840 | else | |
7841 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 7842 | #line 7843 "configure" |
ab9b9eab VZ |
7843 | #include "confdefs.h" |
7844 | /* System header to define __stub macros and hopefully few prototypes, | |
7845 | which can conflict with char shmat(); below. */ | |
7846 | #include <assert.h> | |
7847 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7848 | /* We use char because int might match the return type of a gcc2 | |
7849 | builtin and then its argument prototype would still apply. */ | |
7850 | char shmat(); | |
7851 | ||
7852 | int main() { | |
7853 | ||
7854 | /* The GNU C library defines this for functions which it implements | |
7855 | to always fail with ENOSYS. Some functions are actually named | |
7856 | something starting with __ and the normal name is an alias. */ | |
7857 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
7858 | choke me | |
7859 | #else | |
e694c22c | 7860 | shmat(); |
ab9b9eab VZ |
7861 | #endif |
7862 | ||
7863 | ; return 0; } | |
7864 | EOF | |
b12915c1 | 7865 | if { (eval echo configure:7866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7866 | rm -rf conftest* |
7867 | eval "ac_cv_func_shmat=yes" | |
7868 | else | |
7869 | echo "configure: failed program was:" >&5 | |
7870 | cat conftest.$ac_ext >&5 | |
7871 | rm -rf conftest* | |
7872 | eval "ac_cv_func_shmat=no" | |
7873 | fi | |
7874 | rm -f conftest* | |
7875 | fi | |
7876 | ||
7877 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
7878 | echo "$ac_t""yes" 1>&6 | |
7879 | : | |
7880 | else | |
7881 | echo "$ac_t""no" 1>&6 | |
7882 | fi | |
7883 | ||
7884 | if test $ac_cv_func_shmat = no; then | |
7885 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | |
b12915c1 | 7886 | echo "configure:7887: checking for shmat in -lipc" >&5 |
ab9b9eab VZ |
7887 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
7888 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7889 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7890 | else | |
7891 | ac_save_LIBS="$LIBS" | |
7892 | LIBS="-lipc $LIBS" | |
7893 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 7894 | #line 7895 "configure" |
ab9b9eab VZ |
7895 | #include "confdefs.h" |
7896 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7897 | /* We use char because int might match the return type of a gcc2 | |
7898 | builtin and then its argument prototype would still apply. */ | |
7899 | char shmat(); | |
7900 | ||
7901 | int main() { | |
7902 | shmat() | |
7903 | ; return 0; } | |
7904 | EOF | |
b12915c1 | 7905 | if { (eval echo configure:7906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7906 | rm -rf conftest* |
7907 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7908 | else | |
7909 | echo "configure: failed program was:" >&5 | |
7910 | cat conftest.$ac_ext >&5 | |
7911 | rm -rf conftest* | |
7912 | eval "ac_cv_lib_$ac_lib_var=no" | |
7913 | fi | |
7914 | rm -f conftest* | |
7915 | LIBS="$ac_save_LIBS" | |
7916 | ||
7917 | fi | |
7918 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7919 | echo "$ac_t""yes" 1>&6 | |
7920 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
7921 | else | |
7922 | echo "$ac_t""no" 1>&6 | |
7923 | fi | |
7924 | ||
7925 | fi | |
7926 | fi | |
7927 | ||
7928 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
7929 | ac_save_LDFLAGS="$LDFLAGS" | |
7930 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
7931 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
7932 | # check for ICE first), but we must link in the order -lSM -lICE or | |
7933 | # we get undefined symbols. So assume we have SM if we have ICE. | |
7934 | # These have to be linked with before -lX11, unlike the other | |
7935 | # libraries we check for below, so use a different variable. | |
7936 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | |
7937 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
b12915c1 | 7938 | echo "configure:7939: checking for IceConnectionNumber in -lICE" >&5 |
ab9b9eab VZ |
7939 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
7940 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7941 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7942 | else | |
7943 | ac_save_LIBS="$LIBS" | |
7944 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
7945 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 7946 | #line 7947 "configure" |
ab9b9eab VZ |
7947 | #include "confdefs.h" |
7948 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7949 | /* We use char because int might match the return type of a gcc2 | |
7950 | builtin and then its argument prototype would still apply. */ | |
7951 | char IceConnectionNumber(); | |
7952 | ||
7953 | int main() { | |
7954 | IceConnectionNumber() | |
7955 | ; return 0; } | |
7956 | EOF | |
b12915c1 | 7957 | if { (eval echo configure:7958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7958 | rm -rf conftest* |
7959 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7960 | else | |
7961 | echo "configure: failed program was:" >&5 | |
7962 | cat conftest.$ac_ext >&5 | |
7963 | rm -rf conftest* | |
7964 | eval "ac_cv_lib_$ac_lib_var=no" | |
7965 | fi | |
7966 | rm -f conftest* | |
7967 | LIBS="$ac_save_LIBS" | |
7968 | ||
7969 | fi | |
7970 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7971 | echo "$ac_t""yes" 1>&6 | |
7972 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
7973 | else | |
7974 | echo "$ac_t""no" 1>&6 | |
7975 | fi | |
7976 | ||
7977 | LDFLAGS="$ac_save_LDFLAGS" | |
7978 | ||
7979 | fi | |
7980 | ||
7981 | ||
7982 | if test "$no_x" = "yes"; then | |
7983 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
7984 | fi | |
7985 | ||
7986 | GUI_TK_LIBRARY="$X_LIBS" | |
7987 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
7988 | ||
7989 | ||
7990 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 | |
b12915c1 | 7991 | echo "configure:7992: checking for Motif/Lesstif headers" >&5 |
ab9b9eab VZ |
7992 | |
7993 | ac_find_includes= | |
7994 | for ac_dir in $SEARCH_INCLUDE; | |
7995 | do | |
7996 | if test -f "$ac_dir/Xm/Xm.h"; then | |
7997 | ac_find_includes=$ac_dir | |
7998 | break | |
7999 | fi | |
8000 | done | |
8001 | ||
8002 | if test "$ac_find_includes" != "" ; then | |
8003 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
8004 | else | |
8005 | echo "$ac_t""no" 1>&6 | |
8006 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
8007 | fi | |
8008 | ||
8009 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
b12915c1 | 8010 | echo "configure:8011: checking for Motif/Lesstif library" >&5 |
ab9b9eab VZ |
8011 | |
8012 | ac_find_libraries= | |
8013 | for ac_dir in $SEARCH_LIB; | |
8014 | do | |
8015 | for ac_extension in a so sl; do | |
8016 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
8017 | ac_find_libraries=$ac_dir | |
8018 | break 2 | |
8019 | fi | |
8020 | done | |
8021 | done | |
8022 | ||
8023 | if test "$ac_find_libraries" != "" ; then | |
8024 | ||
8025 | ac_path_to_include=$ac_find_includes | |
8026 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
8027 | result=$? | |
8028 | if test $result = 0; then | |
8029 | ac_path_to_include="" | |
8030 | else | |
8031 | ac_path_to_include="-I$ac_find_includes" | |
8032 | fi | |
8033 | ||
8034 | ||
8035 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
8036 | result=$? | |
8037 | if test $result = 0; then | |
8038 | ac_path_to_link="" | |
8039 | else | |
8040 | ac_path_to_link="-L$ac_find_libraries" | |
8041 | fi | |
8042 | ||
8043 | ||
8044 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" | |
8045 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include" | |
8046 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
8047 | else | |
8048 | echo "$ac_t""no" 1>&6 | |
8049 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
8050 | fi | |
8051 | ||
8052 | echo $ac_n "checking for Xt library""... $ac_c" 1>&6 | |
b12915c1 | 8053 | echo "configure:8054: checking for Xt library" >&5 |
ab9b9eab VZ |
8054 | |
8055 | ac_find_libraries= | |
8056 | for ac_dir in $SEARCH_LIB; | |
8057 | do | |
8058 | for ac_extension in a so sl; do | |
8059 | if test -f "$ac_dir/libXt.$ac_extension"; then | |
8060 | ac_find_libraries=$ac_dir | |
8061 | break 2 | |
8062 | fi | |
8063 | done | |
8064 | done | |
8065 | ||
8066 | if test "$ac_find_libraries" != "" ; then | |
8067 | ||
8068 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
8069 | result=$? | |
8070 | if test $result = 0; then | |
8071 | ac_path_to_link="" | |
8072 | else | |
8073 | ac_path_to_link="-L$ac_find_libraries" | |
8074 | fi | |
8075 | ||
8076 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" | |
8077 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
8078 | else | |
8079 | echo "$ac_t""no" 1>&6 | |
8080 | { echo "configure: error: please set LDFLAGS to contain the location of libXt" 1>&2; exit 1; } | |
8081 | fi | |
8082 | ||
8083 | XPM_LINK="" | |
8084 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
b12915c1 | 8085 | echo "configure:8086: checking for Xpm library" >&5 |
ab9b9eab VZ |
8086 | |
8087 | ac_find_libraries= | |
8088 | for ac_dir in $SEARCH_LIB; | |
8089 | do | |
8090 | for ac_extension in a so sl; do | |
8091 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
8092 | ac_find_libraries=$ac_dir | |
8093 | break 2 | |
8094 | fi | |
8095 | done | |
8096 | done | |
8097 | ||
8098 | if test "$ac_find_libraries" != "" ; then | |
8099 | ||
8100 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
8101 | result=$? | |
8102 | if test $result = 0; then | |
8103 | ac_path_to_link="" | |
8104 | else | |
8105 | ac_path_to_link="-L$ac_find_libraries" | |
8106 | fi | |
8107 | ||
8108 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" | |
8109 | XPM_LINK="-lXpm " | |
8110 | cat >> confdefs.h <<\EOF | |
8111 | #define wxHAVE_LIB_XPM 1 | |
8112 | EOF | |
8113 | ||
8114 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
8115 | else | |
8116 | echo "$ac_t""no" 1>&6 | |
8117 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
8118 | fi | |
8119 | ||
8120 | GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11 -lm" | |
8121 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" | |
8122 | TOOLKIT=MOTIF | |
8123 | ||
8124 | GUIHEADERS="\$(MOTIF_HEADERS)" | |
8125 | GUIOBJS="\$(MOTIF_GUIOBJS)" | |
8126 | COMMONOBJS="\$(MOTIF_COMMONOBJS)" | |
788deba1 VZ |
8127 | GENERICOBJS="\$(MOTIF_GENERICOBJS)" |
8128 | GUIDEPS="\$(MOTIF_GUIDEPS)" | |
8129 | COMMONDEPS="\$(MOTIF_COMMONDEPS)" | |
10f2d63a VZ |
8130 | GENERICDEPS="\$(MOTIF_GENERICDEPS)" |
8131 | UNIXOBJS="\$(UNIX_OBJS)" | |
d9d8273d | 8132 | UNIXDEPS="\$(UNIX_DEPS)" |
10f2d63a VZ |
8133 | GUIDIST=MOTIF_DIST |
8134 | fi | |
8135 | ||
8136 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "A-Z" "a-z"` | |
8137 | ||
8138 | TOOLKIT_DEF="-D__WX${TOOLKIT}__" | |
8139 | ||
8140 | WX_LIBRARY="wx_${TOOLKIT_DIR}" | |
8141 | ||
d9d8273d RR |
8142 | ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(IODBCOBJS)" |
8143 | if test "$wxUSE_LIBJPEG" = "yes" ; then | |
8144 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
8145 | fi | |
8146 | if test "$wxUSE_LIBTIFF" = "yes" ; then | |
8147 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
8148 | fi | |
8149 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
8150 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
8151 | fi | |
8152 | if test "$wxUSE_ZLIB" = "yes" ; then | |
8153 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
8154 | fi | |
10f2d63a VZ |
8155 | ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS)" |
8156 | ALL_HEADERS="\$(GUIHEADERS) \$(HTML_HEADERS) \$(UNIX_HEADERS) \$(PROTOCOL_HEADERS) \$(GENERIC_HEADERS) \$(WX_HEADERS)" | |
8157 | else | |
8158 | ||
8159 | ALL_OBJECTS="\$(BASE_OBJS)" | |
8160 | ALL_DEPFILES="\${BASE_DEPS}" | |
8161 | ALL_HEADERS="\${BASE_HEADERS}" | |
8162 | ||
8163 | WX_LIBRARY="wxbase" | |
8164 | fi | |
8165 | ||
8166 | WX_LIBRARY_NAME="lib${WX_LIBRARY}.la" | |
8167 | ||
8168 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
8169 | ||
8170 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
8171 | ||
8172 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}" | |
8173 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so" | |
8174 | WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so" | |
8175 | ||
8176 | SHARED_LD= | |
8177 | PIC_FLAG= | |
8178 | WX_ALL= | |
8179 | WX_ALL_INSTALLED= | |
1d62a8b4 | 8180 | BURNT_LIBRARY_NAME= |
10f2d63a | 8181 | |
b12915c1 | 8182 | |
10f2d63a VZ |
8183 | if test "$wxUSE_SHARED" = "yes"; then |
8184 | case "${host}" in | |
8185 | *-hp-hpux* ) | |
8186 | if test "$GCC" = yes ; then | |
69ffe1d2 | 8187 | SHARED_LD="${CC} -shared -fPIC -o" |
10f2d63a VZ |
8188 | PIC_FLAG="-fPIC" |
8189 | else | |
8190 | SHARED_LD="${CXX} -b -o" | |
8191 | PIC_FLAG="+Z" | |
8192 | fi | |
8193 | WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl" | |
8194 | WX_ALL=${WX_LIBRARY_NAME_SHARED} | |
8195 | ;; | |
b12915c1 VZ |
8196 | |
8197 | *-*-linux* ) | |
10f2d63a VZ |
8198 | SHARED_LD="${CC} -shared -o" |
8199 | PIC_FLAG="-fPIC" | |
8200 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8201 | WX_ALL="CREATE_LINKS" | |
b12915c1 | 8202 | ;; |
10f2d63a VZ |
8203 | *-*-irix5* | *-*-irix6* ) |
8204 | if test "$GCC" = yes ; then | |
8205 | SHARED_LD="${CC} -shared -o" | |
8206 | PIC_FLAG="-fPIC" | |
8207 | else | |
8208 | SHARED_LD="${CXX} -shared -o" | |
8209 | fi | |
8210 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8211 | WX_ALL="CREATE_LINKS" | |
8212 | ;; | |
8213 | *-*-solaris2* ) | |
8214 | if test "$GCC" = yes ; then | |
8215 | SHARED_LD="${CC} -shared -o" | |
8216 | PIC_FLAG="-fPIC" | |
8217 | else | |
8218 | SHARED_LD="${CXX} -G -o" | |
8219 | PIC_FLAG="-KPIC" | |
8220 | fi | |
8221 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8222 | WX_ALL="CREATE_LINKS" | |
8223 | ;; | |
8224 | *-*-sunos4* ) | |
8225 | SHARED_LD="${CC} -shared -o" | |
8226 | PIC_FLAG="-fPIC" | |
8227 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8228 | WX_ALL="CREATE_LINKS" | |
8229 | ;; | |
8230 | *-*-freebsd* | *-*-netbsd*) | |
8231 | SHARED_LD="${CC} -shared -o" | |
8232 | PIC_FLAG="-fPIC" | |
8233 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8234 | WX_ALL="CREATE_LINKS" | |
8235 | ;; | |
8236 | *-*-osf* ) | |
8237 | SHARED_LD="${CXX} -shared -o" | |
8238 | PIC_FLAG="-fPIC" | |
8239 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8240 | WX_ALL="CREATE_LINKS" | |
8241 | ;; | |
8242 | *-*-dgux5* ) | |
8243 | SHARED_LD="${CXX} -shared -o" | |
8244 | PIC_FLAG="-fPIC" | |
8245 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8246 | WX_ALL="CREATE_LINKS" | |
8247 | ;; | |
8248 | *-*-sysv5* ) | |
8249 | SHARED_LD="${CC} -shared -o" | |
8250 | PIC_FLAG="-fPIC" | |
8251 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8252 | WX_ALL="CREATE_LINKS" | |
8253 | ;; | |
8254 | *-*-aix* ) | |
8255 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
8256 | WX_ALL=${WX_LIBRARY_NAME_SHARED} | |
8257 | ;; | |
8258 | *-*-cygwin32* ) | |
8259 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
8260 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
8261 | ;; | |
b12915c1 | 8262 | *-*-mingw32* ) |
10f2d63a VZ |
8263 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
8264 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
8265 | ;; | |
8266 | *-pc-os2_emx ) | |
8267 | ;; | |
b12915c1 VZ |
8268 | *-*-beos* ) |
8269 | SHARED_LD="${CC} -shared -o" | |
8270 | PIC_FLAG="-fPIC" | |
8271 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8272 | WX_ALL="CREATE_LINKS" | |
8273 | ;; | |
10f2d63a VZ |
8274 | *) |
8275 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } | |
8276 | esac | |
8277 | ||
8278 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
8279 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
8280 | fi | |
8281 | else | |
8282 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
8283 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
8284 | fi | |
8285 | ||
8286 | ||
8287 | for ac_hdr in strings.h | |
8288 | do | |
8289 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8290 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b12915c1 | 8291 | echo "configure:8292: checking for $ac_hdr" >&5 |
10f2d63a VZ |
8292 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8293 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8294 | else | |
8295 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 8296 | #line 8297 "configure" |
10f2d63a VZ |
8297 | #include "confdefs.h" |
8298 | #include <$ac_hdr> | |
8299 | EOF | |
8300 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b12915c1 | 8301 | { (eval echo configure:8302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
8302 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8303 | if test -z "$ac_err"; then | |
8304 | rm -rf conftest* | |
8305 | eval "ac_cv_header_$ac_safe=yes" | |
8306 | else | |
8307 | echo "$ac_err" >&5 | |
8308 | echo "configure: failed program was:" >&5 | |
8309 | cat conftest.$ac_ext >&5 | |
8310 | rm -rf conftest* | |
8311 | eval "ac_cv_header_$ac_safe=no" | |
8312 | fi | |
8313 | rm -f conftest* | |
8314 | fi | |
8315 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8316 | echo "$ac_t""yes" 1>&6 | |
8317 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8318 | cat >> confdefs.h <<EOF | |
8319 | #define $ac_tr_hdr 1 | |
8320 | EOF | |
8321 | ||
8322 | else | |
8323 | echo "$ac_t""no" 1>&6 | |
8324 | fi | |
8325 | done | |
8326 | ||
8327 | for ac_hdr in unistd.h | |
8328 | do | |
8329 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8330 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b12915c1 | 8331 | echo "configure:8332: checking for $ac_hdr" >&5 |
10f2d63a VZ |
8332 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8333 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8334 | else | |
8335 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 8336 | #line 8337 "configure" |
10f2d63a VZ |
8337 | #include "confdefs.h" |
8338 | #include <$ac_hdr> | |
8339 | EOF | |
8340 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b12915c1 | 8341 | { (eval echo configure:8342: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
8342 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8343 | if test -z "$ac_err"; then | |
8344 | rm -rf conftest* | |
8345 | eval "ac_cv_header_$ac_safe=yes" | |
8346 | else | |
8347 | echo "$ac_err" >&5 | |
8348 | echo "configure: failed program was:" >&5 | |
8349 | cat conftest.$ac_ext >&5 | |
8350 | rm -rf conftest* | |
8351 | eval "ac_cv_header_$ac_safe=no" | |
8352 | fi | |
8353 | rm -f conftest* | |
8354 | fi | |
8355 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8356 | echo "$ac_t""yes" 1>&6 | |
8357 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8358 | cat >> confdefs.h <<EOF | |
8359 | #define $ac_tr_hdr 1 | |
8360 | EOF | |
8361 | ||
8362 | else | |
8363 | echo "$ac_t""no" 1>&6 | |
8364 | fi | |
8365 | done | |
8366 | ||
8367 | for ac_hdr in wchar.h | |
8368 | do | |
8369 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8370 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b12915c1 | 8371 | echo "configure:8372: checking for $ac_hdr" >&5 |
10f2d63a VZ |
8372 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8373 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8374 | else | |
8375 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 8376 | #line 8377 "configure" |
10f2d63a VZ |
8377 | #include "confdefs.h" |
8378 | #include <$ac_hdr> | |
8379 | EOF | |
8380 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b12915c1 | 8381 | { (eval echo configure:8382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
8382 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8383 | if test -z "$ac_err"; then | |
8384 | rm -rf conftest* | |
8385 | eval "ac_cv_header_$ac_safe=yes" | |
8386 | else | |
8387 | echo "$ac_err" >&5 | |
8388 | echo "configure: failed program was:" >&5 | |
8389 | cat conftest.$ac_ext >&5 | |
8390 | rm -rf conftest* | |
8391 | eval "ac_cv_header_$ac_safe=no" | |
8392 | fi | |
8393 | rm -f conftest* | |
8394 | fi | |
8395 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8396 | echo "$ac_t""yes" 1>&6 | |
8397 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8398 | cat >> confdefs.h <<EOF | |
8399 | #define $ac_tr_hdr 1 | |
8400 | EOF | |
8401 | ||
8402 | else | |
8403 | echo "$ac_t""no" 1>&6 | |
8404 | fi | |
8405 | done | |
8406 | ||
8407 | for ac_hdr in wcstr.h | |
8408 | do | |
8409 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8410 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b12915c1 | 8411 | echo "configure:8412: checking for $ac_hdr" >&5 |
10f2d63a VZ |
8412 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8413 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8414 | else | |
8415 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 8416 | #line 8417 "configure" |
10f2d63a VZ |
8417 | #include "confdefs.h" |
8418 | #include <$ac_hdr> | |
8419 | EOF | |
8420 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b12915c1 | 8421 | { (eval echo configure:8422: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
8422 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8423 | if test -z "$ac_err"; then | |
8424 | rm -rf conftest* | |
8425 | eval "ac_cv_header_$ac_safe=yes" | |
8426 | else | |
8427 | echo "$ac_err" >&5 | |
8428 | echo "configure: failed program was:" >&5 | |
8429 | cat conftest.$ac_ext >&5 | |
8430 | rm -rf conftest* | |
8431 | eval "ac_cv_header_$ac_safe=no" | |
8432 | fi | |
8433 | rm -f conftest* | |
8434 | fi | |
8435 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8436 | echo "$ac_t""yes" 1>&6 | |
8437 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8438 | cat >> confdefs.h <<EOF | |
8439 | #define $ac_tr_hdr 1 | |
8440 | EOF | |
8441 | ||
8442 | else | |
8443 | echo "$ac_t""no" 1>&6 | |
8444 | fi | |
8445 | done | |
8446 | ||
8447 | for ac_hdr in fnmatch.h | |
8448 | do | |
8449 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8450 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b12915c1 | 8451 | echo "configure:8452: checking for $ac_hdr" >&5 |
10f2d63a VZ |
8452 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8453 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8454 | else | |
8455 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 8456 | #line 8457 "configure" |
10f2d63a VZ |
8457 | #include "confdefs.h" |
8458 | #include <$ac_hdr> | |
8459 | EOF | |
8460 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b12915c1 | 8461 | { (eval echo configure:8462: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
8462 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8463 | if test -z "$ac_err"; then | |
8464 | rm -rf conftest* | |
8465 | eval "ac_cv_header_$ac_safe=yes" | |
8466 | else | |
8467 | echo "$ac_err" >&5 | |
8468 | echo "configure: failed program was:" >&5 | |
8469 | cat conftest.$ac_ext >&5 | |
8470 | rm -rf conftest* | |
8471 | eval "ac_cv_header_$ac_safe=no" | |
8472 | fi | |
8473 | rm -f conftest* | |
8474 | fi | |
8475 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8476 | echo "$ac_t""yes" 1>&6 | |
8477 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8478 | cat >> confdefs.h <<EOF | |
8479 | #define $ac_tr_hdr 1 | |
8480 | EOF | |
8481 | ||
8482 | else | |
8483 | echo "$ac_t""no" 1>&6 | |
8484 | fi | |
8485 | done | |
8486 | ||
8487 | ||
8488 | if test "$wxUSE_GUI" = "yes"; then | |
8489 | for ac_hdr in X11/XKBlib.h | |
8490 | do | |
8491 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8492 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b12915c1 | 8493 | echo "configure:8494: checking for $ac_hdr" >&5 |
10f2d63a VZ |
8494 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8495 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8496 | else | |
8497 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 8498 | #line 8499 "configure" |
10f2d63a VZ |
8499 | #include "confdefs.h" |
8500 | #include <$ac_hdr> | |
8501 | EOF | |
8502 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b12915c1 | 8503 | { (eval echo configure:8504: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
8504 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8505 | if test -z "$ac_err"; then | |
8506 | rm -rf conftest* | |
8507 | eval "ac_cv_header_$ac_safe=yes" | |
8508 | else | |
8509 | echo "$ac_err" >&5 | |
8510 | echo "configure: failed program was:" >&5 | |
8511 | cat conftest.$ac_ext >&5 | |
8512 | rm -rf conftest* | |
8513 | eval "ac_cv_header_$ac_safe=no" | |
8514 | fi | |
8515 | rm -f conftest* | |
8516 | fi | |
8517 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8518 | echo "$ac_t""yes" 1>&6 | |
8519 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8520 | cat >> confdefs.h <<EOF | |
8521 | #define $ac_tr_hdr 1 | |
8522 | EOF | |
8523 | ||
8524 | else | |
8525 | echo "$ac_t""no" 1>&6 | |
8526 | fi | |
8527 | done | |
8528 | ||
8529 | fi | |
8530 | ||
8531 | ||
8532 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
b12915c1 | 8533 | echo "configure:8534: checking for ANSI C header files" >&5 |
10f2d63a VZ |
8534 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
8535 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8536 | else | |
8537 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 8538 | #line 8539 "configure" |
10f2d63a VZ |
8539 | #include "confdefs.h" |
8540 | #include <stdlib.h> | |
8541 | #include <stdarg.h> | |
8542 | #include <string.h> | |
8543 | #include <float.h> | |
8544 | EOF | |
8545 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b12915c1 | 8546 | { (eval echo configure:8547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
8547 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8548 | if test -z "$ac_err"; then | |
8549 | rm -rf conftest* | |
8550 | ac_cv_header_stdc=yes | |
8551 | else | |
8552 | echo "$ac_err" >&5 | |
8553 | echo "configure: failed program was:" >&5 | |
8554 | cat conftest.$ac_ext >&5 | |
8555 | rm -rf conftest* | |
8556 | ac_cv_header_stdc=no | |
8557 | fi | |
8558 | rm -f conftest* | |
8559 | ||
8560 | if test $ac_cv_header_stdc = yes; then | |
8561 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
8562 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 8563 | #line 8564 "configure" |
10f2d63a VZ |
8564 | #include "confdefs.h" |
8565 | #include <string.h> | |
8566 | EOF | |
8567 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8568 | egrep "memchr" >/dev/null 2>&1; then | |
8569 | : | |
8570 | else | |
8571 | rm -rf conftest* | |
8572 | ac_cv_header_stdc=no | |
8573 | fi | |
8574 | rm -f conftest* | |
8575 | ||
8576 | fi | |
8577 | ||
8578 | if test $ac_cv_header_stdc = yes; then | |
8579 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
8580 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 8581 | #line 8582 "configure" |
10f2d63a VZ |
8582 | #include "confdefs.h" |
8583 | #include <stdlib.h> | |
8584 | EOF | |
8585 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8586 | egrep "free" >/dev/null 2>&1; then | |
8587 | : | |
8588 | else | |
8589 | rm -rf conftest* | |
8590 | ac_cv_header_stdc=no | |
8591 | fi | |
8592 | rm -f conftest* | |
8593 | ||
8594 | fi | |
8595 | ||
8596 | if test $ac_cv_header_stdc = yes; then | |
8597 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
8598 | if test "$cross_compiling" = yes; then | |
8599 | : | |
8600 | else | |
8601 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 8602 | #line 8603 "configure" |
10f2d63a VZ |
8603 | #include "confdefs.h" |
8604 | #include <ctype.h> | |
8605 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
8606 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
8607 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
8608 | int main () { int i; for (i = 0; i < 256; i++) | |
8609 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
8610 | exit (0); } | |
8611 | ||
8612 | EOF | |
b12915c1 | 8613 | if { (eval echo configure:8614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
8614 | then |
8615 | : | |
8616 | else | |
8617 | echo "configure: failed program was:" >&5 | |
8618 | cat conftest.$ac_ext >&5 | |
8619 | rm -fr conftest* | |
8620 | ac_cv_header_stdc=no | |
8621 | fi | |
8622 | rm -fr conftest* | |
8623 | fi | |
8624 | ||
8625 | fi | |
8626 | fi | |
8627 | ||
8628 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
8629 | if test $ac_cv_header_stdc = yes; then | |
8630 | cat >> confdefs.h <<\EOF | |
8631 | #define STDC_HEADERS 1 | |
8632 | EOF | |
8633 | ||
8634 | fi | |
8635 | ||
8636 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 | |
b12915c1 | 8637 | echo "configure:8638: checking for mode_t" >&5 |
10f2d63a VZ |
8638 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
8639 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8640 | else | |
8641 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 8642 | #line 8643 "configure" |
10f2d63a VZ |
8643 | #include "confdefs.h" |
8644 | #include <sys/types.h> | |
8645 | #if STDC_HEADERS | |
8646 | #include <stdlib.h> | |
8647 | #include <stddef.h> | |
8648 | #endif | |
8649 | EOF | |
8650 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8651 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
8652 | rm -rf conftest* | |
8653 | ac_cv_type_mode_t=yes | |
8654 | else | |
8655 | rm -rf conftest* | |
8656 | ac_cv_type_mode_t=no | |
8657 | fi | |
8658 | rm -f conftest* | |
8659 | ||
8660 | fi | |
8661 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
8662 | if test $ac_cv_type_mode_t = no; then | |
8663 | cat >> confdefs.h <<\EOF | |
8664 | #define mode_t int | |
8665 | EOF | |
8666 | ||
8667 | fi | |
8668 | ||
8669 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
b12915c1 | 8670 | echo "configure:8671: checking for off_t" >&5 |
10f2d63a VZ |
8671 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
8672 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8673 | else | |
8674 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 8675 | #line 8676 "configure" |
10f2d63a VZ |
8676 | #include "confdefs.h" |
8677 | #include <sys/types.h> | |
8678 | #if STDC_HEADERS | |
8679 | #include <stdlib.h> | |
8680 | #include <stddef.h> | |
8681 | #endif | |
8682 | EOF | |
8683 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8684 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
8685 | rm -rf conftest* | |
8686 | ac_cv_type_off_t=yes | |
8687 | else | |
8688 | rm -rf conftest* | |
8689 | ac_cv_type_off_t=no | |
8690 | fi | |
8691 | rm -f conftest* | |
8692 | ||
8693 | fi | |
8694 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
8695 | if test $ac_cv_type_off_t = no; then | |
8696 | cat >> confdefs.h <<\EOF | |
8697 | #define off_t long | |
8698 | EOF | |
8699 | ||
8700 | fi | |
8701 | ||
8702 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 | |
b12915c1 | 8703 | echo "configure:8704: checking for pid_t" >&5 |
10f2d63a VZ |
8704 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
8705 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8706 | else | |
8707 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 8708 | #line 8709 "configure" |
10f2d63a VZ |
8709 | #include "confdefs.h" |
8710 | #include <sys/types.h> | |
8711 | #if STDC_HEADERS | |
8712 | #include <stdlib.h> | |
8713 | #include <stddef.h> | |
8714 | #endif | |
8715 | EOF | |
8716 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8717 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
8718 | rm -rf conftest* | |
8719 | ac_cv_type_pid_t=yes | |
8720 | else | |
8721 | rm -rf conftest* | |
8722 | ac_cv_type_pid_t=no | |
8723 | fi | |
8724 | rm -f conftest* | |
8725 | ||
8726 | fi | |
8727 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
8728 | if test $ac_cv_type_pid_t = no; then | |
8729 | cat >> confdefs.h <<\EOF | |
8730 | #define pid_t int | |
8731 | EOF | |
8732 | ||
8733 | fi | |
8734 | ||
8735 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
b12915c1 | 8736 | echo "configure:8737: checking for size_t" >&5 |
10f2d63a VZ |
8737 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
8738 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8739 | else | |
8740 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 8741 | #line 8742 "configure" |
10f2d63a VZ |
8742 | #include "confdefs.h" |
8743 | #include <sys/types.h> | |
8744 | #if STDC_HEADERS | |
8745 | #include <stdlib.h> | |
8746 | #include <stddef.h> | |
8747 | #endif | |
8748 | EOF | |
8749 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8750 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
8751 | rm -rf conftest* | |
8752 | ac_cv_type_size_t=yes | |
8753 | else | |
8754 | rm -rf conftest* | |
8755 | ac_cv_type_size_t=no | |
8756 | fi | |
8757 | rm -f conftest* | |
8758 | ||
8759 | fi | |
8760 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
8761 | if test $ac_cv_type_size_t = no; then | |
8762 | cat >> confdefs.h <<\EOF | |
8763 | #define size_t unsigned | |
8764 | EOF | |
8765 | ||
8766 | fi | |
8767 | ||
8768 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 | |
b12915c1 | 8769 | echo "configure:8770: checking for uid_t in sys/types.h" >&5 |
10f2d63a VZ |
8770 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
8771 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8772 | else | |
8773 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 8774 | #line 8775 "configure" |
10f2d63a VZ |
8775 | #include "confdefs.h" |
8776 | #include <sys/types.h> | |
8777 | EOF | |
8778 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8779 | egrep "uid_t" >/dev/null 2>&1; then | |
8780 | rm -rf conftest* | |
8781 | ac_cv_type_uid_t=yes | |
8782 | else | |
8783 | rm -rf conftest* | |
8784 | ac_cv_type_uid_t=no | |
8785 | fi | |
8786 | rm -f conftest* | |
8787 | ||
8788 | fi | |
8789 | ||
8790 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 | |
8791 | if test $ac_cv_type_uid_t = no; then | |
8792 | cat >> confdefs.h <<\EOF | |
8793 | #define uid_t int | |
8794 | EOF | |
8795 | ||
8796 | cat >> confdefs.h <<\EOF | |
8797 | #define gid_t int | |
8798 | EOF | |
8799 | ||
8800 | fi | |
8801 | ||
8802 | ||
8803 | ||
b12915c1 VZ |
8804 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
8805 | echo "configure:8806: checking for pw_gecos in struct passwd" >&5 | |
8806 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then | |
8807 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8808 | else | |
8809 | ||
8810 | cat > conftest.$ac_ext <<EOF | |
8811 | #line 8812 "configure" | |
8812 | #include "confdefs.h" | |
8813 | #include <pwd.h> | |
8814 | int main() { | |
8815 | ||
8816 | char *p; | |
8817 | struct passwd *pw; | |
8818 | p = pw->pw_gecos; | |
8819 | ||
8820 | ; return 0; } | |
8821 | EOF | |
8822 | if { (eval echo configure:8823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
8823 | rm -rf conftest* | |
8824 | ||
8825 | wx_cv_struct_pw_gecos=yes | |
8826 | cat >> confdefs.h <<\EOF | |
8827 | #define HAVE_PW_GECOS 1 | |
8828 | EOF | |
8829 | ||
8830 | ||
8831 | else | |
8832 | echo "configure: failed program was:" >&5 | |
8833 | cat conftest.$ac_ext >&5 | |
8834 | rm -rf conftest* | |
8835 | ||
8836 | wx_cv_struct_pw_gecos=no | |
8837 | ||
8838 | ||
8839 | fi | |
8840 | rm -f conftest* | |
8841 | ||
8842 | ||
8843 | fi | |
8844 | ||
8845 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
8846 | ||
10f2d63a VZ |
8847 | |
8848 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
b12915c1 | 8849 | echo "configure:8850: checking for working const" >&5 |
10f2d63a VZ |
8850 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
8851 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8852 | else | |
8853 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 8854 | #line 8855 "configure" |
10f2d63a VZ |
8855 | #include "confdefs.h" |
8856 | ||
8857 | int main() { | |
8858 | ||
8859 | /* Ultrix mips cc rejects this. */ | |
8860 | typedef int charset[2]; const charset x; | |
8861 | /* SunOS 4.1.1 cc rejects this. */ | |
8862 | char const *const *ccp; | |
8863 | char **p; | |
8864 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
8865 | struct point {int x, y;}; | |
8866 | static struct point const zero = {0,0}; | |
8867 | /* AIX XL C 1.02.0.0 rejects this. | |
8868 | It does not let you subtract one const X* pointer from another in an arm | |
8869 | of an if-expression whose if-part is not a constant expression */ | |
8870 | const char *g = "string"; | |
8871 | ccp = &g + (g ? g-g : 0); | |
8872 | /* HPUX 7.0 cc rejects these. */ | |
8873 | ++ccp; | |
8874 | p = (char**) ccp; | |
8875 | ccp = (char const *const *) p; | |
8876 | { /* SCO 3.2v4 cc rejects this. */ | |
8877 | char *t; | |
8878 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
8879 | ||
8880 | *t++ = 0; | |
8881 | } | |
8882 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
8883 | int x[] = {25, 17}; | |
8884 | const int *foo = &x[0]; | |
8885 | ++foo; | |
8886 | } | |
8887 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
8888 | typedef const int *iptr; | |
8889 | iptr p = 0; | |
8890 | ++p; | |
8891 | } | |
8892 | { /* AIX XL C 1.02.0.0 rejects this saying | |
8893 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
8894 | struct s { int j; const int *ap[3]; }; | |
8895 | struct s *b; b->j = 5; | |
8896 | } | |
8897 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
8898 | const int foo = 10; | |
8899 | } | |
8900 | ||
8901 | ; return 0; } | |
8902 | EOF | |
b12915c1 | 8903 | if { (eval echo configure:8904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
8904 | rm -rf conftest* |
8905 | ac_cv_c_const=yes | |
8906 | else | |
8907 | echo "configure: failed program was:" >&5 | |
8908 | cat conftest.$ac_ext >&5 | |
8909 | rm -rf conftest* | |
8910 | ac_cv_c_const=no | |
8911 | fi | |
8912 | rm -f conftest* | |
8913 | fi | |
8914 | ||
8915 | echo "$ac_t""$ac_cv_c_const" 1>&6 | |
8916 | if test $ac_cv_c_const = no; then | |
8917 | cat >> confdefs.h <<\EOF | |
8918 | #define const | |
8919 | EOF | |
8920 | ||
8921 | fi | |
8922 | ||
8923 | echo $ac_n "checking for inline""... $ac_c" 1>&6 | |
b12915c1 | 8924 | echo "configure:8925: checking for inline" >&5 |
10f2d63a VZ |
8925 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
8926 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8927 | else | |
8928 | ac_cv_c_inline=no | |
8929 | for ac_kw in inline __inline__ __inline; do | |
8930 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 8931 | #line 8932 "configure" |
10f2d63a VZ |
8932 | #include "confdefs.h" |
8933 | ||
8934 | int main() { | |
8935 | } $ac_kw foo() { | |
8936 | ; return 0; } | |
8937 | EOF | |
b12915c1 | 8938 | if { (eval echo configure:8939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
8939 | rm -rf conftest* |
8940 | ac_cv_c_inline=$ac_kw; break | |
8941 | else | |
8942 | echo "configure: failed program was:" >&5 | |
8943 | cat conftest.$ac_ext >&5 | |
8944 | fi | |
8945 | rm -f conftest* | |
8946 | done | |
8947 | ||
8948 | fi | |
8949 | ||
8950 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
8951 | case "$ac_cv_c_inline" in | |
8952 | inline | yes) ;; | |
8953 | no) cat >> confdefs.h <<\EOF | |
8954 | #define inline | |
8955 | EOF | |
8956 | ;; | |
8957 | *) cat >> confdefs.h <<EOF | |
8958 | #define inline $ac_cv_c_inline | |
8959 | EOF | |
8960 | ;; | |
8961 | esac | |
8962 | ||
8963 | ||
8964 | echo $ac_n "checking size of char""... $ac_c" 1>&6 | |
b12915c1 | 8965 | echo "configure:8966: checking size of char" >&5 |
10f2d63a VZ |
8966 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
8967 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8968 | else | |
8969 | if test "$cross_compiling" = yes; then | |
8970 | ac_cv_sizeof_char=1 | |
8971 | else | |
8972 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 8973 | #line 8974 "configure" |
10f2d63a VZ |
8974 | #include "confdefs.h" |
8975 | #include <stdio.h> | |
8976 | main() | |
8977 | { | |
8978 | FILE *f=fopen("conftestval", "w"); | |
8979 | if (!f) exit(1); | |
8980 | fprintf(f, "%d\n", sizeof(char)); | |
8981 | exit(0); | |
8982 | } | |
8983 | EOF | |
b12915c1 | 8984 | if { (eval echo configure:8985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
8985 | then |
8986 | ac_cv_sizeof_char=`cat conftestval` | |
8987 | else | |
8988 | echo "configure: failed program was:" >&5 | |
8989 | cat conftest.$ac_ext >&5 | |
8990 | rm -fr conftest* | |
8991 | ac_cv_sizeof_char=0 | |
8992 | fi | |
8993 | rm -fr conftest* | |
8994 | fi | |
8995 | ||
8996 | fi | |
8997 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 | |
8998 | cat >> confdefs.h <<EOF | |
8999 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
9000 | EOF | |
9001 | ||
9002 | ||
9003 | echo $ac_n "checking size of short""... $ac_c" 1>&6 | |
b12915c1 | 9004 | echo "configure:9005: checking size of short" >&5 |
10f2d63a VZ |
9005 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
9006 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9007 | else | |
9008 | if test "$cross_compiling" = yes; then | |
9009 | ac_cv_sizeof_short=2 | |
9010 | else | |
9011 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 9012 | #line 9013 "configure" |
10f2d63a VZ |
9013 | #include "confdefs.h" |
9014 | #include <stdio.h> | |
9015 | main() | |
9016 | { | |
9017 | FILE *f=fopen("conftestval", "w"); | |
9018 | if (!f) exit(1); | |
9019 | fprintf(f, "%d\n", sizeof(short)); | |
9020 | exit(0); | |
9021 | } | |
9022 | EOF | |
b12915c1 | 9023 | if { (eval echo configure:9024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
9024 | then |
9025 | ac_cv_sizeof_short=`cat conftestval` | |
9026 | else | |
9027 | echo "configure: failed program was:" >&5 | |
9028 | cat conftest.$ac_ext >&5 | |
9029 | rm -fr conftest* | |
9030 | ac_cv_sizeof_short=0 | |
9031 | fi | |
9032 | rm -fr conftest* | |
9033 | fi | |
9034 | ||
9035 | fi | |
9036 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 | |
9037 | cat >> confdefs.h <<EOF | |
9038 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
9039 | EOF | |
9040 | ||
9041 | ||
9042 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 | |
b12915c1 | 9043 | echo "configure:9044: checking size of int *" >&5 |
10f2d63a VZ |
9044 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then |
9045 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9046 | else | |
9047 | if test "$cross_compiling" = yes; then | |
9048 | ac_cv_sizeof_int_p=4 | |
9049 | else | |
9050 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 9051 | #line 9052 "configure" |
10f2d63a VZ |
9052 | #include "confdefs.h" |
9053 | #include <stdio.h> | |
9054 | main() | |
9055 | { | |
9056 | FILE *f=fopen("conftestval", "w"); | |
9057 | if (!f) exit(1); | |
9058 | fprintf(f, "%d\n", sizeof(int *)); | |
9059 | exit(0); | |
9060 | } | |
9061 | EOF | |
b12915c1 | 9062 | if { (eval echo configure:9063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
9063 | then |
9064 | ac_cv_sizeof_int_p=`cat conftestval` | |
9065 | else | |
9066 | echo "configure: failed program was:" >&5 | |
9067 | cat conftest.$ac_ext >&5 | |
9068 | rm -fr conftest* | |
9069 | ac_cv_sizeof_int_p=0 | |
9070 | fi | |
9071 | rm -fr conftest* | |
9072 | fi | |
9073 | ||
9074 | fi | |
9075 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 | |
9076 | cat >> confdefs.h <<EOF | |
9077 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
9078 | EOF | |
9079 | ||
9080 | ||
9081 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
b12915c1 | 9082 | echo "configure:9083: checking size of int" >&5 |
10f2d63a VZ |
9083 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
9084 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9085 | else | |
9086 | if test "$cross_compiling" = yes; then | |
9087 | ac_cv_sizeof_int=4 | |
9088 | else | |
9089 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 9090 | #line 9091 "configure" |
10f2d63a VZ |
9091 | #include "confdefs.h" |
9092 | #include <stdio.h> | |
9093 | main() | |
9094 | { | |
9095 | FILE *f=fopen("conftestval", "w"); | |
9096 | if (!f) exit(1); | |
9097 | fprintf(f, "%d\n", sizeof(int)); | |
9098 | exit(0); | |
9099 | } | |
9100 | EOF | |
b12915c1 | 9101 | if { (eval echo configure:9102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
9102 | then |
9103 | ac_cv_sizeof_int=`cat conftestval` | |
9104 | else | |
9105 | echo "configure: failed program was:" >&5 | |
9106 | cat conftest.$ac_ext >&5 | |
9107 | rm -fr conftest* | |
9108 | ac_cv_sizeof_int=0 | |
9109 | fi | |
9110 | rm -fr conftest* | |
9111 | fi | |
9112 | ||
9113 | fi | |
9114 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
9115 | cat >> confdefs.h <<EOF | |
9116 | #define SIZEOF_INT $ac_cv_sizeof_int | |
9117 | EOF | |
9118 | ||
9119 | ||
9120 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
b12915c1 | 9121 | echo "configure:9122: checking size of long" >&5 |
10f2d63a VZ |
9122 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
9123 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9124 | else | |
9125 | if test "$cross_compiling" = yes; then | |
9126 | ac_cv_sizeof_long=4 | |
9127 | else | |
9128 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 9129 | #line 9130 "configure" |
10f2d63a VZ |
9130 | #include "confdefs.h" |
9131 | #include <stdio.h> | |
9132 | main() | |
9133 | { | |
9134 | FILE *f=fopen("conftestval", "w"); | |
9135 | if (!f) exit(1); | |
9136 | fprintf(f, "%d\n", sizeof(long)); | |
9137 | exit(0); | |
9138 | } | |
9139 | EOF | |
b12915c1 | 9140 | if { (eval echo configure:9141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
9141 | then |
9142 | ac_cv_sizeof_long=`cat conftestval` | |
9143 | else | |
9144 | echo "configure: failed program was:" >&5 | |
9145 | cat conftest.$ac_ext >&5 | |
9146 | rm -fr conftest* | |
9147 | ac_cv_sizeof_long=0 | |
9148 | fi | |
9149 | rm -fr conftest* | |
9150 | fi | |
9151 | ||
9152 | fi | |
9153 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
9154 | cat >> confdefs.h <<EOF | |
9155 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
9156 | EOF | |
9157 | ||
9158 | ||
9159 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
b12915c1 | 9160 | echo "configure:9161: checking size of long long" >&5 |
10f2d63a VZ |
9161 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
9162 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9163 | else | |
9164 | if test "$cross_compiling" = yes; then | |
9165 | ac_cv_sizeof_long_long=0 | |
9166 | else | |
9167 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 9168 | #line 9169 "configure" |
10f2d63a VZ |
9169 | #include "confdefs.h" |
9170 | #include <stdio.h> | |
9171 | main() | |
9172 | { | |
9173 | FILE *f=fopen("conftestval", "w"); | |
9174 | if (!f) exit(1); | |
9175 | fprintf(f, "%d\n", sizeof(long long)); | |
9176 | exit(0); | |
9177 | } | |
9178 | EOF | |
b12915c1 | 9179 | if { (eval echo configure:9180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
9180 | then |
9181 | ac_cv_sizeof_long_long=`cat conftestval` | |
9182 | else | |
9183 | echo "configure: failed program was:" >&5 | |
9184 | cat conftest.$ac_ext >&5 | |
9185 | rm -fr conftest* | |
9186 | ac_cv_sizeof_long_long=0 | |
9187 | fi | |
9188 | rm -fr conftest* | |
9189 | fi | |
9190 | ||
9191 | fi | |
9192 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
9193 | cat >> confdefs.h <<EOF | |
9194 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
9195 | EOF | |
9196 | ||
9197 | ||
9198 | ||
9199 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 | |
b12915c1 | 9200 | echo "configure:9201: checking whether byte ordering is bigendian" >&5 |
10f2d63a VZ |
9201 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
9202 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9203 | else | |
9204 | ac_cv_c_bigendian=unknown | |
9205 | # See if sys/param.h defines the BYTE_ORDER macro. | |
9206 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 9207 | #line 9208 "configure" |
10f2d63a VZ |
9208 | #include "confdefs.h" |
9209 | #include <sys/types.h> | |
9210 | #include <sys/param.h> | |
9211 | int main() { | |
9212 | ||
9213 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
9214 | bogus endian macros | |
9215 | #endif | |
9216 | ; return 0; } | |
9217 | EOF | |
b12915c1 | 9218 | if { (eval echo configure:9219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
9219 | rm -rf conftest* |
9220 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
9221 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 9222 | #line 9223 "configure" |
10f2d63a VZ |
9223 | #include "confdefs.h" |
9224 | #include <sys/types.h> | |
9225 | #include <sys/param.h> | |
9226 | int main() { | |
9227 | ||
9228 | #if BYTE_ORDER != BIG_ENDIAN | |
9229 | not big endian | |
9230 | #endif | |
9231 | ; return 0; } | |
9232 | EOF | |
b12915c1 | 9233 | if { (eval echo configure:9234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
9234 | rm -rf conftest* |
9235 | ac_cv_c_bigendian=yes | |
9236 | else | |
9237 | echo "configure: failed program was:" >&5 | |
9238 | cat conftest.$ac_ext >&5 | |
9239 | rm -rf conftest* | |
9240 | ac_cv_c_bigendian=no | |
9241 | fi | |
9242 | rm -f conftest* | |
9243 | else | |
9244 | echo "configure: failed program was:" >&5 | |
9245 | cat conftest.$ac_ext >&5 | |
9246 | fi | |
9247 | rm -f conftest* | |
9248 | if test $ac_cv_c_bigendian = unknown; then | |
9249 | if test "$cross_compiling" = yes; then | |
9250 | ac_cv_c_bigendian=unknown | |
9251 | else | |
9252 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 9253 | #line 9254 "configure" |
10f2d63a VZ |
9254 | #include "confdefs.h" |
9255 | main () { | |
9256 | /* Are we little or big endian? From Harbison&Steele. */ | |
9257 | union | |
9258 | { | |
9259 | long l; | |
9260 | char c[sizeof (long)]; | |
9261 | } u; | |
9262 | u.l = 1; | |
9263 | exit (u.c[sizeof (long) - 1] == 1); | |
9264 | } | |
9265 | EOF | |
b12915c1 | 9266 | if { (eval echo configure:9267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
9267 | then |
9268 | ac_cv_c_bigendian=no | |
9269 | else | |
9270 | echo "configure: failed program was:" >&5 | |
9271 | cat conftest.$ac_ext >&5 | |
9272 | rm -fr conftest* | |
9273 | ac_cv_c_bigendian=yes | |
9274 | fi | |
9275 | rm -fr conftest* | |
9276 | fi | |
9277 | ||
9278 | fi | |
9279 | fi | |
9280 | ||
9281 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
9282 | if test $ac_cv_c_bigendian = unknown; then | |
9283 | 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 | |
9284 | fi | |
9285 | if test $ac_cv_c_bigendian = yes; then | |
9286 | cat >> confdefs.h <<\EOF | |
9287 | #define WORDS_BIGENDIAN 1 | |
9288 | EOF | |
9289 | ||
9290 | fi | |
9291 | ||
9292 | ||
9293 | ||
9294 | if test "$cross_compiling" = "yes"; then | |
9295 | cat >> confdefs.h <<\EOF | |
9296 | #define wxUSE_IOSTREAMH 1 | |
9297 | EOF | |
9298 | ||
9299 | else | |
9300 | ||
9301 | ac_ext=C | |
9302 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9303 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9304 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9305 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9306 | cross_compiling=$ac_cv_prog_cxx_cross | |
9307 | ||
9308 | ||
9309 | for ac_hdr in iostream | |
9310 | do | |
9311 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9312 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b12915c1 | 9313 | echo "configure:9314: checking for $ac_hdr" >&5 |
10f2d63a VZ |
9314 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9315 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9316 | else | |
9317 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 9318 | #line 9319 "configure" |
10f2d63a VZ |
9319 | #include "confdefs.h" |
9320 | #include <$ac_hdr> | |
9321 | EOF | |
9322 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b12915c1 | 9323 | { (eval echo configure:9324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
9324 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9325 | if test -z "$ac_err"; then | |
9326 | rm -rf conftest* | |
9327 | eval "ac_cv_header_$ac_safe=yes" | |
9328 | else | |
9329 | echo "$ac_err" >&5 | |
9330 | echo "configure: failed program was:" >&5 | |
9331 | cat conftest.$ac_ext >&5 | |
9332 | rm -rf conftest* | |
9333 | eval "ac_cv_header_$ac_safe=no" | |
9334 | fi | |
9335 | rm -f conftest* | |
9336 | fi | |
9337 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9338 | echo "$ac_t""yes" 1>&6 | |
9339 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9340 | cat >> confdefs.h <<EOF | |
9341 | #define $ac_tr_hdr 1 | |
9342 | EOF | |
9343 | ||
9344 | else | |
9345 | echo "$ac_t""no" 1>&6 | |
9346 | fi | |
9347 | done | |
9348 | ||
9349 | ||
9350 | if test "x$HAVE_IOSTREAM" = x ; then | |
9351 | cat >> confdefs.h <<\EOF | |
9352 | #define wxUSE_IOSTREAMH 1 | |
9353 | EOF | |
9354 | ||
9355 | else | |
9356 | : | |
9357 | fi | |
9358 | ||
9359 | ac_ext=c | |
9360 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9361 | ac_cpp='$CPP $CPPFLAGS' | |
9362 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9363 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9364 | cross_compiling=$ac_cv_prog_cc_cross | |
9365 | ||
9366 | fi | |
9367 | ||
9368 | ||
9369 | ||
9370 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 | |
b12915c1 | 9371 | echo "configure:9372: checking if C++ compiler supports bool" >&5 |
10f2d63a VZ |
9372 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
9373 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9374 | else | |
9375 | ||
9376 | ||
9377 | ac_ext=C | |
9378 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9379 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9380 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9381 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9382 | cross_compiling=$ac_cv_prog_cxx_cross | |
9383 | ||
9384 | ||
9385 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 9386 | #line 9387 "configure" |
10f2d63a VZ |
9387 | #include "confdefs.h" |
9388 | ||
9389 | ||
9390 | int main() { | |
9391 | ||
9392 | bool b = true; | |
9393 | ||
9394 | return 0; | |
9395 | ||
9396 | ; return 0; } | |
9397 | EOF | |
b12915c1 | 9398 | if { (eval echo configure:9399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
9399 | rm -rf conftest* |
9400 | ||
9401 | cat >> confdefs.h <<\EOF | |
9402 | #define HAVE_BOOL 1 | |
9403 | EOF | |
9404 | ||
9405 | wx_cv_cpp_bool=yes | |
9406 | ||
9407 | else | |
9408 | echo "configure: failed program was:" >&5 | |
9409 | cat conftest.$ac_ext >&5 | |
9410 | rm -rf conftest* | |
9411 | ||
9412 | wx_cv_cpp_bool=no | |
9413 | ||
9414 | ||
9415 | fi | |
9416 | rm -f conftest* | |
9417 | ||
9418 | ac_ext=c | |
9419 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9420 | ac_cpp='$CPP $CPPFLAGS' | |
9421 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9422 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9423 | cross_compiling=$ac_cv_prog_cc_cross | |
9424 | ||
9425 | ||
9426 | fi | |
9427 | ||
9428 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
9429 | ||
9430 | if test "$wx_cv_cpp_bool" = "yes"; then | |
9431 | cat >> confdefs.h <<\EOF | |
9432 | #define HAVE_BOOL 1 | |
9433 | EOF | |
9434 | ||
9435 | fi | |
9436 | ||
9437 | ||
9438 | ||
10f2d63a | 9439 | echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6 |
b12915c1 | 9440 | echo "configure:9441: checking if you need GNU extensions" >&5 |
10f2d63a VZ |
9441 | if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then |
9442 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9443 | else | |
9444 | ||
9445 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 9446 | #line 9447 "configure" |
10f2d63a VZ |
9447 | #include "confdefs.h" |
9448 | #include <features.h> | |
9449 | int main() { | |
9450 | ||
9451 | ||
9452 | #ifndef __GNU_LIBRARY__ | |
9453 | Compile error wanted | |
9454 | #endif | |
9455 | ||
9456 | ||
9457 | ; return 0; } | |
9458 | EOF | |
b12915c1 | 9459 | if { (eval echo configure:9460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
9460 | rm -rf conftest* |
9461 | wx_cv_gnu_extensions=yes | |
9462 | else | |
9463 | echo "configure: failed program was:" >&5 | |
9464 | cat conftest.$ac_ext >&5 | |
9465 | rm -rf conftest* | |
9466 | wx_cv_gnu_extensions=no | |
9467 | fi | |
9468 | rm -f conftest* | |
9469 | ||
9470 | fi | |
9471 | ||
9472 | ||
9473 | echo "$ac_t""$wx_cv_gnu_extensions" 1>&6 | |
9474 | if test "$wx_cv_gnu_extensions" = "yes"; then | |
9475 | cat >> confdefs.h <<EOF | |
9476 | #define _GNU_SOURCE 1 | |
9477 | EOF | |
9478 | ||
9479 | fi | |
9480 | ||
9481 | ||
9482 | ||
9483 | echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6 | |
b12915c1 | 9484 | echo "configure:9485: checking for wcslen in -lc" >&5 |
10f2d63a VZ |
9485 | ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'` |
9486 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9487 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9488 | else | |
9489 | ac_save_LIBS="$LIBS" | |
9490 | LIBS="-lc $LIBS" | |
9491 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 9492 | #line 9493 "configure" |
10f2d63a VZ |
9493 | #include "confdefs.h" |
9494 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9495 | /* We use char because int might match the return type of a gcc2 | |
9496 | builtin and then its argument prototype would still apply. */ | |
9497 | char wcslen(); | |
9498 | ||
9499 | int main() { | |
9500 | wcslen() | |
9501 | ; return 0; } | |
9502 | EOF | |
b12915c1 | 9503 | if { (eval echo configure:9504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
9504 | rm -rf conftest* |
9505 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9506 | else | |
9507 | echo "configure: failed program was:" >&5 | |
9508 | cat conftest.$ac_ext >&5 | |
9509 | rm -rf conftest* | |
9510 | eval "ac_cv_lib_$ac_lib_var=no" | |
9511 | fi | |
9512 | rm -f conftest* | |
9513 | LIBS="$ac_save_LIBS" | |
9514 | ||
9515 | fi | |
9516 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9517 | echo "$ac_t""yes" 1>&6 | |
9518 | ||
9519 | cat >> confdefs.h <<\EOF | |
9520 | #define HAVE_WCSLEN 1 | |
9521 | EOF | |
9522 | ||
9523 | WCHAR_LINK="" | |
9524 | ||
9525 | else | |
9526 | echo "$ac_t""no" 1>&6 | |
9527 | ||
9528 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 | |
b12915c1 | 9529 | echo "configure:9530: checking for wcslen in -lw" >&5 |
10f2d63a VZ |
9530 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
9531 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9532 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9533 | else | |
9534 | ac_save_LIBS="$LIBS" | |
9535 | LIBS="-lw $LIBS" | |
9536 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 9537 | #line 9538 "configure" |
10f2d63a VZ |
9538 | #include "confdefs.h" |
9539 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9540 | /* We use char because int might match the return type of a gcc2 | |
9541 | builtin and then its argument prototype would still apply. */ | |
9542 | char wcslen(); | |
9543 | ||
9544 | int main() { | |
9545 | wcslen() | |
9546 | ; return 0; } | |
9547 | EOF | |
b12915c1 | 9548 | if { (eval echo configure:9549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
9549 | rm -rf conftest* |
9550 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9551 | else | |
9552 | echo "configure: failed program was:" >&5 | |
9553 | cat conftest.$ac_ext >&5 | |
9554 | rm -rf conftest* | |
9555 | eval "ac_cv_lib_$ac_lib_var=no" | |
9556 | fi | |
9557 | rm -f conftest* | |
9558 | LIBS="$ac_save_LIBS" | |
9559 | ||
9560 | fi | |
9561 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9562 | echo "$ac_t""yes" 1>&6 | |
9563 | ||
9564 | cat >> confdefs.h <<\EOF | |
9565 | #define HAVE_WCSLEN 1 | |
9566 | EOF | |
9567 | ||
9568 | WCHAR_LINK="-lw" | |
9569 | ||
9570 | else | |
9571 | echo "$ac_t""no" 1>&6 | |
9572 | fi | |
9573 | ||
9574 | ||
9575 | fi | |
9576 | ||
9577 | ||
9578 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 | |
b12915c1 | 9579 | echo "configure:9580: checking for vprintf" >&5 |
10f2d63a VZ |
9580 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
9581 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9582 | else | |
9583 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 9584 | #line 9585 "configure" |
10f2d63a VZ |
9585 | #include "confdefs.h" |
9586 | /* System header to define __stub macros and hopefully few prototypes, | |
9587 | which can conflict with char vprintf(); below. */ | |
9588 | #include <assert.h> | |
9589 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9590 | /* We use char because int might match the return type of a gcc2 | |
9591 | builtin and then its argument prototype would still apply. */ | |
9592 | char vprintf(); | |
9593 | ||
9594 | int main() { | |
9595 | ||
9596 | /* The GNU C library defines this for functions which it implements | |
9597 | to always fail with ENOSYS. Some functions are actually named | |
9598 | something starting with __ and the normal name is an alias. */ | |
9599 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
9600 | choke me | |
9601 | #else | |
e694c22c | 9602 | vprintf(); |
10f2d63a VZ |
9603 | #endif |
9604 | ||
9605 | ; return 0; } | |
9606 | EOF | |
b12915c1 | 9607 | if { (eval echo configure:9608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
9608 | rm -rf conftest* |
9609 | eval "ac_cv_func_vprintf=yes" | |
9610 | else | |
9611 | echo "configure: failed program was:" >&5 | |
9612 | cat conftest.$ac_ext >&5 | |
9613 | rm -rf conftest* | |
9614 | eval "ac_cv_func_vprintf=no" | |
9615 | fi | |
9616 | rm -f conftest* | |
9617 | fi | |
9618 | ||
9619 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
9620 | echo "$ac_t""yes" 1>&6 | |
9621 | cat >> confdefs.h <<\EOF | |
9622 | #define HAVE_VPRINTF 1 | |
9623 | EOF | |
9624 | ||
9625 | else | |
9626 | echo "$ac_t""no" 1>&6 | |
9627 | fi | |
9628 | ||
9629 | if test "$ac_cv_func_vprintf" != yes; then | |
9630 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
b12915c1 | 9631 | echo "configure:9632: checking for _doprnt" >&5 |
10f2d63a VZ |
9632 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
9633 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9634 | else | |
9635 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 9636 | #line 9637 "configure" |
10f2d63a VZ |
9637 | #include "confdefs.h" |
9638 | /* System header to define __stub macros and hopefully few prototypes, | |
9639 | which can conflict with char _doprnt(); below. */ | |
9640 | #include <assert.h> | |
9641 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9642 | /* We use char because int might match the return type of a gcc2 | |
9643 | builtin and then its argument prototype would still apply. */ | |
9644 | char _doprnt(); | |
9645 | ||
9646 | int main() { | |
9647 | ||
9648 | /* The GNU C library defines this for functions which it implements | |
9649 | to always fail with ENOSYS. Some functions are actually named | |
9650 | something starting with __ and the normal name is an alias. */ | |
9651 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
9652 | choke me | |
9653 | #else | |
e694c22c | 9654 | _doprnt(); |
10f2d63a VZ |
9655 | #endif |
9656 | ||
9657 | ; return 0; } | |
9658 | EOF | |
b12915c1 | 9659 | if { (eval echo configure:9660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
9660 | rm -rf conftest* |
9661 | eval "ac_cv_func__doprnt=yes" | |
9662 | else | |
9663 | echo "configure: failed program was:" >&5 | |
9664 | cat conftest.$ac_ext >&5 | |
9665 | rm -rf conftest* | |
9666 | eval "ac_cv_func__doprnt=no" | |
9667 | fi | |
9668 | rm -f conftest* | |
9669 | fi | |
9670 | ||
9671 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
9672 | echo "$ac_t""yes" 1>&6 | |
9673 | cat >> confdefs.h <<\EOF | |
9674 | #define HAVE_DOPRNT 1 | |
9675 | EOF | |
9676 | ||
9677 | else | |
9678 | echo "$ac_t""no" 1>&6 | |
9679 | fi | |
9680 | ||
9681 | fi | |
9682 | ||
9683 | ||
9684 | for ac_func in vsnprintf | |
9685 | do | |
9686 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
b12915c1 | 9687 | echo "configure:9688: checking for $ac_func" >&5 |
10f2d63a VZ |
9688 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9689 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9690 | else | |
9691 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 9692 | #line 9693 "configure" |
10f2d63a VZ |
9693 | #include "confdefs.h" |
9694 | /* System header to define __stub macros and hopefully few prototypes, | |
9695 | which can conflict with char $ac_func(); below. */ | |
9696 | #include <assert.h> | |
9697 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9698 | /* We use char because int might match the return type of a gcc2 | |
9699 | builtin and then its argument prototype would still apply. */ | |
9700 | char $ac_func(); | |
9701 | ||
9702 | int main() { | |
9703 | ||
9704 | /* The GNU C library defines this for functions which it implements | |
9705 | to always fail with ENOSYS. Some functions are actually named | |
9706 | something starting with __ and the normal name is an alias. */ | |
9707 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9708 | choke me | |
9709 | #else | |
e694c22c | 9710 | $ac_func(); |
10f2d63a VZ |
9711 | #endif |
9712 | ||
9713 | ; return 0; } | |
9714 | EOF | |
b12915c1 | 9715 | if { (eval echo configure:9716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
9716 | rm -rf conftest* |
9717 | eval "ac_cv_func_$ac_func=yes" | |
9718 | else | |
9719 | echo "configure: failed program was:" >&5 | |
9720 | cat conftest.$ac_ext >&5 | |
9721 | rm -rf conftest* | |
9722 | eval "ac_cv_func_$ac_func=no" | |
9723 | fi | |
9724 | rm -f conftest* | |
9725 | fi | |
9726 | ||
9727 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9728 | echo "$ac_t""yes" 1>&6 | |
9729 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9730 | cat >> confdefs.h <<EOF | |
9731 | #define $ac_tr_func 1 | |
9732 | EOF | |
9733 | cat >> confdefs.h <<\EOF | |
9734 | #define HAVE_VSNPRINTF 1 | |
9735 | EOF | |
9736 | ||
9737 | else | |
9738 | echo "$ac_t""no" 1>&6 | |
9739 | echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2 | |
9740 | ||
9741 | fi | |
9742 | done | |
9743 | ||
9744 | ||
9745 | ||
9746 | ac_ext=C | |
9747 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9748 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9749 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9750 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9751 | cross_compiling=$ac_cv_prog_cxx_cross | |
9752 | ||
9753 | ||
9754 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 | |
b12915c1 | 9755 | echo "configure:9756: checking for vsscanf" >&5 |
10f2d63a VZ |
9756 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
9757 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9758 | else | |
9759 | ||
9760 | if test "$cross_compiling" = yes; then | |
9761 | wx_cv_func_vsscanf=no | |
9762 | ||
9763 | else | |
9764 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 9765 | #line 9766 "configure" |
10f2d63a VZ |
9766 | #include "confdefs.h" |
9767 | #ifdef __cplusplus | |
9768 | extern "C" void exit(int); | |
9769 | #endif | |
9770 | ||
9771 | #include <stdio.h> | |
9772 | #include <stdarg.h> | |
9773 | ||
9774 | int try_vsscanf(const char *format, ...) | |
9775 | { | |
9776 | va_list ap; | |
9777 | va_start(ap, format); | |
9778 | ||
9779 | vsscanf("17", format, ap); | |
9780 | ||
9781 | va_end(ap); | |
9782 | } | |
9783 | ||
9784 | int main() | |
9785 | { | |
9786 | int i; | |
9787 | try_vsscanf("%d", &i); | |
9788 | return i == 17 ? 0 : 1; | |
9789 | } | |
9790 | ||
9791 | EOF | |
b12915c1 | 9792 | if { (eval echo configure:9793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
9793 | then |
9794 | ||
9795 | cat >> confdefs.h <<\EOF | |
9796 | #define HAVE_VSSCANF 1 | |
9797 | EOF | |
9798 | ||
9799 | wx_cv_func_vsscanf=yes | |
9800 | ||
9801 | else | |
9802 | echo "configure: failed program was:" >&5 | |
9803 | cat conftest.$ac_ext >&5 | |
9804 | rm -fr conftest* | |
9805 | wx_cv_func_vsscanf=no | |
9806 | fi | |
9807 | rm -fr conftest* | |
9808 | fi | |
9809 | ||
9810 | ||
9811 | fi | |
9812 | ||
9813 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 | |
9814 | ||
9815 | ac_ext=c | |
9816 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9817 | ac_cpp='$CPP $CPPFLAGS' | |
9818 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9819 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9820 | cross_compiling=$ac_cv_prog_cc_cross | |
9821 | ||
9822 | ||
9823 | if test "$USE_UNIX" = 1; then | |
9824 | ||
9825 | for ac_func in vfork | |
9826 | do | |
9827 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
b12915c1 | 9828 | echo "configure:9829: checking for $ac_func" >&5 |
10f2d63a VZ |
9829 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9830 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9831 | else | |
9832 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 9833 | #line 9834 "configure" |
10f2d63a VZ |
9834 | #include "confdefs.h" |
9835 | /* System header to define __stub macros and hopefully few prototypes, | |
9836 | which can conflict with char $ac_func(); below. */ | |
9837 | #include <assert.h> | |
9838 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9839 | /* We use char because int might match the return type of a gcc2 | |
9840 | builtin and then its argument prototype would still apply. */ | |
9841 | char $ac_func(); | |
9842 | ||
9843 | int main() { | |
9844 | ||
9845 | /* The GNU C library defines this for functions which it implements | |
9846 | to always fail with ENOSYS. Some functions are actually named | |
9847 | something starting with __ and the normal name is an alias. */ | |
9848 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9849 | choke me | |
9850 | #else | |
e694c22c | 9851 | $ac_func(); |
10f2d63a VZ |
9852 | #endif |
9853 | ||
9854 | ; return 0; } | |
9855 | EOF | |
b12915c1 | 9856 | if { (eval echo configure:9857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
270a909e VZ |
9857 | rm -rf conftest* |
9858 | eval "ac_cv_func_$ac_func=yes" | |
9859 | else | |
9860 | echo "configure: failed program was:" >&5 | |
9861 | cat conftest.$ac_ext >&5 | |
9862 | rm -rf conftest* | |
9863 | eval "ac_cv_func_$ac_func=no" | |
9864 | fi | |
9865 | rm -f conftest* | |
9866 | fi | |
9867 | ||
9868 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9869 | echo "$ac_t""yes" 1>&6 | |
9870 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9871 | cat >> confdefs.h <<EOF | |
9872 | #define $ac_tr_func 1 | |
9873 | EOF | |
9874 | ||
9875 | else | |
9876 | echo "$ac_t""no" 1>&6 | |
9877 | fi | |
9878 | done | |
9879 | ||
9880 | ||
9881 | for ac_func in timegm | |
9882 | do | |
9883 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
b12915c1 | 9884 | echo "configure:9885: checking for $ac_func" >&5 |
270a909e VZ |
9885 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9886 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9887 | else | |
9888 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 9889 | #line 9890 "configure" |
270a909e VZ |
9890 | #include "confdefs.h" |
9891 | /* System header to define __stub macros and hopefully few prototypes, | |
9892 | which can conflict with char $ac_func(); below. */ | |
9893 | #include <assert.h> | |
9894 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9895 | /* We use char because int might match the return type of a gcc2 | |
9896 | builtin and then its argument prototype would still apply. */ | |
9897 | char $ac_func(); | |
9898 | ||
9899 | int main() { | |
9900 | ||
9901 | /* The GNU C library defines this for functions which it implements | |
9902 | to always fail with ENOSYS. Some functions are actually named | |
9903 | something starting with __ and the normal name is an alias. */ | |
9904 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9905 | choke me | |
9906 | #else | |
e694c22c | 9907 | $ac_func(); |
270a909e VZ |
9908 | #endif |
9909 | ||
9910 | ; return 0; } | |
9911 | EOF | |
b12915c1 | 9912 | if { (eval echo configure:9913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
9913 | rm -rf conftest* |
9914 | eval "ac_cv_func_$ac_func=yes" | |
9915 | else | |
9916 | echo "configure: failed program was:" >&5 | |
9917 | cat conftest.$ac_ext >&5 | |
9918 | rm -rf conftest* | |
9919 | eval "ac_cv_func_$ac_func=no" | |
9920 | fi | |
9921 | rm -f conftest* | |
9922 | fi | |
9923 | ||
9924 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9925 | echo "$ac_t""yes" 1>&6 | |
9926 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9927 | cat >> confdefs.h <<EOF | |
9928 | #define $ac_tr_func 1 | |
9929 | EOF | |
9930 | ||
9931 | else | |
9932 | echo "$ac_t""no" 1>&6 | |
9933 | fi | |
9934 | done | |
9935 | ||
9936 | ||
b12915c1 VZ |
9937 | HAVE_SOME_SLEEP_FUNC=0 |
9938 | if test "$USE_BEOS" = 1; then | |
9939 | cat >> confdefs.h <<\EOF | |
9940 | #define HAVE_SLEEP 1 | |
9941 | EOF | |
9942 | ||
9943 | HAVE_SOME_SLEEP_FUNC=1 | |
9944 | fi | |
9945 | ||
9946 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
9947 | POSIX4_LINK= | |
9948 | for ac_func in nanosleep | |
10f2d63a VZ |
9949 | do |
9950 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
b12915c1 | 9951 | echo "configure:9952: checking for $ac_func" >&5 |
10f2d63a VZ |
9952 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9953 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9954 | else | |
9955 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 9956 | #line 9957 "configure" |
10f2d63a VZ |
9957 | #include "confdefs.h" |
9958 | /* System header to define __stub macros and hopefully few prototypes, | |
9959 | which can conflict with char $ac_func(); below. */ | |
9960 | #include <assert.h> | |
9961 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9962 | /* We use char because int might match the return type of a gcc2 | |
9963 | builtin and then its argument prototype would still apply. */ | |
9964 | char $ac_func(); | |
9965 | ||
9966 | int main() { | |
9967 | ||
9968 | /* The GNU C library defines this for functions which it implements | |
9969 | to always fail with ENOSYS. Some functions are actually named | |
9970 | something starting with __ and the normal name is an alias. */ | |
9971 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9972 | choke me | |
9973 | #else | |
e694c22c | 9974 | $ac_func(); |
10f2d63a VZ |
9975 | #endif |
9976 | ||
9977 | ; return 0; } | |
9978 | EOF | |
b12915c1 | 9979 | if { (eval echo configure:9980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
9980 | rm -rf conftest* |
9981 | eval "ac_cv_func_$ac_func=yes" | |
9982 | else | |
9983 | echo "configure: failed program was:" >&5 | |
9984 | cat conftest.$ac_ext >&5 | |
9985 | rm -rf conftest* | |
9986 | eval "ac_cv_func_$ac_func=no" | |
9987 | fi | |
9988 | rm -f conftest* | |
9989 | fi | |
9990 | ||
9991 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9992 | echo "$ac_t""yes" 1>&6 | |
9993 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9994 | cat >> confdefs.h <<EOF | |
9995 | #define $ac_tr_func 1 | |
9996 | EOF | |
9997 | cat >> confdefs.h <<\EOF | |
9998 | #define HAVE_NANOSLEEP 1 | |
9999 | EOF | |
10000 | ||
10001 | else | |
10002 | echo "$ac_t""no" 1>&6 | |
10003 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
b12915c1 | 10004 | echo "configure:10005: checking for nanosleep in -lposix4" >&5 |
10f2d63a VZ |
10005 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
10006 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10007 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10008 | else | |
10009 | ac_save_LIBS="$LIBS" | |
10010 | LIBS="-lposix4 $LIBS" | |
10011 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 10012 | #line 10013 "configure" |
10f2d63a VZ |
10013 | #include "confdefs.h" |
10014 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10015 | /* We use char because int might match the return type of a gcc2 | |
10016 | builtin and then its argument prototype would still apply. */ | |
10017 | char nanosleep(); | |
10018 | ||
10019 | int main() { | |
10020 | nanosleep() | |
10021 | ; return 0; } | |
10022 | EOF | |
b12915c1 | 10023 | if { (eval echo configure:10024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10024 | rm -rf conftest* |
10025 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10026 | else | |
10027 | echo "configure: failed program was:" >&5 | |
10028 | cat conftest.$ac_ext >&5 | |
10029 | rm -rf conftest* | |
10030 | eval "ac_cv_lib_$ac_lib_var=no" | |
10031 | fi | |
10032 | rm -f conftest* | |
10033 | LIBS="$ac_save_LIBS" | |
10034 | ||
10035 | fi | |
10036 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10037 | echo "$ac_t""yes" 1>&6 | |
10038 | ||
b12915c1 | 10039 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
10040 | #define HAVE_NANOSLEEP 1 |
10041 | EOF | |
10042 | ||
b12915c1 VZ |
10043 | POSIX4_LINK="-lposix4" |
10044 | ||
10f2d63a VZ |
10045 | else |
10046 | echo "$ac_t""no" 1>&6 | |
10047 | ||
b12915c1 | 10048 | for ac_func in usleep |
10f2d63a VZ |
10049 | do |
10050 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
b12915c1 | 10051 | echo "configure:10052: checking for $ac_func" >&5 |
10f2d63a VZ |
10052 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10053 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10054 | else | |
10055 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 10056 | #line 10057 "configure" |
10f2d63a VZ |
10057 | #include "confdefs.h" |
10058 | /* System header to define __stub macros and hopefully few prototypes, | |
10059 | which can conflict with char $ac_func(); below. */ | |
10060 | #include <assert.h> | |
10061 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10062 | /* We use char because int might match the return type of a gcc2 | |
10063 | builtin and then its argument prototype would still apply. */ | |
10064 | char $ac_func(); | |
10065 | ||
10066 | int main() { | |
10067 | ||
10068 | /* The GNU C library defines this for functions which it implements | |
10069 | to always fail with ENOSYS. Some functions are actually named | |
10070 | something starting with __ and the normal name is an alias. */ | |
10071 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10072 | choke me | |
10073 | #else | |
e694c22c | 10074 | $ac_func(); |
10f2d63a VZ |
10075 | #endif |
10076 | ||
10077 | ; return 0; } | |
10078 | EOF | |
b12915c1 | 10079 | if { (eval echo configure:10080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10080 | rm -rf conftest* |
10081 | eval "ac_cv_func_$ac_func=yes" | |
10082 | else | |
10083 | echo "configure: failed program was:" >&5 | |
10084 | cat conftest.$ac_ext >&5 | |
10085 | rm -rf conftest* | |
10086 | eval "ac_cv_func_$ac_func=no" | |
10087 | fi | |
10088 | rm -f conftest* | |
10089 | fi | |
10090 | ||
10091 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10092 | echo "$ac_t""yes" 1>&6 | |
10093 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10094 | cat >> confdefs.h <<EOF | |
10095 | #define $ac_tr_func 1 | |
10096 | EOF | |
b12915c1 | 10097 | |
10f2d63a VZ |
10098 | else |
10099 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
10100 | fi |
10101 | done | |
10102 | ||
b12915c1 VZ |
10103 | echo "configure: warning: wxSleep() function will not work" 1>&2 |
10104 | ||
10105 | ||
10f2d63a VZ |
10106 | fi |
10107 | ||
b12915c1 VZ |
10108 | |
10109 | ||
10f2d63a VZ |
10110 | fi |
10111 | done | |
10112 | ||
b12915c1 | 10113 | fi |
10f2d63a VZ |
10114 | |
10115 | for ac_func in uname gethostname | |
10116 | do | |
10117 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
b12915c1 | 10118 | echo "configure:10119: checking for $ac_func" >&5 |
10f2d63a VZ |
10119 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10120 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10121 | else | |
10122 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 10123 | #line 10124 "configure" |
10f2d63a VZ |
10124 | #include "confdefs.h" |
10125 | /* System header to define __stub macros and hopefully few prototypes, | |
10126 | which can conflict with char $ac_func(); below. */ | |
10127 | #include <assert.h> | |
10128 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10129 | /* We use char because int might match the return type of a gcc2 | |
10130 | builtin and then its argument prototype would still apply. */ | |
10131 | char $ac_func(); | |
10132 | ||
10133 | int main() { | |
10134 | ||
10135 | /* The GNU C library defines this for functions which it implements | |
10136 | to always fail with ENOSYS. Some functions are actually named | |
10137 | something starting with __ and the normal name is an alias. */ | |
10138 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10139 | choke me | |
10140 | #else | |
e694c22c | 10141 | $ac_func(); |
10f2d63a VZ |
10142 | #endif |
10143 | ||
10144 | ; return 0; } | |
10145 | EOF | |
b12915c1 | 10146 | if { (eval echo configure:10147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10147 | rm -rf conftest* |
10148 | eval "ac_cv_func_$ac_func=yes" | |
10149 | else | |
10150 | echo "configure: failed program was:" >&5 | |
10151 | cat conftest.$ac_ext >&5 | |
10152 | rm -rf conftest* | |
10153 | eval "ac_cv_func_$ac_func=no" | |
10154 | fi | |
10155 | rm -f conftest* | |
10156 | fi | |
10157 | ||
10158 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10159 | echo "$ac_t""yes" 1>&6 | |
10160 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10161 | cat >> confdefs.h <<EOF | |
10162 | #define $ac_tr_func 1 | |
10163 | EOF | |
10164 | break | |
10165 | else | |
10166 | echo "$ac_t""no" 1>&6 | |
10167 | fi | |
10168 | done | |
10169 | ||
10170 | ||
10171 | for ac_func in strtok_r | |
10172 | do | |
10173 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
b12915c1 | 10174 | echo "configure:10175: checking for $ac_func" >&5 |
10f2d63a VZ |
10175 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10176 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10177 | else | |
10178 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 10179 | #line 10180 "configure" |
10f2d63a VZ |
10180 | #include "confdefs.h" |
10181 | /* System header to define __stub macros and hopefully few prototypes, | |
10182 | which can conflict with char $ac_func(); below. */ | |
10183 | #include <assert.h> | |
10184 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10185 | /* We use char because int might match the return type of a gcc2 | |
10186 | builtin and then its argument prototype would still apply. */ | |
10187 | char $ac_func(); | |
10188 | ||
10189 | int main() { | |
10190 | ||
10191 | /* The GNU C library defines this for functions which it implements | |
10192 | to always fail with ENOSYS. Some functions are actually named | |
10193 | something starting with __ and the normal name is an alias. */ | |
10194 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10195 | choke me | |
10196 | #else | |
e694c22c | 10197 | $ac_func(); |
10f2d63a VZ |
10198 | #endif |
10199 | ||
10200 | ; return 0; } | |
10201 | EOF | |
b12915c1 | 10202 | if { (eval echo configure:10203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10203 | rm -rf conftest* |
10204 | eval "ac_cv_func_$ac_func=yes" | |
10205 | else | |
10206 | echo "configure: failed program was:" >&5 | |
10207 | cat conftest.$ac_ext >&5 | |
10208 | rm -rf conftest* | |
10209 | eval "ac_cv_func_$ac_func=no" | |
10210 | fi | |
10211 | rm -f conftest* | |
10212 | fi | |
10213 | ||
10214 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10215 | echo "$ac_t""yes" 1>&6 | |
10216 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10217 | cat >> confdefs.h <<EOF | |
10218 | #define $ac_tr_func 1 | |
10219 | EOF | |
10220 | ||
10221 | else | |
10222 | echo "$ac_t""no" 1>&6 | |
10223 | fi | |
10224 | done | |
10225 | ||
10226 | ||
c63c7106 | 10227 | INET_LINK= |
10f2d63a VZ |
10228 | for ac_func in inet_addr |
10229 | do | |
10230 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
b12915c1 | 10231 | echo "configure:10232: checking for $ac_func" >&5 |
10f2d63a VZ |
10232 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10233 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10234 | else | |
10235 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 10236 | #line 10237 "configure" |
10f2d63a VZ |
10237 | #include "confdefs.h" |
10238 | /* System header to define __stub macros and hopefully few prototypes, | |
10239 | which can conflict with char $ac_func(); below. */ | |
10240 | #include <assert.h> | |
10241 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10242 | /* We use char because int might match the return type of a gcc2 | |
10243 | builtin and then its argument prototype would still apply. */ | |
10244 | char $ac_func(); | |
10245 | ||
10246 | int main() { | |
10247 | ||
10248 | /* The GNU C library defines this for functions which it implements | |
10249 | to always fail with ENOSYS. Some functions are actually named | |
10250 | something starting with __ and the normal name is an alias. */ | |
10251 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10252 | choke me | |
10253 | #else | |
e694c22c | 10254 | $ac_func(); |
10f2d63a VZ |
10255 | #endif |
10256 | ||
10257 | ; return 0; } | |
10258 | EOF | |
b12915c1 | 10259 | if { (eval echo configure:10260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10260 | rm -rf conftest* |
10261 | eval "ac_cv_func_$ac_func=yes" | |
10262 | else | |
10263 | echo "configure: failed program was:" >&5 | |
10264 | cat conftest.$ac_ext >&5 | |
10265 | rm -rf conftest* | |
10266 | eval "ac_cv_func_$ac_func=no" | |
10267 | fi | |
10268 | rm -f conftest* | |
10269 | fi | |
10270 | ||
10271 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10272 | echo "$ac_t""yes" 1>&6 | |
10273 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10274 | cat >> confdefs.h <<EOF | |
10275 | #define $ac_tr_func 1 | |
10276 | EOF | |
c63c7106 VZ |
10277 | cat >> confdefs.h <<\EOF |
10278 | #define HAVE_INET_ADDR 1 | |
10279 | EOF | |
10280 | ||
10f2d63a VZ |
10281 | else |
10282 | echo "$ac_t""no" 1>&6 | |
c63c7106 | 10283 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 |
b12915c1 | 10284 | echo "configure:10285: checking for inet_addr in -lnsl" >&5 |
c63c7106 VZ |
10285 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
10286 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10287 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10288 | else | |
10289 | ac_save_LIBS="$LIBS" | |
10290 | LIBS="-lnsl $LIBS" | |
10291 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 10292 | #line 10293 "configure" |
c63c7106 VZ |
10293 | #include "confdefs.h" |
10294 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10295 | /* We use char because int might match the return type of a gcc2 | |
10296 | builtin and then its argument prototype would still apply. */ | |
10297 | char inet_addr(); | |
10298 | ||
10299 | int main() { | |
10300 | inet_addr() | |
10301 | ; return 0; } | |
10302 | EOF | |
b12915c1 | 10303 | if { (eval echo configure:10304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c63c7106 VZ |
10304 | rm -rf conftest* |
10305 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10306 | else | |
10307 | echo "configure: failed program was:" >&5 | |
10308 | cat conftest.$ac_ext >&5 | |
10309 | rm -rf conftest* | |
10310 | eval "ac_cv_lib_$ac_lib_var=no" | |
10311 | fi | |
10312 | rm -f conftest* | |
10313 | LIBS="$ac_save_LIBS" | |
10314 | ||
10315 | fi | |
10316 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10317 | echo "$ac_t""yes" 1>&6 | |
10318 | INET_LINK="nsl" | |
10319 | else | |
10320 | echo "$ac_t""no" 1>&6 | |
10321 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 | |
b12915c1 | 10322 | echo "configure:10323: checking for inet_addr in -lresolv" >&5 |
c63c7106 VZ |
10323 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
10324 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10325 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10326 | else | |
10327 | ac_save_LIBS="$LIBS" | |
10328 | LIBS="-lresolv $LIBS" | |
10329 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 10330 | #line 10331 "configure" |
c63c7106 VZ |
10331 | #include "confdefs.h" |
10332 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10333 | /* We use char because int might match the return type of a gcc2 | |
10334 | builtin and then its argument prototype would still apply. */ | |
10335 | char inet_addr(); | |
10336 | ||
10337 | int main() { | |
10338 | inet_addr() | |
10339 | ; return 0; } | |
10340 | EOF | |
b12915c1 | 10341 | if { (eval echo configure:10342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c63c7106 VZ |
10342 | rm -rf conftest* |
10343 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10344 | else | |
10345 | echo "configure: failed program was:" >&5 | |
10346 | cat conftest.$ac_ext >&5 | |
10347 | rm -rf conftest* | |
10348 | eval "ac_cv_lib_$ac_lib_var=no" | |
10349 | fi | |
10350 | rm -f conftest* | |
10351 | LIBS="$ac_save_LIBS" | |
10352 | ||
10353 | fi | |
10354 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10355 | echo "$ac_t""yes" 1>&6 | |
10356 | INET_LINK="resolv" | |
10357 | ||
10358 | else | |
10359 | echo "$ac_t""no" 1>&6 | |
10360 | fi | |
10361 | ||
10362 | ||
10363 | fi | |
10364 | ||
10365 | ||
10366 | ||
10f2d63a VZ |
10367 | fi |
10368 | done | |
10369 | ||
c63c7106 | 10370 | |
10f2d63a VZ |
10371 | for ac_func in inet_aton |
10372 | do | |
10373 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
b12915c1 | 10374 | echo "configure:10375: checking for $ac_func" >&5 |
10f2d63a VZ |
10375 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10376 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10377 | else | |
10378 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 10379 | #line 10380 "configure" |
10f2d63a VZ |
10380 | #include "confdefs.h" |
10381 | /* System header to define __stub macros and hopefully few prototypes, | |
10382 | which can conflict with char $ac_func(); below. */ | |
10383 | #include <assert.h> | |
10384 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10385 | /* We use char because int might match the return type of a gcc2 | |
10386 | builtin and then its argument prototype would still apply. */ | |
10387 | char $ac_func(); | |
10388 | ||
10389 | int main() { | |
10390 | ||
10391 | /* The GNU C library defines this for functions which it implements | |
10392 | to always fail with ENOSYS. Some functions are actually named | |
10393 | something starting with __ and the normal name is an alias. */ | |
10394 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10395 | choke me | |
10396 | #else | |
e694c22c | 10397 | $ac_func(); |
10f2d63a VZ |
10398 | #endif |
10399 | ||
10400 | ; return 0; } | |
10401 | EOF | |
b12915c1 | 10402 | if { (eval echo configure:10403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10403 | rm -rf conftest* |
10404 | eval "ac_cv_func_$ac_func=yes" | |
10405 | else | |
10406 | echo "configure: failed program was:" >&5 | |
10407 | cat conftest.$ac_ext >&5 | |
10408 | rm -rf conftest* | |
10409 | eval "ac_cv_func_$ac_func=no" | |
10410 | fi | |
10411 | rm -f conftest* | |
10412 | fi | |
10413 | ||
10414 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10415 | echo "$ac_t""yes" 1>&6 | |
10416 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10417 | cat >> confdefs.h <<EOF | |
10418 | #define $ac_tr_func 1 | |
10419 | EOF | |
c63c7106 VZ |
10420 | cat >> confdefs.h <<\EOF |
10421 | #define HAVE_INET_ATON 1 | |
10422 | EOF | |
10423 | ||
10f2d63a VZ |
10424 | else |
10425 | echo "$ac_t""no" 1>&6 | |
c63c7106 | 10426 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 |
b12915c1 | 10427 | echo "configure:10428: checking for inet_aton in -l$INET_LINK" >&5 |
c63c7106 | 10428 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
10f2d63a VZ |
10429 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
10430 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10431 | else | |
10432 | ac_save_LIBS="$LIBS" | |
c63c7106 | 10433 | LIBS="-l$INET_LINK $LIBS" |
10f2d63a | 10434 | cat > conftest.$ac_ext <<EOF |
b12915c1 | 10435 | #line 10436 "configure" |
10f2d63a VZ |
10436 | #include "confdefs.h" |
10437 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10438 | /* We use char because int might match the return type of a gcc2 | |
10439 | builtin and then its argument prototype would still apply. */ | |
10440 | char inet_aton(); | |
10441 | ||
10442 | int main() { | |
10443 | inet_aton() | |
10444 | ; return 0; } | |
10445 | EOF | |
b12915c1 | 10446 | if { (eval echo configure:10447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10447 | rm -rf conftest* |
10448 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10449 | else | |
10450 | echo "configure: failed program was:" >&5 | |
10451 | cat conftest.$ac_ext >&5 | |
10452 | rm -rf conftest* | |
10453 | eval "ac_cv_lib_$ac_lib_var=no" | |
10454 | fi | |
10455 | rm -f conftest* | |
10456 | LIBS="$ac_save_LIBS" | |
10457 | ||
10458 | fi | |
10459 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10460 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
10461 | cat >> confdefs.h <<\EOF |
10462 | #define HAVE_INET_ATON 1 | |
10f2d63a VZ |
10463 | EOF |
10464 | ||
10f2d63a VZ |
10465 | else |
10466 | echo "$ac_t""no" 1>&6 | |
10467 | fi | |
10468 | ||
c63c7106 VZ |
10469 | |
10470 | fi | |
10471 | done | |
10472 | ||
10473 | ||
10474 | if test "x$INET_LINK" != "x"; then | |
10475 | cat >> confdefs.h <<\EOF | |
10476 | #define HAVE_INET_ADDR 1 | |
10477 | EOF | |
10478 | ||
10479 | INET_LINK="-l$INET_LINK" | |
10480 | fi | |
10f2d63a VZ |
10481 | |
10482 | fi | |
10483 | ||
10484 | ||
10485 | cat > confcache <<\EOF | |
10486 | # This file is a shell script that caches the results of configure | |
10487 | # tests run on this system so they can be shared between configure | |
10488 | # scripts and configure runs. It is not useful on other systems. | |
10489 | # If it contains results you don't want to keep, you may remove or edit it. | |
10490 | # | |
10491 | # By default, configure uses ./config.cache as the cache file, | |
10492 | # creating it if it does not exist already. You can give configure | |
10493 | # the --cache-file=FILE option to use a different cache file; that is | |
10494 | # what configure does when it calls configure scripts in | |
10495 | # subdirectories, so they share the cache. | |
10496 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
10497 | # config.status only pays attention to the cache file if you give it the | |
10498 | # --recheck option to rerun configure. | |
10499 | # | |
10500 | EOF | |
10501 | # The following way of writing the cache mishandles newlines in values, | |
10502 | # but we know of no workaround that is simple, portable, and efficient. | |
10503 | # So, don't put newlines in cache variables' values. | |
10504 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10505 | # and sets the high bit in the cache file unless we assign to the vars. | |
10506 | (set) 2>&1 | | |
10507 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10508 | *ac_space=\ *) | |
10509 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
10510 | # turns \\\\ into \\, and sed turns \\ into \). | |
10511 | sed -n \ | |
10512 | -e "s/'/'\\\\''/g" \ | |
10513 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
10514 | ;; | |
10515 | *) | |
10516 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10517 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
10518 | ;; | |
10519 | esac >> confcache | |
10520 | if cmp -s $cache_file confcache; then | |
10521 | : | |
10522 | else | |
10523 | if test -w $cache_file; then | |
10524 | echo "updating cache $cache_file" | |
10525 | cat confcache > $cache_file | |
10526 | else | |
10527 | echo "not updating unwritable cache $cache_file" | |
10528 | fi | |
10529 | fi | |
10530 | rm -f confcache | |
10531 | ||
10532 | ||
10533 | ||
10534 | if test "$USE_UNIX" = 1; then | |
10535 | ||
10536 | ||
10537 | THREADS_LINK="" | |
10538 | THREADS_OBJ="" | |
10539 | ||
10540 | if test "$wxUSE_THREADS" = "yes" ; then | |
10541 | if test "$wxUSE_WINE" = 1 ; then | |
10542 | echo "configure: warning: Threads are not supported under WINE" 1>&2 | |
10543 | wxUSE_THREADS="no" | |
b12915c1 VZ |
10544 | elif test "$USE_BEOS" = 1; then |
10545 | echo "configure: warning: BeOS threads are not yet supported" 1>&2 | |
10546 | wxUSE_THREADS="no" | |
10f2d63a VZ |
10547 | fi |
10548 | fi | |
10549 | ||
10550 | if test "$wxUSE_THREADS" = "yes" ; then | |
10551 | ||
10552 | echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 | |
b12915c1 | 10553 | echo "configure:10554: checking for pthread_create in -lpthread" >&5 |
10f2d63a VZ |
10554 | ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` |
10555 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10556 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10557 | else | |
10558 | ac_save_LIBS="$LIBS" | |
10559 | LIBS="-lpthread $LIBS" | |
10560 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 10561 | #line 10562 "configure" |
10f2d63a VZ |
10562 | #include "confdefs.h" |
10563 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10564 | /* We use char because int might match the return type of a gcc2 | |
10565 | builtin and then its argument prototype would still apply. */ | |
10566 | char pthread_create(); | |
10567 | ||
10568 | int main() { | |
10569 | pthread_create() | |
10570 | ; return 0; } | |
10571 | EOF | |
b12915c1 | 10572 | if { (eval echo configure:10573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10573 | rm -rf conftest* |
10574 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10575 | else | |
10576 | echo "configure: failed program was:" >&5 | |
10577 | cat conftest.$ac_ext >&5 | |
10578 | rm -rf conftest* | |
10579 | eval "ac_cv_lib_$ac_lib_var=no" | |
10580 | fi | |
10581 | rm -f conftest* | |
10582 | LIBS="$ac_save_LIBS" | |
10583 | ||
10584 | fi | |
10585 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10586 | echo "$ac_t""yes" 1>&6 | |
10587 | ||
10588 | THREADS_OBJ="threadpsx.lo" | |
10589 | THREADS_LINK="pthread" | |
10590 | ||
10591 | else | |
10592 | echo "$ac_t""no" 1>&6 | |
10593 | ||
10594 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 | |
b12915c1 | 10595 | echo "configure:10596: checking for pthread_create in -lc_r" >&5 |
10f2d63a VZ |
10596 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
10597 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10598 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10599 | else | |
10600 | ac_save_LIBS="$LIBS" | |
10601 | LIBS="-lc_r $LIBS" | |
10602 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 10603 | #line 10604 "configure" |
10f2d63a VZ |
10604 | #include "confdefs.h" |
10605 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10606 | /* We use char because int might match the return type of a gcc2 | |
10607 | builtin and then its argument prototype would still apply. */ | |
10608 | char pthread_create(); | |
10609 | ||
10610 | int main() { | |
10611 | pthread_create() | |
10612 | ; return 0; } | |
10613 | EOF | |
b12915c1 | 10614 | if { (eval echo configure:10615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10615 | rm -rf conftest* |
10616 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10617 | else | |
10618 | echo "configure: failed program was:" >&5 | |
10619 | cat conftest.$ac_ext >&5 | |
10620 | rm -rf conftest* | |
10621 | eval "ac_cv_lib_$ac_lib_var=no" | |
10622 | fi | |
10623 | rm -f conftest* | |
10624 | LIBS="$ac_save_LIBS" | |
10625 | ||
10626 | fi | |
10627 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10628 | echo "$ac_t""yes" 1>&6 | |
10629 | ||
10630 | THREADS_OBJ="threadpsx.lo" | |
10631 | THREADS_LINK="c_r" | |
10632 | ||
10633 | else | |
10634 | echo "$ac_t""no" 1>&6 | |
10635 | ||
10636 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` | |
10637 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 | |
b12915c1 | 10638 | echo "configure:10639: checking for sys/prctl.h" >&5 |
10f2d63a VZ |
10639 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10640 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10641 | else | |
10642 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 10643 | #line 10644 "configure" |
10f2d63a VZ |
10644 | #include "confdefs.h" |
10645 | #include <sys/prctl.h> | |
10646 | EOF | |
10647 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b12915c1 | 10648 | { (eval echo configure:10649: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
10649 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10650 | if test -z "$ac_err"; then | |
10651 | rm -rf conftest* | |
10652 | eval "ac_cv_header_$ac_safe=yes" | |
10653 | else | |
10654 | echo "$ac_err" >&5 | |
10655 | echo "configure: failed program was:" >&5 | |
10656 | cat conftest.$ac_ext >&5 | |
10657 | rm -rf conftest* | |
10658 | eval "ac_cv_header_$ac_safe=no" | |
10659 | fi | |
10660 | rm -f conftest* | |
10661 | fi | |
10662 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10663 | echo "$ac_t""yes" 1>&6 | |
10664 | ||
10665 | THREADS_OBJ="threadsgi.lo" | |
10666 | ||
10667 | else | |
10668 | echo "$ac_t""no" 1>&6 | |
10669 | fi | |
10670 | ||
10671 | ||
10672 | fi | |
10673 | ||
10674 | ||
10675 | fi | |
10676 | ||
10677 | ||
10678 | if test -z "$THREADS_OBJ" ; then | |
10679 | wxUSE_THREADS=no | |
10680 | echo "configure: warning: No thread support on this system" 1>&2 | |
10681 | fi | |
10682 | fi | |
10683 | ||
10684 | if test "$wxUSE_THREADS" = "yes" ; then | |
70846f0a VZ |
10685 | for ac_func in thr_setconcurrency |
10686 | do | |
10687 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
b12915c1 | 10688 | echo "configure:10689: checking for $ac_func" >&5 |
70846f0a VZ |
10689 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10690 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10691 | else | |
10692 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 10693 | #line 10694 "configure" |
70846f0a VZ |
10694 | #include "confdefs.h" |
10695 | /* System header to define __stub macros and hopefully few prototypes, | |
10696 | which can conflict with char $ac_func(); below. */ | |
10697 | #include <assert.h> | |
10698 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10699 | /* We use char because int might match the return type of a gcc2 | |
10700 | builtin and then its argument prototype would still apply. */ | |
10701 | char $ac_func(); | |
10702 | ||
10703 | int main() { | |
10704 | ||
10705 | /* The GNU C library defines this for functions which it implements | |
10706 | to always fail with ENOSYS. Some functions are actually named | |
10707 | something starting with __ and the normal name is an alias. */ | |
10708 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10709 | choke me | |
10710 | #else | |
e694c22c | 10711 | $ac_func(); |
70846f0a VZ |
10712 | #endif |
10713 | ||
10714 | ; return 0; } | |
10715 | EOF | |
b12915c1 | 10716 | if { (eval echo configure:10717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
70846f0a VZ |
10717 | rm -rf conftest* |
10718 | eval "ac_cv_func_$ac_func=yes" | |
10719 | else | |
10720 | echo "configure: failed program was:" >&5 | |
10721 | cat conftest.$ac_ext >&5 | |
10722 | rm -rf conftest* | |
10723 | eval "ac_cv_func_$ac_func=no" | |
10724 | fi | |
10725 | rm -f conftest* | |
10726 | fi | |
10727 | ||
10728 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10729 | echo "$ac_t""yes" 1>&6 | |
10730 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10731 | cat >> confdefs.h <<EOF | |
10732 | #define $ac_tr_func 1 | |
10733 | EOF | |
10734 | ||
10735 | else | |
10736 | echo "$ac_t""no" 1>&6 | |
10737 | fi | |
10738 | done | |
10739 | ||
10740 | ||
10f2d63a VZ |
10741 | |
10742 | for ac_hdr in sched.h | |
10743 | do | |
10744 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10745 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b12915c1 | 10746 | echo "configure:10747: checking for $ac_hdr" >&5 |
10f2d63a VZ |
10747 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10748 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10749 | else | |
10750 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 10751 | #line 10752 "configure" |
10f2d63a VZ |
10752 | #include "confdefs.h" |
10753 | #include <$ac_hdr> | |
10754 | EOF | |
10755 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b12915c1 | 10756 | { (eval echo configure:10757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
10757 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10758 | if test -z "$ac_err"; then | |
10759 | rm -rf conftest* | |
10760 | eval "ac_cv_header_$ac_safe=yes" | |
10761 | else | |
10762 | echo "$ac_err" >&5 | |
10763 | echo "configure: failed program was:" >&5 | |
10764 | cat conftest.$ac_ext >&5 | |
10765 | rm -rf conftest* | |
10766 | eval "ac_cv_header_$ac_safe=no" | |
10767 | fi | |
10768 | rm -f conftest* | |
10769 | fi | |
10770 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10771 | echo "$ac_t""yes" 1>&6 | |
10772 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10773 | cat >> confdefs.h <<EOF | |
10774 | #define $ac_tr_hdr 1 | |
10775 | EOF | |
10776 | ||
10777 | else | |
10778 | echo "$ac_t""no" 1>&6 | |
10779 | fi | |
10780 | done | |
10781 | ||
10782 | ||
10783 | echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6 | |
b12915c1 | 10784 | echo "configure:10785: checking for sched_yield in -l$THREADS_LINK" >&5 |
10f2d63a VZ |
10785 | ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'` |
10786 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10787 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10788 | else | |
10789 | ac_save_LIBS="$LIBS" | |
10790 | LIBS="-l$THREADS_LINK $LIBS" | |
10791 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 10792 | #line 10793 "configure" |
10f2d63a VZ |
10793 | #include "confdefs.h" |
10794 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10795 | /* We use char because int might match the return type of a gcc2 | |
10796 | builtin and then its argument prototype would still apply. */ | |
10797 | char sched_yield(); | |
10798 | ||
10799 | int main() { | |
10800 | sched_yield() | |
10801 | ; return 0; } | |
10802 | EOF | |
b12915c1 | 10803 | if { (eval echo configure:10804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10804 | rm -rf conftest* |
10805 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10806 | else | |
10807 | echo "configure: failed program was:" >&5 | |
10808 | cat conftest.$ac_ext >&5 | |
10809 | rm -rf conftest* | |
10810 | eval "ac_cv_lib_$ac_lib_var=no" | |
10811 | fi | |
10812 | rm -f conftest* | |
10813 | LIBS="$ac_save_LIBS" | |
10814 | ||
10815 | fi | |
10816 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10817 | echo "$ac_t""yes" 1>&6 | |
10818 | cat >> confdefs.h <<\EOF | |
10819 | #define HAVE_SCHED_YIELD 1 | |
10820 | EOF | |
10821 | ||
10822 | else | |
10823 | echo "$ac_t""no" 1>&6 | |
10824 | echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6 | |
b12915c1 | 10825 | echo "configure:10826: checking for sched_yield in -l"posix4"" >&5 |
10f2d63a VZ |
10826 | ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'` |
10827 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10828 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10829 | else | |
10830 | ac_save_LIBS="$LIBS" | |
10831 | LIBS="-l"posix4" $LIBS" | |
10832 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 10833 | #line 10834 "configure" |
10f2d63a VZ |
10834 | #include "confdefs.h" |
10835 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10836 | /* We use char because int might match the return type of a gcc2 | |
10837 | builtin and then its argument prototype would still apply. */ | |
10838 | char sched_yield(); | |
10839 | ||
10840 | int main() { | |
10841 | sched_yield() | |
10842 | ; return 0; } | |
10843 | EOF | |
b12915c1 | 10844 | if { (eval echo configure:10845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10845 | rm -rf conftest* |
10846 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10847 | else | |
10848 | echo "configure: failed program was:" >&5 | |
10849 | cat conftest.$ac_ext >&5 | |
10850 | rm -rf conftest* | |
10851 | eval "ac_cv_lib_$ac_lib_var=no" | |
10852 | fi | |
10853 | rm -f conftest* | |
10854 | LIBS="$ac_save_LIBS" | |
10855 | ||
10856 | fi | |
10857 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10858 | echo "$ac_t""yes" 1>&6 | |
10859 | cat >> confdefs.h <<\EOF | |
10860 | #define HAVE_SCHED_YIELD 1 | |
10861 | EOF | |
10862 | POSIX4_LINK="-lposix4" | |
10863 | else | |
10864 | echo "$ac_t""no" 1>&6 | |
10865 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
10866 | ||
10867 | fi | |
10868 | ||
10869 | ||
10870 | fi | |
10871 | ||
10872 | ||
10873 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6 | |
b12915c1 | 10874 | echo "configure:10875: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5 |
10f2d63a VZ |
10875 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
10876 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10877 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10878 | else | |
10879 | ac_save_LIBS="$LIBS" | |
10880 | LIBS="-l$THREADS_LINK $LIBS" | |
10881 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 10882 | #line 10883 "configure" |
10f2d63a VZ |
10883 | #include "confdefs.h" |
10884 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10885 | /* We use char because int might match the return type of a gcc2 | |
10886 | builtin and then its argument prototype would still apply. */ | |
10887 | char pthread_attr_getschedpolicy(); | |
10888 | ||
10889 | int main() { | |
10890 | pthread_attr_getschedpolicy() | |
10891 | ; return 0; } | |
10892 | EOF | |
b12915c1 | 10893 | if { (eval echo configure:10894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10894 | rm -rf conftest* |
10895 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10896 | else | |
10897 | echo "configure: failed program was:" >&5 | |
10898 | cat conftest.$ac_ext >&5 | |
10899 | rm -rf conftest* | |
10900 | eval "ac_cv_lib_$ac_lib_var=no" | |
10901 | fi | |
10902 | rm -f conftest* | |
10903 | LIBS="$ac_save_LIBS" | |
10904 | ||
10905 | fi | |
10906 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10907 | echo "$ac_t""yes" 1>&6 | |
10908 | cat >> confdefs.h <<\EOF | |
10909 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
10910 | EOF | |
10911 | ||
10912 | else | |
10913 | echo "$ac_t""no" 1>&6 | |
10914 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4"""... $ac_c" 1>&6 | |
b12915c1 | 10915 | echo "configure:10916: checking for pthread_attr_getschedpolicy in -l"posix4"" >&5 |
10f2d63a VZ |
10916 | ac_lib_var=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
10917 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10918 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10919 | else | |
10920 | ac_save_LIBS="$LIBS" | |
10921 | LIBS="-l"posix4" $LIBS" | |
10922 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 10923 | #line 10924 "configure" |
10f2d63a VZ |
10924 | #include "confdefs.h" |
10925 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10926 | /* We use char because int might match the return type of a gcc2 | |
10927 | builtin and then its argument prototype would still apply. */ | |
10928 | char pthread_attr_getschedpolicy(); | |
10929 | ||
10930 | int main() { | |
10931 | pthread_attr_getschedpolicy() | |
10932 | ; return 0; } | |
10933 | EOF | |
b12915c1 | 10934 | if { (eval echo configure:10935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10935 | rm -rf conftest* |
10936 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10937 | else | |
10938 | echo "configure: failed program was:" >&5 | |
10939 | cat conftest.$ac_ext >&5 | |
10940 | rm -rf conftest* | |
10941 | eval "ac_cv_lib_$ac_lib_var=no" | |
10942 | fi | |
10943 | rm -f conftest* | |
10944 | LIBS="$ac_save_LIBS" | |
10945 | ||
10946 | fi | |
10947 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10948 | echo "$ac_t""yes" 1>&6 | |
10949 | cat >> confdefs.h <<\EOF | |
10950 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
10951 | EOF | |
10952 | POSIX4_LINK="-lposix4" | |
10953 | else | |
10954 | echo "$ac_t""no" 1>&6 | |
10955 | echo "configure: warning: Setting thread priority will not work" 1>&2 | |
10956 | ||
10957 | fi | |
10958 | ||
10959 | ||
10960 | fi | |
10961 | ||
10962 | ||
10963 | echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6 | |
b12915c1 | 10964 | echo "configure:10965: checking for pthread_cancel in -l$THREADS_LINK" >&5 |
10f2d63a VZ |
10965 | ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'` |
10966 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10967 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10968 | else | |
10969 | ac_save_LIBS="$LIBS" | |
10970 | LIBS="-l$THREADS_LINK $LIBS" | |
10971 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 10972 | #line 10973 "configure" |
10f2d63a VZ |
10973 | #include "confdefs.h" |
10974 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10975 | /* We use char because int might match the return type of a gcc2 | |
10976 | builtin and then its argument prototype would still apply. */ | |
10977 | char pthread_cancel(); | |
10978 | ||
10979 | int main() { | |
10980 | pthread_cancel() | |
10981 | ; return 0; } | |
10982 | EOF | |
b12915c1 | 10983 | if { (eval echo configure:10984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10984 | rm -rf conftest* |
10985 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10986 | else | |
10987 | echo "configure: failed program was:" >&5 | |
10988 | cat conftest.$ac_ext >&5 | |
10989 | rm -rf conftest* | |
10990 | eval "ac_cv_lib_$ac_lib_var=no" | |
10991 | fi | |
10992 | rm -f conftest* | |
10993 | LIBS="$ac_save_LIBS" | |
10994 | ||
10995 | fi | |
10996 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10997 | echo "$ac_t""yes" 1>&6 | |
10998 | cat >> confdefs.h <<\EOF | |
10999 | #define HAVE_PTHREAD_CANCEL 1 | |
11000 | EOF | |
11001 | ||
11002 | else | |
11003 | echo "$ac_t""no" 1>&6 | |
11004 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
11005 | fi | |
11006 | ||
11007 | ||
11008 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 | |
b12915c1 | 11009 | echo "configure:11010: checking for pthread_cleanup_push/pop" >&5 |
10f2d63a VZ |
11010 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
11011 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11012 | else | |
11013 | ||
11014 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 11015 | #line 11016 "configure" |
10f2d63a VZ |
11016 | #include "confdefs.h" |
11017 | #include <pthread.h> | |
11018 | int main() { | |
11019 | ||
11020 | pthread_cleanup_push(NULL, NULL); | |
11021 | pthread_cleanup_pop(0); | |
11022 | ||
11023 | ; return 0; } | |
11024 | EOF | |
b12915c1 | 11025 | if { (eval echo configure:11026: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
11026 | rm -rf conftest* |
11027 | ||
11028 | wx_cv_func_pthread_cleanup_push=yes | |
11029 | cat >> confdefs.h <<\EOF | |
11030 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 | |
11031 | EOF | |
11032 | ||
11033 | ||
11034 | else | |
11035 | echo "configure: failed program was:" >&5 | |
11036 | cat conftest.$ac_ext >&5 | |
11037 | rm -rf conftest* | |
11038 | ||
11039 | wx_cv_func_pthread_cleanup_push=no | |
11040 | ||
11041 | fi | |
11042 | rm -f conftest* | |
11043 | ||
11044 | fi | |
11045 | ||
11046 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
11047 | ||
11048 | THREADS_LINK="-l$THREADS_LINK" | |
11049 | fi | |
11050 | ||
11051 | fi | |
11052 | ||
11053 | if test "$wxUSE_THREADS" = "yes"; then | |
11054 | cat >> confdefs.h <<\EOF | |
11055 | #define wxUSE_THREADS 1 | |
11056 | EOF | |
11057 | ||
11058 | ||
11059 | CFLAGS="${CFLAGS} -D_REENTRANT" | |
11060 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" | |
11061 | ||
11062 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
11063 | else | |
11064 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
ab9b9eab | 11065 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 |
b12915c1 | 11066 | echo "configure:11067: checking if -D_REENTRANT is needed" >&5 |
ab9b9eab VZ |
11067 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
11068 | CFLAGS="${CFLAGS} -D_REENTRANT" | |
11069 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" | |
11070 | echo "$ac_t""yes" 1>&6 | |
11071 | else | |
11072 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
11073 | fi |
11074 | fi | |
11075 | fi | |
11076 | ||
11077 | if test "$WXGTK12" = 1 ; then | |
11078 | cat >> confdefs.h <<EOF | |
11079 | #define __WXGTK12__ $WXGTK12 | |
11080 | EOF | |
11081 | ||
11082 | fi | |
11083 | ||
11084 | if test "$WXWINE" = 1 ; then | |
11085 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__" | |
11086 | fi | |
11087 | ||
11088 | if test "$wxUSE_CYGWIN" = 1 ; then | |
11089 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__" | |
11090 | fi | |
11091 | ||
11092 | WXDEBUG= | |
11093 | ||
11094 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
11095 | WXDEBUG="-g" | |
11096 | wxUSE_OPTIMISE=no | |
11097 | fi | |
11098 | ||
11099 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
11100 | wxUSE_DEBUG_INFO=yes | |
11101 | WXDEBUG="-ggdb" | |
11102 | fi | |
11103 | ||
11104 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
11105 | cat >> confdefs.h <<\EOF | |
11106 | #define WXDEBUG 1 | |
11107 | EOF | |
11108 | ||
11109 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
11110 | else | |
11111 | if test "$wxUSE_GTK" = 1 ; then | |
11112 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
11113 | fi | |
11114 | fi | |
11115 | ||
11116 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
11117 | cat >> confdefs.h <<\EOF | |
11118 | #define wxUSE_MEMORY_TRACING 1 | |
11119 | EOF | |
11120 | ||
11121 | cat >> confdefs.h <<\EOF | |
11122 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
11123 | EOF | |
11124 | ||
11125 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
11126 | fi | |
11127 | ||
11128 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
11129 | DMALLOC_LINK="-ldmalloc" | |
11130 | fi | |
11131 | ||
11132 | PROFILE= | |
11133 | if test "$wxUSE_PROFILE" = "yes" ; then | |
11134 | PROFILE="-pg" | |
11135 | fi | |
11136 | ||
11137 | DEP_INFO_FLAGS= | |
11138 | if test "$GCC" = yes ; then | |
11139 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
11140 | WXDEBUG_DEFINE="$WXDEBUG_DEFINE -fno-rtti" | |
11141 | fi | |
11142 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
11143 | WXDEBUG_DEFINE="$WXDEBUG_DEFINE -fno-exceptions" | |
11144 | fi | |
11145 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
11146 | CFLAGS="${CFLAGS} -fpermissive" | |
11147 | CXXFLAGS="${CXXFLAGS} -fpermissive" | |
11148 | fi | |
11149 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
11150 | DEP_INFO_FLAGS="-MMD" | |
11151 | fi | |
11152 | fi | |
11153 | ||
11154 | ||
11155 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` | |
11156 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
11157 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
11158 | OPTIMISE= | |
11159 | else | |
11160 | if test "$GCC" = yes ; then | |
11161 | OPTIMISE="-O2" | |
11162 | case "${host}" in | |
11163 | i586-*-*|i686-*-* ) | |
11164 | OPTIMISE="${OPTIMISE} " | |
11165 | ;; | |
11166 | esac | |
11167 | else | |
11168 | OPTIMISE="-O" | |
11169 | fi | |
11170 | fi | |
11171 | ||
11172 | ||
11173 | ZLIB_INCLUDE= | |
11174 | if test "$wxUSE_ZLIB" = "yes" ; then | |
11175 | cat >> confdefs.h <<\EOF | |
11176 | #define wxUSE_ZLIB 1 | |
11177 | EOF | |
11178 | ||
11179 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
11180 | fi | |
11181 | ||
11182 | PNG_INCLUDE= | |
11183 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
11184 | cat >> confdefs.h <<\EOF | |
11185 | #define wxUSE_LIBPNG 1 | |
11186 | EOF | |
11187 | ||
11188 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
11189 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
11190 | fi | |
11191 | ||
11192 | JPEG_INCLUDE= | |
11193 | if test "$wxUSE_LIBJPEG" = "yes" ; then | |
11194 | cat >> confdefs.h <<\EOF | |
11195 | #define wxUSE_LIBJPEG 1 | |
11196 | EOF | |
11197 | ||
11198 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
11199 | fi | |
11200 | ||
c7a2bf27 RR |
11201 | TIFF_INCLUDE= |
11202 | if test "$wxUSE_LIBTIFF" = "yes" ; then | |
11203 | cat >> confdefs.h <<\EOF | |
11204 | #define wxUSE_LIBTIFF 1 | |
11205 | EOF | |
11206 | ||
11207 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
11208 | fi | |
11209 | ||
10f2d63a VZ |
11210 | if test "$wxUSE_OPENGL" = "yes"; then |
11211 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` | |
11212 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
b12915c1 | 11213 | echo "configure:11214: checking for GL/gl.h" >&5 |
10f2d63a VZ |
11214 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11215 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11216 | else | |
11217 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 11218 | #line 11219 "configure" |
10f2d63a VZ |
11219 | #include "confdefs.h" |
11220 | #include <GL/gl.h> | |
11221 | EOF | |
11222 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b12915c1 | 11223 | { (eval echo configure:11224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
11224 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11225 | if test -z "$ac_err"; then | |
11226 | rm -rf conftest* | |
11227 | eval "ac_cv_header_$ac_safe=yes" | |
11228 | else | |
11229 | echo "$ac_err" >&5 | |
11230 | echo "configure: failed program was:" >&5 | |
11231 | cat conftest.$ac_ext >&5 | |
11232 | rm -rf conftest* | |
11233 | eval "ac_cv_header_$ac_safe=no" | |
11234 | fi | |
11235 | rm -f conftest* | |
11236 | fi | |
11237 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11238 | echo "$ac_t""yes" 1>&6 | |
11239 | ||
11240 | echo $ac_n "checking for glInitNames in -lGL""... $ac_c" 1>&6 | |
b12915c1 | 11241 | echo "configure:11242: checking for glInitNames in -lGL" >&5 |
10f2d63a VZ |
11242 | ac_lib_var=`echo GL'_'glInitNames | sed 'y%./+-%__p_%'` |
11243 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11244 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11245 | else | |
11246 | ac_save_LIBS="$LIBS" | |
11247 | LIBS="-lGL wxUSE_OPENGL=0 $LIBS" | |
11248 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 11249 | #line 11250 "configure" |
10f2d63a VZ |
11250 | #include "confdefs.h" |
11251 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11252 | /* We use char because int might match the return type of a gcc2 | |
11253 | builtin and then its argument prototype would still apply. */ | |
11254 | char glInitNames(); | |
11255 | ||
11256 | int main() { | |
11257 | glInitNames() | |
11258 | ; return 0; } | |
11259 | EOF | |
b12915c1 | 11260 | if { (eval echo configure:11261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11261 | rm -rf conftest* |
11262 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11263 | else | |
11264 | echo "configure: failed program was:" >&5 | |
11265 | cat conftest.$ac_ext >&5 | |
11266 | rm -rf conftest* | |
11267 | eval "ac_cv_lib_$ac_lib_var=no" | |
11268 | fi | |
11269 | rm -f conftest* | |
11270 | LIBS="$ac_save_LIBS" | |
11271 | ||
11272 | fi | |
11273 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11274 | echo "$ac_t""yes" 1>&6 | |
11275 | ||
11276 | OPENGL_LINK="-lGL" | |
11277 | cat >> confdefs.h <<\EOF | |
11278 | #define wxUSE_OPENGL 1 | |
11279 | EOF | |
11280 | ||
11281 | UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src" | |
11282 | ||
11283 | else | |
11284 | echo "$ac_t""no" 1>&6 | |
11285 | ||
11286 | echo $ac_n "checking for glInitNames in -lMesaGL""... $ac_c" 1>&6 | |
b12915c1 | 11287 | echo "configure:11288: checking for glInitNames in -lMesaGL" >&5 |
10f2d63a VZ |
11288 | ac_lib_var=`echo MesaGL'_'glInitNames | sed 'y%./+-%__p_%'` |
11289 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11290 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11291 | else | |
11292 | ac_save_LIBS="$LIBS" | |
11293 | LIBS="-lMesaGL $LIBS" | |
11294 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 11295 | #line 11296 "configure" |
10f2d63a VZ |
11296 | #include "confdefs.h" |
11297 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11298 | /* We use char because int might match the return type of a gcc2 | |
11299 | builtin and then its argument prototype would still apply. */ | |
11300 | char glInitNames(); | |
11301 | ||
11302 | int main() { | |
11303 | glInitNames() | |
11304 | ; return 0; } | |
11305 | EOF | |
b12915c1 | 11306 | if { (eval echo configure:11307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11307 | rm -rf conftest* |
11308 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11309 | else | |
11310 | echo "configure: failed program was:" >&5 | |
11311 | cat conftest.$ac_ext >&5 | |
11312 | rm -rf conftest* | |
11313 | eval "ac_cv_lib_$ac_lib_var=no" | |
11314 | fi | |
11315 | rm -f conftest* | |
11316 | LIBS="$ac_save_LIBS" | |
11317 | ||
11318 | fi | |
11319 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11320 | echo "$ac_t""yes" 1>&6 | |
11321 | ||
11322 | OPENGL_LINK="-lMesaGL" | |
11323 | cat >> confdefs.h <<\EOF | |
11324 | #define wxUSE_OPENGL 1 | |
11325 | EOF | |
11326 | ||
11327 | UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src" | |
11328 | ||
11329 | else | |
11330 | echo "$ac_t""no" 1>&6 | |
11331 | wxUSE_OPENGL=0 | |
11332 | fi | |
11333 | ||
11334 | ||
11335 | fi | |
11336 | ||
11337 | ||
11338 | else | |
11339 | echo "$ac_t""no" 1>&6 | |
11340 | wxUSE_OPENGL=0 | |
11341 | fi | |
11342 | ||
11343 | fi | |
11344 | ||
11345 | ||
11346 | if test "$wxUSE_GUI" = "yes"; then | |
11347 | cat >> confdefs.h <<\EOF | |
11348 | #define wxUSE_GUI 1 | |
11349 | EOF | |
11350 | ||
11351 | ||
11352 | else | |
11353 | cat >> confdefs.h <<\EOF | |
11354 | #define wxUSE_NOGUI 1 | |
11355 | EOF | |
11356 | ||
11357 | fi | |
11358 | ||
11359 | ||
11360 | if test "$wxUSE_UNIX" = "yes"; then | |
11361 | cat >> confdefs.h <<\EOF | |
11362 | #define wxUSE_UNIX 1 | |
11363 | EOF | |
11364 | ||
11365 | fi | |
11366 | ||
11367 | ||
11368 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
11369 | cat >> confdefs.h <<\EOF | |
11370 | #define wxUSE_APPLE_IEEE 1 | |
11371 | EOF | |
11372 | ||
11373 | fi | |
11374 | ||
10f2d63a VZ |
11375 | if test "$wxUSE_WAVE" = "yes"; then |
11376 | cat >> confdefs.h <<\EOF | |
11377 | #define wxUSE_WAVE 1 | |
11378 | EOF | |
11379 | ||
11380 | fi | |
11381 | ||
11382 | if test "$wxUSE_FILE" = "yes"; then | |
11383 | cat >> confdefs.h <<\EOF | |
11384 | #define wxUSE_FILE 1 | |
11385 | EOF | |
11386 | ||
11387 | fi | |
11388 | ||
11389 | if test "$wxUSE_FS_INET" = "yes"; then | |
11390 | cat >> confdefs.h <<\EOF | |
11391 | #define wxUSE_FS_INET 1 | |
11392 | EOF | |
11393 | ||
11394 | fi | |
11395 | ||
11396 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
11397 | cat >> confdefs.h <<\EOF | |
11398 | #define wxUSE_FS_ZIP 1 | |
11399 | EOF | |
11400 | ||
11401 | fi | |
11402 | ||
11403 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
11404 | cat >> confdefs.h <<\EOF | |
11405 | #define wxUSE_ZIPSTREAM 1 | |
11406 | EOF | |
11407 | ||
11408 | fi | |
11409 | ||
11410 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
11411 | cat >> confdefs.h <<\EOF | |
11412 | #define wxUSE_BUSYINFO 1 | |
11413 | EOF | |
11414 | ||
11415 | fi | |
11416 | ||
11417 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
11418 | cat >> confdefs.h <<\EOF | |
11419 | #define wxUSE_STD_IOSTREAM 1 | |
11420 | EOF | |
11421 | ||
11422 | fi | |
11423 | ||
11424 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
11425 | if test "$wxUSE_FILE" != "yes"; then | |
11426 | echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2 | |
11427 | else | |
11428 | cat >> confdefs.h <<\EOF | |
11429 | #define wxUSE_TEXTFILE 1 | |
11430 | EOF | |
11431 | ||
11432 | fi | |
11433 | fi | |
11434 | ||
11435 | if test "$wxUSE_CONFIG" = "yes" ; then | |
11436 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
11437 | echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2 | |
11438 | else | |
11439 | cat >> confdefs.h <<\EOF | |
11440 | #define wxUSE_CONFIG 1 | |
11441 | EOF | |
11442 | ||
11443 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
11444 | fi | |
11445 | fi | |
11446 | ||
11447 | if test "$wxUSE_INTL" = "yes" ; then | |
11448 | if test "$wxUSE_FILE" != "yes"; then | |
11449 | echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2 | |
11450 | else | |
11451 | cat >> confdefs.h <<\EOF | |
11452 | #define wxUSE_INTL 1 | |
11453 | EOF | |
11454 | ||
11455 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
11456 | fi | |
11457 | fi | |
11458 | ||
11459 | if test "$wxUSE_LOG" = "yes"; then | |
11460 | cat >> confdefs.h <<\EOF | |
11461 | #define wxUSE_LOG 1 | |
11462 | EOF | |
11463 | ||
11464 | fi | |
11465 | ||
11466 | if test "$wxUSE_LONGLONG" = "yes"; then | |
11467 | cat >> confdefs.h <<\EOF | |
11468 | #define wxUSE_LONGLONG 1 | |
11469 | EOF | |
11470 | ||
11471 | fi | |
11472 | ||
10f2d63a VZ |
11473 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
11474 | cat >> confdefs.h <<\EOF | |
11475 | #define wxUSE_DIALUP_MANAGER 1 | |
11476 | EOF | |
11477 | ||
678b92a9 | 11478 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS nettest" |
10f2d63a VZ |
11479 | fi |
11480 | ||
11481 | if test "$wxUSE_STREAMS" = "yes" ; then | |
11482 | cat >> confdefs.h <<\EOF | |
11483 | #define wxUSE_STREAMS 1 | |
11484 | EOF | |
11485 | ||
11486 | fi | |
11487 | ||
10f2d63a | 11488 | |
afc31813 | 11489 | if test "$wxUSE_TIMEDATE" = "yes"; then |
83307f33 VZ |
11490 | for ac_func in strptime |
11491 | do | |
11492 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
b12915c1 | 11493 | echo "configure:11494: checking for $ac_func" >&5 |
83307f33 VZ |
11494 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11495 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11496 | else | |
11497 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 11498 | #line 11499 "configure" |
83307f33 VZ |
11499 | #include "confdefs.h" |
11500 | /* System header to define __stub macros and hopefully few prototypes, | |
11501 | which can conflict with char $ac_func(); below. */ | |
11502 | #include <assert.h> | |
11503 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11504 | /* We use char because int might match the return type of a gcc2 | |
11505 | builtin and then its argument prototype would still apply. */ | |
11506 | char $ac_func(); | |
11507 | ||
11508 | int main() { | |
11509 | ||
11510 | /* The GNU C library defines this for functions which it implements | |
11511 | to always fail with ENOSYS. Some functions are actually named | |
11512 | something starting with __ and the normal name is an alias. */ | |
11513 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11514 | choke me | |
11515 | #else | |
11516 | $ac_func(); | |
11517 | #endif | |
11518 | ||
11519 | ; return 0; } | |
11520 | EOF | |
b12915c1 | 11521 | if { (eval echo configure:11522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
83307f33 VZ |
11522 | rm -rf conftest* |
11523 | eval "ac_cv_func_$ac_func=yes" | |
11524 | else | |
11525 | echo "configure: failed program was:" >&5 | |
11526 | cat conftest.$ac_ext >&5 | |
11527 | rm -rf conftest* | |
11528 | eval "ac_cv_func_$ac_func=no" | |
11529 | fi | |
11530 | rm -f conftest* | |
11531 | fi | |
11532 | ||
11533 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11534 | echo "$ac_t""yes" 1>&6 | |
11535 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11536 | cat >> confdefs.h <<EOF | |
11537 | #define $ac_tr_func 1 | |
11538 | EOF | |
11539 | ||
11540 | else | |
11541 | echo "$ac_t""no" 1>&6 | |
11542 | fi | |
11543 | done | |
11544 | ||
11545 | ||
360d6699 | 11546 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
b12915c1 | 11547 | echo "configure:11548: checking for timezone variable in <time.h>" >&5 |
360d6699 VZ |
11548 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
11549 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11550 | else | |
11551 | ||
11552 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 11553 | #line 11554 "configure" |
360d6699 VZ |
11554 | #include "confdefs.h" |
11555 | ||
11556 | #include <time.h> | |
11557 | ||
11558 | int main() { | |
11559 | ||
11560 | int tz; | |
11561 | tz = __timezone; | |
11562 | ||
11563 | ; return 0; } | |
11564 | EOF | |
b12915c1 | 11565 | if { (eval echo configure:11566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
360d6699 VZ |
11566 | rm -rf conftest* |
11567 | ||
11568 | wx_cv_var_timezone=__timezone | |
11569 | ||
11570 | else | |
11571 | echo "configure: failed program was:" >&5 | |
11572 | cat conftest.$ac_ext >&5 | |
11573 | rm -rf conftest* | |
11574 | ||
11575 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 11576 | #line 11577 "configure" |
360d6699 VZ |
11577 | #include "confdefs.h" |
11578 | ||
11579 | #include <time.h> | |
11580 | ||
11581 | int main() { | |
11582 | ||
11583 | int tz; | |
11584 | tz = _timezone; | |
11585 | ||
11586 | ; return 0; } | |
11587 | EOF | |
b12915c1 | 11588 | if { (eval echo configure:11589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
360d6699 VZ |
11589 | rm -rf conftest* |
11590 | ||
11591 | wx_cv_var_timezone=_timezone | |
11592 | ||
5357c8e8 VZ |
11593 | else |
11594 | echo "configure: failed program was:" >&5 | |
11595 | cat conftest.$ac_ext >&5 | |
11596 | rm -rf conftest* | |
11597 | ||
11598 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 11599 | #line 11600 "configure" |
5357c8e8 VZ |
11600 | #include "confdefs.h" |
11601 | ||
11602 | #include <time.h> | |
11603 | ||
11604 | int main() { | |
11605 | ||
11606 | int tz; | |
11607 | tz = timezone; | |
11608 | ||
11609 | ; return 0; } | |
11610 | EOF | |
b12915c1 | 11611 | if { (eval echo configure:11612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
5357c8e8 VZ |
11612 | rm -rf conftest* |
11613 | ||
11614 | wx_cv_var_timezone=timezone | |
11615 | ||
360d6699 VZ |
11616 | else |
11617 | echo "configure: failed program was:" >&5 | |
11618 | cat conftest.$ac_ext >&5 | |
11619 | rm -rf conftest* | |
11620 | { echo "configure: error: no timezone variable" 1>&2; exit 1; } | |
5357c8e8 VZ |
11621 | |
11622 | fi | |
11623 | rm -f conftest* | |
11624 | ||
360d6699 VZ |
11625 | |
11626 | fi | |
11627 | rm -f conftest* | |
11628 | ||
11629 | ||
11630 | fi | |
11631 | rm -f conftest* | |
11632 | ||
11633 | ||
11634 | fi | |
11635 | ||
11636 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 | |
11637 | ||
11638 | cat >> confdefs.h <<EOF | |
11639 | #define WX_TIMEZONE $wx_cv_var_timezone | |
11640 | EOF | |
11641 | ||
11642 | ||
0470b1e6 | 11643 | for ac_func in localtime gettimeofday ftime |
afc31813 VZ |
11644 | do |
11645 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
b12915c1 | 11646 | echo "configure:11647: checking for $ac_func" >&5 |
afc31813 VZ |
11647 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11648 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11649 | else | |
11650 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 11651 | #line 11652 "configure" |
10f2d63a | 11652 | #include "confdefs.h" |
afc31813 VZ |
11653 | /* System header to define __stub macros and hopefully few prototypes, |
11654 | which can conflict with char $ac_func(); below. */ | |
11655 | #include <assert.h> | |
11656 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11657 | /* We use char because int might match the return type of a gcc2 | |
11658 | builtin and then its argument prototype would still apply. */ | |
11659 | char $ac_func(); | |
11660 | ||
10f2d63a | 11661 | int main() { |
afc31813 VZ |
11662 | |
11663 | /* The GNU C library defines this for functions which it implements | |
11664 | to always fail with ENOSYS. Some functions are actually named | |
11665 | something starting with __ and the normal name is an alias. */ | |
11666 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11667 | choke me | |
11668 | #else | |
e694c22c | 11669 | $ac_func(); |
afc31813 VZ |
11670 | #endif |
11671 | ||
10f2d63a VZ |
11672 | ; return 0; } |
11673 | EOF | |
b12915c1 | 11674 | if { (eval echo configure:11675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a | 11675 | rm -rf conftest* |
afc31813 | 11676 | eval "ac_cv_func_$ac_func=yes" |
10f2d63a VZ |
11677 | else |
11678 | echo "configure: failed program was:" >&5 | |
11679 | cat conftest.$ac_ext >&5 | |
11680 | rm -rf conftest* | |
afc31813 VZ |
11681 | eval "ac_cv_func_$ac_func=no" |
11682 | fi | |
11683 | rm -f conftest* | |
11684 | fi | |
11685 | ||
11686 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11687 | echo "$ac_t""yes" 1>&6 | |
11688 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11689 | cat >> confdefs.h <<EOF | |
11690 | #define $ac_tr_func 1 | |
11691 | EOF | |
0470b1e6 | 11692 | break |
afc31813 VZ |
11693 | else |
11694 | echo "$ac_t""no" 1>&6 | |
11695 | fi | |
11696 | done | |
11697 | ||
11698 | ||
0470b1e6 VZ |
11699 | if test "$ac_cv_func_localtime" = "yes"; then |
11700 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
b12915c1 | 11701 | echo "configure:11702: checking for tm_gmtoff in struct tm" >&5 |
0470b1e6 VZ |
11702 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
11703 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11704 | else | |
11705 | ||
11706 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 11707 | #line 11708 "configure" |
0470b1e6 VZ |
11708 | #include "confdefs.h" |
11709 | ||
11710 | #include <time.h> | |
11711 | ||
11712 | int main() { | |
11713 | ||
11714 | struct tm tm; | |
11715 | tm.tm_gmtoff++; | |
11716 | ||
11717 | ; return 0; } | |
11718 | EOF | |
b12915c1 | 11719 | if { (eval echo configure:11720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0470b1e6 VZ |
11720 | rm -rf conftest* |
11721 | ||
f03a98d8 | 11722 | wx_cv_struct_tm_has_gmtoff=yes |
0470b1e6 VZ |
11723 | cat >> confdefs.h <<\EOF |
11724 | #define WX_GMTOFF_IN_TM 1 | |
11725 | EOF | |
11726 | ||
11727 | ||
11728 | else | |
11729 | echo "configure: failed program was:" >&5 | |
11730 | cat conftest.$ac_ext >&5 | |
11731 | rm -rf conftest* | |
11732 | wx_cv_struct_tm_has_gmtoff=no | |
11733 | ||
11734 | fi | |
11735 | rm -f conftest* | |
11736 | ||
11737 | fi | |
11738 | ||
11739 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
11740 | elif test "$ac_cv_func_gettimeofday" = "yes"; then | |
afc31813 | 11741 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 |
b12915c1 | 11742 | echo "configure:11743: checking whether gettimeofday takes two arguments" >&5 |
afc31813 VZ |
11743 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
11744 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11745 | else | |
11746 | ||
11747 | ||
11748 | ac_ext=C | |
11749 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11750 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11751 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11752 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11753 | cross_compiling=$ac_cv_prog_cxx_cross | |
11754 | ||
11755 | ||
11756 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 11757 | #line 11758 "configure" |
10f2d63a | 11758 | #include "confdefs.h" |
afc31813 VZ |
11759 | |
11760 | #include <sys/time.h> | |
11761 | #include <unistd.h> | |
11762 | ||
10f2d63a | 11763 | int main() { |
afc31813 VZ |
11764 | |
11765 | struct timeval tv; | |
11766 | struct timezone tz; | |
11767 | gettimeofday(&tv, &tz); | |
11768 | ||
10f2d63a VZ |
11769 | ; return 0; } |
11770 | EOF | |
b12915c1 | 11771 | if { (eval echo configure:11772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a | 11772 | rm -rf conftest* |
afc31813 | 11773 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a VZ |
11774 | else |
11775 | echo "configure: failed program was:" >&5 | |
11776 | cat conftest.$ac_ext >&5 | |
11777 | rm -rf conftest* | |
11778 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 11779 | #line 11780 "configure" |
10f2d63a | 11780 | #include "confdefs.h" |
afc31813 VZ |
11781 | |
11782 | #include <sys/time.h> | |
11783 | #include <unistd.h> | |
11784 | ||
10f2d63a | 11785 | int main() { |
afc31813 VZ |
11786 | |
11787 | struct timeval tv; | |
11788 | gettimeofday(&tv); | |
11789 | ||
10f2d63a VZ |
11790 | ; return 0; } |
11791 | EOF | |
b12915c1 | 11792 | if { (eval echo configure:11793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a | 11793 | rm -rf conftest* |
afc31813 | 11794 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a VZ |
11795 | else |
11796 | echo "configure: failed program was:" >&5 | |
11797 | cat conftest.$ac_ext >&5 | |
11798 | rm -rf conftest* | |
afc31813 VZ |
11799 | wx_cv_func_gettimeofday_has_2_args=unknown |
11800 | ||
10f2d63a VZ |
11801 | fi |
11802 | rm -f conftest* | |
afc31813 | 11803 | |
10f2d63a VZ |
11804 | fi |
11805 | rm -f conftest* | |
afc31813 | 11806 | ac_ext=c |
10f2d63a VZ |
11807 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
11808 | ac_cpp='$CPP $CPPFLAGS' | |
11809 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11810 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11811 | cross_compiling=$ac_cv_prog_cc_cross | |
11812 | ||
afc31813 VZ |
11813 | |
11814 | fi | |
11815 | ||
11816 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 11817 | |
afc31813 VZ |
11818 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
11819 | cat >> confdefs.h <<\EOF | |
11820 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
11821 | EOF | |
11822 | ||
11823 | fi | |
11824 | fi | |
11825 | ||
11826 | cat >> confdefs.h <<\EOF | |
11827 | #define wxUSE_TIMEDATE 1 | |
11828 | EOF | |
11829 | ||
11830 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
11831 | fi | |
11832 | ||
11833 | ||
11834 | if test "$wxUSE_SOCKETS" = "yes"; then | |
c63c7106 | 11835 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
b12915c1 | 11836 | echo "configure:11837: checking for socket" >&5 |
c63c7106 VZ |
11837 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
11838 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11839 | else | |
11840 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 11841 | #line 11842 "configure" |
c63c7106 VZ |
11842 | #include "confdefs.h" |
11843 | /* System header to define __stub macros and hopefully few prototypes, | |
11844 | which can conflict with char socket(); below. */ | |
11845 | #include <assert.h> | |
11846 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11847 | /* We use char because int might match the return type of a gcc2 | |
11848 | builtin and then its argument prototype would still apply. */ | |
11849 | char socket(); | |
11850 | ||
11851 | int main() { | |
11852 | ||
11853 | /* The GNU C library defines this for functions which it implements | |
11854 | to always fail with ENOSYS. Some functions are actually named | |
11855 | something starting with __ and the normal name is an alias. */ | |
11856 | #if defined (__stub_socket) || defined (__stub___socket) | |
11857 | choke me | |
11858 | #else | |
e694c22c | 11859 | socket(); |
c63c7106 VZ |
11860 | #endif |
11861 | ||
11862 | ; return 0; } | |
11863 | EOF | |
b12915c1 | 11864 | if { (eval echo configure:11865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c63c7106 VZ |
11865 | rm -rf conftest* |
11866 | eval "ac_cv_func_socket=yes" | |
11867 | else | |
11868 | echo "configure: failed program was:" >&5 | |
11869 | cat conftest.$ac_ext >&5 | |
11870 | rm -rf conftest* | |
11871 | eval "ac_cv_func_socket=no" | |
11872 | fi | |
11873 | rm -f conftest* | |
11874 | fi | |
11875 | ||
11876 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
11877 | echo "$ac_t""yes" 1>&6 | |
11878 | : | |
11879 | else | |
11880 | echo "$ac_t""no" 1>&6 | |
11881 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
b12915c1 | 11882 | echo "configure:11883: checking for socket in -lsocket" >&5 |
c63c7106 VZ |
11883 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
11884 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11885 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11886 | else | |
11887 | ac_save_LIBS="$LIBS" | |
11888 | LIBS="-lsocket $LIBS" | |
11889 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 11890 | #line 11891 "configure" |
c63c7106 VZ |
11891 | #include "confdefs.h" |
11892 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11893 | /* We use char because int might match the return type of a gcc2 | |
11894 | builtin and then its argument prototype would still apply. */ | |
11895 | char socket(); | |
11896 | ||
11897 | int main() { | |
11898 | socket() | |
11899 | ; return 0; } | |
11900 | EOF | |
b12915c1 | 11901 | if { (eval echo configure:11902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c63c7106 VZ |
11902 | rm -rf conftest* |
11903 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11904 | else | |
11905 | echo "configure: failed program was:" >&5 | |
11906 | cat conftest.$ac_ext >&5 | |
11907 | rm -rf conftest* | |
11908 | eval "ac_cv_lib_$ac_lib_var=no" | |
11909 | fi | |
11910 | rm -f conftest* | |
11911 | LIBS="$ac_save_LIBS" | |
11912 | ||
11913 | fi | |
11914 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11915 | echo "$ac_t""yes" 1>&6 | |
11916 | INET_LINK="$INET_LINK -lsocket" | |
c63c7106 VZ |
11917 | else |
11918 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
11919 | |
11920 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 | |
11921 | wxUSE_SOCKETS=no | |
11922 | ||
11923 | ||
c63c7106 VZ |
11924 | fi |
11925 | ||
11926 | ||
11927 | fi | |
11928 | ||
10f2d63a VZ |
11929 | fi |
11930 | ||
afc31813 VZ |
11931 | if test "$wxUSE_SOCKETS" = "yes" ; then |
11932 | ||
11933 | ac_ext=C | |
11934 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11935 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11936 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11937 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11938 | cross_compiling=$ac_cv_prog_cxx_cross | |
11939 | ||
11940 | echo $ac_n "checking the type of the third argument of getsockname""... $ac_c" 1>&6 | |
b12915c1 | 11941 | echo "configure:11942: checking the type of the third argument of getsockname" >&5 |
afc31813 | 11942 | cat > conftest.$ac_ext <<EOF |
b12915c1 | 11943 | #line 11944 "configure" |
afc31813 VZ |
11944 | #include "confdefs.h" |
11945 | #include <sys/socket.h> | |
11946 | int main() { | |
11947 | socklen_t len; getsockname(0, 0, &len); | |
11948 | ; return 0; } | |
11949 | EOF | |
b12915c1 | 11950 | if { (eval echo configure:11951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
afc31813 VZ |
11951 | rm -rf conftest* |
11952 | cat >> confdefs.h <<\EOF | |
11953 | #define SOCKLEN_T socklen_t | |
11954 | EOF | |
11955 | echo "$ac_t""socklen_t" 1>&6 | |
11956 | else | |
11957 | echo "configure: failed program was:" >&5 | |
11958 | cat conftest.$ac_ext >&5 | |
11959 | rm -rf conftest* | |
11960 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 11961 | #line 11962 "configure" |
afc31813 VZ |
11962 | #include "confdefs.h" |
11963 | #include <sys/socket.h> | |
11964 | int main() { | |
11965 | size_t len; getsockname(0, 0, &len); | |
11966 | ; return 0; } | |
11967 | EOF | |
b12915c1 | 11968 | if { (eval echo configure:11969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
afc31813 VZ |
11969 | rm -rf conftest* |
11970 | cat >> confdefs.h <<\EOF | |
11971 | #define SOCKLEN_T size_t | |
11972 | EOF | |
11973 | echo "$ac_t""size_t" 1>&6 | |
11974 | else | |
11975 | echo "configure: failed program was:" >&5 | |
11976 | cat conftest.$ac_ext >&5 | |
11977 | rm -rf conftest* | |
11978 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 11979 | #line 11980 "configure" |
afc31813 VZ |
11980 | #include "confdefs.h" |
11981 | #include <sys/socket.h> | |
11982 | int main() { | |
11983 | int len; getsockname(0, 0, &len); | |
11984 | ; return 0; } | |
11985 | EOF | |
b12915c1 | 11986 | if { (eval echo configure:11987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
afc31813 VZ |
11987 | rm -rf conftest* |
11988 | cat >> confdefs.h <<\EOF | |
11989 | #define SOCKLEN_T int | |
11990 | EOF | |
11991 | echo "$ac_t""int" 1>&6 | |
11992 | else | |
11993 | echo "configure: failed program was:" >&5 | |
11994 | cat conftest.$ac_ext >&5 | |
11995 | rm -rf conftest* | |
11996 | echo "$ac_t""unknown" 1>&6 | |
11997 | ||
11998 | fi | |
11999 | rm -f conftest* | |
12000 | ||
12001 | fi | |
12002 | rm -f conftest* | |
12003 | ||
12004 | fi | |
12005 | rm -f conftest* | |
12006 | ac_ext=c | |
12007 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
12008 | ac_cpp='$CPP $CPPFLAGS' | |
12009 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12010 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12011 | cross_compiling=$ac_cv_prog_cc_cross | |
12012 | ||
12013 | ||
12014 | cat >> confdefs.h <<\EOF | |
12015 | #define wxUSE_SOCKETS 1 | |
12016 | EOF | |
12017 | ||
12018 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wxsocket" | |
12019 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol" | |
12020 | fi | |
12021 | ||
10f2d63a VZ |
12022 | |
12023 | if test "$wxUSE_JOYSTICK" = 1; then | |
12024 | for ac_hdr in linux/joystick.h | |
12025 | do | |
12026 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
12027 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b12915c1 | 12028 | echo "configure:12029: checking for $ac_hdr" >&5 |
10f2d63a VZ |
12029 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12030 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12031 | else | |
12032 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 12033 | #line 12034 "configure" |
10f2d63a VZ |
12034 | #include "confdefs.h" |
12035 | #include <$ac_hdr> | |
12036 | EOF | |
12037 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b12915c1 | 12038 | { (eval echo configure:12039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
12039 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12040 | if test -z "$ac_err"; then | |
12041 | rm -rf conftest* | |
12042 | eval "ac_cv_header_$ac_safe=yes" | |
12043 | else | |
12044 | echo "$ac_err" >&5 | |
12045 | echo "configure: failed program was:" >&5 | |
12046 | cat conftest.$ac_ext >&5 | |
12047 | rm -rf conftest* | |
12048 | eval "ac_cv_header_$ac_safe=no" | |
12049 | fi | |
12050 | rm -f conftest* | |
12051 | fi | |
12052 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12053 | echo "$ac_t""yes" 1>&6 | |
12054 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12055 | cat >> confdefs.h <<EOF | |
12056 | #define $ac_tr_hdr 1 | |
12057 | EOF | |
12058 | ||
12059 | else | |
12060 | echo "$ac_t""no" 1>&6 | |
12061 | fi | |
12062 | done | |
12063 | ||
12064 | if test "$ac_cv_header_linux_joystick_h" = "yes"; then | |
12065 | cat >> confdefs.h <<\EOF | |
12066 | #define wxUSE_JOYSTICK 1 | |
12067 | EOF | |
12068 | ||
12069 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
12070 | fi | |
12071 | fi | |
12072 | ||
12073 | ||
12074 | HAVE_DL_FUNCS=0 | |
12075 | HAVE_SHL_FUNCS=0 | |
12076 | if test "$wxUSE_DYNLIB_CLASS" = "yes"; then | |
12077 | for ac_func in dlopen | |
12078 | do | |
12079 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
b12915c1 | 12080 | echo "configure:12081: checking for $ac_func" >&5 |
10f2d63a VZ |
12081 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12082 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12083 | else | |
12084 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 12085 | #line 12086 "configure" |
10f2d63a VZ |
12086 | #include "confdefs.h" |
12087 | /* System header to define __stub macros and hopefully few prototypes, | |
12088 | which can conflict with char $ac_func(); below. */ | |
12089 | #include <assert.h> | |
12090 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12091 | /* We use char because int might match the return type of a gcc2 | |
12092 | builtin and then its argument prototype would still apply. */ | |
12093 | char $ac_func(); | |
12094 | ||
12095 | int main() { | |
12096 | ||
12097 | /* The GNU C library defines this for functions which it implements | |
12098 | to always fail with ENOSYS. Some functions are actually named | |
12099 | something starting with __ and the normal name is an alias. */ | |
12100 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12101 | choke me | |
12102 | #else | |
e694c22c | 12103 | $ac_func(); |
10f2d63a VZ |
12104 | #endif |
12105 | ||
12106 | ; return 0; } | |
12107 | EOF | |
b12915c1 | 12108 | if { (eval echo configure:12109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
12109 | rm -rf conftest* |
12110 | eval "ac_cv_func_$ac_func=yes" | |
12111 | else | |
12112 | echo "configure: failed program was:" >&5 | |
12113 | cat conftest.$ac_ext >&5 | |
12114 | rm -rf conftest* | |
12115 | eval "ac_cv_func_$ac_func=no" | |
12116 | fi | |
12117 | rm -f conftest* | |
12118 | fi | |
12119 | ||
12120 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12121 | echo "$ac_t""yes" 1>&6 | |
12122 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12123 | cat >> confdefs.h <<EOF | |
12124 | #define $ac_tr_func 1 | |
12125 | EOF | |
12126 | ||
12127 | cat >> confdefs.h <<\EOF | |
12128 | #define HAVE_DLOPEN 1 | |
12129 | EOF | |
12130 | ||
12131 | HAVE_DL_FUNCS=1 | |
12132 | ||
12133 | else | |
12134 | echo "$ac_t""no" 1>&6 | |
12135 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
b12915c1 | 12136 | echo "configure:12137: checking for dlopen in -ldl" >&5 |
10f2d63a VZ |
12137 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
12138 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12139 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12140 | else | |
12141 | ac_save_LIBS="$LIBS" | |
12142 | LIBS="-ldl $LIBS" | |
12143 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 12144 | #line 12145 "configure" |
10f2d63a VZ |
12145 | #include "confdefs.h" |
12146 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12147 | /* We use char because int might match the return type of a gcc2 | |
12148 | builtin and then its argument prototype would still apply. */ | |
12149 | char dlopen(); | |
12150 | ||
12151 | int main() { | |
12152 | dlopen() | |
12153 | ; return 0; } | |
12154 | EOF | |
b12915c1 | 12155 | if { (eval echo configure:12156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
12156 | rm -rf conftest* |
12157 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12158 | else | |
12159 | echo "configure: failed program was:" >&5 | |
12160 | cat conftest.$ac_ext >&5 | |
12161 | rm -rf conftest* | |
12162 | eval "ac_cv_lib_$ac_lib_var=no" | |
12163 | fi | |
12164 | rm -f conftest* | |
12165 | LIBS="$ac_save_LIBS" | |
12166 | ||
12167 | fi | |
12168 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12169 | echo "$ac_t""yes" 1>&6 | |
12170 | ||
12171 | cat >> confdefs.h <<\EOF | |
12172 | #define HAVE_DLOPEN 1 | |
12173 | EOF | |
12174 | ||
12175 | HAVE_DL_FUNCS=1 | |
12176 | LIBS="$LIBS -ldl" | |
12177 | ||
12178 | else | |
12179 | echo "$ac_t""no" 1>&6 | |
12180 | ||
12181 | for ac_func in shl_load | |
12182 | do | |
12183 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
b12915c1 | 12184 | echo "configure:12185: checking for $ac_func" >&5 |
10f2d63a VZ |
12185 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12186 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12187 | else | |
12188 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 12189 | #line 12190 "configure" |
10f2d63a VZ |
12190 | #include "confdefs.h" |
12191 | /* System header to define __stub macros and hopefully few prototypes, | |
12192 | which can conflict with char $ac_func(); below. */ | |
12193 | #include <assert.h> | |
12194 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12195 | /* We use char because int might match the return type of a gcc2 | |
12196 | builtin and then its argument prototype would still apply. */ | |
12197 | char $ac_func(); | |
12198 | ||
12199 | int main() { | |
12200 | ||
12201 | /* The GNU C library defines this for functions which it implements | |
12202 | to always fail with ENOSYS. Some functions are actually named | |
12203 | something starting with __ and the normal name is an alias. */ | |
12204 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12205 | choke me | |
12206 | #else | |
e694c22c | 12207 | $ac_func(); |
10f2d63a VZ |
12208 | #endif |
12209 | ||
12210 | ; return 0; } | |
12211 | EOF | |
b12915c1 | 12212 | if { (eval echo configure:12213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
12213 | rm -rf conftest* |
12214 | eval "ac_cv_func_$ac_func=yes" | |
12215 | else | |
12216 | echo "configure: failed program was:" >&5 | |
12217 | cat conftest.$ac_ext >&5 | |
12218 | rm -rf conftest* | |
12219 | eval "ac_cv_func_$ac_func=no" | |
12220 | fi | |
12221 | rm -f conftest* | |
12222 | fi | |
12223 | ||
12224 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12225 | echo "$ac_t""yes" 1>&6 | |
12226 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12227 | cat >> confdefs.h <<EOF | |
12228 | #define $ac_tr_func 1 | |
12229 | EOF | |
12230 | ||
12231 | cat >> confdefs.h <<\EOF | |
12232 | #define HAVE_SHL_LOAD 1 | |
12233 | EOF | |
12234 | ||
12235 | HAVE_SHL_FUNCS=1 | |
12236 | ||
12237 | else | |
12238 | echo "$ac_t""no" 1>&6 | |
12239 | fi | |
12240 | done | |
12241 | ||
12242 | ||
12243 | fi | |
12244 | ||
12245 | ||
12246 | fi | |
12247 | done | |
12248 | ||
12249 | ||
12250 | if test "$HAVE_DL_FUNCS" = 0; then | |
12251 | if test "$HAVE_SHL_FUNCS" = 0; then | |
12252 | if test "$USE_UNIX" = 1; then | |
b12915c1 | 12253 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 |
10f2d63a VZ |
12254 | wxUSE_DYNLIB_CLASS=no |
12255 | else | |
b12915c1 | 12256 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 |
10f2d63a VZ |
12257 | fi |
12258 | fi | |
12259 | fi | |
12260 | fi | |
12261 | ||
12262 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
b12915c1 | 12263 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
12264 | #define wxUSE_DYNLIB_CLASS 1 |
12265 | EOF | |
12266 | ||
b12915c1 VZ |
12267 | else |
12268 | wxUSE_ODBC=no | |
12269 | wxUSE_SERIAL=no | |
10f2d63a VZ |
12270 | fi |
12271 | ||
12272 | ||
12273 | if test "$wxUSE_UNICODE" = "yes" ; then | |
12274 | cat >> confdefs.h <<\EOF | |
12275 | #define wxUSE_UNICODE 1 | |
12276 | EOF | |
12277 | ||
12278 | fi | |
12279 | ||
12280 | if test "$wxUSE_WCSRTOMBS" = "yes" ; then | |
12281 | cat >> confdefs.h <<\EOF | |
12282 | #define wxUSE_WCSRTOMBS 1 | |
12283 | EOF | |
12284 | ||
12285 | fi | |
12286 | ||
12287 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
12288 | cat >> confdefs.h <<\EOF | |
12289 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
12290 | EOF | |
12291 | ||
12292 | fi | |
12293 | ||
12294 | ||
b12915c1 VZ |
12295 | if test "$wxUSE_SERIAL" = "yes" ; then |
12296 | cat >> confdefs.h <<\EOF | |
12297 | #define wxUSE_SERIAL 1 | |
12298 | EOF | |
12299 | ||
12300 | fi | |
12301 | ||
12302 | ||
10f2d63a VZ |
12303 | IODBC_C_SRC="" |
12304 | if test "$wxUSE_ODBC" = "yes" ; then | |
12305 | cat >> confdefs.h <<\EOF | |
12306 | #define wxUSE_ODBC 1 | |
12307 | EOF | |
12308 | ||
12309 | WXODBCFLAG="-D_IODBC_" | |
12310 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
12311 | IODBCOBJS="\$(IODBC_OBJS)" | |
12312 | else | |
12313 | IODBCOBJS= | |
12314 | fi | |
12315 | ||
12316 | ||
12317 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
12318 | cat >> confdefs.h <<\EOF | |
12319 | #define wxUSE_POSTSCRIPT 1 | |
12320 | EOF | |
12321 | ||
12322 | fi | |
12323 | ||
12324 | cat >> confdefs.h <<\EOF | |
12325 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
12326 | EOF | |
12327 | ||
12328 | ||
12329 | cat >> confdefs.h <<\EOF | |
12330 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
12331 | EOF | |
12332 | ||
12333 | ||
12334 | ||
12335 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
12336 | cat >> confdefs.h <<\EOF | |
12337 | #define wxUSE_CONSTRAINTS 1 | |
12338 | EOF | |
12339 | ||
12340 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
12341 | fi | |
12342 | ||
12343 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
12344 | cat >> confdefs.h <<\EOF | |
12345 | #define wxUSE_MDI_ARCHITECTURE 1 | |
12346 | EOF | |
12347 | ||
12348 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" | |
12349 | fi | |
12350 | ||
12351 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
12352 | cat >> confdefs.h <<\EOF | |
12353 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
12354 | EOF | |
12355 | ||
12356 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
12357 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
12358 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
12359 | fi | |
12360 | fi | |
12361 | ||
12362 | if test "$wxUSE_HELP" = "yes"; then | |
12363 | cat >> confdefs.h <<\EOF | |
12364 | #define wxUSE_HELP 1 | |
12365 | EOF | |
12366 | ||
12367 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
12368 | fi | |
12369 | ||
12370 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
12371 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
12372 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 | |
12373 | else | |
12374 | cat >> confdefs.h <<\EOF | |
12375 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
12376 | EOF | |
12377 | ||
12378 | fi | |
12379 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
12380 | fi | |
12381 | ||
12382 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
12383 | cat >> confdefs.h <<\EOF | |
12384 | #define wxUSE_PROLOGIO 1 | |
12385 | EOF | |
12386 | ||
12387 | fi | |
12388 | ||
12389 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
12390 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
12391 | cat >> confdefs.h <<\EOF | |
12392 | #define wxUSE_RESOURCES 1 | |
12393 | EOF | |
12394 | ||
12395 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" | |
12396 | else | |
12397 | echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2 | |
12398 | fi | |
12399 | fi | |
12400 | ||
12401 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
12402 | cat >> confdefs.h <<\EOF | |
12403 | #define wxUSE_X_RESOURCES 1 | |
12404 | EOF | |
12405 | ||
12406 | fi | |
12407 | ||
12408 | ||
12409 | if test "$wxUSE_IPC" = "yes"; then | |
12410 | cat >> confdefs.h <<\EOF | |
12411 | #define wxUSE_IPC 1 | |
12412 | EOF | |
12413 | ||
12414 | fi | |
12415 | ||
12416 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
12417 | cat >> confdefs.h <<\EOF | |
12418 | #define wxUSE_CLIPBOARD 1 | |
12419 | EOF | |
12420 | ||
12421 | fi | |
12422 | ||
12423 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
12424 | if test "$wxUSE_GTK" = 1; then | |
12425 | if test "$WXGTK12" != 1; then | |
12426 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2 | |
12427 | wxUSE_DRAG_AND_DROP=no | |
12428 | fi | |
12429 | fi | |
12430 | ||
12431 | if test "$wxUSE_MOTIF" = 1; then | |
12432 | echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2 | |
12433 | wxUSE_DRAG_AND_DROP=no | |
12434 | fi | |
12435 | ||
12436 | if test "$USE_WIN32" = 1; then | |
12437 | for ac_hdr in ole2.h | |
12438 | do | |
12439 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
12440 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
b12915c1 | 12441 | echo "configure:12442: checking for $ac_hdr" >&5 |
10f2d63a VZ |
12442 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12443 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12444 | else | |
12445 | cat > conftest.$ac_ext <<EOF | |
b12915c1 | 12446 | #line 12447 "configure" |
10f2d63a VZ |
12447 | #include "confdefs.h" |
12448 | #include <$ac_hdr> | |
12449 | EOF | |
12450 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
b12915c1 | 12451 | { (eval echo configure:12452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
12452 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12453 | if test -z "$ac_err"; then | |
12454 | rm -rf conftest* | |
12455 | eval "ac_cv_header_$ac_safe=yes" | |
12456 | else | |
12457 | echo "$ac_err" >&5 | |
12458 | echo "configure: failed program was:" >&5 | |
12459 | cat conftest.$ac_ext >&5 | |
12460 | rm -rf conftest* | |
12461 | eval "ac_cv_header_$ac_safe=no" | |
12462 | fi | |
12463 | rm -f conftest* | |
12464 | fi | |
12465 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12466 | echo "$ac_t""yes" 1>&6 | |
12467 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12468 | cat >> confdefs.h <<EOF | |
12469 | #define $ac_tr_hdr 1 | |
12470 | EOF | |
12471 | ||
12472 | else | |
12473 | echo "$ac_t""no" 1>&6 | |
12474 | fi | |
12475 | done | |
12476 | ||
12477 | if test "x$HAVE_OLE2_H" = x ; then | |
12478 | echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2 | |
12479 | wxUSE_DRAG_AND_DROP=no | |
12480 | fi | |
12481 | fi | |
12482 | ||
12483 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
12484 | cat >> confdefs.h <<\EOF | |
12485 | #define wxUSE_DRAG_AND_DROP 1 | |
12486 | EOF | |
12487 | ||
12488 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
12489 | fi | |
12490 | ||
12491 | fi | |
12492 | ||
12493 | if test "$wxUSE_SPLINES" = "yes" ; then | |
12494 | cat >> confdefs.h <<\EOF | |
12495 | #define wxUSE_SPLINES 1 | |
12496 | EOF | |
12497 | ||
12498 | fi | |
12499 | ||
12500 | ||
12501 | if test "$wxUSE_ACCEL" = "yes"; then | |
12502 | cat >> confdefs.h <<\EOF | |
12503 | #define wxUSE_ACCEL 1 | |
12504 | EOF | |
12505 | ||
12506 | fi | |
12507 | ||
12508 | if test "$wxUSE_CARET" = "yes"; then | |
12509 | cat >> confdefs.h <<\EOF | |
12510 | #define wxUSE_CARET 1 | |
12511 | EOF | |
12512 | ||
12513 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
12514 | fi | |
12515 | ||
12516 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
12517 | cat >> confdefs.h <<\EOF | |
12518 | #define wxUSE_COMBOBOX 1 | |
12519 | EOF | |
12520 | ||
12521 | fi | |
12522 | ||
12523 | if test "$wxUSE_CHOICE" = "yes"; then | |
12524 | cat >> confdefs.h <<\EOF | |
12525 | #define wxUSE_CHOICE 1 | |
12526 | EOF | |
12527 | ||
12528 | fi | |
12529 | ||
12530 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
12531 | cat >> confdefs.h <<\EOF | |
12532 | #define wxUSE_BMPBUTTON 1 | |
12533 | EOF | |
12534 | ||
12535 | fi | |
12536 | ||
12537 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
12538 | cat >> confdefs.h <<\EOF | |
12539 | #define wxUSE_CHECKBOX 1 | |
12540 | EOF | |
12541 | ||
12542 | fi | |
12543 | ||
12544 | if test "$wxUSE_CHECKLST" = "yes"; then | |
12545 | cat >> confdefs.h <<\EOF | |
12546 | #define wxUSE_CHECKLISTBOX 1 | |
12547 | EOF | |
12548 | ||
12549 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
12550 | fi | |
12551 | ||
12552 | if test "$wxUSE_GAUGE" = "yes"; then | |
12553 | cat >> confdefs.h <<\EOF | |
12554 | #define wxUSE_GAUGE 1 | |
12555 | EOF | |
12556 | ||
12557 | fi | |
12558 | ||
12559 | if test "$wxUSE_GRID" = "yes"; then | |
12560 | cat >> confdefs.h <<\EOF | |
12561 | #define wxUSE_GRID 1 | |
12562 | EOF | |
12563 | ||
12564 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
12565 | fi | |
12566 | ||
12567 | if test "$wxUSE_NEW_GRID" = "yes"; then | |
12568 | cat >> confdefs.h <<\EOF | |
12569 | #define wxUSE_NEW_GRID 1 | |
12570 | EOF | |
12571 | ||
12572 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" | |
12573 | fi | |
12574 | ||
12575 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
12576 | cat >> confdefs.h <<\EOF | |
12577 | #define wxUSE_IMAGLIST 1 | |
12578 | EOF | |
12579 | ||
12580 | fi | |
12581 | ||
12582 | if test "$wxUSE_LISTBOX" = "yes"; then | |
12583 | cat >> confdefs.h <<\EOF | |
12584 | #define wxUSE_LISTBOX 1 | |
12585 | EOF | |
12586 | ||
12587 | fi | |
12588 | ||
12589 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
12590 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
12591 | cat >> confdefs.h <<\EOF | |
12592 | #define wxUSE_LISTCTRL 1 | |
12593 | EOF | |
12594 | ||
12595 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
12596 | else | |
12597 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 | |
12598 | fi | |
12599 | fi | |
12600 | ||
12601 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
12602 | cat >> confdefs.h <<\EOF | |
12603 | #define wxUSE_NOTEBOOK 1 | |
12604 | EOF | |
12605 | ||
12606 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
12607 | fi | |
12608 | ||
12609 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
12610 | cat >> confdefs.h <<\EOF | |
12611 | #define wxUSE_RADIOBOX 1 | |
12612 | EOF | |
12613 | ||
12614 | fi | |
12615 | ||
12616 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
12617 | cat >> confdefs.h <<\EOF | |
12618 | #define wxUSE_RADIOBTN 1 | |
12619 | EOF | |
12620 | ||
12621 | fi | |
12622 | ||
12623 | if test "$wxUSE_SASH" = "yes"; then | |
12624 | cat >> confdefs.h <<\EOF | |
12625 | #define wxUSE_SASH 1 | |
12626 | EOF | |
12627 | ||
12628 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
12629 | fi | |
12630 | ||
12631 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
12632 | cat >> confdefs.h <<\EOF | |
12633 | #define wxUSE_SCROLLBAR 1 | |
12634 | EOF | |
12635 | ||
741a9306 | 12636 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
12637 | fi |
12638 | ||
12639 | if test "$wxUSE_SLIDER" = "yes"; then | |
12640 | cat >> confdefs.h <<\EOF | |
12641 | #define wxUSE_SLIDER 1 | |
12642 | EOF | |
12643 | ||
12644 | fi | |
12645 | ||
12646 | if test "$wxUSE_SPINBTN" = "yes"; then | |
12647 | cat >> confdefs.h <<\EOF | |
12648 | #define wxUSE_SPINBTN 1 | |
12649 | EOF | |
12650 | ||
12651 | fi | |
12652 | ||
56cfaa52 RR |
12653 | if test "$wxUSE_SPINCTRL" = "yes"; then |
12654 | cat >> confdefs.h <<\EOF | |
12655 | #define wxUSE_SPINCTRL 1 | |
12656 | EOF | |
12657 | ||
12658 | fi | |
12659 | ||
10f2d63a VZ |
12660 | if test "$wxUSE_SPLITTER" = "yes"; then |
12661 | cat >> confdefs.h <<\EOF | |
12662 | #define wxUSE_SPLITTER 1 | |
12663 | EOF | |
12664 | ||
12665 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
12666 | fi | |
12667 | ||
12668 | if test "$wxUSE_STATBMP" = "yes"; then | |
12669 | cat >> confdefs.h <<\EOF | |
12670 | #define wxUSE_STATBMP 1 | |
12671 | EOF | |
12672 | ||
12673 | fi | |
12674 | ||
12675 | if test "$wxUSE_STATBOX" = "yes"; then | |
12676 | cat >> confdefs.h <<\EOF | |
12677 | #define wxUSE_STATBOX 1 | |
12678 | EOF | |
12679 | ||
12680 | fi | |
12681 | ||
12682 | if test "$wxUSE_STATLINE" = "yes"; then | |
12683 | if test "$wxUSE_WINE" = 1 ; then | |
12684 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 | |
12685 | else | |
12686 | cat >> confdefs.h <<\EOF | |
12687 | #define wxUSE_STATLINE 1 | |
12688 | EOF | |
12689 | ||
12690 | fi | |
12691 | fi | |
12692 | ||
12693 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
12694 | cat >> confdefs.h <<\EOF | |
12695 | #define wxUSE_STATUSBAR 1 | |
12696 | EOF | |
12697 | ||
12698 | fi | |
12699 | ||
12700 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
12701 | cat >> confdefs.h <<\EOF | |
12702 | #define wxUSE_TAB_DIALOG 1 | |
12703 | EOF | |
12704 | ||
12705 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
12706 | fi | |
12707 | ||
360d6699 VZ |
12708 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
12709 | cat >> confdefs.h <<\EOF | |
12710 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
12711 | EOF | |
12712 | ||
12713 | wxUSE_TOOLBAR="yes" | |
12714 | fi | |
12715 | ||
10f2d63a VZ |
12716 | if test "$wxUSE_TOOLBAR" = "yes"; then |
12717 | cat >> confdefs.h <<\EOF | |
12718 | #define wxUSE_TOOLBAR 1 | |
12719 | EOF | |
12720 | ||
360d6699 VZ |
12721 | |
12722 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
12723 | wxUSE_TOOLBAR_NATIVE="yes" | |
12724 | fi | |
12725 | ||
10f2d63a VZ |
12726 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" |
12727 | fi | |
12728 | ||
360d6699 VZ |
12729 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
12730 | cat >> confdefs.h <<\EOF | |
12731 | #define wxUSE_TOOLBAR_NATIVE 1 | |
12732 | EOF | |
12733 | ||
12734 | fi | |
12735 | ||
10f2d63a VZ |
12736 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
12737 | if test "$wxUSE_MOTIF" = 1; then | |
12738 | echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2 | |
12739 | else | |
12740 | if test "$wxUSE_WINE" = 1; then | |
12741 | echo "configure: warning: wxTooltip not supported under WINE" 1>&2 | |
12742 | else | |
12743 | cat >> confdefs.h <<\EOF | |
12744 | #define wxUSE_TOOLTIPS 1 | |
12745 | EOF | |
12746 | ||
12747 | fi | |
12748 | fi | |
12749 | fi | |
12750 | ||
12751 | if test "$wxUSE_TREECTRL" = "yes"; then | |
12752 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
12753 | cat >> confdefs.h <<\EOF | |
12754 | #define wxUSE_TREECTRL 1 | |
12755 | EOF | |
12756 | ||
12757 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
12758 | else | |
12759 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 | |
12760 | fi | |
12761 | fi | |
12762 | ||
12763 | ||
12764 | ||
12765 | if test "$wxUSE_METAFILE" = "yes"; then | |
12766 | cat >> confdefs.h <<\EOF | |
12767 | #define wxUSE_METAFILE 1 | |
12768 | EOF | |
12769 | ||
12770 | fi | |
12771 | ||
12772 | if test "$wxUSE_DIRDLG" = "yes"; then | |
12773 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
12774 | echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2 | |
12775 | else | |
12776 | if test "$wxUSE_TREECTRL" != "yes"; then | |
12777 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
12778 | else | |
12779 | cat >> confdefs.h <<\EOF | |
12780 | #define wxUSE_DIRDLG 1 | |
12781 | EOF | |
12782 | ||
12783 | fi | |
12784 | fi | |
12785 | fi | |
12786 | ||
12787 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
12788 | cat >> confdefs.h <<\EOF | |
12789 | #define wxUSE_TEXTDLG 1 | |
12790 | EOF | |
12791 | ||
12792 | fi | |
12793 | ||
12794 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
12795 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
12796 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
12797 | else | |
12798 | cat >> confdefs.h <<\EOF | |
12799 | #define wxUSE_STARTUP_TIPS 1 | |
12800 | EOF | |
12801 | ||
12802 | fi | |
12803 | fi | |
12804 | ||
12805 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
12806 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
12807 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
12808 | else | |
12809 | cat >> confdefs.h <<\EOF | |
12810 | #define wxUSE_PROGRESSDLG 1 | |
12811 | EOF | |
12812 | ||
12813 | fi | |
12814 | fi | |
12815 | ||
12816 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
12817 | cat >> confdefs.h <<\EOF | |
12818 | #define wxUSE_MINIFRAME 1 | |
12819 | EOF | |
12820 | ||
12821 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
12822 | fi | |
12823 | ||
12824 | if test "$wxUSE_HTML" = "yes"; then | |
12825 | cat >> confdefs.h <<\EOF | |
12826 | #define wxUSE_HTML 1 | |
12827 | EOF | |
12828 | ||
12829 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
12830 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html" | |
12831 | fi | |
12832 | ||
12833 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
12834 | cat >> confdefs.h <<\EOF | |
12835 | #define wxUSE_VALIDATORS 1 | |
12836 | EOF | |
12837 | ||
12838 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
12839 | fi | |
12840 | ||
12841 | if test "$wxUSE_GIF" = "yes" ; then | |
12842 | cat >> confdefs.h <<\EOF | |
12843 | #define wxUSE_GIF 1 | |
12844 | EOF | |
12845 | ||
12846 | fi | |
12847 | ||
12848 | if test "$wxUSE_PCX" = "yes" ; then | |
12849 | cat >> confdefs.h <<\EOF | |
12850 | #define wxUSE_PCX 1 | |
12851 | EOF | |
12852 | ||
12853 | fi | |
12854 | ||
12855 | if test "$wxUSE_PNM" = "yes" ; then | |
12856 | cat >> confdefs.h <<\EOF | |
12857 | #define wxUSE_PNM 1 | |
12858 | EOF | |
12859 | ||
12860 | fi | |
12861 | ||
12862 | ||
aaa37c0d VZ |
12863 | OSINFO=`uname -s -r -m` |
12864 | OSINFO="\"$OSINFO\"" | |
12865 | cat >> confdefs.h <<EOF | |
12866 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
12867 | EOF | |
12868 | ||
12869 | ||
12870 | ||
10f2d63a VZ |
12871 | GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $LIBPNG_LINK $ZLIB_LINK $TOOLKIT_LINK" |
12872 | ||
c63c7106 | 12873 | EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK" |
10f2d63a VZ |
12874 | if test "$wxUSE_GUI" = "yes"; then |
12875 | EXTRA_LIBS="$EXTRA_LIBS $GUILIBS" | |
12876 | fi | |
12877 | ||
12878 | LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS" | |
12879 | ||
c7a2bf27 | 12880 | INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE" |
10f2d63a VZ |
12881 | |
12882 | if test "$GXX" = yes ; then | |
12883 | CXXWARNINGS="-Wall" | |
12884 | fi | |
12885 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" | |
12886 | ||
12887 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS | sed 's/ \\+/ /g'` | |
12888 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
12889 | ||
e694c22c VZ |
12890 | LDFLAGS="$LDFLAGS $PROFILE" |
12891 | ||
10f2d63a VZ |
12892 | if test "$wxUSE_GUI" = "yes"; then |
12893 | ||
12894 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS bombs controls dialogs drawing dynamic \ | |
741a9306 | 12895 | font forty fractal image minimal richedit wxpoem" |
b12915c1 VZ |
12896 | |
12897 | EXTRADEFS="-DwxINSTALL_PREFIX=\"$prefix\"" | |
10f2d63a VZ |
12898 | else |
12899 | SAMPLES_SUBDIRS="" | |
b12915c1 | 12900 | EXTRADEFS= |
10f2d63a VZ |
12901 | fi |
12902 | ||
12903 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '`" | |
12904 | ||
12905 | ||
12906 | ||
12907 | ||
12908 | ||
12909 | ||
12910 | ||
12911 | ||
12912 | ||
12913 | ||
12914 | ||
12915 | ||
12916 | ||
12917 | ||
12918 | ||
12919 | ||
12920 | ||
12921 | ||
12922 | ||
12923 | ||
12924 | ||
12925 | ||
12926 | ||
12927 | ||
12928 | ||
12929 | ||
12930 | ||
12931 | ||
12932 | ||
12933 | ||
12934 | ||
12935 | ||
12936 | ||
12937 | ||
12938 | ||
12939 | ||
12940 | ||
12941 | ||
12942 | ||
12943 | ||
12944 | ||
12945 | ||
12946 | ||
12947 | ||
12948 | ||
12949 | ||
12950 | ||
12951 | ||
12952 | ||
12953 | ||
12954 | ||
12955 | ||
1d62a8b4 | 12956 | |
e694c22c | 12957 | |
b12915c1 | 12958 | |
10f2d63a VZ |
12959 | |
12960 | ||
12961 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
b12915c1 | 12962 | echo "configure:12963: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
10f2d63a VZ |
12963 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
12964 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
12965 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12966 | else | |
12967 | cat > conftestmake <<\EOF | |
12968 | all: | |
12969 | @echo 'ac_maketemp="${MAKE}"' | |
12970 | EOF | |
12971 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
12972 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
12973 | if test -n "$ac_maketemp"; then | |
12974 | eval ac_cv_prog_make_${ac_make}_set=yes | |
12975 | else | |
12976 | eval ac_cv_prog_make_${ac_make}_set=no | |
12977 | fi | |
12978 | rm -f conftestmake | |
12979 | fi | |
12980 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
12981 | echo "$ac_t""yes" 1>&6 | |
12982 | SET_MAKE= | |
12983 | else | |
12984 | echo "$ac_t""no" 1>&6 | |
12985 | SET_MAKE="MAKE=${MAKE-make}" | |
12986 | fi | |
12987 | ||
12988 | ||
12989 | ||
12990 | ||
12991 | if test "${TOOLKIT_DIR}" = "msw" ; then | |
12992 | GL_TOOLKIT_DIR="win" | |
12993 | else | |
12994 | GL_TOOLKIT_DIR="${TOOLKIT_DIR}" | |
12995 | fi | |
12996 | ||
12997 | ||
12998 | trap '' 1 2 15 | |
12999 | cat > confcache <<\EOF | |
13000 | # This file is a shell script that caches the results of configure | |
13001 | # tests run on this system so they can be shared between configure | |
13002 | # scripts and configure runs. It is not useful on other systems. | |
13003 | # If it contains results you don't want to keep, you may remove or edit it. | |
13004 | # | |
13005 | # By default, configure uses ./config.cache as the cache file, | |
13006 | # creating it if it does not exist already. You can give configure | |
13007 | # the --cache-file=FILE option to use a different cache file; that is | |
13008 | # what configure does when it calls configure scripts in | |
13009 | # subdirectories, so they share the cache. | |
13010 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
13011 | # config.status only pays attention to the cache file if you give it the | |
13012 | # --recheck option to rerun configure. | |
13013 | # | |
13014 | EOF | |
13015 | # The following way of writing the cache mishandles newlines in values, | |
13016 | # but we know of no workaround that is simple, portable, and efficient. | |
13017 | # So, don't put newlines in cache variables' values. | |
13018 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
13019 | # and sets the high bit in the cache file unless we assign to the vars. | |
13020 | (set) 2>&1 | | |
13021 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
13022 | *ac_space=\ *) | |
13023 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
13024 | # turns \\\\ into \\, and sed turns \\ into \). | |
13025 | sed -n \ | |
13026 | -e "s/'/'\\\\''/g" \ | |
13027 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
13028 | ;; | |
13029 | *) | |
13030 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
13031 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
13032 | ;; | |
13033 | esac >> confcache | |
13034 | if cmp -s $cache_file confcache; then | |
13035 | : | |
13036 | else | |
13037 | if test -w $cache_file; then | |
13038 | echo "updating cache $cache_file" | |
13039 | cat confcache > $cache_file | |
13040 | else | |
13041 | echo "not updating unwritable cache $cache_file" | |
13042 | fi | |
13043 | fi | |
13044 | rm -f confcache | |
13045 | ||
13046 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
13047 | ||
13048 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
13049 | # Let make expand exec_prefix. | |
13050 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
13051 | ||
13052 | # Any assignment to VPATH causes Sun make to only execute | |
13053 | # the first set of double-colon rules, so remove it if not needed. | |
13054 | # If there is a colon in the path, we need to keep it. | |
13055 | if test "x$srcdir" = x.; then | |
13056 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
13057 | fi | |
13058 | ||
13059 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
13060 | ||
13061 | DEFS=-DHAVE_CONFIG_H | |
13062 | ||
13063 | # Without the "./", some shells look in PATH for config.status. | |
13064 | : ${CONFIG_STATUS=./config.status} | |
13065 | ||
13066 | echo creating $CONFIG_STATUS | |
13067 | rm -f $CONFIG_STATUS | |
13068 | cat > $CONFIG_STATUS <<EOF | |
13069 | #! /bin/sh | |
13070 | # Generated automatically by configure. | |
13071 | # Run this file to recreate the current configuration. | |
13072 | # This directory was configured as follows, | |
13073 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
13074 | # | |
13075 | # $0 $ac_configure_args | |
13076 | # | |
13077 | # Compiler output produced by configure, useful for debugging | |
13078 | # configure, is in ./config.log if it exists. | |
13079 | ||
13080 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
13081 | for ac_option | |
13082 | do | |
13083 | case "\$ac_option" in | |
13084 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
13085 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
13086 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
13087 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
e694c22c | 13088 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
10f2d63a VZ |
13089 | exit 0 ;; |
13090 | -help | --help | --hel | --he | --h) | |
13091 | echo "\$ac_cs_usage"; exit 0 ;; | |
13092 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
13093 | esac | |
13094 | done | |
13095 | ||
13096 | ac_given_srcdir=$srcdir | |
13097 | ac_given_INSTALL="$INSTALL" | |
13098 | ||
13099 | trap 'rm -fr `echo " | |
13100 | wx-config | |
13101 | src/make.env | |
13102 | src/makeprog.env | |
13103 | src/makelib.env | |
13104 | Makefile | |
13105 | samples/Makefile | |
13106 | samples/bombs/Makefile | |
13107 | samples/caret/Makefile | |
13108 | samples/checklst/Makefile | |
13109 | samples/config/Makefile | |
13110 | samples/controls/Makefile | |
b47c832e | 13111 | samples/console/Makefile |
10f2d63a VZ |
13112 | samples/db/Makefile |
13113 | samples/dialogs/Makefile | |
13114 | samples/docview/Makefile | |
13115 | samples/docvwmdi/Makefile | |
13116 | samples/dnd/Makefile | |
13117 | samples/drawing/Makefile | |
13118 | samples/forty/Makefile | |
678b92a9 | 13119 | samples/font/Makefile |
10f2d63a VZ |
13120 | samples/fractal/Makefile |
13121 | samples/image/Makefile | |
13122 | samples/internat/Makefile | |
13123 | samples/layout/Makefile | |
13124 | samples/listctrl/Makefile | |
13125 | samples/mdi/Makefile | |
13126 | samples/minifram/Makefile | |
13127 | samples/minimal/Makefile | |
13128 | samples/nettest/Makefile | |
13129 | samples/newgrid/Makefile | |
13130 | samples/notebook/Makefile | |
13131 | samples/png/Makefile | |
13132 | samples/printing/Makefile | |
13133 | samples/proplist/Makefile | |
13134 | samples/richedit/Makefile | |
13135 | samples/resource/Makefile | |
13136 | samples/sashtest/Makefile | |
13137 | samples/scroll/Makefile | |
13138 | samples/scrollsub/Makefile | |
13139 | samples/splitter/Makefile | |
13140 | samples/text/Makefile | |
13141 | samples/thread/Makefile | |
13142 | samples/toolbar/Makefile | |
13143 | samples/treectrl/Makefile | |
13144 | samples/typetest/Makefile | |
13145 | samples/validate/Makefile | |
13146 | samples/wxpoem/Makefile | |
13147 | samples/wxsocket/Makefile | |
13148 | samples/wizard/Makefile | |
13149 | samples/html/Makefile | |
13150 | samples/html/about/Makefile | |
13151 | samples/html/help/Makefile | |
13152 | samples/html/printing/Makefile | |
fc9c7c09 | 13153 | samples/html/helpview/Makefile |
10f2d63a VZ |
13154 | samples/html/test/Makefile |
13155 | samples/html/zip/Makefile | |
13156 | samples/html/virtual/Makefile | |
13157 | samples/html/widget/Makefile | |
13158 | utils/Makefile | |
13159 | utils/wxMMedia2/Makefile | |
13160 | utils/wxMMedia2/lib/Makefile | |
13161 | utils/wxMMedia2/sample/Makefile | |
13162 | utils/glcanvas/Makefile | |
13163 | utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile | |
13164 | utils/ogl/Makefile | |
13165 | utils/ogl/src/Makefile | |
13166 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
13167 | EOF | |
13168 | cat >> $CONFIG_STATUS <<EOF | |
13169 | ||
13170 | # Protect against being on the right side of a sed subst in config.status. | |
13171 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
13172 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
13173 | $ac_vpsub | |
13174 | $extrasub | |
13175 | s%@SHELL@%$SHELL%g | |
13176 | s%@CFLAGS@%$CFLAGS%g | |
13177 | s%@CPPFLAGS@%$CPPFLAGS%g | |
13178 | s%@CXXFLAGS@%$CXXFLAGS%g | |
13179 | s%@FFLAGS@%$FFLAGS%g | |
13180 | s%@DEFS@%$DEFS%g | |
13181 | s%@LDFLAGS@%$LDFLAGS%g | |
13182 | s%@LIBS@%$LIBS%g | |
13183 | s%@exec_prefix@%$exec_prefix%g | |
13184 | s%@prefix@%$prefix%g | |
13185 | s%@program_transform_name@%$program_transform_name%g | |
13186 | s%@bindir@%$bindir%g | |
13187 | s%@sbindir@%$sbindir%g | |
13188 | s%@libexecdir@%$libexecdir%g | |
13189 | s%@datadir@%$datadir%g | |
13190 | s%@sysconfdir@%$sysconfdir%g | |
13191 | s%@sharedstatedir@%$sharedstatedir%g | |
13192 | s%@localstatedir@%$localstatedir%g | |
13193 | s%@libdir@%$libdir%g | |
13194 | s%@includedir@%$includedir%g | |
13195 | s%@oldincludedir@%$oldincludedir%g | |
13196 | s%@infodir@%$infodir%g | |
13197 | s%@mandir@%$mandir%g | |
13198 | s%@host@%$host%g | |
13199 | s%@host_alias@%$host_alias%g | |
13200 | s%@host_cpu@%$host_cpu%g | |
13201 | s%@host_vendor@%$host_vendor%g | |
13202 | s%@host_os@%$host_os%g | |
13203 | s%@target@%$target%g | |
13204 | s%@target_alias@%$target_alias%g | |
13205 | s%@target_cpu@%$target_cpu%g | |
13206 | s%@target_vendor@%$target_vendor%g | |
13207 | s%@target_os@%$target_os%g | |
13208 | s%@build@%$build%g | |
13209 | s%@build_alias@%$build_alias%g | |
13210 | s%@build_cpu@%$build_cpu%g | |
13211 | s%@build_vendor@%$build_vendor%g | |
13212 | s%@build_os@%$build_os%g | |
13213 | s%@CC@%$CC%g | |
13214 | s%@CPP@%$CPP%g | |
13215 | s%@CXX@%$CXX%g | |
13216 | s%@CXXCPP@%$CXXCPP%g | |
13217 | s%@RANLIB@%$RANLIB%g | |
13218 | s%@AR@%$AR%g | |
13219 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
13220 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
13221 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
13222 | s%@STRIP@%$STRIP%g | |
13223 | s%@YACC@%$YACC%g | |
13224 | s%@LEX@%$LEX%g | |
13225 | s%@LEXLIB@%$LEXLIB%g | |
13226 | s%@LN_S@%$LN_S%g | |
13227 | s%@GTK_CONFIG@%$GTK_CONFIG%g | |
13228 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g | |
13229 | s%@GTK_LIBS@%$GTK_LIBS%g | |
ab9b9eab VZ |
13230 | s%@X_CFLAGS@%$X_CFLAGS%g |
13231 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
13232 | s%@X_LIBS@%$X_LIBS%g | |
13233 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
10f2d63a VZ |
13234 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g |
13235 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
13236 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
13237 | s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g | |
13238 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
13239 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
13240 | s%@WX_LIBRARY@%$WX_LIBRARY%g | |
13241 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
13242 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
13243 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
13244 | s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g | |
13245 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g | |
13246 | s%@WX_ALL@%$WX_ALL%g | |
13247 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
13248 | s%@SHARED_LD@%$SHARED_LD%g | |
13249 | s%@PIC_FLAG@%$PIC_FLAG%g | |
13250 | s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g | |
1d62a8b4 | 13251 | s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g |
10f2d63a VZ |
13252 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g |
13253 | s%@TOOLKIT@%$TOOLKIT%g | |
13254 | s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g | |
13255 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
13256 | s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g | |
13257 | s%@GUIHEADERS@%$GUIHEADERS%g | |
13258 | s%@GUIOBJS@%$GUIOBJS%g | |
13259 | s%@COMMONOBJS@%$COMMONOBJS%g | |
13260 | s%@GENERICOBJS@%$GENERICOBJS%g | |
13261 | s%@GUIDEPS@%$GUIDEPS%g | |
13262 | s%@COMMONDEPS@%$COMMONDEPS%g | |
13263 | s%@GENERICDEPS@%$GENERICDEPS%g | |
13264 | s%@IODBCOBJS@%$IODBCOBJS%g | |
13265 | s%@UNIXOBJS@%$UNIXOBJS%g | |
13266 | s%@UNIXDEPS@%$UNIXDEPS%g | |
13267 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
13268 | s%@ALL_DEPFILES@%$ALL_DEPFILES%g | |
13269 | s%@ALL_HEADERS@%$ALL_HEADERS%g | |
13270 | s%@GUIDIST@%$GUIDIST%g | |
13271 | s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g | |
13272 | s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g | |
13273 | s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g | |
13274 | s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g | |
13275 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g | |
13276 | s%@USER_SUBDIRS@%$USER_SUBDIRS%g | |
13277 | s%@EXTRA_LIBS@%$EXTRA_LIBS%g | |
b12915c1 | 13278 | s%@EXTRADEFS@%$EXTRADEFS%g |
10f2d63a VZ |
13279 | s%@LD_LIBS@%$LD_LIBS%g |
13280 | s%@SET_MAKE@%$SET_MAKE%g | |
13281 | s%@GL_TOOLKIT_DIR@%$GL_TOOLKIT_DIR%g | |
13282 | ||
13283 | CEOF | |
13284 | EOF | |
13285 | ||
13286 | cat >> $CONFIG_STATUS <<\EOF | |
13287 | ||
13288 | # Split the substitutions into bite-sized pieces for seds with | |
13289 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
13290 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
13291 | ac_file=1 # Number of current file. | |
13292 | ac_beg=1 # First line for current file. | |
13293 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
13294 | ac_more_lines=: | |
13295 | ac_sed_cmds="" | |
13296 | while $ac_more_lines; do | |
13297 | if test $ac_beg -gt 1; then | |
13298 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
13299 | else | |
13300 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
13301 | fi | |
13302 | if test ! -s conftest.s$ac_file; then | |
13303 | ac_more_lines=false | |
13304 | rm -f conftest.s$ac_file | |
13305 | else | |
13306 | if test -z "$ac_sed_cmds"; then | |
13307 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
13308 | else | |
13309 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
13310 | fi | |
13311 | ac_file=`expr $ac_file + 1` | |
13312 | ac_beg=$ac_end | |
13313 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
13314 | fi | |
13315 | done | |
13316 | if test -z "$ac_sed_cmds"; then | |
13317 | ac_sed_cmds=cat | |
13318 | fi | |
13319 | EOF | |
13320 | ||
13321 | cat >> $CONFIG_STATUS <<EOF | |
13322 | ||
13323 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
13324 | src/make.env | |
13325 | src/makeprog.env | |
13326 | src/makelib.env | |
13327 | Makefile | |
13328 | samples/Makefile | |
13329 | samples/bombs/Makefile | |
13330 | samples/caret/Makefile | |
13331 | samples/checklst/Makefile | |
13332 | samples/config/Makefile | |
13333 | samples/controls/Makefile | |
b47c832e | 13334 | samples/console/Makefile |
10f2d63a VZ |
13335 | samples/db/Makefile |
13336 | samples/dialogs/Makefile | |
13337 | samples/docview/Makefile | |
13338 | samples/docvwmdi/Makefile | |
13339 | samples/dnd/Makefile | |
13340 | samples/drawing/Makefile | |
13341 | samples/forty/Makefile | |
678b92a9 | 13342 | samples/font/Makefile |
10f2d63a VZ |
13343 | samples/fractal/Makefile |
13344 | samples/image/Makefile | |
13345 | samples/internat/Makefile | |
13346 | samples/layout/Makefile | |
13347 | samples/listctrl/Makefile | |
13348 | samples/mdi/Makefile | |
13349 | samples/minifram/Makefile | |
13350 | samples/minimal/Makefile | |
13351 | samples/nettest/Makefile | |
13352 | samples/newgrid/Makefile | |
13353 | samples/notebook/Makefile | |
13354 | samples/png/Makefile | |
13355 | samples/printing/Makefile | |
13356 | samples/proplist/Makefile | |
13357 | samples/richedit/Makefile | |
13358 | samples/resource/Makefile | |
13359 | samples/sashtest/Makefile | |
13360 | samples/scroll/Makefile | |
13361 | samples/scrollsub/Makefile | |
13362 | samples/splitter/Makefile | |
13363 | samples/text/Makefile | |
13364 | samples/thread/Makefile | |
13365 | samples/toolbar/Makefile | |
13366 | samples/treectrl/Makefile | |
13367 | samples/typetest/Makefile | |
13368 | samples/validate/Makefile | |
13369 | samples/wxpoem/Makefile | |
13370 | samples/wxsocket/Makefile | |
13371 | samples/wizard/Makefile | |
13372 | samples/html/Makefile | |
13373 | samples/html/about/Makefile | |
13374 | samples/html/help/Makefile | |
13375 | samples/html/printing/Makefile | |
fc9c7c09 | 13376 | samples/html/helpview/Makefile |
10f2d63a VZ |
13377 | samples/html/test/Makefile |
13378 | samples/html/zip/Makefile | |
13379 | samples/html/virtual/Makefile | |
13380 | samples/html/widget/Makefile | |
13381 | utils/Makefile | |
13382 | utils/wxMMedia2/Makefile | |
13383 | utils/wxMMedia2/lib/Makefile | |
13384 | utils/wxMMedia2/sample/Makefile | |
13385 | utils/glcanvas/Makefile | |
13386 | utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile | |
13387 | utils/ogl/Makefile | |
13388 | utils/ogl/src/Makefile | |
13389 | "} | |
13390 | EOF | |
13391 | cat >> $CONFIG_STATUS <<\EOF | |
13392 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
13393 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
13394 | case "$ac_file" in | |
13395 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
13396 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
13397 | *) ac_file_in="${ac_file}.in" ;; | |
13398 | esac | |
13399 | ||
13400 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
13401 | ||
13402 | # Remove last slash and all that follows it. Not all systems have dirname. | |
13403 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
13404 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
13405 | # The file is in a subdirectory. | |
13406 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
13407 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
13408 | # A "../" for each directory in $ac_dir_suffix. | |
13409 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
13410 | else | |
13411 | ac_dir_suffix= ac_dots= | |
13412 | fi | |
13413 | ||
13414 | case "$ac_given_srcdir" in | |
13415 | .) srcdir=. | |
13416 | if test -z "$ac_dots"; then top_srcdir=. | |
13417 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
13418 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
13419 | *) # Relative path. | |
13420 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
13421 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
13422 | esac | |
13423 | ||
13424 | case "$ac_given_INSTALL" in | |
13425 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
13426 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
13427 | esac | |
13428 | ||
13429 | echo creating "$ac_file" | |
13430 | rm -f "$ac_file" | |
13431 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
13432 | case "$ac_file" in | |
13433 | *Makefile*) ac_comsub="1i\\ | |
13434 | # $configure_input" ;; | |
13435 | *) ac_comsub= ;; | |
13436 | esac | |
13437 | ||
13438 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
13439 | sed -e "$ac_comsub | |
13440 | s%@configure_input@%$configure_input%g | |
13441 | s%@srcdir@%$srcdir%g | |
13442 | s%@top_srcdir@%$top_srcdir%g | |
13443 | s%@INSTALL@%$INSTALL%g | |
13444 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
13445 | fi; done | |
13446 | rm -f conftest.s* | |
13447 | ||
13448 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
13449 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
13450 | # | |
13451 | # ac_d sets the value in "#define NAME VALUE" lines. | |
13452 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
13453 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
13454 | ac_dC='\3' | |
13455 | ac_dD='%g' | |
13456 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
13457 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
13458 | ac_uB='\([ ]\)%\1#\2define\3' | |
13459 | ac_uC=' ' | |
13460 | ac_uD='\4%g' | |
13461 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
13462 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
13463 | ac_eB='$%\1#\2define\3' | |
13464 | ac_eC=' ' | |
13465 | ac_eD='%g' | |
13466 | ||
13467 | if test "${CONFIG_HEADERS+set}" != set; then | |
13468 | EOF | |
13469 | cat >> $CONFIG_STATUS <<EOF | |
13470 | CONFIG_HEADERS="setup.h:setup.h.in" | |
13471 | EOF | |
13472 | cat >> $CONFIG_STATUS <<\EOF | |
13473 | fi | |
13474 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
13475 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
13476 | case "$ac_file" in | |
13477 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
13478 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
13479 | *) ac_file_in="${ac_file}.in" ;; | |
13480 | esac | |
13481 | ||
13482 | echo creating $ac_file | |
13483 | ||
13484 | rm -f conftest.frag conftest.in conftest.out | |
13485 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
13486 | cat $ac_file_inputs > conftest.in | |
13487 | ||
13488 | EOF | |
13489 | ||
13490 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
13491 | # the proper values into config.h.in to produce config.h. And first: | |
13492 | # Protect against being on the right side of a sed subst in config.status. | |
13493 | # Protect against being in an unquoted here document in config.status. | |
13494 | rm -f conftest.vals | |
13495 | cat > conftest.hdr <<\EOF | |
13496 | s/[\\&%]/\\&/g | |
13497 | s%[\\$`]%\\&%g | |
13498 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
13499 | s%ac_d%ac_u%gp | |
13500 | s%ac_u%ac_e%gp | |
13501 | EOF | |
13502 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
13503 | rm -f conftest.hdr | |
13504 | ||
13505 | # This sed command replaces #undef with comments. This is necessary, for | |
13506 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
13507 | # on some systems where configure will not decide to define it. | |
13508 | cat >> conftest.vals <<\EOF | |
13509 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
13510 | EOF | |
13511 | ||
13512 | # Break up conftest.vals because some shells have a limit on | |
13513 | # the size of here documents, and old seds have small limits too. | |
13514 | ||
13515 | rm -f conftest.tail | |
13516 | while : | |
13517 | do | |
13518 | ac_lines=`grep -c . conftest.vals` | |
13519 | # grep -c gives empty output for an empty file on some AIX systems. | |
13520 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
13521 | # Write a limited-size here document to conftest.frag. | |
13522 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
13523 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
13524 | echo 'CEOF | |
13525 | sed -f conftest.frag conftest.in > conftest.out | |
13526 | rm -f conftest.in | |
13527 | mv conftest.out conftest.in | |
13528 | ' >> $CONFIG_STATUS | |
13529 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
13530 | rm -f conftest.vals | |
13531 | mv conftest.tail conftest.vals | |
13532 | done | |
13533 | rm -f conftest.vals | |
13534 | ||
13535 | cat >> $CONFIG_STATUS <<\EOF | |
13536 | rm -f conftest.frag conftest.h | |
13537 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
13538 | cat conftest.in >> conftest.h | |
13539 | rm -f conftest.in | |
13540 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
13541 | echo "$ac_file is unchanged" | |
13542 | rm -f conftest.h | |
13543 | else | |
13544 | # Remove last slash and all that follows it. Not all systems have dirname. | |
13545 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
13546 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
13547 | # The file is in a subdirectory. | |
13548 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
13549 | fi | |
13550 | rm -f $ac_file | |
13551 | mv conftest.h $ac_file | |
13552 | fi | |
13553 | fi; done | |
13554 | ||
13555 | EOF | |
13556 | cat >> $CONFIG_STATUS <<EOF | |
13557 | ||
13558 | TOOLKIT_DIR="${TOOLKIT_DIR}" | |
13559 | ||
13560 | ||
13561 | EOF | |
13562 | cat >> $CONFIG_STATUS <<\EOF | |
13563 | ||
13564 | chmod +x wx-config | |
13565 | if test ! -d include; then | |
13566 | mkdir include | |
13567 | fi | |
13568 | if test ! -d include/wx; then | |
13569 | mkdir include/wx | |
13570 | fi | |
13571 | if test ! -d include/wx/${TOOLKIT_DIR}; then | |
13572 | mkdir include/wx/${TOOLKIT_DIR} | |
13573 | fi | |
afc31813 VZ |
13574 | if test -f setup.h; then |
13575 | mv -f setup.h include/wx/${TOOLKIT_DIR}/setup.h | |
13576 | fi | |
10f2d63a VZ |
13577 | |
13578 | exit 0 | |
13579 | EOF | |
13580 | chmod +x $CONFIG_STATUS | |
13581 | rm -fr confdefs* $ac_clean_files | |
13582 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
13583 | ||
13584 |