]>
Commit | Line | Data |
---|---|---|
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 | ||
36 | ||
37 | ||
38 | ||
39 | ||
40 | # Guess values for system-dependent variables and create Makefiles. | |
41 | # Generated automatically using autoconf version 2.13 | |
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-pm use OS/2 Presentation Manager" | |
65 | ac_help="$ac_help | |
66 | --with-gtk-prefix=PFX Prefix where GTK is installed" | |
67 | ac_help="$ac_help | |
68 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed" | |
69 | ac_help="$ac_help | |
70 | --with-libpng use libpng (PNG image format)" | |
71 | ac_help="$ac_help | |
72 | --with-libjpeg use libjpeg (JPEG file format)" | |
73 | ac_help="$ac_help | |
74 | --with-libtiff use libtiff (TIFF file format)" | |
75 | ac_help="$ac_help | |
76 | --with-opengl use OpenGL (or Mesa)" | |
77 | ac_help="$ac_help | |
78 | --with-dmalloc use dmalloc library (www.letters.com/dmalloc)" | |
79 | ac_help="$ac_help | |
80 | --with-zlib use zlib for LZW compression" | |
81 | ac_help="$ac_help | |
82 | --with-odbc use the IODBC and wxODBC classes" | |
83 | ac_help="$ac_help | |
84 | --enable-shared create shared library code" | |
85 | ac_help="$ac_help | |
86 | --enable-optimise create optimised code" | |
87 | ac_help="$ac_help | |
88 | --enable-debug same as debug_flag and debug_info" | |
89 | ac_help="$ac_help | |
90 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" | |
91 | ac_help="$ac_help | |
92 | --enable-debug_info create code with debugging information" | |
93 | ac_help="$ac_help | |
94 | --enable-debug_gdb create code with extra GDB debugging information" | |
95 | ac_help="$ac_help | |
96 | --enable-debug_cntxt use wxDebugContext" | |
97 | ac_help="$ac_help | |
98 | --enable-mem_tracing create code with memory tracing" | |
99 | ac_help="$ac_help | |
100 | --enable-profile create code with profiling information" | |
101 | ac_help="$ac_help | |
102 | --enable-no_rtti create code without RTTI information" | |
103 | ac_help="$ac_help | |
104 | --enable-no_exceptions create code without exceptions information" | |
105 | ac_help="$ac_help | |
106 | --enable-permissive compile code disregarding strict ANSI" | |
107 | ac_help="$ac_help | |
108 | --enable-no_deps create code without dependency information" | |
109 | ac_help="$ac_help | |
110 | --enable-intl use internationalization system" | |
111 | ac_help="$ac_help | |
112 | --enable-config use wxConfig (and derived) classes" | |
113 | ac_help="$ac_help | |
114 | --enable-sockets use socket/network classes" | |
115 | ac_help="$ac_help | |
116 | --enable-dialupman use dialup network classes" | |
117 | ac_help="$ac_help | |
118 | --enable-ipc use interprocess communication (wxSocket etc.)" | |
119 | ac_help="$ac_help | |
120 | --enable-apple_ieee use the Apple IEEE codec" | |
121 | ac_help="$ac_help | |
122 | --enable-timedate use date/time classes" | |
123 | ac_help="$ac_help | |
124 | --enable-wave use wxWave class" | |
125 | ac_help="$ac_help | |
126 | --enable-fraction use wxFraction class" | |
127 | ac_help="$ac_help | |
128 | --enable-dynlib use wxLibrary class for DLL loading" | |
129 | ac_help="$ac_help | |
130 | --enable-longlong use wxLongLong class" | |
131 | ac_help="$ac_help | |
132 | --enable-log use logging system" | |
133 | ac_help="$ac_help | |
134 | --enable-streams use wxStream etc classes" | |
135 | ac_help="$ac_help | |
136 | --enable-file use wxFile classes" | |
137 | ac_help="$ac_help | |
138 | --enable-textfile use wxTextFile classes" | |
139 | ac_help="$ac_help | |
140 | --enable-unicode compile wxString with Unicode support" | |
141 | ac_help="$ac_help | |
142 | --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs" | |
143 | ac_help="$ac_help | |
144 | --enable-wxprintfv use wxWindows implementation of vprintf()" | |
145 | ac_help="$ac_help | |
146 | --enable-joystick compile in joystick support (Linux only)" | |
147 | ac_help="$ac_help | |
148 | --enable-std_iostreams use standard C++ stream classes" | |
149 | ac_help="$ac_help | |
150 | --enable-fs_inet use virtual HTTP/FTP filesystems" | |
151 | ac_help="$ac_help | |
152 | --enable-fs_zip use virtual ZIP filesystems" | |
153 | ac_help="$ac_help | |
154 | --enable-zipstream use wxZipInputStream" | |
155 | ac_help="$ac_help | |
156 | --enable-threads use threads" | |
157 | ac_help="$ac_help | |
158 | --enable-serial use class serialization" | |
159 | ac_help="$ac_help | |
160 | --enable-docview use document view architecture" | |
161 | ac_help="$ac_help | |
162 | --enable-help use help (using external browser at present)" | |
163 | ac_help="$ac_help | |
164 | --enable-constraints use layout-constraints system" | |
165 | ac_help="$ac_help | |
166 | --enable-printarch use printing architecture" | |
167 | ac_help="$ac_help | |
168 | --enable-mdi use multiple document interface architecture" | |
169 | ac_help="$ac_help | |
170 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" | |
171 | ac_help="$ac_help | |
172 | --enable-prologio use Prolog IO library" | |
173 | ac_help="$ac_help | |
174 | --enable-resources use wxWindows resources" | |
175 | ac_help="$ac_help | |
176 | --enable-xresources use X resources for save (default for gtk+)" | |
177 | ac_help="$ac_help | |
178 | --enable-clipboard use wxClipboard classes" | |
179 | ac_help="$ac_help | |
180 | --enable-dnd use Drag'n'Drop classes" | |
181 | ac_help="$ac_help | |
182 | --enable-wxtree make wxTree library" | |
183 | ac_help="$ac_help | |
184 | --enable-controls use all usual controls" | |
185 | ac_help="$ac_help | |
186 | --enable-accel use accelerators" | |
187 | ac_help="$ac_help | |
188 | --enable-caret use wxCaret class" | |
189 | ac_help="$ac_help | |
190 | --enable-bmpbutton use wxBitmapButton class" | |
191 | ac_help="$ac_help | |
192 | --enable-checkbox use wxCheckBox class" | |
193 | ac_help="$ac_help | |
194 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" | |
195 | ac_help="$ac_help | |
196 | --enable-choice use wxChoice class" | |
197 | ac_help="$ac_help | |
198 | --enable-combobox use wxComboBox classes" | |
199 | ac_help="$ac_help | |
200 | --enable-gauge use wxGauge class" | |
201 | ac_help="$ac_help | |
202 | --enable-grid use wxGrid class" | |
203 | ac_help="$ac_help | |
204 | --enable-newgrid use new wxGrid class" | |
205 | ac_help="$ac_help | |
206 | --enable-imaglist use wxImageList class" | |
207 | ac_help="$ac_help | |
208 | --enable-listbox use wxListBox class" | |
209 | ac_help="$ac_help | |
210 | --enable-listctrl use wxListCtrl class" | |
211 | ac_help="$ac_help | |
212 | --enable-notebook use wxNotebook class" | |
213 | ac_help="$ac_help | |
214 | --enable-radiobox use wxRadioBox class" | |
215 | ac_help="$ac_help | |
216 | --enable-radiobtn use wxRadioButton class" | |
217 | ac_help="$ac_help | |
218 | --enable-sash use wxSashWindow class" | |
219 | ac_help="$ac_help | |
220 | --enable-scrollbar use wxScrollBar class and scrollable windows" | |
221 | ac_help="$ac_help | |
222 | --enable-slider use wxSlider class" | |
223 | ac_help="$ac_help | |
224 | --enable-spinbtn use wxSpinButton class" | |
225 | ac_help="$ac_help | |
226 | --enable-spinctrl use wxSpinCtrl class" | |
227 | ac_help="$ac_help | |
228 | --enable-splitter use wxSplitterWindow class" | |
229 | ac_help="$ac_help | |
230 | --enable-statbmp use wxStaticBitmap class" | |
231 | ac_help="$ac_help | |
232 | --enable-statbox use wxStaticBox class" | |
233 | ac_help="$ac_help | |
234 | --enable-statline use wxStaticLine class" | |
235 | ac_help="$ac_help | |
236 | --enable-statusbar use wxStatusBar class" | |
237 | ac_help="$ac_help | |
238 | --enable-tabdialog use wxTabControl class" | |
239 | ac_help="$ac_help | |
240 | --enable-toolbar use wxToolBar class" | |
241 | ac_help="$ac_help | |
242 | --enable-tbarnative use native wxToolBar class" | |
243 | ac_help="$ac_help | |
244 | --enable-tbarsmpl use wxToolBarSimple class" | |
245 | ac_help="$ac_help | |
246 | --enable-treectrl use wxTreeCtrl class" | |
247 | ac_help="$ac_help | |
248 | --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)" | |
249 | ac_help="$ac_help | |
250 | --enable-dirdlg use wxDirDialog" | |
251 | ac_help="$ac_help | |
252 | --enable-textdlg use wxTextDialog" | |
253 | ac_help="$ac_help | |
254 | --enable-tipdlg use startup tips" | |
255 | ac_help="$ac_help | |
256 | --enable-progressdlg use wxProgressDialog" | |
257 | ac_help="$ac_help | |
258 | --enable-miniframe use wxMiniFrame class" | |
259 | ac_help="$ac_help | |
260 | --enable-html use wxHTML sub-library" | |
261 | ac_help="$ac_help | |
262 | --enable-tooltips use wxToolTip class" | |
263 | ac_help="$ac_help | |
264 | --enable-splines use spline drawing code" | |
265 | ac_help="$ac_help | |
266 | --enable-validators use wxValidator and derived classes" | |
267 | ac_help="$ac_help | |
268 | --enable-busyinfo use wxBusyInfo" | |
269 | ac_help="$ac_help | |
270 | --enable-gif use gif images (GIF file format)" | |
271 | ac_help="$ac_help | |
272 | --enable-pcx use pcx images (PCX file format)" | |
273 | ac_help="$ac_help | |
274 | --enable-pnm use pnm images (PNM file format)" | |
275 | ac_help="$ac_help | |
276 | --with-x use the X Window System" | |
277 | ||
278 | # Initialize some variables set by options. | |
279 | # The variables have the same names as the options, with | |
280 | # dashes changed to underlines. | |
281 | build=NONE | |
282 | cache_file=./config.cache | |
283 | exec_prefix=NONE | |
284 | host=NONE | |
285 | no_create= | |
286 | nonopt=NONE | |
287 | no_recursion= | |
288 | prefix=NONE | |
289 | program_prefix=NONE | |
290 | program_suffix=NONE | |
291 | program_transform_name=s,x,x, | |
292 | silent= | |
293 | site= | |
294 | srcdir= | |
295 | target=NONE | |
296 | verbose= | |
297 | x_includes=NONE | |
298 | x_libraries=NONE | |
299 | bindir='${exec_prefix}/bin' | |
300 | sbindir='${exec_prefix}/sbin' | |
301 | libexecdir='${exec_prefix}/libexec' | |
302 | datadir='${prefix}/share' | |
303 | sysconfdir='${prefix}/etc' | |
304 | sharedstatedir='${prefix}/com' | |
305 | localstatedir='${prefix}/var' | |
306 | libdir='${exec_prefix}/lib' | |
307 | includedir='${prefix}/include' | |
308 | oldincludedir='/usr/include' | |
309 | infodir='${prefix}/info' | |
310 | mandir='${prefix}/man' | |
311 | ||
312 | # Initialize some other variables. | |
313 | subdirs= | |
314 | MFLAGS= MAKEFLAGS= | |
315 | SHELL=${CONFIG_SHELL-/bin/sh} | |
316 | # Maximum number of lines to put in a shell here document. | |
317 | ac_max_here_lines=12 | |
318 | ||
319 | ac_prev= | |
320 | for ac_option | |
321 | do | |
322 | ||
323 | # If the previous option needs an argument, assign it. | |
324 | if test -n "$ac_prev"; then | |
325 | eval "$ac_prev=\$ac_option" | |
326 | ac_prev= | |
327 | continue | |
328 | fi | |
329 | ||
330 | case "$ac_option" in | |
331 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
332 | *) ac_optarg= ;; | |
333 | esac | |
334 | ||
335 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
336 | ||
337 | case "$ac_option" in | |
338 | ||
339 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
340 | ac_prev=bindir ;; | |
341 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
342 | bindir="$ac_optarg" ;; | |
343 | ||
344 | -build | --build | --buil | --bui | --bu) | |
345 | ac_prev=build ;; | |
346 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
347 | build="$ac_optarg" ;; | |
348 | ||
349 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
350 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
351 | ac_prev=cache_file ;; | |
352 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
353 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
354 | cache_file="$ac_optarg" ;; | |
355 | ||
356 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
357 | ac_prev=datadir ;; | |
358 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
359 | | --da=*) | |
360 | datadir="$ac_optarg" ;; | |
361 | ||
362 | -disable-* | --disable-*) | |
363 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
364 | # Reject names that are not valid shell variable names. | |
365 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
366 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
367 | fi | |
368 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
369 | eval "enable_${ac_feature}=no" ;; | |
370 | ||
371 | -enable-* | --enable-*) | |
372 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
373 | # Reject names that are not valid shell variable names. | |
374 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
375 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
376 | fi | |
377 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
378 | case "$ac_option" in | |
379 | *=*) ;; | |
380 | *) ac_optarg=yes ;; | |
381 | esac | |
382 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
383 | ||
384 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
385 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
386 | | --exec | --exe | --ex) | |
387 | ac_prev=exec_prefix ;; | |
388 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
389 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
390 | | --exec=* | --exe=* | --ex=*) | |
391 | exec_prefix="$ac_optarg" ;; | |
392 | ||
393 | -gas | --gas | --ga | --g) | |
394 | # Obsolete; use --with-gas. | |
395 | with_gas=yes ;; | |
396 | ||
397 | -help | --help | --hel | --he) | |
398 | # Omit some internal or obsolete options to make the list less imposing. | |
399 | # This message is too long to be a string in the A/UX 3.1 sh. | |
400 | cat << EOF | |
401 | Usage: configure [options] [host] | |
402 | Options: [defaults in brackets after descriptions] | |
403 | Configuration: | |
404 | --cache-file=FILE cache test results in FILE | |
405 | --help print this message | |
406 | --no-create do not create output files | |
407 | --quiet, --silent do not print \`checking...' messages | |
408 | --version print the version of autoconf that created configure | |
409 | Directory and file names: | |
410 | --prefix=PREFIX install architecture-independent files in PREFIX | |
411 | [$ac_default_prefix] | |
412 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
413 | [same as prefix] | |
414 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
415 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
416 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
417 | --datadir=DIR read-only architecture-independent data in DIR | |
418 | [PREFIX/share] | |
419 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
420 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
421 | [PREFIX/com] | |
422 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
423 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
424 | --includedir=DIR C header files in DIR [PREFIX/include] | |
425 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
426 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
427 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
428 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
429 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
430 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
431 | --program-transform-name=PROGRAM | |
432 | run sed PROGRAM on installed program names | |
433 | EOF | |
434 | cat << EOF | |
435 | Host type: | |
436 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
437 | --host=HOST configure for HOST [guessed] | |
438 | --target=TARGET configure for TARGET [TARGET=HOST] | |
439 | Features and packages: | |
440 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
441 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
442 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
443 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
444 | --x-includes=DIR X include files are in DIR | |
445 | --x-libraries=DIR X library files are in DIR | |
446 | EOF | |
447 | if test -n "$ac_help"; then | |
448 | echo "--enable and --with options recognized:$ac_help" | |
449 | fi | |
450 | exit 0 ;; | |
451 | ||
452 | -host | --host | --hos | --ho) | |
453 | ac_prev=host ;; | |
454 | -host=* | --host=* | --hos=* | --ho=*) | |
455 | host="$ac_optarg" ;; | |
456 | ||
457 | -includedir | --includedir | --includedi | --included | --include \ | |
458 | | --includ | --inclu | --incl | --inc) | |
459 | ac_prev=includedir ;; | |
460 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
461 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
462 | includedir="$ac_optarg" ;; | |
463 | ||
464 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
465 | ac_prev=infodir ;; | |
466 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
467 | infodir="$ac_optarg" ;; | |
468 | ||
469 | -libdir | --libdir | --libdi | --libd) | |
470 | ac_prev=libdir ;; | |
471 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
472 | libdir="$ac_optarg" ;; | |
473 | ||
474 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
475 | | --libexe | --libex | --libe) | |
476 | ac_prev=libexecdir ;; | |
477 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
478 | | --libexe=* | --libex=* | --libe=*) | |
479 | libexecdir="$ac_optarg" ;; | |
480 | ||
481 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
482 | | --localstate | --localstat | --localsta | --localst \ | |
483 | | --locals | --local | --loca | --loc | --lo) | |
484 | ac_prev=localstatedir ;; | |
485 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
486 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
487 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
488 | localstatedir="$ac_optarg" ;; | |
489 | ||
490 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
491 | ac_prev=mandir ;; | |
492 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
493 | mandir="$ac_optarg" ;; | |
494 | ||
495 | -nfp | --nfp | --nf) | |
496 | # Obsolete; use --without-fp. | |
497 | with_fp=no ;; | |
498 | ||
499 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
500 | | --no-cr | --no-c) | |
501 | no_create=yes ;; | |
502 | ||
503 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
504 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
505 | no_recursion=yes ;; | |
506 | ||
507 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
508 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
509 | | --oldin | --oldi | --old | --ol | --o) | |
510 | ac_prev=oldincludedir ;; | |
511 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
512 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
513 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
514 | oldincludedir="$ac_optarg" ;; | |
515 | ||
516 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
517 | ac_prev=prefix ;; | |
518 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
519 | prefix="$ac_optarg" ;; | |
520 | ||
521 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
522 | | --program-pre | --program-pr | --program-p) | |
523 | ac_prev=program_prefix ;; | |
524 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
525 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
526 | program_prefix="$ac_optarg" ;; | |
527 | ||
528 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
529 | | --program-suf | --program-su | --program-s) | |
530 | ac_prev=program_suffix ;; | |
531 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
532 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
533 | program_suffix="$ac_optarg" ;; | |
534 | ||
535 | -program-transform-name | --program-transform-name \ | |
536 | | --program-transform-nam | --program-transform-na \ | |
537 | | --program-transform-n | --program-transform- \ | |
538 | | --program-transform | --program-transfor \ | |
539 | | --program-transfo | --program-transf \ | |
540 | | --program-trans | --program-tran \ | |
541 | | --progr-tra | --program-tr | --program-t) | |
542 | ac_prev=program_transform_name ;; | |
543 | -program-transform-name=* | --program-transform-name=* \ | |
544 | | --program-transform-nam=* | --program-transform-na=* \ | |
545 | | --program-transform-n=* | --program-transform-=* \ | |
546 | | --program-transform=* | --program-transfor=* \ | |
547 | | --program-transfo=* | --program-transf=* \ | |
548 | | --program-trans=* | --program-tran=* \ | |
549 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
550 | program_transform_name="$ac_optarg" ;; | |
551 | ||
552 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
553 | | -silent | --silent | --silen | --sile | --sil) | |
554 | silent=yes ;; | |
555 | ||
556 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
557 | ac_prev=sbindir ;; | |
558 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
559 | | --sbi=* | --sb=*) | |
560 | sbindir="$ac_optarg" ;; | |
561 | ||
562 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
563 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
564 | | --sharedst | --shareds | --shared | --share | --shar \ | |
565 | | --sha | --sh) | |
566 | ac_prev=sharedstatedir ;; | |
567 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
568 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
569 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
570 | | --sha=* | --sh=*) | |
571 | sharedstatedir="$ac_optarg" ;; | |
572 | ||
573 | -site | --site | --sit) | |
574 | ac_prev=site ;; | |
575 | -site=* | --site=* | --sit=*) | |
576 | site="$ac_optarg" ;; | |
577 | ||
578 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
579 | ac_prev=srcdir ;; | |
580 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
581 | srcdir="$ac_optarg" ;; | |
582 | ||
583 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
584 | | --syscon | --sysco | --sysc | --sys | --sy) | |
585 | ac_prev=sysconfdir ;; | |
586 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
587 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
588 | sysconfdir="$ac_optarg" ;; | |
589 | ||
590 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
591 | ac_prev=target ;; | |
592 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
593 | target="$ac_optarg" ;; | |
594 | ||
595 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
596 | verbose=yes ;; | |
597 | ||
598 | -version | --version | --versio | --versi | --vers) | |
599 | echo "configure generated by autoconf version 2.13" | |
600 | exit 0 ;; | |
601 | ||
602 | -with-* | --with-*) | |
603 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
604 | # Reject names that are not valid shell variable names. | |
605 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
606 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
607 | fi | |
608 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
609 | case "$ac_option" in | |
610 | *=*) ;; | |
611 | *) ac_optarg=yes ;; | |
612 | esac | |
613 | eval "with_${ac_package}='$ac_optarg'" ;; | |
614 | ||
615 | -without-* | --without-*) | |
616 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
617 | # Reject names that are not valid shell variable names. | |
618 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
619 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
620 | fi | |
621 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
622 | eval "with_${ac_package}=no" ;; | |
623 | ||
624 | --x) | |
625 | # Obsolete; use --with-x. | |
626 | with_x=yes ;; | |
627 | ||
628 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
629 | | --x-incl | --x-inc | --x-in | --x-i) | |
630 | ac_prev=x_includes ;; | |
631 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
632 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
633 | x_includes="$ac_optarg" ;; | |
634 | ||
635 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
636 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
637 | ac_prev=x_libraries ;; | |
638 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
639 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
640 | x_libraries="$ac_optarg" ;; | |
641 | ||
642 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
643 | ;; | |
644 | ||
645 | *) | |
646 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
647 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
648 | fi | |
649 | if test "x$nonopt" != xNONE; then | |
650 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
651 | fi | |
652 | nonopt="$ac_option" | |
653 | ;; | |
654 | ||
655 | esac | |
656 | done | |
657 | ||
658 | if test -n "$ac_prev"; then | |
659 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
660 | fi | |
661 | ||
662 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
663 | ||
664 | # File descriptor usage: | |
665 | # 0 standard input | |
666 | # 1 file creation | |
667 | # 2 errors and warnings | |
668 | # 3 some systems may open it to /dev/tty | |
669 | # 4 used on the Kubota Titan | |
670 | # 6 checking for... messages and results | |
671 | # 5 compiler messages saved in config.log | |
672 | if test "$silent" = yes; then | |
673 | exec 6>/dev/null | |
674 | else | |
675 | exec 6>&1 | |
676 | fi | |
677 | exec 5>./config.log | |
678 | ||
679 | echo "\ | |
680 | This file contains any messages produced by compilers while | |
681 | running configure, to aid debugging if configure makes a mistake. | |
682 | " 1>&5 | |
683 | ||
684 | # Strip out --no-create and --no-recursion so they do not pile up. | |
685 | # Also quote any args containing shell metacharacters. | |
686 | ac_configure_args= | |
687 | for ac_arg | |
688 | do | |
689 | case "$ac_arg" in | |
690 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
691 | | --no-cr | --no-c) ;; | |
692 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
693 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
694 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
695 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
696 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
697 | esac | |
698 | done | |
699 | ||
700 | # NLS nuisances. | |
701 | # Only set these to C if already set. These must not be set unconditionally | |
702 | # because not all systems understand e.g. LANG=C (notably SCO). | |
703 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
704 | # Non-C LC_CTYPE values break the ctype check. | |
705 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
706 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
707 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
708 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
709 | ||
710 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
711 | rm -rf conftest* confdefs.h | |
712 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
713 | echo > confdefs.h | |
714 | ||
715 | # A filename unique to this package, relative to the directory that | |
716 | # configure is in, which we can look for to find out if srcdir is correct. | |
717 | ac_unique_file=wx-config.in | |
718 | ||
719 | # Find the source files, if location was not specified. | |
720 | if test -z "$srcdir"; then | |
721 | ac_srcdir_defaulted=yes | |
722 | # Try the directory containing this script, then its parent. | |
723 | ac_prog=$0 | |
724 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
725 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
726 | srcdir=$ac_confdir | |
727 | if test ! -r $srcdir/$ac_unique_file; then | |
728 | srcdir=.. | |
729 | fi | |
730 | else | |
731 | ac_srcdir_defaulted=no | |
732 | fi | |
733 | if test ! -r $srcdir/$ac_unique_file; then | |
734 | if test "$ac_srcdir_defaulted" = yes; then | |
735 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
736 | else | |
737 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
738 | fi | |
739 | fi | |
740 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
741 | ||
742 | # Prefer explicitly selected file to automatically selected ones. | |
743 | if test -z "$CONFIG_SITE"; then | |
744 | if test "x$prefix" != xNONE; then | |
745 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
746 | else | |
747 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
748 | fi | |
749 | fi | |
750 | for ac_site_file in $CONFIG_SITE; do | |
751 | if test -r "$ac_site_file"; then | |
752 | echo "loading site script $ac_site_file" | |
753 | . "$ac_site_file" | |
754 | fi | |
755 | done | |
756 | ||
757 | if test -r "$cache_file"; then | |
758 | echo "loading cache $cache_file" | |
759 | . $cache_file | |
760 | else | |
761 | echo "creating cache $cache_file" | |
762 | > $cache_file | |
763 | fi | |
764 | ||
765 | ac_ext=c | |
766 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
767 | ac_cpp='$CPP $CPPFLAGS' | |
768 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
769 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
770 | cross_compiling=$ac_cv_prog_cc_cross | |
771 | ||
772 | ac_exeext= | |
773 | ac_objext=o | |
774 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
775 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
776 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
777 | ac_n= ac_c=' | |
778 | ' ac_t=' ' | |
779 | else | |
780 | ac_n=-n ac_c= ac_t= | |
781 | fi | |
782 | else | |
783 | ac_n= ac_c='\c' ac_t= | |
784 | fi | |
785 | ||
786 | ||
787 | ||
788 | ac_aux_dir= | |
789 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
790 | if test -f $ac_dir/install-sh; then | |
791 | ac_aux_dir=$ac_dir | |
792 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
793 | break | |
794 | elif test -f $ac_dir/install.sh; then | |
795 | ac_aux_dir=$ac_dir | |
796 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
797 | break | |
798 | fi | |
799 | done | |
800 | if test -z "$ac_aux_dir"; then | |
801 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
802 | fi | |
803 | ac_config_guess=$ac_aux_dir/config.guess | |
804 | ac_config_sub=$ac_aux_dir/config.sub | |
805 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
806 | ||
807 | ||
808 | # Do some error checking and defaulting for the host and target type. | |
809 | # The inputs are: | |
810 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
811 | # | |
812 | # The rules are: | |
813 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
814 | # same time. | |
815 | # 2. Host defaults to nonopt. | |
816 | # 3. If nonopt is not specified, then host defaults to the current host, | |
817 | # as determined by config.guess. | |
818 | # 4. Target and build default to nonopt. | |
819 | # 5. If nonopt is not specified, then target and build default to host. | |
820 | ||
821 | # The aliases save the names the user supplied, while $host etc. | |
822 | # will get canonicalized. | |
823 | case $host---$target---$nonopt in | |
824 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
825 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
826 | esac | |
827 | ||
828 | ||
829 | # Make sure we can run config.sub. | |
830 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
831 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
832 | fi | |
833 | ||
834 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
835 | echo "configure:836: checking host system type" >&5 | |
836 | ||
837 | host_alias=$host | |
838 | case "$host_alias" in | |
839 | NONE) | |
840 | case $nonopt in | |
841 | NONE) | |
842 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
843 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
844 | fi ;; | |
845 | *) host_alias=$nonopt ;; | |
846 | esac ;; | |
847 | esac | |
848 | ||
849 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
850 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
851 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
852 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
853 | echo "$ac_t""$host" 1>&6 | |
854 | ||
855 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
856 | echo "configure:857: checking target system type" >&5 | |
857 | ||
858 | target_alias=$target | |
859 | case "$target_alias" in | |
860 | NONE) | |
861 | case $nonopt in | |
862 | NONE) target_alias=$host_alias ;; | |
863 | *) target_alias=$nonopt ;; | |
864 | esac ;; | |
865 | esac | |
866 | ||
867 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
868 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
869 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
870 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
871 | echo "$ac_t""$target" 1>&6 | |
872 | ||
873 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
874 | echo "configure:875: checking build system type" >&5 | |
875 | ||
876 | build_alias=$build | |
877 | case "$build_alias" in | |
878 | NONE) | |
879 | case $nonopt in | |
880 | NONE) build_alias=$host_alias ;; | |
881 | *) build_alias=$nonopt ;; | |
882 | esac ;; | |
883 | esac | |
884 | ||
885 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
886 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
887 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
888 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
889 | echo "$ac_t""$build" 1>&6 | |
890 | ||
891 | test "$host_alias" != "$target_alias" && | |
892 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
893 | NONENONEs,x,x, && | |
894 | program_prefix=${target_alias}- | |
895 | ||
896 | ||
897 | ||
898 | WX_MAJOR_VERSION_NUMBER=2 | |
899 | WX_MINOR_VERSION_NUMBER=1 | |
900 | WX_RELEASE_NUMBER=12 | |
901 | ||
902 | WX_INTERFACE_AGE=0 | |
903 | WX_BINARY_AGE=0 | |
904 | ||
905 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER | |
906 | ||
907 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER | |
908 | WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE` | |
909 | WX_REVISION=$WX_INTERFACE_AGE | |
910 | WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE` | |
911 | ||
912 | ||
913 | USE_UNIX=1 | |
914 | USE_WIN32=0 | |
915 | USE_BEOS=0 | |
916 | ||
917 | USE_LINUX= | |
918 | USE_SGI= | |
919 | USE_HPUX= | |
920 | USE_SYSV= | |
921 | USE_SVR4= | |
922 | USE_AIX= | |
923 | USE_SUN= | |
924 | USE_SOLARIS= | |
925 | USE_SUNOS= | |
926 | USE_ALPHA= | |
927 | USE_OSF= | |
928 | USE_BSD= | |
929 | USE_FREEBSD= | |
930 | USE_VMS= | |
931 | USE_ULTRIX= | |
932 | USE_CYGWIN= | |
933 | USE_MINGW= | |
934 | USE_DATA_GENERAL= | |
935 | ||
936 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 | |
937 | ||
938 | ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE PM" | |
939 | ||
940 | DEFAULT_wxUSE_GTK=0 | |
941 | DEFAULT_wxUSE_MOTIF=0 | |
942 | DEFAULT_wxUSE_MSW=0 | |
943 | DEFAULT_wxUSE_WINE=0 | |
944 | DEFAULT_wxUSE_PM=0 | |
945 | ||
946 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
947 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
948 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
949 | DEFAULT_DEFAULT_wxUSE_WINE=0 | |
950 | DEFAULT_DEFAULT_wxUSE_PM=0 | |
951 | ||
952 | case "${host}" in | |
953 | *-hp-hpux* ) | |
954 | USE_HPUX=1 | |
955 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
956 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
957 | cat >> confdefs.h <<\EOF | |
958 | #define __HPUX__ 1 | |
959 | EOF | |
960 | ||
961 | ;; | |
962 | *-*-linux* ) | |
963 | USE_LINUX=1 | |
964 | cat >> confdefs.h <<\EOF | |
965 | #define __LINUX__ 1 | |
966 | EOF | |
967 | ||
968 | TMP=`uname -m` | |
969 | if test "x$TMP" = "xalpha"; then | |
970 | USE_ALPHA=1 | |
971 | cat >> confdefs.h <<\EOF | |
972 | #define __ALPHA__ 1 | |
973 | EOF | |
974 | ||
975 | fi | |
976 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
977 | ;; | |
978 | *-*-irix5* | *-*-irix6* ) | |
979 | USE_SGI=1 | |
980 | USE_SVR4=1 | |
981 | cat >> confdefs.h <<\EOF | |
982 | #define __SGI__ 1 | |
983 | EOF | |
984 | ||
985 | cat >> confdefs.h <<\EOF | |
986 | #define __SVR4__ 1 | |
987 | EOF | |
988 | ||
989 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
990 | ;; | |
991 | *-*-solaris2* ) | |
992 | USE_SUN=1 | |
993 | USE_SOLARIS=1 | |
994 | USE_SVR4=1 | |
995 | cat >> confdefs.h <<\EOF | |
996 | #define __SUN__ 1 | |
997 | EOF | |
998 | ||
999 | cat >> confdefs.h <<\EOF | |
1000 | #define __SOLARIS__ 1 | |
1001 | EOF | |
1002 | ||
1003 | cat >> confdefs.h <<\EOF | |
1004 | #define __SVR4__ 1 | |
1005 | EOF | |
1006 | ||
1007 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1008 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1009 | ;; | |
1010 | *-*-sunos4* ) | |
1011 | USE_SUN=1 | |
1012 | USE_SUNOS=1 | |
1013 | USE_BSD=1 | |
1014 | cat >> confdefs.h <<\EOF | |
1015 | #define __SUN__ 1 | |
1016 | EOF | |
1017 | ||
1018 | cat >> confdefs.h <<\EOF | |
1019 | #define __SUNOS__ 1 | |
1020 | EOF | |
1021 | ||
1022 | cat >> confdefs.h <<\EOF | |
1023 | #define __BSD__ 1 | |
1024 | EOF | |
1025 | ||
1026 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1027 | ;; | |
1028 | *-*-freebsd* | *-*-netbsd*) | |
1029 | USE_BSD=1 | |
1030 | USE_FREEBSD=1 | |
1031 | cat >> confdefs.h <<\EOF | |
1032 | #define __FREEBSD__ 1 | |
1033 | EOF | |
1034 | ||
1035 | cat >> confdefs.h <<\EOF | |
1036 | #define __BSD__ 1 | |
1037 | EOF | |
1038 | ||
1039 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1040 | ;; | |
1041 | *-*-osf* ) | |
1042 | USE_ALPHA=1 | |
1043 | USE_OSF=1 | |
1044 | cat >> confdefs.h <<\EOF | |
1045 | #define __ALPHA__ 1 | |
1046 | EOF | |
1047 | ||
1048 | cat >> confdefs.h <<\EOF | |
1049 | #define __OSF__ 1 | |
1050 | EOF | |
1051 | ||
1052 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1053 | ;; | |
1054 | *-*-dgux5* ) | |
1055 | USE_ALPHA=1 | |
1056 | USE_SVR4=1 | |
1057 | cat >> confdefs.h <<\EOF | |
1058 | #define __ALPHA__ 1 | |
1059 | EOF | |
1060 | ||
1061 | cat >> confdefs.h <<\EOF | |
1062 | #define __SVR4__ 1 | |
1063 | EOF | |
1064 | ||
1065 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1066 | ;; | |
1067 | *-*-sysv5* ) | |
1068 | USE_SYSV=1 | |
1069 | USE_SVR4=1 | |
1070 | cat >> confdefs.h <<\EOF | |
1071 | #define __SYSV__ 1 | |
1072 | EOF | |
1073 | ||
1074 | cat >> confdefs.h <<\EOF | |
1075 | #define __SVR4__ 1 | |
1076 | EOF | |
1077 | ||
1078 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1079 | ;; | |
1080 | *-*-aix* ) | |
1081 | USE_AIX=1 | |
1082 | USE_SYSV=1 | |
1083 | USE_SVR4=1 | |
1084 | cat >> confdefs.h <<\EOF | |
1085 | #define __AIX__ 1 | |
1086 | EOF | |
1087 | ||
1088 | cat >> confdefs.h <<\EOF | |
1089 | #define __SYSV__ 1 | |
1090 | EOF | |
1091 | ||
1092 | cat >> confdefs.h <<\EOF | |
1093 | #define __SVR4__ 1 | |
1094 | EOF | |
1095 | ||
1096 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1097 | ;; | |
1098 | ||
1099 | *-*-cygwin32* | *-*-mingw32* ) | |
1100 | USE_UNIX=0 | |
1101 | USE_WIN32=1 | |
1102 | cat >> confdefs.h <<\EOF | |
1103 | #define __WIN32__ 1 | |
1104 | EOF | |
1105 | ||
1106 | cat >> confdefs.h <<\EOF | |
1107 | #define __WIN95__ 1 | |
1108 | EOF | |
1109 | ||
1110 | cat >> confdefs.h <<\EOF | |
1111 | #define __WINDOWS__ 1 | |
1112 | EOF | |
1113 | ||
1114 | cat >> confdefs.h <<\EOF | |
1115 | #define __GNUWIN32__ 1 | |
1116 | EOF | |
1117 | ||
1118 | cat >> confdefs.h <<\EOF | |
1119 | #define STRICT 1 | |
1120 | EOF | |
1121 | ||
1122 | cat >> confdefs.h <<\EOF | |
1123 | #define WINVER 0x0400 | |
1124 | EOF | |
1125 | ||
1126 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
1127 | ;; | |
1128 | ||
1129 | *-pc-os2_emx ) | |
1130 | cat >> confdefs.h <<\EOF | |
1131 | #define __EMX__ 1 | |
1132 | EOF | |
1133 | ||
1134 | DEFAULT_DEFAULT_wxUSE_PM=1 | |
1135 | ;; | |
1136 | ||
1137 | *-*-beos* ) | |
1138 | USE_BEOS=1 | |
1139 | cat >> confdefs.h <<\EOF | |
1140 | #define __BEOS__ 1 | |
1141 | EOF | |
1142 | ||
1143 | ;; | |
1144 | ||
1145 | *) | |
1146 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } | |
1147 | esac | |
1148 | ||
1149 | if test "$USE_UNIX" = 1 ; then | |
1150 | wxUSE_UNIX=yes | |
1151 | cat >> confdefs.h <<\EOF | |
1152 | #define __UNIX__ 1 | |
1153 | EOF | |
1154 | ||
1155 | ||
1156 | SRC_SUBDIRS="$SRC_SUBDIRS unix" | |
1157 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix" | |
1158 | fi | |
1159 | ||
1160 | if test "$USE_BEOS" = 1; then | |
1161 | SRC_SUBDIRS="$SRC_SUBDIRS be" | |
1162 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be" | |
1163 | fi | |
1164 | ||
1165 | if test "$USE_LINUX" = 1; then | |
1166 | echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6 | |
1167 | echo "configure:1168: checking for gettext in -lc" >&5 | |
1168 | ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'` | |
1169 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1170 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1171 | else | |
1172 | ac_save_LIBS="$LIBS" | |
1173 | LIBS="-lc $LIBS" | |
1174 | cat > conftest.$ac_ext <<EOF | |
1175 | #line 1176 "configure" | |
1176 | #include "confdefs.h" | |
1177 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1178 | /* We use char because int might match the return type of a gcc2 | |
1179 | builtin and then its argument prototype would still apply. */ | |
1180 | char gettext(); | |
1181 | ||
1182 | int main() { | |
1183 | gettext() | |
1184 | ; return 0; } | |
1185 | EOF | |
1186 | if { (eval echo configure:1187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
1187 | rm -rf conftest* | |
1188 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1189 | else | |
1190 | echo "configure: failed program was:" >&5 | |
1191 | cat conftest.$ac_ext >&5 | |
1192 | rm -rf conftest* | |
1193 | eval "ac_cv_lib_$ac_lib_var=no" | |
1194 | fi | |
1195 | rm -f conftest* | |
1196 | LIBS="$ac_save_LIBS" | |
1197 | ||
1198 | fi | |
1199 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1200 | echo "$ac_t""yes" 1>&6 | |
1201 | cat >> confdefs.h <<\EOF | |
1202 | #define wxHAVE_GLIBC2 1 | |
1203 | EOF | |
1204 | ||
1205 | else | |
1206 | echo "$ac_t""no" 1>&6 | |
1207 | fi | |
1208 | ||
1209 | fi | |
1210 | ||
1211 | ||
1212 | ||
1213 | ||
1214 | wx_arg_cache_file="configarg.cache" | |
1215 | echo "loading argument cache $wx_arg_cache_file" | |
1216 | rm -f ${wx_arg_cache_file}.tmp | |
1217 | touch ${wx_arg_cache_file}.tmp | |
1218 | touch ${wx_arg_cache_file} | |
1219 | ||
1220 | ||
1221 | DEBUG_CONFIGURE=0 | |
1222 | if test $DEBUG_CONFIGURE = 1; then | |
1223 | DEFAULT_wxUSE_THREADS=yes | |
1224 | ||
1225 | DEFAULT_wxUSE_SHARED=yes | |
1226 | DEFAULT_wxUSE_OPTIMISE=yes | |
1227 | DEFAULT_wxUSE_PROFILE=no | |
1228 | DEFAULT_wxUSE_NO_DEPS=no | |
1229 | DEFAULT_wxUSE_NO_RTTI=no | |
1230 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1231 | DEFAULT_wxUSE_PERMISSIVE=no | |
1232 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1233 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1234 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1235 | DEFAULT_wxUSE_MEM_TRACING=no | |
1236 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1237 | DEFAULT_wxUSE_DMALLOC=no | |
1238 | DEFAULT_wxUSE_APPLE_IEEE=no | |
1239 | ||
1240 | DEFAULT_wxUSE_LOG=yes | |
1241 | ||
1242 | DEFAULT_wxUSE_GUI=yes | |
1243 | ||
1244 | DEFAULT_wxUSE_ZLIB=no | |
1245 | DEFAULT_wxUSE_LIBPNG=no | |
1246 | DEFAULT_wxUSE_LIBJPEG=no | |
1247 | DEFAULT_wxUSE_LIBTIFF=no | |
1248 | DEFAULT_wxUSE_ODBC=no | |
1249 | ||
1250 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
1251 | DEFAULT_wxUSE_FILE=no | |
1252 | DEFAULT_wxUSE_TEXTFILE=no | |
1253 | DEFAULT_wxUSE_TIMEDATE=no | |
1254 | DEFAULT_wxUSE_WAVE=no | |
1255 | DEFAULT_wxUSE_INTL=no | |
1256 | DEFAULT_wxUSE_CONFIG=no | |
1257 | DEFAULT_wxUSE_STREAMS=no | |
1258 | DEFAULT_wxUSE_SOCKETS=no | |
1259 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
1260 | DEFAULT_wxUSE_SERIAL=no | |
1261 | DEFAULT_wxUSE_JOYSTICK=no | |
1262 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
1263 | DEFAULT_wxUSE_LONGLONG=no | |
1264 | ||
1265 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1266 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1267 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1268 | ||
1269 | DEFAULT_wxUSE_X_RESOURCES=no | |
1270 | DEFAULT_wxUSE_CLIPBOARD=no | |
1271 | DEFAULT_wxUSE_TOOLTIPS=no | |
1272 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
1273 | DEFAULT_wxUSE_SPLINES=no | |
1274 | ||
1275 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1276 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1277 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1278 | ||
1279 | DEFAULT_wxUSE_PROLOGIO=no | |
1280 | DEFAULT_wxUSE_RESOURCES=no | |
1281 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1282 | DEFAULT_wxUSE_IPC=no | |
1283 | DEFAULT_wxUSE_HELP=no | |
1284 | DEFAULT_wxUSE_WXTREE=no | |
1285 | DEFAULT_wxUSE_METAFILE=no | |
1286 | ||
1287 | DEFAULT_wxUSE_COMMONDLGS=no | |
1288 | DEFAULT_wxUSE_DIRDLG=no | |
1289 | DEFAULT_wxUSE_TEXTDLG=no | |
1290 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
1291 | DEFAULT_wxUSE_PROGRESSDLG=no | |
1292 | DEFAULT_wxUSE_MINIFRAME=no | |
1293 | DEFAULT_wxUSE_HTML=no | |
1294 | DEFAULT_wxUSE_FS_INET=no | |
1295 | DEFAULT_wxUSE_FS_ZIP=no | |
1296 | DEFAULT_wxUSE_BUSYINFO=no | |
1297 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1298 | DEFAULT_wxUSE_VALIDATORS=yes | |
1299 | ||
1300 | DEFAULT_wxUSE_ACCEL=no | |
1301 | DEFAULT_wxUSE_CARET=no | |
1302 | DEFAULT_wxUSE_BMPBUTTON=no | |
1303 | DEFAULT_wxUSE_CHECKBOX=no | |
1304 | DEFAULT_wxUSE_CHECKLST=no | |
1305 | DEFAULT_wxUSE_CHOICE=yes | |
1306 | DEFAULT_wxUSE_COMBOBOX=no | |
1307 | DEFAULT_wxUSE_GAUGE=no | |
1308 | DEFAULT_wxUSE_GRID=no | |
1309 | DEFAULT_wxUSE_NEW_GRID=no | |
1310 | DEFAULT_wxUSE_IMAGLIST=no | |
1311 | DEFAULT_wxUSE_LISTBOX=no | |
1312 | DEFAULT_wxUSE_LISTCTRL=no | |
1313 | DEFAULT_wxUSE_NOTEBOOK=no | |
1314 | DEFAULT_wxUSE_RADIOBOX=no | |
1315 | DEFAULT_wxUSE_RADIOBTN=no | |
1316 | DEFAULT_wxUSE_SASH=no | |
1317 | DEFAULT_wxUSE_SCROLLBAR=no | |
1318 | DEFAULT_wxUSE_SLIDER=no | |
1319 | DEFAULT_wxUSE_SPINBTN=no | |
1320 | DEFAULT_wxUSE_SPINCTRL=no | |
1321 | DEFAULT_wxUSE_SPLITTER=no | |
1322 | DEFAULT_wxUSE_STATBMP=no | |
1323 | DEFAULT_wxUSE_STATBOX=no | |
1324 | DEFAULT_wxUSE_STATLINE=no | |
1325 | DEFAULT_wxUSE_STATUSBAR=yes | |
1326 | DEFAULT_wxUSE_TABDIALOG=no | |
1327 | DEFAULT_wxUSE_TOOLBAR=no | |
1328 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
1329 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
1330 | DEFAULT_wxUSE_TREECTRL=no | |
1331 | ||
1332 | DEFAULT_wxUSE_UNICODE=no | |
1333 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1334 | ||
1335 | DEFAULT_wxUSE_GIF=no | |
1336 | DEFAULT_wxUSE_PCX=no | |
1337 | DEFAULT_wxUSE_PNM=no | |
1338 | else | |
1339 | DEFAULT_wxUSE_THREADS=yes | |
1340 | ||
1341 | DEFAULT_wxUSE_SHARED=yes | |
1342 | DEFAULT_wxUSE_OPTIMISE=yes | |
1343 | DEFAULT_wxUSE_PROFILE=no | |
1344 | DEFAULT_wxUSE_NO_DEPS=no | |
1345 | DEFAULT_wxUSE_NO_RTTI=no | |
1346 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1347 | DEFAULT_wxUSE_PERMISSIVE=no | |
1348 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1349 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1350 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1351 | DEFAULT_wxUSE_MEM_TRACING=no | |
1352 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1353 | DEFAULT_wxUSE_DMALLOC=no | |
1354 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
1355 | ||
1356 | DEFAULT_wxUSE_LOG=yes | |
1357 | ||
1358 | DEFAULT_wxUSE_GUI=yes | |
1359 | ||
1360 | DEFAULT_wxUSE_ZLIB=yes | |
1361 | DEFAULT_wxUSE_LIBPNG=yes | |
1362 | DEFAULT_wxUSE_LIBJPEG=yes | |
1363 | DEFAULT_wxUSE_LIBTIFF=yes | |
1364 | DEFAULT_wxUSE_ODBC=yes | |
1365 | ||
1366 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
1367 | DEFAULT_wxUSE_FILE=yes | |
1368 | DEFAULT_wxUSE_TEXTFILE=yes | |
1369 | DEFAULT_wxUSE_TIMEDATE=yes | |
1370 | DEFAULT_wxUSE_WAVE=no | |
1371 | DEFAULT_wxUSE_INTL=yes | |
1372 | DEFAULT_wxUSE_CONFIG=yes | |
1373 | DEFAULT_wxUSE_STREAMS=yes | |
1374 | DEFAULT_wxUSE_SOCKETS=yes | |
1375 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
1376 | DEFAULT_wxUSE_SERIAL=yes | |
1377 | DEFAULT_wxUSE_JOYSTICK=yes | |
1378 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
1379 | DEFAULT_wxUSE_LONGLONG=yes | |
1380 | ||
1381 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1382 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1383 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1384 | ||
1385 | DEFAULT_wxUSE_X_RESOURCES=no | |
1386 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1387 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1388 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
1389 | DEFAULT_wxUSE_SPLINES=yes | |
1390 | ||
1391 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1392 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1393 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1394 | ||
1395 | DEFAULT_wxUSE_PROLOGIO=yes | |
1396 | DEFAULT_wxUSE_RESOURCES=yes | |
1397 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1398 | DEFAULT_wxUSE_IPC=yes | |
1399 | DEFAULT_wxUSE_HELP=yes | |
1400 | DEFAULT_wxUSE_WXTREE=yes | |
1401 | DEFAULT_wxUSE_METAFILE=yes | |
1402 | ||
1403 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1404 | DEFAULT_wxUSE_DIRDLG=yes | |
1405 | DEFAULT_wxUSE_TEXTDLG=yes | |
1406 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
1407 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
1408 | DEFAULT_wxUSE_MINIFRAME=yes | |
1409 | DEFAULT_wxUSE_HTML=yes | |
1410 | DEFAULT_wxUSE_FS_INET=yes | |
1411 | DEFAULT_wxUSE_FS_ZIP=yes | |
1412 | DEFAULT_wxUSE_BUSYINFO=yes | |
1413 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1414 | DEFAULT_wxUSE_VALIDATORS=yes | |
1415 | ||
1416 | DEFAULT_wxUSE_ACCEL=yes | |
1417 | DEFAULT_wxUSE_CARET=yes | |
1418 | DEFAULT_wxUSE_BMPBUTTON=yes | |
1419 | DEFAULT_wxUSE_CHECKBOX=yes | |
1420 | DEFAULT_wxUSE_CHECKLST=yes | |
1421 | DEFAULT_wxUSE_CHOICE=yes | |
1422 | DEFAULT_wxUSE_COMBOBOX=yes | |
1423 | DEFAULT_wxUSE_GAUGE=yes | |
1424 | DEFAULT_wxUSE_GRID=yes | |
1425 | DEFAULT_wxUSE_NEW_GRID=no | |
1426 | DEFAULT_wxUSE_IMAGLIST=yes | |
1427 | DEFAULT_wxUSE_LISTBOX=yes | |
1428 | DEFAULT_wxUSE_LISTCTRL=yes | |
1429 | DEFAULT_wxUSE_NOTEBOOK=yes | |
1430 | DEFAULT_wxUSE_RADIOBOX=yes | |
1431 | DEFAULT_wxUSE_RADIOBTN=yes | |
1432 | DEFAULT_wxUSE_SASH=yes | |
1433 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1434 | DEFAULT_wxUSE_SLIDER=yes | |
1435 | DEFAULT_wxUSE_SPINBTN=yes | |
1436 | DEFAULT_wxUSE_SPINCTRL=yes | |
1437 | DEFAULT_wxUSE_SPLITTER=yes | |
1438 | DEFAULT_wxUSE_STATBMP=yes | |
1439 | DEFAULT_wxUSE_STATBOX=yes | |
1440 | DEFAULT_wxUSE_STATLINE=yes | |
1441 | DEFAULT_wxUSE_STATUSBAR=yes | |
1442 | DEFAULT_wxUSE_TABDIALOG=no | |
1443 | DEFAULT_wxUSE_TOOLBAR=yes | |
1444 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
1445 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
1446 | DEFAULT_wxUSE_TREECTRL=yes | |
1447 | ||
1448 | DEFAULT_wxUSE_UNICODE=no | |
1449 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1450 | ||
1451 | DEFAULT_wxUSE_GIF=yes | |
1452 | DEFAULT_wxUSE_PCX=yes | |
1453 | DEFAULT_wxUSE_PNM=yes | |
1454 | fi | |
1455 | ||
1456 | ||
1457 | ||
1458 | for toolkit in `echo $ALL_TOOLKITS`; do | |
1459 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1460 | if test "x$LINE" != x ; then | |
1461 | has_toolkit_in_cache=1 | |
1462 | eval "DEFAULT_$LINE" | |
1463 | eval "CACHE_$toolkit=1" | |
1464 | fi | |
1465 | done | |
1466 | ||
1467 | ||
1468 | ||
1469 | echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6 | |
1470 | echo "configure:1471: checking "for --enable-gui"" >&5 | |
1471 | no_cache=0 | |
1472 | # Check whether --enable-gui or --disable-gui was given. | |
1473 | if test "${enable_gui+set}" = set; then | |
1474 | enableval="$enable_gui" | |
1475 | ||
1476 | if test "$enableval" = yes; then | |
1477 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1478 | else | |
1479 | ac_cv_use_gui='wxUSE_GUI=no' | |
1480 | fi | |
1481 | ||
1482 | else | |
1483 | ||
1484 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
1485 | if test "x$LINE" != x ; then | |
1486 | eval "DEFAULT_$LINE" | |
1487 | else | |
1488 | no_cache=1 | |
1489 | fi | |
1490 | ||
1491 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
1492 | ||
1493 | fi | |
1494 | ||
1495 | ||
1496 | eval "$ac_cv_use_gui" | |
1497 | if test "$no_cache" != 1; then | |
1498 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1499 | fi | |
1500 | ||
1501 | if test "$wxUSE_GUI" = yes; then | |
1502 | echo "$ac_t""yes" 1>&6 | |
1503 | else | |
1504 | echo "$ac_t""no" 1>&6 | |
1505 | fi | |
1506 | ||
1507 | ||
1508 | if test "$wxUSE_GUI" = "yes"; then | |
1509 | ||
1510 | # Check whether --with-gtk or --without-gtk was given. | |
1511 | if test "${with_gtk+set}" = set; then | |
1512 | withval="$with_gtk" | |
1513 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
1514 | fi | |
1515 | ||
1516 | # Check whether --with-motif or --without-motif was given. | |
1517 | if test "${with_motif+set}" = set; then | |
1518 | withval="$with_motif" | |
1519 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
1520 | fi | |
1521 | ||
1522 | # Check whether --with-wine or --without-wine was given. | |
1523 | if test "${with_wine+set}" = set; then | |
1524 | withval="$with_wine" | |
1525 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
1526 | fi | |
1527 | ||
1528 | # Check whether --with-cygwin or --without-cygwin was given. | |
1529 | if test "${with_cygwin+set}" = set; then | |
1530 | withval="$with_cygwin" | |
1531 | wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1 | |
1532 | fi | |
1533 | ||
1534 | # Check whether --with-mingw or --without-mingw was given. | |
1535 | if test "${with_mingw+set}" = set; then | |
1536 | withval="$with_mingw" | |
1537 | wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1 | |
1538 | fi | |
1539 | ||
1540 | # Check whether --with-pm or --without-pm was given. | |
1541 | if test "${with_pm+set}" = set; then | |
1542 | withval="$with_pm" | |
1543 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
1544 | fi | |
1545 | ||
1546 | ||
1547 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
1548 | if test "${with_gtk_prefix+set}" = set; then | |
1549 | withval="$with_gtk_prefix" | |
1550 | gtk_config_prefix="$withval" | |
1551 | else | |
1552 | gtk_config_prefix="" | |
1553 | fi | |
1554 | ||
1555 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
1556 | if test "${with_gtk_exec_prefix+set}" = set; then | |
1557 | withval="$with_gtk_exec_prefix" | |
1558 | gtk_config_exec_prefix="$withval" | |
1559 | else | |
1560 | gtk_config_exec_prefix="" | |
1561 | fi | |
1562 | ||
1563 | ||
1564 | ||
1565 | echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6 | |
1566 | echo "configure:1567: checking "for --with-libpng"" >&5 | |
1567 | no_cache=0 | |
1568 | # Check whether --with-libpng or --without-libpng was given. | |
1569 | if test "${with_libpng+set}" = set; then | |
1570 | withval="$with_libpng" | |
1571 | ||
1572 | if test "$withval" = yes; then | |
1573 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
1574 | else | |
1575 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
1576 | fi | |
1577 | ||
1578 | else | |
1579 | ||
1580 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
1581 | if test "x$LINE" != x ; then | |
1582 | eval "DEFAULT_$LINE" | |
1583 | else | |
1584 | no_cache=1 | |
1585 | fi | |
1586 | ||
1587 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
1588 | ||
1589 | fi | |
1590 | ||
1591 | ||
1592 | eval "$ac_cv_use_libpng" | |
1593 | if test "$no_cache" != 1; then | |
1594 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
1595 | fi | |
1596 | ||
1597 | if test "$wxUSE_LIBPNG" = yes; then | |
1598 | echo "$ac_t""yes" 1>&6 | |
1599 | else | |
1600 | echo "$ac_t""no" 1>&6 | |
1601 | fi | |
1602 | ||
1603 | ||
1604 | echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6 | |
1605 | echo "configure:1606: checking "for --with-libjpeg"" >&5 | |
1606 | no_cache=0 | |
1607 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
1608 | if test "${with_libjpeg+set}" = set; then | |
1609 | withval="$with_libjpeg" | |
1610 | ||
1611 | if test "$withval" = yes; then | |
1612 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
1613 | else | |
1614 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
1615 | fi | |
1616 | ||
1617 | else | |
1618 | ||
1619 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
1620 | if test "x$LINE" != x ; then | |
1621 | eval "DEFAULT_$LINE" | |
1622 | else | |
1623 | no_cache=1 | |
1624 | fi | |
1625 | ||
1626 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
1627 | ||
1628 | fi | |
1629 | ||
1630 | ||
1631 | eval "$ac_cv_use_libjpeg" | |
1632 | if test "$no_cache" != 1; then | |
1633 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
1634 | fi | |
1635 | ||
1636 | if test "$wxUSE_LIBJPEG" = yes; then | |
1637 | echo "$ac_t""yes" 1>&6 | |
1638 | else | |
1639 | echo "$ac_t""no" 1>&6 | |
1640 | fi | |
1641 | ||
1642 | ||
1643 | echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6 | |
1644 | echo "configure:1645: checking "for --with-libtiff"" >&5 | |
1645 | no_cache=0 | |
1646 | # Check whether --with-libtiff or --without-libtiff was given. | |
1647 | if test "${with_libtiff+set}" = set; then | |
1648 | withval="$with_libtiff" | |
1649 | ||
1650 | if test "$withval" = yes; then | |
1651 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' | |
1652 | else | |
1653 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' | |
1654 | fi | |
1655 | ||
1656 | else | |
1657 | ||
1658 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` | |
1659 | if test "x$LINE" != x ; then | |
1660 | eval "DEFAULT_$LINE" | |
1661 | else | |
1662 | no_cache=1 | |
1663 | fi | |
1664 | ||
1665 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF | |
1666 | ||
1667 | fi | |
1668 | ||
1669 | ||
1670 | eval "$ac_cv_use_libtiff" | |
1671 | if test "$no_cache" != 1; then | |
1672 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp | |
1673 | fi | |
1674 | ||
1675 | if test "$wxUSE_LIBTIFF" = yes; then | |
1676 | echo "$ac_t""yes" 1>&6 | |
1677 | else | |
1678 | echo "$ac_t""no" 1>&6 | |
1679 | fi | |
1680 | ||
1681 | ||
1682 | echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6 | |
1683 | echo "configure:1684: checking "for --with-opengl"" >&5 | |
1684 | no_cache=0 | |
1685 | # Check whether --with-opengl or --without-opengl was given. | |
1686 | if test "${with_opengl+set}" = set; then | |
1687 | withval="$with_opengl" | |
1688 | ||
1689 | if test "$withval" = yes; then | |
1690 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
1691 | else | |
1692 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
1693 | fi | |
1694 | ||
1695 | else | |
1696 | ||
1697 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
1698 | if test "x$LINE" != x ; then | |
1699 | eval "DEFAULT_$LINE" | |
1700 | else | |
1701 | no_cache=1 | |
1702 | fi | |
1703 | ||
1704 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
1705 | ||
1706 | fi | |
1707 | ||
1708 | ||
1709 | eval "$ac_cv_use_opengl" | |
1710 | if test "$no_cache" != 1; then | |
1711 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
1712 | fi | |
1713 | ||
1714 | if test "$wxUSE_OPENGL" = yes; then | |
1715 | echo "$ac_t""yes" 1>&6 | |
1716 | else | |
1717 | echo "$ac_t""no" 1>&6 | |
1718 | fi | |
1719 | ||
1720 | ||
1721 | fi | |
1722 | ||
1723 | ||
1724 | echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6 | |
1725 | echo "configure:1726: checking "for --with-dmalloc"" >&5 | |
1726 | no_cache=0 | |
1727 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
1728 | if test "${with_dmalloc+set}" = set; then | |
1729 | withval="$with_dmalloc" | |
1730 | ||
1731 | if test "$withval" = yes; then | |
1732 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
1733 | else | |
1734 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
1735 | fi | |
1736 | ||
1737 | else | |
1738 | ||
1739 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
1740 | if test "x$LINE" != x ; then | |
1741 | eval "DEFAULT_$LINE" | |
1742 | else | |
1743 | no_cache=1 | |
1744 | fi | |
1745 | ||
1746 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
1747 | ||
1748 | fi | |
1749 | ||
1750 | ||
1751 | eval "$ac_cv_use_dmalloc" | |
1752 | if test "$no_cache" != 1; then | |
1753 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
1754 | fi | |
1755 | ||
1756 | if test "$wxUSE_DMALLOC" = yes; then | |
1757 | echo "$ac_t""yes" 1>&6 | |
1758 | else | |
1759 | echo "$ac_t""no" 1>&6 | |
1760 | fi | |
1761 | ||
1762 | ||
1763 | echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6 | |
1764 | echo "configure:1765: checking "for --with-zlib"" >&5 | |
1765 | no_cache=0 | |
1766 | # Check whether --with-zlib or --without-zlib was given. | |
1767 | if test "${with_zlib+set}" = set; then | |
1768 | withval="$with_zlib" | |
1769 | ||
1770 | if test "$withval" = yes; then | |
1771 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
1772 | else | |
1773 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
1774 | fi | |
1775 | ||
1776 | else | |
1777 | ||
1778 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
1779 | if test "x$LINE" != x ; then | |
1780 | eval "DEFAULT_$LINE" | |
1781 | else | |
1782 | no_cache=1 | |
1783 | fi | |
1784 | ||
1785 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
1786 | ||
1787 | fi | |
1788 | ||
1789 | ||
1790 | eval "$ac_cv_use_zlib" | |
1791 | if test "$no_cache" != 1; then | |
1792 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
1793 | fi | |
1794 | ||
1795 | if test "$wxUSE_ZLIB" = yes; then | |
1796 | echo "$ac_t""yes" 1>&6 | |
1797 | else | |
1798 | echo "$ac_t""no" 1>&6 | |
1799 | fi | |
1800 | ||
1801 | ||
1802 | echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6 | |
1803 | echo "configure:1804: checking "for --with-odbc"" >&5 | |
1804 | no_cache=0 | |
1805 | # Check whether --with-odbc or --without-odbc was given. | |
1806 | if test "${with_odbc+set}" = set; then | |
1807 | withval="$with_odbc" | |
1808 | ||
1809 | if test "$withval" = yes; then | |
1810 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
1811 | else | |
1812 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
1813 | fi | |
1814 | ||
1815 | else | |
1816 | ||
1817 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
1818 | if test "x$LINE" != x ; then | |
1819 | eval "DEFAULT_$LINE" | |
1820 | else | |
1821 | no_cache=1 | |
1822 | fi | |
1823 | ||
1824 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
1825 | ||
1826 | fi | |
1827 | ||
1828 | ||
1829 | eval "$ac_cv_use_odbc" | |
1830 | if test "$no_cache" != 1; then | |
1831 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
1832 | fi | |
1833 | ||
1834 | if test "$wxUSE_ODBC" = yes; then | |
1835 | echo "$ac_t""yes" 1>&6 | |
1836 | else | |
1837 | echo "$ac_t""no" 1>&6 | |
1838 | fi | |
1839 | ||
1840 | ||
1841 | ||
1842 | ||
1843 | ||
1844 | echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6 | |
1845 | echo "configure:1846: checking "for --enable-shared"" >&5 | |
1846 | no_cache=0 | |
1847 | # Check whether --enable-shared or --disable-shared was given. | |
1848 | if test "${enable_shared+set}" = set; then | |
1849 | enableval="$enable_shared" | |
1850 | ||
1851 | if test "$enableval" = yes; then | |
1852 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
1853 | else | |
1854 | ac_cv_use_shared='wxUSE_SHARED=no' | |
1855 | fi | |
1856 | ||
1857 | else | |
1858 | ||
1859 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
1860 | if test "x$LINE" != x ; then | |
1861 | eval "DEFAULT_$LINE" | |
1862 | else | |
1863 | no_cache=1 | |
1864 | fi | |
1865 | ||
1866 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
1867 | ||
1868 | fi | |
1869 | ||
1870 | ||
1871 | eval "$ac_cv_use_shared" | |
1872 | if test "$no_cache" != 1; then | |
1873 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
1874 | fi | |
1875 | ||
1876 | if test "$wxUSE_SHARED" = yes; then | |
1877 | echo "$ac_t""yes" 1>&6 | |
1878 | else | |
1879 | echo "$ac_t""no" 1>&6 | |
1880 | fi | |
1881 | ||
1882 | ||
1883 | echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6 | |
1884 | echo "configure:1885: checking "for --enable-optimise"" >&5 | |
1885 | no_cache=0 | |
1886 | # Check whether --enable-optimise or --disable-optimise was given. | |
1887 | if test "${enable_optimise+set}" = set; then | |
1888 | enableval="$enable_optimise" | |
1889 | ||
1890 | if test "$enableval" = yes; then | |
1891 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
1892 | else | |
1893 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
1894 | fi | |
1895 | ||
1896 | else | |
1897 | ||
1898 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
1899 | if test "x$LINE" != x ; then | |
1900 | eval "DEFAULT_$LINE" | |
1901 | else | |
1902 | no_cache=1 | |
1903 | fi | |
1904 | ||
1905 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
1906 | ||
1907 | fi | |
1908 | ||
1909 | ||
1910 | eval "$ac_cv_use_optimise" | |
1911 | if test "$no_cache" != 1; then | |
1912 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
1913 | fi | |
1914 | ||
1915 | if test "$wxUSE_OPTIMISE" = yes; then | |
1916 | echo "$ac_t""yes" 1>&6 | |
1917 | else | |
1918 | echo "$ac_t""no" 1>&6 | |
1919 | fi | |
1920 | ||
1921 | ||
1922 | echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6 | |
1923 | echo "configure:1924: checking "for --enable-debug"" >&5 | |
1924 | no_cache=0 | |
1925 | # Check whether --enable-debug or --disable-debug was given. | |
1926 | if test "${enable_debug+set}" = set; then | |
1927 | enableval="$enable_debug" | |
1928 | ||
1929 | if test "$enableval" = yes; then | |
1930 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
1931 | else | |
1932 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
1933 | fi | |
1934 | ||
1935 | else | |
1936 | ||
1937 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
1938 | if test "x$LINE" != x ; then | |
1939 | eval "DEFAULT_$LINE" | |
1940 | else | |
1941 | no_cache=1 | |
1942 | fi | |
1943 | ||
1944 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
1945 | ||
1946 | fi | |
1947 | ||
1948 | ||
1949 | eval "$ac_cv_use_debug" | |
1950 | if test "$no_cache" != 1; then | |
1951 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
1952 | fi | |
1953 | ||
1954 | if test "$wxUSE_DEBUG" = yes; then | |
1955 | echo "$ac_t""yes" 1>&6 | |
1956 | else | |
1957 | echo "$ac_t""no" 1>&6 | |
1958 | fi | |
1959 | ||
1960 | ||
1961 | if test "$wxUSE_DEBUG" = "yes"; then | |
1962 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1963 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1964 | elif test "$wxUSE_DEBUG" = "no"; then | |
1965 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1966 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1967 | fi | |
1968 | ||
1969 | ||
1970 | echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6 | |
1971 | echo "configure:1972: checking "for --enable-debug_flag"" >&5 | |
1972 | no_cache=0 | |
1973 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
1974 | if test "${enable_debug_flag+set}" = set; then | |
1975 | enableval="$enable_debug_flag" | |
1976 | ||
1977 | if test "$enableval" = yes; then | |
1978 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
1979 | else | |
1980 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
1981 | fi | |
1982 | ||
1983 | else | |
1984 | ||
1985 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
1986 | if test "x$LINE" != x ; then | |
1987 | eval "DEFAULT_$LINE" | |
1988 | else | |
1989 | no_cache=1 | |
1990 | fi | |
1991 | ||
1992 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
1993 | ||
1994 | fi | |
1995 | ||
1996 | ||
1997 | eval "$ac_cv_use_debug_flag" | |
1998 | if test "$no_cache" != 1; then | |
1999 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2000 | fi | |
2001 | ||
2002 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
2003 | echo "$ac_t""yes" 1>&6 | |
2004 | else | |
2005 | echo "$ac_t""no" 1>&6 | |
2006 | fi | |
2007 | ||
2008 | ||
2009 | echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6 | |
2010 | echo "configure:2011: checking "for --enable-debug_info"" >&5 | |
2011 | no_cache=0 | |
2012 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2013 | if test "${enable_debug_info+set}" = set; then | |
2014 | enableval="$enable_debug_info" | |
2015 | ||
2016 | if test "$enableval" = yes; then | |
2017 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2018 | else | |
2019 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2020 | fi | |
2021 | ||
2022 | else | |
2023 | ||
2024 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
2025 | if test "x$LINE" != x ; then | |
2026 | eval "DEFAULT_$LINE" | |
2027 | else | |
2028 | no_cache=1 | |
2029 | fi | |
2030 | ||
2031 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
2032 | ||
2033 | fi | |
2034 | ||
2035 | ||
2036 | eval "$ac_cv_use_debug_info" | |
2037 | if test "$no_cache" != 1; then | |
2038 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2039 | fi | |
2040 | ||
2041 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
2042 | echo "$ac_t""yes" 1>&6 | |
2043 | else | |
2044 | echo "$ac_t""no" 1>&6 | |
2045 | fi | |
2046 | ||
2047 | ||
2048 | echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6 | |
2049 | echo "configure:2050: checking "for --enable-debug_gdb"" >&5 | |
2050 | no_cache=0 | |
2051 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2052 | if test "${enable_debug_gdb+set}" = set; then | |
2053 | enableval="$enable_debug_gdb" | |
2054 | ||
2055 | if test "$enableval" = yes; then | |
2056 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2057 | else | |
2058 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2059 | fi | |
2060 | ||
2061 | else | |
2062 | ||
2063 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
2064 | if test "x$LINE" != x ; then | |
2065 | eval "DEFAULT_$LINE" | |
2066 | else | |
2067 | no_cache=1 | |
2068 | fi | |
2069 | ||
2070 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
2071 | ||
2072 | fi | |
2073 | ||
2074 | ||
2075 | eval "$ac_cv_use_debug_gdb" | |
2076 | if test "$no_cache" != 1; then | |
2077 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2078 | fi | |
2079 | ||
2080 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
2081 | echo "$ac_t""yes" 1>&6 | |
2082 | else | |
2083 | echo "$ac_t""no" 1>&6 | |
2084 | fi | |
2085 | ||
2086 | ||
2087 | echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6 | |
2088 | echo "configure:2089: checking "for --enable-debug_cntxt"" >&5 | |
2089 | no_cache=0 | |
2090 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2091 | if test "${enable_debug_cntxt+set}" = set; then | |
2092 | enableval="$enable_debug_cntxt" | |
2093 | ||
2094 | if test "$enableval" = yes; then | |
2095 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2096 | else | |
2097 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2098 | fi | |
2099 | ||
2100 | else | |
2101 | ||
2102 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
2103 | if test "x$LINE" != x ; then | |
2104 | eval "DEFAULT_$LINE" | |
2105 | else | |
2106 | no_cache=1 | |
2107 | fi | |
2108 | ||
2109 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
2110 | ||
2111 | fi | |
2112 | ||
2113 | ||
2114 | eval "$ac_cv_use_debug_cntxt" | |
2115 | if test "$no_cache" != 1; then | |
2116 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2117 | fi | |
2118 | ||
2119 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
2120 | echo "$ac_t""yes" 1>&6 | |
2121 | else | |
2122 | echo "$ac_t""no" 1>&6 | |
2123 | fi | |
2124 | ||
2125 | ||
2126 | echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6 | |
2127 | echo "configure:2128: checking "for --enable-mem_tracing"" >&5 | |
2128 | no_cache=0 | |
2129 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2130 | if test "${enable_mem_tracing+set}" = set; then | |
2131 | enableval="$enable_mem_tracing" | |
2132 | ||
2133 | if test "$enableval" = yes; then | |
2134 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2135 | else | |
2136 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2137 | fi | |
2138 | ||
2139 | else | |
2140 | ||
2141 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
2142 | if test "x$LINE" != x ; then | |
2143 | eval "DEFAULT_$LINE" | |
2144 | else | |
2145 | no_cache=1 | |
2146 | fi | |
2147 | ||
2148 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
2149 | ||
2150 | fi | |
2151 | ||
2152 | ||
2153 | eval "$ac_cv_use_mem_tracing" | |
2154 | if test "$no_cache" != 1; then | |
2155 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2156 | fi | |
2157 | ||
2158 | if test "$wxUSE_MEM_TRACING" = yes; then | |
2159 | echo "$ac_t""yes" 1>&6 | |
2160 | else | |
2161 | echo "$ac_t""no" 1>&6 | |
2162 | fi | |
2163 | ||
2164 | ||
2165 | echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6 | |
2166 | echo "configure:2167: checking "for --enable-profile"" >&5 | |
2167 | no_cache=0 | |
2168 | # Check whether --enable-profile or --disable-profile was given. | |
2169 | if test "${enable_profile+set}" = set; then | |
2170 | enableval="$enable_profile" | |
2171 | ||
2172 | if test "$enableval" = yes; then | |
2173 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2174 | else | |
2175 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2176 | fi | |
2177 | ||
2178 | else | |
2179 | ||
2180 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
2181 | if test "x$LINE" != x ; then | |
2182 | eval "DEFAULT_$LINE" | |
2183 | else | |
2184 | no_cache=1 | |
2185 | fi | |
2186 | ||
2187 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
2188 | ||
2189 | fi | |
2190 | ||
2191 | ||
2192 | eval "$ac_cv_use_profile" | |
2193 | if test "$no_cache" != 1; then | |
2194 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2195 | fi | |
2196 | ||
2197 | if test "$wxUSE_PROFILE" = yes; then | |
2198 | echo "$ac_t""yes" 1>&6 | |
2199 | else | |
2200 | echo "$ac_t""no" 1>&6 | |
2201 | fi | |
2202 | ||
2203 | ||
2204 | echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6 | |
2205 | echo "configure:2206: checking "for --enable-no_rtti"" >&5 | |
2206 | no_cache=0 | |
2207 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2208 | if test "${enable_no_rtti+set}" = set; then | |
2209 | enableval="$enable_no_rtti" | |
2210 | ||
2211 | if test "$enableval" = yes; then | |
2212 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2213 | else | |
2214 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2215 | fi | |
2216 | ||
2217 | else | |
2218 | ||
2219 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
2220 | if test "x$LINE" != x ; then | |
2221 | eval "DEFAULT_$LINE" | |
2222 | else | |
2223 | no_cache=1 | |
2224 | fi | |
2225 | ||
2226 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
2227 | ||
2228 | fi | |
2229 | ||
2230 | ||
2231 | eval "$ac_cv_use_no_rtti" | |
2232 | if test "$no_cache" != 1; then | |
2233 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2234 | fi | |
2235 | ||
2236 | if test "$wxUSE_NO_RTTI" = yes; then | |
2237 | echo "$ac_t""yes" 1>&6 | |
2238 | else | |
2239 | echo "$ac_t""no" 1>&6 | |
2240 | fi | |
2241 | ||
2242 | ||
2243 | echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6 | |
2244 | echo "configure:2245: checking "for --enable-no_exceptions"" >&5 | |
2245 | no_cache=0 | |
2246 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2247 | if test "${enable_no_exceptions+set}" = set; then | |
2248 | enableval="$enable_no_exceptions" | |
2249 | ||
2250 | if test "$enableval" = yes; then | |
2251 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2252 | else | |
2253 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2254 | fi | |
2255 | ||
2256 | else | |
2257 | ||
2258 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
2259 | if test "x$LINE" != x ; then | |
2260 | eval "DEFAULT_$LINE" | |
2261 | else | |
2262 | no_cache=1 | |
2263 | fi | |
2264 | ||
2265 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
2266 | ||
2267 | fi | |
2268 | ||
2269 | ||
2270 | eval "$ac_cv_use_no_exceptions" | |
2271 | if test "$no_cache" != 1; then | |
2272 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2273 | fi | |
2274 | ||
2275 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
2276 | echo "$ac_t""yes" 1>&6 | |
2277 | else | |
2278 | echo "$ac_t""no" 1>&6 | |
2279 | fi | |
2280 | ||
2281 | ||
2282 | echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6 | |
2283 | echo "configure:2284: checking "for --enable-permissive"" >&5 | |
2284 | no_cache=0 | |
2285 | # Check whether --enable-permissive or --disable-permissive was given. | |
2286 | if test "${enable_permissive+set}" = set; then | |
2287 | enableval="$enable_permissive" | |
2288 | ||
2289 | if test "$enableval" = yes; then | |
2290 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2291 | else | |
2292 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2293 | fi | |
2294 | ||
2295 | else | |
2296 | ||
2297 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
2298 | if test "x$LINE" != x ; then | |
2299 | eval "DEFAULT_$LINE" | |
2300 | else | |
2301 | no_cache=1 | |
2302 | fi | |
2303 | ||
2304 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
2305 | ||
2306 | fi | |
2307 | ||
2308 | ||
2309 | eval "$ac_cv_use_permissive" | |
2310 | if test "$no_cache" != 1; then | |
2311 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2312 | fi | |
2313 | ||
2314 | if test "$wxUSE_PERMISSIVE" = yes; then | |
2315 | echo "$ac_t""yes" 1>&6 | |
2316 | else | |
2317 | echo "$ac_t""no" 1>&6 | |
2318 | fi | |
2319 | ||
2320 | ||
2321 | echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6 | |
2322 | echo "configure:2323: checking "for --enable-no_deps"" >&5 | |
2323 | no_cache=0 | |
2324 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2325 | if test "${enable_no_deps+set}" = set; then | |
2326 | enableval="$enable_no_deps" | |
2327 | ||
2328 | if test "$enableval" = yes; then | |
2329 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2330 | else | |
2331 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2332 | fi | |
2333 | ||
2334 | else | |
2335 | ||
2336 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
2337 | if test "x$LINE" != x ; then | |
2338 | eval "DEFAULT_$LINE" | |
2339 | else | |
2340 | no_cache=1 | |
2341 | fi | |
2342 | ||
2343 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
2344 | ||
2345 | fi | |
2346 | ||
2347 | ||
2348 | eval "$ac_cv_use_no_deps" | |
2349 | if test "$no_cache" != 1; then | |
2350 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2351 | fi | |
2352 | ||
2353 | if test "$wxUSE_NO_DEPS" = yes; then | |
2354 | echo "$ac_t""yes" 1>&6 | |
2355 | else | |
2356 | echo "$ac_t""no" 1>&6 | |
2357 | fi | |
2358 | ||
2359 | ||
2360 | ||
2361 | ||
2362 | echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6 | |
2363 | echo "configure:2364: checking "for --enable-intl"" >&5 | |
2364 | no_cache=0 | |
2365 | # Check whether --enable-intl or --disable-intl was given. | |
2366 | if test "${enable_intl+set}" = set; then | |
2367 | enableval="$enable_intl" | |
2368 | ||
2369 | if test "$enableval" = yes; then | |
2370 | ac_cv_use_intl='wxUSE_INTL=yes' | |
2371 | else | |
2372 | ac_cv_use_intl='wxUSE_INTL=no' | |
2373 | fi | |
2374 | ||
2375 | else | |
2376 | ||
2377 | LINE=`grep "wxUSE_INTL" ${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_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
2385 | ||
2386 | fi | |
2387 | ||
2388 | ||
2389 | eval "$ac_cv_use_intl" | |
2390 | if test "$no_cache" != 1; then | |
2391 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
2392 | fi | |
2393 | ||
2394 | if test "$wxUSE_INTL" = yes; then | |
2395 | echo "$ac_t""yes" 1>&6 | |
2396 | else | |
2397 | echo "$ac_t""no" 1>&6 | |
2398 | fi | |
2399 | ||
2400 | ||
2401 | echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6 | |
2402 | echo "configure:2403: checking "for --enable-config"" >&5 | |
2403 | no_cache=0 | |
2404 | # Check whether --enable-config or --disable-config was given. | |
2405 | if test "${enable_config+set}" = set; then | |
2406 | enableval="$enable_config" | |
2407 | ||
2408 | if test "$enableval" = yes; then | |
2409 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
2410 | else | |
2411 | ac_cv_use_config='wxUSE_CONFIG=no' | |
2412 | fi | |
2413 | ||
2414 | else | |
2415 | ||
2416 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
2417 | if test "x$LINE" != x ; then | |
2418 | eval "DEFAULT_$LINE" | |
2419 | else | |
2420 | no_cache=1 | |
2421 | fi | |
2422 | ||
2423 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
2424 | ||
2425 | fi | |
2426 | ||
2427 | ||
2428 | eval "$ac_cv_use_config" | |
2429 | if test "$no_cache" != 1; then | |
2430 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
2431 | fi | |
2432 | ||
2433 | if test "$wxUSE_CONFIG" = yes; then | |
2434 | echo "$ac_t""yes" 1>&6 | |
2435 | else | |
2436 | echo "$ac_t""no" 1>&6 | |
2437 | fi | |
2438 | ||
2439 | ||
2440 | if test "$wxUSE_GUI" = "yes"; then | |
2441 | ||
2442 | echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6 | |
2443 | echo "configure:2444: checking "for --enable-sockets"" >&5 | |
2444 | no_cache=0 | |
2445 | # Check whether --enable-sockets or --disable-sockets was given. | |
2446 | if test "${enable_sockets+set}" = set; then | |
2447 | enableval="$enable_sockets" | |
2448 | ||
2449 | if test "$enableval" = yes; then | |
2450 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
2451 | else | |
2452 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
2453 | fi | |
2454 | ||
2455 | else | |
2456 | ||
2457 | LINE=`grep "wxUSE_SOCKETS" ${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_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
2465 | ||
2466 | fi | |
2467 | ||
2468 | ||
2469 | eval "$ac_cv_use_sockets" | |
2470 | if test "$no_cache" != 1; then | |
2471 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
2472 | fi | |
2473 | ||
2474 | if test "$wxUSE_SOCKETS" = yes; then | |
2475 | echo "$ac_t""yes" 1>&6 | |
2476 | else | |
2477 | echo "$ac_t""no" 1>&6 | |
2478 | fi | |
2479 | ||
2480 | else | |
2481 | wxUSE_SOCKETS=no | |
2482 | fi | |
2483 | ||
2484 | ||
2485 | echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6 | |
2486 | echo "configure:2487: checking "for --enable-dialupman"" >&5 | |
2487 | no_cache=0 | |
2488 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
2489 | if test "${enable_dialupman+set}" = set; then | |
2490 | enableval="$enable_dialupman" | |
2491 | ||
2492 | if test "$enableval" = yes; then | |
2493 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
2494 | else | |
2495 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
2496 | fi | |
2497 | ||
2498 | else | |
2499 | ||
2500 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
2501 | if test "x$LINE" != x ; then | |
2502 | eval "DEFAULT_$LINE" | |
2503 | else | |
2504 | no_cache=1 | |
2505 | fi | |
2506 | ||
2507 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
2508 | ||
2509 | fi | |
2510 | ||
2511 | ||
2512 | eval "$ac_cv_use_dialupman" | |
2513 | if test "$no_cache" != 1; then | |
2514 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
2515 | fi | |
2516 | ||
2517 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
2518 | echo "$ac_t""yes" 1>&6 | |
2519 | else | |
2520 | echo "$ac_t""no" 1>&6 | |
2521 | fi | |
2522 | ||
2523 | ||
2524 | echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6 | |
2525 | echo "configure:2526: checking "for --enable-ipc"" >&5 | |
2526 | no_cache=0 | |
2527 | # Check whether --enable-ipc or --disable-ipc was given. | |
2528 | if test "${enable_ipc+set}" = set; then | |
2529 | enableval="$enable_ipc" | |
2530 | ||
2531 | if test "$enableval" = yes; then | |
2532 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
2533 | else | |
2534 | ac_cv_use_ipc='wxUSE_IPC=no' | |
2535 | fi | |
2536 | ||
2537 | else | |
2538 | ||
2539 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
2540 | if test "x$LINE" != x ; then | |
2541 | eval "DEFAULT_$LINE" | |
2542 | else | |
2543 | no_cache=1 | |
2544 | fi | |
2545 | ||
2546 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
2547 | ||
2548 | fi | |
2549 | ||
2550 | ||
2551 | eval "$ac_cv_use_ipc" | |
2552 | if test "$no_cache" != 1; then | |
2553 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
2554 | fi | |
2555 | ||
2556 | if test "$wxUSE_IPC" = yes; then | |
2557 | echo "$ac_t""yes" 1>&6 | |
2558 | else | |
2559 | echo "$ac_t""no" 1>&6 | |
2560 | fi | |
2561 | ||
2562 | ||
2563 | echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6 | |
2564 | echo "configure:2565: checking "for --enable-apple_ieee"" >&5 | |
2565 | no_cache=0 | |
2566 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
2567 | if test "${enable_apple_ieee+set}" = set; then | |
2568 | enableval="$enable_apple_ieee" | |
2569 | ||
2570 | if test "$enableval" = yes; then | |
2571 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
2572 | else | |
2573 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
2574 | fi | |
2575 | ||
2576 | else | |
2577 | ||
2578 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
2579 | if test "x$LINE" != x ; then | |
2580 | eval "DEFAULT_$LINE" | |
2581 | else | |
2582 | no_cache=1 | |
2583 | fi | |
2584 | ||
2585 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
2586 | ||
2587 | fi | |
2588 | ||
2589 | ||
2590 | eval "$ac_cv_use_apple_ieee" | |
2591 | if test "$no_cache" != 1; then | |
2592 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
2593 | fi | |
2594 | ||
2595 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
2596 | echo "$ac_t""yes" 1>&6 | |
2597 | else | |
2598 | echo "$ac_t""no" 1>&6 | |
2599 | fi | |
2600 | ||
2601 | ||
2602 | echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6 | |
2603 | echo "configure:2604: checking "for --enable-timedate"" >&5 | |
2604 | no_cache=0 | |
2605 | # Check whether --enable-timedate or --disable-timedate was given. | |
2606 | if test "${enable_timedate+set}" = set; then | |
2607 | enableval="$enable_timedate" | |
2608 | ||
2609 | if test "$enableval" = yes; then | |
2610 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
2611 | else | |
2612 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
2613 | fi | |
2614 | ||
2615 | else | |
2616 | ||
2617 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
2618 | if test "x$LINE" != x ; then | |
2619 | eval "DEFAULT_$LINE" | |
2620 | else | |
2621 | no_cache=1 | |
2622 | fi | |
2623 | ||
2624 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
2625 | ||
2626 | fi | |
2627 | ||
2628 | ||
2629 | eval "$ac_cv_use_timedate" | |
2630 | if test "$no_cache" != 1; then | |
2631 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
2632 | fi | |
2633 | ||
2634 | if test "$wxUSE_TIMEDATE" = yes; then | |
2635 | echo "$ac_t""yes" 1>&6 | |
2636 | else | |
2637 | echo "$ac_t""no" 1>&6 | |
2638 | fi | |
2639 | ||
2640 | ||
2641 | echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6 | |
2642 | echo "configure:2643: checking "for --enable-wave"" >&5 | |
2643 | no_cache=0 | |
2644 | # Check whether --enable-wave or --disable-wave was given. | |
2645 | if test "${enable_wave+set}" = set; then | |
2646 | enableval="$enable_wave" | |
2647 | ||
2648 | if test "$enableval" = yes; then | |
2649 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
2650 | else | |
2651 | ac_cv_use_wave='wxUSE_WAVE=no' | |
2652 | fi | |
2653 | ||
2654 | else | |
2655 | ||
2656 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` | |
2657 | if test "x$LINE" != x ; then | |
2658 | eval "DEFAULT_$LINE" | |
2659 | else | |
2660 | no_cache=1 | |
2661 | fi | |
2662 | ||
2663 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
2664 | ||
2665 | fi | |
2666 | ||
2667 | ||
2668 | eval "$ac_cv_use_wave" | |
2669 | if test "$no_cache" != 1; then | |
2670 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
2671 | fi | |
2672 | ||
2673 | if test "$wxUSE_WAVE" = yes; then | |
2674 | echo "$ac_t""yes" 1>&6 | |
2675 | else | |
2676 | echo "$ac_t""no" 1>&6 | |
2677 | fi | |
2678 | ||
2679 | ||
2680 | echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6 | |
2681 | echo "configure:2682: checking "for --enable-fraction"" >&5 | |
2682 | no_cache=0 | |
2683 | # Check whether --enable-fraction or --disable-fraction was given. | |
2684 | if test "${enable_fraction+set}" = set; then | |
2685 | enableval="$enable_fraction" | |
2686 | ||
2687 | if test "$enableval" = yes; then | |
2688 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
2689 | else | |
2690 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
2691 | fi | |
2692 | ||
2693 | else | |
2694 | ||
2695 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` | |
2696 | if test "x$LINE" != x ; then | |
2697 | eval "DEFAULT_$LINE" | |
2698 | else | |
2699 | no_cache=1 | |
2700 | fi | |
2701 | ||
2702 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
2703 | ||
2704 | fi | |
2705 | ||
2706 | ||
2707 | eval "$ac_cv_use_fraction" | |
2708 | if test "$no_cache" != 1; then | |
2709 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
2710 | fi | |
2711 | ||
2712 | if test "$wxUSE_FRACTION" = yes; then | |
2713 | echo "$ac_t""yes" 1>&6 | |
2714 | else | |
2715 | echo "$ac_t""no" 1>&6 | |
2716 | fi | |
2717 | ||
2718 | ||
2719 | echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6 | |
2720 | echo "configure:2721: checking "for --enable-dynlib"" >&5 | |
2721 | no_cache=0 | |
2722 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
2723 | if test "${enable_dynlib+set}" = set; then | |
2724 | enableval="$enable_dynlib" | |
2725 | ||
2726 | if test "$enableval" = yes; then | |
2727 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
2728 | else | |
2729 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
2730 | fi | |
2731 | ||
2732 | else | |
2733 | ||
2734 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
2735 | if test "x$LINE" != x ; then | |
2736 | eval "DEFAULT_$LINE" | |
2737 | else | |
2738 | no_cache=1 | |
2739 | fi | |
2740 | ||
2741 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
2742 | ||
2743 | fi | |
2744 | ||
2745 | ||
2746 | eval "$ac_cv_use_dynlib" | |
2747 | if test "$no_cache" != 1; then | |
2748 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
2749 | fi | |
2750 | ||
2751 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
2752 | echo "$ac_t""yes" 1>&6 | |
2753 | else | |
2754 | echo "$ac_t""no" 1>&6 | |
2755 | fi | |
2756 | ||
2757 | ||
2758 | echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6 | |
2759 | echo "configure:2760: checking "for --enable-longlong"" >&5 | |
2760 | no_cache=0 | |
2761 | # Check whether --enable-longlong or --disable-longlong was given. | |
2762 | if test "${enable_longlong+set}" = set; then | |
2763 | enableval="$enable_longlong" | |
2764 | ||
2765 | if test "$enableval" = yes; then | |
2766 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
2767 | else | |
2768 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
2769 | fi | |
2770 | ||
2771 | else | |
2772 | ||
2773 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
2774 | if test "x$LINE" != x ; then | |
2775 | eval "DEFAULT_$LINE" | |
2776 | else | |
2777 | no_cache=1 | |
2778 | fi | |
2779 | ||
2780 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
2781 | ||
2782 | fi | |
2783 | ||
2784 | ||
2785 | eval "$ac_cv_use_longlong" | |
2786 | if test "$no_cache" != 1; then | |
2787 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
2788 | fi | |
2789 | ||
2790 | if test "$wxUSE_LONGLONG" = yes; then | |
2791 | echo "$ac_t""yes" 1>&6 | |
2792 | else | |
2793 | echo "$ac_t""no" 1>&6 | |
2794 | fi | |
2795 | ||
2796 | ||
2797 | echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6 | |
2798 | echo "configure:2799: checking "for --enable-log"" >&5 | |
2799 | no_cache=0 | |
2800 | # Check whether --enable-log or --disable-log was given. | |
2801 | if test "${enable_log+set}" = set; then | |
2802 | enableval="$enable_log" | |
2803 | ||
2804 | if test "$enableval" = yes; then | |
2805 | ac_cv_use_log='wxUSE_LOG=yes' | |
2806 | else | |
2807 | ac_cv_use_log='wxUSE_LOG=no' | |
2808 | fi | |
2809 | ||
2810 | else | |
2811 | ||
2812 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
2813 | if test "x$LINE" != x ; then | |
2814 | eval "DEFAULT_$LINE" | |
2815 | else | |
2816 | no_cache=1 | |
2817 | fi | |
2818 | ||
2819 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
2820 | ||
2821 | fi | |
2822 | ||
2823 | ||
2824 | eval "$ac_cv_use_log" | |
2825 | if test "$no_cache" != 1; then | |
2826 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
2827 | fi | |
2828 | ||
2829 | if test "$wxUSE_LOG" = yes; then | |
2830 | echo "$ac_t""yes" 1>&6 | |
2831 | else | |
2832 | echo "$ac_t""no" 1>&6 | |
2833 | fi | |
2834 | ||
2835 | ||
2836 | echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6 | |
2837 | echo "configure:2838: checking "for --enable-streams"" >&5 | |
2838 | no_cache=0 | |
2839 | # Check whether --enable-streams or --disable-streams was given. | |
2840 | if test "${enable_streams+set}" = set; then | |
2841 | enableval="$enable_streams" | |
2842 | ||
2843 | if test "$enableval" = yes; then | |
2844 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
2845 | else | |
2846 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
2847 | fi | |
2848 | ||
2849 | else | |
2850 | ||
2851 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
2852 | if test "x$LINE" != x ; then | |
2853 | eval "DEFAULT_$LINE" | |
2854 | else | |
2855 | no_cache=1 | |
2856 | fi | |
2857 | ||
2858 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
2859 | ||
2860 | fi | |
2861 | ||
2862 | ||
2863 | eval "$ac_cv_use_streams" | |
2864 | if test "$no_cache" != 1; then | |
2865 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
2866 | fi | |
2867 | ||
2868 | if test "$wxUSE_STREAMS" = yes; then | |
2869 | echo "$ac_t""yes" 1>&6 | |
2870 | else | |
2871 | echo "$ac_t""no" 1>&6 | |
2872 | fi | |
2873 | ||
2874 | ||
2875 | echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6 | |
2876 | echo "configure:2877: checking "for --enable-file"" >&5 | |
2877 | no_cache=0 | |
2878 | # Check whether --enable-file or --disable-file was given. | |
2879 | if test "${enable_file+set}" = set; then | |
2880 | enableval="$enable_file" | |
2881 | ||
2882 | if test "$enableval" = yes; then | |
2883 | ac_cv_use_file='wxUSE_FILE=yes' | |
2884 | else | |
2885 | ac_cv_use_file='wxUSE_FILE=no' | |
2886 | fi | |
2887 | ||
2888 | else | |
2889 | ||
2890 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
2891 | if test "x$LINE" != x ; then | |
2892 | eval "DEFAULT_$LINE" | |
2893 | else | |
2894 | no_cache=1 | |
2895 | fi | |
2896 | ||
2897 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
2898 | ||
2899 | fi | |
2900 | ||
2901 | ||
2902 | eval "$ac_cv_use_file" | |
2903 | if test "$no_cache" != 1; then | |
2904 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
2905 | fi | |
2906 | ||
2907 | if test "$wxUSE_FILE" = yes; then | |
2908 | echo "$ac_t""yes" 1>&6 | |
2909 | else | |
2910 | echo "$ac_t""no" 1>&6 | |
2911 | fi | |
2912 | ||
2913 | ||
2914 | echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6 | |
2915 | echo "configure:2916: checking "for --enable-textfile"" >&5 | |
2916 | no_cache=0 | |
2917 | # Check whether --enable-textfile or --disable-textfile was given. | |
2918 | if test "${enable_textfile+set}" = set; then | |
2919 | enableval="$enable_textfile" | |
2920 | ||
2921 | if test "$enableval" = yes; then | |
2922 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
2923 | else | |
2924 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
2925 | fi | |
2926 | ||
2927 | else | |
2928 | ||
2929 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
2930 | if test "x$LINE" != x ; then | |
2931 | eval "DEFAULT_$LINE" | |
2932 | else | |
2933 | no_cache=1 | |
2934 | fi | |
2935 | ||
2936 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
2937 | ||
2938 | fi | |
2939 | ||
2940 | ||
2941 | eval "$ac_cv_use_textfile" | |
2942 | if test "$no_cache" != 1; then | |
2943 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
2944 | fi | |
2945 | ||
2946 | if test "$wxUSE_TEXTFILE" = yes; then | |
2947 | echo "$ac_t""yes" 1>&6 | |
2948 | else | |
2949 | echo "$ac_t""no" 1>&6 | |
2950 | fi | |
2951 | ||
2952 | ||
2953 | echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6 | |
2954 | echo "configure:2955: checking "for --enable-unicode"" >&5 | |
2955 | no_cache=0 | |
2956 | # Check whether --enable-unicode or --disable-unicode was given. | |
2957 | if test "${enable_unicode+set}" = set; then | |
2958 | enableval="$enable_unicode" | |
2959 | ||
2960 | if test "$enableval" = yes; then | |
2961 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
2962 | else | |
2963 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
2964 | fi | |
2965 | ||
2966 | else | |
2967 | ||
2968 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
2969 | if test "x$LINE" != x ; then | |
2970 | eval "DEFAULT_$LINE" | |
2971 | else | |
2972 | no_cache=1 | |
2973 | fi | |
2974 | ||
2975 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
2976 | ||
2977 | fi | |
2978 | ||
2979 | ||
2980 | eval "$ac_cv_use_unicode" | |
2981 | if test "$no_cache" != 1; then | |
2982 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
2983 | fi | |
2984 | ||
2985 | if test "$wxUSE_UNICODE" = yes; then | |
2986 | echo "$ac_t""yes" 1>&6 | |
2987 | else | |
2988 | echo "$ac_t""no" 1>&6 | |
2989 | fi | |
2990 | ||
2991 | ||
2992 | echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6 | |
2993 | echo "configure:2994: checking "for --enable-wcsrtombs"" >&5 | |
2994 | no_cache=0 | |
2995 | # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given. | |
2996 | if test "${enable_wcsrtombs+set}" = set; then | |
2997 | enableval="$enable_wcsrtombs" | |
2998 | ||
2999 | if test "$enableval" = yes; then | |
3000 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes' | |
3001 | else | |
3002 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no' | |
3003 | fi | |
3004 | ||
3005 | else | |
3006 | ||
3007 | LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}` | |
3008 | if test "x$LINE" != x ; then | |
3009 | eval "DEFAULT_$LINE" | |
3010 | else | |
3011 | no_cache=1 | |
3012 | fi | |
3013 | ||
3014 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS | |
3015 | ||
3016 | fi | |
3017 | ||
3018 | ||
3019 | eval "$ac_cv_use_wcsrtombs" | |
3020 | if test "$no_cache" != 1; then | |
3021 | echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp | |
3022 | fi | |
3023 | ||
3024 | if test "$wxUSE_WCSRTOMBS" = yes; then | |
3025 | echo "$ac_t""yes" 1>&6 | |
3026 | else | |
3027 | echo "$ac_t""no" 1>&6 | |
3028 | fi | |
3029 | ||
3030 | ||
3031 | echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6 | |
3032 | echo "configure:3033: checking "for --enable-wxprintfv"" >&5 | |
3033 | no_cache=0 | |
3034 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
3035 | if test "${enable_wxprintfv+set}" = set; then | |
3036 | enableval="$enable_wxprintfv" | |
3037 | ||
3038 | if test "$enableval" = yes; then | |
3039 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
3040 | else | |
3041 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
3042 | fi | |
3043 | ||
3044 | else | |
3045 | ||
3046 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
3047 | if test "x$LINE" != x ; then | |
3048 | eval "DEFAULT_$LINE" | |
3049 | else | |
3050 | no_cache=1 | |
3051 | fi | |
3052 | ||
3053 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
3054 | ||
3055 | fi | |
3056 | ||
3057 | ||
3058 | eval "$ac_cv_use_wxprintfv" | |
3059 | if test "$no_cache" != 1; then | |
3060 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
3061 | fi | |
3062 | ||
3063 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
3064 | echo "$ac_t""yes" 1>&6 | |
3065 | else | |
3066 | echo "$ac_t""no" 1>&6 | |
3067 | fi | |
3068 | ||
3069 | ||
3070 | echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6 | |
3071 | echo "configure:3072: checking "for --enable-joystick"" >&5 | |
3072 | no_cache=0 | |
3073 | # Check whether --enable-joystick or --disable-joystick was given. | |
3074 | if test "${enable_joystick+set}" = set; then | |
3075 | enableval="$enable_joystick" | |
3076 | ||
3077 | if test "$enableval" = yes; then | |
3078 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
3079 | else | |
3080 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
3081 | fi | |
3082 | ||
3083 | else | |
3084 | ||
3085 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
3086 | if test "x$LINE" != x ; then | |
3087 | eval "DEFAULT_$LINE" | |
3088 | else | |
3089 | no_cache=1 | |
3090 | fi | |
3091 | ||
3092 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
3093 | ||
3094 | fi | |
3095 | ||
3096 | ||
3097 | eval "$ac_cv_use_joystick" | |
3098 | if test "$no_cache" != 1; then | |
3099 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
3100 | fi | |
3101 | ||
3102 | if test "$wxUSE_JOYSTICK" = yes; then | |
3103 | echo "$ac_t""yes" 1>&6 | |
3104 | else | |
3105 | echo "$ac_t""no" 1>&6 | |
3106 | fi | |
3107 | ||
3108 | ||
3109 | echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6 | |
3110 | echo "configure:3111: checking "for --enable-std_iostreams"" >&5 | |
3111 | no_cache=0 | |
3112 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
3113 | if test "${enable_std_iostreams+set}" = set; then | |
3114 | enableval="$enable_std_iostreams" | |
3115 | ||
3116 | if test "$enableval" = yes; then | |
3117 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
3118 | else | |
3119 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
3120 | fi | |
3121 | ||
3122 | else | |
3123 | ||
3124 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` | |
3125 | if test "x$LINE" != x ; then | |
3126 | eval "DEFAULT_$LINE" | |
3127 | else | |
3128 | no_cache=1 | |
3129 | fi | |
3130 | ||
3131 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
3132 | ||
3133 | fi | |
3134 | ||
3135 | ||
3136 | eval "$ac_cv_use_std_iostreams" | |
3137 | if test "$no_cache" != 1; then | |
3138 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
3139 | fi | |
3140 | ||
3141 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
3142 | echo "$ac_t""yes" 1>&6 | |
3143 | else | |
3144 | echo "$ac_t""no" 1>&6 | |
3145 | fi | |
3146 | ||
3147 | ||
3148 | echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6 | |
3149 | echo "configure:3150: checking "for --enable-fs_inet"" >&5 | |
3150 | no_cache=0 | |
3151 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
3152 | if test "${enable_fs_inet+set}" = set; then | |
3153 | enableval="$enable_fs_inet" | |
3154 | ||
3155 | if test "$enableval" = yes; then | |
3156 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
3157 | else | |
3158 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
3159 | fi | |
3160 | ||
3161 | else | |
3162 | ||
3163 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
3164 | if test "x$LINE" != x ; then | |
3165 | eval "DEFAULT_$LINE" | |
3166 | else | |
3167 | no_cache=1 | |
3168 | fi | |
3169 | ||
3170 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
3171 | ||
3172 | fi | |
3173 | ||
3174 | ||
3175 | eval "$ac_cv_use_fs_inet" | |
3176 | if test "$no_cache" != 1; then | |
3177 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
3178 | fi | |
3179 | ||
3180 | if test "$wxUSE_FS_INET" = yes; then | |
3181 | echo "$ac_t""yes" 1>&6 | |
3182 | else | |
3183 | echo "$ac_t""no" 1>&6 | |
3184 | fi | |
3185 | ||
3186 | ||
3187 | echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6 | |
3188 | echo "configure:3189: checking "for --enable-fs_zip"" >&5 | |
3189 | no_cache=0 | |
3190 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
3191 | if test "${enable_fs_zip+set}" = set; then | |
3192 | enableval="$enable_fs_zip" | |
3193 | ||
3194 | if test "$enableval" = yes; then | |
3195 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
3196 | else | |
3197 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
3198 | fi | |
3199 | ||
3200 | else | |
3201 | ||
3202 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
3203 | if test "x$LINE" != x ; then | |
3204 | eval "DEFAULT_$LINE" | |
3205 | else | |
3206 | no_cache=1 | |
3207 | fi | |
3208 | ||
3209 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
3210 | ||
3211 | fi | |
3212 | ||
3213 | ||
3214 | eval "$ac_cv_use_fs_zip" | |
3215 | if test "$no_cache" != 1; then | |
3216 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
3217 | fi | |
3218 | ||
3219 | if test "$wxUSE_FS_ZIP" = yes; then | |
3220 | echo "$ac_t""yes" 1>&6 | |
3221 | else | |
3222 | echo "$ac_t""no" 1>&6 | |
3223 | fi | |
3224 | ||
3225 | ||
3226 | echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6 | |
3227 | echo "configure:3228: checking "for --enable-zipstream"" >&5 | |
3228 | no_cache=0 | |
3229 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
3230 | if test "${enable_zipstream+set}" = set; then | |
3231 | enableval="$enable_zipstream" | |
3232 | ||
3233 | if test "$enableval" = yes; then | |
3234 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
3235 | else | |
3236 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
3237 | fi | |
3238 | ||
3239 | else | |
3240 | ||
3241 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
3242 | if test "x$LINE" != x ; then | |
3243 | eval "DEFAULT_$LINE" | |
3244 | else | |
3245 | no_cache=1 | |
3246 | fi | |
3247 | ||
3248 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
3249 | ||
3250 | fi | |
3251 | ||
3252 | ||
3253 | eval "$ac_cv_use_zipstream" | |
3254 | if test "$no_cache" != 1; then | |
3255 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
3256 | fi | |
3257 | ||
3258 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
3259 | echo "$ac_t""yes" 1>&6 | |
3260 | else | |
3261 | echo "$ac_t""no" 1>&6 | |
3262 | fi | |
3263 | ||
3264 | ||
3265 | ||
3266 | ||
3267 | echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6 | |
3268 | echo "configure:3269: checking "for --enable-threads"" >&5 | |
3269 | no_cache=0 | |
3270 | # Check whether --enable-threads or --disable-threads was given. | |
3271 | if test "${enable_threads+set}" = set; then | |
3272 | enableval="$enable_threads" | |
3273 | ||
3274 | if test "$enableval" = yes; then | |
3275 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
3276 | else | |
3277 | ac_cv_use_threads='wxUSE_THREADS=no' | |
3278 | fi | |
3279 | ||
3280 | else | |
3281 | ||
3282 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
3283 | if test "x$LINE" != x ; then | |
3284 | eval "DEFAULT_$LINE" | |
3285 | else | |
3286 | no_cache=1 | |
3287 | fi | |
3288 | ||
3289 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
3290 | ||
3291 | fi | |
3292 | ||
3293 | ||
3294 | eval "$ac_cv_use_threads" | |
3295 | if test "$no_cache" != 1; then | |
3296 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
3297 | fi | |
3298 | ||
3299 | if test "$wxUSE_THREADS" = yes; then | |
3300 | echo "$ac_t""yes" 1>&6 | |
3301 | else | |
3302 | echo "$ac_t""no" 1>&6 | |
3303 | fi | |
3304 | ||
3305 | ||
3306 | echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6 | |
3307 | echo "configure:3308: checking "for --enable-serial"" >&5 | |
3308 | no_cache=0 | |
3309 | # Check whether --enable-serial or --disable-serial was given. | |
3310 | if test "${enable_serial+set}" = set; then | |
3311 | enableval="$enable_serial" | |
3312 | ||
3313 | if test "$enableval" = yes; then | |
3314 | ac_cv_use_serial='wxUSE_SERIAL=yes' | |
3315 | else | |
3316 | ac_cv_use_serial='wxUSE_SERIAL=no' | |
3317 | fi | |
3318 | ||
3319 | else | |
3320 | ||
3321 | LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}` | |
3322 | if test "x$LINE" != x ; then | |
3323 | eval "DEFAULT_$LINE" | |
3324 | else | |
3325 | no_cache=1 | |
3326 | fi | |
3327 | ||
3328 | ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL | |
3329 | ||
3330 | fi | |
3331 | ||
3332 | ||
3333 | eval "$ac_cv_use_serial" | |
3334 | if test "$no_cache" != 1; then | |
3335 | echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp | |
3336 | fi | |
3337 | ||
3338 | if test "$wxUSE_SERIAL" = yes; then | |
3339 | echo "$ac_t""yes" 1>&6 | |
3340 | else | |
3341 | echo "$ac_t""no" 1>&6 | |
3342 | fi | |
3343 | ||
3344 | ||
3345 | if test "$wxUSE_GUI" = "yes"; then | |
3346 | ||
3347 | ||
3348 | ||
3349 | echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6 | |
3350 | echo "configure:3351: checking "for --enable-docview"" >&5 | |
3351 | no_cache=0 | |
3352 | # Check whether --enable-docview or --disable-docview was given. | |
3353 | if test "${enable_docview+set}" = set; then | |
3354 | enableval="$enable_docview" | |
3355 | ||
3356 | if test "$enableval" = yes; then | |
3357 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
3358 | else | |
3359 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
3360 | fi | |
3361 | ||
3362 | else | |
3363 | ||
3364 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
3365 | if test "x$LINE" != x ; then | |
3366 | eval "DEFAULT_$LINE" | |
3367 | else | |
3368 | no_cache=1 | |
3369 | fi | |
3370 | ||
3371 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
3372 | ||
3373 | fi | |
3374 | ||
3375 | ||
3376 | eval "$ac_cv_use_docview" | |
3377 | if test "$no_cache" != 1; then | |
3378 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
3379 | fi | |
3380 | ||
3381 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
3382 | echo "$ac_t""yes" 1>&6 | |
3383 | else | |
3384 | echo "$ac_t""no" 1>&6 | |
3385 | fi | |
3386 | ||
3387 | ||
3388 | echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6 | |
3389 | echo "configure:3390: checking "for --enable-help"" >&5 | |
3390 | no_cache=0 | |
3391 | # Check whether --enable-help or --disable-help was given. | |
3392 | if test "${enable_help+set}" = set; then | |
3393 | enableval="$enable_help" | |
3394 | ||
3395 | if test "$enableval" = yes; then | |
3396 | ac_cv_use_help='wxUSE_HELP=yes' | |
3397 | else | |
3398 | ac_cv_use_help='wxUSE_HELP=no' | |
3399 | fi | |
3400 | ||
3401 | else | |
3402 | ||
3403 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
3404 | if test "x$LINE" != x ; then | |
3405 | eval "DEFAULT_$LINE" | |
3406 | else | |
3407 | no_cache=1 | |
3408 | fi | |
3409 | ||
3410 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
3411 | ||
3412 | fi | |
3413 | ||
3414 | ||
3415 | eval "$ac_cv_use_help" | |
3416 | if test "$no_cache" != 1; then | |
3417 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
3418 | fi | |
3419 | ||
3420 | if test "$wxUSE_HELP" = yes; then | |
3421 | echo "$ac_t""yes" 1>&6 | |
3422 | else | |
3423 | echo "$ac_t""no" 1>&6 | |
3424 | fi | |
3425 | ||
3426 | ||
3427 | echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6 | |
3428 | echo "configure:3429: checking "for --enable-constraints"" >&5 | |
3429 | no_cache=0 | |
3430 | # Check whether --enable-constraints or --disable-constraints was given. | |
3431 | if test "${enable_constraints+set}" = set; then | |
3432 | enableval="$enable_constraints" | |
3433 | ||
3434 | if test "$enableval" = yes; then | |
3435 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
3436 | else | |
3437 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
3438 | fi | |
3439 | ||
3440 | else | |
3441 | ||
3442 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
3443 | if test "x$LINE" != x ; then | |
3444 | eval "DEFAULT_$LINE" | |
3445 | else | |
3446 | no_cache=1 | |
3447 | fi | |
3448 | ||
3449 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
3450 | ||
3451 | fi | |
3452 | ||
3453 | ||
3454 | eval "$ac_cv_use_constraints" | |
3455 | if test "$no_cache" != 1; then | |
3456 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
3457 | fi | |
3458 | ||
3459 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
3460 | echo "$ac_t""yes" 1>&6 | |
3461 | else | |
3462 | echo "$ac_t""no" 1>&6 | |
3463 | fi | |
3464 | ||
3465 | ||
3466 | echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6 | |
3467 | echo "configure:3468: checking "for --enable-printarch"" >&5 | |
3468 | no_cache=0 | |
3469 | # Check whether --enable-printarch or --disable-printarch was given. | |
3470 | if test "${enable_printarch+set}" = set; then | |
3471 | enableval="$enable_printarch" | |
3472 | ||
3473 | if test "$enableval" = yes; then | |
3474 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
3475 | else | |
3476 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
3477 | fi | |
3478 | ||
3479 | else | |
3480 | ||
3481 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
3482 | if test "x$LINE" != x ; then | |
3483 | eval "DEFAULT_$LINE" | |
3484 | else | |
3485 | no_cache=1 | |
3486 | fi | |
3487 | ||
3488 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
3489 | ||
3490 | fi | |
3491 | ||
3492 | ||
3493 | eval "$ac_cv_use_printarch" | |
3494 | if test "$no_cache" != 1; then | |
3495 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
3496 | fi | |
3497 | ||
3498 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
3499 | echo "$ac_t""yes" 1>&6 | |
3500 | else | |
3501 | echo "$ac_t""no" 1>&6 | |
3502 | fi | |
3503 | ||
3504 | ||
3505 | echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6 | |
3506 | echo "configure:3507: checking "for --enable-mdi"" >&5 | |
3507 | no_cache=0 | |
3508 | # Check whether --enable-mdi or --disable-mdi was given. | |
3509 | if test "${enable_mdi+set}" = set; then | |
3510 | enableval="$enable_mdi" | |
3511 | ||
3512 | if test "$enableval" = yes; then | |
3513 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
3514 | else | |
3515 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
3516 | fi | |
3517 | ||
3518 | else | |
3519 | ||
3520 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
3521 | if test "x$LINE" != x ; then | |
3522 | eval "DEFAULT_$LINE" | |
3523 | else | |
3524 | no_cache=1 | |
3525 | fi | |
3526 | ||
3527 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
3528 | ||
3529 | fi | |
3530 | ||
3531 | ||
3532 | eval "$ac_cv_use_mdi" | |
3533 | if test "$no_cache" != 1; then | |
3534 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
3535 | fi | |
3536 | ||
3537 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
3538 | echo "$ac_t""yes" 1>&6 | |
3539 | else | |
3540 | echo "$ac_t""no" 1>&6 | |
3541 | fi | |
3542 | ||
3543 | ||
3544 | ||
3545 | echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6 | |
3546 | echo "configure:3547: checking "for --enable-postscript"" >&5 | |
3547 | no_cache=0 | |
3548 | # Check whether --enable-postscript or --disable-postscript was given. | |
3549 | if test "${enable_postscript+set}" = set; then | |
3550 | enableval="$enable_postscript" | |
3551 | ||
3552 | if test "$enableval" = yes; then | |
3553 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
3554 | else | |
3555 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
3556 | fi | |
3557 | ||
3558 | else | |
3559 | ||
3560 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
3561 | if test "x$LINE" != x ; then | |
3562 | eval "DEFAULT_$LINE" | |
3563 | else | |
3564 | no_cache=1 | |
3565 | fi | |
3566 | ||
3567 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
3568 | ||
3569 | fi | |
3570 | ||
3571 | ||
3572 | eval "$ac_cv_use_postscript" | |
3573 | if test "$no_cache" != 1; then | |
3574 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
3575 | fi | |
3576 | ||
3577 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
3578 | echo "$ac_t""yes" 1>&6 | |
3579 | else | |
3580 | echo "$ac_t""no" 1>&6 | |
3581 | fi | |
3582 | ||
3583 | ||
3584 | ||
3585 | ||
3586 | echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6 | |
3587 | echo "configure:3588: checking "for --enable-prologio"" >&5 | |
3588 | no_cache=0 | |
3589 | # Check whether --enable-prologio or --disable-prologio was given. | |
3590 | if test "${enable_prologio+set}" = set; then | |
3591 | enableval="$enable_prologio" | |
3592 | ||
3593 | if test "$enableval" = yes; then | |
3594 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
3595 | else | |
3596 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
3597 | fi | |
3598 | ||
3599 | else | |
3600 | ||
3601 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
3602 | if test "x$LINE" != x ; then | |
3603 | eval "DEFAULT_$LINE" | |
3604 | else | |
3605 | no_cache=1 | |
3606 | fi | |
3607 | ||
3608 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
3609 | ||
3610 | fi | |
3611 | ||
3612 | ||
3613 | eval "$ac_cv_use_prologio" | |
3614 | if test "$no_cache" != 1; then | |
3615 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
3616 | fi | |
3617 | ||
3618 | if test "$wxUSE_PROLOGIO" = yes; then | |
3619 | echo "$ac_t""yes" 1>&6 | |
3620 | else | |
3621 | echo "$ac_t""no" 1>&6 | |
3622 | fi | |
3623 | ||
3624 | ||
3625 | echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6 | |
3626 | echo "configure:3627: checking "for --enable-resources"" >&5 | |
3627 | no_cache=0 | |
3628 | # Check whether --enable-resources or --disable-resources was given. | |
3629 | if test "${enable_resources+set}" = set; then | |
3630 | enableval="$enable_resources" | |
3631 | ||
3632 | if test "$enableval" = yes; then | |
3633 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
3634 | else | |
3635 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
3636 | fi | |
3637 | ||
3638 | else | |
3639 | ||
3640 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
3641 | if test "x$LINE" != x ; then | |
3642 | eval "DEFAULT_$LINE" | |
3643 | else | |
3644 | no_cache=1 | |
3645 | fi | |
3646 | ||
3647 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
3648 | ||
3649 | fi | |
3650 | ||
3651 | ||
3652 | eval "$ac_cv_use_resources" | |
3653 | if test "$no_cache" != 1; then | |
3654 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
3655 | fi | |
3656 | ||
3657 | if test "$wxUSE_RESOURCES" = yes; then | |
3658 | echo "$ac_t""yes" 1>&6 | |
3659 | else | |
3660 | echo "$ac_t""no" 1>&6 | |
3661 | fi | |
3662 | ||
3663 | ||
3664 | ||
3665 | echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6 | |
3666 | echo "configure:3667: checking "for --enable-xresources"" >&5 | |
3667 | no_cache=0 | |
3668 | # Check whether --enable-xresources or --disable-xresources was given. | |
3669 | if test "${enable_xresources+set}" = set; then | |
3670 | enableval="$enable_xresources" | |
3671 | ||
3672 | if test "$enableval" = yes; then | |
3673 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
3674 | else | |
3675 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
3676 | fi | |
3677 | ||
3678 | else | |
3679 | ||
3680 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` | |
3681 | if test "x$LINE" != x ; then | |
3682 | eval "DEFAULT_$LINE" | |
3683 | else | |
3684 | no_cache=1 | |
3685 | fi | |
3686 | ||
3687 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
3688 | ||
3689 | fi | |
3690 | ||
3691 | ||
3692 | eval "$ac_cv_use_xresources" | |
3693 | if test "$no_cache" != 1; then | |
3694 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
3695 | fi | |
3696 | ||
3697 | if test "$wxUSE_X_RESOURCES" = yes; then | |
3698 | echo "$ac_t""yes" 1>&6 | |
3699 | else | |
3700 | echo "$ac_t""no" 1>&6 | |
3701 | fi | |
3702 | ||
3703 | ||
3704 | ||
3705 | ||
3706 | echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6 | |
3707 | echo "configure:3708: checking "for --enable-clipboard"" >&5 | |
3708 | no_cache=0 | |
3709 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
3710 | if test "${enable_clipboard+set}" = set; then | |
3711 | enableval="$enable_clipboard" | |
3712 | ||
3713 | if test "$enableval" = yes; then | |
3714 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
3715 | else | |
3716 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
3717 | fi | |
3718 | ||
3719 | else | |
3720 | ||
3721 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
3722 | if test "x$LINE" != x ; then | |
3723 | eval "DEFAULT_$LINE" | |
3724 | else | |
3725 | no_cache=1 | |
3726 | fi | |
3727 | ||
3728 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
3729 | ||
3730 | fi | |
3731 | ||
3732 | ||
3733 | eval "$ac_cv_use_clipboard" | |
3734 | if test "$no_cache" != 1; then | |
3735 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
3736 | fi | |
3737 | ||
3738 | if test "$wxUSE_CLIPBOARD" = yes; then | |
3739 | echo "$ac_t""yes" 1>&6 | |
3740 | else | |
3741 | echo "$ac_t""no" 1>&6 | |
3742 | fi | |
3743 | ||
3744 | ||
3745 | echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6 | |
3746 | echo "configure:3747: checking "for --enable-dnd"" >&5 | |
3747 | no_cache=0 | |
3748 | # Check whether --enable-dnd or --disable-dnd was given. | |
3749 | if test "${enable_dnd+set}" = set; then | |
3750 | enableval="$enable_dnd" | |
3751 | ||
3752 | if test "$enableval" = yes; then | |
3753 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
3754 | else | |
3755 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
3756 | fi | |
3757 | ||
3758 | else | |
3759 | ||
3760 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
3761 | if test "x$LINE" != x ; then | |
3762 | eval "DEFAULT_$LINE" | |
3763 | else | |
3764 | no_cache=1 | |
3765 | fi | |
3766 | ||
3767 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
3768 | ||
3769 | fi | |
3770 | ||
3771 | ||
3772 | eval "$ac_cv_use_dnd" | |
3773 | if test "$no_cache" != 1; then | |
3774 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
3775 | fi | |
3776 | ||
3777 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
3778 | echo "$ac_t""yes" 1>&6 | |
3779 | else | |
3780 | echo "$ac_t""no" 1>&6 | |
3781 | fi | |
3782 | ||
3783 | ||
3784 | ||
3785 | echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6 | |
3786 | echo "configure:3787: checking "for --enable-wxtree"" >&5 | |
3787 | no_cache=0 | |
3788 | # Check whether --enable-wxtree or --disable-wxtree was given. | |
3789 | if test "${enable_wxtree+set}" = set; then | |
3790 | enableval="$enable_wxtree" | |
3791 | ||
3792 | if test "$enableval" = yes; then | |
3793 | ac_cv_use_wxtree='wxUSE_WXTREE=yes' | |
3794 | else | |
3795 | ac_cv_use_wxtree='wxUSE_WXTREE=no' | |
3796 | fi | |
3797 | ||
3798 | else | |
3799 | ||
3800 | LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}` | |
3801 | if test "x$LINE" != x ; then | |
3802 | eval "DEFAULT_$LINE" | |
3803 | else | |
3804 | no_cache=1 | |
3805 | fi | |
3806 | ||
3807 | ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE | |
3808 | ||
3809 | fi | |
3810 | ||
3811 | ||
3812 | eval "$ac_cv_use_wxtree" | |
3813 | if test "$no_cache" != 1; then | |
3814 | echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp | |
3815 | fi | |
3816 | ||
3817 | if test "$wxUSE_WXTREE" = yes; then | |
3818 | echo "$ac_t""yes" 1>&6 | |
3819 | else | |
3820 | echo "$ac_t""no" 1>&6 | |
3821 | fi | |
3822 | ||
3823 | ||
3824 | ||
3825 | ||
3826 | echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6 | |
3827 | echo "configure:3828: checking "for --enable-controls"" >&5 | |
3828 | no_cache=0 | |
3829 | # Check whether --enable-controls or --disable-controls was given. | |
3830 | if test "${enable_controls+set}" = set; then | |
3831 | enableval="$enable_controls" | |
3832 | ||
3833 | if test "$enableval" = yes; then | |
3834 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
3835 | else | |
3836 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
3837 | fi | |
3838 | ||
3839 | else | |
3840 | ||
3841 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
3842 | if test "x$LINE" != x ; then | |
3843 | eval "DEFAULT_$LINE" | |
3844 | else | |
3845 | no_cache=1 | |
3846 | fi | |
3847 | ||
3848 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
3849 | ||
3850 | fi | |
3851 | ||
3852 | ||
3853 | eval "$ac_cv_use_controls" | |
3854 | if test "$no_cache" != 1; then | |
3855 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
3856 | fi | |
3857 | ||
3858 | if test "$wxUSE_CONTROLS" = yes; then | |
3859 | echo "$ac_t""yes" 1>&6 | |
3860 | else | |
3861 | echo "$ac_t""no" 1>&6 | |
3862 | fi | |
3863 | ||
3864 | ||
3865 | if test "$wxUSE_CONTROLS" = "yes"; then | |
3866 | DEFAULT_wxUSE_ACCEL=yes | |
3867 | DEFAULT_wxUSE_CARET=yes | |
3868 | DEFAULT_wxUSE_COMBOBOX=yes | |
3869 | DEFAULT_wxUSE_BMPBUTTON=yes | |
3870 | DEFAULT_wxUSE_CHECKBOX=yes | |
3871 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
3872 | DEFAULT_wxUSE_CHOICE=yes | |
3873 | DEFAULT_wxUSE_GAUGE=yes | |
3874 | DEFAULT_wxUSE_GRID=yes | |
3875 | DEFAULT_wxUSE_NEW_GRID=no | |
3876 | DEFAULT_wxUSE_IMAGLIST=yes | |
3877 | DEFAULT_wxUSE_LISTBOX=yes | |
3878 | DEFAULT_wxUSE_LISTCTRL=yes | |
3879 | DEFAULT_wxUSE_NOTEBOOK=yes | |
3880 | DEFAULT_wxUSE_RADIOBOX=yes | |
3881 | DEFAULT_wxUSE_RADIOBTN=yes | |
3882 | DEFAULT_wxUSE_SASH=yes | |
3883 | DEFAULT_wxUSE_SCROLLBAR=yes | |
3884 | DEFAULT_wxUSE_SLIDER=yes | |
3885 | DEFAULT_wxUSE_SPINBTN=yes | |
3886 | DEFAULT_wxUSE_SPINCTRL=yes | |
3887 | DEFAULT_wxUSE_SPLITTER=yes | |
3888 | DEFAULT_wxUSE_STATBMP=yes | |
3889 | DEFAULT_wxUSE_STATBOX=yes | |
3890 | DEFAULT_wxUSE_STATLINE=yes | |
3891 | DEFAULT_wxUSE_STATUSBAR=yes | |
3892 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
3893 | DEFAULT_wxUSE_TOOLBAR=yes | |
3894 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
3895 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
3896 | DEFAULT_wxUSE_TOOLTIPS=yes | |
3897 | DEFAULT_wxUSE_TREECTRL=yes | |
3898 | elif test "$wxUSE_CONTROLS" = "no"; then | |
3899 | DEFAULT_wxUSE_ACCEL=no | |
3900 | DEFAULT_wxUSE_CARET=no | |
3901 | DEFAULT_wxUSE_COMBOBOX=no | |
3902 | DEFAULT_wxUSE_BMPBUTTON=no | |
3903 | DEFAULT_wxUSE_CHECKBOX=no | |
3904 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
3905 | DEFAULT_wxUSE_CHOICE=no | |
3906 | DEFAULT_wxUSE_GAUGE=no | |
3907 | DEFAULT_wxUSE_GRID=no | |
3908 | DEFAULT_wxUSE_NEW_GRID=no | |
3909 | DEFAULT_wxUSE_IMAGLIST=no | |
3910 | DEFAULT_wxUSE_LISTBOX=no | |
3911 | DEFAULT_wxUSE_LISTCTRL=no | |
3912 | DEFAULT_wxUSE_NOTEBOOK=no | |
3913 | DEFAULT_wxUSE_RADIOBOX=no | |
3914 | DEFAULT_wxUSE_RADIOBTN=no | |
3915 | DEFAULT_wxUSE_SASH=no | |
3916 | DEFAULT_wxUSE_SCROLLBAR=no | |
3917 | DEFAULT_wxUSE_SLIDER=no | |
3918 | DEFAULT_wxUSE_SPINBTN=no | |
3919 | DEFAULT_wxUSE_SPINCTRL=no | |
3920 | DEFAULT_wxUSE_SPLITTER=no | |
3921 | DEFAULT_wxUSE_STATBMP=no | |
3922 | DEFAULT_wxUSE_STATBOX=no | |
3923 | DEFAULT_wxUSE_STATLINE=no | |
3924 | DEFAULT_wxUSE_STATUSBAR=no | |
3925 | DEFAULT_wxUSE_TAB_DIALOG=no | |
3926 | DEFAULT_wxUSE_TOOLBAR=no | |
3927 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
3928 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
3929 | DEFAULT_wxUSE_TOOLTIPS=no | |
3930 | DEFAULT_wxUSE_TREECTRL=no | |
3931 | fi | |
3932 | ||
3933 | ||
3934 | echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6 | |
3935 | echo "configure:3936: checking "for --enable-accel"" >&5 | |
3936 | no_cache=0 | |
3937 | # Check whether --enable-accel or --disable-accel was given. | |
3938 | if test "${enable_accel+set}" = set; then | |
3939 | enableval="$enable_accel" | |
3940 | ||
3941 | if test "$enableval" = yes; then | |
3942 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
3943 | else | |
3944 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
3945 | fi | |
3946 | ||
3947 | else | |
3948 | ||
3949 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
3950 | if test "x$LINE" != x ; then | |
3951 | eval "DEFAULT_$LINE" | |
3952 | else | |
3953 | no_cache=1 | |
3954 | fi | |
3955 | ||
3956 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
3957 | ||
3958 | fi | |
3959 | ||
3960 | ||
3961 | eval "$ac_cv_use_accel" | |
3962 | if test "$no_cache" != 1; then | |
3963 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
3964 | fi | |
3965 | ||
3966 | if test "$wxUSE_ACCEL" = yes; then | |
3967 | echo "$ac_t""yes" 1>&6 | |
3968 | else | |
3969 | echo "$ac_t""no" 1>&6 | |
3970 | fi | |
3971 | ||
3972 | ||
3973 | echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6 | |
3974 | echo "configure:3975: checking "for --enable-caret"" >&5 | |
3975 | no_cache=0 | |
3976 | # Check whether --enable-caret or --disable-caret was given. | |
3977 | if test "${enable_caret+set}" = set; then | |
3978 | enableval="$enable_caret" | |
3979 | ||
3980 | if test "$enableval" = yes; then | |
3981 | ac_cv_use_caret='wxUSE_CARET=yes' | |
3982 | else | |
3983 | ac_cv_use_caret='wxUSE_CARET=no' | |
3984 | fi | |
3985 | ||
3986 | else | |
3987 | ||
3988 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
3989 | if test "x$LINE" != x ; then | |
3990 | eval "DEFAULT_$LINE" | |
3991 | else | |
3992 | no_cache=1 | |
3993 | fi | |
3994 | ||
3995 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
3996 | ||
3997 | fi | |
3998 | ||
3999 | ||
4000 | eval "$ac_cv_use_caret" | |
4001 | if test "$no_cache" != 1; then | |
4002 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
4003 | fi | |
4004 | ||
4005 | if test "$wxUSE_CARET" = yes; then | |
4006 | echo "$ac_t""yes" 1>&6 | |
4007 | else | |
4008 | echo "$ac_t""no" 1>&6 | |
4009 | fi | |
4010 | ||
4011 | ||
4012 | echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6 | |
4013 | echo "configure:4014: checking "for --enable-bmpbutton"" >&5 | |
4014 | no_cache=0 | |
4015 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
4016 | if test "${enable_bmpbutton+set}" = set; then | |
4017 | enableval="$enable_bmpbutton" | |
4018 | ||
4019 | if test "$enableval" = yes; then | |
4020 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
4021 | else | |
4022 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
4023 | fi | |
4024 | ||
4025 | else | |
4026 | ||
4027 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
4028 | if test "x$LINE" != x ; then | |
4029 | eval "DEFAULT_$LINE" | |
4030 | else | |
4031 | no_cache=1 | |
4032 | fi | |
4033 | ||
4034 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
4035 | ||
4036 | fi | |
4037 | ||
4038 | ||
4039 | eval "$ac_cv_use_bmpbutton" | |
4040 | if test "$no_cache" != 1; then | |
4041 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
4042 | fi | |
4043 | ||
4044 | if test "$wxUSE_BMPBUTTON" = yes; then | |
4045 | echo "$ac_t""yes" 1>&6 | |
4046 | else | |
4047 | echo "$ac_t""no" 1>&6 | |
4048 | fi | |
4049 | ||
4050 | ||
4051 | echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6 | |
4052 | echo "configure:4053: checking "for --enable-checkbox"" >&5 | |
4053 | no_cache=0 | |
4054 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
4055 | if test "${enable_checkbox+set}" = set; then | |
4056 | enableval="$enable_checkbox" | |
4057 | ||
4058 | if test "$enableval" = yes; then | |
4059 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
4060 | else | |
4061 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
4062 | fi | |
4063 | ||
4064 | else | |
4065 | ||
4066 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
4067 | if test "x$LINE" != x ; then | |
4068 | eval "DEFAULT_$LINE" | |
4069 | else | |
4070 | no_cache=1 | |
4071 | fi | |
4072 | ||
4073 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
4074 | ||
4075 | fi | |
4076 | ||
4077 | ||
4078 | eval "$ac_cv_use_checkbox" | |
4079 | if test "$no_cache" != 1; then | |
4080 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
4081 | fi | |
4082 | ||
4083 | if test "$wxUSE_CHECKBOX" = yes; then | |
4084 | echo "$ac_t""yes" 1>&6 | |
4085 | else | |
4086 | echo "$ac_t""no" 1>&6 | |
4087 | fi | |
4088 | ||
4089 | ||
4090 | echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6 | |
4091 | echo "configure:4092: checking "for --enable-checklst"" >&5 | |
4092 | no_cache=0 | |
4093 | # Check whether --enable-checklst or --disable-checklst was given. | |
4094 | if test "${enable_checklst+set}" = set; then | |
4095 | enableval="$enable_checklst" | |
4096 | ||
4097 | if test "$enableval" = yes; then | |
4098 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
4099 | else | |
4100 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
4101 | fi | |
4102 | ||
4103 | else | |
4104 | ||
4105 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
4106 | if test "x$LINE" != x ; then | |
4107 | eval "DEFAULT_$LINE" | |
4108 | else | |
4109 | no_cache=1 | |
4110 | fi | |
4111 | ||
4112 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
4113 | ||
4114 | fi | |
4115 | ||
4116 | ||
4117 | eval "$ac_cv_use_checklst" | |
4118 | if test "$no_cache" != 1; then | |
4119 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
4120 | fi | |
4121 | ||
4122 | if test "$wxUSE_CHECKLST" = yes; then | |
4123 | echo "$ac_t""yes" 1>&6 | |
4124 | else | |
4125 | echo "$ac_t""no" 1>&6 | |
4126 | fi | |
4127 | ||
4128 | ||
4129 | echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6 | |
4130 | echo "configure:4131: checking "for --enable-choice"" >&5 | |
4131 | no_cache=0 | |
4132 | # Check whether --enable-choice or --disable-choice was given. | |
4133 | if test "${enable_choice+set}" = set; then | |
4134 | enableval="$enable_choice" | |
4135 | ||
4136 | if test "$enableval" = yes; then | |
4137 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
4138 | else | |
4139 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
4140 | fi | |
4141 | ||
4142 | else | |
4143 | ||
4144 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
4145 | if test "x$LINE" != x ; then | |
4146 | eval "DEFAULT_$LINE" | |
4147 | else | |
4148 | no_cache=1 | |
4149 | fi | |
4150 | ||
4151 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
4152 | ||
4153 | fi | |
4154 | ||
4155 | ||
4156 | eval "$ac_cv_use_choice" | |
4157 | if test "$no_cache" != 1; then | |
4158 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
4159 | fi | |
4160 | ||
4161 | if test "$wxUSE_CHOICE" = yes; then | |
4162 | echo "$ac_t""yes" 1>&6 | |
4163 | else | |
4164 | echo "$ac_t""no" 1>&6 | |
4165 | fi | |
4166 | ||
4167 | ||
4168 | echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6 | |
4169 | echo "configure:4170: checking "for --enable-combobox"" >&5 | |
4170 | no_cache=0 | |
4171 | # Check whether --enable-combobox or --disable-combobox was given. | |
4172 | if test "${enable_combobox+set}" = set; then | |
4173 | enableval="$enable_combobox" | |
4174 | ||
4175 | if test "$enableval" = yes; then | |
4176 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
4177 | else | |
4178 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
4179 | fi | |
4180 | ||
4181 | else | |
4182 | ||
4183 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
4184 | if test "x$LINE" != x ; then | |
4185 | eval "DEFAULT_$LINE" | |
4186 | else | |
4187 | no_cache=1 | |
4188 | fi | |
4189 | ||
4190 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
4191 | ||
4192 | fi | |
4193 | ||
4194 | ||
4195 | eval "$ac_cv_use_combobox" | |
4196 | if test "$no_cache" != 1; then | |
4197 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
4198 | fi | |
4199 | ||
4200 | if test "$wxUSE_COMBOBOX" = yes; then | |
4201 | echo "$ac_t""yes" 1>&6 | |
4202 | else | |
4203 | echo "$ac_t""no" 1>&6 | |
4204 | fi | |
4205 | ||
4206 | ||
4207 | echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6 | |
4208 | echo "configure:4209: checking "for --enable-gauge"" >&5 | |
4209 | no_cache=0 | |
4210 | # Check whether --enable-gauge or --disable-gauge was given. | |
4211 | if test "${enable_gauge+set}" = set; then | |
4212 | enableval="$enable_gauge" | |
4213 | ||
4214 | if test "$enableval" = yes; then | |
4215 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
4216 | else | |
4217 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
4218 | fi | |
4219 | ||
4220 | else | |
4221 | ||
4222 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
4223 | if test "x$LINE" != x ; then | |
4224 | eval "DEFAULT_$LINE" | |
4225 | else | |
4226 | no_cache=1 | |
4227 | fi | |
4228 | ||
4229 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
4230 | ||
4231 | fi | |
4232 | ||
4233 | ||
4234 | eval "$ac_cv_use_gauge" | |
4235 | if test "$no_cache" != 1; then | |
4236 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
4237 | fi | |
4238 | ||
4239 | if test "$wxUSE_GAUGE" = yes; then | |
4240 | echo "$ac_t""yes" 1>&6 | |
4241 | else | |
4242 | echo "$ac_t""no" 1>&6 | |
4243 | fi | |
4244 | ||
4245 | ||
4246 | echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6 | |
4247 | echo "configure:4248: checking "for --enable-grid"" >&5 | |
4248 | no_cache=0 | |
4249 | # Check whether --enable-grid or --disable-grid was given. | |
4250 | if test "${enable_grid+set}" = set; then | |
4251 | enableval="$enable_grid" | |
4252 | ||
4253 | if test "$enableval" = yes; then | |
4254 | ac_cv_use_grid='wxUSE_GRID=yes' | |
4255 | else | |
4256 | ac_cv_use_grid='wxUSE_GRID=no' | |
4257 | fi | |
4258 | ||
4259 | else | |
4260 | ||
4261 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
4262 | if test "x$LINE" != x ; then | |
4263 | eval "DEFAULT_$LINE" | |
4264 | else | |
4265 | no_cache=1 | |
4266 | fi | |
4267 | ||
4268 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
4269 | ||
4270 | fi | |
4271 | ||
4272 | ||
4273 | eval "$ac_cv_use_grid" | |
4274 | if test "$no_cache" != 1; then | |
4275 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
4276 | fi | |
4277 | ||
4278 | if test "$wxUSE_GRID" = yes; then | |
4279 | echo "$ac_t""yes" 1>&6 | |
4280 | else | |
4281 | echo "$ac_t""no" 1>&6 | |
4282 | fi | |
4283 | ||
4284 | ||
4285 | echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6 | |
4286 | echo "configure:4287: checking "for --enable-newgrid"" >&5 | |
4287 | no_cache=0 | |
4288 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
4289 | if test "${enable_newgrid+set}" = set; then | |
4290 | enableval="$enable_newgrid" | |
4291 | ||
4292 | if test "$enableval" = yes; then | |
4293 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
4294 | else | |
4295 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
4296 | fi | |
4297 | ||
4298 | else | |
4299 | ||
4300 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` | |
4301 | if test "x$LINE" != x ; then | |
4302 | eval "DEFAULT_$LINE" | |
4303 | else | |
4304 | no_cache=1 | |
4305 | fi | |
4306 | ||
4307 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
4308 | ||
4309 | fi | |
4310 | ||
4311 | ||
4312 | eval "$ac_cv_use_newgrid" | |
4313 | if test "$no_cache" != 1; then | |
4314 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
4315 | fi | |
4316 | ||
4317 | if test "$wxUSE_NEW_GRID" = yes; then | |
4318 | echo "$ac_t""yes" 1>&6 | |
4319 | else | |
4320 | echo "$ac_t""no" 1>&6 | |
4321 | fi | |
4322 | ||
4323 | ||
4324 | echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6 | |
4325 | echo "configure:4326: checking "for --enable-imaglist"" >&5 | |
4326 | no_cache=0 | |
4327 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
4328 | if test "${enable_imaglist+set}" = set; then | |
4329 | enableval="$enable_imaglist" | |
4330 | ||
4331 | if test "$enableval" = yes; then | |
4332 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
4333 | else | |
4334 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
4335 | fi | |
4336 | ||
4337 | else | |
4338 | ||
4339 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
4340 | if test "x$LINE" != x ; then | |
4341 | eval "DEFAULT_$LINE" | |
4342 | else | |
4343 | no_cache=1 | |
4344 | fi | |
4345 | ||
4346 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
4347 | ||
4348 | fi | |
4349 | ||
4350 | ||
4351 | eval "$ac_cv_use_imaglist" | |
4352 | if test "$no_cache" != 1; then | |
4353 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
4354 | fi | |
4355 | ||
4356 | if test "$wxUSE_IMAGLIST" = yes; then | |
4357 | echo "$ac_t""yes" 1>&6 | |
4358 | else | |
4359 | echo "$ac_t""no" 1>&6 | |
4360 | fi | |
4361 | ||
4362 | ||
4363 | echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6 | |
4364 | echo "configure:4365: checking "for --enable-listbox"" >&5 | |
4365 | no_cache=0 | |
4366 | # Check whether --enable-listbox or --disable-listbox was given. | |
4367 | if test "${enable_listbox+set}" = set; then | |
4368 | enableval="$enable_listbox" | |
4369 | ||
4370 | if test "$enableval" = yes; then | |
4371 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
4372 | else | |
4373 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
4374 | fi | |
4375 | ||
4376 | else | |
4377 | ||
4378 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
4379 | if test "x$LINE" != x ; then | |
4380 | eval "DEFAULT_$LINE" | |
4381 | else | |
4382 | no_cache=1 | |
4383 | fi | |
4384 | ||
4385 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
4386 | ||
4387 | fi | |
4388 | ||
4389 | ||
4390 | eval "$ac_cv_use_listbox" | |
4391 | if test "$no_cache" != 1; then | |
4392 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
4393 | fi | |
4394 | ||
4395 | if test "$wxUSE_LISTBOX" = yes; then | |
4396 | echo "$ac_t""yes" 1>&6 | |
4397 | else | |
4398 | echo "$ac_t""no" 1>&6 | |
4399 | fi | |
4400 | ||
4401 | ||
4402 | echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6 | |
4403 | echo "configure:4404: checking "for --enable-listctrl"" >&5 | |
4404 | no_cache=0 | |
4405 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
4406 | if test "${enable_listctrl+set}" = set; then | |
4407 | enableval="$enable_listctrl" | |
4408 | ||
4409 | if test "$enableval" = yes; then | |
4410 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
4411 | else | |
4412 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
4413 | fi | |
4414 | ||
4415 | else | |
4416 | ||
4417 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
4418 | if test "x$LINE" != x ; then | |
4419 | eval "DEFAULT_$LINE" | |
4420 | else | |
4421 | no_cache=1 | |
4422 | fi | |
4423 | ||
4424 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
4425 | ||
4426 | fi | |
4427 | ||
4428 | ||
4429 | eval "$ac_cv_use_listctrl" | |
4430 | if test "$no_cache" != 1; then | |
4431 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
4432 | fi | |
4433 | ||
4434 | if test "$wxUSE_LISTCTRL" = yes; then | |
4435 | echo "$ac_t""yes" 1>&6 | |
4436 | else | |
4437 | echo "$ac_t""no" 1>&6 | |
4438 | fi | |
4439 | ||
4440 | ||
4441 | echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6 | |
4442 | echo "configure:4443: checking "for --enable-notebook"" >&5 | |
4443 | no_cache=0 | |
4444 | # Check whether --enable-notebook or --disable-notebook was given. | |
4445 | if test "${enable_notebook+set}" = set; then | |
4446 | enableval="$enable_notebook" | |
4447 | ||
4448 | if test "$enableval" = yes; then | |
4449 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
4450 | else | |
4451 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
4452 | fi | |
4453 | ||
4454 | else | |
4455 | ||
4456 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
4457 | if test "x$LINE" != x ; then | |
4458 | eval "DEFAULT_$LINE" | |
4459 | else | |
4460 | no_cache=1 | |
4461 | fi | |
4462 | ||
4463 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
4464 | ||
4465 | fi | |
4466 | ||
4467 | ||
4468 | eval "$ac_cv_use_notebook" | |
4469 | if test "$no_cache" != 1; then | |
4470 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
4471 | fi | |
4472 | ||
4473 | if test "$wxUSE_NOTEBOOK" = yes; then | |
4474 | echo "$ac_t""yes" 1>&6 | |
4475 | else | |
4476 | echo "$ac_t""no" 1>&6 | |
4477 | fi | |
4478 | ||
4479 | ||
4480 | echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6 | |
4481 | echo "configure:4482: checking "for --enable-radiobox"" >&5 | |
4482 | no_cache=0 | |
4483 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
4484 | if test "${enable_radiobox+set}" = set; then | |
4485 | enableval="$enable_radiobox" | |
4486 | ||
4487 | if test "$enableval" = yes; then | |
4488 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
4489 | else | |
4490 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
4491 | fi | |
4492 | ||
4493 | else | |
4494 | ||
4495 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
4496 | if test "x$LINE" != x ; then | |
4497 | eval "DEFAULT_$LINE" | |
4498 | else | |
4499 | no_cache=1 | |
4500 | fi | |
4501 | ||
4502 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
4503 | ||
4504 | fi | |
4505 | ||
4506 | ||
4507 | eval "$ac_cv_use_radiobox" | |
4508 | if test "$no_cache" != 1; then | |
4509 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
4510 | fi | |
4511 | ||
4512 | if test "$wxUSE_RADIOBOX" = yes; then | |
4513 | echo "$ac_t""yes" 1>&6 | |
4514 | else | |
4515 | echo "$ac_t""no" 1>&6 | |
4516 | fi | |
4517 | ||
4518 | ||
4519 | echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6 | |
4520 | echo "configure:4521: checking "for --enable-radiobtn"" >&5 | |
4521 | no_cache=0 | |
4522 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
4523 | if test "${enable_radiobtn+set}" = set; then | |
4524 | enableval="$enable_radiobtn" | |
4525 | ||
4526 | if test "$enableval" = yes; then | |
4527 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
4528 | else | |
4529 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
4530 | fi | |
4531 | ||
4532 | else | |
4533 | ||
4534 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
4535 | if test "x$LINE" != x ; then | |
4536 | eval "DEFAULT_$LINE" | |
4537 | else | |
4538 | no_cache=1 | |
4539 | fi | |
4540 | ||
4541 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
4542 | ||
4543 | fi | |
4544 | ||
4545 | ||
4546 | eval "$ac_cv_use_radiobtn" | |
4547 | if test "$no_cache" != 1; then | |
4548 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
4549 | fi | |
4550 | ||
4551 | if test "$wxUSE_RADIOBTN" = yes; then | |
4552 | echo "$ac_t""yes" 1>&6 | |
4553 | else | |
4554 | echo "$ac_t""no" 1>&6 | |
4555 | fi | |
4556 | ||
4557 | ||
4558 | echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6 | |
4559 | echo "configure:4560: checking "for --enable-sash"" >&5 | |
4560 | no_cache=0 | |
4561 | # Check whether --enable-sash or --disable-sash was given. | |
4562 | if test "${enable_sash+set}" = set; then | |
4563 | enableval="$enable_sash" | |
4564 | ||
4565 | if test "$enableval" = yes; then | |
4566 | ac_cv_use_sash='wxUSE_SASH=yes' | |
4567 | else | |
4568 | ac_cv_use_sash='wxUSE_SASH=no' | |
4569 | fi | |
4570 | ||
4571 | else | |
4572 | ||
4573 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
4574 | if test "x$LINE" != x ; then | |
4575 | eval "DEFAULT_$LINE" | |
4576 | else | |
4577 | no_cache=1 | |
4578 | fi | |
4579 | ||
4580 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
4581 | ||
4582 | fi | |
4583 | ||
4584 | ||
4585 | eval "$ac_cv_use_sash" | |
4586 | if test "$no_cache" != 1; then | |
4587 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
4588 | fi | |
4589 | ||
4590 | if test "$wxUSE_SASH" = yes; then | |
4591 | echo "$ac_t""yes" 1>&6 | |
4592 | else | |
4593 | echo "$ac_t""no" 1>&6 | |
4594 | fi | |
4595 | ||
4596 | ||
4597 | echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6 | |
4598 | echo "configure:4599: checking "for --enable-scrollbar"" >&5 | |
4599 | no_cache=0 | |
4600 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
4601 | if test "${enable_scrollbar+set}" = set; then | |
4602 | enableval="$enable_scrollbar" | |
4603 | ||
4604 | if test "$enableval" = yes; then | |
4605 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
4606 | else | |
4607 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
4608 | fi | |
4609 | ||
4610 | else | |
4611 | ||
4612 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
4613 | if test "x$LINE" != x ; then | |
4614 | eval "DEFAULT_$LINE" | |
4615 | else | |
4616 | no_cache=1 | |
4617 | fi | |
4618 | ||
4619 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
4620 | ||
4621 | fi | |
4622 | ||
4623 | ||
4624 | eval "$ac_cv_use_scrollbar" | |
4625 | if test "$no_cache" != 1; then | |
4626 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
4627 | fi | |
4628 | ||
4629 | if test "$wxUSE_SCROLLBAR" = yes; then | |
4630 | echo "$ac_t""yes" 1>&6 | |
4631 | else | |
4632 | echo "$ac_t""no" 1>&6 | |
4633 | fi | |
4634 | ||
4635 | ||
4636 | echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6 | |
4637 | echo "configure:4638: checking "for --enable-slider"" >&5 | |
4638 | no_cache=0 | |
4639 | # Check whether --enable-slider or --disable-slider was given. | |
4640 | if test "${enable_slider+set}" = set; then | |
4641 | enableval="$enable_slider" | |
4642 | ||
4643 | if test "$enableval" = yes; then | |
4644 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
4645 | else | |
4646 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
4647 | fi | |
4648 | ||
4649 | else | |
4650 | ||
4651 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
4652 | if test "x$LINE" != x ; then | |
4653 | eval "DEFAULT_$LINE" | |
4654 | else | |
4655 | no_cache=1 | |
4656 | fi | |
4657 | ||
4658 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
4659 | ||
4660 | fi | |
4661 | ||
4662 | ||
4663 | eval "$ac_cv_use_slider" | |
4664 | if test "$no_cache" != 1; then | |
4665 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
4666 | fi | |
4667 | ||
4668 | if test "$wxUSE_SLIDER" = yes; then | |
4669 | echo "$ac_t""yes" 1>&6 | |
4670 | else | |
4671 | echo "$ac_t""no" 1>&6 | |
4672 | fi | |
4673 | ||
4674 | ||
4675 | echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6 | |
4676 | echo "configure:4677: checking "for --enable-spinbtn"" >&5 | |
4677 | no_cache=0 | |
4678 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
4679 | if test "${enable_spinbtn+set}" = set; then | |
4680 | enableval="$enable_spinbtn" | |
4681 | ||
4682 | if test "$enableval" = yes; then | |
4683 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
4684 | else | |
4685 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
4686 | fi | |
4687 | ||
4688 | else | |
4689 | ||
4690 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
4691 | if test "x$LINE" != x ; then | |
4692 | eval "DEFAULT_$LINE" | |
4693 | else | |
4694 | no_cache=1 | |
4695 | fi | |
4696 | ||
4697 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
4698 | ||
4699 | fi | |
4700 | ||
4701 | ||
4702 | eval "$ac_cv_use_spinbtn" | |
4703 | if test "$no_cache" != 1; then | |
4704 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
4705 | fi | |
4706 | ||
4707 | if test "$wxUSE_SPINBTN" = yes; then | |
4708 | echo "$ac_t""yes" 1>&6 | |
4709 | else | |
4710 | echo "$ac_t""no" 1>&6 | |
4711 | fi | |
4712 | ||
4713 | ||
4714 | echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6 | |
4715 | echo "configure:4716: checking "for --enable-spinctrl"" >&5 | |
4716 | no_cache=0 | |
4717 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
4718 | if test "${enable_spinctrl+set}" = set; then | |
4719 | enableval="$enable_spinctrl" | |
4720 | ||
4721 | if test "$enableval" = yes; then | |
4722 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
4723 | else | |
4724 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
4725 | fi | |
4726 | ||
4727 | else | |
4728 | ||
4729 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
4730 | if test "x$LINE" != x ; then | |
4731 | eval "DEFAULT_$LINE" | |
4732 | else | |
4733 | no_cache=1 | |
4734 | fi | |
4735 | ||
4736 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
4737 | ||
4738 | fi | |
4739 | ||
4740 | ||
4741 | eval "$ac_cv_use_spinctrl" | |
4742 | if test "$no_cache" != 1; then | |
4743 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
4744 | fi | |
4745 | ||
4746 | if test "$wxUSE_SPINCTRL" = yes; then | |
4747 | echo "$ac_t""yes" 1>&6 | |
4748 | else | |
4749 | echo "$ac_t""no" 1>&6 | |
4750 | fi | |
4751 | ||
4752 | ||
4753 | echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6 | |
4754 | echo "configure:4755: checking "for --enable-splitter"" >&5 | |
4755 | no_cache=0 | |
4756 | # Check whether --enable-splitter or --disable-splitter was given. | |
4757 | if test "${enable_splitter+set}" = set; then | |
4758 | enableval="$enable_splitter" | |
4759 | ||
4760 | if test "$enableval" = yes; then | |
4761 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
4762 | else | |
4763 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
4764 | fi | |
4765 | ||
4766 | else | |
4767 | ||
4768 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
4769 | if test "x$LINE" != x ; then | |
4770 | eval "DEFAULT_$LINE" | |
4771 | else | |
4772 | no_cache=1 | |
4773 | fi | |
4774 | ||
4775 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
4776 | ||
4777 | fi | |
4778 | ||
4779 | ||
4780 | eval "$ac_cv_use_splitter" | |
4781 | if test "$no_cache" != 1; then | |
4782 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
4783 | fi | |
4784 | ||
4785 | if test "$wxUSE_SPLITTER" = yes; then | |
4786 | echo "$ac_t""yes" 1>&6 | |
4787 | else | |
4788 | echo "$ac_t""no" 1>&6 | |
4789 | fi | |
4790 | ||
4791 | ||
4792 | echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6 | |
4793 | echo "configure:4794: checking "for --enable-statbmp"" >&5 | |
4794 | no_cache=0 | |
4795 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
4796 | if test "${enable_statbmp+set}" = set; then | |
4797 | enableval="$enable_statbmp" | |
4798 | ||
4799 | if test "$enableval" = yes; then | |
4800 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
4801 | else | |
4802 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
4803 | fi | |
4804 | ||
4805 | else | |
4806 | ||
4807 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
4808 | if test "x$LINE" != x ; then | |
4809 | eval "DEFAULT_$LINE" | |
4810 | else | |
4811 | no_cache=1 | |
4812 | fi | |
4813 | ||
4814 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
4815 | ||
4816 | fi | |
4817 | ||
4818 | ||
4819 | eval "$ac_cv_use_statbmp" | |
4820 | if test "$no_cache" != 1; then | |
4821 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
4822 | fi | |
4823 | ||
4824 | if test "$wxUSE_STATBMP" = yes; then | |
4825 | echo "$ac_t""yes" 1>&6 | |
4826 | else | |
4827 | echo "$ac_t""no" 1>&6 | |
4828 | fi | |
4829 | ||
4830 | ||
4831 | echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6 | |
4832 | echo "configure:4833: checking "for --enable-statbox"" >&5 | |
4833 | no_cache=0 | |
4834 | # Check whether --enable-statbox or --disable-statbox was given. | |
4835 | if test "${enable_statbox+set}" = set; then | |
4836 | enableval="$enable_statbox" | |
4837 | ||
4838 | if test "$enableval" = yes; then | |
4839 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
4840 | else | |
4841 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
4842 | fi | |
4843 | ||
4844 | else | |
4845 | ||
4846 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
4847 | if test "x$LINE" != x ; then | |
4848 | eval "DEFAULT_$LINE" | |
4849 | else | |
4850 | no_cache=1 | |
4851 | fi | |
4852 | ||
4853 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
4854 | ||
4855 | fi | |
4856 | ||
4857 | ||
4858 | eval "$ac_cv_use_statbox" | |
4859 | if test "$no_cache" != 1; then | |
4860 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
4861 | fi | |
4862 | ||
4863 | if test "$wxUSE_STATBOX" = yes; then | |
4864 | echo "$ac_t""yes" 1>&6 | |
4865 | else | |
4866 | echo "$ac_t""no" 1>&6 | |
4867 | fi | |
4868 | ||
4869 | ||
4870 | echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6 | |
4871 | echo "configure:4872: checking "for --enable-statline"" >&5 | |
4872 | no_cache=0 | |
4873 | # Check whether --enable-statline or --disable-statline was given. | |
4874 | if test "${enable_statline+set}" = set; then | |
4875 | enableval="$enable_statline" | |
4876 | ||
4877 | if test "$enableval" = yes; then | |
4878 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
4879 | else | |
4880 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
4881 | fi | |
4882 | ||
4883 | else | |
4884 | ||
4885 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
4886 | if test "x$LINE" != x ; then | |
4887 | eval "DEFAULT_$LINE" | |
4888 | else | |
4889 | no_cache=1 | |
4890 | fi | |
4891 | ||
4892 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
4893 | ||
4894 | fi | |
4895 | ||
4896 | ||
4897 | eval "$ac_cv_use_statline" | |
4898 | if test "$no_cache" != 1; then | |
4899 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
4900 | fi | |
4901 | ||
4902 | if test "$wxUSE_STATLINE" = yes; then | |
4903 | echo "$ac_t""yes" 1>&6 | |
4904 | else | |
4905 | echo "$ac_t""no" 1>&6 | |
4906 | fi | |
4907 | ||
4908 | ||
4909 | echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6 | |
4910 | echo "configure:4911: checking "for --enable-statusbar"" >&5 | |
4911 | no_cache=0 | |
4912 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
4913 | if test "${enable_statusbar+set}" = set; then | |
4914 | enableval="$enable_statusbar" | |
4915 | ||
4916 | if test "$enableval" = yes; then | |
4917 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
4918 | else | |
4919 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
4920 | fi | |
4921 | ||
4922 | else | |
4923 | ||
4924 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
4925 | if test "x$LINE" != x ; then | |
4926 | eval "DEFAULT_$LINE" | |
4927 | else | |
4928 | no_cache=1 | |
4929 | fi | |
4930 | ||
4931 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
4932 | ||
4933 | fi | |
4934 | ||
4935 | ||
4936 | eval "$ac_cv_use_statusbar" | |
4937 | if test "$no_cache" != 1; then | |
4938 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
4939 | fi | |
4940 | ||
4941 | if test "$wxUSE_STATUSBAR" = yes; then | |
4942 | echo "$ac_t""yes" 1>&6 | |
4943 | else | |
4944 | echo "$ac_t""no" 1>&6 | |
4945 | fi | |
4946 | ||
4947 | ||
4948 | echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6 | |
4949 | echo "configure:4950: checking "for --enable-tabdialog"" >&5 | |
4950 | no_cache=0 | |
4951 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
4952 | if test "${enable_tabdialog+set}" = set; then | |
4953 | enableval="$enable_tabdialog" | |
4954 | ||
4955 | if test "$enableval" = yes; then | |
4956 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
4957 | else | |
4958 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
4959 | fi | |
4960 | ||
4961 | else | |
4962 | ||
4963 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
4964 | if test "x$LINE" != x ; then | |
4965 | eval "DEFAULT_$LINE" | |
4966 | else | |
4967 | no_cache=1 | |
4968 | fi | |
4969 | ||
4970 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
4971 | ||
4972 | fi | |
4973 | ||
4974 | ||
4975 | eval "$ac_cv_use_tabdialog" | |
4976 | if test "$no_cache" != 1; then | |
4977 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
4978 | fi | |
4979 | ||
4980 | if test "$wxUSE_TABDIALOG" = yes; then | |
4981 | echo "$ac_t""yes" 1>&6 | |
4982 | else | |
4983 | echo "$ac_t""no" 1>&6 | |
4984 | fi | |
4985 | ||
4986 | ||
4987 | echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6 | |
4988 | echo "configure:4989: checking "for --enable-toolbar"" >&5 | |
4989 | no_cache=0 | |
4990 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
4991 | if test "${enable_toolbar+set}" = set; then | |
4992 | enableval="$enable_toolbar" | |
4993 | ||
4994 | if test "$enableval" = yes; then | |
4995 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
4996 | else | |
4997 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
4998 | fi | |
4999 | ||
5000 | else | |
5001 | ||
5002 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
5003 | if test "x$LINE" != x ; then | |
5004 | eval "DEFAULT_$LINE" | |
5005 | else | |
5006 | no_cache=1 | |
5007 | fi | |
5008 | ||
5009 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
5010 | ||
5011 | fi | |
5012 | ||
5013 | ||
5014 | eval "$ac_cv_use_toolbar" | |
5015 | if test "$no_cache" != 1; then | |
5016 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
5017 | fi | |
5018 | ||
5019 | if test "$wxUSE_TOOLBAR" = yes; then | |
5020 | echo "$ac_t""yes" 1>&6 | |
5021 | else | |
5022 | echo "$ac_t""no" 1>&6 | |
5023 | fi | |
5024 | ||
5025 | ||
5026 | echo $ac_n "checking "for --enable-tbarnative"""... $ac_c" 1>&6 | |
5027 | echo "configure:5028: checking "for --enable-tbarnative"" >&5 | |
5028 | no_cache=0 | |
5029 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
5030 | if test "${enable_tbarnative+set}" = set; then | |
5031 | enableval="$enable_tbarnative" | |
5032 | ||
5033 | if test "$enableval" = yes; then | |
5034 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
5035 | else | |
5036 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
5037 | fi | |
5038 | ||
5039 | else | |
5040 | ||
5041 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
5042 | if test "x$LINE" != x ; then | |
5043 | eval "DEFAULT_$LINE" | |
5044 | else | |
5045 | no_cache=1 | |
5046 | fi | |
5047 | ||
5048 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
5049 | ||
5050 | fi | |
5051 | ||
5052 | ||
5053 | eval "$ac_cv_use_tbarnative" | |
5054 | if test "$no_cache" != 1; then | |
5055 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
5056 | fi | |
5057 | ||
5058 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
5059 | echo "$ac_t""yes" 1>&6 | |
5060 | else | |
5061 | echo "$ac_t""no" 1>&6 | |
5062 | fi | |
5063 | ||
5064 | ||
5065 | echo $ac_n "checking "for --enable-tbarsmpl"""... $ac_c" 1>&6 | |
5066 | echo "configure:5067: checking "for --enable-tbarsmpl"" >&5 | |
5067 | no_cache=0 | |
5068 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
5069 | if test "${enable_tbarsmpl+set}" = set; then | |
5070 | enableval="$enable_tbarsmpl" | |
5071 | ||
5072 | if test "$enableval" = yes; then | |
5073 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
5074 | else | |
5075 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
5076 | fi | |
5077 | ||
5078 | else | |
5079 | ||
5080 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
5081 | if test "x$LINE" != x ; then | |
5082 | eval "DEFAULT_$LINE" | |
5083 | else | |
5084 | no_cache=1 | |
5085 | fi | |
5086 | ||
5087 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
5088 | ||
5089 | fi | |
5090 | ||
5091 | ||
5092 | eval "$ac_cv_use_tbarsmpl" | |
5093 | if test "$no_cache" != 1; then | |
5094 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
5095 | fi | |
5096 | ||
5097 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
5098 | echo "$ac_t""yes" 1>&6 | |
5099 | else | |
5100 | echo "$ac_t""no" 1>&6 | |
5101 | fi | |
5102 | ||
5103 | ||
5104 | echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6 | |
5105 | echo "configure:5106: checking "for --enable-treectrl"" >&5 | |
5106 | no_cache=0 | |
5107 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
5108 | if test "${enable_treectrl+set}" = set; then | |
5109 | enableval="$enable_treectrl" | |
5110 | ||
5111 | if test "$enableval" = yes; then | |
5112 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
5113 | else | |
5114 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
5115 | fi | |
5116 | ||
5117 | else | |
5118 | ||
5119 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
5120 | if test "x$LINE" != x ; then | |
5121 | eval "DEFAULT_$LINE" | |
5122 | else | |
5123 | no_cache=1 | |
5124 | fi | |
5125 | ||
5126 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
5127 | ||
5128 | fi | |
5129 | ||
5130 | ||
5131 | eval "$ac_cv_use_treectrl" | |
5132 | if test "$no_cache" != 1; then | |
5133 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
5134 | fi | |
5135 | ||
5136 | if test "$wxUSE_TREECTRL" = yes; then | |
5137 | echo "$ac_t""yes" 1>&6 | |
5138 | else | |
5139 | echo "$ac_t""no" 1>&6 | |
5140 | fi | |
5141 | ||
5142 | ||
5143 | ||
5144 | ||
5145 | echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6 | |
5146 | echo "configure:5147: checking "for --enable-commondlg"" >&5 | |
5147 | no_cache=0 | |
5148 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
5149 | if test "${enable_commondlg+set}" = set; then | |
5150 | enableval="$enable_commondlg" | |
5151 | ||
5152 | if test "$enableval" = yes; then | |
5153 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
5154 | else | |
5155 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
5156 | fi | |
5157 | ||
5158 | else | |
5159 | ||
5160 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
5161 | if test "x$LINE" != x ; then | |
5162 | eval "DEFAULT_$LINE" | |
5163 | else | |
5164 | no_cache=1 | |
5165 | fi | |
5166 | ||
5167 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
5168 | ||
5169 | fi | |
5170 | ||
5171 | ||
5172 | eval "$ac_cv_use_commondlg" | |
5173 | if test "$no_cache" != 1; then | |
5174 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
5175 | fi | |
5176 | ||
5177 | if test "$wxUSE_COMMONDLGS" = yes; then | |
5178 | echo "$ac_t""yes" 1>&6 | |
5179 | else | |
5180 | echo "$ac_t""no" 1>&6 | |
5181 | fi | |
5182 | ||
5183 | ||
5184 | echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6 | |
5185 | echo "configure:5186: checking "for --enable-dirdlg"" >&5 | |
5186 | no_cache=0 | |
5187 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
5188 | if test "${enable_dirdlg+set}" = set; then | |
5189 | enableval="$enable_dirdlg" | |
5190 | ||
5191 | if test "$enableval" = yes; then | |
5192 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
5193 | else | |
5194 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
5195 | fi | |
5196 | ||
5197 | else | |
5198 | ||
5199 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
5200 | if test "x$LINE" != x ; then | |
5201 | eval "DEFAULT_$LINE" | |
5202 | else | |
5203 | no_cache=1 | |
5204 | fi | |
5205 | ||
5206 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
5207 | ||
5208 | fi | |
5209 | ||
5210 | ||
5211 | eval "$ac_cv_use_dirdlg" | |
5212 | if test "$no_cache" != 1; then | |
5213 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
5214 | fi | |
5215 | ||
5216 | if test "$wxUSE_DIRDLG" = yes; then | |
5217 | echo "$ac_t""yes" 1>&6 | |
5218 | else | |
5219 | echo "$ac_t""no" 1>&6 | |
5220 | fi | |
5221 | ||
5222 | ||
5223 | echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6 | |
5224 | echo "configure:5225: checking "for --enable-textdlg"" >&5 | |
5225 | no_cache=0 | |
5226 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
5227 | if test "${enable_textdlg+set}" = set; then | |
5228 | enableval="$enable_textdlg" | |
5229 | ||
5230 | if test "$enableval" = yes; then | |
5231 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
5232 | else | |
5233 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
5234 | fi | |
5235 | ||
5236 | else | |
5237 | ||
5238 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
5239 | if test "x$LINE" != x ; then | |
5240 | eval "DEFAULT_$LINE" | |
5241 | else | |
5242 | no_cache=1 | |
5243 | fi | |
5244 | ||
5245 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
5246 | ||
5247 | fi | |
5248 | ||
5249 | ||
5250 | eval "$ac_cv_use_textdlg" | |
5251 | if test "$no_cache" != 1; then | |
5252 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
5253 | fi | |
5254 | ||
5255 | if test "$wxUSE_TEXTDLG" = yes; then | |
5256 | echo "$ac_t""yes" 1>&6 | |
5257 | else | |
5258 | echo "$ac_t""no" 1>&6 | |
5259 | fi | |
5260 | ||
5261 | ||
5262 | echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6 | |
5263 | echo "configure:5264: checking "for --enable-tipdlg"" >&5 | |
5264 | no_cache=0 | |
5265 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
5266 | if test "${enable_tipdlg+set}" = set; then | |
5267 | enableval="$enable_tipdlg" | |
5268 | ||
5269 | if test "$enableval" = yes; then | |
5270 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
5271 | else | |
5272 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
5273 | fi | |
5274 | ||
5275 | else | |
5276 | ||
5277 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
5278 | if test "x$LINE" != x ; then | |
5279 | eval "DEFAULT_$LINE" | |
5280 | else | |
5281 | no_cache=1 | |
5282 | fi | |
5283 | ||
5284 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
5285 | ||
5286 | fi | |
5287 | ||
5288 | ||
5289 | eval "$ac_cv_use_tipdlg" | |
5290 | if test "$no_cache" != 1; then | |
5291 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
5292 | fi | |
5293 | ||
5294 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
5295 | echo "$ac_t""yes" 1>&6 | |
5296 | else | |
5297 | echo "$ac_t""no" 1>&6 | |
5298 | fi | |
5299 | ||
5300 | ||
5301 | echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6 | |
5302 | echo "configure:5303: checking "for --enable-progressdlg"" >&5 | |
5303 | no_cache=0 | |
5304 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
5305 | if test "${enable_progressdlg+set}" = set; then | |
5306 | enableval="$enable_progressdlg" | |
5307 | ||
5308 | if test "$enableval" = yes; then | |
5309 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
5310 | else | |
5311 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
5312 | fi | |
5313 | ||
5314 | else | |
5315 | ||
5316 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
5317 | if test "x$LINE" != x ; then | |
5318 | eval "DEFAULT_$LINE" | |
5319 | else | |
5320 | no_cache=1 | |
5321 | fi | |
5322 | ||
5323 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
5324 | ||
5325 | fi | |
5326 | ||
5327 | ||
5328 | eval "$ac_cv_use_progressdlg" | |
5329 | if test "$no_cache" != 1; then | |
5330 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
5331 | fi | |
5332 | ||
5333 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
5334 | echo "$ac_t""yes" 1>&6 | |
5335 | else | |
5336 | echo "$ac_t""no" 1>&6 | |
5337 | fi | |
5338 | ||
5339 | ||
5340 | echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6 | |
5341 | echo "configure:5342: checking "for --enable-miniframe"" >&5 | |
5342 | no_cache=0 | |
5343 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
5344 | if test "${enable_miniframe+set}" = set; then | |
5345 | enableval="$enable_miniframe" | |
5346 | ||
5347 | if test "$enableval" = yes; then | |
5348 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
5349 | else | |
5350 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
5351 | fi | |
5352 | ||
5353 | else | |
5354 | ||
5355 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
5356 | if test "x$LINE" != x ; then | |
5357 | eval "DEFAULT_$LINE" | |
5358 | else | |
5359 | no_cache=1 | |
5360 | fi | |
5361 | ||
5362 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
5363 | ||
5364 | fi | |
5365 | ||
5366 | ||
5367 | eval "$ac_cv_use_miniframe" | |
5368 | if test "$no_cache" != 1; then | |
5369 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
5370 | fi | |
5371 | ||
5372 | if test "$wxUSE_MINIFRAME" = yes; then | |
5373 | echo "$ac_t""yes" 1>&6 | |
5374 | else | |
5375 | echo "$ac_t""no" 1>&6 | |
5376 | fi | |
5377 | ||
5378 | ||
5379 | echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6 | |
5380 | echo "configure:5381: checking "for --enable-html"" >&5 | |
5381 | no_cache=0 | |
5382 | # Check whether --enable-html or --disable-html was given. | |
5383 | if test "${enable_html+set}" = set; then | |
5384 | enableval="$enable_html" | |
5385 | ||
5386 | if test "$enableval" = yes; then | |
5387 | ac_cv_use_html='wxUSE_HTML=yes' | |
5388 | else | |
5389 | ac_cv_use_html='wxUSE_HTML=no' | |
5390 | fi | |
5391 | ||
5392 | else | |
5393 | ||
5394 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
5395 | if test "x$LINE" != x ; then | |
5396 | eval "DEFAULT_$LINE" | |
5397 | else | |
5398 | no_cache=1 | |
5399 | fi | |
5400 | ||
5401 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
5402 | ||
5403 | fi | |
5404 | ||
5405 | ||
5406 | eval "$ac_cv_use_html" | |
5407 | if test "$no_cache" != 1; then | |
5408 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
5409 | fi | |
5410 | ||
5411 | if test "$wxUSE_HTML" = yes; then | |
5412 | echo "$ac_t""yes" 1>&6 | |
5413 | else | |
5414 | echo "$ac_t""no" 1>&6 | |
5415 | fi | |
5416 | ||
5417 | ||
5418 | echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6 | |
5419 | echo "configure:5420: checking "for --enable-tooltips"" >&5 | |
5420 | no_cache=0 | |
5421 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
5422 | if test "${enable_tooltips+set}" = set; then | |
5423 | enableval="$enable_tooltips" | |
5424 | ||
5425 | if test "$enableval" = yes; then | |
5426 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
5427 | else | |
5428 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
5429 | fi | |
5430 | ||
5431 | else | |
5432 | ||
5433 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
5434 | if test "x$LINE" != x ; then | |
5435 | eval "DEFAULT_$LINE" | |
5436 | else | |
5437 | no_cache=1 | |
5438 | fi | |
5439 | ||
5440 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
5441 | ||
5442 | fi | |
5443 | ||
5444 | ||
5445 | eval "$ac_cv_use_tooltips" | |
5446 | if test "$no_cache" != 1; then | |
5447 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
5448 | fi | |
5449 | ||
5450 | if test "$wxUSE_TOOLTIPS" = yes; then | |
5451 | echo "$ac_t""yes" 1>&6 | |
5452 | else | |
5453 | echo "$ac_t""no" 1>&6 | |
5454 | fi | |
5455 | ||
5456 | ||
5457 | echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6 | |
5458 | echo "configure:5459: checking "for --enable-splines"" >&5 | |
5459 | no_cache=0 | |
5460 | # Check whether --enable-splines or --disable-splines was given. | |
5461 | if test "${enable_splines+set}" = set; then | |
5462 | enableval="$enable_splines" | |
5463 | ||
5464 | if test "$enableval" = yes; then | |
5465 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
5466 | else | |
5467 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
5468 | fi | |
5469 | ||
5470 | else | |
5471 | ||
5472 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
5473 | if test "x$LINE" != x ; then | |
5474 | eval "DEFAULT_$LINE" | |
5475 | else | |
5476 | no_cache=1 | |
5477 | fi | |
5478 | ||
5479 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
5480 | ||
5481 | fi | |
5482 | ||
5483 | ||
5484 | eval "$ac_cv_use_splines" | |
5485 | if test "$no_cache" != 1; then | |
5486 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
5487 | fi | |
5488 | ||
5489 | if test "$wxUSE_SPLINES" = yes; then | |
5490 | echo "$ac_t""yes" 1>&6 | |
5491 | else | |
5492 | echo "$ac_t""no" 1>&6 | |
5493 | fi | |
5494 | ||
5495 | ||
5496 | echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6 | |
5497 | echo "configure:5498: checking "for --enable-validators"" >&5 | |
5498 | no_cache=0 | |
5499 | # Check whether --enable-validators or --disable-validators was given. | |
5500 | if test "${enable_validators+set}" = set; then | |
5501 | enableval="$enable_validators" | |
5502 | ||
5503 | if test "$enableval" = yes; then | |
5504 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
5505 | else | |
5506 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
5507 | fi | |
5508 | ||
5509 | else | |
5510 | ||
5511 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
5512 | if test "x$LINE" != x ; then | |
5513 | eval "DEFAULT_$LINE" | |
5514 | else | |
5515 | no_cache=1 | |
5516 | fi | |
5517 | ||
5518 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
5519 | ||
5520 | fi | |
5521 | ||
5522 | ||
5523 | eval "$ac_cv_use_validators" | |
5524 | if test "$no_cache" != 1; then | |
5525 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
5526 | fi | |
5527 | ||
5528 | if test "$wxUSE_VALIDATORS" = yes; then | |
5529 | echo "$ac_t""yes" 1>&6 | |
5530 | else | |
5531 | echo "$ac_t""no" 1>&6 | |
5532 | fi | |
5533 | ||
5534 | ||
5535 | echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6 | |
5536 | echo "configure:5537: checking "for --enable-busyinfo"" >&5 | |
5537 | no_cache=0 | |
5538 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
5539 | if test "${enable_busyinfo+set}" = set; then | |
5540 | enableval="$enable_busyinfo" | |
5541 | ||
5542 | if test "$enableval" = yes; then | |
5543 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
5544 | else | |
5545 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
5546 | fi | |
5547 | ||
5548 | else | |
5549 | ||
5550 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
5551 | if test "x$LINE" != x ; then | |
5552 | eval "DEFAULT_$LINE" | |
5553 | else | |
5554 | no_cache=1 | |
5555 | fi | |
5556 | ||
5557 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
5558 | ||
5559 | fi | |
5560 | ||
5561 | ||
5562 | eval "$ac_cv_use_busyinfo" | |
5563 | if test "$no_cache" != 1; then | |
5564 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
5565 | fi | |
5566 | ||
5567 | if test "$wxUSE_BUSYINFO" = yes; then | |
5568 | echo "$ac_t""yes" 1>&6 | |
5569 | else | |
5570 | echo "$ac_t""no" 1>&6 | |
5571 | fi | |
5572 | ||
5573 | ||
5574 | ||
5575 | ||
5576 | echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6 | |
5577 | echo "configure:5578: checking "for --enable-gif"" >&5 | |
5578 | no_cache=0 | |
5579 | # Check whether --enable-gif or --disable-gif was given. | |
5580 | if test "${enable_gif+set}" = set; then | |
5581 | enableval="$enable_gif" | |
5582 | ||
5583 | if test "$enableval" = yes; then | |
5584 | ac_cv_use_gif='wxUSE_GIF=yes' | |
5585 | else | |
5586 | ac_cv_use_gif='wxUSE_GIF=no' | |
5587 | fi | |
5588 | ||
5589 | else | |
5590 | ||
5591 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
5592 | if test "x$LINE" != x ; then | |
5593 | eval "DEFAULT_$LINE" | |
5594 | else | |
5595 | no_cache=1 | |
5596 | fi | |
5597 | ||
5598 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
5599 | ||
5600 | fi | |
5601 | ||
5602 | ||
5603 | eval "$ac_cv_use_gif" | |
5604 | if test "$no_cache" != 1; then | |
5605 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
5606 | fi | |
5607 | ||
5608 | if test "$wxUSE_GIF" = yes; then | |
5609 | echo "$ac_t""yes" 1>&6 | |
5610 | else | |
5611 | echo "$ac_t""no" 1>&6 | |
5612 | fi | |
5613 | ||
5614 | ||
5615 | echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6 | |
5616 | echo "configure:5617: checking "for --enable-pcx"" >&5 | |
5617 | no_cache=0 | |
5618 | # Check whether --enable-pcx or --disable-pcx was given. | |
5619 | if test "${enable_pcx+set}" = set; then | |
5620 | enableval="$enable_pcx" | |
5621 | ||
5622 | if test "$enableval" = yes; then | |
5623 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
5624 | else | |
5625 | ac_cv_use_pcx='wxUSE_PCX=no' | |
5626 | fi | |
5627 | ||
5628 | else | |
5629 | ||
5630 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
5631 | if test "x$LINE" != x ; then | |
5632 | eval "DEFAULT_$LINE" | |
5633 | else | |
5634 | no_cache=1 | |
5635 | fi | |
5636 | ||
5637 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
5638 | ||
5639 | fi | |
5640 | ||
5641 | ||
5642 | eval "$ac_cv_use_pcx" | |
5643 | if test "$no_cache" != 1; then | |
5644 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
5645 | fi | |
5646 | ||
5647 | if test "$wxUSE_PCX" = yes; then | |
5648 | echo "$ac_t""yes" 1>&6 | |
5649 | else | |
5650 | echo "$ac_t""no" 1>&6 | |
5651 | fi | |
5652 | ||
5653 | ||
5654 | echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6 | |
5655 | echo "configure:5656: checking "for --enable-pnm"" >&5 | |
5656 | no_cache=0 | |
5657 | # Check whether --enable-pnm or --disable-pnm was given. | |
5658 | if test "${enable_pnm+set}" = set; then | |
5659 | enableval="$enable_pnm" | |
5660 | ||
5661 | if test "$enableval" = yes; then | |
5662 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
5663 | else | |
5664 | ac_cv_use_pnm='wxUSE_PNM=no' | |
5665 | fi | |
5666 | ||
5667 | else | |
5668 | ||
5669 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
5670 | if test "x$LINE" != x ; then | |
5671 | eval "DEFAULT_$LINE" | |
5672 | else | |
5673 | no_cache=1 | |
5674 | fi | |
5675 | ||
5676 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
5677 | ||
5678 | fi | |
5679 | ||
5680 | ||
5681 | eval "$ac_cv_use_pnm" | |
5682 | if test "$no_cache" != 1; then | |
5683 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
5684 | fi | |
5685 | ||
5686 | if test "$wxUSE_PNM" = yes; then | |
5687 | echo "$ac_t""yes" 1>&6 | |
5688 | else | |
5689 | echo "$ac_t""no" 1>&6 | |
5690 | fi | |
5691 | ||
5692 | ||
5693 | fi | |
5694 | ||
5695 | ||
5696 | echo "saving argument cache $wx_arg_cache_file" | |
5697 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
5698 | ||
5699 | ||
5700 | ||
5701 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
5702 | echo "configure:5703: checking for toolkit" >&5 | |
5703 | ||
5704 | if test "$wxUSE_GUI" = "yes"; then | |
5705 | ||
5706 | if test "$USE_BEOS" = 1; then | |
5707 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } | |
5708 | fi | |
5709 | ||
5710 | if test "$TOOLKIT_GIVEN" = 1; then | |
5711 | for toolkit in `echo $ALL_TOOLKITS`; do | |
5712 | var=wxUSE_$toolkit | |
5713 | eval "value=\$${var}" | |
5714 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
5715 | done | |
5716 | else | |
5717 | for toolkit in `echo $ALL_TOOLKITS`; do | |
5718 | if test "$has_toolkit_in_cache" != 1; then | |
5719 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
5720 | else | |
5721 | var=DEFAULT_wxUSE_$toolkit | |
5722 | fi | |
5723 | eval "wxUSE_$toolkit=\$${var}" | |
5724 | done | |
5725 | fi | |
5726 | ||
5727 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0} + ${wxUSE_PM:-0}` | |
5728 | ||
5729 | case "$NUM_TOOLKITS" in | |
5730 | 1) | |
5731 | ;; | |
5732 | 0) | |
5733 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } | |
5734 | ;; | |
5735 | *) | |
5736 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } | |
5737 | esac | |
5738 | ||
5739 | for toolkit in `echo $ALL_TOOLKITS`; do | |
5740 | var=wxUSE_$toolkit | |
5741 | eval "value=\$${var}" | |
5742 | if test "x$value" != x; then | |
5743 | cache_var=CACHE_$toolkit | |
5744 | eval "cache=\$${cache_var}" | |
5745 | if test "$cache" = 1; then | |
5746 | echo "$var=$value" >> ${wx_arg_cache_file} | |
5747 | fi | |
5748 | if test "$value" = 1; then | |
5749 | echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6 | |
5750 | fi | |
5751 | fi | |
5752 | done | |
5753 | ||
5754 | else | |
5755 | echo "$ac_t""base only" 1>&6 | |
5756 | fi | |
5757 | ||
5758 | ||
5759 | cat > confcache <<\EOF | |
5760 | # This file is a shell script that caches the results of configure | |
5761 | # tests run on this system so they can be shared between configure | |
5762 | # scripts and configure runs. It is not useful on other systems. | |
5763 | # If it contains results you don't want to keep, you may remove or edit it. | |
5764 | # | |
5765 | # By default, configure uses ./config.cache as the cache file, | |
5766 | # creating it if it does not exist already. You can give configure | |
5767 | # the --cache-file=FILE option to use a different cache file; that is | |
5768 | # what configure does when it calls configure scripts in | |
5769 | # subdirectories, so they share the cache. | |
5770 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
5771 | # config.status only pays attention to the cache file if you give it the | |
5772 | # --recheck option to rerun configure. | |
5773 | # | |
5774 | EOF | |
5775 | # The following way of writing the cache mishandles newlines in values, | |
5776 | # but we know of no workaround that is simple, portable, and efficient. | |
5777 | # So, don't put newlines in cache variables' values. | |
5778 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
5779 | # and sets the high bit in the cache file unless we assign to the vars. | |
5780 | (set) 2>&1 | | |
5781 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
5782 | *ac_space=\ *) | |
5783 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
5784 | # turns \\\\ into \\, and sed turns \\ into \). | |
5785 | sed -n \ | |
5786 | -e "s/'/'\\\\''/g" \ | |
5787 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
5788 | ;; | |
5789 | *) | |
5790 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5791 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
5792 | ;; | |
5793 | esac >> confcache | |
5794 | if cmp -s $cache_file confcache; then | |
5795 | : | |
5796 | else | |
5797 | if test -w $cache_file; then | |
5798 | echo "updating cache $cache_file" | |
5799 | cat confcache > $cache_file | |
5800 | else | |
5801 | echo "not updating unwritable cache $cache_file" | |
5802 | fi | |
5803 | fi | |
5804 | rm -f confcache | |
5805 | ||
5806 | ||
5807 | if eval "test $host != $build"; then | |
5808 | if eval "test $host_alias != NONE"; then | |
5809 | CC=$host_alias-gcc | |
5810 | CXX=$host_alias-c++ | |
5811 | AR=$host_alias-ar | |
5812 | RANLIB=$host_alias-ranlib | |
5813 | DLLTOOL=$host_alias-dlltool | |
5814 | LD=$host_alias-ld | |
5815 | NM=$host_alias-nm | |
5816 | STRIP=$host_alias-strip | |
5817 | fi | |
5818 | fi | |
5819 | ||
5820 | # Extract the first word of "gcc", so it can be a program name with args. | |
5821 | set dummy gcc; ac_word=$2 | |
5822 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
5823 | echo "configure:5824: checking for $ac_word" >&5 | |
5824 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
5825 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5826 | else | |
5827 | if test -n "$CC"; then | |
5828 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5829 | else | |
5830 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
5831 | ac_dummy="$PATH" | |
5832 | for ac_dir in $ac_dummy; do | |
5833 | test -z "$ac_dir" && ac_dir=. | |
5834 | if test -f $ac_dir/$ac_word; then | |
5835 | ac_cv_prog_CC="gcc" | |
5836 | break | |
5837 | fi | |
5838 | done | |
5839 | IFS="$ac_save_ifs" | |
5840 | fi | |
5841 | fi | |
5842 | CC="$ac_cv_prog_CC" | |
5843 | if test -n "$CC"; then | |
5844 | echo "$ac_t""$CC" 1>&6 | |
5845 | else | |
5846 | echo "$ac_t""no" 1>&6 | |
5847 | fi | |
5848 | ||
5849 | if test -z "$CC"; then | |
5850 | # Extract the first word of "cc", so it can be a program name with args. | |
5851 | set dummy cc; ac_word=$2 | |
5852 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
5853 | echo "configure:5854: checking for $ac_word" >&5 | |
5854 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
5855 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5856 | else | |
5857 | if test -n "$CC"; then | |
5858 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5859 | else | |
5860 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
5861 | ac_prog_rejected=no | |
5862 | ac_dummy="$PATH" | |
5863 | for ac_dir in $ac_dummy; do | |
5864 | test -z "$ac_dir" && ac_dir=. | |
5865 | if test -f $ac_dir/$ac_word; then | |
5866 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
5867 | ac_prog_rejected=yes | |
5868 | continue | |
5869 | fi | |
5870 | ac_cv_prog_CC="cc" | |
5871 | break | |
5872 | fi | |
5873 | done | |
5874 | IFS="$ac_save_ifs" | |
5875 | if test $ac_prog_rejected = yes; then | |
5876 | # We found a bogon in the path, so make sure we never use it. | |
5877 | set dummy $ac_cv_prog_CC | |
5878 | shift | |
5879 | if test $# -gt 0; then | |
5880 | # We chose a different compiler from the bogus one. | |
5881 | # However, it has the same basename, so the bogon will be chosen | |
5882 | # first if we set CC to just the basename; use the full file name. | |
5883 | shift | |
5884 | set dummy "$ac_dir/$ac_word" "$@" | |
5885 | shift | |
5886 | ac_cv_prog_CC="$@" | |
5887 | fi | |
5888 | fi | |
5889 | fi | |
5890 | fi | |
5891 | CC="$ac_cv_prog_CC" | |
5892 | if test -n "$CC"; then | |
5893 | echo "$ac_t""$CC" 1>&6 | |
5894 | else | |
5895 | echo "$ac_t""no" 1>&6 | |
5896 | fi | |
5897 | ||
5898 | if test -z "$CC"; then | |
5899 | case "`uname -s`" in | |
5900 | *win32* | *WIN32*) | |
5901 | # Extract the first word of "cl", so it can be a program name with args. | |
5902 | set dummy cl; ac_word=$2 | |
5903 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
5904 | echo "configure:5905: checking for $ac_word" >&5 | |
5905 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
5906 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5907 | else | |
5908 | if test -n "$CC"; then | |
5909 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5910 | else | |
5911 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
5912 | ac_dummy="$PATH" | |
5913 | for ac_dir in $ac_dummy; do | |
5914 | test -z "$ac_dir" && ac_dir=. | |
5915 | if test -f $ac_dir/$ac_word; then | |
5916 | ac_cv_prog_CC="cl" | |
5917 | break | |
5918 | fi | |
5919 | done | |
5920 | IFS="$ac_save_ifs" | |
5921 | fi | |
5922 | fi | |
5923 | CC="$ac_cv_prog_CC" | |
5924 | if test -n "$CC"; then | |
5925 | echo "$ac_t""$CC" 1>&6 | |
5926 | else | |
5927 | echo "$ac_t""no" 1>&6 | |
5928 | fi | |
5929 | ;; | |
5930 | esac | |
5931 | fi | |
5932 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
5933 | fi | |
5934 | ||
5935 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
5936 | echo "configure:5937: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | |
5937 | ||
5938 | ac_ext=c | |
5939 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5940 | ac_cpp='$CPP $CPPFLAGS' | |
5941 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
5942 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
5943 | cross_compiling=$ac_cv_prog_cc_cross | |
5944 | ||
5945 | cat > conftest.$ac_ext << EOF | |
5946 | ||
5947 | #line 5948 "configure" | |
5948 | #include "confdefs.h" | |
5949 | ||
5950 | main(){return(0);} | |
5951 | EOF | |
5952 | if { (eval echo configure:5953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
5953 | ac_cv_prog_cc_works=yes | |
5954 | # If we can't run a trivial program, we are probably using a cross compiler. | |
5955 | if (./conftest; exit) 2>/dev/null; then | |
5956 | ac_cv_prog_cc_cross=no | |
5957 | else | |
5958 | ac_cv_prog_cc_cross=yes | |
5959 | fi | |
5960 | else | |
5961 | echo "configure: failed program was:" >&5 | |
5962 | cat conftest.$ac_ext >&5 | |
5963 | ac_cv_prog_cc_works=no | |
5964 | fi | |
5965 | rm -fr conftest* | |
5966 | ac_ext=c | |
5967 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5968 | ac_cpp='$CPP $CPPFLAGS' | |
5969 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
5970 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
5971 | cross_compiling=$ac_cv_prog_cc_cross | |
5972 | ||
5973 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
5974 | if test $ac_cv_prog_cc_works = no; then | |
5975 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
5976 | fi | |
5977 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
5978 | echo "configure:5979: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | |
5979 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | |
5980 | cross_compiling=$ac_cv_prog_cc_cross | |
5981 | ||
5982 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
5983 | echo "configure:5984: checking whether we are using GNU C" >&5 | |
5984 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then | |
5985 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5986 | else | |
5987 | cat > conftest.c <<EOF | |
5988 | #ifdef __GNUC__ | |
5989 | yes; | |
5990 | #endif | |
5991 | EOF | |
5992 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:5993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | |
5993 | ac_cv_prog_gcc=yes | |
5994 | else | |
5995 | ac_cv_prog_gcc=no | |
5996 | fi | |
5997 | fi | |
5998 | ||
5999 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
6000 | ||
6001 | if test $ac_cv_prog_gcc = yes; then | |
6002 | GCC=yes | |
6003 | else | |
6004 | GCC= | |
6005 | fi | |
6006 | ||
6007 | ac_test_CFLAGS="${CFLAGS+set}" | |
6008 | ac_save_CFLAGS="$CFLAGS" | |
6009 | CFLAGS= | |
6010 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
6011 | echo "configure:6012: checking whether ${CC-cc} accepts -g" >&5 | |
6012 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then | |
6013 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6014 | else | |
6015 | echo 'void f(){}' > conftest.c | |
6016 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
6017 | ac_cv_prog_cc_g=yes | |
6018 | else | |
6019 | ac_cv_prog_cc_g=no | |
6020 | fi | |
6021 | rm -f conftest* | |
6022 | ||
6023 | fi | |
6024 | ||
6025 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
6026 | if test "$ac_test_CFLAGS" = set; then | |
6027 | CFLAGS="$ac_save_CFLAGS" | |
6028 | elif test $ac_cv_prog_cc_g = yes; then | |
6029 | if test "$GCC" = yes; then | |
6030 | CFLAGS="-g -O2" | |
6031 | else | |
6032 | CFLAGS="-g" | |
6033 | fi | |
6034 | else | |
6035 | if test "$GCC" = yes; then | |
6036 | CFLAGS="-O2" | |
6037 | else | |
6038 | CFLAGS= | |
6039 | fi | |
6040 | fi | |
6041 | ||
6042 | ||
6043 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
6044 | ||
6045 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
6046 | echo "configure:6047: checking how to run the C preprocessor" >&5 | |
6047 | # On Suns, sometimes $CPP names a directory. | |
6048 | if test -n "$CPP" && test -d "$CPP"; then | |
6049 | CPP= | |
6050 | fi | |
6051 | if test -z "$CPP"; then | |
6052 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
6053 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6054 | else | |
6055 | # This must be in double quotes, not single quotes, because CPP may get | |
6056 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
6057 | CPP="${CC-cc} -E" | |
6058 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6059 | # not just through cpp. | |
6060 | cat > conftest.$ac_ext <<EOF | |
6061 | #line 6062 "configure" | |
6062 | #include "confdefs.h" | |
6063 | #include <assert.h> | |
6064 | Syntax Error | |
6065 | EOF | |
6066 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6067 | { (eval echo configure:6068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
6068 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
6069 | if test -z "$ac_err"; then | |
6070 | : | |
6071 | else | |
6072 | echo "$ac_err" >&5 | |
6073 | echo "configure: failed program was:" >&5 | |
6074 | cat conftest.$ac_ext >&5 | |
6075 | rm -rf conftest* | |
6076 | CPP="${CC-cc} -E -traditional-cpp" | |
6077 | cat > conftest.$ac_ext <<EOF | |
6078 | #line 6079 "configure" | |
6079 | #include "confdefs.h" | |
6080 | #include <assert.h> | |
6081 | Syntax Error | |
6082 | EOF | |
6083 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6084 | { (eval echo configure:6085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
6085 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
6086 | if test -z "$ac_err"; then | |
6087 | : | |
6088 | else | |
6089 | echo "$ac_err" >&5 | |
6090 | echo "configure: failed program was:" >&5 | |
6091 | cat conftest.$ac_ext >&5 | |
6092 | rm -rf conftest* | |
6093 | CPP="${CC-cc} -nologo -E" | |
6094 | cat > conftest.$ac_ext <<EOF | |
6095 | #line 6096 "configure" | |
6096 | #include "confdefs.h" | |
6097 | #include <assert.h> | |
6098 | Syntax Error | |
6099 | EOF | |
6100 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6101 | { (eval echo configure:6102: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
6102 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
6103 | if test -z "$ac_err"; then | |
6104 | : | |
6105 | else | |
6106 | echo "$ac_err" >&5 | |
6107 | echo "configure: failed program was:" >&5 | |
6108 | cat conftest.$ac_ext >&5 | |
6109 | rm -rf conftest* | |
6110 | CPP=/lib/cpp | |
6111 | fi | |
6112 | rm -f conftest* | |
6113 | fi | |
6114 | rm -f conftest* | |
6115 | fi | |
6116 | rm -f conftest* | |
6117 | ac_cv_prog_CPP="$CPP" | |
6118 | fi | |
6119 | CPP="$ac_cv_prog_CPP" | |
6120 | else | |
6121 | ac_cv_prog_CPP="$CPP" | |
6122 | fi | |
6123 | echo "$ac_t""$CPP" 1>&6 | |
6124 | ||
6125 | ||
6126 | if test $ac_cv_prog_gcc = yes; then | |
6127 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
6128 | echo "configure:6129: checking whether ${CC-cc} needs -traditional" >&5 | |
6129 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then | |
6130 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6131 | else | |
6132 | ac_pattern="Autoconf.*'x'" | |
6133 | cat > conftest.$ac_ext <<EOF | |
6134 | #line 6135 "configure" | |
6135 | #include "confdefs.h" | |
6136 | #include <sgtty.h> | |
6137 | Autoconf TIOCGETP | |
6138 | EOF | |
6139 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6140 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
6141 | rm -rf conftest* | |
6142 | ac_cv_prog_gcc_traditional=yes | |
6143 | else | |
6144 | rm -rf conftest* | |
6145 | ac_cv_prog_gcc_traditional=no | |
6146 | fi | |
6147 | rm -f conftest* | |
6148 | ||
6149 | ||
6150 | if test $ac_cv_prog_gcc_traditional = no; then | |
6151 | cat > conftest.$ac_ext <<EOF | |
6152 | #line 6153 "configure" | |
6153 | #include "confdefs.h" | |
6154 | #include <termio.h> | |
6155 | Autoconf TCGETA | |
6156 | EOF | |
6157 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6158 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
6159 | rm -rf conftest* | |
6160 | ac_cv_prog_gcc_traditional=yes | |
6161 | fi | |
6162 | rm -f conftest* | |
6163 | ||
6164 | fi | |
6165 | fi | |
6166 | ||
6167 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
6168 | if test $ac_cv_prog_gcc_traditional = yes; then | |
6169 | CC="$CC -traditional" | |
6170 | fi | |
6171 | fi | |
6172 | ||
6173 | ||
6174 | ||
6175 | ac_ext=C | |
6176 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6177 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6178 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6179 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6180 | cross_compiling=$ac_cv_prog_cxx_cross | |
6181 | ||
6182 | ||
6183 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
6184 | do | |
6185 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6186 | set dummy $ac_prog; ac_word=$2 | |
6187 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6188 | echo "configure:6189: checking for $ac_word" >&5 | |
6189 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then | |
6190 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6191 | else | |
6192 | if test -n "$CXX"; then | |
6193 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
6194 | else | |
6195 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6196 | ac_dummy="$PATH" | |
6197 | for ac_dir in $ac_dummy; do | |
6198 | test -z "$ac_dir" && ac_dir=. | |
6199 | if test -f $ac_dir/$ac_word; then | |
6200 | ac_cv_prog_CXX="$ac_prog" | |
6201 | break | |
6202 | fi | |
6203 | done | |
6204 | IFS="$ac_save_ifs" | |
6205 | fi | |
6206 | fi | |
6207 | CXX="$ac_cv_prog_CXX" | |
6208 | if test -n "$CXX"; then | |
6209 | echo "$ac_t""$CXX" 1>&6 | |
6210 | else | |
6211 | echo "$ac_t""no" 1>&6 | |
6212 | fi | |
6213 | ||
6214 | test -n "$CXX" && break | |
6215 | done | |
6216 | test -n "$CXX" || CXX="gcc" | |
6217 | ||
6218 | ||
6219 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
6220 | echo "configure:6221: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 | |
6221 | ||
6222 | ac_ext=C | |
6223 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6224 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6225 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6226 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6227 | cross_compiling=$ac_cv_prog_cxx_cross | |
6228 | ||
6229 | cat > conftest.$ac_ext << EOF | |
6230 | ||
6231 | #line 6232 "configure" | |
6232 | #include "confdefs.h" | |
6233 | ||
6234 | int main(){return(0);} | |
6235 | EOF | |
6236 | if { (eval echo configure:6237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
6237 | ac_cv_prog_cxx_works=yes | |
6238 | # If we can't run a trivial program, we are probably using a cross compiler. | |
6239 | if (./conftest; exit) 2>/dev/null; then | |
6240 | ac_cv_prog_cxx_cross=no | |
6241 | else | |
6242 | ac_cv_prog_cxx_cross=yes | |
6243 | fi | |
6244 | else | |
6245 | echo "configure: failed program was:" >&5 | |
6246 | cat conftest.$ac_ext >&5 | |
6247 | ac_cv_prog_cxx_works=no | |
6248 | fi | |
6249 | rm -fr conftest* | |
6250 | ac_ext=C | |
6251 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6252 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6253 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6254 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6255 | cross_compiling=$ac_cv_prog_cxx_cross | |
6256 | ||
6257 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
6258 | if test $ac_cv_prog_cxx_works = no; then | |
6259 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
6260 | fi | |
6261 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
6262 | echo "configure:6263: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 | |
6263 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 | |
6264 | cross_compiling=$ac_cv_prog_cxx_cross | |
6265 | ||
6266 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
6267 | echo "configure:6268: checking whether we are using GNU C++" >&5 | |
6268 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then | |
6269 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6270 | else | |
6271 | cat > conftest.C <<EOF | |
6272 | #ifdef __GNUC__ | |
6273 | yes; | |
6274 | #endif | |
6275 | EOF | |
6276 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | |
6277 | ac_cv_prog_gxx=yes | |
6278 | else | |
6279 | ac_cv_prog_gxx=no | |
6280 | fi | |
6281 | fi | |
6282 | ||
6283 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 | |
6284 | ||
6285 | if test $ac_cv_prog_gxx = yes; then | |
6286 | GXX=yes | |
6287 | else | |
6288 | GXX= | |
6289 | fi | |
6290 | ||
6291 | ac_test_CXXFLAGS="${CXXFLAGS+set}" | |
6292 | ac_save_CXXFLAGS="$CXXFLAGS" | |
6293 | CXXFLAGS= | |
6294 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
6295 | echo "configure:6296: checking whether ${CXX-g++} accepts -g" >&5 | |
6296 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then | |
6297 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6298 | else | |
6299 | echo 'void f(){}' > conftest.cc | |
6300 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
6301 | ac_cv_prog_cxx_g=yes | |
6302 | else | |
6303 | ac_cv_prog_cxx_g=no | |
6304 | fi | |
6305 | rm -f conftest* | |
6306 | ||
6307 | fi | |
6308 | ||
6309 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
6310 | if test "$ac_test_CXXFLAGS" = set; then | |
6311 | CXXFLAGS="$ac_save_CXXFLAGS" | |
6312 | elif test $ac_cv_prog_cxx_g = yes; then | |
6313 | if test "$GXX" = yes; then | |
6314 | CXXFLAGS="-g -O2" | |
6315 | else | |
6316 | CXXFLAGS="-g" | |
6317 | fi | |
6318 | else | |
6319 | if test "$GXX" = yes; then | |
6320 | CXXFLAGS="-O2" | |
6321 | else | |
6322 | CXXFLAGS= | |
6323 | fi | |
6324 | fi | |
6325 | ||
6326 | ||
6327 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 | |
6328 | echo "configure:6329: checking how to run the C++ preprocessor" >&5 | |
6329 | if test -z "$CXXCPP"; then | |
6330 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
6331 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6332 | else | |
6333 | ac_ext=C | |
6334 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6335 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6336 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6337 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6338 | cross_compiling=$ac_cv_prog_cxx_cross | |
6339 | CXXCPP="${CXX-g++} -E" | |
6340 | cat > conftest.$ac_ext <<EOF | |
6341 | #line 6342 "configure" | |
6342 | #include "confdefs.h" | |
6343 | #include <stdlib.h> | |
6344 | EOF | |
6345 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6346 | { (eval echo configure:6347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
6347 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
6348 | if test -z "$ac_err"; then | |
6349 | : | |
6350 | else | |
6351 | echo "$ac_err" >&5 | |
6352 | echo "configure: failed program was:" >&5 | |
6353 | cat conftest.$ac_ext >&5 | |
6354 | rm -rf conftest* | |
6355 | CXXCPP=/lib/cpp | |
6356 | fi | |
6357 | rm -f conftest* | |
6358 | ac_cv_prog_CXXCPP="$CXXCPP" | |
6359 | ac_ext=C | |
6360 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6361 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6362 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6363 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6364 | cross_compiling=$ac_cv_prog_cxx_cross | |
6365 | fi | |
6366 | fi | |
6367 | CXXCPP="$ac_cv_prog_CXXCPP" | |
6368 | echo "$ac_t""$CXXCPP" 1>&6 | |
6369 | ||
6370 | ||
6371 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` | |
6372 | ||
6373 | ac_ext=c | |
6374 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6375 | ac_cpp='$CPP $CPPFLAGS' | |
6376 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6377 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6378 | cross_compiling=$ac_cv_prog_cc_cross | |
6379 | ||
6380 | ||
6381 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6382 | set dummy ranlib; ac_word=$2 | |
6383 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6384 | echo "configure:6385: checking for $ac_word" >&5 | |
6385 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | |
6386 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6387 | else | |
6388 | if test -n "$RANLIB"; then | |
6389 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6390 | else | |
6391 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6392 | ac_dummy="$PATH" | |
6393 | for ac_dir in $ac_dummy; do | |
6394 | test -z "$ac_dir" && ac_dir=. | |
6395 | if test -f $ac_dir/$ac_word; then | |
6396 | ac_cv_prog_RANLIB="ranlib" | |
6397 | break | |
6398 | fi | |
6399 | done | |
6400 | IFS="$ac_save_ifs" | |
6401 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
6402 | fi | |
6403 | fi | |
6404 | RANLIB="$ac_cv_prog_RANLIB" | |
6405 | if test -n "$RANLIB"; then | |
6406 | echo "$ac_t""$RANLIB" 1>&6 | |
6407 | else | |
6408 | echo "$ac_t""no" 1>&6 | |
6409 | fi | |
6410 | ||
6411 | ||
6412 | # Extract the first word of "ar", so it can be a program name with args. | |
6413 | set dummy ar; ac_word=$2 | |
6414 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6415 | echo "configure:6416: checking for $ac_word" >&5 | |
6416 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then | |
6417 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6418 | else | |
6419 | if test -n "$AR"; then | |
6420 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6421 | else | |
6422 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6423 | ac_dummy="$PATH" | |
6424 | for ac_dir in $ac_dummy; do | |
6425 | test -z "$ac_dir" && ac_dir=. | |
6426 | if test -f $ac_dir/$ac_word; then | |
6427 | ac_cv_prog_AR="ar" | |
6428 | break | |
6429 | fi | |
6430 | done | |
6431 | IFS="$ac_save_ifs" | |
6432 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
6433 | fi | |
6434 | fi | |
6435 | AR="$ac_cv_prog_AR" | |
6436 | if test -n "$AR"; then | |
6437 | echo "$ac_t""$AR" 1>&6 | |
6438 | else | |
6439 | echo "$ac_t""no" 1>&6 | |
6440 | fi | |
6441 | ||
6442 | ||
6443 | # Find a good install program. We prefer a C program (faster), | |
6444 | # so one script is as good as another. But avoid the broken or | |
6445 | # incompatible versions: | |
6446 | # SysV /etc/install, /usr/sbin/install | |
6447 | # SunOS /usr/etc/install | |
6448 | # IRIX /sbin/install | |
6449 | # AIX /bin/install | |
6450 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
6451 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
6452 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
6453 | # ./install, which can be erroneously created by make from ./install.sh. | |
6454 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
6455 | echo "configure:6456: checking for a BSD compatible install" >&5 | |
6456 | if test -z "$INSTALL"; then | |
6457 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
6458 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6459 | else | |
6460 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
6461 | for ac_dir in $PATH; do | |
6462 | # Account for people who put trailing slashes in PATH elements. | |
6463 | case "$ac_dir/" in | |
6464 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
6465 | *) | |
6466 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
6467 | # Don't use installbsd from OSF since it installs stuff as root | |
6468 | # by default. | |
6469 | for ac_prog in ginstall scoinst install; do | |
6470 | if test -f $ac_dir/$ac_prog; then | |
6471 | if test $ac_prog = install && | |
6472 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
6473 | # AIX install. It has an incompatible calling convention. | |
6474 | : | |
6475 | else | |
6476 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
6477 | break 2 | |
6478 | fi | |
6479 | fi | |
6480 | done | |
6481 | ;; | |
6482 | esac | |
6483 | done | |
6484 | IFS="$ac_save_IFS" | |
6485 | ||
6486 | fi | |
6487 | if test "${ac_cv_path_install+set}" = set; then | |
6488 | INSTALL="$ac_cv_path_install" | |
6489 | else | |
6490 | # As a last resort, use the slow shell script. We don't cache a | |
6491 | # path for INSTALL within a source directory, because that will | |
6492 | # break other packages using the cache if that directory is | |
6493 | # removed, or if the path is relative. | |
6494 | INSTALL="$ac_install_sh" | |
6495 | fi | |
6496 | fi | |
6497 | echo "$ac_t""$INSTALL" 1>&6 | |
6498 | ||
6499 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
6500 | # It thinks the first close brace ends the variable substitution. | |
6501 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
6502 | ||
6503 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
6504 | ||
6505 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
6506 | ||
6507 | ||
6508 | # Extract the first word of "strip", so it can be a program name with args. | |
6509 | set dummy strip; ac_word=$2 | |
6510 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6511 | echo "configure:6512: checking for $ac_word" >&5 | |
6512 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then | |
6513 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6514 | else | |
6515 | if test -n "$STRIP"; then | |
6516 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6517 | else | |
6518 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6519 | ac_dummy="$PATH" | |
6520 | for ac_dir in $ac_dummy; do | |
6521 | test -z "$ac_dir" && ac_dir=. | |
6522 | if test -f $ac_dir/$ac_word; then | |
6523 | ac_cv_prog_STRIP="strip" | |
6524 | break | |
6525 | fi | |
6526 | done | |
6527 | IFS="$ac_save_ifs" | |
6528 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" | |
6529 | fi | |
6530 | fi | |
6531 | STRIP="$ac_cv_prog_STRIP" | |
6532 | if test -n "$STRIP"; then | |
6533 | echo "$ac_t""$STRIP" 1>&6 | |
6534 | else | |
6535 | echo "$ac_t""no" 1>&6 | |
6536 | fi | |
6537 | ||
6538 | ||
6539 | echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6 | |
6540 | echo "configure:6541: checking "make for VPATH support"" >&5 | |
6541 | cat - << EOF > confMake | |
6542 | check : file | |
6543 | cp \$? \$@ | |
6544 | cp \$? final_file | |
6545 | EOF | |
6546 | ||
6547 | if test ! -d sub ; then | |
6548 | mkdir sub | |
6549 | fi | |
6550 | echo dummy > sub/file | |
6551 | ${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null | |
6552 | RESULT=$? | |
6553 | rm -f sub/file check final_file confMake | |
6554 | rmdir sub | |
6555 | if test "$RESULT" = 0; then | |
6556 | echo "$ac_t""yes" 1>&6 | |
6557 | else | |
6558 | echo "$ac_t""no" 1>&6 | |
6559 | { echo "configure: error: You need a make-utility that is able to use the variable | |
6560 | VPATH correctly. | |
6561 | If your version of make does not support VPATH correctly" 1>&2; exit 1; } | |
6562 | fi | |
6563 | ||
6564 | for ac_prog in 'bison -y' byacc | |
6565 | do | |
6566 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6567 | set dummy $ac_prog; ac_word=$2 | |
6568 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6569 | echo "configure:6570: checking for $ac_word" >&5 | |
6570 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then | |
6571 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6572 | else | |
6573 | if test -n "$YACC"; then | |
6574 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
6575 | else | |
6576 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6577 | ac_dummy="$PATH" | |
6578 | for ac_dir in $ac_dummy; do | |
6579 | test -z "$ac_dir" && ac_dir=. | |
6580 | if test -f $ac_dir/$ac_word; then | |
6581 | ac_cv_prog_YACC="$ac_prog" | |
6582 | break | |
6583 | fi | |
6584 | done | |
6585 | IFS="$ac_save_ifs" | |
6586 | fi | |
6587 | fi | |
6588 | YACC="$ac_cv_prog_YACC" | |
6589 | if test -n "$YACC"; then | |
6590 | echo "$ac_t""$YACC" 1>&6 | |
6591 | else | |
6592 | echo "$ac_t""no" 1>&6 | |
6593 | fi | |
6594 | ||
6595 | test -n "$YACC" && break | |
6596 | done | |
6597 | test -n "$YACC" || YACC="yacc" | |
6598 | ||
6599 | ||
6600 | # Extract the first word of "flex", so it can be a program name with args. | |
6601 | set dummy flex; ac_word=$2 | |
6602 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6603 | echo "configure:6604: checking for $ac_word" >&5 | |
6604 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then | |
6605 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6606 | else | |
6607 | if test -n "$LEX"; then | |
6608 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
6609 | else | |
6610 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6611 | ac_dummy="$PATH" | |
6612 | for ac_dir in $ac_dummy; do | |
6613 | test -z "$ac_dir" && ac_dir=. | |
6614 | if test -f $ac_dir/$ac_word; then | |
6615 | ac_cv_prog_LEX="flex" | |
6616 | break | |
6617 | fi | |
6618 | done | |
6619 | IFS="$ac_save_ifs" | |
6620 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
6621 | fi | |
6622 | fi | |
6623 | LEX="$ac_cv_prog_LEX" | |
6624 | if test -n "$LEX"; then | |
6625 | echo "$ac_t""$LEX" 1>&6 | |
6626 | else | |
6627 | echo "$ac_t""no" 1>&6 | |
6628 | fi | |
6629 | ||
6630 | if test -z "$LEXLIB" | |
6631 | then | |
6632 | case "$LEX" in | |
6633 | flex*) ac_lib=fl ;; | |
6634 | *) ac_lib=l ;; | |
6635 | esac | |
6636 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
6637 | echo "configure:6638: checking for yywrap in -l$ac_lib" >&5 | |
6638 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` | |
6639 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
6640 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6641 | else | |
6642 | ac_save_LIBS="$LIBS" | |
6643 | LIBS="-l$ac_lib $LIBS" | |
6644 | cat > conftest.$ac_ext <<EOF | |
6645 | #line 6646 "configure" | |
6646 | #include "confdefs.h" | |
6647 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6648 | /* We use char because int might match the return type of a gcc2 | |
6649 | builtin and then its argument prototype would still apply. */ | |
6650 | char yywrap(); | |
6651 | ||
6652 | int main() { | |
6653 | yywrap() | |
6654 | ; return 0; } | |
6655 | EOF | |
6656 | if { (eval echo configure:6657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
6657 | rm -rf conftest* | |
6658 | eval "ac_cv_lib_$ac_lib_var=yes" | |
6659 | else | |
6660 | echo "configure: failed program was:" >&5 | |
6661 | cat conftest.$ac_ext >&5 | |
6662 | rm -rf conftest* | |
6663 | eval "ac_cv_lib_$ac_lib_var=no" | |
6664 | fi | |
6665 | rm -f conftest* | |
6666 | LIBS="$ac_save_LIBS" | |
6667 | ||
6668 | fi | |
6669 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
6670 | echo "$ac_t""yes" 1>&6 | |
6671 | LEXLIB="-l$ac_lib" | |
6672 | else | |
6673 | echo "$ac_t""no" 1>&6 | |
6674 | fi | |
6675 | ||
6676 | fi | |
6677 | ||
6678 | ||
6679 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
6680 | echo "configure:6681: checking whether ln -s works" >&5 | |
6681 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then | |
6682 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6683 | else | |
6684 | rm -f conftestdata | |
6685 | if ln -s X conftestdata 2>/dev/null | |
6686 | then | |
6687 | rm -f conftestdata | |
6688 | ac_cv_prog_LN_S="ln -s" | |
6689 | else | |
6690 | ac_cv_prog_LN_S=ln | |
6691 | fi | |
6692 | fi | |
6693 | LN_S="$ac_cv_prog_LN_S" | |
6694 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
6695 | echo "$ac_t""yes" 1>&6 | |
6696 | else | |
6697 | echo "$ac_t""no" 1>&6 | |
6698 | fi | |
6699 | ||
6700 | ||
6701 | ||
6702 | SEARCH_INCLUDE="\ | |
6703 | /usr/local/include \ | |
6704 | \ | |
6705 | /usr/Motif-1.2/include \ | |
6706 | /usr/Motif-2.1/include \ | |
6707 | \ | |
6708 | /usr/include/Motif1.2 \ | |
6709 | /opt/xpm/include/X11 \ | |
6710 | /opt/GBxpm/include/ \ | |
6711 | /opt/GBxpm/X11/include/ \ | |
6712 | \ | |
6713 | /usr/Motif1.2/include \ | |
6714 | /usr/dt/include \ | |
6715 | /usr/openwin/include \ | |
6716 | \ | |
6717 | /usr/include/Xm \ | |
6718 | \ | |
6719 | /usr/X11R6/include \ | |
6720 | /usr/X11R6.4/include \ | |
6721 | /usr/X11R5/include \ | |
6722 | /usr/X11R4/include \ | |
6723 | \ | |
6724 | /usr/include/X11R6 \ | |
6725 | /usr/include/X11R5 \ | |
6726 | /usr/include/X11R4 \ | |
6727 | \ | |
6728 | /usr/local/X11R6/include \ | |
6729 | /usr/local/X11R5/include \ | |
6730 | /usr/local/X11R4/include \ | |
6731 | \ | |
6732 | /usr/local/include/X11R6 \ | |
6733 | /usr/local/include/X11R5 \ | |
6734 | /usr/local/include/X11R4 \ | |
6735 | \ | |
6736 | /usr/X11/include \ | |
6737 | /usr/include/X11 \ | |
6738 | /usr/local/X11/include \ | |
6739 | /usr/local/include/X11 \ | |
6740 | \ | |
6741 | /usr/X386/include \ | |
6742 | /usr/x386/include \ | |
6743 | /usr/XFree86/include/X11 \ | |
6744 | \ | |
6745 | /usr/include/gtk \ | |
6746 | /usr/local/include/gtk \ | |
6747 | /usr/include/glib \ | |
6748 | /usr/local/include/glib \ | |
6749 | \ | |
6750 | /usr/include/qt \ | |
6751 | /usr/local/include/qt \ | |
6752 | \ | |
6753 | /usr/include/windows \ | |
6754 | /usr/include/wine \ | |
6755 | /usr/local/include/wine \ | |
6756 | \ | |
6757 | /usr/unsupported/include \ | |
6758 | /usr/athena/include \ | |
6759 | /usr/local/x11r5/include \ | |
6760 | /usr/lpp/Xamples/include \ | |
6761 | \ | |
6762 | /usr/openwin/share/include \ | |
6763 | \ | |
6764 | /usr/include" | |
6765 | ||
6766 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
6767 | ||
6768 | ||
6769 | cat > confcache <<\EOF | |
6770 | # This file is a shell script that caches the results of configure | |
6771 | # tests run on this system so they can be shared between configure | |
6772 | # scripts and configure runs. It is not useful on other systems. | |
6773 | # If it contains results you don't want to keep, you may remove or edit it. | |
6774 | # | |
6775 | # By default, configure uses ./config.cache as the cache file, | |
6776 | # creating it if it does not exist already. You can give configure | |
6777 | # the --cache-file=FILE option to use a different cache file; that is | |
6778 | # what configure does when it calls configure scripts in | |
6779 | # subdirectories, so they share the cache. | |
6780 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
6781 | # config.status only pays attention to the cache file if you give it the | |
6782 | # --recheck option to rerun configure. | |
6783 | # | |
6784 | EOF | |
6785 | # The following way of writing the cache mishandles newlines in values, | |
6786 | # but we know of no workaround that is simple, portable, and efficient. | |
6787 | # So, don't put newlines in cache variables' values. | |
6788 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
6789 | # and sets the high bit in the cache file unless we assign to the vars. | |
6790 | (set) 2>&1 | | |
6791 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
6792 | *ac_space=\ *) | |
6793 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
6794 | # turns \\\\ into \\, and sed turns \\ into \). | |
6795 | sed -n \ | |
6796 | -e "s/'/'\\\\''/g" \ | |
6797 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
6798 | ;; | |
6799 | *) | |
6800 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
6801 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
6802 | ;; | |
6803 | esac >> confcache | |
6804 | if cmp -s $cache_file confcache; then | |
6805 | : | |
6806 | else | |
6807 | if test -w $cache_file; then | |
6808 | echo "updating cache $cache_file" | |
6809 | cat confcache > $cache_file | |
6810 | else | |
6811 | echo "not updating unwritable cache $cache_file" | |
6812 | fi | |
6813 | fi | |
6814 | rm -f confcache | |
6815 | ||
6816 | ||
6817 | ||
6818 | if test "$wxUSE_GUI" = "yes"; then | |
6819 | ||
6820 | TOOLKIT= | |
6821 | TOOLKIT_INCLUDE= | |
6822 | ||
6823 | GUIOBJS= | |
6824 | COMMONOBJS= | |
6825 | GENERICOBJS= | |
6826 | ||
6827 | GUI_TK_LIBRARY= | |
6828 | GUI_TK_LINK= | |
6829 | ||
6830 | WXGTK12= | |
6831 | WXGTK13= | |
6832 | ||
6833 | WXWINE= | |
6834 | ||
6835 | PROGRAM_EXT= | |
6836 | ||
6837 | if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then | |
6838 | if test "$cross_compiling" = "yes" ; then | |
6839 | echo "configure: warning: Cross compiling --- skipping windows.h check" 1>&2 | |
6840 | else | |
6841 | echo $ac_n "checking for Windows headers""... $ac_c" 1>&6 | |
6842 | echo "configure:6843: checking for Windows headers" >&5 | |
6843 | ||
6844 | ac_find_includes= | |
6845 | for ac_dir in $SEARCH_INCLUDE; | |
6846 | do | |
6847 | if test -f "$ac_dir/windows.h"; then | |
6848 | ac_find_includes=$ac_dir | |
6849 | break | |
6850 | fi | |
6851 | done | |
6852 | ||
6853 | if test "$ac_find_includes" != "" ; then | |
6854 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
6855 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
6856 | else | |
6857 | echo "$ac_t""no" 1>&6 | |
6858 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
6859 | fi | |
6860 | fi | |
6861 | ||
6862 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw" | |
6863 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32" | |
6864 | ||
6865 | if test "$wxUSE_MINGW" = 1; then | |
6866 | LDFLAGS="$LDFLAGS -mwindows" | |
6867 | fi | |
6868 | ||
6869 | TOOLKIT=MSW | |
6870 | ||
6871 | GUIOBJS="\$(MSW_GUIOBJS)" | |
6872 | GUIHEADERS="\$(MSW_HEADERS)" | |
6873 | COMMONOBJS="\$(MSW_COMMONOBJS)" | |
6874 | GENERICOBJS="\$(MSW_GENERICOBJS)" | |
6875 | UNIXOBJS= | |
6876 | GUIDIST=MSW_DIST | |
6877 | PROGRAM_EXT=.exe | |
6878 | fi | |
6879 | ||
6880 | if test "$wxUSE_GTK" = 1; then | |
6881 | ||
6882 | if test x$gtk_config_exec_prefix != x ; then | |
6883 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
6884 | if test x${GTK_CONFIG+set} != xset ; then | |
6885 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
6886 | fi | |
6887 | fi | |
6888 | if test x$gtk_config_prefix != x ; then | |
6889 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
6890 | if test x${GTK_CONFIG+set} != xset ; then | |
6891 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
6892 | fi | |
6893 | fi | |
6894 | ||
6895 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
6896 | set dummy gtk-config; ac_word=$2 | |
6897 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6898 | echo "configure:6899: checking for $ac_word" >&5 | |
6899 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then | |
6900 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6901 | else | |
6902 | case "$GTK_CONFIG" in | |
6903 | /*) | |
6904 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
6905 | ;; | |
6906 | ?:/*) | |
6907 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
6908 | ;; | |
6909 | *) | |
6910 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6911 | ac_dummy="$PATH" | |
6912 | for ac_dir in $ac_dummy; do | |
6913 | test -z "$ac_dir" && ac_dir=. | |
6914 | if test -f $ac_dir/$ac_word; then | |
6915 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
6916 | break | |
6917 | fi | |
6918 | done | |
6919 | IFS="$ac_save_ifs" | |
6920 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
6921 | ;; | |
6922 | esac | |
6923 | fi | |
6924 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
6925 | if test -n "$GTK_CONFIG"; then | |
6926 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
6927 | else | |
6928 | echo "$ac_t""no" 1>&6 | |
6929 | fi | |
6930 | ||
6931 | min_gtk_version=1.2.1 | |
6932 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 | |
6933 | echo "configure:6934: checking for GTK - version >= $min_gtk_version" >&5 | |
6934 | no_gtk="" | |
6935 | if test "$GTK_CONFIG" != "no" ; then | |
6936 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
6937 | GTK_LIBS=`$GTK_CONFIG --libs` | |
6938 | ac_save_CFLAGS="$CFLAGS" | |
6939 | ac_save_LIBS="$LIBS" | |
6940 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
6941 | LIBS="$LIBS $GTK_LIBS" | |
6942 | if test "$cross_compiling" = yes; then | |
6943 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
6944 | else | |
6945 | cat > conftest.$ac_ext <<EOF | |
6946 | #line 6947 "configure" | |
6947 | #include "confdefs.h" | |
6948 | ||
6949 | #include <gtk/gtk.h> | |
6950 | #include <gtk/gtkfeatures.h> | |
6951 | #include <stdio.h> | |
6952 | ||
6953 | int | |
6954 | main () | |
6955 | { | |
6956 | int major, minor, micro; | |
6957 | ||
6958 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
6959 | printf("%s, bad version string\n", "$min_gtk_version"); | |
6960 | exit(1); | |
6961 | } | |
6962 | ||
6963 | if ((GTK_MAJOR_VERSION != gtk_major_version) || | |
6964 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
6965 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
6966 | printf("Headers vs. library version mismatch!\n"); | |
6967 | exit(1); | |
6968 | } | |
6969 | ||
6970 | if (gtk_minor_version == 1) return FALSE; | |
6971 | ||
6972 | return !((gtk_major_version > major) || | |
6973 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
6974 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
6975 | } | |
6976 | ||
6977 | EOF | |
6978 | if { (eval echo configure:6979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
6979 | then | |
6980 | : | |
6981 | else | |
6982 | echo "configure: failed program was:" >&5 | |
6983 | cat conftest.$ac_ext >&5 | |
6984 | rm -fr conftest* | |
6985 | no_gtk=yes | |
6986 | fi | |
6987 | rm -fr conftest* | |
6988 | fi | |
6989 | ||
6990 | CFLAGS="$ac_save_CFLAGS" | |
6991 | LIBS="$ac_save_LIBS" | |
6992 | else | |
6993 | no_gtk=yes | |
6994 | fi | |
6995 | if test "x$no_gtk" = x ; then | |
6996 | echo "$ac_t""yes" 1>&6 | |
6997 | WXGTK12=1 | |
6998 | else | |
6999 | echo "$ac_t""no" 1>&6 | |
7000 | GTK_CFLAGS="" | |
7001 | GTK_LIBS="" | |
7002 | { echo "configure: error: Is gtk-config in path and GTK+ is version 1.2.1 or above?" 1>&2; exit 1; } | |
7003 | fi | |
7004 | ||
7005 | ||
7006 | ||
7007 | ||
7008 | TOOLKIT_INCLUDE="$GTK_CFLAGS" | |
7009 | GUI_TK_LIBRARY="$GTK_LIBS -lgthread" | |
7010 | TOOLKIT=GTK | |
7011 | ||
7012 | GUIOBJS="\$(GTK_GUIOBJS)" | |
7013 | GUIHEADERS="\$(GTK_HEADERS)" | |
7014 | COMMONOBJS="\$(GTK_COMMONOBJS)" | |
7015 | GENERICOBJS="\$(GTK_GENERICOBJS)" | |
7016 | GUIDEPS="\$(GTK_GUIDEPS)" | |
7017 | COMMONDEPS="\$(GTK_COMMONDEPS)" | |
7018 | GENERICDEPS="\$(GTK_GENERICDEPS)" | |
7019 | UNIXOBJS="\$(UNIX_OBJS)" | |
7020 | UNIXDEPS="\$(UNIX_DEPS)" | |
7021 | GUIDIST=GTK_DIST | |
7022 | ||
7023 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 | |
7024 | echo "configure:7025: checking for gdk_im_open in -lgdk" >&5 | |
7025 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` | |
7026 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7027 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7028 | else | |
7029 | ac_save_LIBS="$LIBS" | |
7030 | LIBS="-lgdk $LIBS" | |
7031 | cat > conftest.$ac_ext <<EOF | |
7032 | #line 7033 "configure" | |
7033 | #include "confdefs.h" | |
7034 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7035 | /* We use char because int might match the return type of a gcc2 | |
7036 | builtin and then its argument prototype would still apply. */ | |
7037 | char gdk_im_open(); | |
7038 | ||
7039 | int main() { | |
7040 | gdk_im_open() | |
7041 | ; return 0; } | |
7042 | EOF | |
7043 | if { (eval echo configure:7044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7044 | rm -rf conftest* | |
7045 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7046 | else | |
7047 | echo "configure: failed program was:" >&5 | |
7048 | cat conftest.$ac_ext >&5 | |
7049 | rm -rf conftest* | |
7050 | eval "ac_cv_lib_$ac_lib_var=no" | |
7051 | fi | |
7052 | rm -f conftest* | |
7053 | LIBS="$ac_save_LIBS" | |
7054 | ||
7055 | fi | |
7056 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7057 | echo "$ac_t""yes" 1>&6 | |
7058 | cat >> confdefs.h <<\EOF | |
7059 | #define HAVE_XIM 1 | |
7060 | EOF | |
7061 | ||
7062 | else | |
7063 | echo "$ac_t""no" 1>&6 | |
7064 | fi | |
7065 | ||
7066 | ||
7067 | fi | |
7068 | ||
7069 | if test "$wxUSE_WINE" = 1; then | |
7070 | echo $ac_n "checking for WINE includes""... $ac_c" 1>&6 | |
7071 | echo "configure:7072: checking for WINE includes" >&5 | |
7072 | ||
7073 | ac_find_includes= | |
7074 | for ac_dir in $SEARCH_INCLUDE; | |
7075 | do | |
7076 | if test -f "$ac_dir/windows.h"; then | |
7077 | ac_find_includes=$ac_dir | |
7078 | break | |
7079 | fi | |
7080 | done | |
7081 | ||
7082 | if test "$ac_find_includes" != "" ; then | |
7083 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
7084 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
7085 | else | |
7086 | echo "$ac_t""no" 1>&6 | |
7087 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
7088 | fi | |
7089 | ||
7090 | XPM_LINK="" | |
7091 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
7092 | echo "configure:7093: checking for Xpm library" >&5 | |
7093 | ||
7094 | ac_find_libraries= | |
7095 | for ac_dir in $SEARCH_LIB; | |
7096 | do | |
7097 | for ac_extension in a so sl; do | |
7098 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
7099 | ac_find_libraries=$ac_dir | |
7100 | break 2 | |
7101 | fi | |
7102 | done | |
7103 | done | |
7104 | ||
7105 | if test "$ac_find_libraries" != "" ; then | |
7106 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
7107 | XPM_LINK="-lXpm" | |
7108 | cat >> confdefs.h <<\EOF | |
7109 | #define wxHAVE_LIB_XPM 1 | |
7110 | EOF | |
7111 | ||
7112 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
7113 | else | |
7114 | echo "$ac_t""no" 1>&6 | |
7115 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
7116 | fi | |
7117 | ||
7118 | MESA_LINK="" | |
7119 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 | |
7120 | echo "configure:7121: checking for Mesa library" >&5 | |
7121 | ||
7122 | ac_find_libraries= | |
7123 | for ac_dir in $SEARCH_LIB; | |
7124 | do | |
7125 | for ac_extension in a so sl; do | |
7126 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
7127 | ac_find_libraries=$ac_dir | |
7128 | break 2 | |
7129 | fi | |
7130 | done | |
7131 | done | |
7132 | ||
7133 | if test "$ac_find_libraries" != "" ; then | |
7134 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
7135 | MESA_LINK="-lMesaGL" | |
7136 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
7137 | else | |
7138 | { echo "configure: error: no" 1>&2; exit 1; } | |
7139 | fi | |
7140 | ||
7141 | GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses -lm" | |
7142 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" | |
7143 | WXWINE=1 | |
7144 | TOOLKIT=MSW | |
7145 | ||
7146 | GUIHEADERS="\$(MSW_HEADERS)" | |
7147 | GUIOBJS="\$(MSW_GUIOBJS)" | |
7148 | COMMONOBJS="\$(MSW_COMMONOBJS)" | |
7149 | GENERICOBJS="\$(MSW_GENERICOBJS)" | |
7150 | GUIDEPS="\$(MSW_GUIDEPS)" | |
7151 | COMMONDEPS="\$(MSW_COMMONDEPS)" | |
7152 | GENERICDEPS="\$(MSW_GENERICDEPS)" | |
7153 | UNIXOBJS="\$(UNIX_OBJS)" | |
7154 | UNIXDEPS="\$(UNIX_DEPS)" | |
7155 | GUIDIST=MSW_DIST | |
7156 | fi | |
7157 | ||
7158 | if test "$wxUSE_MOTIF" = 1; then | |
7159 | # If we find X, set shell vars x_includes and x_libraries to the | |
7160 | # paths, otherwise set no_x=yes. | |
7161 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
7162 | # --without-x overrides everything else, but does not touch the cache. | |
7163 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
7164 | echo "configure:7165: checking for X" >&5 | |
7165 | ||
7166 | # Check whether --with-x or --without-x was given. | |
7167 | if test "${with_x+set}" = set; then | |
7168 | withval="$with_x" | |
7169 | : | |
7170 | fi | |
7171 | ||
7172 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
7173 | if test "x$with_x" = xno; then | |
7174 | # The user explicitly disabled X. | |
7175 | have_x=disabled | |
7176 | else | |
7177 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
7178 | # Both variables are already set. | |
7179 | have_x=yes | |
7180 | else | |
7181 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then | |
7182 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7183 | else | |
7184 | # One or both of the vars are not set, and there is no cached value. | |
7185 | ac_x_includes=NO ac_x_libraries=NO | |
7186 | rm -fr conftestdir | |
7187 | if mkdir conftestdir; then | |
7188 | cd conftestdir | |
7189 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
7190 | cat > Imakefile <<'EOF' | |
7191 | acfindx: | |
7192 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
7193 | EOF | |
7194 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
7195 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
7196 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
7197 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
7198 | for ac_extension in a so sl; do | |
7199 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
7200 | test -f $ac_im_libdir/libX11.$ac_extension; then | |
7201 | ac_im_usrlibdir=$ac_im_libdir; break | |
7202 | fi | |
7203 | done | |
7204 | # Screen out bogus values from the imake configuration. They are | |
7205 | # bogus both because they are the default anyway, and because | |
7206 | # using them would break gcc on systems where it needs fixed includes. | |
7207 | case "$ac_im_incroot" in | |
7208 | /usr/include) ;; | |
7209 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; | |
7210 | esac | |
7211 | case "$ac_im_usrlibdir" in | |
7212 | /usr/lib | /lib) ;; | |
7213 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; | |
7214 | esac | |
7215 | fi | |
7216 | cd .. | |
7217 | rm -fr conftestdir | |
7218 | fi | |
7219 | ||
7220 | if test "$ac_x_includes" = NO; then | |
7221 | # Guess where to find include files, by looking for this one X11 .h file. | |
7222 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
7223 | ||
7224 | # First, try using that file with no special directory specified. | |
7225 | cat > conftest.$ac_ext <<EOF | |
7226 | #line 7227 "configure" | |
7227 | #include "confdefs.h" | |
7228 | #include <$x_direct_test_include> | |
7229 | EOF | |
7230 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
7231 | { (eval echo configure:7232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
7232 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
7233 | if test -z "$ac_err"; then | |
7234 | rm -rf conftest* | |
7235 | # We can compile using X headers with no special include directory. | |
7236 | ac_x_includes= | |
7237 | else | |
7238 | echo "$ac_err" >&5 | |
7239 | echo "configure: failed program was:" >&5 | |
7240 | cat conftest.$ac_ext >&5 | |
7241 | rm -rf conftest* | |
7242 | # Look for the header file in a standard set of common directories. | |
7243 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
7244 | for ac_dir in \ | |
7245 | /usr/X11/include \ | |
7246 | /usr/X11R6/include \ | |
7247 | /usr/X11R5/include \ | |
7248 | /usr/X11R4/include \ | |
7249 | \ | |
7250 | /usr/include/X11 \ | |
7251 | /usr/include/X11R6 \ | |
7252 | /usr/include/X11R5 \ | |
7253 | /usr/include/X11R4 \ | |
7254 | \ | |
7255 | /usr/local/X11/include \ | |
7256 | /usr/local/X11R6/include \ | |
7257 | /usr/local/X11R5/include \ | |
7258 | /usr/local/X11R4/include \ | |
7259 | \ | |
7260 | /usr/local/include/X11 \ | |
7261 | /usr/local/include/X11R6 \ | |
7262 | /usr/local/include/X11R5 \ | |
7263 | /usr/local/include/X11R4 \ | |
7264 | \ | |
7265 | /usr/X386/include \ | |
7266 | /usr/x386/include \ | |
7267 | /usr/XFree86/include/X11 \ | |
7268 | \ | |
7269 | /usr/include \ | |
7270 | /usr/local/include \ | |
7271 | /usr/unsupported/include \ | |
7272 | /usr/athena/include \ | |
7273 | /usr/local/x11r5/include \ | |
7274 | /usr/lpp/Xamples/include \ | |
7275 | \ | |
7276 | /usr/openwin/include \ | |
7277 | /usr/openwin/share/include \ | |
7278 | ; \ | |
7279 | do | |
7280 | if test -r "$ac_dir/$x_direct_test_include"; then | |
7281 | ac_x_includes=$ac_dir | |
7282 | break | |
7283 | fi | |
7284 | done | |
7285 | fi | |
7286 | rm -f conftest* | |
7287 | fi # $ac_x_includes = NO | |
7288 | ||
7289 | if test "$ac_x_libraries" = NO; then | |
7290 | # Check for the libraries. | |
7291 | ||
7292 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
7293 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
7294 | ||
7295 | # See if we find them without any special options. | |
7296 | # Don't add to $LIBS permanently. | |
7297 | ac_save_LIBS="$LIBS" | |
7298 | LIBS="-l$x_direct_test_library $LIBS" | |
7299 | cat > conftest.$ac_ext <<EOF | |
7300 | #line 7301 "configure" | |
7301 | #include "confdefs.h" | |
7302 | ||
7303 | int main() { | |
7304 | ${x_direct_test_function}() | |
7305 | ; return 0; } | |
7306 | EOF | |
7307 | if { (eval echo configure:7308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7308 | rm -rf conftest* | |
7309 | LIBS="$ac_save_LIBS" | |
7310 | # We can link X programs with no special library path. | |
7311 | ac_x_libraries= | |
7312 | else | |
7313 | echo "configure: failed program was:" >&5 | |
7314 | cat conftest.$ac_ext >&5 | |
7315 | rm -rf conftest* | |
7316 | LIBS="$ac_save_LIBS" | |
7317 | # First see if replacing the include by lib works. | |
7318 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
7319 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
7320 | /usr/X11/lib \ | |
7321 | /usr/X11R6/lib \ | |
7322 | /usr/X11R5/lib \ | |
7323 | /usr/X11R4/lib \ | |
7324 | \ | |
7325 | /usr/lib/X11 \ | |
7326 | /usr/lib/X11R6 \ | |
7327 | /usr/lib/X11R5 \ | |
7328 | /usr/lib/X11R4 \ | |
7329 | \ | |
7330 | /usr/local/X11/lib \ | |
7331 | /usr/local/X11R6/lib \ | |
7332 | /usr/local/X11R5/lib \ | |
7333 | /usr/local/X11R4/lib \ | |
7334 | \ | |
7335 | /usr/local/lib/X11 \ | |
7336 | /usr/local/lib/X11R6 \ | |
7337 | /usr/local/lib/X11R5 \ | |
7338 | /usr/local/lib/X11R4 \ | |
7339 | \ | |
7340 | /usr/X386/lib \ | |
7341 | /usr/x386/lib \ | |
7342 | /usr/XFree86/lib/X11 \ | |
7343 | \ | |
7344 | /usr/lib \ | |
7345 | /usr/local/lib \ | |
7346 | /usr/unsupported/lib \ | |
7347 | /usr/athena/lib \ | |
7348 | /usr/local/x11r5/lib \ | |
7349 | /usr/lpp/Xamples/lib \ | |
7350 | /lib/usr/lib/X11 \ | |
7351 | \ | |
7352 | /usr/openwin/lib \ | |
7353 | /usr/openwin/share/lib \ | |
7354 | ; \ | |
7355 | do | |
7356 | for ac_extension in a so sl; do | |
7357 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then | |
7358 | ac_x_libraries=$ac_dir | |
7359 | break 2 | |
7360 | fi | |
7361 | done | |
7362 | done | |
7363 | fi | |
7364 | rm -f conftest* | |
7365 | fi # $ac_x_libraries = NO | |
7366 | ||
7367 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then | |
7368 | # Didn't find X anywhere. Cache the known absence of X. | |
7369 | ac_cv_have_x="have_x=no" | |
7370 | else | |
7371 | # Record where we found X for the cache. | |
7372 | ac_cv_have_x="have_x=yes \ | |
7373 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
7374 | fi | |
7375 | fi | |
7376 | fi | |
7377 | eval "$ac_cv_have_x" | |
7378 | fi # $with_x != no | |
7379 | ||
7380 | if test "$have_x" != yes; then | |
7381 | echo "$ac_t""$have_x" 1>&6 | |
7382 | no_x=yes | |
7383 | else | |
7384 | # If each of the values was on the command line, it overrides each guess. | |
7385 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
7386 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
7387 | # Update the cache value to reflect the command line values. | |
7388 | ac_cv_have_x="have_x=yes \ | |
7389 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
7390 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 | |
7391 | fi | |
7392 | ||
7393 | if test "$no_x" = yes; then | |
7394 | # Not all programs may use this symbol, but it does not hurt to define it. | |
7395 | cat >> confdefs.h <<\EOF | |
7396 | #define X_DISPLAY_MISSING 1 | |
7397 | EOF | |
7398 | ||
7399 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
7400 | else | |
7401 | if test -n "$x_includes"; then | |
7402 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
7403 | fi | |
7404 | ||
7405 | # It would also be nice to do this for all -L options, not just this one. | |
7406 | if test -n "$x_libraries"; then | |
7407 | X_LIBS="$X_LIBS -L$x_libraries" | |
7408 | # For Solaris; some versions of Sun CC require a space after -R and | |
7409 | # others require no space. Words are not sufficient . . . . | |
7410 | case "`(uname -sr) 2>/dev/null`" in | |
7411 | "SunOS 5"*) | |
7412 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | |
7413 | echo "configure:7414: checking whether -R must be followed by a space" >&5 | |
7414 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" | |
7415 | cat > conftest.$ac_ext <<EOF | |
7416 | #line 7417 "configure" | |
7417 | #include "confdefs.h" | |
7418 | ||
7419 | int main() { | |
7420 | ||
7421 | ; return 0; } | |
7422 | EOF | |
7423 | if { (eval echo configure:7424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7424 | rm -rf conftest* | |
7425 | ac_R_nospace=yes | |
7426 | else | |
7427 | echo "configure: failed program was:" >&5 | |
7428 | cat conftest.$ac_ext >&5 | |
7429 | rm -rf conftest* | |
7430 | ac_R_nospace=no | |
7431 | fi | |
7432 | rm -f conftest* | |
7433 | if test $ac_R_nospace = yes; then | |
7434 | echo "$ac_t""no" 1>&6 | |
7435 | X_LIBS="$X_LIBS -R$x_libraries" | |
7436 | else | |
7437 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
7438 | cat > conftest.$ac_ext <<EOF | |
7439 | #line 7440 "configure" | |
7440 | #include "confdefs.h" | |
7441 | ||
7442 | int main() { | |
7443 | ||
7444 | ; return 0; } | |
7445 | EOF | |
7446 | if { (eval echo configure:7447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7447 | rm -rf conftest* | |
7448 | ac_R_space=yes | |
7449 | else | |
7450 | echo "configure: failed program was:" >&5 | |
7451 | cat conftest.$ac_ext >&5 | |
7452 | rm -rf conftest* | |
7453 | ac_R_space=no | |
7454 | fi | |
7455 | rm -f conftest* | |
7456 | if test $ac_R_space = yes; then | |
7457 | echo "$ac_t""yes" 1>&6 | |
7458 | X_LIBS="$X_LIBS -R $x_libraries" | |
7459 | else | |
7460 | echo "$ac_t""neither works" 1>&6 | |
7461 | fi | |
7462 | fi | |
7463 | LIBS="$ac_xsave_LIBS" | |
7464 | esac | |
7465 | fi | |
7466 | ||
7467 | # Check for system-dependent libraries X programs must link with. | |
7468 | # Do this before checking for the system-independent R6 libraries | |
7469 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
7470 | ||
7471 | if test "$ISC" = yes; then | |
7472 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
7473 | else | |
7474 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | |
7475 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
7476 | # the Alpha needs dnet_stub (dnet does not exist). | |
7477 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
7478 | echo "configure:7479: checking for dnet_ntoa in -ldnet" >&5 | |
7479 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` | |
7480 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7481 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7482 | else | |
7483 | ac_save_LIBS="$LIBS" | |
7484 | LIBS="-ldnet $LIBS" | |
7485 | cat > conftest.$ac_ext <<EOF | |
7486 | #line 7487 "configure" | |
7487 | #include "confdefs.h" | |
7488 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7489 | /* We use char because int might match the return type of a gcc2 | |
7490 | builtin and then its argument prototype would still apply. */ | |
7491 | char dnet_ntoa(); | |
7492 | ||
7493 | int main() { | |
7494 | dnet_ntoa() | |
7495 | ; return 0; } | |
7496 | EOF | |
7497 | if { (eval echo configure:7498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7498 | rm -rf conftest* | |
7499 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7500 | else | |
7501 | echo "configure: failed program was:" >&5 | |
7502 | cat conftest.$ac_ext >&5 | |
7503 | rm -rf conftest* | |
7504 | eval "ac_cv_lib_$ac_lib_var=no" | |
7505 | fi | |
7506 | rm -f conftest* | |
7507 | LIBS="$ac_save_LIBS" | |
7508 | ||
7509 | fi | |
7510 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7511 | echo "$ac_t""yes" 1>&6 | |
7512 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
7513 | else | |
7514 | echo "$ac_t""no" 1>&6 | |
7515 | fi | |
7516 | ||
7517 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
7518 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | |
7519 | echo "configure:7520: checking for dnet_ntoa in -ldnet_stub" >&5 | |
7520 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` | |
7521 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7522 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7523 | else | |
7524 | ac_save_LIBS="$LIBS" | |
7525 | LIBS="-ldnet_stub $LIBS" | |
7526 | cat > conftest.$ac_ext <<EOF | |
7527 | #line 7528 "configure" | |
7528 | #include "confdefs.h" | |
7529 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7530 | /* We use char because int might match the return type of a gcc2 | |
7531 | builtin and then its argument prototype would still apply. */ | |
7532 | char dnet_ntoa(); | |
7533 | ||
7534 | int main() { | |
7535 | dnet_ntoa() | |
7536 | ; return 0; } | |
7537 | EOF | |
7538 | if { (eval echo configure:7539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7539 | rm -rf conftest* | |
7540 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7541 | else | |
7542 | echo "configure: failed program was:" >&5 | |
7543 | cat conftest.$ac_ext >&5 | |
7544 | rm -rf conftest* | |
7545 | eval "ac_cv_lib_$ac_lib_var=no" | |
7546 | fi | |
7547 | rm -f conftest* | |
7548 | LIBS="$ac_save_LIBS" | |
7549 | ||
7550 | fi | |
7551 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7552 | echo "$ac_t""yes" 1>&6 | |
7553 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
7554 | else | |
7555 | echo "$ac_t""no" 1>&6 | |
7556 | fi | |
7557 | ||
7558 | fi | |
7559 | ||
7560 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
7561 | # to get the SysV transport functions. | |
7562 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | |
7563 | # needs -lnsl. | |
7564 | # The nsl library prevents programs from opening the X display | |
7565 | # on Irix 5.2, according to dickey@clark.net. | |
7566 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
7567 | echo "configure:7568: checking for gethostbyname" >&5 | |
7568 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then | |
7569 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7570 | else | |
7571 | cat > conftest.$ac_ext <<EOF | |
7572 | #line 7573 "configure" | |
7573 | #include "confdefs.h" | |
7574 | /* System header to define __stub macros and hopefully few prototypes, | |
7575 | which can conflict with char gethostbyname(); below. */ | |
7576 | #include <assert.h> | |
7577 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7578 | /* We use char because int might match the return type of a gcc2 | |
7579 | builtin and then its argument prototype would still apply. */ | |
7580 | char gethostbyname(); | |
7581 | ||
7582 | int main() { | |
7583 | ||
7584 | /* The GNU C library defines this for functions which it implements | |
7585 | to always fail with ENOSYS. Some functions are actually named | |
7586 | something starting with __ and the normal name is an alias. */ | |
7587 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
7588 | choke me | |
7589 | #else | |
7590 | gethostbyname(); | |
7591 | #endif | |
7592 | ||
7593 | ; return 0; } | |
7594 | EOF | |
7595 | if { (eval echo configure:7596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7596 | rm -rf conftest* | |
7597 | eval "ac_cv_func_gethostbyname=yes" | |
7598 | else | |
7599 | echo "configure: failed program was:" >&5 | |
7600 | cat conftest.$ac_ext >&5 | |
7601 | rm -rf conftest* | |
7602 | eval "ac_cv_func_gethostbyname=no" | |
7603 | fi | |
7604 | rm -f conftest* | |
7605 | fi | |
7606 | ||
7607 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
7608 | echo "$ac_t""yes" 1>&6 | |
7609 | : | |
7610 | else | |
7611 | echo "$ac_t""no" 1>&6 | |
7612 | fi | |
7613 | ||
7614 | if test $ac_cv_func_gethostbyname = no; then | |
7615 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
7616 | echo "configure:7617: checking for gethostbyname in -lnsl" >&5 | |
7617 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` | |
7618 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7619 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7620 | else | |
7621 | ac_save_LIBS="$LIBS" | |
7622 | LIBS="-lnsl $LIBS" | |
7623 | cat > conftest.$ac_ext <<EOF | |
7624 | #line 7625 "configure" | |
7625 | #include "confdefs.h" | |
7626 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7627 | /* We use char because int might match the return type of a gcc2 | |
7628 | builtin and then its argument prototype would still apply. */ | |
7629 | char gethostbyname(); | |
7630 | ||
7631 | int main() { | |
7632 | gethostbyname() | |
7633 | ; return 0; } | |
7634 | EOF | |
7635 | if { (eval echo configure:7636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7636 | rm -rf conftest* | |
7637 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7638 | else | |
7639 | echo "configure: failed program was:" >&5 | |
7640 | cat conftest.$ac_ext >&5 | |
7641 | rm -rf conftest* | |
7642 | eval "ac_cv_lib_$ac_lib_var=no" | |
7643 | fi | |
7644 | rm -f conftest* | |
7645 | LIBS="$ac_save_LIBS" | |
7646 | ||
7647 | fi | |
7648 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7649 | echo "$ac_t""yes" 1>&6 | |
7650 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
7651 | else | |
7652 | echo "$ac_t""no" 1>&6 | |
7653 | fi | |
7654 | ||
7655 | fi | |
7656 | ||
7657 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
7658 | # socket/setsockopt and other routines are undefined under SCO ODT | |
7659 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
7660 | # on later versions), says simon@lia.di.epfl.ch: it contains | |
7661 | # gethostby* variants that don't use the nameserver (or something). | |
7662 | # -lsocket must be given before -lnsl if both are needed. | |
7663 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
7664 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
7665 | echo "configure:7666: checking for connect" >&5 | |
7666 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then | |
7667 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7668 | else | |
7669 | cat > conftest.$ac_ext <<EOF | |
7670 | #line 7671 "configure" | |
7671 | #include "confdefs.h" | |
7672 | /* System header to define __stub macros and hopefully few prototypes, | |
7673 | which can conflict with char connect(); below. */ | |
7674 | #include <assert.h> | |
7675 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7676 | /* We use char because int might match the return type of a gcc2 | |
7677 | builtin and then its argument prototype would still apply. */ | |
7678 | char connect(); | |
7679 | ||
7680 | int main() { | |
7681 | ||
7682 | /* The GNU C library defines this for functions which it implements | |
7683 | to always fail with ENOSYS. Some functions are actually named | |
7684 | something starting with __ and the normal name is an alias. */ | |
7685 | #if defined (__stub_connect) || defined (__stub___connect) | |
7686 | choke me | |
7687 | #else | |
7688 | connect(); | |
7689 | #endif | |
7690 | ||
7691 | ; return 0; } | |
7692 | EOF | |
7693 | if { (eval echo configure:7694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7694 | rm -rf conftest* | |
7695 | eval "ac_cv_func_connect=yes" | |
7696 | else | |
7697 | echo "configure: failed program was:" >&5 | |
7698 | cat conftest.$ac_ext >&5 | |
7699 | rm -rf conftest* | |
7700 | eval "ac_cv_func_connect=no" | |
7701 | fi | |
7702 | rm -f conftest* | |
7703 | fi | |
7704 | ||
7705 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
7706 | echo "$ac_t""yes" 1>&6 | |
7707 | : | |
7708 | else | |
7709 | echo "$ac_t""no" 1>&6 | |
7710 | fi | |
7711 | ||
7712 | if test $ac_cv_func_connect = no; then | |
7713 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 | |
7714 | echo "configure:7715: checking for connect in -lsocket" >&5 | |
7715 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` | |
7716 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7717 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7718 | else | |
7719 | ac_save_LIBS="$LIBS" | |
7720 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
7721 | cat > conftest.$ac_ext <<EOF | |
7722 | #line 7723 "configure" | |
7723 | #include "confdefs.h" | |
7724 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7725 | /* We use char because int might match the return type of a gcc2 | |
7726 | builtin and then its argument prototype would still apply. */ | |
7727 | char connect(); | |
7728 | ||
7729 | int main() { | |
7730 | connect() | |
7731 | ; return 0; } | |
7732 | EOF | |
7733 | if { (eval echo configure:7734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7734 | rm -rf conftest* | |
7735 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7736 | else | |
7737 | echo "configure: failed program was:" >&5 | |
7738 | cat conftest.$ac_ext >&5 | |
7739 | rm -rf conftest* | |
7740 | eval "ac_cv_lib_$ac_lib_var=no" | |
7741 | fi | |
7742 | rm -f conftest* | |
7743 | LIBS="$ac_save_LIBS" | |
7744 | ||
7745 | fi | |
7746 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7747 | echo "$ac_t""yes" 1>&6 | |
7748 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
7749 | else | |
7750 | echo "$ac_t""no" 1>&6 | |
7751 | fi | |
7752 | ||
7753 | fi | |
7754 | ||
7755 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. | |
7756 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
7757 | echo "configure:7758: checking for remove" >&5 | |
7758 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then | |
7759 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7760 | else | |
7761 | cat > conftest.$ac_ext <<EOF | |
7762 | #line 7763 "configure" | |
7763 | #include "confdefs.h" | |
7764 | /* System header to define __stub macros and hopefully few prototypes, | |
7765 | which can conflict with char remove(); below. */ | |
7766 | #include <assert.h> | |
7767 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7768 | /* We use char because int might match the return type of a gcc2 | |
7769 | builtin and then its argument prototype would still apply. */ | |
7770 | char remove(); | |
7771 | ||
7772 | int main() { | |
7773 | ||
7774 | /* The GNU C library defines this for functions which it implements | |
7775 | to always fail with ENOSYS. Some functions are actually named | |
7776 | something starting with __ and the normal name is an alias. */ | |
7777 | #if defined (__stub_remove) || defined (__stub___remove) | |
7778 | choke me | |
7779 | #else | |
7780 | remove(); | |
7781 | #endif | |
7782 | ||
7783 | ; return 0; } | |
7784 | EOF | |
7785 | if { (eval echo configure:7786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7786 | rm -rf conftest* | |
7787 | eval "ac_cv_func_remove=yes" | |
7788 | else | |
7789 | echo "configure: failed program was:" >&5 | |
7790 | cat conftest.$ac_ext >&5 | |
7791 | rm -rf conftest* | |
7792 | eval "ac_cv_func_remove=no" | |
7793 | fi | |
7794 | rm -f conftest* | |
7795 | fi | |
7796 | ||
7797 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
7798 | echo "$ac_t""yes" 1>&6 | |
7799 | : | |
7800 | else | |
7801 | echo "$ac_t""no" 1>&6 | |
7802 | fi | |
7803 | ||
7804 | if test $ac_cv_func_remove = no; then | |
7805 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | |
7806 | echo "configure:7807: checking for remove in -lposix" >&5 | |
7807 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` | |
7808 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7809 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7810 | else | |
7811 | ac_save_LIBS="$LIBS" | |
7812 | LIBS="-lposix $LIBS" | |
7813 | cat > conftest.$ac_ext <<EOF | |
7814 | #line 7815 "configure" | |
7815 | #include "confdefs.h" | |
7816 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7817 | /* We use char because int might match the return type of a gcc2 | |
7818 | builtin and then its argument prototype would still apply. */ | |
7819 | char remove(); | |
7820 | ||
7821 | int main() { | |
7822 | remove() | |
7823 | ; return 0; } | |
7824 | EOF | |
7825 | if { (eval echo configure:7826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7826 | rm -rf conftest* | |
7827 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7828 | else | |
7829 | echo "configure: failed program was:" >&5 | |
7830 | cat conftest.$ac_ext >&5 | |
7831 | rm -rf conftest* | |
7832 | eval "ac_cv_lib_$ac_lib_var=no" | |
7833 | fi | |
7834 | rm -f conftest* | |
7835 | LIBS="$ac_save_LIBS" | |
7836 | ||
7837 | fi | |
7838 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7839 | echo "$ac_t""yes" 1>&6 | |
7840 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
7841 | else | |
7842 | echo "$ac_t""no" 1>&6 | |
7843 | fi | |
7844 | ||
7845 | fi | |
7846 | ||
7847 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
7848 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 | |
7849 | echo "configure:7850: checking for shmat" >&5 | |
7850 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then | |
7851 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7852 | else | |
7853 | cat > conftest.$ac_ext <<EOF | |
7854 | #line 7855 "configure" | |
7855 | #include "confdefs.h" | |
7856 | /* System header to define __stub macros and hopefully few prototypes, | |
7857 | which can conflict with char shmat(); below. */ | |
7858 | #include <assert.h> | |
7859 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7860 | /* We use char because int might match the return type of a gcc2 | |
7861 | builtin and then its argument prototype would still apply. */ | |
7862 | char shmat(); | |
7863 | ||
7864 | int main() { | |
7865 | ||
7866 | /* The GNU C library defines this for functions which it implements | |
7867 | to always fail with ENOSYS. Some functions are actually named | |
7868 | something starting with __ and the normal name is an alias. */ | |
7869 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
7870 | choke me | |
7871 | #else | |
7872 | shmat(); | |
7873 | #endif | |
7874 | ||
7875 | ; return 0; } | |
7876 | EOF | |
7877 | if { (eval echo configure:7878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7878 | rm -rf conftest* | |
7879 | eval "ac_cv_func_shmat=yes" | |
7880 | else | |
7881 | echo "configure: failed program was:" >&5 | |
7882 | cat conftest.$ac_ext >&5 | |
7883 | rm -rf conftest* | |
7884 | eval "ac_cv_func_shmat=no" | |
7885 | fi | |
7886 | rm -f conftest* | |
7887 | fi | |
7888 | ||
7889 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
7890 | echo "$ac_t""yes" 1>&6 | |
7891 | : | |
7892 | else | |
7893 | echo "$ac_t""no" 1>&6 | |
7894 | fi | |
7895 | ||
7896 | if test $ac_cv_func_shmat = no; then | |
7897 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | |
7898 | echo "configure:7899: checking for shmat in -lipc" >&5 | |
7899 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` | |
7900 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7901 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7902 | else | |
7903 | ac_save_LIBS="$LIBS" | |
7904 | LIBS="-lipc $LIBS" | |
7905 | cat > conftest.$ac_ext <<EOF | |
7906 | #line 7907 "configure" | |
7907 | #include "confdefs.h" | |
7908 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7909 | /* We use char because int might match the return type of a gcc2 | |
7910 | builtin and then its argument prototype would still apply. */ | |
7911 | char shmat(); | |
7912 | ||
7913 | int main() { | |
7914 | shmat() | |
7915 | ; return 0; } | |
7916 | EOF | |
7917 | if { (eval echo configure:7918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7918 | rm -rf conftest* | |
7919 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7920 | else | |
7921 | echo "configure: failed program was:" >&5 | |
7922 | cat conftest.$ac_ext >&5 | |
7923 | rm -rf conftest* | |
7924 | eval "ac_cv_lib_$ac_lib_var=no" | |
7925 | fi | |
7926 | rm -f conftest* | |
7927 | LIBS="$ac_save_LIBS" | |
7928 | ||
7929 | fi | |
7930 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7931 | echo "$ac_t""yes" 1>&6 | |
7932 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
7933 | else | |
7934 | echo "$ac_t""no" 1>&6 | |
7935 | fi | |
7936 | ||
7937 | fi | |
7938 | fi | |
7939 | ||
7940 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
7941 | ac_save_LDFLAGS="$LDFLAGS" | |
7942 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
7943 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
7944 | # check for ICE first), but we must link in the order -lSM -lICE or | |
7945 | # we get undefined symbols. So assume we have SM if we have ICE. | |
7946 | # These have to be linked with before -lX11, unlike the other | |
7947 | # libraries we check for below, so use a different variable. | |
7948 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | |
7949 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
7950 | echo "configure:7951: checking for IceConnectionNumber in -lICE" >&5 | |
7951 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` | |
7952 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7953 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7954 | else | |
7955 | ac_save_LIBS="$LIBS" | |
7956 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
7957 | cat > conftest.$ac_ext <<EOF | |
7958 | #line 7959 "configure" | |
7959 | #include "confdefs.h" | |
7960 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7961 | /* We use char because int might match the return type of a gcc2 | |
7962 | builtin and then its argument prototype would still apply. */ | |
7963 | char IceConnectionNumber(); | |
7964 | ||
7965 | int main() { | |
7966 | IceConnectionNumber() | |
7967 | ; return 0; } | |
7968 | EOF | |
7969 | if { (eval echo configure:7970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7970 | rm -rf conftest* | |
7971 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7972 | else | |
7973 | echo "configure: failed program was:" >&5 | |
7974 | cat conftest.$ac_ext >&5 | |
7975 | rm -rf conftest* | |
7976 | eval "ac_cv_lib_$ac_lib_var=no" | |
7977 | fi | |
7978 | rm -f conftest* | |
7979 | LIBS="$ac_save_LIBS" | |
7980 | ||
7981 | fi | |
7982 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7983 | echo "$ac_t""yes" 1>&6 | |
7984 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
7985 | else | |
7986 | echo "$ac_t""no" 1>&6 | |
7987 | fi | |
7988 | ||
7989 | LDFLAGS="$ac_save_LDFLAGS" | |
7990 | ||
7991 | fi | |
7992 | ||
7993 | ||
7994 | if test "$no_x" = "yes"; then | |
7995 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
7996 | fi | |
7997 | ||
7998 | GUI_TK_LIBRARY="$X_LIBS" | |
7999 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
8000 | ||
8001 | ||
8002 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 | |
8003 | echo "configure:8004: checking for Motif/Lesstif headers" >&5 | |
8004 | ||
8005 | ac_find_includes= | |
8006 | for ac_dir in $SEARCH_INCLUDE; | |
8007 | do | |
8008 | if test -f "$ac_dir/Xm/Xm.h"; then | |
8009 | ac_find_includes=$ac_dir | |
8010 | break | |
8011 | fi | |
8012 | done | |
8013 | ||
8014 | if test "$ac_find_includes" != "" ; then | |
8015 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
8016 | else | |
8017 | echo "$ac_t""no" 1>&6 | |
8018 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
8019 | fi | |
8020 | ||
8021 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
8022 | echo "configure:8023: checking for Motif/Lesstif library" >&5 | |
8023 | ||
8024 | ac_find_libraries= | |
8025 | for ac_dir in $SEARCH_LIB; | |
8026 | do | |
8027 | for ac_extension in a so sl; do | |
8028 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
8029 | ac_find_libraries=$ac_dir | |
8030 | break 2 | |
8031 | fi | |
8032 | done | |
8033 | done | |
8034 | ||
8035 | if test "$ac_find_libraries" != "" ; then | |
8036 | ||
8037 | ac_path_to_include=$ac_find_includes | |
8038 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
8039 | result=$? | |
8040 | if test $result = 0; then | |
8041 | ac_path_to_include="" | |
8042 | else | |
8043 | ac_path_to_include="-I$ac_find_includes" | |
8044 | fi | |
8045 | ||
8046 | ||
8047 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
8048 | result=$? | |
8049 | if test $result = 0; then | |
8050 | ac_path_to_link="" | |
8051 | else | |
8052 | ac_path_to_link="-L$ac_find_libraries" | |
8053 | fi | |
8054 | ||
8055 | ||
8056 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" | |
8057 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include" | |
8058 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
8059 | else | |
8060 | echo "$ac_t""no" 1>&6 | |
8061 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
8062 | fi | |
8063 | ||
8064 | echo $ac_n "checking for Xt library""... $ac_c" 1>&6 | |
8065 | echo "configure:8066: checking for Xt library" >&5 | |
8066 | ||
8067 | ac_find_libraries= | |
8068 | for ac_dir in $SEARCH_LIB; | |
8069 | do | |
8070 | for ac_extension in a so sl; do | |
8071 | if test -f "$ac_dir/libXt.$ac_extension"; then | |
8072 | ac_find_libraries=$ac_dir | |
8073 | break 2 | |
8074 | fi | |
8075 | done | |
8076 | done | |
8077 | ||
8078 | if test "$ac_find_libraries" != "" ; then | |
8079 | ||
8080 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
8081 | result=$? | |
8082 | if test $result = 0; then | |
8083 | ac_path_to_link="" | |
8084 | else | |
8085 | ac_path_to_link="-L$ac_find_libraries" | |
8086 | fi | |
8087 | ||
8088 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" | |
8089 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
8090 | else | |
8091 | echo "$ac_t""no" 1>&6 | |
8092 | { echo "configure: error: please set LDFLAGS to contain the location of libXt" 1>&2; exit 1; } | |
8093 | fi | |
8094 | ||
8095 | XPM_LINK="" | |
8096 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
8097 | echo "configure:8098: checking for Xpm library" >&5 | |
8098 | ||
8099 | ac_find_libraries= | |
8100 | for ac_dir in $SEARCH_LIB; | |
8101 | do | |
8102 | for ac_extension in a so sl; do | |
8103 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
8104 | ac_find_libraries=$ac_dir | |
8105 | break 2 | |
8106 | fi | |
8107 | done | |
8108 | done | |
8109 | ||
8110 | if test "$ac_find_libraries" != "" ; then | |
8111 | ||
8112 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
8113 | result=$? | |
8114 | if test $result = 0; then | |
8115 | ac_path_to_link="" | |
8116 | else | |
8117 | ac_path_to_link="-L$ac_find_libraries" | |
8118 | fi | |
8119 | ||
8120 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" | |
8121 | XPM_LINK="-lXpm " | |
8122 | cat >> confdefs.h <<\EOF | |
8123 | #define wxHAVE_LIB_XPM 1 | |
8124 | EOF | |
8125 | ||
8126 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
8127 | else | |
8128 | echo "$ac_t""no" 1>&6 | |
8129 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
8130 | fi | |
8131 | ||
8132 | GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11 -lm" | |
8133 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" | |
8134 | TOOLKIT=MOTIF | |
8135 | ||
8136 | GUIHEADERS="\$(MOTIF_HEADERS)" | |
8137 | GUIOBJS="\$(MOTIF_GUIOBJS)" | |
8138 | COMMONOBJS="\$(MOTIF_COMMONOBJS)" | |
8139 | GENERICOBJS="\$(MOTIF_GENERICOBJS)" | |
8140 | GUIDEPS="\$(MOTIF_GUIDEPS)" | |
8141 | COMMONDEPS="\$(MOTIF_COMMONDEPS)" | |
8142 | GENERICDEPS="\$(MOTIF_GENERICDEPS)" | |
8143 | UNIXOBJS="\$(UNIX_OBJS)" | |
8144 | UNIXDEPS="\$(UNIX_DEPS)" | |
8145 | GUIDIST=MOTIF_DIST | |
8146 | fi | |
8147 | ||
8148 | if test "$wxUSE_PM" = 1; then | |
8149 | TOOLKIT=PM | |
8150 | ||
8151 | GUIOBJS="\$(PM_GUIOBJS)" | |
8152 | GUIHEADERS="\$(PM_HEADERS)" | |
8153 | COMMONOBJS="\$(PM_COMMONOBJS)" | |
8154 | GENERICOBJS="\$(PM_GENERICOBJS)" | |
8155 | GUIDEPS="\$(PM_GUIDEPS)" | |
8156 | COMMONDEPS="\$(PM_COMMONDEPS)" | |
8157 | GENERICDEPS="\$(PM_GENERICDEPS)" | |
8158 | UNIXOBJS= | |
8159 | UNIXDEPS= | |
8160 | GUIDIST=GTK_DIST | |
8161 | fi | |
8162 | ||
8163 | if test "$TOOLKIT" != "PM" ; then | |
8164 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "A-Z" "a-z"` | |
8165 | else | |
8166 | TOOLKIT_DIR="os2" | |
8167 | fi | |
8168 | ||
8169 | TOOLKIT_DEF="-D__WX${TOOLKIT}__" | |
8170 | ||
8171 | WX_LIBRARY="wx_${TOOLKIT_DIR}" | |
8172 | ||
8173 | ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(IODBCOBJS)" | |
8174 | if test "$wxUSE_LIBJPEG" = "yes" ; then | |
8175 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
8176 | fi | |
8177 | if test "$wxUSE_LIBTIFF" = "yes" ; then | |
8178 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
8179 | fi | |
8180 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
8181 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
8182 | fi | |
8183 | if test "$wxUSE_ZLIB" = "yes" ; then | |
8184 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
8185 | fi | |
8186 | ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS)" | |
8187 | ALL_HEADERS="\$(GUIHEADERS) \$(HTML_HEADERS) \$(UNIX_HEADERS) \$(PROTOCOL_HEADERS) \$(GENERIC_HEADERS) \$(WX_HEADERS)" | |
8188 | else | |
8189 | ||
8190 | ALL_OBJECTS="\$(BASE_OBJS)" | |
8191 | ALL_DEPFILES="\${BASE_DEPS}" | |
8192 | ALL_HEADERS="\${BASE_HEADERS}" | |
8193 | ||
8194 | WX_LIBRARY="wxbase" | |
8195 | fi | |
8196 | ||
8197 | WX_LIBRARY_NAME="lib${WX_LIBRARY}.la" | |
8198 | ||
8199 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
8200 | ||
8201 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
8202 | ||
8203 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}" | |
8204 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so" | |
8205 | WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so" | |
8206 | ||
8207 | SHARED_LD= | |
8208 | PIC_FLAG= | |
8209 | WX_ALL= | |
8210 | WX_ALL_INSTALLED= | |
8211 | BURNT_LIBRARY_NAME= | |
8212 | ||
8213 | ||
8214 | if test "$wxUSE_SHARED" = "yes"; then | |
8215 | case "${host}" in | |
8216 | *-hp-hpux* ) | |
8217 | if test "$GCC" = yes ; then | |
8218 | SHARED_LD="${CC} -shared -fPIC -o" | |
8219 | PIC_FLAG="-fPIC" | |
8220 | else | |
8221 | SHARED_LD="${CXX} -b -o" | |
8222 | PIC_FLAG="+Z" | |
8223 | fi | |
8224 | WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl" | |
8225 | WX_ALL=${WX_LIBRARY_NAME_SHARED} | |
8226 | ;; | |
8227 | ||
8228 | *-*-linux* ) | |
8229 | SHARED_LD="${CC} -shared -o" | |
8230 | PIC_FLAG="-fPIC" | |
8231 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8232 | WX_ALL="CREATE_LINKS" | |
8233 | ;; | |
8234 | *-*-irix5* | *-*-irix6* ) | |
8235 | if test "$GCC" = yes ; then | |
8236 | SHARED_LD="${CC} -shared -o" | |
8237 | PIC_FLAG="-fPIC" | |
8238 | else | |
8239 | SHARED_LD="${CXX} -shared -o" | |
8240 | fi | |
8241 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8242 | WX_ALL="CREATE_LINKS" | |
8243 | ;; | |
8244 | *-*-solaris2* ) | |
8245 | if test "$GCC" = yes ; then | |
8246 | SHARED_LD="${CC} -shared -o" | |
8247 | PIC_FLAG="-fPIC" | |
8248 | else | |
8249 | SHARED_LD="${CXX} -G -o" | |
8250 | PIC_FLAG="-KPIC" | |
8251 | fi | |
8252 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8253 | WX_ALL="CREATE_LINKS" | |
8254 | ;; | |
8255 | *-*-sunos4* ) | |
8256 | SHARED_LD="${CC} -shared -o" | |
8257 | PIC_FLAG="-fPIC" | |
8258 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8259 | WX_ALL="CREATE_LINKS" | |
8260 | ;; | |
8261 | *-*-freebsd* | *-*-netbsd*) | |
8262 | SHARED_LD="${CC} -shared -o" | |
8263 | PIC_FLAG="-fPIC" | |
8264 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8265 | WX_ALL="CREATE_LINKS" | |
8266 | ;; | |
8267 | *-*-osf* ) | |
8268 | SHARED_LD="${CXX} -shared -o" | |
8269 | PIC_FLAG="-fPIC" | |
8270 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8271 | WX_ALL="CREATE_LINKS" | |
8272 | ;; | |
8273 | *-*-dgux5* ) | |
8274 | SHARED_LD="${CXX} -shared -o" | |
8275 | PIC_FLAG="-fPIC" | |
8276 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8277 | WX_ALL="CREATE_LINKS" | |
8278 | ;; | |
8279 | *-*-sysv5* ) | |
8280 | SHARED_LD="${CC} -shared -o" | |
8281 | PIC_FLAG="-fPIC" | |
8282 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8283 | WX_ALL="CREATE_LINKS" | |
8284 | ;; | |
8285 | *-*-aix* ) | |
8286 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
8287 | WX_ALL=${WX_LIBRARY_NAME_SHARED} | |
8288 | ;; | |
8289 | *-*-cygwin32* ) | |
8290 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
8291 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
8292 | ;; | |
8293 | *-*-mingw32* ) | |
8294 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
8295 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
8296 | ;; | |
8297 | *-pc-os2_emx ) | |
8298 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
8299 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
8300 | ;; | |
8301 | *-*-beos* ) | |
8302 | SHARED_LD="${LD} -shared -o" | |
8303 | PIC_FLAG="-fPIC" | |
8304 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8305 | WX_ALL="CREATE_LINKS" | |
8306 | ;; | |
8307 | *) | |
8308 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } | |
8309 | esac | |
8310 | ||
8311 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
8312 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
8313 | fi | |
8314 | else | |
8315 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
8316 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
8317 | fi | |
8318 | ||
8319 | ||
8320 | for ac_hdr in strings.h | |
8321 | do | |
8322 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8323 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
8324 | echo "configure:8325: checking for $ac_hdr" >&5 | |
8325 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
8326 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8327 | else | |
8328 | cat > conftest.$ac_ext <<EOF | |
8329 | #line 8330 "configure" | |
8330 | #include "confdefs.h" | |
8331 | #include <$ac_hdr> | |
8332 | EOF | |
8333 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8334 | { (eval echo configure:8335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
8335 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
8336 | if test -z "$ac_err"; then | |
8337 | rm -rf conftest* | |
8338 | eval "ac_cv_header_$ac_safe=yes" | |
8339 | else | |
8340 | echo "$ac_err" >&5 | |
8341 | echo "configure: failed program was:" >&5 | |
8342 | cat conftest.$ac_ext >&5 | |
8343 | rm -rf conftest* | |
8344 | eval "ac_cv_header_$ac_safe=no" | |
8345 | fi | |
8346 | rm -f conftest* | |
8347 | fi | |
8348 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8349 | echo "$ac_t""yes" 1>&6 | |
8350 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8351 | cat >> confdefs.h <<EOF | |
8352 | #define $ac_tr_hdr 1 | |
8353 | EOF | |
8354 | ||
8355 | else | |
8356 | echo "$ac_t""no" 1>&6 | |
8357 | fi | |
8358 | done | |
8359 | ||
8360 | for ac_hdr in unistd.h | |
8361 | do | |
8362 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8363 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
8364 | echo "configure:8365: checking for $ac_hdr" >&5 | |
8365 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
8366 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8367 | else | |
8368 | cat > conftest.$ac_ext <<EOF | |
8369 | #line 8370 "configure" | |
8370 | #include "confdefs.h" | |
8371 | #include <$ac_hdr> | |
8372 | EOF | |
8373 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8374 | { (eval echo configure:8375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
8375 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
8376 | if test -z "$ac_err"; then | |
8377 | rm -rf conftest* | |
8378 | eval "ac_cv_header_$ac_safe=yes" | |
8379 | else | |
8380 | echo "$ac_err" >&5 | |
8381 | echo "configure: failed program was:" >&5 | |
8382 | cat conftest.$ac_ext >&5 | |
8383 | rm -rf conftest* | |
8384 | eval "ac_cv_header_$ac_safe=no" | |
8385 | fi | |
8386 | rm -f conftest* | |
8387 | fi | |
8388 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8389 | echo "$ac_t""yes" 1>&6 | |
8390 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8391 | cat >> confdefs.h <<EOF | |
8392 | #define $ac_tr_hdr 1 | |
8393 | EOF | |
8394 | ||
8395 | else | |
8396 | echo "$ac_t""no" 1>&6 | |
8397 | fi | |
8398 | done | |
8399 | ||
8400 | for ac_hdr in wchar.h | |
8401 | do | |
8402 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8403 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
8404 | echo "configure:8405: checking for $ac_hdr" >&5 | |
8405 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
8406 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8407 | else | |
8408 | cat > conftest.$ac_ext <<EOF | |
8409 | #line 8410 "configure" | |
8410 | #include "confdefs.h" | |
8411 | #include <$ac_hdr> | |
8412 | EOF | |
8413 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8414 | { (eval echo configure:8415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
8415 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
8416 | if test -z "$ac_err"; then | |
8417 | rm -rf conftest* | |
8418 | eval "ac_cv_header_$ac_safe=yes" | |
8419 | else | |
8420 | echo "$ac_err" >&5 | |
8421 | echo "configure: failed program was:" >&5 | |
8422 | cat conftest.$ac_ext >&5 | |
8423 | rm -rf conftest* | |
8424 | eval "ac_cv_header_$ac_safe=no" | |
8425 | fi | |
8426 | rm -f conftest* | |
8427 | fi | |
8428 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8429 | echo "$ac_t""yes" 1>&6 | |
8430 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8431 | cat >> confdefs.h <<EOF | |
8432 | #define $ac_tr_hdr 1 | |
8433 | EOF | |
8434 | ||
8435 | else | |
8436 | echo "$ac_t""no" 1>&6 | |
8437 | fi | |
8438 | done | |
8439 | ||
8440 | for ac_hdr in wcstr.h | |
8441 | do | |
8442 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8443 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
8444 | echo "configure:8445: checking for $ac_hdr" >&5 | |
8445 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
8446 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8447 | else | |
8448 | cat > conftest.$ac_ext <<EOF | |
8449 | #line 8450 "configure" | |
8450 | #include "confdefs.h" | |
8451 | #include <$ac_hdr> | |
8452 | EOF | |
8453 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8454 | { (eval echo configure:8455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
8455 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
8456 | if test -z "$ac_err"; then | |
8457 | rm -rf conftest* | |
8458 | eval "ac_cv_header_$ac_safe=yes" | |
8459 | else | |
8460 | echo "$ac_err" >&5 | |
8461 | echo "configure: failed program was:" >&5 | |
8462 | cat conftest.$ac_ext >&5 | |
8463 | rm -rf conftest* | |
8464 | eval "ac_cv_header_$ac_safe=no" | |
8465 | fi | |
8466 | rm -f conftest* | |
8467 | fi | |
8468 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8469 | echo "$ac_t""yes" 1>&6 | |
8470 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8471 | cat >> confdefs.h <<EOF | |
8472 | #define $ac_tr_hdr 1 | |
8473 | EOF | |
8474 | ||
8475 | else | |
8476 | echo "$ac_t""no" 1>&6 | |
8477 | fi | |
8478 | done | |
8479 | ||
8480 | for ac_hdr in fnmatch.h | |
8481 | do | |
8482 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8483 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
8484 | echo "configure:8485: checking for $ac_hdr" >&5 | |
8485 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
8486 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8487 | else | |
8488 | cat > conftest.$ac_ext <<EOF | |
8489 | #line 8490 "configure" | |
8490 | #include "confdefs.h" | |
8491 | #include <$ac_hdr> | |
8492 | EOF | |
8493 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8494 | { (eval echo configure:8495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
8495 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
8496 | if test -z "$ac_err"; then | |
8497 | rm -rf conftest* | |
8498 | eval "ac_cv_header_$ac_safe=yes" | |
8499 | else | |
8500 | echo "$ac_err" >&5 | |
8501 | echo "configure: failed program was:" >&5 | |
8502 | cat conftest.$ac_ext >&5 | |
8503 | rm -rf conftest* | |
8504 | eval "ac_cv_header_$ac_safe=no" | |
8505 | fi | |
8506 | rm -f conftest* | |
8507 | fi | |
8508 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8509 | echo "$ac_t""yes" 1>&6 | |
8510 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8511 | cat >> confdefs.h <<EOF | |
8512 | #define $ac_tr_hdr 1 | |
8513 | EOF | |
8514 | ||
8515 | else | |
8516 | echo "$ac_t""no" 1>&6 | |
8517 | fi | |
8518 | done | |
8519 | ||
8520 | ||
8521 | if test "$wxUSE_GUI" = "yes"; then | |
8522 | for ac_hdr in X11/XKBlib.h | |
8523 | do | |
8524 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8525 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
8526 | echo "configure:8527: checking for $ac_hdr" >&5 | |
8527 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
8528 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8529 | else | |
8530 | cat > conftest.$ac_ext <<EOF | |
8531 | #line 8532 "configure" | |
8532 | #include "confdefs.h" | |
8533 | #include <$ac_hdr> | |
8534 | EOF | |
8535 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8536 | { (eval echo configure:8537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
8537 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
8538 | if test -z "$ac_err"; then | |
8539 | rm -rf conftest* | |
8540 | eval "ac_cv_header_$ac_safe=yes" | |
8541 | else | |
8542 | echo "$ac_err" >&5 | |
8543 | echo "configure: failed program was:" >&5 | |
8544 | cat conftest.$ac_ext >&5 | |
8545 | rm -rf conftest* | |
8546 | eval "ac_cv_header_$ac_safe=no" | |
8547 | fi | |
8548 | rm -f conftest* | |
8549 | fi | |
8550 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8551 | echo "$ac_t""yes" 1>&6 | |
8552 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8553 | cat >> confdefs.h <<EOF | |
8554 | #define $ac_tr_hdr 1 | |
8555 | EOF | |
8556 | ||
8557 | else | |
8558 | echo "$ac_t""no" 1>&6 | |
8559 | fi | |
8560 | done | |
8561 | ||
8562 | fi | |
8563 | ||
8564 | ||
8565 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
8566 | echo "configure:8567: checking for ANSI C header files" >&5 | |
8567 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then | |
8568 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8569 | else | |
8570 | cat > conftest.$ac_ext <<EOF | |
8571 | #line 8572 "configure" | |
8572 | #include "confdefs.h" | |
8573 | #include <stdlib.h> | |
8574 | #include <stdarg.h> | |
8575 | #include <string.h> | |
8576 | #include <float.h> | |
8577 | EOF | |
8578 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8579 | { (eval echo configure:8580: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
8580 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
8581 | if test -z "$ac_err"; then | |
8582 | rm -rf conftest* | |
8583 | ac_cv_header_stdc=yes | |
8584 | else | |
8585 | echo "$ac_err" >&5 | |
8586 | echo "configure: failed program was:" >&5 | |
8587 | cat conftest.$ac_ext >&5 | |
8588 | rm -rf conftest* | |
8589 | ac_cv_header_stdc=no | |
8590 | fi | |
8591 | rm -f conftest* | |
8592 | ||
8593 | if test $ac_cv_header_stdc = yes; then | |
8594 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
8595 | cat > conftest.$ac_ext <<EOF | |
8596 | #line 8597 "configure" | |
8597 | #include "confdefs.h" | |
8598 | #include <string.h> | |
8599 | EOF | |
8600 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8601 | egrep "memchr" >/dev/null 2>&1; then | |
8602 | : | |
8603 | else | |
8604 | rm -rf conftest* | |
8605 | ac_cv_header_stdc=no | |
8606 | fi | |
8607 | rm -f conftest* | |
8608 | ||
8609 | fi | |
8610 | ||
8611 | if test $ac_cv_header_stdc = yes; then | |
8612 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
8613 | cat > conftest.$ac_ext <<EOF | |
8614 | #line 8615 "configure" | |
8615 | #include "confdefs.h" | |
8616 | #include <stdlib.h> | |
8617 | EOF | |
8618 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8619 | egrep "free" >/dev/null 2>&1; then | |
8620 | : | |
8621 | else | |
8622 | rm -rf conftest* | |
8623 | ac_cv_header_stdc=no | |
8624 | fi | |
8625 | rm -f conftest* | |
8626 | ||
8627 | fi | |
8628 | ||
8629 | if test $ac_cv_header_stdc = yes; then | |
8630 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
8631 | if test "$cross_compiling" = yes; then | |
8632 | : | |
8633 | else | |
8634 | cat > conftest.$ac_ext <<EOF | |
8635 | #line 8636 "configure" | |
8636 | #include "confdefs.h" | |
8637 | #include <ctype.h> | |
8638 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
8639 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
8640 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
8641 | int main () { int i; for (i = 0; i < 256; i++) | |
8642 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
8643 | exit (0); } | |
8644 | ||
8645 | EOF | |
8646 | if { (eval echo configure:8647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
8647 | then | |
8648 | : | |
8649 | else | |
8650 | echo "configure: failed program was:" >&5 | |
8651 | cat conftest.$ac_ext >&5 | |
8652 | rm -fr conftest* | |
8653 | ac_cv_header_stdc=no | |
8654 | fi | |
8655 | rm -fr conftest* | |
8656 | fi | |
8657 | ||
8658 | fi | |
8659 | fi | |
8660 | ||
8661 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
8662 | if test $ac_cv_header_stdc = yes; then | |
8663 | cat >> confdefs.h <<\EOF | |
8664 | #define STDC_HEADERS 1 | |
8665 | EOF | |
8666 | ||
8667 | fi | |
8668 | ||
8669 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 | |
8670 | echo "configure:8671: checking for mode_t" >&5 | |
8671 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then | |
8672 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8673 | else | |
8674 | cat > conftest.$ac_ext <<EOF | |
8675 | #line 8676 "configure" | |
8676 | #include "confdefs.h" | |
8677 | #include <sys/types.h> | |
8678 | #if STDC_HEADERS | |
8679 | #include <stdlib.h> | |
8680 | #include <stddef.h> | |
8681 | #endif | |
8682 | EOF | |
8683 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8684 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
8685 | rm -rf conftest* | |
8686 | ac_cv_type_mode_t=yes | |
8687 | else | |
8688 | rm -rf conftest* | |
8689 | ac_cv_type_mode_t=no | |
8690 | fi | |
8691 | rm -f conftest* | |
8692 | ||
8693 | fi | |
8694 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
8695 | if test $ac_cv_type_mode_t = no; then | |
8696 | cat >> confdefs.h <<\EOF | |
8697 | #define mode_t int | |
8698 | EOF | |
8699 | ||
8700 | fi | |
8701 | ||
8702 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
8703 | echo "configure:8704: checking for off_t" >&5 | |
8704 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then | |
8705 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8706 | else | |
8707 | cat > conftest.$ac_ext <<EOF | |
8708 | #line 8709 "configure" | |
8709 | #include "confdefs.h" | |
8710 | #include <sys/types.h> | |
8711 | #if STDC_HEADERS | |
8712 | #include <stdlib.h> | |
8713 | #include <stddef.h> | |
8714 | #endif | |
8715 | EOF | |
8716 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8717 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
8718 | rm -rf conftest* | |
8719 | ac_cv_type_off_t=yes | |
8720 | else | |
8721 | rm -rf conftest* | |
8722 | ac_cv_type_off_t=no | |
8723 | fi | |
8724 | rm -f conftest* | |
8725 | ||
8726 | fi | |
8727 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
8728 | if test $ac_cv_type_off_t = no; then | |
8729 | cat >> confdefs.h <<\EOF | |
8730 | #define off_t long | |
8731 | EOF | |
8732 | ||
8733 | fi | |
8734 | ||
8735 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 | |
8736 | echo "configure:8737: checking for pid_t" >&5 | |
8737 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then | |
8738 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8739 | else | |
8740 | cat > conftest.$ac_ext <<EOF | |
8741 | #line 8742 "configure" | |
8742 | #include "confdefs.h" | |
8743 | #include <sys/types.h> | |
8744 | #if STDC_HEADERS | |
8745 | #include <stdlib.h> | |
8746 | #include <stddef.h> | |
8747 | #endif | |
8748 | EOF | |
8749 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8750 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
8751 | rm -rf conftest* | |
8752 | ac_cv_type_pid_t=yes | |
8753 | else | |
8754 | rm -rf conftest* | |
8755 | ac_cv_type_pid_t=no | |
8756 | fi | |
8757 | rm -f conftest* | |
8758 | ||
8759 | fi | |
8760 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
8761 | if test $ac_cv_type_pid_t = no; then | |
8762 | cat >> confdefs.h <<\EOF | |
8763 | #define pid_t int | |
8764 | EOF | |
8765 | ||
8766 | fi | |
8767 | ||
8768 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
8769 | echo "configure:8770: checking for size_t" >&5 | |
8770 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then | |
8771 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8772 | else | |
8773 | cat > conftest.$ac_ext <<EOF | |
8774 | #line 8775 "configure" | |
8775 | #include "confdefs.h" | |
8776 | #include <sys/types.h> | |
8777 | #if STDC_HEADERS | |
8778 | #include <stdlib.h> | |
8779 | #include <stddef.h> | |
8780 | #endif | |
8781 | EOF | |
8782 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8783 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
8784 | rm -rf conftest* | |
8785 | ac_cv_type_size_t=yes | |
8786 | else | |
8787 | rm -rf conftest* | |
8788 | ac_cv_type_size_t=no | |
8789 | fi | |
8790 | rm -f conftest* | |
8791 | ||
8792 | fi | |
8793 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
8794 | if test $ac_cv_type_size_t = no; then | |
8795 | cat >> confdefs.h <<\EOF | |
8796 | #define size_t unsigned | |
8797 | EOF | |
8798 | ||
8799 | fi | |
8800 | ||
8801 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 | |
8802 | echo "configure:8803: checking for uid_t in sys/types.h" >&5 | |
8803 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then | |
8804 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8805 | else | |
8806 | cat > conftest.$ac_ext <<EOF | |
8807 | #line 8808 "configure" | |
8808 | #include "confdefs.h" | |
8809 | #include <sys/types.h> | |
8810 | EOF | |
8811 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8812 | egrep "uid_t" >/dev/null 2>&1; then | |
8813 | rm -rf conftest* | |
8814 | ac_cv_type_uid_t=yes | |
8815 | else | |
8816 | rm -rf conftest* | |
8817 | ac_cv_type_uid_t=no | |
8818 | fi | |
8819 | rm -f conftest* | |
8820 | ||
8821 | fi | |
8822 | ||
8823 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 | |
8824 | if test $ac_cv_type_uid_t = no; then | |
8825 | cat >> confdefs.h <<\EOF | |
8826 | #define uid_t int | |
8827 | EOF | |
8828 | ||
8829 | cat >> confdefs.h <<\EOF | |
8830 | #define gid_t int | |
8831 | EOF | |
8832 | ||
8833 | fi | |
8834 | ||
8835 | ||
8836 | ||
8837 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 | |
8838 | echo "configure:8839: checking for pw_gecos in struct passwd" >&5 | |
8839 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then | |
8840 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8841 | else | |
8842 | ||
8843 | cat > conftest.$ac_ext <<EOF | |
8844 | #line 8845 "configure" | |
8845 | #include "confdefs.h" | |
8846 | #include <pwd.h> | |
8847 | int main() { | |
8848 | ||
8849 | char *p; | |
8850 | struct passwd *pw; | |
8851 | p = pw->pw_gecos; | |
8852 | ||
8853 | ; return 0; } | |
8854 | EOF | |
8855 | if { (eval echo configure:8856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
8856 | rm -rf conftest* | |
8857 | ||
8858 | wx_cv_struct_pw_gecos=yes | |
8859 | cat >> confdefs.h <<\EOF | |
8860 | #define HAVE_PW_GECOS 1 | |
8861 | EOF | |
8862 | ||
8863 | ||
8864 | else | |
8865 | echo "configure: failed program was:" >&5 | |
8866 | cat conftest.$ac_ext >&5 | |
8867 | rm -rf conftest* | |
8868 | ||
8869 | wx_cv_struct_pw_gecos=no | |
8870 | ||
8871 | ||
8872 | fi | |
8873 | rm -f conftest* | |
8874 | ||
8875 | ||
8876 | fi | |
8877 | ||
8878 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
8879 | ||
8880 | ||
8881 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
8882 | echo "configure:8883: checking for working const" >&5 | |
8883 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then | |
8884 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8885 | else | |
8886 | cat > conftest.$ac_ext <<EOF | |
8887 | #line 8888 "configure" | |
8888 | #include "confdefs.h" | |
8889 | ||
8890 | int main() { | |
8891 | ||
8892 | /* Ultrix mips cc rejects this. */ | |
8893 | typedef int charset[2]; const charset x; | |
8894 | /* SunOS 4.1.1 cc rejects this. */ | |
8895 | char const *const *ccp; | |
8896 | char **p; | |
8897 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
8898 | struct point {int x, y;}; | |
8899 | static struct point const zero = {0,0}; | |
8900 | /* AIX XL C 1.02.0.0 rejects this. | |
8901 | It does not let you subtract one const X* pointer from another in an arm | |
8902 | of an if-expression whose if-part is not a constant expression */ | |
8903 | const char *g = "string"; | |
8904 | ccp = &g + (g ? g-g : 0); | |
8905 | /* HPUX 7.0 cc rejects these. */ | |
8906 | ++ccp; | |
8907 | p = (char**) ccp; | |
8908 | ccp = (char const *const *) p; | |
8909 | { /* SCO 3.2v4 cc rejects this. */ | |
8910 | char *t; | |
8911 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
8912 | ||
8913 | *t++ = 0; | |
8914 | } | |
8915 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
8916 | int x[] = {25, 17}; | |
8917 | const int *foo = &x[0]; | |
8918 | ++foo; | |
8919 | } | |
8920 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
8921 | typedef const int *iptr; | |
8922 | iptr p = 0; | |
8923 | ++p; | |
8924 | } | |
8925 | { /* AIX XL C 1.02.0.0 rejects this saying | |
8926 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
8927 | struct s { int j; const int *ap[3]; }; | |
8928 | struct s *b; b->j = 5; | |
8929 | } | |
8930 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
8931 | const int foo = 10; | |
8932 | } | |
8933 | ||
8934 | ; return 0; } | |
8935 | EOF | |
8936 | if { (eval echo configure:8937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
8937 | rm -rf conftest* | |
8938 | ac_cv_c_const=yes | |
8939 | else | |
8940 | echo "configure: failed program was:" >&5 | |
8941 | cat conftest.$ac_ext >&5 | |
8942 | rm -rf conftest* | |
8943 | ac_cv_c_const=no | |
8944 | fi | |
8945 | rm -f conftest* | |
8946 | fi | |
8947 | ||
8948 | echo "$ac_t""$ac_cv_c_const" 1>&6 | |
8949 | if test $ac_cv_c_const = no; then | |
8950 | cat >> confdefs.h <<\EOF | |
8951 | #define const | |
8952 | EOF | |
8953 | ||
8954 | fi | |
8955 | ||
8956 | echo $ac_n "checking for inline""... $ac_c" 1>&6 | |
8957 | echo "configure:8958: checking for inline" >&5 | |
8958 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then | |
8959 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8960 | else | |
8961 | ac_cv_c_inline=no | |
8962 | for ac_kw in inline __inline__ __inline; do | |
8963 | cat > conftest.$ac_ext <<EOF | |
8964 | #line 8965 "configure" | |
8965 | #include "confdefs.h" | |
8966 | ||
8967 | int main() { | |
8968 | } $ac_kw foo() { | |
8969 | ; return 0; } | |
8970 | EOF | |
8971 | if { (eval echo configure:8972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
8972 | rm -rf conftest* | |
8973 | ac_cv_c_inline=$ac_kw; break | |
8974 | else | |
8975 | echo "configure: failed program was:" >&5 | |
8976 | cat conftest.$ac_ext >&5 | |
8977 | fi | |
8978 | rm -f conftest* | |
8979 | done | |
8980 | ||
8981 | fi | |
8982 | ||
8983 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
8984 | case "$ac_cv_c_inline" in | |
8985 | inline | yes) ;; | |
8986 | no) cat >> confdefs.h <<\EOF | |
8987 | #define inline | |
8988 | EOF | |
8989 | ;; | |
8990 | *) cat >> confdefs.h <<EOF | |
8991 | #define inline $ac_cv_c_inline | |
8992 | EOF | |
8993 | ;; | |
8994 | esac | |
8995 | ||
8996 | ||
8997 | echo $ac_n "checking size of char""... $ac_c" 1>&6 | |
8998 | echo "configure:8999: checking size of char" >&5 | |
8999 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then | |
9000 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9001 | else | |
9002 | if test "$cross_compiling" = yes; then | |
9003 | ac_cv_sizeof_char=1 | |
9004 | else | |
9005 | cat > conftest.$ac_ext <<EOF | |
9006 | #line 9007 "configure" | |
9007 | #include "confdefs.h" | |
9008 | #include <stdio.h> | |
9009 | main() | |
9010 | { | |
9011 | FILE *f=fopen("conftestval", "w"); | |
9012 | if (!f) exit(1); | |
9013 | fprintf(f, "%d\n", sizeof(char)); | |
9014 | exit(0); | |
9015 | } | |
9016 | EOF | |
9017 | if { (eval echo configure:9018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
9018 | then | |
9019 | ac_cv_sizeof_char=`cat conftestval` | |
9020 | else | |
9021 | echo "configure: failed program was:" >&5 | |
9022 | cat conftest.$ac_ext >&5 | |
9023 | rm -fr conftest* | |
9024 | ac_cv_sizeof_char=0 | |
9025 | fi | |
9026 | rm -fr conftest* | |
9027 | fi | |
9028 | ||
9029 | fi | |
9030 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 | |
9031 | cat >> confdefs.h <<EOF | |
9032 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
9033 | EOF | |
9034 | ||
9035 | ||
9036 | echo $ac_n "checking size of short""... $ac_c" 1>&6 | |
9037 | echo "configure:9038: checking size of short" >&5 | |
9038 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then | |
9039 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9040 | else | |
9041 | if test "$cross_compiling" = yes; then | |
9042 | ac_cv_sizeof_short=2 | |
9043 | else | |
9044 | cat > conftest.$ac_ext <<EOF | |
9045 | #line 9046 "configure" | |
9046 | #include "confdefs.h" | |
9047 | #include <stdio.h> | |
9048 | main() | |
9049 | { | |
9050 | FILE *f=fopen("conftestval", "w"); | |
9051 | if (!f) exit(1); | |
9052 | fprintf(f, "%d\n", sizeof(short)); | |
9053 | exit(0); | |
9054 | } | |
9055 | EOF | |
9056 | if { (eval echo configure:9057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
9057 | then | |
9058 | ac_cv_sizeof_short=`cat conftestval` | |
9059 | else | |
9060 | echo "configure: failed program was:" >&5 | |
9061 | cat conftest.$ac_ext >&5 | |
9062 | rm -fr conftest* | |
9063 | ac_cv_sizeof_short=0 | |
9064 | fi | |
9065 | rm -fr conftest* | |
9066 | fi | |
9067 | ||
9068 | fi | |
9069 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 | |
9070 | cat >> confdefs.h <<EOF | |
9071 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
9072 | EOF | |
9073 | ||
9074 | ||
9075 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 | |
9076 | echo "configure:9077: checking size of int *" >&5 | |
9077 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then | |
9078 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9079 | else | |
9080 | if test "$cross_compiling" = yes; then | |
9081 | ac_cv_sizeof_int_p=4 | |
9082 | else | |
9083 | cat > conftest.$ac_ext <<EOF | |
9084 | #line 9085 "configure" | |
9085 | #include "confdefs.h" | |
9086 | #include <stdio.h> | |
9087 | main() | |
9088 | { | |
9089 | FILE *f=fopen("conftestval", "w"); | |
9090 | if (!f) exit(1); | |
9091 | fprintf(f, "%d\n", sizeof(int *)); | |
9092 | exit(0); | |
9093 | } | |
9094 | EOF | |
9095 | if { (eval echo configure:9096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
9096 | then | |
9097 | ac_cv_sizeof_int_p=`cat conftestval` | |
9098 | else | |
9099 | echo "configure: failed program was:" >&5 | |
9100 | cat conftest.$ac_ext >&5 | |
9101 | rm -fr conftest* | |
9102 | ac_cv_sizeof_int_p=0 | |
9103 | fi | |
9104 | rm -fr conftest* | |
9105 | fi | |
9106 | ||
9107 | fi | |
9108 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 | |
9109 | cat >> confdefs.h <<EOF | |
9110 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
9111 | EOF | |
9112 | ||
9113 | ||
9114 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
9115 | echo "configure:9116: checking size of int" >&5 | |
9116 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then | |
9117 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9118 | else | |
9119 | if test "$cross_compiling" = yes; then | |
9120 | ac_cv_sizeof_int=4 | |
9121 | else | |
9122 | cat > conftest.$ac_ext <<EOF | |
9123 | #line 9124 "configure" | |
9124 | #include "confdefs.h" | |
9125 | #include <stdio.h> | |
9126 | main() | |
9127 | { | |
9128 | FILE *f=fopen("conftestval", "w"); | |
9129 | if (!f) exit(1); | |
9130 | fprintf(f, "%d\n", sizeof(int)); | |
9131 | exit(0); | |
9132 | } | |
9133 | EOF | |
9134 | if { (eval echo configure:9135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
9135 | then | |
9136 | ac_cv_sizeof_int=`cat conftestval` | |
9137 | else | |
9138 | echo "configure: failed program was:" >&5 | |
9139 | cat conftest.$ac_ext >&5 | |
9140 | rm -fr conftest* | |
9141 | ac_cv_sizeof_int=0 | |
9142 | fi | |
9143 | rm -fr conftest* | |
9144 | fi | |
9145 | ||
9146 | fi | |
9147 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
9148 | cat >> confdefs.h <<EOF | |
9149 | #define SIZEOF_INT $ac_cv_sizeof_int | |
9150 | EOF | |
9151 | ||
9152 | ||
9153 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
9154 | echo "configure:9155: checking size of long" >&5 | |
9155 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then | |
9156 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9157 | else | |
9158 | if test "$cross_compiling" = yes; then | |
9159 | ac_cv_sizeof_long=4 | |
9160 | else | |
9161 | cat > conftest.$ac_ext <<EOF | |
9162 | #line 9163 "configure" | |
9163 | #include "confdefs.h" | |
9164 | #include <stdio.h> | |
9165 | main() | |
9166 | { | |
9167 | FILE *f=fopen("conftestval", "w"); | |
9168 | if (!f) exit(1); | |
9169 | fprintf(f, "%d\n", sizeof(long)); | |
9170 | exit(0); | |
9171 | } | |
9172 | EOF | |
9173 | if { (eval echo configure:9174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
9174 | then | |
9175 | ac_cv_sizeof_long=`cat conftestval` | |
9176 | else | |
9177 | echo "configure: failed program was:" >&5 | |
9178 | cat conftest.$ac_ext >&5 | |
9179 | rm -fr conftest* | |
9180 | ac_cv_sizeof_long=0 | |
9181 | fi | |
9182 | rm -fr conftest* | |
9183 | fi | |
9184 | ||
9185 | fi | |
9186 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
9187 | cat >> confdefs.h <<EOF | |
9188 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
9189 | EOF | |
9190 | ||
9191 | ||
9192 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
9193 | echo "configure:9194: checking size of long long" >&5 | |
9194 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then | |
9195 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9196 | else | |
9197 | if test "$cross_compiling" = yes; then | |
9198 | ac_cv_sizeof_long_long=0 | |
9199 | else | |
9200 | cat > conftest.$ac_ext <<EOF | |
9201 | #line 9202 "configure" | |
9202 | #include "confdefs.h" | |
9203 | #include <stdio.h> | |
9204 | main() | |
9205 | { | |
9206 | FILE *f=fopen("conftestval", "w"); | |
9207 | if (!f) exit(1); | |
9208 | fprintf(f, "%d\n", sizeof(long long)); | |
9209 | exit(0); | |
9210 | } | |
9211 | EOF | |
9212 | if { (eval echo configure:9213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
9213 | then | |
9214 | ac_cv_sizeof_long_long=`cat conftestval` | |
9215 | else | |
9216 | echo "configure: failed program was:" >&5 | |
9217 | cat conftest.$ac_ext >&5 | |
9218 | rm -fr conftest* | |
9219 | ac_cv_sizeof_long_long=0 | |
9220 | fi | |
9221 | rm -fr conftest* | |
9222 | fi | |
9223 | ||
9224 | fi | |
9225 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
9226 | cat >> confdefs.h <<EOF | |
9227 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
9228 | EOF | |
9229 | ||
9230 | ||
9231 | ||
9232 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 | |
9233 | echo "configure:9234: checking whether byte ordering is bigendian" >&5 | |
9234 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then | |
9235 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9236 | else | |
9237 | ac_cv_c_bigendian=unknown | |
9238 | # See if sys/param.h defines the BYTE_ORDER macro. | |
9239 | cat > conftest.$ac_ext <<EOF | |
9240 | #line 9241 "configure" | |
9241 | #include "confdefs.h" | |
9242 | #include <sys/types.h> | |
9243 | #include <sys/param.h> | |
9244 | int main() { | |
9245 | ||
9246 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
9247 | bogus endian macros | |
9248 | #endif | |
9249 | ; return 0; } | |
9250 | EOF | |
9251 | if { (eval echo configure:9252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
9252 | rm -rf conftest* | |
9253 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
9254 | cat > conftest.$ac_ext <<EOF | |
9255 | #line 9256 "configure" | |
9256 | #include "confdefs.h" | |
9257 | #include <sys/types.h> | |
9258 | #include <sys/param.h> | |
9259 | int main() { | |
9260 | ||
9261 | #if BYTE_ORDER != BIG_ENDIAN | |
9262 | not big endian | |
9263 | #endif | |
9264 | ; return 0; } | |
9265 | EOF | |
9266 | if { (eval echo configure:9267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
9267 | rm -rf conftest* | |
9268 | ac_cv_c_bigendian=yes | |
9269 | else | |
9270 | echo "configure: failed program was:" >&5 | |
9271 | cat conftest.$ac_ext >&5 | |
9272 | rm -rf conftest* | |
9273 | ac_cv_c_bigendian=no | |
9274 | fi | |
9275 | rm -f conftest* | |
9276 | else | |
9277 | echo "configure: failed program was:" >&5 | |
9278 | cat conftest.$ac_ext >&5 | |
9279 | fi | |
9280 | rm -f conftest* | |
9281 | if test $ac_cv_c_bigendian = unknown; then | |
9282 | if test "$cross_compiling" = yes; then | |
9283 | ac_cv_c_bigendian=unknown | |
9284 | else | |
9285 | cat > conftest.$ac_ext <<EOF | |
9286 | #line 9287 "configure" | |
9287 | #include "confdefs.h" | |
9288 | main () { | |
9289 | /* Are we little or big endian? From Harbison&Steele. */ | |
9290 | union | |
9291 | { | |
9292 | long l; | |
9293 | char c[sizeof (long)]; | |
9294 | } u; | |
9295 | u.l = 1; | |
9296 | exit (u.c[sizeof (long) - 1] == 1); | |
9297 | } | |
9298 | EOF | |
9299 | if { (eval echo configure:9300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
9300 | then | |
9301 | ac_cv_c_bigendian=no | |
9302 | else | |
9303 | echo "configure: failed program was:" >&5 | |
9304 | cat conftest.$ac_ext >&5 | |
9305 | rm -fr conftest* | |
9306 | ac_cv_c_bigendian=yes | |
9307 | fi | |
9308 | rm -fr conftest* | |
9309 | fi | |
9310 | ||
9311 | fi | |
9312 | fi | |
9313 | ||
9314 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
9315 | if test $ac_cv_c_bigendian = unknown; then | |
9316 | 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 | |
9317 | fi | |
9318 | if test $ac_cv_c_bigendian = yes; then | |
9319 | cat >> confdefs.h <<\EOF | |
9320 | #define WORDS_BIGENDIAN 1 | |
9321 | EOF | |
9322 | ||
9323 | fi | |
9324 | ||
9325 | ||
9326 | ||
9327 | if test "$cross_compiling" = "yes"; then | |
9328 | cat >> confdefs.h <<\EOF | |
9329 | #define wxUSE_IOSTREAMH 1 | |
9330 | EOF | |
9331 | ||
9332 | else | |
9333 | ||
9334 | ac_ext=C | |
9335 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9336 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9337 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9338 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9339 | cross_compiling=$ac_cv_prog_cxx_cross | |
9340 | ||
9341 | ||
9342 | for ac_hdr in iostream | |
9343 | do | |
9344 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9345 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9346 | echo "configure:9347: checking for $ac_hdr" >&5 | |
9347 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9348 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9349 | else | |
9350 | cat > conftest.$ac_ext <<EOF | |
9351 | #line 9352 "configure" | |
9352 | #include "confdefs.h" | |
9353 | #include <$ac_hdr> | |
9354 | EOF | |
9355 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9356 | { (eval echo configure:9357: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9357 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9358 | if test -z "$ac_err"; then | |
9359 | rm -rf conftest* | |
9360 | eval "ac_cv_header_$ac_safe=yes" | |
9361 | else | |
9362 | echo "$ac_err" >&5 | |
9363 | echo "configure: failed program was:" >&5 | |
9364 | cat conftest.$ac_ext >&5 | |
9365 | rm -rf conftest* | |
9366 | eval "ac_cv_header_$ac_safe=no" | |
9367 | fi | |
9368 | rm -f conftest* | |
9369 | fi | |
9370 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9371 | echo "$ac_t""yes" 1>&6 | |
9372 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9373 | cat >> confdefs.h <<EOF | |
9374 | #define $ac_tr_hdr 1 | |
9375 | EOF | |
9376 | ||
9377 | else | |
9378 | echo "$ac_t""no" 1>&6 | |
9379 | fi | |
9380 | done | |
9381 | ||
9382 | ||
9383 | if test "x$HAVE_IOSTREAM" = x ; then | |
9384 | cat >> confdefs.h <<\EOF | |
9385 | #define wxUSE_IOSTREAMH 1 | |
9386 | EOF | |
9387 | ||
9388 | else | |
9389 | : | |
9390 | fi | |
9391 | ||
9392 | ac_ext=c | |
9393 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9394 | ac_cpp='$CPP $CPPFLAGS' | |
9395 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9396 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9397 | cross_compiling=$ac_cv_prog_cc_cross | |
9398 | ||
9399 | fi | |
9400 | ||
9401 | ||
9402 | ||
9403 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 | |
9404 | echo "configure:9405: checking if C++ compiler supports bool" >&5 | |
9405 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then | |
9406 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9407 | else | |
9408 | ||
9409 | ||
9410 | ac_ext=C | |
9411 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9412 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9413 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9414 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9415 | cross_compiling=$ac_cv_prog_cxx_cross | |
9416 | ||
9417 | ||
9418 | cat > conftest.$ac_ext <<EOF | |
9419 | #line 9420 "configure" | |
9420 | #include "confdefs.h" | |
9421 | ||
9422 | ||
9423 | int main() { | |
9424 | ||
9425 | bool b = true; | |
9426 | ||
9427 | return 0; | |
9428 | ||
9429 | ; return 0; } | |
9430 | EOF | |
9431 | if { (eval echo configure:9432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
9432 | rm -rf conftest* | |
9433 | ||
9434 | cat >> confdefs.h <<\EOF | |
9435 | #define HAVE_BOOL 1 | |
9436 | EOF | |
9437 | ||
9438 | wx_cv_cpp_bool=yes | |
9439 | ||
9440 | else | |
9441 | echo "configure: failed program was:" >&5 | |
9442 | cat conftest.$ac_ext >&5 | |
9443 | rm -rf conftest* | |
9444 | ||
9445 | wx_cv_cpp_bool=no | |
9446 | ||
9447 | ||
9448 | fi | |
9449 | rm -f conftest* | |
9450 | ||
9451 | ac_ext=c | |
9452 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9453 | ac_cpp='$CPP $CPPFLAGS' | |
9454 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9455 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9456 | cross_compiling=$ac_cv_prog_cc_cross | |
9457 | ||
9458 | ||
9459 | fi | |
9460 | ||
9461 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
9462 | ||
9463 | if test "$wx_cv_cpp_bool" = "yes"; then | |
9464 | cat >> confdefs.h <<\EOF | |
9465 | #define HAVE_BOOL 1 | |
9466 | EOF | |
9467 | ||
9468 | fi | |
9469 | ||
9470 | ||
9471 | ||
9472 | echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6 | |
9473 | echo "configure:9474: checking if you need GNU extensions" >&5 | |
9474 | if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then | |
9475 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9476 | else | |
9477 | ||
9478 | cat > conftest.$ac_ext <<EOF | |
9479 | #line 9480 "configure" | |
9480 | #include "confdefs.h" | |
9481 | #include <features.h> | |
9482 | int main() { | |
9483 | ||
9484 | ||
9485 | #ifndef __GNU_LIBRARY__ | |
9486 | Compile error wanted | |
9487 | #endif | |
9488 | ||
9489 | ||
9490 | ; return 0; } | |
9491 | EOF | |
9492 | if { (eval echo configure:9493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
9493 | rm -rf conftest* | |
9494 | wx_cv_gnu_extensions=yes | |
9495 | else | |
9496 | echo "configure: failed program was:" >&5 | |
9497 | cat conftest.$ac_ext >&5 | |
9498 | rm -rf conftest* | |
9499 | wx_cv_gnu_extensions=no | |
9500 | fi | |
9501 | rm -f conftest* | |
9502 | ||
9503 | fi | |
9504 | ||
9505 | ||
9506 | echo "$ac_t""$wx_cv_gnu_extensions" 1>&6 | |
9507 | if test "$wx_cv_gnu_extensions" = "yes"; then | |
9508 | cat >> confdefs.h <<EOF | |
9509 | #define _GNU_SOURCE 1 | |
9510 | EOF | |
9511 | ||
9512 | fi | |
9513 | ||
9514 | ||
9515 | ||
9516 | echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6 | |
9517 | echo "configure:9518: checking for wcslen in -lc" >&5 | |
9518 | ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'` | |
9519 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9520 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9521 | else | |
9522 | ac_save_LIBS="$LIBS" | |
9523 | LIBS="-lc $LIBS" | |
9524 | cat > conftest.$ac_ext <<EOF | |
9525 | #line 9526 "configure" | |
9526 | #include "confdefs.h" | |
9527 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9528 | /* We use char because int might match the return type of a gcc2 | |
9529 | builtin and then its argument prototype would still apply. */ | |
9530 | char wcslen(); | |
9531 | ||
9532 | int main() { | |
9533 | wcslen() | |
9534 | ; return 0; } | |
9535 | EOF | |
9536 | if { (eval echo configure:9537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9537 | rm -rf conftest* | |
9538 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9539 | else | |
9540 | echo "configure: failed program was:" >&5 | |
9541 | cat conftest.$ac_ext >&5 | |
9542 | rm -rf conftest* | |
9543 | eval "ac_cv_lib_$ac_lib_var=no" | |
9544 | fi | |
9545 | rm -f conftest* | |
9546 | LIBS="$ac_save_LIBS" | |
9547 | ||
9548 | fi | |
9549 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9550 | echo "$ac_t""yes" 1>&6 | |
9551 | ||
9552 | cat >> confdefs.h <<\EOF | |
9553 | #define HAVE_WCSLEN 1 | |
9554 | EOF | |
9555 | ||
9556 | WCHAR_LINK="" | |
9557 | ||
9558 | else | |
9559 | echo "$ac_t""no" 1>&6 | |
9560 | ||
9561 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 | |
9562 | echo "configure:9563: checking for wcslen in -lw" >&5 | |
9563 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` | |
9564 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9565 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9566 | else | |
9567 | ac_save_LIBS="$LIBS" | |
9568 | LIBS="-lw $LIBS" | |
9569 | cat > conftest.$ac_ext <<EOF | |
9570 | #line 9571 "configure" | |
9571 | #include "confdefs.h" | |
9572 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9573 | /* We use char because int might match the return type of a gcc2 | |
9574 | builtin and then its argument prototype would still apply. */ | |
9575 | char wcslen(); | |
9576 | ||
9577 | int main() { | |
9578 | wcslen() | |
9579 | ; return 0; } | |
9580 | EOF | |
9581 | if { (eval echo configure:9582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9582 | rm -rf conftest* | |
9583 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9584 | else | |
9585 | echo "configure: failed program was:" >&5 | |
9586 | cat conftest.$ac_ext >&5 | |
9587 | rm -rf conftest* | |
9588 | eval "ac_cv_lib_$ac_lib_var=no" | |
9589 | fi | |
9590 | rm -f conftest* | |
9591 | LIBS="$ac_save_LIBS" | |
9592 | ||
9593 | fi | |
9594 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9595 | echo "$ac_t""yes" 1>&6 | |
9596 | ||
9597 | cat >> confdefs.h <<\EOF | |
9598 | #define HAVE_WCSLEN 1 | |
9599 | EOF | |
9600 | ||
9601 | WCHAR_LINK="-lw" | |
9602 | ||
9603 | else | |
9604 | echo "$ac_t""no" 1>&6 | |
9605 | fi | |
9606 | ||
9607 | ||
9608 | fi | |
9609 | ||
9610 | ||
9611 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 | |
9612 | echo "configure:9613: checking for vprintf" >&5 | |
9613 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then | |
9614 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9615 | else | |
9616 | cat > conftest.$ac_ext <<EOF | |
9617 | #line 9618 "configure" | |
9618 | #include "confdefs.h" | |
9619 | /* System header to define __stub macros and hopefully few prototypes, | |
9620 | which can conflict with char vprintf(); below. */ | |
9621 | #include <assert.h> | |
9622 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9623 | /* We use char because int might match the return type of a gcc2 | |
9624 | builtin and then its argument prototype would still apply. */ | |
9625 | char vprintf(); | |
9626 | ||
9627 | int main() { | |
9628 | ||
9629 | /* The GNU C library defines this for functions which it implements | |
9630 | to always fail with ENOSYS. Some functions are actually named | |
9631 | something starting with __ and the normal name is an alias. */ | |
9632 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
9633 | choke me | |
9634 | #else | |
9635 | vprintf(); | |
9636 | #endif | |
9637 | ||
9638 | ; return 0; } | |
9639 | EOF | |
9640 | if { (eval echo configure:9641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9641 | rm -rf conftest* | |
9642 | eval "ac_cv_func_vprintf=yes" | |
9643 | else | |
9644 | echo "configure: failed program was:" >&5 | |
9645 | cat conftest.$ac_ext >&5 | |
9646 | rm -rf conftest* | |
9647 | eval "ac_cv_func_vprintf=no" | |
9648 | fi | |
9649 | rm -f conftest* | |
9650 | fi | |
9651 | ||
9652 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
9653 | echo "$ac_t""yes" 1>&6 | |
9654 | cat >> confdefs.h <<\EOF | |
9655 | #define HAVE_VPRINTF 1 | |
9656 | EOF | |
9657 | ||
9658 | else | |
9659 | echo "$ac_t""no" 1>&6 | |
9660 | fi | |
9661 | ||
9662 | if test "$ac_cv_func_vprintf" != yes; then | |
9663 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
9664 | echo "configure:9665: checking for _doprnt" >&5 | |
9665 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then | |
9666 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9667 | else | |
9668 | cat > conftest.$ac_ext <<EOF | |
9669 | #line 9670 "configure" | |
9670 | #include "confdefs.h" | |
9671 | /* System header to define __stub macros and hopefully few prototypes, | |
9672 | which can conflict with char _doprnt(); below. */ | |
9673 | #include <assert.h> | |
9674 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9675 | /* We use char because int might match the return type of a gcc2 | |
9676 | builtin and then its argument prototype would still apply. */ | |
9677 | char _doprnt(); | |
9678 | ||
9679 | int main() { | |
9680 | ||
9681 | /* The GNU C library defines this for functions which it implements | |
9682 | to always fail with ENOSYS. Some functions are actually named | |
9683 | something starting with __ and the normal name is an alias. */ | |
9684 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
9685 | choke me | |
9686 | #else | |
9687 | _doprnt(); | |
9688 | #endif | |
9689 | ||
9690 | ; return 0; } | |
9691 | EOF | |
9692 | if { (eval echo configure:9693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9693 | rm -rf conftest* | |
9694 | eval "ac_cv_func__doprnt=yes" | |
9695 | else | |
9696 | echo "configure: failed program was:" >&5 | |
9697 | cat conftest.$ac_ext >&5 | |
9698 | rm -rf conftest* | |
9699 | eval "ac_cv_func__doprnt=no" | |
9700 | fi | |
9701 | rm -f conftest* | |
9702 | fi | |
9703 | ||
9704 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
9705 | echo "$ac_t""yes" 1>&6 | |
9706 | cat >> confdefs.h <<\EOF | |
9707 | #define HAVE_DOPRNT 1 | |
9708 | EOF | |
9709 | ||
9710 | else | |
9711 | echo "$ac_t""no" 1>&6 | |
9712 | fi | |
9713 | ||
9714 | fi | |
9715 | ||
9716 | ||
9717 | for ac_func in vsnprintf | |
9718 | do | |
9719 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
9720 | echo "configure:9721: checking for $ac_func" >&5 | |
9721 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
9722 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9723 | else | |
9724 | cat > conftest.$ac_ext <<EOF | |
9725 | #line 9726 "configure" | |
9726 | #include "confdefs.h" | |
9727 | /* System header to define __stub macros and hopefully few prototypes, | |
9728 | which can conflict with char $ac_func(); below. */ | |
9729 | #include <assert.h> | |
9730 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9731 | /* We use char because int might match the return type of a gcc2 | |
9732 | builtin and then its argument prototype would still apply. */ | |
9733 | char $ac_func(); | |
9734 | ||
9735 | int main() { | |
9736 | ||
9737 | /* The GNU C library defines this for functions which it implements | |
9738 | to always fail with ENOSYS. Some functions are actually named | |
9739 | something starting with __ and the normal name is an alias. */ | |
9740 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9741 | choke me | |
9742 | #else | |
9743 | $ac_func(); | |
9744 | #endif | |
9745 | ||
9746 | ; return 0; } | |
9747 | EOF | |
9748 | if { (eval echo configure:9749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9749 | rm -rf conftest* | |
9750 | eval "ac_cv_func_$ac_func=yes" | |
9751 | else | |
9752 | echo "configure: failed program was:" >&5 | |
9753 | cat conftest.$ac_ext >&5 | |
9754 | rm -rf conftest* | |
9755 | eval "ac_cv_func_$ac_func=no" | |
9756 | fi | |
9757 | rm -f conftest* | |
9758 | fi | |
9759 | ||
9760 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9761 | echo "$ac_t""yes" 1>&6 | |
9762 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9763 | cat >> confdefs.h <<EOF | |
9764 | #define $ac_tr_func 1 | |
9765 | EOF | |
9766 | cat >> confdefs.h <<\EOF | |
9767 | #define HAVE_VSNPRINTF 1 | |
9768 | EOF | |
9769 | ||
9770 | else | |
9771 | echo "$ac_t""no" 1>&6 | |
9772 | echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2 | |
9773 | ||
9774 | fi | |
9775 | done | |
9776 | ||
9777 | ||
9778 | ||
9779 | ac_ext=C | |
9780 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9781 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9782 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9783 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9784 | cross_compiling=$ac_cv_prog_cxx_cross | |
9785 | ||
9786 | ||
9787 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 | |
9788 | echo "configure:9789: checking for vsscanf" >&5 | |
9789 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then | |
9790 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9791 | else | |
9792 | ||
9793 | if test "$cross_compiling" = yes; then | |
9794 | wx_cv_func_vsscanf=no | |
9795 | ||
9796 | else | |
9797 | cat > conftest.$ac_ext <<EOF | |
9798 | #line 9799 "configure" | |
9799 | #include "confdefs.h" | |
9800 | #ifdef __cplusplus | |
9801 | extern "C" void exit(int); | |
9802 | #endif | |
9803 | ||
9804 | #include <stdio.h> | |
9805 | #include <stdarg.h> | |
9806 | ||
9807 | int try_vsscanf(const char *format, ...) | |
9808 | { | |
9809 | va_list ap; | |
9810 | va_start(ap, format); | |
9811 | ||
9812 | vsscanf("17", format, ap); | |
9813 | ||
9814 | va_end(ap); | |
9815 | } | |
9816 | ||
9817 | int main() | |
9818 | { | |
9819 | int i; | |
9820 | try_vsscanf("%d", &i); | |
9821 | return i == 17 ? 0 : 1; | |
9822 | } | |
9823 | ||
9824 | EOF | |
9825 | if { (eval echo configure:9826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
9826 | then | |
9827 | ||
9828 | cat >> confdefs.h <<\EOF | |
9829 | #define HAVE_VSSCANF 1 | |
9830 | EOF | |
9831 | ||
9832 | wx_cv_func_vsscanf=yes | |
9833 | ||
9834 | else | |
9835 | echo "configure: failed program was:" >&5 | |
9836 | cat conftest.$ac_ext >&5 | |
9837 | rm -fr conftest* | |
9838 | wx_cv_func_vsscanf=no | |
9839 | fi | |
9840 | rm -fr conftest* | |
9841 | fi | |
9842 | ||
9843 | ||
9844 | fi | |
9845 | ||
9846 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 | |
9847 | ||
9848 | ac_ext=c | |
9849 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9850 | ac_cpp='$CPP $CPPFLAGS' | |
9851 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9852 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9853 | cross_compiling=$ac_cv_prog_cc_cross | |
9854 | ||
9855 | ||
9856 | if test "$USE_UNIX" = 1; then | |
9857 | ||
9858 | for ac_func in vfork | |
9859 | do | |
9860 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
9861 | echo "configure:9862: checking for $ac_func" >&5 | |
9862 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
9863 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9864 | else | |
9865 | cat > conftest.$ac_ext <<EOF | |
9866 | #line 9867 "configure" | |
9867 | #include "confdefs.h" | |
9868 | /* System header to define __stub macros and hopefully few prototypes, | |
9869 | which can conflict with char $ac_func(); below. */ | |
9870 | #include <assert.h> | |
9871 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9872 | /* We use char because int might match the return type of a gcc2 | |
9873 | builtin and then its argument prototype would still apply. */ | |
9874 | char $ac_func(); | |
9875 | ||
9876 | int main() { | |
9877 | ||
9878 | /* The GNU C library defines this for functions which it implements | |
9879 | to always fail with ENOSYS. Some functions are actually named | |
9880 | something starting with __ and the normal name is an alias. */ | |
9881 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9882 | choke me | |
9883 | #else | |
9884 | $ac_func(); | |
9885 | #endif | |
9886 | ||
9887 | ; return 0; } | |
9888 | EOF | |
9889 | if { (eval echo configure:9890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9890 | rm -rf conftest* | |
9891 | eval "ac_cv_func_$ac_func=yes" | |
9892 | else | |
9893 | echo "configure: failed program was:" >&5 | |
9894 | cat conftest.$ac_ext >&5 | |
9895 | rm -rf conftest* | |
9896 | eval "ac_cv_func_$ac_func=no" | |
9897 | fi | |
9898 | rm -f conftest* | |
9899 | fi | |
9900 | ||
9901 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9902 | echo "$ac_t""yes" 1>&6 | |
9903 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9904 | cat >> confdefs.h <<EOF | |
9905 | #define $ac_tr_func 1 | |
9906 | EOF | |
9907 | ||
9908 | else | |
9909 | echo "$ac_t""no" 1>&6 | |
9910 | fi | |
9911 | done | |
9912 | ||
9913 | ||
9914 | for ac_func in timegm | |
9915 | do | |
9916 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
9917 | echo "configure:9918: checking for $ac_func" >&5 | |
9918 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
9919 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9920 | else | |
9921 | cat > conftest.$ac_ext <<EOF | |
9922 | #line 9923 "configure" | |
9923 | #include "confdefs.h" | |
9924 | /* System header to define __stub macros and hopefully few prototypes, | |
9925 | which can conflict with char $ac_func(); below. */ | |
9926 | #include <assert.h> | |
9927 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9928 | /* We use char because int might match the return type of a gcc2 | |
9929 | builtin and then its argument prototype would still apply. */ | |
9930 | char $ac_func(); | |
9931 | ||
9932 | int main() { | |
9933 | ||
9934 | /* The GNU C library defines this for functions which it implements | |
9935 | to always fail with ENOSYS. Some functions are actually named | |
9936 | something starting with __ and the normal name is an alias. */ | |
9937 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9938 | choke me | |
9939 | #else | |
9940 | $ac_func(); | |
9941 | #endif | |
9942 | ||
9943 | ; return 0; } | |
9944 | EOF | |
9945 | if { (eval echo configure:9946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9946 | rm -rf conftest* | |
9947 | eval "ac_cv_func_$ac_func=yes" | |
9948 | else | |
9949 | echo "configure: failed program was:" >&5 | |
9950 | cat conftest.$ac_ext >&5 | |
9951 | rm -rf conftest* | |
9952 | eval "ac_cv_func_$ac_func=no" | |
9953 | fi | |
9954 | rm -f conftest* | |
9955 | fi | |
9956 | ||
9957 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9958 | echo "$ac_t""yes" 1>&6 | |
9959 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9960 | cat >> confdefs.h <<EOF | |
9961 | #define $ac_tr_func 1 | |
9962 | EOF | |
9963 | ||
9964 | else | |
9965 | echo "$ac_t""no" 1>&6 | |
9966 | fi | |
9967 | done | |
9968 | ||
9969 | ||
9970 | HAVE_SOME_SLEEP_FUNC=0 | |
9971 | if test "$USE_BEOS" = 1; then | |
9972 | cat >> confdefs.h <<\EOF | |
9973 | #define HAVE_SLEEP 1 | |
9974 | EOF | |
9975 | ||
9976 | HAVE_SOME_SLEEP_FUNC=1 | |
9977 | fi | |
9978 | ||
9979 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
9980 | POSIX4_LINK= | |
9981 | for ac_func in nanosleep | |
9982 | do | |
9983 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
9984 | echo "configure:9985: checking for $ac_func" >&5 | |
9985 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
9986 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9987 | else | |
9988 | cat > conftest.$ac_ext <<EOF | |
9989 | #line 9990 "configure" | |
9990 | #include "confdefs.h" | |
9991 | /* System header to define __stub macros and hopefully few prototypes, | |
9992 | which can conflict with char $ac_func(); below. */ | |
9993 | #include <assert.h> | |
9994 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9995 | /* We use char because int might match the return type of a gcc2 | |
9996 | builtin and then its argument prototype would still apply. */ | |
9997 | char $ac_func(); | |
9998 | ||
9999 | int main() { | |
10000 | ||
10001 | /* The GNU C library defines this for functions which it implements | |
10002 | to always fail with ENOSYS. Some functions are actually named | |
10003 | something starting with __ and the normal name is an alias. */ | |
10004 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10005 | choke me | |
10006 | #else | |
10007 | $ac_func(); | |
10008 | #endif | |
10009 | ||
10010 | ; return 0; } | |
10011 | EOF | |
10012 | if { (eval echo configure:10013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10013 | rm -rf conftest* | |
10014 | eval "ac_cv_func_$ac_func=yes" | |
10015 | else | |
10016 | echo "configure: failed program was:" >&5 | |
10017 | cat conftest.$ac_ext >&5 | |
10018 | rm -rf conftest* | |
10019 | eval "ac_cv_func_$ac_func=no" | |
10020 | fi | |
10021 | rm -f conftest* | |
10022 | fi | |
10023 | ||
10024 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10025 | echo "$ac_t""yes" 1>&6 | |
10026 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10027 | cat >> confdefs.h <<EOF | |
10028 | #define $ac_tr_func 1 | |
10029 | EOF | |
10030 | cat >> confdefs.h <<\EOF | |
10031 | #define HAVE_NANOSLEEP 1 | |
10032 | EOF | |
10033 | ||
10034 | else | |
10035 | echo "$ac_t""no" 1>&6 | |
10036 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
10037 | echo "configure:10038: checking for nanosleep in -lposix4" >&5 | |
10038 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` | |
10039 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10040 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10041 | else | |
10042 | ac_save_LIBS="$LIBS" | |
10043 | LIBS="-lposix4 $LIBS" | |
10044 | cat > conftest.$ac_ext <<EOF | |
10045 | #line 10046 "configure" | |
10046 | #include "confdefs.h" | |
10047 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10048 | /* We use char because int might match the return type of a gcc2 | |
10049 | builtin and then its argument prototype would still apply. */ | |
10050 | char nanosleep(); | |
10051 | ||
10052 | int main() { | |
10053 | nanosleep() | |
10054 | ; return 0; } | |
10055 | EOF | |
10056 | if { (eval echo configure:10057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10057 | rm -rf conftest* | |
10058 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10059 | else | |
10060 | echo "configure: failed program was:" >&5 | |
10061 | cat conftest.$ac_ext >&5 | |
10062 | rm -rf conftest* | |
10063 | eval "ac_cv_lib_$ac_lib_var=no" | |
10064 | fi | |
10065 | rm -f conftest* | |
10066 | LIBS="$ac_save_LIBS" | |
10067 | ||
10068 | fi | |
10069 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10070 | echo "$ac_t""yes" 1>&6 | |
10071 | ||
10072 | cat >> confdefs.h <<\EOF | |
10073 | #define HAVE_NANOSLEEP 1 | |
10074 | EOF | |
10075 | ||
10076 | POSIX4_LINK="-lposix4" | |
10077 | ||
10078 | else | |
10079 | echo "$ac_t""no" 1>&6 | |
10080 | ||
10081 | for ac_func in usleep | |
10082 | do | |
10083 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
10084 | echo "configure:10085: checking for $ac_func" >&5 | |
10085 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
10086 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10087 | else | |
10088 | cat > conftest.$ac_ext <<EOF | |
10089 | #line 10090 "configure" | |
10090 | #include "confdefs.h" | |
10091 | /* System header to define __stub macros and hopefully few prototypes, | |
10092 | which can conflict with char $ac_func(); below. */ | |
10093 | #include <assert.h> | |
10094 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10095 | /* We use char because int might match the return type of a gcc2 | |
10096 | builtin and then its argument prototype would still apply. */ | |
10097 | char $ac_func(); | |
10098 | ||
10099 | int main() { | |
10100 | ||
10101 | /* The GNU C library defines this for functions which it implements | |
10102 | to always fail with ENOSYS. Some functions are actually named | |
10103 | something starting with __ and the normal name is an alias. */ | |
10104 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10105 | choke me | |
10106 | #else | |
10107 | $ac_func(); | |
10108 | #endif | |
10109 | ||
10110 | ; return 0; } | |
10111 | EOF | |
10112 | if { (eval echo configure:10113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10113 | rm -rf conftest* | |
10114 | eval "ac_cv_func_$ac_func=yes" | |
10115 | else | |
10116 | echo "configure: failed program was:" >&5 | |
10117 | cat conftest.$ac_ext >&5 | |
10118 | rm -rf conftest* | |
10119 | eval "ac_cv_func_$ac_func=no" | |
10120 | fi | |
10121 | rm -f conftest* | |
10122 | fi | |
10123 | ||
10124 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10125 | echo "$ac_t""yes" 1>&6 | |
10126 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10127 | cat >> confdefs.h <<EOF | |
10128 | #define $ac_tr_func 1 | |
10129 | EOF | |
10130 | ||
10131 | else | |
10132 | echo "$ac_t""no" 1>&6 | |
10133 | fi | |
10134 | done | |
10135 | ||
10136 | echo "configure: warning: wxSleep() function will not work" 1>&2 | |
10137 | ||
10138 | ||
10139 | fi | |
10140 | ||
10141 | ||
10142 | ||
10143 | fi | |
10144 | done | |
10145 | ||
10146 | fi | |
10147 | ||
10148 | for ac_func in uname gethostname | |
10149 | do | |
10150 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
10151 | echo "configure:10152: checking for $ac_func" >&5 | |
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 | |
10156 | #line 10157 "configure" | |
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 | |
10174 | $ac_func(); | |
10175 | #endif | |
10176 | ||
10177 | ; return 0; } | |
10178 | EOF | |
10179 | if { (eval echo configure:10180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
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 | break | |
10198 | else | |
10199 | echo "$ac_t""no" 1>&6 | |
10200 | fi | |
10201 | done | |
10202 | ||
10203 | ||
10204 | for ac_func in strtok_r | |
10205 | do | |
10206 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
10207 | echo "configure:10208: checking for $ac_func" >&5 | |
10208 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
10209 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10210 | else | |
10211 | cat > conftest.$ac_ext <<EOF | |
10212 | #line 10213 "configure" | |
10213 | #include "confdefs.h" | |
10214 | /* System header to define __stub macros and hopefully few prototypes, | |
10215 | which can conflict with char $ac_func(); below. */ | |
10216 | #include <assert.h> | |
10217 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10218 | /* We use char because int might match the return type of a gcc2 | |
10219 | builtin and then its argument prototype would still apply. */ | |
10220 | char $ac_func(); | |
10221 | ||
10222 | int main() { | |
10223 | ||
10224 | /* The GNU C library defines this for functions which it implements | |
10225 | to always fail with ENOSYS. Some functions are actually named | |
10226 | something starting with __ and the normal name is an alias. */ | |
10227 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10228 | choke me | |
10229 | #else | |
10230 | $ac_func(); | |
10231 | #endif | |
10232 | ||
10233 | ; return 0; } | |
10234 | EOF | |
10235 | if { (eval echo configure:10236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10236 | rm -rf conftest* | |
10237 | eval "ac_cv_func_$ac_func=yes" | |
10238 | else | |
10239 | echo "configure: failed program was:" >&5 | |
10240 | cat conftest.$ac_ext >&5 | |
10241 | rm -rf conftest* | |
10242 | eval "ac_cv_func_$ac_func=no" | |
10243 | fi | |
10244 | rm -f conftest* | |
10245 | fi | |
10246 | ||
10247 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10248 | echo "$ac_t""yes" 1>&6 | |
10249 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10250 | cat >> confdefs.h <<EOF | |
10251 | #define $ac_tr_func 1 | |
10252 | EOF | |
10253 | ||
10254 | else | |
10255 | echo "$ac_t""no" 1>&6 | |
10256 | fi | |
10257 | done | |
10258 | ||
10259 | ||
10260 | INET_LINK= | |
10261 | for ac_func in inet_addr | |
10262 | do | |
10263 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
10264 | echo "configure:10265: checking for $ac_func" >&5 | |
10265 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
10266 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10267 | else | |
10268 | cat > conftest.$ac_ext <<EOF | |
10269 | #line 10270 "configure" | |
10270 | #include "confdefs.h" | |
10271 | /* System header to define __stub macros and hopefully few prototypes, | |
10272 | which can conflict with char $ac_func(); below. */ | |
10273 | #include <assert.h> | |
10274 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10275 | /* We use char because int might match the return type of a gcc2 | |
10276 | builtin and then its argument prototype would still apply. */ | |
10277 | char $ac_func(); | |
10278 | ||
10279 | int main() { | |
10280 | ||
10281 | /* The GNU C library defines this for functions which it implements | |
10282 | to always fail with ENOSYS. Some functions are actually named | |
10283 | something starting with __ and the normal name is an alias. */ | |
10284 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10285 | choke me | |
10286 | #else | |
10287 | $ac_func(); | |
10288 | #endif | |
10289 | ||
10290 | ; return 0; } | |
10291 | EOF | |
10292 | if { (eval echo configure:10293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10293 | rm -rf conftest* | |
10294 | eval "ac_cv_func_$ac_func=yes" | |
10295 | else | |
10296 | echo "configure: failed program was:" >&5 | |
10297 | cat conftest.$ac_ext >&5 | |
10298 | rm -rf conftest* | |
10299 | eval "ac_cv_func_$ac_func=no" | |
10300 | fi | |
10301 | rm -f conftest* | |
10302 | fi | |
10303 | ||
10304 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10305 | echo "$ac_t""yes" 1>&6 | |
10306 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10307 | cat >> confdefs.h <<EOF | |
10308 | #define $ac_tr_func 1 | |
10309 | EOF | |
10310 | cat >> confdefs.h <<\EOF | |
10311 | #define HAVE_INET_ADDR 1 | |
10312 | EOF | |
10313 | ||
10314 | else | |
10315 | echo "$ac_t""no" 1>&6 | |
10316 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 | |
10317 | echo "configure:10318: checking for inet_addr in -lnsl" >&5 | |
10318 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` | |
10319 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10320 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10321 | else | |
10322 | ac_save_LIBS="$LIBS" | |
10323 | LIBS="-lnsl $LIBS" | |
10324 | cat > conftest.$ac_ext <<EOF | |
10325 | #line 10326 "configure" | |
10326 | #include "confdefs.h" | |
10327 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10328 | /* We use char because int might match the return type of a gcc2 | |
10329 | builtin and then its argument prototype would still apply. */ | |
10330 | char inet_addr(); | |
10331 | ||
10332 | int main() { | |
10333 | inet_addr() | |
10334 | ; return 0; } | |
10335 | EOF | |
10336 | if { (eval echo configure:10337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10337 | rm -rf conftest* | |
10338 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10339 | else | |
10340 | echo "configure: failed program was:" >&5 | |
10341 | cat conftest.$ac_ext >&5 | |
10342 | rm -rf conftest* | |
10343 | eval "ac_cv_lib_$ac_lib_var=no" | |
10344 | fi | |
10345 | rm -f conftest* | |
10346 | LIBS="$ac_save_LIBS" | |
10347 | ||
10348 | fi | |
10349 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10350 | echo "$ac_t""yes" 1>&6 | |
10351 | INET_LINK="nsl" | |
10352 | else | |
10353 | echo "$ac_t""no" 1>&6 | |
10354 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 | |
10355 | echo "configure:10356: checking for inet_addr in -lresolv" >&5 | |
10356 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` | |
10357 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10358 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10359 | else | |
10360 | ac_save_LIBS="$LIBS" | |
10361 | LIBS="-lresolv $LIBS" | |
10362 | cat > conftest.$ac_ext <<EOF | |
10363 | #line 10364 "configure" | |
10364 | #include "confdefs.h" | |
10365 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10366 | /* We use char because int might match the return type of a gcc2 | |
10367 | builtin and then its argument prototype would still apply. */ | |
10368 | char inet_addr(); | |
10369 | ||
10370 | int main() { | |
10371 | inet_addr() | |
10372 | ; return 0; } | |
10373 | EOF | |
10374 | if { (eval echo configure:10375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10375 | rm -rf conftest* | |
10376 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10377 | else | |
10378 | echo "configure: failed program was:" >&5 | |
10379 | cat conftest.$ac_ext >&5 | |
10380 | rm -rf conftest* | |
10381 | eval "ac_cv_lib_$ac_lib_var=no" | |
10382 | fi | |
10383 | rm -f conftest* | |
10384 | LIBS="$ac_save_LIBS" | |
10385 | ||
10386 | fi | |
10387 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10388 | echo "$ac_t""yes" 1>&6 | |
10389 | INET_LINK="resolv" | |
10390 | ||
10391 | else | |
10392 | echo "$ac_t""no" 1>&6 | |
10393 | fi | |
10394 | ||
10395 | ||
10396 | fi | |
10397 | ||
10398 | ||
10399 | ||
10400 | fi | |
10401 | done | |
10402 | ||
10403 | ||
10404 | for ac_func in inet_aton | |
10405 | do | |
10406 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
10407 | echo "configure:10408: checking for $ac_func" >&5 | |
10408 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
10409 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10410 | else | |
10411 | cat > conftest.$ac_ext <<EOF | |
10412 | #line 10413 "configure" | |
10413 | #include "confdefs.h" | |
10414 | /* System header to define __stub macros and hopefully few prototypes, | |
10415 | which can conflict with char $ac_func(); below. */ | |
10416 | #include <assert.h> | |
10417 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10418 | /* We use char because int might match the return type of a gcc2 | |
10419 | builtin and then its argument prototype would still apply. */ | |
10420 | char $ac_func(); | |
10421 | ||
10422 | int main() { | |
10423 | ||
10424 | /* The GNU C library defines this for functions which it implements | |
10425 | to always fail with ENOSYS. Some functions are actually named | |
10426 | something starting with __ and the normal name is an alias. */ | |
10427 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10428 | choke me | |
10429 | #else | |
10430 | $ac_func(); | |
10431 | #endif | |
10432 | ||
10433 | ; return 0; } | |
10434 | EOF | |
10435 | if { (eval echo configure:10436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10436 | rm -rf conftest* | |
10437 | eval "ac_cv_func_$ac_func=yes" | |
10438 | else | |
10439 | echo "configure: failed program was:" >&5 | |
10440 | cat conftest.$ac_ext >&5 | |
10441 | rm -rf conftest* | |
10442 | eval "ac_cv_func_$ac_func=no" | |
10443 | fi | |
10444 | rm -f conftest* | |
10445 | fi | |
10446 | ||
10447 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10448 | echo "$ac_t""yes" 1>&6 | |
10449 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10450 | cat >> confdefs.h <<EOF | |
10451 | #define $ac_tr_func 1 | |
10452 | EOF | |
10453 | cat >> confdefs.h <<\EOF | |
10454 | #define HAVE_INET_ATON 1 | |
10455 | EOF | |
10456 | ||
10457 | else | |
10458 | echo "$ac_t""no" 1>&6 | |
10459 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 | |
10460 | echo "configure:10461: checking for inet_aton in -l$INET_LINK" >&5 | |
10461 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` | |
10462 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10463 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10464 | else | |
10465 | ac_save_LIBS="$LIBS" | |
10466 | LIBS="-l$INET_LINK $LIBS" | |
10467 | cat > conftest.$ac_ext <<EOF | |
10468 | #line 10469 "configure" | |
10469 | #include "confdefs.h" | |
10470 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10471 | /* We use char because int might match the return type of a gcc2 | |
10472 | builtin and then its argument prototype would still apply. */ | |
10473 | char inet_aton(); | |
10474 | ||
10475 | int main() { | |
10476 | inet_aton() | |
10477 | ; return 0; } | |
10478 | EOF | |
10479 | if { (eval echo configure:10480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10480 | rm -rf conftest* | |
10481 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10482 | else | |
10483 | echo "configure: failed program was:" >&5 | |
10484 | cat conftest.$ac_ext >&5 | |
10485 | rm -rf conftest* | |
10486 | eval "ac_cv_lib_$ac_lib_var=no" | |
10487 | fi | |
10488 | rm -f conftest* | |
10489 | LIBS="$ac_save_LIBS" | |
10490 | ||
10491 | fi | |
10492 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10493 | echo "$ac_t""yes" 1>&6 | |
10494 | cat >> confdefs.h <<\EOF | |
10495 | #define HAVE_INET_ATON 1 | |
10496 | EOF | |
10497 | ||
10498 | else | |
10499 | echo "$ac_t""no" 1>&6 | |
10500 | fi | |
10501 | ||
10502 | ||
10503 | fi | |
10504 | done | |
10505 | ||
10506 | ||
10507 | if test "x$INET_LINK" != "x"; then | |
10508 | cat >> confdefs.h <<\EOF | |
10509 | #define HAVE_INET_ADDR 1 | |
10510 | EOF | |
10511 | ||
10512 | INET_LINK="-l$INET_LINK" | |
10513 | fi | |
10514 | ||
10515 | fi | |
10516 | ||
10517 | ||
10518 | cat > confcache <<\EOF | |
10519 | # This file is a shell script that caches the results of configure | |
10520 | # tests run on this system so they can be shared between configure | |
10521 | # scripts and configure runs. It is not useful on other systems. | |
10522 | # If it contains results you don't want to keep, you may remove or edit it. | |
10523 | # | |
10524 | # By default, configure uses ./config.cache as the cache file, | |
10525 | # creating it if it does not exist already. You can give configure | |
10526 | # the --cache-file=FILE option to use a different cache file; that is | |
10527 | # what configure does when it calls configure scripts in | |
10528 | # subdirectories, so they share the cache. | |
10529 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
10530 | # config.status only pays attention to the cache file if you give it the | |
10531 | # --recheck option to rerun configure. | |
10532 | # | |
10533 | EOF | |
10534 | # The following way of writing the cache mishandles newlines in values, | |
10535 | # but we know of no workaround that is simple, portable, and efficient. | |
10536 | # So, don't put newlines in cache variables' values. | |
10537 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10538 | # and sets the high bit in the cache file unless we assign to the vars. | |
10539 | (set) 2>&1 | | |
10540 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10541 | *ac_space=\ *) | |
10542 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
10543 | # turns \\\\ into \\, and sed turns \\ into \). | |
10544 | sed -n \ | |
10545 | -e "s/'/'\\\\''/g" \ | |
10546 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
10547 | ;; | |
10548 | *) | |
10549 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10550 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
10551 | ;; | |
10552 | esac >> confcache | |
10553 | if cmp -s $cache_file confcache; then | |
10554 | : | |
10555 | else | |
10556 | if test -w $cache_file; then | |
10557 | echo "updating cache $cache_file" | |
10558 | cat confcache > $cache_file | |
10559 | else | |
10560 | echo "not updating unwritable cache $cache_file" | |
10561 | fi | |
10562 | fi | |
10563 | rm -f confcache | |
10564 | ||
10565 | ||
10566 | ||
10567 | if test "$USE_UNIX" = 1; then | |
10568 | ||
10569 | ||
10570 | THREADS_LINK="" | |
10571 | THREADS_OBJ="" | |
10572 | ||
10573 | if test "$wxUSE_THREADS" = "yes" ; then | |
10574 | if test "$wxUSE_WINE" = 1 ; then | |
10575 | echo "configure: warning: Threads are not supported under WINE" 1>&2 | |
10576 | wxUSE_THREADS="no" | |
10577 | elif test "$USE_BEOS" = 1; then | |
10578 | echo "configure: warning: BeOS threads are not yet supported" 1>&2 | |
10579 | wxUSE_THREADS="no" | |
10580 | fi | |
10581 | fi | |
10582 | ||
10583 | if test "$wxUSE_THREADS" = "yes" ; then | |
10584 | ||
10585 | echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 | |
10586 | echo "configure:10587: checking for pthread_create in -lpthread" >&5 | |
10587 | ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` | |
10588 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10589 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10590 | else | |
10591 | ac_save_LIBS="$LIBS" | |
10592 | LIBS="-lpthread $LIBS" | |
10593 | cat > conftest.$ac_ext <<EOF | |
10594 | #line 10595 "configure" | |
10595 | #include "confdefs.h" | |
10596 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10597 | /* We use char because int might match the return type of a gcc2 | |
10598 | builtin and then its argument prototype would still apply. */ | |
10599 | char pthread_create(); | |
10600 | ||
10601 | int main() { | |
10602 | pthread_create() | |
10603 | ; return 0; } | |
10604 | EOF | |
10605 | if { (eval echo configure:10606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10606 | rm -rf conftest* | |
10607 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10608 | else | |
10609 | echo "configure: failed program was:" >&5 | |
10610 | cat conftest.$ac_ext >&5 | |
10611 | rm -rf conftest* | |
10612 | eval "ac_cv_lib_$ac_lib_var=no" | |
10613 | fi | |
10614 | rm -f conftest* | |
10615 | LIBS="$ac_save_LIBS" | |
10616 | ||
10617 | fi | |
10618 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10619 | echo "$ac_t""yes" 1>&6 | |
10620 | ||
10621 | THREADS_OBJ="threadpsx.lo" | |
10622 | THREADS_LINK="pthread" | |
10623 | ||
10624 | else | |
10625 | echo "$ac_t""no" 1>&6 | |
10626 | ||
10627 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 | |
10628 | echo "configure:10629: checking for pthread_create in -lc_r" >&5 | |
10629 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` | |
10630 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10631 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10632 | else | |
10633 | ac_save_LIBS="$LIBS" | |
10634 | LIBS="-lc_r $LIBS" | |
10635 | cat > conftest.$ac_ext <<EOF | |
10636 | #line 10637 "configure" | |
10637 | #include "confdefs.h" | |
10638 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10639 | /* We use char because int might match the return type of a gcc2 | |
10640 | builtin and then its argument prototype would still apply. */ | |
10641 | char pthread_create(); | |
10642 | ||
10643 | int main() { | |
10644 | pthread_create() | |
10645 | ; return 0; } | |
10646 | EOF | |
10647 | if { (eval echo configure:10648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10648 | rm -rf conftest* | |
10649 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10650 | else | |
10651 | echo "configure: failed program was:" >&5 | |
10652 | cat conftest.$ac_ext >&5 | |
10653 | rm -rf conftest* | |
10654 | eval "ac_cv_lib_$ac_lib_var=no" | |
10655 | fi | |
10656 | rm -f conftest* | |
10657 | LIBS="$ac_save_LIBS" | |
10658 | ||
10659 | fi | |
10660 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10661 | echo "$ac_t""yes" 1>&6 | |
10662 | ||
10663 | THREADS_OBJ="threadpsx.lo" | |
10664 | THREADS_LINK="c_r" | |
10665 | ||
10666 | else | |
10667 | echo "$ac_t""no" 1>&6 | |
10668 | ||
10669 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` | |
10670 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 | |
10671 | echo "configure:10672: checking for sys/prctl.h" >&5 | |
10672 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
10673 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10674 | else | |
10675 | cat > conftest.$ac_ext <<EOF | |
10676 | #line 10677 "configure" | |
10677 | #include "confdefs.h" | |
10678 | #include <sys/prctl.h> | |
10679 | EOF | |
10680 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
10681 | { (eval echo configure:10682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
10682 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
10683 | if test -z "$ac_err"; then | |
10684 | rm -rf conftest* | |
10685 | eval "ac_cv_header_$ac_safe=yes" | |
10686 | else | |
10687 | echo "$ac_err" >&5 | |
10688 | echo "configure: failed program was:" >&5 | |
10689 | cat conftest.$ac_ext >&5 | |
10690 | rm -rf conftest* | |
10691 | eval "ac_cv_header_$ac_safe=no" | |
10692 | fi | |
10693 | rm -f conftest* | |
10694 | fi | |
10695 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10696 | echo "$ac_t""yes" 1>&6 | |
10697 | ||
10698 | THREADS_OBJ="threadsgi.lo" | |
10699 | ||
10700 | else | |
10701 | echo "$ac_t""no" 1>&6 | |
10702 | fi | |
10703 | ||
10704 | ||
10705 | fi | |
10706 | ||
10707 | ||
10708 | fi | |
10709 | ||
10710 | ||
10711 | if test -z "$THREADS_OBJ" ; then | |
10712 | wxUSE_THREADS=no | |
10713 | echo "configure: warning: No thread support on this system" 1>&2 | |
10714 | fi | |
10715 | fi | |
10716 | ||
10717 | if test "$wxUSE_THREADS" = "yes" ; then | |
10718 | for ac_func in thr_setconcurrency | |
10719 | do | |
10720 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
10721 | echo "configure:10722: checking for $ac_func" >&5 | |
10722 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
10723 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10724 | else | |
10725 | cat > conftest.$ac_ext <<EOF | |
10726 | #line 10727 "configure" | |
10727 | #include "confdefs.h" | |
10728 | /* System header to define __stub macros and hopefully few prototypes, | |
10729 | which can conflict with char $ac_func(); below. */ | |
10730 | #include <assert.h> | |
10731 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10732 | /* We use char because int might match the return type of a gcc2 | |
10733 | builtin and then its argument prototype would still apply. */ | |
10734 | char $ac_func(); | |
10735 | ||
10736 | int main() { | |
10737 | ||
10738 | /* The GNU C library defines this for functions which it implements | |
10739 | to always fail with ENOSYS. Some functions are actually named | |
10740 | something starting with __ and the normal name is an alias. */ | |
10741 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10742 | choke me | |
10743 | #else | |
10744 | $ac_func(); | |
10745 | #endif | |
10746 | ||
10747 | ; return 0; } | |
10748 | EOF | |
10749 | if { (eval echo configure:10750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10750 | rm -rf conftest* | |
10751 | eval "ac_cv_func_$ac_func=yes" | |
10752 | else | |
10753 | echo "configure: failed program was:" >&5 | |
10754 | cat conftest.$ac_ext >&5 | |
10755 | rm -rf conftest* | |
10756 | eval "ac_cv_func_$ac_func=no" | |
10757 | fi | |
10758 | rm -f conftest* | |
10759 | fi | |
10760 | ||
10761 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10762 | echo "$ac_t""yes" 1>&6 | |
10763 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10764 | cat >> confdefs.h <<EOF | |
10765 | #define $ac_tr_func 1 | |
10766 | EOF | |
10767 | ||
10768 | else | |
10769 | echo "$ac_t""no" 1>&6 | |
10770 | fi | |
10771 | done | |
10772 | ||
10773 | ||
10774 | ||
10775 | for ac_hdr in sched.h | |
10776 | do | |
10777 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10778 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
10779 | echo "configure:10780: checking for $ac_hdr" >&5 | |
10780 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
10781 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10782 | else | |
10783 | cat > conftest.$ac_ext <<EOF | |
10784 | #line 10785 "configure" | |
10785 | #include "confdefs.h" | |
10786 | #include <$ac_hdr> | |
10787 | EOF | |
10788 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
10789 | { (eval echo configure:10790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
10790 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
10791 | if test -z "$ac_err"; then | |
10792 | rm -rf conftest* | |
10793 | eval "ac_cv_header_$ac_safe=yes" | |
10794 | else | |
10795 | echo "$ac_err" >&5 | |
10796 | echo "configure: failed program was:" >&5 | |
10797 | cat conftest.$ac_ext >&5 | |
10798 | rm -rf conftest* | |
10799 | eval "ac_cv_header_$ac_safe=no" | |
10800 | fi | |
10801 | rm -f conftest* | |
10802 | fi | |
10803 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10804 | echo "$ac_t""yes" 1>&6 | |
10805 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10806 | cat >> confdefs.h <<EOF | |
10807 | #define $ac_tr_hdr 1 | |
10808 | EOF | |
10809 | ||
10810 | else | |
10811 | echo "$ac_t""no" 1>&6 | |
10812 | fi | |
10813 | done | |
10814 | ||
10815 | ||
10816 | echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6 | |
10817 | echo "configure:10818: checking for sched_yield in -l$THREADS_LINK" >&5 | |
10818 | ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'` | |
10819 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10820 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10821 | else | |
10822 | ac_save_LIBS="$LIBS" | |
10823 | LIBS="-l$THREADS_LINK $LIBS" | |
10824 | cat > conftest.$ac_ext <<EOF | |
10825 | #line 10826 "configure" | |
10826 | #include "confdefs.h" | |
10827 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10828 | /* We use char because int might match the return type of a gcc2 | |
10829 | builtin and then its argument prototype would still apply. */ | |
10830 | char sched_yield(); | |
10831 | ||
10832 | int main() { | |
10833 | sched_yield() | |
10834 | ; return 0; } | |
10835 | EOF | |
10836 | if { (eval echo configure:10837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10837 | rm -rf conftest* | |
10838 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10839 | else | |
10840 | echo "configure: failed program was:" >&5 | |
10841 | cat conftest.$ac_ext >&5 | |
10842 | rm -rf conftest* | |
10843 | eval "ac_cv_lib_$ac_lib_var=no" | |
10844 | fi | |
10845 | rm -f conftest* | |
10846 | LIBS="$ac_save_LIBS" | |
10847 | ||
10848 | fi | |
10849 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10850 | echo "$ac_t""yes" 1>&6 | |
10851 | cat >> confdefs.h <<\EOF | |
10852 | #define HAVE_SCHED_YIELD 1 | |
10853 | EOF | |
10854 | ||
10855 | else | |
10856 | echo "$ac_t""no" 1>&6 | |
10857 | echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6 | |
10858 | echo "configure:10859: checking for sched_yield in -l"posix4"" >&5 | |
10859 | ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'` | |
10860 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10861 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10862 | else | |
10863 | ac_save_LIBS="$LIBS" | |
10864 | LIBS="-l"posix4" $LIBS" | |
10865 | cat > conftest.$ac_ext <<EOF | |
10866 | #line 10867 "configure" | |
10867 | #include "confdefs.h" | |
10868 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10869 | /* We use char because int might match the return type of a gcc2 | |
10870 | builtin and then its argument prototype would still apply. */ | |
10871 | char sched_yield(); | |
10872 | ||
10873 | int main() { | |
10874 | sched_yield() | |
10875 | ; return 0; } | |
10876 | EOF | |
10877 | if { (eval echo configure:10878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10878 | rm -rf conftest* | |
10879 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10880 | else | |
10881 | echo "configure: failed program was:" >&5 | |
10882 | cat conftest.$ac_ext >&5 | |
10883 | rm -rf conftest* | |
10884 | eval "ac_cv_lib_$ac_lib_var=no" | |
10885 | fi | |
10886 | rm -f conftest* | |
10887 | LIBS="$ac_save_LIBS" | |
10888 | ||
10889 | fi | |
10890 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10891 | echo "$ac_t""yes" 1>&6 | |
10892 | cat >> confdefs.h <<\EOF | |
10893 | #define HAVE_SCHED_YIELD 1 | |
10894 | EOF | |
10895 | POSIX4_LINK="-lposix4" | |
10896 | else | |
10897 | echo "$ac_t""no" 1>&6 | |
10898 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
10899 | ||
10900 | fi | |
10901 | ||
10902 | ||
10903 | fi | |
10904 | ||
10905 | ||
10906 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6 | |
10907 | echo "configure:10908: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5 | |
10908 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` | |
10909 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10910 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10911 | else | |
10912 | ac_save_LIBS="$LIBS" | |
10913 | LIBS="-l$THREADS_LINK $LIBS" | |
10914 | cat > conftest.$ac_ext <<EOF | |
10915 | #line 10916 "configure" | |
10916 | #include "confdefs.h" | |
10917 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10918 | /* We use char because int might match the return type of a gcc2 | |
10919 | builtin and then its argument prototype would still apply. */ | |
10920 | char pthread_attr_getschedpolicy(); | |
10921 | ||
10922 | int main() { | |
10923 | pthread_attr_getschedpolicy() | |
10924 | ; return 0; } | |
10925 | EOF | |
10926 | if { (eval echo configure:10927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10927 | rm -rf conftest* | |
10928 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10929 | else | |
10930 | echo "configure: failed program was:" >&5 | |
10931 | cat conftest.$ac_ext >&5 | |
10932 | rm -rf conftest* | |
10933 | eval "ac_cv_lib_$ac_lib_var=no" | |
10934 | fi | |
10935 | rm -f conftest* | |
10936 | LIBS="$ac_save_LIBS" | |
10937 | ||
10938 | fi | |
10939 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10940 | echo "$ac_t""yes" 1>&6 | |
10941 | cat >> confdefs.h <<\EOF | |
10942 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
10943 | EOF | |
10944 | ||
10945 | else | |
10946 | echo "$ac_t""no" 1>&6 | |
10947 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4"""... $ac_c" 1>&6 | |
10948 | echo "configure:10949: checking for pthread_attr_getschedpolicy in -l"posix4"" >&5 | |
10949 | ac_lib_var=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` | |
10950 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10951 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10952 | else | |
10953 | ac_save_LIBS="$LIBS" | |
10954 | LIBS="-l"posix4" $LIBS" | |
10955 | cat > conftest.$ac_ext <<EOF | |
10956 | #line 10957 "configure" | |
10957 | #include "confdefs.h" | |
10958 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10959 | /* We use char because int might match the return type of a gcc2 | |
10960 | builtin and then its argument prototype would still apply. */ | |
10961 | char pthread_attr_getschedpolicy(); | |
10962 | ||
10963 | int main() { | |
10964 | pthread_attr_getschedpolicy() | |
10965 | ; return 0; } | |
10966 | EOF | |
10967 | if { (eval echo configure:10968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10968 | rm -rf conftest* | |
10969 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10970 | else | |
10971 | echo "configure: failed program was:" >&5 | |
10972 | cat conftest.$ac_ext >&5 | |
10973 | rm -rf conftest* | |
10974 | eval "ac_cv_lib_$ac_lib_var=no" | |
10975 | fi | |
10976 | rm -f conftest* | |
10977 | LIBS="$ac_save_LIBS" | |
10978 | ||
10979 | fi | |
10980 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10981 | echo "$ac_t""yes" 1>&6 | |
10982 | cat >> confdefs.h <<\EOF | |
10983 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
10984 | EOF | |
10985 | POSIX4_LINK="-lposix4" | |
10986 | else | |
10987 | echo "$ac_t""no" 1>&6 | |
10988 | echo "configure: warning: Setting thread priority will not work" 1>&2 | |
10989 | ||
10990 | fi | |
10991 | ||
10992 | ||
10993 | fi | |
10994 | ||
10995 | ||
10996 | echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6 | |
10997 | echo "configure:10998: checking for pthread_cancel in -l$THREADS_LINK" >&5 | |
10998 | ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'` | |
10999 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11000 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11001 | else | |
11002 | ac_save_LIBS="$LIBS" | |
11003 | LIBS="-l$THREADS_LINK $LIBS" | |
11004 | cat > conftest.$ac_ext <<EOF | |
11005 | #line 11006 "configure" | |
11006 | #include "confdefs.h" | |
11007 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11008 | /* We use char because int might match the return type of a gcc2 | |
11009 | builtin and then its argument prototype would still apply. */ | |
11010 | char pthread_cancel(); | |
11011 | ||
11012 | int main() { | |
11013 | pthread_cancel() | |
11014 | ; return 0; } | |
11015 | EOF | |
11016 | if { (eval echo configure:11017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11017 | rm -rf conftest* | |
11018 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11019 | else | |
11020 | echo "configure: failed program was:" >&5 | |
11021 | cat conftest.$ac_ext >&5 | |
11022 | rm -rf conftest* | |
11023 | eval "ac_cv_lib_$ac_lib_var=no" | |
11024 | fi | |
11025 | rm -f conftest* | |
11026 | LIBS="$ac_save_LIBS" | |
11027 | ||
11028 | fi | |
11029 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11030 | echo "$ac_t""yes" 1>&6 | |
11031 | cat >> confdefs.h <<\EOF | |
11032 | #define HAVE_PTHREAD_CANCEL 1 | |
11033 | EOF | |
11034 | ||
11035 | else | |
11036 | echo "$ac_t""no" 1>&6 | |
11037 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
11038 | fi | |
11039 | ||
11040 | ||
11041 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 | |
11042 | echo "configure:11043: checking for pthread_cleanup_push/pop" >&5 | |
11043 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then | |
11044 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11045 | else | |
11046 | ||
11047 | cat > conftest.$ac_ext <<EOF | |
11048 | #line 11049 "configure" | |
11049 | #include "confdefs.h" | |
11050 | #include <pthread.h> | |
11051 | int main() { | |
11052 | ||
11053 | pthread_cleanup_push(NULL, NULL); | |
11054 | pthread_cleanup_pop(0); | |
11055 | ||
11056 | ; return 0; } | |
11057 | EOF | |
11058 | if { (eval echo configure:11059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
11059 | rm -rf conftest* | |
11060 | ||
11061 | wx_cv_func_pthread_cleanup_push=yes | |
11062 | cat >> confdefs.h <<\EOF | |
11063 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 | |
11064 | EOF | |
11065 | ||
11066 | ||
11067 | else | |
11068 | echo "configure: failed program was:" >&5 | |
11069 | cat conftest.$ac_ext >&5 | |
11070 | rm -rf conftest* | |
11071 | ||
11072 | wx_cv_func_pthread_cleanup_push=no | |
11073 | ||
11074 | fi | |
11075 | rm -f conftest* | |
11076 | ||
11077 | fi | |
11078 | ||
11079 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
11080 | ||
11081 | THREADS_LINK="-l$THREADS_LINK" | |
11082 | fi | |
11083 | ||
11084 | fi | |
11085 | ||
11086 | if test "$wxUSE_THREADS" = "yes"; then | |
11087 | cat >> confdefs.h <<\EOF | |
11088 | #define wxUSE_THREADS 1 | |
11089 | EOF | |
11090 | ||
11091 | ||
11092 | CFLAGS="${CFLAGS} -D_REENTRANT" | |
11093 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" | |
11094 | ||
11095 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
11096 | else | |
11097 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
11098 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 | |
11099 | echo "configure:11100: checking if -D_REENTRANT is needed" >&5 | |
11100 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
11101 | CFLAGS="${CFLAGS} -D_REENTRANT" | |
11102 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" | |
11103 | echo "$ac_t""yes" 1>&6 | |
11104 | else | |
11105 | echo "$ac_t""no" 1>&6 | |
11106 | fi | |
11107 | fi | |
11108 | fi | |
11109 | ||
11110 | if test "$WXGTK13" = 1 ; then | |
11111 | cat >> confdefs.h <<EOF | |
11112 | #define __WXGTK13__ $WXGTK13 | |
11113 | EOF | |
11114 | ||
11115 | WXGTK12=1 | |
11116 | fi | |
11117 | ||
11118 | if test "$WXGTK12" = 1 ; then | |
11119 | cat >> confdefs.h <<EOF | |
11120 | #define __WXGTK12__ $WXGTK12 | |
11121 | EOF | |
11122 | ||
11123 | fi | |
11124 | ||
11125 | if test "$WXWINE" = 1 ; then | |
11126 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__" | |
11127 | fi | |
11128 | ||
11129 | if test "$wxUSE_CYGWIN" = 1 ; then | |
11130 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__" | |
11131 | fi | |
11132 | ||
11133 | WXDEBUG= | |
11134 | ||
11135 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
11136 | WXDEBUG="-g" | |
11137 | wxUSE_OPTIMISE=no | |
11138 | fi | |
11139 | ||
11140 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
11141 | wxUSE_DEBUG_INFO=yes | |
11142 | WXDEBUG="-ggdb" | |
11143 | fi | |
11144 | ||
11145 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
11146 | cat >> confdefs.h <<\EOF | |
11147 | #define WXDEBUG 1 | |
11148 | EOF | |
11149 | ||
11150 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
11151 | else | |
11152 | if test "$wxUSE_GTK" = 1 ; then | |
11153 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
11154 | fi | |
11155 | fi | |
11156 | ||
11157 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
11158 | cat >> confdefs.h <<\EOF | |
11159 | #define wxUSE_MEMORY_TRACING 1 | |
11160 | EOF | |
11161 | ||
11162 | cat >> confdefs.h <<\EOF | |
11163 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
11164 | EOF | |
11165 | ||
11166 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
11167 | fi | |
11168 | ||
11169 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
11170 | DMALLOC_LINK="-ldmalloc" | |
11171 | fi | |
11172 | ||
11173 | PROFILE= | |
11174 | if test "$wxUSE_PROFILE" = "yes" ; then | |
11175 | PROFILE="-pg" | |
11176 | fi | |
11177 | ||
11178 | DEP_INFO_FLAGS= | |
11179 | if test "$GCC" = yes ; then | |
11180 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
11181 | WXDEBUG_DEFINE="$WXDEBUG_DEFINE -fno-rtti" | |
11182 | fi | |
11183 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
11184 | WXDEBUG_DEFINE="$WXDEBUG_DEFINE -fno-exceptions" | |
11185 | fi | |
11186 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
11187 | CFLAGS="${CFLAGS} -fpermissive" | |
11188 | CXXFLAGS="${CXXFLAGS} -fpermissive" | |
11189 | fi | |
11190 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
11191 | DEP_INFO_FLAGS="-MMD" | |
11192 | fi | |
11193 | fi | |
11194 | ||
11195 | ||
11196 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` | |
11197 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
11198 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
11199 | OPTIMISE= | |
11200 | else | |
11201 | if test "$GCC" = yes ; then | |
11202 | OPTIMISE="-O2" | |
11203 | case "${host}" in | |
11204 | i586-*-*|i686-*-* ) | |
11205 | OPTIMISE="${OPTIMISE} " | |
11206 | ;; | |
11207 | esac | |
11208 | else | |
11209 | OPTIMISE="-O" | |
11210 | fi | |
11211 | fi | |
11212 | ||
11213 | ||
11214 | ZLIB_INCLUDE= | |
11215 | if test "$wxUSE_ZLIB" = "yes" ; then | |
11216 | cat >> confdefs.h <<\EOF | |
11217 | #define wxUSE_ZLIB 1 | |
11218 | EOF | |
11219 | ||
11220 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
11221 | fi | |
11222 | ||
11223 | PNG_INCLUDE= | |
11224 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
11225 | cat >> confdefs.h <<\EOF | |
11226 | #define wxUSE_LIBPNG 1 | |
11227 | EOF | |
11228 | ||
11229 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
11230 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
11231 | fi | |
11232 | ||
11233 | JPEG_INCLUDE= | |
11234 | if test "$wxUSE_LIBJPEG" = "yes" ; then | |
11235 | cat >> confdefs.h <<\EOF | |
11236 | #define wxUSE_LIBJPEG 1 | |
11237 | EOF | |
11238 | ||
11239 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
11240 | fi | |
11241 | ||
11242 | TIFF_INCLUDE= | |
11243 | if test "$wxUSE_LIBTIFF" = "yes" ; then | |
11244 | cat >> confdefs.h <<\EOF | |
11245 | #define wxUSE_LIBTIFF 1 | |
11246 | EOF | |
11247 | ||
11248 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
11249 | fi | |
11250 | ||
11251 | if test "$wxUSE_OPENGL" = "yes"; then | |
11252 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` | |
11253 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
11254 | echo "configure:11255: checking for GL/gl.h" >&5 | |
11255 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
11256 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11257 | else | |
11258 | cat > conftest.$ac_ext <<EOF | |
11259 | #line 11260 "configure" | |
11260 | #include "confdefs.h" | |
11261 | #include <GL/gl.h> | |
11262 | EOF | |
11263 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
11264 | { (eval echo configure:11265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
11265 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
11266 | if test -z "$ac_err"; then | |
11267 | rm -rf conftest* | |
11268 | eval "ac_cv_header_$ac_safe=yes" | |
11269 | else | |
11270 | echo "$ac_err" >&5 | |
11271 | echo "configure: failed program was:" >&5 | |
11272 | cat conftest.$ac_ext >&5 | |
11273 | rm -rf conftest* | |
11274 | eval "ac_cv_header_$ac_safe=no" | |
11275 | fi | |
11276 | rm -f conftest* | |
11277 | fi | |
11278 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11279 | echo "$ac_t""yes" 1>&6 | |
11280 | ||
11281 | echo $ac_n "checking for glInitNames in -lGL""... $ac_c" 1>&6 | |
11282 | echo "configure:11283: checking for glInitNames in -lGL" >&5 | |
11283 | ac_lib_var=`echo GL'_'glInitNames | sed 'y%./+-%__p_%'` | |
11284 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11285 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11286 | else | |
11287 | ac_save_LIBS="$LIBS" | |
11288 | LIBS="-lGL wxUSE_OPENGL=0 $LIBS" | |
11289 | cat > conftest.$ac_ext <<EOF | |
11290 | #line 11291 "configure" | |
11291 | #include "confdefs.h" | |
11292 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11293 | /* We use char because int might match the return type of a gcc2 | |
11294 | builtin and then its argument prototype would still apply. */ | |
11295 | char glInitNames(); | |
11296 | ||
11297 | int main() { | |
11298 | glInitNames() | |
11299 | ; return 0; } | |
11300 | EOF | |
11301 | if { (eval echo configure:11302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11302 | rm -rf conftest* | |
11303 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11304 | else | |
11305 | echo "configure: failed program was:" >&5 | |
11306 | cat conftest.$ac_ext >&5 | |
11307 | rm -rf conftest* | |
11308 | eval "ac_cv_lib_$ac_lib_var=no" | |
11309 | fi | |
11310 | rm -f conftest* | |
11311 | LIBS="$ac_save_LIBS" | |
11312 | ||
11313 | fi | |
11314 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11315 | echo "$ac_t""yes" 1>&6 | |
11316 | ||
11317 | OPENGL_LINK="-lGL" | |
11318 | cat >> confdefs.h <<\EOF | |
11319 | #define wxUSE_OPENGL 1 | |
11320 | EOF | |
11321 | ||
11322 | UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src" | |
11323 | ||
11324 | else | |
11325 | echo "$ac_t""no" 1>&6 | |
11326 | ||
11327 | echo $ac_n "checking for glInitNames in -lMesaGL""... $ac_c" 1>&6 | |
11328 | echo "configure:11329: checking for glInitNames in -lMesaGL" >&5 | |
11329 | ac_lib_var=`echo MesaGL'_'glInitNames | sed 'y%./+-%__p_%'` | |
11330 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11331 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11332 | else | |
11333 | ac_save_LIBS="$LIBS" | |
11334 | LIBS="-lMesaGL $LIBS" | |
11335 | cat > conftest.$ac_ext <<EOF | |
11336 | #line 11337 "configure" | |
11337 | #include "confdefs.h" | |
11338 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11339 | /* We use char because int might match the return type of a gcc2 | |
11340 | builtin and then its argument prototype would still apply. */ | |
11341 | char glInitNames(); | |
11342 | ||
11343 | int main() { | |
11344 | glInitNames() | |
11345 | ; return 0; } | |
11346 | EOF | |
11347 | if { (eval echo configure:11348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11348 | rm -rf conftest* | |
11349 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11350 | else | |
11351 | echo "configure: failed program was:" >&5 | |
11352 | cat conftest.$ac_ext >&5 | |
11353 | rm -rf conftest* | |
11354 | eval "ac_cv_lib_$ac_lib_var=no" | |
11355 | fi | |
11356 | rm -f conftest* | |
11357 | LIBS="$ac_save_LIBS" | |
11358 | ||
11359 | fi | |
11360 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11361 | echo "$ac_t""yes" 1>&6 | |
11362 | ||
11363 | OPENGL_LINK="-lMesaGL" | |
11364 | cat >> confdefs.h <<\EOF | |
11365 | #define wxUSE_OPENGL 1 | |
11366 | EOF | |
11367 | ||
11368 | UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src" | |
11369 | ||
11370 | else | |
11371 | echo "$ac_t""no" 1>&6 | |
11372 | wxUSE_OPENGL=0 | |
11373 | fi | |
11374 | ||
11375 | ||
11376 | fi | |
11377 | ||
11378 | ||
11379 | else | |
11380 | echo "$ac_t""no" 1>&6 | |
11381 | wxUSE_OPENGL=0 | |
11382 | fi | |
11383 | ||
11384 | fi | |
11385 | ||
11386 | ||
11387 | if test "$wxUSE_GUI" = "yes"; then | |
11388 | cat >> confdefs.h <<\EOF | |
11389 | #define wxUSE_GUI 1 | |
11390 | EOF | |
11391 | ||
11392 | ||
11393 | else | |
11394 | cat >> confdefs.h <<\EOF | |
11395 | #define wxUSE_NOGUI 1 | |
11396 | EOF | |
11397 | ||
11398 | fi | |
11399 | ||
11400 | ||
11401 | if test "$wxUSE_UNIX" = "yes"; then | |
11402 | cat >> confdefs.h <<\EOF | |
11403 | #define wxUSE_UNIX 1 | |
11404 | EOF | |
11405 | ||
11406 | fi | |
11407 | ||
11408 | ||
11409 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
11410 | cat >> confdefs.h <<\EOF | |
11411 | #define wxUSE_APPLE_IEEE 1 | |
11412 | EOF | |
11413 | ||
11414 | fi | |
11415 | ||
11416 | if test "$wxUSE_WAVE" = "yes"; then | |
11417 | cat >> confdefs.h <<\EOF | |
11418 | #define wxUSE_WAVE 1 | |
11419 | EOF | |
11420 | ||
11421 | fi | |
11422 | ||
11423 | if test "$wxUSE_FILE" = "yes"; then | |
11424 | cat >> confdefs.h <<\EOF | |
11425 | #define wxUSE_FILE 1 | |
11426 | EOF | |
11427 | ||
11428 | fi | |
11429 | ||
11430 | if test "$wxUSE_FS_INET" = "yes"; then | |
11431 | cat >> confdefs.h <<\EOF | |
11432 | #define wxUSE_FS_INET 1 | |
11433 | EOF | |
11434 | ||
11435 | fi | |
11436 | ||
11437 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
11438 | cat >> confdefs.h <<\EOF | |
11439 | #define wxUSE_FS_ZIP 1 | |
11440 | EOF | |
11441 | ||
11442 | fi | |
11443 | ||
11444 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
11445 | cat >> confdefs.h <<\EOF | |
11446 | #define wxUSE_ZIPSTREAM 1 | |
11447 | EOF | |
11448 | ||
11449 | fi | |
11450 | ||
11451 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
11452 | cat >> confdefs.h <<\EOF | |
11453 | #define wxUSE_BUSYINFO 1 | |
11454 | EOF | |
11455 | ||
11456 | fi | |
11457 | ||
11458 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
11459 | cat >> confdefs.h <<\EOF | |
11460 | #define wxUSE_STD_IOSTREAM 1 | |
11461 | EOF | |
11462 | ||
11463 | fi | |
11464 | ||
11465 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
11466 | if test "$wxUSE_FILE" != "yes"; then | |
11467 | echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2 | |
11468 | else | |
11469 | cat >> confdefs.h <<\EOF | |
11470 | #define wxUSE_TEXTFILE 1 | |
11471 | EOF | |
11472 | ||
11473 | fi | |
11474 | fi | |
11475 | ||
11476 | if test "$wxUSE_CONFIG" = "yes" ; then | |
11477 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
11478 | echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2 | |
11479 | else | |
11480 | cat >> confdefs.h <<\EOF | |
11481 | #define wxUSE_CONFIG 1 | |
11482 | EOF | |
11483 | ||
11484 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
11485 | fi | |
11486 | fi | |
11487 | ||
11488 | if test "$wxUSE_INTL" = "yes" ; then | |
11489 | if test "$wxUSE_FILE" != "yes"; then | |
11490 | echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2 | |
11491 | else | |
11492 | cat >> confdefs.h <<\EOF | |
11493 | #define wxUSE_INTL 1 | |
11494 | EOF | |
11495 | ||
11496 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
11497 | fi | |
11498 | fi | |
11499 | ||
11500 | if test "$wxUSE_LOG" = "yes"; then | |
11501 | cat >> confdefs.h <<\EOF | |
11502 | #define wxUSE_LOG 1 | |
11503 | EOF | |
11504 | ||
11505 | fi | |
11506 | ||
11507 | if test "$wxUSE_LONGLONG" = "yes"; then | |
11508 | cat >> confdefs.h <<\EOF | |
11509 | #define wxUSE_LONGLONG 1 | |
11510 | EOF | |
11511 | ||
11512 | fi | |
11513 | ||
11514 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then | |
11515 | cat >> confdefs.h <<\EOF | |
11516 | #define wxUSE_DIALUP_MANAGER 1 | |
11517 | EOF | |
11518 | ||
11519 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS nettest" | |
11520 | fi | |
11521 | ||
11522 | if test "$wxUSE_STREAMS" = "yes" ; then | |
11523 | cat >> confdefs.h <<\EOF | |
11524 | #define wxUSE_STREAMS 1 | |
11525 | EOF | |
11526 | ||
11527 | fi | |
11528 | ||
11529 | ||
11530 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
11531 | for ac_func in strptime | |
11532 | do | |
11533 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
11534 | echo "configure:11535: checking for $ac_func" >&5 | |
11535 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
11536 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11537 | else | |
11538 | cat > conftest.$ac_ext <<EOF | |
11539 | #line 11540 "configure" | |
11540 | #include "confdefs.h" | |
11541 | /* System header to define __stub macros and hopefully few prototypes, | |
11542 | which can conflict with char $ac_func(); below. */ | |
11543 | #include <assert.h> | |
11544 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11545 | /* We use char because int might match the return type of a gcc2 | |
11546 | builtin and then its argument prototype would still apply. */ | |
11547 | char $ac_func(); | |
11548 | ||
11549 | int main() { | |
11550 | ||
11551 | /* The GNU C library defines this for functions which it implements | |
11552 | to always fail with ENOSYS. Some functions are actually named | |
11553 | something starting with __ and the normal name is an alias. */ | |
11554 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11555 | choke me | |
11556 | #else | |
11557 | $ac_func(); | |
11558 | #endif | |
11559 | ||
11560 | ; return 0; } | |
11561 | EOF | |
11562 | if { (eval echo configure:11563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11563 | rm -rf conftest* | |
11564 | eval "ac_cv_func_$ac_func=yes" | |
11565 | else | |
11566 | echo "configure: failed program was:" >&5 | |
11567 | cat conftest.$ac_ext >&5 | |
11568 | rm -rf conftest* | |
11569 | eval "ac_cv_func_$ac_func=no" | |
11570 | fi | |
11571 | rm -f conftest* | |
11572 | fi | |
11573 | ||
11574 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11575 | echo "$ac_t""yes" 1>&6 | |
11576 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11577 | cat >> confdefs.h <<EOF | |
11578 | #define $ac_tr_func 1 | |
11579 | EOF | |
11580 | ||
11581 | else | |
11582 | echo "$ac_t""no" 1>&6 | |
11583 | fi | |
11584 | done | |
11585 | ||
11586 | ||
11587 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 | |
11588 | echo "configure:11589: checking for timezone variable in <time.h>" >&5 | |
11589 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then | |
11590 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11591 | else | |
11592 | ||
11593 | cat > conftest.$ac_ext <<EOF | |
11594 | #line 11595 "configure" | |
11595 | #include "confdefs.h" | |
11596 | ||
11597 | #include <time.h> | |
11598 | ||
11599 | int main() { | |
11600 | ||
11601 | int tz; | |
11602 | tz = __timezone; | |
11603 | ||
11604 | ; return 0; } | |
11605 | EOF | |
11606 | if { (eval echo configure:11607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
11607 | rm -rf conftest* | |
11608 | ||
11609 | wx_cv_var_timezone=__timezone | |
11610 | ||
11611 | else | |
11612 | echo "configure: failed program was:" >&5 | |
11613 | cat conftest.$ac_ext >&5 | |
11614 | rm -rf conftest* | |
11615 | ||
11616 | cat > conftest.$ac_ext <<EOF | |
11617 | #line 11618 "configure" | |
11618 | #include "confdefs.h" | |
11619 | ||
11620 | #include <time.h> | |
11621 | ||
11622 | int main() { | |
11623 | ||
11624 | int tz; | |
11625 | tz = _timezone; | |
11626 | ||
11627 | ; return 0; } | |
11628 | EOF | |
11629 | if { (eval echo configure:11630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
11630 | rm -rf conftest* | |
11631 | ||
11632 | wx_cv_var_timezone=_timezone | |
11633 | ||
11634 | else | |
11635 | echo "configure: failed program was:" >&5 | |
11636 | cat conftest.$ac_ext >&5 | |
11637 | rm -rf conftest* | |
11638 | ||
11639 | cat > conftest.$ac_ext <<EOF | |
11640 | #line 11641 "configure" | |
11641 | #include "confdefs.h" | |
11642 | ||
11643 | #include <time.h> | |
11644 | ||
11645 | int main() { | |
11646 | ||
11647 | int tz; | |
11648 | tz = timezone; | |
11649 | ||
11650 | ; return 0; } | |
11651 | EOF | |
11652 | if { (eval echo configure:11653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
11653 | rm -rf conftest* | |
11654 | ||
11655 | wx_cv_var_timezone=timezone | |
11656 | ||
11657 | else | |
11658 | echo "configure: failed program was:" >&5 | |
11659 | cat conftest.$ac_ext >&5 | |
11660 | rm -rf conftest* | |
11661 | { echo "configure: error: no timezone variable" 1>&2; exit 1; } | |
11662 | ||
11663 | fi | |
11664 | rm -f conftest* | |
11665 | ||
11666 | ||
11667 | fi | |
11668 | rm -f conftest* | |
11669 | ||
11670 | ||
11671 | fi | |
11672 | rm -f conftest* | |
11673 | ||
11674 | ||
11675 | fi | |
11676 | ||
11677 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 | |
11678 | ||
11679 | cat >> confdefs.h <<EOF | |
11680 | #define WX_TIMEZONE $wx_cv_var_timezone | |
11681 | EOF | |
11682 | ||
11683 | ||
11684 | for ac_func in localtime gettimeofday ftime | |
11685 | do | |
11686 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
11687 | echo "configure:11688: checking for $ac_func" >&5 | |
11688 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
11689 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11690 | else | |
11691 | cat > conftest.$ac_ext <<EOF | |
11692 | #line 11693 "configure" | |
11693 | #include "confdefs.h" | |
11694 | /* System header to define __stub macros and hopefully few prototypes, | |
11695 | which can conflict with char $ac_func(); below. */ | |
11696 | #include <assert.h> | |
11697 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11698 | /* We use char because int might match the return type of a gcc2 | |
11699 | builtin and then its argument prototype would still apply. */ | |
11700 | char $ac_func(); | |
11701 | ||
11702 | int main() { | |
11703 | ||
11704 | /* The GNU C library defines this for functions which it implements | |
11705 | to always fail with ENOSYS. Some functions are actually named | |
11706 | something starting with __ and the normal name is an alias. */ | |
11707 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11708 | choke me | |
11709 | #else | |
11710 | $ac_func(); | |
11711 | #endif | |
11712 | ||
11713 | ; return 0; } | |
11714 | EOF | |
11715 | if { (eval echo configure:11716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11716 | rm -rf conftest* | |
11717 | eval "ac_cv_func_$ac_func=yes" | |
11718 | else | |
11719 | echo "configure: failed program was:" >&5 | |
11720 | cat conftest.$ac_ext >&5 | |
11721 | rm -rf conftest* | |
11722 | eval "ac_cv_func_$ac_func=no" | |
11723 | fi | |
11724 | rm -f conftest* | |
11725 | fi | |
11726 | ||
11727 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11728 | echo "$ac_t""yes" 1>&6 | |
11729 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11730 | cat >> confdefs.h <<EOF | |
11731 | #define $ac_tr_func 1 | |
11732 | EOF | |
11733 | break | |
11734 | else | |
11735 | echo "$ac_t""no" 1>&6 | |
11736 | fi | |
11737 | done | |
11738 | ||
11739 | ||
11740 | if test "$ac_cv_func_localtime" = "yes"; then | |
11741 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
11742 | echo "configure:11743: checking for tm_gmtoff in struct tm" >&5 | |
11743 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then | |
11744 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11745 | else | |
11746 | ||
11747 | cat > conftest.$ac_ext <<EOF | |
11748 | #line 11749 "configure" | |
11749 | #include "confdefs.h" | |
11750 | ||
11751 | #include <time.h> | |
11752 | ||
11753 | int main() { | |
11754 | ||
11755 | struct tm tm; | |
11756 | tm.tm_gmtoff++; | |
11757 | ||
11758 | ; return 0; } | |
11759 | EOF | |
11760 | if { (eval echo configure:11761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
11761 | rm -rf conftest* | |
11762 | ||
11763 | wx_cv_struct_tm_has_gmtoff=yes | |
11764 | cat >> confdefs.h <<\EOF | |
11765 | #define WX_GMTOFF_IN_TM 1 | |
11766 | EOF | |
11767 | ||
11768 | ||
11769 | else | |
11770 | echo "configure: failed program was:" >&5 | |
11771 | cat conftest.$ac_ext >&5 | |
11772 | rm -rf conftest* | |
11773 | wx_cv_struct_tm_has_gmtoff=no | |
11774 | ||
11775 | fi | |
11776 | rm -f conftest* | |
11777 | ||
11778 | fi | |
11779 | ||
11780 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
11781 | elif test "$ac_cv_func_gettimeofday" = "yes"; then | |
11782 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 | |
11783 | echo "configure:11784: checking whether gettimeofday takes two arguments" >&5 | |
11784 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then | |
11785 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11786 | else | |
11787 | ||
11788 | ||
11789 | ac_ext=C | |
11790 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11791 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11792 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11793 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11794 | cross_compiling=$ac_cv_prog_cxx_cross | |
11795 | ||
11796 | ||
11797 | cat > conftest.$ac_ext <<EOF | |
11798 | #line 11799 "configure" | |
11799 | #include "confdefs.h" | |
11800 | ||
11801 | #include <sys/time.h> | |
11802 | #include <unistd.h> | |
11803 | ||
11804 | int main() { | |
11805 | ||
11806 | struct timeval tv; | |
11807 | struct timezone tz; | |
11808 | gettimeofday(&tv, &tz); | |
11809 | ||
11810 | ; return 0; } | |
11811 | EOF | |
11812 | if { (eval echo configure:11813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
11813 | rm -rf conftest* | |
11814 | wx_cv_func_gettimeofday_has_2_args=yes | |
11815 | else | |
11816 | echo "configure: failed program was:" >&5 | |
11817 | cat conftest.$ac_ext >&5 | |
11818 | rm -rf conftest* | |
11819 | cat > conftest.$ac_ext <<EOF | |
11820 | #line 11821 "configure" | |
11821 | #include "confdefs.h" | |
11822 | ||
11823 | #include <sys/time.h> | |
11824 | #include <unistd.h> | |
11825 | ||
11826 | int main() { | |
11827 | ||
11828 | struct timeval tv; | |
11829 | gettimeofday(&tv); | |
11830 | ||
11831 | ; return 0; } | |
11832 | EOF | |
11833 | if { (eval echo configure:11834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
11834 | rm -rf conftest* | |
11835 | wx_cv_func_gettimeofday_has_2_args=no | |
11836 | else | |
11837 | echo "configure: failed program was:" >&5 | |
11838 | cat conftest.$ac_ext >&5 | |
11839 | rm -rf conftest* | |
11840 | wx_cv_func_gettimeofday_has_2_args=unknown | |
11841 | ||
11842 | fi | |
11843 | rm -f conftest* | |
11844 | ||
11845 | fi | |
11846 | rm -f conftest* | |
11847 | ac_ext=c | |
11848 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11849 | ac_cpp='$CPP $CPPFLAGS' | |
11850 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11851 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11852 | cross_compiling=$ac_cv_prog_cc_cross | |
11853 | ||
11854 | ||
11855 | fi | |
11856 | ||
11857 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
11858 | ||
11859 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
11860 | cat >> confdefs.h <<\EOF | |
11861 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
11862 | EOF | |
11863 | ||
11864 | fi | |
11865 | fi | |
11866 | ||
11867 | cat >> confdefs.h <<\EOF | |
11868 | #define wxUSE_TIMEDATE 1 | |
11869 | EOF | |
11870 | ||
11871 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
11872 | fi | |
11873 | ||
11874 | ||
11875 | if test "$wxUSE_SOCKETS" = "yes"; then | |
11876 | echo $ac_n "checking for socket""... $ac_c" 1>&6 | |
11877 | echo "configure:11878: checking for socket" >&5 | |
11878 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then | |
11879 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11880 | else | |
11881 | cat > conftest.$ac_ext <<EOF | |
11882 | #line 11883 "configure" | |
11883 | #include "confdefs.h" | |
11884 | /* System header to define __stub macros and hopefully few prototypes, | |
11885 | which can conflict with char socket(); below. */ | |
11886 | #include <assert.h> | |
11887 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11888 | /* We use char because int might match the return type of a gcc2 | |
11889 | builtin and then its argument prototype would still apply. */ | |
11890 | char socket(); | |
11891 | ||
11892 | int main() { | |
11893 | ||
11894 | /* The GNU C library defines this for functions which it implements | |
11895 | to always fail with ENOSYS. Some functions are actually named | |
11896 | something starting with __ and the normal name is an alias. */ | |
11897 | #if defined (__stub_socket) || defined (__stub___socket) | |
11898 | choke me | |
11899 | #else | |
11900 | socket(); | |
11901 | #endif | |
11902 | ||
11903 | ; return 0; } | |
11904 | EOF | |
11905 | if { (eval echo configure:11906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11906 | rm -rf conftest* | |
11907 | eval "ac_cv_func_socket=yes" | |
11908 | else | |
11909 | echo "configure: failed program was:" >&5 | |
11910 | cat conftest.$ac_ext >&5 | |
11911 | rm -rf conftest* | |
11912 | eval "ac_cv_func_socket=no" | |
11913 | fi | |
11914 | rm -f conftest* | |
11915 | fi | |
11916 | ||
11917 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
11918 | echo "$ac_t""yes" 1>&6 | |
11919 | : | |
11920 | else | |
11921 | echo "$ac_t""no" 1>&6 | |
11922 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
11923 | echo "configure:11924: checking for socket in -lsocket" >&5 | |
11924 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` | |
11925 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11926 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11927 | else | |
11928 | ac_save_LIBS="$LIBS" | |
11929 | LIBS="-lsocket $LIBS" | |
11930 | cat > conftest.$ac_ext <<EOF | |
11931 | #line 11932 "configure" | |
11932 | #include "confdefs.h" | |
11933 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11934 | /* We use char because int might match the return type of a gcc2 | |
11935 | builtin and then its argument prototype would still apply. */ | |
11936 | char socket(); | |
11937 | ||
11938 | int main() { | |
11939 | socket() | |
11940 | ; return 0; } | |
11941 | EOF | |
11942 | if { (eval echo configure:11943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11943 | rm -rf conftest* | |
11944 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11945 | else | |
11946 | echo "configure: failed program was:" >&5 | |
11947 | cat conftest.$ac_ext >&5 | |
11948 | rm -rf conftest* | |
11949 | eval "ac_cv_lib_$ac_lib_var=no" | |
11950 | fi | |
11951 | rm -f conftest* | |
11952 | LIBS="$ac_save_LIBS" | |
11953 | ||
11954 | fi | |
11955 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11956 | echo "$ac_t""yes" 1>&6 | |
11957 | INET_LINK="$INET_LINK -lsocket" | |
11958 | else | |
11959 | echo "$ac_t""no" 1>&6 | |
11960 | ||
11961 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 | |
11962 | wxUSE_SOCKETS=no | |
11963 | ||
11964 | ||
11965 | fi | |
11966 | ||
11967 | ||
11968 | fi | |
11969 | ||
11970 | fi | |
11971 | ||
11972 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
11973 | ||
11974 | ac_ext=C | |
11975 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11976 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11977 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11978 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11979 | cross_compiling=$ac_cv_prog_cxx_cross | |
11980 | ||
11981 | echo $ac_n "checking the type of the third argument of getsockname""... $ac_c" 1>&6 | |
11982 | echo "configure:11983: checking the type of the third argument of getsockname" >&5 | |
11983 | cat > conftest.$ac_ext <<EOF | |
11984 | #line 11985 "configure" | |
11985 | #include "confdefs.h" | |
11986 | #include <sys/socket.h> | |
11987 | int main() { | |
11988 | socklen_t len; getsockname(0, 0, &len); | |
11989 | ; return 0; } | |
11990 | EOF | |
11991 | if { (eval echo configure:11992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
11992 | rm -rf conftest* | |
11993 | cat >> confdefs.h <<\EOF | |
11994 | #define SOCKLEN_T socklen_t | |
11995 | EOF | |
11996 | echo "$ac_t""socklen_t" 1>&6 | |
11997 | else | |
11998 | echo "configure: failed program was:" >&5 | |
11999 | cat conftest.$ac_ext >&5 | |
12000 | rm -rf conftest* | |
12001 | cat > conftest.$ac_ext <<EOF | |
12002 | #line 12003 "configure" | |
12003 | #include "confdefs.h" | |
12004 | #include <sys/socket.h> | |
12005 | int main() { | |
12006 | size_t len; getsockname(0, 0, &len); | |
12007 | ; return 0; } | |
12008 | EOF | |
12009 | if { (eval echo configure:12010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
12010 | rm -rf conftest* | |
12011 | cat >> confdefs.h <<\EOF | |
12012 | #define SOCKLEN_T size_t | |
12013 | EOF | |
12014 | echo "$ac_t""size_t" 1>&6 | |
12015 | else | |
12016 | echo "configure: failed program was:" >&5 | |
12017 | cat conftest.$ac_ext >&5 | |
12018 | rm -rf conftest* | |
12019 | cat > conftest.$ac_ext <<EOF | |
12020 | #line 12021 "configure" | |
12021 | #include "confdefs.h" | |
12022 | #include <sys/socket.h> | |
12023 | int main() { | |
12024 | int len; getsockname(0, 0, &len); | |
12025 | ; return 0; } | |
12026 | EOF | |
12027 | if { (eval echo configure:12028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
12028 | rm -rf conftest* | |
12029 | cat >> confdefs.h <<\EOF | |
12030 | #define SOCKLEN_T int | |
12031 | EOF | |
12032 | echo "$ac_t""int" 1>&6 | |
12033 | else | |
12034 | echo "configure: failed program was:" >&5 | |
12035 | cat conftest.$ac_ext >&5 | |
12036 | rm -rf conftest* | |
12037 | echo "$ac_t""unknown" 1>&6 | |
12038 | ||
12039 | fi | |
12040 | rm -f conftest* | |
12041 | ||
12042 | fi | |
12043 | rm -f conftest* | |
12044 | ||
12045 | fi | |
12046 | rm -f conftest* | |
12047 | ac_ext=c | |
12048 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
12049 | ac_cpp='$CPP $CPPFLAGS' | |
12050 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
12051 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12052 | cross_compiling=$ac_cv_prog_cc_cross | |
12053 | ||
12054 | ||
12055 | cat >> confdefs.h <<\EOF | |
12056 | #define wxUSE_SOCKETS 1 | |
12057 | EOF | |
12058 | ||
12059 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wxsocket" | |
12060 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol" | |
12061 | fi | |
12062 | ||
12063 | ||
12064 | if test "$wxUSE_JOYSTICK" = 1; then | |
12065 | for ac_hdr in linux/joystick.h | |
12066 | do | |
12067 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
12068 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
12069 | echo "configure:12070: checking for $ac_hdr" >&5 | |
12070 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
12071 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12072 | else | |
12073 | cat > conftest.$ac_ext <<EOF | |
12074 | #line 12075 "configure" | |
12075 | #include "confdefs.h" | |
12076 | #include <$ac_hdr> | |
12077 | EOF | |
12078 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
12079 | { (eval echo configure:12080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
12080 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
12081 | if test -z "$ac_err"; then | |
12082 | rm -rf conftest* | |
12083 | eval "ac_cv_header_$ac_safe=yes" | |
12084 | else | |
12085 | echo "$ac_err" >&5 | |
12086 | echo "configure: failed program was:" >&5 | |
12087 | cat conftest.$ac_ext >&5 | |
12088 | rm -rf conftest* | |
12089 | eval "ac_cv_header_$ac_safe=no" | |
12090 | fi | |
12091 | rm -f conftest* | |
12092 | fi | |
12093 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12094 | echo "$ac_t""yes" 1>&6 | |
12095 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12096 | cat >> confdefs.h <<EOF | |
12097 | #define $ac_tr_hdr 1 | |
12098 | EOF | |
12099 | ||
12100 | else | |
12101 | echo "$ac_t""no" 1>&6 | |
12102 | fi | |
12103 | done | |
12104 | ||
12105 | if test "$ac_cv_header_linux_joystick_h" = "yes"; then | |
12106 | cat >> confdefs.h <<\EOF | |
12107 | #define wxUSE_JOYSTICK 1 | |
12108 | EOF | |
12109 | ||
12110 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
12111 | fi | |
12112 | fi | |
12113 | ||
12114 | ||
12115 | HAVE_DL_FUNCS=0 | |
12116 | HAVE_SHL_FUNCS=0 | |
12117 | if test "$wxUSE_DYNLIB_CLASS" = "yes"; then | |
12118 | for ac_func in dlopen | |
12119 | do | |
12120 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
12121 | echo "configure:12122: checking for $ac_func" >&5 | |
12122 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
12123 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12124 | else | |
12125 | cat > conftest.$ac_ext <<EOF | |
12126 | #line 12127 "configure" | |
12127 | #include "confdefs.h" | |
12128 | /* System header to define __stub macros and hopefully few prototypes, | |
12129 | which can conflict with char $ac_func(); below. */ | |
12130 | #include <assert.h> | |
12131 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12132 | /* We use char because int might match the return type of a gcc2 | |
12133 | builtin and then its argument prototype would still apply. */ | |
12134 | char $ac_func(); | |
12135 | ||
12136 | int main() { | |
12137 | ||
12138 | /* The GNU C library defines this for functions which it implements | |
12139 | to always fail with ENOSYS. Some functions are actually named | |
12140 | something starting with __ and the normal name is an alias. */ | |
12141 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12142 | choke me | |
12143 | #else | |
12144 | $ac_func(); | |
12145 | #endif | |
12146 | ||
12147 | ; return 0; } | |
12148 | EOF | |
12149 | if { (eval echo configure:12150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12150 | rm -rf conftest* | |
12151 | eval "ac_cv_func_$ac_func=yes" | |
12152 | else | |
12153 | echo "configure: failed program was:" >&5 | |
12154 | cat conftest.$ac_ext >&5 | |
12155 | rm -rf conftest* | |
12156 | eval "ac_cv_func_$ac_func=no" | |
12157 | fi | |
12158 | rm -f conftest* | |
12159 | fi | |
12160 | ||
12161 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12162 | echo "$ac_t""yes" 1>&6 | |
12163 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12164 | cat >> confdefs.h <<EOF | |
12165 | #define $ac_tr_func 1 | |
12166 | EOF | |
12167 | ||
12168 | cat >> confdefs.h <<\EOF | |
12169 | #define HAVE_DLOPEN 1 | |
12170 | EOF | |
12171 | ||
12172 | HAVE_DL_FUNCS=1 | |
12173 | ||
12174 | else | |
12175 | echo "$ac_t""no" 1>&6 | |
12176 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
12177 | echo "configure:12178: checking for dlopen in -ldl" >&5 | |
12178 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` | |
12179 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12180 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12181 | else | |
12182 | ac_save_LIBS="$LIBS" | |
12183 | LIBS="-ldl $LIBS" | |
12184 | cat > conftest.$ac_ext <<EOF | |
12185 | #line 12186 "configure" | |
12186 | #include "confdefs.h" | |
12187 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12188 | /* We use char because int might match the return type of a gcc2 | |
12189 | builtin and then its argument prototype would still apply. */ | |
12190 | char dlopen(); | |
12191 | ||
12192 | int main() { | |
12193 | dlopen() | |
12194 | ; return 0; } | |
12195 | EOF | |
12196 | if { (eval echo configure:12197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12197 | rm -rf conftest* | |
12198 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12199 | else | |
12200 | echo "configure: failed program was:" >&5 | |
12201 | cat conftest.$ac_ext >&5 | |
12202 | rm -rf conftest* | |
12203 | eval "ac_cv_lib_$ac_lib_var=no" | |
12204 | fi | |
12205 | rm -f conftest* | |
12206 | LIBS="$ac_save_LIBS" | |
12207 | ||
12208 | fi | |
12209 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12210 | echo "$ac_t""yes" 1>&6 | |
12211 | ||
12212 | cat >> confdefs.h <<\EOF | |
12213 | #define HAVE_DLOPEN 1 | |
12214 | EOF | |
12215 | ||
12216 | HAVE_DL_FUNCS=1 | |
12217 | LIBS="$LIBS -ldl" | |
12218 | ||
12219 | else | |
12220 | echo "$ac_t""no" 1>&6 | |
12221 | ||
12222 | for ac_func in shl_load | |
12223 | do | |
12224 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
12225 | echo "configure:12226: checking for $ac_func" >&5 | |
12226 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
12227 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12228 | else | |
12229 | cat > conftest.$ac_ext <<EOF | |
12230 | #line 12231 "configure" | |
12231 | #include "confdefs.h" | |
12232 | /* System header to define __stub macros and hopefully few prototypes, | |
12233 | which can conflict with char $ac_func(); below. */ | |
12234 | #include <assert.h> | |
12235 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12236 | /* We use char because int might match the return type of a gcc2 | |
12237 | builtin and then its argument prototype would still apply. */ | |
12238 | char $ac_func(); | |
12239 | ||
12240 | int main() { | |
12241 | ||
12242 | /* The GNU C library defines this for functions which it implements | |
12243 | to always fail with ENOSYS. Some functions are actually named | |
12244 | something starting with __ and the normal name is an alias. */ | |
12245 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12246 | choke me | |
12247 | #else | |
12248 | $ac_func(); | |
12249 | #endif | |
12250 | ||
12251 | ; return 0; } | |
12252 | EOF | |
12253 | if { (eval echo configure:12254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
12254 | rm -rf conftest* | |
12255 | eval "ac_cv_func_$ac_func=yes" | |
12256 | else | |
12257 | echo "configure: failed program was:" >&5 | |
12258 | cat conftest.$ac_ext >&5 | |
12259 | rm -rf conftest* | |
12260 | eval "ac_cv_func_$ac_func=no" | |
12261 | fi | |
12262 | rm -f conftest* | |
12263 | fi | |
12264 | ||
12265 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12266 | echo "$ac_t""yes" 1>&6 | |
12267 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12268 | cat >> confdefs.h <<EOF | |
12269 | #define $ac_tr_func 1 | |
12270 | EOF | |
12271 | ||
12272 | cat >> confdefs.h <<\EOF | |
12273 | #define HAVE_SHL_LOAD 1 | |
12274 | EOF | |
12275 | ||
12276 | HAVE_SHL_FUNCS=1 | |
12277 | ||
12278 | else | |
12279 | echo "$ac_t""no" 1>&6 | |
12280 | fi | |
12281 | done | |
12282 | ||
12283 | ||
12284 | fi | |
12285 | ||
12286 | ||
12287 | fi | |
12288 | done | |
12289 | ||
12290 | ||
12291 | if test "$HAVE_DL_FUNCS" = 0; then | |
12292 | if test "$HAVE_SHL_FUNCS" = 0; then | |
12293 | if test "$USE_UNIX" = 1; then | |
12294 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 | |
12295 | wxUSE_DYNLIB_CLASS=no | |
12296 | else | |
12297 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 | |
12298 | fi | |
12299 | fi | |
12300 | fi | |
12301 | fi | |
12302 | ||
12303 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
12304 | cat >> confdefs.h <<\EOF | |
12305 | #define wxUSE_DYNLIB_CLASS 1 | |
12306 | EOF | |
12307 | ||
12308 | else | |
12309 | wxUSE_ODBC=no | |
12310 | wxUSE_SERIAL=no | |
12311 | fi | |
12312 | ||
12313 | ||
12314 | if test "$wxUSE_UNICODE" = "yes" ; then | |
12315 | cat >> confdefs.h <<\EOF | |
12316 | #define wxUSE_UNICODE 1 | |
12317 | EOF | |
12318 | ||
12319 | fi | |
12320 | ||
12321 | if test "$wxUSE_WCSRTOMBS" = "yes" ; then | |
12322 | cat >> confdefs.h <<\EOF | |
12323 | #define wxUSE_WCSRTOMBS 1 | |
12324 | EOF | |
12325 | ||
12326 | fi | |
12327 | ||
12328 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
12329 | cat >> confdefs.h <<\EOF | |
12330 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
12331 | EOF | |
12332 | ||
12333 | fi | |
12334 | ||
12335 | ||
12336 | if test "$wxUSE_SERIAL" = "yes" ; then | |
12337 | cat >> confdefs.h <<\EOF | |
12338 | #define wxUSE_SERIAL 1 | |
12339 | EOF | |
12340 | ||
12341 | fi | |
12342 | ||
12343 | ||
12344 | IODBC_C_SRC="" | |
12345 | if test "$wxUSE_ODBC" = "yes" ; then | |
12346 | cat >> confdefs.h <<\EOF | |
12347 | #define wxUSE_ODBC 1 | |
12348 | EOF | |
12349 | ||
12350 | WXODBCFLAG="-D_IODBC_" | |
12351 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
12352 | IODBCOBJS="\$(IODBC_OBJS)" | |
12353 | else | |
12354 | IODBCOBJS= | |
12355 | fi | |
12356 | ||
12357 | ||
12358 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
12359 | cat >> confdefs.h <<\EOF | |
12360 | #define wxUSE_POSTSCRIPT 1 | |
12361 | EOF | |
12362 | ||
12363 | fi | |
12364 | ||
12365 | cat >> confdefs.h <<\EOF | |
12366 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
12367 | EOF | |
12368 | ||
12369 | ||
12370 | cat >> confdefs.h <<\EOF | |
12371 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
12372 | EOF | |
12373 | ||
12374 | ||
12375 | ||
12376 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
12377 | cat >> confdefs.h <<\EOF | |
12378 | #define wxUSE_CONSTRAINTS 1 | |
12379 | EOF | |
12380 | ||
12381 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
12382 | fi | |
12383 | ||
12384 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
12385 | cat >> confdefs.h <<\EOF | |
12386 | #define wxUSE_MDI_ARCHITECTURE 1 | |
12387 | EOF | |
12388 | ||
12389 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" | |
12390 | fi | |
12391 | ||
12392 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
12393 | cat >> confdefs.h <<\EOF | |
12394 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
12395 | EOF | |
12396 | ||
12397 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
12398 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
12399 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
12400 | fi | |
12401 | fi | |
12402 | ||
12403 | if test "$wxUSE_HELP" = "yes"; then | |
12404 | cat >> confdefs.h <<\EOF | |
12405 | #define wxUSE_HELP 1 | |
12406 | EOF | |
12407 | ||
12408 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
12409 | fi | |
12410 | ||
12411 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
12412 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
12413 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 | |
12414 | else | |
12415 | cat >> confdefs.h <<\EOF | |
12416 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
12417 | EOF | |
12418 | ||
12419 | fi | |
12420 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
12421 | fi | |
12422 | ||
12423 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
12424 | cat >> confdefs.h <<\EOF | |
12425 | #define wxUSE_PROLOGIO 1 | |
12426 | EOF | |
12427 | ||
12428 | fi | |
12429 | ||
12430 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
12431 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
12432 | cat >> confdefs.h <<\EOF | |
12433 | #define wxUSE_RESOURCES 1 | |
12434 | EOF | |
12435 | ||
12436 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" | |
12437 | else | |
12438 | echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2 | |
12439 | fi | |
12440 | fi | |
12441 | ||
12442 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
12443 | cat >> confdefs.h <<\EOF | |
12444 | #define wxUSE_X_RESOURCES 1 | |
12445 | EOF | |
12446 | ||
12447 | fi | |
12448 | ||
12449 | ||
12450 | if test "$wxUSE_IPC" = "yes"; then | |
12451 | cat >> confdefs.h <<\EOF | |
12452 | #define wxUSE_IPC 1 | |
12453 | EOF | |
12454 | ||
12455 | fi | |
12456 | ||
12457 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
12458 | cat >> confdefs.h <<\EOF | |
12459 | #define wxUSE_CLIPBOARD 1 | |
12460 | EOF | |
12461 | ||
12462 | fi | |
12463 | ||
12464 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
12465 | if test "$wxUSE_GTK" = 1; then | |
12466 | if test "$WXGTK12" != 1; then | |
12467 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2 | |
12468 | wxUSE_DRAG_AND_DROP=no | |
12469 | fi | |
12470 | fi | |
12471 | ||
12472 | if test "$wxUSE_MOTIF" = 1; then | |
12473 | echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2 | |
12474 | wxUSE_DRAG_AND_DROP=no | |
12475 | fi | |
12476 | ||
12477 | if test "$USE_WIN32" = 1; then | |
12478 | for ac_hdr in ole2.h | |
12479 | do | |
12480 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
12481 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
12482 | echo "configure:12483: checking for $ac_hdr" >&5 | |
12483 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
12484 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12485 | else | |
12486 | cat > conftest.$ac_ext <<EOF | |
12487 | #line 12488 "configure" | |
12488 | #include "confdefs.h" | |
12489 | #include <$ac_hdr> | |
12490 | EOF | |
12491 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
12492 | { (eval echo configure:12493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
12493 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
12494 | if test -z "$ac_err"; then | |
12495 | rm -rf conftest* | |
12496 | eval "ac_cv_header_$ac_safe=yes" | |
12497 | else | |
12498 | echo "$ac_err" >&5 | |
12499 | echo "configure: failed program was:" >&5 | |
12500 | cat conftest.$ac_ext >&5 | |
12501 | rm -rf conftest* | |
12502 | eval "ac_cv_header_$ac_safe=no" | |
12503 | fi | |
12504 | rm -f conftest* | |
12505 | fi | |
12506 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12507 | echo "$ac_t""yes" 1>&6 | |
12508 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12509 | cat >> confdefs.h <<EOF | |
12510 | #define $ac_tr_hdr 1 | |
12511 | EOF | |
12512 | ||
12513 | else | |
12514 | echo "$ac_t""no" 1>&6 | |
12515 | fi | |
12516 | done | |
12517 | ||
12518 | if test "x$HAVE_OLE2_H" = x ; then | |
12519 | echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2 | |
12520 | wxUSE_DRAG_AND_DROP=no | |
12521 | fi | |
12522 | fi | |
12523 | ||
12524 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
12525 | cat >> confdefs.h <<\EOF | |
12526 | #define wxUSE_DRAG_AND_DROP 1 | |
12527 | EOF | |
12528 | ||
12529 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
12530 | fi | |
12531 | ||
12532 | fi | |
12533 | ||
12534 | if test "$wxUSE_SPLINES" = "yes" ; then | |
12535 | cat >> confdefs.h <<\EOF | |
12536 | #define wxUSE_SPLINES 1 | |
12537 | EOF | |
12538 | ||
12539 | fi | |
12540 | ||
12541 | ||
12542 | if test "$wxUSE_ACCEL" = "yes"; then | |
12543 | cat >> confdefs.h <<\EOF | |
12544 | #define wxUSE_ACCEL 1 | |
12545 | EOF | |
12546 | ||
12547 | fi | |
12548 | ||
12549 | if test "$wxUSE_CARET" = "yes"; then | |
12550 | cat >> confdefs.h <<\EOF | |
12551 | #define wxUSE_CARET 1 | |
12552 | EOF | |
12553 | ||
12554 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
12555 | fi | |
12556 | ||
12557 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
12558 | cat >> confdefs.h <<\EOF | |
12559 | #define wxUSE_COMBOBOX 1 | |
12560 | EOF | |
12561 | ||
12562 | fi | |
12563 | ||
12564 | if test "$wxUSE_CHOICE" = "yes"; then | |
12565 | cat >> confdefs.h <<\EOF | |
12566 | #define wxUSE_CHOICE 1 | |
12567 | EOF | |
12568 | ||
12569 | fi | |
12570 | ||
12571 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
12572 | cat >> confdefs.h <<\EOF | |
12573 | #define wxUSE_BMPBUTTON 1 | |
12574 | EOF | |
12575 | ||
12576 | fi | |
12577 | ||
12578 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
12579 | cat >> confdefs.h <<\EOF | |
12580 | #define wxUSE_CHECKBOX 1 | |
12581 | EOF | |
12582 | ||
12583 | fi | |
12584 | ||
12585 | if test "$wxUSE_CHECKLST" = "yes"; then | |
12586 | cat >> confdefs.h <<\EOF | |
12587 | #define wxUSE_CHECKLISTBOX 1 | |
12588 | EOF | |
12589 | ||
12590 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
12591 | fi | |
12592 | ||
12593 | if test "$wxUSE_GAUGE" = "yes"; then | |
12594 | cat >> confdefs.h <<\EOF | |
12595 | #define wxUSE_GAUGE 1 | |
12596 | EOF | |
12597 | ||
12598 | fi | |
12599 | ||
12600 | if test "$wxUSE_GRID" = "yes"; then | |
12601 | cat >> confdefs.h <<\EOF | |
12602 | #define wxUSE_GRID 1 | |
12603 | EOF | |
12604 | ||
12605 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
12606 | fi | |
12607 | ||
12608 | if test "$wxUSE_NEW_GRID" = "yes"; then | |
12609 | cat >> confdefs.h <<\EOF | |
12610 | #define wxUSE_NEW_GRID 1 | |
12611 | EOF | |
12612 | ||
12613 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" | |
12614 | fi | |
12615 | ||
12616 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
12617 | cat >> confdefs.h <<\EOF | |
12618 | #define wxUSE_IMAGLIST 1 | |
12619 | EOF | |
12620 | ||
12621 | fi | |
12622 | ||
12623 | if test "$wxUSE_LISTBOX" = "yes"; then | |
12624 | cat >> confdefs.h <<\EOF | |
12625 | #define wxUSE_LISTBOX 1 | |
12626 | EOF | |
12627 | ||
12628 | fi | |
12629 | ||
12630 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
12631 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
12632 | cat >> confdefs.h <<\EOF | |
12633 | #define wxUSE_LISTCTRL 1 | |
12634 | EOF | |
12635 | ||
12636 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
12637 | else | |
12638 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 | |
12639 | fi | |
12640 | fi | |
12641 | ||
12642 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
12643 | cat >> confdefs.h <<\EOF | |
12644 | #define wxUSE_NOTEBOOK 1 | |
12645 | EOF | |
12646 | ||
12647 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
12648 | fi | |
12649 | ||
12650 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
12651 | cat >> confdefs.h <<\EOF | |
12652 | #define wxUSE_RADIOBOX 1 | |
12653 | EOF | |
12654 | ||
12655 | fi | |
12656 | ||
12657 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
12658 | cat >> confdefs.h <<\EOF | |
12659 | #define wxUSE_RADIOBTN 1 | |
12660 | EOF | |
12661 | ||
12662 | fi | |
12663 | ||
12664 | if test "$wxUSE_SASH" = "yes"; then | |
12665 | cat >> confdefs.h <<\EOF | |
12666 | #define wxUSE_SASH 1 | |
12667 | EOF | |
12668 | ||
12669 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
12670 | fi | |
12671 | ||
12672 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
12673 | cat >> confdefs.h <<\EOF | |
12674 | #define wxUSE_SCROLLBAR 1 | |
12675 | EOF | |
12676 | ||
12677 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" | |
12678 | fi | |
12679 | ||
12680 | if test "$wxUSE_SLIDER" = "yes"; then | |
12681 | cat >> confdefs.h <<\EOF | |
12682 | #define wxUSE_SLIDER 1 | |
12683 | EOF | |
12684 | ||
12685 | fi | |
12686 | ||
12687 | if test "$wxUSE_SPINBTN" = "yes"; then | |
12688 | cat >> confdefs.h <<\EOF | |
12689 | #define wxUSE_SPINBTN 1 | |
12690 | EOF | |
12691 | ||
12692 | fi | |
12693 | ||
12694 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
12695 | cat >> confdefs.h <<\EOF | |
12696 | #define wxUSE_SPINCTRL 1 | |
12697 | EOF | |
12698 | ||
12699 | fi | |
12700 | ||
12701 | if test "$wxUSE_SPLITTER" = "yes"; then | |
12702 | cat >> confdefs.h <<\EOF | |
12703 | #define wxUSE_SPLITTER 1 | |
12704 | EOF | |
12705 | ||
12706 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
12707 | fi | |
12708 | ||
12709 | if test "$wxUSE_STATBMP" = "yes"; then | |
12710 | cat >> confdefs.h <<\EOF | |
12711 | #define wxUSE_STATBMP 1 | |
12712 | EOF | |
12713 | ||
12714 | fi | |
12715 | ||
12716 | if test "$wxUSE_STATBOX" = "yes"; then | |
12717 | cat >> confdefs.h <<\EOF | |
12718 | #define wxUSE_STATBOX 1 | |
12719 | EOF | |
12720 | ||
12721 | fi | |
12722 | ||
12723 | if test "$wxUSE_STATLINE" = "yes"; then | |
12724 | if test "$wxUSE_WINE" = 1 ; then | |
12725 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 | |
12726 | else | |
12727 | cat >> confdefs.h <<\EOF | |
12728 | #define wxUSE_STATLINE 1 | |
12729 | EOF | |
12730 | ||
12731 | fi | |
12732 | fi | |
12733 | ||
12734 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
12735 | cat >> confdefs.h <<\EOF | |
12736 | #define wxUSE_STATUSBAR 1 | |
12737 | EOF | |
12738 | ||
12739 | fi | |
12740 | ||
12741 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
12742 | cat >> confdefs.h <<\EOF | |
12743 | #define wxUSE_TAB_DIALOG 1 | |
12744 | EOF | |
12745 | ||
12746 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
12747 | fi | |
12748 | ||
12749 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then | |
12750 | cat >> confdefs.h <<\EOF | |
12751 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
12752 | EOF | |
12753 | ||
12754 | wxUSE_TOOLBAR="yes" | |
12755 | fi | |
12756 | ||
12757 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
12758 | cat >> confdefs.h <<\EOF | |
12759 | #define wxUSE_TOOLBAR 1 | |
12760 | EOF | |
12761 | ||
12762 | ||
12763 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
12764 | wxUSE_TOOLBAR_NATIVE="yes" | |
12765 | fi | |
12766 | ||
12767 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
12768 | fi | |
12769 | ||
12770 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then | |
12771 | cat >> confdefs.h <<\EOF | |
12772 | #define wxUSE_TOOLBAR_NATIVE 1 | |
12773 | EOF | |
12774 | ||
12775 | fi | |
12776 | ||
12777 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
12778 | if test "$wxUSE_MOTIF" = 1; then | |
12779 | echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2 | |
12780 | else | |
12781 | if test "$wxUSE_WINE" = 1; then | |
12782 | echo "configure: warning: wxTooltip not supported under WINE" 1>&2 | |
12783 | else | |
12784 | cat >> confdefs.h <<\EOF | |
12785 | #define wxUSE_TOOLTIPS 1 | |
12786 | EOF | |
12787 | ||
12788 | fi | |
12789 | fi | |
12790 | fi | |
12791 | ||
12792 | if test "$wxUSE_TREECTRL" = "yes"; then | |
12793 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
12794 | cat >> confdefs.h <<\EOF | |
12795 | #define wxUSE_TREECTRL 1 | |
12796 | EOF | |
12797 | ||
12798 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
12799 | else | |
12800 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 | |
12801 | fi | |
12802 | fi | |
12803 | ||
12804 | ||
12805 | ||
12806 | if test "$wxUSE_METAFILE" = "yes"; then | |
12807 | cat >> confdefs.h <<\EOF | |
12808 | #define wxUSE_METAFILE 1 | |
12809 | EOF | |
12810 | ||
12811 | fi | |
12812 | ||
12813 | if test "$wxUSE_DIRDLG" = "yes"; then | |
12814 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
12815 | echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2 | |
12816 | else | |
12817 | if test "$wxUSE_TREECTRL" != "yes"; then | |
12818 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
12819 | else | |
12820 | cat >> confdefs.h <<\EOF | |
12821 | #define wxUSE_DIRDLG 1 | |
12822 | EOF | |
12823 | ||
12824 | fi | |
12825 | fi | |
12826 | fi | |
12827 | ||
12828 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
12829 | cat >> confdefs.h <<\EOF | |
12830 | #define wxUSE_TEXTDLG 1 | |
12831 | EOF | |
12832 | ||
12833 | fi | |
12834 | ||
12835 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
12836 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
12837 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
12838 | else | |
12839 | cat >> confdefs.h <<\EOF | |
12840 | #define wxUSE_STARTUP_TIPS 1 | |
12841 | EOF | |
12842 | ||
12843 | fi | |
12844 | fi | |
12845 | ||
12846 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
12847 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
12848 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
12849 | else | |
12850 | cat >> confdefs.h <<\EOF | |
12851 | #define wxUSE_PROGRESSDLG 1 | |
12852 | EOF | |
12853 | ||
12854 | fi | |
12855 | fi | |
12856 | ||
12857 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
12858 | cat >> confdefs.h <<\EOF | |
12859 | #define wxUSE_MINIFRAME 1 | |
12860 | EOF | |
12861 | ||
12862 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
12863 | fi | |
12864 | ||
12865 | if test "$wxUSE_HTML" = "yes"; then | |
12866 | cat >> confdefs.h <<\EOF | |
12867 | #define wxUSE_HTML 1 | |
12868 | EOF | |
12869 | ||
12870 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
12871 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html" | |
12872 | fi | |
12873 | ||
12874 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
12875 | cat >> confdefs.h <<\EOF | |
12876 | #define wxUSE_VALIDATORS 1 | |
12877 | EOF | |
12878 | ||
12879 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
12880 | fi | |
12881 | ||
12882 | if test "$wxUSE_GIF" = "yes" ; then | |
12883 | cat >> confdefs.h <<\EOF | |
12884 | #define wxUSE_GIF 1 | |
12885 | EOF | |
12886 | ||
12887 | fi | |
12888 | ||
12889 | if test "$wxUSE_PCX" = "yes" ; then | |
12890 | cat >> confdefs.h <<\EOF | |
12891 | #define wxUSE_PCX 1 | |
12892 | EOF | |
12893 | ||
12894 | fi | |
12895 | ||
12896 | if test "$wxUSE_PNM" = "yes" ; then | |
12897 | cat >> confdefs.h <<\EOF | |
12898 | #define wxUSE_PNM 1 | |
12899 | EOF | |
12900 | ||
12901 | fi | |
12902 | ||
12903 | ||
12904 | OSINFO=`uname -s -r -m` | |
12905 | OSINFO="\"$OSINFO\"" | |
12906 | cat >> confdefs.h <<EOF | |
12907 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
12908 | EOF | |
12909 | ||
12910 | ||
12911 | ||
12912 | GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $LIBPNG_LINK $ZLIB_LINK $TOOLKIT_LINK" | |
12913 | ||
12914 | EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK" | |
12915 | if test "$wxUSE_GUI" = "yes"; then | |
12916 | EXTRA_LIBS="$EXTRA_LIBS $GUILIBS" | |
12917 | fi | |
12918 | ||
12919 | LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS" | |
12920 | ||
12921 | INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE" | |
12922 | ||
12923 | if test "$GXX" = yes ; then | |
12924 | CXXWARNINGS="-Wall" | |
12925 | fi | |
12926 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" | |
12927 | ||
12928 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS | sed 's/ \\+/ /g'` | |
12929 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
12930 | ||
12931 | LDFLAGS="$LDFLAGS $PROFILE" | |
12932 | ||
12933 | if test "$wxUSE_GUI" = "yes"; then | |
12934 | ||
12935 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS bombs controls dialogs drawing dynamic \ | |
12936 | font forty fractal image minimal richedit wxpoem" | |
12937 | ||
12938 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS)" | |
12939 | else | |
12940 | SAMPLES_SUBDIRS="" | |
12941 | fi | |
12942 | ||
12943 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '`" | |
12944 | ||
12945 | ||
12946 | ||
12947 | ||
12948 | ||
12949 | ||
12950 | ||
12951 | ||
12952 | ||
12953 | ||
12954 | ||
12955 | ||
12956 | ||
12957 | ||
12958 | ||
12959 | ||
12960 | ||
12961 | ||
12962 | ||
12963 | ||
12964 | ||
12965 | ||
12966 | ||
12967 | ||
12968 | ||
12969 | ||
12970 | ||
12971 | ||
12972 | ||
12973 | ||
12974 | ||
12975 | ||
12976 | ||
12977 | ||
12978 | ||
12979 | ||
12980 | ||
12981 | ||
12982 | ||
12983 | ||
12984 | ||
12985 | ||
12986 | ||
12987 | ||
12988 | ||
12989 | ||
12990 | ||
12991 | ||
12992 | ||
12993 | ||
12994 | ||
12995 | ||
12996 | ||
12997 | ||
12998 | ||
12999 | ||
13000 | ||
13001 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
13002 | echo "configure:13003: checking whether ${MAKE-make} sets \${MAKE}" >&5 | |
13003 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` | |
13004 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
13005 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13006 | else | |
13007 | cat > conftestmake <<\EOF | |
13008 | all: | |
13009 | @echo 'ac_maketemp="${MAKE}"' | |
13010 | EOF | |
13011 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
13012 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
13013 | if test -n "$ac_maketemp"; then | |
13014 | eval ac_cv_prog_make_${ac_make}_set=yes | |
13015 | else | |
13016 | eval ac_cv_prog_make_${ac_make}_set=no | |
13017 | fi | |
13018 | rm -f conftestmake | |
13019 | fi | |
13020 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
13021 | echo "$ac_t""yes" 1>&6 | |
13022 | SET_MAKE= | |
13023 | else | |
13024 | echo "$ac_t""no" 1>&6 | |
13025 | SET_MAKE="MAKE=${MAKE-make}" | |
13026 | fi | |
13027 | ||
13028 | ||
13029 | ||
13030 | ||
13031 | if test "${TOOLKIT_DIR}" = "msw" ; then | |
13032 | GL_TOOLKIT_DIR="win" | |
13033 | else | |
13034 | GL_TOOLKIT_DIR="${TOOLKIT_DIR}" | |
13035 | fi | |
13036 | ||
13037 | ||
13038 | trap '' 1 2 15 | |
13039 | cat > confcache <<\EOF | |
13040 | # This file is a shell script that caches the results of configure | |
13041 | # tests run on this system so they can be shared between configure | |
13042 | # scripts and configure runs. It is not useful on other systems. | |
13043 | # If it contains results you don't want to keep, you may remove or edit it. | |
13044 | # | |
13045 | # By default, configure uses ./config.cache as the cache file, | |
13046 | # creating it if it does not exist already. You can give configure | |
13047 | # the --cache-file=FILE option to use a different cache file; that is | |
13048 | # what configure does when it calls configure scripts in | |
13049 | # subdirectories, so they share the cache. | |
13050 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
13051 | # config.status only pays attention to the cache file if you give it the | |
13052 | # --recheck option to rerun configure. | |
13053 | # | |
13054 | EOF | |
13055 | # The following way of writing the cache mishandles newlines in values, | |
13056 | # but we know of no workaround that is simple, portable, and efficient. | |
13057 | # So, don't put newlines in cache variables' values. | |
13058 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
13059 | # and sets the high bit in the cache file unless we assign to the vars. | |
13060 | (set) 2>&1 | | |
13061 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
13062 | *ac_space=\ *) | |
13063 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
13064 | # turns \\\\ into \\, and sed turns \\ into \). | |
13065 | sed -n \ | |
13066 | -e "s/'/'\\\\''/g" \ | |
13067 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
13068 | ;; | |
13069 | *) | |
13070 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
13071 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
13072 | ;; | |
13073 | esac >> confcache | |
13074 | if cmp -s $cache_file confcache; then | |
13075 | : | |
13076 | else | |
13077 | if test -w $cache_file; then | |
13078 | echo "updating cache $cache_file" | |
13079 | cat confcache > $cache_file | |
13080 | else | |
13081 | echo "not updating unwritable cache $cache_file" | |
13082 | fi | |
13083 | fi | |
13084 | rm -f confcache | |
13085 | ||
13086 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
13087 | ||
13088 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
13089 | # Let make expand exec_prefix. | |
13090 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
13091 | ||
13092 | # Any assignment to VPATH causes Sun make to only execute | |
13093 | # the first set of double-colon rules, so remove it if not needed. | |
13094 | # If there is a colon in the path, we need to keep it. | |
13095 | if test "x$srcdir" = x.; then | |
13096 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
13097 | fi | |
13098 | ||
13099 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
13100 | ||
13101 | DEFS=-DHAVE_CONFIG_H | |
13102 | ||
13103 | # Without the "./", some shells look in PATH for config.status. | |
13104 | : ${CONFIG_STATUS=./config.status} | |
13105 | ||
13106 | echo creating $CONFIG_STATUS | |
13107 | rm -f $CONFIG_STATUS | |
13108 | cat > $CONFIG_STATUS <<EOF | |
13109 | #! /bin/sh | |
13110 | # Generated automatically by configure. | |
13111 | # Run this file to recreate the current configuration. | |
13112 | # This directory was configured as follows, | |
13113 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
13114 | # | |
13115 | # $0 $ac_configure_args | |
13116 | # | |
13117 | # Compiler output produced by configure, useful for debugging | |
13118 | # configure, is in ./config.log if it exists. | |
13119 | ||
13120 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
13121 | for ac_option | |
13122 | do | |
13123 | case "\$ac_option" in | |
13124 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
13125 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
13126 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
13127 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
13128 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
13129 | exit 0 ;; | |
13130 | -help | --help | --hel | --he | --h) | |
13131 | echo "\$ac_cs_usage"; exit 0 ;; | |
13132 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
13133 | esac | |
13134 | done | |
13135 | ||
13136 | ac_given_srcdir=$srcdir | |
13137 | ac_given_INSTALL="$INSTALL" | |
13138 | ||
13139 | trap 'rm -fr `echo " | |
13140 | wx-config | |
13141 | src/make.env | |
13142 | src/makeprog.env | |
13143 | src/makelib.env | |
13144 | Makefile | |
13145 | samples/Makefile | |
13146 | samples/bombs/Makefile | |
13147 | samples/caret/Makefile | |
13148 | samples/checklst/Makefile | |
13149 | samples/config/Makefile | |
13150 | samples/controls/Makefile | |
13151 | samples/console/Makefile | |
13152 | samples/db/Makefile | |
13153 | samples/dialogs/Makefile | |
13154 | samples/docview/Makefile | |
13155 | samples/docvwmdi/Makefile | |
13156 | samples/dnd/Makefile | |
13157 | samples/drawing/Makefile | |
13158 | samples/forty/Makefile | |
13159 | samples/font/Makefile | |
13160 | samples/fractal/Makefile | |
13161 | samples/image/Makefile | |
13162 | samples/internat/Makefile | |
13163 | samples/layout/Makefile | |
13164 | samples/listctrl/Makefile | |
13165 | samples/mdi/Makefile | |
13166 | samples/minifram/Makefile | |
13167 | samples/minimal/Makefile | |
13168 | samples/nettest/Makefile | |
13169 | samples/newgrid/Makefile | |
13170 | samples/notebook/Makefile | |
13171 | samples/png/Makefile | |
13172 | samples/printing/Makefile | |
13173 | samples/proplist/Makefile | |
13174 | samples/richedit/Makefile | |
13175 | samples/resource/Makefile | |
13176 | samples/sashtest/Makefile | |
13177 | samples/scroll/Makefile | |
13178 | samples/scrollsub/Makefile | |
13179 | samples/splitter/Makefile | |
13180 | samples/text/Makefile | |
13181 | samples/thread/Makefile | |
13182 | samples/toolbar/Makefile | |
13183 | samples/treectrl/Makefile | |
13184 | samples/typetest/Makefile | |
13185 | samples/validate/Makefile | |
13186 | samples/wxpoem/Makefile | |
13187 | samples/wxsocket/Makefile | |
13188 | samples/wizard/Makefile | |
13189 | samples/html/Makefile | |
13190 | samples/html/about/Makefile | |
13191 | samples/html/help/Makefile | |
13192 | samples/html/printing/Makefile | |
13193 | samples/html/helpview/Makefile | |
13194 | samples/html/test/Makefile | |
13195 | samples/html/zip/Makefile | |
13196 | samples/html/virtual/Makefile | |
13197 | samples/html/widget/Makefile | |
13198 | utils/Makefile | |
13199 | utils/wxMMedia2/Makefile | |
13200 | utils/wxMMedia2/lib/Makefile | |
13201 | utils/wxMMedia2/sample/Makefile | |
13202 | utils/glcanvas/Makefile | |
13203 | utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile | |
13204 | utils/ogl/Makefile | |
13205 | utils/ogl/src/Makefile | |
13206 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
13207 | EOF | |
13208 | cat >> $CONFIG_STATUS <<EOF | |
13209 | ||
13210 | # Protect against being on the right side of a sed subst in config.status. | |
13211 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
13212 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
13213 | $ac_vpsub | |
13214 | $extrasub | |
13215 | s%@SHELL@%$SHELL%g | |
13216 | s%@CFLAGS@%$CFLAGS%g | |
13217 | s%@CPPFLAGS@%$CPPFLAGS%g | |
13218 | s%@CXXFLAGS@%$CXXFLAGS%g | |
13219 | s%@FFLAGS@%$FFLAGS%g | |
13220 | s%@DEFS@%$DEFS%g | |
13221 | s%@LDFLAGS@%$LDFLAGS%g | |
13222 | s%@LIBS@%$LIBS%g | |
13223 | s%@exec_prefix@%$exec_prefix%g | |
13224 | s%@prefix@%$prefix%g | |
13225 | s%@program_transform_name@%$program_transform_name%g | |
13226 | s%@bindir@%$bindir%g | |
13227 | s%@sbindir@%$sbindir%g | |
13228 | s%@libexecdir@%$libexecdir%g | |
13229 | s%@datadir@%$datadir%g | |
13230 | s%@sysconfdir@%$sysconfdir%g | |
13231 | s%@sharedstatedir@%$sharedstatedir%g | |
13232 | s%@localstatedir@%$localstatedir%g | |
13233 | s%@libdir@%$libdir%g | |
13234 | s%@includedir@%$includedir%g | |
13235 | s%@oldincludedir@%$oldincludedir%g | |
13236 | s%@infodir@%$infodir%g | |
13237 | s%@mandir@%$mandir%g | |
13238 | s%@host@%$host%g | |
13239 | s%@host_alias@%$host_alias%g | |
13240 | s%@host_cpu@%$host_cpu%g | |
13241 | s%@host_vendor@%$host_vendor%g | |
13242 | s%@host_os@%$host_os%g | |
13243 | s%@target@%$target%g | |
13244 | s%@target_alias@%$target_alias%g | |
13245 | s%@target_cpu@%$target_cpu%g | |
13246 | s%@target_vendor@%$target_vendor%g | |
13247 | s%@target_os@%$target_os%g | |
13248 | s%@build@%$build%g | |
13249 | s%@build_alias@%$build_alias%g | |
13250 | s%@build_cpu@%$build_cpu%g | |
13251 | s%@build_vendor@%$build_vendor%g | |
13252 | s%@build_os@%$build_os%g | |
13253 | s%@CC@%$CC%g | |
13254 | s%@CPP@%$CPP%g | |
13255 | s%@CXX@%$CXX%g | |
13256 | s%@CXXCPP@%$CXXCPP%g | |
13257 | s%@RANLIB@%$RANLIB%g | |
13258 | s%@AR@%$AR%g | |
13259 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
13260 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
13261 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
13262 | s%@STRIP@%$STRIP%g | |
13263 | s%@YACC@%$YACC%g | |
13264 | s%@LEX@%$LEX%g | |
13265 | s%@LEXLIB@%$LEXLIB%g | |
13266 | s%@LN_S@%$LN_S%g | |
13267 | s%@GTK_CONFIG@%$GTK_CONFIG%g | |
13268 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g | |
13269 | s%@GTK_LIBS@%$GTK_LIBS%g | |
13270 | s%@X_CFLAGS@%$X_CFLAGS%g | |
13271 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
13272 | s%@X_LIBS@%$X_LIBS%g | |
13273 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
13274 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
13275 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
13276 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
13277 | s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g | |
13278 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
13279 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
13280 | s%@WX_LIBRARY@%$WX_LIBRARY%g | |
13281 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
13282 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
13283 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
13284 | s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g | |
13285 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g | |
13286 | s%@WX_ALL@%$WX_ALL%g | |
13287 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
13288 | s%@SHARED_LD@%$SHARED_LD%g | |
13289 | s%@PIC_FLAG@%$PIC_FLAG%g | |
13290 | s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g | |
13291 | s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g | |
13292 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
13293 | s%@TOOLKIT@%$TOOLKIT%g | |
13294 | s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g | |
13295 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
13296 | s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g | |
13297 | s%@GUIHEADERS@%$GUIHEADERS%g | |
13298 | s%@GUIOBJS@%$GUIOBJS%g | |
13299 | s%@COMMONOBJS@%$COMMONOBJS%g | |
13300 | s%@GENERICOBJS@%$GENERICOBJS%g | |
13301 | s%@GUIDEPS@%$GUIDEPS%g | |
13302 | s%@COMMONDEPS@%$COMMONDEPS%g | |
13303 | s%@GENERICDEPS@%$GENERICDEPS%g | |
13304 | s%@IODBCOBJS@%$IODBCOBJS%g | |
13305 | s%@UNIXOBJS@%$UNIXOBJS%g | |
13306 | s%@UNIXDEPS@%$UNIXDEPS%g | |
13307 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
13308 | s%@ALL_DEPFILES@%$ALL_DEPFILES%g | |
13309 | s%@ALL_HEADERS@%$ALL_HEADERS%g | |
13310 | s%@GUIDIST@%$GUIDIST%g | |
13311 | s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g | |
13312 | s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g | |
13313 | s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g | |
13314 | s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g | |
13315 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g | |
13316 | s%@USER_SUBDIRS@%$USER_SUBDIRS%g | |
13317 | s%@EXTRA_LIBS@%$EXTRA_LIBS%g | |
13318 | s%@EXTRADEFS@%$EXTRADEFS%g | |
13319 | s%@LD_LIBS@%$LD_LIBS%g | |
13320 | s%@SET_MAKE@%$SET_MAKE%g | |
13321 | s%@GL_TOOLKIT_DIR@%$GL_TOOLKIT_DIR%g | |
13322 | ||
13323 | CEOF | |
13324 | EOF | |
13325 | ||
13326 | cat >> $CONFIG_STATUS <<\EOF | |
13327 | ||
13328 | # Split the substitutions into bite-sized pieces for seds with | |
13329 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
13330 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
13331 | ac_file=1 # Number of current file. | |
13332 | ac_beg=1 # First line for current file. | |
13333 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
13334 | ac_more_lines=: | |
13335 | ac_sed_cmds="" | |
13336 | while $ac_more_lines; do | |
13337 | if test $ac_beg -gt 1; then | |
13338 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
13339 | else | |
13340 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
13341 | fi | |
13342 | if test ! -s conftest.s$ac_file; then | |
13343 | ac_more_lines=false | |
13344 | rm -f conftest.s$ac_file | |
13345 | else | |
13346 | if test -z "$ac_sed_cmds"; then | |
13347 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
13348 | else | |
13349 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
13350 | fi | |
13351 | ac_file=`expr $ac_file + 1` | |
13352 | ac_beg=$ac_end | |
13353 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
13354 | fi | |
13355 | done | |
13356 | if test -z "$ac_sed_cmds"; then | |
13357 | ac_sed_cmds=cat | |
13358 | fi | |
13359 | EOF | |
13360 | ||
13361 | cat >> $CONFIG_STATUS <<EOF | |
13362 | ||
13363 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
13364 | src/make.env | |
13365 | src/makeprog.env | |
13366 | src/makelib.env | |
13367 | Makefile | |
13368 | samples/Makefile | |
13369 | samples/bombs/Makefile | |
13370 | samples/caret/Makefile | |
13371 | samples/checklst/Makefile | |
13372 | samples/config/Makefile | |
13373 | samples/controls/Makefile | |
13374 | samples/console/Makefile | |
13375 | samples/db/Makefile | |
13376 | samples/dialogs/Makefile | |
13377 | samples/docview/Makefile | |
13378 | samples/docvwmdi/Makefile | |
13379 | samples/dnd/Makefile | |
13380 | samples/drawing/Makefile | |
13381 | samples/forty/Makefile | |
13382 | samples/font/Makefile | |
13383 | samples/fractal/Makefile | |
13384 | samples/image/Makefile | |
13385 | samples/internat/Makefile | |
13386 | samples/layout/Makefile | |
13387 | samples/listctrl/Makefile | |
13388 | samples/mdi/Makefile | |
13389 | samples/minifram/Makefile | |
13390 | samples/minimal/Makefile | |
13391 | samples/nettest/Makefile | |
13392 | samples/newgrid/Makefile | |
13393 | samples/notebook/Makefile | |
13394 | samples/png/Makefile | |
13395 | samples/printing/Makefile | |
13396 | samples/proplist/Makefile | |
13397 | samples/richedit/Makefile | |
13398 | samples/resource/Makefile | |
13399 | samples/sashtest/Makefile | |
13400 | samples/scroll/Makefile | |
13401 | samples/scrollsub/Makefile | |
13402 | samples/splitter/Makefile | |
13403 | samples/text/Makefile | |
13404 | samples/thread/Makefile | |
13405 | samples/toolbar/Makefile | |
13406 | samples/treectrl/Makefile | |
13407 | samples/typetest/Makefile | |
13408 | samples/validate/Makefile | |
13409 | samples/wxpoem/Makefile | |
13410 | samples/wxsocket/Makefile | |
13411 | samples/wizard/Makefile | |
13412 | samples/html/Makefile | |
13413 | samples/html/about/Makefile | |
13414 | samples/html/help/Makefile | |
13415 | samples/html/printing/Makefile | |
13416 | samples/html/helpview/Makefile | |
13417 | samples/html/test/Makefile | |
13418 | samples/html/zip/Makefile | |
13419 | samples/html/virtual/Makefile | |
13420 | samples/html/widget/Makefile | |
13421 | utils/Makefile | |
13422 | utils/wxMMedia2/Makefile | |
13423 | utils/wxMMedia2/lib/Makefile | |
13424 | utils/wxMMedia2/sample/Makefile | |
13425 | utils/glcanvas/Makefile | |
13426 | utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile | |
13427 | utils/ogl/Makefile | |
13428 | utils/ogl/src/Makefile | |
13429 | "} | |
13430 | EOF | |
13431 | cat >> $CONFIG_STATUS <<\EOF | |
13432 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
13433 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
13434 | case "$ac_file" in | |
13435 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
13436 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
13437 | *) ac_file_in="${ac_file}.in" ;; | |
13438 | esac | |
13439 | ||
13440 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
13441 | ||
13442 | # Remove last slash and all that follows it. Not all systems have dirname. | |
13443 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
13444 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
13445 | # The file is in a subdirectory. | |
13446 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
13447 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
13448 | # A "../" for each directory in $ac_dir_suffix. | |
13449 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
13450 | else | |
13451 | ac_dir_suffix= ac_dots= | |
13452 | fi | |
13453 | ||
13454 | case "$ac_given_srcdir" in | |
13455 | .) srcdir=. | |
13456 | if test -z "$ac_dots"; then top_srcdir=. | |
13457 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
13458 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
13459 | *) # Relative path. | |
13460 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
13461 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
13462 | esac | |
13463 | ||
13464 | case "$ac_given_INSTALL" in | |
13465 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
13466 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
13467 | esac | |
13468 | ||
13469 | echo creating "$ac_file" | |
13470 | rm -f "$ac_file" | |
13471 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
13472 | case "$ac_file" in | |
13473 | *Makefile*) ac_comsub="1i\\ | |
13474 | # $configure_input" ;; | |
13475 | *) ac_comsub= ;; | |
13476 | esac | |
13477 | ||
13478 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
13479 | sed -e "$ac_comsub | |
13480 | s%@configure_input@%$configure_input%g | |
13481 | s%@srcdir@%$srcdir%g | |
13482 | s%@top_srcdir@%$top_srcdir%g | |
13483 | s%@INSTALL@%$INSTALL%g | |
13484 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
13485 | fi; done | |
13486 | rm -f conftest.s* | |
13487 | ||
13488 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
13489 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
13490 | # | |
13491 | # ac_d sets the value in "#define NAME VALUE" lines. | |
13492 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
13493 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
13494 | ac_dC='\3' | |
13495 | ac_dD='%g' | |
13496 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
13497 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
13498 | ac_uB='\([ ]\)%\1#\2define\3' | |
13499 | ac_uC=' ' | |
13500 | ac_uD='\4%g' | |
13501 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
13502 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
13503 | ac_eB='$%\1#\2define\3' | |
13504 | ac_eC=' ' | |
13505 | ac_eD='%g' | |
13506 | ||
13507 | if test "${CONFIG_HEADERS+set}" != set; then | |
13508 | EOF | |
13509 | cat >> $CONFIG_STATUS <<EOF | |
13510 | CONFIG_HEADERS="setup.h:setup.h.in" | |
13511 | EOF | |
13512 | cat >> $CONFIG_STATUS <<\EOF | |
13513 | fi | |
13514 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
13515 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
13516 | case "$ac_file" in | |
13517 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
13518 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
13519 | *) ac_file_in="${ac_file}.in" ;; | |
13520 | esac | |
13521 | ||
13522 | echo creating $ac_file | |
13523 | ||
13524 | rm -f conftest.frag conftest.in conftest.out | |
13525 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
13526 | cat $ac_file_inputs > conftest.in | |
13527 | ||
13528 | EOF | |
13529 | ||
13530 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
13531 | # the proper values into config.h.in to produce config.h. And first: | |
13532 | # Protect against being on the right side of a sed subst in config.status. | |
13533 | # Protect against being in an unquoted here document in config.status. | |
13534 | rm -f conftest.vals | |
13535 | cat > conftest.hdr <<\EOF | |
13536 | s/[\\&%]/\\&/g | |
13537 | s%[\\$`]%\\&%g | |
13538 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
13539 | s%ac_d%ac_u%gp | |
13540 | s%ac_u%ac_e%gp | |
13541 | EOF | |
13542 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
13543 | rm -f conftest.hdr | |
13544 | ||
13545 | # This sed command replaces #undef with comments. This is necessary, for | |
13546 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
13547 | # on some systems where configure will not decide to define it. | |
13548 | cat >> conftest.vals <<\EOF | |
13549 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
13550 | EOF | |
13551 | ||
13552 | # Break up conftest.vals because some shells have a limit on | |
13553 | # the size of here documents, and old seds have small limits too. | |
13554 | ||
13555 | rm -f conftest.tail | |
13556 | while : | |
13557 | do | |
13558 | ac_lines=`grep -c . conftest.vals` | |
13559 | # grep -c gives empty output for an empty file on some AIX systems. | |
13560 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
13561 | # Write a limited-size here document to conftest.frag. | |
13562 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
13563 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
13564 | echo 'CEOF | |
13565 | sed -f conftest.frag conftest.in > conftest.out | |
13566 | rm -f conftest.in | |
13567 | mv conftest.out conftest.in | |
13568 | ' >> $CONFIG_STATUS | |
13569 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
13570 | rm -f conftest.vals | |
13571 | mv conftest.tail conftest.vals | |
13572 | done | |
13573 | rm -f conftest.vals | |
13574 | ||
13575 | cat >> $CONFIG_STATUS <<\EOF | |
13576 | rm -f conftest.frag conftest.h | |
13577 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
13578 | cat conftest.in >> conftest.h | |
13579 | rm -f conftest.in | |
13580 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
13581 | echo "$ac_file is unchanged" | |
13582 | rm -f conftest.h | |
13583 | else | |
13584 | # Remove last slash and all that follows it. Not all systems have dirname. | |
13585 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
13586 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
13587 | # The file is in a subdirectory. | |
13588 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
13589 | fi | |
13590 | rm -f $ac_file | |
13591 | mv conftest.h $ac_file | |
13592 | fi | |
13593 | fi; done | |
13594 | ||
13595 | EOF | |
13596 | cat >> $CONFIG_STATUS <<EOF | |
13597 | ||
13598 | TOOLKIT_DIR="${TOOLKIT_DIR}" | |
13599 | ||
13600 | ||
13601 | EOF | |
13602 | cat >> $CONFIG_STATUS <<\EOF | |
13603 | ||
13604 | chmod +x wx-config | |
13605 | if test ! -d include; then | |
13606 | mkdir include | |
13607 | fi | |
13608 | if test ! -d include/wx; then | |
13609 | mkdir include/wx | |
13610 | fi | |
13611 | if test ! -d include/wx/${TOOLKIT_DIR}; then | |
13612 | mkdir include/wx/${TOOLKIT_DIR} | |
13613 | fi | |
13614 | if test -f setup.h; then | |
13615 | mv -f setup.h include/wx/${TOOLKIT_DIR}/setup.h | |
13616 | fi | |
13617 | ||
13618 | exit 0 | |
13619 | EOF | |
13620 | chmod +x $CONFIG_STATUS | |
13621 | rm -fr confdefs* $ac_clean_files | |
13622 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
13623 | ||
13624 |