]>
Commit | Line | Data |
---|---|---|
10f2d63a VZ |
1 | #! /bin/sh |
2 | ||
3 | # From configure.in Id: configure.in | |
4 | ||
5 | ||
6 | ||
7 | ||
8 | ||
9 | ||
10 | ||
11 | ||
12 | ||
13 | ||
14 | ||
15 | ||
16 | ||
17 | ||
18 | ||
19 | ||
20 | ||
21 | ||
22 | ||
23 | ||
24 | ||
25 | ||
26 | ||
27 | ||
28 | ||
29 | ||
30 | ||
31 | ||
32 | ||
33 | ||
34 | ||
35 | ||
10f2d63a | 36 | |
422107f9 VZ |
37 | |
38 | ||
10f2d63a VZ |
39 | |
40 | ||
41 | ||
42 | # Guess values for system-dependent variables and create Makefiles. | |
e8482f24 | 43 | # Generated automatically using autoconf version 2.13 |
10f2d63a VZ |
44 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
45 | # | |
46 | # This configure script is free software; the Free Software Foundation | |
47 | # gives unlimited permission to copy, distribute and modify it. | |
48 | ||
49 | # Defaults: | |
50 | ac_help= | |
51 | ac_default_prefix=/usr/local | |
52 | # Any additions from configure.in: | |
53 | ac_help="$ac_help | |
54 | --enable-gui use GUI classes" | |
55 | ac_help="$ac_help | |
56 | --with-gtk use GTK+" | |
57 | ac_help="$ac_help | |
58 | --with-motif use Motif/Lesstif" | |
59 | ac_help="$ac_help | |
60 | --with-wine use WINE" | |
61 | ac_help="$ac_help | |
62 | --with-cygwin use Cygwin for MS-Windows" | |
63 | ac_help="$ac_help | |
64 | --with-mingw use GCC Minimal MS-Windows" | |
e07802fc VZ |
65 | ac_help="$ac_help |
66 | --with-pm use OS/2 Presentation Manager" | |
10f2d63a VZ |
67 | ac_help="$ac_help |
68 | --with-gtk-prefix=PFX Prefix where GTK is installed" | |
69 | ac_help="$ac_help | |
70 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed" | |
71 | ac_help="$ac_help | |
10f2d63a VZ |
72 | --with-libpng use libpng (PNG image format)" |
73 | ac_help="$ac_help | |
74 | --with-libjpeg use libjpeg (JPEG file format)" | |
75 | ac_help="$ac_help | |
c7a2bf27 RR |
76 | --with-libtiff use libtiff (TIFF file format)" |
77 | ac_help="$ac_help | |
10f2d63a VZ |
78 | --with-opengl use OpenGL (or Mesa)" |
79 | ac_help="$ac_help | |
b12915c1 VZ |
80 | --with-dmalloc use dmalloc library (www.letters.com/dmalloc)" |
81 | ac_help="$ac_help | |
82 | --with-zlib use zlib for LZW compression" | |
83 | ac_help="$ac_help | |
10f2d63a VZ |
84 | --with-odbc use the IODBC and wxODBC classes" |
85 | ac_help="$ac_help | |
86 | --enable-shared create shared library code" | |
87 | ac_help="$ac_help | |
00cf1208 RR |
88 | --enable-burnt_name create set name in shared library " |
89 | ac_help="$ac_help | |
10f2d63a VZ |
90 | --enable-optimise create optimised code" |
91 | ac_help="$ac_help | |
92 | --enable-debug same as debug_flag and debug_info" | |
93 | ac_help="$ac_help | |
94 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" | |
95 | ac_help="$ac_help | |
96 | --enable-debug_info create code with debugging information" | |
97 | ac_help="$ac_help | |
98 | --enable-debug_gdb create code with extra GDB debugging information" | |
99 | ac_help="$ac_help | |
100 | --enable-debug_cntxt use wxDebugContext" | |
101 | ac_help="$ac_help | |
102 | --enable-mem_tracing create code with memory tracing" | |
103 | ac_help="$ac_help | |
104 | --enable-profile create code with profiling information" | |
105 | ac_help="$ac_help | |
106 | --enable-no_rtti create code without RTTI information" | |
107 | ac_help="$ac_help | |
108 | --enable-no_exceptions create code without exceptions information" | |
109 | ac_help="$ac_help | |
110 | --enable-permissive compile code disregarding strict ANSI" | |
111 | ac_help="$ac_help | |
112 | --enable-no_deps create code without dependency information" | |
113 | ac_help="$ac_help | |
114 | --enable-intl use internationalization system" | |
115 | ac_help="$ac_help | |
116 | --enable-config use wxConfig (and derived) classes" | |
117 | ac_help="$ac_help | |
118 | --enable-sockets use socket/network classes" | |
119 | ac_help="$ac_help | |
10f2d63a VZ |
120 | --enable-ipc use interprocess communication (wxSocket etc.)" |
121 | ac_help="$ac_help | |
eb4efbdc VZ |
122 | --enable-dialupman use dialup network classes" |
123 | ac_help="$ac_help | |
10f2d63a VZ |
124 | --enable-apple_ieee use the Apple IEEE codec" |
125 | ac_help="$ac_help | |
126 | --enable-timedate use date/time classes" | |
127 | ac_help="$ac_help | |
128 | --enable-wave use wxWave class" | |
129 | ac_help="$ac_help | |
130 | --enable-fraction use wxFraction class" | |
131 | ac_help="$ac_help | |
132 | --enable-dynlib use wxLibrary class for DLL loading" | |
133 | ac_help="$ac_help | |
134 | --enable-longlong use wxLongLong class" | |
135 | ac_help="$ac_help | |
136 | --enable-log use logging system" | |
137 | ac_help="$ac_help | |
138 | --enable-streams use wxStream etc classes" | |
139 | ac_help="$ac_help | |
140 | --enable-file use wxFile classes" | |
141 | ac_help="$ac_help | |
142 | --enable-textfile use wxTextFile classes" | |
143 | ac_help="$ac_help | |
144 | --enable-unicode compile wxString with Unicode support" | |
145 | ac_help="$ac_help | |
146 | --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs" | |
147 | ac_help="$ac_help | |
148 | --enable-wxprintfv use wxWindows implementation of vprintf()" | |
149 | ac_help="$ac_help | |
10f2d63a VZ |
150 | --enable-std_iostreams use standard C++ stream classes" |
151 | ac_help="$ac_help | |
24528b0c VS |
152 | --enable-filesystem use virtual file systems classes" |
153 | ac_help="$ac_help | |
10f2d63a VZ |
154 | --enable-fs_inet use virtual HTTP/FTP filesystems" |
155 | ac_help="$ac_help | |
156 | --enable-fs_zip use virtual ZIP filesystems" | |
157 | ac_help="$ac_help | |
158 | --enable-zipstream use wxZipInputStream" | |
159 | ac_help="$ac_help | |
eb4efbdc VZ |
160 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException" |
161 | ac_help="$ac_help | |
10f2d63a VZ |
162 | --enable-threads use threads" |
163 | ac_help="$ac_help | |
164 | --enable-serial use class serialization" | |
165 | ac_help="$ac_help | |
166 | --enable-docview use document view architecture" | |
167 | ac_help="$ac_help | |
168 | --enable-help use help (using external browser at present)" | |
169 | ac_help="$ac_help | |
170 | --enable-constraints use layout-constraints system" | |
171 | ac_help="$ac_help | |
172 | --enable-printarch use printing architecture" | |
173 | ac_help="$ac_help | |
174 | --enable-mdi use multiple document interface architecture" | |
175 | ac_help="$ac_help | |
176 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" | |
177 | ac_help="$ac_help | |
178 | --enable-prologio use Prolog IO library" | |
179 | ac_help="$ac_help | |
180 | --enable-resources use wxWindows resources" | |
181 | ac_help="$ac_help | |
182 | --enable-xresources use X resources for save (default for gtk+)" | |
183 | ac_help="$ac_help | |
184 | --enable-clipboard use wxClipboard classes" | |
185 | ac_help="$ac_help | |
186 | --enable-dnd use Drag'n'Drop classes" | |
187 | ac_help="$ac_help | |
188 | --enable-wxtree make wxTree library" | |
189 | ac_help="$ac_help | |
190 | --enable-controls use all usual controls" | |
191 | ac_help="$ac_help | |
192 | --enable-accel use accelerators" | |
193 | ac_help="$ac_help | |
194 | --enable-caret use wxCaret class" | |
195 | ac_help="$ac_help | |
196 | --enable-bmpbutton use wxBitmapButton class" | |
197 | ac_help="$ac_help | |
198 | --enable-checkbox use wxCheckBox class" | |
199 | ac_help="$ac_help | |
200 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" | |
201 | ac_help="$ac_help | |
202 | --enable-choice use wxChoice class" | |
203 | ac_help="$ac_help | |
204 | --enable-combobox use wxComboBox classes" | |
205 | ac_help="$ac_help | |
206 | --enable-gauge use wxGauge class" | |
207 | ac_help="$ac_help | |
208 | --enable-grid use wxGrid class" | |
209 | ac_help="$ac_help | |
210 | --enable-newgrid use new wxGrid class" | |
211 | ac_help="$ac_help | |
212 | --enable-imaglist use wxImageList class" | |
213 | ac_help="$ac_help | |
214 | --enable-listbox use wxListBox class" | |
215 | ac_help="$ac_help | |
216 | --enable-listctrl use wxListCtrl class" | |
217 | ac_help="$ac_help | |
218 | --enable-notebook use wxNotebook class" | |
219 | ac_help="$ac_help | |
220 | --enable-radiobox use wxRadioBox class" | |
221 | ac_help="$ac_help | |
222 | --enable-radiobtn use wxRadioButton class" | |
223 | ac_help="$ac_help | |
224 | --enable-sash use wxSashWindow class" | |
225 | ac_help="$ac_help | |
226 | --enable-scrollbar use wxScrollBar class and scrollable windows" | |
227 | ac_help="$ac_help | |
228 | --enable-slider use wxSlider class" | |
229 | ac_help="$ac_help | |
230 | --enable-spinbtn use wxSpinButton class" | |
231 | ac_help="$ac_help | |
56cfaa52 RR |
232 | --enable-spinctrl use wxSpinCtrl class" |
233 | ac_help="$ac_help | |
10f2d63a VZ |
234 | --enable-splitter use wxSplitterWindow class" |
235 | ac_help="$ac_help | |
236 | --enable-statbmp use wxStaticBitmap class" | |
237 | ac_help="$ac_help | |
238 | --enable-statbox use wxStaticBox class" | |
239 | ac_help="$ac_help | |
240 | --enable-statline use wxStaticLine class" | |
241 | ac_help="$ac_help | |
242 | --enable-statusbar use wxStatusBar class" | |
243 | ac_help="$ac_help | |
244 | --enable-tabdialog use wxTabControl class" | |
245 | ac_help="$ac_help | |
246 | --enable-toolbar use wxToolBar class" | |
247 | ac_help="$ac_help | |
360d6699 VZ |
248 | --enable-tbarnative use native wxToolBar class" |
249 | ac_help="$ac_help | |
250 | --enable-tbarsmpl use wxToolBarSimple class" | |
251 | ac_help="$ac_help | |
10f2d63a VZ |
252 | --enable-treectrl use wxTreeCtrl class" |
253 | ac_help="$ac_help | |
254 | --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)" | |
255 | ac_help="$ac_help | |
256 | --enable-dirdlg use wxDirDialog" | |
257 | ac_help="$ac_help | |
258 | --enable-textdlg use wxTextDialog" | |
259 | ac_help="$ac_help | |
260 | --enable-tipdlg use startup tips" | |
261 | ac_help="$ac_help | |
262 | --enable-progressdlg use wxProgressDialog" | |
263 | ac_help="$ac_help | |
264 | --enable-miniframe use wxMiniFrame class" | |
265 | ac_help="$ac_help | |
266 | --enable-html use wxHTML sub-library" | |
267 | ac_help="$ac_help | |
268 | --enable-tooltips use wxToolTip class" | |
269 | ac_help="$ac_help | |
270 | --enable-splines use spline drawing code" | |
271 | ac_help="$ac_help | |
272 | --enable-validators use wxValidator and derived classes" | |
273 | ac_help="$ac_help | |
274 | --enable-busyinfo use wxBusyInfo" | |
275 | ac_help="$ac_help | |
9b33fe02 VZ |
276 | --enable-plot use wxPlot" |
277 | ac_help="$ac_help | |
f6bcfd97 BP |
278 | --enable-joystick compile in joystick support (Linux only)" |
279 | ac_help="$ac_help | |
10f2d63a VZ |
280 | --enable-gif use gif images (GIF file format)" |
281 | ac_help="$ac_help | |
282 | --enable-pcx use pcx images (PCX file format)" | |
283 | ac_help="$ac_help | |
284 | --enable-pnm use pnm images (PNM file format)" | |
ab9b9eab VZ |
285 | ac_help="$ac_help |
286 | --with-x use the X Window System" | |
10f2d63a VZ |
287 | |
288 | # Initialize some variables set by options. | |
289 | # The variables have the same names as the options, with | |
290 | # dashes changed to underlines. | |
291 | build=NONE | |
292 | cache_file=./config.cache | |
293 | exec_prefix=NONE | |
294 | host=NONE | |
295 | no_create= | |
296 | nonopt=NONE | |
297 | no_recursion= | |
298 | prefix=NONE | |
299 | program_prefix=NONE | |
300 | program_suffix=NONE | |
301 | program_transform_name=s,x,x, | |
302 | silent= | |
303 | site= | |
304 | srcdir= | |
305 | target=NONE | |
306 | verbose= | |
307 | x_includes=NONE | |
308 | x_libraries=NONE | |
309 | bindir='${exec_prefix}/bin' | |
310 | sbindir='${exec_prefix}/sbin' | |
311 | libexecdir='${exec_prefix}/libexec' | |
312 | datadir='${prefix}/share' | |
313 | sysconfdir='${prefix}/etc' | |
314 | sharedstatedir='${prefix}/com' | |
315 | localstatedir='${prefix}/var' | |
316 | libdir='${exec_prefix}/lib' | |
317 | includedir='${prefix}/include' | |
318 | oldincludedir='/usr/include' | |
319 | infodir='${prefix}/info' | |
320 | mandir='${prefix}/man' | |
321 | ||
322 | # Initialize some other variables. | |
323 | subdirs= | |
324 | MFLAGS= MAKEFLAGS= | |
325 | SHELL=${CONFIG_SHELL-/bin/sh} | |
326 | # Maximum number of lines to put in a shell here document. | |
327 | ac_max_here_lines=12 | |
328 | ||
329 | ac_prev= | |
330 | for ac_option | |
331 | do | |
332 | ||
333 | # If the previous option needs an argument, assign it. | |
334 | if test -n "$ac_prev"; then | |
335 | eval "$ac_prev=\$ac_option" | |
336 | ac_prev= | |
337 | continue | |
338 | fi | |
339 | ||
340 | case "$ac_option" in | |
341 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
342 | *) ac_optarg= ;; | |
343 | esac | |
344 | ||
345 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
346 | ||
347 | case "$ac_option" in | |
348 | ||
349 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
350 | ac_prev=bindir ;; | |
351 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
352 | bindir="$ac_optarg" ;; | |
353 | ||
354 | -build | --build | --buil | --bui | --bu) | |
355 | ac_prev=build ;; | |
356 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
357 | build="$ac_optarg" ;; | |
358 | ||
359 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
360 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
361 | ac_prev=cache_file ;; | |
362 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
363 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
364 | cache_file="$ac_optarg" ;; | |
365 | ||
366 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
367 | ac_prev=datadir ;; | |
368 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
369 | | --da=*) | |
370 | datadir="$ac_optarg" ;; | |
371 | ||
372 | -disable-* | --disable-*) | |
373 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
374 | # Reject names that are not valid shell variable names. | |
375 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
376 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
377 | fi | |
378 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
379 | eval "enable_${ac_feature}=no" ;; | |
380 | ||
381 | -enable-* | --enable-*) | |
382 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
383 | # Reject names that are not valid shell variable names. | |
384 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
385 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
386 | fi | |
387 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
388 | case "$ac_option" in | |
389 | *=*) ;; | |
390 | *) ac_optarg=yes ;; | |
391 | esac | |
392 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
393 | ||
394 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
395 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
396 | | --exec | --exe | --ex) | |
397 | ac_prev=exec_prefix ;; | |
398 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
399 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
400 | | --exec=* | --exe=* | --ex=*) | |
401 | exec_prefix="$ac_optarg" ;; | |
402 | ||
403 | -gas | --gas | --ga | --g) | |
404 | # Obsolete; use --with-gas. | |
405 | with_gas=yes ;; | |
406 | ||
407 | -help | --help | --hel | --he) | |
408 | # Omit some internal or obsolete options to make the list less imposing. | |
409 | # This message is too long to be a string in the A/UX 3.1 sh. | |
410 | cat << EOF | |
411 | Usage: configure [options] [host] | |
412 | Options: [defaults in brackets after descriptions] | |
413 | Configuration: | |
414 | --cache-file=FILE cache test results in FILE | |
415 | --help print this message | |
416 | --no-create do not create output files | |
417 | --quiet, --silent do not print \`checking...' messages | |
418 | --version print the version of autoconf that created configure | |
419 | Directory and file names: | |
420 | --prefix=PREFIX install architecture-independent files in PREFIX | |
421 | [$ac_default_prefix] | |
422 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
423 | [same as prefix] | |
424 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
425 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
426 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
427 | --datadir=DIR read-only architecture-independent data in DIR | |
428 | [PREFIX/share] | |
429 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
430 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
431 | [PREFIX/com] | |
432 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
433 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
434 | --includedir=DIR C header files in DIR [PREFIX/include] | |
435 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
436 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
437 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
438 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
439 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
440 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
441 | --program-transform-name=PROGRAM | |
442 | run sed PROGRAM on installed program names | |
443 | EOF | |
444 | cat << EOF | |
445 | Host type: | |
446 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
447 | --host=HOST configure for HOST [guessed] | |
448 | --target=TARGET configure for TARGET [TARGET=HOST] | |
449 | Features and packages: | |
450 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
451 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
452 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
453 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
454 | --x-includes=DIR X include files are in DIR | |
455 | --x-libraries=DIR X library files are in DIR | |
456 | EOF | |
457 | if test -n "$ac_help"; then | |
458 | echo "--enable and --with options recognized:$ac_help" | |
459 | fi | |
460 | exit 0 ;; | |
461 | ||
462 | -host | --host | --hos | --ho) | |
463 | ac_prev=host ;; | |
464 | -host=* | --host=* | --hos=* | --ho=*) | |
465 | host="$ac_optarg" ;; | |
466 | ||
467 | -includedir | --includedir | --includedi | --included | --include \ | |
468 | | --includ | --inclu | --incl | --inc) | |
469 | ac_prev=includedir ;; | |
470 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
471 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
472 | includedir="$ac_optarg" ;; | |
473 | ||
474 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
475 | ac_prev=infodir ;; | |
476 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
477 | infodir="$ac_optarg" ;; | |
478 | ||
479 | -libdir | --libdir | --libdi | --libd) | |
480 | ac_prev=libdir ;; | |
481 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
482 | libdir="$ac_optarg" ;; | |
483 | ||
484 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
485 | | --libexe | --libex | --libe) | |
486 | ac_prev=libexecdir ;; | |
487 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
488 | | --libexe=* | --libex=* | --libe=*) | |
489 | libexecdir="$ac_optarg" ;; | |
490 | ||
491 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
492 | | --localstate | --localstat | --localsta | --localst \ | |
493 | | --locals | --local | --loca | --loc | --lo) | |
494 | ac_prev=localstatedir ;; | |
495 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
496 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
497 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
498 | localstatedir="$ac_optarg" ;; | |
499 | ||
500 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
501 | ac_prev=mandir ;; | |
502 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
503 | mandir="$ac_optarg" ;; | |
504 | ||
505 | -nfp | --nfp | --nf) | |
506 | # Obsolete; use --without-fp. | |
507 | with_fp=no ;; | |
508 | ||
509 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
510 | | --no-cr | --no-c) | |
511 | no_create=yes ;; | |
512 | ||
513 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
514 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
515 | no_recursion=yes ;; | |
516 | ||
517 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
518 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
519 | | --oldin | --oldi | --old | --ol | --o) | |
520 | ac_prev=oldincludedir ;; | |
521 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
522 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
523 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
524 | oldincludedir="$ac_optarg" ;; | |
525 | ||
526 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
527 | ac_prev=prefix ;; | |
528 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
529 | prefix="$ac_optarg" ;; | |
530 | ||
531 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
532 | | --program-pre | --program-pr | --program-p) | |
533 | ac_prev=program_prefix ;; | |
534 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
535 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
536 | program_prefix="$ac_optarg" ;; | |
537 | ||
538 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
539 | | --program-suf | --program-su | --program-s) | |
540 | ac_prev=program_suffix ;; | |
541 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
542 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
543 | program_suffix="$ac_optarg" ;; | |
544 | ||
545 | -program-transform-name | --program-transform-name \ | |
546 | | --program-transform-nam | --program-transform-na \ | |
547 | | --program-transform-n | --program-transform- \ | |
548 | | --program-transform | --program-transfor \ | |
549 | | --program-transfo | --program-transf \ | |
550 | | --program-trans | --program-tran \ | |
551 | | --progr-tra | --program-tr | --program-t) | |
552 | ac_prev=program_transform_name ;; | |
553 | -program-transform-name=* | --program-transform-name=* \ | |
554 | | --program-transform-nam=* | --program-transform-na=* \ | |
555 | | --program-transform-n=* | --program-transform-=* \ | |
556 | | --program-transform=* | --program-transfor=* \ | |
557 | | --program-transfo=* | --program-transf=* \ | |
558 | | --program-trans=* | --program-tran=* \ | |
559 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
560 | program_transform_name="$ac_optarg" ;; | |
561 | ||
562 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
563 | | -silent | --silent | --silen | --sile | --sil) | |
564 | silent=yes ;; | |
565 | ||
566 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
567 | ac_prev=sbindir ;; | |
568 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
569 | | --sbi=* | --sb=*) | |
570 | sbindir="$ac_optarg" ;; | |
571 | ||
572 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
573 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
574 | | --sharedst | --shareds | --shared | --share | --shar \ | |
575 | | --sha | --sh) | |
576 | ac_prev=sharedstatedir ;; | |
577 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
578 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
579 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
580 | | --sha=* | --sh=*) | |
581 | sharedstatedir="$ac_optarg" ;; | |
582 | ||
583 | -site | --site | --sit) | |
584 | ac_prev=site ;; | |
585 | -site=* | --site=* | --sit=*) | |
586 | site="$ac_optarg" ;; | |
587 | ||
588 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
589 | ac_prev=srcdir ;; | |
590 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
591 | srcdir="$ac_optarg" ;; | |
592 | ||
593 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
594 | | --syscon | --sysco | --sysc | --sys | --sy) | |
595 | ac_prev=sysconfdir ;; | |
596 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
597 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
598 | sysconfdir="$ac_optarg" ;; | |
599 | ||
600 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
601 | ac_prev=target ;; | |
602 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
603 | target="$ac_optarg" ;; | |
604 | ||
605 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
606 | verbose=yes ;; | |
607 | ||
608 | -version | --version | --versio | --versi | --vers) | |
e8482f24 | 609 | echo "configure generated by autoconf version 2.13" |
10f2d63a VZ |
610 | exit 0 ;; |
611 | ||
612 | -with-* | --with-*) | |
613 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
614 | # Reject names that are not valid shell variable names. | |
615 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
616 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
617 | fi | |
618 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
619 | case "$ac_option" in | |
620 | *=*) ;; | |
621 | *) ac_optarg=yes ;; | |
622 | esac | |
623 | eval "with_${ac_package}='$ac_optarg'" ;; | |
624 | ||
625 | -without-* | --without-*) | |
626 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
627 | # Reject names that are not valid shell variable names. | |
628 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
629 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
630 | fi | |
631 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
632 | eval "with_${ac_package}=no" ;; | |
633 | ||
634 | --x) | |
635 | # Obsolete; use --with-x. | |
636 | with_x=yes ;; | |
637 | ||
638 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
639 | | --x-incl | --x-inc | --x-in | --x-i) | |
640 | ac_prev=x_includes ;; | |
641 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
642 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
643 | x_includes="$ac_optarg" ;; | |
644 | ||
645 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
646 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
647 | ac_prev=x_libraries ;; | |
648 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
649 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
650 | x_libraries="$ac_optarg" ;; | |
651 | ||
652 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
653 | ;; | |
654 | ||
655 | *) | |
656 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
657 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
658 | fi | |
659 | if test "x$nonopt" != xNONE; then | |
660 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
661 | fi | |
662 | nonopt="$ac_option" | |
663 | ;; | |
664 | ||
665 | esac | |
666 | done | |
667 | ||
668 | if test -n "$ac_prev"; then | |
669 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
670 | fi | |
671 | ||
672 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
673 | ||
674 | # File descriptor usage: | |
675 | # 0 standard input | |
676 | # 1 file creation | |
677 | # 2 errors and warnings | |
678 | # 3 some systems may open it to /dev/tty | |
679 | # 4 used on the Kubota Titan | |
680 | # 6 checking for... messages and results | |
681 | # 5 compiler messages saved in config.log | |
682 | if test "$silent" = yes; then | |
683 | exec 6>/dev/null | |
684 | else | |
685 | exec 6>&1 | |
686 | fi | |
687 | exec 5>./config.log | |
688 | ||
689 | echo "\ | |
690 | This file contains any messages produced by compilers while | |
691 | running configure, to aid debugging if configure makes a mistake. | |
692 | " 1>&5 | |
693 | ||
694 | # Strip out --no-create and --no-recursion so they do not pile up. | |
695 | # Also quote any args containing shell metacharacters. | |
696 | ac_configure_args= | |
697 | for ac_arg | |
698 | do | |
699 | case "$ac_arg" in | |
700 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
701 | | --no-cr | --no-c) ;; | |
702 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
703 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
704 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
705 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
706 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
707 | esac | |
708 | done | |
709 | ||
710 | # NLS nuisances. | |
711 | # Only set these to C if already set. These must not be set unconditionally | |
712 | # because not all systems understand e.g. LANG=C (notably SCO). | |
713 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
714 | # Non-C LC_CTYPE values break the ctype check. | |
715 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
716 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
717 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
718 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
719 | ||
720 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
721 | rm -rf conftest* confdefs.h | |
722 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
723 | echo > confdefs.h | |
724 | ||
725 | # A filename unique to this package, relative to the directory that | |
726 | # configure is in, which we can look for to find out if srcdir is correct. | |
727 | ac_unique_file=wx-config.in | |
728 | ||
729 | # Find the source files, if location was not specified. | |
730 | if test -z "$srcdir"; then | |
731 | ac_srcdir_defaulted=yes | |
732 | # Try the directory containing this script, then its parent. | |
733 | ac_prog=$0 | |
734 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
735 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
736 | srcdir=$ac_confdir | |
737 | if test ! -r $srcdir/$ac_unique_file; then | |
738 | srcdir=.. | |
739 | fi | |
740 | else | |
741 | ac_srcdir_defaulted=no | |
742 | fi | |
743 | if test ! -r $srcdir/$ac_unique_file; then | |
744 | if test "$ac_srcdir_defaulted" = yes; then | |
745 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
746 | else | |
747 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
748 | fi | |
749 | fi | |
750 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
751 | ||
752 | # Prefer explicitly selected file to automatically selected ones. | |
753 | if test -z "$CONFIG_SITE"; then | |
754 | if test "x$prefix" != xNONE; then | |
755 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
756 | else | |
757 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
758 | fi | |
759 | fi | |
760 | for ac_site_file in $CONFIG_SITE; do | |
761 | if test -r "$ac_site_file"; then | |
762 | echo "loading site script $ac_site_file" | |
763 | . "$ac_site_file" | |
764 | fi | |
765 | done | |
766 | ||
767 | if test -r "$cache_file"; then | |
768 | echo "loading cache $cache_file" | |
769 | . $cache_file | |
770 | else | |
771 | echo "creating cache $cache_file" | |
772 | > $cache_file | |
773 | fi | |
774 | ||
775 | ac_ext=c | |
776 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
777 | ac_cpp='$CPP $CPPFLAGS' | |
778 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
779 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
780 | cross_compiling=$ac_cv_prog_cc_cross | |
781 | ||
782 | ac_exeext= | |
783 | ac_objext=o | |
784 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
785 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
786 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
787 | ac_n= ac_c=' | |
788 | ' ac_t=' ' | |
789 | else | |
790 | ac_n=-n ac_c= ac_t= | |
791 | fi | |
792 | else | |
793 | ac_n= ac_c='\c' ac_t= | |
794 | fi | |
795 | ||
796 | ||
797 | ||
7c66a493 VZ |
798 | ac_aux_dir= |
799 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
800 | if test -f $ac_dir/install-sh; then | |
801 | ac_aux_dir=$ac_dir | |
802 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
803 | break | |
804 | elif test -f $ac_dir/install.sh; then | |
805 | ac_aux_dir=$ac_dir | |
806 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
807 | break | |
808 | fi | |
809 | done | |
810 | if test -z "$ac_aux_dir"; then | |
811 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
812 | fi | |
813 | ac_config_guess=$ac_aux_dir/config.guess | |
814 | ac_config_sub=$ac_aux_dir/config.sub | |
815 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
816 | ||
817 | ||
818 | # Do some error checking and defaulting for the host and target type. | |
819 | # The inputs are: | |
820 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
821 | # | |
822 | # The rules are: | |
823 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
824 | # same time. | |
825 | # 2. Host defaults to nonopt. | |
826 | # 3. If nonopt is not specified, then host defaults to the current host, | |
827 | # as determined by config.guess. | |
828 | # 4. Target and build default to nonopt. | |
829 | # 5. If nonopt is not specified, then target and build default to host. | |
830 | ||
831 | # The aliases save the names the user supplied, while $host etc. | |
832 | # will get canonicalized. | |
833 | case $host---$target---$nonopt in | |
834 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
835 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
836 | esac | |
837 | ||
838 | ||
839 | # Make sure we can run config.sub. | |
840 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
841 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
842 | fi | |
843 | ||
844 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
eb4efbdc | 845 | echo "configure:846: checking host system type" >&5 |
7c66a493 VZ |
846 | |
847 | host_alias=$host | |
848 | case "$host_alias" in | |
849 | NONE) | |
850 | case $nonopt in | |
851 | NONE) | |
852 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
853 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
854 | fi ;; | |
855 | *) host_alias=$nonopt ;; | |
856 | esac ;; | |
857 | esac | |
858 | ||
859 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
860 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
861 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
862 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
863 | echo "$ac_t""$host" 1>&6 | |
864 | ||
865 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
eb4efbdc | 866 | echo "configure:867: checking target system type" >&5 |
7c66a493 VZ |
867 | |
868 | target_alias=$target | |
869 | case "$target_alias" in | |
870 | NONE) | |
871 | case $nonopt in | |
872 | NONE) target_alias=$host_alias ;; | |
873 | *) target_alias=$nonopt ;; | |
874 | esac ;; | |
875 | esac | |
876 | ||
877 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
878 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
879 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
880 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
881 | echo "$ac_t""$target" 1>&6 | |
882 | ||
883 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
eb4efbdc | 884 | echo "configure:885: checking build system type" >&5 |
7c66a493 VZ |
885 | |
886 | build_alias=$build | |
887 | case "$build_alias" in | |
888 | NONE) | |
889 | case $nonopt in | |
890 | NONE) build_alias=$host_alias ;; | |
891 | *) build_alias=$nonopt ;; | |
892 | esac ;; | |
893 | esac | |
894 | ||
895 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
896 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
897 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
898 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
899 | echo "$ac_t""$build" 1>&6 | |
900 | ||
901 | test "$host_alias" != "$target_alias" && | |
902 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
903 | NONENONEs,x,x, && | |
904 | program_prefix=${target_alias}- | |
905 | ||
906 | ||
10f2d63a VZ |
907 | |
908 | WX_MAJOR_VERSION_NUMBER=2 | |
f6bcfd97 BP |
909 | WX_MINOR_VERSION_NUMBER=2 |
910 | WX_RELEASE_NUMBER=0 | |
10f2d63a VZ |
911 | |
912 | WX_INTERFACE_AGE=0 | |
f6bcfd97 | 913 | WX_BINARY_AGE=1 |
10f2d63a VZ |
914 | |
915 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER | |
916 | ||
917 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER | |
918 | WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE` | |
919 | WX_REVISION=$WX_INTERFACE_AGE | |
920 | WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE` | |
921 | ||
922 | ||
923 | USE_UNIX=1 | |
924 | USE_WIN32=0 | |
b12915c1 VZ |
925 | USE_BEOS=0 |
926 | ||
10f2d63a VZ |
927 | USE_LINUX= |
928 | USE_SGI= | |
929 | USE_HPUX= | |
930 | USE_SYSV= | |
931 | USE_SVR4= | |
932 | USE_AIX= | |
933 | USE_SUN= | |
934 | USE_SOLARIS= | |
935 | USE_SUNOS= | |
936 | USE_ALPHA= | |
937 | USE_OSF= | |
938 | USE_BSD= | |
939 | USE_FREEBSD= | |
f6bcfd97 | 940 | USE_NETBSD= |
10f2d63a VZ |
941 | USE_VMS= |
942 | USE_ULTRIX= | |
943 | USE_CYGWIN= | |
944 | USE_MINGW= | |
945 | USE_DATA_GENERAL= | |
946 | ||
ab9b9eab VZ |
947 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
948 | ||
e07802fc | 949 | ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE PM" |
10f2d63a VZ |
950 | |
951 | DEFAULT_wxUSE_GTK=0 | |
952 | DEFAULT_wxUSE_MOTIF=0 | |
953 | DEFAULT_wxUSE_MSW=0 | |
954 | DEFAULT_wxUSE_WINE=0 | |
e07802fc | 955 | DEFAULT_wxUSE_PM=0 |
10f2d63a VZ |
956 | |
957 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
958 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
959 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
960 | DEFAULT_DEFAULT_wxUSE_WINE=0 | |
e07802fc | 961 | DEFAULT_DEFAULT_wxUSE_PM=0 |
10f2d63a | 962 | |
d6a55c4b VZ |
963 | PROGRAM_EXT= |
964 | ||
10f2d63a VZ |
965 | case "${host}" in |
966 | *-hp-hpux* ) | |
967 | USE_HPUX=1 | |
968 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 969 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
970 | cat >> confdefs.h <<\EOF |
971 | #define __HPUX__ 1 | |
972 | EOF | |
973 | ||
974 | ;; | |
975 | *-*-linux* ) | |
976 | USE_LINUX=1 | |
977 | cat >> confdefs.h <<\EOF | |
978 | #define __LINUX__ 1 | |
979 | EOF | |
980 | ||
981 | TMP=`uname -m` | |
982 | if test "x$TMP" = "xalpha"; then | |
983 | USE_ALPHA=1 | |
984 | cat >> confdefs.h <<\EOF | |
985 | #define __ALPHA__ 1 | |
986 | EOF | |
987 | ||
988 | fi | |
989 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
990 | ;; | |
991 | *-*-irix5* | *-*-irix6* ) | |
992 | USE_SGI=1 | |
993 | USE_SVR4=1 | |
994 | cat >> confdefs.h <<\EOF | |
995 | #define __SGI__ 1 | |
996 | EOF | |
997 | ||
998 | cat >> confdefs.h <<\EOF | |
999 | #define __SVR4__ 1 | |
1000 | EOF | |
1001 | ||
1002 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1003 | ;; | |
1004 | *-*-solaris2* ) | |
1005 | USE_SUN=1 | |
1006 | USE_SOLARIS=1 | |
1007 | USE_SVR4=1 | |
1008 | cat >> confdefs.h <<\EOF | |
1009 | #define __SUN__ 1 | |
1010 | EOF | |
1011 | ||
1012 | cat >> confdefs.h <<\EOF | |
1013 | #define __SOLARIS__ 1 | |
1014 | EOF | |
1015 | ||
1016 | cat >> confdefs.h <<\EOF | |
1017 | #define __SVR4__ 1 | |
1018 | EOF | |
1019 | ||
1020 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1021 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1022 | ;; |
1023 | *-*-sunos4* ) | |
1024 | USE_SUN=1 | |
1025 | USE_SUNOS=1 | |
1026 | USE_BSD=1 | |
1027 | cat >> confdefs.h <<\EOF | |
1028 | #define __SUN__ 1 | |
1029 | EOF | |
1030 | ||
1031 | cat >> confdefs.h <<\EOF | |
1032 | #define __SUNOS__ 1 | |
1033 | EOF | |
1034 | ||
1035 | cat >> confdefs.h <<\EOF | |
1036 | #define __BSD__ 1 | |
1037 | EOF | |
1038 | ||
1039 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1040 | ;; | |
f6bcfd97 | 1041 | *-*-freebsd*) |
10f2d63a VZ |
1042 | USE_BSD=1 |
1043 | USE_FREEBSD=1 | |
1044 | cat >> confdefs.h <<\EOF | |
1045 | #define __FREEBSD__ 1 | |
1046 | EOF | |
1047 | ||
1048 | cat >> confdefs.h <<\EOF | |
1049 | #define __BSD__ 1 | |
f6bcfd97 BP |
1050 | EOF |
1051 | ||
1052 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1053 | ;; | |
1054 | *-*-netbsd*) | |
1055 | USE_BSD=1 | |
1056 | USE_NETBSD=1 | |
1057 | cat >> confdefs.h <<\EOF | |
1058 | #define __FREEBSD__ 1 | |
1059 | EOF | |
1060 | ||
1061 | cat >> confdefs.h <<\EOF | |
1062 | #define __NETBSD__ 1 | |
10f2d63a VZ |
1063 | EOF |
1064 | ||
1065 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1066 | ;; | |
1067 | *-*-osf* ) | |
1068 | USE_ALPHA=1 | |
1069 | USE_OSF=1 | |
1070 | cat >> confdefs.h <<\EOF | |
1071 | #define __ALPHA__ 1 | |
1072 | EOF | |
1073 | ||
1074 | cat >> confdefs.h <<\EOF | |
1075 | #define __OSF__ 1 | |
1076 | EOF | |
1077 | ||
1078 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1079 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1080 | ;; |
1081 | *-*-dgux5* ) | |
1082 | USE_ALPHA=1 | |
1083 | USE_SVR4=1 | |
1084 | cat >> confdefs.h <<\EOF | |
1085 | #define __ALPHA__ 1 | |
1086 | EOF | |
1087 | ||
1088 | cat >> confdefs.h <<\EOF | |
1089 | #define __SVR4__ 1 | |
1090 | EOF | |
1091 | ||
1092 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1093 | ;; | |
1094 | *-*-sysv5* ) | |
1095 | USE_SYSV=1 | |
1096 | USE_SVR4=1 | |
1097 | cat >> confdefs.h <<\EOF | |
1098 | #define __SYSV__ 1 | |
1099 | EOF | |
1100 | ||
1101 | cat >> confdefs.h <<\EOF | |
1102 | #define __SVR4__ 1 | |
1103 | EOF | |
1104 | ||
1105 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1106 | ;; | |
1107 | *-*-aix* ) | |
1108 | USE_AIX=1 | |
1109 | USE_SYSV=1 | |
1110 | USE_SVR4=1 | |
1111 | cat >> confdefs.h <<\EOF | |
1112 | #define __AIX__ 1 | |
1113 | EOF | |
1114 | ||
1115 | cat >> confdefs.h <<\EOF | |
1116 | #define __SYSV__ 1 | |
1117 | EOF | |
1118 | ||
1119 | cat >> confdefs.h <<\EOF | |
1120 | #define __SVR4__ 1 | |
1121 | EOF | |
1122 | ||
1123 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1124 | ;; | |
1125 | ||
7eef8db2 | 1126 | *-*-cygwin32* | *-*-mingw32* ) |
10f2d63a VZ |
1127 | USE_UNIX=0 |
1128 | USE_WIN32=1 | |
1129 | cat >> confdefs.h <<\EOF | |
1130 | #define __WIN32__ 1 | |
1131 | EOF | |
1132 | ||
1133 | cat >> confdefs.h <<\EOF | |
1134 | #define __WIN95__ 1 | |
1135 | EOF | |
1136 | ||
1137 | cat >> confdefs.h <<\EOF | |
1138 | #define __WINDOWS__ 1 | |
1139 | EOF | |
1140 | ||
1141 | cat >> confdefs.h <<\EOF | |
1142 | #define __GNUWIN32__ 1 | |
1143 | EOF | |
1144 | ||
1145 | cat >> confdefs.h <<\EOF | |
1146 | #define STRICT 1 | |
1147 | EOF | |
1148 | ||
1149 | cat >> confdefs.h <<\EOF | |
1150 | #define WINVER 0x0400 | |
1151 | EOF | |
1152 | ||
cf27ef00 | 1153 | PROGRAM_EXT=".exe" |
10f2d63a VZ |
1154 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1155 | ;; | |
1156 | ||
1157 | *-pc-os2_emx ) | |
1158 | cat >> confdefs.h <<\EOF | |
1159 | #define __EMX__ 1 | |
1160 | EOF | |
1161 | ||
cf27ef00 | 1162 | PROGRAM_EXT=".exe" |
e07802fc | 1163 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1164 | ;; |
1165 | ||
b12915c1 VZ |
1166 | *-*-beos* ) |
1167 | USE_BEOS=1 | |
1168 | cat >> confdefs.h <<\EOF | |
1169 | #define __BEOS__ 1 | |
1170 | EOF | |
1171 | ||
1172 | ;; | |
1173 | ||
10f2d63a VZ |
1174 | *) |
1175 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } | |
1176 | esac | |
1177 | ||
1178 | if test "$USE_UNIX" = 1 ; then | |
b12915c1 VZ |
1179 | wxUSE_UNIX=yes |
1180 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
1181 | #define __UNIX__ 1 |
1182 | EOF | |
1183 | ||
b12915c1 VZ |
1184 | |
1185 | SRC_SUBDIRS="$SRC_SUBDIRS unix" | |
1186 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix" | |
1187 | fi | |
1188 | ||
1189 | if test "$USE_BEOS" = 1; then | |
1190 | SRC_SUBDIRS="$SRC_SUBDIRS be" | |
1191 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be" | |
10f2d63a VZ |
1192 | fi |
1193 | ||
1194 | if test "$USE_LINUX" = 1; then | |
1195 | echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6 | |
f6bcfd97 | 1196 | echo "configure:1197: checking for gettext in -lc" >&5 |
10f2d63a VZ |
1197 | ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'` |
1198 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1199 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1200 | else | |
1201 | ac_save_LIBS="$LIBS" | |
1202 | LIBS="-lc $LIBS" | |
1203 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 1204 | #line 1205 "configure" |
10f2d63a VZ |
1205 | #include "confdefs.h" |
1206 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1207 | /* We use char because int might match the return type of a gcc2 | |
1208 | builtin and then its argument prototype would still apply. */ | |
1209 | char gettext(); | |
1210 | ||
1211 | int main() { | |
1212 | gettext() | |
1213 | ; return 0; } | |
1214 | EOF | |
f6bcfd97 | 1215 | if { (eval echo configure:1216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
1216 | rm -rf conftest* |
1217 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1218 | else | |
1219 | echo "configure: failed program was:" >&5 | |
1220 | cat conftest.$ac_ext >&5 | |
1221 | rm -rf conftest* | |
1222 | eval "ac_cv_lib_$ac_lib_var=no" | |
1223 | fi | |
1224 | rm -f conftest* | |
1225 | LIBS="$ac_save_LIBS" | |
1226 | ||
1227 | fi | |
1228 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1229 | echo "$ac_t""yes" 1>&6 | |
1230 | cat >> confdefs.h <<\EOF | |
1231 | #define wxHAVE_GLIBC2 1 | |
1232 | EOF | |
1233 | ||
1234 | else | |
1235 | echo "$ac_t""no" 1>&6 | |
1236 | fi | |
1237 | ||
1238 | fi | |
1239 | ||
1240 | ||
1241 | ||
1242 | ||
1243 | wx_arg_cache_file="configarg.cache" | |
1244 | echo "loading argument cache $wx_arg_cache_file" | |
1245 | rm -f ${wx_arg_cache_file}.tmp | |
1246 | touch ${wx_arg_cache_file}.tmp | |
1247 | touch ${wx_arg_cache_file} | |
1248 | ||
1249 | ||
1250 | DEBUG_CONFIGURE=0 | |
1251 | if test $DEBUG_CONFIGURE = 1; then | |
1252 | DEFAULT_wxUSE_THREADS=yes | |
1253 | ||
1254 | DEFAULT_wxUSE_SHARED=yes | |
00cf1208 | 1255 | DEFAULT_wxUSE_BURNT_NAME=no |
10f2d63a VZ |
1256 | DEFAULT_wxUSE_OPTIMISE=yes |
1257 | DEFAULT_wxUSE_PROFILE=no | |
1258 | DEFAULT_wxUSE_NO_DEPS=no | |
1259 | DEFAULT_wxUSE_NO_RTTI=no | |
1260 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1261 | DEFAULT_wxUSE_PERMISSIVE=no | |
1262 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1263 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1264 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1265 | DEFAULT_wxUSE_MEM_TRACING=no | |
1266 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1267 | DEFAULT_wxUSE_DMALLOC=no | |
1268 | DEFAULT_wxUSE_APPLE_IEEE=no | |
1269 | ||
1270 | DEFAULT_wxUSE_LOG=yes | |
1271 | ||
1272 | DEFAULT_wxUSE_GUI=yes | |
1273 | ||
1274 | DEFAULT_wxUSE_ZLIB=no | |
1275 | DEFAULT_wxUSE_LIBPNG=no | |
1276 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1277 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1278 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1279 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1280 | |
eb4efbdc | 1281 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
10f2d63a VZ |
1282 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1283 | DEFAULT_wxUSE_FILE=no | |
1284 | DEFAULT_wxUSE_TEXTFILE=no | |
1285 | DEFAULT_wxUSE_TIMEDATE=no | |
1286 | DEFAULT_wxUSE_WAVE=no | |
1287 | DEFAULT_wxUSE_INTL=no | |
1288 | DEFAULT_wxUSE_CONFIG=no | |
1289 | DEFAULT_wxUSE_STREAMS=no | |
1290 | DEFAULT_wxUSE_SOCKETS=no | |
1291 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
1292 | DEFAULT_wxUSE_SERIAL=no | |
1293 | DEFAULT_wxUSE_JOYSTICK=no | |
1294 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
1295 | DEFAULT_wxUSE_LONGLONG=no | |
1296 | ||
1297 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1298 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1299 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1300 | ||
1301 | DEFAULT_wxUSE_X_RESOURCES=no | |
1302 | DEFAULT_wxUSE_CLIPBOARD=no | |
1303 | DEFAULT_wxUSE_TOOLTIPS=no | |
1304 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
1305 | DEFAULT_wxUSE_SPLINES=no | |
1306 | ||
1307 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1308 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1309 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1310 | ||
1311 | DEFAULT_wxUSE_PROLOGIO=no | |
1312 | DEFAULT_wxUSE_RESOURCES=no | |
1313 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1314 | DEFAULT_wxUSE_IPC=no | |
1315 | DEFAULT_wxUSE_HELP=no | |
1316 | DEFAULT_wxUSE_WXTREE=no | |
1317 | DEFAULT_wxUSE_METAFILE=no | |
1318 | ||
1319 | DEFAULT_wxUSE_COMMONDLGS=no | |
1320 | DEFAULT_wxUSE_DIRDLG=no | |
1321 | DEFAULT_wxUSE_TEXTDLG=no | |
1322 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
1323 | DEFAULT_wxUSE_PROGRESSDLG=no | |
1324 | DEFAULT_wxUSE_MINIFRAME=no | |
1325 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1326 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1327 | DEFAULT_wxUSE_FS_INET=no |
1328 | DEFAULT_wxUSE_FS_ZIP=no | |
1329 | DEFAULT_wxUSE_BUSYINFO=no | |
1330 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1331 | DEFAULT_wxUSE_VALIDATORS=yes | |
1332 | ||
1333 | DEFAULT_wxUSE_ACCEL=no | |
1334 | DEFAULT_wxUSE_CARET=no | |
1335 | DEFAULT_wxUSE_BMPBUTTON=no | |
1336 | DEFAULT_wxUSE_CHECKBOX=no | |
1337 | DEFAULT_wxUSE_CHECKLST=no | |
1338 | DEFAULT_wxUSE_CHOICE=yes | |
1339 | DEFAULT_wxUSE_COMBOBOX=no | |
1340 | DEFAULT_wxUSE_GAUGE=no | |
1341 | DEFAULT_wxUSE_GRID=no | |
1342 | DEFAULT_wxUSE_NEW_GRID=no | |
1343 | DEFAULT_wxUSE_IMAGLIST=no | |
1344 | DEFAULT_wxUSE_LISTBOX=no | |
1345 | DEFAULT_wxUSE_LISTCTRL=no | |
1346 | DEFAULT_wxUSE_NOTEBOOK=no | |
9b33fe02 | 1347 | DEFAULT_wxUSE_PLOT=no |
10f2d63a VZ |
1348 | DEFAULT_wxUSE_RADIOBOX=no |
1349 | DEFAULT_wxUSE_RADIOBTN=no | |
1350 | DEFAULT_wxUSE_SASH=no | |
1351 | DEFAULT_wxUSE_SCROLLBAR=no | |
1352 | DEFAULT_wxUSE_SLIDER=no | |
1353 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1354 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1355 | DEFAULT_wxUSE_SPLITTER=no |
1356 | DEFAULT_wxUSE_STATBMP=no | |
1357 | DEFAULT_wxUSE_STATBOX=no | |
1358 | DEFAULT_wxUSE_STATLINE=no | |
1359 | DEFAULT_wxUSE_STATUSBAR=yes | |
1360 | DEFAULT_wxUSE_TABDIALOG=no | |
1361 | DEFAULT_wxUSE_TOOLBAR=no | |
360d6699 VZ |
1362 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1363 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
1364 | DEFAULT_wxUSE_TREECTRL=no |
1365 | ||
1366 | DEFAULT_wxUSE_UNICODE=no | |
1367 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1368 | ||
1369 | DEFAULT_wxUSE_GIF=no | |
1370 | DEFAULT_wxUSE_PCX=no | |
1371 | DEFAULT_wxUSE_PNM=no | |
1372 | else | |
1373 | DEFAULT_wxUSE_THREADS=yes | |
1374 | ||
1375 | DEFAULT_wxUSE_SHARED=yes | |
00cf1208 | 1376 | DEFAULT_wxUSE_BURNT_NAME=no |
10f2d63a VZ |
1377 | DEFAULT_wxUSE_OPTIMISE=yes |
1378 | DEFAULT_wxUSE_PROFILE=no | |
1379 | DEFAULT_wxUSE_NO_DEPS=no | |
1380 | DEFAULT_wxUSE_NO_RTTI=no | |
1381 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1382 | DEFAULT_wxUSE_PERMISSIVE=no | |
1383 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1384 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1385 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1386 | DEFAULT_wxUSE_MEM_TRACING=no | |
1387 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1388 | DEFAULT_wxUSE_DMALLOC=no | |
1389 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
1390 | ||
1391 | DEFAULT_wxUSE_LOG=yes | |
1392 | ||
1393 | DEFAULT_wxUSE_GUI=yes | |
1394 | ||
1395 | DEFAULT_wxUSE_ZLIB=yes | |
1396 | DEFAULT_wxUSE_LIBPNG=yes | |
1397 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1398 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1399 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1400 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1401 | |
eb4efbdc | 1402 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
10f2d63a VZ |
1403 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1404 | DEFAULT_wxUSE_FILE=yes | |
1405 | DEFAULT_wxUSE_TEXTFILE=yes | |
1406 | DEFAULT_wxUSE_TIMEDATE=yes | |
1407 | DEFAULT_wxUSE_WAVE=no | |
1408 | DEFAULT_wxUSE_INTL=yes | |
1409 | DEFAULT_wxUSE_CONFIG=yes | |
1410 | DEFAULT_wxUSE_STREAMS=yes | |
1411 | DEFAULT_wxUSE_SOCKETS=yes | |
1412 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
1413 | DEFAULT_wxUSE_SERIAL=yes | |
1414 | DEFAULT_wxUSE_JOYSTICK=yes | |
1415 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
b685cd9b | 1416 | DEFAULT_wxUSE_LONGLONG=yes |
10f2d63a VZ |
1417 | |
1418 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1419 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1420 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1421 | ||
1422 | DEFAULT_wxUSE_X_RESOURCES=no | |
1423 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1424 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1425 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
1426 | DEFAULT_wxUSE_SPLINES=yes | |
1427 | ||
1428 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1429 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1430 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1431 | ||
1432 | DEFAULT_wxUSE_PROLOGIO=yes | |
1433 | DEFAULT_wxUSE_RESOURCES=yes | |
1434 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1435 | DEFAULT_wxUSE_IPC=yes | |
1436 | DEFAULT_wxUSE_HELP=yes | |
1437 | DEFAULT_wxUSE_WXTREE=yes | |
1438 | DEFAULT_wxUSE_METAFILE=yes | |
1439 | ||
1440 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1441 | DEFAULT_wxUSE_DIRDLG=yes | |
1442 | DEFAULT_wxUSE_TEXTDLG=yes | |
1443 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
1444 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
1445 | DEFAULT_wxUSE_MINIFRAME=yes | |
1446 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1447 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1448 | DEFAULT_wxUSE_FS_INET=yes |
1449 | DEFAULT_wxUSE_FS_ZIP=yes | |
1450 | DEFAULT_wxUSE_BUSYINFO=yes | |
1451 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1452 | DEFAULT_wxUSE_VALIDATORS=yes | |
1453 | ||
1454 | DEFAULT_wxUSE_ACCEL=yes | |
1455 | DEFAULT_wxUSE_CARET=yes | |
1456 | DEFAULT_wxUSE_BMPBUTTON=yes | |
1457 | DEFAULT_wxUSE_CHECKBOX=yes | |
1458 | DEFAULT_wxUSE_CHECKLST=yes | |
1459 | DEFAULT_wxUSE_CHOICE=yes | |
1460 | DEFAULT_wxUSE_COMBOBOX=yes | |
1461 | DEFAULT_wxUSE_GAUGE=yes | |
1462 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1463 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1464 | DEFAULT_wxUSE_IMAGLIST=yes |
1465 | DEFAULT_wxUSE_LISTBOX=yes | |
1466 | DEFAULT_wxUSE_LISTCTRL=yes | |
1467 | DEFAULT_wxUSE_NOTEBOOK=yes | |
9b33fe02 | 1468 | DEFAULT_wxUSE_PLOT=yes |
10f2d63a VZ |
1469 | DEFAULT_wxUSE_RADIOBOX=yes |
1470 | DEFAULT_wxUSE_RADIOBTN=yes | |
1471 | DEFAULT_wxUSE_SASH=yes | |
1472 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1473 | DEFAULT_wxUSE_SLIDER=yes | |
1474 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1475 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1476 | DEFAULT_wxUSE_SPLITTER=yes |
1477 | DEFAULT_wxUSE_STATBMP=yes | |
1478 | DEFAULT_wxUSE_STATBOX=yes | |
1479 | DEFAULT_wxUSE_STATLINE=yes | |
1480 | DEFAULT_wxUSE_STATUSBAR=yes | |
1481 | DEFAULT_wxUSE_TABDIALOG=no | |
1482 | DEFAULT_wxUSE_TOOLBAR=yes | |
360d6699 VZ |
1483 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1484 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
1485 | DEFAULT_wxUSE_TREECTRL=yes |
1486 | ||
1487 | DEFAULT_wxUSE_UNICODE=no | |
1488 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1489 | ||
1490 | DEFAULT_wxUSE_GIF=yes | |
1491 | DEFAULT_wxUSE_PCX=yes | |
1492 | DEFAULT_wxUSE_PNM=yes | |
1493 | fi | |
1494 | ||
1495 | ||
1496 | ||
1497 | for toolkit in `echo $ALL_TOOLKITS`; do | |
1498 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1499 | if test "x$LINE" != x ; then | |
1500 | has_toolkit_in_cache=1 | |
1501 | eval "DEFAULT_$LINE" | |
1502 | eval "CACHE_$toolkit=1" | |
1503 | fi | |
1504 | done | |
1505 | ||
1506 | ||
1507 | ||
1508 | echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6 | |
f6bcfd97 | 1509 | echo "configure:1510: checking "for --enable-gui"" >&5 |
10f2d63a VZ |
1510 | no_cache=0 |
1511 | # Check whether --enable-gui or --disable-gui was given. | |
1512 | if test "${enable_gui+set}" = set; then | |
1513 | enableval="$enable_gui" | |
1514 | ||
1515 | if test "$enableval" = yes; then | |
1516 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1517 | else | |
1518 | ac_cv_use_gui='wxUSE_GUI=no' | |
1519 | fi | |
1520 | ||
1521 | else | |
1522 | ||
1523 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
1524 | if test "x$LINE" != x ; then | |
1525 | eval "DEFAULT_$LINE" | |
1526 | else | |
1527 | no_cache=1 | |
1528 | fi | |
1529 | ||
1530 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
1531 | ||
1532 | fi | |
1533 | ||
1534 | ||
1535 | eval "$ac_cv_use_gui" | |
1536 | if test "$no_cache" != 1; then | |
1537 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1538 | fi | |
1539 | ||
1540 | if test "$wxUSE_GUI" = yes; then | |
1541 | echo "$ac_t""yes" 1>&6 | |
1542 | else | |
1543 | echo "$ac_t""no" 1>&6 | |
1544 | fi | |
1545 | ||
1546 | ||
b12915c1 | 1547 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a VZ |
1548 | |
1549 | # Check whether --with-gtk or --without-gtk was given. | |
1550 | if test "${with_gtk+set}" = set; then | |
1551 | withval="$with_gtk" | |
1552 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
1553 | fi | |
1554 | ||
1555 | # Check whether --with-motif or --without-motif was given. | |
1556 | if test "${with_motif+set}" = set; then | |
1557 | withval="$with_motif" | |
1558 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
1559 | fi | |
1560 | ||
1561 | # Check whether --with-wine or --without-wine was given. | |
1562 | if test "${with_wine+set}" = set; then | |
1563 | withval="$with_wine" | |
1564 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
1565 | fi | |
1566 | ||
1567 | # Check whether --with-cygwin or --without-cygwin was given. | |
1568 | if test "${with_cygwin+set}" = set; then | |
1569 | withval="$with_cygwin" | |
1570 | wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1 | |
1571 | fi | |
1572 | ||
1573 | # Check whether --with-mingw or --without-mingw was given. | |
1574 | if test "${with_mingw+set}" = set; then | |
1575 | withval="$with_mingw" | |
1576 | wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1 | |
1577 | fi | |
1578 | ||
e07802fc VZ |
1579 | # Check whether --with-pm or --without-pm was given. |
1580 | if test "${with_pm+set}" = set; then | |
1581 | withval="$with_pm" | |
1582 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
1583 | fi | |
1584 | ||
10f2d63a VZ |
1585 | |
1586 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
1587 | if test "${with_gtk_prefix+set}" = set; then | |
1588 | withval="$with_gtk_prefix" | |
1589 | gtk_config_prefix="$withval" | |
1590 | else | |
1591 | gtk_config_prefix="" | |
1592 | fi | |
1593 | ||
1594 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
1595 | if test "${with_gtk_exec_prefix+set}" = set; then | |
1596 | withval="$with_gtk_exec_prefix" | |
1597 | gtk_config_exec_prefix="$withval" | |
1598 | else | |
1599 | gtk_config_exec_prefix="" | |
1600 | fi | |
1601 | ||
1602 | ||
1603 | ||
b12915c1 | 1604 | echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6 |
f6bcfd97 | 1605 | echo "configure:1606: checking "for --with-libpng"" >&5 |
10f2d63a | 1606 | no_cache=0 |
b12915c1 VZ |
1607 | # Check whether --with-libpng or --without-libpng was given. |
1608 | if test "${with_libpng+set}" = set; then | |
1609 | withval="$with_libpng" | |
10f2d63a VZ |
1610 | |
1611 | if test "$withval" = yes; then | |
b12915c1 | 1612 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1613 | elif test "$withval" = no; then |
b12915c1 | 1614 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
1615 | elif test "$withval" = sys; then |
1616 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
1617 | else | |
1618 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; } | |
10f2d63a VZ |
1619 | fi |
1620 | ||
1621 | else | |
1622 | ||
b12915c1 | 1623 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1624 | if test "x$LINE" != x ; then |
1625 | eval "DEFAULT_$LINE" | |
1626 | else | |
1627 | no_cache=1 | |
1628 | fi | |
1629 | ||
b12915c1 | 1630 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
10f2d63a VZ |
1631 | |
1632 | fi | |
1633 | ||
1634 | ||
b12915c1 | 1635 | eval "$ac_cv_use_libpng" |
10f2d63a | 1636 | if test "$no_cache" != 1; then |
b12915c1 | 1637 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1638 | fi |
1639 | ||
b12915c1 | 1640 | if test "$wxUSE_LIBPNG" = yes; then |
10f2d63a | 1641 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1642 | elif test "$wxUSE_LIBPNG" = no; then |
10f2d63a | 1643 | echo "$ac_t""no" 1>&6 |
422107f9 VZ |
1644 | elif test "$wxUSE_LIBPNG" = sys; then |
1645 | echo "$ac_t""system version" 1>&6 | |
1646 | else | |
1647 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; } | |
10f2d63a VZ |
1648 | fi |
1649 | ||
1650 | ||
b12915c1 | 1651 | echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6 |
f6bcfd97 | 1652 | echo "configure:1653: checking "for --with-libjpeg"" >&5 |
10f2d63a | 1653 | no_cache=0 |
b12915c1 VZ |
1654 | # Check whether --with-libjpeg or --without-libjpeg was given. |
1655 | if test "${with_libjpeg+set}" = set; then | |
1656 | withval="$with_libjpeg" | |
10f2d63a VZ |
1657 | |
1658 | if test "$withval" = yes; then | |
b12915c1 | 1659 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 1660 | elif test "$withval" = no; then |
b12915c1 | 1661 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
1662 | elif test "$withval" = sys; then |
1663 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
1664 | else | |
1665 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; } | |
10f2d63a VZ |
1666 | fi |
1667 | ||
1668 | else | |
1669 | ||
b12915c1 | 1670 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1671 | if test "x$LINE" != x ; then |
1672 | eval "DEFAULT_$LINE" | |
1673 | else | |
1674 | no_cache=1 | |
1675 | fi | |
1676 | ||
b12915c1 | 1677 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
10f2d63a VZ |
1678 | |
1679 | fi | |
1680 | ||
1681 | ||
b12915c1 | 1682 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 1683 | if test "$no_cache" != 1; then |
b12915c1 | 1684 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1685 | fi |
1686 | ||
b12915c1 | 1687 | if test "$wxUSE_LIBJPEG" = yes; then |
10f2d63a | 1688 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1689 | elif test "$wxUSE_LIBJPEG" = no; then |
10f2d63a | 1690 | echo "$ac_t""no" 1>&6 |
422107f9 VZ |
1691 | elif test "$wxUSE_LIBJPEG" = sys; then |
1692 | echo "$ac_t""system version" 1>&6 | |
1693 | else | |
1694 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; } | |
10f2d63a VZ |
1695 | fi |
1696 | ||
1697 | ||
b12915c1 | 1698 | echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6 |
f6bcfd97 | 1699 | echo "configure:1700: checking "for --with-libtiff"" >&5 |
10f2d63a | 1700 | no_cache=0 |
b12915c1 VZ |
1701 | # Check whether --with-libtiff or --without-libtiff was given. |
1702 | if test "${with_libtiff+set}" = set; then | |
1703 | withval="$with_libtiff" | |
10f2d63a VZ |
1704 | |
1705 | if test "$withval" = yes; then | |
b12915c1 | 1706 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 1707 | elif test "$withval" = no; then |
b12915c1 | 1708 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
1709 | elif test "$withval" = sys; then |
1710 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
1711 | else | |
1712 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; } | |
10f2d63a VZ |
1713 | fi |
1714 | ||
1715 | else | |
1716 | ||
b12915c1 | 1717 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
1718 | if test "x$LINE" != x ; then |
1719 | eval "DEFAULT_$LINE" | |
1720 | else | |
1721 | no_cache=1 | |
1722 | fi | |
1723 | ||
b12915c1 | 1724 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
10f2d63a VZ |
1725 | |
1726 | fi | |
1727 | ||
1728 | ||
b12915c1 | 1729 | eval "$ac_cv_use_libtiff" |
10f2d63a | 1730 | if test "$no_cache" != 1; then |
b12915c1 | 1731 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1732 | fi |
1733 | ||
b12915c1 | 1734 | if test "$wxUSE_LIBTIFF" = yes; then |
10f2d63a | 1735 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 1736 | elif test "$wxUSE_LIBTIFF" = no; then |
10f2d63a | 1737 | echo "$ac_t""no" 1>&6 |
0dcf9893 VZ |
1738 | elif test "$wxUSE_LIBTIFF" = sys; then |
1739 | echo "$ac_t""system version" 1>&6 | |
1740 | else | |
1741 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; } | |
10f2d63a VZ |
1742 | fi |
1743 | ||
1744 | ||
b12915c1 | 1745 | echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6 |
f6bcfd97 | 1746 | echo "configure:1747: checking "for --with-opengl"" >&5 |
10f2d63a | 1747 | no_cache=0 |
b12915c1 VZ |
1748 | # Check whether --with-opengl or --without-opengl was given. |
1749 | if test "${with_opengl+set}" = set; then | |
1750 | withval="$with_opengl" | |
10f2d63a VZ |
1751 | |
1752 | if test "$withval" = yes; then | |
b12915c1 | 1753 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 1754 | else |
b12915c1 | 1755 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a VZ |
1756 | fi |
1757 | ||
1758 | else | |
1759 | ||
b12915c1 | 1760 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
1761 | if test "x$LINE" != x ; then |
1762 | eval "DEFAULT_$LINE" | |
1763 | else | |
1764 | no_cache=1 | |
1765 | fi | |
1766 | ||
b12915c1 | 1767 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
10f2d63a VZ |
1768 | |
1769 | fi | |
1770 | ||
1771 | ||
b12915c1 | 1772 | eval "$ac_cv_use_opengl" |
10f2d63a | 1773 | if test "$no_cache" != 1; then |
b12915c1 | 1774 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1775 | fi |
1776 | ||
b12915c1 | 1777 | if test "$wxUSE_OPENGL" = yes; then |
10f2d63a VZ |
1778 | echo "$ac_t""yes" 1>&6 |
1779 | else | |
1780 | echo "$ac_t""no" 1>&6 | |
1781 | fi | |
1782 | ||
1783 | ||
b12915c1 VZ |
1784 | fi |
1785 | ||
1786 | ||
1787 | echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6 | |
f6bcfd97 | 1788 | echo "configure:1789: checking "for --with-dmalloc"" >&5 |
c7a2bf27 | 1789 | no_cache=0 |
b12915c1 VZ |
1790 | # Check whether --with-dmalloc or --without-dmalloc was given. |
1791 | if test "${with_dmalloc+set}" = set; then | |
1792 | withval="$with_dmalloc" | |
c7a2bf27 RR |
1793 | |
1794 | if test "$withval" = yes; then | |
b12915c1 | 1795 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 1796 | else |
b12915c1 | 1797 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 RR |
1798 | fi |
1799 | ||
1800 | else | |
1801 | ||
b12915c1 | 1802 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
1803 | if test "x$LINE" != x ; then |
1804 | eval "DEFAULT_$LINE" | |
1805 | else | |
1806 | no_cache=1 | |
1807 | fi | |
1808 | ||
b12915c1 | 1809 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
c7a2bf27 RR |
1810 | |
1811 | fi | |
1812 | ||
1813 | ||
b12915c1 | 1814 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 1815 | if test "$no_cache" != 1; then |
b12915c1 | 1816 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
1817 | fi |
1818 | ||
b12915c1 | 1819 | if test "$wxUSE_DMALLOC" = yes; then |
c7a2bf27 RR |
1820 | echo "$ac_t""yes" 1>&6 |
1821 | else | |
1822 | echo "$ac_t""no" 1>&6 | |
1823 | fi | |
1824 | ||
1825 | ||
b12915c1 | 1826 | echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6 |
f6bcfd97 | 1827 | echo "configure:1828: checking "for --with-zlib"" >&5 |
10f2d63a | 1828 | no_cache=0 |
b12915c1 VZ |
1829 | # Check whether --with-zlib or --without-zlib was given. |
1830 | if test "${with_zlib+set}" = set; then | |
1831 | withval="$with_zlib" | |
10f2d63a VZ |
1832 | |
1833 | if test "$withval" = yes; then | |
b12915c1 | 1834 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 1835 | elif test "$withval" = no; then |
b12915c1 | 1836 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
1837 | elif test "$withval" = sys; then |
1838 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
1839 | else | |
1840 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; } | |
10f2d63a VZ |
1841 | fi |
1842 | ||
1843 | else | |
1844 | ||
b12915c1 | 1845 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
1846 | if test "x$LINE" != x ; then |
1847 | eval "DEFAULT_$LINE" | |
1848 | else | |
1849 | no_cache=1 | |
1850 | fi | |
1851 | ||
b12915c1 | 1852 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
10f2d63a VZ |
1853 | |
1854 | fi | |
1855 | ||
1856 | ||
b12915c1 | 1857 | eval "$ac_cv_use_zlib" |
10f2d63a | 1858 | if test "$no_cache" != 1; then |
b12915c1 | 1859 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1860 | fi |
1861 | ||
b12915c1 | 1862 | if test "$wxUSE_ZLIB" = yes; then |
10f2d63a | 1863 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1864 | elif test "$wxUSE_ZLIB" = no; then |
bdad4e7e | 1865 | echo "$ac_t""no" 1>&6 |
422107f9 VZ |
1866 | elif test "$wxUSE_ZLIB" = sys; then |
1867 | echo "$ac_t""system version" 1>&6 | |
1868 | else | |
1869 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; } | |
10f2d63a VZ |
1870 | fi |
1871 | ||
1872 | ||
1873 | echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6 | |
f6bcfd97 | 1874 | echo "configure:1875: checking "for --with-odbc"" >&5 |
10f2d63a VZ |
1875 | no_cache=0 |
1876 | # Check whether --with-odbc or --without-odbc was given. | |
1877 | if test "${with_odbc+set}" = set; then | |
1878 | withval="$with_odbc" | |
1879 | ||
1880 | if test "$withval" = yes; then | |
1881 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
1882 | else | |
1883 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
1884 | fi | |
1885 | ||
1886 | else | |
1887 | ||
1888 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
1889 | if test "x$LINE" != x ; then | |
1890 | eval "DEFAULT_$LINE" | |
1891 | else | |
1892 | no_cache=1 | |
1893 | fi | |
1894 | ||
1895 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
1896 | ||
1897 | fi | |
1898 | ||
1899 | ||
1900 | eval "$ac_cv_use_odbc" | |
1901 | if test "$no_cache" != 1; then | |
1902 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
1903 | fi | |
1904 | ||
1905 | if test "$wxUSE_ODBC" = yes; then | |
1906 | echo "$ac_t""yes" 1>&6 | |
1907 | else | |
1908 | echo "$ac_t""no" 1>&6 | |
1909 | fi | |
1910 | ||
1911 | ||
1912 | ||
1913 | ||
1914 | ||
1915 | echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6 | |
f6bcfd97 | 1916 | echo "configure:1917: checking "for --enable-shared"" >&5 |
10f2d63a VZ |
1917 | no_cache=0 |
1918 | # Check whether --enable-shared or --disable-shared was given. | |
1919 | if test "${enable_shared+set}" = set; then | |
1920 | enableval="$enable_shared" | |
1921 | ||
1922 | if test "$enableval" = yes; then | |
1923 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
1924 | else | |
1925 | ac_cv_use_shared='wxUSE_SHARED=no' | |
1926 | fi | |
1927 | ||
1928 | else | |
1929 | ||
1930 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
1931 | if test "x$LINE" != x ; then | |
1932 | eval "DEFAULT_$LINE" | |
1933 | else | |
1934 | no_cache=1 | |
1935 | fi | |
1936 | ||
1937 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
1938 | ||
1939 | fi | |
1940 | ||
1941 | ||
1942 | eval "$ac_cv_use_shared" | |
1943 | if test "$no_cache" != 1; then | |
1944 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
1945 | fi | |
1946 | ||
1947 | if test "$wxUSE_SHARED" = yes; then | |
1948 | echo "$ac_t""yes" 1>&6 | |
1949 | else | |
1950 | echo "$ac_t""no" 1>&6 | |
1951 | fi | |
1952 | ||
1953 | ||
00cf1208 | 1954 | echo $ac_n "checking "for --enable-burnt_name"""... $ac_c" 1>&6 |
f6bcfd97 | 1955 | echo "configure:1956: checking "for --enable-burnt_name"" >&5 |
00cf1208 RR |
1956 | no_cache=0 |
1957 | # Check whether --enable-burnt_name or --disable-burnt_name was given. | |
1958 | if test "${enable_burnt_name+set}" = set; then | |
1959 | enableval="$enable_burnt_name" | |
1960 | ||
1961 | if test "$enableval" = yes; then | |
1962 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes' | |
1963 | else | |
1964 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no' | |
1965 | fi | |
1966 | ||
1967 | else | |
1968 | ||
1969 | LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}` | |
1970 | if test "x$LINE" != x ; then | |
1971 | eval "DEFAULT_$LINE" | |
1972 | else | |
1973 | no_cache=1 | |
1974 | fi | |
1975 | ||
1976 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME | |
1977 | ||
1978 | fi | |
1979 | ||
1980 | ||
1981 | eval "$ac_cv_use_burnt_name" | |
1982 | if test "$no_cache" != 1; then | |
1983 | echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp | |
1984 | fi | |
1985 | ||
1986 | if test "$wxUSE_BURNT_NAME" = yes; then | |
1987 | echo "$ac_t""yes" 1>&6 | |
1988 | else | |
1989 | echo "$ac_t""no" 1>&6 | |
1990 | fi | |
1991 | ||
1992 | ||
10f2d63a | 1993 | echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6 |
f6bcfd97 | 1994 | echo "configure:1995: checking "for --enable-optimise"" >&5 |
10f2d63a VZ |
1995 | no_cache=0 |
1996 | # Check whether --enable-optimise or --disable-optimise was given. | |
1997 | if test "${enable_optimise+set}" = set; then | |
1998 | enableval="$enable_optimise" | |
1999 | ||
2000 | if test "$enableval" = yes; then | |
2001 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2002 | else | |
2003 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2004 | fi | |
2005 | ||
2006 | else | |
2007 | ||
2008 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
2009 | if test "x$LINE" != x ; then | |
2010 | eval "DEFAULT_$LINE" | |
2011 | else | |
2012 | no_cache=1 | |
2013 | fi | |
2014 | ||
2015 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
2016 | ||
2017 | fi | |
2018 | ||
2019 | ||
2020 | eval "$ac_cv_use_optimise" | |
2021 | if test "$no_cache" != 1; then | |
2022 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2023 | fi | |
2024 | ||
2025 | if test "$wxUSE_OPTIMISE" = yes; then | |
2026 | echo "$ac_t""yes" 1>&6 | |
2027 | else | |
2028 | echo "$ac_t""no" 1>&6 | |
2029 | fi | |
2030 | ||
2031 | ||
2032 | echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6 | |
f6bcfd97 | 2033 | echo "configure:2034: checking "for --enable-debug"" >&5 |
10f2d63a VZ |
2034 | no_cache=0 |
2035 | # Check whether --enable-debug or --disable-debug was given. | |
2036 | if test "${enable_debug+set}" = set; then | |
2037 | enableval="$enable_debug" | |
2038 | ||
2039 | if test "$enableval" = yes; then | |
2040 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2041 | else | |
2042 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2043 | fi | |
2044 | ||
2045 | else | |
2046 | ||
2047 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
2048 | if test "x$LINE" != x ; then | |
2049 | eval "DEFAULT_$LINE" | |
2050 | else | |
2051 | no_cache=1 | |
2052 | fi | |
2053 | ||
2054 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
2055 | ||
2056 | fi | |
2057 | ||
2058 | ||
2059 | eval "$ac_cv_use_debug" | |
2060 | if test "$no_cache" != 1; then | |
2061 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2062 | fi | |
2063 | ||
2064 | if test "$wxUSE_DEBUG" = yes; then | |
2065 | echo "$ac_t""yes" 1>&6 | |
2066 | else | |
2067 | echo "$ac_t""no" 1>&6 | |
2068 | fi | |
2069 | ||
2070 | ||
2071 | if test "$wxUSE_DEBUG" = "yes"; then | |
2072 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2073 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2074 | elif test "$wxUSE_DEBUG" = "no"; then | |
2075 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2076 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2077 | fi | |
2078 | ||
2079 | ||
2080 | echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6 | |
f6bcfd97 | 2081 | echo "configure:2082: checking "for --enable-debug_flag"" >&5 |
10f2d63a VZ |
2082 | no_cache=0 |
2083 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2084 | if test "${enable_debug_flag+set}" = set; then | |
2085 | enableval="$enable_debug_flag" | |
2086 | ||
2087 | if test "$enableval" = yes; then | |
2088 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2089 | else | |
2090 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2091 | fi | |
2092 | ||
2093 | else | |
2094 | ||
2095 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
2096 | if test "x$LINE" != x ; then | |
2097 | eval "DEFAULT_$LINE" | |
2098 | else | |
2099 | no_cache=1 | |
2100 | fi | |
2101 | ||
2102 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
2103 | ||
2104 | fi | |
2105 | ||
2106 | ||
2107 | eval "$ac_cv_use_debug_flag" | |
2108 | if test "$no_cache" != 1; then | |
2109 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2110 | fi | |
2111 | ||
2112 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
2113 | echo "$ac_t""yes" 1>&6 | |
2114 | else | |
2115 | echo "$ac_t""no" 1>&6 | |
2116 | fi | |
2117 | ||
2118 | ||
2119 | echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6 | |
f6bcfd97 | 2120 | echo "configure:2121: checking "for --enable-debug_info"" >&5 |
10f2d63a VZ |
2121 | no_cache=0 |
2122 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2123 | if test "${enable_debug_info+set}" = set; then | |
2124 | enableval="$enable_debug_info" | |
2125 | ||
2126 | if test "$enableval" = yes; then | |
2127 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2128 | else | |
2129 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2130 | fi | |
2131 | ||
2132 | else | |
2133 | ||
2134 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
2135 | if test "x$LINE" != x ; then | |
2136 | eval "DEFAULT_$LINE" | |
2137 | else | |
2138 | no_cache=1 | |
2139 | fi | |
2140 | ||
2141 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
2142 | ||
2143 | fi | |
2144 | ||
2145 | ||
2146 | eval "$ac_cv_use_debug_info" | |
2147 | if test "$no_cache" != 1; then | |
2148 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2149 | fi | |
2150 | ||
2151 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
2152 | echo "$ac_t""yes" 1>&6 | |
2153 | else | |
2154 | echo "$ac_t""no" 1>&6 | |
2155 | fi | |
2156 | ||
2157 | ||
2158 | echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6 | |
f6bcfd97 | 2159 | echo "configure:2160: checking "for --enable-debug_gdb"" >&5 |
10f2d63a VZ |
2160 | no_cache=0 |
2161 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2162 | if test "${enable_debug_gdb+set}" = set; then | |
2163 | enableval="$enable_debug_gdb" | |
2164 | ||
2165 | if test "$enableval" = yes; then | |
2166 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2167 | else | |
2168 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2169 | fi | |
2170 | ||
2171 | else | |
2172 | ||
2173 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
2174 | if test "x$LINE" != x ; then | |
2175 | eval "DEFAULT_$LINE" | |
2176 | else | |
2177 | no_cache=1 | |
2178 | fi | |
2179 | ||
2180 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
2181 | ||
2182 | fi | |
2183 | ||
2184 | ||
2185 | eval "$ac_cv_use_debug_gdb" | |
2186 | if test "$no_cache" != 1; then | |
2187 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2188 | fi | |
2189 | ||
2190 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
2191 | echo "$ac_t""yes" 1>&6 | |
2192 | else | |
2193 | echo "$ac_t""no" 1>&6 | |
2194 | fi | |
2195 | ||
2196 | ||
2197 | echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6 | |
f6bcfd97 | 2198 | echo "configure:2199: checking "for --enable-debug_cntxt"" >&5 |
10f2d63a VZ |
2199 | no_cache=0 |
2200 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2201 | if test "${enable_debug_cntxt+set}" = set; then | |
2202 | enableval="$enable_debug_cntxt" | |
2203 | ||
2204 | if test "$enableval" = yes; then | |
2205 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2206 | else | |
2207 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2208 | fi | |
2209 | ||
2210 | else | |
2211 | ||
2212 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
2213 | if test "x$LINE" != x ; then | |
2214 | eval "DEFAULT_$LINE" | |
2215 | else | |
2216 | no_cache=1 | |
2217 | fi | |
2218 | ||
2219 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
2220 | ||
2221 | fi | |
2222 | ||
2223 | ||
2224 | eval "$ac_cv_use_debug_cntxt" | |
2225 | if test "$no_cache" != 1; then | |
2226 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2227 | fi | |
2228 | ||
2229 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
2230 | echo "$ac_t""yes" 1>&6 | |
2231 | else | |
2232 | echo "$ac_t""no" 1>&6 | |
2233 | fi | |
2234 | ||
2235 | ||
2236 | echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6 | |
f6bcfd97 | 2237 | echo "configure:2238: checking "for --enable-mem_tracing"" >&5 |
10f2d63a VZ |
2238 | no_cache=0 |
2239 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2240 | if test "${enable_mem_tracing+set}" = set; then | |
2241 | enableval="$enable_mem_tracing" | |
2242 | ||
2243 | if test "$enableval" = yes; then | |
2244 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2245 | else | |
2246 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2247 | fi | |
2248 | ||
2249 | else | |
2250 | ||
2251 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
2252 | if test "x$LINE" != x ; then | |
2253 | eval "DEFAULT_$LINE" | |
2254 | else | |
2255 | no_cache=1 | |
2256 | fi | |
2257 | ||
2258 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
2259 | ||
2260 | fi | |
2261 | ||
2262 | ||
2263 | eval "$ac_cv_use_mem_tracing" | |
2264 | if test "$no_cache" != 1; then | |
2265 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2266 | fi | |
2267 | ||
2268 | if test "$wxUSE_MEM_TRACING" = yes; then | |
2269 | echo "$ac_t""yes" 1>&6 | |
2270 | else | |
2271 | echo "$ac_t""no" 1>&6 | |
2272 | fi | |
2273 | ||
2274 | ||
2275 | echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6 | |
f6bcfd97 | 2276 | echo "configure:2277: checking "for --enable-profile"" >&5 |
10f2d63a VZ |
2277 | no_cache=0 |
2278 | # Check whether --enable-profile or --disable-profile was given. | |
2279 | if test "${enable_profile+set}" = set; then | |
2280 | enableval="$enable_profile" | |
2281 | ||
2282 | if test "$enableval" = yes; then | |
2283 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2284 | else | |
2285 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2286 | fi | |
2287 | ||
2288 | else | |
2289 | ||
2290 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
2291 | if test "x$LINE" != x ; then | |
2292 | eval "DEFAULT_$LINE" | |
2293 | else | |
2294 | no_cache=1 | |
2295 | fi | |
2296 | ||
2297 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
2298 | ||
2299 | fi | |
2300 | ||
2301 | ||
2302 | eval "$ac_cv_use_profile" | |
2303 | if test "$no_cache" != 1; then | |
2304 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2305 | fi | |
2306 | ||
2307 | if test "$wxUSE_PROFILE" = yes; then | |
2308 | echo "$ac_t""yes" 1>&6 | |
2309 | else | |
2310 | echo "$ac_t""no" 1>&6 | |
2311 | fi | |
2312 | ||
2313 | ||
2314 | echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6 | |
f6bcfd97 | 2315 | echo "configure:2316: checking "for --enable-no_rtti"" >&5 |
10f2d63a VZ |
2316 | no_cache=0 |
2317 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2318 | if test "${enable_no_rtti+set}" = set; then | |
2319 | enableval="$enable_no_rtti" | |
2320 | ||
2321 | if test "$enableval" = yes; then | |
2322 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2323 | else | |
2324 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2325 | fi | |
2326 | ||
2327 | else | |
2328 | ||
2329 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
2330 | if test "x$LINE" != x ; then | |
2331 | eval "DEFAULT_$LINE" | |
2332 | else | |
2333 | no_cache=1 | |
2334 | fi | |
2335 | ||
2336 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
2337 | ||
2338 | fi | |
2339 | ||
2340 | ||
2341 | eval "$ac_cv_use_no_rtti" | |
2342 | if test "$no_cache" != 1; then | |
2343 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2344 | fi | |
2345 | ||
2346 | if test "$wxUSE_NO_RTTI" = yes; then | |
2347 | echo "$ac_t""yes" 1>&6 | |
2348 | else | |
2349 | echo "$ac_t""no" 1>&6 | |
2350 | fi | |
2351 | ||
2352 | ||
2353 | echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6 | |
f6bcfd97 | 2354 | echo "configure:2355: checking "for --enable-no_exceptions"" >&5 |
10f2d63a VZ |
2355 | no_cache=0 |
2356 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2357 | if test "${enable_no_exceptions+set}" = set; then | |
2358 | enableval="$enable_no_exceptions" | |
2359 | ||
2360 | if test "$enableval" = yes; then | |
2361 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2362 | else | |
2363 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2364 | fi | |
2365 | ||
2366 | else | |
2367 | ||
2368 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
2369 | if test "x$LINE" != x ; then | |
2370 | eval "DEFAULT_$LINE" | |
2371 | else | |
2372 | no_cache=1 | |
2373 | fi | |
2374 | ||
2375 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
2376 | ||
2377 | fi | |
2378 | ||
2379 | ||
2380 | eval "$ac_cv_use_no_exceptions" | |
2381 | if test "$no_cache" != 1; then | |
2382 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2383 | fi | |
2384 | ||
2385 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
2386 | echo "$ac_t""yes" 1>&6 | |
2387 | else | |
2388 | echo "$ac_t""no" 1>&6 | |
2389 | fi | |
2390 | ||
2391 | ||
2392 | echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6 | |
f6bcfd97 | 2393 | echo "configure:2394: checking "for --enable-permissive"" >&5 |
10f2d63a VZ |
2394 | no_cache=0 |
2395 | # Check whether --enable-permissive or --disable-permissive was given. | |
2396 | if test "${enable_permissive+set}" = set; then | |
2397 | enableval="$enable_permissive" | |
2398 | ||
2399 | if test "$enableval" = yes; then | |
2400 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2401 | else | |
2402 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2403 | fi | |
2404 | ||
2405 | else | |
2406 | ||
2407 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
2408 | if test "x$LINE" != x ; then | |
2409 | eval "DEFAULT_$LINE" | |
2410 | else | |
2411 | no_cache=1 | |
2412 | fi | |
2413 | ||
2414 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
2415 | ||
2416 | fi | |
2417 | ||
2418 | ||
2419 | eval "$ac_cv_use_permissive" | |
2420 | if test "$no_cache" != 1; then | |
2421 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2422 | fi | |
2423 | ||
2424 | if test "$wxUSE_PERMISSIVE" = yes; then | |
2425 | echo "$ac_t""yes" 1>&6 | |
2426 | else | |
2427 | echo "$ac_t""no" 1>&6 | |
2428 | fi | |
2429 | ||
2430 | ||
2431 | echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6 | |
f6bcfd97 | 2432 | echo "configure:2433: checking "for --enable-no_deps"" >&5 |
10f2d63a VZ |
2433 | no_cache=0 |
2434 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2435 | if test "${enable_no_deps+set}" = set; then | |
2436 | enableval="$enable_no_deps" | |
2437 | ||
2438 | if test "$enableval" = yes; then | |
2439 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2440 | else | |
2441 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2442 | fi | |
2443 | ||
2444 | else | |
2445 | ||
2446 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
2447 | if test "x$LINE" != x ; then | |
2448 | eval "DEFAULT_$LINE" | |
2449 | else | |
2450 | no_cache=1 | |
2451 | fi | |
2452 | ||
2453 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
2454 | ||
2455 | fi | |
2456 | ||
2457 | ||
2458 | eval "$ac_cv_use_no_deps" | |
2459 | if test "$no_cache" != 1; then | |
2460 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2461 | fi | |
2462 | ||
2463 | if test "$wxUSE_NO_DEPS" = yes; then | |
2464 | echo "$ac_t""yes" 1>&6 | |
2465 | else | |
2466 | echo "$ac_t""no" 1>&6 | |
2467 | fi | |
2468 | ||
2469 | ||
2470 | ||
2471 | ||
2472 | echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6 | |
f6bcfd97 | 2473 | echo "configure:2474: checking "for --enable-intl"" >&5 |
10f2d63a VZ |
2474 | no_cache=0 |
2475 | # Check whether --enable-intl or --disable-intl was given. | |
2476 | if test "${enable_intl+set}" = set; then | |
2477 | enableval="$enable_intl" | |
2478 | ||
2479 | if test "$enableval" = yes; then | |
2480 | ac_cv_use_intl='wxUSE_INTL=yes' | |
2481 | else | |
2482 | ac_cv_use_intl='wxUSE_INTL=no' | |
2483 | fi | |
2484 | ||
2485 | else | |
2486 | ||
2487 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
2488 | if test "x$LINE" != x ; then | |
2489 | eval "DEFAULT_$LINE" | |
2490 | else | |
2491 | no_cache=1 | |
2492 | fi | |
2493 | ||
2494 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
2495 | ||
2496 | fi | |
2497 | ||
2498 | ||
2499 | eval "$ac_cv_use_intl" | |
2500 | if test "$no_cache" != 1; then | |
2501 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
2502 | fi | |
2503 | ||
2504 | if test "$wxUSE_INTL" = yes; then | |
2505 | echo "$ac_t""yes" 1>&6 | |
2506 | else | |
2507 | echo "$ac_t""no" 1>&6 | |
2508 | fi | |
2509 | ||
2510 | ||
2511 | echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6 | |
f6bcfd97 | 2512 | echo "configure:2513: checking "for --enable-config"" >&5 |
10f2d63a VZ |
2513 | no_cache=0 |
2514 | # Check whether --enable-config or --disable-config was given. | |
2515 | if test "${enable_config+set}" = set; then | |
2516 | enableval="$enable_config" | |
2517 | ||
2518 | if test "$enableval" = yes; then | |
2519 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
2520 | else | |
2521 | ac_cv_use_config='wxUSE_CONFIG=no' | |
2522 | fi | |
2523 | ||
2524 | else | |
2525 | ||
2526 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
2527 | if test "x$LINE" != x ; then | |
2528 | eval "DEFAULT_$LINE" | |
2529 | else | |
2530 | no_cache=1 | |
2531 | fi | |
2532 | ||
2533 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
2534 | ||
2535 | fi | |
2536 | ||
2537 | ||
2538 | eval "$ac_cv_use_config" | |
2539 | if test "$no_cache" != 1; then | |
2540 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
2541 | fi | |
2542 | ||
2543 | if test "$wxUSE_CONFIG" = yes; then | |
2544 | echo "$ac_t""yes" 1>&6 | |
2545 | else | |
2546 | echo "$ac_t""no" 1>&6 | |
2547 | fi | |
2548 | ||
2549 | ||
b12915c1 | 2550 | |
10f2d63a | 2551 | echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6 |
f6bcfd97 | 2552 | echo "configure:2553: checking "for --enable-sockets"" >&5 |
10f2d63a VZ |
2553 | no_cache=0 |
2554 | # Check whether --enable-sockets or --disable-sockets was given. | |
2555 | if test "${enable_sockets+set}" = set; then | |
2556 | enableval="$enable_sockets" | |
2557 | ||
2558 | if test "$enableval" = yes; then | |
2559 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
2560 | else | |
2561 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
2562 | fi | |
2563 | ||
2564 | else | |
2565 | ||
2566 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
2567 | if test "x$LINE" != x ; then | |
2568 | eval "DEFAULT_$LINE" | |
2569 | else | |
2570 | no_cache=1 | |
2571 | fi | |
2572 | ||
2573 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
2574 | ||
2575 | fi | |
2576 | ||
2577 | ||
2578 | eval "$ac_cv_use_sockets" | |
2579 | if test "$no_cache" != 1; then | |
2580 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
2581 | fi | |
2582 | ||
2583 | if test "$wxUSE_SOCKETS" = yes; then | |
2584 | echo "$ac_t""yes" 1>&6 | |
2585 | else | |
2586 | echo "$ac_t""no" 1>&6 | |
2587 | fi | |
2588 | ||
b12915c1 | 2589 | |
10f2d63a | 2590 | |
eb4efbdc | 2591 | echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6 |
f6bcfd97 | 2592 | echo "configure:2593: checking "for --enable-ipc"" >&5 |
10f2d63a | 2593 | no_cache=0 |
eb4efbdc VZ |
2594 | # Check whether --enable-ipc or --disable-ipc was given. |
2595 | if test "${enable_ipc+set}" = set; then | |
2596 | enableval="$enable_ipc" | |
10f2d63a VZ |
2597 | |
2598 | if test "$enableval" = yes; then | |
eb4efbdc | 2599 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 2600 | else |
eb4efbdc | 2601 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a VZ |
2602 | fi |
2603 | ||
2604 | else | |
2605 | ||
eb4efbdc | 2606 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
2607 | if test "x$LINE" != x ; then |
2608 | eval "DEFAULT_$LINE" | |
2609 | else | |
2610 | no_cache=1 | |
2611 | fi | |
2612 | ||
eb4efbdc | 2613 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
10f2d63a VZ |
2614 | |
2615 | fi | |
2616 | ||
2617 | ||
eb4efbdc | 2618 | eval "$ac_cv_use_ipc" |
10f2d63a | 2619 | if test "$no_cache" != 1; then |
eb4efbdc | 2620 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2621 | fi |
2622 | ||
eb4efbdc | 2623 | if test "$wxUSE_IPC" = yes; then |
10f2d63a VZ |
2624 | echo "$ac_t""yes" 1>&6 |
2625 | else | |
2626 | echo "$ac_t""no" 1>&6 | |
2627 | fi | |
2628 | ||
2629 | ||
eb4efbdc VZ |
2630 | |
2631 | echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6 | |
f6bcfd97 | 2632 | echo "configure:2633: checking "for --enable-dialupman"" >&5 |
10f2d63a | 2633 | no_cache=0 |
eb4efbdc VZ |
2634 | # Check whether --enable-dialupman or --disable-dialupman was given. |
2635 | if test "${enable_dialupman+set}" = set; then | |
2636 | enableval="$enable_dialupman" | |
10f2d63a VZ |
2637 | |
2638 | if test "$enableval" = yes; then | |
eb4efbdc | 2639 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 2640 | else |
eb4efbdc | 2641 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a VZ |
2642 | fi |
2643 | ||
2644 | else | |
2645 | ||
eb4efbdc | 2646 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
2647 | if test "x$LINE" != x ; then |
2648 | eval "DEFAULT_$LINE" | |
2649 | else | |
2650 | no_cache=1 | |
2651 | fi | |
2652 | ||
eb4efbdc | 2653 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
10f2d63a VZ |
2654 | |
2655 | fi | |
2656 | ||
2657 | ||
eb4efbdc | 2658 | eval "$ac_cv_use_dialupman" |
10f2d63a | 2659 | if test "$no_cache" != 1; then |
eb4efbdc | 2660 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2661 | fi |
2662 | ||
eb4efbdc | 2663 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
10f2d63a VZ |
2664 | echo "$ac_t""yes" 1>&6 |
2665 | else | |
2666 | echo "$ac_t""no" 1>&6 | |
2667 | fi | |
2668 | ||
2669 | ||
2670 | echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6 | |
f6bcfd97 | 2671 | echo "configure:2672: checking "for --enable-apple_ieee"" >&5 |
10f2d63a VZ |
2672 | no_cache=0 |
2673 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
2674 | if test "${enable_apple_ieee+set}" = set; then | |
2675 | enableval="$enable_apple_ieee" | |
2676 | ||
2677 | if test "$enableval" = yes; then | |
2678 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
2679 | else | |
2680 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
2681 | fi | |
2682 | ||
2683 | else | |
2684 | ||
2685 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
2686 | if test "x$LINE" != x ; then | |
2687 | eval "DEFAULT_$LINE" | |
2688 | else | |
2689 | no_cache=1 | |
2690 | fi | |
2691 | ||
2692 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
2693 | ||
2694 | fi | |
2695 | ||
2696 | ||
2697 | eval "$ac_cv_use_apple_ieee" | |
2698 | if test "$no_cache" != 1; then | |
2699 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
2700 | fi | |
2701 | ||
2702 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
2703 | echo "$ac_t""yes" 1>&6 | |
2704 | else | |
2705 | echo "$ac_t""no" 1>&6 | |
2706 | fi | |
2707 | ||
2708 | ||
2709 | echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6 | |
f6bcfd97 | 2710 | echo "configure:2711: checking "for --enable-timedate"" >&5 |
10f2d63a VZ |
2711 | no_cache=0 |
2712 | # Check whether --enable-timedate or --disable-timedate was given. | |
2713 | if test "${enable_timedate+set}" = set; then | |
2714 | enableval="$enable_timedate" | |
2715 | ||
2716 | if test "$enableval" = yes; then | |
2717 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
2718 | else | |
2719 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
2720 | fi | |
2721 | ||
2722 | else | |
2723 | ||
2724 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
2725 | if test "x$LINE" != x ; then | |
2726 | eval "DEFAULT_$LINE" | |
2727 | else | |
2728 | no_cache=1 | |
2729 | fi | |
2730 | ||
2731 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
2732 | ||
2733 | fi | |
2734 | ||
2735 | ||
2736 | eval "$ac_cv_use_timedate" | |
2737 | if test "$no_cache" != 1; then | |
2738 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
2739 | fi | |
2740 | ||
2741 | if test "$wxUSE_TIMEDATE" = yes; then | |
2742 | echo "$ac_t""yes" 1>&6 | |
2743 | else | |
2744 | echo "$ac_t""no" 1>&6 | |
2745 | fi | |
2746 | ||
2747 | ||
2748 | echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6 | |
f6bcfd97 | 2749 | echo "configure:2750: checking "for --enable-wave"" >&5 |
10f2d63a VZ |
2750 | no_cache=0 |
2751 | # Check whether --enable-wave or --disable-wave was given. | |
2752 | if test "${enable_wave+set}" = set; then | |
2753 | enableval="$enable_wave" | |
2754 | ||
2755 | if test "$enableval" = yes; then | |
2756 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
2757 | else | |
2758 | ac_cv_use_wave='wxUSE_WAVE=no' | |
2759 | fi | |
2760 | ||
2761 | else | |
2762 | ||
2763 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` | |
2764 | if test "x$LINE" != x ; then | |
2765 | eval "DEFAULT_$LINE" | |
2766 | else | |
2767 | no_cache=1 | |
2768 | fi | |
2769 | ||
2770 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
2771 | ||
2772 | fi | |
2773 | ||
2774 | ||
2775 | eval "$ac_cv_use_wave" | |
2776 | if test "$no_cache" != 1; then | |
2777 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
2778 | fi | |
2779 | ||
2780 | if test "$wxUSE_WAVE" = yes; then | |
2781 | echo "$ac_t""yes" 1>&6 | |
2782 | else | |
2783 | echo "$ac_t""no" 1>&6 | |
2784 | fi | |
2785 | ||
2786 | ||
2787 | echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6 | |
f6bcfd97 | 2788 | echo "configure:2789: checking "for --enable-fraction"" >&5 |
10f2d63a VZ |
2789 | no_cache=0 |
2790 | # Check whether --enable-fraction or --disable-fraction was given. | |
2791 | if test "${enable_fraction+set}" = set; then | |
2792 | enableval="$enable_fraction" | |
2793 | ||
2794 | if test "$enableval" = yes; then | |
2795 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
2796 | else | |
2797 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
2798 | fi | |
2799 | ||
2800 | else | |
2801 | ||
2802 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` | |
2803 | if test "x$LINE" != x ; then | |
2804 | eval "DEFAULT_$LINE" | |
2805 | else | |
2806 | no_cache=1 | |
2807 | fi | |
2808 | ||
2809 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
2810 | ||
2811 | fi | |
2812 | ||
2813 | ||
2814 | eval "$ac_cv_use_fraction" | |
2815 | if test "$no_cache" != 1; then | |
2816 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
2817 | fi | |
2818 | ||
2819 | if test "$wxUSE_FRACTION" = yes; then | |
2820 | echo "$ac_t""yes" 1>&6 | |
2821 | else | |
2822 | echo "$ac_t""no" 1>&6 | |
2823 | fi | |
2824 | ||
2825 | ||
2826 | echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6 | |
f6bcfd97 | 2827 | echo "configure:2828: checking "for --enable-dynlib"" >&5 |
10f2d63a VZ |
2828 | no_cache=0 |
2829 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
2830 | if test "${enable_dynlib+set}" = set; then | |
2831 | enableval="$enable_dynlib" | |
2832 | ||
2833 | if test "$enableval" = yes; then | |
2834 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
2835 | else | |
2836 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
2837 | fi | |
2838 | ||
2839 | else | |
2840 | ||
2841 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
2842 | if test "x$LINE" != x ; then | |
2843 | eval "DEFAULT_$LINE" | |
2844 | else | |
2845 | no_cache=1 | |
2846 | fi | |
2847 | ||
2848 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
2849 | ||
2850 | fi | |
2851 | ||
2852 | ||
2853 | eval "$ac_cv_use_dynlib" | |
2854 | if test "$no_cache" != 1; then | |
2855 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
2856 | fi | |
2857 | ||
2858 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
2859 | echo "$ac_t""yes" 1>&6 | |
2860 | else | |
2861 | echo "$ac_t""no" 1>&6 | |
2862 | fi | |
2863 | ||
2864 | ||
2865 | echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6 | |
f6bcfd97 | 2866 | echo "configure:2867: checking "for --enable-longlong"" >&5 |
10f2d63a VZ |
2867 | no_cache=0 |
2868 | # Check whether --enable-longlong or --disable-longlong was given. | |
2869 | if test "${enable_longlong+set}" = set; then | |
2870 | enableval="$enable_longlong" | |
2871 | ||
2872 | if test "$enableval" = yes; then | |
2873 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
2874 | else | |
2875 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
2876 | fi | |
2877 | ||
2878 | else | |
2879 | ||
2880 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
2881 | if test "x$LINE" != x ; then | |
2882 | eval "DEFAULT_$LINE" | |
2883 | else | |
2884 | no_cache=1 | |
2885 | fi | |
2886 | ||
2887 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
2888 | ||
2889 | fi | |
2890 | ||
2891 | ||
2892 | eval "$ac_cv_use_longlong" | |
2893 | if test "$no_cache" != 1; then | |
2894 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
2895 | fi | |
2896 | ||
2897 | if test "$wxUSE_LONGLONG" = yes; then | |
2898 | echo "$ac_t""yes" 1>&6 | |
2899 | else | |
2900 | echo "$ac_t""no" 1>&6 | |
2901 | fi | |
2902 | ||
2903 | ||
2904 | echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6 | |
f6bcfd97 | 2905 | echo "configure:2906: checking "for --enable-log"" >&5 |
10f2d63a VZ |
2906 | no_cache=0 |
2907 | # Check whether --enable-log or --disable-log was given. | |
2908 | if test "${enable_log+set}" = set; then | |
2909 | enableval="$enable_log" | |
2910 | ||
2911 | if test "$enableval" = yes; then | |
2912 | ac_cv_use_log='wxUSE_LOG=yes' | |
2913 | else | |
2914 | ac_cv_use_log='wxUSE_LOG=no' | |
2915 | fi | |
2916 | ||
2917 | else | |
2918 | ||
2919 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
2920 | if test "x$LINE" != x ; then | |
2921 | eval "DEFAULT_$LINE" | |
2922 | else | |
2923 | no_cache=1 | |
2924 | fi | |
2925 | ||
2926 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
2927 | ||
2928 | fi | |
2929 | ||
2930 | ||
2931 | eval "$ac_cv_use_log" | |
2932 | if test "$no_cache" != 1; then | |
2933 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
2934 | fi | |
2935 | ||
2936 | if test "$wxUSE_LOG" = yes; then | |
2937 | echo "$ac_t""yes" 1>&6 | |
2938 | else | |
2939 | echo "$ac_t""no" 1>&6 | |
2940 | fi | |
2941 | ||
2942 | ||
2943 | echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6 | |
f6bcfd97 | 2944 | echo "configure:2945: checking "for --enable-streams"" >&5 |
10f2d63a VZ |
2945 | no_cache=0 |
2946 | # Check whether --enable-streams or --disable-streams was given. | |
2947 | if test "${enable_streams+set}" = set; then | |
2948 | enableval="$enable_streams" | |
2949 | ||
2950 | if test "$enableval" = yes; then | |
2951 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
2952 | else | |
2953 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
2954 | fi | |
2955 | ||
2956 | else | |
2957 | ||
2958 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
2959 | if test "x$LINE" != x ; then | |
2960 | eval "DEFAULT_$LINE" | |
2961 | else | |
2962 | no_cache=1 | |
2963 | fi | |
2964 | ||
2965 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
2966 | ||
2967 | fi | |
2968 | ||
2969 | ||
2970 | eval "$ac_cv_use_streams" | |
2971 | if test "$no_cache" != 1; then | |
2972 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
2973 | fi | |
2974 | ||
2975 | if test "$wxUSE_STREAMS" = yes; then | |
2976 | echo "$ac_t""yes" 1>&6 | |
2977 | else | |
2978 | echo "$ac_t""no" 1>&6 | |
2979 | fi | |
2980 | ||
2981 | ||
2982 | echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6 | |
f6bcfd97 | 2983 | echo "configure:2984: checking "for --enable-file"" >&5 |
10f2d63a VZ |
2984 | no_cache=0 |
2985 | # Check whether --enable-file or --disable-file was given. | |
2986 | if test "${enable_file+set}" = set; then | |
2987 | enableval="$enable_file" | |
2988 | ||
2989 | if test "$enableval" = yes; then | |
2990 | ac_cv_use_file='wxUSE_FILE=yes' | |
2991 | else | |
2992 | ac_cv_use_file='wxUSE_FILE=no' | |
2993 | fi | |
2994 | ||
2995 | else | |
2996 | ||
2997 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
2998 | if test "x$LINE" != x ; then | |
2999 | eval "DEFAULT_$LINE" | |
3000 | else | |
3001 | no_cache=1 | |
3002 | fi | |
3003 | ||
3004 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
3005 | ||
3006 | fi | |
3007 | ||
3008 | ||
3009 | eval "$ac_cv_use_file" | |
3010 | if test "$no_cache" != 1; then | |
3011 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
3012 | fi | |
3013 | ||
3014 | if test "$wxUSE_FILE" = yes; then | |
3015 | echo "$ac_t""yes" 1>&6 | |
3016 | else | |
3017 | echo "$ac_t""no" 1>&6 | |
3018 | fi | |
3019 | ||
3020 | ||
3021 | echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6 | |
f6bcfd97 | 3022 | echo "configure:3023: checking "for --enable-textfile"" >&5 |
10f2d63a VZ |
3023 | no_cache=0 |
3024 | # Check whether --enable-textfile or --disable-textfile was given. | |
3025 | if test "${enable_textfile+set}" = set; then | |
3026 | enableval="$enable_textfile" | |
3027 | ||
3028 | if test "$enableval" = yes; then | |
3029 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
3030 | else | |
3031 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
3032 | fi | |
3033 | ||
3034 | else | |
3035 | ||
3036 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
3037 | if test "x$LINE" != x ; then | |
3038 | eval "DEFAULT_$LINE" | |
3039 | else | |
3040 | no_cache=1 | |
3041 | fi | |
3042 | ||
3043 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
3044 | ||
3045 | fi | |
3046 | ||
3047 | ||
3048 | eval "$ac_cv_use_textfile" | |
3049 | if test "$no_cache" != 1; then | |
3050 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
3051 | fi | |
3052 | ||
3053 | if test "$wxUSE_TEXTFILE" = yes; then | |
3054 | echo "$ac_t""yes" 1>&6 | |
3055 | else | |
3056 | echo "$ac_t""no" 1>&6 | |
3057 | fi | |
3058 | ||
3059 | ||
3060 | echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6 | |
f6bcfd97 | 3061 | echo "configure:3062: checking "for --enable-unicode"" >&5 |
10f2d63a VZ |
3062 | no_cache=0 |
3063 | # Check whether --enable-unicode or --disable-unicode was given. | |
3064 | if test "${enable_unicode+set}" = set; then | |
3065 | enableval="$enable_unicode" | |
3066 | ||
3067 | if test "$enableval" = yes; then | |
3068 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
3069 | else | |
3070 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
3071 | fi | |
3072 | ||
3073 | else | |
3074 | ||
3075 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
3076 | if test "x$LINE" != x ; then | |
3077 | eval "DEFAULT_$LINE" | |
3078 | else | |
3079 | no_cache=1 | |
3080 | fi | |
3081 | ||
3082 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
3083 | ||
3084 | fi | |
3085 | ||
3086 | ||
3087 | eval "$ac_cv_use_unicode" | |
3088 | if test "$no_cache" != 1; then | |
3089 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
3090 | fi | |
3091 | ||
3092 | if test "$wxUSE_UNICODE" = yes; then | |
3093 | echo "$ac_t""yes" 1>&6 | |
3094 | else | |
3095 | echo "$ac_t""no" 1>&6 | |
3096 | fi | |
3097 | ||
3098 | ||
3099 | echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6 | |
f6bcfd97 | 3100 | echo "configure:3101: checking "for --enable-wcsrtombs"" >&5 |
10f2d63a VZ |
3101 | no_cache=0 |
3102 | # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given. | |
3103 | if test "${enable_wcsrtombs+set}" = set; then | |
3104 | enableval="$enable_wcsrtombs" | |
3105 | ||
3106 | if test "$enableval" = yes; then | |
3107 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes' | |
3108 | else | |
3109 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no' | |
3110 | fi | |
3111 | ||
3112 | else | |
3113 | ||
3114 | LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}` | |
3115 | if test "x$LINE" != x ; then | |
3116 | eval "DEFAULT_$LINE" | |
3117 | else | |
3118 | no_cache=1 | |
3119 | fi | |
3120 | ||
3121 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS | |
3122 | ||
3123 | fi | |
3124 | ||
3125 | ||
3126 | eval "$ac_cv_use_wcsrtombs" | |
3127 | if test "$no_cache" != 1; then | |
3128 | echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp | |
3129 | fi | |
3130 | ||
3131 | if test "$wxUSE_WCSRTOMBS" = yes; then | |
3132 | echo "$ac_t""yes" 1>&6 | |
3133 | else | |
3134 | echo "$ac_t""no" 1>&6 | |
3135 | fi | |
3136 | ||
3137 | ||
3138 | echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6 | |
f6bcfd97 | 3139 | echo "configure:3140: checking "for --enable-wxprintfv"" >&5 |
10f2d63a VZ |
3140 | no_cache=0 |
3141 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
3142 | if test "${enable_wxprintfv+set}" = set; then | |
3143 | enableval="$enable_wxprintfv" | |
3144 | ||
3145 | if test "$enableval" = yes; then | |
3146 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
3147 | else | |
3148 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
3149 | fi | |
3150 | ||
3151 | else | |
3152 | ||
3153 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
3154 | if test "x$LINE" != x ; then | |
3155 | eval "DEFAULT_$LINE" | |
3156 | else | |
3157 | no_cache=1 | |
3158 | fi | |
3159 | ||
3160 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
3161 | ||
3162 | fi | |
3163 | ||
3164 | ||
3165 | eval "$ac_cv_use_wxprintfv" | |
3166 | if test "$no_cache" != 1; then | |
3167 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
3168 | fi | |
3169 | ||
3170 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
3171 | echo "$ac_t""yes" 1>&6 | |
3172 | else | |
3173 | echo "$ac_t""no" 1>&6 | |
3174 | fi | |
3175 | ||
3176 | ||
10f2d63a | 3177 | echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6 |
f6bcfd97 | 3178 | echo "configure:3179: checking "for --enable-std_iostreams"" >&5 |
10f2d63a VZ |
3179 | no_cache=0 |
3180 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
3181 | if test "${enable_std_iostreams+set}" = set; then | |
3182 | enableval="$enable_std_iostreams" | |
3183 | ||
3184 | if test "$enableval" = yes; then | |
3185 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
3186 | else | |
3187 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
3188 | fi | |
3189 | ||
3190 | else | |
3191 | ||
3192 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` | |
3193 | if test "x$LINE" != x ; then | |
3194 | eval "DEFAULT_$LINE" | |
3195 | else | |
3196 | no_cache=1 | |
3197 | fi | |
3198 | ||
3199 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
3200 | ||
3201 | fi | |
3202 | ||
3203 | ||
3204 | eval "$ac_cv_use_std_iostreams" | |
3205 | if test "$no_cache" != 1; then | |
3206 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
3207 | fi | |
3208 | ||
3209 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
3210 | echo "$ac_t""yes" 1>&6 | |
3211 | else | |
3212 | echo "$ac_t""no" 1>&6 | |
3213 | fi | |
3214 | ||
3215 | ||
24528b0c | 3216 | echo $ac_n "checking "for --enable-filesystem"""... $ac_c" 1>&6 |
f6bcfd97 | 3217 | echo "configure:3218: checking "for --enable-filesystem"" >&5 |
24528b0c VS |
3218 | no_cache=0 |
3219 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
3220 | if test "${enable_filesystem+set}" = set; then | |
3221 | enableval="$enable_filesystem" | |
3222 | ||
3223 | if test "$enableval" = yes; then | |
3224 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
3225 | else | |
3226 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
3227 | fi | |
3228 | ||
3229 | else | |
3230 | ||
3231 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
3232 | if test "x$LINE" != x ; then | |
3233 | eval "DEFAULT_$LINE" | |
3234 | else | |
3235 | no_cache=1 | |
3236 | fi | |
3237 | ||
3238 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
3239 | ||
3240 | fi | |
3241 | ||
3242 | ||
3243 | eval "$ac_cv_use_filesystem" | |
3244 | if test "$no_cache" != 1; then | |
3245 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
3246 | fi | |
3247 | ||
3248 | if test "$wxUSE_FILESYSTEM" = yes; then | |
3249 | echo "$ac_t""yes" 1>&6 | |
3250 | else | |
3251 | echo "$ac_t""no" 1>&6 | |
3252 | fi | |
3253 | ||
3254 | ||
10f2d63a | 3255 | echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6 |
f6bcfd97 | 3256 | echo "configure:3257: checking "for --enable-fs_inet"" >&5 |
10f2d63a VZ |
3257 | no_cache=0 |
3258 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
3259 | if test "${enable_fs_inet+set}" = set; then | |
3260 | enableval="$enable_fs_inet" | |
3261 | ||
3262 | if test "$enableval" = yes; then | |
3263 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
3264 | else | |
3265 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
3266 | fi | |
3267 | ||
3268 | else | |
3269 | ||
3270 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
3271 | if test "x$LINE" != x ; then | |
3272 | eval "DEFAULT_$LINE" | |
3273 | else | |
3274 | no_cache=1 | |
3275 | fi | |
3276 | ||
3277 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
3278 | ||
3279 | fi | |
3280 | ||
3281 | ||
3282 | eval "$ac_cv_use_fs_inet" | |
3283 | if test "$no_cache" != 1; then | |
3284 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
3285 | fi | |
3286 | ||
3287 | if test "$wxUSE_FS_INET" = yes; then | |
3288 | echo "$ac_t""yes" 1>&6 | |
3289 | else | |
3290 | echo "$ac_t""no" 1>&6 | |
3291 | fi | |
3292 | ||
3293 | ||
3294 | echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6 | |
f6bcfd97 | 3295 | echo "configure:3296: checking "for --enable-fs_zip"" >&5 |
10f2d63a VZ |
3296 | no_cache=0 |
3297 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
3298 | if test "${enable_fs_zip+set}" = set; then | |
3299 | enableval="$enable_fs_zip" | |
3300 | ||
3301 | if test "$enableval" = yes; then | |
3302 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
3303 | else | |
3304 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
3305 | fi | |
3306 | ||
3307 | else | |
3308 | ||
3309 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
3310 | if test "x$LINE" != x ; then | |
3311 | eval "DEFAULT_$LINE" | |
3312 | else | |
3313 | no_cache=1 | |
3314 | fi | |
3315 | ||
3316 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
3317 | ||
3318 | fi | |
3319 | ||
3320 | ||
3321 | eval "$ac_cv_use_fs_zip" | |
3322 | if test "$no_cache" != 1; then | |
3323 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
3324 | fi | |
3325 | ||
3326 | if test "$wxUSE_FS_ZIP" = yes; then | |
3327 | echo "$ac_t""yes" 1>&6 | |
3328 | else | |
3329 | echo "$ac_t""no" 1>&6 | |
3330 | fi | |
3331 | ||
3332 | ||
3333 | echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6 | |
f6bcfd97 | 3334 | echo "configure:3335: checking "for --enable-zipstream"" >&5 |
10f2d63a VZ |
3335 | no_cache=0 |
3336 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
3337 | if test "${enable_zipstream+set}" = set; then | |
3338 | enableval="$enable_zipstream" | |
3339 | ||
3340 | if test "$enableval" = yes; then | |
3341 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
3342 | else | |
3343 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
3344 | fi | |
3345 | ||
3346 | else | |
3347 | ||
3348 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
3349 | if test "x$LINE" != x ; then | |
3350 | eval "DEFAULT_$LINE" | |
3351 | else | |
3352 | no_cache=1 | |
3353 | fi | |
3354 | ||
3355 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
3356 | ||
3357 | fi | |
3358 | ||
3359 | ||
3360 | eval "$ac_cv_use_zipstream" | |
3361 | if test "$no_cache" != 1; then | |
3362 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
3363 | fi | |
3364 | ||
3365 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
3366 | echo "$ac_t""yes" 1>&6 | |
3367 | else | |
3368 | echo "$ac_t""no" 1>&6 | |
3369 | fi | |
3370 | ||
3371 | ||
3372 | ||
eb4efbdc | 3373 | echo $ac_n "checking "for --enable-catch_segvs"""... $ac_c" 1>&6 |
f6bcfd97 | 3374 | echo "configure:3375: checking "for --enable-catch_segvs"" >&5 |
eb4efbdc VZ |
3375 | no_cache=0 |
3376 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
3377 | if test "${enable_catch_segvs+set}" = set; then | |
3378 | enableval="$enable_catch_segvs" | |
3379 | ||
3380 | if test "$enableval" = yes; then | |
3381 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
3382 | else | |
3383 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
3384 | fi | |
3385 | ||
3386 | else | |
3387 | ||
3388 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` | |
3389 | if test "x$LINE" != x ; then | |
3390 | eval "DEFAULT_$LINE" | |
3391 | else | |
3392 | no_cache=1 | |
3393 | fi | |
3394 | ||
3395 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
3396 | ||
3397 | fi | |
3398 | ||
3399 | ||
3400 | eval "$ac_cv_use_catch_segvs" | |
3401 | if test "$no_cache" != 1; then | |
3402 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
3403 | fi | |
3404 | ||
3405 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
3406 | echo "$ac_t""yes" 1>&6 | |
3407 | else | |
3408 | echo "$ac_t""no" 1>&6 | |
3409 | fi | |
3410 | ||
3411 | ||
3412 | ||
10f2d63a VZ |
3413 | |
3414 | echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6 | |
f6bcfd97 | 3415 | echo "configure:3416: checking "for --enable-threads"" >&5 |
10f2d63a VZ |
3416 | no_cache=0 |
3417 | # Check whether --enable-threads or --disable-threads was given. | |
3418 | if test "${enable_threads+set}" = set; then | |
3419 | enableval="$enable_threads" | |
3420 | ||
3421 | if test "$enableval" = yes; then | |
3422 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
3423 | else | |
3424 | ac_cv_use_threads='wxUSE_THREADS=no' | |
3425 | fi | |
3426 | ||
3427 | else | |
3428 | ||
3429 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
3430 | if test "x$LINE" != x ; then | |
3431 | eval "DEFAULT_$LINE" | |
3432 | else | |
3433 | no_cache=1 | |
3434 | fi | |
3435 | ||
3436 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
3437 | ||
3438 | fi | |
3439 | ||
3440 | ||
3441 | eval "$ac_cv_use_threads" | |
3442 | if test "$no_cache" != 1; then | |
3443 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
3444 | fi | |
3445 | ||
3446 | if test "$wxUSE_THREADS" = yes; then | |
3447 | echo "$ac_t""yes" 1>&6 | |
3448 | else | |
3449 | echo "$ac_t""no" 1>&6 | |
3450 | fi | |
3451 | ||
3452 | ||
3453 | echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6 | |
f6bcfd97 | 3454 | echo "configure:3455: checking "for --enable-serial"" >&5 |
10f2d63a VZ |
3455 | no_cache=0 |
3456 | # Check whether --enable-serial or --disable-serial was given. | |
3457 | if test "${enable_serial+set}" = set; then | |
3458 | enableval="$enable_serial" | |
3459 | ||
3460 | if test "$enableval" = yes; then | |
3461 | ac_cv_use_serial='wxUSE_SERIAL=yes' | |
3462 | else | |
3463 | ac_cv_use_serial='wxUSE_SERIAL=no' | |
3464 | fi | |
3465 | ||
3466 | else | |
3467 | ||
3468 | LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}` | |
3469 | if test "x$LINE" != x ; then | |
3470 | eval "DEFAULT_$LINE" | |
3471 | else | |
3472 | no_cache=1 | |
3473 | fi | |
3474 | ||
3475 | ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL | |
3476 | ||
3477 | fi | |
3478 | ||
3479 | ||
3480 | eval "$ac_cv_use_serial" | |
3481 | if test "$no_cache" != 1; then | |
3482 | echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp | |
3483 | fi | |
3484 | ||
3485 | if test "$wxUSE_SERIAL" = yes; then | |
3486 | echo "$ac_t""yes" 1>&6 | |
3487 | else | |
3488 | echo "$ac_t""no" 1>&6 | |
3489 | fi | |
3490 | ||
3491 | ||
b12915c1 VZ |
3492 | if test "$wxUSE_GUI" = "yes"; then |
3493 | ||
10f2d63a VZ |
3494 | |
3495 | ||
3496 | echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6 | |
f6bcfd97 | 3497 | echo "configure:3498: checking "for --enable-docview"" >&5 |
10f2d63a VZ |
3498 | no_cache=0 |
3499 | # Check whether --enable-docview or --disable-docview was given. | |
3500 | if test "${enable_docview+set}" = set; then | |
3501 | enableval="$enable_docview" | |
3502 | ||
3503 | if test "$enableval" = yes; then | |
3504 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
3505 | else | |
3506 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
3507 | fi | |
3508 | ||
3509 | else | |
3510 | ||
3511 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
3512 | if test "x$LINE" != x ; then | |
3513 | eval "DEFAULT_$LINE" | |
3514 | else | |
3515 | no_cache=1 | |
3516 | fi | |
3517 | ||
3518 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
3519 | ||
3520 | fi | |
3521 | ||
3522 | ||
3523 | eval "$ac_cv_use_docview" | |
3524 | if test "$no_cache" != 1; then | |
3525 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
3526 | fi | |
3527 | ||
3528 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
3529 | echo "$ac_t""yes" 1>&6 | |
3530 | else | |
3531 | echo "$ac_t""no" 1>&6 | |
3532 | fi | |
3533 | ||
3534 | ||
3535 | echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6 | |
f6bcfd97 | 3536 | echo "configure:3537: checking "for --enable-help"" >&5 |
10f2d63a VZ |
3537 | no_cache=0 |
3538 | # Check whether --enable-help or --disable-help was given. | |
3539 | if test "${enable_help+set}" = set; then | |
3540 | enableval="$enable_help" | |
3541 | ||
3542 | if test "$enableval" = yes; then | |
3543 | ac_cv_use_help='wxUSE_HELP=yes' | |
3544 | else | |
3545 | ac_cv_use_help='wxUSE_HELP=no' | |
3546 | fi | |
3547 | ||
3548 | else | |
3549 | ||
3550 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
3551 | if test "x$LINE" != x ; then | |
3552 | eval "DEFAULT_$LINE" | |
3553 | else | |
3554 | no_cache=1 | |
3555 | fi | |
3556 | ||
3557 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
3558 | ||
3559 | fi | |
3560 | ||
3561 | ||
3562 | eval "$ac_cv_use_help" | |
3563 | if test "$no_cache" != 1; then | |
3564 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
3565 | fi | |
3566 | ||
3567 | if test "$wxUSE_HELP" = yes; then | |
3568 | echo "$ac_t""yes" 1>&6 | |
3569 | else | |
3570 | echo "$ac_t""no" 1>&6 | |
3571 | fi | |
3572 | ||
3573 | ||
3574 | echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6 | |
f6bcfd97 | 3575 | echo "configure:3576: checking "for --enable-constraints"" >&5 |
10f2d63a VZ |
3576 | no_cache=0 |
3577 | # Check whether --enable-constraints or --disable-constraints was given. | |
3578 | if test "${enable_constraints+set}" = set; then | |
3579 | enableval="$enable_constraints" | |
3580 | ||
3581 | if test "$enableval" = yes; then | |
3582 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
3583 | else | |
3584 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
3585 | fi | |
3586 | ||
3587 | else | |
3588 | ||
3589 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
3590 | if test "x$LINE" != x ; then | |
3591 | eval "DEFAULT_$LINE" | |
3592 | else | |
3593 | no_cache=1 | |
3594 | fi | |
3595 | ||
3596 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
3597 | ||
3598 | fi | |
3599 | ||
3600 | ||
3601 | eval "$ac_cv_use_constraints" | |
3602 | if test "$no_cache" != 1; then | |
3603 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
3604 | fi | |
3605 | ||
3606 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
3607 | echo "$ac_t""yes" 1>&6 | |
3608 | else | |
3609 | echo "$ac_t""no" 1>&6 | |
3610 | fi | |
3611 | ||
3612 | ||
3613 | echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6 | |
f6bcfd97 | 3614 | echo "configure:3615: checking "for --enable-printarch"" >&5 |
10f2d63a VZ |
3615 | no_cache=0 |
3616 | # Check whether --enable-printarch or --disable-printarch was given. | |
3617 | if test "${enable_printarch+set}" = set; then | |
3618 | enableval="$enable_printarch" | |
3619 | ||
3620 | if test "$enableval" = yes; then | |
3621 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
3622 | else | |
3623 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
3624 | fi | |
3625 | ||
3626 | else | |
3627 | ||
3628 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
3629 | if test "x$LINE" != x ; then | |
3630 | eval "DEFAULT_$LINE" | |
3631 | else | |
3632 | no_cache=1 | |
3633 | fi | |
3634 | ||
3635 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
3636 | ||
3637 | fi | |
3638 | ||
3639 | ||
3640 | eval "$ac_cv_use_printarch" | |
3641 | if test "$no_cache" != 1; then | |
3642 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
3643 | fi | |
3644 | ||
3645 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
3646 | echo "$ac_t""yes" 1>&6 | |
3647 | else | |
3648 | echo "$ac_t""no" 1>&6 | |
3649 | fi | |
3650 | ||
3651 | ||
3652 | echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6 | |
f6bcfd97 | 3653 | echo "configure:3654: checking "for --enable-mdi"" >&5 |
10f2d63a VZ |
3654 | no_cache=0 |
3655 | # Check whether --enable-mdi or --disable-mdi was given. | |
3656 | if test "${enable_mdi+set}" = set; then | |
3657 | enableval="$enable_mdi" | |
3658 | ||
3659 | if test "$enableval" = yes; then | |
3660 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
3661 | else | |
3662 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
3663 | fi | |
3664 | ||
3665 | else | |
3666 | ||
3667 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
3668 | if test "x$LINE" != x ; then | |
3669 | eval "DEFAULT_$LINE" | |
3670 | else | |
3671 | no_cache=1 | |
3672 | fi | |
3673 | ||
3674 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
3675 | ||
3676 | fi | |
3677 | ||
3678 | ||
3679 | eval "$ac_cv_use_mdi" | |
3680 | if test "$no_cache" != 1; then | |
3681 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
3682 | fi | |
3683 | ||
3684 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
3685 | echo "$ac_t""yes" 1>&6 | |
3686 | else | |
3687 | echo "$ac_t""no" 1>&6 | |
3688 | fi | |
3689 | ||
3690 | ||
3691 | ||
3692 | echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6 | |
f6bcfd97 | 3693 | echo "configure:3694: checking "for --enable-postscript"" >&5 |
10f2d63a VZ |
3694 | no_cache=0 |
3695 | # Check whether --enable-postscript or --disable-postscript was given. | |
3696 | if test "${enable_postscript+set}" = set; then | |
3697 | enableval="$enable_postscript" | |
3698 | ||
3699 | if test "$enableval" = yes; then | |
3700 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
3701 | else | |
3702 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
3703 | fi | |
3704 | ||
3705 | else | |
3706 | ||
3707 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
3708 | if test "x$LINE" != x ; then | |
3709 | eval "DEFAULT_$LINE" | |
3710 | else | |
3711 | no_cache=1 | |
3712 | fi | |
3713 | ||
3714 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
3715 | ||
3716 | fi | |
3717 | ||
3718 | ||
3719 | eval "$ac_cv_use_postscript" | |
3720 | if test "$no_cache" != 1; then | |
3721 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
3722 | fi | |
3723 | ||
3724 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
3725 | echo "$ac_t""yes" 1>&6 | |
3726 | else | |
3727 | echo "$ac_t""no" 1>&6 | |
3728 | fi | |
3729 | ||
3730 | ||
3731 | ||
3732 | ||
3733 | echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6 | |
f6bcfd97 | 3734 | echo "configure:3735: checking "for --enable-prologio"" >&5 |
10f2d63a VZ |
3735 | no_cache=0 |
3736 | # Check whether --enable-prologio or --disable-prologio was given. | |
3737 | if test "${enable_prologio+set}" = set; then | |
3738 | enableval="$enable_prologio" | |
3739 | ||
3740 | if test "$enableval" = yes; then | |
3741 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
3742 | else | |
3743 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
3744 | fi | |
3745 | ||
3746 | else | |
3747 | ||
3748 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
3749 | if test "x$LINE" != x ; then | |
3750 | eval "DEFAULT_$LINE" | |
3751 | else | |
3752 | no_cache=1 | |
3753 | fi | |
3754 | ||
3755 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
3756 | ||
3757 | fi | |
3758 | ||
3759 | ||
3760 | eval "$ac_cv_use_prologio" | |
3761 | if test "$no_cache" != 1; then | |
3762 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
3763 | fi | |
3764 | ||
3765 | if test "$wxUSE_PROLOGIO" = yes; then | |
3766 | echo "$ac_t""yes" 1>&6 | |
3767 | else | |
3768 | echo "$ac_t""no" 1>&6 | |
3769 | fi | |
3770 | ||
3771 | ||
3772 | echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6 | |
f6bcfd97 | 3773 | echo "configure:3774: checking "for --enable-resources"" >&5 |
10f2d63a VZ |
3774 | no_cache=0 |
3775 | # Check whether --enable-resources or --disable-resources was given. | |
3776 | if test "${enable_resources+set}" = set; then | |
3777 | enableval="$enable_resources" | |
3778 | ||
3779 | if test "$enableval" = yes; then | |
3780 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
3781 | else | |
3782 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
3783 | fi | |
3784 | ||
3785 | else | |
3786 | ||
3787 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
3788 | if test "x$LINE" != x ; then | |
3789 | eval "DEFAULT_$LINE" | |
3790 | else | |
3791 | no_cache=1 | |
3792 | fi | |
3793 | ||
3794 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
3795 | ||
3796 | fi | |
3797 | ||
3798 | ||
3799 | eval "$ac_cv_use_resources" | |
3800 | if test "$no_cache" != 1; then | |
3801 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
3802 | fi | |
3803 | ||
3804 | if test "$wxUSE_RESOURCES" = yes; then | |
3805 | echo "$ac_t""yes" 1>&6 | |
3806 | else | |
3807 | echo "$ac_t""no" 1>&6 | |
3808 | fi | |
3809 | ||
3810 | ||
3811 | ||
3812 | echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6 | |
f6bcfd97 | 3813 | echo "configure:3814: checking "for --enable-xresources"" >&5 |
10f2d63a VZ |
3814 | no_cache=0 |
3815 | # Check whether --enable-xresources or --disable-xresources was given. | |
3816 | if test "${enable_xresources+set}" = set; then | |
3817 | enableval="$enable_xresources" | |
3818 | ||
3819 | if test "$enableval" = yes; then | |
3820 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
3821 | else | |
3822 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
3823 | fi | |
3824 | ||
3825 | else | |
3826 | ||
3827 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` | |
3828 | if test "x$LINE" != x ; then | |
3829 | eval "DEFAULT_$LINE" | |
3830 | else | |
3831 | no_cache=1 | |
3832 | fi | |
3833 | ||
3834 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
3835 | ||
3836 | fi | |
3837 | ||
3838 | ||
3839 | eval "$ac_cv_use_xresources" | |
3840 | if test "$no_cache" != 1; then | |
3841 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
3842 | fi | |
3843 | ||
3844 | if test "$wxUSE_X_RESOURCES" = yes; then | |
3845 | echo "$ac_t""yes" 1>&6 | |
3846 | else | |
3847 | echo "$ac_t""no" 1>&6 | |
3848 | fi | |
3849 | ||
3850 | ||
3851 | ||
3852 | ||
3853 | echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6 | |
f6bcfd97 | 3854 | echo "configure:3855: checking "for --enable-clipboard"" >&5 |
10f2d63a VZ |
3855 | no_cache=0 |
3856 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
3857 | if test "${enable_clipboard+set}" = set; then | |
3858 | enableval="$enable_clipboard" | |
3859 | ||
3860 | if test "$enableval" = yes; then | |
3861 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
3862 | else | |
3863 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
3864 | fi | |
3865 | ||
3866 | else | |
3867 | ||
3868 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
3869 | if test "x$LINE" != x ; then | |
3870 | eval "DEFAULT_$LINE" | |
3871 | else | |
3872 | no_cache=1 | |
3873 | fi | |
3874 | ||
3875 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
3876 | ||
3877 | fi | |
3878 | ||
3879 | ||
3880 | eval "$ac_cv_use_clipboard" | |
3881 | if test "$no_cache" != 1; then | |
3882 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
3883 | fi | |
3884 | ||
3885 | if test "$wxUSE_CLIPBOARD" = yes; then | |
3886 | echo "$ac_t""yes" 1>&6 | |
3887 | else | |
3888 | echo "$ac_t""no" 1>&6 | |
3889 | fi | |
3890 | ||
3891 | ||
3892 | echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6 | |
f6bcfd97 | 3893 | echo "configure:3894: checking "for --enable-dnd"" >&5 |
10f2d63a VZ |
3894 | no_cache=0 |
3895 | # Check whether --enable-dnd or --disable-dnd was given. | |
3896 | if test "${enable_dnd+set}" = set; then | |
3897 | enableval="$enable_dnd" | |
3898 | ||
3899 | if test "$enableval" = yes; then | |
3900 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
3901 | else | |
3902 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
3903 | fi | |
3904 | ||
3905 | else | |
3906 | ||
3907 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
3908 | if test "x$LINE" != x ; then | |
3909 | eval "DEFAULT_$LINE" | |
3910 | else | |
3911 | no_cache=1 | |
3912 | fi | |
3913 | ||
3914 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
3915 | ||
3916 | fi | |
3917 | ||
3918 | ||
3919 | eval "$ac_cv_use_dnd" | |
3920 | if test "$no_cache" != 1; then | |
3921 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
3922 | fi | |
3923 | ||
3924 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
3925 | echo "$ac_t""yes" 1>&6 | |
3926 | else | |
3927 | echo "$ac_t""no" 1>&6 | |
3928 | fi | |
3929 | ||
3930 | ||
3931 | ||
3932 | echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6 | |
f6bcfd97 | 3933 | echo "configure:3934: checking "for --enable-wxtree"" >&5 |
10f2d63a VZ |
3934 | no_cache=0 |
3935 | # Check whether --enable-wxtree or --disable-wxtree was given. | |
3936 | if test "${enable_wxtree+set}" = set; then | |
3937 | enableval="$enable_wxtree" | |
3938 | ||
3939 | if test "$enableval" = yes; then | |
3940 | ac_cv_use_wxtree='wxUSE_WXTREE=yes' | |
3941 | else | |
3942 | ac_cv_use_wxtree='wxUSE_WXTREE=no' | |
3943 | fi | |
3944 | ||
3945 | else | |
3946 | ||
3947 | LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}` | |
3948 | if test "x$LINE" != x ; then | |
3949 | eval "DEFAULT_$LINE" | |
3950 | else | |
3951 | no_cache=1 | |
3952 | fi | |
3953 | ||
3954 | ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE | |
3955 | ||
3956 | fi | |
3957 | ||
3958 | ||
3959 | eval "$ac_cv_use_wxtree" | |
3960 | if test "$no_cache" != 1; then | |
3961 | echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp | |
3962 | fi | |
3963 | ||
3964 | if test "$wxUSE_WXTREE" = yes; then | |
3965 | echo "$ac_t""yes" 1>&6 | |
3966 | else | |
3967 | echo "$ac_t""no" 1>&6 | |
3968 | fi | |
3969 | ||
3970 | ||
3971 | ||
3972 | ||
3973 | echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6 | |
f6bcfd97 | 3974 | echo "configure:3975: checking "for --enable-controls"" >&5 |
10f2d63a VZ |
3975 | no_cache=0 |
3976 | # Check whether --enable-controls or --disable-controls was given. | |
3977 | if test "${enable_controls+set}" = set; then | |
3978 | enableval="$enable_controls" | |
3979 | ||
3980 | if test "$enableval" = yes; then | |
3981 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
3982 | else | |
3983 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
3984 | fi | |
3985 | ||
3986 | else | |
3987 | ||
3988 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
3989 | if test "x$LINE" != x ; then | |
3990 | eval "DEFAULT_$LINE" | |
3991 | else | |
3992 | no_cache=1 | |
3993 | fi | |
3994 | ||
3995 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
3996 | ||
3997 | fi | |
3998 | ||
3999 | ||
4000 | eval "$ac_cv_use_controls" | |
4001 | if test "$no_cache" != 1; then | |
4002 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
4003 | fi | |
4004 | ||
4005 | if test "$wxUSE_CONTROLS" = yes; then | |
4006 | echo "$ac_t""yes" 1>&6 | |
4007 | else | |
4008 | echo "$ac_t""no" 1>&6 | |
4009 | fi | |
4010 | ||
4011 | ||
4012 | if test "$wxUSE_CONTROLS" = "yes"; then | |
4013 | DEFAULT_wxUSE_ACCEL=yes | |
4014 | DEFAULT_wxUSE_CARET=yes | |
4015 | DEFAULT_wxUSE_COMBOBOX=yes | |
4016 | DEFAULT_wxUSE_BMPBUTTON=yes | |
4017 | DEFAULT_wxUSE_CHECKBOX=yes | |
4018 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
4019 | DEFAULT_wxUSE_CHOICE=yes | |
4020 | DEFAULT_wxUSE_GAUGE=yes | |
4021 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 4022 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
4023 | DEFAULT_wxUSE_IMAGLIST=yes |
4024 | DEFAULT_wxUSE_LISTBOX=yes | |
4025 | DEFAULT_wxUSE_LISTCTRL=yes | |
4026 | DEFAULT_wxUSE_NOTEBOOK=yes | |
4027 | DEFAULT_wxUSE_RADIOBOX=yes | |
4028 | DEFAULT_wxUSE_RADIOBTN=yes | |
4029 | DEFAULT_wxUSE_SASH=yes | |
4030 | DEFAULT_wxUSE_SCROLLBAR=yes | |
4031 | DEFAULT_wxUSE_SLIDER=yes | |
4032 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 4033 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
4034 | DEFAULT_wxUSE_SPLITTER=yes |
4035 | DEFAULT_wxUSE_STATBMP=yes | |
4036 | DEFAULT_wxUSE_STATBOX=yes | |
4037 | DEFAULT_wxUSE_STATLINE=yes | |
4038 | DEFAULT_wxUSE_STATUSBAR=yes | |
4039 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
4040 | DEFAULT_wxUSE_TOOLBAR=yes | |
360d6699 VZ |
4041 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
4042 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
4043 | DEFAULT_wxUSE_TOOLTIPS=yes |
4044 | DEFAULT_wxUSE_TREECTRL=yes | |
4045 | elif test "$wxUSE_CONTROLS" = "no"; then | |
4046 | DEFAULT_wxUSE_ACCEL=no | |
4047 | DEFAULT_wxUSE_CARET=no | |
4048 | DEFAULT_wxUSE_COMBOBOX=no | |
4049 | DEFAULT_wxUSE_BMPBUTTON=no | |
4050 | DEFAULT_wxUSE_CHECKBOX=no | |
4051 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
4052 | DEFAULT_wxUSE_CHOICE=no | |
4053 | DEFAULT_wxUSE_GAUGE=no | |
4054 | DEFAULT_wxUSE_GRID=no | |
4055 | DEFAULT_wxUSE_NEW_GRID=no | |
4056 | DEFAULT_wxUSE_IMAGLIST=no | |
4057 | DEFAULT_wxUSE_LISTBOX=no | |
4058 | DEFAULT_wxUSE_LISTCTRL=no | |
4059 | DEFAULT_wxUSE_NOTEBOOK=no | |
4060 | DEFAULT_wxUSE_RADIOBOX=no | |
4061 | DEFAULT_wxUSE_RADIOBTN=no | |
4062 | DEFAULT_wxUSE_SASH=no | |
4063 | DEFAULT_wxUSE_SCROLLBAR=no | |
4064 | DEFAULT_wxUSE_SLIDER=no | |
4065 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 4066 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
4067 | DEFAULT_wxUSE_SPLITTER=no |
4068 | DEFAULT_wxUSE_STATBMP=no | |
4069 | DEFAULT_wxUSE_STATBOX=no | |
4070 | DEFAULT_wxUSE_STATLINE=no | |
4071 | DEFAULT_wxUSE_STATUSBAR=no | |
4072 | DEFAULT_wxUSE_TAB_DIALOG=no | |
4073 | DEFAULT_wxUSE_TOOLBAR=no | |
360d6699 VZ |
4074 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
4075 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
4076 | DEFAULT_wxUSE_TOOLTIPS=no |
4077 | DEFAULT_wxUSE_TREECTRL=no | |
4078 | fi | |
4079 | ||
4080 | ||
4081 | echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6 | |
f6bcfd97 | 4082 | echo "configure:4083: checking "for --enable-accel"" >&5 |
10f2d63a VZ |
4083 | no_cache=0 |
4084 | # Check whether --enable-accel or --disable-accel was given. | |
4085 | if test "${enable_accel+set}" = set; then | |
4086 | enableval="$enable_accel" | |
4087 | ||
4088 | if test "$enableval" = yes; then | |
4089 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
4090 | else | |
4091 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
4092 | fi | |
4093 | ||
4094 | else | |
4095 | ||
4096 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
4097 | if test "x$LINE" != x ; then | |
4098 | eval "DEFAULT_$LINE" | |
4099 | else | |
4100 | no_cache=1 | |
4101 | fi | |
4102 | ||
4103 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
4104 | ||
4105 | fi | |
4106 | ||
4107 | ||
4108 | eval "$ac_cv_use_accel" | |
4109 | if test "$no_cache" != 1; then | |
4110 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
4111 | fi | |
4112 | ||
4113 | if test "$wxUSE_ACCEL" = yes; then | |
4114 | echo "$ac_t""yes" 1>&6 | |
4115 | else | |
4116 | echo "$ac_t""no" 1>&6 | |
4117 | fi | |
4118 | ||
4119 | ||
4120 | echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6 | |
f6bcfd97 | 4121 | echo "configure:4122: checking "for --enable-caret"" >&5 |
10f2d63a VZ |
4122 | no_cache=0 |
4123 | # Check whether --enable-caret or --disable-caret was given. | |
4124 | if test "${enable_caret+set}" = set; then | |
4125 | enableval="$enable_caret" | |
4126 | ||
4127 | if test "$enableval" = yes; then | |
4128 | ac_cv_use_caret='wxUSE_CARET=yes' | |
4129 | else | |
4130 | ac_cv_use_caret='wxUSE_CARET=no' | |
4131 | fi | |
4132 | ||
4133 | else | |
4134 | ||
4135 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
4136 | if test "x$LINE" != x ; then | |
4137 | eval "DEFAULT_$LINE" | |
4138 | else | |
4139 | no_cache=1 | |
4140 | fi | |
4141 | ||
4142 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
4143 | ||
4144 | fi | |
4145 | ||
4146 | ||
4147 | eval "$ac_cv_use_caret" | |
4148 | if test "$no_cache" != 1; then | |
4149 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
4150 | fi | |
4151 | ||
4152 | if test "$wxUSE_CARET" = yes; then | |
4153 | echo "$ac_t""yes" 1>&6 | |
4154 | else | |
4155 | echo "$ac_t""no" 1>&6 | |
4156 | fi | |
4157 | ||
4158 | ||
4159 | echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6 | |
f6bcfd97 | 4160 | echo "configure:4161: checking "for --enable-bmpbutton"" >&5 |
10f2d63a VZ |
4161 | no_cache=0 |
4162 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
4163 | if test "${enable_bmpbutton+set}" = set; then | |
4164 | enableval="$enable_bmpbutton" | |
4165 | ||
4166 | if test "$enableval" = yes; then | |
4167 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
4168 | else | |
4169 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
4170 | fi | |
4171 | ||
4172 | else | |
4173 | ||
4174 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
4175 | if test "x$LINE" != x ; then | |
4176 | eval "DEFAULT_$LINE" | |
4177 | else | |
4178 | no_cache=1 | |
4179 | fi | |
4180 | ||
4181 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
4182 | ||
4183 | fi | |
4184 | ||
4185 | ||
4186 | eval "$ac_cv_use_bmpbutton" | |
4187 | if test "$no_cache" != 1; then | |
4188 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
4189 | fi | |
4190 | ||
4191 | if test "$wxUSE_BMPBUTTON" = yes; then | |
4192 | echo "$ac_t""yes" 1>&6 | |
4193 | else | |
4194 | echo "$ac_t""no" 1>&6 | |
4195 | fi | |
4196 | ||
4197 | ||
4198 | echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6 | |
f6bcfd97 | 4199 | echo "configure:4200: checking "for --enable-checkbox"" >&5 |
10f2d63a VZ |
4200 | no_cache=0 |
4201 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
4202 | if test "${enable_checkbox+set}" = set; then | |
4203 | enableval="$enable_checkbox" | |
4204 | ||
4205 | if test "$enableval" = yes; then | |
4206 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
4207 | else | |
4208 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
4209 | fi | |
4210 | ||
4211 | else | |
4212 | ||
4213 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
4214 | if test "x$LINE" != x ; then | |
4215 | eval "DEFAULT_$LINE" | |
4216 | else | |
4217 | no_cache=1 | |
4218 | fi | |
4219 | ||
4220 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
4221 | ||
4222 | fi | |
4223 | ||
4224 | ||
4225 | eval "$ac_cv_use_checkbox" | |
4226 | if test "$no_cache" != 1; then | |
4227 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
4228 | fi | |
4229 | ||
4230 | if test "$wxUSE_CHECKBOX" = yes; then | |
4231 | echo "$ac_t""yes" 1>&6 | |
4232 | else | |
4233 | echo "$ac_t""no" 1>&6 | |
4234 | fi | |
4235 | ||
4236 | ||
4237 | echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6 | |
f6bcfd97 | 4238 | echo "configure:4239: checking "for --enable-checklst"" >&5 |
10f2d63a VZ |
4239 | no_cache=0 |
4240 | # Check whether --enable-checklst or --disable-checklst was given. | |
4241 | if test "${enable_checklst+set}" = set; then | |
4242 | enableval="$enable_checklst" | |
4243 | ||
4244 | if test "$enableval" = yes; then | |
4245 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
4246 | else | |
4247 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
4248 | fi | |
4249 | ||
4250 | else | |
4251 | ||
4252 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
4253 | if test "x$LINE" != x ; then | |
4254 | eval "DEFAULT_$LINE" | |
4255 | else | |
4256 | no_cache=1 | |
4257 | fi | |
4258 | ||
4259 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
4260 | ||
4261 | fi | |
4262 | ||
4263 | ||
4264 | eval "$ac_cv_use_checklst" | |
4265 | if test "$no_cache" != 1; then | |
4266 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
4267 | fi | |
4268 | ||
4269 | if test "$wxUSE_CHECKLST" = yes; then | |
4270 | echo "$ac_t""yes" 1>&6 | |
4271 | else | |
4272 | echo "$ac_t""no" 1>&6 | |
4273 | fi | |
4274 | ||
4275 | ||
4276 | echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6 | |
f6bcfd97 | 4277 | echo "configure:4278: checking "for --enable-choice"" >&5 |
10f2d63a VZ |
4278 | no_cache=0 |
4279 | # Check whether --enable-choice or --disable-choice was given. | |
4280 | if test "${enable_choice+set}" = set; then | |
4281 | enableval="$enable_choice" | |
4282 | ||
4283 | if test "$enableval" = yes; then | |
4284 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
4285 | else | |
4286 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
4287 | fi | |
4288 | ||
4289 | else | |
4290 | ||
4291 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
4292 | if test "x$LINE" != x ; then | |
4293 | eval "DEFAULT_$LINE" | |
4294 | else | |
4295 | no_cache=1 | |
4296 | fi | |
4297 | ||
4298 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
4299 | ||
4300 | fi | |
4301 | ||
4302 | ||
4303 | eval "$ac_cv_use_choice" | |
4304 | if test "$no_cache" != 1; then | |
4305 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
4306 | fi | |
4307 | ||
4308 | if test "$wxUSE_CHOICE" = yes; then | |
4309 | echo "$ac_t""yes" 1>&6 | |
4310 | else | |
4311 | echo "$ac_t""no" 1>&6 | |
4312 | fi | |
4313 | ||
4314 | ||
4315 | echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6 | |
f6bcfd97 | 4316 | echo "configure:4317: checking "for --enable-combobox"" >&5 |
10f2d63a VZ |
4317 | no_cache=0 |
4318 | # Check whether --enable-combobox or --disable-combobox was given. | |
4319 | if test "${enable_combobox+set}" = set; then | |
4320 | enableval="$enable_combobox" | |
4321 | ||
4322 | if test "$enableval" = yes; then | |
4323 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
4324 | else | |
4325 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
4326 | fi | |
4327 | ||
4328 | else | |
4329 | ||
4330 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
4331 | if test "x$LINE" != x ; then | |
4332 | eval "DEFAULT_$LINE" | |
4333 | else | |
4334 | no_cache=1 | |
4335 | fi | |
4336 | ||
4337 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
4338 | ||
4339 | fi | |
4340 | ||
4341 | ||
4342 | eval "$ac_cv_use_combobox" | |
4343 | if test "$no_cache" != 1; then | |
4344 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
4345 | fi | |
4346 | ||
4347 | if test "$wxUSE_COMBOBOX" = yes; then | |
4348 | echo "$ac_t""yes" 1>&6 | |
4349 | else | |
4350 | echo "$ac_t""no" 1>&6 | |
4351 | fi | |
4352 | ||
4353 | ||
4354 | echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6 | |
f6bcfd97 | 4355 | echo "configure:4356: checking "for --enable-gauge"" >&5 |
10f2d63a VZ |
4356 | no_cache=0 |
4357 | # Check whether --enable-gauge or --disable-gauge was given. | |
4358 | if test "${enable_gauge+set}" = set; then | |
4359 | enableval="$enable_gauge" | |
4360 | ||
4361 | if test "$enableval" = yes; then | |
4362 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
4363 | else | |
4364 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
4365 | fi | |
4366 | ||
4367 | else | |
4368 | ||
4369 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
4370 | if test "x$LINE" != x ; then | |
4371 | eval "DEFAULT_$LINE" | |
4372 | else | |
4373 | no_cache=1 | |
4374 | fi | |
4375 | ||
4376 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
4377 | ||
4378 | fi | |
4379 | ||
4380 | ||
4381 | eval "$ac_cv_use_gauge" | |
4382 | if test "$no_cache" != 1; then | |
4383 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
4384 | fi | |
4385 | ||
4386 | if test "$wxUSE_GAUGE" = yes; then | |
4387 | echo "$ac_t""yes" 1>&6 | |
4388 | else | |
4389 | echo "$ac_t""no" 1>&6 | |
4390 | fi | |
4391 | ||
4392 | ||
4393 | echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6 | |
f6bcfd97 | 4394 | echo "configure:4395: checking "for --enable-grid"" >&5 |
10f2d63a VZ |
4395 | no_cache=0 |
4396 | # Check whether --enable-grid or --disable-grid was given. | |
4397 | if test "${enable_grid+set}" = set; then | |
4398 | enableval="$enable_grid" | |
4399 | ||
4400 | if test "$enableval" = yes; then | |
4401 | ac_cv_use_grid='wxUSE_GRID=yes' | |
4402 | else | |
4403 | ac_cv_use_grid='wxUSE_GRID=no' | |
4404 | fi | |
4405 | ||
4406 | else | |
4407 | ||
4408 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
4409 | if test "x$LINE" != x ; then | |
4410 | eval "DEFAULT_$LINE" | |
4411 | else | |
4412 | no_cache=1 | |
4413 | fi | |
4414 | ||
4415 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
4416 | ||
4417 | fi | |
4418 | ||
4419 | ||
4420 | eval "$ac_cv_use_grid" | |
4421 | if test "$no_cache" != 1; then | |
4422 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
4423 | fi | |
4424 | ||
4425 | if test "$wxUSE_GRID" = yes; then | |
4426 | echo "$ac_t""yes" 1>&6 | |
4427 | else | |
4428 | echo "$ac_t""no" 1>&6 | |
4429 | fi | |
4430 | ||
4431 | ||
4432 | echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6 | |
f6bcfd97 | 4433 | echo "configure:4434: checking "for --enable-newgrid"" >&5 |
10f2d63a VZ |
4434 | no_cache=0 |
4435 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
4436 | if test "${enable_newgrid+set}" = set; then | |
4437 | enableval="$enable_newgrid" | |
4438 | ||
4439 | if test "$enableval" = yes; then | |
4440 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
4441 | else | |
4442 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
4443 | fi | |
4444 | ||
4445 | else | |
4446 | ||
4447 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` | |
4448 | if test "x$LINE" != x ; then | |
4449 | eval "DEFAULT_$LINE" | |
4450 | else | |
4451 | no_cache=1 | |
4452 | fi | |
4453 | ||
4454 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
4455 | ||
4456 | fi | |
4457 | ||
4458 | ||
4459 | eval "$ac_cv_use_newgrid" | |
4460 | if test "$no_cache" != 1; then | |
4461 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
4462 | fi | |
4463 | ||
4464 | if test "$wxUSE_NEW_GRID" = yes; then | |
4465 | echo "$ac_t""yes" 1>&6 | |
4466 | else | |
4467 | echo "$ac_t""no" 1>&6 | |
4468 | fi | |
4469 | ||
4470 | ||
4471 | echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6 | |
f6bcfd97 | 4472 | echo "configure:4473: checking "for --enable-imaglist"" >&5 |
10f2d63a VZ |
4473 | no_cache=0 |
4474 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
4475 | if test "${enable_imaglist+set}" = set; then | |
4476 | enableval="$enable_imaglist" | |
4477 | ||
4478 | if test "$enableval" = yes; then | |
4479 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
4480 | else | |
4481 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
4482 | fi | |
4483 | ||
4484 | else | |
4485 | ||
4486 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
4487 | if test "x$LINE" != x ; then | |
4488 | eval "DEFAULT_$LINE" | |
4489 | else | |
4490 | no_cache=1 | |
4491 | fi | |
4492 | ||
4493 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
4494 | ||
4495 | fi | |
4496 | ||
4497 | ||
4498 | eval "$ac_cv_use_imaglist" | |
4499 | if test "$no_cache" != 1; then | |
4500 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
4501 | fi | |
4502 | ||
4503 | if test "$wxUSE_IMAGLIST" = yes; then | |
4504 | echo "$ac_t""yes" 1>&6 | |
4505 | else | |
4506 | echo "$ac_t""no" 1>&6 | |
4507 | fi | |
4508 | ||
4509 | ||
4510 | echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6 | |
f6bcfd97 | 4511 | echo "configure:4512: checking "for --enable-listbox"" >&5 |
10f2d63a VZ |
4512 | no_cache=0 |
4513 | # Check whether --enable-listbox or --disable-listbox was given. | |
4514 | if test "${enable_listbox+set}" = set; then | |
4515 | enableval="$enable_listbox" | |
4516 | ||
4517 | if test "$enableval" = yes; then | |
4518 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
4519 | else | |
4520 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
4521 | fi | |
4522 | ||
4523 | else | |
4524 | ||
4525 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
4526 | if test "x$LINE" != x ; then | |
4527 | eval "DEFAULT_$LINE" | |
4528 | else | |
4529 | no_cache=1 | |
4530 | fi | |
4531 | ||
4532 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
4533 | ||
4534 | fi | |
4535 | ||
4536 | ||
4537 | eval "$ac_cv_use_listbox" | |
4538 | if test "$no_cache" != 1; then | |
4539 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
4540 | fi | |
4541 | ||
4542 | if test "$wxUSE_LISTBOX" = yes; then | |
4543 | echo "$ac_t""yes" 1>&6 | |
4544 | else | |
4545 | echo "$ac_t""no" 1>&6 | |
4546 | fi | |
4547 | ||
4548 | ||
4549 | echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6 | |
f6bcfd97 | 4550 | echo "configure:4551: checking "for --enable-listctrl"" >&5 |
10f2d63a VZ |
4551 | no_cache=0 |
4552 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
4553 | if test "${enable_listctrl+set}" = set; then | |
4554 | enableval="$enable_listctrl" | |
4555 | ||
4556 | if test "$enableval" = yes; then | |
4557 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
4558 | else | |
4559 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
4560 | fi | |
4561 | ||
4562 | else | |
4563 | ||
4564 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
4565 | if test "x$LINE" != x ; then | |
4566 | eval "DEFAULT_$LINE" | |
4567 | else | |
4568 | no_cache=1 | |
4569 | fi | |
4570 | ||
4571 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
4572 | ||
4573 | fi | |
4574 | ||
4575 | ||
4576 | eval "$ac_cv_use_listctrl" | |
4577 | if test "$no_cache" != 1; then | |
4578 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
4579 | fi | |
4580 | ||
4581 | if test "$wxUSE_LISTCTRL" = yes; then | |
4582 | echo "$ac_t""yes" 1>&6 | |
4583 | else | |
4584 | echo "$ac_t""no" 1>&6 | |
4585 | fi | |
4586 | ||
4587 | ||
4588 | echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6 | |
f6bcfd97 | 4589 | echo "configure:4590: checking "for --enable-notebook"" >&5 |
10f2d63a VZ |
4590 | no_cache=0 |
4591 | # Check whether --enable-notebook or --disable-notebook was given. | |
4592 | if test "${enable_notebook+set}" = set; then | |
4593 | enableval="$enable_notebook" | |
4594 | ||
4595 | if test "$enableval" = yes; then | |
4596 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
4597 | else | |
4598 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
4599 | fi | |
4600 | ||
4601 | else | |
4602 | ||
4603 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
4604 | if test "x$LINE" != x ; then | |
4605 | eval "DEFAULT_$LINE" | |
4606 | else | |
4607 | no_cache=1 | |
4608 | fi | |
4609 | ||
4610 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
4611 | ||
4612 | fi | |
4613 | ||
4614 | ||
4615 | eval "$ac_cv_use_notebook" | |
4616 | if test "$no_cache" != 1; then | |
4617 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
4618 | fi | |
4619 | ||
4620 | if test "$wxUSE_NOTEBOOK" = yes; then | |
4621 | echo "$ac_t""yes" 1>&6 | |
4622 | else | |
4623 | echo "$ac_t""no" 1>&6 | |
4624 | fi | |
4625 | ||
4626 | ||
4627 | echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6 | |
f6bcfd97 | 4628 | echo "configure:4629: checking "for --enable-radiobox"" >&5 |
10f2d63a VZ |
4629 | no_cache=0 |
4630 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
4631 | if test "${enable_radiobox+set}" = set; then | |
4632 | enableval="$enable_radiobox" | |
4633 | ||
4634 | if test "$enableval" = yes; then | |
4635 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
4636 | else | |
4637 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
4638 | fi | |
4639 | ||
4640 | else | |
4641 | ||
4642 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
4643 | if test "x$LINE" != x ; then | |
4644 | eval "DEFAULT_$LINE" | |
4645 | else | |
4646 | no_cache=1 | |
4647 | fi | |
4648 | ||
4649 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
4650 | ||
4651 | fi | |
4652 | ||
4653 | ||
4654 | eval "$ac_cv_use_radiobox" | |
4655 | if test "$no_cache" != 1; then | |
4656 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
4657 | fi | |
4658 | ||
4659 | if test "$wxUSE_RADIOBOX" = yes; then | |
4660 | echo "$ac_t""yes" 1>&6 | |
4661 | else | |
4662 | echo "$ac_t""no" 1>&6 | |
4663 | fi | |
4664 | ||
4665 | ||
4666 | echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6 | |
f6bcfd97 | 4667 | echo "configure:4668: checking "for --enable-radiobtn"" >&5 |
10f2d63a VZ |
4668 | no_cache=0 |
4669 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
4670 | if test "${enable_radiobtn+set}" = set; then | |
4671 | enableval="$enable_radiobtn" | |
4672 | ||
4673 | if test "$enableval" = yes; then | |
4674 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
4675 | else | |
4676 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
4677 | fi | |
4678 | ||
4679 | else | |
4680 | ||
4681 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
4682 | if test "x$LINE" != x ; then | |
4683 | eval "DEFAULT_$LINE" | |
4684 | else | |
4685 | no_cache=1 | |
4686 | fi | |
4687 | ||
4688 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
4689 | ||
4690 | fi | |
4691 | ||
4692 | ||
4693 | eval "$ac_cv_use_radiobtn" | |
4694 | if test "$no_cache" != 1; then | |
4695 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
4696 | fi | |
4697 | ||
4698 | if test "$wxUSE_RADIOBTN" = yes; then | |
4699 | echo "$ac_t""yes" 1>&6 | |
4700 | else | |
4701 | echo "$ac_t""no" 1>&6 | |
4702 | fi | |
4703 | ||
4704 | ||
4705 | echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6 | |
f6bcfd97 | 4706 | echo "configure:4707: checking "for --enable-sash"" >&5 |
10f2d63a VZ |
4707 | no_cache=0 |
4708 | # Check whether --enable-sash or --disable-sash was given. | |
4709 | if test "${enable_sash+set}" = set; then | |
4710 | enableval="$enable_sash" | |
4711 | ||
4712 | if test "$enableval" = yes; then | |
4713 | ac_cv_use_sash='wxUSE_SASH=yes' | |
4714 | else | |
4715 | ac_cv_use_sash='wxUSE_SASH=no' | |
4716 | fi | |
4717 | ||
4718 | else | |
4719 | ||
4720 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
4721 | if test "x$LINE" != x ; then | |
4722 | eval "DEFAULT_$LINE" | |
4723 | else | |
4724 | no_cache=1 | |
4725 | fi | |
4726 | ||
4727 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
4728 | ||
4729 | fi | |
4730 | ||
4731 | ||
4732 | eval "$ac_cv_use_sash" | |
4733 | if test "$no_cache" != 1; then | |
4734 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
4735 | fi | |
4736 | ||
4737 | if test "$wxUSE_SASH" = yes; then | |
4738 | echo "$ac_t""yes" 1>&6 | |
4739 | else | |
4740 | echo "$ac_t""no" 1>&6 | |
4741 | fi | |
4742 | ||
4743 | ||
4744 | echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6 | |
f6bcfd97 | 4745 | echo "configure:4746: checking "for --enable-scrollbar"" >&5 |
10f2d63a VZ |
4746 | no_cache=0 |
4747 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
4748 | if test "${enable_scrollbar+set}" = set; then | |
4749 | enableval="$enable_scrollbar" | |
4750 | ||
4751 | if test "$enableval" = yes; then | |
4752 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
4753 | else | |
4754 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
4755 | fi | |
4756 | ||
4757 | else | |
4758 | ||
4759 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
4760 | if test "x$LINE" != x ; then | |
4761 | eval "DEFAULT_$LINE" | |
4762 | else | |
4763 | no_cache=1 | |
4764 | fi | |
4765 | ||
4766 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
4767 | ||
4768 | fi | |
4769 | ||
4770 | ||
4771 | eval "$ac_cv_use_scrollbar" | |
4772 | if test "$no_cache" != 1; then | |
4773 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
4774 | fi | |
4775 | ||
4776 | if test "$wxUSE_SCROLLBAR" = yes; then | |
4777 | echo "$ac_t""yes" 1>&6 | |
4778 | else | |
4779 | echo "$ac_t""no" 1>&6 | |
4780 | fi | |
4781 | ||
4782 | ||
4783 | echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6 | |
f6bcfd97 | 4784 | echo "configure:4785: checking "for --enable-slider"" >&5 |
10f2d63a VZ |
4785 | no_cache=0 |
4786 | # Check whether --enable-slider or --disable-slider was given. | |
4787 | if test "${enable_slider+set}" = set; then | |
4788 | enableval="$enable_slider" | |
4789 | ||
4790 | if test "$enableval" = yes; then | |
4791 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
4792 | else | |
4793 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
4794 | fi | |
4795 | ||
4796 | else | |
4797 | ||
4798 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
4799 | if test "x$LINE" != x ; then | |
4800 | eval "DEFAULT_$LINE" | |
4801 | else | |
4802 | no_cache=1 | |
4803 | fi | |
4804 | ||
4805 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
4806 | ||
4807 | fi | |
4808 | ||
4809 | ||
4810 | eval "$ac_cv_use_slider" | |
4811 | if test "$no_cache" != 1; then | |
4812 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
4813 | fi | |
4814 | ||
4815 | if test "$wxUSE_SLIDER" = yes; then | |
4816 | echo "$ac_t""yes" 1>&6 | |
4817 | else | |
4818 | echo "$ac_t""no" 1>&6 | |
4819 | fi | |
4820 | ||
4821 | ||
4822 | echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6 | |
f6bcfd97 | 4823 | echo "configure:4824: checking "for --enable-spinbtn"" >&5 |
10f2d63a VZ |
4824 | no_cache=0 |
4825 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
4826 | if test "${enable_spinbtn+set}" = set; then | |
4827 | enableval="$enable_spinbtn" | |
4828 | ||
4829 | if test "$enableval" = yes; then | |
4830 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
4831 | else | |
4832 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
4833 | fi | |
4834 | ||
4835 | else | |
4836 | ||
4837 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
4838 | if test "x$LINE" != x ; then | |
4839 | eval "DEFAULT_$LINE" | |
4840 | else | |
4841 | no_cache=1 | |
4842 | fi | |
4843 | ||
4844 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
4845 | ||
4846 | fi | |
4847 | ||
4848 | ||
4849 | eval "$ac_cv_use_spinbtn" | |
4850 | if test "$no_cache" != 1; then | |
4851 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
4852 | fi | |
4853 | ||
4854 | if test "$wxUSE_SPINBTN" = yes; then | |
4855 | echo "$ac_t""yes" 1>&6 | |
4856 | else | |
4857 | echo "$ac_t""no" 1>&6 | |
4858 | fi | |
4859 | ||
4860 | ||
56cfaa52 | 4861 | echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6 |
f6bcfd97 | 4862 | echo "configure:4863: checking "for --enable-spinctrl"" >&5 |
56cfaa52 RR |
4863 | no_cache=0 |
4864 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
4865 | if test "${enable_spinctrl+set}" = set; then | |
4866 | enableval="$enable_spinctrl" | |
4867 | ||
4868 | if test "$enableval" = yes; then | |
4869 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
4870 | else | |
4871 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
4872 | fi | |
4873 | ||
4874 | else | |
4875 | ||
4876 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
4877 | if test "x$LINE" != x ; then | |
4878 | eval "DEFAULT_$LINE" | |
4879 | else | |
4880 | no_cache=1 | |
4881 | fi | |
4882 | ||
4883 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
4884 | ||
4885 | fi | |
4886 | ||
4887 | ||
4888 | eval "$ac_cv_use_spinctrl" | |
4889 | if test "$no_cache" != 1; then | |
4890 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
4891 | fi | |
4892 | ||
4893 | if test "$wxUSE_SPINCTRL" = yes; then | |
4894 | echo "$ac_t""yes" 1>&6 | |
4895 | else | |
4896 | echo "$ac_t""no" 1>&6 | |
4897 | fi | |
4898 | ||
4899 | ||
10f2d63a | 4900 | echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6 |
f6bcfd97 | 4901 | echo "configure:4902: checking "for --enable-splitter"" >&5 |
10f2d63a VZ |
4902 | no_cache=0 |
4903 | # Check whether --enable-splitter or --disable-splitter was given. | |
4904 | if test "${enable_splitter+set}" = set; then | |
4905 | enableval="$enable_splitter" | |
4906 | ||
4907 | if test "$enableval" = yes; then | |
4908 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
4909 | else | |
4910 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
4911 | fi | |
4912 | ||
4913 | else | |
4914 | ||
4915 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
4916 | if test "x$LINE" != x ; then | |
4917 | eval "DEFAULT_$LINE" | |
4918 | else | |
4919 | no_cache=1 | |
4920 | fi | |
4921 | ||
4922 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
4923 | ||
4924 | fi | |
4925 | ||
4926 | ||
4927 | eval "$ac_cv_use_splitter" | |
4928 | if test "$no_cache" != 1; then | |
4929 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
4930 | fi | |
4931 | ||
4932 | if test "$wxUSE_SPLITTER" = yes; then | |
4933 | echo "$ac_t""yes" 1>&6 | |
4934 | else | |
4935 | echo "$ac_t""no" 1>&6 | |
4936 | fi | |
4937 | ||
4938 | ||
4939 | echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6 | |
f6bcfd97 | 4940 | echo "configure:4941: checking "for --enable-statbmp"" >&5 |
10f2d63a VZ |
4941 | no_cache=0 |
4942 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
4943 | if test "${enable_statbmp+set}" = set; then | |
4944 | enableval="$enable_statbmp" | |
4945 | ||
4946 | if test "$enableval" = yes; then | |
4947 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
4948 | else | |
4949 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
4950 | fi | |
4951 | ||
4952 | else | |
4953 | ||
4954 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
4955 | if test "x$LINE" != x ; then | |
4956 | eval "DEFAULT_$LINE" | |
4957 | else | |
4958 | no_cache=1 | |
4959 | fi | |
4960 | ||
4961 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
4962 | ||
4963 | fi | |
4964 | ||
4965 | ||
4966 | eval "$ac_cv_use_statbmp" | |
4967 | if test "$no_cache" != 1; then | |
4968 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
4969 | fi | |
4970 | ||
4971 | if test "$wxUSE_STATBMP" = yes; then | |
4972 | echo "$ac_t""yes" 1>&6 | |
4973 | else | |
4974 | echo "$ac_t""no" 1>&6 | |
4975 | fi | |
4976 | ||
4977 | ||
4978 | echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6 | |
f6bcfd97 | 4979 | echo "configure:4980: checking "for --enable-statbox"" >&5 |
10f2d63a VZ |
4980 | no_cache=0 |
4981 | # Check whether --enable-statbox or --disable-statbox was given. | |
4982 | if test "${enable_statbox+set}" = set; then | |
4983 | enableval="$enable_statbox" | |
4984 | ||
4985 | if test "$enableval" = yes; then | |
4986 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
4987 | else | |
4988 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
4989 | fi | |
4990 | ||
4991 | else | |
4992 | ||
4993 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
4994 | if test "x$LINE" != x ; then | |
4995 | eval "DEFAULT_$LINE" | |
4996 | else | |
4997 | no_cache=1 | |
4998 | fi | |
4999 | ||
5000 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
5001 | ||
5002 | fi | |
5003 | ||
5004 | ||
5005 | eval "$ac_cv_use_statbox" | |
5006 | if test "$no_cache" != 1; then | |
5007 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
5008 | fi | |
5009 | ||
5010 | if test "$wxUSE_STATBOX" = yes; then | |
5011 | echo "$ac_t""yes" 1>&6 | |
5012 | else | |
5013 | echo "$ac_t""no" 1>&6 | |
5014 | fi | |
5015 | ||
5016 | ||
5017 | echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6 | |
f6bcfd97 | 5018 | echo "configure:5019: checking "for --enable-statline"" >&5 |
10f2d63a VZ |
5019 | no_cache=0 |
5020 | # Check whether --enable-statline or --disable-statline was given. | |
5021 | if test "${enable_statline+set}" = set; then | |
5022 | enableval="$enable_statline" | |
5023 | ||
5024 | if test "$enableval" = yes; then | |
5025 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
5026 | else | |
5027 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
5028 | fi | |
5029 | ||
5030 | else | |
5031 | ||
5032 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
5033 | if test "x$LINE" != x ; then | |
5034 | eval "DEFAULT_$LINE" | |
5035 | else | |
5036 | no_cache=1 | |
5037 | fi | |
5038 | ||
5039 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
5040 | ||
5041 | fi | |
5042 | ||
5043 | ||
5044 | eval "$ac_cv_use_statline" | |
5045 | if test "$no_cache" != 1; then | |
5046 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
5047 | fi | |
5048 | ||
5049 | if test "$wxUSE_STATLINE" = yes; then | |
5050 | echo "$ac_t""yes" 1>&6 | |
5051 | else | |
5052 | echo "$ac_t""no" 1>&6 | |
5053 | fi | |
5054 | ||
5055 | ||
5056 | echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6 | |
f6bcfd97 | 5057 | echo "configure:5058: checking "for --enable-statusbar"" >&5 |
10f2d63a VZ |
5058 | no_cache=0 |
5059 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
5060 | if test "${enable_statusbar+set}" = set; then | |
5061 | enableval="$enable_statusbar" | |
5062 | ||
5063 | if test "$enableval" = yes; then | |
5064 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
5065 | else | |
5066 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
5067 | fi | |
5068 | ||
5069 | else | |
5070 | ||
5071 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
5072 | if test "x$LINE" != x ; then | |
5073 | eval "DEFAULT_$LINE" | |
5074 | else | |
5075 | no_cache=1 | |
5076 | fi | |
5077 | ||
5078 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
5079 | ||
5080 | fi | |
5081 | ||
5082 | ||
5083 | eval "$ac_cv_use_statusbar" | |
5084 | if test "$no_cache" != 1; then | |
5085 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
5086 | fi | |
5087 | ||
5088 | if test "$wxUSE_STATUSBAR" = yes; then | |
5089 | echo "$ac_t""yes" 1>&6 | |
5090 | else | |
5091 | echo "$ac_t""no" 1>&6 | |
5092 | fi | |
5093 | ||
5094 | ||
5095 | echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6 | |
f6bcfd97 | 5096 | echo "configure:5097: checking "for --enable-tabdialog"" >&5 |
10f2d63a VZ |
5097 | no_cache=0 |
5098 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
5099 | if test "${enable_tabdialog+set}" = set; then | |
5100 | enableval="$enable_tabdialog" | |
5101 | ||
5102 | if test "$enableval" = yes; then | |
5103 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
5104 | else | |
5105 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
5106 | fi | |
5107 | ||
5108 | else | |
5109 | ||
5110 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
5111 | if test "x$LINE" != x ; then | |
5112 | eval "DEFAULT_$LINE" | |
5113 | else | |
5114 | no_cache=1 | |
5115 | fi | |
5116 | ||
5117 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
5118 | ||
5119 | fi | |
5120 | ||
5121 | ||
5122 | eval "$ac_cv_use_tabdialog" | |
5123 | if test "$no_cache" != 1; then | |
5124 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
5125 | fi | |
5126 | ||
5127 | if test "$wxUSE_TABDIALOG" = yes; then | |
5128 | echo "$ac_t""yes" 1>&6 | |
5129 | else | |
5130 | echo "$ac_t""no" 1>&6 | |
5131 | fi | |
5132 | ||
5133 | ||
5134 | echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6 | |
f6bcfd97 | 5135 | echo "configure:5136: checking "for --enable-toolbar"" >&5 |
10f2d63a VZ |
5136 | no_cache=0 |
5137 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
5138 | if test "${enable_toolbar+set}" = set; then | |
5139 | enableval="$enable_toolbar" | |
5140 | ||
5141 | if test "$enableval" = yes; then | |
5142 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
5143 | else | |
5144 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
5145 | fi | |
5146 | ||
5147 | else | |
5148 | ||
5149 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
5150 | if test "x$LINE" != x ; then | |
5151 | eval "DEFAULT_$LINE" | |
5152 | else | |
5153 | no_cache=1 | |
5154 | fi | |
5155 | ||
5156 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
5157 | ||
5158 | fi | |
5159 | ||
5160 | ||
5161 | eval "$ac_cv_use_toolbar" | |
5162 | if test "$no_cache" != 1; then | |
5163 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
5164 | fi | |
5165 | ||
5166 | if test "$wxUSE_TOOLBAR" = yes; then | |
5167 | echo "$ac_t""yes" 1>&6 | |
5168 | else | |
5169 | echo "$ac_t""no" 1>&6 | |
5170 | fi | |
5171 | ||
5172 | ||
360d6699 | 5173 | echo $ac_n "checking "for --enable-tbarnative"""... $ac_c" 1>&6 |
f6bcfd97 | 5174 | echo "configure:5175: checking "for --enable-tbarnative"" >&5 |
360d6699 VZ |
5175 | no_cache=0 |
5176 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
5177 | if test "${enable_tbarnative+set}" = set; then | |
5178 | enableval="$enable_tbarnative" | |
5179 | ||
5180 | if test "$enableval" = yes; then | |
5181 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
5182 | else | |
5183 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
5184 | fi | |
5185 | ||
5186 | else | |
5187 | ||
5188 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
5189 | if test "x$LINE" != x ; then | |
5190 | eval "DEFAULT_$LINE" | |
5191 | else | |
5192 | no_cache=1 | |
5193 | fi | |
5194 | ||
5195 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
5196 | ||
5197 | fi | |
5198 | ||
5199 | ||
5200 | eval "$ac_cv_use_tbarnative" | |
5201 | if test "$no_cache" != 1; then | |
5202 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
5203 | fi | |
5204 | ||
5205 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
5206 | echo "$ac_t""yes" 1>&6 | |
5207 | else | |
5208 | echo "$ac_t""no" 1>&6 | |
5209 | fi | |
5210 | ||
5211 | ||
5212 | echo $ac_n "checking "for --enable-tbarsmpl"""... $ac_c" 1>&6 | |
f6bcfd97 | 5213 | echo "configure:5214: checking "for --enable-tbarsmpl"" >&5 |
360d6699 VZ |
5214 | no_cache=0 |
5215 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
5216 | if test "${enable_tbarsmpl+set}" = set; then | |
5217 | enableval="$enable_tbarsmpl" | |
5218 | ||
5219 | if test "$enableval" = yes; then | |
5220 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
5221 | else | |
5222 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
5223 | fi | |
5224 | ||
5225 | else | |
5226 | ||
5227 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
5228 | if test "x$LINE" != x ; then | |
5229 | eval "DEFAULT_$LINE" | |
5230 | else | |
5231 | no_cache=1 | |
5232 | fi | |
5233 | ||
5234 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
5235 | ||
5236 | fi | |
5237 | ||
5238 | ||
5239 | eval "$ac_cv_use_tbarsmpl" | |
5240 | if test "$no_cache" != 1; then | |
5241 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
5242 | fi | |
5243 | ||
5244 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
5245 | echo "$ac_t""yes" 1>&6 | |
5246 | else | |
5247 | echo "$ac_t""no" 1>&6 | |
5248 | fi | |
5249 | ||
5250 | ||
10f2d63a | 5251 | echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6 |
f6bcfd97 | 5252 | echo "configure:5253: checking "for --enable-treectrl"" >&5 |
10f2d63a VZ |
5253 | no_cache=0 |
5254 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
5255 | if test "${enable_treectrl+set}" = set; then | |
5256 | enableval="$enable_treectrl" | |
5257 | ||
5258 | if test "$enableval" = yes; then | |
5259 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
5260 | else | |
5261 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
5262 | fi | |
5263 | ||
5264 | else | |
5265 | ||
5266 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
5267 | if test "x$LINE" != x ; then | |
5268 | eval "DEFAULT_$LINE" | |
5269 | else | |
5270 | no_cache=1 | |
5271 | fi | |
5272 | ||
5273 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
5274 | ||
5275 | fi | |
5276 | ||
5277 | ||
5278 | eval "$ac_cv_use_treectrl" | |
5279 | if test "$no_cache" != 1; then | |
5280 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
5281 | fi | |
5282 | ||
5283 | if test "$wxUSE_TREECTRL" = yes; then | |
5284 | echo "$ac_t""yes" 1>&6 | |
5285 | else | |
5286 | echo "$ac_t""no" 1>&6 | |
5287 | fi | |
5288 | ||
5289 | ||
5290 | ||
5291 | ||
5292 | echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6 | |
f6bcfd97 | 5293 | echo "configure:5294: checking "for --enable-commondlg"" >&5 |
10f2d63a VZ |
5294 | no_cache=0 |
5295 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
5296 | if test "${enable_commondlg+set}" = set; then | |
5297 | enableval="$enable_commondlg" | |
5298 | ||
5299 | if test "$enableval" = yes; then | |
5300 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
5301 | else | |
5302 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
5303 | fi | |
5304 | ||
5305 | else | |
5306 | ||
5307 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
5308 | if test "x$LINE" != x ; then | |
5309 | eval "DEFAULT_$LINE" | |
5310 | else | |
5311 | no_cache=1 | |
5312 | fi | |
5313 | ||
5314 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
5315 | ||
5316 | fi | |
5317 | ||
5318 | ||
5319 | eval "$ac_cv_use_commondlg" | |
5320 | if test "$no_cache" != 1; then | |
5321 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
5322 | fi | |
5323 | ||
5324 | if test "$wxUSE_COMMONDLGS" = yes; then | |
5325 | echo "$ac_t""yes" 1>&6 | |
5326 | else | |
5327 | echo "$ac_t""no" 1>&6 | |
5328 | fi | |
5329 | ||
5330 | ||
5331 | echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6 | |
f6bcfd97 | 5332 | echo "configure:5333: checking "for --enable-dirdlg"" >&5 |
10f2d63a VZ |
5333 | no_cache=0 |
5334 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
5335 | if test "${enable_dirdlg+set}" = set; then | |
5336 | enableval="$enable_dirdlg" | |
5337 | ||
5338 | if test "$enableval" = yes; then | |
5339 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
5340 | else | |
5341 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
5342 | fi | |
5343 | ||
5344 | else | |
5345 | ||
5346 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
5347 | if test "x$LINE" != x ; then | |
5348 | eval "DEFAULT_$LINE" | |
5349 | else | |
5350 | no_cache=1 | |
5351 | fi | |
5352 | ||
5353 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
5354 | ||
5355 | fi | |
5356 | ||
5357 | ||
5358 | eval "$ac_cv_use_dirdlg" | |
5359 | if test "$no_cache" != 1; then | |
5360 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
5361 | fi | |
5362 | ||
5363 | if test "$wxUSE_DIRDLG" = yes; then | |
5364 | echo "$ac_t""yes" 1>&6 | |
5365 | else | |
5366 | echo "$ac_t""no" 1>&6 | |
5367 | fi | |
5368 | ||
5369 | ||
5370 | echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6 | |
f6bcfd97 | 5371 | echo "configure:5372: checking "for --enable-textdlg"" >&5 |
10f2d63a VZ |
5372 | no_cache=0 |
5373 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
5374 | if test "${enable_textdlg+set}" = set; then | |
5375 | enableval="$enable_textdlg" | |
5376 | ||
5377 | if test "$enableval" = yes; then | |
5378 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
5379 | else | |
5380 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
5381 | fi | |
5382 | ||
5383 | else | |
5384 | ||
5385 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
5386 | if test "x$LINE" != x ; then | |
5387 | eval "DEFAULT_$LINE" | |
5388 | else | |
5389 | no_cache=1 | |
5390 | fi | |
5391 | ||
5392 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
5393 | ||
5394 | fi | |
5395 | ||
5396 | ||
5397 | eval "$ac_cv_use_textdlg" | |
5398 | if test "$no_cache" != 1; then | |
5399 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
5400 | fi | |
5401 | ||
5402 | if test "$wxUSE_TEXTDLG" = yes; then | |
5403 | echo "$ac_t""yes" 1>&6 | |
5404 | else | |
5405 | echo "$ac_t""no" 1>&6 | |
5406 | fi | |
5407 | ||
5408 | ||
5409 | echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6 | |
f6bcfd97 | 5410 | echo "configure:5411: checking "for --enable-tipdlg"" >&5 |
10f2d63a VZ |
5411 | no_cache=0 |
5412 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
5413 | if test "${enable_tipdlg+set}" = set; then | |
5414 | enableval="$enable_tipdlg" | |
5415 | ||
5416 | if test "$enableval" = yes; then | |
5417 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
5418 | else | |
5419 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
5420 | fi | |
5421 | ||
5422 | else | |
5423 | ||
5424 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
5425 | if test "x$LINE" != x ; then | |
5426 | eval "DEFAULT_$LINE" | |
5427 | else | |
5428 | no_cache=1 | |
5429 | fi | |
5430 | ||
5431 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
5432 | ||
5433 | fi | |
5434 | ||
5435 | ||
5436 | eval "$ac_cv_use_tipdlg" | |
5437 | if test "$no_cache" != 1; then | |
5438 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
5439 | fi | |
5440 | ||
5441 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
5442 | echo "$ac_t""yes" 1>&6 | |
5443 | else | |
5444 | echo "$ac_t""no" 1>&6 | |
5445 | fi | |
5446 | ||
5447 | ||
5448 | echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6 | |
f6bcfd97 | 5449 | echo "configure:5450: checking "for --enable-progressdlg"" >&5 |
10f2d63a VZ |
5450 | no_cache=0 |
5451 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
5452 | if test "${enable_progressdlg+set}" = set; then | |
5453 | enableval="$enable_progressdlg" | |
5454 | ||
5455 | if test "$enableval" = yes; then | |
5456 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
5457 | else | |
5458 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
5459 | fi | |
5460 | ||
5461 | else | |
5462 | ||
5463 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
5464 | if test "x$LINE" != x ; then | |
5465 | eval "DEFAULT_$LINE" | |
5466 | else | |
5467 | no_cache=1 | |
5468 | fi | |
5469 | ||
5470 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
5471 | ||
5472 | fi | |
5473 | ||
5474 | ||
5475 | eval "$ac_cv_use_progressdlg" | |
5476 | if test "$no_cache" != 1; then | |
5477 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
5478 | fi | |
5479 | ||
5480 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
5481 | echo "$ac_t""yes" 1>&6 | |
5482 | else | |
5483 | echo "$ac_t""no" 1>&6 | |
5484 | fi | |
5485 | ||
5486 | ||
5487 | echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6 | |
f6bcfd97 | 5488 | echo "configure:5489: checking "for --enable-miniframe"" >&5 |
10f2d63a VZ |
5489 | no_cache=0 |
5490 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
5491 | if test "${enable_miniframe+set}" = set; then | |
5492 | enableval="$enable_miniframe" | |
5493 | ||
5494 | if test "$enableval" = yes; then | |
5495 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
5496 | else | |
5497 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
5498 | fi | |
5499 | ||
5500 | else | |
5501 | ||
5502 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
5503 | if test "x$LINE" != x ; then | |
5504 | eval "DEFAULT_$LINE" | |
5505 | else | |
5506 | no_cache=1 | |
5507 | fi | |
5508 | ||
5509 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
5510 | ||
5511 | fi | |
5512 | ||
5513 | ||
5514 | eval "$ac_cv_use_miniframe" | |
5515 | if test "$no_cache" != 1; then | |
5516 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
5517 | fi | |
5518 | ||
5519 | if test "$wxUSE_MINIFRAME" = yes; then | |
5520 | echo "$ac_t""yes" 1>&6 | |
5521 | else | |
5522 | echo "$ac_t""no" 1>&6 | |
5523 | fi | |
5524 | ||
5525 | ||
5526 | echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6 | |
f6bcfd97 | 5527 | echo "configure:5528: checking "for --enable-html"" >&5 |
10f2d63a VZ |
5528 | no_cache=0 |
5529 | # Check whether --enable-html or --disable-html was given. | |
5530 | if test "${enable_html+set}" = set; then | |
5531 | enableval="$enable_html" | |
5532 | ||
5533 | if test "$enableval" = yes; then | |
5534 | ac_cv_use_html='wxUSE_HTML=yes' | |
5535 | else | |
5536 | ac_cv_use_html='wxUSE_HTML=no' | |
5537 | fi | |
5538 | ||
5539 | else | |
5540 | ||
5541 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
5542 | if test "x$LINE" != x ; then | |
5543 | eval "DEFAULT_$LINE" | |
5544 | else | |
5545 | no_cache=1 | |
5546 | fi | |
5547 | ||
5548 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
5549 | ||
5550 | fi | |
5551 | ||
5552 | ||
5553 | eval "$ac_cv_use_html" | |
5554 | if test "$no_cache" != 1; then | |
5555 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
5556 | fi | |
5557 | ||
5558 | if test "$wxUSE_HTML" = yes; then | |
5559 | echo "$ac_t""yes" 1>&6 | |
5560 | else | |
5561 | echo "$ac_t""no" 1>&6 | |
5562 | fi | |
5563 | ||
5564 | ||
5565 | echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6 | |
f6bcfd97 | 5566 | echo "configure:5567: checking "for --enable-tooltips"" >&5 |
10f2d63a VZ |
5567 | no_cache=0 |
5568 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
5569 | if test "${enable_tooltips+set}" = set; then | |
5570 | enableval="$enable_tooltips" | |
5571 | ||
5572 | if test "$enableval" = yes; then | |
5573 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
5574 | else | |
5575 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
5576 | fi | |
5577 | ||
5578 | else | |
5579 | ||
5580 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
5581 | if test "x$LINE" != x ; then | |
5582 | eval "DEFAULT_$LINE" | |
5583 | else | |
5584 | no_cache=1 | |
5585 | fi | |
5586 | ||
5587 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
5588 | ||
5589 | fi | |
5590 | ||
5591 | ||
5592 | eval "$ac_cv_use_tooltips" | |
5593 | if test "$no_cache" != 1; then | |
5594 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
5595 | fi | |
5596 | ||
5597 | if test "$wxUSE_TOOLTIPS" = yes; then | |
5598 | echo "$ac_t""yes" 1>&6 | |
5599 | else | |
5600 | echo "$ac_t""no" 1>&6 | |
5601 | fi | |
5602 | ||
5603 | ||
5604 | echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6 | |
f6bcfd97 | 5605 | echo "configure:5606: checking "for --enable-splines"" >&5 |
10f2d63a VZ |
5606 | no_cache=0 |
5607 | # Check whether --enable-splines or --disable-splines was given. | |
5608 | if test "${enable_splines+set}" = set; then | |
5609 | enableval="$enable_splines" | |
5610 | ||
5611 | if test "$enableval" = yes; then | |
5612 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
5613 | else | |
5614 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
5615 | fi | |
5616 | ||
5617 | else | |
5618 | ||
5619 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
5620 | if test "x$LINE" != x ; then | |
5621 | eval "DEFAULT_$LINE" | |
5622 | else | |
5623 | no_cache=1 | |
5624 | fi | |
5625 | ||
5626 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
5627 | ||
5628 | fi | |
5629 | ||
5630 | ||
5631 | eval "$ac_cv_use_splines" | |
5632 | if test "$no_cache" != 1; then | |
5633 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
5634 | fi | |
5635 | ||
5636 | if test "$wxUSE_SPLINES" = yes; then | |
5637 | echo "$ac_t""yes" 1>&6 | |
5638 | else | |
5639 | echo "$ac_t""no" 1>&6 | |
5640 | fi | |
5641 | ||
5642 | ||
5643 | echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6 | |
f6bcfd97 | 5644 | echo "configure:5645: checking "for --enable-validators"" >&5 |
10f2d63a VZ |
5645 | no_cache=0 |
5646 | # Check whether --enable-validators or --disable-validators was given. | |
5647 | if test "${enable_validators+set}" = set; then | |
5648 | enableval="$enable_validators" | |
5649 | ||
5650 | if test "$enableval" = yes; then | |
5651 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
5652 | else | |
5653 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
5654 | fi | |
5655 | ||
5656 | else | |
5657 | ||
5658 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
5659 | if test "x$LINE" != x ; then | |
5660 | eval "DEFAULT_$LINE" | |
5661 | else | |
5662 | no_cache=1 | |
5663 | fi | |
5664 | ||
5665 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
5666 | ||
5667 | fi | |
5668 | ||
5669 | ||
5670 | eval "$ac_cv_use_validators" | |
5671 | if test "$no_cache" != 1; then | |
5672 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
5673 | fi | |
5674 | ||
5675 | if test "$wxUSE_VALIDATORS" = yes; then | |
5676 | echo "$ac_t""yes" 1>&6 | |
5677 | else | |
5678 | echo "$ac_t""no" 1>&6 | |
5679 | fi | |
5680 | ||
5681 | ||
5682 | echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6 | |
f6bcfd97 | 5683 | echo "configure:5684: checking "for --enable-busyinfo"" >&5 |
10f2d63a VZ |
5684 | no_cache=0 |
5685 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
5686 | if test "${enable_busyinfo+set}" = set; then | |
5687 | enableval="$enable_busyinfo" | |
5688 | ||
5689 | if test "$enableval" = yes; then | |
5690 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
5691 | else | |
5692 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
5693 | fi | |
5694 | ||
5695 | else | |
5696 | ||
5697 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
5698 | if test "x$LINE" != x ; then | |
5699 | eval "DEFAULT_$LINE" | |
5700 | else | |
5701 | no_cache=1 | |
5702 | fi | |
5703 | ||
5704 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
5705 | ||
5706 | fi | |
5707 | ||
5708 | ||
5709 | eval "$ac_cv_use_busyinfo" | |
5710 | if test "$no_cache" != 1; then | |
5711 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
5712 | fi | |
5713 | ||
5714 | if test "$wxUSE_BUSYINFO" = yes; then | |
5715 | echo "$ac_t""yes" 1>&6 | |
5716 | else | |
5717 | echo "$ac_t""no" 1>&6 | |
5718 | fi | |
5719 | ||
5720 | ||
9b33fe02 | 5721 | echo $ac_n "checking "for --enable-plot"""... $ac_c" 1>&6 |
f6bcfd97 | 5722 | echo "configure:5723: checking "for --enable-plot"" >&5 |
9b33fe02 VZ |
5723 | no_cache=0 |
5724 | # Check whether --enable-plot or --disable-plot was given. | |
5725 | if test "${enable_plot+set}" = set; then | |
5726 | enableval="$enable_plot" | |
5727 | ||
5728 | if test "$enableval" = yes; then | |
5729 | ac_cv_use_plot='wxUSE_PLOT=yes' | |
5730 | else | |
5731 | ac_cv_use_plot='wxUSE_PLOT=no' | |
5732 | fi | |
5733 | ||
5734 | else | |
5735 | ||
5736 | LINE=`grep "wxUSE_PLOT" ${wx_arg_cache_file}` | |
5737 | if test "x$LINE" != x ; then | |
5738 | eval "DEFAULT_$LINE" | |
5739 | else | |
5740 | no_cache=1 | |
5741 | fi | |
5742 | ||
5743 | ac_cv_use_plot='wxUSE_PLOT='$DEFAULT_wxUSE_PLOT | |
5744 | ||
5745 | fi | |
5746 | ||
5747 | ||
5748 | eval "$ac_cv_use_plot" | |
5749 | if test "$no_cache" != 1; then | |
5750 | echo $ac_cv_use_plot >> ${wx_arg_cache_file}.tmp | |
5751 | fi | |
5752 | ||
5753 | if test "$wxUSE_PLOT" = yes; then | |
5754 | echo "$ac_t""yes" 1>&6 | |
5755 | else | |
5756 | echo "$ac_t""no" 1>&6 | |
5757 | fi | |
5758 | ||
5759 | ||
f6bcfd97 BP |
5760 | echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6 |
5761 | echo "configure:5762: checking "for --enable-joystick"" >&5 | |
5762 | no_cache=0 | |
5763 | # Check whether --enable-joystick or --disable-joystick was given. | |
5764 | if test "${enable_joystick+set}" = set; then | |
5765 | enableval="$enable_joystick" | |
5766 | ||
5767 | if test "$enableval" = yes; then | |
5768 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
5769 | else | |
5770 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
5771 | fi | |
5772 | ||
5773 | else | |
5774 | ||
5775 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
5776 | if test "x$LINE" != x ; then | |
5777 | eval "DEFAULT_$LINE" | |
5778 | else | |
5779 | no_cache=1 | |
5780 | fi | |
5781 | ||
5782 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
5783 | ||
5784 | fi | |
5785 | ||
5786 | ||
5787 | eval "$ac_cv_use_joystick" | |
5788 | if test "$no_cache" != 1; then | |
5789 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
5790 | fi | |
5791 | ||
5792 | if test "$wxUSE_JOYSTICK" = yes; then | |
5793 | echo "$ac_t""yes" 1>&6 | |
5794 | else | |
5795 | echo "$ac_t""no" 1>&6 | |
5796 | fi | |
5797 | ||
5798 | ||
10f2d63a VZ |
5799 | |
5800 | ||
5801 | echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6 | |
f6bcfd97 | 5802 | echo "configure:5803: checking "for --enable-gif"" >&5 |
10f2d63a VZ |
5803 | no_cache=0 |
5804 | # Check whether --enable-gif or --disable-gif was given. | |
5805 | if test "${enable_gif+set}" = set; then | |
5806 | enableval="$enable_gif" | |
5807 | ||
5808 | if test "$enableval" = yes; then | |
5809 | ac_cv_use_gif='wxUSE_GIF=yes' | |
5810 | else | |
5811 | ac_cv_use_gif='wxUSE_GIF=no' | |
5812 | fi | |
5813 | ||
5814 | else | |
5815 | ||
5816 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
5817 | if test "x$LINE" != x ; then | |
5818 | eval "DEFAULT_$LINE" | |
5819 | else | |
5820 | no_cache=1 | |
5821 | fi | |
5822 | ||
5823 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
5824 | ||
5825 | fi | |
5826 | ||
5827 | ||
5828 | eval "$ac_cv_use_gif" | |
5829 | if test "$no_cache" != 1; then | |
5830 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
5831 | fi | |
5832 | ||
5833 | if test "$wxUSE_GIF" = yes; then | |
5834 | echo "$ac_t""yes" 1>&6 | |
5835 | else | |
5836 | echo "$ac_t""no" 1>&6 | |
5837 | fi | |
5838 | ||
5839 | ||
5840 | echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6 | |
f6bcfd97 | 5841 | echo "configure:5842: checking "for --enable-pcx"" >&5 |
10f2d63a VZ |
5842 | no_cache=0 |
5843 | # Check whether --enable-pcx or --disable-pcx was given. | |
5844 | if test "${enable_pcx+set}" = set; then | |
5845 | enableval="$enable_pcx" | |
5846 | ||
5847 | if test "$enableval" = yes; then | |
5848 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
5849 | else | |
5850 | ac_cv_use_pcx='wxUSE_PCX=no' | |
5851 | fi | |
5852 | ||
5853 | else | |
5854 | ||
5855 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
5856 | if test "x$LINE" != x ; then | |
5857 | eval "DEFAULT_$LINE" | |
5858 | else | |
5859 | no_cache=1 | |
5860 | fi | |
5861 | ||
5862 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
5863 | ||
5864 | fi | |
5865 | ||
5866 | ||
5867 | eval "$ac_cv_use_pcx" | |
5868 | if test "$no_cache" != 1; then | |
5869 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
5870 | fi | |
5871 | ||
5872 | if test "$wxUSE_PCX" = yes; then | |
5873 | echo "$ac_t""yes" 1>&6 | |
5874 | else | |
5875 | echo "$ac_t""no" 1>&6 | |
5876 | fi | |
5877 | ||
5878 | ||
5879 | echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6 | |
f6bcfd97 | 5880 | echo "configure:5881: checking "for --enable-pnm"" >&5 |
10f2d63a VZ |
5881 | no_cache=0 |
5882 | # Check whether --enable-pnm or --disable-pnm was given. | |
5883 | if test "${enable_pnm+set}" = set; then | |
5884 | enableval="$enable_pnm" | |
5885 | ||
5886 | if test "$enableval" = yes; then | |
5887 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
5888 | else | |
5889 | ac_cv_use_pnm='wxUSE_PNM=no' | |
5890 | fi | |
5891 | ||
5892 | else | |
5893 | ||
5894 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
5895 | if test "x$LINE" != x ; then | |
5896 | eval "DEFAULT_$LINE" | |
5897 | else | |
5898 | no_cache=1 | |
5899 | fi | |
5900 | ||
5901 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
5902 | ||
5903 | fi | |
5904 | ||
5905 | ||
5906 | eval "$ac_cv_use_pnm" | |
5907 | if test "$no_cache" != 1; then | |
5908 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
5909 | fi | |
5910 | ||
5911 | if test "$wxUSE_PNM" = yes; then | |
5912 | echo "$ac_t""yes" 1>&6 | |
5913 | else | |
5914 | echo "$ac_t""no" 1>&6 | |
5915 | fi | |
5916 | ||
5917 | ||
b12915c1 VZ |
5918 | fi |
5919 | ||
10f2d63a VZ |
5920 | |
5921 | echo "saving argument cache $wx_arg_cache_file" | |
5922 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
5923 | ||
5924 | ||
5925 | ||
5926 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
f6bcfd97 | 5927 | echo "configure:5928: checking for toolkit" >&5 |
10f2d63a VZ |
5928 | |
5929 | if test "$wxUSE_GUI" = "yes"; then | |
5930 | ||
b12915c1 VZ |
5931 | if test "$USE_BEOS" = 1; then |
5932 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } | |
5933 | fi | |
5934 | ||
10f2d63a VZ |
5935 | if test "$TOOLKIT_GIVEN" = 1; then |
5936 | for toolkit in `echo $ALL_TOOLKITS`; do | |
5937 | var=wxUSE_$toolkit | |
5938 | eval "value=\$${var}" | |
5939 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
5940 | done | |
5941 | else | |
5942 | for toolkit in `echo $ALL_TOOLKITS`; do | |
5943 | if test "$has_toolkit_in_cache" != 1; then | |
5944 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
5945 | else | |
5946 | var=DEFAULT_wxUSE_$toolkit | |
5947 | fi | |
5948 | eval "wxUSE_$toolkit=\$${var}" | |
5949 | done | |
5950 | fi | |
5951 | ||
ec14dd32 | 5952 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}` |
cf27ef00 | 5953 | |
ec14dd32 VZ |
5954 | case "${host}" in |
5955 | *-pc-os2_emx ) | |
5956 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
5957 | # PATH_IFS is autodetected by OS/2's configure (usually ';') | |
5958 | LEX_STEM="lexyy" | |
5959 | ;; | |
5960 | *) | |
5961 | PATH_IFS=':' | |
5962 | LEX_STEM="lex.yy" | |
5963 | ;; | |
5964 | esac | |
10f2d63a VZ |
5965 | |
5966 | case "$NUM_TOOLKITS" in | |
5967 | 1) | |
5968 | ;; | |
5969 | 0) | |
5970 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } | |
5971 | ;; | |
5972 | *) | |
5973 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } | |
5974 | esac | |
5975 | ||
5976 | for toolkit in `echo $ALL_TOOLKITS`; do | |
5977 | var=wxUSE_$toolkit | |
5978 | eval "value=\$${var}" | |
5979 | if test "x$value" != x; then | |
5980 | cache_var=CACHE_$toolkit | |
5981 | eval "cache=\$${cache_var}" | |
5982 | if test "$cache" = 1; then | |
5983 | echo "$var=$value" >> ${wx_arg_cache_file} | |
5984 | fi | |
5985 | if test "$value" = 1; then | |
5986 | echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6 | |
5987 | fi | |
5988 | fi | |
5989 | done | |
5990 | ||
5991 | else | |
cf27ef00 | 5992 | PATH_IFS=':' |
10f2d63a VZ |
5993 | echo "$ac_t""base only" 1>&6 |
5994 | fi | |
5995 | ||
5996 | ||
5997 | cat > confcache <<\EOF | |
5998 | # This file is a shell script that caches the results of configure | |
5999 | # tests run on this system so they can be shared between configure | |
6000 | # scripts and configure runs. It is not useful on other systems. | |
6001 | # If it contains results you don't want to keep, you may remove or edit it. | |
6002 | # | |
6003 | # By default, configure uses ./config.cache as the cache file, | |
6004 | # creating it if it does not exist already. You can give configure | |
6005 | # the --cache-file=FILE option to use a different cache file; that is | |
6006 | # what configure does when it calls configure scripts in | |
6007 | # subdirectories, so they share the cache. | |
6008 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
6009 | # config.status only pays attention to the cache file if you give it the | |
6010 | # --recheck option to rerun configure. | |
6011 | # | |
6012 | EOF | |
6013 | # The following way of writing the cache mishandles newlines in values, | |
6014 | # but we know of no workaround that is simple, portable, and efficient. | |
6015 | # So, don't put newlines in cache variables' values. | |
6016 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
6017 | # and sets the high bit in the cache file unless we assign to the vars. | |
6018 | (set) 2>&1 | | |
6019 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
6020 | *ac_space=\ *) | |
6021 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
6022 | # turns \\\\ into \\, and sed turns \\ into \). | |
6023 | sed -n \ | |
6024 | -e "s/'/'\\\\''/g" \ | |
6025 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
6026 | ;; | |
6027 | *) | |
6028 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
6029 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
6030 | ;; | |
6031 | esac >> confcache | |
6032 | if cmp -s $cache_file confcache; then | |
6033 | : | |
6034 | else | |
6035 | if test -w $cache_file; then | |
6036 | echo "updating cache $cache_file" | |
6037 | cat confcache > $cache_file | |
6038 | else | |
6039 | echo "not updating unwritable cache $cache_file" | |
6040 | fi | |
6041 | fi | |
6042 | rm -f confcache | |
6043 | ||
6044 | ||
e59890c3 | 6045 | if test "$build" != "$host" ; then |
10f2d63a VZ |
6046 | CC=$host_alias-gcc |
6047 | CXX=$host_alias-c++ | |
6048 | AR=$host_alias-ar | |
6049 | RANLIB=$host_alias-ranlib | |
6050 | DLLTOOL=$host_alias-dlltool | |
32832908 | 6051 | RESCOMP=$host_alias-windres |
10f2d63a VZ |
6052 | LD=$host_alias-ld |
6053 | NM=$host_alias-nm | |
6054 | STRIP=$host_alias-strip | |
10f2d63a VZ |
6055 | fi |
6056 | ||
6057 | # Extract the first word of "gcc", so it can be a program name with args. | |
6058 | set dummy gcc; ac_word=$2 | |
6059 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
f6bcfd97 | 6060 | echo "configure:6061: checking for $ac_word" >&5 |
10f2d63a VZ |
6061 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
6062 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6063 | else | |
6064 | if test -n "$CC"; then | |
6065 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6066 | else | |
6067 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6068 | ac_dummy="$PATH" | |
6069 | for ac_dir in $ac_dummy; do | |
6070 | test -z "$ac_dir" && ac_dir=. | |
6071 | if test -f $ac_dir/$ac_word; then | |
6072 | ac_cv_prog_CC="gcc" | |
6073 | break | |
6074 | fi | |
6075 | done | |
6076 | IFS="$ac_save_ifs" | |
6077 | fi | |
6078 | fi | |
6079 | CC="$ac_cv_prog_CC" | |
6080 | if test -n "$CC"; then | |
6081 | echo "$ac_t""$CC" 1>&6 | |
6082 | else | |
6083 | echo "$ac_t""no" 1>&6 | |
6084 | fi | |
6085 | ||
6086 | if test -z "$CC"; then | |
6087 | # Extract the first word of "cc", so it can be a program name with args. | |
6088 | set dummy cc; ac_word=$2 | |
6089 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
f6bcfd97 | 6090 | echo "configure:6091: checking for $ac_word" >&5 |
10f2d63a VZ |
6091 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
6092 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6093 | else | |
6094 | if test -n "$CC"; then | |
6095 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6096 | else | |
6097 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6098 | ac_prog_rejected=no | |
6099 | ac_dummy="$PATH" | |
6100 | for ac_dir in $ac_dummy; do | |
6101 | test -z "$ac_dir" && ac_dir=. | |
6102 | if test -f $ac_dir/$ac_word; then | |
6103 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
6104 | ac_prog_rejected=yes | |
6105 | continue | |
6106 | fi | |
6107 | ac_cv_prog_CC="cc" | |
6108 | break | |
6109 | fi | |
6110 | done | |
6111 | IFS="$ac_save_ifs" | |
6112 | if test $ac_prog_rejected = yes; then | |
6113 | # We found a bogon in the path, so make sure we never use it. | |
6114 | set dummy $ac_cv_prog_CC | |
6115 | shift | |
6116 | if test $# -gt 0; then | |
6117 | # We chose a different compiler from the bogus one. | |
6118 | # However, it has the same basename, so the bogon will be chosen | |
6119 | # first if we set CC to just the basename; use the full file name. | |
6120 | shift | |
6121 | set dummy "$ac_dir/$ac_word" "$@" | |
6122 | shift | |
6123 | ac_cv_prog_CC="$@" | |
6124 | fi | |
6125 | fi | |
6126 | fi | |
6127 | fi | |
6128 | CC="$ac_cv_prog_CC" | |
6129 | if test -n "$CC"; then | |
6130 | echo "$ac_t""$CC" 1>&6 | |
6131 | else | |
6132 | echo "$ac_t""no" 1>&6 | |
6133 | fi | |
6134 | ||
6135 | if test -z "$CC"; then | |
6136 | case "`uname -s`" in | |
6137 | *win32* | *WIN32*) | |
6138 | # Extract the first word of "cl", so it can be a program name with args. | |
6139 | set dummy cl; ac_word=$2 | |
6140 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
f6bcfd97 | 6141 | echo "configure:6142: checking for $ac_word" >&5 |
10f2d63a VZ |
6142 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
6143 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6144 | else | |
6145 | if test -n "$CC"; then | |
6146 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6147 | else | |
6148 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6149 | ac_dummy="$PATH" | |
6150 | for ac_dir in $ac_dummy; do | |
6151 | test -z "$ac_dir" && ac_dir=. | |
6152 | if test -f $ac_dir/$ac_word; then | |
6153 | ac_cv_prog_CC="cl" | |
6154 | break | |
6155 | fi | |
6156 | done | |
6157 | IFS="$ac_save_ifs" | |
6158 | fi | |
6159 | fi | |
6160 | CC="$ac_cv_prog_CC" | |
6161 | if test -n "$CC"; then | |
6162 | echo "$ac_t""$CC" 1>&6 | |
6163 | else | |
6164 | echo "$ac_t""no" 1>&6 | |
6165 | fi | |
6166 | ;; | |
6167 | esac | |
6168 | fi | |
6169 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
6170 | fi | |
6171 | ||
6172 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
f6bcfd97 | 6173 | echo "configure:6174: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
10f2d63a VZ |
6174 | |
6175 | ac_ext=c | |
6176 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6177 | ac_cpp='$CPP $CPPFLAGS' | |
6178 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6179 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6180 | cross_compiling=$ac_cv_prog_cc_cross | |
6181 | ||
6182 | cat > conftest.$ac_ext << EOF | |
6183 | ||
f6bcfd97 | 6184 | #line 6185 "configure" |
10f2d63a VZ |
6185 | #include "confdefs.h" |
6186 | ||
6187 | main(){return(0);} | |
6188 | EOF | |
f6bcfd97 | 6189 | if { (eval echo configure:6190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
6190 | ac_cv_prog_cc_works=yes |
6191 | # If we can't run a trivial program, we are probably using a cross compiler. | |
6192 | if (./conftest; exit) 2>/dev/null; then | |
6193 | ac_cv_prog_cc_cross=no | |
6194 | else | |
6195 | ac_cv_prog_cc_cross=yes | |
6196 | fi | |
6197 | else | |
6198 | echo "configure: failed program was:" >&5 | |
6199 | cat conftest.$ac_ext >&5 | |
6200 | ac_cv_prog_cc_works=no | |
6201 | fi | |
6202 | rm -fr conftest* | |
6203 | ac_ext=c | |
6204 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6205 | ac_cpp='$CPP $CPPFLAGS' | |
6206 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6207 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6208 | cross_compiling=$ac_cv_prog_cc_cross | |
6209 | ||
6210 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
6211 | if test $ac_cv_prog_cc_works = no; then | |
6212 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
6213 | fi | |
6214 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
f6bcfd97 | 6215 | echo "configure:6216: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
10f2d63a VZ |
6216 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
6217 | cross_compiling=$ac_cv_prog_cc_cross | |
6218 | ||
6219 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
f6bcfd97 | 6220 | echo "configure:6221: checking whether we are using GNU C" >&5 |
10f2d63a VZ |
6221 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
6222 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6223 | else | |
6224 | cat > conftest.c <<EOF | |
6225 | #ifdef __GNUC__ | |
6226 | yes; | |
6227 | #endif | |
6228 | EOF | |
f6bcfd97 | 6229 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:6230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
10f2d63a VZ |
6230 | ac_cv_prog_gcc=yes |
6231 | else | |
6232 | ac_cv_prog_gcc=no | |
6233 | fi | |
6234 | fi | |
6235 | ||
6236 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
6237 | ||
6238 | if test $ac_cv_prog_gcc = yes; then | |
6239 | GCC=yes | |
6240 | else | |
6241 | GCC= | |
6242 | fi | |
6243 | ||
6244 | ac_test_CFLAGS="${CFLAGS+set}" | |
6245 | ac_save_CFLAGS="$CFLAGS" | |
6246 | CFLAGS= | |
6247 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
f6bcfd97 | 6248 | echo "configure:6249: checking whether ${CC-cc} accepts -g" >&5 |
10f2d63a VZ |
6249 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
6250 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6251 | else | |
6252 | echo 'void f(){}' > conftest.c | |
6253 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
6254 | ac_cv_prog_cc_g=yes | |
6255 | else | |
6256 | ac_cv_prog_cc_g=no | |
6257 | fi | |
6258 | rm -f conftest* | |
6259 | ||
6260 | fi | |
6261 | ||
6262 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
6263 | if test "$ac_test_CFLAGS" = set; then | |
6264 | CFLAGS="$ac_save_CFLAGS" | |
6265 | elif test $ac_cv_prog_cc_g = yes; then | |
6266 | if test "$GCC" = yes; then | |
6267 | CFLAGS="-g -O2" | |
6268 | else | |
6269 | CFLAGS="-g" | |
6270 | fi | |
6271 | else | |
6272 | if test "$GCC" = yes; then | |
6273 | CFLAGS="-O2" | |
6274 | else | |
6275 | CFLAGS= | |
6276 | fi | |
6277 | fi | |
6278 | ||
6279 | ||
6280 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
6281 | ||
6282 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
f6bcfd97 | 6283 | echo "configure:6284: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
6284 | # On Suns, sometimes $CPP names a directory. |
6285 | if test -n "$CPP" && test -d "$CPP"; then | |
6286 | CPP= | |
6287 | fi | |
6288 | if test -z "$CPP"; then | |
6289 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
6290 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6291 | else | |
6292 | # This must be in double quotes, not single quotes, because CPP may get | |
6293 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
6294 | CPP="${CC-cc} -E" | |
6295 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6296 | # not just through cpp. | |
6297 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 6298 | #line 6299 "configure" |
10f2d63a VZ |
6299 | #include "confdefs.h" |
6300 | #include <assert.h> | |
6301 | Syntax Error | |
6302 | EOF | |
6303 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f6bcfd97 | 6304 | { (eval echo configure:6305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
6305 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6306 | if test -z "$ac_err"; then | |
6307 | : | |
6308 | else | |
6309 | echo "$ac_err" >&5 | |
6310 | echo "configure: failed program was:" >&5 | |
6311 | cat conftest.$ac_ext >&5 | |
6312 | rm -rf conftest* | |
6313 | CPP="${CC-cc} -E -traditional-cpp" | |
6314 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 6315 | #line 6316 "configure" |
10f2d63a VZ |
6316 | #include "confdefs.h" |
6317 | #include <assert.h> | |
6318 | Syntax Error | |
6319 | EOF | |
6320 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f6bcfd97 | 6321 | { (eval echo configure:6322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
6322 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6323 | if test -z "$ac_err"; then | |
6324 | : | |
6325 | else | |
6326 | echo "$ac_err" >&5 | |
6327 | echo "configure: failed program was:" >&5 | |
6328 | cat conftest.$ac_ext >&5 | |
6329 | rm -rf conftest* | |
6330 | CPP="${CC-cc} -nologo -E" | |
6331 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 6332 | #line 6333 "configure" |
10f2d63a VZ |
6333 | #include "confdefs.h" |
6334 | #include <assert.h> | |
6335 | Syntax Error | |
6336 | EOF | |
6337 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f6bcfd97 | 6338 | { (eval echo configure:6339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
6339 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6340 | if test -z "$ac_err"; then | |
6341 | : | |
6342 | else | |
6343 | echo "$ac_err" >&5 | |
6344 | echo "configure: failed program was:" >&5 | |
6345 | cat conftest.$ac_ext >&5 | |
6346 | rm -rf conftest* | |
6347 | CPP=/lib/cpp | |
6348 | fi | |
6349 | rm -f conftest* | |
6350 | fi | |
6351 | rm -f conftest* | |
6352 | fi | |
6353 | rm -f conftest* | |
6354 | ac_cv_prog_CPP="$CPP" | |
6355 | fi | |
6356 | CPP="$ac_cv_prog_CPP" | |
6357 | else | |
6358 | ac_cv_prog_CPP="$CPP" | |
6359 | fi | |
6360 | echo "$ac_t""$CPP" 1>&6 | |
6361 | ||
6362 | ||
6363 | if test $ac_cv_prog_gcc = yes; then | |
6364 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
f6bcfd97 | 6365 | echo "configure:6366: checking whether ${CC-cc} needs -traditional" >&5 |
10f2d63a VZ |
6366 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
6367 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6368 | else | |
6369 | ac_pattern="Autoconf.*'x'" | |
6370 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 6371 | #line 6372 "configure" |
10f2d63a VZ |
6372 | #include "confdefs.h" |
6373 | #include <sgtty.h> | |
6374 | Autoconf TIOCGETP | |
6375 | EOF | |
6376 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6377 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
6378 | rm -rf conftest* | |
6379 | ac_cv_prog_gcc_traditional=yes | |
6380 | else | |
6381 | rm -rf conftest* | |
6382 | ac_cv_prog_gcc_traditional=no | |
6383 | fi | |
6384 | rm -f conftest* | |
6385 | ||
6386 | ||
6387 | if test $ac_cv_prog_gcc_traditional = no; then | |
6388 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 6389 | #line 6390 "configure" |
10f2d63a VZ |
6390 | #include "confdefs.h" |
6391 | #include <termio.h> | |
6392 | Autoconf TCGETA | |
6393 | EOF | |
6394 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6395 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
6396 | rm -rf conftest* | |
6397 | ac_cv_prog_gcc_traditional=yes | |
6398 | fi | |
6399 | rm -f conftest* | |
6400 | ||
6401 | fi | |
6402 | fi | |
6403 | ||
6404 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
6405 | if test $ac_cv_prog_gcc_traditional = yes; then | |
6406 | CC="$CC -traditional" | |
6407 | fi | |
6408 | fi | |
6409 | ||
6410 | ||
6411 | ||
6412 | ac_ext=C | |
6413 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6414 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6415 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6416 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6417 | cross_compiling=$ac_cv_prog_cxx_cross | |
6418 | ||
6419 | ||
6420 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
6421 | do | |
6422 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6423 | set dummy $ac_prog; ac_word=$2 | |
6424 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
f6bcfd97 | 6425 | echo "configure:6426: checking for $ac_word" >&5 |
10f2d63a VZ |
6426 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
6427 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6428 | else | |
6429 | if test -n "$CXX"; then | |
6430 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
6431 | else | |
6432 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6433 | ac_dummy="$PATH" | |
6434 | for ac_dir in $ac_dummy; do | |
6435 | test -z "$ac_dir" && ac_dir=. | |
6436 | if test -f $ac_dir/$ac_word; then | |
6437 | ac_cv_prog_CXX="$ac_prog" | |
6438 | break | |
6439 | fi | |
6440 | done | |
6441 | IFS="$ac_save_ifs" | |
6442 | fi | |
6443 | fi | |
6444 | CXX="$ac_cv_prog_CXX" | |
6445 | if test -n "$CXX"; then | |
6446 | echo "$ac_t""$CXX" 1>&6 | |
6447 | else | |
6448 | echo "$ac_t""no" 1>&6 | |
6449 | fi | |
6450 | ||
6451 | test -n "$CXX" && break | |
6452 | done | |
6453 | test -n "$CXX" || CXX="gcc" | |
6454 | ||
6455 | ||
6456 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
f6bcfd97 | 6457 | echo "configure:6458: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
10f2d63a VZ |
6458 | |
6459 | ac_ext=C | |
6460 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6461 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6462 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6463 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6464 | cross_compiling=$ac_cv_prog_cxx_cross | |
6465 | ||
6466 | cat > conftest.$ac_ext << EOF | |
6467 | ||
f6bcfd97 | 6468 | #line 6469 "configure" |
10f2d63a VZ |
6469 | #include "confdefs.h" |
6470 | ||
6471 | int main(){return(0);} | |
6472 | EOF | |
f6bcfd97 | 6473 | if { (eval echo configure:6474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
6474 | ac_cv_prog_cxx_works=yes |
6475 | # If we can't run a trivial program, we are probably using a cross compiler. | |
6476 | if (./conftest; exit) 2>/dev/null; then | |
6477 | ac_cv_prog_cxx_cross=no | |
6478 | else | |
6479 | ac_cv_prog_cxx_cross=yes | |
6480 | fi | |
6481 | else | |
6482 | echo "configure: failed program was:" >&5 | |
6483 | cat conftest.$ac_ext >&5 | |
6484 | ac_cv_prog_cxx_works=no | |
6485 | fi | |
6486 | rm -fr conftest* | |
6487 | ac_ext=C | |
6488 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6489 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6490 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6491 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6492 | cross_compiling=$ac_cv_prog_cxx_cross | |
6493 | ||
6494 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
6495 | if test $ac_cv_prog_cxx_works = no; then | |
6496 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
6497 | fi | |
6498 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
f6bcfd97 | 6499 | echo "configure:6500: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
10f2d63a VZ |
6500 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
6501 | cross_compiling=$ac_cv_prog_cxx_cross | |
6502 | ||
6503 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
f6bcfd97 | 6504 | echo "configure:6505: checking whether we are using GNU C++" >&5 |
10f2d63a VZ |
6505 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
6506 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6507 | else | |
6508 | cat > conftest.C <<EOF | |
6509 | #ifdef __GNUC__ | |
6510 | yes; | |
6511 | #endif | |
6512 | EOF | |
f6bcfd97 | 6513 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
10f2d63a VZ |
6514 | ac_cv_prog_gxx=yes |
6515 | else | |
6516 | ac_cv_prog_gxx=no | |
6517 | fi | |
6518 | fi | |
6519 | ||
6520 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 | |
6521 | ||
6522 | if test $ac_cv_prog_gxx = yes; then | |
6523 | GXX=yes | |
6524 | else | |
6525 | GXX= | |
6526 | fi | |
6527 | ||
6528 | ac_test_CXXFLAGS="${CXXFLAGS+set}" | |
6529 | ac_save_CXXFLAGS="$CXXFLAGS" | |
6530 | CXXFLAGS= | |
6531 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
f6bcfd97 | 6532 | echo "configure:6533: checking whether ${CXX-g++} accepts -g" >&5 |
10f2d63a VZ |
6533 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
6534 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6535 | else | |
6536 | echo 'void f(){}' > conftest.cc | |
6537 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
6538 | ac_cv_prog_cxx_g=yes | |
6539 | else | |
6540 | ac_cv_prog_cxx_g=no | |
6541 | fi | |
6542 | rm -f conftest* | |
6543 | ||
6544 | fi | |
6545 | ||
6546 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
6547 | if test "$ac_test_CXXFLAGS" = set; then | |
6548 | CXXFLAGS="$ac_save_CXXFLAGS" | |
6549 | elif test $ac_cv_prog_cxx_g = yes; then | |
6550 | if test "$GXX" = yes; then | |
6551 | CXXFLAGS="-g -O2" | |
6552 | else | |
6553 | CXXFLAGS="-g" | |
6554 | fi | |
6555 | else | |
6556 | if test "$GXX" = yes; then | |
6557 | CXXFLAGS="-O2" | |
6558 | else | |
6559 | CXXFLAGS= | |
6560 | fi | |
6561 | fi | |
6562 | ||
6563 | ||
6564 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 | |
f6bcfd97 | 6565 | echo "configure:6566: checking how to run the C++ preprocessor" >&5 |
10f2d63a VZ |
6566 | if test -z "$CXXCPP"; then |
6567 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
6568 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6569 | else | |
6570 | ac_ext=C | |
6571 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6572 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6573 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6574 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6575 | cross_compiling=$ac_cv_prog_cxx_cross | |
6576 | CXXCPP="${CXX-g++} -E" | |
6577 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 6578 | #line 6579 "configure" |
10f2d63a VZ |
6579 | #include "confdefs.h" |
6580 | #include <stdlib.h> | |
6581 | EOF | |
6582 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f6bcfd97 | 6583 | { (eval echo configure:6584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
6584 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6585 | if test -z "$ac_err"; then | |
6586 | : | |
6587 | else | |
6588 | echo "$ac_err" >&5 | |
6589 | echo "configure: failed program was:" >&5 | |
6590 | cat conftest.$ac_ext >&5 | |
6591 | rm -rf conftest* | |
6592 | CXXCPP=/lib/cpp | |
6593 | fi | |
6594 | rm -f conftest* | |
6595 | ac_cv_prog_CXXCPP="$CXXCPP" | |
6596 | ac_ext=C | |
6597 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6598 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6599 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6600 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6601 | cross_compiling=$ac_cv_prog_cxx_cross | |
6602 | fi | |
6603 | fi | |
6604 | CXXCPP="$ac_cv_prog_CXXCPP" | |
6605 | echo "$ac_t""$CXXCPP" 1>&6 | |
6606 | ||
6607 | ||
6608 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` | |
6609 | ||
6610 | ac_ext=c | |
6611 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6612 | ac_cpp='$CPP $CPPFLAGS' | |
6613 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6614 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6615 | cross_compiling=$ac_cv_prog_cc_cross | |
6616 | ||
6617 | ||
6618 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6619 | set dummy ranlib; ac_word=$2 | |
6620 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
f6bcfd97 | 6621 | echo "configure:6622: checking for $ac_word" >&5 |
10f2d63a VZ |
6622 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
6623 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6624 | else | |
6625 | if test -n "$RANLIB"; then | |
6626 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6627 | else | |
6628 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6629 | ac_dummy="$PATH" | |
6630 | for ac_dir in $ac_dummy; do | |
6631 | test -z "$ac_dir" && ac_dir=. | |
6632 | if test -f $ac_dir/$ac_word; then | |
6633 | ac_cv_prog_RANLIB="ranlib" | |
6634 | break | |
6635 | fi | |
6636 | done | |
6637 | IFS="$ac_save_ifs" | |
6638 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
6639 | fi | |
6640 | fi | |
6641 | RANLIB="$ac_cv_prog_RANLIB" | |
6642 | if test -n "$RANLIB"; then | |
6643 | echo "$ac_t""$RANLIB" 1>&6 | |
6644 | else | |
6645 | echo "$ac_t""no" 1>&6 | |
6646 | fi | |
6647 | ||
6648 | ||
6649 | # Extract the first word of "ar", so it can be a program name with args. | |
6650 | set dummy ar; ac_word=$2 | |
6651 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
f6bcfd97 | 6652 | echo "configure:6653: checking for $ac_word" >&5 |
10f2d63a VZ |
6653 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
6654 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6655 | else | |
6656 | if test -n "$AR"; then | |
6657 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6658 | else | |
6659 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6660 | ac_dummy="$PATH" | |
6661 | for ac_dir in $ac_dummy; do | |
6662 | test -z "$ac_dir" && ac_dir=. | |
6663 | if test -f $ac_dir/$ac_word; then | |
6664 | ac_cv_prog_AR="ar" | |
6665 | break | |
6666 | fi | |
6667 | done | |
6668 | IFS="$ac_save_ifs" | |
6669 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
6670 | fi | |
6671 | fi | |
6672 | AR="$ac_cv_prog_AR" | |
6673 | if test -n "$AR"; then | |
6674 | echo "$ac_t""$AR" 1>&6 | |
6675 | else | |
6676 | echo "$ac_t""no" 1>&6 | |
6677 | fi | |
6678 | ||
6679 | ||
6680 | # Find a good install program. We prefer a C program (faster), | |
6681 | # so one script is as good as another. But avoid the broken or | |
6682 | # incompatible versions: | |
6683 | # SysV /etc/install, /usr/sbin/install | |
6684 | # SunOS /usr/etc/install | |
6685 | # IRIX /sbin/install | |
6686 | # AIX /bin/install | |
6687 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
6688 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
6689 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
6690 | # ./install, which can be erroneously created by make from ./install.sh. | |
6691 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
f6bcfd97 | 6692 | echo "configure:6693: checking for a BSD compatible install" >&5 |
10f2d63a VZ |
6693 | if test -z "$INSTALL"; then |
6694 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
6695 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6696 | else | |
6697 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
6698 | for ac_dir in $PATH; do | |
6699 | # Account for people who put trailing slashes in PATH elements. | |
6700 | case "$ac_dir/" in | |
6701 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
6702 | *) | |
6703 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
6704 | # Don't use installbsd from OSF since it installs stuff as root | |
6705 | # by default. | |
6706 | for ac_prog in ginstall scoinst install; do | |
6707 | if test -f $ac_dir/$ac_prog; then | |
6708 | if test $ac_prog = install && | |
6709 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
6710 | # AIX install. It has an incompatible calling convention. | |
6711 | : | |
6712 | else | |
6713 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
6714 | break 2 | |
6715 | fi | |
6716 | fi | |
6717 | done | |
6718 | ;; | |
6719 | esac | |
6720 | done | |
6721 | IFS="$ac_save_IFS" | |
6722 | ||
6723 | fi | |
6724 | if test "${ac_cv_path_install+set}" = set; then | |
6725 | INSTALL="$ac_cv_path_install" | |
6726 | else | |
6727 | # As a last resort, use the slow shell script. We don't cache a | |
6728 | # path for INSTALL within a source directory, because that will | |
6729 | # break other packages using the cache if that directory is | |
6730 | # removed, or if the path is relative. | |
6731 | INSTALL="$ac_install_sh" | |
6732 | fi | |
6733 | fi | |
6734 | echo "$ac_t""$INSTALL" 1>&6 | |
6735 | ||
6736 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
6737 | # It thinks the first close brace ends the variable substitution. | |
6738 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
6739 | ||
6740 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
6741 | ||
6742 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
6743 | ||
6744 | ||
6745 | # Extract the first word of "strip", so it can be a program name with args. | |
6746 | set dummy strip; ac_word=$2 | |
6747 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
f6bcfd97 | 6748 | echo "configure:6749: checking for $ac_word" >&5 |
10f2d63a VZ |
6749 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
6750 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6751 | else | |
6752 | if test -n "$STRIP"; then | |
6753 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6754 | else | |
6755 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6756 | ac_dummy="$PATH" | |
6757 | for ac_dir in $ac_dummy; do | |
6758 | test -z "$ac_dir" && ac_dir=. | |
6759 | if test -f $ac_dir/$ac_word; then | |
6760 | ac_cv_prog_STRIP="strip" | |
6761 | break | |
6762 | fi | |
6763 | done | |
6764 | IFS="$ac_save_ifs" | |
6765 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" | |
6766 | fi | |
6767 | fi | |
6768 | STRIP="$ac_cv_prog_STRIP" | |
6769 | if test -n "$STRIP"; then | |
6770 | echo "$ac_t""$STRIP" 1>&6 | |
6771 | else | |
6772 | echo "$ac_t""no" 1>&6 | |
6773 | fi | |
6774 | ||
6775 | ||
6776 | echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6 | |
f6bcfd97 | 6777 | echo "configure:6778: checking "make for VPATH support"" >&5 |
10f2d63a VZ |
6778 | cat - << EOF > confMake |
6779 | check : file | |
6780 | cp \$? \$@ | |
6781 | cp \$? final_file | |
6782 | EOF | |
6783 | ||
6784 | if test ! -d sub ; then | |
6785 | mkdir sub | |
6786 | fi | |
6787 | echo dummy > sub/file | |
f6bcfd97 | 6788 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
6789 | RESULT=$? |
6790 | rm -f sub/file check final_file confMake | |
6791 | rmdir sub | |
6792 | if test "$RESULT" = 0; then | |
6793 | echo "$ac_t""yes" 1>&6 | |
6794 | else | |
6795 | echo "$ac_t""no" 1>&6 | |
6796 | { echo "configure: error: You need a make-utility that is able to use the variable | |
6797 | VPATH correctly. | |
6798 | If your version of make does not support VPATH correctly" 1>&2; exit 1; } | |
6799 | fi | |
6800 | ||
6801 | for ac_prog in 'bison -y' byacc | |
6802 | do | |
6803 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6804 | set dummy $ac_prog; ac_word=$2 | |
6805 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
f6bcfd97 | 6806 | echo "configure:6807: checking for $ac_word" >&5 |
10f2d63a VZ |
6807 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
6808 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6809 | else | |
6810 | if test -n "$YACC"; then | |
6811 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
6812 | else | |
6813 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6814 | ac_dummy="$PATH" | |
6815 | for ac_dir in $ac_dummy; do | |
6816 | test -z "$ac_dir" && ac_dir=. | |
6817 | if test -f $ac_dir/$ac_word; then | |
6818 | ac_cv_prog_YACC="$ac_prog" | |
6819 | break | |
6820 | fi | |
6821 | done | |
6822 | IFS="$ac_save_ifs" | |
6823 | fi | |
6824 | fi | |
6825 | YACC="$ac_cv_prog_YACC" | |
6826 | if test -n "$YACC"; then | |
6827 | echo "$ac_t""$YACC" 1>&6 | |
6828 | else | |
6829 | echo "$ac_t""no" 1>&6 | |
6830 | fi | |
6831 | ||
6832 | test -n "$YACC" && break | |
6833 | done | |
6834 | test -n "$YACC" || YACC="yacc" | |
6835 | ||
6836 | ||
6837 | # Extract the first word of "flex", so it can be a program name with args. | |
6838 | set dummy flex; ac_word=$2 | |
6839 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
f6bcfd97 | 6840 | echo "configure:6841: checking for $ac_word" >&5 |
10f2d63a VZ |
6841 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
6842 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6843 | else | |
6844 | if test -n "$LEX"; then | |
6845 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
6846 | else | |
6847 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6848 | ac_dummy="$PATH" | |
6849 | for ac_dir in $ac_dummy; do | |
6850 | test -z "$ac_dir" && ac_dir=. | |
6851 | if test -f $ac_dir/$ac_word; then | |
6852 | ac_cv_prog_LEX="flex" | |
6853 | break | |
6854 | fi | |
6855 | done | |
6856 | IFS="$ac_save_ifs" | |
6857 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
6858 | fi | |
6859 | fi | |
6860 | LEX="$ac_cv_prog_LEX" | |
6861 | if test -n "$LEX"; then | |
6862 | echo "$ac_t""$LEX" 1>&6 | |
6863 | else | |
6864 | echo "$ac_t""no" 1>&6 | |
6865 | fi | |
6866 | ||
6867 | if test -z "$LEXLIB" | |
6868 | then | |
6869 | case "$LEX" in | |
6870 | flex*) ac_lib=fl ;; | |
6871 | *) ac_lib=l ;; | |
6872 | esac | |
6873 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
f6bcfd97 | 6874 | echo "configure:6875: checking for yywrap in -l$ac_lib" >&5 |
10f2d63a VZ |
6875 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
6876 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
6877 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6878 | else | |
6879 | ac_save_LIBS="$LIBS" | |
6880 | LIBS="-l$ac_lib $LIBS" | |
6881 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 6882 | #line 6883 "configure" |
10f2d63a VZ |
6883 | #include "confdefs.h" |
6884 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6885 | /* We use char because int might match the return type of a gcc2 | |
6886 | builtin and then its argument prototype would still apply. */ | |
6887 | char yywrap(); | |
6888 | ||
6889 | int main() { | |
6890 | yywrap() | |
6891 | ; return 0; } | |
6892 | EOF | |
f6bcfd97 | 6893 | if { (eval echo configure:6894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
6894 | rm -rf conftest* |
6895 | eval "ac_cv_lib_$ac_lib_var=yes" | |
6896 | else | |
6897 | echo "configure: failed program was:" >&5 | |
6898 | cat conftest.$ac_ext >&5 | |
6899 | rm -rf conftest* | |
6900 | eval "ac_cv_lib_$ac_lib_var=no" | |
6901 | fi | |
6902 | rm -f conftest* | |
6903 | LIBS="$ac_save_LIBS" | |
6904 | ||
6905 | fi | |
6906 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
6907 | echo "$ac_t""yes" 1>&6 | |
6908 | LEXLIB="-l$ac_lib" | |
6909 | else | |
6910 | echo "$ac_t""no" 1>&6 | |
6911 | fi | |
6912 | ||
6913 | fi | |
6914 | ||
6915 | ||
6916 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
f6bcfd97 | 6917 | echo "configure:6918: checking whether ln -s works" >&5 |
10f2d63a VZ |
6918 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
6919 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6920 | else | |
6921 | rm -f conftestdata | |
6922 | if ln -s X conftestdata 2>/dev/null | |
6923 | then | |
6924 | rm -f conftestdata | |
6925 | ac_cv_prog_LN_S="ln -s" | |
6926 | else | |
6927 | ac_cv_prog_LN_S=ln | |
6928 | fi | |
6929 | fi | |
6930 | LN_S="$ac_cv_prog_LN_S" | |
6931 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
6932 | echo "$ac_t""yes" 1>&6 | |
6933 | else | |
6934 | echo "$ac_t""no" 1>&6 | |
6935 | fi | |
6936 | ||
6937 | ||
6938 | ||
6939 | SEARCH_INCLUDE="\ | |
6940 | /usr/local/include \ | |
6941 | \ | |
6942 | /usr/Motif-1.2/include \ | |
6943 | /usr/Motif-2.1/include \ | |
6944 | \ | |
6945 | /usr/include/Motif1.2 \ | |
6946 | /opt/xpm/include/X11 \ | |
6947 | /opt/GBxpm/include/ \ | |
6948 | /opt/GBxpm/X11/include/ \ | |
6949 | \ | |
6950 | /usr/Motif1.2/include \ | |
6951 | /usr/dt/include \ | |
afc31813 VZ |
6952 | /usr/openwin/include \ |
6953 | \ | |
10f2d63a VZ |
6954 | /usr/include/Xm \ |
6955 | \ | |
6956 | /usr/X11R6/include \ | |
afc31813 | 6957 | /usr/X11R6.4/include \ |
10f2d63a VZ |
6958 | /usr/X11R5/include \ |
6959 | /usr/X11R4/include \ | |
6960 | \ | |
10f2d63a VZ |
6961 | /usr/include/X11R6 \ |
6962 | /usr/include/X11R5 \ | |
6963 | /usr/include/X11R4 \ | |
6964 | \ | |
6965 | /usr/local/X11R6/include \ | |
6966 | /usr/local/X11R5/include \ | |
6967 | /usr/local/X11R4/include \ | |
6968 | \ | |
6969 | /usr/local/include/X11R6 \ | |
6970 | /usr/local/include/X11R5 \ | |
6971 | /usr/local/include/X11R4 \ | |
6972 | \ | |
6973 | /usr/X11/include \ | |
6974 | /usr/include/X11 \ | |
6975 | /usr/local/X11/include \ | |
6976 | /usr/local/include/X11 \ | |
6977 | \ | |
6978 | /usr/X386/include \ | |
6979 | /usr/x386/include \ | |
6980 | /usr/XFree86/include/X11 \ | |
6981 | \ | |
cf27ef00 | 6982 | X:/XFree86/include \ |
ec14dd32 VZ |
6983 | X:/XFree86/include/X11 \ |
6984 | \ | |
10f2d63a VZ |
6985 | /usr/include/gtk \ |
6986 | /usr/local/include/gtk \ | |
6987 | /usr/include/glib \ | |
6988 | /usr/local/include/glib \ | |
6989 | \ | |
6990 | /usr/include/qt \ | |
6991 | /usr/local/include/qt \ | |
6992 | \ | |
6993 | /usr/include/windows \ | |
6994 | /usr/include/wine \ | |
6995 | /usr/local/include/wine \ | |
6996 | \ | |
6997 | /usr/unsupported/include \ | |
6998 | /usr/athena/include \ | |
6999 | /usr/local/x11r5/include \ | |
7000 | /usr/lpp/Xamples/include \ | |
7001 | \ | |
10f2d63a | 7002 | /usr/openwin/share/include \ |
928b5c08 VZ |
7003 | \ |
7004 | /usr/include" | |
10f2d63a VZ |
7005 | |
7006 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
7007 | ||
7008 | ||
7009 | cat > confcache <<\EOF | |
7010 | # This file is a shell script that caches the results of configure | |
7011 | # tests run on this system so they can be shared between configure | |
7012 | # scripts and configure runs. It is not useful on other systems. | |
7013 | # If it contains results you don't want to keep, you may remove or edit it. | |
7014 | # | |
7015 | # By default, configure uses ./config.cache as the cache file, | |
7016 | # creating it if it does not exist already. You can give configure | |
7017 | # the --cache-file=FILE option to use a different cache file; that is | |
7018 | # what configure does when it calls configure scripts in | |
7019 | # subdirectories, so they share the cache. | |
7020 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
7021 | # config.status only pays attention to the cache file if you give it the | |
7022 | # --recheck option to rerun configure. | |
7023 | # | |
7024 | EOF | |
7025 | # The following way of writing the cache mishandles newlines in values, | |
7026 | # but we know of no workaround that is simple, portable, and efficient. | |
7027 | # So, don't put newlines in cache variables' values. | |
7028 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
7029 | # and sets the high bit in the cache file unless we assign to the vars. | |
7030 | (set) 2>&1 | | |
7031 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
7032 | *ac_space=\ *) | |
7033 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
7034 | # turns \\\\ into \\, and sed turns \\ into \). | |
7035 | sed -n \ | |
7036 | -e "s/'/'\\\\''/g" \ | |
7037 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
7038 | ;; | |
7039 | *) | |
7040 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7041 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
7042 | ;; | |
7043 | esac >> confcache | |
7044 | if cmp -s $cache_file confcache; then | |
7045 | : | |
7046 | else | |
7047 | if test -w $cache_file; then | |
7048 | echo "updating cache $cache_file" | |
7049 | cat confcache > $cache_file | |
7050 | else | |
7051 | echo "not updating unwritable cache $cache_file" | |
7052 | fi | |
7053 | fi | |
7054 | rm -f confcache | |
7055 | ||
7056 | ||
7057 | ||
dad6c0ea VZ |
7058 | AFMINSTALL= |
7059 | ||
10f2d63a VZ |
7060 | if test "$wxUSE_GUI" = "yes"; then |
7061 | ||
dad6c0ea VZ |
7062 | USE_GUI=1 |
7063 | ||
10f2d63a VZ |
7064 | TOOLKIT= |
7065 | TOOLKIT_INCLUDE= | |
7066 | ||
7067 | GUIOBJS= | |
7068 | COMMONOBJS= | |
7069 | GENERICOBJS= | |
7070 | ||
7071 | GUI_TK_LIBRARY= | |
7072 | GUI_TK_LINK= | |
7073 | ||
7074 | WXGTK12= | |
f6bcfd97 | 7075 | WXGTK127= |
13111b2a | 7076 | WXGTK13= |
10f2d63a VZ |
7077 | |
7078 | WXWINE= | |
7079 | ||
10f2d63a VZ |
7080 | if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then |
7081 | if test "$cross_compiling" = "yes" ; then | |
e59890c3 | 7082 | echo "configure: warning: skipping windows.h check for cross-compilation" 1>&2 |
10f2d63a VZ |
7083 | else |
7084 | echo $ac_n "checking for Windows headers""... $ac_c" 1>&6 | |
f6bcfd97 | 7085 | echo "configure:7086: checking for Windows headers" >&5 |
10f2d63a VZ |
7086 | |
7087 | ac_find_includes= | |
7088 | for ac_dir in $SEARCH_INCLUDE; | |
7089 | do | |
7090 | if test -f "$ac_dir/windows.h"; then | |
7091 | ac_find_includes=$ac_dir | |
7092 | break | |
7093 | fi | |
7094 | done | |
7095 | ||
7096 | if test "$ac_find_includes" != "" ; then | |
7097 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
7098 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
7099 | else | |
7100 | echo "$ac_t""no" 1>&6 | |
7101 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
7102 | fi | |
7103 | fi | |
7104 | ||
7105 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw" | |
7106 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32" | |
7107 | ||
f6bcfd97 BP |
7108 | if test "$wxUSE_ODBC" = "yes" ; then |
7109 | LIBS="$LIBS -lodbc32 -lole32 -loleaut32" | |
7110 | fi | |
7111 | ||
10f2d63a VZ |
7112 | if test "$wxUSE_MINGW" = 1; then |
7113 | LDFLAGS="$LDFLAGS -mwindows" | |
7114 | fi | |
7115 | ||
7116 | TOOLKIT=MSW | |
7117 | ||
7118 | GUIOBJS="\$(MSW_GUIOBJS)" | |
7119 | GUIHEADERS="\$(MSW_HEADERS)" | |
7120 | COMMONOBJS="\$(MSW_COMMONOBJS)" | |
7121 | GENERICOBJS="\$(MSW_GENERICOBJS)" | |
7122 | UNIXOBJS= | |
7123 | GUIDIST=MSW_DIST | |
32832908 VZ |
7124 | |
7125 | RCINCSWITCH="--include-dir" | |
7126 | RCDEFSWITCH="--define" | |
7127 | RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\"" | |
7128 | RCINPUTSWITCH="-i" | |
7129 | RCOUTPUTSWITCH="-o" | |
7130 | RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__" | |
7131 | ||
7132 | RESPROGRAM="\$(RES_PROGRAM)" | |
7133 | ||
10f2d63a VZ |
7134 | fi |
7135 | ||
7136 | if test "$wxUSE_GTK" = 1; then | |
7137 | ||
7138 | if test x$gtk_config_exec_prefix != x ; then | |
7139 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
7140 | if test x${GTK_CONFIG+set} != xset ; then | |
7141 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
7142 | fi | |
7143 | fi | |
7144 | if test x$gtk_config_prefix != x ; then | |
7145 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
7146 | if test x${GTK_CONFIG+set} != xset ; then | |
7147 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
7148 | fi | |
7149 | fi | |
7150 | ||
7151 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
7152 | set dummy gtk-config; ac_word=$2 | |
7153 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
f6bcfd97 BP |
7154 | echo "configure:7155: checking for $ac_word" >&5 |
7155 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then | |
7156 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7157 | else | |
7158 | case "$GTK_CONFIG" in | |
7159 | /*) | |
7160 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
7161 | ;; | |
7162 | ?:/*) | |
7163 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
7164 | ;; | |
7165 | *) | |
7166 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
7167 | ac_dummy="$PATH" | |
7168 | for ac_dir in $ac_dummy; do | |
7169 | test -z "$ac_dir" && ac_dir=. | |
7170 | if test -f $ac_dir/$ac_word; then | |
7171 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
7172 | break | |
7173 | fi | |
7174 | done | |
7175 | IFS="$ac_save_ifs" | |
7176 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
7177 | ;; | |
7178 | esac | |
7179 | fi | |
7180 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
7181 | if test -n "$GTK_CONFIG"; then | |
7182 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
7183 | else | |
7184 | echo "$ac_t""no" 1>&6 | |
7185 | fi | |
7186 | ||
7187 | min_gtk_version=1.2.7 | |
7188 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 | |
7189 | echo "configure:7190: checking for GTK - version >= $min_gtk_version" >&5 | |
7190 | no_gtk="" | |
7191 | if test "$GTK_CONFIG" != "no" ; then | |
7192 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
7193 | GTK_LIBS=`$GTK_CONFIG --libs gthread` | |
7194 | ac_save_CFLAGS="$CFLAGS" | |
7195 | ac_save_LIBS="$LIBS" | |
7196 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
7197 | LIBS="$LIBS $GTK_LIBS" | |
7198 | if test "$cross_compiling" = yes; then | |
7199 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
7200 | else | |
7201 | cat > conftest.$ac_ext <<EOF | |
7202 | #line 7203 "configure" | |
7203 | #include "confdefs.h" | |
7204 | ||
7205 | #include <gtk/gtk.h> | |
7206 | #include <gtk/gtkfeatures.h> | |
7207 | #include <stdio.h> | |
7208 | #include <stdlib.h> | |
7209 | ||
7210 | int | |
7211 | main () | |
7212 | { | |
7213 | int major, minor, micro; | |
7214 | ||
7215 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
7216 | printf("%s, bad version string\n", "$min_gtk_version"); | |
7217 | exit(1); | |
7218 | } | |
7219 | ||
7220 | if ((GTK_MAJOR_VERSION != gtk_major_version) || | |
7221 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
7222 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
7223 | printf("Headers vs. library version mismatch!\n"); | |
7224 | exit(1); | |
7225 | } | |
7226 | ||
7227 | if (gtk_minor_version == 1) return FALSE; | |
7228 | ||
7229 | return !((gtk_major_version > major) || | |
7230 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
7231 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
7232 | } | |
7233 | ||
7234 | EOF | |
7235 | if { (eval echo configure:7236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
7236 | then | |
7237 | : | |
7238 | else | |
7239 | echo "configure: failed program was:" >&5 | |
7240 | cat conftest.$ac_ext >&5 | |
7241 | rm -fr conftest* | |
7242 | no_gtk=yes | |
7243 | fi | |
7244 | rm -fr conftest* | |
7245 | fi | |
7246 | ||
7247 | CFLAGS="$ac_save_CFLAGS" | |
7248 | LIBS="$ac_save_LIBS" | |
7249 | else | |
7250 | no_gtk=yes | |
7251 | fi | |
7252 | if test "x$no_gtk" = x ; then | |
7253 | echo "$ac_t""yes" 1>&6 | |
7254 | WXGTK127=1 | |
7255 | else | |
7256 | echo "$ac_t""no" 1>&6 | |
7257 | GTK_CFLAGS="" | |
7258 | GTK_LIBS="" | |
7259 | : | |
7260 | fi | |
7261 | ||
7262 | ||
7263 | ||
7264 | ||
7265 | if test x$gtk_config_exec_prefix != x ; then | |
7266 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
7267 | if test x${GTK_CONFIG+set} != xset ; then | |
7268 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
7269 | fi | |
7270 | fi | |
7271 | if test x$gtk_config_prefix != x ; then | |
7272 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
7273 | if test x${GTK_CONFIG+set} != xset ; then | |
7274 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
7275 | fi | |
7276 | fi | |
7277 | ||
7278 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
7279 | set dummy gtk-config; ac_word=$2 | |
7280 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
7281 | echo "configure:7282: checking for $ac_word" >&5 | |
10f2d63a VZ |
7282 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
7283 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7284 | else | |
7285 | case "$GTK_CONFIG" in | |
7286 | /*) | |
7287 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
7288 | ;; | |
7289 | ?:/*) | |
7290 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
7291 | ;; | |
7292 | *) | |
7293 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
7294 | ac_dummy="$PATH" | |
7295 | for ac_dir in $ac_dummy; do | |
7296 | test -z "$ac_dir" && ac_dir=. | |
7297 | if test -f $ac_dir/$ac_word; then | |
7298 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
7299 | break | |
7300 | fi | |
7301 | done | |
7302 | IFS="$ac_save_ifs" | |
7303 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
7304 | ;; | |
7305 | esac | |
7306 | fi | |
7307 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
7308 | if test -n "$GTK_CONFIG"; then | |
7309 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
7310 | else | |
7311 | echo "$ac_t""no" 1>&6 | |
7312 | fi | |
7313 | ||
04165bec | 7314 | min_gtk_version=1.2.3 |
10f2d63a | 7315 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
f6bcfd97 | 7316 | echo "configure:7317: checking for GTK - version >= $min_gtk_version" >&5 |
10f2d63a VZ |
7317 | no_gtk="" |
7318 | if test "$GTK_CONFIG" != "no" ; then | |
7319 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
2224580a | 7320 | GTK_LIBS=`$GTK_CONFIG --libs gthread` |
10f2d63a VZ |
7321 | ac_save_CFLAGS="$CFLAGS" |
7322 | ac_save_LIBS="$LIBS" | |
7323 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
7324 | LIBS="$LIBS $GTK_LIBS" | |
7325 | if test "$cross_compiling" = yes; then | |
7326 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
7327 | else | |
7328 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 7329 | #line 7330 "configure" |
10f2d63a VZ |
7330 | #include "confdefs.h" |
7331 | ||
7332 | #include <gtk/gtk.h> | |
f49f2b0c | 7333 | #include <gtk/gtkfeatures.h> |
10f2d63a | 7334 | #include <stdio.h> |
32832908 | 7335 | #include <stdlib.h> |
10f2d63a VZ |
7336 | |
7337 | int | |
7338 | main () | |
7339 | { | |
7340 | int major, minor, micro; | |
7341 | ||
7342 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
7343 | printf("%s, bad version string\n", "$min_gtk_version"); | |
7344 | exit(1); | |
7345 | } | |
7346 | ||
f49f2b0c RR |
7347 | if ((GTK_MAJOR_VERSION != gtk_major_version) || |
7348 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
7349 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
7350 | printf("Headers vs. library version mismatch!\n"); | |
7351 | exit(1); | |
7352 | } | |
7353 | ||
10f2d63a VZ |
7354 | if (gtk_minor_version == 1) return FALSE; |
7355 | ||
7356 | return !((gtk_major_version > major) || | |
7357 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
7358 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
7359 | } | |
7360 | ||
7361 | EOF | |
f6bcfd97 | 7362 | if { (eval echo configure:7363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
7363 | then |
7364 | : | |
7365 | else | |
7366 | echo "configure: failed program was:" >&5 | |
7367 | cat conftest.$ac_ext >&5 | |
7368 | rm -fr conftest* | |
7369 | no_gtk=yes | |
7370 | fi | |
7371 | rm -fr conftest* | |
7372 | fi | |
7373 | ||
7374 | CFLAGS="$ac_save_CFLAGS" | |
7375 | LIBS="$ac_save_LIBS" | |
7376 | else | |
7377 | no_gtk=yes | |
7378 | fi | |
7379 | if test "x$no_gtk" = x ; then | |
7380 | echo "$ac_t""yes" 1>&6 | |
7381 | WXGTK12=1 | |
7382 | else | |
7383 | echo "$ac_t""no" 1>&6 | |
7384 | GTK_CFLAGS="" | |
7385 | GTK_LIBS="" | |
7e99ad86 | 7386 | : |
10f2d63a VZ |
7387 | fi |
7388 | ||
7389 | ||
7390 | ||
7391 | ||
7e99ad86 VZ |
7392 | if test "$WXGTK12" != 1; then |
7393 | { echo "configure: error: | |
7394 | Please check that gtk-config is in path, the directory | |
7395 | where GTK+ libraries are installed (returned by | |
7396 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
7397 | equivalent variable and GTK+ is version 1.2.3 or above. | |
7398 | " 1>&2; exit 1; } | |
7399 | fi | |
7400 | ||
7401 | ||
10f2d63a | 7402 | TOOLKIT_INCLUDE="$GTK_CFLAGS" |
2224580a VZ |
7403 | |
7404 | ||
7405 | GUI_TK_LIBRARY="$GTK_LIBS" | |
7406 | ||
10f2d63a VZ |
7407 | TOOLKIT=GTK |
7408 | ||
dad6c0ea VZ |
7409 | AFMINSTALL=afminstall |
7410 | ||
10f2d63a VZ |
7411 | GUIOBJS="\$(GTK_GUIOBJS)" |
7412 | GUIHEADERS="\$(GTK_HEADERS)" | |
7413 | COMMONOBJS="\$(GTK_COMMONOBJS)" | |
7414 | GENERICOBJS="\$(GTK_GENERICOBJS)" | |
7415 | GUIDEPS="\$(GTK_GUIDEPS)" | |
7416 | COMMONDEPS="\$(GTK_COMMONDEPS)" | |
7417 | GENERICDEPS="\$(GTK_GENERICDEPS)" | |
7418 | UNIXOBJS="\$(UNIX_OBJS)" | |
d9d8273d | 7419 | UNIXDEPS="\$(UNIX_DEPS)" |
10f2d63a | 7420 | GUIDIST=GTK_DIST |
7ec2881a | 7421 | |
2224580a | 7422 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
f6bcfd97 | 7423 | echo "configure:7424: checking for gdk_im_open in -lgdk" >&5 |
7ec2881a RR |
7424 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
7425 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7426 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7427 | else | |
7428 | ac_save_LIBS="$LIBS" | |
7429 | LIBS="-lgdk $LIBS" | |
7430 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 7431 | #line 7432 "configure" |
7ec2881a RR |
7432 | #include "confdefs.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 gdk_im_open(); | |
7437 | ||
7438 | int main() { | |
7439 | gdk_im_open() | |
7440 | ; return 0; } | |
7441 | EOF | |
f6bcfd97 | 7442 | if { (eval echo configure:7443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7ec2881a RR |
7443 | rm -rf conftest* |
7444 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7445 | else | |
7446 | echo "configure: failed program was:" >&5 | |
7447 | cat conftest.$ac_ext >&5 | |
7448 | rm -rf conftest* | |
7449 | eval "ac_cv_lib_$ac_lib_var=no" | |
7450 | fi | |
7451 | rm -f conftest* | |
7452 | LIBS="$ac_save_LIBS" | |
7453 | ||
7454 | fi | |
7455 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7456 | echo "$ac_t""yes" 1>&6 | |
7457 | cat >> confdefs.h <<\EOF | |
7458 | #define HAVE_XIM 1 | |
7459 | EOF | |
7460 | ||
7461 | else | |
7462 | echo "$ac_t""no" 1>&6 | |
7463 | fi | |
7464 | ||
10f2d63a VZ |
7465 | fi |
7466 | ||
7467 | if test "$wxUSE_WINE" = 1; then | |
7468 | echo $ac_n "checking for WINE includes""... $ac_c" 1>&6 | |
f6bcfd97 | 7469 | echo "configure:7470: checking for WINE includes" >&5 |
10f2d63a VZ |
7470 | |
7471 | ac_find_includes= | |
7472 | for ac_dir in $SEARCH_INCLUDE; | |
7473 | do | |
7474 | if test -f "$ac_dir/windows.h"; then | |
7475 | ac_find_includes=$ac_dir | |
7476 | break | |
7477 | fi | |
7478 | done | |
7479 | ||
7480 | if test "$ac_find_includes" != "" ; then | |
7481 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
7482 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
7483 | else | |
7484 | echo "$ac_t""no" 1>&6 | |
7485 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
7486 | fi | |
7487 | ||
7488 | XPM_LINK="" | |
7489 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
f6bcfd97 | 7490 | echo "configure:7491: checking for Xpm library" >&5 |
10f2d63a VZ |
7491 | |
7492 | ac_find_libraries= | |
7493 | for ac_dir in $SEARCH_LIB; | |
7494 | do | |
7495 | for ac_extension in a so sl; do | |
7496 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
7497 | ac_find_libraries=$ac_dir | |
7498 | break 2 | |
7499 | fi | |
7500 | done | |
7501 | done | |
7502 | ||
7503 | if test "$ac_find_libraries" != "" ; then | |
7504 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
7505 | XPM_LINK="-lXpm" | |
7506 | cat >> confdefs.h <<\EOF | |
7507 | #define wxHAVE_LIB_XPM 1 | |
7508 | EOF | |
7509 | ||
7510 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
7511 | else | |
7512 | echo "$ac_t""no" 1>&6 | |
7513 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
7514 | fi | |
7515 | ||
7516 | MESA_LINK="" | |
7517 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 | |
f6bcfd97 | 7518 | echo "configure:7519: checking for Mesa library" >&5 |
10f2d63a VZ |
7519 | |
7520 | ac_find_libraries= | |
7521 | for ac_dir in $SEARCH_LIB; | |
7522 | do | |
7523 | for ac_extension in a so sl; do | |
7524 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
7525 | ac_find_libraries=$ac_dir | |
7526 | break 2 | |
7527 | fi | |
7528 | done | |
7529 | done | |
7530 | ||
7531 | if test "$ac_find_libraries" != "" ; then | |
7532 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
7533 | MESA_LINK="-lMesaGL" | |
7534 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
7535 | else | |
7536 | { echo "configure: error: no" 1>&2; exit 1; } | |
7537 | fi | |
7538 | ||
8916026b | 7539 | GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" |
10f2d63a VZ |
7540 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" |
7541 | WXWINE=1 | |
7542 | TOOLKIT=MSW | |
7543 | ||
7544 | GUIHEADERS="\$(MSW_HEADERS)" | |
7545 | GUIOBJS="\$(MSW_GUIOBJS)" | |
7546 | COMMONOBJS="\$(MSW_COMMONOBJS)" | |
7547 | GENERICOBJS="\$(MSW_GENERICOBJS)" | |
7548 | GUIDEPS="\$(MSW_GUIDEPS)" | |
7549 | COMMONDEPS="\$(MSW_COMMONDEPS)" | |
7550 | GENERICDEPS="\$(MSW_GENERICDEPS)" | |
7551 | UNIXOBJS="\$(UNIX_OBJS)" | |
d9d8273d | 7552 | UNIXDEPS="\$(UNIX_DEPS)" |
10f2d63a VZ |
7553 | GUIDIST=MSW_DIST |
7554 | fi | |
7555 | ||
7556 | if test "$wxUSE_MOTIF" = 1; then | |
ab9b9eab VZ |
7557 | # If we find X, set shell vars x_includes and x_libraries to the |
7558 | # paths, otherwise set no_x=yes. | |
7559 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
7560 | # --without-x overrides everything else, but does not touch the cache. | |
7561 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
f6bcfd97 | 7562 | echo "configure:7563: checking for X" >&5 |
ab9b9eab VZ |
7563 | |
7564 | # Check whether --with-x or --without-x was given. | |
7565 | if test "${with_x+set}" = set; then | |
7566 | withval="$with_x" | |
7567 | : | |
7568 | fi | |
ba337fe7 | 7569 | |
ab9b9eab VZ |
7570 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
7571 | if test "x$with_x" = xno; then | |
7572 | # The user explicitly disabled X. | |
7573 | have_x=disabled | |
7574 | else | |
7575 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
7576 | # Both variables are already set. | |
7577 | have_x=yes | |
7578 | else | |
7579 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then | |
7580 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7581 | else | |
7582 | # One or both of the vars are not set, and there is no cached value. | |
7583 | ac_x_includes=NO ac_x_libraries=NO | |
7584 | rm -fr conftestdir | |
7585 | if mkdir conftestdir; then | |
7586 | cd conftestdir | |
7587 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
7588 | cat > Imakefile <<'EOF' | |
7589 | acfindx: | |
7590 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
7591 | EOF | |
7592 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
7593 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
7594 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
7595 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
10f2d63a | 7596 | for ac_extension in a so sl; do |
ab9b9eab VZ |
7597 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
7598 | test -f $ac_im_libdir/libX11.$ac_extension; then | |
7599 | ac_im_usrlibdir=$ac_im_libdir; break | |
10f2d63a VZ |
7600 | fi |
7601 | done | |
ab9b9eab VZ |
7602 | # Screen out bogus values from the imake configuration. They are |
7603 | # bogus both because they are the default anyway, and because | |
7604 | # using them would break gcc on systems where it needs fixed includes. | |
7605 | case "$ac_im_incroot" in | |
7606 | /usr/include) ;; | |
7607 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; | |
7608 | esac | |
7609 | case "$ac_im_usrlibdir" in | |
7610 | /usr/lib | /lib) ;; | |
7611 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; | |
7612 | esac | |
ba337fe7 | 7613 | fi |
ab9b9eab VZ |
7614 | cd .. |
7615 | rm -fr conftestdir | |
7616 | fi | |
10f2d63a | 7617 | |
ab9b9eab VZ |
7618 | if test "$ac_x_includes" = NO; then |
7619 | # Guess where to find include files, by looking for this one X11 .h file. | |
7620 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
ba337fe7 | 7621 | |
ab9b9eab VZ |
7622 | # First, try using that file with no special directory specified. |
7623 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 7624 | #line 7625 "configure" |
ab9b9eab VZ |
7625 | #include "confdefs.h" |
7626 | #include <$x_direct_test_include> | |
7627 | EOF | |
7628 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f6bcfd97 | 7629 | { (eval echo configure:7630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
ab9b9eab VZ |
7630 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7631 | if test -z "$ac_err"; then | |
7632 | rm -rf conftest* | |
7633 | # We can compile using X headers with no special include directory. | |
7634 | ac_x_includes= | |
7635 | else | |
7636 | echo "$ac_err" >&5 | |
7637 | echo "configure: failed program was:" >&5 | |
7638 | cat conftest.$ac_ext >&5 | |
7639 | rm -rf conftest* | |
7640 | # Look for the header file in a standard set of common directories. | |
7641 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
7642 | for ac_dir in \ | |
7643 | /usr/X11/include \ | |
7644 | /usr/X11R6/include \ | |
7645 | /usr/X11R5/include \ | |
7646 | /usr/X11R4/include \ | |
7647 | \ | |
7648 | /usr/include/X11 \ | |
7649 | /usr/include/X11R6 \ | |
7650 | /usr/include/X11R5 \ | |
7651 | /usr/include/X11R4 \ | |
7652 | \ | |
7653 | /usr/local/X11/include \ | |
7654 | /usr/local/X11R6/include \ | |
7655 | /usr/local/X11R5/include \ | |
7656 | /usr/local/X11R4/include \ | |
7657 | \ | |
7658 | /usr/local/include/X11 \ | |
7659 | /usr/local/include/X11R6 \ | |
7660 | /usr/local/include/X11R5 \ | |
7661 | /usr/local/include/X11R4 \ | |
7662 | \ | |
7663 | /usr/X386/include \ | |
7664 | /usr/x386/include \ | |
7665 | /usr/XFree86/include/X11 \ | |
7666 | \ | |
7667 | /usr/include \ | |
7668 | /usr/local/include \ | |
7669 | /usr/unsupported/include \ | |
7670 | /usr/athena/include \ | |
7671 | /usr/local/x11r5/include \ | |
7672 | /usr/lpp/Xamples/include \ | |
7673 | \ | |
7674 | /usr/openwin/include \ | |
7675 | /usr/openwin/share/include \ | |
7676 | ; \ | |
10f2d63a | 7677 | do |
ab9b9eab VZ |
7678 | if test -r "$ac_dir/$x_direct_test_include"; then |
7679 | ac_x_includes=$ac_dir | |
10f2d63a VZ |
7680 | break |
7681 | fi | |
7682 | done | |
ab9b9eab VZ |
7683 | fi |
7684 | rm -f conftest* | |
7685 | fi # $ac_x_includes = NO | |
10f2d63a | 7686 | |
ab9b9eab VZ |
7687 | if test "$ac_x_libraries" = NO; then |
7688 | # Check for the libraries. | |
10f2d63a | 7689 | |
ab9b9eab VZ |
7690 | test -z "$x_direct_test_library" && x_direct_test_library=Xt |
7691 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
10f2d63a | 7692 | |
ab9b9eab VZ |
7693 | # See if we find them without any special options. |
7694 | # Don't add to $LIBS permanently. | |
7695 | ac_save_LIBS="$LIBS" | |
7696 | LIBS="-l$x_direct_test_library $LIBS" | |
7697 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 7698 | #line 7699 "configure" |
ab9b9eab | 7699 | #include "confdefs.h" |
10f2d63a | 7700 | |
ab9b9eab VZ |
7701 | int main() { |
7702 | ${x_direct_test_function}() | |
7703 | ; return 0; } | |
7704 | EOF | |
f6bcfd97 | 7705 | if { (eval echo configure:7706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7706 | rm -rf conftest* |
7707 | LIBS="$ac_save_LIBS" | |
7708 | # We can link X programs with no special library path. | |
7709 | ac_x_libraries= | |
7710 | else | |
7711 | echo "configure: failed program was:" >&5 | |
7712 | cat conftest.$ac_ext >&5 | |
7713 | rm -rf conftest* | |
7714 | LIBS="$ac_save_LIBS" | |
7715 | # First see if replacing the include by lib works. | |
7716 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
7717 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
7718 | /usr/X11/lib \ | |
7719 | /usr/X11R6/lib \ | |
7720 | /usr/X11R5/lib \ | |
7721 | /usr/X11R4/lib \ | |
7722 | \ | |
7723 | /usr/lib/X11 \ | |
7724 | /usr/lib/X11R6 \ | |
7725 | /usr/lib/X11R5 \ | |
7726 | /usr/lib/X11R4 \ | |
7727 | \ | |
7728 | /usr/local/X11/lib \ | |
7729 | /usr/local/X11R6/lib \ | |
7730 | /usr/local/X11R5/lib \ | |
7731 | /usr/local/X11R4/lib \ | |
7732 | \ | |
7733 | /usr/local/lib/X11 \ | |
7734 | /usr/local/lib/X11R6 \ | |
7735 | /usr/local/lib/X11R5 \ | |
7736 | /usr/local/lib/X11R4 \ | |
7737 | \ | |
7738 | /usr/X386/lib \ | |
7739 | /usr/x386/lib \ | |
7740 | /usr/XFree86/lib/X11 \ | |
7741 | \ | |
7742 | /usr/lib \ | |
7743 | /usr/local/lib \ | |
7744 | /usr/unsupported/lib \ | |
7745 | /usr/athena/lib \ | |
7746 | /usr/local/x11r5/lib \ | |
7747 | /usr/lpp/Xamples/lib \ | |
7748 | /lib/usr/lib/X11 \ | |
7749 | \ | |
7750 | /usr/openwin/lib \ | |
7751 | /usr/openwin/share/lib \ | |
7752 | ; \ | |
7753 | do | |
7754 | for ac_extension in a so sl; do | |
7755 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then | |
7756 | ac_x_libraries=$ac_dir | |
7757 | break 2 | |
10f2d63a | 7758 | fi |
10f2d63a | 7759 | done |
ab9b9eab VZ |
7760 | done |
7761 | fi | |
7762 | rm -f conftest* | |
7763 | fi # $ac_x_libraries = NO | |
10f2d63a | 7764 | |
ab9b9eab VZ |
7765 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
7766 | # Didn't find X anywhere. Cache the known absence of X. | |
7767 | ac_cv_have_x="have_x=no" | |
7768 | else | |
7769 | # Record where we found X for the cache. | |
7770 | ac_cv_have_x="have_x=yes \ | |
7771 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
7772 | fi | |
7773 | fi | |
10f2d63a | 7774 | fi |
ab9b9eab VZ |
7775 | eval "$ac_cv_have_x" |
7776 | fi # $with_x != no | |
10f2d63a | 7777 | |
ab9b9eab VZ |
7778 | if test "$have_x" != yes; then |
7779 | echo "$ac_t""$have_x" 1>&6 | |
7780 | no_x=yes | |
7781 | else | |
7782 | # If each of the values was on the command line, it overrides each guess. | |
7783 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
7784 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
7785 | # Update the cache value to reflect the command line values. | |
7786 | ac_cv_have_x="have_x=yes \ | |
7787 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
7788 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 | |
7789 | fi | |
10f2d63a | 7790 | |
ab9b9eab VZ |
7791 | if test "$no_x" = yes; then |
7792 | # Not all programs may use this symbol, but it does not hurt to define it. | |
7793 | cat >> confdefs.h <<\EOF | |
7794 | #define X_DISPLAY_MISSING 1 | |
7795 | EOF | |
10f2d63a | 7796 | |
ab9b9eab VZ |
7797 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
7798 | else | |
7799 | if test -n "$x_includes"; then | |
7800 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
10f2d63a VZ |
7801 | fi |
7802 | ||
ab9b9eab VZ |
7803 | # It would also be nice to do this for all -L options, not just this one. |
7804 | if test -n "$x_libraries"; then | |
7805 | X_LIBS="$X_LIBS -L$x_libraries" | |
7806 | # For Solaris; some versions of Sun CC require a space after -R and | |
7807 | # others require no space. Words are not sufficient . . . . | |
7808 | case "`(uname -sr) 2>/dev/null`" in | |
7809 | "SunOS 5"*) | |
7810 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | |
f6bcfd97 | 7811 | echo "configure:7812: checking whether -R must be followed by a space" >&5 |
ab9b9eab VZ |
7812 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
7813 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 7814 | #line 7815 "configure" |
ab9b9eab | 7815 | #include "confdefs.h" |
10f2d63a | 7816 | |
ab9b9eab | 7817 | int main() { |
788deba1 | 7818 | |
ab9b9eab VZ |
7819 | ; return 0; } |
7820 | EOF | |
f6bcfd97 | 7821 | if { (eval echo configure:7822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7822 | rm -rf conftest* |
7823 | ac_R_nospace=yes | |
7824 | else | |
7825 | echo "configure: failed program was:" >&5 | |
7826 | cat conftest.$ac_ext >&5 | |
7827 | rm -rf conftest* | |
7828 | ac_R_nospace=no | |
7829 | fi | |
7830 | rm -f conftest* | |
7831 | if test $ac_R_nospace = yes; then | |
7832 | echo "$ac_t""no" 1>&6 | |
7833 | X_LIBS="$X_LIBS -R$x_libraries" | |
7834 | else | |
7835 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
7836 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 7837 | #line 7838 "configure" |
ab9b9eab | 7838 | #include "confdefs.h" |
788deba1 | 7839 | |
ab9b9eab VZ |
7840 | int main() { |
7841 | ||
7842 | ; return 0; } | |
7843 | EOF | |
f6bcfd97 | 7844 | if { (eval echo configure:7845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7845 | rm -rf conftest* |
7846 | ac_R_space=yes | |
7847 | else | |
7848 | echo "configure: failed program was:" >&5 | |
7849 | cat conftest.$ac_ext >&5 | |
7850 | rm -rf conftest* | |
7851 | ac_R_space=no | |
7852 | fi | |
7853 | rm -f conftest* | |
7854 | if test $ac_R_space = yes; then | |
7855 | echo "$ac_t""yes" 1>&6 | |
7856 | X_LIBS="$X_LIBS -R $x_libraries" | |
7857 | else | |
7858 | echo "$ac_t""neither works" 1>&6 | |
7859 | fi | |
7860 | fi | |
7861 | LIBS="$ac_xsave_LIBS" | |
7862 | esac | |
7863 | fi | |
7864 | ||
7865 | # Check for system-dependent libraries X programs must link with. | |
7866 | # Do this before checking for the system-independent R6 libraries | |
7867 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
7868 | ||
7869 | if test "$ISC" = yes; then | |
7870 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
7871 | else | |
7872 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | |
7873 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
7874 | # the Alpha needs dnet_stub (dnet does not exist). | |
7875 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
f6bcfd97 | 7876 | echo "configure:7877: checking for dnet_ntoa in -ldnet" >&5 |
ab9b9eab VZ |
7877 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
7878 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7879 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7880 | else | |
7881 | ac_save_LIBS="$LIBS" | |
7882 | LIBS="-ldnet $LIBS" | |
7883 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 7884 | #line 7885 "configure" |
ab9b9eab VZ |
7885 | #include "confdefs.h" |
7886 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7887 | /* We use char because int might match the return type of a gcc2 | |
7888 | builtin and then its argument prototype would still apply. */ | |
7889 | char dnet_ntoa(); | |
7890 | ||
7891 | int main() { | |
7892 | dnet_ntoa() | |
7893 | ; return 0; } | |
7894 | EOF | |
f6bcfd97 | 7895 | if { (eval echo configure:7896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7896 | rm -rf conftest* |
7897 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7898 | else | |
7899 | echo "configure: failed program was:" >&5 | |
7900 | cat conftest.$ac_ext >&5 | |
7901 | rm -rf conftest* | |
7902 | eval "ac_cv_lib_$ac_lib_var=no" | |
7903 | fi | |
7904 | rm -f conftest* | |
7905 | LIBS="$ac_save_LIBS" | |
7906 | ||
7907 | fi | |
7908 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7909 | echo "$ac_t""yes" 1>&6 | |
7910 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
7911 | else | |
7912 | echo "$ac_t""no" 1>&6 | |
7913 | fi | |
7914 | ||
7915 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
7916 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | |
f6bcfd97 | 7917 | echo "configure:7918: checking for dnet_ntoa in -ldnet_stub" >&5 |
ab9b9eab VZ |
7918 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
7919 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7920 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7921 | else | |
7922 | ac_save_LIBS="$LIBS" | |
7923 | LIBS="-ldnet_stub $LIBS" | |
7924 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 7925 | #line 7926 "configure" |
ab9b9eab VZ |
7926 | #include "confdefs.h" |
7927 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7928 | /* We use char because int might match the return type of a gcc2 | |
7929 | builtin and then its argument prototype would still apply. */ | |
7930 | char dnet_ntoa(); | |
7931 | ||
7932 | int main() { | |
7933 | dnet_ntoa() | |
7934 | ; return 0; } | |
7935 | EOF | |
f6bcfd97 | 7936 | if { (eval echo configure:7937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7937 | rm -rf conftest* |
7938 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7939 | else | |
7940 | echo "configure: failed program was:" >&5 | |
7941 | cat conftest.$ac_ext >&5 | |
7942 | rm -rf conftest* | |
7943 | eval "ac_cv_lib_$ac_lib_var=no" | |
7944 | fi | |
7945 | rm -f conftest* | |
7946 | LIBS="$ac_save_LIBS" | |
7947 | ||
7948 | fi | |
7949 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7950 | echo "$ac_t""yes" 1>&6 | |
7951 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
7952 | else | |
7953 | echo "$ac_t""no" 1>&6 | |
7954 | fi | |
7955 | ||
7956 | fi | |
7957 | ||
7958 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
7959 | # to get the SysV transport functions. | |
7960 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | |
7961 | # needs -lnsl. | |
7962 | # The nsl library prevents programs from opening the X display | |
7963 | # on Irix 5.2, according to dickey@clark.net. | |
7964 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
f6bcfd97 | 7965 | echo "configure:7966: checking for gethostbyname" >&5 |
ab9b9eab VZ |
7966 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
7967 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7968 | else | |
7969 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 7970 | #line 7971 "configure" |
ab9b9eab VZ |
7971 | #include "confdefs.h" |
7972 | /* System header to define __stub macros and hopefully few prototypes, | |
7973 | which can conflict with char gethostbyname(); below. */ | |
7974 | #include <assert.h> | |
7975 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7976 | /* We use char because int might match the return type of a gcc2 | |
7977 | builtin and then its argument prototype would still apply. */ | |
7978 | char gethostbyname(); | |
7979 | ||
7980 | int main() { | |
7981 | ||
7982 | /* The GNU C library defines this for functions which it implements | |
7983 | to always fail with ENOSYS. Some functions are actually named | |
7984 | something starting with __ and the normal name is an alias. */ | |
7985 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
7986 | choke me | |
7987 | #else | |
e8482f24 | 7988 | gethostbyname(); |
ab9b9eab VZ |
7989 | #endif |
7990 | ||
7991 | ; return 0; } | |
7992 | EOF | |
f6bcfd97 | 7993 | if { (eval echo configure:7994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7994 | rm -rf conftest* |
7995 | eval "ac_cv_func_gethostbyname=yes" | |
7996 | else | |
7997 | echo "configure: failed program was:" >&5 | |
7998 | cat conftest.$ac_ext >&5 | |
7999 | rm -rf conftest* | |
8000 | eval "ac_cv_func_gethostbyname=no" | |
8001 | fi | |
8002 | rm -f conftest* | |
8003 | fi | |
8004 | ||
8005 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
8006 | echo "$ac_t""yes" 1>&6 | |
8007 | : | |
8008 | else | |
8009 | echo "$ac_t""no" 1>&6 | |
8010 | fi | |
8011 | ||
8012 | if test $ac_cv_func_gethostbyname = no; then | |
8013 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
f6bcfd97 | 8014 | echo "configure:8015: checking for gethostbyname in -lnsl" >&5 |
ab9b9eab VZ |
8015 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
8016 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8017 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8018 | else | |
8019 | ac_save_LIBS="$LIBS" | |
8020 | LIBS="-lnsl $LIBS" | |
8021 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 8022 | #line 8023 "configure" |
ab9b9eab VZ |
8023 | #include "confdefs.h" |
8024 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8025 | /* We use char because int might match the return type of a gcc2 | |
8026 | builtin and then its argument prototype would still apply. */ | |
8027 | char gethostbyname(); | |
8028 | ||
8029 | int main() { | |
8030 | gethostbyname() | |
8031 | ; return 0; } | |
8032 | EOF | |
f6bcfd97 | 8033 | if { (eval echo configure:8034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8034 | rm -rf conftest* |
8035 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8036 | else | |
8037 | echo "configure: failed program was:" >&5 | |
8038 | cat conftest.$ac_ext >&5 | |
8039 | rm -rf conftest* | |
8040 | eval "ac_cv_lib_$ac_lib_var=no" | |
8041 | fi | |
8042 | rm -f conftest* | |
8043 | LIBS="$ac_save_LIBS" | |
8044 | ||
8045 | fi | |
8046 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8047 | echo "$ac_t""yes" 1>&6 | |
8048 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
8049 | else | |
8050 | echo "$ac_t""no" 1>&6 | |
8051 | fi | |
8052 | ||
8053 | fi | |
8054 | ||
8055 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
8056 | # socket/setsockopt and other routines are undefined under SCO ODT | |
8057 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
8058 | # on later versions), says simon@lia.di.epfl.ch: it contains | |
8059 | # gethostby* variants that don't use the nameserver (or something). | |
8060 | # -lsocket must be given before -lnsl if both are needed. | |
8061 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
8062 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
f6bcfd97 | 8063 | echo "configure:8064: checking for connect" >&5 |
ab9b9eab VZ |
8064 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
8065 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8066 | else | |
8067 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 8068 | #line 8069 "configure" |
ab9b9eab VZ |
8069 | #include "confdefs.h" |
8070 | /* System header to define __stub macros and hopefully few prototypes, | |
8071 | which can conflict with char connect(); below. */ | |
8072 | #include <assert.h> | |
8073 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8074 | /* We use char because int might match the return type of a gcc2 | |
8075 | builtin and then its argument prototype would still apply. */ | |
8076 | char connect(); | |
8077 | ||
8078 | int main() { | |
8079 | ||
8080 | /* The GNU C library defines this for functions which it implements | |
8081 | to always fail with ENOSYS. Some functions are actually named | |
8082 | something starting with __ and the normal name is an alias. */ | |
8083 | #if defined (__stub_connect) || defined (__stub___connect) | |
8084 | choke me | |
8085 | #else | |
e8482f24 | 8086 | connect(); |
ab9b9eab VZ |
8087 | #endif |
8088 | ||
8089 | ; return 0; } | |
8090 | EOF | |
f6bcfd97 | 8091 | if { (eval echo configure:8092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8092 | rm -rf conftest* |
8093 | eval "ac_cv_func_connect=yes" | |
8094 | else | |
8095 | echo "configure: failed program was:" >&5 | |
8096 | cat conftest.$ac_ext >&5 | |
8097 | rm -rf conftest* | |
8098 | eval "ac_cv_func_connect=no" | |
8099 | fi | |
8100 | rm -f conftest* | |
8101 | fi | |
8102 | ||
8103 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
8104 | echo "$ac_t""yes" 1>&6 | |
8105 | : | |
8106 | else | |
8107 | echo "$ac_t""no" 1>&6 | |
8108 | fi | |
8109 | ||
8110 | if test $ac_cv_func_connect = no; then | |
8111 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 | |
f6bcfd97 | 8112 | echo "configure:8113: checking for connect in -lsocket" >&5 |
ab9b9eab VZ |
8113 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
8114 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8115 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8116 | else | |
8117 | ac_save_LIBS="$LIBS" | |
8118 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
8119 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 8120 | #line 8121 "configure" |
ab9b9eab VZ |
8121 | #include "confdefs.h" |
8122 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8123 | /* We use char because int might match the return type of a gcc2 | |
8124 | builtin and then its argument prototype would still apply. */ | |
8125 | char connect(); | |
8126 | ||
8127 | int main() { | |
8128 | connect() | |
8129 | ; return 0; } | |
8130 | EOF | |
f6bcfd97 | 8131 | if { (eval echo configure:8132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8132 | rm -rf conftest* |
8133 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8134 | else | |
8135 | echo "configure: failed program was:" >&5 | |
8136 | cat conftest.$ac_ext >&5 | |
8137 | rm -rf conftest* | |
8138 | eval "ac_cv_lib_$ac_lib_var=no" | |
8139 | fi | |
8140 | rm -f conftest* | |
8141 | LIBS="$ac_save_LIBS" | |
8142 | ||
8143 | fi | |
8144 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8145 | echo "$ac_t""yes" 1>&6 | |
8146 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
8147 | else | |
8148 | echo "$ac_t""no" 1>&6 | |
8149 | fi | |
8150 | ||
8151 | fi | |
8152 | ||
8153 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. | |
8154 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
f6bcfd97 | 8155 | echo "configure:8156: checking for remove" >&5 |
ab9b9eab VZ |
8156 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
8157 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8158 | else | |
8159 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 8160 | #line 8161 "configure" |
ab9b9eab VZ |
8161 | #include "confdefs.h" |
8162 | /* System header to define __stub macros and hopefully few prototypes, | |
8163 | which can conflict with char remove(); below. */ | |
8164 | #include <assert.h> | |
8165 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8166 | /* We use char because int might match the return type of a gcc2 | |
8167 | builtin and then its argument prototype would still apply. */ | |
8168 | char remove(); | |
8169 | ||
8170 | int main() { | |
8171 | ||
8172 | /* The GNU C library defines this for functions which it implements | |
8173 | to always fail with ENOSYS. Some functions are actually named | |
8174 | something starting with __ and the normal name is an alias. */ | |
8175 | #if defined (__stub_remove) || defined (__stub___remove) | |
8176 | choke me | |
8177 | #else | |
e8482f24 | 8178 | remove(); |
ab9b9eab VZ |
8179 | #endif |
8180 | ||
8181 | ; return 0; } | |
8182 | EOF | |
f6bcfd97 | 8183 | if { (eval echo configure:8184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8184 | rm -rf conftest* |
8185 | eval "ac_cv_func_remove=yes" | |
8186 | else | |
8187 | echo "configure: failed program was:" >&5 | |
8188 | cat conftest.$ac_ext >&5 | |
8189 | rm -rf conftest* | |
8190 | eval "ac_cv_func_remove=no" | |
8191 | fi | |
8192 | rm -f conftest* | |
8193 | fi | |
8194 | ||
8195 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
8196 | echo "$ac_t""yes" 1>&6 | |
8197 | : | |
8198 | else | |
8199 | echo "$ac_t""no" 1>&6 | |
8200 | fi | |
8201 | ||
8202 | if test $ac_cv_func_remove = no; then | |
8203 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | |
f6bcfd97 | 8204 | echo "configure:8205: checking for remove in -lposix" >&5 |
ab9b9eab VZ |
8205 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
8206 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8207 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8208 | else | |
8209 | ac_save_LIBS="$LIBS" | |
8210 | LIBS="-lposix $LIBS" | |
8211 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 8212 | #line 8213 "configure" |
ab9b9eab VZ |
8213 | #include "confdefs.h" |
8214 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8215 | /* We use char because int might match the return type of a gcc2 | |
8216 | builtin and then its argument prototype would still apply. */ | |
8217 | char remove(); | |
8218 | ||
8219 | int main() { | |
8220 | remove() | |
8221 | ; return 0; } | |
8222 | EOF | |
f6bcfd97 | 8223 | if { (eval echo configure:8224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8224 | rm -rf conftest* |
8225 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8226 | else | |
8227 | echo "configure: failed program was:" >&5 | |
8228 | cat conftest.$ac_ext >&5 | |
8229 | rm -rf conftest* | |
8230 | eval "ac_cv_lib_$ac_lib_var=no" | |
8231 | fi | |
8232 | rm -f conftest* | |
8233 | LIBS="$ac_save_LIBS" | |
8234 | ||
8235 | fi | |
8236 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8237 | echo "$ac_t""yes" 1>&6 | |
8238 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
8239 | else | |
8240 | echo "$ac_t""no" 1>&6 | |
8241 | fi | |
8242 | ||
8243 | fi | |
8244 | ||
8245 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
8246 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 | |
f6bcfd97 | 8247 | echo "configure:8248: checking for shmat" >&5 |
ab9b9eab VZ |
8248 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
8249 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8250 | else | |
8251 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 8252 | #line 8253 "configure" |
ab9b9eab VZ |
8253 | #include "confdefs.h" |
8254 | /* System header to define __stub macros and hopefully few prototypes, | |
8255 | which can conflict with char shmat(); below. */ | |
8256 | #include <assert.h> | |
8257 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8258 | /* We use char because int might match the return type of a gcc2 | |
8259 | builtin and then its argument prototype would still apply. */ | |
8260 | char shmat(); | |
8261 | ||
8262 | int main() { | |
8263 | ||
8264 | /* The GNU C library defines this for functions which it implements | |
8265 | to always fail with ENOSYS. Some functions are actually named | |
8266 | something starting with __ and the normal name is an alias. */ | |
8267 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
8268 | choke me | |
8269 | #else | |
e8482f24 | 8270 | shmat(); |
ab9b9eab VZ |
8271 | #endif |
8272 | ||
8273 | ; return 0; } | |
8274 | EOF | |
f6bcfd97 | 8275 | if { (eval echo configure:8276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8276 | rm -rf conftest* |
8277 | eval "ac_cv_func_shmat=yes" | |
8278 | else | |
8279 | echo "configure: failed program was:" >&5 | |
8280 | cat conftest.$ac_ext >&5 | |
8281 | rm -rf conftest* | |
8282 | eval "ac_cv_func_shmat=no" | |
8283 | fi | |
8284 | rm -f conftest* | |
8285 | fi | |
8286 | ||
8287 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
8288 | echo "$ac_t""yes" 1>&6 | |
8289 | : | |
8290 | else | |
8291 | echo "$ac_t""no" 1>&6 | |
8292 | fi | |
8293 | ||
8294 | if test $ac_cv_func_shmat = no; then | |
8295 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | |
f6bcfd97 | 8296 | echo "configure:8297: checking for shmat in -lipc" >&5 |
ab9b9eab VZ |
8297 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
8298 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8299 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8300 | else | |
8301 | ac_save_LIBS="$LIBS" | |
8302 | LIBS="-lipc $LIBS" | |
8303 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 8304 | #line 8305 "configure" |
ab9b9eab VZ |
8305 | #include "confdefs.h" |
8306 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8307 | /* We use char because int might match the return type of a gcc2 | |
8308 | builtin and then its argument prototype would still apply. */ | |
8309 | char shmat(); | |
8310 | ||
8311 | int main() { | |
8312 | shmat() | |
8313 | ; return 0; } | |
8314 | EOF | |
f6bcfd97 | 8315 | if { (eval echo configure:8316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8316 | rm -rf conftest* |
8317 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8318 | else | |
8319 | echo "configure: failed program was:" >&5 | |
8320 | cat conftest.$ac_ext >&5 | |
8321 | rm -rf conftest* | |
8322 | eval "ac_cv_lib_$ac_lib_var=no" | |
8323 | fi | |
8324 | rm -f conftest* | |
8325 | LIBS="$ac_save_LIBS" | |
8326 | ||
8327 | fi | |
8328 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8329 | echo "$ac_t""yes" 1>&6 | |
8330 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
8331 | else | |
8332 | echo "$ac_t""no" 1>&6 | |
8333 | fi | |
8334 | ||
8335 | fi | |
8336 | fi | |
8337 | ||
8338 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
8339 | ac_save_LDFLAGS="$LDFLAGS" | |
8340 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
8341 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
8342 | # check for ICE first), but we must link in the order -lSM -lICE or | |
8343 | # we get undefined symbols. So assume we have SM if we have ICE. | |
8344 | # These have to be linked with before -lX11, unlike the other | |
8345 | # libraries we check for below, so use a different variable. | |
8346 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | |
8347 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
f6bcfd97 | 8348 | echo "configure:8349: checking for IceConnectionNumber in -lICE" >&5 |
ab9b9eab VZ |
8349 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
8350 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8351 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8352 | else | |
8353 | ac_save_LIBS="$LIBS" | |
8354 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
8355 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 8356 | #line 8357 "configure" |
ab9b9eab VZ |
8357 | #include "confdefs.h" |
8358 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8359 | /* We use char because int might match the return type of a gcc2 | |
8360 | builtin and then its argument prototype would still apply. */ | |
8361 | char IceConnectionNumber(); | |
8362 | ||
8363 | int main() { | |
8364 | IceConnectionNumber() | |
8365 | ; return 0; } | |
8366 | EOF | |
f6bcfd97 | 8367 | if { (eval echo configure:8368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8368 | rm -rf conftest* |
8369 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8370 | else | |
8371 | echo "configure: failed program was:" >&5 | |
8372 | cat conftest.$ac_ext >&5 | |
8373 | rm -rf conftest* | |
8374 | eval "ac_cv_lib_$ac_lib_var=no" | |
8375 | fi | |
8376 | rm -f conftest* | |
8377 | LIBS="$ac_save_LIBS" | |
8378 | ||
8379 | fi | |
8380 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8381 | echo "$ac_t""yes" 1>&6 | |
8382 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
8383 | else | |
8384 | echo "$ac_t""no" 1>&6 | |
8385 | fi | |
8386 | ||
8387 | LDFLAGS="$ac_save_LDFLAGS" | |
8388 | ||
8389 | fi | |
8390 | ||
8391 | ||
8392 | if test "$no_x" = "yes"; then | |
8393 | { echo "configure: error: X11 not found" 1>&2; exit 1; } | |
8394 | fi | |
8395 | ||
8396 | GUI_TK_LIBRARY="$X_LIBS" | |
8397 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
8398 | ||
dad6c0ea VZ |
8399 | AFMINSTALL=afminstall |
8400 | ||
ab9b9eab | 8401 | |
cd6d6d5b VZ |
8402 | COMPILED_X_PROGRAM=0 |
8403 | ||
ab9b9eab | 8404 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 |
f6bcfd97 | 8405 | echo "configure:8406: checking for Motif/Lesstif headers" >&5 |
ab9b9eab VZ |
8406 | |
8407 | ac_find_includes= | |
8408 | for ac_dir in $SEARCH_INCLUDE; | |
8409 | do | |
8410 | if test -f "$ac_dir/Xm/Xm.h"; then | |
8411 | ac_find_includes=$ac_dir | |
8412 | break | |
8413 | fi | |
8414 | done | |
8415 | ||
8416 | if test "$ac_find_includes" != "" ; then | |
8417 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
8418 | else | |
cd6d6d5b | 8419 | cat > conftest.$ac_ext <<EOF |
f6bcfd97 | 8420 | #line 8421 "configure" |
cd6d6d5b VZ |
8421 | #include "confdefs.h" |
8422 | ||
8423 | #include <Xm/Xm.h> | |
8424 | ||
8425 | int main() { | |
8426 | ||
8427 | int version; | |
8428 | ||
8429 | version = xmUseVersion; | |
8430 | ||
8431 | ; return 0; } | |
8432 | EOF | |
f6bcfd97 | 8433 | if { (eval echo configure:8434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
cd6d6d5b VZ |
8434 | rm -rf conftest* |
8435 | ||
8436 | echo "$ac_t""found in default search path" 1>&6 | |
8437 | COMPILED_X_PROGRAM=1 | |
8438 | ||
8439 | else | |
8440 | echo "configure: failed program was:" >&5 | |
8441 | cat conftest.$ac_ext >&5 | |
8442 | rm -rf conftest* | |
8443 | ||
8444 | echo "$ac_t""no" 1>&6 | |
8445 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
8446 | ||
8447 | ||
8448 | fi | |
8449 | rm -f conftest* | |
ab9b9eab VZ |
8450 | fi |
8451 | ||
cd6d6d5b VZ |
8452 | if test "$COMPILED_X_PROGRAM" = 0; then |
8453 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
f6bcfd97 | 8454 | echo "configure:8455: checking for Motif/Lesstif library" >&5 |
cd6d6d5b | 8455 | |
ab9b9eab VZ |
8456 | ac_find_libraries= |
8457 | for ac_dir in $SEARCH_LIB; | |
8458 | do | |
8459 | for ac_extension in a so sl; do | |
8460 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
8461 | ac_find_libraries=$ac_dir | |
8462 | break 2 | |
8463 | fi | |
8464 | done | |
8465 | done | |
8466 | ||
cd6d6d5b VZ |
8467 | if test "$ac_find_libraries" != "" ; then |
8468 | ||
ab9b9eab VZ |
8469 | ac_path_to_include=$ac_find_includes |
8470 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
8471 | result=$? | |
8472 | if test $result = 0; then | |
8473 | ac_path_to_include="" | |
8474 | else | |
8475 | ac_path_to_include="-I$ac_find_includes" | |
8476 | fi | |
8477 | ||
cd6d6d5b | 8478 | |
ab9b9eab VZ |
8479 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
8480 | result=$? | |
8481 | if test $result = 0; then | |
8482 | ac_path_to_link="" | |
8483 | else | |
8484 | ac_path_to_link="-L$ac_find_libraries" | |
8485 | fi | |
8486 | ||
8487 | ||
cd6d6d5b VZ |
8488 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" |
8489 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include" | |
8490 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
8491 | else | |
8492 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 8493 | #line 8494 "configure" |
cd6d6d5b | 8494 | #include "confdefs.h" |
ab9b9eab | 8495 | |
cd6d6d5b VZ |
8496 | #include <Xm/Xm.h> |
8497 | ||
8498 | int main() { | |
ab9b9eab | 8499 | |
cd6d6d5b | 8500 | int version; |
ab9b9eab | 8501 | |
cd6d6d5b VZ |
8502 | version = xmUseVersion; |
8503 | ||
8504 | ; return 0; } | |
8505 | EOF | |
f6bcfd97 | 8506 | if { (eval echo configure:8507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
cd6d6d5b VZ |
8507 | rm -rf conftest* |
8508 | ||
8509 | echo "$ac_t""found in default search path" 1>&6 | |
8510 | COMPILED_X_PROGRAM=1 | |
8511 | ||
8512 | else | |
8513 | echo "configure: failed program was:" >&5 | |
8514 | cat conftest.$ac_ext >&5 | |
8515 | rm -rf conftest* | |
8516 | ||
8517 | echo "$ac_t""no" 1>&6 | |
8518 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
8519 | ||
8520 | ||
8521 | fi | |
8522 | rm -f conftest* | |
8523 | fi | |
ab9b9eab VZ |
8524 | fi |
8525 | ||
cd6d6d5b | 8526 | |
ab9b9eab VZ |
8527 | XPM_LINK="" |
8528 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
f6bcfd97 | 8529 | echo "configure:8530: checking for Xpm library" >&5 |
ab9b9eab VZ |
8530 | |
8531 | ac_find_libraries= | |
8532 | for ac_dir in $SEARCH_LIB; | |
8533 | do | |
8534 | for ac_extension in a so sl; do | |
8535 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
8536 | ac_find_libraries=$ac_dir | |
8537 | break 2 | |
8538 | fi | |
8539 | done | |
8540 | done | |
8541 | ||
8542 | if test "$ac_find_libraries" != "" ; then | |
8543 | ||
8544 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
8545 | result=$? | |
8546 | if test $result = 0; then | |
8547 | ac_path_to_link="" | |
8548 | else | |
8549 | ac_path_to_link="-L$ac_find_libraries" | |
8550 | fi | |
8551 | ||
8552 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" | |
8553 | XPM_LINK="-lXpm " | |
8554 | cat >> confdefs.h <<\EOF | |
8555 | #define wxHAVE_LIB_XPM 1 | |
8556 | EOF | |
8557 | ||
8558 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
8559 | else | |
cd6d6d5b | 8560 | cat > conftest.$ac_ext <<EOF |
f6bcfd97 | 8561 | #line 8562 "configure" |
cd6d6d5b VZ |
8562 | #include "confdefs.h" |
8563 | ||
8564 | #include <X11/xpm.h> | |
8565 | ||
8566 | int main() { | |
8567 | ||
8568 | int version; | |
8569 | ||
8570 | version = XpmLibraryVersion(); | |
8571 | ||
8572 | ; return 0; } | |
8573 | EOF | |
f6bcfd97 | 8574 | if { (eval echo configure:8575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
cd6d6d5b VZ |
8575 | rm -rf conftest* |
8576 | ||
f6bcfd97 BP |
8577 | XPM_LINK="-lXpm " |
8578 | cat >> confdefs.h <<\EOF | |
3ace2e6d SN |
8579 | #define wxHAVE_LIB_XPM 1 |
8580 | EOF | |
8581 | ||
8582 | echo "$ac_t""found in default search path" 1>&6 | |
cd6d6d5b VZ |
8583 | COMPILED_X_PROGRAM=0 |
8584 | ||
8585 | else | |
8586 | echo "configure: failed program was:" >&5 | |
8587 | cat conftest.$ac_ext >&5 | |
8588 | rm -rf conftest* | |
8589 | ||
8590 | echo "$ac_t""no" 1>&6 | |
8591 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
8592 | ||
8593 | ||
8594 | fi | |
8595 | rm -f conftest* | |
ab9b9eab VZ |
8596 | fi |
8597 | ||
8916026b | 8598 | GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11" |
ab9b9eab VZ |
8599 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" |
8600 | TOOLKIT=MOTIF | |
8601 | ||
8602 | GUIHEADERS="\$(MOTIF_HEADERS)" | |
8603 | GUIOBJS="\$(MOTIF_GUIOBJS)" | |
8604 | COMMONOBJS="\$(MOTIF_COMMONOBJS)" | |
788deba1 VZ |
8605 | GENERICOBJS="\$(MOTIF_GENERICOBJS)" |
8606 | GUIDEPS="\$(MOTIF_GUIDEPS)" | |
8607 | COMMONDEPS="\$(MOTIF_COMMONDEPS)" | |
10f2d63a VZ |
8608 | GENERICDEPS="\$(MOTIF_GENERICDEPS)" |
8609 | UNIXOBJS="\$(UNIX_OBJS)" | |
d9d8273d | 8610 | UNIXDEPS="\$(UNIX_DEPS)" |
10f2d63a VZ |
8611 | GUIDIST=MOTIF_DIST |
8612 | fi | |
8613 | ||
e07802fc VZ |
8614 | if test "$wxUSE_PM" = 1; then |
8615 | TOOLKIT=PM | |
8616 | ||
8617 | GUIOBJS="\$(PM_GUIOBJS)" | |
8618 | GUIHEADERS="\$(PM_HEADERS)" | |
8619 | COMMONOBJS="\$(PM_COMMONOBJS)" | |
8620 | GENERICOBJS="\$(PM_GENERICOBJS)" | |
8621 | GUIDEPS="\$(PM_GUIDEPS)" | |
8622 | COMMONDEPS="\$(PM_COMMONDEPS)" | |
8623 | GENERICDEPS="\$(PM_GENERICDEPS)" | |
8624 | UNIXOBJS= | |
8625 | UNIXDEPS= | |
8626 | GUIDIST=GTK_DIST | |
8627 | fi | |
8628 | ||
8629 | if test "$TOOLKIT" != "PM" ; then | |
ec14dd32 | 8630 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` |
e07802fc VZ |
8631 | else |
8632 | TOOLKIT_DIR="os2" | |
8633 | fi | |
10f2d63a | 8634 | |
f6bcfd97 BP |
8635 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then |
8636 | TOOLKIT_NAME="${TOOLKIT_DIR}d" | |
8637 | else | |
8638 | TOOLKIT_NAME="${TOOLKIT_DIR}" | |
8639 | fi | |
8640 | ||
2224580a | 8641 | TOOLKIT_DEF="-D__WX${TOOLKIT}__" |
10f2d63a | 8642 | |
f6bcfd97 | 8643 | WX_LIBRARY="wx_${TOOLKIT_NAME}" |
10f2d63a | 8644 | |
bdad4e7e | 8645 | ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(OGLOBJS)" |
3fcdd07b | 8646 | |
b089607b | 8647 | if test "$TOOLKIT" != "MSW"; then |
cc977e5f RR |
8648 | if test "$wxUSE_ODBC" = "yes" ; then |
8649 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
8650 | fi | |
3fcdd07b VZ |
8651 | fi |
8652 | ||
d9d8273d | 8653 | if test "$wxUSE_LIBJPEG" = "yes" ; then |
2224580a | 8654 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" |
d9d8273d RR |
8655 | fi |
8656 | if test "$wxUSE_LIBTIFF" = "yes" ; then | |
8657 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
8658 | fi | |
8659 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
8660 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
8661 | fi | |
8662 | if test "$wxUSE_ZLIB" = "yes" ; then | |
8663 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
8664 | fi | |
bdad4e7e | 8665 | ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS) \$(OGLDEPS)" |
2224580a VZ |
8666 | |
8667 | PORT_FILES="src/\$(TOOLKITDIR)/files.lst" | |
8668 | RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst" | |
8669 | RPM_SPEC="wx\$(TOOLKIT).spec" | |
8670 | ||
8671 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
8672 | DISTDIR="wx\$(TOOLKIT)" | |
10f2d63a | 8673 | else |
dad6c0ea VZ |
8674 | USE_GUI=0 |
8675 | ||
f6bcfd97 BP |
8676 | TOOLKIT_DIR="base" |
8677 | ||
8678 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
8679 | TOOLKIT_NAME="${TOOLKIT_DIR}d" | |
8680 | else | |
8681 | TOOLKIT_NAME="${TOOLKIT_DIR}" | |
8682 | fi | |
8683 | ||
07eb77a6 RL |
8684 | TOOLKIT_DEF="-D__WXBASE__" |
8685 | ||
2224580a VZ |
8686 | ALL_OBJECTS="\$(BASE_OBJS) \${BASE_UNIX_OBJS}" |
8687 | ALL_DEPFILES="\${BASE_DEPS} \${BASE_UNIX_DEPS}" | |
10f2d63a | 8688 | |
a20b6d3a VZ |
8689 | if test "$wxUSE_ZLIB" = "yes" ; then |
8690 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
8691 | fi | |
8692 | ||
f6bcfd97 | 8693 | WX_LIBRARY="wx_${TOOLKIT_NAME}" |
2224580a VZ |
8694 | |
8695 | PORT_FILES="src/files.lst" | |
8696 | RPM_FILES="src/rpmfiles.lst" | |
8697 | RPM_SPEC="wxBase.spec" | |
8698 | ||
8699 | GUIDIST="BASE_DIST" | |
8700 | DISTDIR="wxBase" | |
10f2d63a VZ |
8701 | fi |
8702 | ||
8703 | WX_LIBRARY_NAME="lib${WX_LIBRARY}.la" | |
bdad4e7e | 8704 | WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la" |
10f2d63a VZ |
8705 | |
8706 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
bdad4e7e | 8707 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a" |
10f2d63a VZ |
8708 | |
8709 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
bdad4e7e | 8710 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" |
10f2d63a VZ |
8711 | |
8712 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}" | |
8713 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so" | |
8714 | WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so" | |
bdad4e7e RR |
8715 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}" |
8716 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so" | |
8717 | WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so" | |
10f2d63a VZ |
8718 | |
8719 | SHARED_LD= | |
8720 | PIC_FLAG= | |
8721 | WX_ALL= | |
8722 | WX_ALL_INSTALLED= | |
1d62a8b4 | 8723 | BURNT_LIBRARY_NAME= |
f6bcfd97 | 8724 | WX_TARGET_LIBRARY_SONAME= |
10f2d63a | 8725 | |
b12915c1 | 8726 | |
10f2d63a VZ |
8727 | if test "$wxUSE_SHARED" = "yes"; then |
8728 | case "${host}" in | |
8729 | *-hp-hpux* ) | |
8730 | if test "$GCC" = yes ; then | |
69ffe1d2 | 8731 | SHARED_LD="${CC} -shared -fPIC -o" |
10f2d63a VZ |
8732 | PIC_FLAG="-fPIC" |
8733 | else | |
f6bcfd97 BP |
8734 | LDFLAGS="-L/usr/lib" |
8735 | ||
10f2d63a VZ |
8736 | SHARED_LD="${CXX} -b -o" |
8737 | PIC_FLAG="+Z" | |
8738 | fi | |
f6bcfd97 BP |
8739 | WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl" |
8740 | WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl" | |
c661ecca | 8741 | if test "$wxUSE_OPENGL" = "yes"; then |
f6bcfd97 | 8742 | WX_ALL_INSTALLED="preinstall_gl" |
c661ecca RR |
8743 | WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}" |
8744 | else | |
8745 | WX_ALL="${WX_LIBRARY_NAME_SHARED}" | |
8746 | fi | |
10f2d63a | 8747 | ;; |
b12915c1 VZ |
8748 | |
8749 | *-*-linux* ) | |
10f2d63a VZ |
8750 | SHARED_LD="${CC} -shared -o" |
8751 | PIC_FLAG="-fPIC" | |
00cf1208 | 8752 | if test "$wxUSE_BURNT_NAME" = "yes" ; then |
05cdfc6f | 8753 | BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}" |
bdad4e7e | 8754 | BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" |
f6bcfd97 | 8755 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" |
00cf1208 | 8756 | fi |
c661ecca RR |
8757 | if test "$wxUSE_OPENGL" = "yes"; then |
8758 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
8759 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
8760 | else | |
8761 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8762 | WX_ALL="CREATE_LINKS" | |
422107f9 | 8763 | fi |
00cf1208 | 8764 | ;; |
10f2d63a VZ |
8765 | *-*-irix5* | *-*-irix6* ) |
8766 | if test "$GCC" = yes ; then | |
8767 | SHARED_LD="${CC} -shared -o" | |
8768 | PIC_FLAG="-fPIC" | |
8769 | else | |
8770 | SHARED_LD="${CXX} -shared -o" | |
8771 | fi | |
c661ecca RR |
8772 | if test "$wxUSE_OPENGL" = "yes"; then |
8773 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
8774 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
8775 | else | |
8776 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8777 | WX_ALL="CREATE_LINKS" | |
422107f9 | 8778 | fi |
10f2d63a VZ |
8779 | ;; |
8780 | *-*-solaris2* ) | |
8781 | if test "$GCC" = yes ; then | |
8782 | SHARED_LD="${CC} -shared -o" | |
8783 | PIC_FLAG="-fPIC" | |
f6bcfd97 BP |
8784 | |
8785 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
10f2d63a VZ |
8786 | else |
8787 | SHARED_LD="${CXX} -G -o" | |
8788 | PIC_FLAG="-KPIC" | |
8789 | fi | |
c661ecca RR |
8790 | if test "$wxUSE_OPENGL" = "yes"; then |
8791 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
8792 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
8793 | else | |
8794 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8795 | WX_ALL="CREATE_LINKS" | |
8796 | fi | |
10f2d63a VZ |
8797 | ;; |
8798 | *-*-sunos4* ) | |
8799 | SHARED_LD="${CC} -shared -o" | |
8800 | PIC_FLAG="-fPIC" | |
8801 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8802 | WX_ALL="CREATE_LINKS" | |
8803 | ;; | |
8804 | *-*-freebsd* | *-*-netbsd*) | |
8805 | SHARED_LD="${CC} -shared -o" | |
8806 | PIC_FLAG="-fPIC" | |
8807 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8808 | WX_ALL="CREATE_LINKS" | |
8809 | ;; | |
8810 | *-*-osf* ) | |
8811 | SHARED_LD="${CXX} -shared -o" | |
8812 | PIC_FLAG="-fPIC" | |
8813 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8814 | WX_ALL="CREATE_LINKS" | |
8815 | ;; | |
8816 | *-*-dgux5* ) | |
8817 | SHARED_LD="${CXX} -shared -o" | |
8818 | PIC_FLAG="-fPIC" | |
8819 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8820 | WX_ALL="CREATE_LINKS" | |
8821 | ;; | |
8822 | *-*-sysv5* ) | |
8823 | SHARED_LD="${CC} -shared -o" | |
8824 | PIC_FLAG="-fPIC" | |
8825 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8826 | WX_ALL="CREATE_LINKS" | |
8827 | ;; | |
8828 | *-*-aix* ) | |
8829 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
8830 | WX_ALL=${WX_LIBRARY_NAME_SHARED} | |
8831 | ;; | |
8832 | *-*-cygwin32* ) | |
8833 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
bdad4e7e | 8834 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
8835 | if test "$wxUSE_OPENGL" = "yes"; then |
8836 | WX_ALL_INSTALLED="preinstall_gl" | |
8837 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
8838 | else | |
8839 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
8840 | fi | |
10f2d63a | 8841 | ;; |
b12915c1 | 8842 | *-*-mingw32* ) |
10f2d63a | 8843 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
bdad4e7e | 8844 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
8845 | if test "$wxUSE_OPENGL" = "yes"; then |
8846 | WX_ALL_INSTALLED="preinstall_gl" | |
8847 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
8848 | else | |
8849 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
8850 | fi | |
10f2d63a VZ |
8851 | ;; |
8852 | *-pc-os2_emx ) | |
e07802fc VZ |
8853 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
8854 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10f2d63a | 8855 | ;; |
b12915c1 | 8856 | *-*-beos* ) |
e2b8b066 | 8857 | SHARED_LD="${LD} -shared -o" |
b12915c1 VZ |
8858 | PIC_FLAG="-fPIC" |
8859 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
8860 | WX_ALL="CREATE_LINKS" | |
8861 | ;; | |
10f2d63a VZ |
8862 | *) |
8863 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } | |
8864 | esac | |
8865 | ||
8866 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
8867 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
bdad4e7e | 8868 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" |
10f2d63a | 8869 | fi |
3711412e | 8870 | WX_TARGET_LIBRARY_TYPE="so" |
10f2d63a VZ |
8871 | else |
8872 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
bdad4e7e | 8873 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
8874 | |
8875 | if test "$wxUSE_OPENGL" = "yes"; then | |
8876 | WX_ALL_INSTALLED="preinstall_gl" | |
8877 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
8878 | else | |
8879 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
8880 | fi | |
8881 | ||
8882 | if test "$wxUSE_GUI" = "no"; then | |
8883 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
8884 | fi | |
8885 | ||
3711412e | 8886 | WX_TARGET_LIBRARY_TYPE="a" |
10f2d63a VZ |
8887 | fi |
8888 | ||
8889 | ||
8890 | for ac_hdr in strings.h | |
8891 | do | |
8892 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8893 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
f6bcfd97 | 8894 | echo "configure:8895: checking for $ac_hdr" >&5 |
10f2d63a VZ |
8895 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8896 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8897 | else | |
8898 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 8899 | #line 8900 "configure" |
10f2d63a VZ |
8900 | #include "confdefs.h" |
8901 | #include <$ac_hdr> | |
8902 | EOF | |
8903 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f6bcfd97 | 8904 | { (eval echo configure:8905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
8905 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8906 | if test -z "$ac_err"; then | |
8907 | rm -rf conftest* | |
8908 | eval "ac_cv_header_$ac_safe=yes" | |
8909 | else | |
8910 | echo "$ac_err" >&5 | |
8911 | echo "configure: failed program was:" >&5 | |
8912 | cat conftest.$ac_ext >&5 | |
8913 | rm -rf conftest* | |
8914 | eval "ac_cv_header_$ac_safe=no" | |
8915 | fi | |
8916 | rm -f conftest* | |
8917 | fi | |
8918 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8919 | echo "$ac_t""yes" 1>&6 | |
8920 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8921 | cat >> confdefs.h <<EOF | |
8922 | #define $ac_tr_hdr 1 | |
8923 | EOF | |
8924 | ||
8925 | else | |
8926 | echo "$ac_t""no" 1>&6 | |
8927 | fi | |
8928 | done | |
8929 | ||
8930 | for ac_hdr in unistd.h | |
8931 | do | |
8932 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8933 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
f6bcfd97 | 8934 | echo "configure:8935: checking for $ac_hdr" >&5 |
10f2d63a VZ |
8935 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8936 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8937 | else | |
8938 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 8939 | #line 8940 "configure" |
10f2d63a VZ |
8940 | #include "confdefs.h" |
8941 | #include <$ac_hdr> | |
8942 | EOF | |
8943 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f6bcfd97 | 8944 | { (eval echo configure:8945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
8945 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8946 | if test -z "$ac_err"; then | |
8947 | rm -rf conftest* | |
8948 | eval "ac_cv_header_$ac_safe=yes" | |
8949 | else | |
8950 | echo "$ac_err" >&5 | |
8951 | echo "configure: failed program was:" >&5 | |
8952 | cat conftest.$ac_ext >&5 | |
8953 | rm -rf conftest* | |
8954 | eval "ac_cv_header_$ac_safe=no" | |
8955 | fi | |
8956 | rm -f conftest* | |
8957 | fi | |
8958 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8959 | echo "$ac_t""yes" 1>&6 | |
8960 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8961 | cat >> confdefs.h <<EOF | |
8962 | #define $ac_tr_hdr 1 | |
8963 | EOF | |
8964 | ||
8965 | else | |
8966 | echo "$ac_t""no" 1>&6 | |
8967 | fi | |
8968 | done | |
8969 | ||
8970 | for ac_hdr in wchar.h | |
8971 | do | |
8972 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8973 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
f6bcfd97 | 8974 | echo "configure:8975: checking for $ac_hdr" >&5 |
10f2d63a VZ |
8975 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8976 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8977 | else | |
8978 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 8979 | #line 8980 "configure" |
10f2d63a VZ |
8980 | #include "confdefs.h" |
8981 | #include <$ac_hdr> | |
8982 | EOF | |
8983 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f6bcfd97 | 8984 | { (eval echo configure:8985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
8985 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8986 | if test -z "$ac_err"; then | |
8987 | rm -rf conftest* | |
8988 | eval "ac_cv_header_$ac_safe=yes" | |
8989 | else | |
8990 | echo "$ac_err" >&5 | |
8991 | echo "configure: failed program was:" >&5 | |
8992 | cat conftest.$ac_ext >&5 | |
8993 | rm -rf conftest* | |
8994 | eval "ac_cv_header_$ac_safe=no" | |
8995 | fi | |
8996 | rm -f conftest* | |
8997 | fi | |
8998 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8999 | echo "$ac_t""yes" 1>&6 | |
9000 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9001 | cat >> confdefs.h <<EOF | |
9002 | #define $ac_tr_hdr 1 | |
9003 | EOF | |
9004 | ||
9005 | else | |
9006 | echo "$ac_t""no" 1>&6 | |
9007 | fi | |
9008 | done | |
9009 | ||
9010 | for ac_hdr in wcstr.h | |
9011 | do | |
9012 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9013 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
f6bcfd97 | 9014 | echo "configure:9015: checking for $ac_hdr" >&5 |
10f2d63a VZ |
9015 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9016 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9017 | else | |
9018 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 9019 | #line 9020 "configure" |
10f2d63a VZ |
9020 | #include "confdefs.h" |
9021 | #include <$ac_hdr> | |
9022 | EOF | |
9023 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f6bcfd97 | 9024 | { (eval echo configure:9025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
9025 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9026 | if test -z "$ac_err"; then | |
9027 | rm -rf conftest* | |
9028 | eval "ac_cv_header_$ac_safe=yes" | |
9029 | else | |
9030 | echo "$ac_err" >&5 | |
9031 | echo "configure: failed program was:" >&5 | |
9032 | cat conftest.$ac_ext >&5 | |
9033 | rm -rf conftest* | |
9034 | eval "ac_cv_header_$ac_safe=no" | |
9035 | fi | |
9036 | rm -f conftest* | |
9037 | fi | |
9038 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9039 | echo "$ac_t""yes" 1>&6 | |
9040 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9041 | cat >> confdefs.h <<EOF | |
9042 | #define $ac_tr_hdr 1 | |
9043 | EOF | |
9044 | ||
9045 | else | |
9046 | echo "$ac_t""no" 1>&6 | |
9047 | fi | |
9048 | done | |
9049 | ||
9050 | for ac_hdr in fnmatch.h | |
9051 | do | |
9052 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9053 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
f6bcfd97 | 9054 | echo "configure:9055: checking for $ac_hdr" >&5 |
10f2d63a VZ |
9055 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9056 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9057 | else | |
9058 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 9059 | #line 9060 "configure" |
10f2d63a VZ |
9060 | #include "confdefs.h" |
9061 | #include <$ac_hdr> | |
9062 | EOF | |
9063 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f6bcfd97 | 9064 | { (eval echo configure:9065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
9065 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9066 | if test -z "$ac_err"; then | |
9067 | rm -rf conftest* | |
9068 | eval "ac_cv_header_$ac_safe=yes" | |
9069 | else | |
9070 | echo "$ac_err" >&5 | |
9071 | echo "configure: failed program was:" >&5 | |
9072 | cat conftest.$ac_ext >&5 | |
9073 | rm -rf conftest* | |
9074 | eval "ac_cv_header_$ac_safe=no" | |
9075 | fi | |
9076 | rm -f conftest* | |
9077 | fi | |
9078 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9079 | echo "$ac_t""yes" 1>&6 | |
9080 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9081 | cat >> confdefs.h <<EOF | |
9082 | #define $ac_tr_hdr 1 | |
9083 | EOF | |
9084 | ||
9085 | else | |
9086 | echo "$ac_t""no" 1>&6 | |
9087 | fi | |
9088 | done | |
9089 | ||
9090 | ||
73fd4a60 VZ |
9091 | if test "$wxUSE_GUI" = "yes"; then |
9092 | if test "$wxUSE_UNIX" = "yes"; then | |
9093 | for ac_hdr in X11/XKBlib.h | |
10f2d63a VZ |
9094 | do |
9095 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9096 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
f6bcfd97 | 9097 | echo "configure:9098: checking for $ac_hdr" >&5 |
10f2d63a VZ |
9098 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9099 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9100 | else | |
9101 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 9102 | #line 9103 "configure" |
10f2d63a VZ |
9103 | #include "confdefs.h" |
9104 | #include <$ac_hdr> | |
9105 | EOF | |
9106 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f6bcfd97 | 9107 | { (eval echo configure:9108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
9108 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9109 | if test -z "$ac_err"; then | |
9110 | rm -rf conftest* | |
9111 | eval "ac_cv_header_$ac_safe=yes" | |
9112 | else | |
9113 | echo "$ac_err" >&5 | |
9114 | echo "configure: failed program was:" >&5 | |
9115 | cat conftest.$ac_ext >&5 | |
9116 | rm -rf conftest* | |
9117 | eval "ac_cv_header_$ac_safe=no" | |
9118 | fi | |
9119 | rm -f conftest* | |
9120 | fi | |
9121 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9122 | echo "$ac_t""yes" 1>&6 | |
9123 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9124 | cat >> confdefs.h <<EOF | |
9125 | #define $ac_tr_hdr 1 | |
9126 | EOF | |
9127 | ||
9128 | else | |
9129 | echo "$ac_t""no" 1>&6 | |
9130 | fi | |
9131 | done | |
9132 | ||
73fd4a60 | 9133 | fi |
10f2d63a VZ |
9134 | fi |
9135 | ||
9136 | ||
9137 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
f6bcfd97 | 9138 | echo "configure:9139: checking for ANSI C header files" >&5 |
10f2d63a VZ |
9139 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
9140 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9141 | else | |
9142 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 9143 | #line 9144 "configure" |
10f2d63a VZ |
9144 | #include "confdefs.h" |
9145 | #include <stdlib.h> | |
9146 | #include <stdarg.h> | |
9147 | #include <string.h> | |
9148 | #include <float.h> | |
9149 | EOF | |
9150 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f6bcfd97 | 9151 | { (eval echo configure:9152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
9152 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9153 | if test -z "$ac_err"; then | |
9154 | rm -rf conftest* | |
9155 | ac_cv_header_stdc=yes | |
9156 | else | |
9157 | echo "$ac_err" >&5 | |
9158 | echo "configure: failed program was:" >&5 | |
9159 | cat conftest.$ac_ext >&5 | |
9160 | rm -rf conftest* | |
9161 | ac_cv_header_stdc=no | |
9162 | fi | |
9163 | rm -f conftest* | |
9164 | ||
9165 | if test $ac_cv_header_stdc = yes; then | |
9166 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
9167 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 9168 | #line 9169 "configure" |
10f2d63a VZ |
9169 | #include "confdefs.h" |
9170 | #include <string.h> | |
9171 | EOF | |
9172 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9173 | egrep "memchr" >/dev/null 2>&1; then | |
9174 | : | |
9175 | else | |
9176 | rm -rf conftest* | |
9177 | ac_cv_header_stdc=no | |
9178 | fi | |
9179 | rm -f conftest* | |
9180 | ||
9181 | fi | |
9182 | ||
9183 | if test $ac_cv_header_stdc = yes; then | |
9184 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
9185 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 9186 | #line 9187 "configure" |
10f2d63a VZ |
9187 | #include "confdefs.h" |
9188 | #include <stdlib.h> | |
9189 | EOF | |
9190 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9191 | egrep "free" >/dev/null 2>&1; then | |
9192 | : | |
9193 | else | |
9194 | rm -rf conftest* | |
9195 | ac_cv_header_stdc=no | |
9196 | fi | |
9197 | rm -f conftest* | |
9198 | ||
9199 | fi | |
9200 | ||
9201 | if test $ac_cv_header_stdc = yes; then | |
9202 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
9203 | if test "$cross_compiling" = yes; then | |
9204 | : | |
9205 | else | |
9206 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 9207 | #line 9208 "configure" |
10f2d63a VZ |
9208 | #include "confdefs.h" |
9209 | #include <ctype.h> | |
9210 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
9211 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
9212 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
9213 | int main () { int i; for (i = 0; i < 256; i++) | |
9214 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
9215 | exit (0); } | |
9216 | ||
9217 | EOF | |
f6bcfd97 | 9218 | if { (eval echo configure:9219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
9219 | then |
9220 | : | |
9221 | else | |
9222 | echo "configure: failed program was:" >&5 | |
9223 | cat conftest.$ac_ext >&5 | |
9224 | rm -fr conftest* | |
9225 | ac_cv_header_stdc=no | |
9226 | fi | |
9227 | rm -fr conftest* | |
9228 | fi | |
9229 | ||
9230 | fi | |
9231 | fi | |
9232 | ||
9233 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
9234 | if test $ac_cv_header_stdc = yes; then | |
9235 | cat >> confdefs.h <<\EOF | |
9236 | #define STDC_HEADERS 1 | |
9237 | EOF | |
9238 | ||
9239 | fi | |
9240 | ||
9241 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 | |
f6bcfd97 | 9242 | echo "configure:9243: checking for mode_t" >&5 |
10f2d63a VZ |
9243 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
9244 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9245 | else | |
9246 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 9247 | #line 9248 "configure" |
10f2d63a VZ |
9248 | #include "confdefs.h" |
9249 | #include <sys/types.h> | |
9250 | #if STDC_HEADERS | |
9251 | #include <stdlib.h> | |
9252 | #include <stddef.h> | |
9253 | #endif | |
9254 | EOF | |
9255 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9256 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
9257 | rm -rf conftest* | |
9258 | ac_cv_type_mode_t=yes | |
9259 | else | |
9260 | rm -rf conftest* | |
9261 | ac_cv_type_mode_t=no | |
9262 | fi | |
9263 | rm -f conftest* | |
9264 | ||
9265 | fi | |
9266 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
9267 | if test $ac_cv_type_mode_t = no; then | |
9268 | cat >> confdefs.h <<\EOF | |
9269 | #define mode_t int | |
9270 | EOF | |
9271 | ||
9272 | fi | |
9273 | ||
9274 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
f6bcfd97 | 9275 | echo "configure:9276: checking for off_t" >&5 |
10f2d63a VZ |
9276 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
9277 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9278 | else | |
9279 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 9280 | #line 9281 "configure" |
10f2d63a VZ |
9281 | #include "confdefs.h" |
9282 | #include <sys/types.h> | |
9283 | #if STDC_HEADERS | |
9284 | #include <stdlib.h> | |
9285 | #include <stddef.h> | |
9286 | #endif | |
9287 | EOF | |
9288 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9289 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
9290 | rm -rf conftest* | |
9291 | ac_cv_type_off_t=yes | |
9292 | else | |
9293 | rm -rf conftest* | |
9294 | ac_cv_type_off_t=no | |
9295 | fi | |
9296 | rm -f conftest* | |
9297 | ||
9298 | fi | |
9299 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
9300 | if test $ac_cv_type_off_t = no; then | |
9301 | cat >> confdefs.h <<\EOF | |
9302 | #define off_t long | |
9303 | EOF | |
9304 | ||
9305 | fi | |
9306 | ||
9307 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 | |
f6bcfd97 | 9308 | echo "configure:9309: checking for pid_t" >&5 |
10f2d63a VZ |
9309 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
9310 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9311 | else | |
9312 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 9313 | #line 9314 "configure" |
10f2d63a VZ |
9314 | #include "confdefs.h" |
9315 | #include <sys/types.h> | |
9316 | #if STDC_HEADERS | |
9317 | #include <stdlib.h> | |
9318 | #include <stddef.h> | |
9319 | #endif | |
9320 | EOF | |
9321 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9322 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
9323 | rm -rf conftest* | |
9324 | ac_cv_type_pid_t=yes | |
9325 | else | |
9326 | rm -rf conftest* | |
9327 | ac_cv_type_pid_t=no | |
9328 | fi | |
9329 | rm -f conftest* | |
9330 | ||
9331 | fi | |
9332 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
9333 | if test $ac_cv_type_pid_t = no; then | |
9334 | cat >> confdefs.h <<\EOF | |
9335 | #define pid_t int | |
9336 | EOF | |
9337 | ||
9338 | fi | |
9339 | ||
9340 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
f6bcfd97 | 9341 | echo "configure:9342: checking for size_t" >&5 |
10f2d63a VZ |
9342 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
9343 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9344 | else | |
9345 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 9346 | #line 9347 "configure" |
10f2d63a VZ |
9347 | #include "confdefs.h" |
9348 | #include <sys/types.h> | |
9349 | #if STDC_HEADERS | |
9350 | #include <stdlib.h> | |
9351 | #include <stddef.h> | |
9352 | #endif | |
9353 | EOF | |
9354 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9355 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
9356 | rm -rf conftest* | |
9357 | ac_cv_type_size_t=yes | |
9358 | else | |
9359 | rm -rf conftest* | |
9360 | ac_cv_type_size_t=no | |
9361 | fi | |
9362 | rm -f conftest* | |
9363 | ||
9364 | fi | |
9365 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
9366 | if test $ac_cv_type_size_t = no; then | |
9367 | cat >> confdefs.h <<\EOF | |
9368 | #define size_t unsigned | |
9369 | EOF | |
9370 | ||
9371 | fi | |
9372 | ||
9373 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 | |
f6bcfd97 | 9374 | echo "configure:9375: checking for uid_t in sys/types.h" >&5 |
10f2d63a VZ |
9375 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
9376 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9377 | else | |
9378 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 9379 | #line 9380 "configure" |
10f2d63a VZ |
9380 | #include "confdefs.h" |
9381 | #include <sys/types.h> | |
9382 | EOF | |
9383 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9384 | egrep "uid_t" >/dev/null 2>&1; then | |
9385 | rm -rf conftest* | |
9386 | ac_cv_type_uid_t=yes | |
9387 | else | |
9388 | rm -rf conftest* | |
9389 | ac_cv_type_uid_t=no | |
9390 | fi | |
9391 | rm -f conftest* | |
9392 | ||
9393 | fi | |
9394 | ||
9395 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 | |
9396 | if test $ac_cv_type_uid_t = no; then | |
9397 | cat >> confdefs.h <<\EOF | |
9398 | #define uid_t int | |
9399 | EOF | |
9400 | ||
9401 | cat >> confdefs.h <<\EOF | |
9402 | #define gid_t int | |
9403 | EOF | |
9404 | ||
9405 | fi | |
9406 | ||
9407 | ||
9408 | ||
b12915c1 | 9409 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
f6bcfd97 | 9410 | echo "configure:9411: checking for pw_gecos in struct passwd" >&5 |
b12915c1 VZ |
9411 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
9412 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9413 | else | |
9414 | ||
9415 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 9416 | #line 9417 "configure" |
b12915c1 VZ |
9417 | #include "confdefs.h" |
9418 | #include <pwd.h> | |
9419 | int main() { | |
9420 | ||
9421 | char *p; | |
9422 | struct passwd *pw; | |
9423 | p = pw->pw_gecos; | |
9424 | ||
9425 | ; return 0; } | |
9426 | EOF | |
f6bcfd97 | 9427 | if { (eval echo configure:9428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
b12915c1 VZ |
9428 | rm -rf conftest* |
9429 | ||
9430 | wx_cv_struct_pw_gecos=yes | |
b12915c1 VZ |
9431 | |
9432 | else | |
9433 | echo "configure: failed program was:" >&5 | |
9434 | cat conftest.$ac_ext >&5 | |
9435 | rm -rf conftest* | |
9436 | ||
9437 | wx_cv_struct_pw_gecos=no | |
9438 | ||
9439 | ||
9440 | fi | |
9441 | rm -f conftest* | |
9442 | ||
9443 | ||
9444 | fi | |
9445 | ||
9446 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
9447 | ||
bd3277fe VZ |
9448 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
9449 | cat >> confdefs.h <<\EOF | |
9450 | #define HAVE_PW_GECOS 1 | |
9451 | EOF | |
9452 | ||
9453 | fi | |
9454 | ||
10f2d63a VZ |
9455 | |
9456 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
f6bcfd97 | 9457 | echo "configure:9458: checking for working const" >&5 |
10f2d63a VZ |
9458 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
9459 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9460 | else | |
9461 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 9462 | #line 9463 "configure" |
10f2d63a VZ |
9463 | #include "confdefs.h" |
9464 | ||
9465 | int main() { | |
9466 | ||
9467 | /* Ultrix mips cc rejects this. */ | |
8916026b | 9468 | typedef int charset[2]; const charset x; |
10f2d63a VZ |
9469 | /* SunOS 4.1.1 cc rejects this. */ |
9470 | char const *const *ccp; | |
9471 | char **p; | |
9472 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
9473 | struct point {int x, y;}; | |
9474 | static struct point const zero = {0,0}; | |
9475 | /* AIX XL C 1.02.0.0 rejects this. | |
9476 | It does not let you subtract one const X* pointer from another in an arm | |
9477 | of an if-expression whose if-part is not a constant expression */ | |
9478 | const char *g = "string"; | |
9479 | ccp = &g + (g ? g-g : 0); | |
9480 | /* HPUX 7.0 cc rejects these. */ | |
9481 | ++ccp; | |
9482 | p = (char**) ccp; | |
9483 | ccp = (char const *const *) p; | |
9484 | { /* SCO 3.2v4 cc rejects this. */ | |
9485 | char *t; | |
9486 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
9487 | ||
9488 | *t++ = 0; | |
9489 | } | |
9490 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
9491 | int x[] = {25, 17}; | |
9492 | const int *foo = &x[0]; | |
9493 | ++foo; | |
9494 | } | |
9495 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
9496 | typedef const int *iptr; | |
9497 | iptr p = 0; | |
9498 | ++p; | |
9499 | } | |
9500 | { /* AIX XL C 1.02.0.0 rejects this saying | |
9501 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
9502 | struct s { int j; const int *ap[3]; }; | |
9503 | struct s *b; b->j = 5; | |
9504 | } | |
9505 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
9506 | const int foo = 10; | |
9507 | } | |
9508 | ||
9509 | ; return 0; } | |
9510 | EOF | |
f6bcfd97 | 9511 | if { (eval echo configure:9512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
9512 | rm -rf conftest* |
9513 | ac_cv_c_const=yes | |
9514 | else | |
9515 | echo "configure: failed program was:" >&5 | |
9516 | cat conftest.$ac_ext >&5 | |
9517 | rm -rf conftest* | |
9518 | ac_cv_c_const=no | |
9519 | fi | |
9520 | rm -f conftest* | |
9521 | fi | |
9522 | ||
9523 | echo "$ac_t""$ac_cv_c_const" 1>&6 | |
9524 | if test $ac_cv_c_const = no; then | |
9525 | cat >> confdefs.h <<\EOF | |
9526 | #define const | |
9527 | EOF | |
9528 | ||
9529 | fi | |
9530 | ||
9531 | echo $ac_n "checking for inline""... $ac_c" 1>&6 | |
f6bcfd97 | 9532 | echo "configure:9533: checking for inline" >&5 |
10f2d63a VZ |
9533 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
9534 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9535 | else | |
9536 | ac_cv_c_inline=no | |
9537 | for ac_kw in inline __inline__ __inline; do | |
9538 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 9539 | #line 9540 "configure" |
10f2d63a VZ |
9540 | #include "confdefs.h" |
9541 | ||
9542 | int main() { | |
8916026b | 9543 | } $ac_kw foo() { |
10f2d63a VZ |
9544 | ; return 0; } |
9545 | EOF | |
f6bcfd97 | 9546 | if { (eval echo configure:9547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
9547 | rm -rf conftest* |
9548 | ac_cv_c_inline=$ac_kw; break | |
9549 | else | |
9550 | echo "configure: failed program was:" >&5 | |
9551 | cat conftest.$ac_ext >&5 | |
9552 | fi | |
9553 | rm -f conftest* | |
9554 | done | |
9555 | ||
9556 | fi | |
9557 | ||
9558 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
9559 | case "$ac_cv_c_inline" in | |
9560 | inline | yes) ;; | |
9561 | no) cat >> confdefs.h <<\EOF | |
9562 | #define inline | |
9563 | EOF | |
9564 | ;; | |
9565 | *) cat >> confdefs.h <<EOF | |
9566 | #define inline $ac_cv_c_inline | |
9567 | EOF | |
9568 | ;; | |
9569 | esac | |
9570 | ||
9571 | ||
9572 | echo $ac_n "checking size of char""... $ac_c" 1>&6 | |
f6bcfd97 | 9573 | echo "configure:9574: checking size of char" >&5 |
10f2d63a VZ |
9574 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
9575 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9576 | else | |
9577 | if test "$cross_compiling" = yes; then | |
9578 | ac_cv_sizeof_char=1 | |
9579 | else | |
9580 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 9581 | #line 9582 "configure" |
10f2d63a VZ |
9582 | #include "confdefs.h" |
9583 | #include <stdio.h> | |
9584 | main() | |
9585 | { | |
9586 | FILE *f=fopen("conftestval", "w"); | |
9587 | if (!f) exit(1); | |
9588 | fprintf(f, "%d\n", sizeof(char)); | |
9589 | exit(0); | |
9590 | } | |
9591 | EOF | |
f6bcfd97 | 9592 | if { (eval echo configure:9593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
9593 | then |
9594 | ac_cv_sizeof_char=`cat conftestval` | |
9595 | else | |
9596 | echo "configure: failed program was:" >&5 | |
9597 | cat conftest.$ac_ext >&5 | |
9598 | rm -fr conftest* | |
9599 | ac_cv_sizeof_char=0 | |
9600 | fi | |
9601 | rm -fr conftest* | |
9602 | fi | |
9603 | ||
9604 | fi | |
9605 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 | |
9606 | cat >> confdefs.h <<EOF | |
9607 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
9608 | EOF | |
9609 | ||
9610 | ||
9611 | echo $ac_n "checking size of short""... $ac_c" 1>&6 | |
f6bcfd97 | 9612 | echo "configure:9613: checking size of short" >&5 |
10f2d63a VZ |
9613 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
9614 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9615 | else | |
9616 | if test "$cross_compiling" = yes; then | |
9617 | ac_cv_sizeof_short=2 | |
9618 | else | |
9619 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 9620 | #line 9621 "configure" |
10f2d63a VZ |
9621 | #include "confdefs.h" |
9622 | #include <stdio.h> | |
9623 | main() | |
9624 | { | |
9625 | FILE *f=fopen("conftestval", "w"); | |
9626 | if (!f) exit(1); | |
9627 | fprintf(f, "%d\n", sizeof(short)); | |
9628 | exit(0); | |
9629 | } | |
9630 | EOF | |
f6bcfd97 | 9631 | if { (eval echo configure:9632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
9632 | then |
9633 | ac_cv_sizeof_short=`cat conftestval` | |
9634 | else | |
9635 | echo "configure: failed program was:" >&5 | |
9636 | cat conftest.$ac_ext >&5 | |
9637 | rm -fr conftest* | |
9638 | ac_cv_sizeof_short=0 | |
9639 | fi | |
9640 | rm -fr conftest* | |
9641 | fi | |
9642 | ||
9643 | fi | |
9644 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 | |
9645 | cat >> confdefs.h <<EOF | |
9646 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
9647 | EOF | |
9648 | ||
9649 | ||
9650 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 | |
f6bcfd97 | 9651 | echo "configure:9652: checking size of int *" >&5 |
10f2d63a VZ |
9652 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then |
9653 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9654 | else | |
9655 | if test "$cross_compiling" = yes; then | |
9656 | ac_cv_sizeof_int_p=4 | |
9657 | else | |
9658 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 9659 | #line 9660 "configure" |
10f2d63a VZ |
9660 | #include "confdefs.h" |
9661 | #include <stdio.h> | |
9662 | main() | |
9663 | { | |
9664 | FILE *f=fopen("conftestval", "w"); | |
9665 | if (!f) exit(1); | |
9666 | fprintf(f, "%d\n", sizeof(int *)); | |
9667 | exit(0); | |
9668 | } | |
9669 | EOF | |
f6bcfd97 | 9670 | if { (eval echo configure:9671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
9671 | then |
9672 | ac_cv_sizeof_int_p=`cat conftestval` | |
9673 | else | |
9674 | echo "configure: failed program was:" >&5 | |
9675 | cat conftest.$ac_ext >&5 | |
9676 | rm -fr conftest* | |
9677 | ac_cv_sizeof_int_p=0 | |
9678 | fi | |
9679 | rm -fr conftest* | |
9680 | fi | |
9681 | ||
9682 | fi | |
9683 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 | |
9684 | cat >> confdefs.h <<EOF | |
9685 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
9686 | EOF | |
9687 | ||
9688 | ||
9689 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
f6bcfd97 | 9690 | echo "configure:9691: checking size of int" >&5 |
10f2d63a VZ |
9691 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
9692 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9693 | else | |
9694 | if test "$cross_compiling" = yes; then | |
9695 | ac_cv_sizeof_int=4 | |
9696 | else | |
9697 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 9698 | #line 9699 "configure" |
10f2d63a VZ |
9699 | #include "confdefs.h" |
9700 | #include <stdio.h> | |
9701 | main() | |
9702 | { | |
9703 | FILE *f=fopen("conftestval", "w"); | |
9704 | if (!f) exit(1); | |
9705 | fprintf(f, "%d\n", sizeof(int)); | |
9706 | exit(0); | |
9707 | } | |
9708 | EOF | |
f6bcfd97 | 9709 | if { (eval echo configure:9710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
9710 | then |
9711 | ac_cv_sizeof_int=`cat conftestval` | |
9712 | else | |
9713 | echo "configure: failed program was:" >&5 | |
9714 | cat conftest.$ac_ext >&5 | |
9715 | rm -fr conftest* | |
9716 | ac_cv_sizeof_int=0 | |
9717 | fi | |
9718 | rm -fr conftest* | |
9719 | fi | |
9720 | ||
9721 | fi | |
9722 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
9723 | cat >> confdefs.h <<EOF | |
9724 | #define SIZEOF_INT $ac_cv_sizeof_int | |
9725 | EOF | |
9726 | ||
9727 | ||
9728 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
f6bcfd97 | 9729 | echo "configure:9730: checking size of long" >&5 |
10f2d63a VZ |
9730 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
9731 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9732 | else | |
9733 | if test "$cross_compiling" = yes; then | |
9734 | ac_cv_sizeof_long=4 | |
9735 | else | |
9736 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 9737 | #line 9738 "configure" |
10f2d63a VZ |
9738 | #include "confdefs.h" |
9739 | #include <stdio.h> | |
9740 | main() | |
9741 | { | |
9742 | FILE *f=fopen("conftestval", "w"); | |
9743 | if (!f) exit(1); | |
9744 | fprintf(f, "%d\n", sizeof(long)); | |
9745 | exit(0); | |
9746 | } | |
9747 | EOF | |
f6bcfd97 | 9748 | if { (eval echo configure:9749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
9749 | then |
9750 | ac_cv_sizeof_long=`cat conftestval` | |
9751 | else | |
9752 | echo "configure: failed program was:" >&5 | |
9753 | cat conftest.$ac_ext >&5 | |
9754 | rm -fr conftest* | |
9755 | ac_cv_sizeof_long=0 | |
9756 | fi | |
9757 | rm -fr conftest* | |
9758 | fi | |
9759 | ||
9760 | fi | |
9761 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
9762 | cat >> confdefs.h <<EOF | |
9763 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
9764 | EOF | |
9765 | ||
9766 | ||
9767 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
f6bcfd97 | 9768 | echo "configure:9769: checking size of long long" >&5 |
10f2d63a VZ |
9769 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
9770 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9771 | else | |
9772 | if test "$cross_compiling" = yes; then | |
9773 | ac_cv_sizeof_long_long=0 | |
9774 | else | |
9775 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 9776 | #line 9777 "configure" |
10f2d63a VZ |
9777 | #include "confdefs.h" |
9778 | #include <stdio.h> | |
9779 | main() | |
9780 | { | |
9781 | FILE *f=fopen("conftestval", "w"); | |
9782 | if (!f) exit(1); | |
9783 | fprintf(f, "%d\n", sizeof(long long)); | |
9784 | exit(0); | |
9785 | } | |
9786 | EOF | |
f6bcfd97 | 9787 | if { (eval echo configure:9788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
9788 | then |
9789 | ac_cv_sizeof_long_long=`cat conftestval` | |
9790 | else | |
9791 | echo "configure: failed program was:" >&5 | |
9792 | cat conftest.$ac_ext >&5 | |
9793 | rm -fr conftest* | |
9794 | ac_cv_sizeof_long_long=0 | |
9795 | fi | |
9796 | rm -fr conftest* | |
9797 | fi | |
9798 | ||
9799 | fi | |
9800 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
9801 | cat >> confdefs.h <<EOF | |
9802 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
9803 | EOF | |
9804 | ||
9805 | ||
9806 | ||
9807 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 | |
f6bcfd97 | 9808 | echo "configure:9809: checking whether byte ordering is bigendian" >&5 |
10f2d63a VZ |
9809 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
9810 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9811 | else | |
9812 | ac_cv_c_bigendian=unknown | |
9813 | # See if sys/param.h defines the BYTE_ORDER macro. | |
9814 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 9815 | #line 9816 "configure" |
10f2d63a VZ |
9816 | #include "confdefs.h" |
9817 | #include <sys/types.h> | |
9818 | #include <sys/param.h> | |
9819 | int main() { | |
9820 | ||
9821 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
9822 | bogus endian macros | |
9823 | #endif | |
9824 | ; return 0; } | |
9825 | EOF | |
f6bcfd97 | 9826 | if { (eval echo configure:9827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
9827 | rm -rf conftest* |
9828 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
9829 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 9830 | #line 9831 "configure" |
10f2d63a VZ |
9831 | #include "confdefs.h" |
9832 | #include <sys/types.h> | |
9833 | #include <sys/param.h> | |
9834 | int main() { | |
9835 | ||
9836 | #if BYTE_ORDER != BIG_ENDIAN | |
9837 | not big endian | |
9838 | #endif | |
9839 | ; return 0; } | |
9840 | EOF | |
f6bcfd97 | 9841 | if { (eval echo configure:9842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
9842 | rm -rf conftest* |
9843 | ac_cv_c_bigendian=yes | |
9844 | else | |
9845 | echo "configure: failed program was:" >&5 | |
9846 | cat conftest.$ac_ext >&5 | |
9847 | rm -rf conftest* | |
9848 | ac_cv_c_bigendian=no | |
9849 | fi | |
9850 | rm -f conftest* | |
9851 | else | |
9852 | echo "configure: failed program was:" >&5 | |
9853 | cat conftest.$ac_ext >&5 | |
9854 | fi | |
9855 | rm -f conftest* | |
9856 | if test $ac_cv_c_bigendian = unknown; then | |
9857 | if test "$cross_compiling" = yes; then | |
9858 | ac_cv_c_bigendian=unknown | |
9859 | else | |
9860 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 9861 | #line 9862 "configure" |
10f2d63a VZ |
9862 | #include "confdefs.h" |
9863 | main () { | |
9864 | /* Are we little or big endian? From Harbison&Steele. */ | |
9865 | union | |
9866 | { | |
9867 | long l; | |
9868 | char c[sizeof (long)]; | |
9869 | } u; | |
9870 | u.l = 1; | |
9871 | exit (u.c[sizeof (long) - 1] == 1); | |
9872 | } | |
9873 | EOF | |
f6bcfd97 | 9874 | if { (eval echo configure:9875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
9875 | then |
9876 | ac_cv_c_bigendian=no | |
9877 | else | |
9878 | echo "configure: failed program was:" >&5 | |
9879 | cat conftest.$ac_ext >&5 | |
9880 | rm -fr conftest* | |
9881 | ac_cv_c_bigendian=yes | |
9882 | fi | |
9883 | rm -fr conftest* | |
9884 | fi | |
9885 | ||
9886 | fi | |
9887 | fi | |
9888 | ||
9889 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
9890 | if test $ac_cv_c_bigendian = unknown; then | |
9891 | 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 | |
9892 | fi | |
9893 | if test $ac_cv_c_bigendian = yes; then | |
9894 | cat >> confdefs.h <<\EOF | |
9895 | #define WORDS_BIGENDIAN 1 | |
9896 | EOF | |
9897 | ||
9898 | fi | |
9899 | ||
9900 | ||
9901 | ||
9902 | if test "$cross_compiling" = "yes"; then | |
9903 | cat >> confdefs.h <<\EOF | |
9904 | #define wxUSE_IOSTREAMH 1 | |
9905 | EOF | |
9906 | ||
9907 | else | |
9908 | ||
9909 | ac_ext=C | |
9910 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9911 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9912 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9913 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9914 | cross_compiling=$ac_cv_prog_cxx_cross | |
9915 | ||
9916 | ||
9917 | for ac_hdr in iostream | |
9918 | do | |
9919 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9920 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
f6bcfd97 | 9921 | echo "configure:9922: checking for $ac_hdr" >&5 |
10f2d63a VZ |
9922 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9923 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9924 | else | |
9925 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 9926 | #line 9927 "configure" |
10f2d63a VZ |
9927 | #include "confdefs.h" |
9928 | #include <$ac_hdr> | |
9929 | EOF | |
9930 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f6bcfd97 | 9931 | { (eval echo configure:9932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
9932 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9933 | if test -z "$ac_err"; then | |
9934 | rm -rf conftest* | |
9935 | eval "ac_cv_header_$ac_safe=yes" | |
9936 | else | |
9937 | echo "$ac_err" >&5 | |
9938 | echo "configure: failed program was:" >&5 | |
9939 | cat conftest.$ac_ext >&5 | |
9940 | rm -rf conftest* | |
9941 | eval "ac_cv_header_$ac_safe=no" | |
9942 | fi | |
9943 | rm -f conftest* | |
9944 | fi | |
9945 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9946 | echo "$ac_t""yes" 1>&6 | |
9947 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9948 | cat >> confdefs.h <<EOF | |
9949 | #define $ac_tr_hdr 1 | |
9950 | EOF | |
9951 | ||
9952 | else | |
9953 | echo "$ac_t""no" 1>&6 | |
9954 | fi | |
9955 | done | |
9956 | ||
9957 | ||
9958 | if test "x$HAVE_IOSTREAM" = x ; then | |
9959 | cat >> confdefs.h <<\EOF | |
9960 | #define wxUSE_IOSTREAMH 1 | |
9961 | EOF | |
9962 | ||
9963 | else | |
9964 | : | |
9965 | fi | |
9966 | ||
9967 | ac_ext=c | |
9968 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9969 | ac_cpp='$CPP $CPPFLAGS' | |
9970 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9971 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9972 | cross_compiling=$ac_cv_prog_cc_cross | |
9973 | ||
9974 | fi | |
9975 | ||
9976 | ||
9977 | ||
9978 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 | |
f6bcfd97 | 9979 | echo "configure:9980: checking if C++ compiler supports bool" >&5 |
10f2d63a VZ |
9980 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
9981 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9982 | else | |
9983 | ||
9984 | ||
9985 | ac_ext=C | |
9986 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9987 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9988 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9989 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9990 | cross_compiling=$ac_cv_prog_cxx_cross | |
9991 | ||
9992 | ||
9993 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 9994 | #line 9995 "configure" |
10f2d63a VZ |
9995 | #include "confdefs.h" |
9996 | ||
9997 | ||
9998 | int main() { | |
9999 | ||
10000 | bool b = true; | |
10001 | ||
10002 | return 0; | |
10003 | ||
10004 | ; return 0; } | |
10005 | EOF | |
f6bcfd97 | 10006 | if { (eval echo configure:10007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
10007 | rm -rf conftest* |
10008 | ||
10009 | cat >> confdefs.h <<\EOF | |
10010 | #define HAVE_BOOL 1 | |
10011 | EOF | |
10012 | ||
10013 | wx_cv_cpp_bool=yes | |
10014 | ||
10015 | else | |
10016 | echo "configure: failed program was:" >&5 | |
10017 | cat conftest.$ac_ext >&5 | |
10018 | rm -rf conftest* | |
10019 | ||
10020 | wx_cv_cpp_bool=no | |
10021 | ||
10022 | ||
10023 | fi | |
10024 | rm -f conftest* | |
10025 | ||
10026 | ac_ext=c | |
10027 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10028 | ac_cpp='$CPP $CPPFLAGS' | |
10029 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10030 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10031 | cross_compiling=$ac_cv_prog_cc_cross | |
10032 | ||
10033 | ||
10034 | fi | |
10035 | ||
10036 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
10037 | ||
10038 | if test "$wx_cv_cpp_bool" = "yes"; then | |
10039 | cat >> confdefs.h <<\EOF | |
10040 | #define HAVE_BOOL 1 | |
10041 | EOF | |
10042 | ||
10043 | fi | |
10044 | ||
10045 | ||
10046 | ||
10f2d63a | 10047 | echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6 |
f6bcfd97 | 10048 | echo "configure:10049: checking if you need GNU extensions" >&5 |
10f2d63a VZ |
10049 | if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then |
10050 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10051 | else | |
10052 | ||
10053 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 10054 | #line 10055 "configure" |
10f2d63a VZ |
10055 | #include "confdefs.h" |
10056 | #include <features.h> | |
10057 | int main() { | |
10058 | ||
10059 | ||
10060 | #ifndef __GNU_LIBRARY__ | |
10061 | Compile error wanted | |
10062 | #endif | |
10063 | ||
10064 | ||
10065 | ; return 0; } | |
10066 | EOF | |
f6bcfd97 | 10067 | if { (eval echo configure:10068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
10068 | rm -rf conftest* |
10069 | wx_cv_gnu_extensions=yes | |
10070 | else | |
10071 | echo "configure: failed program was:" >&5 | |
10072 | cat conftest.$ac_ext >&5 | |
10073 | rm -rf conftest* | |
10074 | wx_cv_gnu_extensions=no | |
10075 | fi | |
10076 | rm -f conftest* | |
10077 | ||
10078 | fi | |
10079 | ||
10080 | ||
10081 | echo "$ac_t""$wx_cv_gnu_extensions" 1>&6 | |
10082 | if test "$wx_cv_gnu_extensions" = "yes"; then | |
10083 | cat >> confdefs.h <<EOF | |
10084 | #define _GNU_SOURCE 1 | |
10085 | EOF | |
10086 | ||
10087 | fi | |
10088 | ||
10089 | ||
10090 | ||
10091 | echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6 | |
f6bcfd97 | 10092 | echo "configure:10093: checking for wcslen in -lc" >&5 |
10f2d63a VZ |
10093 | ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'` |
10094 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10095 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10096 | else | |
10097 | ac_save_LIBS="$LIBS" | |
10098 | LIBS="-lc $LIBS" | |
10099 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 10100 | #line 10101 "configure" |
10f2d63a VZ |
10101 | #include "confdefs.h" |
10102 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10103 | /* We use char because int might match the return type of a gcc2 | |
10104 | builtin and then its argument prototype would still apply. */ | |
10105 | char wcslen(); | |
10106 | ||
10107 | int main() { | |
10108 | wcslen() | |
10109 | ; return 0; } | |
10110 | EOF | |
f6bcfd97 | 10111 | if { (eval echo configure:10112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10112 | rm -rf conftest* |
10113 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10114 | else | |
10115 | echo "configure: failed program was:" >&5 | |
10116 | cat conftest.$ac_ext >&5 | |
10117 | rm -rf conftest* | |
10118 | eval "ac_cv_lib_$ac_lib_var=no" | |
10119 | fi | |
10120 | rm -f conftest* | |
10121 | LIBS="$ac_save_LIBS" | |
10122 | ||
10123 | fi | |
10124 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10125 | echo "$ac_t""yes" 1>&6 | |
10126 | ||
10127 | cat >> confdefs.h <<\EOF | |
10128 | #define HAVE_WCSLEN 1 | |
10129 | EOF | |
10130 | ||
10131 | WCHAR_LINK="" | |
10132 | ||
10133 | else | |
10134 | echo "$ac_t""no" 1>&6 | |
10135 | ||
10136 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 | |
f6bcfd97 | 10137 | echo "configure:10138: checking for wcslen in -lw" >&5 |
10f2d63a VZ |
10138 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
10139 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10140 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10141 | else | |
10142 | ac_save_LIBS="$LIBS" | |
10143 | LIBS="-lw $LIBS" | |
10144 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 10145 | #line 10146 "configure" |
10f2d63a VZ |
10146 | #include "confdefs.h" |
10147 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10148 | /* We use char because int might match the return type of a gcc2 | |
10149 | builtin and then its argument prototype would still apply. */ | |
10150 | char wcslen(); | |
10151 | ||
10152 | int main() { | |
10153 | wcslen() | |
10154 | ; return 0; } | |
10155 | EOF | |
f6bcfd97 | 10156 | if { (eval echo configure:10157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10157 | rm -rf conftest* |
10158 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10159 | else | |
10160 | echo "configure: failed program was:" >&5 | |
10161 | cat conftest.$ac_ext >&5 | |
10162 | rm -rf conftest* | |
10163 | eval "ac_cv_lib_$ac_lib_var=no" | |
10164 | fi | |
10165 | rm -f conftest* | |
10166 | LIBS="$ac_save_LIBS" | |
10167 | ||
10168 | fi | |
10169 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10170 | echo "$ac_t""yes" 1>&6 | |
10171 | ||
10172 | cat >> confdefs.h <<\EOF | |
10173 | #define HAVE_WCSLEN 1 | |
10174 | EOF | |
10175 | ||
10176 | WCHAR_LINK="-lw" | |
10177 | ||
10178 | else | |
10179 | echo "$ac_t""no" 1>&6 | |
10180 | fi | |
10181 | ||
10182 | ||
10183 | fi | |
10184 | ||
10185 | ||
10186 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 | |
f6bcfd97 | 10187 | echo "configure:10188: checking for vprintf" >&5 |
10f2d63a VZ |
10188 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
10189 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10190 | else | |
10191 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 10192 | #line 10193 "configure" |
10f2d63a VZ |
10193 | #include "confdefs.h" |
10194 | /* System header to define __stub macros and hopefully few prototypes, | |
10195 | which can conflict with char vprintf(); below. */ | |
10196 | #include <assert.h> | |
10197 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10198 | /* We use char because int might match the return type of a gcc2 | |
10199 | builtin and then its argument prototype would still apply. */ | |
10200 | char vprintf(); | |
10201 | ||
10202 | int main() { | |
10203 | ||
10204 | /* The GNU C library defines this for functions which it implements | |
10205 | to always fail with ENOSYS. Some functions are actually named | |
10206 | something starting with __ and the normal name is an alias. */ | |
10207 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
10208 | choke me | |
10209 | #else | |
e8482f24 | 10210 | vprintf(); |
10f2d63a VZ |
10211 | #endif |
10212 | ||
10213 | ; return 0; } | |
10214 | EOF | |
f6bcfd97 | 10215 | if { (eval echo configure:10216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10216 | rm -rf conftest* |
10217 | eval "ac_cv_func_vprintf=yes" | |
10218 | else | |
10219 | echo "configure: failed program was:" >&5 | |
10220 | cat conftest.$ac_ext >&5 | |
10221 | rm -rf conftest* | |
10222 | eval "ac_cv_func_vprintf=no" | |
10223 | fi | |
10224 | rm -f conftest* | |
10225 | fi | |
10226 | ||
10227 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
10228 | echo "$ac_t""yes" 1>&6 | |
10229 | cat >> confdefs.h <<\EOF | |
10230 | #define HAVE_VPRINTF 1 | |
10231 | EOF | |
10232 | ||
10233 | else | |
10234 | echo "$ac_t""no" 1>&6 | |
10235 | fi | |
10236 | ||
10237 | if test "$ac_cv_func_vprintf" != yes; then | |
10238 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
f6bcfd97 | 10239 | echo "configure:10240: checking for _doprnt" >&5 |
10f2d63a VZ |
10240 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
10241 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10242 | else | |
10243 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 10244 | #line 10245 "configure" |
10f2d63a VZ |
10245 | #include "confdefs.h" |
10246 | /* System header to define __stub macros and hopefully few prototypes, | |
10247 | which can conflict with char _doprnt(); below. */ | |
10248 | #include <assert.h> | |
10249 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10250 | /* We use char because int might match the return type of a gcc2 | |
10251 | builtin and then its argument prototype would still apply. */ | |
10252 | char _doprnt(); | |
10253 | ||
10254 | int main() { | |
10255 | ||
10256 | /* The GNU C library defines this for functions which it implements | |
10257 | to always fail with ENOSYS. Some functions are actually named | |
10258 | something starting with __ and the normal name is an alias. */ | |
10259 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
10260 | choke me | |
10261 | #else | |
e8482f24 | 10262 | _doprnt(); |
10f2d63a VZ |
10263 | #endif |
10264 | ||
10265 | ; return 0; } | |
10266 | EOF | |
f6bcfd97 | 10267 | if { (eval echo configure:10268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10268 | rm -rf conftest* |
10269 | eval "ac_cv_func__doprnt=yes" | |
10270 | else | |
10271 | echo "configure: failed program was:" >&5 | |
10272 | cat conftest.$ac_ext >&5 | |
10273 | rm -rf conftest* | |
10274 | eval "ac_cv_func__doprnt=no" | |
10275 | fi | |
10276 | rm -f conftest* | |
10277 | fi | |
10278 | ||
10279 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
10280 | echo "$ac_t""yes" 1>&6 | |
10281 | cat >> confdefs.h <<\EOF | |
10282 | #define HAVE_DOPRNT 1 | |
10283 | EOF | |
10284 | ||
10285 | else | |
10286 | echo "$ac_t""no" 1>&6 | |
10287 | fi | |
10288 | ||
10289 | fi | |
10290 | ||
10291 | ||
10f2d63a | 10292 | |
f6bcfd97 BP |
10293 | ac_ext=C |
10294 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10295 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10296 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10297 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10298 | cross_compiling=$ac_cv_prog_cxx_cross | |
10299 | ||
10300 | ||
10301 | ||
10302 | ||
10303 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 | |
10304 | echo "configure:10305: checking for vsnprintf" >&5 | |
10305 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then | |
10306 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10307 | else | |
10308 | ||
10309 | cat > conftest.$ac_ext <<EOF | |
10310 | #line 10311 "configure" | |
10311 | #include "confdefs.h" | |
10312 | ||
10313 | #include <stdio.h> | |
10314 | #include <stdarg.h> | |
10315 | ||
10f2d63a VZ |
10316 | int main() { |
10317 | ||
f6bcfd97 | 10318 | int wx_test_vsnprintf(const char *, ...); |
10f2d63a | 10319 | |
f6bcfd97 BP |
10320 | wx_test_vsnprintf("%s"); |
10321 | return 0; | |
10322 | } | |
10323 | ||
10324 | int wx_test_vsnprintf(const char *fmt, ...) | |
10325 | { | |
10326 | char *s; | |
10327 | ||
10328 | va_list argp; | |
10329 | va_start(argp, fmt); | |
10330 | vsnprintf(s, 42, fmt, argp); | |
10331 | va_end(argp); | |
10332 | ||
10f2d63a VZ |
10333 | ; return 0; } |
10334 | EOF | |
f6bcfd97 | 10335 | if { (eval echo configure:10336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a | 10336 | rm -rf conftest* |
f6bcfd97 BP |
10337 | |
10338 | cat >> confdefs.h <<\EOF | |
10339 | #define HAVE_VSNPRINTF 1 | |
10340 | EOF | |
10341 | ||
10342 | wx_cv_func_vsnprintf=yes | |
10343 | ||
10f2d63a VZ |
10344 | else |
10345 | echo "configure: failed program was:" >&5 | |
10346 | cat conftest.$ac_ext >&5 | |
10347 | rm -rf conftest* | |
f6bcfd97 BP |
10348 | |
10349 | echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2 | |
10350 | wx_cv_func_vsnprintf=no | |
10351 | ||
10f2d63a VZ |
10352 | fi |
10353 | rm -f conftest* | |
10f2d63a | 10354 | |
10f2d63a | 10355 | fi |
10f2d63a | 10356 | |
f6bcfd97 | 10357 | echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6 |
10f2d63a VZ |
10358 | |
10359 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 | |
f6bcfd97 | 10360 | echo "configure:10361: checking for vsscanf" >&5 |
10f2d63a VZ |
10361 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
10362 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10363 | else | |
10364 | ||
10f2d63a | 10365 | cat > conftest.$ac_ext <<EOF |
f6bcfd97 | 10366 | #line 10367 "configure" |
10f2d63a | 10367 | #include "confdefs.h" |
10f2d63a | 10368 | |
f6bcfd97 BP |
10369 | #include <stdio.h> |
10370 | #include <stdarg.h> | |
10371 | ||
10372 | int main() { | |
10f2d63a | 10373 | |
f6bcfd97 | 10374 | int wx_test_vsscanf(const char *, ...); |
10f2d63a | 10375 | |
f6bcfd97 BP |
10376 | wx_test_vsscanf("%d"); |
10377 | return 0; | |
10f2d63a VZ |
10378 | } |
10379 | ||
f6bcfd97 | 10380 | int wx_test_vsscanf(const char *fmt, ...) |
10f2d63a | 10381 | { |
f6bcfd97 BP |
10382 | va_list argp; |
10383 | va_start(argp, fmt); | |
10384 | vsscanf("42", fmt, argp); | |
10385 | va_end(argp); | |
10386 | ||
10387 | ; return 0; } | |
10f2d63a | 10388 | EOF |
f6bcfd97 BP |
10389 | if { (eval echo configure:10390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10390 | rm -rf conftest* | |
10f2d63a | 10391 | |
f6bcfd97 | 10392 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
10393 | #define HAVE_VSSCANF 1 |
10394 | EOF | |
10395 | ||
f6bcfd97 BP |
10396 | wx_cv_func_vsscanf=yes |
10397 | ||
10f2d63a VZ |
10398 | else |
10399 | echo "configure: failed program was:" >&5 | |
10400 | cat conftest.$ac_ext >&5 | |
f6bcfd97 BP |
10401 | rm -rf conftest* |
10402 | ||
10403 | wx_cv_func_vsscanf=no | |
10404 | ||
10f2d63a | 10405 | fi |
f6bcfd97 | 10406 | rm -f conftest* |
10f2d63a VZ |
10407 | |
10408 | fi | |
10409 | ||
10410 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 | |
10411 | ||
10412 | ac_ext=c | |
10413 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10414 | ac_cpp='$CPP $CPPFLAGS' | |
10415 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10416 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10417 | cross_compiling=$ac_cv_prog_cc_cross | |
10418 | ||
10419 | ||
b089607b | 10420 | if test "$TOOLKIT" != "MSW"; then |
10f2d63a | 10421 | |
eb4efbdc VZ |
10422 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
10423 | for ac_func in sigaction | |
10424 | do | |
10425 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
f6bcfd97 | 10426 | echo "configure:10427: checking for $ac_func" >&5 |
eb4efbdc VZ |
10427 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10428 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10429 | else | |
10430 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 10431 | #line 10432 "configure" |
eb4efbdc VZ |
10432 | #include "confdefs.h" |
10433 | /* System header to define __stub macros and hopefully few prototypes, | |
10434 | which can conflict with char $ac_func(); below. */ | |
10435 | #include <assert.h> | |
10436 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10437 | /* We use char because int might match the return type of a gcc2 | |
10438 | builtin and then its argument prototype would still apply. */ | |
10439 | char $ac_func(); | |
10440 | ||
10441 | int main() { | |
10442 | ||
10443 | /* The GNU C library defines this for functions which it implements | |
10444 | to always fail with ENOSYS. Some functions are actually named | |
10445 | something starting with __ and the normal name is an alias. */ | |
10446 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10447 | choke me | |
10448 | #else | |
10449 | $ac_func(); | |
10450 | #endif | |
10451 | ||
10452 | ; return 0; } | |
10453 | EOF | |
f6bcfd97 | 10454 | if { (eval echo configure:10455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
eb4efbdc VZ |
10455 | rm -rf conftest* |
10456 | eval "ac_cv_func_$ac_func=yes" | |
10457 | else | |
10458 | echo "configure: failed program was:" >&5 | |
10459 | cat conftest.$ac_ext >&5 | |
10460 | rm -rf conftest* | |
10461 | eval "ac_cv_func_$ac_func=no" | |
10462 | fi | |
10463 | rm -f conftest* | |
10464 | fi | |
10465 | ||
10466 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10467 | echo "$ac_t""yes" 1>&6 | |
10468 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10469 | cat >> confdefs.h <<EOF | |
10470 | #define $ac_tr_func 1 | |
10471 | EOF | |
10472 | ||
10473 | else | |
10474 | echo "$ac_t""no" 1>&6 | |
10475 | fi | |
10476 | done | |
10477 | ||
10478 | ||
10479 | if test "$ac_cv_func_sigaction" = "no"; then | |
10480 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 | |
10481 | wxUSE_ON_FATAL_EXCEPTION=no | |
10482 | fi | |
f6bcfd97 BP |
10483 | |
10484 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
10485 | ||
10486 | ac_ext=C | |
10487 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10488 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10489 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10490 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10491 | cross_compiling=$ac_cv_prog_cxx_cross | |
10492 | ||
10493 | ||
10494 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 | |
10495 | echo "configure:10496: checking for sa_handler type" >&5 | |
10496 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then | |
10497 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10498 | else | |
10499 | ||
10500 | cat > conftest.$ac_ext <<EOF | |
10501 | #line 10502 "configure" | |
10502 | #include "confdefs.h" | |
10503 | #include <signal.h> | |
10504 | int main() { | |
10505 | ||
10506 | extern void testSigHandler(int); | |
10507 | ||
10508 | struct sigaction sa; | |
10509 | sa.sa_handler = testSigHandler; | |
10510 | ||
10511 | ; return 0; } | |
10512 | EOF | |
10513 | if { (eval echo configure:10514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
10514 | rm -rf conftest* | |
10515 | ||
10516 | wx_cv_type_sa_handler=int | |
10517 | ||
10518 | else | |
10519 | echo "configure: failed program was:" >&5 | |
10520 | cat conftest.$ac_ext >&5 | |
10521 | rm -rf conftest* | |
10522 | ||
10523 | wx_cv_type_sa_handler=void | |
10524 | ||
10525 | fi | |
10526 | rm -f conftest* | |
10527 | ||
10528 | fi | |
10529 | ||
10530 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
10531 | ||
10532 | ac_ext=c | |
10533 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10534 | ac_cpp='$CPP $CPPFLAGS' | |
10535 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10536 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10537 | cross_compiling=$ac_cv_prog_cc_cross | |
10538 | ||
10539 | ||
10540 | cat >> confdefs.h <<EOF | |
10541 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
10542 | EOF | |
10543 | ||
10544 | fi | |
eb4efbdc VZ |
10545 | fi |
10546 | ||
10f2d63a VZ |
10547 | for ac_func in vfork |
10548 | do | |
10549 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
f6bcfd97 | 10550 | echo "configure:10551: checking for $ac_func" >&5 |
10f2d63a VZ |
10551 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10552 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10553 | else | |
10554 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 10555 | #line 10556 "configure" |
10f2d63a VZ |
10556 | #include "confdefs.h" |
10557 | /* System header to define __stub macros and hopefully few prototypes, | |
10558 | which can conflict with char $ac_func(); below. */ | |
10559 | #include <assert.h> | |
10560 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10561 | /* We use char because int might match the return type of a gcc2 | |
10562 | builtin and then its argument prototype would still apply. */ | |
10563 | char $ac_func(); | |
10564 | ||
10565 | int main() { | |
10566 | ||
10567 | /* The GNU C library defines this for functions which it implements | |
10568 | to always fail with ENOSYS. Some functions are actually named | |
10569 | something starting with __ and the normal name is an alias. */ | |
10570 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10571 | choke me | |
10572 | #else | |
e8482f24 | 10573 | $ac_func(); |
10f2d63a VZ |
10574 | #endif |
10575 | ||
10576 | ; return 0; } | |
10577 | EOF | |
f6bcfd97 | 10578 | if { (eval echo configure:10579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
270a909e VZ |
10579 | rm -rf conftest* |
10580 | eval "ac_cv_func_$ac_func=yes" | |
10581 | else | |
10582 | echo "configure: failed program was:" >&5 | |
10583 | cat conftest.$ac_ext >&5 | |
10584 | rm -rf conftest* | |
10585 | eval "ac_cv_func_$ac_func=no" | |
10586 | fi | |
10587 | rm -f conftest* | |
10588 | fi | |
10589 | ||
10590 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10591 | echo "$ac_t""yes" 1>&6 | |
10592 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10593 | cat >> confdefs.h <<EOF | |
10594 | #define $ac_tr_func 1 | |
10595 | EOF | |
10596 | ||
10597 | else | |
10598 | echo "$ac_t""no" 1>&6 | |
10599 | fi | |
10600 | done | |
10601 | ||
10602 | ||
10603 | for ac_func in timegm | |
10604 | do | |
10605 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
f6bcfd97 | 10606 | echo "configure:10607: checking for $ac_func" >&5 |
270a909e VZ |
10607 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10608 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10609 | else | |
10610 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 10611 | #line 10612 "configure" |
270a909e VZ |
10612 | #include "confdefs.h" |
10613 | /* System header to define __stub macros and hopefully few prototypes, | |
10614 | which can conflict with char $ac_func(); below. */ | |
10615 | #include <assert.h> | |
10616 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10617 | /* We use char because int might match the return type of a gcc2 | |
10618 | builtin and then its argument prototype would still apply. */ | |
10619 | char $ac_func(); | |
10620 | ||
10621 | int main() { | |
10622 | ||
10623 | /* The GNU C library defines this for functions which it implements | |
10624 | to always fail with ENOSYS. Some functions are actually named | |
10625 | something starting with __ and the normal name is an alias. */ | |
10626 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10627 | choke me | |
10628 | #else | |
e8482f24 | 10629 | $ac_func(); |
270a909e VZ |
10630 | #endif |
10631 | ||
10632 | ; return 0; } | |
10633 | EOF | |
f6bcfd97 | 10634 | if { (eval echo configure:10635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10635 | rm -rf conftest* |
10636 | eval "ac_cv_func_$ac_func=yes" | |
10637 | else | |
10638 | echo "configure: failed program was:" >&5 | |
10639 | cat conftest.$ac_ext >&5 | |
10640 | rm -rf conftest* | |
10641 | eval "ac_cv_func_$ac_func=no" | |
10642 | fi | |
10643 | rm -f conftest* | |
10644 | fi | |
10645 | ||
10646 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10647 | echo "$ac_t""yes" 1>&6 | |
10648 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10649 | cat >> confdefs.h <<EOF | |
10650 | #define $ac_tr_func 1 | |
10651 | EOF | |
10652 | ||
10653 | else | |
10654 | echo "$ac_t""no" 1>&6 | |
10655 | fi | |
10656 | done | |
10657 | ||
10658 | ||
b12915c1 VZ |
10659 | HAVE_SOME_SLEEP_FUNC=0 |
10660 | if test "$USE_BEOS" = 1; then | |
10661 | cat >> confdefs.h <<\EOF | |
10662 | #define HAVE_SLEEP 1 | |
10663 | EOF | |
10664 | ||
10665 | HAVE_SOME_SLEEP_FUNC=1 | |
10666 | fi | |
10667 | ||
10668 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
10669 | POSIX4_LINK= | |
10670 | for ac_func in nanosleep | |
10f2d63a VZ |
10671 | do |
10672 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
f6bcfd97 | 10673 | echo "configure:10674: checking for $ac_func" >&5 |
10f2d63a VZ |
10674 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10675 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10676 | else | |
10677 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 10678 | #line 10679 "configure" |
10f2d63a VZ |
10679 | #include "confdefs.h" |
10680 | /* System header to define __stub macros and hopefully few prototypes, | |
10681 | which can conflict with char $ac_func(); below. */ | |
10682 | #include <assert.h> | |
10683 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10684 | /* We use char because int might match the return type of a gcc2 | |
10685 | builtin and then its argument prototype would still apply. */ | |
10686 | char $ac_func(); | |
10687 | ||
10688 | int main() { | |
10689 | ||
10690 | /* The GNU C library defines this for functions which it implements | |
10691 | to always fail with ENOSYS. Some functions are actually named | |
10692 | something starting with __ and the normal name is an alias. */ | |
10693 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10694 | choke me | |
10695 | #else | |
e8482f24 | 10696 | $ac_func(); |
10f2d63a VZ |
10697 | #endif |
10698 | ||
10699 | ; return 0; } | |
10700 | EOF | |
f6bcfd97 | 10701 | if { (eval echo configure:10702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10702 | rm -rf conftest* |
10703 | eval "ac_cv_func_$ac_func=yes" | |
10704 | else | |
10705 | echo "configure: failed program was:" >&5 | |
10706 | cat conftest.$ac_ext >&5 | |
10707 | rm -rf conftest* | |
10708 | eval "ac_cv_func_$ac_func=no" | |
10709 | fi | |
10710 | rm -f conftest* | |
10711 | fi | |
10712 | ||
10713 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10714 | echo "$ac_t""yes" 1>&6 | |
10715 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10716 | cat >> confdefs.h <<EOF | |
10717 | #define $ac_tr_func 1 | |
10718 | EOF | |
10719 | cat >> confdefs.h <<\EOF | |
10720 | #define HAVE_NANOSLEEP 1 | |
10721 | EOF | |
10722 | ||
10723 | else | |
10724 | echo "$ac_t""no" 1>&6 | |
10725 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
f6bcfd97 | 10726 | echo "configure:10727: checking for nanosleep in -lposix4" >&5 |
10f2d63a VZ |
10727 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
10728 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10729 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10730 | else | |
10731 | ac_save_LIBS="$LIBS" | |
10732 | LIBS="-lposix4 $LIBS" | |
10733 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 10734 | #line 10735 "configure" |
10f2d63a VZ |
10735 | #include "confdefs.h" |
10736 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10737 | /* We use char because int might match the return type of a gcc2 | |
10738 | builtin and then its argument prototype would still apply. */ | |
10739 | char nanosleep(); | |
10740 | ||
10741 | int main() { | |
10742 | nanosleep() | |
10743 | ; return 0; } | |
10744 | EOF | |
f6bcfd97 | 10745 | if { (eval echo configure:10746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10746 | rm -rf conftest* |
10747 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10748 | else | |
10749 | echo "configure: failed program was:" >&5 | |
10750 | cat conftest.$ac_ext >&5 | |
10751 | rm -rf conftest* | |
10752 | eval "ac_cv_lib_$ac_lib_var=no" | |
10753 | fi | |
10754 | rm -f conftest* | |
10755 | LIBS="$ac_save_LIBS" | |
10756 | ||
10757 | fi | |
10758 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10759 | echo "$ac_t""yes" 1>&6 | |
10760 | ||
b12915c1 | 10761 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
10762 | #define HAVE_NANOSLEEP 1 |
10763 | EOF | |
10764 | ||
b12915c1 VZ |
10765 | POSIX4_LINK="-lposix4" |
10766 | ||
10f2d63a VZ |
10767 | else |
10768 | echo "$ac_t""no" 1>&6 | |
10769 | ||
b12915c1 | 10770 | for ac_func in usleep |
10f2d63a VZ |
10771 | do |
10772 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
f6bcfd97 | 10773 | echo "configure:10774: checking for $ac_func" >&5 |
10f2d63a VZ |
10774 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10775 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10776 | else | |
10777 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 10778 | #line 10779 "configure" |
10f2d63a VZ |
10779 | #include "confdefs.h" |
10780 | /* System header to define __stub macros and hopefully few prototypes, | |
10781 | which can conflict with char $ac_func(); below. */ | |
10782 | #include <assert.h> | |
10783 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10784 | /* We use char because int might match the return type of a gcc2 | |
10785 | builtin and then its argument prototype would still apply. */ | |
10786 | char $ac_func(); | |
10787 | ||
10788 | int main() { | |
10789 | ||
10790 | /* The GNU C library defines this for functions which it implements | |
10791 | to always fail with ENOSYS. Some functions are actually named | |
10792 | something starting with __ and the normal name is an alias. */ | |
10793 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10794 | choke me | |
10795 | #else | |
e8482f24 | 10796 | $ac_func(); |
10f2d63a VZ |
10797 | #endif |
10798 | ||
10799 | ; return 0; } | |
10800 | EOF | |
f6bcfd97 | 10801 | if { (eval echo configure:10802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10802 | rm -rf conftest* |
10803 | eval "ac_cv_func_$ac_func=yes" | |
10804 | else | |
10805 | echo "configure: failed program was:" >&5 | |
10806 | cat conftest.$ac_ext >&5 | |
10807 | rm -rf conftest* | |
10808 | eval "ac_cv_func_$ac_func=no" | |
10809 | fi | |
10810 | rm -f conftest* | |
10811 | fi | |
10812 | ||
10813 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10814 | echo "$ac_t""yes" 1>&6 | |
10815 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10816 | cat >> confdefs.h <<EOF | |
10817 | #define $ac_tr_func 1 | |
10818 | EOF | |
b12915c1 | 10819 | |
10f2d63a VZ |
10820 | else |
10821 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
10822 | fi |
10823 | done | |
10824 | ||
b12915c1 VZ |
10825 | echo "configure: warning: wxSleep() function will not work" 1>&2 |
10826 | ||
10827 | ||
10f2d63a VZ |
10828 | fi |
10829 | ||
b12915c1 VZ |
10830 | |
10831 | ||
10f2d63a VZ |
10832 | fi |
10833 | done | |
10834 | ||
b12915c1 | 10835 | fi |
10f2d63a VZ |
10836 | |
10837 | for ac_func in uname gethostname | |
10838 | do | |
10839 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
f6bcfd97 | 10840 | echo "configure:10841: checking for $ac_func" >&5 |
10f2d63a VZ |
10841 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10842 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10843 | else | |
10844 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 10845 | #line 10846 "configure" |
10f2d63a VZ |
10846 | #include "confdefs.h" |
10847 | /* System header to define __stub macros and hopefully few prototypes, | |
10848 | which can conflict with char $ac_func(); below. */ | |
10849 | #include <assert.h> | |
10850 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10851 | /* We use char because int might match the return type of a gcc2 | |
10852 | builtin and then its argument prototype would still apply. */ | |
10853 | char $ac_func(); | |
10854 | ||
10855 | int main() { | |
10856 | ||
10857 | /* The GNU C library defines this for functions which it implements | |
10858 | to always fail with ENOSYS. Some functions are actually named | |
10859 | something starting with __ and the normal name is an alias. */ | |
10860 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10861 | choke me | |
10862 | #else | |
e8482f24 | 10863 | $ac_func(); |
10f2d63a VZ |
10864 | #endif |
10865 | ||
10866 | ; return 0; } | |
10867 | EOF | |
f6bcfd97 | 10868 | if { (eval echo configure:10869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10869 | rm -rf conftest* |
10870 | eval "ac_cv_func_$ac_func=yes" | |
10871 | else | |
10872 | echo "configure: failed program was:" >&5 | |
10873 | cat conftest.$ac_ext >&5 | |
10874 | rm -rf conftest* | |
10875 | eval "ac_cv_func_$ac_func=no" | |
10876 | fi | |
10877 | rm -f conftest* | |
10878 | fi | |
10879 | ||
10880 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10881 | echo "$ac_t""yes" 1>&6 | |
10882 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10883 | cat >> confdefs.h <<EOF | |
10884 | #define $ac_tr_func 1 | |
10885 | EOF | |
10886 | break | |
10887 | else | |
10888 | echo "$ac_t""no" 1>&6 | |
10889 | fi | |
10890 | done | |
10891 | ||
10892 | ||
6098c7f9 VZ |
10893 | |
10894 | ac_ext=C | |
10895 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10896 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10897 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10898 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10899 | cross_compiling=$ac_cv_prog_cxx_cross | |
10900 | ||
10901 | ||
10f2d63a VZ |
10902 | for ac_func in strtok_r |
10903 | do | |
10904 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
f6bcfd97 | 10905 | echo "configure:10906: checking for $ac_func" >&5 |
10f2d63a VZ |
10906 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10907 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10908 | else | |
10909 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 10910 | #line 10911 "configure" |
10f2d63a VZ |
10911 | #include "confdefs.h" |
10912 | /* System header to define __stub macros and hopefully few prototypes, | |
10913 | which can conflict with char $ac_func(); below. */ | |
10914 | #include <assert.h> | |
10915 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6098c7f9 VZ |
10916 | #ifdef __cplusplus |
10917 | extern "C" | |
10918 | #endif | |
10f2d63a VZ |
10919 | /* We use char because int might match the return type of a gcc2 |
10920 | builtin and then its argument prototype would still apply. */ | |
10921 | char $ac_func(); | |
10922 | ||
10923 | int main() { | |
10924 | ||
10925 | /* The GNU C library defines this for functions which it implements | |
10926 | to always fail with ENOSYS. Some functions are actually named | |
10927 | something starting with __ and the normal name is an alias. */ | |
10928 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10929 | choke me | |
10930 | #else | |
e8482f24 | 10931 | $ac_func(); |
10f2d63a VZ |
10932 | #endif |
10933 | ||
10934 | ; return 0; } | |
10935 | EOF | |
f6bcfd97 | 10936 | if { (eval echo configure:10937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10937 | rm -rf conftest* |
10938 | eval "ac_cv_func_$ac_func=yes" | |
10939 | else | |
10940 | echo "configure: failed program was:" >&5 | |
10941 | cat conftest.$ac_ext >&5 | |
10942 | rm -rf conftest* | |
10943 | eval "ac_cv_func_$ac_func=no" | |
10944 | fi | |
10945 | rm -f conftest* | |
10946 | fi | |
10947 | ||
10948 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10949 | echo "$ac_t""yes" 1>&6 | |
10950 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10951 | cat >> confdefs.h <<EOF | |
10952 | #define $ac_tr_func 1 | |
10953 | EOF | |
10954 | ||
10955 | else | |
10956 | echo "$ac_t""no" 1>&6 | |
10957 | fi | |
10958 | done | |
10959 | ||
10960 | ||
6098c7f9 VZ |
10961 | ac_ext=c |
10962 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10963 | ac_cpp='$CPP $CPPFLAGS' | |
10964 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10965 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10966 | cross_compiling=$ac_cv_prog_cc_cross | |
10967 | ||
10968 | ||
c63c7106 | 10969 | INET_LINK= |
10f2d63a VZ |
10970 | for ac_func in inet_addr |
10971 | do | |
10972 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
f6bcfd97 | 10973 | echo "configure:10974: checking for $ac_func" >&5 |
10f2d63a VZ |
10974 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10975 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10976 | else | |
10977 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 10978 | #line 10979 "configure" |
10f2d63a VZ |
10979 | #include "confdefs.h" |
10980 | /* System header to define __stub macros and hopefully few prototypes, | |
10981 | which can conflict with char $ac_func(); below. */ | |
10982 | #include <assert.h> | |
10983 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10984 | /* We use char because int might match the return type of a gcc2 | |
10985 | builtin and then its argument prototype would still apply. */ | |
10986 | char $ac_func(); | |
10987 | ||
10988 | int main() { | |
10989 | ||
10990 | /* The GNU C library defines this for functions which it implements | |
10991 | to always fail with ENOSYS. Some functions are actually named | |
10992 | something starting with __ and the normal name is an alias. */ | |
10993 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10994 | choke me | |
10995 | #else | |
e8482f24 | 10996 | $ac_func(); |
10f2d63a VZ |
10997 | #endif |
10998 | ||
10999 | ; return 0; } | |
11000 | EOF | |
f6bcfd97 | 11001 | if { (eval echo configure:11002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11002 | rm -rf conftest* |
11003 | eval "ac_cv_func_$ac_func=yes" | |
11004 | else | |
11005 | echo "configure: failed program was:" >&5 | |
11006 | cat conftest.$ac_ext >&5 | |
11007 | rm -rf conftest* | |
11008 | eval "ac_cv_func_$ac_func=no" | |
11009 | fi | |
11010 | rm -f conftest* | |
11011 | fi | |
11012 | ||
11013 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11014 | echo "$ac_t""yes" 1>&6 | |
11015 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11016 | cat >> confdefs.h <<EOF | |
11017 | #define $ac_tr_func 1 | |
11018 | EOF | |
c63c7106 VZ |
11019 | cat >> confdefs.h <<\EOF |
11020 | #define HAVE_INET_ADDR 1 | |
11021 | EOF | |
11022 | ||
10f2d63a VZ |
11023 | else |
11024 | echo "$ac_t""no" 1>&6 | |
c63c7106 | 11025 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 |
f6bcfd97 | 11026 | echo "configure:11027: checking for inet_addr in -lnsl" >&5 |
c63c7106 VZ |
11027 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
11028 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11029 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11030 | else | |
11031 | ac_save_LIBS="$LIBS" | |
11032 | LIBS="-lnsl $LIBS" | |
11033 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 11034 | #line 11035 "configure" |
c63c7106 VZ |
11035 | #include "confdefs.h" |
11036 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11037 | /* We use char because int might match the return type of a gcc2 | |
11038 | builtin and then its argument prototype would still apply. */ | |
11039 | char inet_addr(); | |
11040 | ||
11041 | int main() { | |
11042 | inet_addr() | |
11043 | ; return 0; } | |
11044 | EOF | |
f6bcfd97 | 11045 | if { (eval echo configure:11046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c63c7106 VZ |
11046 | rm -rf conftest* |
11047 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11048 | else | |
11049 | echo "configure: failed program was:" >&5 | |
11050 | cat conftest.$ac_ext >&5 | |
11051 | rm -rf conftest* | |
11052 | eval "ac_cv_lib_$ac_lib_var=no" | |
11053 | fi | |
11054 | rm -f conftest* | |
11055 | LIBS="$ac_save_LIBS" | |
11056 | ||
11057 | fi | |
11058 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11059 | echo "$ac_t""yes" 1>&6 | |
11060 | INET_LINK="nsl" | |
11061 | else | |
11062 | echo "$ac_t""no" 1>&6 | |
11063 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 | |
f6bcfd97 | 11064 | echo "configure:11065: checking for inet_addr in -lresolv" >&5 |
c63c7106 VZ |
11065 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
11066 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11067 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11068 | else | |
11069 | ac_save_LIBS="$LIBS" | |
11070 | LIBS="-lresolv $LIBS" | |
11071 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 11072 | #line 11073 "configure" |
c63c7106 VZ |
11073 | #include "confdefs.h" |
11074 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11075 | /* We use char because int might match the return type of a gcc2 | |
11076 | builtin and then its argument prototype would still apply. */ | |
11077 | char inet_addr(); | |
11078 | ||
11079 | int main() { | |
11080 | inet_addr() | |
11081 | ; return 0; } | |
11082 | EOF | |
f6bcfd97 | 11083 | if { (eval echo configure:11084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c63c7106 VZ |
11084 | rm -rf conftest* |
11085 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11086 | else | |
11087 | echo "configure: failed program was:" >&5 | |
11088 | cat conftest.$ac_ext >&5 | |
11089 | rm -rf conftest* | |
11090 | eval "ac_cv_lib_$ac_lib_var=no" | |
11091 | fi | |
11092 | rm -f conftest* | |
11093 | LIBS="$ac_save_LIBS" | |
11094 | ||
11095 | fi | |
11096 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11097 | echo "$ac_t""yes" 1>&6 | |
11098 | INET_LINK="resolv" | |
11099 | ||
11100 | else | |
11101 | echo "$ac_t""no" 1>&6 | |
11102 | fi | |
11103 | ||
11104 | ||
11105 | fi | |
11106 | ||
11107 | ||
11108 | ||
10f2d63a VZ |
11109 | fi |
11110 | done | |
11111 | ||
c63c7106 | 11112 | |
10f2d63a VZ |
11113 | for ac_func in inet_aton |
11114 | do | |
11115 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
f6bcfd97 | 11116 | echo "configure:11117: checking for $ac_func" >&5 |
10f2d63a VZ |
11117 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11118 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11119 | else | |
11120 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 11121 | #line 11122 "configure" |
10f2d63a VZ |
11122 | #include "confdefs.h" |
11123 | /* System header to define __stub macros and hopefully few prototypes, | |
11124 | which can conflict with char $ac_func(); below. */ | |
11125 | #include <assert.h> | |
11126 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11127 | /* We use char because int might match the return type of a gcc2 | |
11128 | builtin and then its argument prototype would still apply. */ | |
11129 | char $ac_func(); | |
11130 | ||
11131 | int main() { | |
11132 | ||
11133 | /* The GNU C library defines this for functions which it implements | |
11134 | to always fail with ENOSYS. Some functions are actually named | |
11135 | something starting with __ and the normal name is an alias. */ | |
11136 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11137 | choke me | |
11138 | #else | |
e8482f24 | 11139 | $ac_func(); |
10f2d63a VZ |
11140 | #endif |
11141 | ||
11142 | ; return 0; } | |
11143 | EOF | |
f6bcfd97 | 11144 | if { (eval echo configure:11145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11145 | rm -rf conftest* |
11146 | eval "ac_cv_func_$ac_func=yes" | |
11147 | else | |
11148 | echo "configure: failed program was:" >&5 | |
11149 | cat conftest.$ac_ext >&5 | |
11150 | rm -rf conftest* | |
11151 | eval "ac_cv_func_$ac_func=no" | |
11152 | fi | |
11153 | rm -f conftest* | |
11154 | fi | |
11155 | ||
11156 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11157 | echo "$ac_t""yes" 1>&6 | |
11158 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11159 | cat >> confdefs.h <<EOF | |
11160 | #define $ac_tr_func 1 | |
11161 | EOF | |
c63c7106 VZ |
11162 | cat >> confdefs.h <<\EOF |
11163 | #define HAVE_INET_ATON 1 | |
11164 | EOF | |
11165 | ||
10f2d63a VZ |
11166 | else |
11167 | echo "$ac_t""no" 1>&6 | |
c63c7106 | 11168 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 |
f6bcfd97 | 11169 | echo "configure:11170: checking for inet_aton in -l$INET_LINK" >&5 |
c63c7106 | 11170 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
10f2d63a VZ |
11171 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
11172 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11173 | else | |
11174 | ac_save_LIBS="$LIBS" | |
c63c7106 | 11175 | LIBS="-l$INET_LINK $LIBS" |
10f2d63a | 11176 | cat > conftest.$ac_ext <<EOF |
f6bcfd97 | 11177 | #line 11178 "configure" |
10f2d63a VZ |
11178 | #include "confdefs.h" |
11179 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11180 | /* We use char because int might match the return type of a gcc2 | |
11181 | builtin and then its argument prototype would still apply. */ | |
11182 | char inet_aton(); | |
11183 | ||
11184 | int main() { | |
11185 | inet_aton() | |
11186 | ; return 0; } | |
11187 | EOF | |
f6bcfd97 | 11188 | if { (eval echo configure:11189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11189 | rm -rf conftest* |
11190 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11191 | else | |
11192 | echo "configure: failed program was:" >&5 | |
11193 | cat conftest.$ac_ext >&5 | |
11194 | rm -rf conftest* | |
11195 | eval "ac_cv_lib_$ac_lib_var=no" | |
11196 | fi | |
11197 | rm -f conftest* | |
11198 | LIBS="$ac_save_LIBS" | |
11199 | ||
11200 | fi | |
11201 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11202 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
11203 | cat >> confdefs.h <<\EOF |
11204 | #define HAVE_INET_ATON 1 | |
10f2d63a VZ |
11205 | EOF |
11206 | ||
10f2d63a VZ |
11207 | else |
11208 | echo "$ac_t""no" 1>&6 | |
11209 | fi | |
11210 | ||
c63c7106 VZ |
11211 | |
11212 | fi | |
11213 | done | |
11214 | ||
11215 | ||
11216 | if test "x$INET_LINK" != "x"; then | |
11217 | cat >> confdefs.h <<\EOF | |
11218 | #define HAVE_INET_ADDR 1 | |
11219 | EOF | |
11220 | ||
11221 | INET_LINK="-l$INET_LINK" | |
11222 | fi | |
10f2d63a VZ |
11223 | |
11224 | fi | |
11225 | ||
11226 | ||
11227 | cat > confcache <<\EOF | |
11228 | # This file is a shell script that caches the results of configure | |
11229 | # tests run on this system so they can be shared between configure | |
11230 | # scripts and configure runs. It is not useful on other systems. | |
11231 | # If it contains results you don't want to keep, you may remove or edit it. | |
11232 | # | |
11233 | # By default, configure uses ./config.cache as the cache file, | |
11234 | # creating it if it does not exist already. You can give configure | |
11235 | # the --cache-file=FILE option to use a different cache file; that is | |
11236 | # what configure does when it calls configure scripts in | |
11237 | # subdirectories, so they share the cache. | |
11238 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
11239 | # config.status only pays attention to the cache file if you give it the | |
11240 | # --recheck option to rerun configure. | |
11241 | # | |
11242 | EOF | |
11243 | # The following way of writing the cache mishandles newlines in values, | |
11244 | # but we know of no workaround that is simple, portable, and efficient. | |
11245 | # So, don't put newlines in cache variables' values. | |
11246 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
11247 | # and sets the high bit in the cache file unless we assign to the vars. | |
11248 | (set) 2>&1 | | |
11249 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
11250 | *ac_space=\ *) | |
11251 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
11252 | # turns \\\\ into \\, and sed turns \\ into \). | |
11253 | sed -n \ | |
11254 | -e "s/'/'\\\\''/g" \ | |
11255 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
11256 | ;; | |
11257 | *) | |
11258 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
11259 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
11260 | ;; | |
11261 | esac >> confcache | |
11262 | if cmp -s $cache_file confcache; then | |
11263 | : | |
11264 | else | |
11265 | if test -w $cache_file; then | |
11266 | echo "updating cache $cache_file" | |
11267 | cat confcache > $cache_file | |
11268 | else | |
11269 | echo "not updating unwritable cache $cache_file" | |
11270 | fi | |
11271 | fi | |
11272 | rm -f confcache | |
11273 | ||
11274 | ||
11275 | ||
b089607b | 11276 | if test "$TOOLKIT" != "MSW"; then |
10f2d63a VZ |
11277 | |
11278 | ||
11279 | THREADS_LINK="" | |
11280 | THREADS_OBJ="" | |
11281 | ||
11282 | if test "$wxUSE_THREADS" = "yes" ; then | |
11283 | if test "$wxUSE_WINE" = 1 ; then | |
11284 | echo "configure: warning: Threads are not supported under WINE" 1>&2 | |
11285 | wxUSE_THREADS="no" | |
b12915c1 VZ |
11286 | elif test "$USE_BEOS" = 1; then |
11287 | echo "configure: warning: BeOS threads are not yet supported" 1>&2 | |
11288 | wxUSE_THREADS="no" | |
10f2d63a VZ |
11289 | fi |
11290 | fi | |
11291 | ||
11292 | if test "$wxUSE_THREADS" = "yes" ; then | |
11293 | ||
f6bcfd97 BP |
11294 | if test "$wxUSE_AIX" = 1; then |
11295 | THREADS_LIB=pthreads | |
11296 | else | |
11297 | THREADS_LIB=pthread | |
11298 | fi | |
11299 | ||
11300 | echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6 | |
11301 | echo "configure:11302: checking for pthread_create in -l$THREADS_LIB" >&5 | |
11302 | ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'` | |
10f2d63a VZ |
11303 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
11304 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11305 | else | |
11306 | ac_save_LIBS="$LIBS" | |
f6bcfd97 | 11307 | LIBS="-l$THREADS_LIB $LIBS" |
10f2d63a | 11308 | cat > conftest.$ac_ext <<EOF |
f6bcfd97 | 11309 | #line 11310 "configure" |
10f2d63a VZ |
11310 | #include "confdefs.h" |
11311 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11312 | /* We use char because int might match the return type of a gcc2 | |
11313 | builtin and then its argument prototype would still apply. */ | |
11314 | char pthread_create(); | |
11315 | ||
11316 | int main() { | |
11317 | pthread_create() | |
11318 | ; return 0; } | |
11319 | EOF | |
f6bcfd97 | 11320 | if { (eval echo configure:11321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11321 | rm -rf conftest* |
11322 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11323 | else | |
11324 | echo "configure: failed program was:" >&5 | |
11325 | cat conftest.$ac_ext >&5 | |
11326 | rm -rf conftest* | |
11327 | eval "ac_cv_lib_$ac_lib_var=no" | |
11328 | fi | |
11329 | rm -f conftest* | |
11330 | LIBS="$ac_save_LIBS" | |
11331 | ||
11332 | fi | |
11333 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11334 | echo "$ac_t""yes" 1>&6 | |
11335 | ||
11336 | THREADS_OBJ="threadpsx.lo" | |
f6bcfd97 | 11337 | THREADS_LINK=$THREADS_LIB |
10f2d63a VZ |
11338 | |
11339 | else | |
11340 | echo "$ac_t""no" 1>&6 | |
11341 | ||
11342 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 | |
f6bcfd97 | 11343 | echo "configure:11344: checking for pthread_create in -lc_r" >&5 |
10f2d63a VZ |
11344 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
11345 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11346 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11347 | else | |
11348 | ac_save_LIBS="$LIBS" | |
11349 | LIBS="-lc_r $LIBS" | |
11350 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 11351 | #line 11352 "configure" |
10f2d63a VZ |
11352 | #include "confdefs.h" |
11353 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11354 | /* We use char because int might match the return type of a gcc2 | |
11355 | builtin and then its argument prototype would still apply. */ | |
11356 | char pthread_create(); | |
11357 | ||
11358 | int main() { | |
11359 | pthread_create() | |
11360 | ; return 0; } | |
11361 | EOF | |
f6bcfd97 | 11362 | if { (eval echo configure:11363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11363 | rm -rf conftest* |
11364 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11365 | else | |
11366 | echo "configure: failed program was:" >&5 | |
11367 | cat conftest.$ac_ext >&5 | |
11368 | rm -rf conftest* | |
11369 | eval "ac_cv_lib_$ac_lib_var=no" | |
11370 | fi | |
11371 | rm -f conftest* | |
11372 | LIBS="$ac_save_LIBS" | |
11373 | ||
11374 | fi | |
11375 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11376 | echo "$ac_t""yes" 1>&6 | |
11377 | ||
11378 | THREADS_OBJ="threadpsx.lo" | |
11379 | THREADS_LINK="c_r" | |
11380 | ||
11381 | else | |
11382 | echo "$ac_t""no" 1>&6 | |
11383 | ||
11384 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` | |
11385 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 | |
f6bcfd97 | 11386 | echo "configure:11387: checking for sys/prctl.h" >&5 |
10f2d63a VZ |
11387 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11388 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11389 | else | |
11390 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 11391 | #line 11392 "configure" |
10f2d63a VZ |
11392 | #include "confdefs.h" |
11393 | #include <sys/prctl.h> | |
11394 | EOF | |
11395 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f6bcfd97 | 11396 | { (eval echo configure:11397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
11397 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11398 | if test -z "$ac_err"; then | |
11399 | rm -rf conftest* | |
11400 | eval "ac_cv_header_$ac_safe=yes" | |
11401 | else | |
11402 | echo "$ac_err" >&5 | |
11403 | echo "configure: failed program was:" >&5 | |
11404 | cat conftest.$ac_ext >&5 | |
11405 | rm -rf conftest* | |
11406 | eval "ac_cv_header_$ac_safe=no" | |
11407 | fi | |
11408 | rm -f conftest* | |
11409 | fi | |
11410 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11411 | echo "$ac_t""yes" 1>&6 | |
11412 | ||
11413 | THREADS_OBJ="threadsgi.lo" | |
11414 | ||
11415 | else | |
11416 | echo "$ac_t""no" 1>&6 | |
11417 | fi | |
11418 | ||
11419 | ||
11420 | fi | |
11421 | ||
11422 | ||
11423 | fi | |
11424 | ||
11425 | ||
11426 | if test -z "$THREADS_OBJ" ; then | |
11427 | wxUSE_THREADS=no | |
11428 | echo "configure: warning: No thread support on this system" 1>&2 | |
11429 | fi | |
11430 | fi | |
11431 | ||
11432 | if test "$wxUSE_THREADS" = "yes" ; then | |
70846f0a VZ |
11433 | for ac_func in thr_setconcurrency |
11434 | do | |
11435 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
f6bcfd97 | 11436 | echo "configure:11437: checking for $ac_func" >&5 |
70846f0a VZ |
11437 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11438 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11439 | else | |
11440 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 11441 | #line 11442 "configure" |
70846f0a VZ |
11442 | #include "confdefs.h" |
11443 | /* System header to define __stub macros and hopefully few prototypes, | |
11444 | which can conflict with char $ac_func(); below. */ | |
11445 | #include <assert.h> | |
11446 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11447 | /* We use char because int might match the return type of a gcc2 | |
11448 | builtin and then its argument prototype would still apply. */ | |
11449 | char $ac_func(); | |
11450 | ||
11451 | int main() { | |
11452 | ||
11453 | /* The GNU C library defines this for functions which it implements | |
11454 | to always fail with ENOSYS. Some functions are actually named | |
11455 | something starting with __ and the normal name is an alias. */ | |
11456 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11457 | choke me | |
11458 | #else | |
e8482f24 | 11459 | $ac_func(); |
70846f0a VZ |
11460 | #endif |
11461 | ||
11462 | ; return 0; } | |
11463 | EOF | |
f6bcfd97 | 11464 | if { (eval echo configure:11465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
70846f0a VZ |
11465 | rm -rf conftest* |
11466 | eval "ac_cv_func_$ac_func=yes" | |
11467 | else | |
11468 | echo "configure: failed program was:" >&5 | |
11469 | cat conftest.$ac_ext >&5 | |
11470 | rm -rf conftest* | |
11471 | eval "ac_cv_func_$ac_func=no" | |
11472 | fi | |
11473 | rm -f conftest* | |
11474 | fi | |
11475 | ||
11476 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11477 | echo "$ac_t""yes" 1>&6 | |
11478 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11479 | cat >> confdefs.h <<EOF | |
11480 | #define $ac_tr_func 1 | |
11481 | EOF | |
11482 | ||
11483 | else | |
11484 | echo "$ac_t""no" 1>&6 | |
11485 | fi | |
11486 | done | |
11487 | ||
11488 | ||
10f2d63a VZ |
11489 | |
11490 | for ac_hdr in sched.h | |
11491 | do | |
11492 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
11493 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
f6bcfd97 | 11494 | echo "configure:11495: checking for $ac_hdr" >&5 |
10f2d63a VZ |
11495 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11496 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11497 | else | |
11498 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 11499 | #line 11500 "configure" |
10f2d63a VZ |
11500 | #include "confdefs.h" |
11501 | #include <$ac_hdr> | |
11502 | EOF | |
11503 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f6bcfd97 | 11504 | { (eval echo configure:11505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
11505 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11506 | if test -z "$ac_err"; then | |
11507 | rm -rf conftest* | |
11508 | eval "ac_cv_header_$ac_safe=yes" | |
11509 | else | |
11510 | echo "$ac_err" >&5 | |
11511 | echo "configure: failed program was:" >&5 | |
11512 | cat conftest.$ac_ext >&5 | |
11513 | rm -rf conftest* | |
11514 | eval "ac_cv_header_$ac_safe=no" | |
11515 | fi | |
11516 | rm -f conftest* | |
11517 | fi | |
11518 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11519 | echo "$ac_t""yes" 1>&6 | |
11520 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11521 | cat >> confdefs.h <<EOF | |
11522 | #define $ac_tr_hdr 1 | |
11523 | EOF | |
11524 | ||
11525 | else | |
11526 | echo "$ac_t""no" 1>&6 | |
11527 | fi | |
11528 | done | |
11529 | ||
11530 | ||
11531 | echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6 | |
f6bcfd97 | 11532 | echo "configure:11533: checking for sched_yield in -l$THREADS_LINK" >&5 |
10f2d63a VZ |
11533 | ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'` |
11534 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11535 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11536 | else | |
11537 | ac_save_LIBS="$LIBS" | |
11538 | LIBS="-l$THREADS_LINK $LIBS" | |
11539 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 11540 | #line 11541 "configure" |
10f2d63a VZ |
11541 | #include "confdefs.h" |
11542 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11543 | /* We use char because int might match the return type of a gcc2 | |
11544 | builtin and then its argument prototype would still apply. */ | |
11545 | char sched_yield(); | |
11546 | ||
11547 | int main() { | |
11548 | sched_yield() | |
11549 | ; return 0; } | |
11550 | EOF | |
f6bcfd97 | 11551 | if { (eval echo configure:11552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11552 | rm -rf conftest* |
11553 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11554 | else | |
11555 | echo "configure: failed program was:" >&5 | |
11556 | cat conftest.$ac_ext >&5 | |
11557 | rm -rf conftest* | |
11558 | eval "ac_cv_lib_$ac_lib_var=no" | |
11559 | fi | |
11560 | rm -f conftest* | |
11561 | LIBS="$ac_save_LIBS" | |
11562 | ||
11563 | fi | |
11564 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11565 | echo "$ac_t""yes" 1>&6 | |
11566 | cat >> confdefs.h <<\EOF | |
11567 | #define HAVE_SCHED_YIELD 1 | |
11568 | EOF | |
11569 | ||
11570 | else | |
11571 | echo "$ac_t""no" 1>&6 | |
11572 | echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6 | |
f6bcfd97 | 11573 | echo "configure:11574: checking for sched_yield in -l"posix4"" >&5 |
10f2d63a VZ |
11574 | ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'` |
11575 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11576 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11577 | else | |
11578 | ac_save_LIBS="$LIBS" | |
11579 | LIBS="-l"posix4" $LIBS" | |
11580 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 11581 | #line 11582 "configure" |
10f2d63a VZ |
11582 | #include "confdefs.h" |
11583 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11584 | /* We use char because int might match the return type of a gcc2 | |
11585 | builtin and then its argument prototype would still apply. */ | |
11586 | char sched_yield(); | |
11587 | ||
11588 | int main() { | |
11589 | sched_yield() | |
11590 | ; return 0; } | |
11591 | EOF | |
f6bcfd97 | 11592 | if { (eval echo configure:11593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11593 | rm -rf conftest* |
11594 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11595 | else | |
11596 | echo "configure: failed program was:" >&5 | |
11597 | cat conftest.$ac_ext >&5 | |
11598 | rm -rf conftest* | |
11599 | eval "ac_cv_lib_$ac_lib_var=no" | |
11600 | fi | |
11601 | rm -f conftest* | |
11602 | LIBS="$ac_save_LIBS" | |
11603 | ||
11604 | fi | |
11605 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11606 | echo "$ac_t""yes" 1>&6 | |
11607 | cat >> confdefs.h <<\EOF | |
11608 | #define HAVE_SCHED_YIELD 1 | |
11609 | EOF | |
11610 | POSIX4_LINK="-lposix4" | |
11611 | else | |
11612 | echo "$ac_t""no" 1>&6 | |
11613 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
11614 | ||
11615 | fi | |
11616 | ||
11617 | ||
11618 | fi | |
11619 | ||
11620 | ||
f6bcfd97 BP |
11621 | HAVE_PRIOR_FUNCS=0 |
11622 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6 | |
11623 | echo "configure:11624: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5 | |
10f2d63a VZ |
11624 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
11625 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11626 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11627 | else | |
11628 | ac_save_LIBS="$LIBS" | |
11629 | LIBS="-l$THREADS_LINK $LIBS" | |
11630 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 11631 | #line 11632 "configure" |
10f2d63a VZ |
11632 | #include "confdefs.h" |
11633 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11634 | /* We use char because int might match the return type of a gcc2 | |
11635 | builtin and then its argument prototype would still apply. */ | |
11636 | char pthread_attr_getschedpolicy(); | |
11637 | ||
11638 | int main() { | |
11639 | pthread_attr_getschedpolicy() | |
11640 | ; return 0; } | |
11641 | EOF | |
f6bcfd97 | 11642 | if { (eval echo configure:11643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11643 | rm -rf conftest* |
11644 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11645 | else | |
11646 | echo "configure: failed program was:" >&5 | |
11647 | cat conftest.$ac_ext >&5 | |
11648 | rm -rf conftest* | |
11649 | eval "ac_cv_lib_$ac_lib_var=no" | |
11650 | fi | |
11651 | rm -f conftest* | |
11652 | LIBS="$ac_save_LIBS" | |
11653 | ||
11654 | fi | |
11655 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11656 | echo "$ac_t""yes" 1>&6 | |
f6bcfd97 BP |
11657 | echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6 |
11658 | echo "configure:11659: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5 | |
11659 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'` | |
11660 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11661 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11662 | else | |
11663 | ac_save_LIBS="$LIBS" | |
11664 | LIBS="-l$THREADS_LINK $LIBS" | |
11665 | cat > conftest.$ac_ext <<EOF | |
11666 | #line 11667 "configure" | |
11667 | #include "confdefs.h" | |
11668 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11669 | /* We use char because int might match the return type of a gcc2 | |
11670 | builtin and then its argument prototype would still apply. */ | |
11671 | char pthread_attr_setschedparam(); | |
11672 | ||
11673 | int main() { | |
11674 | pthread_attr_setschedparam() | |
11675 | ; return 0; } | |
10f2d63a | 11676 | EOF |
f6bcfd97 BP |
11677 | if { (eval echo configure:11678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
11678 | rm -rf conftest* | |
11679 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11680 | else | |
11681 | echo "configure: failed program was:" >&5 | |
11682 | cat conftest.$ac_ext >&5 | |
11683 | rm -rf conftest* | |
11684 | eval "ac_cv_lib_$ac_lib_var=no" | |
11685 | fi | |
11686 | rm -f conftest* | |
11687 | LIBS="$ac_save_LIBS" | |
10f2d63a | 11688 | |
f6bcfd97 BP |
11689 | fi |
11690 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11691 | echo "$ac_t""yes" 1>&6 | |
11692 | echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6 | |
11693 | echo "configure:11694: checking for sched_get_priority_max in -l$THREADS_LINK" >&5 | |
11694 | ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'` | |
11695 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11696 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11697 | else | |
11698 | ac_save_LIBS="$LIBS" | |
11699 | LIBS="-l$THREADS_LINK $LIBS" | |
11700 | cat > conftest.$ac_ext <<EOF | |
11701 | #line 11702 "configure" | |
11702 | #include "confdefs.h" | |
11703 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11704 | /* We use char because int might match the return type of a gcc2 | |
11705 | builtin and then its argument prototype would still apply. */ | |
11706 | char sched_get_priority_max(); | |
11707 | ||
11708 | int main() { | |
11709 | sched_get_priority_max() | |
11710 | ; return 0; } | |
11711 | EOF | |
11712 | if { (eval echo configure:11713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
11713 | rm -rf conftest* | |
11714 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11715 | else | |
11716 | echo "configure: failed program was:" >&5 | |
11717 | cat conftest.$ac_ext >&5 | |
11718 | rm -rf conftest* | |
11719 | eval "ac_cv_lib_$ac_lib_var=no" | |
11720 | fi | |
11721 | rm -f conftest* | |
11722 | LIBS="$ac_save_LIBS" | |
11723 | ||
11724 | fi | |
11725 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11726 | echo "$ac_t""yes" 1>&6 | |
11727 | HAVE_PRIOR_FUNCS=1 | |
10f2d63a VZ |
11728 | else |
11729 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
11730 | echo $ac_n "checking for sched_get_priority_max in -l"posix4"""... $ac_c" 1>&6 |
11731 | echo "configure:11732: checking for sched_get_priority_max in -l"posix4"" >&5 | |
11732 | ac_lib_var=`echo "posix4"'_'sched_get_priority_max | sed 'y%./+-%__p_%'` | |
10f2d63a VZ |
11733 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
11734 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11735 | else | |
11736 | ac_save_LIBS="$LIBS" | |
11737 | LIBS="-l"posix4" $LIBS" | |
11738 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 11739 | #line 11740 "configure" |
10f2d63a VZ |
11740 | #include "confdefs.h" |
11741 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11742 | /* We use char because int might match the return type of a gcc2 | |
11743 | builtin and then its argument prototype would still apply. */ | |
f6bcfd97 | 11744 | char sched_get_priority_max(); |
10f2d63a VZ |
11745 | |
11746 | int main() { | |
f6bcfd97 | 11747 | sched_get_priority_max() |
10f2d63a VZ |
11748 | ; return 0; } |
11749 | EOF | |
f6bcfd97 | 11750 | if { (eval echo configure:11751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11751 | rm -rf conftest* |
11752 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11753 | else | |
11754 | echo "configure: failed program was:" >&5 | |
11755 | cat conftest.$ac_ext >&5 | |
11756 | rm -rf conftest* | |
11757 | eval "ac_cv_lib_$ac_lib_var=no" | |
11758 | fi | |
11759 | rm -f conftest* | |
11760 | LIBS="$ac_save_LIBS" | |
11761 | ||
11762 | fi | |
11763 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11764 | echo "$ac_t""yes" 1>&6 | |
f6bcfd97 BP |
11765 | |
11766 | HAVE_PRIOR_FUNCS=1 | |
11767 | POSIX4_LINK="-lposix4" | |
11768 | ||
11769 | else | |
11770 | echo "$ac_t""no" 1>&6 | |
11771 | fi | |
11772 | ||
11773 | ||
11774 | fi | |
11775 | ||
11776 | ||
10f2d63a VZ |
11777 | else |
11778 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
11779 | fi |
11780 | ||
11781 | ||
f6bcfd97 BP |
11782 | else |
11783 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
11784 | fi |
11785 | ||
11786 | ||
f6bcfd97 BP |
11787 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
11788 | cat >> confdefs.h <<\EOF | |
11789 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
11790 | EOF | |
11791 | ||
11792 | else | |
11793 | echo "configure: warning: Setting thread priority will not work" 1>&2 | |
11794 | fi | |
11795 | ||
10f2d63a | 11796 | echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6 |
f6bcfd97 | 11797 | echo "configure:11798: checking for pthread_cancel in -l$THREADS_LINK" >&5 |
10f2d63a VZ |
11798 | ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'` |
11799 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11800 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11801 | else | |
11802 | ac_save_LIBS="$LIBS" | |
11803 | LIBS="-l$THREADS_LINK $LIBS" | |
11804 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 11805 | #line 11806 "configure" |
10f2d63a VZ |
11806 | #include "confdefs.h" |
11807 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11808 | /* We use char because int might match the return type of a gcc2 | |
11809 | builtin and then its argument prototype would still apply. */ | |
11810 | char pthread_cancel(); | |
11811 | ||
11812 | int main() { | |
11813 | pthread_cancel() | |
11814 | ; return 0; } | |
11815 | EOF | |
f6bcfd97 | 11816 | if { (eval echo configure:11817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11817 | rm -rf conftest* |
11818 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11819 | else | |
11820 | echo "configure: failed program was:" >&5 | |
11821 | cat conftest.$ac_ext >&5 | |
11822 | rm -rf conftest* | |
11823 | eval "ac_cv_lib_$ac_lib_var=no" | |
11824 | fi | |
11825 | rm -f conftest* | |
11826 | LIBS="$ac_save_LIBS" | |
11827 | ||
11828 | fi | |
11829 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11830 | echo "$ac_t""yes" 1>&6 | |
11831 | cat >> confdefs.h <<\EOF | |
11832 | #define HAVE_PTHREAD_CANCEL 1 | |
11833 | EOF | |
11834 | ||
11835 | else | |
11836 | echo "$ac_t""no" 1>&6 | |
11837 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
11838 | fi | |
11839 | ||
11840 | ||
11841 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 | |
f6bcfd97 | 11842 | echo "configure:11843: checking for pthread_cleanup_push/pop" >&5 |
10f2d63a VZ |
11843 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
11844 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11845 | else | |
11846 | ||
11847 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 11848 | #line 11849 "configure" |
10f2d63a VZ |
11849 | #include "confdefs.h" |
11850 | #include <pthread.h> | |
11851 | int main() { | |
11852 | ||
11853 | pthread_cleanup_push(NULL, NULL); | |
11854 | pthread_cleanup_pop(0); | |
11855 | ||
11856 | ; return 0; } | |
11857 | EOF | |
f6bcfd97 | 11858 | if { (eval echo configure:11859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
11859 | rm -rf conftest* |
11860 | ||
11861 | wx_cv_func_pthread_cleanup_push=yes | |
11862 | cat >> confdefs.h <<\EOF | |
11863 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 | |
11864 | EOF | |
11865 | ||
11866 | ||
11867 | else | |
11868 | echo "configure: failed program was:" >&5 | |
11869 | cat conftest.$ac_ext >&5 | |
11870 | rm -rf conftest* | |
11871 | ||
11872 | wx_cv_func_pthread_cleanup_push=no | |
11873 | ||
11874 | fi | |
11875 | rm -f conftest* | |
11876 | ||
11877 | fi | |
11878 | ||
11879 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
11880 | ||
11881 | THREADS_LINK="-l$THREADS_LINK" | |
11882 | fi | |
11883 | ||
11884 | fi | |
11885 | ||
11886 | if test "$wxUSE_THREADS" = "yes"; then | |
11887 | cat >> confdefs.h <<\EOF | |
11888 | #define wxUSE_THREADS 1 | |
11889 | EOF | |
11890 | ||
11891 | ||
11892 | CFLAGS="${CFLAGS} -D_REENTRANT" | |
11893 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" | |
11894 | ||
11895 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
11896 | else | |
11897 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
ab9b9eab | 11898 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 |
f6bcfd97 | 11899 | echo "configure:11900: checking if -D_REENTRANT is needed" >&5 |
ab9b9eab VZ |
11900 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
11901 | CFLAGS="${CFLAGS} -D_REENTRANT" | |
11902 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" | |
11903 | echo "$ac_t""yes" 1>&6 | |
11904 | else | |
11905 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
11906 | fi |
11907 | fi | |
11908 | fi | |
11909 | ||
13111b2a VZ |
11910 | if test "$WXGTK13" = 1 ; then |
11911 | cat >> confdefs.h <<EOF | |
11912 | #define __WXGTK13__ $WXGTK13 | |
11913 | EOF | |
11914 | ||
11915 | WXGTK12=1 | |
11916 | fi | |
11917 | ||
10f2d63a VZ |
11918 | if test "$WXGTK12" = 1 ; then |
11919 | cat >> confdefs.h <<EOF | |
11920 | #define __WXGTK12__ $WXGTK12 | |
11921 | EOF | |
11922 | ||
11923 | fi | |
11924 | ||
f6bcfd97 BP |
11925 | if test "$WXGTK127" = 1 ; then |
11926 | cat >> confdefs.h <<EOF | |
11927 | #define __WXGTK127__ $WXGTK127 | |
11928 | EOF | |
11929 | ||
11930 | fi | |
11931 | ||
10f2d63a VZ |
11932 | if test "$WXWINE" = 1 ; then |
11933 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__" | |
11934 | fi | |
11935 | ||
11936 | if test "$wxUSE_CYGWIN" = 1 ; then | |
11937 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__" | |
11938 | fi | |
11939 | ||
11940 | WXDEBUG= | |
11941 | ||
11942 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
11943 | WXDEBUG="-g" | |
11944 | wxUSE_OPTIMISE=no | |
11945 | fi | |
11946 | ||
11947 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
11948 | wxUSE_DEBUG_INFO=yes | |
11949 | WXDEBUG="-ggdb" | |
11950 | fi | |
11951 | ||
11952 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
11953 | cat >> confdefs.h <<\EOF | |
11954 | #define WXDEBUG 1 | |
11955 | EOF | |
11956 | ||
11957 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
11958 | else | |
11959 | if test "$wxUSE_GTK" = 1 ; then | |
11960 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
11961 | fi | |
11962 | fi | |
11963 | ||
11964 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
11965 | cat >> confdefs.h <<\EOF | |
11966 | #define wxUSE_MEMORY_TRACING 1 | |
11967 | EOF | |
11968 | ||
11969 | cat >> confdefs.h <<\EOF | |
11970 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
47c13eb7 VS |
11971 | EOF |
11972 | ||
11973 | cat >> confdefs.h <<\EOF | |
11974 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
10f2d63a VZ |
11975 | EOF |
11976 | ||
11977 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
11978 | fi | |
11979 | ||
11980 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
11981 | DMALLOC_LINK="-ldmalloc" | |
11982 | fi | |
11983 | ||
11984 | PROFILE= | |
11985 | if test "$wxUSE_PROFILE" = "yes" ; then | |
11986 | PROFILE="-pg" | |
11987 | fi | |
11988 | ||
11989 | DEP_INFO_FLAGS= | |
caa2c79b | 11990 | CODE_GEN_FLAGS= |
10f2d63a VZ |
11991 | if test "$GCC" = yes ; then |
11992 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
caa2c79b | 11993 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-rtti" |
10f2d63a VZ |
11994 | fi |
11995 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
caa2c79b | 11996 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-exceptions" |
10f2d63a VZ |
11997 | fi |
11998 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
caa2c79b | 11999 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" |
10f2d63a VZ |
12000 | fi |
12001 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
12002 | DEP_INFO_FLAGS="-MMD" | |
12003 | fi | |
12004 | fi | |
12005 | ||
12006 | ||
12007 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` | |
12008 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
12009 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
12010 | OPTIMISE= | |
12011 | else | |
12012 | if test "$GCC" = yes ; then | |
12013 | OPTIMISE="-O2" | |
12014 | case "${host}" in | |
12015 | i586-*-*|i686-*-* ) | |
12016 | OPTIMISE="${OPTIMISE} " | |
12017 | ;; | |
12018 | esac | |
12019 | else | |
12020 | OPTIMISE="-O" | |
12021 | fi | |
12022 | fi | |
12023 | ||
12024 | ||
12025 | ZLIB_INCLUDE= | |
422107f9 | 12026 | if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then |
10f2d63a VZ |
12027 | cat >> confdefs.h <<\EOF |
12028 | #define wxUSE_ZLIB 1 | |
12029 | EOF | |
12030 | ||
422107f9 VZ |
12031 | if test "$wxUSE_ZLIB" = "yes" ; then |
12032 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
12033 | else | |
12034 | ZLIB_LINK= | |
12035 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` | |
12036 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
f6bcfd97 | 12037 | echo "configure:12038: checking for zlib.h" >&5 |
422107f9 VZ |
12038 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12039 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12040 | else | |
12041 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 12042 | #line 12043 "configure" |
422107f9 VZ |
12043 | #include "confdefs.h" |
12044 | #include <zlib.h> | |
12045 | EOF | |
12046 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f6bcfd97 | 12047 | { (eval echo configure:12048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
422107f9 VZ |
12048 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12049 | if test -z "$ac_err"; then | |
12050 | rm -rf conftest* | |
12051 | eval "ac_cv_header_$ac_safe=yes" | |
12052 | else | |
12053 | echo "$ac_err" >&5 | |
12054 | echo "configure: failed program was:" >&5 | |
12055 | cat conftest.$ac_ext >&5 | |
12056 | rm -rf conftest* | |
12057 | eval "ac_cv_header_$ac_safe=no" | |
12058 | fi | |
12059 | rm -f conftest* | |
12060 | fi | |
12061 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12062 | echo "$ac_t""yes" 1>&6 | |
12063 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 | |
f6bcfd97 | 12064 | echo "configure:12065: checking for deflate in -lz" >&5 |
422107f9 VZ |
12065 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
12066 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12067 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12068 | else | |
12069 | ac_save_LIBS="$LIBS" | |
12070 | LIBS="-lz $LIBS" | |
12071 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 12072 | #line 12073 "configure" |
422107f9 VZ |
12073 | #include "confdefs.h" |
12074 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12075 | /* We use char because int might match the return type of a gcc2 | |
12076 | builtin and then its argument prototype would still apply. */ | |
12077 | char deflate(); | |
12078 | ||
12079 | int main() { | |
12080 | deflate() | |
12081 | ; return 0; } | |
12082 | EOF | |
f6bcfd97 | 12083 | if { (eval echo configure:12084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
422107f9 VZ |
12084 | rm -rf conftest* |
12085 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12086 | else | |
12087 | echo "configure: failed program was:" >&5 | |
12088 | cat conftest.$ac_ext >&5 | |
12089 | rm -rf conftest* | |
12090 | eval "ac_cv_lib_$ac_lib_var=no" | |
12091 | fi | |
12092 | rm -f conftest* | |
12093 | LIBS="$ac_save_LIBS" | |
12094 | ||
12095 | fi | |
12096 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12097 | echo "$ac_t""yes" 1>&6 | |
12098 | ZLIB_LINK="-lz" | |
12099 | else | |
12100 | echo "$ac_t""no" 1>&6 | |
12101 | fi | |
12102 | ||
12103 | else | |
12104 | echo "$ac_t""no" 1>&6 | |
12105 | fi | |
12106 | ||
12107 | if test "x$ZLIB_LINK" = "x" ; then | |
12108 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; } | |
12109 | fi | |
12110 | fi | |
10f2d63a VZ |
12111 | fi |
12112 | ||
12113 | PNG_INCLUDE= | |
422107f9 | 12114 | if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then |
10f2d63a VZ |
12115 | cat >> confdefs.h <<\EOF |
12116 | #define wxUSE_LIBPNG 1 | |
12117 | EOF | |
12118 | ||
41fd4136 | 12119 | if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
422107f9 VZ |
12120 | echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2 |
12121 | wxUSE_LIBPNG=yes | |
12122 | fi | |
12123 | ||
12124 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
12125 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
12126 | else | |
12127 | PNG_LINK= | |
12128 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | |
12129 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
f6bcfd97 | 12130 | echo "configure:12131: checking for png.h" >&5 |
422107f9 VZ |
12131 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12132 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12133 | else | |
12134 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 12135 | #line 12136 "configure" |
422107f9 VZ |
12136 | #include "confdefs.h" |
12137 | #include <png.h> | |
12138 | EOF | |
12139 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f6bcfd97 | 12140 | { (eval echo configure:12141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
422107f9 VZ |
12141 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12142 | if test -z "$ac_err"; then | |
12143 | rm -rf conftest* | |
12144 | eval "ac_cv_header_$ac_safe=yes" | |
12145 | else | |
12146 | echo "$ac_err" >&5 | |
12147 | echo "configure: failed program was:" >&5 | |
12148 | cat conftest.$ac_ext >&5 | |
12149 | rm -rf conftest* | |
12150 | eval "ac_cv_header_$ac_safe=no" | |
12151 | fi | |
12152 | rm -f conftest* | |
12153 | fi | |
12154 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12155 | echo "$ac_t""yes" 1>&6 | |
12156 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 | |
f6bcfd97 | 12157 | echo "configure:12158: checking for png_check_sig in -lpng" >&5 |
422107f9 VZ |
12158 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
12159 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12160 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12161 | else | |
12162 | ac_save_LIBS="$LIBS" | |
12163 | LIBS="-lpng -lz -lm $LIBS" | |
12164 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 12165 | #line 12166 "configure" |
422107f9 VZ |
12166 | #include "confdefs.h" |
12167 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12168 | /* We use char because int might match the return type of a gcc2 | |
12169 | builtin and then its argument prototype would still apply. */ | |
12170 | char png_check_sig(); | |
12171 | ||
12172 | int main() { | |
12173 | png_check_sig() | |
12174 | ; return 0; } | |
12175 | EOF | |
f6bcfd97 | 12176 | if { (eval echo configure:12177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
422107f9 VZ |
12177 | rm -rf conftest* |
12178 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12179 | else | |
12180 | echo "configure: failed program was:" >&5 | |
12181 | cat conftest.$ac_ext >&5 | |
12182 | rm -rf conftest* | |
12183 | eval "ac_cv_lib_$ac_lib_var=no" | |
12184 | fi | |
12185 | rm -f conftest* | |
12186 | LIBS="$ac_save_LIBS" | |
12187 | ||
12188 | fi | |
12189 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12190 | echo "$ac_t""yes" 1>&6 | |
12191 | PNG_LINK="-lpng" | |
12192 | else | |
12193 | echo "$ac_t""no" 1>&6 | |
12194 | fi | |
12195 | ||
12196 | ||
12197 | else | |
12198 | echo "$ac_t""no" 1>&6 | |
12199 | fi | |
12200 | ||
12201 | if test "x$PNG_LINK" = "x" ; then | |
0dcf9893 | 12202 | { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; } |
422107f9 VZ |
12203 | fi |
12204 | fi | |
12205 | ||
10f2d63a VZ |
12206 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
12207 | fi | |
12208 | ||
12209 | JPEG_INCLUDE= | |
422107f9 | 12210 | if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then |
10f2d63a VZ |
12211 | cat >> confdefs.h <<\EOF |
12212 | #define wxUSE_LIBJPEG 1 | |
12213 | EOF | |
12214 | ||
422107f9 VZ |
12215 | if test "$wxUSE_LIBJPEG" = "yes" ; then |
12216 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
12217 | else | |
12218 | JPEG_LINK= | |
12219 | ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` | |
12220 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 | |
f6bcfd97 | 12221 | echo "configure:12222: checking for jpeglib.h" >&5 |
422107f9 VZ |
12222 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12223 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12224 | else | |
12225 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 12226 | #line 12227 "configure" |
422107f9 VZ |
12227 | #include "confdefs.h" |
12228 | #include <jpeglib.h> | |
12229 | EOF | |
12230 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f6bcfd97 | 12231 | { (eval echo configure:12232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
422107f9 VZ |
12232 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12233 | if test -z "$ac_err"; then | |
12234 | rm -rf conftest* | |
12235 | eval "ac_cv_header_$ac_safe=yes" | |
12236 | else | |
12237 | echo "$ac_err" >&5 | |
12238 | echo "configure: failed program was:" >&5 | |
12239 | cat conftest.$ac_ext >&5 | |
12240 | rm -rf conftest* | |
12241 | eval "ac_cv_header_$ac_safe=no" | |
12242 | fi | |
12243 | rm -f conftest* | |
12244 | fi | |
12245 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12246 | echo "$ac_t""yes" 1>&6 | |
12247 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 | |
f6bcfd97 | 12248 | echo "configure:12249: checking for jpeg_read_header in -ljpeg" >&5 |
422107f9 VZ |
12249 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
12250 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12251 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12252 | else | |
12253 | ac_save_LIBS="$LIBS" | |
12254 | LIBS="-ljpeg $LIBS" | |
12255 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 12256 | #line 12257 "configure" |
422107f9 VZ |
12257 | #include "confdefs.h" |
12258 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12259 | /* We use char because int might match the return type of a gcc2 | |
12260 | builtin and then its argument prototype would still apply. */ | |
12261 | char jpeg_read_header(); | |
12262 | ||
12263 | int main() { | |
12264 | jpeg_read_header() | |
12265 | ; return 0; } | |
12266 | EOF | |
f6bcfd97 | 12267 | if { (eval echo configure:12268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
422107f9 VZ |
12268 | rm -rf conftest* |
12269 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12270 | else | |
12271 | echo "configure: failed program was:" >&5 | |
12272 | cat conftest.$ac_ext >&5 | |
12273 | rm -rf conftest* | |
12274 | eval "ac_cv_lib_$ac_lib_var=no" | |
12275 | fi | |
12276 | rm -f conftest* | |
12277 | LIBS="$ac_save_LIBS" | |
12278 | ||
12279 | fi | |
12280 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12281 | echo "$ac_t""yes" 1>&6 | |
12282 | JPEG_LINK="-ljpeg" | |
12283 | else | |
12284 | echo "$ac_t""no" 1>&6 | |
12285 | fi | |
12286 | ||
12287 | else | |
12288 | echo "$ac_t""no" 1>&6 | |
12289 | fi | |
12290 | ||
12291 | if test "x$JPEG_LINK" = "x" ; then | |
0dcf9893 | 12292 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; } |
422107f9 VZ |
12293 | fi |
12294 | fi | |
10f2d63a VZ |
12295 | fi |
12296 | ||
c7a2bf27 | 12297 | TIFF_INCLUDE= |
0dcf9893 | 12298 | if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then |
c7a2bf27 RR |
12299 | cat >> confdefs.h <<\EOF |
12300 | #define wxUSE_LIBTIFF 1 | |
12301 | EOF | |
12302 | ||
0dcf9893 VZ |
12303 | if test "$wxUSE_LIBTIFF" = "yes" ; then |
12304 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
12305 | else | |
12306 | TIFF_LINK= | |
12307 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` | |
12308 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
f6bcfd97 | 12309 | echo "configure:12310: checking for tiffio.h" >&5 |
0dcf9893 VZ |
12310 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12311 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12312 | else | |
12313 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 12314 | #line 12315 "configure" |
0dcf9893 VZ |
12315 | #include "confdefs.h" |
12316 | #include <tiffio.h> | |
12317 | EOF | |
12318 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f6bcfd97 | 12319 | { (eval echo configure:12320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
0dcf9893 VZ |
12320 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12321 | if test -z "$ac_err"; then | |
12322 | rm -rf conftest* | |
12323 | eval "ac_cv_header_$ac_safe=yes" | |
12324 | else | |
12325 | echo "$ac_err" >&5 | |
12326 | echo "configure: failed program was:" >&5 | |
12327 | cat conftest.$ac_ext >&5 | |
12328 | rm -rf conftest* | |
12329 | eval "ac_cv_header_$ac_safe=no" | |
12330 | fi | |
12331 | rm -f conftest* | |
12332 | fi | |
12333 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12334 | echo "$ac_t""yes" 1>&6 | |
12335 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
f6bcfd97 | 12336 | echo "configure:12337: checking for TIFFError in -ltiff" >&5 |
0dcf9893 VZ |
12337 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
12338 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12339 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12340 | else | |
12341 | ac_save_LIBS="$LIBS" | |
12342 | LIBS="-ltiff -lm $LIBS" | |
12343 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 12344 | #line 12345 "configure" |
0dcf9893 VZ |
12345 | #include "confdefs.h" |
12346 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12347 | /* We use char because int might match the return type of a gcc2 | |
12348 | builtin and then its argument prototype would still apply. */ | |
12349 | char TIFFError(); | |
12350 | ||
12351 | int main() { | |
12352 | TIFFError() | |
12353 | ; return 0; } | |
12354 | EOF | |
f6bcfd97 | 12355 | if { (eval echo configure:12356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
0dcf9893 VZ |
12356 | rm -rf conftest* |
12357 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12358 | else | |
12359 | echo "configure: failed program was:" >&5 | |
12360 | cat conftest.$ac_ext >&5 | |
12361 | rm -rf conftest* | |
12362 | eval "ac_cv_lib_$ac_lib_var=no" | |
12363 | fi | |
12364 | rm -f conftest* | |
12365 | LIBS="$ac_save_LIBS" | |
12366 | ||
12367 | fi | |
12368 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12369 | echo "$ac_t""yes" 1>&6 | |
12370 | TIFF_LINK="-ltiff" | |
12371 | else | |
12372 | echo "$ac_t""no" 1>&6 | |
12373 | fi | |
12374 | ||
12375 | else | |
12376 | echo "$ac_t""no" 1>&6 | |
12377 | fi | |
12378 | ||
12379 | if test "x$TIFF_LINK" = "x" ; then | |
12380 | { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; } | |
12381 | fi | |
12382 | fi | |
c7a2bf27 RR |
12383 | fi |
12384 | ||
10f2d63a VZ |
12385 | if test "$wxUSE_OPENGL" = "yes"; then |
12386 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` | |
12387 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
f6bcfd97 | 12388 | echo "configure:12389: checking for GL/gl.h" >&5 |
10f2d63a VZ |
12389 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12390 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12391 | else | |
12392 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 12393 | #line 12394 "configure" |
10f2d63a VZ |
12394 | #include "confdefs.h" |
12395 | #include <GL/gl.h> | |
12396 | EOF | |
12397 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f6bcfd97 | 12398 | { (eval echo configure:12399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
12399 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12400 | if test -z "$ac_err"; then | |
12401 | rm -rf conftest* | |
12402 | eval "ac_cv_header_$ac_safe=yes" | |
12403 | else | |
12404 | echo "$ac_err" >&5 | |
12405 | echo "configure: failed program was:" >&5 | |
12406 | cat conftest.$ac_ext >&5 | |
12407 | rm -rf conftest* | |
12408 | eval "ac_cv_header_$ac_safe=no" | |
12409 | fi | |
12410 | rm -f conftest* | |
12411 | fi | |
12412 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12413 | echo "$ac_t""yes" 1>&6 | |
12414 | ||
bdad4e7e RR |
12415 | cat >> confdefs.h <<\EOF |
12416 | #define wxUSE_OPENGL 1 | |
12417 | EOF | |
12418 | ||
12419 | cat >> confdefs.h <<\EOF | |
12420 | #define wxUSE_GLCANVAS 1 | |
12421 | EOF | |
12422 | ||
12423 | echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6 | |
f6bcfd97 | 12424 | echo "configure:12425: checking for glFlush in -lGL" >&5 |
bdad4e7e | 12425 | ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'` |
10f2d63a VZ |
12426 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
12427 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12428 | else | |
12429 | ac_save_LIBS="$LIBS" | |
bdad4e7e | 12430 | LIBS="-lGL $LIBS" |
10f2d63a | 12431 | cat > conftest.$ac_ext <<EOF |
f6bcfd97 | 12432 | #line 12433 "configure" |
10f2d63a VZ |
12433 | #include "confdefs.h" |
12434 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12435 | /* We use char because int might match the return type of a gcc2 | |
12436 | builtin and then its argument prototype would still apply. */ | |
bdad4e7e | 12437 | char glFlush(); |
10f2d63a VZ |
12438 | |
12439 | int main() { | |
bdad4e7e | 12440 | glFlush() |
10f2d63a VZ |
12441 | ; return 0; } |
12442 | EOF | |
f6bcfd97 | 12443 | if { (eval echo configure:12444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
12444 | rm -rf conftest* |
12445 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12446 | else | |
12447 | echo "configure: failed program was:" >&5 | |
12448 | cat conftest.$ac_ext >&5 | |
12449 | rm -rf conftest* | |
12450 | eval "ac_cv_lib_$ac_lib_var=no" | |
12451 | fi | |
12452 | rm -f conftest* | |
12453 | LIBS="$ac_save_LIBS" | |
12454 | ||
12455 | fi | |
12456 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12457 | echo "$ac_t""yes" 1>&6 | |
12458 | ||
f6bcfd97 | 12459 | OPENGL_LINK="-lGL -lGLU" |
10f2d63a VZ |
12460 | |
12461 | else | |
12462 | echo "$ac_t""no" 1>&6 | |
12463 | ||
bdad4e7e | 12464 | echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6 |
f6bcfd97 | 12465 | echo "configure:12466: checking for glFlush in -lMesaGL" >&5 |
bdad4e7e | 12466 | ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'` |
10f2d63a VZ |
12467 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
12468 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12469 | else | |
12470 | ac_save_LIBS="$LIBS" | |
12471 | LIBS="-lMesaGL $LIBS" | |
12472 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 12473 | #line 12474 "configure" |
10f2d63a VZ |
12474 | #include "confdefs.h" |
12475 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12476 | /* We use char because int might match the return type of a gcc2 | |
12477 | builtin and then its argument prototype would still apply. */ | |
bdad4e7e | 12478 | char glFlush(); |
10f2d63a VZ |
12479 | |
12480 | int main() { | |
bdad4e7e | 12481 | glFlush() |
10f2d63a VZ |
12482 | ; return 0; } |
12483 | EOF | |
f6bcfd97 | 12484 | if { (eval echo configure:12485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
12485 | rm -rf conftest* |
12486 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12487 | else | |
12488 | echo "configure: failed program was:" >&5 | |
12489 | cat conftest.$ac_ext >&5 | |
12490 | rm -rf conftest* | |
12491 | eval "ac_cv_lib_$ac_lib_var=no" | |
12492 | fi | |
12493 | rm -f conftest* | |
12494 | LIBS="$ac_save_LIBS" | |
12495 | ||
12496 | fi | |
12497 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12498 | echo "$ac_t""yes" 1>&6 | |
12499 | ||
f6bcfd97 | 12500 | OPENGL_LINK="-lMesaGL -lMesaGLU" |
10f2d63a VZ |
12501 | |
12502 | else | |
12503 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12504 | fi |
12505 | ||
12506 | ||
12507 | fi | |
12508 | ||
12509 | ||
12510 | else | |
12511 | echo "$ac_t""no" 1>&6 | |
12512 | wxUSE_OPENGL=0 | |
12513 | fi | |
12514 | ||
12515 | fi | |
12516 | ||
12517 | ||
12518 | if test "$wxUSE_GUI" = "yes"; then | |
12519 | cat >> confdefs.h <<\EOF | |
12520 | #define wxUSE_GUI 1 | |
12521 | EOF | |
12522 | ||
12523 | ||
12524 | else | |
12525 | cat >> confdefs.h <<\EOF | |
12526 | #define wxUSE_NOGUI 1 | |
12527 | EOF | |
12528 | ||
12529 | fi | |
12530 | ||
12531 | ||
12532 | if test "$wxUSE_UNIX" = "yes"; then | |
12533 | cat >> confdefs.h <<\EOF | |
12534 | #define wxUSE_UNIX 1 | |
12535 | EOF | |
12536 | ||
12537 | fi | |
12538 | ||
12539 | ||
12540 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
12541 | cat >> confdefs.h <<\EOF | |
12542 | #define wxUSE_APPLE_IEEE 1 | |
12543 | EOF | |
12544 | ||
12545 | fi | |
12546 | ||
10f2d63a VZ |
12547 | if test "$wxUSE_WAVE" = "yes"; then |
12548 | cat >> confdefs.h <<\EOF | |
12549 | #define wxUSE_WAVE 1 | |
12550 | EOF | |
12551 | ||
12552 | fi | |
12553 | ||
12554 | if test "$wxUSE_FILE" = "yes"; then | |
12555 | cat >> confdefs.h <<\EOF | |
12556 | #define wxUSE_FILE 1 | |
12557 | EOF | |
12558 | ||
12559 | fi | |
12560 | ||
24528b0c VS |
12561 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
12562 | cat >> confdefs.h <<\EOF | |
12563 | #define wxUSE_FILESYSTEM 1 | |
12564 | EOF | |
12565 | ||
12566 | fi | |
12567 | ||
10f2d63a VZ |
12568 | if test "$wxUSE_FS_INET" = "yes"; then |
12569 | cat >> confdefs.h <<\EOF | |
12570 | #define wxUSE_FS_INET 1 | |
12571 | EOF | |
12572 | ||
12573 | fi | |
12574 | ||
12575 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
12576 | cat >> confdefs.h <<\EOF | |
12577 | #define wxUSE_FS_ZIP 1 | |
12578 | EOF | |
12579 | ||
12580 | fi | |
12581 | ||
12582 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
12583 | cat >> confdefs.h <<\EOF | |
12584 | #define wxUSE_ZIPSTREAM 1 | |
12585 | EOF | |
12586 | ||
12587 | fi | |
12588 | ||
eb4efbdc VZ |
12589 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
12590 | cat >> confdefs.h <<\EOF | |
12591 | #define wxUSE_ON_FATAL_EXCEPTION 1 | |
12592 | EOF | |
12593 | ||
12594 | fi | |
12595 | ||
10f2d63a VZ |
12596 | if test "$wxUSE_BUSYINFO" = "yes"; then |
12597 | cat >> confdefs.h <<\EOF | |
12598 | #define wxUSE_BUSYINFO 1 | |
12599 | EOF | |
12600 | ||
12601 | fi | |
12602 | ||
12603 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
12604 | cat >> confdefs.h <<\EOF | |
12605 | #define wxUSE_STD_IOSTREAM 1 | |
12606 | EOF | |
12607 | ||
12608 | fi | |
12609 | ||
12610 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
12611 | if test "$wxUSE_FILE" != "yes"; then | |
12612 | echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2 | |
12613 | else | |
12614 | cat >> confdefs.h <<\EOF | |
12615 | #define wxUSE_TEXTFILE 1 | |
12616 | EOF | |
12617 | ||
12618 | fi | |
12619 | fi | |
12620 | ||
12621 | if test "$wxUSE_CONFIG" = "yes" ; then | |
12622 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
12623 | echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2 | |
12624 | else | |
12625 | cat >> confdefs.h <<\EOF | |
12626 | #define wxUSE_CONFIG 1 | |
12627 | EOF | |
12628 | ||
12629 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
12630 | fi | |
12631 | fi | |
12632 | ||
12633 | if test "$wxUSE_INTL" = "yes" ; then | |
12634 | if test "$wxUSE_FILE" != "yes"; then | |
12635 | echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2 | |
12636 | else | |
12637 | cat >> confdefs.h <<\EOF | |
12638 | #define wxUSE_INTL 1 | |
12639 | EOF | |
12640 | ||
12641 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 12642 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
12643 | fi |
12644 | fi | |
12645 | ||
12646 | if test "$wxUSE_LOG" = "yes"; then | |
12647 | cat >> confdefs.h <<\EOF | |
12648 | #define wxUSE_LOG 1 | |
12649 | EOF | |
12650 | ||
12651 | fi | |
12652 | ||
12653 | if test "$wxUSE_LONGLONG" = "yes"; then | |
12654 | cat >> confdefs.h <<\EOF | |
12655 | #define wxUSE_LONGLONG 1 | |
12656 | EOF | |
12657 | ||
12658 | fi | |
12659 | ||
9b33fe02 VZ |
12660 | if test "$wxUSE_PLOT" = "yes"; then |
12661 | cat >> confdefs.h <<\EOF | |
12662 | #define wxUSE_PLOT 1 | |
12663 | EOF | |
12664 | ||
12665 | fi | |
12666 | ||
10f2d63a VZ |
12667 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
12668 | cat >> confdefs.h <<\EOF | |
12669 | #define wxUSE_DIALUP_MANAGER 1 | |
12670 | EOF | |
12671 | ||
70f7a477 | 12672 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
12673 | fi |
12674 | ||
12675 | if test "$wxUSE_STREAMS" = "yes" ; then | |
12676 | cat >> confdefs.h <<\EOF | |
12677 | #define wxUSE_STREAMS 1 | |
12678 | EOF | |
12679 | ||
12680 | fi | |
12681 | ||
10f2d63a | 12682 | |
afc31813 | 12683 | if test "$wxUSE_TIMEDATE" = "yes"; then |
83307f33 VZ |
12684 | for ac_func in strptime |
12685 | do | |
12686 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
f6bcfd97 | 12687 | echo "configure:12688: checking for $ac_func" >&5 |
83307f33 VZ |
12688 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12689 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12690 | else | |
12691 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 12692 | #line 12693 "configure" |
83307f33 VZ |
12693 | #include "confdefs.h" |
12694 | /* System header to define __stub macros and hopefully few prototypes, | |
12695 | which can conflict with char $ac_func(); below. */ | |
12696 | #include <assert.h> | |
12697 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12698 | /* We use char because int might match the return type of a gcc2 | |
12699 | builtin and then its argument prototype would still apply. */ | |
12700 | char $ac_func(); | |
12701 | ||
12702 | int main() { | |
12703 | ||
12704 | /* The GNU C library defines this for functions which it implements | |
12705 | to always fail with ENOSYS. Some functions are actually named | |
12706 | something starting with __ and the normal name is an alias. */ | |
12707 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12708 | choke me | |
12709 | #else | |
e8482f24 | 12710 | $ac_func(); |
83307f33 VZ |
12711 | #endif |
12712 | ||
12713 | ; return 0; } | |
12714 | EOF | |
f6bcfd97 | 12715 | if { (eval echo configure:12716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
83307f33 VZ |
12716 | rm -rf conftest* |
12717 | eval "ac_cv_func_$ac_func=yes" | |
12718 | else | |
12719 | echo "configure: failed program was:" >&5 | |
12720 | cat conftest.$ac_ext >&5 | |
12721 | rm -rf conftest* | |
12722 | eval "ac_cv_func_$ac_func=no" | |
12723 | fi | |
12724 | rm -f conftest* | |
12725 | fi | |
12726 | ||
12727 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12728 | echo "$ac_t""yes" 1>&6 | |
12729 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12730 | cat >> confdefs.h <<EOF | |
12731 | #define $ac_tr_func 1 | |
12732 | EOF | |
12733 | ||
12734 | else | |
12735 | echo "$ac_t""no" 1>&6 | |
12736 | fi | |
12737 | done | |
12738 | ||
12739 | ||
360d6699 | 12740 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
f6bcfd97 | 12741 | echo "configure:12742: checking for timezone variable in <time.h>" >&5 |
360d6699 VZ |
12742 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
12743 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12744 | else | |
12745 | ||
12746 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 12747 | #line 12748 "configure" |
360d6699 VZ |
12748 | #include "confdefs.h" |
12749 | ||
12750 | #include <time.h> | |
12751 | ||
12752 | int main() { | |
12753 | ||
12754 | int tz; | |
12755 | tz = __timezone; | |
12756 | ||
12757 | ; return 0; } | |
12758 | EOF | |
f6bcfd97 | 12759 | if { (eval echo configure:12760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
360d6699 VZ |
12760 | rm -rf conftest* |
12761 | ||
12762 | wx_cv_var_timezone=__timezone | |
12763 | ||
12764 | else | |
12765 | echo "configure: failed program was:" >&5 | |
12766 | cat conftest.$ac_ext >&5 | |
12767 | rm -rf conftest* | |
12768 | ||
12769 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 12770 | #line 12771 "configure" |
360d6699 VZ |
12771 | #include "confdefs.h" |
12772 | ||
12773 | #include <time.h> | |
12774 | ||
12775 | int main() { | |
12776 | ||
12777 | int tz; | |
12778 | tz = _timezone; | |
12779 | ||
12780 | ; return 0; } | |
12781 | EOF | |
f6bcfd97 | 12782 | if { (eval echo configure:12783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
360d6699 VZ |
12783 | rm -rf conftest* |
12784 | ||
12785 | wx_cv_var_timezone=_timezone | |
12786 | ||
5357c8e8 VZ |
12787 | else |
12788 | echo "configure: failed program was:" >&5 | |
12789 | cat conftest.$ac_ext >&5 | |
12790 | rm -rf conftest* | |
12791 | ||
12792 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 12793 | #line 12794 "configure" |
5357c8e8 VZ |
12794 | #include "confdefs.h" |
12795 | ||
12796 | #include <time.h> | |
12797 | ||
12798 | int main() { | |
12799 | ||
12800 | int tz; | |
12801 | tz = timezone; | |
12802 | ||
12803 | ; return 0; } | |
12804 | EOF | |
f6bcfd97 | 12805 | if { (eval echo configure:12806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
5357c8e8 VZ |
12806 | rm -rf conftest* |
12807 | ||
12808 | wx_cv_var_timezone=timezone | |
12809 | ||
360d6699 VZ |
12810 | else |
12811 | echo "configure: failed program was:" >&5 | |
12812 | cat conftest.$ac_ext >&5 | |
12813 | rm -rf conftest* | |
12814 | { echo "configure: error: no timezone variable" 1>&2; exit 1; } | |
5357c8e8 VZ |
12815 | |
12816 | fi | |
12817 | rm -f conftest* | |
12818 | ||
360d6699 VZ |
12819 | |
12820 | fi | |
12821 | rm -f conftest* | |
12822 | ||
12823 | ||
12824 | fi | |
12825 | rm -f conftest* | |
12826 | ||
12827 | ||
12828 | fi | |
12829 | ||
12830 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 | |
12831 | ||
12832 | cat >> confdefs.h <<EOF | |
12833 | #define WX_TIMEZONE $wx_cv_var_timezone | |
12834 | EOF | |
12835 | ||
12836 | ||
3fcdd07b | 12837 | for ac_func in localtime |
afc31813 VZ |
12838 | do |
12839 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
f6bcfd97 | 12840 | echo "configure:12841: checking for $ac_func" >&5 |
afc31813 VZ |
12841 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12842 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12843 | else | |
12844 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 12845 | #line 12846 "configure" |
10f2d63a | 12846 | #include "confdefs.h" |
afc31813 VZ |
12847 | /* System header to define __stub macros and hopefully few prototypes, |
12848 | which can conflict with char $ac_func(); below. */ | |
12849 | #include <assert.h> | |
12850 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12851 | /* We use char because int might match the return type of a gcc2 | |
12852 | builtin and then its argument prototype would still apply. */ | |
12853 | char $ac_func(); | |
12854 | ||
10f2d63a | 12855 | int main() { |
afc31813 VZ |
12856 | |
12857 | /* The GNU C library defines this for functions which it implements | |
12858 | to always fail with ENOSYS. Some functions are actually named | |
12859 | something starting with __ and the normal name is an alias. */ | |
12860 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12861 | choke me | |
12862 | #else | |
e8482f24 | 12863 | $ac_func(); |
afc31813 VZ |
12864 | #endif |
12865 | ||
10f2d63a VZ |
12866 | ; return 0; } |
12867 | EOF | |
f6bcfd97 | 12868 | if { (eval echo configure:12869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a | 12869 | rm -rf conftest* |
afc31813 | 12870 | eval "ac_cv_func_$ac_func=yes" |
10f2d63a VZ |
12871 | else |
12872 | echo "configure: failed program was:" >&5 | |
12873 | cat conftest.$ac_ext >&5 | |
12874 | rm -rf conftest* | |
afc31813 VZ |
12875 | eval "ac_cv_func_$ac_func=no" |
12876 | fi | |
12877 | rm -f conftest* | |
12878 | fi | |
12879 | ||
12880 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12881 | echo "$ac_t""yes" 1>&6 | |
12882 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12883 | cat >> confdefs.h <<EOF | |
12884 | #define $ac_tr_func 1 | |
12885 | EOF | |
3fcdd07b | 12886 | |
afc31813 VZ |
12887 | else |
12888 | echo "$ac_t""no" 1>&6 | |
12889 | fi | |
12890 | done | |
12891 | ||
12892 | ||
0470b1e6 VZ |
12893 | if test "$ac_cv_func_localtime" = "yes"; then |
12894 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
f6bcfd97 | 12895 | echo "configure:12896: checking for tm_gmtoff in struct tm" >&5 |
0470b1e6 VZ |
12896 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
12897 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12898 | else | |
12899 | ||
12900 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 12901 | #line 12902 "configure" |
0470b1e6 VZ |
12902 | #include "confdefs.h" |
12903 | ||
12904 | #include <time.h> | |
12905 | ||
12906 | int main() { | |
12907 | ||
12908 | struct tm tm; | |
12909 | tm.tm_gmtoff++; | |
12910 | ||
12911 | ; return 0; } | |
12912 | EOF | |
f6bcfd97 | 12913 | if { (eval echo configure:12914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0470b1e6 VZ |
12914 | rm -rf conftest* |
12915 | ||
f03a98d8 | 12916 | wx_cv_struct_tm_has_gmtoff=yes |
0470b1e6 VZ |
12917 | cat >> confdefs.h <<\EOF |
12918 | #define WX_GMTOFF_IN_TM 1 | |
12919 | EOF | |
12920 | ||
12921 | ||
12922 | else | |
12923 | echo "configure: failed program was:" >&5 | |
12924 | cat conftest.$ac_ext >&5 | |
12925 | rm -rf conftest* | |
12926 | wx_cv_struct_tm_has_gmtoff=no | |
12927 | ||
12928 | fi | |
12929 | rm -f conftest* | |
12930 | ||
12931 | fi | |
12932 | ||
12933 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
3fcdd07b VZ |
12934 | fi |
12935 | ||
12936 | for ac_func in gettimeofday ftime | |
12937 | do | |
12938 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
f6bcfd97 | 12939 | echo "configure:12940: checking for $ac_func" >&5 |
3fcdd07b VZ |
12940 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12941 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12942 | else | |
12943 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 12944 | #line 12945 "configure" |
3fcdd07b VZ |
12945 | #include "confdefs.h" |
12946 | /* System header to define __stub macros and hopefully few prototypes, | |
12947 | which can conflict with char $ac_func(); below. */ | |
12948 | #include <assert.h> | |
12949 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12950 | /* We use char because int might match the return type of a gcc2 | |
12951 | builtin and then its argument prototype would still apply. */ | |
12952 | char $ac_func(); | |
12953 | ||
12954 | int main() { | |
12955 | ||
12956 | /* The GNU C library defines this for functions which it implements | |
12957 | to always fail with ENOSYS. Some functions are actually named | |
12958 | something starting with __ and the normal name is an alias. */ | |
12959 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12960 | choke me | |
12961 | #else | |
e8482f24 | 12962 | $ac_func(); |
3fcdd07b VZ |
12963 | #endif |
12964 | ||
12965 | ; return 0; } | |
12966 | EOF | |
f6bcfd97 | 12967 | if { (eval echo configure:12968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3fcdd07b VZ |
12968 | rm -rf conftest* |
12969 | eval "ac_cv_func_$ac_func=yes" | |
12970 | else | |
12971 | echo "configure: failed program was:" >&5 | |
12972 | cat conftest.$ac_ext >&5 | |
12973 | rm -rf conftest* | |
12974 | eval "ac_cv_func_$ac_func=no" | |
12975 | fi | |
12976 | rm -f conftest* | |
12977 | fi | |
12978 | ||
12979 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12980 | echo "$ac_t""yes" 1>&6 | |
12981 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12982 | cat >> confdefs.h <<EOF | |
12983 | #define $ac_tr_func 1 | |
12984 | EOF | |
12985 | break | |
12986 | else | |
12987 | echo "$ac_t""no" 1>&6 | |
12988 | fi | |
12989 | done | |
12990 | ||
12991 | ||
12992 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
afc31813 | 12993 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 |
f6bcfd97 | 12994 | echo "configure:12995: checking whether gettimeofday takes two arguments" >&5 |
afc31813 VZ |
12995 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
12996 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12997 | else | |
12998 | ||
12999 | ||
13000 | ac_ext=C | |
13001 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13002 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13003 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13004 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13005 | cross_compiling=$ac_cv_prog_cxx_cross | |
13006 | ||
13007 | ||
13008 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 13009 | #line 13010 "configure" |
10f2d63a | 13010 | #include "confdefs.h" |
afc31813 VZ |
13011 | |
13012 | #include <sys/time.h> | |
13013 | #include <unistd.h> | |
13014 | ||
10f2d63a | 13015 | int main() { |
afc31813 VZ |
13016 | |
13017 | struct timeval tv; | |
13018 | struct timezone tz; | |
13019 | gettimeofday(&tv, &tz); | |
13020 | ||
10f2d63a VZ |
13021 | ; return 0; } |
13022 | EOF | |
f6bcfd97 | 13023 | if { (eval echo configure:13024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a | 13024 | rm -rf conftest* |
afc31813 | 13025 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a VZ |
13026 | else |
13027 | echo "configure: failed program was:" >&5 | |
13028 | cat conftest.$ac_ext >&5 | |
13029 | rm -rf conftest* | |
13030 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 13031 | #line 13032 "configure" |
10f2d63a | 13032 | #include "confdefs.h" |
afc31813 VZ |
13033 | |
13034 | #include <sys/time.h> | |
13035 | #include <unistd.h> | |
13036 | ||
10f2d63a | 13037 | int main() { |
afc31813 VZ |
13038 | |
13039 | struct timeval tv; | |
13040 | gettimeofday(&tv); | |
13041 | ||
10f2d63a VZ |
13042 | ; return 0; } |
13043 | EOF | |
f6bcfd97 | 13044 | if { (eval echo configure:13045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a | 13045 | rm -rf conftest* |
afc31813 | 13046 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a VZ |
13047 | else |
13048 | echo "configure: failed program was:" >&5 | |
13049 | cat conftest.$ac_ext >&5 | |
13050 | rm -rf conftest* | |
afc31813 VZ |
13051 | wx_cv_func_gettimeofday_has_2_args=unknown |
13052 | ||
10f2d63a VZ |
13053 | fi |
13054 | rm -f conftest* | |
afc31813 | 13055 | |
10f2d63a VZ |
13056 | fi |
13057 | rm -f conftest* | |
afc31813 | 13058 | ac_ext=c |
10f2d63a VZ |
13059 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
13060 | ac_cpp='$CPP $CPPFLAGS' | |
13061 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13062 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13063 | cross_compiling=$ac_cv_prog_cc_cross | |
13064 | ||
afc31813 VZ |
13065 | |
13066 | fi | |
13067 | ||
13068 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 13069 | |
afc31813 VZ |
13070 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
13071 | cat >> confdefs.h <<\EOF | |
13072 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
13073 | EOF | |
13074 | ||
13075 | fi | |
13076 | fi | |
13077 | ||
13078 | cat >> confdefs.h <<\EOF | |
13079 | #define wxUSE_TIMEDATE 1 | |
13080 | EOF | |
13081 | ||
13082 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
13083 | fi | |
13084 | ||
13085 | ||
b089607b VZ |
13086 | if test "$TOOLKIT" != "MSW"; then |
13087 | ||
afc31813 | 13088 | if test "$wxUSE_SOCKETS" = "yes"; then |
c63c7106 | 13089 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
f6bcfd97 | 13090 | echo "configure:13091: checking for socket" >&5 |
c63c7106 VZ |
13091 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
13092 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13093 | else | |
13094 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 13095 | #line 13096 "configure" |
c63c7106 VZ |
13096 | #include "confdefs.h" |
13097 | /* System header to define __stub macros and hopefully few prototypes, | |
13098 | which can conflict with char socket(); below. */ | |
13099 | #include <assert.h> | |
13100 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13101 | /* We use char because int might match the return type of a gcc2 | |
13102 | builtin and then its argument prototype would still apply. */ | |
13103 | char socket(); | |
13104 | ||
13105 | int main() { | |
13106 | ||
13107 | /* The GNU C library defines this for functions which it implements | |
13108 | to always fail with ENOSYS. Some functions are actually named | |
13109 | something starting with __ and the normal name is an alias. */ | |
13110 | #if defined (__stub_socket) || defined (__stub___socket) | |
13111 | choke me | |
13112 | #else | |
e8482f24 | 13113 | socket(); |
c63c7106 VZ |
13114 | #endif |
13115 | ||
13116 | ; return 0; } | |
13117 | EOF | |
f6bcfd97 | 13118 | if { (eval echo configure:13119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c63c7106 VZ |
13119 | rm -rf conftest* |
13120 | eval "ac_cv_func_socket=yes" | |
13121 | else | |
13122 | echo "configure: failed program was:" >&5 | |
13123 | cat conftest.$ac_ext >&5 | |
13124 | rm -rf conftest* | |
13125 | eval "ac_cv_func_socket=no" | |
13126 | fi | |
13127 | rm -f conftest* | |
13128 | fi | |
13129 | ||
13130 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
13131 | echo "$ac_t""yes" 1>&6 | |
13132 | : | |
13133 | else | |
13134 | echo "$ac_t""no" 1>&6 | |
13135 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
f6bcfd97 | 13136 | echo "configure:13137: checking for socket in -lsocket" >&5 |
c63c7106 VZ |
13137 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
13138 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13139 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13140 | else | |
13141 | ac_save_LIBS="$LIBS" | |
13142 | LIBS="-lsocket $LIBS" | |
13143 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 13144 | #line 13145 "configure" |
c63c7106 VZ |
13145 | #include "confdefs.h" |
13146 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13147 | /* We use char because int might match the return type of a gcc2 | |
13148 | builtin and then its argument prototype would still apply. */ | |
13149 | char socket(); | |
13150 | ||
13151 | int main() { | |
13152 | socket() | |
13153 | ; return 0; } | |
13154 | EOF | |
f6bcfd97 | 13155 | if { (eval echo configure:13156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c63c7106 VZ |
13156 | rm -rf conftest* |
13157 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13158 | else | |
13159 | echo "configure: failed program was:" >&5 | |
13160 | cat conftest.$ac_ext >&5 | |
13161 | rm -rf conftest* | |
13162 | eval "ac_cv_lib_$ac_lib_var=no" | |
13163 | fi | |
13164 | rm -f conftest* | |
13165 | LIBS="$ac_save_LIBS" | |
13166 | ||
13167 | fi | |
13168 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13169 | echo "$ac_t""yes" 1>&6 | |
13170 | INET_LINK="$INET_LINK -lsocket" | |
c63c7106 VZ |
13171 | else |
13172 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
13173 | |
13174 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 | |
13175 | wxUSE_SOCKETS=no | |
13176 | ||
13177 | ||
c63c7106 VZ |
13178 | fi |
13179 | ||
13180 | ||
13181 | fi | |
13182 | ||
10f2d63a VZ |
13183 | fi |
13184 | ||
b089607b VZ |
13185 | fi |
13186 | ||
afc31813 | 13187 | if test "$wxUSE_SOCKETS" = "yes" ; then |
51a9faba | 13188 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 |
f6bcfd97 | 13189 | echo "configure:13190: checking what is the type of the third argument of getsockname" >&5 |
51a9faba VZ |
13190 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
13191 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13192 | else | |
13193 | ||
13194 | ||
13195 | ac_ext=C | |
afc31813 VZ |
13196 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
13197 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13198 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13199 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13200 | cross_compiling=$ac_cv_prog_cxx_cross | |
13201 | ||
51a9faba VZ |
13202 | |
13203 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 13204 | #line 13205 "configure" |
afc31813 | 13205 | #include "confdefs.h" |
51a9faba | 13206 | |
3ace2e6d | 13207 | #include <sys/types.h> |
51a9faba VZ |
13208 | #include <sys/socket.h> |
13209 | ||
afc31813 | 13210 | int main() { |
51a9faba VZ |
13211 | |
13212 | socklen_t len; | |
13213 | getsockname(0, 0, &len); | |
13214 | ||
afc31813 VZ |
13215 | ; return 0; } |
13216 | EOF | |
f6bcfd97 | 13217 | if { (eval echo configure:13218: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
afc31813 | 13218 | rm -rf conftest* |
51a9faba | 13219 | wx_cv_type_getsockname3=socklen_t |
afc31813 VZ |
13220 | else |
13221 | echo "configure: failed program was:" >&5 | |
13222 | cat conftest.$ac_ext >&5 | |
13223 | rm -rf conftest* | |
13224 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 13225 | #line 13226 "configure" |
afc31813 | 13226 | #include "confdefs.h" |
51a9faba | 13227 | |
3ace2e6d | 13228 | #include <sys/types.h> |
51a9faba VZ |
13229 | #include <sys/socket.h> |
13230 | ||
afc31813 | 13231 | int main() { |
51a9faba VZ |
13232 | |
13233 | size_t len; | |
13234 | getsockname(0, 0, &len); | |
13235 | ||
afc31813 VZ |
13236 | ; return 0; } |
13237 | EOF | |
f6bcfd97 | 13238 | if { (eval echo configure:13239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
afc31813 | 13239 | rm -rf conftest* |
51a9faba | 13240 | wx_cv_type_getsockname3=size_t |
afc31813 VZ |
13241 | else |
13242 | echo "configure: failed program was:" >&5 | |
13243 | cat conftest.$ac_ext >&5 | |
13244 | rm -rf conftest* | |
13245 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 13246 | #line 13247 "configure" |
afc31813 | 13247 | #include "confdefs.h" |
51a9faba | 13248 | |
3ace2e6d | 13249 | #include <sys/types.h> |
51a9faba VZ |
13250 | #include <sys/socket.h> |
13251 | ||
afc31813 | 13252 | int main() { |
51a9faba VZ |
13253 | |
13254 | int len; | |
13255 | getsockname(0, 0, &len); | |
13256 | ||
afc31813 VZ |
13257 | ; return 0; } |
13258 | EOF | |
f6bcfd97 | 13259 | if { (eval echo configure:13260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
afc31813 | 13260 | rm -rf conftest* |
51a9faba | 13261 | wx_cv_type_getsockname3=int |
afc31813 VZ |
13262 | else |
13263 | echo "configure: failed program was:" >&5 | |
13264 | cat conftest.$ac_ext >&5 | |
3ace2e6d SN |
13265 | rm -rf conftest* |
13266 | wx_cv_type_getsockname3=unknown | |
13267 | ||
afc31813 VZ |
13268 | fi |
13269 | rm -f conftest* | |
51a9faba | 13270 | |
afc31813 VZ |
13271 | fi |
13272 | rm -f conftest* | |
51a9faba | 13273 | |
afc31813 VZ |
13274 | fi |
13275 | rm -f conftest* | |
51a9faba VZ |
13276 | |
13277 | ac_ext=c | |
afc31813 VZ |
13278 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
13279 | ac_cpp='$CPP $CPPFLAGS' | |
13280 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13281 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13282 | cross_compiling=$ac_cv_prog_cc_cross | |
13283 | ||
51a9faba VZ |
13284 | |
13285 | fi | |
13286 | ||
13287 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
13288 | ||
13289 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
13290 | wxUSE_SOCKETS=no | |
13291 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 | |
13292 | else | |
13293 | cat >> confdefs.h <<EOF | |
13294 | #define SOCKLEN_T $wx_cv_type_getsockname3 | |
13295 | EOF | |
13296 | ||
13297 | fi | |
13298 | fi | |
afc31813 | 13299 | |
51a9faba | 13300 | if test "$wxUSE_SOCKETS" = "yes" ; then |
afc31813 VZ |
13301 | cat >> confdefs.h <<\EOF |
13302 | #define wxUSE_SOCKETS 1 | |
13303 | EOF | |
13304 | ||
70f7a477 | 13305 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
13306 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol" |
13307 | fi | |
13308 | ||
10f2d63a | 13309 | |
dc3d889d VZ |
13310 | if test "$wxUSE_GUI" = "yes"; then |
13311 | ||
b089607b VZ |
13312 | if test "$TOOLKIT" != "MSW"; then |
13313 | ||
ceded8b9 | 13314 | if test "$wxUSE_JOYSTICK" = "yes"; then |
10f2d63a VZ |
13315 | for ac_hdr in linux/joystick.h |
13316 | do | |
13317 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
13318 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
f6bcfd97 | 13319 | echo "configure:13320: checking for $ac_hdr" >&5 |
10f2d63a VZ |
13320 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13321 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13322 | else | |
13323 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 13324 | #line 13325 "configure" |
10f2d63a VZ |
13325 | #include "confdefs.h" |
13326 | #include <$ac_hdr> | |
13327 | EOF | |
13328 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f6bcfd97 | 13329 | { (eval echo configure:13330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
13330 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13331 | if test -z "$ac_err"; then | |
13332 | rm -rf conftest* | |
13333 | eval "ac_cv_header_$ac_safe=yes" | |
13334 | else | |
13335 | echo "$ac_err" >&5 | |
13336 | echo "configure: failed program was:" >&5 | |
13337 | cat conftest.$ac_ext >&5 | |
13338 | rm -rf conftest* | |
13339 | eval "ac_cv_header_$ac_safe=no" | |
13340 | fi | |
13341 | rm -f conftest* | |
13342 | fi | |
13343 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13344 | echo "$ac_t""yes" 1>&6 | |
13345 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13346 | cat >> confdefs.h <<EOF | |
13347 | #define $ac_tr_hdr 1 | |
13348 | EOF | |
13349 | ||
13350 | else | |
13351 | echo "$ac_t""no" 1>&6 | |
13352 | fi | |
13353 | done | |
13354 | ||
b089607b | 13355 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
ceded8b9 | 13356 | wxUSE_JOYSTICK=no |
dc3d889d | 13357 | echo "configure: warning: Joystick not supported by this system" 1>&2 |
b089607b VZ |
13358 | fi |
13359 | fi | |
13360 | ||
13361 | fi | |
13362 | ||
ceded8b9 | 13363 | if test "$wxUSE_JOYSTICK" = "yes"; then |
10f2d63a VZ |
13364 | cat >> confdefs.h <<\EOF |
13365 | #define wxUSE_JOYSTICK 1 | |
13366 | EOF | |
13367 | ||
13368 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
10f2d63a VZ |
13369 | fi |
13370 | ||
dc3d889d VZ |
13371 | fi |
13372 | ||
10f2d63a | 13373 | |
b089607b VZ |
13374 | if test "$TOOLKIT" != "MSW"; then |
13375 | ||
10f2d63a VZ |
13376 | HAVE_DL_FUNCS=0 |
13377 | HAVE_SHL_FUNCS=0 | |
13378 | if test "$wxUSE_DYNLIB_CLASS" = "yes"; then | |
13379 | for ac_func in dlopen | |
13380 | do | |
13381 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
f6bcfd97 | 13382 | echo "configure:13383: checking for $ac_func" >&5 |
10f2d63a VZ |
13383 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13384 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13385 | else | |
13386 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 13387 | #line 13388 "configure" |
10f2d63a VZ |
13388 | #include "confdefs.h" |
13389 | /* System header to define __stub macros and hopefully few prototypes, | |
13390 | which can conflict with char $ac_func(); below. */ | |
13391 | #include <assert.h> | |
13392 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13393 | /* We use char because int might match the return type of a gcc2 | |
13394 | builtin and then its argument prototype would still apply. */ | |
13395 | char $ac_func(); | |
13396 | ||
13397 | int main() { | |
13398 | ||
13399 | /* The GNU C library defines this for functions which it implements | |
13400 | to always fail with ENOSYS. Some functions are actually named | |
13401 | something starting with __ and the normal name is an alias. */ | |
13402 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13403 | choke me | |
13404 | #else | |
e8482f24 | 13405 | $ac_func(); |
10f2d63a VZ |
13406 | #endif |
13407 | ||
13408 | ; return 0; } | |
13409 | EOF | |
f6bcfd97 | 13410 | if { (eval echo configure:13411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
13411 | rm -rf conftest* |
13412 | eval "ac_cv_func_$ac_func=yes" | |
13413 | else | |
13414 | echo "configure: failed program was:" >&5 | |
13415 | cat conftest.$ac_ext >&5 | |
13416 | rm -rf conftest* | |
13417 | eval "ac_cv_func_$ac_func=no" | |
13418 | fi | |
13419 | rm -f conftest* | |
13420 | fi | |
13421 | ||
13422 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13423 | echo "$ac_t""yes" 1>&6 | |
13424 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13425 | cat >> confdefs.h <<EOF | |
13426 | #define $ac_tr_func 1 | |
13427 | EOF | |
13428 | ||
13429 | cat >> confdefs.h <<\EOF | |
13430 | #define HAVE_DLOPEN 1 | |
13431 | EOF | |
13432 | ||
13433 | HAVE_DL_FUNCS=1 | |
13434 | ||
13435 | else | |
13436 | echo "$ac_t""no" 1>&6 | |
13437 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
f6bcfd97 | 13438 | echo "configure:13439: checking for dlopen in -ldl" >&5 |
10f2d63a VZ |
13439 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
13440 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13441 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13442 | else | |
13443 | ac_save_LIBS="$LIBS" | |
13444 | LIBS="-ldl $LIBS" | |
13445 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 13446 | #line 13447 "configure" |
10f2d63a VZ |
13447 | #include "confdefs.h" |
13448 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13449 | /* We use char because int might match the return type of a gcc2 | |
13450 | builtin and then its argument prototype would still apply. */ | |
13451 | char dlopen(); | |
13452 | ||
13453 | int main() { | |
13454 | dlopen() | |
13455 | ; return 0; } | |
13456 | EOF | |
f6bcfd97 | 13457 | if { (eval echo configure:13458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
13458 | rm -rf conftest* |
13459 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13460 | else | |
13461 | echo "configure: failed program was:" >&5 | |
13462 | cat conftest.$ac_ext >&5 | |
13463 | rm -rf conftest* | |
13464 | eval "ac_cv_lib_$ac_lib_var=no" | |
13465 | fi | |
13466 | rm -f conftest* | |
13467 | LIBS="$ac_save_LIBS" | |
13468 | ||
13469 | fi | |
13470 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13471 | echo "$ac_t""yes" 1>&6 | |
13472 | ||
13473 | cat >> confdefs.h <<\EOF | |
13474 | #define HAVE_DLOPEN 1 | |
13475 | EOF | |
13476 | ||
13477 | HAVE_DL_FUNCS=1 | |
13478 | LIBS="$LIBS -ldl" | |
13479 | ||
13480 | else | |
13481 | echo "$ac_t""no" 1>&6 | |
13482 | ||
13483 | for ac_func in shl_load | |
13484 | do | |
13485 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
f6bcfd97 | 13486 | echo "configure:13487: checking for $ac_func" >&5 |
10f2d63a VZ |
13487 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13488 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13489 | else | |
13490 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 13491 | #line 13492 "configure" |
10f2d63a VZ |
13492 | #include "confdefs.h" |
13493 | /* System header to define __stub macros and hopefully few prototypes, | |
13494 | which can conflict with char $ac_func(); below. */ | |
13495 | #include <assert.h> | |
13496 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13497 | /* We use char because int might match the return type of a gcc2 | |
13498 | builtin and then its argument prototype would still apply. */ | |
13499 | char $ac_func(); | |
13500 | ||
13501 | int main() { | |
13502 | ||
13503 | /* The GNU C library defines this for functions which it implements | |
13504 | to always fail with ENOSYS. Some functions are actually named | |
13505 | something starting with __ and the normal name is an alias. */ | |
13506 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13507 | choke me | |
13508 | #else | |
e8482f24 | 13509 | $ac_func(); |
10f2d63a VZ |
13510 | #endif |
13511 | ||
13512 | ; return 0; } | |
13513 | EOF | |
f6bcfd97 | 13514 | if { (eval echo configure:13515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
13515 | rm -rf conftest* |
13516 | eval "ac_cv_func_$ac_func=yes" | |
13517 | else | |
13518 | echo "configure: failed program was:" >&5 | |
13519 | cat conftest.$ac_ext >&5 | |
13520 | rm -rf conftest* | |
13521 | eval "ac_cv_func_$ac_func=no" | |
13522 | fi | |
13523 | rm -f conftest* | |
13524 | fi | |
13525 | ||
13526 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13527 | echo "$ac_t""yes" 1>&6 | |
13528 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13529 | cat >> confdefs.h <<EOF | |
13530 | #define $ac_tr_func 1 | |
13531 | EOF | |
13532 | ||
13533 | cat >> confdefs.h <<\EOF | |
13534 | #define HAVE_SHL_LOAD 1 | |
13535 | EOF | |
13536 | ||
13537 | HAVE_SHL_FUNCS=1 | |
13538 | ||
13539 | else | |
13540 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
13541 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 |
13542 | echo "configure:13543: checking for dld in -lshl_load" >&5 | |
13543 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` | |
13544 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13545 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13546 | else | |
13547 | ac_save_LIBS="$LIBS" | |
13548 | LIBS="-lshl_load $LIBS" | |
13549 | cat > conftest.$ac_ext <<EOF | |
13550 | #line 13551 "configure" | |
13551 | #include "confdefs.h" | |
13552 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13553 | /* We use char because int might match the return type of a gcc2 | |
13554 | builtin and then its argument prototype would still apply. */ | |
13555 | char dld(); | |
13556 | ||
13557 | int main() { | |
13558 | dld() | |
13559 | ; return 0; } | |
13560 | EOF | |
13561 | if { (eval echo configure:13562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13562 | rm -rf conftest* | |
13563 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13564 | else | |
13565 | echo "configure: failed program was:" >&5 | |
13566 | cat conftest.$ac_ext >&5 | |
13567 | rm -rf conftest* | |
13568 | eval "ac_cv_lib_$ac_lib_var=no" | |
13569 | fi | |
13570 | rm -f conftest* | |
13571 | LIBS="$ac_save_LIBS" | |
13572 | ||
13573 | fi | |
13574 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13575 | echo "$ac_t""yes" 1>&6 | |
13576 | ||
13577 | HAVE_SHL_FUNCS=1 | |
13578 | LIBS="$LIBS -ldld" | |
13579 | ||
13580 | else | |
13581 | echo "$ac_t""no" 1>&6 | |
13582 | fi | |
13583 | ||
13584 | ||
10f2d63a VZ |
13585 | fi |
13586 | done | |
13587 | ||
13588 | ||
13589 | fi | |
13590 | ||
13591 | ||
13592 | fi | |
13593 | done | |
13594 | ||
13595 | ||
f6bcfd97 BP |
13596 | if test "$HAVE_DL_FUNCS" = 1; then |
13597 | for ac_func in dlerror | |
13598 | do | |
13599 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
13600 | echo "configure:13601: checking for $ac_func" >&5 | |
13601 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
13602 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13603 | else | |
13604 | cat > conftest.$ac_ext <<EOF | |
13605 | #line 13606 "configure" | |
13606 | #include "confdefs.h" | |
13607 | /* System header to define __stub macros and hopefully few prototypes, | |
13608 | which can conflict with char $ac_func(); below. */ | |
13609 | #include <assert.h> | |
13610 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13611 | /* We use char because int might match the return type of a gcc2 | |
13612 | builtin and then its argument prototype would still apply. */ | |
13613 | char $ac_func(); | |
13614 | ||
13615 | int main() { | |
13616 | ||
13617 | /* The GNU C library defines this for functions which it implements | |
13618 | to always fail with ENOSYS. Some functions are actually named | |
13619 | something starting with __ and the normal name is an alias. */ | |
13620 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13621 | choke me | |
13622 | #else | |
13623 | $ac_func(); | |
13624 | #endif | |
13625 | ||
13626 | ; return 0; } | |
13627 | EOF | |
13628 | if { (eval echo configure:13629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13629 | rm -rf conftest* | |
13630 | eval "ac_cv_func_$ac_func=yes" | |
13631 | else | |
13632 | echo "configure: failed program was:" >&5 | |
13633 | cat conftest.$ac_ext >&5 | |
13634 | rm -rf conftest* | |
13635 | eval "ac_cv_func_$ac_func=no" | |
13636 | fi | |
13637 | rm -f conftest* | |
13638 | fi | |
13639 | ||
13640 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13641 | echo "$ac_t""yes" 1>&6 | |
13642 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13643 | cat >> confdefs.h <<EOF | |
13644 | #define $ac_tr_func 1 | |
13645 | EOF | |
13646 | cat >> confdefs.h <<\EOF | |
13647 | #define HAVE_DLERROR 1 | |
13648 | EOF | |
13649 | ||
13650 | else | |
13651 | echo "$ac_t""no" 1>&6 | |
13652 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
13653 | echo "configure:13654: checking for dlerror in -ldl" >&5 | |
13654 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` | |
13655 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13656 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13657 | else | |
13658 | ac_save_LIBS="$LIBS" | |
13659 | LIBS="-ldl $LIBS" | |
13660 | cat > conftest.$ac_ext <<EOF | |
13661 | #line 13662 "configure" | |
13662 | #include "confdefs.h" | |
13663 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13664 | /* We use char because int might match the return type of a gcc2 | |
13665 | builtin and then its argument prototype would still apply. */ | |
13666 | char dlerror(); | |
13667 | ||
13668 | int main() { | |
13669 | dlerror() | |
13670 | ; return 0; } | |
13671 | EOF | |
13672 | if { (eval echo configure:13673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
13673 | rm -rf conftest* | |
13674 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13675 | else | |
13676 | echo "configure: failed program was:" >&5 | |
13677 | cat conftest.$ac_ext >&5 | |
13678 | rm -rf conftest* | |
13679 | eval "ac_cv_lib_$ac_lib_var=no" | |
13680 | fi | |
13681 | rm -f conftest* | |
13682 | LIBS="$ac_save_LIBS" | |
13683 | ||
13684 | fi | |
13685 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13686 | echo "$ac_t""yes" 1>&6 | |
13687 | cat >> confdefs.h <<\EOF | |
13688 | #define HAVE_DLERROR 1 | |
13689 | EOF | |
13690 | ||
13691 | else | |
13692 | echo "$ac_t""no" 1>&6 | |
13693 | fi | |
13694 | ||
13695 | fi | |
13696 | done | |
13697 | ||
13698 | fi | |
13699 | ||
10f2d63a VZ |
13700 | if test "$HAVE_DL_FUNCS" = 0; then |
13701 | if test "$HAVE_SHL_FUNCS" = 0; then | |
13702 | if test "$USE_UNIX" = 1; then | |
b12915c1 | 13703 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 |
10f2d63a VZ |
13704 | wxUSE_DYNLIB_CLASS=no |
13705 | else | |
b12915c1 | 13706 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 |
10f2d63a VZ |
13707 | fi |
13708 | fi | |
13709 | fi | |
13710 | fi | |
13711 | ||
b089607b VZ |
13712 | fi |
13713 | ||
10f2d63a | 13714 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
b12915c1 | 13715 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
13716 | #define wxUSE_DYNLIB_CLASS 1 |
13717 | EOF | |
13718 | ||
b12915c1 VZ |
13719 | else |
13720 | wxUSE_ODBC=no | |
13721 | wxUSE_SERIAL=no | |
10f2d63a VZ |
13722 | fi |
13723 | ||
13724 | ||
13725 | if test "$wxUSE_UNICODE" = "yes" ; then | |
13726 | cat >> confdefs.h <<\EOF | |
13727 | #define wxUSE_UNICODE 1 | |
13728 | EOF | |
13729 | ||
13730 | fi | |
13731 | ||
13732 | if test "$wxUSE_WCSRTOMBS" = "yes" ; then | |
13733 | cat >> confdefs.h <<\EOF | |
13734 | #define wxUSE_WCSRTOMBS 1 | |
13735 | EOF | |
13736 | ||
13737 | fi | |
13738 | ||
13739 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
13740 | cat >> confdefs.h <<\EOF | |
13741 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
13742 | EOF | |
13743 | ||
13744 | fi | |
13745 | ||
13746 | ||
b12915c1 VZ |
13747 | if test "$wxUSE_SERIAL" = "yes" ; then |
13748 | cat >> confdefs.h <<\EOF | |
13749 | #define wxUSE_SERIAL 1 | |
13750 | EOF | |
13751 | ||
13752 | fi | |
13753 | ||
13754 | ||
10f2d63a VZ |
13755 | IODBC_C_SRC="" |
13756 | if test "$wxUSE_ODBC" = "yes" ; then | |
13757 | cat >> confdefs.h <<\EOF | |
13758 | #define wxUSE_ODBC 1 | |
13759 | EOF | |
13760 | ||
13761 | WXODBCFLAG="-D_IODBC_" | |
13762 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
13763 | IODBCOBJS="\$(IODBC_OBJS)" | |
13764 | else | |
13765 | IODBCOBJS= | |
13766 | fi | |
13767 | ||
13768 | ||
13769 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
13770 | cat >> confdefs.h <<\EOF | |
13771 | #define wxUSE_POSTSCRIPT 1 | |
13772 | EOF | |
13773 | ||
13774 | fi | |
13775 | ||
13776 | cat >> confdefs.h <<\EOF | |
13777 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
13778 | EOF | |
13779 | ||
13780 | ||
13781 | cat >> confdefs.h <<\EOF | |
13782 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
13783 | EOF | |
13784 | ||
13785 | ||
13786 | ||
13787 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
13788 | cat >> confdefs.h <<\EOF | |
13789 | #define wxUSE_CONSTRAINTS 1 | |
13790 | EOF | |
13791 | ||
13792 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
13793 | fi | |
13794 | ||
13795 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
13796 | cat >> confdefs.h <<\EOF | |
13797 | #define wxUSE_MDI_ARCHITECTURE 1 | |
13798 | EOF | |
13799 | ||
13800 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" | |
13801 | fi | |
13802 | ||
13803 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
13804 | cat >> confdefs.h <<\EOF | |
13805 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
13806 | EOF | |
13807 | ||
13808 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
13809 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
13810 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
13811 | fi | |
13812 | fi | |
13813 | ||
13814 | if test "$wxUSE_HELP" = "yes"; then | |
13815 | cat >> confdefs.h <<\EOF | |
13816 | #define wxUSE_HELP 1 | |
13817 | EOF | |
13818 | ||
13819 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
13820 | fi | |
13821 | ||
13822 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
13823 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
13824 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 | |
13825 | else | |
13826 | cat >> confdefs.h <<\EOF | |
13827 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
13828 | EOF | |
13829 | ||
13830 | fi | |
13831 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
13832 | fi | |
13833 | ||
13834 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
13835 | cat >> confdefs.h <<\EOF | |
13836 | #define wxUSE_PROLOGIO 1 | |
13837 | EOF | |
13838 | ||
13839 | fi | |
13840 | ||
13841 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
13842 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
13843 | cat >> confdefs.h <<\EOF | |
13844 | #define wxUSE_RESOURCES 1 | |
13845 | EOF | |
13846 | ||
13847 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" | |
13848 | else | |
13849 | echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2 | |
13850 | fi | |
13851 | fi | |
13852 | ||
13853 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
13854 | cat >> confdefs.h <<\EOF | |
13855 | #define wxUSE_X_RESOURCES 1 | |
13856 | EOF | |
13857 | ||
13858 | fi | |
13859 | ||
13860 | ||
13861 | if test "$wxUSE_IPC" = "yes"; then | |
eb4efbdc VZ |
13862 | if test "$wxUSE_SOCKETS" != "yes"; then |
13863 | echo "configure: warning: wxWindows IPC classes require sockets" 1>&2 | |
13864 | fi | |
13865 | ||
10f2d63a VZ |
13866 | cat >> confdefs.h <<\EOF |
13867 | #define wxUSE_IPC 1 | |
13868 | EOF | |
13869 | ||
13870 | fi | |
13871 | ||
13872 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
13873 | cat >> confdefs.h <<\EOF | |
13874 | #define wxUSE_CLIPBOARD 1 | |
13875 | EOF | |
13876 | ||
13877 | fi | |
13878 | ||
13879 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
13880 | if test "$wxUSE_GTK" = 1; then | |
13881 | if test "$WXGTK12" != 1; then | |
13882 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2 | |
13883 | wxUSE_DRAG_AND_DROP=no | |
13884 | fi | |
13885 | fi | |
13886 | ||
13887 | if test "$wxUSE_MOTIF" = 1; then | |
13888 | echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2 | |
13889 | wxUSE_DRAG_AND_DROP=no | |
13890 | fi | |
13891 | ||
13892 | if test "$USE_WIN32" = 1; then | |
13893 | for ac_hdr in ole2.h | |
13894 | do | |
13895 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
13896 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
f6bcfd97 | 13897 | echo "configure:13898: checking for $ac_hdr" >&5 |
10f2d63a VZ |
13898 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13899 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13900 | else | |
13901 | cat > conftest.$ac_ext <<EOF | |
f6bcfd97 | 13902 | #line 13903 "configure" |
10f2d63a VZ |
13903 | #include "confdefs.h" |
13904 | #include <$ac_hdr> | |
13905 | EOF | |
13906 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f6bcfd97 | 13907 | { (eval echo configure:13908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
13908 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13909 | if test -z "$ac_err"; then | |
13910 | rm -rf conftest* | |
13911 | eval "ac_cv_header_$ac_safe=yes" | |
13912 | else | |
13913 | echo "$ac_err" >&5 | |
13914 | echo "configure: failed program was:" >&5 | |
13915 | cat conftest.$ac_ext >&5 | |
13916 | rm -rf conftest* | |
13917 | eval "ac_cv_header_$ac_safe=no" | |
13918 | fi | |
13919 | rm -f conftest* | |
13920 | fi | |
13921 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13922 | echo "$ac_t""yes" 1>&6 | |
13923 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13924 | cat >> confdefs.h <<EOF | |
13925 | #define $ac_tr_hdr 1 | |
13926 | EOF | |
13927 | ||
13928 | else | |
13929 | echo "$ac_t""no" 1>&6 | |
13930 | fi | |
13931 | done | |
13932 | ||
13933 | if test "x$HAVE_OLE2_H" = x ; then | |
13934 | echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2 | |
13935 | wxUSE_DRAG_AND_DROP=no | |
13936 | fi | |
13937 | fi | |
13938 | ||
13939 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
13940 | cat >> confdefs.h <<\EOF | |
13941 | #define wxUSE_DRAG_AND_DROP 1 | |
13942 | EOF | |
13943 | ||
13944 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
13945 | fi | |
13946 | ||
13947 | fi | |
13948 | ||
13949 | if test "$wxUSE_SPLINES" = "yes" ; then | |
13950 | cat >> confdefs.h <<\EOF | |
13951 | #define wxUSE_SPLINES 1 | |
13952 | EOF | |
13953 | ||
13954 | fi | |
13955 | ||
13956 | ||
13957 | if test "$wxUSE_ACCEL" = "yes"; then | |
13958 | cat >> confdefs.h <<\EOF | |
13959 | #define wxUSE_ACCEL 1 | |
13960 | EOF | |
13961 | ||
13962 | fi | |
13963 | ||
13964 | if test "$wxUSE_CARET" = "yes"; then | |
13965 | cat >> confdefs.h <<\EOF | |
13966 | #define wxUSE_CARET 1 | |
13967 | EOF | |
13968 | ||
13969 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
13970 | fi | |
13971 | ||
13972 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
13973 | cat >> confdefs.h <<\EOF | |
13974 | #define wxUSE_COMBOBOX 1 | |
13975 | EOF | |
13976 | ||
13977 | fi | |
13978 | ||
13979 | if test "$wxUSE_CHOICE" = "yes"; then | |
13980 | cat >> confdefs.h <<\EOF | |
13981 | #define wxUSE_CHOICE 1 | |
13982 | EOF | |
13983 | ||
13984 | fi | |
13985 | ||
13986 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
13987 | cat >> confdefs.h <<\EOF | |
13988 | #define wxUSE_BMPBUTTON 1 | |
13989 | EOF | |
13990 | ||
13991 | fi | |
13992 | ||
13993 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
13994 | cat >> confdefs.h <<\EOF | |
13995 | #define wxUSE_CHECKBOX 1 | |
13996 | EOF | |
13997 | ||
13998 | fi | |
13999 | ||
14000 | if test "$wxUSE_CHECKLST" = "yes"; then | |
14001 | cat >> confdefs.h <<\EOF | |
14002 | #define wxUSE_CHECKLISTBOX 1 | |
14003 | EOF | |
14004 | ||
14005 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
14006 | fi | |
14007 | ||
14008 | if test "$wxUSE_GAUGE" = "yes"; then | |
14009 | cat >> confdefs.h <<\EOF | |
14010 | #define wxUSE_GAUGE 1 | |
14011 | EOF | |
14012 | ||
14013 | fi | |
14014 | ||
d6a55c4b VZ |
14015 | if test "$wxUSE_NEW_GRID" = "yes"; then |
14016 | wxUSE_GRID="yes" | |
10f2d63a | 14017 | cat >> confdefs.h <<\EOF |
d6a55c4b | 14018 | #define wxUSE_NEW_GRID 1 |
10f2d63a VZ |
14019 | EOF |
14020 | ||
d6a55c4b | 14021 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
14022 | fi |
14023 | ||
d6a55c4b | 14024 | if test "$wxUSE_GRID" = "yes"; then |
10f2d63a | 14025 | cat >> confdefs.h <<\EOF |
d6a55c4b | 14026 | #define wxUSE_GRID 1 |
10f2d63a VZ |
14027 | EOF |
14028 | ||
d6a55c4b | 14029 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
14030 | fi |
14031 | ||
14032 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
14033 | cat >> confdefs.h <<\EOF | |
14034 | #define wxUSE_IMAGLIST 1 | |
14035 | EOF | |
14036 | ||
14037 | fi | |
14038 | ||
14039 | if test "$wxUSE_LISTBOX" = "yes"; then | |
14040 | cat >> confdefs.h <<\EOF | |
14041 | #define wxUSE_LISTBOX 1 | |
14042 | EOF | |
14043 | ||
14044 | fi | |
14045 | ||
14046 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
14047 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
14048 | cat >> confdefs.h <<\EOF | |
14049 | #define wxUSE_LISTCTRL 1 | |
14050 | EOF | |
14051 | ||
14052 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
14053 | else | |
14054 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 | |
14055 | fi | |
14056 | fi | |
14057 | ||
14058 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
14059 | cat >> confdefs.h <<\EOF | |
14060 | #define wxUSE_NOTEBOOK 1 | |
14061 | EOF | |
14062 | ||
14063 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
14064 | fi | |
14065 | ||
14066 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
14067 | cat >> confdefs.h <<\EOF | |
14068 | #define wxUSE_RADIOBOX 1 | |
14069 | EOF | |
14070 | ||
14071 | fi | |
14072 | ||
14073 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
14074 | cat >> confdefs.h <<\EOF | |
14075 | #define wxUSE_RADIOBTN 1 | |
14076 | EOF | |
14077 | ||
14078 | fi | |
14079 | ||
14080 | if test "$wxUSE_SASH" = "yes"; then | |
14081 | cat >> confdefs.h <<\EOF | |
14082 | #define wxUSE_SASH 1 | |
14083 | EOF | |
14084 | ||
14085 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
14086 | fi | |
14087 | ||
14088 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
14089 | cat >> confdefs.h <<\EOF | |
14090 | #define wxUSE_SCROLLBAR 1 | |
14091 | EOF | |
14092 | ||
741a9306 | 14093 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
14094 | fi |
14095 | ||
14096 | if test "$wxUSE_SLIDER" = "yes"; then | |
14097 | cat >> confdefs.h <<\EOF | |
14098 | #define wxUSE_SLIDER 1 | |
14099 | EOF | |
14100 | ||
14101 | fi | |
14102 | ||
14103 | if test "$wxUSE_SPINBTN" = "yes"; then | |
14104 | cat >> confdefs.h <<\EOF | |
14105 | #define wxUSE_SPINBTN 1 | |
14106 | EOF | |
14107 | ||
14108 | fi | |
14109 | ||
56cfaa52 RR |
14110 | if test "$wxUSE_SPINCTRL" = "yes"; then |
14111 | cat >> confdefs.h <<\EOF | |
14112 | #define wxUSE_SPINCTRL 1 | |
14113 | EOF | |
14114 | ||
14115 | fi | |
14116 | ||
10f2d63a VZ |
14117 | if test "$wxUSE_SPLITTER" = "yes"; then |
14118 | cat >> confdefs.h <<\EOF | |
14119 | #define wxUSE_SPLITTER 1 | |
14120 | EOF | |
14121 | ||
14122 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
14123 | fi | |
14124 | ||
14125 | if test "$wxUSE_STATBMP" = "yes"; then | |
14126 | cat >> confdefs.h <<\EOF | |
14127 | #define wxUSE_STATBMP 1 | |
14128 | EOF | |
14129 | ||
14130 | fi | |
14131 | ||
14132 | if test "$wxUSE_STATBOX" = "yes"; then | |
14133 | cat >> confdefs.h <<\EOF | |
14134 | #define wxUSE_STATBOX 1 | |
14135 | EOF | |
14136 | ||
14137 | fi | |
14138 | ||
14139 | if test "$wxUSE_STATLINE" = "yes"; then | |
14140 | if test "$wxUSE_WINE" = 1 ; then | |
14141 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 | |
14142 | else | |
14143 | cat >> confdefs.h <<\EOF | |
14144 | #define wxUSE_STATLINE 1 | |
14145 | EOF | |
14146 | ||
14147 | fi | |
14148 | fi | |
14149 | ||
14150 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
14151 | cat >> confdefs.h <<\EOF | |
14152 | #define wxUSE_STATUSBAR 1 | |
14153 | EOF | |
14154 | ||
2286341c VZ |
14155 | |
14156 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
10f2d63a VZ |
14157 | fi |
14158 | ||
14159 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
14160 | cat >> confdefs.h <<\EOF | |
14161 | #define wxUSE_TAB_DIALOG 1 | |
14162 | EOF | |
14163 | ||
14164 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
14165 | fi | |
14166 | ||
360d6699 VZ |
14167 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
14168 | cat >> confdefs.h <<\EOF | |
14169 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
14170 | EOF | |
14171 | ||
14172 | wxUSE_TOOLBAR="yes" | |
14173 | fi | |
14174 | ||
10f2d63a VZ |
14175 | if test "$wxUSE_TOOLBAR" = "yes"; then |
14176 | cat >> confdefs.h <<\EOF | |
14177 | #define wxUSE_TOOLBAR 1 | |
14178 | EOF | |
14179 | ||
360d6699 VZ |
14180 | |
14181 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
14182 | wxUSE_TOOLBAR_NATIVE="yes" | |
14183 | fi | |
14184 | ||
10f2d63a VZ |
14185 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" |
14186 | fi | |
14187 | ||
360d6699 VZ |
14188 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
14189 | cat >> confdefs.h <<\EOF | |
14190 | #define wxUSE_TOOLBAR_NATIVE 1 | |
14191 | EOF | |
14192 | ||
14193 | fi | |
14194 | ||
10f2d63a VZ |
14195 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
14196 | if test "$wxUSE_MOTIF" = 1; then | |
14197 | echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2 | |
14198 | else | |
14199 | if test "$wxUSE_WINE" = 1; then | |
14200 | echo "configure: warning: wxTooltip not supported under WINE" 1>&2 | |
14201 | else | |
14202 | cat >> confdefs.h <<\EOF | |
14203 | #define wxUSE_TOOLTIPS 1 | |
14204 | EOF | |
14205 | ||
14206 | fi | |
14207 | fi | |
14208 | fi | |
14209 | ||
14210 | if test "$wxUSE_TREECTRL" = "yes"; then | |
14211 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
14212 | cat >> confdefs.h <<\EOF | |
14213 | #define wxUSE_TREECTRL 1 | |
14214 | EOF | |
14215 | ||
14216 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
14217 | else | |
14218 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 | |
14219 | fi | |
14220 | fi | |
14221 | ||
14222 | ||
14223 | ||
14224 | if test "$wxUSE_METAFILE" = "yes"; then | |
14225 | cat >> confdefs.h <<\EOF | |
14226 | #define wxUSE_METAFILE 1 | |
14227 | EOF | |
14228 | ||
14229 | fi | |
14230 | ||
14231 | if test "$wxUSE_DIRDLG" = "yes"; then | |
14232 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
14233 | echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2 | |
14234 | else | |
14235 | if test "$wxUSE_TREECTRL" != "yes"; then | |
14236 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
14237 | else | |
14238 | cat >> confdefs.h <<\EOF | |
14239 | #define wxUSE_DIRDLG 1 | |
14240 | EOF | |
14241 | ||
14242 | fi | |
14243 | fi | |
14244 | fi | |
14245 | ||
14246 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
14247 | cat >> confdefs.h <<\EOF | |
14248 | #define wxUSE_TEXTDLG 1 | |
14249 | EOF | |
14250 | ||
14251 | fi | |
14252 | ||
14253 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
14254 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
14255 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
14256 | else | |
14257 | cat >> confdefs.h <<\EOF | |
14258 | #define wxUSE_STARTUP_TIPS 1 | |
14259 | EOF | |
14260 | ||
14261 | fi | |
14262 | fi | |
14263 | ||
14264 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
14265 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
14266 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
14267 | else | |
14268 | cat >> confdefs.h <<\EOF | |
14269 | #define wxUSE_PROGRESSDLG 1 | |
14270 | EOF | |
14271 | ||
14272 | fi | |
14273 | fi | |
14274 | ||
14275 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
14276 | cat >> confdefs.h <<\EOF | |
14277 | #define wxUSE_MINIFRAME 1 | |
14278 | EOF | |
14279 | ||
14280 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
14281 | fi | |
14282 | ||
14283 | if test "$wxUSE_HTML" = "yes"; then | |
14284 | cat >> confdefs.h <<\EOF | |
14285 | #define wxUSE_HTML 1 | |
14286 | EOF | |
14287 | ||
14288 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
14289 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html" | |
14290 | fi | |
14291 | ||
14292 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
14293 | cat >> confdefs.h <<\EOF | |
14294 | #define wxUSE_VALIDATORS 1 | |
14295 | EOF | |
14296 | ||
14297 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
14298 | fi | |
14299 | ||
14300 | if test "$wxUSE_GIF" = "yes" ; then | |
14301 | cat >> confdefs.h <<\EOF | |
14302 | #define wxUSE_GIF 1 | |
14303 | EOF | |
14304 | ||
14305 | fi | |
14306 | ||
14307 | if test "$wxUSE_PCX" = "yes" ; then | |
14308 | cat >> confdefs.h <<\EOF | |
14309 | #define wxUSE_PCX 1 | |
14310 | EOF | |
14311 | ||
14312 | fi | |
14313 | ||
14314 | if test "$wxUSE_PNM" = "yes" ; then | |
14315 | cat >> confdefs.h <<\EOF | |
14316 | #define wxUSE_PNM 1 | |
14317 | EOF | |
14318 | ||
14319 | fi | |
14320 | ||
14321 | ||
32832908 VZ |
14322 | if test "$cross_compiling" = "yes"; then |
14323 | OSINFO="\"$host\"" | |
14324 | else | |
14325 | OSINFO=`uname -s -r -m` | |
14326 | OSINFO="\"$OSINFO\"" | |
14327 | fi | |
14328 | ||
aaa37c0d VZ |
14329 | cat >> confdefs.h <<EOF |
14330 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
14331 | EOF | |
14332 | ||
14333 | ||
14334 | ||
f6bcfd97 BP |
14335 | GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK" |
14336 | OPENGL_LIBS="$OPENGL_LINK" | |
10f2d63a | 14337 | |
f6bcfd97 | 14338 | EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm" |
10f2d63a | 14339 | if test "$wxUSE_GUI" = "yes"; then |
f6bcfd97 | 14340 | EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $EXTRA_LIBS" |
10f2d63a VZ |
14341 | fi |
14342 | ||
14343 | LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS" | |
14344 | ||
8461a059 | 14345 | INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE" |
10f2d63a | 14346 | |
f6bcfd97 BP |
14347 | if test "$wxUSE_GTK" = 1; then |
14348 | WXCONFIG_INCLUDE="" | |
14349 | else | |
14350 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
14351 | fi | |
14352 | ||
10f2d63a VZ |
14353 | if test "$GXX" = yes ; then |
14354 | CXXWARNINGS="-Wall" | |
d6a55c4b | 14355 | fi |
10f2d63a VZ |
14356 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" |
14357 | ||
f6bcfd97 | 14358 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` |
10f2d63a VZ |
14359 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` |
14360 | ||
e694c22c VZ |
14361 | LDFLAGS="$LDFLAGS $PROFILE" |
14362 | ||
10f2d63a VZ |
14363 | if test "$wxUSE_GUI" = "yes"; then |
14364 | ||
bdad4e7e | 14365 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs dragimag drawing dynamic \ |
bc9027cc | 14366 | font fractal image menu minimal richedit" |
b12915c1 | 14367 | |
88d3a15c | 14368 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" |
10f2d63a VZ |
14369 | else |
14370 | SAMPLES_SUBDIRS="" | |
14371 | fi | |
14372 | ||
ec14dd32 VZ |
14373 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" |
14374 | ||
14375 | ||
14376 | ||
10f2d63a VZ |
14377 | |
14378 | ||
14379 | ||
14380 | ||
14381 | ||
14382 | ||
14383 | ||
14384 | ||
14385 | ||
14386 | ||
14387 | ||
14388 | ||
14389 | ||
14390 | ||
14391 | ||
14392 | ||
14393 | ||
14394 | ||
14395 | ||
14396 | ||
14397 | ||
14398 | ||
14399 | ||
14400 | ||
14401 | ||
14402 | ||
14403 | ||
14404 | ||
14405 | ||
14406 | ||
14407 | ||
14408 | ||
14409 | ||
14410 | ||
14411 | ||
14412 | ||
14413 | ||
14414 | ||
14415 | ||
14416 | ||
14417 | ||
14418 | ||
14419 | ||
14420 | ||
14421 | ||
14422 | ||
14423 | ||
14424 | ||
14425 | ||
14426 | ||
14427 | ||
14428 | ||
1d62a8b4 | 14429 | |
bdad4e7e RR |
14430 | |
14431 | ||
14432 | ||
14433 | ||
14434 | ||
14435 | ||
14436 | ||
32832908 VZ |
14437 | |
14438 | ||
14439 | ||
14440 | ||
14441 | ||
14442 | ||
14443 | ||
14444 | ||
14445 | ||
14446 | ||
14447 | ||
14448 | ||
14449 | ||
bdad4e7e RR |
14450 | |
14451 | ||
14452 | ||
e694c22c | 14453 | |
b12915c1 | 14454 | |
2224580a VZ |
14455 | |
14456 | ||
14457 | ||
14458 | ||
dad6c0ea | 14459 | |
f6bcfd97 BP |
14460 | |
14461 | ||
14462 | ||
14463 | ||
dad6c0ea | 14464 | |
caa2c79b | 14465 | |
3711412e | 14466 | |
10f2d63a VZ |
14467 | |
14468 | ||
14469 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
f6bcfd97 | 14470 | echo "configure:14471: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
10f2d63a VZ |
14471 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
14472 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
14473 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14474 | else | |
14475 | cat > conftestmake <<\EOF | |
14476 | all: | |
14477 | @echo 'ac_maketemp="${MAKE}"' | |
14478 | EOF | |
14479 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
14480 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
14481 | if test -n "$ac_maketemp"; then | |
14482 | eval ac_cv_prog_make_${ac_make}_set=yes | |
14483 | else | |
14484 | eval ac_cv_prog_make_${ac_make}_set=no | |
14485 | fi | |
14486 | rm -f conftestmake | |
14487 | fi | |
14488 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
14489 | echo "$ac_t""yes" 1>&6 | |
14490 | SET_MAKE= | |
14491 | else | |
14492 | echo "$ac_t""no" 1>&6 | |
14493 | SET_MAKE="MAKE=${MAKE-make}" | |
14494 | fi | |
14495 | ||
14496 | ||
00cf1208 RR |
14497 | if test -d include; then |
14498 | if test -d include/wx; then | |
14499 | if test -d include/wx/${TOOLKIT_DIR}; then | |
14500 | if test -f include/wx/${TOOLKIT_DIR}/setup.h; then | |
14501 | mv -f include/wx/${TOOLKIT_DIR}/setup.h setup.h | |
14502 | fi | |
14503 | fi | |
14504 | fi | |
14505 | fi | |
14506 | ||
10f2d63a VZ |
14507 | |
14508 | ||
2224580a | 14509 | if test "$wxUSE_GUI" = "yes"; then |
ec90f5e5 | 14510 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
e8482f24 GL |
14511 | wx_cv_path_ifs=$PATH_IFS |
14512 | wx_cv_program_ext=$PROGRAM_EXT | |
14513 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
3711412e | 14514 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE |
e8482f24 | 14515 | subdirs="demos samples utils contrib" |
2224580a VZ |
14516 | |
14517 | fi | |
10f2d63a VZ |
14518 | |
14519 | trap '' 1 2 15 | |
14520 | cat > confcache <<\EOF | |
14521 | # This file is a shell script that caches the results of configure | |
14522 | # tests run on this system so they can be shared between configure | |
14523 | # scripts and configure runs. It is not useful on other systems. | |
14524 | # If it contains results you don't want to keep, you may remove or edit it. | |
14525 | # | |
14526 | # By default, configure uses ./config.cache as the cache file, | |
14527 | # creating it if it does not exist already. You can give configure | |
14528 | # the --cache-file=FILE option to use a different cache file; that is | |
14529 | # what configure does when it calls configure scripts in | |
14530 | # subdirectories, so they share the cache. | |
14531 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
14532 | # config.status only pays attention to the cache file if you give it the | |
14533 | # --recheck option to rerun configure. | |
14534 | # | |
14535 | EOF | |
14536 | # The following way of writing the cache mishandles newlines in values, | |
14537 | # but we know of no workaround that is simple, portable, and efficient. | |
14538 | # So, don't put newlines in cache variables' values. | |
14539 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
14540 | # and sets the high bit in the cache file unless we assign to the vars. | |
14541 | (set) 2>&1 | | |
14542 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
14543 | *ac_space=\ *) | |
14544 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
14545 | # turns \\\\ into \\, and sed turns \\ into \). | |
14546 | sed -n \ | |
14547 | -e "s/'/'\\\\''/g" \ | |
14548 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
14549 | ;; | |
14550 | *) | |
14551 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
14552 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
14553 | ;; | |
14554 | esac >> confcache | |
14555 | if cmp -s $cache_file confcache; then | |
14556 | : | |
14557 | else | |
14558 | if test -w $cache_file; then | |
14559 | echo "updating cache $cache_file" | |
14560 | cat confcache > $cache_file | |
14561 | else | |
14562 | echo "not updating unwritable cache $cache_file" | |
14563 | fi | |
14564 | fi | |
14565 | rm -f confcache | |
14566 | ||
14567 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
14568 | ||
14569 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
14570 | # Let make expand exec_prefix. | |
14571 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
14572 | ||
14573 | # Any assignment to VPATH causes Sun make to only execute | |
14574 | # the first set of double-colon rules, so remove it if not needed. | |
14575 | # If there is a colon in the path, we need to keep it. | |
14576 | if test "x$srcdir" = x.; then | |
14577 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
14578 | fi | |
14579 | ||
14580 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
14581 | ||
14582 | DEFS=-DHAVE_CONFIG_H | |
14583 | ||
14584 | # Without the "./", some shells look in PATH for config.status. | |
14585 | : ${CONFIG_STATUS=./config.status} | |
14586 | ||
14587 | echo creating $CONFIG_STATUS | |
14588 | rm -f $CONFIG_STATUS | |
14589 | cat > $CONFIG_STATUS <<EOF | |
14590 | #! /bin/sh | |
14591 | # Generated automatically by configure. | |
14592 | # Run this file to recreate the current configuration. | |
14593 | # This directory was configured as follows, | |
14594 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
14595 | # | |
14596 | # $0 $ac_configure_args | |
14597 | # | |
14598 | # Compiler output produced by configure, useful for debugging | |
14599 | # configure, is in ./config.log if it exists. | |
14600 | ||
14601 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
14602 | for ac_option | |
14603 | do | |
14604 | case "\$ac_option" in | |
14605 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
14606 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
14607 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
14608 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
e8482f24 | 14609 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
10f2d63a VZ |
14610 | exit 0 ;; |
14611 | -help | --help | --hel | --he | --h) | |
14612 | echo "\$ac_cs_usage"; exit 0 ;; | |
14613 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
14614 | esac | |
14615 | done | |
14616 | ||
14617 | ac_given_srcdir=$srcdir | |
14618 | ac_given_INSTALL="$INSTALL" | |
14619 | ||
14620 | trap 'rm -fr `echo " | |
14621 | wx-config | |
14622 | src/make.env | |
14623 | src/makeprog.env | |
14624 | src/makelib.env | |
14625 | Makefile | |
10f2d63a VZ |
14626 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
14627 | EOF | |
14628 | cat >> $CONFIG_STATUS <<EOF | |
14629 | ||
14630 | # Protect against being on the right side of a sed subst in config.status. | |
14631 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
14632 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
14633 | $ac_vpsub | |
14634 | $extrasub | |
14635 | s%@SHELL@%$SHELL%g | |
14636 | s%@CFLAGS@%$CFLAGS%g | |
14637 | s%@CPPFLAGS@%$CPPFLAGS%g | |
14638 | s%@CXXFLAGS@%$CXXFLAGS%g | |
14639 | s%@FFLAGS@%$FFLAGS%g | |
14640 | s%@DEFS@%$DEFS%g | |
14641 | s%@LDFLAGS@%$LDFLAGS%g | |
14642 | s%@LIBS@%$LIBS%g | |
14643 | s%@exec_prefix@%$exec_prefix%g | |
14644 | s%@prefix@%$prefix%g | |
14645 | s%@program_transform_name@%$program_transform_name%g | |
14646 | s%@bindir@%$bindir%g | |
14647 | s%@sbindir@%$sbindir%g | |
14648 | s%@libexecdir@%$libexecdir%g | |
14649 | s%@datadir@%$datadir%g | |
14650 | s%@sysconfdir@%$sysconfdir%g | |
14651 | s%@sharedstatedir@%$sharedstatedir%g | |
14652 | s%@localstatedir@%$localstatedir%g | |
14653 | s%@libdir@%$libdir%g | |
14654 | s%@includedir@%$includedir%g | |
14655 | s%@oldincludedir@%$oldincludedir%g | |
14656 | s%@infodir@%$infodir%g | |
14657 | s%@mandir@%$mandir%g | |
7c66a493 VZ |
14658 | s%@host@%$host%g |
14659 | s%@host_alias@%$host_alias%g | |
14660 | s%@host_cpu@%$host_cpu%g | |
14661 | s%@host_vendor@%$host_vendor%g | |
14662 | s%@host_os@%$host_os%g | |
14663 | s%@target@%$target%g | |
14664 | s%@target_alias@%$target_alias%g | |
14665 | s%@target_cpu@%$target_cpu%g | |
14666 | s%@target_vendor@%$target_vendor%g | |
14667 | s%@target_os@%$target_os%g | |
14668 | s%@build@%$build%g | |
14669 | s%@build_alias@%$build_alias%g | |
14670 | s%@build_cpu@%$build_cpu%g | |
14671 | s%@build_vendor@%$build_vendor%g | |
14672 | s%@build_os@%$build_os%g | |
10f2d63a VZ |
14673 | s%@CC@%$CC%g |
14674 | s%@CPP@%$CPP%g | |
14675 | s%@CXX@%$CXX%g | |
14676 | s%@CXXCPP@%$CXXCPP%g | |
14677 | s%@RANLIB@%$RANLIB%g | |
14678 | s%@AR@%$AR%g | |
14679 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
14680 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
14681 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
14682 | s%@STRIP@%$STRIP%g | |
14683 | s%@YACC@%$YACC%g | |
14684 | s%@LEX@%$LEX%g | |
14685 | s%@LEXLIB@%$LEXLIB%g | |
14686 | s%@LN_S@%$LN_S%g | |
14687 | s%@GTK_CONFIG@%$GTK_CONFIG%g | |
14688 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g | |
14689 | s%@GTK_LIBS@%$GTK_LIBS%g | |
ab9b9eab VZ |
14690 | s%@X_CFLAGS@%$X_CFLAGS%g |
14691 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
14692 | s%@X_LIBS@%$X_LIBS%g | |
14693 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
ec14dd32 VZ |
14694 | s%@LEX_STEM@%$LEX_STEM%g |
14695 | s%@PATH_IFS@%$PATH_IFS%g | |
10f2d63a VZ |
14696 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g |
14697 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
14698 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
14699 | s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g | |
14700 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
14701 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
14702 | s%@WX_LIBRARY@%$WX_LIBRARY%g | |
14703 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
14704 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
14705 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
14706 | s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g | |
14707 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g | |
bdad4e7e RR |
14708 | s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g |
14709 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g | |
14710 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
14711 | s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g | |
14712 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g | |
14713 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
14714 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
14715 | s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g | |
10f2d63a VZ |
14716 | s%@WX_ALL@%$WX_ALL%g |
14717 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
14718 | s%@SHARED_LD@%$SHARED_LD%g | |
14719 | s%@PIC_FLAG@%$PIC_FLAG%g | |
14720 | s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g | |
caa2c79b | 14721 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g |
1d62a8b4 | 14722 | s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g |
bdad4e7e | 14723 | s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g |
f6bcfd97 | 14724 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g |
3711412e | 14725 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g |
10f2d63a | 14726 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g |
dad6c0ea VZ |
14727 | s%@USE_GUI@%$USE_GUI%g |
14728 | s%@AFMINSTALL@%$AFMINSTALL%g | |
10f2d63a VZ |
14729 | s%@TOOLKIT@%$TOOLKIT%g |
14730 | s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g | |
14731 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
f6bcfd97 | 14732 | s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g |
10f2d63a | 14733 | s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g |
f6bcfd97 | 14734 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g |
10f2d63a VZ |
14735 | s%@GUIHEADERS@%$GUIHEADERS%g |
14736 | s%@GUIOBJS@%$GUIOBJS%g | |
14737 | s%@COMMONOBJS@%$COMMONOBJS%g | |
14738 | s%@GENERICOBJS@%$GENERICOBJS%g | |
14739 | s%@GUIDEPS@%$GUIDEPS%g | |
14740 | s%@COMMONDEPS@%$COMMONDEPS%g | |
14741 | s%@GENERICDEPS@%$GENERICDEPS%g | |
14742 | s%@IODBCOBJS@%$IODBCOBJS%g | |
14743 | s%@UNIXOBJS@%$UNIXOBJS%g | |
14744 | s%@UNIXDEPS@%$UNIXDEPS%g | |
14745 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
14746 | s%@ALL_DEPFILES@%$ALL_DEPFILES%g | |
10f2d63a | 14747 | s%@GUIDIST@%$GUIDIST%g |
2224580a VZ |
14748 | s%@PORT_FILES@%$PORT_FILES%g |
14749 | s%@DISTDIR@%$DISTDIR%g | |
14750 | s%@RPM_SPEC@%$RPM_SPEC%g | |
14751 | s%@RPM_FILES@%$RPM_FILES%g | |
10f2d63a VZ |
14752 | s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g |
14753 | s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g | |
14754 | s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g | |
14755 | s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g | |
14756 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g | |
14757 | s%@USER_SUBDIRS@%$USER_SUBDIRS%g | |
14758 | s%@EXTRA_LIBS@%$EXTRA_LIBS%g | |
f6bcfd97 | 14759 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g |
b12915c1 | 14760 | s%@EXTRADEFS@%$EXTRADEFS%g |
10f2d63a | 14761 | s%@LD_LIBS@%$LD_LIBS%g |
32832908 VZ |
14762 | s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g |
14763 | s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g | |
14764 | s%@RESPROGRAM@%$RESPROGRAM%g | |
14765 | s%@RESCOMP@%$RESCOMP%g | |
14766 | s%@RESFLAGS@%$RESFLAGS%g | |
14767 | s%@DLLTOOL@%$DLLTOOL%g | |
14768 | s%@AS@%$AS%g | |
14769 | s%@NM@%$NM%g | |
14770 | s%@LD@%$LD%g | |
14771 | s%@MAKEINFO@%$MAKEINFO%g | |
10f2d63a | 14772 | s%@SET_MAKE@%$SET_MAKE%g |
2224580a | 14773 | s%@subdirs@%$subdirs%g |
10f2d63a VZ |
14774 | |
14775 | CEOF | |
14776 | EOF | |
14777 | ||
14778 | cat >> $CONFIG_STATUS <<\EOF | |
14779 | ||
14780 | # Split the substitutions into bite-sized pieces for seds with | |
14781 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
14782 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
14783 | ac_file=1 # Number of current file. | |
14784 | ac_beg=1 # First line for current file. | |
14785 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
14786 | ac_more_lines=: | |
14787 | ac_sed_cmds="" | |
14788 | while $ac_more_lines; do | |
14789 | if test $ac_beg -gt 1; then | |
14790 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
14791 | else | |
14792 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
14793 | fi | |
14794 | if test ! -s conftest.s$ac_file; then | |
14795 | ac_more_lines=false | |
14796 | rm -f conftest.s$ac_file | |
14797 | else | |
14798 | if test -z "$ac_sed_cmds"; then | |
14799 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
14800 | else | |
14801 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
14802 | fi | |
14803 | ac_file=`expr $ac_file + 1` | |
14804 | ac_beg=$ac_end | |
14805 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
14806 | fi | |
14807 | done | |
14808 | if test -z "$ac_sed_cmds"; then | |
14809 | ac_sed_cmds=cat | |
14810 | fi | |
14811 | EOF | |
14812 | ||
14813 | cat >> $CONFIG_STATUS <<EOF | |
14814 | ||
14815 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
14816 | src/make.env | |
14817 | src/makeprog.env | |
14818 | src/makelib.env | |
14819 | Makefile | |
10f2d63a VZ |
14820 | "} |
14821 | EOF | |
14822 | cat >> $CONFIG_STATUS <<\EOF | |
14823 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
14824 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
14825 | case "$ac_file" in | |
14826 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
14827 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
14828 | *) ac_file_in="${ac_file}.in" ;; | |
14829 | esac | |
14830 | ||
14831 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
14832 | ||
14833 | # Remove last slash and all that follows it. Not all systems have dirname. | |
14834 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
14835 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
14836 | # The file is in a subdirectory. | |
14837 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
14838 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
14839 | # A "../" for each directory in $ac_dir_suffix. | |
14840 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
14841 | else | |
14842 | ac_dir_suffix= ac_dots= | |
14843 | fi | |
14844 | ||
14845 | case "$ac_given_srcdir" in | |
14846 | .) srcdir=. | |
14847 | if test -z "$ac_dots"; then top_srcdir=. | |
14848 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
14849 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
14850 | *) # Relative path. | |
14851 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
14852 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
14853 | esac | |
14854 | ||
14855 | case "$ac_given_INSTALL" in | |
14856 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
14857 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
14858 | esac | |
14859 | ||
14860 | echo creating "$ac_file" | |
14861 | rm -f "$ac_file" | |
14862 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
14863 | case "$ac_file" in | |
14864 | *Makefile*) ac_comsub="1i\\ | |
14865 | # $configure_input" ;; | |
14866 | *) ac_comsub= ;; | |
14867 | esac | |
14868 | ||
14869 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
14870 | sed -e "$ac_comsub | |
14871 | s%@configure_input@%$configure_input%g | |
14872 | s%@srcdir@%$srcdir%g | |
14873 | s%@top_srcdir@%$top_srcdir%g | |
14874 | s%@INSTALL@%$INSTALL%g | |
14875 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
14876 | fi; done | |
14877 | rm -f conftest.s* | |
14878 | ||
14879 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
14880 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
14881 | # | |
14882 | # ac_d sets the value in "#define NAME VALUE" lines. | |
14883 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
14884 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
14885 | ac_dC='\3' | |
14886 | ac_dD='%g' | |
14887 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
14888 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
14889 | ac_uB='\([ ]\)%\1#\2define\3' | |
14890 | ac_uC=' ' | |
14891 | ac_uD='\4%g' | |
14892 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
14893 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
14894 | ac_eB='$%\1#\2define\3' | |
14895 | ac_eC=' ' | |
14896 | ac_eD='%g' | |
14897 | ||
14898 | if test "${CONFIG_HEADERS+set}" != set; then | |
14899 | EOF | |
14900 | cat >> $CONFIG_STATUS <<EOF | |
14901 | CONFIG_HEADERS="setup.h:setup.h.in" | |
14902 | EOF | |
14903 | cat >> $CONFIG_STATUS <<\EOF | |
14904 | fi | |
14905 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
14906 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
14907 | case "$ac_file" in | |
14908 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
14909 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
14910 | *) ac_file_in="${ac_file}.in" ;; | |
14911 | esac | |
14912 | ||
14913 | echo creating $ac_file | |
14914 | ||
14915 | rm -f conftest.frag conftest.in conftest.out | |
14916 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
14917 | cat $ac_file_inputs > conftest.in | |
14918 | ||
14919 | EOF | |
14920 | ||
14921 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
14922 | # the proper values into config.h.in to produce config.h. And first: | |
14923 | # Protect against being on the right side of a sed subst in config.status. | |
14924 | # Protect against being in an unquoted here document in config.status. | |
14925 | rm -f conftest.vals | |
14926 | cat > conftest.hdr <<\EOF | |
14927 | s/[\\&%]/\\&/g | |
14928 | s%[\\$`]%\\&%g | |
14929 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
14930 | s%ac_d%ac_u%gp | |
14931 | s%ac_u%ac_e%gp | |
14932 | EOF | |
14933 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
14934 | rm -f conftest.hdr | |
14935 | ||
14936 | # This sed command replaces #undef with comments. This is necessary, for | |
14937 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
14938 | # on some systems where configure will not decide to define it. | |
14939 | cat >> conftest.vals <<\EOF | |
14940 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
14941 | EOF | |
14942 | ||
14943 | # Break up conftest.vals because some shells have a limit on | |
14944 | # the size of here documents, and old seds have small limits too. | |
14945 | ||
14946 | rm -f conftest.tail | |
14947 | while : | |
14948 | do | |
14949 | ac_lines=`grep -c . conftest.vals` | |
14950 | # grep -c gives empty output for an empty file on some AIX systems. | |
14951 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
14952 | # Write a limited-size here document to conftest.frag. | |
14953 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
14954 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
14955 | echo 'CEOF | |
14956 | sed -f conftest.frag conftest.in > conftest.out | |
14957 | rm -f conftest.in | |
14958 | mv conftest.out conftest.in | |
14959 | ' >> $CONFIG_STATUS | |
14960 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
14961 | rm -f conftest.vals | |
14962 | mv conftest.tail conftest.vals | |
14963 | done | |
14964 | rm -f conftest.vals | |
14965 | ||
14966 | cat >> $CONFIG_STATUS <<\EOF | |
14967 | rm -f conftest.frag conftest.h | |
14968 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
14969 | cat conftest.in >> conftest.h | |
14970 | rm -f conftest.in | |
14971 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
14972 | echo "$ac_file is unchanged" | |
14973 | rm -f conftest.h | |
14974 | else | |
14975 | # Remove last slash and all that follows it. Not all systems have dirname. | |
14976 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
14977 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
14978 | # The file is in a subdirectory. | |
14979 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
14980 | fi | |
14981 | rm -f $ac_file | |
14982 | mv conftest.h $ac_file | |
14983 | fi | |
14984 | fi; done | |
14985 | ||
14986 | EOF | |
14987 | cat >> $CONFIG_STATUS <<EOF | |
14988 | ||
14989 | TOOLKIT_DIR="${TOOLKIT_DIR}" | |
f6bcfd97 | 14990 | TOOLKIT_NAME="${TOOLKIT_NAME}" |
07eb77a6 | 14991 | LN_S="${LN_S}" |
10f2d63a VZ |
14992 | |
14993 | ||
14994 | EOF | |
14995 | cat >> $CONFIG_STATUS <<\EOF | |
14996 | ||
14997 | chmod +x wx-config | |
f6bcfd97 BP |
14998 | mv wx-config wx${TOOLKIT_NAME}-config |
14999 | ${LN_S} wx${TOOLKIT_NAME}-config wx-config | |
00cf1208 RR |
15000 | |
15001 | ||
15002 | if test ! -d lib; then | |
15003 | mkdir lib | |
15004 | fi | |
15005 | if test ! -d lib/wx; then | |
15006 | mkdir lib/wx | |
15007 | fi | |
15008 | if test ! -d lib/wx/include; then | |
15009 | mkdir lib/wx/include | |
15010 | fi | |
15011 | if test ! -d lib/wx/include/wx; then | |
15012 | mkdir lib/wx/include/wx | |
15013 | fi | |
f6bcfd97 BP |
15014 | if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then |
15015 | mkdir lib/wx/include/wx/${TOOLKIT_NAME} | |
00cf1208 RR |
15016 | fi |
15017 | if test -f setup.h; then | |
f6bcfd97 | 15018 | cp -f setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h |
00cf1208 | 15019 | fi |
07eb77a6 | 15020 | |
00cf1208 | 15021 | |
10f2d63a VZ |
15022 | if test ! -d include; then |
15023 | mkdir include | |
15024 | fi | |
15025 | if test ! -d include/wx; then | |
15026 | mkdir include/wx | |
15027 | fi | |
15028 | if test ! -d include/wx/${TOOLKIT_DIR}; then | |
15029 | mkdir include/wx/${TOOLKIT_DIR} | |
15030 | fi | |
afc31813 VZ |
15031 | if test -f setup.h; then |
15032 | mv -f setup.h include/wx/${TOOLKIT_DIR}/setup.h | |
15033 | fi | |
00cf1208 | 15034 | |
10f2d63a VZ |
15035 | |
15036 | exit 0 | |
15037 | EOF | |
15038 | chmod +x $CONFIG_STATUS | |
15039 | rm -fr confdefs* $ac_clean_files | |
15040 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
15041 | ||
2224580a VZ |
15042 | if test "$no_recursion" != yes; then |
15043 | ||
15044 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
15045 | ac_sub_configure_args= | |
15046 | ac_prev= | |
15047 | for ac_arg in $ac_configure_args; do | |
15048 | if test -n "$ac_prev"; then | |
15049 | ac_prev= | |
15050 | continue | |
15051 | fi | |
15052 | case "$ac_arg" in | |
15053 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
15054 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
15055 | ac_prev=cache_file ;; | |
15056 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
15057 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
15058 | ;; | |
15059 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
15060 | ac_prev=srcdir ;; | |
15061 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
15062 | ;; | |
15063 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
15064 | esac | |
15065 | done | |
15066 | ||
e8482f24 | 15067 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
15068 | |
15069 | # Do not complain, so a configure script can configure whichever | |
15070 | # parts of a large source tree are present. | |
15071 | if test ! -d $srcdir/$ac_config_dir; then | |
15072 | continue | |
15073 | fi | |
15074 | ||
15075 | echo configuring in $ac_config_dir | |
15076 | ||
15077 | case "$srcdir" in | |
15078 | .) ;; | |
15079 | *) | |
15080 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; | |
15081 | else | |
15082 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
15083 | fi | |
15084 | ;; | |
15085 | esac | |
15086 | ||
15087 | ac_popdir=`pwd` | |
15088 | cd $ac_config_dir | |
15089 | ||
15090 | # A "../" for each directory in /$ac_config_dir. | |
15091 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
15092 | ||
15093 | case "$srcdir" in | |
15094 | .) # No --srcdir option. We are building in place. | |
15095 | ac_sub_srcdir=$srcdir ;; | |
15096 | /*) # Absolute path. | |
15097 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
15098 | *) # Relative path. | |
15099 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; | |
15100 | esac | |
15101 | ||
15102 | # Check for guested configure; otherwise get Cygnus style configure. | |
15103 | if test -f $ac_sub_srcdir/configure; then | |
15104 | ac_sub_configure=$ac_sub_srcdir/configure | |
15105 | elif test -f $ac_sub_srcdir/configure.in; then | |
15106 | ac_sub_configure=$ac_configure | |
15107 | else | |
15108 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 | |
15109 | ac_sub_configure= | |
15110 | fi | |
15111 | ||
15112 | # The recursion is here. | |
15113 | if test -n "$ac_sub_configure"; then | |
15114 | ||
15115 | # Make the cache file name correct relative to the subdirectory. | |
15116 | case "$cache_file" in | |
15117 | /*) ac_sub_cache_file=$cache_file ;; | |
15118 | *) # Relative path. | |
15119 | ac_sub_cache_file="$ac_dots$cache_file" ;; | |
15120 | esac | |
15121 | case "$ac_given_INSTALL" in | |
15122 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
15123 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
15124 | esac | |
15125 | ||
15126 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" | |
15127 | # The eval makes quoting arguments work. | |
15128 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir | |
15129 | then : | |
15130 | else | |
15131 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
15132 | fi | |
15133 | fi | |
15134 | ||
15135 | cd $ac_popdir | |
15136 | done | |
15137 | fi | |
15138 | ||
10f2d63a | 15139 |