]>
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 | |
68 | --with-dmalloc use dmalloc library (www.letters.com/dmalloc)" | |
69 | ac_help="$ac_help | |
70 | --with-zlib use zlib for LZW compression" | |
71 | ac_help="$ac_help | |
72 | --with-libpng use libpng (PNG image format)" | |
73 | ac_help="$ac_help | |
74 | --with-libjpeg use libjpeg (JPEG file format)" | |
75 | ac_help="$ac_help | |
c7a2bf27 RR |
76 | --with-libtiff use libtiff (TIFF file format)" |
77 | ac_help="$ac_help | |
10f2d63a VZ |
78 | --with-opengl use OpenGL (or Mesa)" |
79 | ac_help="$ac_help | |
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 | |
913 | USE_LINUX= | |
914 | USE_SGI= | |
915 | USE_HPUX= | |
916 | USE_SYSV= | |
917 | USE_SVR4= | |
918 | USE_AIX= | |
919 | USE_SUN= | |
920 | USE_SOLARIS= | |
921 | USE_SUNOS= | |
922 | USE_ALPHA= | |
923 | USE_OSF= | |
924 | USE_BSD= | |
925 | USE_FREEBSD= | |
926 | USE_VMS= | |
927 | USE_ULTRIX= | |
928 | USE_CYGWIN= | |
929 | USE_MINGW= | |
930 | USE_DATA_GENERAL= | |
931 | ||
ab9b9eab VZ |
932 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
933 | ||
10f2d63a VZ |
934 | ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE" |
935 | ||
936 | DEFAULT_wxUSE_GTK=0 | |
937 | DEFAULT_wxUSE_MOTIF=0 | |
938 | DEFAULT_wxUSE_MSW=0 | |
939 | DEFAULT_wxUSE_WINE=0 | |
940 | ||
941 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
942 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
943 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
944 | DEFAULT_DEFAULT_wxUSE_WINE=0 | |
945 | ||
946 | case "${host}" in | |
947 | *-hp-hpux* ) | |
948 | USE_HPUX=1 | |
949 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 950 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
951 | cat >> confdefs.h <<\EOF |
952 | #define __HPUX__ 1 | |
953 | EOF | |
954 | ||
955 | ;; | |
956 | *-*-linux* ) | |
957 | USE_LINUX=1 | |
958 | cat >> confdefs.h <<\EOF | |
959 | #define __LINUX__ 1 | |
960 | EOF | |
961 | ||
962 | TMP=`uname -m` | |
963 | if test "x$TMP" = "xalpha"; then | |
964 | USE_ALPHA=1 | |
965 | cat >> confdefs.h <<\EOF | |
966 | #define __ALPHA__ 1 | |
967 | EOF | |
968 | ||
969 | fi | |
970 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
971 | ;; | |
972 | *-*-irix5* | *-*-irix6* ) | |
973 | USE_SGI=1 | |
974 | USE_SVR4=1 | |
975 | cat >> confdefs.h <<\EOF | |
976 | #define __SGI__ 1 | |
977 | EOF | |
978 | ||
979 | cat >> confdefs.h <<\EOF | |
980 | #define __SVR4__ 1 | |
981 | EOF | |
982 | ||
983 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
984 | ;; | |
985 | *-*-solaris2* ) | |
986 | USE_SUN=1 | |
987 | USE_SOLARIS=1 | |
988 | USE_SVR4=1 | |
989 | cat >> confdefs.h <<\EOF | |
990 | #define __SUN__ 1 | |
991 | EOF | |
992 | ||
993 | cat >> confdefs.h <<\EOF | |
994 | #define __SOLARIS__ 1 | |
995 | EOF | |
996 | ||
997 | cat >> confdefs.h <<\EOF | |
998 | #define __SVR4__ 1 | |
999 | EOF | |
1000 | ||
1001 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1002 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1003 | ;; |
1004 | *-*-sunos4* ) | |
1005 | USE_SUN=1 | |
1006 | USE_SUNOS=1 | |
1007 | USE_BSD=1 | |
1008 | cat >> confdefs.h <<\EOF | |
1009 | #define __SUN__ 1 | |
1010 | EOF | |
1011 | ||
1012 | cat >> confdefs.h <<\EOF | |
1013 | #define __SUNOS__ 1 | |
1014 | EOF | |
1015 | ||
1016 | cat >> confdefs.h <<\EOF | |
1017 | #define __BSD__ 1 | |
1018 | EOF | |
1019 | ||
1020 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1021 | ;; | |
1022 | *-*-freebsd* | *-*-netbsd*) | |
1023 | USE_BSD=1 | |
1024 | USE_FREEBSD=1 | |
1025 | cat >> confdefs.h <<\EOF | |
1026 | #define __FREEBSD__ 1 | |
1027 | EOF | |
1028 | ||
1029 | cat >> confdefs.h <<\EOF | |
1030 | #define __BSD__ 1 | |
1031 | EOF | |
1032 | ||
1033 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1034 | ;; | |
1035 | *-*-osf* ) | |
1036 | USE_ALPHA=1 | |
1037 | USE_OSF=1 | |
1038 | cat >> confdefs.h <<\EOF | |
1039 | #define __ALPHA__ 1 | |
1040 | EOF | |
1041 | ||
1042 | cat >> confdefs.h <<\EOF | |
1043 | #define __OSF__ 1 | |
1044 | EOF | |
1045 | ||
1046 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1047 | ;; | |
1048 | *-*-dgux5* ) | |
1049 | USE_ALPHA=1 | |
1050 | USE_SVR4=1 | |
1051 | cat >> confdefs.h <<\EOF | |
1052 | #define __ALPHA__ 1 | |
1053 | EOF | |
1054 | ||
1055 | cat >> confdefs.h <<\EOF | |
1056 | #define __SVR4__ 1 | |
1057 | EOF | |
1058 | ||
1059 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1060 | ;; | |
1061 | *-*-sysv5* ) | |
1062 | USE_SYSV=1 | |
1063 | USE_SVR4=1 | |
1064 | cat >> confdefs.h <<\EOF | |
1065 | #define __SYSV__ 1 | |
1066 | EOF | |
1067 | ||
1068 | cat >> confdefs.h <<\EOF | |
1069 | #define __SVR4__ 1 | |
1070 | EOF | |
1071 | ||
1072 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1073 | ;; | |
1074 | *-*-aix* ) | |
1075 | USE_AIX=1 | |
1076 | USE_SYSV=1 | |
1077 | USE_SVR4=1 | |
1078 | cat >> confdefs.h <<\EOF | |
1079 | #define __AIX__ 1 | |
1080 | EOF | |
1081 | ||
1082 | cat >> confdefs.h <<\EOF | |
1083 | #define __SYSV__ 1 | |
1084 | EOF | |
1085 | ||
1086 | cat >> confdefs.h <<\EOF | |
1087 | #define __SVR4__ 1 | |
1088 | EOF | |
1089 | ||
1090 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1091 | ;; | |
1092 | ||
7eef8db2 | 1093 | *-*-cygwin32* | *-*-mingw32* ) |
10f2d63a VZ |
1094 | USE_UNIX=0 |
1095 | USE_WIN32=1 | |
1096 | cat >> confdefs.h <<\EOF | |
1097 | #define __WIN32__ 1 | |
1098 | EOF | |
1099 | ||
1100 | cat >> confdefs.h <<\EOF | |
1101 | #define __WIN95__ 1 | |
1102 | EOF | |
1103 | ||
1104 | cat >> confdefs.h <<\EOF | |
1105 | #define __WINDOWS__ 1 | |
1106 | EOF | |
1107 | ||
1108 | cat >> confdefs.h <<\EOF | |
1109 | #define __GNUWIN32__ 1 | |
1110 | EOF | |
1111 | ||
1112 | cat >> confdefs.h <<\EOF | |
1113 | #define STRICT 1 | |
1114 | EOF | |
1115 | ||
1116 | cat >> confdefs.h <<\EOF | |
1117 | #define WINVER 0x0400 | |
1118 | EOF | |
1119 | ||
1120 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
1121 | ;; | |
1122 | ||
1123 | *-pc-os2_emx ) | |
1124 | cat >> confdefs.h <<\EOF | |
1125 | #define __EMX__ 1 | |
1126 | EOF | |
1127 | ||
1128 | ;; | |
1129 | ||
1130 | *) | |
1131 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } | |
1132 | esac | |
1133 | ||
1134 | if test "$USE_UNIX" = 1 ; then | |
1135 | wxUSE_UNIX=yes | |
1136 | cat >> confdefs.h <<\EOF | |
1137 | #define __UNIX__ 1 | |
1138 | EOF | |
1139 | ||
1140 | SRC_SUBDIRS="$SRC_SUBDIRS unix" | |
1141 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix" | |
1142 | fi | |
1143 | ||
1144 | if test "$USE_LINUX" = 1; then | |
1145 | echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6 | |
360d6699 | 1146 | echo "configure:1147: checking for gettext in -lc" >&5 |
10f2d63a VZ |
1147 | ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'` |
1148 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1149 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1150 | else | |
1151 | ac_save_LIBS="$LIBS" | |
1152 | LIBS="-lc $LIBS" | |
1153 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 1154 | #line 1155 "configure" |
10f2d63a VZ |
1155 | #include "confdefs.h" |
1156 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1157 | /* We use char because int might match the return type of a gcc2 | |
1158 | builtin and then its argument prototype would still apply. */ | |
1159 | char gettext(); | |
1160 | ||
1161 | int main() { | |
1162 | gettext() | |
1163 | ; return 0; } | |
1164 | EOF | |
360d6699 | 1165 | if { (eval echo configure:1166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
1166 | rm -rf conftest* |
1167 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1168 | else | |
1169 | echo "configure: failed program was:" >&5 | |
1170 | cat conftest.$ac_ext >&5 | |
1171 | rm -rf conftest* | |
1172 | eval "ac_cv_lib_$ac_lib_var=no" | |
1173 | fi | |
1174 | rm -f conftest* | |
1175 | LIBS="$ac_save_LIBS" | |
1176 | ||
1177 | fi | |
1178 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1179 | echo "$ac_t""yes" 1>&6 | |
1180 | cat >> confdefs.h <<\EOF | |
1181 | #define wxHAVE_GLIBC2 1 | |
1182 | EOF | |
1183 | ||
1184 | else | |
1185 | echo "$ac_t""no" 1>&6 | |
1186 | fi | |
1187 | ||
1188 | fi | |
1189 | ||
1190 | ||
1191 | ||
1192 | ||
1193 | wx_arg_cache_file="configarg.cache" | |
1194 | echo "loading argument cache $wx_arg_cache_file" | |
1195 | rm -f ${wx_arg_cache_file}.tmp | |
1196 | touch ${wx_arg_cache_file}.tmp | |
1197 | touch ${wx_arg_cache_file} | |
1198 | ||
1199 | ||
1200 | DEBUG_CONFIGURE=0 | |
1201 | if test $DEBUG_CONFIGURE = 1; then | |
1202 | DEFAULT_wxUSE_THREADS=yes | |
1203 | ||
1204 | DEFAULT_wxUSE_SHARED=yes | |
1205 | DEFAULT_wxUSE_OPTIMISE=yes | |
1206 | DEFAULT_wxUSE_PROFILE=no | |
1207 | DEFAULT_wxUSE_NO_DEPS=no | |
1208 | DEFAULT_wxUSE_NO_RTTI=no | |
1209 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1210 | DEFAULT_wxUSE_PERMISSIVE=no | |
1211 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1212 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1213 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1214 | DEFAULT_wxUSE_MEM_TRACING=no | |
1215 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1216 | DEFAULT_wxUSE_DMALLOC=no | |
1217 | DEFAULT_wxUSE_APPLE_IEEE=no | |
1218 | ||
1219 | DEFAULT_wxUSE_LOG=yes | |
1220 | ||
1221 | DEFAULT_wxUSE_GUI=yes | |
1222 | ||
1223 | DEFAULT_wxUSE_ZLIB=no | |
1224 | DEFAULT_wxUSE_LIBPNG=no | |
1225 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1226 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a VZ |
1227 | DEFAULT_wxUSE_ODBC=no |
1228 | ||
1229 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
1230 | DEFAULT_wxUSE_FILE=no | |
1231 | DEFAULT_wxUSE_TEXTFILE=no | |
1232 | DEFAULT_wxUSE_TIMEDATE=no | |
1233 | DEFAULT_wxUSE_WAVE=no | |
1234 | DEFAULT_wxUSE_INTL=no | |
1235 | DEFAULT_wxUSE_CONFIG=no | |
1236 | DEFAULT_wxUSE_STREAMS=no | |
1237 | DEFAULT_wxUSE_SOCKETS=no | |
1238 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
1239 | DEFAULT_wxUSE_SERIAL=no | |
1240 | DEFAULT_wxUSE_JOYSTICK=no | |
1241 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
1242 | DEFAULT_wxUSE_LONGLONG=no | |
1243 | ||
1244 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1245 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1246 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1247 | ||
1248 | DEFAULT_wxUSE_X_RESOURCES=no | |
1249 | DEFAULT_wxUSE_CLIPBOARD=no | |
1250 | DEFAULT_wxUSE_TOOLTIPS=no | |
1251 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
1252 | DEFAULT_wxUSE_SPLINES=no | |
1253 | ||
1254 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1255 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1256 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1257 | ||
1258 | DEFAULT_wxUSE_PROLOGIO=no | |
1259 | DEFAULT_wxUSE_RESOURCES=no | |
1260 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1261 | DEFAULT_wxUSE_IPC=no | |
1262 | DEFAULT_wxUSE_HELP=no | |
1263 | DEFAULT_wxUSE_WXTREE=no | |
1264 | DEFAULT_wxUSE_METAFILE=no | |
1265 | ||
1266 | DEFAULT_wxUSE_COMMONDLGS=no | |
1267 | DEFAULT_wxUSE_DIRDLG=no | |
1268 | DEFAULT_wxUSE_TEXTDLG=no | |
1269 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
1270 | DEFAULT_wxUSE_PROGRESSDLG=no | |
1271 | DEFAULT_wxUSE_MINIFRAME=no | |
1272 | DEFAULT_wxUSE_HTML=no | |
1273 | DEFAULT_wxUSE_FS_INET=no | |
1274 | DEFAULT_wxUSE_FS_ZIP=no | |
1275 | DEFAULT_wxUSE_BUSYINFO=no | |
1276 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1277 | DEFAULT_wxUSE_VALIDATORS=yes | |
1278 | ||
1279 | DEFAULT_wxUSE_ACCEL=no | |
1280 | DEFAULT_wxUSE_CARET=no | |
1281 | DEFAULT_wxUSE_BMPBUTTON=no | |
1282 | DEFAULT_wxUSE_CHECKBOX=no | |
1283 | DEFAULT_wxUSE_CHECKLST=no | |
1284 | DEFAULT_wxUSE_CHOICE=yes | |
1285 | DEFAULT_wxUSE_COMBOBOX=no | |
1286 | DEFAULT_wxUSE_GAUGE=no | |
1287 | DEFAULT_wxUSE_GRID=no | |
1288 | DEFAULT_wxUSE_NEW_GRID=no | |
1289 | DEFAULT_wxUSE_IMAGLIST=no | |
1290 | DEFAULT_wxUSE_LISTBOX=no | |
1291 | DEFAULT_wxUSE_LISTCTRL=no | |
1292 | DEFAULT_wxUSE_NOTEBOOK=no | |
1293 | DEFAULT_wxUSE_RADIOBOX=no | |
1294 | DEFAULT_wxUSE_RADIOBTN=no | |
1295 | DEFAULT_wxUSE_SASH=no | |
1296 | DEFAULT_wxUSE_SCROLLBAR=no | |
1297 | DEFAULT_wxUSE_SLIDER=no | |
1298 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1299 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1300 | DEFAULT_wxUSE_SPLITTER=no |
1301 | DEFAULT_wxUSE_STATBMP=no | |
1302 | DEFAULT_wxUSE_STATBOX=no | |
1303 | DEFAULT_wxUSE_STATLINE=no | |
1304 | DEFAULT_wxUSE_STATUSBAR=yes | |
1305 | DEFAULT_wxUSE_TABDIALOG=no | |
1306 | DEFAULT_wxUSE_TOOLBAR=no | |
360d6699 VZ |
1307 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1308 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
1309 | DEFAULT_wxUSE_TREECTRL=no |
1310 | ||
1311 | DEFAULT_wxUSE_UNICODE=no | |
1312 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1313 | ||
1314 | DEFAULT_wxUSE_GIF=no | |
1315 | DEFAULT_wxUSE_PCX=no | |
1316 | DEFAULT_wxUSE_PNM=no | |
1317 | else | |
1318 | DEFAULT_wxUSE_THREADS=yes | |
1319 | ||
1320 | DEFAULT_wxUSE_SHARED=yes | |
1321 | DEFAULT_wxUSE_OPTIMISE=yes | |
1322 | DEFAULT_wxUSE_PROFILE=no | |
1323 | DEFAULT_wxUSE_NO_DEPS=no | |
1324 | DEFAULT_wxUSE_NO_RTTI=no | |
1325 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1326 | DEFAULT_wxUSE_PERMISSIVE=no | |
1327 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1328 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1329 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1330 | DEFAULT_wxUSE_MEM_TRACING=no | |
1331 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1332 | DEFAULT_wxUSE_DMALLOC=no | |
1333 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
1334 | ||
1335 | DEFAULT_wxUSE_LOG=yes | |
1336 | ||
1337 | DEFAULT_wxUSE_GUI=yes | |
1338 | ||
1339 | DEFAULT_wxUSE_ZLIB=yes | |
1340 | DEFAULT_wxUSE_LIBPNG=yes | |
1341 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1342 | DEFAULT_wxUSE_LIBTIFF=yes |
10f2d63a VZ |
1343 | DEFAULT_wxUSE_ODBC=yes |
1344 | ||
1345 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
1346 | DEFAULT_wxUSE_FILE=yes | |
1347 | DEFAULT_wxUSE_TEXTFILE=yes | |
1348 | DEFAULT_wxUSE_TIMEDATE=yes | |
1349 | DEFAULT_wxUSE_WAVE=no | |
1350 | DEFAULT_wxUSE_INTL=yes | |
1351 | DEFAULT_wxUSE_CONFIG=yes | |
1352 | DEFAULT_wxUSE_STREAMS=yes | |
1353 | DEFAULT_wxUSE_SOCKETS=yes | |
1354 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
1355 | DEFAULT_wxUSE_SERIAL=yes | |
1356 | DEFAULT_wxUSE_JOYSTICK=yes | |
1357 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
b685cd9b | 1358 | DEFAULT_wxUSE_LONGLONG=yes |
10f2d63a VZ |
1359 | |
1360 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1361 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1362 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1363 | ||
1364 | DEFAULT_wxUSE_X_RESOURCES=no | |
1365 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1366 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1367 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
1368 | DEFAULT_wxUSE_SPLINES=yes | |
1369 | ||
1370 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1371 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1372 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1373 | ||
1374 | DEFAULT_wxUSE_PROLOGIO=yes | |
1375 | DEFAULT_wxUSE_RESOURCES=yes | |
1376 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1377 | DEFAULT_wxUSE_IPC=yes | |
1378 | DEFAULT_wxUSE_HELP=yes | |
1379 | DEFAULT_wxUSE_WXTREE=yes | |
1380 | DEFAULT_wxUSE_METAFILE=yes | |
1381 | ||
1382 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1383 | DEFAULT_wxUSE_DIRDLG=yes | |
1384 | DEFAULT_wxUSE_TEXTDLG=yes | |
1385 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
1386 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
1387 | DEFAULT_wxUSE_MINIFRAME=yes | |
1388 | DEFAULT_wxUSE_HTML=yes | |
1389 | DEFAULT_wxUSE_FS_INET=yes | |
1390 | DEFAULT_wxUSE_FS_ZIP=yes | |
1391 | DEFAULT_wxUSE_BUSYINFO=yes | |
1392 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1393 | DEFAULT_wxUSE_VALIDATORS=yes | |
1394 | ||
1395 | DEFAULT_wxUSE_ACCEL=yes | |
1396 | DEFAULT_wxUSE_CARET=yes | |
1397 | DEFAULT_wxUSE_BMPBUTTON=yes | |
1398 | DEFAULT_wxUSE_CHECKBOX=yes | |
1399 | DEFAULT_wxUSE_CHECKLST=yes | |
1400 | DEFAULT_wxUSE_CHOICE=yes | |
1401 | DEFAULT_wxUSE_COMBOBOX=yes | |
1402 | DEFAULT_wxUSE_GAUGE=yes | |
1403 | DEFAULT_wxUSE_GRID=yes | |
fc9c7c09 | 1404 | DEFAULT_wxUSE_NEW_GRID=no |
10f2d63a VZ |
1405 | DEFAULT_wxUSE_IMAGLIST=yes |
1406 | DEFAULT_wxUSE_LISTBOX=yes | |
1407 | DEFAULT_wxUSE_LISTCTRL=yes | |
1408 | DEFAULT_wxUSE_NOTEBOOK=yes | |
1409 | DEFAULT_wxUSE_RADIOBOX=yes | |
1410 | DEFAULT_wxUSE_RADIOBTN=yes | |
1411 | DEFAULT_wxUSE_SASH=yes | |
1412 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1413 | DEFAULT_wxUSE_SLIDER=yes | |
1414 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1415 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1416 | DEFAULT_wxUSE_SPLITTER=yes |
1417 | DEFAULT_wxUSE_STATBMP=yes | |
1418 | DEFAULT_wxUSE_STATBOX=yes | |
1419 | DEFAULT_wxUSE_STATLINE=yes | |
1420 | DEFAULT_wxUSE_STATUSBAR=yes | |
1421 | DEFAULT_wxUSE_TABDIALOG=no | |
1422 | DEFAULT_wxUSE_TOOLBAR=yes | |
360d6699 VZ |
1423 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1424 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
1425 | DEFAULT_wxUSE_TREECTRL=yes |
1426 | ||
1427 | DEFAULT_wxUSE_UNICODE=no | |
1428 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1429 | ||
1430 | DEFAULT_wxUSE_GIF=yes | |
1431 | DEFAULT_wxUSE_PCX=yes | |
1432 | DEFAULT_wxUSE_PNM=yes | |
1433 | fi | |
1434 | ||
1435 | ||
1436 | ||
1437 | for toolkit in `echo $ALL_TOOLKITS`; do | |
1438 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1439 | if test "x$LINE" != x ; then | |
1440 | has_toolkit_in_cache=1 | |
1441 | eval "DEFAULT_$LINE" | |
1442 | eval "CACHE_$toolkit=1" | |
1443 | fi | |
1444 | done | |
1445 | ||
1446 | ||
1447 | ||
1448 | echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6 | |
360d6699 | 1449 | echo "configure:1450: checking "for --enable-gui"" >&5 |
10f2d63a VZ |
1450 | no_cache=0 |
1451 | # Check whether --enable-gui or --disable-gui was given. | |
1452 | if test "${enable_gui+set}" = set; then | |
1453 | enableval="$enable_gui" | |
1454 | ||
1455 | if test "$enableval" = yes; then | |
1456 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1457 | else | |
1458 | ac_cv_use_gui='wxUSE_GUI=no' | |
1459 | fi | |
1460 | ||
1461 | else | |
1462 | ||
1463 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
1464 | if test "x$LINE" != x ; then | |
1465 | eval "DEFAULT_$LINE" | |
1466 | else | |
1467 | no_cache=1 | |
1468 | fi | |
1469 | ||
1470 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
1471 | ||
1472 | fi | |
1473 | ||
1474 | ||
1475 | eval "$ac_cv_use_gui" | |
1476 | if test "$no_cache" != 1; then | |
1477 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1478 | fi | |
1479 | ||
1480 | if test "$wxUSE_GUI" = yes; then | |
1481 | echo "$ac_t""yes" 1>&6 | |
1482 | else | |
1483 | echo "$ac_t""no" 1>&6 | |
1484 | fi | |
1485 | ||
1486 | ||
1487 | if test "$wxUSE_GUI" = "no"; then | |
1488 | DEFAULT_wxUSE_ZLIB=no | |
1489 | DEFAULT_wxUSE_LIBPNG=no | |
1490 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1491 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a VZ |
1492 | DEFAULT_wxUSE_SOCKETS=no |
1493 | DEFAULT_wxUSE_JOYSTICK=no | |
1494 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1495 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1496 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1497 | DEFAULT_wxUSE_X_RESOURCES=no | |
1498 | DEFAULT_wxUSE_CLIPBOARD=no | |
1499 | DEFAULT_wxUSE_TOOLTIPS=no | |
1500 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
1501 | DEFAULT_wxUSE_SPLINES=no | |
1502 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1503 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1504 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1505 | DEFAULT_wxUSE_PROLOGIO=no | |
1506 | DEFAULT_wxUSE_RESOURCES=no | |
1507 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1508 | DEFAULT_wxUSE_IPC=no | |
1509 | DEFAULT_wxUSE_HELP=no | |
1510 | DEFAULT_wxUSE_WXTREE=no | |
1511 | DEFAULT_wxUSE_METAFILE=no | |
1512 | DEFAULT_wxUSE_COMMONDLGS=no | |
1513 | DEFAULT_wxUSE_DIRDLG=no | |
1514 | DEFAULT_wxUSE_TEXTDLG=no | |
1515 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
1516 | DEFAULT_wxUSE_PROGRESSDLG=no | |
1517 | DEFAULT_wxUSE_MINIFRAME=no | |
1518 | DEFAULT_wxUSE_HTML=no | |
1519 | DEFAULT_wxUSE_FS_INET=no | |
1520 | DEFAULT_wxUSE_FS_ZIP=no | |
1521 | DEFAULT_wxUSE_BUSYINFO=no | |
1522 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1523 | DEFAULT_wxUSE_VALIDATORS=no | |
1524 | DEFAULT_wxUSE_ACCEL=no | |
1525 | DEFAULT_wxUSE_CARET=no | |
1526 | DEFAULT_wxUSE_BMPBUTTON=no | |
1527 | DEFAULT_wxUSE_CHECKBOX=no | |
1528 | DEFAULT_wxUSE_CHECKLST=no | |
1529 | DEFAULT_wxUSE_CHOICE=no | |
1530 | DEFAULT_wxUSE_COMBOBOX=no | |
1531 | DEFAULT_wxUSE_GAUGE=no | |
1532 | DEFAULT_wxUSE_GRID=no | |
1533 | DEFAULT_wxUSE_NEW_GRID=no | |
1534 | DEFAULT_wxUSE_IMAGLIST=no | |
1535 | DEFAULT_wxUSE_LISTBOX=no | |
1536 | DEFAULT_wxUSE_LISTCTRL=no | |
1537 | DEFAULT_wxUSE_NOTEBOOK=no | |
1538 | DEFAULT_wxUSE_RADIOBOX=no | |
1539 | DEFAULT_wxUSE_RADIOBTN=no | |
1540 | DEFAULT_wxUSE_SASH=no | |
1541 | DEFAULT_wxUSE_SCROLLBAR=no | |
1542 | DEFAULT_wxUSE_SLIDER=no | |
1543 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1544 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1545 | DEFAULT_wxUSE_SPLITTER=no |
1546 | DEFAULT_wxUSE_STATBMP=no | |
1547 | DEFAULT_wxUSE_STATBOX=no | |
1548 | DEFAULT_wxUSE_STATLINE=no | |
1549 | DEFAULT_wxUSE_STATUSBAR=no | |
1550 | DEFAULT_wxUSE_TABDIALOG=no | |
1551 | DEFAULT_wxUSE_TOOLBAR=no | |
360d6699 VZ |
1552 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1553 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
1554 | DEFAULT_wxUSE_TREECTRL=no |
1555 | DEFAULT_wxUSE_GIF=no | |
1556 | DEFAULT_wxUSE_PCX=no | |
1557 | DEFAULT_wxUSE_PNM=no | |
1558 | fi | |
1559 | ||
1560 | # Check whether --with-gtk or --without-gtk was given. | |
1561 | if test "${with_gtk+set}" = set; then | |
1562 | withval="$with_gtk" | |
1563 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
1564 | fi | |
1565 | ||
1566 | # Check whether --with-motif or --without-motif was given. | |
1567 | if test "${with_motif+set}" = set; then | |
1568 | withval="$with_motif" | |
1569 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
1570 | fi | |
1571 | ||
1572 | # Check whether --with-wine or --without-wine was given. | |
1573 | if test "${with_wine+set}" = set; then | |
1574 | withval="$with_wine" | |
1575 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
1576 | fi | |
1577 | ||
1578 | # Check whether --with-cygwin or --without-cygwin was given. | |
1579 | if test "${with_cygwin+set}" = set; then | |
1580 | withval="$with_cygwin" | |
1581 | wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1 | |
1582 | fi | |
1583 | ||
1584 | # Check whether --with-mingw or --without-mingw was given. | |
1585 | if test "${with_mingw+set}" = set; then | |
1586 | withval="$with_mingw" | |
1587 | wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1 | |
1588 | fi | |
1589 | ||
1590 | ||
1591 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
1592 | if test "${with_gtk_prefix+set}" = set; then | |
1593 | withval="$with_gtk_prefix" | |
1594 | gtk_config_prefix="$withval" | |
1595 | else | |
1596 | gtk_config_prefix="" | |
1597 | fi | |
1598 | ||
1599 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
1600 | if test "${with_gtk_exec_prefix+set}" = set; then | |
1601 | withval="$with_gtk_exec_prefix" | |
1602 | gtk_config_exec_prefix="$withval" | |
1603 | else | |
1604 | gtk_config_exec_prefix="" | |
1605 | fi | |
1606 | ||
1607 | ||
1608 | ||
1609 | echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6 | |
360d6699 | 1610 | echo "configure:1611: checking "for --with-dmalloc"" >&5 |
10f2d63a VZ |
1611 | no_cache=0 |
1612 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
1613 | if test "${with_dmalloc+set}" = set; then | |
1614 | withval="$with_dmalloc" | |
1615 | ||
1616 | if test "$withval" = yes; then | |
1617 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
1618 | else | |
1619 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
1620 | fi | |
1621 | ||
1622 | else | |
1623 | ||
1624 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
1625 | if test "x$LINE" != x ; then | |
1626 | eval "DEFAULT_$LINE" | |
1627 | else | |
1628 | no_cache=1 | |
1629 | fi | |
1630 | ||
1631 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
1632 | ||
1633 | fi | |
1634 | ||
1635 | ||
1636 | eval "$ac_cv_use_dmalloc" | |
1637 | if test "$no_cache" != 1; then | |
1638 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
1639 | fi | |
1640 | ||
1641 | if test "$wxUSE_DMALLOC" = yes; then | |
1642 | echo "$ac_t""yes" 1>&6 | |
1643 | else | |
1644 | echo "$ac_t""no" 1>&6 | |
1645 | fi | |
1646 | ||
1647 | ||
1648 | echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6 | |
360d6699 | 1649 | echo "configure:1650: checking "for --with-zlib"" >&5 |
10f2d63a VZ |
1650 | no_cache=0 |
1651 | # Check whether --with-zlib or --without-zlib was given. | |
1652 | if test "${with_zlib+set}" = set; then | |
1653 | withval="$with_zlib" | |
1654 | ||
1655 | if test "$withval" = yes; then | |
1656 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
1657 | else | |
1658 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
1659 | fi | |
1660 | ||
1661 | else | |
1662 | ||
1663 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
1664 | if test "x$LINE" != x ; then | |
1665 | eval "DEFAULT_$LINE" | |
1666 | else | |
1667 | no_cache=1 | |
1668 | fi | |
1669 | ||
1670 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
1671 | ||
1672 | fi | |
1673 | ||
1674 | ||
1675 | eval "$ac_cv_use_zlib" | |
1676 | if test "$no_cache" != 1; then | |
1677 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
1678 | fi | |
1679 | ||
1680 | if test "$wxUSE_ZLIB" = yes; then | |
1681 | echo "$ac_t""yes" 1>&6 | |
1682 | else | |
1683 | echo "$ac_t""no" 1>&6 | |
1684 | fi | |
1685 | ||
1686 | ||
1687 | echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6 | |
360d6699 | 1688 | echo "configure:1689: checking "for --with-libpng"" >&5 |
10f2d63a VZ |
1689 | no_cache=0 |
1690 | # Check whether --with-libpng or --without-libpng was given. | |
1691 | if test "${with_libpng+set}" = set; then | |
1692 | withval="$with_libpng" | |
1693 | ||
1694 | if test "$withval" = yes; then | |
1695 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
1696 | else | |
1697 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
1698 | fi | |
1699 | ||
1700 | else | |
1701 | ||
1702 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
1703 | if test "x$LINE" != x ; then | |
1704 | eval "DEFAULT_$LINE" | |
1705 | else | |
1706 | no_cache=1 | |
1707 | fi | |
1708 | ||
1709 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
1710 | ||
1711 | fi | |
1712 | ||
1713 | ||
1714 | eval "$ac_cv_use_libpng" | |
1715 | if test "$no_cache" != 1; then | |
1716 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
1717 | fi | |
1718 | ||
1719 | if test "$wxUSE_LIBPNG" = yes; then | |
1720 | echo "$ac_t""yes" 1>&6 | |
1721 | else | |
1722 | echo "$ac_t""no" 1>&6 | |
1723 | fi | |
1724 | ||
1725 | ||
1726 | echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6 | |
360d6699 | 1727 | echo "configure:1728: checking "for --with-libjpeg"" >&5 |
10f2d63a VZ |
1728 | no_cache=0 |
1729 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
1730 | if test "${with_libjpeg+set}" = set; then | |
1731 | withval="$with_libjpeg" | |
1732 | ||
1733 | if test "$withval" = yes; then | |
1734 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
1735 | else | |
1736 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
1737 | fi | |
1738 | ||
1739 | else | |
1740 | ||
1741 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
1742 | if test "x$LINE" != x ; then | |
1743 | eval "DEFAULT_$LINE" | |
1744 | else | |
1745 | no_cache=1 | |
1746 | fi | |
1747 | ||
1748 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
1749 | ||
1750 | fi | |
1751 | ||
1752 | ||
1753 | eval "$ac_cv_use_libjpeg" | |
1754 | if test "$no_cache" != 1; then | |
1755 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
1756 | fi | |
1757 | ||
1758 | if test "$wxUSE_LIBJPEG" = yes; then | |
1759 | echo "$ac_t""yes" 1>&6 | |
1760 | else | |
1761 | echo "$ac_t""no" 1>&6 | |
1762 | fi | |
1763 | ||
1764 | ||
c7a2bf27 | 1765 | echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6 |
360d6699 | 1766 | echo "configure:1767: checking "for --with-libtiff"" >&5 |
c7a2bf27 RR |
1767 | no_cache=0 |
1768 | # Check whether --with-libtiff or --without-libtiff was given. | |
1769 | if test "${with_libtiff+set}" = set; then | |
1770 | withval="$with_libtiff" | |
1771 | ||
1772 | if test "$withval" = yes; then | |
1773 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' | |
1774 | else | |
1775 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' | |
1776 | fi | |
1777 | ||
1778 | else | |
1779 | ||
1780 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` | |
1781 | if test "x$LINE" != x ; then | |
1782 | eval "DEFAULT_$LINE" | |
1783 | else | |
1784 | no_cache=1 | |
1785 | fi | |
1786 | ||
1787 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF | |
1788 | ||
1789 | fi | |
1790 | ||
1791 | ||
1792 | eval "$ac_cv_use_libtiff" | |
1793 | if test "$no_cache" != 1; then | |
1794 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp | |
1795 | fi | |
1796 | ||
1797 | if test "$wxUSE_LIBTIFF" = yes; then | |
1798 | echo "$ac_t""yes" 1>&6 | |
1799 | else | |
1800 | echo "$ac_t""no" 1>&6 | |
1801 | fi | |
1802 | ||
1803 | ||
10f2d63a | 1804 | echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6 |
360d6699 | 1805 | echo "configure:1806: checking "for --with-opengl"" >&5 |
10f2d63a VZ |
1806 | no_cache=0 |
1807 | # Check whether --with-opengl or --without-opengl was given. | |
1808 | if test "${with_opengl+set}" = set; then | |
1809 | withval="$with_opengl" | |
1810 | ||
1811 | if test "$withval" = yes; then | |
1812 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
1813 | else | |
1814 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
1815 | fi | |
1816 | ||
1817 | else | |
1818 | ||
1819 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
1820 | if test "x$LINE" != x ; then | |
1821 | eval "DEFAULT_$LINE" | |
1822 | else | |
1823 | no_cache=1 | |
1824 | fi | |
1825 | ||
1826 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
1827 | ||
1828 | fi | |
1829 | ||
1830 | ||
1831 | eval "$ac_cv_use_opengl" | |
1832 | if test "$no_cache" != 1; then | |
1833 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
1834 | fi | |
1835 | ||
1836 | if test "$wxUSE_OPENGL" = yes; then | |
1837 | echo "$ac_t""yes" 1>&6 | |
1838 | else | |
1839 | echo "$ac_t""no" 1>&6 | |
1840 | fi | |
1841 | ||
1842 | ||
1843 | echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6 | |
360d6699 | 1844 | echo "configure:1845: checking "for --with-odbc"" >&5 |
10f2d63a VZ |
1845 | no_cache=0 |
1846 | # Check whether --with-odbc or --without-odbc was given. | |
1847 | if test "${with_odbc+set}" = set; then | |
1848 | withval="$with_odbc" | |
1849 | ||
1850 | if test "$withval" = yes; then | |
1851 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
1852 | else | |
1853 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
1854 | fi | |
1855 | ||
1856 | else | |
1857 | ||
1858 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
1859 | if test "x$LINE" != x ; then | |
1860 | eval "DEFAULT_$LINE" | |
1861 | else | |
1862 | no_cache=1 | |
1863 | fi | |
1864 | ||
1865 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
1866 | ||
1867 | fi | |
1868 | ||
1869 | ||
1870 | eval "$ac_cv_use_odbc" | |
1871 | if test "$no_cache" != 1; then | |
1872 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
1873 | fi | |
1874 | ||
1875 | if test "$wxUSE_ODBC" = yes; then | |
1876 | echo "$ac_t""yes" 1>&6 | |
1877 | else | |
1878 | echo "$ac_t""no" 1>&6 | |
1879 | fi | |
1880 | ||
1881 | ||
1882 | ||
1883 | ||
1884 | ||
1885 | echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6 | |
360d6699 | 1886 | echo "configure:1887: checking "for --enable-shared"" >&5 |
10f2d63a VZ |
1887 | no_cache=0 |
1888 | # Check whether --enable-shared or --disable-shared was given. | |
1889 | if test "${enable_shared+set}" = set; then | |
1890 | enableval="$enable_shared" | |
1891 | ||
1892 | if test "$enableval" = yes; then | |
1893 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
1894 | else | |
1895 | ac_cv_use_shared='wxUSE_SHARED=no' | |
1896 | fi | |
1897 | ||
1898 | else | |
1899 | ||
1900 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
1901 | if test "x$LINE" != x ; then | |
1902 | eval "DEFAULT_$LINE" | |
1903 | else | |
1904 | no_cache=1 | |
1905 | fi | |
1906 | ||
1907 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
1908 | ||
1909 | fi | |
1910 | ||
1911 | ||
1912 | eval "$ac_cv_use_shared" | |
1913 | if test "$no_cache" != 1; then | |
1914 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
1915 | fi | |
1916 | ||
1917 | if test "$wxUSE_SHARED" = yes; then | |
1918 | echo "$ac_t""yes" 1>&6 | |
1919 | else | |
1920 | echo "$ac_t""no" 1>&6 | |
1921 | fi | |
1922 | ||
1923 | ||
1924 | echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6 | |
360d6699 | 1925 | echo "configure:1926: checking "for --enable-optimise"" >&5 |
10f2d63a VZ |
1926 | no_cache=0 |
1927 | # Check whether --enable-optimise or --disable-optimise was given. | |
1928 | if test "${enable_optimise+set}" = set; then | |
1929 | enableval="$enable_optimise" | |
1930 | ||
1931 | if test "$enableval" = yes; then | |
1932 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
1933 | else | |
1934 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
1935 | fi | |
1936 | ||
1937 | else | |
1938 | ||
1939 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
1940 | if test "x$LINE" != x ; then | |
1941 | eval "DEFAULT_$LINE" | |
1942 | else | |
1943 | no_cache=1 | |
1944 | fi | |
1945 | ||
1946 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
1947 | ||
1948 | fi | |
1949 | ||
1950 | ||
1951 | eval "$ac_cv_use_optimise" | |
1952 | if test "$no_cache" != 1; then | |
1953 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
1954 | fi | |
1955 | ||
1956 | if test "$wxUSE_OPTIMISE" = yes; then | |
1957 | echo "$ac_t""yes" 1>&6 | |
1958 | else | |
1959 | echo "$ac_t""no" 1>&6 | |
1960 | fi | |
1961 | ||
1962 | ||
1963 | echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6 | |
360d6699 | 1964 | echo "configure:1965: checking "for --enable-debug"" >&5 |
10f2d63a VZ |
1965 | no_cache=0 |
1966 | # Check whether --enable-debug or --disable-debug was given. | |
1967 | if test "${enable_debug+set}" = set; then | |
1968 | enableval="$enable_debug" | |
1969 | ||
1970 | if test "$enableval" = yes; then | |
1971 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
1972 | else | |
1973 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
1974 | fi | |
1975 | ||
1976 | else | |
1977 | ||
1978 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
1979 | if test "x$LINE" != x ; then | |
1980 | eval "DEFAULT_$LINE" | |
1981 | else | |
1982 | no_cache=1 | |
1983 | fi | |
1984 | ||
1985 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
1986 | ||
1987 | fi | |
1988 | ||
1989 | ||
1990 | eval "$ac_cv_use_debug" | |
1991 | if test "$no_cache" != 1; then | |
1992 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
1993 | fi | |
1994 | ||
1995 | if test "$wxUSE_DEBUG" = yes; then | |
1996 | echo "$ac_t""yes" 1>&6 | |
1997 | else | |
1998 | echo "$ac_t""no" 1>&6 | |
1999 | fi | |
2000 | ||
2001 | ||
2002 | if test "$wxUSE_DEBUG" = "yes"; then | |
2003 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2004 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2005 | elif test "$wxUSE_DEBUG" = "no"; then | |
2006 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2007 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2008 | fi | |
2009 | ||
2010 | ||
2011 | echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6 | |
360d6699 | 2012 | echo "configure:2013: checking "for --enable-debug_flag"" >&5 |
10f2d63a VZ |
2013 | no_cache=0 |
2014 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2015 | if test "${enable_debug_flag+set}" = set; then | |
2016 | enableval="$enable_debug_flag" | |
2017 | ||
2018 | if test "$enableval" = yes; then | |
2019 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2020 | else | |
2021 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2022 | fi | |
2023 | ||
2024 | else | |
2025 | ||
2026 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
2027 | if test "x$LINE" != x ; then | |
2028 | eval "DEFAULT_$LINE" | |
2029 | else | |
2030 | no_cache=1 | |
2031 | fi | |
2032 | ||
2033 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
2034 | ||
2035 | fi | |
2036 | ||
2037 | ||
2038 | eval "$ac_cv_use_debug_flag" | |
2039 | if test "$no_cache" != 1; then | |
2040 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2041 | fi | |
2042 | ||
2043 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
2044 | echo "$ac_t""yes" 1>&6 | |
2045 | else | |
2046 | echo "$ac_t""no" 1>&6 | |
2047 | fi | |
2048 | ||
2049 | ||
2050 | echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6 | |
360d6699 | 2051 | echo "configure:2052: checking "for --enable-debug_info"" >&5 |
10f2d63a VZ |
2052 | no_cache=0 |
2053 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2054 | if test "${enable_debug_info+set}" = set; then | |
2055 | enableval="$enable_debug_info" | |
2056 | ||
2057 | if test "$enableval" = yes; then | |
2058 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2059 | else | |
2060 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2061 | fi | |
2062 | ||
2063 | else | |
2064 | ||
2065 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
2066 | if test "x$LINE" != x ; then | |
2067 | eval "DEFAULT_$LINE" | |
2068 | else | |
2069 | no_cache=1 | |
2070 | fi | |
2071 | ||
2072 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
2073 | ||
2074 | fi | |
2075 | ||
2076 | ||
2077 | eval "$ac_cv_use_debug_info" | |
2078 | if test "$no_cache" != 1; then | |
2079 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2080 | fi | |
2081 | ||
2082 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
2083 | echo "$ac_t""yes" 1>&6 | |
2084 | else | |
2085 | echo "$ac_t""no" 1>&6 | |
2086 | fi | |
2087 | ||
2088 | ||
2089 | echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6 | |
360d6699 | 2090 | echo "configure:2091: checking "for --enable-debug_gdb"" >&5 |
10f2d63a VZ |
2091 | no_cache=0 |
2092 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2093 | if test "${enable_debug_gdb+set}" = set; then | |
2094 | enableval="$enable_debug_gdb" | |
2095 | ||
2096 | if test "$enableval" = yes; then | |
2097 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2098 | else | |
2099 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2100 | fi | |
2101 | ||
2102 | else | |
2103 | ||
2104 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
2105 | if test "x$LINE" != x ; then | |
2106 | eval "DEFAULT_$LINE" | |
2107 | else | |
2108 | no_cache=1 | |
2109 | fi | |
2110 | ||
2111 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
2112 | ||
2113 | fi | |
2114 | ||
2115 | ||
2116 | eval "$ac_cv_use_debug_gdb" | |
2117 | if test "$no_cache" != 1; then | |
2118 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2119 | fi | |
2120 | ||
2121 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
2122 | echo "$ac_t""yes" 1>&6 | |
2123 | else | |
2124 | echo "$ac_t""no" 1>&6 | |
2125 | fi | |
2126 | ||
2127 | ||
2128 | echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6 | |
360d6699 | 2129 | echo "configure:2130: checking "for --enable-debug_cntxt"" >&5 |
10f2d63a VZ |
2130 | no_cache=0 |
2131 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2132 | if test "${enable_debug_cntxt+set}" = set; then | |
2133 | enableval="$enable_debug_cntxt" | |
2134 | ||
2135 | if test "$enableval" = yes; then | |
2136 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2137 | else | |
2138 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2139 | fi | |
2140 | ||
2141 | else | |
2142 | ||
2143 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
2144 | if test "x$LINE" != x ; then | |
2145 | eval "DEFAULT_$LINE" | |
2146 | else | |
2147 | no_cache=1 | |
2148 | fi | |
2149 | ||
2150 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
2151 | ||
2152 | fi | |
2153 | ||
2154 | ||
2155 | eval "$ac_cv_use_debug_cntxt" | |
2156 | if test "$no_cache" != 1; then | |
2157 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2158 | fi | |
2159 | ||
2160 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
2161 | echo "$ac_t""yes" 1>&6 | |
2162 | else | |
2163 | echo "$ac_t""no" 1>&6 | |
2164 | fi | |
2165 | ||
2166 | ||
2167 | echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6 | |
360d6699 | 2168 | echo "configure:2169: checking "for --enable-mem_tracing"" >&5 |
10f2d63a VZ |
2169 | no_cache=0 |
2170 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2171 | if test "${enable_mem_tracing+set}" = set; then | |
2172 | enableval="$enable_mem_tracing" | |
2173 | ||
2174 | if test "$enableval" = yes; then | |
2175 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2176 | else | |
2177 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2178 | fi | |
2179 | ||
2180 | else | |
2181 | ||
2182 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
2183 | if test "x$LINE" != x ; then | |
2184 | eval "DEFAULT_$LINE" | |
2185 | else | |
2186 | no_cache=1 | |
2187 | fi | |
2188 | ||
2189 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
2190 | ||
2191 | fi | |
2192 | ||
2193 | ||
2194 | eval "$ac_cv_use_mem_tracing" | |
2195 | if test "$no_cache" != 1; then | |
2196 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2197 | fi | |
2198 | ||
2199 | if test "$wxUSE_MEM_TRACING" = yes; then | |
2200 | echo "$ac_t""yes" 1>&6 | |
2201 | else | |
2202 | echo "$ac_t""no" 1>&6 | |
2203 | fi | |
2204 | ||
2205 | ||
2206 | echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6 | |
360d6699 | 2207 | echo "configure:2208: checking "for --enable-profile"" >&5 |
10f2d63a VZ |
2208 | no_cache=0 |
2209 | # Check whether --enable-profile or --disable-profile was given. | |
2210 | if test "${enable_profile+set}" = set; then | |
2211 | enableval="$enable_profile" | |
2212 | ||
2213 | if test "$enableval" = yes; then | |
2214 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2215 | else | |
2216 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2217 | fi | |
2218 | ||
2219 | else | |
2220 | ||
2221 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
2222 | if test "x$LINE" != x ; then | |
2223 | eval "DEFAULT_$LINE" | |
2224 | else | |
2225 | no_cache=1 | |
2226 | fi | |
2227 | ||
2228 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
2229 | ||
2230 | fi | |
2231 | ||
2232 | ||
2233 | eval "$ac_cv_use_profile" | |
2234 | if test "$no_cache" != 1; then | |
2235 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2236 | fi | |
2237 | ||
2238 | if test "$wxUSE_PROFILE" = yes; then | |
2239 | echo "$ac_t""yes" 1>&6 | |
2240 | else | |
2241 | echo "$ac_t""no" 1>&6 | |
2242 | fi | |
2243 | ||
2244 | ||
2245 | echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6 | |
360d6699 | 2246 | echo "configure:2247: checking "for --enable-no_rtti"" >&5 |
10f2d63a VZ |
2247 | no_cache=0 |
2248 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2249 | if test "${enable_no_rtti+set}" = set; then | |
2250 | enableval="$enable_no_rtti" | |
2251 | ||
2252 | if test "$enableval" = yes; then | |
2253 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2254 | else | |
2255 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2256 | fi | |
2257 | ||
2258 | else | |
2259 | ||
2260 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
2261 | if test "x$LINE" != x ; then | |
2262 | eval "DEFAULT_$LINE" | |
2263 | else | |
2264 | no_cache=1 | |
2265 | fi | |
2266 | ||
2267 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
2268 | ||
2269 | fi | |
2270 | ||
2271 | ||
2272 | eval "$ac_cv_use_no_rtti" | |
2273 | if test "$no_cache" != 1; then | |
2274 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2275 | fi | |
2276 | ||
2277 | if test "$wxUSE_NO_RTTI" = yes; then | |
2278 | echo "$ac_t""yes" 1>&6 | |
2279 | else | |
2280 | echo "$ac_t""no" 1>&6 | |
2281 | fi | |
2282 | ||
2283 | ||
2284 | echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6 | |
360d6699 | 2285 | echo "configure:2286: checking "for --enable-no_exceptions"" >&5 |
10f2d63a VZ |
2286 | no_cache=0 |
2287 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2288 | if test "${enable_no_exceptions+set}" = set; then | |
2289 | enableval="$enable_no_exceptions" | |
2290 | ||
2291 | if test "$enableval" = yes; then | |
2292 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2293 | else | |
2294 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2295 | fi | |
2296 | ||
2297 | else | |
2298 | ||
2299 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
2300 | if test "x$LINE" != x ; then | |
2301 | eval "DEFAULT_$LINE" | |
2302 | else | |
2303 | no_cache=1 | |
2304 | fi | |
2305 | ||
2306 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
2307 | ||
2308 | fi | |
2309 | ||
2310 | ||
2311 | eval "$ac_cv_use_no_exceptions" | |
2312 | if test "$no_cache" != 1; then | |
2313 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2314 | fi | |
2315 | ||
2316 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
2317 | echo "$ac_t""yes" 1>&6 | |
2318 | else | |
2319 | echo "$ac_t""no" 1>&6 | |
2320 | fi | |
2321 | ||
2322 | ||
2323 | echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6 | |
360d6699 | 2324 | echo "configure:2325: checking "for --enable-permissive"" >&5 |
10f2d63a VZ |
2325 | no_cache=0 |
2326 | # Check whether --enable-permissive or --disable-permissive was given. | |
2327 | if test "${enable_permissive+set}" = set; then | |
2328 | enableval="$enable_permissive" | |
2329 | ||
2330 | if test "$enableval" = yes; then | |
2331 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2332 | else | |
2333 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2334 | fi | |
2335 | ||
2336 | else | |
2337 | ||
2338 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
2339 | if test "x$LINE" != x ; then | |
2340 | eval "DEFAULT_$LINE" | |
2341 | else | |
2342 | no_cache=1 | |
2343 | fi | |
2344 | ||
2345 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
2346 | ||
2347 | fi | |
2348 | ||
2349 | ||
2350 | eval "$ac_cv_use_permissive" | |
2351 | if test "$no_cache" != 1; then | |
2352 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2353 | fi | |
2354 | ||
2355 | if test "$wxUSE_PERMISSIVE" = yes; then | |
2356 | echo "$ac_t""yes" 1>&6 | |
2357 | else | |
2358 | echo "$ac_t""no" 1>&6 | |
2359 | fi | |
2360 | ||
2361 | ||
2362 | echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6 | |
360d6699 | 2363 | echo "configure:2364: checking "for --enable-no_deps"" >&5 |
10f2d63a VZ |
2364 | no_cache=0 |
2365 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2366 | if test "${enable_no_deps+set}" = set; then | |
2367 | enableval="$enable_no_deps" | |
2368 | ||
2369 | if test "$enableval" = yes; then | |
2370 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2371 | else | |
2372 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2373 | fi | |
2374 | ||
2375 | else | |
2376 | ||
2377 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
2378 | if test "x$LINE" != x ; then | |
2379 | eval "DEFAULT_$LINE" | |
2380 | else | |
2381 | no_cache=1 | |
2382 | fi | |
2383 | ||
2384 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
2385 | ||
2386 | fi | |
2387 | ||
2388 | ||
2389 | eval "$ac_cv_use_no_deps" | |
2390 | if test "$no_cache" != 1; then | |
2391 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2392 | fi | |
2393 | ||
2394 | if test "$wxUSE_NO_DEPS" = yes; then | |
2395 | echo "$ac_t""yes" 1>&6 | |
2396 | else | |
2397 | echo "$ac_t""no" 1>&6 | |
2398 | fi | |
2399 | ||
2400 | ||
2401 | ||
2402 | ||
2403 | echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6 | |
360d6699 | 2404 | echo "configure:2405: checking "for --enable-intl"" >&5 |
10f2d63a VZ |
2405 | no_cache=0 |
2406 | # Check whether --enable-intl or --disable-intl was given. | |
2407 | if test "${enable_intl+set}" = set; then | |
2408 | enableval="$enable_intl" | |
2409 | ||
2410 | if test "$enableval" = yes; then | |
2411 | ac_cv_use_intl='wxUSE_INTL=yes' | |
2412 | else | |
2413 | ac_cv_use_intl='wxUSE_INTL=no' | |
2414 | fi | |
2415 | ||
2416 | else | |
2417 | ||
2418 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
2419 | if test "x$LINE" != x ; then | |
2420 | eval "DEFAULT_$LINE" | |
2421 | else | |
2422 | no_cache=1 | |
2423 | fi | |
2424 | ||
2425 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
2426 | ||
2427 | fi | |
2428 | ||
2429 | ||
2430 | eval "$ac_cv_use_intl" | |
2431 | if test "$no_cache" != 1; then | |
2432 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
2433 | fi | |
2434 | ||
2435 | if test "$wxUSE_INTL" = yes; then | |
2436 | echo "$ac_t""yes" 1>&6 | |
2437 | else | |
2438 | echo "$ac_t""no" 1>&6 | |
2439 | fi | |
2440 | ||
2441 | ||
2442 | echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6 | |
360d6699 | 2443 | echo "configure:2444: checking "for --enable-config"" >&5 |
10f2d63a VZ |
2444 | no_cache=0 |
2445 | # Check whether --enable-config or --disable-config was given. | |
2446 | if test "${enable_config+set}" = set; then | |
2447 | enableval="$enable_config" | |
2448 | ||
2449 | if test "$enableval" = yes; then | |
2450 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
2451 | else | |
2452 | ac_cv_use_config='wxUSE_CONFIG=no' | |
2453 | fi | |
2454 | ||
2455 | else | |
2456 | ||
2457 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
2458 | if test "x$LINE" != x ; then | |
2459 | eval "DEFAULT_$LINE" | |
2460 | else | |
2461 | no_cache=1 | |
2462 | fi | |
2463 | ||
2464 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
2465 | ||
2466 | fi | |
2467 | ||
2468 | ||
2469 | eval "$ac_cv_use_config" | |
2470 | if test "$no_cache" != 1; then | |
2471 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
2472 | fi | |
2473 | ||
2474 | if test "$wxUSE_CONFIG" = yes; then | |
2475 | echo "$ac_t""yes" 1>&6 | |
2476 | else | |
2477 | echo "$ac_t""no" 1>&6 | |
2478 | fi | |
2479 | ||
2480 | ||
2481 | echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6 | |
360d6699 | 2482 | echo "configure:2483: checking "for --enable-sockets"" >&5 |
10f2d63a VZ |
2483 | no_cache=0 |
2484 | # Check whether --enable-sockets or --disable-sockets was given. | |
2485 | if test "${enable_sockets+set}" = set; then | |
2486 | enableval="$enable_sockets" | |
2487 | ||
2488 | if test "$enableval" = yes; then | |
2489 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
2490 | else | |
2491 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
2492 | fi | |
2493 | ||
2494 | else | |
2495 | ||
2496 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
2497 | if test "x$LINE" != x ; then | |
2498 | eval "DEFAULT_$LINE" | |
2499 | else | |
2500 | no_cache=1 | |
2501 | fi | |
2502 | ||
2503 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
2504 | ||
2505 | fi | |
2506 | ||
2507 | ||
2508 | eval "$ac_cv_use_sockets" | |
2509 | if test "$no_cache" != 1; then | |
2510 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
2511 | fi | |
2512 | ||
2513 | if test "$wxUSE_SOCKETS" = yes; then | |
2514 | echo "$ac_t""yes" 1>&6 | |
2515 | else | |
2516 | echo "$ac_t""no" 1>&6 | |
2517 | fi | |
2518 | ||
2519 | ||
2520 | echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6 | |
360d6699 | 2521 | echo "configure:2522: checking "for --enable-dialupman"" >&5 |
10f2d63a VZ |
2522 | no_cache=0 |
2523 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
2524 | if test "${enable_dialupman+set}" = set; then | |
2525 | enableval="$enable_dialupman" | |
2526 | ||
2527 | if test "$enableval" = yes; then | |
2528 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
2529 | else | |
2530 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
2531 | fi | |
2532 | ||
2533 | else | |
2534 | ||
2535 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
2536 | if test "x$LINE" != x ; then | |
2537 | eval "DEFAULT_$LINE" | |
2538 | else | |
2539 | no_cache=1 | |
2540 | fi | |
2541 | ||
2542 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
2543 | ||
2544 | fi | |
2545 | ||
2546 | ||
2547 | eval "$ac_cv_use_dialupman" | |
2548 | if test "$no_cache" != 1; then | |
2549 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
2550 | fi | |
2551 | ||
2552 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
2553 | echo "$ac_t""yes" 1>&6 | |
2554 | else | |
2555 | echo "$ac_t""no" 1>&6 | |
2556 | fi | |
2557 | ||
2558 | ||
2559 | echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6 | |
360d6699 | 2560 | echo "configure:2561: checking "for --enable-ipc"" >&5 |
10f2d63a VZ |
2561 | no_cache=0 |
2562 | # Check whether --enable-ipc or --disable-ipc was given. | |
2563 | if test "${enable_ipc+set}" = set; then | |
2564 | enableval="$enable_ipc" | |
2565 | ||
2566 | if test "$enableval" = yes; then | |
2567 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
2568 | else | |
2569 | ac_cv_use_ipc='wxUSE_IPC=no' | |
2570 | fi | |
2571 | ||
2572 | else | |
2573 | ||
2574 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
2575 | if test "x$LINE" != x ; then | |
2576 | eval "DEFAULT_$LINE" | |
2577 | else | |
2578 | no_cache=1 | |
2579 | fi | |
2580 | ||
2581 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
2582 | ||
2583 | fi | |
2584 | ||
2585 | ||
2586 | eval "$ac_cv_use_ipc" | |
2587 | if test "$no_cache" != 1; then | |
2588 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
2589 | fi | |
2590 | ||
2591 | if test "$wxUSE_IPC" = yes; then | |
2592 | echo "$ac_t""yes" 1>&6 | |
2593 | else | |
2594 | echo "$ac_t""no" 1>&6 | |
2595 | fi | |
2596 | ||
2597 | ||
2598 | echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6 | |
360d6699 | 2599 | echo "configure:2600: checking "for --enable-apple_ieee"" >&5 |
10f2d63a VZ |
2600 | no_cache=0 |
2601 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
2602 | if test "${enable_apple_ieee+set}" = set; then | |
2603 | enableval="$enable_apple_ieee" | |
2604 | ||
2605 | if test "$enableval" = yes; then | |
2606 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
2607 | else | |
2608 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
2609 | fi | |
2610 | ||
2611 | else | |
2612 | ||
2613 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
2614 | if test "x$LINE" != x ; then | |
2615 | eval "DEFAULT_$LINE" | |
2616 | else | |
2617 | no_cache=1 | |
2618 | fi | |
2619 | ||
2620 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
2621 | ||
2622 | fi | |
2623 | ||
2624 | ||
2625 | eval "$ac_cv_use_apple_ieee" | |
2626 | if test "$no_cache" != 1; then | |
2627 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
2628 | fi | |
2629 | ||
2630 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
2631 | echo "$ac_t""yes" 1>&6 | |
2632 | else | |
2633 | echo "$ac_t""no" 1>&6 | |
2634 | fi | |
2635 | ||
2636 | ||
2637 | echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6 | |
360d6699 | 2638 | echo "configure:2639: checking "for --enable-timedate"" >&5 |
10f2d63a VZ |
2639 | no_cache=0 |
2640 | # Check whether --enable-timedate or --disable-timedate was given. | |
2641 | if test "${enable_timedate+set}" = set; then | |
2642 | enableval="$enable_timedate" | |
2643 | ||
2644 | if test "$enableval" = yes; then | |
2645 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
2646 | else | |
2647 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
2648 | fi | |
2649 | ||
2650 | else | |
2651 | ||
2652 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
2653 | if test "x$LINE" != x ; then | |
2654 | eval "DEFAULT_$LINE" | |
2655 | else | |
2656 | no_cache=1 | |
2657 | fi | |
2658 | ||
2659 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
2660 | ||
2661 | fi | |
2662 | ||
2663 | ||
2664 | eval "$ac_cv_use_timedate" | |
2665 | if test "$no_cache" != 1; then | |
2666 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
2667 | fi | |
2668 | ||
2669 | if test "$wxUSE_TIMEDATE" = yes; then | |
2670 | echo "$ac_t""yes" 1>&6 | |
2671 | else | |
2672 | echo "$ac_t""no" 1>&6 | |
2673 | fi | |
2674 | ||
2675 | ||
2676 | echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6 | |
360d6699 | 2677 | echo "configure:2678: checking "for --enable-wave"" >&5 |
10f2d63a VZ |
2678 | no_cache=0 |
2679 | # Check whether --enable-wave or --disable-wave was given. | |
2680 | if test "${enable_wave+set}" = set; then | |
2681 | enableval="$enable_wave" | |
2682 | ||
2683 | if test "$enableval" = yes; then | |
2684 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
2685 | else | |
2686 | ac_cv_use_wave='wxUSE_WAVE=no' | |
2687 | fi | |
2688 | ||
2689 | else | |
2690 | ||
2691 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` | |
2692 | if test "x$LINE" != x ; then | |
2693 | eval "DEFAULT_$LINE" | |
2694 | else | |
2695 | no_cache=1 | |
2696 | fi | |
2697 | ||
2698 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
2699 | ||
2700 | fi | |
2701 | ||
2702 | ||
2703 | eval "$ac_cv_use_wave" | |
2704 | if test "$no_cache" != 1; then | |
2705 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
2706 | fi | |
2707 | ||
2708 | if test "$wxUSE_WAVE" = yes; then | |
2709 | echo "$ac_t""yes" 1>&6 | |
2710 | else | |
2711 | echo "$ac_t""no" 1>&6 | |
2712 | fi | |
2713 | ||
2714 | ||
2715 | echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6 | |
360d6699 | 2716 | echo "configure:2717: checking "for --enable-fraction"" >&5 |
10f2d63a VZ |
2717 | no_cache=0 |
2718 | # Check whether --enable-fraction or --disable-fraction was given. | |
2719 | if test "${enable_fraction+set}" = set; then | |
2720 | enableval="$enable_fraction" | |
2721 | ||
2722 | if test "$enableval" = yes; then | |
2723 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
2724 | else | |
2725 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
2726 | fi | |
2727 | ||
2728 | else | |
2729 | ||
2730 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` | |
2731 | if test "x$LINE" != x ; then | |
2732 | eval "DEFAULT_$LINE" | |
2733 | else | |
2734 | no_cache=1 | |
2735 | fi | |
2736 | ||
2737 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
2738 | ||
2739 | fi | |
2740 | ||
2741 | ||
2742 | eval "$ac_cv_use_fraction" | |
2743 | if test "$no_cache" != 1; then | |
2744 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
2745 | fi | |
2746 | ||
2747 | if test "$wxUSE_FRACTION" = yes; then | |
2748 | echo "$ac_t""yes" 1>&6 | |
2749 | else | |
2750 | echo "$ac_t""no" 1>&6 | |
2751 | fi | |
2752 | ||
2753 | ||
2754 | echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6 | |
360d6699 | 2755 | echo "configure:2756: checking "for --enable-dynlib"" >&5 |
10f2d63a VZ |
2756 | no_cache=0 |
2757 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
2758 | if test "${enable_dynlib+set}" = set; then | |
2759 | enableval="$enable_dynlib" | |
2760 | ||
2761 | if test "$enableval" = yes; then | |
2762 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
2763 | else | |
2764 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
2765 | fi | |
2766 | ||
2767 | else | |
2768 | ||
2769 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
2770 | if test "x$LINE" != x ; then | |
2771 | eval "DEFAULT_$LINE" | |
2772 | else | |
2773 | no_cache=1 | |
2774 | fi | |
2775 | ||
2776 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
2777 | ||
2778 | fi | |
2779 | ||
2780 | ||
2781 | eval "$ac_cv_use_dynlib" | |
2782 | if test "$no_cache" != 1; then | |
2783 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
2784 | fi | |
2785 | ||
2786 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
2787 | echo "$ac_t""yes" 1>&6 | |
2788 | else | |
2789 | echo "$ac_t""no" 1>&6 | |
2790 | fi | |
2791 | ||
2792 | ||
2793 | echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6 | |
360d6699 | 2794 | echo "configure:2795: checking "for --enable-longlong"" >&5 |
10f2d63a VZ |
2795 | no_cache=0 |
2796 | # Check whether --enable-longlong or --disable-longlong was given. | |
2797 | if test "${enable_longlong+set}" = set; then | |
2798 | enableval="$enable_longlong" | |
2799 | ||
2800 | if test "$enableval" = yes; then | |
2801 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
2802 | else | |
2803 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
2804 | fi | |
2805 | ||
2806 | else | |
2807 | ||
2808 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
2809 | if test "x$LINE" != x ; then | |
2810 | eval "DEFAULT_$LINE" | |
2811 | else | |
2812 | no_cache=1 | |
2813 | fi | |
2814 | ||
2815 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
2816 | ||
2817 | fi | |
2818 | ||
2819 | ||
2820 | eval "$ac_cv_use_longlong" | |
2821 | if test "$no_cache" != 1; then | |
2822 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
2823 | fi | |
2824 | ||
2825 | if test "$wxUSE_LONGLONG" = yes; then | |
2826 | echo "$ac_t""yes" 1>&6 | |
2827 | else | |
2828 | echo "$ac_t""no" 1>&6 | |
2829 | fi | |
2830 | ||
2831 | ||
2832 | echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6 | |
360d6699 | 2833 | echo "configure:2834: checking "for --enable-log"" >&5 |
10f2d63a VZ |
2834 | no_cache=0 |
2835 | # Check whether --enable-log or --disable-log was given. | |
2836 | if test "${enable_log+set}" = set; then | |
2837 | enableval="$enable_log" | |
2838 | ||
2839 | if test "$enableval" = yes; then | |
2840 | ac_cv_use_log='wxUSE_LOG=yes' | |
2841 | else | |
2842 | ac_cv_use_log='wxUSE_LOG=no' | |
2843 | fi | |
2844 | ||
2845 | else | |
2846 | ||
2847 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
2848 | if test "x$LINE" != x ; then | |
2849 | eval "DEFAULT_$LINE" | |
2850 | else | |
2851 | no_cache=1 | |
2852 | fi | |
2853 | ||
2854 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
2855 | ||
2856 | fi | |
2857 | ||
2858 | ||
2859 | eval "$ac_cv_use_log" | |
2860 | if test "$no_cache" != 1; then | |
2861 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
2862 | fi | |
2863 | ||
2864 | if test "$wxUSE_LOG" = yes; then | |
2865 | echo "$ac_t""yes" 1>&6 | |
2866 | else | |
2867 | echo "$ac_t""no" 1>&6 | |
2868 | fi | |
2869 | ||
2870 | ||
2871 | echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6 | |
360d6699 | 2872 | echo "configure:2873: checking "for --enable-streams"" >&5 |
10f2d63a VZ |
2873 | no_cache=0 |
2874 | # Check whether --enable-streams or --disable-streams was given. | |
2875 | if test "${enable_streams+set}" = set; then | |
2876 | enableval="$enable_streams" | |
2877 | ||
2878 | if test "$enableval" = yes; then | |
2879 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
2880 | else | |
2881 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
2882 | fi | |
2883 | ||
2884 | else | |
2885 | ||
2886 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
2887 | if test "x$LINE" != x ; then | |
2888 | eval "DEFAULT_$LINE" | |
2889 | else | |
2890 | no_cache=1 | |
2891 | fi | |
2892 | ||
2893 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
2894 | ||
2895 | fi | |
2896 | ||
2897 | ||
2898 | eval "$ac_cv_use_streams" | |
2899 | if test "$no_cache" != 1; then | |
2900 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
2901 | fi | |
2902 | ||
2903 | if test "$wxUSE_STREAMS" = yes; then | |
2904 | echo "$ac_t""yes" 1>&6 | |
2905 | else | |
2906 | echo "$ac_t""no" 1>&6 | |
2907 | fi | |
2908 | ||
2909 | ||
2910 | echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6 | |
360d6699 | 2911 | echo "configure:2912: checking "for --enable-file"" >&5 |
10f2d63a VZ |
2912 | no_cache=0 |
2913 | # Check whether --enable-file or --disable-file was given. | |
2914 | if test "${enable_file+set}" = set; then | |
2915 | enableval="$enable_file" | |
2916 | ||
2917 | if test "$enableval" = yes; then | |
2918 | ac_cv_use_file='wxUSE_FILE=yes' | |
2919 | else | |
2920 | ac_cv_use_file='wxUSE_FILE=no' | |
2921 | fi | |
2922 | ||
2923 | else | |
2924 | ||
2925 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
2926 | if test "x$LINE" != x ; then | |
2927 | eval "DEFAULT_$LINE" | |
2928 | else | |
2929 | no_cache=1 | |
2930 | fi | |
2931 | ||
2932 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
2933 | ||
2934 | fi | |
2935 | ||
2936 | ||
2937 | eval "$ac_cv_use_file" | |
2938 | if test "$no_cache" != 1; then | |
2939 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
2940 | fi | |
2941 | ||
2942 | if test "$wxUSE_FILE" = yes; then | |
2943 | echo "$ac_t""yes" 1>&6 | |
2944 | else | |
2945 | echo "$ac_t""no" 1>&6 | |
2946 | fi | |
2947 | ||
2948 | ||
2949 | echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6 | |
360d6699 | 2950 | echo "configure:2951: checking "for --enable-textfile"" >&5 |
10f2d63a VZ |
2951 | no_cache=0 |
2952 | # Check whether --enable-textfile or --disable-textfile was given. | |
2953 | if test "${enable_textfile+set}" = set; then | |
2954 | enableval="$enable_textfile" | |
2955 | ||
2956 | if test "$enableval" = yes; then | |
2957 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
2958 | else | |
2959 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
2960 | fi | |
2961 | ||
2962 | else | |
2963 | ||
2964 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
2965 | if test "x$LINE" != x ; then | |
2966 | eval "DEFAULT_$LINE" | |
2967 | else | |
2968 | no_cache=1 | |
2969 | fi | |
2970 | ||
2971 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
2972 | ||
2973 | fi | |
2974 | ||
2975 | ||
2976 | eval "$ac_cv_use_textfile" | |
2977 | if test "$no_cache" != 1; then | |
2978 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
2979 | fi | |
2980 | ||
2981 | if test "$wxUSE_TEXTFILE" = yes; then | |
2982 | echo "$ac_t""yes" 1>&6 | |
2983 | else | |
2984 | echo "$ac_t""no" 1>&6 | |
2985 | fi | |
2986 | ||
2987 | ||
2988 | echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6 | |
360d6699 | 2989 | echo "configure:2990: checking "for --enable-unicode"" >&5 |
10f2d63a VZ |
2990 | no_cache=0 |
2991 | # Check whether --enable-unicode or --disable-unicode was given. | |
2992 | if test "${enable_unicode+set}" = set; then | |
2993 | enableval="$enable_unicode" | |
2994 | ||
2995 | if test "$enableval" = yes; then | |
2996 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
2997 | else | |
2998 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
2999 | fi | |
3000 | ||
3001 | else | |
3002 | ||
3003 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
3004 | if test "x$LINE" != x ; then | |
3005 | eval "DEFAULT_$LINE" | |
3006 | else | |
3007 | no_cache=1 | |
3008 | fi | |
3009 | ||
3010 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
3011 | ||
3012 | fi | |
3013 | ||
3014 | ||
3015 | eval "$ac_cv_use_unicode" | |
3016 | if test "$no_cache" != 1; then | |
3017 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
3018 | fi | |
3019 | ||
3020 | if test "$wxUSE_UNICODE" = yes; then | |
3021 | echo "$ac_t""yes" 1>&6 | |
3022 | else | |
3023 | echo "$ac_t""no" 1>&6 | |
3024 | fi | |
3025 | ||
3026 | ||
3027 | echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6 | |
360d6699 | 3028 | echo "configure:3029: checking "for --enable-wcsrtombs"" >&5 |
10f2d63a VZ |
3029 | no_cache=0 |
3030 | # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given. | |
3031 | if test "${enable_wcsrtombs+set}" = set; then | |
3032 | enableval="$enable_wcsrtombs" | |
3033 | ||
3034 | if test "$enableval" = yes; then | |
3035 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes' | |
3036 | else | |
3037 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no' | |
3038 | fi | |
3039 | ||
3040 | else | |
3041 | ||
3042 | LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}` | |
3043 | if test "x$LINE" != x ; then | |
3044 | eval "DEFAULT_$LINE" | |
3045 | else | |
3046 | no_cache=1 | |
3047 | fi | |
3048 | ||
3049 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS | |
3050 | ||
3051 | fi | |
3052 | ||
3053 | ||
3054 | eval "$ac_cv_use_wcsrtombs" | |
3055 | if test "$no_cache" != 1; then | |
3056 | echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp | |
3057 | fi | |
3058 | ||
3059 | if test "$wxUSE_WCSRTOMBS" = yes; then | |
3060 | echo "$ac_t""yes" 1>&6 | |
3061 | else | |
3062 | echo "$ac_t""no" 1>&6 | |
3063 | fi | |
3064 | ||
3065 | ||
3066 | echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6 | |
360d6699 | 3067 | echo "configure:3068: checking "for --enable-wxprintfv"" >&5 |
10f2d63a VZ |
3068 | no_cache=0 |
3069 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
3070 | if test "${enable_wxprintfv+set}" = set; then | |
3071 | enableval="$enable_wxprintfv" | |
3072 | ||
3073 | if test "$enableval" = yes; then | |
3074 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
3075 | else | |
3076 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
3077 | fi | |
3078 | ||
3079 | else | |
3080 | ||
3081 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
3082 | if test "x$LINE" != x ; then | |
3083 | eval "DEFAULT_$LINE" | |
3084 | else | |
3085 | no_cache=1 | |
3086 | fi | |
3087 | ||
3088 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
3089 | ||
3090 | fi | |
3091 | ||
3092 | ||
3093 | eval "$ac_cv_use_wxprintfv" | |
3094 | if test "$no_cache" != 1; then | |
3095 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
3096 | fi | |
3097 | ||
3098 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
3099 | echo "$ac_t""yes" 1>&6 | |
3100 | else | |
3101 | echo "$ac_t""no" 1>&6 | |
3102 | fi | |
3103 | ||
3104 | ||
3105 | echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6 | |
360d6699 | 3106 | echo "configure:3107: checking "for --enable-joystick"" >&5 |
10f2d63a VZ |
3107 | no_cache=0 |
3108 | # Check whether --enable-joystick or --disable-joystick was given. | |
3109 | if test "${enable_joystick+set}" = set; then | |
3110 | enableval="$enable_joystick" | |
3111 | ||
3112 | if test "$enableval" = yes; then | |
3113 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
3114 | else | |
3115 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
3116 | fi | |
3117 | ||
3118 | else | |
3119 | ||
3120 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
3121 | if test "x$LINE" != x ; then | |
3122 | eval "DEFAULT_$LINE" | |
3123 | else | |
3124 | no_cache=1 | |
3125 | fi | |
3126 | ||
3127 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
3128 | ||
3129 | fi | |
3130 | ||
3131 | ||
3132 | eval "$ac_cv_use_joystick" | |
3133 | if test "$no_cache" != 1; then | |
3134 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
3135 | fi | |
3136 | ||
3137 | if test "$wxUSE_JOYSTICK" = yes; then | |
3138 | echo "$ac_t""yes" 1>&6 | |
3139 | else | |
3140 | echo "$ac_t""no" 1>&6 | |
3141 | fi | |
3142 | ||
3143 | ||
3144 | echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6 | |
360d6699 | 3145 | echo "configure:3146: checking "for --enable-std_iostreams"" >&5 |
10f2d63a VZ |
3146 | no_cache=0 |
3147 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
3148 | if test "${enable_std_iostreams+set}" = set; then | |
3149 | enableval="$enable_std_iostreams" | |
3150 | ||
3151 | if test "$enableval" = yes; then | |
3152 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
3153 | else | |
3154 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
3155 | fi | |
3156 | ||
3157 | else | |
3158 | ||
3159 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` | |
3160 | if test "x$LINE" != x ; then | |
3161 | eval "DEFAULT_$LINE" | |
3162 | else | |
3163 | no_cache=1 | |
3164 | fi | |
3165 | ||
3166 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
3167 | ||
3168 | fi | |
3169 | ||
3170 | ||
3171 | eval "$ac_cv_use_std_iostreams" | |
3172 | if test "$no_cache" != 1; then | |
3173 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
3174 | fi | |
3175 | ||
3176 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
3177 | echo "$ac_t""yes" 1>&6 | |
3178 | else | |
3179 | echo "$ac_t""no" 1>&6 | |
3180 | fi | |
3181 | ||
3182 | ||
3183 | echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6 | |
360d6699 | 3184 | echo "configure:3185: checking "for --enable-fs_inet"" >&5 |
10f2d63a VZ |
3185 | no_cache=0 |
3186 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
3187 | if test "${enable_fs_inet+set}" = set; then | |
3188 | enableval="$enable_fs_inet" | |
3189 | ||
3190 | if test "$enableval" = yes; then | |
3191 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
3192 | else | |
3193 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
3194 | fi | |
3195 | ||
3196 | else | |
3197 | ||
3198 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
3199 | if test "x$LINE" != x ; then | |
3200 | eval "DEFAULT_$LINE" | |
3201 | else | |
3202 | no_cache=1 | |
3203 | fi | |
3204 | ||
3205 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
3206 | ||
3207 | fi | |
3208 | ||
3209 | ||
3210 | eval "$ac_cv_use_fs_inet" | |
3211 | if test "$no_cache" != 1; then | |
3212 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
3213 | fi | |
3214 | ||
3215 | if test "$wxUSE_FS_INET" = yes; then | |
3216 | echo "$ac_t""yes" 1>&6 | |
3217 | else | |
3218 | echo "$ac_t""no" 1>&6 | |
3219 | fi | |
3220 | ||
3221 | ||
3222 | echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6 | |
360d6699 | 3223 | echo "configure:3224: checking "for --enable-fs_zip"" >&5 |
10f2d63a VZ |
3224 | no_cache=0 |
3225 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
3226 | if test "${enable_fs_zip+set}" = set; then | |
3227 | enableval="$enable_fs_zip" | |
3228 | ||
3229 | if test "$enableval" = yes; then | |
3230 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
3231 | else | |
3232 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
3233 | fi | |
3234 | ||
3235 | else | |
3236 | ||
3237 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
3238 | if test "x$LINE" != x ; then | |
3239 | eval "DEFAULT_$LINE" | |
3240 | else | |
3241 | no_cache=1 | |
3242 | fi | |
3243 | ||
3244 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
3245 | ||
3246 | fi | |
3247 | ||
3248 | ||
3249 | eval "$ac_cv_use_fs_zip" | |
3250 | if test "$no_cache" != 1; then | |
3251 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
3252 | fi | |
3253 | ||
3254 | if test "$wxUSE_FS_ZIP" = yes; then | |
3255 | echo "$ac_t""yes" 1>&6 | |
3256 | else | |
3257 | echo "$ac_t""no" 1>&6 | |
3258 | fi | |
3259 | ||
3260 | ||
3261 | echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6 | |
360d6699 | 3262 | echo "configure:3263: checking "for --enable-zipstream"" >&5 |
10f2d63a VZ |
3263 | no_cache=0 |
3264 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
3265 | if test "${enable_zipstream+set}" = set; then | |
3266 | enableval="$enable_zipstream" | |
3267 | ||
3268 | if test "$enableval" = yes; then | |
3269 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
3270 | else | |
3271 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
3272 | fi | |
3273 | ||
3274 | else | |
3275 | ||
3276 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
3277 | if test "x$LINE" != x ; then | |
3278 | eval "DEFAULT_$LINE" | |
3279 | else | |
3280 | no_cache=1 | |
3281 | fi | |
3282 | ||
3283 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
3284 | ||
3285 | fi | |
3286 | ||
3287 | ||
3288 | eval "$ac_cv_use_zipstream" | |
3289 | if test "$no_cache" != 1; then | |
3290 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
3291 | fi | |
3292 | ||
3293 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
3294 | echo "$ac_t""yes" 1>&6 | |
3295 | else | |
3296 | echo "$ac_t""no" 1>&6 | |
3297 | fi | |
3298 | ||
3299 | ||
3300 | ||
3301 | ||
3302 | echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6 | |
360d6699 | 3303 | echo "configure:3304: checking "for --enable-threads"" >&5 |
10f2d63a VZ |
3304 | no_cache=0 |
3305 | # Check whether --enable-threads or --disable-threads was given. | |
3306 | if test "${enable_threads+set}" = set; then | |
3307 | enableval="$enable_threads" | |
3308 | ||
3309 | if test "$enableval" = yes; then | |
3310 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
3311 | else | |
3312 | ac_cv_use_threads='wxUSE_THREADS=no' | |
3313 | fi | |
3314 | ||
3315 | else | |
3316 | ||
3317 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
3318 | if test "x$LINE" != x ; then | |
3319 | eval "DEFAULT_$LINE" | |
3320 | else | |
3321 | no_cache=1 | |
3322 | fi | |
3323 | ||
3324 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
3325 | ||
3326 | fi | |
3327 | ||
3328 | ||
3329 | eval "$ac_cv_use_threads" | |
3330 | if test "$no_cache" != 1; then | |
3331 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
3332 | fi | |
3333 | ||
3334 | if test "$wxUSE_THREADS" = yes; then | |
3335 | echo "$ac_t""yes" 1>&6 | |
3336 | else | |
3337 | echo "$ac_t""no" 1>&6 | |
3338 | fi | |
3339 | ||
3340 | ||
3341 | echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6 | |
360d6699 | 3342 | echo "configure:3343: checking "for --enable-serial"" >&5 |
10f2d63a VZ |
3343 | no_cache=0 |
3344 | # Check whether --enable-serial or --disable-serial was given. | |
3345 | if test "${enable_serial+set}" = set; then | |
3346 | enableval="$enable_serial" | |
3347 | ||
3348 | if test "$enableval" = yes; then | |
3349 | ac_cv_use_serial='wxUSE_SERIAL=yes' | |
3350 | else | |
3351 | ac_cv_use_serial='wxUSE_SERIAL=no' | |
3352 | fi | |
3353 | ||
3354 | else | |
3355 | ||
3356 | LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}` | |
3357 | if test "x$LINE" != x ; then | |
3358 | eval "DEFAULT_$LINE" | |
3359 | else | |
3360 | no_cache=1 | |
3361 | fi | |
3362 | ||
3363 | ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL | |
3364 | ||
3365 | fi | |
3366 | ||
3367 | ||
3368 | eval "$ac_cv_use_serial" | |
3369 | if test "$no_cache" != 1; then | |
3370 | echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp | |
3371 | fi | |
3372 | ||
3373 | if test "$wxUSE_SERIAL" = yes; then | |
3374 | echo "$ac_t""yes" 1>&6 | |
3375 | else | |
3376 | echo "$ac_t""no" 1>&6 | |
3377 | fi | |
3378 | ||
3379 | ||
3380 | ||
3381 | ||
3382 | echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6 | |
360d6699 | 3383 | echo "configure:3384: checking "for --enable-docview"" >&5 |
10f2d63a VZ |
3384 | no_cache=0 |
3385 | # Check whether --enable-docview or --disable-docview was given. | |
3386 | if test "${enable_docview+set}" = set; then | |
3387 | enableval="$enable_docview" | |
3388 | ||
3389 | if test "$enableval" = yes; then | |
3390 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
3391 | else | |
3392 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
3393 | fi | |
3394 | ||
3395 | else | |
3396 | ||
3397 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
3398 | if test "x$LINE" != x ; then | |
3399 | eval "DEFAULT_$LINE" | |
3400 | else | |
3401 | no_cache=1 | |
3402 | fi | |
3403 | ||
3404 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
3405 | ||
3406 | fi | |
3407 | ||
3408 | ||
3409 | eval "$ac_cv_use_docview" | |
3410 | if test "$no_cache" != 1; then | |
3411 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
3412 | fi | |
3413 | ||
3414 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
3415 | echo "$ac_t""yes" 1>&6 | |
3416 | else | |
3417 | echo "$ac_t""no" 1>&6 | |
3418 | fi | |
3419 | ||
3420 | ||
3421 | echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6 | |
360d6699 | 3422 | echo "configure:3423: checking "for --enable-help"" >&5 |
10f2d63a VZ |
3423 | no_cache=0 |
3424 | # Check whether --enable-help or --disable-help was given. | |
3425 | if test "${enable_help+set}" = set; then | |
3426 | enableval="$enable_help" | |
3427 | ||
3428 | if test "$enableval" = yes; then | |
3429 | ac_cv_use_help='wxUSE_HELP=yes' | |
3430 | else | |
3431 | ac_cv_use_help='wxUSE_HELP=no' | |
3432 | fi | |
3433 | ||
3434 | else | |
3435 | ||
3436 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
3437 | if test "x$LINE" != x ; then | |
3438 | eval "DEFAULT_$LINE" | |
3439 | else | |
3440 | no_cache=1 | |
3441 | fi | |
3442 | ||
3443 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
3444 | ||
3445 | fi | |
3446 | ||
3447 | ||
3448 | eval "$ac_cv_use_help" | |
3449 | if test "$no_cache" != 1; then | |
3450 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
3451 | fi | |
3452 | ||
3453 | if test "$wxUSE_HELP" = yes; then | |
3454 | echo "$ac_t""yes" 1>&6 | |
3455 | else | |
3456 | echo "$ac_t""no" 1>&6 | |
3457 | fi | |
3458 | ||
3459 | ||
3460 | echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6 | |
360d6699 | 3461 | echo "configure:3462: checking "for --enable-constraints"" >&5 |
10f2d63a VZ |
3462 | no_cache=0 |
3463 | # Check whether --enable-constraints or --disable-constraints was given. | |
3464 | if test "${enable_constraints+set}" = set; then | |
3465 | enableval="$enable_constraints" | |
3466 | ||
3467 | if test "$enableval" = yes; then | |
3468 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
3469 | else | |
3470 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
3471 | fi | |
3472 | ||
3473 | else | |
3474 | ||
3475 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
3476 | if test "x$LINE" != x ; then | |
3477 | eval "DEFAULT_$LINE" | |
3478 | else | |
3479 | no_cache=1 | |
3480 | fi | |
3481 | ||
3482 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
3483 | ||
3484 | fi | |
3485 | ||
3486 | ||
3487 | eval "$ac_cv_use_constraints" | |
3488 | if test "$no_cache" != 1; then | |
3489 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
3490 | fi | |
3491 | ||
3492 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
3493 | echo "$ac_t""yes" 1>&6 | |
3494 | else | |
3495 | echo "$ac_t""no" 1>&6 | |
3496 | fi | |
3497 | ||
3498 | ||
3499 | echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6 | |
360d6699 | 3500 | echo "configure:3501: checking "for --enable-printarch"" >&5 |
10f2d63a VZ |
3501 | no_cache=0 |
3502 | # Check whether --enable-printarch or --disable-printarch was given. | |
3503 | if test "${enable_printarch+set}" = set; then | |
3504 | enableval="$enable_printarch" | |
3505 | ||
3506 | if test "$enableval" = yes; then | |
3507 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
3508 | else | |
3509 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
3510 | fi | |
3511 | ||
3512 | else | |
3513 | ||
3514 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
3515 | if test "x$LINE" != x ; then | |
3516 | eval "DEFAULT_$LINE" | |
3517 | else | |
3518 | no_cache=1 | |
3519 | fi | |
3520 | ||
3521 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
3522 | ||
3523 | fi | |
3524 | ||
3525 | ||
3526 | eval "$ac_cv_use_printarch" | |
3527 | if test "$no_cache" != 1; then | |
3528 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
3529 | fi | |
3530 | ||
3531 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
3532 | echo "$ac_t""yes" 1>&6 | |
3533 | else | |
3534 | echo "$ac_t""no" 1>&6 | |
3535 | fi | |
3536 | ||
3537 | ||
3538 | echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6 | |
360d6699 | 3539 | echo "configure:3540: checking "for --enable-mdi"" >&5 |
10f2d63a VZ |
3540 | no_cache=0 |
3541 | # Check whether --enable-mdi or --disable-mdi was given. | |
3542 | if test "${enable_mdi+set}" = set; then | |
3543 | enableval="$enable_mdi" | |
3544 | ||
3545 | if test "$enableval" = yes; then | |
3546 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
3547 | else | |
3548 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
3549 | fi | |
3550 | ||
3551 | else | |
3552 | ||
3553 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
3554 | if test "x$LINE" != x ; then | |
3555 | eval "DEFAULT_$LINE" | |
3556 | else | |
3557 | no_cache=1 | |
3558 | fi | |
3559 | ||
3560 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
3561 | ||
3562 | fi | |
3563 | ||
3564 | ||
3565 | eval "$ac_cv_use_mdi" | |
3566 | if test "$no_cache" != 1; then | |
3567 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
3568 | fi | |
3569 | ||
3570 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
3571 | echo "$ac_t""yes" 1>&6 | |
3572 | else | |
3573 | echo "$ac_t""no" 1>&6 | |
3574 | fi | |
3575 | ||
3576 | ||
3577 | ||
3578 | echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6 | |
360d6699 | 3579 | echo "configure:3580: checking "for --enable-postscript"" >&5 |
10f2d63a VZ |
3580 | no_cache=0 |
3581 | # Check whether --enable-postscript or --disable-postscript was given. | |
3582 | if test "${enable_postscript+set}" = set; then | |
3583 | enableval="$enable_postscript" | |
3584 | ||
3585 | if test "$enableval" = yes; then | |
3586 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
3587 | else | |
3588 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
3589 | fi | |
3590 | ||
3591 | else | |
3592 | ||
3593 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
3594 | if test "x$LINE" != x ; then | |
3595 | eval "DEFAULT_$LINE" | |
3596 | else | |
3597 | no_cache=1 | |
3598 | fi | |
3599 | ||
3600 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
3601 | ||
3602 | fi | |
3603 | ||
3604 | ||
3605 | eval "$ac_cv_use_postscript" | |
3606 | if test "$no_cache" != 1; then | |
3607 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
3608 | fi | |
3609 | ||
3610 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
3611 | echo "$ac_t""yes" 1>&6 | |
3612 | else | |
3613 | echo "$ac_t""no" 1>&6 | |
3614 | fi | |
3615 | ||
3616 | ||
3617 | ||
3618 | ||
3619 | echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6 | |
360d6699 | 3620 | echo "configure:3621: checking "for --enable-prologio"" >&5 |
10f2d63a VZ |
3621 | no_cache=0 |
3622 | # Check whether --enable-prologio or --disable-prologio was given. | |
3623 | if test "${enable_prologio+set}" = set; then | |
3624 | enableval="$enable_prologio" | |
3625 | ||
3626 | if test "$enableval" = yes; then | |
3627 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
3628 | else | |
3629 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
3630 | fi | |
3631 | ||
3632 | else | |
3633 | ||
3634 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
3635 | if test "x$LINE" != x ; then | |
3636 | eval "DEFAULT_$LINE" | |
3637 | else | |
3638 | no_cache=1 | |
3639 | fi | |
3640 | ||
3641 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
3642 | ||
3643 | fi | |
3644 | ||
3645 | ||
3646 | eval "$ac_cv_use_prologio" | |
3647 | if test "$no_cache" != 1; then | |
3648 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
3649 | fi | |
3650 | ||
3651 | if test "$wxUSE_PROLOGIO" = yes; then | |
3652 | echo "$ac_t""yes" 1>&6 | |
3653 | else | |
3654 | echo "$ac_t""no" 1>&6 | |
3655 | fi | |
3656 | ||
3657 | ||
3658 | echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6 | |
360d6699 | 3659 | echo "configure:3660: checking "for --enable-resources"" >&5 |
10f2d63a VZ |
3660 | no_cache=0 |
3661 | # Check whether --enable-resources or --disable-resources was given. | |
3662 | if test "${enable_resources+set}" = set; then | |
3663 | enableval="$enable_resources" | |
3664 | ||
3665 | if test "$enableval" = yes; then | |
3666 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
3667 | else | |
3668 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
3669 | fi | |
3670 | ||
3671 | else | |
3672 | ||
3673 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
3674 | if test "x$LINE" != x ; then | |
3675 | eval "DEFAULT_$LINE" | |
3676 | else | |
3677 | no_cache=1 | |
3678 | fi | |
3679 | ||
3680 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
3681 | ||
3682 | fi | |
3683 | ||
3684 | ||
3685 | eval "$ac_cv_use_resources" | |
3686 | if test "$no_cache" != 1; then | |
3687 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
3688 | fi | |
3689 | ||
3690 | if test "$wxUSE_RESOURCES" = yes; then | |
3691 | echo "$ac_t""yes" 1>&6 | |
3692 | else | |
3693 | echo "$ac_t""no" 1>&6 | |
3694 | fi | |
3695 | ||
3696 | ||
3697 | ||
3698 | echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6 | |
360d6699 | 3699 | echo "configure:3700: checking "for --enable-xresources"" >&5 |
10f2d63a VZ |
3700 | no_cache=0 |
3701 | # Check whether --enable-xresources or --disable-xresources was given. | |
3702 | if test "${enable_xresources+set}" = set; then | |
3703 | enableval="$enable_xresources" | |
3704 | ||
3705 | if test "$enableval" = yes; then | |
3706 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
3707 | else | |
3708 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
3709 | fi | |
3710 | ||
3711 | else | |
3712 | ||
3713 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` | |
3714 | if test "x$LINE" != x ; then | |
3715 | eval "DEFAULT_$LINE" | |
3716 | else | |
3717 | no_cache=1 | |
3718 | fi | |
3719 | ||
3720 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
3721 | ||
3722 | fi | |
3723 | ||
3724 | ||
3725 | eval "$ac_cv_use_xresources" | |
3726 | if test "$no_cache" != 1; then | |
3727 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
3728 | fi | |
3729 | ||
3730 | if test "$wxUSE_X_RESOURCES" = yes; then | |
3731 | echo "$ac_t""yes" 1>&6 | |
3732 | else | |
3733 | echo "$ac_t""no" 1>&6 | |
3734 | fi | |
3735 | ||
3736 | ||
3737 | ||
3738 | ||
3739 | echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6 | |
360d6699 | 3740 | echo "configure:3741: checking "for --enable-clipboard"" >&5 |
10f2d63a VZ |
3741 | no_cache=0 |
3742 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
3743 | if test "${enable_clipboard+set}" = set; then | |
3744 | enableval="$enable_clipboard" | |
3745 | ||
3746 | if test "$enableval" = yes; then | |
3747 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
3748 | else | |
3749 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
3750 | fi | |
3751 | ||
3752 | else | |
3753 | ||
3754 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
3755 | if test "x$LINE" != x ; then | |
3756 | eval "DEFAULT_$LINE" | |
3757 | else | |
3758 | no_cache=1 | |
3759 | fi | |
3760 | ||
3761 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
3762 | ||
3763 | fi | |
3764 | ||
3765 | ||
3766 | eval "$ac_cv_use_clipboard" | |
3767 | if test "$no_cache" != 1; then | |
3768 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
3769 | fi | |
3770 | ||
3771 | if test "$wxUSE_CLIPBOARD" = yes; then | |
3772 | echo "$ac_t""yes" 1>&6 | |
3773 | else | |
3774 | echo "$ac_t""no" 1>&6 | |
3775 | fi | |
3776 | ||
3777 | ||
3778 | echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6 | |
360d6699 | 3779 | echo "configure:3780: checking "for --enable-dnd"" >&5 |
10f2d63a VZ |
3780 | no_cache=0 |
3781 | # Check whether --enable-dnd or --disable-dnd was given. | |
3782 | if test "${enable_dnd+set}" = set; then | |
3783 | enableval="$enable_dnd" | |
3784 | ||
3785 | if test "$enableval" = yes; then | |
3786 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
3787 | else | |
3788 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
3789 | fi | |
3790 | ||
3791 | else | |
3792 | ||
3793 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
3794 | if test "x$LINE" != x ; then | |
3795 | eval "DEFAULT_$LINE" | |
3796 | else | |
3797 | no_cache=1 | |
3798 | fi | |
3799 | ||
3800 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
3801 | ||
3802 | fi | |
3803 | ||
3804 | ||
3805 | eval "$ac_cv_use_dnd" | |
3806 | if test "$no_cache" != 1; then | |
3807 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
3808 | fi | |
3809 | ||
3810 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
3811 | echo "$ac_t""yes" 1>&6 | |
3812 | else | |
3813 | echo "$ac_t""no" 1>&6 | |
3814 | fi | |
3815 | ||
3816 | ||
3817 | ||
3818 | echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6 | |
360d6699 | 3819 | echo "configure:3820: checking "for --enable-wxtree"" >&5 |
10f2d63a VZ |
3820 | no_cache=0 |
3821 | # Check whether --enable-wxtree or --disable-wxtree was given. | |
3822 | if test "${enable_wxtree+set}" = set; then | |
3823 | enableval="$enable_wxtree" | |
3824 | ||
3825 | if test "$enableval" = yes; then | |
3826 | ac_cv_use_wxtree='wxUSE_WXTREE=yes' | |
3827 | else | |
3828 | ac_cv_use_wxtree='wxUSE_WXTREE=no' | |
3829 | fi | |
3830 | ||
3831 | else | |
3832 | ||
3833 | LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}` | |
3834 | if test "x$LINE" != x ; then | |
3835 | eval "DEFAULT_$LINE" | |
3836 | else | |
3837 | no_cache=1 | |
3838 | fi | |
3839 | ||
3840 | ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE | |
3841 | ||
3842 | fi | |
3843 | ||
3844 | ||
3845 | eval "$ac_cv_use_wxtree" | |
3846 | if test "$no_cache" != 1; then | |
3847 | echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp | |
3848 | fi | |
3849 | ||
3850 | if test "$wxUSE_WXTREE" = yes; then | |
3851 | echo "$ac_t""yes" 1>&6 | |
3852 | else | |
3853 | echo "$ac_t""no" 1>&6 | |
3854 | fi | |
3855 | ||
3856 | ||
3857 | ||
3858 | ||
3859 | echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6 | |
360d6699 | 3860 | echo "configure:3861: checking "for --enable-controls"" >&5 |
10f2d63a VZ |
3861 | no_cache=0 |
3862 | # Check whether --enable-controls or --disable-controls was given. | |
3863 | if test "${enable_controls+set}" = set; then | |
3864 | enableval="$enable_controls" | |
3865 | ||
3866 | if test "$enableval" = yes; then | |
3867 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
3868 | else | |
3869 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
3870 | fi | |
3871 | ||
3872 | else | |
3873 | ||
3874 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
3875 | if test "x$LINE" != x ; then | |
3876 | eval "DEFAULT_$LINE" | |
3877 | else | |
3878 | no_cache=1 | |
3879 | fi | |
3880 | ||
3881 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
3882 | ||
3883 | fi | |
3884 | ||
3885 | ||
3886 | eval "$ac_cv_use_controls" | |
3887 | if test "$no_cache" != 1; then | |
3888 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
3889 | fi | |
3890 | ||
3891 | if test "$wxUSE_CONTROLS" = yes; then | |
3892 | echo "$ac_t""yes" 1>&6 | |
3893 | else | |
3894 | echo "$ac_t""no" 1>&6 | |
3895 | fi | |
3896 | ||
3897 | ||
3898 | if test "$wxUSE_CONTROLS" = "yes"; then | |
3899 | DEFAULT_wxUSE_ACCEL=yes | |
3900 | DEFAULT_wxUSE_CARET=yes | |
3901 | DEFAULT_wxUSE_COMBOBOX=yes | |
3902 | DEFAULT_wxUSE_BMPBUTTON=yes | |
3903 | DEFAULT_wxUSE_CHECKBOX=yes | |
3904 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
3905 | DEFAULT_wxUSE_CHOICE=yes | |
3906 | DEFAULT_wxUSE_GAUGE=yes | |
3907 | DEFAULT_wxUSE_GRID=yes | |
fc9c7c09 | 3908 | DEFAULT_wxUSE_NEW_GRID=no |
10f2d63a VZ |
3909 | DEFAULT_wxUSE_IMAGLIST=yes |
3910 | DEFAULT_wxUSE_LISTBOX=yes | |
3911 | DEFAULT_wxUSE_LISTCTRL=yes | |
3912 | DEFAULT_wxUSE_NOTEBOOK=yes | |
3913 | DEFAULT_wxUSE_RADIOBOX=yes | |
3914 | DEFAULT_wxUSE_RADIOBTN=yes | |
3915 | DEFAULT_wxUSE_SASH=yes | |
3916 | DEFAULT_wxUSE_SCROLLBAR=yes | |
3917 | DEFAULT_wxUSE_SLIDER=yes | |
3918 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 3919 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
3920 | DEFAULT_wxUSE_SPLITTER=yes |
3921 | DEFAULT_wxUSE_STATBMP=yes | |
3922 | DEFAULT_wxUSE_STATBOX=yes | |
3923 | DEFAULT_wxUSE_STATLINE=yes | |
3924 | DEFAULT_wxUSE_STATUSBAR=yes | |
3925 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
3926 | DEFAULT_wxUSE_TOOLBAR=yes | |
360d6699 VZ |
3927 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
3928 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
3929 | DEFAULT_wxUSE_TOOLTIPS=yes |
3930 | DEFAULT_wxUSE_TREECTRL=yes | |
3931 | elif test "$wxUSE_CONTROLS" = "no"; then | |
3932 | DEFAULT_wxUSE_ACCEL=no | |
3933 | DEFAULT_wxUSE_CARET=no | |
3934 | DEFAULT_wxUSE_COMBOBOX=no | |
3935 | DEFAULT_wxUSE_BMPBUTTON=no | |
3936 | DEFAULT_wxUSE_CHECKBOX=no | |
3937 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
3938 | DEFAULT_wxUSE_CHOICE=no | |
3939 | DEFAULT_wxUSE_GAUGE=no | |
3940 | DEFAULT_wxUSE_GRID=no | |
3941 | DEFAULT_wxUSE_NEW_GRID=no | |
3942 | DEFAULT_wxUSE_IMAGLIST=no | |
3943 | DEFAULT_wxUSE_LISTBOX=no | |
3944 | DEFAULT_wxUSE_LISTCTRL=no | |
3945 | DEFAULT_wxUSE_NOTEBOOK=no | |
3946 | DEFAULT_wxUSE_RADIOBOX=no | |
3947 | DEFAULT_wxUSE_RADIOBTN=no | |
3948 | DEFAULT_wxUSE_SASH=no | |
3949 | DEFAULT_wxUSE_SCROLLBAR=no | |
3950 | DEFAULT_wxUSE_SLIDER=no | |
3951 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 3952 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
3953 | DEFAULT_wxUSE_SPLITTER=no |
3954 | DEFAULT_wxUSE_STATBMP=no | |
3955 | DEFAULT_wxUSE_STATBOX=no | |
3956 | DEFAULT_wxUSE_STATLINE=no | |
3957 | DEFAULT_wxUSE_STATUSBAR=no | |
3958 | DEFAULT_wxUSE_TAB_DIALOG=no | |
3959 | DEFAULT_wxUSE_TOOLBAR=no | |
360d6699 VZ |
3960 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
3961 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
3962 | DEFAULT_wxUSE_TOOLTIPS=no |
3963 | DEFAULT_wxUSE_TREECTRL=no | |
3964 | fi | |
3965 | ||
3966 | ||
3967 | echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6 | |
360d6699 | 3968 | echo "configure:3969: checking "for --enable-accel"" >&5 |
10f2d63a VZ |
3969 | no_cache=0 |
3970 | # Check whether --enable-accel or --disable-accel was given. | |
3971 | if test "${enable_accel+set}" = set; then | |
3972 | enableval="$enable_accel" | |
3973 | ||
3974 | if test "$enableval" = yes; then | |
3975 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
3976 | else | |
3977 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
3978 | fi | |
3979 | ||
3980 | else | |
3981 | ||
3982 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
3983 | if test "x$LINE" != x ; then | |
3984 | eval "DEFAULT_$LINE" | |
3985 | else | |
3986 | no_cache=1 | |
3987 | fi | |
3988 | ||
3989 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
3990 | ||
3991 | fi | |
3992 | ||
3993 | ||
3994 | eval "$ac_cv_use_accel" | |
3995 | if test "$no_cache" != 1; then | |
3996 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
3997 | fi | |
3998 | ||
3999 | if test "$wxUSE_ACCEL" = yes; then | |
4000 | echo "$ac_t""yes" 1>&6 | |
4001 | else | |
4002 | echo "$ac_t""no" 1>&6 | |
4003 | fi | |
4004 | ||
4005 | ||
4006 | echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6 | |
360d6699 | 4007 | echo "configure:4008: checking "for --enable-caret"" >&5 |
10f2d63a VZ |
4008 | no_cache=0 |
4009 | # Check whether --enable-caret or --disable-caret was given. | |
4010 | if test "${enable_caret+set}" = set; then | |
4011 | enableval="$enable_caret" | |
4012 | ||
4013 | if test "$enableval" = yes; then | |
4014 | ac_cv_use_caret='wxUSE_CARET=yes' | |
4015 | else | |
4016 | ac_cv_use_caret='wxUSE_CARET=no' | |
4017 | fi | |
4018 | ||
4019 | else | |
4020 | ||
4021 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
4022 | if test "x$LINE" != x ; then | |
4023 | eval "DEFAULT_$LINE" | |
4024 | else | |
4025 | no_cache=1 | |
4026 | fi | |
4027 | ||
4028 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
4029 | ||
4030 | fi | |
4031 | ||
4032 | ||
4033 | eval "$ac_cv_use_caret" | |
4034 | if test "$no_cache" != 1; then | |
4035 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
4036 | fi | |
4037 | ||
4038 | if test "$wxUSE_CARET" = yes; then | |
4039 | echo "$ac_t""yes" 1>&6 | |
4040 | else | |
4041 | echo "$ac_t""no" 1>&6 | |
4042 | fi | |
4043 | ||
4044 | ||
4045 | echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6 | |
360d6699 | 4046 | echo "configure:4047: checking "for --enable-bmpbutton"" >&5 |
10f2d63a VZ |
4047 | no_cache=0 |
4048 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
4049 | if test "${enable_bmpbutton+set}" = set; then | |
4050 | enableval="$enable_bmpbutton" | |
4051 | ||
4052 | if test "$enableval" = yes; then | |
4053 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
4054 | else | |
4055 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
4056 | fi | |
4057 | ||
4058 | else | |
4059 | ||
4060 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
4061 | if test "x$LINE" != x ; then | |
4062 | eval "DEFAULT_$LINE" | |
4063 | else | |
4064 | no_cache=1 | |
4065 | fi | |
4066 | ||
4067 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
4068 | ||
4069 | fi | |
4070 | ||
4071 | ||
4072 | eval "$ac_cv_use_bmpbutton" | |
4073 | if test "$no_cache" != 1; then | |
4074 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
4075 | fi | |
4076 | ||
4077 | if test "$wxUSE_BMPBUTTON" = yes; then | |
4078 | echo "$ac_t""yes" 1>&6 | |
4079 | else | |
4080 | echo "$ac_t""no" 1>&6 | |
4081 | fi | |
4082 | ||
4083 | ||
4084 | echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6 | |
360d6699 | 4085 | echo "configure:4086: checking "for --enable-checkbox"" >&5 |
10f2d63a VZ |
4086 | no_cache=0 |
4087 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
4088 | if test "${enable_checkbox+set}" = set; then | |
4089 | enableval="$enable_checkbox" | |
4090 | ||
4091 | if test "$enableval" = yes; then | |
4092 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
4093 | else | |
4094 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
4095 | fi | |
4096 | ||
4097 | else | |
4098 | ||
4099 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
4100 | if test "x$LINE" != x ; then | |
4101 | eval "DEFAULT_$LINE" | |
4102 | else | |
4103 | no_cache=1 | |
4104 | fi | |
4105 | ||
4106 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
4107 | ||
4108 | fi | |
4109 | ||
4110 | ||
4111 | eval "$ac_cv_use_checkbox" | |
4112 | if test "$no_cache" != 1; then | |
4113 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
4114 | fi | |
4115 | ||
4116 | if test "$wxUSE_CHECKBOX" = yes; then | |
4117 | echo "$ac_t""yes" 1>&6 | |
4118 | else | |
4119 | echo "$ac_t""no" 1>&6 | |
4120 | fi | |
4121 | ||
4122 | ||
4123 | echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6 | |
360d6699 | 4124 | echo "configure:4125: checking "for --enable-checklst"" >&5 |
10f2d63a VZ |
4125 | no_cache=0 |
4126 | # Check whether --enable-checklst or --disable-checklst was given. | |
4127 | if test "${enable_checklst+set}" = set; then | |
4128 | enableval="$enable_checklst" | |
4129 | ||
4130 | if test "$enableval" = yes; then | |
4131 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
4132 | else | |
4133 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
4134 | fi | |
4135 | ||
4136 | else | |
4137 | ||
4138 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
4139 | if test "x$LINE" != x ; then | |
4140 | eval "DEFAULT_$LINE" | |
4141 | else | |
4142 | no_cache=1 | |
4143 | fi | |
4144 | ||
4145 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
4146 | ||
4147 | fi | |
4148 | ||
4149 | ||
4150 | eval "$ac_cv_use_checklst" | |
4151 | if test "$no_cache" != 1; then | |
4152 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
4153 | fi | |
4154 | ||
4155 | if test "$wxUSE_CHECKLST" = yes; then | |
4156 | echo "$ac_t""yes" 1>&6 | |
4157 | else | |
4158 | echo "$ac_t""no" 1>&6 | |
4159 | fi | |
4160 | ||
4161 | ||
4162 | echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6 | |
360d6699 | 4163 | echo "configure:4164: checking "for --enable-choice"" >&5 |
10f2d63a VZ |
4164 | no_cache=0 |
4165 | # Check whether --enable-choice or --disable-choice was given. | |
4166 | if test "${enable_choice+set}" = set; then | |
4167 | enableval="$enable_choice" | |
4168 | ||
4169 | if test "$enableval" = yes; then | |
4170 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
4171 | else | |
4172 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
4173 | fi | |
4174 | ||
4175 | else | |
4176 | ||
4177 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
4178 | if test "x$LINE" != x ; then | |
4179 | eval "DEFAULT_$LINE" | |
4180 | else | |
4181 | no_cache=1 | |
4182 | fi | |
4183 | ||
4184 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
4185 | ||
4186 | fi | |
4187 | ||
4188 | ||
4189 | eval "$ac_cv_use_choice" | |
4190 | if test "$no_cache" != 1; then | |
4191 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
4192 | fi | |
4193 | ||
4194 | if test "$wxUSE_CHOICE" = yes; then | |
4195 | echo "$ac_t""yes" 1>&6 | |
4196 | else | |
4197 | echo "$ac_t""no" 1>&6 | |
4198 | fi | |
4199 | ||
4200 | ||
4201 | echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6 | |
360d6699 | 4202 | echo "configure:4203: checking "for --enable-combobox"" >&5 |
10f2d63a VZ |
4203 | no_cache=0 |
4204 | # Check whether --enable-combobox or --disable-combobox was given. | |
4205 | if test "${enable_combobox+set}" = set; then | |
4206 | enableval="$enable_combobox" | |
4207 | ||
4208 | if test "$enableval" = yes; then | |
4209 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
4210 | else | |
4211 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
4212 | fi | |
4213 | ||
4214 | else | |
4215 | ||
4216 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
4217 | if test "x$LINE" != x ; then | |
4218 | eval "DEFAULT_$LINE" | |
4219 | else | |
4220 | no_cache=1 | |
4221 | fi | |
4222 | ||
4223 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
4224 | ||
4225 | fi | |
4226 | ||
4227 | ||
4228 | eval "$ac_cv_use_combobox" | |
4229 | if test "$no_cache" != 1; then | |
4230 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
4231 | fi | |
4232 | ||
4233 | if test "$wxUSE_COMBOBOX" = yes; then | |
4234 | echo "$ac_t""yes" 1>&6 | |
4235 | else | |
4236 | echo "$ac_t""no" 1>&6 | |
4237 | fi | |
4238 | ||
4239 | ||
4240 | echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6 | |
360d6699 | 4241 | echo "configure:4242: checking "for --enable-gauge"" >&5 |
10f2d63a VZ |
4242 | no_cache=0 |
4243 | # Check whether --enable-gauge or --disable-gauge was given. | |
4244 | if test "${enable_gauge+set}" = set; then | |
4245 | enableval="$enable_gauge" | |
4246 | ||
4247 | if test "$enableval" = yes; then | |
4248 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
4249 | else | |
4250 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
4251 | fi | |
4252 | ||
4253 | else | |
4254 | ||
4255 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
4256 | if test "x$LINE" != x ; then | |
4257 | eval "DEFAULT_$LINE" | |
4258 | else | |
4259 | no_cache=1 | |
4260 | fi | |
4261 | ||
4262 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
4263 | ||
4264 | fi | |
4265 | ||
4266 | ||
4267 | eval "$ac_cv_use_gauge" | |
4268 | if test "$no_cache" != 1; then | |
4269 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
4270 | fi | |
4271 | ||
4272 | if test "$wxUSE_GAUGE" = yes; then | |
4273 | echo "$ac_t""yes" 1>&6 | |
4274 | else | |
4275 | echo "$ac_t""no" 1>&6 | |
4276 | fi | |
4277 | ||
4278 | ||
4279 | echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6 | |
360d6699 | 4280 | echo "configure:4281: checking "for --enable-grid"" >&5 |
10f2d63a VZ |
4281 | no_cache=0 |
4282 | # Check whether --enable-grid or --disable-grid was given. | |
4283 | if test "${enable_grid+set}" = set; then | |
4284 | enableval="$enable_grid" | |
4285 | ||
4286 | if test "$enableval" = yes; then | |
4287 | ac_cv_use_grid='wxUSE_GRID=yes' | |
4288 | else | |
4289 | ac_cv_use_grid='wxUSE_GRID=no' | |
4290 | fi | |
4291 | ||
4292 | else | |
4293 | ||
4294 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
4295 | if test "x$LINE" != x ; then | |
4296 | eval "DEFAULT_$LINE" | |
4297 | else | |
4298 | no_cache=1 | |
4299 | fi | |
4300 | ||
4301 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
4302 | ||
4303 | fi | |
4304 | ||
4305 | ||
4306 | eval "$ac_cv_use_grid" | |
4307 | if test "$no_cache" != 1; then | |
4308 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
4309 | fi | |
4310 | ||
4311 | if test "$wxUSE_GRID" = yes; then | |
4312 | echo "$ac_t""yes" 1>&6 | |
4313 | else | |
4314 | echo "$ac_t""no" 1>&6 | |
4315 | fi | |
4316 | ||
4317 | ||
4318 | echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6 | |
360d6699 | 4319 | echo "configure:4320: checking "for --enable-newgrid"" >&5 |
10f2d63a VZ |
4320 | no_cache=0 |
4321 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
4322 | if test "${enable_newgrid+set}" = set; then | |
4323 | enableval="$enable_newgrid" | |
4324 | ||
4325 | if test "$enableval" = yes; then | |
4326 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
4327 | else | |
4328 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
4329 | fi | |
4330 | ||
4331 | else | |
4332 | ||
4333 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` | |
4334 | if test "x$LINE" != x ; then | |
4335 | eval "DEFAULT_$LINE" | |
4336 | else | |
4337 | no_cache=1 | |
4338 | fi | |
4339 | ||
4340 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
4341 | ||
4342 | fi | |
4343 | ||
4344 | ||
4345 | eval "$ac_cv_use_newgrid" | |
4346 | if test "$no_cache" != 1; then | |
4347 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
4348 | fi | |
4349 | ||
4350 | if test "$wxUSE_NEW_GRID" = yes; then | |
4351 | echo "$ac_t""yes" 1>&6 | |
4352 | else | |
4353 | echo "$ac_t""no" 1>&6 | |
4354 | fi | |
4355 | ||
4356 | ||
4357 | echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6 | |
360d6699 | 4358 | echo "configure:4359: checking "for --enable-imaglist"" >&5 |
10f2d63a VZ |
4359 | no_cache=0 |
4360 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
4361 | if test "${enable_imaglist+set}" = set; then | |
4362 | enableval="$enable_imaglist" | |
4363 | ||
4364 | if test "$enableval" = yes; then | |
4365 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
4366 | else | |
4367 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
4368 | fi | |
4369 | ||
4370 | else | |
4371 | ||
4372 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
4373 | if test "x$LINE" != x ; then | |
4374 | eval "DEFAULT_$LINE" | |
4375 | else | |
4376 | no_cache=1 | |
4377 | fi | |
4378 | ||
4379 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
4380 | ||
4381 | fi | |
4382 | ||
4383 | ||
4384 | eval "$ac_cv_use_imaglist" | |
4385 | if test "$no_cache" != 1; then | |
4386 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
4387 | fi | |
4388 | ||
4389 | if test "$wxUSE_IMAGLIST" = yes; then | |
4390 | echo "$ac_t""yes" 1>&6 | |
4391 | else | |
4392 | echo "$ac_t""no" 1>&6 | |
4393 | fi | |
4394 | ||
4395 | ||
4396 | echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6 | |
360d6699 | 4397 | echo "configure:4398: checking "for --enable-listbox"" >&5 |
10f2d63a VZ |
4398 | no_cache=0 |
4399 | # Check whether --enable-listbox or --disable-listbox was given. | |
4400 | if test "${enable_listbox+set}" = set; then | |
4401 | enableval="$enable_listbox" | |
4402 | ||
4403 | if test "$enableval" = yes; then | |
4404 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
4405 | else | |
4406 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
4407 | fi | |
4408 | ||
4409 | else | |
4410 | ||
4411 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
4412 | if test "x$LINE" != x ; then | |
4413 | eval "DEFAULT_$LINE" | |
4414 | else | |
4415 | no_cache=1 | |
4416 | fi | |
4417 | ||
4418 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
4419 | ||
4420 | fi | |
4421 | ||
4422 | ||
4423 | eval "$ac_cv_use_listbox" | |
4424 | if test "$no_cache" != 1; then | |
4425 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
4426 | fi | |
4427 | ||
4428 | if test "$wxUSE_LISTBOX" = yes; then | |
4429 | echo "$ac_t""yes" 1>&6 | |
4430 | else | |
4431 | echo "$ac_t""no" 1>&6 | |
4432 | fi | |
4433 | ||
4434 | ||
4435 | echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6 | |
360d6699 | 4436 | echo "configure:4437: checking "for --enable-listctrl"" >&5 |
10f2d63a VZ |
4437 | no_cache=0 |
4438 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
4439 | if test "${enable_listctrl+set}" = set; then | |
4440 | enableval="$enable_listctrl" | |
4441 | ||
4442 | if test "$enableval" = yes; then | |
4443 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
4444 | else | |
4445 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
4446 | fi | |
4447 | ||
4448 | else | |
4449 | ||
4450 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
4451 | if test "x$LINE" != x ; then | |
4452 | eval "DEFAULT_$LINE" | |
4453 | else | |
4454 | no_cache=1 | |
4455 | fi | |
4456 | ||
4457 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
4458 | ||
4459 | fi | |
4460 | ||
4461 | ||
4462 | eval "$ac_cv_use_listctrl" | |
4463 | if test "$no_cache" != 1; then | |
4464 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
4465 | fi | |
4466 | ||
4467 | if test "$wxUSE_LISTCTRL" = yes; then | |
4468 | echo "$ac_t""yes" 1>&6 | |
4469 | else | |
4470 | echo "$ac_t""no" 1>&6 | |
4471 | fi | |
4472 | ||
4473 | ||
4474 | echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6 | |
360d6699 | 4475 | echo "configure:4476: checking "for --enable-notebook"" >&5 |
10f2d63a VZ |
4476 | no_cache=0 |
4477 | # Check whether --enable-notebook or --disable-notebook was given. | |
4478 | if test "${enable_notebook+set}" = set; then | |
4479 | enableval="$enable_notebook" | |
4480 | ||
4481 | if test "$enableval" = yes; then | |
4482 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
4483 | else | |
4484 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
4485 | fi | |
4486 | ||
4487 | else | |
4488 | ||
4489 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
4490 | if test "x$LINE" != x ; then | |
4491 | eval "DEFAULT_$LINE" | |
4492 | else | |
4493 | no_cache=1 | |
4494 | fi | |
4495 | ||
4496 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
4497 | ||
4498 | fi | |
4499 | ||
4500 | ||
4501 | eval "$ac_cv_use_notebook" | |
4502 | if test "$no_cache" != 1; then | |
4503 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
4504 | fi | |
4505 | ||
4506 | if test "$wxUSE_NOTEBOOK" = yes; then | |
4507 | echo "$ac_t""yes" 1>&6 | |
4508 | else | |
4509 | echo "$ac_t""no" 1>&6 | |
4510 | fi | |
4511 | ||
4512 | ||
4513 | echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6 | |
360d6699 | 4514 | echo "configure:4515: checking "for --enable-radiobox"" >&5 |
10f2d63a VZ |
4515 | no_cache=0 |
4516 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
4517 | if test "${enable_radiobox+set}" = set; then | |
4518 | enableval="$enable_radiobox" | |
4519 | ||
4520 | if test "$enableval" = yes; then | |
4521 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
4522 | else | |
4523 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
4524 | fi | |
4525 | ||
4526 | else | |
4527 | ||
4528 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
4529 | if test "x$LINE" != x ; then | |
4530 | eval "DEFAULT_$LINE" | |
4531 | else | |
4532 | no_cache=1 | |
4533 | fi | |
4534 | ||
4535 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
4536 | ||
4537 | fi | |
4538 | ||
4539 | ||
4540 | eval "$ac_cv_use_radiobox" | |
4541 | if test "$no_cache" != 1; then | |
4542 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
4543 | fi | |
4544 | ||
4545 | if test "$wxUSE_RADIOBOX" = yes; then | |
4546 | echo "$ac_t""yes" 1>&6 | |
4547 | else | |
4548 | echo "$ac_t""no" 1>&6 | |
4549 | fi | |
4550 | ||
4551 | ||
4552 | echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6 | |
360d6699 | 4553 | echo "configure:4554: checking "for --enable-radiobtn"" >&5 |
10f2d63a VZ |
4554 | no_cache=0 |
4555 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
4556 | if test "${enable_radiobtn+set}" = set; then | |
4557 | enableval="$enable_radiobtn" | |
4558 | ||
4559 | if test "$enableval" = yes; then | |
4560 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
4561 | else | |
4562 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
4563 | fi | |
4564 | ||
4565 | else | |
4566 | ||
4567 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
4568 | if test "x$LINE" != x ; then | |
4569 | eval "DEFAULT_$LINE" | |
4570 | else | |
4571 | no_cache=1 | |
4572 | fi | |
4573 | ||
4574 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
4575 | ||
4576 | fi | |
4577 | ||
4578 | ||
4579 | eval "$ac_cv_use_radiobtn" | |
4580 | if test "$no_cache" != 1; then | |
4581 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
4582 | fi | |
4583 | ||
4584 | if test "$wxUSE_RADIOBTN" = yes; then | |
4585 | echo "$ac_t""yes" 1>&6 | |
4586 | else | |
4587 | echo "$ac_t""no" 1>&6 | |
4588 | fi | |
4589 | ||
4590 | ||
4591 | echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6 | |
360d6699 | 4592 | echo "configure:4593: checking "for --enable-sash"" >&5 |
10f2d63a VZ |
4593 | no_cache=0 |
4594 | # Check whether --enable-sash or --disable-sash was given. | |
4595 | if test "${enable_sash+set}" = set; then | |
4596 | enableval="$enable_sash" | |
4597 | ||
4598 | if test "$enableval" = yes; then | |
4599 | ac_cv_use_sash='wxUSE_SASH=yes' | |
4600 | else | |
4601 | ac_cv_use_sash='wxUSE_SASH=no' | |
4602 | fi | |
4603 | ||
4604 | else | |
4605 | ||
4606 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
4607 | if test "x$LINE" != x ; then | |
4608 | eval "DEFAULT_$LINE" | |
4609 | else | |
4610 | no_cache=1 | |
4611 | fi | |
4612 | ||
4613 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
4614 | ||
4615 | fi | |
4616 | ||
4617 | ||
4618 | eval "$ac_cv_use_sash" | |
4619 | if test "$no_cache" != 1; then | |
4620 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
4621 | fi | |
4622 | ||
4623 | if test "$wxUSE_SASH" = yes; then | |
4624 | echo "$ac_t""yes" 1>&6 | |
4625 | else | |
4626 | echo "$ac_t""no" 1>&6 | |
4627 | fi | |
4628 | ||
4629 | ||
4630 | echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6 | |
360d6699 | 4631 | echo "configure:4632: checking "for --enable-scrollbar"" >&5 |
10f2d63a VZ |
4632 | no_cache=0 |
4633 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
4634 | if test "${enable_scrollbar+set}" = set; then | |
4635 | enableval="$enable_scrollbar" | |
4636 | ||
4637 | if test "$enableval" = yes; then | |
4638 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
4639 | else | |
4640 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
4641 | fi | |
4642 | ||
4643 | else | |
4644 | ||
4645 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
4646 | if test "x$LINE" != x ; then | |
4647 | eval "DEFAULT_$LINE" | |
4648 | else | |
4649 | no_cache=1 | |
4650 | fi | |
4651 | ||
4652 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
4653 | ||
4654 | fi | |
4655 | ||
4656 | ||
4657 | eval "$ac_cv_use_scrollbar" | |
4658 | if test "$no_cache" != 1; then | |
4659 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
4660 | fi | |
4661 | ||
4662 | if test "$wxUSE_SCROLLBAR" = yes; then | |
4663 | echo "$ac_t""yes" 1>&6 | |
4664 | else | |
4665 | echo "$ac_t""no" 1>&6 | |
4666 | fi | |
4667 | ||
4668 | ||
4669 | echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6 | |
360d6699 | 4670 | echo "configure:4671: checking "for --enable-slider"" >&5 |
10f2d63a VZ |
4671 | no_cache=0 |
4672 | # Check whether --enable-slider or --disable-slider was given. | |
4673 | if test "${enable_slider+set}" = set; then | |
4674 | enableval="$enable_slider" | |
4675 | ||
4676 | if test "$enableval" = yes; then | |
4677 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
4678 | else | |
4679 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
4680 | fi | |
4681 | ||
4682 | else | |
4683 | ||
4684 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
4685 | if test "x$LINE" != x ; then | |
4686 | eval "DEFAULT_$LINE" | |
4687 | else | |
4688 | no_cache=1 | |
4689 | fi | |
4690 | ||
4691 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
4692 | ||
4693 | fi | |
4694 | ||
4695 | ||
4696 | eval "$ac_cv_use_slider" | |
4697 | if test "$no_cache" != 1; then | |
4698 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
4699 | fi | |
4700 | ||
4701 | if test "$wxUSE_SLIDER" = yes; then | |
4702 | echo "$ac_t""yes" 1>&6 | |
4703 | else | |
4704 | echo "$ac_t""no" 1>&6 | |
4705 | fi | |
4706 | ||
4707 | ||
4708 | echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6 | |
360d6699 | 4709 | echo "configure:4710: checking "for --enable-spinbtn"" >&5 |
10f2d63a VZ |
4710 | no_cache=0 |
4711 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
4712 | if test "${enable_spinbtn+set}" = set; then | |
4713 | enableval="$enable_spinbtn" | |
4714 | ||
4715 | if test "$enableval" = yes; then | |
4716 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
4717 | else | |
4718 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
4719 | fi | |
4720 | ||
4721 | else | |
4722 | ||
4723 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
4724 | if test "x$LINE" != x ; then | |
4725 | eval "DEFAULT_$LINE" | |
4726 | else | |
4727 | no_cache=1 | |
4728 | fi | |
4729 | ||
4730 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
4731 | ||
4732 | fi | |
4733 | ||
4734 | ||
4735 | eval "$ac_cv_use_spinbtn" | |
4736 | if test "$no_cache" != 1; then | |
4737 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
4738 | fi | |
4739 | ||
4740 | if test "$wxUSE_SPINBTN" = yes; then | |
4741 | echo "$ac_t""yes" 1>&6 | |
4742 | else | |
4743 | echo "$ac_t""no" 1>&6 | |
4744 | fi | |
4745 | ||
4746 | ||
56cfaa52 | 4747 | echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6 |
360d6699 | 4748 | echo "configure:4749: checking "for --enable-spinctrl"" >&5 |
56cfaa52 RR |
4749 | no_cache=0 |
4750 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
4751 | if test "${enable_spinctrl+set}" = set; then | |
4752 | enableval="$enable_spinctrl" | |
4753 | ||
4754 | if test "$enableval" = yes; then | |
4755 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
4756 | else | |
4757 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
4758 | fi | |
4759 | ||
4760 | else | |
4761 | ||
4762 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
4763 | if test "x$LINE" != x ; then | |
4764 | eval "DEFAULT_$LINE" | |
4765 | else | |
4766 | no_cache=1 | |
4767 | fi | |
4768 | ||
4769 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
4770 | ||
4771 | fi | |
4772 | ||
4773 | ||
4774 | eval "$ac_cv_use_spinctrl" | |
4775 | if test "$no_cache" != 1; then | |
4776 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
4777 | fi | |
4778 | ||
4779 | if test "$wxUSE_SPINCTRL" = yes; then | |
4780 | echo "$ac_t""yes" 1>&6 | |
4781 | else | |
4782 | echo "$ac_t""no" 1>&6 | |
4783 | fi | |
4784 | ||
4785 | ||
10f2d63a | 4786 | echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6 |
360d6699 | 4787 | echo "configure:4788: checking "for --enable-splitter"" >&5 |
10f2d63a VZ |
4788 | no_cache=0 |
4789 | # Check whether --enable-splitter or --disable-splitter was given. | |
4790 | if test "${enable_splitter+set}" = set; then | |
4791 | enableval="$enable_splitter" | |
4792 | ||
4793 | if test "$enableval" = yes; then | |
4794 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
4795 | else | |
4796 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
4797 | fi | |
4798 | ||
4799 | else | |
4800 | ||
4801 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
4802 | if test "x$LINE" != x ; then | |
4803 | eval "DEFAULT_$LINE" | |
4804 | else | |
4805 | no_cache=1 | |
4806 | fi | |
4807 | ||
4808 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
4809 | ||
4810 | fi | |
4811 | ||
4812 | ||
4813 | eval "$ac_cv_use_splitter" | |
4814 | if test "$no_cache" != 1; then | |
4815 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
4816 | fi | |
4817 | ||
4818 | if test "$wxUSE_SPLITTER" = yes; then | |
4819 | echo "$ac_t""yes" 1>&6 | |
4820 | else | |
4821 | echo "$ac_t""no" 1>&6 | |
4822 | fi | |
4823 | ||
4824 | ||
4825 | echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6 | |
360d6699 | 4826 | echo "configure:4827: checking "for --enable-statbmp"" >&5 |
10f2d63a VZ |
4827 | no_cache=0 |
4828 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
4829 | if test "${enable_statbmp+set}" = set; then | |
4830 | enableval="$enable_statbmp" | |
4831 | ||
4832 | if test "$enableval" = yes; then | |
4833 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
4834 | else | |
4835 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
4836 | fi | |
4837 | ||
4838 | else | |
4839 | ||
4840 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
4841 | if test "x$LINE" != x ; then | |
4842 | eval "DEFAULT_$LINE" | |
4843 | else | |
4844 | no_cache=1 | |
4845 | fi | |
4846 | ||
4847 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
4848 | ||
4849 | fi | |
4850 | ||
4851 | ||
4852 | eval "$ac_cv_use_statbmp" | |
4853 | if test "$no_cache" != 1; then | |
4854 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
4855 | fi | |
4856 | ||
4857 | if test "$wxUSE_STATBMP" = yes; then | |
4858 | echo "$ac_t""yes" 1>&6 | |
4859 | else | |
4860 | echo "$ac_t""no" 1>&6 | |
4861 | fi | |
4862 | ||
4863 | ||
4864 | echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6 | |
360d6699 | 4865 | echo "configure:4866: checking "for --enable-statbox"" >&5 |
10f2d63a VZ |
4866 | no_cache=0 |
4867 | # Check whether --enable-statbox or --disable-statbox was given. | |
4868 | if test "${enable_statbox+set}" = set; then | |
4869 | enableval="$enable_statbox" | |
4870 | ||
4871 | if test "$enableval" = yes; then | |
4872 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
4873 | else | |
4874 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
4875 | fi | |
4876 | ||
4877 | else | |
4878 | ||
4879 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
4880 | if test "x$LINE" != x ; then | |
4881 | eval "DEFAULT_$LINE" | |
4882 | else | |
4883 | no_cache=1 | |
4884 | fi | |
4885 | ||
4886 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
4887 | ||
4888 | fi | |
4889 | ||
4890 | ||
4891 | eval "$ac_cv_use_statbox" | |
4892 | if test "$no_cache" != 1; then | |
4893 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
4894 | fi | |
4895 | ||
4896 | if test "$wxUSE_STATBOX" = yes; then | |
4897 | echo "$ac_t""yes" 1>&6 | |
4898 | else | |
4899 | echo "$ac_t""no" 1>&6 | |
4900 | fi | |
4901 | ||
4902 | ||
4903 | echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6 | |
360d6699 | 4904 | echo "configure:4905: checking "for --enable-statline"" >&5 |
10f2d63a VZ |
4905 | no_cache=0 |
4906 | # Check whether --enable-statline or --disable-statline was given. | |
4907 | if test "${enable_statline+set}" = set; then | |
4908 | enableval="$enable_statline" | |
4909 | ||
4910 | if test "$enableval" = yes; then | |
4911 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
4912 | else | |
4913 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
4914 | fi | |
4915 | ||
4916 | else | |
4917 | ||
4918 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
4919 | if test "x$LINE" != x ; then | |
4920 | eval "DEFAULT_$LINE" | |
4921 | else | |
4922 | no_cache=1 | |
4923 | fi | |
4924 | ||
4925 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
4926 | ||
4927 | fi | |
4928 | ||
4929 | ||
4930 | eval "$ac_cv_use_statline" | |
4931 | if test "$no_cache" != 1; then | |
4932 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
4933 | fi | |
4934 | ||
4935 | if test "$wxUSE_STATLINE" = yes; then | |
4936 | echo "$ac_t""yes" 1>&6 | |
4937 | else | |
4938 | echo "$ac_t""no" 1>&6 | |
4939 | fi | |
4940 | ||
4941 | ||
4942 | echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6 | |
360d6699 | 4943 | echo "configure:4944: checking "for --enable-statusbar"" >&5 |
10f2d63a VZ |
4944 | no_cache=0 |
4945 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
4946 | if test "${enable_statusbar+set}" = set; then | |
4947 | enableval="$enable_statusbar" | |
4948 | ||
4949 | if test "$enableval" = yes; then | |
4950 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
4951 | else | |
4952 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
4953 | fi | |
4954 | ||
4955 | else | |
4956 | ||
4957 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
4958 | if test "x$LINE" != x ; then | |
4959 | eval "DEFAULT_$LINE" | |
4960 | else | |
4961 | no_cache=1 | |
4962 | fi | |
4963 | ||
4964 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
4965 | ||
4966 | fi | |
4967 | ||
4968 | ||
4969 | eval "$ac_cv_use_statusbar" | |
4970 | if test "$no_cache" != 1; then | |
4971 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
4972 | fi | |
4973 | ||
4974 | if test "$wxUSE_STATUSBAR" = yes; then | |
4975 | echo "$ac_t""yes" 1>&6 | |
4976 | else | |
4977 | echo "$ac_t""no" 1>&6 | |
4978 | fi | |
4979 | ||
4980 | ||
4981 | echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6 | |
360d6699 | 4982 | echo "configure:4983: checking "for --enable-tabdialog"" >&5 |
10f2d63a VZ |
4983 | no_cache=0 |
4984 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
4985 | if test "${enable_tabdialog+set}" = set; then | |
4986 | enableval="$enable_tabdialog" | |
4987 | ||
4988 | if test "$enableval" = yes; then | |
4989 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
4990 | else | |
4991 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
4992 | fi | |
4993 | ||
4994 | else | |
4995 | ||
4996 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
4997 | if test "x$LINE" != x ; then | |
4998 | eval "DEFAULT_$LINE" | |
4999 | else | |
5000 | no_cache=1 | |
5001 | fi | |
5002 | ||
5003 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
5004 | ||
5005 | fi | |
5006 | ||
5007 | ||
5008 | eval "$ac_cv_use_tabdialog" | |
5009 | if test "$no_cache" != 1; then | |
5010 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
5011 | fi | |
5012 | ||
5013 | if test "$wxUSE_TABDIALOG" = yes; then | |
5014 | echo "$ac_t""yes" 1>&6 | |
5015 | else | |
5016 | echo "$ac_t""no" 1>&6 | |
5017 | fi | |
5018 | ||
5019 | ||
5020 | echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6 | |
360d6699 | 5021 | echo "configure:5022: checking "for --enable-toolbar"" >&5 |
10f2d63a VZ |
5022 | no_cache=0 |
5023 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
5024 | if test "${enable_toolbar+set}" = set; then | |
5025 | enableval="$enable_toolbar" | |
5026 | ||
5027 | if test "$enableval" = yes; then | |
5028 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
5029 | else | |
5030 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
5031 | fi | |
5032 | ||
5033 | else | |
5034 | ||
5035 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
5036 | if test "x$LINE" != x ; then | |
5037 | eval "DEFAULT_$LINE" | |
5038 | else | |
5039 | no_cache=1 | |
5040 | fi | |
5041 | ||
5042 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
5043 | ||
5044 | fi | |
5045 | ||
5046 | ||
5047 | eval "$ac_cv_use_toolbar" | |
5048 | if test "$no_cache" != 1; then | |
5049 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
5050 | fi | |
5051 | ||
5052 | if test "$wxUSE_TOOLBAR" = yes; then | |
5053 | echo "$ac_t""yes" 1>&6 | |
5054 | else | |
5055 | echo "$ac_t""no" 1>&6 | |
5056 | fi | |
5057 | ||
5058 | ||
360d6699 VZ |
5059 | echo $ac_n "checking "for --enable-tbarnative"""... $ac_c" 1>&6 |
5060 | echo "configure:5061: checking "for --enable-tbarnative"" >&5 | |
5061 | no_cache=0 | |
5062 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
5063 | if test "${enable_tbarnative+set}" = set; then | |
5064 | enableval="$enable_tbarnative" | |
5065 | ||
5066 | if test "$enableval" = yes; then | |
5067 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
5068 | else | |
5069 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
5070 | fi | |
5071 | ||
5072 | else | |
5073 | ||
5074 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
5075 | if test "x$LINE" != x ; then | |
5076 | eval "DEFAULT_$LINE" | |
5077 | else | |
5078 | no_cache=1 | |
5079 | fi | |
5080 | ||
5081 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
5082 | ||
5083 | fi | |
5084 | ||
5085 | ||
5086 | eval "$ac_cv_use_tbarnative" | |
5087 | if test "$no_cache" != 1; then | |
5088 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
5089 | fi | |
5090 | ||
5091 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
5092 | echo "$ac_t""yes" 1>&6 | |
5093 | else | |
5094 | echo "$ac_t""no" 1>&6 | |
5095 | fi | |
5096 | ||
5097 | ||
5098 | echo $ac_n "checking "for --enable-tbarsmpl"""... $ac_c" 1>&6 | |
5099 | echo "configure:5100: checking "for --enable-tbarsmpl"" >&5 | |
5100 | no_cache=0 | |
5101 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
5102 | if test "${enable_tbarsmpl+set}" = set; then | |
5103 | enableval="$enable_tbarsmpl" | |
5104 | ||
5105 | if test "$enableval" = yes; then | |
5106 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
5107 | else | |
5108 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
5109 | fi | |
5110 | ||
5111 | else | |
5112 | ||
5113 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
5114 | if test "x$LINE" != x ; then | |
5115 | eval "DEFAULT_$LINE" | |
5116 | else | |
5117 | no_cache=1 | |
5118 | fi | |
5119 | ||
5120 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
5121 | ||
5122 | fi | |
5123 | ||
5124 | ||
5125 | eval "$ac_cv_use_tbarsmpl" | |
5126 | if test "$no_cache" != 1; then | |
5127 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
5128 | fi | |
5129 | ||
5130 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
5131 | echo "$ac_t""yes" 1>&6 | |
5132 | else | |
5133 | echo "$ac_t""no" 1>&6 | |
5134 | fi | |
5135 | ||
5136 | ||
10f2d63a | 5137 | echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6 |
360d6699 | 5138 | echo "configure:5139: checking "for --enable-treectrl"" >&5 |
10f2d63a VZ |
5139 | no_cache=0 |
5140 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
5141 | if test "${enable_treectrl+set}" = set; then | |
5142 | enableval="$enable_treectrl" | |
5143 | ||
5144 | if test "$enableval" = yes; then | |
5145 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
5146 | else | |
5147 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
5148 | fi | |
5149 | ||
5150 | else | |
5151 | ||
5152 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
5153 | if test "x$LINE" != x ; then | |
5154 | eval "DEFAULT_$LINE" | |
5155 | else | |
5156 | no_cache=1 | |
5157 | fi | |
5158 | ||
5159 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
5160 | ||
5161 | fi | |
5162 | ||
5163 | ||
5164 | eval "$ac_cv_use_treectrl" | |
5165 | if test "$no_cache" != 1; then | |
5166 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
5167 | fi | |
5168 | ||
5169 | if test "$wxUSE_TREECTRL" = yes; then | |
5170 | echo "$ac_t""yes" 1>&6 | |
5171 | else | |
5172 | echo "$ac_t""no" 1>&6 | |
5173 | fi | |
5174 | ||
5175 | ||
5176 | ||
5177 | ||
5178 | echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6 | |
360d6699 | 5179 | echo "configure:5180: checking "for --enable-commondlg"" >&5 |
10f2d63a VZ |
5180 | no_cache=0 |
5181 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
5182 | if test "${enable_commondlg+set}" = set; then | |
5183 | enableval="$enable_commondlg" | |
5184 | ||
5185 | if test "$enableval" = yes; then | |
5186 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
5187 | else | |
5188 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
5189 | fi | |
5190 | ||
5191 | else | |
5192 | ||
5193 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
5194 | if test "x$LINE" != x ; then | |
5195 | eval "DEFAULT_$LINE" | |
5196 | else | |
5197 | no_cache=1 | |
5198 | fi | |
5199 | ||
5200 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
5201 | ||
5202 | fi | |
5203 | ||
5204 | ||
5205 | eval "$ac_cv_use_commondlg" | |
5206 | if test "$no_cache" != 1; then | |
5207 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
5208 | fi | |
5209 | ||
5210 | if test "$wxUSE_COMMONDLGS" = yes; then | |
5211 | echo "$ac_t""yes" 1>&6 | |
5212 | else | |
5213 | echo "$ac_t""no" 1>&6 | |
5214 | fi | |
5215 | ||
5216 | ||
5217 | echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6 | |
360d6699 | 5218 | echo "configure:5219: checking "for --enable-dirdlg"" >&5 |
10f2d63a VZ |
5219 | no_cache=0 |
5220 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
5221 | if test "${enable_dirdlg+set}" = set; then | |
5222 | enableval="$enable_dirdlg" | |
5223 | ||
5224 | if test "$enableval" = yes; then | |
5225 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
5226 | else | |
5227 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
5228 | fi | |
5229 | ||
5230 | else | |
5231 | ||
5232 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
5233 | if test "x$LINE" != x ; then | |
5234 | eval "DEFAULT_$LINE" | |
5235 | else | |
5236 | no_cache=1 | |
5237 | fi | |
5238 | ||
5239 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
5240 | ||
5241 | fi | |
5242 | ||
5243 | ||
5244 | eval "$ac_cv_use_dirdlg" | |
5245 | if test "$no_cache" != 1; then | |
5246 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
5247 | fi | |
5248 | ||
5249 | if test "$wxUSE_DIRDLG" = yes; then | |
5250 | echo "$ac_t""yes" 1>&6 | |
5251 | else | |
5252 | echo "$ac_t""no" 1>&6 | |
5253 | fi | |
5254 | ||
5255 | ||
5256 | echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6 | |
360d6699 | 5257 | echo "configure:5258: checking "for --enable-textdlg"" >&5 |
10f2d63a VZ |
5258 | no_cache=0 |
5259 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
5260 | if test "${enable_textdlg+set}" = set; then | |
5261 | enableval="$enable_textdlg" | |
5262 | ||
5263 | if test "$enableval" = yes; then | |
5264 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
5265 | else | |
5266 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
5267 | fi | |
5268 | ||
5269 | else | |
5270 | ||
5271 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
5272 | if test "x$LINE" != x ; then | |
5273 | eval "DEFAULT_$LINE" | |
5274 | else | |
5275 | no_cache=1 | |
5276 | fi | |
5277 | ||
5278 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
5279 | ||
5280 | fi | |
5281 | ||
5282 | ||
5283 | eval "$ac_cv_use_textdlg" | |
5284 | if test "$no_cache" != 1; then | |
5285 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
5286 | fi | |
5287 | ||
5288 | if test "$wxUSE_TEXTDLG" = yes; then | |
5289 | echo "$ac_t""yes" 1>&6 | |
5290 | else | |
5291 | echo "$ac_t""no" 1>&6 | |
5292 | fi | |
5293 | ||
5294 | ||
5295 | echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6 | |
360d6699 | 5296 | echo "configure:5297: checking "for --enable-tipdlg"" >&5 |
10f2d63a VZ |
5297 | no_cache=0 |
5298 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
5299 | if test "${enable_tipdlg+set}" = set; then | |
5300 | enableval="$enable_tipdlg" | |
5301 | ||
5302 | if test "$enableval" = yes; then | |
5303 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
5304 | else | |
5305 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
5306 | fi | |
5307 | ||
5308 | else | |
5309 | ||
5310 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
5311 | if test "x$LINE" != x ; then | |
5312 | eval "DEFAULT_$LINE" | |
5313 | else | |
5314 | no_cache=1 | |
5315 | fi | |
5316 | ||
5317 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
5318 | ||
5319 | fi | |
5320 | ||
5321 | ||
5322 | eval "$ac_cv_use_tipdlg" | |
5323 | if test "$no_cache" != 1; then | |
5324 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
5325 | fi | |
5326 | ||
5327 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
5328 | echo "$ac_t""yes" 1>&6 | |
5329 | else | |
5330 | echo "$ac_t""no" 1>&6 | |
5331 | fi | |
5332 | ||
5333 | ||
5334 | echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6 | |
360d6699 | 5335 | echo "configure:5336: checking "for --enable-progressdlg"" >&5 |
10f2d63a VZ |
5336 | no_cache=0 |
5337 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
5338 | if test "${enable_progressdlg+set}" = set; then | |
5339 | enableval="$enable_progressdlg" | |
5340 | ||
5341 | if test "$enableval" = yes; then | |
5342 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
5343 | else | |
5344 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
5345 | fi | |
5346 | ||
5347 | else | |
5348 | ||
5349 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
5350 | if test "x$LINE" != x ; then | |
5351 | eval "DEFAULT_$LINE" | |
5352 | else | |
5353 | no_cache=1 | |
5354 | fi | |
5355 | ||
5356 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
5357 | ||
5358 | fi | |
5359 | ||
5360 | ||
5361 | eval "$ac_cv_use_progressdlg" | |
5362 | if test "$no_cache" != 1; then | |
5363 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
5364 | fi | |
5365 | ||
5366 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
5367 | echo "$ac_t""yes" 1>&6 | |
5368 | else | |
5369 | echo "$ac_t""no" 1>&6 | |
5370 | fi | |
5371 | ||
5372 | ||
5373 | echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6 | |
360d6699 | 5374 | echo "configure:5375: checking "for --enable-miniframe"" >&5 |
10f2d63a VZ |
5375 | no_cache=0 |
5376 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
5377 | if test "${enable_miniframe+set}" = set; then | |
5378 | enableval="$enable_miniframe" | |
5379 | ||
5380 | if test "$enableval" = yes; then | |
5381 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
5382 | else | |
5383 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
5384 | fi | |
5385 | ||
5386 | else | |
5387 | ||
5388 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
5389 | if test "x$LINE" != x ; then | |
5390 | eval "DEFAULT_$LINE" | |
5391 | else | |
5392 | no_cache=1 | |
5393 | fi | |
5394 | ||
5395 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
5396 | ||
5397 | fi | |
5398 | ||
5399 | ||
5400 | eval "$ac_cv_use_miniframe" | |
5401 | if test "$no_cache" != 1; then | |
5402 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
5403 | fi | |
5404 | ||
5405 | if test "$wxUSE_MINIFRAME" = yes; then | |
5406 | echo "$ac_t""yes" 1>&6 | |
5407 | else | |
5408 | echo "$ac_t""no" 1>&6 | |
5409 | fi | |
5410 | ||
5411 | ||
5412 | echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6 | |
360d6699 | 5413 | echo "configure:5414: checking "for --enable-html"" >&5 |
10f2d63a VZ |
5414 | no_cache=0 |
5415 | # Check whether --enable-html or --disable-html was given. | |
5416 | if test "${enable_html+set}" = set; then | |
5417 | enableval="$enable_html" | |
5418 | ||
5419 | if test "$enableval" = yes; then | |
5420 | ac_cv_use_html='wxUSE_HTML=yes' | |
5421 | else | |
5422 | ac_cv_use_html='wxUSE_HTML=no' | |
5423 | fi | |
5424 | ||
5425 | else | |
5426 | ||
5427 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
5428 | if test "x$LINE" != x ; then | |
5429 | eval "DEFAULT_$LINE" | |
5430 | else | |
5431 | no_cache=1 | |
5432 | fi | |
5433 | ||
5434 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
5435 | ||
5436 | fi | |
5437 | ||
5438 | ||
5439 | eval "$ac_cv_use_html" | |
5440 | if test "$no_cache" != 1; then | |
5441 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
5442 | fi | |
5443 | ||
5444 | if test "$wxUSE_HTML" = yes; then | |
5445 | echo "$ac_t""yes" 1>&6 | |
5446 | else | |
5447 | echo "$ac_t""no" 1>&6 | |
5448 | fi | |
5449 | ||
5450 | ||
5451 | echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6 | |
360d6699 | 5452 | echo "configure:5453: checking "for --enable-tooltips"" >&5 |
10f2d63a VZ |
5453 | no_cache=0 |
5454 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
5455 | if test "${enable_tooltips+set}" = set; then | |
5456 | enableval="$enable_tooltips" | |
5457 | ||
5458 | if test "$enableval" = yes; then | |
5459 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
5460 | else | |
5461 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
5462 | fi | |
5463 | ||
5464 | else | |
5465 | ||
5466 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
5467 | if test "x$LINE" != x ; then | |
5468 | eval "DEFAULT_$LINE" | |
5469 | else | |
5470 | no_cache=1 | |
5471 | fi | |
5472 | ||
5473 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
5474 | ||
5475 | fi | |
5476 | ||
5477 | ||
5478 | eval "$ac_cv_use_tooltips" | |
5479 | if test "$no_cache" != 1; then | |
5480 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
5481 | fi | |
5482 | ||
5483 | if test "$wxUSE_TOOLTIPS" = yes; then | |
5484 | echo "$ac_t""yes" 1>&6 | |
5485 | else | |
5486 | echo "$ac_t""no" 1>&6 | |
5487 | fi | |
5488 | ||
5489 | ||
5490 | echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6 | |
360d6699 | 5491 | echo "configure:5492: checking "for --enable-splines"" >&5 |
10f2d63a VZ |
5492 | no_cache=0 |
5493 | # Check whether --enable-splines or --disable-splines was given. | |
5494 | if test "${enable_splines+set}" = set; then | |
5495 | enableval="$enable_splines" | |
5496 | ||
5497 | if test "$enableval" = yes; then | |
5498 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
5499 | else | |
5500 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
5501 | fi | |
5502 | ||
5503 | else | |
5504 | ||
5505 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
5506 | if test "x$LINE" != x ; then | |
5507 | eval "DEFAULT_$LINE" | |
5508 | else | |
5509 | no_cache=1 | |
5510 | fi | |
5511 | ||
5512 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
5513 | ||
5514 | fi | |
5515 | ||
5516 | ||
5517 | eval "$ac_cv_use_splines" | |
5518 | if test "$no_cache" != 1; then | |
5519 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
5520 | fi | |
5521 | ||
5522 | if test "$wxUSE_SPLINES" = yes; then | |
5523 | echo "$ac_t""yes" 1>&6 | |
5524 | else | |
5525 | echo "$ac_t""no" 1>&6 | |
5526 | fi | |
5527 | ||
5528 | ||
5529 | echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6 | |
360d6699 | 5530 | echo "configure:5531: checking "for --enable-validators"" >&5 |
10f2d63a VZ |
5531 | no_cache=0 |
5532 | # Check whether --enable-validators or --disable-validators was given. | |
5533 | if test "${enable_validators+set}" = set; then | |
5534 | enableval="$enable_validators" | |
5535 | ||
5536 | if test "$enableval" = yes; then | |
5537 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
5538 | else | |
5539 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
5540 | fi | |
5541 | ||
5542 | else | |
5543 | ||
5544 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
5545 | if test "x$LINE" != x ; then | |
5546 | eval "DEFAULT_$LINE" | |
5547 | else | |
5548 | no_cache=1 | |
5549 | fi | |
5550 | ||
5551 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
5552 | ||
5553 | fi | |
5554 | ||
5555 | ||
5556 | eval "$ac_cv_use_validators" | |
5557 | if test "$no_cache" != 1; then | |
5558 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
5559 | fi | |
5560 | ||
5561 | if test "$wxUSE_VALIDATORS" = yes; then | |
5562 | echo "$ac_t""yes" 1>&6 | |
5563 | else | |
5564 | echo "$ac_t""no" 1>&6 | |
5565 | fi | |
5566 | ||
5567 | ||
5568 | echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6 | |
360d6699 | 5569 | echo "configure:5570: checking "for --enable-busyinfo"" >&5 |
10f2d63a VZ |
5570 | no_cache=0 |
5571 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
5572 | if test "${enable_busyinfo+set}" = set; then | |
5573 | enableval="$enable_busyinfo" | |
5574 | ||
5575 | if test "$enableval" = yes; then | |
5576 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
5577 | else | |
5578 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
5579 | fi | |
5580 | ||
5581 | else | |
5582 | ||
5583 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
5584 | if test "x$LINE" != x ; then | |
5585 | eval "DEFAULT_$LINE" | |
5586 | else | |
5587 | no_cache=1 | |
5588 | fi | |
5589 | ||
5590 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
5591 | ||
5592 | fi | |
5593 | ||
5594 | ||
5595 | eval "$ac_cv_use_busyinfo" | |
5596 | if test "$no_cache" != 1; then | |
5597 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
5598 | fi | |
5599 | ||
5600 | if test "$wxUSE_BUSYINFO" = yes; then | |
5601 | echo "$ac_t""yes" 1>&6 | |
5602 | else | |
5603 | echo "$ac_t""no" 1>&6 | |
5604 | fi | |
5605 | ||
5606 | ||
5607 | ||
5608 | ||
5609 | echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6 | |
360d6699 | 5610 | echo "configure:5611: checking "for --enable-gif"" >&5 |
10f2d63a VZ |
5611 | no_cache=0 |
5612 | # Check whether --enable-gif or --disable-gif was given. | |
5613 | if test "${enable_gif+set}" = set; then | |
5614 | enableval="$enable_gif" | |
5615 | ||
5616 | if test "$enableval" = yes; then | |
5617 | ac_cv_use_gif='wxUSE_GIF=yes' | |
5618 | else | |
5619 | ac_cv_use_gif='wxUSE_GIF=no' | |
5620 | fi | |
5621 | ||
5622 | else | |
5623 | ||
5624 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
5625 | if test "x$LINE" != x ; then | |
5626 | eval "DEFAULT_$LINE" | |
5627 | else | |
5628 | no_cache=1 | |
5629 | fi | |
5630 | ||
5631 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
5632 | ||
5633 | fi | |
5634 | ||
5635 | ||
5636 | eval "$ac_cv_use_gif" | |
5637 | if test "$no_cache" != 1; then | |
5638 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
5639 | fi | |
5640 | ||
5641 | if test "$wxUSE_GIF" = yes; then | |
5642 | echo "$ac_t""yes" 1>&6 | |
5643 | else | |
5644 | echo "$ac_t""no" 1>&6 | |
5645 | fi | |
5646 | ||
5647 | ||
5648 | echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6 | |
360d6699 | 5649 | echo "configure:5650: checking "for --enable-pcx"" >&5 |
10f2d63a VZ |
5650 | no_cache=0 |
5651 | # Check whether --enable-pcx or --disable-pcx was given. | |
5652 | if test "${enable_pcx+set}" = set; then | |
5653 | enableval="$enable_pcx" | |
5654 | ||
5655 | if test "$enableval" = yes; then | |
5656 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
5657 | else | |
5658 | ac_cv_use_pcx='wxUSE_PCX=no' | |
5659 | fi | |
5660 | ||
5661 | else | |
5662 | ||
5663 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
5664 | if test "x$LINE" != x ; then | |
5665 | eval "DEFAULT_$LINE" | |
5666 | else | |
5667 | no_cache=1 | |
5668 | fi | |
5669 | ||
5670 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
5671 | ||
5672 | fi | |
5673 | ||
5674 | ||
5675 | eval "$ac_cv_use_pcx" | |
5676 | if test "$no_cache" != 1; then | |
5677 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
5678 | fi | |
5679 | ||
5680 | if test "$wxUSE_PCX" = yes; then | |
5681 | echo "$ac_t""yes" 1>&6 | |
5682 | else | |
5683 | echo "$ac_t""no" 1>&6 | |
5684 | fi | |
5685 | ||
5686 | ||
5687 | echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6 | |
360d6699 | 5688 | echo "configure:5689: checking "for --enable-pnm"" >&5 |
10f2d63a VZ |
5689 | no_cache=0 |
5690 | # Check whether --enable-pnm or --disable-pnm was given. | |
5691 | if test "${enable_pnm+set}" = set; then | |
5692 | enableval="$enable_pnm" | |
5693 | ||
5694 | if test "$enableval" = yes; then | |
5695 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
5696 | else | |
5697 | ac_cv_use_pnm='wxUSE_PNM=no' | |
5698 | fi | |
5699 | ||
5700 | else | |
5701 | ||
5702 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
5703 | if test "x$LINE" != x ; then | |
5704 | eval "DEFAULT_$LINE" | |
5705 | else | |
5706 | no_cache=1 | |
5707 | fi | |
5708 | ||
5709 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
5710 | ||
5711 | fi | |
5712 | ||
5713 | ||
5714 | eval "$ac_cv_use_pnm" | |
5715 | if test "$no_cache" != 1; then | |
5716 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
5717 | fi | |
5718 | ||
5719 | if test "$wxUSE_PNM" = yes; then | |
5720 | echo "$ac_t""yes" 1>&6 | |
5721 | else | |
5722 | echo "$ac_t""no" 1>&6 | |
5723 | fi | |
5724 | ||
5725 | ||
5726 | ||
5727 | echo "saving argument cache $wx_arg_cache_file" | |
5728 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
5729 | ||
5730 | ||
5731 | ||
5732 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
360d6699 | 5733 | echo "configure:5734: checking for toolkit" >&5 |
10f2d63a VZ |
5734 | |
5735 | if test "$wxUSE_GUI" = "yes"; then | |
5736 | ||
5737 | if test "$TOOLKIT_GIVEN" = 1; then | |
5738 | for toolkit in `echo $ALL_TOOLKITS`; do | |
5739 | var=wxUSE_$toolkit | |
5740 | eval "value=\$${var}" | |
5741 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
5742 | done | |
5743 | else | |
5744 | for toolkit in `echo $ALL_TOOLKITS`; do | |
5745 | if test "$has_toolkit_in_cache" != 1; then | |
5746 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
5747 | else | |
5748 | var=DEFAULT_wxUSE_$toolkit | |
5749 | fi | |
5750 | eval "wxUSE_$toolkit=\$${var}" | |
5751 | done | |
5752 | fi | |
5753 | ||
5754 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}` | |
5755 | ||
5756 | case "$NUM_TOOLKITS" in | |
5757 | 1) | |
5758 | ;; | |
5759 | 0) | |
5760 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } | |
5761 | ;; | |
5762 | *) | |
5763 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } | |
5764 | esac | |
5765 | ||
5766 | for toolkit in `echo $ALL_TOOLKITS`; do | |
5767 | var=wxUSE_$toolkit | |
5768 | eval "value=\$${var}" | |
5769 | if test "x$value" != x; then | |
5770 | cache_var=CACHE_$toolkit | |
5771 | eval "cache=\$${cache_var}" | |
5772 | if test "$cache" = 1; then | |
5773 | echo "$var=$value" >> ${wx_arg_cache_file} | |
5774 | fi | |
5775 | if test "$value" = 1; then | |
5776 | echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6 | |
5777 | fi | |
5778 | fi | |
5779 | done | |
5780 | ||
5781 | else | |
5782 | echo "$ac_t""base only" 1>&6 | |
5783 | fi | |
5784 | ||
5785 | ||
5786 | cat > confcache <<\EOF | |
5787 | # This file is a shell script that caches the results of configure | |
5788 | # tests run on this system so they can be shared between configure | |
5789 | # scripts and configure runs. It is not useful on other systems. | |
5790 | # If it contains results you don't want to keep, you may remove or edit it. | |
5791 | # | |
5792 | # By default, configure uses ./config.cache as the cache file, | |
5793 | # creating it if it does not exist already. You can give configure | |
5794 | # the --cache-file=FILE option to use a different cache file; that is | |
5795 | # what configure does when it calls configure scripts in | |
5796 | # subdirectories, so they share the cache. | |
5797 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
5798 | # config.status only pays attention to the cache file if you give it the | |
5799 | # --recheck option to rerun configure. | |
5800 | # | |
5801 | EOF | |
5802 | # The following way of writing the cache mishandles newlines in values, | |
5803 | # but we know of no workaround that is simple, portable, and efficient. | |
5804 | # So, don't put newlines in cache variables' values. | |
5805 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
5806 | # and sets the high bit in the cache file unless we assign to the vars. | |
5807 | (set) 2>&1 | | |
5808 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
5809 | *ac_space=\ *) | |
5810 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
5811 | # turns \\\\ into \\, and sed turns \\ into \). | |
5812 | sed -n \ | |
5813 | -e "s/'/'\\\\''/g" \ | |
5814 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
5815 | ;; | |
5816 | *) | |
5817 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5818 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
5819 | ;; | |
5820 | esac >> confcache | |
5821 | if cmp -s $cache_file confcache; then | |
5822 | : | |
5823 | else | |
5824 | if test -w $cache_file; then | |
5825 | echo "updating cache $cache_file" | |
5826 | cat confcache > $cache_file | |
5827 | else | |
5828 | echo "not updating unwritable cache $cache_file" | |
5829 | fi | |
5830 | fi | |
5831 | rm -f confcache | |
5832 | ||
5833 | ||
5834 | if eval "test $host != $build"; then | |
5835 | if eval "test $host_alias != NONE"; then | |
5836 | CC=$host_alias-gcc | |
5837 | CXX=$host_alias-c++ | |
5838 | AR=$host_alias-ar | |
5839 | RANLIB=$host_alias-ranlib | |
5840 | DLLTOOL=$host_alias-dlltool | |
5841 | LD=$host_alias-ld | |
5842 | NM=$host_alias-nm | |
5843 | STRIP=$host_alias-strip | |
5844 | fi | |
5845 | fi | |
5846 | ||
5847 | # Extract the first word of "gcc", so it can be a program name with args. | |
5848 | set dummy gcc; ac_word=$2 | |
5849 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
360d6699 | 5850 | echo "configure:5851: checking for $ac_word" >&5 |
10f2d63a VZ |
5851 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
5852 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5853 | else | |
5854 | if test -n "$CC"; then | |
5855 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5856 | else | |
5857 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
5858 | ac_dummy="$PATH" | |
5859 | for ac_dir in $ac_dummy; do | |
5860 | test -z "$ac_dir" && ac_dir=. | |
5861 | if test -f $ac_dir/$ac_word; then | |
5862 | ac_cv_prog_CC="gcc" | |
5863 | break | |
5864 | fi | |
5865 | done | |
5866 | IFS="$ac_save_ifs" | |
5867 | fi | |
5868 | fi | |
5869 | CC="$ac_cv_prog_CC" | |
5870 | if test -n "$CC"; then | |
5871 | echo "$ac_t""$CC" 1>&6 | |
5872 | else | |
5873 | echo "$ac_t""no" 1>&6 | |
5874 | fi | |
5875 | ||
5876 | if test -z "$CC"; then | |
5877 | # Extract the first word of "cc", so it can be a program name with args. | |
5878 | set dummy cc; ac_word=$2 | |
5879 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
360d6699 | 5880 | echo "configure:5881: checking for $ac_word" >&5 |
10f2d63a VZ |
5881 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
5882 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5883 | else | |
5884 | if test -n "$CC"; then | |
5885 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5886 | else | |
5887 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
5888 | ac_prog_rejected=no | |
5889 | ac_dummy="$PATH" | |
5890 | for ac_dir in $ac_dummy; do | |
5891 | test -z "$ac_dir" && ac_dir=. | |
5892 | if test -f $ac_dir/$ac_word; then | |
5893 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
5894 | ac_prog_rejected=yes | |
5895 | continue | |
5896 | fi | |
5897 | ac_cv_prog_CC="cc" | |
5898 | break | |
5899 | fi | |
5900 | done | |
5901 | IFS="$ac_save_ifs" | |
5902 | if test $ac_prog_rejected = yes; then | |
5903 | # We found a bogon in the path, so make sure we never use it. | |
5904 | set dummy $ac_cv_prog_CC | |
5905 | shift | |
5906 | if test $# -gt 0; then | |
5907 | # We chose a different compiler from the bogus one. | |
5908 | # However, it has the same basename, so the bogon will be chosen | |
5909 | # first if we set CC to just the basename; use the full file name. | |
5910 | shift | |
5911 | set dummy "$ac_dir/$ac_word" "$@" | |
5912 | shift | |
5913 | ac_cv_prog_CC="$@" | |
5914 | fi | |
5915 | fi | |
5916 | fi | |
5917 | fi | |
5918 | CC="$ac_cv_prog_CC" | |
5919 | if test -n "$CC"; then | |
5920 | echo "$ac_t""$CC" 1>&6 | |
5921 | else | |
5922 | echo "$ac_t""no" 1>&6 | |
5923 | fi | |
5924 | ||
5925 | if test -z "$CC"; then | |
5926 | case "`uname -s`" in | |
5927 | *win32* | *WIN32*) | |
5928 | # Extract the first word of "cl", so it can be a program name with args. | |
5929 | set dummy cl; ac_word=$2 | |
5930 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
360d6699 | 5931 | echo "configure:5932: checking for $ac_word" >&5 |
10f2d63a VZ |
5932 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
5933 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5934 | else | |
5935 | if test -n "$CC"; then | |
5936 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5937 | else | |
5938 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
5939 | ac_dummy="$PATH" | |
5940 | for ac_dir in $ac_dummy; do | |
5941 | test -z "$ac_dir" && ac_dir=. | |
5942 | if test -f $ac_dir/$ac_word; then | |
5943 | ac_cv_prog_CC="cl" | |
5944 | break | |
5945 | fi | |
5946 | done | |
5947 | IFS="$ac_save_ifs" | |
5948 | fi | |
5949 | fi | |
5950 | CC="$ac_cv_prog_CC" | |
5951 | if test -n "$CC"; then | |
5952 | echo "$ac_t""$CC" 1>&6 | |
5953 | else | |
5954 | echo "$ac_t""no" 1>&6 | |
5955 | fi | |
5956 | ;; | |
5957 | esac | |
5958 | fi | |
5959 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
5960 | fi | |
5961 | ||
5962 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
360d6699 | 5963 | echo "configure:5964: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
10f2d63a VZ |
5964 | |
5965 | ac_ext=c | |
5966 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5967 | ac_cpp='$CPP $CPPFLAGS' | |
5968 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
5969 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
5970 | cross_compiling=$ac_cv_prog_cc_cross | |
5971 | ||
5972 | cat > conftest.$ac_ext << EOF | |
5973 | ||
360d6699 | 5974 | #line 5975 "configure" |
10f2d63a VZ |
5975 | #include "confdefs.h" |
5976 | ||
5977 | main(){return(0);} | |
5978 | EOF | |
360d6699 | 5979 | if { (eval echo configure:5980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
5980 | ac_cv_prog_cc_works=yes |
5981 | # If we can't run a trivial program, we are probably using a cross compiler. | |
5982 | if (./conftest; exit) 2>/dev/null; then | |
5983 | ac_cv_prog_cc_cross=no | |
5984 | else | |
5985 | ac_cv_prog_cc_cross=yes | |
5986 | fi | |
5987 | else | |
5988 | echo "configure: failed program was:" >&5 | |
5989 | cat conftest.$ac_ext >&5 | |
5990 | ac_cv_prog_cc_works=no | |
5991 | fi | |
5992 | rm -fr conftest* | |
5993 | ac_ext=c | |
5994 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5995 | ac_cpp='$CPP $CPPFLAGS' | |
5996 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
5997 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
5998 | cross_compiling=$ac_cv_prog_cc_cross | |
5999 | ||
6000 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
6001 | if test $ac_cv_prog_cc_works = no; then | |
6002 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
6003 | fi | |
6004 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
360d6699 | 6005 | echo "configure:6006: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
10f2d63a VZ |
6006 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
6007 | cross_compiling=$ac_cv_prog_cc_cross | |
6008 | ||
6009 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
360d6699 | 6010 | echo "configure:6011: checking whether we are using GNU C" >&5 |
10f2d63a VZ |
6011 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
6012 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6013 | else | |
6014 | cat > conftest.c <<EOF | |
6015 | #ifdef __GNUC__ | |
6016 | yes; | |
6017 | #endif | |
6018 | EOF | |
360d6699 | 6019 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:6020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
10f2d63a VZ |
6020 | ac_cv_prog_gcc=yes |
6021 | else | |
6022 | ac_cv_prog_gcc=no | |
6023 | fi | |
6024 | fi | |
6025 | ||
6026 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
6027 | ||
6028 | if test $ac_cv_prog_gcc = yes; then | |
6029 | GCC=yes | |
6030 | else | |
6031 | GCC= | |
6032 | fi | |
6033 | ||
6034 | ac_test_CFLAGS="${CFLAGS+set}" | |
6035 | ac_save_CFLAGS="$CFLAGS" | |
6036 | CFLAGS= | |
6037 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
360d6699 | 6038 | echo "configure:6039: checking whether ${CC-cc} accepts -g" >&5 |
10f2d63a VZ |
6039 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
6040 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6041 | else | |
6042 | echo 'void f(){}' > conftest.c | |
6043 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
6044 | ac_cv_prog_cc_g=yes | |
6045 | else | |
6046 | ac_cv_prog_cc_g=no | |
6047 | fi | |
6048 | rm -f conftest* | |
6049 | ||
6050 | fi | |
6051 | ||
6052 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
6053 | if test "$ac_test_CFLAGS" = set; then | |
6054 | CFLAGS="$ac_save_CFLAGS" | |
6055 | elif test $ac_cv_prog_cc_g = yes; then | |
6056 | if test "$GCC" = yes; then | |
6057 | CFLAGS="-g -O2" | |
6058 | else | |
6059 | CFLAGS="-g" | |
6060 | fi | |
6061 | else | |
6062 | if test "$GCC" = yes; then | |
6063 | CFLAGS="-O2" | |
6064 | else | |
6065 | CFLAGS= | |
6066 | fi | |
6067 | fi | |
6068 | ||
6069 | ||
6070 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
6071 | ||
6072 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
360d6699 | 6073 | echo "configure:6074: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
6074 | # On Suns, sometimes $CPP names a directory. |
6075 | if test -n "$CPP" && test -d "$CPP"; then | |
6076 | CPP= | |
6077 | fi | |
6078 | if test -z "$CPP"; then | |
6079 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
6080 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6081 | else | |
6082 | # This must be in double quotes, not single quotes, because CPP may get | |
6083 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
6084 | CPP="${CC-cc} -E" | |
6085 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6086 | # not just through cpp. | |
6087 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 6088 | #line 6089 "configure" |
10f2d63a VZ |
6089 | #include "confdefs.h" |
6090 | #include <assert.h> | |
6091 | Syntax Error | |
6092 | EOF | |
6093 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
360d6699 | 6094 | { (eval echo configure:6095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
6095 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6096 | if test -z "$ac_err"; then | |
6097 | : | |
6098 | else | |
6099 | echo "$ac_err" >&5 | |
6100 | echo "configure: failed program was:" >&5 | |
6101 | cat conftest.$ac_ext >&5 | |
6102 | rm -rf conftest* | |
6103 | CPP="${CC-cc} -E -traditional-cpp" | |
6104 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 6105 | #line 6106 "configure" |
10f2d63a VZ |
6106 | #include "confdefs.h" |
6107 | #include <assert.h> | |
6108 | Syntax Error | |
6109 | EOF | |
6110 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
360d6699 | 6111 | { (eval echo configure:6112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
6112 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6113 | if test -z "$ac_err"; then | |
6114 | : | |
6115 | else | |
6116 | echo "$ac_err" >&5 | |
6117 | echo "configure: failed program was:" >&5 | |
6118 | cat conftest.$ac_ext >&5 | |
6119 | rm -rf conftest* | |
6120 | CPP="${CC-cc} -nologo -E" | |
6121 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 6122 | #line 6123 "configure" |
10f2d63a VZ |
6123 | #include "confdefs.h" |
6124 | #include <assert.h> | |
6125 | Syntax Error | |
6126 | EOF | |
6127 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
360d6699 | 6128 | { (eval echo configure:6129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
6129 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6130 | if test -z "$ac_err"; then | |
6131 | : | |
6132 | else | |
6133 | echo "$ac_err" >&5 | |
6134 | echo "configure: failed program was:" >&5 | |
6135 | cat conftest.$ac_ext >&5 | |
6136 | rm -rf conftest* | |
6137 | CPP=/lib/cpp | |
6138 | fi | |
6139 | rm -f conftest* | |
6140 | fi | |
6141 | rm -f conftest* | |
6142 | fi | |
6143 | rm -f conftest* | |
6144 | ac_cv_prog_CPP="$CPP" | |
6145 | fi | |
6146 | CPP="$ac_cv_prog_CPP" | |
6147 | else | |
6148 | ac_cv_prog_CPP="$CPP" | |
6149 | fi | |
6150 | echo "$ac_t""$CPP" 1>&6 | |
6151 | ||
6152 | ||
6153 | if test $ac_cv_prog_gcc = yes; then | |
6154 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
360d6699 | 6155 | echo "configure:6156: checking whether ${CC-cc} needs -traditional" >&5 |
10f2d63a VZ |
6156 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
6157 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6158 | else | |
6159 | ac_pattern="Autoconf.*'x'" | |
6160 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 6161 | #line 6162 "configure" |
10f2d63a VZ |
6162 | #include "confdefs.h" |
6163 | #include <sgtty.h> | |
6164 | Autoconf TIOCGETP | |
6165 | EOF | |
6166 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6167 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
6168 | rm -rf conftest* | |
6169 | ac_cv_prog_gcc_traditional=yes | |
6170 | else | |
6171 | rm -rf conftest* | |
6172 | ac_cv_prog_gcc_traditional=no | |
6173 | fi | |
6174 | rm -f conftest* | |
6175 | ||
6176 | ||
6177 | if test $ac_cv_prog_gcc_traditional = no; then | |
6178 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 6179 | #line 6180 "configure" |
10f2d63a VZ |
6180 | #include "confdefs.h" |
6181 | #include <termio.h> | |
6182 | Autoconf TCGETA | |
6183 | EOF | |
6184 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6185 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
6186 | rm -rf conftest* | |
6187 | ac_cv_prog_gcc_traditional=yes | |
6188 | fi | |
6189 | rm -f conftest* | |
6190 | ||
6191 | fi | |
6192 | fi | |
6193 | ||
6194 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
6195 | if test $ac_cv_prog_gcc_traditional = yes; then | |
6196 | CC="$CC -traditional" | |
6197 | fi | |
6198 | fi | |
6199 | ||
6200 | ||
6201 | ||
6202 | ac_ext=C | |
6203 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6204 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6205 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6206 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6207 | cross_compiling=$ac_cv_prog_cxx_cross | |
6208 | ||
6209 | ||
6210 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
6211 | do | |
6212 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6213 | set dummy $ac_prog; ac_word=$2 | |
6214 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
360d6699 | 6215 | echo "configure:6216: checking for $ac_word" >&5 |
10f2d63a VZ |
6216 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
6217 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6218 | else | |
6219 | if test -n "$CXX"; then | |
6220 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
6221 | else | |
6222 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6223 | ac_dummy="$PATH" | |
6224 | for ac_dir in $ac_dummy; do | |
6225 | test -z "$ac_dir" && ac_dir=. | |
6226 | if test -f $ac_dir/$ac_word; then | |
6227 | ac_cv_prog_CXX="$ac_prog" | |
6228 | break | |
6229 | fi | |
6230 | done | |
6231 | IFS="$ac_save_ifs" | |
6232 | fi | |
6233 | fi | |
6234 | CXX="$ac_cv_prog_CXX" | |
6235 | if test -n "$CXX"; then | |
6236 | echo "$ac_t""$CXX" 1>&6 | |
6237 | else | |
6238 | echo "$ac_t""no" 1>&6 | |
6239 | fi | |
6240 | ||
6241 | test -n "$CXX" && break | |
6242 | done | |
6243 | test -n "$CXX" || CXX="gcc" | |
6244 | ||
6245 | ||
6246 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
360d6699 | 6247 | echo "configure:6248: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
10f2d63a VZ |
6248 | |
6249 | ac_ext=C | |
6250 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6251 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6252 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6253 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6254 | cross_compiling=$ac_cv_prog_cxx_cross | |
6255 | ||
6256 | cat > conftest.$ac_ext << EOF | |
6257 | ||
360d6699 | 6258 | #line 6259 "configure" |
10f2d63a VZ |
6259 | #include "confdefs.h" |
6260 | ||
6261 | int main(){return(0);} | |
6262 | EOF | |
360d6699 | 6263 | if { (eval echo configure:6264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
6264 | ac_cv_prog_cxx_works=yes |
6265 | # If we can't run a trivial program, we are probably using a cross compiler. | |
6266 | if (./conftest; exit) 2>/dev/null; then | |
6267 | ac_cv_prog_cxx_cross=no | |
6268 | else | |
6269 | ac_cv_prog_cxx_cross=yes | |
6270 | fi | |
6271 | else | |
6272 | echo "configure: failed program was:" >&5 | |
6273 | cat conftest.$ac_ext >&5 | |
6274 | ac_cv_prog_cxx_works=no | |
6275 | fi | |
6276 | rm -fr conftest* | |
6277 | ac_ext=C | |
6278 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6279 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6280 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6281 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6282 | cross_compiling=$ac_cv_prog_cxx_cross | |
6283 | ||
6284 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
6285 | if test $ac_cv_prog_cxx_works = no; then | |
6286 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
6287 | fi | |
6288 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
360d6699 | 6289 | echo "configure:6290: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
10f2d63a VZ |
6290 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
6291 | cross_compiling=$ac_cv_prog_cxx_cross | |
6292 | ||
6293 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
360d6699 | 6294 | echo "configure:6295: checking whether we are using GNU C++" >&5 |
10f2d63a VZ |
6295 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
6296 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6297 | else | |
6298 | cat > conftest.C <<EOF | |
6299 | #ifdef __GNUC__ | |
6300 | yes; | |
6301 | #endif | |
6302 | EOF | |
360d6699 | 6303 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6304: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
10f2d63a VZ |
6304 | ac_cv_prog_gxx=yes |
6305 | else | |
6306 | ac_cv_prog_gxx=no | |
6307 | fi | |
6308 | fi | |
6309 | ||
6310 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 | |
6311 | ||
6312 | if test $ac_cv_prog_gxx = yes; then | |
6313 | GXX=yes | |
6314 | else | |
6315 | GXX= | |
6316 | fi | |
6317 | ||
6318 | ac_test_CXXFLAGS="${CXXFLAGS+set}" | |
6319 | ac_save_CXXFLAGS="$CXXFLAGS" | |
6320 | CXXFLAGS= | |
6321 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
360d6699 | 6322 | echo "configure:6323: checking whether ${CXX-g++} accepts -g" >&5 |
10f2d63a VZ |
6323 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
6324 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6325 | else | |
6326 | echo 'void f(){}' > conftest.cc | |
6327 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
6328 | ac_cv_prog_cxx_g=yes | |
6329 | else | |
6330 | ac_cv_prog_cxx_g=no | |
6331 | fi | |
6332 | rm -f conftest* | |
6333 | ||
6334 | fi | |
6335 | ||
6336 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
6337 | if test "$ac_test_CXXFLAGS" = set; then | |
6338 | CXXFLAGS="$ac_save_CXXFLAGS" | |
6339 | elif test $ac_cv_prog_cxx_g = yes; then | |
6340 | if test "$GXX" = yes; then | |
6341 | CXXFLAGS="-g -O2" | |
6342 | else | |
6343 | CXXFLAGS="-g" | |
6344 | fi | |
6345 | else | |
6346 | if test "$GXX" = yes; then | |
6347 | CXXFLAGS="-O2" | |
6348 | else | |
6349 | CXXFLAGS= | |
6350 | fi | |
6351 | fi | |
6352 | ||
6353 | ||
6354 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 | |
360d6699 | 6355 | echo "configure:6356: checking how to run the C++ preprocessor" >&5 |
10f2d63a VZ |
6356 | if test -z "$CXXCPP"; then |
6357 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
6358 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6359 | else | |
6360 | ac_ext=C | |
6361 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6362 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6363 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6364 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6365 | cross_compiling=$ac_cv_prog_cxx_cross | |
6366 | CXXCPP="${CXX-g++} -E" | |
6367 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 6368 | #line 6369 "configure" |
10f2d63a VZ |
6369 | #include "confdefs.h" |
6370 | #include <stdlib.h> | |
6371 | EOF | |
6372 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
360d6699 | 6373 | { (eval echo configure:6374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
6374 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6375 | if test -z "$ac_err"; then | |
6376 | : | |
6377 | else | |
6378 | echo "$ac_err" >&5 | |
6379 | echo "configure: failed program was:" >&5 | |
6380 | cat conftest.$ac_ext >&5 | |
6381 | rm -rf conftest* | |
6382 | CXXCPP=/lib/cpp | |
6383 | fi | |
6384 | rm -f conftest* | |
6385 | ac_cv_prog_CXXCPP="$CXXCPP" | |
6386 | ac_ext=C | |
6387 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6388 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6389 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6390 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6391 | cross_compiling=$ac_cv_prog_cxx_cross | |
6392 | fi | |
6393 | fi | |
6394 | CXXCPP="$ac_cv_prog_CXXCPP" | |
6395 | echo "$ac_t""$CXXCPP" 1>&6 | |
6396 | ||
6397 | ||
6398 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` | |
6399 | ||
6400 | ac_ext=c | |
6401 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6402 | ac_cpp='$CPP $CPPFLAGS' | |
6403 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6404 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6405 | cross_compiling=$ac_cv_prog_cc_cross | |
6406 | ||
6407 | ||
6408 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6409 | set dummy ranlib; ac_word=$2 | |
6410 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
360d6699 | 6411 | echo "configure:6412: checking for $ac_word" >&5 |
10f2d63a VZ |
6412 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
6413 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6414 | else | |
6415 | if test -n "$RANLIB"; then | |
6416 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6417 | else | |
6418 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6419 | ac_dummy="$PATH" | |
6420 | for ac_dir in $ac_dummy; do | |
6421 | test -z "$ac_dir" && ac_dir=. | |
6422 | if test -f $ac_dir/$ac_word; then | |
6423 | ac_cv_prog_RANLIB="ranlib" | |
6424 | break | |
6425 | fi | |
6426 | done | |
6427 | IFS="$ac_save_ifs" | |
6428 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
6429 | fi | |
6430 | fi | |
6431 | RANLIB="$ac_cv_prog_RANLIB" | |
6432 | if test -n "$RANLIB"; then | |
6433 | echo "$ac_t""$RANLIB" 1>&6 | |
6434 | else | |
6435 | echo "$ac_t""no" 1>&6 | |
6436 | fi | |
6437 | ||
6438 | ||
6439 | # Extract the first word of "ar", so it can be a program name with args. | |
6440 | set dummy ar; ac_word=$2 | |
6441 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
360d6699 | 6442 | echo "configure:6443: checking for $ac_word" >&5 |
10f2d63a VZ |
6443 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
6444 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6445 | else | |
6446 | if test -n "$AR"; then | |
6447 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6448 | else | |
6449 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6450 | ac_dummy="$PATH" | |
6451 | for ac_dir in $ac_dummy; do | |
6452 | test -z "$ac_dir" && ac_dir=. | |
6453 | if test -f $ac_dir/$ac_word; then | |
6454 | ac_cv_prog_AR="ar" | |
6455 | break | |
6456 | fi | |
6457 | done | |
6458 | IFS="$ac_save_ifs" | |
6459 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
6460 | fi | |
6461 | fi | |
6462 | AR="$ac_cv_prog_AR" | |
6463 | if test -n "$AR"; then | |
6464 | echo "$ac_t""$AR" 1>&6 | |
6465 | else | |
6466 | echo "$ac_t""no" 1>&6 | |
6467 | fi | |
6468 | ||
6469 | ||
6470 | # Find a good install program. We prefer a C program (faster), | |
6471 | # so one script is as good as another. But avoid the broken or | |
6472 | # incompatible versions: | |
6473 | # SysV /etc/install, /usr/sbin/install | |
6474 | # SunOS /usr/etc/install | |
6475 | # IRIX /sbin/install | |
6476 | # AIX /bin/install | |
6477 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
6478 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
6479 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
6480 | # ./install, which can be erroneously created by make from ./install.sh. | |
6481 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
360d6699 | 6482 | echo "configure:6483: checking for a BSD compatible install" >&5 |
10f2d63a VZ |
6483 | if test -z "$INSTALL"; then |
6484 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
6485 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6486 | else | |
6487 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
6488 | for ac_dir in $PATH; do | |
6489 | # Account for people who put trailing slashes in PATH elements. | |
6490 | case "$ac_dir/" in | |
6491 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
6492 | *) | |
6493 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
6494 | # Don't use installbsd from OSF since it installs stuff as root | |
6495 | # by default. | |
6496 | for ac_prog in ginstall scoinst install; do | |
6497 | if test -f $ac_dir/$ac_prog; then | |
6498 | if test $ac_prog = install && | |
6499 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
6500 | # AIX install. It has an incompatible calling convention. | |
6501 | : | |
6502 | else | |
6503 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
6504 | break 2 | |
6505 | fi | |
6506 | fi | |
6507 | done | |
6508 | ;; | |
6509 | esac | |
6510 | done | |
6511 | IFS="$ac_save_IFS" | |
6512 | ||
6513 | fi | |
6514 | if test "${ac_cv_path_install+set}" = set; then | |
6515 | INSTALL="$ac_cv_path_install" | |
6516 | else | |
6517 | # As a last resort, use the slow shell script. We don't cache a | |
6518 | # path for INSTALL within a source directory, because that will | |
6519 | # break other packages using the cache if that directory is | |
6520 | # removed, or if the path is relative. | |
6521 | INSTALL="$ac_install_sh" | |
6522 | fi | |
6523 | fi | |
6524 | echo "$ac_t""$INSTALL" 1>&6 | |
6525 | ||
6526 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
6527 | # It thinks the first close brace ends the variable substitution. | |
6528 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
6529 | ||
6530 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
6531 | ||
6532 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
6533 | ||
6534 | ||
6535 | # Extract the first word of "strip", so it can be a program name with args. | |
6536 | set dummy strip; ac_word=$2 | |
6537 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
360d6699 | 6538 | echo "configure:6539: checking for $ac_word" >&5 |
10f2d63a VZ |
6539 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
6540 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6541 | else | |
6542 | if test -n "$STRIP"; then | |
6543 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6544 | else | |
6545 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6546 | ac_dummy="$PATH" | |
6547 | for ac_dir in $ac_dummy; do | |
6548 | test -z "$ac_dir" && ac_dir=. | |
6549 | if test -f $ac_dir/$ac_word; then | |
6550 | ac_cv_prog_STRIP="strip" | |
6551 | break | |
6552 | fi | |
6553 | done | |
6554 | IFS="$ac_save_ifs" | |
6555 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" | |
6556 | fi | |
6557 | fi | |
6558 | STRIP="$ac_cv_prog_STRIP" | |
6559 | if test -n "$STRIP"; then | |
6560 | echo "$ac_t""$STRIP" 1>&6 | |
6561 | else | |
6562 | echo "$ac_t""no" 1>&6 | |
6563 | fi | |
6564 | ||
6565 | ||
6566 | echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6 | |
360d6699 | 6567 | echo "configure:6568: checking "make for VPATH support"" >&5 |
10f2d63a VZ |
6568 | cat - << EOF > confMake |
6569 | check : file | |
6570 | cp \$? \$@ | |
6571 | cp \$? final_file | |
6572 | EOF | |
6573 | ||
6574 | if test ! -d sub ; then | |
6575 | mkdir sub | |
6576 | fi | |
6577 | echo dummy > sub/file | |
6578 | ${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null | |
6579 | RESULT=$? | |
6580 | rm -f sub/file check final_file confMake | |
6581 | rmdir sub | |
6582 | if test "$RESULT" = 0; then | |
6583 | echo "$ac_t""yes" 1>&6 | |
6584 | else | |
6585 | echo "$ac_t""no" 1>&6 | |
6586 | { echo "configure: error: You need a make-utility that is able to use the variable | |
6587 | VPATH correctly. | |
6588 | If your version of make does not support VPATH correctly" 1>&2; exit 1; } | |
6589 | fi | |
6590 | ||
6591 | for ac_prog in 'bison -y' byacc | |
6592 | do | |
6593 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6594 | set dummy $ac_prog; ac_word=$2 | |
6595 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
360d6699 | 6596 | echo "configure:6597: checking for $ac_word" >&5 |
10f2d63a VZ |
6597 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
6598 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6599 | else | |
6600 | if test -n "$YACC"; then | |
6601 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
6602 | else | |
6603 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6604 | ac_dummy="$PATH" | |
6605 | for ac_dir in $ac_dummy; do | |
6606 | test -z "$ac_dir" && ac_dir=. | |
6607 | if test -f $ac_dir/$ac_word; then | |
6608 | ac_cv_prog_YACC="$ac_prog" | |
6609 | break | |
6610 | fi | |
6611 | done | |
6612 | IFS="$ac_save_ifs" | |
6613 | fi | |
6614 | fi | |
6615 | YACC="$ac_cv_prog_YACC" | |
6616 | if test -n "$YACC"; then | |
6617 | echo "$ac_t""$YACC" 1>&6 | |
6618 | else | |
6619 | echo "$ac_t""no" 1>&6 | |
6620 | fi | |
6621 | ||
6622 | test -n "$YACC" && break | |
6623 | done | |
6624 | test -n "$YACC" || YACC="yacc" | |
6625 | ||
6626 | ||
6627 | # Extract the first word of "flex", so it can be a program name with args. | |
6628 | set dummy flex; ac_word=$2 | |
6629 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
360d6699 | 6630 | echo "configure:6631: checking for $ac_word" >&5 |
10f2d63a VZ |
6631 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
6632 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6633 | else | |
6634 | if test -n "$LEX"; then | |
6635 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
6636 | else | |
6637 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6638 | ac_dummy="$PATH" | |
6639 | for ac_dir in $ac_dummy; do | |
6640 | test -z "$ac_dir" && ac_dir=. | |
6641 | if test -f $ac_dir/$ac_word; then | |
6642 | ac_cv_prog_LEX="flex" | |
6643 | break | |
6644 | fi | |
6645 | done | |
6646 | IFS="$ac_save_ifs" | |
6647 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
6648 | fi | |
6649 | fi | |
6650 | LEX="$ac_cv_prog_LEX" | |
6651 | if test -n "$LEX"; then | |
6652 | echo "$ac_t""$LEX" 1>&6 | |
6653 | else | |
6654 | echo "$ac_t""no" 1>&6 | |
6655 | fi | |
6656 | ||
6657 | if test -z "$LEXLIB" | |
6658 | then | |
6659 | case "$LEX" in | |
6660 | flex*) ac_lib=fl ;; | |
6661 | *) ac_lib=l ;; | |
6662 | esac | |
6663 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
360d6699 | 6664 | echo "configure:6665: checking for yywrap in -l$ac_lib" >&5 |
10f2d63a VZ |
6665 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
6666 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
6667 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6668 | else | |
6669 | ac_save_LIBS="$LIBS" | |
6670 | LIBS="-l$ac_lib $LIBS" | |
6671 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 6672 | #line 6673 "configure" |
10f2d63a VZ |
6673 | #include "confdefs.h" |
6674 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6675 | /* We use char because int might match the return type of a gcc2 | |
6676 | builtin and then its argument prototype would still apply. */ | |
6677 | char yywrap(); | |
6678 | ||
6679 | int main() { | |
6680 | yywrap() | |
6681 | ; return 0; } | |
6682 | EOF | |
360d6699 | 6683 | if { (eval echo configure:6684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
6684 | rm -rf conftest* |
6685 | eval "ac_cv_lib_$ac_lib_var=yes" | |
6686 | else | |
6687 | echo "configure: failed program was:" >&5 | |
6688 | cat conftest.$ac_ext >&5 | |
6689 | rm -rf conftest* | |
6690 | eval "ac_cv_lib_$ac_lib_var=no" | |
6691 | fi | |
6692 | rm -f conftest* | |
6693 | LIBS="$ac_save_LIBS" | |
6694 | ||
6695 | fi | |
6696 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
6697 | echo "$ac_t""yes" 1>&6 | |
6698 | LEXLIB="-l$ac_lib" | |
6699 | else | |
6700 | echo "$ac_t""no" 1>&6 | |
6701 | fi | |
6702 | ||
6703 | fi | |
6704 | ||
6705 | ||
6706 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
360d6699 | 6707 | echo "configure:6708: checking whether ln -s works" >&5 |
10f2d63a VZ |
6708 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
6709 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6710 | else | |
6711 | rm -f conftestdata | |
6712 | if ln -s X conftestdata 2>/dev/null | |
6713 | then | |
6714 | rm -f conftestdata | |
6715 | ac_cv_prog_LN_S="ln -s" | |
6716 | else | |
6717 | ac_cv_prog_LN_S=ln | |
6718 | fi | |
6719 | fi | |
6720 | LN_S="$ac_cv_prog_LN_S" | |
6721 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
6722 | echo "$ac_t""yes" 1>&6 | |
6723 | else | |
6724 | echo "$ac_t""no" 1>&6 | |
6725 | fi | |
6726 | ||
6727 | ||
6728 | ||
6729 | SEARCH_INCLUDE="\ | |
6730 | /usr/local/include \ | |
6731 | \ | |
6732 | /usr/Motif-1.2/include \ | |
6733 | /usr/Motif-2.1/include \ | |
6734 | \ | |
6735 | /usr/include/Motif1.2 \ | |
6736 | /opt/xpm/include/X11 \ | |
6737 | /opt/GBxpm/include/ \ | |
6738 | /opt/GBxpm/X11/include/ \ | |
6739 | \ | |
6740 | /usr/Motif1.2/include \ | |
6741 | /usr/dt/include \ | |
afc31813 VZ |
6742 | /usr/openwin/include \ |
6743 | \ | |
10f2d63a VZ |
6744 | /usr/include/Xm \ |
6745 | \ | |
6746 | /usr/X11R6/include \ | |
afc31813 | 6747 | /usr/X11R6.4/include \ |
10f2d63a VZ |
6748 | /usr/X11R5/include \ |
6749 | /usr/X11R4/include \ | |
6750 | \ | |
10f2d63a VZ |
6751 | /usr/include/X11R6 \ |
6752 | /usr/include/X11R5 \ | |
6753 | /usr/include/X11R4 \ | |
6754 | \ | |
6755 | /usr/local/X11R6/include \ | |
6756 | /usr/local/X11R5/include \ | |
6757 | /usr/local/X11R4/include \ | |
6758 | \ | |
6759 | /usr/local/include/X11R6 \ | |
6760 | /usr/local/include/X11R5 \ | |
6761 | /usr/local/include/X11R4 \ | |
6762 | \ | |
6763 | /usr/X11/include \ | |
6764 | /usr/include/X11 \ | |
6765 | /usr/local/X11/include \ | |
6766 | /usr/local/include/X11 \ | |
6767 | \ | |
6768 | /usr/X386/include \ | |
6769 | /usr/x386/include \ | |
6770 | /usr/XFree86/include/X11 \ | |
6771 | \ | |
6772 | /usr/include/gtk \ | |
6773 | /usr/local/include/gtk \ | |
6774 | /usr/include/glib \ | |
6775 | /usr/local/include/glib \ | |
6776 | \ | |
6777 | /usr/include/qt \ | |
6778 | /usr/local/include/qt \ | |
6779 | \ | |
6780 | /usr/include/windows \ | |
6781 | /usr/include/wine \ | |
6782 | /usr/local/include/wine \ | |
6783 | \ | |
6784 | /usr/unsupported/include \ | |
6785 | /usr/athena/include \ | |
6786 | /usr/local/x11r5/include \ | |
6787 | /usr/lpp/Xamples/include \ | |
6788 | \ | |
10f2d63a | 6789 | /usr/openwin/share/include \ |
928b5c08 VZ |
6790 | \ |
6791 | /usr/include" | |
10f2d63a VZ |
6792 | |
6793 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
6794 | ||
6795 | ||
6796 | cat > confcache <<\EOF | |
6797 | # This file is a shell script that caches the results of configure | |
6798 | # tests run on this system so they can be shared between configure | |
6799 | # scripts and configure runs. It is not useful on other systems. | |
6800 | # If it contains results you don't want to keep, you may remove or edit it. | |
6801 | # | |
6802 | # By default, configure uses ./config.cache as the cache file, | |
6803 | # creating it if it does not exist already. You can give configure | |
6804 | # the --cache-file=FILE option to use a different cache file; that is | |
6805 | # what configure does when it calls configure scripts in | |
6806 | # subdirectories, so they share the cache. | |
6807 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
6808 | # config.status only pays attention to the cache file if you give it the | |
6809 | # --recheck option to rerun configure. | |
6810 | # | |
6811 | EOF | |
6812 | # The following way of writing the cache mishandles newlines in values, | |
6813 | # but we know of no workaround that is simple, portable, and efficient. | |
6814 | # So, don't put newlines in cache variables' values. | |
6815 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
6816 | # and sets the high bit in the cache file unless we assign to the vars. | |
6817 | (set) 2>&1 | | |
6818 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
6819 | *ac_space=\ *) | |
6820 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
6821 | # turns \\\\ into \\, and sed turns \\ into \). | |
6822 | sed -n \ | |
6823 | -e "s/'/'\\\\''/g" \ | |
6824 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
6825 | ;; | |
6826 | *) | |
6827 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
6828 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
6829 | ;; | |
6830 | esac >> confcache | |
6831 | if cmp -s $cache_file confcache; then | |
6832 | : | |
6833 | else | |
6834 | if test -w $cache_file; then | |
6835 | echo "updating cache $cache_file" | |
6836 | cat confcache > $cache_file | |
6837 | else | |
6838 | echo "not updating unwritable cache $cache_file" | |
6839 | fi | |
6840 | fi | |
6841 | rm -f confcache | |
6842 | ||
6843 | ||
6844 | ||
6845 | if test "$wxUSE_GUI" = "yes"; then | |
6846 | ||
6847 | TOOLKIT= | |
6848 | TOOLKIT_INCLUDE= | |
6849 | ||
6850 | GUIOBJS= | |
6851 | COMMONOBJS= | |
6852 | GENERICOBJS= | |
6853 | ||
6854 | GUI_TK_LIBRARY= | |
6855 | GUI_TK_LINK= | |
6856 | ||
6857 | WXGTK12= | |
6858 | ||
6859 | WXWINE= | |
6860 | ||
6861 | PROGRAM_EXT= | |
6862 | ||
6863 | if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then | |
6864 | if test "$cross_compiling" = "yes" ; then | |
6865 | echo "configure: warning: Cross compiling --- skipping windows.h check" 1>&2 | |
6866 | else | |
6867 | echo $ac_n "checking for Windows headers""... $ac_c" 1>&6 | |
360d6699 | 6868 | echo "configure:6869: checking for Windows headers" >&5 |
10f2d63a VZ |
6869 | |
6870 | ac_find_includes= | |
6871 | for ac_dir in $SEARCH_INCLUDE; | |
6872 | do | |
6873 | if test -f "$ac_dir/windows.h"; then | |
6874 | ac_find_includes=$ac_dir | |
6875 | break | |
6876 | fi | |
6877 | done | |
6878 | ||
6879 | if test "$ac_find_includes" != "" ; then | |
6880 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
6881 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
6882 | else | |
6883 | echo "$ac_t""no" 1>&6 | |
6884 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
6885 | fi | |
6886 | fi | |
6887 | ||
6888 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw" | |
6889 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32" | |
6890 | ||
6891 | if test "$wxUSE_MINGW" = 1; then | |
6892 | LDFLAGS="$LDFLAGS -mwindows" | |
6893 | fi | |
6894 | ||
6895 | TOOLKIT=MSW | |
6896 | ||
6897 | GUIOBJS="\$(MSW_GUIOBJS)" | |
6898 | GUIHEADERS="\$(MSW_HEADERS)" | |
6899 | COMMONOBJS="\$(MSW_COMMONOBJS)" | |
6900 | GENERICOBJS="\$(MSW_GENERICOBJS)" | |
6901 | UNIXOBJS= | |
6902 | GUIDIST=MSW_DIST | |
6903 | PROGRAM_EXT=.exe | |
6904 | fi | |
6905 | ||
6906 | if test "$wxUSE_GTK" = 1; then | |
6907 | ||
6908 | if test x$gtk_config_exec_prefix != x ; then | |
6909 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
6910 | if test x${GTK_CONFIG+set} != xset ; then | |
6911 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
6912 | fi | |
6913 | fi | |
6914 | if test x$gtk_config_prefix != x ; then | |
6915 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
6916 | if test x${GTK_CONFIG+set} != xset ; then | |
6917 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
6918 | fi | |
6919 | fi | |
6920 | ||
6921 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
6922 | set dummy gtk-config; ac_word=$2 | |
6923 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
360d6699 | 6924 | echo "configure:6925: checking for $ac_word" >&5 |
10f2d63a VZ |
6925 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
6926 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6927 | else | |
6928 | case "$GTK_CONFIG" in | |
6929 | /*) | |
6930 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
6931 | ;; | |
6932 | ?:/*) | |
6933 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
6934 | ;; | |
6935 | *) | |
6936 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6937 | ac_dummy="$PATH" | |
6938 | for ac_dir in $ac_dummy; do | |
6939 | test -z "$ac_dir" && ac_dir=. | |
6940 | if test -f $ac_dir/$ac_word; then | |
6941 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
6942 | break | |
6943 | fi | |
6944 | done | |
6945 | IFS="$ac_save_ifs" | |
6946 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
6947 | ;; | |
6948 | esac | |
6949 | fi | |
6950 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
6951 | if test -n "$GTK_CONFIG"; then | |
6952 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
6953 | else | |
6954 | echo "$ac_t""no" 1>&6 | |
6955 | fi | |
6956 | ||
6957 | min_gtk_version=1.2.1 | |
6958 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 | |
360d6699 | 6959 | echo "configure:6960: checking for GTK - version >= $min_gtk_version" >&5 |
10f2d63a VZ |
6960 | no_gtk="" |
6961 | if test "$GTK_CONFIG" != "no" ; then | |
6962 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
6963 | GTK_LIBS=`$GTK_CONFIG --libs` | |
6964 | ac_save_CFLAGS="$CFLAGS" | |
6965 | ac_save_LIBS="$LIBS" | |
6966 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
6967 | LIBS="$LIBS $GTK_LIBS" | |
6968 | if test "$cross_compiling" = yes; then | |
6969 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
6970 | else | |
6971 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 6972 | #line 6973 "configure" |
10f2d63a VZ |
6973 | #include "confdefs.h" |
6974 | ||
6975 | #include <gtk/gtk.h> | |
f49f2b0c | 6976 | #include <gtk/gtkfeatures.h> |
10f2d63a VZ |
6977 | #include <stdio.h> |
6978 | ||
6979 | int | |
6980 | main () | |
6981 | { | |
6982 | int major, minor, micro; | |
6983 | ||
6984 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
6985 | printf("%s, bad version string\n", "$min_gtk_version"); | |
6986 | exit(1); | |
6987 | } | |
6988 | ||
f49f2b0c RR |
6989 | if ((GTK_MAJOR_VERSION != gtk_major_version) || |
6990 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
6991 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
6992 | printf("Headers vs. library version mismatch!\n"); | |
6993 | exit(1); | |
6994 | } | |
6995 | ||
10f2d63a VZ |
6996 | if (gtk_minor_version == 1) return FALSE; |
6997 | ||
6998 | return !((gtk_major_version > major) || | |
6999 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
7000 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
7001 | } | |
7002 | ||
7003 | EOF | |
360d6699 | 7004 | if { (eval echo configure:7005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
7005 | then |
7006 | : | |
7007 | else | |
7008 | echo "configure: failed program was:" >&5 | |
7009 | cat conftest.$ac_ext >&5 | |
7010 | rm -fr conftest* | |
7011 | no_gtk=yes | |
7012 | fi | |
7013 | rm -fr conftest* | |
7014 | fi | |
7015 | ||
7016 | CFLAGS="$ac_save_CFLAGS" | |
7017 | LIBS="$ac_save_LIBS" | |
7018 | else | |
7019 | no_gtk=yes | |
7020 | fi | |
7021 | if test "x$no_gtk" = x ; then | |
7022 | echo "$ac_t""yes" 1>&6 | |
7023 | WXGTK12=1 | |
7024 | else | |
7025 | echo "$ac_t""no" 1>&6 | |
7026 | GTK_CFLAGS="" | |
7027 | GTK_LIBS="" | |
7028 | { echo "configure: error: Is gtk-config in path and GTK+ is version 1.2.1 or above?" 1>&2; exit 1; } | |
7029 | fi | |
7030 | ||
7031 | ||
7032 | ||
7033 | ||
7034 | TOOLKIT_INCLUDE="$GTK_CFLAGS" | |
7035 | GUI_TK_LIBRARY="$GTK_LIBS" | |
7036 | TOOLKIT=GTK | |
7037 | ||
7038 | GUIOBJS="\$(GTK_GUIOBJS)" | |
7039 | GUIHEADERS="\$(GTK_HEADERS)" | |
7040 | COMMONOBJS="\$(GTK_COMMONOBJS)" | |
7041 | GENERICOBJS="\$(GTK_GENERICOBJS)" | |
7042 | GUIDEPS="\$(GTK_GUIDEPS)" | |
7043 | COMMONDEPS="\$(GTK_COMMONDEPS)" | |
7044 | GENERICDEPS="\$(GTK_GENERICDEPS)" | |
7045 | UNIXOBJS="\$(UNIX_OBJS)" | |
d9d8273d | 7046 | UNIXDEPS="\$(UNIX_DEPS)" |
10f2d63a | 7047 | GUIDIST=GTK_DIST |
7ec2881a RR |
7048 | |
7049 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 | |
360d6699 | 7050 | echo "configure:7051: checking for gdk_im_open in -lgdk" >&5 |
7ec2881a RR |
7051 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
7052 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7053 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7054 | else | |
7055 | ac_save_LIBS="$LIBS" | |
7056 | LIBS="-lgdk $LIBS" | |
7057 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 7058 | #line 7059 "configure" |
7ec2881a RR |
7059 | #include "confdefs.h" |
7060 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7061 | /* We use char because int might match the return type of a gcc2 | |
7062 | builtin and then its argument prototype would still apply. */ | |
7063 | char gdk_im_open(); | |
7064 | ||
7065 | int main() { | |
7066 | gdk_im_open() | |
7067 | ; return 0; } | |
7068 | EOF | |
360d6699 | 7069 | if { (eval echo configure:7070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7ec2881a RR |
7070 | rm -rf conftest* |
7071 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7072 | else | |
7073 | echo "configure: failed program was:" >&5 | |
7074 | cat conftest.$ac_ext >&5 | |
7075 | rm -rf conftest* | |
7076 | eval "ac_cv_lib_$ac_lib_var=no" | |
7077 | fi | |
7078 | rm -f conftest* | |
7079 | LIBS="$ac_save_LIBS" | |
7080 | ||
7081 | fi | |
7082 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7083 | echo "$ac_t""yes" 1>&6 | |
7084 | cat >> confdefs.h <<\EOF | |
7085 | #define HAVE_XIM 1 | |
7086 | EOF | |
7087 | ||
7088 | else | |
7089 | echo "$ac_t""no" 1>&6 | |
7090 | fi | |
7091 | ||
7092 | ||
10f2d63a VZ |
7093 | fi |
7094 | ||
7095 | if test "$wxUSE_WINE" = 1; then | |
7096 | echo $ac_n "checking for WINE includes""... $ac_c" 1>&6 | |
360d6699 | 7097 | echo "configure:7098: checking for WINE includes" >&5 |
10f2d63a VZ |
7098 | |
7099 | ac_find_includes= | |
7100 | for ac_dir in $SEARCH_INCLUDE; | |
7101 | do | |
7102 | if test -f "$ac_dir/windows.h"; then | |
7103 | ac_find_includes=$ac_dir | |
7104 | break | |
7105 | fi | |
7106 | done | |
7107 | ||
7108 | if test "$ac_find_includes" != "" ; then | |
7109 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
7110 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
7111 | else | |
7112 | echo "$ac_t""no" 1>&6 | |
7113 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
7114 | fi | |
7115 | ||
7116 | XPM_LINK="" | |
7117 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
360d6699 | 7118 | echo "configure:7119: checking for Xpm library" >&5 |
10f2d63a VZ |
7119 | |
7120 | ac_find_libraries= | |
7121 | for ac_dir in $SEARCH_LIB; | |
7122 | do | |
7123 | for ac_extension in a so sl; do | |
7124 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
7125 | ac_find_libraries=$ac_dir | |
7126 | break 2 | |
7127 | fi | |
7128 | done | |
7129 | done | |
7130 | ||
7131 | if test "$ac_find_libraries" != "" ; then | |
7132 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
7133 | XPM_LINK="-lXpm" | |
7134 | cat >> confdefs.h <<\EOF | |
7135 | #define wxHAVE_LIB_XPM 1 | |
7136 | EOF | |
7137 | ||
7138 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
7139 | else | |
7140 | echo "$ac_t""no" 1>&6 | |
7141 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
7142 | fi | |
7143 | ||
7144 | MESA_LINK="" | |
7145 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 | |
360d6699 | 7146 | echo "configure:7147: checking for Mesa library" >&5 |
10f2d63a VZ |
7147 | |
7148 | ac_find_libraries= | |
7149 | for ac_dir in $SEARCH_LIB; | |
7150 | do | |
7151 | for ac_extension in a so sl; do | |
7152 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
7153 | ac_find_libraries=$ac_dir | |
7154 | break 2 | |
7155 | fi | |
7156 | done | |
7157 | done | |
7158 | ||
7159 | if test "$ac_find_libraries" != "" ; then | |
7160 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
7161 | MESA_LINK="-lMesaGL" | |
7162 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
7163 | else | |
7164 | { echo "configure: error: no" 1>&2; exit 1; } | |
7165 | fi | |
7166 | ||
7167 | GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses -lm" | |
7168 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" | |
7169 | WXWINE=1 | |
7170 | TOOLKIT=MSW | |
7171 | ||
7172 | GUIHEADERS="\$(MSW_HEADERS)" | |
7173 | GUIOBJS="\$(MSW_GUIOBJS)" | |
7174 | COMMONOBJS="\$(MSW_COMMONOBJS)" | |
7175 | GENERICOBJS="\$(MSW_GENERICOBJS)" | |
7176 | GUIDEPS="\$(MSW_GUIDEPS)" | |
7177 | COMMONDEPS="\$(MSW_COMMONDEPS)" | |
7178 | GENERICDEPS="\$(MSW_GENERICDEPS)" | |
7179 | UNIXOBJS="\$(UNIX_OBJS)" | |
d9d8273d | 7180 | UNIXDEPS="\$(UNIX_DEPS)" |
10f2d63a VZ |
7181 | GUIDIST=MSW_DIST |
7182 | fi | |
7183 | ||
7184 | if test "$wxUSE_MOTIF" = 1; then | |
ab9b9eab VZ |
7185 | # If we find X, set shell vars x_includes and x_libraries to the |
7186 | # paths, otherwise set no_x=yes. | |
7187 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
7188 | # --without-x overrides everything else, but does not touch the cache. | |
7189 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
360d6699 | 7190 | echo "configure:7191: checking for X" >&5 |
ab9b9eab VZ |
7191 | |
7192 | # Check whether --with-x or --without-x was given. | |
7193 | if test "${with_x+set}" = set; then | |
7194 | withval="$with_x" | |
7195 | : | |
7196 | fi | |
ba337fe7 | 7197 | |
ab9b9eab VZ |
7198 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
7199 | if test "x$with_x" = xno; then | |
7200 | # The user explicitly disabled X. | |
7201 | have_x=disabled | |
7202 | else | |
7203 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
7204 | # Both variables are already set. | |
7205 | have_x=yes | |
7206 | else | |
7207 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then | |
7208 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7209 | else | |
7210 | # One or both of the vars are not set, and there is no cached value. | |
7211 | ac_x_includes=NO ac_x_libraries=NO | |
7212 | rm -fr conftestdir | |
7213 | if mkdir conftestdir; then | |
7214 | cd conftestdir | |
7215 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
7216 | cat > Imakefile <<'EOF' | |
7217 | acfindx: | |
7218 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
7219 | EOF | |
7220 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
7221 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
7222 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
7223 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
10f2d63a | 7224 | for ac_extension in a so sl; do |
ab9b9eab VZ |
7225 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
7226 | test -f $ac_im_libdir/libX11.$ac_extension; then | |
7227 | ac_im_usrlibdir=$ac_im_libdir; break | |
10f2d63a VZ |
7228 | fi |
7229 | done | |
ab9b9eab VZ |
7230 | # Screen out bogus values from the imake configuration. They are |
7231 | # bogus both because they are the default anyway, and because | |
7232 | # using them would break gcc on systems where it needs fixed includes. | |
7233 | case "$ac_im_incroot" in | |
7234 | /usr/include) ;; | |
7235 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; | |
7236 | esac | |
7237 | case "$ac_im_usrlibdir" in | |
7238 | /usr/lib | /lib) ;; | |
7239 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; | |
7240 | esac | |
ba337fe7 | 7241 | fi |
ab9b9eab VZ |
7242 | cd .. |
7243 | rm -fr conftestdir | |
7244 | fi | |
10f2d63a | 7245 | |
ab9b9eab VZ |
7246 | if test "$ac_x_includes" = NO; then |
7247 | # Guess where to find include files, by looking for this one X11 .h file. | |
7248 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
ba337fe7 | 7249 | |
ab9b9eab VZ |
7250 | # First, try using that file with no special directory specified. |
7251 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 7252 | #line 7253 "configure" |
ab9b9eab VZ |
7253 | #include "confdefs.h" |
7254 | #include <$x_direct_test_include> | |
7255 | EOF | |
7256 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
360d6699 | 7257 | { (eval echo configure:7258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
ab9b9eab VZ |
7258 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7259 | if test -z "$ac_err"; then | |
7260 | rm -rf conftest* | |
7261 | # We can compile using X headers with no special include directory. | |
7262 | ac_x_includes= | |
7263 | else | |
7264 | echo "$ac_err" >&5 | |
7265 | echo "configure: failed program was:" >&5 | |
7266 | cat conftest.$ac_ext >&5 | |
7267 | rm -rf conftest* | |
7268 | # Look for the header file in a standard set of common directories. | |
7269 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
7270 | for ac_dir in \ | |
7271 | /usr/X11/include \ | |
7272 | /usr/X11R6/include \ | |
7273 | /usr/X11R5/include \ | |
7274 | /usr/X11R4/include \ | |
7275 | \ | |
7276 | /usr/include/X11 \ | |
7277 | /usr/include/X11R6 \ | |
7278 | /usr/include/X11R5 \ | |
7279 | /usr/include/X11R4 \ | |
7280 | \ | |
7281 | /usr/local/X11/include \ | |
7282 | /usr/local/X11R6/include \ | |
7283 | /usr/local/X11R5/include \ | |
7284 | /usr/local/X11R4/include \ | |
7285 | \ | |
7286 | /usr/local/include/X11 \ | |
7287 | /usr/local/include/X11R6 \ | |
7288 | /usr/local/include/X11R5 \ | |
7289 | /usr/local/include/X11R4 \ | |
7290 | \ | |
7291 | /usr/X386/include \ | |
7292 | /usr/x386/include \ | |
7293 | /usr/XFree86/include/X11 \ | |
7294 | \ | |
7295 | /usr/include \ | |
7296 | /usr/local/include \ | |
7297 | /usr/unsupported/include \ | |
7298 | /usr/athena/include \ | |
7299 | /usr/local/x11r5/include \ | |
7300 | /usr/lpp/Xamples/include \ | |
7301 | \ | |
7302 | /usr/openwin/include \ | |
7303 | /usr/openwin/share/include \ | |
7304 | ; \ | |
10f2d63a | 7305 | do |
ab9b9eab VZ |
7306 | if test -r "$ac_dir/$x_direct_test_include"; then |
7307 | ac_x_includes=$ac_dir | |
10f2d63a VZ |
7308 | break |
7309 | fi | |
7310 | done | |
ab9b9eab VZ |
7311 | fi |
7312 | rm -f conftest* | |
7313 | fi # $ac_x_includes = NO | |
10f2d63a | 7314 | |
ab9b9eab VZ |
7315 | if test "$ac_x_libraries" = NO; then |
7316 | # Check for the libraries. | |
10f2d63a | 7317 | |
ab9b9eab VZ |
7318 | test -z "$x_direct_test_library" && x_direct_test_library=Xt |
7319 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
10f2d63a | 7320 | |
ab9b9eab VZ |
7321 | # See if we find them without any special options. |
7322 | # Don't add to $LIBS permanently. | |
7323 | ac_save_LIBS="$LIBS" | |
7324 | LIBS="-l$x_direct_test_library $LIBS" | |
7325 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 7326 | #line 7327 "configure" |
ab9b9eab | 7327 | #include "confdefs.h" |
10f2d63a | 7328 | |
ab9b9eab VZ |
7329 | int main() { |
7330 | ${x_direct_test_function}() | |
7331 | ; return 0; } | |
7332 | EOF | |
360d6699 | 7333 | if { (eval echo configure:7334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7334 | rm -rf conftest* |
7335 | LIBS="$ac_save_LIBS" | |
7336 | # We can link X programs with no special library path. | |
7337 | ac_x_libraries= | |
7338 | else | |
7339 | echo "configure: failed program was:" >&5 | |
7340 | cat conftest.$ac_ext >&5 | |
7341 | rm -rf conftest* | |
7342 | LIBS="$ac_save_LIBS" | |
7343 | # First see if replacing the include by lib works. | |
7344 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
7345 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
7346 | /usr/X11/lib \ | |
7347 | /usr/X11R6/lib \ | |
7348 | /usr/X11R5/lib \ | |
7349 | /usr/X11R4/lib \ | |
7350 | \ | |
7351 | /usr/lib/X11 \ | |
7352 | /usr/lib/X11R6 \ | |
7353 | /usr/lib/X11R5 \ | |
7354 | /usr/lib/X11R4 \ | |
7355 | \ | |
7356 | /usr/local/X11/lib \ | |
7357 | /usr/local/X11R6/lib \ | |
7358 | /usr/local/X11R5/lib \ | |
7359 | /usr/local/X11R4/lib \ | |
7360 | \ | |
7361 | /usr/local/lib/X11 \ | |
7362 | /usr/local/lib/X11R6 \ | |
7363 | /usr/local/lib/X11R5 \ | |
7364 | /usr/local/lib/X11R4 \ | |
7365 | \ | |
7366 | /usr/X386/lib \ | |
7367 | /usr/x386/lib \ | |
7368 | /usr/XFree86/lib/X11 \ | |
7369 | \ | |
7370 | /usr/lib \ | |
7371 | /usr/local/lib \ | |
7372 | /usr/unsupported/lib \ | |
7373 | /usr/athena/lib \ | |
7374 | /usr/local/x11r5/lib \ | |
7375 | /usr/lpp/Xamples/lib \ | |
7376 | /lib/usr/lib/X11 \ | |
7377 | \ | |
7378 | /usr/openwin/lib \ | |
7379 | /usr/openwin/share/lib \ | |
7380 | ; \ | |
7381 | do | |
7382 | for ac_extension in a so sl; do | |
7383 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then | |
7384 | ac_x_libraries=$ac_dir | |
7385 | break 2 | |
10f2d63a | 7386 | fi |
10f2d63a | 7387 | done |
ab9b9eab VZ |
7388 | done |
7389 | fi | |
7390 | rm -f conftest* | |
7391 | fi # $ac_x_libraries = NO | |
10f2d63a | 7392 | |
ab9b9eab VZ |
7393 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
7394 | # Didn't find X anywhere. Cache the known absence of X. | |
7395 | ac_cv_have_x="have_x=no" | |
7396 | else | |
7397 | # Record where we found X for the cache. | |
7398 | ac_cv_have_x="have_x=yes \ | |
7399 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
7400 | fi | |
7401 | fi | |
10f2d63a | 7402 | fi |
ab9b9eab VZ |
7403 | eval "$ac_cv_have_x" |
7404 | fi # $with_x != no | |
10f2d63a | 7405 | |
ab9b9eab VZ |
7406 | if test "$have_x" != yes; then |
7407 | echo "$ac_t""$have_x" 1>&6 | |
7408 | no_x=yes | |
7409 | else | |
7410 | # If each of the values was on the command line, it overrides each guess. | |
7411 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
7412 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
7413 | # Update the cache value to reflect the command line values. | |
7414 | ac_cv_have_x="have_x=yes \ | |
7415 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
7416 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 | |
7417 | fi | |
10f2d63a | 7418 | |
ab9b9eab VZ |
7419 | if test "$no_x" = yes; then |
7420 | # Not all programs may use this symbol, but it does not hurt to define it. | |
7421 | cat >> confdefs.h <<\EOF | |
7422 | #define X_DISPLAY_MISSING 1 | |
7423 | EOF | |
10f2d63a | 7424 | |
ab9b9eab VZ |
7425 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
7426 | else | |
7427 | if test -n "$x_includes"; then | |
7428 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
10f2d63a VZ |
7429 | fi |
7430 | ||
ab9b9eab VZ |
7431 | # It would also be nice to do this for all -L options, not just this one. |
7432 | if test -n "$x_libraries"; then | |
7433 | X_LIBS="$X_LIBS -L$x_libraries" | |
7434 | # For Solaris; some versions of Sun CC require a space after -R and | |
7435 | # others require no space. Words are not sufficient . . . . | |
7436 | case "`(uname -sr) 2>/dev/null`" in | |
7437 | "SunOS 5"*) | |
7438 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | |
360d6699 | 7439 | echo "configure:7440: checking whether -R must be followed by a space" >&5 |
ab9b9eab VZ |
7440 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
7441 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 7442 | #line 7443 "configure" |
ab9b9eab | 7443 | #include "confdefs.h" |
10f2d63a | 7444 | |
ab9b9eab | 7445 | int main() { |
788deba1 | 7446 | |
ab9b9eab VZ |
7447 | ; return 0; } |
7448 | EOF | |
360d6699 | 7449 | if { (eval echo configure:7450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7450 | rm -rf conftest* |
7451 | ac_R_nospace=yes | |
7452 | else | |
7453 | echo "configure: failed program was:" >&5 | |
7454 | cat conftest.$ac_ext >&5 | |
7455 | rm -rf conftest* | |
7456 | ac_R_nospace=no | |
7457 | fi | |
7458 | rm -f conftest* | |
7459 | if test $ac_R_nospace = yes; then | |
7460 | echo "$ac_t""no" 1>&6 | |
7461 | X_LIBS="$X_LIBS -R$x_libraries" | |
7462 | else | |
7463 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
7464 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 7465 | #line 7466 "configure" |
ab9b9eab | 7466 | #include "confdefs.h" |
788deba1 | 7467 | |
ab9b9eab VZ |
7468 | int main() { |
7469 | ||
7470 | ; return 0; } | |
7471 | EOF | |
360d6699 | 7472 | if { (eval echo configure:7473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7473 | rm -rf conftest* |
7474 | ac_R_space=yes | |
7475 | else | |
7476 | echo "configure: failed program was:" >&5 | |
7477 | cat conftest.$ac_ext >&5 | |
7478 | rm -rf conftest* | |
7479 | ac_R_space=no | |
7480 | fi | |
7481 | rm -f conftest* | |
7482 | if test $ac_R_space = yes; then | |
7483 | echo "$ac_t""yes" 1>&6 | |
7484 | X_LIBS="$X_LIBS -R $x_libraries" | |
7485 | else | |
7486 | echo "$ac_t""neither works" 1>&6 | |
7487 | fi | |
7488 | fi | |
7489 | LIBS="$ac_xsave_LIBS" | |
7490 | esac | |
7491 | fi | |
7492 | ||
7493 | # Check for system-dependent libraries X programs must link with. | |
7494 | # Do this before checking for the system-independent R6 libraries | |
7495 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
7496 | ||
7497 | if test "$ISC" = yes; then | |
7498 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
7499 | else | |
7500 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | |
7501 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
7502 | # the Alpha needs dnet_stub (dnet does not exist). | |
7503 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
360d6699 | 7504 | echo "configure:7505: checking for dnet_ntoa in -ldnet" >&5 |
ab9b9eab VZ |
7505 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
7506 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7507 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7508 | else | |
7509 | ac_save_LIBS="$LIBS" | |
7510 | LIBS="-ldnet $LIBS" | |
7511 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 7512 | #line 7513 "configure" |
ab9b9eab VZ |
7513 | #include "confdefs.h" |
7514 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7515 | /* We use char because int might match the return type of a gcc2 | |
7516 | builtin and then its argument prototype would still apply. */ | |
7517 | char dnet_ntoa(); | |
7518 | ||
7519 | int main() { | |
7520 | dnet_ntoa() | |
7521 | ; return 0; } | |
7522 | EOF | |
360d6699 | 7523 | if { (eval echo configure:7524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7524 | rm -rf conftest* |
7525 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7526 | else | |
7527 | echo "configure: failed program was:" >&5 | |
7528 | cat conftest.$ac_ext >&5 | |
7529 | rm -rf conftest* | |
7530 | eval "ac_cv_lib_$ac_lib_var=no" | |
7531 | fi | |
7532 | rm -f conftest* | |
7533 | LIBS="$ac_save_LIBS" | |
7534 | ||
7535 | fi | |
7536 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7537 | echo "$ac_t""yes" 1>&6 | |
7538 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
7539 | else | |
7540 | echo "$ac_t""no" 1>&6 | |
7541 | fi | |
7542 | ||
7543 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
7544 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | |
360d6699 | 7545 | echo "configure:7546: checking for dnet_ntoa in -ldnet_stub" >&5 |
ab9b9eab VZ |
7546 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
7547 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7548 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7549 | else | |
7550 | ac_save_LIBS="$LIBS" | |
7551 | LIBS="-ldnet_stub $LIBS" | |
7552 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 7553 | #line 7554 "configure" |
ab9b9eab VZ |
7554 | #include "confdefs.h" |
7555 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7556 | /* We use char because int might match the return type of a gcc2 | |
7557 | builtin and then its argument prototype would still apply. */ | |
7558 | char dnet_ntoa(); | |
7559 | ||
7560 | int main() { | |
7561 | dnet_ntoa() | |
7562 | ; return 0; } | |
7563 | EOF | |
360d6699 | 7564 | if { (eval echo configure:7565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7565 | rm -rf conftest* |
7566 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7567 | else | |
7568 | echo "configure: failed program was:" >&5 | |
7569 | cat conftest.$ac_ext >&5 | |
7570 | rm -rf conftest* | |
7571 | eval "ac_cv_lib_$ac_lib_var=no" | |
7572 | fi | |
7573 | rm -f conftest* | |
7574 | LIBS="$ac_save_LIBS" | |
7575 | ||
7576 | fi | |
7577 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7578 | echo "$ac_t""yes" 1>&6 | |
7579 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
7580 | else | |
7581 | echo "$ac_t""no" 1>&6 | |
7582 | fi | |
7583 | ||
7584 | fi | |
7585 | ||
7586 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
7587 | # to get the SysV transport functions. | |
7588 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | |
7589 | # needs -lnsl. | |
7590 | # The nsl library prevents programs from opening the X display | |
7591 | # on Irix 5.2, according to dickey@clark.net. | |
7592 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
360d6699 | 7593 | echo "configure:7594: checking for gethostbyname" >&5 |
ab9b9eab VZ |
7594 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
7595 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7596 | else | |
7597 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 7598 | #line 7599 "configure" |
ab9b9eab VZ |
7599 | #include "confdefs.h" |
7600 | /* System header to define __stub macros and hopefully few prototypes, | |
7601 | which can conflict with char gethostbyname(); below. */ | |
7602 | #include <assert.h> | |
7603 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7604 | /* We use char because int might match the return type of a gcc2 | |
7605 | builtin and then its argument prototype would still apply. */ | |
7606 | char gethostbyname(); | |
7607 | ||
7608 | int main() { | |
7609 | ||
7610 | /* The GNU C library defines this for functions which it implements | |
7611 | to always fail with ENOSYS. Some functions are actually named | |
7612 | something starting with __ and the normal name is an alias. */ | |
7613 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
7614 | choke me | |
7615 | #else | |
e694c22c | 7616 | gethostbyname(); |
ab9b9eab VZ |
7617 | #endif |
7618 | ||
7619 | ; return 0; } | |
7620 | EOF | |
360d6699 | 7621 | if { (eval echo configure:7622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7622 | rm -rf conftest* |
7623 | eval "ac_cv_func_gethostbyname=yes" | |
7624 | else | |
7625 | echo "configure: failed program was:" >&5 | |
7626 | cat conftest.$ac_ext >&5 | |
7627 | rm -rf conftest* | |
7628 | eval "ac_cv_func_gethostbyname=no" | |
7629 | fi | |
7630 | rm -f conftest* | |
7631 | fi | |
7632 | ||
7633 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
7634 | echo "$ac_t""yes" 1>&6 | |
7635 | : | |
7636 | else | |
7637 | echo "$ac_t""no" 1>&6 | |
7638 | fi | |
7639 | ||
7640 | if test $ac_cv_func_gethostbyname = no; then | |
7641 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
360d6699 | 7642 | echo "configure:7643: checking for gethostbyname in -lnsl" >&5 |
ab9b9eab VZ |
7643 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
7644 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7645 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7646 | else | |
7647 | ac_save_LIBS="$LIBS" | |
7648 | LIBS="-lnsl $LIBS" | |
7649 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 7650 | #line 7651 "configure" |
ab9b9eab VZ |
7651 | #include "confdefs.h" |
7652 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7653 | /* We use char because int might match the return type of a gcc2 | |
7654 | builtin and then its argument prototype would still apply. */ | |
7655 | char gethostbyname(); | |
7656 | ||
7657 | int main() { | |
7658 | gethostbyname() | |
7659 | ; return 0; } | |
7660 | EOF | |
360d6699 | 7661 | if { (eval echo configure:7662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7662 | rm -rf conftest* |
7663 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7664 | else | |
7665 | echo "configure: failed program was:" >&5 | |
7666 | cat conftest.$ac_ext >&5 | |
7667 | rm -rf conftest* | |
7668 | eval "ac_cv_lib_$ac_lib_var=no" | |
7669 | fi | |
7670 | rm -f conftest* | |
7671 | LIBS="$ac_save_LIBS" | |
7672 | ||
7673 | fi | |
7674 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7675 | echo "$ac_t""yes" 1>&6 | |
7676 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
7677 | else | |
7678 | echo "$ac_t""no" 1>&6 | |
7679 | fi | |
7680 | ||
7681 | fi | |
7682 | ||
7683 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
7684 | # socket/setsockopt and other routines are undefined under SCO ODT | |
7685 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
7686 | # on later versions), says simon@lia.di.epfl.ch: it contains | |
7687 | # gethostby* variants that don't use the nameserver (or something). | |
7688 | # -lsocket must be given before -lnsl if both are needed. | |
7689 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
7690 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
360d6699 | 7691 | echo "configure:7692: checking for connect" >&5 |
ab9b9eab VZ |
7692 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
7693 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7694 | else | |
7695 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 7696 | #line 7697 "configure" |
ab9b9eab VZ |
7697 | #include "confdefs.h" |
7698 | /* System header to define __stub macros and hopefully few prototypes, | |
7699 | which can conflict with char connect(); below. */ | |
7700 | #include <assert.h> | |
7701 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7702 | /* We use char because int might match the return type of a gcc2 | |
7703 | builtin and then its argument prototype would still apply. */ | |
7704 | char connect(); | |
7705 | ||
7706 | int main() { | |
7707 | ||
7708 | /* The GNU C library defines this for functions which it implements | |
7709 | to always fail with ENOSYS. Some functions are actually named | |
7710 | something starting with __ and the normal name is an alias. */ | |
7711 | #if defined (__stub_connect) || defined (__stub___connect) | |
7712 | choke me | |
7713 | #else | |
e694c22c | 7714 | connect(); |
ab9b9eab VZ |
7715 | #endif |
7716 | ||
7717 | ; return 0; } | |
7718 | EOF | |
360d6699 | 7719 | if { (eval echo configure:7720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7720 | rm -rf conftest* |
7721 | eval "ac_cv_func_connect=yes" | |
7722 | else | |
7723 | echo "configure: failed program was:" >&5 | |
7724 | cat conftest.$ac_ext >&5 | |
7725 | rm -rf conftest* | |
7726 | eval "ac_cv_func_connect=no" | |
7727 | fi | |
7728 | rm -f conftest* | |
7729 | fi | |
7730 | ||
7731 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
7732 | echo "$ac_t""yes" 1>&6 | |
7733 | : | |
7734 | else | |
7735 | echo "$ac_t""no" 1>&6 | |
7736 | fi | |
7737 | ||
7738 | if test $ac_cv_func_connect = no; then | |
7739 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 | |
360d6699 | 7740 | echo "configure:7741: checking for connect in -lsocket" >&5 |
ab9b9eab VZ |
7741 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
7742 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7743 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7744 | else | |
7745 | ac_save_LIBS="$LIBS" | |
7746 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
7747 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 7748 | #line 7749 "configure" |
ab9b9eab VZ |
7749 | #include "confdefs.h" |
7750 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7751 | /* We use char because int might match the return type of a gcc2 | |
7752 | builtin and then its argument prototype would still apply. */ | |
7753 | char connect(); | |
7754 | ||
7755 | int main() { | |
7756 | connect() | |
7757 | ; return 0; } | |
7758 | EOF | |
360d6699 | 7759 | if { (eval echo configure:7760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7760 | rm -rf conftest* |
7761 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7762 | else | |
7763 | echo "configure: failed program was:" >&5 | |
7764 | cat conftest.$ac_ext >&5 | |
7765 | rm -rf conftest* | |
7766 | eval "ac_cv_lib_$ac_lib_var=no" | |
7767 | fi | |
7768 | rm -f conftest* | |
7769 | LIBS="$ac_save_LIBS" | |
7770 | ||
7771 | fi | |
7772 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7773 | echo "$ac_t""yes" 1>&6 | |
7774 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
7775 | else | |
7776 | echo "$ac_t""no" 1>&6 | |
7777 | fi | |
7778 | ||
7779 | fi | |
7780 | ||
7781 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. | |
7782 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
360d6699 | 7783 | echo "configure:7784: checking for remove" >&5 |
ab9b9eab VZ |
7784 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
7785 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7786 | else | |
7787 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 7788 | #line 7789 "configure" |
ab9b9eab VZ |
7789 | #include "confdefs.h" |
7790 | /* System header to define __stub macros and hopefully few prototypes, | |
7791 | which can conflict with char remove(); below. */ | |
7792 | #include <assert.h> | |
7793 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7794 | /* We use char because int might match the return type of a gcc2 | |
7795 | builtin and then its argument prototype would still apply. */ | |
7796 | char remove(); | |
7797 | ||
7798 | int main() { | |
7799 | ||
7800 | /* The GNU C library defines this for functions which it implements | |
7801 | to always fail with ENOSYS. Some functions are actually named | |
7802 | something starting with __ and the normal name is an alias. */ | |
7803 | #if defined (__stub_remove) || defined (__stub___remove) | |
7804 | choke me | |
7805 | #else | |
e694c22c | 7806 | remove(); |
ab9b9eab VZ |
7807 | #endif |
7808 | ||
7809 | ; return 0; } | |
7810 | EOF | |
360d6699 | 7811 | if { (eval echo configure:7812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7812 | rm -rf conftest* |
7813 | eval "ac_cv_func_remove=yes" | |
7814 | else | |
7815 | echo "configure: failed program was:" >&5 | |
7816 | cat conftest.$ac_ext >&5 | |
7817 | rm -rf conftest* | |
7818 | eval "ac_cv_func_remove=no" | |
7819 | fi | |
7820 | rm -f conftest* | |
7821 | fi | |
7822 | ||
7823 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
7824 | echo "$ac_t""yes" 1>&6 | |
7825 | : | |
7826 | else | |
7827 | echo "$ac_t""no" 1>&6 | |
7828 | fi | |
7829 | ||
7830 | if test $ac_cv_func_remove = no; then | |
7831 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | |
360d6699 | 7832 | echo "configure:7833: checking for remove in -lposix" >&5 |
ab9b9eab VZ |
7833 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
7834 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7835 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7836 | else | |
7837 | ac_save_LIBS="$LIBS" | |
7838 | LIBS="-lposix $LIBS" | |
7839 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 7840 | #line 7841 "configure" |
ab9b9eab VZ |
7841 | #include "confdefs.h" |
7842 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7843 | /* We use char because int might match the return type of a gcc2 | |
7844 | builtin and then its argument prototype would still apply. */ | |
7845 | char remove(); | |
7846 | ||
7847 | int main() { | |
7848 | remove() | |
7849 | ; return 0; } | |
7850 | EOF | |
360d6699 | 7851 | if { (eval echo configure:7852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7852 | rm -rf conftest* |
7853 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7854 | else | |
7855 | echo "configure: failed program was:" >&5 | |
7856 | cat conftest.$ac_ext >&5 | |
7857 | rm -rf conftest* | |
7858 | eval "ac_cv_lib_$ac_lib_var=no" | |
7859 | fi | |
7860 | rm -f conftest* | |
7861 | LIBS="$ac_save_LIBS" | |
7862 | ||
7863 | fi | |
7864 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7865 | echo "$ac_t""yes" 1>&6 | |
7866 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
7867 | else | |
7868 | echo "$ac_t""no" 1>&6 | |
7869 | fi | |
7870 | ||
7871 | fi | |
7872 | ||
7873 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
7874 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 | |
360d6699 | 7875 | echo "configure:7876: checking for shmat" >&5 |
ab9b9eab VZ |
7876 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
7877 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7878 | else | |
7879 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 7880 | #line 7881 "configure" |
ab9b9eab VZ |
7881 | #include "confdefs.h" |
7882 | /* System header to define __stub macros and hopefully few prototypes, | |
7883 | which can conflict with char shmat(); below. */ | |
7884 | #include <assert.h> | |
7885 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7886 | /* We use char because int might match the return type of a gcc2 | |
7887 | builtin and then its argument prototype would still apply. */ | |
7888 | char shmat(); | |
7889 | ||
7890 | int main() { | |
7891 | ||
7892 | /* The GNU C library defines this for functions which it implements | |
7893 | to always fail with ENOSYS. Some functions are actually named | |
7894 | something starting with __ and the normal name is an alias. */ | |
7895 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
7896 | choke me | |
7897 | #else | |
e694c22c | 7898 | shmat(); |
ab9b9eab VZ |
7899 | #endif |
7900 | ||
7901 | ; return 0; } | |
7902 | EOF | |
360d6699 | 7903 | if { (eval echo configure:7904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7904 | rm -rf conftest* |
7905 | eval "ac_cv_func_shmat=yes" | |
7906 | else | |
7907 | echo "configure: failed program was:" >&5 | |
7908 | cat conftest.$ac_ext >&5 | |
7909 | rm -rf conftest* | |
7910 | eval "ac_cv_func_shmat=no" | |
7911 | fi | |
7912 | rm -f conftest* | |
7913 | fi | |
7914 | ||
7915 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
7916 | echo "$ac_t""yes" 1>&6 | |
7917 | : | |
7918 | else | |
7919 | echo "$ac_t""no" 1>&6 | |
7920 | fi | |
7921 | ||
7922 | if test $ac_cv_func_shmat = no; then | |
7923 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | |
360d6699 | 7924 | echo "configure:7925: checking for shmat in -lipc" >&5 |
ab9b9eab VZ |
7925 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
7926 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7927 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7928 | else | |
7929 | ac_save_LIBS="$LIBS" | |
7930 | LIBS="-lipc $LIBS" | |
7931 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 7932 | #line 7933 "configure" |
ab9b9eab VZ |
7933 | #include "confdefs.h" |
7934 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7935 | /* We use char because int might match the return type of a gcc2 | |
7936 | builtin and then its argument prototype would still apply. */ | |
7937 | char shmat(); | |
7938 | ||
7939 | int main() { | |
7940 | shmat() | |
7941 | ; return 0; } | |
7942 | EOF | |
360d6699 | 7943 | if { (eval echo configure:7944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7944 | rm -rf conftest* |
7945 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7946 | else | |
7947 | echo "configure: failed program was:" >&5 | |
7948 | cat conftest.$ac_ext >&5 | |
7949 | rm -rf conftest* | |
7950 | eval "ac_cv_lib_$ac_lib_var=no" | |
7951 | fi | |
7952 | rm -f conftest* | |
7953 | LIBS="$ac_save_LIBS" | |
7954 | ||
7955 | fi | |
7956 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7957 | echo "$ac_t""yes" 1>&6 | |
7958 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
7959 | else | |
7960 | echo "$ac_t""no" 1>&6 | |
7961 | fi | |
7962 | ||
7963 | fi | |
7964 | fi | |
7965 | ||
7966 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
7967 | ac_save_LDFLAGS="$LDFLAGS" | |
7968 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
7969 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
7970 | # check for ICE first), but we must link in the order -lSM -lICE or | |
7971 | # we get undefined symbols. So assume we have SM if we have ICE. | |
7972 | # These have to be linked with before -lX11, unlike the other | |
7973 | # libraries we check for below, so use a different variable. | |
7974 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | |
7975 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
360d6699 | 7976 | echo "configure:7977: checking for IceConnectionNumber in -lICE" >&5 |
ab9b9eab VZ |
7977 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
7978 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7979 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7980 | else | |
7981 | ac_save_LIBS="$LIBS" | |
7982 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
7983 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 7984 | #line 7985 "configure" |
ab9b9eab VZ |
7985 | #include "confdefs.h" |
7986 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7987 | /* We use char because int might match the return type of a gcc2 | |
7988 | builtin and then its argument prototype would still apply. */ | |
7989 | char IceConnectionNumber(); | |
7990 | ||
7991 | int main() { | |
7992 | IceConnectionNumber() | |
7993 | ; return 0; } | |
7994 | EOF | |
360d6699 | 7995 | if { (eval echo configure:7996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7996 | rm -rf conftest* |
7997 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7998 | else | |
7999 | echo "configure: failed program was:" >&5 | |
8000 | cat conftest.$ac_ext >&5 | |
8001 | rm -rf conftest* | |
8002 | eval "ac_cv_lib_$ac_lib_var=no" | |
8003 | fi | |
8004 | rm -f conftest* | |
8005 | LIBS="$ac_save_LIBS" | |
8006 | ||
8007 | fi | |
8008 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8009 | echo "$ac_t""yes" 1>&6 | |
8010 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
8011 | else | |
8012 | echo "$ac_t""no" 1>&6 | |
8013 | fi | |
8014 | ||
8015 | LDFLAGS="$ac_save_LDFLAGS" | |
8016 | ||
8017 | fi | |
8018 | ||
8019 | ||
8020 | if test "$no_x" = "yes"; then | |
8021 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
8022 | fi | |
8023 | ||
8024 | GUI_TK_LIBRARY="$X_LIBS" | |
8025 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
8026 | ||
8027 | ||
8028 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 | |
360d6699 | 8029 | echo "configure:8030: checking for Motif/Lesstif headers" >&5 |
ab9b9eab VZ |
8030 | |
8031 | ac_find_includes= | |
8032 | for ac_dir in $SEARCH_INCLUDE; | |
8033 | do | |
8034 | if test -f "$ac_dir/Xm/Xm.h"; then | |
8035 | ac_find_includes=$ac_dir | |
8036 | break | |
8037 | fi | |
8038 | done | |
8039 | ||
8040 | if test "$ac_find_includes" != "" ; then | |
8041 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
8042 | else | |
8043 | echo "$ac_t""no" 1>&6 | |
8044 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
8045 | fi | |
8046 | ||
8047 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
360d6699 | 8048 | echo "configure:8049: checking for Motif/Lesstif library" >&5 |
ab9b9eab VZ |
8049 | |
8050 | ac_find_libraries= | |
8051 | for ac_dir in $SEARCH_LIB; | |
8052 | do | |
8053 | for ac_extension in a so sl; do | |
8054 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
8055 | ac_find_libraries=$ac_dir | |
8056 | break 2 | |
8057 | fi | |
8058 | done | |
8059 | done | |
8060 | ||
8061 | if test "$ac_find_libraries" != "" ; then | |
8062 | ||
8063 | ac_path_to_include=$ac_find_includes | |
8064 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
8065 | result=$? | |
8066 | if test $result = 0; then | |
8067 | ac_path_to_include="" | |
8068 | else | |
8069 | ac_path_to_include="-I$ac_find_includes" | |
8070 | fi | |
8071 | ||
8072 | ||
8073 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
8074 | result=$? | |
8075 | if test $result = 0; then | |
8076 | ac_path_to_link="" | |
8077 | else | |
8078 | ac_path_to_link="-L$ac_find_libraries" | |
8079 | fi | |
8080 | ||
8081 | ||
8082 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" | |
8083 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include" | |
8084 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
8085 | else | |
8086 | echo "$ac_t""no" 1>&6 | |
8087 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
8088 | fi | |
8089 | ||
8090 | echo $ac_n "checking for Xt library""... $ac_c" 1>&6 | |
360d6699 | 8091 | echo "configure:8092: checking for Xt library" >&5 |
ab9b9eab VZ |
8092 | |
8093 | ac_find_libraries= | |
8094 | for ac_dir in $SEARCH_LIB; | |
8095 | do | |
8096 | for ac_extension in a so sl; do | |
8097 | if test -f "$ac_dir/libXt.$ac_extension"; then | |
8098 | ac_find_libraries=$ac_dir | |
8099 | break 2 | |
8100 | fi | |
8101 | done | |
8102 | done | |
8103 | ||
8104 | if test "$ac_find_libraries" != "" ; then | |
8105 | ||
8106 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
8107 | result=$? | |
8108 | if test $result = 0; then | |
8109 | ac_path_to_link="" | |
8110 | else | |
8111 | ac_path_to_link="-L$ac_find_libraries" | |
8112 | fi | |
8113 | ||
8114 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" | |
8115 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
8116 | else | |
8117 | echo "$ac_t""no" 1>&6 | |
8118 | { echo "configure: error: please set LDFLAGS to contain the location of libXt" 1>&2; exit 1; } | |
8119 | fi | |
8120 | ||
8121 | XPM_LINK="" | |
8122 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
360d6699 | 8123 | echo "configure:8124: checking for Xpm library" >&5 |
ab9b9eab VZ |
8124 | |
8125 | ac_find_libraries= | |
8126 | for ac_dir in $SEARCH_LIB; | |
8127 | do | |
8128 | for ac_extension in a so sl; do | |
8129 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
8130 | ac_find_libraries=$ac_dir | |
8131 | break 2 | |
8132 | fi | |
8133 | done | |
8134 | done | |
8135 | ||
8136 | if test "$ac_find_libraries" != "" ; then | |
8137 | ||
8138 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
8139 | result=$? | |
8140 | if test $result = 0; then | |
8141 | ac_path_to_link="" | |
8142 | else | |
8143 | ac_path_to_link="-L$ac_find_libraries" | |
8144 | fi | |
8145 | ||
8146 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" | |
8147 | XPM_LINK="-lXpm " | |
8148 | cat >> confdefs.h <<\EOF | |
8149 | #define wxHAVE_LIB_XPM 1 | |
8150 | EOF | |
8151 | ||
8152 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
8153 | else | |
8154 | echo "$ac_t""no" 1>&6 | |
8155 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
8156 | fi | |
8157 | ||
8158 | GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11 -lm" | |
8159 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" | |
8160 | TOOLKIT=MOTIF | |
8161 | ||
8162 | GUIHEADERS="\$(MOTIF_HEADERS)" | |
8163 | GUIOBJS="\$(MOTIF_GUIOBJS)" | |
8164 | COMMONOBJS="\$(MOTIF_COMMONOBJS)" | |
788deba1 VZ |
8165 | GENERICOBJS="\$(MOTIF_GENERICOBJS)" |
8166 | GUIDEPS="\$(MOTIF_GUIDEPS)" | |
8167 | COMMONDEPS="\$(MOTIF_COMMONDEPS)" | |
10f2d63a VZ |
8168 | GENERICDEPS="\$(MOTIF_GENERICDEPS)" |
8169 | UNIXOBJS="\$(UNIX_OBJS)" | |
d9d8273d | 8170 | UNIXDEPS="\$(UNIX_DEPS)" |
10f2d63a VZ |
8171 | GUIDIST=MOTIF_DIST |
8172 | fi | |
8173 | ||
8174 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "A-Z" "a-z"` | |
8175 | ||
8176 | TOOLKIT_DEF="-D__WX${TOOLKIT}__" | |
8177 | ||
8178 | WX_LIBRARY="wx_${TOOLKIT_DIR}" | |
8179 | ||
d9d8273d RR |
8180 | ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(IODBCOBJS)" |
8181 | if test "$wxUSE_LIBJPEG" = "yes" ; then | |
8182 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
8183 | fi | |
8184 | if test "$wxUSE_LIBTIFF" = "yes" ; then | |
8185 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
8186 | fi | |
8187 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
8188 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
8189 | fi | |
8190 | if test "$wxUSE_ZLIB" = "yes" ; then | |
8191 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
8192 | fi | |
10f2d63a VZ |
8193 | ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS)" |
8194 | ALL_HEADERS="\$(GUIHEADERS) \$(HTML_HEADERS) \$(UNIX_HEADERS) \$(PROTOCOL_HEADERS) \$(GENERIC_HEADERS) \$(WX_HEADERS)" | |
8195 | else | |
8196 | ||
8197 | ALL_OBJECTS="\$(BASE_OBJS)" | |
8198 | ALL_DEPFILES="\${BASE_DEPS}" | |
8199 | ALL_HEADERS="\${BASE_HEADERS}" | |
8200 | ||
8201 | WX_LIBRARY="wxbase" | |
8202 | fi | |
8203 | ||
8204 | WX_LIBRARY_NAME="lib${WX_LIBRARY}.la" | |
8205 | ||
8206 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
8207 | ||
8208 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
8209 | ||
8210 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}" | |
8211 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so" | |
8212 | WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so" | |
8213 | ||
8214 | SHARED_LD= | |
8215 | PIC_FLAG= | |
8216 | WX_ALL= | |
8217 | WX_ALL_INSTALLED= | |
1d62a8b4 | 8218 | BURNT_LIBRARY_NAME= |
10f2d63a VZ |
8219 | |
8220 | if test "$wxUSE_SHARED" = "yes"; then | |
8221 | case "${host}" in | |
8222 | *-hp-hpux* ) | |
8223 | if test "$GCC" = yes ; then | |
69ffe1d2 | 8224 | SHARED_LD="${CC} -shared -fPIC -o" |
10f2d63a VZ |
8225 | PIC_FLAG="-fPIC" |
8226 | else | |
8227 | SHARED_LD="${CXX} -b -o" | |
8228 | PIC_FLAG="+Z" | |
8229 | fi | |
8230 | WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl" | |
8231 | WX_ALL=${WX_LIBRARY_NAME_SHARED} | |
8232 | ;; | |
8233 | *-*-linux* ) | |
8234 | SHARED_LD="${CC} -shared -o" | |
8235 | PIC_FLAG="-fPIC" | |
8236 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8237 | WX_ALL="CREATE_LINKS" | |
d984207c | 8238 | ;; |
10f2d63a VZ |
8239 | *-*-irix5* | *-*-irix6* ) |
8240 | if test "$GCC" = yes ; then | |
8241 | SHARED_LD="${CC} -shared -o" | |
8242 | PIC_FLAG="-fPIC" | |
8243 | else | |
8244 | SHARED_LD="${CXX} -shared -o" | |
8245 | fi | |
8246 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8247 | WX_ALL="CREATE_LINKS" | |
8248 | ;; | |
8249 | *-*-solaris2* ) | |
8250 | if test "$GCC" = yes ; then | |
8251 | SHARED_LD="${CC} -shared -o" | |
8252 | PIC_FLAG="-fPIC" | |
8253 | else | |
8254 | SHARED_LD="${CXX} -G -o" | |
8255 | PIC_FLAG="-KPIC" | |
8256 | fi | |
8257 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8258 | WX_ALL="CREATE_LINKS" | |
8259 | ;; | |
8260 | *-*-sunos4* ) | |
8261 | SHARED_LD="${CC} -shared -o" | |
8262 | PIC_FLAG="-fPIC" | |
8263 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8264 | WX_ALL="CREATE_LINKS" | |
8265 | ;; | |
8266 | *-*-freebsd* | *-*-netbsd*) | |
8267 | SHARED_LD="${CC} -shared -o" | |
8268 | PIC_FLAG="-fPIC" | |
8269 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8270 | WX_ALL="CREATE_LINKS" | |
8271 | ;; | |
8272 | *-*-osf* ) | |
8273 | SHARED_LD="${CXX} -shared -o" | |
8274 | PIC_FLAG="-fPIC" | |
8275 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8276 | WX_ALL="CREATE_LINKS" | |
8277 | ;; | |
8278 | *-*-dgux5* ) | |
8279 | SHARED_LD="${CXX} -shared -o" | |
8280 | PIC_FLAG="-fPIC" | |
8281 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8282 | WX_ALL="CREATE_LINKS" | |
8283 | ;; | |
8284 | *-*-sysv5* ) | |
8285 | SHARED_LD="${CC} -shared -o" | |
8286 | PIC_FLAG="-fPIC" | |
8287 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8288 | WX_ALL="CREATE_LINKS" | |
8289 | ;; | |
8290 | *-*-aix* ) | |
8291 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
8292 | WX_ALL=${WX_LIBRARY_NAME_SHARED} | |
8293 | ;; | |
8294 | *-*-cygwin32* ) | |
8295 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
8296 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
8297 | ;; | |
8298 | *-*-mingw32* ) | |
8299 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
8300 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
8301 | ;; | |
8302 | *-pc-os2_emx ) | |
8303 | ;; | |
8304 | *) | |
8305 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } | |
8306 | esac | |
8307 | ||
8308 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
8309 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
8310 | fi | |
8311 | else | |
8312 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
8313 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
8314 | fi | |
8315 | ||
8316 | ||
8317 | for ac_hdr in strings.h | |
8318 | do | |
8319 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8320 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
360d6699 | 8321 | echo "configure:8322: checking for $ac_hdr" >&5 |
10f2d63a VZ |
8322 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8323 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8324 | else | |
8325 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 8326 | #line 8327 "configure" |
10f2d63a VZ |
8327 | #include "confdefs.h" |
8328 | #include <$ac_hdr> | |
8329 | EOF | |
8330 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
360d6699 | 8331 | { (eval echo configure:8332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
8332 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8333 | if test -z "$ac_err"; then | |
8334 | rm -rf conftest* | |
8335 | eval "ac_cv_header_$ac_safe=yes" | |
8336 | else | |
8337 | echo "$ac_err" >&5 | |
8338 | echo "configure: failed program was:" >&5 | |
8339 | cat conftest.$ac_ext >&5 | |
8340 | rm -rf conftest* | |
8341 | eval "ac_cv_header_$ac_safe=no" | |
8342 | fi | |
8343 | rm -f conftest* | |
8344 | fi | |
8345 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8346 | echo "$ac_t""yes" 1>&6 | |
8347 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8348 | cat >> confdefs.h <<EOF | |
8349 | #define $ac_tr_hdr 1 | |
8350 | EOF | |
8351 | ||
8352 | else | |
8353 | echo "$ac_t""no" 1>&6 | |
8354 | fi | |
8355 | done | |
8356 | ||
8357 | for ac_hdr in unistd.h | |
8358 | do | |
8359 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8360 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
360d6699 | 8361 | echo "configure:8362: checking for $ac_hdr" >&5 |
10f2d63a VZ |
8362 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8363 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8364 | else | |
8365 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 8366 | #line 8367 "configure" |
10f2d63a VZ |
8367 | #include "confdefs.h" |
8368 | #include <$ac_hdr> | |
8369 | EOF | |
8370 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
360d6699 | 8371 | { (eval echo configure:8372: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
8372 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8373 | if test -z "$ac_err"; then | |
8374 | rm -rf conftest* | |
8375 | eval "ac_cv_header_$ac_safe=yes" | |
8376 | else | |
8377 | echo "$ac_err" >&5 | |
8378 | echo "configure: failed program was:" >&5 | |
8379 | cat conftest.$ac_ext >&5 | |
8380 | rm -rf conftest* | |
8381 | eval "ac_cv_header_$ac_safe=no" | |
8382 | fi | |
8383 | rm -f conftest* | |
8384 | fi | |
8385 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8386 | echo "$ac_t""yes" 1>&6 | |
8387 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8388 | cat >> confdefs.h <<EOF | |
8389 | #define $ac_tr_hdr 1 | |
8390 | EOF | |
8391 | ||
8392 | else | |
8393 | echo "$ac_t""no" 1>&6 | |
8394 | fi | |
8395 | done | |
8396 | ||
8397 | for ac_hdr in wchar.h | |
8398 | do | |
8399 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8400 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
360d6699 | 8401 | echo "configure:8402: checking for $ac_hdr" >&5 |
10f2d63a VZ |
8402 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8403 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8404 | else | |
8405 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 8406 | #line 8407 "configure" |
10f2d63a VZ |
8407 | #include "confdefs.h" |
8408 | #include <$ac_hdr> | |
8409 | EOF | |
8410 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
360d6699 | 8411 | { (eval echo configure:8412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
8412 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8413 | if test -z "$ac_err"; then | |
8414 | rm -rf conftest* | |
8415 | eval "ac_cv_header_$ac_safe=yes" | |
8416 | else | |
8417 | echo "$ac_err" >&5 | |
8418 | echo "configure: failed program was:" >&5 | |
8419 | cat conftest.$ac_ext >&5 | |
8420 | rm -rf conftest* | |
8421 | eval "ac_cv_header_$ac_safe=no" | |
8422 | fi | |
8423 | rm -f conftest* | |
8424 | fi | |
8425 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8426 | echo "$ac_t""yes" 1>&6 | |
8427 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8428 | cat >> confdefs.h <<EOF | |
8429 | #define $ac_tr_hdr 1 | |
8430 | EOF | |
8431 | ||
8432 | else | |
8433 | echo "$ac_t""no" 1>&6 | |
8434 | fi | |
8435 | done | |
8436 | ||
8437 | for ac_hdr in wcstr.h | |
8438 | do | |
8439 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8440 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
360d6699 | 8441 | echo "configure:8442: checking for $ac_hdr" >&5 |
10f2d63a VZ |
8442 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8443 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8444 | else | |
8445 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 8446 | #line 8447 "configure" |
10f2d63a VZ |
8447 | #include "confdefs.h" |
8448 | #include <$ac_hdr> | |
8449 | EOF | |
8450 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
360d6699 | 8451 | { (eval echo configure:8452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
8452 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8453 | if test -z "$ac_err"; then | |
8454 | rm -rf conftest* | |
8455 | eval "ac_cv_header_$ac_safe=yes" | |
8456 | else | |
8457 | echo "$ac_err" >&5 | |
8458 | echo "configure: failed program was:" >&5 | |
8459 | cat conftest.$ac_ext >&5 | |
8460 | rm -rf conftest* | |
8461 | eval "ac_cv_header_$ac_safe=no" | |
8462 | fi | |
8463 | rm -f conftest* | |
8464 | fi | |
8465 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8466 | echo "$ac_t""yes" 1>&6 | |
8467 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8468 | cat >> confdefs.h <<EOF | |
8469 | #define $ac_tr_hdr 1 | |
8470 | EOF | |
8471 | ||
8472 | else | |
8473 | echo "$ac_t""no" 1>&6 | |
8474 | fi | |
8475 | done | |
8476 | ||
8477 | for ac_hdr in fnmatch.h | |
8478 | do | |
8479 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8480 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
360d6699 | 8481 | echo "configure:8482: checking for $ac_hdr" >&5 |
10f2d63a VZ |
8482 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8483 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8484 | else | |
8485 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 8486 | #line 8487 "configure" |
10f2d63a VZ |
8487 | #include "confdefs.h" |
8488 | #include <$ac_hdr> | |
8489 | EOF | |
8490 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
360d6699 | 8491 | { (eval echo configure:8492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
8492 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8493 | if test -z "$ac_err"; then | |
8494 | rm -rf conftest* | |
8495 | eval "ac_cv_header_$ac_safe=yes" | |
8496 | else | |
8497 | echo "$ac_err" >&5 | |
8498 | echo "configure: failed program was:" >&5 | |
8499 | cat conftest.$ac_ext >&5 | |
8500 | rm -rf conftest* | |
8501 | eval "ac_cv_header_$ac_safe=no" | |
8502 | fi | |
8503 | rm -f conftest* | |
8504 | fi | |
8505 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8506 | echo "$ac_t""yes" 1>&6 | |
8507 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8508 | cat >> confdefs.h <<EOF | |
8509 | #define $ac_tr_hdr 1 | |
8510 | EOF | |
8511 | ||
8512 | else | |
8513 | echo "$ac_t""no" 1>&6 | |
8514 | fi | |
8515 | done | |
8516 | ||
8517 | ||
8518 | if test "$wxUSE_GUI" = "yes"; then | |
8519 | for ac_hdr in X11/XKBlib.h | |
8520 | do | |
8521 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8522 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
360d6699 | 8523 | echo "configure:8524: checking for $ac_hdr" >&5 |
10f2d63a VZ |
8524 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8525 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8526 | else | |
8527 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 8528 | #line 8529 "configure" |
10f2d63a VZ |
8529 | #include "confdefs.h" |
8530 | #include <$ac_hdr> | |
8531 | EOF | |
8532 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
360d6699 | 8533 | { (eval echo configure:8534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
8534 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8535 | if test -z "$ac_err"; then | |
8536 | rm -rf conftest* | |
8537 | eval "ac_cv_header_$ac_safe=yes" | |
8538 | else | |
8539 | echo "$ac_err" >&5 | |
8540 | echo "configure: failed program was:" >&5 | |
8541 | cat conftest.$ac_ext >&5 | |
8542 | rm -rf conftest* | |
8543 | eval "ac_cv_header_$ac_safe=no" | |
8544 | fi | |
8545 | rm -f conftest* | |
8546 | fi | |
8547 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8548 | echo "$ac_t""yes" 1>&6 | |
8549 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8550 | cat >> confdefs.h <<EOF | |
8551 | #define $ac_tr_hdr 1 | |
8552 | EOF | |
8553 | ||
8554 | else | |
8555 | echo "$ac_t""no" 1>&6 | |
8556 | fi | |
8557 | done | |
8558 | ||
8559 | fi | |
8560 | ||
8561 | ||
8562 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
360d6699 | 8563 | echo "configure:8564: checking for ANSI C header files" >&5 |
10f2d63a VZ |
8564 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
8565 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8566 | else | |
8567 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 8568 | #line 8569 "configure" |
10f2d63a VZ |
8569 | #include "confdefs.h" |
8570 | #include <stdlib.h> | |
8571 | #include <stdarg.h> | |
8572 | #include <string.h> | |
8573 | #include <float.h> | |
8574 | EOF | |
8575 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
360d6699 | 8576 | { (eval echo configure:8577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
8577 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8578 | if test -z "$ac_err"; then | |
8579 | rm -rf conftest* | |
8580 | ac_cv_header_stdc=yes | |
8581 | else | |
8582 | echo "$ac_err" >&5 | |
8583 | echo "configure: failed program was:" >&5 | |
8584 | cat conftest.$ac_ext >&5 | |
8585 | rm -rf conftest* | |
8586 | ac_cv_header_stdc=no | |
8587 | fi | |
8588 | rm -f conftest* | |
8589 | ||
8590 | if test $ac_cv_header_stdc = yes; then | |
8591 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
8592 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 8593 | #line 8594 "configure" |
10f2d63a VZ |
8594 | #include "confdefs.h" |
8595 | #include <string.h> | |
8596 | EOF | |
8597 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8598 | egrep "memchr" >/dev/null 2>&1; then | |
8599 | : | |
8600 | else | |
8601 | rm -rf conftest* | |
8602 | ac_cv_header_stdc=no | |
8603 | fi | |
8604 | rm -f conftest* | |
8605 | ||
8606 | fi | |
8607 | ||
8608 | if test $ac_cv_header_stdc = yes; then | |
8609 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
8610 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 8611 | #line 8612 "configure" |
10f2d63a VZ |
8612 | #include "confdefs.h" |
8613 | #include <stdlib.h> | |
8614 | EOF | |
8615 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8616 | egrep "free" >/dev/null 2>&1; then | |
8617 | : | |
8618 | else | |
8619 | rm -rf conftest* | |
8620 | ac_cv_header_stdc=no | |
8621 | fi | |
8622 | rm -f conftest* | |
8623 | ||
8624 | fi | |
8625 | ||
8626 | if test $ac_cv_header_stdc = yes; then | |
8627 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
8628 | if test "$cross_compiling" = yes; then | |
8629 | : | |
8630 | else | |
8631 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 8632 | #line 8633 "configure" |
10f2d63a VZ |
8633 | #include "confdefs.h" |
8634 | #include <ctype.h> | |
8635 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
8636 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
8637 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
8638 | int main () { int i; for (i = 0; i < 256; i++) | |
8639 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
8640 | exit (0); } | |
8641 | ||
8642 | EOF | |
360d6699 | 8643 | if { (eval echo configure:8644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
8644 | then |
8645 | : | |
8646 | else | |
8647 | echo "configure: failed program was:" >&5 | |
8648 | cat conftest.$ac_ext >&5 | |
8649 | rm -fr conftest* | |
8650 | ac_cv_header_stdc=no | |
8651 | fi | |
8652 | rm -fr conftest* | |
8653 | fi | |
8654 | ||
8655 | fi | |
8656 | fi | |
8657 | ||
8658 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
8659 | if test $ac_cv_header_stdc = yes; then | |
8660 | cat >> confdefs.h <<\EOF | |
8661 | #define STDC_HEADERS 1 | |
8662 | EOF | |
8663 | ||
8664 | fi | |
8665 | ||
8666 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 | |
360d6699 | 8667 | echo "configure:8668: checking for mode_t" >&5 |
10f2d63a VZ |
8668 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
8669 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8670 | else | |
8671 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 8672 | #line 8673 "configure" |
10f2d63a VZ |
8673 | #include "confdefs.h" |
8674 | #include <sys/types.h> | |
8675 | #if STDC_HEADERS | |
8676 | #include <stdlib.h> | |
8677 | #include <stddef.h> | |
8678 | #endif | |
8679 | EOF | |
8680 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8681 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
8682 | rm -rf conftest* | |
8683 | ac_cv_type_mode_t=yes | |
8684 | else | |
8685 | rm -rf conftest* | |
8686 | ac_cv_type_mode_t=no | |
8687 | fi | |
8688 | rm -f conftest* | |
8689 | ||
8690 | fi | |
8691 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
8692 | if test $ac_cv_type_mode_t = no; then | |
8693 | cat >> confdefs.h <<\EOF | |
8694 | #define mode_t int | |
8695 | EOF | |
8696 | ||
8697 | fi | |
8698 | ||
8699 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
360d6699 | 8700 | echo "configure:8701: checking for off_t" >&5 |
10f2d63a VZ |
8701 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
8702 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8703 | else | |
8704 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 8705 | #line 8706 "configure" |
10f2d63a VZ |
8706 | #include "confdefs.h" |
8707 | #include <sys/types.h> | |
8708 | #if STDC_HEADERS | |
8709 | #include <stdlib.h> | |
8710 | #include <stddef.h> | |
8711 | #endif | |
8712 | EOF | |
8713 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8714 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
8715 | rm -rf conftest* | |
8716 | ac_cv_type_off_t=yes | |
8717 | else | |
8718 | rm -rf conftest* | |
8719 | ac_cv_type_off_t=no | |
8720 | fi | |
8721 | rm -f conftest* | |
8722 | ||
8723 | fi | |
8724 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
8725 | if test $ac_cv_type_off_t = no; then | |
8726 | cat >> confdefs.h <<\EOF | |
8727 | #define off_t long | |
8728 | EOF | |
8729 | ||
8730 | fi | |
8731 | ||
8732 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 | |
360d6699 | 8733 | echo "configure:8734: checking for pid_t" >&5 |
10f2d63a VZ |
8734 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
8735 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8736 | else | |
8737 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 8738 | #line 8739 "configure" |
10f2d63a VZ |
8739 | #include "confdefs.h" |
8740 | #include <sys/types.h> | |
8741 | #if STDC_HEADERS | |
8742 | #include <stdlib.h> | |
8743 | #include <stddef.h> | |
8744 | #endif | |
8745 | EOF | |
8746 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8747 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
8748 | rm -rf conftest* | |
8749 | ac_cv_type_pid_t=yes | |
8750 | else | |
8751 | rm -rf conftest* | |
8752 | ac_cv_type_pid_t=no | |
8753 | fi | |
8754 | rm -f conftest* | |
8755 | ||
8756 | fi | |
8757 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
8758 | if test $ac_cv_type_pid_t = no; then | |
8759 | cat >> confdefs.h <<\EOF | |
8760 | #define pid_t int | |
8761 | EOF | |
8762 | ||
8763 | fi | |
8764 | ||
8765 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
360d6699 | 8766 | echo "configure:8767: checking for size_t" >&5 |
10f2d63a VZ |
8767 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
8768 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8769 | else | |
8770 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 8771 | #line 8772 "configure" |
10f2d63a VZ |
8772 | #include "confdefs.h" |
8773 | #include <sys/types.h> | |
8774 | #if STDC_HEADERS | |
8775 | #include <stdlib.h> | |
8776 | #include <stddef.h> | |
8777 | #endif | |
8778 | EOF | |
8779 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8780 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
8781 | rm -rf conftest* | |
8782 | ac_cv_type_size_t=yes | |
8783 | else | |
8784 | rm -rf conftest* | |
8785 | ac_cv_type_size_t=no | |
8786 | fi | |
8787 | rm -f conftest* | |
8788 | ||
8789 | fi | |
8790 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
8791 | if test $ac_cv_type_size_t = no; then | |
8792 | cat >> confdefs.h <<\EOF | |
8793 | #define size_t unsigned | |
8794 | EOF | |
8795 | ||
8796 | fi | |
8797 | ||
8798 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 | |
360d6699 | 8799 | echo "configure:8800: checking for uid_t in sys/types.h" >&5 |
10f2d63a VZ |
8800 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
8801 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8802 | else | |
8803 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 8804 | #line 8805 "configure" |
10f2d63a VZ |
8805 | #include "confdefs.h" |
8806 | #include <sys/types.h> | |
8807 | EOF | |
8808 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8809 | egrep "uid_t" >/dev/null 2>&1; then | |
8810 | rm -rf conftest* | |
8811 | ac_cv_type_uid_t=yes | |
8812 | else | |
8813 | rm -rf conftest* | |
8814 | ac_cv_type_uid_t=no | |
8815 | fi | |
8816 | rm -f conftest* | |
8817 | ||
8818 | fi | |
8819 | ||
8820 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 | |
8821 | if test $ac_cv_type_uid_t = no; then | |
8822 | cat >> confdefs.h <<\EOF | |
8823 | #define uid_t int | |
8824 | EOF | |
8825 | ||
8826 | cat >> confdefs.h <<\EOF | |
8827 | #define gid_t int | |
8828 | EOF | |
8829 | ||
8830 | fi | |
8831 | ||
8832 | ||
8833 | ||
8834 | ||
8835 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
360d6699 | 8836 | echo "configure:8837: checking for working const" >&5 |
10f2d63a VZ |
8837 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
8838 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8839 | else | |
8840 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 8841 | #line 8842 "configure" |
10f2d63a VZ |
8842 | #include "confdefs.h" |
8843 | ||
8844 | int main() { | |
8845 | ||
8846 | /* Ultrix mips cc rejects this. */ | |
8847 | typedef int charset[2]; const charset x; | |
8848 | /* SunOS 4.1.1 cc rejects this. */ | |
8849 | char const *const *ccp; | |
8850 | char **p; | |
8851 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
8852 | struct point {int x, y;}; | |
8853 | static struct point const zero = {0,0}; | |
8854 | /* AIX XL C 1.02.0.0 rejects this. | |
8855 | It does not let you subtract one const X* pointer from another in an arm | |
8856 | of an if-expression whose if-part is not a constant expression */ | |
8857 | const char *g = "string"; | |
8858 | ccp = &g + (g ? g-g : 0); | |
8859 | /* HPUX 7.0 cc rejects these. */ | |
8860 | ++ccp; | |
8861 | p = (char**) ccp; | |
8862 | ccp = (char const *const *) p; | |
8863 | { /* SCO 3.2v4 cc rejects this. */ | |
8864 | char *t; | |
8865 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
8866 | ||
8867 | *t++ = 0; | |
8868 | } | |
8869 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
8870 | int x[] = {25, 17}; | |
8871 | const int *foo = &x[0]; | |
8872 | ++foo; | |
8873 | } | |
8874 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
8875 | typedef const int *iptr; | |
8876 | iptr p = 0; | |
8877 | ++p; | |
8878 | } | |
8879 | { /* AIX XL C 1.02.0.0 rejects this saying | |
8880 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
8881 | struct s { int j; const int *ap[3]; }; | |
8882 | struct s *b; b->j = 5; | |
8883 | } | |
8884 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
8885 | const int foo = 10; | |
8886 | } | |
8887 | ||
8888 | ; return 0; } | |
8889 | EOF | |
360d6699 | 8890 | if { (eval echo configure:8891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
8891 | rm -rf conftest* |
8892 | ac_cv_c_const=yes | |
8893 | else | |
8894 | echo "configure: failed program was:" >&5 | |
8895 | cat conftest.$ac_ext >&5 | |
8896 | rm -rf conftest* | |
8897 | ac_cv_c_const=no | |
8898 | fi | |
8899 | rm -f conftest* | |
8900 | fi | |
8901 | ||
8902 | echo "$ac_t""$ac_cv_c_const" 1>&6 | |
8903 | if test $ac_cv_c_const = no; then | |
8904 | cat >> confdefs.h <<\EOF | |
8905 | #define const | |
8906 | EOF | |
8907 | ||
8908 | fi | |
8909 | ||
8910 | echo $ac_n "checking for inline""... $ac_c" 1>&6 | |
360d6699 | 8911 | echo "configure:8912: checking for inline" >&5 |
10f2d63a VZ |
8912 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
8913 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8914 | else | |
8915 | ac_cv_c_inline=no | |
8916 | for ac_kw in inline __inline__ __inline; do | |
8917 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 8918 | #line 8919 "configure" |
10f2d63a VZ |
8919 | #include "confdefs.h" |
8920 | ||
8921 | int main() { | |
8922 | } $ac_kw foo() { | |
8923 | ; return 0; } | |
8924 | EOF | |
360d6699 | 8925 | if { (eval echo configure:8926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
8926 | rm -rf conftest* |
8927 | ac_cv_c_inline=$ac_kw; break | |
8928 | else | |
8929 | echo "configure: failed program was:" >&5 | |
8930 | cat conftest.$ac_ext >&5 | |
8931 | fi | |
8932 | rm -f conftest* | |
8933 | done | |
8934 | ||
8935 | fi | |
8936 | ||
8937 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
8938 | case "$ac_cv_c_inline" in | |
8939 | inline | yes) ;; | |
8940 | no) cat >> confdefs.h <<\EOF | |
8941 | #define inline | |
8942 | EOF | |
8943 | ;; | |
8944 | *) cat >> confdefs.h <<EOF | |
8945 | #define inline $ac_cv_c_inline | |
8946 | EOF | |
8947 | ;; | |
8948 | esac | |
8949 | ||
8950 | ||
8951 | echo $ac_n "checking size of char""... $ac_c" 1>&6 | |
360d6699 | 8952 | echo "configure:8953: checking size of char" >&5 |
10f2d63a VZ |
8953 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
8954 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8955 | else | |
8956 | if test "$cross_compiling" = yes; then | |
8957 | ac_cv_sizeof_char=1 | |
8958 | else | |
8959 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 8960 | #line 8961 "configure" |
10f2d63a VZ |
8961 | #include "confdefs.h" |
8962 | #include <stdio.h> | |
8963 | main() | |
8964 | { | |
8965 | FILE *f=fopen("conftestval", "w"); | |
8966 | if (!f) exit(1); | |
8967 | fprintf(f, "%d\n", sizeof(char)); | |
8968 | exit(0); | |
8969 | } | |
8970 | EOF | |
360d6699 | 8971 | if { (eval echo configure:8972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
8972 | then |
8973 | ac_cv_sizeof_char=`cat conftestval` | |
8974 | else | |
8975 | echo "configure: failed program was:" >&5 | |
8976 | cat conftest.$ac_ext >&5 | |
8977 | rm -fr conftest* | |
8978 | ac_cv_sizeof_char=0 | |
8979 | fi | |
8980 | rm -fr conftest* | |
8981 | fi | |
8982 | ||
8983 | fi | |
8984 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 | |
8985 | cat >> confdefs.h <<EOF | |
8986 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
8987 | EOF | |
8988 | ||
8989 | ||
8990 | echo $ac_n "checking size of short""... $ac_c" 1>&6 | |
360d6699 | 8991 | echo "configure:8992: checking size of short" >&5 |
10f2d63a VZ |
8992 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
8993 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8994 | else | |
8995 | if test "$cross_compiling" = yes; then | |
8996 | ac_cv_sizeof_short=2 | |
8997 | else | |
8998 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 8999 | #line 9000 "configure" |
10f2d63a VZ |
9000 | #include "confdefs.h" |
9001 | #include <stdio.h> | |
9002 | main() | |
9003 | { | |
9004 | FILE *f=fopen("conftestval", "w"); | |
9005 | if (!f) exit(1); | |
9006 | fprintf(f, "%d\n", sizeof(short)); | |
9007 | exit(0); | |
9008 | } | |
9009 | EOF | |
360d6699 | 9010 | if { (eval echo configure:9011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
9011 | then |
9012 | ac_cv_sizeof_short=`cat conftestval` | |
9013 | else | |
9014 | echo "configure: failed program was:" >&5 | |
9015 | cat conftest.$ac_ext >&5 | |
9016 | rm -fr conftest* | |
9017 | ac_cv_sizeof_short=0 | |
9018 | fi | |
9019 | rm -fr conftest* | |
9020 | fi | |
9021 | ||
9022 | fi | |
9023 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 | |
9024 | cat >> confdefs.h <<EOF | |
9025 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
9026 | EOF | |
9027 | ||
9028 | ||
9029 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 | |
360d6699 | 9030 | echo "configure:9031: checking size of int *" >&5 |
10f2d63a VZ |
9031 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then |
9032 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9033 | else | |
9034 | if test "$cross_compiling" = yes; then | |
9035 | ac_cv_sizeof_int_p=4 | |
9036 | else | |
9037 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 9038 | #line 9039 "configure" |
10f2d63a VZ |
9039 | #include "confdefs.h" |
9040 | #include <stdio.h> | |
9041 | main() | |
9042 | { | |
9043 | FILE *f=fopen("conftestval", "w"); | |
9044 | if (!f) exit(1); | |
9045 | fprintf(f, "%d\n", sizeof(int *)); | |
9046 | exit(0); | |
9047 | } | |
9048 | EOF | |
360d6699 | 9049 | if { (eval echo configure:9050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
9050 | then |
9051 | ac_cv_sizeof_int_p=`cat conftestval` | |
9052 | else | |
9053 | echo "configure: failed program was:" >&5 | |
9054 | cat conftest.$ac_ext >&5 | |
9055 | rm -fr conftest* | |
9056 | ac_cv_sizeof_int_p=0 | |
9057 | fi | |
9058 | rm -fr conftest* | |
9059 | fi | |
9060 | ||
9061 | fi | |
9062 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 | |
9063 | cat >> confdefs.h <<EOF | |
9064 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
9065 | EOF | |
9066 | ||
9067 | ||
9068 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
360d6699 | 9069 | echo "configure:9070: checking size of int" >&5 |
10f2d63a VZ |
9070 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
9071 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9072 | else | |
9073 | if test "$cross_compiling" = yes; then | |
9074 | ac_cv_sizeof_int=4 | |
9075 | else | |
9076 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 9077 | #line 9078 "configure" |
10f2d63a VZ |
9078 | #include "confdefs.h" |
9079 | #include <stdio.h> | |
9080 | main() | |
9081 | { | |
9082 | FILE *f=fopen("conftestval", "w"); | |
9083 | if (!f) exit(1); | |
9084 | fprintf(f, "%d\n", sizeof(int)); | |
9085 | exit(0); | |
9086 | } | |
9087 | EOF | |
360d6699 | 9088 | if { (eval echo configure:9089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
9089 | then |
9090 | ac_cv_sizeof_int=`cat conftestval` | |
9091 | else | |
9092 | echo "configure: failed program was:" >&5 | |
9093 | cat conftest.$ac_ext >&5 | |
9094 | rm -fr conftest* | |
9095 | ac_cv_sizeof_int=0 | |
9096 | fi | |
9097 | rm -fr conftest* | |
9098 | fi | |
9099 | ||
9100 | fi | |
9101 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
9102 | cat >> confdefs.h <<EOF | |
9103 | #define SIZEOF_INT $ac_cv_sizeof_int | |
9104 | EOF | |
9105 | ||
9106 | ||
9107 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
360d6699 | 9108 | echo "configure:9109: checking size of long" >&5 |
10f2d63a VZ |
9109 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
9110 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9111 | else | |
9112 | if test "$cross_compiling" = yes; then | |
9113 | ac_cv_sizeof_long=4 | |
9114 | else | |
9115 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 9116 | #line 9117 "configure" |
10f2d63a VZ |
9117 | #include "confdefs.h" |
9118 | #include <stdio.h> | |
9119 | main() | |
9120 | { | |
9121 | FILE *f=fopen("conftestval", "w"); | |
9122 | if (!f) exit(1); | |
9123 | fprintf(f, "%d\n", sizeof(long)); | |
9124 | exit(0); | |
9125 | } | |
9126 | EOF | |
360d6699 | 9127 | if { (eval echo configure:9128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
9128 | then |
9129 | ac_cv_sizeof_long=`cat conftestval` | |
9130 | else | |
9131 | echo "configure: failed program was:" >&5 | |
9132 | cat conftest.$ac_ext >&5 | |
9133 | rm -fr conftest* | |
9134 | ac_cv_sizeof_long=0 | |
9135 | fi | |
9136 | rm -fr conftest* | |
9137 | fi | |
9138 | ||
9139 | fi | |
9140 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
9141 | cat >> confdefs.h <<EOF | |
9142 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
9143 | EOF | |
9144 | ||
9145 | ||
9146 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
360d6699 | 9147 | echo "configure:9148: checking size of long long" >&5 |
10f2d63a VZ |
9148 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
9149 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9150 | else | |
9151 | if test "$cross_compiling" = yes; then | |
9152 | ac_cv_sizeof_long_long=0 | |
9153 | else | |
9154 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 9155 | #line 9156 "configure" |
10f2d63a VZ |
9156 | #include "confdefs.h" |
9157 | #include <stdio.h> | |
9158 | main() | |
9159 | { | |
9160 | FILE *f=fopen("conftestval", "w"); | |
9161 | if (!f) exit(1); | |
9162 | fprintf(f, "%d\n", sizeof(long long)); | |
9163 | exit(0); | |
9164 | } | |
9165 | EOF | |
360d6699 | 9166 | if { (eval echo configure:9167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
9167 | then |
9168 | ac_cv_sizeof_long_long=`cat conftestval` | |
9169 | else | |
9170 | echo "configure: failed program was:" >&5 | |
9171 | cat conftest.$ac_ext >&5 | |
9172 | rm -fr conftest* | |
9173 | ac_cv_sizeof_long_long=0 | |
9174 | fi | |
9175 | rm -fr conftest* | |
9176 | fi | |
9177 | ||
9178 | fi | |
9179 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
9180 | cat >> confdefs.h <<EOF | |
9181 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
9182 | EOF | |
9183 | ||
9184 | ||
9185 | ||
9186 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 | |
360d6699 | 9187 | echo "configure:9188: checking whether byte ordering is bigendian" >&5 |
10f2d63a VZ |
9188 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
9189 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9190 | else | |
9191 | ac_cv_c_bigendian=unknown | |
9192 | # See if sys/param.h defines the BYTE_ORDER macro. | |
9193 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 9194 | #line 9195 "configure" |
10f2d63a VZ |
9195 | #include "confdefs.h" |
9196 | #include <sys/types.h> | |
9197 | #include <sys/param.h> | |
9198 | int main() { | |
9199 | ||
9200 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
9201 | bogus endian macros | |
9202 | #endif | |
9203 | ; return 0; } | |
9204 | EOF | |
360d6699 | 9205 | if { (eval echo configure:9206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
9206 | rm -rf conftest* |
9207 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
9208 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 9209 | #line 9210 "configure" |
10f2d63a VZ |
9210 | #include "confdefs.h" |
9211 | #include <sys/types.h> | |
9212 | #include <sys/param.h> | |
9213 | int main() { | |
9214 | ||
9215 | #if BYTE_ORDER != BIG_ENDIAN | |
9216 | not big endian | |
9217 | #endif | |
9218 | ; return 0; } | |
9219 | EOF | |
360d6699 | 9220 | if { (eval echo configure:9221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
9221 | rm -rf conftest* |
9222 | ac_cv_c_bigendian=yes | |
9223 | else | |
9224 | echo "configure: failed program was:" >&5 | |
9225 | cat conftest.$ac_ext >&5 | |
9226 | rm -rf conftest* | |
9227 | ac_cv_c_bigendian=no | |
9228 | fi | |
9229 | rm -f conftest* | |
9230 | else | |
9231 | echo "configure: failed program was:" >&5 | |
9232 | cat conftest.$ac_ext >&5 | |
9233 | fi | |
9234 | rm -f conftest* | |
9235 | if test $ac_cv_c_bigendian = unknown; then | |
9236 | if test "$cross_compiling" = yes; then | |
9237 | ac_cv_c_bigendian=unknown | |
9238 | else | |
9239 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 9240 | #line 9241 "configure" |
10f2d63a VZ |
9241 | #include "confdefs.h" |
9242 | main () { | |
9243 | /* Are we little or big endian? From Harbison&Steele. */ | |
9244 | union | |
9245 | { | |
9246 | long l; | |
9247 | char c[sizeof (long)]; | |
9248 | } u; | |
9249 | u.l = 1; | |
9250 | exit (u.c[sizeof (long) - 1] == 1); | |
9251 | } | |
9252 | EOF | |
360d6699 | 9253 | if { (eval echo configure:9254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
9254 | then |
9255 | ac_cv_c_bigendian=no | |
9256 | else | |
9257 | echo "configure: failed program was:" >&5 | |
9258 | cat conftest.$ac_ext >&5 | |
9259 | rm -fr conftest* | |
9260 | ac_cv_c_bigendian=yes | |
9261 | fi | |
9262 | rm -fr conftest* | |
9263 | fi | |
9264 | ||
9265 | fi | |
9266 | fi | |
9267 | ||
9268 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
9269 | if test $ac_cv_c_bigendian = unknown; then | |
9270 | 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 | |
9271 | fi | |
9272 | if test $ac_cv_c_bigendian = yes; then | |
9273 | cat >> confdefs.h <<\EOF | |
9274 | #define WORDS_BIGENDIAN 1 | |
9275 | EOF | |
9276 | ||
9277 | fi | |
9278 | ||
9279 | ||
9280 | ||
9281 | if test "$cross_compiling" = "yes"; then | |
9282 | cat >> confdefs.h <<\EOF | |
9283 | #define wxUSE_IOSTREAMH 1 | |
9284 | EOF | |
9285 | ||
9286 | else | |
9287 | ||
9288 | ac_ext=C | |
9289 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9290 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9291 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9292 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9293 | cross_compiling=$ac_cv_prog_cxx_cross | |
9294 | ||
9295 | ||
9296 | for ac_hdr in iostream | |
9297 | do | |
9298 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9299 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
360d6699 | 9300 | echo "configure:9301: checking for $ac_hdr" >&5 |
10f2d63a VZ |
9301 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9302 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9303 | else | |
9304 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 9305 | #line 9306 "configure" |
10f2d63a VZ |
9306 | #include "confdefs.h" |
9307 | #include <$ac_hdr> | |
9308 | EOF | |
9309 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
360d6699 | 9310 | { (eval echo configure:9311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
9311 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9312 | if test -z "$ac_err"; then | |
9313 | rm -rf conftest* | |
9314 | eval "ac_cv_header_$ac_safe=yes" | |
9315 | else | |
9316 | echo "$ac_err" >&5 | |
9317 | echo "configure: failed program was:" >&5 | |
9318 | cat conftest.$ac_ext >&5 | |
9319 | rm -rf conftest* | |
9320 | eval "ac_cv_header_$ac_safe=no" | |
9321 | fi | |
9322 | rm -f conftest* | |
9323 | fi | |
9324 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9325 | echo "$ac_t""yes" 1>&6 | |
9326 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9327 | cat >> confdefs.h <<EOF | |
9328 | #define $ac_tr_hdr 1 | |
9329 | EOF | |
9330 | ||
9331 | else | |
9332 | echo "$ac_t""no" 1>&6 | |
9333 | fi | |
9334 | done | |
9335 | ||
9336 | ||
9337 | if test "x$HAVE_IOSTREAM" = x ; then | |
9338 | cat >> confdefs.h <<\EOF | |
9339 | #define wxUSE_IOSTREAMH 1 | |
9340 | EOF | |
9341 | ||
9342 | else | |
9343 | : | |
9344 | fi | |
9345 | ||
9346 | ac_ext=c | |
9347 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9348 | ac_cpp='$CPP $CPPFLAGS' | |
9349 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9350 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9351 | cross_compiling=$ac_cv_prog_cc_cross | |
9352 | ||
9353 | fi | |
9354 | ||
9355 | ||
9356 | ||
9357 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 | |
360d6699 | 9358 | echo "configure:9359: checking if C++ compiler supports bool" >&5 |
10f2d63a VZ |
9359 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
9360 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9361 | else | |
9362 | ||
9363 | ||
9364 | ac_ext=C | |
9365 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9366 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9367 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9368 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9369 | cross_compiling=$ac_cv_prog_cxx_cross | |
9370 | ||
9371 | ||
9372 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 9373 | #line 9374 "configure" |
10f2d63a VZ |
9374 | #include "confdefs.h" |
9375 | ||
9376 | ||
9377 | int main() { | |
9378 | ||
9379 | bool b = true; | |
9380 | ||
9381 | return 0; | |
9382 | ||
9383 | ; return 0; } | |
9384 | EOF | |
360d6699 | 9385 | if { (eval echo configure:9386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
9386 | rm -rf conftest* |
9387 | ||
9388 | cat >> confdefs.h <<\EOF | |
9389 | #define HAVE_BOOL 1 | |
9390 | EOF | |
9391 | ||
9392 | wx_cv_cpp_bool=yes | |
9393 | ||
9394 | else | |
9395 | echo "configure: failed program was:" >&5 | |
9396 | cat conftest.$ac_ext >&5 | |
9397 | rm -rf conftest* | |
9398 | ||
9399 | wx_cv_cpp_bool=no | |
9400 | ||
9401 | ||
9402 | fi | |
9403 | rm -f conftest* | |
9404 | ||
9405 | ac_ext=c | |
9406 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9407 | ac_cpp='$CPP $CPPFLAGS' | |
9408 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9409 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9410 | cross_compiling=$ac_cv_prog_cc_cross | |
9411 | ||
9412 | ||
9413 | fi | |
9414 | ||
9415 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
9416 | ||
9417 | if test "$wx_cv_cpp_bool" = "yes"; then | |
9418 | cat >> confdefs.h <<\EOF | |
9419 | #define HAVE_BOOL 1 | |
9420 | EOF | |
9421 | ||
9422 | fi | |
9423 | ||
9424 | ||
9425 | ||
10f2d63a | 9426 | echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6 |
360d6699 | 9427 | echo "configure:9428: checking if you need GNU extensions" >&5 |
10f2d63a VZ |
9428 | if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then |
9429 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9430 | else | |
9431 | ||
9432 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 9433 | #line 9434 "configure" |
10f2d63a VZ |
9434 | #include "confdefs.h" |
9435 | #include <features.h> | |
9436 | int main() { | |
9437 | ||
9438 | ||
9439 | #ifndef __GNU_LIBRARY__ | |
9440 | Compile error wanted | |
9441 | #endif | |
9442 | ||
9443 | ||
9444 | ; return 0; } | |
9445 | EOF | |
360d6699 | 9446 | if { (eval echo configure:9447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
9447 | rm -rf conftest* |
9448 | wx_cv_gnu_extensions=yes | |
9449 | else | |
9450 | echo "configure: failed program was:" >&5 | |
9451 | cat conftest.$ac_ext >&5 | |
9452 | rm -rf conftest* | |
9453 | wx_cv_gnu_extensions=no | |
9454 | fi | |
9455 | rm -f conftest* | |
9456 | ||
9457 | fi | |
9458 | ||
9459 | ||
9460 | echo "$ac_t""$wx_cv_gnu_extensions" 1>&6 | |
9461 | if test "$wx_cv_gnu_extensions" = "yes"; then | |
9462 | cat >> confdefs.h <<EOF | |
9463 | #define _GNU_SOURCE 1 | |
9464 | EOF | |
9465 | ||
9466 | fi | |
9467 | ||
9468 | ||
9469 | ||
9470 | echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6 | |
360d6699 | 9471 | echo "configure:9472: checking for wcslen in -lc" >&5 |
10f2d63a VZ |
9472 | ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'` |
9473 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9474 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9475 | else | |
9476 | ac_save_LIBS="$LIBS" | |
9477 | LIBS="-lc $LIBS" | |
9478 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 9479 | #line 9480 "configure" |
10f2d63a VZ |
9480 | #include "confdefs.h" |
9481 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9482 | /* We use char because int might match the return type of a gcc2 | |
9483 | builtin and then its argument prototype would still apply. */ | |
9484 | char wcslen(); | |
9485 | ||
9486 | int main() { | |
9487 | wcslen() | |
9488 | ; return 0; } | |
9489 | EOF | |
360d6699 | 9490 | if { (eval echo configure:9491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
9491 | rm -rf conftest* |
9492 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9493 | else | |
9494 | echo "configure: failed program was:" >&5 | |
9495 | cat conftest.$ac_ext >&5 | |
9496 | rm -rf conftest* | |
9497 | eval "ac_cv_lib_$ac_lib_var=no" | |
9498 | fi | |
9499 | rm -f conftest* | |
9500 | LIBS="$ac_save_LIBS" | |
9501 | ||
9502 | fi | |
9503 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9504 | echo "$ac_t""yes" 1>&6 | |
9505 | ||
9506 | cat >> confdefs.h <<\EOF | |
9507 | #define HAVE_WCSLEN 1 | |
9508 | EOF | |
9509 | ||
9510 | WCHAR_LINK="" | |
9511 | ||
9512 | else | |
9513 | echo "$ac_t""no" 1>&6 | |
9514 | ||
9515 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 | |
360d6699 | 9516 | echo "configure:9517: checking for wcslen in -lw" >&5 |
10f2d63a VZ |
9517 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
9518 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9519 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9520 | else | |
9521 | ac_save_LIBS="$LIBS" | |
9522 | LIBS="-lw $LIBS" | |
9523 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 9524 | #line 9525 "configure" |
10f2d63a VZ |
9525 | #include "confdefs.h" |
9526 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9527 | /* We use char because int might match the return type of a gcc2 | |
9528 | builtin and then its argument prototype would still apply. */ | |
9529 | char wcslen(); | |
9530 | ||
9531 | int main() { | |
9532 | wcslen() | |
9533 | ; return 0; } | |
9534 | EOF | |
360d6699 | 9535 | if { (eval echo configure:9536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
9536 | rm -rf conftest* |
9537 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9538 | else | |
9539 | echo "configure: failed program was:" >&5 | |
9540 | cat conftest.$ac_ext >&5 | |
9541 | rm -rf conftest* | |
9542 | eval "ac_cv_lib_$ac_lib_var=no" | |
9543 | fi | |
9544 | rm -f conftest* | |
9545 | LIBS="$ac_save_LIBS" | |
9546 | ||
9547 | fi | |
9548 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9549 | echo "$ac_t""yes" 1>&6 | |
9550 | ||
9551 | cat >> confdefs.h <<\EOF | |
9552 | #define HAVE_WCSLEN 1 | |
9553 | EOF | |
9554 | ||
9555 | WCHAR_LINK="-lw" | |
9556 | ||
9557 | else | |
9558 | echo "$ac_t""no" 1>&6 | |
9559 | fi | |
9560 | ||
9561 | ||
9562 | fi | |
9563 | ||
9564 | ||
9565 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 | |
360d6699 | 9566 | echo "configure:9567: checking for vprintf" >&5 |
10f2d63a VZ |
9567 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
9568 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9569 | else | |
9570 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 9571 | #line 9572 "configure" |
10f2d63a VZ |
9572 | #include "confdefs.h" |
9573 | /* System header to define __stub macros and hopefully few prototypes, | |
9574 | which can conflict with char vprintf(); below. */ | |
9575 | #include <assert.h> | |
9576 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9577 | /* We use char because int might match the return type of a gcc2 | |
9578 | builtin and then its argument prototype would still apply. */ | |
9579 | char vprintf(); | |
9580 | ||
9581 | int main() { | |
9582 | ||
9583 | /* The GNU C library defines this for functions which it implements | |
9584 | to always fail with ENOSYS. Some functions are actually named | |
9585 | something starting with __ and the normal name is an alias. */ | |
9586 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
9587 | choke me | |
9588 | #else | |
e694c22c | 9589 | vprintf(); |
10f2d63a VZ |
9590 | #endif |
9591 | ||
9592 | ; return 0; } | |
9593 | EOF | |
360d6699 | 9594 | if { (eval echo configure:9595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
9595 | rm -rf conftest* |
9596 | eval "ac_cv_func_vprintf=yes" | |
9597 | else | |
9598 | echo "configure: failed program was:" >&5 | |
9599 | cat conftest.$ac_ext >&5 | |
9600 | rm -rf conftest* | |
9601 | eval "ac_cv_func_vprintf=no" | |
9602 | fi | |
9603 | rm -f conftest* | |
9604 | fi | |
9605 | ||
9606 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
9607 | echo "$ac_t""yes" 1>&6 | |
9608 | cat >> confdefs.h <<\EOF | |
9609 | #define HAVE_VPRINTF 1 | |
9610 | EOF | |
9611 | ||
9612 | else | |
9613 | echo "$ac_t""no" 1>&6 | |
9614 | fi | |
9615 | ||
9616 | if test "$ac_cv_func_vprintf" != yes; then | |
9617 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
360d6699 | 9618 | echo "configure:9619: checking for _doprnt" >&5 |
10f2d63a VZ |
9619 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
9620 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9621 | else | |
9622 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 9623 | #line 9624 "configure" |
10f2d63a VZ |
9624 | #include "confdefs.h" |
9625 | /* System header to define __stub macros and hopefully few prototypes, | |
9626 | which can conflict with char _doprnt(); below. */ | |
9627 | #include <assert.h> | |
9628 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9629 | /* We use char because int might match the return type of a gcc2 | |
9630 | builtin and then its argument prototype would still apply. */ | |
9631 | char _doprnt(); | |
9632 | ||
9633 | int main() { | |
9634 | ||
9635 | /* The GNU C library defines this for functions which it implements | |
9636 | to always fail with ENOSYS. Some functions are actually named | |
9637 | something starting with __ and the normal name is an alias. */ | |
9638 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
9639 | choke me | |
9640 | #else | |
e694c22c | 9641 | _doprnt(); |
10f2d63a VZ |
9642 | #endif |
9643 | ||
9644 | ; return 0; } | |
9645 | EOF | |
360d6699 | 9646 | if { (eval echo configure:9647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
9647 | rm -rf conftest* |
9648 | eval "ac_cv_func__doprnt=yes" | |
9649 | else | |
9650 | echo "configure: failed program was:" >&5 | |
9651 | cat conftest.$ac_ext >&5 | |
9652 | rm -rf conftest* | |
9653 | eval "ac_cv_func__doprnt=no" | |
9654 | fi | |
9655 | rm -f conftest* | |
9656 | fi | |
9657 | ||
9658 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
9659 | echo "$ac_t""yes" 1>&6 | |
9660 | cat >> confdefs.h <<\EOF | |
9661 | #define HAVE_DOPRNT 1 | |
9662 | EOF | |
9663 | ||
9664 | else | |
9665 | echo "$ac_t""no" 1>&6 | |
9666 | fi | |
9667 | ||
9668 | fi | |
9669 | ||
9670 | ||
9671 | for ac_func in vsnprintf | |
9672 | do | |
9673 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
360d6699 | 9674 | echo "configure:9675: checking for $ac_func" >&5 |
10f2d63a VZ |
9675 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9676 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9677 | else | |
9678 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 9679 | #line 9680 "configure" |
10f2d63a VZ |
9680 | #include "confdefs.h" |
9681 | /* System header to define __stub macros and hopefully few prototypes, | |
9682 | which can conflict with char $ac_func(); below. */ | |
9683 | #include <assert.h> | |
9684 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9685 | /* We use char because int might match the return type of a gcc2 | |
9686 | builtin and then its argument prototype would still apply. */ | |
9687 | char $ac_func(); | |
9688 | ||
9689 | int main() { | |
9690 | ||
9691 | /* The GNU C library defines this for functions which it implements | |
9692 | to always fail with ENOSYS. Some functions are actually named | |
9693 | something starting with __ and the normal name is an alias. */ | |
9694 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9695 | choke me | |
9696 | #else | |
e694c22c | 9697 | $ac_func(); |
10f2d63a VZ |
9698 | #endif |
9699 | ||
9700 | ; return 0; } | |
9701 | EOF | |
360d6699 | 9702 | if { (eval echo configure:9703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
9703 | rm -rf conftest* |
9704 | eval "ac_cv_func_$ac_func=yes" | |
9705 | else | |
9706 | echo "configure: failed program was:" >&5 | |
9707 | cat conftest.$ac_ext >&5 | |
9708 | rm -rf conftest* | |
9709 | eval "ac_cv_func_$ac_func=no" | |
9710 | fi | |
9711 | rm -f conftest* | |
9712 | fi | |
9713 | ||
9714 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9715 | echo "$ac_t""yes" 1>&6 | |
9716 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9717 | cat >> confdefs.h <<EOF | |
9718 | #define $ac_tr_func 1 | |
9719 | EOF | |
9720 | cat >> confdefs.h <<\EOF | |
9721 | #define HAVE_VSNPRINTF 1 | |
9722 | EOF | |
9723 | ||
9724 | else | |
9725 | echo "$ac_t""no" 1>&6 | |
9726 | echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2 | |
9727 | ||
9728 | fi | |
9729 | done | |
9730 | ||
9731 | ||
9732 | ||
9733 | ac_ext=C | |
9734 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9735 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9736 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9737 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9738 | cross_compiling=$ac_cv_prog_cxx_cross | |
9739 | ||
9740 | ||
9741 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 | |
360d6699 | 9742 | echo "configure:9743: checking for vsscanf" >&5 |
10f2d63a VZ |
9743 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
9744 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9745 | else | |
9746 | ||
9747 | if test "$cross_compiling" = yes; then | |
9748 | wx_cv_func_vsscanf=no | |
9749 | ||
9750 | else | |
9751 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 9752 | #line 9753 "configure" |
10f2d63a VZ |
9753 | #include "confdefs.h" |
9754 | #ifdef __cplusplus | |
9755 | extern "C" void exit(int); | |
9756 | #endif | |
9757 | ||
9758 | #include <stdio.h> | |
9759 | #include <stdarg.h> | |
9760 | ||
9761 | int try_vsscanf(const char *format, ...) | |
9762 | { | |
9763 | va_list ap; | |
9764 | va_start(ap, format); | |
9765 | ||
9766 | vsscanf("17", format, ap); | |
9767 | ||
9768 | va_end(ap); | |
9769 | } | |
9770 | ||
9771 | int main() | |
9772 | { | |
9773 | int i; | |
9774 | try_vsscanf("%d", &i); | |
9775 | return i == 17 ? 0 : 1; | |
9776 | } | |
9777 | ||
9778 | EOF | |
360d6699 | 9779 | if { (eval echo configure:9780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
9780 | then |
9781 | ||
9782 | cat >> confdefs.h <<\EOF | |
9783 | #define HAVE_VSSCANF 1 | |
9784 | EOF | |
9785 | ||
9786 | wx_cv_func_vsscanf=yes | |
9787 | ||
9788 | else | |
9789 | echo "configure: failed program was:" >&5 | |
9790 | cat conftest.$ac_ext >&5 | |
9791 | rm -fr conftest* | |
9792 | wx_cv_func_vsscanf=no | |
9793 | fi | |
9794 | rm -fr conftest* | |
9795 | fi | |
9796 | ||
9797 | ||
9798 | fi | |
9799 | ||
9800 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 | |
9801 | ||
9802 | ac_ext=c | |
9803 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9804 | ac_cpp='$CPP $CPPFLAGS' | |
9805 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9806 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9807 | cross_compiling=$ac_cv_prog_cc_cross | |
9808 | ||
9809 | ||
9810 | if test "$USE_UNIX" = 1; then | |
9811 | ||
9812 | for ac_func in vfork | |
9813 | do | |
9814 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
360d6699 | 9815 | echo "configure:9816: checking for $ac_func" >&5 |
10f2d63a VZ |
9816 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9817 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9818 | else | |
9819 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 9820 | #line 9821 "configure" |
10f2d63a VZ |
9821 | #include "confdefs.h" |
9822 | /* System header to define __stub macros and hopefully few prototypes, | |
9823 | which can conflict with char $ac_func(); below. */ | |
9824 | #include <assert.h> | |
9825 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9826 | /* We use char because int might match the return type of a gcc2 | |
9827 | builtin and then its argument prototype would still apply. */ | |
9828 | char $ac_func(); | |
9829 | ||
9830 | int main() { | |
9831 | ||
9832 | /* The GNU C library defines this for functions which it implements | |
9833 | to always fail with ENOSYS. Some functions are actually named | |
9834 | something starting with __ and the normal name is an alias. */ | |
9835 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9836 | choke me | |
9837 | #else | |
e694c22c | 9838 | $ac_func(); |
10f2d63a VZ |
9839 | #endif |
9840 | ||
9841 | ; return 0; } | |
9842 | EOF | |
360d6699 | 9843 | if { (eval echo configure:9844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
270a909e VZ |
9844 | rm -rf conftest* |
9845 | eval "ac_cv_func_$ac_func=yes" | |
9846 | else | |
9847 | echo "configure: failed program was:" >&5 | |
9848 | cat conftest.$ac_ext >&5 | |
9849 | rm -rf conftest* | |
9850 | eval "ac_cv_func_$ac_func=no" | |
9851 | fi | |
9852 | rm -f conftest* | |
9853 | fi | |
9854 | ||
9855 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9856 | echo "$ac_t""yes" 1>&6 | |
9857 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9858 | cat >> confdefs.h <<EOF | |
9859 | #define $ac_tr_func 1 | |
9860 | EOF | |
9861 | ||
9862 | else | |
9863 | echo "$ac_t""no" 1>&6 | |
9864 | fi | |
9865 | done | |
9866 | ||
9867 | ||
9868 | for ac_func in timegm | |
9869 | do | |
9870 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
360d6699 | 9871 | echo "configure:9872: checking for $ac_func" >&5 |
270a909e VZ |
9872 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9873 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9874 | else | |
9875 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 9876 | #line 9877 "configure" |
270a909e VZ |
9877 | #include "confdefs.h" |
9878 | /* System header to define __stub macros and hopefully few prototypes, | |
9879 | which can conflict with char $ac_func(); below. */ | |
9880 | #include <assert.h> | |
9881 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9882 | /* We use char because int might match the return type of a gcc2 | |
9883 | builtin and then its argument prototype would still apply. */ | |
9884 | char $ac_func(); | |
9885 | ||
9886 | int main() { | |
9887 | ||
9888 | /* The GNU C library defines this for functions which it implements | |
9889 | to always fail with ENOSYS. Some functions are actually named | |
9890 | something starting with __ and the normal name is an alias. */ | |
9891 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9892 | choke me | |
9893 | #else | |
e694c22c | 9894 | $ac_func(); |
270a909e VZ |
9895 | #endif |
9896 | ||
9897 | ; return 0; } | |
9898 | EOF | |
360d6699 | 9899 | if { (eval echo configure:9900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
9900 | rm -rf conftest* |
9901 | eval "ac_cv_func_$ac_func=yes" | |
9902 | else | |
9903 | echo "configure: failed program was:" >&5 | |
9904 | cat conftest.$ac_ext >&5 | |
9905 | rm -rf conftest* | |
9906 | eval "ac_cv_func_$ac_func=no" | |
9907 | fi | |
9908 | rm -f conftest* | |
9909 | fi | |
9910 | ||
9911 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9912 | echo "$ac_t""yes" 1>&6 | |
9913 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9914 | cat >> confdefs.h <<EOF | |
9915 | #define $ac_tr_func 1 | |
9916 | EOF | |
9917 | ||
9918 | else | |
9919 | echo "$ac_t""no" 1>&6 | |
9920 | fi | |
9921 | done | |
9922 | ||
9923 | ||
9924 | POSIX4_LINK= | |
9925 | for ac_func in nanosleep | |
9926 | do | |
9927 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
360d6699 | 9928 | echo "configure:9929: checking for $ac_func" >&5 |
10f2d63a VZ |
9929 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9930 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9931 | else | |
9932 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 9933 | #line 9934 "configure" |
10f2d63a VZ |
9934 | #include "confdefs.h" |
9935 | /* System header to define __stub macros and hopefully few prototypes, | |
9936 | which can conflict with char $ac_func(); below. */ | |
9937 | #include <assert.h> | |
9938 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9939 | /* We use char because int might match the return type of a gcc2 | |
9940 | builtin and then its argument prototype would still apply. */ | |
9941 | char $ac_func(); | |
9942 | ||
9943 | int main() { | |
9944 | ||
9945 | /* The GNU C library defines this for functions which it implements | |
9946 | to always fail with ENOSYS. Some functions are actually named | |
9947 | something starting with __ and the normal name is an alias. */ | |
9948 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9949 | choke me | |
9950 | #else | |
e694c22c | 9951 | $ac_func(); |
10f2d63a VZ |
9952 | #endif |
9953 | ||
9954 | ; return 0; } | |
9955 | EOF | |
360d6699 | 9956 | if { (eval echo configure:9957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
9957 | rm -rf conftest* |
9958 | eval "ac_cv_func_$ac_func=yes" | |
9959 | else | |
9960 | echo "configure: failed program was:" >&5 | |
9961 | cat conftest.$ac_ext >&5 | |
9962 | rm -rf conftest* | |
9963 | eval "ac_cv_func_$ac_func=no" | |
9964 | fi | |
9965 | rm -f conftest* | |
9966 | fi | |
9967 | ||
9968 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9969 | echo "$ac_t""yes" 1>&6 | |
9970 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9971 | cat >> confdefs.h <<EOF | |
9972 | #define $ac_tr_func 1 | |
9973 | EOF | |
9974 | cat >> confdefs.h <<\EOF | |
9975 | #define HAVE_NANOSLEEP 1 | |
9976 | EOF | |
9977 | ||
9978 | else | |
9979 | echo "$ac_t""no" 1>&6 | |
9980 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
360d6699 | 9981 | echo "configure:9982: checking for nanosleep in -lposix4" >&5 |
10f2d63a VZ |
9982 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
9983 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9984 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9985 | else | |
9986 | ac_save_LIBS="$LIBS" | |
9987 | LIBS="-lposix4 $LIBS" | |
9988 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 9989 | #line 9990 "configure" |
10f2d63a VZ |
9990 | #include "confdefs.h" |
9991 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9992 | /* We use char because int might match the return type of a gcc2 | |
9993 | builtin and then its argument prototype would still apply. */ | |
9994 | char nanosleep(); | |
9995 | ||
9996 | int main() { | |
9997 | nanosleep() | |
9998 | ; return 0; } | |
9999 | EOF | |
360d6699 | 10000 | if { (eval echo configure:10001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10001 | rm -rf conftest* |
10002 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10003 | else | |
10004 | echo "configure: failed program was:" >&5 | |
10005 | cat conftest.$ac_ext >&5 | |
10006 | rm -rf conftest* | |
10007 | eval "ac_cv_lib_$ac_lib_var=no" | |
10008 | fi | |
10009 | rm -f conftest* | |
10010 | LIBS="$ac_save_LIBS" | |
10011 | ||
10012 | fi | |
10013 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10014 | echo "$ac_t""yes" 1>&6 | |
10015 | ||
10016 | cat >> confdefs.h <<\EOF | |
10017 | #define HAVE_NANOSLEEP 1 | |
10018 | EOF | |
10019 | ||
10020 | POSIX4_LINK="-lposix4" | |
10021 | ||
10022 | else | |
10023 | echo "$ac_t""no" 1>&6 | |
10024 | ||
10025 | for ac_func in usleep | |
10026 | do | |
10027 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
360d6699 | 10028 | echo "configure:10029: checking for $ac_func" >&5 |
10f2d63a VZ |
10029 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10030 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10031 | else | |
10032 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 10033 | #line 10034 "configure" |
10f2d63a VZ |
10034 | #include "confdefs.h" |
10035 | /* System header to define __stub macros and hopefully few prototypes, | |
10036 | which can conflict with char $ac_func(); below. */ | |
10037 | #include <assert.h> | |
10038 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10039 | /* We use char because int might match the return type of a gcc2 | |
10040 | builtin and then its argument prototype would still apply. */ | |
10041 | char $ac_func(); | |
10042 | ||
10043 | int main() { | |
10044 | ||
10045 | /* The GNU C library defines this for functions which it implements | |
10046 | to always fail with ENOSYS. Some functions are actually named | |
10047 | something starting with __ and the normal name is an alias. */ | |
10048 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10049 | choke me | |
10050 | #else | |
e694c22c | 10051 | $ac_func(); |
10f2d63a VZ |
10052 | #endif |
10053 | ||
10054 | ; return 0; } | |
10055 | EOF | |
360d6699 | 10056 | if { (eval echo configure:10057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10057 | rm -rf conftest* |
10058 | eval "ac_cv_func_$ac_func=yes" | |
10059 | else | |
10060 | echo "configure: failed program was:" >&5 | |
10061 | cat conftest.$ac_ext >&5 | |
10062 | rm -rf conftest* | |
10063 | eval "ac_cv_func_$ac_func=no" | |
10064 | fi | |
10065 | rm -f conftest* | |
10066 | fi | |
10067 | ||
10068 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10069 | echo "$ac_t""yes" 1>&6 | |
10070 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10071 | cat >> confdefs.h <<EOF | |
10072 | #define $ac_tr_func 1 | |
10073 | EOF | |
10074 | cat >> confdefs.h <<\EOF | |
10075 | #define HAVE_USLEEP 1 | |
10076 | EOF | |
10077 | ||
10078 | else | |
10079 | echo "$ac_t""no" 1>&6 | |
10080 | echo "configure: warning: wxSleep() function will not work" 1>&2 | |
10081 | fi | |
10082 | done | |
10083 | ||
10084 | ||
10085 | fi | |
10086 | ||
10087 | ||
10088 | fi | |
10089 | done | |
10090 | ||
10091 | ||
10092 | for ac_func in uname gethostname | |
10093 | do | |
10094 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
360d6699 | 10095 | echo "configure:10096: checking for $ac_func" >&5 |
10f2d63a VZ |
10096 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10097 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10098 | else | |
10099 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 10100 | #line 10101 "configure" |
10f2d63a VZ |
10101 | #include "confdefs.h" |
10102 | /* System header to define __stub macros and hopefully few prototypes, | |
10103 | which can conflict with char $ac_func(); below. */ | |
10104 | #include <assert.h> | |
10105 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10106 | /* We use char because int might match the return type of a gcc2 | |
10107 | builtin and then its argument prototype would still apply. */ | |
10108 | char $ac_func(); | |
10109 | ||
10110 | int main() { | |
10111 | ||
10112 | /* The GNU C library defines this for functions which it implements | |
10113 | to always fail with ENOSYS. Some functions are actually named | |
10114 | something starting with __ and the normal name is an alias. */ | |
10115 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10116 | choke me | |
10117 | #else | |
e694c22c | 10118 | $ac_func(); |
10f2d63a VZ |
10119 | #endif |
10120 | ||
10121 | ; return 0; } | |
10122 | EOF | |
360d6699 | 10123 | if { (eval echo configure:10124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10124 | rm -rf conftest* |
10125 | eval "ac_cv_func_$ac_func=yes" | |
10126 | else | |
10127 | echo "configure: failed program was:" >&5 | |
10128 | cat conftest.$ac_ext >&5 | |
10129 | rm -rf conftest* | |
10130 | eval "ac_cv_func_$ac_func=no" | |
10131 | fi | |
10132 | rm -f conftest* | |
10133 | fi | |
10134 | ||
10135 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10136 | echo "$ac_t""yes" 1>&6 | |
10137 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10138 | cat >> confdefs.h <<EOF | |
10139 | #define $ac_tr_func 1 | |
10140 | EOF | |
10141 | break | |
10142 | else | |
10143 | echo "$ac_t""no" 1>&6 | |
10144 | fi | |
10145 | done | |
10146 | ||
10147 | ||
10148 | for ac_func in strtok_r | |
10149 | do | |
10150 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
360d6699 | 10151 | echo "configure:10152: checking for $ac_func" >&5 |
10f2d63a VZ |
10152 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10153 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10154 | else | |
10155 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 10156 | #line 10157 "configure" |
10f2d63a VZ |
10157 | #include "confdefs.h" |
10158 | /* System header to define __stub macros and hopefully few prototypes, | |
10159 | which can conflict with char $ac_func(); below. */ | |
10160 | #include <assert.h> | |
10161 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10162 | /* We use char because int might match the return type of a gcc2 | |
10163 | builtin and then its argument prototype would still apply. */ | |
10164 | char $ac_func(); | |
10165 | ||
10166 | int main() { | |
10167 | ||
10168 | /* The GNU C library defines this for functions which it implements | |
10169 | to always fail with ENOSYS. Some functions are actually named | |
10170 | something starting with __ and the normal name is an alias. */ | |
10171 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10172 | choke me | |
10173 | #else | |
e694c22c | 10174 | $ac_func(); |
10f2d63a VZ |
10175 | #endif |
10176 | ||
10177 | ; return 0; } | |
10178 | EOF | |
360d6699 | 10179 | if { (eval echo configure:10180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10180 | rm -rf conftest* |
10181 | eval "ac_cv_func_$ac_func=yes" | |
10182 | else | |
10183 | echo "configure: failed program was:" >&5 | |
10184 | cat conftest.$ac_ext >&5 | |
10185 | rm -rf conftest* | |
10186 | eval "ac_cv_func_$ac_func=no" | |
10187 | fi | |
10188 | rm -f conftest* | |
10189 | fi | |
10190 | ||
10191 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10192 | echo "$ac_t""yes" 1>&6 | |
10193 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10194 | cat >> confdefs.h <<EOF | |
10195 | #define $ac_tr_func 1 | |
10196 | EOF | |
10197 | ||
10198 | else | |
10199 | echo "$ac_t""no" 1>&6 | |
10200 | fi | |
10201 | done | |
10202 | ||
10203 | ||
c63c7106 | 10204 | INET_LINK= |
10f2d63a VZ |
10205 | for ac_func in inet_addr |
10206 | do | |
10207 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
360d6699 | 10208 | echo "configure:10209: checking for $ac_func" >&5 |
10f2d63a VZ |
10209 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10210 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10211 | else | |
10212 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 10213 | #line 10214 "configure" |
10f2d63a VZ |
10214 | #include "confdefs.h" |
10215 | /* System header to define __stub macros and hopefully few prototypes, | |
10216 | which can conflict with char $ac_func(); below. */ | |
10217 | #include <assert.h> | |
10218 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10219 | /* We use char because int might match the return type of a gcc2 | |
10220 | builtin and then its argument prototype would still apply. */ | |
10221 | char $ac_func(); | |
10222 | ||
10223 | int main() { | |
10224 | ||
10225 | /* The GNU C library defines this for functions which it implements | |
10226 | to always fail with ENOSYS. Some functions are actually named | |
10227 | something starting with __ and the normal name is an alias. */ | |
10228 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10229 | choke me | |
10230 | #else | |
e694c22c | 10231 | $ac_func(); |
10f2d63a VZ |
10232 | #endif |
10233 | ||
10234 | ; return 0; } | |
10235 | EOF | |
360d6699 | 10236 | if { (eval echo configure:10237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10237 | rm -rf conftest* |
10238 | eval "ac_cv_func_$ac_func=yes" | |
10239 | else | |
10240 | echo "configure: failed program was:" >&5 | |
10241 | cat conftest.$ac_ext >&5 | |
10242 | rm -rf conftest* | |
10243 | eval "ac_cv_func_$ac_func=no" | |
10244 | fi | |
10245 | rm -f conftest* | |
10246 | fi | |
10247 | ||
10248 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10249 | echo "$ac_t""yes" 1>&6 | |
10250 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10251 | cat >> confdefs.h <<EOF | |
10252 | #define $ac_tr_func 1 | |
10253 | EOF | |
c63c7106 VZ |
10254 | cat >> confdefs.h <<\EOF |
10255 | #define HAVE_INET_ADDR 1 | |
10256 | EOF | |
10257 | ||
10f2d63a VZ |
10258 | else |
10259 | echo "$ac_t""no" 1>&6 | |
c63c7106 | 10260 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 |
360d6699 | 10261 | echo "configure:10262: checking for inet_addr in -lnsl" >&5 |
c63c7106 VZ |
10262 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
10263 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10264 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10265 | else | |
10266 | ac_save_LIBS="$LIBS" | |
10267 | LIBS="-lnsl $LIBS" | |
10268 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 10269 | #line 10270 "configure" |
c63c7106 VZ |
10270 | #include "confdefs.h" |
10271 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10272 | /* We use char because int might match the return type of a gcc2 | |
10273 | builtin and then its argument prototype would still apply. */ | |
10274 | char inet_addr(); | |
10275 | ||
10276 | int main() { | |
10277 | inet_addr() | |
10278 | ; return 0; } | |
10279 | EOF | |
360d6699 | 10280 | if { (eval echo configure:10281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c63c7106 VZ |
10281 | rm -rf conftest* |
10282 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10283 | else | |
10284 | echo "configure: failed program was:" >&5 | |
10285 | cat conftest.$ac_ext >&5 | |
10286 | rm -rf conftest* | |
10287 | eval "ac_cv_lib_$ac_lib_var=no" | |
10288 | fi | |
10289 | rm -f conftest* | |
10290 | LIBS="$ac_save_LIBS" | |
10291 | ||
10292 | fi | |
10293 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10294 | echo "$ac_t""yes" 1>&6 | |
10295 | INET_LINK="nsl" | |
10296 | else | |
10297 | echo "$ac_t""no" 1>&6 | |
10298 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 | |
360d6699 | 10299 | echo "configure:10300: checking for inet_addr in -lresolv" >&5 |
c63c7106 VZ |
10300 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
10301 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10302 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10303 | else | |
10304 | ac_save_LIBS="$LIBS" | |
10305 | LIBS="-lresolv $LIBS" | |
10306 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 10307 | #line 10308 "configure" |
c63c7106 VZ |
10308 | #include "confdefs.h" |
10309 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10310 | /* We use char because int might match the return type of a gcc2 | |
10311 | builtin and then its argument prototype would still apply. */ | |
10312 | char inet_addr(); | |
10313 | ||
10314 | int main() { | |
10315 | inet_addr() | |
10316 | ; return 0; } | |
10317 | EOF | |
360d6699 | 10318 | if { (eval echo configure:10319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c63c7106 VZ |
10319 | rm -rf conftest* |
10320 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10321 | else | |
10322 | echo "configure: failed program was:" >&5 | |
10323 | cat conftest.$ac_ext >&5 | |
10324 | rm -rf conftest* | |
10325 | eval "ac_cv_lib_$ac_lib_var=no" | |
10326 | fi | |
10327 | rm -f conftest* | |
10328 | LIBS="$ac_save_LIBS" | |
10329 | ||
10330 | fi | |
10331 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10332 | echo "$ac_t""yes" 1>&6 | |
10333 | INET_LINK="resolv" | |
10334 | ||
10335 | else | |
10336 | echo "$ac_t""no" 1>&6 | |
10337 | fi | |
10338 | ||
10339 | ||
10340 | fi | |
10341 | ||
10342 | ||
10343 | ||
10f2d63a VZ |
10344 | fi |
10345 | done | |
10346 | ||
c63c7106 | 10347 | |
10f2d63a VZ |
10348 | for ac_func in inet_aton |
10349 | do | |
10350 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
360d6699 | 10351 | echo "configure:10352: checking for $ac_func" >&5 |
10f2d63a VZ |
10352 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10353 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10354 | else | |
10355 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 10356 | #line 10357 "configure" |
10f2d63a VZ |
10357 | #include "confdefs.h" |
10358 | /* System header to define __stub macros and hopefully few prototypes, | |
10359 | which can conflict with char $ac_func(); below. */ | |
10360 | #include <assert.h> | |
10361 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10362 | /* We use char because int might match the return type of a gcc2 | |
10363 | builtin and then its argument prototype would still apply. */ | |
10364 | char $ac_func(); | |
10365 | ||
10366 | int main() { | |
10367 | ||
10368 | /* The GNU C library defines this for functions which it implements | |
10369 | to always fail with ENOSYS. Some functions are actually named | |
10370 | something starting with __ and the normal name is an alias. */ | |
10371 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10372 | choke me | |
10373 | #else | |
e694c22c | 10374 | $ac_func(); |
10f2d63a VZ |
10375 | #endif |
10376 | ||
10377 | ; return 0; } | |
10378 | EOF | |
360d6699 | 10379 | if { (eval echo configure:10380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10380 | rm -rf conftest* |
10381 | eval "ac_cv_func_$ac_func=yes" | |
10382 | else | |
10383 | echo "configure: failed program was:" >&5 | |
10384 | cat conftest.$ac_ext >&5 | |
10385 | rm -rf conftest* | |
10386 | eval "ac_cv_func_$ac_func=no" | |
10387 | fi | |
10388 | rm -f conftest* | |
10389 | fi | |
10390 | ||
10391 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10392 | echo "$ac_t""yes" 1>&6 | |
10393 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10394 | cat >> confdefs.h <<EOF | |
10395 | #define $ac_tr_func 1 | |
10396 | EOF | |
c63c7106 VZ |
10397 | cat >> confdefs.h <<\EOF |
10398 | #define HAVE_INET_ATON 1 | |
10399 | EOF | |
10400 | ||
10f2d63a VZ |
10401 | else |
10402 | echo "$ac_t""no" 1>&6 | |
c63c7106 | 10403 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 |
360d6699 | 10404 | echo "configure:10405: checking for inet_aton in -l$INET_LINK" >&5 |
c63c7106 | 10405 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
10f2d63a VZ |
10406 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
10407 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10408 | else | |
10409 | ac_save_LIBS="$LIBS" | |
c63c7106 | 10410 | LIBS="-l$INET_LINK $LIBS" |
10f2d63a | 10411 | cat > conftest.$ac_ext <<EOF |
360d6699 | 10412 | #line 10413 "configure" |
10f2d63a VZ |
10413 | #include "confdefs.h" |
10414 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10415 | /* We use char because int might match the return type of a gcc2 | |
10416 | builtin and then its argument prototype would still apply. */ | |
10417 | char inet_aton(); | |
10418 | ||
10419 | int main() { | |
10420 | inet_aton() | |
10421 | ; return 0; } | |
10422 | EOF | |
360d6699 | 10423 | if { (eval echo configure:10424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10424 | rm -rf conftest* |
10425 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10426 | else | |
10427 | echo "configure: failed program was:" >&5 | |
10428 | cat conftest.$ac_ext >&5 | |
10429 | rm -rf conftest* | |
10430 | eval "ac_cv_lib_$ac_lib_var=no" | |
10431 | fi | |
10432 | rm -f conftest* | |
10433 | LIBS="$ac_save_LIBS" | |
10434 | ||
10435 | fi | |
10436 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10437 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
10438 | cat >> confdefs.h <<\EOF |
10439 | #define HAVE_INET_ATON 1 | |
10f2d63a VZ |
10440 | EOF |
10441 | ||
10f2d63a VZ |
10442 | else |
10443 | echo "$ac_t""no" 1>&6 | |
10444 | fi | |
10445 | ||
c63c7106 VZ |
10446 | |
10447 | fi | |
10448 | done | |
10449 | ||
10450 | ||
10451 | if test "x$INET_LINK" != "x"; then | |
10452 | cat >> confdefs.h <<\EOF | |
10453 | #define HAVE_INET_ADDR 1 | |
10454 | EOF | |
10455 | ||
10456 | INET_LINK="-l$INET_LINK" | |
10457 | fi | |
10f2d63a VZ |
10458 | |
10459 | fi | |
10460 | ||
10461 | ||
10462 | cat > confcache <<\EOF | |
10463 | # This file is a shell script that caches the results of configure | |
10464 | # tests run on this system so they can be shared between configure | |
10465 | # scripts and configure runs. It is not useful on other systems. | |
10466 | # If it contains results you don't want to keep, you may remove or edit it. | |
10467 | # | |
10468 | # By default, configure uses ./config.cache as the cache file, | |
10469 | # creating it if it does not exist already. You can give configure | |
10470 | # the --cache-file=FILE option to use a different cache file; that is | |
10471 | # what configure does when it calls configure scripts in | |
10472 | # subdirectories, so they share the cache. | |
10473 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
10474 | # config.status only pays attention to the cache file if you give it the | |
10475 | # --recheck option to rerun configure. | |
10476 | # | |
10477 | EOF | |
10478 | # The following way of writing the cache mishandles newlines in values, | |
10479 | # but we know of no workaround that is simple, portable, and efficient. | |
10480 | # So, don't put newlines in cache variables' values. | |
10481 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10482 | # and sets the high bit in the cache file unless we assign to the vars. | |
10483 | (set) 2>&1 | | |
10484 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10485 | *ac_space=\ *) | |
10486 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
10487 | # turns \\\\ into \\, and sed turns \\ into \). | |
10488 | sed -n \ | |
10489 | -e "s/'/'\\\\''/g" \ | |
10490 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
10491 | ;; | |
10492 | *) | |
10493 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10494 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
10495 | ;; | |
10496 | esac >> confcache | |
10497 | if cmp -s $cache_file confcache; then | |
10498 | : | |
10499 | else | |
10500 | if test -w $cache_file; then | |
10501 | echo "updating cache $cache_file" | |
10502 | cat confcache > $cache_file | |
10503 | else | |
10504 | echo "not updating unwritable cache $cache_file" | |
10505 | fi | |
10506 | fi | |
10507 | rm -f confcache | |
10508 | ||
10509 | ||
10510 | ||
10511 | if test "$USE_UNIX" = 1; then | |
10512 | ||
10513 | ||
10514 | THREADS_LINK="" | |
10515 | THREADS_OBJ="" | |
10516 | ||
10517 | if test "$wxUSE_THREADS" = "yes" ; then | |
10518 | if test "$wxUSE_WINE" = 1 ; then | |
10519 | echo "configure: warning: Threads are not supported under WINE" 1>&2 | |
10520 | wxUSE_THREADS="no" | |
10521 | fi | |
10522 | fi | |
10523 | ||
10524 | if test "$wxUSE_THREADS" = "yes" ; then | |
10525 | ||
10526 | echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 | |
360d6699 | 10527 | echo "configure:10528: checking for pthread_create in -lpthread" >&5 |
10f2d63a VZ |
10528 | ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` |
10529 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10530 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10531 | else | |
10532 | ac_save_LIBS="$LIBS" | |
10533 | LIBS="-lpthread $LIBS" | |
10534 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 10535 | #line 10536 "configure" |
10f2d63a VZ |
10536 | #include "confdefs.h" |
10537 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10538 | /* We use char because int might match the return type of a gcc2 | |
10539 | builtin and then its argument prototype would still apply. */ | |
10540 | char pthread_create(); | |
10541 | ||
10542 | int main() { | |
10543 | pthread_create() | |
10544 | ; return 0; } | |
10545 | EOF | |
360d6699 | 10546 | if { (eval echo configure:10547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10547 | rm -rf conftest* |
10548 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10549 | else | |
10550 | echo "configure: failed program was:" >&5 | |
10551 | cat conftest.$ac_ext >&5 | |
10552 | rm -rf conftest* | |
10553 | eval "ac_cv_lib_$ac_lib_var=no" | |
10554 | fi | |
10555 | rm -f conftest* | |
10556 | LIBS="$ac_save_LIBS" | |
10557 | ||
10558 | fi | |
10559 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10560 | echo "$ac_t""yes" 1>&6 | |
10561 | ||
10562 | THREADS_OBJ="threadpsx.lo" | |
10563 | THREADS_LINK="pthread" | |
10564 | ||
10565 | else | |
10566 | echo "$ac_t""no" 1>&6 | |
10567 | ||
10568 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 | |
360d6699 | 10569 | echo "configure:10570: checking for pthread_create in -lc_r" >&5 |
10f2d63a VZ |
10570 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
10571 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10572 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10573 | else | |
10574 | ac_save_LIBS="$LIBS" | |
10575 | LIBS="-lc_r $LIBS" | |
10576 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 10577 | #line 10578 "configure" |
10f2d63a VZ |
10578 | #include "confdefs.h" |
10579 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10580 | /* We use char because int might match the return type of a gcc2 | |
10581 | builtin and then its argument prototype would still apply. */ | |
10582 | char pthread_create(); | |
10583 | ||
10584 | int main() { | |
10585 | pthread_create() | |
10586 | ; return 0; } | |
10587 | EOF | |
360d6699 | 10588 | if { (eval echo configure:10589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10589 | rm -rf conftest* |
10590 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10591 | else | |
10592 | echo "configure: failed program was:" >&5 | |
10593 | cat conftest.$ac_ext >&5 | |
10594 | rm -rf conftest* | |
10595 | eval "ac_cv_lib_$ac_lib_var=no" | |
10596 | fi | |
10597 | rm -f conftest* | |
10598 | LIBS="$ac_save_LIBS" | |
10599 | ||
10600 | fi | |
10601 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10602 | echo "$ac_t""yes" 1>&6 | |
10603 | ||
10604 | THREADS_OBJ="threadpsx.lo" | |
10605 | THREADS_LINK="c_r" | |
10606 | ||
10607 | else | |
10608 | echo "$ac_t""no" 1>&6 | |
10609 | ||
10610 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` | |
10611 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 | |
360d6699 | 10612 | echo "configure:10613: checking for sys/prctl.h" >&5 |
10f2d63a VZ |
10613 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10614 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10615 | else | |
10616 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 10617 | #line 10618 "configure" |
10f2d63a VZ |
10618 | #include "confdefs.h" |
10619 | #include <sys/prctl.h> | |
10620 | EOF | |
10621 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
360d6699 | 10622 | { (eval echo configure:10623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
10623 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10624 | if test -z "$ac_err"; then | |
10625 | rm -rf conftest* | |
10626 | eval "ac_cv_header_$ac_safe=yes" | |
10627 | else | |
10628 | echo "$ac_err" >&5 | |
10629 | echo "configure: failed program was:" >&5 | |
10630 | cat conftest.$ac_ext >&5 | |
10631 | rm -rf conftest* | |
10632 | eval "ac_cv_header_$ac_safe=no" | |
10633 | fi | |
10634 | rm -f conftest* | |
10635 | fi | |
10636 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10637 | echo "$ac_t""yes" 1>&6 | |
10638 | ||
10639 | THREADS_OBJ="threadsgi.lo" | |
10640 | ||
10641 | else | |
10642 | echo "$ac_t""no" 1>&6 | |
10643 | fi | |
10644 | ||
10645 | ||
10646 | fi | |
10647 | ||
10648 | ||
10649 | fi | |
10650 | ||
10651 | ||
10652 | if test -z "$THREADS_OBJ" ; then | |
10653 | wxUSE_THREADS=no | |
10654 | echo "configure: warning: No thread support on this system" 1>&2 | |
10655 | fi | |
10656 | fi | |
10657 | ||
10658 | if test "$wxUSE_THREADS" = "yes" ; then | |
70846f0a VZ |
10659 | for ac_func in thr_setconcurrency |
10660 | do | |
10661 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
360d6699 | 10662 | echo "configure:10663: checking for $ac_func" >&5 |
70846f0a VZ |
10663 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10664 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10665 | else | |
10666 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 10667 | #line 10668 "configure" |
70846f0a VZ |
10668 | #include "confdefs.h" |
10669 | /* System header to define __stub macros and hopefully few prototypes, | |
10670 | which can conflict with char $ac_func(); below. */ | |
10671 | #include <assert.h> | |
10672 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10673 | /* We use char because int might match the return type of a gcc2 | |
10674 | builtin and then its argument prototype would still apply. */ | |
10675 | char $ac_func(); | |
10676 | ||
10677 | int main() { | |
10678 | ||
10679 | /* The GNU C library defines this for functions which it implements | |
10680 | to always fail with ENOSYS. Some functions are actually named | |
10681 | something starting with __ and the normal name is an alias. */ | |
10682 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10683 | choke me | |
10684 | #else | |
e694c22c | 10685 | $ac_func(); |
70846f0a VZ |
10686 | #endif |
10687 | ||
10688 | ; return 0; } | |
10689 | EOF | |
360d6699 | 10690 | if { (eval echo configure:10691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
70846f0a VZ |
10691 | rm -rf conftest* |
10692 | eval "ac_cv_func_$ac_func=yes" | |
10693 | else | |
10694 | echo "configure: failed program was:" >&5 | |
10695 | cat conftest.$ac_ext >&5 | |
10696 | rm -rf conftest* | |
10697 | eval "ac_cv_func_$ac_func=no" | |
10698 | fi | |
10699 | rm -f conftest* | |
10700 | fi | |
10701 | ||
10702 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10703 | echo "$ac_t""yes" 1>&6 | |
10704 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10705 | cat >> confdefs.h <<EOF | |
10706 | #define $ac_tr_func 1 | |
10707 | EOF | |
10708 | ||
10709 | else | |
10710 | echo "$ac_t""no" 1>&6 | |
10711 | fi | |
10712 | done | |
10713 | ||
10714 | ||
10f2d63a VZ |
10715 | |
10716 | for ac_hdr in sched.h | |
10717 | do | |
10718 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10719 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
360d6699 | 10720 | echo "configure:10721: checking for $ac_hdr" >&5 |
10f2d63a VZ |
10721 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10722 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10723 | else | |
10724 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 10725 | #line 10726 "configure" |
10f2d63a VZ |
10726 | #include "confdefs.h" |
10727 | #include <$ac_hdr> | |
10728 | EOF | |
10729 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
360d6699 | 10730 | { (eval echo configure:10731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
10731 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10732 | if test -z "$ac_err"; then | |
10733 | rm -rf conftest* | |
10734 | eval "ac_cv_header_$ac_safe=yes" | |
10735 | else | |
10736 | echo "$ac_err" >&5 | |
10737 | echo "configure: failed program was:" >&5 | |
10738 | cat conftest.$ac_ext >&5 | |
10739 | rm -rf conftest* | |
10740 | eval "ac_cv_header_$ac_safe=no" | |
10741 | fi | |
10742 | rm -f conftest* | |
10743 | fi | |
10744 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10745 | echo "$ac_t""yes" 1>&6 | |
10746 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10747 | cat >> confdefs.h <<EOF | |
10748 | #define $ac_tr_hdr 1 | |
10749 | EOF | |
10750 | ||
10751 | else | |
10752 | echo "$ac_t""no" 1>&6 | |
10753 | fi | |
10754 | done | |
10755 | ||
10756 | ||
10757 | echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6 | |
360d6699 | 10758 | echo "configure:10759: checking for sched_yield in -l$THREADS_LINK" >&5 |
10f2d63a VZ |
10759 | ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'` |
10760 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10761 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10762 | else | |
10763 | ac_save_LIBS="$LIBS" | |
10764 | LIBS="-l$THREADS_LINK $LIBS" | |
10765 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 10766 | #line 10767 "configure" |
10f2d63a VZ |
10767 | #include "confdefs.h" |
10768 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10769 | /* We use char because int might match the return type of a gcc2 | |
10770 | builtin and then its argument prototype would still apply. */ | |
10771 | char sched_yield(); | |
10772 | ||
10773 | int main() { | |
10774 | sched_yield() | |
10775 | ; return 0; } | |
10776 | EOF | |
360d6699 | 10777 | if { (eval echo configure:10778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10778 | rm -rf conftest* |
10779 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10780 | else | |
10781 | echo "configure: failed program was:" >&5 | |
10782 | cat conftest.$ac_ext >&5 | |
10783 | rm -rf conftest* | |
10784 | eval "ac_cv_lib_$ac_lib_var=no" | |
10785 | fi | |
10786 | rm -f conftest* | |
10787 | LIBS="$ac_save_LIBS" | |
10788 | ||
10789 | fi | |
10790 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10791 | echo "$ac_t""yes" 1>&6 | |
10792 | cat >> confdefs.h <<\EOF | |
10793 | #define HAVE_SCHED_YIELD 1 | |
10794 | EOF | |
10795 | ||
10796 | else | |
10797 | echo "$ac_t""no" 1>&6 | |
10798 | echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6 | |
360d6699 | 10799 | echo "configure:10800: checking for sched_yield in -l"posix4"" >&5 |
10f2d63a VZ |
10800 | ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'` |
10801 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10802 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10803 | else | |
10804 | ac_save_LIBS="$LIBS" | |
10805 | LIBS="-l"posix4" $LIBS" | |
10806 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 10807 | #line 10808 "configure" |
10f2d63a VZ |
10808 | #include "confdefs.h" |
10809 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10810 | /* We use char because int might match the return type of a gcc2 | |
10811 | builtin and then its argument prototype would still apply. */ | |
10812 | char sched_yield(); | |
10813 | ||
10814 | int main() { | |
10815 | sched_yield() | |
10816 | ; return 0; } | |
10817 | EOF | |
360d6699 | 10818 | if { (eval echo configure:10819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10819 | rm -rf conftest* |
10820 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10821 | else | |
10822 | echo "configure: failed program was:" >&5 | |
10823 | cat conftest.$ac_ext >&5 | |
10824 | rm -rf conftest* | |
10825 | eval "ac_cv_lib_$ac_lib_var=no" | |
10826 | fi | |
10827 | rm -f conftest* | |
10828 | LIBS="$ac_save_LIBS" | |
10829 | ||
10830 | fi | |
10831 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10832 | echo "$ac_t""yes" 1>&6 | |
10833 | cat >> confdefs.h <<\EOF | |
10834 | #define HAVE_SCHED_YIELD 1 | |
10835 | EOF | |
10836 | POSIX4_LINK="-lposix4" | |
10837 | else | |
10838 | echo "$ac_t""no" 1>&6 | |
10839 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
10840 | ||
10841 | fi | |
10842 | ||
10843 | ||
10844 | fi | |
10845 | ||
10846 | ||
10847 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6 | |
360d6699 | 10848 | echo "configure:10849: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5 |
10f2d63a VZ |
10849 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
10850 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10851 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10852 | else | |
10853 | ac_save_LIBS="$LIBS" | |
10854 | LIBS="-l$THREADS_LINK $LIBS" | |
10855 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 10856 | #line 10857 "configure" |
10f2d63a VZ |
10857 | #include "confdefs.h" |
10858 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10859 | /* We use char because int might match the return type of a gcc2 | |
10860 | builtin and then its argument prototype would still apply. */ | |
10861 | char pthread_attr_getschedpolicy(); | |
10862 | ||
10863 | int main() { | |
10864 | pthread_attr_getschedpolicy() | |
10865 | ; return 0; } | |
10866 | EOF | |
360d6699 | 10867 | if { (eval echo configure:10868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10868 | rm -rf conftest* |
10869 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10870 | else | |
10871 | echo "configure: failed program was:" >&5 | |
10872 | cat conftest.$ac_ext >&5 | |
10873 | rm -rf conftest* | |
10874 | eval "ac_cv_lib_$ac_lib_var=no" | |
10875 | fi | |
10876 | rm -f conftest* | |
10877 | LIBS="$ac_save_LIBS" | |
10878 | ||
10879 | fi | |
10880 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10881 | echo "$ac_t""yes" 1>&6 | |
10882 | cat >> confdefs.h <<\EOF | |
10883 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
10884 | EOF | |
10885 | ||
10886 | else | |
10887 | echo "$ac_t""no" 1>&6 | |
10888 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4"""... $ac_c" 1>&6 | |
360d6699 | 10889 | echo "configure:10890: checking for pthread_attr_getschedpolicy in -l"posix4"" >&5 |
10f2d63a VZ |
10890 | ac_lib_var=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
10891 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10892 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10893 | else | |
10894 | ac_save_LIBS="$LIBS" | |
10895 | LIBS="-l"posix4" $LIBS" | |
10896 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 10897 | #line 10898 "configure" |
10f2d63a VZ |
10898 | #include "confdefs.h" |
10899 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10900 | /* We use char because int might match the return type of a gcc2 | |
10901 | builtin and then its argument prototype would still apply. */ | |
10902 | char pthread_attr_getschedpolicy(); | |
10903 | ||
10904 | int main() { | |
10905 | pthread_attr_getschedpolicy() | |
10906 | ; return 0; } | |
10907 | EOF | |
360d6699 | 10908 | if { (eval echo configure:10909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10909 | rm -rf conftest* |
10910 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10911 | else | |
10912 | echo "configure: failed program was:" >&5 | |
10913 | cat conftest.$ac_ext >&5 | |
10914 | rm -rf conftest* | |
10915 | eval "ac_cv_lib_$ac_lib_var=no" | |
10916 | fi | |
10917 | rm -f conftest* | |
10918 | LIBS="$ac_save_LIBS" | |
10919 | ||
10920 | fi | |
10921 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10922 | echo "$ac_t""yes" 1>&6 | |
10923 | cat >> confdefs.h <<\EOF | |
10924 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
10925 | EOF | |
10926 | POSIX4_LINK="-lposix4" | |
10927 | else | |
10928 | echo "$ac_t""no" 1>&6 | |
10929 | echo "configure: warning: Setting thread priority will not work" 1>&2 | |
10930 | ||
10931 | fi | |
10932 | ||
10933 | ||
10934 | fi | |
10935 | ||
10936 | ||
10937 | echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6 | |
360d6699 | 10938 | echo "configure:10939: checking for pthread_cancel in -l$THREADS_LINK" >&5 |
10f2d63a VZ |
10939 | ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'` |
10940 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10941 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10942 | else | |
10943 | ac_save_LIBS="$LIBS" | |
10944 | LIBS="-l$THREADS_LINK $LIBS" | |
10945 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 10946 | #line 10947 "configure" |
10f2d63a VZ |
10947 | #include "confdefs.h" |
10948 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10949 | /* We use char because int might match the return type of a gcc2 | |
10950 | builtin and then its argument prototype would still apply. */ | |
10951 | char pthread_cancel(); | |
10952 | ||
10953 | int main() { | |
10954 | pthread_cancel() | |
10955 | ; return 0; } | |
10956 | EOF | |
360d6699 | 10957 | if { (eval echo configure:10958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10958 | rm -rf conftest* |
10959 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10960 | else | |
10961 | echo "configure: failed program was:" >&5 | |
10962 | cat conftest.$ac_ext >&5 | |
10963 | rm -rf conftest* | |
10964 | eval "ac_cv_lib_$ac_lib_var=no" | |
10965 | fi | |
10966 | rm -f conftest* | |
10967 | LIBS="$ac_save_LIBS" | |
10968 | ||
10969 | fi | |
10970 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10971 | echo "$ac_t""yes" 1>&6 | |
10972 | cat >> confdefs.h <<\EOF | |
10973 | #define HAVE_PTHREAD_CANCEL 1 | |
10974 | EOF | |
10975 | ||
10976 | else | |
10977 | echo "$ac_t""no" 1>&6 | |
10978 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
10979 | fi | |
10980 | ||
10981 | ||
10982 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 | |
360d6699 | 10983 | echo "configure:10984: checking for pthread_cleanup_push/pop" >&5 |
10f2d63a VZ |
10984 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
10985 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10986 | else | |
10987 | ||
10988 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 10989 | #line 10990 "configure" |
10f2d63a VZ |
10990 | #include "confdefs.h" |
10991 | #include <pthread.h> | |
10992 | int main() { | |
10993 | ||
10994 | pthread_cleanup_push(NULL, NULL); | |
10995 | pthread_cleanup_pop(0); | |
10996 | ||
10997 | ; return 0; } | |
10998 | EOF | |
360d6699 | 10999 | if { (eval echo configure:11000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
11000 | rm -rf conftest* |
11001 | ||
11002 | wx_cv_func_pthread_cleanup_push=yes | |
11003 | cat >> confdefs.h <<\EOF | |
11004 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 | |
11005 | EOF | |
11006 | ||
11007 | ||
11008 | else | |
11009 | echo "configure: failed program was:" >&5 | |
11010 | cat conftest.$ac_ext >&5 | |
11011 | rm -rf conftest* | |
11012 | ||
11013 | wx_cv_func_pthread_cleanup_push=no | |
11014 | ||
11015 | fi | |
11016 | rm -f conftest* | |
11017 | ||
11018 | fi | |
11019 | ||
11020 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
11021 | ||
11022 | THREADS_LINK="-l$THREADS_LINK" | |
11023 | fi | |
11024 | ||
11025 | fi | |
11026 | ||
11027 | if test "$wxUSE_THREADS" = "yes"; then | |
11028 | cat >> confdefs.h <<\EOF | |
11029 | #define wxUSE_THREADS 1 | |
11030 | EOF | |
11031 | ||
11032 | ||
11033 | CFLAGS="${CFLAGS} -D_REENTRANT" | |
11034 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" | |
11035 | ||
11036 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
11037 | else | |
11038 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
ab9b9eab | 11039 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 |
360d6699 | 11040 | echo "configure:11041: checking if -D_REENTRANT is needed" >&5 |
ab9b9eab VZ |
11041 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
11042 | CFLAGS="${CFLAGS} -D_REENTRANT" | |
11043 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" | |
11044 | echo "$ac_t""yes" 1>&6 | |
11045 | else | |
11046 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
11047 | fi |
11048 | fi | |
11049 | fi | |
11050 | ||
11051 | if test "$WXGTK12" = 1 ; then | |
11052 | cat >> confdefs.h <<EOF | |
11053 | #define __WXGTK12__ $WXGTK12 | |
11054 | EOF | |
11055 | ||
11056 | fi | |
11057 | ||
11058 | if test "$WXWINE" = 1 ; then | |
11059 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__" | |
11060 | fi | |
11061 | ||
11062 | if test "$wxUSE_CYGWIN" = 1 ; then | |
11063 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__" | |
11064 | fi | |
11065 | ||
11066 | WXDEBUG= | |
11067 | ||
11068 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
11069 | WXDEBUG="-g" | |
11070 | wxUSE_OPTIMISE=no | |
11071 | fi | |
11072 | ||
11073 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
11074 | wxUSE_DEBUG_INFO=yes | |
11075 | WXDEBUG="-ggdb" | |
11076 | fi | |
11077 | ||
11078 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
11079 | cat >> confdefs.h <<\EOF | |
11080 | #define WXDEBUG 1 | |
11081 | EOF | |
11082 | ||
11083 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
11084 | else | |
11085 | if test "$wxUSE_GTK" = 1 ; then | |
11086 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
11087 | fi | |
11088 | fi | |
11089 | ||
11090 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
11091 | cat >> confdefs.h <<\EOF | |
11092 | #define wxUSE_MEMORY_TRACING 1 | |
11093 | EOF | |
11094 | ||
11095 | cat >> confdefs.h <<\EOF | |
11096 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
11097 | EOF | |
11098 | ||
11099 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
11100 | fi | |
11101 | ||
11102 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
11103 | DMALLOC_LINK="-ldmalloc" | |
11104 | fi | |
11105 | ||
11106 | PROFILE= | |
11107 | if test "$wxUSE_PROFILE" = "yes" ; then | |
11108 | PROFILE="-pg" | |
11109 | fi | |
11110 | ||
11111 | DEP_INFO_FLAGS= | |
11112 | if test "$GCC" = yes ; then | |
11113 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
11114 | WXDEBUG_DEFINE="$WXDEBUG_DEFINE -fno-rtti" | |
11115 | fi | |
11116 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
11117 | WXDEBUG_DEFINE="$WXDEBUG_DEFINE -fno-exceptions" | |
11118 | fi | |
11119 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
11120 | CFLAGS="${CFLAGS} -fpermissive" | |
11121 | CXXFLAGS="${CXXFLAGS} -fpermissive" | |
11122 | fi | |
11123 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
11124 | DEP_INFO_FLAGS="-MMD" | |
11125 | fi | |
11126 | fi | |
11127 | ||
11128 | ||
11129 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` | |
11130 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
11131 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
11132 | OPTIMISE= | |
11133 | else | |
11134 | if test "$GCC" = yes ; then | |
11135 | OPTIMISE="-O2" | |
11136 | case "${host}" in | |
11137 | i586-*-*|i686-*-* ) | |
11138 | OPTIMISE="${OPTIMISE} " | |
11139 | ;; | |
11140 | esac | |
11141 | else | |
11142 | OPTIMISE="-O" | |
11143 | fi | |
11144 | fi | |
11145 | ||
11146 | ||
11147 | ZLIB_INCLUDE= | |
11148 | if test "$wxUSE_ZLIB" = "yes" ; then | |
11149 | cat >> confdefs.h <<\EOF | |
11150 | #define wxUSE_ZLIB 1 | |
11151 | EOF | |
11152 | ||
11153 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
11154 | fi | |
11155 | ||
11156 | PNG_INCLUDE= | |
11157 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
11158 | cat >> confdefs.h <<\EOF | |
11159 | #define wxUSE_LIBPNG 1 | |
11160 | EOF | |
11161 | ||
11162 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
11163 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
11164 | fi | |
11165 | ||
11166 | JPEG_INCLUDE= | |
11167 | if test "$wxUSE_LIBJPEG" = "yes" ; then | |
11168 | cat >> confdefs.h <<\EOF | |
11169 | #define wxUSE_LIBJPEG 1 | |
11170 | EOF | |
11171 | ||
11172 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
11173 | fi | |
11174 | ||
c7a2bf27 RR |
11175 | TIFF_INCLUDE= |
11176 | if test "$wxUSE_LIBTIFF" = "yes" ; then | |
11177 | cat >> confdefs.h <<\EOF | |
11178 | #define wxUSE_LIBTIFF 1 | |
11179 | EOF | |
11180 | ||
11181 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
11182 | fi | |
11183 | ||
10f2d63a VZ |
11184 | if test "$wxUSE_OPENGL" = "yes"; then |
11185 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` | |
11186 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
360d6699 | 11187 | echo "configure:11188: checking for GL/gl.h" >&5 |
10f2d63a VZ |
11188 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11189 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11190 | else | |
11191 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 11192 | #line 11193 "configure" |
10f2d63a VZ |
11193 | #include "confdefs.h" |
11194 | #include <GL/gl.h> | |
11195 | EOF | |
11196 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
360d6699 | 11197 | { (eval echo configure:11198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
11198 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11199 | if test -z "$ac_err"; then | |
11200 | rm -rf conftest* | |
11201 | eval "ac_cv_header_$ac_safe=yes" | |
11202 | else | |
11203 | echo "$ac_err" >&5 | |
11204 | echo "configure: failed program was:" >&5 | |
11205 | cat conftest.$ac_ext >&5 | |
11206 | rm -rf conftest* | |
11207 | eval "ac_cv_header_$ac_safe=no" | |
11208 | fi | |
11209 | rm -f conftest* | |
11210 | fi | |
11211 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11212 | echo "$ac_t""yes" 1>&6 | |
11213 | ||
11214 | echo $ac_n "checking for glInitNames in -lGL""... $ac_c" 1>&6 | |
360d6699 | 11215 | echo "configure:11216: checking for glInitNames in -lGL" >&5 |
10f2d63a VZ |
11216 | ac_lib_var=`echo GL'_'glInitNames | sed 'y%./+-%__p_%'` |
11217 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11218 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11219 | else | |
11220 | ac_save_LIBS="$LIBS" | |
11221 | LIBS="-lGL wxUSE_OPENGL=0 $LIBS" | |
11222 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 11223 | #line 11224 "configure" |
10f2d63a VZ |
11224 | #include "confdefs.h" |
11225 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11226 | /* We use char because int might match the return type of a gcc2 | |
11227 | builtin and then its argument prototype would still apply. */ | |
11228 | char glInitNames(); | |
11229 | ||
11230 | int main() { | |
11231 | glInitNames() | |
11232 | ; return 0; } | |
11233 | EOF | |
360d6699 | 11234 | if { (eval echo configure:11235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11235 | rm -rf conftest* |
11236 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11237 | else | |
11238 | echo "configure: failed program was:" >&5 | |
11239 | cat conftest.$ac_ext >&5 | |
11240 | rm -rf conftest* | |
11241 | eval "ac_cv_lib_$ac_lib_var=no" | |
11242 | fi | |
11243 | rm -f conftest* | |
11244 | LIBS="$ac_save_LIBS" | |
11245 | ||
11246 | fi | |
11247 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11248 | echo "$ac_t""yes" 1>&6 | |
11249 | ||
11250 | OPENGL_LINK="-lGL" | |
11251 | cat >> confdefs.h <<\EOF | |
11252 | #define wxUSE_OPENGL 1 | |
11253 | EOF | |
11254 | ||
11255 | UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src" | |
11256 | ||
11257 | else | |
11258 | echo "$ac_t""no" 1>&6 | |
11259 | ||
11260 | echo $ac_n "checking for glInitNames in -lMesaGL""... $ac_c" 1>&6 | |
360d6699 | 11261 | echo "configure:11262: checking for glInitNames in -lMesaGL" >&5 |
10f2d63a VZ |
11262 | ac_lib_var=`echo MesaGL'_'glInitNames | sed 'y%./+-%__p_%'` |
11263 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11264 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11265 | else | |
11266 | ac_save_LIBS="$LIBS" | |
11267 | LIBS="-lMesaGL $LIBS" | |
11268 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 11269 | #line 11270 "configure" |
10f2d63a VZ |
11270 | #include "confdefs.h" |
11271 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11272 | /* We use char because int might match the return type of a gcc2 | |
11273 | builtin and then its argument prototype would still apply. */ | |
11274 | char glInitNames(); | |
11275 | ||
11276 | int main() { | |
11277 | glInitNames() | |
11278 | ; return 0; } | |
11279 | EOF | |
360d6699 | 11280 | if { (eval echo configure:11281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11281 | rm -rf conftest* |
11282 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11283 | else | |
11284 | echo "configure: failed program was:" >&5 | |
11285 | cat conftest.$ac_ext >&5 | |
11286 | rm -rf conftest* | |
11287 | eval "ac_cv_lib_$ac_lib_var=no" | |
11288 | fi | |
11289 | rm -f conftest* | |
11290 | LIBS="$ac_save_LIBS" | |
11291 | ||
11292 | fi | |
11293 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11294 | echo "$ac_t""yes" 1>&6 | |
11295 | ||
11296 | OPENGL_LINK="-lMesaGL" | |
11297 | cat >> confdefs.h <<\EOF | |
11298 | #define wxUSE_OPENGL 1 | |
11299 | EOF | |
11300 | ||
11301 | UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src" | |
11302 | ||
11303 | else | |
11304 | echo "$ac_t""no" 1>&6 | |
11305 | wxUSE_OPENGL=0 | |
11306 | fi | |
11307 | ||
11308 | ||
11309 | fi | |
11310 | ||
11311 | ||
11312 | else | |
11313 | echo "$ac_t""no" 1>&6 | |
11314 | wxUSE_OPENGL=0 | |
11315 | fi | |
11316 | ||
11317 | fi | |
11318 | ||
11319 | ||
11320 | if test "$wxUSE_GUI" = "yes"; then | |
11321 | cat >> confdefs.h <<\EOF | |
11322 | #define wxUSE_GUI 1 | |
11323 | EOF | |
11324 | ||
11325 | ||
11326 | else | |
11327 | cat >> confdefs.h <<\EOF | |
11328 | #define wxUSE_NOGUI 1 | |
11329 | EOF | |
11330 | ||
11331 | fi | |
11332 | ||
11333 | ||
11334 | if test "$wxUSE_UNIX" = "yes"; then | |
11335 | cat >> confdefs.h <<\EOF | |
11336 | #define wxUSE_UNIX 1 | |
11337 | EOF | |
11338 | ||
11339 | fi | |
11340 | ||
11341 | ||
11342 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
11343 | cat >> confdefs.h <<\EOF | |
11344 | #define wxUSE_APPLE_IEEE 1 | |
11345 | EOF | |
11346 | ||
11347 | fi | |
11348 | ||
10f2d63a VZ |
11349 | if test "$wxUSE_WAVE" = "yes"; then |
11350 | cat >> confdefs.h <<\EOF | |
11351 | #define wxUSE_WAVE 1 | |
11352 | EOF | |
11353 | ||
11354 | fi | |
11355 | ||
11356 | if test "$wxUSE_FILE" = "yes"; then | |
11357 | cat >> confdefs.h <<\EOF | |
11358 | #define wxUSE_FILE 1 | |
11359 | EOF | |
11360 | ||
11361 | fi | |
11362 | ||
11363 | if test "$wxUSE_FS_INET" = "yes"; then | |
11364 | cat >> confdefs.h <<\EOF | |
11365 | #define wxUSE_FS_INET 1 | |
11366 | EOF | |
11367 | ||
11368 | fi | |
11369 | ||
11370 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
11371 | cat >> confdefs.h <<\EOF | |
11372 | #define wxUSE_FS_ZIP 1 | |
11373 | EOF | |
11374 | ||
11375 | fi | |
11376 | ||
11377 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
11378 | cat >> confdefs.h <<\EOF | |
11379 | #define wxUSE_ZIPSTREAM 1 | |
11380 | EOF | |
11381 | ||
11382 | fi | |
11383 | ||
11384 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
11385 | cat >> confdefs.h <<\EOF | |
11386 | #define wxUSE_BUSYINFO 1 | |
11387 | EOF | |
11388 | ||
11389 | fi | |
11390 | ||
11391 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
11392 | cat >> confdefs.h <<\EOF | |
11393 | #define wxUSE_STD_IOSTREAM 1 | |
11394 | EOF | |
11395 | ||
11396 | fi | |
11397 | ||
11398 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
11399 | if test "$wxUSE_FILE" != "yes"; then | |
11400 | echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2 | |
11401 | else | |
11402 | cat >> confdefs.h <<\EOF | |
11403 | #define wxUSE_TEXTFILE 1 | |
11404 | EOF | |
11405 | ||
11406 | fi | |
11407 | fi | |
11408 | ||
11409 | if test "$wxUSE_CONFIG" = "yes" ; then | |
11410 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
11411 | echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2 | |
11412 | else | |
11413 | cat >> confdefs.h <<\EOF | |
11414 | #define wxUSE_CONFIG 1 | |
11415 | EOF | |
11416 | ||
11417 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
11418 | fi | |
11419 | fi | |
11420 | ||
11421 | if test "$wxUSE_INTL" = "yes" ; then | |
11422 | if test "$wxUSE_FILE" != "yes"; then | |
11423 | echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2 | |
11424 | else | |
11425 | cat >> confdefs.h <<\EOF | |
11426 | #define wxUSE_INTL 1 | |
11427 | EOF | |
11428 | ||
11429 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
11430 | fi | |
11431 | fi | |
11432 | ||
11433 | if test "$wxUSE_LOG" = "yes"; then | |
11434 | cat >> confdefs.h <<\EOF | |
11435 | #define wxUSE_LOG 1 | |
11436 | EOF | |
11437 | ||
11438 | fi | |
11439 | ||
11440 | if test "$wxUSE_LONGLONG" = "yes"; then | |
11441 | cat >> confdefs.h <<\EOF | |
11442 | #define wxUSE_LONGLONG 1 | |
11443 | EOF | |
11444 | ||
11445 | fi | |
11446 | ||
10f2d63a VZ |
11447 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
11448 | cat >> confdefs.h <<\EOF | |
11449 | #define wxUSE_DIALUP_MANAGER 1 | |
11450 | EOF | |
11451 | ||
678b92a9 | 11452 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS nettest" |
10f2d63a VZ |
11453 | fi |
11454 | ||
11455 | if test "$wxUSE_STREAMS" = "yes" ; then | |
11456 | cat >> confdefs.h <<\EOF | |
11457 | #define wxUSE_STREAMS 1 | |
11458 | EOF | |
11459 | ||
11460 | fi | |
11461 | ||
11462 | if test "$wxUSE_SERIAL" = "yes" ; then | |
11463 | cat >> confdefs.h <<\EOF | |
11464 | #define wxUSE_SERIAL 1 | |
11465 | EOF | |
11466 | ||
11467 | fi | |
11468 | ||
11469 | ||
afc31813 | 11470 | if test "$wxUSE_TIMEDATE" = "yes"; then |
360d6699 VZ |
11471 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
11472 | echo "configure:11473: checking for timezone variable in <time.h>" >&5 | |
11473 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then | |
11474 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11475 | else | |
11476 | ||
11477 | cat > conftest.$ac_ext <<EOF | |
11478 | #line 11479 "configure" | |
11479 | #include "confdefs.h" | |
11480 | ||
11481 | #include <time.h> | |
11482 | ||
11483 | int main() { | |
11484 | ||
11485 | int tz; | |
11486 | tz = __timezone; | |
11487 | ||
11488 | ; return 0; } | |
11489 | EOF | |
11490 | if { (eval echo configure:11491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
11491 | rm -rf conftest* | |
11492 | ||
11493 | wx_cv_var_timezone=__timezone | |
11494 | ||
11495 | else | |
11496 | echo "configure: failed program was:" >&5 | |
11497 | cat conftest.$ac_ext >&5 | |
11498 | rm -rf conftest* | |
11499 | ||
11500 | cat > conftest.$ac_ext <<EOF | |
11501 | #line 11502 "configure" | |
11502 | #include "confdefs.h" | |
11503 | ||
11504 | #include <time.h> | |
11505 | ||
11506 | int main() { | |
11507 | ||
11508 | int tz; | |
11509 | tz = _timezone; | |
11510 | ||
11511 | ; return 0; } | |
11512 | EOF | |
11513 | if { (eval echo configure:11514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
11514 | rm -rf conftest* | |
11515 | ||
11516 | wx_cv_var_timezone=_timezone | |
11517 | ||
11518 | else | |
11519 | echo "configure: failed program was:" >&5 | |
11520 | cat conftest.$ac_ext >&5 | |
11521 | rm -rf conftest* | |
11522 | { echo "configure: error: no timezone variable" 1>&2; exit 1; } | |
11523 | ||
11524 | fi | |
11525 | rm -f conftest* | |
11526 | ||
11527 | ||
11528 | fi | |
11529 | rm -f conftest* | |
11530 | ||
11531 | ||
11532 | fi | |
11533 | ||
11534 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 | |
11535 | ||
11536 | cat >> confdefs.h <<EOF | |
11537 | #define WX_TIMEZONE $wx_cv_var_timezone | |
11538 | EOF | |
11539 | ||
11540 | ||
0470b1e6 | 11541 | for ac_func in localtime gettimeofday ftime |
afc31813 VZ |
11542 | do |
11543 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
360d6699 | 11544 | echo "configure:11545: checking for $ac_func" >&5 |
afc31813 VZ |
11545 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11546 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11547 | else | |
11548 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 11549 | #line 11550 "configure" |
10f2d63a | 11550 | #include "confdefs.h" |
afc31813 VZ |
11551 | /* System header to define __stub macros and hopefully few prototypes, |
11552 | which can conflict with char $ac_func(); below. */ | |
11553 | #include <assert.h> | |
11554 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11555 | /* We use char because int might match the return type of a gcc2 | |
11556 | builtin and then its argument prototype would still apply. */ | |
11557 | char $ac_func(); | |
11558 | ||
10f2d63a | 11559 | int main() { |
afc31813 VZ |
11560 | |
11561 | /* The GNU C library defines this for functions which it implements | |
11562 | to always fail with ENOSYS. Some functions are actually named | |
11563 | something starting with __ and the normal name is an alias. */ | |
11564 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11565 | choke me | |
11566 | #else | |
e694c22c | 11567 | $ac_func(); |
afc31813 VZ |
11568 | #endif |
11569 | ||
10f2d63a VZ |
11570 | ; return 0; } |
11571 | EOF | |
360d6699 | 11572 | if { (eval echo configure:11573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a | 11573 | rm -rf conftest* |
afc31813 | 11574 | eval "ac_cv_func_$ac_func=yes" |
10f2d63a VZ |
11575 | else |
11576 | echo "configure: failed program was:" >&5 | |
11577 | cat conftest.$ac_ext >&5 | |
11578 | rm -rf conftest* | |
afc31813 VZ |
11579 | eval "ac_cv_func_$ac_func=no" |
11580 | fi | |
11581 | rm -f conftest* | |
11582 | fi | |
11583 | ||
11584 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11585 | echo "$ac_t""yes" 1>&6 | |
11586 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11587 | cat >> confdefs.h <<EOF | |
11588 | #define $ac_tr_func 1 | |
11589 | EOF | |
0470b1e6 | 11590 | break |
afc31813 VZ |
11591 | else |
11592 | echo "$ac_t""no" 1>&6 | |
11593 | fi | |
11594 | done | |
11595 | ||
11596 | ||
0470b1e6 VZ |
11597 | if test "$ac_cv_func_localtime" = "yes"; then |
11598 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
360d6699 | 11599 | echo "configure:11600: checking for tm_gmtoff in struct tm" >&5 |
0470b1e6 VZ |
11600 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
11601 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11602 | else | |
11603 | ||
11604 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 11605 | #line 11606 "configure" |
0470b1e6 VZ |
11606 | #include "confdefs.h" |
11607 | ||
11608 | #include <time.h> | |
11609 | ||
11610 | int main() { | |
11611 | ||
11612 | struct tm tm; | |
11613 | tm.tm_gmtoff++; | |
11614 | ||
11615 | ; return 0; } | |
11616 | EOF | |
360d6699 | 11617 | if { (eval echo configure:11618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0470b1e6 VZ |
11618 | rm -rf conftest* |
11619 | ||
f03a98d8 | 11620 | wx_cv_struct_tm_has_gmtoff=yes |
0470b1e6 VZ |
11621 | cat >> confdefs.h <<\EOF |
11622 | #define WX_GMTOFF_IN_TM 1 | |
11623 | EOF | |
11624 | ||
11625 | ||
11626 | else | |
11627 | echo "configure: failed program was:" >&5 | |
11628 | cat conftest.$ac_ext >&5 | |
11629 | rm -rf conftest* | |
11630 | wx_cv_struct_tm_has_gmtoff=no | |
11631 | ||
11632 | fi | |
11633 | rm -f conftest* | |
11634 | ||
11635 | fi | |
11636 | ||
11637 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
11638 | elif test "$ac_cv_func_gettimeofday" = "yes"; then | |
afc31813 | 11639 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 |
360d6699 | 11640 | echo "configure:11641: checking whether gettimeofday takes two arguments" >&5 |
afc31813 VZ |
11641 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
11642 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11643 | else | |
11644 | ||
11645 | ||
11646 | ac_ext=C | |
11647 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11648 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11649 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11650 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11651 | cross_compiling=$ac_cv_prog_cxx_cross | |
11652 | ||
11653 | ||
11654 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 11655 | #line 11656 "configure" |
10f2d63a | 11656 | #include "confdefs.h" |
afc31813 VZ |
11657 | |
11658 | #include <sys/time.h> | |
11659 | #include <unistd.h> | |
11660 | ||
10f2d63a | 11661 | int main() { |
afc31813 VZ |
11662 | |
11663 | struct timeval tv; | |
11664 | struct timezone tz; | |
11665 | gettimeofday(&tv, &tz); | |
11666 | ||
10f2d63a VZ |
11667 | ; return 0; } |
11668 | EOF | |
360d6699 | 11669 | if { (eval echo configure:11670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a | 11670 | rm -rf conftest* |
afc31813 | 11671 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a VZ |
11672 | else |
11673 | echo "configure: failed program was:" >&5 | |
11674 | cat conftest.$ac_ext >&5 | |
11675 | rm -rf conftest* | |
11676 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 11677 | #line 11678 "configure" |
10f2d63a | 11678 | #include "confdefs.h" |
afc31813 VZ |
11679 | |
11680 | #include <sys/time.h> | |
11681 | #include <unistd.h> | |
11682 | ||
10f2d63a | 11683 | int main() { |
afc31813 VZ |
11684 | |
11685 | struct timeval tv; | |
11686 | gettimeofday(&tv); | |
11687 | ||
10f2d63a VZ |
11688 | ; return 0; } |
11689 | EOF | |
360d6699 | 11690 | if { (eval echo configure:11691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a | 11691 | rm -rf conftest* |
afc31813 | 11692 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a VZ |
11693 | else |
11694 | echo "configure: failed program was:" >&5 | |
11695 | cat conftest.$ac_ext >&5 | |
11696 | rm -rf conftest* | |
afc31813 VZ |
11697 | wx_cv_func_gettimeofday_has_2_args=unknown |
11698 | ||
10f2d63a VZ |
11699 | fi |
11700 | rm -f conftest* | |
afc31813 | 11701 | |
10f2d63a VZ |
11702 | fi |
11703 | rm -f conftest* | |
afc31813 | 11704 | ac_ext=c |
10f2d63a VZ |
11705 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
11706 | ac_cpp='$CPP $CPPFLAGS' | |
11707 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11708 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11709 | cross_compiling=$ac_cv_prog_cc_cross | |
11710 | ||
afc31813 VZ |
11711 | |
11712 | fi | |
11713 | ||
11714 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 11715 | |
afc31813 VZ |
11716 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
11717 | cat >> confdefs.h <<\EOF | |
11718 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
11719 | EOF | |
11720 | ||
11721 | fi | |
11722 | fi | |
11723 | ||
11724 | cat >> confdefs.h <<\EOF | |
11725 | #define wxUSE_TIMEDATE 1 | |
11726 | EOF | |
11727 | ||
11728 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
11729 | fi | |
11730 | ||
11731 | ||
11732 | if test "$wxUSE_SOCKETS" = "yes"; then | |
c63c7106 | 11733 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
360d6699 | 11734 | echo "configure:11735: checking for socket" >&5 |
c63c7106 VZ |
11735 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
11736 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11737 | else | |
11738 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 11739 | #line 11740 "configure" |
c63c7106 VZ |
11740 | #include "confdefs.h" |
11741 | /* System header to define __stub macros and hopefully few prototypes, | |
11742 | which can conflict with char socket(); below. */ | |
11743 | #include <assert.h> | |
11744 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11745 | /* We use char because int might match the return type of a gcc2 | |
11746 | builtin and then its argument prototype would still apply. */ | |
11747 | char socket(); | |
11748 | ||
11749 | int main() { | |
11750 | ||
11751 | /* The GNU C library defines this for functions which it implements | |
11752 | to always fail with ENOSYS. Some functions are actually named | |
11753 | something starting with __ and the normal name is an alias. */ | |
11754 | #if defined (__stub_socket) || defined (__stub___socket) | |
11755 | choke me | |
11756 | #else | |
e694c22c | 11757 | socket(); |
c63c7106 VZ |
11758 | #endif |
11759 | ||
11760 | ; return 0; } | |
11761 | EOF | |
360d6699 | 11762 | if { (eval echo configure:11763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c63c7106 VZ |
11763 | rm -rf conftest* |
11764 | eval "ac_cv_func_socket=yes" | |
11765 | else | |
11766 | echo "configure: failed program was:" >&5 | |
11767 | cat conftest.$ac_ext >&5 | |
11768 | rm -rf conftest* | |
11769 | eval "ac_cv_func_socket=no" | |
11770 | fi | |
11771 | rm -f conftest* | |
11772 | fi | |
11773 | ||
11774 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
11775 | echo "$ac_t""yes" 1>&6 | |
11776 | : | |
11777 | else | |
11778 | echo "$ac_t""no" 1>&6 | |
11779 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
360d6699 | 11780 | echo "configure:11781: checking for socket in -lsocket" >&5 |
c63c7106 VZ |
11781 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
11782 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11783 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11784 | else | |
11785 | ac_save_LIBS="$LIBS" | |
11786 | LIBS="-lsocket $LIBS" | |
11787 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 11788 | #line 11789 "configure" |
c63c7106 VZ |
11789 | #include "confdefs.h" |
11790 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11791 | /* We use char because int might match the return type of a gcc2 | |
11792 | builtin and then its argument prototype would still apply. */ | |
11793 | char socket(); | |
11794 | ||
11795 | int main() { | |
11796 | socket() | |
11797 | ; return 0; } | |
11798 | EOF | |
360d6699 | 11799 | if { (eval echo configure:11800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c63c7106 VZ |
11800 | rm -rf conftest* |
11801 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11802 | else | |
11803 | echo "configure: failed program was:" >&5 | |
11804 | cat conftest.$ac_ext >&5 | |
11805 | rm -rf conftest* | |
11806 | eval "ac_cv_lib_$ac_lib_var=no" | |
11807 | fi | |
11808 | rm -f conftest* | |
11809 | LIBS="$ac_save_LIBS" | |
11810 | ||
11811 | fi | |
11812 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11813 | echo "$ac_t""yes" 1>&6 | |
11814 | INET_LINK="$INET_LINK -lsocket" | |
c63c7106 VZ |
11815 | else |
11816 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
11817 | |
11818 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 | |
11819 | wxUSE_SOCKETS=no | |
11820 | ||
11821 | ||
c63c7106 VZ |
11822 | fi |
11823 | ||
11824 | ||
11825 | fi | |
11826 | ||
10f2d63a VZ |
11827 | fi |
11828 | ||
afc31813 VZ |
11829 | if test "$wxUSE_SOCKETS" = "yes" ; then |
11830 | ||
11831 | ac_ext=C | |
11832 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11833 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11834 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11835 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11836 | cross_compiling=$ac_cv_prog_cxx_cross | |
11837 | ||
11838 | echo $ac_n "checking the type of the third argument of getsockname""... $ac_c" 1>&6 | |
360d6699 | 11839 | echo "configure:11840: checking the type of the third argument of getsockname" >&5 |
afc31813 | 11840 | cat > conftest.$ac_ext <<EOF |
360d6699 | 11841 | #line 11842 "configure" |
afc31813 VZ |
11842 | #include "confdefs.h" |
11843 | #include <sys/socket.h> | |
11844 | int main() { | |
11845 | socklen_t len; getsockname(0, 0, &len); | |
11846 | ; return 0; } | |
11847 | EOF | |
360d6699 | 11848 | if { (eval echo configure:11849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
afc31813 VZ |
11849 | rm -rf conftest* |
11850 | cat >> confdefs.h <<\EOF | |
11851 | #define SOCKLEN_T socklen_t | |
11852 | EOF | |
11853 | echo "$ac_t""socklen_t" 1>&6 | |
11854 | else | |
11855 | echo "configure: failed program was:" >&5 | |
11856 | cat conftest.$ac_ext >&5 | |
11857 | rm -rf conftest* | |
11858 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 11859 | #line 11860 "configure" |
afc31813 VZ |
11860 | #include "confdefs.h" |
11861 | #include <sys/socket.h> | |
11862 | int main() { | |
11863 | size_t len; getsockname(0, 0, &len); | |
11864 | ; return 0; } | |
11865 | EOF | |
360d6699 | 11866 | if { (eval echo configure:11867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
afc31813 VZ |
11867 | rm -rf conftest* |
11868 | cat >> confdefs.h <<\EOF | |
11869 | #define SOCKLEN_T size_t | |
11870 | EOF | |
11871 | echo "$ac_t""size_t" 1>&6 | |
11872 | else | |
11873 | echo "configure: failed program was:" >&5 | |
11874 | cat conftest.$ac_ext >&5 | |
11875 | rm -rf conftest* | |
11876 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 11877 | #line 11878 "configure" |
afc31813 VZ |
11878 | #include "confdefs.h" |
11879 | #include <sys/socket.h> | |
11880 | int main() { | |
11881 | int len; getsockname(0, 0, &len); | |
11882 | ; return 0; } | |
11883 | EOF | |
360d6699 | 11884 | if { (eval echo configure:11885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
afc31813 VZ |
11885 | rm -rf conftest* |
11886 | cat >> confdefs.h <<\EOF | |
11887 | #define SOCKLEN_T int | |
11888 | EOF | |
11889 | echo "$ac_t""int" 1>&6 | |
11890 | else | |
11891 | echo "configure: failed program was:" >&5 | |
11892 | cat conftest.$ac_ext >&5 | |
11893 | rm -rf conftest* | |
11894 | echo "$ac_t""unknown" 1>&6 | |
11895 | ||
11896 | fi | |
11897 | rm -f conftest* | |
11898 | ||
11899 | fi | |
11900 | rm -f conftest* | |
11901 | ||
11902 | fi | |
11903 | rm -f conftest* | |
11904 | ac_ext=c | |
11905 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11906 | ac_cpp='$CPP $CPPFLAGS' | |
11907 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11908 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11909 | cross_compiling=$ac_cv_prog_cc_cross | |
11910 | ||
11911 | ||
11912 | cat >> confdefs.h <<\EOF | |
11913 | #define wxUSE_SOCKETS 1 | |
11914 | EOF | |
11915 | ||
11916 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wxsocket" | |
11917 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol" | |
11918 | fi | |
11919 | ||
10f2d63a VZ |
11920 | |
11921 | if test "$wxUSE_JOYSTICK" = 1; then | |
11922 | for ac_hdr in linux/joystick.h | |
11923 | do | |
11924 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
11925 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
360d6699 | 11926 | echo "configure:11927: checking for $ac_hdr" >&5 |
10f2d63a VZ |
11927 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11928 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11929 | else | |
11930 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 11931 | #line 11932 "configure" |
10f2d63a VZ |
11932 | #include "confdefs.h" |
11933 | #include <$ac_hdr> | |
11934 | EOF | |
11935 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
360d6699 | 11936 | { (eval echo configure:11937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
11937 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11938 | if test -z "$ac_err"; then | |
11939 | rm -rf conftest* | |
11940 | eval "ac_cv_header_$ac_safe=yes" | |
11941 | else | |
11942 | echo "$ac_err" >&5 | |
11943 | echo "configure: failed program was:" >&5 | |
11944 | cat conftest.$ac_ext >&5 | |
11945 | rm -rf conftest* | |
11946 | eval "ac_cv_header_$ac_safe=no" | |
11947 | fi | |
11948 | rm -f conftest* | |
11949 | fi | |
11950 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11951 | echo "$ac_t""yes" 1>&6 | |
11952 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11953 | cat >> confdefs.h <<EOF | |
11954 | #define $ac_tr_hdr 1 | |
11955 | EOF | |
11956 | ||
11957 | else | |
11958 | echo "$ac_t""no" 1>&6 | |
11959 | fi | |
11960 | done | |
11961 | ||
11962 | if test "$ac_cv_header_linux_joystick_h" = "yes"; then | |
11963 | cat >> confdefs.h <<\EOF | |
11964 | #define wxUSE_JOYSTICK 1 | |
11965 | EOF | |
11966 | ||
11967 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
11968 | fi | |
11969 | fi | |
11970 | ||
11971 | ||
11972 | HAVE_DL_FUNCS=0 | |
11973 | HAVE_SHL_FUNCS=0 | |
11974 | if test "$wxUSE_DYNLIB_CLASS" = "yes"; then | |
11975 | for ac_func in dlopen | |
11976 | do | |
11977 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
360d6699 | 11978 | echo "configure:11979: checking for $ac_func" >&5 |
10f2d63a VZ |
11979 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11980 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11981 | else | |
11982 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 11983 | #line 11984 "configure" |
10f2d63a VZ |
11984 | #include "confdefs.h" |
11985 | /* System header to define __stub macros and hopefully few prototypes, | |
11986 | which can conflict with char $ac_func(); below. */ | |
11987 | #include <assert.h> | |
11988 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11989 | /* We use char because int might match the return type of a gcc2 | |
11990 | builtin and then its argument prototype would still apply. */ | |
11991 | char $ac_func(); | |
11992 | ||
11993 | int main() { | |
11994 | ||
11995 | /* The GNU C library defines this for functions which it implements | |
11996 | to always fail with ENOSYS. Some functions are actually named | |
11997 | something starting with __ and the normal name is an alias. */ | |
11998 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11999 | choke me | |
12000 | #else | |
e694c22c | 12001 | $ac_func(); |
10f2d63a VZ |
12002 | #endif |
12003 | ||
12004 | ; return 0; } | |
12005 | EOF | |
360d6699 | 12006 | if { (eval echo configure:12007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
12007 | rm -rf conftest* |
12008 | eval "ac_cv_func_$ac_func=yes" | |
12009 | else | |
12010 | echo "configure: failed program was:" >&5 | |
12011 | cat conftest.$ac_ext >&5 | |
12012 | rm -rf conftest* | |
12013 | eval "ac_cv_func_$ac_func=no" | |
12014 | fi | |
12015 | rm -f conftest* | |
12016 | fi | |
12017 | ||
12018 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12019 | echo "$ac_t""yes" 1>&6 | |
12020 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12021 | cat >> confdefs.h <<EOF | |
12022 | #define $ac_tr_func 1 | |
12023 | EOF | |
12024 | ||
12025 | cat >> confdefs.h <<\EOF | |
12026 | #define HAVE_DLOPEN 1 | |
12027 | EOF | |
12028 | ||
12029 | HAVE_DL_FUNCS=1 | |
12030 | ||
12031 | else | |
12032 | echo "$ac_t""no" 1>&6 | |
12033 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
360d6699 | 12034 | echo "configure:12035: checking for dlopen in -ldl" >&5 |
10f2d63a VZ |
12035 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
12036 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12037 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12038 | else | |
12039 | ac_save_LIBS="$LIBS" | |
12040 | LIBS="-ldl $LIBS" | |
12041 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 12042 | #line 12043 "configure" |
10f2d63a VZ |
12043 | #include "confdefs.h" |
12044 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12045 | /* We use char because int might match the return type of a gcc2 | |
12046 | builtin and then its argument prototype would still apply. */ | |
12047 | char dlopen(); | |
12048 | ||
12049 | int main() { | |
12050 | dlopen() | |
12051 | ; return 0; } | |
12052 | EOF | |
360d6699 | 12053 | if { (eval echo configure:12054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
12054 | rm -rf conftest* |
12055 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12056 | else | |
12057 | echo "configure: failed program was:" >&5 | |
12058 | cat conftest.$ac_ext >&5 | |
12059 | rm -rf conftest* | |
12060 | eval "ac_cv_lib_$ac_lib_var=no" | |
12061 | fi | |
12062 | rm -f conftest* | |
12063 | LIBS="$ac_save_LIBS" | |
12064 | ||
12065 | fi | |
12066 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12067 | echo "$ac_t""yes" 1>&6 | |
12068 | ||
12069 | cat >> confdefs.h <<\EOF | |
12070 | #define HAVE_DLOPEN 1 | |
12071 | EOF | |
12072 | ||
12073 | HAVE_DL_FUNCS=1 | |
12074 | LIBS="$LIBS -ldl" | |
12075 | ||
12076 | else | |
12077 | echo "$ac_t""no" 1>&6 | |
12078 | ||
12079 | for ac_func in shl_load | |
12080 | do | |
12081 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
360d6699 | 12082 | echo "configure:12083: checking for $ac_func" >&5 |
10f2d63a VZ |
12083 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12084 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12085 | else | |
12086 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 12087 | #line 12088 "configure" |
10f2d63a VZ |
12088 | #include "confdefs.h" |
12089 | /* System header to define __stub macros and hopefully few prototypes, | |
12090 | which can conflict with char $ac_func(); below. */ | |
12091 | #include <assert.h> | |
12092 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12093 | /* We use char because int might match the return type of a gcc2 | |
12094 | builtin and then its argument prototype would still apply. */ | |
12095 | char $ac_func(); | |
12096 | ||
12097 | int main() { | |
12098 | ||
12099 | /* The GNU C library defines this for functions which it implements | |
12100 | to always fail with ENOSYS. Some functions are actually named | |
12101 | something starting with __ and the normal name is an alias. */ | |
12102 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12103 | choke me | |
12104 | #else | |
e694c22c | 12105 | $ac_func(); |
10f2d63a VZ |
12106 | #endif |
12107 | ||
12108 | ; return 0; } | |
12109 | EOF | |
360d6699 | 12110 | if { (eval echo configure:12111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
12111 | rm -rf conftest* |
12112 | eval "ac_cv_func_$ac_func=yes" | |
12113 | else | |
12114 | echo "configure: failed program was:" >&5 | |
12115 | cat conftest.$ac_ext >&5 | |
12116 | rm -rf conftest* | |
12117 | eval "ac_cv_func_$ac_func=no" | |
12118 | fi | |
12119 | rm -f conftest* | |
12120 | fi | |
12121 | ||
12122 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12123 | echo "$ac_t""yes" 1>&6 | |
12124 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12125 | cat >> confdefs.h <<EOF | |
12126 | #define $ac_tr_func 1 | |
12127 | EOF | |
12128 | ||
12129 | cat >> confdefs.h <<\EOF | |
12130 | #define HAVE_SHL_LOAD 1 | |
12131 | EOF | |
12132 | ||
12133 | HAVE_SHL_FUNCS=1 | |
12134 | ||
12135 | else | |
12136 | echo "$ac_t""no" 1>&6 | |
12137 | fi | |
12138 | done | |
12139 | ||
12140 | ||
12141 | fi | |
12142 | ||
12143 | ||
12144 | fi | |
12145 | done | |
12146 | ||
12147 | ||
12148 | if test "$HAVE_DL_FUNCS" = 0; then | |
12149 | if test "$HAVE_SHL_FUNCS" = 0; then | |
12150 | if test "$USE_UNIX" = 1; then | |
12151 | echo "configure: warning: "--with-dynlib and --with-odbc will be disabled due to missing shared library support"" 1>&2 | |
12152 | wxUSE_ODBC=no | |
12153 | wxUSE_DYNLIB_CLASS=no | |
12154 | else | |
12155 | echo "configure: warning: "Cannot check dynlib requirements on non-Unix platforms. dynlib remains enabled."" 1>&2 | |
12156 | fi | |
12157 | fi | |
12158 | fi | |
12159 | fi | |
12160 | ||
12161 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
12162 | cat >> confdefs.h <<\EOF | |
12163 | #define wxUSE_DYNLIB_CLASS 1 | |
12164 | EOF | |
12165 | ||
12166 | fi | |
12167 | ||
12168 | ||
12169 | if test "$wxUSE_UNICODE" = "yes" ; then | |
12170 | cat >> confdefs.h <<\EOF | |
12171 | #define wxUSE_UNICODE 1 | |
12172 | EOF | |
12173 | ||
12174 | fi | |
12175 | ||
12176 | if test "$wxUSE_WCSRTOMBS" = "yes" ; then | |
12177 | cat >> confdefs.h <<\EOF | |
12178 | #define wxUSE_WCSRTOMBS 1 | |
12179 | EOF | |
12180 | ||
12181 | fi | |
12182 | ||
12183 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
12184 | cat >> confdefs.h <<\EOF | |
12185 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
12186 | EOF | |
12187 | ||
12188 | fi | |
12189 | ||
12190 | ||
12191 | IODBC_C_SRC="" | |
12192 | if test "$wxUSE_ODBC" = "yes" ; then | |
12193 | cat >> confdefs.h <<\EOF | |
12194 | #define wxUSE_ODBC 1 | |
12195 | EOF | |
12196 | ||
12197 | WXODBCFLAG="-D_IODBC_" | |
12198 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
12199 | IODBCOBJS="\$(IODBC_OBJS)" | |
12200 | else | |
12201 | IODBCOBJS= | |
12202 | fi | |
12203 | ||
12204 | ||
12205 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
12206 | cat >> confdefs.h <<\EOF | |
12207 | #define wxUSE_POSTSCRIPT 1 | |
12208 | EOF | |
12209 | ||
12210 | fi | |
12211 | ||
12212 | cat >> confdefs.h <<\EOF | |
12213 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
12214 | EOF | |
12215 | ||
12216 | ||
12217 | cat >> confdefs.h <<\EOF | |
12218 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
12219 | EOF | |
12220 | ||
12221 | ||
12222 | ||
12223 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
12224 | cat >> confdefs.h <<\EOF | |
12225 | #define wxUSE_CONSTRAINTS 1 | |
12226 | EOF | |
12227 | ||
12228 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
12229 | fi | |
12230 | ||
12231 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
12232 | cat >> confdefs.h <<\EOF | |
12233 | #define wxUSE_MDI_ARCHITECTURE 1 | |
12234 | EOF | |
12235 | ||
12236 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" | |
12237 | fi | |
12238 | ||
12239 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
12240 | cat >> confdefs.h <<\EOF | |
12241 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
12242 | EOF | |
12243 | ||
12244 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
12245 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
12246 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
12247 | fi | |
12248 | fi | |
12249 | ||
12250 | if test "$wxUSE_HELP" = "yes"; then | |
12251 | cat >> confdefs.h <<\EOF | |
12252 | #define wxUSE_HELP 1 | |
12253 | EOF | |
12254 | ||
12255 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
12256 | fi | |
12257 | ||
12258 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
12259 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
12260 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 | |
12261 | else | |
12262 | cat >> confdefs.h <<\EOF | |
12263 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
12264 | EOF | |
12265 | ||
12266 | fi | |
12267 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
12268 | fi | |
12269 | ||
12270 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
12271 | cat >> confdefs.h <<\EOF | |
12272 | #define wxUSE_PROLOGIO 1 | |
12273 | EOF | |
12274 | ||
12275 | fi | |
12276 | ||
12277 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
12278 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
12279 | cat >> confdefs.h <<\EOF | |
12280 | #define wxUSE_RESOURCES 1 | |
12281 | EOF | |
12282 | ||
12283 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" | |
12284 | else | |
12285 | echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2 | |
12286 | fi | |
12287 | fi | |
12288 | ||
12289 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
12290 | cat >> confdefs.h <<\EOF | |
12291 | #define wxUSE_X_RESOURCES 1 | |
12292 | EOF | |
12293 | ||
12294 | fi | |
12295 | ||
12296 | ||
12297 | if test "$wxUSE_IPC" = "yes"; then | |
12298 | cat >> confdefs.h <<\EOF | |
12299 | #define wxUSE_IPC 1 | |
12300 | EOF | |
12301 | ||
12302 | fi | |
12303 | ||
12304 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
12305 | cat >> confdefs.h <<\EOF | |
12306 | #define wxUSE_CLIPBOARD 1 | |
12307 | EOF | |
12308 | ||
12309 | fi | |
12310 | ||
12311 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
12312 | if test "$wxUSE_GTK" = 1; then | |
12313 | if test "$WXGTK12" != 1; then | |
12314 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2 | |
12315 | wxUSE_DRAG_AND_DROP=no | |
12316 | fi | |
12317 | fi | |
12318 | ||
12319 | if test "$wxUSE_MOTIF" = 1; then | |
12320 | echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2 | |
12321 | wxUSE_DRAG_AND_DROP=no | |
12322 | fi | |
12323 | ||
12324 | if test "$USE_WIN32" = 1; then | |
12325 | for ac_hdr in ole2.h | |
12326 | do | |
12327 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
12328 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
360d6699 | 12329 | echo "configure:12330: checking for $ac_hdr" >&5 |
10f2d63a VZ |
12330 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12331 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12332 | else | |
12333 | cat > conftest.$ac_ext <<EOF | |
360d6699 | 12334 | #line 12335 "configure" |
10f2d63a VZ |
12335 | #include "confdefs.h" |
12336 | #include <$ac_hdr> | |
12337 | EOF | |
12338 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
360d6699 | 12339 | { (eval echo configure:12340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
12340 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12341 | if test -z "$ac_err"; then | |
12342 | rm -rf conftest* | |
12343 | eval "ac_cv_header_$ac_safe=yes" | |
12344 | else | |
12345 | echo "$ac_err" >&5 | |
12346 | echo "configure: failed program was:" >&5 | |
12347 | cat conftest.$ac_ext >&5 | |
12348 | rm -rf conftest* | |
12349 | eval "ac_cv_header_$ac_safe=no" | |
12350 | fi | |
12351 | rm -f conftest* | |
12352 | fi | |
12353 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12354 | echo "$ac_t""yes" 1>&6 | |
12355 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12356 | cat >> confdefs.h <<EOF | |
12357 | #define $ac_tr_hdr 1 | |
12358 | EOF | |
12359 | ||
12360 | else | |
12361 | echo "$ac_t""no" 1>&6 | |
12362 | fi | |
12363 | done | |
12364 | ||
12365 | if test "x$HAVE_OLE2_H" = x ; then | |
12366 | echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2 | |
12367 | wxUSE_DRAG_AND_DROP=no | |
12368 | fi | |
12369 | fi | |
12370 | ||
12371 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
12372 | cat >> confdefs.h <<\EOF | |
12373 | #define wxUSE_DRAG_AND_DROP 1 | |
12374 | EOF | |
12375 | ||
12376 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
12377 | fi | |
12378 | ||
12379 | fi | |
12380 | ||
12381 | if test "$wxUSE_SPLINES" = "yes" ; then | |
12382 | cat >> confdefs.h <<\EOF | |
12383 | #define wxUSE_SPLINES 1 | |
12384 | EOF | |
12385 | ||
12386 | fi | |
12387 | ||
12388 | ||
12389 | if test "$wxUSE_ACCEL" = "yes"; then | |
12390 | cat >> confdefs.h <<\EOF | |
12391 | #define wxUSE_ACCEL 1 | |
12392 | EOF | |
12393 | ||
12394 | fi | |
12395 | ||
12396 | if test "$wxUSE_CARET" = "yes"; then | |
12397 | cat >> confdefs.h <<\EOF | |
12398 | #define wxUSE_CARET 1 | |
12399 | EOF | |
12400 | ||
12401 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
12402 | fi | |
12403 | ||
12404 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
12405 | cat >> confdefs.h <<\EOF | |
12406 | #define wxUSE_COMBOBOX 1 | |
12407 | EOF | |
12408 | ||
12409 | fi | |
12410 | ||
12411 | if test "$wxUSE_CHOICE" = "yes"; then | |
12412 | cat >> confdefs.h <<\EOF | |
12413 | #define wxUSE_CHOICE 1 | |
12414 | EOF | |
12415 | ||
12416 | fi | |
12417 | ||
12418 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
12419 | cat >> confdefs.h <<\EOF | |
12420 | #define wxUSE_BMPBUTTON 1 | |
12421 | EOF | |
12422 | ||
12423 | fi | |
12424 | ||
12425 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
12426 | cat >> confdefs.h <<\EOF | |
12427 | #define wxUSE_CHECKBOX 1 | |
12428 | EOF | |
12429 | ||
12430 | fi | |
12431 | ||
12432 | if test "$wxUSE_CHECKLST" = "yes"; then | |
12433 | cat >> confdefs.h <<\EOF | |
12434 | #define wxUSE_CHECKLISTBOX 1 | |
12435 | EOF | |
12436 | ||
12437 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
12438 | fi | |
12439 | ||
12440 | if test "$wxUSE_GAUGE" = "yes"; then | |
12441 | cat >> confdefs.h <<\EOF | |
12442 | #define wxUSE_GAUGE 1 | |
12443 | EOF | |
12444 | ||
12445 | fi | |
12446 | ||
12447 | if test "$wxUSE_GRID" = "yes"; then | |
12448 | cat >> confdefs.h <<\EOF | |
12449 | #define wxUSE_GRID 1 | |
12450 | EOF | |
12451 | ||
12452 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
12453 | fi | |
12454 | ||
12455 | if test "$wxUSE_NEW_GRID" = "yes"; then | |
12456 | cat >> confdefs.h <<\EOF | |
12457 | #define wxUSE_NEW_GRID 1 | |
12458 | EOF | |
12459 | ||
12460 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" | |
12461 | fi | |
12462 | ||
12463 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
12464 | cat >> confdefs.h <<\EOF | |
12465 | #define wxUSE_IMAGLIST 1 | |
12466 | EOF | |
12467 | ||
12468 | fi | |
12469 | ||
12470 | if test "$wxUSE_LISTBOX" = "yes"; then | |
12471 | cat >> confdefs.h <<\EOF | |
12472 | #define wxUSE_LISTBOX 1 | |
12473 | EOF | |
12474 | ||
12475 | fi | |
12476 | ||
12477 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
12478 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
12479 | cat >> confdefs.h <<\EOF | |
12480 | #define wxUSE_LISTCTRL 1 | |
12481 | EOF | |
12482 | ||
12483 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
12484 | else | |
12485 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 | |
12486 | fi | |
12487 | fi | |
12488 | ||
12489 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
12490 | cat >> confdefs.h <<\EOF | |
12491 | #define wxUSE_NOTEBOOK 1 | |
12492 | EOF | |
12493 | ||
12494 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
12495 | fi | |
12496 | ||
12497 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
12498 | cat >> confdefs.h <<\EOF | |
12499 | #define wxUSE_RADIOBOX 1 | |
12500 | EOF | |
12501 | ||
12502 | fi | |
12503 | ||
12504 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
12505 | cat >> confdefs.h <<\EOF | |
12506 | #define wxUSE_RADIOBTN 1 | |
12507 | EOF | |
12508 | ||
12509 | fi | |
12510 | ||
12511 | if test "$wxUSE_SASH" = "yes"; then | |
12512 | cat >> confdefs.h <<\EOF | |
12513 | #define wxUSE_SASH 1 | |
12514 | EOF | |
12515 | ||
12516 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
12517 | fi | |
12518 | ||
12519 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
12520 | cat >> confdefs.h <<\EOF | |
12521 | #define wxUSE_SCROLLBAR 1 | |
12522 | EOF | |
12523 | ||
741a9306 | 12524 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
12525 | fi |
12526 | ||
12527 | if test "$wxUSE_SLIDER" = "yes"; then | |
12528 | cat >> confdefs.h <<\EOF | |
12529 | #define wxUSE_SLIDER 1 | |
12530 | EOF | |
12531 | ||
12532 | fi | |
12533 | ||
12534 | if test "$wxUSE_SPINBTN" = "yes"; then | |
12535 | cat >> confdefs.h <<\EOF | |
12536 | #define wxUSE_SPINBTN 1 | |
12537 | EOF | |
12538 | ||
12539 | fi | |
12540 | ||
56cfaa52 RR |
12541 | if test "$wxUSE_SPINCTRL" = "yes"; then |
12542 | cat >> confdefs.h <<\EOF | |
12543 | #define wxUSE_SPINCTRL 1 | |
12544 | EOF | |
12545 | ||
12546 | fi | |
12547 | ||
10f2d63a VZ |
12548 | if test "$wxUSE_SPLITTER" = "yes"; then |
12549 | cat >> confdefs.h <<\EOF | |
12550 | #define wxUSE_SPLITTER 1 | |
12551 | EOF | |
12552 | ||
12553 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
12554 | fi | |
12555 | ||
12556 | if test "$wxUSE_STATBMP" = "yes"; then | |
12557 | cat >> confdefs.h <<\EOF | |
12558 | #define wxUSE_STATBMP 1 | |
12559 | EOF | |
12560 | ||
12561 | fi | |
12562 | ||
12563 | if test "$wxUSE_STATBOX" = "yes"; then | |
12564 | cat >> confdefs.h <<\EOF | |
12565 | #define wxUSE_STATBOX 1 | |
12566 | EOF | |
12567 | ||
12568 | fi | |
12569 | ||
12570 | if test "$wxUSE_STATLINE" = "yes"; then | |
12571 | if test "$wxUSE_WINE" = 1 ; then | |
12572 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 | |
12573 | else | |
12574 | cat >> confdefs.h <<\EOF | |
12575 | #define wxUSE_STATLINE 1 | |
12576 | EOF | |
12577 | ||
12578 | fi | |
12579 | fi | |
12580 | ||
12581 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
12582 | cat >> confdefs.h <<\EOF | |
12583 | #define wxUSE_STATUSBAR 1 | |
12584 | EOF | |
12585 | ||
12586 | fi | |
12587 | ||
12588 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
12589 | cat >> confdefs.h <<\EOF | |
12590 | #define wxUSE_TAB_DIALOG 1 | |
12591 | EOF | |
12592 | ||
12593 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
12594 | fi | |
12595 | ||
360d6699 VZ |
12596 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
12597 | cat >> confdefs.h <<\EOF | |
12598 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
12599 | EOF | |
12600 | ||
12601 | wxUSE_TOOLBAR="yes" | |
12602 | fi | |
12603 | ||
10f2d63a VZ |
12604 | if test "$wxUSE_TOOLBAR" = "yes"; then |
12605 | cat >> confdefs.h <<\EOF | |
12606 | #define wxUSE_TOOLBAR 1 | |
12607 | EOF | |
12608 | ||
360d6699 VZ |
12609 | |
12610 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
12611 | wxUSE_TOOLBAR_NATIVE="yes" | |
12612 | fi | |
12613 | ||
10f2d63a VZ |
12614 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" |
12615 | fi | |
12616 | ||
360d6699 VZ |
12617 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
12618 | cat >> confdefs.h <<\EOF | |
12619 | #define wxUSE_TOOLBAR_NATIVE 1 | |
12620 | EOF | |
12621 | ||
12622 | fi | |
12623 | ||
10f2d63a VZ |
12624 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
12625 | if test "$wxUSE_MOTIF" = 1; then | |
12626 | echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2 | |
12627 | else | |
12628 | if test "$wxUSE_WINE" = 1; then | |
12629 | echo "configure: warning: wxTooltip not supported under WINE" 1>&2 | |
12630 | else | |
12631 | cat >> confdefs.h <<\EOF | |
12632 | #define wxUSE_TOOLTIPS 1 | |
12633 | EOF | |
12634 | ||
12635 | fi | |
12636 | fi | |
12637 | fi | |
12638 | ||
12639 | if test "$wxUSE_TREECTRL" = "yes"; then | |
12640 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
12641 | cat >> confdefs.h <<\EOF | |
12642 | #define wxUSE_TREECTRL 1 | |
12643 | EOF | |
12644 | ||
12645 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
12646 | else | |
12647 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 | |
12648 | fi | |
12649 | fi | |
12650 | ||
12651 | ||
12652 | ||
12653 | if test "$wxUSE_METAFILE" = "yes"; then | |
12654 | cat >> confdefs.h <<\EOF | |
12655 | #define wxUSE_METAFILE 1 | |
12656 | EOF | |
12657 | ||
12658 | fi | |
12659 | ||
12660 | if test "$wxUSE_DIRDLG" = "yes"; then | |
12661 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
12662 | echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2 | |
12663 | else | |
12664 | if test "$wxUSE_TREECTRL" != "yes"; then | |
12665 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
12666 | else | |
12667 | cat >> confdefs.h <<\EOF | |
12668 | #define wxUSE_DIRDLG 1 | |
12669 | EOF | |
12670 | ||
12671 | fi | |
12672 | fi | |
12673 | fi | |
12674 | ||
12675 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
12676 | cat >> confdefs.h <<\EOF | |
12677 | #define wxUSE_TEXTDLG 1 | |
12678 | EOF | |
12679 | ||
12680 | fi | |
12681 | ||
12682 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
12683 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
12684 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
12685 | else | |
12686 | cat >> confdefs.h <<\EOF | |
12687 | #define wxUSE_STARTUP_TIPS 1 | |
12688 | EOF | |
12689 | ||
12690 | fi | |
12691 | fi | |
12692 | ||
12693 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
12694 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
12695 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
12696 | else | |
12697 | cat >> confdefs.h <<\EOF | |
12698 | #define wxUSE_PROGRESSDLG 1 | |
12699 | EOF | |
12700 | ||
12701 | fi | |
12702 | fi | |
12703 | ||
12704 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
12705 | cat >> confdefs.h <<\EOF | |
12706 | #define wxUSE_MINIFRAME 1 | |
12707 | EOF | |
12708 | ||
12709 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
12710 | fi | |
12711 | ||
12712 | if test "$wxUSE_HTML" = "yes"; then | |
12713 | cat >> confdefs.h <<\EOF | |
12714 | #define wxUSE_HTML 1 | |
12715 | EOF | |
12716 | ||
12717 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
12718 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html" | |
12719 | fi | |
12720 | ||
12721 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
12722 | cat >> confdefs.h <<\EOF | |
12723 | #define wxUSE_VALIDATORS 1 | |
12724 | EOF | |
12725 | ||
12726 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
12727 | fi | |
12728 | ||
12729 | if test "$wxUSE_GIF" = "yes" ; then | |
12730 | cat >> confdefs.h <<\EOF | |
12731 | #define wxUSE_GIF 1 | |
12732 | EOF | |
12733 | ||
12734 | fi | |
12735 | ||
12736 | if test "$wxUSE_PCX" = "yes" ; then | |
12737 | cat >> confdefs.h <<\EOF | |
12738 | #define wxUSE_PCX 1 | |
12739 | EOF | |
12740 | ||
12741 | fi | |
12742 | ||
12743 | if test "$wxUSE_PNM" = "yes" ; then | |
12744 | cat >> confdefs.h <<\EOF | |
12745 | #define wxUSE_PNM 1 | |
12746 | EOF | |
12747 | ||
12748 | fi | |
12749 | ||
12750 | ||
aaa37c0d VZ |
12751 | OSINFO=`uname -s -r -m` |
12752 | OSINFO="\"$OSINFO\"" | |
12753 | cat >> confdefs.h <<EOF | |
12754 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
12755 | EOF | |
12756 | ||
12757 | ||
12758 | ||
10f2d63a VZ |
12759 | GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $LIBPNG_LINK $ZLIB_LINK $TOOLKIT_LINK" |
12760 | ||
c63c7106 | 12761 | EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK" |
10f2d63a VZ |
12762 | if test "$wxUSE_GUI" = "yes"; then |
12763 | EXTRA_LIBS="$EXTRA_LIBS $GUILIBS" | |
12764 | fi | |
12765 | ||
12766 | LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS" | |
12767 | ||
c7a2bf27 | 12768 | INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE" |
10f2d63a VZ |
12769 | |
12770 | if test "$GXX" = yes ; then | |
12771 | CXXWARNINGS="-Wall" | |
12772 | fi | |
12773 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" | |
12774 | ||
12775 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS | sed 's/ \\+/ /g'` | |
12776 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
12777 | ||
e694c22c VZ |
12778 | LDFLAGS="$LDFLAGS $PROFILE" |
12779 | ||
10f2d63a VZ |
12780 | if test "$wxUSE_GUI" = "yes"; then |
12781 | ||
12782 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS bombs controls dialogs drawing dynamic \ | |
741a9306 | 12783 | font forty fractal image minimal richedit wxpoem" |
10f2d63a VZ |
12784 | else |
12785 | SAMPLES_SUBDIRS="" | |
12786 | fi | |
12787 | ||
12788 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '`" | |
12789 | ||
12790 | ||
12791 | ||
12792 | ||
12793 | ||
12794 | ||
12795 | ||
12796 | ||
12797 | ||
12798 | ||
12799 | ||
12800 | ||
12801 | ||
12802 | ||
12803 | ||
12804 | ||
12805 | ||
12806 | ||
12807 | ||
12808 | ||
12809 | ||
12810 | ||
12811 | ||
12812 | ||
12813 | ||
12814 | ||
12815 | ||
12816 | ||
12817 | ||
12818 | ||
12819 | ||
12820 | ||
12821 | ||
12822 | ||
12823 | ||
12824 | ||
12825 | ||
12826 | ||
12827 | ||
12828 | ||
12829 | ||
12830 | ||
12831 | ||
12832 | ||
12833 | ||
12834 | ||
12835 | ||
12836 | ||
12837 | ||
12838 | ||
12839 | ||
12840 | ||
1d62a8b4 | 12841 | |
e694c22c | 12842 | |
10f2d63a VZ |
12843 | |
12844 | ||
12845 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
360d6699 | 12846 | echo "configure:12847: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
10f2d63a VZ |
12847 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
12848 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
12849 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12850 | else | |
12851 | cat > conftestmake <<\EOF | |
12852 | all: | |
12853 | @echo 'ac_maketemp="${MAKE}"' | |
12854 | EOF | |
12855 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
12856 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
12857 | if test -n "$ac_maketemp"; then | |
12858 | eval ac_cv_prog_make_${ac_make}_set=yes | |
12859 | else | |
12860 | eval ac_cv_prog_make_${ac_make}_set=no | |
12861 | fi | |
12862 | rm -f conftestmake | |
12863 | fi | |
12864 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
12865 | echo "$ac_t""yes" 1>&6 | |
12866 | SET_MAKE= | |
12867 | else | |
12868 | echo "$ac_t""no" 1>&6 | |
12869 | SET_MAKE="MAKE=${MAKE-make}" | |
12870 | fi | |
12871 | ||
12872 | ||
12873 | ||
12874 | ||
12875 | if test "${TOOLKIT_DIR}" = "msw" ; then | |
12876 | GL_TOOLKIT_DIR="win" | |
12877 | else | |
12878 | GL_TOOLKIT_DIR="${TOOLKIT_DIR}" | |
12879 | fi | |
12880 | ||
12881 | ||
12882 | trap '' 1 2 15 | |
12883 | cat > confcache <<\EOF | |
12884 | # This file is a shell script that caches the results of configure | |
12885 | # tests run on this system so they can be shared between configure | |
12886 | # scripts and configure runs. It is not useful on other systems. | |
12887 | # If it contains results you don't want to keep, you may remove or edit it. | |
12888 | # | |
12889 | # By default, configure uses ./config.cache as the cache file, | |
12890 | # creating it if it does not exist already. You can give configure | |
12891 | # the --cache-file=FILE option to use a different cache file; that is | |
12892 | # what configure does when it calls configure scripts in | |
12893 | # subdirectories, so they share the cache. | |
12894 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
12895 | # config.status only pays attention to the cache file if you give it the | |
12896 | # --recheck option to rerun configure. | |
12897 | # | |
12898 | EOF | |
12899 | # The following way of writing the cache mishandles newlines in values, | |
12900 | # but we know of no workaround that is simple, portable, and efficient. | |
12901 | # So, don't put newlines in cache variables' values. | |
12902 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
12903 | # and sets the high bit in the cache file unless we assign to the vars. | |
12904 | (set) 2>&1 | | |
12905 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
12906 | *ac_space=\ *) | |
12907 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
12908 | # turns \\\\ into \\, and sed turns \\ into \). | |
12909 | sed -n \ | |
12910 | -e "s/'/'\\\\''/g" \ | |
12911 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
12912 | ;; | |
12913 | *) | |
12914 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
12915 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
12916 | ;; | |
12917 | esac >> confcache | |
12918 | if cmp -s $cache_file confcache; then | |
12919 | : | |
12920 | else | |
12921 | if test -w $cache_file; then | |
12922 | echo "updating cache $cache_file" | |
12923 | cat confcache > $cache_file | |
12924 | else | |
12925 | echo "not updating unwritable cache $cache_file" | |
12926 | fi | |
12927 | fi | |
12928 | rm -f confcache | |
12929 | ||
12930 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
12931 | ||
12932 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
12933 | # Let make expand exec_prefix. | |
12934 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
12935 | ||
12936 | # Any assignment to VPATH causes Sun make to only execute | |
12937 | # the first set of double-colon rules, so remove it if not needed. | |
12938 | # If there is a colon in the path, we need to keep it. | |
12939 | if test "x$srcdir" = x.; then | |
12940 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
12941 | fi | |
12942 | ||
12943 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
12944 | ||
12945 | DEFS=-DHAVE_CONFIG_H | |
12946 | ||
12947 | # Without the "./", some shells look in PATH for config.status. | |
12948 | : ${CONFIG_STATUS=./config.status} | |
12949 | ||
12950 | echo creating $CONFIG_STATUS | |
12951 | rm -f $CONFIG_STATUS | |
12952 | cat > $CONFIG_STATUS <<EOF | |
12953 | #! /bin/sh | |
12954 | # Generated automatically by configure. | |
12955 | # Run this file to recreate the current configuration. | |
12956 | # This directory was configured as follows, | |
12957 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
12958 | # | |
12959 | # $0 $ac_configure_args | |
12960 | # | |
12961 | # Compiler output produced by configure, useful for debugging | |
12962 | # configure, is in ./config.log if it exists. | |
12963 | ||
12964 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
12965 | for ac_option | |
12966 | do | |
12967 | case "\$ac_option" in | |
12968 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
12969 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
12970 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
12971 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
e694c22c | 12972 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
10f2d63a VZ |
12973 | exit 0 ;; |
12974 | -help | --help | --hel | --he | --h) | |
12975 | echo "\$ac_cs_usage"; exit 0 ;; | |
12976 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
12977 | esac | |
12978 | done | |
12979 | ||
12980 | ac_given_srcdir=$srcdir | |
12981 | ac_given_INSTALL="$INSTALL" | |
12982 | ||
12983 | trap 'rm -fr `echo " | |
12984 | wx-config | |
12985 | src/make.env | |
12986 | src/makeprog.env | |
12987 | src/makelib.env | |
12988 | Makefile | |
12989 | samples/Makefile | |
12990 | samples/bombs/Makefile | |
12991 | samples/caret/Makefile | |
12992 | samples/checklst/Makefile | |
12993 | samples/config/Makefile | |
12994 | samples/controls/Makefile | |
b47c832e | 12995 | samples/console/Makefile |
10f2d63a VZ |
12996 | samples/db/Makefile |
12997 | samples/dialogs/Makefile | |
12998 | samples/docview/Makefile | |
12999 | samples/docvwmdi/Makefile | |
13000 | samples/dnd/Makefile | |
13001 | samples/drawing/Makefile | |
13002 | samples/forty/Makefile | |
678b92a9 | 13003 | samples/font/Makefile |
10f2d63a VZ |
13004 | samples/fractal/Makefile |
13005 | samples/image/Makefile | |
13006 | samples/internat/Makefile | |
13007 | samples/layout/Makefile | |
13008 | samples/listctrl/Makefile | |
13009 | samples/mdi/Makefile | |
13010 | samples/minifram/Makefile | |
13011 | samples/minimal/Makefile | |
13012 | samples/nettest/Makefile | |
13013 | samples/newgrid/Makefile | |
13014 | samples/notebook/Makefile | |
13015 | samples/png/Makefile | |
13016 | samples/printing/Makefile | |
13017 | samples/proplist/Makefile | |
13018 | samples/richedit/Makefile | |
13019 | samples/resource/Makefile | |
13020 | samples/sashtest/Makefile | |
13021 | samples/scroll/Makefile | |
13022 | samples/scrollsub/Makefile | |
13023 | samples/splitter/Makefile | |
13024 | samples/text/Makefile | |
13025 | samples/thread/Makefile | |
13026 | samples/toolbar/Makefile | |
13027 | samples/treectrl/Makefile | |
13028 | samples/typetest/Makefile | |
13029 | samples/validate/Makefile | |
13030 | samples/wxpoem/Makefile | |
13031 | samples/wxsocket/Makefile | |
13032 | samples/wizard/Makefile | |
13033 | samples/html/Makefile | |
13034 | samples/html/about/Makefile | |
13035 | samples/html/help/Makefile | |
13036 | samples/html/printing/Makefile | |
fc9c7c09 | 13037 | samples/html/helpview/Makefile |
10f2d63a VZ |
13038 | samples/html/test/Makefile |
13039 | samples/html/zip/Makefile | |
13040 | samples/html/virtual/Makefile | |
13041 | samples/html/widget/Makefile | |
13042 | utils/Makefile | |
13043 | utils/wxMMedia2/Makefile | |
13044 | utils/wxMMedia2/lib/Makefile | |
13045 | utils/wxMMedia2/sample/Makefile | |
13046 | utils/glcanvas/Makefile | |
13047 | utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile | |
13048 | utils/ogl/Makefile | |
13049 | utils/ogl/src/Makefile | |
13050 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
13051 | EOF | |
13052 | cat >> $CONFIG_STATUS <<EOF | |
13053 | ||
13054 | # Protect against being on the right side of a sed subst in config.status. | |
13055 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
13056 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
13057 | $ac_vpsub | |
13058 | $extrasub | |
13059 | s%@SHELL@%$SHELL%g | |
13060 | s%@CFLAGS@%$CFLAGS%g | |
13061 | s%@CPPFLAGS@%$CPPFLAGS%g | |
13062 | s%@CXXFLAGS@%$CXXFLAGS%g | |
13063 | s%@FFLAGS@%$FFLAGS%g | |
13064 | s%@DEFS@%$DEFS%g | |
13065 | s%@LDFLAGS@%$LDFLAGS%g | |
13066 | s%@LIBS@%$LIBS%g | |
13067 | s%@exec_prefix@%$exec_prefix%g | |
13068 | s%@prefix@%$prefix%g | |
13069 | s%@program_transform_name@%$program_transform_name%g | |
13070 | s%@bindir@%$bindir%g | |
13071 | s%@sbindir@%$sbindir%g | |
13072 | s%@libexecdir@%$libexecdir%g | |
13073 | s%@datadir@%$datadir%g | |
13074 | s%@sysconfdir@%$sysconfdir%g | |
13075 | s%@sharedstatedir@%$sharedstatedir%g | |
13076 | s%@localstatedir@%$localstatedir%g | |
13077 | s%@libdir@%$libdir%g | |
13078 | s%@includedir@%$includedir%g | |
13079 | s%@oldincludedir@%$oldincludedir%g | |
13080 | s%@infodir@%$infodir%g | |
13081 | s%@mandir@%$mandir%g | |
13082 | s%@host@%$host%g | |
13083 | s%@host_alias@%$host_alias%g | |
13084 | s%@host_cpu@%$host_cpu%g | |
13085 | s%@host_vendor@%$host_vendor%g | |
13086 | s%@host_os@%$host_os%g | |
13087 | s%@target@%$target%g | |
13088 | s%@target_alias@%$target_alias%g | |
13089 | s%@target_cpu@%$target_cpu%g | |
13090 | s%@target_vendor@%$target_vendor%g | |
13091 | s%@target_os@%$target_os%g | |
13092 | s%@build@%$build%g | |
13093 | s%@build_alias@%$build_alias%g | |
13094 | s%@build_cpu@%$build_cpu%g | |
13095 | s%@build_vendor@%$build_vendor%g | |
13096 | s%@build_os@%$build_os%g | |
13097 | s%@CC@%$CC%g | |
13098 | s%@CPP@%$CPP%g | |
13099 | s%@CXX@%$CXX%g | |
13100 | s%@CXXCPP@%$CXXCPP%g | |
13101 | s%@RANLIB@%$RANLIB%g | |
13102 | s%@AR@%$AR%g | |
13103 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
13104 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
13105 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
13106 | s%@STRIP@%$STRIP%g | |
13107 | s%@YACC@%$YACC%g | |
13108 | s%@LEX@%$LEX%g | |
13109 | s%@LEXLIB@%$LEXLIB%g | |
13110 | s%@LN_S@%$LN_S%g | |
13111 | s%@GTK_CONFIG@%$GTK_CONFIG%g | |
13112 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g | |
13113 | s%@GTK_LIBS@%$GTK_LIBS%g | |
ab9b9eab VZ |
13114 | s%@X_CFLAGS@%$X_CFLAGS%g |
13115 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
13116 | s%@X_LIBS@%$X_LIBS%g | |
13117 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
10f2d63a VZ |
13118 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g |
13119 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
13120 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
13121 | s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g | |
13122 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
13123 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
13124 | s%@WX_LIBRARY@%$WX_LIBRARY%g | |
13125 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
13126 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
13127 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
13128 | s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g | |
13129 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g | |
13130 | s%@WX_ALL@%$WX_ALL%g | |
13131 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
13132 | s%@SHARED_LD@%$SHARED_LD%g | |
13133 | s%@PIC_FLAG@%$PIC_FLAG%g | |
13134 | s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g | |
1d62a8b4 | 13135 | s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g |
10f2d63a VZ |
13136 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g |
13137 | s%@TOOLKIT@%$TOOLKIT%g | |
13138 | s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g | |
13139 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
13140 | s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g | |
13141 | s%@GUIHEADERS@%$GUIHEADERS%g | |
13142 | s%@GUIOBJS@%$GUIOBJS%g | |
13143 | s%@COMMONOBJS@%$COMMONOBJS%g | |
13144 | s%@GENERICOBJS@%$GENERICOBJS%g | |
13145 | s%@GUIDEPS@%$GUIDEPS%g | |
13146 | s%@COMMONDEPS@%$COMMONDEPS%g | |
13147 | s%@GENERICDEPS@%$GENERICDEPS%g | |
13148 | s%@IODBCOBJS@%$IODBCOBJS%g | |
13149 | s%@UNIXOBJS@%$UNIXOBJS%g | |
13150 | s%@UNIXDEPS@%$UNIXDEPS%g | |
13151 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
13152 | s%@ALL_DEPFILES@%$ALL_DEPFILES%g | |
13153 | s%@ALL_HEADERS@%$ALL_HEADERS%g | |
13154 | s%@GUIDIST@%$GUIDIST%g | |
13155 | s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g | |
13156 | s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g | |
13157 | s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g | |
13158 | s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g | |
13159 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g | |
13160 | s%@USER_SUBDIRS@%$USER_SUBDIRS%g | |
13161 | s%@EXTRA_LIBS@%$EXTRA_LIBS%g | |
13162 | s%@LD_LIBS@%$LD_LIBS%g | |
13163 | s%@SET_MAKE@%$SET_MAKE%g | |
13164 | s%@GL_TOOLKIT_DIR@%$GL_TOOLKIT_DIR%g | |
13165 | ||
13166 | CEOF | |
13167 | EOF | |
13168 | ||
13169 | cat >> $CONFIG_STATUS <<\EOF | |
13170 | ||
13171 | # Split the substitutions into bite-sized pieces for seds with | |
13172 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
13173 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
13174 | ac_file=1 # Number of current file. | |
13175 | ac_beg=1 # First line for current file. | |
13176 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
13177 | ac_more_lines=: | |
13178 | ac_sed_cmds="" | |
13179 | while $ac_more_lines; do | |
13180 | if test $ac_beg -gt 1; then | |
13181 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
13182 | else | |
13183 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
13184 | fi | |
13185 | if test ! -s conftest.s$ac_file; then | |
13186 | ac_more_lines=false | |
13187 | rm -f conftest.s$ac_file | |
13188 | else | |
13189 | if test -z "$ac_sed_cmds"; then | |
13190 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
13191 | else | |
13192 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
13193 | fi | |
13194 | ac_file=`expr $ac_file + 1` | |
13195 | ac_beg=$ac_end | |
13196 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
13197 | fi | |
13198 | done | |
13199 | if test -z "$ac_sed_cmds"; then | |
13200 | ac_sed_cmds=cat | |
13201 | fi | |
13202 | EOF | |
13203 | ||
13204 | cat >> $CONFIG_STATUS <<EOF | |
13205 | ||
13206 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
13207 | src/make.env | |
13208 | src/makeprog.env | |
13209 | src/makelib.env | |
13210 | Makefile | |
13211 | samples/Makefile | |
13212 | samples/bombs/Makefile | |
13213 | samples/caret/Makefile | |
13214 | samples/checklst/Makefile | |
13215 | samples/config/Makefile | |
13216 | samples/controls/Makefile | |
b47c832e | 13217 | samples/console/Makefile |
10f2d63a VZ |
13218 | samples/db/Makefile |
13219 | samples/dialogs/Makefile | |
13220 | samples/docview/Makefile | |
13221 | samples/docvwmdi/Makefile | |
13222 | samples/dnd/Makefile | |
13223 | samples/drawing/Makefile | |
13224 | samples/forty/Makefile | |
678b92a9 | 13225 | samples/font/Makefile |
10f2d63a VZ |
13226 | samples/fractal/Makefile |
13227 | samples/image/Makefile | |
13228 | samples/internat/Makefile | |
13229 | samples/layout/Makefile | |
13230 | samples/listctrl/Makefile | |
13231 | samples/mdi/Makefile | |
13232 | samples/minifram/Makefile | |
13233 | samples/minimal/Makefile | |
13234 | samples/nettest/Makefile | |
13235 | samples/newgrid/Makefile | |
13236 | samples/notebook/Makefile | |
13237 | samples/png/Makefile | |
13238 | samples/printing/Makefile | |
13239 | samples/proplist/Makefile | |
13240 | samples/richedit/Makefile | |
13241 | samples/resource/Makefile | |
13242 | samples/sashtest/Makefile | |
13243 | samples/scroll/Makefile | |
13244 | samples/scrollsub/Makefile | |
13245 | samples/splitter/Makefile | |
13246 | samples/text/Makefile | |
13247 | samples/thread/Makefile | |
13248 | samples/toolbar/Makefile | |
13249 | samples/treectrl/Makefile | |
13250 | samples/typetest/Makefile | |
13251 | samples/validate/Makefile | |
13252 | samples/wxpoem/Makefile | |
13253 | samples/wxsocket/Makefile | |
13254 | samples/wizard/Makefile | |
13255 | samples/html/Makefile | |
13256 | samples/html/about/Makefile | |
13257 | samples/html/help/Makefile | |
13258 | samples/html/printing/Makefile | |
fc9c7c09 | 13259 | samples/html/helpview/Makefile |
10f2d63a VZ |
13260 | samples/html/test/Makefile |
13261 | samples/html/zip/Makefile | |
13262 | samples/html/virtual/Makefile | |
13263 | samples/html/widget/Makefile | |
13264 | utils/Makefile | |
13265 | utils/wxMMedia2/Makefile | |
13266 | utils/wxMMedia2/lib/Makefile | |
13267 | utils/wxMMedia2/sample/Makefile | |
13268 | utils/glcanvas/Makefile | |
13269 | utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile | |
13270 | utils/ogl/Makefile | |
13271 | utils/ogl/src/Makefile | |
13272 | "} | |
13273 | EOF | |
13274 | cat >> $CONFIG_STATUS <<\EOF | |
13275 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
13276 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
13277 | case "$ac_file" in | |
13278 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
13279 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
13280 | *) ac_file_in="${ac_file}.in" ;; | |
13281 | esac | |
13282 | ||
13283 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
13284 | ||
13285 | # Remove last slash and all that follows it. Not all systems have dirname. | |
13286 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
13287 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
13288 | # The file is in a subdirectory. | |
13289 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
13290 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
13291 | # A "../" for each directory in $ac_dir_suffix. | |
13292 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
13293 | else | |
13294 | ac_dir_suffix= ac_dots= | |
13295 | fi | |
13296 | ||
13297 | case "$ac_given_srcdir" in | |
13298 | .) srcdir=. | |
13299 | if test -z "$ac_dots"; then top_srcdir=. | |
13300 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
13301 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
13302 | *) # Relative path. | |
13303 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
13304 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
13305 | esac | |
13306 | ||
13307 | case "$ac_given_INSTALL" in | |
13308 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
13309 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
13310 | esac | |
13311 | ||
13312 | echo creating "$ac_file" | |
13313 | rm -f "$ac_file" | |
13314 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
13315 | case "$ac_file" in | |
13316 | *Makefile*) ac_comsub="1i\\ | |
13317 | # $configure_input" ;; | |
13318 | *) ac_comsub= ;; | |
13319 | esac | |
13320 | ||
13321 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
13322 | sed -e "$ac_comsub | |
13323 | s%@configure_input@%$configure_input%g | |
13324 | s%@srcdir@%$srcdir%g | |
13325 | s%@top_srcdir@%$top_srcdir%g | |
13326 | s%@INSTALL@%$INSTALL%g | |
13327 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
13328 | fi; done | |
13329 | rm -f conftest.s* | |
13330 | ||
13331 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
13332 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
13333 | # | |
13334 | # ac_d sets the value in "#define NAME VALUE" lines. | |
13335 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
13336 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
13337 | ac_dC='\3' | |
13338 | ac_dD='%g' | |
13339 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
13340 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
13341 | ac_uB='\([ ]\)%\1#\2define\3' | |
13342 | ac_uC=' ' | |
13343 | ac_uD='\4%g' | |
13344 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
13345 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
13346 | ac_eB='$%\1#\2define\3' | |
13347 | ac_eC=' ' | |
13348 | ac_eD='%g' | |
13349 | ||
13350 | if test "${CONFIG_HEADERS+set}" != set; then | |
13351 | EOF | |
13352 | cat >> $CONFIG_STATUS <<EOF | |
13353 | CONFIG_HEADERS="setup.h:setup.h.in" | |
13354 | EOF | |
13355 | cat >> $CONFIG_STATUS <<\EOF | |
13356 | fi | |
13357 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
13358 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
13359 | case "$ac_file" in | |
13360 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
13361 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
13362 | *) ac_file_in="${ac_file}.in" ;; | |
13363 | esac | |
13364 | ||
13365 | echo creating $ac_file | |
13366 | ||
13367 | rm -f conftest.frag conftest.in conftest.out | |
13368 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
13369 | cat $ac_file_inputs > conftest.in | |
13370 | ||
13371 | EOF | |
13372 | ||
13373 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
13374 | # the proper values into config.h.in to produce config.h. And first: | |
13375 | # Protect against being on the right side of a sed subst in config.status. | |
13376 | # Protect against being in an unquoted here document in config.status. | |
13377 | rm -f conftest.vals | |
13378 | cat > conftest.hdr <<\EOF | |
13379 | s/[\\&%]/\\&/g | |
13380 | s%[\\$`]%\\&%g | |
13381 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
13382 | s%ac_d%ac_u%gp | |
13383 | s%ac_u%ac_e%gp | |
13384 | EOF | |
13385 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
13386 | rm -f conftest.hdr | |
13387 | ||
13388 | # This sed command replaces #undef with comments. This is necessary, for | |
13389 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
13390 | # on some systems where configure will not decide to define it. | |
13391 | cat >> conftest.vals <<\EOF | |
13392 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
13393 | EOF | |
13394 | ||
13395 | # Break up conftest.vals because some shells have a limit on | |
13396 | # the size of here documents, and old seds have small limits too. | |
13397 | ||
13398 | rm -f conftest.tail | |
13399 | while : | |
13400 | do | |
13401 | ac_lines=`grep -c . conftest.vals` | |
13402 | # grep -c gives empty output for an empty file on some AIX systems. | |
13403 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
13404 | # Write a limited-size here document to conftest.frag. | |
13405 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
13406 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
13407 | echo 'CEOF | |
13408 | sed -f conftest.frag conftest.in > conftest.out | |
13409 | rm -f conftest.in | |
13410 | mv conftest.out conftest.in | |
13411 | ' >> $CONFIG_STATUS | |
13412 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
13413 | rm -f conftest.vals | |
13414 | mv conftest.tail conftest.vals | |
13415 | done | |
13416 | rm -f conftest.vals | |
13417 | ||
13418 | cat >> $CONFIG_STATUS <<\EOF | |
13419 | rm -f conftest.frag conftest.h | |
13420 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
13421 | cat conftest.in >> conftest.h | |
13422 | rm -f conftest.in | |
13423 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
13424 | echo "$ac_file is unchanged" | |
13425 | rm -f conftest.h | |
13426 | else | |
13427 | # Remove last slash and all that follows it. Not all systems have dirname. | |
13428 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
13429 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
13430 | # The file is in a subdirectory. | |
13431 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
13432 | fi | |
13433 | rm -f $ac_file | |
13434 | mv conftest.h $ac_file | |
13435 | fi | |
13436 | fi; done | |
13437 | ||
13438 | EOF | |
13439 | cat >> $CONFIG_STATUS <<EOF | |
13440 | ||
13441 | TOOLKIT_DIR="${TOOLKIT_DIR}" | |
13442 | ||
13443 | ||
13444 | EOF | |
13445 | cat >> $CONFIG_STATUS <<\EOF | |
13446 | ||
13447 | chmod +x wx-config | |
13448 | if test ! -d include; then | |
13449 | mkdir include | |
13450 | fi | |
13451 | if test ! -d include/wx; then | |
13452 | mkdir include/wx | |
13453 | fi | |
13454 | if test ! -d include/wx/${TOOLKIT_DIR}; then | |
13455 | mkdir include/wx/${TOOLKIT_DIR} | |
13456 | fi | |
afc31813 VZ |
13457 | if test -f setup.h; then |
13458 | mv -f setup.h include/wx/${TOOLKIT_DIR}/setup.h | |
13459 | fi | |
10f2d63a VZ |
13460 | |
13461 | exit 0 | |
13462 | EOF | |
13463 | chmod +x $CONFIG_STATUS | |
13464 | rm -fr confdefs* $ac_clean_files | |
13465 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
13466 | ||
13467 |