]>
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.14 | |
42 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
43 | # | |
44 | # This configure script is free software; the Free Software Foundation | |
45 | # gives unlimited permission to copy, distribute and modify it. | |
46 | ||
47 | # Defaults: | |
48 | ac_help= | |
49 | ac_default_prefix=/usr/local | |
50 | # Any additions from configure.in: | |
51 | ac_help="$ac_help | |
52 | --enable-gui use GUI classes" | |
53 | ac_help="$ac_help | |
54 | --with-gtk use GTK+" | |
55 | ac_help="$ac_help | |
56 | --with-motif use Motif/Lesstif" | |
57 | ac_help="$ac_help | |
58 | --with-wine use WINE" | |
59 | ac_help="$ac_help | |
60 | --with-cygwin use Cygwin for MS-Windows" | |
61 | ac_help="$ac_help | |
62 | --with-mingw use GCC Minimal MS-Windows" | |
63 | ac_help="$ac_help | |
64 | --with-gtk-prefix=PFX Prefix where GTK is installed" | |
65 | ac_help="$ac_help | |
66 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed" | |
67 | ac_help="$ac_help | |
68 | --with-dmalloc use dmalloc library (www.letters.com/dmalloc)" | |
69 | ac_help="$ac_help | |
70 | --with-zlib use zlib for LZW compression" | |
71 | ac_help="$ac_help | |
72 | --with-libpng use libpng (PNG image format)" | |
73 | ac_help="$ac_help | |
74 | --with-libjpeg use libjpeg (JPEG file format)" | |
75 | ac_help="$ac_help | |
76 | --with-libtiff use libtiff (TIFF file format)" | |
77 | ac_help="$ac_help | |
78 | --with-opengl use OpenGL (or Mesa)" | |
79 | ac_help="$ac_help | |
80 | --with-odbc use the IODBC and wxODBC classes" | |
81 | ac_help="$ac_help | |
82 | --enable-shared create shared library code" | |
83 | ac_help="$ac_help | |
84 | --enable-optimise create optimised code" | |
85 | ac_help="$ac_help | |
86 | --enable-debug same as debug_flag and debug_info" | |
87 | ac_help="$ac_help | |
88 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" | |
89 | ac_help="$ac_help | |
90 | --enable-debug_info create code with debugging information" | |
91 | ac_help="$ac_help | |
92 | --enable-debug_gdb create code with extra GDB debugging information" | |
93 | ac_help="$ac_help | |
94 | --enable-debug_cntxt use wxDebugContext" | |
95 | ac_help="$ac_help | |
96 | --enable-mem_tracing create code with memory tracing" | |
97 | ac_help="$ac_help | |
98 | --enable-profile create code with profiling information" | |
99 | ac_help="$ac_help | |
100 | --enable-no_rtti create code without RTTI information" | |
101 | ac_help="$ac_help | |
102 | --enable-no_exceptions create code without exceptions information" | |
103 | ac_help="$ac_help | |
104 | --enable-permissive compile code disregarding strict ANSI" | |
105 | ac_help="$ac_help | |
106 | --enable-no_deps create code without dependency information" | |
107 | ac_help="$ac_help | |
108 | --enable-intl use internationalization system" | |
109 | ac_help="$ac_help | |
110 | --enable-config use wxConfig (and derived) classes" | |
111 | ac_help="$ac_help | |
112 | --enable-sockets use socket/network classes" | |
113 | ac_help="$ac_help | |
114 | --enable-dialupman use dialup network classes" | |
115 | ac_help="$ac_help | |
116 | --enable-ipc use interprocess communication (wxSocket etc.)" | |
117 | ac_help="$ac_help | |
118 | --enable-apple_ieee use the Apple IEEE codec" | |
119 | ac_help="$ac_help | |
120 | --enable-timedate use date/time classes" | |
121 | ac_help="$ac_help | |
122 | --enable-wave use wxWave class" | |
123 | ac_help="$ac_help | |
124 | --enable-fraction use wxFraction class" | |
125 | ac_help="$ac_help | |
126 | --enable-dynlib use wxLibrary class for DLL loading" | |
127 | ac_help="$ac_help | |
128 | --enable-longlong use wxLongLong class" | |
129 | ac_help="$ac_help | |
130 | --enable-log use logging system" | |
131 | ac_help="$ac_help | |
132 | --enable-streams use wxStream etc classes" | |
133 | ac_help="$ac_help | |
134 | --enable-file use wxFile classes" | |
135 | ac_help="$ac_help | |
136 | --enable-textfile use wxTextFile classes" | |
137 | ac_help="$ac_help | |
138 | --enable-unicode compile wxString with Unicode support" | |
139 | ac_help="$ac_help | |
140 | --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs" | |
141 | ac_help="$ac_help | |
142 | --enable-wxprintfv use wxWindows implementation of vprintf()" | |
143 | ac_help="$ac_help | |
144 | --enable-joystick compile in joystick support (Linux only)" | |
145 | ac_help="$ac_help | |
146 | --enable-std_iostreams use standard C++ stream classes" | |
147 | ac_help="$ac_help | |
148 | --enable-fs_inet use virtual HTTP/FTP filesystems" | |
149 | ac_help="$ac_help | |
150 | --enable-fs_zip use virtual ZIP filesystems" | |
151 | ac_help="$ac_help | |
152 | --enable-zipstream use wxZipInputStream" | |
153 | ac_help="$ac_help | |
154 | --enable-threads use threads" | |
155 | ac_help="$ac_help | |
156 | --enable-serial use class serialization" | |
157 | ac_help="$ac_help | |
158 | --enable-docview use document view architecture" | |
159 | ac_help="$ac_help | |
160 | --enable-help use help (using external browser at present)" | |
161 | ac_help="$ac_help | |
162 | --enable-constraints use layout-constraints system" | |
163 | ac_help="$ac_help | |
164 | --enable-printarch use printing architecture" | |
165 | ac_help="$ac_help | |
166 | --enable-mdi use multiple document interface architecture" | |
167 | ac_help="$ac_help | |
168 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" | |
169 | ac_help="$ac_help | |
170 | --enable-prologio use Prolog IO library" | |
171 | ac_help="$ac_help | |
172 | --enable-resources use wxWindows resources" | |
173 | ac_help="$ac_help | |
174 | --enable-xresources use X resources for save (default for gtk+)" | |
175 | ac_help="$ac_help | |
176 | --enable-clipboard use wxClipboard classes" | |
177 | ac_help="$ac_help | |
178 | --enable-dnd use Drag'n'Drop classes" | |
179 | ac_help="$ac_help | |
180 | --enable-wxtree make wxTree library" | |
181 | ac_help="$ac_help | |
182 | --enable-controls use all usual controls" | |
183 | ac_help="$ac_help | |
184 | --enable-accel use accelerators" | |
185 | ac_help="$ac_help | |
186 | --enable-caret use wxCaret class" | |
187 | ac_help="$ac_help | |
188 | --enable-bmpbutton use wxBitmapButton class" | |
189 | ac_help="$ac_help | |
190 | --enable-checkbox use wxCheckBox class" | |
191 | ac_help="$ac_help | |
192 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" | |
193 | ac_help="$ac_help | |
194 | --enable-choice use wxChoice class" | |
195 | ac_help="$ac_help | |
196 | --enable-combobox use wxComboBox classes" | |
197 | ac_help="$ac_help | |
198 | --enable-gauge use wxGauge class" | |
199 | ac_help="$ac_help | |
200 | --enable-grid use wxGrid class" | |
201 | ac_help="$ac_help | |
202 | --enable-newgrid use new wxGrid class" | |
203 | ac_help="$ac_help | |
204 | --enable-imaglist use wxImageList class" | |
205 | ac_help="$ac_help | |
206 | --enable-listbox use wxListBox class" | |
207 | ac_help="$ac_help | |
208 | --enable-listctrl use wxListCtrl class" | |
209 | ac_help="$ac_help | |
210 | --enable-notebook use wxNotebook class" | |
211 | ac_help="$ac_help | |
212 | --enable-radiobox use wxRadioBox class" | |
213 | ac_help="$ac_help | |
214 | --enable-radiobtn use wxRadioButton class" | |
215 | ac_help="$ac_help | |
216 | --enable-sash use wxSashWindow class" | |
217 | ac_help="$ac_help | |
218 | --enable-scrollbar use wxScrollBar class and scrollable windows" | |
219 | ac_help="$ac_help | |
220 | --enable-slider use wxSlider class" | |
221 | ac_help="$ac_help | |
222 | --enable-spinbtn use wxSpinButton class" | |
223 | ac_help="$ac_help | |
224 | --enable-spinctrl use wxSpinCtrl class" | |
225 | ac_help="$ac_help | |
226 | --enable-splitter use wxSplitterWindow class" | |
227 | ac_help="$ac_help | |
228 | --enable-statbmp use wxStaticBitmap class" | |
229 | ac_help="$ac_help | |
230 | --enable-statbox use wxStaticBox class" | |
231 | ac_help="$ac_help | |
232 | --enable-statline use wxStaticLine class" | |
233 | ac_help="$ac_help | |
234 | --enable-statusbar use wxStatusBar class" | |
235 | ac_help="$ac_help | |
236 | --enable-tabdialog use wxTabControl class" | |
237 | ac_help="$ac_help | |
238 | --enable-toolbar use wxToolBar class" | |
239 | ac_help="$ac_help | |
240 | --enable-treectrl use wxTreeCtrl class" | |
241 | ac_help="$ac_help | |
242 | --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)" | |
243 | ac_help="$ac_help | |
244 | --enable-dirdlg use wxDirDialog" | |
245 | ac_help="$ac_help | |
246 | --enable-textdlg use wxTextDialog" | |
247 | ac_help="$ac_help | |
248 | --enable-tipdlg use startup tips" | |
249 | ac_help="$ac_help | |
250 | --enable-progressdlg use wxProgressDialog" | |
251 | ac_help="$ac_help | |
252 | --enable-miniframe use wxMiniFrame class" | |
253 | ac_help="$ac_help | |
254 | --enable-html use wxHTML sub-library" | |
255 | ac_help="$ac_help | |
256 | --enable-tooltips use wxToolTip class" | |
257 | ac_help="$ac_help | |
258 | --enable-splines use spline drawing code" | |
259 | ac_help="$ac_help | |
260 | --enable-validators use wxValidator and derived classes" | |
261 | ac_help="$ac_help | |
262 | --enable-busyinfo use wxBusyInfo" | |
263 | ac_help="$ac_help | |
264 | --enable-gif use gif images (GIF file format)" | |
265 | ac_help="$ac_help | |
266 | --enable-pcx use pcx images (PCX file format)" | |
267 | ac_help="$ac_help | |
268 | --enable-pnm use pnm images (PNM file format)" | |
269 | ac_help="$ac_help | |
270 | --with-x use the X Window System" | |
271 | ||
272 | # Initialize some variables set by options. | |
273 | # The variables have the same names as the options, with | |
274 | # dashes changed to underlines. | |
275 | build=NONE | |
276 | cache_file=./config.cache | |
277 | exec_prefix=NONE | |
278 | host=NONE | |
279 | no_create= | |
280 | nonopt=NONE | |
281 | no_recursion= | |
282 | prefix=NONE | |
283 | program_prefix=NONE | |
284 | program_suffix=NONE | |
285 | program_transform_name=s,x,x, | |
286 | silent= | |
287 | site= | |
288 | srcdir= | |
289 | target=NONE | |
290 | verbose= | |
291 | x_includes=NONE | |
292 | x_libraries=NONE | |
293 | bindir='${exec_prefix}/bin' | |
294 | sbindir='${exec_prefix}/sbin' | |
295 | libexecdir='${exec_prefix}/libexec' | |
296 | datadir='${prefix}/share' | |
297 | sysconfdir='${prefix}/etc' | |
298 | sharedstatedir='${prefix}/com' | |
299 | localstatedir='${prefix}/var' | |
300 | libdir='${exec_prefix}/lib' | |
301 | includedir='${prefix}/include' | |
302 | oldincludedir='/usr/include' | |
303 | infodir='${prefix}/info' | |
304 | mandir='${prefix}/man' | |
305 | ||
306 | # Initialize some other variables. | |
307 | subdirs= | |
308 | MFLAGS= MAKEFLAGS= | |
309 | SHELL=${CONFIG_SHELL-/bin/sh} | |
310 | # Maximum number of lines to put in a shell here document. | |
311 | ac_max_here_lines=12 | |
312 | ||
313 | ac_prev= | |
314 | for ac_option | |
315 | do | |
316 | ||
317 | # If the previous option needs an argument, assign it. | |
318 | if test -n "$ac_prev"; then | |
319 | eval "$ac_prev=\$ac_option" | |
320 | ac_prev= | |
321 | continue | |
322 | fi | |
323 | ||
324 | case "$ac_option" in | |
325 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
326 | *) ac_optarg= ;; | |
327 | esac | |
328 | ||
329 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
330 | ||
331 | case "$ac_option" in | |
332 | ||
333 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
334 | ac_prev=bindir ;; | |
335 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
336 | bindir="$ac_optarg" ;; | |
337 | ||
338 | -build | --build | --buil | --bui | --bu) | |
339 | ac_prev=build ;; | |
340 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
341 | build="$ac_optarg" ;; | |
342 | ||
343 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
344 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
345 | ac_prev=cache_file ;; | |
346 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
347 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
348 | cache_file="$ac_optarg" ;; | |
349 | ||
350 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
351 | ac_prev=datadir ;; | |
352 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
353 | | --da=*) | |
354 | datadir="$ac_optarg" ;; | |
355 | ||
356 | -disable-* | --disable-*) | |
357 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
358 | # Reject names that are not valid shell variable names. | |
359 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
360 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
361 | fi | |
362 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
363 | eval "enable_${ac_feature}=no" ;; | |
364 | ||
365 | -enable-* | --enable-*) | |
366 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
367 | # Reject names that are not valid shell variable names. | |
368 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
369 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
370 | fi | |
371 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
372 | case "$ac_option" in | |
373 | *=*) ;; | |
374 | *) ac_optarg=yes ;; | |
375 | esac | |
376 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
377 | ||
378 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
379 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
380 | | --exec | --exe | --ex) | |
381 | ac_prev=exec_prefix ;; | |
382 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
383 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
384 | | --exec=* | --exe=* | --ex=*) | |
385 | exec_prefix="$ac_optarg" ;; | |
386 | ||
387 | -gas | --gas | --ga | --g) | |
388 | # Obsolete; use --with-gas. | |
389 | with_gas=yes ;; | |
390 | ||
391 | -help | --help | --hel | --he) | |
392 | # Omit some internal or obsolete options to make the list less imposing. | |
393 | # This message is too long to be a string in the A/UX 3.1 sh. | |
394 | cat << EOF | |
395 | Usage: configure [options] [host] | |
396 | Options: [defaults in brackets after descriptions] | |
397 | Configuration: | |
398 | --cache-file=FILE cache test results in FILE | |
399 | --help print this message | |
400 | --no-create do not create output files | |
401 | --quiet, --silent do not print \`checking...' messages | |
402 | --version print the version of autoconf that created configure | |
403 | Directory and file names: | |
404 | --prefix=PREFIX install architecture-independent files in PREFIX | |
405 | [$ac_default_prefix] | |
406 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
407 | [same as prefix] | |
408 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
409 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
410 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
411 | --datadir=DIR read-only architecture-independent data in DIR | |
412 | [PREFIX/share] | |
413 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
414 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
415 | [PREFIX/com] | |
416 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
417 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
418 | --includedir=DIR C header files in DIR [PREFIX/include] | |
419 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
420 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
421 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
422 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
423 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
424 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
425 | --program-transform-name=PROGRAM | |
426 | run sed PROGRAM on installed program names | |
427 | EOF | |
428 | cat << EOF | |
429 | Host type: | |
430 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
431 | --host=HOST configure for HOST [guessed] | |
432 | --target=TARGET configure for TARGET [TARGET=HOST] | |
433 | Features and packages: | |
434 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
435 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
436 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
437 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
438 | --x-includes=DIR X include files are in DIR | |
439 | --x-libraries=DIR X library files are in DIR | |
440 | EOF | |
441 | if test -n "$ac_help"; then | |
442 | echo "--enable and --with options recognized:$ac_help" | |
443 | fi | |
444 | exit 0 ;; | |
445 | ||
446 | -host | --host | --hos | --ho) | |
447 | ac_prev=host ;; | |
448 | -host=* | --host=* | --hos=* | --ho=*) | |
449 | host="$ac_optarg" ;; | |
450 | ||
451 | -includedir | --includedir | --includedi | --included | --include \ | |
452 | | --includ | --inclu | --incl | --inc) | |
453 | ac_prev=includedir ;; | |
454 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
455 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
456 | includedir="$ac_optarg" ;; | |
457 | ||
458 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
459 | ac_prev=infodir ;; | |
460 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
461 | infodir="$ac_optarg" ;; | |
462 | ||
463 | -libdir | --libdir | --libdi | --libd) | |
464 | ac_prev=libdir ;; | |
465 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
466 | libdir="$ac_optarg" ;; | |
467 | ||
468 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
469 | | --libexe | --libex | --libe) | |
470 | ac_prev=libexecdir ;; | |
471 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
472 | | --libexe=* | --libex=* | --libe=*) | |
473 | libexecdir="$ac_optarg" ;; | |
474 | ||
475 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
476 | | --localstate | --localstat | --localsta | --localst \ | |
477 | | --locals | --local | --loca | --loc | --lo) | |
478 | ac_prev=localstatedir ;; | |
479 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
480 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
481 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
482 | localstatedir="$ac_optarg" ;; | |
483 | ||
484 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
485 | ac_prev=mandir ;; | |
486 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
487 | mandir="$ac_optarg" ;; | |
488 | ||
489 | -nfp | --nfp | --nf) | |
490 | # Obsolete; use --without-fp. | |
491 | with_fp=no ;; | |
492 | ||
493 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
494 | | --no-cr | --no-c) | |
495 | no_create=yes ;; | |
496 | ||
497 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
498 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
499 | no_recursion=yes ;; | |
500 | ||
501 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
502 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
503 | | --oldin | --oldi | --old | --ol | --o) | |
504 | ac_prev=oldincludedir ;; | |
505 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
506 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
507 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
508 | oldincludedir="$ac_optarg" ;; | |
509 | ||
510 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
511 | ac_prev=prefix ;; | |
512 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
513 | prefix="$ac_optarg" ;; | |
514 | ||
515 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
516 | | --program-pre | --program-pr | --program-p) | |
517 | ac_prev=program_prefix ;; | |
518 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
519 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
520 | program_prefix="$ac_optarg" ;; | |
521 | ||
522 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
523 | | --program-suf | --program-su | --program-s) | |
524 | ac_prev=program_suffix ;; | |
525 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
526 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
527 | program_suffix="$ac_optarg" ;; | |
528 | ||
529 | -program-transform-name | --program-transform-name \ | |
530 | | --program-transform-nam | --program-transform-na \ | |
531 | | --program-transform-n | --program-transform- \ | |
532 | | --program-transform | --program-transfor \ | |
533 | | --program-transfo | --program-transf \ | |
534 | | --program-trans | --program-tran \ | |
535 | | --progr-tra | --program-tr | --program-t) | |
536 | ac_prev=program_transform_name ;; | |
537 | -program-transform-name=* | --program-transform-name=* \ | |
538 | | --program-transform-nam=* | --program-transform-na=* \ | |
539 | | --program-transform-n=* | --program-transform-=* \ | |
540 | | --program-transform=* | --program-transfor=* \ | |
541 | | --program-transfo=* | --program-transf=* \ | |
542 | | --program-trans=* | --program-tran=* \ | |
543 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
544 | program_transform_name="$ac_optarg" ;; | |
545 | ||
546 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
547 | | -silent | --silent | --silen | --sile | --sil) | |
548 | silent=yes ;; | |
549 | ||
550 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
551 | ac_prev=sbindir ;; | |
552 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
553 | | --sbi=* | --sb=*) | |
554 | sbindir="$ac_optarg" ;; | |
555 | ||
556 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
557 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
558 | | --sharedst | --shareds | --shared | --share | --shar \ | |
559 | | --sha | --sh) | |
560 | ac_prev=sharedstatedir ;; | |
561 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
562 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
563 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
564 | | --sha=* | --sh=*) | |
565 | sharedstatedir="$ac_optarg" ;; | |
566 | ||
567 | -site | --site | --sit) | |
568 | ac_prev=site ;; | |
569 | -site=* | --site=* | --sit=*) | |
570 | site="$ac_optarg" ;; | |
571 | ||
572 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
573 | ac_prev=srcdir ;; | |
574 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
575 | srcdir="$ac_optarg" ;; | |
576 | ||
577 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
578 | | --syscon | --sysco | --sysc | --sys | --sy) | |
579 | ac_prev=sysconfdir ;; | |
580 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
581 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
582 | sysconfdir="$ac_optarg" ;; | |
583 | ||
584 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
585 | ac_prev=target ;; | |
586 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
587 | target="$ac_optarg" ;; | |
588 | ||
589 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
590 | verbose=yes ;; | |
591 | ||
592 | -version | --version | --versio | --versi | --vers) | |
593 | echo "configure generated by autoconf version 2.14" | |
594 | exit 0 ;; | |
595 | ||
596 | -with-* | --with-*) | |
597 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
598 | # Reject names that are not valid shell variable names. | |
599 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
600 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
601 | fi | |
602 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
603 | case "$ac_option" in | |
604 | *=*) ;; | |
605 | *) ac_optarg=yes ;; | |
606 | esac | |
607 | eval "with_${ac_package}='$ac_optarg'" ;; | |
608 | ||
609 | -without-* | --without-*) | |
610 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
611 | # Reject names that are not valid shell variable names. | |
612 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
613 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
614 | fi | |
615 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
616 | eval "with_${ac_package}=no" ;; | |
617 | ||
618 | --x) | |
619 | # Obsolete; use --with-x. | |
620 | with_x=yes ;; | |
621 | ||
622 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
623 | | --x-incl | --x-inc | --x-in | --x-i) | |
624 | ac_prev=x_includes ;; | |
625 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
626 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
627 | x_includes="$ac_optarg" ;; | |
628 | ||
629 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
630 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
631 | ac_prev=x_libraries ;; | |
632 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
633 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
634 | x_libraries="$ac_optarg" ;; | |
635 | ||
636 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
637 | ;; | |
638 | ||
639 | *) | |
640 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
641 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
642 | fi | |
643 | if test "x$nonopt" != xNONE; then | |
644 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
645 | fi | |
646 | nonopt="$ac_option" | |
647 | ;; | |
648 | ||
649 | esac | |
650 | done | |
651 | ||
652 | if test -n "$ac_prev"; then | |
653 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
654 | fi | |
655 | ||
656 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
657 | ||
658 | # File descriptor usage: | |
659 | # 0 standard input | |
660 | # 1 file creation | |
661 | # 2 errors and warnings | |
662 | # 3 some systems may open it to /dev/tty | |
663 | # 4 used on the Kubota Titan | |
664 | # 6 checking for... messages and results | |
665 | # 5 compiler messages saved in config.log | |
666 | if test "$silent" = yes; then | |
667 | exec 6>/dev/null | |
668 | else | |
669 | exec 6>&1 | |
670 | fi | |
671 | exec 5>./config.log | |
672 | ||
673 | echo "\ | |
674 | This file contains any messages produced by compilers while | |
675 | running configure, to aid debugging if configure makes a mistake. | |
676 | " 1>&5 | |
677 | ||
678 | # Strip out --no-create and --no-recursion so they do not pile up. | |
679 | # Also quote any args containing shell metacharacters. | |
680 | ac_configure_args= | |
681 | for ac_arg | |
682 | do | |
683 | case "$ac_arg" in | |
684 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
685 | | --no-cr | --no-c) ;; | |
686 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
687 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
688 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
689 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
690 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
691 | esac | |
692 | done | |
693 | ||
694 | # NLS nuisances. | |
695 | # Only set these to C if already set. These must not be set unconditionally | |
696 | # because not all systems understand e.g. LANG=C (notably SCO). | |
697 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
698 | # Non-C LC_CTYPE values break the ctype check. | |
699 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
700 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
701 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
702 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
703 | ||
704 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
705 | rm -rf conftest* confdefs.h | |
706 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
707 | echo > confdefs.h | |
708 | ||
709 | # A filename unique to this package, relative to the directory that | |
710 | # configure is in, which we can look for to find out if srcdir is correct. | |
711 | ac_unique_file=wx-config.in | |
712 | ||
713 | # Find the source files, if location was not specified. | |
714 | if test -z "$srcdir"; then | |
715 | ac_srcdir_defaulted=yes | |
716 | # Try the directory containing this script, then its parent. | |
717 | ac_prog=$0 | |
718 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
719 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
720 | srcdir=$ac_confdir | |
721 | if test ! -r $srcdir/$ac_unique_file; then | |
722 | srcdir=.. | |
723 | fi | |
724 | else | |
725 | ac_srcdir_defaulted=no | |
726 | fi | |
727 | if test ! -r $srcdir/$ac_unique_file; then | |
728 | if test "$ac_srcdir_defaulted" = yes; then | |
729 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
730 | else | |
731 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
732 | fi | |
733 | fi | |
734 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
735 | ||
736 | # Prefer explicitly selected file to automatically selected ones. | |
737 | if test -z "$CONFIG_SITE"; then | |
738 | if test "x$prefix" != xNONE; then | |
739 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
740 | else | |
741 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
742 | fi | |
743 | fi | |
744 | for ac_site_file in $CONFIG_SITE; do | |
745 | if test -r "$ac_site_file"; then | |
746 | echo "loading site script $ac_site_file" | |
747 | . "$ac_site_file" | |
748 | fi | |
749 | done | |
750 | ||
751 | if test -r "$cache_file"; then | |
752 | echo "loading cache $cache_file" | |
753 | . $cache_file | |
754 | else | |
755 | echo "creating cache $cache_file" | |
756 | > $cache_file | |
757 | fi | |
758 | ||
759 | ac_ext=c | |
760 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
761 | ac_cpp='$CPP $CPPFLAGS' | |
762 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
763 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
764 | cross_compiling=$ac_cv_prog_cc_cross | |
765 | ||
766 | ac_exeext= | |
767 | ac_objext=o | |
768 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
769 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
770 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
771 | ac_n= ac_c=' | |
772 | ' ac_t=' ' | |
773 | else | |
774 | ac_n=-n ac_c= ac_t= | |
775 | fi | |
776 | else | |
777 | ac_n= ac_c='\c' ac_t= | |
778 | fi | |
779 | ||
780 | ||
781 | ||
782 | ac_aux_dir= | |
783 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
784 | if test -f $ac_dir/install-sh; then | |
785 | ac_aux_dir=$ac_dir | |
786 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
787 | break | |
788 | elif test -f $ac_dir/install.sh; then | |
789 | ac_aux_dir=$ac_dir | |
790 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
791 | break | |
792 | fi | |
793 | done | |
794 | if test -z "$ac_aux_dir"; then | |
795 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
796 | fi | |
797 | ac_config_guess=$ac_aux_dir/config.guess | |
798 | ac_config_sub=$ac_aux_dir/config.sub | |
799 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
800 | ||
801 | ||
802 | # Do some error checking and defaulting for the host and target type. | |
803 | # The inputs are: | |
804 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
805 | # | |
806 | # The rules are: | |
807 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
808 | # same time. | |
809 | # 2. Host defaults to nonopt. | |
810 | # 3. If nonopt is not specified, then host defaults to the current host, | |
811 | # as determined by config.guess. | |
812 | # 4. Target and build default to nonopt. | |
813 | # 5. If nonopt is not specified, then target and build default to host. | |
814 | ||
815 | # The aliases save the names the user supplied, while $host etc. | |
816 | # will get canonicalized. | |
817 | case $host---$target---$nonopt in | |
818 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
819 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
820 | esac | |
821 | ||
822 | ||
823 | # Make sure we can run config.sub. | |
824 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
825 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
826 | fi | |
827 | ||
828 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
829 | echo "configure:830: checking host system type" >&5 | |
830 | ||
831 | host_alias=$host | |
832 | case "$host_alias" in | |
833 | NONE) | |
834 | case $nonopt in | |
835 | NONE) | |
836 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
837 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
838 | fi ;; | |
839 | *) host_alias=$nonopt ;; | |
840 | esac ;; | |
841 | esac | |
842 | ||
843 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
844 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
845 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
846 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
847 | echo "$ac_t""$host" 1>&6 | |
848 | ||
849 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
850 | echo "configure:851: checking target system type" >&5 | |
851 | ||
852 | target_alias=$target | |
853 | case "$target_alias" in | |
854 | NONE) | |
855 | case $nonopt in | |
856 | NONE) target_alias=$host_alias ;; | |
857 | *) target_alias=$nonopt ;; | |
858 | esac ;; | |
859 | esac | |
860 | ||
861 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
862 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
863 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
864 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
865 | echo "$ac_t""$target" 1>&6 | |
866 | ||
867 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
868 | echo "configure:869: checking build system type" >&5 | |
869 | ||
870 | build_alias=$build | |
871 | case "$build_alias" in | |
872 | NONE) | |
873 | case $nonopt in | |
874 | NONE) build_alias=$host_alias ;; | |
875 | *) build_alias=$nonopt ;; | |
876 | esac ;; | |
877 | esac | |
878 | ||
879 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
880 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
881 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
882 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
883 | echo "$ac_t""$build" 1>&6 | |
884 | ||
885 | test "$host_alias" != "$target_alias" && | |
886 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
887 | NONENONEs,x,x, && | |
888 | program_prefix=${target_alias}- | |
889 | ||
890 | ||
891 | ||
892 | WX_MAJOR_VERSION_NUMBER=2 | |
893 | WX_MINOR_VERSION_NUMBER=1 | |
894 | WX_RELEASE_NUMBER=12 | |
895 | ||
896 | WX_INTERFACE_AGE=0 | |
897 | WX_BINARY_AGE=0 | |
898 | ||
899 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER | |
900 | ||
901 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER | |
902 | WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE` | |
903 | WX_REVISION=$WX_INTERFACE_AGE | |
904 | WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE` | |
905 | ||
906 | ||
907 | USE_UNIX=1 | |
908 | USE_WIN32=0 | |
909 | USE_LINUX= | |
910 | USE_SGI= | |
911 | USE_HPUX= | |
912 | USE_SYSV= | |
913 | USE_SVR4= | |
914 | USE_AIX= | |
915 | USE_SUN= | |
916 | USE_SOLARIS= | |
917 | USE_SUNOS= | |
918 | USE_ALPHA= | |
919 | USE_OSF= | |
920 | USE_BSD= | |
921 | USE_FREEBSD= | |
922 | USE_VMS= | |
923 | USE_ULTRIX= | |
924 | USE_CYGWIN= | |
925 | USE_MINGW= | |
926 | USE_DATA_GENERAL= | |
927 | ||
928 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 | |
929 | ||
930 | ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE" | |
931 | ||
932 | DEFAULT_wxUSE_GTK=0 | |
933 | DEFAULT_wxUSE_MOTIF=0 | |
934 | DEFAULT_wxUSE_MSW=0 | |
935 | DEFAULT_wxUSE_WINE=0 | |
936 | ||
937 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
938 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
939 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
940 | DEFAULT_DEFAULT_wxUSE_WINE=0 | |
941 | ||
942 | case "${host}" in | |
943 | *-hp-hpux* ) | |
944 | USE_HPUX=1 | |
945 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
946 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
947 | cat >> confdefs.h <<\EOF | |
948 | #define __HPUX__ 1 | |
949 | EOF | |
950 | ||
951 | ;; | |
952 | *-*-linux* ) | |
953 | USE_LINUX=1 | |
954 | cat >> confdefs.h <<\EOF | |
955 | #define __LINUX__ 1 | |
956 | EOF | |
957 | ||
958 | TMP=`uname -m` | |
959 | if test "x$TMP" = "xalpha"; then | |
960 | USE_ALPHA=1 | |
961 | cat >> confdefs.h <<\EOF | |
962 | #define __ALPHA__ 1 | |
963 | EOF | |
964 | ||
965 | fi | |
966 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
967 | ;; | |
968 | *-*-irix5* | *-*-irix6* ) | |
969 | USE_SGI=1 | |
970 | USE_SVR4=1 | |
971 | cat >> confdefs.h <<\EOF | |
972 | #define __SGI__ 1 | |
973 | EOF | |
974 | ||
975 | cat >> confdefs.h <<\EOF | |
976 | #define __SVR4__ 1 | |
977 | EOF | |
978 | ||
979 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
980 | ;; | |
981 | *-*-solaris2* ) | |
982 | USE_SUN=1 | |
983 | USE_SOLARIS=1 | |
984 | USE_SVR4=1 | |
985 | cat >> confdefs.h <<\EOF | |
986 | #define __SUN__ 1 | |
987 | EOF | |
988 | ||
989 | cat >> confdefs.h <<\EOF | |
990 | #define __SOLARIS__ 1 | |
991 | EOF | |
992 | ||
993 | cat >> confdefs.h <<\EOF | |
994 | #define __SVR4__ 1 | |
995 | EOF | |
996 | ||
997 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
998 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
999 | ;; | |
1000 | *-*-sunos4* ) | |
1001 | USE_SUN=1 | |
1002 | USE_SUNOS=1 | |
1003 | USE_BSD=1 | |
1004 | cat >> confdefs.h <<\EOF | |
1005 | #define __SUN__ 1 | |
1006 | EOF | |
1007 | ||
1008 | cat >> confdefs.h <<\EOF | |
1009 | #define __SUNOS__ 1 | |
1010 | EOF | |
1011 | ||
1012 | cat >> confdefs.h <<\EOF | |
1013 | #define __BSD__ 1 | |
1014 | EOF | |
1015 | ||
1016 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1017 | ;; | |
1018 | *-*-freebsd* | *-*-netbsd*) | |
1019 | USE_BSD=1 | |
1020 | USE_FREEBSD=1 | |
1021 | cat >> confdefs.h <<\EOF | |
1022 | #define __FREEBSD__ 1 | |
1023 | EOF | |
1024 | ||
1025 | cat >> confdefs.h <<\EOF | |
1026 | #define __BSD__ 1 | |
1027 | EOF | |
1028 | ||
1029 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1030 | ;; | |
1031 | *-*-osf* ) | |
1032 | USE_ALPHA=1 | |
1033 | USE_OSF=1 | |
1034 | cat >> confdefs.h <<\EOF | |
1035 | #define __ALPHA__ 1 | |
1036 | EOF | |
1037 | ||
1038 | cat >> confdefs.h <<\EOF | |
1039 | #define __OSF__ 1 | |
1040 | EOF | |
1041 | ||
1042 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1043 | ;; | |
1044 | *-*-dgux5* ) | |
1045 | USE_ALPHA=1 | |
1046 | USE_SVR4=1 | |
1047 | cat >> confdefs.h <<\EOF | |
1048 | #define __ALPHA__ 1 | |
1049 | EOF | |
1050 | ||
1051 | cat >> confdefs.h <<\EOF | |
1052 | #define __SVR4__ 1 | |
1053 | EOF | |
1054 | ||
1055 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1056 | ;; | |
1057 | *-*-sysv5* ) | |
1058 | USE_SYSV=1 | |
1059 | USE_SVR4=1 | |
1060 | cat >> confdefs.h <<\EOF | |
1061 | #define __SYSV__ 1 | |
1062 | EOF | |
1063 | ||
1064 | cat >> confdefs.h <<\EOF | |
1065 | #define __SVR4__ 1 | |
1066 | EOF | |
1067 | ||
1068 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1069 | ;; | |
1070 | *-*-aix* ) | |
1071 | USE_AIX=1 | |
1072 | USE_SYSV=1 | |
1073 | USE_SVR4=1 | |
1074 | cat >> confdefs.h <<\EOF | |
1075 | #define __AIX__ 1 | |
1076 | EOF | |
1077 | ||
1078 | cat >> confdefs.h <<\EOF | |
1079 | #define __SYSV__ 1 | |
1080 | EOF | |
1081 | ||
1082 | cat >> confdefs.h <<\EOF | |
1083 | #define __SVR4__ 1 | |
1084 | EOF | |
1085 | ||
1086 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1087 | ;; | |
1088 | ||
1089 | *-*-cygwin32* | *-*-mingw32* ) | |
1090 | USE_UNIX=0 | |
1091 | USE_WIN32=1 | |
1092 | cat >> confdefs.h <<\EOF | |
1093 | #define __WIN32__ 1 | |
1094 | EOF | |
1095 | ||
1096 | cat >> confdefs.h <<\EOF | |
1097 | #define __WIN95__ 1 | |
1098 | EOF | |
1099 | ||
1100 | cat >> confdefs.h <<\EOF | |
1101 | #define __WINDOWS__ 1 | |
1102 | EOF | |
1103 | ||
1104 | cat >> confdefs.h <<\EOF | |
1105 | #define __GNUWIN32__ 1 | |
1106 | EOF | |
1107 | ||
1108 | cat >> confdefs.h <<\EOF | |
1109 | #define STRICT 1 | |
1110 | EOF | |
1111 | ||
1112 | cat >> confdefs.h <<\EOF | |
1113 | #define WINVER 0x0400 | |
1114 | EOF | |
1115 | ||
1116 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
1117 | ;; | |
1118 | ||
1119 | *-pc-os2_emx ) | |
1120 | cat >> confdefs.h <<\EOF | |
1121 | #define __EMX__ 1 | |
1122 | EOF | |
1123 | ||
1124 | ;; | |
1125 | ||
1126 | *) | |
1127 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } | |
1128 | esac | |
1129 | ||
1130 | if test "$USE_UNIX" = 1 ; then | |
1131 | wxUSE_UNIX=yes | |
1132 | cat >> confdefs.h <<\EOF | |
1133 | #define __UNIX__ 1 | |
1134 | EOF | |
1135 | ||
1136 | SRC_SUBDIRS="$SRC_SUBDIRS unix" | |
1137 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix" | |
1138 | fi | |
1139 | ||
1140 | if test "$USE_LINUX" = 1; then | |
1141 | echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6 | |
1142 | echo "configure:1143: checking for gettext in -lc" >&5 | |
1143 | ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'` | |
1144 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1145 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1146 | else | |
1147 | ac_save_LIBS="$LIBS" | |
1148 | LIBS="-lc $LIBS" | |
1149 | cat > conftest.$ac_ext <<EOF | |
1150 | #line 1151 "configure" | |
1151 | #include "confdefs.h" | |
1152 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1153 | /* We use char because int might match the return type of a gcc2 | |
1154 | builtin and then its argument prototype would still apply. */ | |
1155 | char gettext(); | |
1156 | ||
1157 | int main() { | |
1158 | gettext() | |
1159 | ; return 0; } | |
1160 | EOF | |
1161 | if { (eval echo configure:1162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
1162 | rm -rf conftest* | |
1163 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1164 | else | |
1165 | echo "configure: failed program was:" >&5 | |
1166 | cat conftest.$ac_ext >&5 | |
1167 | rm -rf conftest* | |
1168 | eval "ac_cv_lib_$ac_lib_var=no" | |
1169 | fi | |
1170 | rm -f conftest* | |
1171 | LIBS="$ac_save_LIBS" | |
1172 | ||
1173 | fi | |
1174 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1175 | echo "$ac_t""yes" 1>&6 | |
1176 | cat >> confdefs.h <<\EOF | |
1177 | #define wxHAVE_GLIBC2 1 | |
1178 | EOF | |
1179 | ||
1180 | else | |
1181 | echo "$ac_t""no" 1>&6 | |
1182 | fi | |
1183 | ||
1184 | fi | |
1185 | ||
1186 | ||
1187 | ||
1188 | ||
1189 | wx_arg_cache_file="configarg.cache" | |
1190 | echo "loading argument cache $wx_arg_cache_file" | |
1191 | rm -f ${wx_arg_cache_file}.tmp | |
1192 | touch ${wx_arg_cache_file}.tmp | |
1193 | touch ${wx_arg_cache_file} | |
1194 | ||
1195 | ||
1196 | DEBUG_CONFIGURE=0 | |
1197 | if test $DEBUG_CONFIGURE = 1; then | |
1198 | DEFAULT_wxUSE_THREADS=yes | |
1199 | ||
1200 | DEFAULT_wxUSE_SHARED=yes | |
1201 | DEFAULT_wxUSE_OPTIMISE=yes | |
1202 | DEFAULT_wxUSE_PROFILE=no | |
1203 | DEFAULT_wxUSE_NO_DEPS=no | |
1204 | DEFAULT_wxUSE_NO_RTTI=no | |
1205 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1206 | DEFAULT_wxUSE_PERMISSIVE=no | |
1207 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1208 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1209 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1210 | DEFAULT_wxUSE_MEM_TRACING=no | |
1211 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1212 | DEFAULT_wxUSE_DMALLOC=no | |
1213 | DEFAULT_wxUSE_APPLE_IEEE=no | |
1214 | ||
1215 | DEFAULT_wxUSE_LOG=yes | |
1216 | ||
1217 | DEFAULT_wxUSE_GUI=yes | |
1218 | ||
1219 | DEFAULT_wxUSE_ZLIB=no | |
1220 | DEFAULT_wxUSE_LIBPNG=no | |
1221 | DEFAULT_wxUSE_LIBJPEG=no | |
1222 | DEFAULT_wxUSE_LIBTIFF=no | |
1223 | DEFAULT_wxUSE_ODBC=no | |
1224 | ||
1225 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
1226 | DEFAULT_wxUSE_FILE=no | |
1227 | DEFAULT_wxUSE_TEXTFILE=no | |
1228 | DEFAULT_wxUSE_TIMEDATE=no | |
1229 | DEFAULT_wxUSE_WAVE=no | |
1230 | DEFAULT_wxUSE_INTL=no | |
1231 | DEFAULT_wxUSE_CONFIG=no | |
1232 | DEFAULT_wxUSE_STREAMS=no | |
1233 | DEFAULT_wxUSE_SOCKETS=no | |
1234 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
1235 | DEFAULT_wxUSE_SERIAL=no | |
1236 | DEFAULT_wxUSE_JOYSTICK=no | |
1237 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
1238 | DEFAULT_wxUSE_LONGLONG=no | |
1239 | ||
1240 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1241 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1242 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1243 | ||
1244 | DEFAULT_wxUSE_X_RESOURCES=no | |
1245 | DEFAULT_wxUSE_CLIPBOARD=no | |
1246 | DEFAULT_wxUSE_TOOLTIPS=no | |
1247 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
1248 | DEFAULT_wxUSE_SPLINES=no | |
1249 | ||
1250 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1251 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1252 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1253 | ||
1254 | DEFAULT_wxUSE_PROLOGIO=no | |
1255 | DEFAULT_wxUSE_RESOURCES=no | |
1256 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1257 | DEFAULT_wxUSE_IPC=no | |
1258 | DEFAULT_wxUSE_HELP=no | |
1259 | DEFAULT_wxUSE_WXTREE=no | |
1260 | DEFAULT_wxUSE_METAFILE=no | |
1261 | ||
1262 | DEFAULT_wxUSE_COMMONDLGS=no | |
1263 | DEFAULT_wxUSE_DIRDLG=no | |
1264 | DEFAULT_wxUSE_TEXTDLG=no | |
1265 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
1266 | DEFAULT_wxUSE_PROGRESSDLG=no | |
1267 | DEFAULT_wxUSE_MINIFRAME=no | |
1268 | DEFAULT_wxUSE_HTML=no | |
1269 | DEFAULT_wxUSE_FS_INET=no | |
1270 | DEFAULT_wxUSE_FS_ZIP=no | |
1271 | DEFAULT_wxUSE_BUSYINFO=no | |
1272 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1273 | DEFAULT_wxUSE_VALIDATORS=yes | |
1274 | ||
1275 | DEFAULT_wxUSE_ACCEL=no | |
1276 | DEFAULT_wxUSE_CARET=no | |
1277 | DEFAULT_wxUSE_BMPBUTTON=no | |
1278 | DEFAULT_wxUSE_CHECKBOX=no | |
1279 | DEFAULT_wxUSE_CHECKLST=no | |
1280 | DEFAULT_wxUSE_CHOICE=yes | |
1281 | DEFAULT_wxUSE_COMBOBOX=no | |
1282 | DEFAULT_wxUSE_GAUGE=no | |
1283 | DEFAULT_wxUSE_GRID=no | |
1284 | DEFAULT_wxUSE_NEW_GRID=no | |
1285 | DEFAULT_wxUSE_IMAGLIST=no | |
1286 | DEFAULT_wxUSE_LISTBOX=no | |
1287 | DEFAULT_wxUSE_LISTCTRL=no | |
1288 | DEFAULT_wxUSE_NOTEBOOK=no | |
1289 | DEFAULT_wxUSE_RADIOBOX=no | |
1290 | DEFAULT_wxUSE_RADIOBTN=no | |
1291 | DEFAULT_wxUSE_SASH=no | |
1292 | DEFAULT_wxUSE_SCROLLBAR=no | |
1293 | DEFAULT_wxUSE_SLIDER=no | |
1294 | DEFAULT_wxUSE_SPINBTN=no | |
1295 | DEFAULT_wxUSE_SPINCTRL=no | |
1296 | DEFAULT_wxUSE_SPLITTER=no | |
1297 | DEFAULT_wxUSE_STATBMP=no | |
1298 | DEFAULT_wxUSE_STATBOX=no | |
1299 | DEFAULT_wxUSE_STATLINE=no | |
1300 | DEFAULT_wxUSE_STATUSBAR=yes | |
1301 | DEFAULT_wxUSE_TABDIALOG=no | |
1302 | DEFAULT_wxUSE_TOOLBAR=no | |
1303 | DEFAULT_wxUSE_TREECTRL=no | |
1304 | ||
1305 | DEFAULT_wxUSE_UNICODE=no | |
1306 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1307 | ||
1308 | DEFAULT_wxUSE_GIF=no | |
1309 | DEFAULT_wxUSE_PCX=no | |
1310 | DEFAULT_wxUSE_PNM=no | |
1311 | else | |
1312 | DEFAULT_wxUSE_THREADS=yes | |
1313 | ||
1314 | DEFAULT_wxUSE_SHARED=yes | |
1315 | DEFAULT_wxUSE_OPTIMISE=yes | |
1316 | DEFAULT_wxUSE_PROFILE=no | |
1317 | DEFAULT_wxUSE_NO_DEPS=no | |
1318 | DEFAULT_wxUSE_NO_RTTI=no | |
1319 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1320 | DEFAULT_wxUSE_PERMISSIVE=no | |
1321 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1322 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1323 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1324 | DEFAULT_wxUSE_MEM_TRACING=no | |
1325 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1326 | DEFAULT_wxUSE_DMALLOC=no | |
1327 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
1328 | ||
1329 | DEFAULT_wxUSE_LOG=yes | |
1330 | ||
1331 | DEFAULT_wxUSE_GUI=yes | |
1332 | ||
1333 | DEFAULT_wxUSE_ZLIB=yes | |
1334 | DEFAULT_wxUSE_LIBPNG=yes | |
1335 | DEFAULT_wxUSE_LIBJPEG=yes | |
1336 | DEFAULT_wxUSE_LIBTIFF=yes | |
1337 | DEFAULT_wxUSE_ODBC=yes | |
1338 | ||
1339 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
1340 | DEFAULT_wxUSE_FILE=yes | |
1341 | DEFAULT_wxUSE_TEXTFILE=yes | |
1342 | DEFAULT_wxUSE_TIMEDATE=yes | |
1343 | DEFAULT_wxUSE_WAVE=no | |
1344 | DEFAULT_wxUSE_INTL=yes | |
1345 | DEFAULT_wxUSE_CONFIG=yes | |
1346 | DEFAULT_wxUSE_STREAMS=yes | |
1347 | DEFAULT_wxUSE_SOCKETS=yes | |
1348 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
1349 | DEFAULT_wxUSE_SERIAL=yes | |
1350 | DEFAULT_wxUSE_JOYSTICK=yes | |
1351 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
1352 | DEFAULT_wxUSE_LONGLONG=no | |
1353 | ||
1354 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1355 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1356 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1357 | ||
1358 | DEFAULT_wxUSE_X_RESOURCES=no | |
1359 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1360 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1361 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
1362 | DEFAULT_wxUSE_SPLINES=yes | |
1363 | ||
1364 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1365 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1366 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1367 | ||
1368 | DEFAULT_wxUSE_PROLOGIO=yes | |
1369 | DEFAULT_wxUSE_RESOURCES=yes | |
1370 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1371 | DEFAULT_wxUSE_IPC=yes | |
1372 | DEFAULT_wxUSE_HELP=yes | |
1373 | DEFAULT_wxUSE_WXTREE=yes | |
1374 | DEFAULT_wxUSE_METAFILE=yes | |
1375 | ||
1376 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1377 | DEFAULT_wxUSE_DIRDLG=yes | |
1378 | DEFAULT_wxUSE_TEXTDLG=yes | |
1379 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
1380 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
1381 | DEFAULT_wxUSE_MINIFRAME=yes | |
1382 | DEFAULT_wxUSE_HTML=yes | |
1383 | DEFAULT_wxUSE_FS_INET=yes | |
1384 | DEFAULT_wxUSE_FS_ZIP=yes | |
1385 | DEFAULT_wxUSE_BUSYINFO=yes | |
1386 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1387 | DEFAULT_wxUSE_VALIDATORS=yes | |
1388 | ||
1389 | DEFAULT_wxUSE_ACCEL=yes | |
1390 | DEFAULT_wxUSE_CARET=yes | |
1391 | DEFAULT_wxUSE_BMPBUTTON=yes | |
1392 | DEFAULT_wxUSE_CHECKBOX=yes | |
1393 | DEFAULT_wxUSE_CHECKLST=yes | |
1394 | DEFAULT_wxUSE_CHOICE=yes | |
1395 | DEFAULT_wxUSE_COMBOBOX=yes | |
1396 | DEFAULT_wxUSE_GAUGE=yes | |
1397 | DEFAULT_wxUSE_GRID=yes | |
1398 | DEFAULT_wxUSE_NEW_GRID=no | |
1399 | DEFAULT_wxUSE_IMAGLIST=yes | |
1400 | DEFAULT_wxUSE_LISTBOX=yes | |
1401 | DEFAULT_wxUSE_LISTCTRL=yes | |
1402 | DEFAULT_wxUSE_NOTEBOOK=yes | |
1403 | DEFAULT_wxUSE_RADIOBOX=yes | |
1404 | DEFAULT_wxUSE_RADIOBTN=yes | |
1405 | DEFAULT_wxUSE_SASH=yes | |
1406 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1407 | DEFAULT_wxUSE_SLIDER=yes | |
1408 | DEFAULT_wxUSE_SPINBTN=yes | |
1409 | DEFAULT_wxUSE_SPINCTRL=yes | |
1410 | DEFAULT_wxUSE_SPLITTER=yes | |
1411 | DEFAULT_wxUSE_STATBMP=yes | |
1412 | DEFAULT_wxUSE_STATBOX=yes | |
1413 | DEFAULT_wxUSE_STATLINE=yes | |
1414 | DEFAULT_wxUSE_STATUSBAR=yes | |
1415 | DEFAULT_wxUSE_TABDIALOG=no | |
1416 | DEFAULT_wxUSE_TOOLBAR=yes | |
1417 | DEFAULT_wxUSE_TREECTRL=yes | |
1418 | ||
1419 | DEFAULT_wxUSE_UNICODE=no | |
1420 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1421 | ||
1422 | DEFAULT_wxUSE_GIF=yes | |
1423 | DEFAULT_wxUSE_PCX=yes | |
1424 | DEFAULT_wxUSE_PNM=yes | |
1425 | fi | |
1426 | ||
1427 | ||
1428 | ||
1429 | for toolkit in `echo $ALL_TOOLKITS`; do | |
1430 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1431 | if test "x$LINE" != x ; then | |
1432 | has_toolkit_in_cache=1 | |
1433 | eval "DEFAULT_$LINE" | |
1434 | eval "CACHE_$toolkit=1" | |
1435 | fi | |
1436 | done | |
1437 | ||
1438 | ||
1439 | ||
1440 | echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6 | |
1441 | echo "configure:1442: checking "for --enable-gui"" >&5 | |
1442 | no_cache=0 | |
1443 | # Check whether --enable-gui or --disable-gui was given. | |
1444 | if test "${enable_gui+set}" = set; then | |
1445 | enableval="$enable_gui" | |
1446 | ||
1447 | if test "$enableval" = yes; then | |
1448 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1449 | else | |
1450 | ac_cv_use_gui='wxUSE_GUI=no' | |
1451 | fi | |
1452 | ||
1453 | else | |
1454 | ||
1455 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
1456 | if test "x$LINE" != x ; then | |
1457 | eval "DEFAULT_$LINE" | |
1458 | else | |
1459 | no_cache=1 | |
1460 | fi | |
1461 | ||
1462 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
1463 | ||
1464 | fi | |
1465 | ||
1466 | ||
1467 | eval "$ac_cv_use_gui" | |
1468 | if test "$no_cache" != 1; then | |
1469 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1470 | fi | |
1471 | ||
1472 | if test "$wxUSE_GUI" = yes; then | |
1473 | echo "$ac_t""yes" 1>&6 | |
1474 | else | |
1475 | echo "$ac_t""no" 1>&6 | |
1476 | fi | |
1477 | ||
1478 | ||
1479 | if test "$wxUSE_GUI" = "no"; then | |
1480 | DEFAULT_wxUSE_ZLIB=no | |
1481 | DEFAULT_wxUSE_LIBPNG=no | |
1482 | DEFAULT_wxUSE_LIBJPEG=no | |
1483 | DEFAULT_wxUSE_LIBTIFF=no | |
1484 | DEFAULT_wxUSE_SOCKETS=no | |
1485 | DEFAULT_wxUSE_JOYSTICK=no | |
1486 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1487 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1488 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1489 | DEFAULT_wxUSE_X_RESOURCES=no | |
1490 | DEFAULT_wxUSE_CLIPBOARD=no | |
1491 | DEFAULT_wxUSE_TOOLTIPS=no | |
1492 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
1493 | DEFAULT_wxUSE_SPLINES=no | |
1494 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1495 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1496 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1497 | DEFAULT_wxUSE_PROLOGIO=no | |
1498 | DEFAULT_wxUSE_RESOURCES=no | |
1499 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1500 | DEFAULT_wxUSE_IPC=no | |
1501 | DEFAULT_wxUSE_HELP=no | |
1502 | DEFAULT_wxUSE_WXTREE=no | |
1503 | DEFAULT_wxUSE_METAFILE=no | |
1504 | DEFAULT_wxUSE_COMMONDLGS=no | |
1505 | DEFAULT_wxUSE_DIRDLG=no | |
1506 | DEFAULT_wxUSE_TEXTDLG=no | |
1507 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
1508 | DEFAULT_wxUSE_PROGRESSDLG=no | |
1509 | DEFAULT_wxUSE_MINIFRAME=no | |
1510 | DEFAULT_wxUSE_HTML=no | |
1511 | DEFAULT_wxUSE_FS_INET=no | |
1512 | DEFAULT_wxUSE_FS_ZIP=no | |
1513 | DEFAULT_wxUSE_BUSYINFO=no | |
1514 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1515 | DEFAULT_wxUSE_VALIDATORS=no | |
1516 | DEFAULT_wxUSE_ACCEL=no | |
1517 | DEFAULT_wxUSE_CARET=no | |
1518 | DEFAULT_wxUSE_BMPBUTTON=no | |
1519 | DEFAULT_wxUSE_CHECKBOX=no | |
1520 | DEFAULT_wxUSE_CHECKLST=no | |
1521 | DEFAULT_wxUSE_CHOICE=no | |
1522 | DEFAULT_wxUSE_COMBOBOX=no | |
1523 | DEFAULT_wxUSE_GAUGE=no | |
1524 | DEFAULT_wxUSE_GRID=no | |
1525 | DEFAULT_wxUSE_NEW_GRID=no | |
1526 | DEFAULT_wxUSE_IMAGLIST=no | |
1527 | DEFAULT_wxUSE_LISTBOX=no | |
1528 | DEFAULT_wxUSE_LISTCTRL=no | |
1529 | DEFAULT_wxUSE_NOTEBOOK=no | |
1530 | DEFAULT_wxUSE_RADIOBOX=no | |
1531 | DEFAULT_wxUSE_RADIOBTN=no | |
1532 | DEFAULT_wxUSE_SASH=no | |
1533 | DEFAULT_wxUSE_SCROLLBAR=no | |
1534 | DEFAULT_wxUSE_SLIDER=no | |
1535 | DEFAULT_wxUSE_SPINBTN=no | |
1536 | DEFAULT_wxUSE_SPINCTRL=no | |
1537 | DEFAULT_wxUSE_SPLITTER=no | |
1538 | DEFAULT_wxUSE_STATBMP=no | |
1539 | DEFAULT_wxUSE_STATBOX=no | |
1540 | DEFAULT_wxUSE_STATLINE=no | |
1541 | DEFAULT_wxUSE_STATUSBAR=no | |
1542 | DEFAULT_wxUSE_TABDIALOG=no | |
1543 | DEFAULT_wxUSE_TOOLBAR=no | |
1544 | DEFAULT_wxUSE_TREECTRL=no | |
1545 | DEFAULT_wxUSE_GIF=no | |
1546 | DEFAULT_wxUSE_PCX=no | |
1547 | DEFAULT_wxUSE_PNM=no | |
1548 | fi | |
1549 | ||
1550 | # Check whether --with-gtk or --without-gtk was given. | |
1551 | if test "${with_gtk+set}" = set; then | |
1552 | withval="$with_gtk" | |
1553 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
1554 | fi | |
1555 | ||
1556 | # Check whether --with-motif or --without-motif was given. | |
1557 | if test "${with_motif+set}" = set; then | |
1558 | withval="$with_motif" | |
1559 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
1560 | fi | |
1561 | ||
1562 | # Check whether --with-wine or --without-wine was given. | |
1563 | if test "${with_wine+set}" = set; then | |
1564 | withval="$with_wine" | |
1565 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
1566 | fi | |
1567 | ||
1568 | # Check whether --with-cygwin or --without-cygwin was given. | |
1569 | if test "${with_cygwin+set}" = set; then | |
1570 | withval="$with_cygwin" | |
1571 | wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1 | |
1572 | fi | |
1573 | ||
1574 | # Check whether --with-mingw or --without-mingw was given. | |
1575 | if test "${with_mingw+set}" = set; then | |
1576 | withval="$with_mingw" | |
1577 | wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1 | |
1578 | fi | |
1579 | ||
1580 | ||
1581 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
1582 | if test "${with_gtk_prefix+set}" = set; then | |
1583 | withval="$with_gtk_prefix" | |
1584 | gtk_config_prefix="$withval" | |
1585 | else | |
1586 | gtk_config_prefix="" | |
1587 | fi | |
1588 | ||
1589 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
1590 | if test "${with_gtk_exec_prefix+set}" = set; then | |
1591 | withval="$with_gtk_exec_prefix" | |
1592 | gtk_config_exec_prefix="$withval" | |
1593 | else | |
1594 | gtk_config_exec_prefix="" | |
1595 | fi | |
1596 | ||
1597 | ||
1598 | ||
1599 | echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6 | |
1600 | echo "configure:1601: checking "for --with-dmalloc"" >&5 | |
1601 | no_cache=0 | |
1602 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
1603 | if test "${with_dmalloc+set}" = set; then | |
1604 | withval="$with_dmalloc" | |
1605 | ||
1606 | if test "$withval" = yes; then | |
1607 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
1608 | else | |
1609 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
1610 | fi | |
1611 | ||
1612 | else | |
1613 | ||
1614 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
1615 | if test "x$LINE" != x ; then | |
1616 | eval "DEFAULT_$LINE" | |
1617 | else | |
1618 | no_cache=1 | |
1619 | fi | |
1620 | ||
1621 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
1622 | ||
1623 | fi | |
1624 | ||
1625 | ||
1626 | eval "$ac_cv_use_dmalloc" | |
1627 | if test "$no_cache" != 1; then | |
1628 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
1629 | fi | |
1630 | ||
1631 | if test "$wxUSE_DMALLOC" = yes; then | |
1632 | echo "$ac_t""yes" 1>&6 | |
1633 | else | |
1634 | echo "$ac_t""no" 1>&6 | |
1635 | fi | |
1636 | ||
1637 | ||
1638 | echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6 | |
1639 | echo "configure:1640: checking "for --with-zlib"" >&5 | |
1640 | no_cache=0 | |
1641 | # Check whether --with-zlib or --without-zlib was given. | |
1642 | if test "${with_zlib+set}" = set; then | |
1643 | withval="$with_zlib" | |
1644 | ||
1645 | if test "$withval" = yes; then | |
1646 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
1647 | else | |
1648 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
1649 | fi | |
1650 | ||
1651 | else | |
1652 | ||
1653 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
1654 | if test "x$LINE" != x ; then | |
1655 | eval "DEFAULT_$LINE" | |
1656 | else | |
1657 | no_cache=1 | |
1658 | fi | |
1659 | ||
1660 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
1661 | ||
1662 | fi | |
1663 | ||
1664 | ||
1665 | eval "$ac_cv_use_zlib" | |
1666 | if test "$no_cache" != 1; then | |
1667 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
1668 | fi | |
1669 | ||
1670 | if test "$wxUSE_ZLIB" = yes; then | |
1671 | echo "$ac_t""yes" 1>&6 | |
1672 | else | |
1673 | echo "$ac_t""no" 1>&6 | |
1674 | fi | |
1675 | ||
1676 | ||
1677 | echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6 | |
1678 | echo "configure:1679: checking "for --with-libpng"" >&5 | |
1679 | no_cache=0 | |
1680 | # Check whether --with-libpng or --without-libpng was given. | |
1681 | if test "${with_libpng+set}" = set; then | |
1682 | withval="$with_libpng" | |
1683 | ||
1684 | if test "$withval" = yes; then | |
1685 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
1686 | else | |
1687 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
1688 | fi | |
1689 | ||
1690 | else | |
1691 | ||
1692 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
1693 | if test "x$LINE" != x ; then | |
1694 | eval "DEFAULT_$LINE" | |
1695 | else | |
1696 | no_cache=1 | |
1697 | fi | |
1698 | ||
1699 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
1700 | ||
1701 | fi | |
1702 | ||
1703 | ||
1704 | eval "$ac_cv_use_libpng" | |
1705 | if test "$no_cache" != 1; then | |
1706 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
1707 | fi | |
1708 | ||
1709 | if test "$wxUSE_LIBPNG" = yes; then | |
1710 | echo "$ac_t""yes" 1>&6 | |
1711 | else | |
1712 | echo "$ac_t""no" 1>&6 | |
1713 | fi | |
1714 | ||
1715 | ||
1716 | echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6 | |
1717 | echo "configure:1718: checking "for --with-libjpeg"" >&5 | |
1718 | no_cache=0 | |
1719 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
1720 | if test "${with_libjpeg+set}" = set; then | |
1721 | withval="$with_libjpeg" | |
1722 | ||
1723 | if test "$withval" = yes; then | |
1724 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
1725 | else | |
1726 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
1727 | fi | |
1728 | ||
1729 | else | |
1730 | ||
1731 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
1732 | if test "x$LINE" != x ; then | |
1733 | eval "DEFAULT_$LINE" | |
1734 | else | |
1735 | no_cache=1 | |
1736 | fi | |
1737 | ||
1738 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
1739 | ||
1740 | fi | |
1741 | ||
1742 | ||
1743 | eval "$ac_cv_use_libjpeg" | |
1744 | if test "$no_cache" != 1; then | |
1745 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
1746 | fi | |
1747 | ||
1748 | if test "$wxUSE_LIBJPEG" = yes; then | |
1749 | echo "$ac_t""yes" 1>&6 | |
1750 | else | |
1751 | echo "$ac_t""no" 1>&6 | |
1752 | fi | |
1753 | ||
1754 | ||
1755 | echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6 | |
1756 | echo "configure:1757: checking "for --with-libtiff"" >&5 | |
1757 | no_cache=0 | |
1758 | # Check whether --with-libtiff or --without-libtiff was given. | |
1759 | if test "${with_libtiff+set}" = set; then | |
1760 | withval="$with_libtiff" | |
1761 | ||
1762 | if test "$withval" = yes; then | |
1763 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' | |
1764 | else | |
1765 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' | |
1766 | fi | |
1767 | ||
1768 | else | |
1769 | ||
1770 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` | |
1771 | if test "x$LINE" != x ; then | |
1772 | eval "DEFAULT_$LINE" | |
1773 | else | |
1774 | no_cache=1 | |
1775 | fi | |
1776 | ||
1777 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF | |
1778 | ||
1779 | fi | |
1780 | ||
1781 | ||
1782 | eval "$ac_cv_use_libtiff" | |
1783 | if test "$no_cache" != 1; then | |
1784 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp | |
1785 | fi | |
1786 | ||
1787 | if test "$wxUSE_LIBTIFF" = yes; then | |
1788 | echo "$ac_t""yes" 1>&6 | |
1789 | else | |
1790 | echo "$ac_t""no" 1>&6 | |
1791 | fi | |
1792 | ||
1793 | ||
1794 | echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6 | |
1795 | echo "configure:1796: checking "for --with-opengl"" >&5 | |
1796 | no_cache=0 | |
1797 | # Check whether --with-opengl or --without-opengl was given. | |
1798 | if test "${with_opengl+set}" = set; then | |
1799 | withval="$with_opengl" | |
1800 | ||
1801 | if test "$withval" = yes; then | |
1802 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
1803 | else | |
1804 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
1805 | fi | |
1806 | ||
1807 | else | |
1808 | ||
1809 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
1810 | if test "x$LINE" != x ; then | |
1811 | eval "DEFAULT_$LINE" | |
1812 | else | |
1813 | no_cache=1 | |
1814 | fi | |
1815 | ||
1816 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
1817 | ||
1818 | fi | |
1819 | ||
1820 | ||
1821 | eval "$ac_cv_use_opengl" | |
1822 | if test "$no_cache" != 1; then | |
1823 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
1824 | fi | |
1825 | ||
1826 | if test "$wxUSE_OPENGL" = yes; then | |
1827 | echo "$ac_t""yes" 1>&6 | |
1828 | else | |
1829 | echo "$ac_t""no" 1>&6 | |
1830 | fi | |
1831 | ||
1832 | ||
1833 | echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6 | |
1834 | echo "configure:1835: checking "for --with-odbc"" >&5 | |
1835 | no_cache=0 | |
1836 | # Check whether --with-odbc or --without-odbc was given. | |
1837 | if test "${with_odbc+set}" = set; then | |
1838 | withval="$with_odbc" | |
1839 | ||
1840 | if test "$withval" = yes; then | |
1841 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
1842 | else | |
1843 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
1844 | fi | |
1845 | ||
1846 | else | |
1847 | ||
1848 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
1849 | if test "x$LINE" != x ; then | |
1850 | eval "DEFAULT_$LINE" | |
1851 | else | |
1852 | no_cache=1 | |
1853 | fi | |
1854 | ||
1855 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
1856 | ||
1857 | fi | |
1858 | ||
1859 | ||
1860 | eval "$ac_cv_use_odbc" | |
1861 | if test "$no_cache" != 1; then | |
1862 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
1863 | fi | |
1864 | ||
1865 | if test "$wxUSE_ODBC" = yes; then | |
1866 | echo "$ac_t""yes" 1>&6 | |
1867 | else | |
1868 | echo "$ac_t""no" 1>&6 | |
1869 | fi | |
1870 | ||
1871 | ||
1872 | ||
1873 | ||
1874 | ||
1875 | echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6 | |
1876 | echo "configure:1877: checking "for --enable-shared"" >&5 | |
1877 | no_cache=0 | |
1878 | # Check whether --enable-shared or --disable-shared was given. | |
1879 | if test "${enable_shared+set}" = set; then | |
1880 | enableval="$enable_shared" | |
1881 | ||
1882 | if test "$enableval" = yes; then | |
1883 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
1884 | else | |
1885 | ac_cv_use_shared='wxUSE_SHARED=no' | |
1886 | fi | |
1887 | ||
1888 | else | |
1889 | ||
1890 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
1891 | if test "x$LINE" != x ; then | |
1892 | eval "DEFAULT_$LINE" | |
1893 | else | |
1894 | no_cache=1 | |
1895 | fi | |
1896 | ||
1897 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
1898 | ||
1899 | fi | |
1900 | ||
1901 | ||
1902 | eval "$ac_cv_use_shared" | |
1903 | if test "$no_cache" != 1; then | |
1904 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
1905 | fi | |
1906 | ||
1907 | if test "$wxUSE_SHARED" = yes; then | |
1908 | echo "$ac_t""yes" 1>&6 | |
1909 | else | |
1910 | echo "$ac_t""no" 1>&6 | |
1911 | fi | |
1912 | ||
1913 | ||
1914 | echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6 | |
1915 | echo "configure:1916: checking "for --enable-optimise"" >&5 | |
1916 | no_cache=0 | |
1917 | # Check whether --enable-optimise or --disable-optimise was given. | |
1918 | if test "${enable_optimise+set}" = set; then | |
1919 | enableval="$enable_optimise" | |
1920 | ||
1921 | if test "$enableval" = yes; then | |
1922 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
1923 | else | |
1924 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
1925 | fi | |
1926 | ||
1927 | else | |
1928 | ||
1929 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
1930 | if test "x$LINE" != x ; then | |
1931 | eval "DEFAULT_$LINE" | |
1932 | else | |
1933 | no_cache=1 | |
1934 | fi | |
1935 | ||
1936 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
1937 | ||
1938 | fi | |
1939 | ||
1940 | ||
1941 | eval "$ac_cv_use_optimise" | |
1942 | if test "$no_cache" != 1; then | |
1943 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
1944 | fi | |
1945 | ||
1946 | if test "$wxUSE_OPTIMISE" = yes; then | |
1947 | echo "$ac_t""yes" 1>&6 | |
1948 | else | |
1949 | echo "$ac_t""no" 1>&6 | |
1950 | fi | |
1951 | ||
1952 | ||
1953 | echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6 | |
1954 | echo "configure:1955: checking "for --enable-debug"" >&5 | |
1955 | no_cache=0 | |
1956 | # Check whether --enable-debug or --disable-debug was given. | |
1957 | if test "${enable_debug+set}" = set; then | |
1958 | enableval="$enable_debug" | |
1959 | ||
1960 | if test "$enableval" = yes; then | |
1961 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
1962 | else | |
1963 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
1964 | fi | |
1965 | ||
1966 | else | |
1967 | ||
1968 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
1969 | if test "x$LINE" != x ; then | |
1970 | eval "DEFAULT_$LINE" | |
1971 | else | |
1972 | no_cache=1 | |
1973 | fi | |
1974 | ||
1975 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
1976 | ||
1977 | fi | |
1978 | ||
1979 | ||
1980 | eval "$ac_cv_use_debug" | |
1981 | if test "$no_cache" != 1; then | |
1982 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
1983 | fi | |
1984 | ||
1985 | if test "$wxUSE_DEBUG" = yes; then | |
1986 | echo "$ac_t""yes" 1>&6 | |
1987 | else | |
1988 | echo "$ac_t""no" 1>&6 | |
1989 | fi | |
1990 | ||
1991 | ||
1992 | if test "$wxUSE_DEBUG" = "yes"; then | |
1993 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1994 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1995 | elif test "$wxUSE_DEBUG" = "no"; then | |
1996 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1997 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1998 | fi | |
1999 | ||
2000 | ||
2001 | echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6 | |
2002 | echo "configure:2003: checking "for --enable-debug_flag"" >&5 | |
2003 | no_cache=0 | |
2004 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2005 | if test "${enable_debug_flag+set}" = set; then | |
2006 | enableval="$enable_debug_flag" | |
2007 | ||
2008 | if test "$enableval" = yes; then | |
2009 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2010 | else | |
2011 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2012 | fi | |
2013 | ||
2014 | else | |
2015 | ||
2016 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
2017 | if test "x$LINE" != x ; then | |
2018 | eval "DEFAULT_$LINE" | |
2019 | else | |
2020 | no_cache=1 | |
2021 | fi | |
2022 | ||
2023 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
2024 | ||
2025 | fi | |
2026 | ||
2027 | ||
2028 | eval "$ac_cv_use_debug_flag" | |
2029 | if test "$no_cache" != 1; then | |
2030 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2031 | fi | |
2032 | ||
2033 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
2034 | echo "$ac_t""yes" 1>&6 | |
2035 | else | |
2036 | echo "$ac_t""no" 1>&6 | |
2037 | fi | |
2038 | ||
2039 | ||
2040 | echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6 | |
2041 | echo "configure:2042: checking "for --enable-debug_info"" >&5 | |
2042 | no_cache=0 | |
2043 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2044 | if test "${enable_debug_info+set}" = set; then | |
2045 | enableval="$enable_debug_info" | |
2046 | ||
2047 | if test "$enableval" = yes; then | |
2048 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2049 | else | |
2050 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2051 | fi | |
2052 | ||
2053 | else | |
2054 | ||
2055 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
2056 | if test "x$LINE" != x ; then | |
2057 | eval "DEFAULT_$LINE" | |
2058 | else | |
2059 | no_cache=1 | |
2060 | fi | |
2061 | ||
2062 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
2063 | ||
2064 | fi | |
2065 | ||
2066 | ||
2067 | eval "$ac_cv_use_debug_info" | |
2068 | if test "$no_cache" != 1; then | |
2069 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2070 | fi | |
2071 | ||
2072 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
2073 | echo "$ac_t""yes" 1>&6 | |
2074 | else | |
2075 | echo "$ac_t""no" 1>&6 | |
2076 | fi | |
2077 | ||
2078 | ||
2079 | echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6 | |
2080 | echo "configure:2081: checking "for --enable-debug_gdb"" >&5 | |
2081 | no_cache=0 | |
2082 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2083 | if test "${enable_debug_gdb+set}" = set; then | |
2084 | enableval="$enable_debug_gdb" | |
2085 | ||
2086 | if test "$enableval" = yes; then | |
2087 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2088 | else | |
2089 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2090 | fi | |
2091 | ||
2092 | else | |
2093 | ||
2094 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
2095 | if test "x$LINE" != x ; then | |
2096 | eval "DEFAULT_$LINE" | |
2097 | else | |
2098 | no_cache=1 | |
2099 | fi | |
2100 | ||
2101 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
2102 | ||
2103 | fi | |
2104 | ||
2105 | ||
2106 | eval "$ac_cv_use_debug_gdb" | |
2107 | if test "$no_cache" != 1; then | |
2108 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2109 | fi | |
2110 | ||
2111 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
2112 | echo "$ac_t""yes" 1>&6 | |
2113 | else | |
2114 | echo "$ac_t""no" 1>&6 | |
2115 | fi | |
2116 | ||
2117 | ||
2118 | echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6 | |
2119 | echo "configure:2120: checking "for --enable-debug_cntxt"" >&5 | |
2120 | no_cache=0 | |
2121 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2122 | if test "${enable_debug_cntxt+set}" = set; then | |
2123 | enableval="$enable_debug_cntxt" | |
2124 | ||
2125 | if test "$enableval" = yes; then | |
2126 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2127 | else | |
2128 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2129 | fi | |
2130 | ||
2131 | else | |
2132 | ||
2133 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
2134 | if test "x$LINE" != x ; then | |
2135 | eval "DEFAULT_$LINE" | |
2136 | else | |
2137 | no_cache=1 | |
2138 | fi | |
2139 | ||
2140 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
2141 | ||
2142 | fi | |
2143 | ||
2144 | ||
2145 | eval "$ac_cv_use_debug_cntxt" | |
2146 | if test "$no_cache" != 1; then | |
2147 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2148 | fi | |
2149 | ||
2150 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
2151 | echo "$ac_t""yes" 1>&6 | |
2152 | else | |
2153 | echo "$ac_t""no" 1>&6 | |
2154 | fi | |
2155 | ||
2156 | ||
2157 | echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6 | |
2158 | echo "configure:2159: checking "for --enable-mem_tracing"" >&5 | |
2159 | no_cache=0 | |
2160 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2161 | if test "${enable_mem_tracing+set}" = set; then | |
2162 | enableval="$enable_mem_tracing" | |
2163 | ||
2164 | if test "$enableval" = yes; then | |
2165 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2166 | else | |
2167 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2168 | fi | |
2169 | ||
2170 | else | |
2171 | ||
2172 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
2173 | if test "x$LINE" != x ; then | |
2174 | eval "DEFAULT_$LINE" | |
2175 | else | |
2176 | no_cache=1 | |
2177 | fi | |
2178 | ||
2179 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
2180 | ||
2181 | fi | |
2182 | ||
2183 | ||
2184 | eval "$ac_cv_use_mem_tracing" | |
2185 | if test "$no_cache" != 1; then | |
2186 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2187 | fi | |
2188 | ||
2189 | if test "$wxUSE_MEM_TRACING" = yes; then | |
2190 | echo "$ac_t""yes" 1>&6 | |
2191 | else | |
2192 | echo "$ac_t""no" 1>&6 | |
2193 | fi | |
2194 | ||
2195 | ||
2196 | echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6 | |
2197 | echo "configure:2198: checking "for --enable-profile"" >&5 | |
2198 | no_cache=0 | |
2199 | # Check whether --enable-profile or --disable-profile was given. | |
2200 | if test "${enable_profile+set}" = set; then | |
2201 | enableval="$enable_profile" | |
2202 | ||
2203 | if test "$enableval" = yes; then | |
2204 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2205 | else | |
2206 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2207 | fi | |
2208 | ||
2209 | else | |
2210 | ||
2211 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
2212 | if test "x$LINE" != x ; then | |
2213 | eval "DEFAULT_$LINE" | |
2214 | else | |
2215 | no_cache=1 | |
2216 | fi | |
2217 | ||
2218 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
2219 | ||
2220 | fi | |
2221 | ||
2222 | ||
2223 | eval "$ac_cv_use_profile" | |
2224 | if test "$no_cache" != 1; then | |
2225 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2226 | fi | |
2227 | ||
2228 | if test "$wxUSE_PROFILE" = yes; then | |
2229 | echo "$ac_t""yes" 1>&6 | |
2230 | else | |
2231 | echo "$ac_t""no" 1>&6 | |
2232 | fi | |
2233 | ||
2234 | ||
2235 | echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6 | |
2236 | echo "configure:2237: checking "for --enable-no_rtti"" >&5 | |
2237 | no_cache=0 | |
2238 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2239 | if test "${enable_no_rtti+set}" = set; then | |
2240 | enableval="$enable_no_rtti" | |
2241 | ||
2242 | if test "$enableval" = yes; then | |
2243 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2244 | else | |
2245 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2246 | fi | |
2247 | ||
2248 | else | |
2249 | ||
2250 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
2251 | if test "x$LINE" != x ; then | |
2252 | eval "DEFAULT_$LINE" | |
2253 | else | |
2254 | no_cache=1 | |
2255 | fi | |
2256 | ||
2257 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
2258 | ||
2259 | fi | |
2260 | ||
2261 | ||
2262 | eval "$ac_cv_use_no_rtti" | |
2263 | if test "$no_cache" != 1; then | |
2264 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2265 | fi | |
2266 | ||
2267 | if test "$wxUSE_NO_RTTI" = yes; then | |
2268 | echo "$ac_t""yes" 1>&6 | |
2269 | else | |
2270 | echo "$ac_t""no" 1>&6 | |
2271 | fi | |
2272 | ||
2273 | ||
2274 | echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6 | |
2275 | echo "configure:2276: checking "for --enable-no_exceptions"" >&5 | |
2276 | no_cache=0 | |
2277 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2278 | if test "${enable_no_exceptions+set}" = set; then | |
2279 | enableval="$enable_no_exceptions" | |
2280 | ||
2281 | if test "$enableval" = yes; then | |
2282 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2283 | else | |
2284 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2285 | fi | |
2286 | ||
2287 | else | |
2288 | ||
2289 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
2290 | if test "x$LINE" != x ; then | |
2291 | eval "DEFAULT_$LINE" | |
2292 | else | |
2293 | no_cache=1 | |
2294 | fi | |
2295 | ||
2296 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
2297 | ||
2298 | fi | |
2299 | ||
2300 | ||
2301 | eval "$ac_cv_use_no_exceptions" | |
2302 | if test "$no_cache" != 1; then | |
2303 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2304 | fi | |
2305 | ||
2306 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
2307 | echo "$ac_t""yes" 1>&6 | |
2308 | else | |
2309 | echo "$ac_t""no" 1>&6 | |
2310 | fi | |
2311 | ||
2312 | ||
2313 | echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6 | |
2314 | echo "configure:2315: checking "for --enable-permissive"" >&5 | |
2315 | no_cache=0 | |
2316 | # Check whether --enable-permissive or --disable-permissive was given. | |
2317 | if test "${enable_permissive+set}" = set; then | |
2318 | enableval="$enable_permissive" | |
2319 | ||
2320 | if test "$enableval" = yes; then | |
2321 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2322 | else | |
2323 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2324 | fi | |
2325 | ||
2326 | else | |
2327 | ||
2328 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
2329 | if test "x$LINE" != x ; then | |
2330 | eval "DEFAULT_$LINE" | |
2331 | else | |
2332 | no_cache=1 | |
2333 | fi | |
2334 | ||
2335 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
2336 | ||
2337 | fi | |
2338 | ||
2339 | ||
2340 | eval "$ac_cv_use_permissive" | |
2341 | if test "$no_cache" != 1; then | |
2342 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2343 | fi | |
2344 | ||
2345 | if test "$wxUSE_PERMISSIVE" = yes; then | |
2346 | echo "$ac_t""yes" 1>&6 | |
2347 | else | |
2348 | echo "$ac_t""no" 1>&6 | |
2349 | fi | |
2350 | ||
2351 | ||
2352 | echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6 | |
2353 | echo "configure:2354: checking "for --enable-no_deps"" >&5 | |
2354 | no_cache=0 | |
2355 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2356 | if test "${enable_no_deps+set}" = set; then | |
2357 | enableval="$enable_no_deps" | |
2358 | ||
2359 | if test "$enableval" = yes; then | |
2360 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2361 | else | |
2362 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2363 | fi | |
2364 | ||
2365 | else | |
2366 | ||
2367 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
2368 | if test "x$LINE" != x ; then | |
2369 | eval "DEFAULT_$LINE" | |
2370 | else | |
2371 | no_cache=1 | |
2372 | fi | |
2373 | ||
2374 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
2375 | ||
2376 | fi | |
2377 | ||
2378 | ||
2379 | eval "$ac_cv_use_no_deps" | |
2380 | if test "$no_cache" != 1; then | |
2381 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2382 | fi | |
2383 | ||
2384 | if test "$wxUSE_NO_DEPS" = yes; then | |
2385 | echo "$ac_t""yes" 1>&6 | |
2386 | else | |
2387 | echo "$ac_t""no" 1>&6 | |
2388 | fi | |
2389 | ||
2390 | ||
2391 | ||
2392 | ||
2393 | echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6 | |
2394 | echo "configure:2395: checking "for --enable-intl"" >&5 | |
2395 | no_cache=0 | |
2396 | # Check whether --enable-intl or --disable-intl was given. | |
2397 | if test "${enable_intl+set}" = set; then | |
2398 | enableval="$enable_intl" | |
2399 | ||
2400 | if test "$enableval" = yes; then | |
2401 | ac_cv_use_intl='wxUSE_INTL=yes' | |
2402 | else | |
2403 | ac_cv_use_intl='wxUSE_INTL=no' | |
2404 | fi | |
2405 | ||
2406 | else | |
2407 | ||
2408 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
2409 | if test "x$LINE" != x ; then | |
2410 | eval "DEFAULT_$LINE" | |
2411 | else | |
2412 | no_cache=1 | |
2413 | fi | |
2414 | ||
2415 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
2416 | ||
2417 | fi | |
2418 | ||
2419 | ||
2420 | eval "$ac_cv_use_intl" | |
2421 | if test "$no_cache" != 1; then | |
2422 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
2423 | fi | |
2424 | ||
2425 | if test "$wxUSE_INTL" = yes; then | |
2426 | echo "$ac_t""yes" 1>&6 | |
2427 | else | |
2428 | echo "$ac_t""no" 1>&6 | |
2429 | fi | |
2430 | ||
2431 | ||
2432 | echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6 | |
2433 | echo "configure:2434: checking "for --enable-config"" >&5 | |
2434 | no_cache=0 | |
2435 | # Check whether --enable-config or --disable-config was given. | |
2436 | if test "${enable_config+set}" = set; then | |
2437 | enableval="$enable_config" | |
2438 | ||
2439 | if test "$enableval" = yes; then | |
2440 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
2441 | else | |
2442 | ac_cv_use_config='wxUSE_CONFIG=no' | |
2443 | fi | |
2444 | ||
2445 | else | |
2446 | ||
2447 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
2448 | if test "x$LINE" != x ; then | |
2449 | eval "DEFAULT_$LINE" | |
2450 | else | |
2451 | no_cache=1 | |
2452 | fi | |
2453 | ||
2454 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
2455 | ||
2456 | fi | |
2457 | ||
2458 | ||
2459 | eval "$ac_cv_use_config" | |
2460 | if test "$no_cache" != 1; then | |
2461 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
2462 | fi | |
2463 | ||
2464 | if test "$wxUSE_CONFIG" = yes; then | |
2465 | echo "$ac_t""yes" 1>&6 | |
2466 | else | |
2467 | echo "$ac_t""no" 1>&6 | |
2468 | fi | |
2469 | ||
2470 | ||
2471 | echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6 | |
2472 | echo "configure:2473: checking "for --enable-sockets"" >&5 | |
2473 | no_cache=0 | |
2474 | # Check whether --enable-sockets or --disable-sockets was given. | |
2475 | if test "${enable_sockets+set}" = set; then | |
2476 | enableval="$enable_sockets" | |
2477 | ||
2478 | if test "$enableval" = yes; then | |
2479 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
2480 | else | |
2481 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
2482 | fi | |
2483 | ||
2484 | else | |
2485 | ||
2486 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
2487 | if test "x$LINE" != x ; then | |
2488 | eval "DEFAULT_$LINE" | |
2489 | else | |
2490 | no_cache=1 | |
2491 | fi | |
2492 | ||
2493 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
2494 | ||
2495 | fi | |
2496 | ||
2497 | ||
2498 | eval "$ac_cv_use_sockets" | |
2499 | if test "$no_cache" != 1; then | |
2500 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
2501 | fi | |
2502 | ||
2503 | if test "$wxUSE_SOCKETS" = yes; then | |
2504 | echo "$ac_t""yes" 1>&6 | |
2505 | else | |
2506 | echo "$ac_t""no" 1>&6 | |
2507 | fi | |
2508 | ||
2509 | ||
2510 | echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6 | |
2511 | echo "configure:2512: checking "for --enable-dialupman"" >&5 | |
2512 | no_cache=0 | |
2513 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
2514 | if test "${enable_dialupman+set}" = set; then | |
2515 | enableval="$enable_dialupman" | |
2516 | ||
2517 | if test "$enableval" = yes; then | |
2518 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
2519 | else | |
2520 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
2521 | fi | |
2522 | ||
2523 | else | |
2524 | ||
2525 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
2526 | if test "x$LINE" != x ; then | |
2527 | eval "DEFAULT_$LINE" | |
2528 | else | |
2529 | no_cache=1 | |
2530 | fi | |
2531 | ||
2532 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
2533 | ||
2534 | fi | |
2535 | ||
2536 | ||
2537 | eval "$ac_cv_use_dialupman" | |
2538 | if test "$no_cache" != 1; then | |
2539 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
2540 | fi | |
2541 | ||
2542 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
2543 | echo "$ac_t""yes" 1>&6 | |
2544 | else | |
2545 | echo "$ac_t""no" 1>&6 | |
2546 | fi | |
2547 | ||
2548 | ||
2549 | echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6 | |
2550 | echo "configure:2551: checking "for --enable-ipc"" >&5 | |
2551 | no_cache=0 | |
2552 | # Check whether --enable-ipc or --disable-ipc was given. | |
2553 | if test "${enable_ipc+set}" = set; then | |
2554 | enableval="$enable_ipc" | |
2555 | ||
2556 | if test "$enableval" = yes; then | |
2557 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
2558 | else | |
2559 | ac_cv_use_ipc='wxUSE_IPC=no' | |
2560 | fi | |
2561 | ||
2562 | else | |
2563 | ||
2564 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
2565 | if test "x$LINE" != x ; then | |
2566 | eval "DEFAULT_$LINE" | |
2567 | else | |
2568 | no_cache=1 | |
2569 | fi | |
2570 | ||
2571 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
2572 | ||
2573 | fi | |
2574 | ||
2575 | ||
2576 | eval "$ac_cv_use_ipc" | |
2577 | if test "$no_cache" != 1; then | |
2578 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
2579 | fi | |
2580 | ||
2581 | if test "$wxUSE_IPC" = yes; then | |
2582 | echo "$ac_t""yes" 1>&6 | |
2583 | else | |
2584 | echo "$ac_t""no" 1>&6 | |
2585 | fi | |
2586 | ||
2587 | ||
2588 | echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6 | |
2589 | echo "configure:2590: checking "for --enable-apple_ieee"" >&5 | |
2590 | no_cache=0 | |
2591 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
2592 | if test "${enable_apple_ieee+set}" = set; then | |
2593 | enableval="$enable_apple_ieee" | |
2594 | ||
2595 | if test "$enableval" = yes; then | |
2596 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
2597 | else | |
2598 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
2599 | fi | |
2600 | ||
2601 | else | |
2602 | ||
2603 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
2604 | if test "x$LINE" != x ; then | |
2605 | eval "DEFAULT_$LINE" | |
2606 | else | |
2607 | no_cache=1 | |
2608 | fi | |
2609 | ||
2610 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
2611 | ||
2612 | fi | |
2613 | ||
2614 | ||
2615 | eval "$ac_cv_use_apple_ieee" | |
2616 | if test "$no_cache" != 1; then | |
2617 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
2618 | fi | |
2619 | ||
2620 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
2621 | echo "$ac_t""yes" 1>&6 | |
2622 | else | |
2623 | echo "$ac_t""no" 1>&6 | |
2624 | fi | |
2625 | ||
2626 | ||
2627 | echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6 | |
2628 | echo "configure:2629: checking "for --enable-timedate"" >&5 | |
2629 | no_cache=0 | |
2630 | # Check whether --enable-timedate or --disable-timedate was given. | |
2631 | if test "${enable_timedate+set}" = set; then | |
2632 | enableval="$enable_timedate" | |
2633 | ||
2634 | if test "$enableval" = yes; then | |
2635 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
2636 | else | |
2637 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
2638 | fi | |
2639 | ||
2640 | else | |
2641 | ||
2642 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
2643 | if test "x$LINE" != x ; then | |
2644 | eval "DEFAULT_$LINE" | |
2645 | else | |
2646 | no_cache=1 | |
2647 | fi | |
2648 | ||
2649 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
2650 | ||
2651 | fi | |
2652 | ||
2653 | ||
2654 | eval "$ac_cv_use_timedate" | |
2655 | if test "$no_cache" != 1; then | |
2656 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
2657 | fi | |
2658 | ||
2659 | if test "$wxUSE_TIMEDATE" = yes; then | |
2660 | echo "$ac_t""yes" 1>&6 | |
2661 | else | |
2662 | echo "$ac_t""no" 1>&6 | |
2663 | fi | |
2664 | ||
2665 | ||
2666 | echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6 | |
2667 | echo "configure:2668: checking "for --enable-wave"" >&5 | |
2668 | no_cache=0 | |
2669 | # Check whether --enable-wave or --disable-wave was given. | |
2670 | if test "${enable_wave+set}" = set; then | |
2671 | enableval="$enable_wave" | |
2672 | ||
2673 | if test "$enableval" = yes; then | |
2674 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
2675 | else | |
2676 | ac_cv_use_wave='wxUSE_WAVE=no' | |
2677 | fi | |
2678 | ||
2679 | else | |
2680 | ||
2681 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` | |
2682 | if test "x$LINE" != x ; then | |
2683 | eval "DEFAULT_$LINE" | |
2684 | else | |
2685 | no_cache=1 | |
2686 | fi | |
2687 | ||
2688 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
2689 | ||
2690 | fi | |
2691 | ||
2692 | ||
2693 | eval "$ac_cv_use_wave" | |
2694 | if test "$no_cache" != 1; then | |
2695 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
2696 | fi | |
2697 | ||
2698 | if test "$wxUSE_WAVE" = yes; then | |
2699 | echo "$ac_t""yes" 1>&6 | |
2700 | else | |
2701 | echo "$ac_t""no" 1>&6 | |
2702 | fi | |
2703 | ||
2704 | ||
2705 | echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6 | |
2706 | echo "configure:2707: checking "for --enable-fraction"" >&5 | |
2707 | no_cache=0 | |
2708 | # Check whether --enable-fraction or --disable-fraction was given. | |
2709 | if test "${enable_fraction+set}" = set; then | |
2710 | enableval="$enable_fraction" | |
2711 | ||
2712 | if test "$enableval" = yes; then | |
2713 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
2714 | else | |
2715 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
2716 | fi | |
2717 | ||
2718 | else | |
2719 | ||
2720 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` | |
2721 | if test "x$LINE" != x ; then | |
2722 | eval "DEFAULT_$LINE" | |
2723 | else | |
2724 | no_cache=1 | |
2725 | fi | |
2726 | ||
2727 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
2728 | ||
2729 | fi | |
2730 | ||
2731 | ||
2732 | eval "$ac_cv_use_fraction" | |
2733 | if test "$no_cache" != 1; then | |
2734 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
2735 | fi | |
2736 | ||
2737 | if test "$wxUSE_FRACTION" = yes; then | |
2738 | echo "$ac_t""yes" 1>&6 | |
2739 | else | |
2740 | echo "$ac_t""no" 1>&6 | |
2741 | fi | |
2742 | ||
2743 | ||
2744 | echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6 | |
2745 | echo "configure:2746: checking "for --enable-dynlib"" >&5 | |
2746 | no_cache=0 | |
2747 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
2748 | if test "${enable_dynlib+set}" = set; then | |
2749 | enableval="$enable_dynlib" | |
2750 | ||
2751 | if test "$enableval" = yes; then | |
2752 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
2753 | else | |
2754 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
2755 | fi | |
2756 | ||
2757 | else | |
2758 | ||
2759 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
2760 | if test "x$LINE" != x ; then | |
2761 | eval "DEFAULT_$LINE" | |
2762 | else | |
2763 | no_cache=1 | |
2764 | fi | |
2765 | ||
2766 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
2767 | ||
2768 | fi | |
2769 | ||
2770 | ||
2771 | eval "$ac_cv_use_dynlib" | |
2772 | if test "$no_cache" != 1; then | |
2773 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
2774 | fi | |
2775 | ||
2776 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
2777 | echo "$ac_t""yes" 1>&6 | |
2778 | else | |
2779 | echo "$ac_t""no" 1>&6 | |
2780 | fi | |
2781 | ||
2782 | ||
2783 | echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6 | |
2784 | echo "configure:2785: checking "for --enable-longlong"" >&5 | |
2785 | no_cache=0 | |
2786 | # Check whether --enable-longlong or --disable-longlong was given. | |
2787 | if test "${enable_longlong+set}" = set; then | |
2788 | enableval="$enable_longlong" | |
2789 | ||
2790 | if test "$enableval" = yes; then | |
2791 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
2792 | else | |
2793 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
2794 | fi | |
2795 | ||
2796 | else | |
2797 | ||
2798 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
2799 | if test "x$LINE" != x ; then | |
2800 | eval "DEFAULT_$LINE" | |
2801 | else | |
2802 | no_cache=1 | |
2803 | fi | |
2804 | ||
2805 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
2806 | ||
2807 | fi | |
2808 | ||
2809 | ||
2810 | eval "$ac_cv_use_longlong" | |
2811 | if test "$no_cache" != 1; then | |
2812 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
2813 | fi | |
2814 | ||
2815 | if test "$wxUSE_LONGLONG" = yes; then | |
2816 | echo "$ac_t""yes" 1>&6 | |
2817 | else | |
2818 | echo "$ac_t""no" 1>&6 | |
2819 | fi | |
2820 | ||
2821 | ||
2822 | echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6 | |
2823 | echo "configure:2824: checking "for --enable-log"" >&5 | |
2824 | no_cache=0 | |
2825 | # Check whether --enable-log or --disable-log was given. | |
2826 | if test "${enable_log+set}" = set; then | |
2827 | enableval="$enable_log" | |
2828 | ||
2829 | if test "$enableval" = yes; then | |
2830 | ac_cv_use_log='wxUSE_LOG=yes' | |
2831 | else | |
2832 | ac_cv_use_log='wxUSE_LOG=no' | |
2833 | fi | |
2834 | ||
2835 | else | |
2836 | ||
2837 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
2838 | if test "x$LINE" != x ; then | |
2839 | eval "DEFAULT_$LINE" | |
2840 | else | |
2841 | no_cache=1 | |
2842 | fi | |
2843 | ||
2844 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
2845 | ||
2846 | fi | |
2847 | ||
2848 | ||
2849 | eval "$ac_cv_use_log" | |
2850 | if test "$no_cache" != 1; then | |
2851 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
2852 | fi | |
2853 | ||
2854 | if test "$wxUSE_LOG" = yes; then | |
2855 | echo "$ac_t""yes" 1>&6 | |
2856 | else | |
2857 | echo "$ac_t""no" 1>&6 | |
2858 | fi | |
2859 | ||
2860 | ||
2861 | echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6 | |
2862 | echo "configure:2863: checking "for --enable-streams"" >&5 | |
2863 | no_cache=0 | |
2864 | # Check whether --enable-streams or --disable-streams was given. | |
2865 | if test "${enable_streams+set}" = set; then | |
2866 | enableval="$enable_streams" | |
2867 | ||
2868 | if test "$enableval" = yes; then | |
2869 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
2870 | else | |
2871 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
2872 | fi | |
2873 | ||
2874 | else | |
2875 | ||
2876 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
2877 | if test "x$LINE" != x ; then | |
2878 | eval "DEFAULT_$LINE" | |
2879 | else | |
2880 | no_cache=1 | |
2881 | fi | |
2882 | ||
2883 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
2884 | ||
2885 | fi | |
2886 | ||
2887 | ||
2888 | eval "$ac_cv_use_streams" | |
2889 | if test "$no_cache" != 1; then | |
2890 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
2891 | fi | |
2892 | ||
2893 | if test "$wxUSE_STREAMS" = yes; then | |
2894 | echo "$ac_t""yes" 1>&6 | |
2895 | else | |
2896 | echo "$ac_t""no" 1>&6 | |
2897 | fi | |
2898 | ||
2899 | ||
2900 | echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6 | |
2901 | echo "configure:2902: checking "for --enable-file"" >&5 | |
2902 | no_cache=0 | |
2903 | # Check whether --enable-file or --disable-file was given. | |
2904 | if test "${enable_file+set}" = set; then | |
2905 | enableval="$enable_file" | |
2906 | ||
2907 | if test "$enableval" = yes; then | |
2908 | ac_cv_use_file='wxUSE_FILE=yes' | |
2909 | else | |
2910 | ac_cv_use_file='wxUSE_FILE=no' | |
2911 | fi | |
2912 | ||
2913 | else | |
2914 | ||
2915 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
2916 | if test "x$LINE" != x ; then | |
2917 | eval "DEFAULT_$LINE" | |
2918 | else | |
2919 | no_cache=1 | |
2920 | fi | |
2921 | ||
2922 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
2923 | ||
2924 | fi | |
2925 | ||
2926 | ||
2927 | eval "$ac_cv_use_file" | |
2928 | if test "$no_cache" != 1; then | |
2929 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
2930 | fi | |
2931 | ||
2932 | if test "$wxUSE_FILE" = yes; then | |
2933 | echo "$ac_t""yes" 1>&6 | |
2934 | else | |
2935 | echo "$ac_t""no" 1>&6 | |
2936 | fi | |
2937 | ||
2938 | ||
2939 | echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6 | |
2940 | echo "configure:2941: checking "for --enable-textfile"" >&5 | |
2941 | no_cache=0 | |
2942 | # Check whether --enable-textfile or --disable-textfile was given. | |
2943 | if test "${enable_textfile+set}" = set; then | |
2944 | enableval="$enable_textfile" | |
2945 | ||
2946 | if test "$enableval" = yes; then | |
2947 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
2948 | else | |
2949 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
2950 | fi | |
2951 | ||
2952 | else | |
2953 | ||
2954 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
2955 | if test "x$LINE" != x ; then | |
2956 | eval "DEFAULT_$LINE" | |
2957 | else | |
2958 | no_cache=1 | |
2959 | fi | |
2960 | ||
2961 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
2962 | ||
2963 | fi | |
2964 | ||
2965 | ||
2966 | eval "$ac_cv_use_textfile" | |
2967 | if test "$no_cache" != 1; then | |
2968 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
2969 | fi | |
2970 | ||
2971 | if test "$wxUSE_TEXTFILE" = yes; then | |
2972 | echo "$ac_t""yes" 1>&6 | |
2973 | else | |
2974 | echo "$ac_t""no" 1>&6 | |
2975 | fi | |
2976 | ||
2977 | ||
2978 | echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6 | |
2979 | echo "configure:2980: checking "for --enable-unicode"" >&5 | |
2980 | no_cache=0 | |
2981 | # Check whether --enable-unicode or --disable-unicode was given. | |
2982 | if test "${enable_unicode+set}" = set; then | |
2983 | enableval="$enable_unicode" | |
2984 | ||
2985 | if test "$enableval" = yes; then | |
2986 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
2987 | else | |
2988 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
2989 | fi | |
2990 | ||
2991 | else | |
2992 | ||
2993 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
2994 | if test "x$LINE" != x ; then | |
2995 | eval "DEFAULT_$LINE" | |
2996 | else | |
2997 | no_cache=1 | |
2998 | fi | |
2999 | ||
3000 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
3001 | ||
3002 | fi | |
3003 | ||
3004 | ||
3005 | eval "$ac_cv_use_unicode" | |
3006 | if test "$no_cache" != 1; then | |
3007 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
3008 | fi | |
3009 | ||
3010 | if test "$wxUSE_UNICODE" = yes; then | |
3011 | echo "$ac_t""yes" 1>&6 | |
3012 | else | |
3013 | echo "$ac_t""no" 1>&6 | |
3014 | fi | |
3015 | ||
3016 | ||
3017 | echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6 | |
3018 | echo "configure:3019: checking "for --enable-wcsrtombs"" >&5 | |
3019 | no_cache=0 | |
3020 | # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given. | |
3021 | if test "${enable_wcsrtombs+set}" = set; then | |
3022 | enableval="$enable_wcsrtombs" | |
3023 | ||
3024 | if test "$enableval" = yes; then | |
3025 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes' | |
3026 | else | |
3027 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no' | |
3028 | fi | |
3029 | ||
3030 | else | |
3031 | ||
3032 | LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}` | |
3033 | if test "x$LINE" != x ; then | |
3034 | eval "DEFAULT_$LINE" | |
3035 | else | |
3036 | no_cache=1 | |
3037 | fi | |
3038 | ||
3039 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS | |
3040 | ||
3041 | fi | |
3042 | ||
3043 | ||
3044 | eval "$ac_cv_use_wcsrtombs" | |
3045 | if test "$no_cache" != 1; then | |
3046 | echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp | |
3047 | fi | |
3048 | ||
3049 | if test "$wxUSE_WCSRTOMBS" = yes; then | |
3050 | echo "$ac_t""yes" 1>&6 | |
3051 | else | |
3052 | echo "$ac_t""no" 1>&6 | |
3053 | fi | |
3054 | ||
3055 | ||
3056 | echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6 | |
3057 | echo "configure:3058: checking "for --enable-wxprintfv"" >&5 | |
3058 | no_cache=0 | |
3059 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
3060 | if test "${enable_wxprintfv+set}" = set; then | |
3061 | enableval="$enable_wxprintfv" | |
3062 | ||
3063 | if test "$enableval" = yes; then | |
3064 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
3065 | else | |
3066 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
3067 | fi | |
3068 | ||
3069 | else | |
3070 | ||
3071 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
3072 | if test "x$LINE" != x ; then | |
3073 | eval "DEFAULT_$LINE" | |
3074 | else | |
3075 | no_cache=1 | |
3076 | fi | |
3077 | ||
3078 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
3079 | ||
3080 | fi | |
3081 | ||
3082 | ||
3083 | eval "$ac_cv_use_wxprintfv" | |
3084 | if test "$no_cache" != 1; then | |
3085 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
3086 | fi | |
3087 | ||
3088 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
3089 | echo "$ac_t""yes" 1>&6 | |
3090 | else | |
3091 | echo "$ac_t""no" 1>&6 | |
3092 | fi | |
3093 | ||
3094 | ||
3095 | echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6 | |
3096 | echo "configure:3097: checking "for --enable-joystick"" >&5 | |
3097 | no_cache=0 | |
3098 | # Check whether --enable-joystick or --disable-joystick was given. | |
3099 | if test "${enable_joystick+set}" = set; then | |
3100 | enableval="$enable_joystick" | |
3101 | ||
3102 | if test "$enableval" = yes; then | |
3103 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
3104 | else | |
3105 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
3106 | fi | |
3107 | ||
3108 | else | |
3109 | ||
3110 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
3111 | if test "x$LINE" != x ; then | |
3112 | eval "DEFAULT_$LINE" | |
3113 | else | |
3114 | no_cache=1 | |
3115 | fi | |
3116 | ||
3117 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
3118 | ||
3119 | fi | |
3120 | ||
3121 | ||
3122 | eval "$ac_cv_use_joystick" | |
3123 | if test "$no_cache" != 1; then | |
3124 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
3125 | fi | |
3126 | ||
3127 | if test "$wxUSE_JOYSTICK" = yes; then | |
3128 | echo "$ac_t""yes" 1>&6 | |
3129 | else | |
3130 | echo "$ac_t""no" 1>&6 | |
3131 | fi | |
3132 | ||
3133 | ||
3134 | echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6 | |
3135 | echo "configure:3136: checking "for --enable-std_iostreams"" >&5 | |
3136 | no_cache=0 | |
3137 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
3138 | if test "${enable_std_iostreams+set}" = set; then | |
3139 | enableval="$enable_std_iostreams" | |
3140 | ||
3141 | if test "$enableval" = yes; then | |
3142 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
3143 | else | |
3144 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
3145 | fi | |
3146 | ||
3147 | else | |
3148 | ||
3149 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` | |
3150 | if test "x$LINE" != x ; then | |
3151 | eval "DEFAULT_$LINE" | |
3152 | else | |
3153 | no_cache=1 | |
3154 | fi | |
3155 | ||
3156 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
3157 | ||
3158 | fi | |
3159 | ||
3160 | ||
3161 | eval "$ac_cv_use_std_iostreams" | |
3162 | if test "$no_cache" != 1; then | |
3163 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
3164 | fi | |
3165 | ||
3166 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
3167 | echo "$ac_t""yes" 1>&6 | |
3168 | else | |
3169 | echo "$ac_t""no" 1>&6 | |
3170 | fi | |
3171 | ||
3172 | ||
3173 | echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6 | |
3174 | echo "configure:3175: checking "for --enable-fs_inet"" >&5 | |
3175 | no_cache=0 | |
3176 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
3177 | if test "${enable_fs_inet+set}" = set; then | |
3178 | enableval="$enable_fs_inet" | |
3179 | ||
3180 | if test "$enableval" = yes; then | |
3181 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
3182 | else | |
3183 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
3184 | fi | |
3185 | ||
3186 | else | |
3187 | ||
3188 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
3189 | if test "x$LINE" != x ; then | |
3190 | eval "DEFAULT_$LINE" | |
3191 | else | |
3192 | no_cache=1 | |
3193 | fi | |
3194 | ||
3195 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
3196 | ||
3197 | fi | |
3198 | ||
3199 | ||
3200 | eval "$ac_cv_use_fs_inet" | |
3201 | if test "$no_cache" != 1; then | |
3202 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
3203 | fi | |
3204 | ||
3205 | if test "$wxUSE_FS_INET" = yes; then | |
3206 | echo "$ac_t""yes" 1>&6 | |
3207 | else | |
3208 | echo "$ac_t""no" 1>&6 | |
3209 | fi | |
3210 | ||
3211 | ||
3212 | echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6 | |
3213 | echo "configure:3214: checking "for --enable-fs_zip"" >&5 | |
3214 | no_cache=0 | |
3215 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
3216 | if test "${enable_fs_zip+set}" = set; then | |
3217 | enableval="$enable_fs_zip" | |
3218 | ||
3219 | if test "$enableval" = yes; then | |
3220 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
3221 | else | |
3222 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
3223 | fi | |
3224 | ||
3225 | else | |
3226 | ||
3227 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
3228 | if test "x$LINE" != x ; then | |
3229 | eval "DEFAULT_$LINE" | |
3230 | else | |
3231 | no_cache=1 | |
3232 | fi | |
3233 | ||
3234 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
3235 | ||
3236 | fi | |
3237 | ||
3238 | ||
3239 | eval "$ac_cv_use_fs_zip" | |
3240 | if test "$no_cache" != 1; then | |
3241 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
3242 | fi | |
3243 | ||
3244 | if test "$wxUSE_FS_ZIP" = yes; then | |
3245 | echo "$ac_t""yes" 1>&6 | |
3246 | else | |
3247 | echo "$ac_t""no" 1>&6 | |
3248 | fi | |
3249 | ||
3250 | ||
3251 | echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6 | |
3252 | echo "configure:3253: checking "for --enable-zipstream"" >&5 | |
3253 | no_cache=0 | |
3254 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
3255 | if test "${enable_zipstream+set}" = set; then | |
3256 | enableval="$enable_zipstream" | |
3257 | ||
3258 | if test "$enableval" = yes; then | |
3259 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
3260 | else | |
3261 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
3262 | fi | |
3263 | ||
3264 | else | |
3265 | ||
3266 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
3267 | if test "x$LINE" != x ; then | |
3268 | eval "DEFAULT_$LINE" | |
3269 | else | |
3270 | no_cache=1 | |
3271 | fi | |
3272 | ||
3273 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
3274 | ||
3275 | fi | |
3276 | ||
3277 | ||
3278 | eval "$ac_cv_use_zipstream" | |
3279 | if test "$no_cache" != 1; then | |
3280 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
3281 | fi | |
3282 | ||
3283 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
3284 | echo "$ac_t""yes" 1>&6 | |
3285 | else | |
3286 | echo "$ac_t""no" 1>&6 | |
3287 | fi | |
3288 | ||
3289 | ||
3290 | ||
3291 | ||
3292 | echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6 | |
3293 | echo "configure:3294: checking "for --enable-threads"" >&5 | |
3294 | no_cache=0 | |
3295 | # Check whether --enable-threads or --disable-threads was given. | |
3296 | if test "${enable_threads+set}" = set; then | |
3297 | enableval="$enable_threads" | |
3298 | ||
3299 | if test "$enableval" = yes; then | |
3300 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
3301 | else | |
3302 | ac_cv_use_threads='wxUSE_THREADS=no' | |
3303 | fi | |
3304 | ||
3305 | else | |
3306 | ||
3307 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
3308 | if test "x$LINE" != x ; then | |
3309 | eval "DEFAULT_$LINE" | |
3310 | else | |
3311 | no_cache=1 | |
3312 | fi | |
3313 | ||
3314 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
3315 | ||
3316 | fi | |
3317 | ||
3318 | ||
3319 | eval "$ac_cv_use_threads" | |
3320 | if test "$no_cache" != 1; then | |
3321 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
3322 | fi | |
3323 | ||
3324 | if test "$wxUSE_THREADS" = yes; then | |
3325 | echo "$ac_t""yes" 1>&6 | |
3326 | else | |
3327 | echo "$ac_t""no" 1>&6 | |
3328 | fi | |
3329 | ||
3330 | ||
3331 | echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6 | |
3332 | echo "configure:3333: checking "for --enable-serial"" >&5 | |
3333 | no_cache=0 | |
3334 | # Check whether --enable-serial or --disable-serial was given. | |
3335 | if test "${enable_serial+set}" = set; then | |
3336 | enableval="$enable_serial" | |
3337 | ||
3338 | if test "$enableval" = yes; then | |
3339 | ac_cv_use_serial='wxUSE_SERIAL=yes' | |
3340 | else | |
3341 | ac_cv_use_serial='wxUSE_SERIAL=no' | |
3342 | fi | |
3343 | ||
3344 | else | |
3345 | ||
3346 | LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}` | |
3347 | if test "x$LINE" != x ; then | |
3348 | eval "DEFAULT_$LINE" | |
3349 | else | |
3350 | no_cache=1 | |
3351 | fi | |
3352 | ||
3353 | ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL | |
3354 | ||
3355 | fi | |
3356 | ||
3357 | ||
3358 | eval "$ac_cv_use_serial" | |
3359 | if test "$no_cache" != 1; then | |
3360 | echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp | |
3361 | fi | |
3362 | ||
3363 | if test "$wxUSE_SERIAL" = yes; then | |
3364 | echo "$ac_t""yes" 1>&6 | |
3365 | else | |
3366 | echo "$ac_t""no" 1>&6 | |
3367 | fi | |
3368 | ||
3369 | ||
3370 | ||
3371 | ||
3372 | echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6 | |
3373 | echo "configure:3374: checking "for --enable-docview"" >&5 | |
3374 | no_cache=0 | |
3375 | # Check whether --enable-docview or --disable-docview was given. | |
3376 | if test "${enable_docview+set}" = set; then | |
3377 | enableval="$enable_docview" | |
3378 | ||
3379 | if test "$enableval" = yes; then | |
3380 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
3381 | else | |
3382 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
3383 | fi | |
3384 | ||
3385 | else | |
3386 | ||
3387 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
3388 | if test "x$LINE" != x ; then | |
3389 | eval "DEFAULT_$LINE" | |
3390 | else | |
3391 | no_cache=1 | |
3392 | fi | |
3393 | ||
3394 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
3395 | ||
3396 | fi | |
3397 | ||
3398 | ||
3399 | eval "$ac_cv_use_docview" | |
3400 | if test "$no_cache" != 1; then | |
3401 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
3402 | fi | |
3403 | ||
3404 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
3405 | echo "$ac_t""yes" 1>&6 | |
3406 | else | |
3407 | echo "$ac_t""no" 1>&6 | |
3408 | fi | |
3409 | ||
3410 | ||
3411 | echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6 | |
3412 | echo "configure:3413: checking "for --enable-help"" >&5 | |
3413 | no_cache=0 | |
3414 | # Check whether --enable-help or --disable-help was given. | |
3415 | if test "${enable_help+set}" = set; then | |
3416 | enableval="$enable_help" | |
3417 | ||
3418 | if test "$enableval" = yes; then | |
3419 | ac_cv_use_help='wxUSE_HELP=yes' | |
3420 | else | |
3421 | ac_cv_use_help='wxUSE_HELP=no' | |
3422 | fi | |
3423 | ||
3424 | else | |
3425 | ||
3426 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
3427 | if test "x$LINE" != x ; then | |
3428 | eval "DEFAULT_$LINE" | |
3429 | else | |
3430 | no_cache=1 | |
3431 | fi | |
3432 | ||
3433 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
3434 | ||
3435 | fi | |
3436 | ||
3437 | ||
3438 | eval "$ac_cv_use_help" | |
3439 | if test "$no_cache" != 1; then | |
3440 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
3441 | fi | |
3442 | ||
3443 | if test "$wxUSE_HELP" = yes; then | |
3444 | echo "$ac_t""yes" 1>&6 | |
3445 | else | |
3446 | echo "$ac_t""no" 1>&6 | |
3447 | fi | |
3448 | ||
3449 | ||
3450 | echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6 | |
3451 | echo "configure:3452: checking "for --enable-constraints"" >&5 | |
3452 | no_cache=0 | |
3453 | # Check whether --enable-constraints or --disable-constraints was given. | |
3454 | if test "${enable_constraints+set}" = set; then | |
3455 | enableval="$enable_constraints" | |
3456 | ||
3457 | if test "$enableval" = yes; then | |
3458 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
3459 | else | |
3460 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
3461 | fi | |
3462 | ||
3463 | else | |
3464 | ||
3465 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
3466 | if test "x$LINE" != x ; then | |
3467 | eval "DEFAULT_$LINE" | |
3468 | else | |
3469 | no_cache=1 | |
3470 | fi | |
3471 | ||
3472 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
3473 | ||
3474 | fi | |
3475 | ||
3476 | ||
3477 | eval "$ac_cv_use_constraints" | |
3478 | if test "$no_cache" != 1; then | |
3479 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
3480 | fi | |
3481 | ||
3482 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
3483 | echo "$ac_t""yes" 1>&6 | |
3484 | else | |
3485 | echo "$ac_t""no" 1>&6 | |
3486 | fi | |
3487 | ||
3488 | ||
3489 | echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6 | |
3490 | echo "configure:3491: checking "for --enable-printarch"" >&5 | |
3491 | no_cache=0 | |
3492 | # Check whether --enable-printarch or --disable-printarch was given. | |
3493 | if test "${enable_printarch+set}" = set; then | |
3494 | enableval="$enable_printarch" | |
3495 | ||
3496 | if test "$enableval" = yes; then | |
3497 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
3498 | else | |
3499 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
3500 | fi | |
3501 | ||
3502 | else | |
3503 | ||
3504 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
3505 | if test "x$LINE" != x ; then | |
3506 | eval "DEFAULT_$LINE" | |
3507 | else | |
3508 | no_cache=1 | |
3509 | fi | |
3510 | ||
3511 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
3512 | ||
3513 | fi | |
3514 | ||
3515 | ||
3516 | eval "$ac_cv_use_printarch" | |
3517 | if test "$no_cache" != 1; then | |
3518 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
3519 | fi | |
3520 | ||
3521 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
3522 | echo "$ac_t""yes" 1>&6 | |
3523 | else | |
3524 | echo "$ac_t""no" 1>&6 | |
3525 | fi | |
3526 | ||
3527 | ||
3528 | echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6 | |
3529 | echo "configure:3530: checking "for --enable-mdi"" >&5 | |
3530 | no_cache=0 | |
3531 | # Check whether --enable-mdi or --disable-mdi was given. | |
3532 | if test "${enable_mdi+set}" = set; then | |
3533 | enableval="$enable_mdi" | |
3534 | ||
3535 | if test "$enableval" = yes; then | |
3536 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
3537 | else | |
3538 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
3539 | fi | |
3540 | ||
3541 | else | |
3542 | ||
3543 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
3544 | if test "x$LINE" != x ; then | |
3545 | eval "DEFAULT_$LINE" | |
3546 | else | |
3547 | no_cache=1 | |
3548 | fi | |
3549 | ||
3550 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
3551 | ||
3552 | fi | |
3553 | ||
3554 | ||
3555 | eval "$ac_cv_use_mdi" | |
3556 | if test "$no_cache" != 1; then | |
3557 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
3558 | fi | |
3559 | ||
3560 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
3561 | echo "$ac_t""yes" 1>&6 | |
3562 | else | |
3563 | echo "$ac_t""no" 1>&6 | |
3564 | fi | |
3565 | ||
3566 | ||
3567 | ||
3568 | echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6 | |
3569 | echo "configure:3570: checking "for --enable-postscript"" >&5 | |
3570 | no_cache=0 | |
3571 | # Check whether --enable-postscript or --disable-postscript was given. | |
3572 | if test "${enable_postscript+set}" = set; then | |
3573 | enableval="$enable_postscript" | |
3574 | ||
3575 | if test "$enableval" = yes; then | |
3576 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
3577 | else | |
3578 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
3579 | fi | |
3580 | ||
3581 | else | |
3582 | ||
3583 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
3584 | if test "x$LINE" != x ; then | |
3585 | eval "DEFAULT_$LINE" | |
3586 | else | |
3587 | no_cache=1 | |
3588 | fi | |
3589 | ||
3590 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
3591 | ||
3592 | fi | |
3593 | ||
3594 | ||
3595 | eval "$ac_cv_use_postscript" | |
3596 | if test "$no_cache" != 1; then | |
3597 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
3598 | fi | |
3599 | ||
3600 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
3601 | echo "$ac_t""yes" 1>&6 | |
3602 | else | |
3603 | echo "$ac_t""no" 1>&6 | |
3604 | fi | |
3605 | ||
3606 | ||
3607 | ||
3608 | ||
3609 | echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6 | |
3610 | echo "configure:3611: checking "for --enable-prologio"" >&5 | |
3611 | no_cache=0 | |
3612 | # Check whether --enable-prologio or --disable-prologio was given. | |
3613 | if test "${enable_prologio+set}" = set; then | |
3614 | enableval="$enable_prologio" | |
3615 | ||
3616 | if test "$enableval" = yes; then | |
3617 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
3618 | else | |
3619 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
3620 | fi | |
3621 | ||
3622 | else | |
3623 | ||
3624 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
3625 | if test "x$LINE" != x ; then | |
3626 | eval "DEFAULT_$LINE" | |
3627 | else | |
3628 | no_cache=1 | |
3629 | fi | |
3630 | ||
3631 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
3632 | ||
3633 | fi | |
3634 | ||
3635 | ||
3636 | eval "$ac_cv_use_prologio" | |
3637 | if test "$no_cache" != 1; then | |
3638 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
3639 | fi | |
3640 | ||
3641 | if test "$wxUSE_PROLOGIO" = yes; then | |
3642 | echo "$ac_t""yes" 1>&6 | |
3643 | else | |
3644 | echo "$ac_t""no" 1>&6 | |
3645 | fi | |
3646 | ||
3647 | ||
3648 | echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6 | |
3649 | echo "configure:3650: checking "for --enable-resources"" >&5 | |
3650 | no_cache=0 | |
3651 | # Check whether --enable-resources or --disable-resources was given. | |
3652 | if test "${enable_resources+set}" = set; then | |
3653 | enableval="$enable_resources" | |
3654 | ||
3655 | if test "$enableval" = yes; then | |
3656 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
3657 | else | |
3658 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
3659 | fi | |
3660 | ||
3661 | else | |
3662 | ||
3663 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
3664 | if test "x$LINE" != x ; then | |
3665 | eval "DEFAULT_$LINE" | |
3666 | else | |
3667 | no_cache=1 | |
3668 | fi | |
3669 | ||
3670 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
3671 | ||
3672 | fi | |
3673 | ||
3674 | ||
3675 | eval "$ac_cv_use_resources" | |
3676 | if test "$no_cache" != 1; then | |
3677 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
3678 | fi | |
3679 | ||
3680 | if test "$wxUSE_RESOURCES" = yes; then | |
3681 | echo "$ac_t""yes" 1>&6 | |
3682 | else | |
3683 | echo "$ac_t""no" 1>&6 | |
3684 | fi | |
3685 | ||
3686 | ||
3687 | ||
3688 | echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6 | |
3689 | echo "configure:3690: checking "for --enable-xresources"" >&5 | |
3690 | no_cache=0 | |
3691 | # Check whether --enable-xresources or --disable-xresources was given. | |
3692 | if test "${enable_xresources+set}" = set; then | |
3693 | enableval="$enable_xresources" | |
3694 | ||
3695 | if test "$enableval" = yes; then | |
3696 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
3697 | else | |
3698 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
3699 | fi | |
3700 | ||
3701 | else | |
3702 | ||
3703 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` | |
3704 | if test "x$LINE" != x ; then | |
3705 | eval "DEFAULT_$LINE" | |
3706 | else | |
3707 | no_cache=1 | |
3708 | fi | |
3709 | ||
3710 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
3711 | ||
3712 | fi | |
3713 | ||
3714 | ||
3715 | eval "$ac_cv_use_xresources" | |
3716 | if test "$no_cache" != 1; then | |
3717 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
3718 | fi | |
3719 | ||
3720 | if test "$wxUSE_X_RESOURCES" = yes; then | |
3721 | echo "$ac_t""yes" 1>&6 | |
3722 | else | |
3723 | echo "$ac_t""no" 1>&6 | |
3724 | fi | |
3725 | ||
3726 | ||
3727 | ||
3728 | ||
3729 | echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6 | |
3730 | echo "configure:3731: checking "for --enable-clipboard"" >&5 | |
3731 | no_cache=0 | |
3732 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
3733 | if test "${enable_clipboard+set}" = set; then | |
3734 | enableval="$enable_clipboard" | |
3735 | ||
3736 | if test "$enableval" = yes; then | |
3737 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
3738 | else | |
3739 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
3740 | fi | |
3741 | ||
3742 | else | |
3743 | ||
3744 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
3745 | if test "x$LINE" != x ; then | |
3746 | eval "DEFAULT_$LINE" | |
3747 | else | |
3748 | no_cache=1 | |
3749 | fi | |
3750 | ||
3751 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
3752 | ||
3753 | fi | |
3754 | ||
3755 | ||
3756 | eval "$ac_cv_use_clipboard" | |
3757 | if test "$no_cache" != 1; then | |
3758 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
3759 | fi | |
3760 | ||
3761 | if test "$wxUSE_CLIPBOARD" = yes; then | |
3762 | echo "$ac_t""yes" 1>&6 | |
3763 | else | |
3764 | echo "$ac_t""no" 1>&6 | |
3765 | fi | |
3766 | ||
3767 | ||
3768 | echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6 | |
3769 | echo "configure:3770: checking "for --enable-dnd"" >&5 | |
3770 | no_cache=0 | |
3771 | # Check whether --enable-dnd or --disable-dnd was given. | |
3772 | if test "${enable_dnd+set}" = set; then | |
3773 | enableval="$enable_dnd" | |
3774 | ||
3775 | if test "$enableval" = yes; then | |
3776 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
3777 | else | |
3778 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
3779 | fi | |
3780 | ||
3781 | else | |
3782 | ||
3783 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
3784 | if test "x$LINE" != x ; then | |
3785 | eval "DEFAULT_$LINE" | |
3786 | else | |
3787 | no_cache=1 | |
3788 | fi | |
3789 | ||
3790 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
3791 | ||
3792 | fi | |
3793 | ||
3794 | ||
3795 | eval "$ac_cv_use_dnd" | |
3796 | if test "$no_cache" != 1; then | |
3797 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
3798 | fi | |
3799 | ||
3800 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
3801 | echo "$ac_t""yes" 1>&6 | |
3802 | else | |
3803 | echo "$ac_t""no" 1>&6 | |
3804 | fi | |
3805 | ||
3806 | ||
3807 | ||
3808 | echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6 | |
3809 | echo "configure:3810: checking "for --enable-wxtree"" >&5 | |
3810 | no_cache=0 | |
3811 | # Check whether --enable-wxtree or --disable-wxtree was given. | |
3812 | if test "${enable_wxtree+set}" = set; then | |
3813 | enableval="$enable_wxtree" | |
3814 | ||
3815 | if test "$enableval" = yes; then | |
3816 | ac_cv_use_wxtree='wxUSE_WXTREE=yes' | |
3817 | else | |
3818 | ac_cv_use_wxtree='wxUSE_WXTREE=no' | |
3819 | fi | |
3820 | ||
3821 | else | |
3822 | ||
3823 | LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}` | |
3824 | if test "x$LINE" != x ; then | |
3825 | eval "DEFAULT_$LINE" | |
3826 | else | |
3827 | no_cache=1 | |
3828 | fi | |
3829 | ||
3830 | ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE | |
3831 | ||
3832 | fi | |
3833 | ||
3834 | ||
3835 | eval "$ac_cv_use_wxtree" | |
3836 | if test "$no_cache" != 1; then | |
3837 | echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp | |
3838 | fi | |
3839 | ||
3840 | if test "$wxUSE_WXTREE" = yes; then | |
3841 | echo "$ac_t""yes" 1>&6 | |
3842 | else | |
3843 | echo "$ac_t""no" 1>&6 | |
3844 | fi | |
3845 | ||
3846 | ||
3847 | ||
3848 | ||
3849 | echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6 | |
3850 | echo "configure:3851: checking "for --enable-controls"" >&5 | |
3851 | no_cache=0 | |
3852 | # Check whether --enable-controls or --disable-controls was given. | |
3853 | if test "${enable_controls+set}" = set; then | |
3854 | enableval="$enable_controls" | |
3855 | ||
3856 | if test "$enableval" = yes; then | |
3857 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
3858 | else | |
3859 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
3860 | fi | |
3861 | ||
3862 | else | |
3863 | ||
3864 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
3865 | if test "x$LINE" != x ; then | |
3866 | eval "DEFAULT_$LINE" | |
3867 | else | |
3868 | no_cache=1 | |
3869 | fi | |
3870 | ||
3871 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
3872 | ||
3873 | fi | |
3874 | ||
3875 | ||
3876 | eval "$ac_cv_use_controls" | |
3877 | if test "$no_cache" != 1; then | |
3878 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
3879 | fi | |
3880 | ||
3881 | if test "$wxUSE_CONTROLS" = yes; then | |
3882 | echo "$ac_t""yes" 1>&6 | |
3883 | else | |
3884 | echo "$ac_t""no" 1>&6 | |
3885 | fi | |
3886 | ||
3887 | ||
3888 | if test "$wxUSE_CONTROLS" = "yes"; then | |
3889 | DEFAULT_wxUSE_ACCEL=yes | |
3890 | DEFAULT_wxUSE_CARET=yes | |
3891 | DEFAULT_wxUSE_COMBOBOX=yes | |
3892 | DEFAULT_wxUSE_BMPBUTTON=yes | |
3893 | DEFAULT_wxUSE_CHECKBOX=yes | |
3894 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
3895 | DEFAULT_wxUSE_CHOICE=yes | |
3896 | DEFAULT_wxUSE_GAUGE=yes | |
3897 | DEFAULT_wxUSE_GRID=yes | |
3898 | DEFAULT_wxUSE_NEW_GRID=no | |
3899 | DEFAULT_wxUSE_IMAGLIST=yes | |
3900 | DEFAULT_wxUSE_LISTBOX=yes | |
3901 | DEFAULT_wxUSE_LISTCTRL=yes | |
3902 | DEFAULT_wxUSE_NOTEBOOK=yes | |
3903 | DEFAULT_wxUSE_RADIOBOX=yes | |
3904 | DEFAULT_wxUSE_RADIOBTN=yes | |
3905 | DEFAULT_wxUSE_SASH=yes | |
3906 | DEFAULT_wxUSE_SCROLLBAR=yes | |
3907 | DEFAULT_wxUSE_SLIDER=yes | |
3908 | DEFAULT_wxUSE_SPINBTN=yes | |
3909 | DEFAULT_wxUSE_SPINCTRL=yes | |
3910 | DEFAULT_wxUSE_SPLITTER=yes | |
3911 | DEFAULT_wxUSE_STATBMP=yes | |
3912 | DEFAULT_wxUSE_STATBOX=yes | |
3913 | DEFAULT_wxUSE_STATLINE=yes | |
3914 | DEFAULT_wxUSE_STATUSBAR=yes | |
3915 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
3916 | DEFAULT_wxUSE_TOOLBAR=yes | |
3917 | DEFAULT_wxUSE_TOOLTIPS=yes | |
3918 | DEFAULT_wxUSE_TREECTRL=yes | |
3919 | elif test "$wxUSE_CONTROLS" = "no"; then | |
3920 | DEFAULT_wxUSE_ACCEL=no | |
3921 | DEFAULT_wxUSE_CARET=no | |
3922 | DEFAULT_wxUSE_COMBOBOX=no | |
3923 | DEFAULT_wxUSE_BMPBUTTON=no | |
3924 | DEFAULT_wxUSE_CHECKBOX=no | |
3925 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
3926 | DEFAULT_wxUSE_CHOICE=no | |
3927 | DEFAULT_wxUSE_GAUGE=no | |
3928 | DEFAULT_wxUSE_GRID=no | |
3929 | DEFAULT_wxUSE_NEW_GRID=no | |
3930 | DEFAULT_wxUSE_IMAGLIST=no | |
3931 | DEFAULT_wxUSE_LISTBOX=no | |
3932 | DEFAULT_wxUSE_LISTCTRL=no | |
3933 | DEFAULT_wxUSE_NOTEBOOK=no | |
3934 | DEFAULT_wxUSE_RADIOBOX=no | |
3935 | DEFAULT_wxUSE_RADIOBTN=no | |
3936 | DEFAULT_wxUSE_SASH=no | |
3937 | DEFAULT_wxUSE_SCROLLBAR=no | |
3938 | DEFAULT_wxUSE_SLIDER=no | |
3939 | DEFAULT_wxUSE_SPINBTN=no | |
3940 | DEFAULT_wxUSE_SPINCTRL=no | |
3941 | DEFAULT_wxUSE_SPLITTER=no | |
3942 | DEFAULT_wxUSE_STATBMP=no | |
3943 | DEFAULT_wxUSE_STATBOX=no | |
3944 | DEFAULT_wxUSE_STATLINE=no | |
3945 | DEFAULT_wxUSE_STATUSBAR=no | |
3946 | DEFAULT_wxUSE_TAB_DIALOG=no | |
3947 | DEFAULT_wxUSE_TOOLBAR=no | |
3948 | DEFAULT_wxUSE_TOOLTIPS=no | |
3949 | DEFAULT_wxUSE_TREECTRL=no | |
3950 | fi | |
3951 | ||
3952 | ||
3953 | echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6 | |
3954 | echo "configure:3955: checking "for --enable-accel"" >&5 | |
3955 | no_cache=0 | |
3956 | # Check whether --enable-accel or --disable-accel was given. | |
3957 | if test "${enable_accel+set}" = set; then | |
3958 | enableval="$enable_accel" | |
3959 | ||
3960 | if test "$enableval" = yes; then | |
3961 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
3962 | else | |
3963 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
3964 | fi | |
3965 | ||
3966 | else | |
3967 | ||
3968 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
3969 | if test "x$LINE" != x ; then | |
3970 | eval "DEFAULT_$LINE" | |
3971 | else | |
3972 | no_cache=1 | |
3973 | fi | |
3974 | ||
3975 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
3976 | ||
3977 | fi | |
3978 | ||
3979 | ||
3980 | eval "$ac_cv_use_accel" | |
3981 | if test "$no_cache" != 1; then | |
3982 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
3983 | fi | |
3984 | ||
3985 | if test "$wxUSE_ACCEL" = yes; then | |
3986 | echo "$ac_t""yes" 1>&6 | |
3987 | else | |
3988 | echo "$ac_t""no" 1>&6 | |
3989 | fi | |
3990 | ||
3991 | ||
3992 | echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6 | |
3993 | echo "configure:3994: checking "for --enable-caret"" >&5 | |
3994 | no_cache=0 | |
3995 | # Check whether --enable-caret or --disable-caret was given. | |
3996 | if test "${enable_caret+set}" = set; then | |
3997 | enableval="$enable_caret" | |
3998 | ||
3999 | if test "$enableval" = yes; then | |
4000 | ac_cv_use_caret='wxUSE_CARET=yes' | |
4001 | else | |
4002 | ac_cv_use_caret='wxUSE_CARET=no' | |
4003 | fi | |
4004 | ||
4005 | else | |
4006 | ||
4007 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
4008 | if test "x$LINE" != x ; then | |
4009 | eval "DEFAULT_$LINE" | |
4010 | else | |
4011 | no_cache=1 | |
4012 | fi | |
4013 | ||
4014 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
4015 | ||
4016 | fi | |
4017 | ||
4018 | ||
4019 | eval "$ac_cv_use_caret" | |
4020 | if test "$no_cache" != 1; then | |
4021 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
4022 | fi | |
4023 | ||
4024 | if test "$wxUSE_CARET" = yes; then | |
4025 | echo "$ac_t""yes" 1>&6 | |
4026 | else | |
4027 | echo "$ac_t""no" 1>&6 | |
4028 | fi | |
4029 | ||
4030 | ||
4031 | echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6 | |
4032 | echo "configure:4033: checking "for --enable-bmpbutton"" >&5 | |
4033 | no_cache=0 | |
4034 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
4035 | if test "${enable_bmpbutton+set}" = set; then | |
4036 | enableval="$enable_bmpbutton" | |
4037 | ||
4038 | if test "$enableval" = yes; then | |
4039 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
4040 | else | |
4041 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
4042 | fi | |
4043 | ||
4044 | else | |
4045 | ||
4046 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
4047 | if test "x$LINE" != x ; then | |
4048 | eval "DEFAULT_$LINE" | |
4049 | else | |
4050 | no_cache=1 | |
4051 | fi | |
4052 | ||
4053 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
4054 | ||
4055 | fi | |
4056 | ||
4057 | ||
4058 | eval "$ac_cv_use_bmpbutton" | |
4059 | if test "$no_cache" != 1; then | |
4060 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
4061 | fi | |
4062 | ||
4063 | if test "$wxUSE_BMPBUTTON" = yes; then | |
4064 | echo "$ac_t""yes" 1>&6 | |
4065 | else | |
4066 | echo "$ac_t""no" 1>&6 | |
4067 | fi | |
4068 | ||
4069 | ||
4070 | echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6 | |
4071 | echo "configure:4072: checking "for --enable-checkbox"" >&5 | |
4072 | no_cache=0 | |
4073 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
4074 | if test "${enable_checkbox+set}" = set; then | |
4075 | enableval="$enable_checkbox" | |
4076 | ||
4077 | if test "$enableval" = yes; then | |
4078 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
4079 | else | |
4080 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
4081 | fi | |
4082 | ||
4083 | else | |
4084 | ||
4085 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
4086 | if test "x$LINE" != x ; then | |
4087 | eval "DEFAULT_$LINE" | |
4088 | else | |
4089 | no_cache=1 | |
4090 | fi | |
4091 | ||
4092 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
4093 | ||
4094 | fi | |
4095 | ||
4096 | ||
4097 | eval "$ac_cv_use_checkbox" | |
4098 | if test "$no_cache" != 1; then | |
4099 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
4100 | fi | |
4101 | ||
4102 | if test "$wxUSE_CHECKBOX" = yes; then | |
4103 | echo "$ac_t""yes" 1>&6 | |
4104 | else | |
4105 | echo "$ac_t""no" 1>&6 | |
4106 | fi | |
4107 | ||
4108 | ||
4109 | echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6 | |
4110 | echo "configure:4111: checking "for --enable-checklst"" >&5 | |
4111 | no_cache=0 | |
4112 | # Check whether --enable-checklst or --disable-checklst was given. | |
4113 | if test "${enable_checklst+set}" = set; then | |
4114 | enableval="$enable_checklst" | |
4115 | ||
4116 | if test "$enableval" = yes; then | |
4117 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
4118 | else | |
4119 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
4120 | fi | |
4121 | ||
4122 | else | |
4123 | ||
4124 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
4125 | if test "x$LINE" != x ; then | |
4126 | eval "DEFAULT_$LINE" | |
4127 | else | |
4128 | no_cache=1 | |
4129 | fi | |
4130 | ||
4131 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
4132 | ||
4133 | fi | |
4134 | ||
4135 | ||
4136 | eval "$ac_cv_use_checklst" | |
4137 | if test "$no_cache" != 1; then | |
4138 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
4139 | fi | |
4140 | ||
4141 | if test "$wxUSE_CHECKLST" = yes; then | |
4142 | echo "$ac_t""yes" 1>&6 | |
4143 | else | |
4144 | echo "$ac_t""no" 1>&6 | |
4145 | fi | |
4146 | ||
4147 | ||
4148 | echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6 | |
4149 | echo "configure:4150: checking "for --enable-choice"" >&5 | |
4150 | no_cache=0 | |
4151 | # Check whether --enable-choice or --disable-choice was given. | |
4152 | if test "${enable_choice+set}" = set; then | |
4153 | enableval="$enable_choice" | |
4154 | ||
4155 | if test "$enableval" = yes; then | |
4156 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
4157 | else | |
4158 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
4159 | fi | |
4160 | ||
4161 | else | |
4162 | ||
4163 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
4164 | if test "x$LINE" != x ; then | |
4165 | eval "DEFAULT_$LINE" | |
4166 | else | |
4167 | no_cache=1 | |
4168 | fi | |
4169 | ||
4170 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
4171 | ||
4172 | fi | |
4173 | ||
4174 | ||
4175 | eval "$ac_cv_use_choice" | |
4176 | if test "$no_cache" != 1; then | |
4177 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
4178 | fi | |
4179 | ||
4180 | if test "$wxUSE_CHOICE" = yes; then | |
4181 | echo "$ac_t""yes" 1>&6 | |
4182 | else | |
4183 | echo "$ac_t""no" 1>&6 | |
4184 | fi | |
4185 | ||
4186 | ||
4187 | echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6 | |
4188 | echo "configure:4189: checking "for --enable-combobox"" >&5 | |
4189 | no_cache=0 | |
4190 | # Check whether --enable-combobox or --disable-combobox was given. | |
4191 | if test "${enable_combobox+set}" = set; then | |
4192 | enableval="$enable_combobox" | |
4193 | ||
4194 | if test "$enableval" = yes; then | |
4195 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
4196 | else | |
4197 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
4198 | fi | |
4199 | ||
4200 | else | |
4201 | ||
4202 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
4203 | if test "x$LINE" != x ; then | |
4204 | eval "DEFAULT_$LINE" | |
4205 | else | |
4206 | no_cache=1 | |
4207 | fi | |
4208 | ||
4209 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
4210 | ||
4211 | fi | |
4212 | ||
4213 | ||
4214 | eval "$ac_cv_use_combobox" | |
4215 | if test "$no_cache" != 1; then | |
4216 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
4217 | fi | |
4218 | ||
4219 | if test "$wxUSE_COMBOBOX" = yes; then | |
4220 | echo "$ac_t""yes" 1>&6 | |
4221 | else | |
4222 | echo "$ac_t""no" 1>&6 | |
4223 | fi | |
4224 | ||
4225 | ||
4226 | echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6 | |
4227 | echo "configure:4228: checking "for --enable-gauge"" >&5 | |
4228 | no_cache=0 | |
4229 | # Check whether --enable-gauge or --disable-gauge was given. | |
4230 | if test "${enable_gauge+set}" = set; then | |
4231 | enableval="$enable_gauge" | |
4232 | ||
4233 | if test "$enableval" = yes; then | |
4234 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
4235 | else | |
4236 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
4237 | fi | |
4238 | ||
4239 | else | |
4240 | ||
4241 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
4242 | if test "x$LINE" != x ; then | |
4243 | eval "DEFAULT_$LINE" | |
4244 | else | |
4245 | no_cache=1 | |
4246 | fi | |
4247 | ||
4248 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
4249 | ||
4250 | fi | |
4251 | ||
4252 | ||
4253 | eval "$ac_cv_use_gauge" | |
4254 | if test "$no_cache" != 1; then | |
4255 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
4256 | fi | |
4257 | ||
4258 | if test "$wxUSE_GAUGE" = yes; then | |
4259 | echo "$ac_t""yes" 1>&6 | |
4260 | else | |
4261 | echo "$ac_t""no" 1>&6 | |
4262 | fi | |
4263 | ||
4264 | ||
4265 | echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6 | |
4266 | echo "configure:4267: checking "for --enable-grid"" >&5 | |
4267 | no_cache=0 | |
4268 | # Check whether --enable-grid or --disable-grid was given. | |
4269 | if test "${enable_grid+set}" = set; then | |
4270 | enableval="$enable_grid" | |
4271 | ||
4272 | if test "$enableval" = yes; then | |
4273 | ac_cv_use_grid='wxUSE_GRID=yes' | |
4274 | else | |
4275 | ac_cv_use_grid='wxUSE_GRID=no' | |
4276 | fi | |
4277 | ||
4278 | else | |
4279 | ||
4280 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
4281 | if test "x$LINE" != x ; then | |
4282 | eval "DEFAULT_$LINE" | |
4283 | else | |
4284 | no_cache=1 | |
4285 | fi | |
4286 | ||
4287 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
4288 | ||
4289 | fi | |
4290 | ||
4291 | ||
4292 | eval "$ac_cv_use_grid" | |
4293 | if test "$no_cache" != 1; then | |
4294 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
4295 | fi | |
4296 | ||
4297 | if test "$wxUSE_GRID" = yes; then | |
4298 | echo "$ac_t""yes" 1>&6 | |
4299 | else | |
4300 | echo "$ac_t""no" 1>&6 | |
4301 | fi | |
4302 | ||
4303 | ||
4304 | echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6 | |
4305 | echo "configure:4306: checking "for --enable-newgrid"" >&5 | |
4306 | no_cache=0 | |
4307 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
4308 | if test "${enable_newgrid+set}" = set; then | |
4309 | enableval="$enable_newgrid" | |
4310 | ||
4311 | if test "$enableval" = yes; then | |
4312 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
4313 | else | |
4314 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
4315 | fi | |
4316 | ||
4317 | else | |
4318 | ||
4319 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` | |
4320 | if test "x$LINE" != x ; then | |
4321 | eval "DEFAULT_$LINE" | |
4322 | else | |
4323 | no_cache=1 | |
4324 | fi | |
4325 | ||
4326 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
4327 | ||
4328 | fi | |
4329 | ||
4330 | ||
4331 | eval "$ac_cv_use_newgrid" | |
4332 | if test "$no_cache" != 1; then | |
4333 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
4334 | fi | |
4335 | ||
4336 | if test "$wxUSE_NEW_GRID" = yes; then | |
4337 | echo "$ac_t""yes" 1>&6 | |
4338 | else | |
4339 | echo "$ac_t""no" 1>&6 | |
4340 | fi | |
4341 | ||
4342 | ||
4343 | echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6 | |
4344 | echo "configure:4345: checking "for --enable-imaglist"" >&5 | |
4345 | no_cache=0 | |
4346 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
4347 | if test "${enable_imaglist+set}" = set; then | |
4348 | enableval="$enable_imaglist" | |
4349 | ||
4350 | if test "$enableval" = yes; then | |
4351 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
4352 | else | |
4353 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
4354 | fi | |
4355 | ||
4356 | else | |
4357 | ||
4358 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
4359 | if test "x$LINE" != x ; then | |
4360 | eval "DEFAULT_$LINE" | |
4361 | else | |
4362 | no_cache=1 | |
4363 | fi | |
4364 | ||
4365 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
4366 | ||
4367 | fi | |
4368 | ||
4369 | ||
4370 | eval "$ac_cv_use_imaglist" | |
4371 | if test "$no_cache" != 1; then | |
4372 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
4373 | fi | |
4374 | ||
4375 | if test "$wxUSE_IMAGLIST" = yes; then | |
4376 | echo "$ac_t""yes" 1>&6 | |
4377 | else | |
4378 | echo "$ac_t""no" 1>&6 | |
4379 | fi | |
4380 | ||
4381 | ||
4382 | echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6 | |
4383 | echo "configure:4384: checking "for --enable-listbox"" >&5 | |
4384 | no_cache=0 | |
4385 | # Check whether --enable-listbox or --disable-listbox was given. | |
4386 | if test "${enable_listbox+set}" = set; then | |
4387 | enableval="$enable_listbox" | |
4388 | ||
4389 | if test "$enableval" = yes; then | |
4390 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
4391 | else | |
4392 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
4393 | fi | |
4394 | ||
4395 | else | |
4396 | ||
4397 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
4398 | if test "x$LINE" != x ; then | |
4399 | eval "DEFAULT_$LINE" | |
4400 | else | |
4401 | no_cache=1 | |
4402 | fi | |
4403 | ||
4404 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
4405 | ||
4406 | fi | |
4407 | ||
4408 | ||
4409 | eval "$ac_cv_use_listbox" | |
4410 | if test "$no_cache" != 1; then | |
4411 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
4412 | fi | |
4413 | ||
4414 | if test "$wxUSE_LISTBOX" = yes; then | |
4415 | echo "$ac_t""yes" 1>&6 | |
4416 | else | |
4417 | echo "$ac_t""no" 1>&6 | |
4418 | fi | |
4419 | ||
4420 | ||
4421 | echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6 | |
4422 | echo "configure:4423: checking "for --enable-listctrl"" >&5 | |
4423 | no_cache=0 | |
4424 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
4425 | if test "${enable_listctrl+set}" = set; then | |
4426 | enableval="$enable_listctrl" | |
4427 | ||
4428 | if test "$enableval" = yes; then | |
4429 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
4430 | else | |
4431 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
4432 | fi | |
4433 | ||
4434 | else | |
4435 | ||
4436 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
4437 | if test "x$LINE" != x ; then | |
4438 | eval "DEFAULT_$LINE" | |
4439 | else | |
4440 | no_cache=1 | |
4441 | fi | |
4442 | ||
4443 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
4444 | ||
4445 | fi | |
4446 | ||
4447 | ||
4448 | eval "$ac_cv_use_listctrl" | |
4449 | if test "$no_cache" != 1; then | |
4450 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
4451 | fi | |
4452 | ||
4453 | if test "$wxUSE_LISTCTRL" = yes; then | |
4454 | echo "$ac_t""yes" 1>&6 | |
4455 | else | |
4456 | echo "$ac_t""no" 1>&6 | |
4457 | fi | |
4458 | ||
4459 | ||
4460 | echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6 | |
4461 | echo "configure:4462: checking "for --enable-notebook"" >&5 | |
4462 | no_cache=0 | |
4463 | # Check whether --enable-notebook or --disable-notebook was given. | |
4464 | if test "${enable_notebook+set}" = set; then | |
4465 | enableval="$enable_notebook" | |
4466 | ||
4467 | if test "$enableval" = yes; then | |
4468 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
4469 | else | |
4470 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
4471 | fi | |
4472 | ||
4473 | else | |
4474 | ||
4475 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
4476 | if test "x$LINE" != x ; then | |
4477 | eval "DEFAULT_$LINE" | |
4478 | else | |
4479 | no_cache=1 | |
4480 | fi | |
4481 | ||
4482 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
4483 | ||
4484 | fi | |
4485 | ||
4486 | ||
4487 | eval "$ac_cv_use_notebook" | |
4488 | if test "$no_cache" != 1; then | |
4489 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
4490 | fi | |
4491 | ||
4492 | if test "$wxUSE_NOTEBOOK" = yes; then | |
4493 | echo "$ac_t""yes" 1>&6 | |
4494 | else | |
4495 | echo "$ac_t""no" 1>&6 | |
4496 | fi | |
4497 | ||
4498 | ||
4499 | echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6 | |
4500 | echo "configure:4501: checking "for --enable-radiobox"" >&5 | |
4501 | no_cache=0 | |
4502 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
4503 | if test "${enable_radiobox+set}" = set; then | |
4504 | enableval="$enable_radiobox" | |
4505 | ||
4506 | if test "$enableval" = yes; then | |
4507 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
4508 | else | |
4509 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
4510 | fi | |
4511 | ||
4512 | else | |
4513 | ||
4514 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
4515 | if test "x$LINE" != x ; then | |
4516 | eval "DEFAULT_$LINE" | |
4517 | else | |
4518 | no_cache=1 | |
4519 | fi | |
4520 | ||
4521 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
4522 | ||
4523 | fi | |
4524 | ||
4525 | ||
4526 | eval "$ac_cv_use_radiobox" | |
4527 | if test "$no_cache" != 1; then | |
4528 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
4529 | fi | |
4530 | ||
4531 | if test "$wxUSE_RADIOBOX" = yes; then | |
4532 | echo "$ac_t""yes" 1>&6 | |
4533 | else | |
4534 | echo "$ac_t""no" 1>&6 | |
4535 | fi | |
4536 | ||
4537 | ||
4538 | echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6 | |
4539 | echo "configure:4540: checking "for --enable-radiobtn"" >&5 | |
4540 | no_cache=0 | |
4541 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
4542 | if test "${enable_radiobtn+set}" = set; then | |
4543 | enableval="$enable_radiobtn" | |
4544 | ||
4545 | if test "$enableval" = yes; then | |
4546 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
4547 | else | |
4548 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
4549 | fi | |
4550 | ||
4551 | else | |
4552 | ||
4553 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
4554 | if test "x$LINE" != x ; then | |
4555 | eval "DEFAULT_$LINE" | |
4556 | else | |
4557 | no_cache=1 | |
4558 | fi | |
4559 | ||
4560 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
4561 | ||
4562 | fi | |
4563 | ||
4564 | ||
4565 | eval "$ac_cv_use_radiobtn" | |
4566 | if test "$no_cache" != 1; then | |
4567 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
4568 | fi | |
4569 | ||
4570 | if test "$wxUSE_RADIOBTN" = yes; then | |
4571 | echo "$ac_t""yes" 1>&6 | |
4572 | else | |
4573 | echo "$ac_t""no" 1>&6 | |
4574 | fi | |
4575 | ||
4576 | ||
4577 | echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6 | |
4578 | echo "configure:4579: checking "for --enable-sash"" >&5 | |
4579 | no_cache=0 | |
4580 | # Check whether --enable-sash or --disable-sash was given. | |
4581 | if test "${enable_sash+set}" = set; then | |
4582 | enableval="$enable_sash" | |
4583 | ||
4584 | if test "$enableval" = yes; then | |
4585 | ac_cv_use_sash='wxUSE_SASH=yes' | |
4586 | else | |
4587 | ac_cv_use_sash='wxUSE_SASH=no' | |
4588 | fi | |
4589 | ||
4590 | else | |
4591 | ||
4592 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
4593 | if test "x$LINE" != x ; then | |
4594 | eval "DEFAULT_$LINE" | |
4595 | else | |
4596 | no_cache=1 | |
4597 | fi | |
4598 | ||
4599 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
4600 | ||
4601 | fi | |
4602 | ||
4603 | ||
4604 | eval "$ac_cv_use_sash" | |
4605 | if test "$no_cache" != 1; then | |
4606 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
4607 | fi | |
4608 | ||
4609 | if test "$wxUSE_SASH" = yes; then | |
4610 | echo "$ac_t""yes" 1>&6 | |
4611 | else | |
4612 | echo "$ac_t""no" 1>&6 | |
4613 | fi | |
4614 | ||
4615 | ||
4616 | echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6 | |
4617 | echo "configure:4618: checking "for --enable-scrollbar"" >&5 | |
4618 | no_cache=0 | |
4619 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
4620 | if test "${enable_scrollbar+set}" = set; then | |
4621 | enableval="$enable_scrollbar" | |
4622 | ||
4623 | if test "$enableval" = yes; then | |
4624 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
4625 | else | |
4626 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
4627 | fi | |
4628 | ||
4629 | else | |
4630 | ||
4631 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
4632 | if test "x$LINE" != x ; then | |
4633 | eval "DEFAULT_$LINE" | |
4634 | else | |
4635 | no_cache=1 | |
4636 | fi | |
4637 | ||
4638 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
4639 | ||
4640 | fi | |
4641 | ||
4642 | ||
4643 | eval "$ac_cv_use_scrollbar" | |
4644 | if test "$no_cache" != 1; then | |
4645 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
4646 | fi | |
4647 | ||
4648 | if test "$wxUSE_SCROLLBAR" = yes; then | |
4649 | echo "$ac_t""yes" 1>&6 | |
4650 | else | |
4651 | echo "$ac_t""no" 1>&6 | |
4652 | fi | |
4653 | ||
4654 | ||
4655 | echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6 | |
4656 | echo "configure:4657: checking "for --enable-slider"" >&5 | |
4657 | no_cache=0 | |
4658 | # Check whether --enable-slider or --disable-slider was given. | |
4659 | if test "${enable_slider+set}" = set; then | |
4660 | enableval="$enable_slider" | |
4661 | ||
4662 | if test "$enableval" = yes; then | |
4663 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
4664 | else | |
4665 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
4666 | fi | |
4667 | ||
4668 | else | |
4669 | ||
4670 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
4671 | if test "x$LINE" != x ; then | |
4672 | eval "DEFAULT_$LINE" | |
4673 | else | |
4674 | no_cache=1 | |
4675 | fi | |
4676 | ||
4677 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
4678 | ||
4679 | fi | |
4680 | ||
4681 | ||
4682 | eval "$ac_cv_use_slider" | |
4683 | if test "$no_cache" != 1; then | |
4684 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
4685 | fi | |
4686 | ||
4687 | if test "$wxUSE_SLIDER" = yes; then | |
4688 | echo "$ac_t""yes" 1>&6 | |
4689 | else | |
4690 | echo "$ac_t""no" 1>&6 | |
4691 | fi | |
4692 | ||
4693 | ||
4694 | echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6 | |
4695 | echo "configure:4696: checking "for --enable-spinbtn"" >&5 | |
4696 | no_cache=0 | |
4697 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
4698 | if test "${enable_spinbtn+set}" = set; then | |
4699 | enableval="$enable_spinbtn" | |
4700 | ||
4701 | if test "$enableval" = yes; then | |
4702 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
4703 | else | |
4704 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
4705 | fi | |
4706 | ||
4707 | else | |
4708 | ||
4709 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
4710 | if test "x$LINE" != x ; then | |
4711 | eval "DEFAULT_$LINE" | |
4712 | else | |
4713 | no_cache=1 | |
4714 | fi | |
4715 | ||
4716 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
4717 | ||
4718 | fi | |
4719 | ||
4720 | ||
4721 | eval "$ac_cv_use_spinbtn" | |
4722 | if test "$no_cache" != 1; then | |
4723 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
4724 | fi | |
4725 | ||
4726 | if test "$wxUSE_SPINBTN" = yes; then | |
4727 | echo "$ac_t""yes" 1>&6 | |
4728 | else | |
4729 | echo "$ac_t""no" 1>&6 | |
4730 | fi | |
4731 | ||
4732 | ||
4733 | echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6 | |
4734 | echo "configure:4735: checking "for --enable-spinctrl"" >&5 | |
4735 | no_cache=0 | |
4736 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
4737 | if test "${enable_spinctrl+set}" = set; then | |
4738 | enableval="$enable_spinctrl" | |
4739 | ||
4740 | if test "$enableval" = yes; then | |
4741 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
4742 | else | |
4743 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
4744 | fi | |
4745 | ||
4746 | else | |
4747 | ||
4748 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
4749 | if test "x$LINE" != x ; then | |
4750 | eval "DEFAULT_$LINE" | |
4751 | else | |
4752 | no_cache=1 | |
4753 | fi | |
4754 | ||
4755 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
4756 | ||
4757 | fi | |
4758 | ||
4759 | ||
4760 | eval "$ac_cv_use_spinctrl" | |
4761 | if test "$no_cache" != 1; then | |
4762 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
4763 | fi | |
4764 | ||
4765 | if test "$wxUSE_SPINCTRL" = yes; then | |
4766 | echo "$ac_t""yes" 1>&6 | |
4767 | else | |
4768 | echo "$ac_t""no" 1>&6 | |
4769 | fi | |
4770 | ||
4771 | ||
4772 | echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6 | |
4773 | echo "configure:4774: checking "for --enable-splitter"" >&5 | |
4774 | no_cache=0 | |
4775 | # Check whether --enable-splitter or --disable-splitter was given. | |
4776 | if test "${enable_splitter+set}" = set; then | |
4777 | enableval="$enable_splitter" | |
4778 | ||
4779 | if test "$enableval" = yes; then | |
4780 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
4781 | else | |
4782 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
4783 | fi | |
4784 | ||
4785 | else | |
4786 | ||
4787 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
4788 | if test "x$LINE" != x ; then | |
4789 | eval "DEFAULT_$LINE" | |
4790 | else | |
4791 | no_cache=1 | |
4792 | fi | |
4793 | ||
4794 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
4795 | ||
4796 | fi | |
4797 | ||
4798 | ||
4799 | eval "$ac_cv_use_splitter" | |
4800 | if test "$no_cache" != 1; then | |
4801 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
4802 | fi | |
4803 | ||
4804 | if test "$wxUSE_SPLITTER" = yes; then | |
4805 | echo "$ac_t""yes" 1>&6 | |
4806 | else | |
4807 | echo "$ac_t""no" 1>&6 | |
4808 | fi | |
4809 | ||
4810 | ||
4811 | echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6 | |
4812 | echo "configure:4813: checking "for --enable-statbmp"" >&5 | |
4813 | no_cache=0 | |
4814 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
4815 | if test "${enable_statbmp+set}" = set; then | |
4816 | enableval="$enable_statbmp" | |
4817 | ||
4818 | if test "$enableval" = yes; then | |
4819 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
4820 | else | |
4821 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
4822 | fi | |
4823 | ||
4824 | else | |
4825 | ||
4826 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
4827 | if test "x$LINE" != x ; then | |
4828 | eval "DEFAULT_$LINE" | |
4829 | else | |
4830 | no_cache=1 | |
4831 | fi | |
4832 | ||
4833 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
4834 | ||
4835 | fi | |
4836 | ||
4837 | ||
4838 | eval "$ac_cv_use_statbmp" | |
4839 | if test "$no_cache" != 1; then | |
4840 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
4841 | fi | |
4842 | ||
4843 | if test "$wxUSE_STATBMP" = yes; then | |
4844 | echo "$ac_t""yes" 1>&6 | |
4845 | else | |
4846 | echo "$ac_t""no" 1>&6 | |
4847 | fi | |
4848 | ||
4849 | ||
4850 | echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6 | |
4851 | echo "configure:4852: checking "for --enable-statbox"" >&5 | |
4852 | no_cache=0 | |
4853 | # Check whether --enable-statbox or --disable-statbox was given. | |
4854 | if test "${enable_statbox+set}" = set; then | |
4855 | enableval="$enable_statbox" | |
4856 | ||
4857 | if test "$enableval" = yes; then | |
4858 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
4859 | else | |
4860 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
4861 | fi | |
4862 | ||
4863 | else | |
4864 | ||
4865 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
4866 | if test "x$LINE" != x ; then | |
4867 | eval "DEFAULT_$LINE" | |
4868 | else | |
4869 | no_cache=1 | |
4870 | fi | |
4871 | ||
4872 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
4873 | ||
4874 | fi | |
4875 | ||
4876 | ||
4877 | eval "$ac_cv_use_statbox" | |
4878 | if test "$no_cache" != 1; then | |
4879 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
4880 | fi | |
4881 | ||
4882 | if test "$wxUSE_STATBOX" = yes; then | |
4883 | echo "$ac_t""yes" 1>&6 | |
4884 | else | |
4885 | echo "$ac_t""no" 1>&6 | |
4886 | fi | |
4887 | ||
4888 | ||
4889 | echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6 | |
4890 | echo "configure:4891: checking "for --enable-statline"" >&5 | |
4891 | no_cache=0 | |
4892 | # Check whether --enable-statline or --disable-statline was given. | |
4893 | if test "${enable_statline+set}" = set; then | |
4894 | enableval="$enable_statline" | |
4895 | ||
4896 | if test "$enableval" = yes; then | |
4897 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
4898 | else | |
4899 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
4900 | fi | |
4901 | ||
4902 | else | |
4903 | ||
4904 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
4905 | if test "x$LINE" != x ; then | |
4906 | eval "DEFAULT_$LINE" | |
4907 | else | |
4908 | no_cache=1 | |
4909 | fi | |
4910 | ||
4911 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
4912 | ||
4913 | fi | |
4914 | ||
4915 | ||
4916 | eval "$ac_cv_use_statline" | |
4917 | if test "$no_cache" != 1; then | |
4918 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
4919 | fi | |
4920 | ||
4921 | if test "$wxUSE_STATLINE" = yes; then | |
4922 | echo "$ac_t""yes" 1>&6 | |
4923 | else | |
4924 | echo "$ac_t""no" 1>&6 | |
4925 | fi | |
4926 | ||
4927 | ||
4928 | echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6 | |
4929 | echo "configure:4930: checking "for --enable-statusbar"" >&5 | |
4930 | no_cache=0 | |
4931 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
4932 | if test "${enable_statusbar+set}" = set; then | |
4933 | enableval="$enable_statusbar" | |
4934 | ||
4935 | if test "$enableval" = yes; then | |
4936 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
4937 | else | |
4938 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
4939 | fi | |
4940 | ||
4941 | else | |
4942 | ||
4943 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
4944 | if test "x$LINE" != x ; then | |
4945 | eval "DEFAULT_$LINE" | |
4946 | else | |
4947 | no_cache=1 | |
4948 | fi | |
4949 | ||
4950 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
4951 | ||
4952 | fi | |
4953 | ||
4954 | ||
4955 | eval "$ac_cv_use_statusbar" | |
4956 | if test "$no_cache" != 1; then | |
4957 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
4958 | fi | |
4959 | ||
4960 | if test "$wxUSE_STATUSBAR" = yes; then | |
4961 | echo "$ac_t""yes" 1>&6 | |
4962 | else | |
4963 | echo "$ac_t""no" 1>&6 | |
4964 | fi | |
4965 | ||
4966 | ||
4967 | echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6 | |
4968 | echo "configure:4969: checking "for --enable-tabdialog"" >&5 | |
4969 | no_cache=0 | |
4970 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
4971 | if test "${enable_tabdialog+set}" = set; then | |
4972 | enableval="$enable_tabdialog" | |
4973 | ||
4974 | if test "$enableval" = yes; then | |
4975 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
4976 | else | |
4977 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
4978 | fi | |
4979 | ||
4980 | else | |
4981 | ||
4982 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
4983 | if test "x$LINE" != x ; then | |
4984 | eval "DEFAULT_$LINE" | |
4985 | else | |
4986 | no_cache=1 | |
4987 | fi | |
4988 | ||
4989 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
4990 | ||
4991 | fi | |
4992 | ||
4993 | ||
4994 | eval "$ac_cv_use_tabdialog" | |
4995 | if test "$no_cache" != 1; then | |
4996 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
4997 | fi | |
4998 | ||
4999 | if test "$wxUSE_TABDIALOG" = yes; then | |
5000 | echo "$ac_t""yes" 1>&6 | |
5001 | else | |
5002 | echo "$ac_t""no" 1>&6 | |
5003 | fi | |
5004 | ||
5005 | ||
5006 | echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6 | |
5007 | echo "configure:5008: checking "for --enable-toolbar"" >&5 | |
5008 | no_cache=0 | |
5009 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
5010 | if test "${enable_toolbar+set}" = set; then | |
5011 | enableval="$enable_toolbar" | |
5012 | ||
5013 | if test "$enableval" = yes; then | |
5014 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
5015 | else | |
5016 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
5017 | fi | |
5018 | ||
5019 | else | |
5020 | ||
5021 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
5022 | if test "x$LINE" != x ; then | |
5023 | eval "DEFAULT_$LINE" | |
5024 | else | |
5025 | no_cache=1 | |
5026 | fi | |
5027 | ||
5028 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
5029 | ||
5030 | fi | |
5031 | ||
5032 | ||
5033 | eval "$ac_cv_use_toolbar" | |
5034 | if test "$no_cache" != 1; then | |
5035 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
5036 | fi | |
5037 | ||
5038 | if test "$wxUSE_TOOLBAR" = yes; then | |
5039 | echo "$ac_t""yes" 1>&6 | |
5040 | else | |
5041 | echo "$ac_t""no" 1>&6 | |
5042 | fi | |
5043 | ||
5044 | ||
5045 | echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6 | |
5046 | echo "configure:5047: checking "for --enable-treectrl"" >&5 | |
5047 | no_cache=0 | |
5048 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
5049 | if test "${enable_treectrl+set}" = set; then | |
5050 | enableval="$enable_treectrl" | |
5051 | ||
5052 | if test "$enableval" = yes; then | |
5053 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
5054 | else | |
5055 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
5056 | fi | |
5057 | ||
5058 | else | |
5059 | ||
5060 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
5061 | if test "x$LINE" != x ; then | |
5062 | eval "DEFAULT_$LINE" | |
5063 | else | |
5064 | no_cache=1 | |
5065 | fi | |
5066 | ||
5067 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
5068 | ||
5069 | fi | |
5070 | ||
5071 | ||
5072 | eval "$ac_cv_use_treectrl" | |
5073 | if test "$no_cache" != 1; then | |
5074 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
5075 | fi | |
5076 | ||
5077 | if test "$wxUSE_TREECTRL" = yes; then | |
5078 | echo "$ac_t""yes" 1>&6 | |
5079 | else | |
5080 | echo "$ac_t""no" 1>&6 | |
5081 | fi | |
5082 | ||
5083 | ||
5084 | ||
5085 | ||
5086 | echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6 | |
5087 | echo "configure:5088: checking "for --enable-commondlg"" >&5 | |
5088 | no_cache=0 | |
5089 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
5090 | if test "${enable_commondlg+set}" = set; then | |
5091 | enableval="$enable_commondlg" | |
5092 | ||
5093 | if test "$enableval" = yes; then | |
5094 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
5095 | else | |
5096 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
5097 | fi | |
5098 | ||
5099 | else | |
5100 | ||
5101 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
5102 | if test "x$LINE" != x ; then | |
5103 | eval "DEFAULT_$LINE" | |
5104 | else | |
5105 | no_cache=1 | |
5106 | fi | |
5107 | ||
5108 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
5109 | ||
5110 | fi | |
5111 | ||
5112 | ||
5113 | eval "$ac_cv_use_commondlg" | |
5114 | if test "$no_cache" != 1; then | |
5115 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
5116 | fi | |
5117 | ||
5118 | if test "$wxUSE_COMMONDLGS" = yes; then | |
5119 | echo "$ac_t""yes" 1>&6 | |
5120 | else | |
5121 | echo "$ac_t""no" 1>&6 | |
5122 | fi | |
5123 | ||
5124 | ||
5125 | echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6 | |
5126 | echo "configure:5127: checking "for --enable-dirdlg"" >&5 | |
5127 | no_cache=0 | |
5128 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
5129 | if test "${enable_dirdlg+set}" = set; then | |
5130 | enableval="$enable_dirdlg" | |
5131 | ||
5132 | if test "$enableval" = yes; then | |
5133 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
5134 | else | |
5135 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
5136 | fi | |
5137 | ||
5138 | else | |
5139 | ||
5140 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
5141 | if test "x$LINE" != x ; then | |
5142 | eval "DEFAULT_$LINE" | |
5143 | else | |
5144 | no_cache=1 | |
5145 | fi | |
5146 | ||
5147 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
5148 | ||
5149 | fi | |
5150 | ||
5151 | ||
5152 | eval "$ac_cv_use_dirdlg" | |
5153 | if test "$no_cache" != 1; then | |
5154 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
5155 | fi | |
5156 | ||
5157 | if test "$wxUSE_DIRDLG" = yes; then | |
5158 | echo "$ac_t""yes" 1>&6 | |
5159 | else | |
5160 | echo "$ac_t""no" 1>&6 | |
5161 | fi | |
5162 | ||
5163 | ||
5164 | echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6 | |
5165 | echo "configure:5166: checking "for --enable-textdlg"" >&5 | |
5166 | no_cache=0 | |
5167 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
5168 | if test "${enable_textdlg+set}" = set; then | |
5169 | enableval="$enable_textdlg" | |
5170 | ||
5171 | if test "$enableval" = yes; then | |
5172 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
5173 | else | |
5174 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
5175 | fi | |
5176 | ||
5177 | else | |
5178 | ||
5179 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
5180 | if test "x$LINE" != x ; then | |
5181 | eval "DEFAULT_$LINE" | |
5182 | else | |
5183 | no_cache=1 | |
5184 | fi | |
5185 | ||
5186 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
5187 | ||
5188 | fi | |
5189 | ||
5190 | ||
5191 | eval "$ac_cv_use_textdlg" | |
5192 | if test "$no_cache" != 1; then | |
5193 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
5194 | fi | |
5195 | ||
5196 | if test "$wxUSE_TEXTDLG" = yes; then | |
5197 | echo "$ac_t""yes" 1>&6 | |
5198 | else | |
5199 | echo "$ac_t""no" 1>&6 | |
5200 | fi | |
5201 | ||
5202 | ||
5203 | echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6 | |
5204 | echo "configure:5205: checking "for --enable-tipdlg"" >&5 | |
5205 | no_cache=0 | |
5206 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
5207 | if test "${enable_tipdlg+set}" = set; then | |
5208 | enableval="$enable_tipdlg" | |
5209 | ||
5210 | if test "$enableval" = yes; then | |
5211 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
5212 | else | |
5213 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
5214 | fi | |
5215 | ||
5216 | else | |
5217 | ||
5218 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
5219 | if test "x$LINE" != x ; then | |
5220 | eval "DEFAULT_$LINE" | |
5221 | else | |
5222 | no_cache=1 | |
5223 | fi | |
5224 | ||
5225 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
5226 | ||
5227 | fi | |
5228 | ||
5229 | ||
5230 | eval "$ac_cv_use_tipdlg" | |
5231 | if test "$no_cache" != 1; then | |
5232 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
5233 | fi | |
5234 | ||
5235 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
5236 | echo "$ac_t""yes" 1>&6 | |
5237 | else | |
5238 | echo "$ac_t""no" 1>&6 | |
5239 | fi | |
5240 | ||
5241 | ||
5242 | echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6 | |
5243 | echo "configure:5244: checking "for --enable-progressdlg"" >&5 | |
5244 | no_cache=0 | |
5245 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
5246 | if test "${enable_progressdlg+set}" = set; then | |
5247 | enableval="$enable_progressdlg" | |
5248 | ||
5249 | if test "$enableval" = yes; then | |
5250 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
5251 | else | |
5252 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
5253 | fi | |
5254 | ||
5255 | else | |
5256 | ||
5257 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
5258 | if test "x$LINE" != x ; then | |
5259 | eval "DEFAULT_$LINE" | |
5260 | else | |
5261 | no_cache=1 | |
5262 | fi | |
5263 | ||
5264 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
5265 | ||
5266 | fi | |
5267 | ||
5268 | ||
5269 | eval "$ac_cv_use_progressdlg" | |
5270 | if test "$no_cache" != 1; then | |
5271 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
5272 | fi | |
5273 | ||
5274 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
5275 | echo "$ac_t""yes" 1>&6 | |
5276 | else | |
5277 | echo "$ac_t""no" 1>&6 | |
5278 | fi | |
5279 | ||
5280 | ||
5281 | echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6 | |
5282 | echo "configure:5283: checking "for --enable-miniframe"" >&5 | |
5283 | no_cache=0 | |
5284 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
5285 | if test "${enable_miniframe+set}" = set; then | |
5286 | enableval="$enable_miniframe" | |
5287 | ||
5288 | if test "$enableval" = yes; then | |
5289 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
5290 | else | |
5291 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
5292 | fi | |
5293 | ||
5294 | else | |
5295 | ||
5296 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
5297 | if test "x$LINE" != x ; then | |
5298 | eval "DEFAULT_$LINE" | |
5299 | else | |
5300 | no_cache=1 | |
5301 | fi | |
5302 | ||
5303 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
5304 | ||
5305 | fi | |
5306 | ||
5307 | ||
5308 | eval "$ac_cv_use_miniframe" | |
5309 | if test "$no_cache" != 1; then | |
5310 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
5311 | fi | |
5312 | ||
5313 | if test "$wxUSE_MINIFRAME" = yes; then | |
5314 | echo "$ac_t""yes" 1>&6 | |
5315 | else | |
5316 | echo "$ac_t""no" 1>&6 | |
5317 | fi | |
5318 | ||
5319 | ||
5320 | echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6 | |
5321 | echo "configure:5322: checking "for --enable-html"" >&5 | |
5322 | no_cache=0 | |
5323 | # Check whether --enable-html or --disable-html was given. | |
5324 | if test "${enable_html+set}" = set; then | |
5325 | enableval="$enable_html" | |
5326 | ||
5327 | if test "$enableval" = yes; then | |
5328 | ac_cv_use_html='wxUSE_HTML=yes' | |
5329 | else | |
5330 | ac_cv_use_html='wxUSE_HTML=no' | |
5331 | fi | |
5332 | ||
5333 | else | |
5334 | ||
5335 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
5336 | if test "x$LINE" != x ; then | |
5337 | eval "DEFAULT_$LINE" | |
5338 | else | |
5339 | no_cache=1 | |
5340 | fi | |
5341 | ||
5342 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
5343 | ||
5344 | fi | |
5345 | ||
5346 | ||
5347 | eval "$ac_cv_use_html" | |
5348 | if test "$no_cache" != 1; then | |
5349 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
5350 | fi | |
5351 | ||
5352 | if test "$wxUSE_HTML" = yes; then | |
5353 | echo "$ac_t""yes" 1>&6 | |
5354 | else | |
5355 | echo "$ac_t""no" 1>&6 | |
5356 | fi | |
5357 | ||
5358 | ||
5359 | echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6 | |
5360 | echo "configure:5361: checking "for --enable-tooltips"" >&5 | |
5361 | no_cache=0 | |
5362 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
5363 | if test "${enable_tooltips+set}" = set; then | |
5364 | enableval="$enable_tooltips" | |
5365 | ||
5366 | if test "$enableval" = yes; then | |
5367 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
5368 | else | |
5369 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
5370 | fi | |
5371 | ||
5372 | else | |
5373 | ||
5374 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
5375 | if test "x$LINE" != x ; then | |
5376 | eval "DEFAULT_$LINE" | |
5377 | else | |
5378 | no_cache=1 | |
5379 | fi | |
5380 | ||
5381 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
5382 | ||
5383 | fi | |
5384 | ||
5385 | ||
5386 | eval "$ac_cv_use_tooltips" | |
5387 | if test "$no_cache" != 1; then | |
5388 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
5389 | fi | |
5390 | ||
5391 | if test "$wxUSE_TOOLTIPS" = yes; then | |
5392 | echo "$ac_t""yes" 1>&6 | |
5393 | else | |
5394 | echo "$ac_t""no" 1>&6 | |
5395 | fi | |
5396 | ||
5397 | ||
5398 | echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6 | |
5399 | echo "configure:5400: checking "for --enable-splines"" >&5 | |
5400 | no_cache=0 | |
5401 | # Check whether --enable-splines or --disable-splines was given. | |
5402 | if test "${enable_splines+set}" = set; then | |
5403 | enableval="$enable_splines" | |
5404 | ||
5405 | if test "$enableval" = yes; then | |
5406 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
5407 | else | |
5408 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
5409 | fi | |
5410 | ||
5411 | else | |
5412 | ||
5413 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
5414 | if test "x$LINE" != x ; then | |
5415 | eval "DEFAULT_$LINE" | |
5416 | else | |
5417 | no_cache=1 | |
5418 | fi | |
5419 | ||
5420 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
5421 | ||
5422 | fi | |
5423 | ||
5424 | ||
5425 | eval "$ac_cv_use_splines" | |
5426 | if test "$no_cache" != 1; then | |
5427 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
5428 | fi | |
5429 | ||
5430 | if test "$wxUSE_SPLINES" = yes; then | |
5431 | echo "$ac_t""yes" 1>&6 | |
5432 | else | |
5433 | echo "$ac_t""no" 1>&6 | |
5434 | fi | |
5435 | ||
5436 | ||
5437 | echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6 | |
5438 | echo "configure:5439: checking "for --enable-validators"" >&5 | |
5439 | no_cache=0 | |
5440 | # Check whether --enable-validators or --disable-validators was given. | |
5441 | if test "${enable_validators+set}" = set; then | |
5442 | enableval="$enable_validators" | |
5443 | ||
5444 | if test "$enableval" = yes; then | |
5445 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
5446 | else | |
5447 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
5448 | fi | |
5449 | ||
5450 | else | |
5451 | ||
5452 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
5453 | if test "x$LINE" != x ; then | |
5454 | eval "DEFAULT_$LINE" | |
5455 | else | |
5456 | no_cache=1 | |
5457 | fi | |
5458 | ||
5459 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
5460 | ||
5461 | fi | |
5462 | ||
5463 | ||
5464 | eval "$ac_cv_use_validators" | |
5465 | if test "$no_cache" != 1; then | |
5466 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
5467 | fi | |
5468 | ||
5469 | if test "$wxUSE_VALIDATORS" = yes; then | |
5470 | echo "$ac_t""yes" 1>&6 | |
5471 | else | |
5472 | echo "$ac_t""no" 1>&6 | |
5473 | fi | |
5474 | ||
5475 | ||
5476 | echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6 | |
5477 | echo "configure:5478: checking "for --enable-busyinfo"" >&5 | |
5478 | no_cache=0 | |
5479 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
5480 | if test "${enable_busyinfo+set}" = set; then | |
5481 | enableval="$enable_busyinfo" | |
5482 | ||
5483 | if test "$enableval" = yes; then | |
5484 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
5485 | else | |
5486 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
5487 | fi | |
5488 | ||
5489 | else | |
5490 | ||
5491 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
5492 | if test "x$LINE" != x ; then | |
5493 | eval "DEFAULT_$LINE" | |
5494 | else | |
5495 | no_cache=1 | |
5496 | fi | |
5497 | ||
5498 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
5499 | ||
5500 | fi | |
5501 | ||
5502 | ||
5503 | eval "$ac_cv_use_busyinfo" | |
5504 | if test "$no_cache" != 1; then | |
5505 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
5506 | fi | |
5507 | ||
5508 | if test "$wxUSE_BUSYINFO" = yes; then | |
5509 | echo "$ac_t""yes" 1>&6 | |
5510 | else | |
5511 | echo "$ac_t""no" 1>&6 | |
5512 | fi | |
5513 | ||
5514 | ||
5515 | ||
5516 | ||
5517 | echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6 | |
5518 | echo "configure:5519: checking "for --enable-gif"" >&5 | |
5519 | no_cache=0 | |
5520 | # Check whether --enable-gif or --disable-gif was given. | |
5521 | if test "${enable_gif+set}" = set; then | |
5522 | enableval="$enable_gif" | |
5523 | ||
5524 | if test "$enableval" = yes; then | |
5525 | ac_cv_use_gif='wxUSE_GIF=yes' | |
5526 | else | |
5527 | ac_cv_use_gif='wxUSE_GIF=no' | |
5528 | fi | |
5529 | ||
5530 | else | |
5531 | ||
5532 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
5533 | if test "x$LINE" != x ; then | |
5534 | eval "DEFAULT_$LINE" | |
5535 | else | |
5536 | no_cache=1 | |
5537 | fi | |
5538 | ||
5539 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
5540 | ||
5541 | fi | |
5542 | ||
5543 | ||
5544 | eval "$ac_cv_use_gif" | |
5545 | if test "$no_cache" != 1; then | |
5546 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
5547 | fi | |
5548 | ||
5549 | if test "$wxUSE_GIF" = yes; then | |
5550 | echo "$ac_t""yes" 1>&6 | |
5551 | else | |
5552 | echo "$ac_t""no" 1>&6 | |
5553 | fi | |
5554 | ||
5555 | ||
5556 | echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6 | |
5557 | echo "configure:5558: checking "for --enable-pcx"" >&5 | |
5558 | no_cache=0 | |
5559 | # Check whether --enable-pcx or --disable-pcx was given. | |
5560 | if test "${enable_pcx+set}" = set; then | |
5561 | enableval="$enable_pcx" | |
5562 | ||
5563 | if test "$enableval" = yes; then | |
5564 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
5565 | else | |
5566 | ac_cv_use_pcx='wxUSE_PCX=no' | |
5567 | fi | |
5568 | ||
5569 | else | |
5570 | ||
5571 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
5572 | if test "x$LINE" != x ; then | |
5573 | eval "DEFAULT_$LINE" | |
5574 | else | |
5575 | no_cache=1 | |
5576 | fi | |
5577 | ||
5578 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
5579 | ||
5580 | fi | |
5581 | ||
5582 | ||
5583 | eval "$ac_cv_use_pcx" | |
5584 | if test "$no_cache" != 1; then | |
5585 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
5586 | fi | |
5587 | ||
5588 | if test "$wxUSE_PCX" = yes; then | |
5589 | echo "$ac_t""yes" 1>&6 | |
5590 | else | |
5591 | echo "$ac_t""no" 1>&6 | |
5592 | fi | |
5593 | ||
5594 | ||
5595 | echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6 | |
5596 | echo "configure:5597: checking "for --enable-pnm"" >&5 | |
5597 | no_cache=0 | |
5598 | # Check whether --enable-pnm or --disable-pnm was given. | |
5599 | if test "${enable_pnm+set}" = set; then | |
5600 | enableval="$enable_pnm" | |
5601 | ||
5602 | if test "$enableval" = yes; then | |
5603 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
5604 | else | |
5605 | ac_cv_use_pnm='wxUSE_PNM=no' | |
5606 | fi | |
5607 | ||
5608 | else | |
5609 | ||
5610 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
5611 | if test "x$LINE" != x ; then | |
5612 | eval "DEFAULT_$LINE" | |
5613 | else | |
5614 | no_cache=1 | |
5615 | fi | |
5616 | ||
5617 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
5618 | ||
5619 | fi | |
5620 | ||
5621 | ||
5622 | eval "$ac_cv_use_pnm" | |
5623 | if test "$no_cache" != 1; then | |
5624 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
5625 | fi | |
5626 | ||
5627 | if test "$wxUSE_PNM" = yes; then | |
5628 | echo "$ac_t""yes" 1>&6 | |
5629 | else | |
5630 | echo "$ac_t""no" 1>&6 | |
5631 | fi | |
5632 | ||
5633 | ||
5634 | ||
5635 | echo "saving argument cache $wx_arg_cache_file" | |
5636 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
5637 | ||
5638 | ||
5639 | ||
5640 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
5641 | echo "configure:5642: checking for toolkit" >&5 | |
5642 | ||
5643 | if test "$wxUSE_GUI" = "yes"; then | |
5644 | ||
5645 | if test "$TOOLKIT_GIVEN" = 1; then | |
5646 | for toolkit in `echo $ALL_TOOLKITS`; do | |
5647 | var=wxUSE_$toolkit | |
5648 | eval "value=\$${var}" | |
5649 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
5650 | done | |
5651 | else | |
5652 | for toolkit in `echo $ALL_TOOLKITS`; do | |
5653 | if test "$has_toolkit_in_cache" != 1; then | |
5654 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
5655 | else | |
5656 | var=DEFAULT_wxUSE_$toolkit | |
5657 | fi | |
5658 | eval "wxUSE_$toolkit=\$${var}" | |
5659 | done | |
5660 | fi | |
5661 | ||
5662 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}` | |
5663 | ||
5664 | case "$NUM_TOOLKITS" in | |
5665 | 1) | |
5666 | ;; | |
5667 | 0) | |
5668 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } | |
5669 | ;; | |
5670 | *) | |
5671 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } | |
5672 | esac | |
5673 | ||
5674 | for toolkit in `echo $ALL_TOOLKITS`; do | |
5675 | var=wxUSE_$toolkit | |
5676 | eval "value=\$${var}" | |
5677 | if test "x$value" != x; then | |
5678 | cache_var=CACHE_$toolkit | |
5679 | eval "cache=\$${cache_var}" | |
5680 | if test "$cache" = 1; then | |
5681 | echo "$var=$value" >> ${wx_arg_cache_file} | |
5682 | fi | |
5683 | if test "$value" = 1; then | |
5684 | echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6 | |
5685 | fi | |
5686 | fi | |
5687 | done | |
5688 | ||
5689 | else | |
5690 | echo "$ac_t""base only" 1>&6 | |
5691 | fi | |
5692 | ||
5693 | ||
5694 | cat > confcache <<\EOF | |
5695 | # This file is a shell script that caches the results of configure | |
5696 | # tests run on this system so they can be shared between configure | |
5697 | # scripts and configure runs. It is not useful on other systems. | |
5698 | # If it contains results you don't want to keep, you may remove or edit it. | |
5699 | # | |
5700 | # By default, configure uses ./config.cache as the cache file, | |
5701 | # creating it if it does not exist already. You can give configure | |
5702 | # the --cache-file=FILE option to use a different cache file; that is | |
5703 | # what configure does when it calls configure scripts in | |
5704 | # subdirectories, so they share the cache. | |
5705 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
5706 | # config.status only pays attention to the cache file if you give it the | |
5707 | # --recheck option to rerun configure. | |
5708 | # | |
5709 | EOF | |
5710 | # The following way of writing the cache mishandles newlines in values, | |
5711 | # but we know of no workaround that is simple, portable, and efficient. | |
5712 | # So, don't put newlines in cache variables' values. | |
5713 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
5714 | # and sets the high bit in the cache file unless we assign to the vars. | |
5715 | (set) 2>&1 | | |
5716 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
5717 | *ac_space=\ *) | |
5718 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
5719 | # turns \\\\ into \\, and sed turns \\ into \). | |
5720 | sed -n \ | |
5721 | -e "s/'/'\\\\''/g" \ | |
5722 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
5723 | ;; | |
5724 | *) | |
5725 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5726 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
5727 | ;; | |
5728 | esac >> confcache | |
5729 | if cmp -s $cache_file confcache; then | |
5730 | : | |
5731 | else | |
5732 | if test -w $cache_file; then | |
5733 | echo "updating cache $cache_file" | |
5734 | cat confcache > $cache_file | |
5735 | else | |
5736 | echo "not updating unwritable cache $cache_file" | |
5737 | fi | |
5738 | fi | |
5739 | rm -f confcache | |
5740 | ||
5741 | ||
5742 | if eval "test $host != $build"; then | |
5743 | if eval "test $host_alias != NONE"; then | |
5744 | CC=$host_alias-gcc | |
5745 | CXX=$host_alias-c++ | |
5746 | AR=$host_alias-ar | |
5747 | RANLIB=$host_alias-ranlib | |
5748 | DLLTOOL=$host_alias-dlltool | |
5749 | LD=$host_alias-ld | |
5750 | NM=$host_alias-nm | |
5751 | STRIP=$host_alias-strip | |
5752 | fi | |
5753 | fi | |
5754 | ||
5755 | # Extract the first word of "gcc", so it can be a program name with args. | |
5756 | set dummy gcc; ac_word=$2 | |
5757 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
5758 | echo "configure:5759: checking for $ac_word" >&5 | |
5759 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
5760 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5761 | else | |
5762 | if test -n "$CC"; then | |
5763 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5764 | else | |
5765 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
5766 | ac_dummy="$PATH" | |
5767 | for ac_dir in $ac_dummy; do | |
5768 | test -z "$ac_dir" && ac_dir=. | |
5769 | if test -f $ac_dir/$ac_word; then | |
5770 | ac_cv_prog_CC="gcc" | |
5771 | break | |
5772 | fi | |
5773 | done | |
5774 | IFS="$ac_save_ifs" | |
5775 | fi | |
5776 | fi | |
5777 | CC="$ac_cv_prog_CC" | |
5778 | if test -n "$CC"; then | |
5779 | echo "$ac_t""$CC" 1>&6 | |
5780 | else | |
5781 | echo "$ac_t""no" 1>&6 | |
5782 | fi | |
5783 | ||
5784 | if test -z "$CC"; then | |
5785 | # Extract the first word of "cc", so it can be a program name with args. | |
5786 | set dummy cc; ac_word=$2 | |
5787 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
5788 | echo "configure:5789: checking for $ac_word" >&5 | |
5789 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
5790 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5791 | else | |
5792 | if test -n "$CC"; then | |
5793 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5794 | else | |
5795 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
5796 | ac_prog_rejected=no | |
5797 | ac_dummy="$PATH" | |
5798 | for ac_dir in $ac_dummy; do | |
5799 | test -z "$ac_dir" && ac_dir=. | |
5800 | if test -f $ac_dir/$ac_word; then | |
5801 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
5802 | ac_prog_rejected=yes | |
5803 | continue | |
5804 | fi | |
5805 | ac_cv_prog_CC="cc" | |
5806 | break | |
5807 | fi | |
5808 | done | |
5809 | IFS="$ac_save_ifs" | |
5810 | if test $ac_prog_rejected = yes; then | |
5811 | # We found a bogon in the path, so make sure we never use it. | |
5812 | set dummy $ac_cv_prog_CC | |
5813 | shift | |
5814 | if test $# -gt 0; then | |
5815 | # We chose a different compiler from the bogus one. | |
5816 | # However, it has the same basename, so the bogon will be chosen | |
5817 | # first if we set CC to just the basename; use the full file name. | |
5818 | shift | |
5819 | set dummy "$ac_dir/$ac_word" "$@" | |
5820 | shift | |
5821 | ac_cv_prog_CC="$@" | |
5822 | fi | |
5823 | fi | |
5824 | fi | |
5825 | fi | |
5826 | CC="$ac_cv_prog_CC" | |
5827 | if test -n "$CC"; then | |
5828 | echo "$ac_t""$CC" 1>&6 | |
5829 | else | |
5830 | echo "$ac_t""no" 1>&6 | |
5831 | fi | |
5832 | ||
5833 | if test -z "$CC"; then | |
5834 | case "`uname -s`" in | |
5835 | *win32* | *WIN32*) | |
5836 | # Extract the first word of "cl", so it can be a program name with args. | |
5837 | set dummy cl; ac_word=$2 | |
5838 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
5839 | echo "configure:5840: checking for $ac_word" >&5 | |
5840 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
5841 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5842 | else | |
5843 | if test -n "$CC"; then | |
5844 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5845 | else | |
5846 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
5847 | ac_dummy="$PATH" | |
5848 | for ac_dir in $ac_dummy; do | |
5849 | test -z "$ac_dir" && ac_dir=. | |
5850 | if test -f $ac_dir/$ac_word; then | |
5851 | ac_cv_prog_CC="cl" | |
5852 | break | |
5853 | fi | |
5854 | done | |
5855 | IFS="$ac_save_ifs" | |
5856 | fi | |
5857 | fi | |
5858 | CC="$ac_cv_prog_CC" | |
5859 | if test -n "$CC"; then | |
5860 | echo "$ac_t""$CC" 1>&6 | |
5861 | else | |
5862 | echo "$ac_t""no" 1>&6 | |
5863 | fi | |
5864 | ;; | |
5865 | esac | |
5866 | fi | |
5867 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
5868 | fi | |
5869 | ||
5870 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
5871 | echo "configure:5872: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | |
5872 | ||
5873 | ac_ext=c | |
5874 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5875 | ac_cpp='$CPP $CPPFLAGS' | |
5876 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
5877 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
5878 | cross_compiling=$ac_cv_prog_cc_cross | |
5879 | ||
5880 | cat > conftest.$ac_ext << EOF | |
5881 | ||
5882 | #line 5883 "configure" | |
5883 | #include "confdefs.h" | |
5884 | ||
5885 | main(){return(0);} | |
5886 | EOF | |
5887 | if { (eval echo configure:5888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
5888 | ac_cv_prog_cc_works=yes | |
5889 | # If we can't run a trivial program, we are probably using a cross compiler. | |
5890 | if (./conftest; exit) 2>/dev/null; then | |
5891 | ac_cv_prog_cc_cross=no | |
5892 | else | |
5893 | ac_cv_prog_cc_cross=yes | |
5894 | fi | |
5895 | else | |
5896 | echo "configure: failed program was:" >&5 | |
5897 | cat conftest.$ac_ext >&5 | |
5898 | ac_cv_prog_cc_works=no | |
5899 | fi | |
5900 | rm -fr conftest* | |
5901 | ac_ext=c | |
5902 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5903 | ac_cpp='$CPP $CPPFLAGS' | |
5904 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
5905 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
5906 | cross_compiling=$ac_cv_prog_cc_cross | |
5907 | ||
5908 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
5909 | if test $ac_cv_prog_cc_works = no; then | |
5910 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
5911 | fi | |
5912 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
5913 | echo "configure:5914: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | |
5914 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | |
5915 | cross_compiling=$ac_cv_prog_cc_cross | |
5916 | ||
5917 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
5918 | echo "configure:5919: checking whether we are using GNU C" >&5 | |
5919 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then | |
5920 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5921 | else | |
5922 | cat > conftest.c <<EOF | |
5923 | #ifdef __GNUC__ | |
5924 | yes; | |
5925 | #endif | |
5926 | EOF | |
5927 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:5928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | |
5928 | ac_cv_prog_gcc=yes | |
5929 | else | |
5930 | ac_cv_prog_gcc=no | |
5931 | fi | |
5932 | fi | |
5933 | ||
5934 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
5935 | ||
5936 | if test $ac_cv_prog_gcc = yes; then | |
5937 | GCC=yes | |
5938 | else | |
5939 | GCC= | |
5940 | fi | |
5941 | ||
5942 | ac_test_CFLAGS="${CFLAGS+set}" | |
5943 | ac_save_CFLAGS="$CFLAGS" | |
5944 | CFLAGS= | |
5945 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
5946 | echo "configure:5947: checking whether ${CC-cc} accepts -g" >&5 | |
5947 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then | |
5948 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5949 | else | |
5950 | echo 'void f(){}' > conftest.c | |
5951 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
5952 | ac_cv_prog_cc_g=yes | |
5953 | else | |
5954 | ac_cv_prog_cc_g=no | |
5955 | fi | |
5956 | rm -f conftest* | |
5957 | ||
5958 | fi | |
5959 | ||
5960 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
5961 | if test "$ac_test_CFLAGS" = set; then | |
5962 | CFLAGS="$ac_save_CFLAGS" | |
5963 | elif test $ac_cv_prog_cc_g = yes; then | |
5964 | if test "$GCC" = yes; then | |
5965 | CFLAGS="-g -O2" | |
5966 | else | |
5967 | CFLAGS="-g" | |
5968 | fi | |
5969 | else | |
5970 | if test "$GCC" = yes; then | |
5971 | CFLAGS="-O2" | |
5972 | else | |
5973 | CFLAGS= | |
5974 | fi | |
5975 | fi | |
5976 | ||
5977 | ||
5978 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
5979 | ||
5980 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
5981 | echo "configure:5982: checking how to run the C preprocessor" >&5 | |
5982 | # On Suns, sometimes $CPP names a directory. | |
5983 | if test -n "$CPP" && test -d "$CPP"; then | |
5984 | CPP= | |
5985 | fi | |
5986 | if test -z "$CPP"; then | |
5987 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
5988 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5989 | else | |
5990 | # This must be in double quotes, not single quotes, because CPP may get | |
5991 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
5992 | CPP="${CC-cc} -E" | |
5993 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5994 | # not just through cpp. | |
5995 | cat > conftest.$ac_ext <<EOF | |
5996 | #line 5997 "configure" | |
5997 | #include "confdefs.h" | |
5998 | #include <assert.h> | |
5999 | Syntax Error | |
6000 | EOF | |
6001 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6002 | { (eval echo configure:6003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
6003 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
6004 | if test -z "$ac_err"; then | |
6005 | : | |
6006 | else | |
6007 | echo "$ac_err" >&5 | |
6008 | echo "configure: failed program was:" >&5 | |
6009 | cat conftest.$ac_ext >&5 | |
6010 | rm -rf conftest* | |
6011 | CPP="${CC-cc} -E -traditional-cpp" | |
6012 | cat > conftest.$ac_ext <<EOF | |
6013 | #line 6014 "configure" | |
6014 | #include "confdefs.h" | |
6015 | #include <assert.h> | |
6016 | Syntax Error | |
6017 | EOF | |
6018 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6019 | { (eval echo configure:6020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
6020 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
6021 | if test -z "$ac_err"; then | |
6022 | : | |
6023 | else | |
6024 | echo "$ac_err" >&5 | |
6025 | echo "configure: failed program was:" >&5 | |
6026 | cat conftest.$ac_ext >&5 | |
6027 | rm -rf conftest* | |
6028 | CPP="${CC-cc} -nologo -E" | |
6029 | cat > conftest.$ac_ext <<EOF | |
6030 | #line 6031 "configure" | |
6031 | #include "confdefs.h" | |
6032 | #include <assert.h> | |
6033 | Syntax Error | |
6034 | EOF | |
6035 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6036 | { (eval echo configure:6037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
6037 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
6038 | if test -z "$ac_err"; then | |
6039 | : | |
6040 | else | |
6041 | echo "$ac_err" >&5 | |
6042 | echo "configure: failed program was:" >&5 | |
6043 | cat conftest.$ac_ext >&5 | |
6044 | rm -rf conftest* | |
6045 | CPP=/lib/cpp | |
6046 | fi | |
6047 | rm -f conftest* | |
6048 | fi | |
6049 | rm -f conftest* | |
6050 | fi | |
6051 | rm -f conftest* | |
6052 | ac_cv_prog_CPP="$CPP" | |
6053 | fi | |
6054 | CPP="$ac_cv_prog_CPP" | |
6055 | else | |
6056 | ac_cv_prog_CPP="$CPP" | |
6057 | fi | |
6058 | echo "$ac_t""$CPP" 1>&6 | |
6059 | ||
6060 | ||
6061 | if test $ac_cv_prog_gcc = yes; then | |
6062 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
6063 | echo "configure:6064: checking whether ${CC-cc} needs -traditional" >&5 | |
6064 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then | |
6065 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6066 | else | |
6067 | ac_pattern="Autoconf.*'x'" | |
6068 | cat > conftest.$ac_ext <<EOF | |
6069 | #line 6070 "configure" | |
6070 | #include "confdefs.h" | |
6071 | #include <sgtty.h> | |
6072 | Autoconf TIOCGETP | |
6073 | EOF | |
6074 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6075 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
6076 | rm -rf conftest* | |
6077 | ac_cv_prog_gcc_traditional=yes | |
6078 | else | |
6079 | rm -rf conftest* | |
6080 | ac_cv_prog_gcc_traditional=no | |
6081 | fi | |
6082 | rm -f conftest* | |
6083 | ||
6084 | ||
6085 | if test $ac_cv_prog_gcc_traditional = no; then | |
6086 | cat > conftest.$ac_ext <<EOF | |
6087 | #line 6088 "configure" | |
6088 | #include "confdefs.h" | |
6089 | #include <termio.h> | |
6090 | Autoconf TCGETA | |
6091 | EOF | |
6092 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6093 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
6094 | rm -rf conftest* | |
6095 | ac_cv_prog_gcc_traditional=yes | |
6096 | fi | |
6097 | rm -f conftest* | |
6098 | ||
6099 | fi | |
6100 | fi | |
6101 | ||
6102 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
6103 | if test $ac_cv_prog_gcc_traditional = yes; then | |
6104 | CC="$CC -traditional" | |
6105 | fi | |
6106 | fi | |
6107 | ||
6108 | ||
6109 | ||
6110 | ac_ext=C | |
6111 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6112 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6113 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6114 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6115 | cross_compiling=$ac_cv_prog_cxx_cross | |
6116 | ||
6117 | ||
6118 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
6119 | do | |
6120 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6121 | set dummy $ac_prog; ac_word=$2 | |
6122 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6123 | echo "configure:6124: checking for $ac_word" >&5 | |
6124 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then | |
6125 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6126 | else | |
6127 | if test -n "$CXX"; then | |
6128 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
6129 | else | |
6130 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6131 | ac_dummy="$PATH" | |
6132 | for ac_dir in $ac_dummy; do | |
6133 | test -z "$ac_dir" && ac_dir=. | |
6134 | if test -f $ac_dir/$ac_word; then | |
6135 | ac_cv_prog_CXX="$ac_prog" | |
6136 | break | |
6137 | fi | |
6138 | done | |
6139 | IFS="$ac_save_ifs" | |
6140 | fi | |
6141 | fi | |
6142 | CXX="$ac_cv_prog_CXX" | |
6143 | if test -n "$CXX"; then | |
6144 | echo "$ac_t""$CXX" 1>&6 | |
6145 | else | |
6146 | echo "$ac_t""no" 1>&6 | |
6147 | fi | |
6148 | ||
6149 | test -n "$CXX" && break | |
6150 | done | |
6151 | test -n "$CXX" || CXX="gcc" | |
6152 | ||
6153 | ||
6154 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
6155 | echo "configure:6156: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 | |
6156 | ||
6157 | ac_ext=C | |
6158 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6159 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6160 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6161 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6162 | cross_compiling=$ac_cv_prog_cxx_cross | |
6163 | ||
6164 | cat > conftest.$ac_ext << EOF | |
6165 | ||
6166 | #line 6167 "configure" | |
6167 | #include "confdefs.h" | |
6168 | ||
6169 | int main(){return(0);} | |
6170 | EOF | |
6171 | if { (eval echo configure:6172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
6172 | ac_cv_prog_cxx_works=yes | |
6173 | # If we can't run a trivial program, we are probably using a cross compiler. | |
6174 | if (./conftest; exit) 2>/dev/null; then | |
6175 | ac_cv_prog_cxx_cross=no | |
6176 | else | |
6177 | ac_cv_prog_cxx_cross=yes | |
6178 | fi | |
6179 | else | |
6180 | echo "configure: failed program was:" >&5 | |
6181 | cat conftest.$ac_ext >&5 | |
6182 | ac_cv_prog_cxx_works=no | |
6183 | fi | |
6184 | rm -fr conftest* | |
6185 | ac_ext=C | |
6186 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6187 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6188 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6189 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6190 | cross_compiling=$ac_cv_prog_cxx_cross | |
6191 | ||
6192 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
6193 | if test $ac_cv_prog_cxx_works = no; then | |
6194 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
6195 | fi | |
6196 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
6197 | echo "configure:6198: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 | |
6198 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 | |
6199 | cross_compiling=$ac_cv_prog_cxx_cross | |
6200 | ||
6201 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
6202 | echo "configure:6203: checking whether we are using GNU C++" >&5 | |
6203 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then | |
6204 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6205 | else | |
6206 | cat > conftest.C <<EOF | |
6207 | #ifdef __GNUC__ | |
6208 | yes; | |
6209 | #endif | |
6210 | EOF | |
6211 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | |
6212 | ac_cv_prog_gxx=yes | |
6213 | else | |
6214 | ac_cv_prog_gxx=no | |
6215 | fi | |
6216 | fi | |
6217 | ||
6218 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 | |
6219 | ||
6220 | if test $ac_cv_prog_gxx = yes; then | |
6221 | GXX=yes | |
6222 | else | |
6223 | GXX= | |
6224 | fi | |
6225 | ||
6226 | ac_test_CXXFLAGS="${CXXFLAGS+set}" | |
6227 | ac_save_CXXFLAGS="$CXXFLAGS" | |
6228 | CXXFLAGS= | |
6229 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
6230 | echo "configure:6231: checking whether ${CXX-g++} accepts -g" >&5 | |
6231 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then | |
6232 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6233 | else | |
6234 | echo 'void f(){}' > conftest.cc | |
6235 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
6236 | ac_cv_prog_cxx_g=yes | |
6237 | else | |
6238 | ac_cv_prog_cxx_g=no | |
6239 | fi | |
6240 | rm -f conftest* | |
6241 | ||
6242 | fi | |
6243 | ||
6244 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
6245 | if test "$ac_test_CXXFLAGS" = set; then | |
6246 | CXXFLAGS="$ac_save_CXXFLAGS" | |
6247 | elif test $ac_cv_prog_cxx_g = yes; then | |
6248 | if test "$GXX" = yes; then | |
6249 | CXXFLAGS="-g -O2" | |
6250 | else | |
6251 | CXXFLAGS="-g" | |
6252 | fi | |
6253 | else | |
6254 | if test "$GXX" = yes; then | |
6255 | CXXFLAGS="-O2" | |
6256 | else | |
6257 | CXXFLAGS= | |
6258 | fi | |
6259 | fi | |
6260 | ||
6261 | ||
6262 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 | |
6263 | echo "configure:6264: checking how to run the C++ preprocessor" >&5 | |
6264 | if test -z "$CXXCPP"; then | |
6265 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
6266 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6267 | else | |
6268 | ac_ext=C | |
6269 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6270 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6271 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6272 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6273 | cross_compiling=$ac_cv_prog_cxx_cross | |
6274 | CXXCPP="${CXX-g++} -E" | |
6275 | cat > conftest.$ac_ext <<EOF | |
6276 | #line 6277 "configure" | |
6277 | #include "confdefs.h" | |
6278 | #include <stdlib.h> | |
6279 | EOF | |
6280 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6281 | { (eval echo configure:6282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
6282 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
6283 | if test -z "$ac_err"; then | |
6284 | : | |
6285 | else | |
6286 | echo "$ac_err" >&5 | |
6287 | echo "configure: failed program was:" >&5 | |
6288 | cat conftest.$ac_ext >&5 | |
6289 | rm -rf conftest* | |
6290 | CXXCPP=/lib/cpp | |
6291 | fi | |
6292 | rm -f conftest* | |
6293 | ac_cv_prog_CXXCPP="$CXXCPP" | |
6294 | ac_ext=C | |
6295 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6296 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6297 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6298 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6299 | cross_compiling=$ac_cv_prog_cxx_cross | |
6300 | fi | |
6301 | fi | |
6302 | CXXCPP="$ac_cv_prog_CXXCPP" | |
6303 | echo "$ac_t""$CXXCPP" 1>&6 | |
6304 | ||
6305 | ||
6306 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` | |
6307 | ||
6308 | ac_ext=c | |
6309 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6310 | ac_cpp='$CPP $CPPFLAGS' | |
6311 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6312 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6313 | cross_compiling=$ac_cv_prog_cc_cross | |
6314 | ||
6315 | ||
6316 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6317 | set dummy ranlib; ac_word=$2 | |
6318 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6319 | echo "configure:6320: checking for $ac_word" >&5 | |
6320 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | |
6321 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6322 | else | |
6323 | if test -n "$RANLIB"; then | |
6324 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6325 | else | |
6326 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6327 | ac_dummy="$PATH" | |
6328 | for ac_dir in $ac_dummy; do | |
6329 | test -z "$ac_dir" && ac_dir=. | |
6330 | if test -f $ac_dir/$ac_word; then | |
6331 | ac_cv_prog_RANLIB="ranlib" | |
6332 | break | |
6333 | fi | |
6334 | done | |
6335 | IFS="$ac_save_ifs" | |
6336 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
6337 | fi | |
6338 | fi | |
6339 | RANLIB="$ac_cv_prog_RANLIB" | |
6340 | if test -n "$RANLIB"; then | |
6341 | echo "$ac_t""$RANLIB" 1>&6 | |
6342 | else | |
6343 | echo "$ac_t""no" 1>&6 | |
6344 | fi | |
6345 | ||
6346 | ||
6347 | # Extract the first word of "ar", so it can be a program name with args. | |
6348 | set dummy ar; ac_word=$2 | |
6349 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6350 | echo "configure:6351: checking for $ac_word" >&5 | |
6351 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then | |
6352 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6353 | else | |
6354 | if test -n "$AR"; then | |
6355 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6356 | else | |
6357 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6358 | ac_dummy="$PATH" | |
6359 | for ac_dir in $ac_dummy; do | |
6360 | test -z "$ac_dir" && ac_dir=. | |
6361 | if test -f $ac_dir/$ac_word; then | |
6362 | ac_cv_prog_AR="ar" | |
6363 | break | |
6364 | fi | |
6365 | done | |
6366 | IFS="$ac_save_ifs" | |
6367 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
6368 | fi | |
6369 | fi | |
6370 | AR="$ac_cv_prog_AR" | |
6371 | if test -n "$AR"; then | |
6372 | echo "$ac_t""$AR" 1>&6 | |
6373 | else | |
6374 | echo "$ac_t""no" 1>&6 | |
6375 | fi | |
6376 | ||
6377 | ||
6378 | # Find a good install program. We prefer a C program (faster), | |
6379 | # so one script is as good as another. But avoid the broken or | |
6380 | # incompatible versions: | |
6381 | # SysV /etc/install, /usr/sbin/install | |
6382 | # SunOS /usr/etc/install | |
6383 | # IRIX /sbin/install | |
6384 | # AIX /bin/install | |
6385 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
6386 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
6387 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
6388 | # ./install, which can be erroneously created by make from ./install.sh. | |
6389 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
6390 | echo "configure:6391: checking for a BSD compatible install" >&5 | |
6391 | if test -z "$INSTALL"; then | |
6392 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
6393 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6394 | else | |
6395 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
6396 | for ac_dir in $PATH; do | |
6397 | # Account for people who put trailing slashes in PATH elements. | |
6398 | case "$ac_dir/" in | |
6399 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
6400 | *) | |
6401 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
6402 | # Don't use installbsd from OSF since it installs stuff as root | |
6403 | # by default. | |
6404 | for ac_prog in ginstall scoinst install; do | |
6405 | if test -f $ac_dir/$ac_prog; then | |
6406 | if test $ac_prog = install && | |
6407 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
6408 | # AIX install. It has an incompatible calling convention. | |
6409 | : | |
6410 | else | |
6411 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
6412 | break 2 | |
6413 | fi | |
6414 | fi | |
6415 | done | |
6416 | ;; | |
6417 | esac | |
6418 | done | |
6419 | IFS="$ac_save_IFS" | |
6420 | ||
6421 | fi | |
6422 | if test "${ac_cv_path_install+set}" = set; then | |
6423 | INSTALL="$ac_cv_path_install" | |
6424 | else | |
6425 | # As a last resort, use the slow shell script. We don't cache a | |
6426 | # path for INSTALL within a source directory, because that will | |
6427 | # break other packages using the cache if that directory is | |
6428 | # removed, or if the path is relative. | |
6429 | INSTALL="$ac_install_sh" | |
6430 | fi | |
6431 | fi | |
6432 | echo "$ac_t""$INSTALL" 1>&6 | |
6433 | ||
6434 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
6435 | # It thinks the first close brace ends the variable substitution. | |
6436 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
6437 | ||
6438 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
6439 | ||
6440 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
6441 | ||
6442 | ||
6443 | # Extract the first word of "strip", so it can be a program name with args. | |
6444 | set dummy strip; ac_word=$2 | |
6445 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6446 | echo "configure:6447: checking for $ac_word" >&5 | |
6447 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then | |
6448 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6449 | else | |
6450 | if test -n "$STRIP"; then | |
6451 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6452 | else | |
6453 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6454 | ac_dummy="$PATH" | |
6455 | for ac_dir in $ac_dummy; do | |
6456 | test -z "$ac_dir" && ac_dir=. | |
6457 | if test -f $ac_dir/$ac_word; then | |
6458 | ac_cv_prog_STRIP="strip" | |
6459 | break | |
6460 | fi | |
6461 | done | |
6462 | IFS="$ac_save_ifs" | |
6463 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" | |
6464 | fi | |
6465 | fi | |
6466 | STRIP="$ac_cv_prog_STRIP" | |
6467 | if test -n "$STRIP"; then | |
6468 | echo "$ac_t""$STRIP" 1>&6 | |
6469 | else | |
6470 | echo "$ac_t""no" 1>&6 | |
6471 | fi | |
6472 | ||
6473 | ||
6474 | echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6 | |
6475 | echo "configure:6476: checking "make for VPATH support"" >&5 | |
6476 | cat - << EOF > confMake | |
6477 | check : file | |
6478 | cp \$? \$@ | |
6479 | cp \$? final_file | |
6480 | EOF | |
6481 | ||
6482 | if test ! -d sub ; then | |
6483 | mkdir sub | |
6484 | fi | |
6485 | echo dummy > sub/file | |
6486 | ${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null | |
6487 | RESULT=$? | |
6488 | rm -f sub/file check final_file confMake | |
6489 | rmdir sub | |
6490 | if test "$RESULT" = 0; then | |
6491 | echo "$ac_t""yes" 1>&6 | |
6492 | else | |
6493 | echo "$ac_t""no" 1>&6 | |
6494 | { echo "configure: error: You need a make-utility that is able to use the variable | |
6495 | VPATH correctly. | |
6496 | If your version of make does not support VPATH correctly" 1>&2; exit 1; } | |
6497 | fi | |
6498 | ||
6499 | for ac_prog in 'bison -y' byacc | |
6500 | do | |
6501 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6502 | set dummy $ac_prog; ac_word=$2 | |
6503 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6504 | echo "configure:6505: checking for $ac_word" >&5 | |
6505 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then | |
6506 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6507 | else | |
6508 | if test -n "$YACC"; then | |
6509 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
6510 | else | |
6511 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6512 | ac_dummy="$PATH" | |
6513 | for ac_dir in $ac_dummy; do | |
6514 | test -z "$ac_dir" && ac_dir=. | |
6515 | if test -f $ac_dir/$ac_word; then | |
6516 | ac_cv_prog_YACC="$ac_prog" | |
6517 | break | |
6518 | fi | |
6519 | done | |
6520 | IFS="$ac_save_ifs" | |
6521 | fi | |
6522 | fi | |
6523 | YACC="$ac_cv_prog_YACC" | |
6524 | if test -n "$YACC"; then | |
6525 | echo "$ac_t""$YACC" 1>&6 | |
6526 | else | |
6527 | echo "$ac_t""no" 1>&6 | |
6528 | fi | |
6529 | ||
6530 | test -n "$YACC" && break | |
6531 | done | |
6532 | test -n "$YACC" || YACC="yacc" | |
6533 | ||
6534 | ||
6535 | # Extract the first word of "flex", so it can be a program name with args. | |
6536 | set dummy flex; ac_word=$2 | |
6537 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6538 | echo "configure:6539: checking for $ac_word" >&5 | |
6539 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then | |
6540 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6541 | else | |
6542 | if test -n "$LEX"; then | |
6543 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
6544 | else | |
6545 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6546 | ac_dummy="$PATH" | |
6547 | for ac_dir in $ac_dummy; do | |
6548 | test -z "$ac_dir" && ac_dir=. | |
6549 | if test -f $ac_dir/$ac_word; then | |
6550 | ac_cv_prog_LEX="flex" | |
6551 | break | |
6552 | fi | |
6553 | done | |
6554 | IFS="$ac_save_ifs" | |
6555 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
6556 | fi | |
6557 | fi | |
6558 | LEX="$ac_cv_prog_LEX" | |
6559 | if test -n "$LEX"; then | |
6560 | echo "$ac_t""$LEX" 1>&6 | |
6561 | else | |
6562 | echo "$ac_t""no" 1>&6 | |
6563 | fi | |
6564 | ||
6565 | if test -z "$LEXLIB" | |
6566 | then | |
6567 | case "$LEX" in | |
6568 | flex*) ac_lib=fl ;; | |
6569 | *) ac_lib=l ;; | |
6570 | esac | |
6571 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
6572 | echo "configure:6573: checking for yywrap in -l$ac_lib" >&5 | |
6573 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` | |
6574 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
6575 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6576 | else | |
6577 | ac_save_LIBS="$LIBS" | |
6578 | LIBS="-l$ac_lib $LIBS" | |
6579 | cat > conftest.$ac_ext <<EOF | |
6580 | #line 6581 "configure" | |
6581 | #include "confdefs.h" | |
6582 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6583 | /* We use char because int might match the return type of a gcc2 | |
6584 | builtin and then its argument prototype would still apply. */ | |
6585 | char yywrap(); | |
6586 | ||
6587 | int main() { | |
6588 | yywrap() | |
6589 | ; return 0; } | |
6590 | EOF | |
6591 | if { (eval echo configure:6592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
6592 | rm -rf conftest* | |
6593 | eval "ac_cv_lib_$ac_lib_var=yes" | |
6594 | else | |
6595 | echo "configure: failed program was:" >&5 | |
6596 | cat conftest.$ac_ext >&5 | |
6597 | rm -rf conftest* | |
6598 | eval "ac_cv_lib_$ac_lib_var=no" | |
6599 | fi | |
6600 | rm -f conftest* | |
6601 | LIBS="$ac_save_LIBS" | |
6602 | ||
6603 | fi | |
6604 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
6605 | echo "$ac_t""yes" 1>&6 | |
6606 | LEXLIB="-l$ac_lib" | |
6607 | else | |
6608 | echo "$ac_t""no" 1>&6 | |
6609 | fi | |
6610 | ||
6611 | fi | |
6612 | ||
6613 | ||
6614 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
6615 | echo "configure:6616: checking whether ln -s works" >&5 | |
6616 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then | |
6617 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6618 | else | |
6619 | rm -f conftestdata | |
6620 | if ln -s X conftestdata 2>/dev/null | |
6621 | then | |
6622 | rm -f conftestdata | |
6623 | ac_cv_prog_LN_S="ln -s" | |
6624 | else | |
6625 | ac_cv_prog_LN_S=ln | |
6626 | fi | |
6627 | fi | |
6628 | LN_S="$ac_cv_prog_LN_S" | |
6629 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
6630 | echo "$ac_t""yes" 1>&6 | |
6631 | else | |
6632 | echo "$ac_t""no" 1>&6 | |
6633 | fi | |
6634 | ||
6635 | ||
6636 | ||
6637 | SEARCH_INCLUDE="\ | |
6638 | /usr/local/include \ | |
6639 | \ | |
6640 | /usr/Motif-1.2/include \ | |
6641 | /usr/Motif-2.1/include \ | |
6642 | \ | |
6643 | /usr/include/Motif1.2 \ | |
6644 | /opt/xpm/include/X11 \ | |
6645 | /opt/GBxpm/include/ \ | |
6646 | /opt/GBxpm/X11/include/ \ | |
6647 | \ | |
6648 | /usr/Motif1.2/include \ | |
6649 | /usr/dt/include \ | |
6650 | /usr/openwin/include \ | |
6651 | \ | |
6652 | /usr/include/Xm \ | |
6653 | \ | |
6654 | /usr/X11R6/include \ | |
6655 | /usr/X11R6.4/include \ | |
6656 | /usr/X11R5/include \ | |
6657 | /usr/X11R4/include \ | |
6658 | \ | |
6659 | /usr/include/X11R6 \ | |
6660 | /usr/include/X11R5 \ | |
6661 | /usr/include/X11R4 \ | |
6662 | \ | |
6663 | /usr/local/X11R6/include \ | |
6664 | /usr/local/X11R5/include \ | |
6665 | /usr/local/X11R4/include \ | |
6666 | \ | |
6667 | /usr/local/include/X11R6 \ | |
6668 | /usr/local/include/X11R5 \ | |
6669 | /usr/local/include/X11R4 \ | |
6670 | \ | |
6671 | /usr/X11/include \ | |
6672 | /usr/include/X11 \ | |
6673 | /usr/local/X11/include \ | |
6674 | /usr/local/include/X11 \ | |
6675 | \ | |
6676 | /usr/X386/include \ | |
6677 | /usr/x386/include \ | |
6678 | /usr/XFree86/include/X11 \ | |
6679 | \ | |
6680 | /usr/include/gtk \ | |
6681 | /usr/local/include/gtk \ | |
6682 | /usr/include/glib \ | |
6683 | /usr/local/include/glib \ | |
6684 | \ | |
6685 | /usr/include/qt \ | |
6686 | /usr/local/include/qt \ | |
6687 | \ | |
6688 | /usr/include/windows \ | |
6689 | /usr/include/wine \ | |
6690 | /usr/local/include/wine \ | |
6691 | \ | |
6692 | /usr/unsupported/include \ | |
6693 | /usr/athena/include \ | |
6694 | /usr/local/x11r5/include \ | |
6695 | /usr/lpp/Xamples/include \ | |
6696 | \ | |
6697 | /usr/openwin/share/include \ | |
6698 | \ | |
6699 | /usr/include" | |
6700 | ||
6701 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
6702 | ||
6703 | ||
6704 | cat > confcache <<\EOF | |
6705 | # This file is a shell script that caches the results of configure | |
6706 | # tests run on this system so they can be shared between configure | |
6707 | # scripts and configure runs. It is not useful on other systems. | |
6708 | # If it contains results you don't want to keep, you may remove or edit it. | |
6709 | # | |
6710 | # By default, configure uses ./config.cache as the cache file, | |
6711 | # creating it if it does not exist already. You can give configure | |
6712 | # the --cache-file=FILE option to use a different cache file; that is | |
6713 | # what configure does when it calls configure scripts in | |
6714 | # subdirectories, so they share the cache. | |
6715 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
6716 | # config.status only pays attention to the cache file if you give it the | |
6717 | # --recheck option to rerun configure. | |
6718 | # | |
6719 | EOF | |
6720 | # The following way of writing the cache mishandles newlines in values, | |
6721 | # but we know of no workaround that is simple, portable, and efficient. | |
6722 | # So, don't put newlines in cache variables' values. | |
6723 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
6724 | # and sets the high bit in the cache file unless we assign to the vars. | |
6725 | (set) 2>&1 | | |
6726 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
6727 | *ac_space=\ *) | |
6728 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
6729 | # turns \\\\ into \\, and sed turns \\ into \). | |
6730 | sed -n \ | |
6731 | -e "s/'/'\\\\''/g" \ | |
6732 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
6733 | ;; | |
6734 | *) | |
6735 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
6736 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
6737 | ;; | |
6738 | esac >> confcache | |
6739 | if cmp -s $cache_file confcache; then | |
6740 | : | |
6741 | else | |
6742 | if test -w $cache_file; then | |
6743 | echo "updating cache $cache_file" | |
6744 | cat confcache > $cache_file | |
6745 | else | |
6746 | echo "not updating unwritable cache $cache_file" | |
6747 | fi | |
6748 | fi | |
6749 | rm -f confcache | |
6750 | ||
6751 | ||
6752 | ||
6753 | if test "$wxUSE_GUI" = "yes"; then | |
6754 | ||
6755 | TOOLKIT= | |
6756 | TOOLKIT_INCLUDE= | |
6757 | ||
6758 | GUIOBJS= | |
6759 | COMMONOBJS= | |
6760 | GENERICOBJS= | |
6761 | ||
6762 | GUI_TK_LIBRARY= | |
6763 | GUI_TK_LINK= | |
6764 | ||
6765 | WXGTK12= | |
6766 | ||
6767 | WXWINE= | |
6768 | ||
6769 | PROGRAM_EXT= | |
6770 | ||
6771 | if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then | |
6772 | if test "$cross_compiling" = "yes" ; then | |
6773 | echo "configure: warning: Cross compiling --- skipping windows.h check" 1>&2 | |
6774 | else | |
6775 | echo $ac_n "checking for Windows headers""... $ac_c" 1>&6 | |
6776 | echo "configure:6777: checking for Windows headers" >&5 | |
6777 | ||
6778 | ac_find_includes= | |
6779 | for ac_dir in $SEARCH_INCLUDE; | |
6780 | do | |
6781 | if test -f "$ac_dir/windows.h"; then | |
6782 | ac_find_includes=$ac_dir | |
6783 | break | |
6784 | fi | |
6785 | done | |
6786 | ||
6787 | if test "$ac_find_includes" != "" ; then | |
6788 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
6789 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
6790 | else | |
6791 | echo "$ac_t""no" 1>&6 | |
6792 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
6793 | fi | |
6794 | fi | |
6795 | ||
6796 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw" | |
6797 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32" | |
6798 | ||
6799 | if test "$wxUSE_MINGW" = 1; then | |
6800 | LDFLAGS="$LDFLAGS -mwindows" | |
6801 | fi | |
6802 | ||
6803 | TOOLKIT=MSW | |
6804 | ||
6805 | GUIOBJS="\$(MSW_GUIOBJS)" | |
6806 | GUIHEADERS="\$(MSW_HEADERS)" | |
6807 | COMMONOBJS="\$(MSW_COMMONOBJS)" | |
6808 | GENERICOBJS="\$(MSW_GENERICOBJS)" | |
6809 | UNIXOBJS= | |
6810 | GUIDIST=MSW_DIST | |
6811 | PROGRAM_EXT=.exe | |
6812 | fi | |
6813 | ||
6814 | if test "$wxUSE_GTK" = 1; then | |
6815 | ||
6816 | if test x$gtk_config_exec_prefix != x ; then | |
6817 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
6818 | if test x${GTK_CONFIG+set} != xset ; then | |
6819 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
6820 | fi | |
6821 | fi | |
6822 | if test x$gtk_config_prefix != x ; then | |
6823 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
6824 | if test x${GTK_CONFIG+set} != xset ; then | |
6825 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
6826 | fi | |
6827 | fi | |
6828 | ||
6829 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
6830 | set dummy gtk-config; ac_word=$2 | |
6831 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6832 | echo "configure:6833: checking for $ac_word" >&5 | |
6833 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then | |
6834 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6835 | else | |
6836 | case "$GTK_CONFIG" in | |
6837 | /*) | |
6838 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
6839 | ;; | |
6840 | ?:/*) | |
6841 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
6842 | ;; | |
6843 | *) | |
6844 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6845 | ac_dummy="$PATH" | |
6846 | for ac_dir in $ac_dummy; do | |
6847 | test -z "$ac_dir" && ac_dir=. | |
6848 | if test -f $ac_dir/$ac_word; then | |
6849 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
6850 | break | |
6851 | fi | |
6852 | done | |
6853 | IFS="$ac_save_ifs" | |
6854 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
6855 | ;; | |
6856 | esac | |
6857 | fi | |
6858 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
6859 | if test -n "$GTK_CONFIG"; then | |
6860 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
6861 | else | |
6862 | echo "$ac_t""no" 1>&6 | |
6863 | fi | |
6864 | ||
6865 | min_gtk_version=1.2.1 | |
6866 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 | |
6867 | echo "configure:6868: checking for GTK - version >= $min_gtk_version" >&5 | |
6868 | no_gtk="" | |
6869 | if test "$GTK_CONFIG" != "no" ; then | |
6870 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
6871 | GTK_LIBS=`$GTK_CONFIG --libs` | |
6872 | ac_save_CFLAGS="$CFLAGS" | |
6873 | ac_save_LIBS="$LIBS" | |
6874 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
6875 | LIBS="$LIBS $GTK_LIBS" | |
6876 | if test "$cross_compiling" = yes; then | |
6877 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
6878 | else | |
6879 | cat > conftest.$ac_ext <<EOF | |
6880 | #line 6881 "configure" | |
6881 | #include "confdefs.h" | |
6882 | ||
6883 | #include <gtk/gtk.h> | |
6884 | #include <gtk/gtkfeatures.h> | |
6885 | #include <stdio.h> | |
6886 | ||
6887 | int | |
6888 | main () | |
6889 | { | |
6890 | int major, minor, micro; | |
6891 | ||
6892 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
6893 | printf("%s, bad version string\n", "$min_gtk_version"); | |
6894 | exit(1); | |
6895 | } | |
6896 | ||
6897 | if ((GTK_MAJOR_VERSION != gtk_major_version) || | |
6898 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
6899 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
6900 | printf("Headers vs. library version mismatch!\n"); | |
6901 | exit(1); | |
6902 | } | |
6903 | ||
6904 | if (gtk_minor_version == 1) return FALSE; | |
6905 | ||
6906 | return !((gtk_major_version > major) || | |
6907 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
6908 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
6909 | } | |
6910 | ||
6911 | EOF | |
6912 | if { (eval echo configure:6913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
6913 | then | |
6914 | : | |
6915 | else | |
6916 | echo "configure: failed program was:" >&5 | |
6917 | cat conftest.$ac_ext >&5 | |
6918 | rm -fr conftest* | |
6919 | no_gtk=yes | |
6920 | fi | |
6921 | rm -fr conftest* | |
6922 | fi | |
6923 | ||
6924 | CFLAGS="$ac_save_CFLAGS" | |
6925 | LIBS="$ac_save_LIBS" | |
6926 | else | |
6927 | no_gtk=yes | |
6928 | fi | |
6929 | if test "x$no_gtk" = x ; then | |
6930 | echo "$ac_t""yes" 1>&6 | |
6931 | WXGTK12=1 | |
6932 | else | |
6933 | echo "$ac_t""no" 1>&6 | |
6934 | GTK_CFLAGS="" | |
6935 | GTK_LIBS="" | |
6936 | { echo "configure: error: Is gtk-config in path and GTK+ is version 1.2.1 or above?" 1>&2; exit 1; } | |
6937 | fi | |
6938 | ||
6939 | ||
6940 | ||
6941 | ||
6942 | TOOLKIT_INCLUDE="$GTK_CFLAGS" | |
6943 | GUI_TK_LIBRARY="$GTK_LIBS" | |
6944 | TOOLKIT=GTK | |
6945 | ||
6946 | GUIOBJS="\$(GTK_GUIOBJS)" | |
6947 | GUIHEADERS="\$(GTK_HEADERS)" | |
6948 | COMMONOBJS="\$(GTK_COMMONOBJS)" | |
6949 | GENERICOBJS="\$(GTK_GENERICOBJS)" | |
6950 | GUIDEPS="\$(GTK_GUIDEPS)" | |
6951 | COMMONDEPS="\$(GTK_COMMONDEPS)" | |
6952 | GENERICDEPS="\$(GTK_GENERICDEPS)" | |
6953 | UNIXOBJS="\$(UNIX_OBJS)" | |
6954 | UNIXDEPS="\$(UNIX_DEPS)" | |
6955 | GUIDIST=GTK_DIST | |
6956 | ||
6957 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 | |
6958 | echo "configure:6959: checking for gdk_im_open in -lgdk" >&5 | |
6959 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` | |
6960 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
6961 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6962 | else | |
6963 | ac_save_LIBS="$LIBS" | |
6964 | LIBS="-lgdk $LIBS" | |
6965 | cat > conftest.$ac_ext <<EOF | |
6966 | #line 6967 "configure" | |
6967 | #include "confdefs.h" | |
6968 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6969 | /* We use char because int might match the return type of a gcc2 | |
6970 | builtin and then its argument prototype would still apply. */ | |
6971 | char gdk_im_open(); | |
6972 | ||
6973 | int main() { | |
6974 | gdk_im_open() | |
6975 | ; return 0; } | |
6976 | EOF | |
6977 | if { (eval echo configure:6978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
6978 | rm -rf conftest* | |
6979 | eval "ac_cv_lib_$ac_lib_var=yes" | |
6980 | else | |
6981 | echo "configure: failed program was:" >&5 | |
6982 | cat conftest.$ac_ext >&5 | |
6983 | rm -rf conftest* | |
6984 | eval "ac_cv_lib_$ac_lib_var=no" | |
6985 | fi | |
6986 | rm -f conftest* | |
6987 | LIBS="$ac_save_LIBS" | |
6988 | ||
6989 | fi | |
6990 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
6991 | echo "$ac_t""yes" 1>&6 | |
6992 | cat >> confdefs.h <<\EOF | |
6993 | #define HAVE_XIM 1 | |
6994 | EOF | |
6995 | ||
6996 | else | |
6997 | echo "$ac_t""no" 1>&6 | |
6998 | fi | |
6999 | ||
7000 | ||
7001 | fi | |
7002 | ||
7003 | if test "$wxUSE_WINE" = 1; then | |
7004 | echo $ac_n "checking for WINE includes""... $ac_c" 1>&6 | |
7005 | echo "configure:7006: checking for WINE includes" >&5 | |
7006 | ||
7007 | ac_find_includes= | |
7008 | for ac_dir in $SEARCH_INCLUDE; | |
7009 | do | |
7010 | if test -f "$ac_dir/windows.h"; then | |
7011 | ac_find_includes=$ac_dir | |
7012 | break | |
7013 | fi | |
7014 | done | |
7015 | ||
7016 | if test "$ac_find_includes" != "" ; then | |
7017 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
7018 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
7019 | else | |
7020 | echo "$ac_t""no" 1>&6 | |
7021 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
7022 | fi | |
7023 | ||
7024 | XPM_LINK="" | |
7025 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
7026 | echo "configure:7027: checking for Xpm library" >&5 | |
7027 | ||
7028 | ac_find_libraries= | |
7029 | for ac_dir in $SEARCH_LIB; | |
7030 | do | |
7031 | for ac_extension in a so sl; do | |
7032 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
7033 | ac_find_libraries=$ac_dir | |
7034 | break 2 | |
7035 | fi | |
7036 | done | |
7037 | done | |
7038 | ||
7039 | if test "$ac_find_libraries" != "" ; then | |
7040 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
7041 | XPM_LINK="-lXpm" | |
7042 | cat >> confdefs.h <<\EOF | |
7043 | #define wxHAVE_LIB_XPM 1 | |
7044 | EOF | |
7045 | ||
7046 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
7047 | else | |
7048 | echo "$ac_t""no" 1>&6 | |
7049 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
7050 | fi | |
7051 | ||
7052 | MESA_LINK="" | |
7053 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 | |
7054 | echo "configure:7055: checking for Mesa library" >&5 | |
7055 | ||
7056 | ac_find_libraries= | |
7057 | for ac_dir in $SEARCH_LIB; | |
7058 | do | |
7059 | for ac_extension in a so sl; do | |
7060 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
7061 | ac_find_libraries=$ac_dir | |
7062 | break 2 | |
7063 | fi | |
7064 | done | |
7065 | done | |
7066 | ||
7067 | if test "$ac_find_libraries" != "" ; then | |
7068 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
7069 | MESA_LINK="-lMesaGL" | |
7070 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
7071 | else | |
7072 | { echo "configure: error: no" 1>&2; exit 1; } | |
7073 | fi | |
7074 | ||
7075 | GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses -lm" | |
7076 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" | |
7077 | WXWINE=1 | |
7078 | TOOLKIT=MSW | |
7079 | ||
7080 | GUIHEADERS="\$(MSW_HEADERS)" | |
7081 | GUIOBJS="\$(MSW_GUIOBJS)" | |
7082 | COMMONOBJS="\$(MSW_COMMONOBJS)" | |
7083 | GENERICOBJS="\$(MSW_GENERICOBJS)" | |
7084 | GUIDEPS="\$(MSW_GUIDEPS)" | |
7085 | COMMONDEPS="\$(MSW_COMMONDEPS)" | |
7086 | GENERICDEPS="\$(MSW_GENERICDEPS)" | |
7087 | UNIXOBJS="\$(UNIX_OBJS)" | |
7088 | UNIXDEPS="\$(UNIX_DEPS)" | |
7089 | GUIDIST=MSW_DIST | |
7090 | fi | |
7091 | ||
7092 | if test "$wxUSE_MOTIF" = 1; then | |
7093 | # If we find X, set shell vars x_includes and x_libraries to the | |
7094 | # paths, otherwise set no_x=yes. | |
7095 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
7096 | # --without-x overrides everything else, but does not touch the cache. | |
7097 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
7098 | echo "configure:7099: checking for X" >&5 | |
7099 | ||
7100 | # Check whether --with-x or --without-x was given. | |
7101 | if test "${with_x+set}" = set; then | |
7102 | withval="$with_x" | |
7103 | : | |
7104 | fi | |
7105 | ||
7106 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
7107 | if test "x$with_x" = xno; then | |
7108 | # The user explicitly disabled X. | |
7109 | have_x=disabled | |
7110 | else | |
7111 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
7112 | # Both variables are already set. | |
7113 | have_x=yes | |
7114 | else | |
7115 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then | |
7116 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7117 | else | |
7118 | # One or both of the vars are not set, and there is no cached value. | |
7119 | ac_x_includes=NO ac_x_libraries=NO | |
7120 | rm -fr conftestdir | |
7121 | if mkdir conftestdir; then | |
7122 | cd conftestdir | |
7123 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
7124 | cat > Imakefile <<'EOF' | |
7125 | acfindx: | |
7126 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
7127 | EOF | |
7128 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
7129 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
7130 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
7131 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
7132 | for ac_extension in a so sl; do | |
7133 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
7134 | test -f $ac_im_libdir/libX11.$ac_extension; then | |
7135 | ac_im_usrlibdir=$ac_im_libdir; break | |
7136 | fi | |
7137 | done | |
7138 | # Screen out bogus values from the imake configuration. They are | |
7139 | # bogus both because they are the default anyway, and because | |
7140 | # using them would break gcc on systems where it needs fixed includes. | |
7141 | case "$ac_im_incroot" in | |
7142 | /usr/include) ;; | |
7143 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; | |
7144 | esac | |
7145 | case "$ac_im_usrlibdir" in | |
7146 | /usr/lib | /lib) ;; | |
7147 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; | |
7148 | esac | |
7149 | fi | |
7150 | cd .. | |
7151 | rm -fr conftestdir | |
7152 | fi | |
7153 | ||
7154 | if test "$ac_x_includes" = NO; then | |
7155 | # Guess where to find include files, by looking for this one X11 .h file. | |
7156 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
7157 | ||
7158 | # First, try using that file with no special directory specified. | |
7159 | cat > conftest.$ac_ext <<EOF | |
7160 | #line 7161 "configure" | |
7161 | #include "confdefs.h" | |
7162 | #include <$x_direct_test_include> | |
7163 | EOF | |
7164 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
7165 | { (eval echo configure:7166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
7166 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
7167 | if test -z "$ac_err"; then | |
7168 | rm -rf conftest* | |
7169 | # We can compile using X headers with no special include directory. | |
7170 | ac_x_includes= | |
7171 | else | |
7172 | echo "$ac_err" >&5 | |
7173 | echo "configure: failed program was:" >&5 | |
7174 | cat conftest.$ac_ext >&5 | |
7175 | rm -rf conftest* | |
7176 | # Look for the header file in a standard set of common directories. | |
7177 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
7178 | for ac_dir in \ | |
7179 | /usr/X11/include \ | |
7180 | /usr/X11R6/include \ | |
7181 | /usr/X11R5/include \ | |
7182 | /usr/X11R4/include \ | |
7183 | \ | |
7184 | /usr/include/X11 \ | |
7185 | /usr/include/X11R6 \ | |
7186 | /usr/include/X11R5 \ | |
7187 | /usr/include/X11R4 \ | |
7188 | \ | |
7189 | /usr/local/X11/include \ | |
7190 | /usr/local/X11R6/include \ | |
7191 | /usr/local/X11R5/include \ | |
7192 | /usr/local/X11R4/include \ | |
7193 | \ | |
7194 | /usr/local/include/X11 \ | |
7195 | /usr/local/include/X11R6 \ | |
7196 | /usr/local/include/X11R5 \ | |
7197 | /usr/local/include/X11R4 \ | |
7198 | \ | |
7199 | /usr/X386/include \ | |
7200 | /usr/x386/include \ | |
7201 | /usr/XFree86/include/X11 \ | |
7202 | \ | |
7203 | /usr/include \ | |
7204 | /usr/local/include \ | |
7205 | /usr/unsupported/include \ | |
7206 | /usr/athena/include \ | |
7207 | /usr/local/x11r5/include \ | |
7208 | /usr/lpp/Xamples/include \ | |
7209 | \ | |
7210 | /usr/openwin/include \ | |
7211 | /usr/openwin/share/include \ | |
7212 | ; \ | |
7213 | do | |
7214 | if test -r "$ac_dir/$x_direct_test_include"; then | |
7215 | ac_x_includes=$ac_dir | |
7216 | break | |
7217 | fi | |
7218 | done | |
7219 | fi | |
7220 | rm -f conftest* | |
7221 | fi # $ac_x_includes = NO | |
7222 | ||
7223 | if test "$ac_x_libraries" = NO; then | |
7224 | # Check for the libraries. | |
7225 | ||
7226 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
7227 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
7228 | ||
7229 | # See if we find them without any special options. | |
7230 | # Don't add to $LIBS permanently. | |
7231 | ac_save_LIBS="$LIBS" | |
7232 | LIBS="-l$x_direct_test_library $LIBS" | |
7233 | cat > conftest.$ac_ext <<EOF | |
7234 | #line 7235 "configure" | |
7235 | #include "confdefs.h" | |
7236 | ||
7237 | int main() { | |
7238 | ${x_direct_test_function}() | |
7239 | ; return 0; } | |
7240 | EOF | |
7241 | if { (eval echo configure:7242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7242 | rm -rf conftest* | |
7243 | LIBS="$ac_save_LIBS" | |
7244 | # We can link X programs with no special library path. | |
7245 | ac_x_libraries= | |
7246 | else | |
7247 | echo "configure: failed program was:" >&5 | |
7248 | cat conftest.$ac_ext >&5 | |
7249 | rm -rf conftest* | |
7250 | LIBS="$ac_save_LIBS" | |
7251 | # First see if replacing the include by lib works. | |
7252 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
7253 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
7254 | /usr/X11/lib \ | |
7255 | /usr/X11R6/lib \ | |
7256 | /usr/X11R5/lib \ | |
7257 | /usr/X11R4/lib \ | |
7258 | \ | |
7259 | /usr/lib/X11 \ | |
7260 | /usr/lib/X11R6 \ | |
7261 | /usr/lib/X11R5 \ | |
7262 | /usr/lib/X11R4 \ | |
7263 | \ | |
7264 | /usr/local/X11/lib \ | |
7265 | /usr/local/X11R6/lib \ | |
7266 | /usr/local/X11R5/lib \ | |
7267 | /usr/local/X11R4/lib \ | |
7268 | \ | |
7269 | /usr/local/lib/X11 \ | |
7270 | /usr/local/lib/X11R6 \ | |
7271 | /usr/local/lib/X11R5 \ | |
7272 | /usr/local/lib/X11R4 \ | |
7273 | \ | |
7274 | /usr/X386/lib \ | |
7275 | /usr/x386/lib \ | |
7276 | /usr/XFree86/lib/X11 \ | |
7277 | \ | |
7278 | /usr/lib \ | |
7279 | /usr/local/lib \ | |
7280 | /usr/unsupported/lib \ | |
7281 | /usr/athena/lib \ | |
7282 | /usr/local/x11r5/lib \ | |
7283 | /usr/lpp/Xamples/lib \ | |
7284 | /lib/usr/lib/X11 \ | |
7285 | \ | |
7286 | /usr/openwin/lib \ | |
7287 | /usr/openwin/share/lib \ | |
7288 | ; \ | |
7289 | do | |
7290 | for ac_extension in a so sl; do | |
7291 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then | |
7292 | ac_x_libraries=$ac_dir | |
7293 | break 2 | |
7294 | fi | |
7295 | done | |
7296 | done | |
7297 | fi | |
7298 | rm -f conftest* | |
7299 | fi # $ac_x_libraries = NO | |
7300 | ||
7301 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then | |
7302 | # Didn't find X anywhere. Cache the known absence of X. | |
7303 | ac_cv_have_x="have_x=no" | |
7304 | else | |
7305 | # Record where we found X for the cache. | |
7306 | ac_cv_have_x="have_x=yes \ | |
7307 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
7308 | fi | |
7309 | fi | |
7310 | fi | |
7311 | eval "$ac_cv_have_x" | |
7312 | fi # $with_x != no | |
7313 | ||
7314 | if test "$have_x" != yes; then | |
7315 | echo "$ac_t""$have_x" 1>&6 | |
7316 | no_x=yes | |
7317 | else | |
7318 | # If each of the values was on the command line, it overrides each guess. | |
7319 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
7320 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
7321 | # Update the cache value to reflect the command line values. | |
7322 | ac_cv_have_x="have_x=yes \ | |
7323 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
7324 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 | |
7325 | fi | |
7326 | ||
7327 | if test "$no_x" = yes; then | |
7328 | # Not all programs may use this symbol, but it does not hurt to define it. | |
7329 | cat >> confdefs.h <<\EOF | |
7330 | #define X_DISPLAY_MISSING 1 | |
7331 | EOF | |
7332 | ||
7333 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
7334 | else | |
7335 | if test -n "$x_includes"; then | |
7336 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
7337 | fi | |
7338 | ||
7339 | # It would also be nice to do this for all -L options, not just this one. | |
7340 | if test -n "$x_libraries"; then | |
7341 | X_LIBS="$X_LIBS -L$x_libraries" | |
7342 | # For Solaris; some versions of Sun CC require a space after -R and | |
7343 | # others require no space. Words are not sufficient . . . . | |
7344 | case "`(uname -sr) 2>/dev/null`" in | |
7345 | "SunOS 5"*) | |
7346 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | |
7347 | echo "configure:7348: checking whether -R must be followed by a space" >&5 | |
7348 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" | |
7349 | cat > conftest.$ac_ext <<EOF | |
7350 | #line 7351 "configure" | |
7351 | #include "confdefs.h" | |
7352 | ||
7353 | int main() { | |
7354 | ||
7355 | ; return 0; } | |
7356 | EOF | |
7357 | if { (eval echo configure:7358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7358 | rm -rf conftest* | |
7359 | ac_R_nospace=yes | |
7360 | else | |
7361 | echo "configure: failed program was:" >&5 | |
7362 | cat conftest.$ac_ext >&5 | |
7363 | rm -rf conftest* | |
7364 | ac_R_nospace=no | |
7365 | fi | |
7366 | rm -f conftest* | |
7367 | if test $ac_R_nospace = yes; then | |
7368 | echo "$ac_t""no" 1>&6 | |
7369 | X_LIBS="$X_LIBS -R$x_libraries" | |
7370 | else | |
7371 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
7372 | cat > conftest.$ac_ext <<EOF | |
7373 | #line 7374 "configure" | |
7374 | #include "confdefs.h" | |
7375 | ||
7376 | int main() { | |
7377 | ||
7378 | ; return 0; } | |
7379 | EOF | |
7380 | if { (eval echo configure:7381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7381 | rm -rf conftest* | |
7382 | ac_R_space=yes | |
7383 | else | |
7384 | echo "configure: failed program was:" >&5 | |
7385 | cat conftest.$ac_ext >&5 | |
7386 | rm -rf conftest* | |
7387 | ac_R_space=no | |
7388 | fi | |
7389 | rm -f conftest* | |
7390 | if test $ac_R_space = yes; then | |
7391 | echo "$ac_t""yes" 1>&6 | |
7392 | X_LIBS="$X_LIBS -R $x_libraries" | |
7393 | else | |
7394 | echo "$ac_t""neither works" 1>&6 | |
7395 | fi | |
7396 | fi | |
7397 | LIBS="$ac_xsave_LIBS" | |
7398 | esac | |
7399 | fi | |
7400 | ||
7401 | # Check for system-dependent libraries X programs must link with. | |
7402 | # Do this before checking for the system-independent R6 libraries | |
7403 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
7404 | ||
7405 | if test "$ISC" = yes; then | |
7406 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
7407 | else | |
7408 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | |
7409 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
7410 | # the Alpha needs dnet_stub (dnet does not exist). | |
7411 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
7412 | echo "configure:7413: checking for dnet_ntoa in -ldnet" >&5 | |
7413 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` | |
7414 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7415 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7416 | else | |
7417 | ac_save_LIBS="$LIBS" | |
7418 | LIBS="-ldnet $LIBS" | |
7419 | cat > conftest.$ac_ext <<EOF | |
7420 | #line 7421 "configure" | |
7421 | #include "confdefs.h" | |
7422 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7423 | /* We use char because int might match the return type of a gcc2 | |
7424 | builtin and then its argument prototype would still apply. */ | |
7425 | char dnet_ntoa(); | |
7426 | ||
7427 | int main() { | |
7428 | dnet_ntoa() | |
7429 | ; return 0; } | |
7430 | EOF | |
7431 | if { (eval echo configure:7432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7432 | rm -rf conftest* | |
7433 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7434 | else | |
7435 | echo "configure: failed program was:" >&5 | |
7436 | cat conftest.$ac_ext >&5 | |
7437 | rm -rf conftest* | |
7438 | eval "ac_cv_lib_$ac_lib_var=no" | |
7439 | fi | |
7440 | rm -f conftest* | |
7441 | LIBS="$ac_save_LIBS" | |
7442 | ||
7443 | fi | |
7444 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7445 | echo "$ac_t""yes" 1>&6 | |
7446 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
7447 | else | |
7448 | echo "$ac_t""no" 1>&6 | |
7449 | fi | |
7450 | ||
7451 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
7452 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | |
7453 | echo "configure:7454: checking for dnet_ntoa in -ldnet_stub" >&5 | |
7454 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` | |
7455 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7456 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7457 | else | |
7458 | ac_save_LIBS="$LIBS" | |
7459 | LIBS="-ldnet_stub $LIBS" | |
7460 | cat > conftest.$ac_ext <<EOF | |
7461 | #line 7462 "configure" | |
7462 | #include "confdefs.h" | |
7463 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7464 | /* We use char because int might match the return type of a gcc2 | |
7465 | builtin and then its argument prototype would still apply. */ | |
7466 | char dnet_ntoa(); | |
7467 | ||
7468 | int main() { | |
7469 | dnet_ntoa() | |
7470 | ; return 0; } | |
7471 | EOF | |
7472 | if { (eval echo configure:7473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7473 | rm -rf conftest* | |
7474 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7475 | else | |
7476 | echo "configure: failed program was:" >&5 | |
7477 | cat conftest.$ac_ext >&5 | |
7478 | rm -rf conftest* | |
7479 | eval "ac_cv_lib_$ac_lib_var=no" | |
7480 | fi | |
7481 | rm -f conftest* | |
7482 | LIBS="$ac_save_LIBS" | |
7483 | ||
7484 | fi | |
7485 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7486 | echo "$ac_t""yes" 1>&6 | |
7487 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
7488 | else | |
7489 | echo "$ac_t""no" 1>&6 | |
7490 | fi | |
7491 | ||
7492 | fi | |
7493 | ||
7494 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
7495 | # to get the SysV transport functions. | |
7496 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | |
7497 | # needs -lnsl. | |
7498 | # The nsl library prevents programs from opening the X display | |
7499 | # on Irix 5.2, according to dickey@clark.net. | |
7500 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
7501 | echo "configure:7502: checking for gethostbyname" >&5 | |
7502 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then | |
7503 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7504 | else | |
7505 | cat > conftest.$ac_ext <<EOF | |
7506 | #line 7507 "configure" | |
7507 | #include "confdefs.h" | |
7508 | /* System header to define __stub macros and hopefully few prototypes, | |
7509 | which can conflict with char gethostbyname(); below. */ | |
7510 | #include <assert.h> | |
7511 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7512 | /* We use char because int might match the return type of a gcc2 | |
7513 | builtin and then its argument prototype would still apply. */ | |
7514 | char gethostbyname(); | |
7515 | char (*f)(); | |
7516 | ||
7517 | int main() { | |
7518 | ||
7519 | /* The GNU C library defines this for functions which it implements | |
7520 | to always fail with ENOSYS. Some functions are actually named | |
7521 | something starting with __ and the normal name is an alias. */ | |
7522 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
7523 | choke me | |
7524 | #else | |
7525 | f = gethostbyname; | |
7526 | #endif | |
7527 | ||
7528 | ; return 0; } | |
7529 | EOF | |
7530 | if { (eval echo configure:7531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7531 | rm -rf conftest* | |
7532 | eval "ac_cv_func_gethostbyname=yes" | |
7533 | else | |
7534 | echo "configure: failed program was:" >&5 | |
7535 | cat conftest.$ac_ext >&5 | |
7536 | rm -rf conftest* | |
7537 | eval "ac_cv_func_gethostbyname=no" | |
7538 | fi | |
7539 | rm -f conftest* | |
7540 | fi | |
7541 | ||
7542 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
7543 | echo "$ac_t""yes" 1>&6 | |
7544 | : | |
7545 | else | |
7546 | echo "$ac_t""no" 1>&6 | |
7547 | fi | |
7548 | ||
7549 | if test $ac_cv_func_gethostbyname = no; then | |
7550 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
7551 | echo "configure:7552: checking for gethostbyname in -lnsl" >&5 | |
7552 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` | |
7553 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7554 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7555 | else | |
7556 | ac_save_LIBS="$LIBS" | |
7557 | LIBS="-lnsl $LIBS" | |
7558 | cat > conftest.$ac_ext <<EOF | |
7559 | #line 7560 "configure" | |
7560 | #include "confdefs.h" | |
7561 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7562 | /* We use char because int might match the return type of a gcc2 | |
7563 | builtin and then its argument prototype would still apply. */ | |
7564 | char gethostbyname(); | |
7565 | ||
7566 | int main() { | |
7567 | gethostbyname() | |
7568 | ; return 0; } | |
7569 | EOF | |
7570 | if { (eval echo configure:7571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7571 | rm -rf conftest* | |
7572 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7573 | else | |
7574 | echo "configure: failed program was:" >&5 | |
7575 | cat conftest.$ac_ext >&5 | |
7576 | rm -rf conftest* | |
7577 | eval "ac_cv_lib_$ac_lib_var=no" | |
7578 | fi | |
7579 | rm -f conftest* | |
7580 | LIBS="$ac_save_LIBS" | |
7581 | ||
7582 | fi | |
7583 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7584 | echo "$ac_t""yes" 1>&6 | |
7585 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
7586 | else | |
7587 | echo "$ac_t""no" 1>&6 | |
7588 | fi | |
7589 | ||
7590 | fi | |
7591 | ||
7592 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
7593 | # socket/setsockopt and other routines are undefined under SCO ODT | |
7594 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
7595 | # on later versions), says simon@lia.di.epfl.ch: it contains | |
7596 | # gethostby* variants that don't use the nameserver (or something). | |
7597 | # -lsocket must be given before -lnsl if both are needed. | |
7598 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
7599 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
7600 | echo "configure:7601: checking for connect" >&5 | |
7601 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then | |
7602 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7603 | else | |
7604 | cat > conftest.$ac_ext <<EOF | |
7605 | #line 7606 "configure" | |
7606 | #include "confdefs.h" | |
7607 | /* System header to define __stub macros and hopefully few prototypes, | |
7608 | which can conflict with char connect(); below. */ | |
7609 | #include <assert.h> | |
7610 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7611 | /* We use char because int might match the return type of a gcc2 | |
7612 | builtin and then its argument prototype would still apply. */ | |
7613 | char connect(); | |
7614 | char (*f)(); | |
7615 | ||
7616 | int main() { | |
7617 | ||
7618 | /* The GNU C library defines this for functions which it implements | |
7619 | to always fail with ENOSYS. Some functions are actually named | |
7620 | something starting with __ and the normal name is an alias. */ | |
7621 | #if defined (__stub_connect) || defined (__stub___connect) | |
7622 | choke me | |
7623 | #else | |
7624 | f = connect; | |
7625 | #endif | |
7626 | ||
7627 | ; return 0; } | |
7628 | EOF | |
7629 | if { (eval echo configure:7630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7630 | rm -rf conftest* | |
7631 | eval "ac_cv_func_connect=yes" | |
7632 | else | |
7633 | echo "configure: failed program was:" >&5 | |
7634 | cat conftest.$ac_ext >&5 | |
7635 | rm -rf conftest* | |
7636 | eval "ac_cv_func_connect=no" | |
7637 | fi | |
7638 | rm -f conftest* | |
7639 | fi | |
7640 | ||
7641 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
7642 | echo "$ac_t""yes" 1>&6 | |
7643 | : | |
7644 | else | |
7645 | echo "$ac_t""no" 1>&6 | |
7646 | fi | |
7647 | ||
7648 | if test $ac_cv_func_connect = no; then | |
7649 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 | |
7650 | echo "configure:7651: checking for connect in -lsocket" >&5 | |
7651 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` | |
7652 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7653 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7654 | else | |
7655 | ac_save_LIBS="$LIBS" | |
7656 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
7657 | cat > conftest.$ac_ext <<EOF | |
7658 | #line 7659 "configure" | |
7659 | #include "confdefs.h" | |
7660 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7661 | /* We use char because int might match the return type of a gcc2 | |
7662 | builtin and then its argument prototype would still apply. */ | |
7663 | char connect(); | |
7664 | ||
7665 | int main() { | |
7666 | connect() | |
7667 | ; return 0; } | |
7668 | EOF | |
7669 | if { (eval echo configure:7670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7670 | rm -rf conftest* | |
7671 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7672 | else | |
7673 | echo "configure: failed program was:" >&5 | |
7674 | cat conftest.$ac_ext >&5 | |
7675 | rm -rf conftest* | |
7676 | eval "ac_cv_lib_$ac_lib_var=no" | |
7677 | fi | |
7678 | rm -f conftest* | |
7679 | LIBS="$ac_save_LIBS" | |
7680 | ||
7681 | fi | |
7682 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7683 | echo "$ac_t""yes" 1>&6 | |
7684 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
7685 | else | |
7686 | echo "$ac_t""no" 1>&6 | |
7687 | fi | |
7688 | ||
7689 | fi | |
7690 | ||
7691 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. | |
7692 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
7693 | echo "configure:7694: checking for remove" >&5 | |
7694 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then | |
7695 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7696 | else | |
7697 | cat > conftest.$ac_ext <<EOF | |
7698 | #line 7699 "configure" | |
7699 | #include "confdefs.h" | |
7700 | /* System header to define __stub macros and hopefully few prototypes, | |
7701 | which can conflict with char remove(); below. */ | |
7702 | #include <assert.h> | |
7703 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7704 | /* We use char because int might match the return type of a gcc2 | |
7705 | builtin and then its argument prototype would still apply. */ | |
7706 | char remove(); | |
7707 | char (*f)(); | |
7708 | ||
7709 | int main() { | |
7710 | ||
7711 | /* The GNU C library defines this for functions which it implements | |
7712 | to always fail with ENOSYS. Some functions are actually named | |
7713 | something starting with __ and the normal name is an alias. */ | |
7714 | #if defined (__stub_remove) || defined (__stub___remove) | |
7715 | choke me | |
7716 | #else | |
7717 | f = remove; | |
7718 | #endif | |
7719 | ||
7720 | ; return 0; } | |
7721 | EOF | |
7722 | if { (eval echo configure:7723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7723 | rm -rf conftest* | |
7724 | eval "ac_cv_func_remove=yes" | |
7725 | else | |
7726 | echo "configure: failed program was:" >&5 | |
7727 | cat conftest.$ac_ext >&5 | |
7728 | rm -rf conftest* | |
7729 | eval "ac_cv_func_remove=no" | |
7730 | fi | |
7731 | rm -f conftest* | |
7732 | fi | |
7733 | ||
7734 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
7735 | echo "$ac_t""yes" 1>&6 | |
7736 | : | |
7737 | else | |
7738 | echo "$ac_t""no" 1>&6 | |
7739 | fi | |
7740 | ||
7741 | if test $ac_cv_func_remove = no; then | |
7742 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | |
7743 | echo "configure:7744: checking for remove in -lposix" >&5 | |
7744 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` | |
7745 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7746 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7747 | else | |
7748 | ac_save_LIBS="$LIBS" | |
7749 | LIBS="-lposix $LIBS" | |
7750 | cat > conftest.$ac_ext <<EOF | |
7751 | #line 7752 "configure" | |
7752 | #include "confdefs.h" | |
7753 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7754 | /* We use char because int might match the return type of a gcc2 | |
7755 | builtin and then its argument prototype would still apply. */ | |
7756 | char remove(); | |
7757 | ||
7758 | int main() { | |
7759 | remove() | |
7760 | ; return 0; } | |
7761 | EOF | |
7762 | if { (eval echo configure:7763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7763 | rm -rf conftest* | |
7764 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7765 | else | |
7766 | echo "configure: failed program was:" >&5 | |
7767 | cat conftest.$ac_ext >&5 | |
7768 | rm -rf conftest* | |
7769 | eval "ac_cv_lib_$ac_lib_var=no" | |
7770 | fi | |
7771 | rm -f conftest* | |
7772 | LIBS="$ac_save_LIBS" | |
7773 | ||
7774 | fi | |
7775 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7776 | echo "$ac_t""yes" 1>&6 | |
7777 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
7778 | else | |
7779 | echo "$ac_t""no" 1>&6 | |
7780 | fi | |
7781 | ||
7782 | fi | |
7783 | ||
7784 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
7785 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 | |
7786 | echo "configure:7787: checking for shmat" >&5 | |
7787 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then | |
7788 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7789 | else | |
7790 | cat > conftest.$ac_ext <<EOF | |
7791 | #line 7792 "configure" | |
7792 | #include "confdefs.h" | |
7793 | /* System header to define __stub macros and hopefully few prototypes, | |
7794 | which can conflict with char shmat(); below. */ | |
7795 | #include <assert.h> | |
7796 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7797 | /* We use char because int might match the return type of a gcc2 | |
7798 | builtin and then its argument prototype would still apply. */ | |
7799 | char shmat(); | |
7800 | char (*f)(); | |
7801 | ||
7802 | int main() { | |
7803 | ||
7804 | /* The GNU C library defines this for functions which it implements | |
7805 | to always fail with ENOSYS. Some functions are actually named | |
7806 | something starting with __ and the normal name is an alias. */ | |
7807 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
7808 | choke me | |
7809 | #else | |
7810 | f = shmat; | |
7811 | #endif | |
7812 | ||
7813 | ; return 0; } | |
7814 | EOF | |
7815 | if { (eval echo configure:7816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7816 | rm -rf conftest* | |
7817 | eval "ac_cv_func_shmat=yes" | |
7818 | else | |
7819 | echo "configure: failed program was:" >&5 | |
7820 | cat conftest.$ac_ext >&5 | |
7821 | rm -rf conftest* | |
7822 | eval "ac_cv_func_shmat=no" | |
7823 | fi | |
7824 | rm -f conftest* | |
7825 | fi | |
7826 | ||
7827 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
7828 | echo "$ac_t""yes" 1>&6 | |
7829 | : | |
7830 | else | |
7831 | echo "$ac_t""no" 1>&6 | |
7832 | fi | |
7833 | ||
7834 | if test $ac_cv_func_shmat = no; then | |
7835 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | |
7836 | echo "configure:7837: checking for shmat in -lipc" >&5 | |
7837 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` | |
7838 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7839 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7840 | else | |
7841 | ac_save_LIBS="$LIBS" | |
7842 | LIBS="-lipc $LIBS" | |
7843 | cat > conftest.$ac_ext <<EOF | |
7844 | #line 7845 "configure" | |
7845 | #include "confdefs.h" | |
7846 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7847 | /* We use char because int might match the return type of a gcc2 | |
7848 | builtin and then its argument prototype would still apply. */ | |
7849 | char shmat(); | |
7850 | ||
7851 | int main() { | |
7852 | shmat() | |
7853 | ; return 0; } | |
7854 | EOF | |
7855 | if { (eval echo configure:7856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7856 | rm -rf conftest* | |
7857 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7858 | else | |
7859 | echo "configure: failed program was:" >&5 | |
7860 | cat conftest.$ac_ext >&5 | |
7861 | rm -rf conftest* | |
7862 | eval "ac_cv_lib_$ac_lib_var=no" | |
7863 | fi | |
7864 | rm -f conftest* | |
7865 | LIBS="$ac_save_LIBS" | |
7866 | ||
7867 | fi | |
7868 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7869 | echo "$ac_t""yes" 1>&6 | |
7870 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
7871 | else | |
7872 | echo "$ac_t""no" 1>&6 | |
7873 | fi | |
7874 | ||
7875 | fi | |
7876 | fi | |
7877 | ||
7878 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
7879 | ac_save_LDFLAGS="$LDFLAGS" | |
7880 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
7881 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
7882 | # check for ICE first), but we must link in the order -lSM -lICE or | |
7883 | # we get undefined symbols. So assume we have SM if we have ICE. | |
7884 | # These have to be linked with before -lX11, unlike the other | |
7885 | # libraries we check for below, so use a different variable. | |
7886 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | |
7887 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
7888 | echo "configure:7889: checking for IceConnectionNumber in -lICE" >&5 | |
7889 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` | |
7890 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7891 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7892 | else | |
7893 | ac_save_LIBS="$LIBS" | |
7894 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
7895 | cat > conftest.$ac_ext <<EOF | |
7896 | #line 7897 "configure" | |
7897 | #include "confdefs.h" | |
7898 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7899 | /* We use char because int might match the return type of a gcc2 | |
7900 | builtin and then its argument prototype would still apply. */ | |
7901 | char IceConnectionNumber(); | |
7902 | ||
7903 | int main() { | |
7904 | IceConnectionNumber() | |
7905 | ; return 0; } | |
7906 | EOF | |
7907 | if { (eval echo configure:7908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7908 | rm -rf conftest* | |
7909 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7910 | else | |
7911 | echo "configure: failed program was:" >&5 | |
7912 | cat conftest.$ac_ext >&5 | |
7913 | rm -rf conftest* | |
7914 | eval "ac_cv_lib_$ac_lib_var=no" | |
7915 | fi | |
7916 | rm -f conftest* | |
7917 | LIBS="$ac_save_LIBS" | |
7918 | ||
7919 | fi | |
7920 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7921 | echo "$ac_t""yes" 1>&6 | |
7922 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
7923 | else | |
7924 | echo "$ac_t""no" 1>&6 | |
7925 | fi | |
7926 | ||
7927 | LDFLAGS="$ac_save_LDFLAGS" | |
7928 | ||
7929 | fi | |
7930 | ||
7931 | ||
7932 | if test "$no_x" = "yes"; then | |
7933 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
7934 | fi | |
7935 | ||
7936 | GUI_TK_LIBRARY="$X_LIBS" | |
7937 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
7938 | ||
7939 | ||
7940 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 | |
7941 | echo "configure:7942: checking for Motif/Lesstif headers" >&5 | |
7942 | ||
7943 | ac_find_includes= | |
7944 | for ac_dir in $SEARCH_INCLUDE; | |
7945 | do | |
7946 | if test -f "$ac_dir/Xm/Xm.h"; then | |
7947 | ac_find_includes=$ac_dir | |
7948 | break | |
7949 | fi | |
7950 | done | |
7951 | ||
7952 | if test "$ac_find_includes" != "" ; then | |
7953 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
7954 | else | |
7955 | echo "$ac_t""no" 1>&6 | |
7956 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
7957 | fi | |
7958 | ||
7959 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
7960 | echo "configure:7961: checking for Motif/Lesstif library" >&5 | |
7961 | ||
7962 | ac_find_libraries= | |
7963 | for ac_dir in $SEARCH_LIB; | |
7964 | do | |
7965 | for ac_extension in a so sl; do | |
7966 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
7967 | ac_find_libraries=$ac_dir | |
7968 | break 2 | |
7969 | fi | |
7970 | done | |
7971 | done | |
7972 | ||
7973 | if test "$ac_find_libraries" != "" ; then | |
7974 | ||
7975 | ac_path_to_include=$ac_find_includes | |
7976 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
7977 | result=$? | |
7978 | if test $result = 0; then | |
7979 | ac_path_to_include="" | |
7980 | else | |
7981 | ac_path_to_include="-I$ac_find_includes" | |
7982 | fi | |
7983 | ||
7984 | ||
7985 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
7986 | result=$? | |
7987 | if test $result = 0; then | |
7988 | ac_path_to_link="" | |
7989 | else | |
7990 | ac_path_to_link="-L$ac_find_libraries" | |
7991 | fi | |
7992 | ||
7993 | ||
7994 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" | |
7995 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include" | |
7996 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
7997 | else | |
7998 | echo "$ac_t""no" 1>&6 | |
7999 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
8000 | fi | |
8001 | ||
8002 | echo $ac_n "checking for Xt library""... $ac_c" 1>&6 | |
8003 | echo "configure:8004: checking for Xt library" >&5 | |
8004 | ||
8005 | ac_find_libraries= | |
8006 | for ac_dir in $SEARCH_LIB; | |
8007 | do | |
8008 | for ac_extension in a so sl; do | |
8009 | if test -f "$ac_dir/libXt.$ac_extension"; then | |
8010 | ac_find_libraries=$ac_dir | |
8011 | break 2 | |
8012 | fi | |
8013 | done | |
8014 | done | |
8015 | ||
8016 | if test "$ac_find_libraries" != "" ; then | |
8017 | ||
8018 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
8019 | result=$? | |
8020 | if test $result = 0; then | |
8021 | ac_path_to_link="" | |
8022 | else | |
8023 | ac_path_to_link="-L$ac_find_libraries" | |
8024 | fi | |
8025 | ||
8026 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" | |
8027 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
8028 | else | |
8029 | echo "$ac_t""no" 1>&6 | |
8030 | { echo "configure: error: please set LDFLAGS to contain the location of libXt" 1>&2; exit 1; } | |
8031 | fi | |
8032 | ||
8033 | XPM_LINK="" | |
8034 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
8035 | echo "configure:8036: checking for Xpm library" >&5 | |
8036 | ||
8037 | ac_find_libraries= | |
8038 | for ac_dir in $SEARCH_LIB; | |
8039 | do | |
8040 | for ac_extension in a so sl; do | |
8041 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
8042 | ac_find_libraries=$ac_dir | |
8043 | break 2 | |
8044 | fi | |
8045 | done | |
8046 | done | |
8047 | ||
8048 | if test "$ac_find_libraries" != "" ; then | |
8049 | ||
8050 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
8051 | result=$? | |
8052 | if test $result = 0; then | |
8053 | ac_path_to_link="" | |
8054 | else | |
8055 | ac_path_to_link="-L$ac_find_libraries" | |
8056 | fi | |
8057 | ||
8058 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" | |
8059 | XPM_LINK="-lXpm " | |
8060 | cat >> confdefs.h <<\EOF | |
8061 | #define wxHAVE_LIB_XPM 1 | |
8062 | EOF | |
8063 | ||
8064 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
8065 | else | |
8066 | echo "$ac_t""no" 1>&6 | |
8067 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
8068 | fi | |
8069 | ||
8070 | GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11 -lm" | |
8071 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" | |
8072 | TOOLKIT=MOTIF | |
8073 | ||
8074 | GUIHEADERS="\$(MOTIF_HEADERS)" | |
8075 | GUIOBJS="\$(MOTIF_GUIOBJS)" | |
8076 | COMMONOBJS="\$(MOTIF_COMMONOBJS)" | |
8077 | GENERICOBJS="\$(MOTIF_GENERICOBJS)" | |
8078 | GUIDEPS="\$(MOTIF_GUIDEPS)" | |
8079 | COMMONDEPS="\$(MOTIF_COMMONDEPS)" | |
8080 | GENERICDEPS="\$(MOTIF_GENERICDEPS)" | |
8081 | UNIXOBJS="\$(UNIX_OBJS)" | |
8082 | UNIXDEPS="\$(UNIX_DEPS)" | |
8083 | GUIDIST=MOTIF_DIST | |
8084 | fi | |
8085 | ||
8086 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "A-Z" "a-z"` | |
8087 | ||
8088 | TOOLKIT_DEF="-D__WX${TOOLKIT}__" | |
8089 | ||
8090 | WX_LIBRARY="wx_${TOOLKIT_DIR}" | |
8091 | ||
8092 | ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(IODBCOBJS)" | |
8093 | if test "$wxUSE_LIBJPEG" = "yes" ; then | |
8094 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
8095 | fi | |
8096 | if test "$wxUSE_LIBTIFF" = "yes" ; then | |
8097 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
8098 | fi | |
8099 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
8100 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
8101 | fi | |
8102 | if test "$wxUSE_ZLIB" = "yes" ; then | |
8103 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
8104 | fi | |
8105 | ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS)" | |
8106 | ALL_HEADERS="\$(GUIHEADERS) \$(HTML_HEADERS) \$(UNIX_HEADERS) \$(PROTOCOL_HEADERS) \$(GENERIC_HEADERS) \$(WX_HEADERS)" | |
8107 | else | |
8108 | ||
8109 | ALL_OBJECTS="\$(BASE_OBJS)" | |
8110 | ALL_DEPFILES="\${BASE_DEPS}" | |
8111 | ALL_HEADERS="\${BASE_HEADERS}" | |
8112 | ||
8113 | WX_LIBRARY="wxbase" | |
8114 | fi | |
8115 | ||
8116 | WX_LIBRARY_NAME="lib${WX_LIBRARY}.la" | |
8117 | ||
8118 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
8119 | ||
8120 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
8121 | ||
8122 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}" | |
8123 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so" | |
8124 | WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so" | |
8125 | ||
8126 | SHARED_LD= | |
8127 | PIC_FLAG= | |
8128 | WX_ALL= | |
8129 | WX_ALL_INSTALLED= | |
8130 | BURNT_LIBRARY_NAME= | |
8131 | ||
8132 | if test "$wxUSE_SHARED" = "yes"; then | |
8133 | case "${host}" in | |
8134 | *-hp-hpux* ) | |
8135 | if test "$GCC" = yes ; then | |
8136 | SHARED_LD="${CC} -shared -fPIC -o" | |
8137 | PIC_FLAG="-fPIC" | |
8138 | else | |
8139 | SHARED_LD="${CXX} -b -o" | |
8140 | PIC_FLAG="+Z" | |
8141 | fi | |
8142 | WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl" | |
8143 | WX_ALL=${WX_LIBRARY_NAME_SHARED} | |
8144 | ;; | |
8145 | *-*-linux* ) | |
8146 | SHARED_LD="${CC} -shared -o" | |
8147 | PIC_FLAG="-fPIC" | |
8148 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8149 | WX_ALL="CREATE_LINKS" | |
8150 | ;; | |
8151 | *-*-irix5* | *-*-irix6* ) | |
8152 | if test "$GCC" = yes ; then | |
8153 | SHARED_LD="${CC} -shared -o" | |
8154 | PIC_FLAG="-fPIC" | |
8155 | else | |
8156 | SHARED_LD="${CXX} -shared -o" | |
8157 | fi | |
8158 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8159 | WX_ALL="CREATE_LINKS" | |
8160 | ;; | |
8161 | *-*-solaris2* ) | |
8162 | if test "$GCC" = yes ; then | |
8163 | SHARED_LD="${CC} -shared -o" | |
8164 | PIC_FLAG="-fPIC" | |
8165 | else | |
8166 | SHARED_LD="${CXX} -G -o" | |
8167 | PIC_FLAG="-KPIC" | |
8168 | fi | |
8169 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8170 | WX_ALL="CREATE_LINKS" | |
8171 | ;; | |
8172 | *-*-sunos4* ) | |
8173 | SHARED_LD="${CC} -shared -o" | |
8174 | PIC_FLAG="-fPIC" | |
8175 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8176 | WX_ALL="CREATE_LINKS" | |
8177 | ;; | |
8178 | *-*-freebsd* | *-*-netbsd*) | |
8179 | SHARED_LD="${CC} -shared -o" | |
8180 | PIC_FLAG="-fPIC" | |
8181 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8182 | WX_ALL="CREATE_LINKS" | |
8183 | ;; | |
8184 | *-*-osf* ) | |
8185 | SHARED_LD="${CXX} -shared -o" | |
8186 | PIC_FLAG="-fPIC" | |
8187 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8188 | WX_ALL="CREATE_LINKS" | |
8189 | ;; | |
8190 | *-*-dgux5* ) | |
8191 | SHARED_LD="${CXX} -shared -o" | |
8192 | PIC_FLAG="-fPIC" | |
8193 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8194 | WX_ALL="CREATE_LINKS" | |
8195 | ;; | |
8196 | *-*-sysv5* ) | |
8197 | SHARED_LD="${CC} -shared -o" | |
8198 | PIC_FLAG="-fPIC" | |
8199 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8200 | WX_ALL="CREATE_LINKS" | |
8201 | ;; | |
8202 | *-*-aix* ) | |
8203 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
8204 | WX_ALL=${WX_LIBRARY_NAME_SHARED} | |
8205 | ;; | |
8206 | *-*-cygwin32* ) | |
8207 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
8208 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
8209 | ;; | |
8210 | *-*-mingw32* ) | |
8211 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
8212 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
8213 | ;; | |
8214 | *-pc-os2_emx ) | |
8215 | ;; | |
8216 | *) | |
8217 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } | |
8218 | esac | |
8219 | ||
8220 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
8221 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
8222 | fi | |
8223 | else | |
8224 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
8225 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
8226 | fi | |
8227 | ||
8228 | ||
8229 | for ac_hdr in strings.h | |
8230 | do | |
8231 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8232 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
8233 | echo "configure:8234: checking for $ac_hdr" >&5 | |
8234 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
8235 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8236 | else | |
8237 | cat > conftest.$ac_ext <<EOF | |
8238 | #line 8239 "configure" | |
8239 | #include "confdefs.h" | |
8240 | #include <$ac_hdr> | |
8241 | EOF | |
8242 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8243 | { (eval echo configure:8244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
8244 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
8245 | if test -z "$ac_err"; then | |
8246 | rm -rf conftest* | |
8247 | eval "ac_cv_header_$ac_safe=yes" | |
8248 | else | |
8249 | echo "$ac_err" >&5 | |
8250 | echo "configure: failed program was:" >&5 | |
8251 | cat conftest.$ac_ext >&5 | |
8252 | rm -rf conftest* | |
8253 | eval "ac_cv_header_$ac_safe=no" | |
8254 | fi | |
8255 | rm -f conftest* | |
8256 | fi | |
8257 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8258 | echo "$ac_t""yes" 1>&6 | |
8259 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8260 | cat >> confdefs.h <<EOF | |
8261 | #define $ac_tr_hdr 1 | |
8262 | EOF | |
8263 | ||
8264 | else | |
8265 | echo "$ac_t""no" 1>&6 | |
8266 | fi | |
8267 | done | |
8268 | ||
8269 | for ac_hdr in unistd.h | |
8270 | do | |
8271 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8272 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
8273 | echo "configure:8274: checking for $ac_hdr" >&5 | |
8274 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
8275 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8276 | else | |
8277 | cat > conftest.$ac_ext <<EOF | |
8278 | #line 8279 "configure" | |
8279 | #include "confdefs.h" | |
8280 | #include <$ac_hdr> | |
8281 | EOF | |
8282 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8283 | { (eval echo configure:8284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
8284 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
8285 | if test -z "$ac_err"; then | |
8286 | rm -rf conftest* | |
8287 | eval "ac_cv_header_$ac_safe=yes" | |
8288 | else | |
8289 | echo "$ac_err" >&5 | |
8290 | echo "configure: failed program was:" >&5 | |
8291 | cat conftest.$ac_ext >&5 | |
8292 | rm -rf conftest* | |
8293 | eval "ac_cv_header_$ac_safe=no" | |
8294 | fi | |
8295 | rm -f conftest* | |
8296 | fi | |
8297 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8298 | echo "$ac_t""yes" 1>&6 | |
8299 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8300 | cat >> confdefs.h <<EOF | |
8301 | #define $ac_tr_hdr 1 | |
8302 | EOF | |
8303 | ||
8304 | else | |
8305 | echo "$ac_t""no" 1>&6 | |
8306 | fi | |
8307 | done | |
8308 | ||
8309 | for ac_hdr in wchar.h | |
8310 | do | |
8311 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8312 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
8313 | echo "configure:8314: checking for $ac_hdr" >&5 | |
8314 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
8315 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8316 | else | |
8317 | cat > conftest.$ac_ext <<EOF | |
8318 | #line 8319 "configure" | |
8319 | #include "confdefs.h" | |
8320 | #include <$ac_hdr> | |
8321 | EOF | |
8322 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8323 | { (eval echo configure:8324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
8324 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
8325 | if test -z "$ac_err"; then | |
8326 | rm -rf conftest* | |
8327 | eval "ac_cv_header_$ac_safe=yes" | |
8328 | else | |
8329 | echo "$ac_err" >&5 | |
8330 | echo "configure: failed program was:" >&5 | |
8331 | cat conftest.$ac_ext >&5 | |
8332 | rm -rf conftest* | |
8333 | eval "ac_cv_header_$ac_safe=no" | |
8334 | fi | |
8335 | rm -f conftest* | |
8336 | fi | |
8337 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8338 | echo "$ac_t""yes" 1>&6 | |
8339 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8340 | cat >> confdefs.h <<EOF | |
8341 | #define $ac_tr_hdr 1 | |
8342 | EOF | |
8343 | ||
8344 | else | |
8345 | echo "$ac_t""no" 1>&6 | |
8346 | fi | |
8347 | done | |
8348 | ||
8349 | for ac_hdr in wcstr.h | |
8350 | do | |
8351 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8352 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
8353 | echo "configure:8354: checking for $ac_hdr" >&5 | |
8354 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
8355 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8356 | else | |
8357 | cat > conftest.$ac_ext <<EOF | |
8358 | #line 8359 "configure" | |
8359 | #include "confdefs.h" | |
8360 | #include <$ac_hdr> | |
8361 | EOF | |
8362 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8363 | { (eval echo configure:8364: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
8364 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
8365 | if test -z "$ac_err"; then | |
8366 | rm -rf conftest* | |
8367 | eval "ac_cv_header_$ac_safe=yes" | |
8368 | else | |
8369 | echo "$ac_err" >&5 | |
8370 | echo "configure: failed program was:" >&5 | |
8371 | cat conftest.$ac_ext >&5 | |
8372 | rm -rf conftest* | |
8373 | eval "ac_cv_header_$ac_safe=no" | |
8374 | fi | |
8375 | rm -f conftest* | |
8376 | fi | |
8377 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8378 | echo "$ac_t""yes" 1>&6 | |
8379 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8380 | cat >> confdefs.h <<EOF | |
8381 | #define $ac_tr_hdr 1 | |
8382 | EOF | |
8383 | ||
8384 | else | |
8385 | echo "$ac_t""no" 1>&6 | |
8386 | fi | |
8387 | done | |
8388 | ||
8389 | for ac_hdr in fnmatch.h | |
8390 | do | |
8391 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8392 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
8393 | echo "configure:8394: checking for $ac_hdr" >&5 | |
8394 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
8395 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8396 | else | |
8397 | cat > conftest.$ac_ext <<EOF | |
8398 | #line 8399 "configure" | |
8399 | #include "confdefs.h" | |
8400 | #include <$ac_hdr> | |
8401 | EOF | |
8402 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8403 | { (eval echo configure:8404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
8404 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
8405 | if test -z "$ac_err"; then | |
8406 | rm -rf conftest* | |
8407 | eval "ac_cv_header_$ac_safe=yes" | |
8408 | else | |
8409 | echo "$ac_err" >&5 | |
8410 | echo "configure: failed program was:" >&5 | |
8411 | cat conftest.$ac_ext >&5 | |
8412 | rm -rf conftest* | |
8413 | eval "ac_cv_header_$ac_safe=no" | |
8414 | fi | |
8415 | rm -f conftest* | |
8416 | fi | |
8417 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8418 | echo "$ac_t""yes" 1>&6 | |
8419 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8420 | cat >> confdefs.h <<EOF | |
8421 | #define $ac_tr_hdr 1 | |
8422 | EOF | |
8423 | ||
8424 | else | |
8425 | echo "$ac_t""no" 1>&6 | |
8426 | fi | |
8427 | done | |
8428 | ||
8429 | ||
8430 | if test "$wxUSE_GUI" = "yes"; then | |
8431 | for ac_hdr in X11/XKBlib.h | |
8432 | do | |
8433 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8434 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
8435 | echo "configure:8436: checking for $ac_hdr" >&5 | |
8436 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
8437 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8438 | else | |
8439 | cat > conftest.$ac_ext <<EOF | |
8440 | #line 8441 "configure" | |
8441 | #include "confdefs.h" | |
8442 | #include <$ac_hdr> | |
8443 | EOF | |
8444 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8445 | { (eval echo configure:8446: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
8446 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
8447 | if test -z "$ac_err"; then | |
8448 | rm -rf conftest* | |
8449 | eval "ac_cv_header_$ac_safe=yes" | |
8450 | else | |
8451 | echo "$ac_err" >&5 | |
8452 | echo "configure: failed program was:" >&5 | |
8453 | cat conftest.$ac_ext >&5 | |
8454 | rm -rf conftest* | |
8455 | eval "ac_cv_header_$ac_safe=no" | |
8456 | fi | |
8457 | rm -f conftest* | |
8458 | fi | |
8459 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8460 | echo "$ac_t""yes" 1>&6 | |
8461 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8462 | cat >> confdefs.h <<EOF | |
8463 | #define $ac_tr_hdr 1 | |
8464 | EOF | |
8465 | ||
8466 | else | |
8467 | echo "$ac_t""no" 1>&6 | |
8468 | fi | |
8469 | done | |
8470 | ||
8471 | fi | |
8472 | ||
8473 | ||
8474 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
8475 | echo "configure:8476: checking for ANSI C header files" >&5 | |
8476 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then | |
8477 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8478 | else | |
8479 | cat > conftest.$ac_ext <<EOF | |
8480 | #line 8481 "configure" | |
8481 | #include "confdefs.h" | |
8482 | #include <stdlib.h> | |
8483 | #include <stdarg.h> | |
8484 | #include <string.h> | |
8485 | #include <float.h> | |
8486 | EOF | |
8487 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8488 | { (eval echo configure:8489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
8489 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
8490 | if test -z "$ac_err"; then | |
8491 | rm -rf conftest* | |
8492 | ac_cv_header_stdc=yes | |
8493 | else | |
8494 | echo "$ac_err" >&5 | |
8495 | echo "configure: failed program was:" >&5 | |
8496 | cat conftest.$ac_ext >&5 | |
8497 | rm -rf conftest* | |
8498 | ac_cv_header_stdc=no | |
8499 | fi | |
8500 | rm -f conftest* | |
8501 | ||
8502 | if test $ac_cv_header_stdc = yes; then | |
8503 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
8504 | cat > conftest.$ac_ext <<EOF | |
8505 | #line 8506 "configure" | |
8506 | #include "confdefs.h" | |
8507 | #include <string.h> | |
8508 | EOF | |
8509 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8510 | egrep "memchr" >/dev/null 2>&1; then | |
8511 | : | |
8512 | else | |
8513 | rm -rf conftest* | |
8514 | ac_cv_header_stdc=no | |
8515 | fi | |
8516 | rm -f conftest* | |
8517 | ||
8518 | fi | |
8519 | ||
8520 | if test $ac_cv_header_stdc = yes; then | |
8521 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
8522 | cat > conftest.$ac_ext <<EOF | |
8523 | #line 8524 "configure" | |
8524 | #include "confdefs.h" | |
8525 | #include <stdlib.h> | |
8526 | EOF | |
8527 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8528 | egrep "free" >/dev/null 2>&1; then | |
8529 | : | |
8530 | else | |
8531 | rm -rf conftest* | |
8532 | ac_cv_header_stdc=no | |
8533 | fi | |
8534 | rm -f conftest* | |
8535 | ||
8536 | fi | |
8537 | ||
8538 | if test $ac_cv_header_stdc = yes; then | |
8539 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
8540 | if test "$cross_compiling" = yes; then | |
8541 | : | |
8542 | else | |
8543 | cat > conftest.$ac_ext <<EOF | |
8544 | #line 8545 "configure" | |
8545 | #include "confdefs.h" | |
8546 | #include <ctype.h> | |
8547 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
8548 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
8549 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
8550 | int main () { int i; for (i = 0; i < 256; i++) | |
8551 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
8552 | exit (0); } | |
8553 | ||
8554 | EOF | |
8555 | if { (eval echo configure:8556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
8556 | then | |
8557 | : | |
8558 | else | |
8559 | echo "configure: failed program was:" >&5 | |
8560 | cat conftest.$ac_ext >&5 | |
8561 | rm -fr conftest* | |
8562 | ac_cv_header_stdc=no | |
8563 | fi | |
8564 | rm -fr conftest* | |
8565 | fi | |
8566 | ||
8567 | fi | |
8568 | fi | |
8569 | ||
8570 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
8571 | if test $ac_cv_header_stdc = yes; then | |
8572 | cat >> confdefs.h <<\EOF | |
8573 | #define STDC_HEADERS 1 | |
8574 | EOF | |
8575 | ||
8576 | fi | |
8577 | ||
8578 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 | |
8579 | echo "configure:8580: checking for mode_t" >&5 | |
8580 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then | |
8581 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8582 | else | |
8583 | cat > conftest.$ac_ext <<EOF | |
8584 | #line 8585 "configure" | |
8585 | #include "confdefs.h" | |
8586 | #include <sys/types.h> | |
8587 | #if STDC_HEADERS | |
8588 | #include <stdlib.h> | |
8589 | #include <stddef.h> | |
8590 | #endif | |
8591 | EOF | |
8592 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8593 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
8594 | rm -rf conftest* | |
8595 | ac_cv_type_mode_t=yes | |
8596 | else | |
8597 | rm -rf conftest* | |
8598 | ac_cv_type_mode_t=no | |
8599 | fi | |
8600 | rm -f conftest* | |
8601 | ||
8602 | fi | |
8603 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
8604 | if test $ac_cv_type_mode_t = no; then | |
8605 | cat >> confdefs.h <<\EOF | |
8606 | #define mode_t int | |
8607 | EOF | |
8608 | ||
8609 | fi | |
8610 | ||
8611 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
8612 | echo "configure:8613: checking for off_t" >&5 | |
8613 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then | |
8614 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8615 | else | |
8616 | cat > conftest.$ac_ext <<EOF | |
8617 | #line 8618 "configure" | |
8618 | #include "confdefs.h" | |
8619 | #include <sys/types.h> | |
8620 | #if STDC_HEADERS | |
8621 | #include <stdlib.h> | |
8622 | #include <stddef.h> | |
8623 | #endif | |
8624 | EOF | |
8625 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8626 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
8627 | rm -rf conftest* | |
8628 | ac_cv_type_off_t=yes | |
8629 | else | |
8630 | rm -rf conftest* | |
8631 | ac_cv_type_off_t=no | |
8632 | fi | |
8633 | rm -f conftest* | |
8634 | ||
8635 | fi | |
8636 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
8637 | if test $ac_cv_type_off_t = no; then | |
8638 | cat >> confdefs.h <<\EOF | |
8639 | #define off_t long | |
8640 | EOF | |
8641 | ||
8642 | fi | |
8643 | ||
8644 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 | |
8645 | echo "configure:8646: checking for pid_t" >&5 | |
8646 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then | |
8647 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8648 | else | |
8649 | cat > conftest.$ac_ext <<EOF | |
8650 | #line 8651 "configure" | |
8651 | #include "confdefs.h" | |
8652 | #include <sys/types.h> | |
8653 | #if STDC_HEADERS | |
8654 | #include <stdlib.h> | |
8655 | #include <stddef.h> | |
8656 | #endif | |
8657 | EOF | |
8658 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8659 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
8660 | rm -rf conftest* | |
8661 | ac_cv_type_pid_t=yes | |
8662 | else | |
8663 | rm -rf conftest* | |
8664 | ac_cv_type_pid_t=no | |
8665 | fi | |
8666 | rm -f conftest* | |
8667 | ||
8668 | fi | |
8669 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
8670 | if test $ac_cv_type_pid_t = no; then | |
8671 | cat >> confdefs.h <<\EOF | |
8672 | #define pid_t int | |
8673 | EOF | |
8674 | ||
8675 | fi | |
8676 | ||
8677 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
8678 | echo "configure:8679: checking for size_t" >&5 | |
8679 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then | |
8680 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8681 | else | |
8682 | cat > conftest.$ac_ext <<EOF | |
8683 | #line 8684 "configure" | |
8684 | #include "confdefs.h" | |
8685 | #include <sys/types.h> | |
8686 | #if STDC_HEADERS | |
8687 | #include <stdlib.h> | |
8688 | #include <stddef.h> | |
8689 | #endif | |
8690 | EOF | |
8691 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8692 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
8693 | rm -rf conftest* | |
8694 | ac_cv_type_size_t=yes | |
8695 | else | |
8696 | rm -rf conftest* | |
8697 | ac_cv_type_size_t=no | |
8698 | fi | |
8699 | rm -f conftest* | |
8700 | ||
8701 | fi | |
8702 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
8703 | if test $ac_cv_type_size_t = no; then | |
8704 | cat >> confdefs.h <<\EOF | |
8705 | #define size_t unsigned | |
8706 | EOF | |
8707 | ||
8708 | fi | |
8709 | ||
8710 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 | |
8711 | echo "configure:8712: checking for uid_t in sys/types.h" >&5 | |
8712 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then | |
8713 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8714 | else | |
8715 | cat > conftest.$ac_ext <<EOF | |
8716 | #line 8717 "configure" | |
8717 | #include "confdefs.h" | |
8718 | #include <sys/types.h> | |
8719 | EOF | |
8720 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8721 | egrep "uid_t" >/dev/null 2>&1; then | |
8722 | rm -rf conftest* | |
8723 | ac_cv_type_uid_t=yes | |
8724 | else | |
8725 | rm -rf conftest* | |
8726 | ac_cv_type_uid_t=no | |
8727 | fi | |
8728 | rm -f conftest* | |
8729 | ||
8730 | fi | |
8731 | ||
8732 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 | |
8733 | if test $ac_cv_type_uid_t = no; then | |
8734 | cat >> confdefs.h <<\EOF | |
8735 | #define uid_t int | |
8736 | EOF | |
8737 | ||
8738 | cat >> confdefs.h <<\EOF | |
8739 | #define gid_t int | |
8740 | EOF | |
8741 | ||
8742 | fi | |
8743 | ||
8744 | ||
8745 | ||
8746 | ||
8747 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
8748 | echo "configure:8749: checking for working const" >&5 | |
8749 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then | |
8750 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8751 | else | |
8752 | cat > conftest.$ac_ext <<EOF | |
8753 | #line 8754 "configure" | |
8754 | #include "confdefs.h" | |
8755 | ||
8756 | int main() { | |
8757 | ||
8758 | /* Ultrix mips cc rejects this. */ | |
8759 | typedef int charset[2]; const charset x; | |
8760 | /* SunOS 4.1.1 cc rejects this. */ | |
8761 | char const *const *ccp; | |
8762 | char **p; | |
8763 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
8764 | struct point {int x, y;}; | |
8765 | static struct point const zero = {0,0}; | |
8766 | /* AIX XL C 1.02.0.0 rejects this. | |
8767 | It does not let you subtract one const X* pointer from another in an arm | |
8768 | of an if-expression whose if-part is not a constant expression */ | |
8769 | const char *g = "string"; | |
8770 | ccp = &g + (g ? g-g : 0); | |
8771 | /* HPUX 7.0 cc rejects these. */ | |
8772 | ++ccp; | |
8773 | p = (char**) ccp; | |
8774 | ccp = (char const *const *) p; | |
8775 | { /* SCO 3.2v4 cc rejects this. */ | |
8776 | char *t; | |
8777 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
8778 | ||
8779 | *t++ = 0; | |
8780 | } | |
8781 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
8782 | int x[] = {25, 17}; | |
8783 | const int *foo = &x[0]; | |
8784 | ++foo; | |
8785 | } | |
8786 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
8787 | typedef const int *iptr; | |
8788 | iptr p = 0; | |
8789 | ++p; | |
8790 | } | |
8791 | { /* AIX XL C 1.02.0.0 rejects this saying | |
8792 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
8793 | struct s { int j; const int *ap[3]; }; | |
8794 | struct s *b; b->j = 5; | |
8795 | } | |
8796 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
8797 | const int foo = 10; | |
8798 | } | |
8799 | ||
8800 | ; return 0; } | |
8801 | EOF | |
8802 | if { (eval echo configure:8803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
8803 | rm -rf conftest* | |
8804 | ac_cv_c_const=yes | |
8805 | else | |
8806 | echo "configure: failed program was:" >&5 | |
8807 | cat conftest.$ac_ext >&5 | |
8808 | rm -rf conftest* | |
8809 | ac_cv_c_const=no | |
8810 | fi | |
8811 | rm -f conftest* | |
8812 | fi | |
8813 | ||
8814 | echo "$ac_t""$ac_cv_c_const" 1>&6 | |
8815 | if test $ac_cv_c_const = no; then | |
8816 | cat >> confdefs.h <<\EOF | |
8817 | #define const | |
8818 | EOF | |
8819 | ||
8820 | fi | |
8821 | ||
8822 | echo $ac_n "checking for inline""... $ac_c" 1>&6 | |
8823 | echo "configure:8824: checking for inline" >&5 | |
8824 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then | |
8825 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8826 | else | |
8827 | ac_cv_c_inline=no | |
8828 | for ac_kw in inline __inline__ __inline; do | |
8829 | cat > conftest.$ac_ext <<EOF | |
8830 | #line 8831 "configure" | |
8831 | #include "confdefs.h" | |
8832 | ||
8833 | int main() { | |
8834 | } $ac_kw foo() { | |
8835 | ; return 0; } | |
8836 | EOF | |
8837 | if { (eval echo configure:8838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
8838 | rm -rf conftest* | |
8839 | ac_cv_c_inline=$ac_kw; break | |
8840 | else | |
8841 | echo "configure: failed program was:" >&5 | |
8842 | cat conftest.$ac_ext >&5 | |
8843 | fi | |
8844 | rm -f conftest* | |
8845 | done | |
8846 | ||
8847 | fi | |
8848 | ||
8849 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
8850 | case "$ac_cv_c_inline" in | |
8851 | inline | yes) ;; | |
8852 | no) cat >> confdefs.h <<\EOF | |
8853 | #define inline | |
8854 | EOF | |
8855 | ;; | |
8856 | *) cat >> confdefs.h <<EOF | |
8857 | #define inline $ac_cv_c_inline | |
8858 | EOF | |
8859 | ;; | |
8860 | esac | |
8861 | ||
8862 | ||
8863 | echo $ac_n "checking size of char""... $ac_c" 1>&6 | |
8864 | echo "configure:8865: checking size of char" >&5 | |
8865 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then | |
8866 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8867 | else | |
8868 | if test "$cross_compiling" = yes; then | |
8869 | ac_cv_sizeof_char=1 | |
8870 | else | |
8871 | cat > conftest.$ac_ext <<EOF | |
8872 | #line 8873 "configure" | |
8873 | #include "confdefs.h" | |
8874 | #include <stdio.h> | |
8875 | main() | |
8876 | { | |
8877 | FILE *f=fopen("conftestval", "w"); | |
8878 | if (!f) exit(1); | |
8879 | fprintf(f, "%d\n", sizeof(char)); | |
8880 | exit(0); | |
8881 | } | |
8882 | EOF | |
8883 | if { (eval echo configure:8884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
8884 | then | |
8885 | ac_cv_sizeof_char=`cat conftestval` | |
8886 | else | |
8887 | echo "configure: failed program was:" >&5 | |
8888 | cat conftest.$ac_ext >&5 | |
8889 | rm -fr conftest* | |
8890 | ac_cv_sizeof_char=0 | |
8891 | fi | |
8892 | rm -fr conftest* | |
8893 | fi | |
8894 | ||
8895 | fi | |
8896 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 | |
8897 | cat >> confdefs.h <<EOF | |
8898 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
8899 | EOF | |
8900 | ||
8901 | ||
8902 | echo $ac_n "checking size of short""... $ac_c" 1>&6 | |
8903 | echo "configure:8904: checking size of short" >&5 | |
8904 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then | |
8905 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8906 | else | |
8907 | if test "$cross_compiling" = yes; then | |
8908 | ac_cv_sizeof_short=2 | |
8909 | else | |
8910 | cat > conftest.$ac_ext <<EOF | |
8911 | #line 8912 "configure" | |
8912 | #include "confdefs.h" | |
8913 | #include <stdio.h> | |
8914 | main() | |
8915 | { | |
8916 | FILE *f=fopen("conftestval", "w"); | |
8917 | if (!f) exit(1); | |
8918 | fprintf(f, "%d\n", sizeof(short)); | |
8919 | exit(0); | |
8920 | } | |
8921 | EOF | |
8922 | if { (eval echo configure:8923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
8923 | then | |
8924 | ac_cv_sizeof_short=`cat conftestval` | |
8925 | else | |
8926 | echo "configure: failed program was:" >&5 | |
8927 | cat conftest.$ac_ext >&5 | |
8928 | rm -fr conftest* | |
8929 | ac_cv_sizeof_short=0 | |
8930 | fi | |
8931 | rm -fr conftest* | |
8932 | fi | |
8933 | ||
8934 | fi | |
8935 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 | |
8936 | cat >> confdefs.h <<EOF | |
8937 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
8938 | EOF | |
8939 | ||
8940 | ||
8941 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 | |
8942 | echo "configure:8943: checking size of int *" >&5 | |
8943 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then | |
8944 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8945 | else | |
8946 | if test "$cross_compiling" = yes; then | |
8947 | ac_cv_sizeof_int_p=4 | |
8948 | else | |
8949 | cat > conftest.$ac_ext <<EOF | |
8950 | #line 8951 "configure" | |
8951 | #include "confdefs.h" | |
8952 | #include <stdio.h> | |
8953 | main() | |
8954 | { | |
8955 | FILE *f=fopen("conftestval", "w"); | |
8956 | if (!f) exit(1); | |
8957 | fprintf(f, "%d\n", sizeof(int *)); | |
8958 | exit(0); | |
8959 | } | |
8960 | EOF | |
8961 | if { (eval echo configure:8962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
8962 | then | |
8963 | ac_cv_sizeof_int_p=`cat conftestval` | |
8964 | else | |
8965 | echo "configure: failed program was:" >&5 | |
8966 | cat conftest.$ac_ext >&5 | |
8967 | rm -fr conftest* | |
8968 | ac_cv_sizeof_int_p=0 | |
8969 | fi | |
8970 | rm -fr conftest* | |
8971 | fi | |
8972 | ||
8973 | fi | |
8974 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 | |
8975 | cat >> confdefs.h <<EOF | |
8976 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
8977 | EOF | |
8978 | ||
8979 | ||
8980 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
8981 | echo "configure:8982: checking size of int" >&5 | |
8982 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then | |
8983 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8984 | else | |
8985 | if test "$cross_compiling" = yes; then | |
8986 | ac_cv_sizeof_int=4 | |
8987 | else | |
8988 | cat > conftest.$ac_ext <<EOF | |
8989 | #line 8990 "configure" | |
8990 | #include "confdefs.h" | |
8991 | #include <stdio.h> | |
8992 | main() | |
8993 | { | |
8994 | FILE *f=fopen("conftestval", "w"); | |
8995 | if (!f) exit(1); | |
8996 | fprintf(f, "%d\n", sizeof(int)); | |
8997 | exit(0); | |
8998 | } | |
8999 | EOF | |
9000 | if { (eval echo configure:9001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
9001 | then | |
9002 | ac_cv_sizeof_int=`cat conftestval` | |
9003 | else | |
9004 | echo "configure: failed program was:" >&5 | |
9005 | cat conftest.$ac_ext >&5 | |
9006 | rm -fr conftest* | |
9007 | ac_cv_sizeof_int=0 | |
9008 | fi | |
9009 | rm -fr conftest* | |
9010 | fi | |
9011 | ||
9012 | fi | |
9013 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
9014 | cat >> confdefs.h <<EOF | |
9015 | #define SIZEOF_INT $ac_cv_sizeof_int | |
9016 | EOF | |
9017 | ||
9018 | ||
9019 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
9020 | echo "configure:9021: checking size of long" >&5 | |
9021 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then | |
9022 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9023 | else | |
9024 | if test "$cross_compiling" = yes; then | |
9025 | ac_cv_sizeof_long=4 | |
9026 | else | |
9027 | cat > conftest.$ac_ext <<EOF | |
9028 | #line 9029 "configure" | |
9029 | #include "confdefs.h" | |
9030 | #include <stdio.h> | |
9031 | main() | |
9032 | { | |
9033 | FILE *f=fopen("conftestval", "w"); | |
9034 | if (!f) exit(1); | |
9035 | fprintf(f, "%d\n", sizeof(long)); | |
9036 | exit(0); | |
9037 | } | |
9038 | EOF | |
9039 | if { (eval echo configure:9040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
9040 | then | |
9041 | ac_cv_sizeof_long=`cat conftestval` | |
9042 | else | |
9043 | echo "configure: failed program was:" >&5 | |
9044 | cat conftest.$ac_ext >&5 | |
9045 | rm -fr conftest* | |
9046 | ac_cv_sizeof_long=0 | |
9047 | fi | |
9048 | rm -fr conftest* | |
9049 | fi | |
9050 | ||
9051 | fi | |
9052 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
9053 | cat >> confdefs.h <<EOF | |
9054 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
9055 | EOF | |
9056 | ||
9057 | ||
9058 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
9059 | echo "configure:9060: checking size of long long" >&5 | |
9060 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then | |
9061 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9062 | else | |
9063 | if test "$cross_compiling" = yes; then | |
9064 | ac_cv_sizeof_long_long=0 | |
9065 | else | |
9066 | cat > conftest.$ac_ext <<EOF | |
9067 | #line 9068 "configure" | |
9068 | #include "confdefs.h" | |
9069 | #include <stdio.h> | |
9070 | main() | |
9071 | { | |
9072 | FILE *f=fopen("conftestval", "w"); | |
9073 | if (!f) exit(1); | |
9074 | fprintf(f, "%d\n", sizeof(long long)); | |
9075 | exit(0); | |
9076 | } | |
9077 | EOF | |
9078 | if { (eval echo configure:9079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
9079 | then | |
9080 | ac_cv_sizeof_long_long=`cat conftestval` | |
9081 | else | |
9082 | echo "configure: failed program was:" >&5 | |
9083 | cat conftest.$ac_ext >&5 | |
9084 | rm -fr conftest* | |
9085 | ac_cv_sizeof_long_long=0 | |
9086 | fi | |
9087 | rm -fr conftest* | |
9088 | fi | |
9089 | ||
9090 | fi | |
9091 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
9092 | cat >> confdefs.h <<EOF | |
9093 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
9094 | EOF | |
9095 | ||
9096 | ||
9097 | ||
9098 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 | |
9099 | echo "configure:9100: checking whether byte ordering is bigendian" >&5 | |
9100 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then | |
9101 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9102 | else | |
9103 | ac_cv_c_bigendian=unknown | |
9104 | # See if sys/param.h defines the BYTE_ORDER macro. | |
9105 | cat > conftest.$ac_ext <<EOF | |
9106 | #line 9107 "configure" | |
9107 | #include "confdefs.h" | |
9108 | #include <sys/types.h> | |
9109 | #include <sys/param.h> | |
9110 | int main() { | |
9111 | ||
9112 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
9113 | bogus endian macros | |
9114 | #endif | |
9115 | ; return 0; } | |
9116 | EOF | |
9117 | if { (eval echo configure:9118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
9118 | rm -rf conftest* | |
9119 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
9120 | cat > conftest.$ac_ext <<EOF | |
9121 | #line 9122 "configure" | |
9122 | #include "confdefs.h" | |
9123 | #include <sys/types.h> | |
9124 | #include <sys/param.h> | |
9125 | int main() { | |
9126 | ||
9127 | #if BYTE_ORDER != BIG_ENDIAN | |
9128 | not big endian | |
9129 | #endif | |
9130 | ; return 0; } | |
9131 | EOF | |
9132 | if { (eval echo configure:9133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
9133 | rm -rf conftest* | |
9134 | ac_cv_c_bigendian=yes | |
9135 | else | |
9136 | echo "configure: failed program was:" >&5 | |
9137 | cat conftest.$ac_ext >&5 | |
9138 | rm -rf conftest* | |
9139 | ac_cv_c_bigendian=no | |
9140 | fi | |
9141 | rm -f conftest* | |
9142 | else | |
9143 | echo "configure: failed program was:" >&5 | |
9144 | cat conftest.$ac_ext >&5 | |
9145 | fi | |
9146 | rm -f conftest* | |
9147 | if test $ac_cv_c_bigendian = unknown; then | |
9148 | if test "$cross_compiling" = yes; then | |
9149 | ac_cv_c_bigendian=unknown | |
9150 | else | |
9151 | cat > conftest.$ac_ext <<EOF | |
9152 | #line 9153 "configure" | |
9153 | #include "confdefs.h" | |
9154 | main () { | |
9155 | /* Are we little or big endian? From Harbison&Steele. */ | |
9156 | union | |
9157 | { | |
9158 | long l; | |
9159 | char c[sizeof (long)]; | |
9160 | } u; | |
9161 | u.l = 1; | |
9162 | exit (u.c[sizeof (long) - 1] == 1); | |
9163 | } | |
9164 | EOF | |
9165 | if { (eval echo configure:9166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
9166 | then | |
9167 | ac_cv_c_bigendian=no | |
9168 | else | |
9169 | echo "configure: failed program was:" >&5 | |
9170 | cat conftest.$ac_ext >&5 | |
9171 | rm -fr conftest* | |
9172 | ac_cv_c_bigendian=yes | |
9173 | fi | |
9174 | rm -fr conftest* | |
9175 | fi | |
9176 | ||
9177 | fi | |
9178 | fi | |
9179 | ||
9180 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
9181 | if test $ac_cv_c_bigendian = unknown; then | |
9182 | 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 | |
9183 | fi | |
9184 | if test $ac_cv_c_bigendian = yes; then | |
9185 | cat >> confdefs.h <<\EOF | |
9186 | #define WORDS_BIGENDIAN 1 | |
9187 | EOF | |
9188 | ||
9189 | fi | |
9190 | ||
9191 | ||
9192 | ||
9193 | if test "$cross_compiling" = "yes"; then | |
9194 | cat >> confdefs.h <<\EOF | |
9195 | #define wxUSE_IOSTREAMH 1 | |
9196 | EOF | |
9197 | ||
9198 | else | |
9199 | ||
9200 | ac_ext=C | |
9201 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9202 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9203 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9204 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9205 | cross_compiling=$ac_cv_prog_cxx_cross | |
9206 | ||
9207 | ||
9208 | for ac_hdr in iostream | |
9209 | do | |
9210 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9211 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9212 | echo "configure:9213: checking for $ac_hdr" >&5 | |
9213 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9214 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9215 | else | |
9216 | cat > conftest.$ac_ext <<EOF | |
9217 | #line 9218 "configure" | |
9218 | #include "confdefs.h" | |
9219 | #include <$ac_hdr> | |
9220 | EOF | |
9221 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9222 | { (eval echo configure:9223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9223 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9224 | if test -z "$ac_err"; then | |
9225 | rm -rf conftest* | |
9226 | eval "ac_cv_header_$ac_safe=yes" | |
9227 | else | |
9228 | echo "$ac_err" >&5 | |
9229 | echo "configure: failed program was:" >&5 | |
9230 | cat conftest.$ac_ext >&5 | |
9231 | rm -rf conftest* | |
9232 | eval "ac_cv_header_$ac_safe=no" | |
9233 | fi | |
9234 | rm -f conftest* | |
9235 | fi | |
9236 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9237 | echo "$ac_t""yes" 1>&6 | |
9238 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9239 | cat >> confdefs.h <<EOF | |
9240 | #define $ac_tr_hdr 1 | |
9241 | EOF | |
9242 | ||
9243 | else | |
9244 | echo "$ac_t""no" 1>&6 | |
9245 | fi | |
9246 | done | |
9247 | ||
9248 | ||
9249 | if test "x$HAVE_IOSTREAM" = x ; then | |
9250 | cat >> confdefs.h <<\EOF | |
9251 | #define wxUSE_IOSTREAMH 1 | |
9252 | EOF | |
9253 | ||
9254 | else | |
9255 | : | |
9256 | fi | |
9257 | ||
9258 | ac_ext=c | |
9259 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9260 | ac_cpp='$CPP $CPPFLAGS' | |
9261 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9262 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9263 | cross_compiling=$ac_cv_prog_cc_cross | |
9264 | ||
9265 | fi | |
9266 | ||
9267 | ||
9268 | ||
9269 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 | |
9270 | echo "configure:9271: checking if C++ compiler supports bool" >&5 | |
9271 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then | |
9272 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9273 | else | |
9274 | ||
9275 | ||
9276 | ac_ext=C | |
9277 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9278 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9279 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9280 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9281 | cross_compiling=$ac_cv_prog_cxx_cross | |
9282 | ||
9283 | ||
9284 | cat > conftest.$ac_ext <<EOF | |
9285 | #line 9286 "configure" | |
9286 | #include "confdefs.h" | |
9287 | ||
9288 | ||
9289 | int main() { | |
9290 | ||
9291 | bool b = true; | |
9292 | ||
9293 | return 0; | |
9294 | ||
9295 | ; return 0; } | |
9296 | EOF | |
9297 | if { (eval echo configure:9298: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
9298 | rm -rf conftest* | |
9299 | ||
9300 | cat >> confdefs.h <<\EOF | |
9301 | #define HAVE_BOOL 1 | |
9302 | EOF | |
9303 | ||
9304 | wx_cv_cpp_bool=yes | |
9305 | ||
9306 | else | |
9307 | echo "configure: failed program was:" >&5 | |
9308 | cat conftest.$ac_ext >&5 | |
9309 | rm -rf conftest* | |
9310 | ||
9311 | wx_cv_cpp_bool=no | |
9312 | ||
9313 | ||
9314 | fi | |
9315 | rm -f conftest* | |
9316 | ||
9317 | ac_ext=c | |
9318 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9319 | ac_cpp='$CPP $CPPFLAGS' | |
9320 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9321 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9322 | cross_compiling=$ac_cv_prog_cc_cross | |
9323 | ||
9324 | ||
9325 | fi | |
9326 | ||
9327 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
9328 | ||
9329 | if test "$wx_cv_cpp_bool" = "yes"; then | |
9330 | cat >> confdefs.h <<\EOF | |
9331 | #define HAVE_BOOL 1 | |
9332 | EOF | |
9333 | ||
9334 | fi | |
9335 | ||
9336 | ||
9337 | ||
9338 | echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6 | |
9339 | echo "configure:9340: checking if you need GNU extensions" >&5 | |
9340 | if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then | |
9341 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9342 | else | |
9343 | ||
9344 | cat > conftest.$ac_ext <<EOF | |
9345 | #line 9346 "configure" | |
9346 | #include "confdefs.h" | |
9347 | #include <features.h> | |
9348 | int main() { | |
9349 | ||
9350 | ||
9351 | #ifndef __GNU_LIBRARY__ | |
9352 | Compile error wanted | |
9353 | #endif | |
9354 | ||
9355 | ||
9356 | ; return 0; } | |
9357 | EOF | |
9358 | if { (eval echo configure:9359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
9359 | rm -rf conftest* | |
9360 | wx_cv_gnu_extensions=yes | |
9361 | else | |
9362 | echo "configure: failed program was:" >&5 | |
9363 | cat conftest.$ac_ext >&5 | |
9364 | rm -rf conftest* | |
9365 | wx_cv_gnu_extensions=no | |
9366 | fi | |
9367 | rm -f conftest* | |
9368 | ||
9369 | fi | |
9370 | ||
9371 | ||
9372 | echo "$ac_t""$wx_cv_gnu_extensions" 1>&6 | |
9373 | if test "$wx_cv_gnu_extensions" = "yes"; then | |
9374 | cat >> confdefs.h <<EOF | |
9375 | #define _GNU_SOURCE 1 | |
9376 | EOF | |
9377 | ||
9378 | fi | |
9379 | ||
9380 | ||
9381 | ||
9382 | echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6 | |
9383 | echo "configure:9384: checking for wcslen in -lc" >&5 | |
9384 | ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'` | |
9385 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9386 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9387 | else | |
9388 | ac_save_LIBS="$LIBS" | |
9389 | LIBS="-lc $LIBS" | |
9390 | cat > conftest.$ac_ext <<EOF | |
9391 | #line 9392 "configure" | |
9392 | #include "confdefs.h" | |
9393 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9394 | /* We use char because int might match the return type of a gcc2 | |
9395 | builtin and then its argument prototype would still apply. */ | |
9396 | char wcslen(); | |
9397 | ||
9398 | int main() { | |
9399 | wcslen() | |
9400 | ; return 0; } | |
9401 | EOF | |
9402 | if { (eval echo configure:9403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9403 | rm -rf conftest* | |
9404 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9405 | else | |
9406 | echo "configure: failed program was:" >&5 | |
9407 | cat conftest.$ac_ext >&5 | |
9408 | rm -rf conftest* | |
9409 | eval "ac_cv_lib_$ac_lib_var=no" | |
9410 | fi | |
9411 | rm -f conftest* | |
9412 | LIBS="$ac_save_LIBS" | |
9413 | ||
9414 | fi | |
9415 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9416 | echo "$ac_t""yes" 1>&6 | |
9417 | ||
9418 | cat >> confdefs.h <<\EOF | |
9419 | #define HAVE_WCSLEN 1 | |
9420 | EOF | |
9421 | ||
9422 | WCHAR_LINK="" | |
9423 | ||
9424 | else | |
9425 | echo "$ac_t""no" 1>&6 | |
9426 | ||
9427 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 | |
9428 | echo "configure:9429: checking for wcslen in -lw" >&5 | |
9429 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` | |
9430 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9431 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9432 | else | |
9433 | ac_save_LIBS="$LIBS" | |
9434 | LIBS="-lw $LIBS" | |
9435 | cat > conftest.$ac_ext <<EOF | |
9436 | #line 9437 "configure" | |
9437 | #include "confdefs.h" | |
9438 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9439 | /* We use char because int might match the return type of a gcc2 | |
9440 | builtin and then its argument prototype would still apply. */ | |
9441 | char wcslen(); | |
9442 | ||
9443 | int main() { | |
9444 | wcslen() | |
9445 | ; return 0; } | |
9446 | EOF | |
9447 | if { (eval echo configure:9448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9448 | rm -rf conftest* | |
9449 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9450 | else | |
9451 | echo "configure: failed program was:" >&5 | |
9452 | cat conftest.$ac_ext >&5 | |
9453 | rm -rf conftest* | |
9454 | eval "ac_cv_lib_$ac_lib_var=no" | |
9455 | fi | |
9456 | rm -f conftest* | |
9457 | LIBS="$ac_save_LIBS" | |
9458 | ||
9459 | fi | |
9460 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9461 | echo "$ac_t""yes" 1>&6 | |
9462 | ||
9463 | cat >> confdefs.h <<\EOF | |
9464 | #define HAVE_WCSLEN 1 | |
9465 | EOF | |
9466 | ||
9467 | WCHAR_LINK="-lw" | |
9468 | ||
9469 | else | |
9470 | echo "$ac_t""no" 1>&6 | |
9471 | fi | |
9472 | ||
9473 | ||
9474 | fi | |
9475 | ||
9476 | ||
9477 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 | |
9478 | echo "configure:9479: checking for vprintf" >&5 | |
9479 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then | |
9480 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9481 | else | |
9482 | cat > conftest.$ac_ext <<EOF | |
9483 | #line 9484 "configure" | |
9484 | #include "confdefs.h" | |
9485 | /* System header to define __stub macros and hopefully few prototypes, | |
9486 | which can conflict with char vprintf(); below. */ | |
9487 | #include <assert.h> | |
9488 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9489 | /* We use char because int might match the return type of a gcc2 | |
9490 | builtin and then its argument prototype would still apply. */ | |
9491 | char vprintf(); | |
9492 | char (*f)(); | |
9493 | ||
9494 | int main() { | |
9495 | ||
9496 | /* The GNU C library defines this for functions which it implements | |
9497 | to always fail with ENOSYS. Some functions are actually named | |
9498 | something starting with __ and the normal name is an alias. */ | |
9499 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
9500 | choke me | |
9501 | #else | |
9502 | f = vprintf; | |
9503 | #endif | |
9504 | ||
9505 | ; return 0; } | |
9506 | EOF | |
9507 | if { (eval echo configure:9508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9508 | rm -rf conftest* | |
9509 | eval "ac_cv_func_vprintf=yes" | |
9510 | else | |
9511 | echo "configure: failed program was:" >&5 | |
9512 | cat conftest.$ac_ext >&5 | |
9513 | rm -rf conftest* | |
9514 | eval "ac_cv_func_vprintf=no" | |
9515 | fi | |
9516 | rm -f conftest* | |
9517 | fi | |
9518 | ||
9519 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
9520 | echo "$ac_t""yes" 1>&6 | |
9521 | cat >> confdefs.h <<\EOF | |
9522 | #define HAVE_VPRINTF 1 | |
9523 | EOF | |
9524 | ||
9525 | else | |
9526 | echo "$ac_t""no" 1>&6 | |
9527 | fi | |
9528 | ||
9529 | if test "$ac_cv_func_vprintf" != yes; then | |
9530 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
9531 | echo "configure:9532: checking for _doprnt" >&5 | |
9532 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then | |
9533 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9534 | else | |
9535 | cat > conftest.$ac_ext <<EOF | |
9536 | #line 9537 "configure" | |
9537 | #include "confdefs.h" | |
9538 | /* System header to define __stub macros and hopefully few prototypes, | |
9539 | which can conflict with char _doprnt(); below. */ | |
9540 | #include <assert.h> | |
9541 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9542 | /* We use char because int might match the return type of a gcc2 | |
9543 | builtin and then its argument prototype would still apply. */ | |
9544 | char _doprnt(); | |
9545 | char (*f)(); | |
9546 | ||
9547 | int main() { | |
9548 | ||
9549 | /* The GNU C library defines this for functions which it implements | |
9550 | to always fail with ENOSYS. Some functions are actually named | |
9551 | something starting with __ and the normal name is an alias. */ | |
9552 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
9553 | choke me | |
9554 | #else | |
9555 | f = _doprnt; | |
9556 | #endif | |
9557 | ||
9558 | ; return 0; } | |
9559 | EOF | |
9560 | if { (eval echo configure:9561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9561 | rm -rf conftest* | |
9562 | eval "ac_cv_func__doprnt=yes" | |
9563 | else | |
9564 | echo "configure: failed program was:" >&5 | |
9565 | cat conftest.$ac_ext >&5 | |
9566 | rm -rf conftest* | |
9567 | eval "ac_cv_func__doprnt=no" | |
9568 | fi | |
9569 | rm -f conftest* | |
9570 | fi | |
9571 | ||
9572 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
9573 | echo "$ac_t""yes" 1>&6 | |
9574 | cat >> confdefs.h <<\EOF | |
9575 | #define HAVE_DOPRNT 1 | |
9576 | EOF | |
9577 | ||
9578 | else | |
9579 | echo "$ac_t""no" 1>&6 | |
9580 | fi | |
9581 | ||
9582 | fi | |
9583 | ||
9584 | ||
9585 | for ac_func in vsnprintf | |
9586 | do | |
9587 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
9588 | echo "configure:9589: checking for $ac_func" >&5 | |
9589 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
9590 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9591 | else | |
9592 | cat > conftest.$ac_ext <<EOF | |
9593 | #line 9594 "configure" | |
9594 | #include "confdefs.h" | |
9595 | /* System header to define __stub macros and hopefully few prototypes, | |
9596 | which can conflict with char $ac_func(); below. */ | |
9597 | #include <assert.h> | |
9598 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9599 | /* We use char because int might match the return type of a gcc2 | |
9600 | builtin and then its argument prototype would still apply. */ | |
9601 | char $ac_func(); | |
9602 | char (*f)(); | |
9603 | ||
9604 | int main() { | |
9605 | ||
9606 | /* The GNU C library defines this for functions which it implements | |
9607 | to always fail with ENOSYS. Some functions are actually named | |
9608 | something starting with __ and the normal name is an alias. */ | |
9609 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9610 | choke me | |
9611 | #else | |
9612 | f = $ac_func; | |
9613 | #endif | |
9614 | ||
9615 | ; return 0; } | |
9616 | EOF | |
9617 | if { (eval echo configure:9618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9618 | rm -rf conftest* | |
9619 | eval "ac_cv_func_$ac_func=yes" | |
9620 | else | |
9621 | echo "configure: failed program was:" >&5 | |
9622 | cat conftest.$ac_ext >&5 | |
9623 | rm -rf conftest* | |
9624 | eval "ac_cv_func_$ac_func=no" | |
9625 | fi | |
9626 | rm -f conftest* | |
9627 | fi | |
9628 | ||
9629 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9630 | echo "$ac_t""yes" 1>&6 | |
9631 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9632 | cat >> confdefs.h <<EOF | |
9633 | #define $ac_tr_func 1 | |
9634 | EOF | |
9635 | cat >> confdefs.h <<\EOF | |
9636 | #define HAVE_VSNPRINTF 1 | |
9637 | EOF | |
9638 | ||
9639 | else | |
9640 | echo "$ac_t""no" 1>&6 | |
9641 | echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2 | |
9642 | ||
9643 | fi | |
9644 | done | |
9645 | ||
9646 | ||
9647 | ||
9648 | ac_ext=C | |
9649 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9650 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9651 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9652 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9653 | cross_compiling=$ac_cv_prog_cxx_cross | |
9654 | ||
9655 | ||
9656 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 | |
9657 | echo "configure:9658: checking for vsscanf" >&5 | |
9658 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then | |
9659 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9660 | else | |
9661 | ||
9662 | if test "$cross_compiling" = yes; then | |
9663 | wx_cv_func_vsscanf=no | |
9664 | ||
9665 | else | |
9666 | cat > conftest.$ac_ext <<EOF | |
9667 | #line 9668 "configure" | |
9668 | #include "confdefs.h" | |
9669 | #ifdef __cplusplus | |
9670 | extern "C" void exit(int); | |
9671 | #endif | |
9672 | ||
9673 | #include <stdio.h> | |
9674 | #include <stdarg.h> | |
9675 | ||
9676 | int try_vsscanf(const char *format, ...) | |
9677 | { | |
9678 | va_list ap; | |
9679 | va_start(ap, format); | |
9680 | ||
9681 | vsscanf("17", format, ap); | |
9682 | ||
9683 | va_end(ap); | |
9684 | } | |
9685 | ||
9686 | int main() | |
9687 | { | |
9688 | int i; | |
9689 | try_vsscanf("%d", &i); | |
9690 | return i == 17 ? 0 : 1; | |
9691 | } | |
9692 | ||
9693 | EOF | |
9694 | if { (eval echo configure:9695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
9695 | then | |
9696 | ||
9697 | cat >> confdefs.h <<\EOF | |
9698 | #define HAVE_VSSCANF 1 | |
9699 | EOF | |
9700 | ||
9701 | wx_cv_func_vsscanf=yes | |
9702 | ||
9703 | else | |
9704 | echo "configure: failed program was:" >&5 | |
9705 | cat conftest.$ac_ext >&5 | |
9706 | rm -fr conftest* | |
9707 | wx_cv_func_vsscanf=no | |
9708 | fi | |
9709 | rm -fr conftest* | |
9710 | fi | |
9711 | ||
9712 | ||
9713 | fi | |
9714 | ||
9715 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 | |
9716 | ||
9717 | ac_ext=c | |
9718 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9719 | ac_cpp='$CPP $CPPFLAGS' | |
9720 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9721 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9722 | cross_compiling=$ac_cv_prog_cc_cross | |
9723 | ||
9724 | ||
9725 | if test "$USE_UNIX" = 1; then | |
9726 | ||
9727 | for ac_func in vfork | |
9728 | do | |
9729 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
9730 | echo "configure:9731: checking for $ac_func" >&5 | |
9731 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
9732 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9733 | else | |
9734 | cat > conftest.$ac_ext <<EOF | |
9735 | #line 9736 "configure" | |
9736 | #include "confdefs.h" | |
9737 | /* System header to define __stub macros and hopefully few prototypes, | |
9738 | which can conflict with char $ac_func(); below. */ | |
9739 | #include <assert.h> | |
9740 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9741 | /* We use char because int might match the return type of a gcc2 | |
9742 | builtin and then its argument prototype would still apply. */ | |
9743 | char $ac_func(); | |
9744 | char (*f)(); | |
9745 | ||
9746 | int main() { | |
9747 | ||
9748 | /* The GNU C library defines this for functions which it implements | |
9749 | to always fail with ENOSYS. Some functions are actually named | |
9750 | something starting with __ and the normal name is an alias. */ | |
9751 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9752 | choke me | |
9753 | #else | |
9754 | f = $ac_func; | |
9755 | #endif | |
9756 | ||
9757 | ; return 0; } | |
9758 | EOF | |
9759 | if { (eval echo configure:9760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9760 | rm -rf conftest* | |
9761 | eval "ac_cv_func_$ac_func=yes" | |
9762 | else | |
9763 | echo "configure: failed program was:" >&5 | |
9764 | cat conftest.$ac_ext >&5 | |
9765 | rm -rf conftest* | |
9766 | eval "ac_cv_func_$ac_func=no" | |
9767 | fi | |
9768 | rm -f conftest* | |
9769 | fi | |
9770 | ||
9771 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9772 | echo "$ac_t""yes" 1>&6 | |
9773 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9774 | cat >> confdefs.h <<EOF | |
9775 | #define $ac_tr_func 1 | |
9776 | EOF | |
9777 | ||
9778 | else | |
9779 | echo "$ac_t""no" 1>&6 | |
9780 | fi | |
9781 | done | |
9782 | ||
9783 | ||
9784 | for ac_func in timegm | |
9785 | do | |
9786 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
9787 | echo "configure:9788: checking for $ac_func" >&5 | |
9788 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
9789 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9790 | else | |
9791 | cat > conftest.$ac_ext <<EOF | |
9792 | #line 9793 "configure" | |
9793 | #include "confdefs.h" | |
9794 | /* System header to define __stub macros and hopefully few prototypes, | |
9795 | which can conflict with char $ac_func(); below. */ | |
9796 | #include <assert.h> | |
9797 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9798 | /* We use char because int might match the return type of a gcc2 | |
9799 | builtin and then its argument prototype would still apply. */ | |
9800 | char $ac_func(); | |
9801 | char (*f)(); | |
9802 | ||
9803 | int main() { | |
9804 | ||
9805 | /* The GNU C library defines this for functions which it implements | |
9806 | to always fail with ENOSYS. Some functions are actually named | |
9807 | something starting with __ and the normal name is an alias. */ | |
9808 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9809 | choke me | |
9810 | #else | |
9811 | f = $ac_func; | |
9812 | #endif | |
9813 | ||
9814 | ; return 0; } | |
9815 | EOF | |
9816 | if { (eval echo configure:9817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9817 | rm -rf conftest* | |
9818 | eval "ac_cv_func_$ac_func=yes" | |
9819 | else | |
9820 | echo "configure: failed program was:" >&5 | |
9821 | cat conftest.$ac_ext >&5 | |
9822 | rm -rf conftest* | |
9823 | eval "ac_cv_func_$ac_func=no" | |
9824 | fi | |
9825 | rm -f conftest* | |
9826 | fi | |
9827 | ||
9828 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9829 | echo "$ac_t""yes" 1>&6 | |
9830 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9831 | cat >> confdefs.h <<EOF | |
9832 | #define $ac_tr_func 1 | |
9833 | EOF | |
9834 | ||
9835 | else | |
9836 | echo "$ac_t""no" 1>&6 | |
9837 | fi | |
9838 | done | |
9839 | ||
9840 | ||
9841 | POSIX4_LINK= | |
9842 | for ac_func in nanosleep | |
9843 | do | |
9844 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
9845 | echo "configure:9846: checking for $ac_func" >&5 | |
9846 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
9847 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9848 | else | |
9849 | cat > conftest.$ac_ext <<EOF | |
9850 | #line 9851 "configure" | |
9851 | #include "confdefs.h" | |
9852 | /* System header to define __stub macros and hopefully few prototypes, | |
9853 | which can conflict with char $ac_func(); below. */ | |
9854 | #include <assert.h> | |
9855 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9856 | /* We use char because int might match the return type of a gcc2 | |
9857 | builtin and then its argument prototype would still apply. */ | |
9858 | char $ac_func(); | |
9859 | char (*f)(); | |
9860 | ||
9861 | int main() { | |
9862 | ||
9863 | /* The GNU C library defines this for functions which it implements | |
9864 | to always fail with ENOSYS. Some functions are actually named | |
9865 | something starting with __ and the normal name is an alias. */ | |
9866 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9867 | choke me | |
9868 | #else | |
9869 | f = $ac_func; | |
9870 | #endif | |
9871 | ||
9872 | ; return 0; } | |
9873 | EOF | |
9874 | if { (eval echo configure:9875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9875 | rm -rf conftest* | |
9876 | eval "ac_cv_func_$ac_func=yes" | |
9877 | else | |
9878 | echo "configure: failed program was:" >&5 | |
9879 | cat conftest.$ac_ext >&5 | |
9880 | rm -rf conftest* | |
9881 | eval "ac_cv_func_$ac_func=no" | |
9882 | fi | |
9883 | rm -f conftest* | |
9884 | fi | |
9885 | ||
9886 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9887 | echo "$ac_t""yes" 1>&6 | |
9888 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9889 | cat >> confdefs.h <<EOF | |
9890 | #define $ac_tr_func 1 | |
9891 | EOF | |
9892 | cat >> confdefs.h <<\EOF | |
9893 | #define HAVE_NANOSLEEP 1 | |
9894 | EOF | |
9895 | ||
9896 | else | |
9897 | echo "$ac_t""no" 1>&6 | |
9898 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
9899 | echo "configure:9900: checking for nanosleep in -lposix4" >&5 | |
9900 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` | |
9901 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9902 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9903 | else | |
9904 | ac_save_LIBS="$LIBS" | |
9905 | LIBS="-lposix4 $LIBS" | |
9906 | cat > conftest.$ac_ext <<EOF | |
9907 | #line 9908 "configure" | |
9908 | #include "confdefs.h" | |
9909 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9910 | /* We use char because int might match the return type of a gcc2 | |
9911 | builtin and then its argument prototype would still apply. */ | |
9912 | char nanosleep(); | |
9913 | ||
9914 | int main() { | |
9915 | nanosleep() | |
9916 | ; return 0; } | |
9917 | EOF | |
9918 | if { (eval echo configure:9919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9919 | rm -rf conftest* | |
9920 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9921 | else | |
9922 | echo "configure: failed program was:" >&5 | |
9923 | cat conftest.$ac_ext >&5 | |
9924 | rm -rf conftest* | |
9925 | eval "ac_cv_lib_$ac_lib_var=no" | |
9926 | fi | |
9927 | rm -f conftest* | |
9928 | LIBS="$ac_save_LIBS" | |
9929 | ||
9930 | fi | |
9931 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9932 | echo "$ac_t""yes" 1>&6 | |
9933 | ||
9934 | cat >> confdefs.h <<\EOF | |
9935 | #define HAVE_NANOSLEEP 1 | |
9936 | EOF | |
9937 | ||
9938 | POSIX4_LINK="-lposix4" | |
9939 | ||
9940 | else | |
9941 | echo "$ac_t""no" 1>&6 | |
9942 | ||
9943 | for ac_func in usleep | |
9944 | do | |
9945 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
9946 | echo "configure:9947: checking for $ac_func" >&5 | |
9947 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
9948 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9949 | else | |
9950 | cat > conftest.$ac_ext <<EOF | |
9951 | #line 9952 "configure" | |
9952 | #include "confdefs.h" | |
9953 | /* System header to define __stub macros and hopefully few prototypes, | |
9954 | which can conflict with char $ac_func(); below. */ | |
9955 | #include <assert.h> | |
9956 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9957 | /* We use char because int might match the return type of a gcc2 | |
9958 | builtin and then its argument prototype would still apply. */ | |
9959 | char $ac_func(); | |
9960 | char (*f)(); | |
9961 | ||
9962 | int main() { | |
9963 | ||
9964 | /* The GNU C library defines this for functions which it implements | |
9965 | to always fail with ENOSYS. Some functions are actually named | |
9966 | something starting with __ and the normal name is an alias. */ | |
9967 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9968 | choke me | |
9969 | #else | |
9970 | f = $ac_func; | |
9971 | #endif | |
9972 | ||
9973 | ; return 0; } | |
9974 | EOF | |
9975 | if { (eval echo configure:9976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9976 | rm -rf conftest* | |
9977 | eval "ac_cv_func_$ac_func=yes" | |
9978 | else | |
9979 | echo "configure: failed program was:" >&5 | |
9980 | cat conftest.$ac_ext >&5 | |
9981 | rm -rf conftest* | |
9982 | eval "ac_cv_func_$ac_func=no" | |
9983 | fi | |
9984 | rm -f conftest* | |
9985 | fi | |
9986 | ||
9987 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9988 | echo "$ac_t""yes" 1>&6 | |
9989 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9990 | cat >> confdefs.h <<EOF | |
9991 | #define $ac_tr_func 1 | |
9992 | EOF | |
9993 | cat >> confdefs.h <<\EOF | |
9994 | #define HAVE_USLEEP 1 | |
9995 | EOF | |
9996 | ||
9997 | else | |
9998 | echo "$ac_t""no" 1>&6 | |
9999 | echo "configure: warning: wxSleep() function will not work" 1>&2 | |
10000 | fi | |
10001 | done | |
10002 | ||
10003 | ||
10004 | fi | |
10005 | ||
10006 | ||
10007 | fi | |
10008 | done | |
10009 | ||
10010 | ||
10011 | for ac_func in uname gethostname | |
10012 | do | |
10013 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
10014 | echo "configure:10015: checking for $ac_func" >&5 | |
10015 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
10016 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10017 | else | |
10018 | cat > conftest.$ac_ext <<EOF | |
10019 | #line 10020 "configure" | |
10020 | #include "confdefs.h" | |
10021 | /* System header to define __stub macros and hopefully few prototypes, | |
10022 | which can conflict with char $ac_func(); below. */ | |
10023 | #include <assert.h> | |
10024 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10025 | /* We use char because int might match the return type of a gcc2 | |
10026 | builtin and then its argument prototype would still apply. */ | |
10027 | char $ac_func(); | |
10028 | char (*f)(); | |
10029 | ||
10030 | int main() { | |
10031 | ||
10032 | /* The GNU C library defines this for functions which it implements | |
10033 | to always fail with ENOSYS. Some functions are actually named | |
10034 | something starting with __ and the normal name is an alias. */ | |
10035 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10036 | choke me | |
10037 | #else | |
10038 | f = $ac_func; | |
10039 | #endif | |
10040 | ||
10041 | ; return 0; } | |
10042 | EOF | |
10043 | if { (eval echo configure:10044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10044 | rm -rf conftest* | |
10045 | eval "ac_cv_func_$ac_func=yes" | |
10046 | else | |
10047 | echo "configure: failed program was:" >&5 | |
10048 | cat conftest.$ac_ext >&5 | |
10049 | rm -rf conftest* | |
10050 | eval "ac_cv_func_$ac_func=no" | |
10051 | fi | |
10052 | rm -f conftest* | |
10053 | fi | |
10054 | ||
10055 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10056 | echo "$ac_t""yes" 1>&6 | |
10057 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10058 | cat >> confdefs.h <<EOF | |
10059 | #define $ac_tr_func 1 | |
10060 | EOF | |
10061 | break | |
10062 | else | |
10063 | echo "$ac_t""no" 1>&6 | |
10064 | fi | |
10065 | done | |
10066 | ||
10067 | ||
10068 | for ac_func in strtok_r | |
10069 | do | |
10070 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
10071 | echo "configure:10072: checking for $ac_func" >&5 | |
10072 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
10073 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10074 | else | |
10075 | cat > conftest.$ac_ext <<EOF | |
10076 | #line 10077 "configure" | |
10077 | #include "confdefs.h" | |
10078 | /* System header to define __stub macros and hopefully few prototypes, | |
10079 | which can conflict with char $ac_func(); below. */ | |
10080 | #include <assert.h> | |
10081 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10082 | /* We use char because int might match the return type of a gcc2 | |
10083 | builtin and then its argument prototype would still apply. */ | |
10084 | char $ac_func(); | |
10085 | char (*f)(); | |
10086 | ||
10087 | int main() { | |
10088 | ||
10089 | /* The GNU C library defines this for functions which it implements | |
10090 | to always fail with ENOSYS. Some functions are actually named | |
10091 | something starting with __ and the normal name is an alias. */ | |
10092 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10093 | choke me | |
10094 | #else | |
10095 | f = $ac_func; | |
10096 | #endif | |
10097 | ||
10098 | ; return 0; } | |
10099 | EOF | |
10100 | if { (eval echo configure:10101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10101 | rm -rf conftest* | |
10102 | eval "ac_cv_func_$ac_func=yes" | |
10103 | else | |
10104 | echo "configure: failed program was:" >&5 | |
10105 | cat conftest.$ac_ext >&5 | |
10106 | rm -rf conftest* | |
10107 | eval "ac_cv_func_$ac_func=no" | |
10108 | fi | |
10109 | rm -f conftest* | |
10110 | fi | |
10111 | ||
10112 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10113 | echo "$ac_t""yes" 1>&6 | |
10114 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10115 | cat >> confdefs.h <<EOF | |
10116 | #define $ac_tr_func 1 | |
10117 | EOF | |
10118 | ||
10119 | else | |
10120 | echo "$ac_t""no" 1>&6 | |
10121 | fi | |
10122 | done | |
10123 | ||
10124 | ||
10125 | INET_LINK= | |
10126 | for ac_func in inet_addr | |
10127 | do | |
10128 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
10129 | echo "configure:10130: checking for $ac_func" >&5 | |
10130 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
10131 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10132 | else | |
10133 | cat > conftest.$ac_ext <<EOF | |
10134 | #line 10135 "configure" | |
10135 | #include "confdefs.h" | |
10136 | /* System header to define __stub macros and hopefully few prototypes, | |
10137 | which can conflict with char $ac_func(); below. */ | |
10138 | #include <assert.h> | |
10139 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10140 | /* We use char because int might match the return type of a gcc2 | |
10141 | builtin and then its argument prototype would still apply. */ | |
10142 | char $ac_func(); | |
10143 | char (*f)(); | |
10144 | ||
10145 | int main() { | |
10146 | ||
10147 | /* The GNU C library defines this for functions which it implements | |
10148 | to always fail with ENOSYS. Some functions are actually named | |
10149 | something starting with __ and the normal name is an alias. */ | |
10150 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10151 | choke me | |
10152 | #else | |
10153 | f = $ac_func; | |
10154 | #endif | |
10155 | ||
10156 | ; return 0; } | |
10157 | EOF | |
10158 | if { (eval echo configure:10159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10159 | rm -rf conftest* | |
10160 | eval "ac_cv_func_$ac_func=yes" | |
10161 | else | |
10162 | echo "configure: failed program was:" >&5 | |
10163 | cat conftest.$ac_ext >&5 | |
10164 | rm -rf conftest* | |
10165 | eval "ac_cv_func_$ac_func=no" | |
10166 | fi | |
10167 | rm -f conftest* | |
10168 | fi | |
10169 | ||
10170 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10171 | echo "$ac_t""yes" 1>&6 | |
10172 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10173 | cat >> confdefs.h <<EOF | |
10174 | #define $ac_tr_func 1 | |
10175 | EOF | |
10176 | cat >> confdefs.h <<\EOF | |
10177 | #define HAVE_INET_ADDR 1 | |
10178 | EOF | |
10179 | ||
10180 | else | |
10181 | echo "$ac_t""no" 1>&6 | |
10182 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 | |
10183 | echo "configure:10184: checking for inet_addr in -lnsl" >&5 | |
10184 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` | |
10185 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10186 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10187 | else | |
10188 | ac_save_LIBS="$LIBS" | |
10189 | LIBS="-lnsl $LIBS" | |
10190 | cat > conftest.$ac_ext <<EOF | |
10191 | #line 10192 "configure" | |
10192 | #include "confdefs.h" | |
10193 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10194 | /* We use char because int might match the return type of a gcc2 | |
10195 | builtin and then its argument prototype would still apply. */ | |
10196 | char inet_addr(); | |
10197 | ||
10198 | int main() { | |
10199 | inet_addr() | |
10200 | ; return 0; } | |
10201 | EOF | |
10202 | if { (eval echo configure:10203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10203 | rm -rf conftest* | |
10204 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10205 | else | |
10206 | echo "configure: failed program was:" >&5 | |
10207 | cat conftest.$ac_ext >&5 | |
10208 | rm -rf conftest* | |
10209 | eval "ac_cv_lib_$ac_lib_var=no" | |
10210 | fi | |
10211 | rm -f conftest* | |
10212 | LIBS="$ac_save_LIBS" | |
10213 | ||
10214 | fi | |
10215 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10216 | echo "$ac_t""yes" 1>&6 | |
10217 | INET_LINK="nsl" | |
10218 | else | |
10219 | echo "$ac_t""no" 1>&6 | |
10220 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 | |
10221 | echo "configure:10222: checking for inet_addr in -lresolv" >&5 | |
10222 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` | |
10223 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10224 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10225 | else | |
10226 | ac_save_LIBS="$LIBS" | |
10227 | LIBS="-lresolv $LIBS" | |
10228 | cat > conftest.$ac_ext <<EOF | |
10229 | #line 10230 "configure" | |
10230 | #include "confdefs.h" | |
10231 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10232 | /* We use char because int might match the return type of a gcc2 | |
10233 | builtin and then its argument prototype would still apply. */ | |
10234 | char inet_addr(); | |
10235 | ||
10236 | int main() { | |
10237 | inet_addr() | |
10238 | ; return 0; } | |
10239 | EOF | |
10240 | if { (eval echo configure:10241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10241 | rm -rf conftest* | |
10242 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10243 | else | |
10244 | echo "configure: failed program was:" >&5 | |
10245 | cat conftest.$ac_ext >&5 | |
10246 | rm -rf conftest* | |
10247 | eval "ac_cv_lib_$ac_lib_var=no" | |
10248 | fi | |
10249 | rm -f conftest* | |
10250 | LIBS="$ac_save_LIBS" | |
10251 | ||
10252 | fi | |
10253 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10254 | echo "$ac_t""yes" 1>&6 | |
10255 | INET_LINK="resolv" | |
10256 | ||
10257 | else | |
10258 | echo "$ac_t""no" 1>&6 | |
10259 | fi | |
10260 | ||
10261 | ||
10262 | fi | |
10263 | ||
10264 | ||
10265 | ||
10266 | fi | |
10267 | done | |
10268 | ||
10269 | ||
10270 | for ac_func in inet_aton | |
10271 | do | |
10272 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
10273 | echo "configure:10274: checking for $ac_func" >&5 | |
10274 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
10275 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10276 | else | |
10277 | cat > conftest.$ac_ext <<EOF | |
10278 | #line 10279 "configure" | |
10279 | #include "confdefs.h" | |
10280 | /* System header to define __stub macros and hopefully few prototypes, | |
10281 | which can conflict with char $ac_func(); below. */ | |
10282 | #include <assert.h> | |
10283 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10284 | /* We use char because int might match the return type of a gcc2 | |
10285 | builtin and then its argument prototype would still apply. */ | |
10286 | char $ac_func(); | |
10287 | char (*f)(); | |
10288 | ||
10289 | int main() { | |
10290 | ||
10291 | /* The GNU C library defines this for functions which it implements | |
10292 | to always fail with ENOSYS. Some functions are actually named | |
10293 | something starting with __ and the normal name is an alias. */ | |
10294 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10295 | choke me | |
10296 | #else | |
10297 | f = $ac_func; | |
10298 | #endif | |
10299 | ||
10300 | ; return 0; } | |
10301 | EOF | |
10302 | if { (eval echo configure:10303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10303 | rm -rf conftest* | |
10304 | eval "ac_cv_func_$ac_func=yes" | |
10305 | else | |
10306 | echo "configure: failed program was:" >&5 | |
10307 | cat conftest.$ac_ext >&5 | |
10308 | rm -rf conftest* | |
10309 | eval "ac_cv_func_$ac_func=no" | |
10310 | fi | |
10311 | rm -f conftest* | |
10312 | fi | |
10313 | ||
10314 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10315 | echo "$ac_t""yes" 1>&6 | |
10316 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10317 | cat >> confdefs.h <<EOF | |
10318 | #define $ac_tr_func 1 | |
10319 | EOF | |
10320 | cat >> confdefs.h <<\EOF | |
10321 | #define HAVE_INET_ATON 1 | |
10322 | EOF | |
10323 | ||
10324 | else | |
10325 | echo "$ac_t""no" 1>&6 | |
10326 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 | |
10327 | echo "configure:10328: checking for inet_aton in -l$INET_LINK" >&5 | |
10328 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` | |
10329 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10330 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10331 | else | |
10332 | ac_save_LIBS="$LIBS" | |
10333 | LIBS="-l$INET_LINK $LIBS" | |
10334 | cat > conftest.$ac_ext <<EOF | |
10335 | #line 10336 "configure" | |
10336 | #include "confdefs.h" | |
10337 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10338 | /* We use char because int might match the return type of a gcc2 | |
10339 | builtin and then its argument prototype would still apply. */ | |
10340 | char inet_aton(); | |
10341 | ||
10342 | int main() { | |
10343 | inet_aton() | |
10344 | ; return 0; } | |
10345 | EOF | |
10346 | if { (eval echo configure:10347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10347 | rm -rf conftest* | |
10348 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10349 | else | |
10350 | echo "configure: failed program was:" >&5 | |
10351 | cat conftest.$ac_ext >&5 | |
10352 | rm -rf conftest* | |
10353 | eval "ac_cv_lib_$ac_lib_var=no" | |
10354 | fi | |
10355 | rm -f conftest* | |
10356 | LIBS="$ac_save_LIBS" | |
10357 | ||
10358 | fi | |
10359 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10360 | echo "$ac_t""yes" 1>&6 | |
10361 | cat >> confdefs.h <<\EOF | |
10362 | #define HAVE_INET_ATON 1 | |
10363 | EOF | |
10364 | ||
10365 | else | |
10366 | echo "$ac_t""no" 1>&6 | |
10367 | fi | |
10368 | ||
10369 | ||
10370 | fi | |
10371 | done | |
10372 | ||
10373 | ||
10374 | if test "x$INET_LINK" != "x"; then | |
10375 | cat >> confdefs.h <<\EOF | |
10376 | #define HAVE_INET_ADDR 1 | |
10377 | EOF | |
10378 | ||
10379 | INET_LINK="-l$INET_LINK" | |
10380 | fi | |
10381 | ||
10382 | fi | |
10383 | ||
10384 | ||
10385 | cat > confcache <<\EOF | |
10386 | # This file is a shell script that caches the results of configure | |
10387 | # tests run on this system so they can be shared between configure | |
10388 | # scripts and configure runs. It is not useful on other systems. | |
10389 | # If it contains results you don't want to keep, you may remove or edit it. | |
10390 | # | |
10391 | # By default, configure uses ./config.cache as the cache file, | |
10392 | # creating it if it does not exist already. You can give configure | |
10393 | # the --cache-file=FILE option to use a different cache file; that is | |
10394 | # what configure does when it calls configure scripts in | |
10395 | # subdirectories, so they share the cache. | |
10396 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
10397 | # config.status only pays attention to the cache file if you give it the | |
10398 | # --recheck option to rerun configure. | |
10399 | # | |
10400 | EOF | |
10401 | # The following way of writing the cache mishandles newlines in values, | |
10402 | # but we know of no workaround that is simple, portable, and efficient. | |
10403 | # So, don't put newlines in cache variables' values. | |
10404 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10405 | # and sets the high bit in the cache file unless we assign to the vars. | |
10406 | (set) 2>&1 | | |
10407 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10408 | *ac_space=\ *) | |
10409 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
10410 | # turns \\\\ into \\, and sed turns \\ into \). | |
10411 | sed -n \ | |
10412 | -e "s/'/'\\\\''/g" \ | |
10413 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
10414 | ;; | |
10415 | *) | |
10416 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10417 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
10418 | ;; | |
10419 | esac >> confcache | |
10420 | if cmp -s $cache_file confcache; then | |
10421 | : | |
10422 | else | |
10423 | if test -w $cache_file; then | |
10424 | echo "updating cache $cache_file" | |
10425 | cat confcache > $cache_file | |
10426 | else | |
10427 | echo "not updating unwritable cache $cache_file" | |
10428 | fi | |
10429 | fi | |
10430 | rm -f confcache | |
10431 | ||
10432 | ||
10433 | ||
10434 | if test "$USE_UNIX" = 1; then | |
10435 | ||
10436 | ||
10437 | THREADS_LINK="" | |
10438 | THREADS_OBJ="" | |
10439 | ||
10440 | if test "$wxUSE_THREADS" = "yes" ; then | |
10441 | if test "$wxUSE_WINE" = 1 ; then | |
10442 | echo "configure: warning: Threads are not supported under WINE" 1>&2 | |
10443 | wxUSE_THREADS="no" | |
10444 | fi | |
10445 | fi | |
10446 | ||
10447 | if test "$wxUSE_THREADS" = "yes" ; then | |
10448 | ||
10449 | echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 | |
10450 | echo "configure:10451: checking for pthread_create in -lpthread" >&5 | |
10451 | ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` | |
10452 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10453 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10454 | else | |
10455 | ac_save_LIBS="$LIBS" | |
10456 | LIBS="-lpthread $LIBS" | |
10457 | cat > conftest.$ac_ext <<EOF | |
10458 | #line 10459 "configure" | |
10459 | #include "confdefs.h" | |
10460 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10461 | /* We use char because int might match the return type of a gcc2 | |
10462 | builtin and then its argument prototype would still apply. */ | |
10463 | char pthread_create(); | |
10464 | ||
10465 | int main() { | |
10466 | pthread_create() | |
10467 | ; return 0; } | |
10468 | EOF | |
10469 | if { (eval echo configure:10470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10470 | rm -rf conftest* | |
10471 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10472 | else | |
10473 | echo "configure: failed program was:" >&5 | |
10474 | cat conftest.$ac_ext >&5 | |
10475 | rm -rf conftest* | |
10476 | eval "ac_cv_lib_$ac_lib_var=no" | |
10477 | fi | |
10478 | rm -f conftest* | |
10479 | LIBS="$ac_save_LIBS" | |
10480 | ||
10481 | fi | |
10482 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10483 | echo "$ac_t""yes" 1>&6 | |
10484 | ||
10485 | THREADS_OBJ="threadpsx.lo" | |
10486 | THREADS_LINK="pthread" | |
10487 | ||
10488 | else | |
10489 | echo "$ac_t""no" 1>&6 | |
10490 | ||
10491 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 | |
10492 | echo "configure:10493: checking for pthread_create in -lc_r" >&5 | |
10493 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` | |
10494 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10495 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10496 | else | |
10497 | ac_save_LIBS="$LIBS" | |
10498 | LIBS="-lc_r $LIBS" | |
10499 | cat > conftest.$ac_ext <<EOF | |
10500 | #line 10501 "configure" | |
10501 | #include "confdefs.h" | |
10502 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10503 | /* We use char because int might match the return type of a gcc2 | |
10504 | builtin and then its argument prototype would still apply. */ | |
10505 | char pthread_create(); | |
10506 | ||
10507 | int main() { | |
10508 | pthread_create() | |
10509 | ; return 0; } | |
10510 | EOF | |
10511 | if { (eval echo configure:10512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10512 | rm -rf conftest* | |
10513 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10514 | else | |
10515 | echo "configure: failed program was:" >&5 | |
10516 | cat conftest.$ac_ext >&5 | |
10517 | rm -rf conftest* | |
10518 | eval "ac_cv_lib_$ac_lib_var=no" | |
10519 | fi | |
10520 | rm -f conftest* | |
10521 | LIBS="$ac_save_LIBS" | |
10522 | ||
10523 | fi | |
10524 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10525 | echo "$ac_t""yes" 1>&6 | |
10526 | ||
10527 | THREADS_OBJ="threadpsx.lo" | |
10528 | THREADS_LINK="c_r" | |
10529 | ||
10530 | else | |
10531 | echo "$ac_t""no" 1>&6 | |
10532 | ||
10533 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` | |
10534 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 | |
10535 | echo "configure:10536: checking for sys/prctl.h" >&5 | |
10536 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
10537 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10538 | else | |
10539 | cat > conftest.$ac_ext <<EOF | |
10540 | #line 10541 "configure" | |
10541 | #include "confdefs.h" | |
10542 | #include <sys/prctl.h> | |
10543 | EOF | |
10544 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
10545 | { (eval echo configure:10546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
10546 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
10547 | if test -z "$ac_err"; then | |
10548 | rm -rf conftest* | |
10549 | eval "ac_cv_header_$ac_safe=yes" | |
10550 | else | |
10551 | echo "$ac_err" >&5 | |
10552 | echo "configure: failed program was:" >&5 | |
10553 | cat conftest.$ac_ext >&5 | |
10554 | rm -rf conftest* | |
10555 | eval "ac_cv_header_$ac_safe=no" | |
10556 | fi | |
10557 | rm -f conftest* | |
10558 | fi | |
10559 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10560 | echo "$ac_t""yes" 1>&6 | |
10561 | ||
10562 | THREADS_OBJ="threadsgi.lo" | |
10563 | ||
10564 | else | |
10565 | echo "$ac_t""no" 1>&6 | |
10566 | fi | |
10567 | ||
10568 | ||
10569 | fi | |
10570 | ||
10571 | ||
10572 | fi | |
10573 | ||
10574 | ||
10575 | if test -z "$THREADS_OBJ" ; then | |
10576 | wxUSE_THREADS=no | |
10577 | echo "configure: warning: No thread support on this system" 1>&2 | |
10578 | fi | |
10579 | fi | |
10580 | ||
10581 | if test "$wxUSE_THREADS" = "yes" ; then | |
10582 | for ac_func in thr_setconcurrency | |
10583 | do | |
10584 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
10585 | echo "configure:10586: checking for $ac_func" >&5 | |
10586 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
10587 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10588 | else | |
10589 | cat > conftest.$ac_ext <<EOF | |
10590 | #line 10591 "configure" | |
10591 | #include "confdefs.h" | |
10592 | /* System header to define __stub macros and hopefully few prototypes, | |
10593 | which can conflict with char $ac_func(); below. */ | |
10594 | #include <assert.h> | |
10595 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10596 | /* We use char because int might match the return type of a gcc2 | |
10597 | builtin and then its argument prototype would still apply. */ | |
10598 | char $ac_func(); | |
10599 | char (*f)(); | |
10600 | ||
10601 | int main() { | |
10602 | ||
10603 | /* The GNU C library defines this for functions which it implements | |
10604 | to always fail with ENOSYS. Some functions are actually named | |
10605 | something starting with __ and the normal name is an alias. */ | |
10606 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10607 | choke me | |
10608 | #else | |
10609 | f = $ac_func; | |
10610 | #endif | |
10611 | ||
10612 | ; return 0; } | |
10613 | EOF | |
10614 | if { (eval echo configure:10615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10615 | rm -rf conftest* | |
10616 | eval "ac_cv_func_$ac_func=yes" | |
10617 | else | |
10618 | echo "configure: failed program was:" >&5 | |
10619 | cat conftest.$ac_ext >&5 | |
10620 | rm -rf conftest* | |
10621 | eval "ac_cv_func_$ac_func=no" | |
10622 | fi | |
10623 | rm -f conftest* | |
10624 | fi | |
10625 | ||
10626 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10627 | echo "$ac_t""yes" 1>&6 | |
10628 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10629 | cat >> confdefs.h <<EOF | |
10630 | #define $ac_tr_func 1 | |
10631 | EOF | |
10632 | ||
10633 | else | |
10634 | echo "$ac_t""no" 1>&6 | |
10635 | fi | |
10636 | done | |
10637 | ||
10638 | ||
10639 | ||
10640 | for ac_hdr in sched.h | |
10641 | do | |
10642 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10643 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
10644 | echo "configure:10645: checking for $ac_hdr" >&5 | |
10645 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
10646 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10647 | else | |
10648 | cat > conftest.$ac_ext <<EOF | |
10649 | #line 10650 "configure" | |
10650 | #include "confdefs.h" | |
10651 | #include <$ac_hdr> | |
10652 | EOF | |
10653 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
10654 | { (eval echo configure:10655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
10655 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
10656 | if test -z "$ac_err"; then | |
10657 | rm -rf conftest* | |
10658 | eval "ac_cv_header_$ac_safe=yes" | |
10659 | else | |
10660 | echo "$ac_err" >&5 | |
10661 | echo "configure: failed program was:" >&5 | |
10662 | cat conftest.$ac_ext >&5 | |
10663 | rm -rf conftest* | |
10664 | eval "ac_cv_header_$ac_safe=no" | |
10665 | fi | |
10666 | rm -f conftest* | |
10667 | fi | |
10668 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10669 | echo "$ac_t""yes" 1>&6 | |
10670 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10671 | cat >> confdefs.h <<EOF | |
10672 | #define $ac_tr_hdr 1 | |
10673 | EOF | |
10674 | ||
10675 | else | |
10676 | echo "$ac_t""no" 1>&6 | |
10677 | fi | |
10678 | done | |
10679 | ||
10680 | ||
10681 | echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6 | |
10682 | echo "configure:10683: checking for sched_yield in -l$THREADS_LINK" >&5 | |
10683 | ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'` | |
10684 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10685 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10686 | else | |
10687 | ac_save_LIBS="$LIBS" | |
10688 | LIBS="-l$THREADS_LINK $LIBS" | |
10689 | cat > conftest.$ac_ext <<EOF | |
10690 | #line 10691 "configure" | |
10691 | #include "confdefs.h" | |
10692 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10693 | /* We use char because int might match the return type of a gcc2 | |
10694 | builtin and then its argument prototype would still apply. */ | |
10695 | char sched_yield(); | |
10696 | ||
10697 | int main() { | |
10698 | sched_yield() | |
10699 | ; return 0; } | |
10700 | EOF | |
10701 | if { (eval echo configure:10702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10702 | rm -rf conftest* | |
10703 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10704 | else | |
10705 | echo "configure: failed program was:" >&5 | |
10706 | cat conftest.$ac_ext >&5 | |
10707 | rm -rf conftest* | |
10708 | eval "ac_cv_lib_$ac_lib_var=no" | |
10709 | fi | |
10710 | rm -f conftest* | |
10711 | LIBS="$ac_save_LIBS" | |
10712 | ||
10713 | fi | |
10714 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10715 | echo "$ac_t""yes" 1>&6 | |
10716 | cat >> confdefs.h <<\EOF | |
10717 | #define HAVE_SCHED_YIELD 1 | |
10718 | EOF | |
10719 | ||
10720 | else | |
10721 | echo "$ac_t""no" 1>&6 | |
10722 | echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6 | |
10723 | echo "configure:10724: checking for sched_yield in -l"posix4"" >&5 | |
10724 | ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'` | |
10725 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10726 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10727 | else | |
10728 | ac_save_LIBS="$LIBS" | |
10729 | LIBS="-l"posix4" $LIBS" | |
10730 | cat > conftest.$ac_ext <<EOF | |
10731 | #line 10732 "configure" | |
10732 | #include "confdefs.h" | |
10733 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10734 | /* We use char because int might match the return type of a gcc2 | |
10735 | builtin and then its argument prototype would still apply. */ | |
10736 | char sched_yield(); | |
10737 | ||
10738 | int main() { | |
10739 | sched_yield() | |
10740 | ; return 0; } | |
10741 | EOF | |
10742 | if { (eval echo configure:10743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10743 | rm -rf conftest* | |
10744 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10745 | else | |
10746 | echo "configure: failed program was:" >&5 | |
10747 | cat conftest.$ac_ext >&5 | |
10748 | rm -rf conftest* | |
10749 | eval "ac_cv_lib_$ac_lib_var=no" | |
10750 | fi | |
10751 | rm -f conftest* | |
10752 | LIBS="$ac_save_LIBS" | |
10753 | ||
10754 | fi | |
10755 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10756 | echo "$ac_t""yes" 1>&6 | |
10757 | cat >> confdefs.h <<\EOF | |
10758 | #define HAVE_SCHED_YIELD 1 | |
10759 | EOF | |
10760 | POSIX4_LINK="-lposix4" | |
10761 | else | |
10762 | echo "$ac_t""no" 1>&6 | |
10763 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
10764 | ||
10765 | fi | |
10766 | ||
10767 | ||
10768 | fi | |
10769 | ||
10770 | ||
10771 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6 | |
10772 | echo "configure:10773: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5 | |
10773 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` | |
10774 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10775 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10776 | else | |
10777 | ac_save_LIBS="$LIBS" | |
10778 | LIBS="-l$THREADS_LINK $LIBS" | |
10779 | cat > conftest.$ac_ext <<EOF | |
10780 | #line 10781 "configure" | |
10781 | #include "confdefs.h" | |
10782 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10783 | /* We use char because int might match the return type of a gcc2 | |
10784 | builtin and then its argument prototype would still apply. */ | |
10785 | char pthread_attr_getschedpolicy(); | |
10786 | ||
10787 | int main() { | |
10788 | pthread_attr_getschedpolicy() | |
10789 | ; return 0; } | |
10790 | EOF | |
10791 | if { (eval echo configure:10792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10792 | rm -rf conftest* | |
10793 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10794 | else | |
10795 | echo "configure: failed program was:" >&5 | |
10796 | cat conftest.$ac_ext >&5 | |
10797 | rm -rf conftest* | |
10798 | eval "ac_cv_lib_$ac_lib_var=no" | |
10799 | fi | |
10800 | rm -f conftest* | |
10801 | LIBS="$ac_save_LIBS" | |
10802 | ||
10803 | fi | |
10804 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10805 | echo "$ac_t""yes" 1>&6 | |
10806 | cat >> confdefs.h <<\EOF | |
10807 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
10808 | EOF | |
10809 | ||
10810 | else | |
10811 | echo "$ac_t""no" 1>&6 | |
10812 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4"""... $ac_c" 1>&6 | |
10813 | echo "configure:10814: checking for pthread_attr_getschedpolicy in -l"posix4"" >&5 | |
10814 | ac_lib_var=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` | |
10815 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10816 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10817 | else | |
10818 | ac_save_LIBS="$LIBS" | |
10819 | LIBS="-l"posix4" $LIBS" | |
10820 | cat > conftest.$ac_ext <<EOF | |
10821 | #line 10822 "configure" | |
10822 | #include "confdefs.h" | |
10823 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10824 | /* We use char because int might match the return type of a gcc2 | |
10825 | builtin and then its argument prototype would still apply. */ | |
10826 | char pthread_attr_getschedpolicy(); | |
10827 | ||
10828 | int main() { | |
10829 | pthread_attr_getschedpolicy() | |
10830 | ; return 0; } | |
10831 | EOF | |
10832 | if { (eval echo configure:10833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10833 | rm -rf conftest* | |
10834 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10835 | else | |
10836 | echo "configure: failed program was:" >&5 | |
10837 | cat conftest.$ac_ext >&5 | |
10838 | rm -rf conftest* | |
10839 | eval "ac_cv_lib_$ac_lib_var=no" | |
10840 | fi | |
10841 | rm -f conftest* | |
10842 | LIBS="$ac_save_LIBS" | |
10843 | ||
10844 | fi | |
10845 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10846 | echo "$ac_t""yes" 1>&6 | |
10847 | cat >> confdefs.h <<\EOF | |
10848 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
10849 | EOF | |
10850 | POSIX4_LINK="-lposix4" | |
10851 | else | |
10852 | echo "$ac_t""no" 1>&6 | |
10853 | echo "configure: warning: Setting thread priority will not work" 1>&2 | |
10854 | ||
10855 | fi | |
10856 | ||
10857 | ||
10858 | fi | |
10859 | ||
10860 | ||
10861 | echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6 | |
10862 | echo "configure:10863: checking for pthread_cancel in -l$THREADS_LINK" >&5 | |
10863 | ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'` | |
10864 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10865 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10866 | else | |
10867 | ac_save_LIBS="$LIBS" | |
10868 | LIBS="-l$THREADS_LINK $LIBS" | |
10869 | cat > conftest.$ac_ext <<EOF | |
10870 | #line 10871 "configure" | |
10871 | #include "confdefs.h" | |
10872 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10873 | /* We use char because int might match the return type of a gcc2 | |
10874 | builtin and then its argument prototype would still apply. */ | |
10875 | char pthread_cancel(); | |
10876 | ||
10877 | int main() { | |
10878 | pthread_cancel() | |
10879 | ; return 0; } | |
10880 | EOF | |
10881 | if { (eval echo configure:10882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
10882 | rm -rf conftest* | |
10883 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10884 | else | |
10885 | echo "configure: failed program was:" >&5 | |
10886 | cat conftest.$ac_ext >&5 | |
10887 | rm -rf conftest* | |
10888 | eval "ac_cv_lib_$ac_lib_var=no" | |
10889 | fi | |
10890 | rm -f conftest* | |
10891 | LIBS="$ac_save_LIBS" | |
10892 | ||
10893 | fi | |
10894 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10895 | echo "$ac_t""yes" 1>&6 | |
10896 | cat >> confdefs.h <<\EOF | |
10897 | #define HAVE_PTHREAD_CANCEL 1 | |
10898 | EOF | |
10899 | ||
10900 | else | |
10901 | echo "$ac_t""no" 1>&6 | |
10902 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
10903 | fi | |
10904 | ||
10905 | ||
10906 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 | |
10907 | echo "configure:10908: checking for pthread_cleanup_push/pop" >&5 | |
10908 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then | |
10909 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10910 | else | |
10911 | ||
10912 | cat > conftest.$ac_ext <<EOF | |
10913 | #line 10914 "configure" | |
10914 | #include "confdefs.h" | |
10915 | #include <pthread.h> | |
10916 | int main() { | |
10917 | ||
10918 | pthread_cleanup_push(NULL, NULL); | |
10919 | pthread_cleanup_pop(0); | |
10920 | ||
10921 | ; return 0; } | |
10922 | EOF | |
10923 | if { (eval echo configure:10924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
10924 | rm -rf conftest* | |
10925 | ||
10926 | wx_cv_func_pthread_cleanup_push=yes | |
10927 | cat >> confdefs.h <<\EOF | |
10928 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 | |
10929 | EOF | |
10930 | ||
10931 | ||
10932 | else | |
10933 | echo "configure: failed program was:" >&5 | |
10934 | cat conftest.$ac_ext >&5 | |
10935 | rm -rf conftest* | |
10936 | ||
10937 | wx_cv_func_pthread_cleanup_push=no | |
10938 | ||
10939 | fi | |
10940 | rm -f conftest* | |
10941 | ||
10942 | fi | |
10943 | ||
10944 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
10945 | ||
10946 | THREADS_LINK="-l$THREADS_LINK" | |
10947 | fi | |
10948 | ||
10949 | fi | |
10950 | ||
10951 | if test "$wxUSE_THREADS" = "yes"; then | |
10952 | cat >> confdefs.h <<\EOF | |
10953 | #define wxUSE_THREADS 1 | |
10954 | EOF | |
10955 | ||
10956 | ||
10957 | CFLAGS="${CFLAGS} -D_REENTRANT" | |
10958 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" | |
10959 | ||
10960 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
10961 | else | |
10962 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
10963 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 | |
10964 | echo "configure:10965: checking if -D_REENTRANT is needed" >&5 | |
10965 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
10966 | CFLAGS="${CFLAGS} -D_REENTRANT" | |
10967 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" | |
10968 | echo "$ac_t""yes" 1>&6 | |
10969 | else | |
10970 | echo "$ac_t""no" 1>&6 | |
10971 | fi | |
10972 | fi | |
10973 | fi | |
10974 | ||
10975 | if test "$WXGTK12" = 1 ; then | |
10976 | cat >> confdefs.h <<EOF | |
10977 | #define __WXGTK12__ $WXGTK12 | |
10978 | EOF | |
10979 | ||
10980 | fi | |
10981 | ||
10982 | if test "$WXWINE" = 1 ; then | |
10983 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__" | |
10984 | fi | |
10985 | ||
10986 | if test "$wxUSE_CYGWIN" = 1 ; then | |
10987 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__" | |
10988 | fi | |
10989 | ||
10990 | WXDEBUG= | |
10991 | ||
10992 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
10993 | WXDEBUG="-g" | |
10994 | wxUSE_OPTIMISE=no | |
10995 | fi | |
10996 | ||
10997 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
10998 | wxUSE_DEBUG_INFO=yes | |
10999 | WXDEBUG="-ggdb" | |
11000 | fi | |
11001 | ||
11002 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
11003 | cat >> confdefs.h <<\EOF | |
11004 | #define WXDEBUG 1 | |
11005 | EOF | |
11006 | ||
11007 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
11008 | else | |
11009 | if test "$wxUSE_GTK" = 1 ; then | |
11010 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
11011 | fi | |
11012 | fi | |
11013 | ||
11014 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
11015 | cat >> confdefs.h <<\EOF | |
11016 | #define wxUSE_MEMORY_TRACING 1 | |
11017 | EOF | |
11018 | ||
11019 | cat >> confdefs.h <<\EOF | |
11020 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
11021 | EOF | |
11022 | ||
11023 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
11024 | fi | |
11025 | ||
11026 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
11027 | DMALLOC_LINK="-ldmalloc" | |
11028 | fi | |
11029 | ||
11030 | PROFILE= | |
11031 | if test "$wxUSE_PROFILE" = "yes" ; then | |
11032 | PROFILE="-pg" | |
11033 | fi | |
11034 | ||
11035 | DEP_INFO_FLAGS= | |
11036 | if test "$GCC" = yes ; then | |
11037 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
11038 | WXDEBUG_DEFINE="$WXDEBUG_DEFINE -fno-rtti" | |
11039 | fi | |
11040 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
11041 | WXDEBUG_DEFINE="$WXDEBUG_DEFINE -fno-exceptions" | |
11042 | fi | |
11043 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
11044 | CFLAGS="${CFLAGS} -fpermissive" | |
11045 | CXXFLAGS="${CXXFLAGS} -fpermissive" | |
11046 | fi | |
11047 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
11048 | DEP_INFO_FLAGS="-MMD" | |
11049 | fi | |
11050 | fi | |
11051 | ||
11052 | ||
11053 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` | |
11054 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
11055 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
11056 | OPTIMISE= | |
11057 | else | |
11058 | if test "$GCC" = yes ; then | |
11059 | OPTIMISE="-O2" | |
11060 | case "${host}" in | |
11061 | i586-*-*|i686-*-* ) | |
11062 | OPTIMISE="${OPTIMISE} " | |
11063 | ;; | |
11064 | esac | |
11065 | else | |
11066 | OPTIMISE="-O" | |
11067 | fi | |
11068 | fi | |
11069 | ||
11070 | ||
11071 | ZLIB_INCLUDE= | |
11072 | if test "$wxUSE_ZLIB" = "yes" ; then | |
11073 | cat >> confdefs.h <<\EOF | |
11074 | #define wxUSE_ZLIB 1 | |
11075 | EOF | |
11076 | ||
11077 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
11078 | fi | |
11079 | ||
11080 | PNG_INCLUDE= | |
11081 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
11082 | cat >> confdefs.h <<\EOF | |
11083 | #define wxUSE_LIBPNG 1 | |
11084 | EOF | |
11085 | ||
11086 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
11087 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
11088 | fi | |
11089 | ||
11090 | JPEG_INCLUDE= | |
11091 | if test "$wxUSE_LIBJPEG" = "yes" ; then | |
11092 | cat >> confdefs.h <<\EOF | |
11093 | #define wxUSE_LIBJPEG 1 | |
11094 | EOF | |
11095 | ||
11096 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
11097 | fi | |
11098 | ||
11099 | TIFF_INCLUDE= | |
11100 | if test "$wxUSE_LIBTIFF" = "yes" ; then | |
11101 | cat >> confdefs.h <<\EOF | |
11102 | #define wxUSE_LIBTIFF 1 | |
11103 | EOF | |
11104 | ||
11105 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
11106 | fi | |
11107 | ||
11108 | if test "$wxUSE_OPENGL" = "yes"; then | |
11109 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` | |
11110 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
11111 | echo "configure:11112: checking for GL/gl.h" >&5 | |
11112 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
11113 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11114 | else | |
11115 | cat > conftest.$ac_ext <<EOF | |
11116 | #line 11117 "configure" | |
11117 | #include "confdefs.h" | |
11118 | #include <GL/gl.h> | |
11119 | EOF | |
11120 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
11121 | { (eval echo configure:11122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
11122 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
11123 | if test -z "$ac_err"; then | |
11124 | rm -rf conftest* | |
11125 | eval "ac_cv_header_$ac_safe=yes" | |
11126 | else | |
11127 | echo "$ac_err" >&5 | |
11128 | echo "configure: failed program was:" >&5 | |
11129 | cat conftest.$ac_ext >&5 | |
11130 | rm -rf conftest* | |
11131 | eval "ac_cv_header_$ac_safe=no" | |
11132 | fi | |
11133 | rm -f conftest* | |
11134 | fi | |
11135 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11136 | echo "$ac_t""yes" 1>&6 | |
11137 | ||
11138 | echo $ac_n "checking for glInitNames in -lGL""... $ac_c" 1>&6 | |
11139 | echo "configure:11140: checking for glInitNames in -lGL" >&5 | |
11140 | ac_lib_var=`echo GL'_'glInitNames | sed 'y%./+-%__p_%'` | |
11141 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11142 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11143 | else | |
11144 | ac_save_LIBS="$LIBS" | |
11145 | LIBS="-lGL wxUSE_OPENGL=0 $LIBS" | |
11146 | cat > conftest.$ac_ext <<EOF | |
11147 | #line 11148 "configure" | |
11148 | #include "confdefs.h" | |
11149 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11150 | /* We use char because int might match the return type of a gcc2 | |
11151 | builtin and then its argument prototype would still apply. */ | |
11152 | char glInitNames(); | |
11153 | ||
11154 | int main() { | |
11155 | glInitNames() | |
11156 | ; return 0; } | |
11157 | EOF | |
11158 | if { (eval echo configure:11159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11159 | rm -rf conftest* | |
11160 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11161 | else | |
11162 | echo "configure: failed program was:" >&5 | |
11163 | cat conftest.$ac_ext >&5 | |
11164 | rm -rf conftest* | |
11165 | eval "ac_cv_lib_$ac_lib_var=no" | |
11166 | fi | |
11167 | rm -f conftest* | |
11168 | LIBS="$ac_save_LIBS" | |
11169 | ||
11170 | fi | |
11171 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11172 | echo "$ac_t""yes" 1>&6 | |
11173 | ||
11174 | OPENGL_LINK="-lGL" | |
11175 | cat >> confdefs.h <<\EOF | |
11176 | #define wxUSE_OPENGL 1 | |
11177 | EOF | |
11178 | ||
11179 | UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src" | |
11180 | ||
11181 | else | |
11182 | echo "$ac_t""no" 1>&6 | |
11183 | ||
11184 | echo $ac_n "checking for glInitNames in -lMesaGL""... $ac_c" 1>&6 | |
11185 | echo "configure:11186: checking for glInitNames in -lMesaGL" >&5 | |
11186 | ac_lib_var=`echo MesaGL'_'glInitNames | sed 'y%./+-%__p_%'` | |
11187 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11188 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11189 | else | |
11190 | ac_save_LIBS="$LIBS" | |
11191 | LIBS="-lMesaGL $LIBS" | |
11192 | cat > conftest.$ac_ext <<EOF | |
11193 | #line 11194 "configure" | |
11194 | #include "confdefs.h" | |
11195 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11196 | /* We use char because int might match the return type of a gcc2 | |
11197 | builtin and then its argument prototype would still apply. */ | |
11198 | char glInitNames(); | |
11199 | ||
11200 | int main() { | |
11201 | glInitNames() | |
11202 | ; return 0; } | |
11203 | EOF | |
11204 | if { (eval echo configure:11205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11205 | rm -rf conftest* | |
11206 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11207 | else | |
11208 | echo "configure: failed program was:" >&5 | |
11209 | cat conftest.$ac_ext >&5 | |
11210 | rm -rf conftest* | |
11211 | eval "ac_cv_lib_$ac_lib_var=no" | |
11212 | fi | |
11213 | rm -f conftest* | |
11214 | LIBS="$ac_save_LIBS" | |
11215 | ||
11216 | fi | |
11217 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11218 | echo "$ac_t""yes" 1>&6 | |
11219 | ||
11220 | OPENGL_LINK="-lMesaGL" | |
11221 | cat >> confdefs.h <<\EOF | |
11222 | #define wxUSE_OPENGL 1 | |
11223 | EOF | |
11224 | ||
11225 | UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src" | |
11226 | ||
11227 | else | |
11228 | echo "$ac_t""no" 1>&6 | |
11229 | wxUSE_OPENGL=0 | |
11230 | fi | |
11231 | ||
11232 | ||
11233 | fi | |
11234 | ||
11235 | ||
11236 | else | |
11237 | echo "$ac_t""no" 1>&6 | |
11238 | wxUSE_OPENGL=0 | |
11239 | fi | |
11240 | ||
11241 | fi | |
11242 | ||
11243 | ||
11244 | if test "$wxUSE_GUI" = "yes"; then | |
11245 | cat >> confdefs.h <<\EOF | |
11246 | #define wxUSE_GUI 1 | |
11247 | EOF | |
11248 | ||
11249 | ||
11250 | else | |
11251 | cat >> confdefs.h <<\EOF | |
11252 | #define wxUSE_NOGUI 1 | |
11253 | EOF | |
11254 | ||
11255 | fi | |
11256 | ||
11257 | ||
11258 | if test "$wxUSE_UNIX" = "yes"; then | |
11259 | cat >> confdefs.h <<\EOF | |
11260 | #define wxUSE_UNIX 1 | |
11261 | EOF | |
11262 | ||
11263 | fi | |
11264 | ||
11265 | ||
11266 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
11267 | cat >> confdefs.h <<\EOF | |
11268 | #define wxUSE_APPLE_IEEE 1 | |
11269 | EOF | |
11270 | ||
11271 | fi | |
11272 | ||
11273 | if test "$wxUSE_WAVE" = "yes"; then | |
11274 | cat >> confdefs.h <<\EOF | |
11275 | #define wxUSE_WAVE 1 | |
11276 | EOF | |
11277 | ||
11278 | fi | |
11279 | ||
11280 | if test "$wxUSE_FILE" = "yes"; then | |
11281 | cat >> confdefs.h <<\EOF | |
11282 | #define wxUSE_FILE 1 | |
11283 | EOF | |
11284 | ||
11285 | fi | |
11286 | ||
11287 | if test "$wxUSE_FS_INET" = "yes"; then | |
11288 | cat >> confdefs.h <<\EOF | |
11289 | #define wxUSE_FS_INET 1 | |
11290 | EOF | |
11291 | ||
11292 | fi | |
11293 | ||
11294 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
11295 | cat >> confdefs.h <<\EOF | |
11296 | #define wxUSE_FS_ZIP 1 | |
11297 | EOF | |
11298 | ||
11299 | fi | |
11300 | ||
11301 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
11302 | cat >> confdefs.h <<\EOF | |
11303 | #define wxUSE_ZIPSTREAM 1 | |
11304 | EOF | |
11305 | ||
11306 | fi | |
11307 | ||
11308 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
11309 | cat >> confdefs.h <<\EOF | |
11310 | #define wxUSE_BUSYINFO 1 | |
11311 | EOF | |
11312 | ||
11313 | fi | |
11314 | ||
11315 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
11316 | cat >> confdefs.h <<\EOF | |
11317 | #define wxUSE_STD_IOSTREAM 1 | |
11318 | EOF | |
11319 | ||
11320 | fi | |
11321 | ||
11322 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
11323 | if test "$wxUSE_FILE" != "yes"; then | |
11324 | echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2 | |
11325 | else | |
11326 | cat >> confdefs.h <<\EOF | |
11327 | #define wxUSE_TEXTFILE 1 | |
11328 | EOF | |
11329 | ||
11330 | fi | |
11331 | fi | |
11332 | ||
11333 | if test "$wxUSE_CONFIG" = "yes" ; then | |
11334 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
11335 | echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2 | |
11336 | else | |
11337 | cat >> confdefs.h <<\EOF | |
11338 | #define wxUSE_CONFIG 1 | |
11339 | EOF | |
11340 | ||
11341 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
11342 | fi | |
11343 | fi | |
11344 | ||
11345 | if test "$wxUSE_INTL" = "yes" ; then | |
11346 | if test "$wxUSE_FILE" != "yes"; then | |
11347 | echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2 | |
11348 | else | |
11349 | cat >> confdefs.h <<\EOF | |
11350 | #define wxUSE_INTL 1 | |
11351 | EOF | |
11352 | ||
11353 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
11354 | fi | |
11355 | fi | |
11356 | ||
11357 | if test "$wxUSE_LOG" = "yes"; then | |
11358 | cat >> confdefs.h <<\EOF | |
11359 | #define wxUSE_LOG 1 | |
11360 | EOF | |
11361 | ||
11362 | fi | |
11363 | ||
11364 | if test "$wxUSE_LONGLONG" = "yes"; then | |
11365 | cat >> confdefs.h <<\EOF | |
11366 | #define wxUSE_LONGLONG 1 | |
11367 | EOF | |
11368 | ||
11369 | fi | |
11370 | ||
11371 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then | |
11372 | cat >> confdefs.h <<\EOF | |
11373 | #define wxUSE_DIALUP_MANAGER 1 | |
11374 | EOF | |
11375 | ||
11376 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS nettest" | |
11377 | fi | |
11378 | ||
11379 | if test "$wxUSE_STREAMS" = "yes" ; then | |
11380 | cat >> confdefs.h <<\EOF | |
11381 | #define wxUSE_STREAMS 1 | |
11382 | EOF | |
11383 | ||
11384 | fi | |
11385 | ||
11386 | if test "$wxUSE_SERIAL" = "yes" ; then | |
11387 | cat >> confdefs.h <<\EOF | |
11388 | #define wxUSE_SERIAL 1 | |
11389 | EOF | |
11390 | ||
11391 | fi | |
11392 | ||
11393 | ||
11394 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
11395 | for ac_func in localtime gettimeofday ftime | |
11396 | do | |
11397 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
11398 | echo "configure:11399: checking for $ac_func" >&5 | |
11399 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
11400 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11401 | else | |
11402 | cat > conftest.$ac_ext <<EOF | |
11403 | #line 11404 "configure" | |
11404 | #include "confdefs.h" | |
11405 | /* System header to define __stub macros and hopefully few prototypes, | |
11406 | which can conflict with char $ac_func(); below. */ | |
11407 | #include <assert.h> | |
11408 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11409 | /* We use char because int might match the return type of a gcc2 | |
11410 | builtin and then its argument prototype would still apply. */ | |
11411 | char $ac_func(); | |
11412 | char (*f)(); | |
11413 | ||
11414 | int main() { | |
11415 | ||
11416 | /* The GNU C library defines this for functions which it implements | |
11417 | to always fail with ENOSYS. Some functions are actually named | |
11418 | something starting with __ and the normal name is an alias. */ | |
11419 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11420 | choke me | |
11421 | #else | |
11422 | f = $ac_func; | |
11423 | #endif | |
11424 | ||
11425 | ; return 0; } | |
11426 | EOF | |
11427 | if { (eval echo configure:11428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11428 | rm -rf conftest* | |
11429 | eval "ac_cv_func_$ac_func=yes" | |
11430 | else | |
11431 | echo "configure: failed program was:" >&5 | |
11432 | cat conftest.$ac_ext >&5 | |
11433 | rm -rf conftest* | |
11434 | eval "ac_cv_func_$ac_func=no" | |
11435 | fi | |
11436 | rm -f conftest* | |
11437 | fi | |
11438 | ||
11439 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11440 | echo "$ac_t""yes" 1>&6 | |
11441 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11442 | cat >> confdefs.h <<EOF | |
11443 | #define $ac_tr_func 1 | |
11444 | EOF | |
11445 | break | |
11446 | else | |
11447 | echo "$ac_t""no" 1>&6 | |
11448 | fi | |
11449 | done | |
11450 | ||
11451 | ||
11452 | if test "$ac_cv_func_localtime" = "yes"; then | |
11453 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
11454 | echo "configure:11455: checking for tm_gmtoff in struct tm" >&5 | |
11455 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then | |
11456 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11457 | else | |
11458 | ||
11459 | cat > conftest.$ac_ext <<EOF | |
11460 | #line 11461 "configure" | |
11461 | #include "confdefs.h" | |
11462 | ||
11463 | #include <time.h> | |
11464 | ||
11465 | int main() { | |
11466 | ||
11467 | struct tm tm; | |
11468 | tm.tm_gmtoff++; | |
11469 | ||
11470 | ; return 0; } | |
11471 | EOF | |
11472 | if { (eval echo configure:11473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
11473 | rm -rf conftest* | |
11474 | ||
11475 | wx_cv_struct_tm_has_gmtoff=yes | |
11476 | cat >> confdefs.h <<\EOF | |
11477 | #define WX_GMTOFF_IN_TM 1 | |
11478 | EOF | |
11479 | ||
11480 | ||
11481 | else | |
11482 | echo "configure: failed program was:" >&5 | |
11483 | cat conftest.$ac_ext >&5 | |
11484 | rm -rf conftest* | |
11485 | wx_cv_struct_tm_has_gmtoff=no | |
11486 | ||
11487 | fi | |
11488 | rm -f conftest* | |
11489 | ||
11490 | fi | |
11491 | ||
11492 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
11493 | elif test "$ac_cv_func_gettimeofday" = "yes"; then | |
11494 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 | |
11495 | echo "configure:11496: checking whether gettimeofday takes two arguments" >&5 | |
11496 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then | |
11497 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11498 | else | |
11499 | ||
11500 | ||
11501 | ac_ext=C | |
11502 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11503 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11504 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11505 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11506 | cross_compiling=$ac_cv_prog_cxx_cross | |
11507 | ||
11508 | ||
11509 | cat > conftest.$ac_ext <<EOF | |
11510 | #line 11511 "configure" | |
11511 | #include "confdefs.h" | |
11512 | ||
11513 | #include <sys/time.h> | |
11514 | #include <unistd.h> | |
11515 | ||
11516 | int main() { | |
11517 | ||
11518 | struct timeval tv; | |
11519 | struct timezone tz; | |
11520 | gettimeofday(&tv, &tz); | |
11521 | ||
11522 | ; return 0; } | |
11523 | EOF | |
11524 | if { (eval echo configure:11525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
11525 | rm -rf conftest* | |
11526 | wx_cv_func_gettimeofday_has_2_args=yes | |
11527 | else | |
11528 | echo "configure: failed program was:" >&5 | |
11529 | cat conftest.$ac_ext >&5 | |
11530 | rm -rf conftest* | |
11531 | cat > conftest.$ac_ext <<EOF | |
11532 | #line 11533 "configure" | |
11533 | #include "confdefs.h" | |
11534 | ||
11535 | #include <sys/time.h> | |
11536 | #include <unistd.h> | |
11537 | ||
11538 | int main() { | |
11539 | ||
11540 | struct timeval tv; | |
11541 | gettimeofday(&tv); | |
11542 | ||
11543 | ; return 0; } | |
11544 | EOF | |
11545 | if { (eval echo configure:11546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
11546 | rm -rf conftest* | |
11547 | wx_cv_func_gettimeofday_has_2_args=no | |
11548 | else | |
11549 | echo "configure: failed program was:" >&5 | |
11550 | cat conftest.$ac_ext >&5 | |
11551 | rm -rf conftest* | |
11552 | wx_cv_func_gettimeofday_has_2_args=unknown | |
11553 | ||
11554 | fi | |
11555 | rm -f conftest* | |
11556 | ||
11557 | fi | |
11558 | rm -f conftest* | |
11559 | ac_ext=c | |
11560 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11561 | ac_cpp='$CPP $CPPFLAGS' | |
11562 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11563 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11564 | cross_compiling=$ac_cv_prog_cc_cross | |
11565 | ||
11566 | ||
11567 | fi | |
11568 | ||
11569 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
11570 | ||
11571 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
11572 | cat >> confdefs.h <<\EOF | |
11573 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
11574 | EOF | |
11575 | ||
11576 | fi | |
11577 | fi | |
11578 | ||
11579 | cat >> confdefs.h <<\EOF | |
11580 | #define wxUSE_TIMEDATE 1 | |
11581 | EOF | |
11582 | ||
11583 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
11584 | fi | |
11585 | ||
11586 | ||
11587 | if test "$wxUSE_SOCKETS" = "yes"; then | |
11588 | echo $ac_n "checking for socket""... $ac_c" 1>&6 | |
11589 | echo "configure:11590: checking for socket" >&5 | |
11590 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then | |
11591 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11592 | else | |
11593 | cat > conftest.$ac_ext <<EOF | |
11594 | #line 11595 "configure" | |
11595 | #include "confdefs.h" | |
11596 | /* System header to define __stub macros and hopefully few prototypes, | |
11597 | which can conflict with char socket(); below. */ | |
11598 | #include <assert.h> | |
11599 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11600 | /* We use char because int might match the return type of a gcc2 | |
11601 | builtin and then its argument prototype would still apply. */ | |
11602 | char socket(); | |
11603 | char (*f)(); | |
11604 | ||
11605 | int main() { | |
11606 | ||
11607 | /* The GNU C library defines this for functions which it implements | |
11608 | to always fail with ENOSYS. Some functions are actually named | |
11609 | something starting with __ and the normal name is an alias. */ | |
11610 | #if defined (__stub_socket) || defined (__stub___socket) | |
11611 | choke me | |
11612 | #else | |
11613 | f = socket; | |
11614 | #endif | |
11615 | ||
11616 | ; return 0; } | |
11617 | EOF | |
11618 | if { (eval echo configure:11619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11619 | rm -rf conftest* | |
11620 | eval "ac_cv_func_socket=yes" | |
11621 | else | |
11622 | echo "configure: failed program was:" >&5 | |
11623 | cat conftest.$ac_ext >&5 | |
11624 | rm -rf conftest* | |
11625 | eval "ac_cv_func_socket=no" | |
11626 | fi | |
11627 | rm -f conftest* | |
11628 | fi | |
11629 | ||
11630 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
11631 | echo "$ac_t""yes" 1>&6 | |
11632 | : | |
11633 | else | |
11634 | echo "$ac_t""no" 1>&6 | |
11635 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
11636 | echo "configure:11637: checking for socket in -lsocket" >&5 | |
11637 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` | |
11638 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11639 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11640 | else | |
11641 | ac_save_LIBS="$LIBS" | |
11642 | LIBS="-lsocket $LIBS" | |
11643 | cat > conftest.$ac_ext <<EOF | |
11644 | #line 11645 "configure" | |
11645 | #include "confdefs.h" | |
11646 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11647 | /* We use char because int might match the return type of a gcc2 | |
11648 | builtin and then its argument prototype would still apply. */ | |
11649 | char socket(); | |
11650 | ||
11651 | int main() { | |
11652 | socket() | |
11653 | ; return 0; } | |
11654 | EOF | |
11655 | if { (eval echo configure:11656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11656 | rm -rf conftest* | |
11657 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11658 | else | |
11659 | echo "configure: failed program was:" >&5 | |
11660 | cat conftest.$ac_ext >&5 | |
11661 | rm -rf conftest* | |
11662 | eval "ac_cv_lib_$ac_lib_var=no" | |
11663 | fi | |
11664 | rm -f conftest* | |
11665 | LIBS="$ac_save_LIBS" | |
11666 | ||
11667 | fi | |
11668 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11669 | echo "$ac_t""yes" 1>&6 | |
11670 | INET_LINK="$INET_LINK -lsocket" | |
11671 | else | |
11672 | echo "$ac_t""no" 1>&6 | |
11673 | ||
11674 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 | |
11675 | wxUSE_SOCKETS=no | |
11676 | ||
11677 | ||
11678 | fi | |
11679 | ||
11680 | ||
11681 | fi | |
11682 | ||
11683 | fi | |
11684 | ||
11685 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
11686 | ||
11687 | ac_ext=C | |
11688 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11689 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11690 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11691 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11692 | cross_compiling=$ac_cv_prog_cxx_cross | |
11693 | ||
11694 | echo $ac_n "checking the type of the third argument of getsockname""... $ac_c" 1>&6 | |
11695 | echo "configure:11696: checking the type of the third argument of getsockname" >&5 | |
11696 | cat > conftest.$ac_ext <<EOF | |
11697 | #line 11698 "configure" | |
11698 | #include "confdefs.h" | |
11699 | #include <sys/socket.h> | |
11700 | int main() { | |
11701 | socklen_t len; getsockname(0, 0, &len); | |
11702 | ; return 0; } | |
11703 | EOF | |
11704 | if { (eval echo configure:11705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
11705 | rm -rf conftest* | |
11706 | cat >> confdefs.h <<\EOF | |
11707 | #define SOCKLEN_T socklen_t | |
11708 | EOF | |
11709 | echo "$ac_t""socklen_t" 1>&6 | |
11710 | else | |
11711 | echo "configure: failed program was:" >&5 | |
11712 | cat conftest.$ac_ext >&5 | |
11713 | rm -rf conftest* | |
11714 | cat > conftest.$ac_ext <<EOF | |
11715 | #line 11716 "configure" | |
11716 | #include "confdefs.h" | |
11717 | #include <sys/socket.h> | |
11718 | int main() { | |
11719 | size_t len; getsockname(0, 0, &len); | |
11720 | ; return 0; } | |
11721 | EOF | |
11722 | if { (eval echo configure:11723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
11723 | rm -rf conftest* | |
11724 | cat >> confdefs.h <<\EOF | |
11725 | #define SOCKLEN_T size_t | |
11726 | EOF | |
11727 | echo "$ac_t""size_t" 1>&6 | |
11728 | else | |
11729 | echo "configure: failed program was:" >&5 | |
11730 | cat conftest.$ac_ext >&5 | |
11731 | rm -rf conftest* | |
11732 | cat > conftest.$ac_ext <<EOF | |
11733 | #line 11734 "configure" | |
11734 | #include "confdefs.h" | |
11735 | #include <sys/socket.h> | |
11736 | int main() { | |
11737 | int len; getsockname(0, 0, &len); | |
11738 | ; return 0; } | |
11739 | EOF | |
11740 | if { (eval echo configure:11741: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
11741 | rm -rf conftest* | |
11742 | cat >> confdefs.h <<\EOF | |
11743 | #define SOCKLEN_T int | |
11744 | EOF | |
11745 | echo "$ac_t""int" 1>&6 | |
11746 | else | |
11747 | echo "configure: failed program was:" >&5 | |
11748 | cat conftest.$ac_ext >&5 | |
11749 | rm -rf conftest* | |
11750 | echo "$ac_t""unknown" 1>&6 | |
11751 | ||
11752 | fi | |
11753 | rm -f conftest* | |
11754 | ||
11755 | fi | |
11756 | rm -f conftest* | |
11757 | ||
11758 | fi | |
11759 | rm -f conftest* | |
11760 | ac_ext=c | |
11761 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11762 | ac_cpp='$CPP $CPPFLAGS' | |
11763 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11764 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11765 | cross_compiling=$ac_cv_prog_cc_cross | |
11766 | ||
11767 | ||
11768 | cat >> confdefs.h <<\EOF | |
11769 | #define wxUSE_SOCKETS 1 | |
11770 | EOF | |
11771 | ||
11772 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wxsocket" | |
11773 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol" | |
11774 | fi | |
11775 | ||
11776 | ||
11777 | if test "$wxUSE_JOYSTICK" = 1; then | |
11778 | for ac_hdr in linux/joystick.h | |
11779 | do | |
11780 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
11781 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
11782 | echo "configure:11783: checking for $ac_hdr" >&5 | |
11783 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
11784 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11785 | else | |
11786 | cat > conftest.$ac_ext <<EOF | |
11787 | #line 11788 "configure" | |
11788 | #include "confdefs.h" | |
11789 | #include <$ac_hdr> | |
11790 | EOF | |
11791 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
11792 | { (eval echo configure:11793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
11793 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
11794 | if test -z "$ac_err"; then | |
11795 | rm -rf conftest* | |
11796 | eval "ac_cv_header_$ac_safe=yes" | |
11797 | else | |
11798 | echo "$ac_err" >&5 | |
11799 | echo "configure: failed program was:" >&5 | |
11800 | cat conftest.$ac_ext >&5 | |
11801 | rm -rf conftest* | |
11802 | eval "ac_cv_header_$ac_safe=no" | |
11803 | fi | |
11804 | rm -f conftest* | |
11805 | fi | |
11806 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11807 | echo "$ac_t""yes" 1>&6 | |
11808 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11809 | cat >> confdefs.h <<EOF | |
11810 | #define $ac_tr_hdr 1 | |
11811 | EOF | |
11812 | ||
11813 | else | |
11814 | echo "$ac_t""no" 1>&6 | |
11815 | fi | |
11816 | done | |
11817 | ||
11818 | if test "$ac_cv_header_linux_joystick_h" = "yes"; then | |
11819 | cat >> confdefs.h <<\EOF | |
11820 | #define wxUSE_JOYSTICK 1 | |
11821 | EOF | |
11822 | ||
11823 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
11824 | fi | |
11825 | fi | |
11826 | ||
11827 | ||
11828 | HAVE_DL_FUNCS=0 | |
11829 | HAVE_SHL_FUNCS=0 | |
11830 | if test "$wxUSE_DYNLIB_CLASS" = "yes"; then | |
11831 | for ac_func in dlopen | |
11832 | do | |
11833 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
11834 | echo "configure:11835: checking for $ac_func" >&5 | |
11835 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
11836 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11837 | else | |
11838 | cat > conftest.$ac_ext <<EOF | |
11839 | #line 11840 "configure" | |
11840 | #include "confdefs.h" | |
11841 | /* System header to define __stub macros and hopefully few prototypes, | |
11842 | which can conflict with char $ac_func(); below. */ | |
11843 | #include <assert.h> | |
11844 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11845 | /* We use char because int might match the return type of a gcc2 | |
11846 | builtin and then its argument prototype would still apply. */ | |
11847 | char $ac_func(); | |
11848 | char (*f)(); | |
11849 | ||
11850 | int main() { | |
11851 | ||
11852 | /* The GNU C library defines this for functions which it implements | |
11853 | to always fail with ENOSYS. Some functions are actually named | |
11854 | something starting with __ and the normal name is an alias. */ | |
11855 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11856 | choke me | |
11857 | #else | |
11858 | f = $ac_func; | |
11859 | #endif | |
11860 | ||
11861 | ; return 0; } | |
11862 | EOF | |
11863 | if { (eval echo configure:11864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11864 | rm -rf conftest* | |
11865 | eval "ac_cv_func_$ac_func=yes" | |
11866 | else | |
11867 | echo "configure: failed program was:" >&5 | |
11868 | cat conftest.$ac_ext >&5 | |
11869 | rm -rf conftest* | |
11870 | eval "ac_cv_func_$ac_func=no" | |
11871 | fi | |
11872 | rm -f conftest* | |
11873 | fi | |
11874 | ||
11875 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11876 | echo "$ac_t""yes" 1>&6 | |
11877 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11878 | cat >> confdefs.h <<EOF | |
11879 | #define $ac_tr_func 1 | |
11880 | EOF | |
11881 | ||
11882 | cat >> confdefs.h <<\EOF | |
11883 | #define HAVE_DLOPEN 1 | |
11884 | EOF | |
11885 | ||
11886 | HAVE_DL_FUNCS=1 | |
11887 | ||
11888 | else | |
11889 | echo "$ac_t""no" 1>&6 | |
11890 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
11891 | echo "configure:11892: checking for dlopen in -ldl" >&5 | |
11892 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` | |
11893 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11894 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11895 | else | |
11896 | ac_save_LIBS="$LIBS" | |
11897 | LIBS="-ldl $LIBS" | |
11898 | cat > conftest.$ac_ext <<EOF | |
11899 | #line 11900 "configure" | |
11900 | #include "confdefs.h" | |
11901 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11902 | /* We use char because int might match the return type of a gcc2 | |
11903 | builtin and then its argument prototype would still apply. */ | |
11904 | char dlopen(); | |
11905 | ||
11906 | int main() { | |
11907 | dlopen() | |
11908 | ; return 0; } | |
11909 | EOF | |
11910 | if { (eval echo configure:11911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11911 | rm -rf conftest* | |
11912 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11913 | else | |
11914 | echo "configure: failed program was:" >&5 | |
11915 | cat conftest.$ac_ext >&5 | |
11916 | rm -rf conftest* | |
11917 | eval "ac_cv_lib_$ac_lib_var=no" | |
11918 | fi | |
11919 | rm -f conftest* | |
11920 | LIBS="$ac_save_LIBS" | |
11921 | ||
11922 | fi | |
11923 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11924 | echo "$ac_t""yes" 1>&6 | |
11925 | ||
11926 | cat >> confdefs.h <<\EOF | |
11927 | #define HAVE_DLOPEN 1 | |
11928 | EOF | |
11929 | ||
11930 | HAVE_DL_FUNCS=1 | |
11931 | LIBS="$LIBS -ldl" | |
11932 | ||
11933 | else | |
11934 | echo "$ac_t""no" 1>&6 | |
11935 | ||
11936 | for ac_func in shl_load | |
11937 | do | |
11938 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
11939 | echo "configure:11940: checking for $ac_func" >&5 | |
11940 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
11941 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11942 | else | |
11943 | cat > conftest.$ac_ext <<EOF | |
11944 | #line 11945 "configure" | |
11945 | #include "confdefs.h" | |
11946 | /* System header to define __stub macros and hopefully few prototypes, | |
11947 | which can conflict with char $ac_func(); below. */ | |
11948 | #include <assert.h> | |
11949 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11950 | /* We use char because int might match the return type of a gcc2 | |
11951 | builtin and then its argument prototype would still apply. */ | |
11952 | char $ac_func(); | |
11953 | char (*f)(); | |
11954 | ||
11955 | int main() { | |
11956 | ||
11957 | /* The GNU C library defines this for functions which it implements | |
11958 | to always fail with ENOSYS. Some functions are actually named | |
11959 | something starting with __ and the normal name is an alias. */ | |
11960 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11961 | choke me | |
11962 | #else | |
11963 | f = $ac_func; | |
11964 | #endif | |
11965 | ||
11966 | ; return 0; } | |
11967 | EOF | |
11968 | if { (eval echo configure:11969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11969 | rm -rf conftest* | |
11970 | eval "ac_cv_func_$ac_func=yes" | |
11971 | else | |
11972 | echo "configure: failed program was:" >&5 | |
11973 | cat conftest.$ac_ext >&5 | |
11974 | rm -rf conftest* | |
11975 | eval "ac_cv_func_$ac_func=no" | |
11976 | fi | |
11977 | rm -f conftest* | |
11978 | fi | |
11979 | ||
11980 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11981 | echo "$ac_t""yes" 1>&6 | |
11982 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11983 | cat >> confdefs.h <<EOF | |
11984 | #define $ac_tr_func 1 | |
11985 | EOF | |
11986 | ||
11987 | cat >> confdefs.h <<\EOF | |
11988 | #define HAVE_SHL_LOAD 1 | |
11989 | EOF | |
11990 | ||
11991 | HAVE_SHL_FUNCS=1 | |
11992 | ||
11993 | else | |
11994 | echo "$ac_t""no" 1>&6 | |
11995 | fi | |
11996 | done | |
11997 | ||
11998 | ||
11999 | fi | |
12000 | ||
12001 | ||
12002 | fi | |
12003 | done | |
12004 | ||
12005 | ||
12006 | if test "$HAVE_DL_FUNCS" = 0; then | |
12007 | if test "$HAVE_SHL_FUNCS" = 0; then | |
12008 | if test "$USE_UNIX" = 1; then | |
12009 | echo "configure: warning: "--with-dynlib and --with-odbc will be disabled due to missing shared library support"" 1>&2 | |
12010 | wxUSE_ODBC=no | |
12011 | wxUSE_DYNLIB_CLASS=no | |
12012 | else | |
12013 | echo "configure: warning: "Cannot check dynlib requirements on non-Unix platforms. dynlib remains enabled."" 1>&2 | |
12014 | fi | |
12015 | fi | |
12016 | fi | |
12017 | fi | |
12018 | ||
12019 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
12020 | cat >> confdefs.h <<\EOF | |
12021 | #define wxUSE_DYNLIB_CLASS 1 | |
12022 | EOF | |
12023 | ||
12024 | fi | |
12025 | ||
12026 | ||
12027 | if test "$wxUSE_UNICODE" = "yes" ; then | |
12028 | cat >> confdefs.h <<\EOF | |
12029 | #define wxUSE_UNICODE 1 | |
12030 | EOF | |
12031 | ||
12032 | fi | |
12033 | ||
12034 | if test "$wxUSE_WCSRTOMBS" = "yes" ; then | |
12035 | cat >> confdefs.h <<\EOF | |
12036 | #define wxUSE_WCSRTOMBS 1 | |
12037 | EOF | |
12038 | ||
12039 | fi | |
12040 | ||
12041 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
12042 | cat >> confdefs.h <<\EOF | |
12043 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
12044 | EOF | |
12045 | ||
12046 | fi | |
12047 | ||
12048 | ||
12049 | IODBC_C_SRC="" | |
12050 | if test "$wxUSE_ODBC" = "yes" ; then | |
12051 | cat >> confdefs.h <<\EOF | |
12052 | #define wxUSE_ODBC 1 | |
12053 | EOF | |
12054 | ||
12055 | WXODBCFLAG="-D_IODBC_" | |
12056 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
12057 | IODBCOBJS="\$(IODBC_OBJS)" | |
12058 | else | |
12059 | IODBCOBJS= | |
12060 | fi | |
12061 | ||
12062 | ||
12063 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
12064 | cat >> confdefs.h <<\EOF | |
12065 | #define wxUSE_POSTSCRIPT 1 | |
12066 | EOF | |
12067 | ||
12068 | fi | |
12069 | ||
12070 | cat >> confdefs.h <<\EOF | |
12071 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
12072 | EOF | |
12073 | ||
12074 | ||
12075 | cat >> confdefs.h <<\EOF | |
12076 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
12077 | EOF | |
12078 | ||
12079 | ||
12080 | ||
12081 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
12082 | cat >> confdefs.h <<\EOF | |
12083 | #define wxUSE_CONSTRAINTS 1 | |
12084 | EOF | |
12085 | ||
12086 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
12087 | fi | |
12088 | ||
12089 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
12090 | cat >> confdefs.h <<\EOF | |
12091 | #define wxUSE_MDI_ARCHITECTURE 1 | |
12092 | EOF | |
12093 | ||
12094 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" | |
12095 | fi | |
12096 | ||
12097 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
12098 | cat >> confdefs.h <<\EOF | |
12099 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
12100 | EOF | |
12101 | ||
12102 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
12103 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
12104 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
12105 | fi | |
12106 | fi | |
12107 | ||
12108 | if test "$wxUSE_HELP" = "yes"; then | |
12109 | cat >> confdefs.h <<\EOF | |
12110 | #define wxUSE_HELP 1 | |
12111 | EOF | |
12112 | ||
12113 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
12114 | fi | |
12115 | ||
12116 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
12117 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
12118 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 | |
12119 | else | |
12120 | cat >> confdefs.h <<\EOF | |
12121 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
12122 | EOF | |
12123 | ||
12124 | fi | |
12125 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
12126 | fi | |
12127 | ||
12128 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
12129 | cat >> confdefs.h <<\EOF | |
12130 | #define wxUSE_PROLOGIO 1 | |
12131 | EOF | |
12132 | ||
12133 | fi | |
12134 | ||
12135 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
12136 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
12137 | cat >> confdefs.h <<\EOF | |
12138 | #define wxUSE_RESOURCES 1 | |
12139 | EOF | |
12140 | ||
12141 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" | |
12142 | else | |
12143 | echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2 | |
12144 | fi | |
12145 | fi | |
12146 | ||
12147 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
12148 | cat >> confdefs.h <<\EOF | |
12149 | #define wxUSE_X_RESOURCES 1 | |
12150 | EOF | |
12151 | ||
12152 | fi | |
12153 | ||
12154 | ||
12155 | if test "$wxUSE_IPC" = "yes"; then | |
12156 | cat >> confdefs.h <<\EOF | |
12157 | #define wxUSE_IPC 1 | |
12158 | EOF | |
12159 | ||
12160 | fi | |
12161 | ||
12162 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
12163 | cat >> confdefs.h <<\EOF | |
12164 | #define wxUSE_CLIPBOARD 1 | |
12165 | EOF | |
12166 | ||
12167 | fi | |
12168 | ||
12169 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
12170 | if test "$wxUSE_GTK" = 1; then | |
12171 | if test "$WXGTK12" != 1; then | |
12172 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2 | |
12173 | wxUSE_DRAG_AND_DROP=no | |
12174 | fi | |
12175 | fi | |
12176 | ||
12177 | if test "$wxUSE_MOTIF" = 1; then | |
12178 | echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2 | |
12179 | wxUSE_DRAG_AND_DROP=no | |
12180 | fi | |
12181 | ||
12182 | if test "$USE_WIN32" = 1; then | |
12183 | for ac_hdr in ole2.h | |
12184 | do | |
12185 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
12186 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
12187 | echo "configure:12188: checking for $ac_hdr" >&5 | |
12188 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
12189 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12190 | else | |
12191 | cat > conftest.$ac_ext <<EOF | |
12192 | #line 12193 "configure" | |
12193 | #include "confdefs.h" | |
12194 | #include <$ac_hdr> | |
12195 | EOF | |
12196 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
12197 | { (eval echo configure:12198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
12198 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
12199 | if test -z "$ac_err"; then | |
12200 | rm -rf conftest* | |
12201 | eval "ac_cv_header_$ac_safe=yes" | |
12202 | else | |
12203 | echo "$ac_err" >&5 | |
12204 | echo "configure: failed program was:" >&5 | |
12205 | cat conftest.$ac_ext >&5 | |
12206 | rm -rf conftest* | |
12207 | eval "ac_cv_header_$ac_safe=no" | |
12208 | fi | |
12209 | rm -f conftest* | |
12210 | fi | |
12211 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12212 | echo "$ac_t""yes" 1>&6 | |
12213 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12214 | cat >> confdefs.h <<EOF | |
12215 | #define $ac_tr_hdr 1 | |
12216 | EOF | |
12217 | ||
12218 | else | |
12219 | echo "$ac_t""no" 1>&6 | |
12220 | fi | |
12221 | done | |
12222 | ||
12223 | if test "x$HAVE_OLE2_H" = x ; then | |
12224 | echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2 | |
12225 | wxUSE_DRAG_AND_DROP=no | |
12226 | fi | |
12227 | fi | |
12228 | ||
12229 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
12230 | cat >> confdefs.h <<\EOF | |
12231 | #define wxUSE_DRAG_AND_DROP 1 | |
12232 | EOF | |
12233 | ||
12234 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
12235 | fi | |
12236 | ||
12237 | fi | |
12238 | ||
12239 | if test "$wxUSE_SPLINES" = "yes" ; then | |
12240 | cat >> confdefs.h <<\EOF | |
12241 | #define wxUSE_SPLINES 1 | |
12242 | EOF | |
12243 | ||
12244 | fi | |
12245 | ||
12246 | ||
12247 | if test "$wxUSE_ACCEL" = "yes"; then | |
12248 | cat >> confdefs.h <<\EOF | |
12249 | #define wxUSE_ACCEL 1 | |
12250 | EOF | |
12251 | ||
12252 | fi | |
12253 | ||
12254 | if test "$wxUSE_CARET" = "yes"; then | |
12255 | cat >> confdefs.h <<\EOF | |
12256 | #define wxUSE_CARET 1 | |
12257 | EOF | |
12258 | ||
12259 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
12260 | fi | |
12261 | ||
12262 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
12263 | cat >> confdefs.h <<\EOF | |
12264 | #define wxUSE_COMBOBOX 1 | |
12265 | EOF | |
12266 | ||
12267 | fi | |
12268 | ||
12269 | if test "$wxUSE_CHOICE" = "yes"; then | |
12270 | cat >> confdefs.h <<\EOF | |
12271 | #define wxUSE_CHOICE 1 | |
12272 | EOF | |
12273 | ||
12274 | fi | |
12275 | ||
12276 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
12277 | cat >> confdefs.h <<\EOF | |
12278 | #define wxUSE_BMPBUTTON 1 | |
12279 | EOF | |
12280 | ||
12281 | fi | |
12282 | ||
12283 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
12284 | cat >> confdefs.h <<\EOF | |
12285 | #define wxUSE_CHECKBOX 1 | |
12286 | EOF | |
12287 | ||
12288 | fi | |
12289 | ||
12290 | if test "$wxUSE_CHECKLST" = "yes"; then | |
12291 | cat >> confdefs.h <<\EOF | |
12292 | #define wxUSE_CHECKLISTBOX 1 | |
12293 | EOF | |
12294 | ||
12295 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
12296 | fi | |
12297 | ||
12298 | if test "$wxUSE_GAUGE" = "yes"; then | |
12299 | cat >> confdefs.h <<\EOF | |
12300 | #define wxUSE_GAUGE 1 | |
12301 | EOF | |
12302 | ||
12303 | fi | |
12304 | ||
12305 | if test "$wxUSE_GRID" = "yes"; then | |
12306 | cat >> confdefs.h <<\EOF | |
12307 | #define wxUSE_GRID 1 | |
12308 | EOF | |
12309 | ||
12310 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
12311 | fi | |
12312 | ||
12313 | if test "$wxUSE_NEW_GRID" = "yes"; then | |
12314 | cat >> confdefs.h <<\EOF | |
12315 | #define wxUSE_NEW_GRID 1 | |
12316 | EOF | |
12317 | ||
12318 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" | |
12319 | fi | |
12320 | ||
12321 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
12322 | cat >> confdefs.h <<\EOF | |
12323 | #define wxUSE_IMAGLIST 1 | |
12324 | EOF | |
12325 | ||
12326 | fi | |
12327 | ||
12328 | if test "$wxUSE_LISTBOX" = "yes"; then | |
12329 | cat >> confdefs.h <<\EOF | |
12330 | #define wxUSE_LISTBOX 1 | |
12331 | EOF | |
12332 | ||
12333 | fi | |
12334 | ||
12335 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
12336 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
12337 | cat >> confdefs.h <<\EOF | |
12338 | #define wxUSE_LISTCTRL 1 | |
12339 | EOF | |
12340 | ||
12341 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
12342 | else | |
12343 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 | |
12344 | fi | |
12345 | fi | |
12346 | ||
12347 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
12348 | cat >> confdefs.h <<\EOF | |
12349 | #define wxUSE_NOTEBOOK 1 | |
12350 | EOF | |
12351 | ||
12352 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
12353 | fi | |
12354 | ||
12355 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
12356 | cat >> confdefs.h <<\EOF | |
12357 | #define wxUSE_RADIOBOX 1 | |
12358 | EOF | |
12359 | ||
12360 | fi | |
12361 | ||
12362 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
12363 | cat >> confdefs.h <<\EOF | |
12364 | #define wxUSE_RADIOBTN 1 | |
12365 | EOF | |
12366 | ||
12367 | fi | |
12368 | ||
12369 | if test "$wxUSE_SASH" = "yes"; then | |
12370 | cat >> confdefs.h <<\EOF | |
12371 | #define wxUSE_SASH 1 | |
12372 | EOF | |
12373 | ||
12374 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
12375 | fi | |
12376 | ||
12377 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
12378 | cat >> confdefs.h <<\EOF | |
12379 | #define wxUSE_SCROLLBAR 1 | |
12380 | EOF | |
12381 | ||
12382 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" | |
12383 | fi | |
12384 | ||
12385 | if test "$wxUSE_SLIDER" = "yes"; then | |
12386 | cat >> confdefs.h <<\EOF | |
12387 | #define wxUSE_SLIDER 1 | |
12388 | EOF | |
12389 | ||
12390 | fi | |
12391 | ||
12392 | if test "$wxUSE_SPINBTN" = "yes"; then | |
12393 | cat >> confdefs.h <<\EOF | |
12394 | #define wxUSE_SPINBTN 1 | |
12395 | EOF | |
12396 | ||
12397 | fi | |
12398 | ||
12399 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
12400 | cat >> confdefs.h <<\EOF | |
12401 | #define wxUSE_SPINCTRL 1 | |
12402 | EOF | |
12403 | ||
12404 | fi | |
12405 | ||
12406 | if test "$wxUSE_SPLITTER" = "yes"; then | |
12407 | cat >> confdefs.h <<\EOF | |
12408 | #define wxUSE_SPLITTER 1 | |
12409 | EOF | |
12410 | ||
12411 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
12412 | fi | |
12413 | ||
12414 | if test "$wxUSE_STATBMP" = "yes"; then | |
12415 | cat >> confdefs.h <<\EOF | |
12416 | #define wxUSE_STATBMP 1 | |
12417 | EOF | |
12418 | ||
12419 | fi | |
12420 | ||
12421 | if test "$wxUSE_STATBOX" = "yes"; then | |
12422 | cat >> confdefs.h <<\EOF | |
12423 | #define wxUSE_STATBOX 1 | |
12424 | EOF | |
12425 | ||
12426 | fi | |
12427 | ||
12428 | if test "$wxUSE_STATLINE" = "yes"; then | |
12429 | if test "$wxUSE_WINE" = 1 ; then | |
12430 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 | |
12431 | else | |
12432 | cat >> confdefs.h <<\EOF | |
12433 | #define wxUSE_STATLINE 1 | |
12434 | EOF | |
12435 | ||
12436 | fi | |
12437 | fi | |
12438 | ||
12439 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
12440 | cat >> confdefs.h <<\EOF | |
12441 | #define wxUSE_STATUSBAR 1 | |
12442 | EOF | |
12443 | ||
12444 | fi | |
12445 | ||
12446 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
12447 | cat >> confdefs.h <<\EOF | |
12448 | #define wxUSE_TAB_DIALOG 1 | |
12449 | EOF | |
12450 | ||
12451 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
12452 | fi | |
12453 | ||
12454 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
12455 | cat >> confdefs.h <<\EOF | |
12456 | #define wxUSE_TOOLBAR 1 | |
12457 | EOF | |
12458 | ||
12459 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
12460 | fi | |
12461 | ||
12462 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
12463 | if test "$wxUSE_MOTIF" = 1; then | |
12464 | echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2 | |
12465 | else | |
12466 | if test "$wxUSE_WINE" = 1; then | |
12467 | echo "configure: warning: wxTooltip not supported under WINE" 1>&2 | |
12468 | else | |
12469 | cat >> confdefs.h <<\EOF | |
12470 | #define wxUSE_TOOLTIPS 1 | |
12471 | EOF | |
12472 | ||
12473 | fi | |
12474 | fi | |
12475 | fi | |
12476 | ||
12477 | if test "$wxUSE_TREECTRL" = "yes"; then | |
12478 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
12479 | cat >> confdefs.h <<\EOF | |
12480 | #define wxUSE_TREECTRL 1 | |
12481 | EOF | |
12482 | ||
12483 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
12484 | else | |
12485 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 | |
12486 | fi | |
12487 | fi | |
12488 | ||
12489 | ||
12490 | ||
12491 | if test "$wxUSE_METAFILE" = "yes"; then | |
12492 | cat >> confdefs.h <<\EOF | |
12493 | #define wxUSE_METAFILE 1 | |
12494 | EOF | |
12495 | ||
12496 | fi | |
12497 | ||
12498 | if test "$wxUSE_DIRDLG" = "yes"; then | |
12499 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
12500 | echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2 | |
12501 | else | |
12502 | if test "$wxUSE_TREECTRL" != "yes"; then | |
12503 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
12504 | else | |
12505 | cat >> confdefs.h <<\EOF | |
12506 | #define wxUSE_DIRDLG 1 | |
12507 | EOF | |
12508 | ||
12509 | fi | |
12510 | fi | |
12511 | fi | |
12512 | ||
12513 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
12514 | cat >> confdefs.h <<\EOF | |
12515 | #define wxUSE_TEXTDLG 1 | |
12516 | EOF | |
12517 | ||
12518 | fi | |
12519 | ||
12520 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
12521 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
12522 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
12523 | else | |
12524 | cat >> confdefs.h <<\EOF | |
12525 | #define wxUSE_STARTUP_TIPS 1 | |
12526 | EOF | |
12527 | ||
12528 | fi | |
12529 | fi | |
12530 | ||
12531 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
12532 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
12533 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
12534 | else | |
12535 | cat >> confdefs.h <<\EOF | |
12536 | #define wxUSE_PROGRESSDLG 1 | |
12537 | EOF | |
12538 | ||
12539 | fi | |
12540 | fi | |
12541 | ||
12542 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
12543 | cat >> confdefs.h <<\EOF | |
12544 | #define wxUSE_MINIFRAME 1 | |
12545 | EOF | |
12546 | ||
12547 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
12548 | fi | |
12549 | ||
12550 | if test "$wxUSE_HTML" = "yes"; then | |
12551 | cat >> confdefs.h <<\EOF | |
12552 | #define wxUSE_HTML 1 | |
12553 | EOF | |
12554 | ||
12555 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
12556 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html" | |
12557 | fi | |
12558 | ||
12559 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
12560 | cat >> confdefs.h <<\EOF | |
12561 | #define wxUSE_VALIDATORS 1 | |
12562 | EOF | |
12563 | ||
12564 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
12565 | fi | |
12566 | ||
12567 | if test "$wxUSE_GIF" = "yes" ; then | |
12568 | cat >> confdefs.h <<\EOF | |
12569 | #define wxUSE_GIF 1 | |
12570 | EOF | |
12571 | ||
12572 | fi | |
12573 | ||
12574 | if test "$wxUSE_PCX" = "yes" ; then | |
12575 | cat >> confdefs.h <<\EOF | |
12576 | #define wxUSE_PCX 1 | |
12577 | EOF | |
12578 | ||
12579 | fi | |
12580 | ||
12581 | if test "$wxUSE_PNM" = "yes" ; then | |
12582 | cat >> confdefs.h <<\EOF | |
12583 | #define wxUSE_PNM 1 | |
12584 | EOF | |
12585 | ||
12586 | fi | |
12587 | ||
12588 | ||
12589 | OSINFO=`uname -s -r -m` | |
12590 | OSINFO="\"$OSINFO\"" | |
12591 | cat >> confdefs.h <<EOF | |
12592 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
12593 | EOF | |
12594 | ||
12595 | ||
12596 | ||
12597 | GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $LIBPNG_LINK $ZLIB_LINK $TOOLKIT_LINK" | |
12598 | ||
12599 | EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK" | |
12600 | if test "$wxUSE_GUI" = "yes"; then | |
12601 | EXTRA_LIBS="$EXTRA_LIBS $GUILIBS" | |
12602 | fi | |
12603 | ||
12604 | LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS" | |
12605 | ||
12606 | INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE" | |
12607 | ||
12608 | if test "$GXX" = yes ; then | |
12609 | CXXWARNINGS="-Wall" | |
12610 | fi | |
12611 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" | |
12612 | ||
12613 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS | sed 's/ \\+/ /g'` | |
12614 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
12615 | ||
12616 | if test "$wxUSE_GUI" = "yes"; then | |
12617 | ||
12618 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS bombs controls dialogs drawing dynamic \ | |
12619 | font forty fractal image minimal richedit wxpoem" | |
12620 | else | |
12621 | SAMPLES_SUBDIRS="" | |
12622 | fi | |
12623 | ||
12624 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '`" | |
12625 | ||
12626 | ||
12627 | ||
12628 | ||
12629 | ||
12630 | ||
12631 | ||
12632 | ||
12633 | ||
12634 | ||
12635 | ||
12636 | ||
12637 | ||
12638 | ||
12639 | ||
12640 | ||
12641 | ||
12642 | ||
12643 | ||
12644 | ||
12645 | ||
12646 | ||
12647 | ||
12648 | ||
12649 | ||
12650 | ||
12651 | ||
12652 | ||
12653 | ||
12654 | ||
12655 | ||
12656 | ||
12657 | ||
12658 | ||
12659 | ||
12660 | ||
12661 | ||
12662 | ||
12663 | ||
12664 | ||
12665 | ||
12666 | ||
12667 | ||
12668 | ||
12669 | ||
12670 | ||
12671 | ||
12672 | ||
12673 | ||
12674 | ||
12675 | ||
12676 | ||
12677 | ||
12678 | ||
12679 | ||
12680 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
12681 | echo "configure:12682: checking whether ${MAKE-make} sets \${MAKE}" >&5 | |
12682 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` | |
12683 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
12684 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12685 | else | |
12686 | cat > conftestmake <<\EOF | |
12687 | all: | |
12688 | @echo 'ac_maketemp="${MAKE}"' | |
12689 | EOF | |
12690 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
12691 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
12692 | if test -n "$ac_maketemp"; then | |
12693 | eval ac_cv_prog_make_${ac_make}_set=yes | |
12694 | else | |
12695 | eval ac_cv_prog_make_${ac_make}_set=no | |
12696 | fi | |
12697 | rm -f conftestmake | |
12698 | fi | |
12699 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
12700 | echo "$ac_t""yes" 1>&6 | |
12701 | SET_MAKE= | |
12702 | else | |
12703 | echo "$ac_t""no" 1>&6 | |
12704 | SET_MAKE="MAKE=${MAKE-make}" | |
12705 | fi | |
12706 | ||
12707 | ||
12708 | ||
12709 | ||
12710 | if test "${TOOLKIT_DIR}" = "msw" ; then | |
12711 | GL_TOOLKIT_DIR="win" | |
12712 | else | |
12713 | GL_TOOLKIT_DIR="${TOOLKIT_DIR}" | |
12714 | fi | |
12715 | ||
12716 | ||
12717 | trap '' 1 2 15 | |
12718 | cat > confcache <<\EOF | |
12719 | # This file is a shell script that caches the results of configure | |
12720 | # tests run on this system so they can be shared between configure | |
12721 | # scripts and configure runs. It is not useful on other systems. | |
12722 | # If it contains results you don't want to keep, you may remove or edit it. | |
12723 | # | |
12724 | # By default, configure uses ./config.cache as the cache file, | |
12725 | # creating it if it does not exist already. You can give configure | |
12726 | # the --cache-file=FILE option to use a different cache file; that is | |
12727 | # what configure does when it calls configure scripts in | |
12728 | # subdirectories, so they share the cache. | |
12729 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
12730 | # config.status only pays attention to the cache file if you give it the | |
12731 | # --recheck option to rerun configure. | |
12732 | # | |
12733 | EOF | |
12734 | # The following way of writing the cache mishandles newlines in values, | |
12735 | # but we know of no workaround that is simple, portable, and efficient. | |
12736 | # So, don't put newlines in cache variables' values. | |
12737 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
12738 | # and sets the high bit in the cache file unless we assign to the vars. | |
12739 | (set) 2>&1 | | |
12740 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
12741 | *ac_space=\ *) | |
12742 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
12743 | # turns \\\\ into \\, and sed turns \\ into \). | |
12744 | sed -n \ | |
12745 | -e "s/'/'\\\\''/g" \ | |
12746 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
12747 | ;; | |
12748 | *) | |
12749 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
12750 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
12751 | ;; | |
12752 | esac >> confcache | |
12753 | if cmp -s $cache_file confcache; then | |
12754 | : | |
12755 | else | |
12756 | if test -w $cache_file; then | |
12757 | echo "updating cache $cache_file" | |
12758 | cat confcache > $cache_file | |
12759 | else | |
12760 | echo "not updating unwritable cache $cache_file" | |
12761 | fi | |
12762 | fi | |
12763 | rm -f confcache | |
12764 | ||
12765 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
12766 | ||
12767 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
12768 | # Let make expand exec_prefix. | |
12769 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
12770 | ||
12771 | # Any assignment to VPATH causes Sun make to only execute | |
12772 | # the first set of double-colon rules, so remove it if not needed. | |
12773 | # If there is a colon in the path, we need to keep it. | |
12774 | if test "x$srcdir" = x.; then | |
12775 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
12776 | fi | |
12777 | ||
12778 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
12779 | ||
12780 | DEFS=-DHAVE_CONFIG_H | |
12781 | ||
12782 | # Without the "./", some shells look in PATH for config.status. | |
12783 | : ${CONFIG_STATUS=./config.status} | |
12784 | ||
12785 | echo creating $CONFIG_STATUS | |
12786 | rm -f $CONFIG_STATUS | |
12787 | cat > $CONFIG_STATUS <<EOF | |
12788 | #! /bin/sh | |
12789 | # Generated automatically by configure. | |
12790 | # Run this file to recreate the current configuration. | |
12791 | # This directory was configured as follows, | |
12792 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
12793 | # | |
12794 | # $0 $ac_configure_args | |
12795 | # | |
12796 | # Compiler output produced by configure, useful for debugging | |
12797 | # configure, is in ./config.log if it exists. | |
12798 | ||
12799 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
12800 | for ac_option | |
12801 | do | |
12802 | case "\$ac_option" in | |
12803 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
12804 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
12805 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
12806 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
12807 | echo "$CONFIG_STATUS generated by autoconf version 2.14" | |
12808 | exit 0 ;; | |
12809 | -help | --help | --hel | --he | --h) | |
12810 | echo "\$ac_cs_usage"; exit 0 ;; | |
12811 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
12812 | esac | |
12813 | done | |
12814 | ||
12815 | ac_given_srcdir=$srcdir | |
12816 | ac_given_INSTALL="$INSTALL" | |
12817 | ||
12818 | trap 'rm -fr `echo " | |
12819 | wx-config | |
12820 | src/make.env | |
12821 | src/makeprog.env | |
12822 | src/makelib.env | |
12823 | Makefile | |
12824 | samples/Makefile | |
12825 | samples/bombs/Makefile | |
12826 | samples/caret/Makefile | |
12827 | samples/checklst/Makefile | |
12828 | samples/config/Makefile | |
12829 | samples/controls/Makefile | |
12830 | samples/console/Makefile | |
12831 | samples/db/Makefile | |
12832 | samples/dialogs/Makefile | |
12833 | samples/docview/Makefile | |
12834 | samples/docvwmdi/Makefile | |
12835 | samples/dnd/Makefile | |
12836 | samples/drawing/Makefile | |
12837 | samples/forty/Makefile | |
12838 | samples/font/Makefile | |
12839 | samples/fractal/Makefile | |
12840 | samples/image/Makefile | |
12841 | samples/internat/Makefile | |
12842 | samples/layout/Makefile | |
12843 | samples/listctrl/Makefile | |
12844 | samples/mdi/Makefile | |
12845 | samples/minifram/Makefile | |
12846 | samples/minimal/Makefile | |
12847 | samples/nettest/Makefile | |
12848 | samples/newgrid/Makefile | |
12849 | samples/notebook/Makefile | |
12850 | samples/png/Makefile | |
12851 | samples/printing/Makefile | |
12852 | samples/proplist/Makefile | |
12853 | samples/richedit/Makefile | |
12854 | samples/resource/Makefile | |
12855 | samples/sashtest/Makefile | |
12856 | samples/scroll/Makefile | |
12857 | samples/scrollsub/Makefile | |
12858 | samples/splitter/Makefile | |
12859 | samples/text/Makefile | |
12860 | samples/thread/Makefile | |
12861 | samples/toolbar/Makefile | |
12862 | samples/treectrl/Makefile | |
12863 | samples/typetest/Makefile | |
12864 | samples/validate/Makefile | |
12865 | samples/wxpoem/Makefile | |
12866 | samples/wxsocket/Makefile | |
12867 | samples/wizard/Makefile | |
12868 | samples/html/Makefile | |
12869 | samples/html/about/Makefile | |
12870 | samples/html/help/Makefile | |
12871 | samples/html/printing/Makefile | |
12872 | samples/html/helpview/Makefile | |
12873 | samples/html/test/Makefile | |
12874 | samples/html/zip/Makefile | |
12875 | samples/html/virtual/Makefile | |
12876 | samples/html/widget/Makefile | |
12877 | utils/Makefile | |
12878 | utils/wxMMedia2/Makefile | |
12879 | utils/wxMMedia2/lib/Makefile | |
12880 | utils/wxMMedia2/sample/Makefile | |
12881 | utils/glcanvas/Makefile | |
12882 | utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile | |
12883 | utils/ogl/Makefile | |
12884 | utils/ogl/src/Makefile | |
12885 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
12886 | EOF | |
12887 | cat >> $CONFIG_STATUS <<EOF | |
12888 | ||
12889 | # Protect against being on the right side of a sed subst in config.status. | |
12890 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
12891 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
12892 | $ac_vpsub | |
12893 | $extrasub | |
12894 | s%@SHELL@%$SHELL%g | |
12895 | s%@CFLAGS@%$CFLAGS%g | |
12896 | s%@CPPFLAGS@%$CPPFLAGS%g | |
12897 | s%@CXXFLAGS@%$CXXFLAGS%g | |
12898 | s%@FFLAGS@%$FFLAGS%g | |
12899 | s%@DEFS@%$DEFS%g | |
12900 | s%@LDFLAGS@%$LDFLAGS%g | |
12901 | s%@LIBS@%$LIBS%g | |
12902 | s%@exec_prefix@%$exec_prefix%g | |
12903 | s%@prefix@%$prefix%g | |
12904 | s%@program_transform_name@%$program_transform_name%g | |
12905 | s%@bindir@%$bindir%g | |
12906 | s%@sbindir@%$sbindir%g | |
12907 | s%@libexecdir@%$libexecdir%g | |
12908 | s%@datadir@%$datadir%g | |
12909 | s%@sysconfdir@%$sysconfdir%g | |
12910 | s%@sharedstatedir@%$sharedstatedir%g | |
12911 | s%@localstatedir@%$localstatedir%g | |
12912 | s%@libdir@%$libdir%g | |
12913 | s%@includedir@%$includedir%g | |
12914 | s%@oldincludedir@%$oldincludedir%g | |
12915 | s%@infodir@%$infodir%g | |
12916 | s%@mandir@%$mandir%g | |
12917 | s%@host@%$host%g | |
12918 | s%@host_alias@%$host_alias%g | |
12919 | s%@host_cpu@%$host_cpu%g | |
12920 | s%@host_vendor@%$host_vendor%g | |
12921 | s%@host_os@%$host_os%g | |
12922 | s%@target@%$target%g | |
12923 | s%@target_alias@%$target_alias%g | |
12924 | s%@target_cpu@%$target_cpu%g | |
12925 | s%@target_vendor@%$target_vendor%g | |
12926 | s%@target_os@%$target_os%g | |
12927 | s%@build@%$build%g | |
12928 | s%@build_alias@%$build_alias%g | |
12929 | s%@build_cpu@%$build_cpu%g | |
12930 | s%@build_vendor@%$build_vendor%g | |
12931 | s%@build_os@%$build_os%g | |
12932 | s%@CC@%$CC%g | |
12933 | s%@CPP@%$CPP%g | |
12934 | s%@CXX@%$CXX%g | |
12935 | s%@CXXCPP@%$CXXCPP%g | |
12936 | s%@RANLIB@%$RANLIB%g | |
12937 | s%@AR@%$AR%g | |
12938 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
12939 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
12940 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
12941 | s%@STRIP@%$STRIP%g | |
12942 | s%@YACC@%$YACC%g | |
12943 | s%@LEX@%$LEX%g | |
12944 | s%@LEXLIB@%$LEXLIB%g | |
12945 | s%@LN_S@%$LN_S%g | |
12946 | s%@GTK_CONFIG@%$GTK_CONFIG%g | |
12947 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g | |
12948 | s%@GTK_LIBS@%$GTK_LIBS%g | |
12949 | s%@X_CFLAGS@%$X_CFLAGS%g | |
12950 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
12951 | s%@X_LIBS@%$X_LIBS%g | |
12952 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
12953 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
12954 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
12955 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
12956 | s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g | |
12957 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
12958 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
12959 | s%@WX_LIBRARY@%$WX_LIBRARY%g | |
12960 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
12961 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
12962 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
12963 | s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g | |
12964 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g | |
12965 | s%@WX_ALL@%$WX_ALL%g | |
12966 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
12967 | s%@SHARED_LD@%$SHARED_LD%g | |
12968 | s%@PIC_FLAG@%$PIC_FLAG%g | |
12969 | s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g | |
12970 | s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g | |
12971 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
12972 | s%@TOOLKIT@%$TOOLKIT%g | |
12973 | s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g | |
12974 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
12975 | s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g | |
12976 | s%@GUIHEADERS@%$GUIHEADERS%g | |
12977 | s%@GUIOBJS@%$GUIOBJS%g | |
12978 | s%@COMMONOBJS@%$COMMONOBJS%g | |
12979 | s%@GENERICOBJS@%$GENERICOBJS%g | |
12980 | s%@GUIDEPS@%$GUIDEPS%g | |
12981 | s%@COMMONDEPS@%$COMMONDEPS%g | |
12982 | s%@GENERICDEPS@%$GENERICDEPS%g | |
12983 | s%@IODBCOBJS@%$IODBCOBJS%g | |
12984 | s%@UNIXOBJS@%$UNIXOBJS%g | |
12985 | s%@UNIXDEPS@%$UNIXDEPS%g | |
12986 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
12987 | s%@ALL_DEPFILES@%$ALL_DEPFILES%g | |
12988 | s%@ALL_HEADERS@%$ALL_HEADERS%g | |
12989 | s%@GUIDIST@%$GUIDIST%g | |
12990 | s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g | |
12991 | s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g | |
12992 | s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g | |
12993 | s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g | |
12994 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g | |
12995 | s%@USER_SUBDIRS@%$USER_SUBDIRS%g | |
12996 | s%@EXTRA_LIBS@%$EXTRA_LIBS%g | |
12997 | s%@LD_LIBS@%$LD_LIBS%g | |
12998 | s%@SET_MAKE@%$SET_MAKE%g | |
12999 | s%@GL_TOOLKIT_DIR@%$GL_TOOLKIT_DIR%g | |
13000 | ||
13001 | CEOF | |
13002 | EOF | |
13003 | ||
13004 | cat >> $CONFIG_STATUS <<\EOF | |
13005 | ||
13006 | # Split the substitutions into bite-sized pieces for seds with | |
13007 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
13008 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
13009 | ac_file=1 # Number of current file. | |
13010 | ac_beg=1 # First line for current file. | |
13011 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
13012 | ac_more_lines=: | |
13013 | ac_sed_cmds="" | |
13014 | while $ac_more_lines; do | |
13015 | if test $ac_beg -gt 1; then | |
13016 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
13017 | else | |
13018 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
13019 | fi | |
13020 | if test ! -s conftest.s$ac_file; then | |
13021 | ac_more_lines=false | |
13022 | rm -f conftest.s$ac_file | |
13023 | else | |
13024 | if test -z "$ac_sed_cmds"; then | |
13025 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
13026 | else | |
13027 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
13028 | fi | |
13029 | ac_file=`expr $ac_file + 1` | |
13030 | ac_beg=$ac_end | |
13031 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
13032 | fi | |
13033 | done | |
13034 | if test -z "$ac_sed_cmds"; then | |
13035 | ac_sed_cmds=cat | |
13036 | fi | |
13037 | EOF | |
13038 | ||
13039 | cat >> $CONFIG_STATUS <<EOF | |
13040 | ||
13041 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
13042 | src/make.env | |
13043 | src/makeprog.env | |
13044 | src/makelib.env | |
13045 | Makefile | |
13046 | samples/Makefile | |
13047 | samples/bombs/Makefile | |
13048 | samples/caret/Makefile | |
13049 | samples/checklst/Makefile | |
13050 | samples/config/Makefile | |
13051 | samples/controls/Makefile | |
13052 | samples/console/Makefile | |
13053 | samples/db/Makefile | |
13054 | samples/dialogs/Makefile | |
13055 | samples/docview/Makefile | |
13056 | samples/docvwmdi/Makefile | |
13057 | samples/dnd/Makefile | |
13058 | samples/drawing/Makefile | |
13059 | samples/forty/Makefile | |
13060 | samples/font/Makefile | |
13061 | samples/fractal/Makefile | |
13062 | samples/image/Makefile | |
13063 | samples/internat/Makefile | |
13064 | samples/layout/Makefile | |
13065 | samples/listctrl/Makefile | |
13066 | samples/mdi/Makefile | |
13067 | samples/minifram/Makefile | |
13068 | samples/minimal/Makefile | |
13069 | samples/nettest/Makefile | |
13070 | samples/newgrid/Makefile | |
13071 | samples/notebook/Makefile | |
13072 | samples/png/Makefile | |
13073 | samples/printing/Makefile | |
13074 | samples/proplist/Makefile | |
13075 | samples/richedit/Makefile | |
13076 | samples/resource/Makefile | |
13077 | samples/sashtest/Makefile | |
13078 | samples/scroll/Makefile | |
13079 | samples/scrollsub/Makefile | |
13080 | samples/splitter/Makefile | |
13081 | samples/text/Makefile | |
13082 | samples/thread/Makefile | |
13083 | samples/toolbar/Makefile | |
13084 | samples/treectrl/Makefile | |
13085 | samples/typetest/Makefile | |
13086 | samples/validate/Makefile | |
13087 | samples/wxpoem/Makefile | |
13088 | samples/wxsocket/Makefile | |
13089 | samples/wizard/Makefile | |
13090 | samples/html/Makefile | |
13091 | samples/html/about/Makefile | |
13092 | samples/html/help/Makefile | |
13093 | samples/html/printing/Makefile | |
13094 | samples/html/helpview/Makefile | |
13095 | samples/html/test/Makefile | |
13096 | samples/html/zip/Makefile | |
13097 | samples/html/virtual/Makefile | |
13098 | samples/html/widget/Makefile | |
13099 | utils/Makefile | |
13100 | utils/wxMMedia2/Makefile | |
13101 | utils/wxMMedia2/lib/Makefile | |
13102 | utils/wxMMedia2/sample/Makefile | |
13103 | utils/glcanvas/Makefile | |
13104 | utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile | |
13105 | utils/ogl/Makefile | |
13106 | utils/ogl/src/Makefile | |
13107 | "} | |
13108 | EOF | |
13109 | cat >> $CONFIG_STATUS <<\EOF | |
13110 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
13111 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
13112 | case "$ac_file" in | |
13113 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
13114 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
13115 | *) ac_file_in="${ac_file}.in" ;; | |
13116 | esac | |
13117 | ||
13118 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
13119 | ||
13120 | # Remove last slash and all that follows it. Not all systems have dirname. | |
13121 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
13122 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
13123 | # The file is in a subdirectory. | |
13124 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
13125 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
13126 | # A "../" for each directory in $ac_dir_suffix. | |
13127 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
13128 | else | |
13129 | ac_dir_suffix= ac_dots= | |
13130 | fi | |
13131 | ||
13132 | case "$ac_given_srcdir" in | |
13133 | .) srcdir=. | |
13134 | if test -z "$ac_dots"; then top_srcdir=. | |
13135 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
13136 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
13137 | *) # Relative path. | |
13138 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
13139 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
13140 | esac | |
13141 | ||
13142 | case "$ac_given_INSTALL" in | |
13143 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
13144 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
13145 | esac | |
13146 | ||
13147 | echo creating "$ac_file" | |
13148 | rm -f "$ac_file" | |
13149 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
13150 | case "$ac_file" in | |
13151 | *Makefile*) ac_comsub="1i\\ | |
13152 | # $configure_input" ;; | |
13153 | *) ac_comsub= ;; | |
13154 | esac | |
13155 | ||
13156 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
13157 | sed -e "$ac_comsub | |
13158 | s%@configure_input@%$configure_input%g | |
13159 | s%@srcdir@%$srcdir%g | |
13160 | s%@top_srcdir@%$top_srcdir%g | |
13161 | s%@INSTALL@%$INSTALL%g | |
13162 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
13163 | fi; done | |
13164 | rm -f conftest.s* | |
13165 | ||
13166 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
13167 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
13168 | # | |
13169 | # ac_d sets the value in "#define NAME VALUE" lines. | |
13170 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
13171 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
13172 | ac_dC='\3' | |
13173 | ac_dD='%g' | |
13174 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
13175 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
13176 | ac_uB='\([ ]\)%\1#\2define\3' | |
13177 | ac_uC=' ' | |
13178 | ac_uD='\4%g' | |
13179 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
13180 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
13181 | ac_eB='$%\1#\2define\3' | |
13182 | ac_eC=' ' | |
13183 | ac_eD='%g' | |
13184 | ||
13185 | if test "${CONFIG_HEADERS+set}" != set; then | |
13186 | EOF | |
13187 | cat >> $CONFIG_STATUS <<EOF | |
13188 | CONFIG_HEADERS="setup.h:setup.h.in" | |
13189 | EOF | |
13190 | cat >> $CONFIG_STATUS <<\EOF | |
13191 | fi | |
13192 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
13193 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
13194 | case "$ac_file" in | |
13195 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
13196 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
13197 | *) ac_file_in="${ac_file}.in" ;; | |
13198 | esac | |
13199 | ||
13200 | echo creating $ac_file | |
13201 | ||
13202 | rm -f conftest.frag conftest.in conftest.out | |
13203 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
13204 | cat $ac_file_inputs > conftest.in | |
13205 | ||
13206 | EOF | |
13207 | ||
13208 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
13209 | # the proper values into config.h.in to produce config.h. And first: | |
13210 | # Protect against being on the right side of a sed subst in config.status. | |
13211 | # Protect against being in an unquoted here document in config.status. | |
13212 | rm -f conftest.vals | |
13213 | cat > conftest.hdr <<\EOF | |
13214 | s/[\\&%]/\\&/g | |
13215 | s%[\\$`]%\\&%g | |
13216 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
13217 | s%ac_d%ac_u%gp | |
13218 | s%ac_u%ac_e%gp | |
13219 | EOF | |
13220 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
13221 | rm -f conftest.hdr | |
13222 | ||
13223 | # This sed command replaces #undef with comments. This is necessary, for | |
13224 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
13225 | # on some systems where configure will not decide to define it. | |
13226 | cat >> conftest.vals <<\EOF | |
13227 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
13228 | EOF | |
13229 | ||
13230 | # Break up conftest.vals because some shells have a limit on | |
13231 | # the size of here documents, and old seds have small limits too. | |
13232 | ||
13233 | rm -f conftest.tail | |
13234 | while : | |
13235 | do | |
13236 | ac_lines=`grep -c . conftest.vals` | |
13237 | # grep -c gives empty output for an empty file on some AIX systems. | |
13238 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
13239 | # Write a limited-size here document to conftest.frag. | |
13240 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
13241 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
13242 | echo 'CEOF | |
13243 | sed -f conftest.frag conftest.in > conftest.out | |
13244 | rm -f conftest.in | |
13245 | mv conftest.out conftest.in | |
13246 | ' >> $CONFIG_STATUS | |
13247 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
13248 | rm -f conftest.vals | |
13249 | mv conftest.tail conftest.vals | |
13250 | done | |
13251 | rm -f conftest.vals | |
13252 | ||
13253 | cat >> $CONFIG_STATUS <<\EOF | |
13254 | rm -f conftest.frag conftest.h | |
13255 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
13256 | cat conftest.in >> conftest.h | |
13257 | rm -f conftest.in | |
13258 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
13259 | echo "$ac_file is unchanged" | |
13260 | rm -f conftest.h | |
13261 | else | |
13262 | # Remove last slash and all that follows it. Not all systems have dirname. | |
13263 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
13264 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
13265 | # The file is in a subdirectory. | |
13266 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
13267 | fi | |
13268 | rm -f $ac_file | |
13269 | mv conftest.h $ac_file | |
13270 | fi | |
13271 | fi; done | |
13272 | ||
13273 | EOF | |
13274 | cat >> $CONFIG_STATUS <<EOF | |
13275 | ||
13276 | TOOLKIT_DIR="${TOOLKIT_DIR}" | |
13277 | ||
13278 | ||
13279 | EOF | |
13280 | cat >> $CONFIG_STATUS <<\EOF | |
13281 | ||
13282 | chmod +x wx-config | |
13283 | if test ! -d include; then | |
13284 | mkdir include | |
13285 | fi | |
13286 | if test ! -d include/wx; then | |
13287 | mkdir include/wx | |
13288 | fi | |
13289 | if test ! -d include/wx/${TOOLKIT_DIR}; then | |
13290 | mkdir include/wx/${TOOLKIT_DIR} | |
13291 | fi | |
13292 | if test -f setup.h; then | |
13293 | mv -f setup.h include/wx/${TOOLKIT_DIR}/setup.h | |
13294 | fi | |
13295 | ||
13296 | exit 0 | |
13297 | EOF | |
13298 | chmod +x $CONFIG_STATUS | |
13299 | rm -fr confdefs* $ac_clean_files | |
13300 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
13301 | ||
13302 |