]>
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 | 39 | |
6f72b082 OK |
40 | |
41 | ||
42 | # Configure paths for GTK+ | |
43 | # Owen Taylor 97-11-3 | |
10f2d63a VZ |
44 | |
45 | ||
46 | # Guess values for system-dependent variables and create Makefiles. | |
e8482f24 | 47 | # Generated automatically using autoconf version 2.13 |
10f2d63a VZ |
48 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
49 | # | |
50 | # This configure script is free software; the Free Software Foundation | |
51 | # gives unlimited permission to copy, distribute and modify it. | |
52 | ||
53 | # Defaults: | |
54 | ac_help= | |
55 | ac_default_prefix=/usr/local | |
56 | # Any additions from configure.in: | |
57 | ac_help="$ac_help | |
58 | --enable-gui use GUI classes" | |
59 | ac_help="$ac_help | |
60 | --with-gtk use GTK+" | |
61 | ac_help="$ac_help | |
62 | --with-motif use Motif/Lesstif" | |
63 | ac_help="$ac_help | |
64 | --with-wine use WINE" | |
65 | ac_help="$ac_help | |
66 | --with-cygwin use Cygwin for MS-Windows" | |
67 | ac_help="$ac_help | |
68 | --with-mingw use GCC Minimal MS-Windows" | |
e07802fc VZ |
69 | ac_help="$ac_help |
70 | --with-pm use OS/2 Presentation Manager" | |
10f2d63a VZ |
71 | ac_help="$ac_help |
72 | --with-gtk-prefix=PFX Prefix where GTK is installed" | |
73 | ac_help="$ac_help | |
74 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed" | |
75 | ac_help="$ac_help | |
10f2d63a VZ |
76 | --with-libpng use libpng (PNG image format)" |
77 | ac_help="$ac_help | |
78 | --with-libjpeg use libjpeg (JPEG file format)" | |
79 | ac_help="$ac_help | |
c7a2bf27 RR |
80 | --with-libtiff use libtiff (TIFF file format)" |
81 | ac_help="$ac_help | |
10f2d63a VZ |
82 | --with-opengl use OpenGL (or Mesa)" |
83 | ac_help="$ac_help | |
b12915c1 VZ |
84 | --with-dmalloc use dmalloc library (www.letters.com/dmalloc)" |
85 | ac_help="$ac_help | |
86 | --with-zlib use zlib for LZW compression" | |
87 | ac_help="$ac_help | |
10f2d63a VZ |
88 | --with-odbc use the IODBC and wxODBC classes" |
89 | ac_help="$ac_help | |
90 | --enable-shared create shared library code" | |
91 | ac_help="$ac_help | |
00cf1208 RR |
92 | --enable-burnt_name create set name in shared library " |
93 | ac_help="$ac_help | |
10f2d63a VZ |
94 | --enable-optimise create optimised code" |
95 | ac_help="$ac_help | |
96 | --enable-debug same as debug_flag and debug_info" | |
97 | ac_help="$ac_help | |
98 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" | |
99 | ac_help="$ac_help | |
100 | --enable-debug_info create code with debugging information" | |
101 | ac_help="$ac_help | |
102 | --enable-debug_gdb create code with extra GDB debugging information" | |
103 | ac_help="$ac_help | |
104 | --enable-debug_cntxt use wxDebugContext" | |
105 | ac_help="$ac_help | |
106 | --enable-mem_tracing create code with memory tracing" | |
107 | ac_help="$ac_help | |
108 | --enable-profile create code with profiling information" | |
109 | ac_help="$ac_help | |
110 | --enable-no_rtti create code without RTTI information" | |
111 | ac_help="$ac_help | |
112 | --enable-no_exceptions create code without exceptions information" | |
113 | ac_help="$ac_help | |
114 | --enable-permissive compile code disregarding strict ANSI" | |
115 | ac_help="$ac_help | |
116 | --enable-no_deps create code without dependency information" | |
117 | ac_help="$ac_help | |
118 | --enable-intl use internationalization system" | |
119 | ac_help="$ac_help | |
120 | --enable-config use wxConfig (and derived) classes" | |
121 | ac_help="$ac_help | |
122 | --enable-sockets use socket/network classes" | |
123 | ac_help="$ac_help | |
10f2d63a VZ |
124 | --enable-ipc use interprocess communication (wxSocket etc.)" |
125 | ac_help="$ac_help | |
eb4efbdc VZ |
126 | --enable-dialupman use dialup network classes" |
127 | ac_help="$ac_help | |
10f2d63a VZ |
128 | --enable-apple_ieee use the Apple IEEE codec" |
129 | ac_help="$ac_help | |
130 | --enable-timedate use date/time classes" | |
131 | ac_help="$ac_help | |
132 | --enable-wave use wxWave class" | |
133 | ac_help="$ac_help | |
134 | --enable-fraction use wxFraction class" | |
135 | ac_help="$ac_help | |
136 | --enable-dynlib use wxLibrary class for DLL loading" | |
137 | ac_help="$ac_help | |
138 | --enable-longlong use wxLongLong class" | |
139 | ac_help="$ac_help | |
140 | --enable-log use logging system" | |
141 | ac_help="$ac_help | |
142 | --enable-streams use wxStream etc classes" | |
143 | ac_help="$ac_help | |
144 | --enable-file use wxFile classes" | |
145 | ac_help="$ac_help | |
146 | --enable-textfile use wxTextFile classes" | |
147 | ac_help="$ac_help | |
148 | --enable-unicode compile wxString with Unicode support" | |
149 | ac_help="$ac_help | |
150 | --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs" | |
151 | ac_help="$ac_help | |
152 | --enable-wxprintfv use wxWindows implementation of vprintf()" | |
153 | ac_help="$ac_help | |
10f2d63a VZ |
154 | --enable-std_iostreams use standard C++ stream classes" |
155 | ac_help="$ac_help | |
24528b0c VS |
156 | --enable-filesystem use virtual file systems classes" |
157 | ac_help="$ac_help | |
10f2d63a VZ |
158 | --enable-fs_inet use virtual HTTP/FTP filesystems" |
159 | ac_help="$ac_help | |
160 | --enable-fs_zip use virtual ZIP filesystems" | |
161 | ac_help="$ac_help | |
162 | --enable-zipstream use wxZipInputStream" | |
163 | ac_help="$ac_help | |
eb4efbdc VZ |
164 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException" |
165 | ac_help="$ac_help | |
10f2d63a VZ |
166 | --enable-threads use threads" |
167 | ac_help="$ac_help | |
168 | --enable-serial use class serialization" | |
169 | ac_help="$ac_help | |
170 | --enable-docview use document view architecture" | |
171 | ac_help="$ac_help | |
172 | --enable-help use help (using external browser at present)" | |
173 | ac_help="$ac_help | |
174 | --enable-constraints use layout-constraints system" | |
175 | ac_help="$ac_help | |
176 | --enable-printarch use printing architecture" | |
177 | ac_help="$ac_help | |
178 | --enable-mdi use multiple document interface architecture" | |
179 | ac_help="$ac_help | |
180 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" | |
181 | ac_help="$ac_help | |
182 | --enable-prologio use Prolog IO library" | |
183 | ac_help="$ac_help | |
184 | --enable-resources use wxWindows resources" | |
185 | ac_help="$ac_help | |
186 | --enable-xresources use X resources for save (default for gtk+)" | |
187 | ac_help="$ac_help | |
188 | --enable-clipboard use wxClipboard classes" | |
189 | ac_help="$ac_help | |
190 | --enable-dnd use Drag'n'Drop classes" | |
191 | ac_help="$ac_help | |
192 | --enable-wxtree make wxTree library" | |
193 | ac_help="$ac_help | |
194 | --enable-controls use all usual controls" | |
195 | ac_help="$ac_help | |
196 | --enable-accel use accelerators" | |
197 | ac_help="$ac_help | |
198 | --enable-caret use wxCaret class" | |
199 | ac_help="$ac_help | |
200 | --enable-bmpbutton use wxBitmapButton class" | |
201 | ac_help="$ac_help | |
202 | --enable-checkbox use wxCheckBox class" | |
203 | ac_help="$ac_help | |
204 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" | |
205 | ac_help="$ac_help | |
206 | --enable-choice use wxChoice class" | |
207 | ac_help="$ac_help | |
208 | --enable-combobox use wxComboBox classes" | |
209 | ac_help="$ac_help | |
210 | --enable-gauge use wxGauge class" | |
211 | ac_help="$ac_help | |
212 | --enable-grid use wxGrid class" | |
213 | ac_help="$ac_help | |
214 | --enable-newgrid use new wxGrid class" | |
215 | ac_help="$ac_help | |
216 | --enable-imaglist use wxImageList class" | |
217 | ac_help="$ac_help | |
218 | --enable-listbox use wxListBox class" | |
219 | ac_help="$ac_help | |
220 | --enable-listctrl use wxListCtrl class" | |
221 | ac_help="$ac_help | |
222 | --enable-notebook use wxNotebook class" | |
223 | ac_help="$ac_help | |
224 | --enable-radiobox use wxRadioBox class" | |
225 | ac_help="$ac_help | |
226 | --enable-radiobtn use wxRadioButton class" | |
227 | ac_help="$ac_help | |
228 | --enable-sash use wxSashWindow class" | |
229 | ac_help="$ac_help | |
230 | --enable-scrollbar use wxScrollBar class and scrollable windows" | |
231 | ac_help="$ac_help | |
232 | --enable-slider use wxSlider class" | |
233 | ac_help="$ac_help | |
234 | --enable-spinbtn use wxSpinButton class" | |
235 | ac_help="$ac_help | |
56cfaa52 RR |
236 | --enable-spinctrl use wxSpinCtrl class" |
237 | ac_help="$ac_help | |
10f2d63a VZ |
238 | --enable-splitter use wxSplitterWindow class" |
239 | ac_help="$ac_help | |
240 | --enable-statbmp use wxStaticBitmap class" | |
241 | ac_help="$ac_help | |
242 | --enable-statbox use wxStaticBox class" | |
243 | ac_help="$ac_help | |
244 | --enable-statline use wxStaticLine class" | |
245 | ac_help="$ac_help | |
246 | --enable-statusbar use wxStatusBar class" | |
247 | ac_help="$ac_help | |
248 | --enable-tabdialog use wxTabControl class" | |
249 | ac_help="$ac_help | |
250 | --enable-toolbar use wxToolBar class" | |
251 | ac_help="$ac_help | |
360d6699 VZ |
252 | --enable-tbarnative use native wxToolBar class" |
253 | ac_help="$ac_help | |
254 | --enable-tbarsmpl use wxToolBarSimple class" | |
255 | ac_help="$ac_help | |
10f2d63a VZ |
256 | --enable-treectrl use wxTreeCtrl class" |
257 | ac_help="$ac_help | |
258 | --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)" | |
259 | ac_help="$ac_help | |
260 | --enable-dirdlg use wxDirDialog" | |
261 | ac_help="$ac_help | |
262 | --enable-textdlg use wxTextDialog" | |
263 | ac_help="$ac_help | |
264 | --enable-tipdlg use startup tips" | |
265 | ac_help="$ac_help | |
266 | --enable-progressdlg use wxProgressDialog" | |
267 | ac_help="$ac_help | |
268 | --enable-miniframe use wxMiniFrame class" | |
269 | ac_help="$ac_help | |
270 | --enable-html use wxHTML sub-library" | |
271 | ac_help="$ac_help | |
272 | --enable-tooltips use wxToolTip class" | |
273 | ac_help="$ac_help | |
274 | --enable-splines use spline drawing code" | |
275 | ac_help="$ac_help | |
276 | --enable-validators use wxValidator and derived classes" | |
277 | ac_help="$ac_help | |
278 | --enable-busyinfo use wxBusyInfo" | |
279 | ac_help="$ac_help | |
9b33fe02 VZ |
280 | --enable-plot use wxPlot" |
281 | ac_help="$ac_help | |
f6bcfd97 BP |
282 | --enable-joystick compile in joystick support (Linux only)" |
283 | ac_help="$ac_help | |
10f2d63a VZ |
284 | --enable-gif use gif images (GIF file format)" |
285 | ac_help="$ac_help | |
286 | --enable-pcx use pcx images (PCX file format)" | |
287 | ac_help="$ac_help | |
288 | --enable-pnm use pnm images (PNM file format)" | |
6f72b082 OK |
289 | ac_help="$ac_help |
290 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
291 | ac_help="$ac_help | |
292 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
293 | ac_help="$ac_help | |
294 | --disable-gtktest Do not try to compile and run a test GTK program" | |
ab9b9eab VZ |
295 | ac_help="$ac_help |
296 | --with-x use the X Window System" | |
10f2d63a VZ |
297 | |
298 | # Initialize some variables set by options. | |
299 | # The variables have the same names as the options, with | |
300 | # dashes changed to underlines. | |
301 | build=NONE | |
302 | cache_file=./config.cache | |
303 | exec_prefix=NONE | |
304 | host=NONE | |
305 | no_create= | |
306 | nonopt=NONE | |
307 | no_recursion= | |
308 | prefix=NONE | |
309 | program_prefix=NONE | |
310 | program_suffix=NONE | |
311 | program_transform_name=s,x,x, | |
312 | silent= | |
313 | site= | |
314 | srcdir= | |
315 | target=NONE | |
316 | verbose= | |
317 | x_includes=NONE | |
318 | x_libraries=NONE | |
319 | bindir='${exec_prefix}/bin' | |
320 | sbindir='${exec_prefix}/sbin' | |
321 | libexecdir='${exec_prefix}/libexec' | |
322 | datadir='${prefix}/share' | |
323 | sysconfdir='${prefix}/etc' | |
324 | sharedstatedir='${prefix}/com' | |
325 | localstatedir='${prefix}/var' | |
326 | libdir='${exec_prefix}/lib' | |
327 | includedir='${prefix}/include' | |
328 | oldincludedir='/usr/include' | |
329 | infodir='${prefix}/info' | |
330 | mandir='${prefix}/man' | |
331 | ||
332 | # Initialize some other variables. | |
333 | subdirs= | |
334 | MFLAGS= MAKEFLAGS= | |
335 | SHELL=${CONFIG_SHELL-/bin/sh} | |
336 | # Maximum number of lines to put in a shell here document. | |
337 | ac_max_here_lines=12 | |
338 | ||
339 | ac_prev= | |
340 | for ac_option | |
341 | do | |
342 | ||
343 | # If the previous option needs an argument, assign it. | |
344 | if test -n "$ac_prev"; then | |
345 | eval "$ac_prev=\$ac_option" | |
346 | ac_prev= | |
347 | continue | |
348 | fi | |
349 | ||
350 | case "$ac_option" in | |
351 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
352 | *) ac_optarg= ;; | |
353 | esac | |
354 | ||
355 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
356 | ||
357 | case "$ac_option" in | |
358 | ||
359 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
360 | ac_prev=bindir ;; | |
361 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
362 | bindir="$ac_optarg" ;; | |
363 | ||
364 | -build | --build | --buil | --bui | --bu) | |
365 | ac_prev=build ;; | |
366 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
367 | build="$ac_optarg" ;; | |
368 | ||
369 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
370 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
371 | ac_prev=cache_file ;; | |
372 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
373 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
374 | cache_file="$ac_optarg" ;; | |
375 | ||
376 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
377 | ac_prev=datadir ;; | |
378 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
379 | | --da=*) | |
380 | datadir="$ac_optarg" ;; | |
381 | ||
382 | -disable-* | --disable-*) | |
383 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
384 | # Reject names that are not valid shell variable names. | |
385 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
386 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
387 | fi | |
388 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
389 | eval "enable_${ac_feature}=no" ;; | |
390 | ||
391 | -enable-* | --enable-*) | |
392 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
393 | # Reject names that are not valid shell variable names. | |
394 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
395 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
396 | fi | |
397 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
398 | case "$ac_option" in | |
399 | *=*) ;; | |
400 | *) ac_optarg=yes ;; | |
401 | esac | |
402 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
403 | ||
404 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
405 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
406 | | --exec | --exe | --ex) | |
407 | ac_prev=exec_prefix ;; | |
408 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
409 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
410 | | --exec=* | --exe=* | --ex=*) | |
411 | exec_prefix="$ac_optarg" ;; | |
412 | ||
413 | -gas | --gas | --ga | --g) | |
414 | # Obsolete; use --with-gas. | |
415 | with_gas=yes ;; | |
416 | ||
417 | -help | --help | --hel | --he) | |
418 | # Omit some internal or obsolete options to make the list less imposing. | |
419 | # This message is too long to be a string in the A/UX 3.1 sh. | |
420 | cat << EOF | |
421 | Usage: configure [options] [host] | |
422 | Options: [defaults in brackets after descriptions] | |
423 | Configuration: | |
424 | --cache-file=FILE cache test results in FILE | |
425 | --help print this message | |
426 | --no-create do not create output files | |
427 | --quiet, --silent do not print \`checking...' messages | |
428 | --version print the version of autoconf that created configure | |
429 | Directory and file names: | |
430 | --prefix=PREFIX install architecture-independent files in PREFIX | |
431 | [$ac_default_prefix] | |
432 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
433 | [same as prefix] | |
434 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
435 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
436 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
437 | --datadir=DIR read-only architecture-independent data in DIR | |
438 | [PREFIX/share] | |
439 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
440 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
441 | [PREFIX/com] | |
442 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
443 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
444 | --includedir=DIR C header files in DIR [PREFIX/include] | |
445 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
446 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
447 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
448 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
449 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
450 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
451 | --program-transform-name=PROGRAM | |
452 | run sed PROGRAM on installed program names | |
453 | EOF | |
454 | cat << EOF | |
455 | Host type: | |
456 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
457 | --host=HOST configure for HOST [guessed] | |
458 | --target=TARGET configure for TARGET [TARGET=HOST] | |
459 | Features and packages: | |
460 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
461 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
462 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
463 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
464 | --x-includes=DIR X include files are in DIR | |
465 | --x-libraries=DIR X library files are in DIR | |
466 | EOF | |
467 | if test -n "$ac_help"; then | |
468 | echo "--enable and --with options recognized:$ac_help" | |
469 | fi | |
470 | exit 0 ;; | |
471 | ||
472 | -host | --host | --hos | --ho) | |
473 | ac_prev=host ;; | |
474 | -host=* | --host=* | --hos=* | --ho=*) | |
475 | host="$ac_optarg" ;; | |
476 | ||
477 | -includedir | --includedir | --includedi | --included | --include \ | |
478 | | --includ | --inclu | --incl | --inc) | |
479 | ac_prev=includedir ;; | |
480 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
481 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
482 | includedir="$ac_optarg" ;; | |
483 | ||
484 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
485 | ac_prev=infodir ;; | |
486 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
487 | infodir="$ac_optarg" ;; | |
488 | ||
489 | -libdir | --libdir | --libdi | --libd) | |
490 | ac_prev=libdir ;; | |
491 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
492 | libdir="$ac_optarg" ;; | |
493 | ||
494 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
495 | | --libexe | --libex | --libe) | |
496 | ac_prev=libexecdir ;; | |
497 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
498 | | --libexe=* | --libex=* | --libe=*) | |
499 | libexecdir="$ac_optarg" ;; | |
500 | ||
501 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
502 | | --localstate | --localstat | --localsta | --localst \ | |
503 | | --locals | --local | --loca | --loc | --lo) | |
504 | ac_prev=localstatedir ;; | |
505 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
506 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
507 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
508 | localstatedir="$ac_optarg" ;; | |
509 | ||
510 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
511 | ac_prev=mandir ;; | |
512 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
513 | mandir="$ac_optarg" ;; | |
514 | ||
515 | -nfp | --nfp | --nf) | |
516 | # Obsolete; use --without-fp. | |
517 | with_fp=no ;; | |
518 | ||
519 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
520 | | --no-cr | --no-c) | |
521 | no_create=yes ;; | |
522 | ||
523 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
524 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
525 | no_recursion=yes ;; | |
526 | ||
527 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
528 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
529 | | --oldin | --oldi | --old | --ol | --o) | |
530 | ac_prev=oldincludedir ;; | |
531 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
532 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
533 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
534 | oldincludedir="$ac_optarg" ;; | |
535 | ||
536 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
537 | ac_prev=prefix ;; | |
538 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
539 | prefix="$ac_optarg" ;; | |
540 | ||
541 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
542 | | --program-pre | --program-pr | --program-p) | |
543 | ac_prev=program_prefix ;; | |
544 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
545 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
546 | program_prefix="$ac_optarg" ;; | |
547 | ||
548 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
549 | | --program-suf | --program-su | --program-s) | |
550 | ac_prev=program_suffix ;; | |
551 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
552 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
553 | program_suffix="$ac_optarg" ;; | |
554 | ||
555 | -program-transform-name | --program-transform-name \ | |
556 | | --program-transform-nam | --program-transform-na \ | |
557 | | --program-transform-n | --program-transform- \ | |
558 | | --program-transform | --program-transfor \ | |
559 | | --program-transfo | --program-transf \ | |
560 | | --program-trans | --program-tran \ | |
561 | | --progr-tra | --program-tr | --program-t) | |
562 | ac_prev=program_transform_name ;; | |
563 | -program-transform-name=* | --program-transform-name=* \ | |
564 | | --program-transform-nam=* | --program-transform-na=* \ | |
565 | | --program-transform-n=* | --program-transform-=* \ | |
566 | | --program-transform=* | --program-transfor=* \ | |
567 | | --program-transfo=* | --program-transf=* \ | |
568 | | --program-trans=* | --program-tran=* \ | |
569 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
570 | program_transform_name="$ac_optarg" ;; | |
571 | ||
572 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
573 | | -silent | --silent | --silen | --sile | --sil) | |
574 | silent=yes ;; | |
575 | ||
576 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
577 | ac_prev=sbindir ;; | |
578 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
579 | | --sbi=* | --sb=*) | |
580 | sbindir="$ac_optarg" ;; | |
581 | ||
582 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
583 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
584 | | --sharedst | --shareds | --shared | --share | --shar \ | |
585 | | --sha | --sh) | |
586 | ac_prev=sharedstatedir ;; | |
587 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
588 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
589 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
590 | | --sha=* | --sh=*) | |
591 | sharedstatedir="$ac_optarg" ;; | |
592 | ||
593 | -site | --site | --sit) | |
594 | ac_prev=site ;; | |
595 | -site=* | --site=* | --sit=*) | |
596 | site="$ac_optarg" ;; | |
597 | ||
598 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
599 | ac_prev=srcdir ;; | |
600 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
601 | srcdir="$ac_optarg" ;; | |
602 | ||
603 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
604 | | --syscon | --sysco | --sysc | --sys | --sy) | |
605 | ac_prev=sysconfdir ;; | |
606 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
607 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
608 | sysconfdir="$ac_optarg" ;; | |
609 | ||
610 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
611 | ac_prev=target ;; | |
612 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
613 | target="$ac_optarg" ;; | |
614 | ||
615 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
616 | verbose=yes ;; | |
617 | ||
618 | -version | --version | --versio | --versi | --vers) | |
e8482f24 | 619 | echo "configure generated by autoconf version 2.13" |
10f2d63a VZ |
620 | exit 0 ;; |
621 | ||
622 | -with-* | --with-*) | |
623 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
624 | # Reject names that are not valid shell variable names. | |
625 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
626 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
627 | fi | |
628 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
629 | case "$ac_option" in | |
630 | *=*) ;; | |
631 | *) ac_optarg=yes ;; | |
632 | esac | |
633 | eval "with_${ac_package}='$ac_optarg'" ;; | |
634 | ||
635 | -without-* | --without-*) | |
636 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
637 | # Reject names that are not valid shell variable names. | |
638 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
639 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
640 | fi | |
641 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
642 | eval "with_${ac_package}=no" ;; | |
643 | ||
644 | --x) | |
645 | # Obsolete; use --with-x. | |
646 | with_x=yes ;; | |
647 | ||
648 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
649 | | --x-incl | --x-inc | --x-in | --x-i) | |
650 | ac_prev=x_includes ;; | |
651 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
652 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
653 | x_includes="$ac_optarg" ;; | |
654 | ||
655 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
656 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
657 | ac_prev=x_libraries ;; | |
658 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
659 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
660 | x_libraries="$ac_optarg" ;; | |
661 | ||
662 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
663 | ;; | |
664 | ||
665 | *) | |
666 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
667 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
668 | fi | |
669 | if test "x$nonopt" != xNONE; then | |
670 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
671 | fi | |
672 | nonopt="$ac_option" | |
673 | ;; | |
674 | ||
675 | esac | |
676 | done | |
677 | ||
678 | if test -n "$ac_prev"; then | |
679 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
680 | fi | |
681 | ||
682 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
683 | ||
684 | # File descriptor usage: | |
685 | # 0 standard input | |
686 | # 1 file creation | |
687 | # 2 errors and warnings | |
688 | # 3 some systems may open it to /dev/tty | |
689 | # 4 used on the Kubota Titan | |
690 | # 6 checking for... messages and results | |
691 | # 5 compiler messages saved in config.log | |
692 | if test "$silent" = yes; then | |
693 | exec 6>/dev/null | |
694 | else | |
695 | exec 6>&1 | |
696 | fi | |
697 | exec 5>./config.log | |
698 | ||
699 | echo "\ | |
700 | This file contains any messages produced by compilers while | |
701 | running configure, to aid debugging if configure makes a mistake. | |
702 | " 1>&5 | |
703 | ||
704 | # Strip out --no-create and --no-recursion so they do not pile up. | |
705 | # Also quote any args containing shell metacharacters. | |
706 | ac_configure_args= | |
707 | for ac_arg | |
708 | do | |
709 | case "$ac_arg" in | |
710 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
711 | | --no-cr | --no-c) ;; | |
712 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
713 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
714 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
715 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
716 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
717 | esac | |
718 | done | |
719 | ||
720 | # NLS nuisances. | |
721 | # Only set these to C if already set. These must not be set unconditionally | |
722 | # because not all systems understand e.g. LANG=C (notably SCO). | |
723 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
724 | # Non-C LC_CTYPE values break the ctype check. | |
725 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
726 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
727 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
728 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
729 | ||
730 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
731 | rm -rf conftest* confdefs.h | |
732 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
733 | echo > confdefs.h | |
734 | ||
735 | # A filename unique to this package, relative to the directory that | |
736 | # configure is in, which we can look for to find out if srcdir is correct. | |
737 | ac_unique_file=wx-config.in | |
738 | ||
739 | # Find the source files, if location was not specified. | |
740 | if test -z "$srcdir"; then | |
741 | ac_srcdir_defaulted=yes | |
742 | # Try the directory containing this script, then its parent. | |
743 | ac_prog=$0 | |
744 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
745 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
746 | srcdir=$ac_confdir | |
747 | if test ! -r $srcdir/$ac_unique_file; then | |
748 | srcdir=.. | |
749 | fi | |
750 | else | |
751 | ac_srcdir_defaulted=no | |
752 | fi | |
753 | if test ! -r $srcdir/$ac_unique_file; then | |
754 | if test "$ac_srcdir_defaulted" = yes; then | |
755 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
756 | else | |
757 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
758 | fi | |
759 | fi | |
760 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
761 | ||
762 | # Prefer explicitly selected file to automatically selected ones. | |
763 | if test -z "$CONFIG_SITE"; then | |
764 | if test "x$prefix" != xNONE; then | |
765 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
766 | else | |
767 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
768 | fi | |
769 | fi | |
770 | for ac_site_file in $CONFIG_SITE; do | |
771 | if test -r "$ac_site_file"; then | |
772 | echo "loading site script $ac_site_file" | |
773 | . "$ac_site_file" | |
774 | fi | |
775 | done | |
776 | ||
777 | if test -r "$cache_file"; then | |
778 | echo "loading cache $cache_file" | |
779 | . $cache_file | |
780 | else | |
781 | echo "creating cache $cache_file" | |
782 | > $cache_file | |
783 | fi | |
784 | ||
785 | ac_ext=c | |
786 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
787 | ac_cpp='$CPP $CPPFLAGS' | |
788 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
789 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
790 | cross_compiling=$ac_cv_prog_cc_cross | |
791 | ||
792 | ac_exeext= | |
793 | ac_objext=o | |
794 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
795 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
796 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
797 | ac_n= ac_c=' | |
798 | ' ac_t=' ' | |
799 | else | |
800 | ac_n=-n ac_c= ac_t= | |
801 | fi | |
802 | else | |
803 | ac_n= ac_c='\c' ac_t= | |
804 | fi | |
805 | ||
806 | ||
807 | ||
7c66a493 VZ |
808 | ac_aux_dir= |
809 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
810 | if test -f $ac_dir/install-sh; then | |
811 | ac_aux_dir=$ac_dir | |
812 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
813 | break | |
814 | elif test -f $ac_dir/install.sh; then | |
815 | ac_aux_dir=$ac_dir | |
816 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
817 | break | |
818 | fi | |
819 | done | |
820 | if test -z "$ac_aux_dir"; then | |
821 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
822 | fi | |
823 | ac_config_guess=$ac_aux_dir/config.guess | |
824 | ac_config_sub=$ac_aux_dir/config.sub | |
825 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
826 | ||
827 | ||
828 | # Do some error checking and defaulting for the host and target type. | |
829 | # The inputs are: | |
830 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
831 | # | |
832 | # The rules are: | |
833 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
834 | # same time. | |
835 | # 2. Host defaults to nonopt. | |
836 | # 3. If nonopt is not specified, then host defaults to the current host, | |
837 | # as determined by config.guess. | |
838 | # 4. Target and build default to nonopt. | |
839 | # 5. If nonopt is not specified, then target and build default to host. | |
840 | ||
841 | # The aliases save the names the user supplied, while $host etc. | |
842 | # will get canonicalized. | |
843 | case $host---$target---$nonopt in | |
844 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
845 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
846 | esac | |
847 | ||
848 | ||
849 | # Make sure we can run config.sub. | |
850 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
851 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
852 | fi | |
853 | ||
854 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
6f72b082 | 855 | echo "configure:856: checking host system type" >&5 |
7c66a493 VZ |
856 | |
857 | host_alias=$host | |
858 | case "$host_alias" in | |
859 | NONE) | |
860 | case $nonopt in | |
861 | NONE) | |
862 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
863 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
864 | fi ;; | |
865 | *) host_alias=$nonopt ;; | |
866 | esac ;; | |
867 | esac | |
868 | ||
869 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
870 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
871 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
872 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
873 | echo "$ac_t""$host" 1>&6 | |
874 | ||
875 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
6f72b082 | 876 | echo "configure:877: checking target system type" >&5 |
7c66a493 VZ |
877 | |
878 | target_alias=$target | |
879 | case "$target_alias" in | |
880 | NONE) | |
881 | case $nonopt in | |
882 | NONE) target_alias=$host_alias ;; | |
883 | *) target_alias=$nonopt ;; | |
884 | esac ;; | |
885 | esac | |
886 | ||
887 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
888 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
889 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
890 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
891 | echo "$ac_t""$target" 1>&6 | |
892 | ||
893 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
6f72b082 | 894 | echo "configure:895: checking build system type" >&5 |
7c66a493 VZ |
895 | |
896 | build_alias=$build | |
897 | case "$build_alias" in | |
898 | NONE) | |
899 | case $nonopt in | |
900 | NONE) build_alias=$host_alias ;; | |
901 | *) build_alias=$nonopt ;; | |
902 | esac ;; | |
903 | esac | |
904 | ||
905 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
906 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
907 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
908 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
909 | echo "$ac_t""$build" 1>&6 | |
910 | ||
911 | test "$host_alias" != "$target_alias" && | |
912 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
913 | NONENONEs,x,x, && | |
914 | program_prefix=${target_alias}- | |
915 | ||
916 | ||
10f2d63a VZ |
917 | |
918 | WX_MAJOR_VERSION_NUMBER=2 | |
37d403aa | 919 | WX_MINOR_VERSION_NUMBER=3 |
f6bcfd97 | 920 | WX_RELEASE_NUMBER=0 |
10f2d63a VZ |
921 | |
922 | WX_INTERFACE_AGE=0 | |
f6bcfd97 | 923 | WX_BINARY_AGE=1 |
10f2d63a VZ |
924 | |
925 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER | |
926 | ||
927 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER | |
928 | WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE` | |
929 | WX_REVISION=$WX_INTERFACE_AGE | |
930 | WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE` | |
931 | ||
932 | ||
933 | USE_UNIX=1 | |
934 | USE_WIN32=0 | |
b12915c1 VZ |
935 | USE_BEOS=0 |
936 | ||
10f2d63a VZ |
937 | USE_LINUX= |
938 | USE_SGI= | |
939 | USE_HPUX= | |
940 | USE_SYSV= | |
941 | USE_SVR4= | |
942 | USE_AIX= | |
943 | USE_SUN= | |
944 | USE_SOLARIS= | |
945 | USE_SUNOS= | |
946 | USE_ALPHA= | |
947 | USE_OSF= | |
948 | USE_BSD= | |
949 | USE_FREEBSD= | |
f6bcfd97 | 950 | USE_NETBSD= |
10f2d63a VZ |
951 | USE_VMS= |
952 | USE_ULTRIX= | |
953 | USE_CYGWIN= | |
954 | USE_MINGW= | |
955 | USE_DATA_GENERAL= | |
956 | ||
ab9b9eab VZ |
957 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
958 | ||
e07802fc | 959 | ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE PM" |
10f2d63a VZ |
960 | |
961 | DEFAULT_wxUSE_GTK=0 | |
962 | DEFAULT_wxUSE_MOTIF=0 | |
963 | DEFAULT_wxUSE_MSW=0 | |
964 | DEFAULT_wxUSE_WINE=0 | |
e07802fc | 965 | DEFAULT_wxUSE_PM=0 |
10f2d63a VZ |
966 | |
967 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
968 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
969 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
970 | DEFAULT_DEFAULT_wxUSE_WINE=0 | |
e07802fc | 971 | DEFAULT_DEFAULT_wxUSE_PM=0 |
10f2d63a | 972 | |
d6a55c4b VZ |
973 | PROGRAM_EXT= |
974 | ||
10f2d63a VZ |
975 | case "${host}" in |
976 | *-hp-hpux* ) | |
977 | USE_HPUX=1 | |
978 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 979 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
980 | cat >> confdefs.h <<\EOF |
981 | #define __HPUX__ 1 | |
982 | EOF | |
983 | ||
984 | ;; | |
985 | *-*-linux* ) | |
986 | USE_LINUX=1 | |
987 | cat >> confdefs.h <<\EOF | |
988 | #define __LINUX__ 1 | |
989 | EOF | |
990 | ||
991 | TMP=`uname -m` | |
992 | if test "x$TMP" = "xalpha"; then | |
993 | USE_ALPHA=1 | |
994 | cat >> confdefs.h <<\EOF | |
995 | #define __ALPHA__ 1 | |
996 | EOF | |
997 | ||
998 | fi | |
999 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1000 | ;; | |
1001 | *-*-irix5* | *-*-irix6* ) | |
1002 | USE_SGI=1 | |
1003 | USE_SVR4=1 | |
1004 | cat >> confdefs.h <<\EOF | |
1005 | #define __SGI__ 1 | |
1006 | EOF | |
1007 | ||
1008 | cat >> confdefs.h <<\EOF | |
1009 | #define __SVR4__ 1 | |
1010 | EOF | |
1011 | ||
1012 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1013 | ;; | |
1014 | *-*-solaris2* ) | |
1015 | USE_SUN=1 | |
1016 | USE_SOLARIS=1 | |
1017 | USE_SVR4=1 | |
1018 | cat >> confdefs.h <<\EOF | |
1019 | #define __SUN__ 1 | |
1020 | EOF | |
1021 | ||
1022 | cat >> confdefs.h <<\EOF | |
1023 | #define __SOLARIS__ 1 | |
1024 | EOF | |
1025 | ||
1026 | cat >> confdefs.h <<\EOF | |
1027 | #define __SVR4__ 1 | |
1028 | EOF | |
1029 | ||
1030 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1031 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1032 | ;; |
1033 | *-*-sunos4* ) | |
1034 | USE_SUN=1 | |
1035 | USE_SUNOS=1 | |
1036 | USE_BSD=1 | |
1037 | cat >> confdefs.h <<\EOF | |
1038 | #define __SUN__ 1 | |
1039 | EOF | |
1040 | ||
1041 | cat >> confdefs.h <<\EOF | |
1042 | #define __SUNOS__ 1 | |
1043 | EOF | |
1044 | ||
1045 | cat >> confdefs.h <<\EOF | |
1046 | #define __BSD__ 1 | |
1047 | EOF | |
1048 | ||
1049 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1050 | ;; | |
f6bcfd97 | 1051 | *-*-freebsd*) |
10f2d63a VZ |
1052 | USE_BSD=1 |
1053 | USE_FREEBSD=1 | |
1054 | cat >> confdefs.h <<\EOF | |
1055 | #define __FREEBSD__ 1 | |
1056 | EOF | |
1057 | ||
1058 | cat >> confdefs.h <<\EOF | |
1059 | #define __BSD__ 1 | |
f6bcfd97 BP |
1060 | EOF |
1061 | ||
1062 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1063 | ;; | |
1064 | *-*-netbsd*) | |
1065 | USE_BSD=1 | |
1066 | USE_NETBSD=1 | |
1067 | cat >> confdefs.h <<\EOF | |
1068 | #define __FREEBSD__ 1 | |
1069 | EOF | |
1070 | ||
1071 | cat >> confdefs.h <<\EOF | |
1072 | #define __NETBSD__ 1 | |
10f2d63a VZ |
1073 | EOF |
1074 | ||
1075 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1076 | ;; | |
1077 | *-*-osf* ) | |
1078 | USE_ALPHA=1 | |
1079 | USE_OSF=1 | |
1080 | cat >> confdefs.h <<\EOF | |
1081 | #define __ALPHA__ 1 | |
1082 | EOF | |
1083 | ||
1084 | cat >> confdefs.h <<\EOF | |
1085 | #define __OSF__ 1 | |
1086 | EOF | |
1087 | ||
1088 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1089 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1090 | ;; |
1091 | *-*-dgux5* ) | |
1092 | USE_ALPHA=1 | |
1093 | USE_SVR4=1 | |
1094 | cat >> confdefs.h <<\EOF | |
1095 | #define __ALPHA__ 1 | |
1096 | EOF | |
1097 | ||
1098 | cat >> confdefs.h <<\EOF | |
1099 | #define __SVR4__ 1 | |
1100 | EOF | |
1101 | ||
1102 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1103 | ;; | |
1104 | *-*-sysv5* ) | |
1105 | USE_SYSV=1 | |
1106 | USE_SVR4=1 | |
1107 | cat >> confdefs.h <<\EOF | |
1108 | #define __SYSV__ 1 | |
1109 | EOF | |
1110 | ||
1111 | cat >> confdefs.h <<\EOF | |
1112 | #define __SVR4__ 1 | |
1113 | EOF | |
1114 | ||
1115 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1116 | ;; | |
1117 | *-*-aix* ) | |
1118 | USE_AIX=1 | |
1119 | USE_SYSV=1 | |
1120 | USE_SVR4=1 | |
1121 | cat >> confdefs.h <<\EOF | |
1122 | #define __AIX__ 1 | |
1123 | EOF | |
1124 | ||
1125 | cat >> confdefs.h <<\EOF | |
1126 | #define __SYSV__ 1 | |
1127 | EOF | |
1128 | ||
1129 | cat >> confdefs.h <<\EOF | |
1130 | #define __SVR4__ 1 | |
1131 | EOF | |
1132 | ||
1133 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1134 | ;; | |
1135 | ||
7eef8db2 | 1136 | *-*-cygwin32* | *-*-mingw32* ) |
10f2d63a VZ |
1137 | USE_UNIX=0 |
1138 | USE_WIN32=1 | |
1139 | cat >> confdefs.h <<\EOF | |
1140 | #define __WIN32__ 1 | |
1141 | EOF | |
1142 | ||
1143 | cat >> confdefs.h <<\EOF | |
1144 | #define __WIN95__ 1 | |
1145 | EOF | |
1146 | ||
1147 | cat >> confdefs.h <<\EOF | |
1148 | #define __WINDOWS__ 1 | |
1149 | EOF | |
1150 | ||
1151 | cat >> confdefs.h <<\EOF | |
1152 | #define __GNUWIN32__ 1 | |
1153 | EOF | |
1154 | ||
1155 | cat >> confdefs.h <<\EOF | |
1156 | #define STRICT 1 | |
1157 | EOF | |
1158 | ||
1159 | cat >> confdefs.h <<\EOF | |
1160 | #define WINVER 0x0400 | |
1161 | EOF | |
1162 | ||
cf27ef00 | 1163 | PROGRAM_EXT=".exe" |
10f2d63a VZ |
1164 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1165 | ;; | |
1166 | ||
1167 | *-pc-os2_emx ) | |
1168 | cat >> confdefs.h <<\EOF | |
1169 | #define __EMX__ 1 | |
1170 | EOF | |
1171 | ||
cf27ef00 | 1172 | PROGRAM_EXT=".exe" |
e07802fc | 1173 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1174 | ;; |
1175 | ||
b12915c1 VZ |
1176 | *-*-beos* ) |
1177 | USE_BEOS=1 | |
1178 | cat >> confdefs.h <<\EOF | |
1179 | #define __BEOS__ 1 | |
1180 | EOF | |
1181 | ||
1182 | ;; | |
1183 | ||
10f2d63a VZ |
1184 | *) |
1185 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } | |
1186 | esac | |
1187 | ||
1188 | if test "$USE_UNIX" = 1 ; then | |
b12915c1 VZ |
1189 | wxUSE_UNIX=yes |
1190 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
1191 | #define __UNIX__ 1 |
1192 | EOF | |
1193 | ||
b12915c1 VZ |
1194 | |
1195 | SRC_SUBDIRS="$SRC_SUBDIRS unix" | |
1196 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix" | |
1197 | fi | |
1198 | ||
1199 | if test "$USE_BEOS" = 1; then | |
1200 | SRC_SUBDIRS="$SRC_SUBDIRS be" | |
1201 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be" | |
10f2d63a VZ |
1202 | fi |
1203 | ||
1204 | if test "$USE_LINUX" = 1; then | |
1205 | echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6 | |
6f72b082 | 1206 | echo "configure:1207: checking for gettext in -lc" >&5 |
10f2d63a VZ |
1207 | ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'` |
1208 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1209 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1210 | else | |
1211 | ac_save_LIBS="$LIBS" | |
1212 | LIBS="-lc $LIBS" | |
1213 | cat > conftest.$ac_ext <<EOF | |
6f72b082 | 1214 | #line 1215 "configure" |
10f2d63a VZ |
1215 | #include "confdefs.h" |
1216 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1217 | /* We use char because int might match the return type of a gcc2 | |
1218 | builtin and then its argument prototype would still apply. */ | |
1219 | char gettext(); | |
1220 | ||
1221 | int main() { | |
1222 | gettext() | |
1223 | ; return 0; } | |
1224 | EOF | |
6f72b082 | 1225 | if { (eval echo configure:1226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
1226 | rm -rf conftest* |
1227 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1228 | else | |
1229 | echo "configure: failed program was:" >&5 | |
1230 | cat conftest.$ac_ext >&5 | |
1231 | rm -rf conftest* | |
1232 | eval "ac_cv_lib_$ac_lib_var=no" | |
1233 | fi | |
1234 | rm -f conftest* | |
1235 | LIBS="$ac_save_LIBS" | |
1236 | ||
1237 | fi | |
1238 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1239 | echo "$ac_t""yes" 1>&6 | |
1240 | cat >> confdefs.h <<\EOF | |
1241 | #define wxHAVE_GLIBC2 1 | |
1242 | EOF | |
1243 | ||
1244 | else | |
1245 | echo "$ac_t""no" 1>&6 | |
1246 | fi | |
1247 | ||
1248 | fi | |
1249 | ||
1250 | ||
1251 | ||
1252 | ||
1253 | wx_arg_cache_file="configarg.cache" | |
1254 | echo "loading argument cache $wx_arg_cache_file" | |
1255 | rm -f ${wx_arg_cache_file}.tmp | |
1256 | touch ${wx_arg_cache_file}.tmp | |
1257 | touch ${wx_arg_cache_file} | |
1258 | ||
1259 | ||
1260 | DEBUG_CONFIGURE=0 | |
1261 | if test $DEBUG_CONFIGURE = 1; then | |
1262 | DEFAULT_wxUSE_THREADS=yes | |
1263 | ||
1264 | DEFAULT_wxUSE_SHARED=yes | |
00cf1208 | 1265 | DEFAULT_wxUSE_BURNT_NAME=no |
10f2d63a VZ |
1266 | DEFAULT_wxUSE_OPTIMISE=yes |
1267 | DEFAULT_wxUSE_PROFILE=no | |
1268 | DEFAULT_wxUSE_NO_DEPS=no | |
1269 | DEFAULT_wxUSE_NO_RTTI=no | |
1270 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1271 | DEFAULT_wxUSE_PERMISSIVE=no | |
1272 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1273 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1274 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1275 | DEFAULT_wxUSE_MEM_TRACING=no | |
1276 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1277 | DEFAULT_wxUSE_DMALLOC=no | |
1278 | DEFAULT_wxUSE_APPLE_IEEE=no | |
1279 | ||
1280 | DEFAULT_wxUSE_LOG=yes | |
1281 | ||
1282 | DEFAULT_wxUSE_GUI=yes | |
1283 | ||
1284 | DEFAULT_wxUSE_ZLIB=no | |
1285 | DEFAULT_wxUSE_LIBPNG=no | |
1286 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1287 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1288 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1289 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1290 | |
eb4efbdc | 1291 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
10f2d63a VZ |
1292 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1293 | DEFAULT_wxUSE_FILE=no | |
1294 | DEFAULT_wxUSE_TEXTFILE=no | |
1295 | DEFAULT_wxUSE_TIMEDATE=no | |
1296 | DEFAULT_wxUSE_WAVE=no | |
1297 | DEFAULT_wxUSE_INTL=no | |
1298 | DEFAULT_wxUSE_CONFIG=no | |
1299 | DEFAULT_wxUSE_STREAMS=no | |
1300 | DEFAULT_wxUSE_SOCKETS=no | |
1301 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
1302 | DEFAULT_wxUSE_SERIAL=no | |
1303 | DEFAULT_wxUSE_JOYSTICK=no | |
1304 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
1305 | DEFAULT_wxUSE_LONGLONG=no | |
1306 | ||
1307 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1308 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1309 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1310 | ||
1311 | DEFAULT_wxUSE_X_RESOURCES=no | |
1312 | DEFAULT_wxUSE_CLIPBOARD=no | |
1313 | DEFAULT_wxUSE_TOOLTIPS=no | |
1314 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
1315 | DEFAULT_wxUSE_SPLINES=no | |
1316 | ||
1317 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1318 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1319 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1320 | ||
1321 | DEFAULT_wxUSE_PROLOGIO=no | |
1322 | DEFAULT_wxUSE_RESOURCES=no | |
1323 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1324 | DEFAULT_wxUSE_IPC=no | |
1325 | DEFAULT_wxUSE_HELP=no | |
1326 | DEFAULT_wxUSE_WXTREE=no | |
1327 | DEFAULT_wxUSE_METAFILE=no | |
1328 | ||
1329 | DEFAULT_wxUSE_COMMONDLGS=no | |
1330 | DEFAULT_wxUSE_DIRDLG=no | |
1331 | DEFAULT_wxUSE_TEXTDLG=no | |
1332 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
1333 | DEFAULT_wxUSE_PROGRESSDLG=no | |
1334 | DEFAULT_wxUSE_MINIFRAME=no | |
1335 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1336 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1337 | DEFAULT_wxUSE_FS_INET=no |
1338 | DEFAULT_wxUSE_FS_ZIP=no | |
1339 | DEFAULT_wxUSE_BUSYINFO=no | |
1340 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1341 | DEFAULT_wxUSE_VALIDATORS=yes | |
1342 | ||
1343 | DEFAULT_wxUSE_ACCEL=no | |
1344 | DEFAULT_wxUSE_CARET=no | |
1345 | DEFAULT_wxUSE_BMPBUTTON=no | |
1346 | DEFAULT_wxUSE_CHECKBOX=no | |
1347 | DEFAULT_wxUSE_CHECKLST=no | |
1348 | DEFAULT_wxUSE_CHOICE=yes | |
1349 | DEFAULT_wxUSE_COMBOBOX=no | |
1350 | DEFAULT_wxUSE_GAUGE=no | |
1351 | DEFAULT_wxUSE_GRID=no | |
1352 | DEFAULT_wxUSE_NEW_GRID=no | |
1353 | DEFAULT_wxUSE_IMAGLIST=no | |
1354 | DEFAULT_wxUSE_LISTBOX=no | |
1355 | DEFAULT_wxUSE_LISTCTRL=no | |
1356 | DEFAULT_wxUSE_NOTEBOOK=no | |
9b33fe02 | 1357 | DEFAULT_wxUSE_PLOT=no |
10f2d63a VZ |
1358 | DEFAULT_wxUSE_RADIOBOX=no |
1359 | DEFAULT_wxUSE_RADIOBTN=no | |
1360 | DEFAULT_wxUSE_SASH=no | |
1361 | DEFAULT_wxUSE_SCROLLBAR=no | |
1362 | DEFAULT_wxUSE_SLIDER=no | |
1363 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1364 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1365 | DEFAULT_wxUSE_SPLITTER=no |
1366 | DEFAULT_wxUSE_STATBMP=no | |
1367 | DEFAULT_wxUSE_STATBOX=no | |
1368 | DEFAULT_wxUSE_STATLINE=no | |
1369 | DEFAULT_wxUSE_STATUSBAR=yes | |
1370 | DEFAULT_wxUSE_TABDIALOG=no | |
1371 | DEFAULT_wxUSE_TOOLBAR=no | |
360d6699 VZ |
1372 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1373 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
1374 | DEFAULT_wxUSE_TREECTRL=no |
1375 | ||
1376 | DEFAULT_wxUSE_UNICODE=no | |
1377 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1378 | ||
1379 | DEFAULT_wxUSE_GIF=no | |
1380 | DEFAULT_wxUSE_PCX=no | |
1381 | DEFAULT_wxUSE_PNM=no | |
1382 | else | |
1383 | DEFAULT_wxUSE_THREADS=yes | |
1384 | ||
1385 | DEFAULT_wxUSE_SHARED=yes | |
00cf1208 | 1386 | DEFAULT_wxUSE_BURNT_NAME=no |
10f2d63a VZ |
1387 | DEFAULT_wxUSE_OPTIMISE=yes |
1388 | DEFAULT_wxUSE_PROFILE=no | |
1389 | DEFAULT_wxUSE_NO_DEPS=no | |
1390 | DEFAULT_wxUSE_NO_RTTI=no | |
1391 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1392 | DEFAULT_wxUSE_PERMISSIVE=no | |
1393 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1394 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1395 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1396 | DEFAULT_wxUSE_MEM_TRACING=no | |
1397 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1398 | DEFAULT_wxUSE_DMALLOC=no | |
1399 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
1400 | ||
1401 | DEFAULT_wxUSE_LOG=yes | |
1402 | ||
1403 | DEFAULT_wxUSE_GUI=yes | |
1404 | ||
1405 | DEFAULT_wxUSE_ZLIB=yes | |
1406 | DEFAULT_wxUSE_LIBPNG=yes | |
1407 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1408 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1409 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1410 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1411 | |
eb4efbdc | 1412 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
10f2d63a VZ |
1413 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1414 | DEFAULT_wxUSE_FILE=yes | |
1415 | DEFAULT_wxUSE_TEXTFILE=yes | |
1416 | DEFAULT_wxUSE_TIMEDATE=yes | |
1417 | DEFAULT_wxUSE_WAVE=no | |
1418 | DEFAULT_wxUSE_INTL=yes | |
1419 | DEFAULT_wxUSE_CONFIG=yes | |
1420 | DEFAULT_wxUSE_STREAMS=yes | |
1421 | DEFAULT_wxUSE_SOCKETS=yes | |
1422 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
1423 | DEFAULT_wxUSE_SERIAL=yes | |
1424 | DEFAULT_wxUSE_JOYSTICK=yes | |
1425 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
b685cd9b | 1426 | DEFAULT_wxUSE_LONGLONG=yes |
10f2d63a VZ |
1427 | |
1428 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1429 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1430 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1431 | ||
1432 | DEFAULT_wxUSE_X_RESOURCES=no | |
1433 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1434 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1435 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
1436 | DEFAULT_wxUSE_SPLINES=yes | |
1437 | ||
1438 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1439 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1440 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1441 | ||
1442 | DEFAULT_wxUSE_PROLOGIO=yes | |
1443 | DEFAULT_wxUSE_RESOURCES=yes | |
1444 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1445 | DEFAULT_wxUSE_IPC=yes | |
1446 | DEFAULT_wxUSE_HELP=yes | |
1447 | DEFAULT_wxUSE_WXTREE=yes | |
1448 | DEFAULT_wxUSE_METAFILE=yes | |
1449 | ||
1450 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1451 | DEFAULT_wxUSE_DIRDLG=yes | |
1452 | DEFAULT_wxUSE_TEXTDLG=yes | |
1453 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
1454 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
1455 | DEFAULT_wxUSE_MINIFRAME=yes | |
1456 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1457 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1458 | DEFAULT_wxUSE_FS_INET=yes |
1459 | DEFAULT_wxUSE_FS_ZIP=yes | |
1460 | DEFAULT_wxUSE_BUSYINFO=yes | |
1461 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1462 | DEFAULT_wxUSE_VALIDATORS=yes | |
1463 | ||
1464 | DEFAULT_wxUSE_ACCEL=yes | |
1465 | DEFAULT_wxUSE_CARET=yes | |
1466 | DEFAULT_wxUSE_BMPBUTTON=yes | |
1467 | DEFAULT_wxUSE_CHECKBOX=yes | |
1468 | DEFAULT_wxUSE_CHECKLST=yes | |
1469 | DEFAULT_wxUSE_CHOICE=yes | |
1470 | DEFAULT_wxUSE_COMBOBOX=yes | |
1471 | DEFAULT_wxUSE_GAUGE=yes | |
1472 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1473 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1474 | DEFAULT_wxUSE_IMAGLIST=yes |
1475 | DEFAULT_wxUSE_LISTBOX=yes | |
1476 | DEFAULT_wxUSE_LISTCTRL=yes | |
1477 | DEFAULT_wxUSE_NOTEBOOK=yes | |
9b33fe02 | 1478 | DEFAULT_wxUSE_PLOT=yes |
10f2d63a VZ |
1479 | DEFAULT_wxUSE_RADIOBOX=yes |
1480 | DEFAULT_wxUSE_RADIOBTN=yes | |
1481 | DEFAULT_wxUSE_SASH=yes | |
1482 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1483 | DEFAULT_wxUSE_SLIDER=yes | |
1484 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1485 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1486 | DEFAULT_wxUSE_SPLITTER=yes |
1487 | DEFAULT_wxUSE_STATBMP=yes | |
1488 | DEFAULT_wxUSE_STATBOX=yes | |
1489 | DEFAULT_wxUSE_STATLINE=yes | |
1490 | DEFAULT_wxUSE_STATUSBAR=yes | |
1491 | DEFAULT_wxUSE_TABDIALOG=no | |
1492 | DEFAULT_wxUSE_TOOLBAR=yes | |
360d6699 VZ |
1493 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1494 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
1495 | DEFAULT_wxUSE_TREECTRL=yes |
1496 | ||
1497 | DEFAULT_wxUSE_UNICODE=no | |
1498 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1499 | ||
1500 | DEFAULT_wxUSE_GIF=yes | |
1501 | DEFAULT_wxUSE_PCX=yes | |
1502 | DEFAULT_wxUSE_PNM=yes | |
1503 | fi | |
1504 | ||
1505 | ||
1506 | ||
1507 | for toolkit in `echo $ALL_TOOLKITS`; do | |
1508 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1509 | if test "x$LINE" != x ; then | |
1510 | has_toolkit_in_cache=1 | |
1511 | eval "DEFAULT_$LINE" | |
1512 | eval "CACHE_$toolkit=1" | |
1513 | fi | |
1514 | done | |
1515 | ||
1516 | ||
1517 | ||
1518 | echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6 | |
6f72b082 | 1519 | echo "configure:1520: checking "for --enable-gui"" >&5 |
10f2d63a VZ |
1520 | no_cache=0 |
1521 | # Check whether --enable-gui or --disable-gui was given. | |
1522 | if test "${enable_gui+set}" = set; then | |
1523 | enableval="$enable_gui" | |
1524 | ||
1525 | if test "$enableval" = yes; then | |
1526 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1527 | else | |
1528 | ac_cv_use_gui='wxUSE_GUI=no' | |
1529 | fi | |
1530 | ||
1531 | else | |
1532 | ||
1533 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
1534 | if test "x$LINE" != x ; then | |
1535 | eval "DEFAULT_$LINE" | |
1536 | else | |
1537 | no_cache=1 | |
1538 | fi | |
1539 | ||
1540 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
1541 | ||
1542 | fi | |
1543 | ||
1544 | ||
1545 | eval "$ac_cv_use_gui" | |
1546 | if test "$no_cache" != 1; then | |
1547 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1548 | fi | |
1549 | ||
1550 | if test "$wxUSE_GUI" = yes; then | |
1551 | echo "$ac_t""yes" 1>&6 | |
1552 | else | |
1553 | echo "$ac_t""no" 1>&6 | |
1554 | fi | |
1555 | ||
1556 | ||
b12915c1 | 1557 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a VZ |
1558 | |
1559 | # Check whether --with-gtk or --without-gtk was given. | |
1560 | if test "${with_gtk+set}" = set; then | |
1561 | withval="$with_gtk" | |
1562 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
1563 | fi | |
1564 | ||
1565 | # Check whether --with-motif or --without-motif was given. | |
1566 | if test "${with_motif+set}" = set; then | |
1567 | withval="$with_motif" | |
1568 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
1569 | fi | |
1570 | ||
1571 | # Check whether --with-wine or --without-wine was given. | |
1572 | if test "${with_wine+set}" = set; then | |
1573 | withval="$with_wine" | |
1574 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
1575 | fi | |
1576 | ||
1577 | # Check whether --with-cygwin or --without-cygwin was given. | |
1578 | if test "${with_cygwin+set}" = set; then | |
1579 | withval="$with_cygwin" | |
1580 | wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1 | |
1581 | fi | |
1582 | ||
1583 | # Check whether --with-mingw or --without-mingw was given. | |
1584 | if test "${with_mingw+set}" = set; then | |
1585 | withval="$with_mingw" | |
1586 | wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1 | |
1587 | fi | |
1588 | ||
e07802fc VZ |
1589 | # Check whether --with-pm or --without-pm was given. |
1590 | if test "${with_pm+set}" = set; then | |
1591 | withval="$with_pm" | |
1592 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
1593 | fi | |
1594 | ||
10f2d63a VZ |
1595 | |
1596 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
1597 | if test "${with_gtk_prefix+set}" = set; then | |
1598 | withval="$with_gtk_prefix" | |
1599 | gtk_config_prefix="$withval" | |
1600 | else | |
1601 | gtk_config_prefix="" | |
1602 | fi | |
1603 | ||
1604 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
1605 | if test "${with_gtk_exec_prefix+set}" = set; then | |
1606 | withval="$with_gtk_exec_prefix" | |
1607 | gtk_config_exec_prefix="$withval" | |
1608 | else | |
1609 | gtk_config_exec_prefix="" | |
1610 | fi | |
1611 | ||
1612 | ||
1613 | ||
b12915c1 | 1614 | echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6 |
6f72b082 | 1615 | echo "configure:1616: checking "for --with-libpng"" >&5 |
10f2d63a | 1616 | no_cache=0 |
b12915c1 VZ |
1617 | # Check whether --with-libpng or --without-libpng was given. |
1618 | if test "${with_libpng+set}" = set; then | |
1619 | withval="$with_libpng" | |
10f2d63a VZ |
1620 | |
1621 | if test "$withval" = yes; then | |
b12915c1 | 1622 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1623 | elif test "$withval" = no; then |
b12915c1 | 1624 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
1625 | elif test "$withval" = sys; then |
1626 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
1627 | else | |
1628 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; } | |
10f2d63a VZ |
1629 | fi |
1630 | ||
1631 | else | |
1632 | ||
b12915c1 | 1633 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1634 | if test "x$LINE" != x ; then |
1635 | eval "DEFAULT_$LINE" | |
1636 | else | |
1637 | no_cache=1 | |
1638 | fi | |
1639 | ||
b12915c1 | 1640 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
10f2d63a VZ |
1641 | |
1642 | fi | |
1643 | ||
1644 | ||
b12915c1 | 1645 | eval "$ac_cv_use_libpng" |
10f2d63a | 1646 | if test "$no_cache" != 1; then |
b12915c1 | 1647 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1648 | fi |
1649 | ||
b12915c1 | 1650 | if test "$wxUSE_LIBPNG" = yes; then |
10f2d63a | 1651 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1652 | elif test "$wxUSE_LIBPNG" = no; then |
10f2d63a | 1653 | echo "$ac_t""no" 1>&6 |
422107f9 VZ |
1654 | elif test "$wxUSE_LIBPNG" = sys; then |
1655 | echo "$ac_t""system version" 1>&6 | |
1656 | else | |
1657 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; } | |
10f2d63a VZ |
1658 | fi |
1659 | ||
1660 | ||
b12915c1 | 1661 | echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6 |
6f72b082 | 1662 | echo "configure:1663: checking "for --with-libjpeg"" >&5 |
10f2d63a | 1663 | no_cache=0 |
b12915c1 VZ |
1664 | # Check whether --with-libjpeg or --without-libjpeg was given. |
1665 | if test "${with_libjpeg+set}" = set; then | |
1666 | withval="$with_libjpeg" | |
10f2d63a VZ |
1667 | |
1668 | if test "$withval" = yes; then | |
b12915c1 | 1669 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 1670 | elif test "$withval" = no; then |
b12915c1 | 1671 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
1672 | elif test "$withval" = sys; then |
1673 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
1674 | else | |
1675 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; } | |
10f2d63a VZ |
1676 | fi |
1677 | ||
1678 | else | |
1679 | ||
b12915c1 | 1680 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1681 | if test "x$LINE" != x ; then |
1682 | eval "DEFAULT_$LINE" | |
1683 | else | |
1684 | no_cache=1 | |
1685 | fi | |
1686 | ||
b12915c1 | 1687 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
10f2d63a VZ |
1688 | |
1689 | fi | |
1690 | ||
1691 | ||
b12915c1 | 1692 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 1693 | if test "$no_cache" != 1; then |
b12915c1 | 1694 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1695 | fi |
1696 | ||
b12915c1 | 1697 | if test "$wxUSE_LIBJPEG" = yes; then |
10f2d63a | 1698 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1699 | elif test "$wxUSE_LIBJPEG" = no; then |
10f2d63a | 1700 | echo "$ac_t""no" 1>&6 |
422107f9 VZ |
1701 | elif test "$wxUSE_LIBJPEG" = sys; then |
1702 | echo "$ac_t""system version" 1>&6 | |
1703 | else | |
1704 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; } | |
10f2d63a VZ |
1705 | fi |
1706 | ||
1707 | ||
b12915c1 | 1708 | echo $ac_n "checking "for --with-libtiff"""... $ac_c" 1>&6 |
6f72b082 | 1709 | echo "configure:1710: checking "for --with-libtiff"" >&5 |
10f2d63a | 1710 | no_cache=0 |
b12915c1 VZ |
1711 | # Check whether --with-libtiff or --without-libtiff was given. |
1712 | if test "${with_libtiff+set}" = set; then | |
1713 | withval="$with_libtiff" | |
10f2d63a VZ |
1714 | |
1715 | if test "$withval" = yes; then | |
b12915c1 | 1716 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 1717 | elif test "$withval" = no; then |
b12915c1 | 1718 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
1719 | elif test "$withval" = sys; then |
1720 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
1721 | else | |
1722 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; } | |
10f2d63a VZ |
1723 | fi |
1724 | ||
1725 | else | |
1726 | ||
b12915c1 | 1727 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
1728 | if test "x$LINE" != x ; then |
1729 | eval "DEFAULT_$LINE" | |
1730 | else | |
1731 | no_cache=1 | |
1732 | fi | |
1733 | ||
b12915c1 | 1734 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
10f2d63a VZ |
1735 | |
1736 | fi | |
1737 | ||
1738 | ||
b12915c1 | 1739 | eval "$ac_cv_use_libtiff" |
10f2d63a | 1740 | if test "$no_cache" != 1; then |
b12915c1 | 1741 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1742 | fi |
1743 | ||
b12915c1 | 1744 | if test "$wxUSE_LIBTIFF" = yes; then |
10f2d63a | 1745 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 1746 | elif test "$wxUSE_LIBTIFF" = no; then |
10f2d63a | 1747 | echo "$ac_t""no" 1>&6 |
0dcf9893 VZ |
1748 | elif test "$wxUSE_LIBTIFF" = sys; then |
1749 | echo "$ac_t""system version" 1>&6 | |
1750 | else | |
1751 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; } | |
10f2d63a VZ |
1752 | fi |
1753 | ||
1754 | ||
b12915c1 | 1755 | echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6 |
6f72b082 | 1756 | echo "configure:1757: checking "for --with-opengl"" >&5 |
10f2d63a | 1757 | no_cache=0 |
b12915c1 VZ |
1758 | # Check whether --with-opengl or --without-opengl was given. |
1759 | if test "${with_opengl+set}" = set; then | |
1760 | withval="$with_opengl" | |
10f2d63a VZ |
1761 | |
1762 | if test "$withval" = yes; then | |
b12915c1 | 1763 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 1764 | else |
b12915c1 | 1765 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a VZ |
1766 | fi |
1767 | ||
1768 | else | |
1769 | ||
b12915c1 | 1770 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
1771 | if test "x$LINE" != x ; then |
1772 | eval "DEFAULT_$LINE" | |
1773 | else | |
1774 | no_cache=1 | |
1775 | fi | |
1776 | ||
b12915c1 | 1777 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
10f2d63a VZ |
1778 | |
1779 | fi | |
1780 | ||
1781 | ||
b12915c1 | 1782 | eval "$ac_cv_use_opengl" |
10f2d63a | 1783 | if test "$no_cache" != 1; then |
b12915c1 | 1784 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1785 | fi |
1786 | ||
b12915c1 | 1787 | if test "$wxUSE_OPENGL" = yes; then |
10f2d63a VZ |
1788 | echo "$ac_t""yes" 1>&6 |
1789 | else | |
1790 | echo "$ac_t""no" 1>&6 | |
1791 | fi | |
1792 | ||
1793 | ||
b12915c1 VZ |
1794 | fi |
1795 | ||
1796 | ||
1797 | echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6 | |
6f72b082 | 1798 | echo "configure:1799: checking "for --with-dmalloc"" >&5 |
c7a2bf27 | 1799 | no_cache=0 |
b12915c1 VZ |
1800 | # Check whether --with-dmalloc or --without-dmalloc was given. |
1801 | if test "${with_dmalloc+set}" = set; then | |
1802 | withval="$with_dmalloc" | |
c7a2bf27 RR |
1803 | |
1804 | if test "$withval" = yes; then | |
b12915c1 | 1805 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 1806 | else |
b12915c1 | 1807 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 RR |
1808 | fi |
1809 | ||
1810 | else | |
1811 | ||
b12915c1 | 1812 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
1813 | if test "x$LINE" != x ; then |
1814 | eval "DEFAULT_$LINE" | |
1815 | else | |
1816 | no_cache=1 | |
1817 | fi | |
1818 | ||
b12915c1 | 1819 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
c7a2bf27 RR |
1820 | |
1821 | fi | |
1822 | ||
1823 | ||
b12915c1 | 1824 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 1825 | if test "$no_cache" != 1; then |
b12915c1 | 1826 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
1827 | fi |
1828 | ||
b12915c1 | 1829 | if test "$wxUSE_DMALLOC" = yes; then |
c7a2bf27 RR |
1830 | echo "$ac_t""yes" 1>&6 |
1831 | else | |
1832 | echo "$ac_t""no" 1>&6 | |
1833 | fi | |
1834 | ||
1835 | ||
b12915c1 | 1836 | echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6 |
6f72b082 | 1837 | echo "configure:1838: checking "for --with-zlib"" >&5 |
10f2d63a | 1838 | no_cache=0 |
b12915c1 VZ |
1839 | # Check whether --with-zlib or --without-zlib was given. |
1840 | if test "${with_zlib+set}" = set; then | |
1841 | withval="$with_zlib" | |
10f2d63a VZ |
1842 | |
1843 | if test "$withval" = yes; then | |
b12915c1 | 1844 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 1845 | elif test "$withval" = no; then |
b12915c1 | 1846 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
1847 | elif test "$withval" = sys; then |
1848 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
1849 | else | |
1850 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; } | |
10f2d63a VZ |
1851 | fi |
1852 | ||
1853 | else | |
1854 | ||
b12915c1 | 1855 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
1856 | if test "x$LINE" != x ; then |
1857 | eval "DEFAULT_$LINE" | |
1858 | else | |
1859 | no_cache=1 | |
1860 | fi | |
1861 | ||
b12915c1 | 1862 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
10f2d63a VZ |
1863 | |
1864 | fi | |
1865 | ||
1866 | ||
b12915c1 | 1867 | eval "$ac_cv_use_zlib" |
10f2d63a | 1868 | if test "$no_cache" != 1; then |
b12915c1 | 1869 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1870 | fi |
1871 | ||
b12915c1 | 1872 | if test "$wxUSE_ZLIB" = yes; then |
10f2d63a | 1873 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1874 | elif test "$wxUSE_ZLIB" = no; then |
bdad4e7e | 1875 | echo "$ac_t""no" 1>&6 |
422107f9 VZ |
1876 | elif test "$wxUSE_ZLIB" = sys; then |
1877 | echo "$ac_t""system version" 1>&6 | |
1878 | else | |
1879 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; } | |
10f2d63a VZ |
1880 | fi |
1881 | ||
1882 | ||
1883 | echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6 | |
6f72b082 | 1884 | echo "configure:1885: checking "for --with-odbc"" >&5 |
10f2d63a VZ |
1885 | no_cache=0 |
1886 | # Check whether --with-odbc or --without-odbc was given. | |
1887 | if test "${with_odbc+set}" = set; then | |
1888 | withval="$with_odbc" | |
1889 | ||
1890 | if test "$withval" = yes; then | |
1891 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
1892 | else | |
1893 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
1894 | fi | |
1895 | ||
1896 | else | |
1897 | ||
1898 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
1899 | if test "x$LINE" != x ; then | |
1900 | eval "DEFAULT_$LINE" | |
1901 | else | |
1902 | no_cache=1 | |
1903 | fi | |
1904 | ||
1905 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
1906 | ||
1907 | fi | |
1908 | ||
1909 | ||
1910 | eval "$ac_cv_use_odbc" | |
1911 | if test "$no_cache" != 1; then | |
1912 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
1913 | fi | |
1914 | ||
1915 | if test "$wxUSE_ODBC" = yes; then | |
1916 | echo "$ac_t""yes" 1>&6 | |
1917 | else | |
1918 | echo "$ac_t""no" 1>&6 | |
1919 | fi | |
1920 | ||
1921 | ||
1922 | ||
1923 | ||
1924 | ||
1925 | echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6 | |
6f72b082 | 1926 | echo "configure:1927: checking "for --enable-shared"" >&5 |
10f2d63a VZ |
1927 | no_cache=0 |
1928 | # Check whether --enable-shared or --disable-shared was given. | |
1929 | if test "${enable_shared+set}" = set; then | |
1930 | enableval="$enable_shared" | |
1931 | ||
1932 | if test "$enableval" = yes; then | |
1933 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
1934 | else | |
1935 | ac_cv_use_shared='wxUSE_SHARED=no' | |
1936 | fi | |
1937 | ||
1938 | else | |
1939 | ||
1940 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
1941 | if test "x$LINE" != x ; then | |
1942 | eval "DEFAULT_$LINE" | |
1943 | else | |
1944 | no_cache=1 | |
1945 | fi | |
1946 | ||
1947 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
1948 | ||
1949 | fi | |
1950 | ||
1951 | ||
1952 | eval "$ac_cv_use_shared" | |
1953 | if test "$no_cache" != 1; then | |
1954 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
1955 | fi | |
1956 | ||
1957 | if test "$wxUSE_SHARED" = yes; then | |
1958 | echo "$ac_t""yes" 1>&6 | |
1959 | else | |
1960 | echo "$ac_t""no" 1>&6 | |
1961 | fi | |
1962 | ||
1963 | ||
00cf1208 | 1964 | echo $ac_n "checking "for --enable-burnt_name"""... $ac_c" 1>&6 |
6f72b082 | 1965 | echo "configure:1966: checking "for --enable-burnt_name"" >&5 |
00cf1208 RR |
1966 | no_cache=0 |
1967 | # Check whether --enable-burnt_name or --disable-burnt_name was given. | |
1968 | if test "${enable_burnt_name+set}" = set; then | |
1969 | enableval="$enable_burnt_name" | |
1970 | ||
1971 | if test "$enableval" = yes; then | |
1972 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes' | |
1973 | else | |
1974 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no' | |
1975 | fi | |
1976 | ||
1977 | else | |
1978 | ||
1979 | LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}` | |
1980 | if test "x$LINE" != x ; then | |
1981 | eval "DEFAULT_$LINE" | |
1982 | else | |
1983 | no_cache=1 | |
1984 | fi | |
1985 | ||
1986 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME | |
1987 | ||
1988 | fi | |
1989 | ||
1990 | ||
1991 | eval "$ac_cv_use_burnt_name" | |
1992 | if test "$no_cache" != 1; then | |
1993 | echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp | |
1994 | fi | |
1995 | ||
1996 | if test "$wxUSE_BURNT_NAME" = yes; then | |
1997 | echo "$ac_t""yes" 1>&6 | |
1998 | else | |
1999 | echo "$ac_t""no" 1>&6 | |
2000 | fi | |
2001 | ||
2002 | ||
10f2d63a | 2003 | echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6 |
6f72b082 | 2004 | echo "configure:2005: checking "for --enable-optimise"" >&5 |
10f2d63a VZ |
2005 | no_cache=0 |
2006 | # Check whether --enable-optimise or --disable-optimise was given. | |
2007 | if test "${enable_optimise+set}" = set; then | |
2008 | enableval="$enable_optimise" | |
2009 | ||
2010 | if test "$enableval" = yes; then | |
2011 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2012 | else | |
2013 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2014 | fi | |
2015 | ||
2016 | else | |
2017 | ||
2018 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
2019 | if test "x$LINE" != x ; then | |
2020 | eval "DEFAULT_$LINE" | |
2021 | else | |
2022 | no_cache=1 | |
2023 | fi | |
2024 | ||
2025 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
2026 | ||
2027 | fi | |
2028 | ||
2029 | ||
2030 | eval "$ac_cv_use_optimise" | |
2031 | if test "$no_cache" != 1; then | |
2032 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2033 | fi | |
2034 | ||
2035 | if test "$wxUSE_OPTIMISE" = yes; then | |
2036 | echo "$ac_t""yes" 1>&6 | |
2037 | else | |
2038 | echo "$ac_t""no" 1>&6 | |
2039 | fi | |
2040 | ||
2041 | ||
2042 | echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6 | |
6f72b082 | 2043 | echo "configure:2044: checking "for --enable-debug"" >&5 |
10f2d63a VZ |
2044 | no_cache=0 |
2045 | # Check whether --enable-debug or --disable-debug was given. | |
2046 | if test "${enable_debug+set}" = set; then | |
2047 | enableval="$enable_debug" | |
2048 | ||
2049 | if test "$enableval" = yes; then | |
2050 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2051 | else | |
2052 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2053 | fi | |
2054 | ||
2055 | else | |
2056 | ||
2057 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
2058 | if test "x$LINE" != x ; then | |
2059 | eval "DEFAULT_$LINE" | |
2060 | else | |
2061 | no_cache=1 | |
2062 | fi | |
2063 | ||
2064 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
2065 | ||
2066 | fi | |
2067 | ||
2068 | ||
2069 | eval "$ac_cv_use_debug" | |
2070 | if test "$no_cache" != 1; then | |
2071 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2072 | fi | |
2073 | ||
2074 | if test "$wxUSE_DEBUG" = yes; then | |
2075 | echo "$ac_t""yes" 1>&6 | |
2076 | else | |
2077 | echo "$ac_t""no" 1>&6 | |
2078 | fi | |
2079 | ||
2080 | ||
2081 | if test "$wxUSE_DEBUG" = "yes"; then | |
2082 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2083 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2084 | elif test "$wxUSE_DEBUG" = "no"; then | |
2085 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2086 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2087 | fi | |
2088 | ||
2089 | ||
2090 | echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6 | |
6f72b082 | 2091 | echo "configure:2092: checking "for --enable-debug_flag"" >&5 |
10f2d63a VZ |
2092 | no_cache=0 |
2093 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2094 | if test "${enable_debug_flag+set}" = set; then | |
2095 | enableval="$enable_debug_flag" | |
2096 | ||
2097 | if test "$enableval" = yes; then | |
2098 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2099 | else | |
2100 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2101 | fi | |
2102 | ||
2103 | else | |
2104 | ||
2105 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
2106 | if test "x$LINE" != x ; then | |
2107 | eval "DEFAULT_$LINE" | |
2108 | else | |
2109 | no_cache=1 | |
2110 | fi | |
2111 | ||
2112 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
2113 | ||
2114 | fi | |
2115 | ||
2116 | ||
2117 | eval "$ac_cv_use_debug_flag" | |
2118 | if test "$no_cache" != 1; then | |
2119 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2120 | fi | |
2121 | ||
2122 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
2123 | echo "$ac_t""yes" 1>&6 | |
2124 | else | |
2125 | echo "$ac_t""no" 1>&6 | |
2126 | fi | |
2127 | ||
2128 | ||
2129 | echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6 | |
6f72b082 | 2130 | echo "configure:2131: checking "for --enable-debug_info"" >&5 |
10f2d63a VZ |
2131 | no_cache=0 |
2132 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2133 | if test "${enable_debug_info+set}" = set; then | |
2134 | enableval="$enable_debug_info" | |
2135 | ||
2136 | if test "$enableval" = yes; then | |
2137 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2138 | else | |
2139 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2140 | fi | |
2141 | ||
2142 | else | |
2143 | ||
2144 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
2145 | if test "x$LINE" != x ; then | |
2146 | eval "DEFAULT_$LINE" | |
2147 | else | |
2148 | no_cache=1 | |
2149 | fi | |
2150 | ||
2151 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
2152 | ||
2153 | fi | |
2154 | ||
2155 | ||
2156 | eval "$ac_cv_use_debug_info" | |
2157 | if test "$no_cache" != 1; then | |
2158 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2159 | fi | |
2160 | ||
2161 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
2162 | echo "$ac_t""yes" 1>&6 | |
2163 | else | |
2164 | echo "$ac_t""no" 1>&6 | |
2165 | fi | |
2166 | ||
2167 | ||
2168 | echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6 | |
6f72b082 | 2169 | echo "configure:2170: checking "for --enable-debug_gdb"" >&5 |
10f2d63a VZ |
2170 | no_cache=0 |
2171 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2172 | if test "${enable_debug_gdb+set}" = set; then | |
2173 | enableval="$enable_debug_gdb" | |
2174 | ||
2175 | if test "$enableval" = yes; then | |
2176 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2177 | else | |
2178 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2179 | fi | |
2180 | ||
2181 | else | |
2182 | ||
2183 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
2184 | if test "x$LINE" != x ; then | |
2185 | eval "DEFAULT_$LINE" | |
2186 | else | |
2187 | no_cache=1 | |
2188 | fi | |
2189 | ||
2190 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
2191 | ||
2192 | fi | |
2193 | ||
2194 | ||
2195 | eval "$ac_cv_use_debug_gdb" | |
2196 | if test "$no_cache" != 1; then | |
2197 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2198 | fi | |
2199 | ||
2200 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
2201 | echo "$ac_t""yes" 1>&6 | |
2202 | else | |
2203 | echo "$ac_t""no" 1>&6 | |
2204 | fi | |
2205 | ||
2206 | ||
2207 | echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6 | |
6f72b082 | 2208 | echo "configure:2209: checking "for --enable-debug_cntxt"" >&5 |
10f2d63a VZ |
2209 | no_cache=0 |
2210 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2211 | if test "${enable_debug_cntxt+set}" = set; then | |
2212 | enableval="$enable_debug_cntxt" | |
2213 | ||
2214 | if test "$enableval" = yes; then | |
2215 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2216 | else | |
2217 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2218 | fi | |
2219 | ||
2220 | else | |
2221 | ||
2222 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
2223 | if test "x$LINE" != x ; then | |
2224 | eval "DEFAULT_$LINE" | |
2225 | else | |
2226 | no_cache=1 | |
2227 | fi | |
2228 | ||
2229 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
2230 | ||
2231 | fi | |
2232 | ||
2233 | ||
2234 | eval "$ac_cv_use_debug_cntxt" | |
2235 | if test "$no_cache" != 1; then | |
2236 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2237 | fi | |
2238 | ||
2239 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
2240 | echo "$ac_t""yes" 1>&6 | |
2241 | else | |
2242 | echo "$ac_t""no" 1>&6 | |
2243 | fi | |
2244 | ||
2245 | ||
2246 | echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6 | |
6f72b082 | 2247 | echo "configure:2248: checking "for --enable-mem_tracing"" >&5 |
10f2d63a VZ |
2248 | no_cache=0 |
2249 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2250 | if test "${enable_mem_tracing+set}" = set; then | |
2251 | enableval="$enable_mem_tracing" | |
2252 | ||
2253 | if test "$enableval" = yes; then | |
2254 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2255 | else | |
2256 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2257 | fi | |
2258 | ||
2259 | else | |
2260 | ||
2261 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
2262 | if test "x$LINE" != x ; then | |
2263 | eval "DEFAULT_$LINE" | |
2264 | else | |
2265 | no_cache=1 | |
2266 | fi | |
2267 | ||
2268 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
2269 | ||
2270 | fi | |
2271 | ||
2272 | ||
2273 | eval "$ac_cv_use_mem_tracing" | |
2274 | if test "$no_cache" != 1; then | |
2275 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2276 | fi | |
2277 | ||
2278 | if test "$wxUSE_MEM_TRACING" = yes; then | |
2279 | echo "$ac_t""yes" 1>&6 | |
2280 | else | |
2281 | echo "$ac_t""no" 1>&6 | |
2282 | fi | |
2283 | ||
2284 | ||
2285 | echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6 | |
6f72b082 | 2286 | echo "configure:2287: checking "for --enable-profile"" >&5 |
10f2d63a VZ |
2287 | no_cache=0 |
2288 | # Check whether --enable-profile or --disable-profile was given. | |
2289 | if test "${enable_profile+set}" = set; then | |
2290 | enableval="$enable_profile" | |
2291 | ||
2292 | if test "$enableval" = yes; then | |
2293 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2294 | else | |
2295 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2296 | fi | |
2297 | ||
2298 | else | |
2299 | ||
2300 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
2301 | if test "x$LINE" != x ; then | |
2302 | eval "DEFAULT_$LINE" | |
2303 | else | |
2304 | no_cache=1 | |
2305 | fi | |
2306 | ||
2307 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
2308 | ||
2309 | fi | |
2310 | ||
2311 | ||
2312 | eval "$ac_cv_use_profile" | |
2313 | if test "$no_cache" != 1; then | |
2314 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2315 | fi | |
2316 | ||
2317 | if test "$wxUSE_PROFILE" = yes; then | |
2318 | echo "$ac_t""yes" 1>&6 | |
2319 | else | |
2320 | echo "$ac_t""no" 1>&6 | |
2321 | fi | |
2322 | ||
2323 | ||
2324 | echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6 | |
6f72b082 | 2325 | echo "configure:2326: checking "for --enable-no_rtti"" >&5 |
10f2d63a VZ |
2326 | no_cache=0 |
2327 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2328 | if test "${enable_no_rtti+set}" = set; then | |
2329 | enableval="$enable_no_rtti" | |
2330 | ||
2331 | if test "$enableval" = yes; then | |
2332 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2333 | else | |
2334 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2335 | fi | |
2336 | ||
2337 | else | |
2338 | ||
2339 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
2340 | if test "x$LINE" != x ; then | |
2341 | eval "DEFAULT_$LINE" | |
2342 | else | |
2343 | no_cache=1 | |
2344 | fi | |
2345 | ||
2346 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
2347 | ||
2348 | fi | |
2349 | ||
2350 | ||
2351 | eval "$ac_cv_use_no_rtti" | |
2352 | if test "$no_cache" != 1; then | |
2353 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2354 | fi | |
2355 | ||
2356 | if test "$wxUSE_NO_RTTI" = yes; then | |
2357 | echo "$ac_t""yes" 1>&6 | |
2358 | else | |
2359 | echo "$ac_t""no" 1>&6 | |
2360 | fi | |
2361 | ||
2362 | ||
2363 | echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6 | |
6f72b082 | 2364 | echo "configure:2365: checking "for --enable-no_exceptions"" >&5 |
10f2d63a VZ |
2365 | no_cache=0 |
2366 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2367 | if test "${enable_no_exceptions+set}" = set; then | |
2368 | enableval="$enable_no_exceptions" | |
2369 | ||
2370 | if test "$enableval" = yes; then | |
2371 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2372 | else | |
2373 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2374 | fi | |
2375 | ||
2376 | else | |
2377 | ||
2378 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
2379 | if test "x$LINE" != x ; then | |
2380 | eval "DEFAULT_$LINE" | |
2381 | else | |
2382 | no_cache=1 | |
2383 | fi | |
2384 | ||
2385 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
2386 | ||
2387 | fi | |
2388 | ||
2389 | ||
2390 | eval "$ac_cv_use_no_exceptions" | |
2391 | if test "$no_cache" != 1; then | |
2392 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2393 | fi | |
2394 | ||
2395 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
2396 | echo "$ac_t""yes" 1>&6 | |
2397 | else | |
2398 | echo "$ac_t""no" 1>&6 | |
2399 | fi | |
2400 | ||
2401 | ||
2402 | echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6 | |
6f72b082 | 2403 | echo "configure:2404: checking "for --enable-permissive"" >&5 |
10f2d63a VZ |
2404 | no_cache=0 |
2405 | # Check whether --enable-permissive or --disable-permissive was given. | |
2406 | if test "${enable_permissive+set}" = set; then | |
2407 | enableval="$enable_permissive" | |
2408 | ||
2409 | if test "$enableval" = yes; then | |
2410 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2411 | else | |
2412 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2413 | fi | |
2414 | ||
2415 | else | |
2416 | ||
2417 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
2418 | if test "x$LINE" != x ; then | |
2419 | eval "DEFAULT_$LINE" | |
2420 | else | |
2421 | no_cache=1 | |
2422 | fi | |
2423 | ||
2424 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
2425 | ||
2426 | fi | |
2427 | ||
2428 | ||
2429 | eval "$ac_cv_use_permissive" | |
2430 | if test "$no_cache" != 1; then | |
2431 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2432 | fi | |
2433 | ||
2434 | if test "$wxUSE_PERMISSIVE" = yes; then | |
2435 | echo "$ac_t""yes" 1>&6 | |
2436 | else | |
2437 | echo "$ac_t""no" 1>&6 | |
2438 | fi | |
2439 | ||
2440 | ||
2441 | echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6 | |
6f72b082 | 2442 | echo "configure:2443: checking "for --enable-no_deps"" >&5 |
10f2d63a VZ |
2443 | no_cache=0 |
2444 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2445 | if test "${enable_no_deps+set}" = set; then | |
2446 | enableval="$enable_no_deps" | |
2447 | ||
2448 | if test "$enableval" = yes; then | |
2449 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2450 | else | |
2451 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2452 | fi | |
2453 | ||
2454 | else | |
2455 | ||
2456 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
2457 | if test "x$LINE" != x ; then | |
2458 | eval "DEFAULT_$LINE" | |
2459 | else | |
2460 | no_cache=1 | |
2461 | fi | |
2462 | ||
2463 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
2464 | ||
2465 | fi | |
2466 | ||
2467 | ||
2468 | eval "$ac_cv_use_no_deps" | |
2469 | if test "$no_cache" != 1; then | |
2470 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2471 | fi | |
2472 | ||
2473 | if test "$wxUSE_NO_DEPS" = yes; then | |
2474 | echo "$ac_t""yes" 1>&6 | |
2475 | else | |
2476 | echo "$ac_t""no" 1>&6 | |
2477 | fi | |
2478 | ||
2479 | ||
2480 | ||
2481 | ||
2482 | echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6 | |
6f72b082 | 2483 | echo "configure:2484: checking "for --enable-intl"" >&5 |
10f2d63a VZ |
2484 | no_cache=0 |
2485 | # Check whether --enable-intl or --disable-intl was given. | |
2486 | if test "${enable_intl+set}" = set; then | |
2487 | enableval="$enable_intl" | |
2488 | ||
2489 | if test "$enableval" = yes; then | |
2490 | ac_cv_use_intl='wxUSE_INTL=yes' | |
2491 | else | |
2492 | ac_cv_use_intl='wxUSE_INTL=no' | |
2493 | fi | |
2494 | ||
2495 | else | |
2496 | ||
2497 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
2498 | if test "x$LINE" != x ; then | |
2499 | eval "DEFAULT_$LINE" | |
2500 | else | |
2501 | no_cache=1 | |
2502 | fi | |
2503 | ||
2504 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
2505 | ||
2506 | fi | |
2507 | ||
2508 | ||
2509 | eval "$ac_cv_use_intl" | |
2510 | if test "$no_cache" != 1; then | |
2511 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
2512 | fi | |
2513 | ||
2514 | if test "$wxUSE_INTL" = yes; then | |
2515 | echo "$ac_t""yes" 1>&6 | |
2516 | else | |
2517 | echo "$ac_t""no" 1>&6 | |
2518 | fi | |
2519 | ||
2520 | ||
2521 | echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6 | |
6f72b082 | 2522 | echo "configure:2523: checking "for --enable-config"" >&5 |
10f2d63a VZ |
2523 | no_cache=0 |
2524 | # Check whether --enable-config or --disable-config was given. | |
2525 | if test "${enable_config+set}" = set; then | |
2526 | enableval="$enable_config" | |
2527 | ||
2528 | if test "$enableval" = yes; then | |
2529 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
2530 | else | |
2531 | ac_cv_use_config='wxUSE_CONFIG=no' | |
2532 | fi | |
2533 | ||
2534 | else | |
2535 | ||
2536 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
2537 | if test "x$LINE" != x ; then | |
2538 | eval "DEFAULT_$LINE" | |
2539 | else | |
2540 | no_cache=1 | |
2541 | fi | |
2542 | ||
2543 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
2544 | ||
2545 | fi | |
2546 | ||
2547 | ||
2548 | eval "$ac_cv_use_config" | |
2549 | if test "$no_cache" != 1; then | |
2550 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
2551 | fi | |
2552 | ||
2553 | if test "$wxUSE_CONFIG" = yes; then | |
2554 | echo "$ac_t""yes" 1>&6 | |
2555 | else | |
2556 | echo "$ac_t""no" 1>&6 | |
2557 | fi | |
2558 | ||
2559 | ||
b12915c1 | 2560 | |
10f2d63a | 2561 | echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6 |
6f72b082 | 2562 | echo "configure:2563: checking "for --enable-sockets"" >&5 |
10f2d63a VZ |
2563 | no_cache=0 |
2564 | # Check whether --enable-sockets or --disable-sockets was given. | |
2565 | if test "${enable_sockets+set}" = set; then | |
2566 | enableval="$enable_sockets" | |
2567 | ||
2568 | if test "$enableval" = yes; then | |
2569 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
2570 | else | |
2571 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
2572 | fi | |
2573 | ||
2574 | else | |
2575 | ||
2576 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
2577 | if test "x$LINE" != x ; then | |
2578 | eval "DEFAULT_$LINE" | |
2579 | else | |
2580 | no_cache=1 | |
2581 | fi | |
2582 | ||
2583 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
2584 | ||
2585 | fi | |
2586 | ||
2587 | ||
2588 | eval "$ac_cv_use_sockets" | |
2589 | if test "$no_cache" != 1; then | |
2590 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
2591 | fi | |
2592 | ||
2593 | if test "$wxUSE_SOCKETS" = yes; then | |
2594 | echo "$ac_t""yes" 1>&6 | |
2595 | else | |
2596 | echo "$ac_t""no" 1>&6 | |
2597 | fi | |
2598 | ||
b12915c1 | 2599 | |
10f2d63a | 2600 | |
eb4efbdc | 2601 | echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6 |
6f72b082 | 2602 | echo "configure:2603: checking "for --enable-ipc"" >&5 |
10f2d63a | 2603 | no_cache=0 |
eb4efbdc VZ |
2604 | # Check whether --enable-ipc or --disable-ipc was given. |
2605 | if test "${enable_ipc+set}" = set; then | |
2606 | enableval="$enable_ipc" | |
10f2d63a VZ |
2607 | |
2608 | if test "$enableval" = yes; then | |
eb4efbdc | 2609 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 2610 | else |
eb4efbdc | 2611 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a VZ |
2612 | fi |
2613 | ||
2614 | else | |
2615 | ||
eb4efbdc | 2616 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
2617 | if test "x$LINE" != x ; then |
2618 | eval "DEFAULT_$LINE" | |
2619 | else | |
2620 | no_cache=1 | |
2621 | fi | |
2622 | ||
eb4efbdc | 2623 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
10f2d63a VZ |
2624 | |
2625 | fi | |
2626 | ||
2627 | ||
eb4efbdc | 2628 | eval "$ac_cv_use_ipc" |
10f2d63a | 2629 | if test "$no_cache" != 1; then |
eb4efbdc | 2630 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2631 | fi |
2632 | ||
eb4efbdc | 2633 | if test "$wxUSE_IPC" = yes; then |
10f2d63a VZ |
2634 | echo "$ac_t""yes" 1>&6 |
2635 | else | |
2636 | echo "$ac_t""no" 1>&6 | |
2637 | fi | |
2638 | ||
2639 | ||
eb4efbdc VZ |
2640 | |
2641 | echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6 | |
6f72b082 | 2642 | echo "configure:2643: checking "for --enable-dialupman"" >&5 |
10f2d63a | 2643 | no_cache=0 |
eb4efbdc VZ |
2644 | # Check whether --enable-dialupman or --disable-dialupman was given. |
2645 | if test "${enable_dialupman+set}" = set; then | |
2646 | enableval="$enable_dialupman" | |
10f2d63a VZ |
2647 | |
2648 | if test "$enableval" = yes; then | |
eb4efbdc | 2649 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 2650 | else |
eb4efbdc | 2651 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a VZ |
2652 | fi |
2653 | ||
2654 | else | |
2655 | ||
eb4efbdc | 2656 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
2657 | if test "x$LINE" != x ; then |
2658 | eval "DEFAULT_$LINE" | |
2659 | else | |
2660 | no_cache=1 | |
2661 | fi | |
2662 | ||
eb4efbdc | 2663 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
10f2d63a VZ |
2664 | |
2665 | fi | |
2666 | ||
2667 | ||
eb4efbdc | 2668 | eval "$ac_cv_use_dialupman" |
10f2d63a | 2669 | if test "$no_cache" != 1; then |
eb4efbdc | 2670 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2671 | fi |
2672 | ||
eb4efbdc | 2673 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
10f2d63a VZ |
2674 | echo "$ac_t""yes" 1>&6 |
2675 | else | |
2676 | echo "$ac_t""no" 1>&6 | |
2677 | fi | |
2678 | ||
2679 | ||
2680 | echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6 | |
6f72b082 | 2681 | echo "configure:2682: checking "for --enable-apple_ieee"" >&5 |
10f2d63a VZ |
2682 | no_cache=0 |
2683 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
2684 | if test "${enable_apple_ieee+set}" = set; then | |
2685 | enableval="$enable_apple_ieee" | |
2686 | ||
2687 | if test "$enableval" = yes; then | |
2688 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
2689 | else | |
2690 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
2691 | fi | |
2692 | ||
2693 | else | |
2694 | ||
2695 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
2696 | if test "x$LINE" != x ; then | |
2697 | eval "DEFAULT_$LINE" | |
2698 | else | |
2699 | no_cache=1 | |
2700 | fi | |
2701 | ||
2702 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
2703 | ||
2704 | fi | |
2705 | ||
2706 | ||
2707 | eval "$ac_cv_use_apple_ieee" | |
2708 | if test "$no_cache" != 1; then | |
2709 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
2710 | fi | |
2711 | ||
2712 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
2713 | echo "$ac_t""yes" 1>&6 | |
2714 | else | |
2715 | echo "$ac_t""no" 1>&6 | |
2716 | fi | |
2717 | ||
2718 | ||
2719 | echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6 | |
6f72b082 | 2720 | echo "configure:2721: checking "for --enable-timedate"" >&5 |
10f2d63a VZ |
2721 | no_cache=0 |
2722 | # Check whether --enable-timedate or --disable-timedate was given. | |
2723 | if test "${enable_timedate+set}" = set; then | |
2724 | enableval="$enable_timedate" | |
2725 | ||
2726 | if test "$enableval" = yes; then | |
2727 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
2728 | else | |
2729 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
2730 | fi | |
2731 | ||
2732 | else | |
2733 | ||
2734 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
2735 | if test "x$LINE" != x ; then | |
2736 | eval "DEFAULT_$LINE" | |
2737 | else | |
2738 | no_cache=1 | |
2739 | fi | |
2740 | ||
2741 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
2742 | ||
2743 | fi | |
2744 | ||
2745 | ||
2746 | eval "$ac_cv_use_timedate" | |
2747 | if test "$no_cache" != 1; then | |
2748 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
2749 | fi | |
2750 | ||
2751 | if test "$wxUSE_TIMEDATE" = yes; then | |
2752 | echo "$ac_t""yes" 1>&6 | |
2753 | else | |
2754 | echo "$ac_t""no" 1>&6 | |
2755 | fi | |
2756 | ||
2757 | ||
2758 | echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6 | |
6f72b082 | 2759 | echo "configure:2760: checking "for --enable-wave"" >&5 |
10f2d63a VZ |
2760 | no_cache=0 |
2761 | # Check whether --enable-wave or --disable-wave was given. | |
2762 | if test "${enable_wave+set}" = set; then | |
2763 | enableval="$enable_wave" | |
2764 | ||
2765 | if test "$enableval" = yes; then | |
2766 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
2767 | else | |
2768 | ac_cv_use_wave='wxUSE_WAVE=no' | |
2769 | fi | |
2770 | ||
2771 | else | |
2772 | ||
2773 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` | |
2774 | if test "x$LINE" != x ; then | |
2775 | eval "DEFAULT_$LINE" | |
2776 | else | |
2777 | no_cache=1 | |
2778 | fi | |
2779 | ||
2780 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
2781 | ||
2782 | fi | |
2783 | ||
2784 | ||
2785 | eval "$ac_cv_use_wave" | |
2786 | if test "$no_cache" != 1; then | |
2787 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
2788 | fi | |
2789 | ||
2790 | if test "$wxUSE_WAVE" = yes; then | |
2791 | echo "$ac_t""yes" 1>&6 | |
2792 | else | |
2793 | echo "$ac_t""no" 1>&6 | |
2794 | fi | |
2795 | ||
2796 | ||
2797 | echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6 | |
6f72b082 | 2798 | echo "configure:2799: checking "for --enable-fraction"" >&5 |
10f2d63a VZ |
2799 | no_cache=0 |
2800 | # Check whether --enable-fraction or --disable-fraction was given. | |
2801 | if test "${enable_fraction+set}" = set; then | |
2802 | enableval="$enable_fraction" | |
2803 | ||
2804 | if test "$enableval" = yes; then | |
2805 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
2806 | else | |
2807 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
2808 | fi | |
2809 | ||
2810 | else | |
2811 | ||
2812 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` | |
2813 | if test "x$LINE" != x ; then | |
2814 | eval "DEFAULT_$LINE" | |
2815 | else | |
2816 | no_cache=1 | |
2817 | fi | |
2818 | ||
2819 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
2820 | ||
2821 | fi | |
2822 | ||
2823 | ||
2824 | eval "$ac_cv_use_fraction" | |
2825 | if test "$no_cache" != 1; then | |
2826 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
2827 | fi | |
2828 | ||
2829 | if test "$wxUSE_FRACTION" = yes; then | |
2830 | echo "$ac_t""yes" 1>&6 | |
2831 | else | |
2832 | echo "$ac_t""no" 1>&6 | |
2833 | fi | |
2834 | ||
2835 | ||
2836 | echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6 | |
6f72b082 | 2837 | echo "configure:2838: checking "for --enable-dynlib"" >&5 |
10f2d63a VZ |
2838 | no_cache=0 |
2839 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
2840 | if test "${enable_dynlib+set}" = set; then | |
2841 | enableval="$enable_dynlib" | |
2842 | ||
2843 | if test "$enableval" = yes; then | |
2844 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
2845 | else | |
2846 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
2847 | fi | |
2848 | ||
2849 | else | |
2850 | ||
2851 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
2852 | if test "x$LINE" != x ; then | |
2853 | eval "DEFAULT_$LINE" | |
2854 | else | |
2855 | no_cache=1 | |
2856 | fi | |
2857 | ||
2858 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
2859 | ||
2860 | fi | |
2861 | ||
2862 | ||
2863 | eval "$ac_cv_use_dynlib" | |
2864 | if test "$no_cache" != 1; then | |
2865 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
2866 | fi | |
2867 | ||
2868 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
2869 | echo "$ac_t""yes" 1>&6 | |
2870 | else | |
2871 | echo "$ac_t""no" 1>&6 | |
2872 | fi | |
2873 | ||
2874 | ||
2875 | echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6 | |
6f72b082 | 2876 | echo "configure:2877: checking "for --enable-longlong"" >&5 |
10f2d63a VZ |
2877 | no_cache=0 |
2878 | # Check whether --enable-longlong or --disable-longlong was given. | |
2879 | if test "${enable_longlong+set}" = set; then | |
2880 | enableval="$enable_longlong" | |
2881 | ||
2882 | if test "$enableval" = yes; then | |
2883 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
2884 | else | |
2885 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
2886 | fi | |
2887 | ||
2888 | else | |
2889 | ||
2890 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
2891 | if test "x$LINE" != x ; then | |
2892 | eval "DEFAULT_$LINE" | |
2893 | else | |
2894 | no_cache=1 | |
2895 | fi | |
2896 | ||
2897 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
2898 | ||
2899 | fi | |
2900 | ||
2901 | ||
2902 | eval "$ac_cv_use_longlong" | |
2903 | if test "$no_cache" != 1; then | |
2904 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
2905 | fi | |
2906 | ||
2907 | if test "$wxUSE_LONGLONG" = yes; then | |
2908 | echo "$ac_t""yes" 1>&6 | |
2909 | else | |
2910 | echo "$ac_t""no" 1>&6 | |
2911 | fi | |
2912 | ||
2913 | ||
2914 | echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6 | |
6f72b082 | 2915 | echo "configure:2916: checking "for --enable-log"" >&5 |
10f2d63a VZ |
2916 | no_cache=0 |
2917 | # Check whether --enable-log or --disable-log was given. | |
2918 | if test "${enable_log+set}" = set; then | |
2919 | enableval="$enable_log" | |
2920 | ||
2921 | if test "$enableval" = yes; then | |
2922 | ac_cv_use_log='wxUSE_LOG=yes' | |
2923 | else | |
2924 | ac_cv_use_log='wxUSE_LOG=no' | |
2925 | fi | |
2926 | ||
2927 | else | |
2928 | ||
2929 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
2930 | if test "x$LINE" != x ; then | |
2931 | eval "DEFAULT_$LINE" | |
2932 | else | |
2933 | no_cache=1 | |
2934 | fi | |
2935 | ||
2936 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
2937 | ||
2938 | fi | |
2939 | ||
2940 | ||
2941 | eval "$ac_cv_use_log" | |
2942 | if test "$no_cache" != 1; then | |
2943 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
2944 | fi | |
2945 | ||
2946 | if test "$wxUSE_LOG" = yes; then | |
2947 | echo "$ac_t""yes" 1>&6 | |
2948 | else | |
2949 | echo "$ac_t""no" 1>&6 | |
2950 | fi | |
2951 | ||
2952 | ||
2953 | echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6 | |
6f72b082 | 2954 | echo "configure:2955: checking "for --enable-streams"" >&5 |
10f2d63a VZ |
2955 | no_cache=0 |
2956 | # Check whether --enable-streams or --disable-streams was given. | |
2957 | if test "${enable_streams+set}" = set; then | |
2958 | enableval="$enable_streams" | |
2959 | ||
2960 | if test "$enableval" = yes; then | |
2961 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
2962 | else | |
2963 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
2964 | fi | |
2965 | ||
2966 | else | |
2967 | ||
2968 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
2969 | if test "x$LINE" != x ; then | |
2970 | eval "DEFAULT_$LINE" | |
2971 | else | |
2972 | no_cache=1 | |
2973 | fi | |
2974 | ||
2975 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
2976 | ||
2977 | fi | |
2978 | ||
2979 | ||
2980 | eval "$ac_cv_use_streams" | |
2981 | if test "$no_cache" != 1; then | |
2982 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
2983 | fi | |
2984 | ||
2985 | if test "$wxUSE_STREAMS" = yes; then | |
2986 | echo "$ac_t""yes" 1>&6 | |
2987 | else | |
2988 | echo "$ac_t""no" 1>&6 | |
2989 | fi | |
2990 | ||
2991 | ||
2992 | echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6 | |
6f72b082 | 2993 | echo "configure:2994: checking "for --enable-file"" >&5 |
10f2d63a VZ |
2994 | no_cache=0 |
2995 | # Check whether --enable-file or --disable-file was given. | |
2996 | if test "${enable_file+set}" = set; then | |
2997 | enableval="$enable_file" | |
2998 | ||
2999 | if test "$enableval" = yes; then | |
3000 | ac_cv_use_file='wxUSE_FILE=yes' | |
3001 | else | |
3002 | ac_cv_use_file='wxUSE_FILE=no' | |
3003 | fi | |
3004 | ||
3005 | else | |
3006 | ||
3007 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
3008 | if test "x$LINE" != x ; then | |
3009 | eval "DEFAULT_$LINE" | |
3010 | else | |
3011 | no_cache=1 | |
3012 | fi | |
3013 | ||
3014 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
3015 | ||
3016 | fi | |
3017 | ||
3018 | ||
3019 | eval "$ac_cv_use_file" | |
3020 | if test "$no_cache" != 1; then | |
3021 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
3022 | fi | |
3023 | ||
3024 | if test "$wxUSE_FILE" = yes; then | |
3025 | echo "$ac_t""yes" 1>&6 | |
3026 | else | |
3027 | echo "$ac_t""no" 1>&6 | |
3028 | fi | |
3029 | ||
3030 | ||
3031 | echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6 | |
6f72b082 | 3032 | echo "configure:3033: checking "for --enable-textfile"" >&5 |
10f2d63a VZ |
3033 | no_cache=0 |
3034 | # Check whether --enable-textfile or --disable-textfile was given. | |
3035 | if test "${enable_textfile+set}" = set; then | |
3036 | enableval="$enable_textfile" | |
3037 | ||
3038 | if test "$enableval" = yes; then | |
3039 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
3040 | else | |
3041 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
3042 | fi | |
3043 | ||
3044 | else | |
3045 | ||
3046 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
3047 | if test "x$LINE" != x ; then | |
3048 | eval "DEFAULT_$LINE" | |
3049 | else | |
3050 | no_cache=1 | |
3051 | fi | |
3052 | ||
3053 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
3054 | ||
3055 | fi | |
3056 | ||
3057 | ||
3058 | eval "$ac_cv_use_textfile" | |
3059 | if test "$no_cache" != 1; then | |
3060 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
3061 | fi | |
3062 | ||
3063 | if test "$wxUSE_TEXTFILE" = yes; then | |
3064 | echo "$ac_t""yes" 1>&6 | |
3065 | else | |
3066 | echo "$ac_t""no" 1>&6 | |
3067 | fi | |
3068 | ||
3069 | ||
3070 | echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6 | |
6f72b082 | 3071 | echo "configure:3072: checking "for --enable-unicode"" >&5 |
10f2d63a VZ |
3072 | no_cache=0 |
3073 | # Check whether --enable-unicode or --disable-unicode was given. | |
3074 | if test "${enable_unicode+set}" = set; then | |
3075 | enableval="$enable_unicode" | |
3076 | ||
3077 | if test "$enableval" = yes; then | |
3078 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
3079 | else | |
3080 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
3081 | fi | |
3082 | ||
3083 | else | |
3084 | ||
3085 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
3086 | if test "x$LINE" != x ; then | |
3087 | eval "DEFAULT_$LINE" | |
3088 | else | |
3089 | no_cache=1 | |
3090 | fi | |
3091 | ||
3092 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
3093 | ||
3094 | fi | |
3095 | ||
3096 | ||
3097 | eval "$ac_cv_use_unicode" | |
3098 | if test "$no_cache" != 1; then | |
3099 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
3100 | fi | |
3101 | ||
3102 | if test "$wxUSE_UNICODE" = yes; then | |
3103 | echo "$ac_t""yes" 1>&6 | |
3104 | else | |
3105 | echo "$ac_t""no" 1>&6 | |
3106 | fi | |
3107 | ||
3108 | ||
3109 | echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6 | |
6f72b082 | 3110 | echo "configure:3111: checking "for --enable-wcsrtombs"" >&5 |
10f2d63a VZ |
3111 | no_cache=0 |
3112 | # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given. | |
3113 | if test "${enable_wcsrtombs+set}" = set; then | |
3114 | enableval="$enable_wcsrtombs" | |
3115 | ||
3116 | if test "$enableval" = yes; then | |
3117 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes' | |
3118 | else | |
3119 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no' | |
3120 | fi | |
3121 | ||
3122 | else | |
3123 | ||
3124 | LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}` | |
3125 | if test "x$LINE" != x ; then | |
3126 | eval "DEFAULT_$LINE" | |
3127 | else | |
3128 | no_cache=1 | |
3129 | fi | |
3130 | ||
3131 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS | |
3132 | ||
3133 | fi | |
3134 | ||
3135 | ||
3136 | eval "$ac_cv_use_wcsrtombs" | |
3137 | if test "$no_cache" != 1; then | |
3138 | echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp | |
3139 | fi | |
3140 | ||
3141 | if test "$wxUSE_WCSRTOMBS" = yes; then | |
3142 | echo "$ac_t""yes" 1>&6 | |
3143 | else | |
3144 | echo "$ac_t""no" 1>&6 | |
3145 | fi | |
3146 | ||
3147 | ||
3148 | echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6 | |
6f72b082 | 3149 | echo "configure:3150: checking "for --enable-wxprintfv"" >&5 |
10f2d63a VZ |
3150 | no_cache=0 |
3151 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
3152 | if test "${enable_wxprintfv+set}" = set; then | |
3153 | enableval="$enable_wxprintfv" | |
3154 | ||
3155 | if test "$enableval" = yes; then | |
3156 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
3157 | else | |
3158 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
3159 | fi | |
3160 | ||
3161 | else | |
3162 | ||
3163 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
3164 | if test "x$LINE" != x ; then | |
3165 | eval "DEFAULT_$LINE" | |
3166 | else | |
3167 | no_cache=1 | |
3168 | fi | |
3169 | ||
3170 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
3171 | ||
3172 | fi | |
3173 | ||
3174 | ||
3175 | eval "$ac_cv_use_wxprintfv" | |
3176 | if test "$no_cache" != 1; then | |
3177 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
3178 | fi | |
3179 | ||
3180 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
3181 | echo "$ac_t""yes" 1>&6 | |
3182 | else | |
3183 | echo "$ac_t""no" 1>&6 | |
3184 | fi | |
3185 | ||
3186 | ||
10f2d63a | 3187 | echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6 |
6f72b082 | 3188 | echo "configure:3189: checking "for --enable-std_iostreams"" >&5 |
10f2d63a VZ |
3189 | no_cache=0 |
3190 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
3191 | if test "${enable_std_iostreams+set}" = set; then | |
3192 | enableval="$enable_std_iostreams" | |
3193 | ||
3194 | if test "$enableval" = yes; then | |
3195 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
3196 | else | |
3197 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
3198 | fi | |
3199 | ||
3200 | else | |
3201 | ||
3202 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` | |
3203 | if test "x$LINE" != x ; then | |
3204 | eval "DEFAULT_$LINE" | |
3205 | else | |
3206 | no_cache=1 | |
3207 | fi | |
3208 | ||
3209 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
3210 | ||
3211 | fi | |
3212 | ||
3213 | ||
3214 | eval "$ac_cv_use_std_iostreams" | |
3215 | if test "$no_cache" != 1; then | |
3216 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
3217 | fi | |
3218 | ||
3219 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
3220 | echo "$ac_t""yes" 1>&6 | |
3221 | else | |
3222 | echo "$ac_t""no" 1>&6 | |
3223 | fi | |
3224 | ||
3225 | ||
24528b0c | 3226 | echo $ac_n "checking "for --enable-filesystem"""... $ac_c" 1>&6 |
6f72b082 | 3227 | echo "configure:3228: checking "for --enable-filesystem"" >&5 |
24528b0c VS |
3228 | no_cache=0 |
3229 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
3230 | if test "${enable_filesystem+set}" = set; then | |
3231 | enableval="$enable_filesystem" | |
3232 | ||
3233 | if test "$enableval" = yes; then | |
3234 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
3235 | else | |
3236 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
3237 | fi | |
3238 | ||
3239 | else | |
3240 | ||
3241 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
3242 | if test "x$LINE" != x ; then | |
3243 | eval "DEFAULT_$LINE" | |
3244 | else | |
3245 | no_cache=1 | |
3246 | fi | |
3247 | ||
3248 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
3249 | ||
3250 | fi | |
3251 | ||
3252 | ||
3253 | eval "$ac_cv_use_filesystem" | |
3254 | if test "$no_cache" != 1; then | |
3255 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
3256 | fi | |
3257 | ||
3258 | if test "$wxUSE_FILESYSTEM" = yes; then | |
3259 | echo "$ac_t""yes" 1>&6 | |
3260 | else | |
3261 | echo "$ac_t""no" 1>&6 | |
3262 | fi | |
3263 | ||
3264 | ||
10f2d63a | 3265 | echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6 |
6f72b082 | 3266 | echo "configure:3267: checking "for --enable-fs_inet"" >&5 |
10f2d63a VZ |
3267 | no_cache=0 |
3268 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
3269 | if test "${enable_fs_inet+set}" = set; then | |
3270 | enableval="$enable_fs_inet" | |
3271 | ||
3272 | if test "$enableval" = yes; then | |
3273 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
3274 | else | |
3275 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
3276 | fi | |
3277 | ||
3278 | else | |
3279 | ||
3280 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
3281 | if test "x$LINE" != x ; then | |
3282 | eval "DEFAULT_$LINE" | |
3283 | else | |
3284 | no_cache=1 | |
3285 | fi | |
3286 | ||
3287 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
3288 | ||
3289 | fi | |
3290 | ||
3291 | ||
3292 | eval "$ac_cv_use_fs_inet" | |
3293 | if test "$no_cache" != 1; then | |
3294 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
3295 | fi | |
3296 | ||
3297 | if test "$wxUSE_FS_INET" = yes; then | |
3298 | echo "$ac_t""yes" 1>&6 | |
3299 | else | |
3300 | echo "$ac_t""no" 1>&6 | |
3301 | fi | |
3302 | ||
3303 | ||
3304 | echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6 | |
6f72b082 | 3305 | echo "configure:3306: checking "for --enable-fs_zip"" >&5 |
10f2d63a VZ |
3306 | no_cache=0 |
3307 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
3308 | if test "${enable_fs_zip+set}" = set; then | |
3309 | enableval="$enable_fs_zip" | |
3310 | ||
3311 | if test "$enableval" = yes; then | |
3312 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
3313 | else | |
3314 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
3315 | fi | |
3316 | ||
3317 | else | |
3318 | ||
3319 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
3320 | if test "x$LINE" != x ; then | |
3321 | eval "DEFAULT_$LINE" | |
3322 | else | |
3323 | no_cache=1 | |
3324 | fi | |
3325 | ||
3326 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
3327 | ||
3328 | fi | |
3329 | ||
3330 | ||
3331 | eval "$ac_cv_use_fs_zip" | |
3332 | if test "$no_cache" != 1; then | |
3333 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
3334 | fi | |
3335 | ||
3336 | if test "$wxUSE_FS_ZIP" = yes; then | |
3337 | echo "$ac_t""yes" 1>&6 | |
3338 | else | |
3339 | echo "$ac_t""no" 1>&6 | |
3340 | fi | |
3341 | ||
3342 | ||
3343 | echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6 | |
6f72b082 | 3344 | echo "configure:3345: checking "for --enable-zipstream"" >&5 |
10f2d63a VZ |
3345 | no_cache=0 |
3346 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
3347 | if test "${enable_zipstream+set}" = set; then | |
3348 | enableval="$enable_zipstream" | |
3349 | ||
3350 | if test "$enableval" = yes; then | |
3351 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
3352 | else | |
3353 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
3354 | fi | |
3355 | ||
3356 | else | |
3357 | ||
3358 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
3359 | if test "x$LINE" != x ; then | |
3360 | eval "DEFAULT_$LINE" | |
3361 | else | |
3362 | no_cache=1 | |
3363 | fi | |
3364 | ||
3365 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
3366 | ||
3367 | fi | |
3368 | ||
3369 | ||
3370 | eval "$ac_cv_use_zipstream" | |
3371 | if test "$no_cache" != 1; then | |
3372 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
3373 | fi | |
3374 | ||
3375 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
3376 | echo "$ac_t""yes" 1>&6 | |
3377 | else | |
3378 | echo "$ac_t""no" 1>&6 | |
3379 | fi | |
3380 | ||
3381 | ||
3382 | ||
eb4efbdc | 3383 | echo $ac_n "checking "for --enable-catch_segvs"""... $ac_c" 1>&6 |
6f72b082 | 3384 | echo "configure:3385: checking "for --enable-catch_segvs"" >&5 |
eb4efbdc VZ |
3385 | no_cache=0 |
3386 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
3387 | if test "${enable_catch_segvs+set}" = set; then | |
3388 | enableval="$enable_catch_segvs" | |
3389 | ||
3390 | if test "$enableval" = yes; then | |
3391 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
3392 | else | |
3393 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
3394 | fi | |
3395 | ||
3396 | else | |
3397 | ||
3398 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` | |
3399 | if test "x$LINE" != x ; then | |
3400 | eval "DEFAULT_$LINE" | |
3401 | else | |
3402 | no_cache=1 | |
3403 | fi | |
3404 | ||
3405 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
3406 | ||
3407 | fi | |
3408 | ||
3409 | ||
3410 | eval "$ac_cv_use_catch_segvs" | |
3411 | if test "$no_cache" != 1; then | |
3412 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
3413 | fi | |
3414 | ||
3415 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
3416 | echo "$ac_t""yes" 1>&6 | |
3417 | else | |
3418 | echo "$ac_t""no" 1>&6 | |
3419 | fi | |
3420 | ||
3421 | ||
3422 | ||
10f2d63a VZ |
3423 | |
3424 | echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6 | |
6f72b082 | 3425 | echo "configure:3426: checking "for --enable-threads"" >&5 |
10f2d63a VZ |
3426 | no_cache=0 |
3427 | # Check whether --enable-threads or --disable-threads was given. | |
3428 | if test "${enable_threads+set}" = set; then | |
3429 | enableval="$enable_threads" | |
3430 | ||
3431 | if test "$enableval" = yes; then | |
3432 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
3433 | else | |
3434 | ac_cv_use_threads='wxUSE_THREADS=no' | |
3435 | fi | |
3436 | ||
3437 | else | |
3438 | ||
3439 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
3440 | if test "x$LINE" != x ; then | |
3441 | eval "DEFAULT_$LINE" | |
3442 | else | |
3443 | no_cache=1 | |
3444 | fi | |
3445 | ||
3446 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
3447 | ||
3448 | fi | |
3449 | ||
3450 | ||
3451 | eval "$ac_cv_use_threads" | |
3452 | if test "$no_cache" != 1; then | |
3453 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
3454 | fi | |
3455 | ||
3456 | if test "$wxUSE_THREADS" = yes; then | |
3457 | echo "$ac_t""yes" 1>&6 | |
3458 | else | |
3459 | echo "$ac_t""no" 1>&6 | |
3460 | fi | |
3461 | ||
3462 | ||
3463 | echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6 | |
6f72b082 | 3464 | echo "configure:3465: checking "for --enable-serial"" >&5 |
10f2d63a VZ |
3465 | no_cache=0 |
3466 | # Check whether --enable-serial or --disable-serial was given. | |
3467 | if test "${enable_serial+set}" = set; then | |
3468 | enableval="$enable_serial" | |
3469 | ||
3470 | if test "$enableval" = yes; then | |
3471 | ac_cv_use_serial='wxUSE_SERIAL=yes' | |
3472 | else | |
3473 | ac_cv_use_serial='wxUSE_SERIAL=no' | |
3474 | fi | |
3475 | ||
3476 | else | |
3477 | ||
3478 | LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}` | |
3479 | if test "x$LINE" != x ; then | |
3480 | eval "DEFAULT_$LINE" | |
3481 | else | |
3482 | no_cache=1 | |
3483 | fi | |
3484 | ||
3485 | ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL | |
3486 | ||
3487 | fi | |
3488 | ||
3489 | ||
3490 | eval "$ac_cv_use_serial" | |
3491 | if test "$no_cache" != 1; then | |
3492 | echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp | |
3493 | fi | |
3494 | ||
3495 | if test "$wxUSE_SERIAL" = yes; then | |
3496 | echo "$ac_t""yes" 1>&6 | |
3497 | else | |
3498 | echo "$ac_t""no" 1>&6 | |
3499 | fi | |
3500 | ||
3501 | ||
b12915c1 VZ |
3502 | if test "$wxUSE_GUI" = "yes"; then |
3503 | ||
10f2d63a VZ |
3504 | |
3505 | ||
3506 | echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6 | |
6f72b082 | 3507 | echo "configure:3508: checking "for --enable-docview"" >&5 |
10f2d63a VZ |
3508 | no_cache=0 |
3509 | # Check whether --enable-docview or --disable-docview was given. | |
3510 | if test "${enable_docview+set}" = set; then | |
3511 | enableval="$enable_docview" | |
3512 | ||
3513 | if test "$enableval" = yes; then | |
3514 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
3515 | else | |
3516 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
3517 | fi | |
3518 | ||
3519 | else | |
3520 | ||
3521 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
3522 | if test "x$LINE" != x ; then | |
3523 | eval "DEFAULT_$LINE" | |
3524 | else | |
3525 | no_cache=1 | |
3526 | fi | |
3527 | ||
3528 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
3529 | ||
3530 | fi | |
3531 | ||
3532 | ||
3533 | eval "$ac_cv_use_docview" | |
3534 | if test "$no_cache" != 1; then | |
3535 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
3536 | fi | |
3537 | ||
3538 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
3539 | echo "$ac_t""yes" 1>&6 | |
3540 | else | |
3541 | echo "$ac_t""no" 1>&6 | |
3542 | fi | |
3543 | ||
3544 | ||
3545 | echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6 | |
6f72b082 | 3546 | echo "configure:3547: checking "for --enable-help"" >&5 |
10f2d63a VZ |
3547 | no_cache=0 |
3548 | # Check whether --enable-help or --disable-help was given. | |
3549 | if test "${enable_help+set}" = set; then | |
3550 | enableval="$enable_help" | |
3551 | ||
3552 | if test "$enableval" = yes; then | |
3553 | ac_cv_use_help='wxUSE_HELP=yes' | |
3554 | else | |
3555 | ac_cv_use_help='wxUSE_HELP=no' | |
3556 | fi | |
3557 | ||
3558 | else | |
3559 | ||
3560 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
3561 | if test "x$LINE" != x ; then | |
3562 | eval "DEFAULT_$LINE" | |
3563 | else | |
3564 | no_cache=1 | |
3565 | fi | |
3566 | ||
3567 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
3568 | ||
3569 | fi | |
3570 | ||
3571 | ||
3572 | eval "$ac_cv_use_help" | |
3573 | if test "$no_cache" != 1; then | |
3574 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
3575 | fi | |
3576 | ||
3577 | if test "$wxUSE_HELP" = yes; then | |
3578 | echo "$ac_t""yes" 1>&6 | |
3579 | else | |
3580 | echo "$ac_t""no" 1>&6 | |
3581 | fi | |
3582 | ||
3583 | ||
3584 | echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6 | |
6f72b082 | 3585 | echo "configure:3586: checking "for --enable-constraints"" >&5 |
10f2d63a VZ |
3586 | no_cache=0 |
3587 | # Check whether --enable-constraints or --disable-constraints was given. | |
3588 | if test "${enable_constraints+set}" = set; then | |
3589 | enableval="$enable_constraints" | |
3590 | ||
3591 | if test "$enableval" = yes; then | |
3592 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
3593 | else | |
3594 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
3595 | fi | |
3596 | ||
3597 | else | |
3598 | ||
3599 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
3600 | if test "x$LINE" != x ; then | |
3601 | eval "DEFAULT_$LINE" | |
3602 | else | |
3603 | no_cache=1 | |
3604 | fi | |
3605 | ||
3606 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
3607 | ||
3608 | fi | |
3609 | ||
3610 | ||
3611 | eval "$ac_cv_use_constraints" | |
3612 | if test "$no_cache" != 1; then | |
3613 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
3614 | fi | |
3615 | ||
3616 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
3617 | echo "$ac_t""yes" 1>&6 | |
3618 | else | |
3619 | echo "$ac_t""no" 1>&6 | |
3620 | fi | |
3621 | ||
3622 | ||
3623 | echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6 | |
6f72b082 | 3624 | echo "configure:3625: checking "for --enable-printarch"" >&5 |
10f2d63a VZ |
3625 | no_cache=0 |
3626 | # Check whether --enable-printarch or --disable-printarch was given. | |
3627 | if test "${enable_printarch+set}" = set; then | |
3628 | enableval="$enable_printarch" | |
3629 | ||
3630 | if test "$enableval" = yes; then | |
3631 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
3632 | else | |
3633 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
3634 | fi | |
3635 | ||
3636 | else | |
3637 | ||
3638 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
3639 | if test "x$LINE" != x ; then | |
3640 | eval "DEFAULT_$LINE" | |
3641 | else | |
3642 | no_cache=1 | |
3643 | fi | |
3644 | ||
3645 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
3646 | ||
3647 | fi | |
3648 | ||
3649 | ||
3650 | eval "$ac_cv_use_printarch" | |
3651 | if test "$no_cache" != 1; then | |
3652 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
3653 | fi | |
3654 | ||
3655 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
3656 | echo "$ac_t""yes" 1>&6 | |
3657 | else | |
3658 | echo "$ac_t""no" 1>&6 | |
3659 | fi | |
3660 | ||
3661 | ||
3662 | echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6 | |
6f72b082 | 3663 | echo "configure:3664: checking "for --enable-mdi"" >&5 |
10f2d63a VZ |
3664 | no_cache=0 |
3665 | # Check whether --enable-mdi or --disable-mdi was given. | |
3666 | if test "${enable_mdi+set}" = set; then | |
3667 | enableval="$enable_mdi" | |
3668 | ||
3669 | if test "$enableval" = yes; then | |
3670 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
3671 | else | |
3672 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
3673 | fi | |
3674 | ||
3675 | else | |
3676 | ||
3677 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
3678 | if test "x$LINE" != x ; then | |
3679 | eval "DEFAULT_$LINE" | |
3680 | else | |
3681 | no_cache=1 | |
3682 | fi | |
3683 | ||
3684 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
3685 | ||
3686 | fi | |
3687 | ||
3688 | ||
3689 | eval "$ac_cv_use_mdi" | |
3690 | if test "$no_cache" != 1; then | |
3691 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
3692 | fi | |
3693 | ||
3694 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
3695 | echo "$ac_t""yes" 1>&6 | |
3696 | else | |
3697 | echo "$ac_t""no" 1>&6 | |
3698 | fi | |
3699 | ||
3700 | ||
3701 | ||
3702 | echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6 | |
6f72b082 | 3703 | echo "configure:3704: checking "for --enable-postscript"" >&5 |
10f2d63a VZ |
3704 | no_cache=0 |
3705 | # Check whether --enable-postscript or --disable-postscript was given. | |
3706 | if test "${enable_postscript+set}" = set; then | |
3707 | enableval="$enable_postscript" | |
3708 | ||
3709 | if test "$enableval" = yes; then | |
3710 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
3711 | else | |
3712 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
3713 | fi | |
3714 | ||
3715 | else | |
3716 | ||
3717 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
3718 | if test "x$LINE" != x ; then | |
3719 | eval "DEFAULT_$LINE" | |
3720 | else | |
3721 | no_cache=1 | |
3722 | fi | |
3723 | ||
3724 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
3725 | ||
3726 | fi | |
3727 | ||
3728 | ||
3729 | eval "$ac_cv_use_postscript" | |
3730 | if test "$no_cache" != 1; then | |
3731 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
3732 | fi | |
3733 | ||
3734 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
3735 | echo "$ac_t""yes" 1>&6 | |
3736 | else | |
3737 | echo "$ac_t""no" 1>&6 | |
3738 | fi | |
3739 | ||
3740 | ||
3741 | ||
3742 | ||
3743 | echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6 | |
6f72b082 | 3744 | echo "configure:3745: checking "for --enable-prologio"" >&5 |
10f2d63a VZ |
3745 | no_cache=0 |
3746 | # Check whether --enable-prologio or --disable-prologio was given. | |
3747 | if test "${enable_prologio+set}" = set; then | |
3748 | enableval="$enable_prologio" | |
3749 | ||
3750 | if test "$enableval" = yes; then | |
3751 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
3752 | else | |
3753 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
3754 | fi | |
3755 | ||
3756 | else | |
3757 | ||
3758 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
3759 | if test "x$LINE" != x ; then | |
3760 | eval "DEFAULT_$LINE" | |
3761 | else | |
3762 | no_cache=1 | |
3763 | fi | |
3764 | ||
3765 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
3766 | ||
3767 | fi | |
3768 | ||
3769 | ||
3770 | eval "$ac_cv_use_prologio" | |
3771 | if test "$no_cache" != 1; then | |
3772 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
3773 | fi | |
3774 | ||
3775 | if test "$wxUSE_PROLOGIO" = yes; then | |
3776 | echo "$ac_t""yes" 1>&6 | |
3777 | else | |
3778 | echo "$ac_t""no" 1>&6 | |
3779 | fi | |
3780 | ||
3781 | ||
3782 | echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6 | |
6f72b082 | 3783 | echo "configure:3784: checking "for --enable-resources"" >&5 |
10f2d63a VZ |
3784 | no_cache=0 |
3785 | # Check whether --enable-resources or --disable-resources was given. | |
3786 | if test "${enable_resources+set}" = set; then | |
3787 | enableval="$enable_resources" | |
3788 | ||
3789 | if test "$enableval" = yes; then | |
3790 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
3791 | else | |
3792 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
3793 | fi | |
3794 | ||
3795 | else | |
3796 | ||
3797 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
3798 | if test "x$LINE" != x ; then | |
3799 | eval "DEFAULT_$LINE" | |
3800 | else | |
3801 | no_cache=1 | |
3802 | fi | |
3803 | ||
3804 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
3805 | ||
3806 | fi | |
3807 | ||
3808 | ||
3809 | eval "$ac_cv_use_resources" | |
3810 | if test "$no_cache" != 1; then | |
3811 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
3812 | fi | |
3813 | ||
3814 | if test "$wxUSE_RESOURCES" = yes; then | |
3815 | echo "$ac_t""yes" 1>&6 | |
3816 | else | |
3817 | echo "$ac_t""no" 1>&6 | |
3818 | fi | |
3819 | ||
3820 | ||
3821 | ||
3822 | echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6 | |
6f72b082 | 3823 | echo "configure:3824: checking "for --enable-xresources"" >&5 |
10f2d63a VZ |
3824 | no_cache=0 |
3825 | # Check whether --enable-xresources or --disable-xresources was given. | |
3826 | if test "${enable_xresources+set}" = set; then | |
3827 | enableval="$enable_xresources" | |
3828 | ||
3829 | if test "$enableval" = yes; then | |
3830 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
3831 | else | |
3832 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
3833 | fi | |
3834 | ||
3835 | else | |
3836 | ||
3837 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` | |
3838 | if test "x$LINE" != x ; then | |
3839 | eval "DEFAULT_$LINE" | |
3840 | else | |
3841 | no_cache=1 | |
3842 | fi | |
3843 | ||
3844 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
3845 | ||
3846 | fi | |
3847 | ||
3848 | ||
3849 | eval "$ac_cv_use_xresources" | |
3850 | if test "$no_cache" != 1; then | |
3851 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
3852 | fi | |
3853 | ||
3854 | if test "$wxUSE_X_RESOURCES" = yes; then | |
3855 | echo "$ac_t""yes" 1>&6 | |
3856 | else | |
3857 | echo "$ac_t""no" 1>&6 | |
3858 | fi | |
3859 | ||
3860 | ||
3861 | ||
3862 | ||
3863 | echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6 | |
6f72b082 | 3864 | echo "configure:3865: checking "for --enable-clipboard"" >&5 |
10f2d63a VZ |
3865 | no_cache=0 |
3866 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
3867 | if test "${enable_clipboard+set}" = set; then | |
3868 | enableval="$enable_clipboard" | |
3869 | ||
3870 | if test "$enableval" = yes; then | |
3871 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
3872 | else | |
3873 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
3874 | fi | |
3875 | ||
3876 | else | |
3877 | ||
3878 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
3879 | if test "x$LINE" != x ; then | |
3880 | eval "DEFAULT_$LINE" | |
3881 | else | |
3882 | no_cache=1 | |
3883 | fi | |
3884 | ||
3885 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
3886 | ||
3887 | fi | |
3888 | ||
3889 | ||
3890 | eval "$ac_cv_use_clipboard" | |
3891 | if test "$no_cache" != 1; then | |
3892 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
3893 | fi | |
3894 | ||
3895 | if test "$wxUSE_CLIPBOARD" = yes; then | |
3896 | echo "$ac_t""yes" 1>&6 | |
3897 | else | |
3898 | echo "$ac_t""no" 1>&6 | |
3899 | fi | |
3900 | ||
3901 | ||
3902 | echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6 | |
6f72b082 | 3903 | echo "configure:3904: checking "for --enable-dnd"" >&5 |
10f2d63a VZ |
3904 | no_cache=0 |
3905 | # Check whether --enable-dnd or --disable-dnd was given. | |
3906 | if test "${enable_dnd+set}" = set; then | |
3907 | enableval="$enable_dnd" | |
3908 | ||
3909 | if test "$enableval" = yes; then | |
3910 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
3911 | else | |
3912 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
3913 | fi | |
3914 | ||
3915 | else | |
3916 | ||
3917 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
3918 | if test "x$LINE" != x ; then | |
3919 | eval "DEFAULT_$LINE" | |
3920 | else | |
3921 | no_cache=1 | |
3922 | fi | |
3923 | ||
3924 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
3925 | ||
3926 | fi | |
3927 | ||
3928 | ||
3929 | eval "$ac_cv_use_dnd" | |
3930 | if test "$no_cache" != 1; then | |
3931 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
3932 | fi | |
3933 | ||
3934 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
3935 | echo "$ac_t""yes" 1>&6 | |
3936 | else | |
3937 | echo "$ac_t""no" 1>&6 | |
3938 | fi | |
3939 | ||
3940 | ||
3941 | ||
3942 | echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6 | |
6f72b082 | 3943 | echo "configure:3944: checking "for --enable-wxtree"" >&5 |
10f2d63a VZ |
3944 | no_cache=0 |
3945 | # Check whether --enable-wxtree or --disable-wxtree was given. | |
3946 | if test "${enable_wxtree+set}" = set; then | |
3947 | enableval="$enable_wxtree" | |
3948 | ||
3949 | if test "$enableval" = yes; then | |
3950 | ac_cv_use_wxtree='wxUSE_WXTREE=yes' | |
3951 | else | |
3952 | ac_cv_use_wxtree='wxUSE_WXTREE=no' | |
3953 | fi | |
3954 | ||
3955 | else | |
3956 | ||
3957 | LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}` | |
3958 | if test "x$LINE" != x ; then | |
3959 | eval "DEFAULT_$LINE" | |
3960 | else | |
3961 | no_cache=1 | |
3962 | fi | |
3963 | ||
3964 | ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE | |
3965 | ||
3966 | fi | |
3967 | ||
3968 | ||
3969 | eval "$ac_cv_use_wxtree" | |
3970 | if test "$no_cache" != 1; then | |
3971 | echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp | |
3972 | fi | |
3973 | ||
3974 | if test "$wxUSE_WXTREE" = yes; then | |
3975 | echo "$ac_t""yes" 1>&6 | |
3976 | else | |
3977 | echo "$ac_t""no" 1>&6 | |
3978 | fi | |
3979 | ||
3980 | ||
3981 | ||
3982 | ||
3983 | echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6 | |
6f72b082 | 3984 | echo "configure:3985: checking "for --enable-controls"" >&5 |
10f2d63a VZ |
3985 | no_cache=0 |
3986 | # Check whether --enable-controls or --disable-controls was given. | |
3987 | if test "${enable_controls+set}" = set; then | |
3988 | enableval="$enable_controls" | |
3989 | ||
3990 | if test "$enableval" = yes; then | |
3991 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
3992 | else | |
3993 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
3994 | fi | |
3995 | ||
3996 | else | |
3997 | ||
3998 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
3999 | if test "x$LINE" != x ; then | |
4000 | eval "DEFAULT_$LINE" | |
4001 | else | |
4002 | no_cache=1 | |
4003 | fi | |
4004 | ||
4005 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
4006 | ||
4007 | fi | |
4008 | ||
4009 | ||
4010 | eval "$ac_cv_use_controls" | |
4011 | if test "$no_cache" != 1; then | |
4012 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
4013 | fi | |
4014 | ||
4015 | if test "$wxUSE_CONTROLS" = yes; then | |
4016 | echo "$ac_t""yes" 1>&6 | |
4017 | else | |
4018 | echo "$ac_t""no" 1>&6 | |
4019 | fi | |
4020 | ||
4021 | ||
4022 | if test "$wxUSE_CONTROLS" = "yes"; then | |
4023 | DEFAULT_wxUSE_ACCEL=yes | |
4024 | DEFAULT_wxUSE_CARET=yes | |
4025 | DEFAULT_wxUSE_COMBOBOX=yes | |
4026 | DEFAULT_wxUSE_BMPBUTTON=yes | |
4027 | DEFAULT_wxUSE_CHECKBOX=yes | |
4028 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
4029 | DEFAULT_wxUSE_CHOICE=yes | |
4030 | DEFAULT_wxUSE_GAUGE=yes | |
4031 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 4032 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
4033 | DEFAULT_wxUSE_IMAGLIST=yes |
4034 | DEFAULT_wxUSE_LISTBOX=yes | |
4035 | DEFAULT_wxUSE_LISTCTRL=yes | |
4036 | DEFAULT_wxUSE_NOTEBOOK=yes | |
4037 | DEFAULT_wxUSE_RADIOBOX=yes | |
4038 | DEFAULT_wxUSE_RADIOBTN=yes | |
4039 | DEFAULT_wxUSE_SASH=yes | |
4040 | DEFAULT_wxUSE_SCROLLBAR=yes | |
4041 | DEFAULT_wxUSE_SLIDER=yes | |
4042 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 4043 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
4044 | DEFAULT_wxUSE_SPLITTER=yes |
4045 | DEFAULT_wxUSE_STATBMP=yes | |
4046 | DEFAULT_wxUSE_STATBOX=yes | |
4047 | DEFAULT_wxUSE_STATLINE=yes | |
4048 | DEFAULT_wxUSE_STATUSBAR=yes | |
4049 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
4050 | DEFAULT_wxUSE_TOOLBAR=yes | |
360d6699 VZ |
4051 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
4052 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
4053 | DEFAULT_wxUSE_TOOLTIPS=yes |
4054 | DEFAULT_wxUSE_TREECTRL=yes | |
4055 | elif test "$wxUSE_CONTROLS" = "no"; then | |
4056 | DEFAULT_wxUSE_ACCEL=no | |
4057 | DEFAULT_wxUSE_CARET=no | |
4058 | DEFAULT_wxUSE_COMBOBOX=no | |
4059 | DEFAULT_wxUSE_BMPBUTTON=no | |
4060 | DEFAULT_wxUSE_CHECKBOX=no | |
4061 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
4062 | DEFAULT_wxUSE_CHOICE=no | |
4063 | DEFAULT_wxUSE_GAUGE=no | |
4064 | DEFAULT_wxUSE_GRID=no | |
4065 | DEFAULT_wxUSE_NEW_GRID=no | |
4066 | DEFAULT_wxUSE_IMAGLIST=no | |
4067 | DEFAULT_wxUSE_LISTBOX=no | |
4068 | DEFAULT_wxUSE_LISTCTRL=no | |
4069 | DEFAULT_wxUSE_NOTEBOOK=no | |
4070 | DEFAULT_wxUSE_RADIOBOX=no | |
4071 | DEFAULT_wxUSE_RADIOBTN=no | |
4072 | DEFAULT_wxUSE_SASH=no | |
4073 | DEFAULT_wxUSE_SCROLLBAR=no | |
4074 | DEFAULT_wxUSE_SLIDER=no | |
4075 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 4076 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
4077 | DEFAULT_wxUSE_SPLITTER=no |
4078 | DEFAULT_wxUSE_STATBMP=no | |
4079 | DEFAULT_wxUSE_STATBOX=no | |
4080 | DEFAULT_wxUSE_STATLINE=no | |
4081 | DEFAULT_wxUSE_STATUSBAR=no | |
4082 | DEFAULT_wxUSE_TAB_DIALOG=no | |
4083 | DEFAULT_wxUSE_TOOLBAR=no | |
360d6699 VZ |
4084 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
4085 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
4086 | DEFAULT_wxUSE_TOOLTIPS=no |
4087 | DEFAULT_wxUSE_TREECTRL=no | |
4088 | fi | |
4089 | ||
4090 | ||
4091 | echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6 | |
6f72b082 | 4092 | echo "configure:4093: checking "for --enable-accel"" >&5 |
10f2d63a VZ |
4093 | no_cache=0 |
4094 | # Check whether --enable-accel or --disable-accel was given. | |
4095 | if test "${enable_accel+set}" = set; then | |
4096 | enableval="$enable_accel" | |
4097 | ||
4098 | if test "$enableval" = yes; then | |
4099 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
4100 | else | |
4101 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
4102 | fi | |
4103 | ||
4104 | else | |
4105 | ||
4106 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
4107 | if test "x$LINE" != x ; then | |
4108 | eval "DEFAULT_$LINE" | |
4109 | else | |
4110 | no_cache=1 | |
4111 | fi | |
4112 | ||
4113 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
4114 | ||
4115 | fi | |
4116 | ||
4117 | ||
4118 | eval "$ac_cv_use_accel" | |
4119 | if test "$no_cache" != 1; then | |
4120 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
4121 | fi | |
4122 | ||
4123 | if test "$wxUSE_ACCEL" = yes; then | |
4124 | echo "$ac_t""yes" 1>&6 | |
4125 | else | |
4126 | echo "$ac_t""no" 1>&6 | |
4127 | fi | |
4128 | ||
4129 | ||
4130 | echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6 | |
6f72b082 | 4131 | echo "configure:4132: checking "for --enable-caret"" >&5 |
10f2d63a VZ |
4132 | no_cache=0 |
4133 | # Check whether --enable-caret or --disable-caret was given. | |
4134 | if test "${enable_caret+set}" = set; then | |
4135 | enableval="$enable_caret" | |
4136 | ||
4137 | if test "$enableval" = yes; then | |
4138 | ac_cv_use_caret='wxUSE_CARET=yes' | |
4139 | else | |
4140 | ac_cv_use_caret='wxUSE_CARET=no' | |
4141 | fi | |
4142 | ||
4143 | else | |
4144 | ||
4145 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
4146 | if test "x$LINE" != x ; then | |
4147 | eval "DEFAULT_$LINE" | |
4148 | else | |
4149 | no_cache=1 | |
4150 | fi | |
4151 | ||
4152 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
4153 | ||
4154 | fi | |
4155 | ||
4156 | ||
4157 | eval "$ac_cv_use_caret" | |
4158 | if test "$no_cache" != 1; then | |
4159 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
4160 | fi | |
4161 | ||
4162 | if test "$wxUSE_CARET" = yes; then | |
4163 | echo "$ac_t""yes" 1>&6 | |
4164 | else | |
4165 | echo "$ac_t""no" 1>&6 | |
4166 | fi | |
4167 | ||
4168 | ||
4169 | echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6 | |
6f72b082 | 4170 | echo "configure:4171: checking "for --enable-bmpbutton"" >&5 |
10f2d63a VZ |
4171 | no_cache=0 |
4172 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
4173 | if test "${enable_bmpbutton+set}" = set; then | |
4174 | enableval="$enable_bmpbutton" | |
4175 | ||
4176 | if test "$enableval" = yes; then | |
4177 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
4178 | else | |
4179 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
4180 | fi | |
4181 | ||
4182 | else | |
4183 | ||
4184 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
4185 | if test "x$LINE" != x ; then | |
4186 | eval "DEFAULT_$LINE" | |
4187 | else | |
4188 | no_cache=1 | |
4189 | fi | |
4190 | ||
4191 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
4192 | ||
4193 | fi | |
4194 | ||
4195 | ||
4196 | eval "$ac_cv_use_bmpbutton" | |
4197 | if test "$no_cache" != 1; then | |
4198 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
4199 | fi | |
4200 | ||
4201 | if test "$wxUSE_BMPBUTTON" = yes; then | |
4202 | echo "$ac_t""yes" 1>&6 | |
4203 | else | |
4204 | echo "$ac_t""no" 1>&6 | |
4205 | fi | |
4206 | ||
4207 | ||
4208 | echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6 | |
6f72b082 | 4209 | echo "configure:4210: checking "for --enable-checkbox"" >&5 |
10f2d63a VZ |
4210 | no_cache=0 |
4211 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
4212 | if test "${enable_checkbox+set}" = set; then | |
4213 | enableval="$enable_checkbox" | |
4214 | ||
4215 | if test "$enableval" = yes; then | |
4216 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
4217 | else | |
4218 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
4219 | fi | |
4220 | ||
4221 | else | |
4222 | ||
4223 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
4224 | if test "x$LINE" != x ; then | |
4225 | eval "DEFAULT_$LINE" | |
4226 | else | |
4227 | no_cache=1 | |
4228 | fi | |
4229 | ||
4230 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
4231 | ||
4232 | fi | |
4233 | ||
4234 | ||
4235 | eval "$ac_cv_use_checkbox" | |
4236 | if test "$no_cache" != 1; then | |
4237 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
4238 | fi | |
4239 | ||
4240 | if test "$wxUSE_CHECKBOX" = yes; then | |
4241 | echo "$ac_t""yes" 1>&6 | |
4242 | else | |
4243 | echo "$ac_t""no" 1>&6 | |
4244 | fi | |
4245 | ||
4246 | ||
4247 | echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6 | |
6f72b082 | 4248 | echo "configure:4249: checking "for --enable-checklst"" >&5 |
10f2d63a VZ |
4249 | no_cache=0 |
4250 | # Check whether --enable-checklst or --disable-checklst was given. | |
4251 | if test "${enable_checklst+set}" = set; then | |
4252 | enableval="$enable_checklst" | |
4253 | ||
4254 | if test "$enableval" = yes; then | |
4255 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
4256 | else | |
4257 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
4258 | fi | |
4259 | ||
4260 | else | |
4261 | ||
4262 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
4263 | if test "x$LINE" != x ; then | |
4264 | eval "DEFAULT_$LINE" | |
4265 | else | |
4266 | no_cache=1 | |
4267 | fi | |
4268 | ||
4269 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
4270 | ||
4271 | fi | |
4272 | ||
4273 | ||
4274 | eval "$ac_cv_use_checklst" | |
4275 | if test "$no_cache" != 1; then | |
4276 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
4277 | fi | |
4278 | ||
4279 | if test "$wxUSE_CHECKLST" = yes; then | |
4280 | echo "$ac_t""yes" 1>&6 | |
4281 | else | |
4282 | echo "$ac_t""no" 1>&6 | |
4283 | fi | |
4284 | ||
4285 | ||
4286 | echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6 | |
6f72b082 | 4287 | echo "configure:4288: checking "for --enable-choice"" >&5 |
10f2d63a VZ |
4288 | no_cache=0 |
4289 | # Check whether --enable-choice or --disable-choice was given. | |
4290 | if test "${enable_choice+set}" = set; then | |
4291 | enableval="$enable_choice" | |
4292 | ||
4293 | if test "$enableval" = yes; then | |
4294 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
4295 | else | |
4296 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
4297 | fi | |
4298 | ||
4299 | else | |
4300 | ||
4301 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
4302 | if test "x$LINE" != x ; then | |
4303 | eval "DEFAULT_$LINE" | |
4304 | else | |
4305 | no_cache=1 | |
4306 | fi | |
4307 | ||
4308 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
4309 | ||
4310 | fi | |
4311 | ||
4312 | ||
4313 | eval "$ac_cv_use_choice" | |
4314 | if test "$no_cache" != 1; then | |
4315 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
4316 | fi | |
4317 | ||
4318 | if test "$wxUSE_CHOICE" = yes; then | |
4319 | echo "$ac_t""yes" 1>&6 | |
4320 | else | |
4321 | echo "$ac_t""no" 1>&6 | |
4322 | fi | |
4323 | ||
4324 | ||
4325 | echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6 | |
6f72b082 | 4326 | echo "configure:4327: checking "for --enable-combobox"" >&5 |
10f2d63a VZ |
4327 | no_cache=0 |
4328 | # Check whether --enable-combobox or --disable-combobox was given. | |
4329 | if test "${enable_combobox+set}" = set; then | |
4330 | enableval="$enable_combobox" | |
4331 | ||
4332 | if test "$enableval" = yes; then | |
4333 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
4334 | else | |
4335 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
4336 | fi | |
4337 | ||
4338 | else | |
4339 | ||
4340 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
4341 | if test "x$LINE" != x ; then | |
4342 | eval "DEFAULT_$LINE" | |
4343 | else | |
4344 | no_cache=1 | |
4345 | fi | |
4346 | ||
4347 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
4348 | ||
4349 | fi | |
4350 | ||
4351 | ||
4352 | eval "$ac_cv_use_combobox" | |
4353 | if test "$no_cache" != 1; then | |
4354 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
4355 | fi | |
4356 | ||
4357 | if test "$wxUSE_COMBOBOX" = yes; then | |
4358 | echo "$ac_t""yes" 1>&6 | |
4359 | else | |
4360 | echo "$ac_t""no" 1>&6 | |
4361 | fi | |
4362 | ||
4363 | ||
4364 | echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6 | |
6f72b082 | 4365 | echo "configure:4366: checking "for --enable-gauge"" >&5 |
10f2d63a VZ |
4366 | no_cache=0 |
4367 | # Check whether --enable-gauge or --disable-gauge was given. | |
4368 | if test "${enable_gauge+set}" = set; then | |
4369 | enableval="$enable_gauge" | |
4370 | ||
4371 | if test "$enableval" = yes; then | |
4372 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
4373 | else | |
4374 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
4375 | fi | |
4376 | ||
4377 | else | |
4378 | ||
4379 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
4380 | if test "x$LINE" != x ; then | |
4381 | eval "DEFAULT_$LINE" | |
4382 | else | |
4383 | no_cache=1 | |
4384 | fi | |
4385 | ||
4386 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
4387 | ||
4388 | fi | |
4389 | ||
4390 | ||
4391 | eval "$ac_cv_use_gauge" | |
4392 | if test "$no_cache" != 1; then | |
4393 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
4394 | fi | |
4395 | ||
4396 | if test "$wxUSE_GAUGE" = yes; then | |
4397 | echo "$ac_t""yes" 1>&6 | |
4398 | else | |
4399 | echo "$ac_t""no" 1>&6 | |
4400 | fi | |
4401 | ||
4402 | ||
4403 | echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6 | |
6f72b082 | 4404 | echo "configure:4405: checking "for --enable-grid"" >&5 |
10f2d63a VZ |
4405 | no_cache=0 |
4406 | # Check whether --enable-grid or --disable-grid was given. | |
4407 | if test "${enable_grid+set}" = set; then | |
4408 | enableval="$enable_grid" | |
4409 | ||
4410 | if test "$enableval" = yes; then | |
4411 | ac_cv_use_grid='wxUSE_GRID=yes' | |
4412 | else | |
4413 | ac_cv_use_grid='wxUSE_GRID=no' | |
4414 | fi | |
4415 | ||
4416 | else | |
4417 | ||
4418 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
4419 | if test "x$LINE" != x ; then | |
4420 | eval "DEFAULT_$LINE" | |
4421 | else | |
4422 | no_cache=1 | |
4423 | fi | |
4424 | ||
4425 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
4426 | ||
4427 | fi | |
4428 | ||
4429 | ||
4430 | eval "$ac_cv_use_grid" | |
4431 | if test "$no_cache" != 1; then | |
4432 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
4433 | fi | |
4434 | ||
4435 | if test "$wxUSE_GRID" = yes; then | |
4436 | echo "$ac_t""yes" 1>&6 | |
4437 | else | |
4438 | echo "$ac_t""no" 1>&6 | |
4439 | fi | |
4440 | ||
4441 | ||
4442 | echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6 | |
6f72b082 | 4443 | echo "configure:4444: checking "for --enable-newgrid"" >&5 |
10f2d63a VZ |
4444 | no_cache=0 |
4445 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
4446 | if test "${enable_newgrid+set}" = set; then | |
4447 | enableval="$enable_newgrid" | |
4448 | ||
4449 | if test "$enableval" = yes; then | |
4450 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
4451 | else | |
4452 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
4453 | fi | |
4454 | ||
4455 | else | |
4456 | ||
4457 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` | |
4458 | if test "x$LINE" != x ; then | |
4459 | eval "DEFAULT_$LINE" | |
4460 | else | |
4461 | no_cache=1 | |
4462 | fi | |
4463 | ||
4464 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
4465 | ||
4466 | fi | |
4467 | ||
4468 | ||
4469 | eval "$ac_cv_use_newgrid" | |
4470 | if test "$no_cache" != 1; then | |
4471 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
4472 | fi | |
4473 | ||
4474 | if test "$wxUSE_NEW_GRID" = yes; then | |
4475 | echo "$ac_t""yes" 1>&6 | |
4476 | else | |
4477 | echo "$ac_t""no" 1>&6 | |
4478 | fi | |
4479 | ||
4480 | ||
4481 | echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6 | |
6f72b082 | 4482 | echo "configure:4483: checking "for --enable-imaglist"" >&5 |
10f2d63a VZ |
4483 | no_cache=0 |
4484 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
4485 | if test "${enable_imaglist+set}" = set; then | |
4486 | enableval="$enable_imaglist" | |
4487 | ||
4488 | if test "$enableval" = yes; then | |
4489 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
4490 | else | |
4491 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
4492 | fi | |
4493 | ||
4494 | else | |
4495 | ||
4496 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
4497 | if test "x$LINE" != x ; then | |
4498 | eval "DEFAULT_$LINE" | |
4499 | else | |
4500 | no_cache=1 | |
4501 | fi | |
4502 | ||
4503 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
4504 | ||
4505 | fi | |
4506 | ||
4507 | ||
4508 | eval "$ac_cv_use_imaglist" | |
4509 | if test "$no_cache" != 1; then | |
4510 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
4511 | fi | |
4512 | ||
4513 | if test "$wxUSE_IMAGLIST" = yes; then | |
4514 | echo "$ac_t""yes" 1>&6 | |
4515 | else | |
4516 | echo "$ac_t""no" 1>&6 | |
4517 | fi | |
4518 | ||
4519 | ||
4520 | echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6 | |
6f72b082 | 4521 | echo "configure:4522: checking "for --enable-listbox"" >&5 |
10f2d63a VZ |
4522 | no_cache=0 |
4523 | # Check whether --enable-listbox or --disable-listbox was given. | |
4524 | if test "${enable_listbox+set}" = set; then | |
4525 | enableval="$enable_listbox" | |
4526 | ||
4527 | if test "$enableval" = yes; then | |
4528 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
4529 | else | |
4530 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
4531 | fi | |
4532 | ||
4533 | else | |
4534 | ||
4535 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
4536 | if test "x$LINE" != x ; then | |
4537 | eval "DEFAULT_$LINE" | |
4538 | else | |
4539 | no_cache=1 | |
4540 | fi | |
4541 | ||
4542 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
4543 | ||
4544 | fi | |
4545 | ||
4546 | ||
4547 | eval "$ac_cv_use_listbox" | |
4548 | if test "$no_cache" != 1; then | |
4549 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
4550 | fi | |
4551 | ||
4552 | if test "$wxUSE_LISTBOX" = yes; then | |
4553 | echo "$ac_t""yes" 1>&6 | |
4554 | else | |
4555 | echo "$ac_t""no" 1>&6 | |
4556 | fi | |
4557 | ||
4558 | ||
4559 | echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6 | |
6f72b082 | 4560 | echo "configure:4561: checking "for --enable-listctrl"" >&5 |
10f2d63a VZ |
4561 | no_cache=0 |
4562 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
4563 | if test "${enable_listctrl+set}" = set; then | |
4564 | enableval="$enable_listctrl" | |
4565 | ||
4566 | if test "$enableval" = yes; then | |
4567 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
4568 | else | |
4569 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
4570 | fi | |
4571 | ||
4572 | else | |
4573 | ||
4574 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
4575 | if test "x$LINE" != x ; then | |
4576 | eval "DEFAULT_$LINE" | |
4577 | else | |
4578 | no_cache=1 | |
4579 | fi | |
4580 | ||
4581 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
4582 | ||
4583 | fi | |
4584 | ||
4585 | ||
4586 | eval "$ac_cv_use_listctrl" | |
4587 | if test "$no_cache" != 1; then | |
4588 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
4589 | fi | |
4590 | ||
4591 | if test "$wxUSE_LISTCTRL" = yes; then | |
4592 | echo "$ac_t""yes" 1>&6 | |
4593 | else | |
4594 | echo "$ac_t""no" 1>&6 | |
4595 | fi | |
4596 | ||
4597 | ||
4598 | echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6 | |
6f72b082 | 4599 | echo "configure:4600: checking "for --enable-notebook"" >&5 |
10f2d63a VZ |
4600 | no_cache=0 |
4601 | # Check whether --enable-notebook or --disable-notebook was given. | |
4602 | if test "${enable_notebook+set}" = set; then | |
4603 | enableval="$enable_notebook" | |
4604 | ||
4605 | if test "$enableval" = yes; then | |
4606 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
4607 | else | |
4608 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
4609 | fi | |
4610 | ||
4611 | else | |
4612 | ||
4613 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
4614 | if test "x$LINE" != x ; then | |
4615 | eval "DEFAULT_$LINE" | |
4616 | else | |
4617 | no_cache=1 | |
4618 | fi | |
4619 | ||
4620 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
4621 | ||
4622 | fi | |
4623 | ||
4624 | ||
4625 | eval "$ac_cv_use_notebook" | |
4626 | if test "$no_cache" != 1; then | |
4627 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
4628 | fi | |
4629 | ||
4630 | if test "$wxUSE_NOTEBOOK" = yes; then | |
4631 | echo "$ac_t""yes" 1>&6 | |
4632 | else | |
4633 | echo "$ac_t""no" 1>&6 | |
4634 | fi | |
4635 | ||
4636 | ||
4637 | echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6 | |
6f72b082 | 4638 | echo "configure:4639: checking "for --enable-radiobox"" >&5 |
10f2d63a VZ |
4639 | no_cache=0 |
4640 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
4641 | if test "${enable_radiobox+set}" = set; then | |
4642 | enableval="$enable_radiobox" | |
4643 | ||
4644 | if test "$enableval" = yes; then | |
4645 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
4646 | else | |
4647 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
4648 | fi | |
4649 | ||
4650 | else | |
4651 | ||
4652 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
4653 | if test "x$LINE" != x ; then | |
4654 | eval "DEFAULT_$LINE" | |
4655 | else | |
4656 | no_cache=1 | |
4657 | fi | |
4658 | ||
4659 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
4660 | ||
4661 | fi | |
4662 | ||
4663 | ||
4664 | eval "$ac_cv_use_radiobox" | |
4665 | if test "$no_cache" != 1; then | |
4666 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
4667 | fi | |
4668 | ||
4669 | if test "$wxUSE_RADIOBOX" = yes; then | |
4670 | echo "$ac_t""yes" 1>&6 | |
4671 | else | |
4672 | echo "$ac_t""no" 1>&6 | |
4673 | fi | |
4674 | ||
4675 | ||
4676 | echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6 | |
6f72b082 | 4677 | echo "configure:4678: checking "for --enable-radiobtn"" >&5 |
10f2d63a VZ |
4678 | no_cache=0 |
4679 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
4680 | if test "${enable_radiobtn+set}" = set; then | |
4681 | enableval="$enable_radiobtn" | |
4682 | ||
4683 | if test "$enableval" = yes; then | |
4684 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
4685 | else | |
4686 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
4687 | fi | |
4688 | ||
4689 | else | |
4690 | ||
4691 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
4692 | if test "x$LINE" != x ; then | |
4693 | eval "DEFAULT_$LINE" | |
4694 | else | |
4695 | no_cache=1 | |
4696 | fi | |
4697 | ||
4698 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
4699 | ||
4700 | fi | |
4701 | ||
4702 | ||
4703 | eval "$ac_cv_use_radiobtn" | |
4704 | if test "$no_cache" != 1; then | |
4705 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
4706 | fi | |
4707 | ||
4708 | if test "$wxUSE_RADIOBTN" = yes; then | |
4709 | echo "$ac_t""yes" 1>&6 | |
4710 | else | |
4711 | echo "$ac_t""no" 1>&6 | |
4712 | fi | |
4713 | ||
4714 | ||
4715 | echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6 | |
6f72b082 | 4716 | echo "configure:4717: checking "for --enable-sash"" >&5 |
10f2d63a VZ |
4717 | no_cache=0 |
4718 | # Check whether --enable-sash or --disable-sash was given. | |
4719 | if test "${enable_sash+set}" = set; then | |
4720 | enableval="$enable_sash" | |
4721 | ||
4722 | if test "$enableval" = yes; then | |
4723 | ac_cv_use_sash='wxUSE_SASH=yes' | |
4724 | else | |
4725 | ac_cv_use_sash='wxUSE_SASH=no' | |
4726 | fi | |
4727 | ||
4728 | else | |
4729 | ||
4730 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
4731 | if test "x$LINE" != x ; then | |
4732 | eval "DEFAULT_$LINE" | |
4733 | else | |
4734 | no_cache=1 | |
4735 | fi | |
4736 | ||
4737 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
4738 | ||
4739 | fi | |
4740 | ||
4741 | ||
4742 | eval "$ac_cv_use_sash" | |
4743 | if test "$no_cache" != 1; then | |
4744 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
4745 | fi | |
4746 | ||
4747 | if test "$wxUSE_SASH" = yes; then | |
4748 | echo "$ac_t""yes" 1>&6 | |
4749 | else | |
4750 | echo "$ac_t""no" 1>&6 | |
4751 | fi | |
4752 | ||
4753 | ||
4754 | echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6 | |
6f72b082 | 4755 | echo "configure:4756: checking "for --enable-scrollbar"" >&5 |
10f2d63a VZ |
4756 | no_cache=0 |
4757 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
4758 | if test "${enable_scrollbar+set}" = set; then | |
4759 | enableval="$enable_scrollbar" | |
4760 | ||
4761 | if test "$enableval" = yes; then | |
4762 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
4763 | else | |
4764 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
4765 | fi | |
4766 | ||
4767 | else | |
4768 | ||
4769 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
4770 | if test "x$LINE" != x ; then | |
4771 | eval "DEFAULT_$LINE" | |
4772 | else | |
4773 | no_cache=1 | |
4774 | fi | |
4775 | ||
4776 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
4777 | ||
4778 | fi | |
4779 | ||
4780 | ||
4781 | eval "$ac_cv_use_scrollbar" | |
4782 | if test "$no_cache" != 1; then | |
4783 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
4784 | fi | |
4785 | ||
4786 | if test "$wxUSE_SCROLLBAR" = yes; then | |
4787 | echo "$ac_t""yes" 1>&6 | |
4788 | else | |
4789 | echo "$ac_t""no" 1>&6 | |
4790 | fi | |
4791 | ||
4792 | ||
4793 | echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6 | |
6f72b082 | 4794 | echo "configure:4795: checking "for --enable-slider"" >&5 |
10f2d63a VZ |
4795 | no_cache=0 |
4796 | # Check whether --enable-slider or --disable-slider was given. | |
4797 | if test "${enable_slider+set}" = set; then | |
4798 | enableval="$enable_slider" | |
4799 | ||
4800 | if test "$enableval" = yes; then | |
4801 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
4802 | else | |
4803 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
4804 | fi | |
4805 | ||
4806 | else | |
4807 | ||
4808 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
4809 | if test "x$LINE" != x ; then | |
4810 | eval "DEFAULT_$LINE" | |
4811 | else | |
4812 | no_cache=1 | |
4813 | fi | |
4814 | ||
4815 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
4816 | ||
4817 | fi | |
4818 | ||
4819 | ||
4820 | eval "$ac_cv_use_slider" | |
4821 | if test "$no_cache" != 1; then | |
4822 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
4823 | fi | |
4824 | ||
4825 | if test "$wxUSE_SLIDER" = yes; then | |
4826 | echo "$ac_t""yes" 1>&6 | |
4827 | else | |
4828 | echo "$ac_t""no" 1>&6 | |
4829 | fi | |
4830 | ||
4831 | ||
4832 | echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6 | |
6f72b082 | 4833 | echo "configure:4834: checking "for --enable-spinbtn"" >&5 |
10f2d63a VZ |
4834 | no_cache=0 |
4835 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
4836 | if test "${enable_spinbtn+set}" = set; then | |
4837 | enableval="$enable_spinbtn" | |
4838 | ||
4839 | if test "$enableval" = yes; then | |
4840 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
4841 | else | |
4842 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
4843 | fi | |
4844 | ||
4845 | else | |
4846 | ||
4847 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
4848 | if test "x$LINE" != x ; then | |
4849 | eval "DEFAULT_$LINE" | |
4850 | else | |
4851 | no_cache=1 | |
4852 | fi | |
4853 | ||
4854 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
4855 | ||
4856 | fi | |
4857 | ||
4858 | ||
4859 | eval "$ac_cv_use_spinbtn" | |
4860 | if test "$no_cache" != 1; then | |
4861 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
4862 | fi | |
4863 | ||
4864 | if test "$wxUSE_SPINBTN" = yes; then | |
4865 | echo "$ac_t""yes" 1>&6 | |
4866 | else | |
4867 | echo "$ac_t""no" 1>&6 | |
4868 | fi | |
4869 | ||
4870 | ||
56cfaa52 | 4871 | echo $ac_n "checking "for --enable-spinctrl"""... $ac_c" 1>&6 |
6f72b082 | 4872 | echo "configure:4873: checking "for --enable-spinctrl"" >&5 |
56cfaa52 RR |
4873 | no_cache=0 |
4874 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
4875 | if test "${enable_spinctrl+set}" = set; then | |
4876 | enableval="$enable_spinctrl" | |
4877 | ||
4878 | if test "$enableval" = yes; then | |
4879 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
4880 | else | |
4881 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
4882 | fi | |
4883 | ||
4884 | else | |
4885 | ||
4886 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
4887 | if test "x$LINE" != x ; then | |
4888 | eval "DEFAULT_$LINE" | |
4889 | else | |
4890 | no_cache=1 | |
4891 | fi | |
4892 | ||
4893 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
4894 | ||
4895 | fi | |
4896 | ||
4897 | ||
4898 | eval "$ac_cv_use_spinctrl" | |
4899 | if test "$no_cache" != 1; then | |
4900 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
4901 | fi | |
4902 | ||
4903 | if test "$wxUSE_SPINCTRL" = yes; then | |
4904 | echo "$ac_t""yes" 1>&6 | |
4905 | else | |
4906 | echo "$ac_t""no" 1>&6 | |
4907 | fi | |
4908 | ||
4909 | ||
10f2d63a | 4910 | echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6 |
6f72b082 | 4911 | echo "configure:4912: checking "for --enable-splitter"" >&5 |
10f2d63a VZ |
4912 | no_cache=0 |
4913 | # Check whether --enable-splitter or --disable-splitter was given. | |
4914 | if test "${enable_splitter+set}" = set; then | |
4915 | enableval="$enable_splitter" | |
4916 | ||
4917 | if test "$enableval" = yes; then | |
4918 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
4919 | else | |
4920 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
4921 | fi | |
4922 | ||
4923 | else | |
4924 | ||
4925 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
4926 | if test "x$LINE" != x ; then | |
4927 | eval "DEFAULT_$LINE" | |
4928 | else | |
4929 | no_cache=1 | |
4930 | fi | |
4931 | ||
4932 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
4933 | ||
4934 | fi | |
4935 | ||
4936 | ||
4937 | eval "$ac_cv_use_splitter" | |
4938 | if test "$no_cache" != 1; then | |
4939 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
4940 | fi | |
4941 | ||
4942 | if test "$wxUSE_SPLITTER" = yes; then | |
4943 | echo "$ac_t""yes" 1>&6 | |
4944 | else | |
4945 | echo "$ac_t""no" 1>&6 | |
4946 | fi | |
4947 | ||
4948 | ||
4949 | echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6 | |
6f72b082 | 4950 | echo "configure:4951: checking "for --enable-statbmp"" >&5 |
10f2d63a VZ |
4951 | no_cache=0 |
4952 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
4953 | if test "${enable_statbmp+set}" = set; then | |
4954 | enableval="$enable_statbmp" | |
4955 | ||
4956 | if test "$enableval" = yes; then | |
4957 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
4958 | else | |
4959 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
4960 | fi | |
4961 | ||
4962 | else | |
4963 | ||
4964 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
4965 | if test "x$LINE" != x ; then | |
4966 | eval "DEFAULT_$LINE" | |
4967 | else | |
4968 | no_cache=1 | |
4969 | fi | |
4970 | ||
4971 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
4972 | ||
4973 | fi | |
4974 | ||
4975 | ||
4976 | eval "$ac_cv_use_statbmp" | |
4977 | if test "$no_cache" != 1; then | |
4978 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
4979 | fi | |
4980 | ||
4981 | if test "$wxUSE_STATBMP" = yes; then | |
4982 | echo "$ac_t""yes" 1>&6 | |
4983 | else | |
4984 | echo "$ac_t""no" 1>&6 | |
4985 | fi | |
4986 | ||
4987 | ||
4988 | echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6 | |
6f72b082 | 4989 | echo "configure:4990: checking "for --enable-statbox"" >&5 |
10f2d63a VZ |
4990 | no_cache=0 |
4991 | # Check whether --enable-statbox or --disable-statbox was given. | |
4992 | if test "${enable_statbox+set}" = set; then | |
4993 | enableval="$enable_statbox" | |
4994 | ||
4995 | if test "$enableval" = yes; then | |
4996 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
4997 | else | |
4998 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
4999 | fi | |
5000 | ||
5001 | else | |
5002 | ||
5003 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
5004 | if test "x$LINE" != x ; then | |
5005 | eval "DEFAULT_$LINE" | |
5006 | else | |
5007 | no_cache=1 | |
5008 | fi | |
5009 | ||
5010 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
5011 | ||
5012 | fi | |
5013 | ||
5014 | ||
5015 | eval "$ac_cv_use_statbox" | |
5016 | if test "$no_cache" != 1; then | |
5017 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
5018 | fi | |
5019 | ||
5020 | if test "$wxUSE_STATBOX" = yes; then | |
5021 | echo "$ac_t""yes" 1>&6 | |
5022 | else | |
5023 | echo "$ac_t""no" 1>&6 | |
5024 | fi | |
5025 | ||
5026 | ||
5027 | echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6 | |
6f72b082 | 5028 | echo "configure:5029: checking "for --enable-statline"" >&5 |
10f2d63a VZ |
5029 | no_cache=0 |
5030 | # Check whether --enable-statline or --disable-statline was given. | |
5031 | if test "${enable_statline+set}" = set; then | |
5032 | enableval="$enable_statline" | |
5033 | ||
5034 | if test "$enableval" = yes; then | |
5035 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
5036 | else | |
5037 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
5038 | fi | |
5039 | ||
5040 | else | |
5041 | ||
5042 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
5043 | if test "x$LINE" != x ; then | |
5044 | eval "DEFAULT_$LINE" | |
5045 | else | |
5046 | no_cache=1 | |
5047 | fi | |
5048 | ||
5049 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
5050 | ||
5051 | fi | |
5052 | ||
5053 | ||
5054 | eval "$ac_cv_use_statline" | |
5055 | if test "$no_cache" != 1; then | |
5056 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
5057 | fi | |
5058 | ||
5059 | if test "$wxUSE_STATLINE" = yes; then | |
5060 | echo "$ac_t""yes" 1>&6 | |
5061 | else | |
5062 | echo "$ac_t""no" 1>&6 | |
5063 | fi | |
5064 | ||
5065 | ||
5066 | echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6 | |
6f72b082 | 5067 | echo "configure:5068: checking "for --enable-statusbar"" >&5 |
10f2d63a VZ |
5068 | no_cache=0 |
5069 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
5070 | if test "${enable_statusbar+set}" = set; then | |
5071 | enableval="$enable_statusbar" | |
5072 | ||
5073 | if test "$enableval" = yes; then | |
5074 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
5075 | else | |
5076 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
5077 | fi | |
5078 | ||
5079 | else | |
5080 | ||
5081 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
5082 | if test "x$LINE" != x ; then | |
5083 | eval "DEFAULT_$LINE" | |
5084 | else | |
5085 | no_cache=1 | |
5086 | fi | |
5087 | ||
5088 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
5089 | ||
5090 | fi | |
5091 | ||
5092 | ||
5093 | eval "$ac_cv_use_statusbar" | |
5094 | if test "$no_cache" != 1; then | |
5095 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
5096 | fi | |
5097 | ||
5098 | if test "$wxUSE_STATUSBAR" = yes; then | |
5099 | echo "$ac_t""yes" 1>&6 | |
5100 | else | |
5101 | echo "$ac_t""no" 1>&6 | |
5102 | fi | |
5103 | ||
5104 | ||
5105 | echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6 | |
6f72b082 | 5106 | echo "configure:5107: checking "for --enable-tabdialog"" >&5 |
10f2d63a VZ |
5107 | no_cache=0 |
5108 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
5109 | if test "${enable_tabdialog+set}" = set; then | |
5110 | enableval="$enable_tabdialog" | |
5111 | ||
5112 | if test "$enableval" = yes; then | |
5113 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
5114 | else | |
5115 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
5116 | fi | |
5117 | ||
5118 | else | |
5119 | ||
5120 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
5121 | if test "x$LINE" != x ; then | |
5122 | eval "DEFAULT_$LINE" | |
5123 | else | |
5124 | no_cache=1 | |
5125 | fi | |
5126 | ||
5127 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
5128 | ||
5129 | fi | |
5130 | ||
5131 | ||
5132 | eval "$ac_cv_use_tabdialog" | |
5133 | if test "$no_cache" != 1; then | |
5134 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
5135 | fi | |
5136 | ||
5137 | if test "$wxUSE_TABDIALOG" = yes; then | |
5138 | echo "$ac_t""yes" 1>&6 | |
5139 | else | |
5140 | echo "$ac_t""no" 1>&6 | |
5141 | fi | |
5142 | ||
5143 | ||
5144 | echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6 | |
6f72b082 | 5145 | echo "configure:5146: checking "for --enable-toolbar"" >&5 |
10f2d63a VZ |
5146 | no_cache=0 |
5147 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
5148 | if test "${enable_toolbar+set}" = set; then | |
5149 | enableval="$enable_toolbar" | |
5150 | ||
5151 | if test "$enableval" = yes; then | |
5152 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
5153 | else | |
5154 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
5155 | fi | |
5156 | ||
5157 | else | |
5158 | ||
5159 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
5160 | if test "x$LINE" != x ; then | |
5161 | eval "DEFAULT_$LINE" | |
5162 | else | |
5163 | no_cache=1 | |
5164 | fi | |
5165 | ||
5166 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
5167 | ||
5168 | fi | |
5169 | ||
5170 | ||
5171 | eval "$ac_cv_use_toolbar" | |
5172 | if test "$no_cache" != 1; then | |
5173 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
5174 | fi | |
5175 | ||
5176 | if test "$wxUSE_TOOLBAR" = yes; then | |
5177 | echo "$ac_t""yes" 1>&6 | |
5178 | else | |
5179 | echo "$ac_t""no" 1>&6 | |
5180 | fi | |
5181 | ||
5182 | ||
360d6699 | 5183 | echo $ac_n "checking "for --enable-tbarnative"""... $ac_c" 1>&6 |
6f72b082 | 5184 | echo "configure:5185: checking "for --enable-tbarnative"" >&5 |
360d6699 VZ |
5185 | no_cache=0 |
5186 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
5187 | if test "${enable_tbarnative+set}" = set; then | |
5188 | enableval="$enable_tbarnative" | |
5189 | ||
5190 | if test "$enableval" = yes; then | |
5191 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
5192 | else | |
5193 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
5194 | fi | |
5195 | ||
5196 | else | |
5197 | ||
5198 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
5199 | if test "x$LINE" != x ; then | |
5200 | eval "DEFAULT_$LINE" | |
5201 | else | |
5202 | no_cache=1 | |
5203 | fi | |
5204 | ||
5205 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
5206 | ||
5207 | fi | |
5208 | ||
5209 | ||
5210 | eval "$ac_cv_use_tbarnative" | |
5211 | if test "$no_cache" != 1; then | |
5212 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
5213 | fi | |
5214 | ||
5215 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
5216 | echo "$ac_t""yes" 1>&6 | |
5217 | else | |
5218 | echo "$ac_t""no" 1>&6 | |
5219 | fi | |
5220 | ||
5221 | ||
5222 | echo $ac_n "checking "for --enable-tbarsmpl"""... $ac_c" 1>&6 | |
6f72b082 | 5223 | echo "configure:5224: checking "for --enable-tbarsmpl"" >&5 |
360d6699 VZ |
5224 | no_cache=0 |
5225 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
5226 | if test "${enable_tbarsmpl+set}" = set; then | |
5227 | enableval="$enable_tbarsmpl" | |
5228 | ||
5229 | if test "$enableval" = yes; then | |
5230 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
5231 | else | |
5232 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
5233 | fi | |
5234 | ||
5235 | else | |
5236 | ||
5237 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
5238 | if test "x$LINE" != x ; then | |
5239 | eval "DEFAULT_$LINE" | |
5240 | else | |
5241 | no_cache=1 | |
5242 | fi | |
5243 | ||
5244 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
5245 | ||
5246 | fi | |
5247 | ||
5248 | ||
5249 | eval "$ac_cv_use_tbarsmpl" | |
5250 | if test "$no_cache" != 1; then | |
5251 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
5252 | fi | |
5253 | ||
5254 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
5255 | echo "$ac_t""yes" 1>&6 | |
5256 | else | |
5257 | echo "$ac_t""no" 1>&6 | |
5258 | fi | |
5259 | ||
5260 | ||
10f2d63a | 5261 | echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6 |
6f72b082 | 5262 | echo "configure:5263: checking "for --enable-treectrl"" >&5 |
10f2d63a VZ |
5263 | no_cache=0 |
5264 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
5265 | if test "${enable_treectrl+set}" = set; then | |
5266 | enableval="$enable_treectrl" | |
5267 | ||
5268 | if test "$enableval" = yes; then | |
5269 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
5270 | else | |
5271 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
5272 | fi | |
5273 | ||
5274 | else | |
5275 | ||
5276 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
5277 | if test "x$LINE" != x ; then | |
5278 | eval "DEFAULT_$LINE" | |
5279 | else | |
5280 | no_cache=1 | |
5281 | fi | |
5282 | ||
5283 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
5284 | ||
5285 | fi | |
5286 | ||
5287 | ||
5288 | eval "$ac_cv_use_treectrl" | |
5289 | if test "$no_cache" != 1; then | |
5290 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
5291 | fi | |
5292 | ||
5293 | if test "$wxUSE_TREECTRL" = yes; then | |
5294 | echo "$ac_t""yes" 1>&6 | |
5295 | else | |
5296 | echo "$ac_t""no" 1>&6 | |
5297 | fi | |
5298 | ||
5299 | ||
5300 | ||
5301 | ||
5302 | echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6 | |
6f72b082 | 5303 | echo "configure:5304: checking "for --enable-commondlg"" >&5 |
10f2d63a VZ |
5304 | no_cache=0 |
5305 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
5306 | if test "${enable_commondlg+set}" = set; then | |
5307 | enableval="$enable_commondlg" | |
5308 | ||
5309 | if test "$enableval" = yes; then | |
5310 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
5311 | else | |
5312 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
5313 | fi | |
5314 | ||
5315 | else | |
5316 | ||
5317 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
5318 | if test "x$LINE" != x ; then | |
5319 | eval "DEFAULT_$LINE" | |
5320 | else | |
5321 | no_cache=1 | |
5322 | fi | |
5323 | ||
5324 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
5325 | ||
5326 | fi | |
5327 | ||
5328 | ||
5329 | eval "$ac_cv_use_commondlg" | |
5330 | if test "$no_cache" != 1; then | |
5331 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
5332 | fi | |
5333 | ||
5334 | if test "$wxUSE_COMMONDLGS" = yes; then | |
5335 | echo "$ac_t""yes" 1>&6 | |
5336 | else | |
5337 | echo "$ac_t""no" 1>&6 | |
5338 | fi | |
5339 | ||
5340 | ||
5341 | echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6 | |
6f72b082 | 5342 | echo "configure:5343: checking "for --enable-dirdlg"" >&5 |
10f2d63a VZ |
5343 | no_cache=0 |
5344 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
5345 | if test "${enable_dirdlg+set}" = set; then | |
5346 | enableval="$enable_dirdlg" | |
5347 | ||
5348 | if test "$enableval" = yes; then | |
5349 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
5350 | else | |
5351 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
5352 | fi | |
5353 | ||
5354 | else | |
5355 | ||
5356 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
5357 | if test "x$LINE" != x ; then | |
5358 | eval "DEFAULT_$LINE" | |
5359 | else | |
5360 | no_cache=1 | |
5361 | fi | |
5362 | ||
5363 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
5364 | ||
5365 | fi | |
5366 | ||
5367 | ||
5368 | eval "$ac_cv_use_dirdlg" | |
5369 | if test "$no_cache" != 1; then | |
5370 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
5371 | fi | |
5372 | ||
5373 | if test "$wxUSE_DIRDLG" = yes; then | |
5374 | echo "$ac_t""yes" 1>&6 | |
5375 | else | |
5376 | echo "$ac_t""no" 1>&6 | |
5377 | fi | |
5378 | ||
5379 | ||
5380 | echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6 | |
6f72b082 | 5381 | echo "configure:5382: checking "for --enable-textdlg"" >&5 |
10f2d63a VZ |
5382 | no_cache=0 |
5383 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
5384 | if test "${enable_textdlg+set}" = set; then | |
5385 | enableval="$enable_textdlg" | |
5386 | ||
5387 | if test "$enableval" = yes; then | |
5388 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
5389 | else | |
5390 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
5391 | fi | |
5392 | ||
5393 | else | |
5394 | ||
5395 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
5396 | if test "x$LINE" != x ; then | |
5397 | eval "DEFAULT_$LINE" | |
5398 | else | |
5399 | no_cache=1 | |
5400 | fi | |
5401 | ||
5402 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
5403 | ||
5404 | fi | |
5405 | ||
5406 | ||
5407 | eval "$ac_cv_use_textdlg" | |
5408 | if test "$no_cache" != 1; then | |
5409 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
5410 | fi | |
5411 | ||
5412 | if test "$wxUSE_TEXTDLG" = yes; then | |
5413 | echo "$ac_t""yes" 1>&6 | |
5414 | else | |
5415 | echo "$ac_t""no" 1>&6 | |
5416 | fi | |
5417 | ||
5418 | ||
5419 | echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6 | |
6f72b082 | 5420 | echo "configure:5421: checking "for --enable-tipdlg"" >&5 |
10f2d63a VZ |
5421 | no_cache=0 |
5422 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
5423 | if test "${enable_tipdlg+set}" = set; then | |
5424 | enableval="$enable_tipdlg" | |
5425 | ||
5426 | if test "$enableval" = yes; then | |
5427 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
5428 | else | |
5429 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
5430 | fi | |
5431 | ||
5432 | else | |
5433 | ||
5434 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
5435 | if test "x$LINE" != x ; then | |
5436 | eval "DEFAULT_$LINE" | |
5437 | else | |
5438 | no_cache=1 | |
5439 | fi | |
5440 | ||
5441 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
5442 | ||
5443 | fi | |
5444 | ||
5445 | ||
5446 | eval "$ac_cv_use_tipdlg" | |
5447 | if test "$no_cache" != 1; then | |
5448 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
5449 | fi | |
5450 | ||
5451 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
5452 | echo "$ac_t""yes" 1>&6 | |
5453 | else | |
5454 | echo "$ac_t""no" 1>&6 | |
5455 | fi | |
5456 | ||
5457 | ||
5458 | echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6 | |
6f72b082 | 5459 | echo "configure:5460: checking "for --enable-progressdlg"" >&5 |
10f2d63a VZ |
5460 | no_cache=0 |
5461 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
5462 | if test "${enable_progressdlg+set}" = set; then | |
5463 | enableval="$enable_progressdlg" | |
5464 | ||
5465 | if test "$enableval" = yes; then | |
5466 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
5467 | else | |
5468 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
5469 | fi | |
5470 | ||
5471 | else | |
5472 | ||
5473 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
5474 | if test "x$LINE" != x ; then | |
5475 | eval "DEFAULT_$LINE" | |
5476 | else | |
5477 | no_cache=1 | |
5478 | fi | |
5479 | ||
5480 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
5481 | ||
5482 | fi | |
5483 | ||
5484 | ||
5485 | eval "$ac_cv_use_progressdlg" | |
5486 | if test "$no_cache" != 1; then | |
5487 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
5488 | fi | |
5489 | ||
5490 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
5491 | echo "$ac_t""yes" 1>&6 | |
5492 | else | |
5493 | echo "$ac_t""no" 1>&6 | |
5494 | fi | |
5495 | ||
5496 | ||
5497 | echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6 | |
6f72b082 | 5498 | echo "configure:5499: checking "for --enable-miniframe"" >&5 |
10f2d63a VZ |
5499 | no_cache=0 |
5500 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
5501 | if test "${enable_miniframe+set}" = set; then | |
5502 | enableval="$enable_miniframe" | |
5503 | ||
5504 | if test "$enableval" = yes; then | |
5505 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
5506 | else | |
5507 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
5508 | fi | |
5509 | ||
5510 | else | |
5511 | ||
5512 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
5513 | if test "x$LINE" != x ; then | |
5514 | eval "DEFAULT_$LINE" | |
5515 | else | |
5516 | no_cache=1 | |
5517 | fi | |
5518 | ||
5519 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
5520 | ||
5521 | fi | |
5522 | ||
5523 | ||
5524 | eval "$ac_cv_use_miniframe" | |
5525 | if test "$no_cache" != 1; then | |
5526 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
5527 | fi | |
5528 | ||
5529 | if test "$wxUSE_MINIFRAME" = yes; then | |
5530 | echo "$ac_t""yes" 1>&6 | |
5531 | else | |
5532 | echo "$ac_t""no" 1>&6 | |
5533 | fi | |
5534 | ||
5535 | ||
5536 | echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6 | |
6f72b082 | 5537 | echo "configure:5538: checking "for --enable-html"" >&5 |
10f2d63a VZ |
5538 | no_cache=0 |
5539 | # Check whether --enable-html or --disable-html was given. | |
5540 | if test "${enable_html+set}" = set; then | |
5541 | enableval="$enable_html" | |
5542 | ||
5543 | if test "$enableval" = yes; then | |
5544 | ac_cv_use_html='wxUSE_HTML=yes' | |
5545 | else | |
5546 | ac_cv_use_html='wxUSE_HTML=no' | |
5547 | fi | |
5548 | ||
5549 | else | |
5550 | ||
5551 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
5552 | if test "x$LINE" != x ; then | |
5553 | eval "DEFAULT_$LINE" | |
5554 | else | |
5555 | no_cache=1 | |
5556 | fi | |
5557 | ||
5558 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
5559 | ||
5560 | fi | |
5561 | ||
5562 | ||
5563 | eval "$ac_cv_use_html" | |
5564 | if test "$no_cache" != 1; then | |
5565 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
5566 | fi | |
5567 | ||
5568 | if test "$wxUSE_HTML" = yes; then | |
5569 | echo "$ac_t""yes" 1>&6 | |
5570 | else | |
5571 | echo "$ac_t""no" 1>&6 | |
5572 | fi | |
5573 | ||
5574 | ||
5575 | echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6 | |
6f72b082 | 5576 | echo "configure:5577: checking "for --enable-tooltips"" >&5 |
10f2d63a VZ |
5577 | no_cache=0 |
5578 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
5579 | if test "${enable_tooltips+set}" = set; then | |
5580 | enableval="$enable_tooltips" | |
5581 | ||
5582 | if test "$enableval" = yes; then | |
5583 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
5584 | else | |
5585 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
5586 | fi | |
5587 | ||
5588 | else | |
5589 | ||
5590 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
5591 | if test "x$LINE" != x ; then | |
5592 | eval "DEFAULT_$LINE" | |
5593 | else | |
5594 | no_cache=1 | |
5595 | fi | |
5596 | ||
5597 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
5598 | ||
5599 | fi | |
5600 | ||
5601 | ||
5602 | eval "$ac_cv_use_tooltips" | |
5603 | if test "$no_cache" != 1; then | |
5604 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
5605 | fi | |
5606 | ||
5607 | if test "$wxUSE_TOOLTIPS" = yes; then | |
5608 | echo "$ac_t""yes" 1>&6 | |
5609 | else | |
5610 | echo "$ac_t""no" 1>&6 | |
5611 | fi | |
5612 | ||
5613 | ||
5614 | echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6 | |
6f72b082 | 5615 | echo "configure:5616: checking "for --enable-splines"" >&5 |
10f2d63a VZ |
5616 | no_cache=0 |
5617 | # Check whether --enable-splines or --disable-splines was given. | |
5618 | if test "${enable_splines+set}" = set; then | |
5619 | enableval="$enable_splines" | |
5620 | ||
5621 | if test "$enableval" = yes; then | |
5622 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
5623 | else | |
5624 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
5625 | fi | |
5626 | ||
5627 | else | |
5628 | ||
5629 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
5630 | if test "x$LINE" != x ; then | |
5631 | eval "DEFAULT_$LINE" | |
5632 | else | |
5633 | no_cache=1 | |
5634 | fi | |
5635 | ||
5636 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
5637 | ||
5638 | fi | |
5639 | ||
5640 | ||
5641 | eval "$ac_cv_use_splines" | |
5642 | if test "$no_cache" != 1; then | |
5643 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
5644 | fi | |
5645 | ||
5646 | if test "$wxUSE_SPLINES" = yes; then | |
5647 | echo "$ac_t""yes" 1>&6 | |
5648 | else | |
5649 | echo "$ac_t""no" 1>&6 | |
5650 | fi | |
5651 | ||
5652 | ||
5653 | echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6 | |
6f72b082 | 5654 | echo "configure:5655: checking "for --enable-validators"" >&5 |
10f2d63a VZ |
5655 | no_cache=0 |
5656 | # Check whether --enable-validators or --disable-validators was given. | |
5657 | if test "${enable_validators+set}" = set; then | |
5658 | enableval="$enable_validators" | |
5659 | ||
5660 | if test "$enableval" = yes; then | |
5661 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
5662 | else | |
5663 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
5664 | fi | |
5665 | ||
5666 | else | |
5667 | ||
5668 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
5669 | if test "x$LINE" != x ; then | |
5670 | eval "DEFAULT_$LINE" | |
5671 | else | |
5672 | no_cache=1 | |
5673 | fi | |
5674 | ||
5675 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
5676 | ||
5677 | fi | |
5678 | ||
5679 | ||
5680 | eval "$ac_cv_use_validators" | |
5681 | if test "$no_cache" != 1; then | |
5682 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
5683 | fi | |
5684 | ||
5685 | if test "$wxUSE_VALIDATORS" = yes; then | |
5686 | echo "$ac_t""yes" 1>&6 | |
5687 | else | |
5688 | echo "$ac_t""no" 1>&6 | |
5689 | fi | |
5690 | ||
5691 | ||
5692 | echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6 | |
6f72b082 | 5693 | echo "configure:5694: checking "for --enable-busyinfo"" >&5 |
10f2d63a VZ |
5694 | no_cache=0 |
5695 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
5696 | if test "${enable_busyinfo+set}" = set; then | |
5697 | enableval="$enable_busyinfo" | |
5698 | ||
5699 | if test "$enableval" = yes; then | |
5700 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
5701 | else | |
5702 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
5703 | fi | |
5704 | ||
5705 | else | |
5706 | ||
5707 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
5708 | if test "x$LINE" != x ; then | |
5709 | eval "DEFAULT_$LINE" | |
5710 | else | |
5711 | no_cache=1 | |
5712 | fi | |
5713 | ||
5714 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
5715 | ||
5716 | fi | |
5717 | ||
5718 | ||
5719 | eval "$ac_cv_use_busyinfo" | |
5720 | if test "$no_cache" != 1; then | |
5721 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
5722 | fi | |
5723 | ||
5724 | if test "$wxUSE_BUSYINFO" = yes; then | |
5725 | echo "$ac_t""yes" 1>&6 | |
5726 | else | |
5727 | echo "$ac_t""no" 1>&6 | |
5728 | fi | |
5729 | ||
5730 | ||
9b33fe02 | 5731 | echo $ac_n "checking "for --enable-plot"""... $ac_c" 1>&6 |
6f72b082 | 5732 | echo "configure:5733: checking "for --enable-plot"" >&5 |
9b33fe02 VZ |
5733 | no_cache=0 |
5734 | # Check whether --enable-plot or --disable-plot was given. | |
5735 | if test "${enable_plot+set}" = set; then | |
5736 | enableval="$enable_plot" | |
5737 | ||
5738 | if test "$enableval" = yes; then | |
5739 | ac_cv_use_plot='wxUSE_PLOT=yes' | |
5740 | else | |
5741 | ac_cv_use_plot='wxUSE_PLOT=no' | |
5742 | fi | |
5743 | ||
5744 | else | |
5745 | ||
5746 | LINE=`grep "wxUSE_PLOT" ${wx_arg_cache_file}` | |
5747 | if test "x$LINE" != x ; then | |
5748 | eval "DEFAULT_$LINE" | |
5749 | else | |
5750 | no_cache=1 | |
5751 | fi | |
5752 | ||
5753 | ac_cv_use_plot='wxUSE_PLOT='$DEFAULT_wxUSE_PLOT | |
5754 | ||
5755 | fi | |
5756 | ||
5757 | ||
5758 | eval "$ac_cv_use_plot" | |
5759 | if test "$no_cache" != 1; then | |
5760 | echo $ac_cv_use_plot >> ${wx_arg_cache_file}.tmp | |
5761 | fi | |
5762 | ||
5763 | if test "$wxUSE_PLOT" = yes; then | |
5764 | echo "$ac_t""yes" 1>&6 | |
5765 | else | |
5766 | echo "$ac_t""no" 1>&6 | |
5767 | fi | |
5768 | ||
5769 | ||
f6bcfd97 | 5770 | echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6 |
6f72b082 | 5771 | echo "configure:5772: checking "for --enable-joystick"" >&5 |
f6bcfd97 BP |
5772 | no_cache=0 |
5773 | # Check whether --enable-joystick or --disable-joystick was given. | |
5774 | if test "${enable_joystick+set}" = set; then | |
5775 | enableval="$enable_joystick" | |
5776 | ||
5777 | if test "$enableval" = yes; then | |
5778 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
5779 | else | |
5780 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
5781 | fi | |
5782 | ||
5783 | else | |
5784 | ||
5785 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
5786 | if test "x$LINE" != x ; then | |
5787 | eval "DEFAULT_$LINE" | |
5788 | else | |
5789 | no_cache=1 | |
5790 | fi | |
5791 | ||
5792 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
5793 | ||
5794 | fi | |
5795 | ||
5796 | ||
5797 | eval "$ac_cv_use_joystick" | |
5798 | if test "$no_cache" != 1; then | |
5799 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
5800 | fi | |
5801 | ||
5802 | if test "$wxUSE_JOYSTICK" = yes; then | |
5803 | echo "$ac_t""yes" 1>&6 | |
5804 | else | |
5805 | echo "$ac_t""no" 1>&6 | |
5806 | fi | |
5807 | ||
5808 | ||
10f2d63a VZ |
5809 | |
5810 | ||
5811 | echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6 | |
6f72b082 | 5812 | echo "configure:5813: checking "for --enable-gif"" >&5 |
10f2d63a VZ |
5813 | no_cache=0 |
5814 | # Check whether --enable-gif or --disable-gif was given. | |
5815 | if test "${enable_gif+set}" = set; then | |
5816 | enableval="$enable_gif" | |
5817 | ||
5818 | if test "$enableval" = yes; then | |
5819 | ac_cv_use_gif='wxUSE_GIF=yes' | |
5820 | else | |
5821 | ac_cv_use_gif='wxUSE_GIF=no' | |
5822 | fi | |
5823 | ||
5824 | else | |
5825 | ||
5826 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
5827 | if test "x$LINE" != x ; then | |
5828 | eval "DEFAULT_$LINE" | |
5829 | else | |
5830 | no_cache=1 | |
5831 | fi | |
5832 | ||
5833 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
5834 | ||
5835 | fi | |
5836 | ||
5837 | ||
5838 | eval "$ac_cv_use_gif" | |
5839 | if test "$no_cache" != 1; then | |
5840 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
5841 | fi | |
5842 | ||
5843 | if test "$wxUSE_GIF" = yes; then | |
5844 | echo "$ac_t""yes" 1>&6 | |
5845 | else | |
5846 | echo "$ac_t""no" 1>&6 | |
5847 | fi | |
5848 | ||
5849 | ||
5850 | echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6 | |
6f72b082 | 5851 | echo "configure:5852: checking "for --enable-pcx"" >&5 |
10f2d63a VZ |
5852 | no_cache=0 |
5853 | # Check whether --enable-pcx or --disable-pcx was given. | |
5854 | if test "${enable_pcx+set}" = set; then | |
5855 | enableval="$enable_pcx" | |
5856 | ||
5857 | if test "$enableval" = yes; then | |
5858 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
5859 | else | |
5860 | ac_cv_use_pcx='wxUSE_PCX=no' | |
5861 | fi | |
5862 | ||
5863 | else | |
5864 | ||
5865 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
5866 | if test "x$LINE" != x ; then | |
5867 | eval "DEFAULT_$LINE" | |
5868 | else | |
5869 | no_cache=1 | |
5870 | fi | |
5871 | ||
5872 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
5873 | ||
5874 | fi | |
5875 | ||
5876 | ||
5877 | eval "$ac_cv_use_pcx" | |
5878 | if test "$no_cache" != 1; then | |
5879 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
5880 | fi | |
5881 | ||
5882 | if test "$wxUSE_PCX" = yes; then | |
5883 | echo "$ac_t""yes" 1>&6 | |
5884 | else | |
5885 | echo "$ac_t""no" 1>&6 | |
5886 | fi | |
5887 | ||
5888 | ||
5889 | echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6 | |
6f72b082 | 5890 | echo "configure:5891: checking "for --enable-pnm"" >&5 |
10f2d63a VZ |
5891 | no_cache=0 |
5892 | # Check whether --enable-pnm or --disable-pnm was given. | |
5893 | if test "${enable_pnm+set}" = set; then | |
5894 | enableval="$enable_pnm" | |
5895 | ||
5896 | if test "$enableval" = yes; then | |
5897 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
5898 | else | |
5899 | ac_cv_use_pnm='wxUSE_PNM=no' | |
5900 | fi | |
5901 | ||
5902 | else | |
5903 | ||
5904 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
5905 | if test "x$LINE" != x ; then | |
5906 | eval "DEFAULT_$LINE" | |
5907 | else | |
5908 | no_cache=1 | |
5909 | fi | |
5910 | ||
5911 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
5912 | ||
5913 | fi | |
5914 | ||
5915 | ||
5916 | eval "$ac_cv_use_pnm" | |
5917 | if test "$no_cache" != 1; then | |
5918 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
5919 | fi | |
5920 | ||
5921 | if test "$wxUSE_PNM" = yes; then | |
5922 | echo "$ac_t""yes" 1>&6 | |
5923 | else | |
5924 | echo "$ac_t""no" 1>&6 | |
5925 | fi | |
5926 | ||
5927 | ||
b12915c1 VZ |
5928 | fi |
5929 | ||
10f2d63a VZ |
5930 | |
5931 | echo "saving argument cache $wx_arg_cache_file" | |
5932 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
5933 | ||
5934 | ||
5935 | ||
5936 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
6f72b082 | 5937 | echo "configure:5938: checking for toolkit" >&5 |
10f2d63a VZ |
5938 | |
5939 | if test "$wxUSE_GUI" = "yes"; then | |
5940 | ||
b12915c1 VZ |
5941 | if test "$USE_BEOS" = 1; then |
5942 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } | |
5943 | fi | |
5944 | ||
10f2d63a VZ |
5945 | if test "$TOOLKIT_GIVEN" = 1; then |
5946 | for toolkit in `echo $ALL_TOOLKITS`; do | |
5947 | var=wxUSE_$toolkit | |
5948 | eval "value=\$${var}" | |
5949 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
5950 | done | |
5951 | else | |
5952 | for toolkit in `echo $ALL_TOOLKITS`; do | |
5953 | if test "$has_toolkit_in_cache" != 1; then | |
5954 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
5955 | else | |
5956 | var=DEFAULT_wxUSE_$toolkit | |
5957 | fi | |
5958 | eval "wxUSE_$toolkit=\$${var}" | |
5959 | done | |
5960 | fi | |
5961 | ||
ec14dd32 | 5962 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}` |
cf27ef00 | 5963 | |
ec14dd32 VZ |
5964 | case "${host}" in |
5965 | *-pc-os2_emx ) | |
5966 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
5967 | # PATH_IFS is autodetected by OS/2's configure (usually ';') | |
5968 | LEX_STEM="lexyy" | |
5969 | ;; | |
5970 | *) | |
5971 | PATH_IFS=':' | |
5972 | LEX_STEM="lex.yy" | |
5973 | ;; | |
5974 | esac | |
10f2d63a VZ |
5975 | |
5976 | case "$NUM_TOOLKITS" in | |
5977 | 1) | |
5978 | ;; | |
5979 | 0) | |
5980 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } | |
5981 | ;; | |
5982 | *) | |
5983 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } | |
5984 | esac | |
5985 | ||
5986 | for toolkit in `echo $ALL_TOOLKITS`; do | |
5987 | var=wxUSE_$toolkit | |
5988 | eval "value=\$${var}" | |
5989 | if test "x$value" != x; then | |
5990 | cache_var=CACHE_$toolkit | |
5991 | eval "cache=\$${cache_var}" | |
5992 | if test "$cache" = 1; then | |
5993 | echo "$var=$value" >> ${wx_arg_cache_file} | |
5994 | fi | |
5995 | if test "$value" = 1; then | |
5996 | echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6 | |
5997 | fi | |
5998 | fi | |
5999 | done | |
6000 | ||
6001 | else | |
cf27ef00 | 6002 | PATH_IFS=':' |
10f2d63a VZ |
6003 | echo "$ac_t""base only" 1>&6 |
6004 | fi | |
6005 | ||
6006 | ||
6007 | cat > confcache <<\EOF | |
6008 | # This file is a shell script that caches the results of configure | |
6009 | # tests run on this system so they can be shared between configure | |
6010 | # scripts and configure runs. It is not useful on other systems. | |
6011 | # If it contains results you don't want to keep, you may remove or edit it. | |
6012 | # | |
6013 | # By default, configure uses ./config.cache as the cache file, | |
6014 | # creating it if it does not exist already. You can give configure | |
6015 | # the --cache-file=FILE option to use a different cache file; that is | |
6016 | # what configure does when it calls configure scripts in | |
6017 | # subdirectories, so they share the cache. | |
6018 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
6019 | # config.status only pays attention to the cache file if you give it the | |
6020 | # --recheck option to rerun configure. | |
6021 | # | |
6022 | EOF | |
6023 | # The following way of writing the cache mishandles newlines in values, | |
6024 | # but we know of no workaround that is simple, portable, and efficient. | |
6025 | # So, don't put newlines in cache variables' values. | |
6026 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
6027 | # and sets the high bit in the cache file unless we assign to the vars. | |
6028 | (set) 2>&1 | | |
6029 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
6030 | *ac_space=\ *) | |
6031 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
6032 | # turns \\\\ into \\, and sed turns \\ into \). | |
6033 | sed -n \ | |
6034 | -e "s/'/'\\\\''/g" \ | |
6035 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
6036 | ;; | |
6037 | *) | |
6038 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
6039 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
6040 | ;; | |
6041 | esac >> confcache | |
6042 | if cmp -s $cache_file confcache; then | |
6043 | : | |
6044 | else | |
6045 | if test -w $cache_file; then | |
6046 | echo "updating cache $cache_file" | |
6047 | cat confcache > $cache_file | |
6048 | else | |
6049 | echo "not updating unwritable cache $cache_file" | |
6050 | fi | |
6051 | fi | |
6052 | rm -f confcache | |
6053 | ||
6054 | ||
e59890c3 | 6055 | if test "$build" != "$host" ; then |
10f2d63a VZ |
6056 | CC=$host_alias-gcc |
6057 | CXX=$host_alias-c++ | |
6058 | AR=$host_alias-ar | |
6059 | RANLIB=$host_alias-ranlib | |
6060 | DLLTOOL=$host_alias-dlltool | |
32832908 | 6061 | RESCOMP=$host_alias-windres |
10f2d63a VZ |
6062 | LD=$host_alias-ld |
6063 | NM=$host_alias-nm | |
6064 | STRIP=$host_alias-strip | |
10f2d63a VZ |
6065 | fi |
6066 | ||
6067 | # Extract the first word of "gcc", so it can be a program name with args. | |
6068 | set dummy gcc; ac_word=$2 | |
6069 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6f72b082 | 6070 | echo "configure:6071: checking for $ac_word" >&5 |
10f2d63a VZ |
6071 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
6072 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6073 | else | |
6074 | if test -n "$CC"; then | |
6075 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6076 | else | |
6077 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6078 | ac_dummy="$PATH" | |
6079 | for ac_dir in $ac_dummy; do | |
6080 | test -z "$ac_dir" && ac_dir=. | |
6081 | if test -f $ac_dir/$ac_word; then | |
6082 | ac_cv_prog_CC="gcc" | |
6083 | break | |
6084 | fi | |
6085 | done | |
6086 | IFS="$ac_save_ifs" | |
6087 | fi | |
6088 | fi | |
6089 | CC="$ac_cv_prog_CC" | |
6090 | if test -n "$CC"; then | |
6091 | echo "$ac_t""$CC" 1>&6 | |
6092 | else | |
6093 | echo "$ac_t""no" 1>&6 | |
6094 | fi | |
6095 | ||
6096 | if test -z "$CC"; then | |
6097 | # Extract the first word of "cc", so it can be a program name with args. | |
6098 | set dummy cc; ac_word=$2 | |
6099 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6f72b082 | 6100 | echo "configure:6101: checking for $ac_word" >&5 |
10f2d63a VZ |
6101 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
6102 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6103 | else | |
6104 | if test -n "$CC"; then | |
6105 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6106 | else | |
6107 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6108 | ac_prog_rejected=no | |
6109 | ac_dummy="$PATH" | |
6110 | for ac_dir in $ac_dummy; do | |
6111 | test -z "$ac_dir" && ac_dir=. | |
6112 | if test -f $ac_dir/$ac_word; then | |
6113 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
6114 | ac_prog_rejected=yes | |
6115 | continue | |
6116 | fi | |
6117 | ac_cv_prog_CC="cc" | |
6118 | break | |
6119 | fi | |
6120 | done | |
6121 | IFS="$ac_save_ifs" | |
6122 | if test $ac_prog_rejected = yes; then | |
6123 | # We found a bogon in the path, so make sure we never use it. | |
6124 | set dummy $ac_cv_prog_CC | |
6125 | shift | |
6126 | if test $# -gt 0; then | |
6127 | # We chose a different compiler from the bogus one. | |
6128 | # However, it has the same basename, so the bogon will be chosen | |
6129 | # first if we set CC to just the basename; use the full file name. | |
6130 | shift | |
6131 | set dummy "$ac_dir/$ac_word" "$@" | |
6132 | shift | |
6133 | ac_cv_prog_CC="$@" | |
6134 | fi | |
6135 | fi | |
6136 | fi | |
6137 | fi | |
6138 | CC="$ac_cv_prog_CC" | |
6139 | if test -n "$CC"; then | |
6140 | echo "$ac_t""$CC" 1>&6 | |
6141 | else | |
6142 | echo "$ac_t""no" 1>&6 | |
6143 | fi | |
6144 | ||
6145 | if test -z "$CC"; then | |
6146 | case "`uname -s`" in | |
6147 | *win32* | *WIN32*) | |
6148 | # Extract the first word of "cl", so it can be a program name with args. | |
6149 | set dummy cl; ac_word=$2 | |
6150 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6f72b082 | 6151 | echo "configure:6152: checking for $ac_word" >&5 |
10f2d63a VZ |
6152 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
6153 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6154 | else | |
6155 | if test -n "$CC"; then | |
6156 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6157 | else | |
6158 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6159 | ac_dummy="$PATH" | |
6160 | for ac_dir in $ac_dummy; do | |
6161 | test -z "$ac_dir" && ac_dir=. | |
6162 | if test -f $ac_dir/$ac_word; then | |
6163 | ac_cv_prog_CC="cl" | |
6164 | break | |
6165 | fi | |
6166 | done | |
6167 | IFS="$ac_save_ifs" | |
6168 | fi | |
6169 | fi | |
6170 | CC="$ac_cv_prog_CC" | |
6171 | if test -n "$CC"; then | |
6172 | echo "$ac_t""$CC" 1>&6 | |
6173 | else | |
6174 | echo "$ac_t""no" 1>&6 | |
6175 | fi | |
6176 | ;; | |
6177 | esac | |
6178 | fi | |
6179 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
6180 | fi | |
6181 | ||
6182 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
6f72b082 | 6183 | echo "configure:6184: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
10f2d63a VZ |
6184 | |
6185 | ac_ext=c | |
6186 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6187 | ac_cpp='$CPP $CPPFLAGS' | |
6188 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6189 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6190 | cross_compiling=$ac_cv_prog_cc_cross | |
6191 | ||
6192 | cat > conftest.$ac_ext << EOF | |
6193 | ||
6f72b082 | 6194 | #line 6195 "configure" |
10f2d63a VZ |
6195 | #include "confdefs.h" |
6196 | ||
6197 | main(){return(0);} | |
6198 | EOF | |
6f72b082 | 6199 | if { (eval echo configure:6200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
6200 | ac_cv_prog_cc_works=yes |
6201 | # If we can't run a trivial program, we are probably using a cross compiler. | |
6202 | if (./conftest; exit) 2>/dev/null; then | |
6203 | ac_cv_prog_cc_cross=no | |
6204 | else | |
6205 | ac_cv_prog_cc_cross=yes | |
6206 | fi | |
6207 | else | |
6208 | echo "configure: failed program was:" >&5 | |
6209 | cat conftest.$ac_ext >&5 | |
6210 | ac_cv_prog_cc_works=no | |
6211 | fi | |
6212 | rm -fr conftest* | |
6213 | ac_ext=c | |
6214 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6215 | ac_cpp='$CPP $CPPFLAGS' | |
6216 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6217 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6218 | cross_compiling=$ac_cv_prog_cc_cross | |
6219 | ||
6220 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
6221 | if test $ac_cv_prog_cc_works = no; then | |
6222 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
6223 | fi | |
6224 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
6f72b082 | 6225 | echo "configure:6226: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
10f2d63a VZ |
6226 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
6227 | cross_compiling=$ac_cv_prog_cc_cross | |
6228 | ||
6229 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
6f72b082 | 6230 | echo "configure:6231: checking whether we are using GNU C" >&5 |
10f2d63a VZ |
6231 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
6232 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6233 | else | |
6234 | cat > conftest.c <<EOF | |
6235 | #ifdef __GNUC__ | |
6236 | yes; | |
6237 | #endif | |
6238 | EOF | |
6f72b082 | 6239 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:6240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
10f2d63a VZ |
6240 | ac_cv_prog_gcc=yes |
6241 | else | |
6242 | ac_cv_prog_gcc=no | |
6243 | fi | |
6244 | fi | |
6245 | ||
6246 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
6247 | ||
6248 | if test $ac_cv_prog_gcc = yes; then | |
6249 | GCC=yes | |
6250 | else | |
6251 | GCC= | |
6252 | fi | |
6253 | ||
6254 | ac_test_CFLAGS="${CFLAGS+set}" | |
6255 | ac_save_CFLAGS="$CFLAGS" | |
6256 | CFLAGS= | |
6257 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
6f72b082 | 6258 | echo "configure:6259: checking whether ${CC-cc} accepts -g" >&5 |
10f2d63a VZ |
6259 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
6260 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6261 | else | |
6262 | echo 'void f(){}' > conftest.c | |
6263 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
6264 | ac_cv_prog_cc_g=yes | |
6265 | else | |
6266 | ac_cv_prog_cc_g=no | |
6267 | fi | |
6268 | rm -f conftest* | |
6269 | ||
6270 | fi | |
6271 | ||
6272 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
6273 | if test "$ac_test_CFLAGS" = set; then | |
6274 | CFLAGS="$ac_save_CFLAGS" | |
6275 | elif test $ac_cv_prog_cc_g = yes; then | |
6276 | if test "$GCC" = yes; then | |
6277 | CFLAGS="-g -O2" | |
6278 | else | |
6279 | CFLAGS="-g" | |
6280 | fi | |
6281 | else | |
6282 | if test "$GCC" = yes; then | |
6283 | CFLAGS="-O2" | |
6284 | else | |
6285 | CFLAGS= | |
6286 | fi | |
6287 | fi | |
6288 | ||
6289 | ||
6290 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
6291 | ||
6292 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
6f72b082 | 6293 | echo "configure:6294: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
6294 | # On Suns, sometimes $CPP names a directory. |
6295 | if test -n "$CPP" && test -d "$CPP"; then | |
6296 | CPP= | |
6297 | fi | |
6298 | if test -z "$CPP"; then | |
6299 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
6300 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6301 | else | |
6302 | # This must be in double quotes, not single quotes, because CPP may get | |
6303 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
6304 | CPP="${CC-cc} -E" | |
6305 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6306 | # not just through cpp. | |
6307 | cat > conftest.$ac_ext <<EOF | |
6f72b082 | 6308 | #line 6309 "configure" |
10f2d63a VZ |
6309 | #include "confdefs.h" |
6310 | #include <assert.h> | |
6311 | Syntax Error | |
6312 | EOF | |
6313 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6f72b082 | 6314 | { (eval echo configure:6315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
6315 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6316 | if test -z "$ac_err"; then | |
6317 | : | |
6318 | else | |
6319 | echo "$ac_err" >&5 | |
6320 | echo "configure: failed program was:" >&5 | |
6321 | cat conftest.$ac_ext >&5 | |
6322 | rm -rf conftest* | |
6323 | CPP="${CC-cc} -E -traditional-cpp" | |
6324 | cat > conftest.$ac_ext <<EOF | |
6f72b082 | 6325 | #line 6326 "configure" |
10f2d63a VZ |
6326 | #include "confdefs.h" |
6327 | #include <assert.h> | |
6328 | Syntax Error | |
6329 | EOF | |
6330 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6f72b082 | 6331 | { (eval echo configure:6332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
6332 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6333 | if test -z "$ac_err"; then | |
6334 | : | |
6335 | else | |
6336 | echo "$ac_err" >&5 | |
6337 | echo "configure: failed program was:" >&5 | |
6338 | cat conftest.$ac_ext >&5 | |
6339 | rm -rf conftest* | |
6340 | CPP="${CC-cc} -nologo -E" | |
6341 | cat > conftest.$ac_ext <<EOF | |
6f72b082 | 6342 | #line 6343 "configure" |
10f2d63a VZ |
6343 | #include "confdefs.h" |
6344 | #include <assert.h> | |
6345 | Syntax Error | |
6346 | EOF | |
6347 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6f72b082 | 6348 | { (eval echo configure:6349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
6349 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6350 | if test -z "$ac_err"; then | |
6351 | : | |
6352 | else | |
6353 | echo "$ac_err" >&5 | |
6354 | echo "configure: failed program was:" >&5 | |
6355 | cat conftest.$ac_ext >&5 | |
6356 | rm -rf conftest* | |
6357 | CPP=/lib/cpp | |
6358 | fi | |
6359 | rm -f conftest* | |
6360 | fi | |
6361 | rm -f conftest* | |
6362 | fi | |
6363 | rm -f conftest* | |
6364 | ac_cv_prog_CPP="$CPP" | |
6365 | fi | |
6366 | CPP="$ac_cv_prog_CPP" | |
6367 | else | |
6368 | ac_cv_prog_CPP="$CPP" | |
6369 | fi | |
6370 | echo "$ac_t""$CPP" 1>&6 | |
6371 | ||
6372 | ||
6373 | if test $ac_cv_prog_gcc = yes; then | |
6374 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
6f72b082 | 6375 | echo "configure:6376: checking whether ${CC-cc} needs -traditional" >&5 |
10f2d63a VZ |
6376 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
6377 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6378 | else | |
6379 | ac_pattern="Autoconf.*'x'" | |
6380 | cat > conftest.$ac_ext <<EOF | |
6f72b082 | 6381 | #line 6382 "configure" |
10f2d63a VZ |
6382 | #include "confdefs.h" |
6383 | #include <sgtty.h> | |
6384 | Autoconf TIOCGETP | |
6385 | EOF | |
6386 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6387 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
6388 | rm -rf conftest* | |
6389 | ac_cv_prog_gcc_traditional=yes | |
6390 | else | |
6391 | rm -rf conftest* | |
6392 | ac_cv_prog_gcc_traditional=no | |
6393 | fi | |
6394 | rm -f conftest* | |
6395 | ||
6396 | ||
6397 | if test $ac_cv_prog_gcc_traditional = no; then | |
6398 | cat > conftest.$ac_ext <<EOF | |
6f72b082 | 6399 | #line 6400 "configure" |
10f2d63a VZ |
6400 | #include "confdefs.h" |
6401 | #include <termio.h> | |
6402 | Autoconf TCGETA | |
6403 | EOF | |
6404 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6405 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
6406 | rm -rf conftest* | |
6407 | ac_cv_prog_gcc_traditional=yes | |
6408 | fi | |
6409 | rm -f conftest* | |
6410 | ||
6411 | fi | |
6412 | fi | |
6413 | ||
6414 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
6415 | if test $ac_cv_prog_gcc_traditional = yes; then | |
6416 | CC="$CC -traditional" | |
6417 | fi | |
6418 | fi | |
6419 | ||
6420 | ||
6421 | ||
6422 | ac_ext=C | |
6423 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6424 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6425 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6426 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6427 | cross_compiling=$ac_cv_prog_cxx_cross | |
6428 | ||
6429 | ||
6430 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
6431 | do | |
6432 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6433 | set dummy $ac_prog; ac_word=$2 | |
6434 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6f72b082 | 6435 | echo "configure:6436: checking for $ac_word" >&5 |
10f2d63a VZ |
6436 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
6437 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6438 | else | |
6439 | if test -n "$CXX"; then | |
6440 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
6441 | else | |
6442 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6443 | ac_dummy="$PATH" | |
6444 | for ac_dir in $ac_dummy; do | |
6445 | test -z "$ac_dir" && ac_dir=. | |
6446 | if test -f $ac_dir/$ac_word; then | |
6447 | ac_cv_prog_CXX="$ac_prog" | |
6448 | break | |
6449 | fi | |
6450 | done | |
6451 | IFS="$ac_save_ifs" | |
6452 | fi | |
6453 | fi | |
6454 | CXX="$ac_cv_prog_CXX" | |
6455 | if test -n "$CXX"; then | |
6456 | echo "$ac_t""$CXX" 1>&6 | |
6457 | else | |
6458 | echo "$ac_t""no" 1>&6 | |
6459 | fi | |
6460 | ||
6461 | test -n "$CXX" && break | |
6462 | done | |
6463 | test -n "$CXX" || CXX="gcc" | |
6464 | ||
6465 | ||
6466 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
6f72b082 | 6467 | echo "configure:6468: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
10f2d63a VZ |
6468 | |
6469 | ac_ext=C | |
6470 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6471 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6472 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6473 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6474 | cross_compiling=$ac_cv_prog_cxx_cross | |
6475 | ||
6476 | cat > conftest.$ac_ext << EOF | |
6477 | ||
6f72b082 | 6478 | #line 6479 "configure" |
10f2d63a VZ |
6479 | #include "confdefs.h" |
6480 | ||
6481 | int main(){return(0);} | |
6482 | EOF | |
6f72b082 | 6483 | if { (eval echo configure:6484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
6484 | ac_cv_prog_cxx_works=yes |
6485 | # If we can't run a trivial program, we are probably using a cross compiler. | |
6486 | if (./conftest; exit) 2>/dev/null; then | |
6487 | ac_cv_prog_cxx_cross=no | |
6488 | else | |
6489 | ac_cv_prog_cxx_cross=yes | |
6490 | fi | |
6491 | else | |
6492 | echo "configure: failed program was:" >&5 | |
6493 | cat conftest.$ac_ext >&5 | |
6494 | ac_cv_prog_cxx_works=no | |
6495 | fi | |
6496 | rm -fr conftest* | |
6497 | ac_ext=C | |
6498 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6499 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6500 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6501 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6502 | cross_compiling=$ac_cv_prog_cxx_cross | |
6503 | ||
6504 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
6505 | if test $ac_cv_prog_cxx_works = no; then | |
6506 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
6507 | fi | |
6508 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
6f72b082 | 6509 | echo "configure:6510: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
10f2d63a VZ |
6510 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
6511 | cross_compiling=$ac_cv_prog_cxx_cross | |
6512 | ||
6513 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
6f72b082 | 6514 | echo "configure:6515: checking whether we are using GNU C++" >&5 |
10f2d63a VZ |
6515 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
6516 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6517 | else | |
6518 | cat > conftest.C <<EOF | |
6519 | #ifdef __GNUC__ | |
6520 | yes; | |
6521 | #endif | |
6522 | EOF | |
6f72b082 | 6523 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
10f2d63a VZ |
6524 | ac_cv_prog_gxx=yes |
6525 | else | |
6526 | ac_cv_prog_gxx=no | |
6527 | fi | |
6528 | fi | |
6529 | ||
6530 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 | |
6531 | ||
6532 | if test $ac_cv_prog_gxx = yes; then | |
6533 | GXX=yes | |
6534 | else | |
6535 | GXX= | |
6536 | fi | |
6537 | ||
6538 | ac_test_CXXFLAGS="${CXXFLAGS+set}" | |
6539 | ac_save_CXXFLAGS="$CXXFLAGS" | |
6540 | CXXFLAGS= | |
6541 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
6f72b082 | 6542 | echo "configure:6543: checking whether ${CXX-g++} accepts -g" >&5 |
10f2d63a VZ |
6543 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
6544 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6545 | else | |
6546 | echo 'void f(){}' > conftest.cc | |
6547 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
6548 | ac_cv_prog_cxx_g=yes | |
6549 | else | |
6550 | ac_cv_prog_cxx_g=no | |
6551 | fi | |
6552 | rm -f conftest* | |
6553 | ||
6554 | fi | |
6555 | ||
6556 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
6557 | if test "$ac_test_CXXFLAGS" = set; then | |
6558 | CXXFLAGS="$ac_save_CXXFLAGS" | |
6559 | elif test $ac_cv_prog_cxx_g = yes; then | |
6560 | if test "$GXX" = yes; then | |
6561 | CXXFLAGS="-g -O2" | |
6562 | else | |
6563 | CXXFLAGS="-g" | |
6564 | fi | |
6565 | else | |
6566 | if test "$GXX" = yes; then | |
6567 | CXXFLAGS="-O2" | |
6568 | else | |
6569 | CXXFLAGS= | |
6570 | fi | |
6571 | fi | |
6572 | ||
6573 | ||
6574 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 | |
6f72b082 | 6575 | echo "configure:6576: checking how to run the C++ preprocessor" >&5 |
10f2d63a VZ |
6576 | if test -z "$CXXCPP"; then |
6577 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
6578 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6579 | else | |
6580 | ac_ext=C | |
6581 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6582 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6583 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6584 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6585 | cross_compiling=$ac_cv_prog_cxx_cross | |
6586 | CXXCPP="${CXX-g++} -E" | |
6587 | cat > conftest.$ac_ext <<EOF | |
6f72b082 | 6588 | #line 6589 "configure" |
10f2d63a VZ |
6589 | #include "confdefs.h" |
6590 | #include <stdlib.h> | |
6591 | EOF | |
6592 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6f72b082 | 6593 | { (eval echo configure:6594: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
6594 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6595 | if test -z "$ac_err"; then | |
6596 | : | |
6597 | else | |
6598 | echo "$ac_err" >&5 | |
6599 | echo "configure: failed program was:" >&5 | |
6600 | cat conftest.$ac_ext >&5 | |
6601 | rm -rf conftest* | |
6602 | CXXCPP=/lib/cpp | |
6603 | fi | |
6604 | rm -f conftest* | |
6605 | ac_cv_prog_CXXCPP="$CXXCPP" | |
6606 | ac_ext=C | |
6607 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6608 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6609 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6610 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6611 | cross_compiling=$ac_cv_prog_cxx_cross | |
6612 | fi | |
6613 | fi | |
6614 | CXXCPP="$ac_cv_prog_CXXCPP" | |
6615 | echo "$ac_t""$CXXCPP" 1>&6 | |
6616 | ||
6617 | ||
6618 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` | |
6619 | ||
6620 | ac_ext=c | |
6621 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6622 | ac_cpp='$CPP $CPPFLAGS' | |
6623 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6624 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6625 | cross_compiling=$ac_cv_prog_cc_cross | |
6626 | ||
6627 | ||
6628 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6629 | set dummy ranlib; ac_word=$2 | |
6630 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6f72b082 | 6631 | echo "configure:6632: checking for $ac_word" >&5 |
10f2d63a VZ |
6632 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
6633 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6634 | else | |
6635 | if test -n "$RANLIB"; then | |
6636 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6637 | else | |
6638 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6639 | ac_dummy="$PATH" | |
6640 | for ac_dir in $ac_dummy; do | |
6641 | test -z "$ac_dir" && ac_dir=. | |
6642 | if test -f $ac_dir/$ac_word; then | |
6643 | ac_cv_prog_RANLIB="ranlib" | |
6644 | break | |
6645 | fi | |
6646 | done | |
6647 | IFS="$ac_save_ifs" | |
6648 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
6649 | fi | |
6650 | fi | |
6651 | RANLIB="$ac_cv_prog_RANLIB" | |
6652 | if test -n "$RANLIB"; then | |
6653 | echo "$ac_t""$RANLIB" 1>&6 | |
6654 | else | |
6655 | echo "$ac_t""no" 1>&6 | |
6656 | fi | |
6657 | ||
6658 | ||
6659 | # Extract the first word of "ar", so it can be a program name with args. | |
6660 | set dummy ar; ac_word=$2 | |
6661 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6f72b082 | 6662 | echo "configure:6663: checking for $ac_word" >&5 |
10f2d63a VZ |
6663 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
6664 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6665 | else | |
6666 | if test -n "$AR"; then | |
6667 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6668 | else | |
6669 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6670 | ac_dummy="$PATH" | |
6671 | for ac_dir in $ac_dummy; do | |
6672 | test -z "$ac_dir" && ac_dir=. | |
6673 | if test -f $ac_dir/$ac_word; then | |
6674 | ac_cv_prog_AR="ar" | |
6675 | break | |
6676 | fi | |
6677 | done | |
6678 | IFS="$ac_save_ifs" | |
6679 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
6680 | fi | |
6681 | fi | |
6682 | AR="$ac_cv_prog_AR" | |
6683 | if test -n "$AR"; then | |
6684 | echo "$ac_t""$AR" 1>&6 | |
6685 | else | |
6686 | echo "$ac_t""no" 1>&6 | |
6687 | fi | |
6688 | ||
6689 | ||
6690 | # Find a good install program. We prefer a C program (faster), | |
6691 | # so one script is as good as another. But avoid the broken or | |
6692 | # incompatible versions: | |
6693 | # SysV /etc/install, /usr/sbin/install | |
6694 | # SunOS /usr/etc/install | |
6695 | # IRIX /sbin/install | |
6696 | # AIX /bin/install | |
6697 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
6698 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
6699 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
6700 | # ./install, which can be erroneously created by make from ./install.sh. | |
6701 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
6f72b082 | 6702 | echo "configure:6703: checking for a BSD compatible install" >&5 |
10f2d63a VZ |
6703 | if test -z "$INSTALL"; then |
6704 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
6705 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6706 | else | |
6707 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
6708 | for ac_dir in $PATH; do | |
6709 | # Account for people who put trailing slashes in PATH elements. | |
6710 | case "$ac_dir/" in | |
6711 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
6712 | *) | |
6713 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
6714 | # Don't use installbsd from OSF since it installs stuff as root | |
6715 | # by default. | |
6716 | for ac_prog in ginstall scoinst install; do | |
6717 | if test -f $ac_dir/$ac_prog; then | |
6718 | if test $ac_prog = install && | |
6719 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
6720 | # AIX install. It has an incompatible calling convention. | |
6721 | : | |
6722 | else | |
6723 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
6724 | break 2 | |
6725 | fi | |
6726 | fi | |
6727 | done | |
6728 | ;; | |
6729 | esac | |
6730 | done | |
6731 | IFS="$ac_save_IFS" | |
6732 | ||
6733 | fi | |
6734 | if test "${ac_cv_path_install+set}" = set; then | |
6735 | INSTALL="$ac_cv_path_install" | |
6736 | else | |
6737 | # As a last resort, use the slow shell script. We don't cache a | |
6738 | # path for INSTALL within a source directory, because that will | |
6739 | # break other packages using the cache if that directory is | |
6740 | # removed, or if the path is relative. | |
6741 | INSTALL="$ac_install_sh" | |
6742 | fi | |
6743 | fi | |
6744 | echo "$ac_t""$INSTALL" 1>&6 | |
6745 | ||
6746 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
6747 | # It thinks the first close brace ends the variable substitution. | |
6748 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
6749 | ||
6750 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
6751 | ||
6752 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
6753 | ||
6754 | ||
6755 | # Extract the first word of "strip", so it can be a program name with args. | |
6756 | set dummy strip; ac_word=$2 | |
6757 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6f72b082 | 6758 | echo "configure:6759: checking for $ac_word" >&5 |
10f2d63a VZ |
6759 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
6760 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6761 | else | |
6762 | if test -n "$STRIP"; then | |
6763 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6764 | else | |
6765 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6766 | ac_dummy="$PATH" | |
6767 | for ac_dir in $ac_dummy; do | |
6768 | test -z "$ac_dir" && ac_dir=. | |
6769 | if test -f $ac_dir/$ac_word; then | |
6770 | ac_cv_prog_STRIP="strip" | |
6771 | break | |
6772 | fi | |
6773 | done | |
6774 | IFS="$ac_save_ifs" | |
6775 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" | |
6776 | fi | |
6777 | fi | |
6778 | STRIP="$ac_cv_prog_STRIP" | |
6779 | if test -n "$STRIP"; then | |
6780 | echo "$ac_t""$STRIP" 1>&6 | |
6781 | else | |
6782 | echo "$ac_t""no" 1>&6 | |
6783 | fi | |
6784 | ||
6785 | ||
6786 | echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6 | |
6f72b082 | 6787 | echo "configure:6788: checking "make for VPATH support"" >&5 |
10f2d63a VZ |
6788 | cat - << EOF > confMake |
6789 | check : file | |
6790 | cp \$? \$@ | |
6791 | cp \$? final_file | |
6792 | EOF | |
6793 | ||
6794 | if test ! -d sub ; then | |
6795 | mkdir sub | |
6796 | fi | |
6797 | echo dummy > sub/file | |
f6bcfd97 | 6798 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
6799 | RESULT=$? |
6800 | rm -f sub/file check final_file confMake | |
6801 | rmdir sub | |
6802 | if test "$RESULT" = 0; then | |
6803 | echo "$ac_t""yes" 1>&6 | |
6804 | else | |
6805 | echo "$ac_t""no" 1>&6 | |
6806 | { echo "configure: error: You need a make-utility that is able to use the variable | |
6807 | VPATH correctly. | |
6808 | If your version of make does not support VPATH correctly" 1>&2; exit 1; } | |
6809 | fi | |
6810 | ||
6811 | for ac_prog in 'bison -y' byacc | |
6812 | do | |
6813 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6814 | set dummy $ac_prog; ac_word=$2 | |
6815 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6f72b082 | 6816 | echo "configure:6817: checking for $ac_word" >&5 |
10f2d63a VZ |
6817 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
6818 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6819 | else | |
6820 | if test -n "$YACC"; then | |
6821 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
6822 | else | |
6823 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6824 | ac_dummy="$PATH" | |
6825 | for ac_dir in $ac_dummy; do | |
6826 | test -z "$ac_dir" && ac_dir=. | |
6827 | if test -f $ac_dir/$ac_word; then | |
6828 | ac_cv_prog_YACC="$ac_prog" | |
6829 | break | |
6830 | fi | |
6831 | done | |
6832 | IFS="$ac_save_ifs" | |
6833 | fi | |
6834 | fi | |
6835 | YACC="$ac_cv_prog_YACC" | |
6836 | if test -n "$YACC"; then | |
6837 | echo "$ac_t""$YACC" 1>&6 | |
6838 | else | |
6839 | echo "$ac_t""no" 1>&6 | |
6840 | fi | |
6841 | ||
6842 | test -n "$YACC" && break | |
6843 | done | |
6844 | test -n "$YACC" || YACC="yacc" | |
6845 | ||
6846 | ||
6847 | # Extract the first word of "flex", so it can be a program name with args. | |
6848 | set dummy flex; ac_word=$2 | |
6849 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6f72b082 | 6850 | echo "configure:6851: checking for $ac_word" >&5 |
10f2d63a VZ |
6851 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
6852 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6853 | else | |
6854 | if test -n "$LEX"; then | |
6855 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
6856 | else | |
6857 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6858 | ac_dummy="$PATH" | |
6859 | for ac_dir in $ac_dummy; do | |
6860 | test -z "$ac_dir" && ac_dir=. | |
6861 | if test -f $ac_dir/$ac_word; then | |
6862 | ac_cv_prog_LEX="flex" | |
6863 | break | |
6864 | fi | |
6865 | done | |
6866 | IFS="$ac_save_ifs" | |
6867 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
6868 | fi | |
6869 | fi | |
6870 | LEX="$ac_cv_prog_LEX" | |
6871 | if test -n "$LEX"; then | |
6872 | echo "$ac_t""$LEX" 1>&6 | |
6873 | else | |
6874 | echo "$ac_t""no" 1>&6 | |
6875 | fi | |
6876 | ||
6877 | if test -z "$LEXLIB" | |
6878 | then | |
6879 | case "$LEX" in | |
6880 | flex*) ac_lib=fl ;; | |
6881 | *) ac_lib=l ;; | |
6882 | esac | |
6883 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
6f72b082 | 6884 | echo "configure:6885: checking for yywrap in -l$ac_lib" >&5 |
10f2d63a VZ |
6885 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
6886 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
6887 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6888 | else | |
6889 | ac_save_LIBS="$LIBS" | |
6890 | LIBS="-l$ac_lib $LIBS" | |
6891 | cat > conftest.$ac_ext <<EOF | |
6f72b082 | 6892 | #line 6893 "configure" |
10f2d63a VZ |
6893 | #include "confdefs.h" |
6894 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6895 | /* We use char because int might match the return type of a gcc2 | |
6896 | builtin and then its argument prototype would still apply. */ | |
6897 | char yywrap(); | |
6898 | ||
6899 | int main() { | |
6900 | yywrap() | |
6901 | ; return 0; } | |
6902 | EOF | |
6f72b082 | 6903 | if { (eval echo configure:6904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
6904 | rm -rf conftest* |
6905 | eval "ac_cv_lib_$ac_lib_var=yes" | |
6906 | else | |
6907 | echo "configure: failed program was:" >&5 | |
6908 | cat conftest.$ac_ext >&5 | |
6909 | rm -rf conftest* | |
6910 | eval "ac_cv_lib_$ac_lib_var=no" | |
6911 | fi | |
6912 | rm -f conftest* | |
6913 | LIBS="$ac_save_LIBS" | |
6914 | ||
6915 | fi | |
6916 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
6917 | echo "$ac_t""yes" 1>&6 | |
6918 | LEXLIB="-l$ac_lib" | |
6919 | else | |
6920 | echo "$ac_t""no" 1>&6 | |
6921 | fi | |
6922 | ||
6923 | fi | |
6924 | ||
6925 | ||
6926 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
6f72b082 | 6927 | echo "configure:6928: checking whether ln -s works" >&5 |
10f2d63a VZ |
6928 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
6929 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6930 | else | |
6931 | rm -f conftestdata | |
6932 | if ln -s X conftestdata 2>/dev/null | |
6933 | then | |
6934 | rm -f conftestdata | |
6935 | ac_cv_prog_LN_S="ln -s" | |
6936 | else | |
6937 | ac_cv_prog_LN_S=ln | |
6938 | fi | |
6939 | fi | |
6940 | LN_S="$ac_cv_prog_LN_S" | |
6941 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
6942 | echo "$ac_t""yes" 1>&6 | |
6943 | else | |
6944 | echo "$ac_t""no" 1>&6 | |
6945 | fi | |
6946 | ||
6947 | ||
6948 | ||
6949 | SEARCH_INCLUDE="\ | |
6950 | /usr/local/include \ | |
6951 | \ | |
6952 | /usr/Motif-1.2/include \ | |
6953 | /usr/Motif-2.1/include \ | |
6954 | \ | |
6955 | /usr/include/Motif1.2 \ | |
6956 | /opt/xpm/include/X11 \ | |
6957 | /opt/GBxpm/include/ \ | |
6958 | /opt/GBxpm/X11/include/ \ | |
6959 | \ | |
6960 | /usr/Motif1.2/include \ | |
6961 | /usr/dt/include \ | |
afc31813 VZ |
6962 | /usr/openwin/include \ |
6963 | \ | |
10f2d63a VZ |
6964 | /usr/include/Xm \ |
6965 | \ | |
6966 | /usr/X11R6/include \ | |
afc31813 | 6967 | /usr/X11R6.4/include \ |
10f2d63a VZ |
6968 | /usr/X11R5/include \ |
6969 | /usr/X11R4/include \ | |
6970 | \ | |
10f2d63a VZ |
6971 | /usr/include/X11R6 \ |
6972 | /usr/include/X11R5 \ | |
6973 | /usr/include/X11R4 \ | |
6974 | \ | |
6975 | /usr/local/X11R6/include \ | |
6976 | /usr/local/X11R5/include \ | |
6977 | /usr/local/X11R4/include \ | |
6978 | \ | |
6979 | /usr/local/include/X11R6 \ | |
6980 | /usr/local/include/X11R5 \ | |
6981 | /usr/local/include/X11R4 \ | |
6982 | \ | |
6983 | /usr/X11/include \ | |
6984 | /usr/include/X11 \ | |
6985 | /usr/local/X11/include \ | |
6986 | /usr/local/include/X11 \ | |
6987 | \ | |
6988 | /usr/X386/include \ | |
6989 | /usr/x386/include \ | |
6990 | /usr/XFree86/include/X11 \ | |
6991 | \ | |
cf27ef00 | 6992 | X:/XFree86/include \ |
ec14dd32 VZ |
6993 | X:/XFree86/include/X11 \ |
6994 | \ | |
10f2d63a VZ |
6995 | /usr/include/gtk \ |
6996 | /usr/local/include/gtk \ | |
6997 | /usr/include/glib \ | |
6998 | /usr/local/include/glib \ | |
6999 | \ | |
7000 | /usr/include/qt \ | |
7001 | /usr/local/include/qt \ | |
7002 | \ | |
7003 | /usr/include/windows \ | |
7004 | /usr/include/wine \ | |
7005 | /usr/local/include/wine \ | |
7006 | \ | |
7007 | /usr/unsupported/include \ | |
7008 | /usr/athena/include \ | |
7009 | /usr/local/x11r5/include \ | |
7010 | /usr/lpp/Xamples/include \ | |
7011 | \ | |
10f2d63a | 7012 | /usr/openwin/share/include \ |
928b5c08 VZ |
7013 | \ |
7014 | /usr/include" | |
10f2d63a VZ |
7015 | |
7016 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
7017 | ||
7018 | ||
7019 | cat > confcache <<\EOF | |
7020 | # This file is a shell script that caches the results of configure | |
7021 | # tests run on this system so they can be shared between configure | |
7022 | # scripts and configure runs. It is not useful on other systems. | |
7023 | # If it contains results you don't want to keep, you may remove or edit it. | |
7024 | # | |
7025 | # By default, configure uses ./config.cache as the cache file, | |
7026 | # creating it if it does not exist already. You can give configure | |
7027 | # the --cache-file=FILE option to use a different cache file; that is | |
7028 | # what configure does when it calls configure scripts in | |
7029 | # subdirectories, so they share the cache. | |
7030 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
7031 | # config.status only pays attention to the cache file if you give it the | |
7032 | # --recheck option to rerun configure. | |
7033 | # | |
7034 | EOF | |
7035 | # The following way of writing the cache mishandles newlines in values, | |
7036 | # but we know of no workaround that is simple, portable, and efficient. | |
7037 | # So, don't put newlines in cache variables' values. | |
7038 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
7039 | # and sets the high bit in the cache file unless we assign to the vars. | |
7040 | (set) 2>&1 | | |
7041 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
7042 | *ac_space=\ *) | |
7043 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
7044 | # turns \\\\ into \\, and sed turns \\ into \). | |
7045 | sed -n \ | |
7046 | -e "s/'/'\\\\''/g" \ | |
7047 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
7048 | ;; | |
7049 | *) | |
7050 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7051 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
7052 | ;; | |
7053 | esac >> confcache | |
7054 | if cmp -s $cache_file confcache; then | |
7055 | : | |
7056 | else | |
7057 | if test -w $cache_file; then | |
7058 | echo "updating cache $cache_file" | |
7059 | cat confcache > $cache_file | |
7060 | else | |
7061 | echo "not updating unwritable cache $cache_file" | |
7062 | fi | |
7063 | fi | |
7064 | rm -f confcache | |
7065 | ||
7066 | ||
7067 | ||
dad6c0ea VZ |
7068 | AFMINSTALL= |
7069 | ||
10f2d63a VZ |
7070 | if test "$wxUSE_GUI" = "yes"; then |
7071 | ||
dad6c0ea VZ |
7072 | USE_GUI=1 |
7073 | ||
10f2d63a VZ |
7074 | TOOLKIT= |
7075 | TOOLKIT_INCLUDE= | |
7076 | ||
7077 | GUIOBJS= | |
7078 | COMMONOBJS= | |
7079 | GENERICOBJS= | |
7080 | ||
7081 | GUI_TK_LIBRARY= | |
7082 | GUI_TK_LINK= | |
7083 | ||
7084 | WXGTK12= | |
f6bcfd97 | 7085 | WXGTK127= |
6f72b082 | 7086 | WXGTK20= |
10f2d63a VZ |
7087 | |
7088 | WXWINE= | |
7089 | ||
10f2d63a VZ |
7090 | if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then |
7091 | if test "$cross_compiling" = "yes" ; then | |
e59890c3 | 7092 | echo "configure: warning: skipping windows.h check for cross-compilation" 1>&2 |
10f2d63a VZ |
7093 | else |
7094 | echo $ac_n "checking for Windows headers""... $ac_c" 1>&6 | |
6f72b082 | 7095 | echo "configure:7096: checking for Windows headers" >&5 |
10f2d63a VZ |
7096 | |
7097 | ac_find_includes= | |
7098 | for ac_dir in $SEARCH_INCLUDE; | |
7099 | do | |
7100 | if test -f "$ac_dir/windows.h"; then | |
7101 | ac_find_includes=$ac_dir | |
7102 | break | |
7103 | fi | |
7104 | done | |
7105 | ||
7106 | if test "$ac_find_includes" != "" ; then | |
7107 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
7108 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
7109 | else | |
7110 | echo "$ac_t""no" 1>&6 | |
7111 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
7112 | fi | |
7113 | fi | |
7114 | ||
7115 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw" | |
7116 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32" | |
7117 | ||
f6bcfd97 BP |
7118 | if test "$wxUSE_ODBC" = "yes" ; then |
7119 | LIBS="$LIBS -lodbc32 -lole32 -loleaut32" | |
7120 | fi | |
7121 | ||
10f2d63a VZ |
7122 | if test "$wxUSE_MINGW" = 1; then |
7123 | LDFLAGS="$LDFLAGS -mwindows" | |
7124 | fi | |
7125 | ||
7126 | TOOLKIT=MSW | |
7127 | ||
7128 | GUIOBJS="\$(MSW_GUIOBJS)" | |
7129 | GUIHEADERS="\$(MSW_HEADERS)" | |
7130 | COMMONOBJS="\$(MSW_COMMONOBJS)" | |
7131 | GENERICOBJS="\$(MSW_GENERICOBJS)" | |
7132 | UNIXOBJS= | |
7133 | GUIDIST=MSW_DIST | |
32832908 VZ |
7134 | |
7135 | RCINCSWITCH="--include-dir" | |
7136 | RCDEFSWITCH="--define" | |
7137 | RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\"" | |
7138 | RCINPUTSWITCH="-i" | |
7139 | RCOUTPUTSWITCH="-o" | |
7140 | RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__" | |
7141 | ||
7142 | RESPROGRAM="\$(RES_PROGRAM)" | |
7143 | ||
10f2d63a VZ |
7144 | fi |
7145 | ||
7146 | if test "$wxUSE_GTK" = 1; then | |
6f72b082 OK |
7147 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
7148 | if test "${with_gtk_prefix+set}" = set; then | |
7149 | withval="$with_gtk_prefix" | |
7150 | gtk_config_prefix="$withval" | |
7151 | else | |
7152 | gtk_config_prefix="" | |
7153 | fi | |
7154 | ||
7155 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
7156 | if test "${with_gtk_exec_prefix+set}" = set; then | |
7157 | withval="$with_gtk_exec_prefix" | |
7158 | gtk_config_exec_prefix="$withval" | |
7159 | else | |
7160 | gtk_config_exec_prefix="" | |
7161 | fi | |
7162 | ||
7163 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
7164 | if test "${enable_gtktest+set}" = set; then | |
7165 | enableval="$enable_gtktest" | |
7166 | : | |
7167 | else | |
7168 | enable_gtktest=yes | |
7169 | fi | |
7170 | ||
7171 | ||
7172 | for module in . gthread | |
7173 | do | |
7174 | case "$module" in | |
7175 | gthread) | |
7176 | gtk_config_args="$gtk_config_args gthread" | |
7177 | ;; | |
7178 | esac | |
7179 | done | |
7180 | ||
7181 | if test x$gtk_config_exec_prefix != x ; then | |
7182 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
7183 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
7184 | GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0 | |
7185 | fi | |
7186 | fi | |
7187 | if test x$gtk_config_prefix != x ; then | |
7188 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
7189 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
7190 | GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0 | |
7191 | fi | |
7192 | fi | |
7193 | ||
7194 | # Extract the first word of "gtk-config-2.0", so it can be a program name with args. | |
7195 | set dummy gtk-config-2.0; ac_word=$2 | |
7196 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
7197 | echo "configure:7198: checking for $ac_word" >&5 | |
7198 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then | |
7199 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7200 | else | |
7201 | case "$GTK_CONFIG_2_0" in | |
7202 | /*) | |
7203 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path. | |
7204 | ;; | |
7205 | ?:/*) | |
7206 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path. | |
7207 | ;; | |
7208 | *) | |
7209 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
7210 | ac_dummy="$PATH" | |
7211 | for ac_dir in $ac_dummy; do | |
7212 | test -z "$ac_dir" && ac_dir=. | |
7213 | if test -f $ac_dir/$ac_word; then | |
7214 | ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word" | |
7215 | break | |
7216 | fi | |
7217 | done | |
7218 | IFS="$ac_save_ifs" | |
7219 | test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no" | |
7220 | ;; | |
7221 | esac | |
7222 | fi | |
7223 | GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0" | |
7224 | if test -n "$GTK_CONFIG_2_0"; then | |
7225 | echo "$ac_t""$GTK_CONFIG_2_0" 1>&6 | |
7226 | else | |
7227 | echo "$ac_t""no" 1>&6 | |
7228 | fi | |
7229 | ||
7230 | min_gtk_version=1.3.1 | |
7231 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 | |
7232 | echo "configure:7233: checking for GTK - version >= $min_gtk_version" >&5 | |
7233 | no_gtk="" | |
7234 | if test "$GTK_CONFIG_2_0" = "no" ; then | |
7235 | no_gtk=yes | |
7236 | else | |
7237 | GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags` | |
7238 | GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs` | |
7239 | gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
7240 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
7241 | gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
7242 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
7243 | gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
7244 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
7245 | if test "x$enable_gtktest" = "xyes" ; then | |
7246 | ac_save_CFLAGS="$CFLAGS" | |
7247 | ac_save_LIBS="$LIBS" | |
7248 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
7249 | LIBS="$GTK_LIBS $LIBS" | |
7250 | rm -f conf.gtktest | |
7251 | if test "$cross_compiling" = yes; then | |
7252 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
7253 | else | |
7254 | cat > conftest.$ac_ext <<EOF | |
7255 | #line 7256 "configure" | |
7256 | #include "confdefs.h" | |
7257 | ||
7258 | #include <gtk/gtk.h> | |
7259 | #include <stdio.h> | |
7260 | #include <stdlib.h> | |
7261 | ||
7262 | int | |
7263 | main () | |
7264 | { | |
7265 | int major, minor, micro; | |
7266 | char *tmp_version; | |
7267 | ||
7268 | system ("touch conf.gtktest"); | |
7269 | ||
7270 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
7271 | tmp_version = g_strdup("$min_gtk_version"); | |
7272 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
7273 | printf("%s, bad version string\n", "$min_gtk_version"); | |
7274 | exit(1); | |
7275 | } | |
7276 | ||
7277 | if ((gtk_major_version != $gtk_config_major_version) || | |
7278 | (gtk_minor_version != $gtk_config_minor_version) || | |
7279 | (gtk_micro_version != $gtk_config_micro_version)) | |
7280 | { | |
7281 | printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
7282 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
7283 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
7284 | printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n"); | |
7285 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
7286 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
7287 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
7288 | printf("*** required on your system.\n"); | |
7289 | printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n"); | |
7290 | printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n"); | |
7291 | printf("*** before re-running configure\n"); | |
7292 | } | |
7293 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
7294 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
7295 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
7296 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
7297 | { | |
7298 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
7299 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
7300 | printf("*** library (version %d.%d.%d)\n", | |
7301 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
7302 | } | |
7303 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
7304 | else | |
7305 | { | |
7306 | if ((gtk_major_version > major) || | |
7307 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
7308 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
7309 | { | |
7310 | return 0; | |
7311 | } | |
7312 | else | |
7313 | { | |
7314 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
7315 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
7316 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
7317 | major, minor, micro); | |
7318 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
7319 | printf("***\n"); | |
7320 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
7321 | printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n"); | |
7322 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
7323 | printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n"); | |
7324 | printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n"); | |
7325 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
7326 | printf("*** so that the correct libraries are found at run-time))\n"); | |
7327 | } | |
7328 | } | |
7329 | return 1; | |
7330 | } | |
7331 | ||
7332 | EOF | |
7333 | if { (eval echo configure:7334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
7334 | then | |
7335 | : | |
7336 | else | |
7337 | echo "configure: failed program was:" >&5 | |
7338 | cat conftest.$ac_ext >&5 | |
7339 | rm -fr conftest* | |
7340 | no_gtk=yes | |
7341 | fi | |
7342 | rm -fr conftest* | |
7343 | fi | |
7344 | ||
7345 | CFLAGS="$ac_save_CFLAGS" | |
7346 | LIBS="$ac_save_LIBS" | |
7347 | fi | |
7348 | fi | |
7349 | if test "x$no_gtk" = x ; then | |
7350 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 | |
7351 | WXGTK20=1 | |
7352 | else | |
7353 | echo "$ac_t""no" 1>&6 | |
7354 | if test "$GTK_CONFIG_2_0" = "no" ; then | |
7355 | echo "*** The gtk-config-2.0 script installed by GTK could not be found" | |
7356 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
7357 | echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the" | |
7358 | echo "*** full path to gtk-config-2.0." | |
7359 | else | |
7360 | if test -f conf.gtktest ; then | |
7361 | : | |
7362 | else | |
7363 | echo "*** Could not run GTK test program, checking why..." | |
7364 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
7365 | LIBS="$LIBS $GTK_LIBS" | |
7366 | cat > conftest.$ac_ext <<EOF | |
7367 | #line 7368 "configure" | |
7368 | #include "confdefs.h" | |
7369 | ||
7370 | #include <gtk/gtk.h> | |
7371 | #include <stdio.h> | |
7372 | ||
7373 | int main() { | |
7374 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
7375 | ; return 0; } | |
7376 | EOF | |
7377 | if { (eval echo configure:7378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7378 | rm -rf conftest* | |
7379 | echo "*** The test program compiled, but did not run. This usually means" | |
7380 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
7381 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
7382 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
7383 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
7384 | echo "*** is required on your system" | |
7385 | echo "***" | |
7386 | echo "*** If you have an old version installed, it is best to remove it, although" | |
7387 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
7388 | echo "***" | |
7389 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
7390 | echo "*** came with the system with the command" | |
7391 | echo "***" | |
7392 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
7393 | else | |
7394 | echo "configure: failed program was:" >&5 | |
7395 | cat conftest.$ac_ext >&5 | |
7396 | rm -rf conftest* | |
7397 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
7398 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
7399 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
7400 | echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0" | |
7401 | fi | |
7402 | rm -f conftest* | |
7403 | CFLAGS="$ac_save_CFLAGS" | |
7404 | LIBS="$ac_save_LIBS" | |
7405 | fi | |
7406 | fi | |
7407 | GTK_CFLAGS="" | |
7408 | GTK_LIBS="" | |
7409 | ||
7410 | ||
10f2d63a VZ |
7411 | if test x$gtk_config_exec_prefix != x ; then |
7412 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
7413 | if test x${GTK_CONFIG+set} != xset ; then | |
7414 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
7415 | fi | |
7416 | fi | |
7417 | if test x$gtk_config_prefix != x ; then | |
7418 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
7419 | if test x${GTK_CONFIG+set} != xset ; then | |
7420 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
7421 | fi | |
7422 | fi | |
7423 | ||
7424 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
7425 | set dummy gtk-config; ac_word=$2 | |
7426 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6f72b082 | 7427 | echo "configure:7428: checking for $ac_word" >&5 |
f6bcfd97 BP |
7428 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
7429 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7430 | else | |
7431 | case "$GTK_CONFIG" in | |
7432 | /*) | |
7433 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
7434 | ;; | |
7435 | ?:/*) | |
7436 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
7437 | ;; | |
7438 | *) | |
7439 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
7440 | ac_dummy="$PATH" | |
7441 | for ac_dir in $ac_dummy; do | |
7442 | test -z "$ac_dir" && ac_dir=. | |
7443 | if test -f $ac_dir/$ac_word; then | |
7444 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
7445 | break | |
7446 | fi | |
7447 | done | |
7448 | IFS="$ac_save_ifs" | |
7449 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
7450 | ;; | |
7451 | esac | |
7452 | fi | |
7453 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
7454 | if test -n "$GTK_CONFIG"; then | |
7455 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
7456 | else | |
7457 | echo "$ac_t""no" 1>&6 | |
7458 | fi | |
7459 | ||
7460 | min_gtk_version=1.2.7 | |
7461 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 | |
6f72b082 | 7462 | echo "configure:7463: checking for GTK - version >= $min_gtk_version" >&5 |
f6bcfd97 BP |
7463 | no_gtk="" |
7464 | if test "$GTK_CONFIG" != "no" ; then | |
7465 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
7466 | GTK_LIBS=`$GTK_CONFIG --libs gthread` | |
7467 | ac_save_CFLAGS="$CFLAGS" | |
7468 | ac_save_LIBS="$LIBS" | |
7469 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
7470 | LIBS="$LIBS $GTK_LIBS" | |
7471 | if test "$cross_compiling" = yes; then | |
7472 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
7473 | else | |
7474 | cat > conftest.$ac_ext <<EOF | |
6f72b082 | 7475 | #line 7476 "configure" |
f6bcfd97 BP |
7476 | #include "confdefs.h" |
7477 | ||
7478 | #include <gtk/gtk.h> | |
7479 | #include <gtk/gtkfeatures.h> | |
7480 | #include <stdio.h> | |
7481 | #include <stdlib.h> | |
7482 | ||
7483 | int | |
7484 | main () | |
7485 | { | |
7486 | int major, minor, micro; | |
7487 | ||
7488 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
7489 | printf("%s, bad version string\n", "$min_gtk_version"); | |
7490 | exit(1); | |
7491 | } | |
7492 | ||
7493 | if ((GTK_MAJOR_VERSION != gtk_major_version) || | |
7494 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
7495 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
7496 | printf("Headers vs. library version mismatch!\n"); | |
7497 | exit(1); | |
7498 | } | |
7499 | ||
7500 | if (gtk_minor_version == 1) return FALSE; | |
7501 | ||
7502 | return !((gtk_major_version > major) || | |
7503 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
7504 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
7505 | } | |
7506 | ||
7507 | EOF | |
6f72b082 | 7508 | if { (eval echo configure:7509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
f6bcfd97 BP |
7509 | then |
7510 | : | |
7511 | else | |
7512 | echo "configure: failed program was:" >&5 | |
7513 | cat conftest.$ac_ext >&5 | |
7514 | rm -fr conftest* | |
7515 | no_gtk=yes | |
7516 | fi | |
7517 | rm -fr conftest* | |
7518 | fi | |
7519 | ||
7520 | CFLAGS="$ac_save_CFLAGS" | |
7521 | LIBS="$ac_save_LIBS" | |
7522 | else | |
7523 | no_gtk=yes | |
7524 | fi | |
7525 | if test "x$no_gtk" = x ; then | |
7526 | echo "$ac_t""yes" 1>&6 | |
7527 | WXGTK127=1 | |
7528 | else | |
7529 | echo "$ac_t""no" 1>&6 | |
7530 | GTK_CFLAGS="" | |
7531 | GTK_LIBS="" | |
7532 | : | |
7533 | fi | |
7534 | ||
7535 | ||
7536 | ||
6f72b082 | 7537 | |
f6bcfd97 BP |
7538 | if test x$gtk_config_exec_prefix != x ; then |
7539 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
7540 | if test x${GTK_CONFIG+set} != xset ; then | |
7541 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
7542 | fi | |
7543 | fi | |
7544 | if test x$gtk_config_prefix != x ; then | |
7545 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
7546 | if test x${GTK_CONFIG+set} != xset ; then | |
7547 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
7548 | fi | |
7549 | fi | |
7550 | ||
7551 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
7552 | set dummy gtk-config; ac_word=$2 | |
7553 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6f72b082 | 7554 | echo "configure:7555: checking for $ac_word" >&5 |
10f2d63a VZ |
7555 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
7556 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7557 | else | |
7558 | case "$GTK_CONFIG" in | |
7559 | /*) | |
7560 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
7561 | ;; | |
7562 | ?:/*) | |
7563 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
7564 | ;; | |
7565 | *) | |
7566 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
7567 | ac_dummy="$PATH" | |
7568 | for ac_dir in $ac_dummy; do | |
7569 | test -z "$ac_dir" && ac_dir=. | |
7570 | if test -f $ac_dir/$ac_word; then | |
7571 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
7572 | break | |
7573 | fi | |
7574 | done | |
7575 | IFS="$ac_save_ifs" | |
7576 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
7577 | ;; | |
7578 | esac | |
7579 | fi | |
7580 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
7581 | if test -n "$GTK_CONFIG"; then | |
7582 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
7583 | else | |
7584 | echo "$ac_t""no" 1>&6 | |
7585 | fi | |
7586 | ||
04165bec | 7587 | min_gtk_version=1.2.3 |
10f2d63a | 7588 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
6f72b082 | 7589 | echo "configure:7590: checking for GTK - version >= $min_gtk_version" >&5 |
10f2d63a VZ |
7590 | no_gtk="" |
7591 | if test "$GTK_CONFIG" != "no" ; then | |
7592 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
2224580a | 7593 | GTK_LIBS=`$GTK_CONFIG --libs gthread` |
10f2d63a VZ |
7594 | ac_save_CFLAGS="$CFLAGS" |
7595 | ac_save_LIBS="$LIBS" | |
7596 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
7597 | LIBS="$LIBS $GTK_LIBS" | |
7598 | if test "$cross_compiling" = yes; then | |
7599 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
7600 | else | |
7601 | cat > conftest.$ac_ext <<EOF | |
6f72b082 | 7602 | #line 7603 "configure" |
10f2d63a VZ |
7603 | #include "confdefs.h" |
7604 | ||
7605 | #include <gtk/gtk.h> | |
f49f2b0c | 7606 | #include <gtk/gtkfeatures.h> |
10f2d63a | 7607 | #include <stdio.h> |
32832908 | 7608 | #include <stdlib.h> |
10f2d63a VZ |
7609 | |
7610 | int | |
7611 | main () | |
7612 | { | |
7613 | int major, minor, micro; | |
7614 | ||
7615 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
7616 | printf("%s, bad version string\n", "$min_gtk_version"); | |
7617 | exit(1); | |
7618 | } | |
7619 | ||
f49f2b0c RR |
7620 | if ((GTK_MAJOR_VERSION != gtk_major_version) || |
7621 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
7622 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
7623 | printf("Headers vs. library version mismatch!\n"); | |
7624 | exit(1); | |
7625 | } | |
7626 | ||
10f2d63a VZ |
7627 | if (gtk_minor_version == 1) return FALSE; |
7628 | ||
7629 | return !((gtk_major_version > major) || | |
7630 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
7631 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
7632 | } | |
7633 | ||
7634 | EOF | |
6f72b082 | 7635 | if { (eval echo configure:7636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
7636 | then |
7637 | : | |
7638 | else | |
7639 | echo "configure: failed program was:" >&5 | |
7640 | cat conftest.$ac_ext >&5 | |
7641 | rm -fr conftest* | |
7642 | no_gtk=yes | |
7643 | fi | |
7644 | rm -fr conftest* | |
7645 | fi | |
7646 | ||
7647 | CFLAGS="$ac_save_CFLAGS" | |
7648 | LIBS="$ac_save_LIBS" | |
7649 | else | |
7650 | no_gtk=yes | |
7651 | fi | |
7652 | if test "x$no_gtk" = x ; then | |
7653 | echo "$ac_t""yes" 1>&6 | |
7654 | WXGTK12=1 | |
7655 | else | |
7656 | echo "$ac_t""no" 1>&6 | |
7657 | GTK_CFLAGS="" | |
7658 | GTK_LIBS="" | |
7e99ad86 | 7659 | : |
10f2d63a VZ |
7660 | fi |
7661 | ||
7662 | ||
7663 | ||
6f72b082 OK |
7664 | |
7665 | fi | |
7666 | ||
7667 | ||
7668 | rm -f conf.gtktest | |
7669 | ||
10f2d63a | 7670 | |
6f72b082 | 7671 | if test "$WXGTK12" != 1 -a "$WXGTK20" != 1; then |
7e99ad86 VZ |
7672 | { echo "configure: error: |
7673 | Please check that gtk-config is in path, the directory | |
7674 | where GTK+ libraries are installed (returned by | |
7675 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
7676 | equivalent variable and GTK+ is version 1.2.3 or above. | |
7677 | " 1>&2; exit 1; } | |
7678 | fi | |
7679 | ||
10f2d63a | 7680 | TOOLKIT_INCLUDE="$GTK_CFLAGS" |
2224580a VZ |
7681 | |
7682 | ||
7683 | GUI_TK_LIBRARY="$GTK_LIBS" | |
7684 | ||
10f2d63a VZ |
7685 | TOOLKIT=GTK |
7686 | ||
dad6c0ea VZ |
7687 | AFMINSTALL=afminstall |
7688 | ||
10f2d63a VZ |
7689 | GUIOBJS="\$(GTK_GUIOBJS)" |
7690 | GUIHEADERS="\$(GTK_HEADERS)" | |
7691 | COMMONOBJS="\$(GTK_COMMONOBJS)" | |
7692 | GENERICOBJS="\$(GTK_GENERICOBJS)" | |
7693 | GUIDEPS="\$(GTK_GUIDEPS)" | |
7694 | COMMONDEPS="\$(GTK_COMMONDEPS)" | |
7695 | GENERICDEPS="\$(GTK_GENERICDEPS)" | |
7696 | UNIXOBJS="\$(UNIX_OBJS)" | |
d9d8273d | 7697 | UNIXDEPS="\$(UNIX_DEPS)" |
10f2d63a | 7698 | GUIDIST=GTK_DIST |
7ec2881a | 7699 | |
2224580a | 7700 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
6f72b082 | 7701 | echo "configure:7702: checking for gdk_im_open in -lgdk" >&5 |
7ec2881a RR |
7702 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
7703 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7704 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7705 | else | |
7706 | ac_save_LIBS="$LIBS" | |
7707 | LIBS="-lgdk $LIBS" | |
7708 | cat > conftest.$ac_ext <<EOF | |
6f72b082 | 7709 | #line 7710 "configure" |
7ec2881a RR |
7710 | #include "confdefs.h" |
7711 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7712 | /* We use char because int might match the return type of a gcc2 | |
7713 | builtin and then its argument prototype would still apply. */ | |
7714 | char gdk_im_open(); | |
7715 | ||
7716 | int main() { | |
7717 | gdk_im_open() | |
7718 | ; return 0; } | |
7719 | EOF | |
6f72b082 | 7720 | if { (eval echo configure:7721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7ec2881a RR |
7721 | rm -rf conftest* |
7722 | eval "ac_cv_lib_$ac_lib_var=yes" | |
7723 | else | |
7724 | echo "configure: failed program was:" >&5 | |
7725 | cat conftest.$ac_ext >&5 | |
7726 | rm -rf conftest* | |
7727 | eval "ac_cv_lib_$ac_lib_var=no" | |
7728 | fi | |
7729 | rm -f conftest* | |
7730 | LIBS="$ac_save_LIBS" | |
7731 | ||
7732 | fi | |
7733 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
7734 | echo "$ac_t""yes" 1>&6 | |
7735 | cat >> confdefs.h <<\EOF | |
7736 | #define HAVE_XIM 1 | |
7737 | EOF | |
7738 | ||
7739 | else | |
7740 | echo "$ac_t""no" 1>&6 | |
7741 | fi | |
7742 | ||
10f2d63a VZ |
7743 | fi |
7744 | ||
7745 | if test "$wxUSE_WINE" = 1; then | |
7746 | echo $ac_n "checking for WINE includes""... $ac_c" 1>&6 | |
6f72b082 | 7747 | echo "configure:7748: checking for WINE includes" >&5 |
10f2d63a VZ |
7748 | |
7749 | ac_find_includes= | |
7750 | for ac_dir in $SEARCH_INCLUDE; | |
7751 | do | |
7752 | if test -f "$ac_dir/windows.h"; then | |
7753 | ac_find_includes=$ac_dir | |
7754 | break | |
7755 | fi | |
7756 | done | |
7757 | ||
7758 | if test "$ac_find_includes" != "" ; then | |
7759 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
7760 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
7761 | else | |
7762 | echo "$ac_t""no" 1>&6 | |
7763 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
7764 | fi | |
7765 | ||
7766 | XPM_LINK="" | |
7767 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
6f72b082 | 7768 | echo "configure:7769: checking for Xpm library" >&5 |
10f2d63a VZ |
7769 | |
7770 | ac_find_libraries= | |
7771 | for ac_dir in $SEARCH_LIB; | |
7772 | do | |
7773 | for ac_extension in a so sl; do | |
7774 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
7775 | ac_find_libraries=$ac_dir | |
7776 | break 2 | |
7777 | fi | |
7778 | done | |
7779 | done | |
7780 | ||
7781 | if test "$ac_find_libraries" != "" ; then | |
7782 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
7783 | XPM_LINK="-lXpm" | |
7784 | cat >> confdefs.h <<\EOF | |
7785 | #define wxHAVE_LIB_XPM 1 | |
7786 | EOF | |
7787 | ||
7788 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
7789 | else | |
7790 | echo "$ac_t""no" 1>&6 | |
7791 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
7792 | fi | |
7793 | ||
7794 | MESA_LINK="" | |
7795 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 | |
6f72b082 | 7796 | echo "configure:7797: checking for Mesa library" >&5 |
10f2d63a VZ |
7797 | |
7798 | ac_find_libraries= | |
7799 | for ac_dir in $SEARCH_LIB; | |
7800 | do | |
7801 | for ac_extension in a so sl; do | |
7802 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
7803 | ac_find_libraries=$ac_dir | |
7804 | break 2 | |
7805 | fi | |
7806 | done | |
7807 | done | |
7808 | ||
7809 | if test "$ac_find_libraries" != "" ; then | |
7810 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
7811 | MESA_LINK="-lMesaGL" | |
7812 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
7813 | else | |
7814 | { echo "configure: error: no" 1>&2; exit 1; } | |
7815 | fi | |
7816 | ||
8916026b | 7817 | GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" |
10f2d63a VZ |
7818 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" |
7819 | WXWINE=1 | |
7820 | TOOLKIT=MSW | |
7821 | ||
7822 | GUIHEADERS="\$(MSW_HEADERS)" | |
7823 | GUIOBJS="\$(MSW_GUIOBJS)" | |
7824 | COMMONOBJS="\$(MSW_COMMONOBJS)" | |
7825 | GENERICOBJS="\$(MSW_GENERICOBJS)" | |
7826 | GUIDEPS="\$(MSW_GUIDEPS)" | |
7827 | COMMONDEPS="\$(MSW_COMMONDEPS)" | |
7828 | GENERICDEPS="\$(MSW_GENERICDEPS)" | |
7829 | UNIXOBJS="\$(UNIX_OBJS)" | |
d9d8273d | 7830 | UNIXDEPS="\$(UNIX_DEPS)" |
10f2d63a VZ |
7831 | GUIDIST=MSW_DIST |
7832 | fi | |
7833 | ||
37d403aa JS |
7834 | |
7835 | # If we find X, set shell vars x_includes and x_libraries to the | |
ab9b9eab VZ |
7836 | # paths, otherwise set no_x=yes. |
7837 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
7838 | # --without-x overrides everything else, but does not touch the cache. | |
7839 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
6f72b082 | 7840 | echo "configure:7841: checking for X" >&5 |
ab9b9eab VZ |
7841 | |
7842 | # Check whether --with-x or --without-x was given. | |
7843 | if test "${with_x+set}" = set; then | |
7844 | withval="$with_x" | |
7845 | : | |
7846 | fi | |
ba337fe7 | 7847 | |
ab9b9eab VZ |
7848 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
7849 | if test "x$with_x" = xno; then | |
7850 | # The user explicitly disabled X. | |
7851 | have_x=disabled | |
7852 | else | |
7853 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
7854 | # Both variables are already set. | |
7855 | have_x=yes | |
7856 | else | |
7857 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then | |
7858 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7859 | else | |
7860 | # One or both of the vars are not set, and there is no cached value. | |
7861 | ac_x_includes=NO ac_x_libraries=NO | |
7862 | rm -fr conftestdir | |
7863 | if mkdir conftestdir; then | |
7864 | cd conftestdir | |
7865 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
7866 | cat > Imakefile <<'EOF' | |
7867 | acfindx: | |
7868 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
7869 | EOF | |
7870 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
7871 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
7872 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
7873 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
10f2d63a | 7874 | for ac_extension in a so sl; do |
ab9b9eab VZ |
7875 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
7876 | test -f $ac_im_libdir/libX11.$ac_extension; then | |
7877 | ac_im_usrlibdir=$ac_im_libdir; break | |
10f2d63a VZ |
7878 | fi |
7879 | done | |
ab9b9eab VZ |
7880 | # Screen out bogus values from the imake configuration. They are |
7881 | # bogus both because they are the default anyway, and because | |
7882 | # using them would break gcc on systems where it needs fixed includes. | |
7883 | case "$ac_im_incroot" in | |
7884 | /usr/include) ;; | |
7885 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; | |
7886 | esac | |
7887 | case "$ac_im_usrlibdir" in | |
7888 | /usr/lib | /lib) ;; | |
7889 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; | |
7890 | esac | |
ba337fe7 | 7891 | fi |
ab9b9eab VZ |
7892 | cd .. |
7893 | rm -fr conftestdir | |
7894 | fi | |
10f2d63a | 7895 | |
ab9b9eab VZ |
7896 | if test "$ac_x_includes" = NO; then |
7897 | # Guess where to find include files, by looking for this one X11 .h file. | |
7898 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
ba337fe7 | 7899 | |
ab9b9eab VZ |
7900 | # First, try using that file with no special directory specified. |
7901 | cat > conftest.$ac_ext <<EOF | |
6f72b082 | 7902 | #line 7903 "configure" |
ab9b9eab VZ |
7903 | #include "confdefs.h" |
7904 | #include <$x_direct_test_include> | |
7905 | EOF | |
7906 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6f72b082 | 7907 | { (eval echo configure:7908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
ab9b9eab VZ |
7908 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7909 | if test -z "$ac_err"; then | |
7910 | rm -rf conftest* | |
7911 | # We can compile using X headers with no special include directory. | |
7912 | ac_x_includes= | |
7913 | else | |
7914 | echo "$ac_err" >&5 | |
7915 | echo "configure: failed program was:" >&5 | |
7916 | cat conftest.$ac_ext >&5 | |
7917 | rm -rf conftest* | |
7918 | # Look for the header file in a standard set of common directories. | |
7919 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
7920 | for ac_dir in \ | |
7921 | /usr/X11/include \ | |
7922 | /usr/X11R6/include \ | |
7923 | /usr/X11R5/include \ | |
7924 | /usr/X11R4/include \ | |
7925 | \ | |
7926 | /usr/include/X11 \ | |
7927 | /usr/include/X11R6 \ | |
7928 | /usr/include/X11R5 \ | |
7929 | /usr/include/X11R4 \ | |
7930 | \ | |
7931 | /usr/local/X11/include \ | |
7932 | /usr/local/X11R6/include \ | |
7933 | /usr/local/X11R5/include \ | |
7934 | /usr/local/X11R4/include \ | |
7935 | \ | |
7936 | /usr/local/include/X11 \ | |
7937 | /usr/local/include/X11R6 \ | |
7938 | /usr/local/include/X11R5 \ | |
7939 | /usr/local/include/X11R4 \ | |
7940 | \ | |
7941 | /usr/X386/include \ | |
7942 | /usr/x386/include \ | |
7943 | /usr/XFree86/include/X11 \ | |
7944 | \ | |
7945 | /usr/include \ | |
7946 | /usr/local/include \ | |
7947 | /usr/unsupported/include \ | |
7948 | /usr/athena/include \ | |
7949 | /usr/local/x11r5/include \ | |
7950 | /usr/lpp/Xamples/include \ | |
7951 | \ | |
7952 | /usr/openwin/include \ | |
7953 | /usr/openwin/share/include \ | |
7954 | ; \ | |
10f2d63a | 7955 | do |
ab9b9eab VZ |
7956 | if test -r "$ac_dir/$x_direct_test_include"; then |
7957 | ac_x_includes=$ac_dir | |
10f2d63a VZ |
7958 | break |
7959 | fi | |
7960 | done | |
ab9b9eab VZ |
7961 | fi |
7962 | rm -f conftest* | |
7963 | fi # $ac_x_includes = NO | |
10f2d63a | 7964 | |
ab9b9eab VZ |
7965 | if test "$ac_x_libraries" = NO; then |
7966 | # Check for the libraries. | |
10f2d63a | 7967 | |
ab9b9eab VZ |
7968 | test -z "$x_direct_test_library" && x_direct_test_library=Xt |
7969 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
10f2d63a | 7970 | |
ab9b9eab VZ |
7971 | # See if we find them without any special options. |
7972 | # Don't add to $LIBS permanently. | |
7973 | ac_save_LIBS="$LIBS" | |
7974 | LIBS="-l$x_direct_test_library $LIBS" | |
7975 | cat > conftest.$ac_ext <<EOF | |
6f72b082 | 7976 | #line 7977 "configure" |
ab9b9eab | 7977 | #include "confdefs.h" |
10f2d63a | 7978 | |
ab9b9eab VZ |
7979 | int main() { |
7980 | ${x_direct_test_function}() | |
7981 | ; return 0; } | |
7982 | EOF | |
6f72b082 | 7983 | if { (eval echo configure:7984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
7984 | rm -rf conftest* |
7985 | LIBS="$ac_save_LIBS" | |
7986 | # We can link X programs with no special library path. | |
7987 | ac_x_libraries= | |
7988 | else | |
7989 | echo "configure: failed program was:" >&5 | |
7990 | cat conftest.$ac_ext >&5 | |
7991 | rm -rf conftest* | |
7992 | LIBS="$ac_save_LIBS" | |
7993 | # First see if replacing the include by lib works. | |
7994 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
7995 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
7996 | /usr/X11/lib \ | |
7997 | /usr/X11R6/lib \ | |
7998 | /usr/X11R5/lib \ | |
7999 | /usr/X11R4/lib \ | |
8000 | \ | |
8001 | /usr/lib/X11 \ | |
8002 | /usr/lib/X11R6 \ | |
8003 | /usr/lib/X11R5 \ | |
8004 | /usr/lib/X11R4 \ | |
8005 | \ | |
8006 | /usr/local/X11/lib \ | |
8007 | /usr/local/X11R6/lib \ | |
8008 | /usr/local/X11R5/lib \ | |
8009 | /usr/local/X11R4/lib \ | |
8010 | \ | |
8011 | /usr/local/lib/X11 \ | |
8012 | /usr/local/lib/X11R6 \ | |
8013 | /usr/local/lib/X11R5 \ | |
8014 | /usr/local/lib/X11R4 \ | |
8015 | \ | |
8016 | /usr/X386/lib \ | |
8017 | /usr/x386/lib \ | |
8018 | /usr/XFree86/lib/X11 \ | |
8019 | \ | |
8020 | /usr/lib \ | |
8021 | /usr/local/lib \ | |
8022 | /usr/unsupported/lib \ | |
8023 | /usr/athena/lib \ | |
8024 | /usr/local/x11r5/lib \ | |
8025 | /usr/lpp/Xamples/lib \ | |
8026 | /lib/usr/lib/X11 \ | |
8027 | \ | |
8028 | /usr/openwin/lib \ | |
8029 | /usr/openwin/share/lib \ | |
8030 | ; \ | |
8031 | do | |
8032 | for ac_extension in a so sl; do | |
8033 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then | |
8034 | ac_x_libraries=$ac_dir | |
8035 | break 2 | |
10f2d63a | 8036 | fi |
10f2d63a | 8037 | done |
ab9b9eab VZ |
8038 | done |
8039 | fi | |
8040 | rm -f conftest* | |
8041 | fi # $ac_x_libraries = NO | |
10f2d63a | 8042 | |
ab9b9eab VZ |
8043 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
8044 | # Didn't find X anywhere. Cache the known absence of X. | |
8045 | ac_cv_have_x="have_x=no" | |
8046 | else | |
8047 | # Record where we found X for the cache. | |
8048 | ac_cv_have_x="have_x=yes \ | |
8049 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
8050 | fi | |
8051 | fi | |
10f2d63a | 8052 | fi |
ab9b9eab VZ |
8053 | eval "$ac_cv_have_x" |
8054 | fi # $with_x != no | |
10f2d63a | 8055 | |
ab9b9eab VZ |
8056 | if test "$have_x" != yes; then |
8057 | echo "$ac_t""$have_x" 1>&6 | |
8058 | no_x=yes | |
8059 | else | |
8060 | # If each of the values was on the command line, it overrides each guess. | |
8061 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
8062 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
8063 | # Update the cache value to reflect the command line values. | |
8064 | ac_cv_have_x="have_x=yes \ | |
8065 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
8066 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 | |
8067 | fi | |
10f2d63a | 8068 | |
ab9b9eab VZ |
8069 | if test "$no_x" = yes; then |
8070 | # Not all programs may use this symbol, but it does not hurt to define it. | |
8071 | cat >> confdefs.h <<\EOF | |
8072 | #define X_DISPLAY_MISSING 1 | |
8073 | EOF | |
10f2d63a | 8074 | |
ab9b9eab VZ |
8075 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
8076 | else | |
8077 | if test -n "$x_includes"; then | |
8078 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
10f2d63a VZ |
8079 | fi |
8080 | ||
ab9b9eab VZ |
8081 | # It would also be nice to do this for all -L options, not just this one. |
8082 | if test -n "$x_libraries"; then | |
8083 | X_LIBS="$X_LIBS -L$x_libraries" | |
8084 | # For Solaris; some versions of Sun CC require a space after -R and | |
8085 | # others require no space. Words are not sufficient . . . . | |
8086 | case "`(uname -sr) 2>/dev/null`" in | |
8087 | "SunOS 5"*) | |
8088 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 | |
6f72b082 | 8089 | echo "configure:8090: checking whether -R must be followed by a space" >&5 |
ab9b9eab VZ |
8090 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
8091 | cat > conftest.$ac_ext <<EOF | |
6f72b082 | 8092 | #line 8093 "configure" |
ab9b9eab | 8093 | #include "confdefs.h" |
10f2d63a | 8094 | |
ab9b9eab | 8095 | int main() { |
788deba1 | 8096 | |
ab9b9eab VZ |
8097 | ; return 0; } |
8098 | EOF | |
6f72b082 | 8099 | if { (eval echo configure:8100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8100 | rm -rf conftest* |
8101 | ac_R_nospace=yes | |
8102 | else | |
8103 | echo "configure: failed program was:" >&5 | |
8104 | cat conftest.$ac_ext >&5 | |
8105 | rm -rf conftest* | |
8106 | ac_R_nospace=no | |
8107 | fi | |
8108 | rm -f conftest* | |
8109 | if test $ac_R_nospace = yes; then | |
8110 | echo "$ac_t""no" 1>&6 | |
8111 | X_LIBS="$X_LIBS -R$x_libraries" | |
8112 | else | |
8113 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
8114 | cat > conftest.$ac_ext <<EOF | |
6f72b082 | 8115 | #line 8116 "configure" |
ab9b9eab | 8116 | #include "confdefs.h" |
788deba1 | 8117 | |
ab9b9eab VZ |
8118 | int main() { |
8119 | ||
8120 | ; return 0; } | |
8121 | EOF | |
6f72b082 | 8122 | if { (eval echo configure:8123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8123 | rm -rf conftest* |
8124 | ac_R_space=yes | |
8125 | else | |
8126 | echo "configure: failed program was:" >&5 | |
8127 | cat conftest.$ac_ext >&5 | |
8128 | rm -rf conftest* | |
8129 | ac_R_space=no | |
8130 | fi | |
8131 | rm -f conftest* | |
8132 | if test $ac_R_space = yes; then | |
8133 | echo "$ac_t""yes" 1>&6 | |
8134 | X_LIBS="$X_LIBS -R $x_libraries" | |
8135 | else | |
8136 | echo "$ac_t""neither works" 1>&6 | |
8137 | fi | |
8138 | fi | |
8139 | LIBS="$ac_xsave_LIBS" | |
8140 | esac | |
8141 | fi | |
8142 | ||
8143 | # Check for system-dependent libraries X programs must link with. | |
8144 | # Do this before checking for the system-independent R6 libraries | |
8145 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
8146 | ||
8147 | if test "$ISC" = yes; then | |
8148 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
8149 | else | |
8150 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X | |
8151 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
8152 | # the Alpha needs dnet_stub (dnet does not exist). | |
8153 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 | |
6f72b082 | 8154 | echo "configure:8155: checking for dnet_ntoa in -ldnet" >&5 |
ab9b9eab VZ |
8155 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
8156 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8157 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8158 | else | |
8159 | ac_save_LIBS="$LIBS" | |
8160 | LIBS="-ldnet $LIBS" | |
8161 | cat > conftest.$ac_ext <<EOF | |
6f72b082 | 8162 | #line 8163 "configure" |
ab9b9eab VZ |
8163 | #include "confdefs.h" |
8164 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8165 | /* We use char because int might match the return type of a gcc2 | |
8166 | builtin and then its argument prototype would still apply. */ | |
8167 | char dnet_ntoa(); | |
8168 | ||
8169 | int main() { | |
8170 | dnet_ntoa() | |
8171 | ; return 0; } | |
8172 | EOF | |
6f72b082 | 8173 | if { (eval echo configure:8174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8174 | rm -rf conftest* |
8175 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8176 | else | |
8177 | echo "configure: failed program was:" >&5 | |
8178 | cat conftest.$ac_ext >&5 | |
8179 | rm -rf conftest* | |
8180 | eval "ac_cv_lib_$ac_lib_var=no" | |
8181 | fi | |
8182 | rm -f conftest* | |
8183 | LIBS="$ac_save_LIBS" | |
8184 | ||
8185 | fi | |
8186 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8187 | echo "$ac_t""yes" 1>&6 | |
8188 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
8189 | else | |
8190 | echo "$ac_t""no" 1>&6 | |
8191 | fi | |
8192 | ||
8193 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
8194 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 | |
6f72b082 | 8195 | echo "configure:8196: checking for dnet_ntoa in -ldnet_stub" >&5 |
ab9b9eab VZ |
8196 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
8197 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8198 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8199 | else | |
8200 | ac_save_LIBS="$LIBS" | |
8201 | LIBS="-ldnet_stub $LIBS" | |
8202 | cat > conftest.$ac_ext <<EOF | |
6f72b082 | 8203 | #line 8204 "configure" |
ab9b9eab VZ |
8204 | #include "confdefs.h" |
8205 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8206 | /* We use char because int might match the return type of a gcc2 | |
8207 | builtin and then its argument prototype would still apply. */ | |
8208 | char dnet_ntoa(); | |
8209 | ||
8210 | int main() { | |
8211 | dnet_ntoa() | |
8212 | ; return 0; } | |
8213 | EOF | |
6f72b082 | 8214 | if { (eval echo configure:8215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8215 | rm -rf conftest* |
8216 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8217 | else | |
8218 | echo "configure: failed program was:" >&5 | |
8219 | cat conftest.$ac_ext >&5 | |
8220 | rm -rf conftest* | |
8221 | eval "ac_cv_lib_$ac_lib_var=no" | |
8222 | fi | |
8223 | rm -f conftest* | |
8224 | LIBS="$ac_save_LIBS" | |
8225 | ||
8226 | fi | |
8227 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8228 | echo "$ac_t""yes" 1>&6 | |
8229 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
8230 | else | |
8231 | echo "$ac_t""no" 1>&6 | |
8232 | fi | |
8233 | ||
8234 | fi | |
8235 | ||
8236 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
8237 | # to get the SysV transport functions. | |
8238 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) | |
8239 | # needs -lnsl. | |
8240 | # The nsl library prevents programs from opening the X display | |
8241 | # on Irix 5.2, according to dickey@clark.net. | |
8242 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
6f72b082 | 8243 | echo "configure:8244: checking for gethostbyname" >&5 |
ab9b9eab VZ |
8244 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
8245 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8246 | else | |
8247 | cat > conftest.$ac_ext <<EOF | |
6f72b082 | 8248 | #line 8249 "configure" |
ab9b9eab VZ |
8249 | #include "confdefs.h" |
8250 | /* System header to define __stub macros and hopefully few prototypes, | |
8251 | which can conflict with char gethostbyname(); below. */ | |
8252 | #include <assert.h> | |
8253 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8254 | /* We use char because int might match the return type of a gcc2 | |
8255 | builtin and then its argument prototype would still apply. */ | |
8256 | char gethostbyname(); | |
8257 | ||
8258 | int main() { | |
8259 | ||
8260 | /* The GNU C library defines this for functions which it implements | |
8261 | to always fail with ENOSYS. Some functions are actually named | |
8262 | something starting with __ and the normal name is an alias. */ | |
8263 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
8264 | choke me | |
8265 | #else | |
e8482f24 | 8266 | gethostbyname(); |
ab9b9eab VZ |
8267 | #endif |
8268 | ||
8269 | ; return 0; } | |
8270 | EOF | |
6f72b082 | 8271 | if { (eval echo configure:8272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8272 | rm -rf conftest* |
8273 | eval "ac_cv_func_gethostbyname=yes" | |
8274 | else | |
8275 | echo "configure: failed program was:" >&5 | |
8276 | cat conftest.$ac_ext >&5 | |
8277 | rm -rf conftest* | |
8278 | eval "ac_cv_func_gethostbyname=no" | |
8279 | fi | |
8280 | rm -f conftest* | |
8281 | fi | |
8282 | ||
8283 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
8284 | echo "$ac_t""yes" 1>&6 | |
8285 | : | |
8286 | else | |
8287 | echo "$ac_t""no" 1>&6 | |
8288 | fi | |
8289 | ||
8290 | if test $ac_cv_func_gethostbyname = no; then | |
8291 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 | |
6f72b082 | 8292 | echo "configure:8293: checking for gethostbyname in -lnsl" >&5 |
ab9b9eab VZ |
8293 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
8294 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8295 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8296 | else | |
8297 | ac_save_LIBS="$LIBS" | |
8298 | LIBS="-lnsl $LIBS" | |
8299 | cat > conftest.$ac_ext <<EOF | |
6f72b082 | 8300 | #line 8301 "configure" |
ab9b9eab VZ |
8301 | #include "confdefs.h" |
8302 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8303 | /* We use char because int might match the return type of a gcc2 | |
8304 | builtin and then its argument prototype would still apply. */ | |
8305 | char gethostbyname(); | |
8306 | ||
8307 | int main() { | |
8308 | gethostbyname() | |
8309 | ; return 0; } | |
8310 | EOF | |
6f72b082 | 8311 | if { (eval echo configure:8312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8312 | rm -rf conftest* |
8313 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8314 | else | |
8315 | echo "configure: failed program was:" >&5 | |
8316 | cat conftest.$ac_ext >&5 | |
8317 | rm -rf conftest* | |
8318 | eval "ac_cv_lib_$ac_lib_var=no" | |
8319 | fi | |
8320 | rm -f conftest* | |
8321 | LIBS="$ac_save_LIBS" | |
8322 | ||
8323 | fi | |
8324 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8325 | echo "$ac_t""yes" 1>&6 | |
8326 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
8327 | else | |
8328 | echo "$ac_t""no" 1>&6 | |
8329 | fi | |
8330 | ||
8331 | fi | |
8332 | ||
8333 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
8334 | # socket/setsockopt and other routines are undefined under SCO ODT | |
8335 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
8336 | # on later versions), says simon@lia.di.epfl.ch: it contains | |
8337 | # gethostby* variants that don't use the nameserver (or something). | |
8338 | # -lsocket must be given before -lnsl if both are needed. | |
8339 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
8340 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
6f72b082 | 8341 | echo "configure:8342: checking for connect" >&5 |
ab9b9eab VZ |
8342 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
8343 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8344 | else | |
8345 | cat > conftest.$ac_ext <<EOF | |
6f72b082 | 8346 | #line 8347 "configure" |
ab9b9eab VZ |
8347 | #include "confdefs.h" |
8348 | /* System header to define __stub macros and hopefully few prototypes, | |
8349 | which can conflict with char connect(); below. */ | |
8350 | #include <assert.h> | |
8351 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8352 | /* We use char because int might match the return type of a gcc2 | |
8353 | builtin and then its argument prototype would still apply. */ | |
8354 | char connect(); | |
8355 | ||
8356 | int main() { | |
8357 | ||
8358 | /* The GNU C library defines this for functions which it implements | |
8359 | to always fail with ENOSYS. Some functions are actually named | |
8360 | something starting with __ and the normal name is an alias. */ | |
8361 | #if defined (__stub_connect) || defined (__stub___connect) | |
8362 | choke me | |
8363 | #else | |
e8482f24 | 8364 | connect(); |
ab9b9eab VZ |
8365 | #endif |
8366 | ||
8367 | ; return 0; } | |
8368 | EOF | |
6f72b082 | 8369 | if { (eval echo configure:8370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8370 | rm -rf conftest* |
8371 | eval "ac_cv_func_connect=yes" | |
8372 | else | |
8373 | echo "configure: failed program was:" >&5 | |
8374 | cat conftest.$ac_ext >&5 | |
8375 | rm -rf conftest* | |
8376 | eval "ac_cv_func_connect=no" | |
8377 | fi | |
8378 | rm -f conftest* | |
8379 | fi | |
8380 | ||
8381 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
8382 | echo "$ac_t""yes" 1>&6 | |
8383 | : | |
8384 | else | |
8385 | echo "$ac_t""no" 1>&6 | |
8386 | fi | |
8387 | ||
8388 | if test $ac_cv_func_connect = no; then | |
8389 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 | |
6f72b082 | 8390 | echo "configure:8391: checking for connect in -lsocket" >&5 |
ab9b9eab VZ |
8391 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
8392 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8393 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8394 | else | |
8395 | ac_save_LIBS="$LIBS" | |
8396 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
8397 | cat > conftest.$ac_ext <<EOF | |
6f72b082 | 8398 | #line 8399 "configure" |
ab9b9eab VZ |
8399 | #include "confdefs.h" |
8400 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8401 | /* We use char because int might match the return type of a gcc2 | |
8402 | builtin and then its argument prototype would still apply. */ | |
8403 | char connect(); | |
8404 | ||
8405 | int main() { | |
8406 | connect() | |
8407 | ; return 0; } | |
8408 | EOF | |
6f72b082 | 8409 | if { (eval echo configure:8410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8410 | rm -rf conftest* |
8411 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8412 | else | |
8413 | echo "configure: failed program was:" >&5 | |
8414 | cat conftest.$ac_ext >&5 | |
8415 | rm -rf conftest* | |
8416 | eval "ac_cv_lib_$ac_lib_var=no" | |
8417 | fi | |
8418 | rm -f conftest* | |
8419 | LIBS="$ac_save_LIBS" | |
8420 | ||
8421 | fi | |
8422 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8423 | echo "$ac_t""yes" 1>&6 | |
8424 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
8425 | else | |
8426 | echo "$ac_t""no" 1>&6 | |
8427 | fi | |
8428 | ||
8429 | fi | |
8430 | ||
8431 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. | |
8432 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
6f72b082 | 8433 | echo "configure:8434: checking for remove" >&5 |
ab9b9eab VZ |
8434 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
8435 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8436 | else | |
8437 | cat > conftest.$ac_ext <<EOF | |
6f72b082 | 8438 | #line 8439 "configure" |
ab9b9eab VZ |
8439 | #include "confdefs.h" |
8440 | /* System header to define __stub macros and hopefully few prototypes, | |
8441 | which can conflict with char remove(); below. */ | |
8442 | #include <assert.h> | |
8443 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8444 | /* We use char because int might match the return type of a gcc2 | |
8445 | builtin and then its argument prototype would still apply. */ | |
8446 | char remove(); | |
8447 | ||
8448 | int main() { | |
8449 | ||
8450 | /* The GNU C library defines this for functions which it implements | |
8451 | to always fail with ENOSYS. Some functions are actually named | |
8452 | something starting with __ and the normal name is an alias. */ | |
8453 | #if defined (__stub_remove) || defined (__stub___remove) | |
8454 | choke me | |
8455 | #else | |
e8482f24 | 8456 | remove(); |
ab9b9eab VZ |
8457 | #endif |
8458 | ||
8459 | ; return 0; } | |
8460 | EOF | |
6f72b082 | 8461 | if { (eval echo configure:8462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8462 | rm -rf conftest* |
8463 | eval "ac_cv_func_remove=yes" | |
8464 | else | |
8465 | echo "configure: failed program was:" >&5 | |
8466 | cat conftest.$ac_ext >&5 | |
8467 | rm -rf conftest* | |
8468 | eval "ac_cv_func_remove=no" | |
8469 | fi | |
8470 | rm -f conftest* | |
8471 | fi | |
8472 | ||
8473 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
8474 | echo "$ac_t""yes" 1>&6 | |
8475 | : | |
8476 | else | |
8477 | echo "$ac_t""no" 1>&6 | |
8478 | fi | |
8479 | ||
8480 | if test $ac_cv_func_remove = no; then | |
8481 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 | |
6f72b082 | 8482 | echo "configure:8483: checking for remove in -lposix" >&5 |
ab9b9eab VZ |
8483 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
8484 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8485 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8486 | else | |
8487 | ac_save_LIBS="$LIBS" | |
8488 | LIBS="-lposix $LIBS" | |
8489 | cat > conftest.$ac_ext <<EOF | |
6f72b082 | 8490 | #line 8491 "configure" |
ab9b9eab VZ |
8491 | #include "confdefs.h" |
8492 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8493 | /* We use char because int might match the return type of a gcc2 | |
8494 | builtin and then its argument prototype would still apply. */ | |
8495 | char remove(); | |
8496 | ||
8497 | int main() { | |
8498 | remove() | |
8499 | ; return 0; } | |
8500 | EOF | |
6f72b082 | 8501 | if { (eval echo configure:8502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8502 | rm -rf conftest* |
8503 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8504 | else | |
8505 | echo "configure: failed program was:" >&5 | |
8506 | cat conftest.$ac_ext >&5 | |
8507 | rm -rf conftest* | |
8508 | eval "ac_cv_lib_$ac_lib_var=no" | |
8509 | fi | |
8510 | rm -f conftest* | |
8511 | LIBS="$ac_save_LIBS" | |
8512 | ||
8513 | fi | |
8514 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8515 | echo "$ac_t""yes" 1>&6 | |
8516 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
8517 | else | |
8518 | echo "$ac_t""no" 1>&6 | |
8519 | fi | |
8520 | ||
8521 | fi | |
8522 | ||
8523 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
8524 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 | |
6f72b082 | 8525 | echo "configure:8526: checking for shmat" >&5 |
ab9b9eab VZ |
8526 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
8527 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8528 | else | |
8529 | cat > conftest.$ac_ext <<EOF | |
6f72b082 | 8530 | #line 8531 "configure" |
ab9b9eab VZ |
8531 | #include "confdefs.h" |
8532 | /* System header to define __stub macros and hopefully few prototypes, | |
8533 | which can conflict with char shmat(); below. */ | |
8534 | #include <assert.h> | |
8535 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8536 | /* We use char because int might match the return type of a gcc2 | |
8537 | builtin and then its argument prototype would still apply. */ | |
8538 | char shmat(); | |
8539 | ||
8540 | int main() { | |
8541 | ||
8542 | /* The GNU C library defines this for functions which it implements | |
8543 | to always fail with ENOSYS. Some functions are actually named | |
8544 | something starting with __ and the normal name is an alias. */ | |
8545 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
8546 | choke me | |
8547 | #else | |
e8482f24 | 8548 | shmat(); |
ab9b9eab VZ |
8549 | #endif |
8550 | ||
8551 | ; return 0; } | |
8552 | EOF | |
6f72b082 | 8553 | if { (eval echo configure:8554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8554 | rm -rf conftest* |
8555 | eval "ac_cv_func_shmat=yes" | |
8556 | else | |
8557 | echo "configure: failed program was:" >&5 | |
8558 | cat conftest.$ac_ext >&5 | |
8559 | rm -rf conftest* | |
8560 | eval "ac_cv_func_shmat=no" | |
8561 | fi | |
8562 | rm -f conftest* | |
8563 | fi | |
8564 | ||
8565 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
8566 | echo "$ac_t""yes" 1>&6 | |
8567 | : | |
8568 | else | |
8569 | echo "$ac_t""no" 1>&6 | |
8570 | fi | |
8571 | ||
8572 | if test $ac_cv_func_shmat = no; then | |
8573 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 | |
6f72b082 | 8574 | echo "configure:8575: checking for shmat in -lipc" >&5 |
ab9b9eab VZ |
8575 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
8576 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8577 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8578 | else | |
8579 | ac_save_LIBS="$LIBS" | |
8580 | LIBS="-lipc $LIBS" | |
8581 | cat > conftest.$ac_ext <<EOF | |
6f72b082 | 8582 | #line 8583 "configure" |
ab9b9eab VZ |
8583 | #include "confdefs.h" |
8584 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8585 | /* We use char because int might match the return type of a gcc2 | |
8586 | builtin and then its argument prototype would still apply. */ | |
8587 | char shmat(); | |
8588 | ||
8589 | int main() { | |
8590 | shmat() | |
8591 | ; return 0; } | |
8592 | EOF | |
6f72b082 | 8593 | if { (eval echo configure:8594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8594 | rm -rf conftest* |
8595 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8596 | else | |
8597 | echo "configure: failed program was:" >&5 | |
8598 | cat conftest.$ac_ext >&5 | |
8599 | rm -rf conftest* | |
8600 | eval "ac_cv_lib_$ac_lib_var=no" | |
8601 | fi | |
8602 | rm -f conftest* | |
8603 | LIBS="$ac_save_LIBS" | |
8604 | ||
8605 | fi | |
8606 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8607 | echo "$ac_t""yes" 1>&6 | |
8608 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
8609 | else | |
8610 | echo "$ac_t""no" 1>&6 | |
8611 | fi | |
8612 | ||
8613 | fi | |
8614 | fi | |
8615 | ||
8616 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
8617 | ac_save_LDFLAGS="$LDFLAGS" | |
8618 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
8619 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
8620 | # check for ICE first), but we must link in the order -lSM -lICE or | |
8621 | # we get undefined symbols. So assume we have SM if we have ICE. | |
8622 | # These have to be linked with before -lX11, unlike the other | |
8623 | # libraries we check for below, so use a different variable. | |
8624 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. | |
8625 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
6f72b082 | 8626 | echo "configure:8627: checking for IceConnectionNumber in -lICE" >&5 |
ab9b9eab VZ |
8627 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
8628 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8629 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8630 | else | |
8631 | ac_save_LIBS="$LIBS" | |
8632 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
8633 | cat > conftest.$ac_ext <<EOF | |
6f72b082 | 8634 | #line 8635 "configure" |
ab9b9eab VZ |
8635 | #include "confdefs.h" |
8636 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8637 | /* We use char because int might match the return type of a gcc2 | |
8638 | builtin and then its argument prototype would still apply. */ | |
8639 | char IceConnectionNumber(); | |
8640 | ||
8641 | int main() { | |
8642 | IceConnectionNumber() | |
8643 | ; return 0; } | |
8644 | EOF | |
6f72b082 | 8645 | if { (eval echo configure:8646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
ab9b9eab VZ |
8646 | rm -rf conftest* |
8647 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8648 | else | |
8649 | echo "configure: failed program was:" >&5 | |
8650 | cat conftest.$ac_ext >&5 | |
8651 | rm -rf conftest* | |
8652 | eval "ac_cv_lib_$ac_lib_var=no" | |
8653 | fi | |
8654 | rm -f conftest* | |
8655 | LIBS="$ac_save_LIBS" | |
8656 | ||
8657 | fi | |
8658 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8659 | echo "$ac_t""yes" 1>&6 | |
8660 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
8661 | else | |
8662 | echo "$ac_t""no" 1>&6 | |
8663 | fi | |
8664 | ||
8665 | LDFLAGS="$ac_save_LDFLAGS" | |
8666 | ||
8667 | fi | |
8668 | ||
37d403aa JS |
8669 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
8670 | LDFLAGS="$LDFLAGS $X_LIBS" | |
ab9b9eab | 8671 | |
37d403aa | 8672 | if test "$wxUSE_MOTIF" = 1; then |
ab9b9eab | 8673 | if test "$no_x" = "yes"; then |
37d403aa | 8674 | { echo "configure: error: X11 not found" 1>&2; exit 1; } |
ab9b9eab VZ |
8675 | fi |
8676 | ||
8677 | GUI_TK_LIBRARY="$X_LIBS" | |
8678 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
8679 | ||
dad6c0ea VZ |
8680 | AFMINSTALL=afminstall |
8681 | ||
ab9b9eab | 8682 | |
cd6d6d5b VZ |
8683 | COMPILED_X_PROGRAM=0 |
8684 | ||
ab9b9eab | 8685 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 |
37d403aa | 8686 | echo "configure:8687: checking for Motif/Lesstif headers" >&5 |
ab9b9eab VZ |
8687 | |
8688 | ac_find_includes= | |
8689 | for ac_dir in $SEARCH_INCLUDE; | |
8690 | do | |
8691 | if test -f "$ac_dir/Xm/Xm.h"; then | |
8692 | ac_find_includes=$ac_dir | |
8693 | break | |
8694 | fi | |
8695 | done | |
8696 | ||
8697 | if test "$ac_find_includes" != "" ; then | |
8698 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
8699 | else | |
cd6d6d5b | 8700 | cat > conftest.$ac_ext <<EOF |
37d403aa | 8701 | #line 8702 "configure" |
cd6d6d5b VZ |
8702 | #include "confdefs.h" |
8703 | ||
8704 | #include <Xm/Xm.h> | |
8705 | ||
8706 | int main() { | |
8707 | ||
8708 | int version; | |
8709 | ||
8710 | version = xmUseVersion; | |
8711 | ||
8712 | ; return 0; } | |
8713 | EOF | |
37d403aa | 8714 | if { (eval echo configure:8715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
cd6d6d5b VZ |
8715 | rm -rf conftest* |
8716 | ||
8717 | echo "$ac_t""found in default search path" 1>&6 | |
8718 | COMPILED_X_PROGRAM=1 | |
8719 | ||
8720 | else | |
8721 | echo "configure: failed program was:" >&5 | |
8722 | cat conftest.$ac_ext >&5 | |
8723 | rm -rf conftest* | |
8724 | ||
8725 | echo "$ac_t""no" 1>&6 | |
8726 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
8727 | ||
8728 | ||
8729 | fi | |
8730 | rm -f conftest* | |
ab9b9eab VZ |
8731 | fi |
8732 | ||
cd6d6d5b VZ |
8733 | if test "$COMPILED_X_PROGRAM" = 0; then |
8734 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
37d403aa | 8735 | echo "configure:8736: checking for Motif/Lesstif library" >&5 |
cd6d6d5b | 8736 | |
ab9b9eab VZ |
8737 | ac_find_libraries= |
8738 | for ac_dir in $SEARCH_LIB; | |
8739 | do | |
8740 | for ac_extension in a so sl; do | |
8741 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
8742 | ac_find_libraries=$ac_dir | |
8743 | break 2 | |
8744 | fi | |
8745 | done | |
8746 | done | |
8747 | ||
cd6d6d5b VZ |
8748 | if test "$ac_find_libraries" != "" ; then |
8749 | ||
ab9b9eab VZ |
8750 | ac_path_to_include=$ac_find_includes |
8751 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
8752 | result=$? | |
8753 | if test $result = 0; then | |
8754 | ac_path_to_include="" | |
8755 | else | |
8756 | ac_path_to_include="-I$ac_find_includes" | |
8757 | fi | |
8758 | ||
cd6d6d5b | 8759 | |
ab9b9eab VZ |
8760 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
8761 | result=$? | |
8762 | if test $result = 0; then | |
8763 | ac_path_to_link="" | |
8764 | else | |
8765 | ac_path_to_link="-L$ac_find_libraries" | |
8766 | fi | |
8767 | ||
8768 | ||
cd6d6d5b VZ |
8769 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" |
8770 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include" | |
8771 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
8772 | else | |
8773 | cat > conftest.$ac_ext <<EOF | |
37d403aa | 8774 | #line 8775 "configure" |
cd6d6d5b | 8775 | #include "confdefs.h" |
ab9b9eab | 8776 | |
cd6d6d5b VZ |
8777 | #include <Xm/Xm.h> |
8778 | ||
8779 | int main() { | |
ab9b9eab | 8780 | |
cd6d6d5b | 8781 | int version; |
ab9b9eab | 8782 | |
cd6d6d5b VZ |
8783 | version = xmUseVersion; |
8784 | ||
8785 | ; return 0; } | |
8786 | EOF | |
37d403aa | 8787 | if { (eval echo configure:8788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
cd6d6d5b VZ |
8788 | rm -rf conftest* |
8789 | ||
8790 | echo "$ac_t""found in default search path" 1>&6 | |
8791 | COMPILED_X_PROGRAM=1 | |
8792 | ||
8793 | else | |
8794 | echo "configure: failed program was:" >&5 | |
8795 | cat conftest.$ac_ext >&5 | |
8796 | rm -rf conftest* | |
8797 | ||
8798 | echo "$ac_t""no" 1>&6 | |
8799 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
8800 | ||
8801 | ||
8802 | fi | |
8803 | rm -f conftest* | |
8804 | fi | |
ab9b9eab VZ |
8805 | fi |
8806 | ||
cd6d6d5b | 8807 | |
ab9b9eab VZ |
8808 | XPM_LINK="" |
8809 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
37d403aa | 8810 | echo "configure:8811: checking for Xpm library" >&5 |
ab9b9eab VZ |
8811 | |
8812 | ac_find_libraries= | |
8813 | for ac_dir in $SEARCH_LIB; | |
8814 | do | |
8815 | for ac_extension in a so sl; do | |
8816 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
8817 | ac_find_libraries=$ac_dir | |
8818 | break 2 | |
8819 | fi | |
8820 | done | |
8821 | done | |
8822 | ||
8823 | if test "$ac_find_libraries" != "" ; then | |
8824 | ||
8825 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
8826 | result=$? | |
8827 | if test $result = 0; then | |
8828 | ac_path_to_link="" | |
8829 | else | |
8830 | ac_path_to_link="-L$ac_find_libraries" | |
8831 | fi | |
8832 | ||
8833 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" | |
8834 | XPM_LINK="-lXpm " | |
8835 | cat >> confdefs.h <<\EOF | |
8836 | #define wxHAVE_LIB_XPM 1 | |
8837 | EOF | |
8838 | ||
8839 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
8840 | else | |
cd6d6d5b | 8841 | cat > conftest.$ac_ext <<EOF |
37d403aa | 8842 | #line 8843 "configure" |
cd6d6d5b VZ |
8843 | #include "confdefs.h" |
8844 | ||
8845 | #include <X11/xpm.h> | |
8846 | ||
8847 | int main() { | |
8848 | ||
8849 | int version; | |
8850 | ||
8851 | version = XpmLibraryVersion(); | |
8852 | ||
8853 | ; return 0; } | |
8854 | EOF | |
37d403aa | 8855 | if { (eval echo configure:8856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
cd6d6d5b VZ |
8856 | rm -rf conftest* |
8857 | ||
f6bcfd97 BP |
8858 | XPM_LINK="-lXpm " |
8859 | cat >> confdefs.h <<\EOF | |
3ace2e6d SN |
8860 | #define wxHAVE_LIB_XPM 1 |
8861 | EOF | |
8862 | ||
8863 | echo "$ac_t""found in default search path" 1>&6 | |
cd6d6d5b VZ |
8864 | COMPILED_X_PROGRAM=0 |
8865 | ||
8866 | else | |
8867 | echo "configure: failed program was:" >&5 | |
8868 | cat conftest.$ac_ext >&5 | |
8869 | rm -rf conftest* | |
8870 | ||
8871 | echo "$ac_t""no" 1>&6 | |
8872 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
8873 | ||
8874 | ||
8875 | fi | |
8876 | rm -f conftest* | |
ab9b9eab VZ |
8877 | fi |
8878 | ||
8916026b | 8879 | GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11" |
ab9b9eab VZ |
8880 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" |
8881 | TOOLKIT=MOTIF | |
8882 | ||
8883 | GUIHEADERS="\$(MOTIF_HEADERS)" | |
8884 | GUIOBJS="\$(MOTIF_GUIOBJS)" | |
8885 | COMMONOBJS="\$(MOTIF_COMMONOBJS)" | |
788deba1 VZ |
8886 | GENERICOBJS="\$(MOTIF_GENERICOBJS)" |
8887 | GUIDEPS="\$(MOTIF_GUIDEPS)" | |
8888 | COMMONDEPS="\$(MOTIF_COMMONDEPS)" | |
10f2d63a VZ |
8889 | GENERICDEPS="\$(MOTIF_GENERICDEPS)" |
8890 | UNIXOBJS="\$(UNIX_OBJS)" | |
d9d8273d | 8891 | UNIXDEPS="\$(UNIX_DEPS)" |
10f2d63a VZ |
8892 | GUIDIST=MOTIF_DIST |
8893 | fi | |
8894 | ||
e07802fc VZ |
8895 | if test "$wxUSE_PM" = 1; then |
8896 | TOOLKIT=PM | |
8897 | ||
8898 | GUIOBJS="\$(PM_GUIOBJS)" | |
8899 | GUIHEADERS="\$(PM_HEADERS)" | |
8900 | COMMONOBJS="\$(PM_COMMONOBJS)" | |
8901 | GENERICOBJS="\$(PM_GENERICOBJS)" | |
8902 | GUIDEPS="\$(PM_GUIDEPS)" | |
8903 | COMMONDEPS="\$(PM_COMMONDEPS)" | |
8904 | GENERICDEPS="\$(PM_GENERICDEPS)" | |
8905 | UNIXOBJS= | |
8906 | UNIXDEPS= | |
8907 | GUIDIST=GTK_DIST | |
8908 | fi | |
8909 | ||
8910 | if test "$TOOLKIT" != "PM" ; then | |
ec14dd32 | 8911 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` |
e07802fc VZ |
8912 | else |
8913 | TOOLKIT_DIR="os2" | |
8914 | fi | |
10f2d63a | 8915 | |
f6bcfd97 BP |
8916 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then |
8917 | TOOLKIT_NAME="${TOOLKIT_DIR}d" | |
8918 | else | |
8919 | TOOLKIT_NAME="${TOOLKIT_DIR}" | |
8920 | fi | |
8921 | ||
2224580a | 8922 | TOOLKIT_DEF="-D__WX${TOOLKIT}__" |
10f2d63a | 8923 | |
f6bcfd97 | 8924 | WX_LIBRARY="wx_${TOOLKIT_NAME}" |
10f2d63a | 8925 | |
bdad4e7e | 8926 | ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(OGLOBJS)" |
3fcdd07b | 8927 | |
b089607b | 8928 | if test "$TOOLKIT" != "MSW"; then |
cc977e5f RR |
8929 | if test "$wxUSE_ODBC" = "yes" ; then |
8930 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
8931 | fi | |
3fcdd07b VZ |
8932 | fi |
8933 | ||
d9d8273d | 8934 | if test "$wxUSE_LIBJPEG" = "yes" ; then |
2224580a | 8935 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" |
d9d8273d RR |
8936 | fi |
8937 | if test "$wxUSE_LIBTIFF" = "yes" ; then | |
8938 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
8939 | fi | |
8940 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
8941 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
8942 | fi | |
8943 | if test "$wxUSE_ZLIB" = "yes" ; then | |
8944 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
8945 | fi | |
bdad4e7e | 8946 | ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS) \$(OGLDEPS)" |
2224580a VZ |
8947 | |
8948 | PORT_FILES="src/\$(TOOLKITDIR)/files.lst" | |
8949 | RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst" | |
8950 | RPM_SPEC="wx\$(TOOLKIT).spec" | |
8951 | ||
8952 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
8953 | DISTDIR="wx\$(TOOLKIT)" | |
10f2d63a | 8954 | else |
dad6c0ea VZ |
8955 | USE_GUI=0 |
8956 | ||
f6bcfd97 BP |
8957 | TOOLKIT_DIR="base" |
8958 | ||
8959 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
8960 | TOOLKIT_NAME="${TOOLKIT_DIR}d" | |
8961 | else | |
8962 | TOOLKIT_NAME="${TOOLKIT_DIR}" | |
8963 | fi | |
8964 | ||
07eb77a6 RL |
8965 | TOOLKIT_DEF="-D__WXBASE__" |
8966 | ||
2224580a VZ |
8967 | ALL_OBJECTS="\$(BASE_OBJS) \${BASE_UNIX_OBJS}" |
8968 | ALL_DEPFILES="\${BASE_DEPS} \${BASE_UNIX_DEPS}" | |
10f2d63a | 8969 | |
a20b6d3a VZ |
8970 | if test "$wxUSE_ZLIB" = "yes" ; then |
8971 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
8972 | fi | |
8973 | ||
f6bcfd97 | 8974 | WX_LIBRARY="wx_${TOOLKIT_NAME}" |
2224580a VZ |
8975 | |
8976 | PORT_FILES="src/files.lst" | |
8977 | RPM_FILES="src/rpmfiles.lst" | |
8978 | RPM_SPEC="wxBase.spec" | |
8979 | ||
8980 | GUIDIST="BASE_DIST" | |
8981 | DISTDIR="wxBase" | |
10f2d63a VZ |
8982 | fi |
8983 | ||
8984 | WX_LIBRARY_NAME="lib${WX_LIBRARY}.la" | |
bdad4e7e | 8985 | WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la" |
10f2d63a VZ |
8986 | |
8987 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
bdad4e7e | 8988 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a" |
10f2d63a VZ |
8989 | |
8990 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
bdad4e7e | 8991 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" |
10f2d63a VZ |
8992 | |
8993 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}" | |
8994 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so" | |
8995 | WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so" | |
bdad4e7e RR |
8996 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}" |
8997 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so" | |
8998 | WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so" | |
10f2d63a VZ |
8999 | |
9000 | SHARED_LD= | |
9001 | PIC_FLAG= | |
9002 | WX_ALL= | |
9003 | WX_ALL_INSTALLED= | |
1d62a8b4 | 9004 | BURNT_LIBRARY_NAME= |
f6bcfd97 | 9005 | WX_TARGET_LIBRARY_SONAME= |
10f2d63a | 9006 | |
b12915c1 | 9007 | |
10f2d63a VZ |
9008 | if test "$wxUSE_SHARED" = "yes"; then |
9009 | case "${host}" in | |
9010 | *-hp-hpux* ) | |
9011 | if test "$GCC" = yes ; then | |
69ffe1d2 | 9012 | SHARED_LD="${CC} -shared -fPIC -o" |
10f2d63a VZ |
9013 | PIC_FLAG="-fPIC" |
9014 | else | |
f6bcfd97 BP |
9015 | LDFLAGS="-L/usr/lib" |
9016 | ||
10f2d63a VZ |
9017 | SHARED_LD="${CXX} -b -o" |
9018 | PIC_FLAG="+Z" | |
9019 | fi | |
f6bcfd97 BP |
9020 | WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl" |
9021 | WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl" | |
c661ecca | 9022 | if test "$wxUSE_OPENGL" = "yes"; then |
f6bcfd97 | 9023 | WX_ALL_INSTALLED="preinstall_gl" |
c661ecca RR |
9024 | WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}" |
9025 | else | |
9026 | WX_ALL="${WX_LIBRARY_NAME_SHARED}" | |
9027 | fi | |
10f2d63a | 9028 | ;; |
b12915c1 VZ |
9029 | |
9030 | *-*-linux* ) | |
10f2d63a VZ |
9031 | SHARED_LD="${CC} -shared -o" |
9032 | PIC_FLAG="-fPIC" | |
00cf1208 | 9033 | if test "$wxUSE_BURNT_NAME" = "yes" ; then |
05cdfc6f | 9034 | BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}" |
bdad4e7e | 9035 | BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" |
f6bcfd97 | 9036 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" |
00cf1208 | 9037 | fi |
c661ecca RR |
9038 | if test "$wxUSE_OPENGL" = "yes"; then |
9039 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
9040 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
9041 | else | |
9042 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
9043 | WX_ALL="CREATE_LINKS" | |
422107f9 | 9044 | fi |
00cf1208 | 9045 | ;; |
10f2d63a VZ |
9046 | *-*-irix5* | *-*-irix6* ) |
9047 | if test "$GCC" = yes ; then | |
9048 | SHARED_LD="${CC} -shared -o" | |
9049 | PIC_FLAG="-fPIC" | |
9050 | else | |
9051 | SHARED_LD="${CXX} -shared -o" | |
9052 | fi | |
c661ecca RR |
9053 | if test "$wxUSE_OPENGL" = "yes"; then |
9054 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
9055 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
9056 | else | |
9057 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
9058 | WX_ALL="CREATE_LINKS" | |
422107f9 | 9059 | fi |
10f2d63a VZ |
9060 | ;; |
9061 | *-*-solaris2* ) | |
9062 | if test "$GCC" = yes ; then | |
9063 | SHARED_LD="${CC} -shared -o" | |
9064 | PIC_FLAG="-fPIC" | |
f6bcfd97 BP |
9065 | |
9066 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
10f2d63a VZ |
9067 | else |
9068 | SHARED_LD="${CXX} -G -o" | |
9069 | PIC_FLAG="-KPIC" | |
9070 | fi | |
c661ecca RR |
9071 | if test "$wxUSE_OPENGL" = "yes"; then |
9072 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
9073 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
9074 | else | |
9075 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
9076 | WX_ALL="CREATE_LINKS" | |
9077 | fi | |
10f2d63a VZ |
9078 | ;; |
9079 | *-*-sunos4* ) | |
9080 | SHARED_LD="${CC} -shared -o" | |
9081 | PIC_FLAG="-fPIC" | |
9082 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
9083 | WX_ALL="CREATE_LINKS" | |
9084 | ;; | |
9085 | *-*-freebsd* | *-*-netbsd*) | |
9086 | SHARED_LD="${CC} -shared -o" | |
9087 | PIC_FLAG="-fPIC" | |
37d403aa JS |
9088 | if test "$wxUSE_OPENGL" = "yes"; then |
9089 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
9090 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
9091 | else | |
9092 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
9093 | WX_ALL="CREATE_LINKS" | |
9094 | fi | |
10f2d63a VZ |
9095 | ;; |
9096 | *-*-osf* ) | |
9097 | SHARED_LD="${CXX} -shared -o" | |
9098 | PIC_FLAG="-fPIC" | |
9099 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
9100 | WX_ALL="CREATE_LINKS" | |
9101 | ;; | |
9102 | *-*-dgux5* ) | |
9103 | SHARED_LD="${CXX} -shared -o" | |
9104 | PIC_FLAG="-fPIC" | |
9105 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
9106 | WX_ALL="CREATE_LINKS" | |
9107 | ;; | |
9108 | *-*-sysv5* ) | |
9109 | SHARED_LD="${CC} -shared -o" | |
9110 | PIC_FLAG="-fPIC" | |
9111 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
9112 | WX_ALL="CREATE_LINKS" | |
9113 | ;; | |
9114 | *-*-aix* ) | |
9115 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
9116 | WX_ALL=${WX_LIBRARY_NAME_SHARED} | |
9117 | ;; | |
9118 | *-*-cygwin32* ) | |
9119 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
bdad4e7e | 9120 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
9121 | if test "$wxUSE_OPENGL" = "yes"; then |
9122 | WX_ALL_INSTALLED="preinstall_gl" | |
9123 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
9124 | else | |
9125 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
9126 | fi | |
10f2d63a | 9127 | ;; |
b12915c1 | 9128 | *-*-mingw32* ) |
10f2d63a | 9129 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
bdad4e7e | 9130 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
9131 | if test "$wxUSE_OPENGL" = "yes"; then |
9132 | WX_ALL_INSTALLED="preinstall_gl" | |
9133 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
9134 | else | |
9135 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
9136 | fi | |
10f2d63a VZ |
9137 | ;; |
9138 | *-pc-os2_emx ) | |
e07802fc VZ |
9139 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
9140 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10f2d63a | 9141 | ;; |
b12915c1 | 9142 | *-*-beos* ) |
e2b8b066 | 9143 | SHARED_LD="${LD} -shared -o" |
b12915c1 VZ |
9144 | PIC_FLAG="-fPIC" |
9145 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
9146 | WX_ALL="CREATE_LINKS" | |
9147 | ;; | |
10f2d63a VZ |
9148 | *) |
9149 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } | |
9150 | esac | |
9151 | ||
9152 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
9153 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
bdad4e7e | 9154 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" |
10f2d63a | 9155 | fi |
3711412e | 9156 | WX_TARGET_LIBRARY_TYPE="so" |
10f2d63a VZ |
9157 | else |
9158 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
bdad4e7e | 9159 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
9160 | |
9161 | if test "$wxUSE_OPENGL" = "yes"; then | |
9162 | WX_ALL_INSTALLED="preinstall_gl" | |
9163 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
9164 | else | |
9165 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
9166 | fi | |
9167 | ||
9168 | if test "$wxUSE_GUI" = "no"; then | |
9169 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
9170 | fi | |
9171 | ||
3711412e | 9172 | WX_TARGET_LIBRARY_TYPE="a" |
10f2d63a VZ |
9173 | fi |
9174 | ||
9175 | ||
9176 | for ac_hdr in strings.h | |
9177 | do | |
9178 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9179 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
37d403aa | 9180 | echo "configure:9181: checking for $ac_hdr" >&5 |
10f2d63a VZ |
9181 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9182 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9183 | else | |
9184 | cat > conftest.$ac_ext <<EOF | |
37d403aa | 9185 | #line 9186 "configure" |
10f2d63a VZ |
9186 | #include "confdefs.h" |
9187 | #include <$ac_hdr> | |
9188 | EOF | |
9189 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
37d403aa | 9190 | { (eval echo configure:9191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
9191 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9192 | if test -z "$ac_err"; then | |
9193 | rm -rf conftest* | |
9194 | eval "ac_cv_header_$ac_safe=yes" | |
9195 | else | |
9196 | echo "$ac_err" >&5 | |
9197 | echo "configure: failed program was:" >&5 | |
9198 | cat conftest.$ac_ext >&5 | |
9199 | rm -rf conftest* | |
9200 | eval "ac_cv_header_$ac_safe=no" | |
9201 | fi | |
9202 | rm -f conftest* | |
9203 | fi | |
9204 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9205 | echo "$ac_t""yes" 1>&6 | |
9206 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9207 | cat >> confdefs.h <<EOF | |
9208 | #define $ac_tr_hdr 1 | |
9209 | EOF | |
9210 | ||
9211 | else | |
9212 | echo "$ac_t""no" 1>&6 | |
9213 | fi | |
9214 | done | |
9215 | ||
9216 | for ac_hdr in unistd.h | |
9217 | do | |
9218 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9219 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
37d403aa | 9220 | echo "configure:9221: checking for $ac_hdr" >&5 |
10f2d63a VZ |
9221 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9222 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9223 | else | |
9224 | cat > conftest.$ac_ext <<EOF | |
37d403aa | 9225 | #line 9226 "configure" |
10f2d63a VZ |
9226 | #include "confdefs.h" |
9227 | #include <$ac_hdr> | |
9228 | EOF | |
9229 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
37d403aa | 9230 | { (eval echo configure:9231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
9231 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9232 | if test -z "$ac_err"; then | |
9233 | rm -rf conftest* | |
9234 | eval "ac_cv_header_$ac_safe=yes" | |
9235 | else | |
9236 | echo "$ac_err" >&5 | |
9237 | echo "configure: failed program was:" >&5 | |
9238 | cat conftest.$ac_ext >&5 | |
9239 | rm -rf conftest* | |
9240 | eval "ac_cv_header_$ac_safe=no" | |
9241 | fi | |
9242 | rm -f conftest* | |
9243 | fi | |
9244 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9245 | echo "$ac_t""yes" 1>&6 | |
9246 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9247 | cat >> confdefs.h <<EOF | |
9248 | #define $ac_tr_hdr 1 | |
9249 | EOF | |
9250 | ||
9251 | else | |
9252 | echo "$ac_t""no" 1>&6 | |
9253 | fi | |
9254 | done | |
9255 | ||
0fb0dd83 | 9256 | for ac_hdr in fcntl.h |
10f2d63a VZ |
9257 | do |
9258 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9259 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
37d403aa | 9260 | echo "configure:9261: checking for $ac_hdr" >&5 |
10f2d63a VZ |
9261 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9262 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9263 | else | |
9264 | cat > conftest.$ac_ext <<EOF | |
37d403aa | 9265 | #line 9266 "configure" |
10f2d63a VZ |
9266 | #include "confdefs.h" |
9267 | #include <$ac_hdr> | |
9268 | EOF | |
9269 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
37d403aa | 9270 | { (eval echo configure:9271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
9271 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9272 | if test -z "$ac_err"; then | |
9273 | rm -rf conftest* | |
9274 | eval "ac_cv_header_$ac_safe=yes" | |
9275 | else | |
9276 | echo "$ac_err" >&5 | |
9277 | echo "configure: failed program was:" >&5 | |
9278 | cat conftest.$ac_ext >&5 | |
9279 | rm -rf conftest* | |
9280 | eval "ac_cv_header_$ac_safe=no" | |
9281 | fi | |
9282 | rm -f conftest* | |
9283 | fi | |
9284 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9285 | echo "$ac_t""yes" 1>&6 | |
9286 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9287 | cat >> confdefs.h <<EOF | |
9288 | #define $ac_tr_hdr 1 | |
9289 | EOF | |
9290 | ||
9291 | else | |
9292 | echo "$ac_t""no" 1>&6 | |
9293 | fi | |
9294 | done | |
9295 | ||
0fb0dd83 | 9296 | for ac_hdr in wchar.h |
10f2d63a VZ |
9297 | do |
9298 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9299 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
37d403aa | 9300 | echo "configure:9301: checking for $ac_hdr" >&5 |
10f2d63a VZ |
9301 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9302 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9303 | else | |
9304 | cat > conftest.$ac_ext <<EOF | |
37d403aa | 9305 | #line 9306 "configure" |
10f2d63a VZ |
9306 | #include "confdefs.h" |
9307 | #include <$ac_hdr> | |
9308 | EOF | |
9309 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
37d403aa | 9310 | { (eval echo configure:9311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
9311 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9312 | if test -z "$ac_err"; then | |
9313 | rm -rf conftest* | |
9314 | eval "ac_cv_header_$ac_safe=yes" | |
9315 | else | |
9316 | echo "$ac_err" >&5 | |
9317 | echo "configure: failed program was:" >&5 | |
9318 | cat conftest.$ac_ext >&5 | |
9319 | rm -rf conftest* | |
9320 | eval "ac_cv_header_$ac_safe=no" | |
9321 | fi | |
9322 | rm -f conftest* | |
9323 | fi | |
9324 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9325 | echo "$ac_t""yes" 1>&6 | |
9326 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9327 | cat >> confdefs.h <<EOF | |
9328 | #define $ac_tr_hdr 1 | |
9329 | EOF | |
9330 | ||
9331 | else | |
9332 | echo "$ac_t""no" 1>&6 | |
9333 | fi | |
9334 | done | |
9335 | ||
0fb0dd83 | 9336 | for ac_hdr in wcstr.h |
10f2d63a VZ |
9337 | do |
9338 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9339 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
37d403aa | 9340 | echo "configure:9341: checking for $ac_hdr" >&5 |
10f2d63a VZ |
9341 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9342 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9343 | else | |
9344 | cat > conftest.$ac_ext <<EOF | |
37d403aa | 9345 | #line 9346 "configure" |
10f2d63a VZ |
9346 | #include "confdefs.h" |
9347 | #include <$ac_hdr> | |
9348 | EOF | |
9349 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
37d403aa | 9350 | { (eval echo configure:9351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6f72b082 OK |
9351 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9352 | if test -z "$ac_err"; then | |
9353 | rm -rf conftest* | |
9354 | eval "ac_cv_header_$ac_safe=yes" | |
9355 | else | |
9356 | echo "$ac_err" >&5 | |
9357 | echo "configure: failed program was:" >&5 | |
9358 | cat conftest.$ac_ext >&5 | |
9359 | rm -rf conftest* | |
9360 | eval "ac_cv_header_$ac_safe=no" | |
9361 | fi | |
9362 | rm -f conftest* | |
9363 | fi | |
9364 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9365 | echo "$ac_t""yes" 1>&6 | |
9366 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9367 | cat >> confdefs.h <<EOF | |
9368 | #define $ac_tr_hdr 1 | |
9369 | EOF | |
9370 | ||
9371 | else | |
9372 | echo "$ac_t""no" 1>&6 | |
9373 | fi | |
9374 | done | |
9375 | ||
0fb0dd83 | 9376 | for ac_hdr in fnmatch.h |
6f72b082 OK |
9377 | do |
9378 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9379 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
37d403aa | 9380 | echo "configure:9381: checking for $ac_hdr" >&5 |
6f72b082 OK |
9381 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9382 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9383 | else | |
9384 | cat > conftest.$ac_ext <<EOF | |
37d403aa | 9385 | #line 9386 "configure" |
6f72b082 OK |
9386 | #include "confdefs.h" |
9387 | #include <$ac_hdr> | |
9388 | EOF | |
9389 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
37d403aa | 9390 | { (eval echo configure:9391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6f72b082 OK |
9391 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9392 | if test -z "$ac_err"; then | |
9393 | rm -rf conftest* | |
9394 | eval "ac_cv_header_$ac_safe=yes" | |
9395 | else | |
9396 | echo "$ac_err" >&5 | |
9397 | echo "configure: failed program was:" >&5 | |
9398 | cat conftest.$ac_ext >&5 | |
9399 | rm -rf conftest* | |
9400 | eval "ac_cv_header_$ac_safe=no" | |
9401 | fi | |
9402 | rm -f conftest* | |
9403 | fi | |
9404 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9405 | echo "$ac_t""yes" 1>&6 | |
9406 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9407 | cat >> confdefs.h <<EOF | |
9408 | #define $ac_tr_hdr 1 | |
9409 | EOF | |
9410 | ||
9411 | else | |
9412 | echo "$ac_t""no" 1>&6 | |
9413 | fi | |
9414 | done | |
9415 | ||
0fb0dd83 | 9416 | for ac_hdr in iconv.h |
6f72b082 OK |
9417 | do |
9418 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9419 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
37d403aa | 9420 | echo "configure:9421: checking for $ac_hdr" >&5 |
6f72b082 OK |
9421 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9422 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9423 | else | |
9424 | cat > conftest.$ac_ext <<EOF | |
37d403aa | 9425 | #line 9426 "configure" |
6f72b082 OK |
9426 | #include "confdefs.h" |
9427 | #include <$ac_hdr> | |
9428 | EOF | |
9429 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
37d403aa | 9430 | { (eval echo configure:9431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
9431 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9432 | if test -z "$ac_err"; then | |
9433 | rm -rf conftest* | |
9434 | eval "ac_cv_header_$ac_safe=yes" | |
9435 | else | |
9436 | echo "$ac_err" >&5 | |
9437 | echo "configure: failed program was:" >&5 | |
9438 | cat conftest.$ac_ext >&5 | |
9439 | rm -rf conftest* | |
9440 | eval "ac_cv_header_$ac_safe=no" | |
9441 | fi | |
9442 | rm -f conftest* | |
9443 | fi | |
9444 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9445 | echo "$ac_t""yes" 1>&6 | |
9446 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9447 | cat >> confdefs.h <<EOF | |
9448 | #define $ac_tr_hdr 1 | |
9449 | EOF | |
9450 | ||
9451 | else | |
9452 | echo "$ac_t""no" 1>&6 | |
9453 | fi | |
9454 | done | |
9455 | ||
0fb0dd83 RR |
9456 | for ac_hdr in langinfo.h |
9457 | do | |
9458 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9459 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9460 | echo "configure:9461: checking for $ac_hdr" >&5 | |
9461 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9462 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9463 | else | |
9464 | cat > conftest.$ac_ext <<EOF | |
9465 | #line 9466 "configure" | |
9466 | #include "confdefs.h" | |
9467 | #include <$ac_hdr> | |
9468 | EOF | |
9469 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9470 | { (eval echo configure:9471: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9471 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9472 | if test -z "$ac_err"; then | |
9473 | rm -rf conftest* | |
9474 | eval "ac_cv_header_$ac_safe=yes" | |
9475 | else | |
9476 | echo "$ac_err" >&5 | |
9477 | echo "configure: failed program was:" >&5 | |
9478 | cat conftest.$ac_ext >&5 | |
9479 | rm -rf conftest* | |
9480 | eval "ac_cv_header_$ac_safe=no" | |
9481 | fi | |
9482 | rm -f conftest* | |
9483 | fi | |
9484 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9485 | echo "$ac_t""yes" 1>&6 | |
9486 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9487 | cat >> confdefs.h <<EOF | |
9488 | #define $ac_tr_hdr 1 | |
9489 | EOF | |
9490 | ||
9491 | else | |
9492 | echo "$ac_t""no" 1>&6 | |
9493 | fi | |
9494 | done | |
9495 | ||
10f2d63a | 9496 | |
73fd4a60 VZ |
9497 | if test "$wxUSE_GUI" = "yes"; then |
9498 | if test "$wxUSE_UNIX" = "yes"; then | |
9499 | for ac_hdr in X11/XKBlib.h | |
10f2d63a VZ |
9500 | do |
9501 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9502 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
0fb0dd83 | 9503 | echo "configure:9504: checking for $ac_hdr" >&5 |
10f2d63a VZ |
9504 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9505 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9506 | else | |
9507 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 9508 | #line 9509 "configure" |
10f2d63a VZ |
9509 | #include "confdefs.h" |
9510 | #include <$ac_hdr> | |
9511 | EOF | |
9512 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
0fb0dd83 | 9513 | { (eval echo configure:9514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
9514 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9515 | if test -z "$ac_err"; then | |
9516 | rm -rf conftest* | |
9517 | eval "ac_cv_header_$ac_safe=yes" | |
9518 | else | |
9519 | echo "$ac_err" >&5 | |
9520 | echo "configure: failed program was:" >&5 | |
9521 | cat conftest.$ac_ext >&5 | |
9522 | rm -rf conftest* | |
9523 | eval "ac_cv_header_$ac_safe=no" | |
9524 | fi | |
9525 | rm -f conftest* | |
9526 | fi | |
9527 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9528 | echo "$ac_t""yes" 1>&6 | |
9529 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9530 | cat >> confdefs.h <<EOF | |
9531 | #define $ac_tr_hdr 1 | |
9532 | EOF | |
9533 | ||
9534 | else | |
9535 | echo "$ac_t""no" 1>&6 | |
9536 | fi | |
9537 | done | |
9538 | ||
73fd4a60 | 9539 | fi |
10f2d63a VZ |
9540 | fi |
9541 | ||
9542 | ||
9543 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
0fb0dd83 | 9544 | echo "configure:9545: checking for ANSI C header files" >&5 |
10f2d63a VZ |
9545 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
9546 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9547 | else | |
9548 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 9549 | #line 9550 "configure" |
10f2d63a VZ |
9550 | #include "confdefs.h" |
9551 | #include <stdlib.h> | |
9552 | #include <stdarg.h> | |
9553 | #include <string.h> | |
9554 | #include <float.h> | |
9555 | EOF | |
9556 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
0fb0dd83 | 9557 | { (eval echo configure:9558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
9558 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9559 | if test -z "$ac_err"; then | |
9560 | rm -rf conftest* | |
9561 | ac_cv_header_stdc=yes | |
9562 | else | |
9563 | echo "$ac_err" >&5 | |
9564 | echo "configure: failed program was:" >&5 | |
9565 | cat conftest.$ac_ext >&5 | |
9566 | rm -rf conftest* | |
9567 | ac_cv_header_stdc=no | |
9568 | fi | |
9569 | rm -f conftest* | |
9570 | ||
9571 | if test $ac_cv_header_stdc = yes; then | |
9572 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
9573 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 9574 | #line 9575 "configure" |
10f2d63a VZ |
9575 | #include "confdefs.h" |
9576 | #include <string.h> | |
9577 | EOF | |
9578 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9579 | egrep "memchr" >/dev/null 2>&1; then | |
9580 | : | |
9581 | else | |
9582 | rm -rf conftest* | |
9583 | ac_cv_header_stdc=no | |
9584 | fi | |
9585 | rm -f conftest* | |
9586 | ||
9587 | fi | |
9588 | ||
9589 | if test $ac_cv_header_stdc = yes; then | |
9590 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
9591 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 9592 | #line 9593 "configure" |
10f2d63a VZ |
9593 | #include "confdefs.h" |
9594 | #include <stdlib.h> | |
9595 | EOF | |
9596 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9597 | egrep "free" >/dev/null 2>&1; then | |
9598 | : | |
9599 | else | |
9600 | rm -rf conftest* | |
9601 | ac_cv_header_stdc=no | |
9602 | fi | |
9603 | rm -f conftest* | |
9604 | ||
9605 | fi | |
9606 | ||
9607 | if test $ac_cv_header_stdc = yes; then | |
9608 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
9609 | if test "$cross_compiling" = yes; then | |
9610 | : | |
9611 | else | |
9612 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 9613 | #line 9614 "configure" |
10f2d63a VZ |
9614 | #include "confdefs.h" |
9615 | #include <ctype.h> | |
9616 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
9617 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
9618 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
9619 | int main () { int i; for (i = 0; i < 256; i++) | |
9620 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
9621 | exit (0); } | |
9622 | ||
9623 | EOF | |
0fb0dd83 | 9624 | if { (eval echo configure:9625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
9625 | then |
9626 | : | |
9627 | else | |
9628 | echo "configure: failed program was:" >&5 | |
9629 | cat conftest.$ac_ext >&5 | |
9630 | rm -fr conftest* | |
9631 | ac_cv_header_stdc=no | |
9632 | fi | |
9633 | rm -fr conftest* | |
9634 | fi | |
9635 | ||
9636 | fi | |
9637 | fi | |
9638 | ||
9639 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
9640 | if test $ac_cv_header_stdc = yes; then | |
9641 | cat >> confdefs.h <<\EOF | |
9642 | #define STDC_HEADERS 1 | |
9643 | EOF | |
9644 | ||
9645 | fi | |
9646 | ||
9647 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 | |
0fb0dd83 | 9648 | echo "configure:9649: checking for mode_t" >&5 |
10f2d63a VZ |
9649 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
9650 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9651 | else | |
9652 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 9653 | #line 9654 "configure" |
10f2d63a VZ |
9654 | #include "confdefs.h" |
9655 | #include <sys/types.h> | |
9656 | #if STDC_HEADERS | |
9657 | #include <stdlib.h> | |
9658 | #include <stddef.h> | |
9659 | #endif | |
9660 | EOF | |
9661 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9662 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
9663 | rm -rf conftest* | |
9664 | ac_cv_type_mode_t=yes | |
9665 | else | |
9666 | rm -rf conftest* | |
9667 | ac_cv_type_mode_t=no | |
9668 | fi | |
9669 | rm -f conftest* | |
9670 | ||
9671 | fi | |
9672 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
9673 | if test $ac_cv_type_mode_t = no; then | |
9674 | cat >> confdefs.h <<\EOF | |
9675 | #define mode_t int | |
9676 | EOF | |
9677 | ||
9678 | fi | |
9679 | ||
9680 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
0fb0dd83 | 9681 | echo "configure:9682: checking for off_t" >&5 |
10f2d63a VZ |
9682 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
9683 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9684 | else | |
9685 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 9686 | #line 9687 "configure" |
10f2d63a VZ |
9687 | #include "confdefs.h" |
9688 | #include <sys/types.h> | |
9689 | #if STDC_HEADERS | |
9690 | #include <stdlib.h> | |
9691 | #include <stddef.h> | |
9692 | #endif | |
9693 | EOF | |
9694 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9695 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
9696 | rm -rf conftest* | |
9697 | ac_cv_type_off_t=yes | |
9698 | else | |
9699 | rm -rf conftest* | |
9700 | ac_cv_type_off_t=no | |
9701 | fi | |
9702 | rm -f conftest* | |
9703 | ||
9704 | fi | |
9705 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
9706 | if test $ac_cv_type_off_t = no; then | |
9707 | cat >> confdefs.h <<\EOF | |
9708 | #define off_t long | |
9709 | EOF | |
9710 | ||
9711 | fi | |
9712 | ||
9713 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 | |
0fb0dd83 | 9714 | echo "configure:9715: checking for pid_t" >&5 |
10f2d63a VZ |
9715 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
9716 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9717 | else | |
9718 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 9719 | #line 9720 "configure" |
10f2d63a VZ |
9720 | #include "confdefs.h" |
9721 | #include <sys/types.h> | |
9722 | #if STDC_HEADERS | |
9723 | #include <stdlib.h> | |
9724 | #include <stddef.h> | |
9725 | #endif | |
9726 | EOF | |
9727 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9728 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
9729 | rm -rf conftest* | |
9730 | ac_cv_type_pid_t=yes | |
9731 | else | |
9732 | rm -rf conftest* | |
9733 | ac_cv_type_pid_t=no | |
9734 | fi | |
9735 | rm -f conftest* | |
9736 | ||
9737 | fi | |
9738 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
9739 | if test $ac_cv_type_pid_t = no; then | |
9740 | cat >> confdefs.h <<\EOF | |
9741 | #define pid_t int | |
9742 | EOF | |
9743 | ||
9744 | fi | |
9745 | ||
9746 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
0fb0dd83 | 9747 | echo "configure:9748: checking for size_t" >&5 |
10f2d63a VZ |
9748 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
9749 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9750 | else | |
9751 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 9752 | #line 9753 "configure" |
10f2d63a VZ |
9753 | #include "confdefs.h" |
9754 | #include <sys/types.h> | |
9755 | #if STDC_HEADERS | |
9756 | #include <stdlib.h> | |
9757 | #include <stddef.h> | |
9758 | #endif | |
9759 | EOF | |
9760 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9761 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
9762 | rm -rf conftest* | |
9763 | ac_cv_type_size_t=yes | |
9764 | else | |
9765 | rm -rf conftest* | |
9766 | ac_cv_type_size_t=no | |
9767 | fi | |
9768 | rm -f conftest* | |
9769 | ||
9770 | fi | |
9771 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
9772 | if test $ac_cv_type_size_t = no; then | |
9773 | cat >> confdefs.h <<\EOF | |
9774 | #define size_t unsigned | |
9775 | EOF | |
9776 | ||
9777 | fi | |
9778 | ||
9779 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 | |
0fb0dd83 | 9780 | echo "configure:9781: checking for uid_t in sys/types.h" >&5 |
10f2d63a VZ |
9781 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
9782 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9783 | else | |
9784 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 9785 | #line 9786 "configure" |
10f2d63a VZ |
9786 | #include "confdefs.h" |
9787 | #include <sys/types.h> | |
9788 | EOF | |
9789 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9790 | egrep "uid_t" >/dev/null 2>&1; then | |
9791 | rm -rf conftest* | |
9792 | ac_cv_type_uid_t=yes | |
9793 | else | |
9794 | rm -rf conftest* | |
9795 | ac_cv_type_uid_t=no | |
9796 | fi | |
9797 | rm -f conftest* | |
9798 | ||
9799 | fi | |
9800 | ||
9801 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 | |
9802 | if test $ac_cv_type_uid_t = no; then | |
9803 | cat >> confdefs.h <<\EOF | |
9804 | #define uid_t int | |
9805 | EOF | |
9806 | ||
9807 | cat >> confdefs.h <<\EOF | |
9808 | #define gid_t int | |
9809 | EOF | |
9810 | ||
9811 | fi | |
9812 | ||
9813 | ||
9814 | ||
b12915c1 | 9815 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
0fb0dd83 | 9816 | echo "configure:9817: checking for pw_gecos in struct passwd" >&5 |
b12915c1 VZ |
9817 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
9818 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9819 | else | |
9820 | ||
9821 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 9822 | #line 9823 "configure" |
b12915c1 VZ |
9823 | #include "confdefs.h" |
9824 | #include <pwd.h> | |
9825 | int main() { | |
9826 | ||
9827 | char *p; | |
9828 | struct passwd *pw; | |
9829 | p = pw->pw_gecos; | |
9830 | ||
9831 | ; return 0; } | |
9832 | EOF | |
0fb0dd83 | 9833 | if { (eval echo configure:9834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
b12915c1 VZ |
9834 | rm -rf conftest* |
9835 | ||
9836 | wx_cv_struct_pw_gecos=yes | |
b12915c1 VZ |
9837 | |
9838 | else | |
9839 | echo "configure: failed program was:" >&5 | |
9840 | cat conftest.$ac_ext >&5 | |
9841 | rm -rf conftest* | |
9842 | ||
9843 | wx_cv_struct_pw_gecos=no | |
9844 | ||
9845 | ||
9846 | fi | |
9847 | rm -f conftest* | |
9848 | ||
9849 | ||
9850 | fi | |
9851 | ||
9852 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
9853 | ||
bd3277fe VZ |
9854 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
9855 | cat >> confdefs.h <<\EOF | |
9856 | #define HAVE_PW_GECOS 1 | |
9857 | EOF | |
9858 | ||
9859 | fi | |
9860 | ||
10f2d63a VZ |
9861 | |
9862 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
0fb0dd83 | 9863 | echo "configure:9864: checking for working const" >&5 |
10f2d63a VZ |
9864 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
9865 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9866 | else | |
9867 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 9868 | #line 9869 "configure" |
10f2d63a VZ |
9869 | #include "confdefs.h" |
9870 | ||
9871 | int main() { | |
9872 | ||
9873 | /* Ultrix mips cc rejects this. */ | |
37d403aa | 9874 | typedef int charset[2]; const charset x; |
10f2d63a VZ |
9875 | /* SunOS 4.1.1 cc rejects this. */ |
9876 | char const *const *ccp; | |
9877 | char **p; | |
9878 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
9879 | struct point {int x, y;}; | |
9880 | static struct point const zero = {0,0}; | |
9881 | /* AIX XL C 1.02.0.0 rejects this. | |
9882 | It does not let you subtract one const X* pointer from another in an arm | |
9883 | of an if-expression whose if-part is not a constant expression */ | |
9884 | const char *g = "string"; | |
9885 | ccp = &g + (g ? g-g : 0); | |
9886 | /* HPUX 7.0 cc rejects these. */ | |
9887 | ++ccp; | |
9888 | p = (char**) ccp; | |
9889 | ccp = (char const *const *) p; | |
9890 | { /* SCO 3.2v4 cc rejects this. */ | |
9891 | char *t; | |
9892 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
9893 | ||
9894 | *t++ = 0; | |
9895 | } | |
9896 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
9897 | int x[] = {25, 17}; | |
9898 | const int *foo = &x[0]; | |
9899 | ++foo; | |
9900 | } | |
9901 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
9902 | typedef const int *iptr; | |
9903 | iptr p = 0; | |
9904 | ++p; | |
9905 | } | |
9906 | { /* AIX XL C 1.02.0.0 rejects this saying | |
9907 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
9908 | struct s { int j; const int *ap[3]; }; | |
9909 | struct s *b; b->j = 5; | |
9910 | } | |
9911 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
9912 | const int foo = 10; | |
9913 | } | |
9914 | ||
9915 | ; return 0; } | |
9916 | EOF | |
0fb0dd83 | 9917 | if { (eval echo configure:9918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
9918 | rm -rf conftest* |
9919 | ac_cv_c_const=yes | |
9920 | else | |
9921 | echo "configure: failed program was:" >&5 | |
9922 | cat conftest.$ac_ext >&5 | |
9923 | rm -rf conftest* | |
9924 | ac_cv_c_const=no | |
9925 | fi | |
9926 | rm -f conftest* | |
9927 | fi | |
9928 | ||
9929 | echo "$ac_t""$ac_cv_c_const" 1>&6 | |
9930 | if test $ac_cv_c_const = no; then | |
9931 | cat >> confdefs.h <<\EOF | |
9932 | #define const | |
9933 | EOF | |
9934 | ||
9935 | fi | |
9936 | ||
9937 | echo $ac_n "checking for inline""... $ac_c" 1>&6 | |
0fb0dd83 | 9938 | echo "configure:9939: checking for inline" >&5 |
10f2d63a VZ |
9939 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
9940 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9941 | else | |
9942 | ac_cv_c_inline=no | |
9943 | for ac_kw in inline __inline__ __inline; do | |
9944 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 9945 | #line 9946 "configure" |
10f2d63a VZ |
9946 | #include "confdefs.h" |
9947 | ||
9948 | int main() { | |
37d403aa | 9949 | } $ac_kw foo() { |
10f2d63a VZ |
9950 | ; return 0; } |
9951 | EOF | |
0fb0dd83 | 9952 | if { (eval echo configure:9953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
9953 | rm -rf conftest* |
9954 | ac_cv_c_inline=$ac_kw; break | |
9955 | else | |
9956 | echo "configure: failed program was:" >&5 | |
9957 | cat conftest.$ac_ext >&5 | |
9958 | fi | |
9959 | rm -f conftest* | |
9960 | done | |
9961 | ||
9962 | fi | |
9963 | ||
9964 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
9965 | case "$ac_cv_c_inline" in | |
9966 | inline | yes) ;; | |
9967 | no) cat >> confdefs.h <<\EOF | |
9968 | #define inline | |
9969 | EOF | |
9970 | ;; | |
9971 | *) cat >> confdefs.h <<EOF | |
9972 | #define inline $ac_cv_c_inline | |
9973 | EOF | |
9974 | ;; | |
9975 | esac | |
9976 | ||
9977 | ||
9978 | echo $ac_n "checking size of char""... $ac_c" 1>&6 | |
0fb0dd83 | 9979 | echo "configure:9980: checking size of char" >&5 |
10f2d63a VZ |
9980 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
9981 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9982 | else | |
9983 | if test "$cross_compiling" = yes; then | |
9984 | ac_cv_sizeof_char=1 | |
9985 | else | |
9986 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 9987 | #line 9988 "configure" |
10f2d63a VZ |
9988 | #include "confdefs.h" |
9989 | #include <stdio.h> | |
9990 | main() | |
9991 | { | |
9992 | FILE *f=fopen("conftestval", "w"); | |
9993 | if (!f) exit(1); | |
9994 | fprintf(f, "%d\n", sizeof(char)); | |
9995 | exit(0); | |
9996 | } | |
9997 | EOF | |
0fb0dd83 | 9998 | if { (eval echo configure:9999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
9999 | then |
10000 | ac_cv_sizeof_char=`cat conftestval` | |
10001 | else | |
10002 | echo "configure: failed program was:" >&5 | |
10003 | cat conftest.$ac_ext >&5 | |
10004 | rm -fr conftest* | |
10005 | ac_cv_sizeof_char=0 | |
10006 | fi | |
10007 | rm -fr conftest* | |
10008 | fi | |
10009 | ||
10010 | fi | |
10011 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 | |
10012 | cat >> confdefs.h <<EOF | |
10013 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
10014 | EOF | |
10015 | ||
10016 | ||
6f72b082 | 10017 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 |
0fb0dd83 | 10018 | echo "configure:10019: checking size of wchar_t" >&5 |
6f72b082 OK |
10019 | if eval "test \"`echo '$''{'ac_cv_sizeof_wchar_t'+set}'`\" = set"; then |
10020 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10021 | else | |
10022 | if test "$cross_compiling" = yes; then | |
10023 | ac_cv_sizeof_wchar_t=4 | |
10024 | else | |
10025 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 10026 | #line 10027 "configure" |
6f72b082 OK |
10027 | #include "confdefs.h" |
10028 | #include <stdio.h> | |
10029 | main() | |
10030 | { | |
10031 | FILE *f=fopen("conftestval", "w"); | |
10032 | if (!f) exit(1); | |
10033 | fprintf(f, "%d\n", sizeof(wchar_t)); | |
10034 | exit(0); | |
10035 | } | |
10036 | EOF | |
0fb0dd83 | 10037 | if { (eval echo configure:10038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
6f72b082 OK |
10038 | then |
10039 | ac_cv_sizeof_wchar_t=`cat conftestval` | |
10040 | else | |
10041 | echo "configure: failed program was:" >&5 | |
10042 | cat conftest.$ac_ext >&5 | |
10043 | rm -fr conftest* | |
10044 | ac_cv_sizeof_wchar_t=0 | |
10045 | fi | |
10046 | rm -fr conftest* | |
10047 | fi | |
10048 | ||
10049 | fi | |
10050 | echo "$ac_t""$ac_cv_sizeof_wchar_t" 1>&6 | |
10051 | cat >> confdefs.h <<EOF | |
10052 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t | |
10053 | EOF | |
10054 | ||
10055 | ||
10f2d63a | 10056 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
0fb0dd83 | 10057 | echo "configure:10058: checking size of short" >&5 |
10f2d63a VZ |
10058 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
10059 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10060 | else | |
10061 | if test "$cross_compiling" = yes; then | |
10062 | ac_cv_sizeof_short=2 | |
10063 | else | |
10064 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 10065 | #line 10066 "configure" |
10f2d63a VZ |
10066 | #include "confdefs.h" |
10067 | #include <stdio.h> | |
10068 | main() | |
10069 | { | |
10070 | FILE *f=fopen("conftestval", "w"); | |
10071 | if (!f) exit(1); | |
10072 | fprintf(f, "%d\n", sizeof(short)); | |
10073 | exit(0); | |
10074 | } | |
10075 | EOF | |
0fb0dd83 | 10076 | if { (eval echo configure:10077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
10077 | then |
10078 | ac_cv_sizeof_short=`cat conftestval` | |
10079 | else | |
10080 | echo "configure: failed program was:" >&5 | |
10081 | cat conftest.$ac_ext >&5 | |
10082 | rm -fr conftest* | |
10083 | ac_cv_sizeof_short=0 | |
10084 | fi | |
10085 | rm -fr conftest* | |
10086 | fi | |
10087 | ||
10088 | fi | |
10089 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 | |
10090 | cat >> confdefs.h <<EOF | |
10091 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
10092 | EOF | |
10093 | ||
10094 | ||
10095 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 | |
0fb0dd83 | 10096 | echo "configure:10097: checking size of int *" >&5 |
10f2d63a VZ |
10097 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then |
10098 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10099 | else | |
10100 | if test "$cross_compiling" = yes; then | |
10101 | ac_cv_sizeof_int_p=4 | |
10102 | else | |
10103 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 10104 | #line 10105 "configure" |
10f2d63a VZ |
10105 | #include "confdefs.h" |
10106 | #include <stdio.h> | |
10107 | main() | |
10108 | { | |
10109 | FILE *f=fopen("conftestval", "w"); | |
10110 | if (!f) exit(1); | |
10111 | fprintf(f, "%d\n", sizeof(int *)); | |
10112 | exit(0); | |
10113 | } | |
10114 | EOF | |
0fb0dd83 | 10115 | if { (eval echo configure:10116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
10116 | then |
10117 | ac_cv_sizeof_int_p=`cat conftestval` | |
10118 | else | |
10119 | echo "configure: failed program was:" >&5 | |
10120 | cat conftest.$ac_ext >&5 | |
10121 | rm -fr conftest* | |
10122 | ac_cv_sizeof_int_p=0 | |
10123 | fi | |
10124 | rm -fr conftest* | |
10125 | fi | |
10126 | ||
10127 | fi | |
10128 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 | |
10129 | cat >> confdefs.h <<EOF | |
10130 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
10131 | EOF | |
10132 | ||
10133 | ||
10134 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
0fb0dd83 | 10135 | echo "configure:10136: checking size of int" >&5 |
10f2d63a VZ |
10136 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
10137 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10138 | else | |
10139 | if test "$cross_compiling" = yes; then | |
10140 | ac_cv_sizeof_int=4 | |
10141 | else | |
10142 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 10143 | #line 10144 "configure" |
10f2d63a VZ |
10144 | #include "confdefs.h" |
10145 | #include <stdio.h> | |
10146 | main() | |
10147 | { | |
10148 | FILE *f=fopen("conftestval", "w"); | |
10149 | if (!f) exit(1); | |
10150 | fprintf(f, "%d\n", sizeof(int)); | |
10151 | exit(0); | |
10152 | } | |
10153 | EOF | |
0fb0dd83 | 10154 | if { (eval echo configure:10155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
10155 | then |
10156 | ac_cv_sizeof_int=`cat conftestval` | |
10157 | else | |
10158 | echo "configure: failed program was:" >&5 | |
10159 | cat conftest.$ac_ext >&5 | |
10160 | rm -fr conftest* | |
10161 | ac_cv_sizeof_int=0 | |
10162 | fi | |
10163 | rm -fr conftest* | |
10164 | fi | |
10165 | ||
10166 | fi | |
10167 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
10168 | cat >> confdefs.h <<EOF | |
10169 | #define SIZEOF_INT $ac_cv_sizeof_int | |
10170 | EOF | |
10171 | ||
10172 | ||
10173 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
0fb0dd83 | 10174 | echo "configure:10175: checking size of long" >&5 |
10f2d63a VZ |
10175 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
10176 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10177 | else | |
10178 | if test "$cross_compiling" = yes; then | |
10179 | ac_cv_sizeof_long=4 | |
10180 | else | |
10181 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 10182 | #line 10183 "configure" |
10f2d63a VZ |
10183 | #include "confdefs.h" |
10184 | #include <stdio.h> | |
10185 | main() | |
10186 | { | |
10187 | FILE *f=fopen("conftestval", "w"); | |
10188 | if (!f) exit(1); | |
10189 | fprintf(f, "%d\n", sizeof(long)); | |
10190 | exit(0); | |
10191 | } | |
10192 | EOF | |
0fb0dd83 | 10193 | if { (eval echo configure:10194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
10194 | then |
10195 | ac_cv_sizeof_long=`cat conftestval` | |
10196 | else | |
10197 | echo "configure: failed program was:" >&5 | |
10198 | cat conftest.$ac_ext >&5 | |
10199 | rm -fr conftest* | |
10200 | ac_cv_sizeof_long=0 | |
10201 | fi | |
10202 | rm -fr conftest* | |
10203 | fi | |
10204 | ||
10205 | fi | |
10206 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
10207 | cat >> confdefs.h <<EOF | |
10208 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
10209 | EOF | |
10210 | ||
10211 | ||
10212 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
0fb0dd83 | 10213 | echo "configure:10214: checking size of long long" >&5 |
10f2d63a VZ |
10214 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10215 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10216 | else | |
10217 | if test "$cross_compiling" = yes; then | |
10218 | ac_cv_sizeof_long_long=0 | |
10219 | else | |
10220 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 10221 | #line 10222 "configure" |
10f2d63a VZ |
10222 | #include "confdefs.h" |
10223 | #include <stdio.h> | |
10224 | main() | |
10225 | { | |
10226 | FILE *f=fopen("conftestval", "w"); | |
10227 | if (!f) exit(1); | |
10228 | fprintf(f, "%d\n", sizeof(long long)); | |
10229 | exit(0); | |
10230 | } | |
10231 | EOF | |
0fb0dd83 | 10232 | if { (eval echo configure:10233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
10233 | then |
10234 | ac_cv_sizeof_long_long=`cat conftestval` | |
10235 | else | |
10236 | echo "configure: failed program was:" >&5 | |
10237 | cat conftest.$ac_ext >&5 | |
10238 | rm -fr conftest* | |
10239 | ac_cv_sizeof_long_long=0 | |
10240 | fi | |
10241 | rm -fr conftest* | |
10242 | fi | |
10243 | ||
10244 | fi | |
10245 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
10246 | cat >> confdefs.h <<EOF | |
10247 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10248 | EOF | |
10249 | ||
10250 | ||
10251 | ||
10252 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 | |
0fb0dd83 | 10253 | echo "configure:10254: checking whether byte ordering is bigendian" >&5 |
10f2d63a VZ |
10254 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
10255 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10256 | else | |
10257 | ac_cv_c_bigendian=unknown | |
10258 | # See if sys/param.h defines the BYTE_ORDER macro. | |
10259 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 10260 | #line 10261 "configure" |
10f2d63a VZ |
10261 | #include "confdefs.h" |
10262 | #include <sys/types.h> | |
10263 | #include <sys/param.h> | |
10264 | int main() { | |
10265 | ||
10266 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
10267 | bogus endian macros | |
10268 | #endif | |
10269 | ; return 0; } | |
10270 | EOF | |
0fb0dd83 | 10271 | if { (eval echo configure:10272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
10272 | rm -rf conftest* |
10273 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
10274 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 10275 | #line 10276 "configure" |
10f2d63a VZ |
10276 | #include "confdefs.h" |
10277 | #include <sys/types.h> | |
10278 | #include <sys/param.h> | |
10279 | int main() { | |
10280 | ||
10281 | #if BYTE_ORDER != BIG_ENDIAN | |
10282 | not big endian | |
10283 | #endif | |
10284 | ; return 0; } | |
10285 | EOF | |
0fb0dd83 | 10286 | if { (eval echo configure:10287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
10287 | rm -rf conftest* |
10288 | ac_cv_c_bigendian=yes | |
10289 | else | |
10290 | echo "configure: failed program was:" >&5 | |
10291 | cat conftest.$ac_ext >&5 | |
10292 | rm -rf conftest* | |
10293 | ac_cv_c_bigendian=no | |
10294 | fi | |
10295 | rm -f conftest* | |
10296 | else | |
10297 | echo "configure: failed program was:" >&5 | |
10298 | cat conftest.$ac_ext >&5 | |
10299 | fi | |
10300 | rm -f conftest* | |
10301 | if test $ac_cv_c_bigendian = unknown; then | |
10302 | if test "$cross_compiling" = yes; then | |
10303 | ac_cv_c_bigendian=unknown | |
10304 | else | |
10305 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 10306 | #line 10307 "configure" |
10f2d63a VZ |
10307 | #include "confdefs.h" |
10308 | main () { | |
10309 | /* Are we little or big endian? From Harbison&Steele. */ | |
10310 | union | |
10311 | { | |
10312 | long l; | |
10313 | char c[sizeof (long)]; | |
10314 | } u; | |
10315 | u.l = 1; | |
10316 | exit (u.c[sizeof (long) - 1] == 1); | |
10317 | } | |
10318 | EOF | |
0fb0dd83 | 10319 | if { (eval echo configure:10320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
10320 | then |
10321 | ac_cv_c_bigendian=no | |
10322 | else | |
10323 | echo "configure: failed program was:" >&5 | |
10324 | cat conftest.$ac_ext >&5 | |
10325 | rm -fr conftest* | |
10326 | ac_cv_c_bigendian=yes | |
10327 | fi | |
10328 | rm -fr conftest* | |
10329 | fi | |
10330 | ||
10331 | fi | |
10332 | fi | |
10333 | ||
10334 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
10335 | if test $ac_cv_c_bigendian = unknown; then | |
10336 | 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 | |
10337 | fi | |
10338 | if test $ac_cv_c_bigendian = yes; then | |
10339 | cat >> confdefs.h <<\EOF | |
10340 | #define WORDS_BIGENDIAN 1 | |
10341 | EOF | |
10342 | ||
10343 | fi | |
10344 | ||
10345 | ||
10346 | ||
10347 | if test "$cross_compiling" = "yes"; then | |
10348 | cat >> confdefs.h <<\EOF | |
10349 | #define wxUSE_IOSTREAMH 1 | |
10350 | EOF | |
10351 | ||
10352 | else | |
10353 | ||
10354 | ac_ext=C | |
10355 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10356 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10357 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10358 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10359 | cross_compiling=$ac_cv_prog_cxx_cross | |
10360 | ||
10361 | ||
10362 | for ac_hdr in iostream | |
10363 | do | |
10364 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10365 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
0fb0dd83 | 10366 | echo "configure:10367: checking for $ac_hdr" >&5 |
10f2d63a VZ |
10367 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10368 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10369 | else | |
10370 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 10371 | #line 10372 "configure" |
10f2d63a VZ |
10372 | #include "confdefs.h" |
10373 | #include <$ac_hdr> | |
10374 | EOF | |
10375 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
0fb0dd83 | 10376 | { (eval echo configure:10377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
10377 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10378 | if test -z "$ac_err"; then | |
10379 | rm -rf conftest* | |
10380 | eval "ac_cv_header_$ac_safe=yes" | |
10381 | else | |
10382 | echo "$ac_err" >&5 | |
10383 | echo "configure: failed program was:" >&5 | |
10384 | cat conftest.$ac_ext >&5 | |
10385 | rm -rf conftest* | |
10386 | eval "ac_cv_header_$ac_safe=no" | |
10387 | fi | |
10388 | rm -f conftest* | |
10389 | fi | |
10390 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10391 | echo "$ac_t""yes" 1>&6 | |
10392 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10393 | cat >> confdefs.h <<EOF | |
10394 | #define $ac_tr_hdr 1 | |
10395 | EOF | |
10396 | ||
10397 | else | |
10398 | echo "$ac_t""no" 1>&6 | |
10399 | fi | |
10400 | done | |
10401 | ||
10402 | ||
10403 | if test "x$HAVE_IOSTREAM" = x ; then | |
10404 | cat >> confdefs.h <<\EOF | |
10405 | #define wxUSE_IOSTREAMH 1 | |
10406 | EOF | |
10407 | ||
10408 | else | |
10409 | : | |
10410 | fi | |
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 | fi | |
10420 | ||
10421 | ||
10422 | ||
10423 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 | |
0fb0dd83 | 10424 | echo "configure:10425: checking if C++ compiler supports bool" >&5 |
10f2d63a VZ |
10425 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
10426 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10427 | else | |
10428 | ||
10429 | ||
10430 | ac_ext=C | |
10431 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10432 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10433 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10434 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10435 | cross_compiling=$ac_cv_prog_cxx_cross | |
10436 | ||
10437 | ||
10438 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 10439 | #line 10440 "configure" |
10f2d63a VZ |
10440 | #include "confdefs.h" |
10441 | ||
10442 | ||
10443 | int main() { | |
10444 | ||
10445 | bool b = true; | |
10446 | ||
10447 | return 0; | |
10448 | ||
10449 | ; return 0; } | |
10450 | EOF | |
0fb0dd83 | 10451 | if { (eval echo configure:10452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
10452 | rm -rf conftest* |
10453 | ||
10454 | cat >> confdefs.h <<\EOF | |
10455 | #define HAVE_BOOL 1 | |
10456 | EOF | |
10457 | ||
10458 | wx_cv_cpp_bool=yes | |
10459 | ||
10460 | else | |
10461 | echo "configure: failed program was:" >&5 | |
10462 | cat conftest.$ac_ext >&5 | |
10463 | rm -rf conftest* | |
10464 | ||
10465 | wx_cv_cpp_bool=no | |
10466 | ||
10467 | ||
10468 | fi | |
10469 | rm -f conftest* | |
10470 | ||
10471 | ac_ext=c | |
10472 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10473 | ac_cpp='$CPP $CPPFLAGS' | |
10474 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10475 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10476 | cross_compiling=$ac_cv_prog_cc_cross | |
10477 | ||
10478 | ||
10479 | fi | |
10480 | ||
10481 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
10482 | ||
10483 | if test "$wx_cv_cpp_bool" = "yes"; then | |
10484 | cat >> confdefs.h <<\EOF | |
10485 | #define HAVE_BOOL 1 | |
10486 | EOF | |
10487 | ||
10488 | fi | |
10489 | ||
10490 | ||
10491 | ||
10f2d63a | 10492 | echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6 |
0fb0dd83 | 10493 | echo "configure:10494: checking if you need GNU extensions" >&5 |
10f2d63a VZ |
10494 | if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then |
10495 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10496 | else | |
10497 | ||
10498 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 10499 | #line 10500 "configure" |
10f2d63a VZ |
10500 | #include "confdefs.h" |
10501 | #include <features.h> | |
10502 | int main() { | |
10503 | ||
10504 | ||
10505 | #ifndef __GNU_LIBRARY__ | |
10506 | Compile error wanted | |
10507 | #endif | |
10508 | ||
10509 | ||
10510 | ; return 0; } | |
10511 | EOF | |
0fb0dd83 | 10512 | if { (eval echo configure:10513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
10513 | rm -rf conftest* |
10514 | wx_cv_gnu_extensions=yes | |
10515 | else | |
10516 | echo "configure: failed program was:" >&5 | |
10517 | cat conftest.$ac_ext >&5 | |
10518 | rm -rf conftest* | |
10519 | wx_cv_gnu_extensions=no | |
10520 | fi | |
10521 | rm -f conftest* | |
10522 | ||
10523 | fi | |
10524 | ||
10525 | ||
10526 | echo "$ac_t""$wx_cv_gnu_extensions" 1>&6 | |
10527 | if test "$wx_cv_gnu_extensions" = "yes"; then | |
10528 | cat >> confdefs.h <<EOF | |
10529 | #define _GNU_SOURCE 1 | |
10530 | EOF | |
10531 | ||
10532 | fi | |
10533 | ||
10534 | ||
10535 | ||
10536 | echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6 | |
0fb0dd83 | 10537 | echo "configure:10538: checking for wcslen in -lc" >&5 |
10f2d63a VZ |
10538 | ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'` |
10539 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10540 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10541 | else | |
10542 | ac_save_LIBS="$LIBS" | |
10543 | LIBS="-lc $LIBS" | |
10544 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 10545 | #line 10546 "configure" |
10f2d63a VZ |
10546 | #include "confdefs.h" |
10547 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10548 | /* We use char because int might match the return type of a gcc2 | |
10549 | builtin and then its argument prototype would still apply. */ | |
10550 | char wcslen(); | |
10551 | ||
10552 | int main() { | |
10553 | wcslen() | |
10554 | ; return 0; } | |
10555 | EOF | |
0fb0dd83 | 10556 | if { (eval echo configure:10557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10557 | rm -rf conftest* |
10558 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10559 | else | |
10560 | echo "configure: failed program was:" >&5 | |
10561 | cat conftest.$ac_ext >&5 | |
10562 | rm -rf conftest* | |
10563 | eval "ac_cv_lib_$ac_lib_var=no" | |
10564 | fi | |
10565 | rm -f conftest* | |
10566 | LIBS="$ac_save_LIBS" | |
10567 | ||
10568 | fi | |
10569 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10570 | echo "$ac_t""yes" 1>&6 | |
10571 | ||
10572 | cat >> confdefs.h <<\EOF | |
10573 | #define HAVE_WCSLEN 1 | |
10574 | EOF | |
10575 | ||
10576 | WCHAR_LINK="" | |
10577 | ||
10578 | else | |
10579 | echo "$ac_t""no" 1>&6 | |
10580 | ||
10581 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 | |
0fb0dd83 | 10582 | echo "configure:10583: checking for wcslen in -lw" >&5 |
10f2d63a VZ |
10583 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
10584 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10585 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10586 | else | |
10587 | ac_save_LIBS="$LIBS" | |
10588 | LIBS="-lw $LIBS" | |
10589 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 10590 | #line 10591 "configure" |
10f2d63a VZ |
10591 | #include "confdefs.h" |
10592 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10593 | /* We use char because int might match the return type of a gcc2 | |
10594 | builtin and then its argument prototype would still apply. */ | |
10595 | char wcslen(); | |
10596 | ||
10597 | int main() { | |
10598 | wcslen() | |
10599 | ; return 0; } | |
10600 | EOF | |
0fb0dd83 | 10601 | if { (eval echo configure:10602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10602 | rm -rf conftest* |
10603 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10604 | else | |
10605 | echo "configure: failed program was:" >&5 | |
10606 | cat conftest.$ac_ext >&5 | |
10607 | rm -rf conftest* | |
10608 | eval "ac_cv_lib_$ac_lib_var=no" | |
10609 | fi | |
10610 | rm -f conftest* | |
10611 | LIBS="$ac_save_LIBS" | |
10612 | ||
10613 | fi | |
10614 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10615 | echo "$ac_t""yes" 1>&6 | |
10616 | ||
10617 | cat >> confdefs.h <<\EOF | |
10618 | #define HAVE_WCSLEN 1 | |
10619 | EOF | |
10620 | ||
10621 | WCHAR_LINK="-lw" | |
10622 | ||
10623 | else | |
10624 | echo "$ac_t""no" 1>&6 | |
10625 | fi | |
10626 | ||
10627 | ||
10628 | fi | |
10629 | ||
10630 | ||
10631 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 | |
0fb0dd83 | 10632 | echo "configure:10633: checking for vprintf" >&5 |
10f2d63a VZ |
10633 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
10634 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10635 | else | |
10636 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 10637 | #line 10638 "configure" |
10f2d63a VZ |
10638 | #include "confdefs.h" |
10639 | /* System header to define __stub macros and hopefully few prototypes, | |
10640 | which can conflict with char vprintf(); below. */ | |
10641 | #include <assert.h> | |
10642 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10643 | /* We use char because int might match the return type of a gcc2 | |
10644 | builtin and then its argument prototype would still apply. */ | |
10645 | char vprintf(); | |
10646 | ||
10647 | int main() { | |
10648 | ||
10649 | /* The GNU C library defines this for functions which it implements | |
10650 | to always fail with ENOSYS. Some functions are actually named | |
10651 | something starting with __ and the normal name is an alias. */ | |
10652 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
10653 | choke me | |
10654 | #else | |
e8482f24 | 10655 | vprintf(); |
10f2d63a VZ |
10656 | #endif |
10657 | ||
10658 | ; return 0; } | |
10659 | EOF | |
0fb0dd83 | 10660 | if { (eval echo configure:10661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10661 | rm -rf conftest* |
10662 | eval "ac_cv_func_vprintf=yes" | |
10663 | else | |
10664 | echo "configure: failed program was:" >&5 | |
10665 | cat conftest.$ac_ext >&5 | |
10666 | rm -rf conftest* | |
10667 | eval "ac_cv_func_vprintf=no" | |
10668 | fi | |
10669 | rm -f conftest* | |
10670 | fi | |
10671 | ||
10672 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
10673 | echo "$ac_t""yes" 1>&6 | |
10674 | cat >> confdefs.h <<\EOF | |
10675 | #define HAVE_VPRINTF 1 | |
10676 | EOF | |
10677 | ||
10678 | else | |
10679 | echo "$ac_t""no" 1>&6 | |
10680 | fi | |
10681 | ||
10682 | if test "$ac_cv_func_vprintf" != yes; then | |
10683 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
0fb0dd83 | 10684 | echo "configure:10685: checking for _doprnt" >&5 |
10f2d63a VZ |
10685 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
10686 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10687 | else | |
10688 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 10689 | #line 10690 "configure" |
10f2d63a VZ |
10690 | #include "confdefs.h" |
10691 | /* System header to define __stub macros and hopefully few prototypes, | |
10692 | which can conflict with char _doprnt(); below. */ | |
10693 | #include <assert.h> | |
10694 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10695 | /* We use char because int might match the return type of a gcc2 | |
10696 | builtin and then its argument prototype would still apply. */ | |
10697 | char _doprnt(); | |
10698 | ||
10699 | int main() { | |
10700 | ||
10701 | /* The GNU C library defines this for functions which it implements | |
10702 | to always fail with ENOSYS. Some functions are actually named | |
10703 | something starting with __ and the normal name is an alias. */ | |
10704 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
10705 | choke me | |
10706 | #else | |
e8482f24 | 10707 | _doprnt(); |
10f2d63a VZ |
10708 | #endif |
10709 | ||
10710 | ; return 0; } | |
10711 | EOF | |
0fb0dd83 | 10712 | if { (eval echo configure:10713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10713 | rm -rf conftest* |
10714 | eval "ac_cv_func__doprnt=yes" | |
10715 | else | |
10716 | echo "configure: failed program was:" >&5 | |
10717 | cat conftest.$ac_ext >&5 | |
10718 | rm -rf conftest* | |
10719 | eval "ac_cv_func__doprnt=no" | |
10720 | fi | |
10721 | rm -f conftest* | |
10722 | fi | |
10723 | ||
10724 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
10725 | echo "$ac_t""yes" 1>&6 | |
10726 | cat >> confdefs.h <<\EOF | |
10727 | #define HAVE_DOPRNT 1 | |
10728 | EOF | |
10729 | ||
10730 | else | |
10731 | echo "$ac_t""no" 1>&6 | |
10732 | fi | |
10733 | ||
10734 | fi | |
10735 | ||
10736 | ||
10f2d63a | 10737 | |
f6bcfd97 BP |
10738 | ac_ext=C |
10739 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10740 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10741 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10742 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10743 | cross_compiling=$ac_cv_prog_cxx_cross | |
10744 | ||
10745 | ||
10746 | ||
10747 | ||
10748 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 | |
0fb0dd83 | 10749 | echo "configure:10750: checking for vsnprintf" >&5 |
f6bcfd97 BP |
10750 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then |
10751 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10752 | else | |
10753 | ||
10754 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 10755 | #line 10756 "configure" |
f6bcfd97 BP |
10756 | #include "confdefs.h" |
10757 | ||
10758 | #include <stdio.h> | |
10759 | #include <stdarg.h> | |
10760 | ||
10f2d63a VZ |
10761 | int main() { |
10762 | ||
f6bcfd97 | 10763 | int wx_test_vsnprintf(const char *, ...); |
10f2d63a | 10764 | |
f6bcfd97 BP |
10765 | wx_test_vsnprintf("%s"); |
10766 | return 0; | |
10767 | } | |
10768 | ||
10769 | int wx_test_vsnprintf(const char *fmt, ...) | |
10770 | { | |
10771 | char *s; | |
10772 | ||
10773 | va_list argp; | |
10774 | va_start(argp, fmt); | |
10775 | vsnprintf(s, 42, fmt, argp); | |
10776 | va_end(argp); | |
10777 | ||
10f2d63a VZ |
10778 | ; return 0; } |
10779 | EOF | |
0fb0dd83 | 10780 | if { (eval echo configure:10781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a | 10781 | rm -rf conftest* |
f6bcfd97 BP |
10782 | |
10783 | cat >> confdefs.h <<\EOF | |
10784 | #define HAVE_VSNPRINTF 1 | |
10785 | EOF | |
10786 | ||
10787 | wx_cv_func_vsnprintf=yes | |
10788 | ||
10f2d63a VZ |
10789 | else |
10790 | echo "configure: failed program was:" >&5 | |
10791 | cat conftest.$ac_ext >&5 | |
10792 | rm -rf conftest* | |
f6bcfd97 BP |
10793 | |
10794 | echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2 | |
10795 | wx_cv_func_vsnprintf=no | |
10796 | ||
10f2d63a VZ |
10797 | fi |
10798 | rm -f conftest* | |
10f2d63a | 10799 | |
10f2d63a | 10800 | fi |
10f2d63a | 10801 | |
f6bcfd97 | 10802 | echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6 |
10f2d63a VZ |
10803 | |
10804 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 | |
0fb0dd83 | 10805 | echo "configure:10806: checking for vsscanf" >&5 |
10f2d63a VZ |
10806 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
10807 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10808 | else | |
10809 | ||
10f2d63a | 10810 | cat > conftest.$ac_ext <<EOF |
0fb0dd83 | 10811 | #line 10812 "configure" |
10f2d63a | 10812 | #include "confdefs.h" |
10f2d63a | 10813 | |
f6bcfd97 BP |
10814 | #include <stdio.h> |
10815 | #include <stdarg.h> | |
10816 | ||
10817 | int main() { | |
10f2d63a | 10818 | |
f6bcfd97 | 10819 | int wx_test_vsscanf(const char *, ...); |
10f2d63a | 10820 | |
f6bcfd97 BP |
10821 | wx_test_vsscanf("%d"); |
10822 | return 0; | |
10f2d63a VZ |
10823 | } |
10824 | ||
f6bcfd97 | 10825 | int wx_test_vsscanf(const char *fmt, ...) |
10f2d63a | 10826 | { |
f6bcfd97 BP |
10827 | va_list argp; |
10828 | va_start(argp, fmt); | |
10829 | vsscanf("42", fmt, argp); | |
10830 | va_end(argp); | |
10831 | ||
10832 | ; return 0; } | |
10f2d63a | 10833 | EOF |
0fb0dd83 | 10834 | if { (eval echo configure:10835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
f6bcfd97 | 10835 | rm -rf conftest* |
10f2d63a | 10836 | |
f6bcfd97 | 10837 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
10838 | #define HAVE_VSSCANF 1 |
10839 | EOF | |
10840 | ||
f6bcfd97 BP |
10841 | wx_cv_func_vsscanf=yes |
10842 | ||
10f2d63a VZ |
10843 | else |
10844 | echo "configure: failed program was:" >&5 | |
10845 | cat conftest.$ac_ext >&5 | |
f6bcfd97 BP |
10846 | rm -rf conftest* |
10847 | ||
10848 | wx_cv_func_vsscanf=no | |
10849 | ||
10f2d63a | 10850 | fi |
f6bcfd97 | 10851 | rm -f conftest* |
10f2d63a VZ |
10852 | |
10853 | fi | |
10854 | ||
10855 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 | |
10856 | ||
10857 | ac_ext=c | |
10858 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10859 | ac_cpp='$CPP $CPPFLAGS' | |
10860 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10861 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10862 | cross_compiling=$ac_cv_prog_cc_cross | |
10863 | ||
10864 | ||
b089607b | 10865 | if test "$TOOLKIT" != "MSW"; then |
10f2d63a | 10866 | |
eb4efbdc VZ |
10867 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
10868 | for ac_func in sigaction | |
10869 | do | |
10870 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
0fb0dd83 | 10871 | echo "configure:10872: checking for $ac_func" >&5 |
eb4efbdc VZ |
10872 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10873 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10874 | else | |
10875 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 10876 | #line 10877 "configure" |
eb4efbdc VZ |
10877 | #include "confdefs.h" |
10878 | /* System header to define __stub macros and hopefully few prototypes, | |
10879 | which can conflict with char $ac_func(); below. */ | |
10880 | #include <assert.h> | |
10881 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10882 | /* We use char because int might match the return type of a gcc2 | |
10883 | builtin and then its argument prototype would still apply. */ | |
10884 | char $ac_func(); | |
10885 | ||
10886 | int main() { | |
10887 | ||
10888 | /* The GNU C library defines this for functions which it implements | |
10889 | to always fail with ENOSYS. Some functions are actually named | |
10890 | something starting with __ and the normal name is an alias. */ | |
10891 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10892 | choke me | |
10893 | #else | |
10894 | $ac_func(); | |
10895 | #endif | |
10896 | ||
10897 | ; return 0; } | |
10898 | EOF | |
0fb0dd83 | 10899 | if { (eval echo configure:10900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
eb4efbdc VZ |
10900 | rm -rf conftest* |
10901 | eval "ac_cv_func_$ac_func=yes" | |
10902 | else | |
10903 | echo "configure: failed program was:" >&5 | |
10904 | cat conftest.$ac_ext >&5 | |
10905 | rm -rf conftest* | |
10906 | eval "ac_cv_func_$ac_func=no" | |
10907 | fi | |
10908 | rm -f conftest* | |
10909 | fi | |
10910 | ||
10911 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10912 | echo "$ac_t""yes" 1>&6 | |
10913 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10914 | cat >> confdefs.h <<EOF | |
10915 | #define $ac_tr_func 1 | |
10916 | EOF | |
10917 | ||
10918 | else | |
10919 | echo "$ac_t""no" 1>&6 | |
10920 | fi | |
10921 | done | |
10922 | ||
10923 | ||
10924 | if test "$ac_cv_func_sigaction" = "no"; then | |
10925 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 | |
10926 | wxUSE_ON_FATAL_EXCEPTION=no | |
10927 | fi | |
f6bcfd97 BP |
10928 | |
10929 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
10930 | ||
10931 | ac_ext=C | |
10932 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10933 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10934 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10935 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10936 | cross_compiling=$ac_cv_prog_cxx_cross | |
10937 | ||
10938 | ||
10939 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 | |
0fb0dd83 | 10940 | echo "configure:10941: checking for sa_handler type" >&5 |
f6bcfd97 BP |
10941 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
10942 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10943 | else | |
10944 | ||
10945 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 10946 | #line 10947 "configure" |
f6bcfd97 BP |
10947 | #include "confdefs.h" |
10948 | #include <signal.h> | |
10949 | int main() { | |
10950 | ||
10951 | extern void testSigHandler(int); | |
10952 | ||
10953 | struct sigaction sa; | |
10954 | sa.sa_handler = testSigHandler; | |
10955 | ||
10956 | ; return 0; } | |
10957 | EOF | |
0fb0dd83 | 10958 | if { (eval echo configure:10959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
f6bcfd97 BP |
10959 | rm -rf conftest* |
10960 | ||
10961 | wx_cv_type_sa_handler=int | |
10962 | ||
10963 | else | |
10964 | echo "configure: failed program was:" >&5 | |
10965 | cat conftest.$ac_ext >&5 | |
10966 | rm -rf conftest* | |
10967 | ||
10968 | wx_cv_type_sa_handler=void | |
10969 | ||
10970 | fi | |
10971 | rm -f conftest* | |
10972 | ||
10973 | fi | |
10974 | ||
10975 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
10976 | ||
10977 | ac_ext=c | |
10978 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10979 | ac_cpp='$CPP $CPPFLAGS' | |
10980 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10981 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10982 | cross_compiling=$ac_cv_prog_cc_cross | |
10983 | ||
10984 | ||
10985 | cat >> confdefs.h <<EOF | |
10986 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
10987 | EOF | |
10988 | ||
10989 | fi | |
eb4efbdc VZ |
10990 | fi |
10991 | ||
10f2d63a VZ |
10992 | for ac_func in vfork |
10993 | do | |
10994 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
0fb0dd83 | 10995 | echo "configure:10996: checking for $ac_func" >&5 |
10f2d63a VZ |
10996 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10997 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10998 | else | |
10999 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 11000 | #line 11001 "configure" |
10f2d63a VZ |
11001 | #include "confdefs.h" |
11002 | /* System header to define __stub macros and hopefully few prototypes, | |
11003 | which can conflict with char $ac_func(); below. */ | |
11004 | #include <assert.h> | |
11005 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11006 | /* We use char because int might match the return type of a gcc2 | |
11007 | builtin and then its argument prototype would still apply. */ | |
11008 | char $ac_func(); | |
11009 | ||
11010 | int main() { | |
11011 | ||
11012 | /* The GNU C library defines this for functions which it implements | |
11013 | to always fail with ENOSYS. Some functions are actually named | |
11014 | something starting with __ and the normal name is an alias. */ | |
11015 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11016 | choke me | |
11017 | #else | |
e8482f24 | 11018 | $ac_func(); |
10f2d63a VZ |
11019 | #endif |
11020 | ||
11021 | ; return 0; } | |
11022 | EOF | |
0fb0dd83 | 11023 | if { (eval echo configure:11024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
270a909e VZ |
11024 | rm -rf conftest* |
11025 | eval "ac_cv_func_$ac_func=yes" | |
11026 | else | |
11027 | echo "configure: failed program was:" >&5 | |
11028 | cat conftest.$ac_ext >&5 | |
11029 | rm -rf conftest* | |
11030 | eval "ac_cv_func_$ac_func=no" | |
11031 | fi | |
11032 | rm -f conftest* | |
11033 | fi | |
11034 | ||
11035 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11036 | echo "$ac_t""yes" 1>&6 | |
11037 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11038 | cat >> confdefs.h <<EOF | |
11039 | #define $ac_tr_func 1 | |
11040 | EOF | |
11041 | ||
11042 | else | |
11043 | echo "$ac_t""no" 1>&6 | |
11044 | fi | |
11045 | done | |
11046 | ||
11047 | ||
11048 | for ac_func in timegm | |
11049 | do | |
11050 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
0fb0dd83 | 11051 | echo "configure:11052: checking for $ac_func" >&5 |
270a909e VZ |
11052 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11053 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11054 | else | |
11055 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 11056 | #line 11057 "configure" |
270a909e VZ |
11057 | #include "confdefs.h" |
11058 | /* System header to define __stub macros and hopefully few prototypes, | |
11059 | which can conflict with char $ac_func(); below. */ | |
11060 | #include <assert.h> | |
11061 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11062 | /* We use char because int might match the return type of a gcc2 | |
11063 | builtin and then its argument prototype would still apply. */ | |
11064 | char $ac_func(); | |
11065 | ||
11066 | int main() { | |
11067 | ||
11068 | /* The GNU C library defines this for functions which it implements | |
11069 | to always fail with ENOSYS. Some functions are actually named | |
11070 | something starting with __ and the normal name is an alias. */ | |
11071 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11072 | choke me | |
11073 | #else | |
e8482f24 | 11074 | $ac_func(); |
270a909e VZ |
11075 | #endif |
11076 | ||
11077 | ; return 0; } | |
11078 | EOF | |
0fb0dd83 | 11079 | if { (eval echo configure:11080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11080 | rm -rf conftest* |
11081 | eval "ac_cv_func_$ac_func=yes" | |
11082 | else | |
11083 | echo "configure: failed program was:" >&5 | |
11084 | cat conftest.$ac_ext >&5 | |
11085 | rm -rf conftest* | |
11086 | eval "ac_cv_func_$ac_func=no" | |
11087 | fi | |
11088 | rm -f conftest* | |
11089 | fi | |
11090 | ||
11091 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11092 | echo "$ac_t""yes" 1>&6 | |
11093 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11094 | cat >> confdefs.h <<EOF | |
11095 | #define $ac_tr_func 1 | |
11096 | EOF | |
11097 | ||
11098 | else | |
11099 | echo "$ac_t""no" 1>&6 | |
11100 | fi | |
11101 | done | |
11102 | ||
11103 | ||
b12915c1 VZ |
11104 | HAVE_SOME_SLEEP_FUNC=0 |
11105 | if test "$USE_BEOS" = 1; then | |
11106 | cat >> confdefs.h <<\EOF | |
11107 | #define HAVE_SLEEP 1 | |
11108 | EOF | |
11109 | ||
11110 | HAVE_SOME_SLEEP_FUNC=1 | |
11111 | fi | |
11112 | ||
11113 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
11114 | POSIX4_LINK= | |
11115 | for ac_func in nanosleep | |
10f2d63a VZ |
11116 | do |
11117 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
0fb0dd83 | 11118 | echo "configure:11119: checking for $ac_func" >&5 |
10f2d63a VZ |
11119 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11120 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11121 | else | |
11122 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 11123 | #line 11124 "configure" |
10f2d63a VZ |
11124 | #include "confdefs.h" |
11125 | /* System header to define __stub macros and hopefully few prototypes, | |
11126 | which can conflict with char $ac_func(); below. */ | |
11127 | #include <assert.h> | |
11128 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11129 | /* We use char because int might match the return type of a gcc2 | |
11130 | builtin and then its argument prototype would still apply. */ | |
11131 | char $ac_func(); | |
11132 | ||
11133 | int main() { | |
11134 | ||
11135 | /* The GNU C library defines this for functions which it implements | |
11136 | to always fail with ENOSYS. Some functions are actually named | |
11137 | something starting with __ and the normal name is an alias. */ | |
11138 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11139 | choke me | |
11140 | #else | |
e8482f24 | 11141 | $ac_func(); |
10f2d63a VZ |
11142 | #endif |
11143 | ||
11144 | ; return 0; } | |
11145 | EOF | |
0fb0dd83 | 11146 | if { (eval echo configure:11147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11147 | rm -rf conftest* |
11148 | eval "ac_cv_func_$ac_func=yes" | |
11149 | else | |
11150 | echo "configure: failed program was:" >&5 | |
11151 | cat conftest.$ac_ext >&5 | |
11152 | rm -rf conftest* | |
11153 | eval "ac_cv_func_$ac_func=no" | |
11154 | fi | |
11155 | rm -f conftest* | |
11156 | fi | |
11157 | ||
11158 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11159 | echo "$ac_t""yes" 1>&6 | |
11160 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11161 | cat >> confdefs.h <<EOF | |
11162 | #define $ac_tr_func 1 | |
11163 | EOF | |
11164 | cat >> confdefs.h <<\EOF | |
11165 | #define HAVE_NANOSLEEP 1 | |
11166 | EOF | |
11167 | ||
11168 | else | |
11169 | echo "$ac_t""no" 1>&6 | |
11170 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
0fb0dd83 | 11171 | echo "configure:11172: checking for nanosleep in -lposix4" >&5 |
10f2d63a VZ |
11172 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
11173 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11174 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11175 | else | |
11176 | ac_save_LIBS="$LIBS" | |
11177 | LIBS="-lposix4 $LIBS" | |
11178 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 11179 | #line 11180 "configure" |
10f2d63a VZ |
11180 | #include "confdefs.h" |
11181 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11182 | /* We use char because int might match the return type of a gcc2 | |
11183 | builtin and then its argument prototype would still apply. */ | |
11184 | char nanosleep(); | |
11185 | ||
11186 | int main() { | |
11187 | nanosleep() | |
11188 | ; return 0; } | |
11189 | EOF | |
0fb0dd83 | 11190 | if { (eval echo configure:11191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11191 | rm -rf conftest* |
11192 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11193 | else | |
11194 | echo "configure: failed program was:" >&5 | |
11195 | cat conftest.$ac_ext >&5 | |
11196 | rm -rf conftest* | |
11197 | eval "ac_cv_lib_$ac_lib_var=no" | |
11198 | fi | |
11199 | rm -f conftest* | |
11200 | LIBS="$ac_save_LIBS" | |
11201 | ||
11202 | fi | |
11203 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11204 | echo "$ac_t""yes" 1>&6 | |
11205 | ||
b12915c1 | 11206 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
11207 | #define HAVE_NANOSLEEP 1 |
11208 | EOF | |
11209 | ||
b12915c1 VZ |
11210 | POSIX4_LINK="-lposix4" |
11211 | ||
10f2d63a VZ |
11212 | else |
11213 | echo "$ac_t""no" 1>&6 | |
11214 | ||
b12915c1 | 11215 | for ac_func in usleep |
10f2d63a VZ |
11216 | do |
11217 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
0fb0dd83 | 11218 | echo "configure:11219: checking for $ac_func" >&5 |
10f2d63a VZ |
11219 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11220 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11221 | else | |
11222 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 11223 | #line 11224 "configure" |
10f2d63a VZ |
11224 | #include "confdefs.h" |
11225 | /* System header to define __stub macros and hopefully few prototypes, | |
11226 | which can conflict with char $ac_func(); below. */ | |
11227 | #include <assert.h> | |
11228 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11229 | /* We use char because int might match the return type of a gcc2 | |
11230 | builtin and then its argument prototype would still apply. */ | |
11231 | char $ac_func(); | |
11232 | ||
11233 | int main() { | |
11234 | ||
11235 | /* The GNU C library defines this for functions which it implements | |
11236 | to always fail with ENOSYS. Some functions are actually named | |
11237 | something starting with __ and the normal name is an alias. */ | |
11238 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11239 | choke me | |
11240 | #else | |
e8482f24 | 11241 | $ac_func(); |
10f2d63a VZ |
11242 | #endif |
11243 | ||
11244 | ; return 0; } | |
11245 | EOF | |
0fb0dd83 | 11246 | if { (eval echo configure:11247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11247 | rm -rf conftest* |
11248 | eval "ac_cv_func_$ac_func=yes" | |
11249 | else | |
11250 | echo "configure: failed program was:" >&5 | |
11251 | cat conftest.$ac_ext >&5 | |
11252 | rm -rf conftest* | |
11253 | eval "ac_cv_func_$ac_func=no" | |
11254 | fi | |
11255 | rm -f conftest* | |
11256 | fi | |
11257 | ||
11258 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11259 | echo "$ac_t""yes" 1>&6 | |
11260 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11261 | cat >> confdefs.h <<EOF | |
11262 | #define $ac_tr_func 1 | |
11263 | EOF | |
b12915c1 | 11264 | |
10f2d63a VZ |
11265 | else |
11266 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
11267 | fi |
11268 | done | |
11269 | ||
b12915c1 VZ |
11270 | echo "configure: warning: wxSleep() function will not work" 1>&2 |
11271 | ||
11272 | ||
10f2d63a VZ |
11273 | fi |
11274 | ||
b12915c1 VZ |
11275 | |
11276 | ||
10f2d63a VZ |
11277 | fi |
11278 | done | |
11279 | ||
b12915c1 | 11280 | fi |
10f2d63a VZ |
11281 | |
11282 | for ac_func in uname gethostname | |
11283 | do | |
11284 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
0fb0dd83 | 11285 | echo "configure:11286: checking for $ac_func" >&5 |
10f2d63a VZ |
11286 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11287 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11288 | else | |
11289 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 11290 | #line 11291 "configure" |
10f2d63a VZ |
11291 | #include "confdefs.h" |
11292 | /* System header to define __stub macros and hopefully few prototypes, | |
11293 | which can conflict with char $ac_func(); below. */ | |
11294 | #include <assert.h> | |
11295 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11296 | /* We use char because int might match the return type of a gcc2 | |
11297 | builtin and then its argument prototype would still apply. */ | |
11298 | char $ac_func(); | |
11299 | ||
11300 | int main() { | |
11301 | ||
11302 | /* The GNU C library defines this for functions which it implements | |
11303 | to always fail with ENOSYS. Some functions are actually named | |
11304 | something starting with __ and the normal name is an alias. */ | |
11305 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11306 | choke me | |
11307 | #else | |
e8482f24 | 11308 | $ac_func(); |
10f2d63a VZ |
11309 | #endif |
11310 | ||
11311 | ; return 0; } | |
11312 | EOF | |
0fb0dd83 | 11313 | if { (eval echo configure:11314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11314 | rm -rf conftest* |
11315 | eval "ac_cv_func_$ac_func=yes" | |
11316 | else | |
11317 | echo "configure: failed program was:" >&5 | |
11318 | cat conftest.$ac_ext >&5 | |
11319 | rm -rf conftest* | |
11320 | eval "ac_cv_func_$ac_func=no" | |
11321 | fi | |
11322 | rm -f conftest* | |
11323 | fi | |
11324 | ||
11325 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11326 | echo "$ac_t""yes" 1>&6 | |
11327 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11328 | cat >> confdefs.h <<EOF | |
11329 | #define $ac_tr_func 1 | |
11330 | EOF | |
11331 | break | |
11332 | else | |
11333 | echo "$ac_t""no" 1>&6 | |
11334 | fi | |
11335 | done | |
11336 | ||
11337 | ||
6098c7f9 VZ |
11338 | |
11339 | ac_ext=C | |
11340 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11341 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11342 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11343 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11344 | cross_compiling=$ac_cv_prog_cxx_cross | |
11345 | ||
11346 | ||
10f2d63a VZ |
11347 | for ac_func in strtok_r |
11348 | do | |
11349 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
0fb0dd83 | 11350 | echo "configure:11351: checking for $ac_func" >&5 |
10f2d63a VZ |
11351 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11352 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11353 | else | |
11354 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 11355 | #line 11356 "configure" |
10f2d63a VZ |
11356 | #include "confdefs.h" |
11357 | /* System header to define __stub macros and hopefully few prototypes, | |
11358 | which can conflict with char $ac_func(); below. */ | |
11359 | #include <assert.h> | |
11360 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6098c7f9 VZ |
11361 | #ifdef __cplusplus |
11362 | extern "C" | |
11363 | #endif | |
10f2d63a VZ |
11364 | /* We use char because int might match the return type of a gcc2 |
11365 | builtin and then its argument prototype would still apply. */ | |
11366 | char $ac_func(); | |
11367 | ||
11368 | int main() { | |
11369 | ||
11370 | /* The GNU C library defines this for functions which it implements | |
11371 | to always fail with ENOSYS. Some functions are actually named | |
11372 | something starting with __ and the normal name is an alias. */ | |
11373 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11374 | choke me | |
11375 | #else | |
e8482f24 | 11376 | $ac_func(); |
10f2d63a VZ |
11377 | #endif |
11378 | ||
11379 | ; return 0; } | |
11380 | EOF | |
0fb0dd83 | 11381 | if { (eval echo configure:11382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11382 | rm -rf conftest* |
11383 | eval "ac_cv_func_$ac_func=yes" | |
11384 | else | |
11385 | echo "configure: failed program was:" >&5 | |
11386 | cat conftest.$ac_ext >&5 | |
11387 | rm -rf conftest* | |
11388 | eval "ac_cv_func_$ac_func=no" | |
11389 | fi | |
11390 | rm -f conftest* | |
11391 | fi | |
11392 | ||
11393 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11394 | echo "$ac_t""yes" 1>&6 | |
11395 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11396 | cat >> confdefs.h <<EOF | |
11397 | #define $ac_tr_func 1 | |
11398 | EOF | |
11399 | ||
11400 | else | |
11401 | echo "$ac_t""no" 1>&6 | |
11402 | fi | |
11403 | done | |
11404 | ||
11405 | ||
6098c7f9 VZ |
11406 | ac_ext=c |
11407 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11408 | ac_cpp='$CPP $CPPFLAGS' | |
11409 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11410 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11411 | cross_compiling=$ac_cv_prog_cc_cross | |
11412 | ||
11413 | ||
c63c7106 | 11414 | INET_LINK= |
10f2d63a VZ |
11415 | for ac_func in inet_addr |
11416 | do | |
11417 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
0fb0dd83 | 11418 | echo "configure:11419: checking for $ac_func" >&5 |
10f2d63a VZ |
11419 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11420 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11421 | else | |
11422 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 11423 | #line 11424 "configure" |
10f2d63a VZ |
11424 | #include "confdefs.h" |
11425 | /* System header to define __stub macros and hopefully few prototypes, | |
11426 | which can conflict with char $ac_func(); below. */ | |
11427 | #include <assert.h> | |
11428 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11429 | /* We use char because int might match the return type of a gcc2 | |
11430 | builtin and then its argument prototype would still apply. */ | |
11431 | char $ac_func(); | |
11432 | ||
11433 | int main() { | |
11434 | ||
11435 | /* The GNU C library defines this for functions which it implements | |
11436 | to always fail with ENOSYS. Some functions are actually named | |
11437 | something starting with __ and the normal name is an alias. */ | |
11438 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11439 | choke me | |
11440 | #else | |
e8482f24 | 11441 | $ac_func(); |
10f2d63a VZ |
11442 | #endif |
11443 | ||
11444 | ; return 0; } | |
11445 | EOF | |
0fb0dd83 | 11446 | if { (eval echo configure:11447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11447 | rm -rf conftest* |
11448 | eval "ac_cv_func_$ac_func=yes" | |
11449 | else | |
11450 | echo "configure: failed program was:" >&5 | |
11451 | cat conftest.$ac_ext >&5 | |
11452 | rm -rf conftest* | |
11453 | eval "ac_cv_func_$ac_func=no" | |
11454 | fi | |
11455 | rm -f conftest* | |
11456 | fi | |
11457 | ||
11458 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11459 | echo "$ac_t""yes" 1>&6 | |
11460 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11461 | cat >> confdefs.h <<EOF | |
11462 | #define $ac_tr_func 1 | |
11463 | EOF | |
c63c7106 VZ |
11464 | cat >> confdefs.h <<\EOF |
11465 | #define HAVE_INET_ADDR 1 | |
11466 | EOF | |
11467 | ||
10f2d63a VZ |
11468 | else |
11469 | echo "$ac_t""no" 1>&6 | |
c63c7106 | 11470 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 |
0fb0dd83 | 11471 | echo "configure:11472: checking for inet_addr in -lnsl" >&5 |
c63c7106 VZ |
11472 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
11473 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11474 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11475 | else | |
11476 | ac_save_LIBS="$LIBS" | |
11477 | LIBS="-lnsl $LIBS" | |
11478 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 11479 | #line 11480 "configure" |
c63c7106 VZ |
11480 | #include "confdefs.h" |
11481 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11482 | /* We use char because int might match the return type of a gcc2 | |
11483 | builtin and then its argument prototype would still apply. */ | |
11484 | char inet_addr(); | |
11485 | ||
11486 | int main() { | |
11487 | inet_addr() | |
11488 | ; return 0; } | |
11489 | EOF | |
0fb0dd83 | 11490 | if { (eval echo configure:11491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c63c7106 VZ |
11491 | rm -rf conftest* |
11492 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11493 | else | |
11494 | echo "configure: failed program was:" >&5 | |
11495 | cat conftest.$ac_ext >&5 | |
11496 | rm -rf conftest* | |
11497 | eval "ac_cv_lib_$ac_lib_var=no" | |
11498 | fi | |
11499 | rm -f conftest* | |
11500 | LIBS="$ac_save_LIBS" | |
11501 | ||
11502 | fi | |
11503 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11504 | echo "$ac_t""yes" 1>&6 | |
11505 | INET_LINK="nsl" | |
11506 | else | |
11507 | echo "$ac_t""no" 1>&6 | |
11508 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 | |
0fb0dd83 | 11509 | echo "configure:11510: checking for inet_addr in -lresolv" >&5 |
c63c7106 VZ |
11510 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
11511 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11512 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11513 | else | |
11514 | ac_save_LIBS="$LIBS" | |
11515 | LIBS="-lresolv $LIBS" | |
11516 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 11517 | #line 11518 "configure" |
c63c7106 VZ |
11518 | #include "confdefs.h" |
11519 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11520 | /* We use char because int might match the return type of a gcc2 | |
11521 | builtin and then its argument prototype would still apply. */ | |
11522 | char inet_addr(); | |
11523 | ||
11524 | int main() { | |
11525 | inet_addr() | |
11526 | ; return 0; } | |
11527 | EOF | |
0fb0dd83 | 11528 | if { (eval echo configure:11529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c63c7106 VZ |
11529 | rm -rf conftest* |
11530 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11531 | else | |
11532 | echo "configure: failed program was:" >&5 | |
11533 | cat conftest.$ac_ext >&5 | |
11534 | rm -rf conftest* | |
11535 | eval "ac_cv_lib_$ac_lib_var=no" | |
11536 | fi | |
11537 | rm -f conftest* | |
11538 | LIBS="$ac_save_LIBS" | |
11539 | ||
11540 | fi | |
11541 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11542 | echo "$ac_t""yes" 1>&6 | |
11543 | INET_LINK="resolv" | |
11544 | ||
11545 | else | |
11546 | echo "$ac_t""no" 1>&6 | |
11547 | fi | |
11548 | ||
11549 | ||
11550 | fi | |
11551 | ||
11552 | ||
11553 | ||
10f2d63a VZ |
11554 | fi |
11555 | done | |
11556 | ||
c63c7106 | 11557 | |
10f2d63a VZ |
11558 | for ac_func in inet_aton |
11559 | do | |
11560 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
0fb0dd83 | 11561 | echo "configure:11562: checking for $ac_func" >&5 |
10f2d63a VZ |
11562 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11563 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11564 | else | |
11565 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 11566 | #line 11567 "configure" |
10f2d63a VZ |
11567 | #include "confdefs.h" |
11568 | /* System header to define __stub macros and hopefully few prototypes, | |
11569 | which can conflict with char $ac_func(); below. */ | |
11570 | #include <assert.h> | |
11571 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11572 | /* We use char because int might match the return type of a gcc2 | |
11573 | builtin and then its argument prototype would still apply. */ | |
11574 | char $ac_func(); | |
11575 | ||
11576 | int main() { | |
11577 | ||
11578 | /* The GNU C library defines this for functions which it implements | |
11579 | to always fail with ENOSYS. Some functions are actually named | |
11580 | something starting with __ and the normal name is an alias. */ | |
11581 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11582 | choke me | |
11583 | #else | |
e8482f24 | 11584 | $ac_func(); |
10f2d63a VZ |
11585 | #endif |
11586 | ||
11587 | ; return 0; } | |
11588 | EOF | |
0fb0dd83 | 11589 | if { (eval echo configure:11590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11590 | rm -rf conftest* |
11591 | eval "ac_cv_func_$ac_func=yes" | |
11592 | else | |
11593 | echo "configure: failed program was:" >&5 | |
11594 | cat conftest.$ac_ext >&5 | |
11595 | rm -rf conftest* | |
11596 | eval "ac_cv_func_$ac_func=no" | |
11597 | fi | |
11598 | rm -f conftest* | |
11599 | fi | |
11600 | ||
11601 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11602 | echo "$ac_t""yes" 1>&6 | |
11603 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11604 | cat >> confdefs.h <<EOF | |
11605 | #define $ac_tr_func 1 | |
11606 | EOF | |
c63c7106 VZ |
11607 | cat >> confdefs.h <<\EOF |
11608 | #define HAVE_INET_ATON 1 | |
11609 | EOF | |
11610 | ||
10f2d63a VZ |
11611 | else |
11612 | echo "$ac_t""no" 1>&6 | |
c63c7106 | 11613 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 |
0fb0dd83 | 11614 | echo "configure:11615: checking for inet_aton in -l$INET_LINK" >&5 |
c63c7106 | 11615 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
10f2d63a VZ |
11616 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
11617 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11618 | else | |
11619 | ac_save_LIBS="$LIBS" | |
c63c7106 | 11620 | LIBS="-l$INET_LINK $LIBS" |
10f2d63a | 11621 | cat > conftest.$ac_ext <<EOF |
0fb0dd83 | 11622 | #line 11623 "configure" |
10f2d63a VZ |
11623 | #include "confdefs.h" |
11624 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11625 | /* We use char because int might match the return type of a gcc2 | |
11626 | builtin and then its argument prototype would still apply. */ | |
11627 | char inet_aton(); | |
11628 | ||
11629 | int main() { | |
11630 | inet_aton() | |
11631 | ; return 0; } | |
11632 | EOF | |
0fb0dd83 | 11633 | if { (eval echo configure:11634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11634 | rm -rf conftest* |
11635 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11636 | else | |
11637 | echo "configure: failed program was:" >&5 | |
11638 | cat conftest.$ac_ext >&5 | |
11639 | rm -rf conftest* | |
11640 | eval "ac_cv_lib_$ac_lib_var=no" | |
11641 | fi | |
11642 | rm -f conftest* | |
11643 | LIBS="$ac_save_LIBS" | |
11644 | ||
11645 | fi | |
11646 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11647 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
11648 | cat >> confdefs.h <<\EOF |
11649 | #define HAVE_INET_ATON 1 | |
10f2d63a VZ |
11650 | EOF |
11651 | ||
10f2d63a VZ |
11652 | else |
11653 | echo "$ac_t""no" 1>&6 | |
11654 | fi | |
11655 | ||
c63c7106 VZ |
11656 | |
11657 | fi | |
11658 | done | |
11659 | ||
11660 | ||
11661 | if test "x$INET_LINK" != "x"; then | |
11662 | cat >> confdefs.h <<\EOF | |
11663 | #define HAVE_INET_ADDR 1 | |
11664 | EOF | |
11665 | ||
11666 | INET_LINK="-l$INET_LINK" | |
11667 | fi | |
10f2d63a VZ |
11668 | |
11669 | fi | |
11670 | ||
11671 | ||
11672 | cat > confcache <<\EOF | |
11673 | # This file is a shell script that caches the results of configure | |
11674 | # tests run on this system so they can be shared between configure | |
11675 | # scripts and configure runs. It is not useful on other systems. | |
11676 | # If it contains results you don't want to keep, you may remove or edit it. | |
11677 | # | |
11678 | # By default, configure uses ./config.cache as the cache file, | |
11679 | # creating it if it does not exist already. You can give configure | |
11680 | # the --cache-file=FILE option to use a different cache file; that is | |
11681 | # what configure does when it calls configure scripts in | |
11682 | # subdirectories, so they share the cache. | |
11683 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
11684 | # config.status only pays attention to the cache file if you give it the | |
11685 | # --recheck option to rerun configure. | |
11686 | # | |
11687 | EOF | |
11688 | # The following way of writing the cache mishandles newlines in values, | |
11689 | # but we know of no workaround that is simple, portable, and efficient. | |
11690 | # So, don't put newlines in cache variables' values. | |
11691 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
11692 | # and sets the high bit in the cache file unless we assign to the vars. | |
11693 | (set) 2>&1 | | |
11694 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
11695 | *ac_space=\ *) | |
11696 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
11697 | # turns \\\\ into \\, and sed turns \\ into \). | |
11698 | sed -n \ | |
11699 | -e "s/'/'\\\\''/g" \ | |
11700 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
11701 | ;; | |
11702 | *) | |
11703 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
11704 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
11705 | ;; | |
11706 | esac >> confcache | |
11707 | if cmp -s $cache_file confcache; then | |
11708 | : | |
11709 | else | |
11710 | if test -w $cache_file; then | |
11711 | echo "updating cache $cache_file" | |
11712 | cat confcache > $cache_file | |
11713 | else | |
11714 | echo "not updating unwritable cache $cache_file" | |
11715 | fi | |
11716 | fi | |
11717 | rm -f confcache | |
11718 | ||
11719 | ||
11720 | ||
b089607b | 11721 | if test "$TOOLKIT" != "MSW"; then |
10f2d63a VZ |
11722 | |
11723 | ||
11724 | THREADS_LINK="" | |
11725 | THREADS_OBJ="" | |
11726 | ||
11727 | if test "$wxUSE_THREADS" = "yes" ; then | |
11728 | if test "$wxUSE_WINE" = 1 ; then | |
11729 | echo "configure: warning: Threads are not supported under WINE" 1>&2 | |
11730 | wxUSE_THREADS="no" | |
b12915c1 VZ |
11731 | elif test "$USE_BEOS" = 1; then |
11732 | echo "configure: warning: BeOS threads are not yet supported" 1>&2 | |
11733 | wxUSE_THREADS="no" | |
10f2d63a VZ |
11734 | fi |
11735 | fi | |
11736 | ||
11737 | if test "$wxUSE_THREADS" = "yes" ; then | |
11738 | ||
f6bcfd97 BP |
11739 | if test "$wxUSE_AIX" = 1; then |
11740 | THREADS_LIB=pthreads | |
11741 | else | |
11742 | THREADS_LIB=pthread | |
11743 | fi | |
11744 | ||
11745 | echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6 | |
0fb0dd83 | 11746 | echo "configure:11747: checking for pthread_create in -l$THREADS_LIB" >&5 |
f6bcfd97 | 11747 | ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'` |
10f2d63a VZ |
11748 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
11749 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11750 | else | |
11751 | ac_save_LIBS="$LIBS" | |
f6bcfd97 | 11752 | LIBS="-l$THREADS_LIB $LIBS" |
10f2d63a | 11753 | cat > conftest.$ac_ext <<EOF |
0fb0dd83 | 11754 | #line 11755 "configure" |
10f2d63a VZ |
11755 | #include "confdefs.h" |
11756 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11757 | /* We use char because int might match the return type of a gcc2 | |
11758 | builtin and then its argument prototype would still apply. */ | |
11759 | char pthread_create(); | |
11760 | ||
11761 | int main() { | |
11762 | pthread_create() | |
11763 | ; return 0; } | |
11764 | EOF | |
0fb0dd83 | 11765 | if { (eval echo configure:11766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11766 | rm -rf conftest* |
11767 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11768 | else | |
11769 | echo "configure: failed program was:" >&5 | |
11770 | cat conftest.$ac_ext >&5 | |
11771 | rm -rf conftest* | |
11772 | eval "ac_cv_lib_$ac_lib_var=no" | |
11773 | fi | |
11774 | rm -f conftest* | |
11775 | LIBS="$ac_save_LIBS" | |
11776 | ||
11777 | fi | |
11778 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11779 | echo "$ac_t""yes" 1>&6 | |
11780 | ||
11781 | THREADS_OBJ="threadpsx.lo" | |
f6bcfd97 | 11782 | THREADS_LINK=$THREADS_LIB |
10f2d63a VZ |
11783 | |
11784 | else | |
11785 | echo "$ac_t""no" 1>&6 | |
11786 | ||
11787 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 | |
0fb0dd83 | 11788 | echo "configure:11789: checking for pthread_create in -lc_r" >&5 |
10f2d63a VZ |
11789 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
11790 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11791 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11792 | else | |
11793 | ac_save_LIBS="$LIBS" | |
11794 | LIBS="-lc_r $LIBS" | |
11795 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 11796 | #line 11797 "configure" |
10f2d63a VZ |
11797 | #include "confdefs.h" |
11798 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11799 | /* We use char because int might match the return type of a gcc2 | |
11800 | builtin and then its argument prototype would still apply. */ | |
11801 | char pthread_create(); | |
11802 | ||
11803 | int main() { | |
11804 | pthread_create() | |
11805 | ; return 0; } | |
11806 | EOF | |
0fb0dd83 | 11807 | if { (eval echo configure:11808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11808 | rm -rf conftest* |
11809 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11810 | else | |
11811 | echo "configure: failed program was:" >&5 | |
11812 | cat conftest.$ac_ext >&5 | |
11813 | rm -rf conftest* | |
11814 | eval "ac_cv_lib_$ac_lib_var=no" | |
11815 | fi | |
11816 | rm -f conftest* | |
11817 | LIBS="$ac_save_LIBS" | |
11818 | ||
11819 | fi | |
11820 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11821 | echo "$ac_t""yes" 1>&6 | |
11822 | ||
11823 | THREADS_OBJ="threadpsx.lo" | |
11824 | THREADS_LINK="c_r" | |
11825 | ||
11826 | else | |
11827 | echo "$ac_t""no" 1>&6 | |
11828 | ||
11829 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` | |
11830 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 | |
0fb0dd83 | 11831 | echo "configure:11832: checking for sys/prctl.h" >&5 |
10f2d63a VZ |
11832 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11833 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11834 | else | |
11835 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 11836 | #line 11837 "configure" |
10f2d63a VZ |
11837 | #include "confdefs.h" |
11838 | #include <sys/prctl.h> | |
11839 | EOF | |
11840 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
0fb0dd83 | 11841 | { (eval echo configure:11842: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
11842 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11843 | if test -z "$ac_err"; then | |
11844 | rm -rf conftest* | |
11845 | eval "ac_cv_header_$ac_safe=yes" | |
11846 | else | |
11847 | echo "$ac_err" >&5 | |
11848 | echo "configure: failed program was:" >&5 | |
11849 | cat conftest.$ac_ext >&5 | |
11850 | rm -rf conftest* | |
11851 | eval "ac_cv_header_$ac_safe=no" | |
11852 | fi | |
11853 | rm -f conftest* | |
11854 | fi | |
11855 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11856 | echo "$ac_t""yes" 1>&6 | |
11857 | ||
11858 | THREADS_OBJ="threadsgi.lo" | |
11859 | ||
11860 | else | |
11861 | echo "$ac_t""no" 1>&6 | |
11862 | fi | |
11863 | ||
11864 | ||
11865 | fi | |
11866 | ||
11867 | ||
11868 | fi | |
11869 | ||
11870 | ||
11871 | if test -z "$THREADS_OBJ" ; then | |
11872 | wxUSE_THREADS=no | |
11873 | echo "configure: warning: No thread support on this system" 1>&2 | |
11874 | fi | |
11875 | fi | |
11876 | ||
11877 | if test "$wxUSE_THREADS" = "yes" ; then | |
70846f0a VZ |
11878 | for ac_func in thr_setconcurrency |
11879 | do | |
11880 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
0fb0dd83 | 11881 | echo "configure:11882: checking for $ac_func" >&5 |
70846f0a VZ |
11882 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11883 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11884 | else | |
11885 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 11886 | #line 11887 "configure" |
70846f0a VZ |
11887 | #include "confdefs.h" |
11888 | /* System header to define __stub macros and hopefully few prototypes, | |
11889 | which can conflict with char $ac_func(); below. */ | |
11890 | #include <assert.h> | |
11891 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11892 | /* We use char because int might match the return type of a gcc2 | |
11893 | builtin and then its argument prototype would still apply. */ | |
11894 | char $ac_func(); | |
11895 | ||
11896 | int main() { | |
11897 | ||
11898 | /* The GNU C library defines this for functions which it implements | |
11899 | to always fail with ENOSYS. Some functions are actually named | |
11900 | something starting with __ and the normal name is an alias. */ | |
11901 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11902 | choke me | |
11903 | #else | |
e8482f24 | 11904 | $ac_func(); |
70846f0a VZ |
11905 | #endif |
11906 | ||
11907 | ; return 0; } | |
11908 | EOF | |
0fb0dd83 | 11909 | if { (eval echo configure:11910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
70846f0a VZ |
11910 | rm -rf conftest* |
11911 | eval "ac_cv_func_$ac_func=yes" | |
11912 | else | |
11913 | echo "configure: failed program was:" >&5 | |
11914 | cat conftest.$ac_ext >&5 | |
11915 | rm -rf conftest* | |
11916 | eval "ac_cv_func_$ac_func=no" | |
11917 | fi | |
11918 | rm -f conftest* | |
11919 | fi | |
11920 | ||
11921 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11922 | echo "$ac_t""yes" 1>&6 | |
11923 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11924 | cat >> confdefs.h <<EOF | |
11925 | #define $ac_tr_func 1 | |
11926 | EOF | |
11927 | ||
11928 | else | |
11929 | echo "$ac_t""no" 1>&6 | |
11930 | fi | |
11931 | done | |
11932 | ||
11933 | ||
10f2d63a VZ |
11934 | |
11935 | for ac_hdr in sched.h | |
11936 | do | |
11937 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
11938 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
0fb0dd83 | 11939 | echo "configure:11940: checking for $ac_hdr" >&5 |
10f2d63a VZ |
11940 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11941 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11942 | else | |
11943 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 11944 | #line 11945 "configure" |
10f2d63a VZ |
11945 | #include "confdefs.h" |
11946 | #include <$ac_hdr> | |
11947 | EOF | |
11948 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
0fb0dd83 | 11949 | { (eval echo configure:11950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
11950 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11951 | if test -z "$ac_err"; then | |
11952 | rm -rf conftest* | |
11953 | eval "ac_cv_header_$ac_safe=yes" | |
11954 | else | |
11955 | echo "$ac_err" >&5 | |
11956 | echo "configure: failed program was:" >&5 | |
11957 | cat conftest.$ac_ext >&5 | |
11958 | rm -rf conftest* | |
11959 | eval "ac_cv_header_$ac_safe=no" | |
11960 | fi | |
11961 | rm -f conftest* | |
11962 | fi | |
11963 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
11964 | echo "$ac_t""yes" 1>&6 | |
11965 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11966 | cat >> confdefs.h <<EOF | |
11967 | #define $ac_tr_hdr 1 | |
11968 | EOF | |
11969 | ||
11970 | else | |
11971 | echo "$ac_t""no" 1>&6 | |
11972 | fi | |
11973 | done | |
11974 | ||
11975 | ||
11976 | echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6 | |
0fb0dd83 | 11977 | echo "configure:11978: checking for sched_yield in -l$THREADS_LINK" >&5 |
10f2d63a VZ |
11978 | ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'` |
11979 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11980 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11981 | else | |
11982 | ac_save_LIBS="$LIBS" | |
11983 | LIBS="-l$THREADS_LINK $LIBS" | |
11984 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 11985 | #line 11986 "configure" |
10f2d63a VZ |
11986 | #include "confdefs.h" |
11987 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11988 | /* We use char because int might match the return type of a gcc2 | |
11989 | builtin and then its argument prototype would still apply. */ | |
11990 | char sched_yield(); | |
11991 | ||
11992 | int main() { | |
11993 | sched_yield() | |
11994 | ; return 0; } | |
11995 | EOF | |
0fb0dd83 | 11996 | if { (eval echo configure:11997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
11997 | rm -rf conftest* |
11998 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11999 | else | |
12000 | echo "configure: failed program was:" >&5 | |
12001 | cat conftest.$ac_ext >&5 | |
12002 | rm -rf conftest* | |
12003 | eval "ac_cv_lib_$ac_lib_var=no" | |
12004 | fi | |
12005 | rm -f conftest* | |
12006 | LIBS="$ac_save_LIBS" | |
12007 | ||
12008 | fi | |
12009 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12010 | echo "$ac_t""yes" 1>&6 | |
12011 | cat >> confdefs.h <<\EOF | |
12012 | #define HAVE_SCHED_YIELD 1 | |
12013 | EOF | |
12014 | ||
12015 | else | |
12016 | echo "$ac_t""no" 1>&6 | |
12017 | echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6 | |
0fb0dd83 | 12018 | echo "configure:12019: checking for sched_yield in -l"posix4"" >&5 |
10f2d63a VZ |
12019 | ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'` |
12020 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12021 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12022 | else | |
12023 | ac_save_LIBS="$LIBS" | |
12024 | LIBS="-l"posix4" $LIBS" | |
12025 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 12026 | #line 12027 "configure" |
10f2d63a VZ |
12027 | #include "confdefs.h" |
12028 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12029 | /* We use char because int might match the return type of a gcc2 | |
12030 | builtin and then its argument prototype would still apply. */ | |
12031 | char sched_yield(); | |
12032 | ||
12033 | int main() { | |
12034 | sched_yield() | |
12035 | ; return 0; } | |
12036 | EOF | |
0fb0dd83 | 12037 | if { (eval echo configure:12038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
12038 | rm -rf conftest* |
12039 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12040 | else | |
12041 | echo "configure: failed program was:" >&5 | |
12042 | cat conftest.$ac_ext >&5 | |
12043 | rm -rf conftest* | |
12044 | eval "ac_cv_lib_$ac_lib_var=no" | |
12045 | fi | |
12046 | rm -f conftest* | |
12047 | LIBS="$ac_save_LIBS" | |
12048 | ||
12049 | fi | |
12050 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12051 | echo "$ac_t""yes" 1>&6 | |
12052 | cat >> confdefs.h <<\EOF | |
12053 | #define HAVE_SCHED_YIELD 1 | |
12054 | EOF | |
12055 | POSIX4_LINK="-lposix4" | |
12056 | else | |
12057 | echo "$ac_t""no" 1>&6 | |
12058 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
12059 | ||
12060 | fi | |
12061 | ||
12062 | ||
12063 | fi | |
12064 | ||
12065 | ||
f6bcfd97 BP |
12066 | HAVE_PRIOR_FUNCS=0 |
12067 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6 | |
0fb0dd83 | 12068 | echo "configure:12069: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5 |
10f2d63a VZ |
12069 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
12070 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12071 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12072 | else | |
12073 | ac_save_LIBS="$LIBS" | |
12074 | LIBS="-l$THREADS_LINK $LIBS" | |
12075 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 12076 | #line 12077 "configure" |
10f2d63a VZ |
12077 | #include "confdefs.h" |
12078 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12079 | /* We use char because int might match the return type of a gcc2 | |
12080 | builtin and then its argument prototype would still apply. */ | |
12081 | char pthread_attr_getschedpolicy(); | |
12082 | ||
12083 | int main() { | |
12084 | pthread_attr_getschedpolicy() | |
12085 | ; return 0; } | |
12086 | EOF | |
0fb0dd83 | 12087 | if { (eval echo configure:12088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
12088 | rm -rf conftest* |
12089 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12090 | else | |
12091 | echo "configure: failed program was:" >&5 | |
12092 | cat conftest.$ac_ext >&5 | |
12093 | rm -rf conftest* | |
12094 | eval "ac_cv_lib_$ac_lib_var=no" | |
12095 | fi | |
12096 | rm -f conftest* | |
12097 | LIBS="$ac_save_LIBS" | |
12098 | ||
12099 | fi | |
12100 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12101 | echo "$ac_t""yes" 1>&6 | |
f6bcfd97 | 12102 | echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6 |
0fb0dd83 | 12103 | echo "configure:12104: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5 |
f6bcfd97 BP |
12104 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'` |
12105 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12106 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12107 | else | |
12108 | ac_save_LIBS="$LIBS" | |
12109 | LIBS="-l$THREADS_LINK $LIBS" | |
12110 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 12111 | #line 12112 "configure" |
f6bcfd97 BP |
12112 | #include "confdefs.h" |
12113 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12114 | /* We use char because int might match the return type of a gcc2 | |
12115 | builtin and then its argument prototype would still apply. */ | |
12116 | char pthread_attr_setschedparam(); | |
12117 | ||
12118 | int main() { | |
12119 | pthread_attr_setschedparam() | |
12120 | ; return 0; } | |
10f2d63a | 12121 | EOF |
0fb0dd83 | 12122 | if { (eval echo configure:12123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f6bcfd97 BP |
12123 | rm -rf conftest* |
12124 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12125 | else | |
12126 | echo "configure: failed program was:" >&5 | |
12127 | cat conftest.$ac_ext >&5 | |
12128 | rm -rf conftest* | |
12129 | eval "ac_cv_lib_$ac_lib_var=no" | |
12130 | fi | |
12131 | rm -f conftest* | |
12132 | LIBS="$ac_save_LIBS" | |
10f2d63a | 12133 | |
f6bcfd97 BP |
12134 | fi |
12135 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12136 | echo "$ac_t""yes" 1>&6 | |
12137 | echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6 | |
0fb0dd83 | 12138 | echo "configure:12139: checking for sched_get_priority_max in -l$THREADS_LINK" >&5 |
f6bcfd97 BP |
12139 | ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
12140 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12141 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12142 | else | |
12143 | ac_save_LIBS="$LIBS" | |
12144 | LIBS="-l$THREADS_LINK $LIBS" | |
12145 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 12146 | #line 12147 "configure" |
f6bcfd97 BP |
12147 | #include "confdefs.h" |
12148 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12149 | /* We use char because int might match the return type of a gcc2 | |
12150 | builtin and then its argument prototype would still apply. */ | |
12151 | char sched_get_priority_max(); | |
12152 | ||
12153 | int main() { | |
12154 | sched_get_priority_max() | |
12155 | ; return 0; } | |
12156 | EOF | |
0fb0dd83 | 12157 | if { (eval echo configure:12158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f6bcfd97 BP |
12158 | rm -rf conftest* |
12159 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12160 | else | |
12161 | echo "configure: failed program was:" >&5 | |
12162 | cat conftest.$ac_ext >&5 | |
12163 | rm -rf conftest* | |
12164 | eval "ac_cv_lib_$ac_lib_var=no" | |
12165 | fi | |
12166 | rm -f conftest* | |
12167 | LIBS="$ac_save_LIBS" | |
12168 | ||
12169 | fi | |
12170 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12171 | echo "$ac_t""yes" 1>&6 | |
12172 | HAVE_PRIOR_FUNCS=1 | |
10f2d63a VZ |
12173 | else |
12174 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 | 12175 | echo $ac_n "checking for sched_get_priority_max in -l"posix4"""... $ac_c" 1>&6 |
0fb0dd83 | 12176 | echo "configure:12177: checking for sched_get_priority_max in -l"posix4"" >&5 |
f6bcfd97 | 12177 | ac_lib_var=`echo "posix4"'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
10f2d63a VZ |
12178 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
12179 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12180 | else | |
12181 | ac_save_LIBS="$LIBS" | |
12182 | LIBS="-l"posix4" $LIBS" | |
12183 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 12184 | #line 12185 "configure" |
10f2d63a VZ |
12185 | #include "confdefs.h" |
12186 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12187 | /* We use char because int might match the return type of a gcc2 | |
12188 | builtin and then its argument prototype would still apply. */ | |
f6bcfd97 | 12189 | char sched_get_priority_max(); |
10f2d63a VZ |
12190 | |
12191 | int main() { | |
f6bcfd97 | 12192 | sched_get_priority_max() |
10f2d63a VZ |
12193 | ; return 0; } |
12194 | EOF | |
0fb0dd83 | 12195 | if { (eval echo configure:12196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
12196 | rm -rf conftest* |
12197 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12198 | else | |
12199 | echo "configure: failed program was:" >&5 | |
12200 | cat conftest.$ac_ext >&5 | |
12201 | rm -rf conftest* | |
12202 | eval "ac_cv_lib_$ac_lib_var=no" | |
12203 | fi | |
12204 | rm -f conftest* | |
12205 | LIBS="$ac_save_LIBS" | |
12206 | ||
12207 | fi | |
12208 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12209 | echo "$ac_t""yes" 1>&6 | |
f6bcfd97 BP |
12210 | |
12211 | HAVE_PRIOR_FUNCS=1 | |
12212 | POSIX4_LINK="-lposix4" | |
12213 | ||
12214 | else | |
12215 | echo "$ac_t""no" 1>&6 | |
12216 | fi | |
12217 | ||
12218 | ||
12219 | fi | |
12220 | ||
12221 | ||
10f2d63a VZ |
12222 | else |
12223 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12224 | fi |
12225 | ||
12226 | ||
f6bcfd97 BP |
12227 | else |
12228 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12229 | fi |
12230 | ||
12231 | ||
f6bcfd97 BP |
12232 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
12233 | cat >> confdefs.h <<\EOF | |
12234 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
12235 | EOF | |
12236 | ||
12237 | else | |
12238 | echo "configure: warning: Setting thread priority will not work" 1>&2 | |
12239 | fi | |
12240 | ||
10f2d63a | 12241 | echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6 |
0fb0dd83 | 12242 | echo "configure:12243: checking for pthread_cancel in -l$THREADS_LINK" >&5 |
10f2d63a VZ |
12243 | ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'` |
12244 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12245 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12246 | else | |
12247 | ac_save_LIBS="$LIBS" | |
12248 | LIBS="-l$THREADS_LINK $LIBS" | |
12249 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 12250 | #line 12251 "configure" |
10f2d63a VZ |
12251 | #include "confdefs.h" |
12252 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12253 | /* We use char because int might match the return type of a gcc2 | |
12254 | builtin and then its argument prototype would still apply. */ | |
12255 | char pthread_cancel(); | |
12256 | ||
12257 | int main() { | |
12258 | pthread_cancel() | |
12259 | ; return 0; } | |
12260 | EOF | |
0fb0dd83 | 12261 | if { (eval echo configure:12262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
12262 | rm -rf conftest* |
12263 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12264 | else | |
12265 | echo "configure: failed program was:" >&5 | |
12266 | cat conftest.$ac_ext >&5 | |
12267 | rm -rf conftest* | |
12268 | eval "ac_cv_lib_$ac_lib_var=no" | |
12269 | fi | |
12270 | rm -f conftest* | |
12271 | LIBS="$ac_save_LIBS" | |
12272 | ||
12273 | fi | |
12274 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12275 | echo "$ac_t""yes" 1>&6 | |
12276 | cat >> confdefs.h <<\EOF | |
12277 | #define HAVE_PTHREAD_CANCEL 1 | |
12278 | EOF | |
12279 | ||
12280 | else | |
12281 | echo "$ac_t""no" 1>&6 | |
12282 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
12283 | fi | |
12284 | ||
12285 | ||
12286 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 | |
0fb0dd83 | 12287 | echo "configure:12288: checking for pthread_cleanup_push/pop" >&5 |
10f2d63a VZ |
12288 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
12289 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12290 | else | |
12291 | ||
12292 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 12293 | #line 12294 "configure" |
10f2d63a VZ |
12294 | #include "confdefs.h" |
12295 | #include <pthread.h> | |
12296 | int main() { | |
12297 | ||
12298 | pthread_cleanup_push(NULL, NULL); | |
12299 | pthread_cleanup_pop(0); | |
12300 | ||
12301 | ; return 0; } | |
12302 | EOF | |
0fb0dd83 | 12303 | if { (eval echo configure:12304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
12304 | rm -rf conftest* |
12305 | ||
12306 | wx_cv_func_pthread_cleanup_push=yes | |
12307 | cat >> confdefs.h <<\EOF | |
12308 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 | |
12309 | EOF | |
12310 | ||
12311 | ||
12312 | else | |
12313 | echo "configure: failed program was:" >&5 | |
12314 | cat conftest.$ac_ext >&5 | |
12315 | rm -rf conftest* | |
12316 | ||
12317 | wx_cv_func_pthread_cleanup_push=no | |
12318 | ||
12319 | fi | |
12320 | rm -f conftest* | |
12321 | ||
12322 | fi | |
12323 | ||
12324 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
12325 | ||
12326 | THREADS_LINK="-l$THREADS_LINK" | |
12327 | fi | |
12328 | ||
12329 | fi | |
12330 | ||
12331 | if test "$wxUSE_THREADS" = "yes"; then | |
12332 | cat >> confdefs.h <<\EOF | |
12333 | #define wxUSE_THREADS 1 | |
12334 | EOF | |
12335 | ||
12336 | ||
12337 | CFLAGS="${CFLAGS} -D_REENTRANT" | |
12338 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" | |
12339 | ||
12340 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
12341 | else | |
12342 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
ab9b9eab | 12343 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 |
0fb0dd83 | 12344 | echo "configure:12345: checking if -D_REENTRANT is needed" >&5 |
ab9b9eab VZ |
12345 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
12346 | CFLAGS="${CFLAGS} -D_REENTRANT" | |
12347 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" | |
12348 | echo "$ac_t""yes" 1>&6 | |
12349 | else | |
12350 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12351 | fi |
12352 | fi | |
12353 | fi | |
12354 | ||
6f72b082 | 12355 | if test "$WXGTK20" = 1 ; then |
13111b2a | 12356 | cat >> confdefs.h <<EOF |
6f72b082 | 12357 | #define __WXGTK20__ $WXGTK20 |
13111b2a VZ |
12358 | EOF |
12359 | ||
12360 | WXGTK12=1 | |
12361 | fi | |
12362 | ||
10f2d63a VZ |
12363 | if test "$WXGTK12" = 1 ; then |
12364 | cat >> confdefs.h <<EOF | |
12365 | #define __WXGTK12__ $WXGTK12 | |
12366 | EOF | |
12367 | ||
12368 | fi | |
12369 | ||
f6bcfd97 BP |
12370 | if test "$WXGTK127" = 1 ; then |
12371 | cat >> confdefs.h <<EOF | |
12372 | #define __WXGTK127__ $WXGTK127 | |
12373 | EOF | |
12374 | ||
12375 | fi | |
12376 | ||
10f2d63a VZ |
12377 | if test "$WXWINE" = 1 ; then |
12378 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__" | |
12379 | fi | |
12380 | ||
12381 | if test "$wxUSE_CYGWIN" = 1 ; then | |
12382 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__" | |
12383 | fi | |
12384 | ||
12385 | WXDEBUG= | |
12386 | ||
12387 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
12388 | WXDEBUG="-g" | |
12389 | wxUSE_OPTIMISE=no | |
12390 | fi | |
12391 | ||
12392 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
12393 | wxUSE_DEBUG_INFO=yes | |
12394 | WXDEBUG="-ggdb" | |
12395 | fi | |
12396 | ||
12397 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
12398 | cat >> confdefs.h <<\EOF | |
12399 | #define WXDEBUG 1 | |
12400 | EOF | |
12401 | ||
12402 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
12403 | else | |
12404 | if test "$wxUSE_GTK" = 1 ; then | |
12405 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
12406 | fi | |
12407 | fi | |
12408 | ||
12409 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
12410 | cat >> confdefs.h <<\EOF | |
12411 | #define wxUSE_MEMORY_TRACING 1 | |
12412 | EOF | |
12413 | ||
12414 | cat >> confdefs.h <<\EOF | |
12415 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
47c13eb7 VS |
12416 | EOF |
12417 | ||
12418 | cat >> confdefs.h <<\EOF | |
12419 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
10f2d63a VZ |
12420 | EOF |
12421 | ||
12422 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
12423 | fi | |
12424 | ||
12425 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
12426 | DMALLOC_LINK="-ldmalloc" | |
12427 | fi | |
12428 | ||
12429 | PROFILE= | |
12430 | if test "$wxUSE_PROFILE" = "yes" ; then | |
12431 | PROFILE="-pg" | |
12432 | fi | |
12433 | ||
12434 | DEP_INFO_FLAGS= | |
caa2c79b | 12435 | CODE_GEN_FLAGS= |
10f2d63a VZ |
12436 | if test "$GCC" = yes ; then |
12437 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
caa2c79b | 12438 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-rtti" |
10f2d63a VZ |
12439 | fi |
12440 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
caa2c79b | 12441 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-exceptions" |
10f2d63a VZ |
12442 | fi |
12443 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
caa2c79b | 12444 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" |
10f2d63a VZ |
12445 | fi |
12446 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
12447 | DEP_INFO_FLAGS="-MMD" | |
12448 | fi | |
12449 | fi | |
12450 | ||
12451 | ||
12452 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` | |
12453 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
12454 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
12455 | OPTIMISE= | |
12456 | else | |
12457 | if test "$GCC" = yes ; then | |
12458 | OPTIMISE="-O2" | |
12459 | case "${host}" in | |
12460 | i586-*-*|i686-*-* ) | |
12461 | OPTIMISE="${OPTIMISE} " | |
12462 | ;; | |
12463 | esac | |
12464 | else | |
12465 | OPTIMISE="-O" | |
12466 | fi | |
12467 | fi | |
12468 | ||
12469 | ||
12470 | ZLIB_INCLUDE= | |
422107f9 | 12471 | if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then |
10f2d63a VZ |
12472 | cat >> confdefs.h <<\EOF |
12473 | #define wxUSE_ZLIB 1 | |
12474 | EOF | |
12475 | ||
422107f9 VZ |
12476 | if test "$wxUSE_ZLIB" = "yes" ; then |
12477 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
12478 | else | |
12479 | ZLIB_LINK= | |
12480 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` | |
12481 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
0fb0dd83 | 12482 | echo "configure:12483: checking for zlib.h" >&5 |
422107f9 VZ |
12483 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12484 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12485 | else | |
12486 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 12487 | #line 12488 "configure" |
422107f9 VZ |
12488 | #include "confdefs.h" |
12489 | #include <zlib.h> | |
12490 | EOF | |
12491 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
0fb0dd83 | 12492 | { (eval echo configure:12493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
422107f9 VZ |
12493 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12494 | if test -z "$ac_err"; then | |
12495 | rm -rf conftest* | |
12496 | eval "ac_cv_header_$ac_safe=yes" | |
12497 | else | |
12498 | echo "$ac_err" >&5 | |
12499 | echo "configure: failed program was:" >&5 | |
12500 | cat conftest.$ac_ext >&5 | |
12501 | rm -rf conftest* | |
12502 | eval "ac_cv_header_$ac_safe=no" | |
12503 | fi | |
12504 | rm -f conftest* | |
12505 | fi | |
12506 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12507 | echo "$ac_t""yes" 1>&6 | |
12508 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 | |
0fb0dd83 | 12509 | echo "configure:12510: checking for deflate in -lz" >&5 |
422107f9 VZ |
12510 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
12511 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12512 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12513 | else | |
12514 | ac_save_LIBS="$LIBS" | |
12515 | LIBS="-lz $LIBS" | |
12516 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 12517 | #line 12518 "configure" |
422107f9 VZ |
12518 | #include "confdefs.h" |
12519 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12520 | /* We use char because int might match the return type of a gcc2 | |
12521 | builtin and then its argument prototype would still apply. */ | |
12522 | char deflate(); | |
12523 | ||
12524 | int main() { | |
12525 | deflate() | |
12526 | ; return 0; } | |
12527 | EOF | |
0fb0dd83 | 12528 | if { (eval echo configure:12529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
422107f9 VZ |
12529 | rm -rf conftest* |
12530 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12531 | else | |
12532 | echo "configure: failed program was:" >&5 | |
12533 | cat conftest.$ac_ext >&5 | |
12534 | rm -rf conftest* | |
12535 | eval "ac_cv_lib_$ac_lib_var=no" | |
12536 | fi | |
12537 | rm -f conftest* | |
12538 | LIBS="$ac_save_LIBS" | |
12539 | ||
12540 | fi | |
12541 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12542 | echo "$ac_t""yes" 1>&6 | |
12543 | ZLIB_LINK="-lz" | |
12544 | else | |
12545 | echo "$ac_t""no" 1>&6 | |
12546 | fi | |
12547 | ||
12548 | else | |
12549 | echo "$ac_t""no" 1>&6 | |
12550 | fi | |
12551 | ||
12552 | if test "x$ZLIB_LINK" = "x" ; then | |
12553 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; } | |
12554 | fi | |
12555 | fi | |
10f2d63a VZ |
12556 | fi |
12557 | ||
12558 | PNG_INCLUDE= | |
422107f9 | 12559 | if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then |
10f2d63a VZ |
12560 | cat >> confdefs.h <<\EOF |
12561 | #define wxUSE_LIBPNG 1 | |
12562 | EOF | |
12563 | ||
41fd4136 | 12564 | if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
422107f9 VZ |
12565 | echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2 |
12566 | wxUSE_LIBPNG=yes | |
12567 | fi | |
12568 | ||
12569 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
12570 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
12571 | else | |
12572 | PNG_LINK= | |
12573 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | |
12574 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
0fb0dd83 | 12575 | echo "configure:12576: checking for png.h" >&5 |
422107f9 VZ |
12576 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12577 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12578 | else | |
12579 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 12580 | #line 12581 "configure" |
422107f9 VZ |
12581 | #include "confdefs.h" |
12582 | #include <png.h> | |
12583 | EOF | |
12584 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
0fb0dd83 | 12585 | { (eval echo configure:12586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
422107f9 VZ |
12586 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12587 | if test -z "$ac_err"; then | |
12588 | rm -rf conftest* | |
12589 | eval "ac_cv_header_$ac_safe=yes" | |
12590 | else | |
12591 | echo "$ac_err" >&5 | |
12592 | echo "configure: failed program was:" >&5 | |
12593 | cat conftest.$ac_ext >&5 | |
12594 | rm -rf conftest* | |
12595 | eval "ac_cv_header_$ac_safe=no" | |
12596 | fi | |
12597 | rm -f conftest* | |
12598 | fi | |
12599 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12600 | echo "$ac_t""yes" 1>&6 | |
12601 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 | |
0fb0dd83 | 12602 | echo "configure:12603: checking for png_check_sig in -lpng" >&5 |
422107f9 VZ |
12603 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
12604 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12605 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12606 | else | |
12607 | ac_save_LIBS="$LIBS" | |
12608 | LIBS="-lpng -lz -lm $LIBS" | |
12609 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 12610 | #line 12611 "configure" |
422107f9 VZ |
12611 | #include "confdefs.h" |
12612 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12613 | /* We use char because int might match the return type of a gcc2 | |
12614 | builtin and then its argument prototype would still apply. */ | |
12615 | char png_check_sig(); | |
12616 | ||
12617 | int main() { | |
12618 | png_check_sig() | |
12619 | ; return 0; } | |
12620 | EOF | |
0fb0dd83 | 12621 | if { (eval echo configure:12622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
422107f9 VZ |
12622 | rm -rf conftest* |
12623 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12624 | else | |
12625 | echo "configure: failed program was:" >&5 | |
12626 | cat conftest.$ac_ext >&5 | |
12627 | rm -rf conftest* | |
12628 | eval "ac_cv_lib_$ac_lib_var=no" | |
12629 | fi | |
12630 | rm -f conftest* | |
12631 | LIBS="$ac_save_LIBS" | |
12632 | ||
12633 | fi | |
12634 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12635 | echo "$ac_t""yes" 1>&6 | |
12636 | PNG_LINK="-lpng" | |
12637 | else | |
12638 | echo "$ac_t""no" 1>&6 | |
12639 | fi | |
12640 | ||
12641 | ||
12642 | else | |
12643 | echo "$ac_t""no" 1>&6 | |
12644 | fi | |
12645 | ||
12646 | if test "x$PNG_LINK" = "x" ; then | |
0dcf9893 | 12647 | { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; } |
422107f9 VZ |
12648 | fi |
12649 | fi | |
12650 | ||
10f2d63a VZ |
12651 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
12652 | fi | |
12653 | ||
12654 | JPEG_INCLUDE= | |
422107f9 | 12655 | if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then |
10f2d63a VZ |
12656 | cat >> confdefs.h <<\EOF |
12657 | #define wxUSE_LIBJPEG 1 | |
12658 | EOF | |
12659 | ||
422107f9 VZ |
12660 | if test "$wxUSE_LIBJPEG" = "yes" ; then |
12661 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
12662 | else | |
12663 | JPEG_LINK= | |
12664 | ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` | |
12665 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 | |
0fb0dd83 | 12666 | echo "configure:12667: checking for jpeglib.h" >&5 |
422107f9 VZ |
12667 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12668 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12669 | else | |
12670 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 12671 | #line 12672 "configure" |
422107f9 VZ |
12672 | #include "confdefs.h" |
12673 | #include <jpeglib.h> | |
12674 | EOF | |
12675 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
0fb0dd83 | 12676 | { (eval echo configure:12677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
422107f9 VZ |
12677 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12678 | if test -z "$ac_err"; then | |
12679 | rm -rf conftest* | |
12680 | eval "ac_cv_header_$ac_safe=yes" | |
12681 | else | |
12682 | echo "$ac_err" >&5 | |
12683 | echo "configure: failed program was:" >&5 | |
12684 | cat conftest.$ac_ext >&5 | |
12685 | rm -rf conftest* | |
12686 | eval "ac_cv_header_$ac_safe=no" | |
12687 | fi | |
12688 | rm -f conftest* | |
12689 | fi | |
12690 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12691 | echo "$ac_t""yes" 1>&6 | |
12692 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 | |
0fb0dd83 | 12693 | echo "configure:12694: checking for jpeg_read_header in -ljpeg" >&5 |
422107f9 VZ |
12694 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
12695 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12696 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12697 | else | |
12698 | ac_save_LIBS="$LIBS" | |
12699 | LIBS="-ljpeg $LIBS" | |
12700 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 12701 | #line 12702 "configure" |
422107f9 VZ |
12702 | #include "confdefs.h" |
12703 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12704 | /* We use char because int might match the return type of a gcc2 | |
12705 | builtin and then its argument prototype would still apply. */ | |
12706 | char jpeg_read_header(); | |
12707 | ||
12708 | int main() { | |
12709 | jpeg_read_header() | |
12710 | ; return 0; } | |
12711 | EOF | |
0fb0dd83 | 12712 | if { (eval echo configure:12713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
422107f9 VZ |
12713 | rm -rf conftest* |
12714 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12715 | else | |
12716 | echo "configure: failed program was:" >&5 | |
12717 | cat conftest.$ac_ext >&5 | |
12718 | rm -rf conftest* | |
12719 | eval "ac_cv_lib_$ac_lib_var=no" | |
12720 | fi | |
12721 | rm -f conftest* | |
12722 | LIBS="$ac_save_LIBS" | |
12723 | ||
12724 | fi | |
12725 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12726 | echo "$ac_t""yes" 1>&6 | |
12727 | JPEG_LINK="-ljpeg" | |
12728 | else | |
12729 | echo "$ac_t""no" 1>&6 | |
12730 | fi | |
12731 | ||
12732 | else | |
12733 | echo "$ac_t""no" 1>&6 | |
12734 | fi | |
12735 | ||
12736 | if test "x$JPEG_LINK" = "x" ; then | |
0dcf9893 | 12737 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; } |
422107f9 VZ |
12738 | fi |
12739 | fi | |
10f2d63a VZ |
12740 | fi |
12741 | ||
c7a2bf27 | 12742 | TIFF_INCLUDE= |
0dcf9893 | 12743 | if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then |
c7a2bf27 RR |
12744 | cat >> confdefs.h <<\EOF |
12745 | #define wxUSE_LIBTIFF 1 | |
12746 | EOF | |
12747 | ||
0dcf9893 VZ |
12748 | if test "$wxUSE_LIBTIFF" = "yes" ; then |
12749 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
12750 | else | |
12751 | TIFF_LINK= | |
12752 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` | |
12753 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
0fb0dd83 | 12754 | echo "configure:12755: checking for tiffio.h" >&5 |
0dcf9893 VZ |
12755 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12756 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12757 | else | |
12758 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 12759 | #line 12760 "configure" |
0dcf9893 VZ |
12760 | #include "confdefs.h" |
12761 | #include <tiffio.h> | |
12762 | EOF | |
12763 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
0fb0dd83 | 12764 | { (eval echo configure:12765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
0dcf9893 VZ |
12765 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12766 | if test -z "$ac_err"; then | |
12767 | rm -rf conftest* | |
12768 | eval "ac_cv_header_$ac_safe=yes" | |
12769 | else | |
12770 | echo "$ac_err" >&5 | |
12771 | echo "configure: failed program was:" >&5 | |
12772 | cat conftest.$ac_ext >&5 | |
12773 | rm -rf conftest* | |
12774 | eval "ac_cv_header_$ac_safe=no" | |
12775 | fi | |
12776 | rm -f conftest* | |
12777 | fi | |
12778 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12779 | echo "$ac_t""yes" 1>&6 | |
12780 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
0fb0dd83 | 12781 | echo "configure:12782: checking for TIFFError in -ltiff" >&5 |
0dcf9893 VZ |
12782 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
12783 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12784 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12785 | else | |
12786 | ac_save_LIBS="$LIBS" | |
12787 | LIBS="-ltiff -lm $LIBS" | |
12788 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 12789 | #line 12790 "configure" |
0dcf9893 VZ |
12790 | #include "confdefs.h" |
12791 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12792 | /* We use char because int might match the return type of a gcc2 | |
12793 | builtin and then its argument prototype would still apply. */ | |
12794 | char TIFFError(); | |
12795 | ||
12796 | int main() { | |
12797 | TIFFError() | |
12798 | ; return 0; } | |
12799 | EOF | |
0fb0dd83 | 12800 | if { (eval echo configure:12801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
0dcf9893 VZ |
12801 | rm -rf conftest* |
12802 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12803 | else | |
12804 | echo "configure: failed program was:" >&5 | |
12805 | cat conftest.$ac_ext >&5 | |
12806 | rm -rf conftest* | |
12807 | eval "ac_cv_lib_$ac_lib_var=no" | |
12808 | fi | |
12809 | rm -f conftest* | |
12810 | LIBS="$ac_save_LIBS" | |
12811 | ||
12812 | fi | |
12813 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12814 | echo "$ac_t""yes" 1>&6 | |
12815 | TIFF_LINK="-ltiff" | |
12816 | else | |
12817 | echo "$ac_t""no" 1>&6 | |
12818 | fi | |
12819 | ||
12820 | else | |
12821 | echo "$ac_t""no" 1>&6 | |
12822 | fi | |
12823 | ||
12824 | if test "x$TIFF_LINK" = "x" ; then | |
12825 | { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; } | |
12826 | fi | |
12827 | fi | |
c7a2bf27 RR |
12828 | fi |
12829 | ||
10f2d63a VZ |
12830 | if test "$wxUSE_OPENGL" = "yes"; then |
12831 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` | |
12832 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
0fb0dd83 | 12833 | echo "configure:12834: checking for GL/gl.h" >&5 |
10f2d63a VZ |
12834 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12835 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12836 | else | |
12837 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 12838 | #line 12839 "configure" |
10f2d63a VZ |
12839 | #include "confdefs.h" |
12840 | #include <GL/gl.h> | |
12841 | EOF | |
12842 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
0fb0dd83 | 12843 | { (eval echo configure:12844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
12844 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12845 | if test -z "$ac_err"; then | |
12846 | rm -rf conftest* | |
12847 | eval "ac_cv_header_$ac_safe=yes" | |
12848 | else | |
12849 | echo "$ac_err" >&5 | |
12850 | echo "configure: failed program was:" >&5 | |
12851 | cat conftest.$ac_ext >&5 | |
12852 | rm -rf conftest* | |
12853 | eval "ac_cv_header_$ac_safe=no" | |
12854 | fi | |
12855 | rm -f conftest* | |
12856 | fi | |
12857 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
12858 | echo "$ac_t""yes" 1>&6 | |
12859 | ||
bdad4e7e RR |
12860 | cat >> confdefs.h <<\EOF |
12861 | #define wxUSE_OPENGL 1 | |
12862 | EOF | |
12863 | ||
12864 | cat >> confdefs.h <<\EOF | |
12865 | #define wxUSE_GLCANVAS 1 | |
12866 | EOF | |
12867 | ||
12868 | echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6 | |
0fb0dd83 | 12869 | echo "configure:12870: checking for glFlush in -lGL" >&5 |
bdad4e7e | 12870 | ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'` |
10f2d63a VZ |
12871 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
12872 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12873 | else | |
12874 | ac_save_LIBS="$LIBS" | |
bdad4e7e | 12875 | LIBS="-lGL $LIBS" |
10f2d63a | 12876 | cat > conftest.$ac_ext <<EOF |
0fb0dd83 | 12877 | #line 12878 "configure" |
10f2d63a VZ |
12878 | #include "confdefs.h" |
12879 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12880 | /* We use char because int might match the return type of a gcc2 | |
12881 | builtin and then its argument prototype would still apply. */ | |
bdad4e7e | 12882 | char glFlush(); |
10f2d63a VZ |
12883 | |
12884 | int main() { | |
bdad4e7e | 12885 | glFlush() |
10f2d63a VZ |
12886 | ; return 0; } |
12887 | EOF | |
0fb0dd83 | 12888 | if { (eval echo configure:12889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
12889 | rm -rf conftest* |
12890 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12891 | else | |
12892 | echo "configure: failed program was:" >&5 | |
12893 | cat conftest.$ac_ext >&5 | |
12894 | rm -rf conftest* | |
12895 | eval "ac_cv_lib_$ac_lib_var=no" | |
12896 | fi | |
12897 | rm -f conftest* | |
12898 | LIBS="$ac_save_LIBS" | |
12899 | ||
12900 | fi | |
12901 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12902 | echo "$ac_t""yes" 1>&6 | |
12903 | ||
f6bcfd97 | 12904 | OPENGL_LINK="-lGL -lGLU" |
10f2d63a VZ |
12905 | |
12906 | else | |
12907 | echo "$ac_t""no" 1>&6 | |
12908 | ||
bdad4e7e | 12909 | echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6 |
0fb0dd83 | 12910 | echo "configure:12911: checking for glFlush in -lMesaGL" >&5 |
bdad4e7e | 12911 | ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'` |
10f2d63a VZ |
12912 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
12913 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12914 | else | |
12915 | ac_save_LIBS="$LIBS" | |
12916 | LIBS="-lMesaGL $LIBS" | |
12917 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 12918 | #line 12919 "configure" |
10f2d63a VZ |
12919 | #include "confdefs.h" |
12920 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12921 | /* We use char because int might match the return type of a gcc2 | |
12922 | builtin and then its argument prototype would still apply. */ | |
bdad4e7e | 12923 | char glFlush(); |
10f2d63a VZ |
12924 | |
12925 | int main() { | |
bdad4e7e | 12926 | glFlush() |
10f2d63a VZ |
12927 | ; return 0; } |
12928 | EOF | |
0fb0dd83 | 12929 | if { (eval echo configure:12930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
12930 | rm -rf conftest* |
12931 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12932 | else | |
12933 | echo "configure: failed program was:" >&5 | |
12934 | cat conftest.$ac_ext >&5 | |
12935 | rm -rf conftest* | |
12936 | eval "ac_cv_lib_$ac_lib_var=no" | |
12937 | fi | |
12938 | rm -f conftest* | |
12939 | LIBS="$ac_save_LIBS" | |
12940 | ||
12941 | fi | |
12942 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12943 | echo "$ac_t""yes" 1>&6 | |
12944 | ||
f6bcfd97 | 12945 | OPENGL_LINK="-lMesaGL -lMesaGLU" |
10f2d63a VZ |
12946 | |
12947 | else | |
12948 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12949 | fi |
12950 | ||
12951 | ||
12952 | fi | |
12953 | ||
12954 | ||
12955 | else | |
12956 | echo "$ac_t""no" 1>&6 | |
12957 | wxUSE_OPENGL=0 | |
12958 | fi | |
12959 | ||
12960 | fi | |
12961 | ||
12962 | ||
12963 | if test "$wxUSE_GUI" = "yes"; then | |
12964 | cat >> confdefs.h <<\EOF | |
12965 | #define wxUSE_GUI 1 | |
12966 | EOF | |
12967 | ||
12968 | ||
12969 | else | |
12970 | cat >> confdefs.h <<\EOF | |
12971 | #define wxUSE_NOGUI 1 | |
12972 | EOF | |
12973 | ||
12974 | fi | |
12975 | ||
12976 | ||
12977 | if test "$wxUSE_UNIX" = "yes"; then | |
12978 | cat >> confdefs.h <<\EOF | |
12979 | #define wxUSE_UNIX 1 | |
12980 | EOF | |
12981 | ||
12982 | fi | |
12983 | ||
12984 | ||
12985 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
12986 | cat >> confdefs.h <<\EOF | |
12987 | #define wxUSE_APPLE_IEEE 1 | |
12988 | EOF | |
12989 | ||
12990 | fi | |
12991 | ||
10f2d63a VZ |
12992 | if test "$wxUSE_WAVE" = "yes"; then |
12993 | cat >> confdefs.h <<\EOF | |
12994 | #define wxUSE_WAVE 1 | |
12995 | EOF | |
12996 | ||
12997 | fi | |
12998 | ||
12999 | if test "$wxUSE_FILE" = "yes"; then | |
13000 | cat >> confdefs.h <<\EOF | |
13001 | #define wxUSE_FILE 1 | |
13002 | EOF | |
13003 | ||
13004 | fi | |
13005 | ||
24528b0c VS |
13006 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
13007 | cat >> confdefs.h <<\EOF | |
13008 | #define wxUSE_FILESYSTEM 1 | |
13009 | EOF | |
13010 | ||
13011 | fi | |
13012 | ||
10f2d63a VZ |
13013 | if test "$wxUSE_FS_INET" = "yes"; then |
13014 | cat >> confdefs.h <<\EOF | |
13015 | #define wxUSE_FS_INET 1 | |
13016 | EOF | |
13017 | ||
13018 | fi | |
13019 | ||
13020 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
13021 | cat >> confdefs.h <<\EOF | |
13022 | #define wxUSE_FS_ZIP 1 | |
13023 | EOF | |
13024 | ||
13025 | fi | |
13026 | ||
13027 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
13028 | cat >> confdefs.h <<\EOF | |
13029 | #define wxUSE_ZIPSTREAM 1 | |
13030 | EOF | |
13031 | ||
13032 | fi | |
13033 | ||
eb4efbdc VZ |
13034 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
13035 | cat >> confdefs.h <<\EOF | |
13036 | #define wxUSE_ON_FATAL_EXCEPTION 1 | |
13037 | EOF | |
13038 | ||
13039 | fi | |
13040 | ||
10f2d63a VZ |
13041 | if test "$wxUSE_BUSYINFO" = "yes"; then |
13042 | cat >> confdefs.h <<\EOF | |
13043 | #define wxUSE_BUSYINFO 1 | |
13044 | EOF | |
13045 | ||
13046 | fi | |
13047 | ||
13048 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
13049 | cat >> confdefs.h <<\EOF | |
13050 | #define wxUSE_STD_IOSTREAM 1 | |
13051 | EOF | |
13052 | ||
13053 | fi | |
13054 | ||
13055 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
13056 | if test "$wxUSE_FILE" != "yes"; then | |
13057 | echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2 | |
13058 | else | |
13059 | cat >> confdefs.h <<\EOF | |
13060 | #define wxUSE_TEXTFILE 1 | |
13061 | EOF | |
13062 | ||
13063 | fi | |
13064 | fi | |
13065 | ||
13066 | if test "$wxUSE_CONFIG" = "yes" ; then | |
13067 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
13068 | echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2 | |
13069 | else | |
13070 | cat >> confdefs.h <<\EOF | |
13071 | #define wxUSE_CONFIG 1 | |
13072 | EOF | |
13073 | ||
13074 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
13075 | fi | |
13076 | fi | |
13077 | ||
13078 | if test "$wxUSE_INTL" = "yes" ; then | |
13079 | if test "$wxUSE_FILE" != "yes"; then | |
13080 | echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2 | |
13081 | else | |
13082 | cat >> confdefs.h <<\EOF | |
13083 | #define wxUSE_INTL 1 | |
13084 | EOF | |
13085 | ||
13086 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 13087 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
13088 | fi |
13089 | fi | |
13090 | ||
13091 | if test "$wxUSE_LOG" = "yes"; then | |
13092 | cat >> confdefs.h <<\EOF | |
13093 | #define wxUSE_LOG 1 | |
13094 | EOF | |
13095 | ||
13096 | fi | |
13097 | ||
13098 | if test "$wxUSE_LONGLONG" = "yes"; then | |
13099 | cat >> confdefs.h <<\EOF | |
13100 | #define wxUSE_LONGLONG 1 | |
13101 | EOF | |
13102 | ||
13103 | fi | |
13104 | ||
9b33fe02 VZ |
13105 | if test "$wxUSE_PLOT" = "yes"; then |
13106 | cat >> confdefs.h <<\EOF | |
13107 | #define wxUSE_PLOT 1 | |
13108 | EOF | |
13109 | ||
13110 | fi | |
13111 | ||
10f2d63a VZ |
13112 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
13113 | cat >> confdefs.h <<\EOF | |
13114 | #define wxUSE_DIALUP_MANAGER 1 | |
13115 | EOF | |
13116 | ||
70f7a477 | 13117 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
13118 | fi |
13119 | ||
13120 | if test "$wxUSE_STREAMS" = "yes" ; then | |
13121 | cat >> confdefs.h <<\EOF | |
13122 | #define wxUSE_STREAMS 1 | |
13123 | EOF | |
13124 | ||
13125 | fi | |
13126 | ||
10f2d63a | 13127 | |
afc31813 | 13128 | if test "$wxUSE_TIMEDATE" = "yes"; then |
83307f33 VZ |
13129 | for ac_func in strptime |
13130 | do | |
13131 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
0fb0dd83 | 13132 | echo "configure:13133: checking for $ac_func" >&5 |
83307f33 VZ |
13133 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13134 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13135 | else | |
13136 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 13137 | #line 13138 "configure" |
83307f33 VZ |
13138 | #include "confdefs.h" |
13139 | /* System header to define __stub macros and hopefully few prototypes, | |
13140 | which can conflict with char $ac_func(); below. */ | |
13141 | #include <assert.h> | |
13142 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13143 | /* We use char because int might match the return type of a gcc2 | |
13144 | builtin and then its argument prototype would still apply. */ | |
13145 | char $ac_func(); | |
13146 | ||
13147 | int main() { | |
13148 | ||
13149 | /* The GNU C library defines this for functions which it implements | |
13150 | to always fail with ENOSYS. Some functions are actually named | |
13151 | something starting with __ and the normal name is an alias. */ | |
13152 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13153 | choke me | |
13154 | #else | |
e8482f24 | 13155 | $ac_func(); |
83307f33 VZ |
13156 | #endif |
13157 | ||
13158 | ; return 0; } | |
13159 | EOF | |
0fb0dd83 | 13160 | if { (eval echo configure:13161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
83307f33 VZ |
13161 | rm -rf conftest* |
13162 | eval "ac_cv_func_$ac_func=yes" | |
13163 | else | |
13164 | echo "configure: failed program was:" >&5 | |
13165 | cat conftest.$ac_ext >&5 | |
13166 | rm -rf conftest* | |
13167 | eval "ac_cv_func_$ac_func=no" | |
13168 | fi | |
13169 | rm -f conftest* | |
13170 | fi | |
13171 | ||
13172 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13173 | echo "$ac_t""yes" 1>&6 | |
13174 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13175 | cat >> confdefs.h <<EOF | |
13176 | #define $ac_tr_func 1 | |
13177 | EOF | |
13178 | ||
13179 | else | |
13180 | echo "$ac_t""no" 1>&6 | |
13181 | fi | |
13182 | done | |
13183 | ||
13184 | ||
360d6699 | 13185 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
0fb0dd83 | 13186 | echo "configure:13187: checking for timezone variable in <time.h>" >&5 |
360d6699 VZ |
13187 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
13188 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13189 | else | |
13190 | ||
13191 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 13192 | #line 13193 "configure" |
360d6699 VZ |
13193 | #include "confdefs.h" |
13194 | ||
13195 | #include <time.h> | |
13196 | ||
13197 | int main() { | |
13198 | ||
13199 | int tz; | |
13200 | tz = __timezone; | |
13201 | ||
13202 | ; return 0; } | |
13203 | EOF | |
0fb0dd83 | 13204 | if { (eval echo configure:13205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
360d6699 VZ |
13205 | rm -rf conftest* |
13206 | ||
13207 | wx_cv_var_timezone=__timezone | |
13208 | ||
13209 | else | |
13210 | echo "configure: failed program was:" >&5 | |
13211 | cat conftest.$ac_ext >&5 | |
13212 | rm -rf conftest* | |
13213 | ||
13214 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 13215 | #line 13216 "configure" |
360d6699 VZ |
13216 | #include "confdefs.h" |
13217 | ||
13218 | #include <time.h> | |
13219 | ||
13220 | int main() { | |
13221 | ||
13222 | int tz; | |
13223 | tz = _timezone; | |
13224 | ||
13225 | ; return 0; } | |
13226 | EOF | |
0fb0dd83 | 13227 | if { (eval echo configure:13228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
360d6699 VZ |
13228 | rm -rf conftest* |
13229 | ||
13230 | wx_cv_var_timezone=_timezone | |
13231 | ||
5357c8e8 VZ |
13232 | else |
13233 | echo "configure: failed program was:" >&5 | |
13234 | cat conftest.$ac_ext >&5 | |
13235 | rm -rf conftest* | |
13236 | ||
13237 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 13238 | #line 13239 "configure" |
5357c8e8 VZ |
13239 | #include "confdefs.h" |
13240 | ||
13241 | #include <time.h> | |
13242 | ||
13243 | int main() { | |
13244 | ||
13245 | int tz; | |
13246 | tz = timezone; | |
13247 | ||
13248 | ; return 0; } | |
13249 | EOF | |
0fb0dd83 | 13250 | if { (eval echo configure:13251: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
5357c8e8 VZ |
13251 | rm -rf conftest* |
13252 | ||
13253 | wx_cv_var_timezone=timezone | |
13254 | ||
360d6699 VZ |
13255 | else |
13256 | echo "configure: failed program was:" >&5 | |
13257 | cat conftest.$ac_ext >&5 | |
13258 | rm -rf conftest* | |
13259 | { echo "configure: error: no timezone variable" 1>&2; exit 1; } | |
5357c8e8 VZ |
13260 | |
13261 | fi | |
13262 | rm -f conftest* | |
13263 | ||
360d6699 VZ |
13264 | |
13265 | fi | |
13266 | rm -f conftest* | |
13267 | ||
13268 | ||
13269 | fi | |
13270 | rm -f conftest* | |
13271 | ||
13272 | ||
13273 | fi | |
13274 | ||
13275 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 | |
13276 | ||
13277 | cat >> confdefs.h <<EOF | |
13278 | #define WX_TIMEZONE $wx_cv_var_timezone | |
13279 | EOF | |
13280 | ||
13281 | ||
3fcdd07b | 13282 | for ac_func in localtime |
afc31813 VZ |
13283 | do |
13284 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
0fb0dd83 | 13285 | echo "configure:13286: checking for $ac_func" >&5 |
afc31813 VZ |
13286 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13287 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13288 | else | |
13289 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 13290 | #line 13291 "configure" |
10f2d63a | 13291 | #include "confdefs.h" |
afc31813 VZ |
13292 | /* System header to define __stub macros and hopefully few prototypes, |
13293 | which can conflict with char $ac_func(); below. */ | |
13294 | #include <assert.h> | |
13295 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13296 | /* We use char because int might match the return type of a gcc2 | |
13297 | builtin and then its argument prototype would still apply. */ | |
13298 | char $ac_func(); | |
13299 | ||
10f2d63a | 13300 | int main() { |
afc31813 VZ |
13301 | |
13302 | /* The GNU C library defines this for functions which it implements | |
13303 | to always fail with ENOSYS. Some functions are actually named | |
13304 | something starting with __ and the normal name is an alias. */ | |
13305 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13306 | choke me | |
13307 | #else | |
e8482f24 | 13308 | $ac_func(); |
afc31813 VZ |
13309 | #endif |
13310 | ||
10f2d63a VZ |
13311 | ; return 0; } |
13312 | EOF | |
0fb0dd83 | 13313 | if { (eval echo configure:13314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a | 13314 | rm -rf conftest* |
afc31813 | 13315 | eval "ac_cv_func_$ac_func=yes" |
10f2d63a VZ |
13316 | else |
13317 | echo "configure: failed program was:" >&5 | |
13318 | cat conftest.$ac_ext >&5 | |
13319 | rm -rf conftest* | |
afc31813 VZ |
13320 | eval "ac_cv_func_$ac_func=no" |
13321 | fi | |
13322 | rm -f conftest* | |
13323 | fi | |
13324 | ||
13325 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13326 | echo "$ac_t""yes" 1>&6 | |
13327 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13328 | cat >> confdefs.h <<EOF | |
13329 | #define $ac_tr_func 1 | |
13330 | EOF | |
3fcdd07b | 13331 | |
afc31813 VZ |
13332 | else |
13333 | echo "$ac_t""no" 1>&6 | |
13334 | fi | |
13335 | done | |
13336 | ||
13337 | ||
0470b1e6 VZ |
13338 | if test "$ac_cv_func_localtime" = "yes"; then |
13339 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
0fb0dd83 | 13340 | echo "configure:13341: checking for tm_gmtoff in struct tm" >&5 |
0470b1e6 VZ |
13341 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
13342 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13343 | else | |
13344 | ||
13345 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 13346 | #line 13347 "configure" |
0470b1e6 VZ |
13347 | #include "confdefs.h" |
13348 | ||
13349 | #include <time.h> | |
13350 | ||
13351 | int main() { | |
13352 | ||
13353 | struct tm tm; | |
13354 | tm.tm_gmtoff++; | |
13355 | ||
13356 | ; return 0; } | |
13357 | EOF | |
0fb0dd83 | 13358 | if { (eval echo configure:13359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
0470b1e6 VZ |
13359 | rm -rf conftest* |
13360 | ||
f03a98d8 | 13361 | wx_cv_struct_tm_has_gmtoff=yes |
0470b1e6 VZ |
13362 | cat >> confdefs.h <<\EOF |
13363 | #define WX_GMTOFF_IN_TM 1 | |
13364 | EOF | |
13365 | ||
13366 | ||
13367 | else | |
13368 | echo "configure: failed program was:" >&5 | |
13369 | cat conftest.$ac_ext >&5 | |
13370 | rm -rf conftest* | |
13371 | wx_cv_struct_tm_has_gmtoff=no | |
13372 | ||
13373 | fi | |
13374 | rm -f conftest* | |
13375 | ||
13376 | fi | |
13377 | ||
13378 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
3fcdd07b VZ |
13379 | fi |
13380 | ||
13381 | for ac_func in gettimeofday ftime | |
13382 | do | |
13383 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
0fb0dd83 | 13384 | echo "configure:13385: checking for $ac_func" >&5 |
3fcdd07b VZ |
13385 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13386 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13387 | else | |
13388 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 13389 | #line 13390 "configure" |
3fcdd07b VZ |
13390 | #include "confdefs.h" |
13391 | /* System header to define __stub macros and hopefully few prototypes, | |
13392 | which can conflict with char $ac_func(); below. */ | |
13393 | #include <assert.h> | |
13394 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13395 | /* We use char because int might match the return type of a gcc2 | |
13396 | builtin and then its argument prototype would still apply. */ | |
13397 | char $ac_func(); | |
13398 | ||
13399 | int main() { | |
13400 | ||
13401 | /* The GNU C library defines this for functions which it implements | |
13402 | to always fail with ENOSYS. Some functions are actually named | |
13403 | something starting with __ and the normal name is an alias. */ | |
13404 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13405 | choke me | |
13406 | #else | |
e8482f24 | 13407 | $ac_func(); |
3fcdd07b VZ |
13408 | #endif |
13409 | ||
13410 | ; return 0; } | |
13411 | EOF | |
0fb0dd83 | 13412 | if { (eval echo configure:13413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
3fcdd07b VZ |
13413 | rm -rf conftest* |
13414 | eval "ac_cv_func_$ac_func=yes" | |
13415 | else | |
13416 | echo "configure: failed program was:" >&5 | |
13417 | cat conftest.$ac_ext >&5 | |
13418 | rm -rf conftest* | |
13419 | eval "ac_cv_func_$ac_func=no" | |
13420 | fi | |
13421 | rm -f conftest* | |
13422 | fi | |
13423 | ||
13424 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13425 | echo "$ac_t""yes" 1>&6 | |
13426 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13427 | cat >> confdefs.h <<EOF | |
13428 | #define $ac_tr_func 1 | |
13429 | EOF | |
13430 | break | |
13431 | else | |
13432 | echo "$ac_t""no" 1>&6 | |
13433 | fi | |
13434 | done | |
13435 | ||
13436 | ||
13437 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
afc31813 | 13438 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 |
0fb0dd83 | 13439 | echo "configure:13440: checking whether gettimeofday takes two arguments" >&5 |
afc31813 VZ |
13440 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
13441 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13442 | else | |
13443 | ||
13444 | ||
13445 | ac_ext=C | |
13446 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
13447 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13448 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13449 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13450 | cross_compiling=$ac_cv_prog_cxx_cross | |
13451 | ||
13452 | ||
13453 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 13454 | #line 13455 "configure" |
10f2d63a | 13455 | #include "confdefs.h" |
afc31813 VZ |
13456 | |
13457 | #include <sys/time.h> | |
13458 | #include <unistd.h> | |
13459 | ||
10f2d63a | 13460 | int main() { |
afc31813 VZ |
13461 | |
13462 | struct timeval tv; | |
13463 | struct timezone tz; | |
13464 | gettimeofday(&tv, &tz); | |
13465 | ||
10f2d63a VZ |
13466 | ; return 0; } |
13467 | EOF | |
0fb0dd83 | 13468 | if { (eval echo configure:13469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a | 13469 | rm -rf conftest* |
afc31813 | 13470 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a VZ |
13471 | else |
13472 | echo "configure: failed program was:" >&5 | |
13473 | cat conftest.$ac_ext >&5 | |
13474 | rm -rf conftest* | |
13475 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 13476 | #line 13477 "configure" |
10f2d63a | 13477 | #include "confdefs.h" |
afc31813 VZ |
13478 | |
13479 | #include <sys/time.h> | |
13480 | #include <unistd.h> | |
13481 | ||
10f2d63a | 13482 | int main() { |
afc31813 VZ |
13483 | |
13484 | struct timeval tv; | |
13485 | gettimeofday(&tv); | |
13486 | ||
10f2d63a VZ |
13487 | ; return 0; } |
13488 | EOF | |
0fb0dd83 | 13489 | if { (eval echo configure:13490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a | 13490 | rm -rf conftest* |
afc31813 | 13491 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a VZ |
13492 | else |
13493 | echo "configure: failed program was:" >&5 | |
13494 | cat conftest.$ac_ext >&5 | |
13495 | rm -rf conftest* | |
afc31813 VZ |
13496 | wx_cv_func_gettimeofday_has_2_args=unknown |
13497 | ||
10f2d63a VZ |
13498 | fi |
13499 | rm -f conftest* | |
afc31813 | 13500 | |
10f2d63a VZ |
13501 | fi |
13502 | rm -f conftest* | |
afc31813 | 13503 | ac_ext=c |
10f2d63a VZ |
13504 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
13505 | ac_cpp='$CPP $CPPFLAGS' | |
13506 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13507 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13508 | cross_compiling=$ac_cv_prog_cc_cross | |
13509 | ||
afc31813 VZ |
13510 | |
13511 | fi | |
13512 | ||
13513 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 13514 | |
afc31813 VZ |
13515 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
13516 | cat >> confdefs.h <<\EOF | |
13517 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
13518 | EOF | |
13519 | ||
13520 | fi | |
13521 | fi | |
13522 | ||
13523 | cat >> confdefs.h <<\EOF | |
13524 | #define wxUSE_TIMEDATE 1 | |
13525 | EOF | |
13526 | ||
13527 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
13528 | fi | |
13529 | ||
13530 | ||
b089607b VZ |
13531 | if test "$TOOLKIT" != "MSW"; then |
13532 | ||
afc31813 | 13533 | if test "$wxUSE_SOCKETS" = "yes"; then |
c63c7106 | 13534 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
0fb0dd83 | 13535 | echo "configure:13536: checking for socket" >&5 |
c63c7106 VZ |
13536 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
13537 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13538 | else | |
13539 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 13540 | #line 13541 "configure" |
c63c7106 VZ |
13541 | #include "confdefs.h" |
13542 | /* System header to define __stub macros and hopefully few prototypes, | |
13543 | which can conflict with char socket(); below. */ | |
13544 | #include <assert.h> | |
13545 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13546 | /* We use char because int might match the return type of a gcc2 | |
13547 | builtin and then its argument prototype would still apply. */ | |
13548 | char socket(); | |
13549 | ||
13550 | int main() { | |
13551 | ||
13552 | /* The GNU C library defines this for functions which it implements | |
13553 | to always fail with ENOSYS. Some functions are actually named | |
13554 | something starting with __ and the normal name is an alias. */ | |
13555 | #if defined (__stub_socket) || defined (__stub___socket) | |
13556 | choke me | |
13557 | #else | |
e8482f24 | 13558 | socket(); |
c63c7106 VZ |
13559 | #endif |
13560 | ||
13561 | ; return 0; } | |
13562 | EOF | |
0fb0dd83 | 13563 | if { (eval echo configure:13564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c63c7106 VZ |
13564 | rm -rf conftest* |
13565 | eval "ac_cv_func_socket=yes" | |
13566 | else | |
13567 | echo "configure: failed program was:" >&5 | |
13568 | cat conftest.$ac_ext >&5 | |
13569 | rm -rf conftest* | |
13570 | eval "ac_cv_func_socket=no" | |
13571 | fi | |
13572 | rm -f conftest* | |
13573 | fi | |
13574 | ||
13575 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
13576 | echo "$ac_t""yes" 1>&6 | |
13577 | : | |
13578 | else | |
13579 | echo "$ac_t""no" 1>&6 | |
13580 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
0fb0dd83 | 13581 | echo "configure:13582: checking for socket in -lsocket" >&5 |
c63c7106 VZ |
13582 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
13583 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13584 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13585 | else | |
13586 | ac_save_LIBS="$LIBS" | |
13587 | LIBS="-lsocket $LIBS" | |
13588 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 13589 | #line 13590 "configure" |
c63c7106 VZ |
13590 | #include "confdefs.h" |
13591 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13592 | /* We use char because int might match the return type of a gcc2 | |
13593 | builtin and then its argument prototype would still apply. */ | |
13594 | char socket(); | |
13595 | ||
13596 | int main() { | |
13597 | socket() | |
13598 | ; return 0; } | |
13599 | EOF | |
0fb0dd83 | 13600 | if { (eval echo configure:13601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
c63c7106 VZ |
13601 | rm -rf conftest* |
13602 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13603 | else | |
13604 | echo "configure: failed program was:" >&5 | |
13605 | cat conftest.$ac_ext >&5 | |
13606 | rm -rf conftest* | |
13607 | eval "ac_cv_lib_$ac_lib_var=no" | |
13608 | fi | |
13609 | rm -f conftest* | |
13610 | LIBS="$ac_save_LIBS" | |
13611 | ||
13612 | fi | |
13613 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13614 | echo "$ac_t""yes" 1>&6 | |
13615 | INET_LINK="$INET_LINK -lsocket" | |
c63c7106 VZ |
13616 | else |
13617 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
13618 | |
13619 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 | |
13620 | wxUSE_SOCKETS=no | |
13621 | ||
13622 | ||
c63c7106 VZ |
13623 | fi |
13624 | ||
13625 | ||
13626 | fi | |
13627 | ||
10f2d63a VZ |
13628 | fi |
13629 | ||
b089607b VZ |
13630 | fi |
13631 | ||
afc31813 | 13632 | if test "$wxUSE_SOCKETS" = "yes" ; then |
51a9faba | 13633 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 |
0fb0dd83 | 13634 | echo "configure:13635: checking what is the type of the third argument of getsockname" >&5 |
51a9faba VZ |
13635 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
13636 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13637 | else | |
13638 | ||
13639 | ||
13640 | ac_ext=C | |
afc31813 VZ |
13641 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
13642 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13643 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13644 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13645 | cross_compiling=$ac_cv_prog_cxx_cross | |
13646 | ||
51a9faba VZ |
13647 | |
13648 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 13649 | #line 13650 "configure" |
afc31813 | 13650 | #include "confdefs.h" |
51a9faba | 13651 | |
3ace2e6d | 13652 | #include <sys/types.h> |
51a9faba VZ |
13653 | #include <sys/socket.h> |
13654 | ||
afc31813 | 13655 | int main() { |
51a9faba VZ |
13656 | |
13657 | socklen_t len; | |
13658 | getsockname(0, 0, &len); | |
13659 | ||
afc31813 VZ |
13660 | ; return 0; } |
13661 | EOF | |
0fb0dd83 | 13662 | if { (eval echo configure:13663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
afc31813 | 13663 | rm -rf conftest* |
51a9faba | 13664 | wx_cv_type_getsockname3=socklen_t |
afc31813 VZ |
13665 | else |
13666 | echo "configure: failed program was:" >&5 | |
13667 | cat conftest.$ac_ext >&5 | |
13668 | rm -rf conftest* | |
13669 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 13670 | #line 13671 "configure" |
afc31813 | 13671 | #include "confdefs.h" |
51a9faba | 13672 | |
3ace2e6d | 13673 | #include <sys/types.h> |
51a9faba VZ |
13674 | #include <sys/socket.h> |
13675 | ||
afc31813 | 13676 | int main() { |
51a9faba VZ |
13677 | |
13678 | size_t len; | |
13679 | getsockname(0, 0, &len); | |
13680 | ||
afc31813 VZ |
13681 | ; return 0; } |
13682 | EOF | |
0fb0dd83 | 13683 | if { (eval echo configure:13684: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
afc31813 | 13684 | rm -rf conftest* |
51a9faba | 13685 | wx_cv_type_getsockname3=size_t |
afc31813 VZ |
13686 | else |
13687 | echo "configure: failed program was:" >&5 | |
13688 | cat conftest.$ac_ext >&5 | |
13689 | rm -rf conftest* | |
13690 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 13691 | #line 13692 "configure" |
afc31813 | 13692 | #include "confdefs.h" |
51a9faba | 13693 | |
3ace2e6d | 13694 | #include <sys/types.h> |
51a9faba VZ |
13695 | #include <sys/socket.h> |
13696 | ||
afc31813 | 13697 | int main() { |
51a9faba VZ |
13698 | |
13699 | int len; | |
13700 | getsockname(0, 0, &len); | |
13701 | ||
afc31813 VZ |
13702 | ; return 0; } |
13703 | EOF | |
0fb0dd83 | 13704 | if { (eval echo configure:13705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
afc31813 | 13705 | rm -rf conftest* |
51a9faba | 13706 | wx_cv_type_getsockname3=int |
afc31813 VZ |
13707 | else |
13708 | echo "configure: failed program was:" >&5 | |
13709 | cat conftest.$ac_ext >&5 | |
3ace2e6d SN |
13710 | rm -rf conftest* |
13711 | wx_cv_type_getsockname3=unknown | |
13712 | ||
afc31813 VZ |
13713 | fi |
13714 | rm -f conftest* | |
51a9faba | 13715 | |
afc31813 VZ |
13716 | fi |
13717 | rm -f conftest* | |
51a9faba | 13718 | |
afc31813 VZ |
13719 | fi |
13720 | rm -f conftest* | |
51a9faba VZ |
13721 | |
13722 | ac_ext=c | |
afc31813 VZ |
13723 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
13724 | ac_cpp='$CPP $CPPFLAGS' | |
13725 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
13726 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
13727 | cross_compiling=$ac_cv_prog_cc_cross | |
13728 | ||
51a9faba VZ |
13729 | |
13730 | fi | |
13731 | ||
13732 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
13733 | ||
13734 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
13735 | wxUSE_SOCKETS=no | |
13736 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 | |
13737 | else | |
13738 | cat >> confdefs.h <<EOF | |
13739 | #define SOCKLEN_T $wx_cv_type_getsockname3 | |
13740 | EOF | |
13741 | ||
13742 | fi | |
13743 | fi | |
afc31813 | 13744 | |
51a9faba | 13745 | if test "$wxUSE_SOCKETS" = "yes" ; then |
afc31813 VZ |
13746 | cat >> confdefs.h <<\EOF |
13747 | #define wxUSE_SOCKETS 1 | |
13748 | EOF | |
13749 | ||
70f7a477 | 13750 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
13751 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol" |
13752 | fi | |
13753 | ||
10f2d63a | 13754 | |
dc3d889d VZ |
13755 | if test "$wxUSE_GUI" = "yes"; then |
13756 | ||
b089607b VZ |
13757 | if test "$TOOLKIT" != "MSW"; then |
13758 | ||
ceded8b9 | 13759 | if test "$wxUSE_JOYSTICK" = "yes"; then |
10f2d63a VZ |
13760 | for ac_hdr in linux/joystick.h |
13761 | do | |
13762 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
13763 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
0fb0dd83 | 13764 | echo "configure:13765: checking for $ac_hdr" >&5 |
10f2d63a VZ |
13765 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13766 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13767 | else | |
13768 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 13769 | #line 13770 "configure" |
10f2d63a VZ |
13770 | #include "confdefs.h" |
13771 | #include <$ac_hdr> | |
13772 | EOF | |
13773 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
0fb0dd83 | 13774 | { (eval echo configure:13775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
13775 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13776 | if test -z "$ac_err"; then | |
13777 | rm -rf conftest* | |
13778 | eval "ac_cv_header_$ac_safe=yes" | |
13779 | else | |
13780 | echo "$ac_err" >&5 | |
13781 | echo "configure: failed program was:" >&5 | |
13782 | cat conftest.$ac_ext >&5 | |
13783 | rm -rf conftest* | |
13784 | eval "ac_cv_header_$ac_safe=no" | |
13785 | fi | |
13786 | rm -f conftest* | |
13787 | fi | |
13788 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
13789 | echo "$ac_t""yes" 1>&6 | |
13790 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
13791 | cat >> confdefs.h <<EOF | |
13792 | #define $ac_tr_hdr 1 | |
13793 | EOF | |
13794 | ||
13795 | else | |
13796 | echo "$ac_t""no" 1>&6 | |
13797 | fi | |
13798 | done | |
13799 | ||
b089607b | 13800 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
ceded8b9 | 13801 | wxUSE_JOYSTICK=no |
dc3d889d | 13802 | echo "configure: warning: Joystick not supported by this system" 1>&2 |
b089607b VZ |
13803 | fi |
13804 | fi | |
13805 | ||
13806 | fi | |
13807 | ||
ceded8b9 | 13808 | if test "$wxUSE_JOYSTICK" = "yes"; then |
10f2d63a VZ |
13809 | cat >> confdefs.h <<\EOF |
13810 | #define wxUSE_JOYSTICK 1 | |
13811 | EOF | |
13812 | ||
13813 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
10f2d63a VZ |
13814 | fi |
13815 | ||
dc3d889d VZ |
13816 | fi |
13817 | ||
10f2d63a | 13818 | |
b089607b VZ |
13819 | if test "$TOOLKIT" != "MSW"; then |
13820 | ||
10f2d63a VZ |
13821 | HAVE_DL_FUNCS=0 |
13822 | HAVE_SHL_FUNCS=0 | |
13823 | if test "$wxUSE_DYNLIB_CLASS" = "yes"; then | |
13824 | for ac_func in dlopen | |
13825 | do | |
13826 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
0fb0dd83 | 13827 | echo "configure:13828: checking for $ac_func" >&5 |
10f2d63a VZ |
13828 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13829 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13830 | else | |
13831 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 13832 | #line 13833 "configure" |
10f2d63a VZ |
13833 | #include "confdefs.h" |
13834 | /* System header to define __stub macros and hopefully few prototypes, | |
13835 | which can conflict with char $ac_func(); below. */ | |
13836 | #include <assert.h> | |
13837 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13838 | /* We use char because int might match the return type of a gcc2 | |
13839 | builtin and then its argument prototype would still apply. */ | |
13840 | char $ac_func(); | |
13841 | ||
13842 | int main() { | |
13843 | ||
13844 | /* The GNU C library defines this for functions which it implements | |
13845 | to always fail with ENOSYS. Some functions are actually named | |
13846 | something starting with __ and the normal name is an alias. */ | |
13847 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13848 | choke me | |
13849 | #else | |
e8482f24 | 13850 | $ac_func(); |
10f2d63a VZ |
13851 | #endif |
13852 | ||
13853 | ; return 0; } | |
13854 | EOF | |
0fb0dd83 | 13855 | if { (eval echo configure:13856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
13856 | rm -rf conftest* |
13857 | eval "ac_cv_func_$ac_func=yes" | |
13858 | else | |
13859 | echo "configure: failed program was:" >&5 | |
13860 | cat conftest.$ac_ext >&5 | |
13861 | rm -rf conftest* | |
13862 | eval "ac_cv_func_$ac_func=no" | |
13863 | fi | |
13864 | rm -f conftest* | |
13865 | fi | |
13866 | ||
13867 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13868 | echo "$ac_t""yes" 1>&6 | |
13869 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13870 | cat >> confdefs.h <<EOF | |
13871 | #define $ac_tr_func 1 | |
13872 | EOF | |
13873 | ||
13874 | cat >> confdefs.h <<\EOF | |
13875 | #define HAVE_DLOPEN 1 | |
13876 | EOF | |
13877 | ||
13878 | HAVE_DL_FUNCS=1 | |
13879 | ||
13880 | else | |
13881 | echo "$ac_t""no" 1>&6 | |
13882 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
0fb0dd83 | 13883 | echo "configure:13884: checking for dlopen in -ldl" >&5 |
10f2d63a VZ |
13884 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
13885 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13886 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13887 | else | |
13888 | ac_save_LIBS="$LIBS" | |
13889 | LIBS="-ldl $LIBS" | |
13890 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 13891 | #line 13892 "configure" |
10f2d63a VZ |
13892 | #include "confdefs.h" |
13893 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13894 | /* We use char because int might match the return type of a gcc2 | |
13895 | builtin and then its argument prototype would still apply. */ | |
13896 | char dlopen(); | |
13897 | ||
13898 | int main() { | |
13899 | dlopen() | |
13900 | ; return 0; } | |
13901 | EOF | |
0fb0dd83 | 13902 | if { (eval echo configure:13903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
13903 | rm -rf conftest* |
13904 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13905 | else | |
13906 | echo "configure: failed program was:" >&5 | |
13907 | cat conftest.$ac_ext >&5 | |
13908 | rm -rf conftest* | |
13909 | eval "ac_cv_lib_$ac_lib_var=no" | |
13910 | fi | |
13911 | rm -f conftest* | |
13912 | LIBS="$ac_save_LIBS" | |
13913 | ||
13914 | fi | |
13915 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13916 | echo "$ac_t""yes" 1>&6 | |
13917 | ||
13918 | cat >> confdefs.h <<\EOF | |
13919 | #define HAVE_DLOPEN 1 | |
13920 | EOF | |
13921 | ||
13922 | HAVE_DL_FUNCS=1 | |
13923 | LIBS="$LIBS -ldl" | |
13924 | ||
13925 | else | |
13926 | echo "$ac_t""no" 1>&6 | |
13927 | ||
13928 | for ac_func in shl_load | |
13929 | do | |
13930 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
0fb0dd83 | 13931 | echo "configure:13932: checking for $ac_func" >&5 |
10f2d63a VZ |
13932 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13933 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13934 | else | |
13935 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 13936 | #line 13937 "configure" |
10f2d63a VZ |
13937 | #include "confdefs.h" |
13938 | /* System header to define __stub macros and hopefully few prototypes, | |
13939 | which can conflict with char $ac_func(); below. */ | |
13940 | #include <assert.h> | |
13941 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13942 | /* We use char because int might match the return type of a gcc2 | |
13943 | builtin and then its argument prototype would still apply. */ | |
13944 | char $ac_func(); | |
13945 | ||
13946 | int main() { | |
13947 | ||
13948 | /* The GNU C library defines this for functions which it implements | |
13949 | to always fail with ENOSYS. Some functions are actually named | |
13950 | something starting with __ and the normal name is an alias. */ | |
13951 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13952 | choke me | |
13953 | #else | |
e8482f24 | 13954 | $ac_func(); |
10f2d63a VZ |
13955 | #endif |
13956 | ||
13957 | ; return 0; } | |
13958 | EOF | |
0fb0dd83 | 13959 | if { (eval echo configure:13960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
13960 | rm -rf conftest* |
13961 | eval "ac_cv_func_$ac_func=yes" | |
13962 | else | |
13963 | echo "configure: failed program was:" >&5 | |
13964 | cat conftest.$ac_ext >&5 | |
13965 | rm -rf conftest* | |
13966 | eval "ac_cv_func_$ac_func=no" | |
13967 | fi | |
13968 | rm -f conftest* | |
13969 | fi | |
13970 | ||
13971 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13972 | echo "$ac_t""yes" 1>&6 | |
13973 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13974 | cat >> confdefs.h <<EOF | |
13975 | #define $ac_tr_func 1 | |
13976 | EOF | |
13977 | ||
13978 | cat >> confdefs.h <<\EOF | |
13979 | #define HAVE_SHL_LOAD 1 | |
13980 | EOF | |
13981 | ||
13982 | HAVE_SHL_FUNCS=1 | |
13983 | ||
13984 | else | |
13985 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 | 13986 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 |
0fb0dd83 | 13987 | echo "configure:13988: checking for dld in -lshl_load" >&5 |
f6bcfd97 BP |
13988 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
13989 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13990 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13991 | else | |
13992 | ac_save_LIBS="$LIBS" | |
13993 | LIBS="-lshl_load $LIBS" | |
13994 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 13995 | #line 13996 "configure" |
f6bcfd97 BP |
13996 | #include "confdefs.h" |
13997 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13998 | /* We use char because int might match the return type of a gcc2 | |
13999 | builtin and then its argument prototype would still apply. */ | |
14000 | char dld(); | |
14001 | ||
14002 | int main() { | |
14003 | dld() | |
14004 | ; return 0; } | |
14005 | EOF | |
0fb0dd83 | 14006 | if { (eval echo configure:14007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f6bcfd97 BP |
14007 | rm -rf conftest* |
14008 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14009 | else | |
14010 | echo "configure: failed program was:" >&5 | |
14011 | cat conftest.$ac_ext >&5 | |
14012 | rm -rf conftest* | |
14013 | eval "ac_cv_lib_$ac_lib_var=no" | |
14014 | fi | |
14015 | rm -f conftest* | |
14016 | LIBS="$ac_save_LIBS" | |
14017 | ||
14018 | fi | |
14019 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14020 | echo "$ac_t""yes" 1>&6 | |
14021 | ||
14022 | HAVE_SHL_FUNCS=1 | |
14023 | LIBS="$LIBS -ldld" | |
14024 | ||
14025 | else | |
14026 | echo "$ac_t""no" 1>&6 | |
14027 | fi | |
14028 | ||
14029 | ||
10f2d63a VZ |
14030 | fi |
14031 | done | |
14032 | ||
14033 | ||
14034 | fi | |
14035 | ||
14036 | ||
14037 | fi | |
14038 | done | |
14039 | ||
14040 | ||
f6bcfd97 BP |
14041 | if test "$HAVE_DL_FUNCS" = 1; then |
14042 | for ac_func in dlerror | |
14043 | do | |
14044 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
0fb0dd83 | 14045 | echo "configure:14046: checking for $ac_func" >&5 |
f6bcfd97 BP |
14046 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14047 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14048 | else | |
14049 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 14050 | #line 14051 "configure" |
f6bcfd97 BP |
14051 | #include "confdefs.h" |
14052 | /* System header to define __stub macros and hopefully few prototypes, | |
14053 | which can conflict with char $ac_func(); below. */ | |
14054 | #include <assert.h> | |
14055 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14056 | /* We use char because int might match the return type of a gcc2 | |
14057 | builtin and then its argument prototype would still apply. */ | |
14058 | char $ac_func(); | |
14059 | ||
14060 | int main() { | |
14061 | ||
14062 | /* The GNU C library defines this for functions which it implements | |
14063 | to always fail with ENOSYS. Some functions are actually named | |
14064 | something starting with __ and the normal name is an alias. */ | |
14065 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14066 | choke me | |
14067 | #else | |
14068 | $ac_func(); | |
14069 | #endif | |
14070 | ||
14071 | ; return 0; } | |
14072 | EOF | |
0fb0dd83 | 14073 | if { (eval echo configure:14074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f6bcfd97 BP |
14074 | rm -rf conftest* |
14075 | eval "ac_cv_func_$ac_func=yes" | |
14076 | else | |
14077 | echo "configure: failed program was:" >&5 | |
14078 | cat conftest.$ac_ext >&5 | |
14079 | rm -rf conftest* | |
14080 | eval "ac_cv_func_$ac_func=no" | |
14081 | fi | |
14082 | rm -f conftest* | |
14083 | fi | |
14084 | ||
14085 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14086 | echo "$ac_t""yes" 1>&6 | |
14087 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14088 | cat >> confdefs.h <<EOF | |
14089 | #define $ac_tr_func 1 | |
14090 | EOF | |
14091 | cat >> confdefs.h <<\EOF | |
14092 | #define HAVE_DLERROR 1 | |
14093 | EOF | |
14094 | ||
14095 | else | |
14096 | echo "$ac_t""no" 1>&6 | |
14097 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
0fb0dd83 | 14098 | echo "configure:14099: checking for dlerror in -ldl" >&5 |
f6bcfd97 BP |
14099 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
14100 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14101 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14102 | else | |
14103 | ac_save_LIBS="$LIBS" | |
14104 | LIBS="-ldl $LIBS" | |
14105 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 14106 | #line 14107 "configure" |
f6bcfd97 BP |
14107 | #include "confdefs.h" |
14108 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14109 | /* We use char because int might match the return type of a gcc2 | |
14110 | builtin and then its argument prototype would still apply. */ | |
14111 | char dlerror(); | |
14112 | ||
14113 | int main() { | |
14114 | dlerror() | |
14115 | ; return 0; } | |
14116 | EOF | |
0fb0dd83 | 14117 | if { (eval echo configure:14118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
f6bcfd97 BP |
14118 | rm -rf conftest* |
14119 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14120 | else | |
14121 | echo "configure: failed program was:" >&5 | |
14122 | cat conftest.$ac_ext >&5 | |
14123 | rm -rf conftest* | |
14124 | eval "ac_cv_lib_$ac_lib_var=no" | |
14125 | fi | |
14126 | rm -f conftest* | |
14127 | LIBS="$ac_save_LIBS" | |
14128 | ||
14129 | fi | |
14130 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14131 | echo "$ac_t""yes" 1>&6 | |
14132 | cat >> confdefs.h <<\EOF | |
14133 | #define HAVE_DLERROR 1 | |
14134 | EOF | |
14135 | ||
14136 | else | |
14137 | echo "$ac_t""no" 1>&6 | |
14138 | fi | |
14139 | ||
14140 | fi | |
14141 | done | |
14142 | ||
14143 | fi | |
14144 | ||
10f2d63a VZ |
14145 | if test "$HAVE_DL_FUNCS" = 0; then |
14146 | if test "$HAVE_SHL_FUNCS" = 0; then | |
14147 | if test "$USE_UNIX" = 1; then | |
b12915c1 | 14148 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 |
10f2d63a VZ |
14149 | wxUSE_DYNLIB_CLASS=no |
14150 | else | |
b12915c1 | 14151 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 |
10f2d63a VZ |
14152 | fi |
14153 | fi | |
14154 | fi | |
14155 | fi | |
14156 | ||
b089607b VZ |
14157 | fi |
14158 | ||
10f2d63a | 14159 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
b12915c1 | 14160 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14161 | #define wxUSE_DYNLIB_CLASS 1 |
14162 | EOF | |
14163 | ||
b12915c1 VZ |
14164 | else |
14165 | wxUSE_ODBC=no | |
14166 | wxUSE_SERIAL=no | |
10f2d63a VZ |
14167 | fi |
14168 | ||
14169 | ||
14170 | if test "$wxUSE_UNICODE" = "yes" ; then | |
14171 | cat >> confdefs.h <<\EOF | |
14172 | #define wxUSE_UNICODE 1 | |
14173 | EOF | |
14174 | ||
14175 | fi | |
14176 | ||
14177 | if test "$wxUSE_WCSRTOMBS" = "yes" ; then | |
14178 | cat >> confdefs.h <<\EOF | |
14179 | #define wxUSE_WCSRTOMBS 1 | |
14180 | EOF | |
14181 | ||
14182 | fi | |
14183 | ||
14184 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
14185 | cat >> confdefs.h <<\EOF | |
14186 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
14187 | EOF | |
14188 | ||
14189 | fi | |
14190 | ||
14191 | ||
b12915c1 VZ |
14192 | if test "$wxUSE_SERIAL" = "yes" ; then |
14193 | cat >> confdefs.h <<\EOF | |
14194 | #define wxUSE_SERIAL 1 | |
14195 | EOF | |
14196 | ||
14197 | fi | |
14198 | ||
14199 | ||
10f2d63a VZ |
14200 | IODBC_C_SRC="" |
14201 | if test "$wxUSE_ODBC" = "yes" ; then | |
14202 | cat >> confdefs.h <<\EOF | |
14203 | #define wxUSE_ODBC 1 | |
14204 | EOF | |
14205 | ||
14206 | WXODBCFLAG="-D_IODBC_" | |
14207 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
14208 | IODBCOBJS="\$(IODBC_OBJS)" | |
14209 | else | |
14210 | IODBCOBJS= | |
14211 | fi | |
14212 | ||
14213 | ||
14214 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
14215 | cat >> confdefs.h <<\EOF | |
14216 | #define wxUSE_POSTSCRIPT 1 | |
14217 | EOF | |
14218 | ||
14219 | fi | |
14220 | ||
14221 | cat >> confdefs.h <<\EOF | |
14222 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
14223 | EOF | |
14224 | ||
14225 | ||
14226 | cat >> confdefs.h <<\EOF | |
14227 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
14228 | EOF | |
14229 | ||
14230 | ||
14231 | ||
14232 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
14233 | cat >> confdefs.h <<\EOF | |
14234 | #define wxUSE_CONSTRAINTS 1 | |
14235 | EOF | |
14236 | ||
14237 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
14238 | fi | |
14239 | ||
14240 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
14241 | cat >> confdefs.h <<\EOF | |
14242 | #define wxUSE_MDI_ARCHITECTURE 1 | |
14243 | EOF | |
14244 | ||
14245 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" | |
14246 | fi | |
14247 | ||
14248 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
14249 | cat >> confdefs.h <<\EOF | |
14250 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
14251 | EOF | |
14252 | ||
14253 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
14254 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
14255 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
14256 | fi | |
14257 | fi | |
14258 | ||
14259 | if test "$wxUSE_HELP" = "yes"; then | |
14260 | cat >> confdefs.h <<\EOF | |
14261 | #define wxUSE_HELP 1 | |
14262 | EOF | |
14263 | ||
14264 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
14265 | fi | |
14266 | ||
14267 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
14268 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
14269 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 | |
14270 | else | |
14271 | cat >> confdefs.h <<\EOF | |
14272 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
14273 | EOF | |
14274 | ||
14275 | fi | |
14276 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
14277 | fi | |
14278 | ||
14279 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
14280 | cat >> confdefs.h <<\EOF | |
14281 | #define wxUSE_PROLOGIO 1 | |
14282 | EOF | |
14283 | ||
14284 | fi | |
14285 | ||
14286 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
14287 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
14288 | cat >> confdefs.h <<\EOF | |
14289 | #define wxUSE_RESOURCES 1 | |
14290 | EOF | |
14291 | ||
14292 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" | |
14293 | else | |
14294 | echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2 | |
14295 | fi | |
14296 | fi | |
14297 | ||
14298 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
14299 | cat >> confdefs.h <<\EOF | |
14300 | #define wxUSE_X_RESOURCES 1 | |
14301 | EOF | |
14302 | ||
14303 | fi | |
14304 | ||
14305 | ||
14306 | if test "$wxUSE_IPC" = "yes"; then | |
eb4efbdc VZ |
14307 | if test "$wxUSE_SOCKETS" != "yes"; then |
14308 | echo "configure: warning: wxWindows IPC classes require sockets" 1>&2 | |
14309 | fi | |
14310 | ||
10f2d63a VZ |
14311 | cat >> confdefs.h <<\EOF |
14312 | #define wxUSE_IPC 1 | |
14313 | EOF | |
14314 | ||
14315 | fi | |
14316 | ||
14317 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
14318 | cat >> confdefs.h <<\EOF | |
14319 | #define wxUSE_CLIPBOARD 1 | |
14320 | EOF | |
14321 | ||
14322 | fi | |
14323 | ||
14324 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
14325 | if test "$wxUSE_GTK" = 1; then | |
14326 | if test "$WXGTK12" != 1; then | |
14327 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2 | |
14328 | wxUSE_DRAG_AND_DROP=no | |
14329 | fi | |
14330 | fi | |
14331 | ||
14332 | if test "$wxUSE_MOTIF" = 1; then | |
14333 | echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2 | |
14334 | wxUSE_DRAG_AND_DROP=no | |
14335 | fi | |
14336 | ||
14337 | if test "$USE_WIN32" = 1; then | |
14338 | for ac_hdr in ole2.h | |
14339 | do | |
14340 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
14341 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
0fb0dd83 | 14342 | echo "configure:14343: checking for $ac_hdr" >&5 |
10f2d63a VZ |
14343 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14344 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14345 | else | |
14346 | cat > conftest.$ac_ext <<EOF | |
0fb0dd83 | 14347 | #line 14348 "configure" |
10f2d63a VZ |
14348 | #include "confdefs.h" |
14349 | #include <$ac_hdr> | |
14350 | EOF | |
14351 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
0fb0dd83 | 14352 | { (eval echo configure:14353: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
14353 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14354 | if test -z "$ac_err"; then | |
14355 | rm -rf conftest* | |
14356 | eval "ac_cv_header_$ac_safe=yes" | |
14357 | else | |
14358 | echo "$ac_err" >&5 | |
14359 | echo "configure: failed program was:" >&5 | |
14360 | cat conftest.$ac_ext >&5 | |
14361 | rm -rf conftest* | |
14362 | eval "ac_cv_header_$ac_safe=no" | |
14363 | fi | |
14364 | rm -f conftest* | |
14365 | fi | |
14366 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
14367 | echo "$ac_t""yes" 1>&6 | |
14368 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
14369 | cat >> confdefs.h <<EOF | |
14370 | #define $ac_tr_hdr 1 | |
14371 | EOF | |
14372 | ||
14373 | else | |
14374 | echo "$ac_t""no" 1>&6 | |
14375 | fi | |
14376 | done | |
14377 | ||
14378 | if test "x$HAVE_OLE2_H" = x ; then | |
14379 | echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2 | |
14380 | wxUSE_DRAG_AND_DROP=no | |
14381 | fi | |
14382 | fi | |
14383 | ||
14384 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
14385 | cat >> confdefs.h <<\EOF | |
14386 | #define wxUSE_DRAG_AND_DROP 1 | |
14387 | EOF | |
14388 | ||
14389 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
14390 | fi | |
14391 | ||
14392 | fi | |
14393 | ||
14394 | if test "$wxUSE_SPLINES" = "yes" ; then | |
14395 | cat >> confdefs.h <<\EOF | |
14396 | #define wxUSE_SPLINES 1 | |
14397 | EOF | |
14398 | ||
14399 | fi | |
14400 | ||
14401 | ||
14402 | if test "$wxUSE_ACCEL" = "yes"; then | |
14403 | cat >> confdefs.h <<\EOF | |
14404 | #define wxUSE_ACCEL 1 | |
14405 | EOF | |
14406 | ||
14407 | fi | |
14408 | ||
14409 | if test "$wxUSE_CARET" = "yes"; then | |
14410 | cat >> confdefs.h <<\EOF | |
14411 | #define wxUSE_CARET 1 | |
14412 | EOF | |
14413 | ||
14414 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
14415 | fi | |
14416 | ||
14417 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
14418 | cat >> confdefs.h <<\EOF | |
14419 | #define wxUSE_COMBOBOX 1 | |
14420 | EOF | |
14421 | ||
14422 | fi | |
14423 | ||
14424 | if test "$wxUSE_CHOICE" = "yes"; then | |
14425 | cat >> confdefs.h <<\EOF | |
14426 | #define wxUSE_CHOICE 1 | |
14427 | EOF | |
14428 | ||
14429 | fi | |
14430 | ||
14431 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
14432 | cat >> confdefs.h <<\EOF | |
14433 | #define wxUSE_BMPBUTTON 1 | |
14434 | EOF | |
14435 | ||
14436 | fi | |
14437 | ||
14438 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
14439 | cat >> confdefs.h <<\EOF | |
14440 | #define wxUSE_CHECKBOX 1 | |
14441 | EOF | |
14442 | ||
14443 | fi | |
14444 | ||
14445 | if test "$wxUSE_CHECKLST" = "yes"; then | |
14446 | cat >> confdefs.h <<\EOF | |
14447 | #define wxUSE_CHECKLISTBOX 1 | |
14448 | EOF | |
14449 | ||
14450 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
14451 | fi | |
14452 | ||
14453 | if test "$wxUSE_GAUGE" = "yes"; then | |
14454 | cat >> confdefs.h <<\EOF | |
14455 | #define wxUSE_GAUGE 1 | |
14456 | EOF | |
14457 | ||
14458 | fi | |
14459 | ||
d6a55c4b VZ |
14460 | if test "$wxUSE_NEW_GRID" = "yes"; then |
14461 | wxUSE_GRID="yes" | |
10f2d63a | 14462 | cat >> confdefs.h <<\EOF |
d6a55c4b | 14463 | #define wxUSE_NEW_GRID 1 |
10f2d63a VZ |
14464 | EOF |
14465 | ||
d6a55c4b | 14466 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
14467 | fi |
14468 | ||
d6a55c4b | 14469 | if test "$wxUSE_GRID" = "yes"; then |
10f2d63a | 14470 | cat >> confdefs.h <<\EOF |
d6a55c4b | 14471 | #define wxUSE_GRID 1 |
10f2d63a VZ |
14472 | EOF |
14473 | ||
d6a55c4b | 14474 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
14475 | fi |
14476 | ||
14477 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
14478 | cat >> confdefs.h <<\EOF | |
14479 | #define wxUSE_IMAGLIST 1 | |
14480 | EOF | |
14481 | ||
14482 | fi | |
14483 | ||
14484 | if test "$wxUSE_LISTBOX" = "yes"; then | |
14485 | cat >> confdefs.h <<\EOF | |
14486 | #define wxUSE_LISTBOX 1 | |
14487 | EOF | |
14488 | ||
14489 | fi | |
14490 | ||
14491 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
14492 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
14493 | cat >> confdefs.h <<\EOF | |
14494 | #define wxUSE_LISTCTRL 1 | |
14495 | EOF | |
14496 | ||
14497 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
14498 | else | |
14499 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 | |
14500 | fi | |
14501 | fi | |
14502 | ||
14503 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
14504 | cat >> confdefs.h <<\EOF | |
14505 | #define wxUSE_NOTEBOOK 1 | |
14506 | EOF | |
14507 | ||
14508 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
14509 | fi | |
14510 | ||
14511 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
14512 | cat >> confdefs.h <<\EOF | |
14513 | #define wxUSE_RADIOBOX 1 | |
14514 | EOF | |
14515 | ||
14516 | fi | |
14517 | ||
14518 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
14519 | cat >> confdefs.h <<\EOF | |
14520 | #define wxUSE_RADIOBTN 1 | |
14521 | EOF | |
14522 | ||
14523 | fi | |
14524 | ||
14525 | if test "$wxUSE_SASH" = "yes"; then | |
14526 | cat >> confdefs.h <<\EOF | |
14527 | #define wxUSE_SASH 1 | |
14528 | EOF | |
14529 | ||
14530 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
14531 | fi | |
14532 | ||
14533 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
14534 | cat >> confdefs.h <<\EOF | |
14535 | #define wxUSE_SCROLLBAR 1 | |
14536 | EOF | |
14537 | ||
741a9306 | 14538 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
14539 | fi |
14540 | ||
14541 | if test "$wxUSE_SLIDER" = "yes"; then | |
14542 | cat >> confdefs.h <<\EOF | |
14543 | #define wxUSE_SLIDER 1 | |
14544 | EOF | |
14545 | ||
14546 | fi | |
14547 | ||
14548 | if test "$wxUSE_SPINBTN" = "yes"; then | |
14549 | cat >> confdefs.h <<\EOF | |
14550 | #define wxUSE_SPINBTN 1 | |
14551 | EOF | |
14552 | ||
14553 | fi | |
14554 | ||
56cfaa52 RR |
14555 | if test "$wxUSE_SPINCTRL" = "yes"; then |
14556 | cat >> confdefs.h <<\EOF | |
14557 | #define wxUSE_SPINCTRL 1 | |
14558 | EOF | |
14559 | ||
14560 | fi | |
14561 | ||
10f2d63a VZ |
14562 | if test "$wxUSE_SPLITTER" = "yes"; then |
14563 | cat >> confdefs.h <<\EOF | |
14564 | #define wxUSE_SPLITTER 1 | |
14565 | EOF | |
14566 | ||
14567 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
14568 | fi | |
14569 | ||
14570 | if test "$wxUSE_STATBMP" = "yes"; then | |
14571 | cat >> confdefs.h <<\EOF | |
14572 | #define wxUSE_STATBMP 1 | |
14573 | EOF | |
14574 | ||
14575 | fi | |
14576 | ||
14577 | if test "$wxUSE_STATBOX" = "yes"; then | |
14578 | cat >> confdefs.h <<\EOF | |
14579 | #define wxUSE_STATBOX 1 | |
14580 | EOF | |
14581 | ||
14582 | fi | |
14583 | ||
14584 | if test "$wxUSE_STATLINE" = "yes"; then | |
14585 | if test "$wxUSE_WINE" = 1 ; then | |
14586 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 | |
14587 | else | |
14588 | cat >> confdefs.h <<\EOF | |
14589 | #define wxUSE_STATLINE 1 | |
14590 | EOF | |
14591 | ||
14592 | fi | |
14593 | fi | |
14594 | ||
14595 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
14596 | cat >> confdefs.h <<\EOF | |
14597 | #define wxUSE_STATUSBAR 1 | |
14598 | EOF | |
14599 | ||
2286341c VZ |
14600 | |
14601 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
10f2d63a VZ |
14602 | fi |
14603 | ||
14604 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
14605 | cat >> confdefs.h <<\EOF | |
14606 | #define wxUSE_TAB_DIALOG 1 | |
14607 | EOF | |
14608 | ||
14609 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
14610 | fi | |
14611 | ||
360d6699 VZ |
14612 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
14613 | cat >> confdefs.h <<\EOF | |
14614 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
14615 | EOF | |
14616 | ||
14617 | wxUSE_TOOLBAR="yes" | |
14618 | fi | |
14619 | ||
10f2d63a VZ |
14620 | if test "$wxUSE_TOOLBAR" = "yes"; then |
14621 | cat >> confdefs.h <<\EOF | |
14622 | #define wxUSE_TOOLBAR 1 | |
14623 | EOF | |
14624 | ||
360d6699 VZ |
14625 | |
14626 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
14627 | wxUSE_TOOLBAR_NATIVE="yes" | |
14628 | fi | |
14629 | ||
10f2d63a VZ |
14630 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" |
14631 | fi | |
14632 | ||
360d6699 VZ |
14633 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
14634 | cat >> confdefs.h <<\EOF | |
14635 | #define wxUSE_TOOLBAR_NATIVE 1 | |
14636 | EOF | |
14637 | ||
14638 | fi | |
14639 | ||
10f2d63a VZ |
14640 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
14641 | if test "$wxUSE_MOTIF" = 1; then | |
14642 | echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2 | |
14643 | else | |
14644 | if test "$wxUSE_WINE" = 1; then | |
14645 | echo "configure: warning: wxTooltip not supported under WINE" 1>&2 | |
14646 | else | |
14647 | cat >> confdefs.h <<\EOF | |
14648 | #define wxUSE_TOOLTIPS 1 | |
14649 | EOF | |
14650 | ||
14651 | fi | |
14652 | fi | |
14653 | fi | |
14654 | ||
14655 | if test "$wxUSE_TREECTRL" = "yes"; then | |
14656 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
14657 | cat >> confdefs.h <<\EOF | |
14658 | #define wxUSE_TREECTRL 1 | |
14659 | EOF | |
14660 | ||
14661 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
14662 | else | |
14663 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 | |
14664 | fi | |
14665 | fi | |
14666 | ||
14667 | ||
14668 | ||
14669 | if test "$wxUSE_METAFILE" = "yes"; then | |
14670 | cat >> confdefs.h <<\EOF | |
14671 | #define wxUSE_METAFILE 1 | |
14672 | EOF | |
14673 | ||
14674 | fi | |
14675 | ||
14676 | if test "$wxUSE_DIRDLG" = "yes"; then | |
14677 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
14678 | echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2 | |
14679 | else | |
14680 | if test "$wxUSE_TREECTRL" != "yes"; then | |
14681 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
14682 | else | |
14683 | cat >> confdefs.h <<\EOF | |
14684 | #define wxUSE_DIRDLG 1 | |
14685 | EOF | |
14686 | ||
14687 | fi | |
14688 | fi | |
14689 | fi | |
14690 | ||
14691 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
14692 | cat >> confdefs.h <<\EOF | |
14693 | #define wxUSE_TEXTDLG 1 | |
14694 | EOF | |
14695 | ||
14696 | fi | |
14697 | ||
14698 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
14699 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
14700 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
14701 | else | |
14702 | cat >> confdefs.h <<\EOF | |
14703 | #define wxUSE_STARTUP_TIPS 1 | |
14704 | EOF | |
14705 | ||
14706 | fi | |
14707 | fi | |
14708 | ||
14709 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
14710 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
14711 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
14712 | else | |
14713 | cat >> confdefs.h <<\EOF | |
14714 | #define wxUSE_PROGRESSDLG 1 | |
14715 | EOF | |
14716 | ||
14717 | fi | |
14718 | fi | |
14719 | ||
14720 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
14721 | cat >> confdefs.h <<\EOF | |
14722 | #define wxUSE_MINIFRAME 1 | |
14723 | EOF | |
14724 | ||
14725 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
14726 | fi | |
14727 | ||
14728 | if test "$wxUSE_HTML" = "yes"; then | |
14729 | cat >> confdefs.h <<\EOF | |
14730 | #define wxUSE_HTML 1 | |
14731 | EOF | |
14732 | ||
14733 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
14734 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html" | |
14735 | fi | |
14736 | ||
14737 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
14738 | cat >> confdefs.h <<\EOF | |
14739 | #define wxUSE_VALIDATORS 1 | |
14740 | EOF | |
14741 | ||
14742 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
14743 | fi | |
14744 | ||
14745 | if test "$wxUSE_GIF" = "yes" ; then | |
14746 | cat >> confdefs.h <<\EOF | |
14747 | #define wxUSE_GIF 1 | |
14748 | EOF | |
14749 | ||
14750 | fi | |
14751 | ||
14752 | if test "$wxUSE_PCX" = "yes" ; then | |
14753 | cat >> confdefs.h <<\EOF | |
14754 | #define wxUSE_PCX 1 | |
14755 | EOF | |
14756 | ||
14757 | fi | |
14758 | ||
14759 | if test "$wxUSE_PNM" = "yes" ; then | |
14760 | cat >> confdefs.h <<\EOF | |
14761 | #define wxUSE_PNM 1 | |
14762 | EOF | |
14763 | ||
14764 | fi | |
14765 | ||
14766 | ||
32832908 VZ |
14767 | if test "$cross_compiling" = "yes"; then |
14768 | OSINFO="\"$host\"" | |
14769 | else | |
14770 | OSINFO=`uname -s -r -m` | |
14771 | OSINFO="\"$OSINFO\"" | |
14772 | fi | |
14773 | ||
aaa37c0d VZ |
14774 | cat >> confdefs.h <<EOF |
14775 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
14776 | EOF | |
14777 | ||
14778 | ||
14779 | ||
f6bcfd97 BP |
14780 | GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK" |
14781 | OPENGL_LIBS="$OPENGL_LINK" | |
10f2d63a | 14782 | |
f6bcfd97 | 14783 | EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm" |
10f2d63a | 14784 | if test "$wxUSE_GUI" = "yes"; then |
f6bcfd97 | 14785 | EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $EXTRA_LIBS" |
10f2d63a VZ |
14786 | fi |
14787 | ||
14788 | LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS" | |
14789 | ||
8461a059 | 14790 | INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE" |
10f2d63a | 14791 | |
f6bcfd97 BP |
14792 | if test "$wxUSE_GTK" = 1; then |
14793 | WXCONFIG_INCLUDE="" | |
14794 | else | |
14795 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
14796 | fi | |
14797 | ||
10f2d63a VZ |
14798 | if test "$GXX" = yes ; then |
14799 | CXXWARNINGS="-Wall" | |
d6a55c4b | 14800 | fi |
10f2d63a VZ |
14801 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" |
14802 | ||
f6bcfd97 | 14803 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` |
10f2d63a VZ |
14804 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` |
14805 | ||
e694c22c VZ |
14806 | LDFLAGS="$LDFLAGS $PROFILE" |
14807 | ||
10f2d63a VZ |
14808 | if test "$wxUSE_GUI" = "yes"; then |
14809 | ||
bdad4e7e | 14810 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs dragimag drawing dynamic \ |
bc9027cc | 14811 | font fractal image menu minimal richedit" |
b12915c1 | 14812 | |
88d3a15c | 14813 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" |
10f2d63a VZ |
14814 | else |
14815 | SAMPLES_SUBDIRS="" | |
14816 | fi | |
14817 | ||
ec14dd32 VZ |
14818 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" |
14819 | ||
14820 | ||
14821 | ||
10f2d63a VZ |
14822 | |
14823 | ||
14824 | ||
14825 | ||
14826 | ||
14827 | ||
14828 | ||
14829 | ||
14830 | ||
14831 | ||
14832 | ||
14833 | ||
14834 | ||
14835 | ||
14836 | ||
14837 | ||
14838 | ||
14839 | ||
14840 | ||
14841 | ||
14842 | ||
14843 | ||
14844 | ||
14845 | ||
14846 | ||
14847 | ||
14848 | ||
14849 | ||
14850 | ||
14851 | ||
14852 | ||
14853 | ||
14854 | ||
14855 | ||
14856 | ||
14857 | ||
14858 | ||
14859 | ||
14860 | ||
14861 | ||
14862 | ||
14863 | ||
14864 | ||
14865 | ||
14866 | ||
14867 | ||
14868 | ||
14869 | ||
14870 | ||
14871 | ||
14872 | ||
14873 | ||
1d62a8b4 | 14874 | |
bdad4e7e RR |
14875 | |
14876 | ||
14877 | ||
14878 | ||
14879 | ||
14880 | ||
14881 | ||
32832908 VZ |
14882 | |
14883 | ||
14884 | ||
14885 | ||
14886 | ||
14887 | ||
14888 | ||
14889 | ||
14890 | ||
14891 | ||
14892 | ||
14893 | ||
14894 | ||
bdad4e7e RR |
14895 | |
14896 | ||
14897 | ||
e694c22c | 14898 | |
b12915c1 | 14899 | |
2224580a VZ |
14900 | |
14901 | ||
14902 | ||
14903 | ||
dad6c0ea | 14904 | |
f6bcfd97 BP |
14905 | |
14906 | ||
14907 | ||
14908 | ||
dad6c0ea | 14909 | |
caa2c79b | 14910 | |
3711412e | 14911 | |
10f2d63a VZ |
14912 | |
14913 | ||
14914 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
0fb0dd83 | 14915 | echo "configure:14916: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
10f2d63a VZ |
14916 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
14917 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
14918 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14919 | else | |
14920 | cat > conftestmake <<\EOF | |
14921 | all: | |
14922 | @echo 'ac_maketemp="${MAKE}"' | |
14923 | EOF | |
14924 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
14925 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
14926 | if test -n "$ac_maketemp"; then | |
14927 | eval ac_cv_prog_make_${ac_make}_set=yes | |
14928 | else | |
14929 | eval ac_cv_prog_make_${ac_make}_set=no | |
14930 | fi | |
14931 | rm -f conftestmake | |
14932 | fi | |
14933 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
14934 | echo "$ac_t""yes" 1>&6 | |
14935 | SET_MAKE= | |
14936 | else | |
14937 | echo "$ac_t""no" 1>&6 | |
14938 | SET_MAKE="MAKE=${MAKE-make}" | |
14939 | fi | |
14940 | ||
14941 | ||
00cf1208 RR |
14942 | if test -d include; then |
14943 | if test -d include/wx; then | |
14944 | if test -d include/wx/${TOOLKIT_DIR}; then | |
14945 | if test -f include/wx/${TOOLKIT_DIR}/setup.h; then | |
14946 | mv -f include/wx/${TOOLKIT_DIR}/setup.h setup.h | |
14947 | fi | |
14948 | fi | |
14949 | fi | |
14950 | fi | |
14951 | ||
10f2d63a VZ |
14952 | |
14953 | ||
2224580a | 14954 | if test "$wxUSE_GUI" = "yes"; then |
ec90f5e5 | 14955 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
e8482f24 GL |
14956 | wx_cv_path_ifs=$PATH_IFS |
14957 | wx_cv_program_ext=$PROGRAM_EXT | |
14958 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
3711412e | 14959 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE |
e8482f24 | 14960 | subdirs="demos samples utils contrib" |
2224580a VZ |
14961 | |
14962 | fi | |
10f2d63a VZ |
14963 | |
14964 | trap '' 1 2 15 | |
14965 | cat > confcache <<\EOF | |
14966 | # This file is a shell script that caches the results of configure | |
14967 | # tests run on this system so they can be shared between configure | |
14968 | # scripts and configure runs. It is not useful on other systems. | |
14969 | # If it contains results you don't want to keep, you may remove or edit it. | |
14970 | # | |
14971 | # By default, configure uses ./config.cache as the cache file, | |
14972 | # creating it if it does not exist already. You can give configure | |
14973 | # the --cache-file=FILE option to use a different cache file; that is | |
14974 | # what configure does when it calls configure scripts in | |
14975 | # subdirectories, so they share the cache. | |
14976 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
14977 | # config.status only pays attention to the cache file if you give it the | |
14978 | # --recheck option to rerun configure. | |
14979 | # | |
14980 | EOF | |
14981 | # The following way of writing the cache mishandles newlines in values, | |
14982 | # but we know of no workaround that is simple, portable, and efficient. | |
14983 | # So, don't put newlines in cache variables' values. | |
14984 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
14985 | # and sets the high bit in the cache file unless we assign to the vars. | |
14986 | (set) 2>&1 | | |
14987 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
14988 | *ac_space=\ *) | |
14989 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
14990 | # turns \\\\ into \\, and sed turns \\ into \). | |
14991 | sed -n \ | |
14992 | -e "s/'/'\\\\''/g" \ | |
14993 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
14994 | ;; | |
14995 | *) | |
14996 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
14997 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
14998 | ;; | |
14999 | esac >> confcache | |
15000 | if cmp -s $cache_file confcache; then | |
15001 | : | |
15002 | else | |
15003 | if test -w $cache_file; then | |
15004 | echo "updating cache $cache_file" | |
15005 | cat confcache > $cache_file | |
15006 | else | |
15007 | echo "not updating unwritable cache $cache_file" | |
15008 | fi | |
15009 | fi | |
15010 | rm -f confcache | |
15011 | ||
15012 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
15013 | ||
15014 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
15015 | # Let make expand exec_prefix. | |
15016 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
15017 | ||
15018 | # Any assignment to VPATH causes Sun make to only execute | |
15019 | # the first set of double-colon rules, so remove it if not needed. | |
15020 | # If there is a colon in the path, we need to keep it. | |
15021 | if test "x$srcdir" = x.; then | |
15022 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
15023 | fi | |
15024 | ||
15025 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
15026 | ||
15027 | DEFS=-DHAVE_CONFIG_H | |
15028 | ||
15029 | # Without the "./", some shells look in PATH for config.status. | |
15030 | : ${CONFIG_STATUS=./config.status} | |
15031 | ||
15032 | echo creating $CONFIG_STATUS | |
15033 | rm -f $CONFIG_STATUS | |
15034 | cat > $CONFIG_STATUS <<EOF | |
15035 | #! /bin/sh | |
15036 | # Generated automatically by configure. | |
15037 | # Run this file to recreate the current configuration. | |
15038 | # This directory was configured as follows, | |
15039 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
15040 | # | |
15041 | # $0 $ac_configure_args | |
15042 | # | |
15043 | # Compiler output produced by configure, useful for debugging | |
15044 | # configure, is in ./config.log if it exists. | |
15045 | ||
15046 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
15047 | for ac_option | |
15048 | do | |
15049 | case "\$ac_option" in | |
15050 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
15051 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
15052 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
15053 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
e8482f24 | 15054 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
10f2d63a VZ |
15055 | exit 0 ;; |
15056 | -help | --help | --hel | --he | --h) | |
15057 | echo "\$ac_cs_usage"; exit 0 ;; | |
15058 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
15059 | esac | |
15060 | done | |
15061 | ||
15062 | ac_given_srcdir=$srcdir | |
15063 | ac_given_INSTALL="$INSTALL" | |
15064 | ||
15065 | trap 'rm -fr `echo " | |
15066 | wx-config | |
15067 | src/make.env | |
15068 | src/makeprog.env | |
15069 | src/makelib.env | |
15070 | Makefile | |
10f2d63a VZ |
15071 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
15072 | EOF | |
15073 | cat >> $CONFIG_STATUS <<EOF | |
15074 | ||
15075 | # Protect against being on the right side of a sed subst in config.status. | |
15076 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
15077 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
15078 | $ac_vpsub | |
15079 | $extrasub | |
15080 | s%@SHELL@%$SHELL%g | |
15081 | s%@CFLAGS@%$CFLAGS%g | |
15082 | s%@CPPFLAGS@%$CPPFLAGS%g | |
15083 | s%@CXXFLAGS@%$CXXFLAGS%g | |
15084 | s%@FFLAGS@%$FFLAGS%g | |
15085 | s%@DEFS@%$DEFS%g | |
15086 | s%@LDFLAGS@%$LDFLAGS%g | |
15087 | s%@LIBS@%$LIBS%g | |
15088 | s%@exec_prefix@%$exec_prefix%g | |
15089 | s%@prefix@%$prefix%g | |
15090 | s%@program_transform_name@%$program_transform_name%g | |
15091 | s%@bindir@%$bindir%g | |
15092 | s%@sbindir@%$sbindir%g | |
15093 | s%@libexecdir@%$libexecdir%g | |
15094 | s%@datadir@%$datadir%g | |
15095 | s%@sysconfdir@%$sysconfdir%g | |
15096 | s%@sharedstatedir@%$sharedstatedir%g | |
15097 | s%@localstatedir@%$localstatedir%g | |
15098 | s%@libdir@%$libdir%g | |
15099 | s%@includedir@%$includedir%g | |
15100 | s%@oldincludedir@%$oldincludedir%g | |
15101 | s%@infodir@%$infodir%g | |
15102 | s%@mandir@%$mandir%g | |
7c66a493 VZ |
15103 | s%@host@%$host%g |
15104 | s%@host_alias@%$host_alias%g | |
15105 | s%@host_cpu@%$host_cpu%g | |
15106 | s%@host_vendor@%$host_vendor%g | |
15107 | s%@host_os@%$host_os%g | |
15108 | s%@target@%$target%g | |
15109 | s%@target_alias@%$target_alias%g | |
15110 | s%@target_cpu@%$target_cpu%g | |
15111 | s%@target_vendor@%$target_vendor%g | |
15112 | s%@target_os@%$target_os%g | |
15113 | s%@build@%$build%g | |
15114 | s%@build_alias@%$build_alias%g | |
15115 | s%@build_cpu@%$build_cpu%g | |
15116 | s%@build_vendor@%$build_vendor%g | |
15117 | s%@build_os@%$build_os%g | |
10f2d63a VZ |
15118 | s%@CC@%$CC%g |
15119 | s%@CPP@%$CPP%g | |
15120 | s%@CXX@%$CXX%g | |
15121 | s%@CXXCPP@%$CXXCPP%g | |
15122 | s%@RANLIB@%$RANLIB%g | |
15123 | s%@AR@%$AR%g | |
15124 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
15125 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
15126 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
15127 | s%@STRIP@%$STRIP%g | |
15128 | s%@YACC@%$YACC%g | |
15129 | s%@LEX@%$LEX%g | |
15130 | s%@LEXLIB@%$LEXLIB%g | |
15131 | s%@LN_S@%$LN_S%g | |
6f72b082 | 15132 | s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g |
10f2d63a VZ |
15133 | s%@GTK_CONFIG@%$GTK_CONFIG%g |
15134 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g | |
15135 | s%@GTK_LIBS@%$GTK_LIBS%g | |
ab9b9eab VZ |
15136 | s%@X_CFLAGS@%$X_CFLAGS%g |
15137 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
15138 | s%@X_LIBS@%$X_LIBS%g | |
15139 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
ec14dd32 VZ |
15140 | s%@LEX_STEM@%$LEX_STEM%g |
15141 | s%@PATH_IFS@%$PATH_IFS%g | |
10f2d63a VZ |
15142 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g |
15143 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
15144 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
15145 | s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g | |
15146 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
15147 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
15148 | s%@WX_LIBRARY@%$WX_LIBRARY%g | |
15149 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
15150 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
15151 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
15152 | s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g | |
15153 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g | |
bdad4e7e RR |
15154 | s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g |
15155 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g | |
15156 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
15157 | s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g | |
15158 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g | |
15159 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
15160 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
15161 | s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g | |
10f2d63a VZ |
15162 | s%@WX_ALL@%$WX_ALL%g |
15163 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
15164 | s%@SHARED_LD@%$SHARED_LD%g | |
15165 | s%@PIC_FLAG@%$PIC_FLAG%g | |
15166 | s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g | |
caa2c79b | 15167 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g |
1d62a8b4 | 15168 | s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g |
bdad4e7e | 15169 | s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g |
f6bcfd97 | 15170 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g |
3711412e | 15171 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g |
10f2d63a | 15172 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g |
dad6c0ea VZ |
15173 | s%@USE_GUI@%$USE_GUI%g |
15174 | s%@AFMINSTALL@%$AFMINSTALL%g | |
10f2d63a VZ |
15175 | s%@TOOLKIT@%$TOOLKIT%g |
15176 | s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g | |
15177 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
f6bcfd97 | 15178 | s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g |
10f2d63a | 15179 | s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g |
f6bcfd97 | 15180 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g |
10f2d63a VZ |
15181 | s%@GUIHEADERS@%$GUIHEADERS%g |
15182 | s%@GUIOBJS@%$GUIOBJS%g | |
15183 | s%@COMMONOBJS@%$COMMONOBJS%g | |
15184 | s%@GENERICOBJS@%$GENERICOBJS%g | |
15185 | s%@GUIDEPS@%$GUIDEPS%g | |
15186 | s%@COMMONDEPS@%$COMMONDEPS%g | |
15187 | s%@GENERICDEPS@%$GENERICDEPS%g | |
15188 | s%@IODBCOBJS@%$IODBCOBJS%g | |
15189 | s%@UNIXOBJS@%$UNIXOBJS%g | |
15190 | s%@UNIXDEPS@%$UNIXDEPS%g | |
15191 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
15192 | s%@ALL_DEPFILES@%$ALL_DEPFILES%g | |
10f2d63a | 15193 | s%@GUIDIST@%$GUIDIST%g |
2224580a VZ |
15194 | s%@PORT_FILES@%$PORT_FILES%g |
15195 | s%@DISTDIR@%$DISTDIR%g | |
15196 | s%@RPM_SPEC@%$RPM_SPEC%g | |
15197 | s%@RPM_FILES@%$RPM_FILES%g | |
10f2d63a VZ |
15198 | s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g |
15199 | s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g | |
15200 | s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g | |
15201 | s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g | |
15202 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g | |
15203 | s%@USER_SUBDIRS@%$USER_SUBDIRS%g | |
15204 | s%@EXTRA_LIBS@%$EXTRA_LIBS%g | |
f6bcfd97 | 15205 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g |
b12915c1 | 15206 | s%@EXTRADEFS@%$EXTRADEFS%g |
10f2d63a | 15207 | s%@LD_LIBS@%$LD_LIBS%g |
32832908 VZ |
15208 | s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g |
15209 | s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g | |
15210 | s%@RESPROGRAM@%$RESPROGRAM%g | |
15211 | s%@RESCOMP@%$RESCOMP%g | |
15212 | s%@RESFLAGS@%$RESFLAGS%g | |
15213 | s%@DLLTOOL@%$DLLTOOL%g | |
15214 | s%@AS@%$AS%g | |
15215 | s%@NM@%$NM%g | |
15216 | s%@LD@%$LD%g | |
15217 | s%@MAKEINFO@%$MAKEINFO%g | |
10f2d63a | 15218 | s%@SET_MAKE@%$SET_MAKE%g |
2224580a | 15219 | s%@subdirs@%$subdirs%g |
10f2d63a VZ |
15220 | |
15221 | CEOF | |
15222 | EOF | |
15223 | ||
15224 | cat >> $CONFIG_STATUS <<\EOF | |
15225 | ||
15226 | # Split the substitutions into bite-sized pieces for seds with | |
15227 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
15228 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
15229 | ac_file=1 # Number of current file. | |
15230 | ac_beg=1 # First line for current file. | |
15231 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
15232 | ac_more_lines=: | |
15233 | ac_sed_cmds="" | |
15234 | while $ac_more_lines; do | |
15235 | if test $ac_beg -gt 1; then | |
15236 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
15237 | else | |
15238 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
15239 | fi | |
15240 | if test ! -s conftest.s$ac_file; then | |
15241 | ac_more_lines=false | |
15242 | rm -f conftest.s$ac_file | |
15243 | else | |
15244 | if test -z "$ac_sed_cmds"; then | |
15245 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
15246 | else | |
15247 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
15248 | fi | |
15249 | ac_file=`expr $ac_file + 1` | |
15250 | ac_beg=$ac_end | |
15251 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
15252 | fi | |
15253 | done | |
15254 | if test -z "$ac_sed_cmds"; then | |
15255 | ac_sed_cmds=cat | |
15256 | fi | |
15257 | EOF | |
15258 | ||
15259 | cat >> $CONFIG_STATUS <<EOF | |
15260 | ||
15261 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
15262 | src/make.env | |
15263 | src/makeprog.env | |
15264 | src/makelib.env | |
15265 | Makefile | |
10f2d63a VZ |
15266 | "} |
15267 | EOF | |
15268 | cat >> $CONFIG_STATUS <<\EOF | |
15269 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
15270 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
15271 | case "$ac_file" in | |
15272 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
15273 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
15274 | *) ac_file_in="${ac_file}.in" ;; | |
15275 | esac | |
15276 | ||
15277 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
15278 | ||
15279 | # Remove last slash and all that follows it. Not all systems have dirname. | |
15280 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
15281 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
15282 | # The file is in a subdirectory. | |
15283 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
15284 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
15285 | # A "../" for each directory in $ac_dir_suffix. | |
15286 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
15287 | else | |
15288 | ac_dir_suffix= ac_dots= | |
15289 | fi | |
15290 | ||
15291 | case "$ac_given_srcdir" in | |
15292 | .) srcdir=. | |
15293 | if test -z "$ac_dots"; then top_srcdir=. | |
15294 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
15295 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
15296 | *) # Relative path. | |
15297 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
15298 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
15299 | esac | |
15300 | ||
15301 | case "$ac_given_INSTALL" in | |
15302 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
15303 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
15304 | esac | |
15305 | ||
15306 | echo creating "$ac_file" | |
15307 | rm -f "$ac_file" | |
15308 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
15309 | case "$ac_file" in | |
15310 | *Makefile*) ac_comsub="1i\\ | |
15311 | # $configure_input" ;; | |
15312 | *) ac_comsub= ;; | |
15313 | esac | |
15314 | ||
15315 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
15316 | sed -e "$ac_comsub | |
15317 | s%@configure_input@%$configure_input%g | |
15318 | s%@srcdir@%$srcdir%g | |
15319 | s%@top_srcdir@%$top_srcdir%g | |
15320 | s%@INSTALL@%$INSTALL%g | |
15321 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
15322 | fi; done | |
15323 | rm -f conftest.s* | |
15324 | ||
15325 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
15326 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
15327 | # | |
15328 | # ac_d sets the value in "#define NAME VALUE" lines. | |
15329 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
15330 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
15331 | ac_dC='\3' | |
15332 | ac_dD='%g' | |
15333 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
15334 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
15335 | ac_uB='\([ ]\)%\1#\2define\3' | |
15336 | ac_uC=' ' | |
15337 | ac_uD='\4%g' | |
15338 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
15339 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
15340 | ac_eB='$%\1#\2define\3' | |
15341 | ac_eC=' ' | |
15342 | ac_eD='%g' | |
15343 | ||
15344 | if test "${CONFIG_HEADERS+set}" != set; then | |
15345 | EOF | |
15346 | cat >> $CONFIG_STATUS <<EOF | |
15347 | CONFIG_HEADERS="setup.h:setup.h.in" | |
15348 | EOF | |
15349 | cat >> $CONFIG_STATUS <<\EOF | |
15350 | fi | |
15351 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
15352 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
15353 | case "$ac_file" in | |
15354 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
15355 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
15356 | *) ac_file_in="${ac_file}.in" ;; | |
15357 | esac | |
15358 | ||
15359 | echo creating $ac_file | |
15360 | ||
15361 | rm -f conftest.frag conftest.in conftest.out | |
15362 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
15363 | cat $ac_file_inputs > conftest.in | |
15364 | ||
15365 | EOF | |
15366 | ||
15367 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
15368 | # the proper values into config.h.in to produce config.h. And first: | |
15369 | # Protect against being on the right side of a sed subst in config.status. | |
15370 | # Protect against being in an unquoted here document in config.status. | |
15371 | rm -f conftest.vals | |
15372 | cat > conftest.hdr <<\EOF | |
15373 | s/[\\&%]/\\&/g | |
15374 | s%[\\$`]%\\&%g | |
15375 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
15376 | s%ac_d%ac_u%gp | |
15377 | s%ac_u%ac_e%gp | |
15378 | EOF | |
15379 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
15380 | rm -f conftest.hdr | |
15381 | ||
15382 | # This sed command replaces #undef with comments. This is necessary, for | |
15383 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
15384 | # on some systems where configure will not decide to define it. | |
15385 | cat >> conftest.vals <<\EOF | |
15386 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
15387 | EOF | |
15388 | ||
15389 | # Break up conftest.vals because some shells have a limit on | |
15390 | # the size of here documents, and old seds have small limits too. | |
15391 | ||
15392 | rm -f conftest.tail | |
15393 | while : | |
15394 | do | |
15395 | ac_lines=`grep -c . conftest.vals` | |
15396 | # grep -c gives empty output for an empty file on some AIX systems. | |
15397 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
15398 | # Write a limited-size here document to conftest.frag. | |
15399 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
15400 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
15401 | echo 'CEOF | |
15402 | sed -f conftest.frag conftest.in > conftest.out | |
15403 | rm -f conftest.in | |
15404 | mv conftest.out conftest.in | |
15405 | ' >> $CONFIG_STATUS | |
15406 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
15407 | rm -f conftest.vals | |
15408 | mv conftest.tail conftest.vals | |
15409 | done | |
15410 | rm -f conftest.vals | |
15411 | ||
15412 | cat >> $CONFIG_STATUS <<\EOF | |
15413 | rm -f conftest.frag conftest.h | |
15414 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
15415 | cat conftest.in >> conftest.h | |
15416 | rm -f conftest.in | |
15417 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
15418 | echo "$ac_file is unchanged" | |
15419 | rm -f conftest.h | |
15420 | else | |
15421 | # Remove last slash and all that follows it. Not all systems have dirname. | |
15422 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
15423 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
15424 | # The file is in a subdirectory. | |
15425 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
15426 | fi | |
15427 | rm -f $ac_file | |
15428 | mv conftest.h $ac_file | |
15429 | fi | |
15430 | fi; done | |
15431 | ||
15432 | EOF | |
15433 | cat >> $CONFIG_STATUS <<EOF | |
15434 | ||
15435 | TOOLKIT_DIR="${TOOLKIT_DIR}" | |
f6bcfd97 | 15436 | TOOLKIT_NAME="${TOOLKIT_NAME}" |
07eb77a6 | 15437 | LN_S="${LN_S}" |
10f2d63a VZ |
15438 | |
15439 | ||
15440 | EOF | |
15441 | cat >> $CONFIG_STATUS <<\EOF | |
15442 | ||
15443 | chmod +x wx-config | |
f6bcfd97 BP |
15444 | mv wx-config wx${TOOLKIT_NAME}-config |
15445 | ${LN_S} wx${TOOLKIT_NAME}-config wx-config | |
00cf1208 RR |
15446 | |
15447 | ||
15448 | if test ! -d lib; then | |
15449 | mkdir lib | |
15450 | fi | |
15451 | if test ! -d lib/wx; then | |
15452 | mkdir lib/wx | |
15453 | fi | |
15454 | if test ! -d lib/wx/include; then | |
15455 | mkdir lib/wx/include | |
15456 | fi | |
15457 | if test ! -d lib/wx/include/wx; then | |
15458 | mkdir lib/wx/include/wx | |
15459 | fi | |
f6bcfd97 BP |
15460 | if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then |
15461 | mkdir lib/wx/include/wx/${TOOLKIT_NAME} | |
00cf1208 RR |
15462 | fi |
15463 | if test -f setup.h; then | |
f6bcfd97 | 15464 | cp -f setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h |
00cf1208 | 15465 | fi |
07eb77a6 | 15466 | |
00cf1208 | 15467 | |
10f2d63a VZ |
15468 | if test ! -d include; then |
15469 | mkdir include | |
15470 | fi | |
15471 | if test ! -d include/wx; then | |
15472 | mkdir include/wx | |
15473 | fi | |
15474 | if test ! -d include/wx/${TOOLKIT_DIR}; then | |
15475 | mkdir include/wx/${TOOLKIT_DIR} | |
15476 | fi | |
afc31813 VZ |
15477 | if test -f setup.h; then |
15478 | mv -f setup.h include/wx/${TOOLKIT_DIR}/setup.h | |
15479 | fi | |
00cf1208 | 15480 | |
10f2d63a VZ |
15481 | |
15482 | exit 0 | |
15483 | EOF | |
15484 | chmod +x $CONFIG_STATUS | |
15485 | rm -fr confdefs* $ac_clean_files | |
15486 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
15487 | ||
2224580a VZ |
15488 | if test "$no_recursion" != yes; then |
15489 | ||
15490 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
15491 | ac_sub_configure_args= | |
15492 | ac_prev= | |
15493 | for ac_arg in $ac_configure_args; do | |
15494 | if test -n "$ac_prev"; then | |
15495 | ac_prev= | |
15496 | continue | |
15497 | fi | |
15498 | case "$ac_arg" in | |
15499 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
15500 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
15501 | ac_prev=cache_file ;; | |
15502 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
15503 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
15504 | ;; | |
15505 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
15506 | ac_prev=srcdir ;; | |
15507 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
15508 | ;; | |
15509 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
15510 | esac | |
15511 | done | |
15512 | ||
e8482f24 | 15513 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
15514 | |
15515 | # Do not complain, so a configure script can configure whichever | |
15516 | # parts of a large source tree are present. | |
15517 | if test ! -d $srcdir/$ac_config_dir; then | |
15518 | continue | |
15519 | fi | |
15520 | ||
15521 | echo configuring in $ac_config_dir | |
15522 | ||
15523 | case "$srcdir" in | |
15524 | .) ;; | |
15525 | *) | |
15526 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; | |
15527 | else | |
15528 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
15529 | fi | |
15530 | ;; | |
15531 | esac | |
15532 | ||
15533 | ac_popdir=`pwd` | |
15534 | cd $ac_config_dir | |
15535 | ||
15536 | # A "../" for each directory in /$ac_config_dir. | |
15537 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
15538 | ||
15539 | case "$srcdir" in | |
15540 | .) # No --srcdir option. We are building in place. | |
15541 | ac_sub_srcdir=$srcdir ;; | |
15542 | /*) # Absolute path. | |
15543 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
15544 | *) # Relative path. | |
15545 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; | |
15546 | esac | |
15547 | ||
15548 | # Check for guested configure; otherwise get Cygnus style configure. | |
15549 | if test -f $ac_sub_srcdir/configure; then | |
15550 | ac_sub_configure=$ac_sub_srcdir/configure | |
15551 | elif test -f $ac_sub_srcdir/configure.in; then | |
15552 | ac_sub_configure=$ac_configure | |
15553 | else | |
15554 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 | |
15555 | ac_sub_configure= | |
15556 | fi | |
15557 | ||
15558 | # The recursion is here. | |
15559 | if test -n "$ac_sub_configure"; then | |
15560 | ||
15561 | # Make the cache file name correct relative to the subdirectory. | |
15562 | case "$cache_file" in | |
15563 | /*) ac_sub_cache_file=$cache_file ;; | |
15564 | *) # Relative path. | |
15565 | ac_sub_cache_file="$ac_dots$cache_file" ;; | |
15566 | esac | |
15567 | case "$ac_given_INSTALL" in | |
15568 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
15569 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
15570 | esac | |
15571 | ||
15572 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" | |
15573 | # The eval makes quoting arguments work. | |
15574 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir | |
15575 | then : | |
15576 | else | |
15577 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
15578 | fi | |
15579 | fi | |
15580 | ||
15581 | cd $ac_popdir | |
15582 | done | |
15583 | fi | |
15584 | ||
10f2d63a | 15585 |