]>
Commit | Line | Data |
---|---|---|
7750247f KB |
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 | ||
41 | ||
42 | ||
43 | # Guess values for system-dependent variables and create Makefiles. | |
80d895cd | 44 | # Generated automatically using autoconf version 2.13 |
7750247f KB |
45 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
46 | # | |
47 | # This configure script is free software; the Free Software Foundation | |
48 | # gives unlimited permission to copy, distribute and modify it. | |
49 | ||
50 | # Defaults: | |
51 | ac_help= | |
52 | ac_default_prefix=/usr/local | |
53 | # Any additions from configure.in: | |
54 | ac_help="$ac_help | |
55 | --with-gtk use GTK+" | |
56 | ac_help="$ac_help | |
57 | --with-motif use Motif/Lesstif" | |
58 | ac_help="$ac_help | |
59 | --with-wine use WINE" | |
60 | ac_help="$ac_help | |
61 | --with-cygwin use Cygwin for MS-Windows" | |
62 | ac_help="$ac_help | |
63 | --with-mingw use GCC Minimal MS-Windows" | |
64 | ac_help="$ac_help | |
65 | --with-gtk-prefix=PFX Prefix where GTK is installed" | |
66 | ac_help="$ac_help | |
67 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed" | |
68 | ac_help="$ac_help | |
69 | --with-dmalloc use dmalloc library (www.letters.com/dmalloc)" | |
70 | ac_help="$ac_help | |
71 | --with-zlib use zlib for LZW compression" | |
72 | ac_help="$ac_help | |
73 | --with-libpng use libpng (PNG image format)" | |
74 | ac_help="$ac_help | |
75 | --with-libgif use libgif (GIF file format)" | |
76 | ac_help="$ac_help | |
77 | --with-libjpeg use libjpeg (JPEG file format)" | |
78 | ac_help="$ac_help | |
79 | --with-opengl use OpenGL (or Mesa)" | |
80 | ac_help="$ac_help | |
81 | --with-odbc use the IODBC and wxODBC classes" | |
82 | ac_help="$ac_help | |
83 | --enable-shared create shared library code" | |
84 | ac_help="$ac_help | |
85 | --enable-optimise create optimised code" | |
86 | ac_help="$ac_help | |
87 | --enable-debug same as debug_flag and debug_info" | |
88 | ac_help="$ac_help | |
89 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" | |
90 | ac_help="$ac_help | |
91 | --enable-debug_info create code with debugging information" | |
92 | ac_help="$ac_help | |
93 | --enable-debug_gdb create code with extra GDB debugging information" | |
94 | ac_help="$ac_help | |
95 | --enable-debug_cntxt use wxDebugContext" | |
96 | ac_help="$ac_help | |
97 | --enable-mem_tracing create code with memory tracing" | |
98 | ac_help="$ac_help | |
99 | --enable-profile create code with profiling information" | |
100 | ac_help="$ac_help | |
101 | --enable-no_rtti create code without RTTI information" | |
102 | ac_help="$ac_help | |
103 | --enable-no_exceptions create code without exceptions information" | |
104 | ac_help="$ac_help | |
5586805b RR |
105 | --enable-permissive compile code disregarding strict ANSI" |
106 | ac_help="$ac_help | |
107 | --enable-no_deps create code without dependency information" | |
108 | ac_help="$ac_help | |
7750247f KB |
109 | --enable-gui use GUI classes" |
110 | ac_help="$ac_help | |
111 | --enable-intl use internationalization system" | |
112 | ac_help="$ac_help | |
113 | --enable-config use wxConfig (and derived) classes" | |
114 | ac_help="$ac_help | |
115 | --enable-sockets use socket/network classes" | |
116 | ac_help="$ac_help | |
117 | --enable-ipc use interprocess communication (wxSocket etc.)" | |
118 | ac_help="$ac_help | |
119 | --enable-apple_ieee use the Apple IEEE codec" | |
120 | ac_help="$ac_help | |
121 | --enable-timedate use date/time classes" | |
122 | ac_help="$ac_help | |
123 | --enable-wave use wxWave class" | |
124 | ac_help="$ac_help | |
125 | --enable-fraction use wxFraction class" | |
126 | ac_help="$ac_help | |
127 | --enable-dynlib use wxLibrary class for DLL loading" | |
128 | ac_help="$ac_help | |
129 | --enable-longlong use wxLongLong class" | |
130 | ac_help="$ac_help | |
131 | --enable-log use logging system" | |
132 | ac_help="$ac_help | |
133 | --enable-streams use wxStream etc classes" | |
134 | ac_help="$ac_help | |
135 | --enable-file use wxFile classes" | |
136 | ac_help="$ac_help | |
137 | --enable-textfile use wxTextFile classes" | |
138 | ac_help="$ac_help | |
139 | --enable-unicode compile wxString with Unicode support" | |
140 | ac_help="$ac_help | |
141 | --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs" | |
142 | ac_help="$ac_help | |
143 | --enable-wxprintfv use wxWindows implementation of vprintf()" | |
144 | ac_help="$ac_help | |
145 | --enable-joystick compile in joystick support (Linux only)" | |
146 | ac_help="$ac_help | |
147 | --enable-std_iostreams use standard C++ stream classes" | |
148 | ac_help="$ac_help | |
149 | --enable-fs_inet use virtual HTTP/FTP filesystems" | |
150 | ac_help="$ac_help | |
151 | --enable-fs_zip use virtual ZIP filesystems" | |
152 | ac_help="$ac_help | |
153 | --enable-zipstream use wxZipInputStream" | |
154 | ac_help="$ac_help | |
155 | --enable-threads use threads" | |
156 | ac_help="$ac_help | |
157 | --enable-serial use class serialization" | |
158 | ac_help="$ac_help | |
159 | --enable-docview use document view architecture" | |
160 | ac_help="$ac_help | |
161 | --enable-help use help (using external browser at present)" | |
162 | ac_help="$ac_help | |
163 | --enable-constraints use layout-constraints system" | |
164 | ac_help="$ac_help | |
165 | --enable-printarch use printing architecture" | |
166 | ac_help="$ac_help | |
167 | --enable-mdi use multiple document interface architecture" | |
168 | ac_help="$ac_help | |
169 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" | |
170 | ac_help="$ac_help | |
171 | --enable-prologio use Prolog IO library" | |
172 | ac_help="$ac_help | |
173 | --enable-resources use wxWindows resources" | |
174 | ac_help="$ac_help | |
175 | --enable-xresources use X resources for save (default for gtk+)" | |
176 | ac_help="$ac_help | |
177 | --enable-clipboard use wxClipboard classes" | |
178 | ac_help="$ac_help | |
179 | --enable-dnd use Drag'n'Drop classes" | |
180 | ac_help="$ac_help | |
181 | --enable-wxtree make wxTree library" | |
182 | ac_help="$ac_help | |
183 | --enable-controls use all usual controls" | |
184 | ac_help="$ac_help | |
185 | --enable-accel use accelerators" | |
186 | ac_help="$ac_help | |
187 | --enable-caret use wxCaret class" | |
188 | ac_help="$ac_help | |
189 | --enable-bmpbutton use wxBitmapButton class" | |
190 | ac_help="$ac_help | |
191 | --enable-checkbox use wxCheckBox class" | |
192 | ac_help="$ac_help | |
193 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" | |
194 | ac_help="$ac_help | |
195 | --enable-choice use wxChoice class" | |
196 | ac_help="$ac_help | |
197 | --enable-combobox use wxComboBox classes" | |
198 | ac_help="$ac_help | |
199 | --enable-gauge use wxGauge class" | |
200 | ac_help="$ac_help | |
201 | --enable-grid use wxGrid class" | |
202 | ac_help="$ac_help | |
203 | --enable-imaglist use wxImageList class" | |
204 | ac_help="$ac_help | |
205 | --enable-listbox use wxListBox class" | |
206 | ac_help="$ac_help | |
207 | --enable-listctrl use wxListCtrl class" | |
208 | ac_help="$ac_help | |
209 | --enable-notebook use wxNotebook class" | |
210 | ac_help="$ac_help | |
211 | --enable-radiobox use wxRadioBox class" | |
212 | ac_help="$ac_help | |
213 | --enable-radiobtn use wxRadioButton class" | |
214 | ac_help="$ac_help | |
215 | --enable-sash use wxSashWindow class" | |
216 | ac_help="$ac_help | |
217 | --enable-scrollbar use wxScrollBar class and scrollable windows" | |
218 | ac_help="$ac_help | |
219 | --enable-slider use wxSlider class" | |
220 | ac_help="$ac_help | |
221 | --enable-spinbtn use wxSpinButton class" | |
222 | ac_help="$ac_help | |
223 | --enable-splitter use wxSplitterWindow class" | |
224 | ac_help="$ac_help | |
225 | --enable-statbmp use wxStaticBitmap class" | |
226 | ac_help="$ac_help | |
227 | --enable-statbox use wxStaticBox class" | |
228 | ac_help="$ac_help | |
229 | --enable-statline use wxStaticLine class" | |
230 | ac_help="$ac_help | |
231 | --enable-statusbar use wxStatusBar class" | |
232 | ac_help="$ac_help | |
233 | --enable-tabdialog use wxTabControl class" | |
234 | ac_help="$ac_help | |
235 | --enable-toolbar use wxToolBar class" | |
236 | ac_help="$ac_help | |
237 | --enable-treectrl use wxTreeCtrl class" | |
238 | ac_help="$ac_help | |
239 | --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)" | |
240 | ac_help="$ac_help | |
241 | --enable-dirdlg use wxDirDialog" | |
242 | ac_help="$ac_help | |
243 | --enable-textdlg use wxTextDialog" | |
244 | ac_help="$ac_help | |
245 | --enable-tipdlg use startup tips" | |
246 | ac_help="$ac_help | |
247 | --enable-progressdlg use wxProgressDialog" | |
248 | ac_help="$ac_help | |
249 | --enable-miniframe use wxMiniFrame class" | |
250 | ac_help="$ac_help | |
251 | --enable-html use wxHTML sub-library" | |
252 | ac_help="$ac_help | |
253 | --enable-tooltips use wxToolTip class" | |
254 | ac_help="$ac_help | |
255 | --enable-splines use spline drawing code" | |
256 | ac_help="$ac_help | |
257 | --enable-validators use wxValidator and derived classes" | |
258 | ac_help="$ac_help | |
259 | --enable-busyinfo use wxBusyInfo" | |
260 | ac_help="$ac_help | |
261 | --with-x use the X Window System" | |
262 | ||
263 | # Initialize some variables set by options. | |
264 | # The variables have the same names as the options, with | |
265 | # dashes changed to underlines. | |
266 | build=NONE | |
267 | cache_file=./config.cache | |
268 | exec_prefix=NONE | |
269 | host=NONE | |
270 | no_create= | |
271 | nonopt=NONE | |
272 | no_recursion= | |
273 | prefix=NONE | |
274 | program_prefix=NONE | |
275 | program_suffix=NONE | |
276 | program_transform_name=s,x,x, | |
277 | silent= | |
278 | site= | |
279 | srcdir= | |
280 | target=NONE | |
281 | verbose= | |
282 | x_includes=NONE | |
283 | x_libraries=NONE | |
284 | bindir='${exec_prefix}/bin' | |
285 | sbindir='${exec_prefix}/sbin' | |
286 | libexecdir='${exec_prefix}/libexec' | |
287 | datadir='${prefix}/share' | |
288 | sysconfdir='${prefix}/etc' | |
289 | sharedstatedir='${prefix}/com' | |
290 | localstatedir='${prefix}/var' | |
291 | libdir='${exec_prefix}/lib' | |
292 | includedir='${prefix}/include' | |
293 | oldincludedir='/usr/include' | |
294 | infodir='${prefix}/info' | |
295 | mandir='${prefix}/man' | |
296 | ||
297 | # Initialize some other variables. | |
298 | subdirs= | |
299 | MFLAGS= MAKEFLAGS= | |
9c884972 | 300 | SHELL=${CONFIG_SHELL-/bin/sh} |
7750247f KB |
301 | # Maximum number of lines to put in a shell here document. |
302 | ac_max_here_lines=12 | |
303 | ||
304 | ac_prev= | |
305 | for ac_option | |
306 | do | |
307 | ||
308 | # If the previous option needs an argument, assign it. | |
309 | if test -n "$ac_prev"; then | |
310 | eval "$ac_prev=\$ac_option" | |
311 | ac_prev= | |
312 | continue | |
313 | fi | |
314 | ||
315 | case "$ac_option" in | |
316 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
317 | *) ac_optarg= ;; | |
318 | esac | |
319 | ||
320 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
321 | ||
322 | case "$ac_option" in | |
323 | ||
324 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
325 | ac_prev=bindir ;; | |
326 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
327 | bindir="$ac_optarg" ;; | |
328 | ||
329 | -build | --build | --buil | --bui | --bu) | |
330 | ac_prev=build ;; | |
331 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
332 | build="$ac_optarg" ;; | |
333 | ||
334 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
335 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
336 | ac_prev=cache_file ;; | |
337 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
338 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
339 | cache_file="$ac_optarg" ;; | |
340 | ||
341 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
342 | ac_prev=datadir ;; | |
343 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
344 | | --da=*) | |
345 | datadir="$ac_optarg" ;; | |
346 | ||
347 | -disable-* | --disable-*) | |
348 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
349 | # Reject names that are not valid shell variable names. | |
350 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
351 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
352 | fi | |
353 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
354 | eval "enable_${ac_feature}=no" ;; | |
355 | ||
356 | -enable-* | --enable-*) | |
357 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
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 | case "$ac_option" in | |
364 | *=*) ;; | |
365 | *) ac_optarg=yes ;; | |
366 | esac | |
367 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
368 | ||
369 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
370 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
371 | | --exec | --exe | --ex) | |
372 | ac_prev=exec_prefix ;; | |
373 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
374 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
375 | | --exec=* | --exe=* | --ex=*) | |
376 | exec_prefix="$ac_optarg" ;; | |
377 | ||
378 | -gas | --gas | --ga | --g) | |
379 | # Obsolete; use --with-gas. | |
380 | with_gas=yes ;; | |
381 | ||
382 | -help | --help | --hel | --he) | |
383 | # Omit some internal or obsolete options to make the list less imposing. | |
384 | # This message is too long to be a string in the A/UX 3.1 sh. | |
385 | cat << EOF | |
386 | Usage: configure [options] [host] | |
387 | Options: [defaults in brackets after descriptions] | |
388 | Configuration: | |
389 | --cache-file=FILE cache test results in FILE | |
390 | --help print this message | |
391 | --no-create do not create output files | |
392 | --quiet, --silent do not print \`checking...' messages | |
393 | --version print the version of autoconf that created configure | |
394 | Directory and file names: | |
395 | --prefix=PREFIX install architecture-independent files in PREFIX | |
396 | [$ac_default_prefix] | |
397 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
398 | [same as prefix] | |
399 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
400 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
401 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
402 | --datadir=DIR read-only architecture-independent data in DIR | |
403 | [PREFIX/share] | |
404 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
405 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
406 | [PREFIX/com] | |
407 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
408 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
409 | --includedir=DIR C header files in DIR [PREFIX/include] | |
410 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
411 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
412 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
413 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
414 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
415 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
416 | --program-transform-name=PROGRAM | |
417 | run sed PROGRAM on installed program names | |
418 | EOF | |
419 | cat << EOF | |
420 | Host type: | |
421 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
422 | --host=HOST configure for HOST [guessed] | |
423 | --target=TARGET configure for TARGET [TARGET=HOST] | |
424 | Features and packages: | |
425 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
426 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
427 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
428 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
429 | --x-includes=DIR X include files are in DIR | |
430 | --x-libraries=DIR X library files are in DIR | |
431 | EOF | |
432 | if test -n "$ac_help"; then | |
433 | echo "--enable and --with options recognized:$ac_help" | |
434 | fi | |
435 | exit 0 ;; | |
436 | ||
437 | -host | --host | --hos | --ho) | |
438 | ac_prev=host ;; | |
439 | -host=* | --host=* | --hos=* | --ho=*) | |
440 | host="$ac_optarg" ;; | |
441 | ||
442 | -includedir | --includedir | --includedi | --included | --include \ | |
443 | | --includ | --inclu | --incl | --inc) | |
444 | ac_prev=includedir ;; | |
445 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
446 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
447 | includedir="$ac_optarg" ;; | |
448 | ||
449 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
450 | ac_prev=infodir ;; | |
451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
452 | infodir="$ac_optarg" ;; | |
453 | ||
454 | -libdir | --libdir | --libdi | --libd) | |
455 | ac_prev=libdir ;; | |
456 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
457 | libdir="$ac_optarg" ;; | |
458 | ||
459 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
460 | | --libexe | --libex | --libe) | |
461 | ac_prev=libexecdir ;; | |
462 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
463 | | --libexe=* | --libex=* | --libe=*) | |
464 | libexecdir="$ac_optarg" ;; | |
465 | ||
466 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
467 | | --localstate | --localstat | --localsta | --localst \ | |
468 | | --locals | --local | --loca | --loc | --lo) | |
469 | ac_prev=localstatedir ;; | |
470 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
471 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
472 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
473 | localstatedir="$ac_optarg" ;; | |
474 | ||
475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
476 | ac_prev=mandir ;; | |
477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
478 | mandir="$ac_optarg" ;; | |
479 | ||
480 | -nfp | --nfp | --nf) | |
481 | # Obsolete; use --without-fp. | |
482 | with_fp=no ;; | |
483 | ||
484 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
485 | | --no-cr | --no-c) | |
486 | no_create=yes ;; | |
487 | ||
488 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
489 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
490 | no_recursion=yes ;; | |
491 | ||
492 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
493 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
494 | | --oldin | --oldi | --old | --ol | --o) | |
495 | ac_prev=oldincludedir ;; | |
496 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
497 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
498 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
499 | oldincludedir="$ac_optarg" ;; | |
500 | ||
501 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
502 | ac_prev=prefix ;; | |
503 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
504 | prefix="$ac_optarg" ;; | |
505 | ||
506 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
507 | | --program-pre | --program-pr | --program-p) | |
508 | ac_prev=program_prefix ;; | |
509 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
510 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
511 | program_prefix="$ac_optarg" ;; | |
512 | ||
513 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
514 | | --program-suf | --program-su | --program-s) | |
515 | ac_prev=program_suffix ;; | |
516 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
517 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
518 | program_suffix="$ac_optarg" ;; | |
519 | ||
520 | -program-transform-name | --program-transform-name \ | |
521 | | --program-transform-nam | --program-transform-na \ | |
522 | | --program-transform-n | --program-transform- \ | |
523 | | --program-transform | --program-transfor \ | |
524 | | --program-transfo | --program-transf \ | |
525 | | --program-trans | --program-tran \ | |
526 | | --progr-tra | --program-tr | --program-t) | |
527 | ac_prev=program_transform_name ;; | |
528 | -program-transform-name=* | --program-transform-name=* \ | |
529 | | --program-transform-nam=* | --program-transform-na=* \ | |
530 | | --program-transform-n=* | --program-transform-=* \ | |
531 | | --program-transform=* | --program-transfor=* \ | |
532 | | --program-transfo=* | --program-transf=* \ | |
533 | | --program-trans=* | --program-tran=* \ | |
534 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
535 | program_transform_name="$ac_optarg" ;; | |
536 | ||
537 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
538 | | -silent | --silent | --silen | --sile | --sil) | |
539 | silent=yes ;; | |
540 | ||
541 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
542 | ac_prev=sbindir ;; | |
543 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
544 | | --sbi=* | --sb=*) | |
545 | sbindir="$ac_optarg" ;; | |
546 | ||
547 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
548 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
549 | | --sharedst | --shareds | --shared | --share | --shar \ | |
550 | | --sha | --sh) | |
551 | ac_prev=sharedstatedir ;; | |
552 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
553 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
554 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
555 | | --sha=* | --sh=*) | |
556 | sharedstatedir="$ac_optarg" ;; | |
557 | ||
558 | -site | --site | --sit) | |
559 | ac_prev=site ;; | |
560 | -site=* | --site=* | --sit=*) | |
561 | site="$ac_optarg" ;; | |
562 | ||
563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
564 | ac_prev=srcdir ;; | |
565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
566 | srcdir="$ac_optarg" ;; | |
567 | ||
568 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
569 | | --syscon | --sysco | --sysc | --sys | --sy) | |
570 | ac_prev=sysconfdir ;; | |
571 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
572 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
573 | sysconfdir="$ac_optarg" ;; | |
574 | ||
575 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
576 | ac_prev=target ;; | |
577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
578 | target="$ac_optarg" ;; | |
579 | ||
580 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
581 | verbose=yes ;; | |
582 | ||
583 | -version | --version | --versio | --versi | --vers) | |
80d895cd | 584 | echo "configure generated by autoconf version 2.13" |
7750247f KB |
585 | exit 0 ;; |
586 | ||
587 | -with-* | --with-*) | |
588 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
589 | # Reject names that are not valid shell variable names. | |
590 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
591 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
592 | fi | |
593 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
594 | case "$ac_option" in | |
595 | *=*) ;; | |
596 | *) ac_optarg=yes ;; | |
597 | esac | |
598 | eval "with_${ac_package}='$ac_optarg'" ;; | |
599 | ||
600 | -without-* | --without-*) | |
601 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
602 | # Reject names that are not valid shell variable names. | |
603 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
604 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
605 | fi | |
606 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
607 | eval "with_${ac_package}=no" ;; | |
608 | ||
609 | --x) | |
610 | # Obsolete; use --with-x. | |
611 | with_x=yes ;; | |
612 | ||
613 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
614 | | --x-incl | --x-inc | --x-in | --x-i) | |
615 | ac_prev=x_includes ;; | |
616 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
617 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
618 | x_includes="$ac_optarg" ;; | |
619 | ||
620 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
621 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
622 | ac_prev=x_libraries ;; | |
623 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
624 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
625 | x_libraries="$ac_optarg" ;; | |
626 | ||
627 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
628 | ;; | |
629 | ||
630 | *) | |
631 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
632 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
633 | fi | |
634 | if test "x$nonopt" != xNONE; then | |
635 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
636 | fi | |
637 | nonopt="$ac_option" | |
638 | ;; | |
639 | ||
640 | esac | |
641 | done | |
642 | ||
643 | if test -n "$ac_prev"; then | |
644 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
645 | fi | |
646 | ||
647 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
648 | ||
649 | # File descriptor usage: | |
650 | # 0 standard input | |
651 | # 1 file creation | |
652 | # 2 errors and warnings | |
653 | # 3 some systems may open it to /dev/tty | |
654 | # 4 used on the Kubota Titan | |
655 | # 6 checking for... messages and results | |
656 | # 5 compiler messages saved in config.log | |
657 | if test "$silent" = yes; then | |
658 | exec 6>/dev/null | |
659 | else | |
660 | exec 6>&1 | |
661 | fi | |
662 | exec 5>./config.log | |
663 | ||
664 | echo "\ | |
665 | This file contains any messages produced by compilers while | |
666 | running configure, to aid debugging if configure makes a mistake. | |
667 | " 1>&5 | |
668 | ||
669 | # Strip out --no-create and --no-recursion so they do not pile up. | |
670 | # Also quote any args containing shell metacharacters. | |
671 | ac_configure_args= | |
672 | for ac_arg | |
673 | do | |
674 | case "$ac_arg" in | |
675 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
676 | | --no-cr | --no-c) ;; | |
677 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
678 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
679 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
680 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
681 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
682 | esac | |
683 | done | |
684 | ||
685 | # NLS nuisances. | |
686 | # Only set these to C if already set. These must not be set unconditionally | |
687 | # because not all systems understand e.g. LANG=C (notably SCO). | |
688 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
689 | # Non-C LC_CTYPE values break the ctype check. | |
690 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
691 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
692 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
693 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
694 | ||
695 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
696 | rm -rf conftest* confdefs.h | |
697 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
698 | echo > confdefs.h | |
699 | ||
700 | # A filename unique to this package, relative to the directory that | |
701 | # configure is in, which we can look for to find out if srcdir is correct. | |
702 | ac_unique_file=wx-config.in | |
703 | ||
704 | # Find the source files, if location was not specified. | |
705 | if test -z "$srcdir"; then | |
706 | ac_srcdir_defaulted=yes | |
707 | # Try the directory containing this script, then its parent. | |
708 | ac_prog=$0 | |
709 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
710 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
711 | srcdir=$ac_confdir | |
712 | if test ! -r $srcdir/$ac_unique_file; then | |
713 | srcdir=.. | |
714 | fi | |
715 | else | |
716 | ac_srcdir_defaulted=no | |
717 | fi | |
718 | if test ! -r $srcdir/$ac_unique_file; then | |
719 | if test "$ac_srcdir_defaulted" = yes; then | |
720 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
721 | else | |
722 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
723 | fi | |
724 | fi | |
725 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
726 | ||
727 | # Prefer explicitly selected file to automatically selected ones. | |
728 | if test -z "$CONFIG_SITE"; then | |
729 | if test "x$prefix" != xNONE; then | |
730 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
731 | else | |
732 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
733 | fi | |
734 | fi | |
735 | for ac_site_file in $CONFIG_SITE; do | |
736 | if test -r "$ac_site_file"; then | |
737 | echo "loading site script $ac_site_file" | |
738 | . "$ac_site_file" | |
739 | fi | |
740 | done | |
741 | ||
742 | if test -r "$cache_file"; then | |
743 | echo "loading cache $cache_file" | |
744 | . $cache_file | |
745 | else | |
746 | echo "creating cache $cache_file" | |
747 | > $cache_file | |
748 | fi | |
749 | ||
750 | ac_ext=c | |
751 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
752 | ac_cpp='$CPP $CPPFLAGS' | |
753 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9c884972 | 754 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
7750247f KB |
755 | cross_compiling=$ac_cv_prog_cc_cross |
756 | ||
9c884972 RR |
757 | ac_exeext= |
758 | ac_objext=o | |
7750247f KB |
759 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
760 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
761 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
762 | ac_n= ac_c=' | |
763 | ' ac_t=' ' | |
764 | else | |
765 | ac_n=-n ac_c= ac_t= | |
766 | fi | |
767 | else | |
768 | ac_n= ac_c='\c' ac_t= | |
769 | fi | |
770 | ||
771 | ||
772 | ||
773 | ac_aux_dir= | |
774 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
775 | if test -f $ac_dir/install-sh; then | |
776 | ac_aux_dir=$ac_dir | |
777 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
778 | break | |
779 | elif test -f $ac_dir/install.sh; then | |
780 | ac_aux_dir=$ac_dir | |
781 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
782 | break | |
783 | fi | |
784 | done | |
785 | if test -z "$ac_aux_dir"; then | |
786 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
787 | fi | |
788 | ac_config_guess=$ac_aux_dir/config.guess | |
789 | ac_config_sub=$ac_aux_dir/config.sub | |
790 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
791 | ||
792 | ||
793 | # Do some error checking and defaulting for the host and target type. | |
794 | # The inputs are: | |
795 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
796 | # | |
797 | # The rules are: | |
798 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
799 | # same time. | |
800 | # 2. Host defaults to nonopt. | |
801 | # 3. If nonopt is not specified, then host defaults to the current host, | |
802 | # as determined by config.guess. | |
803 | # 4. Target and build default to nonopt. | |
804 | # 5. If nonopt is not specified, then target and build default to host. | |
805 | ||
806 | # The aliases save the names the user supplied, while $host etc. | |
807 | # will get canonicalized. | |
808 | case $host---$target---$nonopt in | |
809 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
810 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
811 | esac | |
812 | ||
813 | ||
814 | # Make sure we can run config.sub. | |
9c884972 | 815 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
7750247f KB |
816 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
817 | fi | |
818 | ||
819 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
5586805b | 820 | echo "configure:821: checking host system type" >&5 |
7750247f KB |
821 | |
822 | host_alias=$host | |
823 | case "$host_alias" in | |
824 | NONE) | |
825 | case $nonopt in | |
826 | NONE) | |
9c884972 | 827 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
7750247f KB |
828 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
829 | fi ;; | |
830 | *) host_alias=$nonopt ;; | |
831 | esac ;; | |
832 | esac | |
833 | ||
9c884972 | 834 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
7750247f KB |
835 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
836 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
837 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
838 | echo "$ac_t""$host" 1>&6 | |
839 | ||
840 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
5586805b | 841 | echo "configure:842: checking target system type" >&5 |
7750247f KB |
842 | |
843 | target_alias=$target | |
844 | case "$target_alias" in | |
845 | NONE) | |
846 | case $nonopt in | |
847 | NONE) target_alias=$host_alias ;; | |
848 | *) target_alias=$nonopt ;; | |
849 | esac ;; | |
850 | esac | |
851 | ||
9c884972 | 852 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` |
7750247f KB |
853 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
854 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
855 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
856 | echo "$ac_t""$target" 1>&6 | |
857 | ||
858 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
5586805b | 859 | echo "configure:860: checking build system type" >&5 |
7750247f KB |
860 | |
861 | build_alias=$build | |
862 | case "$build_alias" in | |
863 | NONE) | |
864 | case $nonopt in | |
865 | NONE) build_alias=$host_alias ;; | |
866 | *) build_alias=$nonopt ;; | |
867 | esac ;; | |
868 | esac | |
869 | ||
9c884972 | 870 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
7750247f KB |
871 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
872 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
873 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
874 | echo "$ac_t""$build" 1>&6 | |
875 | ||
876 | test "$host_alias" != "$target_alias" && | |
877 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
878 | NONENONEs,x,x, && | |
879 | program_prefix=${target_alias}- | |
880 | ||
881 | ||
882 | ||
883 | WX_MAJOR_VERSION_NUMBER=2 | |
884 | WX_MINOR_VERSION_NUMBER=1 | |
885 | WX_RELEASE_NUMBER=0 | |
886 | ||
887 | WX_INTERFACE_AGE=0 | |
888 | WX_BINARY_AGE=0 | |
889 | ||
890 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER | |
891 | ||
892 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER | |
893 | WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE` | |
894 | WX_REVISION=$WX_INTERFACE_AGE | |
895 | WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE` | |
896 | ||
897 | ||
898 | USE_UNIX=1 | |
899 | USE_LINUX= | |
900 | USE_SGI= | |
901 | USE_HPUX= | |
902 | USE_SYSV= | |
903 | USE_SVR4= | |
904 | USE_AIX= | |
905 | USE_SUN= | |
906 | USE_SOLARIS= | |
907 | USE_SUNOS= | |
908 | USE_ALPHA= | |
909 | USE_OSF= | |
910 | USE_BSD= | |
911 | USE_FREEBSD= | |
912 | USE_VMS= | |
913 | USE_ULTRIX= | |
914 | USE_CYGWIN= | |
915 | USE_MINGW= | |
916 | USE_DATA_GENERAL= | |
917 | ||
918 | ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE" | |
919 | ||
920 | DEFAULT_wxUSE_GTK=0 | |
921 | DEFAULT_wxUSE_MOTIF=0 | |
922 | DEFAULT_wxUSE_MSW=0 | |
923 | DEFAULT_wxUSE_WINE=0 | |
924 | ||
925 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
926 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
927 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
928 | DEFAULT_DEFAULT_wxUSE_WINE=0 | |
929 | ||
930 | case "${host}" in | |
931 | *-hp-hpux* ) | |
932 | USE_HPUX=1 | |
933 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
934 | cat >> confdefs.h <<\EOF | |
935 | #define __HPUX__ 1 | |
936 | EOF | |
937 | ||
938 | ;; | |
939 | *-*-linux* ) | |
940 | USE_LINUX=1 | |
941 | cat >> confdefs.h <<\EOF | |
942 | #define __LINUX__ 1 | |
943 | EOF | |
944 | ||
945 | TMP=`uname -m` | |
946 | if test "x$TMP" = "xalpha"; then | |
947 | USE_ALPHA=1 | |
948 | cat >> confdefs.h <<\EOF | |
949 | #define __ALPHA__ 1 | |
950 | EOF | |
951 | ||
952 | fi | |
953 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
954 | ;; | |
955 | *-*-irix5* | *-*-irix6* ) | |
956 | USE_SGI=1 | |
957 | USE_SVR4=1 | |
958 | cat >> confdefs.h <<\EOF | |
959 | #define __SGI__ 1 | |
960 | EOF | |
961 | ||
962 | cat >> confdefs.h <<\EOF | |
963 | #define __SVR4__ 1 | |
964 | EOF | |
965 | ||
966 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
967 | ;; | |
968 | *-*-solaris2* ) | |
969 | USE_SUN=1 | |
970 | USE_SOLARIS=1 | |
971 | USE_SVR4=1 | |
972 | cat >> confdefs.h <<\EOF | |
973 | #define __SUN__ 1 | |
974 | EOF | |
975 | ||
976 | cat >> confdefs.h <<\EOF | |
977 | #define __SOLARIS__ 1 | |
978 | EOF | |
979 | ||
980 | cat >> confdefs.h <<\EOF | |
981 | #define __SVR4__ 1 | |
982 | EOF | |
983 | ||
984 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
985 | ;; | |
986 | *-*-sunos4* ) | |
987 | USE_SUN=1 | |
988 | USE_SUNOS=1 | |
989 | USE_BSD=1 | |
990 | cat >> confdefs.h <<\EOF | |
991 | #define __SUN__ 1 | |
992 | EOF | |
993 | ||
994 | cat >> confdefs.h <<\EOF | |
995 | #define __SUNOS__ 1 | |
996 | EOF | |
997 | ||
998 | cat >> confdefs.h <<\EOF | |
999 | #define __BSD__ 1 | |
1000 | EOF | |
1001 | ||
1002 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1003 | ;; | |
1004 | *-*-freebsd* | *-*-netbsd*) | |
1005 | USE_BSD=1 | |
1006 | USE_FREEBSD=1 | |
1007 | cat >> confdefs.h <<\EOF | |
1008 | #define __FREEBSD__ 1 | |
1009 | EOF | |
1010 | ||
1011 | cat >> confdefs.h <<\EOF | |
1012 | #define __BSD__ 1 | |
1013 | EOF | |
1014 | ||
1015 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1016 | ;; | |
1017 | *-*-osf* ) | |
1018 | USE_ALPHA=1 | |
1019 | USE_OSF=1 | |
1020 | cat >> confdefs.h <<\EOF | |
1021 | #define __ALPHA__ 1 | |
1022 | EOF | |
1023 | ||
1024 | cat >> confdefs.h <<\EOF | |
1025 | #define __OSF__ 1 | |
1026 | EOF | |
1027 | ||
1028 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1029 | ;; | |
1030 | *-*-dgux5* ) | |
1031 | USE_ALPHA=1 | |
1032 | USE_SVR4=1 | |
1033 | cat >> confdefs.h <<\EOF | |
1034 | #define __ALPHA__ 1 | |
1035 | EOF | |
1036 | ||
1037 | cat >> confdefs.h <<\EOF | |
1038 | #define __SVR4__ 1 | |
1039 | EOF | |
1040 | ||
1041 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1042 | ;; | |
1043 | *-*-sysv5* ) | |
1044 | USE_SYSV=1 | |
1045 | USE_SVR4=1 | |
1046 | cat >> confdefs.h <<\EOF | |
1047 | #define __SYSV__ 1 | |
1048 | EOF | |
1049 | ||
1050 | cat >> confdefs.h <<\EOF | |
1051 | #define __SVR4__ 1 | |
1052 | EOF | |
1053 | ||
1054 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1055 | ;; | |
1056 | *-*-aix* ) | |
1057 | USE_AIX=1 | |
1058 | USE_SYSV=1 | |
1059 | USE_SVR4=1 | |
1060 | cat >> confdefs.h <<\EOF | |
1061 | #define __AIX__ 1 | |
1062 | EOF | |
1063 | ||
1064 | cat >> confdefs.h <<\EOF | |
1065 | #define __SYSV__ 1 | |
1066 | EOF | |
1067 | ||
1068 | cat >> confdefs.h <<\EOF | |
1069 | #define __SVR4__ 1 | |
1070 | EOF | |
1071 | ||
1072 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1073 | ;; | |
1074 | ||
1075 | *-*-cygwin32* ) | |
1076 | USE_UNIX=0 | |
1077 | cat >> confdefs.h <<\EOF | |
1078 | #define __WIN32__ 1 | |
1079 | EOF | |
1080 | ||
1081 | cat >> confdefs.h <<\EOF | |
1082 | #define __WIN95__ 1 | |
1083 | EOF | |
1084 | ||
1085 | cat >> confdefs.h <<\EOF | |
1086 | #define __WINDOWS__ 1 | |
1087 | EOF | |
1088 | ||
1089 | cat >> confdefs.h <<\EOF | |
1090 | #define __GNUWIN32__ 1 | |
1091 | EOF | |
1092 | ||
1093 | cat >> confdefs.h <<\EOF | |
1094 | #define WINVER 0x0400 | |
1095 | EOF | |
1096 | ||
1097 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
1098 | ;; | |
1099 | *-*-mingw32* ) | |
1100 | USE_UNIX=0 | |
1101 | cat >> confdefs.h <<\EOF | |
1102 | #define __WIN32__ 1 | |
1103 | EOF | |
1104 | ||
1105 | cat >> confdefs.h <<\EOF | |
1106 | #define __WIN95__ 1 | |
1107 | EOF | |
1108 | ||
1109 | cat >> confdefs.h <<\EOF | |
1110 | #define __WINDOWS__ 1 | |
1111 | EOF | |
1112 | ||
1113 | cat >> confdefs.h <<\EOF | |
1114 | #define __GNUWIN32__ 1 | |
1115 | EOF | |
1116 | ||
1117 | cat >> confdefs.h <<\EOF | |
1118 | #define WINVER 0x0400 | |
1119 | EOF | |
1120 | ||
1121 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
1122 | ;; | |
1123 | ||
1124 | *-pc-os2_emx ) | |
1125 | cat >> confdefs.h <<\EOF | |
1126 | #define __EMX__ 1 | |
1127 | EOF | |
1128 | ||
1129 | ;; | |
1130 | ||
1131 | *) | |
1132 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } | |
1133 | esac | |
1134 | ||
1135 | if test "$USE_UNIX" = 1 ; then | |
1136 | wxUSE_UNIX=yes | |
1137 | cat >> confdefs.h <<\EOF | |
1138 | #define __UNIX__ 1 | |
1139 | EOF | |
1140 | ||
1141 | SRC_SUBDIRS="$SRC_SUBDIRS unix" | |
1142 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix" | |
1143 | fi | |
1144 | ||
1145 | if test "$USE_LINUX" = 1; then | |
1146 | echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6 | |
5586805b | 1147 | echo "configure:1148: checking for gettext in -lc" >&5 |
7750247f KB |
1148 | ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'` |
1149 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1150 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1151 | else | |
1152 | ac_save_LIBS="$LIBS" | |
1153 | LIBS="-lc $LIBS" | |
1154 | cat > conftest.$ac_ext <<EOF | |
5586805b | 1155 | #line 1156 "configure" |
7750247f KB |
1156 | #include "confdefs.h" |
1157 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1158 | /* We use char because int might match the return type of a gcc2 | |
1159 | builtin and then its argument prototype would still apply. */ | |
1160 | char gettext(); | |
1161 | ||
1162 | int main() { | |
1163 | gettext() | |
1164 | ; return 0; } | |
1165 | EOF | |
5586805b | 1166 | if { (eval echo configure:1167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7750247f KB |
1167 | rm -rf conftest* |
1168 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1169 | else | |
1170 | echo "configure: failed program was:" >&5 | |
1171 | cat conftest.$ac_ext >&5 | |
1172 | rm -rf conftest* | |
1173 | eval "ac_cv_lib_$ac_lib_var=no" | |
1174 | fi | |
1175 | rm -f conftest* | |
1176 | LIBS="$ac_save_LIBS" | |
1177 | ||
1178 | fi | |
1179 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1180 | echo "$ac_t""yes" 1>&6 | |
1181 | cat >> confdefs.h <<\EOF | |
1182 | #define wxHAVE_GLIBC2 1 | |
1183 | EOF | |
1184 | ||
1185 | else | |
1186 | echo "$ac_t""no" 1>&6 | |
1187 | fi | |
1188 | ||
1189 | fi | |
1190 | ||
1191 | ||
1192 | ||
1193 | ||
1194 | wx_arg_cache_file="configarg.cache" | |
1195 | echo "loading argument cache $wx_arg_cache_file" | |
1196 | rm -f ${wx_arg_cache_file}.tmp | |
1197 | touch ${wx_arg_cache_file}.tmp | |
1198 | touch ${wx_arg_cache_file} | |
1199 | ||
1200 | ||
1201 | DEBUG_CONFIGURE=0 | |
1202 | if test $DEBUG_CONFIGURE = 1; then | |
1203 | DEFAULT_wxUSE_THREADS=yes | |
1204 | ||
1205 | DEFAULT_wxUSE_SHARED=yes | |
1206 | DEFAULT_wxUSE_OPTIMISE=yes | |
1207 | DEFAULT_wxUSE_PROFILE=no | |
5586805b | 1208 | DEFAULT_wxUSE_NO_DEPS=no |
7750247f KB |
1209 | DEFAULT_wxUSE_NO_RTTI=no |
1210 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
5586805b | 1211 | DEFAULT_wxUSE_PERMISSIVE=no |
7750247f KB |
1212 | DEFAULT_wxUSE_DEBUG_FLAG=yes |
1213 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1214 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1215 | DEFAULT_wxUSE_MEM_TRACING=no | |
1216 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1217 | DEFAULT_wxUSE_DMALLOC=no | |
1218 | DEFAULT_wxUSE_APPLE_IEEE=no | |
1219 | ||
1220 | DEFAULT_wxUSE_LOG=yes | |
1221 | ||
1222 | DEFAULT_wxUSE_GUI=yes | |
1223 | ||
1224 | DEFAULT_wxUSE_ZLIB=no | |
1225 | DEFAULT_wxUSE_LIBPNG=no | |
1226 | DEFAULT_wxUSE_LIBGIF=no | |
1227 | DEFAULT_wxUSE_LIBJPEG=no | |
1228 | DEFAULT_wxUSE_ODBC=no | |
1229 | ||
1230 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
1231 | DEFAULT_wxUSE_FILE=no | |
1232 | DEFAULT_wxUSE_TEXTFILE=no | |
1233 | DEFAULT_wxUSE_TIMEDATE=no | |
1234 | DEFAULT_wxUSE_WAVE=no | |
1235 | DEFAULT_wxUSE_INTL=no | |
1236 | DEFAULT_wxUSE_CONFIG=no | |
1237 | DEFAULT_wxUSE_STREAMS=no | |
1238 | DEFAULT_wxUSE_SOCKETS=no | |
1239 | DEFAULT_wxUSE_SERIAL=no | |
1240 | DEFAULT_wxUSE_JOYSTICK=no | |
1241 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
1242 | DEFAULT_wxUSE_LONGLONG=no | |
1243 | ||
1244 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1245 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1246 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1247 | ||
1248 | DEFAULT_wxUSE_X_RESOURCES=no | |
1249 | DEFAULT_wxUSE_CLIPBOARD=no | |
1250 | DEFAULT_wxUSE_TOOLTIPS=no | |
1251 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
1252 | DEFAULT_wxUSE_SPLINES=no | |
1253 | ||
1254 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1255 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1256 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1257 | ||
1258 | DEFAULT_wxUSE_PROLOGIO=no | |
1259 | DEFAULT_wxUSE_RESOURCES=no | |
1260 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1261 | DEFAULT_wxUSE_IPC=no | |
1262 | DEFAULT_wxUSE_HELP=no | |
1263 | DEFAULT_wxUSE_WXTREE=no | |
1264 | DEFAULT_wxUSE_METAFILE=no | |
1265 | ||
1266 | DEFAULT_wxUSE_COMMONDLGS=no | |
1267 | DEFAULT_wxUSE_DIRDLG=no | |
1268 | DEFAULT_wxUSE_TEXTDLG=no | |
1269 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
1270 | DEFAULT_wxUSE_PROGRESSDLG=no | |
1271 | DEFAULT_wxUSE_MINIFRAME=no | |
1272 | DEFAULT_wxUSE_HTML=no | |
1273 | DEFAULT_wxUSE_FS_INET=no | |
1274 | DEFAULT_wxUSE_FS_ZIP=no | |
1275 | DEFAULT_wxUSE_BUSYINFO=no | |
1276 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1277 | DEFAULT_wxUSE_VALIDATORS=yes | |
1278 | ||
1279 | DEFAULT_wxUSE_ACCEL=no | |
1280 | DEFAULT_wxUSE_CARET=no | |
1281 | DEFAULT_wxUSE_BMPBUTTON=no | |
1282 | DEFAULT_wxUSE_CHECKBOX=no | |
1283 | DEFAULT_wxUSE_CHECKLST=no | |
1284 | DEFAULT_wxUSE_CHOICE=yes | |
1285 | DEFAULT_wxUSE_COMBOBOX=no | |
1286 | DEFAULT_wxUSE_GAUGE=no | |
1287 | DEFAULT_wxUSE_GRID=no | |
1288 | DEFAULT_wxUSE_IMAGLIST=no | |
1289 | DEFAULT_wxUSE_LISTBOX=no | |
1290 | DEFAULT_wxUSE_LISTCTRL=no | |
1291 | DEFAULT_wxUSE_NOTEBOOK=no | |
1292 | DEFAULT_wxUSE_RADIOBOX=no | |
1293 | DEFAULT_wxUSE_RADIOBTN=no | |
1294 | DEFAULT_wxUSE_SASH=no | |
1295 | DEFAULT_wxUSE_SCROLLBAR=no | |
1296 | DEFAULT_wxUSE_SLIDER=no | |
1297 | DEFAULT_wxUSE_SPINBTN=no | |
1298 | DEFAULT_wxUSE_SPLITTER=no | |
1299 | DEFAULT_wxUSE_STATBMP=no | |
1300 | DEFAULT_wxUSE_STATBOX=no | |
1301 | DEFAULT_wxUSE_STATLINE=no | |
1302 | DEFAULT_wxUSE_STATUSBAR=yes | |
1303 | DEFAULT_wxUSE_TABDIALOG=no | |
1304 | DEFAULT_wxUSE_TOOLBAR=no | |
1305 | DEFAULT_wxUSE_TREECTRL=no | |
1306 | ||
1307 | DEFAULT_wxUSE_UNICODE=no | |
1308 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1309 | else | |
1310 | DEFAULT_wxUSE_THREADS=yes | |
1311 | ||
1312 | DEFAULT_wxUSE_SHARED=yes | |
1313 | DEFAULT_wxUSE_OPTIMISE=yes | |
1314 | DEFAULT_wxUSE_PROFILE=no | |
5586805b | 1315 | DEFAULT_wxUSE_NO_DEPS=no |
7750247f KB |
1316 | DEFAULT_wxUSE_NO_RTTI=no |
1317 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
5586805b | 1318 | DEFAULT_wxUSE_PERMISSIVE=no |
7750247f KB |
1319 | DEFAULT_wxUSE_DEBUG_FLAG=no |
1320 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1321 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1322 | DEFAULT_wxUSE_MEM_TRACING=no | |
1323 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1324 | DEFAULT_wxUSE_DMALLOC=no | |
1325 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
1326 | ||
1327 | DEFAULT_wxUSE_LOG=yes | |
1328 | ||
1329 | DEFAULT_wxUSE_GUI=yes | |
1330 | ||
1331 | DEFAULT_wxUSE_ZLIB=yes | |
1332 | DEFAULT_wxUSE_LIBPNG=yes | |
1333 | DEFAULT_wxUSE_LIBGIF=yes | |
1334 | DEFAULT_wxUSE_LIBJPEG=yes | |
1335 | DEFAULT_wxUSE_ODBC=no | |
1336 | ||
1337 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
1338 | DEFAULT_wxUSE_FILE=yes | |
1339 | DEFAULT_wxUSE_TEXTFILE=yes | |
1340 | DEFAULT_wxUSE_TIMEDATE=yes | |
1341 | DEFAULT_wxUSE_WAVE=no | |
1342 | DEFAULT_wxUSE_INTL=yes | |
1343 | DEFAULT_wxUSE_CONFIG=yes | |
1344 | DEFAULT_wxUSE_STREAMS=yes | |
1345 | DEFAULT_wxUSE_SOCKETS=yes | |
1346 | DEFAULT_wxUSE_SERIAL=yes | |
1347 | DEFAULT_wxUSE_JOYSTICK=yes | |
1348 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
1349 | DEFAULT_wxUSE_LONGLONG=no | |
1350 | ||
1351 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1352 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1353 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1354 | ||
1355 | DEFAULT_wxUSE_X_RESOURCES=no | |
1356 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1357 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1358 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
1359 | DEFAULT_wxUSE_SPLINES=yes | |
1360 | ||
1361 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1362 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1363 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1364 | ||
1365 | DEFAULT_wxUSE_PROLOGIO=yes | |
1366 | DEFAULT_wxUSE_RESOURCES=yes | |
1367 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1368 | DEFAULT_wxUSE_IPC=yes | |
1369 | DEFAULT_wxUSE_HELP=yes | |
1370 | DEFAULT_wxUSE_WXTREE=yes | |
1371 | DEFAULT_wxUSE_METAFILE=yes | |
1372 | ||
1373 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1374 | DEFAULT_wxUSE_DIRDLG=yes | |
1375 | DEFAULT_wxUSE_TEXTDLG=yes | |
1376 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
1377 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
1378 | DEFAULT_wxUSE_MINIFRAME=yes | |
1379 | DEFAULT_wxUSE_HTML=yes | |
1380 | DEFAULT_wxUSE_FS_INET=yes | |
1381 | DEFAULT_wxUSE_FS_ZIP=yes | |
1382 | DEFAULT_wxUSE_BUSYINFO=yes | |
1383 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1384 | DEFAULT_wxUSE_VALIDATORS=yes | |
1385 | ||
1386 | DEFAULT_wxUSE_ACCEL=yes | |
1387 | DEFAULT_wxUSE_CARET=yes | |
1388 | DEFAULT_wxUSE_BMPBUTTON=yes | |
1389 | DEFAULT_wxUSE_CHECKBOX=yes | |
1390 | DEFAULT_wxUSE_CHECKLST=yes | |
1391 | DEFAULT_wxUSE_CHOICE=yes | |
1392 | DEFAULT_wxUSE_COMBOBOX=yes | |
1393 | DEFAULT_wxUSE_GAUGE=yes | |
1394 | DEFAULT_wxUSE_GRID=yes | |
1395 | DEFAULT_wxUSE_IMAGLIST=yes | |
1396 | DEFAULT_wxUSE_LISTBOX=yes | |
1397 | DEFAULT_wxUSE_LISTCTRL=yes | |
1398 | DEFAULT_wxUSE_NOTEBOOK=yes | |
1399 | DEFAULT_wxUSE_RADIOBOX=yes | |
1400 | DEFAULT_wxUSE_RADIOBTN=yes | |
1401 | DEFAULT_wxUSE_SASH=yes | |
1402 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1403 | DEFAULT_wxUSE_SLIDER=yes | |
1404 | DEFAULT_wxUSE_SPINBTN=yes | |
1405 | DEFAULT_wxUSE_SPLITTER=yes | |
1406 | DEFAULT_wxUSE_STATBMP=yes | |
1407 | DEFAULT_wxUSE_STATBOX=yes | |
1408 | DEFAULT_wxUSE_STATLINE=yes | |
1409 | DEFAULT_wxUSE_STATUSBAR=yes | |
1410 | DEFAULT_wxUSE_TABDIALOG=no | |
1411 | DEFAULT_wxUSE_TOOLBAR=yes | |
1412 | DEFAULT_wxUSE_TREECTRL=yes | |
1413 | ||
1414 | DEFAULT_wxUSE_UNICODE=no | |
1415 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1416 | fi | |
1417 | ||
1418 | ||
1419 | ||
1420 | for toolkit in `echo $ALL_TOOLKITS`; do | |
1421 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1422 | if test "x$LINE" != x ; then | |
1423 | has_toolkit_in_cache=1 | |
1424 | eval "DEFAULT_$LINE" | |
1425 | eval "CACHE_$toolkit=1" | |
1426 | fi | |
1427 | done | |
1428 | ||
1429 | # Check whether --with-gtk or --without-gtk was given. | |
1430 | if test "${with_gtk+set}" = set; then | |
1431 | withval="$with_gtk" | |
1432 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
1433 | fi | |
1434 | ||
1435 | # Check whether --with-motif or --without-motif was given. | |
1436 | if test "${with_motif+set}" = set; then | |
1437 | withval="$with_motif" | |
1438 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
1439 | fi | |
1440 | ||
1441 | # Check whether --with-wine or --without-wine was given. | |
1442 | if test "${with_wine+set}" = set; then | |
1443 | withval="$with_wine" | |
1444 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
1445 | fi | |
1446 | ||
1447 | # Check whether --with-cygwin or --without-cygwin was given. | |
1448 | if test "${with_cygwin+set}" = set; then | |
1449 | withval="$with_cygwin" | |
1450 | wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1 | |
1451 | fi | |
1452 | ||
1453 | # Check whether --with-mingw or --without-mingw was given. | |
1454 | if test "${with_mingw+set}" = set; then | |
1455 | withval="$with_mingw" | |
1456 | wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1 | |
1457 | fi | |
1458 | ||
1459 | ||
1460 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
1461 | if test "${with_gtk_prefix+set}" = set; then | |
1462 | withval="$with_gtk_prefix" | |
1463 | gtk_config_prefix="$withval" | |
1464 | else | |
1465 | gtk_config_prefix="" | |
1466 | fi | |
1467 | ||
1468 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
1469 | if test "${with_gtk_exec_prefix+set}" = set; then | |
1470 | withval="$with_gtk_exec_prefix" | |
1471 | gtk_config_exec_prefix="$withval" | |
1472 | else | |
1473 | gtk_config_exec_prefix="" | |
1474 | fi | |
1475 | ||
1476 | ||
1477 | ||
1478 | echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6 | |
5586805b | 1479 | echo "configure:1480: checking "for --with-dmalloc"" >&5 |
7750247f KB |
1480 | no_cache=0 |
1481 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
1482 | if test "${with_dmalloc+set}" = set; then | |
1483 | withval="$with_dmalloc" | |
1484 | ||
1485 | if test "$withval" = yes; then | |
1486 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
1487 | else | |
1488 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
1489 | fi | |
1490 | ||
1491 | else | |
1492 | ||
1493 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
1494 | if test "x$LINE" != x ; then | |
1495 | eval "DEFAULT_$LINE" | |
1496 | else | |
1497 | no_cache=1 | |
1498 | fi | |
1499 | ||
1500 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
1501 | ||
1502 | fi | |
1503 | ||
1504 | ||
1505 | eval "$ac_cv_use_dmalloc" | |
1506 | if test "$no_cache" != 1; then | |
1507 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
1508 | fi | |
1509 | ||
1510 | if test "$wxUSE_DMALLOC" = yes; then | |
1511 | echo "$ac_t""yes" 1>&6 | |
1512 | else | |
1513 | echo "$ac_t""no" 1>&6 | |
1514 | fi | |
1515 | ||
1516 | ||
1517 | echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6 | |
5586805b | 1518 | echo "configure:1519: checking "for --with-zlib"" >&5 |
7750247f KB |
1519 | no_cache=0 |
1520 | # Check whether --with-zlib or --without-zlib was given. | |
1521 | if test "${with_zlib+set}" = set; then | |
1522 | withval="$with_zlib" | |
1523 | ||
1524 | if test "$withval" = yes; then | |
1525 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
1526 | else | |
1527 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
1528 | fi | |
1529 | ||
1530 | else | |
1531 | ||
1532 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
1533 | if test "x$LINE" != x ; then | |
1534 | eval "DEFAULT_$LINE" | |
1535 | else | |
1536 | no_cache=1 | |
1537 | fi | |
1538 | ||
1539 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
1540 | ||
1541 | fi | |
1542 | ||
1543 | ||
1544 | eval "$ac_cv_use_zlib" | |
1545 | if test "$no_cache" != 1; then | |
1546 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
1547 | fi | |
1548 | ||
1549 | if test "$wxUSE_ZLIB" = yes; then | |
1550 | echo "$ac_t""yes" 1>&6 | |
1551 | else | |
1552 | echo "$ac_t""no" 1>&6 | |
1553 | fi | |
1554 | ||
1555 | ||
1556 | echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6 | |
5586805b | 1557 | echo "configure:1558: checking "for --with-libpng"" >&5 |
7750247f KB |
1558 | no_cache=0 |
1559 | # Check whether --with-libpng or --without-libpng was given. | |
1560 | if test "${with_libpng+set}" = set; then | |
1561 | withval="$with_libpng" | |
1562 | ||
1563 | if test "$withval" = yes; then | |
1564 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
1565 | else | |
1566 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
1567 | fi | |
1568 | ||
1569 | else | |
1570 | ||
1571 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
1572 | if test "x$LINE" != x ; then | |
1573 | eval "DEFAULT_$LINE" | |
1574 | else | |
1575 | no_cache=1 | |
1576 | fi | |
1577 | ||
1578 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
1579 | ||
1580 | fi | |
1581 | ||
1582 | ||
1583 | eval "$ac_cv_use_libpng" | |
1584 | if test "$no_cache" != 1; then | |
1585 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
1586 | fi | |
1587 | ||
1588 | if test "$wxUSE_LIBPNG" = yes; then | |
1589 | echo "$ac_t""yes" 1>&6 | |
1590 | else | |
1591 | echo "$ac_t""no" 1>&6 | |
1592 | fi | |
1593 | ||
1594 | ||
1595 | echo $ac_n "checking "for --with-libgif"""... $ac_c" 1>&6 | |
5586805b | 1596 | echo "configure:1597: checking "for --with-libgif"" >&5 |
7750247f KB |
1597 | no_cache=0 |
1598 | # Check whether --with-libgif or --without-libgif was given. | |
1599 | if test "${with_libgif+set}" = set; then | |
1600 | withval="$with_libgif" | |
1601 | ||
1602 | if test "$withval" = yes; then | |
1603 | ac_cv_use_libgif='wxUSE_LIBGIF=yes' | |
1604 | else | |
1605 | ac_cv_use_libgif='wxUSE_LIBGIF=no' | |
1606 | fi | |
1607 | ||
1608 | else | |
1609 | ||
1610 | LINE=`grep "wxUSE_LIBGIF" ${wx_arg_cache_file}` | |
1611 | if test "x$LINE" != x ; then | |
1612 | eval "DEFAULT_$LINE" | |
1613 | else | |
1614 | no_cache=1 | |
1615 | fi | |
1616 | ||
1617 | ac_cv_use_libgif='wxUSE_LIBGIF='$DEFAULT_wxUSE_LIBGIF | |
1618 | ||
1619 | fi | |
1620 | ||
1621 | ||
1622 | eval "$ac_cv_use_libgif" | |
1623 | if test "$no_cache" != 1; then | |
1624 | echo $ac_cv_use_libgif >> ${wx_arg_cache_file}.tmp | |
1625 | fi | |
1626 | ||
1627 | if test "$wxUSE_LIBGIF" = yes; then | |
1628 | echo "$ac_t""yes" 1>&6 | |
1629 | else | |
1630 | echo "$ac_t""no" 1>&6 | |
1631 | fi | |
1632 | ||
1633 | ||
1634 | echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6 | |
5586805b | 1635 | echo "configure:1636: checking "for --with-libjpeg"" >&5 |
7750247f KB |
1636 | no_cache=0 |
1637 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
1638 | if test "${with_libjpeg+set}" = set; then | |
1639 | withval="$with_libjpeg" | |
1640 | ||
1641 | if test "$withval" = yes; then | |
1642 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
1643 | else | |
1644 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
1645 | fi | |
1646 | ||
1647 | else | |
1648 | ||
1649 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
1650 | if test "x$LINE" != x ; then | |
1651 | eval "DEFAULT_$LINE" | |
1652 | else | |
1653 | no_cache=1 | |
1654 | fi | |
1655 | ||
1656 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
1657 | ||
1658 | fi | |
1659 | ||
1660 | ||
1661 | eval "$ac_cv_use_libjpeg" | |
1662 | if test "$no_cache" != 1; then | |
1663 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
1664 | fi | |
1665 | ||
1666 | if test "$wxUSE_LIBJPEG" = yes; then | |
1667 | echo "$ac_t""yes" 1>&6 | |
1668 | else | |
1669 | echo "$ac_t""no" 1>&6 | |
1670 | fi | |
1671 | ||
1672 | ||
1673 | echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6 | |
5586805b | 1674 | echo "configure:1675: checking "for --with-opengl"" >&5 |
7750247f KB |
1675 | no_cache=0 |
1676 | # Check whether --with-opengl or --without-opengl was given. | |
1677 | if test "${with_opengl+set}" = set; then | |
1678 | withval="$with_opengl" | |
1679 | ||
1680 | if test "$withval" = yes; then | |
1681 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
1682 | else | |
1683 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
1684 | fi | |
1685 | ||
1686 | else | |
1687 | ||
1688 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
1689 | if test "x$LINE" != x ; then | |
1690 | eval "DEFAULT_$LINE" | |
1691 | else | |
1692 | no_cache=1 | |
1693 | fi | |
1694 | ||
1695 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
1696 | ||
1697 | fi | |
1698 | ||
1699 | ||
1700 | eval "$ac_cv_use_opengl" | |
1701 | if test "$no_cache" != 1; then | |
1702 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
1703 | fi | |
1704 | ||
1705 | if test "$wxUSE_OPENGL" = yes; then | |
1706 | echo "$ac_t""yes" 1>&6 | |
1707 | else | |
1708 | echo "$ac_t""no" 1>&6 | |
1709 | fi | |
1710 | ||
1711 | ||
1712 | echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6 | |
5586805b | 1713 | echo "configure:1714: checking "for --with-odbc"" >&5 |
7750247f KB |
1714 | no_cache=0 |
1715 | # Check whether --with-odbc or --without-odbc was given. | |
1716 | if test "${with_odbc+set}" = set; then | |
1717 | withval="$with_odbc" | |
1718 | ||
1719 | if test "$withval" = yes; then | |
1720 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
1721 | else | |
1722 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
1723 | fi | |
1724 | ||
1725 | else | |
1726 | ||
1727 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
1728 | if test "x$LINE" != x ; then | |
1729 | eval "DEFAULT_$LINE" | |
1730 | else | |
1731 | no_cache=1 | |
1732 | fi | |
1733 | ||
1734 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
1735 | ||
1736 | fi | |
1737 | ||
1738 | ||
1739 | eval "$ac_cv_use_odbc" | |
1740 | if test "$no_cache" != 1; then | |
1741 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
1742 | fi | |
1743 | ||
1744 | if test "$wxUSE_ODBC" = yes; then | |
1745 | echo "$ac_t""yes" 1>&6 | |
1746 | else | |
1747 | echo "$ac_t""no" 1>&6 | |
1748 | fi | |
1749 | ||
1750 | ||
1751 | ||
1752 | ||
1753 | ||
1754 | echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6 | |
5586805b | 1755 | echo "configure:1756: checking "for --enable-shared"" >&5 |
7750247f KB |
1756 | no_cache=0 |
1757 | # Check whether --enable-shared or --disable-shared was given. | |
1758 | if test "${enable_shared+set}" = set; then | |
1759 | enableval="$enable_shared" | |
1760 | ||
1761 | if test "$enableval" = yes; then | |
1762 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
1763 | else | |
1764 | ac_cv_use_shared='wxUSE_SHARED=no' | |
1765 | fi | |
1766 | ||
1767 | else | |
1768 | ||
1769 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
1770 | if test "x$LINE" != x ; then | |
1771 | eval "DEFAULT_$LINE" | |
1772 | else | |
1773 | no_cache=1 | |
1774 | fi | |
1775 | ||
1776 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
1777 | ||
1778 | fi | |
1779 | ||
1780 | ||
1781 | eval "$ac_cv_use_shared" | |
1782 | if test "$no_cache" != 1; then | |
1783 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
1784 | fi | |
1785 | ||
1786 | if test "$wxUSE_SHARED" = yes; then | |
1787 | echo "$ac_t""yes" 1>&6 | |
1788 | else | |
1789 | echo "$ac_t""no" 1>&6 | |
1790 | fi | |
1791 | ||
1792 | ||
1793 | echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6 | |
5586805b | 1794 | echo "configure:1795: checking "for --enable-optimise"" >&5 |
7750247f KB |
1795 | no_cache=0 |
1796 | # Check whether --enable-optimise or --disable-optimise was given. | |
1797 | if test "${enable_optimise+set}" = set; then | |
1798 | enableval="$enable_optimise" | |
1799 | ||
1800 | if test "$enableval" = yes; then | |
1801 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
1802 | else | |
1803 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
1804 | fi | |
1805 | ||
1806 | else | |
1807 | ||
1808 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
1809 | if test "x$LINE" != x ; then | |
1810 | eval "DEFAULT_$LINE" | |
1811 | else | |
1812 | no_cache=1 | |
1813 | fi | |
1814 | ||
1815 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
1816 | ||
1817 | fi | |
1818 | ||
1819 | ||
1820 | eval "$ac_cv_use_optimise" | |
1821 | if test "$no_cache" != 1; then | |
1822 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
1823 | fi | |
1824 | ||
1825 | if test "$wxUSE_OPTIMISE" = yes; then | |
1826 | echo "$ac_t""yes" 1>&6 | |
1827 | else | |
1828 | echo "$ac_t""no" 1>&6 | |
1829 | fi | |
1830 | ||
1831 | ||
1832 | echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6 | |
5586805b | 1833 | echo "configure:1834: checking "for --enable-debug"" >&5 |
7750247f KB |
1834 | no_cache=0 |
1835 | # Check whether --enable-debug or --disable-debug was given. | |
1836 | if test "${enable_debug+set}" = set; then | |
1837 | enableval="$enable_debug" | |
1838 | ||
1839 | if test "$enableval" = yes; then | |
1840 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
1841 | else | |
1842 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
1843 | fi | |
1844 | ||
1845 | else | |
1846 | ||
1847 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
1848 | if test "x$LINE" != x ; then | |
1849 | eval "DEFAULT_$LINE" | |
1850 | else | |
1851 | no_cache=1 | |
1852 | fi | |
1853 | ||
1854 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
1855 | ||
1856 | fi | |
1857 | ||
1858 | ||
1859 | eval "$ac_cv_use_debug" | |
1860 | if test "$no_cache" != 1; then | |
1861 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
1862 | fi | |
1863 | ||
1864 | if test "$wxUSE_DEBUG" = yes; then | |
1865 | echo "$ac_t""yes" 1>&6 | |
1866 | else | |
1867 | echo "$ac_t""no" 1>&6 | |
1868 | fi | |
1869 | ||
1870 | ||
1871 | if test "$wxUSE_DEBUG" = "yes"; then | |
1872 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1873 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1874 | elif test "$wxUSE_DEBUG" = "no"; then | |
1875 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1876 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1877 | fi | |
1878 | ||
1879 | ||
1880 | echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6 | |
5586805b | 1881 | echo "configure:1882: checking "for --enable-debug_flag"" >&5 |
7750247f KB |
1882 | no_cache=0 |
1883 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
1884 | if test "${enable_debug_flag+set}" = set; then | |
1885 | enableval="$enable_debug_flag" | |
1886 | ||
1887 | if test "$enableval" = yes; then | |
1888 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
1889 | else | |
1890 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
1891 | fi | |
1892 | ||
1893 | else | |
1894 | ||
1895 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
1896 | if test "x$LINE" != x ; then | |
1897 | eval "DEFAULT_$LINE" | |
1898 | else | |
1899 | no_cache=1 | |
1900 | fi | |
1901 | ||
1902 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
1903 | ||
1904 | fi | |
1905 | ||
1906 | ||
1907 | eval "$ac_cv_use_debug_flag" | |
1908 | if test "$no_cache" != 1; then | |
1909 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
1910 | fi | |
1911 | ||
1912 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
1913 | echo "$ac_t""yes" 1>&6 | |
1914 | else | |
1915 | echo "$ac_t""no" 1>&6 | |
1916 | fi | |
1917 | ||
1918 | ||
1919 | echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6 | |
5586805b | 1920 | echo "configure:1921: checking "for --enable-debug_info"" >&5 |
7750247f KB |
1921 | no_cache=0 |
1922 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
1923 | if test "${enable_debug_info+set}" = set; then | |
1924 | enableval="$enable_debug_info" | |
1925 | ||
1926 | if test "$enableval" = yes; then | |
1927 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
1928 | else | |
1929 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
1930 | fi | |
1931 | ||
1932 | else | |
1933 | ||
1934 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
1935 | if test "x$LINE" != x ; then | |
1936 | eval "DEFAULT_$LINE" | |
1937 | else | |
1938 | no_cache=1 | |
1939 | fi | |
1940 | ||
1941 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
1942 | ||
1943 | fi | |
1944 | ||
1945 | ||
1946 | eval "$ac_cv_use_debug_info" | |
1947 | if test "$no_cache" != 1; then | |
1948 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
1949 | fi | |
1950 | ||
1951 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
1952 | echo "$ac_t""yes" 1>&6 | |
1953 | else | |
1954 | echo "$ac_t""no" 1>&6 | |
1955 | fi | |
1956 | ||
1957 | ||
1958 | echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6 | |
5586805b | 1959 | echo "configure:1960: checking "for --enable-debug_gdb"" >&5 |
7750247f KB |
1960 | no_cache=0 |
1961 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
1962 | if test "${enable_debug_gdb+set}" = set; then | |
1963 | enableval="$enable_debug_gdb" | |
1964 | ||
1965 | if test "$enableval" = yes; then | |
1966 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
1967 | else | |
1968 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
1969 | fi | |
1970 | ||
1971 | else | |
1972 | ||
1973 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
1974 | if test "x$LINE" != x ; then | |
1975 | eval "DEFAULT_$LINE" | |
1976 | else | |
1977 | no_cache=1 | |
1978 | fi | |
1979 | ||
1980 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
1981 | ||
1982 | fi | |
1983 | ||
1984 | ||
1985 | eval "$ac_cv_use_debug_gdb" | |
1986 | if test "$no_cache" != 1; then | |
1987 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
1988 | fi | |
1989 | ||
1990 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
1991 | echo "$ac_t""yes" 1>&6 | |
1992 | else | |
1993 | echo "$ac_t""no" 1>&6 | |
1994 | fi | |
1995 | ||
1996 | ||
1997 | echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6 | |
5586805b | 1998 | echo "configure:1999: checking "for --enable-debug_cntxt"" >&5 |
7750247f KB |
1999 | no_cache=0 |
2000 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2001 | if test "${enable_debug_cntxt+set}" = set; then | |
2002 | enableval="$enable_debug_cntxt" | |
2003 | ||
2004 | if test "$enableval" = yes; then | |
2005 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2006 | else | |
2007 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2008 | fi | |
2009 | ||
2010 | else | |
2011 | ||
2012 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
2013 | if test "x$LINE" != x ; then | |
2014 | eval "DEFAULT_$LINE" | |
2015 | else | |
2016 | no_cache=1 | |
2017 | fi | |
2018 | ||
2019 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
2020 | ||
2021 | fi | |
2022 | ||
2023 | ||
2024 | eval "$ac_cv_use_debug_cntxt" | |
2025 | if test "$no_cache" != 1; then | |
2026 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2027 | fi | |
2028 | ||
2029 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
2030 | echo "$ac_t""yes" 1>&6 | |
2031 | else | |
2032 | echo "$ac_t""no" 1>&6 | |
2033 | fi | |
2034 | ||
2035 | ||
2036 | echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6 | |
5586805b | 2037 | echo "configure:2038: checking "for --enable-mem_tracing"" >&5 |
7750247f KB |
2038 | no_cache=0 |
2039 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2040 | if test "${enable_mem_tracing+set}" = set; then | |
2041 | enableval="$enable_mem_tracing" | |
2042 | ||
2043 | if test "$enableval" = yes; then | |
2044 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2045 | else | |
2046 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2047 | fi | |
2048 | ||
2049 | else | |
2050 | ||
2051 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
2052 | if test "x$LINE" != x ; then | |
2053 | eval "DEFAULT_$LINE" | |
2054 | else | |
2055 | no_cache=1 | |
2056 | fi | |
2057 | ||
2058 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
2059 | ||
2060 | fi | |
2061 | ||
2062 | ||
2063 | eval "$ac_cv_use_mem_tracing" | |
2064 | if test "$no_cache" != 1; then | |
2065 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2066 | fi | |
2067 | ||
2068 | if test "$wxUSE_MEM_TRACING" = yes; then | |
2069 | echo "$ac_t""yes" 1>&6 | |
2070 | else | |
2071 | echo "$ac_t""no" 1>&6 | |
2072 | fi | |
2073 | ||
2074 | ||
2075 | echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6 | |
5586805b | 2076 | echo "configure:2077: checking "for --enable-profile"" >&5 |
7750247f KB |
2077 | no_cache=0 |
2078 | # Check whether --enable-profile or --disable-profile was given. | |
2079 | if test "${enable_profile+set}" = set; then | |
2080 | enableval="$enable_profile" | |
2081 | ||
2082 | if test "$enableval" = yes; then | |
2083 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2084 | else | |
2085 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2086 | fi | |
2087 | ||
2088 | else | |
2089 | ||
2090 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
2091 | if test "x$LINE" != x ; then | |
2092 | eval "DEFAULT_$LINE" | |
2093 | else | |
2094 | no_cache=1 | |
2095 | fi | |
2096 | ||
2097 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
2098 | ||
2099 | fi | |
2100 | ||
2101 | ||
2102 | eval "$ac_cv_use_profile" | |
2103 | if test "$no_cache" != 1; then | |
2104 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2105 | fi | |
2106 | ||
2107 | if test "$wxUSE_PROFILE" = yes; then | |
2108 | echo "$ac_t""yes" 1>&6 | |
2109 | else | |
2110 | echo "$ac_t""no" 1>&6 | |
2111 | fi | |
2112 | ||
2113 | ||
2114 | echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6 | |
5586805b | 2115 | echo "configure:2116: checking "for --enable-no_rtti"" >&5 |
7750247f KB |
2116 | no_cache=0 |
2117 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2118 | if test "${enable_no_rtti+set}" = set; then | |
2119 | enableval="$enable_no_rtti" | |
2120 | ||
2121 | if test "$enableval" = yes; then | |
2122 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2123 | else | |
2124 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2125 | fi | |
2126 | ||
2127 | else | |
2128 | ||
2129 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
2130 | if test "x$LINE" != x ; then | |
2131 | eval "DEFAULT_$LINE" | |
2132 | else | |
2133 | no_cache=1 | |
2134 | fi | |
2135 | ||
2136 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
2137 | ||
2138 | fi | |
2139 | ||
2140 | ||
2141 | eval "$ac_cv_use_no_rtti" | |
2142 | if test "$no_cache" != 1; then | |
2143 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2144 | fi | |
2145 | ||
2146 | if test "$wxUSE_NO_RTTI" = yes; then | |
2147 | echo "$ac_t""yes" 1>&6 | |
2148 | else | |
2149 | echo "$ac_t""no" 1>&6 | |
2150 | fi | |
2151 | ||
2152 | ||
2153 | echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6 | |
5586805b | 2154 | echo "configure:2155: checking "for --enable-no_exceptions"" >&5 |
7750247f KB |
2155 | no_cache=0 |
2156 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2157 | if test "${enable_no_exceptions+set}" = set; then | |
2158 | enableval="$enable_no_exceptions" | |
2159 | ||
2160 | if test "$enableval" = yes; then | |
2161 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2162 | else | |
2163 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2164 | fi | |
2165 | ||
2166 | else | |
2167 | ||
2168 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
2169 | if test "x$LINE" != x ; then | |
2170 | eval "DEFAULT_$LINE" | |
2171 | else | |
2172 | no_cache=1 | |
2173 | fi | |
2174 | ||
2175 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
2176 | ||
2177 | fi | |
2178 | ||
2179 | ||
2180 | eval "$ac_cv_use_no_exceptions" | |
2181 | if test "$no_cache" != 1; then | |
2182 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2183 | fi | |
2184 | ||
2185 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
2186 | echo "$ac_t""yes" 1>&6 | |
2187 | else | |
2188 | echo "$ac_t""no" 1>&6 | |
2189 | fi | |
2190 | ||
2191 | ||
5586805b RR |
2192 | echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6 |
2193 | echo "configure:2194: checking "for --enable-permissive"" >&5 | |
2194 | no_cache=0 | |
2195 | # Check whether --enable-permissive or --disable-permissive was given. | |
2196 | if test "${enable_permissive+set}" = set; then | |
2197 | enableval="$enable_permissive" | |
2198 | ||
2199 | if test "$enableval" = yes; then | |
2200 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2201 | else | |
2202 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2203 | fi | |
2204 | ||
2205 | else | |
2206 | ||
2207 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
2208 | if test "x$LINE" != x ; then | |
2209 | eval "DEFAULT_$LINE" | |
2210 | else | |
2211 | no_cache=1 | |
2212 | fi | |
2213 | ||
2214 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
2215 | ||
2216 | fi | |
2217 | ||
2218 | ||
2219 | eval "$ac_cv_use_permissive" | |
2220 | if test "$no_cache" != 1; then | |
2221 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2222 | fi | |
2223 | ||
2224 | if test "$wxUSE_PERMISSIVE" = yes; then | |
2225 | echo "$ac_t""yes" 1>&6 | |
2226 | else | |
2227 | echo "$ac_t""no" 1>&6 | |
2228 | fi | |
2229 | ||
2230 | ||
2231 | echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6 | |
2232 | echo "configure:2233: checking "for --enable-no_deps"" >&5 | |
2233 | no_cache=0 | |
2234 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2235 | if test "${enable_no_deps+set}" = set; then | |
2236 | enableval="$enable_no_deps" | |
2237 | ||
2238 | if test "$enableval" = yes; then | |
2239 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2240 | else | |
2241 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2242 | fi | |
2243 | ||
2244 | else | |
2245 | ||
2246 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
2247 | if test "x$LINE" != x ; then | |
2248 | eval "DEFAULT_$LINE" | |
2249 | else | |
2250 | no_cache=1 | |
2251 | fi | |
2252 | ||
2253 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
2254 | ||
2255 | fi | |
2256 | ||
2257 | ||
2258 | eval "$ac_cv_use_no_deps" | |
2259 | if test "$no_cache" != 1; then | |
2260 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2261 | fi | |
2262 | ||
2263 | if test "$wxUSE_NO_DEPS" = yes; then | |
2264 | echo "$ac_t""yes" 1>&6 | |
2265 | else | |
2266 | echo "$ac_t""no" 1>&6 | |
2267 | fi | |
2268 | ||
2269 | ||
7750247f KB |
2270 | |
2271 | ||
2272 | echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6 | |
5586805b | 2273 | echo "configure:2274: checking "for --enable-gui"" >&5 |
7750247f KB |
2274 | no_cache=0 |
2275 | # Check whether --enable-gui or --disable-gui was given. | |
2276 | if test "${enable_gui+set}" = set; then | |
2277 | enableval="$enable_gui" | |
2278 | ||
2279 | if test "$enableval" = yes; then | |
2280 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2281 | else | |
2282 | ac_cv_use_gui='wxUSE_GUI=no' | |
2283 | fi | |
2284 | ||
2285 | else | |
2286 | ||
2287 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
2288 | if test "x$LINE" != x ; then | |
2289 | eval "DEFAULT_$LINE" | |
2290 | else | |
2291 | no_cache=1 | |
2292 | fi | |
2293 | ||
2294 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
2295 | ||
2296 | fi | |
2297 | ||
2298 | ||
2299 | eval "$ac_cv_use_gui" | |
2300 | if test "$no_cache" != 1; then | |
2301 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2302 | fi | |
2303 | ||
2304 | if test "$wxUSE_GUI" = yes; then | |
2305 | echo "$ac_t""yes" 1>&6 | |
2306 | else | |
2307 | echo "$ac_t""no" 1>&6 | |
2308 | fi | |
2309 | ||
2310 | ||
2311 | ||
2312 | ||
2313 | echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6 | |
5586805b | 2314 | echo "configure:2315: checking "for --enable-intl"" >&5 |
7750247f KB |
2315 | no_cache=0 |
2316 | # Check whether --enable-intl or --disable-intl was given. | |
2317 | if test "${enable_intl+set}" = set; then | |
2318 | enableval="$enable_intl" | |
2319 | ||
2320 | if test "$enableval" = yes; then | |
2321 | ac_cv_use_intl='wxUSE_INTL=yes' | |
2322 | else | |
2323 | ac_cv_use_intl='wxUSE_INTL=no' | |
2324 | fi | |
2325 | ||
2326 | else | |
2327 | ||
2328 | LINE=`grep "wxUSE_INTL" ${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_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
2336 | ||
2337 | fi | |
2338 | ||
2339 | ||
2340 | eval "$ac_cv_use_intl" | |
2341 | if test "$no_cache" != 1; then | |
2342 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
2343 | fi | |
2344 | ||
2345 | if test "$wxUSE_INTL" = 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-config"""... $ac_c" 1>&6 | |
5586805b | 2353 | echo "configure:2354: checking "for --enable-config"" >&5 |
7750247f KB |
2354 | no_cache=0 |
2355 | # Check whether --enable-config or --disable-config was given. | |
2356 | if test "${enable_config+set}" = set; then | |
2357 | enableval="$enable_config" | |
2358 | ||
2359 | if test "$enableval" = yes; then | |
2360 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
2361 | else | |
2362 | ac_cv_use_config='wxUSE_CONFIG=no' | |
2363 | fi | |
2364 | ||
2365 | else | |
2366 | ||
2367 | LINE=`grep "wxUSE_CONFIG" ${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_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
2375 | ||
2376 | fi | |
2377 | ||
2378 | ||
2379 | eval "$ac_cv_use_config" | |
2380 | if test "$no_cache" != 1; then | |
2381 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
2382 | fi | |
2383 | ||
2384 | if test "$wxUSE_CONFIG" = yes; then | |
2385 | echo "$ac_t""yes" 1>&6 | |
2386 | else | |
2387 | echo "$ac_t""no" 1>&6 | |
2388 | fi | |
2389 | ||
2390 | ||
2391 | echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6 | |
5586805b | 2392 | echo "configure:2393: checking "for --enable-sockets"" >&5 |
7750247f KB |
2393 | no_cache=0 |
2394 | # Check whether --enable-sockets or --disable-sockets was given. | |
2395 | if test "${enable_sockets+set}" = set; then | |
2396 | enableval="$enable_sockets" | |
2397 | ||
2398 | if test "$enableval" = yes; then | |
2399 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
2400 | else | |
2401 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
2402 | fi | |
2403 | ||
2404 | else | |
2405 | ||
2406 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
2407 | if test "x$LINE" != x ; then | |
2408 | eval "DEFAULT_$LINE" | |
2409 | else | |
2410 | no_cache=1 | |
2411 | fi | |
2412 | ||
2413 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
2414 | ||
2415 | fi | |
2416 | ||
2417 | ||
2418 | eval "$ac_cv_use_sockets" | |
2419 | if test "$no_cache" != 1; then | |
2420 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
2421 | fi | |
2422 | ||
2423 | if test "$wxUSE_SOCKETS" = yes; then | |
2424 | echo "$ac_t""yes" 1>&6 | |
2425 | else | |
2426 | echo "$ac_t""no" 1>&6 | |
2427 | fi | |
2428 | ||
2429 | ||
2430 | echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6 | |
5586805b | 2431 | echo "configure:2432: checking "for --enable-ipc"" >&5 |
7750247f KB |
2432 | no_cache=0 |
2433 | # Check whether --enable-ipc or --disable-ipc was given. | |
2434 | if test "${enable_ipc+set}" = set; then | |
2435 | enableval="$enable_ipc" | |
2436 | ||
2437 | if test "$enableval" = yes; then | |
2438 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
2439 | else | |
2440 | ac_cv_use_ipc='wxUSE_IPC=no' | |
2441 | fi | |
2442 | ||
2443 | else | |
2444 | ||
2445 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
2446 | if test "x$LINE" != x ; then | |
2447 | eval "DEFAULT_$LINE" | |
2448 | else | |
2449 | no_cache=1 | |
2450 | fi | |
2451 | ||
2452 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
2453 | ||
2454 | fi | |
2455 | ||
2456 | ||
2457 | eval "$ac_cv_use_ipc" | |
2458 | if test "$no_cache" != 1; then | |
2459 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
2460 | fi | |
2461 | ||
2462 | if test "$wxUSE_IPC" = yes; then | |
2463 | echo "$ac_t""yes" 1>&6 | |
2464 | else | |
2465 | echo "$ac_t""no" 1>&6 | |
2466 | fi | |
2467 | ||
2468 | ||
2469 | echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6 | |
5586805b | 2470 | echo "configure:2471: checking "for --enable-apple_ieee"" >&5 |
7750247f KB |
2471 | no_cache=0 |
2472 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
2473 | if test "${enable_apple_ieee+set}" = set; then | |
2474 | enableval="$enable_apple_ieee" | |
2475 | ||
2476 | if test "$enableval" = yes; then | |
2477 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
2478 | else | |
2479 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
2480 | fi | |
2481 | ||
2482 | else | |
2483 | ||
2484 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
2485 | if test "x$LINE" != x ; then | |
2486 | eval "DEFAULT_$LINE" | |
2487 | else | |
2488 | no_cache=1 | |
2489 | fi | |
2490 | ||
2491 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
2492 | ||
2493 | fi | |
2494 | ||
2495 | ||
2496 | eval "$ac_cv_use_apple_ieee" | |
2497 | if test "$no_cache" != 1; then | |
2498 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
2499 | fi | |
2500 | ||
2501 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
2502 | echo "$ac_t""yes" 1>&6 | |
2503 | else | |
2504 | echo "$ac_t""no" 1>&6 | |
2505 | fi | |
2506 | ||
2507 | ||
2508 | echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6 | |
5586805b | 2509 | echo "configure:2510: checking "for --enable-timedate"" >&5 |
7750247f KB |
2510 | no_cache=0 |
2511 | # Check whether --enable-timedate or --disable-timedate was given. | |
2512 | if test "${enable_timedate+set}" = set; then | |
2513 | enableval="$enable_timedate" | |
2514 | ||
2515 | if test "$enableval" = yes; then | |
2516 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
2517 | else | |
2518 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
2519 | fi | |
2520 | ||
2521 | else | |
2522 | ||
2523 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
2524 | if test "x$LINE" != x ; then | |
2525 | eval "DEFAULT_$LINE" | |
2526 | else | |
2527 | no_cache=1 | |
2528 | fi | |
2529 | ||
2530 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
2531 | ||
2532 | fi | |
2533 | ||
2534 | ||
2535 | eval "$ac_cv_use_timedate" | |
2536 | if test "$no_cache" != 1; then | |
2537 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
2538 | fi | |
2539 | ||
2540 | if test "$wxUSE_TIMEDATE" = yes; then | |
2541 | echo "$ac_t""yes" 1>&6 | |
2542 | else | |
2543 | echo "$ac_t""no" 1>&6 | |
2544 | fi | |
2545 | ||
2546 | ||
2547 | echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6 | |
5586805b | 2548 | echo "configure:2549: checking "for --enable-wave"" >&5 |
7750247f KB |
2549 | no_cache=0 |
2550 | # Check whether --enable-wave or --disable-wave was given. | |
2551 | if test "${enable_wave+set}" = set; then | |
2552 | enableval="$enable_wave" | |
2553 | ||
2554 | if test "$enableval" = yes; then | |
2555 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
2556 | else | |
2557 | ac_cv_use_wave='wxUSE_WAVE=no' | |
2558 | fi | |
2559 | ||
2560 | else | |
2561 | ||
2562 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` | |
2563 | if test "x$LINE" != x ; then | |
2564 | eval "DEFAULT_$LINE" | |
2565 | else | |
2566 | no_cache=1 | |
2567 | fi | |
2568 | ||
2569 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
2570 | ||
2571 | fi | |
2572 | ||
2573 | ||
2574 | eval "$ac_cv_use_wave" | |
2575 | if test "$no_cache" != 1; then | |
2576 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
2577 | fi | |
2578 | ||
2579 | if test "$wxUSE_WAVE" = yes; then | |
2580 | echo "$ac_t""yes" 1>&6 | |
2581 | else | |
2582 | echo "$ac_t""no" 1>&6 | |
2583 | fi | |
2584 | ||
2585 | ||
2586 | echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6 | |
5586805b | 2587 | echo "configure:2588: checking "for --enable-fraction"" >&5 |
7750247f KB |
2588 | no_cache=0 |
2589 | # Check whether --enable-fraction or --disable-fraction was given. | |
2590 | if test "${enable_fraction+set}" = set; then | |
2591 | enableval="$enable_fraction" | |
2592 | ||
2593 | if test "$enableval" = yes; then | |
2594 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
2595 | else | |
2596 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
2597 | fi | |
2598 | ||
2599 | else | |
2600 | ||
2601 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` | |
2602 | if test "x$LINE" != x ; then | |
2603 | eval "DEFAULT_$LINE" | |
2604 | else | |
2605 | no_cache=1 | |
2606 | fi | |
2607 | ||
2608 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
2609 | ||
2610 | fi | |
2611 | ||
2612 | ||
2613 | eval "$ac_cv_use_fraction" | |
2614 | if test "$no_cache" != 1; then | |
2615 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
2616 | fi | |
2617 | ||
2618 | if test "$wxUSE_FRACTION" = yes; then | |
2619 | echo "$ac_t""yes" 1>&6 | |
2620 | else | |
2621 | echo "$ac_t""no" 1>&6 | |
2622 | fi | |
2623 | ||
2624 | ||
2625 | echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6 | |
5586805b | 2626 | echo "configure:2627: checking "for --enable-dynlib"" >&5 |
7750247f KB |
2627 | no_cache=0 |
2628 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
2629 | if test "${enable_dynlib+set}" = set; then | |
2630 | enableval="$enable_dynlib" | |
2631 | ||
2632 | if test "$enableval" = yes; then | |
2633 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
2634 | else | |
2635 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
2636 | fi | |
2637 | ||
2638 | else | |
2639 | ||
2640 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
2641 | if test "x$LINE" != x ; then | |
2642 | eval "DEFAULT_$LINE" | |
2643 | else | |
2644 | no_cache=1 | |
2645 | fi | |
2646 | ||
2647 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
2648 | ||
2649 | fi | |
2650 | ||
2651 | ||
2652 | eval "$ac_cv_use_dynlib" | |
2653 | if test "$no_cache" != 1; then | |
2654 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
2655 | fi | |
2656 | ||
2657 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
2658 | echo "$ac_t""yes" 1>&6 | |
2659 | else | |
2660 | echo "$ac_t""no" 1>&6 | |
2661 | fi | |
2662 | ||
2663 | ||
2664 | echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6 | |
5586805b | 2665 | echo "configure:2666: checking "for --enable-longlong"" >&5 |
7750247f KB |
2666 | no_cache=0 |
2667 | # Check whether --enable-longlong or --disable-longlong was given. | |
2668 | if test "${enable_longlong+set}" = set; then | |
2669 | enableval="$enable_longlong" | |
2670 | ||
2671 | if test "$enableval" = yes; then | |
2672 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
2673 | else | |
2674 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
2675 | fi | |
2676 | ||
2677 | else | |
2678 | ||
2679 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
2680 | if test "x$LINE" != x ; then | |
2681 | eval "DEFAULT_$LINE" | |
2682 | else | |
2683 | no_cache=1 | |
2684 | fi | |
2685 | ||
2686 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
2687 | ||
2688 | fi | |
2689 | ||
2690 | ||
2691 | eval "$ac_cv_use_longlong" | |
2692 | if test "$no_cache" != 1; then | |
2693 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
2694 | fi | |
2695 | ||
2696 | if test "$wxUSE_LONGLONG" = yes; then | |
2697 | echo "$ac_t""yes" 1>&6 | |
2698 | else | |
2699 | echo "$ac_t""no" 1>&6 | |
2700 | fi | |
2701 | ||
2702 | ||
2703 | echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6 | |
5586805b | 2704 | echo "configure:2705: checking "for --enable-log"" >&5 |
7750247f KB |
2705 | no_cache=0 |
2706 | # Check whether --enable-log or --disable-log was given. | |
2707 | if test "${enable_log+set}" = set; then | |
2708 | enableval="$enable_log" | |
2709 | ||
2710 | if test "$enableval" = yes; then | |
2711 | ac_cv_use_log='wxUSE_LOG=yes' | |
2712 | else | |
2713 | ac_cv_use_log='wxUSE_LOG=no' | |
2714 | fi | |
2715 | ||
2716 | else | |
2717 | ||
2718 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
2719 | if test "x$LINE" != x ; then | |
2720 | eval "DEFAULT_$LINE" | |
2721 | else | |
2722 | no_cache=1 | |
2723 | fi | |
2724 | ||
2725 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
2726 | ||
2727 | fi | |
2728 | ||
2729 | ||
2730 | eval "$ac_cv_use_log" | |
2731 | if test "$no_cache" != 1; then | |
2732 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
2733 | fi | |
2734 | ||
2735 | if test "$wxUSE_LOG" = yes; then | |
2736 | echo "$ac_t""yes" 1>&6 | |
2737 | else | |
2738 | echo "$ac_t""no" 1>&6 | |
2739 | fi | |
2740 | ||
2741 | ||
2742 | echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6 | |
5586805b | 2743 | echo "configure:2744: checking "for --enable-streams"" >&5 |
7750247f KB |
2744 | no_cache=0 |
2745 | # Check whether --enable-streams or --disable-streams was given. | |
2746 | if test "${enable_streams+set}" = set; then | |
2747 | enableval="$enable_streams" | |
2748 | ||
2749 | if test "$enableval" = yes; then | |
2750 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
2751 | else | |
2752 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
2753 | fi | |
2754 | ||
2755 | else | |
2756 | ||
2757 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
2758 | if test "x$LINE" != x ; then | |
2759 | eval "DEFAULT_$LINE" | |
2760 | else | |
2761 | no_cache=1 | |
2762 | fi | |
2763 | ||
2764 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
2765 | ||
2766 | fi | |
2767 | ||
2768 | ||
2769 | eval "$ac_cv_use_streams" | |
2770 | if test "$no_cache" != 1; then | |
2771 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
2772 | fi | |
2773 | ||
2774 | if test "$wxUSE_STREAMS" = yes; then | |
2775 | echo "$ac_t""yes" 1>&6 | |
2776 | else | |
2777 | echo "$ac_t""no" 1>&6 | |
2778 | fi | |
2779 | ||
2780 | ||
2781 | echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6 | |
5586805b | 2782 | echo "configure:2783: checking "for --enable-file"" >&5 |
7750247f KB |
2783 | no_cache=0 |
2784 | # Check whether --enable-file or --disable-file was given. | |
2785 | if test "${enable_file+set}" = set; then | |
2786 | enableval="$enable_file" | |
2787 | ||
2788 | if test "$enableval" = yes; then | |
2789 | ac_cv_use_file='wxUSE_FILE=yes' | |
2790 | else | |
2791 | ac_cv_use_file='wxUSE_FILE=no' | |
2792 | fi | |
2793 | ||
2794 | else | |
2795 | ||
2796 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
2797 | if test "x$LINE" != x ; then | |
2798 | eval "DEFAULT_$LINE" | |
2799 | else | |
2800 | no_cache=1 | |
2801 | fi | |
2802 | ||
2803 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
2804 | ||
2805 | fi | |
2806 | ||
2807 | ||
2808 | eval "$ac_cv_use_file" | |
2809 | if test "$no_cache" != 1; then | |
2810 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
2811 | fi | |
2812 | ||
2813 | if test "$wxUSE_FILE" = yes; then | |
2814 | echo "$ac_t""yes" 1>&6 | |
2815 | else | |
2816 | echo "$ac_t""no" 1>&6 | |
2817 | fi | |
2818 | ||
2819 | ||
2820 | echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6 | |
5586805b | 2821 | echo "configure:2822: checking "for --enable-textfile"" >&5 |
7750247f KB |
2822 | no_cache=0 |
2823 | # Check whether --enable-textfile or --disable-textfile was given. | |
2824 | if test "${enable_textfile+set}" = set; then | |
2825 | enableval="$enable_textfile" | |
2826 | ||
2827 | if test "$enableval" = yes; then | |
2828 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
2829 | else | |
2830 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
2831 | fi | |
2832 | ||
2833 | else | |
2834 | ||
2835 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
2836 | if test "x$LINE" != x ; then | |
2837 | eval "DEFAULT_$LINE" | |
2838 | else | |
2839 | no_cache=1 | |
2840 | fi | |
2841 | ||
2842 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
2843 | ||
2844 | fi | |
2845 | ||
2846 | ||
2847 | eval "$ac_cv_use_textfile" | |
2848 | if test "$no_cache" != 1; then | |
2849 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
2850 | fi | |
2851 | ||
2852 | if test "$wxUSE_TEXTFILE" = yes; then | |
2853 | echo "$ac_t""yes" 1>&6 | |
2854 | else | |
2855 | echo "$ac_t""no" 1>&6 | |
2856 | fi | |
2857 | ||
2858 | ||
2859 | echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6 | |
5586805b | 2860 | echo "configure:2861: checking "for --enable-unicode"" >&5 |
7750247f KB |
2861 | no_cache=0 |
2862 | # Check whether --enable-unicode or --disable-unicode was given. | |
2863 | if test "${enable_unicode+set}" = set; then | |
2864 | enableval="$enable_unicode" | |
2865 | ||
2866 | if test "$enableval" = yes; then | |
2867 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
2868 | else | |
2869 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
2870 | fi | |
2871 | ||
2872 | else | |
2873 | ||
2874 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
2875 | if test "x$LINE" != x ; then | |
2876 | eval "DEFAULT_$LINE" | |
2877 | else | |
2878 | no_cache=1 | |
2879 | fi | |
2880 | ||
2881 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
2882 | ||
2883 | fi | |
2884 | ||
2885 | ||
2886 | eval "$ac_cv_use_unicode" | |
2887 | if test "$no_cache" != 1; then | |
2888 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
2889 | fi | |
2890 | ||
2891 | if test "$wxUSE_UNICODE" = yes; then | |
2892 | echo "$ac_t""yes" 1>&6 | |
2893 | else | |
2894 | echo "$ac_t""no" 1>&6 | |
2895 | fi | |
2896 | ||
2897 | ||
2898 | echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6 | |
5586805b | 2899 | echo "configure:2900: checking "for --enable-wcsrtombs"" >&5 |
7750247f KB |
2900 | no_cache=0 |
2901 | # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given. | |
2902 | if test "${enable_wcsrtombs+set}" = set; then | |
2903 | enableval="$enable_wcsrtombs" | |
2904 | ||
2905 | if test "$enableval" = yes; then | |
2906 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes' | |
2907 | else | |
2908 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no' | |
2909 | fi | |
2910 | ||
2911 | else | |
2912 | ||
2913 | LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}` | |
2914 | if test "x$LINE" != x ; then | |
2915 | eval "DEFAULT_$LINE" | |
2916 | else | |
2917 | no_cache=1 | |
2918 | fi | |
2919 | ||
2920 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS | |
2921 | ||
2922 | fi | |
2923 | ||
2924 | ||
2925 | eval "$ac_cv_use_wcsrtombs" | |
2926 | if test "$no_cache" != 1; then | |
2927 | echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp | |
2928 | fi | |
2929 | ||
2930 | if test "$wxUSE_WCSRTOMBS" = yes; then | |
2931 | echo "$ac_t""yes" 1>&6 | |
2932 | else | |
2933 | echo "$ac_t""no" 1>&6 | |
2934 | fi | |
2935 | ||
2936 | ||
2937 | echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6 | |
5586805b | 2938 | echo "configure:2939: checking "for --enable-wxprintfv"" >&5 |
7750247f KB |
2939 | no_cache=0 |
2940 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
2941 | if test "${enable_wxprintfv+set}" = set; then | |
2942 | enableval="$enable_wxprintfv" | |
2943 | ||
2944 | if test "$enableval" = yes; then | |
2945 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
2946 | else | |
2947 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
2948 | fi | |
2949 | ||
2950 | else | |
2951 | ||
2952 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
2953 | if test "x$LINE" != x ; then | |
2954 | eval "DEFAULT_$LINE" | |
2955 | else | |
2956 | no_cache=1 | |
2957 | fi | |
2958 | ||
2959 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
2960 | ||
2961 | fi | |
2962 | ||
2963 | ||
2964 | eval "$ac_cv_use_wxprintfv" | |
2965 | if test "$no_cache" != 1; then | |
2966 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
2967 | fi | |
2968 | ||
2969 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
2970 | echo "$ac_t""yes" 1>&6 | |
2971 | else | |
2972 | echo "$ac_t""no" 1>&6 | |
2973 | fi | |
2974 | ||
2975 | ||
2976 | echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6 | |
5586805b | 2977 | echo "configure:2978: checking "for --enable-joystick"" >&5 |
7750247f KB |
2978 | no_cache=0 |
2979 | # Check whether --enable-joystick or --disable-joystick was given. | |
2980 | if test "${enable_joystick+set}" = set; then | |
2981 | enableval="$enable_joystick" | |
2982 | ||
2983 | if test "$enableval" = yes; then | |
2984 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
2985 | else | |
2986 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
2987 | fi | |
2988 | ||
2989 | else | |
2990 | ||
2991 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
2992 | if test "x$LINE" != x ; then | |
2993 | eval "DEFAULT_$LINE" | |
2994 | else | |
2995 | no_cache=1 | |
2996 | fi | |
2997 | ||
2998 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
2999 | ||
3000 | fi | |
3001 | ||
3002 | ||
3003 | eval "$ac_cv_use_joystick" | |
3004 | if test "$no_cache" != 1; then | |
3005 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
3006 | fi | |
3007 | ||
3008 | if test "$wxUSE_JOYSTICK" = yes; then | |
3009 | echo "$ac_t""yes" 1>&6 | |
3010 | else | |
3011 | echo "$ac_t""no" 1>&6 | |
3012 | fi | |
3013 | ||
3014 | ||
3015 | echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6 | |
5586805b | 3016 | echo "configure:3017: checking "for --enable-std_iostreams"" >&5 |
7750247f KB |
3017 | no_cache=0 |
3018 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
3019 | if test "${enable_std_iostreams+set}" = set; then | |
3020 | enableval="$enable_std_iostreams" | |
3021 | ||
3022 | if test "$enableval" = yes; then | |
3023 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
3024 | else | |
3025 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
3026 | fi | |
3027 | ||
3028 | else | |
3029 | ||
3030 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` | |
3031 | if test "x$LINE" != x ; then | |
3032 | eval "DEFAULT_$LINE" | |
3033 | else | |
3034 | no_cache=1 | |
3035 | fi | |
3036 | ||
3037 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
3038 | ||
3039 | fi | |
3040 | ||
3041 | ||
3042 | eval "$ac_cv_use_std_iostreams" | |
3043 | if test "$no_cache" != 1; then | |
3044 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
3045 | fi | |
3046 | ||
3047 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
3048 | echo "$ac_t""yes" 1>&6 | |
3049 | else | |
3050 | echo "$ac_t""no" 1>&6 | |
3051 | fi | |
3052 | ||
3053 | ||
3054 | echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6 | |
5586805b | 3055 | echo "configure:3056: checking "for --enable-fs_inet"" >&5 |
7750247f KB |
3056 | no_cache=0 |
3057 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
3058 | if test "${enable_fs_inet+set}" = set; then | |
3059 | enableval="$enable_fs_inet" | |
3060 | ||
3061 | if test "$enableval" = yes; then | |
3062 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
3063 | else | |
3064 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
3065 | fi | |
3066 | ||
3067 | else | |
3068 | ||
3069 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
3070 | if test "x$LINE" != x ; then | |
3071 | eval "DEFAULT_$LINE" | |
3072 | else | |
3073 | no_cache=1 | |
3074 | fi | |
3075 | ||
3076 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
3077 | ||
3078 | fi | |
3079 | ||
3080 | ||
3081 | eval "$ac_cv_use_fs_inet" | |
3082 | if test "$no_cache" != 1; then | |
3083 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
3084 | fi | |
3085 | ||
3086 | if test "$wxUSE_FS_INET" = yes; then | |
3087 | echo "$ac_t""yes" 1>&6 | |
3088 | else | |
3089 | echo "$ac_t""no" 1>&6 | |
3090 | fi | |
3091 | ||
3092 | ||
3093 | echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6 | |
5586805b | 3094 | echo "configure:3095: checking "for --enable-fs_zip"" >&5 |
7750247f KB |
3095 | no_cache=0 |
3096 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
3097 | if test "${enable_fs_zip+set}" = set; then | |
3098 | enableval="$enable_fs_zip" | |
3099 | ||
3100 | if test "$enableval" = yes; then | |
3101 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
3102 | else | |
3103 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
3104 | fi | |
3105 | ||
3106 | else | |
3107 | ||
3108 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
3109 | if test "x$LINE" != x ; then | |
3110 | eval "DEFAULT_$LINE" | |
3111 | else | |
3112 | no_cache=1 | |
3113 | fi | |
3114 | ||
3115 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
3116 | ||
3117 | fi | |
3118 | ||
3119 | ||
3120 | eval "$ac_cv_use_fs_zip" | |
3121 | if test "$no_cache" != 1; then | |
3122 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
3123 | fi | |
3124 | ||
3125 | if test "$wxUSE_FS_ZIP" = yes; then | |
3126 | echo "$ac_t""yes" 1>&6 | |
3127 | else | |
3128 | echo "$ac_t""no" 1>&6 | |
3129 | fi | |
3130 | ||
3131 | ||
3132 | echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6 | |
5586805b | 3133 | echo "configure:3134: checking "for --enable-zipstream"" >&5 |
7750247f KB |
3134 | no_cache=0 |
3135 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
3136 | if test "${enable_zipstream+set}" = set; then | |
3137 | enableval="$enable_zipstream" | |
3138 | ||
3139 | if test "$enableval" = yes; then | |
3140 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
3141 | else | |
3142 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
3143 | fi | |
3144 | ||
3145 | else | |
3146 | ||
3147 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
3148 | if test "x$LINE" != x ; then | |
3149 | eval "DEFAULT_$LINE" | |
3150 | else | |
3151 | no_cache=1 | |
3152 | fi | |
3153 | ||
3154 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
3155 | ||
3156 | fi | |
3157 | ||
3158 | ||
3159 | eval "$ac_cv_use_zipstream" | |
3160 | if test "$no_cache" != 1; then | |
3161 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
3162 | fi | |
3163 | ||
3164 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
3165 | echo "$ac_t""yes" 1>&6 | |
3166 | else | |
3167 | echo "$ac_t""no" 1>&6 | |
3168 | fi | |
3169 | ||
3170 | ||
3171 | ||
3172 | ||
3173 | echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6 | |
5586805b | 3174 | echo "configure:3175: checking "for --enable-threads"" >&5 |
7750247f KB |
3175 | no_cache=0 |
3176 | # Check whether --enable-threads or --disable-threads was given. | |
3177 | if test "${enable_threads+set}" = set; then | |
3178 | enableval="$enable_threads" | |
3179 | ||
3180 | if test "$enableval" = yes; then | |
3181 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
3182 | else | |
3183 | ac_cv_use_threads='wxUSE_THREADS=no' | |
3184 | fi | |
3185 | ||
3186 | else | |
3187 | ||
3188 | LINE=`grep "wxUSE_THREADS" ${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_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
3196 | ||
3197 | fi | |
3198 | ||
3199 | ||
3200 | eval "$ac_cv_use_threads" | |
3201 | if test "$no_cache" != 1; then | |
3202 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
3203 | fi | |
3204 | ||
3205 | if test "$wxUSE_THREADS" = 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-serial"""... $ac_c" 1>&6 | |
5586805b | 3213 | echo "configure:3214: checking "for --enable-serial"" >&5 |
7750247f KB |
3214 | no_cache=0 |
3215 | # Check whether --enable-serial or --disable-serial was given. | |
3216 | if test "${enable_serial+set}" = set; then | |
3217 | enableval="$enable_serial" | |
3218 | ||
3219 | if test "$enableval" = yes; then | |
3220 | ac_cv_use_serial='wxUSE_SERIAL=yes' | |
3221 | else | |
3222 | ac_cv_use_serial='wxUSE_SERIAL=no' | |
3223 | fi | |
3224 | ||
3225 | else | |
3226 | ||
3227 | LINE=`grep "wxUSE_SERIAL" ${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_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL | |
3235 | ||
3236 | fi | |
3237 | ||
3238 | ||
3239 | eval "$ac_cv_use_serial" | |
3240 | if test "$no_cache" != 1; then | |
3241 | echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp | |
3242 | fi | |
3243 | ||
3244 | if test "$wxUSE_SERIAL" = yes; then | |
3245 | echo "$ac_t""yes" 1>&6 | |
3246 | else | |
3247 | echo "$ac_t""no" 1>&6 | |
3248 | fi | |
3249 | ||
3250 | ||
3251 | ||
3252 | ||
3253 | echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6 | |
5586805b | 3254 | echo "configure:3255: checking "for --enable-docview"" >&5 |
7750247f KB |
3255 | no_cache=0 |
3256 | # Check whether --enable-docview or --disable-docview was given. | |
3257 | if test "${enable_docview+set}" = set; then | |
3258 | enableval="$enable_docview" | |
3259 | ||
3260 | if test "$enableval" = yes; then | |
3261 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
3262 | else | |
3263 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
3264 | fi | |
3265 | ||
3266 | else | |
3267 | ||
3268 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
3269 | if test "x$LINE" != x ; then | |
3270 | eval "DEFAULT_$LINE" | |
3271 | else | |
3272 | no_cache=1 | |
3273 | fi | |
3274 | ||
3275 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
3276 | ||
3277 | fi | |
3278 | ||
3279 | ||
3280 | eval "$ac_cv_use_docview" | |
3281 | if test "$no_cache" != 1; then | |
3282 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
3283 | fi | |
3284 | ||
3285 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
3286 | echo "$ac_t""yes" 1>&6 | |
3287 | else | |
3288 | echo "$ac_t""no" 1>&6 | |
3289 | fi | |
3290 | ||
3291 | ||
3292 | echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6 | |
5586805b | 3293 | echo "configure:3294: checking "for --enable-help"" >&5 |
7750247f KB |
3294 | no_cache=0 |
3295 | # Check whether --enable-help or --disable-help was given. | |
3296 | if test "${enable_help+set}" = set; then | |
3297 | enableval="$enable_help" | |
3298 | ||
3299 | if test "$enableval" = yes; then | |
3300 | ac_cv_use_help='wxUSE_HELP=yes' | |
3301 | else | |
3302 | ac_cv_use_help='wxUSE_HELP=no' | |
3303 | fi | |
3304 | ||
3305 | else | |
3306 | ||
3307 | LINE=`grep "wxUSE_HELP" ${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_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
3315 | ||
3316 | fi | |
3317 | ||
3318 | ||
3319 | eval "$ac_cv_use_help" | |
3320 | if test "$no_cache" != 1; then | |
3321 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
3322 | fi | |
3323 | ||
3324 | if test "$wxUSE_HELP" = 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-constraints"""... $ac_c" 1>&6 | |
5586805b | 3332 | echo "configure:3333: checking "for --enable-constraints"" >&5 |
7750247f KB |
3333 | no_cache=0 |
3334 | # Check whether --enable-constraints or --disable-constraints was given. | |
3335 | if test "${enable_constraints+set}" = set; then | |
3336 | enableval="$enable_constraints" | |
3337 | ||
3338 | if test "$enableval" = yes; then | |
3339 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
3340 | else | |
3341 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
3342 | fi | |
3343 | ||
3344 | else | |
3345 | ||
3346 | LINE=`grep "wxUSE_CONSTRAINTS" ${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_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
3354 | ||
3355 | fi | |
3356 | ||
3357 | ||
3358 | eval "$ac_cv_use_constraints" | |
3359 | if test "$no_cache" != 1; then | |
3360 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
3361 | fi | |
3362 | ||
3363 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
3364 | echo "$ac_t""yes" 1>&6 | |
3365 | else | |
3366 | echo "$ac_t""no" 1>&6 | |
3367 | fi | |
3368 | ||
3369 | ||
3370 | echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6 | |
5586805b | 3371 | echo "configure:3372: checking "for --enable-printarch"" >&5 |
7750247f KB |
3372 | no_cache=0 |
3373 | # Check whether --enable-printarch or --disable-printarch was given. | |
3374 | if test "${enable_printarch+set}" = set; then | |
3375 | enableval="$enable_printarch" | |
3376 | ||
3377 | if test "$enableval" = yes; then | |
3378 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
3379 | else | |
3380 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
3381 | fi | |
3382 | ||
3383 | else | |
3384 | ||
3385 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
3386 | if test "x$LINE" != x ; then | |
3387 | eval "DEFAULT_$LINE" | |
3388 | else | |
3389 | no_cache=1 | |
3390 | fi | |
3391 | ||
3392 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
3393 | ||
3394 | fi | |
3395 | ||
3396 | ||
3397 | eval "$ac_cv_use_printarch" | |
3398 | if test "$no_cache" != 1; then | |
3399 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
3400 | fi | |
3401 | ||
3402 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
3403 | echo "$ac_t""yes" 1>&6 | |
3404 | else | |
3405 | echo "$ac_t""no" 1>&6 | |
3406 | fi | |
3407 | ||
3408 | ||
3409 | echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6 | |
5586805b | 3410 | echo "configure:3411: checking "for --enable-mdi"" >&5 |
7750247f KB |
3411 | no_cache=0 |
3412 | # Check whether --enable-mdi or --disable-mdi was given. | |
3413 | if test "${enable_mdi+set}" = set; then | |
3414 | enableval="$enable_mdi" | |
3415 | ||
3416 | if test "$enableval" = yes; then | |
3417 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
3418 | else | |
3419 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
3420 | fi | |
3421 | ||
3422 | else | |
3423 | ||
3424 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
3425 | if test "x$LINE" != x ; then | |
3426 | eval "DEFAULT_$LINE" | |
3427 | else | |
3428 | no_cache=1 | |
3429 | fi | |
3430 | ||
3431 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
3432 | ||
3433 | fi | |
3434 | ||
3435 | ||
3436 | eval "$ac_cv_use_mdi" | |
3437 | if test "$no_cache" != 1; then | |
3438 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
3439 | fi | |
3440 | ||
3441 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
3442 | echo "$ac_t""yes" 1>&6 | |
3443 | else | |
3444 | echo "$ac_t""no" 1>&6 | |
3445 | fi | |
3446 | ||
3447 | ||
3448 | ||
3449 | echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6 | |
5586805b | 3450 | echo "configure:3451: checking "for --enable-postscript"" >&5 |
7750247f KB |
3451 | no_cache=0 |
3452 | # Check whether --enable-postscript or --disable-postscript was given. | |
3453 | if test "${enable_postscript+set}" = set; then | |
3454 | enableval="$enable_postscript" | |
3455 | ||
3456 | if test "$enableval" = yes; then | |
3457 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
3458 | else | |
3459 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
3460 | fi | |
3461 | ||
3462 | else | |
3463 | ||
3464 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
3465 | if test "x$LINE" != x ; then | |
3466 | eval "DEFAULT_$LINE" | |
3467 | else | |
3468 | no_cache=1 | |
3469 | fi | |
3470 | ||
3471 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
3472 | ||
3473 | fi | |
3474 | ||
3475 | ||
3476 | eval "$ac_cv_use_postscript" | |
3477 | if test "$no_cache" != 1; then | |
3478 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
3479 | fi | |
3480 | ||
3481 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
3482 | echo "$ac_t""yes" 1>&6 | |
3483 | else | |
3484 | echo "$ac_t""no" 1>&6 | |
3485 | fi | |
3486 | ||
3487 | ||
3488 | ||
3489 | ||
3490 | echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6 | |
5586805b | 3491 | echo "configure:3492: checking "for --enable-prologio"" >&5 |
7750247f KB |
3492 | no_cache=0 |
3493 | # Check whether --enable-prologio or --disable-prologio was given. | |
3494 | if test "${enable_prologio+set}" = set; then | |
3495 | enableval="$enable_prologio" | |
3496 | ||
3497 | if test "$enableval" = yes; then | |
3498 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
3499 | else | |
3500 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
3501 | fi | |
3502 | ||
3503 | else | |
3504 | ||
3505 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
3506 | if test "x$LINE" != x ; then | |
3507 | eval "DEFAULT_$LINE" | |
3508 | else | |
3509 | no_cache=1 | |
3510 | fi | |
3511 | ||
3512 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
3513 | ||
3514 | fi | |
3515 | ||
3516 | ||
3517 | eval "$ac_cv_use_prologio" | |
3518 | if test "$no_cache" != 1; then | |
3519 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
3520 | fi | |
3521 | ||
3522 | if test "$wxUSE_PROLOGIO" = yes; then | |
3523 | echo "$ac_t""yes" 1>&6 | |
3524 | else | |
3525 | echo "$ac_t""no" 1>&6 | |
3526 | fi | |
3527 | ||
3528 | ||
3529 | echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6 | |
5586805b | 3530 | echo "configure:3531: checking "for --enable-resources"" >&5 |
7750247f KB |
3531 | no_cache=0 |
3532 | # Check whether --enable-resources or --disable-resources was given. | |
3533 | if test "${enable_resources+set}" = set; then | |
3534 | enableval="$enable_resources" | |
3535 | ||
3536 | if test "$enableval" = yes; then | |
3537 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
3538 | else | |
3539 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
3540 | fi | |
3541 | ||
3542 | else | |
3543 | ||
3544 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
3545 | if test "x$LINE" != x ; then | |
3546 | eval "DEFAULT_$LINE" | |
3547 | else | |
3548 | no_cache=1 | |
3549 | fi | |
3550 | ||
3551 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
3552 | ||
3553 | fi | |
3554 | ||
3555 | ||
3556 | eval "$ac_cv_use_resources" | |
3557 | if test "$no_cache" != 1; then | |
3558 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
3559 | fi | |
3560 | ||
3561 | if test "$wxUSE_RESOURCES" = yes; then | |
3562 | echo "$ac_t""yes" 1>&6 | |
3563 | else | |
3564 | echo "$ac_t""no" 1>&6 | |
3565 | fi | |
3566 | ||
3567 | ||
3568 | ||
3569 | echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6 | |
5586805b | 3570 | echo "configure:3571: checking "for --enable-xresources"" >&5 |
7750247f KB |
3571 | no_cache=0 |
3572 | # Check whether --enable-xresources or --disable-xresources was given. | |
3573 | if test "${enable_xresources+set}" = set; then | |
3574 | enableval="$enable_xresources" | |
3575 | ||
3576 | if test "$enableval" = yes; then | |
3577 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
3578 | else | |
3579 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
3580 | fi | |
3581 | ||
3582 | else | |
3583 | ||
3584 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` | |
3585 | if test "x$LINE" != x ; then | |
3586 | eval "DEFAULT_$LINE" | |
3587 | else | |
3588 | no_cache=1 | |
3589 | fi | |
3590 | ||
3591 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
3592 | ||
3593 | fi | |
3594 | ||
3595 | ||
3596 | eval "$ac_cv_use_xresources" | |
3597 | if test "$no_cache" != 1; then | |
3598 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
3599 | fi | |
3600 | ||
3601 | if test "$wxUSE_X_RESOURCES" = yes; then | |
3602 | echo "$ac_t""yes" 1>&6 | |
3603 | else | |
3604 | echo "$ac_t""no" 1>&6 | |
3605 | fi | |
3606 | ||
3607 | ||
3608 | ||
3609 | ||
3610 | echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6 | |
5586805b | 3611 | echo "configure:3612: checking "for --enable-clipboard"" >&5 |
7750247f KB |
3612 | no_cache=0 |
3613 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
3614 | if test "${enable_clipboard+set}" = set; then | |
3615 | enableval="$enable_clipboard" | |
3616 | ||
3617 | if test "$enableval" = yes; then | |
3618 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
3619 | else | |
3620 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
3621 | fi | |
3622 | ||
3623 | else | |
3624 | ||
3625 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
3626 | if test "x$LINE" != x ; then | |
3627 | eval "DEFAULT_$LINE" | |
3628 | else | |
3629 | no_cache=1 | |
3630 | fi | |
3631 | ||
3632 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
3633 | ||
3634 | fi | |
3635 | ||
3636 | ||
3637 | eval "$ac_cv_use_clipboard" | |
3638 | if test "$no_cache" != 1; then | |
3639 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
3640 | fi | |
3641 | ||
3642 | if test "$wxUSE_CLIPBOARD" = yes; then | |
3643 | echo "$ac_t""yes" 1>&6 | |
3644 | else | |
3645 | echo "$ac_t""no" 1>&6 | |
3646 | fi | |
3647 | ||
3648 | ||
3649 | echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6 | |
5586805b | 3650 | echo "configure:3651: checking "for --enable-dnd"" >&5 |
7750247f KB |
3651 | no_cache=0 |
3652 | # Check whether --enable-dnd or --disable-dnd was given. | |
3653 | if test "${enable_dnd+set}" = set; then | |
3654 | enableval="$enable_dnd" | |
3655 | ||
3656 | if test "$enableval" = yes; then | |
3657 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
3658 | else | |
3659 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
3660 | fi | |
3661 | ||
3662 | else | |
3663 | ||
3664 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
3665 | if test "x$LINE" != x ; then | |
3666 | eval "DEFAULT_$LINE" | |
3667 | else | |
3668 | no_cache=1 | |
3669 | fi | |
3670 | ||
3671 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
3672 | ||
3673 | fi | |
3674 | ||
3675 | ||
3676 | eval "$ac_cv_use_dnd" | |
3677 | if test "$no_cache" != 1; then | |
3678 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
3679 | fi | |
3680 | ||
3681 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
3682 | echo "$ac_t""yes" 1>&6 | |
3683 | else | |
3684 | echo "$ac_t""no" 1>&6 | |
3685 | fi | |
3686 | ||
3687 | ||
3688 | ||
3689 | echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6 | |
5586805b | 3690 | echo "configure:3691: checking "for --enable-wxtree"" >&5 |
7750247f KB |
3691 | no_cache=0 |
3692 | # Check whether --enable-wxtree or --disable-wxtree was given. | |
3693 | if test "${enable_wxtree+set}" = set; then | |
3694 | enableval="$enable_wxtree" | |
3695 | ||
3696 | if test "$enableval" = yes; then | |
3697 | ac_cv_use_wxtree='wxUSE_WXTREE=yes' | |
3698 | else | |
3699 | ac_cv_use_wxtree='wxUSE_WXTREE=no' | |
3700 | fi | |
3701 | ||
3702 | else | |
3703 | ||
3704 | LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}` | |
3705 | if test "x$LINE" != x ; then | |
3706 | eval "DEFAULT_$LINE" | |
3707 | else | |
3708 | no_cache=1 | |
3709 | fi | |
3710 | ||
3711 | ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE | |
3712 | ||
3713 | fi | |
3714 | ||
3715 | ||
3716 | eval "$ac_cv_use_wxtree" | |
3717 | if test "$no_cache" != 1; then | |
3718 | echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp | |
3719 | fi | |
3720 | ||
3721 | if test "$wxUSE_WXTREE" = yes; then | |
3722 | echo "$ac_t""yes" 1>&6 | |
3723 | else | |
3724 | echo "$ac_t""no" 1>&6 | |
3725 | fi | |
3726 | ||
3727 | ||
3728 | ||
3729 | ||
3730 | echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6 | |
5586805b | 3731 | echo "configure:3732: checking "for --enable-controls"" >&5 |
7750247f KB |
3732 | no_cache=0 |
3733 | # Check whether --enable-controls or --disable-controls was given. | |
3734 | if test "${enable_controls+set}" = set; then | |
3735 | enableval="$enable_controls" | |
3736 | ||
3737 | if test "$enableval" = yes; then | |
3738 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
3739 | else | |
3740 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
3741 | fi | |
3742 | ||
3743 | else | |
3744 | ||
3745 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
3746 | if test "x$LINE" != x ; then | |
3747 | eval "DEFAULT_$LINE" | |
3748 | else | |
3749 | no_cache=1 | |
3750 | fi | |
3751 | ||
3752 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
3753 | ||
3754 | fi | |
3755 | ||
3756 | ||
3757 | eval "$ac_cv_use_controls" | |
3758 | if test "$no_cache" != 1; then | |
3759 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
3760 | fi | |
3761 | ||
3762 | if test "$wxUSE_CONTROLS" = yes; then | |
3763 | echo "$ac_t""yes" 1>&6 | |
3764 | else | |
3765 | echo "$ac_t""no" 1>&6 | |
3766 | fi | |
3767 | ||
3768 | ||
3769 | if test "$wxUSE_CONTROLS" = "yes"; then | |
3770 | DEFAULT_wxUSE_ACCEL=yes | |
3771 | DEFAULT_wxUSE_CARET=yes | |
3772 | DEFAULT_wxUSE_COMBOBOX=yes | |
3773 | DEFAULT_wxUSE_BMPBUTTON=yes | |
3774 | DEFAULT_wxUSE_CHECKBOX=yes | |
3775 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
3776 | DEFAULT_wxUSE_CHOICE=yes | |
3777 | DEFAULT_wxUSE_GAUGE=yes | |
3778 | DEFAULT_wxUSE_GRID=yes | |
3779 | DEFAULT_wxUSE_IMAGLIST=yes | |
3780 | DEFAULT_wxUSE_LISTBOX=yes | |
3781 | DEFAULT_wxUSE_LISTCTRL=yes | |
3782 | DEFAULT_wxUSE_NOTEBOOK=yes | |
3783 | DEFAULT_wxUSE_RADIOBOX=yes | |
3784 | DEFAULT_wxUSE_RADIOBTN=yes | |
3785 | DEFAULT_wxUSE_SASH=yes | |
3786 | DEFAULT_wxUSE_SCROLLBAR=yes | |
3787 | DEFAULT_wxUSE_SLIDER=yes | |
3788 | DEFAULT_wxUSE_SPINBTN=yes | |
3789 | DEFAULT_wxUSE_SPLITTER=yes | |
3790 | DEFAULT_wxUSE_STATBMP=yes | |
3791 | DEFAULT_wxUSE_STATBOX=yes | |
3792 | DEFAULT_wxUSE_STATLINE=yes | |
3793 | DEFAULT_wxUSE_STATUSBAR=yes | |
3794 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
3795 | DEFAULT_wxUSE_TOOLBAR=yes | |
3796 | DEFAULT_wxUSE_TOOLTIPS=yes | |
3797 | DEFAULT_wxUSE_TREECTRL=yes | |
3798 | elif test "$wxUSE_CONTROLS" = "no"; then | |
3799 | DEFAULT_wxUSE_ACCEL=no | |
3800 | DEFAULT_wxUSE_CARET=no | |
3801 | DEFAULT_wxUSE_COMBOBOX=no | |
3802 | DEFAULT_wxUSE_BMPBUTTON=no | |
3803 | DEFAULT_wxUSE_CHECKBOX=no | |
3804 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
3805 | DEFAULT_wxUSE_CHOICE=no | |
3806 | DEFAULT_wxUSE_GAUGE=no | |
3807 | DEFAULT_wxUSE_GRID=no | |
3808 | DEFAULT_wxUSE_IMAGLIST=no | |
3809 | DEFAULT_wxUSE_LISTBOX=no | |
3810 | DEFAULT_wxUSE_LISTCTRL=no | |
3811 | DEFAULT_wxUSE_NOTEBOOK=no | |
3812 | DEFAULT_wxUSE_RADIOBOX=no | |
3813 | DEFAULT_wxUSE_RADIOBTN=no | |
3814 | DEFAULT_wxUSE_SASH=no | |
3815 | DEFAULT_wxUSE_SCROLLBAR=no | |
3816 | DEFAULT_wxUSE_SLIDER=no | |
3817 | DEFAULT_wxUSE_SPINBTN=no | |
3818 | DEFAULT_wxUSE_SPLITTER=no | |
3819 | DEFAULT_wxUSE_STATBMP=no | |
3820 | DEFAULT_wxUSE_STATBOX=no | |
3821 | DEFAULT_wxUSE_STATLINE=no | |
3822 | DEFAULT_wxUSE_STATUSBAR=no | |
3823 | DEFAULT_wxUSE_TAB_DIALOG=no | |
3824 | DEFAULT_wxUSE_TOOLBAR=no | |
3825 | DEFAULT_wxUSE_TOOLTIPS=no | |
3826 | DEFAULT_wxUSE_TREECTRL=no | |
3827 | fi | |
3828 | ||
3829 | ||
3830 | echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6 | |
5586805b | 3831 | echo "configure:3832: checking "for --enable-accel"" >&5 |
7750247f KB |
3832 | no_cache=0 |
3833 | # Check whether --enable-accel or --disable-accel was given. | |
3834 | if test "${enable_accel+set}" = set; then | |
3835 | enableval="$enable_accel" | |
3836 | ||
3837 | if test "$enableval" = yes; then | |
3838 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
3839 | else | |
3840 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
3841 | fi | |
3842 | ||
3843 | else | |
3844 | ||
3845 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
3846 | if test "x$LINE" != x ; then | |
3847 | eval "DEFAULT_$LINE" | |
3848 | else | |
3849 | no_cache=1 | |
3850 | fi | |
3851 | ||
3852 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
3853 | ||
3854 | fi | |
3855 | ||
3856 | ||
3857 | eval "$ac_cv_use_accel" | |
3858 | if test "$no_cache" != 1; then | |
3859 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
3860 | fi | |
3861 | ||
3862 | if test "$wxUSE_ACCEL" = yes; then | |
3863 | echo "$ac_t""yes" 1>&6 | |
3864 | else | |
3865 | echo "$ac_t""no" 1>&6 | |
3866 | fi | |
3867 | ||
3868 | ||
3869 | echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6 | |
5586805b | 3870 | echo "configure:3871: checking "for --enable-caret"" >&5 |
7750247f KB |
3871 | no_cache=0 |
3872 | # Check whether --enable-caret or --disable-caret was given. | |
3873 | if test "${enable_caret+set}" = set; then | |
3874 | enableval="$enable_caret" | |
3875 | ||
3876 | if test "$enableval" = yes; then | |
3877 | ac_cv_use_caret='wxUSE_CARET=yes' | |
3878 | else | |
3879 | ac_cv_use_caret='wxUSE_CARET=no' | |
3880 | fi | |
3881 | ||
3882 | else | |
3883 | ||
3884 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
3885 | if test "x$LINE" != x ; then | |
3886 | eval "DEFAULT_$LINE" | |
3887 | else | |
3888 | no_cache=1 | |
3889 | fi | |
3890 | ||
3891 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
3892 | ||
3893 | fi | |
3894 | ||
3895 | ||
3896 | eval "$ac_cv_use_caret" | |
3897 | if test "$no_cache" != 1; then | |
3898 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
3899 | fi | |
3900 | ||
3901 | if test "$wxUSE_CARET" = yes; then | |
3902 | echo "$ac_t""yes" 1>&6 | |
3903 | else | |
3904 | echo "$ac_t""no" 1>&6 | |
3905 | fi | |
3906 | ||
3907 | ||
3908 | echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6 | |
5586805b | 3909 | echo "configure:3910: checking "for --enable-bmpbutton"" >&5 |
7750247f KB |
3910 | no_cache=0 |
3911 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
3912 | if test "${enable_bmpbutton+set}" = set; then | |
3913 | enableval="$enable_bmpbutton" | |
3914 | ||
3915 | if test "$enableval" = yes; then | |
3916 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
3917 | else | |
3918 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
3919 | fi | |
3920 | ||
3921 | else | |
3922 | ||
3923 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
3924 | if test "x$LINE" != x ; then | |
3925 | eval "DEFAULT_$LINE" | |
3926 | else | |
3927 | no_cache=1 | |
3928 | fi | |
3929 | ||
3930 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
3931 | ||
3932 | fi | |
3933 | ||
3934 | ||
3935 | eval "$ac_cv_use_bmpbutton" | |
3936 | if test "$no_cache" != 1; then | |
3937 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
3938 | fi | |
3939 | ||
3940 | if test "$wxUSE_BMPBUTTON" = yes; then | |
3941 | echo "$ac_t""yes" 1>&6 | |
3942 | else | |
3943 | echo "$ac_t""no" 1>&6 | |
3944 | fi | |
3945 | ||
3946 | ||
3947 | echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6 | |
5586805b | 3948 | echo "configure:3949: checking "for --enable-checkbox"" >&5 |
7750247f KB |
3949 | no_cache=0 |
3950 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
3951 | if test "${enable_checkbox+set}" = set; then | |
3952 | enableval="$enable_checkbox" | |
3953 | ||
3954 | if test "$enableval" = yes; then | |
3955 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
3956 | else | |
3957 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
3958 | fi | |
3959 | ||
3960 | else | |
3961 | ||
3962 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
3963 | if test "x$LINE" != x ; then | |
3964 | eval "DEFAULT_$LINE" | |
3965 | else | |
3966 | no_cache=1 | |
3967 | fi | |
3968 | ||
3969 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
3970 | ||
3971 | fi | |
3972 | ||
3973 | ||
3974 | eval "$ac_cv_use_checkbox" | |
3975 | if test "$no_cache" != 1; then | |
3976 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
3977 | fi | |
3978 | ||
3979 | if test "$wxUSE_CHECKBOX" = yes; then | |
3980 | echo "$ac_t""yes" 1>&6 | |
3981 | else | |
3982 | echo "$ac_t""no" 1>&6 | |
3983 | fi | |
3984 | ||
3985 | ||
3986 | echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6 | |
5586805b | 3987 | echo "configure:3988: checking "for --enable-checklst"" >&5 |
7750247f KB |
3988 | no_cache=0 |
3989 | # Check whether --enable-checklst or --disable-checklst was given. | |
3990 | if test "${enable_checklst+set}" = set; then | |
3991 | enableval="$enable_checklst" | |
3992 | ||
3993 | if test "$enableval" = yes; then | |
3994 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
3995 | else | |
3996 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
3997 | fi | |
3998 | ||
3999 | else | |
4000 | ||
4001 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
4002 | if test "x$LINE" != x ; then | |
4003 | eval "DEFAULT_$LINE" | |
4004 | else | |
4005 | no_cache=1 | |
4006 | fi | |
4007 | ||
4008 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
4009 | ||
4010 | fi | |
4011 | ||
4012 | ||
4013 | eval "$ac_cv_use_checklst" | |
4014 | if test "$no_cache" != 1; then | |
4015 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
4016 | fi | |
4017 | ||
4018 | if test "$wxUSE_CHECKLST" = yes; then | |
4019 | echo "$ac_t""yes" 1>&6 | |
4020 | else | |
4021 | echo "$ac_t""no" 1>&6 | |
4022 | fi | |
4023 | ||
4024 | ||
4025 | echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6 | |
5586805b | 4026 | echo "configure:4027: checking "for --enable-choice"" >&5 |
7750247f KB |
4027 | no_cache=0 |
4028 | # Check whether --enable-choice or --disable-choice was given. | |
4029 | if test "${enable_choice+set}" = set; then | |
4030 | enableval="$enable_choice" | |
4031 | ||
4032 | if test "$enableval" = yes; then | |
4033 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
4034 | else | |
4035 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
4036 | fi | |
4037 | ||
4038 | else | |
4039 | ||
4040 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
4041 | if test "x$LINE" != x ; then | |
4042 | eval "DEFAULT_$LINE" | |
4043 | else | |
4044 | no_cache=1 | |
4045 | fi | |
4046 | ||
4047 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
4048 | ||
4049 | fi | |
4050 | ||
4051 | ||
4052 | eval "$ac_cv_use_choice" | |
4053 | if test "$no_cache" != 1; then | |
4054 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
4055 | fi | |
4056 | ||
4057 | if test "$wxUSE_CHOICE" = yes; then | |
4058 | echo "$ac_t""yes" 1>&6 | |
4059 | else | |
4060 | echo "$ac_t""no" 1>&6 | |
4061 | fi | |
4062 | ||
4063 | ||
4064 | echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6 | |
5586805b | 4065 | echo "configure:4066: checking "for --enable-combobox"" >&5 |
7750247f KB |
4066 | no_cache=0 |
4067 | # Check whether --enable-combobox or --disable-combobox was given. | |
4068 | if test "${enable_combobox+set}" = set; then | |
4069 | enableval="$enable_combobox" | |
4070 | ||
4071 | if test "$enableval" = yes; then | |
4072 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
4073 | else | |
4074 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
4075 | fi | |
4076 | ||
4077 | else | |
4078 | ||
4079 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
4080 | if test "x$LINE" != x ; then | |
4081 | eval "DEFAULT_$LINE" | |
4082 | else | |
4083 | no_cache=1 | |
4084 | fi | |
4085 | ||
4086 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
4087 | ||
4088 | fi | |
4089 | ||
4090 | ||
4091 | eval "$ac_cv_use_combobox" | |
4092 | if test "$no_cache" != 1; then | |
4093 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
4094 | fi | |
4095 | ||
4096 | if test "$wxUSE_COMBOBOX" = yes; then | |
4097 | echo "$ac_t""yes" 1>&6 | |
4098 | else | |
4099 | echo "$ac_t""no" 1>&6 | |
4100 | fi | |
4101 | ||
4102 | ||
4103 | echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6 | |
5586805b | 4104 | echo "configure:4105: checking "for --enable-gauge"" >&5 |
7750247f KB |
4105 | no_cache=0 |
4106 | # Check whether --enable-gauge or --disable-gauge was given. | |
4107 | if test "${enable_gauge+set}" = set; then | |
4108 | enableval="$enable_gauge" | |
4109 | ||
4110 | if test "$enableval" = yes; then | |
4111 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
4112 | else | |
4113 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
4114 | fi | |
4115 | ||
4116 | else | |
4117 | ||
4118 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
4119 | if test "x$LINE" != x ; then | |
4120 | eval "DEFAULT_$LINE" | |
4121 | else | |
4122 | no_cache=1 | |
4123 | fi | |
4124 | ||
4125 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
4126 | ||
4127 | fi | |
4128 | ||
4129 | ||
4130 | eval "$ac_cv_use_gauge" | |
4131 | if test "$no_cache" != 1; then | |
4132 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
4133 | fi | |
4134 | ||
4135 | if test "$wxUSE_GAUGE" = yes; then | |
4136 | echo "$ac_t""yes" 1>&6 | |
4137 | else | |
4138 | echo "$ac_t""no" 1>&6 | |
4139 | fi | |
4140 | ||
4141 | ||
4142 | echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6 | |
5586805b | 4143 | echo "configure:4144: checking "for --enable-grid"" >&5 |
7750247f KB |
4144 | no_cache=0 |
4145 | # Check whether --enable-grid or --disable-grid was given. | |
4146 | if test "${enable_grid+set}" = set; then | |
4147 | enableval="$enable_grid" | |
4148 | ||
4149 | if test "$enableval" = yes; then | |
4150 | ac_cv_use_grid='wxUSE_GRID=yes' | |
4151 | else | |
4152 | ac_cv_use_grid='wxUSE_GRID=no' | |
4153 | fi | |
4154 | ||
4155 | else | |
4156 | ||
4157 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
4158 | if test "x$LINE" != x ; then | |
4159 | eval "DEFAULT_$LINE" | |
4160 | else | |
4161 | no_cache=1 | |
4162 | fi | |
4163 | ||
4164 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
4165 | ||
4166 | fi | |
4167 | ||
4168 | ||
4169 | eval "$ac_cv_use_grid" | |
4170 | if test "$no_cache" != 1; then | |
4171 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
4172 | fi | |
4173 | ||
4174 | if test "$wxUSE_GRID" = yes; then | |
4175 | echo "$ac_t""yes" 1>&6 | |
4176 | else | |
4177 | echo "$ac_t""no" 1>&6 | |
4178 | fi | |
4179 | ||
4180 | ||
4181 | echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6 | |
5586805b | 4182 | echo "configure:4183: checking "for --enable-imaglist"" >&5 |
7750247f KB |
4183 | no_cache=0 |
4184 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
4185 | if test "${enable_imaglist+set}" = set; then | |
4186 | enableval="$enable_imaglist" | |
4187 | ||
4188 | if test "$enableval" = yes; then | |
4189 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
4190 | else | |
4191 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
4192 | fi | |
4193 | ||
4194 | else | |
4195 | ||
4196 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
4197 | if test "x$LINE" != x ; then | |
4198 | eval "DEFAULT_$LINE" | |
4199 | else | |
4200 | no_cache=1 | |
4201 | fi | |
4202 | ||
4203 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
4204 | ||
4205 | fi | |
4206 | ||
4207 | ||
4208 | eval "$ac_cv_use_imaglist" | |
4209 | if test "$no_cache" != 1; then | |
4210 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
4211 | fi | |
4212 | ||
4213 | if test "$wxUSE_IMAGLIST" = yes; then | |
4214 | echo "$ac_t""yes" 1>&6 | |
4215 | else | |
4216 | echo "$ac_t""no" 1>&6 | |
4217 | fi | |
4218 | ||
4219 | ||
4220 | echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6 | |
5586805b | 4221 | echo "configure:4222: checking "for --enable-listbox"" >&5 |
7750247f KB |
4222 | no_cache=0 |
4223 | # Check whether --enable-listbox or --disable-listbox was given. | |
4224 | if test "${enable_listbox+set}" = set; then | |
4225 | enableval="$enable_listbox" | |
4226 | ||
4227 | if test "$enableval" = yes; then | |
4228 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
4229 | else | |
4230 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
4231 | fi | |
4232 | ||
4233 | else | |
4234 | ||
4235 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
4236 | if test "x$LINE" != x ; then | |
4237 | eval "DEFAULT_$LINE" | |
4238 | else | |
4239 | no_cache=1 | |
4240 | fi | |
4241 | ||
4242 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
4243 | ||
4244 | fi | |
4245 | ||
4246 | ||
4247 | eval "$ac_cv_use_listbox" | |
4248 | if test "$no_cache" != 1; then | |
4249 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
4250 | fi | |
4251 | ||
4252 | if test "$wxUSE_LISTBOX" = yes; then | |
4253 | echo "$ac_t""yes" 1>&6 | |
4254 | else | |
4255 | echo "$ac_t""no" 1>&6 | |
4256 | fi | |
4257 | ||
4258 | ||
4259 | echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6 | |
5586805b | 4260 | echo "configure:4261: checking "for --enable-listctrl"" >&5 |
7750247f KB |
4261 | no_cache=0 |
4262 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
4263 | if test "${enable_listctrl+set}" = set; then | |
4264 | enableval="$enable_listctrl" | |
4265 | ||
4266 | if test "$enableval" = yes; then | |
4267 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
4268 | else | |
4269 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
4270 | fi | |
4271 | ||
4272 | else | |
4273 | ||
4274 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
4275 | if test "x$LINE" != x ; then | |
4276 | eval "DEFAULT_$LINE" | |
4277 | else | |
4278 | no_cache=1 | |
4279 | fi | |
4280 | ||
4281 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
4282 | ||
4283 | fi | |
4284 | ||
4285 | ||
4286 | eval "$ac_cv_use_listctrl" | |
4287 | if test "$no_cache" != 1; then | |
4288 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
4289 | fi | |
4290 | ||
4291 | if test "$wxUSE_LISTCTRL" = yes; then | |
4292 | echo "$ac_t""yes" 1>&6 | |
4293 | else | |
4294 | echo "$ac_t""no" 1>&6 | |
4295 | fi | |
4296 | ||
4297 | ||
4298 | echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6 | |
5586805b | 4299 | echo "configure:4300: checking "for --enable-notebook"" >&5 |
7750247f KB |
4300 | no_cache=0 |
4301 | # Check whether --enable-notebook or --disable-notebook was given. | |
4302 | if test "${enable_notebook+set}" = set; then | |
4303 | enableval="$enable_notebook" | |
4304 | ||
4305 | if test "$enableval" = yes; then | |
4306 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
4307 | else | |
4308 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
4309 | fi | |
4310 | ||
4311 | else | |
4312 | ||
4313 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
4314 | if test "x$LINE" != x ; then | |
4315 | eval "DEFAULT_$LINE" | |
4316 | else | |
4317 | no_cache=1 | |
4318 | fi | |
4319 | ||
4320 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
4321 | ||
4322 | fi | |
4323 | ||
4324 | ||
4325 | eval "$ac_cv_use_notebook" | |
4326 | if test "$no_cache" != 1; then | |
4327 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
4328 | fi | |
4329 | ||
4330 | if test "$wxUSE_NOTEBOOK" = yes; then | |
4331 | echo "$ac_t""yes" 1>&6 | |
4332 | else | |
4333 | echo "$ac_t""no" 1>&6 | |
4334 | fi | |
4335 | ||
4336 | ||
4337 | echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6 | |
5586805b | 4338 | echo "configure:4339: checking "for --enable-radiobox"" >&5 |
7750247f KB |
4339 | no_cache=0 |
4340 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
4341 | if test "${enable_radiobox+set}" = set; then | |
4342 | enableval="$enable_radiobox" | |
4343 | ||
4344 | if test "$enableval" = yes; then | |
4345 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
4346 | else | |
4347 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
4348 | fi | |
4349 | ||
4350 | else | |
4351 | ||
4352 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
4353 | if test "x$LINE" != x ; then | |
4354 | eval "DEFAULT_$LINE" | |
4355 | else | |
4356 | no_cache=1 | |
4357 | fi | |
4358 | ||
4359 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
4360 | ||
4361 | fi | |
4362 | ||
4363 | ||
4364 | eval "$ac_cv_use_radiobox" | |
4365 | if test "$no_cache" != 1; then | |
4366 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
4367 | fi | |
4368 | ||
4369 | if test "$wxUSE_RADIOBOX" = yes; then | |
4370 | echo "$ac_t""yes" 1>&6 | |
4371 | else | |
4372 | echo "$ac_t""no" 1>&6 | |
4373 | fi | |
4374 | ||
4375 | ||
4376 | echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6 | |
5586805b | 4377 | echo "configure:4378: checking "for --enable-radiobtn"" >&5 |
7750247f KB |
4378 | no_cache=0 |
4379 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
4380 | if test "${enable_radiobtn+set}" = set; then | |
4381 | enableval="$enable_radiobtn" | |
4382 | ||
4383 | if test "$enableval" = yes; then | |
4384 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
4385 | else | |
4386 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
4387 | fi | |
4388 | ||
4389 | else | |
4390 | ||
4391 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
4392 | if test "x$LINE" != x ; then | |
4393 | eval "DEFAULT_$LINE" | |
4394 | else | |
4395 | no_cache=1 | |
4396 | fi | |
4397 | ||
4398 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
4399 | ||
4400 | fi | |
4401 | ||
4402 | ||
4403 | eval "$ac_cv_use_radiobtn" | |
4404 | if test "$no_cache" != 1; then | |
4405 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
4406 | fi | |
4407 | ||
4408 | if test "$wxUSE_RADIOBTN" = yes; then | |
4409 | echo "$ac_t""yes" 1>&6 | |
4410 | else | |
4411 | echo "$ac_t""no" 1>&6 | |
4412 | fi | |
4413 | ||
4414 | ||
4415 | echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6 | |
5586805b | 4416 | echo "configure:4417: checking "for --enable-sash"" >&5 |
7750247f KB |
4417 | no_cache=0 |
4418 | # Check whether --enable-sash or --disable-sash was given. | |
4419 | if test "${enable_sash+set}" = set; then | |
4420 | enableval="$enable_sash" | |
4421 | ||
4422 | if test "$enableval" = yes; then | |
4423 | ac_cv_use_sash='wxUSE_SASH=yes' | |
4424 | else | |
4425 | ac_cv_use_sash='wxUSE_SASH=no' | |
4426 | fi | |
4427 | ||
4428 | else | |
4429 | ||
4430 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
4431 | if test "x$LINE" != x ; then | |
4432 | eval "DEFAULT_$LINE" | |
4433 | else | |
4434 | no_cache=1 | |
4435 | fi | |
4436 | ||
4437 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
4438 | ||
4439 | fi | |
4440 | ||
4441 | ||
4442 | eval "$ac_cv_use_sash" | |
4443 | if test "$no_cache" != 1; then | |
4444 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
4445 | fi | |
4446 | ||
4447 | if test "$wxUSE_SASH" = yes; then | |
4448 | echo "$ac_t""yes" 1>&6 | |
4449 | else | |
4450 | echo "$ac_t""no" 1>&6 | |
4451 | fi | |
4452 | ||
4453 | ||
4454 | echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6 | |
5586805b | 4455 | echo "configure:4456: checking "for --enable-scrollbar"" >&5 |
7750247f KB |
4456 | no_cache=0 |
4457 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
4458 | if test "${enable_scrollbar+set}" = set; then | |
4459 | enableval="$enable_scrollbar" | |
4460 | ||
4461 | if test "$enableval" = yes; then | |
4462 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
4463 | else | |
4464 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
4465 | fi | |
4466 | ||
4467 | else | |
4468 | ||
4469 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
4470 | if test "x$LINE" != x ; then | |
4471 | eval "DEFAULT_$LINE" | |
4472 | else | |
4473 | no_cache=1 | |
4474 | fi | |
4475 | ||
4476 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
4477 | ||
4478 | fi | |
4479 | ||
4480 | ||
4481 | eval "$ac_cv_use_scrollbar" | |
4482 | if test "$no_cache" != 1; then | |
4483 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
4484 | fi | |
4485 | ||
4486 | if test "$wxUSE_SCROLLBAR" = yes; then | |
4487 | echo "$ac_t""yes" 1>&6 | |
4488 | else | |
4489 | echo "$ac_t""no" 1>&6 | |
4490 | fi | |
4491 | ||
4492 | ||
4493 | echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6 | |
5586805b | 4494 | echo "configure:4495: checking "for --enable-slider"" >&5 |
7750247f KB |
4495 | no_cache=0 |
4496 | # Check whether --enable-slider or --disable-slider was given. | |
4497 | if test "${enable_slider+set}" = set; then | |
4498 | enableval="$enable_slider" | |
4499 | ||
4500 | if test "$enableval" = yes; then | |
4501 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
4502 | else | |
4503 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
4504 | fi | |
4505 | ||
4506 | else | |
4507 | ||
4508 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
4509 | if test "x$LINE" != x ; then | |
4510 | eval "DEFAULT_$LINE" | |
4511 | else | |
4512 | no_cache=1 | |
4513 | fi | |
4514 | ||
4515 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
4516 | ||
4517 | fi | |
4518 | ||
4519 | ||
4520 | eval "$ac_cv_use_slider" | |
4521 | if test "$no_cache" != 1; then | |
4522 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
4523 | fi | |
4524 | ||
4525 | if test "$wxUSE_SLIDER" = yes; then | |
4526 | echo "$ac_t""yes" 1>&6 | |
4527 | else | |
4528 | echo "$ac_t""no" 1>&6 | |
4529 | fi | |
4530 | ||
4531 | ||
4532 | echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6 | |
5586805b | 4533 | echo "configure:4534: checking "for --enable-spinbtn"" >&5 |
7750247f KB |
4534 | no_cache=0 |
4535 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
4536 | if test "${enable_spinbtn+set}" = set; then | |
4537 | enableval="$enable_spinbtn" | |
4538 | ||
4539 | if test "$enableval" = yes; then | |
4540 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
4541 | else | |
4542 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
4543 | fi | |
4544 | ||
4545 | else | |
4546 | ||
4547 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
4548 | if test "x$LINE" != x ; then | |
4549 | eval "DEFAULT_$LINE" | |
4550 | else | |
4551 | no_cache=1 | |
4552 | fi | |
4553 | ||
4554 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
4555 | ||
4556 | fi | |
4557 | ||
4558 | ||
4559 | eval "$ac_cv_use_spinbtn" | |
4560 | if test "$no_cache" != 1; then | |
4561 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
4562 | fi | |
4563 | ||
4564 | if test "$wxUSE_SPINBTN" = yes; then | |
4565 | echo "$ac_t""yes" 1>&6 | |
4566 | else | |
4567 | echo "$ac_t""no" 1>&6 | |
4568 | fi | |
4569 | ||
4570 | ||
4571 | echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6 | |
5586805b | 4572 | echo "configure:4573: checking "for --enable-splitter"" >&5 |
7750247f KB |
4573 | no_cache=0 |
4574 | # Check whether --enable-splitter or --disable-splitter was given. | |
4575 | if test "${enable_splitter+set}" = set; then | |
4576 | enableval="$enable_splitter" | |
4577 | ||
4578 | if test "$enableval" = yes; then | |
4579 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
4580 | else | |
4581 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
4582 | fi | |
4583 | ||
4584 | else | |
4585 | ||
4586 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
4587 | if test "x$LINE" != x ; then | |
4588 | eval "DEFAULT_$LINE" | |
4589 | else | |
4590 | no_cache=1 | |
4591 | fi | |
4592 | ||
4593 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
4594 | ||
4595 | fi | |
4596 | ||
4597 | ||
4598 | eval "$ac_cv_use_splitter" | |
4599 | if test "$no_cache" != 1; then | |
4600 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
4601 | fi | |
4602 | ||
4603 | if test "$wxUSE_SPLITTER" = yes; then | |
4604 | echo "$ac_t""yes" 1>&6 | |
4605 | else | |
4606 | echo "$ac_t""no" 1>&6 | |
4607 | fi | |
4608 | ||
4609 | ||
4610 | echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6 | |
5586805b | 4611 | echo "configure:4612: checking "for --enable-statbmp"" >&5 |
7750247f KB |
4612 | no_cache=0 |
4613 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
4614 | if test "${enable_statbmp+set}" = set; then | |
4615 | enableval="$enable_statbmp" | |
4616 | ||
4617 | if test "$enableval" = yes; then | |
4618 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
4619 | else | |
4620 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
4621 | fi | |
4622 | ||
4623 | else | |
4624 | ||
4625 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
4626 | if test "x$LINE" != x ; then | |
4627 | eval "DEFAULT_$LINE" | |
4628 | else | |
4629 | no_cache=1 | |
4630 | fi | |
4631 | ||
4632 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
4633 | ||
4634 | fi | |
4635 | ||
4636 | ||
4637 | eval "$ac_cv_use_statbmp" | |
4638 | if test "$no_cache" != 1; then | |
4639 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
4640 | fi | |
4641 | ||
4642 | if test "$wxUSE_STATBMP" = yes; then | |
4643 | echo "$ac_t""yes" 1>&6 | |
4644 | else | |
4645 | echo "$ac_t""no" 1>&6 | |
4646 | fi | |
4647 | ||
4648 | ||
4649 | echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6 | |
5586805b | 4650 | echo "configure:4651: checking "for --enable-statbox"" >&5 |
7750247f KB |
4651 | no_cache=0 |
4652 | # Check whether --enable-statbox or --disable-statbox was given. | |
4653 | if test "${enable_statbox+set}" = set; then | |
4654 | enableval="$enable_statbox" | |
4655 | ||
4656 | if test "$enableval" = yes; then | |
4657 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
4658 | else | |
4659 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
4660 | fi | |
4661 | ||
4662 | else | |
4663 | ||
4664 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
4665 | if test "x$LINE" != x ; then | |
4666 | eval "DEFAULT_$LINE" | |
4667 | else | |
4668 | no_cache=1 | |
4669 | fi | |
4670 | ||
4671 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
4672 | ||
4673 | fi | |
4674 | ||
4675 | ||
4676 | eval "$ac_cv_use_statbox" | |
4677 | if test "$no_cache" != 1; then | |
4678 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
4679 | fi | |
4680 | ||
4681 | if test "$wxUSE_STATBOX" = yes; then | |
4682 | echo "$ac_t""yes" 1>&6 | |
4683 | else | |
4684 | echo "$ac_t""no" 1>&6 | |
4685 | fi | |
4686 | ||
4687 | ||
4688 | echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6 | |
5586805b | 4689 | echo "configure:4690: checking "for --enable-statline"" >&5 |
7750247f KB |
4690 | no_cache=0 |
4691 | # Check whether --enable-statline or --disable-statline was given. | |
4692 | if test "${enable_statline+set}" = set; then | |
4693 | enableval="$enable_statline" | |
4694 | ||
4695 | if test "$enableval" = yes; then | |
4696 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
4697 | else | |
4698 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
4699 | fi | |
4700 | ||
4701 | else | |
4702 | ||
4703 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
4704 | if test "x$LINE" != x ; then | |
4705 | eval "DEFAULT_$LINE" | |
4706 | else | |
4707 | no_cache=1 | |
4708 | fi | |
4709 | ||
4710 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
4711 | ||
4712 | fi | |
4713 | ||
4714 | ||
4715 | eval "$ac_cv_use_statline" | |
4716 | if test "$no_cache" != 1; then | |
4717 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
4718 | fi | |
4719 | ||
4720 | if test "$wxUSE_STATLINE" = yes; then | |
4721 | echo "$ac_t""yes" 1>&6 | |
4722 | else | |
4723 | echo "$ac_t""no" 1>&6 | |
4724 | fi | |
4725 | ||
4726 | ||
4727 | echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6 | |
5586805b | 4728 | echo "configure:4729: checking "for --enable-statusbar"" >&5 |
7750247f KB |
4729 | no_cache=0 |
4730 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
4731 | if test "${enable_statusbar+set}" = set; then | |
4732 | enableval="$enable_statusbar" | |
4733 | ||
4734 | if test "$enableval" = yes; then | |
4735 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
4736 | else | |
4737 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
4738 | fi | |
4739 | ||
4740 | else | |
4741 | ||
4742 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
4743 | if test "x$LINE" != x ; then | |
4744 | eval "DEFAULT_$LINE" | |
4745 | else | |
4746 | no_cache=1 | |
4747 | fi | |
4748 | ||
4749 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
4750 | ||
4751 | fi | |
4752 | ||
4753 | ||
4754 | eval "$ac_cv_use_statusbar" | |
4755 | if test "$no_cache" != 1; then | |
4756 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
4757 | fi | |
4758 | ||
4759 | if test "$wxUSE_STATUSBAR" = yes; then | |
4760 | echo "$ac_t""yes" 1>&6 | |
4761 | else | |
4762 | echo "$ac_t""no" 1>&6 | |
4763 | fi | |
4764 | ||
4765 | ||
4766 | echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6 | |
5586805b | 4767 | echo "configure:4768: checking "for --enable-tabdialog"" >&5 |
7750247f KB |
4768 | no_cache=0 |
4769 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
4770 | if test "${enable_tabdialog+set}" = set; then | |
4771 | enableval="$enable_tabdialog" | |
4772 | ||
4773 | if test "$enableval" = yes; then | |
4774 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
4775 | else | |
4776 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
4777 | fi | |
4778 | ||
4779 | else | |
4780 | ||
4781 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
4782 | if test "x$LINE" != x ; then | |
4783 | eval "DEFAULT_$LINE" | |
4784 | else | |
4785 | no_cache=1 | |
4786 | fi | |
4787 | ||
4788 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
4789 | ||
4790 | fi | |
4791 | ||
4792 | ||
4793 | eval "$ac_cv_use_tabdialog" | |
4794 | if test "$no_cache" != 1; then | |
4795 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
4796 | fi | |
4797 | ||
4798 | if test "$wxUSE_TABDIALOG" = yes; then | |
4799 | echo "$ac_t""yes" 1>&6 | |
4800 | else | |
4801 | echo "$ac_t""no" 1>&6 | |
4802 | fi | |
4803 | ||
4804 | ||
4805 | echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6 | |
5586805b | 4806 | echo "configure:4807: checking "for --enable-toolbar"" >&5 |
7750247f KB |
4807 | no_cache=0 |
4808 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
4809 | if test "${enable_toolbar+set}" = set; then | |
4810 | enableval="$enable_toolbar" | |
4811 | ||
4812 | if test "$enableval" = yes; then | |
4813 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
4814 | else | |
4815 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
4816 | fi | |
4817 | ||
4818 | else | |
4819 | ||
4820 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
4821 | if test "x$LINE" != x ; then | |
4822 | eval "DEFAULT_$LINE" | |
4823 | else | |
4824 | no_cache=1 | |
4825 | fi | |
4826 | ||
4827 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
4828 | ||
4829 | fi | |
4830 | ||
4831 | ||
4832 | eval "$ac_cv_use_toolbar" | |
4833 | if test "$no_cache" != 1; then | |
4834 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
4835 | fi | |
4836 | ||
4837 | if test "$wxUSE_TOOLBAR" = yes; then | |
4838 | echo "$ac_t""yes" 1>&6 | |
4839 | else | |
4840 | echo "$ac_t""no" 1>&6 | |
4841 | fi | |
4842 | ||
4843 | ||
4844 | echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6 | |
5586805b | 4845 | echo "configure:4846: checking "for --enable-treectrl"" >&5 |
7750247f KB |
4846 | no_cache=0 |
4847 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
4848 | if test "${enable_treectrl+set}" = set; then | |
4849 | enableval="$enable_treectrl" | |
4850 | ||
4851 | if test "$enableval" = yes; then | |
4852 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
4853 | else | |
4854 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
4855 | fi | |
4856 | ||
4857 | else | |
4858 | ||
4859 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
4860 | if test "x$LINE" != x ; then | |
4861 | eval "DEFAULT_$LINE" | |
4862 | else | |
4863 | no_cache=1 | |
4864 | fi | |
4865 | ||
4866 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
4867 | ||
4868 | fi | |
4869 | ||
4870 | ||
4871 | eval "$ac_cv_use_treectrl" | |
4872 | if test "$no_cache" != 1; then | |
4873 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
4874 | fi | |
4875 | ||
4876 | if test "$wxUSE_TREECTRL" = yes; then | |
4877 | echo "$ac_t""yes" 1>&6 | |
4878 | else | |
4879 | echo "$ac_t""no" 1>&6 | |
4880 | fi | |
4881 | ||
4882 | ||
4883 | ||
4884 | ||
4885 | echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6 | |
5586805b | 4886 | echo "configure:4887: checking "for --enable-commondlg"" >&5 |
7750247f KB |
4887 | no_cache=0 |
4888 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
4889 | if test "${enable_commondlg+set}" = set; then | |
4890 | enableval="$enable_commondlg" | |
4891 | ||
4892 | if test "$enableval" = yes; then | |
4893 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
4894 | else | |
4895 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
4896 | fi | |
4897 | ||
4898 | else | |
4899 | ||
4900 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
4901 | if test "x$LINE" != x ; then | |
4902 | eval "DEFAULT_$LINE" | |
4903 | else | |
4904 | no_cache=1 | |
4905 | fi | |
4906 | ||
4907 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
4908 | ||
4909 | fi | |
4910 | ||
4911 | ||
4912 | eval "$ac_cv_use_commondlg" | |
4913 | if test "$no_cache" != 1; then | |
4914 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
4915 | fi | |
4916 | ||
4917 | if test "$wxUSE_COMMONDLGS" = yes; then | |
4918 | echo "$ac_t""yes" 1>&6 | |
4919 | else | |
4920 | echo "$ac_t""no" 1>&6 | |
4921 | fi | |
4922 | ||
4923 | ||
4924 | echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6 | |
5586805b | 4925 | echo "configure:4926: checking "for --enable-dirdlg"" >&5 |
7750247f KB |
4926 | no_cache=0 |
4927 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
4928 | if test "${enable_dirdlg+set}" = set; then | |
4929 | enableval="$enable_dirdlg" | |
4930 | ||
4931 | if test "$enableval" = yes; then | |
4932 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
4933 | else | |
4934 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
4935 | fi | |
4936 | ||
4937 | else | |
4938 | ||
4939 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
4940 | if test "x$LINE" != x ; then | |
4941 | eval "DEFAULT_$LINE" | |
4942 | else | |
4943 | no_cache=1 | |
4944 | fi | |
4945 | ||
4946 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
4947 | ||
4948 | fi | |
4949 | ||
4950 | ||
4951 | eval "$ac_cv_use_dirdlg" | |
4952 | if test "$no_cache" != 1; then | |
4953 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
4954 | fi | |
4955 | ||
4956 | if test "$wxUSE_DIRDLG" = yes; then | |
4957 | echo "$ac_t""yes" 1>&6 | |
4958 | else | |
4959 | echo "$ac_t""no" 1>&6 | |
4960 | fi | |
4961 | ||
4962 | ||
4963 | echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6 | |
5586805b | 4964 | echo "configure:4965: checking "for --enable-textdlg"" >&5 |
7750247f KB |
4965 | no_cache=0 |
4966 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
4967 | if test "${enable_textdlg+set}" = set; then | |
4968 | enableval="$enable_textdlg" | |
4969 | ||
4970 | if test "$enableval" = yes; then | |
4971 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
4972 | else | |
4973 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
4974 | fi | |
4975 | ||
4976 | else | |
4977 | ||
4978 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
4979 | if test "x$LINE" != x ; then | |
4980 | eval "DEFAULT_$LINE" | |
4981 | else | |
4982 | no_cache=1 | |
4983 | fi | |
4984 | ||
4985 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
4986 | ||
4987 | fi | |
4988 | ||
4989 | ||
4990 | eval "$ac_cv_use_textdlg" | |
4991 | if test "$no_cache" != 1; then | |
4992 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
4993 | fi | |
4994 | ||
4995 | if test "$wxUSE_TEXTDLG" = yes; then | |
4996 | echo "$ac_t""yes" 1>&6 | |
4997 | else | |
4998 | echo "$ac_t""no" 1>&6 | |
4999 | fi | |
5000 | ||
5001 | ||
5002 | echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6 | |
5586805b | 5003 | echo "configure:5004: checking "for --enable-tipdlg"" >&5 |
7750247f KB |
5004 | no_cache=0 |
5005 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
5006 | if test "${enable_tipdlg+set}" = set; then | |
5007 | enableval="$enable_tipdlg" | |
5008 | ||
5009 | if test "$enableval" = yes; then | |
5010 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
5011 | else | |
5012 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
5013 | fi | |
5014 | ||
5015 | else | |
5016 | ||
5017 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
5018 | if test "x$LINE" != x ; then | |
5019 | eval "DEFAULT_$LINE" | |
5020 | else | |
5021 | no_cache=1 | |
5022 | fi | |
5023 | ||
5024 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
5025 | ||
5026 | fi | |
5027 | ||
5028 | ||
5029 | eval "$ac_cv_use_tipdlg" | |
5030 | if test "$no_cache" != 1; then | |
5031 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
5032 | fi | |
5033 | ||
5034 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
5035 | echo "$ac_t""yes" 1>&6 | |
5036 | else | |
5037 | echo "$ac_t""no" 1>&6 | |
5038 | fi | |
5039 | ||
5040 | ||
5041 | echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6 | |
5586805b | 5042 | echo "configure:5043: checking "for --enable-progressdlg"" >&5 |
7750247f KB |
5043 | no_cache=0 |
5044 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
5045 | if test "${enable_progressdlg+set}" = set; then | |
5046 | enableval="$enable_progressdlg" | |
5047 | ||
5048 | if test "$enableval" = yes; then | |
5049 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
5050 | else | |
5051 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
5052 | fi | |
5053 | ||
5054 | else | |
5055 | ||
5056 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
5057 | if test "x$LINE" != x ; then | |
5058 | eval "DEFAULT_$LINE" | |
5059 | else | |
5060 | no_cache=1 | |
5061 | fi | |
5062 | ||
5063 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
5064 | ||
5065 | fi | |
5066 | ||
5067 | ||
5068 | eval "$ac_cv_use_progressdlg" | |
5069 | if test "$no_cache" != 1; then | |
5070 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
5071 | fi | |
5072 | ||
5073 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
5074 | echo "$ac_t""yes" 1>&6 | |
5075 | else | |
5076 | echo "$ac_t""no" 1>&6 | |
5077 | fi | |
5078 | ||
5079 | ||
5080 | echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6 | |
5586805b | 5081 | echo "configure:5082: checking "for --enable-miniframe"" >&5 |
7750247f KB |
5082 | no_cache=0 |
5083 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
5084 | if test "${enable_miniframe+set}" = set; then | |
5085 | enableval="$enable_miniframe" | |
5086 | ||
5087 | if test "$enableval" = yes; then | |
5088 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
5089 | else | |
5090 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
5091 | fi | |
5092 | ||
5093 | else | |
5094 | ||
5095 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
5096 | if test "x$LINE" != x ; then | |
5097 | eval "DEFAULT_$LINE" | |
5098 | else | |
5099 | no_cache=1 | |
5100 | fi | |
5101 | ||
5102 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
5103 | ||
5104 | fi | |
5105 | ||
5106 | ||
5107 | eval "$ac_cv_use_miniframe" | |
5108 | if test "$no_cache" != 1; then | |
5109 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
5110 | fi | |
5111 | ||
5112 | if test "$wxUSE_MINIFRAME" = yes; then | |
5113 | echo "$ac_t""yes" 1>&6 | |
5114 | else | |
5115 | echo "$ac_t""no" 1>&6 | |
5116 | fi | |
5117 | ||
5118 | ||
5119 | echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6 | |
5586805b | 5120 | echo "configure:5121: checking "for --enable-html"" >&5 |
7750247f KB |
5121 | no_cache=0 |
5122 | # Check whether --enable-html or --disable-html was given. | |
5123 | if test "${enable_html+set}" = set; then | |
5124 | enableval="$enable_html" | |
5125 | ||
5126 | if test "$enableval" = yes; then | |
5127 | ac_cv_use_html='wxUSE_HTML=yes' | |
5128 | else | |
5129 | ac_cv_use_html='wxUSE_HTML=no' | |
5130 | fi | |
5131 | ||
5132 | else | |
5133 | ||
5134 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
5135 | if test "x$LINE" != x ; then | |
5136 | eval "DEFAULT_$LINE" | |
5137 | else | |
5138 | no_cache=1 | |
5139 | fi | |
5140 | ||
5141 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
5142 | ||
5143 | fi | |
5144 | ||
5145 | ||
5146 | eval "$ac_cv_use_html" | |
5147 | if test "$no_cache" != 1; then | |
5148 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
5149 | fi | |
5150 | ||
5151 | if test "$wxUSE_HTML" = yes; then | |
5152 | echo "$ac_t""yes" 1>&6 | |
5153 | else | |
5154 | echo "$ac_t""no" 1>&6 | |
5155 | fi | |
5156 | ||
5157 | ||
5158 | echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6 | |
5586805b | 5159 | echo "configure:5160: checking "for --enable-tooltips"" >&5 |
7750247f KB |
5160 | no_cache=0 |
5161 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
5162 | if test "${enable_tooltips+set}" = set; then | |
5163 | enableval="$enable_tooltips" | |
5164 | ||
5165 | if test "$enableval" = yes; then | |
5166 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
5167 | else | |
5168 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
5169 | fi | |
5170 | ||
5171 | else | |
5172 | ||
5173 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
5174 | if test "x$LINE" != x ; then | |
5175 | eval "DEFAULT_$LINE" | |
5176 | else | |
5177 | no_cache=1 | |
5178 | fi | |
5179 | ||
5180 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
5181 | ||
5182 | fi | |
5183 | ||
5184 | ||
5185 | eval "$ac_cv_use_tooltips" | |
5186 | if test "$no_cache" != 1; then | |
5187 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
5188 | fi | |
5189 | ||
5190 | if test "$wxUSE_TOOLTIPS" = yes; then | |
5191 | echo "$ac_t""yes" 1>&6 | |
5192 | else | |
5193 | echo "$ac_t""no" 1>&6 | |
5194 | fi | |
5195 | ||
5196 | ||
5197 | echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6 | |
5586805b | 5198 | echo "configure:5199: checking "for --enable-splines"" >&5 |
7750247f KB |
5199 | no_cache=0 |
5200 | # Check whether --enable-splines or --disable-splines was given. | |
5201 | if test "${enable_splines+set}" = set; then | |
5202 | enableval="$enable_splines" | |
5203 | ||
5204 | if test "$enableval" = yes; then | |
5205 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
5206 | else | |
5207 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
5208 | fi | |
5209 | ||
5210 | else | |
5211 | ||
5212 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
5213 | if test "x$LINE" != x ; then | |
5214 | eval "DEFAULT_$LINE" | |
5215 | else | |
5216 | no_cache=1 | |
5217 | fi | |
5218 | ||
5219 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
5220 | ||
5221 | fi | |
5222 | ||
5223 | ||
5224 | eval "$ac_cv_use_splines" | |
5225 | if test "$no_cache" != 1; then | |
5226 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
5227 | fi | |
5228 | ||
5229 | if test "$wxUSE_SPLINES" = yes; then | |
5230 | echo "$ac_t""yes" 1>&6 | |
5231 | else | |
5232 | echo "$ac_t""no" 1>&6 | |
5233 | fi | |
5234 | ||
5235 | ||
5236 | echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6 | |
5586805b | 5237 | echo "configure:5238: checking "for --enable-validators"" >&5 |
7750247f KB |
5238 | no_cache=0 |
5239 | # Check whether --enable-validators or --disable-validators was given. | |
5240 | if test "${enable_validators+set}" = set; then | |
5241 | enableval="$enable_validators" | |
5242 | ||
5243 | if test "$enableval" = yes; then | |
5244 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
5245 | else | |
5246 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
5247 | fi | |
5248 | ||
5249 | else | |
5250 | ||
5251 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
5252 | if test "x$LINE" != x ; then | |
5253 | eval "DEFAULT_$LINE" | |
5254 | else | |
5255 | no_cache=1 | |
5256 | fi | |
5257 | ||
5258 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
5259 | ||
5260 | fi | |
5261 | ||
5262 | ||
5263 | eval "$ac_cv_use_validators" | |
5264 | if test "$no_cache" != 1; then | |
5265 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
5266 | fi | |
5267 | ||
5268 | if test "$wxUSE_VALIDATORS" = yes; then | |
5269 | echo "$ac_t""yes" 1>&6 | |
5270 | else | |
5271 | echo "$ac_t""no" 1>&6 | |
5272 | fi | |
5273 | ||
5274 | ||
5275 | echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6 | |
5586805b | 5276 | echo "configure:5277: checking "for --enable-busyinfo"" >&5 |
7750247f KB |
5277 | no_cache=0 |
5278 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
5279 | if test "${enable_busyinfo+set}" = set; then | |
5280 | enableval="$enable_busyinfo" | |
5281 | ||
5282 | if test "$enableval" = yes; then | |
5283 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
5284 | else | |
5285 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
5286 | fi | |
5287 | ||
5288 | else | |
5289 | ||
5290 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
5291 | if test "x$LINE" != x ; then | |
5292 | eval "DEFAULT_$LINE" | |
5293 | else | |
5294 | no_cache=1 | |
5295 | fi | |
5296 | ||
5297 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
5298 | ||
5299 | fi | |
5300 | ||
5301 | ||
5302 | eval "$ac_cv_use_busyinfo" | |
5303 | if test "$no_cache" != 1; then | |
5304 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
5305 | fi | |
5306 | ||
5307 | if test "$wxUSE_BUSYINFO" = yes; then | |
5308 | echo "$ac_t""yes" 1>&6 | |
5309 | else | |
5310 | echo "$ac_t""no" 1>&6 | |
5311 | fi | |
5312 | ||
5313 | ||
5314 | ||
5315 | echo "saving argument cache $wx_arg_cache_file" | |
5316 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
5317 | ||
5318 | ||
5319 | ||
5320 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
5586805b | 5321 | echo "configure:5322: checking for toolkit" >&5 |
7750247f KB |
5322 | |
5323 | if test "$TOOLKIT_GIVEN" = 1; then | |
5324 | for toolkit in `echo $ALL_TOOLKITS`; do | |
5325 | var=wxUSE_$toolkit | |
5326 | eval "value=\$${var}" | |
5327 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
5328 | done | |
5329 | else | |
5330 | for toolkit in `echo $ALL_TOOLKITS`; do | |
5331 | if test "$has_toolkit_in_cache" != 1; then | |
5332 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
5333 | else | |
5334 | var=DEFAULT_wxUSE_$toolkit | |
5335 | fi | |
5336 | eval "wxUSE_$toolkit=\$${var}" | |
5337 | done | |
5338 | fi | |
5339 | ||
5340 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}` | |
5341 | ||
5342 | case "$NUM_TOOLKITS" in | |
5343 | 1) | |
5344 | ;; | |
5345 | 0) | |
5346 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } | |
5347 | ;; | |
5348 | *) | |
5349 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } | |
5350 | esac | |
5351 | ||
5352 | for toolkit in `echo $ALL_TOOLKITS`; do | |
5353 | var=wxUSE_$toolkit | |
5354 | eval "value=\$${var}" | |
5355 | if test "x$value" != x; then | |
5356 | cache_var=CACHE_$toolkit | |
5357 | eval "cache=\$${cache_var}" | |
5358 | if test "$cache" = 1; then | |
5359 | echo "$var=$value" >> ${wx_arg_cache_file} | |
5360 | fi | |
5361 | if test "$value" = 1; then | |
5362 | echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6 | |
5363 | fi | |
5364 | fi | |
5365 | done | |
5366 | ||
5367 | ||
5368 | cat > confcache <<\EOF | |
5369 | # This file is a shell script that caches the results of configure | |
5370 | # tests run on this system so they can be shared between configure | |
5371 | # scripts and configure runs. It is not useful on other systems. | |
5372 | # If it contains results you don't want to keep, you may remove or edit it. | |
5373 | # | |
5374 | # By default, configure uses ./config.cache as the cache file, | |
5375 | # creating it if it does not exist already. You can give configure | |
5376 | # the --cache-file=FILE option to use a different cache file; that is | |
5377 | # what configure does when it calls configure scripts in | |
5378 | # subdirectories, so they share the cache. | |
5379 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
5380 | # config.status only pays attention to the cache file if you give it the | |
5381 | # --recheck option to rerun configure. | |
5382 | # | |
5383 | EOF | |
5384 | # The following way of writing the cache mishandles newlines in values, | |
5385 | # but we know of no workaround that is simple, portable, and efficient. | |
5386 | # So, don't put newlines in cache variables' values. | |
5387 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
5388 | # and sets the high bit in the cache file unless we assign to the vars. | |
5389 | (set) 2>&1 | | |
9c884972 | 5390 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
7750247f KB |
5391 | *ac_space=\ *) |
5392 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
5393 | # turns \\\\ into \\, and sed turns \\ into \). | |
5394 | sed -n \ | |
5395 | -e "s/'/'\\\\''/g" \ | |
5396 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
5397 | ;; | |
5398 | *) | |
5399 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5400 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
5401 | ;; | |
5402 | esac >> confcache | |
5403 | if cmp -s $cache_file confcache; then | |
5404 | : | |
5405 | else | |
5406 | if test -w $cache_file; then | |
5407 | echo "updating cache $cache_file" | |
5408 | cat confcache > $cache_file | |
5409 | else | |
5410 | echo "not updating unwritable cache $cache_file" | |
5411 | fi | |
5412 | fi | |
5413 | rm -f confcache | |
5414 | ||
5415 | ||
5416 | if eval "test $host != $build"; then | |
5417 | if eval "test $host_alias != NONE"; then | |
5418 | CC=$host_alias-gcc | |
5419 | CXX=$host_alias-c++ | |
5420 | AR=$host_alias-ar | |
5421 | RANLIB=$host_alias-ranlib | |
5422 | DLLTOOL=$host_alias-dlltool | |
5423 | LD=$host_alias-ld | |
5424 | NM=$host_alias-nm | |
5425 | STRIP=$host_alias-strip | |
5426 | fi | |
5427 | fi | |
5428 | ||
5429 | # Extract the first word of "gcc", so it can be a program name with args. | |
5430 | set dummy gcc; ac_word=$2 | |
5431 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
5586805b | 5432 | echo "configure:5433: checking for $ac_word" >&5 |
7750247f KB |
5433 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
5434 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5435 | else | |
5436 | if test -n "$CC"; then | |
5437 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5438 | else | |
9c884972 RR |
5439 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
5440 | ac_dummy="$PATH" | |
5441 | for ac_dir in $ac_dummy; do | |
7750247f KB |
5442 | test -z "$ac_dir" && ac_dir=. |
5443 | if test -f $ac_dir/$ac_word; then | |
5444 | ac_cv_prog_CC="gcc" | |
5445 | break | |
5446 | fi | |
5447 | done | |
5448 | IFS="$ac_save_ifs" | |
5449 | fi | |
5450 | fi | |
5451 | CC="$ac_cv_prog_CC" | |
5452 | if test -n "$CC"; then | |
5453 | echo "$ac_t""$CC" 1>&6 | |
5454 | else | |
5455 | echo "$ac_t""no" 1>&6 | |
5456 | fi | |
5457 | ||
5458 | if test -z "$CC"; then | |
5459 | # Extract the first word of "cc", so it can be a program name with args. | |
5460 | set dummy cc; ac_word=$2 | |
5461 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
5586805b | 5462 | echo "configure:5463: checking for $ac_word" >&5 |
7750247f KB |
5463 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
5464 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5465 | else | |
5466 | if test -n "$CC"; then | |
5467 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5468 | else | |
9c884972 | 5469 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7750247f | 5470 | ac_prog_rejected=no |
9c884972 RR |
5471 | ac_dummy="$PATH" |
5472 | for ac_dir in $ac_dummy; do | |
7750247f KB |
5473 | test -z "$ac_dir" && ac_dir=. |
5474 | if test -f $ac_dir/$ac_word; then | |
5475 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
5476 | ac_prog_rejected=yes | |
5477 | continue | |
5478 | fi | |
5479 | ac_cv_prog_CC="cc" | |
5480 | break | |
5481 | fi | |
5482 | done | |
5483 | IFS="$ac_save_ifs" | |
5484 | if test $ac_prog_rejected = yes; then | |
5485 | # We found a bogon in the path, so make sure we never use it. | |
5486 | set dummy $ac_cv_prog_CC | |
5487 | shift | |
5488 | if test $# -gt 0; then | |
5489 | # We chose a different compiler from the bogus one. | |
5490 | # However, it has the same basename, so the bogon will be chosen | |
5491 | # first if we set CC to just the basename; use the full file name. | |
5492 | shift | |
5493 | set dummy "$ac_dir/$ac_word" "$@" | |
5494 | shift | |
5495 | ac_cv_prog_CC="$@" | |
5496 | fi | |
5497 | fi | |
5498 | fi | |
5499 | fi | |
5500 | CC="$ac_cv_prog_CC" | |
5501 | if test -n "$CC"; then | |
5502 | echo "$ac_t""$CC" 1>&6 | |
5503 | else | |
5504 | echo "$ac_t""no" 1>&6 | |
5505 | fi | |
5506 | ||
9c884972 RR |
5507 | if test -z "$CC"; then |
5508 | case "`uname -s`" in | |
5509 | *win32* | *WIN32*) | |
5510 | # Extract the first word of "cl", so it can be a program name with args. | |
5511 | set dummy cl; ac_word=$2 | |
5512 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
5586805b | 5513 | echo "configure:5514: checking for $ac_word" >&5 |
9c884972 RR |
5514 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
5515 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5516 | else | |
5517 | if test -n "$CC"; then | |
5518 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5519 | else | |
5520 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
5521 | ac_dummy="$PATH" | |
5522 | for ac_dir in $ac_dummy; do | |
5523 | test -z "$ac_dir" && ac_dir=. | |
5524 | if test -f $ac_dir/$ac_word; then | |
5525 | ac_cv_prog_CC="cl" | |
5526 | break | |
5527 | fi | |
5528 | done | |
5529 | IFS="$ac_save_ifs" | |
5530 | fi | |
5531 | fi | |
5532 | CC="$ac_cv_prog_CC" | |
5533 | if test -n "$CC"; then | |
5534 | echo "$ac_t""$CC" 1>&6 | |
5535 | else | |
5536 | echo "$ac_t""no" 1>&6 | |
5537 | fi | |
5538 | ;; | |
5539 | esac | |
5540 | fi | |
7750247f KB |
5541 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
5542 | fi | |
5543 | ||
5544 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
5586805b | 5545 | echo "configure:5546: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
7750247f KB |
5546 | |
5547 | ac_ext=c | |
5548 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5549 | ac_cpp='$CPP $CPPFLAGS' | |
5550 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9c884972 | 5551 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
7750247f KB |
5552 | cross_compiling=$ac_cv_prog_cc_cross |
5553 | ||
9c884972 RR |
5554 | cat > conftest.$ac_ext << EOF |
5555 | ||
5586805b | 5556 | #line 5557 "configure" |
7750247f | 5557 | #include "confdefs.h" |
9c884972 | 5558 | |
7750247f KB |
5559 | main(){return(0);} |
5560 | EOF | |
5586805b | 5561 | if { (eval echo configure:5562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7750247f KB |
5562 | ac_cv_prog_cc_works=yes |
5563 | # If we can't run a trivial program, we are probably using a cross compiler. | |
5564 | if (./conftest; exit) 2>/dev/null; then | |
5565 | ac_cv_prog_cc_cross=no | |
5566 | else | |
5567 | ac_cv_prog_cc_cross=yes | |
5568 | fi | |
5569 | else | |
5570 | echo "configure: failed program was:" >&5 | |
5571 | cat conftest.$ac_ext >&5 | |
5572 | ac_cv_prog_cc_works=no | |
5573 | fi | |
5574 | rm -fr conftest* | |
9c884972 RR |
5575 | ac_ext=c |
5576 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5577 | ac_cpp='$CPP $CPPFLAGS' | |
5578 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
5579 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
5580 | cross_compiling=$ac_cv_prog_cc_cross | |
7750247f KB |
5581 | |
5582 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
5583 | if test $ac_cv_prog_cc_works = no; then | |
5584 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
5585 | fi | |
5586 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
5586805b | 5587 | echo "configure:5588: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
7750247f KB |
5588 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
5589 | cross_compiling=$ac_cv_prog_cc_cross | |
5590 | ||
5591 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
5586805b | 5592 | echo "configure:5593: checking whether we are using GNU C" >&5 |
7750247f KB |
5593 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
5594 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5595 | else | |
5596 | cat > conftest.c <<EOF | |
5597 | #ifdef __GNUC__ | |
5598 | yes; | |
5599 | #endif | |
5600 | EOF | |
5586805b | 5601 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:5602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
7750247f KB |
5602 | ac_cv_prog_gcc=yes |
5603 | else | |
5604 | ac_cv_prog_gcc=no | |
5605 | fi | |
5606 | fi | |
5607 | ||
5608 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
5609 | ||
5610 | if test $ac_cv_prog_gcc = yes; then | |
5611 | GCC=yes | |
9c884972 RR |
5612 | else |
5613 | GCC= | |
5614 | fi | |
5615 | ||
5616 | ac_test_CFLAGS="${CFLAGS+set}" | |
5617 | ac_save_CFLAGS="$CFLAGS" | |
5618 | CFLAGS= | |
5619 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
5586805b | 5620 | echo "configure:5621: checking whether ${CC-cc} accepts -g" >&5 |
7750247f KB |
5621 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
5622 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5623 | else | |
5624 | echo 'void f(){}' > conftest.c | |
5625 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
5626 | ac_cv_prog_cc_g=yes | |
5627 | else | |
5628 | ac_cv_prog_cc_g=no | |
5629 | fi | |
5630 | rm -f conftest* | |
5631 | ||
5632 | fi | |
5633 | ||
5634 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
9c884972 RR |
5635 | if test "$ac_test_CFLAGS" = set; then |
5636 | CFLAGS="$ac_save_CFLAGS" | |
5637 | elif test $ac_cv_prog_cc_g = yes; then | |
5638 | if test "$GCC" = yes; then | |
7750247f KB |
5639 | CFLAGS="-g -O2" |
5640 | else | |
9c884972 | 5641 | CFLAGS="-g" |
7750247f KB |
5642 | fi |
5643 | else | |
9c884972 RR |
5644 | if test "$GCC" = yes; then |
5645 | CFLAGS="-O2" | |
5646 | else | |
5647 | CFLAGS= | |
5648 | fi | |
7750247f KB |
5649 | fi |
5650 | ||
5651 | ||
5652 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
5653 | ||
5654 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
5586805b | 5655 | echo "configure:5656: checking how to run the C preprocessor" >&5 |
7750247f KB |
5656 | # On Suns, sometimes $CPP names a directory. |
5657 | if test -n "$CPP" && test -d "$CPP"; then | |
5658 | CPP= | |
5659 | fi | |
5660 | if test -z "$CPP"; then | |
5661 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
5662 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5663 | else | |
5664 | # This must be in double quotes, not single quotes, because CPP may get | |
5665 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
5666 | CPP="${CC-cc} -E" | |
5667 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5668 | # not just through cpp. | |
5669 | cat > conftest.$ac_ext <<EOF | |
5586805b | 5670 | #line 5671 "configure" |
7750247f KB |
5671 | #include "confdefs.h" |
5672 | #include <assert.h> | |
5673 | Syntax Error | |
5674 | EOF | |
5675 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5586805b | 5676 | { (eval echo configure:5677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9c884972 | 5677 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7750247f KB |
5678 | if test -z "$ac_err"; then |
5679 | : | |
5680 | else | |
5681 | echo "$ac_err" >&5 | |
5682 | echo "configure: failed program was:" >&5 | |
5683 | cat conftest.$ac_ext >&5 | |
5684 | rm -rf conftest* | |
5685 | CPP="${CC-cc} -E -traditional-cpp" | |
5686 | cat > conftest.$ac_ext <<EOF | |
5586805b | 5687 | #line 5688 "configure" |
7750247f KB |
5688 | #include "confdefs.h" |
5689 | #include <assert.h> | |
5690 | Syntax Error | |
5691 | EOF | |
5692 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5586805b | 5693 | { (eval echo configure:5694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9c884972 RR |
5694 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5695 | if test -z "$ac_err"; then | |
5696 | : | |
5697 | else | |
5698 | echo "$ac_err" >&5 | |
5699 | echo "configure: failed program was:" >&5 | |
5700 | cat conftest.$ac_ext >&5 | |
5701 | rm -rf conftest* | |
5702 | CPP="${CC-cc} -nologo -E" | |
5703 | cat > conftest.$ac_ext <<EOF | |
5586805b | 5704 | #line 5705 "configure" |
9c884972 RR |
5705 | #include "confdefs.h" |
5706 | #include <assert.h> | |
5707 | Syntax Error | |
5708 | EOF | |
5709 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5586805b | 5710 | { (eval echo configure:5711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9c884972 | 5711 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7750247f KB |
5712 | if test -z "$ac_err"; then |
5713 | : | |
5714 | else | |
5715 | echo "$ac_err" >&5 | |
5716 | echo "configure: failed program was:" >&5 | |
5717 | cat conftest.$ac_ext >&5 | |
5718 | rm -rf conftest* | |
5719 | CPP=/lib/cpp | |
5720 | fi | |
5721 | rm -f conftest* | |
5722 | fi | |
9c884972 RR |
5723 | rm -f conftest* |
5724 | fi | |
7750247f KB |
5725 | rm -f conftest* |
5726 | ac_cv_prog_CPP="$CPP" | |
5727 | fi | |
5728 | CPP="$ac_cv_prog_CPP" | |
5729 | else | |
5730 | ac_cv_prog_CPP="$CPP" | |
5731 | fi | |
5732 | echo "$ac_t""$CPP" 1>&6 | |
5733 | ||
5734 | ||
5735 | if test $ac_cv_prog_gcc = yes; then | |
5736 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
5586805b | 5737 | echo "configure:5738: checking whether ${CC-cc} needs -traditional" >&5 |
7750247f KB |
5738 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
5739 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5740 | else | |
5741 | ac_pattern="Autoconf.*'x'" | |
5742 | cat > conftest.$ac_ext <<EOF | |
5586805b | 5743 | #line 5744 "configure" |
7750247f KB |
5744 | #include "confdefs.h" |
5745 | #include <sgtty.h> | |
5746 | Autoconf TIOCGETP | |
5747 | EOF | |
5748 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5749 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
5750 | rm -rf conftest* | |
5751 | ac_cv_prog_gcc_traditional=yes | |
5752 | else | |
5753 | rm -rf conftest* | |
5754 | ac_cv_prog_gcc_traditional=no | |
5755 | fi | |
5756 | rm -f conftest* | |
5757 | ||
5758 | ||
5759 | if test $ac_cv_prog_gcc_traditional = no; then | |
5760 | cat > conftest.$ac_ext <<EOF | |
5586805b | 5761 | #line 5762 "configure" |
7750247f KB |
5762 | #include "confdefs.h" |
5763 | #include <termio.h> | |
5764 | Autoconf TCGETA | |
5765 | EOF | |
5766 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5767 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
5768 | rm -rf conftest* | |
5769 | ac_cv_prog_gcc_traditional=yes | |
5770 | fi | |
5771 | rm -f conftest* | |
5772 | ||
5773 | fi | |
5774 | fi | |
5775 | ||
5776 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
5777 | if test $ac_cv_prog_gcc_traditional = yes; then | |
5778 | CC="$CC -traditional" | |
5779 | fi | |
5780 | fi | |
5781 | ||
5782 | ||
5783 | ||
5784 | ac_ext=C | |
5785 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5786 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5787 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9c884972 | 5788 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
7750247f KB |
5789 | cross_compiling=$ac_cv_prog_cxx_cross |
5790 | ||
5791 | ||
9c884972 | 5792 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
7750247f KB |
5793 | do |
5794 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5795 | set dummy $ac_prog; ac_word=$2 | |
5796 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
5586805b | 5797 | echo "configure:5798: checking for $ac_word" >&5 |
7750247f KB |
5798 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
5799 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5800 | else | |
5801 | if test -n "$CXX"; then | |
5802 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
5803 | else | |
9c884972 RR |
5804 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
5805 | ac_dummy="$PATH" | |
5806 | for ac_dir in $ac_dummy; do | |
7750247f KB |
5807 | test -z "$ac_dir" && ac_dir=. |
5808 | if test -f $ac_dir/$ac_word; then | |
5809 | ac_cv_prog_CXX="$ac_prog" | |
5810 | break | |
5811 | fi | |
5812 | done | |
5813 | IFS="$ac_save_ifs" | |
5814 | fi | |
5815 | fi | |
5816 | CXX="$ac_cv_prog_CXX" | |
5817 | if test -n "$CXX"; then | |
5818 | echo "$ac_t""$CXX" 1>&6 | |
5819 | else | |
5820 | echo "$ac_t""no" 1>&6 | |
5821 | fi | |
5822 | ||
5823 | test -n "$CXX" && break | |
5824 | done | |
5825 | test -n "$CXX" || CXX="gcc" | |
5826 | ||
5827 | ||
5828 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
5586805b | 5829 | echo "configure:5830: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
7750247f KB |
5830 | |
5831 | ac_ext=C | |
5832 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5833 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5834 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9c884972 | 5835 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
7750247f KB |
5836 | cross_compiling=$ac_cv_prog_cxx_cross |
5837 | ||
9c884972 RR |
5838 | cat > conftest.$ac_ext << EOF |
5839 | ||
5586805b | 5840 | #line 5841 "configure" |
7750247f | 5841 | #include "confdefs.h" |
9c884972 RR |
5842 | |
5843 | int main(){return(0);} | |
7750247f | 5844 | EOF |
5586805b | 5845 | if { (eval echo configure:5846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7750247f KB |
5846 | ac_cv_prog_cxx_works=yes |
5847 | # If we can't run a trivial program, we are probably using a cross compiler. | |
5848 | if (./conftest; exit) 2>/dev/null; then | |
5849 | ac_cv_prog_cxx_cross=no | |
5850 | else | |
5851 | ac_cv_prog_cxx_cross=yes | |
5852 | fi | |
5853 | else | |
5854 | echo "configure: failed program was:" >&5 | |
5855 | cat conftest.$ac_ext >&5 | |
5856 | ac_cv_prog_cxx_works=no | |
5857 | fi | |
5858 | rm -fr conftest* | |
9c884972 RR |
5859 | ac_ext=C |
5860 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5861 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5862 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
5863 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
5864 | cross_compiling=$ac_cv_prog_cxx_cross | |
7750247f KB |
5865 | |
5866 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
5867 | if test $ac_cv_prog_cxx_works = no; then | |
5868 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
5869 | fi | |
5870 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
5586805b | 5871 | echo "configure:5872: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
7750247f KB |
5872 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
5873 | cross_compiling=$ac_cv_prog_cxx_cross | |
5874 | ||
5875 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
5586805b | 5876 | echo "configure:5877: checking whether we are using GNU C++" >&5 |
7750247f KB |
5877 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
5878 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5879 | else | |
5880 | cat > conftest.C <<EOF | |
5881 | #ifdef __GNUC__ | |
5882 | yes; | |
5883 | #endif | |
5884 | EOF | |
5586805b | 5885 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:5886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
7750247f KB |
5886 | ac_cv_prog_gxx=yes |
5887 | else | |
5888 | ac_cv_prog_gxx=no | |
5889 | fi | |
5890 | fi | |
5891 | ||
5892 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 | |
5893 | ||
5894 | if test $ac_cv_prog_gxx = yes; then | |
5895 | GXX=yes | |
9c884972 RR |
5896 | else |
5897 | GXX= | |
5898 | fi | |
5899 | ||
5900 | ac_test_CXXFLAGS="${CXXFLAGS+set}" | |
5901 | ac_save_CXXFLAGS="$CXXFLAGS" | |
5902 | CXXFLAGS= | |
5903 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
5586805b | 5904 | echo "configure:5905: checking whether ${CXX-g++} accepts -g" >&5 |
7750247f KB |
5905 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
5906 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5907 | else | |
5908 | echo 'void f(){}' > conftest.cc | |
5909 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
5910 | ac_cv_prog_cxx_g=yes | |
5911 | else | |
5912 | ac_cv_prog_cxx_g=no | |
5913 | fi | |
5914 | rm -f conftest* | |
5915 | ||
5916 | fi | |
5917 | ||
5918 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
9c884972 RR |
5919 | if test "$ac_test_CXXFLAGS" = set; then |
5920 | CXXFLAGS="$ac_save_CXXFLAGS" | |
5921 | elif test $ac_cv_prog_cxx_g = yes; then | |
5922 | if test "$GXX" = yes; then | |
7750247f KB |
5923 | CXXFLAGS="-g -O2" |
5924 | else | |
9c884972 | 5925 | CXXFLAGS="-g" |
7750247f KB |
5926 | fi |
5927 | else | |
9c884972 RR |
5928 | if test "$GXX" = yes; then |
5929 | CXXFLAGS="-O2" | |
5930 | else | |
5931 | CXXFLAGS= | |
5932 | fi | |
7750247f KB |
5933 | fi |
5934 | ||
5935 | ||
5936 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 | |
5586805b | 5937 | echo "configure:5938: checking how to run the C++ preprocessor" >&5 |
7750247f KB |
5938 | if test -z "$CXXCPP"; then |
5939 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
5940 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5941 | else | |
5942 | ac_ext=C | |
5943 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5944 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5945 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9c884972 | 5946 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
7750247f KB |
5947 | cross_compiling=$ac_cv_prog_cxx_cross |
5948 | CXXCPP="${CXX-g++} -E" | |
5949 | cat > conftest.$ac_ext <<EOF | |
5586805b | 5950 | #line 5951 "configure" |
7750247f KB |
5951 | #include "confdefs.h" |
5952 | #include <stdlib.h> | |
5953 | EOF | |
5954 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5586805b | 5955 | { (eval echo configure:5956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9c884972 | 5956 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7750247f KB |
5957 | if test -z "$ac_err"; then |
5958 | : | |
5959 | else | |
5960 | echo "$ac_err" >&5 | |
5961 | echo "configure: failed program was:" >&5 | |
5962 | cat conftest.$ac_ext >&5 | |
5963 | rm -rf conftest* | |
5964 | CXXCPP=/lib/cpp | |
5965 | fi | |
5966 | rm -f conftest* | |
5967 | ac_cv_prog_CXXCPP="$CXXCPP" | |
9c884972 RR |
5968 | ac_ext=C |
5969 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5970 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5971 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
5972 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
5973 | cross_compiling=$ac_cv_prog_cxx_cross | |
7750247f KB |
5974 | fi |
5975 | fi | |
5976 | CXXCPP="$ac_cv_prog_CXXCPP" | |
5977 | echo "$ac_t""$CXXCPP" 1>&6 | |
5978 | ||
5979 | ||
5980 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` | |
5981 | ||
5982 | ac_ext=c | |
5983 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5984 | ac_cpp='$CPP $CPPFLAGS' | |
5985 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9c884972 | 5986 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
7750247f KB |
5987 | cross_compiling=$ac_cv_prog_cc_cross |
5988 | ||
5989 | ||
5990 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5991 | set dummy ranlib; ac_word=$2 | |
5992 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
5586805b | 5993 | echo "configure:5994: checking for $ac_word" >&5 |
7750247f KB |
5994 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
5995 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5996 | else | |
5997 | if test -n "$RANLIB"; then | |
5998 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5999 | else | |
9c884972 RR |
6000 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
6001 | ac_dummy="$PATH" | |
6002 | for ac_dir in $ac_dummy; do | |
7750247f KB |
6003 | test -z "$ac_dir" && ac_dir=. |
6004 | if test -f $ac_dir/$ac_word; then | |
6005 | ac_cv_prog_RANLIB="ranlib" | |
6006 | break | |
6007 | fi | |
6008 | done | |
6009 | IFS="$ac_save_ifs" | |
6010 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
6011 | fi | |
6012 | fi | |
6013 | RANLIB="$ac_cv_prog_RANLIB" | |
6014 | if test -n "$RANLIB"; then | |
6015 | echo "$ac_t""$RANLIB" 1>&6 | |
6016 | else | |
6017 | echo "$ac_t""no" 1>&6 | |
6018 | fi | |
6019 | ||
6020 | ||
6021 | # Extract the first word of "ar", so it can be a program name with args. | |
6022 | set dummy ar; ac_word=$2 | |
6023 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
5586805b | 6024 | echo "configure:6025: checking for $ac_word" >&5 |
7750247f KB |
6025 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
6026 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6027 | else | |
6028 | if test -n "$AR"; then | |
6029 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6030 | else | |
9c884972 RR |
6031 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
6032 | ac_dummy="$PATH" | |
6033 | for ac_dir in $ac_dummy; do | |
7750247f KB |
6034 | test -z "$ac_dir" && ac_dir=. |
6035 | if test -f $ac_dir/$ac_word; then | |
6036 | ac_cv_prog_AR="ar" | |
6037 | break | |
6038 | fi | |
6039 | done | |
6040 | IFS="$ac_save_ifs" | |
6041 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
6042 | fi | |
6043 | fi | |
6044 | AR="$ac_cv_prog_AR" | |
6045 | if test -n "$AR"; then | |
6046 | echo "$ac_t""$AR" 1>&6 | |
6047 | else | |
6048 | echo "$ac_t""no" 1>&6 | |
6049 | fi | |
6050 | ||
6051 | ||
6052 | # Find a good install program. We prefer a C program (faster), | |
6053 | # so one script is as good as another. But avoid the broken or | |
6054 | # incompatible versions: | |
6055 | # SysV /etc/install, /usr/sbin/install | |
6056 | # SunOS /usr/etc/install | |
6057 | # IRIX /sbin/install | |
6058 | # AIX /bin/install | |
9c884972 | 6059 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
7750247f KB |
6060 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
6061 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
6062 | # ./install, which can be erroneously created by make from ./install.sh. | |
6063 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
5586805b | 6064 | echo "configure:6065: checking for a BSD compatible install" >&5 |
7750247f KB |
6065 | if test -z "$INSTALL"; then |
6066 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
6067 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6068 | else | |
9c884972 | 6069 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
7750247f KB |
6070 | for ac_dir in $PATH; do |
6071 | # Account for people who put trailing slashes in PATH elements. | |
6072 | case "$ac_dir/" in | |
6073 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
6074 | *) | |
6075 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
9c884972 RR |
6076 | # Don't use installbsd from OSF since it installs stuff as root |
6077 | # by default. | |
6078 | for ac_prog in ginstall scoinst install; do | |
7750247f KB |
6079 | if test -f $ac_dir/$ac_prog; then |
6080 | if test $ac_prog = install && | |
6081 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
6082 | # AIX install. It has an incompatible calling convention. | |
7750247f KB |
6083 | : |
6084 | else | |
6085 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
6086 | break 2 | |
6087 | fi | |
6088 | fi | |
6089 | done | |
6090 | ;; | |
6091 | esac | |
6092 | done | |
6093 | IFS="$ac_save_IFS" | |
6094 | ||
6095 | fi | |
6096 | if test "${ac_cv_path_install+set}" = set; then | |
6097 | INSTALL="$ac_cv_path_install" | |
6098 | else | |
6099 | # As a last resort, use the slow shell script. We don't cache a | |
6100 | # path for INSTALL within a source directory, because that will | |
6101 | # break other packages using the cache if that directory is | |
6102 | # removed, or if the path is relative. | |
6103 | INSTALL="$ac_install_sh" | |
6104 | fi | |
6105 | fi | |
6106 | echo "$ac_t""$INSTALL" 1>&6 | |
6107 | ||
6108 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
6109 | # It thinks the first close brace ends the variable substitution. | |
6110 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
6111 | ||
9c884972 RR |
6112 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
6113 | ||
7750247f KB |
6114 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
6115 | ||
6116 | ||
6117 | # Extract the first word of "strip", so it can be a program name with args. | |
6118 | set dummy strip; ac_word=$2 | |
6119 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
5586805b | 6120 | echo "configure:6121: checking for $ac_word" >&5 |
7750247f KB |
6121 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
6122 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6123 | else | |
6124 | if test -n "$STRIP"; then | |
6125 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6126 | else | |
9c884972 RR |
6127 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
6128 | ac_dummy="$PATH" | |
6129 | for ac_dir in $ac_dummy; do | |
7750247f KB |
6130 | test -z "$ac_dir" && ac_dir=. |
6131 | if test -f $ac_dir/$ac_word; then | |
6132 | ac_cv_prog_STRIP="strip" | |
6133 | break | |
6134 | fi | |
6135 | done | |
6136 | IFS="$ac_save_ifs" | |
6137 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" | |
6138 | fi | |
6139 | fi | |
6140 | STRIP="$ac_cv_prog_STRIP" | |
6141 | if test -n "$STRIP"; then | |
6142 | echo "$ac_t""$STRIP" 1>&6 | |
6143 | else | |
6144 | echo "$ac_t""no" 1>&6 | |
6145 | fi | |
6146 | ||
6147 | ||
6148 | echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6 | |
5586805b | 6149 | echo "configure:6150: checking "make for VPATH support"" >&5 |
7750247f KB |
6150 | cat - << EOF > confMake |
6151 | check : file | |
6152 | cp \$? \$@ | |
6153 | cp \$? final_file | |
6154 | EOF | |
6155 | ||
6156 | if test ! -d sub ; then | |
6157 | mkdir sub | |
6158 | fi | |
6159 | echo dummy > sub/file | |
6160 | ${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null | |
6161 | RESULT=$? | |
6162 | rm -f sub/file check final_file confMake | |
6163 | rmdir sub | |
6164 | if test "$RESULT" = 0; then | |
6165 | echo "$ac_t""yes" 1>&6 | |
6166 | else | |
6167 | echo "$ac_t""no" 1>&6 | |
6168 | { echo "configure: error: You need a make-utility that is able to use the variable | |
6169 | VPATH correctly. | |
6170 | If your version of make does not support VPATH correctly" 1>&2; exit 1; } | |
6171 | fi | |
6172 | ||
6173 | for ac_prog in 'bison -y' byacc | |
6174 | do | |
6175 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6176 | set dummy $ac_prog; ac_word=$2 | |
6177 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
5586805b | 6178 | echo "configure:6179: checking for $ac_word" >&5 |
7750247f KB |
6179 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
6180 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6181 | else | |
6182 | if test -n "$YACC"; then | |
6183 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
6184 | else | |
9c884972 RR |
6185 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
6186 | ac_dummy="$PATH" | |
6187 | for ac_dir in $ac_dummy; do | |
7750247f KB |
6188 | test -z "$ac_dir" && ac_dir=. |
6189 | if test -f $ac_dir/$ac_word; then | |
6190 | ac_cv_prog_YACC="$ac_prog" | |
6191 | break | |
6192 | fi | |
6193 | done | |
6194 | IFS="$ac_save_ifs" | |
6195 | fi | |
6196 | fi | |
6197 | YACC="$ac_cv_prog_YACC" | |
6198 | if test -n "$YACC"; then | |
6199 | echo "$ac_t""$YACC" 1>&6 | |
6200 | else | |
6201 | echo "$ac_t""no" 1>&6 | |
6202 | fi | |
6203 | ||
6204 | test -n "$YACC" && break | |
6205 | done | |
6206 | test -n "$YACC" || YACC="yacc" | |
6207 | ||
6208 | ||
6209 | # Extract the first word of "flex", so it can be a program name with args. | |
6210 | set dummy flex; ac_word=$2 | |
6211 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
5586805b | 6212 | echo "configure:6213: checking for $ac_word" >&5 |
7750247f KB |
6213 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
6214 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6215 | else | |
6216 | if test -n "$LEX"; then | |
6217 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
6218 | else | |
9c884972 RR |
6219 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
6220 | ac_dummy="$PATH" | |
6221 | for ac_dir in $ac_dummy; do | |
7750247f KB |
6222 | test -z "$ac_dir" && ac_dir=. |
6223 | if test -f $ac_dir/$ac_word; then | |
6224 | ac_cv_prog_LEX="flex" | |
6225 | break | |
6226 | fi | |
6227 | done | |
6228 | IFS="$ac_save_ifs" | |
6229 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
6230 | fi | |
6231 | fi | |
6232 | LEX="$ac_cv_prog_LEX" | |
6233 | if test -n "$LEX"; then | |
6234 | echo "$ac_t""$LEX" 1>&6 | |
6235 | else | |
6236 | echo "$ac_t""no" 1>&6 | |
6237 | fi | |
6238 | ||
6239 | if test -z "$LEXLIB" | |
6240 | then | |
6241 | case "$LEX" in | |
6242 | flex*) ac_lib=fl ;; | |
6243 | *) ac_lib=l ;; | |
6244 | esac | |
6245 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
5586805b | 6246 | echo "configure:6247: checking for yywrap in -l$ac_lib" >&5 |
7750247f KB |
6247 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
6248 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
6249 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6250 | else | |
6251 | ac_save_LIBS="$LIBS" | |
6252 | LIBS="-l$ac_lib $LIBS" | |
6253 | cat > conftest.$ac_ext <<EOF | |
5586805b | 6254 | #line 6255 "configure" |
7750247f KB |
6255 | #include "confdefs.h" |
6256 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6257 | /* We use char because int might match the return type of a gcc2 | |
6258 | builtin and then its argument prototype would still apply. */ | |
6259 | char yywrap(); | |
6260 | ||
6261 | int main() { | |
6262 | yywrap() | |
6263 | ; return 0; } | |
6264 | EOF | |
5586805b | 6265 | if { (eval echo configure:6266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7750247f KB |
6266 | rm -rf conftest* |
6267 | eval "ac_cv_lib_$ac_lib_var=yes" | |
6268 | else | |
6269 | echo "configure: failed program was:" >&5 | |
6270 | cat conftest.$ac_ext >&5 | |
6271 | rm -rf conftest* | |
6272 | eval "ac_cv_lib_$ac_lib_var=no" | |
6273 | fi | |
6274 | rm -f conftest* | |
6275 | LIBS="$ac_save_LIBS" | |
6276 | ||
6277 | fi | |
6278 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
6279 | echo "$ac_t""yes" 1>&6 | |
6280 | LEXLIB="-l$ac_lib" | |
6281 | else | |
6282 | echo "$ac_t""no" 1>&6 | |
6283 | fi | |
6284 | ||
6285 | fi | |
6286 | ||
6287 | ||
6288 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
5586805b | 6289 | echo "configure:6290: checking whether ln -s works" >&5 |
7750247f KB |
6290 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
6291 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6292 | else | |
6293 | rm -f conftestdata | |
6294 | if ln -s X conftestdata 2>/dev/null | |
6295 | then | |
6296 | rm -f conftestdata | |
6297 | ac_cv_prog_LN_S="ln -s" | |
6298 | else | |
6299 | ac_cv_prog_LN_S=ln | |
6300 | fi | |
6301 | fi | |
6302 | LN_S="$ac_cv_prog_LN_S" | |
6303 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
6304 | echo "$ac_t""yes" 1>&6 | |
6305 | else | |
6306 | echo "$ac_t""no" 1>&6 | |
6307 | fi | |
6308 | ||
6309 | ||
6310 | ||
6311 | SEARCH_INCLUDE="\ | |
6312 | /usr/Motif-1.2/include \ | |
6313 | /usr/Motif-2.1/include \ | |
6314 | \ | |
6315 | /usr/include/Motif1.2 \ | |
6316 | /opt/xpm/include/X11 \ | |
6317 | \ | |
6318 | /usr/Motif1.2/include \ | |
6319 | /usr/dt/include \ | |
6320 | /usr/include/Xm \ | |
6321 | \ | |
6322 | /usr/X11R6/include \ | |
6323 | /usr/X11R5/include \ | |
6324 | /usr/X11R4/include \ | |
6325 | \ | |
6326 | /usr/X11R6/lib \ | |
6327 | /usr/X11R5/lib \ | |
6328 | /usr/X11R4/lib \ | |
6329 | \ | |
6330 | /usr/include/X11R6 \ | |
6331 | /usr/include/X11R5 \ | |
6332 | /usr/include/X11R4 \ | |
6333 | \ | |
6334 | /usr/local/X11R6/include \ | |
6335 | /usr/local/X11R5/include \ | |
6336 | /usr/local/X11R4/include \ | |
6337 | \ | |
6338 | /usr/local/include/X11R6 \ | |
6339 | /usr/local/include/X11R5 \ | |
6340 | /usr/local/include/X11R4 \ | |
6341 | \ | |
6342 | /usr/X11/include \ | |
6343 | /usr/include/X11 \ | |
6344 | /usr/local/X11/include \ | |
6345 | /usr/local/include/X11 \ | |
6346 | \ | |
6347 | /usr/X386/include \ | |
6348 | /usr/x386/include \ | |
6349 | /usr/XFree86/include/X11 \ | |
6350 | \ | |
6351 | /usr/include \ | |
6352 | /usr/local/include \ | |
6353 | \ | |
6354 | /usr/include/gtk \ | |
6355 | /usr/local/include/gtk \ | |
6356 | /usr/include/glib \ | |
6357 | /usr/local/include/glib \ | |
6358 | \ | |
6359 | /usr/include/qt \ | |
6360 | /usr/local/include/qt \ | |
6361 | \ | |
6362 | /usr/include/windows \ | |
6363 | /usr/include/wine \ | |
6364 | /usr/local/include/wine \ | |
6365 | \ | |
6366 | /usr/unsupported/include \ | |
6367 | /usr/athena/include \ | |
6368 | /usr/local/x11r5/include \ | |
6369 | /usr/lpp/Xamples/include \ | |
6370 | \ | |
6371 | /usr/openwin/include \ | |
6372 | /usr/openwin/share/include \ | |
6373 | " | |
6374 | ||
6375 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
6376 | ||
6377 | ||
6378 | cat > confcache <<\EOF | |
6379 | # This file is a shell script that caches the results of configure | |
6380 | # tests run on this system so they can be shared between configure | |
6381 | # scripts and configure runs. It is not useful on other systems. | |
6382 | # If it contains results you don't want to keep, you may remove or edit it. | |
6383 | # | |
6384 | # By default, configure uses ./config.cache as the cache file, | |
6385 | # creating it if it does not exist already. You can give configure | |
6386 | # the --cache-file=FILE option to use a different cache file; that is | |
6387 | # what configure does when it calls configure scripts in | |
6388 | # subdirectories, so they share the cache. | |
6389 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
6390 | # config.status only pays attention to the cache file if you give it the | |
6391 | # --recheck option to rerun configure. | |
6392 | # | |
6393 | EOF | |
6394 | # The following way of writing the cache mishandles newlines in values, | |
6395 | # but we know of no workaround that is simple, portable, and efficient. | |
6396 | # So, don't put newlines in cache variables' values. | |
6397 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
6398 | # and sets the high bit in the cache file unless we assign to the vars. | |
6399 | (set) 2>&1 | | |
9c884972 | 6400 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
7750247f KB |
6401 | *ac_space=\ *) |
6402 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
6403 | # turns \\\\ into \\, and sed turns \\ into \). | |
6404 | sed -n \ | |
6405 | -e "s/'/'\\\\''/g" \ | |
6406 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
6407 | ;; | |
6408 | *) | |
6409 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
6410 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
6411 | ;; | |
6412 | esac >> confcache | |
6413 | if cmp -s $cache_file confcache; then | |
6414 | : | |
6415 | else | |
6416 | if test -w $cache_file; then | |
6417 | echo "updating cache $cache_file" | |
6418 | cat confcache > $cache_file | |
6419 | else | |
6420 | echo "not updating unwritable cache $cache_file" | |
6421 | fi | |
6422 | fi | |
6423 | rm -f confcache | |
6424 | ||
6425 | ||
6426 | ||
6427 | TOOLKIT= | |
6428 | TOOLKIT_INCLUDE= | |
6429 | ||
6430 | GUIOBJS= | |
6431 | COMMONOBJS= | |
6432 | GENERICOBJS= | |
6433 | ||
6434 | GUI_TK_LIBRARY= | |
6435 | GUI_TK_LINK= | |
6436 | ||
6437 | WXGTK12= | |
6438 | ||
6439 | WXWINE= | |
6440 | ||
80d895cd HH |
6441 | PROGRAM_EXT= |
6442 | ||
7750247f KB |
6443 | if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then |
6444 | echo $ac_n "checking for Windows headers""... $ac_c" 1>&6 | |
80d895cd | 6445 | echo "configure:6446: checking for Windows headers" >&5 |
7750247f KB |
6446 | |
6447 | ac_find_includes= | |
6448 | for ac_dir in $SEARCH_INCLUDE; | |
6449 | do | |
6450 | if test -f "$ac_dir/windows.h"; then | |
6451 | ac_find_includes=$ac_dir | |
6452 | break | |
6453 | fi | |
6454 | done | |
6455 | ||
6456 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw" | |
6457 | ||
6458 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -loldnames -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32" | |
6459 | ||
6460 | if test "$ac_find_includes" != "" ; then | |
6461 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
6462 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
6463 | else | |
6464 | echo "$ac_t""no" 1>&6 | |
6465 | if test "$cross_compiling" != "yes" ; then | |
6466 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
6467 | fi | |
6468 | fi | |
6469 | ||
6470 | TOOLKIT=MSW | |
6471 | ||
6472 | GUIOBJS=MSW_GUIOBJS | |
6473 | GUIHEADERS=MSW_HEADERS | |
6474 | COMMONOBJS=MSW_COMMONOBJS | |
6475 | GENERICOBJS=MSW_GENERICOBJS | |
6476 | UNIXOBJS= | |
6477 | GUIDIST=MSW_DIST | |
80d895cd | 6478 | PROGRAM_EXT=.exe |
7750247f KB |
6479 | fi |
6480 | ||
6481 | if test "$wxUSE_GTK" = 1; then | |
6482 | ||
6483 | if test x$gtk_config_exec_prefix != x ; then | |
6484 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
6485 | if test x${GTK_CONFIG+set} != xset ; then | |
6486 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
6487 | fi | |
6488 | fi | |
6489 | if test x$gtk_config_prefix != x ; then | |
6490 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
6491 | if test x${GTK_CONFIG+set} != xset ; then | |
6492 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
6493 | fi | |
6494 | fi | |
6495 | ||
6496 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
6497 | set dummy gtk-config; ac_word=$2 | |
6498 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
80d895cd | 6499 | echo "configure:6500: checking for $ac_word" >&5 |
7750247f KB |
6500 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
6501 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6502 | else | |
6503 | case "$GTK_CONFIG" in | |
6504 | /*) | |
6505 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
6506 | ;; | |
9c884972 RR |
6507 | ?:/*) |
6508 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
6509 | ;; | |
7750247f | 6510 | *) |
9c884972 RR |
6511 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
6512 | ac_dummy="$PATH" | |
6513 | for ac_dir in $ac_dummy; do | |
7750247f KB |
6514 | test -z "$ac_dir" && ac_dir=. |
6515 | if test -f $ac_dir/$ac_word; then | |
6516 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
6517 | break | |
6518 | fi | |
6519 | done | |
6520 | IFS="$ac_save_ifs" | |
6521 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
6522 | ;; | |
6523 | esac | |
6524 | fi | |
6525 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
6526 | if test -n "$GTK_CONFIG"; then | |
6527 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
6528 | else | |
6529 | echo "$ac_t""no" 1>&6 | |
6530 | fi | |
6531 | ||
6532 | min_gtk_version=1.2.0 | |
6533 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 | |
80d895cd | 6534 | echo "configure:6535: checking for GTK - version >= $min_gtk_version" >&5 |
7750247f KB |
6535 | no_gtk="" |
6536 | if test "$GTK_CONFIG" != "no" ; then | |
6537 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
6538 | GTK_LIBS=`$GTK_CONFIG --libs` | |
6539 | ac_save_CFLAGS="$CFLAGS" | |
6540 | ac_save_LIBS="$LIBS" | |
6541 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
6542 | LIBS="$LIBS $GTK_LIBS" | |
6543 | if test "$cross_compiling" = yes; then | |
6544 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
6545 | else | |
6546 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 6547 | #line 6548 "configure" |
7750247f KB |
6548 | #include "confdefs.h" |
6549 | ||
6550 | #include <gtk/gtk.h> | |
6551 | #include <stdio.h> | |
6552 | ||
6553 | int | |
6554 | main () | |
6555 | { | |
6556 | int major, minor, micro; | |
6557 | ||
6558 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
6559 | printf("%s, bad version string\n", "$min_gtk_version"); | |
6560 | exit(1); | |
6561 | } | |
6562 | ||
6563 | if (gtk_minor_version == 1) return FALSE; | |
6564 | ||
6565 | return !((gtk_major_version > major) || | |
6566 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
6567 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
6568 | } | |
6569 | ||
6570 | EOF | |
80d895cd | 6571 | if { (eval echo configure:6572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
7750247f KB |
6572 | then |
6573 | : | |
6574 | else | |
6575 | echo "configure: failed program was:" >&5 | |
6576 | cat conftest.$ac_ext >&5 | |
6577 | rm -fr conftest* | |
6578 | no_gtk=yes | |
6579 | fi | |
6580 | rm -fr conftest* | |
6581 | fi | |
6582 | ||
6583 | CFLAGS="$ac_save_CFLAGS" | |
6584 | LIBS="$ac_save_LIBS" | |
6585 | else | |
6586 | no_gtk=yes | |
6587 | fi | |
6588 | if test "x$no_gtk" = x ; then | |
6589 | echo "$ac_t""yes" 1>&6 | |
6590 | WXGTK12=1 | |
6591 | else | |
6592 | echo "$ac_t""no" 1>&6 | |
6593 | GTK_CFLAGS="" | |
6594 | GTK_LIBS="" | |
6595 | : | |
6596 | fi | |
6597 | ||
6598 | ||
6599 | ||
6600 | if test "$WXGTK12" != 1; then | |
6601 | ||
6602 | if test x$gtk_config_exec_prefix != x ; then | |
6603 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
6604 | if test x${GTK_CONFIG+set} != xset ; then | |
6605 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
6606 | fi | |
6607 | fi | |
6608 | if test x$gtk_config_prefix != x ; then | |
6609 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
6610 | if test x${GTK_CONFIG+set} != xset ; then | |
6611 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
6612 | fi | |
6613 | fi | |
6614 | ||
6615 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
6616 | set dummy gtk-config; ac_word=$2 | |
6617 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
80d895cd | 6618 | echo "configure:6619: checking for $ac_word" >&5 |
7750247f KB |
6619 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
6620 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6621 | else | |
6622 | case "$GTK_CONFIG" in | |
6623 | /*) | |
6624 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
6625 | ;; | |
9c884972 RR |
6626 | ?:/*) |
6627 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
6628 | ;; | |
7750247f | 6629 | *) |
9c884972 RR |
6630 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
6631 | ac_dummy="$PATH" | |
6632 | for ac_dir in $ac_dummy; do | |
7750247f KB |
6633 | test -z "$ac_dir" && ac_dir=. |
6634 | if test -f $ac_dir/$ac_word; then | |
6635 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
6636 | break | |
6637 | fi | |
6638 | done | |
6639 | IFS="$ac_save_ifs" | |
6640 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
6641 | ;; | |
6642 | esac | |
6643 | fi | |
6644 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
6645 | if test -n "$GTK_CONFIG"; then | |
6646 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
6647 | else | |
6648 | echo "$ac_t""no" 1>&6 | |
6649 | fi | |
6650 | ||
6651 | min_gtk_version=1.0.0 | |
6652 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 | |
80d895cd | 6653 | echo "configure:6654: checking for GTK - version >= $min_gtk_version" >&5 |
7750247f KB |
6654 | no_gtk="" |
6655 | if test "$GTK_CONFIG" != "no" ; then | |
6656 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
6657 | GTK_LIBS=`$GTK_CONFIG --libs` | |
6658 | ac_save_CFLAGS="$CFLAGS" | |
6659 | ac_save_LIBS="$LIBS" | |
6660 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
6661 | LIBS="$LIBS $GTK_LIBS" | |
6662 | if test "$cross_compiling" = yes; then | |
6663 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
6664 | else | |
6665 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 6666 | #line 6667 "configure" |
7750247f KB |
6667 | #include "confdefs.h" |
6668 | ||
6669 | #include <gtk/gtk.h> | |
6670 | #include <stdio.h> | |
6671 | ||
6672 | int | |
6673 | main () | |
6674 | { | |
6675 | int major, minor, micro; | |
6676 | ||
6677 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
6678 | printf("%s, bad version string\n", "$min_gtk_version"); | |
6679 | exit(1); | |
6680 | } | |
6681 | ||
6682 | if (gtk_minor_version == 1) return FALSE; | |
6683 | ||
6684 | return !((gtk_major_version > major) || | |
6685 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
6686 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
6687 | } | |
6688 | ||
6689 | EOF | |
80d895cd | 6690 | if { (eval echo configure:6691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
7750247f KB |
6691 | then |
6692 | : | |
6693 | else | |
6694 | echo "configure: failed program was:" >&5 | |
6695 | cat conftest.$ac_ext >&5 | |
6696 | rm -fr conftest* | |
6697 | no_gtk=yes | |
6698 | fi | |
6699 | rm -fr conftest* | |
6700 | fi | |
6701 | ||
6702 | CFLAGS="$ac_save_CFLAGS" | |
6703 | LIBS="$ac_save_LIBS" | |
6704 | else | |
6705 | no_gtk=yes | |
6706 | fi | |
6707 | if test "x$no_gtk" = x ; then | |
6708 | echo "$ac_t""yes" 1>&6 | |
6709 | : | |
6710 | else | |
6711 | echo "$ac_t""no" 1>&6 | |
6712 | GTK_CFLAGS="" | |
6713 | GTK_LIBS="" | |
6714 | { echo "configure: error: Is gtk-config in path and GTK+ is version 1.2.X or 1.0.X?" 1>&2; exit 1; } | |
6715 | fi | |
6716 | ||
6717 | ||
6718 | ||
6719 | fi | |
6720 | ||
6721 | TOOLKIT_INCLUDE="$GTK_CFLAGS" | |
6722 | GUI_TK_LIBRARY="$GTK_LIBS -ldl" | |
6723 | TOOLKIT=GTK | |
6724 | ||
7750247f | 6725 | GUIHEADERS=GTK_HEADERS |
5586805b | 6726 | GUIOBJS=GTK_GUIOBJS |
7750247f KB |
6727 | COMMONOBJS=GTK_COMMONOBJS |
6728 | GENERICOBJS=GTK_GENERICOBJS | |
5586805b RR |
6729 | GUIDEPS=GTK_GUIDEPS |
6730 | COMMONDEPS=GTK_COMMONDEPS | |
6731 | GENERICDEPS=GTK_GENERICDEPS | |
7750247f KB |
6732 | UNIXOBJS=UNIXOBJS |
6733 | GUIDIST=GTK_DIST | |
6734 | fi | |
6735 | ||
6736 | if test "$wxUSE_WINE" = 1; then | |
6737 | echo $ac_n "checking for WINE includes""... $ac_c" 1>&6 | |
80d895cd | 6738 | echo "configure:6739: checking for WINE includes" >&5 |
7750247f KB |
6739 | |
6740 | ac_find_includes= | |
6741 | for ac_dir in $SEARCH_INCLUDE; | |
6742 | do | |
6743 | if test -f "$ac_dir/windows.h"; then | |
6744 | ac_find_includes=$ac_dir | |
6745 | break | |
6746 | fi | |
6747 | done | |
6748 | ||
6749 | if test "$ac_find_includes" != "" ; then | |
6750 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
6751 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
6752 | else | |
6753 | echo "$ac_t""no" 1>&6 | |
6754 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
6755 | fi | |
6756 | ||
6757 | XPM_LINK="" | |
6758 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
80d895cd | 6759 | echo "configure:6760: checking for Xpm library" >&5 |
7750247f KB |
6760 | |
6761 | ac_find_libraries= | |
6762 | for ac_dir in $SEARCH_LIB; | |
6763 | do | |
6764 | for ac_extension in a so sl; do | |
6765 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
6766 | ac_find_libraries=$ac_dir | |
6767 | break 2 | |
6768 | fi | |
6769 | done | |
6770 | done | |
6771 | ||
6772 | if test "$ac_find_libraries" != "" ; then | |
6773 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
6774 | XPM_LINK="-lXpm" | |
6775 | cat >> confdefs.h <<\EOF | |
6776 | #define wxHAVE_LIB_XPM 1 | |
6777 | EOF | |
6778 | ||
6779 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
6780 | else | |
6781 | echo "$ac_t""no" 1>&6 | |
6782 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
6783 | fi | |
6784 | ||
6785 | MESA_LINK="" | |
6786 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 | |
80d895cd | 6787 | echo "configure:6788: checking for Mesa library" >&5 |
7750247f KB |
6788 | |
6789 | ac_find_libraries= | |
6790 | for ac_dir in $SEARCH_LIB; | |
6791 | do | |
6792 | for ac_extension in a so sl; do | |
6793 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
6794 | ac_find_libraries=$ac_dir | |
6795 | break 2 | |
6796 | fi | |
6797 | done | |
6798 | done | |
6799 | ||
6800 | if test "$ac_find_libraries" != "" ; then | |
6801 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
6802 | MESA_LINK="-lMesaGL" | |
6803 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
6804 | else | |
6805 | { echo "configure: error: no" 1>&2; exit 1; } | |
6806 | fi | |
6807 | ||
6808 | GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses -ldl -lm" | |
6809 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" | |
6810 | WXWINE=1 | |
6811 | TOOLKIT=MSW | |
6812 | ||
7750247f | 6813 | GUIHEADERS=MSW_HEADERS |
5586805b | 6814 | GUIOBJS=MSW_GUIOBJS |
7750247f KB |
6815 | COMMONOBJS=MSW_COMMONOBJS |
6816 | GENERICOBJS=MSW_GENERICOBJS | |
5586805b RR |
6817 | GUIDEPS=MSW_GUIDEPS |
6818 | COMMONDEPS=MSW_COMMONDEPS | |
6819 | GENERICDEPS=MSW_GENERICDEPS | |
7750247f KB |
6820 | UNIXOBJS=UNIXOBJS |
6821 | GUIDIST=MSW_DIST | |
6822 | fi | |
6823 | ||
6824 | if test "$wxUSE_MOTIF" = 1; then | |
6825 | # If we find X, set shell vars x_includes and x_libraries to the | |
6826 | # paths, otherwise set no_x=yes. | |
6827 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
6828 | # --without-x overrides everything else, but does not touch the cache. | |
6829 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
80d895cd | 6830 | echo "configure:6831: checking for X" >&5 |
7750247f KB |
6831 | |
6832 | # Check whether --with-x or --without-x was given. | |
6833 | if test "${with_x+set}" = set; then | |
6834 | withval="$with_x" | |
6835 | : | |
6836 | fi | |
6837 | ||
6838 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
6839 | if test "x$with_x" = xno; then | |
6840 | # The user explicitly disabled X. | |
6841 | have_x=disabled | |
6842 | else | |
6843 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
6844 | # Both variables are already set. | |
6845 | have_x=yes | |
6846 | else | |
6847 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then | |
6848 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6849 | else | |
6850 | # One or both of the vars are not set, and there is no cached value. | |
6851 | ac_x_includes=NO ac_x_libraries=NO | |
6852 | rm -fr conftestdir | |
6853 | if mkdir conftestdir; then | |
6854 | cd conftestdir | |
6855 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
6856 | cat > Imakefile <<'EOF' | |
6857 | acfindx: | |
6858 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
6859 | EOF | |
6860 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
6861 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
6862 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
6863 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
6864 | for ac_extension in a so sl; do | |
6865 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
6866 | test -f $ac_im_libdir/libX11.$ac_extension; then | |
6867 | ac_im_usrlibdir=$ac_im_libdir; break | |
6868 | fi | |
6869 | done | |
6870 | # Screen out bogus values from the imake configuration. They are | |
6871 | # bogus both because they are the default anyway, and because | |
6872 | # using them would break gcc on systems where it needs fixed includes. | |
6873 | case "$ac_im_incroot" in | |
6874 | /usr/include) ;; | |
6875 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; | |
6876 | esac | |
6877 | case "$ac_im_usrlibdir" in | |
6878 | /usr/lib | /lib) ;; | |
6879 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; | |
6880 | esac | |
6881 | fi | |
6882 | cd .. | |
6883 | rm -fr conftestdir | |
6884 | fi | |
6885 | ||
6886 | if test "$ac_x_includes" = NO; then | |
6887 | # Guess where to find include files, by looking for this one X11 .h file. | |
6888 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
6889 | ||
6890 | # First, try using that file with no special directory specified. | |
6891 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 6892 | #line 6893 "configure" |
7750247f KB |
6893 | #include "confdefs.h" |
6894 | #include <$x_direct_test_include> | |
6895 | EOF | |
6896 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
80d895cd | 6897 | { (eval echo configure:6898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9c884972 | 6898 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7750247f KB |
6899 | if test -z "$ac_err"; then |
6900 | rm -rf conftest* | |
6901 | # We can compile using X headers with no special include directory. | |
6902 | ac_x_includes= | |
6903 | else | |
6904 | echo "$ac_err" >&5 | |
6905 | echo "configure: failed program was:" >&5 | |
6906 | cat conftest.$ac_ext >&5 | |
6907 | rm -rf conftest* | |
6908 | # Look for the header file in a standard set of common directories. | |
6909 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
6910 | for ac_dir in \ | |
6911 | /usr/X11/include \ | |
6912 | /usr/X11R6/include \ | |
6913 | /usr/X11R5/include \ | |
6914 | /usr/X11R4/include \ | |
6915 | \ | |
6916 | /usr/include/X11 \ | |
6917 | /usr/include/X11R6 \ | |
6918 | /usr/include/X11R5 \ | |
6919 | /usr/include/X11R4 \ | |
6920 | \ | |
6921 | /usr/local/X11/include \ | |
6922 | /usr/local/X11R6/include \ | |
6923 | /usr/local/X11R5/include \ | |
6924 | /usr/local/X11R4/include \ | |
6925 | \ | |
6926 | /usr/local/include/X11 \ | |
6927 | /usr/local/include/X11R6 \ | |
6928 | /usr/local/include/X11R5 \ | |
6929 | /usr/local/include/X11R4 \ | |
6930 | \ | |
6931 | /usr/X386/include \ | |
6932 | /usr/x386/include \ | |
6933 | /usr/XFree86/include/X11 \ | |
6934 | \ | |
6935 | /usr/include \ | |
6936 | /usr/local/include \ | |
6937 | /usr/unsupported/include \ | |
6938 | /usr/athena/include \ | |
6939 | /usr/local/x11r5/include \ | |
6940 | /usr/lpp/Xamples/include \ | |
6941 | \ | |
6942 | /usr/openwin/include \ | |
6943 | /usr/openwin/share/include \ | |
6944 | ; \ | |
6945 | do | |
6946 | if test -r "$ac_dir/$x_direct_test_include"; then | |
6947 | ac_x_includes=$ac_dir | |
6948 | break | |
6949 | fi | |
6950 | done | |
6951 | fi | |
6952 | rm -f conftest* | |
6953 | fi # $ac_x_includes = NO | |
6954 | ||
6955 | if test "$ac_x_libraries" = NO; then | |
6956 | # Check for the libraries. | |
6957 | ||
6958 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
6959 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
6960 | ||
6961 | # See if we find them without any special options. | |
6962 | # Don't add to $LIBS permanently. | |
6963 | ac_save_LIBS="$LIBS" | |
6964 | LIBS="-l$x_direct_test_library $LIBS" | |
6965 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 6966 | #line 6967 "configure" |
7750247f KB |
6967 | #include "confdefs.h" |
6968 | ||
6969 | int main() { | |
6970 | ${x_direct_test_function}() | |
6971 | ; return 0; } | |
6972 | EOF | |
80d895cd | 6973 | if { (eval echo configure:6974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7750247f KB |
6974 | rm -rf conftest* |
6975 | LIBS="$ac_save_LIBS" | |
6976 | # We can link X programs with no special library path. | |
6977 | ac_x_libraries= | |
6978 | else | |
6979 | echo "configure: failed program was:" >&5 | |
6980 | cat conftest.$ac_ext >&5 | |
6981 | rm -rf conftest* | |
6982 | LIBS="$ac_save_LIBS" | |
6983 | # First see if replacing the include by lib works. | |
6984 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
6985 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
6986 | /usr/X11/lib \ | |
6987 | /usr/X11R6/lib \ | |
6988 | /usr/X11R5/lib \ | |
6989 | /usr/X11R4/lib \ | |
6990 | \ | |
6991 | /usr/lib/X11 \ | |
6992 | /usr/lib/X11R6 \ | |
6993 | /usr/lib/X11R5 \ | |
6994 | /usr/lib/X11R4 \ | |
6995 | \ | |
6996 | /usr/local/X11/lib \ | |
6997 | /usr/local/X11R6/lib \ | |
6998 | /usr/local/X11R5/lib \ | |
6999 | /usr/local/X11R4/lib \ | |
7000 | \ | |
7001 | /usr/local/lib/X11 \ | |
7002 | /usr/local/lib/X11R6 \ | |
7003 | /usr/local/lib/X11R5 \ | |
7004 | /usr/local/lib/X11R4 \ | |
7005 | \ | |
7006 | /usr/X386/lib \ | |
7007 | /usr/x386/lib \ | |
7008 | /usr/XFree86/lib/X11 \ | |
7009 | \ | |
7010 | /usr/lib \ | |
7011 | /usr/local/lib \ | |
7012 | /usr/unsupported/lib \ | |
7013 | /usr/athena/lib \ | |
7014 | /usr/local/x11r5/lib \ | |
7015 | /usr/lpp/Xamples/lib \ | |
7016 | /lib/usr/lib/X11 \ | |
7017 | \ | |
7018 | /usr/openwin/lib \ | |
7019 | /usr/openwin/share/lib \ | |
7020 | ; \ | |
7021 | do | |
7022 | for ac_extension in a so sl; do | |
7023 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then | |
7024 | ac_x_libraries=$ac_dir | |
7025 | break 2 | |
7026 | fi | |
7027 | done | |
7028 | done | |
7029 | fi | |
7030 | rm -f conftest* | |
7031 | fi # $ac_x_libraries = NO | |
7032 | ||
7033 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then | |
7034 | # Didn't find X anywhere. Cache the known absence of X. | |
7035 | ac_cv_have_x="have_x=no" | |
7036 | else | |
7037 | # Record where we found X for the cache. | |
7038 | ac_cv_have_x="have_x=yes \ | |
7039 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
7040 | fi | |
7041 | fi | |
7042 | fi | |
7043 | eval "$ac_cv_have_x" | |
7044 | fi # $with_x != no | |
7045 | ||
7046 | if test "$have_x" != yes; then | |
7047 | echo "$ac_t""$have_x" 1>&6 | |
7048 | no_x=yes | |
7049 | else | |
7050 | # If each of the values was on the command line, it overrides each guess. | |
7051 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
7052 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
7053 | # Update the cache value to reflect the command line values. | |
7054 | ac_cv_have_x="have_x=yes \ | |
7055 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
7056 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 | |
7057 | fi | |
7058 | ||
7059 | if test "$no_x" = yes; then | |
7060 | # Not all programs may use this symbol, but it does not hurt to define it. | |
7061 | cat >> confdefs.h <<\EOF | |
7062 | #define X_DISPLAY_MISSING 1 | |
7063 | EOF | |
7064 | ||
7065 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
7066 | else | |
7067 | if test -n "$x_includes"; then | |
7068 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
7069 | fi | |
7070 | ||
7071 | # It would also be nice to do this for all -L options, not just this one. | |
7072 | if test -n "$x_libraries"; then | |
7073 | X_LIBS="$X_LIBS -L$x_libraries" | |
7074 | # For Solaris; some versions of Sun CC require a space after -R and | |
7075 | # others require no space. Words are not sufficient . . . . | |
7076 | case "`(uname -sr) 2>/dev/null`" in | |
7077 | "SunOS 5"*) | |
7078 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | |
80d895cd | 7079 | echo "configure:7080: checking whether -R must be followed by a space" >&5 |
7750247f KB |
7080 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
7081 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 7082 | #line 7083 "configure" |
7750247f KB |
7083 | #include "confdefs.h" |
7084 | ||
7085 | int main() { | |
7086 | ||
7087 | ; return 0; } | |
7088 | EOF | |
80d895cd | 7089 | if { (eval echo configure:7090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7750247f KB |
7090 | rm -rf conftest* |
7091 | ac_R_nospace=yes | |
7092 | else | |
7093 | echo "configure: failed program was:" >&5 | |
7094 | cat conftest.$ac_ext >&5 | |
7095 | rm -rf conftest* | |
7096 | ac_R_nospace=no | |
7097 | fi | |
7098 | rm -f conftest* | |
7099 | if test $ac_R_nospace = yes; then | |
7100 | echo "$ac_t""no" 1>&6 | |
7101 | X_LIBS="$X_LIBS -R$x_libraries" | |
7102 | else | |
7103 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
7104 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 7105 | #line 7106 "configure" |
7750247f KB |
7106 | #include "confdefs.h" |
7107 | ||
7108 | int main() { | |
7109 | ||
7110 | ; return 0; } | |
7111 | EOF | |
80d895cd | 7112 | if { (eval echo configure:7113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7750247f KB |
7113 | rm -rf conftest* |
7114 | ac_R_space=yes | |
7115 | else | |
7116 | echo "configure: failed program was:" >&5 | |
7117 | cat conftest.$ac_ext >&5 | |
7118 | rm -rf conftest* | |
7119 | ac_R_space=no | |
7120 | fi | |
7121 | rm -f conftest* | |
7122 | if test $ac_R_space = yes; then | |
7123 | echo "$ac_t""yes" 1>&6 | |
7124 | X_LIBS="$X_LIBS -R $x_libraries" | |
7125 | else | |
7126 | echo "$ac_t""neither works" 1>&6 | |
7127 | fi | |
7128 | fi | |
7129 | LIBS="$ac_xsave_LIBS" | |
7130 | esac | |
7131 | fi | |
7132 | ||
7133 | # Check for system-dependent libraries X programs must link with. | |
7134 | # Do this before checking for the system-independent R6 libraries | |
7135 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
7136 | ||
7137 | if test "$ISC" = yes; then | |
7138 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
7139 | else | |
7140 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | |
7141 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
7142 | # the Alpha needs dnet_stub (dnet does not exist). | |
7143 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
80d895cd | 7144 | echo "configure:7145: checking for dnet_ntoa in -ldnet" >&5 |
7750247f KB |
7145 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
7146 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7147 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7148 | else | |
7149 | ac_save_LIBS="$LIBS" | |
7150 | LIBS="-ldnet $LIBS" | |
7151 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 7152 | #line 7153 "configure" |
7750247f KB |
7153 | #include "confdefs.h" |
7154 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7155 | /* We use char because int might match the return type of a gcc2 | |
7156 | builtin and then its argument prototype would still apply. */ | |
7157 | char dnet_ntoa(); | |
7158 | ||
7159 | int main() { | |
7160 | dnet_ntoa() | |
7161 | ; return 0; } | |
7162 | EOF | |
80d895cd | 7163 | if { (eval echo configure:7164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7750247f KB |
7164 | rm -rf conftest* |
7165 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7166 | else | |
7167 | echo "configure: failed program was:" >&5 | |
7168 | cat conftest.$ac_ext >&5 | |
7169 | rm -rf conftest* | |
7170 | eval "ac_cv_lib_$ac_lib_var=no" | |
7171 | fi | |
7172 | rm -f conftest* | |
7173 | LIBS="$ac_save_LIBS" | |
7174 | ||
7175 | fi | |
7176 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7177 | echo "$ac_t""yes" 1>&6 | |
7178 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
7179 | else | |
7180 | echo "$ac_t""no" 1>&6 | |
7181 | fi | |
7182 | ||
7183 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
7184 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | |
80d895cd | 7185 | echo "configure:7186: checking for dnet_ntoa in -ldnet_stub" >&5 |
7750247f KB |
7186 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
7187 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7188 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7189 | else | |
7190 | ac_save_LIBS="$LIBS" | |
7191 | LIBS="-ldnet_stub $LIBS" | |
7192 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 7193 | #line 7194 "configure" |
7750247f KB |
7194 | #include "confdefs.h" |
7195 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7196 | /* We use char because int might match the return type of a gcc2 | |
7197 | builtin and then its argument prototype would still apply. */ | |
7198 | char dnet_ntoa(); | |
7199 | ||
7200 | int main() { | |
7201 | dnet_ntoa() | |
7202 | ; return 0; } | |
7203 | EOF | |
80d895cd | 7204 | if { (eval echo configure:7205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7750247f KB |
7205 | rm -rf conftest* |
7206 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7207 | else | |
7208 | echo "configure: failed program was:" >&5 | |
7209 | cat conftest.$ac_ext >&5 | |
7210 | rm -rf conftest* | |
7211 | eval "ac_cv_lib_$ac_lib_var=no" | |
7212 | fi | |
7213 | rm -f conftest* | |
7214 | LIBS="$ac_save_LIBS" | |
7215 | ||
7216 | fi | |
7217 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7218 | echo "$ac_t""yes" 1>&6 | |
7219 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
7220 | else | |
7221 | echo "$ac_t""no" 1>&6 | |
7222 | fi | |
7223 | ||
7224 | fi | |
7225 | ||
7226 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
7227 | # to get the SysV transport functions. | |
7228 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | |
7229 | # needs -lnsl. | |
7230 | # The nsl library prevents programs from opening the X display | |
7231 | # on Irix 5.2, according to dickey@clark.net. | |
7232 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
80d895cd | 7233 | echo "configure:7234: checking for gethostbyname" >&5 |
7750247f KB |
7234 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
7235 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7236 | else | |
7237 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 7238 | #line 7239 "configure" |
7750247f KB |
7239 | #include "confdefs.h" |
7240 | /* System header to define __stub macros and hopefully few prototypes, | |
7241 | which can conflict with char gethostbyname(); below. */ | |
7242 | #include <assert.h> | |
7243 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7244 | /* We use char because int might match the return type of a gcc2 | |
7245 | builtin and then its argument prototype would still apply. */ | |
7246 | char gethostbyname(); | |
7247 | ||
7248 | int main() { | |
7249 | ||
7250 | /* The GNU C library defines this for functions which it implements | |
7251 | to always fail with ENOSYS. Some functions are actually named | |
7252 | something starting with __ and the normal name is an alias. */ | |
7253 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
7254 | choke me | |
7255 | #else | |
80d895cd | 7256 | gethostbyname(); |
7750247f KB |
7257 | #endif |
7258 | ||
7259 | ; return 0; } | |
7260 | EOF | |
80d895cd | 7261 | if { (eval echo configure:7262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7750247f KB |
7262 | rm -rf conftest* |
7263 | eval "ac_cv_func_gethostbyname=yes" | |
7264 | else | |
7265 | echo "configure: failed program was:" >&5 | |
7266 | cat conftest.$ac_ext >&5 | |
7267 | rm -rf conftest* | |
7268 | eval "ac_cv_func_gethostbyname=no" | |
7269 | fi | |
7270 | rm -f conftest* | |
7271 | fi | |
7272 | ||
7273 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
7274 | echo "$ac_t""yes" 1>&6 | |
7275 | : | |
7276 | else | |
7277 | echo "$ac_t""no" 1>&6 | |
7278 | fi | |
7279 | ||
7280 | if test $ac_cv_func_gethostbyname = no; then | |
7281 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
80d895cd | 7282 | echo "configure:7283: checking for gethostbyname in -lnsl" >&5 |
7750247f KB |
7283 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
7284 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7285 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7286 | else | |
7287 | ac_save_LIBS="$LIBS" | |
7288 | LIBS="-lnsl $LIBS" | |
7289 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 7290 | #line 7291 "configure" |
7750247f KB |
7291 | #include "confdefs.h" |
7292 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7293 | /* We use char because int might match the return type of a gcc2 | |
7294 | builtin and then its argument prototype would still apply. */ | |
7295 | char gethostbyname(); | |
7296 | ||
7297 | int main() { | |
7298 | gethostbyname() | |
7299 | ; return 0; } | |
7300 | EOF | |
80d895cd | 7301 | if { (eval echo configure:7302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7750247f KB |
7302 | rm -rf conftest* |
7303 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7304 | else | |
7305 | echo "configure: failed program was:" >&5 | |
7306 | cat conftest.$ac_ext >&5 | |
7307 | rm -rf conftest* | |
7308 | eval "ac_cv_lib_$ac_lib_var=no" | |
7309 | fi | |
7310 | rm -f conftest* | |
7311 | LIBS="$ac_save_LIBS" | |
7312 | ||
7313 | fi | |
7314 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7315 | echo "$ac_t""yes" 1>&6 | |
7316 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
7317 | else | |
7318 | echo "$ac_t""no" 1>&6 | |
7319 | fi | |
7320 | ||
7321 | fi | |
7322 | ||
7323 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
7324 | # socket/setsockopt and other routines are undefined under SCO ODT | |
7325 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
7326 | # on later versions), says simon@lia.di.epfl.ch: it contains | |
7327 | # gethostby* variants that don't use the nameserver (or something). | |
7328 | # -lsocket must be given before -lnsl if both are needed. | |
7329 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
7330 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
80d895cd | 7331 | echo "configure:7332: checking for connect" >&5 |
7750247f KB |
7332 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
7333 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7334 | else | |
7335 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 7336 | #line 7337 "configure" |
7750247f KB |
7337 | #include "confdefs.h" |
7338 | /* System header to define __stub macros and hopefully few prototypes, | |
7339 | which can conflict with char connect(); below. */ | |
7340 | #include <assert.h> | |
7341 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7342 | /* We use char because int might match the return type of a gcc2 | |
7343 | builtin and then its argument prototype would still apply. */ | |
7344 | char connect(); | |
7345 | ||
7346 | int main() { | |
7347 | ||
7348 | /* The GNU C library defines this for functions which it implements | |
7349 | to always fail with ENOSYS. Some functions are actually named | |
7350 | something starting with __ and the normal name is an alias. */ | |
7351 | #if defined (__stub_connect) || defined (__stub___connect) | |
7352 | choke me | |
7353 | #else | |
80d895cd | 7354 | connect(); |
7750247f KB |
7355 | #endif |
7356 | ||
7357 | ; return 0; } | |
7358 | EOF | |
80d895cd | 7359 | if { (eval echo configure:7360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7750247f KB |
7360 | rm -rf conftest* |
7361 | eval "ac_cv_func_connect=yes" | |
7362 | else | |
7363 | echo "configure: failed program was:" >&5 | |
7364 | cat conftest.$ac_ext >&5 | |
7365 | rm -rf conftest* | |
7366 | eval "ac_cv_func_connect=no" | |
7367 | fi | |
7368 | rm -f conftest* | |
7369 | fi | |
7370 | ||
7371 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
7372 | echo "$ac_t""yes" 1>&6 | |
7373 | : | |
7374 | else | |
7375 | echo "$ac_t""no" 1>&6 | |
7376 | fi | |
7377 | ||
7378 | if test $ac_cv_func_connect = no; then | |
7379 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 | |
80d895cd | 7380 | echo "configure:7381: checking for connect in -lsocket" >&5 |
7750247f KB |
7381 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
7382 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7383 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7384 | else | |
7385 | ac_save_LIBS="$LIBS" | |
7386 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
7387 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 7388 | #line 7389 "configure" |
7750247f KB |
7389 | #include "confdefs.h" |
7390 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7391 | /* We use char because int might match the return type of a gcc2 | |
7392 | builtin and then its argument prototype would still apply. */ | |
7393 | char connect(); | |
7394 | ||
7395 | int main() { | |
7396 | connect() | |
7397 | ; return 0; } | |
7398 | EOF | |
80d895cd | 7399 | if { (eval echo configure:7400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7750247f KB |
7400 | rm -rf conftest* |
7401 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7402 | else | |
7403 | echo "configure: failed program was:" >&5 | |
7404 | cat conftest.$ac_ext >&5 | |
7405 | rm -rf conftest* | |
7406 | eval "ac_cv_lib_$ac_lib_var=no" | |
7407 | fi | |
7408 | rm -f conftest* | |
7409 | LIBS="$ac_save_LIBS" | |
7410 | ||
7411 | fi | |
7412 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7413 | echo "$ac_t""yes" 1>&6 | |
7414 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
7415 | else | |
7416 | echo "$ac_t""no" 1>&6 | |
7417 | fi | |
7418 | ||
7419 | fi | |
7420 | ||
7421 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. | |
7422 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
80d895cd | 7423 | echo "configure:7424: checking for remove" >&5 |
7750247f KB |
7424 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
7425 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7426 | else | |
7427 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 7428 | #line 7429 "configure" |
7750247f KB |
7429 | #include "confdefs.h" |
7430 | /* System header to define __stub macros and hopefully few prototypes, | |
7431 | which can conflict with char remove(); below. */ | |
7432 | #include <assert.h> | |
7433 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7434 | /* We use char because int might match the return type of a gcc2 | |
7435 | builtin and then its argument prototype would still apply. */ | |
7436 | char remove(); | |
7437 | ||
7438 | int main() { | |
7439 | ||
7440 | /* The GNU C library defines this for functions which it implements | |
7441 | to always fail with ENOSYS. Some functions are actually named | |
7442 | something starting with __ and the normal name is an alias. */ | |
7443 | #if defined (__stub_remove) || defined (__stub___remove) | |
7444 | choke me | |
7445 | #else | |
80d895cd | 7446 | remove(); |
7750247f KB |
7447 | #endif |
7448 | ||
7449 | ; return 0; } | |
7450 | EOF | |
5586805b | 7451 | if { (eval echo configure:7452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7750247f KB |
7452 | rm -rf conftest* |
7453 | eval "ac_cv_func_remove=yes" | |
7454 | else | |
7455 | echo "configure: failed program was:" >&5 | |
7456 | cat conftest.$ac_ext >&5 | |
7457 | rm -rf conftest* | |
7458 | eval "ac_cv_func_remove=no" | |
7459 | fi | |
7460 | rm -f conftest* | |
7461 | fi | |
7462 | ||
7463 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
7464 | echo "$ac_t""yes" 1>&6 | |
7465 | : | |
7466 | else | |
7467 | echo "$ac_t""no" 1>&6 | |
7468 | fi | |
7469 | ||
7470 | if test $ac_cv_func_remove = no; then | |
7471 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | |
5586805b | 7472 | echo "configure:7473: checking for remove in -lposix" >&5 |
7750247f KB |
7473 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
7474 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7475 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7476 | else | |
7477 | ac_save_LIBS="$LIBS" | |
7478 | LIBS="-lposix $LIBS" | |
7479 | cat > conftest.$ac_ext <<EOF | |
5586805b | 7480 | #line 7481 "configure" |
7750247f KB |
7481 | #include "confdefs.h" |
7482 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7483 | /* We use char because int might match the return type of a gcc2 | |
7484 | builtin and then its argument prototype would still apply. */ | |
7485 | char remove(); | |
7486 | ||
7487 | int main() { | |
7488 | remove() | |
7489 | ; return 0; } | |
7490 | EOF | |
5586805b | 7491 | if { (eval echo configure:7492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7750247f KB |
7492 | rm -rf conftest* |
7493 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7494 | else | |
7495 | echo "configure: failed program was:" >&5 | |
7496 | cat conftest.$ac_ext >&5 | |
7497 | rm -rf conftest* | |
7498 | eval "ac_cv_lib_$ac_lib_var=no" | |
7499 | fi | |
7500 | rm -f conftest* | |
7501 | LIBS="$ac_save_LIBS" | |
7502 | ||
7503 | fi | |
7504 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7505 | echo "$ac_t""yes" 1>&6 | |
7506 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
7507 | else | |
7508 | echo "$ac_t""no" 1>&6 | |
7509 | fi | |
7510 | ||
7511 | fi | |
7512 | ||
7513 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
7514 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 | |
5586805b | 7515 | echo "configure:7516: checking for shmat" >&5 |
7750247f KB |
7516 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
7517 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7518 | else | |
7519 | cat > conftest.$ac_ext <<EOF | |
5586805b | 7520 | #line 7521 "configure" |
7750247f KB |
7521 | #include "confdefs.h" |
7522 | /* System header to define __stub macros and hopefully few prototypes, | |
7523 | which can conflict with char shmat(); below. */ | |
7524 | #include <assert.h> | |
7525 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7526 | /* We use char because int might match the return type of a gcc2 | |
7527 | builtin and then its argument prototype would still apply. */ | |
7528 | char shmat(); | |
7529 | ||
7530 | int main() { | |
7531 | ||
7532 | /* The GNU C library defines this for functions which it implements | |
7533 | to always fail with ENOSYS. Some functions are actually named | |
7534 | something starting with __ and the normal name is an alias. */ | |
7535 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
7536 | choke me | |
7537 | #else | |
80d895cd | 7538 | shmat(); |
7750247f KB |
7539 | #endif |
7540 | ||
7541 | ; return 0; } | |
7542 | EOF | |
80d895cd | 7543 | if { (eval echo configure:7544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7750247f KB |
7544 | rm -rf conftest* |
7545 | eval "ac_cv_func_shmat=yes" | |
7546 | else | |
7547 | echo "configure: failed program was:" >&5 | |
7548 | cat conftest.$ac_ext >&5 | |
7549 | rm -rf conftest* | |
7550 | eval "ac_cv_func_shmat=no" | |
7551 | fi | |
7552 | rm -f conftest* | |
7553 | fi | |
7554 | ||
7555 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
7556 | echo "$ac_t""yes" 1>&6 | |
7557 | : | |
7558 | else | |
7559 | echo "$ac_t""no" 1>&6 | |
7560 | fi | |
7561 | ||
7562 | if test $ac_cv_func_shmat = no; then | |
7563 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | |
80d895cd | 7564 | echo "configure:7565: checking for shmat in -lipc" >&5 |
7750247f KB |
7565 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
7566 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7567 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7568 | else | |
7569 | ac_save_LIBS="$LIBS" | |
7570 | LIBS="-lipc $LIBS" | |
7571 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 7572 | #line 7573 "configure" |
7750247f KB |
7573 | #include "confdefs.h" |
7574 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7575 | /* We use char because int might match the return type of a gcc2 | |
7576 | builtin and then its argument prototype would still apply. */ | |
7577 | char shmat(); | |
7578 | ||
7579 | int main() { | |
7580 | shmat() | |
7581 | ; return 0; } | |
7582 | EOF | |
80d895cd | 7583 | if { (eval echo configure:7584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7750247f KB |
7584 | rm -rf conftest* |
7585 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7586 | else | |
7587 | echo "configure: failed program was:" >&5 | |
7588 | cat conftest.$ac_ext >&5 | |
7589 | rm -rf conftest* | |
7590 | eval "ac_cv_lib_$ac_lib_var=no" | |
7591 | fi | |
7592 | rm -f conftest* | |
7593 | LIBS="$ac_save_LIBS" | |
7594 | ||
7595 | fi | |
7596 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7597 | echo "$ac_t""yes" 1>&6 | |
7598 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
7599 | else | |
7600 | echo "$ac_t""no" 1>&6 | |
7601 | fi | |
7602 | ||
7603 | fi | |
7604 | fi | |
7605 | ||
7606 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
7607 | ac_save_LDFLAGS="$LDFLAGS" | |
7608 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
7609 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
7610 | # check for ICE first), but we must link in the order -lSM -lICE or | |
7611 | # we get undefined symbols. So assume we have SM if we have ICE. | |
7612 | # These have to be linked with before -lX11, unlike the other | |
7613 | # libraries we check for below, so use a different variable. | |
7614 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | |
7615 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
80d895cd | 7616 | echo "configure:7617: checking for IceConnectionNumber in -lICE" >&5 |
7750247f KB |
7617 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
7618 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7619 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7620 | else | |
7621 | ac_save_LIBS="$LIBS" | |
9c884972 | 7622 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
7750247f | 7623 | cat > conftest.$ac_ext <<EOF |
80d895cd | 7624 | #line 7625 "configure" |
7750247f KB |
7625 | #include "confdefs.h" |
7626 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7627 | /* We use char because int might match the return type of a gcc2 | |
7628 | builtin and then its argument prototype would still apply. */ | |
7629 | char IceConnectionNumber(); | |
7630 | ||
7631 | int main() { | |
7632 | IceConnectionNumber() | |
7633 | ; return 0; } | |
7634 | EOF | |
80d895cd | 7635 | if { (eval echo configure:7636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7750247f KB |
7636 | rm -rf conftest* |
7637 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7638 | else | |
7639 | echo "configure: failed program was:" >&5 | |
7640 | cat conftest.$ac_ext >&5 | |
7641 | rm -rf conftest* | |
7642 | eval "ac_cv_lib_$ac_lib_var=no" | |
7643 | fi | |
7644 | rm -f conftest* | |
7645 | LIBS="$ac_save_LIBS" | |
7646 | ||
7647 | fi | |
7648 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7649 | echo "$ac_t""yes" 1>&6 | |
7650 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
7651 | else | |
7652 | echo "$ac_t""no" 1>&6 | |
7653 | fi | |
7654 | ||
7655 | LDFLAGS="$ac_save_LDFLAGS" | |
7656 | ||
7657 | fi | |
7658 | ||
7659 | ||
7660 | if test "$no_x" = "yes"; then | |
7661 | { echo "configure: error: X11 libraries not found" 1>&2; exit 1; } | |
7662 | fi | |
7663 | ||
7664 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
7665 | GUI_TK_LIBRARY="$X_LIBS" | |
7666 | ||
7667 | echo $ac_n "checking for Motif/Lesstif includes""... $ac_c" 1>&6 | |
80d895cd | 7668 | echo "configure:7669: checking for Motif/Lesstif includes" >&5 |
7750247f KB |
7669 | |
7670 | ac_find_includes= | |
7671 | for ac_dir in $SEARCH_INCLUDE; | |
7672 | do | |
7673 | if test -f "$ac_dir/Xm/Xm.h"; then | |
7674 | ac_find_includes=$ac_dir | |
7675 | break | |
7676 | fi | |
7677 | done | |
7678 | ||
7679 | if test "$ac_find_includes" != "" ; then | |
7680 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
7681 | else | |
7682 | echo "$ac_t""no" 1>&6 | |
7683 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
7684 | fi | |
7685 | ||
7686 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
80d895cd | 7687 | echo "configure:7688: checking for Motif/Lesstif library" >&5 |
7750247f KB |
7688 | |
7689 | ac_find_libraries= | |
7690 | for ac_dir in $SEARCH_LIB; | |
7691 | do | |
7692 | for ac_extension in a so sl; do | |
7693 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
7694 | ac_find_libraries=$ac_dir | |
7695 | break 2 | |
7696 | fi | |
7697 | done | |
7698 | done | |
7699 | ||
7700 | if test "$ac_find_libraries" != "" ; then | |
7701 | ||
7702 | ac_path_to_include=$ac_find_includes | |
7703 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
7704 | result=$? | |
7705 | if test $result = 0; then | |
7706 | ac_path_to_include="" | |
7707 | else | |
7708 | ac_path_to_include="-I$ac_find_includes" | |
7709 | fi | |
7710 | ||
7711 | ||
7712 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
7713 | result=$? | |
7714 | if test $result = 0; then | |
7715 | ac_path_to_link="" | |
7716 | else | |
7717 | ac_path_to_link="-L$ac_find_libraries" | |
7718 | fi | |
7719 | ||
7720 | ||
7721 | CHECK_LINK="$GUI_TK_LIBRARY $ac_path_to_link" | |
7722 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include" | |
7723 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
7724 | else | |
7725 | echo "$ac_t""no" 1>&6 | |
7726 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
7727 | fi | |
7728 | ||
7729 | echo $ac_n "checking for Xt library""... $ac_c" 1>&6 | |
80d895cd | 7730 | echo "configure:7731: checking for Xt library" >&5 |
7750247f KB |
7731 | |
7732 | ac_find_libraries= | |
7733 | for ac_dir in $SEARCH_LIB; | |
7734 | do | |
7735 | for ac_extension in a so sl; do | |
7736 | if test -f "$ac_dir/libXt.$ac_extension"; then | |
7737 | ac_find_libraries=$ac_dir | |
7738 | break 2 | |
7739 | fi | |
7740 | done | |
7741 | done | |
7742 | ||
7743 | if test "$ac_find_libraries" != "" ; then | |
7744 | ||
7745 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
7746 | result=$? | |
7747 | if test $result = 0; then | |
7748 | ac_path_to_link="" | |
7749 | else | |
7750 | ac_path_to_link="-L$ac_find_libraries" | |
7751 | fi | |
7752 | ||
7753 | CHECK_LINK="$GUI_TK_LIBRARY $ac_path_to_link" | |
7754 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
7755 | else | |
7756 | echo "$ac_t""no" 1>&6 | |
7757 | { echo "configure: error: please set LDFLAGS to contain the location of libXt" 1>&2; exit 1; } | |
7758 | fi | |
7759 | ||
7760 | XPM_LINK="" | |
7761 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
80d895cd | 7762 | echo "configure:7763: checking for Xpm library" >&5 |
7750247f KB |
7763 | |
7764 | ac_find_libraries= | |
7765 | for ac_dir in $SEARCH_LIB; | |
7766 | do | |
7767 | for ac_extension in a so sl; do | |
7768 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
7769 | ac_find_libraries=$ac_dir | |
7770 | break 2 | |
7771 | fi | |
7772 | done | |
7773 | done | |
7774 | ||
7775 | if test "$ac_find_libraries" != "" ; then | |
7776 | ||
7777 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
7778 | result=$? | |
7779 | if test $result = 0; then | |
7780 | ac_path_to_link="" | |
7781 | else | |
7782 | ac_path_to_link="-L$ac_find_libraries" | |
7783 | fi | |
7784 | ||
7785 | CHECK_LINK="$GUI_TK_LIBRARY $ac_path_to_link" | |
7786 | XPM_LINK="-lXpm " | |
7787 | cat >> confdefs.h <<\EOF | |
7788 | #define wxHAVE_LIB_XPM 1 | |
7789 | EOF | |
7790 | ||
7791 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
7792 | else | |
7793 | echo "$ac_t""no" 1>&6 | |
7794 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
7795 | fi | |
7796 | ||
7797 | GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXt -lX11 -ldl -lm" | |
7798 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" | |
7799 | TOOLKIT=MOTIF | |
7800 | ||
7750247f | 7801 | GUIHEADERS=MOTIF_HEADERS |
5586805b | 7802 | GUIOBJS=MOTIF_GUIOBJS |
7750247f KB |
7803 | COMMONOBJS=MOTIF_COMMONOBJS |
7804 | GENERICOBJS=MOTIF_GENERICOBJS | |
5586805b RR |
7805 | GUIDEPS=MOTIF_GUIDEPS |
7806 | COMMONDEPS=MOTIF_COMMONDEPS | |
7807 | GENERICDEPS=MOTIF_GENERICDEPS | |
7750247f KB |
7808 | UNIXOBJS=UNIXOBJS |
7809 | GUIDIST=MOTIF_DIST | |
7810 | fi | |
7811 | ||
7812 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "A-Z" "a-z"` | |
7813 | ||
7814 | TOOLKIT_DEF="-D__WX${TOOLKIT}__" | |
7815 | ||
7816 | WX_LIBRARY="wx_${TOOLKIT_DIR}" | |
7817 | ||
7818 | WX_LIBRARY_NAME="libwx_${TOOLKIT_DIR}.la" | |
7819 | ||
7820 | WX_LIBRARY_NAME_STATIC="libwx_${TOOLKIT_DIR}.a" | |
7821 | ||
7822 | WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
7823 | ||
7824 | WX_LIBRARY_LINK1="libwx_${TOOLKIT_DIR}-${WX_RELEASE}.so.${WX_CURRENT}" | |
7825 | WX_LIBRARY_LINK2="libwx_${TOOLKIT_DIR}-${WX_RELEASE}.so" | |
7826 | WX_LIBRARY_LINK3="libwx_${TOOLKIT_DIR}.so" | |
7827 | ||
7828 | SHARED_LD= | |
7829 | PIC_FLAG= | |
7830 | WX_CREATE_LINKS= | |
7831 | ||
7832 | if test "$wxUSE_SHARED" = "yes"; then | |
7833 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
7834 | ||
7835 | case "${host}" in | |
7836 | *-hp-hpux* ) | |
7837 | WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl" | |
7838 | SHARED_LD="${CXX} -b -o" | |
7839 | PIC_FLAG="+Z" | |
7840 | ;; | |
7841 | *-*-linux* ) | |
7842 | SHARED_LD="${CC} -shared -o" | |
7843 | PIC_FLAG="-fPIC" | |
7844 | WX_CREATE_INSTALLED_LINKS="CREATE_INSTALLED_LINKS" | |
7845 | WX_CREATE_LINKS="CREATE_LINKS" | |
7846 | ;; | |
7847 | *-*-irix5* | *-*-irix6* ) | |
9c884972 RR |
7848 | if test "$GCC" = yes ; then |
7849 | SHARED_LD="${CC} -shared -o" | |
7850 | PIC_FLAG="-fPIC" | |
7851 | else | |
7852 | SHARED_LD="${CXX} -shared -o" | |
7853 | fi | |
7750247f KB |
7854 | WX_CREATE_INSTALLED_LINKS="CREATE_INSTALLED_LINKS" |
7855 | WX_CREATE_LINKS="CREATE_LINKS" | |
7856 | ;; | |
7857 | *-*-solaris2* ) | |
9c884972 RR |
7858 | if test "$GCC" = yes ; then |
7859 | SHARED_LD="${CC} -shared -o" | |
7860 | PIC_FLAG="-fPIC" | |
7861 | else | |
7862 | SHARED_LD="${CXX} -G -o" | |
7863 | PIC_FLAG="PIC" | |
7864 | fi | |
7750247f KB |
7865 | WX_CREATE_INSTALLED_LINKS="CREATE_INSTALLED_LINKS" |
7866 | WX_CREATE_LINKS="CREATE_LINKS" | |
7867 | ;; | |
7868 | *-*-sunos4* ) | |
9c884972 | 7869 | SHARED_LD="${CC} -shared -o" |
7750247f KB |
7870 | PIC_FLAG="-fPIC" |
7871 | WX_CREATE_INSTALLED_LINKS="CREATE_INSTALLED_LINKS" | |
7872 | WX_CREATE_LINKS="CREATE_LINKS" | |
7873 | ;; | |
7874 | *-*-freebsd* | *-*-netbsd*) | |
9c884972 | 7875 | SHARED_LD="${CC} -shared -o" |
7750247f KB |
7876 | PIC_FLAG="-fPIC" |
7877 | WX_CREATE_INSTALLED_LINKS="CREATE_INSTALLED_LINKS" | |
7878 | WX_CREATE_LINKS="CREATE_LINKS" | |
7879 | ;; | |
7880 | *-*-osf* ) | |
7881 | SHARED_LD="${CXX} -shared -o" | |
7882 | PIC_FLAG="-fPIC" | |
7883 | WX_CREATE_INSTALLED_LINKS="CREATE_INSTALLED_LINKS" | |
7884 | WX_CREATE_LINKS="CREATE_LINKS" | |
7885 | ;; | |
7886 | *-*-dgux5* ) | |
7887 | SHARED_LD="${CXX} -shared -o" | |
7888 | PIC_FLAG="-fPIC" | |
7889 | WX_CREATE_INSTALLED_LINKS="CREATE_INSTALLED_LINKS" | |
7890 | WX_CREATE_LINKS="CREATE_LINKS" | |
7891 | ;; | |
7892 | *-*-sysv5* ) | |
9c884972 | 7893 | SHARED_LD="${CC} -shared -o" |
7750247f KB |
7894 | PIC_FLAG="-fPIC" |
7895 | WX_CREATE_INSTALLED_LINKS="CREATE_INSTALLED_LINKS" | |
7896 | WX_CREATE_LINKS="CREATE_LINKS" | |
7897 | ;; | |
7898 | *-*-aix* ) | |
7899 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
7900 | ;; | |
7901 | *-*-cygwin32* ) | |
7902 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
7903 | ;; | |
7904 | *-*-mingw32* ) | |
7905 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
7906 | ;; | |
7907 | *-pc-os2_emx ) | |
7908 | ;; | |
7909 | *) | |
7910 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } | |
7911 | esac | |
7912 | ||
7913 | else | |
7914 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
7915 | fi | |
7916 | ||
7917 | ||
7918 | for ac_hdr in strings.h | |
7919 | do | |
7920 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
7921 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
80d895cd | 7922 | echo "configure:7923: checking for $ac_hdr" >&5 |
7750247f KB |
7923 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7924 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7925 | else | |
7926 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 7927 | #line 7928 "configure" |
7750247f KB |
7928 | #include "confdefs.h" |
7929 | #include <$ac_hdr> | |
7930 | EOF | |
7931 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
80d895cd | 7932 | { (eval echo configure:7933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9c884972 | 7933 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7750247f KB |
7934 | if test -z "$ac_err"; then |
7935 | rm -rf conftest* | |
7936 | eval "ac_cv_header_$ac_safe=yes" | |
7937 | else | |
7938 | echo "$ac_err" >&5 | |
7939 | echo "configure: failed program was:" >&5 | |
7940 | cat conftest.$ac_ext >&5 | |
7941 | rm -rf conftest* | |
7942 | eval "ac_cv_header_$ac_safe=no" | |
7943 | fi | |
7944 | rm -f conftest* | |
7945 | fi | |
7946 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
7947 | echo "$ac_t""yes" 1>&6 | |
7948 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
7949 | cat >> confdefs.h <<EOF | |
7950 | #define $ac_tr_hdr 1 | |
7951 | EOF | |
7952 | ||
7953 | else | |
7954 | echo "$ac_t""no" 1>&6 | |
7955 | fi | |
7956 | done | |
7957 | ||
7958 | for ac_hdr in unistd.h | |
7959 | do | |
7960 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
7961 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
80d895cd | 7962 | echo "configure:7963: checking for $ac_hdr" >&5 |
7750247f KB |
7963 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7964 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7965 | else | |
7966 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 7967 | #line 7968 "configure" |
7750247f KB |
7968 | #include "confdefs.h" |
7969 | #include <$ac_hdr> | |
7970 | EOF | |
7971 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
80d895cd | 7972 | { (eval echo configure:7973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9c884972 | 7973 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7750247f KB |
7974 | if test -z "$ac_err"; then |
7975 | rm -rf conftest* | |
7976 | eval "ac_cv_header_$ac_safe=yes" | |
7977 | else | |
7978 | echo "$ac_err" >&5 | |
7979 | echo "configure: failed program was:" >&5 | |
7980 | cat conftest.$ac_ext >&5 | |
7981 | rm -rf conftest* | |
7982 | eval "ac_cv_header_$ac_safe=no" | |
7983 | fi | |
7984 | rm -f conftest* | |
7985 | fi | |
7986 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
7987 | echo "$ac_t""yes" 1>&6 | |
7988 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
7989 | cat >> confdefs.h <<EOF | |
7990 | #define $ac_tr_hdr 1 | |
7991 | EOF | |
7992 | ||
7993 | else | |
7994 | echo "$ac_t""no" 1>&6 | |
7995 | fi | |
7996 | done | |
7997 | ||
7998 | for ac_hdr in wchar.h | |
7999 | do | |
8000 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8001 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
80d895cd | 8002 | echo "configure:8003: checking for $ac_hdr" >&5 |
7750247f KB |
8003 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8004 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8005 | else | |
8006 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 8007 | #line 8008 "configure" |
7750247f KB |
8008 | #include "confdefs.h" |
8009 | #include <$ac_hdr> | |
8010 | EOF | |
8011 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
80d895cd | 8012 | { (eval echo configure:8013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9c884972 | 8013 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7750247f KB |
8014 | if test -z "$ac_err"; then |
8015 | rm -rf conftest* | |
8016 | eval "ac_cv_header_$ac_safe=yes" | |
8017 | else | |
8018 | echo "$ac_err" >&5 | |
8019 | echo "configure: failed program was:" >&5 | |
8020 | cat conftest.$ac_ext >&5 | |
8021 | rm -rf conftest* | |
8022 | eval "ac_cv_header_$ac_safe=no" | |
8023 | fi | |
8024 | rm -f conftest* | |
8025 | fi | |
8026 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8027 | echo "$ac_t""yes" 1>&6 | |
8028 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8029 | cat >> confdefs.h <<EOF | |
8030 | #define $ac_tr_hdr 1 | |
8031 | EOF | |
8032 | ||
8033 | else | |
8034 | echo "$ac_t""no" 1>&6 | |
8035 | fi | |
8036 | done | |
8037 | ||
8038 | for ac_hdr in wcstr.h | |
8039 | do | |
8040 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8041 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
80d895cd | 8042 | echo "configure:8043: checking for $ac_hdr" >&5 |
7750247f KB |
8043 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8044 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8045 | else | |
8046 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 8047 | #line 8048 "configure" |
7750247f KB |
8048 | #include "confdefs.h" |
8049 | #include <$ac_hdr> | |
8050 | EOF | |
8051 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
80d895cd | 8052 | { (eval echo configure:8053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9c884972 | 8053 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7750247f KB |
8054 | if test -z "$ac_err"; then |
8055 | rm -rf conftest* | |
8056 | eval "ac_cv_header_$ac_safe=yes" | |
8057 | else | |
8058 | echo "$ac_err" >&5 | |
8059 | echo "configure: failed program was:" >&5 | |
8060 | cat conftest.$ac_ext >&5 | |
8061 | rm -rf conftest* | |
8062 | eval "ac_cv_header_$ac_safe=no" | |
8063 | fi | |
8064 | rm -f conftest* | |
8065 | fi | |
8066 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8067 | echo "$ac_t""yes" 1>&6 | |
8068 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8069 | cat >> confdefs.h <<EOF | |
8070 | #define $ac_tr_hdr 1 | |
8071 | EOF | |
8072 | ||
8073 | else | |
8074 | echo "$ac_t""no" 1>&6 | |
8075 | fi | |
8076 | done | |
8077 | ||
8078 | for ac_hdr in fnmatch.h | |
8079 | do | |
8080 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8081 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
80d895cd | 8082 | echo "configure:8083: checking for $ac_hdr" >&5 |
7750247f KB |
8083 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8084 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8085 | else | |
8086 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 8087 | #line 8088 "configure" |
7750247f KB |
8088 | #include "confdefs.h" |
8089 | #include <$ac_hdr> | |
8090 | EOF | |
8091 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
80d895cd | 8092 | { (eval echo configure:8093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9c884972 | 8093 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7750247f KB |
8094 | if test -z "$ac_err"; then |
8095 | rm -rf conftest* | |
8096 | eval "ac_cv_header_$ac_safe=yes" | |
8097 | else | |
8098 | echo "$ac_err" >&5 | |
8099 | echo "configure: failed program was:" >&5 | |
8100 | cat conftest.$ac_ext >&5 | |
8101 | rm -rf conftest* | |
8102 | eval "ac_cv_header_$ac_safe=no" | |
8103 | fi | |
8104 | rm -f conftest* | |
8105 | fi | |
8106 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8107 | echo "$ac_t""yes" 1>&6 | |
8108 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8109 | cat >> confdefs.h <<EOF | |
8110 | #define $ac_tr_hdr 1 | |
8111 | EOF | |
8112 | ||
8113 | else | |
8114 | echo "$ac_t""no" 1>&6 | |
8115 | fi | |
8116 | done | |
8117 | ||
8118 | for ac_hdr in X11/XKBlib.h | |
8119 | do | |
8120 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8121 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
80d895cd | 8122 | echo "configure:8123: checking for $ac_hdr" >&5 |
7750247f KB |
8123 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8124 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8125 | else | |
8126 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 8127 | #line 8128 "configure" |
7750247f KB |
8128 | #include "confdefs.h" |
8129 | #include <$ac_hdr> | |
8130 | EOF | |
8131 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
80d895cd | 8132 | { (eval echo configure:8133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9c884972 | 8133 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7750247f KB |
8134 | if test -z "$ac_err"; then |
8135 | rm -rf conftest* | |
8136 | eval "ac_cv_header_$ac_safe=yes" | |
8137 | else | |
8138 | echo "$ac_err" >&5 | |
8139 | echo "configure: failed program was:" >&5 | |
8140 | cat conftest.$ac_ext >&5 | |
8141 | rm -rf conftest* | |
8142 | eval "ac_cv_header_$ac_safe=no" | |
8143 | fi | |
8144 | rm -f conftest* | |
8145 | fi | |
8146 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8147 | echo "$ac_t""yes" 1>&6 | |
8148 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8149 | cat >> confdefs.h <<EOF | |
8150 | #define $ac_tr_hdr 1 | |
8151 | EOF | |
8152 | ||
8153 | else | |
8154 | echo "$ac_t""no" 1>&6 | |
8155 | fi | |
8156 | done | |
8157 | ||
8158 | ||
8159 | ||
8160 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
80d895cd | 8161 | echo "configure:8162: checking for ANSI C header files" >&5 |
7750247f KB |
8162 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
8163 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8164 | else | |
8165 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 8166 | #line 8167 "configure" |
7750247f KB |
8167 | #include "confdefs.h" |
8168 | #include <stdlib.h> | |
8169 | #include <stdarg.h> | |
8170 | #include <string.h> | |
8171 | #include <float.h> | |
8172 | EOF | |
8173 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
80d895cd | 8174 | { (eval echo configure:8175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9c884972 | 8175 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7750247f KB |
8176 | if test -z "$ac_err"; then |
8177 | rm -rf conftest* | |
8178 | ac_cv_header_stdc=yes | |
8179 | else | |
8180 | echo "$ac_err" >&5 | |
8181 | echo "configure: failed program was:" >&5 | |
8182 | cat conftest.$ac_ext >&5 | |
8183 | rm -rf conftest* | |
8184 | ac_cv_header_stdc=no | |
8185 | fi | |
8186 | rm -f conftest* | |
8187 | ||
8188 | if test $ac_cv_header_stdc = yes; then | |
8189 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
8190 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 8191 | #line 8192 "configure" |
7750247f KB |
8192 | #include "confdefs.h" |
8193 | #include <string.h> | |
8194 | EOF | |
8195 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8196 | egrep "memchr" >/dev/null 2>&1; then | |
8197 | : | |
8198 | else | |
8199 | rm -rf conftest* | |
8200 | ac_cv_header_stdc=no | |
8201 | fi | |
8202 | rm -f conftest* | |
8203 | ||
8204 | fi | |
8205 | ||
8206 | if test $ac_cv_header_stdc = yes; then | |
8207 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
8208 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 8209 | #line 8210 "configure" |
7750247f KB |
8210 | #include "confdefs.h" |
8211 | #include <stdlib.h> | |
8212 | EOF | |
8213 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8214 | egrep "free" >/dev/null 2>&1; then | |
8215 | : | |
8216 | else | |
8217 | rm -rf conftest* | |
8218 | ac_cv_header_stdc=no | |
8219 | fi | |
8220 | rm -f conftest* | |
8221 | ||
8222 | fi | |
8223 | ||
8224 | if test $ac_cv_header_stdc = yes; then | |
8225 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
8226 | if test "$cross_compiling" = yes; then | |
8227 | : | |
8228 | else | |
8229 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 8230 | #line 8231 "configure" |
7750247f KB |
8231 | #include "confdefs.h" |
8232 | #include <ctype.h> | |
8233 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
8234 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
8235 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
8236 | int main () { int i; for (i = 0; i < 256; i++) | |
8237 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
8238 | exit (0); } | |
8239 | ||
8240 | EOF | |
80d895cd | 8241 | if { (eval echo configure:8242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
7750247f KB |
8242 | then |
8243 | : | |
8244 | else | |
8245 | echo "configure: failed program was:" >&5 | |
8246 | cat conftest.$ac_ext >&5 | |
8247 | rm -fr conftest* | |
8248 | ac_cv_header_stdc=no | |
8249 | fi | |
8250 | rm -fr conftest* | |
8251 | fi | |
8252 | ||
8253 | fi | |
8254 | fi | |
8255 | ||
8256 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
8257 | if test $ac_cv_header_stdc = yes; then | |
8258 | cat >> confdefs.h <<\EOF | |
8259 | #define STDC_HEADERS 1 | |
8260 | EOF | |
8261 | ||
8262 | fi | |
8263 | ||
8264 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 | |
80d895cd | 8265 | echo "configure:8266: checking for mode_t" >&5 |
7750247f KB |
8266 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
8267 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8268 | else | |
8269 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 8270 | #line 8271 "configure" |
7750247f KB |
8271 | #include "confdefs.h" |
8272 | #include <sys/types.h> | |
8273 | #if STDC_HEADERS | |
8274 | #include <stdlib.h> | |
8275 | #include <stddef.h> | |
8276 | #endif | |
8277 | EOF | |
8278 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9c884972 | 8279 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
7750247f KB |
8280 | rm -rf conftest* |
8281 | ac_cv_type_mode_t=yes | |
8282 | else | |
8283 | rm -rf conftest* | |
8284 | ac_cv_type_mode_t=no | |
8285 | fi | |
8286 | rm -f conftest* | |
8287 | ||
8288 | fi | |
8289 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
8290 | if test $ac_cv_type_mode_t = no; then | |
8291 | cat >> confdefs.h <<\EOF | |
8292 | #define mode_t int | |
8293 | EOF | |
8294 | ||
8295 | fi | |
8296 | ||
8297 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
80d895cd | 8298 | echo "configure:8299: checking for off_t" >&5 |
7750247f KB |
8299 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
8300 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8301 | else | |
8302 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 8303 | #line 8304 "configure" |
7750247f KB |
8304 | #include "confdefs.h" |
8305 | #include <sys/types.h> | |
8306 | #if STDC_HEADERS | |
8307 | #include <stdlib.h> | |
8308 | #include <stddef.h> | |
8309 | #endif | |
8310 | EOF | |
8311 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9c884972 | 8312 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
7750247f KB |
8313 | rm -rf conftest* |
8314 | ac_cv_type_off_t=yes | |
8315 | else | |
8316 | rm -rf conftest* | |
8317 | ac_cv_type_off_t=no | |
8318 | fi | |
8319 | rm -f conftest* | |
8320 | ||
8321 | fi | |
8322 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
8323 | if test $ac_cv_type_off_t = no; then | |
8324 | cat >> confdefs.h <<\EOF | |
8325 | #define off_t long | |
8326 | EOF | |
8327 | ||
8328 | fi | |
8329 | ||
8330 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 | |
80d895cd | 8331 | echo "configure:8332: checking for pid_t" >&5 |
7750247f KB |
8332 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
8333 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8334 | else | |
8335 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 8336 | #line 8337 "configure" |
7750247f KB |
8337 | #include "confdefs.h" |
8338 | #include <sys/types.h> | |
8339 | #if STDC_HEADERS | |
8340 | #include <stdlib.h> | |
8341 | #include <stddef.h> | |
8342 | #endif | |
8343 | EOF | |
8344 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9c884972 | 8345 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
7750247f KB |
8346 | rm -rf conftest* |
8347 | ac_cv_type_pid_t=yes | |
8348 | else | |
8349 | rm -rf conftest* | |
8350 | ac_cv_type_pid_t=no | |
8351 | fi | |
8352 | rm -f conftest* | |
8353 | ||
8354 | fi | |
8355 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
8356 | if test $ac_cv_type_pid_t = no; then | |
8357 | cat >> confdefs.h <<\EOF | |
8358 | #define pid_t int | |
8359 | EOF | |
8360 | ||
8361 | fi | |
8362 | ||
8363 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
80d895cd | 8364 | echo "configure:8365: checking for size_t" >&5 |
7750247f KB |
8365 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
8366 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8367 | else | |
8368 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 8369 | #line 8370 "configure" |
7750247f KB |
8370 | #include "confdefs.h" |
8371 | #include <sys/types.h> | |
8372 | #if STDC_HEADERS | |
8373 | #include <stdlib.h> | |
8374 | #include <stddef.h> | |
8375 | #endif | |
8376 | EOF | |
8377 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9c884972 | 8378 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
7750247f KB |
8379 | rm -rf conftest* |
8380 | ac_cv_type_size_t=yes | |
8381 | else | |
8382 | rm -rf conftest* | |
8383 | ac_cv_type_size_t=no | |
8384 | fi | |
8385 | rm -f conftest* | |
8386 | ||
8387 | fi | |
8388 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
8389 | if test $ac_cv_type_size_t = no; then | |
8390 | cat >> confdefs.h <<\EOF | |
8391 | #define size_t unsigned | |
8392 | EOF | |
8393 | ||
8394 | fi | |
8395 | ||
8396 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 | |
80d895cd | 8397 | echo "configure:8398: checking for uid_t in sys/types.h" >&5 |
7750247f KB |
8398 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
8399 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8400 | else | |
8401 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 8402 | #line 8403 "configure" |
7750247f KB |
8403 | #include "confdefs.h" |
8404 | #include <sys/types.h> | |
8405 | EOF | |
8406 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8407 | egrep "uid_t" >/dev/null 2>&1; then | |
8408 | rm -rf conftest* | |
8409 | ac_cv_type_uid_t=yes | |
8410 | else | |
8411 | rm -rf conftest* | |
8412 | ac_cv_type_uid_t=no | |
8413 | fi | |
8414 | rm -f conftest* | |
8415 | ||
8416 | fi | |
8417 | ||
8418 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 | |
8419 | if test $ac_cv_type_uid_t = no; then | |
8420 | cat >> confdefs.h <<\EOF | |
8421 | #define uid_t int | |
8422 | EOF | |
8423 | ||
8424 | cat >> confdefs.h <<\EOF | |
8425 | #define gid_t int | |
8426 | EOF | |
8427 | ||
8428 | fi | |
8429 | ||
8430 | ||
8431 | ||
8432 | ||
8433 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
80d895cd | 8434 | echo "configure:8435: checking for working const" >&5 |
7750247f KB |
8435 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
8436 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8437 | else | |
8438 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 8439 | #line 8440 "configure" |
7750247f KB |
8440 | #include "confdefs.h" |
8441 | ||
8442 | int main() { | |
8443 | ||
8444 | /* Ultrix mips cc rejects this. */ | |
8445 | typedef int charset[2]; const charset x; | |
8446 | /* SunOS 4.1.1 cc rejects this. */ | |
8447 | char const *const *ccp; | |
8448 | char **p; | |
8449 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
8450 | struct point {int x, y;}; | |
8451 | static struct point const zero = {0,0}; | |
8452 | /* AIX XL C 1.02.0.0 rejects this. | |
8453 | It does not let you subtract one const X* pointer from another in an arm | |
8454 | of an if-expression whose if-part is not a constant expression */ | |
8455 | const char *g = "string"; | |
8456 | ccp = &g + (g ? g-g : 0); | |
8457 | /* HPUX 7.0 cc rejects these. */ | |
8458 | ++ccp; | |
8459 | p = (char**) ccp; | |
8460 | ccp = (char const *const *) p; | |
8461 | { /* SCO 3.2v4 cc rejects this. */ | |
8462 | char *t; | |
8463 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
8464 | ||
8465 | *t++ = 0; | |
8466 | } | |
8467 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
8468 | int x[] = {25, 17}; | |
8469 | const int *foo = &x[0]; | |
8470 | ++foo; | |
8471 | } | |
8472 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
8473 | typedef const int *iptr; | |
8474 | iptr p = 0; | |
8475 | ++p; | |
8476 | } | |
8477 | { /* AIX XL C 1.02.0.0 rejects this saying | |
8478 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
8479 | struct s { int j; const int *ap[3]; }; | |
8480 | struct s *b; b->j = 5; | |
8481 | } | |
8482 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
8483 | const int foo = 10; | |
8484 | } | |
8485 | ||
8486 | ; return 0; } | |
8487 | EOF | |
80d895cd | 8488 | if { (eval echo configure:8489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
7750247f KB |
8489 | rm -rf conftest* |
8490 | ac_cv_c_const=yes | |
8491 | else | |
8492 | echo "configure: failed program was:" >&5 | |
8493 | cat conftest.$ac_ext >&5 | |
8494 | rm -rf conftest* | |
8495 | ac_cv_c_const=no | |
8496 | fi | |
8497 | rm -f conftest* | |
8498 | fi | |
8499 | ||
8500 | echo "$ac_t""$ac_cv_c_const" 1>&6 | |
8501 | if test $ac_cv_c_const = no; then | |
8502 | cat >> confdefs.h <<\EOF | |
8503 | #define const | |
8504 | EOF | |
8505 | ||
8506 | fi | |
8507 | ||
8508 | echo $ac_n "checking for inline""... $ac_c" 1>&6 | |
80d895cd | 8509 | echo "configure:8510: checking for inline" >&5 |
7750247f KB |
8510 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
8511 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8512 | else | |
8513 | ac_cv_c_inline=no | |
8514 | for ac_kw in inline __inline__ __inline; do | |
8515 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 8516 | #line 8517 "configure" |
7750247f KB |
8517 | #include "confdefs.h" |
8518 | ||
8519 | int main() { | |
8520 | } $ac_kw foo() { | |
8521 | ; return 0; } | |
8522 | EOF | |
80d895cd | 8523 | if { (eval echo configure:8524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
7750247f KB |
8524 | rm -rf conftest* |
8525 | ac_cv_c_inline=$ac_kw; break | |
8526 | else | |
8527 | echo "configure: failed program was:" >&5 | |
8528 | cat conftest.$ac_ext >&5 | |
8529 | fi | |
8530 | rm -f conftest* | |
8531 | done | |
8532 | ||
8533 | fi | |
8534 | ||
8535 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
8536 | case "$ac_cv_c_inline" in | |
8537 | inline | yes) ;; | |
8538 | no) cat >> confdefs.h <<\EOF | |
8539 | #define inline | |
8540 | EOF | |
8541 | ;; | |
8542 | *) cat >> confdefs.h <<EOF | |
8543 | #define inline $ac_cv_c_inline | |
8544 | EOF | |
8545 | ;; | |
8546 | esac | |
8547 | ||
8548 | ||
8549 | echo $ac_n "checking size of char""... $ac_c" 1>&6 | |
80d895cd | 8550 | echo "configure:8551: checking size of char" >&5 |
7750247f KB |
8551 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
8552 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8553 | else | |
8554 | if test "$cross_compiling" = yes; then | |
8555 | ac_cv_sizeof_char=1 | |
8556 | else | |
8557 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 8558 | #line 8559 "configure" |
7750247f KB |
8559 | #include "confdefs.h" |
8560 | #include <stdio.h> | |
8561 | main() | |
8562 | { | |
8563 | FILE *f=fopen("conftestval", "w"); | |
8564 | if (!f) exit(1); | |
8565 | fprintf(f, "%d\n", sizeof(char)); | |
8566 | exit(0); | |
8567 | } | |
8568 | EOF | |
80d895cd | 8569 | if { (eval echo configure:8570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
7750247f KB |
8570 | then |
8571 | ac_cv_sizeof_char=`cat conftestval` | |
8572 | else | |
8573 | echo "configure: failed program was:" >&5 | |
8574 | cat conftest.$ac_ext >&5 | |
8575 | rm -fr conftest* | |
8576 | ac_cv_sizeof_char=0 | |
8577 | fi | |
8578 | rm -fr conftest* | |
8579 | fi | |
8580 | ||
8581 | fi | |
8582 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 | |
8583 | cat >> confdefs.h <<EOF | |
8584 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
8585 | EOF | |
8586 | ||
8587 | ||
8588 | echo $ac_n "checking size of short""... $ac_c" 1>&6 | |
80d895cd | 8589 | echo "configure:8590: checking size of short" >&5 |
7750247f KB |
8590 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
8591 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8592 | else | |
8593 | if test "$cross_compiling" = yes; then | |
8594 | ac_cv_sizeof_short=2 | |
8595 | else | |
8596 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 8597 | #line 8598 "configure" |
7750247f KB |
8598 | #include "confdefs.h" |
8599 | #include <stdio.h> | |
8600 | main() | |
8601 | { | |
8602 | FILE *f=fopen("conftestval", "w"); | |
8603 | if (!f) exit(1); | |
8604 | fprintf(f, "%d\n", sizeof(short)); | |
8605 | exit(0); | |
8606 | } | |
8607 | EOF | |
80d895cd | 8608 | if { (eval echo configure:8609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
7750247f KB |
8609 | then |
8610 | ac_cv_sizeof_short=`cat conftestval` | |
8611 | else | |
8612 | echo "configure: failed program was:" >&5 | |
8613 | cat conftest.$ac_ext >&5 | |
8614 | rm -fr conftest* | |
8615 | ac_cv_sizeof_short=0 | |
8616 | fi | |
8617 | rm -fr conftest* | |
8618 | fi | |
8619 | ||
8620 | fi | |
8621 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 | |
8622 | cat >> confdefs.h <<EOF | |
8623 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
8624 | EOF | |
8625 | ||
8626 | ||
8627 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 | |
80d895cd | 8628 | echo "configure:8629: checking size of int *" >&5 |
7750247f KB |
8629 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then |
8630 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8631 | else | |
8632 | if test "$cross_compiling" = yes; then | |
8633 | ac_cv_sizeof_int_p=4 | |
8634 | else | |
8635 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 8636 | #line 8637 "configure" |
7750247f KB |
8637 | #include "confdefs.h" |
8638 | #include <stdio.h> | |
8639 | main() | |
8640 | { | |
8641 | FILE *f=fopen("conftestval", "w"); | |
8642 | if (!f) exit(1); | |
8643 | fprintf(f, "%d\n", sizeof(int *)); | |
8644 | exit(0); | |
8645 | } | |
8646 | EOF | |
80d895cd | 8647 | if { (eval echo configure:8648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
7750247f KB |
8648 | then |
8649 | ac_cv_sizeof_int_p=`cat conftestval` | |
8650 | else | |
8651 | echo "configure: failed program was:" >&5 | |
8652 | cat conftest.$ac_ext >&5 | |
8653 | rm -fr conftest* | |
8654 | ac_cv_sizeof_int_p=0 | |
8655 | fi | |
8656 | rm -fr conftest* | |
8657 | fi | |
8658 | ||
8659 | fi | |
8660 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 | |
8661 | cat >> confdefs.h <<EOF | |
8662 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
8663 | EOF | |
8664 | ||
8665 | ||
8666 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
80d895cd | 8667 | echo "configure:8668: checking size of int" >&5 |
7750247f KB |
8668 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
8669 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8670 | else | |
8671 | if test "$cross_compiling" = yes; then | |
8672 | ac_cv_sizeof_int=4 | |
8673 | else | |
8674 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 8675 | #line 8676 "configure" |
7750247f KB |
8676 | #include "confdefs.h" |
8677 | #include <stdio.h> | |
8678 | main() | |
8679 | { | |
8680 | FILE *f=fopen("conftestval", "w"); | |
8681 | if (!f) exit(1); | |
8682 | fprintf(f, "%d\n", sizeof(int)); | |
8683 | exit(0); | |
8684 | } | |
8685 | EOF | |
80d895cd | 8686 | if { (eval echo configure:8687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
7750247f KB |
8687 | then |
8688 | ac_cv_sizeof_int=`cat conftestval` | |
8689 | else | |
8690 | echo "configure: failed program was:" >&5 | |
8691 | cat conftest.$ac_ext >&5 | |
8692 | rm -fr conftest* | |
8693 | ac_cv_sizeof_int=0 | |
8694 | fi | |
8695 | rm -fr conftest* | |
8696 | fi | |
8697 | ||
8698 | fi | |
8699 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
8700 | cat >> confdefs.h <<EOF | |
8701 | #define SIZEOF_INT $ac_cv_sizeof_int | |
8702 | EOF | |
8703 | ||
8704 | ||
8705 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
80d895cd | 8706 | echo "configure:8707: checking size of long" >&5 |
7750247f KB |
8707 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
8708 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8709 | else | |
8710 | if test "$cross_compiling" = yes; then | |
8711 | ac_cv_sizeof_long=4 | |
8712 | else | |
8713 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 8714 | #line 8715 "configure" |
7750247f KB |
8715 | #include "confdefs.h" |
8716 | #include <stdio.h> | |
8717 | main() | |
8718 | { | |
8719 | FILE *f=fopen("conftestval", "w"); | |
8720 | if (!f) exit(1); | |
8721 | fprintf(f, "%d\n", sizeof(long)); | |
8722 | exit(0); | |
8723 | } | |
8724 | EOF | |
80d895cd | 8725 | if { (eval echo configure:8726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
7750247f KB |
8726 | then |
8727 | ac_cv_sizeof_long=`cat conftestval` | |
8728 | else | |
8729 | echo "configure: failed program was:" >&5 | |
8730 | cat conftest.$ac_ext >&5 | |
8731 | rm -fr conftest* | |
8732 | ac_cv_sizeof_long=0 | |
8733 | fi | |
8734 | rm -fr conftest* | |
8735 | fi | |
8736 | ||
8737 | fi | |
8738 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
8739 | cat >> confdefs.h <<EOF | |
8740 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
8741 | EOF | |
8742 | ||
8743 | ||
8744 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
80d895cd | 8745 | echo "configure:8746: checking size of long long" >&5 |
7750247f KB |
8746 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
8747 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8748 | else | |
8749 | if test "$cross_compiling" = yes; then | |
8750 | ac_cv_sizeof_long_long=0 | |
8751 | else | |
8752 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 8753 | #line 8754 "configure" |
7750247f KB |
8754 | #include "confdefs.h" |
8755 | #include <stdio.h> | |
8756 | main() | |
8757 | { | |
8758 | FILE *f=fopen("conftestval", "w"); | |
8759 | if (!f) exit(1); | |
8760 | fprintf(f, "%d\n", sizeof(long long)); | |
8761 | exit(0); | |
8762 | } | |
8763 | EOF | |
80d895cd | 8764 | if { (eval echo configure:8765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
7750247f KB |
8765 | then |
8766 | ac_cv_sizeof_long_long=`cat conftestval` | |
8767 | else | |
8768 | echo "configure: failed program was:" >&5 | |
8769 | cat conftest.$ac_ext >&5 | |
8770 | rm -fr conftest* | |
8771 | ac_cv_sizeof_long_long=0 | |
8772 | fi | |
8773 | rm -fr conftest* | |
8774 | fi | |
8775 | ||
8776 | fi | |
8777 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
8778 | cat >> confdefs.h <<EOF | |
8779 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
8780 | EOF | |
8781 | ||
8782 | ||
8783 | ||
8784 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 | |
80d895cd | 8785 | echo "configure:8786: checking whether byte ordering is bigendian" >&5 |
7750247f KB |
8786 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
8787 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8788 | else | |
8789 | ac_cv_c_bigendian=unknown | |
8790 | # See if sys/param.h defines the BYTE_ORDER macro. | |
8791 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 8792 | #line 8793 "configure" |
7750247f KB |
8793 | #include "confdefs.h" |
8794 | #include <sys/types.h> | |
8795 | #include <sys/param.h> | |
8796 | int main() { | |
8797 | ||
8798 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
8799 | bogus endian macros | |
8800 | #endif | |
8801 | ; return 0; } | |
8802 | EOF | |
80d895cd | 8803 | if { (eval echo configure:8804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
7750247f KB |
8804 | rm -rf conftest* |
8805 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
8806 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 8807 | #line 8808 "configure" |
7750247f KB |
8808 | #include "confdefs.h" |
8809 | #include <sys/types.h> | |
8810 | #include <sys/param.h> | |
8811 | int main() { | |
8812 | ||
8813 | #if BYTE_ORDER != BIG_ENDIAN | |
8814 | not big endian | |
8815 | #endif | |
8816 | ; return 0; } | |
8817 | EOF | |
80d895cd | 8818 | if { (eval echo configure:8819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
7750247f KB |
8819 | rm -rf conftest* |
8820 | ac_cv_c_bigendian=yes | |
8821 | else | |
8822 | echo "configure: failed program was:" >&5 | |
8823 | cat conftest.$ac_ext >&5 | |
8824 | rm -rf conftest* | |
8825 | ac_cv_c_bigendian=no | |
8826 | fi | |
8827 | rm -f conftest* | |
8828 | else | |
8829 | echo "configure: failed program was:" >&5 | |
8830 | cat conftest.$ac_ext >&5 | |
8831 | fi | |
8832 | rm -f conftest* | |
8833 | if test $ac_cv_c_bigendian = unknown; then | |
8834 | if test "$cross_compiling" = yes; then | |
8835 | ac_cv_c_bigendian=unknown | |
8836 | else | |
8837 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 8838 | #line 8839 "configure" |
7750247f KB |
8839 | #include "confdefs.h" |
8840 | main () { | |
8841 | /* Are we little or big endian? From Harbison&Steele. */ | |
8842 | union | |
8843 | { | |
8844 | long l; | |
8845 | char c[sizeof (long)]; | |
8846 | } u; | |
8847 | u.l = 1; | |
8848 | exit (u.c[sizeof (long) - 1] == 1); | |
8849 | } | |
8850 | EOF | |
80d895cd | 8851 | if { (eval echo configure:8852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
7750247f KB |
8852 | then |
8853 | ac_cv_c_bigendian=no | |
8854 | else | |
8855 | echo "configure: failed program was:" >&5 | |
8856 | cat conftest.$ac_ext >&5 | |
8857 | rm -fr conftest* | |
8858 | ac_cv_c_bigendian=yes | |
8859 | fi | |
8860 | rm -fr conftest* | |
8861 | fi | |
8862 | ||
8863 | fi | |
8864 | fi | |
8865 | ||
8866 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
8867 | if test $ac_cv_c_bigendian = unknown; then | |
8868 | 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 | |
8869 | fi | |
8870 | if test $ac_cv_c_bigendian = yes; then | |
8871 | cat >> confdefs.h <<\EOF | |
8872 | #define WORDS_BIGENDIAN 1 | |
8873 | EOF | |
8874 | ||
8875 | fi | |
8876 | ||
8877 | ||
8878 | ||
8879 | if test "$cross_compiling" = "yes"; then | |
8880 | cat >> confdefs.h <<\EOF | |
8881 | #define wxUSE_IOSTREAMH 1 | |
8882 | EOF | |
8883 | ||
8884 | else | |
8885 | ||
8886 | ac_ext=C | |
8887 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8888 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8889 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9c884972 | 8890 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
7750247f KB |
8891 | cross_compiling=$ac_cv_prog_cxx_cross |
8892 | ||
8893 | ||
8894 | for ac_hdr in iostream | |
8895 | do | |
8896 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8897 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
80d895cd | 8898 | echo "configure:8899: checking for $ac_hdr" >&5 |
7750247f KB |
8899 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8900 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8901 | else | |
8902 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 8903 | #line 8904 "configure" |
7750247f KB |
8904 | #include "confdefs.h" |
8905 | #include <$ac_hdr> | |
8906 | EOF | |
8907 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
80d895cd | 8908 | { (eval echo configure:8909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9c884972 | 8909 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7750247f KB |
8910 | if test -z "$ac_err"; then |
8911 | rm -rf conftest* | |
8912 | eval "ac_cv_header_$ac_safe=yes" | |
8913 | else | |
8914 | echo "$ac_err" >&5 | |
8915 | echo "configure: failed program was:" >&5 | |
8916 | cat conftest.$ac_ext >&5 | |
8917 | rm -rf conftest* | |
8918 | eval "ac_cv_header_$ac_safe=no" | |
8919 | fi | |
8920 | rm -f conftest* | |
8921 | fi | |
8922 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8923 | echo "$ac_t""yes" 1>&6 | |
8924 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8925 | cat >> confdefs.h <<EOF | |
8926 | #define $ac_tr_hdr 1 | |
8927 | EOF | |
8928 | ||
8929 | else | |
8930 | echo "$ac_t""no" 1>&6 | |
8931 | fi | |
8932 | done | |
8933 | ||
8934 | ||
8935 | if test "x$HAVE_IOSTREAM" = x ; then | |
8936 | cat >> confdefs.h <<\EOF | |
8937 | #define wxUSE_IOSTREAMH 1 | |
8938 | EOF | |
8939 | ||
8940 | else | |
8941 | : | |
8942 | fi | |
8943 | ||
8944 | ac_ext=c | |
8945 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8946 | ac_cpp='$CPP $CPPFLAGS' | |
8947 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9c884972 | 8948 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
7750247f KB |
8949 | cross_compiling=$ac_cv_prog_cc_cross |
8950 | ||
8951 | fi | |
8952 | ||
8953 | ||
8954 | ||
8955 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 | |
80d895cd | 8956 | echo "configure:8957: checking if C++ compiler supports bool" >&5 |
7750247f KB |
8957 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
8958 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8959 | else | |
8960 | ||
8961 | ||
8962 | ac_ext=C | |
8963 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8964 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8965 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9c884972 | 8966 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
7750247f KB |
8967 | cross_compiling=$ac_cv_prog_cxx_cross |
8968 | ||
8969 | ||
8970 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 8971 | #line 8972 "configure" |
7750247f KB |
8972 | #include "confdefs.h" |
8973 | ||
8974 | ||
8975 | int main() { | |
8976 | ||
8977 | bool b = true; | |
8978 | ||
8979 | return 0; | |
8980 | ||
8981 | ; return 0; } | |
8982 | EOF | |
80d895cd | 8983 | if { (eval echo configure:8984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
7750247f KB |
8984 | rm -rf conftest* |
8985 | ||
8986 | cat >> confdefs.h <<\EOF | |
8987 | #define HAVE_BOOL 1 | |
8988 | EOF | |
8989 | ||
8990 | wx_cv_cpp_bool=yes | |
8991 | ||
8992 | else | |
8993 | echo "configure: failed program was:" >&5 | |
8994 | cat conftest.$ac_ext >&5 | |
8995 | rm -rf conftest* | |
8996 | ||
8997 | wx_cv_cpp_bool=no | |
8998 | ||
8999 | ||
9000 | fi | |
9001 | rm -f conftest* | |
9002 | ||
9003 | ac_ext=c | |
9004 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9005 | ac_cpp='$CPP $CPPFLAGS' | |
9006 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9c884972 | 9007 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
7750247f KB |
9008 | cross_compiling=$ac_cv_prog_cc_cross |
9009 | ||
9010 | ||
9011 | fi | |
9012 | ||
9013 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
9014 | ||
9015 | if test "$wx_cv_cpp_bool" = "yes"; then | |
9016 | cat >> confdefs.h <<\EOF | |
9017 | #define HAVE_BOOL 1 | |
9018 | EOF | |
9019 | ||
9020 | fi | |
9021 | ||
9022 | ||
9023 | ||
9024 | echo $ac_n "checking if size_t and int are different types""... $ac_c" 1>&6 | |
80d895cd | 9025 | echo "configure:9026: checking if size_t and int are different types" >&5 |
7750247f KB |
9026 | if eval "test \"`echo '$''{'wx_cv_cpp_sizet_not_int'+set}'`\" = set"; then |
9027 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9028 | else | |
9029 | ||
9030 | ||
9031 | ac_ext=C | |
9032 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9033 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9034 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9c884972 | 9035 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
7750247f KB |
9036 | cross_compiling=$ac_cv_prog_cxx_cross |
9037 | ||
9038 | ||
9039 | if test "$cross_compiling" = yes; then | |
9040 | wx_cv_cpp_sizet_not_int=no | |
9041 | ||
9042 | else | |
9043 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 9044 | #line 9045 "configure" |
7750247f KB |
9045 | #include "confdefs.h" |
9046 | #ifdef __cplusplus | |
9047 | extern "C" void exit(int); | |
9048 | #endif | |
9049 | ||
9050 | #include <stdlib.h> | |
9051 | ||
9052 | class S | |
9053 | { | |
9054 | public: | |
9055 | S(char *s) { m_s = s; } | |
9056 | ||
9057 | char operator[](size_t n) const { return m_s[n]; } | |
9058 | char operator[](int n) const { return m_s[n]; } | |
9059 | ||
9060 | private: | |
9061 | char *m_s; | |
9062 | }; | |
9063 | ||
9064 | int main() | |
9065 | { | |
9066 | S s("dummy"); | |
9067 | size_t n1 = 2; | |
9068 | int n2 = 3; | |
9069 | ||
9070 | return s[n1] == s[n2]; | |
9071 | } | |
9072 | ||
9073 | EOF | |
80d895cd | 9074 | if { (eval echo configure:9075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
7750247f KB |
9075 | then |
9076 | cat >> confdefs.h <<\EOF | |
9077 | #define wxUSE_SIZE_T_STRING_OPERATOR 1 | |
9078 | EOF | |
9079 | wx_cv_cpp_sizet_not_int=yes | |
9080 | else | |
9081 | echo "configure: failed program was:" >&5 | |
9082 | cat conftest.$ac_ext >&5 | |
9083 | rm -fr conftest* | |
9084 | wx_cv_cpp_sizet_not_int=no | |
9085 | fi | |
9086 | rm -fr conftest* | |
9087 | fi | |
9088 | ||
9089 | ||
9090 | ac_ext=c | |
9091 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9092 | ac_cpp='$CPP $CPPFLAGS' | |
9093 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9c884972 | 9094 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
7750247f KB |
9095 | cross_compiling=$ac_cv_prog_cc_cross |
9096 | ||
9097 | ||
9098 | fi | |
9099 | ||
9100 | echo "$ac_t""$wx_cv_cpp_sizet_not_int" 1>&6 | |
9101 | ||
9102 | ||
9103 | ||
9104 | echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6 | |
80d895cd | 9105 | echo "configure:9106: checking if you need GNU extensions" >&5 |
7750247f KB |
9106 | if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then |
9107 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9108 | else | |
9109 | ||
9110 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 9111 | #line 9112 "configure" |
7750247f KB |
9112 | #include "confdefs.h" |
9113 | #include <features.h> | |
9114 | int main() { | |
9115 | ||
9116 | ||
9117 | #ifndef __GNU_LIBRARY__ | |
9118 | Compile error wanted | |
9119 | #endif | |
9120 | ||
9121 | ||
9122 | ; return 0; } | |
9123 | EOF | |
80d895cd | 9124 | if { (eval echo configure:9125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
7750247f KB |
9125 | rm -rf conftest* |
9126 | wx_cv_gnu_extensions=yes | |
9127 | else | |
9128 | echo "configure: failed program was:" >&5 | |
9129 | cat conftest.$ac_ext >&5 | |
9130 | rm -rf conftest* | |
9131 | wx_cv_gnu_extensions=no | |
9132 | fi | |
9133 | rm -f conftest* | |
9134 | ||
9135 | fi | |
9136 | ||
9137 | ||
9138 | echo "$ac_t""$wx_cv_gnu_extensions" 1>&6 | |
9139 | if test "$wx_cv_gnu_extensions" = "yes"; then | |
9140 | cat >> confdefs.h <<EOF | |
9141 | #define _GNU_SOURCE 1 | |
9142 | EOF | |
9143 | ||
9144 | fi | |
9145 | ||
9146 | ||
9147 | ||
9148 | echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6 | |
80d895cd | 9149 | echo "configure:9150: checking for wcslen in -lc" >&5 |
7750247f KB |
9150 | ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'` |
9151 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9152 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9153 | else | |
9154 | ac_save_LIBS="$LIBS" | |
9155 | LIBS="-lc $LIBS" | |
9156 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 9157 | #line 9158 "configure" |
7750247f KB |
9158 | #include "confdefs.h" |
9159 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9160 | /* We use char because int might match the return type of a gcc2 | |
9161 | builtin and then its argument prototype would still apply. */ | |
9162 | char wcslen(); | |
9163 | ||
9164 | int main() { | |
9165 | wcslen() | |
9166 | ; return 0; } | |
9167 | EOF | |
80d895cd | 9168 | if { (eval echo configure:9169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7750247f KB |
9169 | rm -rf conftest* |
9170 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9171 | else | |
9172 | echo "configure: failed program was:" >&5 | |
9173 | cat conftest.$ac_ext >&5 | |
9174 | rm -rf conftest* | |
9175 | eval "ac_cv_lib_$ac_lib_var=no" | |
9176 | fi | |
9177 | rm -f conftest* | |
9178 | LIBS="$ac_save_LIBS" | |
9179 | ||
9180 | fi | |
9181 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9182 | echo "$ac_t""yes" 1>&6 | |
9183 | ||
9184 | cat >> confdefs.h <<\EOF | |
9185 | #define HAVE_WCSLEN 1 | |
9186 | EOF | |
9187 | ||
9188 | WCHAR_LINK="" | |
9189 | ||
9190 | else | |
9191 | echo "$ac_t""no" 1>&6 | |
9192 | ||
9193 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 | |
80d895cd | 9194 | echo "configure:9195: checking for wcslen in -lw" >&5 |
7750247f KB |
9195 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
9196 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9197 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9198 | else | |
9199 | ac_save_LIBS="$LIBS" | |
9200 | LIBS="-lw $LIBS" | |
9201 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 9202 | #line 9203 "configure" |
7750247f KB |
9203 | #include "confdefs.h" |
9204 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9205 | /* We use char because int might match the return type of a gcc2 | |
9206 | builtin and then its argument prototype would still apply. */ | |
9207 | char wcslen(); | |
9208 | ||
9209 | int main() { | |
9210 | wcslen() | |
9211 | ; return 0; } | |
9212 | EOF | |
80d895cd | 9213 | if { (eval echo configure:9214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7750247f KB |
9214 | rm -rf conftest* |
9215 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9216 | else | |
9217 | echo "configure: failed program was:" >&5 | |
9218 | cat conftest.$ac_ext >&5 | |
9219 | rm -rf conftest* | |
9220 | eval "ac_cv_lib_$ac_lib_var=no" | |
9221 | fi | |
9222 | rm -f conftest* | |
9223 | LIBS="$ac_save_LIBS" | |
9224 | ||
9225 | fi | |
9226 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9227 | echo "$ac_t""yes" 1>&6 | |
9228 | ||
9229 | cat >> confdefs.h <<\EOF | |
9230 | #define HAVE_WCSLEN 1 | |
9231 | EOF | |
9232 | ||
9233 | WCHAR_LINK="-lw" | |
9234 | ||
9235 | else | |
9236 | echo "$ac_t""no" 1>&6 | |
9237 | fi | |
9238 | ||
9239 | ||
9240 | fi | |
9241 | ||
9242 | ||
9243 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 | |
80d895cd | 9244 | echo "configure:9245: checking for vprintf" >&5 |
7750247f KB |
9245 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
9246 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9247 | else | |
9248 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 9249 | #line 9250 "configure" |
7750247f KB |
9250 | #include "confdefs.h" |
9251 | /* System header to define __stub macros and hopefully few prototypes, | |
9252 | which can conflict with char vprintf(); below. */ | |
9253 | #include <assert.h> | |
9254 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9255 | /* We use char because int might match the return type of a gcc2 | |
9256 | builtin and then its argument prototype would still apply. */ | |
9257 | char vprintf(); | |
9258 | ||
9259 | int main() { | |
9260 | ||
9261 | /* The GNU C library defines this for functions which it implements | |
9262 | to always fail with ENOSYS. Some functions are actually named | |
9263 | something starting with __ and the normal name is an alias. */ | |
9264 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
9265 | choke me | |
9266 | #else | |
80d895cd | 9267 | vprintf(); |
7750247f KB |
9268 | #endif |
9269 | ||
9270 | ; return 0; } | |
9271 | EOF | |
80d895cd | 9272 | if { (eval echo configure:9273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7750247f KB |
9273 | rm -rf conftest* |
9274 | eval "ac_cv_func_vprintf=yes" | |
9275 | else | |
9276 | echo "configure: failed program was:" >&5 | |
9277 | cat conftest.$ac_ext >&5 | |
9278 | rm -rf conftest* | |
9279 | eval "ac_cv_func_vprintf=no" | |
9280 | fi | |
9281 | rm -f conftest* | |
9282 | fi | |
9283 | ||
9284 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
9285 | echo "$ac_t""yes" 1>&6 | |
9286 | cat >> confdefs.h <<\EOF | |
9287 | #define HAVE_VPRINTF 1 | |
9288 | EOF | |
9289 | ||
9290 | else | |
9291 | echo "$ac_t""no" 1>&6 | |
9292 | fi | |
9293 | ||
9294 | if test "$ac_cv_func_vprintf" != yes; then | |
9295 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
80d895cd | 9296 | echo "configure:9297: checking for _doprnt" >&5 |
7750247f KB |
9297 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
9298 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9299 | else | |
9300 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 9301 | #line 9302 "configure" |
7750247f KB |
9302 | #include "confdefs.h" |
9303 | /* System header to define __stub macros and hopefully few prototypes, | |
9304 | which can conflict with char _doprnt(); below. */ | |
9305 | #include <assert.h> | |
9306 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9307 | /* We use char because int might match the return type of a gcc2 | |
9308 | builtin and then its argument prototype would still apply. */ | |
9309 | char _doprnt(); | |
9310 | ||
9311 | int main() { | |
9312 | ||
9313 | /* The GNU C library defines this for functions which it implements | |
9314 | to always fail with ENOSYS. Some functions are actually named | |
9315 | something starting with __ and the normal name is an alias. */ | |
9316 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
9317 | choke me | |
9318 | #else | |
80d895cd | 9319 | _doprnt(); |
7750247f KB |
9320 | #endif |
9321 | ||
9322 | ; return 0; } | |
9323 | EOF | |
80d895cd | 9324 | if { (eval echo configure:9325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7750247f KB |
9325 | rm -rf conftest* |
9326 | eval "ac_cv_func__doprnt=yes" | |
9327 | else | |
9328 | echo "configure: failed program was:" >&5 | |
9329 | cat conftest.$ac_ext >&5 | |
9330 | rm -rf conftest* | |
9331 | eval "ac_cv_func__doprnt=no" | |
9332 | fi | |
9333 | rm -f conftest* | |
9334 | fi | |
9335 | ||
9336 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
9337 | echo "$ac_t""yes" 1>&6 | |
9338 | cat >> confdefs.h <<\EOF | |
9339 | #define HAVE_DOPRNT 1 | |
9340 | EOF | |
9341 | ||
9342 | else | |
9343 | echo "$ac_t""no" 1>&6 | |
9344 | fi | |
9345 | ||
9346 | fi | |
9347 | ||
9348 | ||
9349 | for ac_func in vsnprintf | |
9350 | do | |
9351 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
80d895cd | 9352 | echo "configure:9353: checking for $ac_func" >&5 |
7750247f KB |
9353 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9354 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9355 | else | |
9356 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 9357 | #line 9358 "configure" |
7750247f KB |
9358 | #include "confdefs.h" |
9359 | /* System header to define __stub macros and hopefully few prototypes, | |
9360 | which can conflict with char $ac_func(); below. */ | |
9361 | #include <assert.h> | |
9362 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9363 | /* We use char because int might match the return type of a gcc2 | |
9364 | builtin and then its argument prototype would still apply. */ | |
9365 | char $ac_func(); | |
9366 | ||
9367 | int main() { | |
9368 | ||
9369 | /* The GNU C library defines this for functions which it implements | |
9370 | to always fail with ENOSYS. Some functions are actually named | |
9371 | something starting with __ and the normal name is an alias. */ | |
9372 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9373 | choke me | |
9374 | #else | |
80d895cd | 9375 | $ac_func(); |
7750247f KB |
9376 | #endif |
9377 | ||
9378 | ; return 0; } | |
9379 | EOF | |
80d895cd | 9380 | if { (eval echo configure:9381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7750247f KB |
9381 | rm -rf conftest* |
9382 | eval "ac_cv_func_$ac_func=yes" | |
9383 | else | |
9384 | echo "configure: failed program was:" >&5 | |
9385 | cat conftest.$ac_ext >&5 | |
9386 | rm -rf conftest* | |
9387 | eval "ac_cv_func_$ac_func=no" | |
9388 | fi | |
9389 | rm -f conftest* | |
9390 | fi | |
9391 | ||
9392 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9393 | echo "$ac_t""yes" 1>&6 | |
9394 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9395 | cat >> confdefs.h <<EOF | |
9396 | #define $ac_tr_func 1 | |
9397 | EOF | |
9398 | cat >> confdefs.h <<\EOF | |
9399 | #define HAVE_VSNPRINTF 1 | |
9400 | EOF | |
9401 | ||
9402 | else | |
9403 | echo "$ac_t""no" 1>&6 | |
9404 | echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2 | |
9405 | ||
9406 | fi | |
9407 | done | |
9408 | ||
9409 | ||
9410 | ||
9411 | ac_ext=C | |
9412 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9413 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9414 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9c884972 | 9415 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
7750247f KB |
9416 | cross_compiling=$ac_cv_prog_cxx_cross |
9417 | ||
9418 | ||
9419 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 | |
80d895cd | 9420 | echo "configure:9421: checking for vsscanf" >&5 |
7750247f KB |
9421 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
9422 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9423 | else | |
9424 | ||
9425 | if test "$cross_compiling" = yes; then | |
9426 | wx_cv_func_vsscanf=no | |
9427 | ||
9428 | else | |
9429 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 9430 | #line 9431 "configure" |
7750247f KB |
9431 | #include "confdefs.h" |
9432 | #ifdef __cplusplus | |
9433 | extern "C" void exit(int); | |
9434 | #endif | |
9435 | ||
9436 | #include <stdio.h> | |
9437 | #include <stdarg.h> | |
9438 | ||
9439 | int try_vsscanf(const char *format, ...) | |
9440 | { | |
9441 | va_list ap; | |
9442 | va_start(ap, format); | |
9443 | ||
9444 | vsscanf("17", format, ap); | |
9445 | ||
9446 | va_end(ap); | |
9447 | } | |
9448 | ||
9449 | int main() | |
9450 | { | |
9451 | int i; | |
9452 | try_vsscanf("%d", &i); | |
9453 | return i == 17 ? 0 : 1; | |
9454 | } | |
9455 | ||
9456 | EOF | |
80d895cd | 9457 | if { (eval echo configure:9458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
7750247f KB |
9458 | then |
9459 | ||
9460 | cat >> confdefs.h <<\EOF | |
9461 | #define HAVE_VSSCANF 1 | |
9462 | EOF | |
9463 | ||
9464 | wx_cv_func_vsscanf=yes | |
9465 | ||
9466 | else | |
9467 | echo "configure: failed program was:" >&5 | |
9468 | cat conftest.$ac_ext >&5 | |
9469 | rm -fr conftest* | |
9470 | wx_cv_func_vsscanf=no | |
9471 | fi | |
9472 | rm -fr conftest* | |
9473 | fi | |
9474 | ||
9475 | ||
9476 | fi | |
9477 | ||
9478 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 | |
9479 | ||
9480 | ac_ext=c | |
9481 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9482 | ac_cpp='$CPP $CPPFLAGS' | |
9483 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9c884972 | 9484 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
7750247f KB |
9485 | cross_compiling=$ac_cv_prog_cc_cross |
9486 | ||
9487 | ||
9488 | for ac_func in vfork | |
9489 | do | |
9490 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
80d895cd | 9491 | echo "configure:9492: checking for $ac_func" >&5 |
7750247f KB |
9492 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9493 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9494 | else | |
9495 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 9496 | #line 9497 "configure" |
7750247f KB |
9497 | #include "confdefs.h" |
9498 | /* System header to define __stub macros and hopefully few prototypes, | |
9499 | which can conflict with char $ac_func(); below. */ | |
9500 | #include <assert.h> | |
9501 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9502 | /* We use char because int might match the return type of a gcc2 | |
9503 | builtin and then its argument prototype would still apply. */ | |
9504 | char $ac_func(); | |
9505 | ||
9506 | int main() { | |
9507 | ||
9508 | /* The GNU C library defines this for functions which it implements | |
9509 | to always fail with ENOSYS. Some functions are actually named | |
9510 | something starting with __ and the normal name is an alias. */ | |
9511 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9512 | choke me | |
9513 | #else | |
80d895cd | 9514 | $ac_func(); |
7750247f KB |
9515 | #endif |
9516 | ||
9517 | ; return 0; } | |
9518 | EOF | |
80d895cd | 9519 | if { (eval echo configure:9520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7750247f KB |
9520 | rm -rf conftest* |
9521 | eval "ac_cv_func_$ac_func=yes" | |
9522 | else | |
9523 | echo "configure: failed program was:" >&5 | |
9524 | cat conftest.$ac_ext >&5 | |
9525 | rm -rf conftest* | |
9526 | eval "ac_cv_func_$ac_func=no" | |
9527 | fi | |
9528 | rm -f conftest* | |
9529 | fi | |
9530 | ||
9531 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9532 | echo "$ac_t""yes" 1>&6 | |
9533 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9534 | cat >> confdefs.h <<EOF | |
9535 | #define $ac_tr_func 1 | |
9536 | EOF | |
9537 | ||
9538 | else | |
9539 | echo "$ac_t""no" 1>&6 | |
9540 | fi | |
9541 | done | |
9542 | ||
9543 | ||
9544 | POSIX4_LINK= | |
9545 | for ac_func in nanosleep | |
9546 | do | |
9547 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
80d895cd | 9548 | echo "configure:9549: checking for $ac_func" >&5 |
7750247f KB |
9549 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9550 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9551 | else | |
9552 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 9553 | #line 9554 "configure" |
7750247f KB |
9554 | #include "confdefs.h" |
9555 | /* System header to define __stub macros and hopefully few prototypes, | |
9556 | which can conflict with char $ac_func(); below. */ | |
9557 | #include <assert.h> | |
9558 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9559 | /* We use char because int might match the return type of a gcc2 | |
9560 | builtin and then its argument prototype would still apply. */ | |
9561 | char $ac_func(); | |
9562 | ||
9563 | int main() { | |
9564 | ||
9565 | /* The GNU C library defines this for functions which it implements | |
9566 | to always fail with ENOSYS. Some functions are actually named | |
9567 | something starting with __ and the normal name is an alias. */ | |
9568 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9569 | choke me | |
9570 | #else | |
80d895cd | 9571 | $ac_func(); |
7750247f KB |
9572 | #endif |
9573 | ||
9574 | ; return 0; } | |
9575 | EOF | |
80d895cd | 9576 | if { (eval echo configure:9577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7750247f KB |
9577 | rm -rf conftest* |
9578 | eval "ac_cv_func_$ac_func=yes" | |
9579 | else | |
9580 | echo "configure: failed program was:" >&5 | |
9581 | cat conftest.$ac_ext >&5 | |
9582 | rm -rf conftest* | |
9583 | eval "ac_cv_func_$ac_func=no" | |
9584 | fi | |
9585 | rm -f conftest* | |
9586 | fi | |
9587 | ||
9588 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9589 | echo "$ac_t""yes" 1>&6 | |
9590 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9591 | cat >> confdefs.h <<EOF | |
9592 | #define $ac_tr_func 1 | |
9593 | EOF | |
9594 | cat >> confdefs.h <<\EOF | |
9595 | #define HAVE_NANOSLEEP 1 | |
9596 | EOF | |
9597 | ||
9598 | else | |
9599 | echo "$ac_t""no" 1>&6 | |
9600 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
80d895cd | 9601 | echo "configure:9602: checking for nanosleep in -lposix4" >&5 |
7750247f KB |
9602 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
9603 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9604 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9605 | else | |
9606 | ac_save_LIBS="$LIBS" | |
9607 | LIBS="-lposix4 $LIBS" | |
9608 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 9609 | #line 9610 "configure" |
7750247f KB |
9610 | #include "confdefs.h" |
9611 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9612 | /* We use char because int might match the return type of a gcc2 | |
9613 | builtin and then its argument prototype would still apply. */ | |
9614 | char nanosleep(); | |
9615 | ||
9616 | int main() { | |
9617 | nanosleep() | |
9618 | ; return 0; } | |
9619 | EOF | |
80d895cd | 9620 | if { (eval echo configure:9621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7750247f KB |
9621 | rm -rf conftest* |
9622 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9623 | else | |
9624 | echo "configure: failed program was:" >&5 | |
9625 | cat conftest.$ac_ext >&5 | |
9626 | rm -rf conftest* | |
9627 | eval "ac_cv_lib_$ac_lib_var=no" | |
9628 | fi | |
9629 | rm -f conftest* | |
9630 | LIBS="$ac_save_LIBS" | |
9631 | ||
9632 | fi | |
9633 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9634 | echo "$ac_t""yes" 1>&6 | |
9635 | ||
9636 | cat >> confdefs.h <<\EOF | |
9637 | #define HAVE_NANOSLEEP 1 | |
9638 | EOF | |
9639 | ||
9640 | POSIX4_LINK="-lposix4" | |
9641 | ||
9642 | else | |
9643 | echo "$ac_t""no" 1>&6 | |
9644 | ||
9645 | for ac_func in usleep | |
9646 | do | |
9647 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
80d895cd | 9648 | echo "configure:9649: checking for $ac_func" >&5 |
7750247f KB |
9649 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9650 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9651 | else | |
9652 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 9653 | #line 9654 "configure" |
7750247f KB |
9654 | #include "confdefs.h" |
9655 | /* System header to define __stub macros and hopefully few prototypes, | |
9656 | which can conflict with char $ac_func(); below. */ | |
9657 | #include <assert.h> | |
9658 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9659 | /* We use char because int might match the return type of a gcc2 | |
9660 | builtin and then its argument prototype would still apply. */ | |
9661 | char $ac_func(); | |
9662 | ||
9663 | int main() { | |
9664 | ||
9665 | /* The GNU C library defines this for functions which it implements | |
9666 | to always fail with ENOSYS. Some functions are actually named | |
9667 | something starting with __ and the normal name is an alias. */ | |
9668 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9669 | choke me | |
9670 | #else | |
80d895cd | 9671 | $ac_func(); |
7750247f KB |
9672 | #endif |
9673 | ||
9674 | ; return 0; } | |
9675 | EOF | |
80d895cd | 9676 | if { (eval echo configure:9677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7750247f KB |
9677 | rm -rf conftest* |
9678 | eval "ac_cv_func_$ac_func=yes" | |
9679 | else | |
9680 | echo "configure: failed program was:" >&5 | |
9681 | cat conftest.$ac_ext >&5 | |
9682 | rm -rf conftest* | |
9683 | eval "ac_cv_func_$ac_func=no" | |
9684 | fi | |
9685 | rm -f conftest* | |
9686 | fi | |
9687 | ||
9688 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9689 | echo "$ac_t""yes" 1>&6 | |
9690 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9691 | cat >> confdefs.h <<EOF | |
9692 | #define $ac_tr_func 1 | |
9693 | EOF | |
9694 | cat >> confdefs.h <<\EOF | |
9695 | #define HAVE_USLEEP 1 | |
9696 | EOF | |
9697 | ||
9698 | else | |
9699 | echo "$ac_t""no" 1>&6 | |
9700 | echo "configure: warning: wxSleep() function will not work" 1>&2 | |
9701 | fi | |
9702 | done | |
9703 | ||
9704 | ||
9705 | fi | |
9706 | ||
9707 | ||
9708 | fi | |
9709 | done | |
9710 | ||
9711 | ||
9712 | for ac_func in uname gethostname | |
9713 | do | |
9714 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
80d895cd | 9715 | echo "configure:9716: checking for $ac_func" >&5 |
7750247f KB |
9716 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9717 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9718 | else | |
9719 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 9720 | #line 9721 "configure" |
7750247f KB |
9721 | #include "confdefs.h" |
9722 | /* System header to define __stub macros and hopefully few prototypes, | |
9723 | which can conflict with char $ac_func(); below. */ | |
9724 | #include <assert.h> | |
9725 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9726 | /* We use char because int might match the return type of a gcc2 | |
9727 | builtin and then its argument prototype would still apply. */ | |
9728 | char $ac_func(); | |
9729 | ||
9730 | int main() { | |
9731 | ||
9732 | /* The GNU C library defines this for functions which it implements | |
9733 | to always fail with ENOSYS. Some functions are actually named | |
9734 | something starting with __ and the normal name is an alias. */ | |
9735 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9736 | choke me | |
9737 | #else | |
80d895cd | 9738 | $ac_func(); |
7750247f KB |
9739 | #endif |
9740 | ||
9741 | ; return 0; } | |
9742 | EOF | |
80d895cd | 9743 | if { (eval echo configure:9744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7750247f KB |
9744 | rm -rf conftest* |
9745 | eval "ac_cv_func_$ac_func=yes" | |
9746 | else | |
9747 | echo "configure: failed program was:" >&5 | |
9748 | cat conftest.$ac_ext >&5 | |
9749 | rm -rf conftest* | |
9750 | eval "ac_cv_func_$ac_func=no" | |
9751 | fi | |
9752 | rm -f conftest* | |
9753 | fi | |
9754 | ||
9755 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9756 | echo "$ac_t""yes" 1>&6 | |
9757 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9758 | cat >> confdefs.h <<EOF | |
9759 | #define $ac_tr_func 1 | |
9760 | EOF | |
9761 | break | |
9762 | else | |
9763 | echo "$ac_t""no" 1>&6 | |
9764 | fi | |
9765 | done | |
9766 | ||
9767 | ||
9768 | for ac_func in inet_addr | |
9769 | do | |
9770 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
80d895cd | 9771 | echo "configure:9772: checking for $ac_func" >&5 |
7750247f KB |
9772 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9773 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9774 | else | |
9775 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 9776 | #line 9777 "configure" |
7750247f KB |
9777 | #include "confdefs.h" |
9778 | /* System header to define __stub macros and hopefully few prototypes, | |
9779 | which can conflict with char $ac_func(); below. */ | |
9780 | #include <assert.h> | |
9781 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9782 | /* We use char because int might match the return type of a gcc2 | |
9783 | builtin and then its argument prototype would still apply. */ | |
9784 | char $ac_func(); | |
9785 | ||
9786 | int main() { | |
9787 | ||
9788 | /* The GNU C library defines this for functions which it implements | |
9789 | to always fail with ENOSYS. Some functions are actually named | |
9790 | something starting with __ and the normal name is an alias. */ | |
9791 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9792 | choke me | |
9793 | #else | |
80d895cd | 9794 | $ac_func(); |
7750247f KB |
9795 | #endif |
9796 | ||
9797 | ; return 0; } | |
9798 | EOF | |
80d895cd | 9799 | if { (eval echo configure:9800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7750247f KB |
9800 | rm -rf conftest* |
9801 | eval "ac_cv_func_$ac_func=yes" | |
9802 | else | |
9803 | echo "configure: failed program was:" >&5 | |
9804 | cat conftest.$ac_ext >&5 | |
9805 | rm -rf conftest* | |
9806 | eval "ac_cv_func_$ac_func=no" | |
9807 | fi | |
9808 | rm -f conftest* | |
9809 | fi | |
9810 | ||
9811 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9812 | echo "$ac_t""yes" 1>&6 | |
9813 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9814 | cat >> confdefs.h <<EOF | |
9815 | #define $ac_tr_func 1 | |
9816 | EOF | |
9817 | ||
9818 | else | |
9819 | echo "$ac_t""no" 1>&6 | |
9820 | fi | |
9821 | done | |
9822 | ||
9823 | for ac_func in inet_aton | |
9824 | do | |
9825 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
80d895cd | 9826 | echo "configure:9827: checking for $ac_func" >&5 |
7750247f KB |
9827 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9828 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9829 | else | |
9830 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 9831 | #line 9832 "configure" |
7750247f KB |
9832 | #include "confdefs.h" |
9833 | /* System header to define __stub macros and hopefully few prototypes, | |
9834 | which can conflict with char $ac_func(); below. */ | |
9835 | #include <assert.h> | |
9836 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9837 | /* We use char because int might match the return type of a gcc2 | |
9838 | builtin and then its argument prototype would still apply. */ | |
9839 | char $ac_func(); | |
9840 | ||
9841 | int main() { | |
9842 | ||
9843 | /* The GNU C library defines this for functions which it implements | |
9844 | to always fail with ENOSYS. Some functions are actually named | |
9845 | something starting with __ and the normal name is an alias. */ | |
9846 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9847 | choke me | |
9848 | #else | |
80d895cd | 9849 | $ac_func(); |
7750247f KB |
9850 | #endif |
9851 | ||
9852 | ; return 0; } | |
9853 | EOF | |
80d895cd | 9854 | if { (eval echo configure:9855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7750247f KB |
9855 | rm -rf conftest* |
9856 | eval "ac_cv_func_$ac_func=yes" | |
9857 | else | |
9858 | echo "configure: failed program was:" >&5 | |
9859 | cat conftest.$ac_ext >&5 | |
9860 | rm -rf conftest* | |
9861 | eval "ac_cv_func_$ac_func=no" | |
9862 | fi | |
9863 | rm -f conftest* | |
9864 | fi | |
9865 | ||
9866 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9867 | echo "$ac_t""yes" 1>&6 | |
9868 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9869 | cat >> confdefs.h <<EOF | |
9870 | #define $ac_tr_func 1 | |
9871 | EOF | |
9872 | ||
9873 | else | |
9874 | echo "$ac_t""no" 1>&6 | |
9875 | fi | |
9876 | done | |
9877 | ||
9878 | echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6 | |
80d895cd | 9879 | echo "configure:9880: checking for inet_aton in -lresolv" >&5 |
7750247f KB |
9880 | ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'` |
9881 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9882 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9883 | else | |
9884 | ac_save_LIBS="$LIBS" | |
9885 | LIBS="-lresolv $LIBS" | |
9886 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 9887 | #line 9888 "configure" |
7750247f KB |
9888 | #include "confdefs.h" |
9889 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9890 | /* We use char because int might match the return type of a gcc2 | |
9891 | builtin and then its argument prototype would still apply. */ | |
9892 | char inet_aton(); | |
9893 | ||
9894 | int main() { | |
9895 | inet_aton() | |
9896 | ; return 0; } | |
9897 | EOF | |
80d895cd | 9898 | if { (eval echo configure:9899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7750247f KB |
9899 | rm -rf conftest* |
9900 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9901 | else | |
9902 | echo "configure: failed program was:" >&5 | |
9903 | cat conftest.$ac_ext >&5 | |
9904 | rm -rf conftest* | |
9905 | eval "ac_cv_lib_$ac_lib_var=no" | |
9906 | fi | |
9907 | rm -f conftest* | |
9908 | LIBS="$ac_save_LIBS" | |
9909 | ||
9910 | fi | |
9911 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9912 | echo "$ac_t""yes" 1>&6 | |
9913 | ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
9914 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
9915 | cat >> confdefs.h <<EOF | |
9916 | #define $ac_tr_lib 1 | |
9917 | EOF | |
9918 | ||
9919 | LIBS="-lresolv $LIBS" | |
9920 | ||
9921 | else | |
9922 | echo "$ac_t""no" 1>&6 | |
9923 | fi | |
9924 | ||
9925 | ||
9926 | ||
9927 | cat > confcache <<\EOF | |
9928 | # This file is a shell script that caches the results of configure | |
9929 | # tests run on this system so they can be shared between configure | |
9930 | # scripts and configure runs. It is not useful on other systems. | |
9931 | # If it contains results you don't want to keep, you may remove or edit it. | |
9932 | # | |
9933 | # By default, configure uses ./config.cache as the cache file, | |
9934 | # creating it if it does not exist already. You can give configure | |
9935 | # the --cache-file=FILE option to use a different cache file; that is | |
9936 | # what configure does when it calls configure scripts in | |
9937 | # subdirectories, so they share the cache. | |
9938 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
9939 | # config.status only pays attention to the cache file if you give it the | |
9940 | # --recheck option to rerun configure. | |
9941 | # | |
9942 | EOF | |
9943 | # The following way of writing the cache mishandles newlines in values, | |
9944 | # but we know of no workaround that is simple, portable, and efficient. | |
9945 | # So, don't put newlines in cache variables' values. | |
9946 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
9947 | # and sets the high bit in the cache file unless we assign to the vars. | |
9948 | (set) 2>&1 | | |
9c884972 | 9949 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
7750247f KB |
9950 | *ac_space=\ *) |
9951 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
9952 | # turns \\\\ into \\, and sed turns \\ into \). | |
9953 | sed -n \ | |
9954 | -e "s/'/'\\\\''/g" \ | |
9955 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
9956 | ;; | |
9957 | *) | |
9958 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
9959 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
9960 | ;; | |
9961 | esac >> confcache | |
9962 | if cmp -s $cache_file confcache; then | |
9963 | : | |
9964 | else | |
9965 | if test -w $cache_file; then | |
9966 | echo "updating cache $cache_file" | |
9967 | cat confcache > $cache_file | |
9968 | else | |
9969 | echo "not updating unwritable cache $cache_file" | |
9970 | fi | |
9971 | fi | |
9972 | rm -f confcache | |
9973 | ||
9974 | ||
9975 | ||
9976 | if test "$USE_UNIX" = 1; then | |
9977 | ||
9978 | ||
9979 | THREADS_LINK="" | |
9980 | THREADS_OBJ="" | |
9981 | ||
9982 | if test "$wxUSE_THREADS" = "yes" ; then | |
9983 | if test "$wxUSE_WINE" = 1 ; then | |
9984 | echo "configure: warning: Threads are not supported under WINE" 1>&2 | |
9985 | wxUSE_THREADS="no" | |
9986 | fi | |
9987 | fi | |
9988 | ||
9989 | if test "$wxUSE_THREADS" = "yes" ; then | |
9990 | ||
9991 | echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 | |
80d895cd | 9992 | echo "configure:9993: checking for pthread_create in -lpthread" >&5 |
7750247f KB |
9993 | ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` |
9994 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9995 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9996 | else | |
9997 | ac_save_LIBS="$LIBS" | |
9998 | LIBS="-lpthread $LIBS" | |
9999 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 10000 | #line 10001 "configure" |
7750247f KB |
10001 | #include "confdefs.h" |
10002 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10003 | /* We use char because int might match the return type of a gcc2 | |
10004 | builtin and then its argument prototype would still apply. */ | |
10005 | char pthread_create(); | |
10006 | ||
10007 | int main() { | |
10008 | pthread_create() | |
10009 | ; return 0; } | |
10010 | EOF | |
80d895cd | 10011 | if { (eval echo configure:10012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7750247f KB |
10012 | rm -rf conftest* |
10013 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10014 | else | |
10015 | echo "configure: failed program was:" >&5 | |
10016 | cat conftest.$ac_ext >&5 | |
10017 | rm -rf conftest* | |
10018 | eval "ac_cv_lib_$ac_lib_var=no" | |
10019 | fi | |
10020 | rm -f conftest* | |
10021 | LIBS="$ac_save_LIBS" | |
10022 | ||
10023 | fi | |
10024 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10025 | echo "$ac_t""yes" 1>&6 | |
10026 | ||
10027 | THREADS_OBJ="threadpsx.lo" | |
10028 | THREADS_LINK="pthread" | |
10029 | ||
10030 | else | |
10031 | echo "$ac_t""no" 1>&6 | |
10032 | ||
10033 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 | |
80d895cd | 10034 | echo "configure:10035: checking for pthread_create in -lc_r" >&5 |
7750247f KB |
10035 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
10036 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10037 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10038 | else | |
10039 | ac_save_LIBS="$LIBS" | |
10040 | LIBS="-lc_r $LIBS" | |
10041 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 10042 | #line 10043 "configure" |
7750247f KB |
10043 | #include "confdefs.h" |
10044 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10045 | /* We use char because int might match the return type of a gcc2 | |
10046 | builtin and then its argument prototype would still apply. */ | |
10047 | char pthread_create(); | |
10048 | ||
10049 | int main() { | |
10050 | pthread_create() | |
10051 | ; return 0; } | |
10052 | EOF | |
80d895cd | 10053 | if { (eval echo configure:10054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7750247f KB |
10054 | rm -rf conftest* |
10055 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10056 | else | |
10057 | echo "configure: failed program was:" >&5 | |
10058 | cat conftest.$ac_ext >&5 | |
10059 | rm -rf conftest* | |
10060 | eval "ac_cv_lib_$ac_lib_var=no" | |
10061 | fi | |
10062 | rm -f conftest* | |
10063 | LIBS="$ac_save_LIBS" | |
10064 | ||
10065 | fi | |
10066 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10067 | echo "$ac_t""yes" 1>&6 | |
10068 | ||
10069 | THREADS_OBJ="threadpsx.lo" | |
10070 | THREADS_LINK="c_r" | |
10071 | ||
10072 | else | |
10073 | echo "$ac_t""no" 1>&6 | |
10074 | ||
10075 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` | |
10076 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 | |
80d895cd | 10077 | echo "configure:10078: checking for sys/prctl.h" >&5 |
7750247f KB |
10078 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10079 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10080 | else | |
10081 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 10082 | #line 10083 "configure" |
7750247f KB |
10083 | #include "confdefs.h" |
10084 | #include <sys/prctl.h> | |
10085 | EOF | |
10086 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
80d895cd | 10087 | { (eval echo configure:10088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9c884972 | 10088 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7750247f KB |
10089 | if test -z "$ac_err"; then |
10090 | rm -rf conftest* | |
10091 | eval "ac_cv_header_$ac_safe=yes" | |
10092 | else | |
10093 | echo "$ac_err" >&5 | |
10094 | echo "configure: failed program was:" >&5 | |
10095 | cat conftest.$ac_ext >&5 | |
10096 | rm -rf conftest* | |
10097 | eval "ac_cv_header_$ac_safe=no" | |
10098 | fi | |
10099 | rm -f conftest* | |
10100 | fi | |
10101 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10102 | echo "$ac_t""yes" 1>&6 | |
10103 | ||
10104 | THREADS_OBJ="threadsgi.lo" | |
10105 | ||
10106 | else | |
10107 | echo "$ac_t""no" 1>&6 | |
10108 | fi | |
10109 | ||
10110 | ||
10111 | fi | |
10112 | ||
10113 | ||
10114 | fi | |
10115 | ||
10116 | ||
10117 | if test -z "$THREADS_OBJ" ; then | |
10118 | wxUSE_THREADS=no | |
10119 | echo "configure: warning: No thread support on this system" 1>&2 | |
10120 | fi | |
10121 | fi | |
10122 | ||
10123 | if test "$wxUSE_THREADS" = "yes" ; then | |
10124 | ||
10125 | for ac_hdr in sched.h | |
10126 | do | |
10127 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10128 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
80d895cd | 10129 | echo "configure:10130: checking for $ac_hdr" >&5 |
7750247f KB |
10130 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10131 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10132 | else | |
10133 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 10134 | #line 10135 "configure" |
7750247f KB |
10135 | #include "confdefs.h" |
10136 | #include <$ac_hdr> | |
10137 | EOF | |
10138 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
80d895cd | 10139 | { (eval echo configure:10140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9c884972 | 10140 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7750247f KB |
10141 | if test -z "$ac_err"; then |
10142 | rm -rf conftest* | |
10143 | eval "ac_cv_header_$ac_safe=yes" | |
10144 | else | |
10145 | echo "$ac_err" >&5 | |
10146 | echo "configure: failed program was:" >&5 | |
10147 | cat conftest.$ac_ext >&5 | |
10148 | rm -rf conftest* | |
10149 | eval "ac_cv_header_$ac_safe=no" | |
10150 | fi | |
10151 | rm -f conftest* | |
10152 | fi | |
10153 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10154 | echo "$ac_t""yes" 1>&6 | |
10155 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10156 | cat >> confdefs.h <<EOF | |
10157 | #define $ac_tr_hdr 1 | |
10158 | EOF | |
10159 | ||
10160 | else | |
10161 | echo "$ac_t""no" 1>&6 | |
10162 | fi | |
10163 | done | |
10164 | ||
10165 | ||
10166 | echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6 | |
80d895cd | 10167 | echo "configure:10168: checking for sched_yield in -l$THREADS_LINK" >&5 |
7750247f KB |
10168 | ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'` |
10169 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10170 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10171 | else | |
10172 | ac_save_LIBS="$LIBS" | |
10173 | LIBS="-l$THREADS_LINK $LIBS" | |
10174 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 10175 | #line 10176 "configure" |
7750247f KB |
10176 | #include "confdefs.h" |
10177 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10178 | /* We use char because int might match the return type of a gcc2 | |
10179 | builtin and then its argument prototype would still apply. */ | |
10180 | char sched_yield(); | |
10181 | ||
10182 | int main() { | |
10183 | sched_yield() | |
10184 | ; return 0; } | |
10185 | EOF | |
80d895cd | 10186 | if { (eval echo configure:10187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7750247f KB |
10187 | rm -rf conftest* |
10188 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10189 | else | |
10190 | echo "configure: failed program was:" >&5 | |
10191 | cat conftest.$ac_ext >&5 | |
10192 | rm -rf conftest* | |
10193 | eval "ac_cv_lib_$ac_lib_var=no" | |
10194 | fi | |
10195 | rm -f conftest* | |
10196 | LIBS="$ac_save_LIBS" | |
10197 | ||
10198 | fi | |
10199 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10200 | echo "$ac_t""yes" 1>&6 | |
10201 | cat >> confdefs.h <<\EOF | |
10202 | #define HAVE_SCHED_YIELD 1 | |
10203 | EOF | |
10204 | ||
10205 | else | |
10206 | echo "$ac_t""no" 1>&6 | |
10207 | echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6 | |
80d895cd | 10208 | echo "configure:10209: checking for sched_yield in -l"posix4"" >&5 |
7750247f KB |
10209 | ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'` |
10210 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10211 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10212 | else | |
10213 | ac_save_LIBS="$LIBS" | |
10214 | LIBS="-l"posix4" $LIBS" | |
10215 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 10216 | #line 10217 "configure" |
7750247f KB |
10217 | #include "confdefs.h" |
10218 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10219 | /* We use char because int might match the return type of a gcc2 | |
10220 | builtin and then its argument prototype would still apply. */ | |
10221 | char sched_yield(); | |
10222 | ||
10223 | int main() { | |
10224 | sched_yield() | |
10225 | ; return 0; } | |
10226 | EOF | |
80d895cd | 10227 | if { (eval echo configure:10228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7750247f KB |
10228 | rm -rf conftest* |
10229 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10230 | else | |
10231 | echo "configure: failed program was:" >&5 | |
10232 | cat conftest.$ac_ext >&5 | |
10233 | rm -rf conftest* | |
10234 | eval "ac_cv_lib_$ac_lib_var=no" | |
10235 | fi | |
10236 | rm -f conftest* | |
10237 | LIBS="$ac_save_LIBS" | |
10238 | ||
10239 | fi | |
10240 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10241 | echo "$ac_t""yes" 1>&6 | |
10242 | cat >> confdefs.h <<\EOF | |
10243 | #define HAVE_SCHED_YIELD 1 | |
10244 | EOF | |
10245 | POSIX4_LINK="-lposix4" | |
10246 | else | |
10247 | echo "$ac_t""no" 1>&6 | |
10248 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
10249 | ||
10250 | fi | |
10251 | ||
10252 | ||
10253 | fi | |
10254 | ||
10255 | ||
10256 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6 | |
80d895cd | 10257 | echo "configure:10258: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5 |
7750247f KB |
10258 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
10259 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10260 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10261 | else | |
10262 | ac_save_LIBS="$LIBS" | |
10263 | LIBS="-l$THREADS_LINK $LIBS" | |
10264 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 10265 | #line 10266 "configure" |
7750247f KB |
10266 | #include "confdefs.h" |
10267 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10268 | /* We use char because int might match the return type of a gcc2 | |
10269 | builtin and then its argument prototype would still apply. */ | |
10270 | char pthread_attr_getschedpolicy(); | |
10271 | ||
10272 | int main() { | |
10273 | pthread_attr_getschedpolicy() | |
10274 | ; return 0; } | |
10275 | EOF | |
80d895cd | 10276 | if { (eval echo configure:10277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7750247f KB |
10277 | rm -rf conftest* |
10278 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10279 | else | |
10280 | echo "configure: failed program was:" >&5 | |
10281 | cat conftest.$ac_ext >&5 | |
10282 | rm -rf conftest* | |
10283 | eval "ac_cv_lib_$ac_lib_var=no" | |
10284 | fi | |
10285 | rm -f conftest* | |
10286 | LIBS="$ac_save_LIBS" | |
10287 | ||
10288 | fi | |
10289 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10290 | echo "$ac_t""yes" 1>&6 | |
10291 | cat >> confdefs.h <<\EOF | |
10292 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
10293 | EOF | |
10294 | ||
10295 | else | |
10296 | echo "$ac_t""no" 1>&6 | |
10297 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4"""... $ac_c" 1>&6 | |
80d895cd | 10298 | echo "configure:10299: checking for pthread_attr_getschedpolicy in -l"posix4"" >&5 |
7750247f KB |
10299 | ac_lib_var=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
10300 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10301 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10302 | else | |
10303 | ac_save_LIBS="$LIBS" | |
10304 | LIBS="-l"posix4" $LIBS" | |
10305 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 10306 | #line 10307 "configure" |
7750247f KB |
10307 | #include "confdefs.h" |
10308 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10309 | /* We use char because int might match the return type of a gcc2 | |
10310 | builtin and then its argument prototype would still apply. */ | |
10311 | char pthread_attr_getschedpolicy(); | |
10312 | ||
10313 | int main() { | |
10314 | pthread_attr_getschedpolicy() | |
10315 | ; return 0; } | |
10316 | EOF | |
80d895cd | 10317 | if { (eval echo configure:10318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7750247f KB |
10318 | rm -rf conftest* |
10319 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10320 | else | |
10321 | echo "configure: failed program was:" >&5 | |
10322 | cat conftest.$ac_ext >&5 | |
10323 | rm -rf conftest* | |
10324 | eval "ac_cv_lib_$ac_lib_var=no" | |
10325 | fi | |
10326 | rm -f conftest* | |
10327 | LIBS="$ac_save_LIBS" | |
10328 | ||
10329 | fi | |
10330 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10331 | echo "$ac_t""yes" 1>&6 | |
10332 | cat >> confdefs.h <<\EOF | |
10333 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
10334 | EOF | |
10335 | POSIX4_LINK="-lposix4" | |
10336 | else | |
10337 | echo "$ac_t""no" 1>&6 | |
10338 | echo "configure: warning: Setting thread priority will not work" 1>&2 | |
10339 | ||
10340 | fi | |
10341 | ||
10342 | ||
10343 | fi | |
10344 | ||
10345 | ||
10346 | echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6 | |
80d895cd | 10347 | echo "configure:10348: checking for pthread_cancel in -l$THREADS_LINK" >&5 |
7750247f KB |
10348 | ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'` |
10349 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10350 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10351 | else | |
10352 | ac_save_LIBS="$LIBS" | |
10353 | LIBS="-l$THREADS_LINK $LIBS" | |
10354 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 10355 | #line 10356 "configure" |
7750247f KB |
10356 | #include "confdefs.h" |
10357 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10358 | /* We use char because int might match the return type of a gcc2 | |
10359 | builtin and then its argument prototype would still apply. */ | |
10360 | char pthread_cancel(); | |
10361 | ||
10362 | int main() { | |
10363 | pthread_cancel() | |
10364 | ; return 0; } | |
10365 | EOF | |
80d895cd | 10366 | if { (eval echo configure:10367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7750247f KB |
10367 | rm -rf conftest* |
10368 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10369 | else | |
10370 | echo "configure: failed program was:" >&5 | |
10371 | cat conftest.$ac_ext >&5 | |
10372 | rm -rf conftest* | |
10373 | eval "ac_cv_lib_$ac_lib_var=no" | |
10374 | fi | |
10375 | rm -f conftest* | |
10376 | LIBS="$ac_save_LIBS" | |
10377 | ||
10378 | fi | |
10379 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10380 | echo "$ac_t""yes" 1>&6 | |
10381 | cat >> confdefs.h <<\EOF | |
10382 | #define HAVE_PTHREAD_CANCEL 1 | |
10383 | EOF | |
10384 | ||
10385 | else | |
10386 | echo "$ac_t""no" 1>&6 | |
10387 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
10388 | fi | |
10389 | ||
10390 | ||
10391 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 | |
80d895cd | 10392 | echo "configure:10393: checking for pthread_cleanup_push/pop" >&5 |
7750247f KB |
10393 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
10394 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10395 | else | |
10396 | ||
10397 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 10398 | #line 10399 "configure" |
7750247f KB |
10399 | #include "confdefs.h" |
10400 | #include <pthread.h> | |
10401 | int main() { | |
10402 | ||
10403 | pthread_cleanup_push(NULL, NULL); | |
10404 | pthread_cleanup_pop(0); | |
10405 | ||
10406 | ; return 0; } | |
10407 | EOF | |
80d895cd | 10408 | if { (eval echo configure:10409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
7750247f KB |
10409 | rm -rf conftest* |
10410 | ||
10411 | wx_cv_func_pthread_cleanup_push=yes | |
10412 | cat >> confdefs.h <<\EOF | |
10413 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 | |
10414 | EOF | |
10415 | ||
10416 | ||
10417 | else | |
10418 | echo "configure: failed program was:" >&5 | |
10419 | cat conftest.$ac_ext >&5 | |
10420 | rm -rf conftest* | |
10421 | ||
10422 | wx_cv_func_pthread_cleanup_push=no | |
10423 | ||
10424 | fi | |
10425 | rm -f conftest* | |
10426 | ||
10427 | fi | |
10428 | ||
10429 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
10430 | ||
10431 | THREADS_LINK="-l$THREADS_LINK" | |
10432 | fi | |
10433 | ||
10434 | fi | |
10435 | ||
10436 | if test "$wxUSE_THREADS" = "yes"; then | |
10437 | cat >> confdefs.h <<\EOF | |
10438 | #define wxUSE_THREADS 1 | |
10439 | EOF | |
10440 | ||
10441 | ||
10442 | CFLAGS="${CFLAGS} -D_REENTRANT" | |
10443 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" | |
10444 | ||
10445 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
10446 | fi | |
10447 | ||
10448 | if test "$WXGTK12" = 1 ; then | |
10449 | cat >> confdefs.h <<EOF | |
10450 | #define __WXGTK12__ $WXGTK12 | |
10451 | EOF | |
10452 | ||
10453 | fi | |
10454 | ||
10455 | if test "$WXWINE" = 1 ; then | |
10456 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__" | |
10457 | fi | |
10458 | ||
10459 | if test "$wxUSE_CYGWIN" = 1 ; then | |
10460 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__" | |
10461 | fi | |
10462 | ||
10463 | WXDEBUG= | |
7750247f KB |
10464 | |
10465 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
10466 | WXDEBUG="-g" | |
10467 | wxUSE_OPTIMISE=no | |
10468 | fi | |
10469 | ||
5586805b RR |
10470 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then |
10471 | wxUSE_DEBUG_INFO=yes | |
10472 | WXDEBUG="-ggdb" | |
10473 | fi | |
10474 | ||
7750247f KB |
10475 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
10476 | cat >> confdefs.h <<\EOF | |
10477 | #define WXDEBUG 1 | |
10478 | EOF | |
10479 | ||
10480 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10481 | else | |
10482 | if test "$wxUSE_GTK" = 1 ; then | |
10483 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
10484 | fi | |
10485 | fi | |
10486 | ||
10487 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
10488 | cat >> confdefs.h <<\EOF | |
10489 | #define wxUSE_MEMORY_TRACING 1 | |
10490 | EOF | |
10491 | ||
10492 | cat >> confdefs.h <<\EOF | |
10493 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
10494 | EOF | |
10495 | ||
10496 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
10497 | fi | |
10498 | ||
10499 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
10500 | DMALLOC_LINK="-ldmalloc" | |
10501 | fi | |
10502 | ||
10503 | PROFILE= | |
10504 | if test "$wxUSE_PROFILE" = "yes" ; then | |
10505 | PROFILE="-pg" | |
10506 | fi | |
10507 | ||
5586805b | 10508 | DEP_INFO_FLAGS= |
7750247f KB |
10509 | if test "$GCC" = yes ; then |
10510 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
10511 | WXDEBUG_DEFINE="$WXDEBUG_DEFINE -fno-rtti" | |
10512 | fi | |
10513 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
10514 | WXDEBUG_DEFINE="$WXDEBUG_DEFINE -fno-exceptions" | |
10515 | fi | |
5586805b RR |
10516 | if test "$wxUSE_PERMISSIVE" = "yes" ; then |
10517 | CFLAGS="${CFLAGS} -fpermissive" | |
10518 | CXXFLAGS="${CXXFLAGS} -fpermissive" | |
10519 | fi | |
10520 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
10521 | DEP_INFO_FLAGS="-MMD" | |
10522 | fi | |
7750247f KB |
10523 | fi |
10524 | ||
10525 | ||
10526 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` | |
10527 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
10528 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
10529 | OPTIMISE= | |
10530 | else | |
10531 | if test "$GCC" = yes ; then | |
10532 | OPTIMISE="-O2" | |
10533 | case "${host}" in | |
10534 | i586-*-*|i686-*-* ) | |
10535 | OPTIMISE="${OPTIMISE} " | |
10536 | ;; | |
10537 | esac | |
10538 | else | |
10539 | OPTIMISE="-O" | |
10540 | fi | |
10541 | fi | |
10542 | ||
10543 | ||
10544 | ZLIB_INCLUDE= | |
10545 | if test "$wxUSE_ZLIB" = "yes" ; then | |
10546 | cat >> confdefs.h <<\EOF | |
10547 | #define wxUSE_ZLIB 1 | |
10548 | EOF | |
10549 | ||
10550 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
10551 | fi | |
10552 | ||
10553 | PNG_INCLUDE= | |
10554 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
10555 | cat >> confdefs.h <<\EOF | |
10556 | #define wxUSE_LIBPNG 1 | |
10557 | EOF | |
10558 | ||
10559 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
10560 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
10561 | fi | |
10562 | ||
10563 | if test "$wxUSE_LIBGIF" = "yes" ; then | |
10564 | cat >> confdefs.h <<\EOF | |
10565 | #define wxUSE_LIBGIF 1 | |
10566 | EOF | |
10567 | ||
10568 | fi | |
10569 | ||
10570 | JPEG_INCLUDE= | |
10571 | if test "$wxUSE_LIBJPEG" = "yes" ; then | |
10572 | cat >> confdefs.h <<\EOF | |
10573 | #define wxUSE_LIBJPEG 1 | |
10574 | EOF | |
10575 | ||
10576 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
10577 | fi | |
10578 | ||
10579 | if test "$wxUSE_OPENGL" = "yes"; then | |
10580 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` | |
10581 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
80d895cd | 10582 | echo "configure:10583: checking for GL/gl.h" >&5 |
7750247f KB |
10583 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10584 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10585 | else | |
10586 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 10587 | #line 10588 "configure" |
7750247f KB |
10588 | #include "confdefs.h" |
10589 | #include <GL/gl.h> | |
10590 | EOF | |
10591 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
80d895cd | 10592 | { (eval echo configure:10593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9c884972 | 10593 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7750247f KB |
10594 | if test -z "$ac_err"; then |
10595 | rm -rf conftest* | |
10596 | eval "ac_cv_header_$ac_safe=yes" | |
10597 | else | |
10598 | echo "$ac_err" >&5 | |
10599 | echo "configure: failed program was:" >&5 | |
10600 | cat conftest.$ac_ext >&5 | |
10601 | rm -rf conftest* | |
10602 | eval "ac_cv_header_$ac_safe=no" | |
10603 | fi | |
10604 | rm -f conftest* | |
10605 | fi | |
10606 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10607 | echo "$ac_t""yes" 1>&6 | |
10608 | ||
10609 | echo $ac_n "checking for glInitNames in -lGL""... $ac_c" 1>&6 | |
80d895cd | 10610 | echo "configure:10611: checking for glInitNames in -lGL" >&5 |
7750247f KB |
10611 | ac_lib_var=`echo GL'_'glInitNames | sed 'y%./+-%__p_%'` |
10612 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10613 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10614 | else | |
10615 | ac_save_LIBS="$LIBS" | |
10616 | LIBS="-lGL wxUSE_OPENGL=0 $LIBS" | |
10617 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 10618 | #line 10619 "configure" |
7750247f KB |
10619 | #include "confdefs.h" |
10620 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10621 | /* We use char because int might match the return type of a gcc2 | |
10622 | builtin and then its argument prototype would still apply. */ | |
10623 | char glInitNames(); | |
10624 | ||
10625 | int main() { | |
10626 | glInitNames() | |
10627 | ; return 0; } | |
10628 | EOF | |
80d895cd | 10629 | if { (eval echo configure:10630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7750247f KB |
10630 | rm -rf conftest* |
10631 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10632 | else | |
10633 | echo "configure: failed program was:" >&5 | |
10634 | cat conftest.$ac_ext >&5 | |
10635 | rm -rf conftest* | |
10636 | eval "ac_cv_lib_$ac_lib_var=no" | |
10637 | fi | |
10638 | rm -f conftest* | |
10639 | LIBS="$ac_save_LIBS" | |
10640 | ||
10641 | fi | |
10642 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10643 | echo "$ac_t""yes" 1>&6 | |
10644 | ||
10645 | OPENGL_LINK="-lGL" | |
10646 | cat >> confdefs.h <<\EOF | |
10647 | #define wxUSE_OPENGL 1 | |
10648 | EOF | |
10649 | ||
10650 | UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src" | |
10651 | ||
10652 | else | |
10653 | echo "$ac_t""no" 1>&6 | |
10654 | ||
10655 | echo $ac_n "checking for glInitNames in -lMesaGL""... $ac_c" 1>&6 | |
80d895cd | 10656 | echo "configure:10657: checking for glInitNames in -lMesaGL" >&5 |
7750247f KB |
10657 | ac_lib_var=`echo MesaGL'_'glInitNames | sed 'y%./+-%__p_%'` |
10658 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10659 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10660 | else | |
10661 | ac_save_LIBS="$LIBS" | |
10662 | LIBS="-lMesaGL $LIBS" | |
10663 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 10664 | #line 10665 "configure" |
7750247f KB |
10665 | #include "confdefs.h" |
10666 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10667 | /* We use char because int might match the return type of a gcc2 | |
10668 | builtin and then its argument prototype would still apply. */ | |
10669 | char glInitNames(); | |
10670 | ||
10671 | int main() { | |
10672 | glInitNames() | |
10673 | ; return 0; } | |
10674 | EOF | |
80d895cd | 10675 | if { (eval echo configure:10676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7750247f KB |
10676 | rm -rf conftest* |
10677 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10678 | else | |
10679 | echo "configure: failed program was:" >&5 | |
10680 | cat conftest.$ac_ext >&5 | |
10681 | rm -rf conftest* | |
10682 | eval "ac_cv_lib_$ac_lib_var=no" | |
10683 | fi | |
10684 | rm -f conftest* | |
10685 | LIBS="$ac_save_LIBS" | |
10686 | ||
10687 | fi | |
10688 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10689 | echo "$ac_t""yes" 1>&6 | |
10690 | ||
10691 | OPENGL_LINK="-lMesaGL" | |
10692 | cat >> confdefs.h <<\EOF | |
10693 | #define wxUSE_OPENGL 1 | |
10694 | EOF | |
10695 | ||
10696 | UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src" | |
10697 | ||
10698 | else | |
10699 | echo "$ac_t""no" 1>&6 | |
10700 | wxUSE_OPENGL=0 | |
10701 | fi | |
10702 | ||
10703 | ||
10704 | fi | |
10705 | ||
10706 | ||
10707 | else | |
10708 | echo "$ac_t""no" 1>&6 | |
10709 | wxUSE_OPENGL=0 | |
10710 | fi | |
10711 | ||
10712 | fi | |
10713 | ||
10714 | ||
10715 | if test "$wxUSE_GUI" = "yes"; then | |
10716 | cat >> confdefs.h <<\EOF | |
10717 | #define wxUSE_GUI 1 | |
10718 | EOF | |
10719 | ||
10720 | ||
10721 | else | |
10722 | cat >> confdefs.h <<\EOF | |
10723 | #define wxUSE_NOGUI 1 | |
10724 | EOF | |
10725 | ||
10726 | fi | |
10727 | ||
10728 | ||
10729 | if test "$wxUSE_UNIX" = "yes"; then | |
10730 | cat >> confdefs.h <<\EOF | |
10731 | #define wxUSE_UNIX 1 | |
10732 | EOF | |
10733 | ||
10734 | fi | |
10735 | ||
10736 | ||
10737 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
10738 | cat >> confdefs.h <<\EOF | |
10739 | #define wxUSE_APPLE_IEEE 1 | |
10740 | EOF | |
10741 | ||
10742 | fi | |
10743 | ||
10744 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
10745 | cat >> confdefs.h <<\EOF | |
10746 | #define wxUSE_TIMEDATE 1 | |
10747 | EOF | |
10748 | ||
10749 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
10750 | fi | |
10751 | ||
10752 | if test "$wxUSE_WAVE" = "yes"; then | |
10753 | cat >> confdefs.h <<\EOF | |
10754 | #define wxUSE_WAVE 1 | |
10755 | EOF | |
10756 | ||
10757 | fi | |
10758 | ||
10759 | if test "$wxUSE_FILE" = "yes"; then | |
10760 | cat >> confdefs.h <<\EOF | |
10761 | #define wxUSE_FILE 1 | |
10762 | EOF | |
10763 | ||
10764 | fi | |
10765 | ||
10766 | if test "$wxUSE_FS_INET" = "yes"; then | |
10767 | cat >> confdefs.h <<\EOF | |
10768 | #define wxUSE_FS_INET 1 | |
10769 | EOF | |
10770 | ||
10771 | fi | |
10772 | ||
10773 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
10774 | cat >> confdefs.h <<\EOF | |
10775 | #define wxUSE_FS_ZIP 1 | |
10776 | EOF | |
10777 | ||
10778 | fi | |
10779 | ||
10780 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
10781 | cat >> confdefs.h <<\EOF | |
10782 | #define wxUSE_ZIPSTREAM 1 | |
10783 | EOF | |
10784 | ||
10785 | fi | |
10786 | ||
10787 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
10788 | cat >> confdefs.h <<\EOF | |
10789 | #define wxUSE_BUSYINFO 1 | |
10790 | EOF | |
10791 | ||
10792 | fi | |
10793 | ||
10794 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
10795 | cat >> confdefs.h <<\EOF | |
10796 | #define wxUSE_STD_IOSTREAM 1 | |
10797 | EOF | |
10798 | ||
10799 | fi | |
10800 | ||
10801 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
10802 | if test "$wxUSE_FILE" != "yes"; then | |
10803 | echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2 | |
10804 | else | |
10805 | cat >> confdefs.h <<\EOF | |
10806 | #define wxUSE_TEXTFILE 1 | |
10807 | EOF | |
10808 | ||
10809 | fi | |
10810 | fi | |
10811 | ||
10812 | if test "$wxUSE_CONFIG" = "yes" ; then | |
10813 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
10814 | echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2 | |
10815 | else | |
10816 | cat >> confdefs.h <<\EOF | |
10817 | #define wxUSE_CONFIG 1 | |
10818 | EOF | |
10819 | ||
10820 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
10821 | fi | |
10822 | fi | |
10823 | ||
10824 | if test "$wxUSE_INTL" = "yes" ; then | |
10825 | if test "$wxUSE_FILE" != "yes"; then | |
10826 | echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2 | |
10827 | else | |
10828 | cat >> confdefs.h <<\EOF | |
10829 | #define wxUSE_INTL 1 | |
10830 | EOF | |
10831 | ||
10832 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
10833 | fi | |
10834 | fi | |
10835 | ||
10836 | if test "$wxUSE_LOG" = "yes"; then | |
10837 | cat >> confdefs.h <<\EOF | |
10838 | #define wxUSE_LOG 1 | |
10839 | EOF | |
10840 | ||
10841 | fi | |
10842 | ||
10843 | if test "$wxUSE_LONGLONG" = "yes"; then | |
10844 | cat >> confdefs.h <<\EOF | |
10845 | #define wxUSE_LONGLONG 1 | |
10846 | EOF | |
10847 | ||
10848 | fi | |
10849 | ||
10850 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
10851 | if test "$wxUSE_THREADS" = "yes" ; then | |
10852 | cat >> confdefs.h <<\EOF | |
10853 | #define wxUSE_SOCKETS 1 | |
10854 | EOF | |
10855 | ||
10856 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wxsocket" | |
10857 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol" | |
10858 | else | |
10859 | echo "configure: warning: Socket classes require --with-threads and won't be compiled without it" 1>&2 | |
10860 | wxUSE_SOCKETS=0 | |
10861 | fi | |
10862 | fi | |
10863 | ||
10864 | if test "$wxUSE_STREAMS" = "yes" ; then | |
10865 | cat >> confdefs.h <<\EOF | |
10866 | #define wxUSE_STREAMS 1 | |
10867 | EOF | |
10868 | ||
10869 | fi | |
10870 | ||
10871 | if test "$wxUSE_SERIAL" = "yes" ; then | |
10872 | cat >> confdefs.h <<\EOF | |
10873 | #define wxUSE_SERIAL 1 | |
10874 | EOF | |
10875 | ||
10876 | fi | |
10877 | ||
10878 | ||
10879 | if test "$wxUSE_SOCKETS" = "yes"; then | |
10880 | ||
10881 | ac_ext=C | |
10882 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10883 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10884 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9c884972 | 10885 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
7750247f KB |
10886 | cross_compiling=$ac_cv_prog_cxx_cross |
10887 | ||
10888 | echo $ac_n "checking the type of the third argument of getsockname""... $ac_c" 1>&6 | |
80d895cd | 10889 | echo "configure:10890: checking the type of the third argument of getsockname" >&5 |
7750247f | 10890 | cat > conftest.$ac_ext <<EOF |
80d895cd | 10891 | #line 10892 "configure" |
7750247f KB |
10892 | #include "confdefs.h" |
10893 | #include <sys/socket.h> | |
10894 | int main() { | |
10895 | socklen_t len; getsockname(0, NULL, &len); | |
10896 | ; return 0; } | |
10897 | EOF | |
80d895cd | 10898 | if { (eval echo configure:10899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
7750247f KB |
10899 | rm -rf conftest* |
10900 | cat >> confdefs.h <<\EOF | |
10901 | #define SOCKLEN_T socklen_t | |
10902 | EOF | |
10903 | echo "$ac_t""socklen_t" 1>&6 | |
10904 | else | |
10905 | echo "configure: failed program was:" >&5 | |
10906 | cat conftest.$ac_ext >&5 | |
10907 | rm -rf conftest* | |
10908 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 10909 | #line 10910 "configure" |
7750247f KB |
10910 | #include "confdefs.h" |
10911 | #include <sys/socket.h> | |
10912 | int main() { | |
10913 | size_t len; getsockname(0, NULL, &len); | |
10914 | ; return 0; } | |
10915 | EOF | |
80d895cd | 10916 | if { (eval echo configure:10917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
7750247f KB |
10917 | rm -rf conftest* |
10918 | cat >> confdefs.h <<\EOF | |
10919 | #define SOCKLEN_T size_t | |
10920 | EOF | |
10921 | echo "$ac_t""size_t" 1>&6 | |
10922 | else | |
10923 | echo "configure: failed program was:" >&5 | |
10924 | cat conftest.$ac_ext >&5 | |
10925 | rm -rf conftest* | |
10926 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 10927 | #line 10928 "configure" |
7750247f KB |
10928 | #include "confdefs.h" |
10929 | #include <sys/socket.h> | |
10930 | int main() { | |
10931 | int len; getsockname(0, NULL, &len); | |
10932 | ; return 0; } | |
10933 | EOF | |
80d895cd | 10934 | if { (eval echo configure:10935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
7750247f KB |
10935 | rm -rf conftest* |
10936 | cat >> confdefs.h <<\EOF | |
10937 | #define SOCKLEN_T int | |
10938 | EOF | |
10939 | echo "$ac_t""int" 1>&6 | |
10940 | else | |
10941 | echo "configure: failed program was:" >&5 | |
10942 | cat conftest.$ac_ext >&5 | |
10943 | rm -rf conftest* | |
10944 | echo "$ac_t""unknown" 1>&6 | |
10945 | ||
10946 | fi | |
10947 | rm -f conftest* | |
10948 | ||
10949 | fi | |
10950 | rm -f conftest* | |
10951 | ||
10952 | fi | |
10953 | rm -f conftest* | |
10954 | ac_ext=c | |
10955 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10956 | ac_cpp='$CPP $CPPFLAGS' | |
10957 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9c884972 | 10958 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
7750247f KB |
10959 | cross_compiling=$ac_cv_prog_cc_cross |
10960 | ||
10961 | fi | |
10962 | ||
10963 | ||
10964 | if test "$wxUSE_JOYSTICK" = 1; then | |
10965 | for ac_hdr in linux/joystick.h | |
10966 | do | |
10967 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10968 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
80d895cd | 10969 | echo "configure:10970: checking for $ac_hdr" >&5 |
7750247f KB |
10970 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10971 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10972 | else | |
10973 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 10974 | #line 10975 "configure" |
7750247f KB |
10975 | #include "confdefs.h" |
10976 | #include <$ac_hdr> | |
10977 | EOF | |
10978 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
80d895cd | 10979 | { (eval echo configure:10980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9c884972 | 10980 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7750247f KB |
10981 | if test -z "$ac_err"; then |
10982 | rm -rf conftest* | |
10983 | eval "ac_cv_header_$ac_safe=yes" | |
10984 | else | |
10985 | echo "$ac_err" >&5 | |
10986 | echo "configure: failed program was:" >&5 | |
10987 | cat conftest.$ac_ext >&5 | |
10988 | rm -rf conftest* | |
10989 | eval "ac_cv_header_$ac_safe=no" | |
10990 | fi | |
10991 | rm -f conftest* | |
10992 | fi | |
10993 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10994 | echo "$ac_t""yes" 1>&6 | |
10995 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10996 | cat >> confdefs.h <<EOF | |
10997 | #define $ac_tr_hdr 1 | |
10998 | EOF | |
10999 | ||
11000 | else | |
11001 | echo "$ac_t""no" 1>&6 | |
11002 | fi | |
11003 | done | |
11004 | ||
11005 | if test "$ac_cv_header_linux_joystick_h" = "yes"; then | |
11006 | cat >> confdefs.h <<\EOF | |
11007 | #define wxUSE_JOYSTICK 1 | |
11008 | EOF | |
11009 | ||
11010 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
11011 | fi | |
11012 | fi | |
11013 | ||
11014 | ||
11015 | HAVE_DL_FUNCS=0 | |
11016 | HAVE_SHL_FUNCS=0 | |
11017 | if test "$wxUSE_DYNLIB_CLASS" = "yes"; then | |
11018 | for ac_func in dlopen | |
11019 | do | |
11020 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
80d895cd | 11021 | echo "configure:11022: checking for $ac_func" >&5 |
7750247f KB |
11022 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11023 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11024 | else | |
11025 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 11026 | #line 11027 "configure" |
7750247f KB |
11027 | #include "confdefs.h" |
11028 | /* System header to define __stub macros and hopefully few prototypes, | |
11029 | which can conflict with char $ac_func(); below. */ | |
11030 | #include <assert.h> | |
11031 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11032 | /* We use char because int might match the return type of a gcc2 | |
11033 | builtin and then its argument prototype would still apply. */ | |
11034 | char $ac_func(); | |
11035 | ||
11036 | int main() { | |
11037 | ||
11038 | /* The GNU C library defines this for functions which it implements | |
11039 | to always fail with ENOSYS. Some functions are actually named | |
11040 | something starting with __ and the normal name is an alias. */ | |
11041 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11042 | choke me | |
11043 | #else | |
80d895cd | 11044 | $ac_func(); |
7750247f KB |
11045 | #endif |
11046 | ||
11047 | ; return 0; } | |
11048 | EOF | |
80d895cd | 11049 | if { (eval echo configure:11050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7750247f KB |
11050 | rm -rf conftest* |
11051 | eval "ac_cv_func_$ac_func=yes" | |
11052 | else | |
11053 | echo "configure: failed program was:" >&5 | |
11054 | cat conftest.$ac_ext >&5 | |
11055 | rm -rf conftest* | |
11056 | eval "ac_cv_func_$ac_func=no" | |
11057 | fi | |
11058 | rm -f conftest* | |
11059 | fi | |
11060 | ||
11061 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11062 | echo "$ac_t""yes" 1>&6 | |
11063 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11064 | cat >> confdefs.h <<EOF | |
11065 | #define $ac_tr_func 1 | |
11066 | EOF | |
11067 | cat >> confdefs.h <<\EOF | |
11068 | #define HAVE_DLOPEN 1 | |
11069 | EOF | |
11070 | HAVE_DL_FUNCS=1 | |
11071 | else | |
11072 | echo "$ac_t""no" 1>&6 | |
11073 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
80d895cd | 11074 | echo "configure:11075: checking for dlopen in -ldl" >&5 |
7750247f KB |
11075 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
11076 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11077 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11078 | else | |
11079 | ac_save_LIBS="$LIBS" | |
11080 | LIBS="-ldl $LIBS" | |
11081 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 11082 | #line 11083 "configure" |
7750247f KB |
11083 | #include "confdefs.h" |
11084 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11085 | /* We use char because int might match the return type of a gcc2 | |
11086 | builtin and then its argument prototype would still apply. */ | |
11087 | char dlopen(); | |
11088 | ||
11089 | int main() { | |
11090 | dlopen() | |
11091 | ; return 0; } | |
11092 | EOF | |
80d895cd | 11093 | if { (eval echo configure:11094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7750247f KB |
11094 | rm -rf conftest* |
11095 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11096 | else | |
11097 | echo "configure: failed program was:" >&5 | |
11098 | cat conftest.$ac_ext >&5 | |
11099 | rm -rf conftest* | |
11100 | eval "ac_cv_lib_$ac_lib_var=no" | |
11101 | fi | |
11102 | rm -f conftest* | |
11103 | LIBS="$ac_save_LIBS" | |
11104 | ||
11105 | fi | |
11106 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11107 | echo "$ac_t""yes" 1>&6 | |
11108 | cat >> confdefs.h <<\EOF | |
11109 | #define HAVE_DLOPEN 1 | |
11110 | EOF | |
11111 | HAVE_DL_FUNCS=1 | |
11112 | else | |
11113 | echo "$ac_t""no" 1>&6 | |
11114 | fi | |
11115 | ||
11116 | fi | |
11117 | done | |
11118 | ||
11119 | for ac_func in shl_load | |
11120 | do | |
11121 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
80d895cd | 11122 | echo "configure:11123: checking for $ac_func" >&5 |
7750247f KB |
11123 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11124 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11125 | else | |
11126 | cat > conftest.$ac_ext <<EOF | |
80d895cd | 11127 | #line 11128 "configure" |
7750247f KB |
11128 | #include "confdefs.h" |
11129 | /* System header to define __stub macros and hopefully few prototypes, | |
11130 | which can conflict with char $ac_func(); below. */ | |
11131 | #include <assert.h> | |
11132 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11133 | /* We use char because int might match the return type of a gcc2 | |
11134 | builtin and then its argument prototype would still apply. */ | |
11135 | char $ac_func(); | |
11136 | ||
11137 | int main() { | |
11138 | ||
11139 | /* The GNU C library defines this for functions which it implements | |
11140 | to always fail with ENOSYS. Some functions are actually named | |
11141 | something starting with __ and the normal name is an alias. */ | |
11142 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11143 | choke me | |
11144 | #else | |
80d895cd | 11145 | $ac_func(); |
7750247f KB |
11146 | #endif |
11147 | ||
11148 | ; return 0; } | |
11149 | EOF | |
80d895cd | 11150 | if { (eval echo configure:11151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7750247f KB |
11151 | rm -rf conftest* |
11152 | eval "ac_cv_func_$ac_func=yes" | |
11153 | else | |
11154 | echo "configure: failed program was:" >&5 | |
11155 | cat conftest.$ac_ext >&5 | |
11156 | rm -rf conftest* | |
11157 | eval "ac_cv_func_$ac_func=no" | |
11158 | fi | |
11159 | rm -f conftest* | |
11160 | fi | |
11161 | ||
11162 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11163 | echo "$ac_t""yes" 1>&6 | |
11164 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11165 | cat >> confdefs.h <<EOF | |
11166 | #define $ac_tr_func 1 | |
11167 | EOF | |
11168 | cat >> confdefs.h <<\EOF | |
11169 | #define HAVE_SHL_LOAD 1 | |
11170 | EOF | |
11171 | HAVE_DL_FUNCS=1 HAVE_SHL_FUNCS=1 | |
11172 | else | |
11173 | echo "$ac_t""no" 1>&6 | |
11174 | fi | |
11175 | done | |
11176 | ||
11177 | ||
11178 | if test "$HAVE_DL_FUNCS" = 0; then | |
11179 | if test "$USE_UNIX" = 1; then | |
11180 | echo "configure: warning: "--with-dynlib and --with-odbc will be disabled due to missing shared library support"" 1>&2 | |
11181 | wxUSE_ODBC=no | |
11182 | wxUSE_DYNLIB_CLASS=no | |
11183 | else | |
11184 | echo "configure: warning: "Cannot check dynlib requirements on non-Unix platforms. dynlib remains enabled."" 1>&2 | |
11185 | fi | |
11186 | fi | |
11187 | fi | |
11188 | ||
11189 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
11190 | cat >> confdefs.h <<\EOF | |
11191 | #define wxUSE_DYNLIB_CLASS 1 | |
11192 | EOF | |
11193 | ||
11194 | fi | |
11195 | ||
11196 | ||
11197 | if test "$wxUSE_UNICODE" = "yes" ; then | |
11198 | cat >> confdefs.h <<\EOF | |
11199 | #define wxUSE_UNICODE 1 | |
11200 | EOF | |
11201 | ||
11202 | fi | |
11203 | ||
11204 | if test "$wxUSE_WCSRTOMBS" = "yes" ; then | |
11205 | cat >> confdefs.h <<\EOF | |
11206 | #define wxUSE_WCSRTOMBS 1 | |
11207 | EOF | |
11208 | ||
11209 | fi | |
11210 | ||
11211 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
11212 | cat >> confdefs.h <<\EOF | |
11213 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
11214 | EOF | |
11215 | ||
11216 | fi | |
11217 | ||
11218 | ||
11219 | IODBC_C_SRC="" | |
11220 | if test "$wxUSE_ODBC" = "yes" ; then | |
11221 | cat >> confdefs.h <<\EOF | |
11222 | #define wxUSE_ODBC 1 | |
11223 | EOF | |
11224 | ||
11225 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
11226 | fi | |
11227 | ||
11228 | ||
11229 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
11230 | cat >> confdefs.h <<\EOF | |
11231 | #define wxUSE_POSTSCRIPT 1 | |
11232 | EOF | |
11233 | ||
11234 | fi | |
11235 | ||
11236 | cat >> confdefs.h <<\EOF | |
11237 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
11238 | EOF | |
11239 | ||
11240 | ||
11241 | cat >> confdefs.h <<\EOF | |
11242 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
11243 | EOF | |
11244 | ||
11245 | ||
11246 | ||
11247 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
11248 | cat >> confdefs.h <<\EOF | |
11249 | #define wxUSE_CONSTRAINTS 1 | |
11250 | EOF | |
11251 | ||
11252 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
11253 | fi | |
11254 | ||
11255 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
11256 | cat >> confdefs.h <<\EOF | |
11257 | #define wxUSE_MDI_ARCHITECTURE 1 | |
11258 | EOF | |
11259 | ||
11260 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" | |
11261 | fi | |
11262 | ||
11263 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
11264 | cat >> confdefs.h <<\EOF | |
11265 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
11266 | EOF | |
11267 | ||
11268 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
11269 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
11270 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
11271 | fi | |
11272 | fi | |
11273 | ||
11274 | if test "$wxUSE_HELP" = "yes"; then | |
11275 | cat >> confdefs.h <<\EOF | |
11276 | #define wxUSE_HELP 1 | |
11277 | EOF | |
11278 | ||
11279 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
11280 | fi | |
11281 | ||
11282 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
11283 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
11284 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 | |
11285 | else | |
11286 | cat >> confdefs.h <<\EOF | |
11287 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
11288 | EOF | |
11289 | ||
11290 | fi | |
11291 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
11292 | fi | |
11293 | ||
11294 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
11295 | cat >> confdefs.h <<\EOF | |
11296 | #define wxUSE_PROLOGIO 1 | |
11297 | EOF | |
11298 | ||
11299 | fi | |
11300 | ||
11301 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
11302 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
11303 | cat >> confdefs.h <<\EOF | |
11304 | #define wxUSE_RESOURCES 1 | |
11305 | EOF | |
11306 | ||
11307 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" | |
11308 | else | |
11309 | echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2 | |
11310 | fi | |
11311 | fi | |
11312 | ||
11313 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
11314 | cat >> confdefs.h <<\EOF | |
11315 | #define wxUSE_X_RESOURCES 1 | |
11316 | EOF | |
11317 | ||
11318 | fi | |
11319 | ||
11320 | ||
11321 | if test "$wxUSE_IPC" = "yes"; then | |
11322 | cat >> confdefs.h <<\EOF | |
11323 | #define wxUSE_IPC 1 | |
11324 | EOF | |
11325 | ||
11326 | fi | |
11327 | ||
11328 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
11329 | cat >> confdefs.h <<\EOF | |
11330 | #define wxUSE_CLIPBOARD 1 | |
11331 | EOF | |
11332 | ||
11333 | fi | |
11334 | ||
11335 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
11336 | if test "$wxUSE_GTK" = 1; then | |
11337 | if test "$WXGTK12" != 1; then | |
11338 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2 | |
11339 | wxUSE_DRAG_AND_DROP=no | |
11340 | fi | |
11341 | fi | |
11342 | ||
11343 | if test "$wxUSE_MOTIF" = 1; then | |
11344 | echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2 | |
11345 | wxUSE_DRAG_AND_DROP=no | |
11346 | fi | |
11347 | ||
11348 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
11349 | cat >> confdefs.h <<\EOF | |
11350 | #define wxUSE_DRAG_AND_DROP 1 | |
11351 | EOF | |
11352 | ||
11353 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
11354 | fi | |
11355 | fi | |
11356 | ||
11357 | if test "$wxUSE_SPLINES" = "yes" ; then | |
11358 | cat >> confdefs.h <<\EOF | |
11359 | #define wxUSE_SPLINES 1 | |
11360 | EOF | |
11361 | ||
11362 | fi | |
11363 | ||
11364 | ||
11365 | if test "$wxUSE_ACCEL" = "yes"; then | |
11366 | cat >> confdefs.h <<\EOF | |
11367 | #define wxUSE_ACCEL 1 | |
11368 | EOF | |
11369 | ||
11370 | fi | |
11371 | ||
11372 | if test "$wxUSE_CARET" = "yes"; then | |
11373 | cat >> confdefs.h <<\EOF | |
11374 | #define wxUSE_CARET 1 | |
11375 | EOF | |
11376 | ||
11377 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
11378 | fi | |
11379 | ||
11380 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
11381 | cat >> confdefs.h <<\EOF | |
11382 | #define wxUSE_COMBOBOX 1 | |
11383 | EOF | |
11384 | ||
11385 | fi | |
11386 | ||
11387 | if test "$wxUSE_CHOICE" = "yes"; then | |
11388 | cat >> confdefs.h <<\EOF | |
11389 | #define wxUSE_CHOICE 1 | |
11390 | EOF | |
11391 | ||
11392 | fi | |
11393 | ||
11394 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
11395 | cat >> confdefs.h <<\EOF | |
11396 | #define wxUSE_BMPBUTTON 1 | |
11397 | EOF | |
11398 | ||
11399 | fi | |
11400 | ||
11401 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
11402 | cat >> confdefs.h <<\EOF | |
11403 | #define wxUSE_CHECKBOX 1 | |
11404 | EOF | |
11405 | ||
11406 | fi | |
11407 | ||
11408 | if test "$wxUSE_CHECKLST" = "yes"; then | |
11409 | cat >> confdefs.h <<\EOF | |
11410 | #define wxUSE_CHECKLISTBOX 1 | |
11411 | EOF | |
11412 | ||
11413 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
11414 | fi | |
11415 | ||
11416 | if test "$wxUSE_GAUGE" = "yes"; then | |
11417 | cat >> confdefs.h <<\EOF | |
11418 | #define wxUSE_GAUGE 1 | |
11419 | EOF | |
11420 | ||
11421 | fi | |
11422 | ||
11423 | if test "$wxUSE_GRID" = "yes"; then | |
11424 | cat >> confdefs.h <<\EOF | |
11425 | #define wxUSE_GRID 1 | |
11426 | EOF | |
11427 | ||
11428 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
11429 | fi | |
11430 | ||
11431 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
11432 | cat >> confdefs.h <<\EOF | |
11433 | #define wxUSE_IMAGLIST 1 | |
11434 | EOF | |
11435 | ||
11436 | fi | |
11437 | ||
11438 | if test "$wxUSE_LISTBOX" = "yes"; then | |
11439 | cat >> confdefs.h <<\EOF | |
11440 | #define wxUSE_LISTBOX 1 | |
11441 | EOF | |
11442 | ||
11443 | fi | |
11444 | ||
11445 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
11446 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
11447 | cat >> confdefs.h <<\EOF | |
11448 | #define wxUSE_LISTCTRL 1 | |
11449 | EOF | |
11450 | ||
11451 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
11452 | else | |
11453 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 | |
11454 | fi | |
11455 | fi | |
11456 | ||
11457 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
11458 | cat >> confdefs.h <<\EOF | |
11459 | #define wxUSE_NOTEBOOK 1 | |
11460 | EOF | |
11461 | ||
11462 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
11463 | fi | |
11464 | ||
11465 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
11466 | cat >> confdefs.h <<\EOF | |
11467 | #define wxUSE_RADIOBOX 1 | |
11468 | EOF | |
11469 | ||
11470 | fi | |
11471 | ||
11472 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
11473 | cat >> confdefs.h <<\EOF | |
11474 | #define wxUSE_RADIOBTN 1 | |
11475 | EOF | |
11476 | ||
11477 | fi | |
11478 | ||
11479 | if test "$wxUSE_SASH" = "yes"; then | |
11480 | cat >> confdefs.h <<\EOF | |
11481 | #define wxUSE_SASH 1 | |
11482 | EOF | |
11483 | ||
11484 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
11485 | fi | |
11486 | ||
11487 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
11488 | cat >> confdefs.h <<\EOF | |
11489 | #define wxUSE_SCROLLBAR 1 | |
11490 | EOF | |
11491 | ||
11492 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll" | |
11493 | fi | |
11494 | ||
11495 | if test "$wxUSE_SLIDER" = "yes"; then | |
11496 | cat >> confdefs.h <<\EOF | |
11497 | #define wxUSE_SLIDER 1 | |
11498 | EOF | |
11499 | ||
11500 | fi | |
11501 | ||
11502 | if test "$wxUSE_SPINBTN" = "yes"; then | |
11503 | cat >> confdefs.h <<\EOF | |
11504 | #define wxUSE_SPINBTN 1 | |
11505 | EOF | |
11506 | ||
11507 | fi | |
11508 | ||
11509 | if test "$wxUSE_SPLITTER" = "yes"; then | |
11510 | cat >> confdefs.h <<\EOF | |
11511 | #define wxUSE_SPLITTER 1 | |
11512 | EOF | |
11513 | ||
11514 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
11515 | fi | |
11516 | ||
11517 | if test "$wxUSE_STATBMP" = "yes"; then | |
11518 | cat >> confdefs.h <<\EOF | |
11519 | #define wxUSE_STATBMP 1 | |
11520 | EOF | |
11521 | ||
11522 | fi | |
11523 | ||
11524 | if test "$wxUSE_STATBOX" = "yes"; then | |
11525 | cat >> confdefs.h <<\EOF | |
11526 | #define wxUSE_STATBOX 1 | |
11527 | EOF | |
11528 | ||
11529 | fi | |
11530 | ||
11531 | if test "$wxUSE_STATLINE" = "yes"; then | |
11532 | if test "$wxUSE_WINE" = 1 ; then | |
11533 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 | |
11534 | else | |
11535 | if test "$wxUSE_MOTIF" = 1 ; then | |
11536 | echo "configure: warning: wxStaticLine is not supported under Motif" 1>&2 | |
11537 | else | |
11538 | cat >> confdefs.h <<\EOF | |
11539 | #define wxUSE_STATLINE 1 | |
11540 | EOF | |
11541 | ||
11542 | fi | |
11543 | fi | |
11544 | fi | |
11545 | ||
11546 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
11547 | cat >> confdefs.h <<\EOF | |
11548 | #define wxUSE_STATUSBAR 1 | |
11549 | EOF | |
11550 | ||
11551 | fi | |
11552 | ||
11553 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
11554 | cat >> confdefs.h <<\EOF | |
11555 | #define wxUSE_TAB_DIALOG 1 | |
11556 | EOF | |
11557 | ||
11558 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
11559 | fi | |
11560 | ||
11561 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
11562 | cat >> confdefs.h <<\EOF | |
11563 | #define wxUSE_TOOLBAR 1 | |
11564 | EOF | |
11565 | ||
11566 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
11567 | fi | |
11568 | ||
11569 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
11570 | if test "$wxUSE_MOTIF" = 1; then | |
11571 | echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2 | |
11572 | else | |
11573 | if test "$wxUSE_WINE" = 1; then | |
11574 | echo "configure: warning: wxTooltip not supported under WINE" 1>&2 | |
11575 | else | |
11576 | cat >> confdefs.h <<\EOF | |
11577 | #define wxUSE_TOOLTIPS 1 | |
11578 | EOF | |
11579 | ||
11580 | fi | |
11581 | fi | |
11582 | fi | |
11583 | ||
11584 | if test "$wxUSE_TREECTRL" = "yes"; then | |
11585 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
11586 | cat >> confdefs.h <<\EOF | |
11587 | #define wxUSE_TREECTRL 1 | |
11588 | EOF | |
11589 | ||
11590 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
11591 | else | |
11592 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 | |
11593 | fi | |
11594 | fi | |
11595 | ||
11596 | ||
11597 | ||
11598 | if test "$wxUSE_METAFILE" = "yes"; then | |
11599 | cat >> confdefs.h <<\EOF | |
11600 | #define wxUSE_METAFILE 1 | |
11601 | EOF | |
11602 | ||
11603 | fi | |
11604 | ||
11605 | if test "$wxUSE_DIRDLG" = "yes"; then | |
11606 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
11607 | echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2 | |
11608 | else | |
11609 | if test "$wxUSE_TREECTRL" != "yes"; then | |
11610 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
11611 | else | |
11612 | cat >> confdefs.h <<\EOF | |
11613 | #define wxUSE_DIRDLG 1 | |
11614 | EOF | |
11615 | ||
11616 | fi | |
11617 | fi | |
11618 | fi | |
11619 | ||
11620 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
11621 | cat >> confdefs.h <<\EOF | |
11622 | #define wxUSE_TEXTDLG 1 | |
11623 | EOF | |
11624 | ||
11625 | fi | |
11626 | ||
11627 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
11628 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
11629 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
11630 | else | |
11631 | cat >> confdefs.h <<\EOF | |
11632 | #define wxUSE_STARTUP_TIPS 1 | |
11633 | EOF | |
11634 | ||
11635 | fi | |
11636 | fi | |
11637 | ||
11638 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
11639 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
11640 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
11641 | else | |
11642 | cat >> confdefs.h <<\EOF | |
11643 | #define wxUSE_PROGRESSDLG 1 | |
11644 | EOF | |
11645 | ||
11646 | fi | |
11647 | fi | |
11648 | ||
11649 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
11650 | cat >> confdefs.h <<\EOF | |
11651 | #define wxUSE_MINIFRAME 1 | |
11652 | EOF | |
11653 | ||
11654 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
11655 | fi | |
11656 | ||
11657 | if test "$wxUSE_HTML" = "yes"; then | |
11658 | cat >> confdefs.h <<\EOF | |
11659 | #define wxUSE_HTML 1 | |
11660 | EOF | |
11661 | ||
11662 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
11663 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html" | |
11664 | fi | |
11665 | ||
11666 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
11667 | cat >> confdefs.h <<\EOF | |
11668 | #define wxUSE_VALIDATORS 1 | |
11669 | EOF | |
11670 | ||
11671 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
11672 | fi | |
11673 | ||
11674 | ||
11675 | GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $LIBPNG_LINK $ZLIB_LINK $TOOLKIT_LINK" | |
11676 | ||
11677 | EXTRA_LIBS="$LIBS $POSIX4_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $GUILIBS" | |
11678 | ||
11679 | LIBS="\${top_builddir}/src/${TOOLKIT_DIR}/${WX_LIBRARY_NAME} $EXTRA_LIBS" | |
11680 | ||
11681 | LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS" | |
11682 | ||
11683 | INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TOOLKIT_INCLUDE" | |
11684 | ||
11685 | if test "$GXX" = yes ; then | |
11686 | CXXWARNINGS="-Wall" | |
11687 | fi | |
11688 | EXTRA_CFLAGS="$WXDEBUG $PROFILE $OPTIMISE $INCLUDES" | |
11689 | ||
11690 | CPPFLAGS="-I\${top_srcdir}/include $CPPFLAGS" | |
11691 | CFLAGS="$CFLAGS $EXTRA_CFLAGS" | |
11692 | CXXFLAGS="$CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS" | |
11693 | ||
11694 | if test "$wxUSE_GUI" = "yes"; then | |
11695 | ||
11696 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS bombs controls dialogs drawing dynamic \ | |
11697 | forty fractal image wxpoem" | |
11698 | fi | |
11699 | ||
11700 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '`" | |
11701 | ||
11702 | ||
11703 | ||
11704 | ||
11705 | ||
11706 | ||
11707 | ||
11708 | ||
11709 | ||
11710 | ||
11711 | ||
11712 | ||
11713 | ||
11714 | ||
11715 | ||
11716 | ||
11717 | ||
11718 | ||
11719 | ||
11720 | ||
11721 | ||
11722 | ||
11723 | ||
11724 | ||
11725 | ||
11726 | ||
11727 | ||
11728 | ||
11729 | ||
11730 | ||
11731 | ||
11732 | ||
11733 | ||
11734 | ||
11735 | ||
11736 | ||
11737 | ||
11738 | ||
11739 | ||
5586805b RR |
11740 | |
11741 | ||
11742 | ||
11743 | ||
7750247f KB |
11744 | |
11745 | ||
11746 | ||
80d895cd | 11747 | |
7750247f KB |
11748 | |
11749 | ||
11750 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
80d895cd | 11751 | echo "configure:11752: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
7750247f KB |
11752 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
11753 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
11754 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11755 | else | |
11756 | cat > conftestmake <<\EOF | |
11757 | all: | |
11758 | @echo 'ac_maketemp="${MAKE}"' | |
11759 | EOF | |
11760 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
11761 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
11762 | if test -n "$ac_maketemp"; then | |
11763 | eval ac_cv_prog_make_${ac_make}_set=yes | |
11764 | else | |
11765 | eval ac_cv_prog_make_${ac_make}_set=no | |
11766 | fi | |
11767 | rm -f conftestmake | |
11768 | fi | |
11769 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
11770 | echo "$ac_t""yes" 1>&6 | |
11771 | SET_MAKE= | |
11772 | else | |
11773 | echo "$ac_t""no" 1>&6 | |
11774 | SET_MAKE="MAKE=${MAKE-make}" | |
11775 | fi | |
11776 | ||
11777 | ||
11778 | ||
11779 | ||
11780 | ||
11781 | trap '' 1 2 15 | |
11782 | cat > confcache <<\EOF | |
11783 | # This file is a shell script that caches the results of configure | |
11784 | # tests run on this system so they can be shared between configure | |
11785 | # scripts and configure runs. It is not useful on other systems. | |
11786 | # If it contains results you don't want to keep, you may remove or edit it. | |
11787 | # | |
11788 | # By default, configure uses ./config.cache as the cache file, | |
11789 | # creating it if it does not exist already. You can give configure | |
11790 | # the --cache-file=FILE option to use a different cache file; that is | |
11791 | # what configure does when it calls configure scripts in | |
11792 | # subdirectories, so they share the cache. | |
11793 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
11794 | # config.status only pays attention to the cache file if you give it the | |
11795 | # --recheck option to rerun configure. | |
11796 | # | |
11797 | EOF | |
11798 | # The following way of writing the cache mishandles newlines in values, | |
11799 | # but we know of no workaround that is simple, portable, and efficient. | |
11800 | # So, don't put newlines in cache variables' values. | |
11801 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
11802 | # and sets the high bit in the cache file unless we assign to the vars. | |
11803 | (set) 2>&1 | | |
9c884972 | 11804 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
7750247f KB |
11805 | *ac_space=\ *) |
11806 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
11807 | # turns \\\\ into \\, and sed turns \\ into \). | |
11808 | sed -n \ | |
11809 | -e "s/'/'\\\\''/g" \ | |
11810 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
11811 | ;; | |
11812 | *) | |
11813 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
11814 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
11815 | ;; | |
11816 | esac >> confcache | |
11817 | if cmp -s $cache_file confcache; then | |
11818 | : | |
11819 | else | |
11820 | if test -w $cache_file; then | |
11821 | echo "updating cache $cache_file" | |
11822 | cat confcache > $cache_file | |
11823 | else | |
11824 | echo "not updating unwritable cache $cache_file" | |
11825 | fi | |
11826 | fi | |
11827 | rm -f confcache | |
11828 | ||
11829 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
11830 | ||
11831 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
11832 | # Let make expand exec_prefix. | |
11833 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
11834 | ||
11835 | # Any assignment to VPATH causes Sun make to only execute | |
11836 | # the first set of double-colon rules, so remove it if not needed. | |
11837 | # If there is a colon in the path, we need to keep it. | |
11838 | if test "x$srcdir" = x.; then | |
11839 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
11840 | fi | |
11841 | ||
11842 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
11843 | ||
11844 | DEFS=-DHAVE_CONFIG_H | |
11845 | ||
11846 | # Without the "./", some shells look in PATH for config.status. | |
11847 | : ${CONFIG_STATUS=./config.status} | |
11848 | ||
11849 | echo creating $CONFIG_STATUS | |
11850 | rm -f $CONFIG_STATUS | |
11851 | cat > $CONFIG_STATUS <<EOF | |
11852 | #! /bin/sh | |
11853 | # Generated automatically by configure. | |
11854 | # Run this file to recreate the current configuration. | |
11855 | # This directory was configured as follows, | |
11856 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
11857 | # | |
11858 | # $0 $ac_configure_args | |
11859 | # | |
11860 | # Compiler output produced by configure, useful for debugging | |
11861 | # configure, is in ./config.log if it exists. | |
11862 | ||
11863 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
11864 | for ac_option | |
11865 | do | |
11866 | case "\$ac_option" in | |
11867 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
11868 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
11869 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
11870 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
80d895cd | 11871 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
7750247f KB |
11872 | exit 0 ;; |
11873 | -help | --help | --hel | --he | --h) | |
11874 | echo "\$ac_cs_usage"; exit 0 ;; | |
11875 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
11876 | esac | |
11877 | done | |
11878 | ||
11879 | ac_given_srcdir=$srcdir | |
11880 | ac_given_INSTALL="$INSTALL" | |
11881 | ||
11882 | trap 'rm -fr `echo " | |
11883 | wx-config | |
11884 | src/make.env | |
11885 | src/makeprog.env | |
11886 | src/makelib.env | |
11887 | Makefile | |
11888 | samples/Makefile | |
11889 | samples/bombs/Makefile | |
11890 | samples/caret/Makefile | |
11891 | samples/checklst/Makefile | |
11892 | samples/config/Makefile | |
11893 | samples/controls/Makefile | |
11894 | samples/dialogs/Makefile | |
11895 | samples/docview/Makefile | |
11896 | samples/docvwmdi/Makefile | |
11897 | samples/dnd/Makefile | |
11898 | samples/drawing/Makefile | |
11899 | samples/dynamic/Makefile | |
11900 | samples/image/Makefile | |
11901 | samples/layout/Makefile | |
11902 | samples/listctrl/Makefile | |
11903 | samples/mdi/Makefile | |
11904 | samples/minifram/Makefile | |
11905 | samples/minimal/Makefile | |
11906 | samples/notebook/Makefile | |
11907 | samples/printing/Makefile | |
11908 | samples/proplist/Makefile | |
11909 | samples/sashtest/Makefile | |
11910 | samples/scroll/Makefile | |
11911 | samples/splitter/Makefile | |
11912 | samples/text/Makefile | |
11913 | samples/thread/Makefile | |
11914 | samples/toolbar/Makefile | |
11915 | samples/treectrl/Makefile | |
11916 | samples/typetest/Makefile | |
11917 | samples/validate/Makefile | |
11918 | samples/wxpoem/Makefile | |
11919 | samples/wxsocket/Makefile | |
11920 | samples/wizard/Makefile | |
11921 | samples/html/Makefile | |
11922 | samples/html/about/Makefile | |
11923 | samples/html/help/Makefile | |
11924 | samples/html/printing/Makefile | |
11925 | samples/html/test/Makefile | |
11926 | samples/html/zip/Makefile | |
11927 | samples/html/virtual/Makefile | |
11928 | samples/html/widget/Makefile | |
11929 | utils/Makefile | |
11930 | utils/wxMMedia2/Makefile | |
11931 | utils/wxMMedia2/lib/Makefile | |
11932 | utils/wxMMedia2/sample/Makefile | |
11933 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
11934 | EOF | |
11935 | cat >> $CONFIG_STATUS <<EOF | |
11936 | ||
11937 | # Protect against being on the right side of a sed subst in config.status. | |
11938 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
11939 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
11940 | $ac_vpsub | |
11941 | $extrasub | |
9c884972 | 11942 | s%@SHELL@%$SHELL%g |
7750247f KB |
11943 | s%@CFLAGS@%$CFLAGS%g |
11944 | s%@CPPFLAGS@%$CPPFLAGS%g | |
11945 | s%@CXXFLAGS@%$CXXFLAGS%g | |
9c884972 | 11946 | s%@FFLAGS@%$FFLAGS%g |
7750247f KB |
11947 | s%@DEFS@%$DEFS%g |
11948 | s%@LDFLAGS@%$LDFLAGS%g | |
11949 | s%@LIBS@%$LIBS%g | |
11950 | s%@exec_prefix@%$exec_prefix%g | |
11951 | s%@prefix@%$prefix%g | |
11952 | s%@program_transform_name@%$program_transform_name%g | |
11953 | s%@bindir@%$bindir%g | |
11954 | s%@sbindir@%$sbindir%g | |
11955 | s%@libexecdir@%$libexecdir%g | |
11956 | s%@datadir@%$datadir%g | |
11957 | s%@sysconfdir@%$sysconfdir%g | |
11958 | s%@sharedstatedir@%$sharedstatedir%g | |
11959 | s%@localstatedir@%$localstatedir%g | |
11960 | s%@libdir@%$libdir%g | |
11961 | s%@includedir@%$includedir%g | |
11962 | s%@oldincludedir@%$oldincludedir%g | |
11963 | s%@infodir@%$infodir%g | |
11964 | s%@mandir@%$mandir%g | |
11965 | s%@host@%$host%g | |
11966 | s%@host_alias@%$host_alias%g | |
11967 | s%@host_cpu@%$host_cpu%g | |
11968 | s%@host_vendor@%$host_vendor%g | |
11969 | s%@host_os@%$host_os%g | |
11970 | s%@target@%$target%g | |
11971 | s%@target_alias@%$target_alias%g | |
11972 | s%@target_cpu@%$target_cpu%g | |
11973 | s%@target_vendor@%$target_vendor%g | |
11974 | s%@target_os@%$target_os%g | |
11975 | s%@build@%$build%g | |
11976 | s%@build_alias@%$build_alias%g | |
11977 | s%@build_cpu@%$build_cpu%g | |
11978 | s%@build_vendor@%$build_vendor%g | |
11979 | s%@build_os@%$build_os%g | |
11980 | s%@CC@%$CC%g | |
11981 | s%@CPP@%$CPP%g | |
11982 | s%@CXX@%$CXX%g | |
11983 | s%@CXXCPP@%$CXXCPP%g | |
11984 | s%@RANLIB@%$RANLIB%g | |
11985 | s%@AR@%$AR%g | |
11986 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
9c884972 | 11987 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
7750247f KB |
11988 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
11989 | s%@STRIP@%$STRIP%g | |
11990 | s%@YACC@%$YACC%g | |
11991 | s%@LEX@%$LEX%g | |
11992 | s%@LEXLIB@%$LEXLIB%g | |
11993 | s%@LN_S@%$LN_S%g | |
11994 | s%@GTK_CONFIG@%$GTK_CONFIG%g | |
11995 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g | |
11996 | s%@GTK_LIBS@%$GTK_LIBS%g | |
11997 | s%@X_CFLAGS@%$X_CFLAGS%g | |
11998 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
11999 | s%@X_LIBS@%$X_LIBS%g | |
12000 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
12001 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
12002 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
12003 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
12004 | s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g | |
12005 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
12006 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
12007 | s%@WX_LIBRARY@%$WX_LIBRARY%g | |
12008 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
12009 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
12010 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
12011 | s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g | |
80d895cd | 12012 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g |
7750247f KB |
12013 | s%@WX_CREATE_LINKS@%$WX_CREATE_LINKS%g |
12014 | s%@WX_CREATE_INSTALLED_LINKS@%$WX_CREATE_INSTALLED_LINKS%g | |
12015 | s%@SHARED_LD@%$SHARED_LD%g | |
12016 | s%@PIC_FLAG@%$PIC_FLAG%g | |
5586805b | 12017 | s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g |
7750247f KB |
12018 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g |
12019 | s%@TOOLKIT@%$TOOLKIT%g | |
12020 | s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g | |
12021 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
12022 | s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g | |
7750247f | 12023 | s%@GUIHEADERS@%$GUIHEADERS%g |
5586805b | 12024 | s%@GUIOBJS@%$GUIOBJS%g |
7750247f KB |
12025 | s%@COMMONOBJS@%$COMMONOBJS%g |
12026 | s%@GENERICOBJS@%$GENERICOBJS%g | |
5586805b RR |
12027 | s%@GUIDEPS@%$GUIDEPS%g |
12028 | s%@COMMONDEPS@%$COMMONDEPS%g | |
12029 | s%@GENERICDEPS@%$GENERICDEPS%g | |
7750247f KB |
12030 | s%@UNIXOBJS@%$UNIXOBJS%g |
12031 | s%@GUIDIST@%$GUIDIST%g | |
12032 | s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g | |
12033 | s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g | |
12034 | s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g | |
12035 | s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g | |
12036 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g | |
12037 | s%@USER_SUBDIRS@%$USER_SUBDIRS%g | |
12038 | s%@EXTRA_LIBS@%$EXTRA_LIBS%g | |
12039 | s%@LD_LIBS@%$LD_LIBS%g | |
12040 | s%@SET_MAKE@%$SET_MAKE%g | |
12041 | ||
12042 | CEOF | |
12043 | EOF | |
12044 | ||
12045 | cat >> $CONFIG_STATUS <<\EOF | |
12046 | ||
12047 | # Split the substitutions into bite-sized pieces for seds with | |
12048 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
12049 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
12050 | ac_file=1 # Number of current file. | |
12051 | ac_beg=1 # First line for current file. | |
12052 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
12053 | ac_more_lines=: | |
12054 | ac_sed_cmds="" | |
12055 | while $ac_more_lines; do | |
12056 | if test $ac_beg -gt 1; then | |
12057 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
12058 | else | |
12059 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
12060 | fi | |
12061 | if test ! -s conftest.s$ac_file; then | |
12062 | ac_more_lines=false | |
12063 | rm -f conftest.s$ac_file | |
12064 | else | |
12065 | if test -z "$ac_sed_cmds"; then | |
12066 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
12067 | else | |
12068 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
12069 | fi | |
12070 | ac_file=`expr $ac_file + 1` | |
12071 | ac_beg=$ac_end | |
12072 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
12073 | fi | |
12074 | done | |
12075 | if test -z "$ac_sed_cmds"; then | |
12076 | ac_sed_cmds=cat | |
12077 | fi | |
12078 | EOF | |
12079 | ||
12080 | cat >> $CONFIG_STATUS <<EOF | |
12081 | ||
12082 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
12083 | src/make.env | |
12084 | src/makeprog.env | |
12085 | src/makelib.env | |
12086 | Makefile | |
12087 | samples/Makefile | |
12088 | samples/bombs/Makefile | |
12089 | samples/caret/Makefile | |
12090 | samples/checklst/Makefile | |
12091 | samples/config/Makefile | |
12092 | samples/controls/Makefile | |
12093 | samples/dialogs/Makefile | |
12094 | samples/docview/Makefile | |
12095 | samples/docvwmdi/Makefile | |
12096 | samples/dnd/Makefile | |
12097 | samples/drawing/Makefile | |
12098 | samples/dynamic/Makefile | |
12099 | samples/image/Makefile | |
12100 | samples/layout/Makefile | |
12101 | samples/listctrl/Makefile | |
12102 | samples/mdi/Makefile | |
12103 | samples/minifram/Makefile | |
12104 | samples/minimal/Makefile | |
12105 | samples/notebook/Makefile | |
12106 | samples/printing/Makefile | |
12107 | samples/proplist/Makefile | |
12108 | samples/sashtest/Makefile | |
12109 | samples/scroll/Makefile | |
12110 | samples/splitter/Makefile | |
12111 | samples/text/Makefile | |
12112 | samples/thread/Makefile | |
12113 | samples/toolbar/Makefile | |
12114 | samples/treectrl/Makefile | |
12115 | samples/typetest/Makefile | |
12116 | samples/validate/Makefile | |
12117 | samples/wxpoem/Makefile | |
12118 | samples/wxsocket/Makefile | |
12119 | samples/wizard/Makefile | |
12120 | samples/html/Makefile | |
12121 | samples/html/about/Makefile | |
12122 | samples/html/help/Makefile | |
12123 | samples/html/printing/Makefile | |
12124 | samples/html/test/Makefile | |
12125 | samples/html/zip/Makefile | |
12126 | samples/html/virtual/Makefile | |
12127 | samples/html/widget/Makefile | |
12128 | utils/Makefile | |
12129 | utils/wxMMedia2/Makefile | |
12130 | utils/wxMMedia2/lib/Makefile | |
12131 | utils/wxMMedia2/sample/Makefile | |
12132 | "} | |
12133 | EOF | |
12134 | cat >> $CONFIG_STATUS <<\EOF | |
12135 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
12136 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
12137 | case "$ac_file" in | |
12138 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
12139 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
12140 | *) ac_file_in="${ac_file}.in" ;; | |
12141 | esac | |
12142 | ||
12143 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
12144 | ||
12145 | # Remove last slash and all that follows it. Not all systems have dirname. | |
12146 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
12147 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
12148 | # The file is in a subdirectory. | |
12149 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
12150 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
12151 | # A "../" for each directory in $ac_dir_suffix. | |
12152 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
12153 | else | |
12154 | ac_dir_suffix= ac_dots= | |
12155 | fi | |
12156 | ||
12157 | case "$ac_given_srcdir" in | |
12158 | .) srcdir=. | |
12159 | if test -z "$ac_dots"; then top_srcdir=. | |
12160 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
12161 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
12162 | *) # Relative path. | |
12163 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
12164 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
12165 | esac | |
12166 | ||
12167 | case "$ac_given_INSTALL" in | |
12168 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
12169 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
12170 | esac | |
12171 | ||
12172 | echo creating "$ac_file" | |
12173 | rm -f "$ac_file" | |
12174 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
12175 | case "$ac_file" in | |
12176 | *Makefile*) ac_comsub="1i\\ | |
12177 | # $configure_input" ;; | |
12178 | *) ac_comsub= ;; | |
12179 | esac | |
12180 | ||
12181 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
12182 | sed -e "$ac_comsub | |
12183 | s%@configure_input@%$configure_input%g | |
12184 | s%@srcdir@%$srcdir%g | |
12185 | s%@top_srcdir@%$top_srcdir%g | |
12186 | s%@INSTALL@%$INSTALL%g | |
12187 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
12188 | fi; done | |
12189 | rm -f conftest.s* | |
12190 | ||
12191 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
12192 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
12193 | # | |
12194 | # ac_d sets the value in "#define NAME VALUE" lines. | |
12195 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
12196 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
12197 | ac_dC='\3' | |
12198 | ac_dD='%g' | |
12199 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
12200 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
12201 | ac_uB='\([ ]\)%\1#\2define\3' | |
12202 | ac_uC=' ' | |
12203 | ac_uD='\4%g' | |
12204 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
12205 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
12206 | ac_eB='$%\1#\2define\3' | |
12207 | ac_eC=' ' | |
12208 | ac_eD='%g' | |
12209 | ||
12210 | if test "${CONFIG_HEADERS+set}" != set; then | |
12211 | EOF | |
12212 | cat >> $CONFIG_STATUS <<EOF | |
12213 | CONFIG_HEADERS="setup.h:setup.h.in" | |
12214 | EOF | |
12215 | cat >> $CONFIG_STATUS <<\EOF | |
12216 | fi | |
12217 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
12218 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
12219 | case "$ac_file" in | |
12220 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
12221 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
12222 | *) ac_file_in="${ac_file}.in" ;; | |
12223 | esac | |
12224 | ||
12225 | echo creating $ac_file | |
12226 | ||
12227 | rm -f conftest.frag conftest.in conftest.out | |
12228 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
12229 | cat $ac_file_inputs > conftest.in | |
12230 | ||
12231 | EOF | |
12232 | ||
12233 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
12234 | # the proper values into config.h.in to produce config.h. And first: | |
12235 | # Protect against being on the right side of a sed subst in config.status. | |
12236 | # Protect against being in an unquoted here document in config.status. | |
12237 | rm -f conftest.vals | |
12238 | cat > conftest.hdr <<\EOF | |
12239 | s/[\\&%]/\\&/g | |
12240 | s%[\\$`]%\\&%g | |
12241 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
12242 | s%ac_d%ac_u%gp | |
12243 | s%ac_u%ac_e%gp | |
12244 | EOF | |
12245 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
12246 | rm -f conftest.hdr | |
12247 | ||
12248 | # This sed command replaces #undef with comments. This is necessary, for | |
12249 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
12250 | # on some systems where configure will not decide to define it. | |
12251 | cat >> conftest.vals <<\EOF | |
12252 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
12253 | EOF | |
12254 | ||
12255 | # Break up conftest.vals because some shells have a limit on | |
12256 | # the size of here documents, and old seds have small limits too. | |
12257 | ||
12258 | rm -f conftest.tail | |
12259 | while : | |
12260 | do | |
12261 | ac_lines=`grep -c . conftest.vals` | |
12262 | # grep -c gives empty output for an empty file on some AIX systems. | |
12263 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
12264 | # Write a limited-size here document to conftest.frag. | |
12265 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
12266 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
12267 | echo 'CEOF | |
12268 | sed -f conftest.frag conftest.in > conftest.out | |
12269 | rm -f conftest.in | |
12270 | mv conftest.out conftest.in | |
12271 | ' >> $CONFIG_STATUS | |
12272 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
12273 | rm -f conftest.vals | |
12274 | mv conftest.tail conftest.vals | |
12275 | done | |
12276 | rm -f conftest.vals | |
12277 | ||
12278 | cat >> $CONFIG_STATUS <<\EOF | |
12279 | rm -f conftest.frag conftest.h | |
12280 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
12281 | cat conftest.in >> conftest.h | |
12282 | rm -f conftest.in | |
12283 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
12284 | echo "$ac_file is unchanged" | |
12285 | rm -f conftest.h | |
12286 | else | |
12287 | # Remove last slash and all that follows it. Not all systems have dirname. | |
12288 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
12289 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
12290 | # The file is in a subdirectory. | |
12291 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
12292 | fi | |
12293 | rm -f $ac_file | |
12294 | mv conftest.h $ac_file | |
12295 | fi | |
12296 | fi; done | |
12297 | ||
12298 | EOF | |
12299 | cat >> $CONFIG_STATUS <<EOF | |
12300 | ||
12301 | LN_S="${ac_cv_prog_LN_S}" | |
12302 | TOOLKIT_DIR="${TOOLKIT_DIR}" | |
12303 | ||
12304 | ||
12305 | EOF | |
12306 | cat >> $CONFIG_STATUS <<\EOF | |
12307 | ||
12308 | chmod +x wx-config | |
12309 | if test ! -d include; then | |
12310 | mkdir include | |
12311 | fi | |
12312 | if test ! -d include/wx; then | |
12313 | mkdir include/wx | |
12314 | fi | |
12315 | if test ! -d include/wx/${TOOLKIT_DIR}; then | |
12316 | mkdir include/wx/${TOOLKIT_DIR} | |
12317 | fi | |
12318 | cp -f setup.h include/wx/${TOOLKIT_DIR}/setup.h | |
12319 | ||
12320 | exit 0 | |
12321 | EOF | |
12322 | chmod +x $CONFIG_STATUS | |
12323 | rm -fr confdefs* $ac_clean_files | |
12324 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
12325 | ||
12326 |