]>
Commit | Line | Data |
---|---|---|
10f2d63a VZ |
1 | #! /bin/sh |
2 | ||
698dcdb6 | 3 | # From configure.in Id: configure.in |
703e0a69 VZ |
4 | |
5 | ||
6 | ||
7 | ||
8 | ||
703e0a69 VZ |
9 | |
10 | ||
1e487827 | 11 | |
1e487827 | 12 | |
698dcdb6 VZ |
13 | |
14 | ||
15 | ||
16 | ||
17 | ||
18 | ||
19 | ||
20 | ||
21 | ||
22 | ||
23 | ||
24 | ||
25 | ||
26 | ||
27 | ||
28 | ||
29 | ||
30 | ||
31 | ||
32 | ||
33 | ||
34 | ||
35 | ||
36 | ||
37 | ||
38 | ||
39 | ||
40 | ||
41 | ||
42 | # Configure paths for GTK+ | |
43 | # Owen Taylor 97-11-3 | |
44 | ||
45 | ||
46 | # Guess values for system-dependent variables and create Makefiles. | |
47 | # Generated automatically using autoconf version 2.13 | |
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-mac use Mac OS X" | |
65 | ac_help="$ac_help | |
66 | --with-wine use WINE" | |
67 | ac_help="$ac_help | |
68 | --with-cygwin use Cygwin for MS-Windows" | |
69 | ac_help="$ac_help | |
70 | --with-mingw use GCC Minimal MS-Windows" | |
71 | ac_help="$ac_help | |
72 | --with-pm use OS/2 Presentation Manager" | |
73 | ac_help="$ac_help | |
74 | --with-gtk-prefix=PFX Prefix where GTK is installed" | |
75 | ac_help="$ac_help | |
76 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed" | |
77 | ac_help="$ac_help | |
78 | --with-libpng use libpng (PNG image format)" | |
79 | ac_help="$ac_help | |
80 | --with-libjpeg use libjpeg (JPEG file format)" | |
81 | ac_help="$ac_help | |
82 | --with-libtiff use libtiff (TIFF file format)" | |
83 | ac_help="$ac_help | |
84 | --with-freetype use freetype (font rasterizer)" | |
85 | ac_help="$ac_help | |
86 | --with-opengl use OpenGL (or Mesa)" | |
87 | ac_help="$ac_help | |
88 | --with-dmalloc use dmalloc library (www.letters.com/dmalloc)" | |
89 | ac_help="$ac_help | |
90 | --with-zlib use zlib for LZW compression" | |
91 | ac_help="$ac_help | |
92 | --with-odbc use the IODBC and wxODBC classes" | |
93 | ac_help="$ac_help | |
94 | --enable-shared create shared library code" | |
95 | ac_help="$ac_help | |
96 | --enable-burnt_name create set name in shared library " | |
97 | ac_help="$ac_help | |
98 | --enable-optimise create optimised code" | |
99 | ac_help="$ac_help | |
100 | --enable-debug same as debug_flag and debug_info" | |
101 | ac_help="$ac_help | |
102 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" | |
103 | ac_help="$ac_help | |
104 | --enable-debug_info create code with debugging information" | |
105 | ac_help="$ac_help | |
106 | --enable-debug_gdb create code with extra GDB debugging information" | |
107 | ac_help="$ac_help | |
108 | --enable-debug_cntxt use wxDebugContext" | |
109 | ac_help="$ac_help | |
110 | --enable-mem_tracing create code with memory tracing" | |
111 | ac_help="$ac_help | |
112 | --enable-profile create code with profiling information" | |
113 | ac_help="$ac_help | |
114 | --enable-no_rtti create code without RTTI information" | |
115 | ac_help="$ac_help | |
116 | --enable-no_exceptions create code without exceptions information" | |
117 | ac_help="$ac_help | |
118 | --enable-permissive compile code disregarding strict ANSI" | |
119 | ac_help="$ac_help | |
120 | --enable-no_deps create code without dependency information" | |
121 | ac_help="$ac_help | |
122 | --enable-intl use internationalization system" | |
123 | ac_help="$ac_help | |
124 | --enable-config use wxConfig (and derived) classes" | |
125 | ac_help="$ac_help | |
126 | --enable-sockets use socket/network classes" | |
127 | ac_help="$ac_help | |
128 | --enable-ipc use interprocess communication (wxSocket etc.)" | |
129 | ac_help="$ac_help | |
130 | --enable-dialupman use dialup network classes" | |
131 | ac_help="$ac_help | |
132 | --enable-apple_ieee use the Apple IEEE codec" | |
133 | ac_help="$ac_help | |
134 | --enable-timedate use date/time classes" | |
135 | ac_help="$ac_help | |
136 | --enable-wave use wxWave class" | |
137 | ac_help="$ac_help | |
138 | --enable-fraction use wxFraction class" | |
139 | ac_help="$ac_help | |
140 | --enable-dynlib use wxLibrary class for DLL loading" | |
141 | ac_help="$ac_help | |
142 | --enable-longlong use wxLongLong class" | |
143 | ac_help="$ac_help | |
144 | --enable-geometry use geometry class" | |
145 | ac_help="$ac_help | |
146 | --enable-log use logging system" | |
147 | ac_help="$ac_help | |
148 | --enable-streams use wxStream etc classes" | |
149 | ac_help="$ac_help | |
150 | --enable-file use wxFile classes" | |
151 | ac_help="$ac_help | |
152 | --enable-textfile use wxTextFile classes" | |
153 | ac_help="$ac_help | |
154 | --enable-unicode compile wxString with Unicode support" | |
155 | ac_help="$ac_help | |
156 | --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs" | |
157 | ac_help="$ac_help | |
158 | --enable-wxprintfv use wxWindows implementation of vprintf()" | |
159 | ac_help="$ac_help | |
160 | --enable-std_iostreams use standard C++ stream classes" | |
161 | ac_help="$ac_help | |
162 | --enable-filesystem use virtual file systems classes" | |
163 | ac_help="$ac_help | |
164 | --enable-fs_inet use virtual HTTP/FTP filesystems" | |
165 | ac_help="$ac_help | |
166 | --enable-fs_zip use virtual ZIP filesystems" | |
167 | ac_help="$ac_help | |
168 | --enable-zipstream use wxZipInputStream" | |
169 | ac_help="$ac_help | |
170 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException" | |
171 | ac_help="$ac_help | |
172 | --enable-snglinst use wxSingleInstanceChecker class" | |
173 | ac_help="$ac_help | |
174 | --enable-threads use threads" | |
175 | ac_help="$ac_help | |
176 | --enable-serial use class serialization" | |
177 | ac_help="$ac_help | |
178 | --enable-docview use document view architecture" | |
179 | ac_help="$ac_help | |
180 | --enable-help use help (using external browser at present)" | |
181 | ac_help="$ac_help | |
182 | --enable-constraints use layout-constraints system" | |
183 | ac_help="$ac_help | |
184 | --enable-printarch use printing architecture" | |
185 | ac_help="$ac_help | |
186 | --enable-mdi use multiple document interface architecture" | |
187 | ac_help="$ac_help | |
188 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" | |
189 | ac_help="$ac_help | |
190 | --enable-prologio use Prolog IO library" | |
191 | ac_help="$ac_help | |
192 | --enable-resources use wxWindows resources" | |
193 | ac_help="$ac_help | |
194 | --enable-xresources use X resources for save (default for gtk+)" | |
195 | ac_help="$ac_help | |
196 | --enable-clipboard use wxClipboard classes" | |
197 | ac_help="$ac_help | |
198 | --enable-dnd use Drag'n'Drop classes" | |
199 | ac_help="$ac_help | |
200 | --enable-metafile use win32 metafiles" | |
201 | ac_help="$ac_help | |
202 | --enable-wxtree make wxTree library" | |
203 | ac_help="$ac_help | |
204 | --enable-controls use all usual controls" | |
205 | ac_help="$ac_help | |
206 | --enable-accel use accelerators" | |
207 | ac_help="$ac_help | |
208 | --enable-caret use wxCaret class" | |
209 | ac_help="$ac_help | |
210 | --enable-bmpbutton use wxBitmapButton class" | |
211 | ac_help="$ac_help | |
212 | --enable-checkbox use wxCheckBox class" | |
213 | ac_help="$ac_help | |
214 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" | |
215 | ac_help="$ac_help | |
216 | --enable-choice use wxChoice class" | |
217 | ac_help="$ac_help | |
218 | --enable-combobox use wxComboBox classes" | |
219 | ac_help="$ac_help | |
220 | --enable-gauge use wxGauge class" | |
221 | ac_help="$ac_help | |
222 | --enable-grid use wxGrid class" | |
223 | ac_help="$ac_help | |
224 | --enable-newgrid use new wxGrid class" | |
225 | ac_help="$ac_help | |
226 | --enable-imaglist use wxImageList class" | |
227 | ac_help="$ac_help | |
228 | --enable-listbox use wxListBox class" | |
229 | ac_help="$ac_help | |
230 | --enable-listctrl use wxListCtrl class" | |
231 | ac_help="$ac_help | |
232 | --enable-notebook use wxNotebook class" | |
233 | ac_help="$ac_help | |
234 | --enable-radiobox use wxRadioBox class" | |
235 | ac_help="$ac_help | |
236 | --enable-radiobtn use wxRadioButton class" | |
237 | ac_help="$ac_help | |
238 | --enable-sash use wxSashWindow class" | |
239 | ac_help="$ac_help | |
240 | --enable-scrollbar use wxScrollBar class and scrollable windows" | |
241 | ac_help="$ac_help | |
242 | --enable-slider use wxSlider class" | |
243 | ac_help="$ac_help | |
244 | --enable-spinbtn use wxSpinButton class" | |
245 | ac_help="$ac_help | |
246 | --enable-spinctrl use wxSpinCtrl class" | |
247 | ac_help="$ac_help | |
248 | --enable-splitter use wxSplitterWindow class" | |
249 | ac_help="$ac_help | |
250 | --enable-statbmp use wxStaticBitmap class" | |
251 | ac_help="$ac_help | |
252 | --enable-statbox use wxStaticBox class" | |
253 | ac_help="$ac_help | |
254 | --enable-statline use wxStaticLine class" | |
255 | ac_help="$ac_help | |
256 | --enable-statusbar use wxStatusBar class" | |
257 | ac_help="$ac_help | |
258 | --enable-tabdialog use wxTabControl class" | |
259 | ac_help="$ac_help | |
260 | --enable-togglebtn use wxToggleButton class" | |
261 | ac_help="$ac_help | |
262 | --enable-toolbar use wxToolBar class" | |
263 | ac_help="$ac_help | |
264 | --enable-tbarnative use native wxToolBar class" | |
265 | ac_help="$ac_help | |
266 | --enable-tbarsmpl use wxToolBarSimple class" | |
267 | ac_help="$ac_help | |
268 | --enable-treectrl use wxTreeCtrl class" | |
269 | ac_help="$ac_help | |
270 | --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)" | |
271 | ac_help="$ac_help | |
272 | --enable-dirdlg use wxDirDialog" | |
273 | ac_help="$ac_help | |
274 | --enable-textdlg use wxTextDialog" | |
275 | ac_help="$ac_help | |
276 | --enable-tipdlg use startup tips" | |
277 | ac_help="$ac_help | |
278 | --enable-progressdlg use wxProgressDialog" | |
279 | ac_help="$ac_help | |
280 | --enable-miniframe use wxMiniFrame class" | |
281 | ac_help="$ac_help | |
282 | --enable-html use wxHTML sub-library" | |
283 | ac_help="$ac_help | |
284 | --enable-tooltips use wxToolTip class" | |
285 | ac_help="$ac_help | |
286 | --enable-splines use spline drawing code" | |
287 | ac_help="$ac_help | |
288 | --enable-validators use wxValidator and derived classes" | |
289 | ac_help="$ac_help | |
290 | --enable-busyinfo use wxBusyInfo" | |
291 | ac_help="$ac_help | |
292 | --enable-joystick compile in joystick support (Linux only)" | |
293 | ac_help="$ac_help | |
294 | --enable-image use wxImage class" | |
295 | ac_help="$ac_help | |
296 | --enable-gif use gif images (GIF file format)" | |
297 | ac_help="$ac_help | |
298 | --enable-pcx use pcx images (PCX file format)" | |
299 | ac_help="$ac_help | |
300 | --enable-pnm use pnm images (PNM file format)" | |
301 | ac_help="$ac_help | |
302 | --enable-xpm use xpm images (XPM file format)" | |
303 | ac_help="$ac_help | |
304 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
305 | ac_help="$ac_help | |
306 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
307 | ac_help="$ac_help | |
308 | --disable-gtktest Do not try to compile and run a test GTK program" | |
309 | ac_help="$ac_help | |
310 | --with-x use the X Window System" | |
10f2d63a VZ |
311 | |
312 | # Initialize some variables set by options. | |
313 | # The variables have the same names as the options, with | |
314 | # dashes changed to underlines. | |
698dcdb6 VZ |
315 | build=NONE |
316 | cache_file=./config.cache | |
10f2d63a | 317 | exec_prefix=NONE |
698dcdb6 | 318 | host=NONE |
10f2d63a | 319 | no_create= |
698dcdb6 | 320 | nonopt=NONE |
10f2d63a VZ |
321 | no_recursion= |
322 | prefix=NONE | |
323 | program_prefix=NONE | |
324 | program_suffix=NONE | |
325 | program_transform_name=s,x,x, | |
326 | silent= | |
327 | site= | |
328 | srcdir= | |
698dcdb6 | 329 | target=NONE |
10f2d63a VZ |
330 | verbose= |
331 | x_includes=NONE | |
332 | x_libraries=NONE | |
333 | bindir='${exec_prefix}/bin' | |
334 | sbindir='${exec_prefix}/sbin' | |
335 | libexecdir='${exec_prefix}/libexec' | |
336 | datadir='${prefix}/share' | |
337 | sysconfdir='${prefix}/etc' | |
338 | sharedstatedir='${prefix}/com' | |
339 | localstatedir='${prefix}/var' | |
340 | libdir='${exec_prefix}/lib' | |
341 | includedir='${prefix}/include' | |
342 | oldincludedir='/usr/include' | |
343 | infodir='${prefix}/info' | |
344 | mandir='${prefix}/man' | |
345 | ||
698dcdb6 VZ |
346 | # Initialize some other variables. |
347 | subdirs= | |
348 | MFLAGS= MAKEFLAGS= | |
349 | SHELL=${CONFIG_SHELL-/bin/sh} | |
350 | # Maximum number of lines to put in a shell here document. | |
351 | ac_max_here_lines=12 | |
10f2d63a VZ |
352 | |
353 | ac_prev= | |
354 | for ac_option | |
355 | do | |
698dcdb6 | 356 | |
10f2d63a VZ |
357 | # If the previous option needs an argument, assign it. |
358 | if test -n "$ac_prev"; then | |
359 | eval "$ac_prev=\$ac_option" | |
360 | ac_prev= | |
361 | continue | |
362 | fi | |
363 | ||
698dcdb6 VZ |
364 | case "$ac_option" in |
365 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
366 | *) ac_optarg= ;; | |
367 | esac | |
10f2d63a VZ |
368 | |
369 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
370 | ||
698dcdb6 | 371 | case "$ac_option" in |
10f2d63a VZ |
372 | |
373 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
374 | ac_prev=bindir ;; | |
375 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
698dcdb6 | 376 | bindir="$ac_optarg" ;; |
10f2d63a VZ |
377 | |
378 | -build | --build | --buil | --bui | --bu) | |
698dcdb6 | 379 | ac_prev=build ;; |
10f2d63a | 380 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
698dcdb6 | 381 | build="$ac_optarg" ;; |
10f2d63a VZ |
382 | |
383 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
384 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
385 | ac_prev=cache_file ;; | |
386 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
387 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
698dcdb6 | 388 | cache_file="$ac_optarg" ;; |
10f2d63a VZ |
389 | |
390 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
391 | ac_prev=datadir ;; | |
392 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
393 | | --da=*) | |
698dcdb6 | 394 | datadir="$ac_optarg" ;; |
10f2d63a VZ |
395 | |
396 | -disable-* | --disable-*) | |
698dcdb6 | 397 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
10f2d63a | 398 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
399 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
400 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
401 | fi | |
402 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
403 | eval "enable_${ac_feature}=no" ;; | |
10f2d63a VZ |
404 | |
405 | -enable-* | --enable-*) | |
698dcdb6 | 406 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
10f2d63a | 407 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
408 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
409 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
410 | fi | |
411 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
412 | case "$ac_option" in | |
413 | *=*) ;; | |
10f2d63a VZ |
414 | *) ac_optarg=yes ;; |
415 | esac | |
698dcdb6 | 416 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
10f2d63a VZ |
417 | |
418 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
419 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
420 | | --exec | --exe | --ex) | |
421 | ac_prev=exec_prefix ;; | |
422 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
423 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
424 | | --exec=* | --exe=* | --ex=*) | |
698dcdb6 | 425 | exec_prefix="$ac_optarg" ;; |
10f2d63a VZ |
426 | |
427 | -gas | --gas | --ga | --g) | |
428 | # Obsolete; use --with-gas. | |
429 | with_gas=yes ;; | |
430 | ||
698dcdb6 VZ |
431 | -help | --help | --hel | --he) |
432 | # Omit some internal or obsolete options to make the list less imposing. | |
433 | # This message is too long to be a string in the A/UX 3.1 sh. | |
434 | cat << EOF | |
435 | Usage: configure [options] [host] | |
436 | Options: [defaults in brackets after descriptions] | |
437 | Configuration: | |
438 | --cache-file=FILE cache test results in FILE | |
439 | --help print this message | |
440 | --no-create do not create output files | |
441 | --quiet, --silent do not print \`checking...' messages | |
442 | --version print the version of autoconf that created configure | |
443 | Directory and file names: | |
444 | --prefix=PREFIX install architecture-independent files in PREFIX | |
445 | [$ac_default_prefix] | |
446 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
447 | [same as prefix] | |
448 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
449 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
450 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
451 | --datadir=DIR read-only architecture-independent data in DIR | |
452 | [PREFIX/share] | |
453 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
454 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
455 | [PREFIX/com] | |
456 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
457 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
458 | --includedir=DIR C header files in DIR [PREFIX/include] | |
459 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
460 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
461 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
462 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
463 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
464 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
465 | --program-transform-name=PROGRAM | |
466 | run sed PROGRAM on installed program names | |
467 | EOF | |
468 | cat << EOF | |
469 | Host type: | |
470 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
471 | --host=HOST configure for HOST [guessed] | |
472 | --target=TARGET configure for TARGET [TARGET=HOST] | |
473 | Features and packages: | |
474 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
475 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
476 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
477 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
478 | --x-includes=DIR X include files are in DIR | |
479 | --x-libraries=DIR X library files are in DIR | |
480 | EOF | |
481 | if test -n "$ac_help"; then | |
482 | echo "--enable and --with options recognized:$ac_help" | |
483 | fi | |
484 | exit 0 ;; | |
10f2d63a VZ |
485 | |
486 | -host | --host | --hos | --ho) | |
698dcdb6 | 487 | ac_prev=host ;; |
10f2d63a | 488 | -host=* | --host=* | --hos=* | --ho=*) |
698dcdb6 | 489 | host="$ac_optarg" ;; |
10f2d63a VZ |
490 | |
491 | -includedir | --includedir | --includedi | --included | --include \ | |
492 | | --includ | --inclu | --incl | --inc) | |
493 | ac_prev=includedir ;; | |
494 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
495 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
698dcdb6 | 496 | includedir="$ac_optarg" ;; |
10f2d63a VZ |
497 | |
498 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
499 | ac_prev=infodir ;; | |
500 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
698dcdb6 | 501 | infodir="$ac_optarg" ;; |
10f2d63a VZ |
502 | |
503 | -libdir | --libdir | --libdi | --libd) | |
504 | ac_prev=libdir ;; | |
505 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
698dcdb6 | 506 | libdir="$ac_optarg" ;; |
10f2d63a VZ |
507 | |
508 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
509 | | --libexe | --libex | --libe) | |
510 | ac_prev=libexecdir ;; | |
511 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
512 | | --libexe=* | --libex=* | --libe=*) | |
698dcdb6 | 513 | libexecdir="$ac_optarg" ;; |
10f2d63a VZ |
514 | |
515 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
516 | | --localstate | --localstat | --localsta | --localst \ | |
517 | | --locals | --local | --loca | --loc | --lo) | |
518 | ac_prev=localstatedir ;; | |
519 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
520 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
521 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
698dcdb6 | 522 | localstatedir="$ac_optarg" ;; |
10f2d63a VZ |
523 | |
524 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
525 | ac_prev=mandir ;; | |
526 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
698dcdb6 | 527 | mandir="$ac_optarg" ;; |
10f2d63a VZ |
528 | |
529 | -nfp | --nfp | --nf) | |
530 | # Obsolete; use --without-fp. | |
531 | with_fp=no ;; | |
532 | ||
533 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
534 | | --no-cr | --no-c) | |
535 | no_create=yes ;; | |
536 | ||
537 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
538 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
539 | no_recursion=yes ;; | |
540 | ||
541 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
542 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
543 | | --oldin | --oldi | --old | --ol | --o) | |
544 | ac_prev=oldincludedir ;; | |
545 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
546 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
547 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
698dcdb6 | 548 | oldincludedir="$ac_optarg" ;; |
10f2d63a VZ |
549 | |
550 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
551 | ac_prev=prefix ;; | |
552 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
698dcdb6 | 553 | prefix="$ac_optarg" ;; |
10f2d63a VZ |
554 | |
555 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
556 | | --program-pre | --program-pr | --program-p) | |
557 | ac_prev=program_prefix ;; | |
558 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
559 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
698dcdb6 | 560 | program_prefix="$ac_optarg" ;; |
10f2d63a VZ |
561 | |
562 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
563 | | --program-suf | --program-su | --program-s) | |
564 | ac_prev=program_suffix ;; | |
565 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
566 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
698dcdb6 | 567 | program_suffix="$ac_optarg" ;; |
10f2d63a VZ |
568 | |
569 | -program-transform-name | --program-transform-name \ | |
570 | | --program-transform-nam | --program-transform-na \ | |
571 | | --program-transform-n | --program-transform- \ | |
572 | | --program-transform | --program-transfor \ | |
573 | | --program-transfo | --program-transf \ | |
574 | | --program-trans | --program-tran \ | |
575 | | --progr-tra | --program-tr | --program-t) | |
576 | ac_prev=program_transform_name ;; | |
577 | -program-transform-name=* | --program-transform-name=* \ | |
578 | | --program-transform-nam=* | --program-transform-na=* \ | |
579 | | --program-transform-n=* | --program-transform-=* \ | |
580 | | --program-transform=* | --program-transfor=* \ | |
581 | | --program-transfo=* | --program-transf=* \ | |
582 | | --program-trans=* | --program-tran=* \ | |
583 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
698dcdb6 | 584 | program_transform_name="$ac_optarg" ;; |
10f2d63a VZ |
585 | |
586 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
587 | | -silent | --silent | --silen | --sile | --sil) | |
588 | silent=yes ;; | |
589 | ||
590 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
591 | ac_prev=sbindir ;; | |
592 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
593 | | --sbi=* | --sb=*) | |
698dcdb6 | 594 | sbindir="$ac_optarg" ;; |
10f2d63a VZ |
595 | |
596 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
597 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
598 | | --sharedst | --shareds | --shared | --share | --shar \ | |
599 | | --sha | --sh) | |
600 | ac_prev=sharedstatedir ;; | |
601 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
602 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
603 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
604 | | --sha=* | --sh=*) | |
698dcdb6 | 605 | sharedstatedir="$ac_optarg" ;; |
10f2d63a VZ |
606 | |
607 | -site | --site | --sit) | |
608 | ac_prev=site ;; | |
609 | -site=* | --site=* | --sit=*) | |
698dcdb6 | 610 | site="$ac_optarg" ;; |
10f2d63a VZ |
611 | |
612 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
613 | ac_prev=srcdir ;; | |
614 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
698dcdb6 | 615 | srcdir="$ac_optarg" ;; |
10f2d63a VZ |
616 | |
617 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
618 | | --syscon | --sysco | --sysc | --sys | --sy) | |
619 | ac_prev=sysconfdir ;; | |
620 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
621 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
698dcdb6 | 622 | sysconfdir="$ac_optarg" ;; |
10f2d63a VZ |
623 | |
624 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
698dcdb6 | 625 | ac_prev=target ;; |
10f2d63a | 626 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
698dcdb6 | 627 | target="$ac_optarg" ;; |
10f2d63a VZ |
628 | |
629 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
630 | verbose=yes ;; | |
631 | ||
698dcdb6 VZ |
632 | -version | --version | --versio | --versi | --vers) |
633 | echo "configure generated by autoconf version 2.13" | |
634 | exit 0 ;; | |
10f2d63a VZ |
635 | |
636 | -with-* | --with-*) | |
698dcdb6 | 637 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
10f2d63a | 638 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
639 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
640 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
641 | fi | |
10f2d63a | 642 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
698dcdb6 VZ |
643 | case "$ac_option" in |
644 | *=*) ;; | |
10f2d63a VZ |
645 | *) ac_optarg=yes ;; |
646 | esac | |
698dcdb6 | 647 | eval "with_${ac_package}='$ac_optarg'" ;; |
10f2d63a VZ |
648 | |
649 | -without-* | --without-*) | |
698dcdb6 | 650 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
10f2d63a | 651 | # Reject names that are not valid shell variable names. |
698dcdb6 VZ |
652 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
653 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
654 | fi | |
655 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
656 | eval "with_${ac_package}=no" ;; | |
10f2d63a VZ |
657 | |
658 | --x) | |
659 | # Obsolete; use --with-x. | |
660 | with_x=yes ;; | |
661 | ||
662 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
663 | | --x-incl | --x-inc | --x-in | --x-i) | |
664 | ac_prev=x_includes ;; | |
665 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
666 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
698dcdb6 | 667 | x_includes="$ac_optarg" ;; |
10f2d63a VZ |
668 | |
669 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
670 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
671 | ac_prev=x_libraries ;; | |
672 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
673 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
698dcdb6 | 674 | x_libraries="$ac_optarg" ;; |
10f2d63a | 675 | |
698dcdb6 | 676 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
10f2d63a VZ |
677 | ;; |
678 | ||
679 | *) | |
698dcdb6 VZ |
680 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
681 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
682 | fi | |
683 | if test "x$nonopt" != xNONE; then | |
684 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
685 | fi | |
686 | nonopt="$ac_option" | |
10f2d63a VZ |
687 | ;; |
688 | ||
689 | esac | |
690 | done | |
691 | ||
692 | if test -n "$ac_prev"; then | |
698dcdb6 VZ |
693 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
694 | fi | |
695 | ||
696 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
697 | ||
698 | # File descriptor usage: | |
699 | # 0 standard input | |
700 | # 1 file creation | |
701 | # 2 errors and warnings | |
702 | # 3 some systems may open it to /dev/tty | |
703 | # 4 used on the Kubota Titan | |
704 | # 6 checking for... messages and results | |
705 | # 5 compiler messages saved in config.log | |
706 | if test "$silent" = yes; then | |
707 | exec 6>/dev/null | |
708 | else | |
709 | exec 6>&1 | |
10f2d63a | 710 | fi |
698dcdb6 VZ |
711 | exec 5>./config.log |
712 | ||
713 | echo "\ | |
714 | This file contains any messages produced by compilers while | |
715 | running configure, to aid debugging if configure makes a mistake. | |
716 | " 1>&5 | |
10f2d63a | 717 | |
698dcdb6 VZ |
718 | # Strip out --no-create and --no-recursion so they do not pile up. |
719 | # Also quote any args containing shell metacharacters. | |
720 | ac_configure_args= | |
721 | for ac_arg | |
10f2d63a | 722 | do |
698dcdb6 VZ |
723 | case "$ac_arg" in |
724 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
725 | | --no-cr | --no-c) ;; | |
726 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
727 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
728 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
729 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
730 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
10f2d63a VZ |
731 | esac |
732 | done | |
733 | ||
698dcdb6 VZ |
734 | # NLS nuisances. |
735 | # Only set these to C if already set. These must not be set unconditionally | |
736 | # because not all systems understand e.g. LANG=C (notably SCO). | |
737 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
738 | # Non-C LC_CTYPE values break the ctype check. | |
739 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
740 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
741 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
742 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
10f2d63a | 743 | |
698dcdb6 VZ |
744 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
745 | rm -rf conftest* confdefs.h | |
746 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
747 | echo > confdefs.h | |
10f2d63a | 748 | |
698dcdb6 VZ |
749 | # A filename unique to this package, relative to the directory that |
750 | # configure is in, which we can look for to find out if srcdir is correct. | |
751 | ac_unique_file=wx-config.in | |
10f2d63a VZ |
752 | |
753 | # Find the source files, if location was not specified. | |
754 | if test -z "$srcdir"; then | |
755 | ac_srcdir_defaulted=yes | |
756 | # Try the directory containing this script, then its parent. | |
757 | ac_prog=$0 | |
698dcdb6 | 758 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
10f2d63a VZ |
759 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
760 | srcdir=$ac_confdir | |
761 | if test ! -r $srcdir/$ac_unique_file; then | |
762 | srcdir=.. | |
763 | fi | |
764 | else | |
765 | ac_srcdir_defaulted=no | |
766 | fi | |
767 | if test ! -r $srcdir/$ac_unique_file; then | |
768 | if test "$ac_srcdir_defaulted" = yes; then | |
698dcdb6 | 769 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
10f2d63a | 770 | else |
698dcdb6 | 771 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
10f2d63a VZ |
772 | fi |
773 | fi | |
698dcdb6 | 774 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
10f2d63a VZ |
775 | |
776 | # Prefer explicitly selected file to automatically selected ones. | |
777 | if test -z "$CONFIG_SITE"; then | |
778 | if test "x$prefix" != xNONE; then | |
779 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
780 | else | |
781 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
782 | fi | |
783 | fi | |
784 | for ac_site_file in $CONFIG_SITE; do | |
785 | if test -r "$ac_site_file"; then | |
698dcdb6 | 786 | echo "loading site script $ac_site_file" |
10f2d63a VZ |
787 | . "$ac_site_file" |
788 | fi | |
789 | done | |
790 | ||
791 | if test -r "$cache_file"; then | |
698dcdb6 VZ |
792 | echo "loading cache $cache_file" |
793 | . $cache_file | |
10f2d63a | 794 | else |
698dcdb6 VZ |
795 | echo "creating cache $cache_file" |
796 | > $cache_file | |
10f2d63a VZ |
797 | fi |
798 | ||
799 | ac_ext=c | |
698dcdb6 | 800 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 801 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
802 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
803 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
804 | cross_compiling=$ac_cv_prog_cc_cross | |
805 | ||
806 | ac_exeext= | |
807 | ac_objext=o | |
808 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
809 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
810 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
811 | ac_n= ac_c=' | |
812 | ' ac_t=' ' | |
813 | else | |
814 | ac_n=-n ac_c= ac_t= | |
815 | fi | |
10f2d63a | 816 | else |
698dcdb6 | 817 | ac_n= ac_c='\c' ac_t= |
10f2d63a | 818 | fi |
698dcdb6 VZ |
819 | |
820 | ||
10f2d63a | 821 | |
7c66a493 VZ |
822 | ac_aux_dir= |
823 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
824 | if test -f $ac_dir/install-sh; then | |
825 | ac_aux_dir=$ac_dir | |
826 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
827 | break | |
828 | elif test -f $ac_dir/install.sh; then | |
829 | ac_aux_dir=$ac_dir | |
830 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
831 | break | |
832 | fi | |
833 | done | |
834 | if test -z "$ac_aux_dir"; then | |
698dcdb6 | 835 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
7c66a493 | 836 | fi |
698dcdb6 VZ |
837 | ac_config_guess=$ac_aux_dir/config.guess |
838 | ac_config_sub=$ac_aux_dir/config.sub | |
839 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
703e0a69 | 840 | |
698dcdb6 VZ |
841 | |
842 | # Do some error checking and defaulting for the host and target type. | |
843 | # The inputs are: | |
844 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
845 | # | |
846 | # The rules are: | |
847 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
848 | # same time. | |
849 | # 2. Host defaults to nonopt. | |
850 | # 3. If nonopt is not specified, then host defaults to the current host, | |
851 | # as determined by config.guess. | |
852 | # 4. Target and build default to nonopt. | |
853 | # 5. If nonopt is not specified, then target and build default to host. | |
7c66a493 VZ |
854 | |
855 | # The aliases save the names the user supplied, while $host etc. | |
856 | # will get canonicalized. | |
698dcdb6 VZ |
857 | case $host---$target---$nonopt in |
858 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
859 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
860 | esac | |
861 | ||
862 | ||
863 | # Make sure we can run config.sub. | |
864 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
865 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
866 | fi | |
867 | ||
868 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
869 | echo "configure:870: checking host system type" >&5 | |
870 | ||
871 | host_alias=$host | |
872 | case "$host_alias" in | |
873 | NONE) | |
874 | case $nonopt in | |
875 | NONE) | |
876 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
877 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
878 | fi ;; | |
879 | *) host_alias=$nonopt ;; | |
880 | esac ;; | |
881 | esac | |
882 | ||
883 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
884 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
885 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
886 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
887 | echo "$ac_t""$host" 1>&6 | |
888 | ||
889 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
890 | echo "configure:891: checking target system type" >&5 | |
891 | ||
892 | target_alias=$target | |
893 | case "$target_alias" in | |
894 | NONE) | |
895 | case $nonopt in | |
896 | NONE) target_alias=$host_alias ;; | |
897 | *) target_alias=$nonopt ;; | |
898 | esac ;; | |
899 | esac | |
900 | ||
901 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
902 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
903 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
904 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
905 | echo "$ac_t""$target" 1>&6 | |
906 | ||
907 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
908 | echo "configure:909: checking build system type" >&5 | |
909 | ||
910 | build_alias=$build | |
911 | case "$build_alias" in | |
912 | NONE) | |
913 | case $nonopt in | |
914 | NONE) build_alias=$host_alias ;; | |
915 | *) build_alias=$nonopt ;; | |
916 | esac ;; | |
917 | esac | |
918 | ||
919 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
920 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
921 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
922 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
923 | echo "$ac_t""$build" 1>&6 | |
924 | ||
925 | test "$host_alias" != "$target_alias" && | |
7c66a493 VZ |
926 | test "$program_prefix$program_suffix$program_transform_name" = \ |
927 | NONENONEs,x,x, && | |
928 | program_prefix=${target_alias}- | |
929 | ||
698dcdb6 VZ |
930 | |
931 | ||
10f2d63a | 932 | WX_MAJOR_VERSION_NUMBER=2 |
37d403aa | 933 | WX_MINOR_VERSION_NUMBER=3 |
665bbe97 | 934 | WX_RELEASE_NUMBER=1 |
10f2d63a | 935 | |
10f2d63a | 936 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 937 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c RL |
938 | |
939 | WX_CURRENT=0 | |
940 | WX_REVISION=0 | |
941 | WX_AGE=0 | |
942 | ||
698dcdb6 VZ |
943 | |
944 | ||
10f2d63a VZ |
945 | USE_UNIX=1 |
946 | USE_WIN32=0 | |
b12915c1 | 947 | USE_BEOS=0 |
1216f52d | 948 | USE_MAC=0 |
b12915c1 | 949 | |
10f2d63a VZ |
950 | USE_LINUX= |
951 | USE_SGI= | |
952 | USE_HPUX= | |
953 | USE_SYSV= | |
954 | USE_SVR4= | |
955 | USE_AIX= | |
956 | USE_SUN= | |
957 | USE_SOLARIS= | |
958 | USE_SUNOS= | |
959 | USE_ALPHA= | |
960 | USE_OSF= | |
961 | USE_BSD= | |
962 | USE_FREEBSD= | |
95c8801c | 963 | USE_OPENBSD= |
f6bcfd97 | 964 | USE_NETBSD= |
10f2d63a VZ |
965 | USE_VMS= |
966 | USE_ULTRIX= | |
967 | USE_CYGWIN= | |
968 | USE_MINGW= | |
969 | USE_DATA_GENERAL= | |
970 | ||
ab9b9eab VZ |
971 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
972 | ||
b4085ce6 | 973 | ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF MAC WINE PM" |
10f2d63a VZ |
974 | |
975 | DEFAULT_wxUSE_GTK=0 | |
976 | DEFAULT_wxUSE_MOTIF=0 | |
977 | DEFAULT_wxUSE_MSW=0 | |
b4085ce6 | 978 | DEFAULT_wxUSE_MAC=0 |
10f2d63a | 979 | DEFAULT_wxUSE_WINE=0 |
e07802fc | 980 | DEFAULT_wxUSE_PM=0 |
10f2d63a VZ |
981 | |
982 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
983 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
984 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
b4085ce6 | 985 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
10f2d63a | 986 | DEFAULT_DEFAULT_wxUSE_WINE=0 |
e07802fc | 987 | DEFAULT_DEFAULT_wxUSE_PM=0 |
10f2d63a | 988 | |
d6a55c4b VZ |
989 | PROGRAM_EXT= |
990 | ||
10f2d63a VZ |
991 | case "${host}" in |
992 | *-hp-hpux* ) | |
993 | USE_HPUX=1 | |
994 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 995 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
698dcdb6 | 996 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
997 | #define __HPUX__ 1 |
998 | EOF | |
999 | ||
1000 | ;; | |
1001 | *-*-linux* ) | |
1002 | USE_LINUX=1 | |
698dcdb6 | 1003 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1004 | #define __LINUX__ 1 |
1005 | EOF | |
1006 | ||
1007 | TMP=`uname -m` | |
1008 | if test "x$TMP" = "xalpha"; then | |
1009 | USE_ALPHA=1 | |
698dcdb6 | 1010 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1011 | #define __ALPHA__ 1 |
1012 | EOF | |
1013 | ||
1014 | fi | |
1015 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1016 | ;; | |
1017 | *-*-irix5* | *-*-irix6* ) | |
1018 | USE_SGI=1 | |
1019 | USE_SVR4=1 | |
698dcdb6 | 1020 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1021 | #define __SGI__ 1 |
1022 | EOF | |
1023 | ||
698dcdb6 | 1024 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1025 | #define __SVR4__ 1 |
1026 | EOF | |
1027 | ||
1028 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1029 | ;; | |
1030 | *-*-solaris2* ) | |
1031 | USE_SUN=1 | |
1032 | USE_SOLARIS=1 | |
1033 | USE_SVR4=1 | |
698dcdb6 | 1034 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1035 | #define __SUN__ 1 |
1036 | EOF | |
1037 | ||
698dcdb6 | 1038 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1039 | #define __SOLARIS__ 1 |
1040 | EOF | |
1041 | ||
698dcdb6 | 1042 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1043 | #define __SVR4__ 1 |
1044 | EOF | |
1045 | ||
1046 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1047 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1048 | ;; |
1049 | *-*-sunos4* ) | |
1050 | USE_SUN=1 | |
1051 | USE_SUNOS=1 | |
1052 | USE_BSD=1 | |
698dcdb6 | 1053 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1054 | #define __SUN__ 1 |
1055 | EOF | |
1056 | ||
698dcdb6 | 1057 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1058 | #define __SUNOS__ 1 |
1059 | EOF | |
1060 | ||
698dcdb6 | 1061 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1062 | #define __BSD__ 1 |
1063 | EOF | |
1064 | ||
1065 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1066 | ;; | |
f6bcfd97 | 1067 | *-*-freebsd*) |
10f2d63a VZ |
1068 | USE_BSD=1 |
1069 | USE_FREEBSD=1 | |
698dcdb6 | 1070 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1071 | #define __FREEBSD__ 1 |
1072 | EOF | |
1073 | ||
698dcdb6 | 1074 | cat >> confdefs.h <<\EOF |
10f2d63a | 1075 | #define __BSD__ 1 |
95c8801c VS |
1076 | EOF |
1077 | ||
1078 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1079 | ;; | |
1080 | *-*-openbsd*) | |
1081 | USE_BSD=1 | |
1082 | USE_OPENBSD=1 | |
698dcdb6 | 1083 | cat >> confdefs.h <<\EOF |
95c8801c VS |
1084 | #define __FREEBSD__ 1 |
1085 | EOF | |
1086 | ||
698dcdb6 | 1087 | cat >> confdefs.h <<\EOF |
95c8801c | 1088 | #define __OPENBSD__ 1 |
f6bcfd97 BP |
1089 | EOF |
1090 | ||
1091 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1092 | ;; | |
1093 | *-*-netbsd*) | |
1094 | USE_BSD=1 | |
1095 | USE_NETBSD=1 | |
698dcdb6 | 1096 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
1097 | #define __FREEBSD__ 1 |
1098 | EOF | |
1099 | ||
698dcdb6 | 1100 | cat >> confdefs.h <<\EOF |
f6bcfd97 | 1101 | #define __NETBSD__ 1 |
10f2d63a VZ |
1102 | EOF |
1103 | ||
1104 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1105 | ;; | |
1106 | *-*-osf* ) | |
1107 | USE_ALPHA=1 | |
1108 | USE_OSF=1 | |
698dcdb6 | 1109 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1110 | #define __ALPHA__ 1 |
1111 | EOF | |
1112 | ||
698dcdb6 | 1113 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1114 | #define __OSF__ 1 |
1115 | EOF | |
1116 | ||
1117 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1118 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1119 | ;; |
1120 | *-*-dgux5* ) | |
1121 | USE_ALPHA=1 | |
1122 | USE_SVR4=1 | |
698dcdb6 | 1123 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1124 | #define __ALPHA__ 1 |
1125 | EOF | |
1126 | ||
698dcdb6 | 1127 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1128 | #define __SVR4__ 1 |
1129 | EOF | |
1130 | ||
1131 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1132 | ;; | |
1133 | *-*-sysv5* ) | |
1134 | USE_SYSV=1 | |
1135 | USE_SVR4=1 | |
698dcdb6 | 1136 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1137 | #define __SYSV__ 1 |
1138 | EOF | |
1139 | ||
698dcdb6 | 1140 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1141 | #define __SVR4__ 1 |
1142 | EOF | |
1143 | ||
1144 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1145 | ;; | |
1146 | *-*-aix* ) | |
1147 | USE_AIX=1 | |
1148 | USE_SYSV=1 | |
1149 | USE_SVR4=1 | |
698dcdb6 | 1150 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1151 | #define __AIX__ 1 |
1152 | EOF | |
1153 | ||
698dcdb6 | 1154 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1155 | #define __SYSV__ 1 |
1156 | EOF | |
1157 | ||
698dcdb6 | 1158 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1159 | #define __SVR4__ 1 |
1160 | EOF | |
1161 | ||
1162 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1163 | ;; | |
1164 | ||
1c8183e2 | 1165 | *-*-cygwin* | *-*-mingw32* ) |
10f2d63a VZ |
1166 | USE_UNIX=0 |
1167 | USE_WIN32=1 | |
698dcdb6 | 1168 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1169 | #define __WIN32__ 1 |
1170 | EOF | |
1171 | ||
698dcdb6 | 1172 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1173 | #define __WIN95__ 1 |
1174 | EOF | |
1175 | ||
698dcdb6 | 1176 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1177 | #define __WINDOWS__ 1 |
1178 | EOF | |
1179 | ||
698dcdb6 | 1180 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1181 | #define __GNUWIN32__ 1 |
1182 | EOF | |
1183 | ||
698dcdb6 | 1184 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1185 | #define STRICT 1 |
1186 | EOF | |
1187 | ||
698dcdb6 | 1188 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1189 | #define WINVER 0x0400 |
1190 | EOF | |
1191 | ||
cf27ef00 | 1192 | PROGRAM_EXT=".exe" |
10f2d63a VZ |
1193 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1194 | ;; | |
1195 | ||
1196 | *-pc-os2_emx ) | |
698dcdb6 | 1197 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1198 | #define __EMX__ 1 |
1199 | EOF | |
1200 | ||
cf27ef00 | 1201 | PROGRAM_EXT=".exe" |
e07802fc | 1202 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1203 | ;; |
1204 | ||
b4085ce6 GD |
1205 | *-*-darwin* ) |
1206 | USE_BSD=1 | |
1207 | USE_MAC=1 | |
698dcdb6 | 1208 | cat >> confdefs.h <<\EOF |
b4085ce6 GD |
1209 | #define __MAC__ 1 |
1210 | EOF | |
1211 | ||
698dcdb6 | 1212 | cat >> confdefs.h <<\EOF |
b4085ce6 GD |
1213 | #define __BSD__ 1 |
1214 | EOF | |
1215 | ||
698dcdb6 | 1216 | cat >> confdefs.h <<\EOF |
b4085ce6 GD |
1217 | #define __UNIX__ 1 |
1218 | EOF | |
1219 | ||
1220 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1221 | ;; | |
1222 | ||
b12915c1 VZ |
1223 | *-*-beos* ) |
1224 | USE_BEOS=1 | |
698dcdb6 | 1225 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
1226 | #define __BEOS__ 1 |
1227 | EOF | |
1228 | ||
1229 | ;; | |
1230 | ||
10f2d63a | 1231 | *) |
698dcdb6 | 1232 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1233 | esac |
1234 | ||
1235 | if test "$USE_UNIX" = 1 ; then | |
b12915c1 | 1236 | wxUSE_UNIX=yes |
698dcdb6 | 1237 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1238 | #define __UNIX__ 1 |
1239 | EOF | |
1240 | ||
698dcdb6 | 1241 | |
b12915c1 VZ |
1242 | SRC_SUBDIRS="$SRC_SUBDIRS unix" |
1243 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix" | |
1244 | fi | |
1245 | ||
1246 | if test "$USE_BEOS" = 1; then | |
1247 | SRC_SUBDIRS="$SRC_SUBDIRS be" | |
1248 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be" | |
10f2d63a VZ |
1249 | fi |
1250 | ||
1251 | if test "$USE_LINUX" = 1; then | |
698dcdb6 VZ |
1252 | echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6 |
1253 | echo "configure:1254: checking for gettext in -lc" >&5 | |
1254 | ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'` | |
1255 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1256 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 1257 | else |
698dcdb6 VZ |
1258 | ac_save_LIBS="$LIBS" |
1259 | LIBS="-lc $LIBS" | |
1260 | cat > conftest.$ac_ext <<EOF | |
1261 | #line 1262 "configure" | |
1262 | #include "confdefs.h" | |
1263 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1264 | /* We use char because int might match the return type of a gcc2 | |
1265 | builtin and then its argument prototype would still apply. */ | |
1266 | char gettext(); | |
10f2d63a | 1267 | |
698dcdb6 VZ |
1268 | int main() { |
1269 | gettext() | |
1270 | ; return 0; } | |
1271 | EOF | |
1272 | if { (eval echo configure:1273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
1273 | rm -rf conftest* | |
1274 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 1275 | else |
698dcdb6 VZ |
1276 | echo "configure: failed program was:" >&5 |
1277 | cat conftest.$ac_ext >&5 | |
1278 | rm -rf conftest* | |
1279 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 1280 | fi |
698dcdb6 VZ |
1281 | rm -f conftest* |
1282 | LIBS="$ac_save_LIBS" | |
10f2d63a VZ |
1283 | |
1284 | fi | |
698dcdb6 VZ |
1285 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
1286 | echo "$ac_t""yes" 1>&6 | |
1287 | cat >> confdefs.h <<\EOF | |
1288 | #define wxHAVE_GLIBC2 1 | |
1289 | EOF | |
10f2d63a VZ |
1290 | |
1291 | else | |
698dcdb6 | 1292 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
1293 | fi |
1294 | ||
1295 | fi | |
1296 | ||
1e487827 | 1297 | |
1e487827 | 1298 | |
6232543b | 1299 | |
10f2d63a VZ |
1300 | wx_arg_cache_file="configarg.cache" |
1301 | echo "loading argument cache $wx_arg_cache_file" | |
1302 | rm -f ${wx_arg_cache_file}.tmp | |
1303 | touch ${wx_arg_cache_file}.tmp | |
1304 | touch ${wx_arg_cache_file} | |
698dcdb6 | 1305 | |
10f2d63a VZ |
1306 | |
1307 | DEBUG_CONFIGURE=0 | |
1308 | if test $DEBUG_CONFIGURE = 1; then | |
1309 | DEFAULT_wxUSE_THREADS=yes | |
1310 | ||
1311 | DEFAULT_wxUSE_SHARED=yes | |
00cf1208 | 1312 | DEFAULT_wxUSE_BURNT_NAME=no |
10f2d63a VZ |
1313 | DEFAULT_wxUSE_OPTIMISE=yes |
1314 | DEFAULT_wxUSE_PROFILE=no | |
1315 | DEFAULT_wxUSE_NO_DEPS=no | |
1316 | DEFAULT_wxUSE_NO_RTTI=no | |
1317 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1318 | DEFAULT_wxUSE_PERMISSIVE=no | |
1319 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1320 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1321 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1322 | DEFAULT_wxUSE_MEM_TRACING=no | |
1323 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1324 | DEFAULT_wxUSE_DMALLOC=no | |
1325 | DEFAULT_wxUSE_APPLE_IEEE=no | |
1326 | ||
1327 | DEFAULT_wxUSE_LOG=yes | |
1328 | ||
1329 | DEFAULT_wxUSE_GUI=yes | |
1330 | ||
1331 | DEFAULT_wxUSE_ZLIB=no | |
1332 | DEFAULT_wxUSE_LIBPNG=no | |
1333 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1334 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1335 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1336 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1337 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1338 | |
eb4efbdc | 1339 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1340 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a VZ |
1341 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1342 | DEFAULT_wxUSE_FILE=no | |
1343 | DEFAULT_wxUSE_TEXTFILE=no | |
1344 | DEFAULT_wxUSE_TIMEDATE=no | |
1345 | DEFAULT_wxUSE_WAVE=no | |
1346 | DEFAULT_wxUSE_INTL=no | |
1347 | DEFAULT_wxUSE_CONFIG=no | |
1348 | DEFAULT_wxUSE_STREAMS=no | |
1349 | DEFAULT_wxUSE_SOCKETS=no | |
1350 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
1351 | DEFAULT_wxUSE_SERIAL=no | |
1352 | DEFAULT_wxUSE_JOYSTICK=no | |
1353 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
1354 | DEFAULT_wxUSE_LONGLONG=no | |
e8f65ba6 | 1355 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1356 | |
1357 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1358 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1359 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1360 | ||
1361 | DEFAULT_wxUSE_X_RESOURCES=no | |
1362 | DEFAULT_wxUSE_CLIPBOARD=no | |
1363 | DEFAULT_wxUSE_TOOLTIPS=no | |
1364 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
1365 | DEFAULT_wxUSE_SPLINES=no | |
1366 | ||
1367 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1368 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1369 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1370 | ||
1371 | DEFAULT_wxUSE_PROLOGIO=no | |
1372 | DEFAULT_wxUSE_RESOURCES=no | |
1373 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1374 | DEFAULT_wxUSE_IPC=no | |
1375 | DEFAULT_wxUSE_HELP=no | |
1376 | DEFAULT_wxUSE_WXTREE=no | |
1377 | DEFAULT_wxUSE_METAFILE=no | |
1378 | ||
1379 | DEFAULT_wxUSE_COMMONDLGS=no | |
1380 | DEFAULT_wxUSE_DIRDLG=no | |
1381 | DEFAULT_wxUSE_TEXTDLG=no | |
1382 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
1383 | DEFAULT_wxUSE_PROGRESSDLG=no | |
1384 | DEFAULT_wxUSE_MINIFRAME=no | |
1385 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1386 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1387 | DEFAULT_wxUSE_FS_INET=no |
1388 | DEFAULT_wxUSE_FS_ZIP=no | |
1389 | DEFAULT_wxUSE_BUSYINFO=no | |
1390 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1391 | DEFAULT_wxUSE_VALIDATORS=yes | |
1392 | ||
1393 | DEFAULT_wxUSE_ACCEL=no | |
1394 | DEFAULT_wxUSE_CARET=no | |
1395 | DEFAULT_wxUSE_BMPBUTTON=no | |
1396 | DEFAULT_wxUSE_CHECKBOX=no | |
1397 | DEFAULT_wxUSE_CHECKLST=no | |
1398 | DEFAULT_wxUSE_CHOICE=yes | |
1399 | DEFAULT_wxUSE_COMBOBOX=no | |
1400 | DEFAULT_wxUSE_GAUGE=no | |
1401 | DEFAULT_wxUSE_GRID=no | |
1402 | DEFAULT_wxUSE_NEW_GRID=no | |
1403 | DEFAULT_wxUSE_IMAGLIST=no | |
1404 | DEFAULT_wxUSE_LISTBOX=no | |
1405 | DEFAULT_wxUSE_LISTCTRL=no | |
1406 | DEFAULT_wxUSE_NOTEBOOK=no | |
1407 | DEFAULT_wxUSE_RADIOBOX=no | |
1408 | DEFAULT_wxUSE_RADIOBTN=no | |
1409 | DEFAULT_wxUSE_SASH=no | |
1410 | DEFAULT_wxUSE_SCROLLBAR=no | |
1411 | DEFAULT_wxUSE_SLIDER=no | |
1412 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1413 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1414 | DEFAULT_wxUSE_SPLITTER=no |
1415 | DEFAULT_wxUSE_STATBMP=no | |
1416 | DEFAULT_wxUSE_STATBOX=no | |
1417 | DEFAULT_wxUSE_STATLINE=no | |
1418 | DEFAULT_wxUSE_STATUSBAR=yes | |
1419 | DEFAULT_wxUSE_TABDIALOG=no | |
1db8dc4a | 1420 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1421 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1422 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1423 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
1424 | DEFAULT_wxUSE_TREECTRL=no |
1425 | ||
1426 | DEFAULT_wxUSE_UNICODE=no | |
1427 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1428 | ||
0046ff7c | 1429 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1430 | DEFAULT_wxUSE_GIF=no |
1431 | DEFAULT_wxUSE_PCX=no | |
1432 | DEFAULT_wxUSE_PNM=no | |
0046ff7c | 1433 | DEFAULT_wxUSE_XPM=no |
10f2d63a VZ |
1434 | else |
1435 | DEFAULT_wxUSE_THREADS=yes | |
1436 | ||
1437 | DEFAULT_wxUSE_SHARED=yes | |
00cf1208 | 1438 | DEFAULT_wxUSE_BURNT_NAME=no |
10f2d63a VZ |
1439 | DEFAULT_wxUSE_OPTIMISE=yes |
1440 | DEFAULT_wxUSE_PROFILE=no | |
1441 | DEFAULT_wxUSE_NO_DEPS=no | |
1442 | DEFAULT_wxUSE_NO_RTTI=no | |
1443 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1444 | DEFAULT_wxUSE_PERMISSIVE=no | |
1445 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1446 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1447 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1448 | DEFAULT_wxUSE_MEM_TRACING=no | |
1449 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1450 | DEFAULT_wxUSE_DMALLOC=no | |
1451 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
1452 | ||
1453 | DEFAULT_wxUSE_LOG=yes | |
1454 | ||
1455 | DEFAULT_wxUSE_GUI=yes | |
1456 | ||
1457 | DEFAULT_wxUSE_ZLIB=yes | |
1458 | DEFAULT_wxUSE_LIBPNG=yes | |
1459 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1460 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1461 | DEFAULT_wxUSE_ODBC=no |
3fed1840 | 1462 | DEFAULT_wxUSE_FREETYPE=no |
bdad4e7e | 1463 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1464 | |
eb4efbdc | 1465 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1466 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a VZ |
1467 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1468 | DEFAULT_wxUSE_FILE=yes | |
1469 | DEFAULT_wxUSE_TEXTFILE=yes | |
1470 | DEFAULT_wxUSE_TIMEDATE=yes | |
1471 | DEFAULT_wxUSE_WAVE=no | |
1472 | DEFAULT_wxUSE_INTL=yes | |
1473 | DEFAULT_wxUSE_CONFIG=yes | |
1474 | DEFAULT_wxUSE_STREAMS=yes | |
1475 | DEFAULT_wxUSE_SOCKETS=yes | |
1476 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
1477 | DEFAULT_wxUSE_SERIAL=yes | |
1478 | DEFAULT_wxUSE_JOYSTICK=yes | |
1479 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
b685cd9b | 1480 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1481 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1482 | |
1483 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1484 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1485 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1486 | ||
1487 | DEFAULT_wxUSE_X_RESOURCES=no | |
1488 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1489 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1490 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
1491 | DEFAULT_wxUSE_SPLINES=yes | |
1492 | ||
1493 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1494 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1495 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1496 | ||
1497 | DEFAULT_wxUSE_PROLOGIO=yes | |
1498 | DEFAULT_wxUSE_RESOURCES=yes | |
1499 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1500 | DEFAULT_wxUSE_IPC=yes | |
1501 | DEFAULT_wxUSE_HELP=yes | |
1502 | DEFAULT_wxUSE_WXTREE=yes | |
1503 | DEFAULT_wxUSE_METAFILE=yes | |
1504 | ||
1505 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1506 | DEFAULT_wxUSE_DIRDLG=yes | |
1507 | DEFAULT_wxUSE_TEXTDLG=yes | |
1508 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
1509 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
1510 | DEFAULT_wxUSE_MINIFRAME=yes | |
1511 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1512 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1513 | DEFAULT_wxUSE_FS_INET=yes |
1514 | DEFAULT_wxUSE_FS_ZIP=yes | |
1515 | DEFAULT_wxUSE_BUSYINFO=yes | |
1516 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1517 | DEFAULT_wxUSE_VALIDATORS=yes | |
1518 | ||
1519 | DEFAULT_wxUSE_ACCEL=yes | |
1520 | DEFAULT_wxUSE_CARET=yes | |
1521 | DEFAULT_wxUSE_BMPBUTTON=yes | |
1522 | DEFAULT_wxUSE_CHECKBOX=yes | |
1523 | DEFAULT_wxUSE_CHECKLST=yes | |
1524 | DEFAULT_wxUSE_CHOICE=yes | |
1525 | DEFAULT_wxUSE_COMBOBOX=yes | |
1526 | DEFAULT_wxUSE_GAUGE=yes | |
1527 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1528 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1529 | DEFAULT_wxUSE_IMAGLIST=yes |
1530 | DEFAULT_wxUSE_LISTBOX=yes | |
1531 | DEFAULT_wxUSE_LISTCTRL=yes | |
1532 | DEFAULT_wxUSE_NOTEBOOK=yes | |
1533 | DEFAULT_wxUSE_RADIOBOX=yes | |
1534 | DEFAULT_wxUSE_RADIOBTN=yes | |
1535 | DEFAULT_wxUSE_SASH=yes | |
1536 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1537 | DEFAULT_wxUSE_SLIDER=yes | |
1538 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1539 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1540 | DEFAULT_wxUSE_SPLITTER=yes |
1541 | DEFAULT_wxUSE_STATBMP=yes | |
1542 | DEFAULT_wxUSE_STATBOX=yes | |
1543 | DEFAULT_wxUSE_STATLINE=yes | |
1544 | DEFAULT_wxUSE_STATUSBAR=yes | |
1545 | DEFAULT_wxUSE_TABDIALOG=no | |
1db8dc4a | 1546 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1547 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1548 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1549 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
1550 | DEFAULT_wxUSE_TREECTRL=yes |
1551 | ||
1552 | DEFAULT_wxUSE_UNICODE=no | |
1553 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1554 | ||
0046ff7c | 1555 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1556 | DEFAULT_wxUSE_GIF=yes |
1557 | DEFAULT_wxUSE_PCX=yes | |
1558 | DEFAULT_wxUSE_PNM=yes | |
0046ff7c | 1559 | DEFAULT_wxUSE_XPM=yes |
10f2d63a VZ |
1560 | fi |
1561 | ||
698dcdb6 VZ |
1562 | |
1563 | ||
10f2d63a VZ |
1564 | for toolkit in `echo $ALL_TOOLKITS`; do |
1565 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1566 | if test "x$LINE" != x ; then | |
1567 | has_toolkit_in_cache=1 | |
1568 | eval "DEFAULT_$LINE" | |
1569 | eval "CACHE_$toolkit=1" | |
1570 | fi | |
1571 | done | |
1572 | ||
698dcdb6 VZ |
1573 | |
1574 | ||
1575 | echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6 | |
1576 | echo "configure:1577: checking for --enable-gui" >&5 | |
10f2d63a VZ |
1577 | no_cache=0 |
1578 | # Check whether --enable-gui or --disable-gui was given. | |
1579 | if test "${enable_gui+set}" = set; then | |
1580 | enableval="$enable_gui" | |
698dcdb6 | 1581 | |
10f2d63a VZ |
1582 | if test "$enableval" = yes; then |
1583 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1584 | else | |
1585 | ac_cv_use_gui='wxUSE_GUI=no' | |
1586 | fi | |
698dcdb6 | 1587 | |
10f2d63a | 1588 | else |
698dcdb6 | 1589 | |
10f2d63a VZ |
1590 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1591 | if test "x$LINE" != x ; then | |
1592 | eval "DEFAULT_$LINE" | |
1593 | else | |
1594 | no_cache=1 | |
1595 | fi | |
1596 | ||
1597 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
698dcdb6 VZ |
1598 | |
1599 | fi | |
10f2d63a VZ |
1600 | |
1601 | ||
1602 | eval "$ac_cv_use_gui" | |
1603 | if test "$no_cache" != 1; then | |
1604 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1605 | fi | |
1606 | ||
1607 | if test "$wxUSE_GUI" = yes; then | |
698dcdb6 | 1608 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1609 | else |
698dcdb6 | 1610 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1611 | fi |
698dcdb6 | 1612 | |
10f2d63a | 1613 | |
b12915c1 | 1614 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a VZ |
1615 | |
1616 | # Check whether --with-gtk or --without-gtk was given. | |
1617 | if test "${with_gtk+set}" = set; then | |
1618 | withval="$with_gtk" | |
1619 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1620 | fi |
10f2d63a VZ |
1621 | |
1622 | # Check whether --with-motif or --without-motif was given. | |
1623 | if test "${with_motif+set}" = set; then | |
1624 | withval="$with_motif" | |
1625 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1626 | fi |
10f2d63a | 1627 | |
b4085ce6 GD |
1628 | # Check whether --with-mac or --without-mac was given. |
1629 | if test "${with_mac+set}" = set; then | |
1630 | withval="$with_mac" | |
1631 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
698dcdb6 | 1632 | fi |
b4085ce6 | 1633 | |
10f2d63a VZ |
1634 | # Check whether --with-wine or --without-wine was given. |
1635 | if test "${with_wine+set}" = set; then | |
1636 | withval="$with_wine" | |
1637 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1638 | fi |
10f2d63a VZ |
1639 | |
1640 | # Check whether --with-cygwin or --without-cygwin was given. | |
1641 | if test "${with_cygwin+set}" = set; then | |
1642 | withval="$with_cygwin" | |
1643 | wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1644 | fi |
10f2d63a VZ |
1645 | |
1646 | # Check whether --with-mingw or --without-mingw was given. | |
1647 | if test "${with_mingw+set}" = set; then | |
1648 | withval="$with_mingw" | |
1649 | wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1 | |
698dcdb6 | 1650 | fi |
10f2d63a | 1651 | |
e07802fc VZ |
1652 | # Check whether --with-pm or --without-pm was given. |
1653 | if test "${with_pm+set}" = set; then | |
1654 | withval="$with_pm" | |
1655 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
698dcdb6 VZ |
1656 | fi |
1657 | ||
10f2d63a VZ |
1658 | |
1659 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
1660 | if test "${with_gtk_prefix+set}" = set; then | |
1661 | withval="$with_gtk_prefix" | |
1662 | gtk_config_prefix="$withval" | |
1663 | else | |
1664 | gtk_config_prefix="" | |
698dcdb6 | 1665 | fi |
10f2d63a VZ |
1666 | |
1667 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
1668 | if test "${with_gtk_exec_prefix+set}" = set; then | |
1669 | withval="$with_gtk_exec_prefix" | |
1670 | gtk_config_exec_prefix="$withval" | |
1671 | else | |
1672 | gtk_config_exec_prefix="" | |
698dcdb6 VZ |
1673 | fi |
1674 | ||
703e0a69 | 1675 | |
1e487827 | 1676 | |
698dcdb6 VZ |
1677 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
1678 | echo "configure:1679: checking for --with-libpng" >&5 | |
1679 | no_cache=0 | |
1680 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
1681 | if test "${with_libpng+set}" = set; then |
1682 | withval="$with_libpng" | |
698dcdb6 | 1683 | |
10f2d63a | 1684 | if test "$withval" = yes; then |
b12915c1 | 1685 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1686 | elif test "$withval" = no; then |
b12915c1 | 1687 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
1688 | elif test "$withval" = sys; then |
1689 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
1690 | else | |
698dcdb6 | 1691 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1692 | fi |
698dcdb6 | 1693 | |
10f2d63a | 1694 | else |
698dcdb6 | 1695 | |
b12915c1 | 1696 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1697 | if test "x$LINE" != x ; then |
1698 | eval "DEFAULT_$LINE" | |
1699 | else | |
1700 | no_cache=1 | |
1701 | fi | |
1702 | ||
b12915c1 | 1703 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
698dcdb6 VZ |
1704 | |
1705 | fi | |
10f2d63a VZ |
1706 | |
1707 | ||
b12915c1 | 1708 | eval "$ac_cv_use_libpng" |
10f2d63a | 1709 | if test "$no_cache" != 1; then |
b12915c1 | 1710 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1711 | fi |
1712 | ||
b12915c1 | 1713 | if test "$wxUSE_LIBPNG" = yes; then |
698dcdb6 | 1714 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1715 | elif test "$wxUSE_LIBPNG" = no; then |
698dcdb6 | 1716 | echo "$ac_t""no" 1>&6 |
422107f9 | 1717 | elif test "$wxUSE_LIBPNG" = sys; then |
698dcdb6 | 1718 | echo "$ac_t""system version" 1>&6 |
422107f9 | 1719 | else |
698dcdb6 | 1720 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1721 | fi |
698dcdb6 | 1722 | |
10f2d63a | 1723 | |
698dcdb6 VZ |
1724 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
1725 | echo "configure:1726: checking for --with-libjpeg" >&5 | |
10f2d63a | 1726 | no_cache=0 |
698dcdb6 | 1727 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
1728 | if test "${with_libjpeg+set}" = set; then |
1729 | withval="$with_libjpeg" | |
698dcdb6 | 1730 | |
10f2d63a | 1731 | if test "$withval" = yes; then |
b12915c1 | 1732 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 1733 | elif test "$withval" = no; then |
b12915c1 | 1734 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
1735 | elif test "$withval" = sys; then |
1736 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
1737 | else | |
698dcdb6 | 1738 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1739 | fi |
698dcdb6 | 1740 | |
10f2d63a | 1741 | else |
698dcdb6 | 1742 | |
b12915c1 | 1743 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1744 | if test "x$LINE" != x ; then |
1745 | eval "DEFAULT_$LINE" | |
1746 | else | |
1747 | no_cache=1 | |
1748 | fi | |
1749 | ||
b12915c1 | 1750 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
698dcdb6 VZ |
1751 | |
1752 | fi | |
10f2d63a VZ |
1753 | |
1754 | ||
b12915c1 | 1755 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 1756 | if test "$no_cache" != 1; then |
b12915c1 | 1757 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1758 | fi |
1759 | ||
b12915c1 | 1760 | if test "$wxUSE_LIBJPEG" = yes; then |
698dcdb6 | 1761 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1762 | elif test "$wxUSE_LIBJPEG" = no; then |
698dcdb6 | 1763 | echo "$ac_t""no" 1>&6 |
422107f9 | 1764 | elif test "$wxUSE_LIBJPEG" = sys; then |
698dcdb6 | 1765 | echo "$ac_t""system version" 1>&6 |
422107f9 | 1766 | else |
698dcdb6 | 1767 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1768 | fi |
698dcdb6 | 1769 | |
10f2d63a | 1770 | |
698dcdb6 VZ |
1771 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
1772 | echo "configure:1773: checking for --with-libtiff" >&5 | |
10f2d63a | 1773 | no_cache=0 |
698dcdb6 | 1774 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
1775 | if test "${with_libtiff+set}" = set; then |
1776 | withval="$with_libtiff" | |
698dcdb6 | 1777 | |
10f2d63a | 1778 | if test "$withval" = yes; then |
b12915c1 | 1779 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 1780 | elif test "$withval" = no; then |
b12915c1 | 1781 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
1782 | elif test "$withval" = sys; then |
1783 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
1784 | else | |
698dcdb6 | 1785 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1786 | fi |
698dcdb6 | 1787 | |
10f2d63a | 1788 | else |
698dcdb6 | 1789 | |
b12915c1 | 1790 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
1791 | if test "x$LINE" != x ; then |
1792 | eval "DEFAULT_$LINE" | |
1793 | else | |
1794 | no_cache=1 | |
1795 | fi | |
1796 | ||
b12915c1 | 1797 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
698dcdb6 VZ |
1798 | |
1799 | fi | |
10f2d63a VZ |
1800 | |
1801 | ||
b12915c1 | 1802 | eval "$ac_cv_use_libtiff" |
10f2d63a | 1803 | if test "$no_cache" != 1; then |
b12915c1 | 1804 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1805 | fi |
1806 | ||
b12915c1 | 1807 | if test "$wxUSE_LIBTIFF" = yes; then |
698dcdb6 | 1808 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 1809 | elif test "$wxUSE_LIBTIFF" = no; then |
698dcdb6 | 1810 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 1811 | elif test "$wxUSE_LIBTIFF" = sys; then |
698dcdb6 | 1812 | echo "$ac_t""system version" 1>&6 |
0dcf9893 | 1813 | else |
698dcdb6 | 1814 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1815 | fi |
698dcdb6 | 1816 | |
10f2d63a | 1817 | |
698dcdb6 VZ |
1818 | echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6 |
1819 | echo "configure:1820: checking for --with-freetype" >&5 | |
3fed1840 | 1820 | no_cache=0 |
698dcdb6 | 1821 | # Check whether --with-freetype or --without-freetype was given. |
3fed1840 RR |
1822 | if test "${with_freetype+set}" = set; then |
1823 | withval="$with_freetype" | |
698dcdb6 | 1824 | |
3fed1840 RR |
1825 | if test "$withval" = yes; then |
1826 | ac_cv_use_freetype='wxUSE_FREETYPE=yes' | |
1827 | elif test "$withval" = no; then | |
1828 | ac_cv_use_freetype='wxUSE_FREETYPE=no' | |
1829 | elif test "$withval" = sys; then | |
1830 | ac_cv_use_freetype='wxUSE_FREETYPE=sys' | |
1831 | else | |
698dcdb6 | 1832 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; } |
3fed1840 | 1833 | fi |
698dcdb6 | 1834 | |
3fed1840 | 1835 | else |
698dcdb6 | 1836 | |
3fed1840 RR |
1837 | LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}` |
1838 | if test "x$LINE" != x ; then | |
1839 | eval "DEFAULT_$LINE" | |
1840 | else | |
1841 | no_cache=1 | |
1842 | fi | |
1843 | ||
1844 | ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE | |
698dcdb6 VZ |
1845 | |
1846 | fi | |
3fed1840 RR |
1847 | |
1848 | ||
1849 | eval "$ac_cv_use_freetype" | |
1850 | if test "$no_cache" != 1; then | |
1851 | echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp | |
1852 | fi | |
1853 | ||
1854 | if test "$wxUSE_FREETYPE" = yes; then | |
698dcdb6 | 1855 | echo "$ac_t""yes" 1>&6 |
3fed1840 | 1856 | elif test "$wxUSE_FREETYPE" = no; then |
698dcdb6 | 1857 | echo "$ac_t""no" 1>&6 |
3fed1840 | 1858 | elif test "$wxUSE_FREETYPE" = sys; then |
698dcdb6 | 1859 | echo "$ac_t""system version" 1>&6 |
3fed1840 | 1860 | else |
698dcdb6 | 1861 | { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; } |
3fed1840 | 1862 | fi |
698dcdb6 | 1863 | |
3fed1840 | 1864 | |
698dcdb6 VZ |
1865 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
1866 | echo "configure:1867: checking for --with-opengl" >&5 | |
10f2d63a | 1867 | no_cache=0 |
698dcdb6 | 1868 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
1869 | if test "${with_opengl+set}" = set; then |
1870 | withval="$with_opengl" | |
698dcdb6 | 1871 | |
10f2d63a | 1872 | if test "$withval" = yes; then |
b12915c1 | 1873 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 1874 | else |
b12915c1 | 1875 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 1876 | fi |
698dcdb6 | 1877 | |
10f2d63a | 1878 | else |
698dcdb6 | 1879 | |
b12915c1 | 1880 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
1881 | if test "x$LINE" != x ; then |
1882 | eval "DEFAULT_$LINE" | |
1883 | else | |
1884 | no_cache=1 | |
1885 | fi | |
1886 | ||
b12915c1 | 1887 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
698dcdb6 VZ |
1888 | |
1889 | fi | |
10f2d63a VZ |
1890 | |
1891 | ||
b12915c1 | 1892 | eval "$ac_cv_use_opengl" |
10f2d63a | 1893 | if test "$no_cache" != 1; then |
b12915c1 | 1894 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1895 | fi |
1896 | ||
b12915c1 | 1897 | if test "$wxUSE_OPENGL" = yes; then |
698dcdb6 | 1898 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1899 | else |
698dcdb6 | 1900 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1901 | fi |
698dcdb6 | 1902 | |
10f2d63a | 1903 | |
b12915c1 VZ |
1904 | fi |
1905 | ||
1e487827 | 1906 | |
698dcdb6 VZ |
1907 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
1908 | echo "configure:1909: checking for --with-dmalloc" >&5 | |
1909 | no_cache=0 | |
1910 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
1911 | if test "${with_dmalloc+set}" = set; then |
1912 | withval="$with_dmalloc" | |
698dcdb6 | 1913 | |
c7a2bf27 | 1914 | if test "$withval" = yes; then |
b12915c1 | 1915 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 1916 | else |
b12915c1 | 1917 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 1918 | fi |
698dcdb6 | 1919 | |
c7a2bf27 | 1920 | else |
698dcdb6 | 1921 | |
b12915c1 | 1922 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
1923 | if test "x$LINE" != x ; then |
1924 | eval "DEFAULT_$LINE" | |
1925 | else | |
1926 | no_cache=1 | |
1927 | fi | |
1928 | ||
b12915c1 | 1929 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
698dcdb6 VZ |
1930 | |
1931 | fi | |
c7a2bf27 RR |
1932 | |
1933 | ||
b12915c1 | 1934 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 1935 | if test "$no_cache" != 1; then |
b12915c1 | 1936 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
1937 | fi |
1938 | ||
b12915c1 | 1939 | if test "$wxUSE_DMALLOC" = yes; then |
698dcdb6 | 1940 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 1941 | else |
698dcdb6 | 1942 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 1943 | fi |
698dcdb6 | 1944 | |
c7a2bf27 | 1945 | |
698dcdb6 VZ |
1946 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
1947 | echo "configure:1948: checking for --with-zlib" >&5 | |
10f2d63a | 1948 | no_cache=0 |
698dcdb6 | 1949 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
1950 | if test "${with_zlib+set}" = set; then |
1951 | withval="$with_zlib" | |
698dcdb6 | 1952 | |
10f2d63a | 1953 | if test "$withval" = yes; then |
b12915c1 | 1954 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 1955 | elif test "$withval" = no; then |
b12915c1 | 1956 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
1957 | elif test "$withval" = sys; then |
1958 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
1959 | else | |
698dcdb6 | 1960 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1961 | fi |
698dcdb6 | 1962 | |
10f2d63a | 1963 | else |
698dcdb6 | 1964 | |
b12915c1 | 1965 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
1966 | if test "x$LINE" != x ; then |
1967 | eval "DEFAULT_$LINE" | |
1968 | else | |
1969 | no_cache=1 | |
1970 | fi | |
1971 | ||
b12915c1 | 1972 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
698dcdb6 VZ |
1973 | |
1974 | fi | |
10f2d63a VZ |
1975 | |
1976 | ||
b12915c1 | 1977 | eval "$ac_cv_use_zlib" |
10f2d63a | 1978 | if test "$no_cache" != 1; then |
b12915c1 | 1979 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1980 | fi |
1981 | ||
b12915c1 | 1982 | if test "$wxUSE_ZLIB" = yes; then |
698dcdb6 | 1983 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1984 | elif test "$wxUSE_ZLIB" = no; then |
698dcdb6 | 1985 | echo "$ac_t""no" 1>&6 |
422107f9 | 1986 | elif test "$wxUSE_ZLIB" = sys; then |
698dcdb6 | 1987 | echo "$ac_t""system version" 1>&6 |
422107f9 | 1988 | else |
698dcdb6 | 1989 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; } |
10f2d63a | 1990 | fi |
698dcdb6 | 1991 | |
10f2d63a | 1992 | |
698dcdb6 VZ |
1993 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
1994 | echo "configure:1995: checking for --with-odbc" >&5 | |
10f2d63a | 1995 | no_cache=0 |
698dcdb6 | 1996 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
1997 | if test "${with_odbc+set}" = set; then |
1998 | withval="$with_odbc" | |
698dcdb6 | 1999 | |
10f2d63a VZ |
2000 | if test "$withval" = yes; then |
2001 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2002 | else | |
2003 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2004 | fi | |
698dcdb6 | 2005 | |
10f2d63a | 2006 | else |
698dcdb6 | 2007 | |
10f2d63a VZ |
2008 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2009 | if test "x$LINE" != x ; then | |
2010 | eval "DEFAULT_$LINE" | |
2011 | else | |
2012 | no_cache=1 | |
2013 | fi | |
2014 | ||
2015 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
698dcdb6 VZ |
2016 | |
2017 | fi | |
10f2d63a VZ |
2018 | |
2019 | ||
2020 | eval "$ac_cv_use_odbc" | |
2021 | if test "$no_cache" != 1; then | |
2022 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2023 | fi | |
2024 | ||
2025 | if test "$wxUSE_ODBC" = yes; then | |
698dcdb6 | 2026 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2027 | else |
698dcdb6 | 2028 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2029 | fi |
698dcdb6 VZ |
2030 | |
2031 | ||
10f2d63a | 2032 | |
698dcdb6 VZ |
2033 | |
2034 | ||
2035 | echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6 | |
2036 | echo "configure:2037: checking for --enable-shared" >&5 | |
10f2d63a VZ |
2037 | no_cache=0 |
2038 | # Check whether --enable-shared or --disable-shared was given. | |
2039 | if test "${enable_shared+set}" = set; then | |
2040 | enableval="$enable_shared" | |
698dcdb6 | 2041 | |
10f2d63a VZ |
2042 | if test "$enableval" = yes; then |
2043 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2044 | else | |
2045 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2046 | fi | |
698dcdb6 | 2047 | |
10f2d63a | 2048 | else |
698dcdb6 | 2049 | |
10f2d63a VZ |
2050 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2051 | if test "x$LINE" != x ; then | |
2052 | eval "DEFAULT_$LINE" | |
2053 | else | |
2054 | no_cache=1 | |
2055 | fi | |
2056 | ||
2057 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
698dcdb6 VZ |
2058 | |
2059 | fi | |
10f2d63a VZ |
2060 | |
2061 | ||
2062 | eval "$ac_cv_use_shared" | |
2063 | if test "$no_cache" != 1; then | |
2064 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2065 | fi | |
2066 | ||
2067 | if test "$wxUSE_SHARED" = yes; then | |
698dcdb6 | 2068 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2069 | else |
698dcdb6 | 2070 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2071 | fi |
698dcdb6 | 2072 | |
10f2d63a | 2073 | |
698dcdb6 VZ |
2074 | echo $ac_n "checking for --enable-burnt_name""... $ac_c" 1>&6 |
2075 | echo "configure:2076: checking for --enable-burnt_name" >&5 | |
00cf1208 RR |
2076 | no_cache=0 |
2077 | # Check whether --enable-burnt_name or --disable-burnt_name was given. | |
2078 | if test "${enable_burnt_name+set}" = set; then | |
2079 | enableval="$enable_burnt_name" | |
698dcdb6 | 2080 | |
00cf1208 RR |
2081 | if test "$enableval" = yes; then |
2082 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes' | |
2083 | else | |
2084 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no' | |
2085 | fi | |
698dcdb6 | 2086 | |
00cf1208 | 2087 | else |
698dcdb6 | 2088 | |
00cf1208 RR |
2089 | LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}` |
2090 | if test "x$LINE" != x ; then | |
2091 | eval "DEFAULT_$LINE" | |
2092 | else | |
2093 | no_cache=1 | |
2094 | fi | |
2095 | ||
2096 | ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME | |
698dcdb6 VZ |
2097 | |
2098 | fi | |
00cf1208 RR |
2099 | |
2100 | ||
2101 | eval "$ac_cv_use_burnt_name" | |
2102 | if test "$no_cache" != 1; then | |
2103 | echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp | |
2104 | fi | |
2105 | ||
2106 | if test "$wxUSE_BURNT_NAME" = yes; then | |
698dcdb6 | 2107 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2108 | else |
698dcdb6 | 2109 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2110 | fi |
698dcdb6 | 2111 | |
00cf1208 | 2112 | |
698dcdb6 VZ |
2113 | echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6 |
2114 | echo "configure:2115: checking for --enable-optimise" >&5 | |
10f2d63a VZ |
2115 | no_cache=0 |
2116 | # Check whether --enable-optimise or --disable-optimise was given. | |
2117 | if test "${enable_optimise+set}" = set; then | |
2118 | enableval="$enable_optimise" | |
698dcdb6 | 2119 | |
10f2d63a VZ |
2120 | if test "$enableval" = yes; then |
2121 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2122 | else | |
2123 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2124 | fi | |
698dcdb6 | 2125 | |
10f2d63a | 2126 | else |
698dcdb6 | 2127 | |
10f2d63a VZ |
2128 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2129 | if test "x$LINE" != x ; then | |
2130 | eval "DEFAULT_$LINE" | |
2131 | else | |
2132 | no_cache=1 | |
2133 | fi | |
2134 | ||
2135 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
698dcdb6 VZ |
2136 | |
2137 | fi | |
10f2d63a VZ |
2138 | |
2139 | ||
2140 | eval "$ac_cv_use_optimise" | |
2141 | if test "$no_cache" != 1; then | |
2142 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2143 | fi | |
2144 | ||
2145 | if test "$wxUSE_OPTIMISE" = yes; then | |
698dcdb6 | 2146 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2147 | else |
698dcdb6 | 2148 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2149 | fi |
698dcdb6 | 2150 | |
10f2d63a | 2151 | |
698dcdb6 VZ |
2152 | echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6 |
2153 | echo "configure:2154: checking for --enable-debug" >&5 | |
10f2d63a VZ |
2154 | no_cache=0 |
2155 | # Check whether --enable-debug or --disable-debug was given. | |
2156 | if test "${enable_debug+set}" = set; then | |
2157 | enableval="$enable_debug" | |
698dcdb6 | 2158 | |
10f2d63a VZ |
2159 | if test "$enableval" = yes; then |
2160 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2161 | else | |
2162 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2163 | fi | |
698dcdb6 | 2164 | |
10f2d63a | 2165 | else |
698dcdb6 | 2166 | |
10f2d63a VZ |
2167 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2168 | if test "x$LINE" != x ; then | |
2169 | eval "DEFAULT_$LINE" | |
2170 | else | |
2171 | no_cache=1 | |
2172 | fi | |
2173 | ||
2174 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
698dcdb6 VZ |
2175 | |
2176 | fi | |
10f2d63a VZ |
2177 | |
2178 | ||
2179 | eval "$ac_cv_use_debug" | |
2180 | if test "$no_cache" != 1; then | |
2181 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2182 | fi | |
2183 | ||
2184 | if test "$wxUSE_DEBUG" = yes; then | |
698dcdb6 | 2185 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2186 | else |
698dcdb6 | 2187 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2188 | fi |
698dcdb6 | 2189 | |
10f2d63a VZ |
2190 | |
2191 | if test "$wxUSE_DEBUG" = "yes"; then | |
2192 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2193 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2194 | elif test "$wxUSE_DEBUG" = "no"; then | |
2195 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2196 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2197 | fi | |
2198 | ||
698dcdb6 VZ |
2199 | |
2200 | echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6 | |
2201 | echo "configure:2202: checking for --enable-debug_flag" >&5 | |
10f2d63a VZ |
2202 | no_cache=0 |
2203 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2204 | if test "${enable_debug_flag+set}" = set; then | |
2205 | enableval="$enable_debug_flag" | |
698dcdb6 | 2206 | |
10f2d63a VZ |
2207 | if test "$enableval" = yes; then |
2208 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2209 | else | |
2210 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2211 | fi | |
698dcdb6 | 2212 | |
10f2d63a | 2213 | else |
698dcdb6 | 2214 | |
10f2d63a VZ |
2215 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2216 | if test "x$LINE" != x ; then | |
2217 | eval "DEFAULT_$LINE" | |
2218 | else | |
2219 | no_cache=1 | |
2220 | fi | |
2221 | ||
2222 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
698dcdb6 VZ |
2223 | |
2224 | fi | |
10f2d63a VZ |
2225 | |
2226 | ||
2227 | eval "$ac_cv_use_debug_flag" | |
2228 | if test "$no_cache" != 1; then | |
2229 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2230 | fi | |
2231 | ||
2232 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
698dcdb6 | 2233 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2234 | else |
698dcdb6 | 2235 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2236 | fi |
698dcdb6 | 2237 | |
10f2d63a | 2238 | |
698dcdb6 VZ |
2239 | echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6 |
2240 | echo "configure:2241: checking for --enable-debug_info" >&5 | |
10f2d63a VZ |
2241 | no_cache=0 |
2242 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2243 | if test "${enable_debug_info+set}" = set; then | |
2244 | enableval="$enable_debug_info" | |
698dcdb6 | 2245 | |
10f2d63a VZ |
2246 | if test "$enableval" = yes; then |
2247 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2248 | else | |
2249 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2250 | fi | |
698dcdb6 | 2251 | |
10f2d63a | 2252 | else |
698dcdb6 | 2253 | |
10f2d63a VZ |
2254 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2255 | if test "x$LINE" != x ; then | |
2256 | eval "DEFAULT_$LINE" | |
2257 | else | |
2258 | no_cache=1 | |
2259 | fi | |
2260 | ||
2261 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
698dcdb6 VZ |
2262 | |
2263 | fi | |
10f2d63a VZ |
2264 | |
2265 | ||
2266 | eval "$ac_cv_use_debug_info" | |
2267 | if test "$no_cache" != 1; then | |
2268 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2269 | fi | |
2270 | ||
2271 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
698dcdb6 | 2272 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2273 | else |
698dcdb6 | 2274 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2275 | fi |
698dcdb6 | 2276 | |
10f2d63a | 2277 | |
698dcdb6 VZ |
2278 | echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6 |
2279 | echo "configure:2280: checking for --enable-debug_gdb" >&5 | |
10f2d63a VZ |
2280 | no_cache=0 |
2281 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2282 | if test "${enable_debug_gdb+set}" = set; then | |
2283 | enableval="$enable_debug_gdb" | |
698dcdb6 | 2284 | |
10f2d63a VZ |
2285 | if test "$enableval" = yes; then |
2286 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2287 | else | |
2288 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2289 | fi | |
698dcdb6 | 2290 | |
10f2d63a | 2291 | else |
698dcdb6 | 2292 | |
10f2d63a VZ |
2293 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2294 | if test "x$LINE" != x ; then | |
2295 | eval "DEFAULT_$LINE" | |
2296 | else | |
2297 | no_cache=1 | |
2298 | fi | |
2299 | ||
2300 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
698dcdb6 VZ |
2301 | |
2302 | fi | |
10f2d63a VZ |
2303 | |
2304 | ||
2305 | eval "$ac_cv_use_debug_gdb" | |
2306 | if test "$no_cache" != 1; then | |
2307 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2308 | fi | |
2309 | ||
2310 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
698dcdb6 | 2311 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2312 | else |
698dcdb6 | 2313 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2314 | fi |
698dcdb6 | 2315 | |
10f2d63a | 2316 | |
698dcdb6 VZ |
2317 | echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6 |
2318 | echo "configure:2319: checking for --enable-debug_cntxt" >&5 | |
10f2d63a VZ |
2319 | no_cache=0 |
2320 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2321 | if test "${enable_debug_cntxt+set}" = set; then | |
2322 | enableval="$enable_debug_cntxt" | |
698dcdb6 | 2323 | |
10f2d63a VZ |
2324 | if test "$enableval" = yes; then |
2325 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2326 | else | |
2327 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2328 | fi | |
698dcdb6 | 2329 | |
10f2d63a | 2330 | else |
698dcdb6 | 2331 | |
10f2d63a VZ |
2332 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2333 | if test "x$LINE" != x ; then | |
2334 | eval "DEFAULT_$LINE" | |
2335 | else | |
2336 | no_cache=1 | |
2337 | fi | |
2338 | ||
2339 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
698dcdb6 VZ |
2340 | |
2341 | fi | |
10f2d63a VZ |
2342 | |
2343 | ||
2344 | eval "$ac_cv_use_debug_cntxt" | |
2345 | if test "$no_cache" != 1; then | |
2346 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2347 | fi | |
2348 | ||
2349 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
698dcdb6 | 2350 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2351 | else |
698dcdb6 | 2352 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2353 | fi |
698dcdb6 | 2354 | |
10f2d63a | 2355 | |
698dcdb6 VZ |
2356 | echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6 |
2357 | echo "configure:2358: checking for --enable-mem_tracing" >&5 | |
10f2d63a VZ |
2358 | no_cache=0 |
2359 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2360 | if test "${enable_mem_tracing+set}" = set; then | |
2361 | enableval="$enable_mem_tracing" | |
698dcdb6 | 2362 | |
10f2d63a VZ |
2363 | if test "$enableval" = yes; then |
2364 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2365 | else | |
2366 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2367 | fi | |
698dcdb6 | 2368 | |
10f2d63a | 2369 | else |
698dcdb6 | 2370 | |
10f2d63a VZ |
2371 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2372 | if test "x$LINE" != x ; then | |
2373 | eval "DEFAULT_$LINE" | |
2374 | else | |
2375 | no_cache=1 | |
2376 | fi | |
2377 | ||
2378 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
698dcdb6 VZ |
2379 | |
2380 | fi | |
10f2d63a VZ |
2381 | |
2382 | ||
2383 | eval "$ac_cv_use_mem_tracing" | |
2384 | if test "$no_cache" != 1; then | |
2385 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2386 | fi | |
2387 | ||
2388 | if test "$wxUSE_MEM_TRACING" = yes; then | |
698dcdb6 | 2389 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2390 | else |
698dcdb6 | 2391 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2392 | fi |
698dcdb6 | 2393 | |
10f2d63a | 2394 | |
698dcdb6 VZ |
2395 | echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6 |
2396 | echo "configure:2397: checking for --enable-profile" >&5 | |
10f2d63a VZ |
2397 | no_cache=0 |
2398 | # Check whether --enable-profile or --disable-profile was given. | |
2399 | if test "${enable_profile+set}" = set; then | |
2400 | enableval="$enable_profile" | |
698dcdb6 | 2401 | |
10f2d63a VZ |
2402 | if test "$enableval" = yes; then |
2403 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2404 | else | |
2405 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2406 | fi | |
698dcdb6 | 2407 | |
10f2d63a | 2408 | else |
698dcdb6 | 2409 | |
10f2d63a VZ |
2410 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2411 | if test "x$LINE" != x ; then | |
2412 | eval "DEFAULT_$LINE" | |
2413 | else | |
2414 | no_cache=1 | |
2415 | fi | |
2416 | ||
2417 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
698dcdb6 VZ |
2418 | |
2419 | fi | |
10f2d63a VZ |
2420 | |
2421 | ||
2422 | eval "$ac_cv_use_profile" | |
2423 | if test "$no_cache" != 1; then | |
2424 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2425 | fi | |
2426 | ||
2427 | if test "$wxUSE_PROFILE" = yes; then | |
698dcdb6 | 2428 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2429 | else |
698dcdb6 | 2430 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2431 | fi |
698dcdb6 | 2432 | |
10f2d63a | 2433 | |
698dcdb6 VZ |
2434 | echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6 |
2435 | echo "configure:2436: checking for --enable-no_rtti" >&5 | |
10f2d63a VZ |
2436 | no_cache=0 |
2437 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2438 | if test "${enable_no_rtti+set}" = set; then | |
2439 | enableval="$enable_no_rtti" | |
698dcdb6 | 2440 | |
10f2d63a VZ |
2441 | if test "$enableval" = yes; then |
2442 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2443 | else | |
2444 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2445 | fi | |
698dcdb6 | 2446 | |
10f2d63a | 2447 | else |
698dcdb6 | 2448 | |
10f2d63a VZ |
2449 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2450 | if test "x$LINE" != x ; then | |
2451 | eval "DEFAULT_$LINE" | |
2452 | else | |
2453 | no_cache=1 | |
2454 | fi | |
2455 | ||
2456 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
698dcdb6 VZ |
2457 | |
2458 | fi | |
10f2d63a VZ |
2459 | |
2460 | ||
2461 | eval "$ac_cv_use_no_rtti" | |
2462 | if test "$no_cache" != 1; then | |
2463 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2464 | fi | |
2465 | ||
2466 | if test "$wxUSE_NO_RTTI" = yes; then | |
698dcdb6 | 2467 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2468 | else |
698dcdb6 | 2469 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2470 | fi |
698dcdb6 | 2471 | |
10f2d63a | 2472 | |
698dcdb6 VZ |
2473 | echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6 |
2474 | echo "configure:2475: checking for --enable-no_exceptions" >&5 | |
10f2d63a VZ |
2475 | no_cache=0 |
2476 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2477 | if test "${enable_no_exceptions+set}" = set; then | |
2478 | enableval="$enable_no_exceptions" | |
698dcdb6 | 2479 | |
10f2d63a VZ |
2480 | if test "$enableval" = yes; then |
2481 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2482 | else | |
2483 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2484 | fi | |
698dcdb6 | 2485 | |
10f2d63a | 2486 | else |
698dcdb6 | 2487 | |
10f2d63a VZ |
2488 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2489 | if test "x$LINE" != x ; then | |
2490 | eval "DEFAULT_$LINE" | |
2491 | else | |
2492 | no_cache=1 | |
2493 | fi | |
2494 | ||
2495 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
698dcdb6 VZ |
2496 | |
2497 | fi | |
10f2d63a VZ |
2498 | |
2499 | ||
2500 | eval "$ac_cv_use_no_exceptions" | |
2501 | if test "$no_cache" != 1; then | |
2502 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2503 | fi | |
2504 | ||
2505 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
698dcdb6 | 2506 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2507 | else |
698dcdb6 | 2508 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2509 | fi |
698dcdb6 | 2510 | |
10f2d63a | 2511 | |
698dcdb6 VZ |
2512 | echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6 |
2513 | echo "configure:2514: checking for --enable-permissive" >&5 | |
10f2d63a VZ |
2514 | no_cache=0 |
2515 | # Check whether --enable-permissive or --disable-permissive was given. | |
2516 | if test "${enable_permissive+set}" = set; then | |
2517 | enableval="$enable_permissive" | |
698dcdb6 | 2518 | |
10f2d63a VZ |
2519 | if test "$enableval" = yes; then |
2520 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2521 | else | |
2522 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2523 | fi | |
698dcdb6 | 2524 | |
10f2d63a | 2525 | else |
698dcdb6 | 2526 | |
10f2d63a VZ |
2527 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2528 | if test "x$LINE" != x ; then | |
2529 | eval "DEFAULT_$LINE" | |
2530 | else | |
2531 | no_cache=1 | |
2532 | fi | |
2533 | ||
2534 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
698dcdb6 VZ |
2535 | |
2536 | fi | |
10f2d63a VZ |
2537 | |
2538 | ||
2539 | eval "$ac_cv_use_permissive" | |
2540 | if test "$no_cache" != 1; then | |
2541 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2542 | fi | |
2543 | ||
2544 | if test "$wxUSE_PERMISSIVE" = yes; then | |
698dcdb6 | 2545 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2546 | else |
698dcdb6 | 2547 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2548 | fi |
698dcdb6 | 2549 | |
10f2d63a | 2550 | |
698dcdb6 VZ |
2551 | echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6 |
2552 | echo "configure:2553: checking for --enable-no_deps" >&5 | |
10f2d63a VZ |
2553 | no_cache=0 |
2554 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2555 | if test "${enable_no_deps+set}" = set; then | |
2556 | enableval="$enable_no_deps" | |
698dcdb6 | 2557 | |
10f2d63a VZ |
2558 | if test "$enableval" = yes; then |
2559 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2560 | else | |
2561 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2562 | fi | |
698dcdb6 | 2563 | |
10f2d63a | 2564 | else |
698dcdb6 | 2565 | |
10f2d63a VZ |
2566 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2567 | if test "x$LINE" != x ; then | |
2568 | eval "DEFAULT_$LINE" | |
2569 | else | |
2570 | no_cache=1 | |
2571 | fi | |
2572 | ||
2573 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
698dcdb6 VZ |
2574 | |
2575 | fi | |
10f2d63a VZ |
2576 | |
2577 | ||
2578 | eval "$ac_cv_use_no_deps" | |
2579 | if test "$no_cache" != 1; then | |
2580 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2581 | fi | |
2582 | ||
2583 | if test "$wxUSE_NO_DEPS" = yes; then | |
698dcdb6 | 2584 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2585 | else |
698dcdb6 | 2586 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2587 | fi |
698dcdb6 VZ |
2588 | |
2589 | ||
10f2d63a | 2590 | |
698dcdb6 VZ |
2591 | |
2592 | echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6 | |
2593 | echo "configure:2594: checking for --enable-intl" >&5 | |
10f2d63a VZ |
2594 | no_cache=0 |
2595 | # Check whether --enable-intl or --disable-intl was given. | |
2596 | if test "${enable_intl+set}" = set; then | |
2597 | enableval="$enable_intl" | |
698dcdb6 | 2598 | |
10f2d63a VZ |
2599 | if test "$enableval" = yes; then |
2600 | ac_cv_use_intl='wxUSE_INTL=yes' | |
2601 | else | |
2602 | ac_cv_use_intl='wxUSE_INTL=no' | |
2603 | fi | |
698dcdb6 | 2604 | |
10f2d63a | 2605 | else |
698dcdb6 | 2606 | |
10f2d63a VZ |
2607 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
2608 | if test "x$LINE" != x ; then | |
2609 | eval "DEFAULT_$LINE" | |
2610 | else | |
2611 | no_cache=1 | |
2612 | fi | |
2613 | ||
2614 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
698dcdb6 VZ |
2615 | |
2616 | fi | |
10f2d63a VZ |
2617 | |
2618 | ||
2619 | eval "$ac_cv_use_intl" | |
2620 | if test "$no_cache" != 1; then | |
2621 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
2622 | fi | |
2623 | ||
2624 | if test "$wxUSE_INTL" = yes; then | |
698dcdb6 | 2625 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2626 | else |
698dcdb6 | 2627 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2628 | fi |
698dcdb6 | 2629 | |
10f2d63a | 2630 | |
698dcdb6 VZ |
2631 | echo $ac_n "checking for --enable-config""... $ac_c" 1>&6 |
2632 | echo "configure:2633: checking for --enable-config" >&5 | |
10f2d63a VZ |
2633 | no_cache=0 |
2634 | # Check whether --enable-config or --disable-config was given. | |
2635 | if test "${enable_config+set}" = set; then | |
2636 | enableval="$enable_config" | |
698dcdb6 | 2637 | |
10f2d63a VZ |
2638 | if test "$enableval" = yes; then |
2639 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
2640 | else | |
2641 | ac_cv_use_config='wxUSE_CONFIG=no' | |
2642 | fi | |
698dcdb6 | 2643 | |
10f2d63a | 2644 | else |
698dcdb6 | 2645 | |
10f2d63a VZ |
2646 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
2647 | if test "x$LINE" != x ; then | |
2648 | eval "DEFAULT_$LINE" | |
2649 | else | |
2650 | no_cache=1 | |
2651 | fi | |
2652 | ||
2653 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
698dcdb6 VZ |
2654 | |
2655 | fi | |
10f2d63a VZ |
2656 | |
2657 | ||
2658 | eval "$ac_cv_use_config" | |
2659 | if test "$no_cache" != 1; then | |
2660 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
2661 | fi | |
2662 | ||
2663 | if test "$wxUSE_CONFIG" = yes; then | |
698dcdb6 | 2664 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2665 | else |
698dcdb6 | 2666 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2667 | fi |
698dcdb6 VZ |
2668 | |
2669 | ||
b12915c1 | 2670 | |
698dcdb6 VZ |
2671 | echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6 |
2672 | echo "configure:2673: checking for --enable-sockets" >&5 | |
10f2d63a VZ |
2673 | no_cache=0 |
2674 | # Check whether --enable-sockets or --disable-sockets was given. | |
2675 | if test "${enable_sockets+set}" = set; then | |
2676 | enableval="$enable_sockets" | |
698dcdb6 | 2677 | |
10f2d63a VZ |
2678 | if test "$enableval" = yes; then |
2679 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
2680 | else | |
2681 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
2682 | fi | |
698dcdb6 | 2683 | |
10f2d63a | 2684 | else |
698dcdb6 | 2685 | |
10f2d63a VZ |
2686 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
2687 | if test "x$LINE" != x ; then | |
2688 | eval "DEFAULT_$LINE" | |
2689 | else | |
2690 | no_cache=1 | |
2691 | fi | |
2692 | ||
2693 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
698dcdb6 VZ |
2694 | |
2695 | fi | |
10f2d63a VZ |
2696 | |
2697 | ||
2698 | eval "$ac_cv_use_sockets" | |
2699 | if test "$no_cache" != 1; then | |
2700 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
2701 | fi | |
2702 | ||
2703 | if test "$wxUSE_SOCKETS" = yes; then | |
698dcdb6 | 2704 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2705 | else |
698dcdb6 | 2706 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2707 | fi |
698dcdb6 | 2708 | |
b12915c1 | 2709 | |
698dcdb6 VZ |
2710 | |
2711 | echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6 | |
2712 | echo "configure:2713: checking for --enable-ipc" >&5 | |
10f2d63a | 2713 | no_cache=0 |
eb4efbdc VZ |
2714 | # Check whether --enable-ipc or --disable-ipc was given. |
2715 | if test "${enable_ipc+set}" = set; then | |
2716 | enableval="$enable_ipc" | |
698dcdb6 | 2717 | |
10f2d63a | 2718 | if test "$enableval" = yes; then |
eb4efbdc | 2719 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 2720 | else |
eb4efbdc | 2721 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 2722 | fi |
698dcdb6 | 2723 | |
10f2d63a | 2724 | else |
698dcdb6 | 2725 | |
eb4efbdc | 2726 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
2727 | if test "x$LINE" != x ; then |
2728 | eval "DEFAULT_$LINE" | |
2729 | else | |
2730 | no_cache=1 | |
2731 | fi | |
2732 | ||
eb4efbdc | 2733 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
698dcdb6 VZ |
2734 | |
2735 | fi | |
10f2d63a VZ |
2736 | |
2737 | ||
eb4efbdc | 2738 | eval "$ac_cv_use_ipc" |
10f2d63a | 2739 | if test "$no_cache" != 1; then |
eb4efbdc | 2740 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2741 | fi |
2742 | ||
eb4efbdc | 2743 | if test "$wxUSE_IPC" = yes; then |
698dcdb6 | 2744 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2745 | else |
698dcdb6 | 2746 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2747 | fi |
698dcdb6 VZ |
2748 | |
2749 | ||
eb4efbdc | 2750 | |
698dcdb6 VZ |
2751 | echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6 |
2752 | echo "configure:2753: checking for --enable-dialupman" >&5 | |
10f2d63a | 2753 | no_cache=0 |
eb4efbdc VZ |
2754 | # Check whether --enable-dialupman or --disable-dialupman was given. |
2755 | if test "${enable_dialupman+set}" = set; then | |
2756 | enableval="$enable_dialupman" | |
698dcdb6 | 2757 | |
10f2d63a | 2758 | if test "$enableval" = yes; then |
eb4efbdc | 2759 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 2760 | else |
eb4efbdc | 2761 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 2762 | fi |
698dcdb6 | 2763 | |
10f2d63a | 2764 | else |
698dcdb6 | 2765 | |
eb4efbdc | 2766 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
2767 | if test "x$LINE" != x ; then |
2768 | eval "DEFAULT_$LINE" | |
2769 | else | |
2770 | no_cache=1 | |
2771 | fi | |
2772 | ||
eb4efbdc | 2773 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
698dcdb6 VZ |
2774 | |
2775 | fi | |
10f2d63a VZ |
2776 | |
2777 | ||
eb4efbdc | 2778 | eval "$ac_cv_use_dialupman" |
10f2d63a | 2779 | if test "$no_cache" != 1; then |
eb4efbdc | 2780 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2781 | fi |
2782 | ||
eb4efbdc | 2783 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
698dcdb6 | 2784 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2785 | else |
698dcdb6 | 2786 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2787 | fi |
698dcdb6 | 2788 | |
10f2d63a | 2789 | |
698dcdb6 VZ |
2790 | echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6 |
2791 | echo "configure:2792: checking for --enable-apple_ieee" >&5 | |
10f2d63a VZ |
2792 | no_cache=0 |
2793 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
2794 | if test "${enable_apple_ieee+set}" = set; then | |
2795 | enableval="$enable_apple_ieee" | |
698dcdb6 | 2796 | |
10f2d63a VZ |
2797 | if test "$enableval" = yes; then |
2798 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
2799 | else | |
2800 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
2801 | fi | |
698dcdb6 | 2802 | |
10f2d63a | 2803 | else |
698dcdb6 | 2804 | |
10f2d63a VZ |
2805 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
2806 | if test "x$LINE" != x ; then | |
2807 | eval "DEFAULT_$LINE" | |
2808 | else | |
2809 | no_cache=1 | |
2810 | fi | |
2811 | ||
2812 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
698dcdb6 VZ |
2813 | |
2814 | fi | |
10f2d63a VZ |
2815 | |
2816 | ||
2817 | eval "$ac_cv_use_apple_ieee" | |
2818 | if test "$no_cache" != 1; then | |
2819 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
2820 | fi | |
2821 | ||
2822 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
698dcdb6 | 2823 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2824 | else |
698dcdb6 | 2825 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2826 | fi |
698dcdb6 | 2827 | |
10f2d63a | 2828 | |
698dcdb6 VZ |
2829 | echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6 |
2830 | echo "configure:2831: checking for --enable-timedate" >&5 | |
10f2d63a VZ |
2831 | no_cache=0 |
2832 | # Check whether --enable-timedate or --disable-timedate was given. | |
2833 | if test "${enable_timedate+set}" = set; then | |
2834 | enableval="$enable_timedate" | |
698dcdb6 | 2835 | |
10f2d63a VZ |
2836 | if test "$enableval" = yes; then |
2837 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
2838 | else | |
2839 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
2840 | fi | |
698dcdb6 | 2841 | |
10f2d63a | 2842 | else |
698dcdb6 | 2843 | |
10f2d63a VZ |
2844 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` |
2845 | if test "x$LINE" != x ; then | |
2846 | eval "DEFAULT_$LINE" | |
2847 | else | |
2848 | no_cache=1 | |
2849 | fi | |
2850 | ||
2851 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
698dcdb6 VZ |
2852 | |
2853 | fi | |
10f2d63a VZ |
2854 | |
2855 | ||
2856 | eval "$ac_cv_use_timedate" | |
2857 | if test "$no_cache" != 1; then | |
2858 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
2859 | fi | |
2860 | ||
2861 | if test "$wxUSE_TIMEDATE" = yes; then | |
698dcdb6 | 2862 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2863 | else |
698dcdb6 | 2864 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2865 | fi |
698dcdb6 | 2866 | |
10f2d63a | 2867 | |
698dcdb6 VZ |
2868 | echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6 |
2869 | echo "configure:2870: checking for --enable-wave" >&5 | |
10f2d63a VZ |
2870 | no_cache=0 |
2871 | # Check whether --enable-wave or --disable-wave was given. | |
2872 | if test "${enable_wave+set}" = set; then | |
2873 | enableval="$enable_wave" | |
698dcdb6 | 2874 | |
10f2d63a VZ |
2875 | if test "$enableval" = yes; then |
2876 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
2877 | else | |
2878 | ac_cv_use_wave='wxUSE_WAVE=no' | |
2879 | fi | |
698dcdb6 | 2880 | |
10f2d63a | 2881 | else |
698dcdb6 | 2882 | |
10f2d63a VZ |
2883 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
2884 | if test "x$LINE" != x ; then | |
2885 | eval "DEFAULT_$LINE" | |
2886 | else | |
2887 | no_cache=1 | |
2888 | fi | |
2889 | ||
2890 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
698dcdb6 VZ |
2891 | |
2892 | fi | |
10f2d63a VZ |
2893 | |
2894 | ||
2895 | eval "$ac_cv_use_wave" | |
2896 | if test "$no_cache" != 1; then | |
2897 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
2898 | fi | |
2899 | ||
2900 | if test "$wxUSE_WAVE" = yes; then | |
698dcdb6 | 2901 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2902 | else |
698dcdb6 | 2903 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2904 | fi |
698dcdb6 | 2905 | |
10f2d63a | 2906 | |
698dcdb6 VZ |
2907 | echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6 |
2908 | echo "configure:2909: checking for --enable-fraction" >&5 | |
10f2d63a VZ |
2909 | no_cache=0 |
2910 | # Check whether --enable-fraction or --disable-fraction was given. | |
2911 | if test "${enable_fraction+set}" = set; then | |
2912 | enableval="$enable_fraction" | |
698dcdb6 | 2913 | |
10f2d63a VZ |
2914 | if test "$enableval" = yes; then |
2915 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
2916 | else | |
2917 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
2918 | fi | |
698dcdb6 | 2919 | |
10f2d63a | 2920 | else |
698dcdb6 | 2921 | |
10f2d63a VZ |
2922 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
2923 | if test "x$LINE" != x ; then | |
2924 | eval "DEFAULT_$LINE" | |
2925 | else | |
2926 | no_cache=1 | |
2927 | fi | |
2928 | ||
2929 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
698dcdb6 VZ |
2930 | |
2931 | fi | |
10f2d63a VZ |
2932 | |
2933 | ||
2934 | eval "$ac_cv_use_fraction" | |
2935 | if test "$no_cache" != 1; then | |
2936 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
2937 | fi | |
2938 | ||
2939 | if test "$wxUSE_FRACTION" = yes; then | |
698dcdb6 | 2940 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2941 | else |
698dcdb6 | 2942 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2943 | fi |
698dcdb6 | 2944 | |
10f2d63a | 2945 | |
698dcdb6 VZ |
2946 | echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6 |
2947 | echo "configure:2948: checking for --enable-dynlib" >&5 | |
10f2d63a VZ |
2948 | no_cache=0 |
2949 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
2950 | if test "${enable_dynlib+set}" = set; then | |
2951 | enableval="$enable_dynlib" | |
698dcdb6 | 2952 | |
10f2d63a VZ |
2953 | if test "$enableval" = yes; then |
2954 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
2955 | else | |
2956 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
2957 | fi | |
698dcdb6 | 2958 | |
10f2d63a | 2959 | else |
698dcdb6 | 2960 | |
10f2d63a VZ |
2961 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
2962 | if test "x$LINE" != x ; then | |
2963 | eval "DEFAULT_$LINE" | |
2964 | else | |
2965 | no_cache=1 | |
2966 | fi | |
2967 | ||
2968 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
698dcdb6 VZ |
2969 | |
2970 | fi | |
10f2d63a VZ |
2971 | |
2972 | ||
2973 | eval "$ac_cv_use_dynlib" | |
2974 | if test "$no_cache" != 1; then | |
2975 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
2976 | fi | |
2977 | ||
2978 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
698dcdb6 | 2979 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2980 | else |
698dcdb6 | 2981 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2982 | fi |
698dcdb6 | 2983 | |
10f2d63a | 2984 | |
698dcdb6 VZ |
2985 | echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6 |
2986 | echo "configure:2987: checking for --enable-longlong" >&5 | |
10f2d63a VZ |
2987 | no_cache=0 |
2988 | # Check whether --enable-longlong or --disable-longlong was given. | |
2989 | if test "${enable_longlong+set}" = set; then | |
2990 | enableval="$enable_longlong" | |
698dcdb6 | 2991 | |
10f2d63a VZ |
2992 | if test "$enableval" = yes; then |
2993 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
2994 | else | |
2995 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
2996 | fi | |
698dcdb6 | 2997 | |
10f2d63a | 2998 | else |
698dcdb6 | 2999 | |
10f2d63a VZ |
3000 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3001 | if test "x$LINE" != x ; then | |
3002 | eval "DEFAULT_$LINE" | |
3003 | else | |
3004 | no_cache=1 | |
3005 | fi | |
3006 | ||
3007 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
698dcdb6 VZ |
3008 | |
3009 | fi | |
10f2d63a VZ |
3010 | |
3011 | ||
3012 | eval "$ac_cv_use_longlong" | |
3013 | if test "$no_cache" != 1; then | |
3014 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3015 | fi | |
3016 | ||
3017 | if test "$wxUSE_LONGLONG" = yes; then | |
698dcdb6 | 3018 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3019 | else |
698dcdb6 | 3020 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3021 | fi |
698dcdb6 | 3022 | |
10f2d63a | 3023 | |
698dcdb6 VZ |
3024 | echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6 |
3025 | echo "configure:3026: checking for --enable-geometry" >&5 | |
e8f65ba6 RR |
3026 | no_cache=0 |
3027 | # Check whether --enable-geometry or --disable-geometry was given. | |
3028 | if test "${enable_geometry+set}" = set; then | |
3029 | enableval="$enable_geometry" | |
698dcdb6 | 3030 | |
e8f65ba6 RR |
3031 | if test "$enableval" = yes; then |
3032 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3033 | else | |
3034 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3035 | fi | |
698dcdb6 | 3036 | |
e8f65ba6 | 3037 | else |
698dcdb6 | 3038 | |
e8f65ba6 RR |
3039 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
3040 | if test "x$LINE" != x ; then | |
3041 | eval "DEFAULT_$LINE" | |
3042 | else | |
3043 | no_cache=1 | |
3044 | fi | |
3045 | ||
3046 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
698dcdb6 VZ |
3047 | |
3048 | fi | |
e8f65ba6 RR |
3049 | |
3050 | ||
3051 | eval "$ac_cv_use_geometry" | |
3052 | if test "$no_cache" != 1; then | |
3053 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3054 | fi | |
3055 | ||
3056 | if test "$wxUSE_GEOMETRY" = yes; then | |
698dcdb6 | 3057 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 3058 | else |
698dcdb6 | 3059 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 3060 | fi |
698dcdb6 | 3061 | |
e8f65ba6 | 3062 | |
698dcdb6 VZ |
3063 | echo $ac_n "checking for --enable-log""... $ac_c" 1>&6 |
3064 | echo "configure:3065: checking for --enable-log" >&5 | |
10f2d63a VZ |
3065 | no_cache=0 |
3066 | # Check whether --enable-log or --disable-log was given. | |
3067 | if test "${enable_log+set}" = set; then | |
3068 | enableval="$enable_log" | |
698dcdb6 | 3069 | |
10f2d63a VZ |
3070 | if test "$enableval" = yes; then |
3071 | ac_cv_use_log='wxUSE_LOG=yes' | |
3072 | else | |
3073 | ac_cv_use_log='wxUSE_LOG=no' | |
3074 | fi | |
698dcdb6 | 3075 | |
10f2d63a | 3076 | else |
698dcdb6 | 3077 | |
10f2d63a VZ |
3078 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
3079 | if test "x$LINE" != x ; then | |
3080 | eval "DEFAULT_$LINE" | |
3081 | else | |
3082 | no_cache=1 | |
3083 | fi | |
3084 | ||
3085 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
698dcdb6 VZ |
3086 | |
3087 | fi | |
10f2d63a VZ |
3088 | |
3089 | ||
3090 | eval "$ac_cv_use_log" | |
3091 | if test "$no_cache" != 1; then | |
3092 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
3093 | fi | |
3094 | ||
3095 | if test "$wxUSE_LOG" = yes; then | |
698dcdb6 | 3096 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3097 | else |
698dcdb6 | 3098 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3099 | fi |
698dcdb6 | 3100 | |
10f2d63a | 3101 | |
698dcdb6 VZ |
3102 | echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6 |
3103 | echo "configure:3104: checking for --enable-streams" >&5 | |
10f2d63a VZ |
3104 | no_cache=0 |
3105 | # Check whether --enable-streams or --disable-streams was given. | |
3106 | if test "${enable_streams+set}" = set; then | |
3107 | enableval="$enable_streams" | |
698dcdb6 | 3108 | |
10f2d63a VZ |
3109 | if test "$enableval" = yes; then |
3110 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
3111 | else | |
3112 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
3113 | fi | |
698dcdb6 | 3114 | |
10f2d63a | 3115 | else |
698dcdb6 | 3116 | |
10f2d63a VZ |
3117 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
3118 | if test "x$LINE" != x ; then | |
3119 | eval "DEFAULT_$LINE" | |
3120 | else | |
3121 | no_cache=1 | |
3122 | fi | |
3123 | ||
3124 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
698dcdb6 VZ |
3125 | |
3126 | fi | |
10f2d63a VZ |
3127 | |
3128 | ||
3129 | eval "$ac_cv_use_streams" | |
3130 | if test "$no_cache" != 1; then | |
3131 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
3132 | fi | |
3133 | ||
3134 | if test "$wxUSE_STREAMS" = yes; then | |
698dcdb6 | 3135 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3136 | else |
698dcdb6 | 3137 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3138 | fi |
698dcdb6 | 3139 | |
10f2d63a | 3140 | |
698dcdb6 VZ |
3141 | echo $ac_n "checking for --enable-file""... $ac_c" 1>&6 |
3142 | echo "configure:3143: checking for --enable-file" >&5 | |
10f2d63a VZ |
3143 | no_cache=0 |
3144 | # Check whether --enable-file or --disable-file was given. | |
3145 | if test "${enable_file+set}" = set; then | |
3146 | enableval="$enable_file" | |
698dcdb6 | 3147 | |
10f2d63a VZ |
3148 | if test "$enableval" = yes; then |
3149 | ac_cv_use_file='wxUSE_FILE=yes' | |
3150 | else | |
3151 | ac_cv_use_file='wxUSE_FILE=no' | |
3152 | fi | |
698dcdb6 | 3153 | |
10f2d63a | 3154 | else |
698dcdb6 | 3155 | |
10f2d63a VZ |
3156 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
3157 | if test "x$LINE" != x ; then | |
3158 | eval "DEFAULT_$LINE" | |
3159 | else | |
3160 | no_cache=1 | |
3161 | fi | |
3162 | ||
3163 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
698dcdb6 VZ |
3164 | |
3165 | fi | |
10f2d63a VZ |
3166 | |
3167 | ||
3168 | eval "$ac_cv_use_file" | |
3169 | if test "$no_cache" != 1; then | |
3170 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
3171 | fi | |
3172 | ||
3173 | if test "$wxUSE_FILE" = yes; then | |
698dcdb6 | 3174 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3175 | else |
698dcdb6 | 3176 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3177 | fi |
698dcdb6 | 3178 | |
10f2d63a | 3179 | |
698dcdb6 VZ |
3180 | echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6 |
3181 | echo "configure:3182: checking for --enable-textfile" >&5 | |
10f2d63a VZ |
3182 | no_cache=0 |
3183 | # Check whether --enable-textfile or --disable-textfile was given. | |
3184 | if test "${enable_textfile+set}" = set; then | |
3185 | enableval="$enable_textfile" | |
698dcdb6 | 3186 | |
10f2d63a VZ |
3187 | if test "$enableval" = yes; then |
3188 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
3189 | else | |
3190 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
3191 | fi | |
698dcdb6 | 3192 | |
10f2d63a | 3193 | else |
698dcdb6 | 3194 | |
10f2d63a VZ |
3195 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
3196 | if test "x$LINE" != x ; then | |
3197 | eval "DEFAULT_$LINE" | |
3198 | else | |
3199 | no_cache=1 | |
3200 | fi | |
3201 | ||
3202 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
698dcdb6 VZ |
3203 | |
3204 | fi | |
10f2d63a VZ |
3205 | |
3206 | ||
3207 | eval "$ac_cv_use_textfile" | |
3208 | if test "$no_cache" != 1; then | |
3209 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
3210 | fi | |
3211 | ||
3212 | if test "$wxUSE_TEXTFILE" = yes; then | |
698dcdb6 | 3213 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3214 | else |
698dcdb6 | 3215 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3216 | fi |
698dcdb6 | 3217 | |
10f2d63a | 3218 | |
698dcdb6 VZ |
3219 | echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6 |
3220 | echo "configure:3221: checking for --enable-unicode" >&5 | |
10f2d63a VZ |
3221 | no_cache=0 |
3222 | # Check whether --enable-unicode or --disable-unicode was given. | |
3223 | if test "${enable_unicode+set}" = set; then | |
3224 | enableval="$enable_unicode" | |
698dcdb6 | 3225 | |
10f2d63a VZ |
3226 | if test "$enableval" = yes; then |
3227 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
3228 | else | |
3229 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
3230 | fi | |
698dcdb6 | 3231 | |
10f2d63a | 3232 | else |
698dcdb6 | 3233 | |
10f2d63a VZ |
3234 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` |
3235 | if test "x$LINE" != x ; then | |
3236 | eval "DEFAULT_$LINE" | |
3237 | else | |
3238 | no_cache=1 | |
3239 | fi | |
3240 | ||
3241 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
698dcdb6 VZ |
3242 | |
3243 | fi | |
10f2d63a VZ |
3244 | |
3245 | ||
3246 | eval "$ac_cv_use_unicode" | |
3247 | if test "$no_cache" != 1; then | |
3248 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
3249 | fi | |
3250 | ||
3251 | if test "$wxUSE_UNICODE" = yes; then | |
698dcdb6 | 3252 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3253 | else |
698dcdb6 | 3254 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3255 | fi |
698dcdb6 | 3256 | |
10f2d63a | 3257 | |
698dcdb6 VZ |
3258 | echo $ac_n "checking for --enable-wcsrtombs""... $ac_c" 1>&6 |
3259 | echo "configure:3260: checking for --enable-wcsrtombs" >&5 | |
10f2d63a VZ |
3260 | no_cache=0 |
3261 | # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given. | |
3262 | if test "${enable_wcsrtombs+set}" = set; then | |
3263 | enableval="$enable_wcsrtombs" | |
698dcdb6 | 3264 | |
10f2d63a VZ |
3265 | if test "$enableval" = yes; then |
3266 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes' | |
3267 | else | |
3268 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no' | |
3269 | fi | |
698dcdb6 | 3270 | |
10f2d63a | 3271 | else |
698dcdb6 | 3272 | |
10f2d63a VZ |
3273 | LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}` |
3274 | if test "x$LINE" != x ; then | |
3275 | eval "DEFAULT_$LINE" | |
3276 | else | |
3277 | no_cache=1 | |
3278 | fi | |
3279 | ||
3280 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS | |
698dcdb6 VZ |
3281 | |
3282 | fi | |
10f2d63a VZ |
3283 | |
3284 | ||
3285 | eval "$ac_cv_use_wcsrtombs" | |
3286 | if test "$no_cache" != 1; then | |
3287 | echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp | |
3288 | fi | |
3289 | ||
3290 | if test "$wxUSE_WCSRTOMBS" = yes; then | |
698dcdb6 | 3291 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3292 | else |
698dcdb6 | 3293 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3294 | fi |
698dcdb6 | 3295 | |
10f2d63a | 3296 | |
698dcdb6 VZ |
3297 | echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6 |
3298 | echo "configure:3299: checking for --enable-wxprintfv" >&5 | |
10f2d63a VZ |
3299 | no_cache=0 |
3300 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
3301 | if test "${enable_wxprintfv+set}" = set; then | |
3302 | enableval="$enable_wxprintfv" | |
698dcdb6 | 3303 | |
10f2d63a VZ |
3304 | if test "$enableval" = yes; then |
3305 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
3306 | else | |
3307 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
3308 | fi | |
698dcdb6 | 3309 | |
10f2d63a | 3310 | else |
698dcdb6 | 3311 | |
10f2d63a VZ |
3312 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
3313 | if test "x$LINE" != x ; then | |
3314 | eval "DEFAULT_$LINE" | |
3315 | else | |
3316 | no_cache=1 | |
3317 | fi | |
3318 | ||
3319 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
698dcdb6 VZ |
3320 | |
3321 | fi | |
10f2d63a VZ |
3322 | |
3323 | ||
3324 | eval "$ac_cv_use_wxprintfv" | |
3325 | if test "$no_cache" != 1; then | |
3326 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
3327 | fi | |
3328 | ||
3329 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
698dcdb6 | 3330 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3331 | else |
698dcdb6 | 3332 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3333 | fi |
698dcdb6 | 3334 | |
10f2d63a | 3335 | |
698dcdb6 VZ |
3336 | echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6 |
3337 | echo "configure:3338: checking for --enable-std_iostreams" >&5 | |
10f2d63a VZ |
3338 | no_cache=0 |
3339 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
3340 | if test "${enable_std_iostreams+set}" = set; then | |
3341 | enableval="$enable_std_iostreams" | |
698dcdb6 | 3342 | |
10f2d63a VZ |
3343 | if test "$enableval" = yes; then |
3344 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
3345 | else | |
3346 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
3347 | fi | |
698dcdb6 | 3348 | |
10f2d63a | 3349 | else |
698dcdb6 | 3350 | |
10f2d63a VZ |
3351 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
3352 | if test "x$LINE" != x ; then | |
3353 | eval "DEFAULT_$LINE" | |
3354 | else | |
3355 | no_cache=1 | |
3356 | fi | |
3357 | ||
3358 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
698dcdb6 VZ |
3359 | |
3360 | fi | |
10f2d63a VZ |
3361 | |
3362 | ||
3363 | eval "$ac_cv_use_std_iostreams" | |
3364 | if test "$no_cache" != 1; then | |
3365 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
3366 | fi | |
3367 | ||
3368 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
698dcdb6 | 3369 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3370 | else |
698dcdb6 | 3371 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3372 | fi |
698dcdb6 | 3373 | |
10f2d63a | 3374 | |
698dcdb6 VZ |
3375 | echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6 |
3376 | echo "configure:3377: checking for --enable-filesystem" >&5 | |
24528b0c VS |
3377 | no_cache=0 |
3378 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
3379 | if test "${enable_filesystem+set}" = set; then | |
3380 | enableval="$enable_filesystem" | |
698dcdb6 | 3381 | |
24528b0c VS |
3382 | if test "$enableval" = yes; then |
3383 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
3384 | else | |
3385 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
3386 | fi | |
698dcdb6 | 3387 | |
24528b0c | 3388 | else |
698dcdb6 | 3389 | |
24528b0c VS |
3390 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
3391 | if test "x$LINE" != x ; then | |
3392 | eval "DEFAULT_$LINE" | |
3393 | else | |
3394 | no_cache=1 | |
3395 | fi | |
3396 | ||
3397 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
698dcdb6 VZ |
3398 | |
3399 | fi | |
24528b0c VS |
3400 | |
3401 | ||
3402 | eval "$ac_cv_use_filesystem" | |
3403 | if test "$no_cache" != 1; then | |
3404 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
3405 | fi | |
3406 | ||
3407 | if test "$wxUSE_FILESYSTEM" = yes; then | |
698dcdb6 | 3408 | echo "$ac_t""yes" 1>&6 |
24528b0c | 3409 | else |
698dcdb6 | 3410 | echo "$ac_t""no" 1>&6 |
24528b0c | 3411 | fi |
698dcdb6 | 3412 | |
24528b0c | 3413 | |
698dcdb6 VZ |
3414 | echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6 |
3415 | echo "configure:3416: checking for --enable-fs_inet" >&5 | |
10f2d63a VZ |
3416 | no_cache=0 |
3417 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
3418 | if test "${enable_fs_inet+set}" = set; then | |
3419 | enableval="$enable_fs_inet" | |
698dcdb6 | 3420 | |
10f2d63a VZ |
3421 | if test "$enableval" = yes; then |
3422 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
3423 | else | |
3424 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
3425 | fi | |
698dcdb6 | 3426 | |
10f2d63a | 3427 | else |
698dcdb6 | 3428 | |
10f2d63a VZ |
3429 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
3430 | if test "x$LINE" != x ; then | |
3431 | eval "DEFAULT_$LINE" | |
3432 | else | |
3433 | no_cache=1 | |
3434 | fi | |
3435 | ||
3436 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
698dcdb6 VZ |
3437 | |
3438 | fi | |
10f2d63a VZ |
3439 | |
3440 | ||
3441 | eval "$ac_cv_use_fs_inet" | |
3442 | if test "$no_cache" != 1; then | |
3443 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
3444 | fi | |
3445 | ||
3446 | if test "$wxUSE_FS_INET" = yes; then | |
698dcdb6 | 3447 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3448 | else |
698dcdb6 | 3449 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3450 | fi |
698dcdb6 | 3451 | |
10f2d63a | 3452 | |
698dcdb6 VZ |
3453 | echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6 |
3454 | echo "configure:3455: checking for --enable-fs_zip" >&5 | |
10f2d63a VZ |
3455 | no_cache=0 |
3456 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
3457 | if test "${enable_fs_zip+set}" = set; then | |
3458 | enableval="$enable_fs_zip" | |
698dcdb6 | 3459 | |
10f2d63a VZ |
3460 | if test "$enableval" = yes; then |
3461 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
3462 | else | |
3463 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
3464 | fi | |
698dcdb6 | 3465 | |
10f2d63a | 3466 | else |
698dcdb6 | 3467 | |
10f2d63a VZ |
3468 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
3469 | if test "x$LINE" != x ; then | |
3470 | eval "DEFAULT_$LINE" | |
3471 | else | |
3472 | no_cache=1 | |
3473 | fi | |
3474 | ||
3475 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
698dcdb6 VZ |
3476 | |
3477 | fi | |
10f2d63a VZ |
3478 | |
3479 | ||
3480 | eval "$ac_cv_use_fs_zip" | |
3481 | if test "$no_cache" != 1; then | |
3482 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
3483 | fi | |
3484 | ||
3485 | if test "$wxUSE_FS_ZIP" = yes; then | |
698dcdb6 | 3486 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3487 | else |
698dcdb6 | 3488 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3489 | fi |
698dcdb6 | 3490 | |
10f2d63a | 3491 | |
698dcdb6 VZ |
3492 | echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6 |
3493 | echo "configure:3494: checking for --enable-zipstream" >&5 | |
10f2d63a VZ |
3494 | no_cache=0 |
3495 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
3496 | if test "${enable_zipstream+set}" = set; then | |
3497 | enableval="$enable_zipstream" | |
698dcdb6 | 3498 | |
10f2d63a VZ |
3499 | if test "$enableval" = yes; then |
3500 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
3501 | else | |
3502 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
3503 | fi | |
698dcdb6 | 3504 | |
10f2d63a | 3505 | else |
698dcdb6 | 3506 | |
10f2d63a VZ |
3507 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
3508 | if test "x$LINE" != x ; then | |
3509 | eval "DEFAULT_$LINE" | |
3510 | else | |
3511 | no_cache=1 | |
3512 | fi | |
3513 | ||
3514 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
698dcdb6 VZ |
3515 | |
3516 | fi | |
10f2d63a VZ |
3517 | |
3518 | ||
3519 | eval "$ac_cv_use_zipstream" | |
3520 | if test "$no_cache" != 1; then | |
3521 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
3522 | fi | |
3523 | ||
3524 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
698dcdb6 | 3525 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3526 | else |
698dcdb6 | 3527 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3528 | fi |
698dcdb6 | 3529 | |
10f2d63a | 3530 | |
698dcdb6 VZ |
3531 | |
3532 | echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6 | |
3533 | echo "configure:3534: checking for --enable-catch_segvs" >&5 | |
eb4efbdc VZ |
3534 | no_cache=0 |
3535 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
3536 | if test "${enable_catch_segvs+set}" = set; then | |
3537 | enableval="$enable_catch_segvs" | |
698dcdb6 | 3538 | |
eb4efbdc VZ |
3539 | if test "$enableval" = yes; then |
3540 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
3541 | else | |
3542 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
3543 | fi | |
698dcdb6 | 3544 | |
eb4efbdc | 3545 | else |
698dcdb6 | 3546 | |
eb4efbdc VZ |
3547 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
3548 | if test "x$LINE" != x ; then | |
3549 | eval "DEFAULT_$LINE" | |
3550 | else | |
3551 | no_cache=1 | |
3552 | fi | |
3553 | ||
3554 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
698dcdb6 VZ |
3555 | |
3556 | fi | |
eb4efbdc VZ |
3557 | |
3558 | ||
3559 | eval "$ac_cv_use_catch_segvs" | |
3560 | if test "$no_cache" != 1; then | |
3561 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
3562 | fi | |
3563 | ||
3564 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
698dcdb6 | 3565 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 3566 | else |
698dcdb6 | 3567 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 3568 | fi |
698dcdb6 | 3569 | |
eb4efbdc | 3570 | |
698dcdb6 VZ |
3571 | echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6 |
3572 | echo "configure:3573: checking for --enable-snglinst" >&5 | |
4f3c5f06 VZ |
3573 | no_cache=0 |
3574 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
3575 | if test "${enable_snglinst+set}" = set; then | |
3576 | enableval="$enable_snglinst" | |
698dcdb6 | 3577 | |
4f3c5f06 VZ |
3578 | if test "$enableval" = yes; then |
3579 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
3580 | else | |
3581 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
3582 | fi | |
698dcdb6 | 3583 | |
4f3c5f06 | 3584 | else |
698dcdb6 | 3585 | |
4f3c5f06 VZ |
3586 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
3587 | if test "x$LINE" != x ; then | |
3588 | eval "DEFAULT_$LINE" | |
3589 | else | |
3590 | no_cache=1 | |
3591 | fi | |
3592 | ||
3593 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
698dcdb6 VZ |
3594 | |
3595 | fi | |
4f3c5f06 VZ |
3596 | |
3597 | ||
3598 | eval "$ac_cv_use_snglinst" | |
3599 | if test "$no_cache" != 1; then | |
3600 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
3601 | fi | |
3602 | ||
3603 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
698dcdb6 | 3604 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 3605 | else |
698dcdb6 | 3606 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 3607 | fi |
698dcdb6 VZ |
3608 | |
3609 | ||
eb4efbdc | 3610 | |
698dcdb6 VZ |
3611 | |
3612 | echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6 | |
3613 | echo "configure:3614: checking for --enable-threads" >&5 | |
10f2d63a VZ |
3614 | no_cache=0 |
3615 | # Check whether --enable-threads or --disable-threads was given. | |
3616 | if test "${enable_threads+set}" = set; then | |
3617 | enableval="$enable_threads" | |
698dcdb6 | 3618 | |
10f2d63a VZ |
3619 | if test "$enableval" = yes; then |
3620 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
3621 | else | |
3622 | ac_cv_use_threads='wxUSE_THREADS=no' | |
3623 | fi | |
698dcdb6 | 3624 | |
10f2d63a | 3625 | else |
698dcdb6 | 3626 | |
10f2d63a VZ |
3627 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
3628 | if test "x$LINE" != x ; then | |
3629 | eval "DEFAULT_$LINE" | |
3630 | else | |
3631 | no_cache=1 | |
3632 | fi | |
3633 | ||
3634 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
698dcdb6 VZ |
3635 | |
3636 | fi | |
10f2d63a VZ |
3637 | |
3638 | ||
3639 | eval "$ac_cv_use_threads" | |
3640 | if test "$no_cache" != 1; then | |
3641 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
3642 | fi | |
3643 | ||
3644 | if test "$wxUSE_THREADS" = yes; then | |
698dcdb6 | 3645 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3646 | else |
698dcdb6 | 3647 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3648 | fi |
698dcdb6 | 3649 | |
10f2d63a | 3650 | |
698dcdb6 VZ |
3651 | echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6 |
3652 | echo "configure:3653: checking for --enable-serial" >&5 | |
10f2d63a VZ |
3653 | no_cache=0 |
3654 | # Check whether --enable-serial or --disable-serial was given. | |
3655 | if test "${enable_serial+set}" = set; then | |
3656 | enableval="$enable_serial" | |
698dcdb6 | 3657 | |
10f2d63a VZ |
3658 | if test "$enableval" = yes; then |
3659 | ac_cv_use_serial='wxUSE_SERIAL=yes' | |
3660 | else | |
3661 | ac_cv_use_serial='wxUSE_SERIAL=no' | |
3662 | fi | |
698dcdb6 | 3663 | |
10f2d63a | 3664 | else |
698dcdb6 | 3665 | |
10f2d63a VZ |
3666 | LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}` |
3667 | if test "x$LINE" != x ; then | |
3668 | eval "DEFAULT_$LINE" | |
3669 | else | |
3670 | no_cache=1 | |
3671 | fi | |
3672 | ||
3673 | ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL | |
698dcdb6 VZ |
3674 | |
3675 | fi | |
10f2d63a VZ |
3676 | |
3677 | ||
3678 | eval "$ac_cv_use_serial" | |
3679 | if test "$no_cache" != 1; then | |
3680 | echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp | |
3681 | fi | |
3682 | ||
3683 | if test "$wxUSE_SERIAL" = yes; then | |
698dcdb6 | 3684 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3685 | else |
698dcdb6 | 3686 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3687 | fi |
698dcdb6 | 3688 | |
10f2d63a | 3689 | |
b12915c1 VZ |
3690 | if test "$wxUSE_GUI" = "yes"; then |
3691 | ||
698dcdb6 VZ |
3692 | |
3693 | ||
3694 | echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6 | |
3695 | echo "configure:3696: checking for --enable-docview" >&5 | |
10f2d63a VZ |
3696 | no_cache=0 |
3697 | # Check whether --enable-docview or --disable-docview was given. | |
3698 | if test "${enable_docview+set}" = set; then | |
3699 | enableval="$enable_docview" | |
698dcdb6 | 3700 | |
10f2d63a VZ |
3701 | if test "$enableval" = yes; then |
3702 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
3703 | else | |
3704 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
3705 | fi | |
698dcdb6 | 3706 | |
10f2d63a | 3707 | else |
698dcdb6 | 3708 | |
10f2d63a VZ |
3709 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
3710 | if test "x$LINE" != x ; then | |
3711 | eval "DEFAULT_$LINE" | |
3712 | else | |
3713 | no_cache=1 | |
3714 | fi | |
3715 | ||
3716 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
698dcdb6 VZ |
3717 | |
3718 | fi | |
10f2d63a VZ |
3719 | |
3720 | ||
3721 | eval "$ac_cv_use_docview" | |
3722 | if test "$no_cache" != 1; then | |
3723 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
3724 | fi | |
3725 | ||
3726 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
698dcdb6 | 3727 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3728 | else |
698dcdb6 | 3729 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3730 | fi |
698dcdb6 | 3731 | |
10f2d63a | 3732 | |
698dcdb6 VZ |
3733 | echo $ac_n "checking for --enable-help""... $ac_c" 1>&6 |
3734 | echo "configure:3735: checking for --enable-help" >&5 | |
10f2d63a VZ |
3735 | no_cache=0 |
3736 | # Check whether --enable-help or --disable-help was given. | |
3737 | if test "${enable_help+set}" = set; then | |
3738 | enableval="$enable_help" | |
698dcdb6 | 3739 | |
10f2d63a VZ |
3740 | if test "$enableval" = yes; then |
3741 | ac_cv_use_help='wxUSE_HELP=yes' | |
3742 | else | |
3743 | ac_cv_use_help='wxUSE_HELP=no' | |
3744 | fi | |
698dcdb6 | 3745 | |
10f2d63a | 3746 | else |
698dcdb6 | 3747 | |
10f2d63a VZ |
3748 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
3749 | if test "x$LINE" != x ; then | |
3750 | eval "DEFAULT_$LINE" | |
3751 | else | |
3752 | no_cache=1 | |
3753 | fi | |
3754 | ||
3755 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
698dcdb6 VZ |
3756 | |
3757 | fi | |
10f2d63a VZ |
3758 | |
3759 | ||
3760 | eval "$ac_cv_use_help" | |
3761 | if test "$no_cache" != 1; then | |
3762 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
3763 | fi | |
3764 | ||
3765 | if test "$wxUSE_HELP" = yes; then | |
698dcdb6 | 3766 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3767 | else |
698dcdb6 | 3768 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3769 | fi |
698dcdb6 | 3770 | |
10f2d63a | 3771 | |
698dcdb6 VZ |
3772 | echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6 |
3773 | echo "configure:3774: checking for --enable-constraints" >&5 | |
10f2d63a VZ |
3774 | no_cache=0 |
3775 | # Check whether --enable-constraints or --disable-constraints was given. | |
3776 | if test "${enable_constraints+set}" = set; then | |
3777 | enableval="$enable_constraints" | |
698dcdb6 | 3778 | |
10f2d63a VZ |
3779 | if test "$enableval" = yes; then |
3780 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
3781 | else | |
3782 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
3783 | fi | |
698dcdb6 | 3784 | |
10f2d63a | 3785 | else |
698dcdb6 | 3786 | |
10f2d63a VZ |
3787 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
3788 | if test "x$LINE" != x ; then | |
3789 | eval "DEFAULT_$LINE" | |
3790 | else | |
3791 | no_cache=1 | |
3792 | fi | |
3793 | ||
3794 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
698dcdb6 VZ |
3795 | |
3796 | fi | |
10f2d63a VZ |
3797 | |
3798 | ||
3799 | eval "$ac_cv_use_constraints" | |
3800 | if test "$no_cache" != 1; then | |
3801 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
3802 | fi | |
3803 | ||
3804 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
698dcdb6 | 3805 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3806 | else |
698dcdb6 | 3807 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3808 | fi |
698dcdb6 | 3809 | |
10f2d63a | 3810 | |
698dcdb6 VZ |
3811 | echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6 |
3812 | echo "configure:3813: checking for --enable-printarch" >&5 | |
10f2d63a VZ |
3813 | no_cache=0 |
3814 | # Check whether --enable-printarch or --disable-printarch was given. | |
3815 | if test "${enable_printarch+set}" = set; then | |
3816 | enableval="$enable_printarch" | |
698dcdb6 | 3817 | |
10f2d63a VZ |
3818 | if test "$enableval" = yes; then |
3819 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
3820 | else | |
3821 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
3822 | fi | |
698dcdb6 | 3823 | |
10f2d63a | 3824 | else |
698dcdb6 | 3825 | |
10f2d63a VZ |
3826 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
3827 | if test "x$LINE" != x ; then | |
3828 | eval "DEFAULT_$LINE" | |
3829 | else | |
3830 | no_cache=1 | |
3831 | fi | |
3832 | ||
3833 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
698dcdb6 VZ |
3834 | |
3835 | fi | |
10f2d63a VZ |
3836 | |
3837 | ||
3838 | eval "$ac_cv_use_printarch" | |
3839 | if test "$no_cache" != 1; then | |
3840 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
3841 | fi | |
3842 | ||
3843 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
698dcdb6 | 3844 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3845 | else |
698dcdb6 | 3846 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3847 | fi |
698dcdb6 | 3848 | |
10f2d63a | 3849 | |
698dcdb6 VZ |
3850 | echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6 |
3851 | echo "configure:3852: checking for --enable-mdi" >&5 | |
10f2d63a VZ |
3852 | no_cache=0 |
3853 | # Check whether --enable-mdi or --disable-mdi was given. | |
3854 | if test "${enable_mdi+set}" = set; then | |
3855 | enableval="$enable_mdi" | |
698dcdb6 | 3856 | |
10f2d63a VZ |
3857 | if test "$enableval" = yes; then |
3858 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
3859 | else | |
3860 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
3861 | fi | |
698dcdb6 | 3862 | |
10f2d63a | 3863 | else |
698dcdb6 | 3864 | |
10f2d63a VZ |
3865 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
3866 | if test "x$LINE" != x ; then | |
3867 | eval "DEFAULT_$LINE" | |
3868 | else | |
3869 | no_cache=1 | |
3870 | fi | |
3871 | ||
3872 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
698dcdb6 VZ |
3873 | |
3874 | fi | |
10f2d63a VZ |
3875 | |
3876 | ||
3877 | eval "$ac_cv_use_mdi" | |
3878 | if test "$no_cache" != 1; then | |
3879 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
3880 | fi | |
3881 | ||
3882 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
698dcdb6 | 3883 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3884 | else |
698dcdb6 | 3885 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3886 | fi |
698dcdb6 VZ |
3887 | |
3888 | ||
10f2d63a | 3889 | |
698dcdb6 VZ |
3890 | echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6 |
3891 | echo "configure:3892: checking for --enable-postscript" >&5 | |
10f2d63a VZ |
3892 | no_cache=0 |
3893 | # Check whether --enable-postscript or --disable-postscript was given. | |
3894 | if test "${enable_postscript+set}" = set; then | |
3895 | enableval="$enable_postscript" | |
698dcdb6 | 3896 | |
10f2d63a VZ |
3897 | if test "$enableval" = yes; then |
3898 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
3899 | else | |
3900 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
3901 | fi | |
698dcdb6 | 3902 | |
10f2d63a | 3903 | else |
698dcdb6 | 3904 | |
10f2d63a VZ |
3905 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
3906 | if test "x$LINE" != x ; then | |
3907 | eval "DEFAULT_$LINE" | |
3908 | else | |
3909 | no_cache=1 | |
3910 | fi | |
3911 | ||
3912 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
698dcdb6 VZ |
3913 | |
3914 | fi | |
10f2d63a VZ |
3915 | |
3916 | ||
3917 | eval "$ac_cv_use_postscript" | |
3918 | if test "$no_cache" != 1; then | |
3919 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
3920 | fi | |
3921 | ||
3922 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
698dcdb6 | 3923 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3924 | else |
698dcdb6 | 3925 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3926 | fi |
698dcdb6 VZ |
3927 | |
3928 | ||
3929 | ||
10f2d63a | 3930 | |
698dcdb6 VZ |
3931 | echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6 |
3932 | echo "configure:3933: checking for --enable-prologio" >&5 | |
10f2d63a VZ |
3933 | no_cache=0 |
3934 | # Check whether --enable-prologio or --disable-prologio was given. | |
3935 | if test "${enable_prologio+set}" = set; then | |
3936 | enableval="$enable_prologio" | |
698dcdb6 | 3937 | |
10f2d63a VZ |
3938 | if test "$enableval" = yes; then |
3939 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
3940 | else | |
3941 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
3942 | fi | |
698dcdb6 | 3943 | |
10f2d63a | 3944 | else |
698dcdb6 | 3945 | |
10f2d63a VZ |
3946 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
3947 | if test "x$LINE" != x ; then | |
3948 | eval "DEFAULT_$LINE" | |
3949 | else | |
3950 | no_cache=1 | |
3951 | fi | |
3952 | ||
3953 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
698dcdb6 VZ |
3954 | |
3955 | fi | |
10f2d63a VZ |
3956 | |
3957 | ||
3958 | eval "$ac_cv_use_prologio" | |
3959 | if test "$no_cache" != 1; then | |
3960 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
3961 | fi | |
3962 | ||
3963 | if test "$wxUSE_PROLOGIO" = yes; then | |
698dcdb6 | 3964 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3965 | else |
698dcdb6 | 3966 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3967 | fi |
698dcdb6 | 3968 | |
10f2d63a | 3969 | |
698dcdb6 VZ |
3970 | echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6 |
3971 | echo "configure:3972: checking for --enable-resources" >&5 | |
10f2d63a VZ |
3972 | no_cache=0 |
3973 | # Check whether --enable-resources or --disable-resources was given. | |
3974 | if test "${enable_resources+set}" = set; then | |
3975 | enableval="$enable_resources" | |
698dcdb6 | 3976 | |
10f2d63a VZ |
3977 | if test "$enableval" = yes; then |
3978 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
3979 | else | |
3980 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
3981 | fi | |
698dcdb6 | 3982 | |
10f2d63a | 3983 | else |
698dcdb6 | 3984 | |
10f2d63a VZ |
3985 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
3986 | if test "x$LINE" != x ; then | |
3987 | eval "DEFAULT_$LINE" | |
3988 | else | |
3989 | no_cache=1 | |
3990 | fi | |
3991 | ||
3992 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
698dcdb6 VZ |
3993 | |
3994 | fi | |
10f2d63a VZ |
3995 | |
3996 | ||
3997 | eval "$ac_cv_use_resources" | |
3998 | if test "$no_cache" != 1; then | |
3999 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
4000 | fi | |
4001 | ||
4002 | if test "$wxUSE_RESOURCES" = yes; then | |
698dcdb6 | 4003 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4004 | else |
698dcdb6 | 4005 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4006 | fi |
698dcdb6 | 4007 | |
10f2d63a | 4008 | |
698dcdb6 VZ |
4009 | |
4010 | echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6 | |
4011 | echo "configure:4012: checking for --enable-xresources" >&5 | |
10f2d63a VZ |
4012 | no_cache=0 |
4013 | # Check whether --enable-xresources or --disable-xresources was given. | |
4014 | if test "${enable_xresources+set}" = set; then | |
4015 | enableval="$enable_xresources" | |
698dcdb6 | 4016 | |
10f2d63a VZ |
4017 | if test "$enableval" = yes; then |
4018 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
4019 | else | |
4020 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
4021 | fi | |
698dcdb6 | 4022 | |
10f2d63a | 4023 | else |
698dcdb6 | 4024 | |
10f2d63a VZ |
4025 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
4026 | if test "x$LINE" != x ; then | |
4027 | eval "DEFAULT_$LINE" | |
4028 | else | |
4029 | no_cache=1 | |
4030 | fi | |
4031 | ||
4032 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
698dcdb6 VZ |
4033 | |
4034 | fi | |
10f2d63a VZ |
4035 | |
4036 | ||
4037 | eval "$ac_cv_use_xresources" | |
4038 | if test "$no_cache" != 1; then | |
4039 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
4040 | fi | |
4041 | ||
4042 | if test "$wxUSE_X_RESOURCES" = yes; then | |
698dcdb6 | 4043 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4044 | else |
698dcdb6 | 4045 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4046 | fi |
698dcdb6 VZ |
4047 | |
4048 | ||
10f2d63a | 4049 | |
698dcdb6 VZ |
4050 | |
4051 | echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6 | |
4052 | echo "configure:4053: checking for --enable-clipboard" >&5 | |
10f2d63a VZ |
4053 | no_cache=0 |
4054 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
4055 | if test "${enable_clipboard+set}" = set; then | |
4056 | enableval="$enable_clipboard" | |
698dcdb6 | 4057 | |
10f2d63a VZ |
4058 | if test "$enableval" = yes; then |
4059 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
4060 | else | |
4061 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
4062 | fi | |
698dcdb6 | 4063 | |
10f2d63a | 4064 | else |
698dcdb6 | 4065 | |
10f2d63a VZ |
4066 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
4067 | if test "x$LINE" != x ; then | |
4068 | eval "DEFAULT_$LINE" | |
4069 | else | |
4070 | no_cache=1 | |
4071 | fi | |
4072 | ||
4073 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
698dcdb6 VZ |
4074 | |
4075 | fi | |
10f2d63a VZ |
4076 | |
4077 | ||
4078 | eval "$ac_cv_use_clipboard" | |
4079 | if test "$no_cache" != 1; then | |
4080 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
4081 | fi | |
4082 | ||
4083 | if test "$wxUSE_CLIPBOARD" = yes; then | |
698dcdb6 | 4084 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4085 | else |
698dcdb6 | 4086 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4087 | fi |
698dcdb6 | 4088 | |
10f2d63a | 4089 | |
698dcdb6 VZ |
4090 | echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6 |
4091 | echo "configure:4092: checking for --enable-dnd" >&5 | |
10f2d63a VZ |
4092 | no_cache=0 |
4093 | # Check whether --enable-dnd or --disable-dnd was given. | |
4094 | if test "${enable_dnd+set}" = set; then | |
4095 | enableval="$enable_dnd" | |
698dcdb6 | 4096 | |
10f2d63a VZ |
4097 | if test "$enableval" = yes; then |
4098 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
4099 | else | |
4100 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
4101 | fi | |
698dcdb6 | 4102 | |
10f2d63a | 4103 | else |
698dcdb6 | 4104 | |
10f2d63a VZ |
4105 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
4106 | if test "x$LINE" != x ; then | |
4107 | eval "DEFAULT_$LINE" | |
4108 | else | |
4109 | no_cache=1 | |
4110 | fi | |
4111 | ||
4112 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
698dcdb6 VZ |
4113 | |
4114 | fi | |
10f2d63a VZ |
4115 | |
4116 | ||
4117 | eval "$ac_cv_use_dnd" | |
4118 | if test "$no_cache" != 1; then | |
4119 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
4120 | fi | |
4121 | ||
4122 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
698dcdb6 | 4123 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4124 | else |
698dcdb6 | 4125 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4126 | fi |
698dcdb6 | 4127 | |
10f2d63a | 4128 | |
698dcdb6 VZ |
4129 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
4130 | echo "configure:4131: checking for --enable-metafile" >&5 | |
b64f0a5f RL |
4131 | no_cache=0 |
4132 | # Check whether --enable-metafile or --disable-metafile was given. | |
4133 | if test "${enable_metafile+set}" = set; then | |
4134 | enableval="$enable_metafile" | |
698dcdb6 | 4135 | |
b64f0a5f RL |
4136 | if test "$enableval" = yes; then |
4137 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
4138 | else | |
4139 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
4140 | fi | |
698dcdb6 | 4141 | |
b64f0a5f | 4142 | else |
698dcdb6 | 4143 | |
b64f0a5f RL |
4144 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
4145 | if test "x$LINE" != x ; then | |
4146 | eval "DEFAULT_$LINE" | |
4147 | else | |
4148 | no_cache=1 | |
4149 | fi | |
4150 | ||
4151 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
698dcdb6 VZ |
4152 | |
4153 | fi | |
b64f0a5f RL |
4154 | |
4155 | ||
4156 | eval "$ac_cv_use_metafile" | |
4157 | if test "$no_cache" != 1; then | |
4158 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
4159 | fi | |
4160 | ||
4161 | if test "$wxUSE_METAFILE" = yes; then | |
698dcdb6 | 4162 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 4163 | else |
698dcdb6 | 4164 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 4165 | fi |
698dcdb6 VZ |
4166 | |
4167 | ||
10f2d63a | 4168 | |
698dcdb6 VZ |
4169 | echo $ac_n "checking for --enable-wxtree""... $ac_c" 1>&6 |
4170 | echo "configure:4171: checking for --enable-wxtree" >&5 | |
10f2d63a VZ |
4171 | no_cache=0 |
4172 | # Check whether --enable-wxtree or --disable-wxtree was given. | |
4173 | if test "${enable_wxtree+set}" = set; then | |
4174 | enableval="$enable_wxtree" | |
698dcdb6 | 4175 | |
10f2d63a VZ |
4176 | if test "$enableval" = yes; then |
4177 | ac_cv_use_wxtree='wxUSE_WXTREE=yes' | |
4178 | else | |
4179 | ac_cv_use_wxtree='wxUSE_WXTREE=no' | |
4180 | fi | |
698dcdb6 | 4181 | |
10f2d63a | 4182 | else |
698dcdb6 | 4183 | |
10f2d63a VZ |
4184 | LINE=`grep "wxUSE_WXTREE" ${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_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE | |
698dcdb6 VZ |
4192 | |
4193 | fi | |
10f2d63a VZ |
4194 | |
4195 | ||
4196 | eval "$ac_cv_use_wxtree" | |
4197 | if test "$no_cache" != 1; then | |
4198 | echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp | |
4199 | fi | |
4200 | ||
4201 | if test "$wxUSE_WXTREE" = yes; then | |
698dcdb6 | 4202 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4203 | else |
698dcdb6 | 4204 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4205 | fi |
698dcdb6 | 4206 | |
10f2d63a | 4207 | |
698dcdb6 VZ |
4208 | |
4209 | ||
4210 | echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6 | |
4211 | echo "configure:4212: checking for --enable-controls" >&5 | |
10f2d63a VZ |
4212 | no_cache=0 |
4213 | # Check whether --enable-controls or --disable-controls was given. | |
4214 | if test "${enable_controls+set}" = set; then | |
4215 | enableval="$enable_controls" | |
698dcdb6 | 4216 | |
10f2d63a VZ |
4217 | if test "$enableval" = yes; then |
4218 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
4219 | else | |
4220 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
4221 | fi | |
698dcdb6 | 4222 | |
10f2d63a | 4223 | else |
698dcdb6 | 4224 | |
10f2d63a VZ |
4225 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
4226 | if test "x$LINE" != x ; then | |
4227 | eval "DEFAULT_$LINE" | |
4228 | else | |
4229 | no_cache=1 | |
4230 | fi | |
4231 | ||
4232 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
698dcdb6 VZ |
4233 | |
4234 | fi | |
10f2d63a VZ |
4235 | |
4236 | ||
4237 | eval "$ac_cv_use_controls" | |
4238 | if test "$no_cache" != 1; then | |
4239 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
4240 | fi | |
4241 | ||
4242 | if test "$wxUSE_CONTROLS" = yes; then | |
698dcdb6 | 4243 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4244 | else |
698dcdb6 | 4245 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4246 | fi |
698dcdb6 | 4247 | |
10f2d63a VZ |
4248 | |
4249 | if test "$wxUSE_CONTROLS" = "yes"; then | |
4250 | DEFAULT_wxUSE_ACCEL=yes | |
4251 | DEFAULT_wxUSE_CARET=yes | |
4252 | DEFAULT_wxUSE_COMBOBOX=yes | |
4253 | DEFAULT_wxUSE_BMPBUTTON=yes | |
4254 | DEFAULT_wxUSE_CHECKBOX=yes | |
4255 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
4256 | DEFAULT_wxUSE_CHOICE=yes | |
4257 | DEFAULT_wxUSE_GAUGE=yes | |
4258 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 4259 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
4260 | DEFAULT_wxUSE_IMAGLIST=yes |
4261 | DEFAULT_wxUSE_LISTBOX=yes | |
4262 | DEFAULT_wxUSE_LISTCTRL=yes | |
4263 | DEFAULT_wxUSE_NOTEBOOK=yes | |
4264 | DEFAULT_wxUSE_RADIOBOX=yes | |
4265 | DEFAULT_wxUSE_RADIOBTN=yes | |
4266 | DEFAULT_wxUSE_SASH=yes | |
4267 | DEFAULT_wxUSE_SCROLLBAR=yes | |
4268 | DEFAULT_wxUSE_SLIDER=yes | |
4269 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 4270 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
4271 | DEFAULT_wxUSE_SPLITTER=yes |
4272 | DEFAULT_wxUSE_STATBMP=yes | |
4273 | DEFAULT_wxUSE_STATBOX=yes | |
4274 | DEFAULT_wxUSE_STATLINE=yes | |
4275 | DEFAULT_wxUSE_STATUSBAR=yes | |
4276 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 4277 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 4278 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
4279 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
4280 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
4281 | DEFAULT_wxUSE_TOOLTIPS=yes |
4282 | DEFAULT_wxUSE_TREECTRL=yes | |
4283 | elif test "$wxUSE_CONTROLS" = "no"; then | |
4284 | DEFAULT_wxUSE_ACCEL=no | |
4285 | DEFAULT_wxUSE_CARET=no | |
4286 | DEFAULT_wxUSE_COMBOBOX=no | |
4287 | DEFAULT_wxUSE_BMPBUTTON=no | |
4288 | DEFAULT_wxUSE_CHECKBOX=no | |
4289 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
4290 | DEFAULT_wxUSE_CHOICE=no | |
4291 | DEFAULT_wxUSE_GAUGE=no | |
4292 | DEFAULT_wxUSE_GRID=no | |
4293 | DEFAULT_wxUSE_NEW_GRID=no | |
4294 | DEFAULT_wxUSE_IMAGLIST=no | |
4295 | DEFAULT_wxUSE_LISTBOX=no | |
4296 | DEFAULT_wxUSE_LISTCTRL=no | |
4297 | DEFAULT_wxUSE_NOTEBOOK=no | |
4298 | DEFAULT_wxUSE_RADIOBOX=no | |
4299 | DEFAULT_wxUSE_RADIOBTN=no | |
4300 | DEFAULT_wxUSE_SASH=no | |
4301 | DEFAULT_wxUSE_SCROLLBAR=no | |
4302 | DEFAULT_wxUSE_SLIDER=no | |
4303 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 4304 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
4305 | DEFAULT_wxUSE_SPLITTER=no |
4306 | DEFAULT_wxUSE_STATBMP=no | |
4307 | DEFAULT_wxUSE_STATBOX=no | |
4308 | DEFAULT_wxUSE_STATLINE=no | |
4309 | DEFAULT_wxUSE_STATUSBAR=no | |
4310 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 4311 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 4312 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
4313 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
4314 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
4315 | DEFAULT_wxUSE_TOOLTIPS=no |
4316 | DEFAULT_wxUSE_TREECTRL=no | |
4317 | fi | |
4318 | ||
698dcdb6 VZ |
4319 | |
4320 | echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6 | |
4321 | echo "configure:4322: checking for --enable-accel" >&5 | |
10f2d63a VZ |
4322 | no_cache=0 |
4323 | # Check whether --enable-accel or --disable-accel was given. | |
4324 | if test "${enable_accel+set}" = set; then | |
4325 | enableval="$enable_accel" | |
698dcdb6 | 4326 | |
10f2d63a VZ |
4327 | if test "$enableval" = yes; then |
4328 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
4329 | else | |
4330 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
4331 | fi | |
698dcdb6 | 4332 | |
10f2d63a | 4333 | else |
698dcdb6 | 4334 | |
10f2d63a VZ |
4335 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
4336 | if test "x$LINE" != x ; then | |
4337 | eval "DEFAULT_$LINE" | |
4338 | else | |
4339 | no_cache=1 | |
4340 | fi | |
4341 | ||
4342 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
698dcdb6 VZ |
4343 | |
4344 | fi | |
10f2d63a VZ |
4345 | |
4346 | ||
4347 | eval "$ac_cv_use_accel" | |
4348 | if test "$no_cache" != 1; then | |
4349 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
4350 | fi | |
4351 | ||
4352 | if test "$wxUSE_ACCEL" = yes; then | |
698dcdb6 | 4353 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4354 | else |
698dcdb6 | 4355 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4356 | fi |
698dcdb6 | 4357 | |
10f2d63a | 4358 | |
698dcdb6 VZ |
4359 | echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6 |
4360 | echo "configure:4361: checking for --enable-caret" >&5 | |
10f2d63a VZ |
4361 | no_cache=0 |
4362 | # Check whether --enable-caret or --disable-caret was given. | |
4363 | if test "${enable_caret+set}" = set; then | |
4364 | enableval="$enable_caret" | |
698dcdb6 | 4365 | |
10f2d63a VZ |
4366 | if test "$enableval" = yes; then |
4367 | ac_cv_use_caret='wxUSE_CARET=yes' | |
4368 | else | |
4369 | ac_cv_use_caret='wxUSE_CARET=no' | |
4370 | fi | |
698dcdb6 | 4371 | |
10f2d63a | 4372 | else |
698dcdb6 | 4373 | |
10f2d63a VZ |
4374 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` |
4375 | if test "x$LINE" != x ; then | |
4376 | eval "DEFAULT_$LINE" | |
4377 | else | |
4378 | no_cache=1 | |
4379 | fi | |
4380 | ||
4381 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
698dcdb6 VZ |
4382 | |
4383 | fi | |
10f2d63a VZ |
4384 | |
4385 | ||
4386 | eval "$ac_cv_use_caret" | |
4387 | if test "$no_cache" != 1; then | |
4388 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
4389 | fi | |
4390 | ||
4391 | if test "$wxUSE_CARET" = yes; then | |
698dcdb6 | 4392 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4393 | else |
698dcdb6 | 4394 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4395 | fi |
698dcdb6 | 4396 | |
10f2d63a | 4397 | |
698dcdb6 VZ |
4398 | echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6 |
4399 | echo "configure:4400: checking for --enable-bmpbutton" >&5 | |
10f2d63a VZ |
4400 | no_cache=0 |
4401 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
4402 | if test "${enable_bmpbutton+set}" = set; then | |
4403 | enableval="$enable_bmpbutton" | |
698dcdb6 | 4404 | |
10f2d63a VZ |
4405 | if test "$enableval" = yes; then |
4406 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
4407 | else | |
4408 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
4409 | fi | |
698dcdb6 | 4410 | |
10f2d63a | 4411 | else |
698dcdb6 | 4412 | |
10f2d63a VZ |
4413 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
4414 | if test "x$LINE" != x ; then | |
4415 | eval "DEFAULT_$LINE" | |
4416 | else | |
4417 | no_cache=1 | |
4418 | fi | |
4419 | ||
4420 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
698dcdb6 VZ |
4421 | |
4422 | fi | |
10f2d63a VZ |
4423 | |
4424 | ||
4425 | eval "$ac_cv_use_bmpbutton" | |
4426 | if test "$no_cache" != 1; then | |
4427 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
4428 | fi | |
4429 | ||
4430 | if test "$wxUSE_BMPBUTTON" = yes; then | |
698dcdb6 | 4431 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4432 | else |
698dcdb6 | 4433 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4434 | fi |
698dcdb6 | 4435 | |
10f2d63a | 4436 | |
698dcdb6 VZ |
4437 | echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6 |
4438 | echo "configure:4439: checking for --enable-checkbox" >&5 | |
10f2d63a VZ |
4439 | no_cache=0 |
4440 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
4441 | if test "${enable_checkbox+set}" = set; then | |
4442 | enableval="$enable_checkbox" | |
698dcdb6 | 4443 | |
10f2d63a VZ |
4444 | if test "$enableval" = yes; then |
4445 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
4446 | else | |
4447 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
4448 | fi | |
698dcdb6 | 4449 | |
10f2d63a | 4450 | else |
698dcdb6 | 4451 | |
10f2d63a VZ |
4452 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
4453 | if test "x$LINE" != x ; then | |
4454 | eval "DEFAULT_$LINE" | |
4455 | else | |
4456 | no_cache=1 | |
4457 | fi | |
4458 | ||
4459 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
698dcdb6 VZ |
4460 | |
4461 | fi | |
10f2d63a VZ |
4462 | |
4463 | ||
4464 | eval "$ac_cv_use_checkbox" | |
4465 | if test "$no_cache" != 1; then | |
4466 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
4467 | fi | |
4468 | ||
4469 | if test "$wxUSE_CHECKBOX" = yes; then | |
698dcdb6 | 4470 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4471 | else |
698dcdb6 | 4472 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4473 | fi |
698dcdb6 | 4474 | |
10f2d63a | 4475 | |
698dcdb6 VZ |
4476 | echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6 |
4477 | echo "configure:4478: checking for --enable-checklst" >&5 | |
10f2d63a VZ |
4478 | no_cache=0 |
4479 | # Check whether --enable-checklst or --disable-checklst was given. | |
4480 | if test "${enable_checklst+set}" = set; then | |
4481 | enableval="$enable_checklst" | |
698dcdb6 | 4482 | |
10f2d63a VZ |
4483 | if test "$enableval" = yes; then |
4484 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
4485 | else | |
4486 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
4487 | fi | |
698dcdb6 | 4488 | |
10f2d63a | 4489 | else |
698dcdb6 | 4490 | |
10f2d63a VZ |
4491 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
4492 | if test "x$LINE" != x ; then | |
4493 | eval "DEFAULT_$LINE" | |
4494 | else | |
4495 | no_cache=1 | |
4496 | fi | |
4497 | ||
4498 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
698dcdb6 VZ |
4499 | |
4500 | fi | |
10f2d63a VZ |
4501 | |
4502 | ||
4503 | eval "$ac_cv_use_checklst" | |
4504 | if test "$no_cache" != 1; then | |
4505 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
4506 | fi | |
4507 | ||
4508 | if test "$wxUSE_CHECKLST" = yes; then | |
698dcdb6 | 4509 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4510 | else |
698dcdb6 | 4511 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4512 | fi |
698dcdb6 | 4513 | |
10f2d63a | 4514 | |
698dcdb6 VZ |
4515 | echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6 |
4516 | echo "configure:4517: checking for --enable-choice" >&5 | |
10f2d63a VZ |
4517 | no_cache=0 |
4518 | # Check whether --enable-choice or --disable-choice was given. | |
4519 | if test "${enable_choice+set}" = set; then | |
4520 | enableval="$enable_choice" | |
698dcdb6 | 4521 | |
10f2d63a VZ |
4522 | if test "$enableval" = yes; then |
4523 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
4524 | else | |
4525 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
4526 | fi | |
698dcdb6 | 4527 | |
10f2d63a | 4528 | else |
698dcdb6 | 4529 | |
10f2d63a VZ |
4530 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
4531 | if test "x$LINE" != x ; then | |
4532 | eval "DEFAULT_$LINE" | |
4533 | else | |
4534 | no_cache=1 | |
4535 | fi | |
4536 | ||
4537 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
698dcdb6 VZ |
4538 | |
4539 | fi | |
10f2d63a VZ |
4540 | |
4541 | ||
4542 | eval "$ac_cv_use_choice" | |
4543 | if test "$no_cache" != 1; then | |
4544 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
4545 | fi | |
4546 | ||
4547 | if test "$wxUSE_CHOICE" = yes; then | |
698dcdb6 | 4548 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4549 | else |
698dcdb6 | 4550 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4551 | fi |
698dcdb6 | 4552 | |
10f2d63a | 4553 | |
698dcdb6 VZ |
4554 | echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6 |
4555 | echo "configure:4556: checking for --enable-combobox" >&5 | |
10f2d63a VZ |
4556 | no_cache=0 |
4557 | # Check whether --enable-combobox or --disable-combobox was given. | |
4558 | if test "${enable_combobox+set}" = set; then | |
4559 | enableval="$enable_combobox" | |
698dcdb6 | 4560 | |
10f2d63a VZ |
4561 | if test "$enableval" = yes; then |
4562 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
4563 | else | |
4564 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
4565 | fi | |
698dcdb6 | 4566 | |
10f2d63a | 4567 | else |
698dcdb6 | 4568 | |
10f2d63a VZ |
4569 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
4570 | if test "x$LINE" != x ; then | |
4571 | eval "DEFAULT_$LINE" | |
4572 | else | |
4573 | no_cache=1 | |
4574 | fi | |
4575 | ||
4576 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
698dcdb6 VZ |
4577 | |
4578 | fi | |
10f2d63a VZ |
4579 | |
4580 | ||
4581 | eval "$ac_cv_use_combobox" | |
4582 | if test "$no_cache" != 1; then | |
4583 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
4584 | fi | |
4585 | ||
4586 | if test "$wxUSE_COMBOBOX" = yes; then | |
698dcdb6 | 4587 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4588 | else |
698dcdb6 | 4589 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4590 | fi |
698dcdb6 | 4591 | |
10f2d63a | 4592 | |
698dcdb6 VZ |
4593 | echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6 |
4594 | echo "configure:4595: checking for --enable-gauge" >&5 | |
10f2d63a VZ |
4595 | no_cache=0 |
4596 | # Check whether --enable-gauge or --disable-gauge was given. | |
4597 | if test "${enable_gauge+set}" = set; then | |
4598 | enableval="$enable_gauge" | |
698dcdb6 | 4599 | |
10f2d63a VZ |
4600 | if test "$enableval" = yes; then |
4601 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
4602 | else | |
4603 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
4604 | fi | |
698dcdb6 | 4605 | |
10f2d63a | 4606 | else |
698dcdb6 | 4607 | |
10f2d63a VZ |
4608 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
4609 | if test "x$LINE" != x ; then | |
4610 | eval "DEFAULT_$LINE" | |
4611 | else | |
4612 | no_cache=1 | |
4613 | fi | |
4614 | ||
4615 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
698dcdb6 VZ |
4616 | |
4617 | fi | |
10f2d63a VZ |
4618 | |
4619 | ||
4620 | eval "$ac_cv_use_gauge" | |
4621 | if test "$no_cache" != 1; then | |
4622 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
4623 | fi | |
4624 | ||
4625 | if test "$wxUSE_GAUGE" = yes; then | |
698dcdb6 | 4626 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4627 | else |
698dcdb6 | 4628 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4629 | fi |
698dcdb6 | 4630 | |
10f2d63a | 4631 | |
698dcdb6 VZ |
4632 | echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6 |
4633 | echo "configure:4634: checking for --enable-grid" >&5 | |
10f2d63a VZ |
4634 | no_cache=0 |
4635 | # Check whether --enable-grid or --disable-grid was given. | |
4636 | if test "${enable_grid+set}" = set; then | |
4637 | enableval="$enable_grid" | |
698dcdb6 | 4638 | |
10f2d63a VZ |
4639 | if test "$enableval" = yes; then |
4640 | ac_cv_use_grid='wxUSE_GRID=yes' | |
4641 | else | |
4642 | ac_cv_use_grid='wxUSE_GRID=no' | |
4643 | fi | |
698dcdb6 | 4644 | |
10f2d63a | 4645 | else |
698dcdb6 | 4646 | |
10f2d63a VZ |
4647 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
4648 | if test "x$LINE" != x ; then | |
4649 | eval "DEFAULT_$LINE" | |
4650 | else | |
4651 | no_cache=1 | |
4652 | fi | |
4653 | ||
4654 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
698dcdb6 VZ |
4655 | |
4656 | fi | |
10f2d63a VZ |
4657 | |
4658 | ||
4659 | eval "$ac_cv_use_grid" | |
4660 | if test "$no_cache" != 1; then | |
4661 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
4662 | fi | |
4663 | ||
4664 | if test "$wxUSE_GRID" = yes; then | |
698dcdb6 | 4665 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4666 | else |
698dcdb6 | 4667 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4668 | fi |
698dcdb6 | 4669 | |
10f2d63a | 4670 | |
698dcdb6 VZ |
4671 | echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6 |
4672 | echo "configure:4673: checking for --enable-newgrid" >&5 | |
10f2d63a VZ |
4673 | no_cache=0 |
4674 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
4675 | if test "${enable_newgrid+set}" = set; then | |
4676 | enableval="$enable_newgrid" | |
698dcdb6 | 4677 | |
10f2d63a VZ |
4678 | if test "$enableval" = yes; then |
4679 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
4680 | else | |
4681 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
4682 | fi | |
698dcdb6 | 4683 | |
10f2d63a | 4684 | else |
698dcdb6 | 4685 | |
10f2d63a VZ |
4686 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
4687 | if test "x$LINE" != x ; then | |
4688 | eval "DEFAULT_$LINE" | |
4689 | else | |
4690 | no_cache=1 | |
4691 | fi | |
4692 | ||
4693 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
698dcdb6 VZ |
4694 | |
4695 | fi | |
10f2d63a VZ |
4696 | |
4697 | ||
4698 | eval "$ac_cv_use_newgrid" | |
4699 | if test "$no_cache" != 1; then | |
4700 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
4701 | fi | |
4702 | ||
4703 | if test "$wxUSE_NEW_GRID" = yes; then | |
698dcdb6 | 4704 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4705 | else |
698dcdb6 | 4706 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4707 | fi |
698dcdb6 | 4708 | |
10f2d63a | 4709 | |
698dcdb6 VZ |
4710 | echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6 |
4711 | echo "configure:4712: checking for --enable-imaglist" >&5 | |
10f2d63a VZ |
4712 | no_cache=0 |
4713 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
4714 | if test "${enable_imaglist+set}" = set; then | |
4715 | enableval="$enable_imaglist" | |
698dcdb6 | 4716 | |
10f2d63a VZ |
4717 | if test "$enableval" = yes; then |
4718 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
4719 | else | |
4720 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
4721 | fi | |
698dcdb6 | 4722 | |
10f2d63a | 4723 | else |
698dcdb6 | 4724 | |
10f2d63a VZ |
4725 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
4726 | if test "x$LINE" != x ; then | |
4727 | eval "DEFAULT_$LINE" | |
4728 | else | |
4729 | no_cache=1 | |
4730 | fi | |
4731 | ||
4732 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
698dcdb6 VZ |
4733 | |
4734 | fi | |
10f2d63a VZ |
4735 | |
4736 | ||
4737 | eval "$ac_cv_use_imaglist" | |
4738 | if test "$no_cache" != 1; then | |
4739 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
4740 | fi | |
4741 | ||
4742 | if test "$wxUSE_IMAGLIST" = yes; then | |
698dcdb6 | 4743 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4744 | else |
698dcdb6 | 4745 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4746 | fi |
698dcdb6 | 4747 | |
10f2d63a | 4748 | |
698dcdb6 VZ |
4749 | echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6 |
4750 | echo "configure:4751: checking for --enable-listbox" >&5 | |
10f2d63a VZ |
4751 | no_cache=0 |
4752 | # Check whether --enable-listbox or --disable-listbox was given. | |
4753 | if test "${enable_listbox+set}" = set; then | |
4754 | enableval="$enable_listbox" | |
698dcdb6 | 4755 | |
10f2d63a VZ |
4756 | if test "$enableval" = yes; then |
4757 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
4758 | else | |
4759 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
4760 | fi | |
698dcdb6 | 4761 | |
10f2d63a | 4762 | else |
698dcdb6 | 4763 | |
10f2d63a VZ |
4764 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
4765 | if test "x$LINE" != x ; then | |
4766 | eval "DEFAULT_$LINE" | |
4767 | else | |
4768 | no_cache=1 | |
4769 | fi | |
4770 | ||
4771 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
698dcdb6 VZ |
4772 | |
4773 | fi | |
10f2d63a VZ |
4774 | |
4775 | ||
4776 | eval "$ac_cv_use_listbox" | |
4777 | if test "$no_cache" != 1; then | |
4778 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
4779 | fi | |
4780 | ||
4781 | if test "$wxUSE_LISTBOX" = yes; then | |
698dcdb6 | 4782 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4783 | else |
698dcdb6 | 4784 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4785 | fi |
698dcdb6 | 4786 | |
10f2d63a | 4787 | |
698dcdb6 VZ |
4788 | echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6 |
4789 | echo "configure:4790: checking for --enable-listctrl" >&5 | |
10f2d63a VZ |
4790 | no_cache=0 |
4791 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
4792 | if test "${enable_listctrl+set}" = set; then | |
4793 | enableval="$enable_listctrl" | |
698dcdb6 | 4794 | |
10f2d63a VZ |
4795 | if test "$enableval" = yes; then |
4796 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
4797 | else | |
4798 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
4799 | fi | |
698dcdb6 | 4800 | |
10f2d63a | 4801 | else |
698dcdb6 | 4802 | |
10f2d63a VZ |
4803 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
4804 | if test "x$LINE" != x ; then | |
4805 | eval "DEFAULT_$LINE" | |
4806 | else | |
4807 | no_cache=1 | |
4808 | fi | |
4809 | ||
4810 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
698dcdb6 VZ |
4811 | |
4812 | fi | |
10f2d63a VZ |
4813 | |
4814 | ||
4815 | eval "$ac_cv_use_listctrl" | |
4816 | if test "$no_cache" != 1; then | |
4817 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
4818 | fi | |
4819 | ||
4820 | if test "$wxUSE_LISTCTRL" = yes; then | |
698dcdb6 | 4821 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4822 | else |
698dcdb6 | 4823 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4824 | fi |
698dcdb6 | 4825 | |
10f2d63a | 4826 | |
698dcdb6 VZ |
4827 | echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6 |
4828 | echo "configure:4829: checking for --enable-notebook" >&5 | |
10f2d63a VZ |
4829 | no_cache=0 |
4830 | # Check whether --enable-notebook or --disable-notebook was given. | |
4831 | if test "${enable_notebook+set}" = set; then | |
4832 | enableval="$enable_notebook" | |
698dcdb6 | 4833 | |
10f2d63a VZ |
4834 | if test "$enableval" = yes; then |
4835 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
4836 | else | |
4837 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
4838 | fi | |
698dcdb6 | 4839 | |
10f2d63a | 4840 | else |
698dcdb6 | 4841 | |
10f2d63a VZ |
4842 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
4843 | if test "x$LINE" != x ; then | |
4844 | eval "DEFAULT_$LINE" | |
4845 | else | |
4846 | no_cache=1 | |
4847 | fi | |
4848 | ||
4849 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
698dcdb6 VZ |
4850 | |
4851 | fi | |
10f2d63a VZ |
4852 | |
4853 | ||
4854 | eval "$ac_cv_use_notebook" | |
4855 | if test "$no_cache" != 1; then | |
4856 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
4857 | fi | |
4858 | ||
4859 | if test "$wxUSE_NOTEBOOK" = yes; then | |
698dcdb6 | 4860 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4861 | else |
698dcdb6 | 4862 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4863 | fi |
698dcdb6 | 4864 | |
10f2d63a | 4865 | |
698dcdb6 VZ |
4866 | echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6 |
4867 | echo "configure:4868: checking for --enable-radiobox" >&5 | |
10f2d63a VZ |
4868 | no_cache=0 |
4869 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
4870 | if test "${enable_radiobox+set}" = set; then | |
4871 | enableval="$enable_radiobox" | |
698dcdb6 | 4872 | |
10f2d63a VZ |
4873 | if test "$enableval" = yes; then |
4874 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
4875 | else | |
4876 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
4877 | fi | |
698dcdb6 | 4878 | |
10f2d63a | 4879 | else |
698dcdb6 | 4880 | |
10f2d63a VZ |
4881 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
4882 | if test "x$LINE" != x ; then | |
4883 | eval "DEFAULT_$LINE" | |
4884 | else | |
4885 | no_cache=1 | |
4886 | fi | |
4887 | ||
4888 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
698dcdb6 VZ |
4889 | |
4890 | fi | |
10f2d63a VZ |
4891 | |
4892 | ||
4893 | eval "$ac_cv_use_radiobox" | |
4894 | if test "$no_cache" != 1; then | |
4895 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
4896 | fi | |
4897 | ||
4898 | if test "$wxUSE_RADIOBOX" = yes; then | |
698dcdb6 | 4899 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4900 | else |
698dcdb6 | 4901 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4902 | fi |
698dcdb6 | 4903 | |
10f2d63a | 4904 | |
698dcdb6 VZ |
4905 | echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6 |
4906 | echo "configure:4907: checking for --enable-radiobtn" >&5 | |
10f2d63a VZ |
4907 | no_cache=0 |
4908 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
4909 | if test "${enable_radiobtn+set}" = set; then | |
4910 | enableval="$enable_radiobtn" | |
698dcdb6 | 4911 | |
10f2d63a VZ |
4912 | if test "$enableval" = yes; then |
4913 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
4914 | else | |
4915 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
4916 | fi | |
698dcdb6 | 4917 | |
10f2d63a | 4918 | else |
698dcdb6 | 4919 | |
10f2d63a VZ |
4920 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
4921 | if test "x$LINE" != x ; then | |
4922 | eval "DEFAULT_$LINE" | |
4923 | else | |
4924 | no_cache=1 | |
4925 | fi | |
4926 | ||
4927 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
698dcdb6 VZ |
4928 | |
4929 | fi | |
10f2d63a VZ |
4930 | |
4931 | ||
4932 | eval "$ac_cv_use_radiobtn" | |
4933 | if test "$no_cache" != 1; then | |
4934 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
4935 | fi | |
4936 | ||
4937 | if test "$wxUSE_RADIOBTN" = yes; then | |
698dcdb6 | 4938 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4939 | else |
698dcdb6 | 4940 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4941 | fi |
698dcdb6 | 4942 | |
10f2d63a | 4943 | |
698dcdb6 VZ |
4944 | echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6 |
4945 | echo "configure:4946: checking for --enable-sash" >&5 | |
10f2d63a VZ |
4946 | no_cache=0 |
4947 | # Check whether --enable-sash or --disable-sash was given. | |
4948 | if test "${enable_sash+set}" = set; then | |
4949 | enableval="$enable_sash" | |
698dcdb6 | 4950 | |
10f2d63a VZ |
4951 | if test "$enableval" = yes; then |
4952 | ac_cv_use_sash='wxUSE_SASH=yes' | |
4953 | else | |
4954 | ac_cv_use_sash='wxUSE_SASH=no' | |
4955 | fi | |
698dcdb6 | 4956 | |
10f2d63a | 4957 | else |
698dcdb6 | 4958 | |
10f2d63a VZ |
4959 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
4960 | if test "x$LINE" != x ; then | |
4961 | eval "DEFAULT_$LINE" | |
4962 | else | |
4963 | no_cache=1 | |
4964 | fi | |
4965 | ||
4966 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
698dcdb6 VZ |
4967 | |
4968 | fi | |
10f2d63a VZ |
4969 | |
4970 | ||
4971 | eval "$ac_cv_use_sash" | |
4972 | if test "$no_cache" != 1; then | |
4973 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
4974 | fi | |
4975 | ||
4976 | if test "$wxUSE_SASH" = yes; then | |
698dcdb6 | 4977 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4978 | else |
698dcdb6 | 4979 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4980 | fi |
698dcdb6 | 4981 | |
10f2d63a | 4982 | |
698dcdb6 VZ |
4983 | echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6 |
4984 | echo "configure:4985: checking for --enable-scrollbar" >&5 | |
10f2d63a VZ |
4985 | no_cache=0 |
4986 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
4987 | if test "${enable_scrollbar+set}" = set; then | |
4988 | enableval="$enable_scrollbar" | |
698dcdb6 | 4989 | |
10f2d63a VZ |
4990 | if test "$enableval" = yes; then |
4991 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
4992 | else | |
4993 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
4994 | fi | |
698dcdb6 | 4995 | |
10f2d63a | 4996 | else |
698dcdb6 | 4997 | |
10f2d63a VZ |
4998 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
4999 | if test "x$LINE" != x ; then | |
5000 | eval "DEFAULT_$LINE" | |
5001 | else | |
5002 | no_cache=1 | |
5003 | fi | |
5004 | ||
5005 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
698dcdb6 VZ |
5006 | |
5007 | fi | |
10f2d63a VZ |
5008 | |
5009 | ||
5010 | eval "$ac_cv_use_scrollbar" | |
5011 | if test "$no_cache" != 1; then | |
5012 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
5013 | fi | |
5014 | ||
5015 | if test "$wxUSE_SCROLLBAR" = yes; then | |
698dcdb6 | 5016 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5017 | else |
698dcdb6 | 5018 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5019 | fi |
698dcdb6 | 5020 | |
10f2d63a | 5021 | |
698dcdb6 VZ |
5022 | echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6 |
5023 | echo "configure:5024: checking for --enable-slider" >&5 | |
10f2d63a VZ |
5024 | no_cache=0 |
5025 | # Check whether --enable-slider or --disable-slider was given. | |
5026 | if test "${enable_slider+set}" = set; then | |
5027 | enableval="$enable_slider" | |
698dcdb6 | 5028 | |
10f2d63a VZ |
5029 | if test "$enableval" = yes; then |
5030 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
5031 | else | |
5032 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
5033 | fi | |
698dcdb6 | 5034 | |
10f2d63a | 5035 | else |
698dcdb6 | 5036 | |
10f2d63a VZ |
5037 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
5038 | if test "x$LINE" != x ; then | |
5039 | eval "DEFAULT_$LINE" | |
5040 | else | |
5041 | no_cache=1 | |
5042 | fi | |
5043 | ||
5044 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
698dcdb6 VZ |
5045 | |
5046 | fi | |
10f2d63a VZ |
5047 | |
5048 | ||
5049 | eval "$ac_cv_use_slider" | |
5050 | if test "$no_cache" != 1; then | |
5051 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
5052 | fi | |
5053 | ||
5054 | if test "$wxUSE_SLIDER" = yes; then | |
698dcdb6 | 5055 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5056 | else |
698dcdb6 | 5057 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5058 | fi |
698dcdb6 | 5059 | |
10f2d63a | 5060 | |
698dcdb6 VZ |
5061 | echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6 |
5062 | echo "configure:5063: checking for --enable-spinbtn" >&5 | |
10f2d63a VZ |
5063 | no_cache=0 |
5064 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
5065 | if test "${enable_spinbtn+set}" = set; then | |
5066 | enableval="$enable_spinbtn" | |
698dcdb6 | 5067 | |
10f2d63a VZ |
5068 | if test "$enableval" = yes; then |
5069 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
5070 | else | |
5071 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
5072 | fi | |
698dcdb6 | 5073 | |
10f2d63a | 5074 | else |
698dcdb6 | 5075 | |
10f2d63a VZ |
5076 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
5077 | if test "x$LINE" != x ; then | |
5078 | eval "DEFAULT_$LINE" | |
5079 | else | |
5080 | no_cache=1 | |
5081 | fi | |
5082 | ||
5083 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
698dcdb6 VZ |
5084 | |
5085 | fi | |
10f2d63a VZ |
5086 | |
5087 | ||
5088 | eval "$ac_cv_use_spinbtn" | |
5089 | if test "$no_cache" != 1; then | |
5090 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
5091 | fi | |
5092 | ||
5093 | if test "$wxUSE_SPINBTN" = yes; then | |
698dcdb6 | 5094 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5095 | else |
698dcdb6 | 5096 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5097 | fi |
698dcdb6 | 5098 | |
10f2d63a | 5099 | |
698dcdb6 VZ |
5100 | echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6 |
5101 | echo "configure:5102: checking for --enable-spinctrl" >&5 | |
56cfaa52 RR |
5102 | no_cache=0 |
5103 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
5104 | if test "${enable_spinctrl+set}" = set; then | |
5105 | enableval="$enable_spinctrl" | |
698dcdb6 | 5106 | |
56cfaa52 RR |
5107 | if test "$enableval" = yes; then |
5108 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
5109 | else | |
5110 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
5111 | fi | |
698dcdb6 | 5112 | |
56cfaa52 | 5113 | else |
698dcdb6 | 5114 | |
56cfaa52 RR |
5115 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
5116 | if test "x$LINE" != x ; then | |
5117 | eval "DEFAULT_$LINE" | |
5118 | else | |
5119 | no_cache=1 | |
5120 | fi | |
5121 | ||
5122 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
698dcdb6 VZ |
5123 | |
5124 | fi | |
56cfaa52 RR |
5125 | |
5126 | ||
5127 | eval "$ac_cv_use_spinctrl" | |
5128 | if test "$no_cache" != 1; then | |
5129 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
5130 | fi | |
5131 | ||
5132 | if test "$wxUSE_SPINCTRL" = yes; then | |
698dcdb6 | 5133 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 5134 | else |
698dcdb6 | 5135 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 5136 | fi |
698dcdb6 | 5137 | |
56cfaa52 | 5138 | |
698dcdb6 VZ |
5139 | echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6 |
5140 | echo "configure:5141: checking for --enable-splitter" >&5 | |
10f2d63a VZ |
5141 | no_cache=0 |
5142 | # Check whether --enable-splitter or --disable-splitter was given. | |
5143 | if test "${enable_splitter+set}" = set; then | |
5144 | enableval="$enable_splitter" | |
698dcdb6 | 5145 | |
10f2d63a VZ |
5146 | if test "$enableval" = yes; then |
5147 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
5148 | else | |
5149 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
5150 | fi | |
698dcdb6 | 5151 | |
10f2d63a | 5152 | else |
698dcdb6 | 5153 | |
10f2d63a VZ |
5154 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
5155 | if test "x$LINE" != x ; then | |
5156 | eval "DEFAULT_$LINE" | |
5157 | else | |
5158 | no_cache=1 | |
5159 | fi | |
5160 | ||
5161 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
698dcdb6 VZ |
5162 | |
5163 | fi | |
10f2d63a VZ |
5164 | |
5165 | ||
5166 | eval "$ac_cv_use_splitter" | |
5167 | if test "$no_cache" != 1; then | |
5168 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
5169 | fi | |
5170 | ||
5171 | if test "$wxUSE_SPLITTER" = yes; then | |
698dcdb6 | 5172 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5173 | else |
698dcdb6 | 5174 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5175 | fi |
698dcdb6 | 5176 | |
10f2d63a | 5177 | |
698dcdb6 VZ |
5178 | echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6 |
5179 | echo "configure:5180: checking for --enable-statbmp" >&5 | |
10f2d63a VZ |
5180 | no_cache=0 |
5181 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
5182 | if test "${enable_statbmp+set}" = set; then | |
5183 | enableval="$enable_statbmp" | |
698dcdb6 | 5184 | |
10f2d63a VZ |
5185 | if test "$enableval" = yes; then |
5186 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
5187 | else | |
5188 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
5189 | fi | |
698dcdb6 | 5190 | |
10f2d63a | 5191 | else |
698dcdb6 | 5192 | |
10f2d63a VZ |
5193 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
5194 | if test "x$LINE" != x ; then | |
5195 | eval "DEFAULT_$LINE" | |
5196 | else | |
5197 | no_cache=1 | |
5198 | fi | |
5199 | ||
5200 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
698dcdb6 VZ |
5201 | |
5202 | fi | |
10f2d63a VZ |
5203 | |
5204 | ||
5205 | eval "$ac_cv_use_statbmp" | |
5206 | if test "$no_cache" != 1; then | |
5207 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
5208 | fi | |
5209 | ||
5210 | if test "$wxUSE_STATBMP" = yes; then | |
698dcdb6 | 5211 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5212 | else |
698dcdb6 | 5213 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5214 | fi |
698dcdb6 | 5215 | |
10f2d63a | 5216 | |
698dcdb6 VZ |
5217 | echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6 |
5218 | echo "configure:5219: checking for --enable-statbox" >&5 | |
10f2d63a VZ |
5219 | no_cache=0 |
5220 | # Check whether --enable-statbox or --disable-statbox was given. | |
5221 | if test "${enable_statbox+set}" = set; then | |
5222 | enableval="$enable_statbox" | |
698dcdb6 | 5223 | |
10f2d63a VZ |
5224 | if test "$enableval" = yes; then |
5225 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
5226 | else | |
5227 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
5228 | fi | |
698dcdb6 | 5229 | |
10f2d63a | 5230 | else |
698dcdb6 | 5231 | |
10f2d63a VZ |
5232 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
5233 | if test "x$LINE" != x ; then | |
5234 | eval "DEFAULT_$LINE" | |
5235 | else | |
5236 | no_cache=1 | |
5237 | fi | |
5238 | ||
5239 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
698dcdb6 VZ |
5240 | |
5241 | fi | |
10f2d63a VZ |
5242 | |
5243 | ||
5244 | eval "$ac_cv_use_statbox" | |
5245 | if test "$no_cache" != 1; then | |
5246 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
5247 | fi | |
5248 | ||
5249 | if test "$wxUSE_STATBOX" = yes; then | |
698dcdb6 | 5250 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5251 | else |
698dcdb6 | 5252 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5253 | fi |
698dcdb6 | 5254 | |
10f2d63a | 5255 | |
698dcdb6 VZ |
5256 | echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6 |
5257 | echo "configure:5258: checking for --enable-statline" >&5 | |
10f2d63a VZ |
5258 | no_cache=0 |
5259 | # Check whether --enable-statline or --disable-statline was given. | |
5260 | if test "${enable_statline+set}" = set; then | |
5261 | enableval="$enable_statline" | |
698dcdb6 | 5262 | |
10f2d63a VZ |
5263 | if test "$enableval" = yes; then |
5264 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
5265 | else | |
5266 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
5267 | fi | |
698dcdb6 | 5268 | |
10f2d63a | 5269 | else |
698dcdb6 | 5270 | |
10f2d63a VZ |
5271 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
5272 | if test "x$LINE" != x ; then | |
5273 | eval "DEFAULT_$LINE" | |
5274 | else | |
5275 | no_cache=1 | |
5276 | fi | |
5277 | ||
5278 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
698dcdb6 VZ |
5279 | |
5280 | fi | |
10f2d63a VZ |
5281 | |
5282 | ||
5283 | eval "$ac_cv_use_statline" | |
5284 | if test "$no_cache" != 1; then | |
5285 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
5286 | fi | |
5287 | ||
5288 | if test "$wxUSE_STATLINE" = yes; then | |
698dcdb6 | 5289 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5290 | else |
698dcdb6 | 5291 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5292 | fi |
698dcdb6 | 5293 | |
10f2d63a | 5294 | |
698dcdb6 VZ |
5295 | echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6 |
5296 | echo "configure:5297: checking for --enable-statusbar" >&5 | |
10f2d63a VZ |
5297 | no_cache=0 |
5298 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
5299 | if test "${enable_statusbar+set}" = set; then | |
5300 | enableval="$enable_statusbar" | |
698dcdb6 | 5301 | |
10f2d63a VZ |
5302 | if test "$enableval" = yes; then |
5303 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
5304 | else | |
5305 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
5306 | fi | |
698dcdb6 | 5307 | |
10f2d63a | 5308 | else |
698dcdb6 | 5309 | |
10f2d63a VZ |
5310 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
5311 | if test "x$LINE" != x ; then | |
5312 | eval "DEFAULT_$LINE" | |
5313 | else | |
5314 | no_cache=1 | |
5315 | fi | |
5316 | ||
5317 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
698dcdb6 VZ |
5318 | |
5319 | fi | |
10f2d63a VZ |
5320 | |
5321 | ||
5322 | eval "$ac_cv_use_statusbar" | |
5323 | if test "$no_cache" != 1; then | |
5324 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
5325 | fi | |
5326 | ||
5327 | if test "$wxUSE_STATUSBAR" = yes; then | |
698dcdb6 | 5328 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5329 | else |
698dcdb6 | 5330 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5331 | fi |
698dcdb6 | 5332 | |
10f2d63a | 5333 | |
698dcdb6 VZ |
5334 | echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6 |
5335 | echo "configure:5336: checking for --enable-tabdialog" >&5 | |
10f2d63a VZ |
5336 | no_cache=0 |
5337 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
5338 | if test "${enable_tabdialog+set}" = set; then | |
5339 | enableval="$enable_tabdialog" | |
698dcdb6 | 5340 | |
10f2d63a VZ |
5341 | if test "$enableval" = yes; then |
5342 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
5343 | else | |
5344 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
5345 | fi | |
698dcdb6 | 5346 | |
10f2d63a | 5347 | else |
698dcdb6 | 5348 | |
10f2d63a VZ |
5349 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
5350 | if test "x$LINE" != x ; then | |
5351 | eval "DEFAULT_$LINE" | |
5352 | else | |
5353 | no_cache=1 | |
5354 | fi | |
5355 | ||
5356 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
698dcdb6 VZ |
5357 | |
5358 | fi | |
10f2d63a VZ |
5359 | |
5360 | ||
5361 | eval "$ac_cv_use_tabdialog" | |
5362 | if test "$no_cache" != 1; then | |
5363 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
5364 | fi | |
5365 | ||
5366 | if test "$wxUSE_TABDIALOG" = yes; then | |
698dcdb6 | 5367 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5368 | else |
698dcdb6 | 5369 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5370 | fi |
698dcdb6 | 5371 | |
10f2d63a | 5372 | |
698dcdb6 VZ |
5373 | echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6 |
5374 | echo "configure:5375: checking for --enable-togglebtn" >&5 | |
1db8dc4a VZ |
5375 | no_cache=0 |
5376 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
5377 | if test "${enable_togglebtn+set}" = set; then | |
5378 | enableval="$enable_togglebtn" | |
698dcdb6 | 5379 | |
1db8dc4a VZ |
5380 | if test "$enableval" = yes; then |
5381 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
5382 | else | |
5383 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
5384 | fi | |
698dcdb6 | 5385 | |
1db8dc4a | 5386 | else |
698dcdb6 | 5387 | |
1db8dc4a VZ |
5388 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
5389 | if test "x$LINE" != x ; then | |
5390 | eval "DEFAULT_$LINE" | |
5391 | else | |
5392 | no_cache=1 | |
5393 | fi | |
5394 | ||
5395 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
698dcdb6 VZ |
5396 | |
5397 | fi | |
1db8dc4a VZ |
5398 | |
5399 | ||
5400 | eval "$ac_cv_use_togglebtn" | |
5401 | if test "$no_cache" != 1; then | |
5402 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
5403 | fi | |
5404 | ||
5405 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
698dcdb6 | 5406 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 5407 | else |
698dcdb6 | 5408 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 5409 | fi |
698dcdb6 | 5410 | |
1db8dc4a | 5411 | |
698dcdb6 VZ |
5412 | echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6 |
5413 | echo "configure:5414: checking for --enable-toolbar" >&5 | |
10f2d63a VZ |
5414 | no_cache=0 |
5415 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
5416 | if test "${enable_toolbar+set}" = set; then | |
5417 | enableval="$enable_toolbar" | |
698dcdb6 | 5418 | |
10f2d63a VZ |
5419 | if test "$enableval" = yes; then |
5420 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
5421 | else | |
5422 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
5423 | fi | |
698dcdb6 | 5424 | |
10f2d63a | 5425 | else |
698dcdb6 | 5426 | |
10f2d63a VZ |
5427 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
5428 | if test "x$LINE" != x ; then | |
5429 | eval "DEFAULT_$LINE" | |
5430 | else | |
5431 | no_cache=1 | |
5432 | fi | |
5433 | ||
5434 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
698dcdb6 VZ |
5435 | |
5436 | fi | |
10f2d63a VZ |
5437 | |
5438 | ||
5439 | eval "$ac_cv_use_toolbar" | |
5440 | if test "$no_cache" != 1; then | |
5441 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
5442 | fi | |
5443 | ||
5444 | if test "$wxUSE_TOOLBAR" = yes; then | |
698dcdb6 | 5445 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5446 | else |
698dcdb6 | 5447 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5448 | fi |
698dcdb6 | 5449 | |
10f2d63a | 5450 | |
698dcdb6 VZ |
5451 | echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6 |
5452 | echo "configure:5453: checking for --enable-tbarnative" >&5 | |
360d6699 VZ |
5453 | no_cache=0 |
5454 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
5455 | if test "${enable_tbarnative+set}" = set; then | |
5456 | enableval="$enable_tbarnative" | |
698dcdb6 | 5457 | |
360d6699 VZ |
5458 | if test "$enableval" = yes; then |
5459 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
5460 | else | |
5461 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
5462 | fi | |
698dcdb6 | 5463 | |
360d6699 | 5464 | else |
698dcdb6 | 5465 | |
360d6699 VZ |
5466 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
5467 | if test "x$LINE" != x ; then | |
5468 | eval "DEFAULT_$LINE" | |
5469 | else | |
5470 | no_cache=1 | |
5471 | fi | |
5472 | ||
5473 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
698dcdb6 VZ |
5474 | |
5475 | fi | |
360d6699 VZ |
5476 | |
5477 | ||
5478 | eval "$ac_cv_use_tbarnative" | |
5479 | if test "$no_cache" != 1; then | |
5480 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
5481 | fi | |
5482 | ||
5483 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
698dcdb6 | 5484 | echo "$ac_t""yes" 1>&6 |
360d6699 | 5485 | else |
698dcdb6 | 5486 | echo "$ac_t""no" 1>&6 |
360d6699 | 5487 | fi |
698dcdb6 | 5488 | |
360d6699 | 5489 | |
698dcdb6 VZ |
5490 | echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6 |
5491 | echo "configure:5492: checking for --enable-tbarsmpl" >&5 | |
360d6699 VZ |
5492 | no_cache=0 |
5493 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
5494 | if test "${enable_tbarsmpl+set}" = set; then | |
5495 | enableval="$enable_tbarsmpl" | |
698dcdb6 | 5496 | |
360d6699 VZ |
5497 | if test "$enableval" = yes; then |
5498 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
5499 | else | |
5500 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
5501 | fi | |
698dcdb6 | 5502 | |
360d6699 | 5503 | else |
698dcdb6 | 5504 | |
360d6699 VZ |
5505 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
5506 | if test "x$LINE" != x ; then | |
5507 | eval "DEFAULT_$LINE" | |
5508 | else | |
5509 | no_cache=1 | |
5510 | fi | |
5511 | ||
5512 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
698dcdb6 VZ |
5513 | |
5514 | fi | |
360d6699 VZ |
5515 | |
5516 | ||
5517 | eval "$ac_cv_use_tbarsmpl" | |
5518 | if test "$no_cache" != 1; then | |
5519 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
5520 | fi | |
5521 | ||
5522 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
698dcdb6 | 5523 | echo "$ac_t""yes" 1>&6 |
360d6699 | 5524 | else |
698dcdb6 | 5525 | echo "$ac_t""no" 1>&6 |
360d6699 | 5526 | fi |
698dcdb6 | 5527 | |
360d6699 | 5528 | |
698dcdb6 VZ |
5529 | echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6 |
5530 | echo "configure:5531: checking for --enable-treectrl" >&5 | |
10f2d63a VZ |
5531 | no_cache=0 |
5532 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
5533 | if test "${enable_treectrl+set}" = set; then | |
5534 | enableval="$enable_treectrl" | |
698dcdb6 | 5535 | |
10f2d63a VZ |
5536 | if test "$enableval" = yes; then |
5537 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
5538 | else | |
5539 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
5540 | fi | |
698dcdb6 | 5541 | |
10f2d63a | 5542 | else |
698dcdb6 | 5543 | |
10f2d63a VZ |
5544 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
5545 | if test "x$LINE" != x ; then | |
5546 | eval "DEFAULT_$LINE" | |
5547 | else | |
5548 | no_cache=1 | |
5549 | fi | |
5550 | ||
5551 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
698dcdb6 VZ |
5552 | |
5553 | fi | |
10f2d63a VZ |
5554 | |
5555 | ||
5556 | eval "$ac_cv_use_treectrl" | |
5557 | if test "$no_cache" != 1; then | |
5558 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
5559 | fi | |
5560 | ||
5561 | if test "$wxUSE_TREECTRL" = yes; then | |
698dcdb6 | 5562 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5563 | else |
698dcdb6 | 5564 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5565 | fi |
698dcdb6 VZ |
5566 | |
5567 | ||
10f2d63a | 5568 | |
698dcdb6 VZ |
5569 | |
5570 | echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6 | |
5571 | echo "configure:5572: checking for --enable-commondlg" >&5 | |
10f2d63a VZ |
5572 | no_cache=0 |
5573 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
5574 | if test "${enable_commondlg+set}" = set; then | |
5575 | enableval="$enable_commondlg" | |
698dcdb6 | 5576 | |
10f2d63a VZ |
5577 | if test "$enableval" = yes; then |
5578 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
5579 | else | |
5580 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
5581 | fi | |
698dcdb6 | 5582 | |
10f2d63a | 5583 | else |
698dcdb6 | 5584 | |
10f2d63a VZ |
5585 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` |
5586 | if test "x$LINE" != x ; then | |
5587 | eval "DEFAULT_$LINE" | |
5588 | else | |
5589 | no_cache=1 | |
5590 | fi | |
5591 | ||
5592 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
698dcdb6 VZ |
5593 | |
5594 | fi | |
10f2d63a VZ |
5595 | |
5596 | ||
5597 | eval "$ac_cv_use_commondlg" | |
5598 | if test "$no_cache" != 1; then | |
5599 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
5600 | fi | |
5601 | ||
5602 | if test "$wxUSE_COMMONDLGS" = yes; then | |
698dcdb6 | 5603 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5604 | else |
698dcdb6 | 5605 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5606 | fi |
698dcdb6 | 5607 | |
10f2d63a | 5608 | |
698dcdb6 VZ |
5609 | echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6 |
5610 | echo "configure:5611: checking for --enable-dirdlg" >&5 | |
10f2d63a VZ |
5611 | no_cache=0 |
5612 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
5613 | if test "${enable_dirdlg+set}" = set; then | |
5614 | enableval="$enable_dirdlg" | |
698dcdb6 | 5615 | |
10f2d63a VZ |
5616 | if test "$enableval" = yes; then |
5617 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
5618 | else | |
5619 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
5620 | fi | |
698dcdb6 | 5621 | |
10f2d63a | 5622 | else |
698dcdb6 | 5623 | |
10f2d63a VZ |
5624 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` |
5625 | if test "x$LINE" != x ; then | |
5626 | eval "DEFAULT_$LINE" | |
5627 | else | |
5628 | no_cache=1 | |
5629 | fi | |
5630 | ||
5631 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
698dcdb6 VZ |
5632 | |
5633 | fi | |
10f2d63a VZ |
5634 | |
5635 | ||
5636 | eval "$ac_cv_use_dirdlg" | |
5637 | if test "$no_cache" != 1; then | |
5638 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
5639 | fi | |
5640 | ||
5641 | if test "$wxUSE_DIRDLG" = yes; then | |
698dcdb6 | 5642 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5643 | else |
698dcdb6 | 5644 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5645 | fi |
698dcdb6 | 5646 | |
10f2d63a | 5647 | |
698dcdb6 VZ |
5648 | echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6 |
5649 | echo "configure:5650: checking for --enable-textdlg" >&5 | |
10f2d63a VZ |
5650 | no_cache=0 |
5651 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
5652 | if test "${enable_textdlg+set}" = set; then | |
5653 | enableval="$enable_textdlg" | |
698dcdb6 | 5654 | |
10f2d63a VZ |
5655 | if test "$enableval" = yes; then |
5656 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
5657 | else | |
5658 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
5659 | fi | |
698dcdb6 | 5660 | |
10f2d63a | 5661 | else |
698dcdb6 | 5662 | |
10f2d63a VZ |
5663 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
5664 | if test "x$LINE" != x ; then | |
5665 | eval "DEFAULT_$LINE" | |
5666 | else | |
5667 | no_cache=1 | |
5668 | fi | |
5669 | ||
5670 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
698dcdb6 VZ |
5671 | |
5672 | fi | |
10f2d63a VZ |
5673 | |
5674 | ||
5675 | eval "$ac_cv_use_textdlg" | |
5676 | if test "$no_cache" != 1; then | |
5677 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
5678 | fi | |
5679 | ||
5680 | if test "$wxUSE_TEXTDLG" = yes; then | |
698dcdb6 | 5681 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5682 | else |
698dcdb6 | 5683 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5684 | fi |
698dcdb6 | 5685 | |
10f2d63a | 5686 | |
698dcdb6 VZ |
5687 | echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6 |
5688 | echo "configure:5689: checking for --enable-tipdlg" >&5 | |
10f2d63a VZ |
5689 | no_cache=0 |
5690 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
5691 | if test "${enable_tipdlg+set}" = set; then | |
5692 | enableval="$enable_tipdlg" | |
698dcdb6 | 5693 | |
10f2d63a VZ |
5694 | if test "$enableval" = yes; then |
5695 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
5696 | else | |
5697 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
5698 | fi | |
698dcdb6 | 5699 | |
10f2d63a | 5700 | else |
698dcdb6 | 5701 | |
10f2d63a VZ |
5702 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
5703 | if test "x$LINE" != x ; then | |
5704 | eval "DEFAULT_$LINE" | |
5705 | else | |
5706 | no_cache=1 | |
5707 | fi | |
5708 | ||
5709 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
698dcdb6 VZ |
5710 | |
5711 | fi | |
10f2d63a VZ |
5712 | |
5713 | ||
5714 | eval "$ac_cv_use_tipdlg" | |
5715 | if test "$no_cache" != 1; then | |
5716 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
5717 | fi | |
5718 | ||
5719 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
698dcdb6 | 5720 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5721 | else |
698dcdb6 | 5722 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5723 | fi |
698dcdb6 | 5724 | |
10f2d63a | 5725 | |
698dcdb6 VZ |
5726 | echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6 |
5727 | echo "configure:5728: checking for --enable-progressdlg" >&5 | |
10f2d63a VZ |
5728 | no_cache=0 |
5729 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
5730 | if test "${enable_progressdlg+set}" = set; then | |
5731 | enableval="$enable_progressdlg" | |
698dcdb6 | 5732 | |
10f2d63a VZ |
5733 | if test "$enableval" = yes; then |
5734 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
5735 | else | |
5736 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
5737 | fi | |
698dcdb6 | 5738 | |
10f2d63a | 5739 | else |
698dcdb6 | 5740 | |
10f2d63a VZ |
5741 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
5742 | if test "x$LINE" != x ; then | |
5743 | eval "DEFAULT_$LINE" | |
5744 | else | |
5745 | no_cache=1 | |
5746 | fi | |
5747 | ||
5748 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
698dcdb6 VZ |
5749 | |
5750 | fi | |
10f2d63a VZ |
5751 | |
5752 | ||
5753 | eval "$ac_cv_use_progressdlg" | |
5754 | if test "$no_cache" != 1; then | |
5755 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
5756 | fi | |
5757 | ||
5758 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
698dcdb6 | 5759 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5760 | else |
698dcdb6 | 5761 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5762 | fi |
698dcdb6 | 5763 | |
10f2d63a | 5764 | |
698dcdb6 VZ |
5765 | echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6 |
5766 | echo "configure:5767: checking for --enable-miniframe" >&5 | |
10f2d63a VZ |
5767 | no_cache=0 |
5768 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
5769 | if test "${enable_miniframe+set}" = set; then | |
5770 | enableval="$enable_miniframe" | |
698dcdb6 | 5771 | |
10f2d63a VZ |
5772 | if test "$enableval" = yes; then |
5773 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
5774 | else | |
5775 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
5776 | fi | |
698dcdb6 | 5777 | |
10f2d63a | 5778 | else |
698dcdb6 | 5779 | |
10f2d63a VZ |
5780 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
5781 | if test "x$LINE" != x ; then | |
5782 | eval "DEFAULT_$LINE" | |
5783 | else | |
5784 | no_cache=1 | |
5785 | fi | |
5786 | ||
5787 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
698dcdb6 VZ |
5788 | |
5789 | fi | |
10f2d63a VZ |
5790 | |
5791 | ||
5792 | eval "$ac_cv_use_miniframe" | |
5793 | if test "$no_cache" != 1; then | |
5794 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
5795 | fi | |
5796 | ||
5797 | if test "$wxUSE_MINIFRAME" = yes; then | |
698dcdb6 | 5798 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5799 | else |
698dcdb6 | 5800 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5801 | fi |
698dcdb6 | 5802 | |
10f2d63a | 5803 | |
698dcdb6 VZ |
5804 | echo $ac_n "checking for --enable-html""... $ac_c" 1>&6 |
5805 | echo "configure:5806: checking for --enable-html" >&5 | |
10f2d63a VZ |
5806 | no_cache=0 |
5807 | # Check whether --enable-html or --disable-html was given. | |
5808 | if test "${enable_html+set}" = set; then | |
5809 | enableval="$enable_html" | |
698dcdb6 | 5810 | |
10f2d63a VZ |
5811 | if test "$enableval" = yes; then |
5812 | ac_cv_use_html='wxUSE_HTML=yes' | |
5813 | else | |
5814 | ac_cv_use_html='wxUSE_HTML=no' | |
5815 | fi | |
698dcdb6 | 5816 | |
10f2d63a | 5817 | else |
698dcdb6 | 5818 | |
10f2d63a VZ |
5819 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` |
5820 | if test "x$LINE" != x ; then | |
5821 | eval "DEFAULT_$LINE" | |
5822 | else | |
5823 | no_cache=1 | |
5824 | fi | |
5825 | ||
5826 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
698dcdb6 VZ |
5827 | |
5828 | fi | |
10f2d63a VZ |
5829 | |
5830 | ||
5831 | eval "$ac_cv_use_html" | |
5832 | if test "$no_cache" != 1; then | |
5833 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
5834 | fi | |
5835 | ||
5836 | if test "$wxUSE_HTML" = yes; then | |
698dcdb6 | 5837 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5838 | else |
698dcdb6 | 5839 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5840 | fi |
698dcdb6 | 5841 | |
10f2d63a | 5842 | |
698dcdb6 VZ |
5843 | echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6 |
5844 | echo "configure:5845: checking for --enable-tooltips" >&5 | |
10f2d63a VZ |
5845 | no_cache=0 |
5846 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
5847 | if test "${enable_tooltips+set}" = set; then | |
5848 | enableval="$enable_tooltips" | |
698dcdb6 | 5849 | |
10f2d63a VZ |
5850 | if test "$enableval" = yes; then |
5851 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
5852 | else | |
5853 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
5854 | fi | |
698dcdb6 | 5855 | |
10f2d63a | 5856 | else |
698dcdb6 | 5857 | |
10f2d63a VZ |
5858 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
5859 | if test "x$LINE" != x ; then | |
5860 | eval "DEFAULT_$LINE" | |
5861 | else | |
5862 | no_cache=1 | |
5863 | fi | |
5864 | ||
5865 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
698dcdb6 VZ |
5866 | |
5867 | fi | |
10f2d63a VZ |
5868 | |
5869 | ||
5870 | eval "$ac_cv_use_tooltips" | |
5871 | if test "$no_cache" != 1; then | |
5872 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
5873 | fi | |
5874 | ||
5875 | if test "$wxUSE_TOOLTIPS" = yes; then | |
698dcdb6 | 5876 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5877 | else |
698dcdb6 | 5878 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5879 | fi |
698dcdb6 | 5880 | |
10f2d63a | 5881 | |
698dcdb6 VZ |
5882 | echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6 |
5883 | echo "configure:5884: checking for --enable-splines" >&5 | |
10f2d63a VZ |
5884 | no_cache=0 |
5885 | # Check whether --enable-splines or --disable-splines was given. | |
5886 | if test "${enable_splines+set}" = set; then | |
5887 | enableval="$enable_splines" | |
698dcdb6 | 5888 | |
10f2d63a VZ |
5889 | if test "$enableval" = yes; then |
5890 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
5891 | else | |
5892 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
5893 | fi | |
698dcdb6 | 5894 | |
10f2d63a | 5895 | else |
698dcdb6 | 5896 | |
10f2d63a VZ |
5897 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
5898 | if test "x$LINE" != x ; then | |
5899 | eval "DEFAULT_$LINE" | |
5900 | else | |
5901 | no_cache=1 | |
5902 | fi | |
5903 | ||
5904 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
698dcdb6 VZ |
5905 | |
5906 | fi | |
10f2d63a VZ |
5907 | |
5908 | ||
5909 | eval "$ac_cv_use_splines" | |
5910 | if test "$no_cache" != 1; then | |
5911 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
5912 | fi | |
5913 | ||
5914 | if test "$wxUSE_SPLINES" = yes; then | |
698dcdb6 | 5915 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5916 | else |
698dcdb6 | 5917 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5918 | fi |
698dcdb6 | 5919 | |
10f2d63a | 5920 | |
698dcdb6 VZ |
5921 | echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6 |
5922 | echo "configure:5923: checking for --enable-validators" >&5 | |
10f2d63a VZ |
5923 | no_cache=0 |
5924 | # Check whether --enable-validators or --disable-validators was given. | |
5925 | if test "${enable_validators+set}" = set; then | |
5926 | enableval="$enable_validators" | |
698dcdb6 | 5927 | |
10f2d63a VZ |
5928 | if test "$enableval" = yes; then |
5929 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
5930 | else | |
5931 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
5932 | fi | |
698dcdb6 | 5933 | |
10f2d63a | 5934 | else |
698dcdb6 | 5935 | |
10f2d63a VZ |
5936 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
5937 | if test "x$LINE" != x ; then | |
5938 | eval "DEFAULT_$LINE" | |
5939 | else | |
5940 | no_cache=1 | |
5941 | fi | |
5942 | ||
5943 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
698dcdb6 VZ |
5944 | |
5945 | fi | |
10f2d63a VZ |
5946 | |
5947 | ||
5948 | eval "$ac_cv_use_validators" | |
5949 | if test "$no_cache" != 1; then | |
5950 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
5951 | fi | |
5952 | ||
5953 | if test "$wxUSE_VALIDATORS" = yes; then | |
698dcdb6 | 5954 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5955 | else |
698dcdb6 | 5956 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5957 | fi |
698dcdb6 | 5958 | |
10f2d63a | 5959 | |
698dcdb6 VZ |
5960 | echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6 |
5961 | echo "configure:5962: checking for --enable-busyinfo" >&5 | |
10f2d63a VZ |
5962 | no_cache=0 |
5963 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
5964 | if test "${enable_busyinfo+set}" = set; then | |
5965 | enableval="$enable_busyinfo" | |
698dcdb6 | 5966 | |
10f2d63a VZ |
5967 | if test "$enableval" = yes; then |
5968 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
5969 | else | |
5970 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
5971 | fi | |
698dcdb6 | 5972 | |
10f2d63a | 5973 | else |
698dcdb6 | 5974 | |
10f2d63a VZ |
5975 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
5976 | if test "x$LINE" != x ; then | |
5977 | eval "DEFAULT_$LINE" | |
5978 | else | |
5979 | no_cache=1 | |
5980 | fi | |
5981 | ||
5982 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
698dcdb6 VZ |
5983 | |
5984 | fi | |
10f2d63a VZ |
5985 | |
5986 | ||
5987 | eval "$ac_cv_use_busyinfo" | |
5988 | if test "$no_cache" != 1; then | |
5989 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
5990 | fi | |
5991 | ||
5992 | if test "$wxUSE_BUSYINFO" = yes; then | |
698dcdb6 | 5993 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5994 | else |
698dcdb6 | 5995 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5996 | fi |
698dcdb6 | 5997 | |
10f2d63a | 5998 | |
698dcdb6 VZ |
5999 | echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6 |
6000 | echo "configure:6001: checking for --enable-joystick" >&5 | |
f6bcfd97 BP |
6001 | no_cache=0 |
6002 | # Check whether --enable-joystick or --disable-joystick was given. | |
6003 | if test "${enable_joystick+set}" = set; then | |
6004 | enableval="$enable_joystick" | |
698dcdb6 | 6005 | |
f6bcfd97 BP |
6006 | if test "$enableval" = yes; then |
6007 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
6008 | else | |
6009 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
6010 | fi | |
698dcdb6 | 6011 | |
f6bcfd97 | 6012 | else |
698dcdb6 | 6013 | |
f6bcfd97 BP |
6014 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
6015 | if test "x$LINE" != x ; then | |
6016 | eval "DEFAULT_$LINE" | |
6017 | else | |
6018 | no_cache=1 | |
6019 | fi | |
6020 | ||
6021 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
698dcdb6 VZ |
6022 | |
6023 | fi | |
f6bcfd97 BP |
6024 | |
6025 | ||
6026 | eval "$ac_cv_use_joystick" | |
6027 | if test "$no_cache" != 1; then | |
6028 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
6029 | fi | |
6030 | ||
6031 | if test "$wxUSE_JOYSTICK" = yes; then | |
698dcdb6 | 6032 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 6033 | else |
698dcdb6 | 6034 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 6035 | fi |
698dcdb6 VZ |
6036 | |
6037 | ||
10f2d63a | 6038 | |
698dcdb6 VZ |
6039 | |
6040 | echo $ac_n "checking for --enable-image""... $ac_c" 1>&6 | |
6041 | echo "configure:6042: checking for --enable-image" >&5 | |
0046ff7c VS |
6042 | no_cache=0 |
6043 | # Check whether --enable-image or --disable-image was given. | |
6044 | if test "${enable_image+set}" = set; then | |
6045 | enableval="$enable_image" | |
698dcdb6 | 6046 | |
0046ff7c VS |
6047 | if test "$enableval" = yes; then |
6048 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
6049 | else | |
6050 | ac_cv_use_image='wxUSE_IMAGE=no' | |
6051 | fi | |
698dcdb6 | 6052 | |
0046ff7c | 6053 | else |
698dcdb6 | 6054 | |
0046ff7c VS |
6055 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
6056 | if test "x$LINE" != x ; then | |
6057 | eval "DEFAULT_$LINE" | |
6058 | else | |
6059 | no_cache=1 | |
6060 | fi | |
6061 | ||
6062 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
698dcdb6 VZ |
6063 | |
6064 | fi | |
0046ff7c VS |
6065 | |
6066 | ||
6067 | eval "$ac_cv_use_image" | |
6068 | if test "$no_cache" != 1; then | |
6069 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
6070 | fi | |
6071 | ||
6072 | if test "$wxUSE_IMAGE" = yes; then | |
698dcdb6 | 6073 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 6074 | else |
698dcdb6 | 6075 | echo "$ac_t""no" 1>&6 |
0046ff7c | 6076 | fi |
698dcdb6 | 6077 | |
0046ff7c | 6078 | |
698dcdb6 VZ |
6079 | echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6 |
6080 | echo "configure:6081: checking for --enable-gif" >&5 | |
10f2d63a VZ |
6081 | no_cache=0 |
6082 | # Check whether --enable-gif or --disable-gif was given. | |
6083 | if test "${enable_gif+set}" = set; then | |
6084 | enableval="$enable_gif" | |
698dcdb6 | 6085 | |
10f2d63a VZ |
6086 | if test "$enableval" = yes; then |
6087 | ac_cv_use_gif='wxUSE_GIF=yes' | |
6088 | else | |
6089 | ac_cv_use_gif='wxUSE_GIF=no' | |
6090 | fi | |
698dcdb6 | 6091 | |
10f2d63a | 6092 | else |
698dcdb6 | 6093 | |
10f2d63a VZ |
6094 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
6095 | if test "x$LINE" != x ; then | |
6096 | eval "DEFAULT_$LINE" | |
6097 | else | |
6098 | no_cache=1 | |
6099 | fi | |
6100 | ||
6101 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
698dcdb6 VZ |
6102 | |
6103 | fi | |
10f2d63a VZ |
6104 | |
6105 | ||
6106 | eval "$ac_cv_use_gif" | |
6107 | if test "$no_cache" != 1; then | |
6108 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
6109 | fi | |
6110 | ||
6111 | if test "$wxUSE_GIF" = yes; then | |
698dcdb6 | 6112 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6113 | else |
698dcdb6 | 6114 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6115 | fi |
698dcdb6 | 6116 | |
10f2d63a | 6117 | |
698dcdb6 VZ |
6118 | echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6 |
6119 | echo "configure:6120: checking for --enable-pcx" >&5 | |
10f2d63a VZ |
6120 | no_cache=0 |
6121 | # Check whether --enable-pcx or --disable-pcx was given. | |
6122 | if test "${enable_pcx+set}" = set; then | |
6123 | enableval="$enable_pcx" | |
698dcdb6 | 6124 | |
10f2d63a VZ |
6125 | if test "$enableval" = yes; then |
6126 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
6127 | else | |
6128 | ac_cv_use_pcx='wxUSE_PCX=no' | |
6129 | fi | |
698dcdb6 | 6130 | |
10f2d63a | 6131 | else |
698dcdb6 | 6132 | |
10f2d63a VZ |
6133 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
6134 | if test "x$LINE" != x ; then | |
6135 | eval "DEFAULT_$LINE" | |
6136 | else | |
6137 | no_cache=1 | |
6138 | fi | |
6139 | ||
6140 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
698dcdb6 VZ |
6141 | |
6142 | fi | |
10f2d63a VZ |
6143 | |
6144 | ||
6145 | eval "$ac_cv_use_pcx" | |
6146 | if test "$no_cache" != 1; then | |
6147 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
6148 | fi | |
6149 | ||
6150 | if test "$wxUSE_PCX" = yes; then | |
698dcdb6 | 6151 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6152 | else |
698dcdb6 | 6153 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6154 | fi |
698dcdb6 | 6155 | |
10f2d63a | 6156 | |
698dcdb6 VZ |
6157 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
6158 | echo "configure:6159: checking for --enable-pnm" >&5 | |
10f2d63a VZ |
6159 | no_cache=0 |
6160 | # Check whether --enable-pnm or --disable-pnm was given. | |
6161 | if test "${enable_pnm+set}" = set; then | |
6162 | enableval="$enable_pnm" | |
698dcdb6 | 6163 | |
10f2d63a VZ |
6164 | if test "$enableval" = yes; then |
6165 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
6166 | else | |
6167 | ac_cv_use_pnm='wxUSE_PNM=no' | |
6168 | fi | |
698dcdb6 | 6169 | |
10f2d63a | 6170 | else |
698dcdb6 | 6171 | |
10f2d63a VZ |
6172 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
6173 | if test "x$LINE" != x ; then | |
6174 | eval "DEFAULT_$LINE" | |
6175 | else | |
6176 | no_cache=1 | |
6177 | fi | |
6178 | ||
6179 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
698dcdb6 VZ |
6180 | |
6181 | fi | |
10f2d63a VZ |
6182 | |
6183 | ||
6184 | eval "$ac_cv_use_pnm" | |
6185 | if test "$no_cache" != 1; then | |
6186 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
6187 | fi | |
6188 | ||
6189 | if test "$wxUSE_PNM" = yes; then | |
698dcdb6 | 6190 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6191 | else |
698dcdb6 | 6192 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6193 | fi |
698dcdb6 | 6194 | |
10f2d63a | 6195 | |
698dcdb6 VZ |
6196 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
6197 | echo "configure:6198: checking for --enable-pnm" >&5 | |
0046ff7c VS |
6198 | no_cache=0 |
6199 | # Check whether --enable-pnm or --disable-pnm was given. | |
6200 | if test "${enable_pnm+set}" = set; then | |
6201 | enableval="$enable_pnm" | |
698dcdb6 | 6202 | |
0046ff7c VS |
6203 | if test "$enableval" = yes; then |
6204 | ac_cv_use_pnm='wxUSE_XPM=yes' | |
6205 | else | |
6206 | ac_cv_use_pnm='wxUSE_XPM=no' | |
6207 | fi | |
698dcdb6 | 6208 | |
0046ff7c | 6209 | else |
698dcdb6 | 6210 | |
0046ff7c VS |
6211 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
6212 | if test "x$LINE" != x ; then | |
6213 | eval "DEFAULT_$LINE" | |
6214 | else | |
6215 | no_cache=1 | |
6216 | fi | |
6217 | ||
6218 | ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
698dcdb6 VZ |
6219 | |
6220 | fi | |
0046ff7c VS |
6221 | |
6222 | ||
6223 | eval "$ac_cv_use_pnm" | |
6224 | if test "$no_cache" != 1; then | |
6225 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
6226 | fi | |
6227 | ||
6228 | if test "$wxUSE_XPM" = yes; then | |
698dcdb6 | 6229 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 6230 | else |
698dcdb6 | 6231 | echo "$ac_t""no" 1>&6 |
0046ff7c | 6232 | fi |
698dcdb6 | 6233 | |
0046ff7c | 6234 | |
b12915c1 VZ |
6235 | fi |
6236 | ||
698dcdb6 | 6237 | |
10f2d63a VZ |
6238 | echo "saving argument cache $wx_arg_cache_file" |
6239 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
698dcdb6 | 6240 | |
10f2d63a | 6241 | |
698dcdb6 VZ |
6242 | |
6243 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
6244 | echo "configure:6245: checking for toolkit" >&5 | |
10f2d63a VZ |
6245 | |
6246 | if test "$wxUSE_GUI" = "yes"; then | |
6247 | ||
b12915c1 | 6248 | if test "$USE_BEOS" = 1; then |
698dcdb6 | 6249 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } |
b12915c1 VZ |
6250 | fi |
6251 | ||
10f2d63a VZ |
6252 | if test "$TOOLKIT_GIVEN" = 1; then |
6253 | for toolkit in `echo $ALL_TOOLKITS`; do | |
6254 | var=wxUSE_$toolkit | |
6255 | eval "value=\$${var}" | |
6256 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
6257 | done | |
6258 | else | |
6259 | for toolkit in `echo $ALL_TOOLKITS`; do | |
6260 | if test "$has_toolkit_in_cache" != 1; then | |
6261 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
6262 | else | |
6263 | var=DEFAULT_wxUSE_$toolkit | |
6264 | fi | |
6265 | eval "wxUSE_$toolkit=\$${var}" | |
6266 | done | |
6267 | fi | |
6268 | ||
b4085ce6 | 6269 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}` |
cf27ef00 | 6270 | |
ec14dd32 VZ |
6271 | case "${host}" in |
6272 | *-pc-os2_emx ) | |
6273 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
6274 | # PATH_IFS is autodetected by OS/2's configure (usually ';') | |
6275 | LEX_STEM="lexyy" | |
6276 | ;; | |
6277 | *) | |
6278 | PATH_IFS=':' | |
6279 | LEX_STEM="lex.yy" | |
6280 | ;; | |
6281 | esac | |
10f2d63a VZ |
6282 | |
6283 | case "$NUM_TOOLKITS" in | |
6284 | 1) | |
6285 | ;; | |
6286 | 0) | |
698dcdb6 | 6287 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } |
10f2d63a VZ |
6288 | ;; |
6289 | *) | |
698dcdb6 | 6290 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } |
10f2d63a VZ |
6291 | esac |
6292 | ||
6293 | for toolkit in `echo $ALL_TOOLKITS`; do | |
6294 | var=wxUSE_$toolkit | |
6295 | eval "value=\$${var}" | |
6296 | if test "x$value" != x; then | |
6297 | cache_var=CACHE_$toolkit | |
6298 | eval "cache=\$${cache_var}" | |
6299 | if test "$cache" = 1; then | |
6300 | echo "$var=$value" >> ${wx_arg_cache_file} | |
6301 | fi | |
6302 | if test "$value" = 1; then | |
698dcdb6 | 6303 | echo "$ac_t""`echo $toolkit | tr [A-Z] [a-z]`" 1>&6 |
10f2d63a VZ |
6304 | fi |
6305 | fi | |
6306 | done | |
6307 | ||
6308 | else | |
cf27ef00 | 6309 | PATH_IFS=':' |
698dcdb6 | 6310 | echo "$ac_t""base only" 1>&6 |
10f2d63a VZ |
6311 | fi |
6312 | ||
698dcdb6 VZ |
6313 | |
6314 | cat > confcache <<\EOF | |
10f2d63a VZ |
6315 | # This file is a shell script that caches the results of configure |
6316 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
6317 | # scripts and configure runs. It is not useful on other systems. |
6318 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 6319 | # |
698dcdb6 VZ |
6320 | # By default, configure uses ./config.cache as the cache file, |
6321 | # creating it if it does not exist already. You can give configure | |
6322 | # the --cache-file=FILE option to use a different cache file; that is | |
6323 | # what configure does when it calls configure scripts in | |
6324 | # subdirectories, so they share the cache. | |
6325 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
6326 | # config.status only pays attention to the cache file if you give it the | |
6327 | # --recheck option to rerun configure. | |
10f2d63a | 6328 | # |
698dcdb6 | 6329 | EOF |
10f2d63a VZ |
6330 | # The following way of writing the cache mishandles newlines in values, |
6331 | # but we know of no workaround that is simple, portable, and efficient. | |
6332 | # So, don't put newlines in cache variables' values. | |
6333 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
6334 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
6335 | (set) 2>&1 | |
6336 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
6337 | *ac_space=\ *) | |
6338 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
6339 | # turns \\\\ into \\, and sed turns \\ into \). | |
6340 | sed -n \ | |
6341 | -e "s/'/'\\\\''/g" \ | |
6342 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
6343 | ;; | |
6344 | *) | |
6345 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
6346 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
6347 | ;; | |
6348 | esac >> confcache | |
6349 | if cmp -s $cache_file confcache; then | |
6350 | : | |
6351 | else | |
10f2d63a | 6352 | if test -w $cache_file; then |
698dcdb6 VZ |
6353 | echo "updating cache $cache_file" |
6354 | cat confcache > $cache_file | |
10f2d63a VZ |
6355 | else |
6356 | echo "not updating unwritable cache $cache_file" | |
6357 | fi | |
6358 | fi | |
6359 | rm -f confcache | |
6360 | ||
698dcdb6 | 6361 | |
e59890c3 | 6362 | if test "$build" != "$host" ; then |
10f2d63a VZ |
6363 | CC=$host_alias-gcc |
6364 | CXX=$host_alias-c++ | |
6365 | AR=$host_alias-ar | |
6366 | RANLIB=$host_alias-ranlib | |
6367 | DLLTOOL=$host_alias-dlltool | |
32832908 | 6368 | RESCOMP=$host_alias-windres |
10f2d63a VZ |
6369 | LD=$host_alias-ld |
6370 | NM=$host_alias-nm | |
6371 | STRIP=$host_alias-strip | |
10f2d63a VZ |
6372 | fi |
6373 | ||
698dcdb6 | 6374 | # Extract the first word of "gcc", so it can be a program name with args. |
1e487827 | 6375 | set dummy gcc; ac_word=$2 |
698dcdb6 VZ |
6376 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
6377 | echo "configure:6378: checking for $ac_word" >&5 | |
6378 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
6379 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
6380 | else |
6381 | if test -n "$CC"; then | |
6382 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 6383 | else |
698dcdb6 VZ |
6384 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
6385 | ac_dummy="$PATH" | |
6386 | for ac_dir in $ac_dummy; do | |
6387 | test -z "$ac_dir" && ac_dir=. | |
6388 | if test -f $ac_dir/$ac_word; then | |
6389 | ac_cv_prog_CC="gcc" | |
6390 | break | |
6391 | fi | |
6392 | done | |
6393 | IFS="$ac_save_ifs" | |
10f2d63a | 6394 | fi |
6232543b | 6395 | fi |
698dcdb6 | 6396 | CC="$ac_cv_prog_CC" |
6232543b | 6397 | if test -n "$CC"; then |
698dcdb6 | 6398 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 6399 | else |
698dcdb6 | 6400 | echo "$ac_t""no" 1>&6 |
1e487827 | 6401 | fi |
6232543b | 6402 | |
1e487827 VS |
6403 | if test -z "$CC"; then |
6404 | # Extract the first word of "cc", so it can be a program name with args. | |
6405 | set dummy cc; ac_word=$2 | |
698dcdb6 VZ |
6406 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
6407 | echo "configure:6408: checking for $ac_word" >&5 | |
6408 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
6409 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
6410 | else |
6411 | if test -n "$CC"; then | |
6412 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
6413 | else | |
698dcdb6 | 6414 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1e487827 | 6415 | ac_prog_rejected=no |
698dcdb6 VZ |
6416 | ac_dummy="$PATH" |
6417 | for ac_dir in $ac_dummy; do | |
6418 | test -z "$ac_dir" && ac_dir=. | |
6419 | if test -f $ac_dir/$ac_word; then | |
6420 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
6421 | ac_prog_rejected=yes | |
6422 | continue | |
6423 | fi | |
6424 | ac_cv_prog_CC="cc" | |
6425 | break | |
6426 | fi | |
6427 | done | |
6428 | IFS="$ac_save_ifs" | |
1e487827 VS |
6429 | if test $ac_prog_rejected = yes; then |
6430 | # We found a bogon in the path, so make sure we never use it. | |
6431 | set dummy $ac_cv_prog_CC | |
6432 | shift | |
698dcdb6 | 6433 | if test $# -gt 0; then |
1e487827 VS |
6434 | # We chose a different compiler from the bogus one. |
6435 | # However, it has the same basename, so the bogon will be chosen | |
6436 | # first if we set CC to just the basename; use the full file name. | |
6437 | shift | |
698dcdb6 | 6438 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
6439 | shift |
6440 | ac_cv_prog_CC="$@" | |
703e0a69 | 6441 | fi |
1e487827 VS |
6442 | fi |
6443 | fi | |
6444 | fi | |
698dcdb6 | 6445 | CC="$ac_cv_prog_CC" |
1e487827 | 6446 | if test -n "$CC"; then |
698dcdb6 | 6447 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 6448 | else |
698dcdb6 | 6449 | echo "$ac_t""no" 1>&6 |
703e0a69 | 6450 | fi |
1e487827 | 6451 | |
698dcdb6 VZ |
6452 | if test -z "$CC"; then |
6453 | case "`uname -s`" in | |
6454 | *win32* | *WIN32*) | |
6455 | # Extract the first word of "cl", so it can be a program name with args. | |
6456 | set dummy cl; ac_word=$2 | |
6457 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6458 | echo "configure:6459: checking for $ac_word" >&5 | |
6459 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | |
6460 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 VS |
6461 | else |
6462 | if test -n "$CC"; then | |
6463 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
703e0a69 | 6464 | else |
698dcdb6 VZ |
6465 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
6466 | ac_dummy="$PATH" | |
6467 | for ac_dir in $ac_dummy; do | |
6468 | test -z "$ac_dir" && ac_dir=. | |
6469 | if test -f $ac_dir/$ac_word; then | |
6470 | ac_cv_prog_CC="cl" | |
6471 | break | |
6472 | fi | |
6473 | done | |
6474 | IFS="$ac_save_ifs" | |
703e0a69 | 6475 | fi |
1e487827 | 6476 | fi |
698dcdb6 | 6477 | CC="$ac_cv_prog_CC" |
1e487827 | 6478 | if test -n "$CC"; then |
698dcdb6 | 6479 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 6480 | else |
698dcdb6 | 6481 | echo "$ac_t""no" 1>&6 |
1e487827 | 6482 | fi |
698dcdb6 VZ |
6483 | ;; |
6484 | esac | |
6485 | fi | |
6486 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1e487827 VS |
6487 | fi |
6488 | ||
698dcdb6 VZ |
6489 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
6490 | echo "configure:6491: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | |
1e487827 | 6491 | |
698dcdb6 VZ |
6492 | ac_ext=c |
6493 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6494 | ac_cpp='$CPP $CPPFLAGS' | |
6495 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6496 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6497 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 6498 | |
698dcdb6 | 6499 | cat > conftest.$ac_ext << EOF |
1e487827 | 6500 | |
698dcdb6 | 6501 | #line 6502 "configure" |
1e487827 VS |
6502 | #include "confdefs.h" |
6503 | ||
698dcdb6 VZ |
6504 | main(){return(0);} |
6505 | EOF | |
6506 | if { (eval echo configure:6507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
6507 | ac_cv_prog_cc_works=yes | |
6508 | # If we can't run a trivial program, we are probably using a cross compiler. | |
6509 | if (./conftest; exit) 2>/dev/null; then | |
6510 | ac_cv_prog_cc_cross=no | |
6511 | else | |
6512 | ac_cv_prog_cc_cross=yes | |
6513 | fi | |
6514 | else | |
6515 | echo "configure: failed program was:" >&5 | |
6516 | cat conftest.$ac_ext >&5 | |
6517 | ac_cv_prog_cc_works=no | |
6518 | fi | |
6519 | rm -fr conftest* | |
6520 | ac_ext=c | |
6521 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6522 | ac_cpp='$CPP $CPPFLAGS' | |
6523 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6524 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6525 | cross_compiling=$ac_cv_prog_cc_cross | |
6526 | ||
6527 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
6528 | if test $ac_cv_prog_cc_works = no; then | |
6529 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
6530 | fi | |
6531 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
6532 | echo "configure:6533: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | |
6533 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | |
6534 | cross_compiling=$ac_cv_prog_cc_cross | |
6535 | ||
6536 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
6537 | echo "configure:6538: checking whether we are using GNU C" >&5 | |
6538 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then | |
6539 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6540 | else | |
6541 | cat > conftest.c <<EOF | |
6542 | #ifdef __GNUC__ | |
6543 | yes; | |
1e487827 | 6544 | #endif |
698dcdb6 VZ |
6545 | EOF |
6546 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:6547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | |
6547 | ac_cv_prog_gcc=yes | |
6548 | else | |
6549 | ac_cv_prog_gcc=no | |
6550 | fi | |
6551 | fi | |
1e487827 | 6552 | |
698dcdb6 | 6553 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
1e487827 | 6554 | |
698dcdb6 VZ |
6555 | if test $ac_cv_prog_gcc = yes; then |
6556 | GCC=yes | |
6557 | else | |
6558 | GCC= | |
6559 | fi | |
1e487827 | 6560 | |
698dcdb6 VZ |
6561 | ac_test_CFLAGS="${CFLAGS+set}" |
6562 | ac_save_CFLAGS="$CFLAGS" | |
6563 | CFLAGS= | |
6564 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
6565 | echo "configure:6566: checking whether ${CC-cc} accepts -g" >&5 | |
6566 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then | |
6567 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6568 | else | |
6569 | echo 'void f(){}' > conftest.c | |
6570 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
6571 | ac_cv_prog_cc_g=yes |
6572 | else | |
698dcdb6 | 6573 | ac_cv_prog_cc_g=no |
10f2d63a | 6574 | fi |
698dcdb6 VZ |
6575 | rm -f conftest* |
6576 | ||
10f2d63a | 6577 | fi |
698dcdb6 VZ |
6578 | |
6579 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
10f2d63a | 6580 | if test "$ac_test_CFLAGS" = set; then |
698dcdb6 | 6581 | CFLAGS="$ac_save_CFLAGS" |
10f2d63a VZ |
6582 | elif test $ac_cv_prog_cc_g = yes; then |
6583 | if test "$GCC" = yes; then | |
6584 | CFLAGS="-g -O2" | |
6585 | else | |
6586 | CFLAGS="-g" | |
6587 | fi | |
6588 | else | |
6589 | if test "$GCC" = yes; then | |
6590 | CFLAGS="-O2" | |
6591 | else | |
6592 | CFLAGS= | |
6593 | fi | |
6594 | fi | |
6595 | ||
6596 | ||
6597 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
6598 | ||
698dcdb6 VZ |
6599 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
6600 | echo "configure:6601: checking how to run the C preprocessor" >&5 | |
10f2d63a VZ |
6601 | # On Suns, sometimes $CPP names a directory. |
6602 | if test -n "$CPP" && test -d "$CPP"; then | |
6603 | CPP= | |
6604 | fi | |
6605 | if test -z "$CPP"; then | |
698dcdb6 VZ |
6606 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
6607 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6608 | else | |
6609 | # This must be in double quotes, not single quotes, because CPP may get | |
6610 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
6611 | CPP="${CC-cc} -E" | |
10f2d63a | 6612 | # On the NeXT, cc -E runs the code through the compiler's parser, |
698dcdb6 VZ |
6613 | # not just through cpp. |
6614 | cat > conftest.$ac_ext <<EOF | |
6615 | #line 6616 "configure" | |
10f2d63a VZ |
6616 | #include "confdefs.h" |
6617 | #include <assert.h> | |
698dcdb6 VZ |
6618 | Syntax Error |
6619 | EOF | |
6620 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6621 | { (eval echo configure:6622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
6622 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
6623 | if test -z "$ac_err"; then | |
10f2d63a VZ |
6624 | : |
6625 | else | |
698dcdb6 VZ |
6626 | echo "$ac_err" >&5 |
6627 | echo "configure: failed program was:" >&5 | |
10f2d63a | 6628 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
6629 | rm -rf conftest* |
6630 | CPP="${CC-cc} -E -traditional-cpp" | |
6631 | cat > conftest.$ac_ext <<EOF | |
6632 | #line 6633 "configure" | |
10f2d63a | 6633 | #include "confdefs.h" |
698dcdb6 VZ |
6634 | #include <assert.h> |
6635 | Syntax Error | |
6636 | EOF | |
6637 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6638 | { (eval echo configure:6639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
6639 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
6640 | if test -z "$ac_err"; then | |
6641 | : | |
10f2d63a | 6642 | else |
698dcdb6 VZ |
6643 | echo "$ac_err" >&5 |
6644 | echo "configure: failed program was:" >&5 | |
10f2d63a | 6645 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
6646 | rm -rf conftest* |
6647 | CPP="${CC-cc} -nologo -E" | |
6648 | cat > conftest.$ac_ext <<EOF | |
6649 | #line 6650 "configure" | |
10f2d63a VZ |
6650 | #include "confdefs.h" |
6651 | #include <assert.h> | |
698dcdb6 VZ |
6652 | Syntax Error |
6653 | EOF | |
6654 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6655 | { (eval echo configure:6656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
6656 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
6657 | if test -z "$ac_err"; then | |
10f2d63a VZ |
6658 | : |
6659 | else | |
698dcdb6 VZ |
6660 | echo "$ac_err" >&5 |
6661 | echo "configure: failed program was:" >&5 | |
10f2d63a | 6662 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
6663 | rm -rf conftest* |
6664 | CPP=/lib/cpp | |
10f2d63a | 6665 | fi |
698dcdb6 | 6666 | rm -f conftest* |
10f2d63a | 6667 | fi |
698dcdb6 | 6668 | rm -f conftest* |
703e0a69 | 6669 | fi |
698dcdb6 VZ |
6670 | rm -f conftest* |
6671 | ac_cv_prog_CPP="$CPP" | |
6672 | fi | |
6673 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 6674 | else |
698dcdb6 | 6675 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 6676 | fi |
698dcdb6 | 6677 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a VZ |
6678 | |
6679 | ||
698dcdb6 VZ |
6680 | if test $ac_cv_prog_gcc = yes; then |
6681 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
6682 | echo "configure:6683: checking whether ${CC-cc} needs -traditional" >&5 | |
6683 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then | |
6684 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
6685 | else |
6686 | ac_pattern="Autoconf.*'x'" | |
698dcdb6 VZ |
6687 | cat > conftest.$ac_ext <<EOF |
6688 | #line 6689 "configure" | |
10f2d63a VZ |
6689 | #include "confdefs.h" |
6690 | #include <sgtty.h> | |
6691 | Autoconf TIOCGETP | |
698dcdb6 | 6692 | EOF |
10f2d63a VZ |
6693 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6694 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 6695 | rm -rf conftest* |
10f2d63a VZ |
6696 | ac_cv_prog_gcc_traditional=yes |
6697 | else | |
698dcdb6 | 6698 | rm -rf conftest* |
10f2d63a VZ |
6699 | ac_cv_prog_gcc_traditional=no |
6700 | fi | |
6701 | rm -f conftest* | |
6702 | ||
698dcdb6 | 6703 | |
10f2d63a | 6704 | if test $ac_cv_prog_gcc_traditional = no; then |
698dcdb6 VZ |
6705 | cat > conftest.$ac_ext <<EOF |
6706 | #line 6707 "configure" | |
10f2d63a VZ |
6707 | #include "confdefs.h" |
6708 | #include <termio.h> | |
6709 | Autoconf TCGETA | |
698dcdb6 | 6710 | EOF |
10f2d63a VZ |
6711 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6712 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
698dcdb6 | 6713 | rm -rf conftest* |
10f2d63a VZ |
6714 | ac_cv_prog_gcc_traditional=yes |
6715 | fi | |
6716 | rm -f conftest* | |
6717 | ||
6718 | fi | |
6719 | fi | |
698dcdb6 VZ |
6720 | |
6721 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
6722 | if test $ac_cv_prog_gcc_traditional = yes; then |
6723 | CC="$CC -traditional" | |
6724 | fi | |
6725 | fi | |
6726 | ||
703e0a69 | 6727 | |
698dcdb6 VZ |
6728 | |
6729 | ac_ext=C | |
6730 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 6731 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
6732 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
6733 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6734 | cross_compiling=$ac_cv_prog_cxx_cross | |
6735 | ||
6736 | ||
6737 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
6738 | do | |
6739 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6740 | set dummy $ac_prog; ac_word=$2 | |
6741 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6742 | echo "configure:6743: checking for $ac_word" >&5 | |
6743 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then | |
6744 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
6745 | else |
6746 | if test -n "$CXX"; then | |
6747 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
6748 | else | |
698dcdb6 VZ |
6749 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
6750 | ac_dummy="$PATH" | |
6751 | for ac_dir in $ac_dummy; do | |
6752 | test -z "$ac_dir" && ac_dir=. | |
6753 | if test -f $ac_dir/$ac_word; then | |
6754 | ac_cv_prog_CXX="$ac_prog" | |
6755 | break | |
6756 | fi | |
6757 | done | |
6758 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
6759 | fi |
6760 | fi | |
698dcdb6 | 6761 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 6762 | if test -n "$CXX"; then |
698dcdb6 | 6763 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 6764 | else |
698dcdb6 | 6765 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
6766 | fi |
6767 | ||
698dcdb6 | 6768 | test -n "$CXX" && break |
10f2d63a | 6769 | done |
698dcdb6 | 6770 | test -n "$CXX" || CXX="gcc" |
10f2d63a VZ |
6771 | |
6772 | ||
698dcdb6 VZ |
6773 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
6774 | echo "configure:6775: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 | |
10f2d63a | 6775 | |
698dcdb6 VZ |
6776 | ac_ext=C |
6777 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6778 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6779 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6780 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6781 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 6782 | |
698dcdb6 VZ |
6783 | cat > conftest.$ac_ext << EOF |
6784 | ||
6785 | #line 6786 "configure" | |
10f2d63a VZ |
6786 | #include "confdefs.h" |
6787 | ||
698dcdb6 VZ |
6788 | int main(){return(0);} |
6789 | EOF | |
6790 | if { (eval echo configure:6791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
6791 | ac_cv_prog_cxx_works=yes | |
6792 | # If we can't run a trivial program, we are probably using a cross compiler. | |
6793 | if (./conftest; exit) 2>/dev/null; then | |
6794 | ac_cv_prog_cxx_cross=no | |
6795 | else | |
6796 | ac_cv_prog_cxx_cross=yes | |
6797 | fi | |
6798 | else | |
6799 | echo "configure: failed program was:" >&5 | |
6800 | cat conftest.$ac_ext >&5 | |
6801 | ac_cv_prog_cxx_works=no | |
6802 | fi | |
6803 | rm -fr conftest* | |
6804 | ac_ext=C | |
6805 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6806 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6807 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6808 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6809 | cross_compiling=$ac_cv_prog_cxx_cross | |
6810 | ||
6811 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
6812 | if test $ac_cv_prog_cxx_works = no; then | |
6813 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
6814 | fi | |
6815 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
6816 | echo "configure:6817: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 | |
6817 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 | |
6818 | cross_compiling=$ac_cv_prog_cxx_cross | |
6819 | ||
6820 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
6821 | echo "configure:6822: checking whether we are using GNU C++" >&5 | |
6822 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then | |
6823 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6824 | else | |
6825 | cat > conftest.C <<EOF | |
6826 | #ifdef __GNUC__ | |
6827 | yes; | |
10f2d63a | 6828 | #endif |
698dcdb6 VZ |
6829 | EOF |
6830 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | |
6831 | ac_cv_prog_gxx=yes | |
6832 | else | |
6833 | ac_cv_prog_gxx=no | |
6834 | fi | |
6835 | fi | |
10f2d63a | 6836 | |
698dcdb6 | 6837 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 6838 | |
698dcdb6 VZ |
6839 | if test $ac_cv_prog_gxx = yes; then |
6840 | GXX=yes | |
6841 | else | |
6842 | GXX= | |
6843 | fi | |
10f2d63a | 6844 | |
698dcdb6 VZ |
6845 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
6846 | ac_save_CXXFLAGS="$CXXFLAGS" | |
6847 | CXXFLAGS= | |
6848 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
6849 | echo "configure:6850: checking whether ${CXX-g++} accepts -g" >&5 | |
6850 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then | |
6851 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6852 | else | |
6853 | echo 'void f(){}' > conftest.cc | |
6854 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
6855 | ac_cv_prog_cxx_g=yes |
6856 | else | |
698dcdb6 | 6857 | ac_cv_prog_cxx_g=no |
10f2d63a | 6858 | fi |
698dcdb6 VZ |
6859 | rm -f conftest* |
6860 | ||
10f2d63a | 6861 | fi |
698dcdb6 VZ |
6862 | |
6863 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
10f2d63a | 6864 | if test "$ac_test_CXXFLAGS" = set; then |
698dcdb6 | 6865 | CXXFLAGS="$ac_save_CXXFLAGS" |
10f2d63a VZ |
6866 | elif test $ac_cv_prog_cxx_g = yes; then |
6867 | if test "$GXX" = yes; then | |
6868 | CXXFLAGS="-g -O2" | |
6869 | else | |
6870 | CXXFLAGS="-g" | |
6871 | fi | |
6872 | else | |
6873 | if test "$GXX" = yes; then | |
6874 | CXXFLAGS="-O2" | |
6875 | else | |
6876 | CXXFLAGS= | |
6877 | fi | |
6878 | fi | |
6879 | ||
6880 | ||
698dcdb6 VZ |
6881 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
6882 | echo "configure:6883: checking how to run the C++ preprocessor" >&5 | |
1e487827 | 6883 | if test -z "$CXXCPP"; then |
698dcdb6 VZ |
6884 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then |
6885 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 6886 | else |
698dcdb6 VZ |
6887 | ac_ext=C |
6888 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6889 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6890 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6891 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6892 | cross_compiling=$ac_cv_prog_cxx_cross | |
6893 | CXXCPP="${CXX-g++} -E" | |
6894 | cat > conftest.$ac_ext <<EOF | |
6895 | #line 6896 "configure" | |
1e487827 | 6896 | #include "confdefs.h" |
698dcdb6 VZ |
6897 | #include <stdlib.h> |
6898 | EOF | |
6899 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
6900 | { (eval echo configure:6901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
6901 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
6902 | if test -z "$ac_err"; then | |
1e487827 VS |
6903 | : |
6904 | else | |
698dcdb6 VZ |
6905 | echo "$ac_err" >&5 |
6906 | echo "configure: failed program was:" >&5 | |
1e487827 | 6907 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
6908 | rm -rf conftest* |
6909 | CXXCPP=/lib/cpp | |
1e487827 | 6910 | fi |
698dcdb6 VZ |
6911 | rm -f conftest* |
6912 | ac_cv_prog_CXXCPP="$CXXCPP" | |
6913 | ac_ext=C | |
6914 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6915 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6916 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6917 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6918 | cross_compiling=$ac_cv_prog_cxx_cross | |
1e487827 | 6919 | fi |
1e487827 | 6920 | fi |
698dcdb6 VZ |
6921 | CXXCPP="$ac_cv_prog_CXXCPP" |
6922 | echo "$ac_t""$CXXCPP" 1>&6 | |
1e487827 | 6923 | |
10f2d63a VZ |
6924 | |
6925 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` | |
6926 | ||
6927 | ac_ext=c | |
698dcdb6 | 6928 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 6929 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
6930 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
6931 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6932 | cross_compiling=$ac_cv_prog_cc_cross | |
6933 | ||
6934 | ||
6935 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6936 | set dummy ranlib; ac_word=$2 | |
6937 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
6938 | echo "configure:6939: checking for $ac_word" >&5 | |
6939 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | |
6940 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
6941 | else |
6942 | if test -n "$RANLIB"; then | |
6943 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6944 | else | |
698dcdb6 VZ |
6945 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
6946 | ac_dummy="$PATH" | |
6947 | for ac_dir in $ac_dummy; do | |
6948 | test -z "$ac_dir" && ac_dir=. | |
6949 | if test -f $ac_dir/$ac_word; then | |
6950 | ac_cv_prog_RANLIB="ranlib" | |
6951 | break | |
6952 | fi | |
6953 | done | |
6954 | IFS="$ac_save_ifs" | |
6955 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
6956 | fi |
6957 | fi | |
698dcdb6 | 6958 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 6959 | if test -n "$RANLIB"; then |
698dcdb6 | 6960 | echo "$ac_t""$RANLIB" 1>&6 |
10f2d63a | 6961 | else |
698dcdb6 | 6962 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
6963 | fi |
6964 | ||
6965 | ||
6966 | # Extract the first word of "ar", so it can be a program name with args. | |
6967 | set dummy ar; ac_word=$2 | |
698dcdb6 VZ |
6968 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
6969 | echo "configure:6970: checking for $ac_word" >&5 | |
6970 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then | |
6971 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
6972 | else |
6973 | if test -n "$AR"; then | |
6974 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6975 | else | |
698dcdb6 VZ |
6976 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
6977 | ac_dummy="$PATH" | |
6978 | for ac_dir in $ac_dummy; do | |
6979 | test -z "$ac_dir" && ac_dir=. | |
6980 | if test -f $ac_dir/$ac_word; then | |
6981 | ac_cv_prog_AR="ar" | |
6982 | break | |
6983 | fi | |
6984 | done | |
6985 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
6986 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
6987 | fi | |
6988 | fi | |
698dcdb6 | 6989 | AR="$ac_cv_prog_AR" |
10f2d63a | 6990 | if test -n "$AR"; then |
698dcdb6 | 6991 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 6992 | else |
698dcdb6 | 6993 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
6994 | fi |
6995 | ||
698dcdb6 | 6996 | |
10f2d63a VZ |
6997 | # Find a good install program. We prefer a C program (faster), |
6998 | # so one script is as good as another. But avoid the broken or | |
6999 | # incompatible versions: | |
7000 | # SysV /etc/install, /usr/sbin/install | |
7001 | # SunOS /usr/etc/install | |
7002 | # IRIX /sbin/install | |
7003 | # AIX /bin/install | |
7004 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
7005 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
7006 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
7007 | # ./install, which can be erroneously created by make from ./install.sh. | |
698dcdb6 VZ |
7008 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
7009 | echo "configure:7010: checking for a BSD compatible install" >&5 | |
10f2d63a | 7010 | if test -z "$INSTALL"; then |
698dcdb6 VZ |
7011 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
7012 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 7013 | else |
698dcdb6 | 7014 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
10f2d63a VZ |
7015 | for ac_dir in $PATH; do |
7016 | # Account for people who put trailing slashes in PATH elements. | |
698dcdb6 VZ |
7017 | case "$ac_dir/" in |
7018 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
10f2d63a VZ |
7019 | *) |
7020 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
7021 | # Don't use installbsd from OSF since it installs stuff as root | |
7022 | # by default. | |
7023 | for ac_prog in ginstall scoinst install; do | |
698dcdb6 | 7024 | if test -f $ac_dir/$ac_prog; then |
10f2d63a | 7025 | if test $ac_prog = install && |
698dcdb6 | 7026 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
10f2d63a VZ |
7027 | # AIX install. It has an incompatible calling convention. |
7028 | : | |
7029 | else | |
7030 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
7031 | break 2 | |
7032 | fi | |
7033 | fi | |
7034 | done | |
7035 | ;; | |
7036 | esac | |
7037 | done | |
698dcdb6 | 7038 | IFS="$ac_save_IFS" |
10f2d63a VZ |
7039 | |
7040 | fi | |
7041 | if test "${ac_cv_path_install+set}" = set; then | |
698dcdb6 | 7042 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
7043 | else |
7044 | # As a last resort, use the slow shell script. We don't cache a | |
7045 | # path for INSTALL within a source directory, because that will | |
7046 | # break other packages using the cache if that directory is | |
7047 | # removed, or if the path is relative. | |
698dcdb6 | 7048 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
7049 | fi |
7050 | fi | |
698dcdb6 | 7051 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
7052 | |
7053 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
7054 | # It thinks the first close brace ends the variable substitution. | |
7055 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
7056 | ||
698dcdb6 | 7057 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
10f2d63a VZ |
7058 | |
7059 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
7060 | ||
698dcdb6 | 7061 | |
10f2d63a VZ |
7062 | # Extract the first word of "strip", so it can be a program name with args. |
7063 | set dummy strip; ac_word=$2 | |
698dcdb6 VZ |
7064 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
7065 | echo "configure:7066: checking for $ac_word" >&5 | |
7066 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then | |
7067 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
7068 | else |
7069 | if test -n "$STRIP"; then | |
7070 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
7071 | else | |
698dcdb6 VZ |
7072 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7073 | ac_dummy="$PATH" | |
7074 | for ac_dir in $ac_dummy; do | |
7075 | test -z "$ac_dir" && ac_dir=. | |
7076 | if test -f $ac_dir/$ac_word; then | |
7077 | ac_cv_prog_STRIP="strip" | |
7078 | break | |
7079 | fi | |
7080 | done | |
7081 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
7082 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
7083 | fi | |
7084 | fi | |
698dcdb6 | 7085 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 7086 | if test -n "$STRIP"; then |
698dcdb6 | 7087 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 7088 | else |
698dcdb6 | 7089 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
7090 | fi |
7091 | ||
698dcdb6 VZ |
7092 | |
7093 | echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6 | |
7094 | echo "configure:7095: checking make for VPATH support" >&5 | |
10f2d63a VZ |
7095 | cat - << EOF > confMake |
7096 | check : file | |
7097 | cp \$? \$@ | |
7098 | cp \$? final_file | |
7099 | EOF | |
7100 | ||
7101 | if test ! -d sub ; then | |
7102 | mkdir sub | |
7103 | fi | |
7104 | echo dummy > sub/file | |
f6bcfd97 | 7105 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
7106 | RESULT=$? |
7107 | rm -f sub/file check final_file confMake | |
7108 | rmdir sub | |
7109 | if test "$RESULT" = 0; then | |
698dcdb6 | 7110 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7111 | else |
698dcdb6 VZ |
7112 | echo "$ac_t""no" 1>&6 |
7113 | { echo "configure: error: | |
1e487827 VS |
7114 | You need a make-utility that is able to use the variable |
7115 | VPATH correctly. | |
7116 | If your version of make does not support VPATH correctly, | |
7117 | please install GNU-make (possibly as gmake), and start | |
7118 | configure with the following command: | |
7119 | export MAKE=gmake; ./configure for sh-type shells | |
7120 | setenv MAKE gmake; ./configure for csh-type shells | |
7121 | Also please do remember to use gmake in this case every time | |
7122 | you are trying to compile. | |
698dcdb6 | 7123 | " 1>&2; exit 1; } |
10f2d63a VZ |
7124 | fi |
7125 | ||
7126 | for ac_prog in 'bison -y' byacc | |
7127 | do | |
698dcdb6 | 7128 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 7129 | set dummy $ac_prog; ac_word=$2 |
698dcdb6 VZ |
7130 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
7131 | echo "configure:7132: checking for $ac_word" >&5 | |
7132 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then | |
7133 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
7134 | else |
7135 | if test -n "$YACC"; then | |
7136 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
7137 | else | |
698dcdb6 VZ |
7138 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7139 | ac_dummy="$PATH" | |
7140 | for ac_dir in $ac_dummy; do | |
7141 | test -z "$ac_dir" && ac_dir=. | |
7142 | if test -f $ac_dir/$ac_word; then | |
7143 | ac_cv_prog_YACC="$ac_prog" | |
7144 | break | |
7145 | fi | |
7146 | done | |
7147 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
7148 | fi |
7149 | fi | |
698dcdb6 | 7150 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 7151 | if test -n "$YACC"; then |
698dcdb6 | 7152 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 7153 | else |
698dcdb6 | 7154 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
7155 | fi |
7156 | ||
698dcdb6 | 7157 | test -n "$YACC" && break |
10f2d63a VZ |
7158 | done |
7159 | test -n "$YACC" || YACC="yacc" | |
7160 | ||
698dcdb6 VZ |
7161 | |
7162 | # Extract the first word of "flex", so it can be a program name with args. | |
7163 | set dummy flex; ac_word=$2 | |
7164 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
7165 | echo "configure:7166: checking for $ac_word" >&5 | |
7166 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then | |
7167 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
7168 | else |
7169 | if test -n "$LEX"; then | |
7170 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
7171 | else | |
698dcdb6 VZ |
7172 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7173 | ac_dummy="$PATH" | |
7174 | for ac_dir in $ac_dummy; do | |
7175 | test -z "$ac_dir" && ac_dir=. | |
7176 | if test -f $ac_dir/$ac_word; then | |
7177 | ac_cv_prog_LEX="flex" | |
7178 | break | |
7179 | fi | |
7180 | done | |
7181 | IFS="$ac_save_ifs" | |
7182 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
7183 | fi |
7184 | fi | |
698dcdb6 | 7185 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 7186 | if test -n "$LEX"; then |
698dcdb6 | 7187 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 7188 | else |
698dcdb6 | 7189 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
7190 | fi |
7191 | ||
7192 | if test -z "$LEXLIB" | |
7193 | then | |
698dcdb6 VZ |
7194 | case "$LEX" in |
7195 | flex*) ac_lib=fl ;; | |
7196 | *) ac_lib=l ;; | |
7197 | esac | |
7198 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
7199 | echo "configure:7200: checking for yywrap in -l$ac_lib" >&5 | |
7200 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` | |
7201 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7202 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7203 | else | |
7204 | ac_save_LIBS="$LIBS" | |
7205 | LIBS="-l$ac_lib $LIBS" | |
7206 | cat > conftest.$ac_ext <<EOF | |
7207 | #line 7208 "configure" | |
10f2d63a VZ |
7208 | #include "confdefs.h" |
7209 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7210 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
7211 | builtin and then its argument prototype would still apply. */ |
7212 | char yywrap(); | |
10f2d63a | 7213 | |
698dcdb6 VZ |
7214 | int main() { |
7215 | yywrap() | |
7216 | ; return 0; } | |
7217 | EOF | |
7218 | if { (eval echo configure:7219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7219 | rm -rf conftest* | |
7220 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 7221 | else |
698dcdb6 VZ |
7222 | echo "configure: failed program was:" >&5 |
7223 | cat conftest.$ac_ext >&5 | |
7224 | rm -rf conftest* | |
7225 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 7226 | fi |
698dcdb6 VZ |
7227 | rm -f conftest* |
7228 | LIBS="$ac_save_LIBS" | |
7229 | ||
10f2d63a | 7230 | fi |
698dcdb6 VZ |
7231 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
7232 | echo "$ac_t""yes" 1>&6 | |
7233 | LEXLIB="-l$ac_lib" | |
7234 | else | |
7235 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
7236 | fi |
7237 | ||
7238 | fi | |
7239 | ||
7240 | ||
698dcdb6 VZ |
7241 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
7242 | echo "configure:7243: checking whether ln -s works" >&5 | |
7243 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then | |
7244 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 7245 | else |
698dcdb6 VZ |
7246 | rm -f conftestdata |
7247 | if ln -s X conftestdata 2>/dev/null | |
7248 | then | |
7249 | rm -f conftestdata | |
7250 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 7251 | else |
698dcdb6 | 7252 | ac_cv_prog_LN_S=ln |
10f2d63a VZ |
7253 | fi |
7254 | fi | |
698dcdb6 VZ |
7255 | LN_S="$ac_cv_prog_LN_S" |
7256 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
7257 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 7258 | else |
698dcdb6 | 7259 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
7260 | fi |
7261 | ||
7262 | ||
7263 | ||
7264 | SEARCH_INCLUDE="\ | |
7265 | /usr/local/include \ | |
7266 | \ | |
7267 | /usr/Motif-1.2/include \ | |
7268 | /usr/Motif-2.1/include \ | |
7269 | \ | |
7270 | /usr/include/Motif1.2 \ | |
7271 | /opt/xpm/include/X11 \ | |
7272 | /opt/GBxpm/include/ \ | |
7273 | /opt/GBxpm/X11/include/ \ | |
7274 | \ | |
7275 | /usr/Motif1.2/include \ | |
7276 | /usr/dt/include \ | |
afc31813 VZ |
7277 | /usr/openwin/include \ |
7278 | \ | |
10f2d63a VZ |
7279 | /usr/include/Xm \ |
7280 | \ | |
7281 | /usr/X11R6/include \ | |
afc31813 | 7282 | /usr/X11R6.4/include \ |
10f2d63a VZ |
7283 | /usr/X11R5/include \ |
7284 | /usr/X11R4/include \ | |
7285 | \ | |
10f2d63a VZ |
7286 | /usr/include/X11R6 \ |
7287 | /usr/include/X11R5 \ | |
7288 | /usr/include/X11R4 \ | |
7289 | \ | |
7290 | /usr/local/X11R6/include \ | |
7291 | /usr/local/X11R5/include \ | |
7292 | /usr/local/X11R4/include \ | |
7293 | \ | |
7294 | /usr/local/include/X11R6 \ | |
7295 | /usr/local/include/X11R5 \ | |
7296 | /usr/local/include/X11R4 \ | |
7297 | \ | |
7298 | /usr/X11/include \ | |
7299 | /usr/include/X11 \ | |
7300 | /usr/local/X11/include \ | |
7301 | /usr/local/include/X11 \ | |
7302 | \ | |
7303 | /usr/X386/include \ | |
7304 | /usr/x386/include \ | |
7305 | /usr/XFree86/include/X11 \ | |
7306 | \ | |
cf27ef00 | 7307 | X:/XFree86/include \ |
ec14dd32 VZ |
7308 | X:/XFree86/include/X11 \ |
7309 | \ | |
10f2d63a VZ |
7310 | /usr/include/gtk \ |
7311 | /usr/local/include/gtk \ | |
7312 | /usr/include/glib \ | |
7313 | /usr/local/include/glib \ | |
7314 | \ | |
7315 | /usr/include/qt \ | |
7316 | /usr/local/include/qt \ | |
7317 | \ | |
7318 | /usr/include/windows \ | |
7319 | /usr/include/wine \ | |
7320 | /usr/local/include/wine \ | |
7321 | \ | |
7322 | /usr/unsupported/include \ | |
7323 | /usr/athena/include \ | |
7324 | /usr/local/x11r5/include \ | |
7325 | /usr/lpp/Xamples/include \ | |
7326 | \ | |
10f2d63a | 7327 | /usr/openwin/share/include \ |
928b5c08 VZ |
7328 | \ |
7329 | /usr/include" | |
10f2d63a VZ |
7330 | |
7331 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
7332 | ||
698dcdb6 VZ |
7333 | |
7334 | cat > confcache <<\EOF | |
10f2d63a VZ |
7335 | # This file is a shell script that caches the results of configure |
7336 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
7337 | # scripts and configure runs. It is not useful on other systems. |
7338 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 7339 | # |
698dcdb6 VZ |
7340 | # By default, configure uses ./config.cache as the cache file, |
7341 | # creating it if it does not exist already. You can give configure | |
7342 | # the --cache-file=FILE option to use a different cache file; that is | |
7343 | # what configure does when it calls configure scripts in | |
7344 | # subdirectories, so they share the cache. | |
7345 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
7346 | # config.status only pays attention to the cache file if you give it the | |
7347 | # --recheck option to rerun configure. | |
10f2d63a | 7348 | # |
698dcdb6 | 7349 | EOF |
10f2d63a VZ |
7350 | # The following way of writing the cache mishandles newlines in values, |
7351 | # but we know of no workaround that is simple, portable, and efficient. | |
7352 | # So, don't put newlines in cache variables' values. | |
7353 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
7354 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
7355 | (set) 2>&1 | |
7356 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
7357 | *ac_space=\ *) | |
7358 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
7359 | # turns \\\\ into \\, and sed turns \\ into \). | |
7360 | sed -n \ | |
7361 | -e "s/'/'\\\\''/g" \ | |
7362 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
7363 | ;; | |
7364 | *) | |
7365 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7366 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
7367 | ;; | |
7368 | esac >> confcache | |
7369 | if cmp -s $cache_file confcache; then | |
7370 | : | |
7371 | else | |
10f2d63a | 7372 | if test -w $cache_file; then |
698dcdb6 VZ |
7373 | echo "updating cache $cache_file" |
7374 | cat confcache > $cache_file | |
10f2d63a VZ |
7375 | else |
7376 | echo "not updating unwritable cache $cache_file" | |
7377 | fi | |
7378 | fi | |
7379 | rm -f confcache | |
7380 | ||
698dcdb6 VZ |
7381 | |
7382 | ||
dad6c0ea VZ |
7383 | AFMINSTALL= |
7384 | ||
10f2d63a VZ |
7385 | if test "$wxUSE_GUI" = "yes"; then |
7386 | ||
dad6c0ea VZ |
7387 | USE_GUI=1 |
7388 | ||
10f2d63a VZ |
7389 | TOOLKIT= |
7390 | TOOLKIT_INCLUDE= | |
7391 | ||
10f2d63a VZ |
7392 | GUI_TK_LIBRARY= |
7393 | GUI_TK_LINK= | |
7394 | ||
7395 | WXGTK12= | |
f6bcfd97 | 7396 | WXGTK127= |
6f72b082 | 7397 | WXGTK20= |
10f2d63a VZ |
7398 | |
7399 | WXWINE= | |
7400 | ||
10f2d63a VZ |
7401 | if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then |
7402 | if test "$cross_compiling" = "yes" ; then | |
698dcdb6 | 7403 | echo "configure: warning: skipping windows.h check for cross-compilation" 1>&2 |
10f2d63a | 7404 | else |
698dcdb6 VZ |
7405 | echo $ac_n "checking for Windows headers""... $ac_c" 1>&6 |
7406 | echo "configure:7407: checking for Windows headers" >&5 | |
7407 | ||
10f2d63a VZ |
7408 | ac_find_includes= |
7409 | for ac_dir in $SEARCH_INCLUDE; | |
7410 | do | |
7411 | if test -f "$ac_dir/windows.h"; then | |
7412 | ac_find_includes=$ac_dir | |
7413 | break | |
7414 | fi | |
7415 | done | |
7416 | ||
7417 | if test "$ac_find_includes" != "" ; then | |
698dcdb6 | 7418 | echo "$ac_t""found $ac_find_includes" 1>&6 |
10f2d63a VZ |
7419 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" |
7420 | else | |
698dcdb6 VZ |
7421 | echo "$ac_t""no" 1>&6 |
7422 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
10f2d63a VZ |
7423 | fi |
7424 | fi | |
7425 | ||
7426 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw" | |
7427 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32" | |
7428 | ||
f6bcfd97 BP |
7429 | if test "$wxUSE_ODBC" = "yes" ; then |
7430 | LIBS="$LIBS -lodbc32 -lole32 -loleaut32" | |
7431 | fi | |
7432 | ||
10f2d63a VZ |
7433 | if test "$wxUSE_MINGW" = 1; then |
7434 | LDFLAGS="$LDFLAGS -mwindows" | |
7435 | fi | |
7436 | ||
7437 | TOOLKIT=MSW | |
10f2d63a | 7438 | GUIDIST=MSW_DIST |
32832908 VZ |
7439 | |
7440 | RCINCSWITCH="--include-dir" | |
7441 | RCDEFSWITCH="--define" | |
7442 | RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\"" | |
7443 | RCINPUTSWITCH="-i" | |
7444 | RCOUTPUTSWITCH="-o" | |
7445 | RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__" | |
7446 | ||
7447 | RESPROGRAM="\$(RES_PROGRAM)" | |
7448 | ||
10f2d63a VZ |
7449 | fi |
7450 | ||
7451 | if test "$wxUSE_GTK" = 1; then | |
698dcdb6 | 7452 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
6f72b082 OK |
7453 | if test "${with_gtk_prefix+set}" = set; then |
7454 | withval="$with_gtk_prefix" | |
7455 | gtk_config_prefix="$withval" | |
7456 | else | |
7457 | gtk_config_prefix="" | |
698dcdb6 | 7458 | fi |
6f72b082 OK |
7459 | |
7460 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
7461 | if test "${with_gtk_exec_prefix+set}" = set; then | |
7462 | withval="$with_gtk_exec_prefix" | |
7463 | gtk_config_exec_prefix="$withval" | |
7464 | else | |
7465 | gtk_config_exec_prefix="" | |
698dcdb6 VZ |
7466 | fi |
7467 | ||
6f72b082 OK |
7468 | # Check whether --enable-gtktest or --disable-gtktest was given. |
7469 | if test "${enable_gtktest+set}" = set; then | |
7470 | enableval="$enable_gtktest" | |
698dcdb6 | 7471 | : |
6f72b082 OK |
7472 | else |
7473 | enable_gtktest=yes | |
698dcdb6 VZ |
7474 | fi |
7475 | ||
6f72b082 OK |
7476 | |
7477 | for module in . gthread | |
7478 | do | |
7479 | case "$module" in | |
698dcdb6 | 7480 | gthread) |
6f72b082 OK |
7481 | gtk_config_args="$gtk_config_args gthread" |
7482 | ;; | |
7483 | esac | |
7484 | done | |
7485 | ||
7486 | if test x$gtk_config_exec_prefix != x ; then | |
7487 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
7488 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
7489 | GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0 | |
7490 | fi | |
7491 | fi | |
7492 | if test x$gtk_config_prefix != x ; then | |
7493 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
7494 | if test x${GTK_CONFIG_2_0+set} != xset ; then | |
7495 | GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0 | |
7496 | fi | |
7497 | fi | |
7498 | ||
7499 | # Extract the first word of "gtk-config-2.0", so it can be a program name with args. | |
7500 | set dummy gtk-config-2.0; ac_word=$2 | |
698dcdb6 VZ |
7501 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
7502 | echo "configure:7503: checking for $ac_word" >&5 | |
7503 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then | |
7504 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6f72b082 | 7505 | else |
698dcdb6 VZ |
7506 | case "$GTK_CONFIG_2_0" in |
7507 | /*) | |
6f72b082 OK |
7508 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path. |
7509 | ;; | |
698dcdb6 VZ |
7510 | ?:/*) |
7511 | ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path. | |
7512 | ;; | |
6f72b082 | 7513 | *) |
698dcdb6 VZ |
7514 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7515 | ac_dummy="$PATH" | |
7516 | for ac_dir in $ac_dummy; do | |
7517 | test -z "$ac_dir" && ac_dir=. | |
7518 | if test -f $ac_dir/$ac_word; then | |
7519 | ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word" | |
7520 | break | |
7521 | fi | |
7522 | done | |
7523 | IFS="$ac_save_ifs" | |
6f72b082 OK |
7524 | test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no" |
7525 | ;; | |
7526 | esac | |
7527 | fi | |
698dcdb6 | 7528 | GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0" |
6f72b082 | 7529 | if test -n "$GTK_CONFIG_2_0"; then |
698dcdb6 | 7530 | echo "$ac_t""$GTK_CONFIG_2_0" 1>&6 |
6f72b082 | 7531 | else |
698dcdb6 | 7532 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
7533 | fi |
7534 | ||
7535 | min_gtk_version=1.3.1 | |
698dcdb6 VZ |
7536 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
7537 | echo "configure:7538: checking for GTK - version >= $min_gtk_version" >&5 | |
6f72b082 OK |
7538 | no_gtk="" |
7539 | if test "$GTK_CONFIG_2_0" = "no" ; then | |
7540 | no_gtk=yes | |
7541 | else | |
7542 | GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags` | |
7543 | GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs` | |
7544 | gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
7545 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
7546 | gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
7547 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
7548 | gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \ | |
7549 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
7550 | if test "x$enable_gtktest" = "xyes" ; then | |
7551 | ac_save_CFLAGS="$CFLAGS" | |
7552 | ac_save_LIBS="$LIBS" | |
7553 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
7554 | LIBS="$GTK_LIBS $LIBS" | |
7555 | rm -f conf.gtktest | |
7556 | if test "$cross_compiling" = yes; then | |
7557 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
7558 | else | |
698dcdb6 VZ |
7559 | cat > conftest.$ac_ext <<EOF |
7560 | #line 7561 "configure" | |
6f72b082 OK |
7561 | #include "confdefs.h" |
7562 | ||
7563 | #include <gtk/gtk.h> | |
7564 | #include <stdio.h> | |
7565 | #include <stdlib.h> | |
7566 | ||
698dcdb6 | 7567 | int |
6f72b082 OK |
7568 | main () |
7569 | { | |
7570 | int major, minor, micro; | |
7571 | char *tmp_version; | |
7572 | ||
7573 | system ("touch conf.gtktest"); | |
7574 | ||
7575 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
7576 | tmp_version = g_strdup("$min_gtk_version"); | |
7577 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
7578 | printf("%s, bad version string\n", "$min_gtk_version"); | |
7579 | exit(1); | |
7580 | } | |
7581 | ||
7582 | if ((gtk_major_version != $gtk_config_major_version) || | |
7583 | (gtk_minor_version != $gtk_config_minor_version) || | |
7584 | (gtk_micro_version != $gtk_config_micro_version)) | |
7585 | { | |
698dcdb6 | 7586 | printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
6f72b082 OK |
7587 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
7588 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
7589 | printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n"); | |
7590 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
7591 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
7592 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
7593 | printf("*** required on your system.\n"); | |
7594 | printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n"); | |
7595 | printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n"); | |
7596 | printf("*** before re-running configure\n"); | |
698dcdb6 | 7597 | } |
6f72b082 OK |
7598 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
7599 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
7600 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
7601 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
7602 | { | |
7603 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
7604 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
7605 | printf("*** library (version %d.%d.%d)\n", | |
7606 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
7607 | } | |
7608 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
7609 | else | |
7610 | { | |
7611 | if ((gtk_major_version > major) || | |
7612 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
7613 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
7614 | { | |
7615 | return 0; | |
7616 | } | |
7617 | else | |
7618 | { | |
7619 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
7620 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
7621 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
7622 | major, minor, micro); | |
7623 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
7624 | printf("***\n"); | |
7625 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
7626 | printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n"); | |
7627 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
7628 | printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n"); | |
7629 | printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n"); | |
7630 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
7631 | printf("*** so that the correct libraries are found at run-time))\n"); | |
7632 | } | |
7633 | } | |
7634 | return 1; | |
7635 | } | |
7636 | ||
698dcdb6 VZ |
7637 | EOF |
7638 | if { (eval echo configure:7639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
7639 | then | |
6f72b082 OK |
7640 | : |
7641 | else | |
698dcdb6 VZ |
7642 | echo "configure: failed program was:" >&5 |
7643 | cat conftest.$ac_ext >&5 | |
7644 | rm -fr conftest* | |
7645 | no_gtk=yes | |
6f72b082 | 7646 | fi |
698dcdb6 | 7647 | rm -fr conftest* |
6f72b082 | 7648 | fi |
698dcdb6 | 7649 | |
6f72b082 OK |
7650 | CFLAGS="$ac_save_CFLAGS" |
7651 | LIBS="$ac_save_LIBS" | |
7652 | fi | |
7653 | fi | |
7654 | if test "x$no_gtk" = x ; then | |
698dcdb6 VZ |
7655 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 |
7656 | WXGTK20=1 | |
6f72b082 | 7657 | else |
698dcdb6 | 7658 | echo "$ac_t""no" 1>&6 |
6f72b082 OK |
7659 | if test "$GTK_CONFIG_2_0" = "no" ; then |
7660 | echo "*** The gtk-config-2.0 script installed by GTK could not be found" | |
7661 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
7662 | echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the" | |
7663 | echo "*** full path to gtk-config-2.0." | |
7664 | else | |
7665 | if test -f conf.gtktest ; then | |
7666 | : | |
7667 | else | |
7668 | echo "*** Could not run GTK test program, checking why..." | |
7669 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
7670 | LIBS="$LIBS $GTK_LIBS" | |
698dcdb6 VZ |
7671 | cat > conftest.$ac_ext <<EOF |
7672 | #line 7673 "configure" | |
6f72b082 OK |
7673 | #include "confdefs.h" |
7674 | ||
7675 | #include <gtk/gtk.h> | |
7676 | #include <stdio.h> | |
7677 | ||
698dcdb6 VZ |
7678 | int main() { |
7679 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
7680 | ; return 0; } | |
7681 | EOF | |
7682 | if { (eval echo configure:7683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
7683 | rm -rf conftest* | |
6f72b082 OK |
7684 | echo "*** The test program compiled, but did not run. This usually means" |
7685 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
7686 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
7687 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
7688 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
7689 | echo "*** is required on your system" | |
7690 | echo "***" | |
7691 | echo "*** If you have an old version installed, it is best to remove it, although" | |
7692 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
7693 | echo "***" | |
7694 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
7695 | echo "*** came with the system with the command" | |
7696 | echo "***" | |
698dcdb6 | 7697 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
6f72b082 | 7698 | else |
698dcdb6 VZ |
7699 | echo "configure: failed program was:" >&5 |
7700 | cat conftest.$ac_ext >&5 | |
7701 | rm -rf conftest* | |
7702 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
6f72b082 OK |
7703 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
7704 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
698dcdb6 | 7705 | echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0" |
6f72b082 | 7706 | fi |
698dcdb6 | 7707 | rm -f conftest* |
6f72b082 OK |
7708 | CFLAGS="$ac_save_CFLAGS" |
7709 | LIBS="$ac_save_LIBS" | |
7710 | fi | |
7711 | fi | |
7712 | GTK_CFLAGS="" | |
7713 | GTK_LIBS="" | |
698dcdb6 VZ |
7714 | |
7715 | ||
10f2d63a VZ |
7716 | if test x$gtk_config_exec_prefix != x ; then |
7717 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
7718 | if test x${GTK_CONFIG+set} != xset ; then | |
7719 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
7720 | fi | |
7721 | fi | |
7722 | if test x$gtk_config_prefix != x ; then | |
7723 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
7724 | if test x${GTK_CONFIG+set} != xset ; then | |
7725 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
7726 | fi | |
7727 | fi | |
7728 | ||
7729 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
7730 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 VZ |
7731 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
7732 | echo "configure:7733: checking for $ac_word" >&5 | |
7733 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then | |
7734 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 7735 | else |
698dcdb6 VZ |
7736 | case "$GTK_CONFIG" in |
7737 | /*) | |
f6bcfd97 BP |
7738 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
7739 | ;; | |
698dcdb6 VZ |
7740 | ?:/*) |
7741 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
7742 | ;; | |
f6bcfd97 | 7743 | *) |
698dcdb6 VZ |
7744 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7745 | ac_dummy="$PATH" | |
7746 | for ac_dir in $ac_dummy; do | |
7747 | test -z "$ac_dir" && ac_dir=. | |
7748 | if test -f $ac_dir/$ac_word; then | |
7749 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
7750 | break | |
7751 | fi | |
7752 | done | |
7753 | IFS="$ac_save_ifs" | |
f6bcfd97 BP |
7754 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
7755 | ;; | |
7756 | esac | |
7757 | fi | |
698dcdb6 | 7758 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
f6bcfd97 | 7759 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 7760 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
f6bcfd97 | 7761 | else |
698dcdb6 | 7762 | echo "$ac_t""no" 1>&6 |
f6bcfd97 BP |
7763 | fi |
7764 | ||
7765 | min_gtk_version=1.2.7 | |
698dcdb6 VZ |
7766 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
7767 | echo "configure:7768: checking for GTK - version >= $min_gtk_version" >&5 | |
f6bcfd97 BP |
7768 | no_gtk="" |
7769 | if test "$GTK_CONFIG" != "no" ; then | |
7770 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
7771 | GTK_LIBS=`$GTK_CONFIG --libs gthread` | |
7772 | ac_save_CFLAGS="$CFLAGS" | |
7773 | ac_save_LIBS="$LIBS" | |
7774 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
7775 | LIBS="$LIBS $GTK_LIBS" | |
7776 | if test "$cross_compiling" = yes; then | |
7777 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
7778 | else | |
698dcdb6 VZ |
7779 | cat > conftest.$ac_ext <<EOF |
7780 | #line 7781 "configure" | |
f6bcfd97 BP |
7781 | #include "confdefs.h" |
7782 | ||
7783 | #include <gtk/gtk.h> | |
7784 | #include <gtk/gtkfeatures.h> | |
7785 | #include <stdio.h> | |
7786 | #include <stdlib.h> | |
7787 | ||
7788 | int | |
7789 | main () | |
7790 | { | |
7791 | int major, minor, micro; | |
7792 | ||
7793 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
7794 | printf("%s, bad version string\n", "$min_gtk_version"); | |
7795 | exit(1); | |
7796 | } | |
7797 | ||
7798 | if ((GTK_MAJOR_VERSION != gtk_major_version) || | |
7799 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
7800 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
7801 | printf("Headers vs. library version mismatch!\n"); | |
7802 | exit(1); | |
7803 | } | |
7804 | ||
7805 | if (gtk_minor_version == 1) return FALSE; | |
7806 | ||
7807 | return !((gtk_major_version > major) || | |
7808 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
7809 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
7810 | } | |
7811 | ||
698dcdb6 VZ |
7812 | EOF |
7813 | if { (eval echo configure:7814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
7814 | then | |
f6bcfd97 BP |
7815 | : |
7816 | else | |
698dcdb6 VZ |
7817 | echo "configure: failed program was:" >&5 |
7818 | cat conftest.$ac_ext >&5 | |
7819 | rm -fr conftest* | |
7820 | no_gtk=yes | |
f6bcfd97 | 7821 | fi |
698dcdb6 | 7822 | rm -fr conftest* |
f6bcfd97 | 7823 | fi |
698dcdb6 | 7824 | |
f6bcfd97 BP |
7825 | CFLAGS="$ac_save_CFLAGS" |
7826 | LIBS="$ac_save_LIBS" | |
7827 | else | |
7828 | no_gtk=yes | |
7829 | fi | |
7830 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 7831 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 BP |
7832 | WXGTK127=1 |
7833 | else | |
698dcdb6 | 7834 | echo "$ac_t""no" 1>&6 |
f6bcfd97 BP |
7835 | GTK_CFLAGS="" |
7836 | GTK_LIBS="" | |
7837 | : | |
7838 | fi | |
698dcdb6 VZ |
7839 | |
7840 | ||
f6bcfd97 | 7841 | |
698dcdb6 | 7842 | |
f6bcfd97 BP |
7843 | if test x$gtk_config_exec_prefix != x ; then |
7844 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
7845 | if test x${GTK_CONFIG+set} != xset ; then | |
7846 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
7847 | fi | |
7848 | fi | |
7849 | if test x$gtk_config_prefix != x ; then | |
7850 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
7851 | if test x${GTK_CONFIG+set} != xset ; then | |
7852 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
7853 | fi | |
7854 | fi | |
7855 | ||
7856 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
7857 | set dummy gtk-config; ac_word=$2 | |
698dcdb6 VZ |
7858 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
7859 | echo "configure:7860: checking for $ac_word" >&5 | |
7860 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then | |
7861 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 7862 | else |
698dcdb6 VZ |
7863 | case "$GTK_CONFIG" in |
7864 | /*) | |
10f2d63a VZ |
7865 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
7866 | ;; | |
698dcdb6 VZ |
7867 | ?:/*) |
7868 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
7869 | ;; | |
10f2d63a | 7870 | *) |
698dcdb6 VZ |
7871 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
7872 | ac_dummy="$PATH" | |
7873 | for ac_dir in $ac_dummy; do | |
7874 | test -z "$ac_dir" && ac_dir=. | |
7875 | if test -f $ac_dir/$ac_word; then | |
7876 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
7877 | break | |
7878 | fi | |
7879 | done | |
7880 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
7881 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
7882 | ;; | |
7883 | esac | |
7884 | fi | |
698dcdb6 | 7885 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
10f2d63a | 7886 | if test -n "$GTK_CONFIG"; then |
698dcdb6 | 7887 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
10f2d63a | 7888 | else |
698dcdb6 | 7889 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
7890 | fi |
7891 | ||
04165bec | 7892 | min_gtk_version=1.2.3 |
698dcdb6 VZ |
7893 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
7894 | echo "configure:7895: checking for GTK - version >= $min_gtk_version" >&5 | |
10f2d63a VZ |
7895 | no_gtk="" |
7896 | if test "$GTK_CONFIG" != "no" ; then | |
7897 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
2224580a | 7898 | GTK_LIBS=`$GTK_CONFIG --libs gthread` |
10f2d63a VZ |
7899 | ac_save_CFLAGS="$CFLAGS" |
7900 | ac_save_LIBS="$LIBS" | |
7901 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
7902 | LIBS="$LIBS $GTK_LIBS" | |
7903 | if test "$cross_compiling" = yes; then | |
7904 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
7905 | else | |
698dcdb6 VZ |
7906 | cat > conftest.$ac_ext <<EOF |
7907 | #line 7908 "configure" | |
10f2d63a VZ |
7908 | #include "confdefs.h" |
7909 | ||
7910 | #include <gtk/gtk.h> | |
f49f2b0c | 7911 | #include <gtk/gtkfeatures.h> |
10f2d63a | 7912 | #include <stdio.h> |
32832908 | 7913 | #include <stdlib.h> |
10f2d63a VZ |
7914 | |
7915 | int | |
7916 | main () | |
7917 | { | |
7918 | int major, minor, micro; | |
7919 | ||
7920 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
7921 | printf("%s, bad version string\n", "$min_gtk_version"); | |
7922 | exit(1); | |
7923 | } | |
7924 | ||
f49f2b0c RR |
7925 | if ((GTK_MAJOR_VERSION != gtk_major_version) || |
7926 | (GTK_MINOR_VERSION != gtk_minor_version) || | |
7927 | (GTK_MICRO_VERSION != gtk_micro_version)) { | |
7928 | printf("Headers vs. library version mismatch!\n"); | |
7929 | exit(1); | |
7930 | } | |
7931 | ||
10f2d63a VZ |
7932 | if (gtk_minor_version == 1) return FALSE; |
7933 | ||
7934 | return !((gtk_major_version > major) || | |
7935 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
7936 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
7937 | } | |
7938 | ||
698dcdb6 VZ |
7939 | EOF |
7940 | if { (eval echo configure:7941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
7941 | then | |
10f2d63a VZ |
7942 | : |
7943 | else | |
698dcdb6 VZ |
7944 | echo "configure: failed program was:" >&5 |
7945 | cat conftest.$ac_ext >&5 | |
7946 | rm -fr conftest* | |
7947 | no_gtk=yes | |
10f2d63a | 7948 | fi |
698dcdb6 | 7949 | rm -fr conftest* |
10f2d63a | 7950 | fi |
698dcdb6 | 7951 | |
10f2d63a VZ |
7952 | CFLAGS="$ac_save_CFLAGS" |
7953 | LIBS="$ac_save_LIBS" | |
7954 | else | |
7955 | no_gtk=yes | |
7956 | fi | |
7957 | if test "x$no_gtk" = x ; then | |
698dcdb6 | 7958 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
7959 | WXGTK12=1 |
7960 | else | |
698dcdb6 | 7961 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
7962 | GTK_CFLAGS="" |
7963 | GTK_LIBS="" | |
7e99ad86 | 7964 | : |
10f2d63a | 7965 | fi |
698dcdb6 VZ |
7966 | |
7967 | ||
10f2d63a | 7968 | |
698dcdb6 | 7969 | |
6f72b082 | 7970 | fi |
698dcdb6 VZ |
7971 | |
7972 | ||
1e487827 | 7973 | rm -f conf.gtktest |
703e0a69 | 7974 | |
698dcdb6 | 7975 | |
6f72b082 | 7976 | if test "$WXGTK12" != 1 -a "$WXGTK20" != 1; then |
698dcdb6 | 7977 | { echo "configure: error: |
7e99ad86 VZ |
7978 | Please check that gtk-config is in path, the directory |
7979 | where GTK+ libraries are installed (returned by | |
7980 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
7981 | equivalent variable and GTK+ is version 1.2.3 or above. | |
698dcdb6 | 7982 | " 1>&2; exit 1; } |
7e99ad86 VZ |
7983 | fi |
7984 | ||
10f2d63a | 7985 | TOOLKIT_INCLUDE="$GTK_CFLAGS" |
2224580a | 7986 | |
698dcdb6 | 7987 | |
2224580a VZ |
7988 | GUI_TK_LIBRARY="$GTK_LIBS" |
7989 | ||
698dcdb6 | 7990 | |
dad6c0ea | 7991 | AFMINSTALL=afminstall |
9ad43c8b | 7992 | TOOLKIT=GTK |
10f2d63a | 7993 | GUIDIST=GTK_DIST |
7ec2881a | 7994 | |
698dcdb6 VZ |
7995 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
7996 | echo "configure:7997: checking for gdk_im_open in -lgdk" >&5 | |
7997 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` | |
7998 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
7999 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7ec2881a | 8000 | else |
698dcdb6 | 8001 | ac_save_LIBS="$LIBS" |
7ec2881a | 8002 | LIBS="-lgdk $LIBS" |
698dcdb6 VZ |
8003 | cat > conftest.$ac_ext <<EOF |
8004 | #line 8005 "configure" | |
7ec2881a RR |
8005 | #include "confdefs.h" |
8006 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8007 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
8008 | builtin and then its argument prototype would still apply. */ |
8009 | char gdk_im_open(); | |
8010 | ||
8011 | int main() { | |
8012 | gdk_im_open() | |
8013 | ; return 0; } | |
8014 | EOF | |
8015 | if { (eval echo configure:8016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
8016 | rm -rf conftest* | |
8017 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8018 | else | |
8019 | echo "configure: failed program was:" >&5 | |
8020 | cat conftest.$ac_ext >&5 | |
8021 | rm -rf conftest* | |
8022 | eval "ac_cv_lib_$ac_lib_var=no" | |
8023 | fi | |
8024 | rm -f conftest* | |
8025 | LIBS="$ac_save_LIBS" | |
8026 | ||
8027 | fi | |
8028 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8029 | echo "$ac_t""yes" 1>&6 | |
8030 | cat >> confdefs.h <<\EOF | |
7ec2881a RR |
8031 | #define HAVE_XIM 1 |
8032 | EOF | |
8033 | ||
698dcdb6 VZ |
8034 | else |
8035 | echo "$ac_t""no" 1>&6 | |
7ec2881a RR |
8036 | fi |
8037 | ||
10f2d63a VZ |
8038 | fi |
8039 | ||
8040 | if test "$wxUSE_WINE" = 1; then | |
698dcdb6 VZ |
8041 | echo $ac_n "checking for WINE includes""... $ac_c" 1>&6 |
8042 | echo "configure:8043: checking for WINE includes" >&5 | |
8043 | ||
10f2d63a VZ |
8044 | ac_find_includes= |
8045 | for ac_dir in $SEARCH_INCLUDE; | |
8046 | do | |
8047 | if test -f "$ac_dir/windows.h"; then | |
8048 | ac_find_includes=$ac_dir | |
8049 | break | |
8050 | fi | |
8051 | done | |
8052 | ||
8053 | if test "$ac_find_includes" != "" ; then | |
698dcdb6 | 8054 | echo "$ac_t""found $ac_find_includes" 1>&6 |
10f2d63a VZ |
8055 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" |
8056 | else | |
698dcdb6 VZ |
8057 | echo "$ac_t""no" 1>&6 |
8058 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
10f2d63a VZ |
8059 | fi |
8060 | ||
8061 | XPM_LINK="" | |
698dcdb6 VZ |
8062 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
8063 | echo "configure:8064: checking for Xpm library" >&5 | |
8064 | ||
10f2d63a VZ |
8065 | ac_find_libraries= |
8066 | for ac_dir in $SEARCH_LIB; | |
8067 | do | |
8068 | for ac_extension in a so sl; do | |
8069 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
8070 | ac_find_libraries=$ac_dir | |
8071 | break 2 | |
8072 | fi | |
8073 | done | |
8074 | done | |
8075 | ||
8076 | if test "$ac_find_libraries" != "" ; then | |
8077 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
8078 | XPM_LINK="-lXpm" | |
698dcdb6 | 8079 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
8080 | #define wxHAVE_LIB_XPM 1 |
8081 | EOF | |
8082 | ||
698dcdb6 | 8083 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
10f2d63a | 8084 | else |
698dcdb6 VZ |
8085 | echo "$ac_t""no" 1>&6 |
8086 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
10f2d63a VZ |
8087 | fi |
8088 | ||
8089 | MESA_LINK="" | |
698dcdb6 VZ |
8090 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 |
8091 | echo "configure:8092: checking for Mesa library" >&5 | |
8092 | ||
10f2d63a VZ |
8093 | ac_find_libraries= |
8094 | for ac_dir in $SEARCH_LIB; | |
8095 | do | |
8096 | for ac_extension in a so sl; do | |
8097 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
8098 | ac_find_libraries=$ac_dir | |
8099 | break 2 | |
8100 | fi | |
8101 | done | |
8102 | done | |
8103 | ||
8104 | if test "$ac_find_libraries" != "" ; then | |
8105 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
8106 | MESA_LINK="-lMesaGL" | |
698dcdb6 | 8107 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
10f2d63a | 8108 | else |
698dcdb6 | 8109 | { echo "configure: error: no" 1>&2; exit 1; } |
10f2d63a VZ |
8110 | fi |
8111 | ||
8916026b | 8112 | GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" |
10f2d63a VZ |
8113 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" |
8114 | WXWINE=1 | |
8115 | TOOLKIT=MSW | |
10f2d63a VZ |
8116 | GUIDIST=MSW_DIST |
8117 | fi | |
8118 | ||
698dcdb6 VZ |
8119 | |
8120 | # If we find X, set shell vars x_includes and x_libraries to the | |
8121 | # paths, otherwise set no_x=yes. | |
8122 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
8123 | # --without-x overrides everything else, but does not touch the cache. | |
8124 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
8125 | echo "configure:8126: checking for X" >&5 | |
ab9b9eab VZ |
8126 | |
8127 | # Check whether --with-x or --without-x was given. | |
8128 | if test "${with_x+set}" = set; then | |
8129 | withval="$with_x" | |
698dcdb6 VZ |
8130 | : |
8131 | fi | |
ba337fe7 | 8132 | |
ab9b9eab VZ |
8133 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
8134 | if test "x$with_x" = xno; then | |
8135 | # The user explicitly disabled X. | |
8136 | have_x=disabled | |
8137 | else | |
8138 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
8139 | # Both variables are already set. | |
8140 | have_x=yes | |
8141 | else | |
698dcdb6 VZ |
8142 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
8143 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab VZ |
8144 | else |
8145 | # One or both of the vars are not set, and there is no cached value. | |
698dcdb6 VZ |
8146 | ac_x_includes=NO ac_x_libraries=NO |
8147 | rm -fr conftestdir | |
8148 | if mkdir conftestdir; then | |
8149 | cd conftestdir | |
ab9b9eab | 8150 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
698dcdb6 | 8151 | cat > Imakefile <<'EOF' |
ab9b9eab VZ |
8152 | acfindx: |
8153 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
8154 | EOF | |
8155 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
8156 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
8157 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
8158 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
10f2d63a | 8159 | for ac_extension in a so sl; do |
ab9b9eab | 8160 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
698dcdb6 | 8161 | test -f $ac_im_libdir/libX11.$ac_extension; then |
ab9b9eab | 8162 | ac_im_usrlibdir=$ac_im_libdir; break |
10f2d63a VZ |
8163 | fi |
8164 | done | |
ab9b9eab VZ |
8165 | # Screen out bogus values from the imake configuration. They are |
8166 | # bogus both because they are the default anyway, and because | |
8167 | # using them would break gcc on systems where it needs fixed includes. | |
698dcdb6 | 8168 | case "$ac_im_incroot" in |
ab9b9eab | 8169 | /usr/include) ;; |
698dcdb6 | 8170 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
ab9b9eab | 8171 | esac |
698dcdb6 | 8172 | case "$ac_im_usrlibdir" in |
ab9b9eab | 8173 | /usr/lib | /lib) ;; |
698dcdb6 | 8174 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
ab9b9eab | 8175 | esac |
ba337fe7 | 8176 | fi |
ab9b9eab | 8177 | cd .. |
698dcdb6 | 8178 | rm -fr conftestdir |
ab9b9eab | 8179 | fi |
10f2d63a | 8180 | |
698dcdb6 VZ |
8181 | if test "$ac_x_includes" = NO; then |
8182 | # Guess where to find include files, by looking for this one X11 .h file. | |
8183 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
8184 | ||
ab9b9eab | 8185 | # First, try using that file with no special directory specified. |
698dcdb6 VZ |
8186 | cat > conftest.$ac_ext <<EOF |
8187 | #line 8188 "configure" | |
ab9b9eab | 8188 | #include "confdefs.h" |
698dcdb6 VZ |
8189 | #include <$x_direct_test_include> |
8190 | EOF | |
8191 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
8192 | { (eval echo configure:8193: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
8193 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
8194 | if test -z "$ac_err"; then | |
8195 | rm -rf conftest* | |
ab9b9eab VZ |
8196 | # We can compile using X headers with no special include directory. |
8197 | ac_x_includes= | |
8198 | else | |
698dcdb6 VZ |
8199 | echo "$ac_err" >&5 |
8200 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 8201 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
8202 | rm -rf conftest* |
8203 | # Look for the header file in a standard set of common directories. | |
8204 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
8205 | for ac_dir in \ | |
8206 | /usr/X11/include \ | |
8207 | /usr/X11R6/include \ | |
8208 | /usr/X11R5/include \ | |
8209 | /usr/X11R4/include \ | |
8210 | \ | |
8211 | /usr/include/X11 \ | |
8212 | /usr/include/X11R6 \ | |
8213 | /usr/include/X11R5 \ | |
8214 | /usr/include/X11R4 \ | |
8215 | \ | |
8216 | /usr/local/X11/include \ | |
8217 | /usr/local/X11R6/include \ | |
8218 | /usr/local/X11R5/include \ | |
8219 | /usr/local/X11R4/include \ | |
8220 | \ | |
8221 | /usr/local/include/X11 \ | |
8222 | /usr/local/include/X11R6 \ | |
8223 | /usr/local/include/X11R5 \ | |
8224 | /usr/local/include/X11R4 \ | |
8225 | \ | |
8226 | /usr/X386/include \ | |
8227 | /usr/x386/include \ | |
8228 | /usr/XFree86/include/X11 \ | |
8229 | \ | |
8230 | /usr/include \ | |
8231 | /usr/local/include \ | |
8232 | /usr/unsupported/include \ | |
8233 | /usr/athena/include \ | |
8234 | /usr/local/x11r5/include \ | |
8235 | /usr/lpp/Xamples/include \ | |
8236 | \ | |
8237 | /usr/openwin/include \ | |
8238 | /usr/openwin/share/include \ | |
8239 | ; \ | |
8240 | do | |
8241 | if test -r "$ac_dir/$x_direct_test_include"; then | |
8242 | ac_x_includes=$ac_dir | |
8243 | break | |
8244 | fi | |
8245 | done | |
ab9b9eab | 8246 | fi |
698dcdb6 VZ |
8247 | rm -f conftest* |
8248 | fi # $ac_x_includes = NO | |
10f2d63a | 8249 | |
698dcdb6 | 8250 | if test "$ac_x_libraries" = NO; then |
ab9b9eab | 8251 | # Check for the libraries. |
698dcdb6 VZ |
8252 | |
8253 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
8254 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
8255 | ||
ab9b9eab VZ |
8256 | # See if we find them without any special options. |
8257 | # Don't add to $LIBS permanently. | |
698dcdb6 VZ |
8258 | ac_save_LIBS="$LIBS" |
8259 | LIBS="-l$x_direct_test_library $LIBS" | |
8260 | cat > conftest.$ac_ext <<EOF | |
8261 | #line 8262 "configure" | |
ab9b9eab | 8262 | #include "confdefs.h" |
698dcdb6 VZ |
8263 | |
8264 | int main() { | |
8265 | ${x_direct_test_function}() | |
8266 | ; return 0; } | |
8267 | EOF | |
8268 | if { (eval echo configure:8269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
8269 | rm -rf conftest* | |
8270 | LIBS="$ac_save_LIBS" | |
ab9b9eab VZ |
8271 | # We can link X programs with no special library path. |
8272 | ac_x_libraries= | |
8273 | else | |
698dcdb6 VZ |
8274 | echo "configure: failed program was:" >&5 |
8275 | cat conftest.$ac_ext >&5 | |
8276 | rm -rf conftest* | |
8277 | LIBS="$ac_save_LIBS" | |
8278 | # First see if replacing the include by lib works. | |
8279 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
8280 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
8281 | /usr/X11/lib \ | |
8282 | /usr/X11R6/lib \ | |
8283 | /usr/X11R5/lib \ | |
8284 | /usr/X11R4/lib \ | |
8285 | \ | |
8286 | /usr/lib/X11 \ | |
8287 | /usr/lib/X11R6 \ | |
8288 | /usr/lib/X11R5 \ | |
8289 | /usr/lib/X11R4 \ | |
8290 | \ | |
8291 | /usr/local/X11/lib \ | |
8292 | /usr/local/X11R6/lib \ | |
8293 | /usr/local/X11R5/lib \ | |
8294 | /usr/local/X11R4/lib \ | |
8295 | \ | |
8296 | /usr/local/lib/X11 \ | |
8297 | /usr/local/lib/X11R6 \ | |
8298 | /usr/local/lib/X11R5 \ | |
8299 | /usr/local/lib/X11R4 \ | |
8300 | \ | |
8301 | /usr/X386/lib \ | |
8302 | /usr/x386/lib \ | |
8303 | /usr/XFree86/lib/X11 \ | |
8304 | \ | |
8305 | /usr/lib \ | |
8306 | /usr/local/lib \ | |
8307 | /usr/unsupported/lib \ | |
8308 | /usr/athena/lib \ | |
8309 | /usr/local/x11r5/lib \ | |
8310 | /usr/lpp/Xamples/lib \ | |
8311 | /lib/usr/lib/X11 \ | |
8312 | \ | |
8313 | /usr/openwin/lib \ | |
8314 | /usr/openwin/share/lib \ | |
8315 | ; \ | |
ab9b9eab VZ |
8316 | do |
8317 | for ac_extension in a so sl; do | |
698dcdb6 | 8318 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
ab9b9eab VZ |
8319 | ac_x_libraries=$ac_dir |
8320 | break 2 | |
10f2d63a | 8321 | fi |
10f2d63a | 8322 | done |
ab9b9eab VZ |
8323 | done |
8324 | fi | |
698dcdb6 VZ |
8325 | rm -f conftest* |
8326 | fi # $ac_x_libraries = NO | |
10f2d63a | 8327 | |
698dcdb6 | 8328 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
ab9b9eab VZ |
8329 | # Didn't find X anywhere. Cache the known absence of X. |
8330 | ac_cv_have_x="have_x=no" | |
8331 | else | |
8332 | # Record where we found X for the cache. | |
8333 | ac_cv_have_x="have_x=yes \ | |
8334 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
8335 | fi | |
8336 | fi | |
10f2d63a | 8337 | fi |
ab9b9eab VZ |
8338 | eval "$ac_cv_have_x" |
8339 | fi # $with_x != no | |
10f2d63a | 8340 | |
ab9b9eab | 8341 | if test "$have_x" != yes; then |
698dcdb6 | 8342 | echo "$ac_t""$have_x" 1>&6 |
ab9b9eab VZ |
8343 | no_x=yes |
8344 | else | |
8345 | # If each of the values was on the command line, it overrides each guess. | |
8346 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
8347 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
8348 | # Update the cache value to reflect the command line values. | |
8349 | ac_cv_have_x="have_x=yes \ | |
8350 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
698dcdb6 | 8351 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
ab9b9eab | 8352 | fi |
10f2d63a | 8353 | |
ab9b9eab VZ |
8354 | if test "$no_x" = yes; then |
8355 | # Not all programs may use this symbol, but it does not hurt to define it. | |
698dcdb6 | 8356 | cat >> confdefs.h <<\EOF |
ab9b9eab VZ |
8357 | #define X_DISPLAY_MISSING 1 |
8358 | EOF | |
10f2d63a | 8359 | |
ab9b9eab VZ |
8360 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
8361 | else | |
8362 | if test -n "$x_includes"; then | |
8363 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
10f2d63a VZ |
8364 | fi |
8365 | ||
ab9b9eab VZ |
8366 | # It would also be nice to do this for all -L options, not just this one. |
8367 | if test -n "$x_libraries"; then | |
8368 | X_LIBS="$X_LIBS -L$x_libraries" | |
8369 | # For Solaris; some versions of Sun CC require a space after -R and | |
8370 | # others require no space. Words are not sufficient . . . . | |
698dcdb6 | 8371 | case "`(uname -sr) 2>/dev/null`" in |
ab9b9eab | 8372 | "SunOS 5"*) |
698dcdb6 VZ |
8373 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
8374 | echo "configure:8375: checking whether -R must be followed by a space" >&5 | |
8375 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" | |
8376 | cat > conftest.$ac_ext <<EOF | |
8377 | #line 8378 "configure" | |
ab9b9eab | 8378 | #include "confdefs.h" |
10f2d63a | 8379 | |
698dcdb6 | 8380 | int main() { |
788deba1 | 8381 | |
698dcdb6 VZ |
8382 | ; return 0; } |
8383 | EOF | |
8384 | if { (eval echo configure:8385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
8385 | rm -rf conftest* | |
ab9b9eab VZ |
8386 | ac_R_nospace=yes |
8387 | else | |
698dcdb6 VZ |
8388 | echo "configure: failed program was:" >&5 |
8389 | cat conftest.$ac_ext >&5 | |
8390 | rm -rf conftest* | |
8391 | ac_R_nospace=no | |
ab9b9eab | 8392 | fi |
698dcdb6 | 8393 | rm -f conftest* |
ab9b9eab | 8394 | if test $ac_R_nospace = yes; then |
698dcdb6 | 8395 | echo "$ac_t""no" 1>&6 |
ab9b9eab VZ |
8396 | X_LIBS="$X_LIBS -R$x_libraries" |
8397 | else | |
8398 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
698dcdb6 VZ |
8399 | cat > conftest.$ac_ext <<EOF |
8400 | #line 8401 "configure" | |
ab9b9eab | 8401 | #include "confdefs.h" |
788deba1 | 8402 | |
698dcdb6 | 8403 | int main() { |
ab9b9eab | 8404 | |
698dcdb6 VZ |
8405 | ; return 0; } |
8406 | EOF | |
8407 | if { (eval echo configure:8408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
8408 | rm -rf conftest* | |
ab9b9eab VZ |
8409 | ac_R_space=yes |
8410 | else | |
698dcdb6 VZ |
8411 | echo "configure: failed program was:" >&5 |
8412 | cat conftest.$ac_ext >&5 | |
8413 | rm -rf conftest* | |
8414 | ac_R_space=no | |
ab9b9eab | 8415 | fi |
698dcdb6 | 8416 | rm -f conftest* |
ab9b9eab | 8417 | if test $ac_R_space = yes; then |
698dcdb6 | 8418 | echo "$ac_t""yes" 1>&6 |
ab9b9eab VZ |
8419 | X_LIBS="$X_LIBS -R $x_libraries" |
8420 | else | |
698dcdb6 | 8421 | echo "$ac_t""neither works" 1>&6 |
ab9b9eab VZ |
8422 | fi |
8423 | fi | |
698dcdb6 | 8424 | LIBS="$ac_xsave_LIBS" |
ab9b9eab VZ |
8425 | esac |
8426 | fi | |
8427 | ||
8428 | # Check for system-dependent libraries X programs must link with. | |
8429 | # Do this before checking for the system-independent R6 libraries | |
8430 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
8431 | ||
8432 | if test "$ISC" = yes; then | |
8433 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
8434 | else | |
698dcdb6 VZ |
8435 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
8436 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
ab9b9eab | 8437 | # the Alpha needs dnet_stub (dnet does not exist). |
698dcdb6 VZ |
8438 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
8439 | echo "configure:8440: checking for dnet_ntoa in -ldnet" >&5 | |
8440 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` | |
8441 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8442 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 8443 | else |
698dcdb6 | 8444 | ac_save_LIBS="$LIBS" |
ab9b9eab | 8445 | LIBS="-ldnet $LIBS" |
698dcdb6 VZ |
8446 | cat > conftest.$ac_ext <<EOF |
8447 | #line 8448 "configure" | |
ab9b9eab VZ |
8448 | #include "confdefs.h" |
8449 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8450 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
8451 | builtin and then its argument prototype would still apply. */ |
8452 | char dnet_ntoa(); | |
8453 | ||
8454 | int main() { | |
8455 | dnet_ntoa() | |
8456 | ; return 0; } | |
8457 | EOF | |
8458 | if { (eval echo configure:8459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
8459 | rm -rf conftest* | |
8460 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8461 | else | |
8462 | echo "configure: failed program was:" >&5 | |
8463 | cat conftest.$ac_ext >&5 | |
8464 | rm -rf conftest* | |
8465 | eval "ac_cv_lib_$ac_lib_var=no" | |
8466 | fi | |
8467 | rm -f conftest* | |
8468 | LIBS="$ac_save_LIBS" | |
8469 | ||
8470 | fi | |
8471 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8472 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 8473 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
698dcdb6 VZ |
8474 | else |
8475 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
8476 | fi |
8477 | ||
8478 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
698dcdb6 VZ |
8479 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
8480 | echo "configure:8481: checking for dnet_ntoa in -ldnet_stub" >&5 | |
8481 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` | |
8482 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8483 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 8484 | else |
698dcdb6 | 8485 | ac_save_LIBS="$LIBS" |
ab9b9eab | 8486 | LIBS="-ldnet_stub $LIBS" |
698dcdb6 VZ |
8487 | cat > conftest.$ac_ext <<EOF |
8488 | #line 8489 "configure" | |
ab9b9eab VZ |
8489 | #include "confdefs.h" |
8490 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8491 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
8492 | builtin and then its argument prototype would still apply. */ |
8493 | char dnet_ntoa(); | |
8494 | ||
8495 | int main() { | |
8496 | dnet_ntoa() | |
8497 | ; return 0; } | |
8498 | EOF | |
8499 | if { (eval echo configure:8500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
8500 | rm -rf conftest* | |
8501 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8502 | else | |
8503 | echo "configure: failed program was:" >&5 | |
8504 | cat conftest.$ac_ext >&5 | |
8505 | rm -rf conftest* | |
8506 | eval "ac_cv_lib_$ac_lib_var=no" | |
8507 | fi | |
8508 | rm -f conftest* | |
8509 | LIBS="$ac_save_LIBS" | |
8510 | ||
8511 | fi | |
8512 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8513 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 8514 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
698dcdb6 VZ |
8515 | else |
8516 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
8517 | fi |
8518 | ||
8519 | fi | |
8520 | ||
8521 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
8522 | # to get the SysV transport functions. | |
698dcdb6 | 8523 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
ab9b9eab VZ |
8524 | # needs -lnsl. |
8525 | # The nsl library prevents programs from opening the X display | |
698dcdb6 VZ |
8526 | # on Irix 5.2, according to dickey@clark.net. |
8527 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
8528 | echo "configure:8529: checking for gethostbyname" >&5 | |
8529 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then | |
8530 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8531 | else | |
8532 | cat > conftest.$ac_ext <<EOF | |
8533 | #line 8534 "configure" | |
ab9b9eab VZ |
8534 | #include "confdefs.h" |
8535 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 8536 | which can conflict with char gethostbyname(); below. */ |
ab9b9eab VZ |
8537 | #include <assert.h> |
8538 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8539 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
8540 | builtin and then its argument prototype would still apply. */ |
8541 | char gethostbyname(); | |
8542 | ||
8543 | int main() { | |
ab9b9eab VZ |
8544 | |
8545 | /* The GNU C library defines this for functions which it implements | |
8546 | to always fail with ENOSYS. Some functions are actually named | |
8547 | something starting with __ and the normal name is an alias. */ | |
8548 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
8549 | choke me | |
8550 | #else | |
698dcdb6 | 8551 | gethostbyname(); |
ab9b9eab VZ |
8552 | #endif |
8553 | ||
698dcdb6 VZ |
8554 | ; return 0; } |
8555 | EOF | |
8556 | if { (eval echo configure:8557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
8557 | rm -rf conftest* | |
8558 | eval "ac_cv_func_gethostbyname=yes" | |
8559 | else | |
8560 | echo "configure: failed program was:" >&5 | |
8561 | cat conftest.$ac_ext >&5 | |
8562 | rm -rf conftest* | |
8563 | eval "ac_cv_func_gethostbyname=no" | |
8564 | fi | |
8565 | rm -f conftest* | |
8566 | fi | |
8567 | ||
8568 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
8569 | echo "$ac_t""yes" 1>&6 | |
8570 | : | |
8571 | else | |
8572 | echo "$ac_t""no" 1>&6 | |
8573 | fi | |
ab9b9eab VZ |
8574 | |
8575 | if test $ac_cv_func_gethostbyname = no; then | |
698dcdb6 VZ |
8576 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
8577 | echo "configure:8578: checking for gethostbyname in -lnsl" >&5 | |
8578 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` | |
8579 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8580 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 8581 | else |
698dcdb6 | 8582 | ac_save_LIBS="$LIBS" |
ab9b9eab | 8583 | LIBS="-lnsl $LIBS" |
698dcdb6 VZ |
8584 | cat > conftest.$ac_ext <<EOF |
8585 | #line 8586 "configure" | |
ab9b9eab VZ |
8586 | #include "confdefs.h" |
8587 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8588 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
8589 | builtin and then its argument prototype would still apply. */ |
8590 | char gethostbyname(); | |
6232543b | 8591 | |
698dcdb6 VZ |
8592 | int main() { |
8593 | gethostbyname() | |
8594 | ; return 0; } | |
8595 | EOF | |
8596 | if { (eval echo configure:8597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
8597 | rm -rf conftest* | |
8598 | eval "ac_cv_lib_$ac_lib_var=yes" | |
703e0a69 | 8599 | else |
698dcdb6 VZ |
8600 | echo "configure: failed program was:" >&5 |
8601 | cat conftest.$ac_ext >&5 | |
8602 | rm -rf conftest* | |
8603 | eval "ac_cv_lib_$ac_lib_var=no" | |
8604 | fi | |
8605 | rm -f conftest* | |
8606 | LIBS="$ac_save_LIBS" | |
1e487827 | 8607 | |
698dcdb6 VZ |
8608 | fi |
8609 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8610 | echo "$ac_t""yes" 1>&6 | |
8611 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
8612 | else | |
8613 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
8614 | fi |
8615 | ||
8616 | fi | |
8617 | ||
8618 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
8619 | # socket/setsockopt and other routines are undefined under SCO ODT | |
8620 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
698dcdb6 VZ |
8621 | # on later versions), says simon@lia.di.epfl.ch: it contains |
8622 | # gethostby* variants that don't use the nameserver (or something). | |
8623 | # -lsocket must be given before -lnsl if both are needed. | |
8624 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
8625 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
8626 | echo "configure:8627: checking for connect" >&5 | |
8627 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then | |
8628 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8629 | else | |
8630 | cat > conftest.$ac_ext <<EOF | |
8631 | #line 8632 "configure" | |
ab9b9eab VZ |
8632 | #include "confdefs.h" |
8633 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 8634 | which can conflict with char connect(); below. */ |
ab9b9eab VZ |
8635 | #include <assert.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 | |
698dcdb6 VZ |
8638 | builtin and then its argument prototype would still apply. */ |
8639 | char connect(); | |
8640 | ||
8641 | int main() { | |
ab9b9eab VZ |
8642 | |
8643 | /* The GNU C library defines this for functions which it implements | |
8644 | to always fail with ENOSYS. Some functions are actually named | |
8645 | something starting with __ and the normal name is an alias. */ | |
8646 | #if defined (__stub_connect) || defined (__stub___connect) | |
8647 | choke me | |
8648 | #else | |
698dcdb6 | 8649 | connect(); |
ab9b9eab VZ |
8650 | #endif |
8651 | ||
698dcdb6 VZ |
8652 | ; return 0; } |
8653 | EOF | |
8654 | if { (eval echo configure:8655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
8655 | rm -rf conftest* | |
8656 | eval "ac_cv_func_connect=yes" | |
8657 | else | |
8658 | echo "configure: failed program was:" >&5 | |
8659 | cat conftest.$ac_ext >&5 | |
8660 | rm -rf conftest* | |
8661 | eval "ac_cv_func_connect=no" | |
8662 | fi | |
8663 | rm -f conftest* | |
8664 | fi | |
8665 | ||
8666 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
8667 | echo "$ac_t""yes" 1>&6 | |
8668 | : | |
8669 | else | |
8670 | echo "$ac_t""no" 1>&6 | |
8671 | fi | |
ab9b9eab VZ |
8672 | |
8673 | if test $ac_cv_func_connect = no; then | |
698dcdb6 VZ |
8674 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
8675 | echo "configure:8676: checking for connect in -lsocket" >&5 | |
8676 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` | |
8677 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8678 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 8679 | else |
698dcdb6 | 8680 | ac_save_LIBS="$LIBS" |
ab9b9eab | 8681 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
698dcdb6 VZ |
8682 | cat > conftest.$ac_ext <<EOF |
8683 | #line 8684 "configure" | |
ab9b9eab VZ |
8684 | #include "confdefs.h" |
8685 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8686 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
8687 | builtin and then its argument prototype would still apply. */ |
8688 | char connect(); | |
8689 | ||
8690 | int main() { | |
8691 | connect() | |
8692 | ; return 0; } | |
8693 | EOF | |
8694 | if { (eval echo configure:8695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
8695 | rm -rf conftest* | |
8696 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8697 | else | |
8698 | echo "configure: failed program was:" >&5 | |
8699 | cat conftest.$ac_ext >&5 | |
8700 | rm -rf conftest* | |
8701 | eval "ac_cv_lib_$ac_lib_var=no" | |
8702 | fi | |
8703 | rm -f conftest* | |
8704 | LIBS="$ac_save_LIBS" | |
8705 | ||
8706 | fi | |
8707 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8708 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 8709 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
698dcdb6 VZ |
8710 | else |
8711 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
8712 | fi |
8713 | ||
8714 | fi | |
8715 | ||
698dcdb6 VZ |
8716 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
8717 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
8718 | echo "configure:8719: checking for remove" >&5 | |
8719 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then | |
8720 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 8721 | else |
698dcdb6 VZ |
8722 | cat > conftest.$ac_ext <<EOF |
8723 | #line 8724 "configure" | |
ab9b9eab VZ |
8724 | #include "confdefs.h" |
8725 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 8726 | which can conflict with char remove(); below. */ |
ab9b9eab VZ |
8727 | #include <assert.h> |
8728 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8729 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
8730 | builtin and then its argument prototype would still apply. */ |
8731 | char remove(); | |
8732 | ||
8733 | int main() { | |
ab9b9eab VZ |
8734 | |
8735 | /* The GNU C library defines this for functions which it implements | |
8736 | to always fail with ENOSYS. Some functions are actually named | |
8737 | something starting with __ and the normal name is an alias. */ | |
8738 | #if defined (__stub_remove) || defined (__stub___remove) | |
8739 | choke me | |
8740 | #else | |
698dcdb6 | 8741 | remove(); |
ab9b9eab VZ |
8742 | #endif |
8743 | ||
698dcdb6 VZ |
8744 | ; return 0; } |
8745 | EOF | |
8746 | if { (eval echo configure:8747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
8747 | rm -rf conftest* | |
8748 | eval "ac_cv_func_remove=yes" | |
8749 | else | |
8750 | echo "configure: failed program was:" >&5 | |
8751 | cat conftest.$ac_ext >&5 | |
8752 | rm -rf conftest* | |
8753 | eval "ac_cv_func_remove=no" | |
8754 | fi | |
8755 | rm -f conftest* | |
8756 | fi | |
8757 | ||
8758 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
8759 | echo "$ac_t""yes" 1>&6 | |
8760 | : | |
8761 | else | |
8762 | echo "$ac_t""no" 1>&6 | |
8763 | fi | |
ab9b9eab VZ |
8764 | |
8765 | if test $ac_cv_func_remove = no; then | |
698dcdb6 VZ |
8766 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
8767 | echo "configure:8768: checking for remove in -lposix" >&5 | |
8768 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` | |
8769 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8770 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 8771 | else |
698dcdb6 | 8772 | ac_save_LIBS="$LIBS" |
ab9b9eab | 8773 | LIBS="-lposix $LIBS" |
698dcdb6 VZ |
8774 | cat > conftest.$ac_ext <<EOF |
8775 | #line 8776 "configure" | |
ab9b9eab VZ |
8776 | #include "confdefs.h" |
8777 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8778 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
8779 | builtin and then its argument prototype would still apply. */ |
8780 | char remove(); | |
8781 | ||
8782 | int main() { | |
8783 | remove() | |
8784 | ; return 0; } | |
8785 | EOF | |
8786 | if { (eval echo configure:8787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
8787 | rm -rf conftest* | |
8788 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8789 | else | |
8790 | echo "configure: failed program was:" >&5 | |
8791 | cat conftest.$ac_ext >&5 | |
8792 | rm -rf conftest* | |
8793 | eval "ac_cv_lib_$ac_lib_var=no" | |
8794 | fi | |
8795 | rm -f conftest* | |
8796 | LIBS="$ac_save_LIBS" | |
8797 | ||
8798 | fi | |
8799 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8800 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 8801 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
698dcdb6 VZ |
8802 | else |
8803 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
8804 | fi |
8805 | ||
8806 | fi | |
8807 | ||
8808 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
698dcdb6 VZ |
8809 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
8810 | echo "configure:8811: checking for shmat" >&5 | |
8811 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then | |
8812 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 8813 | else |
698dcdb6 VZ |
8814 | cat > conftest.$ac_ext <<EOF |
8815 | #line 8816 "configure" | |
ab9b9eab VZ |
8816 | #include "confdefs.h" |
8817 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 8818 | which can conflict with char shmat(); below. */ |
ab9b9eab VZ |
8819 | #include <assert.h> |
8820 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8821 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
8822 | builtin and then its argument prototype would still apply. */ |
8823 | char shmat(); | |
8824 | ||
8825 | int main() { | |
ab9b9eab VZ |
8826 | |
8827 | /* The GNU C library defines this for functions which it implements | |
8828 | to always fail with ENOSYS. Some functions are actually named | |
8829 | something starting with __ and the normal name is an alias. */ | |
8830 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
8831 | choke me | |
8832 | #else | |
698dcdb6 | 8833 | shmat(); |
ab9b9eab VZ |
8834 | #endif |
8835 | ||
698dcdb6 VZ |
8836 | ; return 0; } |
8837 | EOF | |
8838 | if { (eval echo configure:8839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
8839 | rm -rf conftest* | |
8840 | eval "ac_cv_func_shmat=yes" | |
8841 | else | |
8842 | echo "configure: failed program was:" >&5 | |
8843 | cat conftest.$ac_ext >&5 | |
8844 | rm -rf conftest* | |
8845 | eval "ac_cv_func_shmat=no" | |
8846 | fi | |
8847 | rm -f conftest* | |
8848 | fi | |
8849 | ||
8850 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
8851 | echo "$ac_t""yes" 1>&6 | |
8852 | : | |
8853 | else | |
8854 | echo "$ac_t""no" 1>&6 | |
8855 | fi | |
ab9b9eab VZ |
8856 | |
8857 | if test $ac_cv_func_shmat = no; then | |
698dcdb6 VZ |
8858 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
8859 | echo "configure:8860: checking for shmat in -lipc" >&5 | |
8860 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` | |
8861 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8862 | echo $ac_n "(cached) $ac_c" 1>&6 | |
ab9b9eab | 8863 | else |
698dcdb6 | 8864 | ac_save_LIBS="$LIBS" |
ab9b9eab | 8865 | LIBS="-lipc $LIBS" |
698dcdb6 VZ |
8866 | cat > conftest.$ac_ext <<EOF |
8867 | #line 8868 "configure" | |
ab9b9eab VZ |
8868 | #include "confdefs.h" |
8869 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8870 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
8871 | builtin and then its argument prototype would still apply. */ |
8872 | char shmat(); | |
8873 | ||
8874 | int main() { | |
8875 | shmat() | |
8876 | ; return 0; } | |
8877 | EOF | |
8878 | if { (eval echo configure:8879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
8879 | rm -rf conftest* | |
8880 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8881 | else | |
8882 | echo "configure: failed program was:" >&5 | |
8883 | cat conftest.$ac_ext >&5 | |
8884 | rm -rf conftest* | |
8885 | eval "ac_cv_lib_$ac_lib_var=no" | |
8886 | fi | |
8887 | rm -f conftest* | |
8888 | LIBS="$ac_save_LIBS" | |
8889 | ||
8890 | fi | |
8891 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8892 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 8893 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
698dcdb6 VZ |
8894 | else |
8895 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
8896 | fi |
8897 | ||
8898 | fi | |
8899 | fi | |
8900 | ||
8901 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
698dcdb6 | 8902 | ac_save_LDFLAGS="$LDFLAGS" |
ab9b9eab VZ |
8903 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
8904 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
8905 | # check for ICE first), but we must link in the order -lSM -lICE or | |
8906 | # we get undefined symbols. So assume we have SM if we have ICE. | |
8907 | # These have to be linked with before -lX11, unlike the other | |
8908 | # libraries we check for below, so use a different variable. | |
698dcdb6 VZ |
8909 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
8910 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
8911 | echo "configure:8912: checking for IceConnectionNumber in -lICE" >&5 | |
8912 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` | |
8913 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8914 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8915 | else | |
8916 | ac_save_LIBS="$LIBS" | |
ab9b9eab | 8917 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
698dcdb6 VZ |
8918 | cat > conftest.$ac_ext <<EOF |
8919 | #line 8920 "configure" | |
ab9b9eab VZ |
8920 | #include "confdefs.h" |
8921 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8922 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
8923 | builtin and then its argument prototype would still apply. */ |
8924 | char IceConnectionNumber(); | |
8925 | ||
8926 | int main() { | |
8927 | IceConnectionNumber() | |
8928 | ; return 0; } | |
8929 | EOF | |
8930 | if { (eval echo configure:8931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
8931 | rm -rf conftest* | |
8932 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8933 | else | |
8934 | echo "configure: failed program was:" >&5 | |
8935 | cat conftest.$ac_ext >&5 | |
8936 | rm -rf conftest* | |
8937 | eval "ac_cv_lib_$ac_lib_var=no" | |
8938 | fi | |
8939 | rm -f conftest* | |
8940 | LIBS="$ac_save_LIBS" | |
8941 | ||
8942 | fi | |
8943 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8944 | echo "$ac_t""yes" 1>&6 | |
ab9b9eab | 8945 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
698dcdb6 VZ |
8946 | else |
8947 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
8948 | fi |
8949 | ||
698dcdb6 | 8950 | LDFLAGS="$ac_save_LDFLAGS" |
ab9b9eab VZ |
8951 | |
8952 | fi | |
8953 | ||
37d403aa JS |
8954 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
8955 | LDFLAGS="$LDFLAGS $X_LIBS" | |
ab9b9eab | 8956 | |
37d403aa | 8957 | if test "$wxUSE_MOTIF" = 1; then |
ab9b9eab | 8958 | if test "$no_x" = "yes"; then |
698dcdb6 | 8959 | { echo "configure: error: X11 not found" 1>&2; exit 1; } |
ab9b9eab VZ |
8960 | fi |
8961 | ||
8962 | GUI_TK_LIBRARY="$X_LIBS" | |
8963 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
8964 | ||
dad6c0ea VZ |
8965 | AFMINSTALL=afminstall |
8966 | ||
698dcdb6 | 8967 | |
cd6d6d5b VZ |
8968 | COMPILED_X_PROGRAM=0 |
8969 | ||
698dcdb6 VZ |
8970 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 |
8971 | echo "configure:8972: checking for Motif/Lesstif headers" >&5 | |
8972 | ||
ab9b9eab VZ |
8973 | ac_find_includes= |
8974 | for ac_dir in $SEARCH_INCLUDE; | |
8975 | do | |
8976 | if test -f "$ac_dir/Xm/Xm.h"; then | |
8977 | ac_find_includes=$ac_dir | |
8978 | break | |
8979 | fi | |
8980 | done | |
8981 | ||
8982 | if test "$ac_find_includes" != "" ; then | |
698dcdb6 | 8983 | echo "$ac_t""found $ac_find_includes" 1>&6 |
ab9b9eab | 8984 | else |
698dcdb6 VZ |
8985 | cat > conftest.$ac_ext <<EOF |
8986 | #line 8987 "configure" | |
cd6d6d5b VZ |
8987 | #include "confdefs.h" |
8988 | ||
8989 | #include <Xm/Xm.h> | |
698dcdb6 VZ |
8990 | |
8991 | int main() { | |
cd6d6d5b VZ |
8992 | |
8993 | int version; | |
8994 | ||
8995 | version = xmUseVersion; | |
698dcdb6 VZ |
8996 | |
8997 | ; return 0; } | |
8998 | EOF | |
8999 | if { (eval echo configure:9000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
9000 | rm -rf conftest* | |
9001 | ||
9002 | echo "$ac_t""found in default search path" 1>&6 | |
cd6d6d5b | 9003 | COMPILED_X_PROGRAM=1 |
698dcdb6 | 9004 | |
cd6d6d5b | 9005 | else |
698dcdb6 VZ |
9006 | echo "configure: failed program was:" >&5 |
9007 | cat conftest.$ac_ext >&5 | |
9008 | rm -rf conftest* | |
9009 | ||
9010 | echo "$ac_t""no" 1>&6 | |
9011 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
9012 | ||
9013 | ||
cd6d6d5b | 9014 | fi |
698dcdb6 | 9015 | rm -f conftest* |
ab9b9eab VZ |
9016 | fi |
9017 | ||
cd6d6d5b | 9018 | if test "$COMPILED_X_PROGRAM" = 0; then |
698dcdb6 VZ |
9019 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 |
9020 | echo "configure:9021: checking for Motif/Lesstif library" >&5 | |
9021 | ||
ab9b9eab VZ |
9022 | ac_find_libraries= |
9023 | for ac_dir in $SEARCH_LIB; | |
9024 | do | |
9025 | for ac_extension in a so sl; do | |
9026 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
9027 | ac_find_libraries=$ac_dir | |
9028 | break 2 | |
9029 | fi | |
9030 | done | |
9031 | done | |
9032 | ||
cd6d6d5b | 9033 | if test "$ac_find_libraries" != "" ; then |
698dcdb6 | 9034 | |
ab9b9eab VZ |
9035 | ac_path_to_include=$ac_find_includes |
9036 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
9037 | result=$? | |
9038 | if test $result = 0; then | |
9039 | ac_path_to_include="" | |
9040 | else | |
9041 | ac_path_to_include="-I$ac_find_includes" | |
9042 | fi | |
9043 | ||
698dcdb6 | 9044 | |
ab9b9eab VZ |
9045 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
9046 | result=$? | |
9047 | if test $result = 0; then | |
9048 | ac_path_to_link="" | |
9049 | else | |
9050 | ac_path_to_link="-L$ac_find_libraries" | |
9051 | fi | |
9052 | ||
698dcdb6 | 9053 | |
cd6d6d5b VZ |
9054 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" |
9055 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include" | |
698dcdb6 | 9056 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
cd6d6d5b | 9057 | else |
698dcdb6 VZ |
9058 | cat > conftest.$ac_ext <<EOF |
9059 | #line 9060 "configure" | |
cd6d6d5b | 9060 | #include "confdefs.h" |
ab9b9eab | 9061 | |
cd6d6d5b | 9062 | #include <Xm/Xm.h> |
698dcdb6 VZ |
9063 | |
9064 | int main() { | |
ab9b9eab | 9065 | |
cd6d6d5b | 9066 | int version; |
ab9b9eab | 9067 | |
cd6d6d5b | 9068 | version = xmUseVersion; |
698dcdb6 VZ |
9069 | |
9070 | ; return 0; } | |
9071 | EOF | |
9072 | if { (eval echo configure:9073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
9073 | rm -rf conftest* | |
9074 | ||
9075 | echo "$ac_t""found in default search path" 1>&6 | |
cd6d6d5b | 9076 | COMPILED_X_PROGRAM=1 |
698dcdb6 | 9077 | |
cd6d6d5b | 9078 | else |
698dcdb6 VZ |
9079 | echo "configure: failed program was:" >&5 |
9080 | cat conftest.$ac_ext >&5 | |
9081 | rm -rf conftest* | |
9082 | ||
9083 | echo "$ac_t""no" 1>&6 | |
9084 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
9085 | ||
9086 | ||
cd6d6d5b | 9087 | fi |
698dcdb6 | 9088 | rm -f conftest* |
cd6d6d5b | 9089 | fi |
ab9b9eab VZ |
9090 | fi |
9091 | ||
698dcdb6 | 9092 | |
ab9b9eab | 9093 | XPM_LINK="" |
698dcdb6 VZ |
9094 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
9095 | echo "configure:9096: checking for Xpm library" >&5 | |
9096 | ||
ab9b9eab VZ |
9097 | ac_find_libraries= |
9098 | for ac_dir in $SEARCH_LIB; | |
9099 | do | |
9100 | for ac_extension in a so sl; do | |
9101 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
9102 | ac_find_libraries=$ac_dir | |
9103 | break 2 | |
9104 | fi | |
9105 | done | |
9106 | done | |
9107 | ||
9108 | if test "$ac_find_libraries" != "" ; then | |
698dcdb6 | 9109 | |
ab9b9eab VZ |
9110 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
9111 | result=$? | |
9112 | if test $result = 0; then | |
9113 | ac_path_to_link="" | |
9114 | else | |
9115 | ac_path_to_link="-L$ac_find_libraries" | |
9116 | fi | |
9117 | ||
9118 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" | |
9119 | XPM_LINK="-lXpm " | |
698dcdb6 | 9120 | cat >> confdefs.h <<\EOF |
ab9b9eab VZ |
9121 | #define wxHAVE_LIB_XPM 1 |
9122 | EOF | |
9123 | ||
698dcdb6 | 9124 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
ab9b9eab | 9125 | else |
698dcdb6 VZ |
9126 | cat > conftest.$ac_ext <<EOF |
9127 | #line 9128 "configure" | |
cd6d6d5b VZ |
9128 | #include "confdefs.h" |
9129 | ||
9130 | #include <X11/xpm.h> | |
698dcdb6 VZ |
9131 | |
9132 | int main() { | |
cd6d6d5b VZ |
9133 | |
9134 | int version; | |
9135 | ||
9136 | version = XpmLibraryVersion(); | |
698dcdb6 VZ |
9137 | |
9138 | ; return 0; } | |
9139 | EOF | |
9140 | if { (eval echo configure:9141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
9141 | rm -rf conftest* | |
9142 | ||
f6bcfd97 | 9143 | XPM_LINK="-lXpm " |
698dcdb6 | 9144 | cat >> confdefs.h <<\EOF |
3ace2e6d SN |
9145 | #define wxHAVE_LIB_XPM 1 |
9146 | EOF | |
9147 | ||
698dcdb6 | 9148 | echo "$ac_t""found in default search path" 1>&6 |
cd6d6d5b | 9149 | COMPILED_X_PROGRAM=0 |
698dcdb6 | 9150 | |
cd6d6d5b | 9151 | else |
698dcdb6 VZ |
9152 | echo "configure: failed program was:" >&5 |
9153 | cat conftest.$ac_ext >&5 | |
9154 | rm -rf conftest* | |
9155 | ||
9156 | echo "$ac_t""no" 1>&6 | |
9157 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
9158 | ||
9159 | ||
cd6d6d5b | 9160 | fi |
698dcdb6 | 9161 | rm -f conftest* |
ab9b9eab VZ |
9162 | fi |
9163 | ||
8916026b | 9164 | GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11" |
ab9b9eab VZ |
9165 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" |
9166 | TOOLKIT=MOTIF | |
10f2d63a VZ |
9167 | GUIDIST=MOTIF_DIST |
9168 | fi | |
9169 | ||
b4085ce6 GD |
9170 | if test "$wxUSE_MAC" = 1; then |
9171 | TOOLKIT=MAC | |
c521c494 | 9172 | GUIDIST=MACX_DIST |
b4085ce6 GD |
9173 | fi |
9174 | ||
e07802fc VZ |
9175 | if test "$wxUSE_PM" = 1; then |
9176 | TOOLKIT=PM | |
e07802fc VZ |
9177 | GUIDIST=GTK_DIST |
9178 | fi | |
9179 | ||
9180 | if test "$TOOLKIT" != "PM" ; then | |
ec14dd32 | 9181 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` |
e07802fc VZ |
9182 | else |
9183 | TOOLKIT_DIR="os2" | |
9184 | fi | |
10f2d63a | 9185 | |
f6bcfd97 BP |
9186 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then |
9187 | TOOLKIT_NAME="${TOOLKIT_DIR}d" | |
9188 | else | |
9189 | TOOLKIT_NAME="${TOOLKIT_DIR}" | |
9190 | fi | |
9191 | ||
2224580a | 9192 | TOOLKIT_DEF="-D__WX${TOOLKIT}__" |
10f2d63a | 9193 | |
f6bcfd97 | 9194 | WX_LIBRARY="wx_${TOOLKIT_NAME}" |
10f2d63a | 9195 | |
bdad4e7e | 9196 | ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(OGLOBJS)" |
3fcdd07b | 9197 | |
9ad43c8b RL |
9198 | if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then |
9199 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
3fcdd07b VZ |
9200 | fi |
9201 | ||
d9d8273d | 9202 | if test "$wxUSE_LIBJPEG" = "yes" ; then |
2224580a | 9203 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" |
d9d8273d RR |
9204 | fi |
9205 | if test "$wxUSE_LIBTIFF" = "yes" ; then | |
9206 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
9207 | fi | |
9208 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
9209 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
9210 | fi | |
9211 | if test "$wxUSE_ZLIB" = "yes" ; then | |
9212 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
9213 | fi | |
3fed1840 RR |
9214 | if test "$wxUSE_FREETYPE" = "yes" ; then |
9215 | ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)" | |
9216 | fi | |
bdad4e7e | 9217 | ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS) \$(OGLDEPS)" |
2224580a VZ |
9218 | |
9219 | PORT_FILES="src/\$(TOOLKITDIR)/files.lst" | |
9220 | RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst" | |
9221 | RPM_SPEC="wx\$(TOOLKIT).spec" | |
9222 | ||
9223 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
9224 | DISTDIR="wx\$(TOOLKIT)" | |
10f2d63a | 9225 | else |
dad6c0ea VZ |
9226 | USE_GUI=0 |
9227 | ||
f6bcfd97 BP |
9228 | TOOLKIT_DIR="base" |
9229 | ||
9230 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
9231 | TOOLKIT_NAME="${TOOLKIT_DIR}d" | |
9232 | else | |
9233 | TOOLKIT_NAME="${TOOLKIT_DIR}" | |
9234 | fi | |
9235 | ||
07eb77a6 RL |
9236 | TOOLKIT_DEF="-D__WXBASE__" |
9237 | ||
b4085ce6 GD |
9238 | ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)" |
9239 | ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)" | |
10f2d63a | 9240 | |
a20b6d3a VZ |
9241 | if test "$wxUSE_ZLIB" = "yes" ; then |
9242 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
9243 | fi | |
9244 | ||
f6bcfd97 | 9245 | WX_LIBRARY="wx_${TOOLKIT_NAME}" |
2224580a VZ |
9246 | |
9247 | PORT_FILES="src/files.lst" | |
9248 | RPM_FILES="src/rpmfiles.lst" | |
9249 | RPM_SPEC="wxBase.spec" | |
9250 | ||
9251 | GUIDIST="BASE_DIST" | |
9252 | DISTDIR="wxBase" | |
10f2d63a VZ |
9253 | fi |
9254 | ||
9255 | WX_LIBRARY_NAME="lib${WX_LIBRARY}.la" | |
bdad4e7e | 9256 | WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la" |
10f2d63a VZ |
9257 | |
9258 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
bdad4e7e | 9259 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a" |
10f2d63a VZ |
9260 | |
9261 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
bdad4e7e | 9262 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" |
10f2d63a VZ |
9263 | |
9264 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}" | |
9265 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so" | |
9266 | WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so" | |
bdad4e7e RR |
9267 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}" |
9268 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so" | |
9269 | WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so" | |
10f2d63a VZ |
9270 | |
9271 | SHARED_LD= | |
9272 | PIC_FLAG= | |
9273 | WX_ALL= | |
9274 | WX_ALL_INSTALLED= | |
1d62a8b4 | 9275 | BURNT_LIBRARY_NAME= |
f6bcfd97 | 9276 | WX_TARGET_LIBRARY_SONAME= |
10f2d63a | 9277 | |
698dcdb6 | 9278 | |
10f2d63a VZ |
9279 | if test "$wxUSE_SHARED" = "yes"; then |
9280 | case "${host}" in | |
9281 | *-hp-hpux* ) | |
9282 | if test "$GCC" = yes ; then | |
69ffe1d2 | 9283 | SHARED_LD="${CC} -shared -fPIC -o" |
10f2d63a VZ |
9284 | PIC_FLAG="-fPIC" |
9285 | else | |
f6bcfd97 BP |
9286 | LDFLAGS="-L/usr/lib" |
9287 | ||
10f2d63a VZ |
9288 | SHARED_LD="${CXX} -b -o" |
9289 | PIC_FLAG="+Z" | |
9290 | fi | |
f6bcfd97 BP |
9291 | WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl" |
9292 | WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl" | |
c661ecca | 9293 | if test "$wxUSE_OPENGL" = "yes"; then |
f6bcfd97 | 9294 | WX_ALL_INSTALLED="preinstall_gl" |
c661ecca RR |
9295 | WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}" |
9296 | else | |
9297 | WX_ALL="${WX_LIBRARY_NAME_SHARED}" | |
9298 | fi | |
10f2d63a | 9299 | ;; |
b12915c1 VZ |
9300 | |
9301 | *-*-linux* ) | |
10f2d63a VZ |
9302 | SHARED_LD="${CC} -shared -o" |
9303 | PIC_FLAG="-fPIC" | |
00cf1208 | 9304 | if test "$wxUSE_BURNT_NAME" = "yes" ; then |
05cdfc6f | 9305 | BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}" |
bdad4e7e | 9306 | BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" |
f6bcfd97 | 9307 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" |
00cf1208 | 9308 | fi |
c661ecca RR |
9309 | if test "$wxUSE_OPENGL" = "yes"; then |
9310 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
9311 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
9312 | else | |
9313 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
9314 | WX_ALL="CREATE_LINKS" | |
422107f9 | 9315 | fi |
00cf1208 | 9316 | ;; |
10f2d63a VZ |
9317 | *-*-irix5* | *-*-irix6* ) |
9318 | if test "$GCC" = yes ; then | |
9319 | SHARED_LD="${CC} -shared -o" | |
9320 | PIC_FLAG="-fPIC" | |
9321 | else | |
9322 | SHARED_LD="${CXX} -shared -o" | |
9323 | fi | |
c661ecca RR |
9324 | if test "$wxUSE_OPENGL" = "yes"; then |
9325 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
9326 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
9327 | else | |
9328 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
9329 | WX_ALL="CREATE_LINKS" | |
422107f9 | 9330 | fi |
10f2d63a VZ |
9331 | ;; |
9332 | *-*-solaris2* ) | |
9333 | if test "$GCC" = yes ; then | |
9334 | SHARED_LD="${CC} -shared -o" | |
9335 | PIC_FLAG="-fPIC" | |
f6bcfd97 BP |
9336 | |
9337 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
10f2d63a VZ |
9338 | else |
9339 | SHARED_LD="${CXX} -G -o" | |
9340 | PIC_FLAG="-KPIC" | |
9341 | fi | |
c661ecca RR |
9342 | if test "$wxUSE_OPENGL" = "yes"; then |
9343 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
9344 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
9345 | else | |
9346 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
9347 | WX_ALL="CREATE_LINKS" | |
9348 | fi | |
10f2d63a VZ |
9349 | ;; |
9350 | *-*-sunos4* ) | |
9351 | SHARED_LD="${CC} -shared -o" | |
9352 | PIC_FLAG="-fPIC" | |
9353 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
9354 | WX_ALL="CREATE_LINKS" | |
9355 | ;; | |
95c8801c | 9356 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* ) |
10f2d63a VZ |
9357 | SHARED_LD="${CC} -shared -o" |
9358 | PIC_FLAG="-fPIC" | |
37d403aa JS |
9359 | if test "$wxUSE_OPENGL" = "yes"; then |
9360 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
9361 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
9362 | else | |
9363 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
9364 | WX_ALL="CREATE_LINKS" | |
9365 | fi | |
10f2d63a | 9366 | ;; |
b4085ce6 | 9367 | *-*-darwin* ) |
ea5999b9 GD |
9368 | SHARED_LD="${CXX} -dynamiclib -o" |
9369 | PIC_FLAG="-dynamic -fPIC" | |
b4085ce6 GD |
9370 | if test "$wxUSE_OPENGL" = "yes"; then |
9371 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
9372 | WX_ALL="CREATE_LINKS CREATE_LINKS_GL" | |
9373 | else | |
9374 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
9375 | WX_ALL="CREATE_LINKS" | |
9376 | fi | |
1f8ae82f GD |
9377 | WX_ALL="${WX_ALL} ./lib/lib${WX_LIBRARY}-${WX_RELEASE}.r" |
9378 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
9379 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
9380 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}" | |
f3c067d2 GD |
9381 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib" |
9382 | WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib" | |
1f8ae82f | 9383 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}" |
f3c067d2 GD |
9384 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib" |
9385 | WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib" | |
b4085ce6 | 9386 | ;; |
10f2d63a VZ |
9387 | *-*-osf* ) |
9388 | SHARED_LD="${CXX} -shared -o" | |
9389 | PIC_FLAG="-fPIC" | |
9390 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
9391 | WX_ALL="CREATE_LINKS" | |
9392 | ;; | |
9393 | *-*-dgux5* ) | |
9394 | SHARED_LD="${CXX} -shared -o" | |
9395 | PIC_FLAG="-fPIC" | |
9396 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
9397 | WX_ALL="CREATE_LINKS" | |
9398 | ;; | |
9399 | *-*-sysv5* ) | |
9400 | SHARED_LD="${CC} -shared -o" | |
9401 | PIC_FLAG="-fPIC" | |
9402 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
9403 | WX_ALL="CREATE_LINKS" | |
9404 | ;; | |
9405 | *-*-aix* ) | |
9406 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
9407 | WX_ALL=${WX_LIBRARY_NAME_SHARED} | |
9408 | ;; | |
1c8183e2 | 9409 | *-*-cygwin* ) |
10f2d63a | 9410 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
bdad4e7e | 9411 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
9412 | if test "$wxUSE_OPENGL" = "yes"; then |
9413 | WX_ALL_INSTALLED="preinstall_gl" | |
9414 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
9415 | else | |
9416 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
9417 | fi | |
10f2d63a | 9418 | ;; |
b12915c1 | 9419 | *-*-mingw32* ) |
10f2d63a | 9420 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
bdad4e7e | 9421 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
9422 | if test "$wxUSE_OPENGL" = "yes"; then |
9423 | WX_ALL_INSTALLED="preinstall_gl" | |
9424 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
9425 | else | |
9426 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
9427 | fi | |
10f2d63a VZ |
9428 | ;; |
9429 | *-pc-os2_emx ) | |
e07802fc VZ |
9430 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" |
9431 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
10f2d63a | 9432 | ;; |
b12915c1 | 9433 | *-*-beos* ) |
e2b8b066 | 9434 | SHARED_LD="${LD} -shared -o" |
b12915c1 VZ |
9435 | PIC_FLAG="-fPIC" |
9436 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
9437 | WX_ALL="CREATE_LINKS" | |
9438 | ;; | |
10f2d63a | 9439 | *) |
698dcdb6 | 9440 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
9441 | esac |
9442 | ||
9443 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
9444 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
bdad4e7e | 9445 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" |
10f2d63a | 9446 | fi |
3711412e | 9447 | WX_TARGET_LIBRARY_TYPE="so" |
10f2d63a VZ |
9448 | else |
9449 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
bdad4e7e | 9450 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" |
f6bcfd97 BP |
9451 | |
9452 | if test "$wxUSE_OPENGL" = "yes"; then | |
9453 | WX_ALL_INSTALLED="preinstall_gl" | |
9454 | WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}" | |
9455 | else | |
9456 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
9457 | fi | |
9458 | ||
9459 | if test "$wxUSE_GUI" = "no"; then | |
9460 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
9461 | fi | |
9462 | ||
3711412e | 9463 | WX_TARGET_LIBRARY_TYPE="a" |
10f2d63a VZ |
9464 | fi |
9465 | ||
698dcdb6 VZ |
9466 | |
9467 | for ac_hdr in strings.h | |
10f2d63a | 9468 | do |
698dcdb6 VZ |
9469 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
9470 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9471 | echo "configure:9472: checking for $ac_hdr" >&5 | |
9472 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9473 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9474 | else | |
9475 | cat > conftest.$ac_ext <<EOF | |
9476 | #line 9477 "configure" | |
10f2d63a | 9477 | #include "confdefs.h" |
698dcdb6 VZ |
9478 | #include <$ac_hdr> |
9479 | EOF | |
9480 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9481 | { (eval echo configure:9482: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9482 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9483 | if test -z "$ac_err"; then | |
9484 | rm -rf conftest* | |
9485 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 9486 | else |
698dcdb6 VZ |
9487 | echo "$ac_err" >&5 |
9488 | echo "configure: failed program was:" >&5 | |
10f2d63a | 9489 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
9490 | rm -rf conftest* |
9491 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 9492 | fi |
698dcdb6 | 9493 | rm -f conftest* |
10f2d63a | 9494 | fi |
698dcdb6 VZ |
9495 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9496 | echo "$ac_t""yes" 1>&6 | |
9497 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9498 | cat >> confdefs.h <<EOF | |
9499 | #define $ac_tr_hdr 1 | |
10f2d63a | 9500 | EOF |
698dcdb6 VZ |
9501 | |
9502 | else | |
9503 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
9504 | fi |
9505 | done | |
9506 | ||
698dcdb6 | 9507 | for ac_hdr in stdlib.h |
9cfadba2 | 9508 | do |
698dcdb6 VZ |
9509 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
9510 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9511 | echo "configure:9512: checking for $ac_hdr" >&5 | |
9512 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9513 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9514 | else | |
9515 | cat > conftest.$ac_ext <<EOF | |
9516 | #line 9517 "configure" | |
9cfadba2 | 9517 | #include "confdefs.h" |
698dcdb6 VZ |
9518 | #include <$ac_hdr> |
9519 | EOF | |
9520 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9521 | { (eval echo configure:9522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9522 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9523 | if test -z "$ac_err"; then | |
9524 | rm -rf conftest* | |
9525 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 9526 | else |
698dcdb6 VZ |
9527 | echo "$ac_err" >&5 |
9528 | echo "configure: failed program was:" >&5 | |
9cfadba2 | 9529 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
9530 | rm -rf conftest* |
9531 | eval "ac_cv_header_$ac_safe=no" | |
9cfadba2 | 9532 | fi |
698dcdb6 | 9533 | rm -f conftest* |
9cfadba2 | 9534 | fi |
698dcdb6 VZ |
9535 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9536 | echo "$ac_t""yes" 1>&6 | |
9537 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9538 | cat >> confdefs.h <<EOF | |
9539 | #define $ac_tr_hdr 1 | |
9cfadba2 | 9540 | EOF |
698dcdb6 VZ |
9541 | |
9542 | else | |
9543 | echo "$ac_t""no" 1>&6 | |
9cfadba2 VZ |
9544 | fi |
9545 | done | |
10f2d63a | 9546 | |
698dcdb6 | 9547 | for ac_hdr in unistd.h |
10f2d63a | 9548 | do |
698dcdb6 VZ |
9549 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
9550 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9551 | echo "configure:9552: checking for $ac_hdr" >&5 | |
9552 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9553 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9554 | else | |
9555 | cat > conftest.$ac_ext <<EOF | |
9556 | #line 9557 "configure" | |
10f2d63a | 9557 | #include "confdefs.h" |
698dcdb6 VZ |
9558 | #include <$ac_hdr> |
9559 | EOF | |
9560 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9561 | { (eval echo configure:9562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9562 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9563 | if test -z "$ac_err"; then | |
9564 | rm -rf conftest* | |
9565 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 9566 | else |
698dcdb6 VZ |
9567 | echo "$ac_err" >&5 |
9568 | echo "configure: failed program was:" >&5 | |
10f2d63a | 9569 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
9570 | rm -rf conftest* |
9571 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 9572 | fi |
698dcdb6 | 9573 | rm -f conftest* |
10f2d63a | 9574 | fi |
698dcdb6 VZ |
9575 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9576 | echo "$ac_t""yes" 1>&6 | |
9577 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9578 | cat >> confdefs.h <<EOF | |
9579 | #define $ac_tr_hdr 1 | |
10f2d63a | 9580 | EOF |
698dcdb6 VZ |
9581 | |
9582 | else | |
9583 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
9584 | fi |
9585 | done | |
9586 | ||
698dcdb6 | 9587 | for ac_hdr in wchar.h |
10f2d63a | 9588 | do |
698dcdb6 VZ |
9589 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
9590 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9591 | echo "configure:9592: checking for $ac_hdr" >&5 | |
9592 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9593 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9594 | else | |
9595 | cat > conftest.$ac_ext <<EOF | |
9596 | #line 9597 "configure" | |
10f2d63a | 9597 | #include "confdefs.h" |
698dcdb6 VZ |
9598 | #include <$ac_hdr> |
9599 | EOF | |
9600 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9601 | { (eval echo configure:9602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9602 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9603 | if test -z "$ac_err"; then | |
9604 | rm -rf conftest* | |
9605 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 9606 | else |
698dcdb6 VZ |
9607 | echo "$ac_err" >&5 |
9608 | echo "configure: failed program was:" >&5 | |
6f72b082 | 9609 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
9610 | rm -rf conftest* |
9611 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 9612 | fi |
698dcdb6 | 9613 | rm -f conftest* |
6f72b082 | 9614 | fi |
698dcdb6 VZ |
9615 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9616 | echo "$ac_t""yes" 1>&6 | |
9617 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9618 | cat >> confdefs.h <<EOF | |
9619 | #define $ac_tr_hdr 1 | |
6f72b082 | 9620 | EOF |
698dcdb6 VZ |
9621 | |
9622 | else | |
9623 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
9624 | fi |
9625 | done | |
9626 | ||
698dcdb6 | 9627 | for ac_hdr in wcstr.h |
6f72b082 | 9628 | do |
698dcdb6 VZ |
9629 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
9630 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9631 | echo "configure:9632: checking for $ac_hdr" >&5 | |
9632 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9633 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9634 | else | |
9635 | cat > conftest.$ac_ext <<EOF | |
9636 | #line 9637 "configure" | |
6f72b082 | 9637 | #include "confdefs.h" |
698dcdb6 VZ |
9638 | #include <$ac_hdr> |
9639 | EOF | |
9640 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9641 | { (eval echo configure:9642: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9642 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9643 | if test -z "$ac_err"; then | |
9644 | rm -rf conftest* | |
9645 | eval "ac_cv_header_$ac_safe=yes" | |
6f72b082 | 9646 | else |
698dcdb6 VZ |
9647 | echo "$ac_err" >&5 |
9648 | echo "configure: failed program was:" >&5 | |
6f72b082 | 9649 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
9650 | rm -rf conftest* |
9651 | eval "ac_cv_header_$ac_safe=no" | |
6f72b082 | 9652 | fi |
698dcdb6 | 9653 | rm -f conftest* |
6f72b082 | 9654 | fi |
698dcdb6 VZ |
9655 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9656 | echo "$ac_t""yes" 1>&6 | |
9657 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9658 | cat >> confdefs.h <<EOF | |
9659 | #define $ac_tr_hdr 1 | |
6f72b082 | 9660 | EOF |
698dcdb6 VZ |
9661 | |
9662 | else | |
9663 | echo "$ac_t""no" 1>&6 | |
6f72b082 OK |
9664 | fi |
9665 | done | |
9666 | ||
698dcdb6 | 9667 | for ac_hdr in fnmatch.h |
6f72b082 | 9668 | do |
698dcdb6 VZ |
9669 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
9670 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9671 | echo "configure:9672: checking for $ac_hdr" >&5 | |
9672 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9673 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9674 | else | |
9675 | cat > conftest.$ac_ext <<EOF | |
9676 | #line 9677 "configure" | |
6f72b082 | 9677 | #include "confdefs.h" |
698dcdb6 VZ |
9678 | #include <$ac_hdr> |
9679 | EOF | |
9680 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9681 | { (eval echo configure:9682: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9682 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9683 | if test -z "$ac_err"; then | |
9684 | rm -rf conftest* | |
9685 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 9686 | else |
698dcdb6 VZ |
9687 | echo "$ac_err" >&5 |
9688 | echo "configure: failed program was:" >&5 | |
10f2d63a | 9689 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
9690 | rm -rf conftest* |
9691 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 9692 | fi |
698dcdb6 | 9693 | rm -f conftest* |
10f2d63a | 9694 | fi |
698dcdb6 VZ |
9695 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9696 | echo "$ac_t""yes" 1>&6 | |
9697 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9698 | cat >> confdefs.h <<EOF | |
9699 | #define $ac_tr_hdr 1 | |
10f2d63a | 9700 | EOF |
698dcdb6 VZ |
9701 | |
9702 | else | |
9703 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
9704 | fi |
9705 | done | |
9706 | ||
698dcdb6 | 9707 | for ac_hdr in iconv.h |
0fb0dd83 | 9708 | do |
698dcdb6 VZ |
9709 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
9710 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9711 | echo "configure:9712: checking for $ac_hdr" >&5 | |
9712 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9713 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9714 | else | |
9715 | cat > conftest.$ac_ext <<EOF | |
9716 | #line 9717 "configure" | |
0fb0dd83 | 9717 | #include "confdefs.h" |
698dcdb6 VZ |
9718 | #include <$ac_hdr> |
9719 | EOF | |
9720 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9721 | { (eval echo configure:9722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9722 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9723 | if test -z "$ac_err"; then | |
9724 | rm -rf conftest* | |
9725 | eval "ac_cv_header_$ac_safe=yes" | |
0fb0dd83 | 9726 | else |
698dcdb6 VZ |
9727 | echo "$ac_err" >&5 |
9728 | echo "configure: failed program was:" >&5 | |
0fb0dd83 | 9729 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
9730 | rm -rf conftest* |
9731 | eval "ac_cv_header_$ac_safe=no" | |
0fb0dd83 | 9732 | fi |
698dcdb6 | 9733 | rm -f conftest* |
0fb0dd83 | 9734 | fi |
698dcdb6 VZ |
9735 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9736 | echo "$ac_t""yes" 1>&6 | |
9737 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9738 | cat >> confdefs.h <<EOF | |
9739 | #define $ac_tr_hdr 1 | |
0fb0dd83 | 9740 | EOF |
698dcdb6 VZ |
9741 | |
9742 | else | |
9743 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 RR |
9744 | fi |
9745 | done | |
9746 | ||
698dcdb6 | 9747 | for ac_hdr in langinfo.h |
1f8ae82f | 9748 | do |
698dcdb6 VZ |
9749 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
9750 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9751 | echo "configure:9752: checking for $ac_hdr" >&5 | |
9752 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9753 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9754 | else | |
9755 | cat > conftest.$ac_ext <<EOF | |
9756 | #line 9757 "configure" | |
1f8ae82f | 9757 | #include "confdefs.h" |
698dcdb6 VZ |
9758 | #include <$ac_hdr> |
9759 | EOF | |
9760 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9761 | { (eval echo configure:9762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9762 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9763 | if test -z "$ac_err"; then | |
9764 | rm -rf conftest* | |
9765 | eval "ac_cv_header_$ac_safe=yes" | |
1f8ae82f | 9766 | else |
698dcdb6 VZ |
9767 | echo "$ac_err" >&5 |
9768 | echo "configure: failed program was:" >&5 | |
1f8ae82f | 9769 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
9770 | rm -rf conftest* |
9771 | eval "ac_cv_header_$ac_safe=no" | |
1f8ae82f | 9772 | fi |
698dcdb6 | 9773 | rm -f conftest* |
1f8ae82f | 9774 | fi |
698dcdb6 VZ |
9775 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9776 | echo "$ac_t""yes" 1>&6 | |
9777 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9778 | cat >> confdefs.h <<EOF | |
9779 | #define $ac_tr_hdr 1 | |
1f8ae82f | 9780 | EOF |
698dcdb6 VZ |
9781 | |
9782 | else | |
9783 | echo "$ac_t""no" 1>&6 | |
1f8ae82f GD |
9784 | fi |
9785 | done | |
9786 | ||
698dcdb6 | 9787 | |
73fd4a60 VZ |
9788 | if test "$wxUSE_GUI" = "yes"; then |
9789 | if test "$wxUSE_UNIX" = "yes"; then | |
698dcdb6 | 9790 | for ac_hdr in X11/XKBlib.h |
10f2d63a | 9791 | do |
698dcdb6 VZ |
9792 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
9793 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
9794 | echo "configure:9795: checking for $ac_hdr" >&5 | |
9795 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
9796 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9797 | else | |
9798 | cat > conftest.$ac_ext <<EOF | |
9799 | #line 9800 "configure" | |
10f2d63a | 9800 | #include "confdefs.h" |
698dcdb6 VZ |
9801 | #include <$ac_hdr> |
9802 | EOF | |
9803 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9804 | { (eval echo configure:9805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9805 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9806 | if test -z "$ac_err"; then | |
9807 | rm -rf conftest* | |
9808 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 9809 | else |
698dcdb6 VZ |
9810 | echo "$ac_err" >&5 |
9811 | echo "configure: failed program was:" >&5 | |
10f2d63a | 9812 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
9813 | rm -rf conftest* |
9814 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 9815 | fi |
698dcdb6 | 9816 | rm -f conftest* |
10f2d63a | 9817 | fi |
698dcdb6 VZ |
9818 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9819 | echo "$ac_t""yes" 1>&6 | |
9820 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9821 | cat >> confdefs.h <<EOF | |
9822 | #define $ac_tr_hdr 1 | |
10f2d63a | 9823 | EOF |
698dcdb6 VZ |
9824 | |
9825 | else | |
9826 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
9827 | fi |
9828 | done | |
9829 | ||
73fd4a60 | 9830 | fi |
10f2d63a VZ |
9831 | fi |
9832 | ||
698dcdb6 VZ |
9833 | |
9834 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
9835 | echo "configure:9836: checking for ANSI C header files" >&5 | |
9836 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then | |
9837 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9838 | else |
698dcdb6 VZ |
9839 | cat > conftest.$ac_ext <<EOF |
9840 | #line 9841 "configure" | |
10f2d63a VZ |
9841 | #include "confdefs.h" |
9842 | #include <stdlib.h> | |
9843 | #include <stdarg.h> | |
9844 | #include <string.h> | |
9845 | #include <float.h> | |
698dcdb6 VZ |
9846 | EOF |
9847 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
9848 | { (eval echo configure:9849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
9849 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | |
9850 | if test -z "$ac_err"; then | |
9851 | rm -rf conftest* | |
10f2d63a VZ |
9852 | ac_cv_header_stdc=yes |
9853 | else | |
698dcdb6 VZ |
9854 | echo "$ac_err" >&5 |
9855 | echo "configure: failed program was:" >&5 | |
10f2d63a | 9856 | cat conftest.$ac_ext >&5 |
698dcdb6 | 9857 | rm -rf conftest* |
10f2d63a VZ |
9858 | ac_cv_header_stdc=no |
9859 | fi | |
698dcdb6 | 9860 | rm -f conftest* |
10f2d63a VZ |
9861 | |
9862 | if test $ac_cv_header_stdc = yes; then | |
9863 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
698dcdb6 VZ |
9864 | cat > conftest.$ac_ext <<EOF |
9865 | #line 9866 "configure" | |
10f2d63a VZ |
9866 | #include "confdefs.h" |
9867 | #include <string.h> | |
698dcdb6 | 9868 | EOF |
10f2d63a VZ |
9869 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
9870 | egrep "memchr" >/dev/null 2>&1; then | |
9871 | : | |
9872 | else | |
698dcdb6 | 9873 | rm -rf conftest* |
10f2d63a VZ |
9874 | ac_cv_header_stdc=no |
9875 | fi | |
9876 | rm -f conftest* | |
9877 | ||
9878 | fi | |
9879 | ||
9880 | if test $ac_cv_header_stdc = yes; then | |
9881 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
698dcdb6 VZ |
9882 | cat > conftest.$ac_ext <<EOF |
9883 | #line 9884 "configure" | |
10f2d63a VZ |
9884 | #include "confdefs.h" |
9885 | #include <stdlib.h> | |
698dcdb6 | 9886 | EOF |
10f2d63a VZ |
9887 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
9888 | egrep "free" >/dev/null 2>&1; then | |
9889 | : | |
9890 | else | |
698dcdb6 | 9891 | rm -rf conftest* |
10f2d63a VZ |
9892 | ac_cv_header_stdc=no |
9893 | fi | |
9894 | rm -f conftest* | |
9895 | ||
9896 | fi | |
9897 | ||
9898 | if test $ac_cv_header_stdc = yes; then | |
9899 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
698dcdb6 | 9900 | if test "$cross_compiling" = yes; then |
10f2d63a VZ |
9901 | : |
9902 | else | |
698dcdb6 VZ |
9903 | cat > conftest.$ac_ext <<EOF |
9904 | #line 9905 "configure" | |
10f2d63a VZ |
9905 | #include "confdefs.h" |
9906 | #include <ctype.h> | |
698dcdb6 VZ |
9907 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
9908 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
1e487827 | 9909 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
698dcdb6 VZ |
9910 | int main () { int i; for (i = 0; i < 256; i++) |
9911 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
9912 | exit (0); } | |
9913 | ||
9914 | EOF | |
9915 | if { (eval echo configure:9916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
9916 | then | |
10f2d63a VZ |
9917 | : |
9918 | else | |
698dcdb6 VZ |
9919 | echo "configure: failed program was:" >&5 |
9920 | cat conftest.$ac_ext >&5 | |
9921 | rm -fr conftest* | |
9922 | ac_cv_header_stdc=no | |
10f2d63a | 9923 | fi |
698dcdb6 | 9924 | rm -fr conftest* |
10f2d63a | 9925 | fi |
698dcdb6 | 9926 | |
10f2d63a VZ |
9927 | fi |
9928 | fi | |
1e487827 | 9929 | |
698dcdb6 VZ |
9930 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
9931 | if test $ac_cv_header_stdc = yes; then | |
9932 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
9933 | #define STDC_HEADERS 1 |
9934 | EOF | |
9935 | ||
9936 | fi | |
9937 | ||
698dcdb6 VZ |
9938 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
9939 | echo "configure:9940: checking for mode_t" >&5 | |
9940 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then | |
9941 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 9942 | else |
698dcdb6 VZ |
9943 | cat > conftest.$ac_ext <<EOF |
9944 | #line 9945 "configure" | |
1e487827 | 9945 | #include "confdefs.h" |
698dcdb6 VZ |
9946 | #include <sys/types.h> |
9947 | #if STDC_HEADERS | |
9948 | #include <stdlib.h> | |
9949 | #include <stddef.h> | |
9950 | #endif | |
9951 | EOF | |
9952 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9953 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
9954 | rm -rf conftest* | |
10f2d63a VZ |
9955 | ac_cv_type_mode_t=yes |
9956 | else | |
698dcdb6 VZ |
9957 | rm -rf conftest* |
9958 | ac_cv_type_mode_t=no | |
703e0a69 | 9959 | fi |
698dcdb6 | 9960 | rm -f conftest* |
1e487827 | 9961 | |
698dcdb6 VZ |
9962 | fi |
9963 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
9964 | if test $ac_cv_type_mode_t = no; then | |
9965 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
9966 | #define mode_t int |
9967 | EOF | |
9968 | ||
9969 | fi | |
9970 | ||
698dcdb6 VZ |
9971 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
9972 | echo "configure:9973: checking for off_t" >&5 | |
9973 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then | |
9974 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9975 | else |
698dcdb6 VZ |
9976 | cat > conftest.$ac_ext <<EOF |
9977 | #line 9978 "configure" | |
10f2d63a | 9978 | #include "confdefs.h" |
698dcdb6 VZ |
9979 | #include <sys/types.h> |
9980 | #if STDC_HEADERS | |
9981 | #include <stdlib.h> | |
9982 | #include <stddef.h> | |
9983 | #endif | |
9984 | EOF | |
9985 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
9986 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
9987 | rm -rf conftest* | |
10f2d63a VZ |
9988 | ac_cv_type_off_t=yes |
9989 | else | |
698dcdb6 VZ |
9990 | rm -rf conftest* |
9991 | ac_cv_type_off_t=no | |
703e0a69 | 9992 | fi |
698dcdb6 | 9993 | rm -f conftest* |
1e487827 | 9994 | |
698dcdb6 VZ |
9995 | fi |
9996 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
9997 | if test $ac_cv_type_off_t = no; then | |
9998 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
9999 | #define off_t long |
10000 | EOF | |
10001 | ||
10002 | fi | |
10003 | ||
698dcdb6 VZ |
10004 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
10005 | echo "configure:10006: checking for pid_t" >&5 | |
10006 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then | |
10007 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 10008 | else |
698dcdb6 VZ |
10009 | cat > conftest.$ac_ext <<EOF |
10010 | #line 10011 "configure" | |
10f2d63a | 10011 | #include "confdefs.h" |
698dcdb6 VZ |
10012 | #include <sys/types.h> |
10013 | #if STDC_HEADERS | |
10014 | #include <stdlib.h> | |
10015 | #include <stddef.h> | |
10016 | #endif | |
10017 | EOF | |
10018 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
10019 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
10020 | rm -rf conftest* | |
10f2d63a VZ |
10021 | ac_cv_type_pid_t=yes |
10022 | else | |
698dcdb6 VZ |
10023 | rm -rf conftest* |
10024 | ac_cv_type_pid_t=no | |
703e0a69 | 10025 | fi |
698dcdb6 | 10026 | rm -f conftest* |
1e487827 | 10027 | |
698dcdb6 VZ |
10028 | fi |
10029 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
10030 | if test $ac_cv_type_pid_t = no; then | |
10031 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
10032 | #define pid_t int |
10033 | EOF | |
10034 | ||
10035 | fi | |
10036 | ||
698dcdb6 VZ |
10037 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
10038 | echo "configure:10039: checking for size_t" >&5 | |
10039 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then | |
10040 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 10041 | else |
698dcdb6 VZ |
10042 | cat > conftest.$ac_ext <<EOF |
10043 | #line 10044 "configure" | |
10f2d63a | 10044 | #include "confdefs.h" |
698dcdb6 VZ |
10045 | #include <sys/types.h> |
10046 | #if STDC_HEADERS | |
10047 | #include <stdlib.h> | |
10048 | #include <stddef.h> | |
10049 | #endif | |
10050 | EOF | |
10051 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
10052 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
10053 | rm -rf conftest* | |
10f2d63a VZ |
10054 | ac_cv_type_size_t=yes |
10055 | else | |
698dcdb6 VZ |
10056 | rm -rf conftest* |
10057 | ac_cv_type_size_t=no | |
703e0a69 | 10058 | fi |
698dcdb6 | 10059 | rm -f conftest* |
1e487827 | 10060 | |
698dcdb6 VZ |
10061 | fi |
10062 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
10063 | if test $ac_cv_type_size_t = no; then | |
10064 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
10065 | #define size_t unsigned |
10066 | EOF | |
10067 | ||
10068 | fi | |
10069 | ||
698dcdb6 VZ |
10070 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
10071 | echo "configure:10072: checking for uid_t in sys/types.h" >&5 | |
10072 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then | |
10073 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 10074 | else |
698dcdb6 VZ |
10075 | cat > conftest.$ac_ext <<EOF |
10076 | #line 10077 "configure" | |
10f2d63a VZ |
10077 | #include "confdefs.h" |
10078 | #include <sys/types.h> | |
698dcdb6 | 10079 | EOF |
10f2d63a VZ |
10080 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
10081 | egrep "uid_t" >/dev/null 2>&1; then | |
698dcdb6 | 10082 | rm -rf conftest* |
10f2d63a VZ |
10083 | ac_cv_type_uid_t=yes |
10084 | else | |
698dcdb6 | 10085 | rm -rf conftest* |
10f2d63a VZ |
10086 | ac_cv_type_uid_t=no |
10087 | fi | |
10088 | rm -f conftest* | |
10089 | ||
10090 | fi | |
1e487827 | 10091 | |
698dcdb6 VZ |
10092 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
10093 | if test $ac_cv_type_uid_t = no; then | |
10094 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
10095 | #define uid_t int |
10096 | EOF | |
10097 | ||
698dcdb6 | 10098 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
10099 | #define gid_t int |
10100 | EOF | |
10101 | ||
10102 | fi | |
10103 | ||
1e487827 | 10104 | |
698dcdb6 VZ |
10105 | echo $ac_n "checking for wchar_t""... $ac_c" 1>&6 |
10106 | echo "configure:10107: checking for wchar_t" >&5 | |
10107 | if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then | |
10108 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10109 | else | |
10110 | ||
10111 | cat > conftest.$ac_ext <<EOF | |
10112 | #line 10113 "configure" | |
0046ff7c VS |
10113 | #include "confdefs.h" |
10114 | #include <wchar.h> | |
698dcdb6 | 10115 | int main() { |
0046ff7c | 10116 | |
d836ee96 VZ |
10117 | wchar_t wc, *ws; |
10118 | wc = L'a'; | |
10119 | ws = L"Hello, world!"; | |
698dcdb6 VZ |
10120 | |
10121 | ; return 0; } | |
10122 | EOF | |
10123 | if { (eval echo configure:10124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
10124 | rm -rf conftest* | |
1f8ae82f GD |
10125 | wx_cv_type_wchar_t=yes |
10126 | else | |
698dcdb6 VZ |
10127 | echo "configure: failed program was:" >&5 |
10128 | cat conftest.$ac_ext >&5 | |
10129 | rm -rf conftest* | |
10130 | cat > conftest.$ac_ext <<EOF | |
10131 | #line 10132 "configure" | |
1f8ae82f GD |
10132 | #include "confdefs.h" |
10133 | #include <stdlib.h> | |
698dcdb6 | 10134 | int main() { |
1f8ae82f | 10135 | |
d836ee96 VZ |
10136 | wchar_t wc, *ws; |
10137 | wc = L'a'; | |
10138 | ws = L"Hello, world!"; | |
698dcdb6 VZ |
10139 | |
10140 | ; return 0; } | |
10141 | EOF | |
10142 | if { (eval echo configure:10143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
10143 | rm -rf conftest* | |
0046ff7c VS |
10144 | wx_cv_type_wchar_t=yes |
10145 | else | |
698dcdb6 VZ |
10146 | echo "configure: failed program was:" >&5 |
10147 | cat conftest.$ac_ext >&5 | |
10148 | rm -rf conftest* | |
10149 | wx_cv_type_wchar_t=no | |
0046ff7c | 10150 | fi |
698dcdb6 | 10151 | rm -f conftest* |
d836ee96 | 10152 | |
6232543b | 10153 | fi |
698dcdb6 | 10154 | rm -f conftest* |
703e0a69 | 10155 | |
1e487827 | 10156 | fi |
698dcdb6 VZ |
10157 | |
10158 | echo "$ac_t""$wx_cv_type_wchar_t" 1>&6 | |
d836ee96 VZ |
10159 | |
10160 | if test "$wx_cv_type_wchar_t" = "yes"; then | |
698dcdb6 | 10161 | cat >> confdefs.h <<\EOF |
0046ff7c VS |
10162 | #define wxUSE_WCHAR_T 1 |
10163 | EOF | |
10164 | ||
10165 | fi | |
10166 | ||
19af3b06 VZ |
10167 | |
10168 | ac_ext=C | |
10169 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10170 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10171 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10172 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10173 | cross_compiling=$ac_cv_prog_cxx_cross | |
10174 | ||
d836ee96 | 10175 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 |
19af3b06 | 10176 | echo "configure:10177: checking if size_t is unsigned int" >&5 |
d836ee96 VZ |
10177 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
10178 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10179 | else | |
10180 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 10181 | #line 10182 "configure" |
d836ee96 VZ |
10182 | #include "confdefs.h" |
10183 | #include <stddef.h> | |
10184 | int main() { | |
10185 | ||
10186 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
10187 | ||
10188 | ; return 0; } | |
10189 | EOF | |
19af3b06 | 10190 | if { (eval echo configure:10191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
10191 | rm -rf conftest* |
10192 | wx_cv_size_t_is_uint=no | |
10193 | else | |
10194 | echo "configure: failed program was:" >&5 | |
10195 | cat conftest.$ac_ext >&5 | |
10196 | rm -rf conftest* | |
10197 | wx_cv_size_t_is_uint=yes | |
10198 | ||
10199 | fi | |
10200 | rm -f conftest* | |
10201 | ||
10202 | fi | |
10203 | ||
10204 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
10205 | ||
10206 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
10207 | cat >> confdefs.h <<\EOF | |
10208 | #define wxSIZE_T_IS_UINT 1 | |
10209 | EOF | |
10210 | ||
10211 | else | |
10212 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 | |
19af3b06 | 10213 | echo "configure:10214: checking if size_t is unsigned long" >&5 |
d836ee96 VZ |
10214 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
10215 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10216 | else | |
10217 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 10218 | #line 10219 "configure" |
d836ee96 VZ |
10219 | #include "confdefs.h" |
10220 | #include <stddef.h> | |
10221 | int main() { | |
10222 | ||
10223 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
10224 | ||
10225 | ; return 0; } | |
10226 | EOF | |
19af3b06 | 10227 | if { (eval echo configure:10228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
d836ee96 VZ |
10228 | rm -rf conftest* |
10229 | wx_cv_size_t_is_ulong=no | |
10230 | else | |
10231 | echo "configure: failed program was:" >&5 | |
10232 | cat conftest.$ac_ext >&5 | |
10233 | rm -rf conftest* | |
10234 | wx_cv_size_t_is_ulong=yes | |
10235 | ||
10236 | fi | |
10237 | rm -f conftest* | |
10238 | ||
10239 | fi | |
10240 | ||
10241 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
10242 | ||
10243 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
10244 | cat >> confdefs.h <<\EOF | |
10245 | #define wxSIZE_T_IS_ULONG 1 | |
10246 | EOF | |
10247 | ||
10248 | fi | |
10249 | fi | |
10250 | ||
19af3b06 VZ |
10251 | ac_ext=c |
10252 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10253 | ac_cpp='$CPP $CPPFLAGS' | |
10254 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10255 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10256 | cross_compiling=$ac_cv_prog_cc_cross | |
10257 | ||
10258 | ||
1e487827 | 10259 | |
698dcdb6 | 10260 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
19af3b06 | 10261 | echo "configure:10262: checking for pw_gecos in struct passwd" >&5 |
698dcdb6 VZ |
10262 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
10263 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10264 | else | |
10265 | ||
10266 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 10267 | #line 10268 "configure" |
b12915c1 VZ |
10268 | #include "confdefs.h" |
10269 | #include <pwd.h> | |
698dcdb6 | 10270 | int main() { |
b12915c1 VZ |
10271 | |
10272 | char *p; | |
10273 | struct passwd *pw; | |
10274 | p = pw->pw_gecos; | |
698dcdb6 VZ |
10275 | |
10276 | ; return 0; } | |
10277 | EOF | |
19af3b06 | 10278 | if { (eval echo configure:10279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
10279 | rm -rf conftest* |
10280 | ||
b12915c1 | 10281 | wx_cv_struct_pw_gecos=yes |
698dcdb6 | 10282 | |
b12915c1 | 10283 | else |
698dcdb6 VZ |
10284 | echo "configure: failed program was:" >&5 |
10285 | cat conftest.$ac_ext >&5 | |
10286 | rm -rf conftest* | |
10287 | ||
b12915c1 | 10288 | wx_cv_struct_pw_gecos=no |
698dcdb6 VZ |
10289 | |
10290 | ||
6232543b | 10291 | fi |
698dcdb6 VZ |
10292 | rm -f conftest* |
10293 | ||
703e0a69 | 10294 | |
1e487827 | 10295 | fi |
698dcdb6 VZ |
10296 | |
10297 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
b12915c1 | 10298 | |
bd3277fe | 10299 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
698dcdb6 | 10300 | cat >> confdefs.h <<\EOF |
bd3277fe VZ |
10301 | #define HAVE_PW_GECOS 1 |
10302 | EOF | |
10303 | ||
10304 | fi | |
10305 | ||
698dcdb6 VZ |
10306 | |
10307 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
19af3b06 | 10308 | echo "configure:10309: checking for working const" >&5 |
698dcdb6 VZ |
10309 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
10310 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 10311 | else |
698dcdb6 | 10312 | cat > conftest.$ac_ext <<EOF |
19af3b06 | 10313 | #line 10314 "configure" |
10f2d63a | 10314 | #include "confdefs.h" |
698dcdb6 VZ |
10315 | |
10316 | int main() { | |
10317 | ||
10318 | /* Ultrix mips cc rejects this. */ | |
10319 | typedef int charset[2]; const charset x; | |
10320 | /* SunOS 4.1.1 cc rejects this. */ | |
10321 | char const *const *ccp; | |
10322 | char **p; | |
10323 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
10324 | struct point {int x, y;}; | |
10325 | static struct point const zero = {0,0}; | |
10326 | /* AIX XL C 1.02.0.0 rejects this. | |
10327 | It does not let you subtract one const X* pointer from another in an arm | |
10328 | of an if-expression whose if-part is not a constant expression */ | |
10329 | const char *g = "string"; | |
10330 | ccp = &g + (g ? g-g : 0); | |
10331 | /* HPUX 7.0 cc rejects these. */ | |
10332 | ++ccp; | |
10333 | p = (char**) ccp; | |
10334 | ccp = (char const *const *) p; | |
10335 | { /* SCO 3.2v4 cc rejects this. */ | |
10336 | char *t; | |
10337 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
10338 | ||
10339 | *t++ = 0; | |
10f2d63a | 10340 | } |
698dcdb6 VZ |
10341 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
10342 | int x[] = {25, 17}; | |
10343 | const int *foo = &x[0]; | |
10344 | ++foo; | |
703e0a69 | 10345 | } |
698dcdb6 VZ |
10346 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
10347 | typedef const int *iptr; | |
10348 | iptr p = 0; | |
10349 | ++p; | |
6232543b | 10350 | } |
698dcdb6 VZ |
10351 | { /* AIX XL C 1.02.0.0 rejects this saying |
10352 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
10353 | struct s { int j; const int *ap[3]; }; | |
10354 | struct s *b; b->j = 5; | |
1e487827 | 10355 | } |
698dcdb6 VZ |
10356 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
10357 | const int foo = 10; | |
10358 | } | |
10359 | ||
10360 | ; return 0; } | |
10361 | EOF | |
19af3b06 | 10362 | if { (eval echo configure:10363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 10363 | rm -rf conftest* |
10f2d63a VZ |
10364 | ac_cv_c_const=yes |
10365 | else | |
698dcdb6 VZ |
10366 | echo "configure: failed program was:" >&5 |
10367 | cat conftest.$ac_ext >&5 | |
10368 | rm -rf conftest* | |
10369 | ac_cv_c_const=no | |
10f2d63a | 10370 | fi |
698dcdb6 | 10371 | rm -f conftest* |
10f2d63a | 10372 | fi |
1e487827 | 10373 | |
698dcdb6 VZ |
10374 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
10375 | if test $ac_cv_c_const = no; then | |
10376 | cat >> confdefs.h <<\EOF | |
10377 | #define const | |
10f2d63a VZ |
10378 | EOF |
10379 | ||
10380 | fi | |
10381 | ||
698dcdb6 | 10382 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
19af3b06 | 10383 | echo "configure:10384: checking for inline" >&5 |
698dcdb6 VZ |
10384 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
10385 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
10386 | else |
10387 | ac_cv_c_inline=no | |
10388 | for ac_kw in inline __inline__ __inline; do | |
698dcdb6 | 10389 | cat > conftest.$ac_ext <<EOF |
19af3b06 | 10390 | #line 10391 "configure" |
10f2d63a VZ |
10391 | #include "confdefs.h" |
10392 | ||
698dcdb6 VZ |
10393 | int main() { |
10394 | } $ac_kw foo() { | |
10395 | ; return 0; } | |
10396 | EOF | |
19af3b06 | 10397 | if { (eval echo configure:10398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 10398 | rm -rf conftest* |
10f2d63a VZ |
10399 | ac_cv_c_inline=$ac_kw; break |
10400 | else | |
698dcdb6 VZ |
10401 | echo "configure: failed program was:" >&5 |
10402 | cat conftest.$ac_ext >&5 | |
10f2d63a | 10403 | fi |
698dcdb6 | 10404 | rm -f conftest* |
10f2d63a VZ |
10405 | done |
10406 | ||
10407 | fi | |
698dcdb6 VZ |
10408 | |
10409 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
10410 | case "$ac_cv_c_inline" in | |
10f2d63a | 10411 | inline | yes) ;; |
698dcdb6 VZ |
10412 | no) cat >> confdefs.h <<\EOF |
10413 | #define inline | |
10f2d63a VZ |
10414 | EOF |
10415 | ;; | |
698dcdb6 | 10416 | *) cat >> confdefs.h <<EOF |
10f2d63a VZ |
10417 | #define inline $ac_cv_c_inline |
10418 | EOF | |
10419 | ;; | |
10420 | esac | |
10421 | ||
698dcdb6 VZ |
10422 | |
10423 | echo $ac_n "checking size of char""... $ac_c" 1>&6 | |
19af3b06 | 10424 | echo "configure:10425: checking size of char" >&5 |
698dcdb6 VZ |
10425 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
10426 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b | 10427 | else |
1e487827 | 10428 | if test "$cross_compiling" = yes; then |
698dcdb6 | 10429 | ac_cv_sizeof_char=1 |
1e487827 | 10430 | else |
698dcdb6 | 10431 | cat > conftest.$ac_ext <<EOF |
19af3b06 | 10432 | #line 10433 "configure" |
1e487827 | 10433 | #include "confdefs.h" |
698dcdb6 VZ |
10434 | #include <stdio.h> |
10435 | main() | |
1e487827 | 10436 | { |
698dcdb6 VZ |
10437 | FILE *f=fopen("conftestval", "w"); |
10438 | if (!f) exit(1); | |
10439 | fprintf(f, "%d\n", sizeof(char)); | |
10440 | exit(0); | |
1e487827 | 10441 | } |
698dcdb6 | 10442 | EOF |
19af3b06 | 10443 | if { (eval echo configure:10444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
10444 | then |
10445 | ac_cv_sizeof_char=`cat conftestval` | |
1e487827 | 10446 | else |
698dcdb6 VZ |
10447 | echo "configure: failed program was:" >&5 |
10448 | cat conftest.$ac_ext >&5 | |
10449 | rm -fr conftest* | |
1e487827 VS |
10450 | ac_cv_sizeof_char=0 |
10451 | fi | |
698dcdb6 | 10452 | rm -fr conftest* |
1e487827 | 10453 | fi |
10f2d63a | 10454 | |
1e487827 | 10455 | fi |
698dcdb6 VZ |
10456 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
10457 | cat >> confdefs.h <<EOF | |
10458 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
1e487827 | 10459 | EOF |
6232543b | 10460 | |
703e0a69 | 10461 | |
698dcdb6 | 10462 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
19af3b06 | 10463 | echo "configure:10464: checking size of short" >&5 |
698dcdb6 VZ |
10464 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
10465 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 10466 | else |
1e487827 | 10467 | if test "$cross_compiling" = yes; then |
698dcdb6 | 10468 | ac_cv_sizeof_short=2 |
1e487827 | 10469 | else |
698dcdb6 | 10470 | cat > conftest.$ac_ext <<EOF |
19af3b06 | 10471 | #line 10472 "configure" |
1e487827 | 10472 | #include "confdefs.h" |
698dcdb6 VZ |
10473 | #include <stdio.h> |
10474 | main() | |
1e487827 | 10475 | { |
698dcdb6 VZ |
10476 | FILE *f=fopen("conftestval", "w"); |
10477 | if (!f) exit(1); | |
10478 | fprintf(f, "%d\n", sizeof(short)); | |
10479 | exit(0); | |
1e487827 | 10480 | } |
698dcdb6 | 10481 | EOF |
19af3b06 | 10482 | if { (eval echo configure:10483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
10483 | then |
10484 | ac_cv_sizeof_short=`cat conftestval` | |
1e487827 | 10485 | else |
698dcdb6 VZ |
10486 | echo "configure: failed program was:" >&5 |
10487 | cat conftest.$ac_ext >&5 | |
10488 | rm -fr conftest* | |
10489 | ac_cv_sizeof_short=0 | |
1e487827 | 10490 | fi |
698dcdb6 | 10491 | rm -fr conftest* |
1e487827 | 10492 | fi |
698dcdb6 | 10493 | |
1e487827 | 10494 | fi |
698dcdb6 VZ |
10495 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
10496 | cat >> confdefs.h <<EOF | |
10497 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
10498 | EOF | |
10499 | ||
10500 | ||
10501 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 | |
19af3b06 | 10502 | echo "configure:10503: checking size of int *" >&5 |
698dcdb6 VZ |
10503 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then |
10504 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
10505 | else |
10506 | if test "$cross_compiling" = yes; then | |
698dcdb6 | 10507 | ac_cv_sizeof_int_p=4 |
10f2d63a | 10508 | else |
698dcdb6 | 10509 | cat > conftest.$ac_ext <<EOF |
19af3b06 | 10510 | #line 10511 "configure" |
10f2d63a | 10511 | #include "confdefs.h" |
698dcdb6 VZ |
10512 | #include <stdio.h> |
10513 | main() | |
10f2d63a | 10514 | { |
698dcdb6 VZ |
10515 | FILE *f=fopen("conftestval", "w"); |
10516 | if (!f) exit(1); | |
10517 | fprintf(f, "%d\n", sizeof(int *)); | |
10518 | exit(0); | |
10f2d63a | 10519 | } |
698dcdb6 | 10520 | EOF |
19af3b06 | 10521 | if { (eval echo configure:10522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
10522 | then |
10523 | ac_cv_sizeof_int_p=`cat conftestval` | |
10f2d63a | 10524 | else |
698dcdb6 VZ |
10525 | echo "configure: failed program was:" >&5 |
10526 | cat conftest.$ac_ext >&5 | |
10527 | rm -fr conftest* | |
10528 | ac_cv_sizeof_int_p=0 | |
6232543b | 10529 | fi |
698dcdb6 | 10530 | rm -fr conftest* |
1e487827 | 10531 | fi |
698dcdb6 | 10532 | |
1e487827 | 10533 | fi |
698dcdb6 VZ |
10534 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 |
10535 | cat >> confdefs.h <<EOF | |
10536 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
10f2d63a VZ |
10537 | EOF |
10538 | ||
698dcdb6 VZ |
10539 | |
10540 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
19af3b06 | 10541 | echo "configure:10542: checking size of int" >&5 |
698dcdb6 VZ |
10542 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
10543 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
10544 | else |
10545 | if test "$cross_compiling" = yes; then | |
698dcdb6 | 10546 | ac_cv_sizeof_int=4 |
703e0a69 | 10547 | else |
698dcdb6 | 10548 | cat > conftest.$ac_ext <<EOF |
19af3b06 | 10549 | #line 10550 "configure" |
1e487827 | 10550 | #include "confdefs.h" |
698dcdb6 VZ |
10551 | #include <stdio.h> |
10552 | main() | |
1e487827 | 10553 | { |
698dcdb6 VZ |
10554 | FILE *f=fopen("conftestval", "w"); |
10555 | if (!f) exit(1); | |
10556 | fprintf(f, "%d\n", sizeof(int)); | |
10557 | exit(0); | |
1e487827 | 10558 | } |
698dcdb6 | 10559 | EOF |
19af3b06 | 10560 | if { (eval echo configure:10561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
10561 | then |
10562 | ac_cv_sizeof_int=`cat conftestval` | |
10563 | else | |
10564 | echo "configure: failed program was:" >&5 | |
10565 | cat conftest.$ac_ext >&5 | |
10566 | rm -fr conftest* | |
10567 | ac_cv_sizeof_int=0 | |
703e0a69 | 10568 | fi |
698dcdb6 VZ |
10569 | rm -fr conftest* |
10570 | fi | |
10571 | ||
10572 | fi | |
10573 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
10574 | cat >> confdefs.h <<EOF | |
10575 | #define SIZEOF_INT $ac_cv_sizeof_int | |
10576 | EOF | |
10577 | ||
10578 | ||
10579 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
19af3b06 | 10580 | echo "configure:10581: checking size of long" >&5 |
698dcdb6 VZ |
10581 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
10582 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
10583 | else |
10584 | if test "$cross_compiling" = yes; then | |
698dcdb6 | 10585 | ac_cv_sizeof_long=4 |
10f2d63a | 10586 | else |
698dcdb6 | 10587 | cat > conftest.$ac_ext <<EOF |
19af3b06 | 10588 | #line 10589 "configure" |
10f2d63a | 10589 | #include "confdefs.h" |
698dcdb6 VZ |
10590 | #include <stdio.h> |
10591 | main() | |
10f2d63a | 10592 | { |
698dcdb6 VZ |
10593 | FILE *f=fopen("conftestval", "w"); |
10594 | if (!f) exit(1); | |
10595 | fprintf(f, "%d\n", sizeof(long)); | |
10596 | exit(0); | |
10f2d63a | 10597 | } |
698dcdb6 | 10598 | EOF |
19af3b06 | 10599 | if { (eval echo configure:10600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
10600 | then |
10601 | ac_cv_sizeof_long=`cat conftestval` | |
10f2d63a | 10602 | else |
698dcdb6 VZ |
10603 | echo "configure: failed program was:" >&5 |
10604 | cat conftest.$ac_ext >&5 | |
10605 | rm -fr conftest* | |
10606 | ac_cv_sizeof_long=0 | |
10f2d63a | 10607 | fi |
698dcdb6 | 10608 | rm -fr conftest* |
10f2d63a | 10609 | fi |
698dcdb6 | 10610 | |
10f2d63a | 10611 | fi |
698dcdb6 VZ |
10612 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
10613 | cat >> confdefs.h <<EOF | |
10614 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
10615 | EOF | |
10616 | ||
10617 | ||
10618 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
19af3b06 | 10619 | echo "configure:10620: checking size of long long" >&5 |
698dcdb6 VZ |
10620 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10621 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10622 | else | |
10623 | if test "$cross_compiling" = yes; then | |
10624 | ac_cv_sizeof_long_long=0 | |
10625 | else | |
10626 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 10627 | #line 10628 "configure" |
698dcdb6 VZ |
10628 | #include "confdefs.h" |
10629 | #include <stdio.h> | |
10630 | main() | |
10631 | { | |
10632 | FILE *f=fopen("conftestval", "w"); | |
10633 | if (!f) exit(1); | |
10634 | fprintf(f, "%d\n", sizeof(long long)); | |
10635 | exit(0); | |
10636 | } | |
10637 | EOF | |
19af3b06 | 10638 | if { (eval echo configure:10639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 VZ |
10639 | then |
10640 | ac_cv_sizeof_long_long=`cat conftestval` | |
6232543b | 10641 | else |
698dcdb6 VZ |
10642 | echo "configure: failed program was:" >&5 |
10643 | cat conftest.$ac_ext >&5 | |
10644 | rm -fr conftest* | |
6232543b VS |
10645 | ac_cv_sizeof_long_long=0 |
10646 | fi | |
698dcdb6 VZ |
10647 | rm -fr conftest* |
10648 | fi | |
10649 | ||
703e0a69 | 10650 | fi |
698dcdb6 VZ |
10651 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
10652 | cat >> confdefs.h <<EOF | |
10f2d63a VZ |
10653 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
10654 | EOF | |
10655 | ||
1e487827 | 10656 | |
698dcdb6 VZ |
10657 | |
10658 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 | |
19af3b06 | 10659 | echo "configure:10660: checking size of wchar_t" >&5 |
698dcdb6 VZ |
10660 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then |
10661 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10662 | else | |
10663 | ||
b93d0d08 VS |
10664 | if test "$cross_compiling" = yes; then |
10665 | wx_cv_sizeof_wchar_t=4 | |
698dcdb6 | 10666 | |
b93d0d08 | 10667 | else |
698dcdb6 | 10668 | cat > conftest.$ac_ext <<EOF |
19af3b06 | 10669 | #line 10670 "configure" |
b93d0d08 VS |
10670 | #include "confdefs.h" |
10671 | ||
1f8ae82f GD |
10672 | #ifdef HAVE_WCHAR_H |
10673 | # include <wchar.h> | |
10674 | #endif | |
10675 | #ifdef HAVE_STDLIB_H | |
10676 | # include <stdlib.h> | |
10677 | #endif | |
b93d0d08 VS |
10678 | #include <stdio.h> |
10679 | int main() | |
10680 | { | |
10681 | FILE *f=fopen("conftestval", "w"); | |
10682 | if (!f) exit(1); | |
10683 | fprintf(f, "%i", sizeof(wchar_t)); | |
10684 | exit(0); | |
10685 | } | |
698dcdb6 VZ |
10686 | |
10687 | EOF | |
19af3b06 | 10688 | if { (eval echo configure:10689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 10689 | then |
b93d0d08 VS |
10690 | wx_cv_sizeof_wchar_t=`cat conftestval` |
10691 | else | |
698dcdb6 VZ |
10692 | echo "configure: failed program was:" >&5 |
10693 | cat conftest.$ac_ext >&5 | |
10694 | rm -fr conftest* | |
10695 | wx_cv_sizeof_wchar_t=0 | |
b93d0d08 | 10696 | fi |
698dcdb6 | 10697 | rm -fr conftest* |
b93d0d08 VS |
10698 | fi |
10699 | ||
698dcdb6 | 10700 | |
b93d0d08 VS |
10701 | fi |
10702 | ||
698dcdb6 VZ |
10703 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 |
10704 | ||
10705 | cat >> confdefs.h <<EOF | |
28c6addc | 10706 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t |
b93d0d08 VS |
10707 | EOF |
10708 | ||
698dcdb6 VZ |
10709 | |
10710 | ||
10711 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 | |
19af3b06 | 10712 | echo "configure:10713: checking whether byte ordering is bigendian" >&5 |
698dcdb6 VZ |
10713 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
10714 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
10715 | else |
10716 | ac_cv_c_bigendian=unknown | |
10717 | # See if sys/param.h defines the BYTE_ORDER macro. | |
698dcdb6 | 10718 | cat > conftest.$ac_ext <<EOF |
19af3b06 | 10719 | #line 10720 "configure" |
10f2d63a VZ |
10720 | #include "confdefs.h" |
10721 | #include <sys/types.h> | |
10722 | #include <sys/param.h> | |
698dcdb6 | 10723 | int main() { |
10f2d63a VZ |
10724 | |
10725 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
10726 | bogus endian macros | |
10727 | #endif | |
698dcdb6 VZ |
10728 | ; return 0; } |
10729 | EOF | |
19af3b06 | 10730 | if { (eval echo configure:10731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 10731 | rm -rf conftest* |
10f2d63a | 10732 | # It does; now see whether it defined to BIG_ENDIAN or not. |
698dcdb6 | 10733 | cat > conftest.$ac_ext <<EOF |
19af3b06 | 10734 | #line 10735 "configure" |
10f2d63a VZ |
10735 | #include "confdefs.h" |
10736 | #include <sys/types.h> | |
10737 | #include <sys/param.h> | |
698dcdb6 | 10738 | int main() { |
10f2d63a VZ |
10739 | |
10740 | #if BYTE_ORDER != BIG_ENDIAN | |
10741 | not big endian | |
10742 | #endif | |
698dcdb6 VZ |
10743 | ; return 0; } |
10744 | EOF | |
19af3b06 | 10745 | if { (eval echo configure:10746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 10746 | rm -rf conftest* |
10f2d63a VZ |
10747 | ac_cv_c_bigendian=yes |
10748 | else | |
698dcdb6 VZ |
10749 | echo "configure: failed program was:" >&5 |
10750 | cat conftest.$ac_ext >&5 | |
10751 | rm -rf conftest* | |
10752 | ac_cv_c_bigendian=no | |
10f2d63a | 10753 | fi |
698dcdb6 | 10754 | rm -f conftest* |
10f2d63a | 10755 | else |
698dcdb6 VZ |
10756 | echo "configure: failed program was:" >&5 |
10757 | cat conftest.$ac_ext >&5 | |
10f2d63a | 10758 | fi |
698dcdb6 | 10759 | rm -f conftest* |
10f2d63a VZ |
10760 | if test $ac_cv_c_bigendian = unknown; then |
10761 | if test "$cross_compiling" = yes; then | |
10762 | ac_cv_c_bigendian=unknown | |
10763 | else | |
698dcdb6 | 10764 | cat > conftest.$ac_ext <<EOF |
19af3b06 | 10765 | #line 10766 "configure" |
10f2d63a VZ |
10766 | #include "confdefs.h" |
10767 | main () { | |
10768 | /* Are we little or big endian? From Harbison&Steele. */ | |
10769 | union | |
10770 | { | |
10771 | long l; | |
10772 | char c[sizeof (long)]; | |
10773 | } u; | |
10774 | u.l = 1; | |
10775 | exit (u.c[sizeof (long) - 1] == 1); | |
10776 | } | |
698dcdb6 | 10777 | EOF |
19af3b06 | 10778 | if { (eval echo configure:10779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
698dcdb6 | 10779 | then |
10f2d63a VZ |
10780 | ac_cv_c_bigendian=no |
10781 | else | |
698dcdb6 VZ |
10782 | echo "configure: failed program was:" >&5 |
10783 | cat conftest.$ac_ext >&5 | |
10784 | rm -fr conftest* | |
10785 | ac_cv_c_bigendian=yes | |
10f2d63a | 10786 | fi |
698dcdb6 | 10787 | rm -fr conftest* |
10f2d63a | 10788 | fi |
698dcdb6 | 10789 | |
10f2d63a VZ |
10790 | fi |
10791 | fi | |
698dcdb6 VZ |
10792 | |
10793 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
10f2d63a | 10794 | if test $ac_cv_c_bigendian = unknown; then |
698dcdb6 | 10795 | 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 |
10f2d63a VZ |
10796 | fi |
10797 | if test $ac_cv_c_bigendian = yes; then | |
698dcdb6 | 10798 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
10799 | #define WORDS_BIGENDIAN 1 |
10800 | EOF | |
10801 | ||
10802 | fi | |
10803 | ||
698dcdb6 VZ |
10804 | |
10805 | ||
10f2d63a | 10806 | if test "$cross_compiling" = "yes"; then |
698dcdb6 | 10807 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
10808 | #define wxUSE_IOSTREAMH 1 |
10809 | EOF | |
10810 | ||
10811 | else | |
698dcdb6 VZ |
10812 | |
10813 | ac_ext=C | |
10814 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 10815 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
10816 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
10817 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10818 | cross_compiling=$ac_cv_prog_cxx_cross | |
10819 | ||
703e0a69 | 10820 | |
698dcdb6 | 10821 | for ac_hdr in iostream |
10f2d63a | 10822 | do |
698dcdb6 VZ |
10823 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10824 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
19af3b06 | 10825 | echo "configure:10826: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
10826 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10827 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10828 | else | |
10829 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 10830 | #line 10831 "configure" |
10f2d63a | 10831 | #include "confdefs.h" |
698dcdb6 VZ |
10832 | #include <$ac_hdr> |
10833 | EOF | |
10834 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
19af3b06 | 10835 | { (eval echo configure:10836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
10836 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10837 | if test -z "$ac_err"; then | |
10838 | rm -rf conftest* | |
10839 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 10840 | else |
698dcdb6 VZ |
10841 | echo "$ac_err" >&5 |
10842 | echo "configure: failed program was:" >&5 | |
10f2d63a | 10843 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
10844 | rm -rf conftest* |
10845 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 10846 | fi |
698dcdb6 | 10847 | rm -f conftest* |
10f2d63a | 10848 | fi |
698dcdb6 VZ |
10849 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10850 | echo "$ac_t""yes" 1>&6 | |
10851 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10852 | cat >> confdefs.h <<EOF | |
10853 | #define $ac_tr_hdr 1 | |
10f2d63a | 10854 | EOF |
698dcdb6 VZ |
10855 | |
10856 | else | |
10857 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
10858 | fi |
10859 | done | |
10860 | ||
698dcdb6 | 10861 | |
10f2d63a | 10862 | if test "x$HAVE_IOSTREAM" = x ; then |
698dcdb6 | 10863 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
10864 | #define wxUSE_IOSTREAMH 1 |
10865 | EOF | |
10866 | ||
10867 | else | |
10868 | : | |
10869 | fi | |
10870 | ||
10871 | ac_ext=c | |
698dcdb6 | 10872 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 10873 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
10874 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
10875 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10876 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a VZ |
10877 | |
10878 | fi | |
10879 | ||
703e0a69 | 10880 | |
698dcdb6 VZ |
10881 | |
10882 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 | |
19af3b06 | 10883 | echo "configure:10884: checking if C++ compiler supports bool" >&5 |
698dcdb6 VZ |
10884 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
10885 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10886 | else | |
10887 | ||
10888 | ||
10889 | ac_ext=C | |
10890 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 10891 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
10892 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
10893 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10894 | cross_compiling=$ac_cv_prog_cxx_cross | |
10f2d63a | 10895 | |
698dcdb6 VZ |
10896 | |
10897 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 10898 | #line 10899 "configure" |
10f2d63a VZ |
10899 | #include "confdefs.h" |
10900 | ||
698dcdb6 VZ |
10901 | |
10902 | int main() { | |
10f2d63a VZ |
10903 | |
10904 | bool b = true; | |
10905 | ||
10906 | return 0; | |
698dcdb6 VZ |
10907 | |
10908 | ; return 0; } | |
10909 | EOF | |
19af3b06 | 10910 | if { (eval echo configure:10911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
10911 | rm -rf conftest* |
10912 | ||
10f2d63a | 10913 | wx_cv_cpp_bool=yes |
698dcdb6 | 10914 | |
10f2d63a | 10915 | else |
698dcdb6 VZ |
10916 | echo "configure: failed program was:" >&5 |
10917 | cat conftest.$ac_ext >&5 | |
10918 | rm -rf conftest* | |
10919 | ||
10f2d63a | 10920 | wx_cv_cpp_bool=no |
698dcdb6 VZ |
10921 | |
10922 | ||
10f2d63a | 10923 | fi |
698dcdb6 | 10924 | rm -f conftest* |
10f2d63a VZ |
10925 | |
10926 | ac_ext=c | |
698dcdb6 | 10927 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 10928 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
10929 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
10930 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10931 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 10932 | |
698dcdb6 | 10933 | |
10f2d63a | 10934 | fi |
698dcdb6 VZ |
10935 | |
10936 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
10f2d63a VZ |
10937 | |
10938 | if test "$wx_cv_cpp_bool" = "yes"; then | |
698dcdb6 | 10939 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
10940 | #define HAVE_BOOL 1 |
10941 | EOF | |
10942 | ||
10943 | fi | |
10944 | ||
1e487827 | 10945 | |
698dcdb6 VZ |
10946 | |
10947 | echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6 | |
19af3b06 | 10948 | echo "configure:10949: checking if you need GNU extensions" >&5 |
698dcdb6 VZ |
10949 | if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then |
10950 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10951 | else | |
10952 | ||
10953 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 10954 | #line 10955 "configure" |
10f2d63a VZ |
10955 | #include "confdefs.h" |
10956 | #include <features.h> | |
698dcdb6 VZ |
10957 | int main() { |
10958 | ||
10f2d63a VZ |
10959 | |
10960 | #ifndef __GNU_LIBRARY__ | |
10961 | Compile error wanted | |
10962 | #endif | |
10963 | ||
698dcdb6 VZ |
10964 | |
10965 | ; return 0; } | |
10966 | EOF | |
19af3b06 | 10967 | if { (eval echo configure:10968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 10968 | rm -rf conftest* |
10f2d63a VZ |
10969 | wx_cv_gnu_extensions=yes |
10970 | else | |
698dcdb6 VZ |
10971 | echo "configure: failed program was:" >&5 |
10972 | cat conftest.$ac_ext >&5 | |
10973 | rm -rf conftest* | |
10974 | wx_cv_gnu_extensions=no | |
10f2d63a | 10975 | fi |
698dcdb6 | 10976 | rm -f conftest* |
10f2d63a VZ |
10977 | |
10978 | fi | |
10979 | ||
698dcdb6 VZ |
10980 | |
10981 | echo "$ac_t""$wx_cv_gnu_extensions" 1>&6 | |
10f2d63a | 10982 | if test "$wx_cv_gnu_extensions" = "yes"; then |
698dcdb6 | 10983 | cat >> confdefs.h <<EOF |
10f2d63a VZ |
10984 | #define _GNU_SOURCE 1 |
10985 | EOF | |
10986 | ||
10987 | fi | |
10988 | ||
698dcdb6 VZ |
10989 | |
10990 | ||
10991 | echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6 | |
19af3b06 | 10992 | echo "configure:10993: checking for wcslen in -lc" >&5 |
698dcdb6 VZ |
10993 | ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'` |
10994 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10995 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 10996 | else |
698dcdb6 | 10997 | ac_save_LIBS="$LIBS" |
10f2d63a | 10998 | LIBS="-lc $LIBS" |
698dcdb6 | 10999 | cat > conftest.$ac_ext <<EOF |
19af3b06 | 11000 | #line 11001 "configure" |
10f2d63a VZ |
11001 | #include "confdefs.h" |
11002 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11003 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11004 | builtin and then its argument prototype would still apply. */ |
11005 | char wcslen(); | |
11006 | ||
11007 | int main() { | |
11008 | wcslen() | |
11009 | ; return 0; } | |
11010 | EOF | |
19af3b06 | 11011 | if { (eval echo configure:11012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11012 | rm -rf conftest* |
11013 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11014 | else | |
11015 | echo "configure: failed program was:" >&5 | |
11016 | cat conftest.$ac_ext >&5 | |
11017 | rm -rf conftest* | |
11018 | eval "ac_cv_lib_$ac_lib_var=no" | |
11019 | fi | |
11020 | rm -f conftest* | |
11021 | LIBS="$ac_save_LIBS" | |
11022 | ||
11023 | fi | |
11024 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11025 | echo "$ac_t""yes" 1>&6 | |
11026 | ||
11027 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11028 | #define HAVE_WCSLEN 1 |
11029 | EOF | |
11030 | ||
11031 | WCHAR_LINK="" | |
698dcdb6 | 11032 | |
10f2d63a | 11033 | else |
698dcdb6 | 11034 | echo "$ac_t""no" 1>&6 |
10f2d63a | 11035 | |
698dcdb6 | 11036 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 |
19af3b06 | 11037 | echo "configure:11038: checking for wcslen in -lw" >&5 |
698dcdb6 VZ |
11038 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
11039 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11040 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11041 | else |
698dcdb6 | 11042 | ac_save_LIBS="$LIBS" |
10f2d63a | 11043 | LIBS="-lw $LIBS" |
698dcdb6 | 11044 | cat > conftest.$ac_ext <<EOF |
19af3b06 | 11045 | #line 11046 "configure" |
10f2d63a VZ |
11046 | #include "confdefs.h" |
11047 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11048 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11049 | builtin and then its argument prototype would still apply. */ |
11050 | char wcslen(); | |
11051 | ||
11052 | int main() { | |
11053 | wcslen() | |
11054 | ; return 0; } | |
11055 | EOF | |
19af3b06 | 11056 | if { (eval echo configure:11057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11057 | rm -rf conftest* |
11058 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11059 | else | |
11060 | echo "configure: failed program was:" >&5 | |
11061 | cat conftest.$ac_ext >&5 | |
11062 | rm -rf conftest* | |
11063 | eval "ac_cv_lib_$ac_lib_var=no" | |
11064 | fi | |
11065 | rm -f conftest* | |
11066 | LIBS="$ac_save_LIBS" | |
11067 | ||
11068 | fi | |
11069 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11070 | echo "$ac_t""yes" 1>&6 | |
11071 | ||
11072 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11073 | #define HAVE_WCSLEN 1 |
11074 | EOF | |
11075 | ||
11076 | WCHAR_LINK="-lw" | |
698dcdb6 VZ |
11077 | |
11078 | else | |
11079 | echo "$ac_t""no" 1>&6 | |
6232543b | 11080 | fi |
10f2d63a | 11081 | |
698dcdb6 | 11082 | |
1e487827 | 11083 | fi |
703e0a69 | 11084 | |
698dcdb6 VZ |
11085 | |
11086 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 | |
19af3b06 | 11087 | echo "configure:11088: checking for vprintf" >&5 |
698dcdb6 VZ |
11088 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
11089 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11090 | else | |
11091 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 11092 | #line 11093 "configure" |
10f2d63a VZ |
11093 | #include "confdefs.h" |
11094 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11095 | which can conflict with char vprintf(); below. */ |
10f2d63a VZ |
11096 | #include <assert.h> |
11097 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11098 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11099 | builtin and then its argument prototype would still apply. */ |
11100 | char vprintf(); | |
11101 | ||
11102 | int main() { | |
10f2d63a VZ |
11103 | |
11104 | /* The GNU C library defines this for functions which it implements | |
11105 | to always fail with ENOSYS. Some functions are actually named | |
11106 | something starting with __ and the normal name is an alias. */ | |
698dcdb6 | 11107 | #if defined (__stub_vprintf) || defined (__stub___vprintf) |
10f2d63a VZ |
11108 | choke me |
11109 | #else | |
698dcdb6 | 11110 | vprintf(); |
10f2d63a VZ |
11111 | #endif |
11112 | ||
698dcdb6 VZ |
11113 | ; return 0; } |
11114 | EOF | |
19af3b06 | 11115 | if { (eval echo configure:11116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11116 | rm -rf conftest* |
11117 | eval "ac_cv_func_vprintf=yes" | |
11118 | else | |
11119 | echo "configure: failed program was:" >&5 | |
11120 | cat conftest.$ac_ext >&5 | |
11121 | rm -rf conftest* | |
11122 | eval "ac_cv_func_vprintf=no" | |
11123 | fi | |
11124 | rm -f conftest* | |
11125 | fi | |
11126 | ||
11127 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
11128 | echo "$ac_t""yes" 1>&6 | |
11129 | cat >> confdefs.h <<\EOF | |
11130 | #define HAVE_VPRINTF 1 | |
11131 | EOF | |
11132 | ||
11133 | else | |
11134 | echo "$ac_t""no" 1>&6 | |
11135 | fi | |
11136 | ||
11137 | if test "$ac_cv_func_vprintf" != yes; then | |
11138 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
19af3b06 | 11139 | echo "configure:11140: checking for _doprnt" >&5 |
698dcdb6 VZ |
11140 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
11141 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11142 | else | |
11143 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 11144 | #line 11145 "configure" |
10f2d63a VZ |
11145 | #include "confdefs.h" |
11146 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11147 | which can conflict with char _doprnt(); below. */ |
10f2d63a VZ |
11148 | #include <assert.h> |
11149 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11150 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11151 | builtin and then its argument prototype would still apply. */ |
11152 | char _doprnt(); | |
11153 | ||
11154 | int main() { | |
10f2d63a VZ |
11155 | |
11156 | /* The GNU C library defines this for functions which it implements | |
11157 | to always fail with ENOSYS. Some functions are actually named | |
11158 | something starting with __ and the normal name is an alias. */ | |
11159 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
11160 | choke me | |
11161 | #else | |
698dcdb6 | 11162 | _doprnt(); |
10f2d63a VZ |
11163 | #endif |
11164 | ||
698dcdb6 VZ |
11165 | ; return 0; } |
11166 | EOF | |
19af3b06 | 11167 | if { (eval echo configure:11168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11168 | rm -rf conftest* |
11169 | eval "ac_cv_func__doprnt=yes" | |
11170 | else | |
11171 | echo "configure: failed program was:" >&5 | |
11172 | cat conftest.$ac_ext >&5 | |
11173 | rm -rf conftest* | |
11174 | eval "ac_cv_func__doprnt=no" | |
11175 | fi | |
11176 | rm -f conftest* | |
11177 | fi | |
11178 | ||
11179 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
11180 | echo "$ac_t""yes" 1>&6 | |
11181 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11182 | #define HAVE_DOPRNT 1 |
11183 | EOF | |
11184 | ||
698dcdb6 VZ |
11185 | else |
11186 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
11187 | fi |
11188 | ||
11189 | fi | |
11190 | ||
1e487827 | 11191 | |
698dcdb6 VZ |
11192 | |
11193 | ||
11194 | ||
11195 | ||
11196 | ||
11197 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 | |
19af3b06 | 11198 | echo "configure:11199: checking for vsnprintf" >&5 |
698dcdb6 VZ |
11199 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then |
11200 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11201 | else | |
11202 | ||
11203 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 11204 | #line 11205 "configure" |
f6bcfd97 BP |
11205 | #include "confdefs.h" |
11206 | ||
11207 | #include <stdio.h> | |
698dcdb6 VZ |
11208 | #include <stdarg.h> |
11209 | ||
11210 | int main() { | |
10f2d63a | 11211 | |
f6bcfd97 | 11212 | int wx_test_vsnprintf(const char *, ...); |
10f2d63a | 11213 | |
f6bcfd97 BP |
11214 | wx_test_vsnprintf("%s"); |
11215 | return 0; | |
11216 | } | |
11217 | ||
11218 | int wx_test_vsnprintf(const char *fmt, ...) | |
11219 | { | |
11220 | char *s; | |
11221 | ||
11222 | va_list argp; | |
11223 | va_start(argp, fmt); | |
11224 | vsnprintf(s, 42, fmt, argp); | |
11225 | va_end(argp); | |
698dcdb6 VZ |
11226 | |
11227 | ; return 0; } | |
11228 | EOF | |
19af3b06 | 11229 | if { (eval echo configure:11230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
11230 | rm -rf conftest* |
11231 | ||
f6bcfd97 | 11232 | wx_cv_func_vsnprintf=yes |
698dcdb6 | 11233 | |
10f2d63a | 11234 | else |
698dcdb6 VZ |
11235 | echo "configure: failed program was:" >&5 |
11236 | cat conftest.$ac_ext >&5 | |
11237 | rm -rf conftest* | |
11238 | ||
11239 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 11240 | #line 11241 "configure" |
c521c494 RL |
11241 | #include "confdefs.h" |
11242 | ||
11243 | #include <stdio.h> | |
11244 | #include <stdarg.h> | |
698dcdb6 VZ |
11245 | |
11246 | int main() { | |
c521c494 RL |
11247 | |
11248 | int wx_test_vsnprintf(const char *, ...); | |
11249 | ||
11250 | wx_test_vsnprintf("%s"); | |
11251 | return 0; | |
11252 | } | |
11253 | ||
11254 | int wx_test_vsnprintf(const char *fmt, ...) | |
11255 | { | |
11256 | char *s; | |
11257 | ||
11258 | va_list argp; | |
11259 | va_start(argp, fmt); | |
11260 | _vsnprintf(s, 42, fmt, argp); | |
11261 | va_end(argp); | |
698dcdb6 VZ |
11262 | |
11263 | ; return 0; } | |
11264 | EOF | |
19af3b06 | 11265 | if { (eval echo configure:11266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
11266 | rm -rf conftest* |
11267 | ||
c521c494 | 11268 | wx_cv_func_vsnprintf=yes |
698dcdb6 | 11269 | |
c521c494 | 11270 | else |
698dcdb6 VZ |
11271 | echo "configure: failed program was:" >&5 |
11272 | cat conftest.$ac_ext >&5 | |
11273 | rm -rf conftest* | |
11274 | ||
c521c494 | 11275 | wx_cv_func_vsnprintf=no |
698dcdb6 | 11276 | |
10f2d63a | 11277 | fi |
698dcdb6 VZ |
11278 | rm -f conftest* |
11279 | ||
6232543b | 11280 | fi |
698dcdb6 | 11281 | rm -f conftest* |
703e0a69 | 11282 | |
1e487827 | 11283 | fi |
698dcdb6 VZ |
11284 | |
11285 | echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6 | |
10f2d63a | 11286 | |
9d8deca0 | 11287 | if test "$wx_cv_func_vsnprintf" = yes; then |
698dcdb6 | 11288 | cat >> confdefs.h <<\EOF |
9d8deca0 VZ |
11289 | #define HAVE_VSNPRINTF 1 |
11290 | EOF | |
11291 | ||
11292 | else | |
698dcdb6 | 11293 | echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2 |
9d8deca0 VZ |
11294 | fi |
11295 | ||
698dcdb6 | 11296 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 |
19af3b06 | 11297 | echo "configure:11298: checking for vsscanf" >&5 |
698dcdb6 VZ |
11298 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
11299 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11300 | else |
698dcdb6 VZ |
11301 | |
11302 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 11303 | #line 11304 "configure" |
10f2d63a | 11304 | #include "confdefs.h" |
10f2d63a | 11305 | |
f6bcfd97 BP |
11306 | #include <stdio.h> |
11307 | #include <stdarg.h> | |
698dcdb6 VZ |
11308 | |
11309 | int main() { | |
10f2d63a | 11310 | |
f6bcfd97 | 11311 | int wx_test_vsscanf(const char *, ...); |
10f2d63a | 11312 | |
f6bcfd97 BP |
11313 | wx_test_vsscanf("%d"); |
11314 | return 0; | |
10f2d63a VZ |
11315 | } |
11316 | ||
f6bcfd97 | 11317 | int wx_test_vsscanf(const char *fmt, ...) |
10f2d63a | 11318 | { |
f6bcfd97 BP |
11319 | va_list argp; |
11320 | va_start(argp, fmt); | |
11321 | vsscanf("42", fmt, argp); | |
11322 | va_end(argp); | |
698dcdb6 VZ |
11323 | |
11324 | ; return 0; } | |
11325 | EOF | |
19af3b06 | 11326 | if { (eval echo configure:11327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
11327 | rm -rf conftest* |
11328 | ||
f6bcfd97 | 11329 | wx_cv_func_vsscanf=yes |
698dcdb6 | 11330 | |
10f2d63a | 11331 | else |
698dcdb6 VZ |
11332 | echo "configure: failed program was:" >&5 |
11333 | cat conftest.$ac_ext >&5 | |
11334 | rm -rf conftest* | |
11335 | ||
f6bcfd97 | 11336 | wx_cv_func_vsscanf=no |
698dcdb6 | 11337 | |
6232543b | 11338 | fi |
698dcdb6 | 11339 | rm -f conftest* |
703e0a69 | 11340 | |
1e487827 | 11341 | fi |
698dcdb6 VZ |
11342 | |
11343 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 | |
10f2d63a | 11344 | |
9d8deca0 | 11345 | if test "$wx_cv_func_vsscanf" = yes; then |
698dcdb6 | 11346 | cat >> confdefs.h <<\EOF |
9d8deca0 VZ |
11347 | #define HAVE_VSSCANF 1 |
11348 | EOF | |
11349 | ||
11350 | fi | |
11351 | ||
95c8801c VS |
11352 | if test "$TOOLKIT" != "MSW"; then |
11353 | ||
11354 | ||
11355 | ||
698dcdb6 VZ |
11356 | ac_ext=C |
11357 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11358 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11359 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11360 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11361 | cross_compiling=$ac_cv_prog_cxx_cross | |
11362 | ||
11363 | echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6 | |
19af3b06 | 11364 | echo "configure:11365: checking if iconv() takes char**" >&5 |
698dcdb6 VZ |
11365 | if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then |
11366 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11367 | else | |
11368 | ||
11369 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 11370 | #line 11371 "configure" |
95c8801c VS |
11371 | #include "confdefs.h" |
11372 | #include <iconv.h> | |
698dcdb6 | 11373 | int main() { |
95c8801c VS |
11374 | |
11375 | char **inbuf, **outbuf; | |
19af3b06 VZ |
11376 | iconv_t cd; |
11377 | size_t insz, outsz; | |
11378 | iconv(cd, inbuf, &insz, outbuf, &outsz); | |
698dcdb6 VZ |
11379 | |
11380 | ; return 0; } | |
11381 | EOF | |
19af3b06 | 11382 | if { (eval echo configure:11383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 11383 | rm -rf conftest* |
95c8801c VS |
11384 | wx_cv_iconv_takes_char=yes |
11385 | else | |
698dcdb6 VZ |
11386 | echo "configure: failed program was:" >&5 |
11387 | cat conftest.$ac_ext >&5 | |
11388 | rm -rf conftest* | |
11389 | wx_cv_iconv_takes_char=no | |
95c8801c | 11390 | fi |
698dcdb6 | 11391 | rm -f conftest* |
95c8801c VS |
11392 | |
11393 | fi | |
698dcdb6 VZ |
11394 | |
11395 | echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6 | |
10f2d63a | 11396 | ac_ext=c |
698dcdb6 | 11397 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 11398 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
11399 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11400 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11401 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 11402 | |
95c8801c | 11403 | if test "$wx_cv_iconv_takes_char" = yes ; then |
698dcdb6 | 11404 | cat >> confdefs.h <<\EOF |
95c8801c VS |
11405 | #define WX_ICONV_TAKES_CHAR 1 |
11406 | EOF | |
11407 | ||
11408 | fi | |
10f2d63a | 11409 | |
1e487827 | 11410 | |
698dcdb6 VZ |
11411 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
11412 | for ac_func in sigaction | |
eb4efbdc | 11413 | do |
698dcdb6 | 11414 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
19af3b06 | 11415 | echo "configure:11416: checking for $ac_func" >&5 |
698dcdb6 VZ |
11416 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11417 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11418 | else | |
11419 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 11420 | #line 11421 "configure" |
eb4efbdc VZ |
11421 | #include "confdefs.h" |
11422 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11423 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
11424 | #include <assert.h> |
11425 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11426 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11427 | builtin and then its argument prototype would still apply. */ |
11428 | char $ac_func(); | |
11429 | ||
11430 | int main() { | |
eb4efbdc VZ |
11431 | |
11432 | /* The GNU C library defines this for functions which it implements | |
11433 | to always fail with ENOSYS. Some functions are actually named | |
11434 | something starting with __ and the normal name is an alias. */ | |
11435 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11436 | choke me | |
11437 | #else | |
698dcdb6 | 11438 | $ac_func(); |
eb4efbdc VZ |
11439 | #endif |
11440 | ||
698dcdb6 | 11441 | ; return 0; } |
eb4efbdc | 11442 | EOF |
19af3b06 | 11443 | if { (eval echo configure:11444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11444 | rm -rf conftest* |
11445 | eval "ac_cv_func_$ac_func=yes" | |
11446 | else | |
11447 | echo "configure: failed program was:" >&5 | |
11448 | cat conftest.$ac_ext >&5 | |
11449 | rm -rf conftest* | |
11450 | eval "ac_cv_func_$ac_func=no" | |
11451 | fi | |
11452 | rm -f conftest* | |
11453 | fi | |
eb4efbdc | 11454 | |
698dcdb6 VZ |
11455 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
11456 | echo "$ac_t""yes" 1>&6 | |
11457 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11458 | cat >> confdefs.h <<EOF | |
11459 | #define $ac_tr_func 1 | |
11460 | EOF | |
11461 | ||
11462 | else | |
11463 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
11464 | fi |
11465 | done | |
11466 | ||
698dcdb6 | 11467 | |
eb4efbdc | 11468 | if test "$ac_cv_func_sigaction" = "no"; then |
698dcdb6 | 11469 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 |
eb4efbdc VZ |
11470 | wxUSE_ON_FATAL_EXCEPTION=no |
11471 | fi | |
f6bcfd97 BP |
11472 | |
11473 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
698dcdb6 VZ |
11474 | |
11475 | ac_ext=C | |
11476 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 11477 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
11478 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11479 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11480 | cross_compiling=$ac_cv_prog_cxx_cross | |
6232543b | 11481 | |
1e487827 | 11482 | |
698dcdb6 | 11483 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 |
19af3b06 | 11484 | echo "configure:11485: checking for sa_handler type" >&5 |
698dcdb6 VZ |
11485 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
11486 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11487 | else | |
11488 | ||
11489 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 11490 | #line 11491 "configure" |
f6bcfd97 BP |
11491 | #include "confdefs.h" |
11492 | #include <signal.h> | |
698dcdb6 | 11493 | int main() { |
f6bcfd97 BP |
11494 | |
11495 | extern void testSigHandler(int); | |
11496 | ||
11497 | struct sigaction sa; | |
11498 | sa.sa_handler = testSigHandler; | |
698dcdb6 VZ |
11499 | |
11500 | ; return 0; } | |
11501 | EOF | |
19af3b06 | 11502 | if { (eval echo configure:11503: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
11503 | rm -rf conftest* |
11504 | ||
f6bcfd97 | 11505 | wx_cv_type_sa_handler=int |
698dcdb6 | 11506 | |
f6bcfd97 | 11507 | else |
698dcdb6 VZ |
11508 | echo "configure: failed program was:" >&5 |
11509 | cat conftest.$ac_ext >&5 | |
11510 | rm -rf conftest* | |
11511 | ||
f6bcfd97 | 11512 | wx_cv_type_sa_handler=void |
698dcdb6 | 11513 | |
6232543b | 11514 | fi |
698dcdb6 VZ |
11515 | rm -f conftest* |
11516 | ||
1e487827 | 11517 | fi |
698dcdb6 VZ |
11518 | |
11519 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
f6bcfd97 BP |
11520 | |
11521 | ac_ext=c | |
698dcdb6 | 11522 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
f6bcfd97 | 11523 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
11524 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11525 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11526 | cross_compiling=$ac_cv_prog_cc_cross | |
11527 | ||
703e0a69 | 11528 | |
698dcdb6 | 11529 | cat >> confdefs.h <<EOF |
f6bcfd97 BP |
11530 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler |
11531 | EOF | |
11532 | ||
11533 | fi | |
eb4efbdc VZ |
11534 | fi |
11535 | ||
10f2d63a VZ |
11536 | for ac_func in vfork |
11537 | do | |
698dcdb6 | 11538 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
19af3b06 | 11539 | echo "configure:11540: checking for $ac_func" >&5 |
698dcdb6 VZ |
11540 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11541 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11542 | else | |
11543 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 11544 | #line 11545 "configure" |
10f2d63a VZ |
11545 | #include "confdefs.h" |
11546 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11547 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
11548 | #include <assert.h> |
11549 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11550 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11551 | builtin and then its argument prototype would still apply. */ |
11552 | char $ac_func(); | |
11553 | ||
11554 | int main() { | |
10f2d63a VZ |
11555 | |
11556 | /* The GNU C library defines this for functions which it implements | |
11557 | to always fail with ENOSYS. Some functions are actually named | |
11558 | something starting with __ and the normal name is an alias. */ | |
11559 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11560 | choke me | |
11561 | #else | |
698dcdb6 | 11562 | $ac_func(); |
10f2d63a VZ |
11563 | #endif |
11564 | ||
698dcdb6 | 11565 | ; return 0; } |
10f2d63a | 11566 | EOF |
19af3b06 | 11567 | if { (eval echo configure:11568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11568 | rm -rf conftest* |
11569 | eval "ac_cv_func_$ac_func=yes" | |
11570 | else | |
11571 | echo "configure: failed program was:" >&5 | |
11572 | cat conftest.$ac_ext >&5 | |
11573 | rm -rf conftest* | |
11574 | eval "ac_cv_func_$ac_func=no" | |
11575 | fi | |
11576 | rm -f conftest* | |
11577 | fi | |
270a909e | 11578 | |
698dcdb6 VZ |
11579 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
11580 | echo "$ac_t""yes" 1>&6 | |
11581 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11582 | cat >> confdefs.h <<EOF | |
11583 | #define $ac_tr_func 1 | |
11584 | EOF | |
11585 | ||
11586 | else | |
11587 | echo "$ac_t""no" 1>&6 | |
270a909e VZ |
11588 | fi |
11589 | done | |
11590 | ||
1e487827 | 11591 | |
698dcdb6 VZ |
11592 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
11593 | for ac_func in fcntl flock | |
4f3c5f06 | 11594 | do |
698dcdb6 | 11595 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
19af3b06 | 11596 | echo "configure:11597: checking for $ac_func" >&5 |
698dcdb6 VZ |
11597 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11598 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11599 | else | |
11600 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 11601 | #line 11602 "configure" |
4f3c5f06 VZ |
11602 | #include "confdefs.h" |
11603 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11604 | which can conflict with char $ac_func(); below. */ |
4f3c5f06 VZ |
11605 | #include <assert.h> |
11606 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11607 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11608 | builtin and then its argument prototype would still apply. */ |
11609 | char $ac_func(); | |
11610 | ||
11611 | int main() { | |
4f3c5f06 VZ |
11612 | |
11613 | /* The GNU C library defines this for functions which it implements | |
11614 | to always fail with ENOSYS. Some functions are actually named | |
11615 | something starting with __ and the normal name is an alias. */ | |
11616 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11617 | choke me | |
11618 | #else | |
698dcdb6 | 11619 | $ac_func(); |
4f3c5f06 VZ |
11620 | #endif |
11621 | ||
698dcdb6 VZ |
11622 | ; return 0; } |
11623 | EOF | |
19af3b06 | 11624 | if { (eval echo configure:11625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11625 | rm -rf conftest* |
11626 | eval "ac_cv_func_$ac_func=yes" | |
11627 | else | |
11628 | echo "configure: failed program was:" >&5 | |
11629 | cat conftest.$ac_ext >&5 | |
11630 | rm -rf conftest* | |
11631 | eval "ac_cv_func_$ac_func=no" | |
11632 | fi | |
11633 | rm -f conftest* | |
11634 | fi | |
11635 | ||
11636 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11637 | echo "$ac_t""yes" 1>&6 | |
11638 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11639 | cat >> confdefs.h <<EOF | |
11640 | #define $ac_tr_func 1 | |
4f3c5f06 VZ |
11641 | EOF |
11642 | break | |
698dcdb6 VZ |
11643 | else |
11644 | echo "$ac_t""no" 1>&6 | |
4f3c5f06 VZ |
11645 | fi |
11646 | done | |
11647 | ||
698dcdb6 | 11648 | |
4f3c5f06 | 11649 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
698dcdb6 | 11650 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 |
4f3c5f06 VZ |
11651 | wxUSE_SNGLINST_CHECKER=no |
11652 | fi | |
11653 | fi | |
11654 | ||
270a909e VZ |
11655 | for ac_func in timegm |
11656 | do | |
698dcdb6 | 11657 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
19af3b06 | 11658 | echo "configure:11659: checking for $ac_func" >&5 |
698dcdb6 VZ |
11659 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11660 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11661 | else | |
11662 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 11663 | #line 11664 "configure" |
270a909e VZ |
11664 | #include "confdefs.h" |
11665 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11666 | which can conflict with char $ac_func(); below. */ |
270a909e VZ |
11667 | #include <assert.h> |
11668 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11669 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11670 | builtin and then its argument prototype would still apply. */ |
11671 | char $ac_func(); | |
11672 | ||
11673 | int main() { | |
270a909e VZ |
11674 | |
11675 | /* The GNU C library defines this for functions which it implements | |
11676 | to always fail with ENOSYS. Some functions are actually named | |
11677 | something starting with __ and the normal name is an alias. */ | |
11678 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11679 | choke me | |
11680 | #else | |
698dcdb6 | 11681 | $ac_func(); |
270a909e VZ |
11682 | #endif |
11683 | ||
698dcdb6 | 11684 | ; return 0; } |
270a909e | 11685 | EOF |
19af3b06 | 11686 | if { (eval echo configure:11687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11687 | rm -rf conftest* |
11688 | eval "ac_cv_func_$ac_func=yes" | |
11689 | else | |
11690 | echo "configure: failed program was:" >&5 | |
11691 | cat conftest.$ac_ext >&5 | |
11692 | rm -rf conftest* | |
11693 | eval "ac_cv_func_$ac_func=no" | |
11694 | fi | |
11695 | rm -f conftest* | |
11696 | fi | |
10f2d63a | 11697 | |
698dcdb6 VZ |
11698 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
11699 | echo "$ac_t""yes" 1>&6 | |
11700 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11701 | cat >> confdefs.h <<EOF | |
11702 | #define $ac_tr_func 1 | |
11703 | EOF | |
11704 | ||
11705 | else | |
11706 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
11707 | fi |
11708 | done | |
11709 | ||
698dcdb6 | 11710 | |
8fd0d89b VZ |
11711 | for ac_func in putenv setenv |
11712 | do | |
698dcdb6 | 11713 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
19af3b06 | 11714 | echo "configure:11715: checking for $ac_func" >&5 |
698dcdb6 VZ |
11715 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11716 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11717 | else | |
11718 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 11719 | #line 11720 "configure" |
8fd0d89b VZ |
11720 | #include "confdefs.h" |
11721 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11722 | which can conflict with char $ac_func(); below. */ |
8fd0d89b VZ |
11723 | #include <assert.h> |
11724 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11725 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11726 | builtin and then its argument prototype would still apply. */ |
11727 | char $ac_func(); | |
11728 | ||
11729 | int main() { | |
8fd0d89b VZ |
11730 | |
11731 | /* The GNU C library defines this for functions which it implements | |
11732 | to always fail with ENOSYS. Some functions are actually named | |
11733 | something starting with __ and the normal name is an alias. */ | |
11734 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11735 | choke me | |
11736 | #else | |
698dcdb6 | 11737 | $ac_func(); |
8fd0d89b VZ |
11738 | #endif |
11739 | ||
698dcdb6 VZ |
11740 | ; return 0; } |
11741 | EOF | |
19af3b06 | 11742 | if { (eval echo configure:11743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11743 | rm -rf conftest* |
11744 | eval "ac_cv_func_$ac_func=yes" | |
11745 | else | |
11746 | echo "configure: failed program was:" >&5 | |
11747 | cat conftest.$ac_ext >&5 | |
11748 | rm -rf conftest* | |
11749 | eval "ac_cv_func_$ac_func=no" | |
11750 | fi | |
11751 | rm -f conftest* | |
11752 | fi | |
11753 | ||
11754 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11755 | echo "$ac_t""yes" 1>&6 | |
11756 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11757 | cat >> confdefs.h <<EOF | |
11758 | #define $ac_tr_func 1 | |
8fd0d89b VZ |
11759 | EOF |
11760 | break | |
698dcdb6 VZ |
11761 | else |
11762 | echo "$ac_t""no" 1>&6 | |
8fd0d89b VZ |
11763 | fi |
11764 | done | |
11765 | ||
698dcdb6 | 11766 | |
b12915c1 VZ |
11767 | HAVE_SOME_SLEEP_FUNC=0 |
11768 | if test "$USE_BEOS" = 1; then | |
698dcdb6 | 11769 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
11770 | #define HAVE_SLEEP 1 |
11771 | EOF | |
11772 | ||
11773 | HAVE_SOME_SLEEP_FUNC=1 | |
11774 | fi | |
11775 | ||
b4085ce6 | 11776 | if test "$USE_MAC" = 1; then |
698dcdb6 | 11777 | cat >> confdefs.h <<\EOF |
b4085ce6 GD |
11778 | #define HAVE_USLEEP 1 |
11779 | EOF | |
11780 | ||
11781 | HAVE_SOME_SLEEP_FUNC=1 | |
11782 | fi | |
11783 | ||
b12915c1 VZ |
11784 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
11785 | POSIX4_LINK= | |
698dcdb6 | 11786 | for ac_func in nanosleep |
10f2d63a | 11787 | do |
698dcdb6 | 11788 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
19af3b06 | 11789 | echo "configure:11790: checking for $ac_func" >&5 |
698dcdb6 VZ |
11790 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11791 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11792 | else | |
11793 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 11794 | #line 11795 "configure" |
10f2d63a VZ |
11795 | #include "confdefs.h" |
11796 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11797 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
11798 | #include <assert.h> |
11799 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11800 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11801 | builtin and then its argument prototype would still apply. */ |
11802 | char $ac_func(); | |
11803 | ||
11804 | int main() { | |
10f2d63a VZ |
11805 | |
11806 | /* The GNU C library defines this for functions which it implements | |
11807 | to always fail with ENOSYS. Some functions are actually named | |
11808 | something starting with __ and the normal name is an alias. */ | |
11809 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11810 | choke me | |
11811 | #else | |
698dcdb6 | 11812 | $ac_func(); |
10f2d63a VZ |
11813 | #endif |
11814 | ||
698dcdb6 VZ |
11815 | ; return 0; } |
11816 | EOF | |
19af3b06 | 11817 | if { (eval echo configure:11818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11818 | rm -rf conftest* |
11819 | eval "ac_cv_func_$ac_func=yes" | |
11820 | else | |
11821 | echo "configure: failed program was:" >&5 | |
11822 | cat conftest.$ac_ext >&5 | |
11823 | rm -rf conftest* | |
11824 | eval "ac_cv_func_$ac_func=no" | |
11825 | fi | |
11826 | rm -f conftest* | |
11827 | fi | |
11828 | ||
11829 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11830 | echo "$ac_t""yes" 1>&6 | |
11831 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11832 | cat >> confdefs.h <<EOF | |
11833 | #define $ac_tr_func 1 | |
11834 | EOF | |
11835 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11836 | #define HAVE_NANOSLEEP 1 |
11837 | EOF | |
11838 | ||
11839 | else | |
698dcdb6 VZ |
11840 | echo "$ac_t""no" 1>&6 |
11841 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
19af3b06 | 11842 | echo "configure:11843: checking for nanosleep in -lposix4" >&5 |
698dcdb6 VZ |
11843 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
11844 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11845 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 11846 | else |
698dcdb6 | 11847 | ac_save_LIBS="$LIBS" |
10f2d63a | 11848 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 11849 | cat > conftest.$ac_ext <<EOF |
19af3b06 | 11850 | #line 11851 "configure" |
10f2d63a VZ |
11851 | #include "confdefs.h" |
11852 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11853 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11854 | builtin and then its argument prototype would still apply. */ |
11855 | char nanosleep(); | |
11856 | ||
11857 | int main() { | |
11858 | nanosleep() | |
11859 | ; return 0; } | |
11860 | EOF | |
19af3b06 | 11861 | if { (eval echo configure:11862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11862 | rm -rf conftest* |
11863 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11864 | else | |
11865 | echo "configure: failed program was:" >&5 | |
11866 | cat conftest.$ac_ext >&5 | |
11867 | rm -rf conftest* | |
11868 | eval "ac_cv_lib_$ac_lib_var=no" | |
11869 | fi | |
11870 | rm -f conftest* | |
11871 | LIBS="$ac_save_LIBS" | |
11872 | ||
11873 | fi | |
11874 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11875 | echo "$ac_t""yes" 1>&6 | |
11876 | ||
11877 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
11878 | #define HAVE_NANOSLEEP 1 |
11879 | EOF | |
11880 | ||
b12915c1 | 11881 | POSIX4_LINK="-lposix4" |
698dcdb6 | 11882 | |
10f2d63a | 11883 | else |
698dcdb6 | 11884 | echo "$ac_t""no" 1>&6 |
10f2d63a | 11885 | |
698dcdb6 | 11886 | for ac_func in usleep |
10f2d63a | 11887 | do |
698dcdb6 | 11888 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
19af3b06 | 11889 | echo "configure:11890: checking for $ac_func" >&5 |
698dcdb6 VZ |
11890 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11891 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11892 | else | |
11893 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 11894 | #line 11895 "configure" |
10f2d63a VZ |
11895 | #include "confdefs.h" |
11896 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11897 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
11898 | #include <assert.h> |
11899 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11900 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11901 | builtin and then its argument prototype would still apply. */ |
11902 | char $ac_func(); | |
11903 | ||
11904 | int main() { | |
10f2d63a VZ |
11905 | |
11906 | /* The GNU C library defines this for functions which it implements | |
11907 | to always fail with ENOSYS. Some functions are actually named | |
11908 | something starting with __ and the normal name is an alias. */ | |
11909 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11910 | choke me | |
11911 | #else | |
698dcdb6 | 11912 | $ac_func(); |
10f2d63a VZ |
11913 | #endif |
11914 | ||
698dcdb6 VZ |
11915 | ; return 0; } |
11916 | EOF | |
19af3b06 | 11917 | if { (eval echo configure:11918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11918 | rm -rf conftest* |
11919 | eval "ac_cv_func_$ac_func=yes" | |
11920 | else | |
11921 | echo "configure: failed program was:" >&5 | |
11922 | cat conftest.$ac_ext >&5 | |
11923 | rm -rf conftest* | |
11924 | eval "ac_cv_func_$ac_func=no" | |
11925 | fi | |
11926 | rm -f conftest* | |
11927 | fi | |
11928 | ||
11929 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
11930 | echo "$ac_t""yes" 1>&6 | |
11931 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11932 | cat >> confdefs.h <<EOF | |
11933 | #define $ac_tr_func 1 | |
11934 | EOF | |
11935 | cat >> confdefs.h <<\EOF | |
b4085ce6 GD |
11936 | #define HAVE_USLEEP 1 |
11937 | EOF | |
11938 | ||
10f2d63a | 11939 | else |
698dcdb6 VZ |
11940 | echo "$ac_t""no" 1>&6 |
11941 | echo "configure: warning: wxSleep() function will not work" 1>&2 | |
11942 | ||
10f2d63a VZ |
11943 | fi |
11944 | done | |
11945 | ||
698dcdb6 VZ |
11946 | |
11947 | ||
10f2d63a VZ |
11948 | fi |
11949 | ||
698dcdb6 VZ |
11950 | |
11951 | ||
10f2d63a VZ |
11952 | fi |
11953 | done | |
11954 | ||
b12915c1 | 11955 | fi |
10f2d63a VZ |
11956 | |
11957 | for ac_func in uname gethostname | |
11958 | do | |
698dcdb6 | 11959 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
19af3b06 | 11960 | echo "configure:11961: checking for $ac_func" >&5 |
698dcdb6 VZ |
11961 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11962 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11963 | else | |
11964 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 11965 | #line 11966 "configure" |
10f2d63a VZ |
11966 | #include "confdefs.h" |
11967 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 11968 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
11969 | #include <assert.h> |
11970 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11971 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
11972 | builtin and then its argument prototype would still apply. */ |
11973 | char $ac_func(); | |
11974 | ||
11975 | int main() { | |
10f2d63a VZ |
11976 | |
11977 | /* The GNU C library defines this for functions which it implements | |
11978 | to always fail with ENOSYS. Some functions are actually named | |
11979 | something starting with __ and the normal name is an alias. */ | |
11980 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11981 | choke me | |
11982 | #else | |
698dcdb6 | 11983 | $ac_func(); |
10f2d63a VZ |
11984 | #endif |
11985 | ||
698dcdb6 VZ |
11986 | ; return 0; } |
11987 | EOF | |
19af3b06 | 11988 | if { (eval echo configure:11989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
11989 | rm -rf conftest* |
11990 | eval "ac_cv_func_$ac_func=yes" | |
11991 | else | |
11992 | echo "configure: failed program was:" >&5 | |
11993 | cat conftest.$ac_ext >&5 | |
11994 | rm -rf conftest* | |
11995 | eval "ac_cv_func_$ac_func=no" | |
11996 | fi | |
11997 | rm -f conftest* | |
11998 | fi | |
11999 | ||
12000 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12001 | echo "$ac_t""yes" 1>&6 | |
12002 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12003 | cat >> confdefs.h <<EOF | |
12004 | #define $ac_tr_func 1 | |
10f2d63a VZ |
12005 | EOF |
12006 | break | |
698dcdb6 VZ |
12007 | else |
12008 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12009 | fi |
12010 | done | |
12011 | ||
698dcdb6 VZ |
12012 | |
12013 | ||
12014 | ac_ext=C | |
12015 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6098c7f9 | 12016 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
12017 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12018 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12019 | cross_compiling=$ac_cv_prog_cxx_cross | |
12020 | ||
6098c7f9 | 12021 | |
10f2d63a VZ |
12022 | for ac_func in strtok_r |
12023 | do | |
698dcdb6 | 12024 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
19af3b06 | 12025 | echo "configure:12026: checking for $ac_func" >&5 |
698dcdb6 VZ |
12026 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12027 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12028 | else | |
12029 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 12030 | #line 12031 "configure" |
10f2d63a VZ |
12031 | #include "confdefs.h" |
12032 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12033 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
12034 | #include <assert.h> |
12035 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6098c7f9 VZ |
12036 | #ifdef __cplusplus |
12037 | extern "C" | |
12038 | #endif | |
10f2d63a | 12039 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 VZ |
12040 | builtin and then its argument prototype would still apply. */ |
12041 | char $ac_func(); | |
12042 | ||
12043 | int main() { | |
10f2d63a VZ |
12044 | |
12045 | /* The GNU C library defines this for functions which it implements | |
12046 | to always fail with ENOSYS. Some functions are actually named | |
12047 | something starting with __ and the normal name is an alias. */ | |
12048 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12049 | choke me | |
12050 | #else | |
698dcdb6 | 12051 | $ac_func(); |
10f2d63a VZ |
12052 | #endif |
12053 | ||
698dcdb6 | 12054 | ; return 0; } |
10f2d63a | 12055 | EOF |
19af3b06 | 12056 | if { (eval echo configure:12057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12057 | rm -rf conftest* |
12058 | eval "ac_cv_func_$ac_func=yes" | |
12059 | else | |
12060 | echo "configure: failed program was:" >&5 | |
12061 | cat conftest.$ac_ext >&5 | |
12062 | rm -rf conftest* | |
12063 | eval "ac_cv_func_$ac_func=no" | |
12064 | fi | |
12065 | rm -f conftest* | |
12066 | fi | |
10f2d63a | 12067 | |
698dcdb6 VZ |
12068 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
12069 | echo "$ac_t""yes" 1>&6 | |
12070 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12071 | cat >> confdefs.h <<EOF | |
12072 | #define $ac_tr_func 1 | |
12073 | EOF | |
12074 | ||
12075 | else | |
12076 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12077 | fi |
12078 | done | |
12079 | ||
698dcdb6 | 12080 | |
6098c7f9 | 12081 | ac_ext=c |
698dcdb6 | 12082 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
6098c7f9 | 12083 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
12084 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
12085 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
12086 | cross_compiling=$ac_cv_prog_cc_cross | |
6232543b | 12087 | |
1e487827 | 12088 | |
698dcdb6 | 12089 | INET_LINK= |
10f2d63a VZ |
12090 | for ac_func in inet_addr |
12091 | do | |
698dcdb6 | 12092 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
19af3b06 | 12093 | echo "configure:12094: checking for $ac_func" >&5 |
698dcdb6 VZ |
12094 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12095 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12096 | else | |
12097 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 12098 | #line 12099 "configure" |
10f2d63a VZ |
12099 | #include "confdefs.h" |
12100 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 VZ |
12101 | which can conflict with char $ac_func(); below. */ |
12102 | #include <assert.h> | |
12103 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10f2d63a | 12104 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 VZ |
12105 | builtin and then its argument prototype would still apply. */ |
12106 | char $ac_func(); | |
12107 | ||
12108 | int main() { | |
10f2d63a VZ |
12109 | |
12110 | /* The GNU C library defines this for functions which it implements | |
12111 | to always fail with ENOSYS. Some functions are actually named | |
1e487827 VS |
12112 | something starting with __ and the normal name is an alias. */ |
12113 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12114 | choke me | |
12115 | #else | |
698dcdb6 | 12116 | $ac_func(); |
1e487827 | 12117 | #endif |
703e0a69 | 12118 | |
698dcdb6 VZ |
12119 | ; return 0; } |
12120 | EOF | |
19af3b06 | 12121 | if { (eval echo configure:12122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12122 | rm -rf conftest* |
12123 | eval "ac_cv_func_$ac_func=yes" | |
12124 | else | |
12125 | echo "configure: failed program was:" >&5 | |
12126 | cat conftest.$ac_ext >&5 | |
12127 | rm -rf conftest* | |
12128 | eval "ac_cv_func_$ac_func=no" | |
12129 | fi | |
12130 | rm -f conftest* | |
12131 | fi | |
12132 | ||
12133 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12134 | echo "$ac_t""yes" 1>&6 | |
12135 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12136 | cat >> confdefs.h <<EOF | |
12137 | #define $ac_tr_func 1 | |
12138 | EOF | |
12139 | cat >> confdefs.h <<\EOF | |
c63c7106 VZ |
12140 | #define HAVE_INET_ADDR 1 |
12141 | EOF | |
12142 | ||
10f2d63a | 12143 | else |
698dcdb6 VZ |
12144 | echo "$ac_t""no" 1>&6 |
12145 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 | |
19af3b06 | 12146 | echo "configure:12147: checking for inet_addr in -lnsl" >&5 |
698dcdb6 VZ |
12147 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
12148 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12149 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 12150 | else |
698dcdb6 | 12151 | ac_save_LIBS="$LIBS" |
c63c7106 | 12152 | LIBS="-lnsl $LIBS" |
698dcdb6 | 12153 | cat > conftest.$ac_ext <<EOF |
19af3b06 | 12154 | #line 12155 "configure" |
c63c7106 VZ |
12155 | #include "confdefs.h" |
12156 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12157 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12158 | builtin and then its argument prototype would still apply. */ |
12159 | char inet_addr(); | |
12160 | ||
12161 | int main() { | |
12162 | inet_addr() | |
12163 | ; return 0; } | |
12164 | EOF | |
19af3b06 | 12165 | if { (eval echo configure:12166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12166 | rm -rf conftest* |
12167 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12168 | else | |
12169 | echo "configure: failed program was:" >&5 | |
12170 | cat conftest.$ac_ext >&5 | |
12171 | rm -rf conftest* | |
12172 | eval "ac_cv_lib_$ac_lib_var=no" | |
12173 | fi | |
12174 | rm -f conftest* | |
12175 | LIBS="$ac_save_LIBS" | |
12176 | ||
12177 | fi | |
12178 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12179 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
12180 | INET_LINK="nsl" |
12181 | else | |
698dcdb6 VZ |
12182 | echo "$ac_t""no" 1>&6 |
12183 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 | |
19af3b06 | 12184 | echo "configure:12185: checking for inet_addr in -lresolv" >&5 |
698dcdb6 VZ |
12185 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
12186 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12187 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 12188 | else |
698dcdb6 | 12189 | ac_save_LIBS="$LIBS" |
c63c7106 | 12190 | LIBS="-lresolv $LIBS" |
698dcdb6 | 12191 | cat > conftest.$ac_ext <<EOF |
19af3b06 | 12192 | #line 12193 "configure" |
c63c7106 VZ |
12193 | #include "confdefs.h" |
12194 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12195 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12196 | builtin and then its argument prototype would still apply. */ |
12197 | char inet_addr(); | |
12198 | ||
12199 | int main() { | |
12200 | inet_addr() | |
12201 | ; return 0; } | |
12202 | EOF | |
19af3b06 | 12203 | if { (eval echo configure:12204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12204 | rm -rf conftest* |
12205 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12206 | else | |
12207 | echo "configure: failed program was:" >&5 | |
12208 | cat conftest.$ac_ext >&5 | |
12209 | rm -rf conftest* | |
12210 | eval "ac_cv_lib_$ac_lib_var=no" | |
12211 | fi | |
12212 | rm -f conftest* | |
12213 | LIBS="$ac_save_LIBS" | |
c63c7106 | 12214 | |
6232543b | 12215 | fi |
698dcdb6 VZ |
12216 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
12217 | echo "$ac_t""yes" 1>&6 | |
12218 | INET_LINK="resolv" | |
12219 | ||
12220 | else | |
12221 | echo "$ac_t""no" 1>&6 | |
12222 | fi | |
c63c7106 | 12223 | |
698dcdb6 | 12224 | |
1e487827 | 12225 | fi |
703e0a69 | 12226 | |
698dcdb6 VZ |
12227 | |
12228 | ||
10f2d63a VZ |
12229 | fi |
12230 | done | |
12231 | ||
698dcdb6 | 12232 | |
10f2d63a VZ |
12233 | for ac_func in inet_aton |
12234 | do | |
698dcdb6 | 12235 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
19af3b06 | 12236 | echo "configure:12237: checking for $ac_func" >&5 |
698dcdb6 VZ |
12237 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12238 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12239 | else | |
12240 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 12241 | #line 12242 "configure" |
10f2d63a VZ |
12242 | #include "confdefs.h" |
12243 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12244 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
12245 | #include <assert.h> |
12246 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12247 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12248 | builtin and then its argument prototype would still apply. */ |
12249 | char $ac_func(); | |
12250 | ||
12251 | int main() { | |
10f2d63a VZ |
12252 | |
12253 | /* The GNU C library defines this for functions which it implements | |
12254 | to always fail with ENOSYS. Some functions are actually named | |
12255 | something starting with __ and the normal name is an alias. */ | |
12256 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12257 | choke me | |
12258 | #else | |
698dcdb6 | 12259 | $ac_func(); |
10f2d63a VZ |
12260 | #endif |
12261 | ||
698dcdb6 VZ |
12262 | ; return 0; } |
12263 | EOF | |
19af3b06 | 12264 | if { (eval echo configure:12265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12265 | rm -rf conftest* |
12266 | eval "ac_cv_func_$ac_func=yes" | |
12267 | else | |
12268 | echo "configure: failed program was:" >&5 | |
12269 | cat conftest.$ac_ext >&5 | |
12270 | rm -rf conftest* | |
12271 | eval "ac_cv_func_$ac_func=no" | |
12272 | fi | |
12273 | rm -f conftest* | |
12274 | fi | |
12275 | ||
12276 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
12277 | echo "$ac_t""yes" 1>&6 | |
12278 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12279 | cat >> confdefs.h <<EOF | |
12280 | #define $ac_tr_func 1 | |
12281 | EOF | |
12282 | cat >> confdefs.h <<\EOF | |
c63c7106 VZ |
12283 | #define HAVE_INET_ATON 1 |
12284 | EOF | |
12285 | ||
10f2d63a | 12286 | else |
698dcdb6 VZ |
12287 | echo "$ac_t""no" 1>&6 |
12288 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 | |
19af3b06 | 12289 | echo "configure:12290: checking for inet_aton in -l$INET_LINK" >&5 |
698dcdb6 VZ |
12290 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
12291 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12292 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12293 | else |
698dcdb6 | 12294 | ac_save_LIBS="$LIBS" |
c63c7106 | 12295 | LIBS="-l$INET_LINK $LIBS" |
698dcdb6 | 12296 | cat > conftest.$ac_ext <<EOF |
19af3b06 | 12297 | #line 12298 "configure" |
10f2d63a VZ |
12298 | #include "confdefs.h" |
12299 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12300 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12301 | builtin and then its argument prototype would still apply. */ |
12302 | char inet_aton(); | |
12303 | ||
12304 | int main() { | |
12305 | inet_aton() | |
12306 | ; return 0; } | |
12307 | EOF | |
19af3b06 | 12308 | if { (eval echo configure:12309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12309 | rm -rf conftest* |
12310 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12311 | else | |
12312 | echo "configure: failed program was:" >&5 | |
12313 | cat conftest.$ac_ext >&5 | |
12314 | rm -rf conftest* | |
12315 | eval "ac_cv_lib_$ac_lib_var=no" | |
12316 | fi | |
12317 | rm -f conftest* | |
12318 | LIBS="$ac_save_LIBS" | |
12319 | ||
12320 | fi | |
12321 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12322 | echo "$ac_t""yes" 1>&6 | |
12323 | cat >> confdefs.h <<\EOF | |
c63c7106 | 12324 | #define HAVE_INET_ATON 1 |
10f2d63a VZ |
12325 | EOF |
12326 | ||
698dcdb6 VZ |
12327 | else |
12328 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12329 | fi |
12330 | ||
698dcdb6 | 12331 | |
c63c7106 VZ |
12332 | fi |
12333 | done | |
12334 | ||
698dcdb6 | 12335 | |
c63c7106 | 12336 | if test "x$INET_LINK" != "x"; then |
698dcdb6 | 12337 | cat >> confdefs.h <<\EOF |
c63c7106 VZ |
12338 | #define HAVE_INET_ADDR 1 |
12339 | EOF | |
12340 | ||
12341 | INET_LINK="-l$INET_LINK" | |
12342 | fi | |
10f2d63a VZ |
12343 | |
12344 | fi | |
12345 | ||
698dcdb6 VZ |
12346 | |
12347 | cat > confcache <<\EOF | |
10f2d63a VZ |
12348 | # This file is a shell script that caches the results of configure |
12349 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
12350 | # scripts and configure runs. It is not useful on other systems. |
12351 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 12352 | # |
698dcdb6 VZ |
12353 | # By default, configure uses ./config.cache as the cache file, |
12354 | # creating it if it does not exist already. You can give configure | |
12355 | # the --cache-file=FILE option to use a different cache file; that is | |
12356 | # what configure does when it calls configure scripts in | |
12357 | # subdirectories, so they share the cache. | |
12358 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
12359 | # config.status only pays attention to the cache file if you give it the | |
12360 | # --recheck option to rerun configure. | |
10f2d63a | 12361 | # |
698dcdb6 | 12362 | EOF |
10f2d63a VZ |
12363 | # The following way of writing the cache mishandles newlines in values, |
12364 | # but we know of no workaround that is simple, portable, and efficient. | |
12365 | # So, don't put newlines in cache variables' values. | |
12366 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
12367 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
12368 | (set) 2>&1 | |
12369 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
12370 | *ac_space=\ *) | |
12371 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
12372 | # turns \\\\ into \\, and sed turns \\ into \). | |
12373 | sed -n \ | |
12374 | -e "s/'/'\\\\''/g" \ | |
12375 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
12376 | ;; | |
12377 | *) | |
12378 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
12379 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
12380 | ;; | |
12381 | esac >> confcache | |
12382 | if cmp -s $cache_file confcache; then | |
12383 | : | |
12384 | else | |
10f2d63a | 12385 | if test -w $cache_file; then |
698dcdb6 VZ |
12386 | echo "updating cache $cache_file" |
12387 | cat confcache > $cache_file | |
10f2d63a VZ |
12388 | else |
12389 | echo "not updating unwritable cache $cache_file" | |
12390 | fi | |
12391 | fi | |
12392 | rm -f confcache | |
12393 | ||
698dcdb6 VZ |
12394 | |
12395 | ||
b089607b | 12396 | if test "$TOOLKIT" != "MSW"; then |
10f2d63a | 12397 | |
698dcdb6 | 12398 | |
10f2d63a VZ |
12399 | THREADS_LINK="" |
12400 | THREADS_OBJ="" | |
12401 | ||
12402 | if test "$wxUSE_THREADS" = "yes" ; then | |
12403 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 12404 | echo "configure: warning: Threads are not supported under WINE" 1>&2 |
10f2d63a | 12405 | wxUSE_THREADS="no" |
b12915c1 | 12406 | elif test "$USE_BEOS" = 1; then |
698dcdb6 | 12407 | echo "configure: warning: BeOS threads are not yet supported" 1>&2 |
b12915c1 | 12408 | wxUSE_THREADS="no" |
10f2d63a VZ |
12409 | fi |
12410 | fi | |
12411 | ||
12412 | if test "$wxUSE_THREADS" = "yes" ; then | |
698dcdb6 | 12413 | |
186837b0 | 12414 | if test "$USE_AIX" = 1; then |
f6bcfd97 BP |
12415 | THREADS_LIB=pthreads |
12416 | else | |
12417 | THREADS_LIB=pthread | |
12418 | fi | |
12419 | ||
698dcdb6 | 12420 | echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6 |
19af3b06 | 12421 | echo "configure:12422: checking for pthread_create in -l$THREADS_LIB" >&5 |
698dcdb6 VZ |
12422 | ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'` |
12423 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12424 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12425 | else |
698dcdb6 | 12426 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 12427 | LIBS="-l$THREADS_LIB $LIBS" |
698dcdb6 | 12428 | cat > conftest.$ac_ext <<EOF |
19af3b06 | 12429 | #line 12430 "configure" |
10f2d63a VZ |
12430 | #include "confdefs.h" |
12431 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12432 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12433 | builtin and then its argument prototype would still apply. */ |
12434 | char pthread_create(); | |
12435 | ||
12436 | int main() { | |
12437 | pthread_create() | |
12438 | ; return 0; } | |
12439 | EOF | |
19af3b06 | 12440 | if { (eval echo configure:12441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12441 | rm -rf conftest* |
12442 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12443 | else | |
12444 | echo "configure: failed program was:" >&5 | |
12445 | cat conftest.$ac_ext >&5 | |
12446 | rm -rf conftest* | |
12447 | eval "ac_cv_lib_$ac_lib_var=no" | |
12448 | fi | |
12449 | rm -f conftest* | |
12450 | LIBS="$ac_save_LIBS" | |
10f2d63a | 12451 | |
698dcdb6 VZ |
12452 | fi |
12453 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12454 | echo "$ac_t""yes" 1>&6 | |
12455 | ||
10f2d63a | 12456 | THREADS_OBJ="threadpsx.lo" |
f6bcfd97 | 12457 | THREADS_LINK=$THREADS_LIB |
698dcdb6 | 12458 | |
10f2d63a | 12459 | else |
698dcdb6 | 12460 | echo "$ac_t""no" 1>&6 |
10f2d63a | 12461 | |
698dcdb6 | 12462 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 |
19af3b06 | 12463 | echo "configure:12464: checking for pthread_create in -lc_r" >&5 |
698dcdb6 VZ |
12464 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
12465 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12466 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12467 | else |
698dcdb6 | 12468 | ac_save_LIBS="$LIBS" |
10f2d63a | 12469 | LIBS="-lc_r $LIBS" |
698dcdb6 | 12470 | cat > conftest.$ac_ext <<EOF |
19af3b06 | 12471 | #line 12472 "configure" |
10f2d63a VZ |
12472 | #include "confdefs.h" |
12473 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12474 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12475 | builtin and then its argument prototype would still apply. */ |
12476 | char pthread_create(); | |
12477 | ||
12478 | int main() { | |
12479 | pthread_create() | |
12480 | ; return 0; } | |
12481 | EOF | |
19af3b06 | 12482 | if { (eval echo configure:12483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12483 | rm -rf conftest* |
12484 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12485 | else | |
12486 | echo "configure: failed program was:" >&5 | |
12487 | cat conftest.$ac_ext >&5 | |
12488 | rm -rf conftest* | |
12489 | eval "ac_cv_lib_$ac_lib_var=no" | |
12490 | fi | |
12491 | rm -f conftest* | |
12492 | LIBS="$ac_save_LIBS" | |
10f2d63a | 12493 | |
698dcdb6 VZ |
12494 | fi |
12495 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12496 | echo "$ac_t""yes" 1>&6 | |
12497 | ||
10f2d63a VZ |
12498 | THREADS_OBJ="threadpsx.lo" |
12499 | THREADS_LINK="c_r" | |
698dcdb6 | 12500 | |
10f2d63a | 12501 | else |
698dcdb6 | 12502 | echo "$ac_t""no" 1>&6 |
10f2d63a | 12503 | |
698dcdb6 VZ |
12504 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` |
12505 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 | |
19af3b06 | 12506 | echo "configure:12507: checking for sys/prctl.h" >&5 |
698dcdb6 VZ |
12507 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12508 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12509 | else |
698dcdb6 | 12510 | cat > conftest.$ac_ext <<EOF |
19af3b06 | 12511 | #line 12512 "configure" |
10f2d63a VZ |
12512 | #include "confdefs.h" |
12513 | #include <sys/prctl.h> | |
698dcdb6 VZ |
12514 | EOF |
12515 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
19af3b06 | 12516 | { (eval echo configure:12517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12517 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12518 | if test -z "$ac_err"; then | |
12519 | rm -rf conftest* | |
12520 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 12521 | else |
698dcdb6 VZ |
12522 | echo "$ac_err" >&5 |
12523 | echo "configure: failed program was:" >&5 | |
10f2d63a | 12524 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12525 | rm -rf conftest* |
12526 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 12527 | fi |
698dcdb6 | 12528 | rm -f conftest* |
10f2d63a | 12529 | fi |
698dcdb6 VZ |
12530 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12531 | echo "$ac_t""yes" 1>&6 | |
12532 | ||
1f8ae82f | 12533 | THREADS_OBJ="threadsgi.lo" |
698dcdb6 VZ |
12534 | |
12535 | else | |
12536 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12537 | fi |
12538 | ||
698dcdb6 | 12539 | |
6232543b | 12540 | fi |
10f2d63a | 12541 | |
698dcdb6 | 12542 | |
1e487827 | 12543 | fi |
703e0a69 | 12544 | |
698dcdb6 | 12545 | |
10f2d63a VZ |
12546 | if test -z "$THREADS_OBJ" ; then |
12547 | wxUSE_THREADS=no | |
698dcdb6 | 12548 | echo "configure: warning: No thread support on this system" 1>&2 |
10f2d63a VZ |
12549 | fi |
12550 | fi | |
12551 | ||
12552 | if test "$wxUSE_THREADS" = "yes" ; then | |
698dcdb6 | 12553 | for ac_func in thr_setconcurrency |
70846f0a | 12554 | do |
698dcdb6 | 12555 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
19af3b06 | 12556 | echo "configure:12557: checking for $ac_func" >&5 |
698dcdb6 VZ |
12557 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
12558 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12559 | else | |
12560 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 12561 | #line 12562 "configure" |
70846f0a VZ |
12562 | #include "confdefs.h" |
12563 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 12564 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
12565 | #include <assert.h> |
12566 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12567 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12568 | builtin and then its argument prototype would still apply. */ |
12569 | char $ac_func(); | |
12570 | ||
12571 | int main() { | |
70846f0a VZ |
12572 | |
12573 | /* The GNU C library defines this for functions which it implements | |
12574 | to always fail with ENOSYS. Some functions are actually named | |
12575 | something starting with __ and the normal name is an alias. */ | |
12576 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12577 | choke me | |
12578 | #else | |
698dcdb6 | 12579 | $ac_func(); |
70846f0a VZ |
12580 | #endif |
12581 | ||
698dcdb6 | 12582 | ; return 0; } |
70846f0a | 12583 | EOF |
19af3b06 | 12584 | if { (eval echo configure:12585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12585 | rm -rf conftest* |
12586 | eval "ac_cv_func_$ac_func=yes" | |
12587 | else | |
12588 | echo "configure: failed program was:" >&5 | |
12589 | cat conftest.$ac_ext >&5 | |
12590 | rm -rf conftest* | |
12591 | eval "ac_cv_func_$ac_func=no" | |
12592 | fi | |
12593 | rm -f conftest* | |
12594 | fi | |
70846f0a | 12595 | |
698dcdb6 VZ |
12596 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
12597 | echo "$ac_t""yes" 1>&6 | |
12598 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
12599 | cat >> confdefs.h <<EOF | |
12600 | #define $ac_tr_func 1 | |
12601 | EOF | |
12602 | ||
12603 | else | |
12604 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
12605 | fi |
12606 | done | |
12607 | ||
698dcdb6 VZ |
12608 | |
12609 | ||
12610 | for ac_hdr in sched.h | |
10f2d63a | 12611 | do |
698dcdb6 VZ |
12612 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12613 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
19af3b06 | 12614 | echo "configure:12615: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
12615 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12616 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12617 | else | |
12618 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 12619 | #line 12620 "configure" |
10f2d63a | 12620 | #include "confdefs.h" |
698dcdb6 VZ |
12621 | #include <$ac_hdr> |
12622 | EOF | |
12623 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
19af3b06 | 12624 | { (eval echo configure:12625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
12625 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12626 | if test -z "$ac_err"; then | |
12627 | rm -rf conftest* | |
12628 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 12629 | else |
698dcdb6 VZ |
12630 | echo "$ac_err" >&5 |
12631 | echo "configure: failed program was:" >&5 | |
10f2d63a | 12632 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
12633 | rm -rf conftest* |
12634 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 12635 | fi |
698dcdb6 | 12636 | rm -f conftest* |
10f2d63a | 12637 | fi |
698dcdb6 VZ |
12638 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12639 | echo "$ac_t""yes" 1>&6 | |
12640 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12641 | cat >> confdefs.h <<EOF | |
12642 | #define $ac_tr_hdr 1 | |
10f2d63a | 12643 | EOF |
698dcdb6 VZ |
12644 | |
12645 | else | |
12646 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12647 | fi |
12648 | done | |
12649 | ||
698dcdb6 VZ |
12650 | |
12651 | echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6 | |
19af3b06 | 12652 | echo "configure:12653: checking for sched_yield in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
12653 | ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'` |
12654 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12655 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12656 | else |
698dcdb6 | 12657 | ac_save_LIBS="$LIBS" |
10f2d63a | 12658 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 12659 | cat > conftest.$ac_ext <<EOF |
19af3b06 | 12660 | #line 12661 "configure" |
10f2d63a VZ |
12661 | #include "confdefs.h" |
12662 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12663 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12664 | builtin and then its argument prototype would still apply. */ |
12665 | char sched_yield(); | |
12666 | ||
12667 | int main() { | |
12668 | sched_yield() | |
12669 | ; return 0; } | |
12670 | EOF | |
19af3b06 | 12671 | if { (eval echo configure:12672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12672 | rm -rf conftest* |
12673 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12674 | else | |
12675 | echo "configure: failed program was:" >&5 | |
12676 | cat conftest.$ac_ext >&5 | |
12677 | rm -rf conftest* | |
12678 | eval "ac_cv_lib_$ac_lib_var=no" | |
12679 | fi | |
12680 | rm -f conftest* | |
12681 | LIBS="$ac_save_LIBS" | |
12682 | ||
12683 | fi | |
12684 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12685 | echo "$ac_t""yes" 1>&6 | |
12686 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12687 | #define HAVE_SCHED_YIELD 1 |
12688 | EOF | |
12689 | ||
12690 | else | |
698dcdb6 VZ |
12691 | echo "$ac_t""no" 1>&6 |
12692 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 | |
19af3b06 | 12693 | echo "configure:12694: checking for sched_yield in -lposix4" >&5 |
698dcdb6 VZ |
12694 | ac_lib_var=`echo posix4'_'sched_yield | 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 | |
10f2d63a | 12697 | else |
698dcdb6 | 12698 | ac_save_LIBS="$LIBS" |
1e487827 | 12699 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 12700 | cat > conftest.$ac_ext <<EOF |
19af3b06 | 12701 | #line 12702 "configure" |
10f2d63a 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 | |
698dcdb6 VZ |
12705 | builtin and then its argument prototype would still apply. */ |
12706 | char sched_yield(); | |
12707 | ||
12708 | int main() { | |
12709 | sched_yield() | |
12710 | ; return 0; } | |
12711 | EOF | |
19af3b06 | 12712 | if { (eval echo configure:12713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 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 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12728 | #define HAVE_SCHED_YIELD 1 |
12729 | EOF | |
12730 | POSIX4_LINK="-lposix4" | |
12731 | else | |
698dcdb6 VZ |
12732 | echo "$ac_t""no" 1>&6 |
12733 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
12734 | ||
6232543b | 12735 | fi |
10f2d63a | 12736 | |
698dcdb6 | 12737 | |
1e487827 | 12738 | fi |
703e0a69 | 12739 | |
698dcdb6 | 12740 | |
f6bcfd97 | 12741 | HAVE_PRIOR_FUNCS=0 |
698dcdb6 | 12742 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6 |
19af3b06 | 12743 | echo "configure:12744: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
12744 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
12745 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12746 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12747 | else |
698dcdb6 | 12748 | ac_save_LIBS="$LIBS" |
10f2d63a | 12749 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 12750 | cat > conftest.$ac_ext <<EOF |
19af3b06 | 12751 | #line 12752 "configure" |
10f2d63a VZ |
12752 | #include "confdefs.h" |
12753 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12754 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12755 | builtin and then its argument prototype would still apply. */ |
12756 | char pthread_attr_getschedpolicy(); | |
12757 | ||
12758 | int main() { | |
12759 | pthread_attr_getschedpolicy() | |
12760 | ; return 0; } | |
12761 | EOF | |
19af3b06 | 12762 | if { (eval echo configure:12763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12763 | rm -rf conftest* |
12764 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12765 | else | |
12766 | echo "configure: failed program was:" >&5 | |
12767 | cat conftest.$ac_ext >&5 | |
12768 | rm -rf conftest* | |
12769 | eval "ac_cv_lib_$ac_lib_var=no" | |
12770 | fi | |
12771 | rm -f conftest* | |
12772 | LIBS="$ac_save_LIBS" | |
12773 | ||
12774 | fi | |
12775 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12776 | echo "$ac_t""yes" 1>&6 | |
12777 | echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6 | |
19af3b06 | 12778 | echo "configure:12779: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
12779 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'` |
12780 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12781 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12782 | else | |
12783 | ac_save_LIBS="$LIBS" | |
f6bcfd97 | 12784 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 12785 | cat > conftest.$ac_ext <<EOF |
19af3b06 | 12786 | #line 12787 "configure" |
f6bcfd97 BP |
12787 | #include "confdefs.h" |
12788 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12789 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12790 | builtin and then its argument prototype would still apply. */ |
12791 | char pthread_attr_setschedparam(); | |
12792 | ||
12793 | int main() { | |
12794 | pthread_attr_setschedparam() | |
12795 | ; return 0; } | |
12796 | EOF | |
19af3b06 | 12797 | if { (eval echo configure:12798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12798 | rm -rf conftest* |
12799 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12800 | else | |
12801 | echo "configure: failed program was:" >&5 | |
12802 | cat conftest.$ac_ext >&5 | |
12803 | rm -rf conftest* | |
12804 | eval "ac_cv_lib_$ac_lib_var=no" | |
12805 | fi | |
12806 | rm -f conftest* | |
12807 | LIBS="$ac_save_LIBS" | |
12808 | ||
12809 | fi | |
12810 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12811 | echo "$ac_t""yes" 1>&6 | |
12812 | echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6 | |
19af3b06 | 12813 | echo "configure:12814: checking for sched_get_priority_max in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
12814 | ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
12815 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12816 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12817 | else | |
12818 | ac_save_LIBS="$LIBS" | |
f6bcfd97 | 12819 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 12820 | cat > conftest.$ac_ext <<EOF |
19af3b06 | 12821 | #line 12822 "configure" |
f6bcfd97 BP |
12822 | #include "confdefs.h" |
12823 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12824 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12825 | builtin and then its argument prototype would still apply. */ |
12826 | char sched_get_priority_max(); | |
12827 | ||
12828 | int main() { | |
12829 | sched_get_priority_max() | |
12830 | ; return 0; } | |
12831 | EOF | |
19af3b06 | 12832 | if { (eval echo configure:12833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12833 | rm -rf conftest* |
12834 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12835 | else | |
12836 | echo "configure: failed program was:" >&5 | |
12837 | cat conftest.$ac_ext >&5 | |
12838 | rm -rf conftest* | |
12839 | eval "ac_cv_lib_$ac_lib_var=no" | |
12840 | fi | |
12841 | rm -f conftest* | |
12842 | LIBS="$ac_save_LIBS" | |
12843 | ||
12844 | fi | |
12845 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12846 | echo "$ac_t""yes" 1>&6 | |
f6bcfd97 | 12847 | HAVE_PRIOR_FUNCS=1 |
10f2d63a | 12848 | else |
698dcdb6 VZ |
12849 | echo "$ac_t""no" 1>&6 |
12850 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
19af3b06 | 12851 | echo "configure:12852: checking for sched_get_priority_max in -lposix4" >&5 |
698dcdb6 VZ |
12852 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
12853 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12854 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 12855 | else |
698dcdb6 | 12856 | ac_save_LIBS="$LIBS" |
1e487827 | 12857 | LIBS="-lposix4 $LIBS" |
698dcdb6 | 12858 | cat > conftest.$ac_ext <<EOF |
19af3b06 | 12859 | #line 12860 "configure" |
10f2d63a | 12860 | #include "confdefs.h" |
6232543b | 12861 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 12862 | /* We use char because int might match the return type of a gcc2 |
698dcdb6 VZ |
12863 | builtin and then its argument prototype would still apply. */ |
12864 | char sched_get_priority_max(); | |
12865 | ||
12866 | int main() { | |
12867 | sched_get_priority_max() | |
12868 | ; return 0; } | |
12869 | EOF | |
19af3b06 | 12870 | if { (eval echo configure:12871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12871 | rm -rf conftest* |
12872 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12873 | else | |
12874 | echo "configure: failed program was:" >&5 | |
12875 | cat conftest.$ac_ext >&5 | |
12876 | rm -rf conftest* | |
12877 | eval "ac_cv_lib_$ac_lib_var=no" | |
12878 | fi | |
12879 | rm -f conftest* | |
12880 | LIBS="$ac_save_LIBS" | |
10f2d63a | 12881 | |
698dcdb6 VZ |
12882 | fi |
12883 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12884 | echo "$ac_t""yes" 1>&6 | |
12885 | ||
f6bcfd97 BP |
12886 | HAVE_PRIOR_FUNCS=1 |
12887 | POSIX4_LINK="-lposix4" | |
698dcdb6 VZ |
12888 | |
12889 | else | |
12890 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
12891 | fi |
12892 | ||
698dcdb6 | 12893 | |
10f2d63a VZ |
12894 | fi |
12895 | ||
698dcdb6 VZ |
12896 | |
12897 | else | |
12898 | echo "$ac_t""no" 1>&6 | |
6232543b | 12899 | fi |
10f2d63a | 12900 | |
698dcdb6 VZ |
12901 | |
12902 | else | |
12903 | echo "$ac_t""no" 1>&6 | |
1e487827 | 12904 | fi |
703e0a69 | 12905 | |
698dcdb6 | 12906 | |
f6bcfd97 | 12907 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
698dcdb6 | 12908 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
12909 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
12910 | EOF | |
12911 | ||
12912 | else | |
698dcdb6 | 12913 | echo "configure: warning: Setting thread priority will not work" 1>&2 |
f6bcfd97 BP |
12914 | fi |
12915 | ||
698dcdb6 | 12916 | echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6 |
19af3b06 | 12917 | echo "configure:12918: checking for pthread_cancel in -l$THREADS_LINK" >&5 |
698dcdb6 VZ |
12918 | ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'` |
12919 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12920 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 12921 | else |
698dcdb6 | 12922 | ac_save_LIBS="$LIBS" |
10f2d63a | 12923 | LIBS="-l$THREADS_LINK $LIBS" |
698dcdb6 | 12924 | cat > conftest.$ac_ext <<EOF |
19af3b06 | 12925 | #line 12926 "configure" |
10f2d63a VZ |
12926 | #include "confdefs.h" |
12927 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12928 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
12929 | builtin and then its argument prototype would still apply. */ |
12930 | char pthread_cancel(); | |
12931 | ||
12932 | int main() { | |
12933 | pthread_cancel() | |
12934 | ; return 0; } | |
12935 | EOF | |
19af3b06 | 12936 | if { (eval echo configure:12937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
12937 | rm -rf conftest* |
12938 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12939 | else | |
12940 | echo "configure: failed program was:" >&5 | |
12941 | cat conftest.$ac_ext >&5 | |
12942 | rm -rf conftest* | |
12943 | eval "ac_cv_lib_$ac_lib_var=no" | |
12944 | fi | |
12945 | rm -f conftest* | |
12946 | LIBS="$ac_save_LIBS" | |
12947 | ||
12948 | fi | |
12949 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12950 | echo "$ac_t""yes" 1>&6 | |
12951 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
12952 | #define HAVE_PTHREAD_CANCEL 1 |
12953 | EOF | |
12954 | ||
12955 | else | |
698dcdb6 VZ |
12956 | echo "$ac_t""no" 1>&6 |
12957 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
10f2d63a VZ |
12958 | fi |
12959 | ||
1e487827 | 12960 | |
698dcdb6 | 12961 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
19af3b06 | 12962 | echo "configure:12963: checking for pthread_cleanup_push/pop" >&5 |
698dcdb6 VZ |
12963 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
12964 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12965 | else | |
12966 | ||
12967 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 12968 | #line 12969 "configure" |
10f2d63a VZ |
12969 | #include "confdefs.h" |
12970 | #include <pthread.h> | |
698dcdb6 | 12971 | int main() { |
10f2d63a VZ |
12972 | |
12973 | pthread_cleanup_push(NULL, NULL); | |
12974 | pthread_cleanup_pop(0); | |
698dcdb6 VZ |
12975 | |
12976 | ; return 0; } | |
12977 | EOF | |
19af3b06 | 12978 | if { (eval echo configure:12979: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
12979 | rm -rf conftest* |
12980 | ||
10f2d63a | 12981 | wx_cv_func_pthread_cleanup_push=yes |
698dcdb6 | 12982 | |
10f2d63a | 12983 | else |
698dcdb6 VZ |
12984 | echo "configure: failed program was:" >&5 |
12985 | cat conftest.$ac_ext >&5 | |
12986 | rm -rf conftest* | |
12987 | ||
10f2d63a | 12988 | wx_cv_func_pthread_cleanup_push=no |
698dcdb6 | 12989 | |
6232543b | 12990 | fi |
698dcdb6 VZ |
12991 | rm -f conftest* |
12992 | ||
1e487827 | 12993 | fi |
698dcdb6 VZ |
12994 | |
12995 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
10f2d63a | 12996 | |
d9b9876f | 12997 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
698dcdb6 | 12998 | cat >> confdefs.h <<\EOF |
d9b9876f VZ |
12999 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
13000 | EOF | |
13001 | ||
13002 | fi | |
13003 | ||
698dcdb6 VZ |
13004 | |
13005 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 | |
19af3b06 | 13006 | echo "configure:13007: checking for pthread_mutexattr_t" >&5 |
698dcdb6 VZ |
13007 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
13008 | echo $ac_n "(cached) $ac_c" 1>&6 | |
d9b9876f | 13009 | else |
698dcdb6 VZ |
13010 | |
13011 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 13012 | #line 13013 "configure" |
d9b9876f VZ |
13013 | #include "confdefs.h" |
13014 | #include <pthread.h> | |
698dcdb6 | 13015 | int main() { |
d9b9876f VZ |
13016 | |
13017 | pthread_mutexattr_t attr; | |
13018 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
698dcdb6 VZ |
13019 | |
13020 | ; return 0; } | |
13021 | EOF | |
19af3b06 | 13022 | if { (eval echo configure:13023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
13023 | rm -rf conftest* |
13024 | ||
d9b9876f | 13025 | wx_cv_type_pthread_mutexattr_t=yes |
698dcdb6 | 13026 | |
d9b9876f | 13027 | else |
698dcdb6 VZ |
13028 | echo "configure: failed program was:" >&5 |
13029 | cat conftest.$ac_ext >&5 | |
13030 | rm -rf conftest* | |
13031 | ||
d9b9876f | 13032 | wx_cv_type_pthread_mutexattr_t=no |
698dcdb6 VZ |
13033 | |
13034 | ||
6232543b | 13035 | fi |
698dcdb6 VZ |
13036 | rm -f conftest* |
13037 | ||
1e487827 | 13038 | fi |
698dcdb6 VZ |
13039 | |
13040 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
d9b9876f VZ |
13041 | |
13042 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
698dcdb6 | 13043 | cat >> confdefs.h <<\EOF |
d9b9876f VZ |
13044 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
13045 | EOF | |
13046 | ||
13047 | else | |
698dcdb6 | 13048 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 |
19af3b06 | 13049 | echo "configure:13050: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
698dcdb6 VZ |
13050 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
13051 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13052 | else | |
13053 | ||
13054 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 13055 | #line 13056 "configure" |
d9b9876f VZ |
13056 | #include "confdefs.h" |
13057 | #include <pthread.h> | |
698dcdb6 | 13058 | int main() { |
d9b9876f VZ |
13059 | |
13060 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
698dcdb6 VZ |
13061 | |
13062 | ; return 0; } | |
13063 | EOF | |
19af3b06 | 13064 | if { (eval echo configure:13065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
13065 | rm -rf conftest* |
13066 | ||
d9b9876f | 13067 | wx_cv_type_pthread_rec_mutex_init=yes |
698dcdb6 | 13068 | |
d9b9876f | 13069 | else |
698dcdb6 VZ |
13070 | echo "configure: failed program was:" >&5 |
13071 | cat conftest.$ac_ext >&5 | |
13072 | rm -rf conftest* | |
13073 | ||
d9b9876f | 13074 | wx_cv_type_pthread_rec_mutex_init=no |
698dcdb6 VZ |
13075 | |
13076 | ||
6232543b | 13077 | fi |
698dcdb6 VZ |
13078 | rm -f conftest* |
13079 | ||
1e487827 | 13080 | fi |
698dcdb6 VZ |
13081 | |
13082 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 | |
3765e936 | 13083 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
698dcdb6 | 13084 | cat >> confdefs.h <<\EOF |
d9b9876f VZ |
13085 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
13086 | EOF | |
13087 | ||
13088 | else | |
698dcdb6 | 13089 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 |
d9b9876f VZ |
13090 | fi |
13091 | fi | |
13092 | ||
10f2d63a | 13093 | THREADS_LINK="-l$THREADS_LINK" |
186837b0 VZ |
13094 | |
13095 | if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then | |
13096 | CFLAGS="${CFLAGS} -mt" | |
13097 | CXXFLAGS="${CXXFLAGS} -mt" | |
13098 | LDFLAGS="${LDFLAGS} -mt" | |
13099 | fi | |
10f2d63a VZ |
13100 | fi |
13101 | ||
13102 | fi | |
13103 | ||
13104 | if test "$wxUSE_THREADS" = "yes"; then | |
698dcdb6 | 13105 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
13106 | #define wxUSE_THREADS 1 |
13107 | EOF | |
13108 | ||
698dcdb6 | 13109 | |
2c6025bc | 13110 | if test "$wxUSE_MAC" = "0"; then |
10f2d63a | 13111 | CFLAGS="${CFLAGS} -D_REENTRANT" |
2c6025bc GD |
13112 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" |
13113 | fi | |
10f2d63a VZ |
13114 | |
13115 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
13116 | else | |
13117 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
698dcdb6 | 13118 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 |
19af3b06 | 13119 | echo "configure:13120: checking if -D_REENTRANT is needed" >&5 |
ab9b9eab VZ |
13120 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
13121 | CFLAGS="${CFLAGS} -D_REENTRANT" | |
13122 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" | |
698dcdb6 | 13123 | echo "$ac_t""yes" 1>&6 |
ab9b9eab | 13124 | else |
698dcdb6 | 13125 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
13126 | fi |
13127 | fi | |
13128 | fi | |
13129 | ||
6f72b082 | 13130 | if test "$WXGTK20" = 1 ; then |
698dcdb6 | 13131 | cat >> confdefs.h <<EOF |
6f72b082 | 13132 | #define __WXGTK20__ $WXGTK20 |
13111b2a VZ |
13133 | EOF |
13134 | ||
13135 | WXGTK12=1 | |
13136 | fi | |
13137 | ||
10f2d63a | 13138 | if test "$WXGTK12" = 1 ; then |
698dcdb6 | 13139 | cat >> confdefs.h <<EOF |
10f2d63a VZ |
13140 | #define __WXGTK12__ $WXGTK12 |
13141 | EOF | |
13142 | ||
13143 | fi | |
13144 | ||
f6bcfd97 | 13145 | if test "$WXGTK127" = 1 ; then |
698dcdb6 | 13146 | cat >> confdefs.h <<EOF |
f6bcfd97 BP |
13147 | #define __WXGTK127__ $WXGTK127 |
13148 | EOF | |
13149 | ||
13150 | fi | |
13151 | ||
10f2d63a VZ |
13152 | if test "$WXWINE" = 1 ; then |
13153 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__" | |
13154 | fi | |
13155 | ||
b4085ce6 | 13156 | if test "$wxUSE_MAC" = 1 ; then |
2c6025bc | 13157 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__POWERPC__ -DTARGET_CARBON" |
ea5999b9 GD |
13158 | CFLAGS="${CFLAGS} -fno-common -fpascal-strings" |
13159 | CPPFLAGS="${CPPFLAGS} -fno-common -fpascal-strings" | |
2f51a9ec GD |
13160 | # Extract the first word of "Rez", so it can be a program name with args. |
13161 | set dummy Rez; ac_word=$2 | |
698dcdb6 | 13162 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
19af3b06 | 13163 | echo "configure:13164: checking for $ac_word" >&5 |
698dcdb6 VZ |
13164 | if eval "test \"`echo '$''{'ac_cv_prog_REZ'+set}'`\" = set"; then |
13165 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2f51a9ec GD |
13166 | else |
13167 | if test -n "$REZ"; then | |
13168 | ac_cv_prog_REZ="$REZ" # Let the user override the test. | |
13169 | else | |
698dcdb6 VZ |
13170 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
13171 | ac_dummy="$PATH" | |
13172 | for ac_dir in $ac_dummy; do | |
13173 | test -z "$ac_dir" && ac_dir=. | |
13174 | if test -f $ac_dir/$ac_word; then | |
13175 | ac_cv_prog_REZ="Rez" | |
13176 | break | |
13177 | fi | |
13178 | done | |
13179 | IFS="$ac_save_ifs" | |
2f51a9ec GD |
13180 | test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez" |
13181 | fi | |
13182 | fi | |
698dcdb6 | 13183 | REZ="$ac_cv_prog_REZ" |
2f51a9ec | 13184 | if test -n "$REZ"; then |
698dcdb6 | 13185 | echo "$ac_t""$REZ" 1>&6 |
2f51a9ec | 13186 | else |
698dcdb6 | 13187 | echo "$ac_t""no" 1>&6 |
2f51a9ec GD |
13188 | fi |
13189 | ||
13190 | # Extract the first word of "Derez", so it can be a program name with args. | |
13191 | set dummy Derez; ac_word=$2 | |
698dcdb6 | 13192 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
19af3b06 | 13193 | echo "configure:13194: checking for $ac_word" >&5 |
698dcdb6 VZ |
13194 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
13195 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2f51a9ec GD |
13196 | else |
13197 | if test -n "$DEREZ"; then | |
13198 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
13199 | else | |
698dcdb6 VZ |
13200 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
13201 | ac_dummy="$PATH" | |
13202 | for ac_dir in $ac_dummy; do | |
13203 | test -z "$ac_dir" && ac_dir=. | |
13204 | if test -f $ac_dir/$ac_word; then | |
13205 | ac_cv_prog_DEREZ="Derez" | |
13206 | break | |
13207 | fi | |
13208 | done | |
13209 | IFS="$ac_save_ifs" | |
2f51a9ec GD |
13210 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez" |
13211 | fi | |
13212 | fi | |
698dcdb6 | 13213 | DEREZ="$ac_cv_prog_DEREZ" |
2f51a9ec | 13214 | if test -n "$DEREZ"; then |
698dcdb6 | 13215 | echo "$ac_t""$DEREZ" 1>&6 |
2f51a9ec | 13216 | else |
698dcdb6 | 13217 | echo "$ac_t""no" 1>&6 |
2f51a9ec GD |
13218 | fi |
13219 | ||
13220 | RESCOMP=${REZ} | |
13221 | REZFLAGS="-d __UNIX__ -useDF" | |
13222 | DEREZFLAGS="Carbon.r -useDF" | |
13223 | RESFLAGS="Carbon.r -t APPL" | |
13224 | LIBWXMACRES="\$(LIBWX_MACRES)" | |
13225 | LIBWXMACRESCOMP="\$(LIBWX_MACRESCOMP)" | |
b4085ce6 GD |
13226 | fi |
13227 | ||
10f2d63a VZ |
13228 | if test "$wxUSE_CYGWIN" = 1 ; then |
13229 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__" | |
13230 | fi | |
13231 | ||
13232 | WXDEBUG= | |
13233 | ||
13234 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
13235 | WXDEBUG="-g" | |
13236 | wxUSE_OPTIMISE=no | |
13237 | fi | |
13238 | ||
13239 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
13240 | wxUSE_DEBUG_INFO=yes | |
13241 | WXDEBUG="-ggdb" | |
13242 | fi | |
13243 | ||
13244 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
698dcdb6 | 13245 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
13246 | #define WXDEBUG 1 |
13247 | EOF | |
13248 | ||
13249 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
13250 | else | |
13251 | if test "$wxUSE_GTK" = 1 ; then | |
13252 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
13253 | fi | |
13254 | fi | |
13255 | ||
13256 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
698dcdb6 | 13257 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
13258 | #define wxUSE_MEMORY_TRACING 1 |
13259 | EOF | |
13260 | ||
698dcdb6 | 13261 | cat >> confdefs.h <<\EOF |
10f2d63a | 13262 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 |
47c13eb7 VS |
13263 | EOF |
13264 | ||
698dcdb6 | 13265 | cat >> confdefs.h <<\EOF |
47c13eb7 | 13266 | #define wxUSE_DEBUG_NEW_ALWAYS 1 |
10f2d63a VZ |
13267 | EOF |
13268 | ||
13269 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
13270 | fi | |
13271 | ||
13272 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
13273 | DMALLOC_LINK="-ldmalloc" | |
13274 | fi | |
13275 | ||
13276 | PROFILE= | |
13277 | if test "$wxUSE_PROFILE" = "yes" ; then | |
13278 | PROFILE="-pg" | |
13279 | fi | |
13280 | ||
13281 | DEP_INFO_FLAGS= | |
caa2c79b | 13282 | CODE_GEN_FLAGS= |
0f3f1cbc | 13283 | CODE_GEN_FLAGS_CXX= |
10f2d63a VZ |
13284 | if test "$GCC" = yes ; then |
13285 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
0f3f1cbc | 13286 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti" |
10f2d63a VZ |
13287 | fi |
13288 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
0f3f1cbc | 13289 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions" |
10f2d63a VZ |
13290 | fi |
13291 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
caa2c79b | 13292 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" |
10f2d63a VZ |
13293 | fi |
13294 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
13295 | DEP_INFO_FLAGS="-MMD" | |
13296 | fi | |
13297 | fi | |
13298 | ||
698dcdb6 | 13299 | |
10f2d63a VZ |
13300 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` |
13301 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
13302 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
13303 | OPTIMISE= | |
13304 | else | |
13305 | if test "$GCC" = yes ; then | |
13306 | OPTIMISE="-O2" | |
13307 | case "${host}" in | |
13308 | i586-*-*|i686-*-* ) | |
13309 | OPTIMISE="${OPTIMISE} " | |
13310 | ;; | |
13311 | esac | |
13312 | else | |
13313 | OPTIMISE="-O" | |
13314 | fi | |
13315 | fi | |
13316 | ||
698dcdb6 | 13317 | |
10f2d63a | 13318 | ZLIB_INCLUDE= |
422107f9 | 13319 | if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then |
698dcdb6 | 13320 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
13321 | #define wxUSE_ZLIB 1 |
13322 | EOF | |
13323 | ||
422107f9 VZ |
13324 | if test "$wxUSE_ZLIB" = "yes" ; then |
13325 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
13326 | else | |
13327 | ZLIB_LINK= | |
698dcdb6 VZ |
13328 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` |
13329 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
19af3b06 | 13330 | echo "configure:13331: checking for zlib.h" >&5 |
698dcdb6 VZ |
13331 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13332 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13333 | else | |
13334 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 13335 | #line 13336 "configure" |
422107f9 VZ |
13336 | #include "confdefs.h" |
13337 | #include <zlib.h> | |
698dcdb6 VZ |
13338 | EOF |
13339 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
19af3b06 | 13340 | { (eval echo configure:13341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13341 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13342 | if test -z "$ac_err"; then | |
13343 | rm -rf conftest* | |
13344 | eval "ac_cv_header_$ac_safe=yes" | |
422107f9 | 13345 | else |
698dcdb6 VZ |
13346 | echo "$ac_err" >&5 |
13347 | echo "configure: failed program was:" >&5 | |
422107f9 | 13348 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13349 | rm -rf conftest* |
13350 | eval "ac_cv_header_$ac_safe=no" | |
422107f9 | 13351 | fi |
698dcdb6 | 13352 | rm -f conftest* |
422107f9 | 13353 | fi |
698dcdb6 VZ |
13354 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13355 | echo "$ac_t""yes" 1>&6 | |
13356 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 | |
19af3b06 | 13357 | echo "configure:13358: checking for deflate in -lz" >&5 |
698dcdb6 VZ |
13358 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
13359 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13360 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 13361 | else |
698dcdb6 | 13362 | ac_save_LIBS="$LIBS" |
422107f9 | 13363 | LIBS="-lz $LIBS" |
698dcdb6 | 13364 | cat > conftest.$ac_ext <<EOF |
19af3b06 | 13365 | #line 13366 "configure" |
422107f9 VZ |
13366 | #include "confdefs.h" |
13367 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13368 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13369 | builtin and then its argument prototype would still apply. */ |
13370 | char deflate(); | |
13371 | ||
13372 | int main() { | |
13373 | deflate() | |
13374 | ; return 0; } | |
13375 | EOF | |
19af3b06 | 13376 | if { (eval echo configure:13377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13377 | rm -rf conftest* |
13378 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13379 | else | |
13380 | echo "configure: failed program was:" >&5 | |
13381 | cat conftest.$ac_ext >&5 | |
13382 | rm -rf conftest* | |
13383 | eval "ac_cv_lib_$ac_lib_var=no" | |
13384 | fi | |
13385 | rm -f conftest* | |
13386 | LIBS="$ac_save_LIBS" | |
13387 | ||
13388 | fi | |
13389 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13390 | echo "$ac_t""yes" 1>&6 | |
422107f9 | 13391 | ZLIB_LINK="-lz" |
698dcdb6 VZ |
13392 | else |
13393 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
13394 | fi |
13395 | ||
698dcdb6 VZ |
13396 | else |
13397 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
13398 | fi |
13399 | ||
13400 | if test "x$ZLIB_LINK" = "x" ; then | |
698dcdb6 | 13401 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; } |
422107f9 VZ |
13402 | fi |
13403 | fi | |
10f2d63a VZ |
13404 | fi |
13405 | ||
13406 | PNG_INCLUDE= | |
422107f9 | 13407 | if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then |
698dcdb6 | 13408 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
13409 | #define wxUSE_LIBPNG 1 |
13410 | EOF | |
13411 | ||
41fd4136 | 13412 | if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
698dcdb6 | 13413 | echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2 |
422107f9 VZ |
13414 | wxUSE_LIBPNG=yes |
13415 | fi | |
13416 | ||
13417 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
13418 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
13419 | else | |
13420 | PNG_LINK= | |
698dcdb6 VZ |
13421 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` |
13422 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
19af3b06 | 13423 | echo "configure:13424: checking for png.h" >&5 |
698dcdb6 VZ |
13424 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13425 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13426 | else | |
13427 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 13428 | #line 13429 "configure" |
422107f9 VZ |
13429 | #include "confdefs.h" |
13430 | #include <png.h> | |
698dcdb6 VZ |
13431 | EOF |
13432 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
19af3b06 | 13433 | { (eval echo configure:13434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13434 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13435 | if test -z "$ac_err"; then | |
13436 | rm -rf conftest* | |
13437 | eval "ac_cv_header_$ac_safe=yes" | |
422107f9 | 13438 | else |
698dcdb6 VZ |
13439 | echo "$ac_err" >&5 |
13440 | echo "configure: failed program was:" >&5 | |
422107f9 | 13441 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13442 | rm -rf conftest* |
13443 | eval "ac_cv_header_$ac_safe=no" | |
422107f9 | 13444 | fi |
698dcdb6 | 13445 | rm -f conftest* |
422107f9 | 13446 | fi |
698dcdb6 VZ |
13447 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13448 | echo "$ac_t""yes" 1>&6 | |
13449 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 | |
19af3b06 | 13450 | echo "configure:13451: checking for png_check_sig in -lpng" >&5 |
698dcdb6 VZ |
13451 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
13452 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13453 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 13454 | else |
698dcdb6 | 13455 | ac_save_LIBS="$LIBS" |
422107f9 | 13456 | LIBS="-lpng -lz -lm $LIBS" |
698dcdb6 | 13457 | cat > conftest.$ac_ext <<EOF |
19af3b06 | 13458 | #line 13459 "configure" |
422107f9 VZ |
13459 | #include "confdefs.h" |
13460 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13461 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13462 | builtin and then its argument prototype would still apply. */ |
13463 | char png_check_sig(); | |
13464 | ||
13465 | int main() { | |
13466 | png_check_sig() | |
13467 | ; return 0; } | |
13468 | EOF | |
19af3b06 | 13469 | if { (eval echo configure:13470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13470 | rm -rf conftest* |
13471 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13472 | else | |
13473 | echo "configure: failed program was:" >&5 | |
13474 | cat conftest.$ac_ext >&5 | |
13475 | rm -rf conftest* | |
13476 | eval "ac_cv_lib_$ac_lib_var=no" | |
13477 | fi | |
13478 | rm -f conftest* | |
13479 | LIBS="$ac_save_LIBS" | |
13480 | ||
13481 | fi | |
13482 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13483 | echo "$ac_t""yes" 1>&6 | |
422107f9 | 13484 | PNG_LINK="-lpng" |
698dcdb6 VZ |
13485 | else |
13486 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
13487 | fi |
13488 | ||
698dcdb6 VZ |
13489 | |
13490 | else | |
13491 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
13492 | fi |
13493 | ||
13494 | if test "x$PNG_LINK" = "x" ; then | |
698dcdb6 | 13495 | { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; } |
422107f9 VZ |
13496 | fi |
13497 | fi | |
13498 | ||
10f2d63a VZ |
13499 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
13500 | fi | |
13501 | ||
13502 | JPEG_INCLUDE= | |
422107f9 | 13503 | if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then |
698dcdb6 | 13504 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
13505 | #define wxUSE_LIBJPEG 1 |
13506 | EOF | |
13507 | ||
422107f9 VZ |
13508 | if test "$wxUSE_LIBJPEG" = "yes" ; then |
13509 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
13510 | else | |
13511 | JPEG_LINK= | |
698dcdb6 VZ |
13512 | ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'` |
13513 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 | |
19af3b06 | 13514 | echo "configure:13515: checking for jpeglib.h" >&5 |
698dcdb6 VZ |
13515 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13516 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13517 | else | |
13518 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 13519 | #line 13520 "configure" |
422107f9 VZ |
13520 | #include "confdefs.h" |
13521 | #include <jpeglib.h> | |
698dcdb6 VZ |
13522 | EOF |
13523 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
19af3b06 | 13524 | { (eval echo configure:13525: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13525 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13526 | if test -z "$ac_err"; then | |
13527 | rm -rf conftest* | |
13528 | eval "ac_cv_header_$ac_safe=yes" | |
6232543b | 13529 | else |
698dcdb6 VZ |
13530 | echo "$ac_err" >&5 |
13531 | echo "configure: failed program was:" >&5 | |
422107f9 | 13532 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13533 | rm -rf conftest* |
13534 | eval "ac_cv_header_$ac_safe=no" | |
422107f9 | 13535 | fi |
698dcdb6 | 13536 | rm -f conftest* |
422107f9 | 13537 | fi |
698dcdb6 VZ |
13538 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13539 | echo "$ac_t""yes" 1>&6 | |
13540 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 | |
19af3b06 | 13541 | echo "configure:13542: checking for jpeg_read_header in -ljpeg" >&5 |
698dcdb6 VZ |
13542 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
13543 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13544 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 13545 | else |
698dcdb6 | 13546 | ac_save_LIBS="$LIBS" |
422107f9 | 13547 | LIBS="-ljpeg $LIBS" |
698dcdb6 | 13548 | cat > conftest.$ac_ext <<EOF |
19af3b06 | 13549 | #line 13550 "configure" |
422107f9 VZ |
13550 | #include "confdefs.h" |
13551 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13552 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13553 | builtin and then its argument prototype would still apply. */ |
13554 | char jpeg_read_header(); | |
13555 | ||
13556 | int main() { | |
13557 | jpeg_read_header() | |
13558 | ; return 0; } | |
13559 | EOF | |
19af3b06 | 13560 | if { (eval echo configure:13561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13561 | rm -rf conftest* |
13562 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13563 | else | |
13564 | echo "configure: failed program was:" >&5 | |
13565 | cat conftest.$ac_ext >&5 | |
13566 | rm -rf conftest* | |
13567 | eval "ac_cv_lib_$ac_lib_var=no" | |
13568 | fi | |
13569 | rm -f conftest* | |
13570 | LIBS="$ac_save_LIBS" | |
13571 | ||
13572 | fi | |
13573 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13574 | echo "$ac_t""yes" 1>&6 | |
422107f9 | 13575 | JPEG_LINK="-ljpeg" |
698dcdb6 VZ |
13576 | else |
13577 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
13578 | fi |
13579 | ||
698dcdb6 VZ |
13580 | else |
13581 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
13582 | fi |
13583 | ||
13584 | if test "x$JPEG_LINK" = "x" ; then | |
698dcdb6 | 13585 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; } |
422107f9 VZ |
13586 | fi |
13587 | fi | |
10f2d63a VZ |
13588 | fi |
13589 | ||
c7a2bf27 | 13590 | TIFF_INCLUDE= |
0dcf9893 | 13591 | if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then |
698dcdb6 | 13592 | cat >> confdefs.h <<\EOF |
c7a2bf27 RR |
13593 | #define wxUSE_LIBTIFF 1 |
13594 | EOF | |
13595 | ||
665bbe97 | 13596 | if test "$wxUSE_LIBTIFF" = "yes" ; then |
0dcf9893 VZ |
13597 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" |
13598 | else | |
13599 | TIFF_LINK= | |
698dcdb6 VZ |
13600 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` |
13601 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
19af3b06 | 13602 | echo "configure:13603: checking for tiffio.h" >&5 |
698dcdb6 VZ |
13603 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13604 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13605 | else | |
13606 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 13607 | #line 13608 "configure" |
0dcf9893 VZ |
13608 | #include "confdefs.h" |
13609 | #include <tiffio.h> | |
698dcdb6 VZ |
13610 | EOF |
13611 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
19af3b06 | 13612 | { (eval echo configure:13613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13613 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13614 | if test -z "$ac_err"; then | |
13615 | rm -rf conftest* | |
13616 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 13617 | else |
698dcdb6 VZ |
13618 | echo "$ac_err" >&5 |
13619 | echo "configure: failed program was:" >&5 | |
0dcf9893 | 13620 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13621 | rm -rf conftest* |
13622 | eval "ac_cv_header_$ac_safe=no" | |
0dcf9893 | 13623 | fi |
698dcdb6 | 13624 | rm -f conftest* |
0dcf9893 | 13625 | fi |
698dcdb6 VZ |
13626 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13627 | echo "$ac_t""yes" 1>&6 | |
13628 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
19af3b06 | 13629 | echo "configure:13630: checking for TIFFError in -ltiff" >&5 |
698dcdb6 VZ |
13630 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
13631 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13632 | echo $ac_n "(cached) $ac_c" 1>&6 | |
0dcf9893 | 13633 | else |
698dcdb6 | 13634 | ac_save_LIBS="$LIBS" |
0dcf9893 | 13635 | LIBS="-ltiff -lm $LIBS" |
698dcdb6 | 13636 | cat > conftest.$ac_ext <<EOF |
19af3b06 | 13637 | #line 13638 "configure" |
0dcf9893 VZ |
13638 | #include "confdefs.h" |
13639 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13640 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13641 | builtin and then its argument prototype would still apply. */ |
13642 | char TIFFError(); | |
13643 | ||
13644 | int main() { | |
13645 | TIFFError() | |
13646 | ; return 0; } | |
13647 | EOF | |
19af3b06 | 13648 | if { (eval echo configure:13649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13649 | rm -rf conftest* |
13650 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13651 | else | |
13652 | echo "configure: failed program was:" >&5 | |
13653 | cat conftest.$ac_ext >&5 | |
13654 | rm -rf conftest* | |
13655 | eval "ac_cv_lib_$ac_lib_var=no" | |
13656 | fi | |
13657 | rm -f conftest* | |
13658 | LIBS="$ac_save_LIBS" | |
13659 | ||
13660 | fi | |
13661 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13662 | echo "$ac_t""yes" 1>&6 | |
0dcf9893 | 13663 | TIFF_LINK="-ltiff" |
698dcdb6 VZ |
13664 | else |
13665 | echo "$ac_t""no" 1>&6 | |
0dcf9893 VZ |
13666 | fi |
13667 | ||
698dcdb6 VZ |
13668 | else |
13669 | echo "$ac_t""no" 1>&6 | |
0dcf9893 VZ |
13670 | fi |
13671 | ||
13672 | if test "x$TIFF_LINK" = "x" ; then | |
698dcdb6 | 13673 | { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; } |
0dcf9893 VZ |
13674 | fi |
13675 | fi | |
c7a2bf27 RR |
13676 | fi |
13677 | ||
3fed1840 RR |
13678 | FREETYPE_INCLUDE= |
13679 | if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then | |
698dcdb6 | 13680 | cat >> confdefs.h <<\EOF |
3fed1840 RR |
13681 | #define wxUSE_FREETYPE 1 |
13682 | EOF | |
13683 | ||
13684 | if test "$wxUSE_FREETYPE" = "yes" ; then | |
13685 | FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype" | |
13686 | else | |
13687 | FREETYPE_LINK= | |
698dcdb6 VZ |
13688 | ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'` |
13689 | echo $ac_n "checking for freetype.h""... $ac_c" 1>&6 | |
19af3b06 | 13690 | echo "configure:13691: checking for freetype.h" >&5 |
698dcdb6 VZ |
13691 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13692 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13693 | else | |
13694 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 13695 | #line 13696 "configure" |
3fed1840 RR |
13696 | #include "confdefs.h" |
13697 | #include <freetype.h> | |
698dcdb6 VZ |
13698 | EOF |
13699 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
19af3b06 | 13700 | { (eval echo configure:13701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13701 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13702 | if test -z "$ac_err"; then | |
13703 | rm -rf conftest* | |
13704 | eval "ac_cv_header_$ac_safe=yes" | |
3fed1840 | 13705 | else |
698dcdb6 VZ |
13706 | echo "$ac_err" >&5 |
13707 | echo "configure: failed program was:" >&5 | |
3fed1840 | 13708 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13709 | rm -rf conftest* |
13710 | eval "ac_cv_header_$ac_safe=no" | |
3fed1840 | 13711 | fi |
698dcdb6 | 13712 | rm -f conftest* |
3fed1840 | 13713 | fi |
698dcdb6 VZ |
13714 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13715 | echo "$ac_t""yes" 1>&6 | |
13716 | echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6 | |
19af3b06 | 13717 | echo "configure:13718: checking for FT_Render_Glyph in -lfreetype" >&5 |
698dcdb6 VZ |
13718 | ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'` |
13719 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13720 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3fed1840 | 13721 | else |
698dcdb6 | 13722 | ac_save_LIBS="$LIBS" |
3fed1840 | 13723 | LIBS="-lfreetype -lm $LIBS" |
698dcdb6 | 13724 | cat > conftest.$ac_ext <<EOF |
19af3b06 | 13725 | #line 13726 "configure" |
3fed1840 RR |
13726 | #include "confdefs.h" |
13727 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13728 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13729 | builtin and then its argument prototype would still apply. */ |
13730 | char FT_Render_Glyph(); | |
13731 | ||
13732 | int main() { | |
13733 | FT_Render_Glyph() | |
13734 | ; return 0; } | |
13735 | EOF | |
19af3b06 | 13736 | if { (eval echo configure:13737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13737 | rm -rf conftest* |
13738 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13739 | else | |
13740 | echo "configure: failed program was:" >&5 | |
13741 | cat conftest.$ac_ext >&5 | |
13742 | rm -rf conftest* | |
13743 | eval "ac_cv_lib_$ac_lib_var=no" | |
13744 | fi | |
13745 | rm -f conftest* | |
13746 | LIBS="$ac_save_LIBS" | |
13747 | ||
13748 | fi | |
13749 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13750 | echo "$ac_t""yes" 1>&6 | |
3fed1840 | 13751 | FREETYPE_LINK="-lfreetype" |
698dcdb6 VZ |
13752 | else |
13753 | echo "$ac_t""no" 1>&6 | |
3fed1840 RR |
13754 | fi |
13755 | ||
698dcdb6 VZ |
13756 | |
13757 | else | |
13758 | echo "$ac_t""no" 1>&6 | |
3fed1840 RR |
13759 | fi |
13760 | ||
13761 | if test "x$FREETYPE_LINK" = "x" ; then | |
698dcdb6 | 13762 | { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; } |
3fed1840 RR |
13763 | fi |
13764 | fi | |
13765 | fi | |
13766 | ||
10f2d63a | 13767 | if test "$wxUSE_OPENGL" = "yes"; then |
698dcdb6 VZ |
13768 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` |
13769 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
19af3b06 | 13770 | echo "configure:13771: checking for GL/gl.h" >&5 |
698dcdb6 VZ |
13771 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13772 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13773 | else | |
13774 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 13775 | #line 13776 "configure" |
10f2d63a VZ |
13776 | #include "confdefs.h" |
13777 | #include <GL/gl.h> | |
698dcdb6 VZ |
13778 | EOF |
13779 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
19af3b06 | 13780 | { (eval echo configure:13781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
13781 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13782 | if test -z "$ac_err"; then | |
13783 | rm -rf conftest* | |
13784 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 13785 | else |
698dcdb6 VZ |
13786 | echo "$ac_err" >&5 |
13787 | echo "configure: failed program was:" >&5 | |
10f2d63a | 13788 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
13789 | rm -rf conftest* |
13790 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 13791 | fi |
698dcdb6 | 13792 | rm -f conftest* |
10f2d63a | 13793 | fi |
698dcdb6 VZ |
13794 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13795 | echo "$ac_t""yes" 1>&6 | |
13796 | ||
13797 | cat >> confdefs.h <<\EOF | |
bdad4e7e RR |
13798 | #define wxUSE_OPENGL 1 |
13799 | EOF | |
13800 | ||
698dcdb6 | 13801 | cat >> confdefs.h <<\EOF |
bdad4e7e RR |
13802 | #define wxUSE_GLCANVAS 1 |
13803 | EOF | |
13804 | ||
698dcdb6 | 13805 | echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6 |
19af3b06 | 13806 | echo "configure:13807: checking for glFlush in -lGL" >&5 |
698dcdb6 VZ |
13807 | ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'` |
13808 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13809 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13810 | else |
698dcdb6 | 13811 | ac_save_LIBS="$LIBS" |
bdad4e7e | 13812 | LIBS="-lGL $LIBS" |
698dcdb6 | 13813 | cat > conftest.$ac_ext <<EOF |
19af3b06 | 13814 | #line 13815 "configure" |
10f2d63a VZ |
13815 | #include "confdefs.h" |
13816 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13817 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13818 | builtin and then its argument prototype would still apply. */ |
13819 | char glFlush(); | |
6232543b | 13820 | |
698dcdb6 VZ |
13821 | int main() { |
13822 | glFlush() | |
13823 | ; return 0; } | |
13824 | EOF | |
19af3b06 | 13825 | if { (eval echo configure:13826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13826 | rm -rf conftest* |
13827 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13828 | else | |
13829 | echo "configure: failed program was:" >&5 | |
13830 | cat conftest.$ac_ext >&5 | |
13831 | rm -rf conftest* | |
13832 | eval "ac_cv_lib_$ac_lib_var=no" | |
13833 | fi | |
13834 | rm -f conftest* | |
13835 | LIBS="$ac_save_LIBS" | |
1e487827 | 13836 | |
698dcdb6 VZ |
13837 | fi |
13838 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13839 | echo "$ac_t""yes" 1>&6 | |
13840 | ||
13841 | OPENGL_LINK="-lGL -lGLU" | |
13842 | ||
10f2d63a | 13843 | else |
698dcdb6 | 13844 | echo "$ac_t""no" 1>&6 |
10f2d63a | 13845 | |
698dcdb6 | 13846 | echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6 |
19af3b06 | 13847 | echo "configure:13848: checking for glFlush in -lMesaGL" >&5 |
698dcdb6 VZ |
13848 | ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'` |
13849 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13850 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 13851 | else |
698dcdb6 | 13852 | ac_save_LIBS="$LIBS" |
10f2d63a | 13853 | LIBS="-lMesaGL $LIBS" |
698dcdb6 | 13854 | cat > conftest.$ac_ext <<EOF |
19af3b06 | 13855 | #line 13856 "configure" |
10f2d63a VZ |
13856 | #include "confdefs.h" |
13857 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13858 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
13859 | builtin and then its argument prototype would still apply. */ |
13860 | char glFlush(); | |
13861 | ||
13862 | int main() { | |
13863 | glFlush() | |
13864 | ; return 0; } | |
13865 | EOF | |
19af3b06 | 13866 | if { (eval echo configure:13867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
13867 | rm -rf conftest* |
13868 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13869 | else | |
13870 | echo "configure: failed program was:" >&5 | |
13871 | cat conftest.$ac_ext >&5 | |
13872 | rm -rf conftest* | |
13873 | eval "ac_cv_lib_$ac_lib_var=no" | |
13874 | fi | |
13875 | rm -f conftest* | |
13876 | LIBS="$ac_save_LIBS" | |
10f2d63a | 13877 | |
698dcdb6 VZ |
13878 | fi |
13879 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13880 | echo "$ac_t""yes" 1>&6 | |
13881 | ||
f6bcfd97 | 13882 | OPENGL_LINK="-lMesaGL -lMesaGLU" |
698dcdb6 VZ |
13883 | |
13884 | else | |
13885 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
13886 | fi |
13887 | ||
698dcdb6 | 13888 | |
10f2d63a VZ |
13889 | fi |
13890 | ||
698dcdb6 | 13891 | |
10f2d63a | 13892 | else |
698dcdb6 VZ |
13893 | echo "$ac_t""no" 1>&6 |
13894 | wxUSE_OPENGL=0 | |
10f2d63a VZ |
13895 | fi |
13896 | ||
13897 | fi | |
13898 | ||
698dcdb6 | 13899 | |
10f2d63a | 13900 | if test "$wxUSE_GUI" = "yes"; then |
698dcdb6 | 13901 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
13902 | #define wxUSE_GUI 1 |
13903 | EOF | |
13904 | ||
698dcdb6 | 13905 | |
10f2d63a | 13906 | else |
698dcdb6 | 13907 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
13908 | #define wxUSE_NOGUI 1 |
13909 | EOF | |
13910 | ||
13911 | fi | |
13912 | ||
698dcdb6 | 13913 | |
10f2d63a | 13914 | if test "$wxUSE_UNIX" = "yes"; then |
698dcdb6 | 13915 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
13916 | #define wxUSE_UNIX 1 |
13917 | EOF | |
13918 | ||
13919 | fi | |
13920 | ||
698dcdb6 | 13921 | |
10f2d63a | 13922 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
698dcdb6 | 13923 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
13924 | #define wxUSE_APPLE_IEEE 1 |
13925 | EOF | |
13926 | ||
13927 | fi | |
13928 | ||
10f2d63a | 13929 | if test "$wxUSE_WAVE" = "yes"; then |
698dcdb6 | 13930 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
13931 | #define wxUSE_WAVE 1 |
13932 | EOF | |
13933 | ||
13934 | fi | |
13935 | ||
13936 | if test "$wxUSE_FILE" = "yes"; then | |
698dcdb6 | 13937 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
13938 | #define wxUSE_FILE 1 |
13939 | EOF | |
13940 | ||
13941 | fi | |
13942 | ||
24528b0c | 13943 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
698dcdb6 | 13944 | cat >> confdefs.h <<\EOF |
24528b0c VS |
13945 | #define wxUSE_FILESYSTEM 1 |
13946 | EOF | |
13947 | ||
13948 | fi | |
13949 | ||
10f2d63a | 13950 | if test "$wxUSE_FS_INET" = "yes"; then |
698dcdb6 | 13951 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
13952 | #define wxUSE_FS_INET 1 |
13953 | EOF | |
13954 | ||
13955 | fi | |
13956 | ||
13957 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
698dcdb6 | 13958 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
13959 | #define wxUSE_FS_ZIP 1 |
13960 | EOF | |
13961 | ||
13962 | fi | |
13963 | ||
13964 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
698dcdb6 | 13965 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
13966 | #define wxUSE_ZIPSTREAM 1 |
13967 | EOF | |
13968 | ||
13969 | fi | |
13970 | ||
eb4efbdc | 13971 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
698dcdb6 | 13972 | cat >> confdefs.h <<\EOF |
eb4efbdc VZ |
13973 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
13974 | EOF | |
13975 | ||
13976 | fi | |
13977 | ||
4f3c5f06 | 13978 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
698dcdb6 | 13979 | cat >> confdefs.h <<\EOF |
4f3c5f06 VZ |
13980 | #define wxUSE_SNGLINST_CHECKER 1 |
13981 | EOF | |
13982 | ||
13983 | fi | |
13984 | ||
10f2d63a | 13985 | if test "$wxUSE_BUSYINFO" = "yes"; then |
698dcdb6 | 13986 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
13987 | #define wxUSE_BUSYINFO 1 |
13988 | EOF | |
13989 | ||
13990 | fi | |
13991 | ||
13992 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
698dcdb6 | 13993 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
13994 | #define wxUSE_STD_IOSTREAM 1 |
13995 | EOF | |
13996 | ||
13997 | fi | |
13998 | ||
13999 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
14000 | if test "$wxUSE_FILE" != "yes"; then | |
698dcdb6 | 14001 | echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2 |
10f2d63a | 14002 | else |
698dcdb6 | 14003 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14004 | #define wxUSE_TEXTFILE 1 |
14005 | EOF | |
14006 | ||
14007 | fi | |
14008 | fi | |
14009 | ||
14010 | if test "$wxUSE_CONFIG" = "yes" ; then | |
14011 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
698dcdb6 | 14012 | echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2 |
10f2d63a | 14013 | else |
698dcdb6 | 14014 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14015 | #define wxUSE_CONFIG 1 |
14016 | EOF | |
14017 | ||
14018 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
14019 | fi | |
14020 | fi | |
14021 | ||
14022 | if test "$wxUSE_INTL" = "yes" ; then | |
14023 | if test "$wxUSE_FILE" != "yes"; then | |
698dcdb6 | 14024 | echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2 |
10f2d63a | 14025 | else |
698dcdb6 | 14026 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14027 | #define wxUSE_INTL 1 |
14028 | EOF | |
14029 | ||
14030 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 14031 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
14032 | fi |
14033 | fi | |
14034 | ||
14035 | if test "$wxUSE_LOG" = "yes"; then | |
698dcdb6 | 14036 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14037 | #define wxUSE_LOG 1 |
14038 | EOF | |
14039 | ||
14040 | fi | |
14041 | ||
14042 | if test "$wxUSE_LONGLONG" = "yes"; then | |
698dcdb6 | 14043 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14044 | #define wxUSE_LONGLONG 1 |
14045 | EOF | |
14046 | ||
14047 | fi | |
14048 | ||
e8f65ba6 | 14049 | if test "$wxUSE_GEOMETRY" = "yes"; then |
698dcdb6 | 14050 | cat >> confdefs.h <<\EOF |
e8f65ba6 RR |
14051 | #define wxUSE_GEOMETRY 1 |
14052 | EOF | |
14053 | ||
14054 | fi | |
14055 | ||
10f2d63a | 14056 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
698dcdb6 | 14057 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14058 | #define wxUSE_DIALUP_MANAGER 1 |
14059 | EOF | |
14060 | ||
70f7a477 | 14061 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
14062 | fi |
14063 | ||
14064 | if test "$wxUSE_STREAMS" = "yes" ; then | |
698dcdb6 | 14065 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14066 | #define wxUSE_STREAMS 1 |
14067 | EOF | |
14068 | ||
14069 | fi | |
14070 | ||
1e487827 | 14071 | |
698dcdb6 VZ |
14072 | if test "$wxUSE_TIMEDATE" = "yes"; then |
14073 | for ac_func in strptime | |
83307f33 | 14074 | do |
698dcdb6 | 14075 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
19af3b06 | 14076 | echo "configure:14077: checking for $ac_func" >&5 |
698dcdb6 VZ |
14077 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14078 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14079 | else | |
14080 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 14081 | #line 14082 "configure" |
83307f33 VZ |
14082 | #include "confdefs.h" |
14083 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 14084 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
14085 | #include <assert.h> |
14086 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14087 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14088 | builtin and then its argument prototype would still apply. */ |
14089 | char $ac_func(); | |
14090 | ||
14091 | int main() { | |
83307f33 VZ |
14092 | |
14093 | /* The GNU C library defines this for functions which it implements | |
14094 | to always fail with ENOSYS. Some functions are actually named | |
14095 | something starting with __ and the normal name is an alias. */ | |
14096 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14097 | choke me | |
14098 | #else | |
698dcdb6 | 14099 | $ac_func(); |
83307f33 VZ |
14100 | #endif |
14101 | ||
698dcdb6 | 14102 | ; return 0; } |
83307f33 | 14103 | EOF |
19af3b06 | 14104 | if { (eval echo configure:14105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14105 | rm -rf conftest* |
14106 | eval "ac_cv_func_$ac_func=yes" | |
14107 | else | |
14108 | echo "configure: failed program was:" >&5 | |
14109 | cat conftest.$ac_ext >&5 | |
14110 | rm -rf conftest* | |
14111 | eval "ac_cv_func_$ac_func=no" | |
14112 | fi | |
14113 | rm -f conftest* | |
14114 | fi | |
83307f33 | 14115 | |
698dcdb6 VZ |
14116 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
14117 | echo "$ac_t""yes" 1>&6 | |
14118 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14119 | cat >> confdefs.h <<EOF | |
14120 | #define $ac_tr_func 1 | |
14121 | EOF | |
14122 | ||
14123 | else | |
14124 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
14125 | fi |
14126 | done | |
14127 | ||
1e487827 | 14128 | |
698dcdb6 | 14129 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
19af3b06 | 14130 | echo "configure:14131: checking for timezone variable in <time.h>" >&5 |
698dcdb6 VZ |
14131 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
14132 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14133 | else | |
14134 | ||
14135 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 14136 | #line 14137 "configure" |
360d6699 VZ |
14137 | #include "confdefs.h" |
14138 | ||
b4085ce6 | 14139 | #include <time.h> |
698dcdb6 VZ |
14140 | |
14141 | int main() { | |
360d6699 VZ |
14142 | |
14143 | int tz; | |
14144 | tz = __timezone; | |
698dcdb6 VZ |
14145 | |
14146 | ; return 0; } | |
14147 | EOF | |
19af3b06 | 14148 | if { (eval echo configure:14149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
14149 | rm -rf conftest* |
14150 | ||
360d6699 | 14151 | wx_cv_var_timezone=__timezone |
698dcdb6 | 14152 | |
360d6699 | 14153 | else |
698dcdb6 VZ |
14154 | echo "configure: failed program was:" >&5 |
14155 | cat conftest.$ac_ext >&5 | |
14156 | rm -rf conftest* | |
14157 | ||
14158 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 14159 | #line 14160 "configure" |
360d6699 VZ |
14160 | #include "confdefs.h" |
14161 | ||
b4085ce6 | 14162 | #include <time.h> |
698dcdb6 VZ |
14163 | |
14164 | int main() { | |
360d6699 VZ |
14165 | |
14166 | int tz; | |
14167 | tz = _timezone; | |
698dcdb6 VZ |
14168 | |
14169 | ; return 0; } | |
14170 | EOF | |
19af3b06 | 14171 | if { (eval echo configure:14172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
14172 | rm -rf conftest* |
14173 | ||
360d6699 | 14174 | wx_cv_var_timezone=_timezone |
698dcdb6 | 14175 | |
5357c8e8 | 14176 | else |
698dcdb6 VZ |
14177 | echo "configure: failed program was:" >&5 |
14178 | cat conftest.$ac_ext >&5 | |
14179 | rm -rf conftest* | |
14180 | ||
14181 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 14182 | #line 14183 "configure" |
5357c8e8 VZ |
14183 | #include "confdefs.h" |
14184 | ||
b4085ce6 | 14185 | #include <time.h> |
698dcdb6 VZ |
14186 | |
14187 | int main() { | |
5357c8e8 VZ |
14188 | |
14189 | int tz; | |
14190 | tz = timezone; | |
698dcdb6 VZ |
14191 | |
14192 | ; return 0; } | |
14193 | EOF | |
19af3b06 | 14194 | if { (eval echo configure:14195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
14195 | rm -rf conftest* |
14196 | ||
5357c8e8 | 14197 | wx_cv_var_timezone=timezone |
698dcdb6 | 14198 | |
360d6699 | 14199 | else |
698dcdb6 VZ |
14200 | echo "configure: failed program was:" >&5 |
14201 | cat conftest.$ac_ext >&5 | |
14202 | rm -rf conftest* | |
14203 | { echo "configure: error: no timezone variable" 1>&2; exit 1; } | |
14204 | ||
360d6699 | 14205 | fi |
698dcdb6 VZ |
14206 | rm -f conftest* |
14207 | ||
14208 | ||
360d6699 | 14209 | fi |
698dcdb6 VZ |
14210 | rm -f conftest* |
14211 | ||
14212 | ||
6232543b | 14213 | fi |
698dcdb6 VZ |
14214 | rm -f conftest* |
14215 | ||
14216 | ||
1e487827 | 14217 | fi |
703e0a69 | 14218 | |
698dcdb6 VZ |
14219 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 |
14220 | ||
14221 | cat >> confdefs.h <<EOF | |
360d6699 VZ |
14222 | #define WX_TIMEZONE $wx_cv_var_timezone |
14223 | EOF | |
14224 | ||
698dcdb6 VZ |
14225 | |
14226 | for ac_func in localtime | |
afc31813 | 14227 | do |
698dcdb6 | 14228 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
19af3b06 | 14229 | echo "configure:14230: checking for $ac_func" >&5 |
698dcdb6 VZ |
14230 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14231 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14232 | else | |
14233 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 14234 | #line 14235 "configure" |
10f2d63a | 14235 | #include "confdefs.h" |
afc31813 | 14236 | /* System header to define __stub macros and hopefully few prototypes, |
698dcdb6 | 14237 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
14238 | #include <assert.h> |
14239 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14240 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14241 | builtin and then its argument prototype would still apply. */ |
14242 | char $ac_func(); | |
14243 | ||
14244 | int main() { | |
afc31813 VZ |
14245 | |
14246 | /* The GNU C library defines this for functions which it implements | |
14247 | to always fail with ENOSYS. Some functions are actually named | |
14248 | something starting with __ and the normal name is an alias. */ | |
14249 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14250 | choke me | |
14251 | #else | |
698dcdb6 | 14252 | $ac_func(); |
afc31813 VZ |
14253 | #endif |
14254 | ||
698dcdb6 | 14255 | ; return 0; } |
10f2d63a | 14256 | EOF |
19af3b06 | 14257 | if { (eval echo configure:14258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14258 | rm -rf conftest* |
14259 | eval "ac_cv_func_$ac_func=yes" | |
14260 | else | |
14261 | echo "configure: failed program was:" >&5 | |
14262 | cat conftest.$ac_ext >&5 | |
14263 | rm -rf conftest* | |
14264 | eval "ac_cv_func_$ac_func=no" | |
14265 | fi | |
14266 | rm -f conftest* | |
14267 | fi | |
afc31813 | 14268 | |
698dcdb6 VZ |
14269 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
14270 | echo "$ac_t""yes" 1>&6 | |
14271 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14272 | cat >> confdefs.h <<EOF | |
14273 | #define $ac_tr_func 1 | |
14274 | EOF | |
14275 | ||
14276 | else | |
14277 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
14278 | fi |
14279 | done | |
14280 | ||
1e487827 | 14281 | |
698dcdb6 VZ |
14282 | if test "$ac_cv_func_localtime" = "yes"; then |
14283 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
19af3b06 | 14284 | echo "configure:14285: checking for tm_gmtoff in struct tm" >&5 |
698dcdb6 VZ |
14285 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
14286 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14287 | else | |
14288 | ||
14289 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 14290 | #line 14291 "configure" |
0470b1e6 VZ |
14291 | #include "confdefs.h" |
14292 | ||
b4085ce6 | 14293 | #include <time.h> |
698dcdb6 VZ |
14294 | |
14295 | int main() { | |
0470b1e6 VZ |
14296 | |
14297 | struct tm tm; | |
14298 | tm.tm_gmtoff++; | |
698dcdb6 VZ |
14299 | |
14300 | ; return 0; } | |
14301 | EOF | |
19af3b06 | 14302 | if { (eval echo configure:14303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 VZ |
14303 | rm -rf conftest* |
14304 | ||
f03a98d8 | 14305 | wx_cv_struct_tm_has_gmtoff=yes |
698dcdb6 | 14306 | |
0470b1e6 | 14307 | else |
698dcdb6 VZ |
14308 | echo "configure: failed program was:" >&5 |
14309 | cat conftest.$ac_ext >&5 | |
14310 | rm -rf conftest* | |
14311 | wx_cv_struct_tm_has_gmtoff=no | |
14312 | ||
0470b1e6 | 14313 | fi |
698dcdb6 VZ |
14314 | rm -f conftest* |
14315 | ||
1e487827 | 14316 | fi |
698dcdb6 VZ |
14317 | |
14318 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
14319 | fi |
14320 | ||
14321 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
698dcdb6 | 14322 | cat >> confdefs.h <<\EOF |
6232543b VS |
14323 | #define WX_GMTOFF_IN_TM 1 |
14324 | EOF | |
0470b1e6 | 14325 | |
3fcdd07b VZ |
14326 | fi |
14327 | ||
698dcdb6 | 14328 | for ac_func in gettimeofday ftime |
3fcdd07b | 14329 | do |
698dcdb6 | 14330 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
19af3b06 | 14331 | echo "configure:14332: checking for $ac_func" >&5 |
698dcdb6 VZ |
14332 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14333 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14334 | else | |
14335 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 14336 | #line 14337 "configure" |
3fcdd07b VZ |
14337 | #include "confdefs.h" |
14338 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 14339 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
14340 | #include <assert.h> |
14341 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14342 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14343 | builtin and then its argument prototype would still apply. */ |
14344 | char $ac_func(); | |
14345 | ||
14346 | int main() { | |
3fcdd07b VZ |
14347 | |
14348 | /* The GNU C library defines this for functions which it implements | |
14349 | to always fail with ENOSYS. Some functions are actually named | |
14350 | something starting with __ and the normal name is an alias. */ | |
14351 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14352 | choke me | |
14353 | #else | |
698dcdb6 | 14354 | $ac_func(); |
3fcdd07b VZ |
14355 | #endif |
14356 | ||
698dcdb6 VZ |
14357 | ; return 0; } |
14358 | EOF | |
19af3b06 | 14359 | if { (eval echo configure:14360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14360 | rm -rf conftest* |
14361 | eval "ac_cv_func_$ac_func=yes" | |
14362 | else | |
14363 | echo "configure: failed program was:" >&5 | |
14364 | cat conftest.$ac_ext >&5 | |
14365 | rm -rf conftest* | |
14366 | eval "ac_cv_func_$ac_func=no" | |
14367 | fi | |
14368 | rm -f conftest* | |
14369 | fi | |
14370 | ||
14371 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14372 | echo "$ac_t""yes" 1>&6 | |
14373 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14374 | cat >> confdefs.h <<EOF | |
14375 | #define $ac_tr_func 1 | |
3fcdd07b VZ |
14376 | EOF |
14377 | break | |
698dcdb6 VZ |
14378 | else |
14379 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
14380 | fi |
14381 | done | |
14382 | ||
afc31813 | 14383 | |
698dcdb6 VZ |
14384 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
14385 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 | |
19af3b06 | 14386 | echo "configure:14387: checking whether gettimeofday takes two arguments" >&5 |
698dcdb6 VZ |
14387 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
14388 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14389 | else | |
14390 | ||
14391 | ||
14392 | ac_ext=C | |
14393 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 14394 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
14395 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
14396 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14397 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 14398 | |
698dcdb6 VZ |
14399 | |
14400 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 14401 | #line 14402 "configure" |
10f2d63a | 14402 | #include "confdefs.h" |
afc31813 VZ |
14403 | |
14404 | #include <sys/time.h> | |
14405 | #include <unistd.h> | |
698dcdb6 VZ |
14406 | |
14407 | int main() { | |
afc31813 VZ |
14408 | |
14409 | struct timeval tv; | |
14410 | struct timezone tz; | |
14411 | gettimeofday(&tv, &tz); | |
698dcdb6 VZ |
14412 | |
14413 | ; return 0; } | |
14414 | EOF | |
19af3b06 | 14415 | if { (eval echo configure:14416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 14416 | rm -rf conftest* |
afc31813 | 14417 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 14418 | else |
698dcdb6 VZ |
14419 | echo "configure: failed program was:" >&5 |
14420 | cat conftest.$ac_ext >&5 | |
14421 | rm -rf conftest* | |
14422 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 14423 | #line 14424 "configure" |
10f2d63a | 14424 | #include "confdefs.h" |
afc31813 VZ |
14425 | |
14426 | #include <sys/time.h> | |
14427 | #include <unistd.h> | |
698dcdb6 VZ |
14428 | |
14429 | int main() { | |
afc31813 VZ |
14430 | |
14431 | struct timeval tv; | |
14432 | gettimeofday(&tv); | |
698dcdb6 VZ |
14433 | |
14434 | ; return 0; } | |
14435 | EOF | |
19af3b06 | 14436 | if { (eval echo configure:14437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 14437 | rm -rf conftest* |
afc31813 | 14438 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 14439 | else |
698dcdb6 VZ |
14440 | echo "configure: failed program was:" >&5 |
14441 | cat conftest.$ac_ext >&5 | |
14442 | rm -rf conftest* | |
14443 | wx_cv_func_gettimeofday_has_2_args=unknown | |
14444 | ||
10f2d63a | 14445 | fi |
698dcdb6 VZ |
14446 | rm -f conftest* |
14447 | ||
10f2d63a | 14448 | fi |
698dcdb6 | 14449 | rm -f conftest* |
afc31813 | 14450 | ac_ext=c |
698dcdb6 | 14451 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 14452 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
14453 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
14454 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14455 | cross_compiling=$ac_cv_prog_cc_cross | |
10f2d63a | 14456 | |
698dcdb6 | 14457 | |
afc31813 | 14458 | fi |
698dcdb6 VZ |
14459 | |
14460 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 14461 | |
afc31813 | 14462 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
698dcdb6 | 14463 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
14464 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
14465 | EOF | |
14466 | ||
14467 | fi | |
14468 | fi | |
14469 | ||
698dcdb6 | 14470 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
14471 | #define wxUSE_TIMEDATE 1 |
14472 | EOF | |
14473 | ||
14474 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
14475 | fi | |
14476 | ||
698dcdb6 | 14477 | |
b089607b VZ |
14478 | if test "$TOOLKIT" != "MSW"; then |
14479 | ||
afc31813 | 14480 | if test "$wxUSE_SOCKETS" = "yes"; then |
698dcdb6 | 14481 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
19af3b06 | 14482 | echo "configure:14483: checking for socket" >&5 |
698dcdb6 VZ |
14483 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
14484 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 14485 | else |
698dcdb6 | 14486 | cat > conftest.$ac_ext <<EOF |
19af3b06 | 14487 | #line 14488 "configure" |
c63c7106 VZ |
14488 | #include "confdefs.h" |
14489 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 14490 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
14491 | #include <assert.h> |
14492 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14493 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14494 | builtin and then its argument prototype would still apply. */ |
14495 | char socket(); | |
14496 | ||
14497 | int main() { | |
c63c7106 VZ |
14498 | |
14499 | /* The GNU C library defines this for functions which it implements | |
14500 | to always fail with ENOSYS. Some functions are actually named | |
14501 | something starting with __ and the normal name is an alias. */ | |
14502 | #if defined (__stub_socket) || defined (__stub___socket) | |
14503 | choke me | |
14504 | #else | |
698dcdb6 | 14505 | socket(); |
c63c7106 VZ |
14506 | #endif |
14507 | ||
698dcdb6 VZ |
14508 | ; return 0; } |
14509 | EOF | |
19af3b06 | 14510 | if { (eval echo configure:14511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14511 | rm -rf conftest* |
14512 | eval "ac_cv_func_socket=yes" | |
14513 | else | |
14514 | echo "configure: failed program was:" >&5 | |
14515 | cat conftest.$ac_ext >&5 | |
14516 | rm -rf conftest* | |
14517 | eval "ac_cv_func_socket=no" | |
14518 | fi | |
14519 | rm -f conftest* | |
14520 | fi | |
14521 | ||
14522 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
14523 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
14524 | : |
14525 | else | |
698dcdb6 VZ |
14526 | echo "$ac_t""no" 1>&6 |
14527 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
19af3b06 | 14528 | echo "configure:14529: checking for socket in -lsocket" >&5 |
698dcdb6 VZ |
14529 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
14530 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14531 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 14532 | else |
698dcdb6 | 14533 | ac_save_LIBS="$LIBS" |
c63c7106 | 14534 | LIBS="-lsocket $LIBS" |
698dcdb6 | 14535 | cat > conftest.$ac_ext <<EOF |
19af3b06 | 14536 | #line 14537 "configure" |
c63c7106 VZ |
14537 | #include "confdefs.h" |
14538 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14539 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14540 | builtin and then its argument prototype would still apply. */ |
14541 | char socket(); | |
14542 | ||
14543 | int main() { | |
14544 | socket() | |
14545 | ; return 0; } | |
14546 | EOF | |
19af3b06 | 14547 | if { (eval echo configure:14548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14548 | rm -rf conftest* |
14549 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14550 | else | |
14551 | echo "configure: failed program was:" >&5 | |
14552 | cat conftest.$ac_ext >&5 | |
14553 | rm -rf conftest* | |
14554 | eval "ac_cv_lib_$ac_lib_var=no" | |
14555 | fi | |
14556 | rm -f conftest* | |
14557 | LIBS="$ac_save_LIBS" | |
14558 | ||
14559 | fi | |
14560 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14561 | echo "$ac_t""yes" 1>&6 | |
c63c7106 | 14562 | INET_LINK="$INET_LINK -lsocket" |
c63c7106 | 14563 | else |
698dcdb6 | 14564 | echo "$ac_t""no" 1>&6 |
afc31813 | 14565 | |
698dcdb6 | 14566 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
afc31813 | 14567 | wxUSE_SOCKETS=no |
698dcdb6 VZ |
14568 | |
14569 | ||
10f2d63a VZ |
14570 | fi |
14571 | ||
698dcdb6 | 14572 | |
6232543b | 14573 | fi |
b089607b | 14574 | |
1e487827 | 14575 | fi |
afc31813 | 14576 | |
51a9faba | 14577 | |
698dcdb6 VZ |
14578 | if test "$wxUSE_SOCKETS" = "yes" ; then |
14579 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 | |
19af3b06 | 14580 | echo "configure:14581: checking what is the type of the third argument of getsockname" >&5 |
698dcdb6 VZ |
14581 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
14582 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14583 | else | |
14584 | ||
14585 | ||
14586 | ac_ext=C | |
14587 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 14588 | ac_cpp='$CXXCPP $CPPFLAGS' |
698dcdb6 VZ |
14589 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
14590 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14591 | cross_compiling=$ac_cv_prog_cxx_cross | |
703e0a69 | 14592 | |
698dcdb6 VZ |
14593 | |
14594 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 14595 | #line 14596 "configure" |
afc31813 | 14596 | #include "confdefs.h" |
51a9faba | 14597 | |
3ace2e6d | 14598 | #include <sys/types.h> |
51a9faba | 14599 | #include <sys/socket.h> |
698dcdb6 VZ |
14600 | |
14601 | int main() { | |
51a9faba VZ |
14602 | |
14603 | socklen_t len; | |
14604 | getsockname(0, 0, &len); | |
698dcdb6 VZ |
14605 | |
14606 | ; return 0; } | |
14607 | EOF | |
19af3b06 | 14608 | if { (eval echo configure:14609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 14609 | rm -rf conftest* |
51a9faba | 14610 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 14611 | else |
698dcdb6 VZ |
14612 | echo "configure: failed program was:" >&5 |
14613 | cat conftest.$ac_ext >&5 | |
14614 | rm -rf conftest* | |
14615 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 14616 | #line 14617 "configure" |
afc31813 | 14617 | #include "confdefs.h" |
51a9faba | 14618 | |
3ace2e6d | 14619 | #include <sys/types.h> |
51a9faba | 14620 | #include <sys/socket.h> |
698dcdb6 VZ |
14621 | |
14622 | int main() { | |
51a9faba VZ |
14623 | |
14624 | size_t len; | |
14625 | getsockname(0, 0, &len); | |
698dcdb6 VZ |
14626 | |
14627 | ; return 0; } | |
14628 | EOF | |
19af3b06 | 14629 | if { (eval echo configure:14630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 14630 | rm -rf conftest* |
51a9faba | 14631 | wx_cv_type_getsockname3=size_t |
afc31813 | 14632 | else |
698dcdb6 VZ |
14633 | echo "configure: failed program was:" >&5 |
14634 | cat conftest.$ac_ext >&5 | |
14635 | rm -rf conftest* | |
14636 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 14637 | #line 14638 "configure" |
afc31813 | 14638 | #include "confdefs.h" |
51a9faba | 14639 | |
3ace2e6d | 14640 | #include <sys/types.h> |
51a9faba | 14641 | #include <sys/socket.h> |
698dcdb6 VZ |
14642 | |
14643 | int main() { | |
51a9faba VZ |
14644 | |
14645 | int len; | |
14646 | getsockname(0, 0, &len); | |
698dcdb6 VZ |
14647 | |
14648 | ; return 0; } | |
14649 | EOF | |
19af3b06 | 14650 | if { (eval echo configure:14651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
698dcdb6 | 14651 | rm -rf conftest* |
51a9faba | 14652 | wx_cv_type_getsockname3=int |
afc31813 | 14653 | else |
698dcdb6 VZ |
14654 | echo "configure: failed program was:" >&5 |
14655 | cat conftest.$ac_ext >&5 | |
14656 | rm -rf conftest* | |
14657 | wx_cv_type_getsockname3=unknown | |
14658 | ||
afc31813 | 14659 | fi |
698dcdb6 VZ |
14660 | rm -f conftest* |
14661 | ||
afc31813 | 14662 | fi |
698dcdb6 VZ |
14663 | rm -f conftest* |
14664 | ||
afc31813 | 14665 | fi |
698dcdb6 | 14666 | rm -f conftest* |
51a9faba VZ |
14667 | |
14668 | ac_ext=c | |
698dcdb6 | 14669 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 14670 | ac_cpp='$CPP $CPPFLAGS' |
698dcdb6 VZ |
14671 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
14672 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
14673 | cross_compiling=$ac_cv_prog_cc_cross | |
afc31813 | 14674 | |
698dcdb6 | 14675 | |
51a9faba | 14676 | fi |
698dcdb6 VZ |
14677 | |
14678 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba VZ |
14679 | |
14680 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
14681 | wxUSE_SOCKETS=no | |
698dcdb6 | 14682 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 |
51a9faba | 14683 | else |
698dcdb6 | 14684 | cat >> confdefs.h <<EOF |
51a9faba VZ |
14685 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
14686 | EOF | |
14687 | ||
14688 | fi | |
14689 | fi | |
afc31813 | 14690 | |
c521c494 RL |
14691 | fi |
14692 | ||
51a9faba | 14693 | if test "$wxUSE_SOCKETS" = "yes" ; then |
698dcdb6 | 14694 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
14695 | #define wxUSE_SOCKETS 1 |
14696 | EOF | |
14697 | ||
70f7a477 | 14698 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
14699 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol" |
14700 | fi | |
14701 | ||
698dcdb6 | 14702 | |
dc3d889d VZ |
14703 | if test "$wxUSE_GUI" = "yes"; then |
14704 | ||
b089607b VZ |
14705 | if test "$TOOLKIT" != "MSW"; then |
14706 | ||
ceded8b9 | 14707 | if test "$wxUSE_JOYSTICK" = "yes"; then |
698dcdb6 | 14708 | for ac_hdr in linux/joystick.h |
10f2d63a | 14709 | do |
698dcdb6 VZ |
14710 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
14711 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
19af3b06 | 14712 | echo "configure:14713: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
14713 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14714 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14715 | else | |
14716 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 14717 | #line 14718 "configure" |
10f2d63a | 14718 | #include "confdefs.h" |
698dcdb6 VZ |
14719 | #include <$ac_hdr> |
14720 | EOF | |
14721 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
19af3b06 | 14722 | { (eval echo configure:14723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
14723 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14724 | if test -z "$ac_err"; then | |
14725 | rm -rf conftest* | |
14726 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 14727 | else |
698dcdb6 VZ |
14728 | echo "$ac_err" >&5 |
14729 | echo "configure: failed program was:" >&5 | |
10f2d63a | 14730 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
14731 | rm -rf conftest* |
14732 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 14733 | fi |
698dcdb6 | 14734 | rm -f conftest* |
10f2d63a | 14735 | fi |
698dcdb6 VZ |
14736 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14737 | echo "$ac_t""yes" 1>&6 | |
14738 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
14739 | cat >> confdefs.h <<EOF | |
14740 | #define $ac_tr_hdr 1 | |
10f2d63a | 14741 | EOF |
698dcdb6 VZ |
14742 | |
14743 | else | |
14744 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
14745 | fi |
14746 | done | |
14747 | ||
b089607b | 14748 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
ceded8b9 | 14749 | wxUSE_JOYSTICK=no |
698dcdb6 | 14750 | echo "configure: warning: Joystick not supported by this system" 1>&2 |
b089607b VZ |
14751 | fi |
14752 | fi | |
14753 | ||
14754 | fi | |
14755 | ||
ceded8b9 | 14756 | if test "$wxUSE_JOYSTICK" = "yes"; then |
698dcdb6 | 14757 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
14758 | #define wxUSE_JOYSTICK 1 |
14759 | EOF | |
14760 | ||
14761 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
10f2d63a VZ |
14762 | fi |
14763 | ||
dc3d889d VZ |
14764 | fi |
14765 | ||
698dcdb6 | 14766 | |
b089607b VZ |
14767 | if test "$TOOLKIT" != "MSW"; then |
14768 | ||
10f2d63a VZ |
14769 | HAVE_DL_FUNCS=0 |
14770 | HAVE_SHL_FUNCS=0 | |
14771 | if test "$wxUSE_DYNLIB_CLASS" = "yes"; then | |
b4085ce6 GD |
14772 | if test "$USE_MAC" = 1; then |
14773 | HAVE_DL_FUNCS=1 | |
14774 | else | |
698dcdb6 | 14775 | for ac_func in dlopen |
10f2d63a | 14776 | do |
698dcdb6 | 14777 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
19af3b06 | 14778 | echo "configure:14779: checking for $ac_func" >&5 |
698dcdb6 VZ |
14779 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14780 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14781 | else | |
14782 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 14783 | #line 14784 "configure" |
10f2d63a VZ |
14784 | #include "confdefs.h" |
14785 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 14786 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
14787 | #include <assert.h> |
14788 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14789 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14790 | builtin and then its argument prototype would still apply. */ |
14791 | char $ac_func(); | |
14792 | ||
14793 | int main() { | |
10f2d63a VZ |
14794 | |
14795 | /* The GNU C library defines this for functions which it implements | |
14796 | to always fail with ENOSYS. Some functions are actually named | |
14797 | something starting with __ and the normal name is an alias. */ | |
14798 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14799 | choke me | |
14800 | #else | |
698dcdb6 | 14801 | $ac_func(); |
10f2d63a VZ |
14802 | #endif |
14803 | ||
698dcdb6 VZ |
14804 | ; return 0; } |
14805 | EOF | |
19af3b06 | 14806 | if { (eval echo configure:14807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14807 | rm -rf conftest* |
14808 | eval "ac_cv_func_$ac_func=yes" | |
14809 | else | |
14810 | echo "configure: failed program was:" >&5 | |
14811 | cat conftest.$ac_ext >&5 | |
14812 | rm -rf conftest* | |
14813 | eval "ac_cv_func_$ac_func=no" | |
14814 | fi | |
14815 | rm -f conftest* | |
14816 | fi | |
14817 | ||
14818 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14819 | echo "$ac_t""yes" 1>&6 | |
14820 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14821 | cat >> confdefs.h <<EOF | |
14822 | #define $ac_tr_func 1 | |
14823 | EOF | |
14824 | ||
14825 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14826 | #define HAVE_DLOPEN 1 |
14827 | EOF | |
14828 | ||
14829 | HAVE_DL_FUNCS=1 | |
698dcdb6 | 14830 | |
10f2d63a | 14831 | else |
698dcdb6 VZ |
14832 | echo "$ac_t""no" 1>&6 |
14833 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
19af3b06 | 14834 | echo "configure:14835: checking for dlopen in -ldl" >&5 |
698dcdb6 VZ |
14835 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
14836 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14837 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 14838 | else |
698dcdb6 | 14839 | ac_save_LIBS="$LIBS" |
10f2d63a | 14840 | LIBS="-ldl $LIBS" |
698dcdb6 | 14841 | cat > conftest.$ac_ext <<EOF |
19af3b06 | 14842 | #line 14843 "configure" |
10f2d63a VZ |
14843 | #include "confdefs.h" |
14844 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14845 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14846 | builtin and then its argument prototype would still apply. */ |
14847 | char dlopen(); | |
14848 | ||
14849 | int main() { | |
14850 | dlopen() | |
14851 | ; return 0; } | |
14852 | EOF | |
19af3b06 | 14853 | if { (eval echo configure:14854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14854 | rm -rf conftest* |
14855 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14856 | else | |
14857 | echo "configure: failed program was:" >&5 | |
14858 | cat conftest.$ac_ext >&5 | |
14859 | rm -rf conftest* | |
14860 | eval "ac_cv_lib_$ac_lib_var=no" | |
14861 | fi | |
14862 | rm -f conftest* | |
14863 | LIBS="$ac_save_LIBS" | |
14864 | ||
14865 | fi | |
14866 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14867 | echo "$ac_t""yes" 1>&6 | |
14868 | ||
14869 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14870 | #define HAVE_DLOPEN 1 |
14871 | EOF | |
14872 | ||
14873 | HAVE_DL_FUNCS=1 | |
14874 | LIBS="$LIBS -ldl" | |
698dcdb6 | 14875 | |
10f2d63a | 14876 | else |
698dcdb6 | 14877 | echo "$ac_t""no" 1>&6 |
10f2d63a | 14878 | |
698dcdb6 | 14879 | for ac_func in shl_load |
10f2d63a | 14880 | do |
698dcdb6 | 14881 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
19af3b06 | 14882 | echo "configure:14883: checking for $ac_func" >&5 |
698dcdb6 VZ |
14883 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14884 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14885 | else | |
14886 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 14887 | #line 14888 "configure" |
10f2d63a VZ |
14888 | #include "confdefs.h" |
14889 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 14890 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
14891 | #include <assert.h> |
14892 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14893 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14894 | builtin and then its argument prototype would still apply. */ |
14895 | char $ac_func(); | |
14896 | ||
14897 | int main() { | |
10f2d63a VZ |
14898 | |
14899 | /* The GNU C library defines this for functions which it implements | |
14900 | to always fail with ENOSYS. Some functions are actually named | |
14901 | something starting with __ and the normal name is an alias. */ | |
14902 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14903 | choke me | |
14904 | #else | |
698dcdb6 | 14905 | $ac_func(); |
10f2d63a VZ |
14906 | #endif |
14907 | ||
698dcdb6 VZ |
14908 | ; return 0; } |
14909 | EOF | |
19af3b06 | 14910 | if { (eval echo configure:14911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14911 | rm -rf conftest* |
14912 | eval "ac_cv_func_$ac_func=yes" | |
14913 | else | |
14914 | echo "configure: failed program was:" >&5 | |
14915 | cat conftest.$ac_ext >&5 | |
14916 | rm -rf conftest* | |
14917 | eval "ac_cv_func_$ac_func=no" | |
14918 | fi | |
14919 | rm -f conftest* | |
14920 | fi | |
14921 | ||
14922 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
14923 | echo "$ac_t""yes" 1>&6 | |
14924 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
14925 | cat >> confdefs.h <<EOF | |
14926 | #define $ac_tr_func 1 | |
14927 | EOF | |
14928 | ||
14929 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
14930 | #define HAVE_SHL_LOAD 1 |
14931 | EOF | |
14932 | ||
14933 | HAVE_SHL_FUNCS=1 | |
698dcdb6 | 14934 | |
10f2d63a | 14935 | else |
698dcdb6 VZ |
14936 | echo "$ac_t""no" 1>&6 |
14937 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
19af3b06 | 14938 | echo "configure:14939: checking for dld in -lshl_load" >&5 |
698dcdb6 VZ |
14939 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
14940 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14941 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 14942 | else |
698dcdb6 | 14943 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 14944 | LIBS="-lshl_load $LIBS" |
698dcdb6 | 14945 | cat > conftest.$ac_ext <<EOF |
19af3b06 | 14946 | #line 14947 "configure" |
f6bcfd97 BP |
14947 | #include "confdefs.h" |
14948 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14949 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
14950 | builtin and then its argument prototype would still apply. */ |
14951 | char dld(); | |
14952 | ||
14953 | int main() { | |
14954 | dld() | |
14955 | ; return 0; } | |
14956 | EOF | |
19af3b06 | 14957 | if { (eval echo configure:14958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
14958 | rm -rf conftest* |
14959 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14960 | else | |
14961 | echo "configure: failed program was:" >&5 | |
14962 | cat conftest.$ac_ext >&5 | |
14963 | rm -rf conftest* | |
14964 | eval "ac_cv_lib_$ac_lib_var=no" | |
14965 | fi | |
14966 | rm -f conftest* | |
14967 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 14968 | |
698dcdb6 VZ |
14969 | fi |
14970 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14971 | echo "$ac_t""yes" 1>&6 | |
14972 | ||
f6bcfd97 BP |
14973 | HAVE_SHL_FUNCS=1 |
14974 | LIBS="$LIBS -ldld" | |
698dcdb6 VZ |
14975 | |
14976 | else | |
14977 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
14978 | fi |
14979 | ||
698dcdb6 | 14980 | |
10f2d63a VZ |
14981 | fi |
14982 | done | |
14983 | ||
698dcdb6 | 14984 | |
10f2d63a VZ |
14985 | fi |
14986 | ||
698dcdb6 | 14987 | |
10f2d63a VZ |
14988 | fi |
14989 | done | |
14990 | ||
1e487827 | 14991 | |
698dcdb6 VZ |
14992 | if test "$HAVE_DL_FUNCS" = 1; then |
14993 | for ac_func in dlerror | |
f6bcfd97 | 14994 | do |
698dcdb6 | 14995 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
19af3b06 | 14996 | echo "configure:14997: checking for $ac_func" >&5 |
698dcdb6 VZ |
14997 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
14998 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14999 | else | |
15000 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 15001 | #line 15002 "configure" |
f6bcfd97 BP |
15002 | #include "confdefs.h" |
15003 | /* System header to define __stub macros and hopefully few prototypes, | |
698dcdb6 | 15004 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
15005 | #include <assert.h> |
15006 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15007 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15008 | builtin and then its argument prototype would still apply. */ |
15009 | char $ac_func(); | |
15010 | ||
15011 | int main() { | |
f6bcfd97 BP |
15012 | |
15013 | /* The GNU C library defines this for functions which it implements | |
15014 | to always fail with ENOSYS. Some functions are actually named | |
15015 | something starting with __ and the normal name is an alias. */ | |
15016 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15017 | choke me | |
15018 | #else | |
698dcdb6 | 15019 | $ac_func(); |
f6bcfd97 BP |
15020 | #endif |
15021 | ||
698dcdb6 VZ |
15022 | ; return 0; } |
15023 | EOF | |
19af3b06 | 15024 | if { (eval echo configure:15025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15025 | rm -rf conftest* |
15026 | eval "ac_cv_func_$ac_func=yes" | |
15027 | else | |
15028 | echo "configure: failed program was:" >&5 | |
15029 | cat conftest.$ac_ext >&5 | |
15030 | rm -rf conftest* | |
15031 | eval "ac_cv_func_$ac_func=no" | |
15032 | fi | |
15033 | rm -f conftest* | |
15034 | fi | |
15035 | ||
15036 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15037 | echo "$ac_t""yes" 1>&6 | |
15038 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15039 | cat >> confdefs.h <<EOF | |
15040 | #define $ac_tr_func 1 | |
15041 | EOF | |
15042 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
15043 | #define HAVE_DLERROR 1 |
15044 | EOF | |
15045 | ||
15046 | else | |
698dcdb6 VZ |
15047 | echo "$ac_t""no" 1>&6 |
15048 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
19af3b06 | 15049 | echo "configure:15050: checking for dlerror in -ldl" >&5 |
698dcdb6 VZ |
15050 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
15051 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15052 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 15053 | else |
698dcdb6 | 15054 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 15055 | LIBS="-ldl $LIBS" |
698dcdb6 | 15056 | cat > conftest.$ac_ext <<EOF |
19af3b06 | 15057 | #line 15058 "configure" |
f6bcfd97 BP |
15058 | #include "confdefs.h" |
15059 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15060 | /* We use char because int might match the return type of a gcc2 | |
698dcdb6 VZ |
15061 | builtin and then its argument prototype would still apply. */ |
15062 | char dlerror(); | |
15063 | ||
15064 | int main() { | |
15065 | dlerror() | |
15066 | ; return 0; } | |
15067 | EOF | |
19af3b06 | 15068 | if { (eval echo configure:15069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
698dcdb6 VZ |
15069 | rm -rf conftest* |
15070 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15071 | else | |
15072 | echo "configure: failed program was:" >&5 | |
15073 | cat conftest.$ac_ext >&5 | |
15074 | rm -rf conftest* | |
15075 | eval "ac_cv_lib_$ac_lib_var=no" | |
15076 | fi | |
15077 | rm -f conftest* | |
15078 | LIBS="$ac_save_LIBS" | |
15079 | ||
15080 | fi | |
15081 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15082 | echo "$ac_t""yes" 1>&6 | |
15083 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
15084 | #define HAVE_DLERROR 1 |
15085 | EOF | |
15086 | ||
698dcdb6 VZ |
15087 | else |
15088 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
15089 | fi |
15090 | ||
15091 | fi | |
15092 | done | |
15093 | ||
15094 | fi | |
b4085ce6 | 15095 | fi |
f6bcfd97 | 15096 | |
10f2d63a VZ |
15097 | if test "$HAVE_DL_FUNCS" = 0; then |
15098 | if test "$HAVE_SHL_FUNCS" = 0; then | |
15099 | if test "$USE_UNIX" = 1; then | |
698dcdb6 | 15100 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 |
10f2d63a VZ |
15101 | wxUSE_DYNLIB_CLASS=no |
15102 | else | |
698dcdb6 | 15103 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 |
10f2d63a VZ |
15104 | fi |
15105 | fi | |
15106 | fi | |
15107 | fi | |
15108 | ||
b089607b VZ |
15109 | fi |
15110 | ||
10f2d63a | 15111 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
698dcdb6 | 15112 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15113 | #define wxUSE_DYNLIB_CLASS 1 |
15114 | EOF | |
15115 | ||
b12915c1 VZ |
15116 | else |
15117 | wxUSE_ODBC=no | |
15118 | wxUSE_SERIAL=no | |
10f2d63a VZ |
15119 | fi |
15120 | ||
698dcdb6 | 15121 | |
10f2d63a | 15122 | if test "$wxUSE_UNICODE" = "yes" ; then |
698dcdb6 | 15123 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15124 | #define wxUSE_UNICODE 1 |
15125 | EOF | |
15126 | ||
15127 | fi | |
15128 | ||
15129 | if test "$wxUSE_WCSRTOMBS" = "yes" ; then | |
698dcdb6 | 15130 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15131 | #define wxUSE_WCSRTOMBS 1 |
15132 | EOF | |
15133 | ||
15134 | fi | |
15135 | ||
15136 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
698dcdb6 | 15137 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15138 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
15139 | EOF | |
15140 | ||
15141 | fi | |
15142 | ||
698dcdb6 | 15143 | |
b12915c1 | 15144 | if test "$wxUSE_SERIAL" = "yes" ; then |
698dcdb6 | 15145 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
15146 | #define wxUSE_SERIAL 1 |
15147 | EOF | |
15148 | ||
15149 | fi | |
15150 | ||
698dcdb6 | 15151 | |
10f2d63a VZ |
15152 | IODBC_C_SRC="" |
15153 | if test "$wxUSE_ODBC" = "yes" ; then | |
698dcdb6 | 15154 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15155 | #define wxUSE_ODBC 1 |
15156 | EOF | |
15157 | ||
15158 | WXODBCFLAG="-D_IODBC_" | |
15159 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
15160 | fi |
15161 | ||
698dcdb6 | 15162 | |
10f2d63a | 15163 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
698dcdb6 | 15164 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15165 | #define wxUSE_POSTSCRIPT 1 |
15166 | EOF | |
15167 | ||
15168 | fi | |
15169 | ||
698dcdb6 | 15170 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15171 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
15172 | EOF | |
15173 | ||
698dcdb6 VZ |
15174 | |
15175 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
15176 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
15177 | EOF | |
15178 | ||
698dcdb6 VZ |
15179 | |
15180 | ||
10f2d63a | 15181 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
698dcdb6 | 15182 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15183 | #define wxUSE_CONSTRAINTS 1 |
15184 | EOF | |
15185 | ||
15186 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
15187 | fi | |
15188 | ||
15189 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
698dcdb6 | 15190 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15191 | #define wxUSE_MDI_ARCHITECTURE 1 |
15192 | EOF | |
15193 | ||
15194 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" | |
15195 | fi | |
15196 | ||
15197 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
698dcdb6 | 15198 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15199 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
15200 | EOF | |
15201 | ||
15202 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
15203 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
15204 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
15205 | fi | |
15206 | fi | |
15207 | ||
15208 | if test "$wxUSE_HELP" = "yes"; then | |
698dcdb6 | 15209 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15210 | #define wxUSE_HELP 1 |
15211 | EOF | |
15212 | ||
15213 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
15214 | fi | |
15215 | ||
15216 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
15217 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
698dcdb6 | 15218 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 15219 | else |
698dcdb6 | 15220 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15221 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
15222 | EOF | |
15223 | ||
15224 | fi | |
15225 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
15226 | fi | |
15227 | ||
15228 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
698dcdb6 | 15229 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15230 | #define wxUSE_PROLOGIO 1 |
15231 | EOF | |
15232 | ||
15233 | fi | |
15234 | ||
15235 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
15236 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
698dcdb6 | 15237 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15238 | #define wxUSE_RESOURCES 1 |
15239 | EOF | |
15240 | ||
15241 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" | |
15242 | else | |
698dcdb6 | 15243 | echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2 |
10f2d63a VZ |
15244 | fi |
15245 | fi | |
15246 | ||
15247 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
698dcdb6 | 15248 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15249 | #define wxUSE_X_RESOURCES 1 |
15250 | EOF | |
15251 | ||
15252 | fi | |
15253 | ||
698dcdb6 | 15254 | |
10f2d63a | 15255 | if test "$wxUSE_IPC" = "yes"; then |
eb4efbdc | 15256 | if test "$wxUSE_SOCKETS" != "yes"; then |
698dcdb6 | 15257 | echo "configure: warning: wxWindows IPC classes require sockets" 1>&2 |
eb4efbdc VZ |
15258 | fi |
15259 | ||
698dcdb6 | 15260 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15261 | #define wxUSE_IPC 1 |
15262 | EOF | |
15263 | ||
15264 | fi | |
15265 | ||
15266 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
698dcdb6 | 15267 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15268 | #define wxUSE_CLIPBOARD 1 |
15269 | EOF | |
15270 | ||
15271 | fi | |
15272 | ||
15273 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
15274 | if test "$wxUSE_GTK" = 1; then | |
15275 | if test "$WXGTK12" != 1; then | |
698dcdb6 | 15276 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2 |
10f2d63a VZ |
15277 | wxUSE_DRAG_AND_DROP=no |
15278 | fi | |
15279 | fi | |
15280 | ||
15281 | if test "$wxUSE_MOTIF" = 1; then | |
698dcdb6 | 15282 | echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2 |
10f2d63a VZ |
15283 | wxUSE_DRAG_AND_DROP=no |
15284 | fi | |
15285 | ||
2c6025bc | 15286 | if test "$wxUSE_MAC" = 1; then |
698dcdb6 | 15287 | echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2 |
2c6025bc GD |
15288 | wxUSE_DRAG_AND_DROP=no |
15289 | fi | |
15290 | ||
10f2d63a | 15291 | if test "$USE_WIN32" = 1; then |
698dcdb6 VZ |
15292 | |
15293 | for ac_hdr in ole2.h | |
10f2d63a | 15294 | do |
698dcdb6 VZ |
15295 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
15296 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
19af3b06 | 15297 | echo "configure:15298: checking for $ac_hdr" >&5 |
698dcdb6 VZ |
15298 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15299 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15300 | else | |
15301 | cat > conftest.$ac_ext <<EOF | |
19af3b06 | 15302 | #line 15303 "configure" |
10f2d63a | 15303 | #include "confdefs.h" |
698dcdb6 VZ |
15304 | #include <$ac_hdr> |
15305 | EOF | |
15306 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
19af3b06 | 15307 | { (eval echo configure:15308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
698dcdb6 VZ |
15308 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15309 | if test -z "$ac_err"; then | |
15310 | rm -rf conftest* | |
15311 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 15312 | else |
698dcdb6 VZ |
15313 | echo "$ac_err" >&5 |
15314 | echo "configure: failed program was:" >&5 | |
10f2d63a | 15315 | cat conftest.$ac_ext >&5 |
698dcdb6 VZ |
15316 | rm -rf conftest* |
15317 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 15318 | fi |
698dcdb6 | 15319 | rm -f conftest* |
10f2d63a | 15320 | fi |
698dcdb6 VZ |
15321 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15322 | echo "$ac_t""yes" 1>&6 | |
15323 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
15324 | cat >> confdefs.h <<EOF | |
15325 | #define $ac_tr_hdr 1 | |
10f2d63a | 15326 | EOF |
698dcdb6 VZ |
15327 | |
15328 | else | |
15329 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
15330 | fi |
15331 | done | |
15332 | ||
698dcdb6 | 15333 | |
c521c494 RL |
15334 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
15335 | if test "$GCC" = yes ; then | |
b64f0a5f RL |
15336 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" |
15337 | ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)" | |
c521c494 | 15338 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
b64f0a5f RL |
15339 | LIBS="$LIBS -lole32 -luuid" |
15340 | ||
15341 | if test "$wxUSE_METAFILE" = "yes"; then | |
698dcdb6 | 15342 | cat >> confdefs.h <<\EOF |
b64f0a5f RL |
15343 | #define wxUSE_METAFILE 1 |
15344 | EOF | |
15345 | ||
698dcdb6 | 15346 | cat >> confdefs.h <<\EOF |
b64f0a5f RL |
15347 | #define wxUSE_ENH_METAFILE 1 |
15348 | EOF | |
15349 | ||
15350 | fi | |
c521c494 RL |
15351 | fi |
15352 | else | |
698dcdb6 | 15353 | echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2 |
10f2d63a VZ |
15354 | wxUSE_DRAG_AND_DROP=no |
15355 | fi | |
15356 | fi | |
15357 | ||
15358 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
698dcdb6 | 15359 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15360 | #define wxUSE_DRAG_AND_DROP 1 |
15361 | EOF | |
15362 | ||
15363 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
15364 | fi | |
15365 | ||
15366 | fi | |
15367 | ||
15368 | if test "$wxUSE_SPLINES" = "yes" ; then | |
698dcdb6 | 15369 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15370 | #define wxUSE_SPLINES 1 |
15371 | EOF | |
15372 | ||
15373 | fi | |
15374 | ||
698dcdb6 | 15375 | |
10f2d63a | 15376 | if test "$wxUSE_ACCEL" = "yes"; then |
698dcdb6 | 15377 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15378 | #define wxUSE_ACCEL 1 |
15379 | EOF | |
15380 | ||
15381 | fi | |
15382 | ||
15383 | if test "$wxUSE_CARET" = "yes"; then | |
698dcdb6 | 15384 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15385 | #define wxUSE_CARET 1 |
15386 | EOF | |
15387 | ||
15388 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
15389 | fi | |
15390 | ||
15391 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
698dcdb6 | 15392 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15393 | #define wxUSE_COMBOBOX 1 |
15394 | EOF | |
15395 | ||
15396 | fi | |
15397 | ||
15398 | if test "$wxUSE_CHOICE" = "yes"; then | |
698dcdb6 | 15399 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15400 | #define wxUSE_CHOICE 1 |
15401 | EOF | |
15402 | ||
15403 | fi | |
15404 | ||
15405 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
698dcdb6 | 15406 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15407 | #define wxUSE_BMPBUTTON 1 |
15408 | EOF | |
15409 | ||
15410 | fi | |
15411 | ||
15412 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
698dcdb6 | 15413 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15414 | #define wxUSE_CHECKBOX 1 |
15415 | EOF | |
15416 | ||
15417 | fi | |
15418 | ||
15419 | if test "$wxUSE_CHECKLST" = "yes"; then | |
698dcdb6 | 15420 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15421 | #define wxUSE_CHECKLISTBOX 1 |
15422 | EOF | |
15423 | ||
15424 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
15425 | fi | |
15426 | ||
15427 | if test "$wxUSE_GAUGE" = "yes"; then | |
698dcdb6 | 15428 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15429 | #define wxUSE_GAUGE 1 |
15430 | EOF | |
15431 | ||
15432 | fi | |
15433 | ||
d6a55c4b VZ |
15434 | if test "$wxUSE_NEW_GRID" = "yes"; then |
15435 | wxUSE_GRID="yes" | |
698dcdb6 | 15436 | cat >> confdefs.h <<\EOF |
d6a55c4b | 15437 | #define wxUSE_NEW_GRID 1 |
10f2d63a VZ |
15438 | EOF |
15439 | ||
d6a55c4b | 15440 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
15441 | fi |
15442 | ||
d6a55c4b | 15443 | if test "$wxUSE_GRID" = "yes"; then |
698dcdb6 | 15444 | cat >> confdefs.h <<\EOF |
d6a55c4b | 15445 | #define wxUSE_GRID 1 |
10f2d63a VZ |
15446 | EOF |
15447 | ||
d6a55c4b | 15448 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
15449 | fi |
15450 | ||
15451 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 15452 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15453 | #define wxUSE_IMAGLIST 1 |
15454 | EOF | |
15455 | ||
15456 | fi | |
15457 | ||
15458 | if test "$wxUSE_LISTBOX" = "yes"; then | |
698dcdb6 | 15459 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15460 | #define wxUSE_LISTBOX 1 |
15461 | EOF | |
15462 | ||
15463 | fi | |
15464 | ||
15465 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
15466 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 15467 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15468 | #define wxUSE_LISTCTRL 1 |
15469 | EOF | |
15470 | ||
15471 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
15472 | else | |
698dcdb6 | 15473 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
15474 | fi |
15475 | fi | |
15476 | ||
15477 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
698dcdb6 | 15478 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15479 | #define wxUSE_NOTEBOOK 1 |
15480 | EOF | |
15481 | ||
15482 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
15483 | fi | |
15484 | ||
15485 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
698dcdb6 | 15486 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15487 | #define wxUSE_RADIOBOX 1 |
15488 | EOF | |
15489 | ||
15490 | fi | |
15491 | ||
15492 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
698dcdb6 | 15493 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15494 | #define wxUSE_RADIOBTN 1 |
15495 | EOF | |
15496 | ||
15497 | fi | |
15498 | ||
15499 | if test "$wxUSE_SASH" = "yes"; then | |
698dcdb6 | 15500 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15501 | #define wxUSE_SASH 1 |
15502 | EOF | |
15503 | ||
15504 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
15505 | fi | |
15506 | ||
15507 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
698dcdb6 | 15508 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15509 | #define wxUSE_SCROLLBAR 1 |
15510 | EOF | |
15511 | ||
741a9306 | 15512 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
15513 | fi |
15514 | ||
15515 | if test "$wxUSE_SLIDER" = "yes"; then | |
698dcdb6 | 15516 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15517 | #define wxUSE_SLIDER 1 |
15518 | EOF | |
15519 | ||
15520 | fi | |
15521 | ||
15522 | if test "$wxUSE_SPINBTN" = "yes"; then | |
698dcdb6 | 15523 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15524 | #define wxUSE_SPINBTN 1 |
15525 | EOF | |
15526 | ||
15527 | fi | |
15528 | ||
56cfaa52 | 15529 | if test "$wxUSE_SPINCTRL" = "yes"; then |
698dcdb6 | 15530 | cat >> confdefs.h <<\EOF |
56cfaa52 RR |
15531 | #define wxUSE_SPINCTRL 1 |
15532 | EOF | |
15533 | ||
15534 | fi | |
15535 | ||
10f2d63a | 15536 | if test "$wxUSE_SPLITTER" = "yes"; then |
698dcdb6 | 15537 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15538 | #define wxUSE_SPLITTER 1 |
15539 | EOF | |
15540 | ||
15541 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
15542 | fi | |
15543 | ||
15544 | if test "$wxUSE_STATBMP" = "yes"; then | |
698dcdb6 | 15545 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15546 | #define wxUSE_STATBMP 1 |
15547 | EOF | |
15548 | ||
15549 | fi | |
15550 | ||
15551 | if test "$wxUSE_STATBOX" = "yes"; then | |
698dcdb6 | 15552 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15553 | #define wxUSE_STATBOX 1 |
15554 | EOF | |
15555 | ||
15556 | fi | |
15557 | ||
15558 | if test "$wxUSE_STATLINE" = "yes"; then | |
15559 | if test "$wxUSE_WINE" = 1 ; then | |
698dcdb6 | 15560 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 |
10f2d63a | 15561 | else |
698dcdb6 | 15562 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15563 | #define wxUSE_STATLINE 1 |
15564 | EOF | |
15565 | ||
15566 | fi | |
15567 | fi | |
15568 | ||
15569 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
698dcdb6 | 15570 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15571 | #define wxUSE_STATUSBAR 1 |
15572 | EOF | |
15573 | ||
698dcdb6 | 15574 | |
2286341c | 15575 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
15576 | fi |
15577 | ||
15578 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
698dcdb6 | 15579 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15580 | #define wxUSE_TAB_DIALOG 1 |
15581 | EOF | |
15582 | ||
15583 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
15584 | fi | |
15585 | ||
1db8dc4a | 15586 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
698dcdb6 | 15587 | cat >> confdefs.h <<\EOF |
1db8dc4a VZ |
15588 | #define wxUSE_TOGGLEBTN 1 |
15589 | EOF | |
15590 | ||
15591 | fi | |
15592 | ||
360d6699 | 15593 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
698dcdb6 | 15594 | cat >> confdefs.h <<\EOF |
360d6699 VZ |
15595 | #define wxUSE_TOOLBAR_SIMPLE 1 |
15596 | EOF | |
15597 | ||
15598 | wxUSE_TOOLBAR="yes" | |
15599 | fi | |
15600 | ||
10f2d63a | 15601 | if test "$wxUSE_TOOLBAR" = "yes"; then |
698dcdb6 | 15602 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15603 | #define wxUSE_TOOLBAR 1 |
15604 | EOF | |
15605 | ||
698dcdb6 | 15606 | |
360d6699 VZ |
15607 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
15608 | wxUSE_TOOLBAR_NATIVE="yes" | |
15609 | fi | |
15610 | ||
10f2d63a VZ |
15611 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" |
15612 | fi | |
15613 | ||
360d6699 | 15614 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
698dcdb6 | 15615 | cat >> confdefs.h <<\EOF |
360d6699 VZ |
15616 | #define wxUSE_TOOLBAR_NATIVE 1 |
15617 | EOF | |
15618 | ||
15619 | fi | |
15620 | ||
10f2d63a VZ |
15621 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
15622 | if test "$wxUSE_MOTIF" = 1; then | |
698dcdb6 | 15623 | echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2 |
10f2d63a VZ |
15624 | else |
15625 | if test "$wxUSE_WINE" = 1; then | |
698dcdb6 | 15626 | echo "configure: warning: wxTooltip not supported under WINE" 1>&2 |
10f2d63a | 15627 | else |
698dcdb6 | 15628 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15629 | #define wxUSE_TOOLTIPS 1 |
15630 | EOF | |
15631 | ||
15632 | fi | |
15633 | fi | |
15634 | fi | |
15635 | ||
15636 | if test "$wxUSE_TREECTRL" = "yes"; then | |
15637 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
698dcdb6 | 15638 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15639 | #define wxUSE_TREECTRL 1 |
15640 | EOF | |
15641 | ||
15642 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
15643 | else | |
698dcdb6 | 15644 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
15645 | fi |
15646 | fi | |
15647 | ||
698dcdb6 VZ |
15648 | |
15649 | ||
10f2d63a VZ |
15650 | if test "$wxUSE_DIRDLG" = "yes"; then |
15651 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
698dcdb6 | 15652 | echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2 |
10f2d63a VZ |
15653 | else |
15654 | if test "$wxUSE_TREECTRL" != "yes"; then | |
698dcdb6 | 15655 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 |
10f2d63a | 15656 | else |
698dcdb6 | 15657 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15658 | #define wxUSE_DIRDLG 1 |
15659 | EOF | |
15660 | ||
15661 | fi | |
15662 | fi | |
15663 | fi | |
15664 | ||
15665 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
698dcdb6 | 15666 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15667 | #define wxUSE_TEXTDLG 1 |
15668 | EOF | |
15669 | ||
15670 | fi | |
15671 | ||
15672 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
15673 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
698dcdb6 | 15674 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 |
10f2d63a | 15675 | else |
698dcdb6 | 15676 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15677 | #define wxUSE_STARTUP_TIPS 1 |
15678 | EOF | |
15679 | ||
15680 | fi | |
15681 | fi | |
15682 | ||
15683 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
15684 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
698dcdb6 | 15685 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 |
10f2d63a | 15686 | else |
698dcdb6 | 15687 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15688 | #define wxUSE_PROGRESSDLG 1 |
15689 | EOF | |
15690 | ||
15691 | fi | |
15692 | fi | |
15693 | ||
15694 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
698dcdb6 | 15695 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15696 | #define wxUSE_MINIFRAME 1 |
15697 | EOF | |
15698 | ||
15699 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
15700 | fi | |
15701 | ||
15702 | if test "$wxUSE_HTML" = "yes"; then | |
698dcdb6 | 15703 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
15704 | #define wxUSE_HTML 1 |
15705 | EOF | |
15706 | ||
15707 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
15708 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html" | |
15709 | fi | |
15710 | ||
15711 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
698dcdb6 | 15712 | cat >> confdefs.h <<\EOF |
1e487827 VS |
15713 | #define wxUSE_VALIDATORS 1 |
15714 | EOF | |
703e0a69 | 15715 | |
698dcdb6 VZ |
15716 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
15717 | fi | |
15718 | ||
15719 | if test "$wxUSE_IMAGE" = "yes" ; then | |
15720 | cat >> confdefs.h <<\EOF | |
15721 | #define wxUSE_IMAGE 1 | |
15722 | EOF | |
15723 | ||
15724 | fi | |
15725 | ||
15726 | if test "$wxUSE_GIF" = "yes" ; then | |
15727 | cat >> confdefs.h <<\EOF | |
15728 | #define wxUSE_GIF 1 | |
15729 | EOF | |
15730 | ||
15731 | fi | |
15732 | ||
15733 | if test "$wxUSE_PCX" = "yes" ; then | |
15734 | cat >> confdefs.h <<\EOF | |
15735 | #define wxUSE_PCX 1 | |
15736 | EOF | |
15737 | ||
15738 | fi | |
15739 | ||
15740 | if test "$wxUSE_PNM" = "yes" ; then | |
15741 | cat >> confdefs.h <<\EOF | |
15742 | #define wxUSE_PNM 1 | |
15743 | EOF | |
15744 | ||
15745 | fi | |
15746 | ||
15747 | if test "$wxUSE_XPM" = "yes" ; then | |
15748 | cat >> confdefs.h <<\EOF | |
15749 | #define wxUSE_XPM 1 | |
15750 | EOF | |
15751 | ||
15752 | fi | |
15753 | ||
15754 | ||
15755 | if test "$cross_compiling" = "yes"; then | |
15756 | OSINFO="\"$host\"" | |
15757 | else | |
15758 | OSINFO=`uname -s -r -m` | |
15759 | OSINFO="\"$OSINFO\"" | |
15760 | fi | |
15761 | ||
15762 | cat >> confdefs.h <<EOF | |
15763 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
15764 | EOF | |
15765 | ||
15766 | ||
15767 | ||
15768 | GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK" | |
15769 | OPENGL_LIBS="$OPENGL_LINK" | |
15770 | ||
15771 | EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm" | |
15772 | if test "$USE_MAC" = 1 ; then | |
15773 | EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System" | |
15774 | fi | |
15775 | if test "$wxUSE_GUI" = "yes"; then | |
15776 | EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS" | |
15777 | fi | |
15778 | ||
15779 | LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS" | |
15780 | ||
15781 | INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $FREETYPE_INCLUDE $TOOLKIT_INCLUDE" | |
15782 | ||
15783 | if test "$wxUSE_GTK" = 1; then | |
15784 | WXCONFIG_INCLUDE="" | |
15785 | else | |
15786 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
15787 | fi | |
15788 | ||
15789 | if test "$GXX" = yes ; then | |
15790 | CXXWARNINGS="-Wall" | |
15791 | fi | |
15792 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" | |
15793 | ||
15794 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
15795 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
15796 | ||
15797 | LDFLAGS="$LDFLAGS $PROFILE" | |
15798 | ||
15799 | if test "$wxUSE_GUI" = "yes"; then | |
15800 | ||
15801 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs dragimag \ | |
15802 | drawing dynamic event font fractal image menu \ | |
15803 | minimal richedit" | |
15804 | ||
15805 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" | |
15806 | else | |
15807 | SAMPLES_SUBDIRS="" | |
15808 | fi | |
15809 | ||
15810 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
15811 | ||
15812 | ||
15813 | ||
15814 | ||
15815 | ||
15816 | ||
15817 | ||
15818 | ||
15819 | ||
15820 | ||
15821 | ||
15822 | ||
15823 | ||
15824 | ||
15825 | ||
15826 | ||
15827 | ||
15828 | ||
15829 | ||
15830 | ||
15831 | ||
15832 | ||
15833 | ||
15834 | ||
15835 | ||
15836 | ||
15837 | ||
15838 | ||
15839 | ||
15840 | ||
15841 | ||
15842 | ||
15843 | ||
15844 | ||
15845 | ||
15846 | ||
15847 | ||
15848 | ||
15849 | ||
15850 | ||
15851 | ||
15852 | ||
15853 | ||
15854 | ||
15855 | ||
15856 | ||
15857 | ||
15858 | ||
15859 | ||
15860 | ||
15861 | ||
15862 | ||
15863 | ||
15864 | ||
15865 | ||
15866 | ||
15867 | ||
15868 | ||
15869 | ||
15870 | ||
15871 | ||
15872 | ||
15873 | ||
15874 | ||
15875 | ||
15876 | ||
15877 | ||
32832908 VZ |
15878 | |
15879 | ||
15880 | ||
15881 | ||
15882 | ||
15883 | ||
15884 | ||
2224580a | 15885 | |
dad6c0ea | 15886 | |
f6bcfd97 BP |
15887 | |
15888 | ||
15889 | ||
2f51a9ec GD |
15890 | |
15891 | ||
15892 | ||
15893 | ||
15894 | ||
15895 | ||
f6bcfd97 | 15896 | |
dad6c0ea | 15897 | |
caa2c79b | 15898 | |
3711412e | 15899 | |
0f3f1cbc | 15900 | |
10f2d63a VZ |
15901 | |
15902 | ||
698dcdb6 | 15903 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
19af3b06 | 15904 | echo "configure:15905: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
698dcdb6 VZ |
15905 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
15906 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
15907 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15908 | else |
698dcdb6 | 15909 | cat > conftestmake <<\EOF |
10f2d63a VZ |
15910 | all: |
15911 | @echo 'ac_maketemp="${MAKE}"' | |
15912 | EOF | |
15913 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
698dcdb6 | 15914 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
15915 | if test -n "$ac_maketemp"; then |
15916 | eval ac_cv_prog_make_${ac_make}_set=yes | |
15917 | else | |
15918 | eval ac_cv_prog_make_${ac_make}_set=no | |
15919 | fi | |
698dcdb6 | 15920 | rm -f conftestmake |
10f2d63a VZ |
15921 | fi |
15922 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
698dcdb6 | 15923 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
15924 | SET_MAKE= |
15925 | else | |
698dcdb6 | 15926 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
15927 | SET_MAKE="MAKE=${MAKE-make}" |
15928 | fi | |
15929 | ||
698dcdb6 | 15930 | |
00cf1208 RR |
15931 | if test -d include; then |
15932 | if test -d include/wx; then | |
15933 | if test -d include/wx/${TOOLKIT_DIR}; then | |
15934 | if test -f include/wx/${TOOLKIT_DIR}/setup.h; then | |
665bbe97 | 15935 | mv -f include/wx/${TOOLKIT_DIR}/setup.h setup.h |
00cf1208 RR |
15936 | fi |
15937 | fi | |
15938 | fi | |
15939 | fi | |
665bbe97 | 15940 | |
698dcdb6 | 15941 | |
10f2d63a | 15942 | |
2224580a | 15943 | if test "$wxUSE_GUI" = "yes"; then |
ec90f5e5 | 15944 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
e8482f24 GL |
15945 | wx_cv_path_ifs=$PATH_IFS |
15946 | wx_cv_program_ext=$PROGRAM_EXT | |
15947 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
3711412e | 15948 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE |
93a20a27 VS |
15949 | export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \ |
15950 | wx_cv_target_library wx_cv_target_libtype | |
698dcdb6 | 15951 | subdirs="demos samples utils contrib" |
2224580a VZ |
15952 | |
15953 | fi | |
10f2d63a | 15954 | |
698dcdb6 VZ |
15955 | trap '' 1 2 15 |
15956 | cat > confcache <<\EOF | |
10f2d63a VZ |
15957 | # This file is a shell script that caches the results of configure |
15958 | # tests run on this system so they can be shared between configure | |
698dcdb6 VZ |
15959 | # scripts and configure runs. It is not useful on other systems. |
15960 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 15961 | # |
698dcdb6 VZ |
15962 | # By default, configure uses ./config.cache as the cache file, |
15963 | # creating it if it does not exist already. You can give configure | |
15964 | # the --cache-file=FILE option to use a different cache file; that is | |
15965 | # what configure does when it calls configure scripts in | |
15966 | # subdirectories, so they share the cache. | |
15967 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
15968 | # config.status only pays attention to the cache file if you give it the | |
15969 | # --recheck option to rerun configure. | |
10f2d63a | 15970 | # |
698dcdb6 | 15971 | EOF |
10f2d63a VZ |
15972 | # The following way of writing the cache mishandles newlines in values, |
15973 | # but we know of no workaround that is simple, portable, and efficient. | |
15974 | # So, don't put newlines in cache variables' values. | |
15975 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
15976 | # and sets the high bit in the cache file unless we assign to the vars. | |
698dcdb6 VZ |
15977 | (set) 2>&1 | |
15978 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
15979 | *ac_space=\ *) | |
15980 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
15981 | # turns \\\\ into \\, and sed turns \\ into \). | |
15982 | sed -n \ | |
15983 | -e "s/'/'\\\\''/g" \ | |
15984 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
15985 | ;; | |
15986 | *) | |
15987 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
15988 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
15989 | ;; | |
15990 | esac >> confcache | |
15991 | if cmp -s $cache_file confcache; then | |
15992 | : | |
15993 | else | |
10f2d63a | 15994 | if test -w $cache_file; then |
698dcdb6 VZ |
15995 | echo "updating cache $cache_file" |
15996 | cat confcache > $cache_file | |
10f2d63a VZ |
15997 | else |
15998 | echo "not updating unwritable cache $cache_file" | |
15999 | fi | |
16000 | fi | |
16001 | rm -f confcache | |
16002 | ||
698dcdb6 VZ |
16003 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
16004 | ||
10f2d63a VZ |
16005 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
16006 | # Let make expand exec_prefix. | |
16007 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
16008 | ||
698dcdb6 VZ |
16009 | # Any assignment to VPATH causes Sun make to only execute |
16010 | # the first set of double-colon rules, so remove it if not needed. | |
16011 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 16012 | if test "x$srcdir" = x.; then |
698dcdb6 | 16013 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
16014 | fi |
16015 | ||
698dcdb6 VZ |
16016 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
16017 | ||
10f2d63a VZ |
16018 | DEFS=-DHAVE_CONFIG_H |
16019 | ||
698dcdb6 | 16020 | # Without the "./", some shells look in PATH for config.status. |
10f2d63a | 16021 | : ${CONFIG_STATUS=./config.status} |
698dcdb6 VZ |
16022 | |
16023 | echo creating $CONFIG_STATUS | |
16024 | rm -f $CONFIG_STATUS | |
16025 | cat > $CONFIG_STATUS <<EOF | |
16026 | #! /bin/sh | |
10f2d63a VZ |
16027 | # Generated automatically by configure. |
16028 | # Run this file to recreate the current configuration. | |
698dcdb6 VZ |
16029 | # This directory was configured as follows, |
16030 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
16031 | # | |
16032 | # $0 $ac_configure_args | |
16033 | # | |
10f2d63a | 16034 | # Compiler output produced by configure, useful for debugging |
698dcdb6 | 16035 | # configure, is in ./config.log if it exists. |
1e487827 | 16036 | |
698dcdb6 VZ |
16037 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
16038 | for ac_option | |
10f2d63a | 16039 | do |
698dcdb6 | 16040 | case "\$ac_option" in |
10f2d63a | 16041 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
698dcdb6 VZ |
16042 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
16043 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
16044 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
16045 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
16046 | exit 0 ;; | |
16047 | -help | --help | --hel | --he | --h) | |
16048 | echo "\$ac_cs_usage"; exit 0 ;; | |
16049 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
10f2d63a VZ |
16050 | esac |
16051 | done | |
16052 | ||
698dcdb6 VZ |
16053 | ac_given_srcdir=$srcdir |
16054 | ac_given_INSTALL="$INSTALL" | |
703e0a69 | 16055 | |
698dcdb6 VZ |
16056 | trap 'rm -fr `echo " |
16057 | wx-config | |
16058 | src/make.env | |
16059 | src/makeprog.env | |
16060 | src/makelib.env | |
16061 | Makefile | |
16062 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
1e487827 | 16063 | EOF |
698dcdb6 | 16064 | cat >> $CONFIG_STATUS <<EOF |
1e487827 | 16065 | |
698dcdb6 VZ |
16066 | # Protect against being on the right side of a sed subst in config.status. |
16067 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
16068 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
16069 | $ac_vpsub | |
16070 | $extrasub | |
16071 | s%@SHELL@%$SHELL%g | |
16072 | s%@CFLAGS@%$CFLAGS%g | |
16073 | s%@CPPFLAGS@%$CPPFLAGS%g | |
16074 | s%@CXXFLAGS@%$CXXFLAGS%g | |
16075 | s%@FFLAGS@%$FFLAGS%g | |
16076 | s%@DEFS@%$DEFS%g | |
16077 | s%@LDFLAGS@%$LDFLAGS%g | |
16078 | s%@LIBS@%$LIBS%g | |
16079 | s%@exec_prefix@%$exec_prefix%g | |
16080 | s%@prefix@%$prefix%g | |
16081 | s%@program_transform_name@%$program_transform_name%g | |
16082 | s%@bindir@%$bindir%g | |
16083 | s%@sbindir@%$sbindir%g | |
16084 | s%@libexecdir@%$libexecdir%g | |
16085 | s%@datadir@%$datadir%g | |
16086 | s%@sysconfdir@%$sysconfdir%g | |
16087 | s%@sharedstatedir@%$sharedstatedir%g | |
16088 | s%@localstatedir@%$localstatedir%g | |
16089 | s%@libdir@%$libdir%g | |
16090 | s%@includedir@%$includedir%g | |
16091 | s%@oldincludedir@%$oldincludedir%g | |
16092 | s%@infodir@%$infodir%g | |
16093 | s%@mandir@%$mandir%g | |
16094 | s%@host@%$host%g | |
16095 | s%@host_alias@%$host_alias%g | |
16096 | s%@host_cpu@%$host_cpu%g | |
16097 | s%@host_vendor@%$host_vendor%g | |
16098 | s%@host_os@%$host_os%g | |
16099 | s%@target@%$target%g | |
16100 | s%@target_alias@%$target_alias%g | |
16101 | s%@target_cpu@%$target_cpu%g | |
16102 | s%@target_vendor@%$target_vendor%g | |
16103 | s%@target_os@%$target_os%g | |
16104 | s%@build@%$build%g | |
16105 | s%@build_alias@%$build_alias%g | |
16106 | s%@build_cpu@%$build_cpu%g | |
16107 | s%@build_vendor@%$build_vendor%g | |
16108 | s%@build_os@%$build_os%g | |
16109 | s%@CC@%$CC%g | |
16110 | s%@CPP@%$CPP%g | |
16111 | s%@CXX@%$CXX%g | |
16112 | s%@CXXCPP@%$CXXCPP%g | |
16113 | s%@RANLIB@%$RANLIB%g | |
16114 | s%@AR@%$AR%g | |
16115 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
16116 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
16117 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
16118 | s%@STRIP@%$STRIP%g | |
16119 | s%@YACC@%$YACC%g | |
16120 | s%@LEX@%$LEX%g | |
16121 | s%@LEXLIB@%$LEXLIB%g | |
16122 | s%@LN_S@%$LN_S%g | |
16123 | s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g | |
16124 | s%@GTK_CONFIG@%$GTK_CONFIG%g | |
16125 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g | |
16126 | s%@GTK_LIBS@%$GTK_LIBS%g | |
16127 | s%@X_CFLAGS@%$X_CFLAGS%g | |
16128 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
16129 | s%@X_LIBS@%$X_LIBS%g | |
16130 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
16131 | s%@REZ@%$REZ%g | |
16132 | s%@DEREZ@%$DEREZ%g | |
16133 | s%@LEX_STEM@%$LEX_STEM%g | |
16134 | s%@PATH_IFS@%$PATH_IFS%g | |
16135 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
16136 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
16137 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
16138 | s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g | |
16139 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
16140 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
16141 | s%@WX_LIBRARY@%$WX_LIBRARY%g | |
16142 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
16143 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
16144 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
16145 | s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g | |
16146 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g | |
16147 | s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g | |
16148 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g | |
16149 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
16150 | s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g | |
16151 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g | |
16152 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
16153 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
16154 | s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g | |
16155 | s%@WX_ALL@%$WX_ALL%g | |
16156 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
16157 | s%@SHARED_LD@%$SHARED_LD%g | |
16158 | s%@PIC_FLAG@%$PIC_FLAG%g | |
16159 | s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g | |
16160 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g | |
16161 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
16162 | s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g | |
16163 | s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g | |
16164 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g | |
16165 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
16166 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
16167 | s%@USE_GUI@%$USE_GUI%g | |
16168 | s%@AFMINSTALL@%$AFMINSTALL%g | |
16169 | s%@TOOLKIT@%$TOOLKIT%g | |
16170 | s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g | |
16171 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
16172 | s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g | |
16173 | s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g | |
16174 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g | |
16175 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
16176 | s%@ALL_DEPFILES@%$ALL_DEPFILES%g | |
16177 | s%@GUIDIST@%$GUIDIST%g | |
16178 | s%@PORT_FILES@%$PORT_FILES%g | |
16179 | s%@DISTDIR@%$DISTDIR%g | |
16180 | s%@RPM_SPEC@%$RPM_SPEC%g | |
16181 | s%@RPM_FILES@%$RPM_FILES%g | |
16182 | s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g | |
16183 | s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g | |
16184 | s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g | |
16185 | s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g | |
16186 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g | |
16187 | s%@USER_SUBDIRS@%$USER_SUBDIRS%g | |
16188 | s%@EXTRA_LIBS@%$EXTRA_LIBS%g | |
16189 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g | |
16190 | s%@EXTRADEFS@%$EXTRADEFS%g | |
16191 | s%@LD_LIBS@%$LD_LIBS%g | |
16192 | s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g | |
16193 | s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g | |
16194 | s%@RESPROGRAM@%$RESPROGRAM%g | |
16195 | s%@RESCOMP@%$RESCOMP%g | |
16196 | s%@RESFLAGS@%$RESFLAGS%g | |
16197 | s%@REZFLAGS@%$REZFLAGS%g | |
16198 | s%@DEREZFLAGS@%$DEREZFLAGS%g | |
16199 | s%@LIBWXMACRES@%$LIBWXMACRES%g | |
16200 | s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g | |
16201 | s%@DLLTOOL@%$DLLTOOL%g | |
16202 | s%@AS@%$AS%g | |
16203 | s%@NM@%$NM%g | |
16204 | s%@LD@%$LD%g | |
16205 | s%@MAKEINFO@%$MAKEINFO%g | |
16206 | s%@SET_MAKE@%$SET_MAKE%g | |
16207 | s%@subdirs@%$subdirs%g | |
1e487827 | 16208 | |
1e487827 | 16209 | CEOF |
1e487827 VS |
16210 | EOF |
16211 | ||
698dcdb6 VZ |
16212 | cat >> $CONFIG_STATUS <<\EOF |
16213 | ||
16214 | # Split the substitutions into bite-sized pieces for seds with | |
16215 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
16216 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
16217 | ac_file=1 # Number of current file. | |
16218 | ac_beg=1 # First line for current file. | |
16219 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
16220 | ac_more_lines=: | |
16221 | ac_sed_cmds="" | |
16222 | while $ac_more_lines; do | |
16223 | if test $ac_beg -gt 1; then | |
16224 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
16225 | else | |
16226 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
16227 | fi | |
16228 | if test ! -s conftest.s$ac_file; then | |
16229 | ac_more_lines=false | |
16230 | rm -f conftest.s$ac_file | |
16231 | else | |
16232 | if test -z "$ac_sed_cmds"; then | |
16233 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
10f2d63a | 16234 | else |
698dcdb6 | 16235 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
10f2d63a | 16236 | fi |
698dcdb6 VZ |
16237 | ac_file=`expr $ac_file + 1` |
16238 | ac_beg=$ac_end | |
16239 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
10f2d63a | 16240 | fi |
698dcdb6 VZ |
16241 | done |
16242 | if test -z "$ac_sed_cmds"; then | |
16243 | ac_sed_cmds=cat | |
16244 | fi | |
16245 | EOF | |
10f2d63a | 16246 | |
698dcdb6 VZ |
16247 | cat >> $CONFIG_STATUS <<EOF |
16248 | ||
16249 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
16250 | src/make.env | |
16251 | src/makeprog.env | |
16252 | src/makelib.env | |
16253 | Makefile | |
16254 | "} | |
10f2d63a | 16255 | EOF |
698dcdb6 VZ |
16256 | cat >> $CONFIG_STATUS <<\EOF |
16257 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
10f2d63a | 16258 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
16259 | case "$ac_file" in |
16260 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
16261 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
16262 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
16263 | esac |
16264 | ||
698dcdb6 | 16265 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
1e487827 | 16266 | |
698dcdb6 VZ |
16267 | # Remove last slash and all that follows it. Not all systems have dirname. |
16268 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
16269 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
16270 | # The file is in a subdirectory. | |
16271 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
16272 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
10f2d63a | 16273 | # A "../" for each directory in $ac_dir_suffix. |
698dcdb6 | 16274 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
10f2d63a VZ |
16275 | else |
16276 | ac_dir_suffix= ac_dots= | |
16277 | fi | |
16278 | ||
698dcdb6 VZ |
16279 | case "$ac_given_srcdir" in |
16280 | .) srcdir=. | |
16281 | if test -z "$ac_dots"; then top_srcdir=. | |
16282 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
16283 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
10f2d63a | 16284 | *) # Relative path. |
698dcdb6 VZ |
16285 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
16286 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
10f2d63a VZ |
16287 | esac |
16288 | ||
698dcdb6 VZ |
16289 | case "$ac_given_INSTALL" in |
16290 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
16291 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
10f2d63a VZ |
16292 | esac |
16293 | ||
698dcdb6 VZ |
16294 | echo creating "$ac_file" |
16295 | rm -f "$ac_file" | |
16296 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
16297 | case "$ac_file" in | |
16298 | *Makefile*) ac_comsub="1i\\ | |
16299 | # $configure_input" ;; | |
16300 | *) ac_comsub= ;; | |
16301 | esac | |
10f2d63a | 16302 | |
698dcdb6 VZ |
16303 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
16304 | sed -e "$ac_comsub | |
16305 | s%@configure_input@%$configure_input%g | |
16306 | s%@srcdir@%$srcdir%g | |
16307 | s%@top_srcdir@%$top_srcdir%g | |
16308 | s%@INSTALL@%$INSTALL%g | |
16309 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
16310 | fi; done | |
16311 | rm -f conftest.s* | |
10f2d63a VZ |
16312 | |
16313 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
16314 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
16315 | # | |
16316 | # ac_d sets the value in "#define NAME VALUE" lines. | |
698dcdb6 VZ |
16317 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
16318 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
16319 | ac_dC='\3' | |
16320 | ac_dD='%g' | |
16321 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
16322 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
16323 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 16324 | ac_uC=' ' |
698dcdb6 VZ |
16325 | ac_uD='\4%g' |
16326 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
16327 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
16328 | ac_eB='$%\1#\2define\3' | |
16329 | ac_eC=' ' | |
16330 | ac_eD='%g' | |
10f2d63a | 16331 | |
698dcdb6 VZ |
16332 | if test "${CONFIG_HEADERS+set}" != set; then |
16333 | EOF | |
16334 | cat >> $CONFIG_STATUS <<EOF | |
16335 | CONFIG_HEADERS="setup.h:setup.h.in" | |
16336 | EOF | |
16337 | cat >> $CONFIG_STATUS <<\EOF | |
16338 | fi | |
16339 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 16340 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
698dcdb6 VZ |
16341 | case "$ac_file" in |
16342 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
16343 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
16344 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
16345 | esac |
16346 | ||
698dcdb6 VZ |
16347 | echo creating $ac_file |
16348 | ||
16349 | rm -f conftest.frag conftest.in conftest.out | |
16350 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
16351 | cat $ac_file_inputs > conftest.in | |
16352 | ||
16353 | EOF | |
16354 | ||
16355 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
16356 | # the proper values into config.h.in to produce config.h. And first: | |
16357 | # Protect against being on the right side of a sed subst in config.status. | |
16358 | # Protect against being in an unquoted here document in config.status. | |
16359 | rm -f conftest.vals | |
16360 | cat > conftest.hdr <<\EOF | |
16361 | s/[\\&%]/\\&/g | |
16362 | s%[\\$`]%\\&%g | |
16363 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
16364 | s%ac_d%ac_u%gp | |
16365 | s%ac_u%ac_e%gp | |
16366 | EOF | |
16367 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
16368 | rm -f conftest.hdr | |
10f2d63a VZ |
16369 | |
16370 | # This sed command replaces #undef with comments. This is necessary, for | |
16371 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
16372 | # on some systems where configure will not decide to define it. | |
698dcdb6 VZ |
16373 | cat >> conftest.vals <<\EOF |
16374 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
10f2d63a VZ |
16375 | EOF |
16376 | ||
698dcdb6 VZ |
16377 | # Break up conftest.vals because some shells have a limit on |
16378 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
16379 | |
16380 | rm -f conftest.tail | |
698dcdb6 | 16381 | while : |
10f2d63a | 16382 | do |
698dcdb6 VZ |
16383 | ac_lines=`grep -c . conftest.vals` |
16384 | # grep -c gives empty output for an empty file on some AIX systems. | |
16385 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
16386 | # Write a limited-size here document to conftest.frag. | |
16387 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
16388 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 16389 | echo 'CEOF |
698dcdb6 VZ |
16390 | sed -f conftest.frag conftest.in > conftest.out |
16391 | rm -f conftest.in | |
16392 | mv conftest.out conftest.in | |
16393 | ' >> $CONFIG_STATUS | |
16394 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
16395 | rm -f conftest.vals | |
16396 | mv conftest.tail conftest.vals | |
10f2d63a | 16397 | done |
698dcdb6 VZ |
16398 | rm -f conftest.vals |
16399 | ||
16400 | cat >> $CONFIG_STATUS <<\EOF | |
16401 | rm -f conftest.frag conftest.h | |
16402 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
16403 | cat conftest.in >> conftest.h | |
16404 | rm -f conftest.in | |
16405 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
16406 | echo "$ac_file is unchanged" | |
16407 | rm -f conftest.h | |
10f2d63a | 16408 | else |
698dcdb6 VZ |
16409 | # Remove last slash and all that follows it. Not all systems have dirname. |
16410 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
10f2d63a | 16411 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
698dcdb6 VZ |
16412 | # The file is in a subdirectory. |
16413 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
10f2d63a | 16414 | fi |
698dcdb6 VZ |
16415 | rm -f $ac_file |
16416 | mv conftest.h $ac_file | |
10f2d63a | 16417 | fi |
698dcdb6 VZ |
16418 | fi; done |
16419 | ||
10f2d63a | 16420 | EOF |
698dcdb6 | 16421 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 16422 | |
698dcdb6 VZ |
16423 | TOOLKIT_DIR="${TOOLKIT_DIR}" |
16424 | TOOLKIT_NAME="${TOOLKIT_NAME}" | |
16425 | LN_S="${LN_S}" | |
16426 | ||
16427 | ||
16428 | EOF | |
16429 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a VZ |
16430 | |
16431 | chmod +x wx-config | |
f6bcfd97 BP |
16432 | mv wx-config wx${TOOLKIT_NAME}-config |
16433 | ${LN_S} wx${TOOLKIT_NAME}-config wx-config | |
665bbe97 | 16434 | |
698dcdb6 | 16435 | |
00cf1208 RR |
16436 | if test ! -d lib; then |
16437 | mkdir lib | |
16438 | fi | |
16439 | if test ! -d lib/wx; then | |
16440 | mkdir lib/wx | |
16441 | fi | |
16442 | if test ! -d lib/wx/include; then | |
16443 | mkdir lib/wx/include | |
16444 | fi | |
16445 | if test ! -d lib/wx/include/wx; then | |
16446 | mkdir lib/wx/include/wx | |
16447 | fi | |
f6bcfd97 BP |
16448 | if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then |
16449 | mkdir lib/wx/include/wx/${TOOLKIT_NAME} | |
00cf1208 RR |
16450 | fi |
16451 | if test -f setup.h; then | |
066b00aa | 16452 | cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h |
00cf1208 | 16453 | fi |
07eb77a6 | 16454 | |
698dcdb6 | 16455 | |
10f2d63a VZ |
16456 | if test ! -d include; then |
16457 | mkdir include | |
16458 | fi | |
16459 | if test ! -d include/wx; then | |
16460 | mkdir include/wx | |
16461 | fi | |
16462 | if test ! -d include/wx/${TOOLKIT_DIR}; then | |
16463 | mkdir include/wx/${TOOLKIT_DIR} | |
16464 | fi | |
afc31813 | 16465 | if test -f setup.h; then |
066b00aa | 16466 | cp -fp setup.h include/wx/${TOOLKIT_DIR}/setup.h |
afc31813 | 16467 | fi |
665bbe97 | 16468 | |
698dcdb6 VZ |
16469 | |
16470 | exit 0 | |
10f2d63a VZ |
16471 | EOF |
16472 | chmod +x $CONFIG_STATUS | |
698dcdb6 VZ |
16473 | rm -fr confdefs* $ac_clean_files |
16474 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 16475 | |
2224580a VZ |
16476 | if test "$no_recursion" != yes; then |
16477 | ||
16478 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
16479 | ac_sub_configure_args= | |
16480 | ac_prev= | |
16481 | for ac_arg in $ac_configure_args; do | |
16482 | if test -n "$ac_prev"; then | |
16483 | ac_prev= | |
16484 | continue | |
16485 | fi | |
698dcdb6 | 16486 | case "$ac_arg" in |
2224580a VZ |
16487 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
16488 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
16489 | ac_prev=cache_file ;; | |
16490 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
698dcdb6 | 16491 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
16492 | ;; |
16493 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
16494 | ac_prev=srcdir ;; | |
16495 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
16496 | ;; | |
16497 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
16498 | esac | |
16499 | done | |
16500 | ||
698dcdb6 | 16501 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
16502 | |
16503 | # Do not complain, so a configure script can configure whichever | |
16504 | # parts of a large source tree are present. | |
698dcdb6 VZ |
16505 | if test ! -d $srcdir/$ac_config_dir; then |
16506 | continue | |
16507 | fi | |
16508 | ||
16509 | echo configuring in $ac_config_dir | |
2224580a | 16510 | |
698dcdb6 | 16511 | case "$srcdir" in |
2224580a VZ |
16512 | .) ;; |
16513 | *) | |
698dcdb6 VZ |
16514 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
16515 | else | |
16516 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
16517 | fi | |
16518 | ;; | |
2224580a VZ |
16519 | esac |
16520 | ||
16521 | ac_popdir=`pwd` | |
698dcdb6 | 16522 | cd $ac_config_dir |
2224580a | 16523 | |
698dcdb6 VZ |
16524 | # A "../" for each directory in /$ac_config_dir. |
16525 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
2224580a | 16526 | |
698dcdb6 | 16527 | case "$srcdir" in |
2224580a VZ |
16528 | .) # No --srcdir option. We are building in place. |
16529 | ac_sub_srcdir=$srcdir ;; | |
698dcdb6 VZ |
16530 | /*) # Absolute path. |
16531 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
2224580a | 16532 | *) # Relative path. |
698dcdb6 | 16533 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
2224580a VZ |
16534 | esac |
16535 | ||
16536 | # Check for guested configure; otherwise get Cygnus style configure. | |
698dcdb6 VZ |
16537 | if test -f $ac_sub_srcdir/configure; then |
16538 | ac_sub_configure=$ac_sub_srcdir/configure | |
2224580a VZ |
16539 | elif test -f $ac_sub_srcdir/configure.in; then |
16540 | ac_sub_configure=$ac_configure | |
16541 | else | |
698dcdb6 | 16542 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
16543 | ac_sub_configure= |
16544 | fi | |
16545 | ||
16546 | # The recursion is here. | |
16547 | if test -n "$ac_sub_configure"; then | |
698dcdb6 | 16548 | |
2224580a | 16549 | # Make the cache file name correct relative to the subdirectory. |
698dcdb6 VZ |
16550 | case "$cache_file" in |
16551 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 16552 | *) # Relative path. |
698dcdb6 | 16553 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 16554 | esac |
698dcdb6 VZ |
16555 | case "$ac_given_INSTALL" in |
16556 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
16557 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
16558 | esac | |
2224580a | 16559 | |
698dcdb6 | 16560 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 16561 | # The eval makes quoting arguments work. |
698dcdb6 VZ |
16562 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
16563 | then : | |
16564 | else | |
16565 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
16566 | fi | |
2224580a VZ |
16567 | fi |
16568 | ||
16569 | cd $ac_popdir | |
16570 | done | |
16571 | fi | |
16572 | ||
698dcdb6 | 16573 |